{"version":3,"sources":["webpack:///./src/views/model/Admin/Combo/ComboAgent/ComboAgent.vue?9565","webpack:///./src/views/model/Admin/Combo/ComboAgent/ComboAgent.js","webpack:///./src/views/model/Admin/Combo/ComboAgent/ComboAgent.js?a0e8","webpack:///./src/views/model/Admin/Combo/ComboAgent/ComboAgent.vue","webpack:///./src/views/model/Admin/Combo/ComboAgent/index.js"],"names":["name","methods","edit","id","$parent","type","editName","editType","$wPost","data","date","effect_start_date","effect_end_date","price","original_price","$refs","comboForm","updatedForm","show","tableSearch","reset","sort","this","resetList","getList","moneyFormat","updateStatus","row","status","$wToast","success","comboCycle","val","component","_vm","_h","$createElement","_c","_self","ref","attrs","scopedSlots","_u","key","fn","scope","_v","_s","storage","storage_unit","period_month","staticClass","on","$event","_e","staticRenderFns","ComboAgent"],"mappings":"mHAAA,I,wBCSe,GACbA,KAAM,kBACNC,QAAS,CACDC,KADC,SACKC,GAAI,uJACd,EAAKC,QAAQC,KAAO,OACR,EAAKD,QACjB,EAAKA,QAAQE,SAAW,MACxB,EAAKF,QAAQG,SAAW,EAJV,SAKK,EAAKC,OAAO,4BAA6B,CAAEL,GAAIA,IALpD,gBAKRM,EALQ,SAAC,EAAD,qBAQZA,EAAKC,KAAO,CAACD,EAAKE,kBAAmBF,EAAKG,iBAC1CH,EAAKI,MAAQJ,EAAKI,MAAQ,IAC1BJ,EAAKK,eAAiBL,EAAKK,eAAiB,IAVhC,UAWN,EAAKV,QAAQW,MAAMC,UAAUC,YAAYR,GAXnC,QAYZ,EAAKL,QAAQW,MAAMC,UAAUE,OAZjB,+CAehBC,YAhBO,SAgBMC,EAAOC,GAKdD,EACFE,KAAKP,MAAM,WAAWQ,YAEtBD,KAAKP,MAAM,WAAWS,SAASA,EAGnCC,Y,UAAAA,EACMC,aA5BC,SA4BaC,GAAK,+IAGfA,EAAIC,OAHW,OAIhB,IAJgB,MAKhB,IALgB,OAehB,IAfgB,uCAMN,EAAKpB,OAAO,gCAAiC,CACxDL,GAAIwB,E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IAAIxB,GAAGA,IAAI,CAAC+B,EAAIY,GAAG,QAA8B,IAArBD,EAAMlB,IAAIC,QAAqC,IAArBiB,EAAMlB,IAAIC,OAAcS,EAAG,WAAW,CAACc,YAAY,iBAAiBX,MAAM,CAAC,KAAO,QAAQY,GAAG,CAAC,MAAQ,SAASC,GAAQ,OAAOnB,EAAIR,aAAamB,EAAMlB,IAAIA,IAAI,CAACO,EAAIY,GAAG,QAAQZ,EAAIoB,KAA2B,IAArBT,EAAMlB,IAAIC,OAAcS,EAAG,WAAW,CAACc,YAAY,iBAAiBX,MAAM,CAAC,KAAO,QAAQY,GAAG,CAAC,MAAQ,SAASC,GAAQ,OAAOnB,EAAIR,aAAamB,EAAMlB,IAAIA,IAAI,CAACO,EAAIY,GAAG,QAAQZ,EAAIoB,KAA2B,IAArBT,EAAMlB,IAAIC,OAAcS,EAAG,WAAW,CAACc,YAAY,iBAAiBX,MAAM,CAAC,KAAO,SAAS,CAACN,EAAIY,GAAG,OAAOZ,EAAIoB,KAAKA,QAAQ,IAAI,IAAI,GACviF,IGSpBC,EAEA,KACA,KACA,MAIa,EAAAtB,E,QCTAuB","file":"static/js/chunk-2d0c9ac9.eaedf7d6.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('w-box-content',[_c('div',[_c('w-table',{ref:\"w-table\",attrs:{\"url\":\"/admin/combo/list_agent.do\",\"background\":\"\"}},[_c('el-table-column',{attrs:{\"prop\":\"id\",\"label\":\"ID\",\"width\":\"114\",\"show-overflow-tooltip\":\"\"}}),_c('el-table-column',{attrs:{\"prop\":\"storage\",\"label\":\"数据存储额度\",\"min-width\":\"180\",\"show-overflow-tooltip\":\"\",\"align\":\"right\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('span',[_vm._v(_vm._s(scope.row.storage)+_vm._s(scope.row.storage_unit))])]}}])}),_c('el-table-column',{attrs:{\"prop\":\"price\",\"label\":\"售卖价格(元)\",\"min-width\":\"144\",\"show-overflow-tooltip\":\"\",\"align\":\"right\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('span',[_vm._v(_vm._s(_vm.moneyFormat(scope.row.price / 100)))])]}}])}),_c('el-table-column',{attrs:{\"prop\":\"original_price\",\"label\":\"原价(元)\",\"min-width\":\"144\",\"show-overflow-tooltip\":\"\",\"align\":\"right\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('span',[_vm._v(_vm._s(_vm.moneyFormat(scope.row.original_price / 100)))])]}}])}),_c('el-table-column',{attrs:{\"prop\":\"period_month\",\"label\":\"套餐周期\",\"min-width\":\"92\",\"show-overflow-tooltip\":\"\",\"align\":\"right\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('span',[_vm._v(\" \"+_vm._s(_vm.comboCycle(scope.row.period_month))+\" \")])]}}])}),_c('el-table-column',{attrs:{\"prop\":\"effect_start_date\",\"label\":\"生效时间\",\"min-width\":\"230\",\"show-overflow-tooltip\":\"\",\"align\":\"right\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('span',[_vm._v(_vm._s(scope.row.effect_start_date)+\"至\"+_vm._s(scope.row.effect_end_date))])]}}])}),_c('el-table-column',{attrs:{\"prop\":\"status_name\",\"label\":\"状态\",\"min-width\":\"92\",\"show-overflow-tooltip\":\"\",\"align\":\"right\"}}),_c('el-table-column',{attrs:{\"label\":\"操作\",\"fixed\":\"right\",\"width\":\"160\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('w-button',{staticClass:\"w-table-button\",attrs:{\"type\":\"text\"},on:{\"click\":function($event){return _vm.edit(scope.row.id)}}},[_vm._v(\"编辑\")]),(scope.row.status === 1 || scope.row.status === 2)?_c('w-button',{staticClass:\"w-table-button\",attrs:{\"type\":\"text\"},on:{\"click\":function($event){return _vm.updateStatus(scope.row)}}},[_vm._v(\"停用\")]):_vm._e(),(scope.row.status === 3)?_c('w-button',{staticClass:\"w-table-button\",attrs:{\"type\":\"text\"},on:{\"click\":function($event){return _vm.updateStatus(scope.row)}}},[_vm._v(\"启用\")]):_vm._e(),(scope.row.status === 4)?_c('w-button',{staticClass:\"w-table-button\",attrs:{\"type\":\"text\"}},[_vm._v(\"-\")]):_vm._e()]}}])})],1)],1)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","/*\n * @Descripttion: *\n * @version: *\n * @Author: Mingkit\n * @Date: 2021-01-08 10:34:39\n * @LastEditors: Mingkit\n * @LastEditTime: 2021-01-14 17:49:27\n */\nimport { moneyFormat } from '@/plugins/utils'\nexport default {\n name: 'AdminComboAgent',\n methods: {\n async edit (id) {\n this.$parent.type = 'edit'\n console.log(this.$parent)\n this.$parent.editName = '代理商'\n this.$parent.editType = 1\n const data = await this.$wPost('/admin/combo/get_combo.do', { id: id })\n if (data !== false) {\n console.log(data)\n data.date = [data.effect_start_date, data.effect_end_date]\n data.price = data.price / 100\n data.original_price = data.original_price / 100\n await this.$parent.$refs.comboForm.updatedForm(data)\n this.$parent.$refs.comboForm.show()\n }\n },\n tableSearch (reset, sort) {\n // if (!sort) {\n // this.queryForm.field_type = ''\n // this.queryForm.sort_type = ''\n // }\n if (reset) {\n this.$refs['w-table'].resetList()\n } else {\n this.$refs['w-table'].getList()\n }\n },\n moneyFormat,\n async updateStatus (row) {\n console.log(row)\n let data\n switch (row.status) {\n case 1:\n case 2:\n data = await this.$wPost('/admin/combo/update_status.do', {\n id: row.id,\n status: 3\n })\n if (data === true) {\n this.$wToast.success('已停用')\n this.tableSearch(true)\n }\n break\n case 3:\n data = await this.$wPost('/admin/combo/update_status.do', {\n id: row.id,\n status: 2\n })\n if (data === true) {\n this.$wToast.success('已启用')\n this.tableSearch(true)\n }\n break\n default:\n break\n }\n },\n // 转化套餐周期单位\n comboCycle (val) {\n if (!val || val === '-') {\n return val\n }\n\n if (val % 12 === 0) {\n return val / 12 + '年'\n } else {\n return val + '月'\n }\n }\n }\n}\n","import mod from \"-!../../../../../../node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--13-0!../../../../../../node_modules/_thread-loader@2.1.3@thread-loader/dist/cjs.js!../../../../../../node_modules/_babel-loader@8.2.5@babel-loader/lib/index.js!../../../../../../node_modules/_eslint-loader@2.2.1@eslint-loader/index.js??ref--14-0!./ComboAgent.js?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--13-0!../../../../../../node_modules/_thread-loader@2.1.3@thread-loader/dist/cjs.js!../../../../../../node_modules/_babel-loader@8.2.5@babel-loader/lib/index.js!../../../../../../node_modules/_eslint-loader@2.2.1@eslint-loader/index.js??ref--14-0!./ComboAgent.js?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./ComboAgent.vue?vue&type=template&id=242c0cac&\"\nimport script from \"./ComboAgent.js?vue&type=script&lang=js&\"\nexport * from \"./ComboAgent.js?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/_vue-loader@15.9.8@vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","/*\n * @Descripttion: *\n * @version: *\n * @Author: Mingkit\n * @Date: 2021-01-08 10:34:43\n * @LastEditors: Mingkit\n * @LastEditTime: 2021-01-08 10:35:57\n */\nimport ComboAgent from './ComboAgent.vue'\nexport default ComboAgent\n"],"sourceRoot":""}