webpackJsonp([85],{"3+ny":function(t,e){},O0Tl:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("Xxa5"),r=a.n(n),i=a("exGp"),s=a.n(i),l=a("Zz1P"),o=a.n(l),c={data:function(){return{loading:!1,typeText:{1:"按件数",2:"按重量"},searchForm:{page:1,limit:10,title:""},tableData:[],total:0}},activated:function(){this.getTableDataList(1)},methods:{resetForm:function(t){this.$refs[t].resetFields(),this.getTableDataList(1)},handleSizeChange:function(t){this.searchForm.limit=t,this.handleCurrentChange(1)},handleCurrentChange:function(t){this.searchForm.page=t,this.getTableDataList()},getTableDataList:function(t){var e=this;return s()(r.a.mark(function a(){var n,i,s;return r.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return t&&(e.searchForm.page=1),e.loading=!0,a.next=4,e.$api.shop.tmplList(e.searchForm);case 4:if(n=a.sent,i=n.code,s=n.data,e.loading=!1,200===i){a.next=10;break}return a.abrupt("return");case 10:e.tableData=s.data,e.total=s.total;case 12:case"end":return a.stop()}},a,e)}))()},confirmDel:function(t){var e=this;this.$confirm(this.$t("tips.confirmDelete"),this.$t("tips.reminder"),{confirmButtonText:this.$t("action.comfirm"),cancelButtonText:this.$t("action.cancel"),type:"warning"}).then(function(){e.updateItem(t,-1)}).catch(function(){})},updateItem:function(t,e){var a=this;return s()(r.a.mark(function n(){return r.a.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:a.$api.shop.tmplUpdate({id:t,status:e}).then(function(t){if(200===t.code)a.$message.success(a.$t(-1===e?"tips.successDel":"tips.successOper")),-1===e&&(a.searchForm.page=a.searchForm.page