1 |
- (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-68a75cc3","chunk-8b2ab33c","chunk-b7f101b0","chunk-0aefa08a","chunk-1d0a69b6","chunk-62a340ba","chunk-15caf0ce","chunk-5ce8d4ba","chunk-25ffc4de","chunk-ee636058"],{"006e":function(e,t,r){"use strict";r("af2b")},"007d":function(e,t,r){},"010b":function(e,t,r){"use strict";r("9b12")},"0205":function(e,t,r){},"0209e":function(e,t,r){"use strict";var a=r("1b69"),n="admin/";t.a={add:function(e,t){return Object(a.a)(n+"salecreate",e,"post",t)},delete:function(e,t){return Object(a.a)(n+"delete",e,"post",t)},list:function(e,t){return Object(a.a)(n+"salelist",e,"post",t)},detail:function(e,t){return Object(a.a)(n+"detail",e,"post",t)},update:function(e,t){return Object(a.a)(n+"update",e,"post",t)},status:function(e,t){return Object(a.a)(n+"accountstatus",e,"post",t)},salegetprice:function(e,t){return Object(a.a)(n+"salegetprice",e,"post",t)},goods_detail:function(e,t){return Object(a.a)(n+"goodinfo",e,"post",t)},goods_active:function(e,t){return Object(a.a)(n+"actquery",e,"post",t)},saleuse:function(e,t){return Object(a.a)(n+"saleuse",e,"post",t)},uselist:function(e,t){return Object(a.a)(n+"uselist",e,"post",t)},saleaddother:function(e,t){return Object(a.a)(n+"saleaddother",e,"post",t)},saleaddr:function(e,t){return Object(a.a)(n+"saleaddr",e,"post",t)},addrall:function(e,t){return Object(a.a)(n+"addrall",e,"post",t)}}},"034d":function(e,t,r){},"034d0":function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=(r("96cf"),r("d3b7"),r("159b"),r("b0c0"),r("e9c4"),r("92f1")),s={name:"sort",props:["showModel","id","sitem","titleList"],mixins:[r("9f53").a],data:function(){return{loading:!1,title:"添加专属类型",pid_name:"",showModelThis:this.showModel,specOptions:[],ruleForm:{id:"",name:""},rulesThis:this.rules,rules:{name:[{required:!0,message:"专属类型名称不能为空",trigger:"blur"}]}}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis:function(e){e||this.$emit("cancel")}},methods:{initForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,e.pid_name="",e.titleList.forEach((function(t,r){e.pid_name+=0!==r?"".concat(t.titleName,"/"):""})),t.next=5,e.resetForm();case 5:"003"===e.id?(e.title="添加专属类型",e.rulesThis=e.rules):"005"===e.id?(e.title="修改专属类型",e.rulesThis=e.rules):(e.title="专属类型详情",e.rulesThis={}),e.loading=!1;case 7:case"end":return t.stop()}}),t)})))()},resetForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$nextTick((function(){var t,r;e.$refs.ruleForm&&(e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),t=(r=e.sitem).id,r=r.name,e.ruleForm={pid:e.titleList[e.titleList.length-1].id||"",id:t||"",name:r||""})}));case 2:case"end":return t.stop()}}),t)})))()},submitForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.ruleForm.validate(function(){var t=Object(a.a)(regeneratorRuntime.mark((function t(r){var a,s,i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r){t.next=30;break}if(e.loading=!0,a=JSON.parse(JSON.stringify(e.ruleForm)),s={},"003"===e.id)return delete a.id,t.next=8,n.a.add(a);t.next=11;break;case 8:s=t.sent,t.next=14;break;case 11:return t.next=13,n.a.update(a);case 13:s=t.sent;case 14:if(e.loading=!1,!s||0!==s.code){t.next=22;break}i="add"===e.id?"添加成功!":"修改成功!",e.$notify.success({title:i,message:""}),e.showModelThis=!1,e.$emit("refresh"),t.next=28;break;case 22:if(s&&100<=s.code&&s.code<=104)return t.next=25,e.logout();t.next=27;break;case 25:t.next=28;break;case 27:e.$message.warning(s.message);case 28:t.next=32;break;case 30:return t.abrupt("return",!1);case 32:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()}}};r("5d5b"),r=r("2877"),r=Object(r.a)(s,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:e.title,center:!0,align:"left",top:"12vh",width:"650px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)"},on:{"update:visible":function(t){e.showModelThis=t},close:function(t){e.showModelThis=!1}}},[t("el-card",{staticStyle:{margin:"-20px 0 0 0"}},[t("el-row",{attrs:{gutter:10}},[t("el-col",{attrs:{span:24}},[t("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",rules:e.rulesThis,"label-width":"95px"}},[t("el-form-item",{attrs:{label:"名称",prop:"name"}},[t("el-input",{attrs:{disabled:"007"==e.id,placeholder:"名称",maxlength:"20"},model:{value:e.ruleForm.name,callback:function(t){e.$set(e.ruleForm,"name",t)},expression:"ruleForm.name"}},[e.pid_name?t("template",{slot:"prepend"},[e._v(e._s(e.pid_name))]):e._e()],2)],1)],1)],1),t("el-col",{staticStyle:{"text-align":"right"},attrs:{span:24}},["007"!==e.id?t("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("保 存 ")]):e._e(),t("el-button",{on:{click:function(t){e.showModelThis=!1}}},[e._v(e._s("007"==e.id?"关 闭":"取 消"))])],1)],1)],1)],1)}),[],!1,null,"65b8d7b5",null);t.default=r.exports},"03b8":function(e,t,r){},"03dd":function(e,t,r){},"03ec":function(e,t,r){"use strict";r("4349")},"03f1":function(e,t,r){},"03fb":function(e,t,r){"use strict";r("e84d")},"04c0":function(e,t,r){"use strict";r("efa6")},"07ac":function(e,t,r){var a=r("23e7"),n=r("6f53").values;a({target:"Object",stat:!0},{values:function(e){return n(e)}})},"0829":function(e,t,r){"use strict";r("fb2f")},"08ba":function(e,t,r){"use strict";r("ccb9")},"08c9":function(e,t,r){},"092c":function(e,t,r){"use strict";r("9d47")},"0985":function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=r("5530"),s=(r("96cf"),r("7db0"),r("d3b7"),r("e9c4"),r("a9e3"),r("159b"),r("b0c0"),r("f5ed")),i=r("9f53"),o=r("0ba2e"),l=r("b386"),c=r("3e6d"),u=r("2f62");s={name:"sellOutOrder",mixins:[s.a,i.a],components:{addEdit:l.default},computed:Object(n.a)(Object(n.a)({},Object(u.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"sellOutOrder"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),data:function(){return{select:"orderCode",s_input:"",customerCode:[],order_type_options:[{id:"1",label:"线上商品销售"},{id:"2",label:"项目线上商品销售"},{id:"3",label:"咨询单销售"},{id:"4",label:"项目咨询单销售"}],sitem:null,statusOptions:[{id:"0",label:"待发货"},{id:"1",label:"待库管发货"},{id:"2",label:"待收货"},{id:"3",label:"已收货"},{id:"4",label:"已全部退货"}],loading:!0,showModel:!1,isDetail:!1,modelId:0,parmValue:{order_type:"",orderCode:"",apply_name:"",start:"",end:"",companyNo:"",good_code:"",good_name:"",outCode:"",status:"",page:1,size:15},tableData:[],table:{stripe:!0,border:!0,_defaultHeader_:["setcol"]},pageInfo:{size:15,curr:1,total:0},columns:c.a}},mounted:function(){this.searchList()},methods:{restSearch:function(){this.customerCode=[],this.select="orderCode",this.s_input="",this.parmValue={order_type:"1",orderCode:"",apply_name:"",start:"",end:"",companyNo:"",good_code:"",good_name:"",outCode:"",status:"",page:1,size:15},this.pageInfo={size:15,curr:1,total:0},this.searchList()},openModal:function(e,t,r){this.showModel=!0,this.modelId=e,this.isDetail=t,this.sitem=r},deleteById:function(e,t){var r=this;return Object(a.a)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r.$confirm("确定要删除?",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(a.a)(regeneratorRuntime.mark((function a(){var n,s;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return n={id:e,status:"1"===t?"0":"1"},a.next=3,o.a.status(n);case 3:if(!(s=a.sent)||0!==s.code){a.next=9;break}r.$notify.success({title:"删除成功",message:""}),r.searchList(),a.next=15;break;case 9:if(s&&100<=s.code&&s.code<=104)return a.next=12,r.logout();a.next=14;break;case 12:a.next=15;break;case 14:r.$message.warning(s.message);case 15:case"end":return a.stop()}}),a)})))).catch((function(){}));case 2:case"end":return n.stop()}}),n)})))()},searchList:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r,a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(""!==e.parmValue.start&&""===e.parmValue.end||""===e.parmValue.start&&""!==e.parmValue.end)return e.$message.warning("时间区间不完整!"),t.abrupt("return");t.next=3;break;case 3:return e.loading=!0,r=JSON.parse(JSON.stringify(e.parmValue)),t.next=7,o.a.list(r);case 7:if(!(a=t.sent)||0!==a.code||!a.data){t.next=14;break}e.tableData=a.data.list,e.pageInfo.total=Number(a.data.count),e.tableData.forEach((function(e){e.good_class="",e.can&&0<e.can.length&&e.can.forEach((function(t,r){e.good_class+=0===r?t.name:"/"+t.name}))})),t.next=21;break;case 14:if(a&&100<=a.code&&a.code<=104)return t.next=17,e.logout();t.next=19;break;case 17:t.next=21;break;case 19:e.tableData=[],e.pageInfo.total=0;case 21:e.loading=!1;case 22:case"end":return t.stop()}}),t)})))()},statusConfirm:function(e,t){var r=this;return Object(a.a)(regeneratorRuntime.mark((function n(){var s;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return s="1"===t?"禁用":"启用",n.next=3,r.$confirm("确定要改为"+s+"?",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(a.a)(regeneratorRuntime.mark((function a(){var n,s;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return r.loading=!0,n={id:e,status:"1"===t?"0":"1"},a.next=4,o.a.status(n);case 4:if((s=a.sent)&&0===s.code)return r.loading=!1,r.$notify.success({title:"状态修改成功!",message:""}),a.next=10,r.searchList();a.next=12;break;case 10:a.next=18;break;case 12:if(s&&100<=s.code&&s.code<=104)return a.next=15,r.logout();a.next=17;break;case 15:a.next=18;break;case 17:r.$message.warning(s.message);case 18:case"end":return a.stop()}}),a)})))).catch((function(){}));case 3:case"end":return n.stop()}}),n)})))()},handleTime:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(""!==e.startTime?t.parmValue.start=e.startTime:t.parmValue.start="",""!==e.endTime?t.parmValue.end=e.endTime:t.parmValue.end="",""!==t.parmValue.start&&""!==t.parmValue.end)return t.pageInfo.curr=1,t.parmValue.page=1,r.next=7,t.searchList();r.next=7;break;case 7:case"end":return r.stop()}}),r)})))()},customerChange:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return e&&e.id?(t.customerCode=[e.code],t.parmValue.companyNo=e.code):(t.customerCode=[],t.parmValue.companyNo=""),t.pageInfo.curr=1,t.parmValue.page=1,r.next=5,t.searchList();case 5:case"end":return r.stop()}}),r)})))()},handleValue:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.parmValue.orderCode="orderCode"===e.select?e.s_input:"",e.parmValue.outCode="outCode"===e.select?e.s_input:"",e.parmValue.good_code="good_code"===e.select?e.s_input:"",e.parmValue.good_name="good_name"===e.select?e.s_input:"",e.parmValue.apply_name="apply_name"===e.select?e.s_input:"",t.next=7,e.searchList();case 7:case"end":return t.stop()}}),t)})))()}}},r("8834"),i=r("2877"),l=Object(i.a)(s,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"sellOutOrder pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?r("div",[r("ex-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{table:e.table,data:e.tableData,columns:e.columns,page:e.pageInfo,size:e.size},on:{"page-curr-change":e.handlePageChange,"page-size-change":e.handleSizeChange,"screen-reset":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()},"screen-submit":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},scopedSlots:e._u([{key:"table-header",fn:function(t){return[r("div",{staticStyle:{width:"100%"}},[r("el-row",{staticStyle:{padding:"0 0 0 80px"}},[r("el-col",{staticStyle:{width:"291px"},attrs:{span:4}},[r("period-date-picker",{attrs:{type:1,start:e.parmValue.start,end:e.parmValue.end,width:"134px",size:e.searchSize},on:{timeReturned:e.handleTime}})],1),r("el-col",{staticStyle:{width:"320px",padding:"0px 0 0 10px"},attrs:{span:4}},[r("search-customer",{attrs:{value:e.customerCode,size:e.searchSize,placeholder:"客户公司名称"},on:{searchChange:e.customerChange}})],1),r("el-col",{staticStyle:{width:"66px",float:"right"},attrs:{span:3}},[r("el-button",{staticStyle:{float:"right","margin-left":"5px"},attrs:{size:e.searchSize,type:"primary"},on:{click:e.searchList}},[e._v(" 刷新 ")])],1)],1),r("el-row",{staticStyle:{"padding-top":"10px"}},[r("el-col",{staticStyle:{width:"150px"},attrs:{span:4}},[r("el-select",{staticStyle:{width:"100%"},attrs:{size:e.searchSize,filterable:"",clearable:"",placeholder:"发货申请单状态"},on:{change:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.parmValue.status,callback:function(t){e.$set(e.parmValue,"status",t)},expression:"parmValue.status"}},e._l(e.statusOptions,(function(e){return r("el-option",{key:"status"+e.id,attrs:{label:e.label,value:e.id}})})),1)],1),r("el-col",{staticStyle:{width:"500px",padding:"0 0 0 10px"},attrs:{span:4}},[r("el-input",{staticClass:"input-with-select",attrs:{clearable:"",size:e.searchSize,placeholder:"关键字",maxlength:"40"},model:{value:e.s_input,callback:function(t){e.s_input=t},expression:"s_input"}},[r("el-select",{staticStyle:{width:"140px"},attrs:{slot:"prepend",placeholder:"关键字类型"},slot:"prepend",model:{value:e.select,callback:function(t){e.select=t},expression:"select"}},[r("el-option",{attrs:{label:"销售订单编号",value:"orderCode"}}),r("el-option",{attrs:{label:"发货申请单编号",value:"outCode"}}),r("el-option",{attrs:{label:"商品编号",value:"good_code"}}),r("el-option",{attrs:{label:"商品名称",value:"good_name"}}),r("el-option",{attrs:{label:"申请人",value:"apply_name"}})],1),r("el-button",{attrs:{slot:"append",icon:"el-icon-search"},on:{click:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.handleValue()}},slot:"append"})],1)],1),r("el-col",{staticClass:"fr",staticStyle:{width:"66px"},attrs:{span:4}},[r("el-button",{staticClass:"fr",attrs:{type:"warning",size:e.searchSize},on:{click:e.restSearch}},[e._v(" 重置 ")])],1)],1)],1)]}},{key:"status",fn:function(t){var a=t.scope;return[r("el-tag",{attrs:{size:e.tablebtnSize,type:"0"==a.row.status?"warning":""},domProps:{textContent:e._s((e.statusOptions.find((function(e){return e.id==a.row.status}))||{}).label||"--")}})]}},{key:"order_type",fn:function(t){var a=t.scope;return[r("el-tag",{attrs:{size:"mini"},domProps:{textContent:e._s((e.order_type_options.find((function(e){return e.id==a.row.order_type}))||{}).label||"--")}})]}},{key:"operation",fn:function(t){var a=t.scope;return[e.powers.some((function(e){return"007"==e}))?r("el-tooltip",{attrs:{effect:"dark",content:"详情",placement:"top"}},[r("i",{staticClass:"el-icon-view tb-icon",on:{click:function(t){return e.routeGoto("sellOutOrderDetail",{id:a.row.outCode})}}})]):e._e()]}}],null,!1,738367389)}),r("add-edit",{attrs:{id:e.modelId,sitem:e.sitem,"show-model":e.showModel,"is-detail":e.isDetail},on:{refresh:e.searchList,cancel:function(t){e.showModel=!1}}})],1):r("div",[r("no-auth")],1)])}),[],!1,null,"016b2974",null);t.default=l.exports},"0a28":function(e,t,r){"use strict";r("b6cb")},"0ba2e":function(e,t,r){"use strict";var a=r("1b69"),n="admin/";t.a={add:function(e,t){return Object(a.a)(n+"aftercreate",e,"post",t)},delete:function(e,t){return Object(a.a)(n+"delete",e,"post",t)},list:function(e,t){return Object(a.a)(n+"xsaleout",e,"post",t)},detail:function(e,t){return Object(a.a)(n+"saleoutinfo",e,"post",t)},update:function(e,t){return Object(a.a)(n+"update",e,"post",t)},status:function(e,t){return Object(a.a)(n+"salestatus",e,"post",t)},saleoutsend:function(e,t){return Object(a.a)(n+"saleoutsend",e,"post",t)},salecustomer:function(e,t){return Object(a.a)(n+"salecustomer",e,"post",t)},reasonList:function(e,t){return Object(a.a)(n+"resultlist",e,"post",t)},setdelivery:function(e,t){return Object(a.a)(n+"setdelivery",e,"post",t)},afterinfo:function(e,t){return Object(a.a)(n+"afterinfo",e,"post",t)},aftercancel:function(e,t){return Object(a.a)(n+"aftercancel",e,"post",t)},afterstatus:function(e,t){return Object(a.a)(n+"afterstatus",e,"post",t)}}},"0cd5":function(e,t,r){},"0d0c":function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=(r("96cf"),r("7db0"),r("d3b7"),r("e9c4"),r("25f0"),r("9f53")),s=r("1120");n={name:"stockApply",props:["id","sitem","newTime"],mixins:[n.a],computed:{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"stockApplyDetail"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}},data:function(){return{showColumns:[{prop:"company_name",label:"业务公司",span:24},{prop:"companyNo",label:"业务公司编号",span:16},{prop:"wsm_type",label:"仓库类型",_slot_:"wsm_type",span:8}],supplier_code:"",loading:!1,ruleForm:{supplier_code:[],wsm_code:[]},rules:{supplier_code:[{type:"array",required:!0,message:"请选择仓库所在公司",trigger:"change"}],wsm_code:[{type:"array",required:!0,message:"请选择入库仓库",trigger:"change"}]}}},mounted:function(){this.initForm()},watch:{newTime:function(e){e&&this.initForm()}},methods:{initForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,t.next=3,e.resetForm();case 3:e.loading=!1;case 4:case"end":return t.stop()}}),t)})))()},resetForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$nextTick((function(){e.$refs.ruleForm&&(e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),e.supplier_code="",e.ruleForm={supplier_code:[],wsm_code:[]})}));case 2:case"end":return t.stop()}}),t)})))()},submitForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.ruleForm.validate(function(){var t=Object(a.a)(regeneratorRuntime.mark((function t(r){var a,n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r)return e.loading=!0,(a=JSON.parse(JSON.stringify(e.ruleForm))).wsm_code=a.wsm_code.toString(),delete a.supplier_code,a.bk_code=e.sitem.bk_code,t.next=8,s.a.purchcgd(a);t.next=22;break;case 8:if(!(n=t.sent)||0!==n.code){t.next=14;break}e.$notify.success({title:"添加成功",message:""}),e.$emit("refresh"),t.next=20;break;case 14:if(n&&100<=n.code&&n.code<=104)return t.next=17,e.logout();t.next=19;break;case 17:t.next=20;break;case 19:e.$message.warning(n.message);case 20:t.next=24;break;case 22:return t.abrupt("return",!1);case 24:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()},change_wsm_code:function(e){e=e.code,this.ruleForm.wsm_code=e?[e]:[],this.$refs.ruleForm.validateField("wsm_code")},selectSupplierStock:function(e){e=e.code,this.ruleForm.supplier_code=e?[e]:[],this.supplier_code=e||"",this.ruleForm.wsm_code=[],this.$refs.ruleForm.validateField("supplier_code"),this.$refs.ruleForm.validateField("wsm_code")}}},r=r("2877"),r=Object(r.a)(n,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,rules:e.rules,"status-icon":"","label-width":"110px",size:"mini"}},[t("el-row",[t("el-col",{attrs:{span:12}},[e.sitem.companyNo?t("show-data-table",{attrs:{newTime:e.newTime,sitem:e.sitem,columns:e.showColumns,border:""}},[t("template",{slot:"wsm_type"},[t("el-tag",{attrs:{size:"mini"}},[e._v("销售仓")])],1)],2):e._e()],1),t("el-col",{staticStyle:{"text-align":"right",padding:"0 0 20px 0"},attrs:{span:12}},[t("el-form-item",{attrs:{label:"仓库所在公司",prop:"supplier_code"}},[t("search-supplier",{attrs:{size:"mini",placeholder:"仓库所在公司",disabled:""===e.sitem.companyNo,value:e.ruleForm.supplier_code,names:""},on:{searchChange:e.selectSupplierStock}})],1),t("el-form-item",{attrs:{label:"仓库名称",prop:"wsm_code"}},[t("search-stock",{attrs:{isDetail:!1,size:"mini",disabled:0===e.ruleForm.supplier_code.length,value:e.ruleForm.wsm_code,placeholder:"仓库名称",isRelation:!0,wsmtype:"5",companyNo:e.sitem.companyNo,companyCode:e.supplier_code,names:""},on:{searchChange:e.change_wsm_code}})],1),t("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.submitForm}},[e._v("保 存 ")])],1)],1)],1)}),[],!1,null,null,null);t.default=r.exports},"0eac":function(e,t,r){},"0ee5":function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var a=[{name:"启用",code:"1"},{name:"禁用",code:"0"}]},"0f2c":function(e,t,r){},"0f31":function(e,t,r){"use strict";var a=r("1b69"),n="admin/";t.a={add:function(e,t){return Object(a.a)(n+"titlecreate",e,"post",t)},delete:function(e,t){return Object(a.a)(n+"titledelete",e,"post",t)},list:function(e,t){return Object(a.a)(n+"titlelist",e,"post",t)},detail:function(e,t){return Object(a.a)(n+"titleinfo",e,"post",t)},update:function(e,t){return Object(a.a)(n+"titleedit",e,"post",t)},status:function(e,t){return Object(a.a)(n+"titlestatus",e,"post",t)}}},"0f36":function(e,t,r){},"0ff4":function(e,t,r){},1068:function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=(r("96cf"),r("7db0"),r("d3b7"),r("159b"),r("b0c0"),r("f5ed")),s=r("9f53"),i=r("8394"),o=[{prop:"cgdNo",label:"采购单编号",span:6},{prop:"status",label:"状态",_slot_:"status",span:6},{prop:"apply_name",label:"申请人",span:6},{prop:"addtime",label:"创建时间",span:6},{prop:"order_type",label:"采购单类型",_slot_:"order_type",span:6},{prop:"diff_weight",label:"重量工差",span:6},{prop:"diff_price",label:"金额差价",span:6},{prop:"gold_price",label:"实时金价",span:6},{prop:"diff_is_act",label:"客户反馈",_slot_:"diff_is_act",span:6},{prop:"diff_customer_remark",label:"客户意愿",_slot_:"diff_customer_remark",span:6},{prop:"diff_remark",label:"业务审核备注",span:12}];n={name:"purchaseDiffOrderDetail",mixins:[n.a,s.a],components:{},computed:{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"purchaseDiffOrderDetail"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}},data:function(){return{customer_remark_options:[{value:"1",label:"咨询订单减工差"},{value:"2",label:"咨询订单不减工差"}],is_act_options:[{value:"1",label:"接受工差"},{value:"2",label:"不接受工差-退回重做"}],activeTabs:"1",ShowDataTableColumns:o,statusOptions:[{id:"1",label:"待业务部门审核"},{id:"2",label:"工差单审核完成"}],order_type_options:[{value:"1",label:"备货单"},{value:"2",label:"线上非库存品"},{value:"3",label:"咨询采返"},{value:"4",label:"项目采返"}],finishStatus:"finish",activeNames:["0","1","2","3","4","5","6","7","8","9"],sitem:null,status:"",newTime:"",loading:!1,queryId:"",orderCode:"",order_type:"",type:""}},mounted:function(){this.queryId=this.$route.query.id,this.initData()},methods:{statusConfirm:function(e,t,r){var n=this;return Object(a.a)(regeneratorRuntime.mark((function s(){return regeneratorRuntime.wrap((function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,n.$confirm("确定要".concat(t,"?"),{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(a.a)(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if("-1"===e)return a.next=3,n.delete(t);a.next=5;break;case 3:a.next=8;break;case 5:return a.next=8,n.setstatus(e,t,r);case 8:case"end":return a.stop()}}),a)})))).catch((function(){}));case 2:case"end":return s.stop()}}),s)})))()},setstatus:function(e,t){var r=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var a,n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a={id:r.queryId,status:e},t.next=4,i.a.status(a);case 4:if((n=t.sent)&&0===n.code)return r.$notify.success({title:"修改成功!",message:""}),t.next=9,r.initData();t.next=11;break;case 9:t.next=17;break;case 11:if(n&&100<=n.code&&n.code<=104)return t.next=14,r.logout();t.next=16;break;case 14:t.next=17;break;case 16:r.$message.warning(n.message);case 17:case"end":return t.stop()}}),t)})))()},getNewTime:function(){this.newTime=(new Date).valueOf()},examForm:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){var a;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t.loading){r.next=4;break}return a="1"===e.state?"2":"0",r.next=4,t.setStatus(a,"提交入库方审核",e.remark);case 4:case"end":return r.stop()}}),r)})))()},initData:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r,a,n,s;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,t.next=3,i.a.detail({id:e.queryId});case 3:if(!(r=t.sent)||0!==r.code||!r.data){t.next=13;break}e.sitem=r.data,s=e.sitem,a=s.can,n=s.status,s=s.cgdNo,e.status=n,e.orderCode=s,a&&0<a.length&&(e.sitem.class_cat="",a.forEach((function(t,r){e.sitem.class_cat+=0===r?t.name:"/"+t.name}))),e.getNewTime(),t.next=19;break;case 13:if(r&&100<=r.code&&r.code<=104)return t.next=16,e.logout();t.next=18;break;case 16:t.next=19;break;case 18:e.$message.warning(r.message);case 19:e.loading=!1;case 20:case"end":return t.stop()}}),t)})))()}}},s=r("2877"),r=Object(s.a)(n,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("div",{staticClass:"purchaseDiffOrderDetail pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?t("div",{staticStyle:{width:"100%"}},[t("el-tabs",{model:{value:e.activeTabs,callback:function(t){e.activeTabs=t},expression:"activeTabs"}},[t("el-tab-pane",{attrs:{label:"业务详情",name:"1"}},[t("el-collapse",{staticStyle:{margin:"-18px 0 0 0"},model:{value:e.activeNames,callback:function(t){e.activeNames=t},expression:"activeNames"}},[t("el-collapse-item",{attrs:{title:"采购工差单详情",name:"0"}},[""!==e.newTime?t("show-data-table",{attrs:{newTime:e.newTime,sitem:e.sitem,columns:e.ShowDataTableColumns}},[t("template",{slot:"status"},[t("el-tag",{attrs:{size:"mini",type:"0"==e.sitem.status?"warning":""},domProps:{textContent:e._s((e.statusOptions.find((function(t){return t.id===e.sitem.status}))||{}).label||"--")}})],1),t("template",{slot:"order_type"},[t("el-tag",{attrs:{size:"mini"},domProps:{textContent:e._s((e.order_type_options.find((function(t){return t.value===e.sitem.order_type}))||{}).label||"--")}})],1),t("template",{slot:"diff_is_act"},[t("el-tag",{attrs:{size:"mini"},domProps:{textContent:e._s((e.is_act_options.find((function(t){return t.value===e.sitem.diff_is_act}))||{}).label||"--")}})],1),t("template",{slot:"diff_customer_remark"},["1"===e.sitem.diff_is_act?t("el-tag",{attrs:{size:"mini"},domProps:{textContent:e._s((e.customer_remark_options.find((function(t){return t.value===e.sitem.diff_customer_remark}))||{}).label||"--")}}):t("el-tag",{attrs:{size:"mini"},domProps:{textContent:e._s("--")}})],1)],2):e._e()],1),t("el-collapse-item",{attrs:{title:"商品信息",name:"2"}},[""!==e.newTime?t("show-goods-data-table",{attrs:{newTime:e.newTime,type:e.sitem.order_type,skucode:e.sitem.skuCode,spucode:e.sitem.good_code,iscgd:!0}}):e._e()],1)],1)],1),t("el-tab-pane",{attrs:{label:"审批记录",name:"2"}},[""!==e.newTime?t("process-time-line",{attrs:{newTime:e.newTime,type:"CGGCD",orderCode:e.queryId}}):e._e()],1)],1)],1):t("div",[t("no-auth")],1)])}),[],!1,null,"0c102ac5",null);t.default=r.exports},1120:function(e,t,r){"use strict";var a=r("1b69"),n="admin/";t.a={add:function(e,t){return Object(a.a)(n+"purchadd",e,"post",t)},list:function(e,t){return Object(a.a)(n+"purchlist",e,"post",t)},detail:function(e,t){return Object(a.a)(n+"purchinfo",e,"post",t)},purchcgd:function(e,t){return Object(a.a)(n+"purchcgd",e,"post",t)},delete:function(e,t){return Object(a.a)(n+"purchdel",e,"post",t)},update:function(e,t){return Object(a.a)(n+"purchedit",e,"post",t)},status:function(e,t){return Object(a.a)(n+"purchstatus",e,"post",t)},addFee:function(e,t){return Object(a.a)(n+"feedadd",e,"post",t)},feeDetail:function(e,t){return Object(a.a)(n+"feedinfo",e,"post",t)},feeChange:function(e,t){return Object(a.a)(n+"feedchange",e,"post",t)}}},"114f":function(e,t,r){"use strict";r("63e9")},1193:function(e,t,r){},"11f6":function(e,t,r){"use strict";var a=r("1b69"),n="admin/";t.a={add:function(e,t){return Object(a.a)(n+"projectcreate",e,"post",t)},delete:function(e,t){return Object(a.a)(n+"Consultdel",e,"post",t)},list:function(e,t){return Object(a.a)(n+"projectlist",e,"post",t)},detail:function(e,t){return Object(a.a)(n+"projectinfo",e,"post",t)},update:function(e,t){return Object(a.a)(n+"update",e,"post",t)},status:function(e,t){return Object(a.a)(n+"accountstatus",e,"post",t)},catinfo:function(e,t){return Object(a.a)(n+"catinfo",e,"post",t)},rateEdit:function(e,t){return Object(a.a)(n+"projectrate",e,"post",t)},back_good_list:function(e,t){return Object(a.a)(n+"projectfeedlist",e,"post",t)},get_good_online_list:function(e,t){return Object(a.a)(n+"goodplist",e,"post",t)},project_online_good_add:function(e,t){return Object(a.a)(n+"projectaddfed",e,"post",t)},project_online_good_del:function(e,t){return Object(a.a)(n+"projectfeeddel",e,"post",t)},project_make_plan:function(e,t){return Object(a.a)(n+"plancreate",e,"post",t)},get_project_plan:function(e,t){return Object(a.a)(n+"projectplan",e,"post",t)},project_place_order:function(e,t){return Object(a.a)(n+"projectorder",e,"post",t)},addrall:function(e,t){return Object(a.a)(n+"addrall",e,"post",t)}}},"129e":function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=(r("96cf"),r("7db0"),r("d3b7"),r("159b"),r("e9c4"),r("99af"),r("b0c0"),r("d81d"),r("a9e3"),r("11f6")),s=r("9f53"),i=r("4174"),o=r("f0fe"),l=r("ed0b");s={name:"backGoodShow",props:["showModel","sitem","id","type"," newTime"],mixins:[s.a],components:{searchGoodOnlineTableModal:o.default,showGoodsDataTableModal:l.a},computed:{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"projectDetail"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}},watch:{newTime:function(e){e&&this.initForm()}},data:function(){return{row:{},visible:!1,showModel:!1,searchItem:{},loading:!1,allList:[],status:"",projectNo:"",statusOptions:[{value:"1",label:"竞品"},{value:"2",label:"竞聘"}],table:{stripe:!0,border:!0},columns:i.a}},mounted:function(){this.initForm()},methods:{show_view:function(e){var t=e.data_source;this.row=e,2==t?(this.row.data_type_source="3",this.row.dtitle="采返商品详情",this.row.iscgd=!0):(this.row.data_type_source="1",this.row.dtitle="平台商品详情",this.row.iscgd=!1),this.visible=!0},initForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,t.next=3,e.initListData();case 3:return e.loading=!1,t.next=6,e.allSearchList();case 6:case"end":return t.stop()}}),t)})))()},resetFormData:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return t.allList[e].pageInfo={size:15,curr:1,total:0},t.allList[e].loading=!0,t.allList[e].tableData=[],r.next=5,t.searchList(e);case 5:case"end":return r.stop()}}),r)})))()},initListData:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r,a,n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.allList=[],n=e.sitem,r=n.projectNo,a=n.ladder,n=n.status,e.status=n,e.projectNo=r,a&&0<a.length&&a.forEach((function(t){t=JSON.parse(JSON.stringify(t)),t={ladder:[t],pageInfo:{size:15,curr:1,total:0},pgNo:t.pgNo,loading:!1,tableData:[]},t.ladder&&0<t.ladder.length&&t.ladder.forEach((function(e){e.cat_info&&0<e.cat_info.length&&(e.cat_name="",e.cat_info.forEach((function(t,r){e.cat_name+="".concat(0!==r?"_":"").concat(t.name)})))})),e.allList.push(t)}));case 6:case"end":return t.stop()}}),t)})))()},allSearchList:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.allList&&0<e.allList.length&&e.allList.forEach(function(){var t=Object(a.a)(regeneratorRuntime.mark((function t(r,a){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.searchList(a);case 2:case"end":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}());case 1:case"end":return t.stop()}}),t)})))()},handlePageChange:function(e,t){var r=this;return Object(a.a)(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return r.allList[t].pageInfo.curr=e,a.next=3,r.searchList(t);case 3:case"end":return a.stop()}}),a)})))()},handleSizeChange:function(e,t){var r=this;return Object(a.a)(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return r.allList[t].pageInfo.curr=1,r.allList[t].pageInfo.size=e,a.next=4,r.searchList(t);case 4:case"end":return a.stop()}}),a)})))()},searchList:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){var a,s,i,o,l;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return i=t.allList[e],o=i.pageInfo,i=i.pgNo,a=o.size,o=o.curr,t.allList[e].loading=!0,o={page:o,size:a,zxNo:"",infoNo:"",bidNo:"",pgNo:i,projectNo:t.projectNo},r.next=6,n.a.back_good_list(o);case 6:if(a=r.sent,s=a.code,i=a.data,0!==s){r.next=16;break}o=i.list,l=i.count,t.allList[e].tableData=o,t.allList[e].tableData.map((function(e){return e.class_cat="",e.can&&0<e.can.length&&e.can.forEach((function(t,r){e.class_cat+=0===r?t.name:"_"+t.name})),e.model="",e.specinfo&&0<e.specinfo.length&&e.specinfo.forEach((function(t,r){e.model+="".concat(0!==r?"--":"").concat(t.spec_name,"[").concat(t.spec_value_name,"]")})),e})),t.allList[e].pageInfo.total=Number(l),r.next=23;break;case 16:if(100<=s&&s<=104)return r.next=19,t.logout();r.next=21;break;case 19:r.next=23;break;case 21:t.allList[e].tableData=[],t.allList[e].pageInfo.total=0;case 23:t.allList[e].loading=!1;case 24:case"end":return r.stop()}}),r)})))()},addId:function(e){var t=JSON.parse(JSON.stringify(this.allList[e].ladder));this.searchItem=t[0],this.searchItem.platform_code=this.sitem.platform_code,this.searchItem.platform_id=this.sitem.platform_id,this.searchItem.platform_name=this.sitem.platform_name,this.searchItem.company=this.sitem.company,this.searchItem.companyNo=this.sitem.companyNo,this.searchItem.pgNo_index=e,this.showModel=!0},deleteId:function(e,t){var r=this;return Object(a.a)(regeneratorRuntime.mark((function s(){return regeneratorRuntime.wrap((function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,r.$confirm("确定要删除?",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(a.a)(regeneratorRuntime.mark((function a(){var s,i;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return s={id:[e]},a.next=3,n.a.project_online_good_del(s);case 3:if(!(i=a.sent)||0!==i.code){a.next=9;break}r.$notify.success({title:"删除成功",message:""}),r.searchList(t),a.next=15;break;case 9:if(i&&100<=i.code&&i.code<=104)return a.next=12,r.logout();a.next=14;break;case 12:a.next=15;break;case 14:r.$message.warning(i.message);case 15:case"end":return a.stop()}}),a)})))).catch((function(){}));case 2:case"end":return s.stop()}}),s)})))()}}},r("96cc"),o=r("2877"),l=Object(o.a)(s,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"project-backGoodShow"},[e._l(e.allList,(function(t,a){return r("div",{key:t.title+a,staticClass:"project-backGoodShow-main"},[r("div",{staticClass:"project-backGoodShow-title"},[e._v("商品要求"+e._s(a+1))]),r("div",{staticClass:"project-backGoodShow-ask-table"},[t.ladder?[r("el-table",{staticStyle:{width:"100%"},attrs:{data:t.ladder,size:"mini",border:"",stripe:""}},[r("el-table-column",{attrs:{prop:"good_type",label:"商品类型",width:"80px"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-tag",{attrs:{size:"mini"},domProps:{textContent:e._s((e.statusOptions.find((function(e){return e.value==t.row.good_type}))||{}).label||"--")}})]}}],null,!0)}),r("el-table-column",{attrs:{prop:"budget_price",label:"预算单价",width:"110"}}),r("el-table-column",{attrs:{prop:"num",label:"购买数量",width:"110"}}),r("el-table-column",{attrs:{prop:"cat_name",label:"商品分类"}}),r("el-table-column",{attrs:{prop:"good_img",label:"图片",width:"50"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.good_img?r("div",{directives:[{name:"viewer",rawName:"v-viewer"}],staticClass:"hover",staticStyle:{width:"20px",height:"20px"}},[r("img",{staticStyle:{display:"inline-block",width:"100%",height:"100%"},attrs:{src:t.row.good_img,alt:""}})]):e._e()]}}],null,!0)}),r("el-table-column",{attrs:{prop:"good_name",label:"商品名称"}})],1)]:e._e()],2),r("div",{staticClass:"project-backGoodShow-title"},[e._v(" 商品反馈情况 "),e.powers&&0<e.powers.length&&e.powers.some((function(e){return"062"==e}))&&("1"===e.status||"2"===e.status)?r("el-tooltip",{staticClass:"fr",staticStyle:{margin:"16px 10px 0 0"},attrs:{effect:"dark",content:"添加线上商品",placement:"top"}},[r("i",{staticClass:"el-icon-zoom-in tb-icon",on:{click:function(t){return e.addId(a)}}})]):e._e()],1),r("div",{staticClass:"project-backGoodShow-backGood-table"},[t.tableData?[r("ex-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"item.loading"}],attrs:{table:e.table,data:t.tableData,columns:e.columns,page:t.pageInfo,size:"mini"},on:{"page-curr-change":function(t){return e.handlePageChange(t,a)},"page-size-change":function(t){return e.handleSizeChange(t,a)},"screen-reset":function(r){t.pageInfo.curr=1,t.page=1,e.searchList(a)},"screen-submit":function(r){t.pageInfo.curr=1,t.page=1,e.searchList(a)}},scopedSlots:e._u([{key:"good_img",fn:function(t){return t=t.scope,[t.row.good_img?r("div",{directives:[{name:"viewer",rawName:"v-viewer"}],staticClass:"hover",staticStyle:{width:"20px",height:"20px"}},[r("img",{staticStyle:{display:"inline-block",width:"100%",height:"100%"},attrs:{src:t.row.good_img,alt:""}})]):e._e()]}},{key:"good_name",fn:function(t){return t=t.scope,[r("span",[e._v(e._s(t.row.good_name))]),e._l(t.row.specinfo,(function(t,a){return r("span",{key:t.id+a},[e._v(" "+e._s(0===a?"_":"-")+e._s(t.spec_name)+"["+e._s(t.spec_value_name)+"] ")])}))]}},{key:"source",fn:function(t){return t=t.scope,[r("el-tag",{attrs:{size:"mini",type:"1"===t.row.data_source?"success":""}},[e._v(e._s("1"===t.row.data_source?"平台商品":"采反商品"))])]}},{key:"operation",fn:function(t){var n=t.scope;return[e.powers.some((function(e){return"007"==e}))?r("el-tooltip",{attrs:{effect:"dark",content:"详情",placement:"top"}},[r("i",{staticClass:"el-icon-view tb-icon",on:{click:function(t){return e.show_view(n.row)}}})]):e._e(),"1"===n.row.data_source&&"2"===e.status?r("el-tooltip",{attrs:{effect:"dark",content:"删除",placement:"top"}},[r("i",{staticClass:"el-icon-delete tb-icon",on:{click:function(t){return e.deleteId(n.row.id,a)}}})]):e._e()]}}],null,!0)})]:e._e()],2)])})),r("search-good-online-table-modal",{attrs:{showModel:e.showModel,sitem:e.searchItem},on:{cancel:function(t){e.showModel=!1},submitRes:e.resetFormData}}),r("show-goods-data-table-modal",{attrs:{showModel:e.visible,type:e.row.data_type_source,title:e.row.dtitle,skuCode:e.row.skuCode,spuCode:e.row.spuCode,iscgd:e.row.iscgd},on:{cancel:function(t){e.visible=!1}}})],2)}),[],!1,null,"f1847c62",null);t.default=l.exports},"130d":function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=r("5530"),s=(r("96cf"),r("7db0"),r("d3b7"),r("e9c4"),r("159b"),r("c740"),r("b0c0"),r("a9e3"),r("1b69")),i="admin/",o={list:function(e,t){return Object(s.a)(i+"msglist",e,"post",t)},detail:function(e,t){return Object(s.a)(i+"msginfo",e,"post",t)},status:function(e,t){return Object(s.a)(i+"msglimitread",e,"post",t)},allStatus:function(e,t){return Object(s.a)(i+"msgallread",e,"post",t)}},l=r("f5ed"),c=r("2f62"),u=r("9f53"),d=r("6b0b");l={name:"role",mixins:[l.a,u.a],computed:Object(n.a)(Object(n.a)({},Object(c.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"read"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),data:function(){return{process_router_list:JSON.parse(JSON.stringify(d.b)),loading:!0,parmValue:{page:1,size:15,is_read:"1",order_type:"",orderCode:""},tableData:[],table:{stripe:!0,border:!0,_defaultHeader_:["setcol"]},pageInfo:{size:15,curr:1,total:0},columns:d.a}},mounted:function(){this.searchList()},methods:{getRouter:function(e,t){e&&t?this.routeGoto(e,{id:t,type:"view"}):this.$message.warning("暂未找到相关流程!")},restSearch:function(){this.pageInfo={size:15,curr:1,total:0},this.parmValue={page:1,size:15,is_read:"1",order_type:"",orderCode:""},this.searchList()},searchList:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,t.next=3,o.list(e.parmValue);case 3:if(!(r=t.sent)||0!==r.code||!r.data){t.next=10;break}e.tableData=r.data.list,e.tableData.forEach((function(t,r){var a,n,s=e.process_router_list.findIndex((function(e){return e.type===t.order_type}));-1!==s?(a=(s=e.process_router_list[s]).name,n=s.toRouter,s=s.to,e.tableData[r].process_name=a,e.tableData[r].toRouter=n,e.tableData[r].queryId="code"==s?t.order_code:t.order_id):(e.tableData[r].process_name="",e.tableData[r].toRouter="",e.tableData[r].queryId="")})),e.pageInfo.total=Number(r.data.count),t.next=17;break;case 10:if(r&&100<=r.code&&r.code<=104)return t.next=13,e.logout();t.next=15;break;case 13:t.next=17;break;case 15:e.tableData=[],e.pageInfo.total=0;case 17:e.loading=!1;case 18:case"end":return t.stop()}}),t)})))()},searchProList:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,t.next=3,o.processList({page:1,size:50});case 3:if(!(r=t.sent)||0!==r.code||!r.data){t.next=8;break}t.next=15;break;case 8:if(r&&100<=r.code&&r.code<=104)return t.next=11,e.logout();t.next=13;break;case 11:t.next=15;break;case 13:e.tableData=[],e.pageInfo.total=0;case 15:e.loading=!1;case 16:case"end":return t.stop()}}),t)})))()}}},u=r("2877"),n=Object(u.a)(l,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"read pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?r("ex-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{table:e.table,data:e.tableData,columns:e.columns,page:e.pageInfo,size:e.size},on:{"page-curr-change":e.handlePageChange,"page-size-change":e.handleSizeChange,"screen-reset":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()},"screen-submit":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},scopedSlots:e._u([{key:"table-header",fn:function(t){return[r("el-row",{staticStyle:{padding:"0 0 0 80px",width:"100%"},attrs:{gutter:10}},[r("el-col",{staticStyle:{width:"230px"},attrs:{span:10}},[r("el-select",{staticStyle:{width:"100%"},attrs:{clearable:"",size:"mini",placeholder:"订单类型"},on:{click:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.parmValue.order_type,callback:function(t){e.$set(e.parmValue,"order_type",t)},expression:"parmValue.order_type"}},e._l(e.process_router_list,(function(e){return r("el-option",{key:e.type,attrs:{label:e.name,value:e.type}})})),1)],1),r("el-col",{staticStyle:{width:"400px",padding:"0 0 0 10px"},attrs:{span:10}},[r("el-input",{attrs:{size:"mini",placeholder:"订单编号",maxlength:"40"},on:{blur:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.parmValue.orderCode,callback:function(t){e.$set(e.parmValue,"orderCode",t)},expression:"parmValue.orderCode"}})],1),r("el-col",{staticStyle:{width:"66px",float:"right"},attrs:{span:3}},[r("el-button",{staticStyle:{float:"right"},attrs:{type:"primary",size:e.searchSize},on:{click:e.searchList}},[e._v(" 刷新 ")])],1)],1)]}},{key:"operation",fn:function(t){var a=t.scope;return[e.powers.some((function(e){return"007"==e}))?r("el-tooltip",{attrs:{effect:"dark",content:"详情",placement:"top"}},[r("i",{staticClass:"el-icon-view tb-icon",on:{click:function(t){return e.getRouter(a.row.toRouter,a.row.queryId)}}})]):e._e()]}}],null,!1,3256316411)}):r("no-auth")],1)}),[],!1,null,"a5fbdb82",null);t.default=n.exports},1394:function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=(r("96cf"),r("d3b7"),r("159b"),r("f235")),s=r("e5ab"),i=r("9f53");n={name:"tolerance",components:{addEditModel:n.default},props:["id","sitem","newTime","showBtn"],mixins:[i.a],data:function(){return{diffAdd:!1,order_type:"",spuCode:"",is_noble:!1,isshow:!1,showItem:null,cgdNo:""}},mounted:function(){var e=this.sitem,t=e.order_type,r=e.spuCode;e=e.cgdNo;this.order_type=t,this.spuCode=r,this.cgdNo=e,this.initData()},methods:{initData:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r,a,n,i,o,l;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r={},"1"===e.order_type||"2"===e.order_type)return t.next=4,s.a.cost_detail({spuCode:e.spuCode});t.next=7;break;case 4:r=t.sent,t.next=10;break;case 7:return t.next=9,s.a.re_detail({spuCode:e.spuCode});case 9:r=t.sent;case 10:if(a=(n=r).code,l=n.data,n=n.message,0!==a){t.next=17;break}i=l.cat_info,o=l.is_diff,l=l.noble_weight,i&&0<i.length&&i.forEach((function(t){"6"===t.id&&(e.is_noble=!0)})),e.is_noble&&"1"===o&&(e.isshow=!0,e.showItem={cgdNo:e.cgdNo,good_num:e.sitem.good_num,weight:l}),t.next=23;break;case 17:if(100<=a&&a<=104)return t.next=20,e.logout();t.next=22;break;case 20:t.next=23;break;case 22:e.$message.warning(n);case 23:case"end":return t.stop()}}),t)})))()},showDiffAdd:function(){}}},i=r("2877"),r=Object(i.a)(n,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("span",[t("el-button",{directives:[{name:"show",rawName:"v-show",value:e.isshow&&e.showBtn&&e.order_type&&"1"!==e.order_type,expression:"isshow && showBtn && order_type && order_type !== '1'"}],staticClass:"fr",staticStyle:{margin:"0 0 0 12px"},attrs:{type:"primary",size:"mini"},on:{click:function(t){e.diffAdd=!0}}},[e._v("填写总工差")]),t("add-edit-model",{attrs:{sitem:e.showItem,"show-model":e.diffAdd},on:{refresh:e.initData,cancel:function(t){e.diffAdd=!1}}})],1)}),[],!1,null,"948ae83a",null);t.default=r.exports},"13ce":function(e,t,r){},"13fb":function(e,t,r){"use strict";r("e000")},"14ac":function(e,t,r){},1598:function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=(r("e9c4"),r("d3b7"),r("159b"),r("99af"),r("96cf"),r("f1ed")),s={name:"brand",props:["showModel","id","sitem"],mixins:[r("9f53").a],data:function(){return{loading:!1,showModelThis:this.showModel,ruleForm:{platform:"",online_reason:"",online_remark:""},options1:[{id:"0",name:"否"},{id:"1",name:"是"}],rulesThis:this.rules,rules:{platform:[{required:!0,message:"请选择所属平台",trigger:"change"}],online_reason:[{required:!0,message:"上线原因不能为空",trigger:"blur"}],online_remark:[{required:!0,message:"上线备注不能为空",trigger:"blur"}]}}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis:function(e){e||this.$emit("cancel")}},methods:{initForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,e.rulesThis=e.rules,t.next=4,e.resetForm();case 4:e.loading=!1;case 5:case"end":return t.stop()}}),t)})))()},resetForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$nextTick((function(){e.$refs.ruleForm&&(e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),e.ruleForm={platform:"",online_reason:"",online_remark:""})}));case 2:case"end":return t.stop()}}),t)})))()},platform_codesearchChange:function(e){var t=e.id;e.code,e.label,this.ruleForm.platform=t||"",this.$refs.ruleForm.validateField("platform")},submitForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.ruleForm.validate(function(){var t=Object(a.a)(regeneratorRuntime.mark((function t(r){var a,s,i,o,l;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r)return e.loading=!0,(a=JSON.parse(JSON.stringify(e.ruleForm))).codes=[],JSON.parse(JSON.stringify(e.sitem)).forEach((function(e){a.codes.push(e.spuCode)})),t.next=8,n.a.online_add(a);t.next=27;break;case 8:if(o=t.sent,s=o.code,i=o.data,o.message,e.loading=!1,0!==s){t.next=19;break}e.$notify.success({title:"已成功添加至上线流程!",message:""}),e.showModelThis=!1,e.$emit("refresh"),t.next=25;break;case 19:if(100<=s&&s<=104)return t.next=22,e.logout();t.next=24;break;case 22:t.next=25;break;case 24:1009===s?(o=JSON.parse(JSON.stringify(i)),l="<ul>",o.forEach((function(e){l+="<li>\n <img src='".concat(e.good_img,"' style='width: 20px; height: 20px'\n class='hover'\n v-viewer/>\n <span>").concat(e.good_name,"__</span>");e=e.speclist;var t="<span>";e.forEach((function(e,r){t+="".concat(0!==r?"--":"").concat(e.spec_name,"[").concat(e.spec_value,"]")})),l+=t+"</span></li>"})),l+="</ul>",e.$notify({title:"一下商品已上线或已经在审批流程中!",dangerouslyUseHTMLString:!0,message:l})):e.$message.warning(res.message);case 25:t.next=29;break;case 27:return t.abrupt("return",!1);case 29:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()}}};r("a5f8"),r=r("2877"),r=Object(r.a)(s,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:"添加商品上线",center:!0,align:"left",top:"8vh",width:"1040px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)"},on:{"update:visible":function(t){e.showModelThis=t},close:function(t){e.showModelThis=!1}}},[r("el-card",{staticStyle:{margin:"-20px 0 0 0","padding-bottom":"0"}},[r("el-row",{attrs:{gutter:10}},[r("el-col",{staticStyle:{padding:"0 0 15px 0"},attrs:{span:24}},[r("el-table",{staticStyle:{width:"100%"},attrs:{data:e.sitem,stripe:"",size:"mini",border:"","max-height":"380px"}},[r("el-table-column",{attrs:{prop:"spuCode",label:"编号",width:"160","show-overflow-tooltip":""}}),r("el-table-column",{attrs:{prop:"good_thumb_img",label:"图片",width:"45","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.good_thumb_img?r("div",{directives:[{name:"viewer",rawName:"v-viewer"}],staticClass:"hover",staticStyle:{width:"20px",height:"20px"}},[r("img",{staticStyle:{display:"inline-block",width:"100%",height:"100%"},attrs:{src:t.row.good_thumb_img,alt:""}})]):e._e()]}}])}),r("el-table-column",{attrs:{prop:"good_name",label:"名称","min-width":"160px","show-overflow-tooltip":""}}),r("el-table-column",{attrs:{prop:"cat_name",label:"分类","min-width":"100","show-overflow-tooltip":""}}),r("el-table-column",{attrs:{prop:"brand_name",label:"品牌","show-overflow-tooltip":""}}),r("el-table-column",{attrs:{prop:"good_type",label:"定制",width:"50","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-tag",{attrs:{size:"mini",type:"1"==t.row.good_type?"":"warning"},domProps:{textContent:e._s((e.options1.find((function(e){return e.id==t.row.status}))||{}).name||"--")}})]}}])}),r("el-table-column",{attrs:{prop:"supplierNo",label:"供应商编号",width:"110","show-overflow-tooltip":""}}),r("el-table-column",{attrs:{prop:"supplier_name",label:"供应商名称",width:"110","show-overflow-tooltip":""}}),r("el-table-column",{attrs:{prop:"companyNo",label:"业务公司编号",width:"110","show-overflow-tooltip":""}}),r("el-table-column",{attrs:{prop:"company",label:"业务公司名称",width:"110","show-overflow-tooltip":""}})],1)],1),r("el-col",{attrs:{span:24}},[r("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",rules:e.rulesThis,"label-width":"80px"}},[r("el-row",{staticStyle:{}},[r("el-col",{attrs:{span:8}},[r("el-form-item",{attrs:{label:"所属平台",prop:"platform"}},[r("search-terrace",{attrs:{value:e.ruleForm.platform,disabled:!1,isDetail:!1,placeholder:"所属平台"},on:{searchChange:e.platform_codesearchChange}})],1),r("el-form-item",{attrs:{label:"上线原因",prop:"online_reason"}},[r("el-input",{attrs:{disabled:!1,placeholder:"上线原因",maxlength:"200"},model:{value:e.ruleForm.online_reason,callback:function(t){e.$set(e.ruleForm,"online_reason",t)},expression:"ruleForm.online_reason"}})],1)],1),r("el-col",{staticStyle:{"text-align":"right"},attrs:{span:16}},[r("el-form-item",{attrs:{label:"上线备注",prop:"online_remark"}},[r("el-input",{attrs:{type:"textarea",rows:3,disabled:!1,placeholder:"商品备注",maxlength:"2000","show-word-limit":""},model:{value:e.ruleForm.online_remark,callback:function(t){e.$set(e.ruleForm,"online_remark",t)},expression:"ruleForm.online_remark"}})],1),"007"!==e.id?r("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.submitForm}},[e._v("保 存 ")]):e._e(),r("el-button",{attrs:{size:"mini"},on:{click:function(t){e.showModelThis=!1}}},[e._v(e._s("007"==e.id?"关 闭":"取 消"))])],1)],1)],1)],1)],1)],1)],1)}),[],!1,null,"d15fd8ce",null);t.default=r.exports},"15a7":function(e,t,r){"use strict";r("6551")},"15af":function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=r("5530"),s=(r("96cf"),r("7db0"),r("d3b7"),r("e9c4"),r("a9e3"),r("d57f")),i=r("f5ed"),o=r("2f62"),l=r("9f53"),c=[{prop:"activity_code",label:"活动编码",fixed:"left",width:"155"},{prop:"activity_name",label:"活动名称"},{prop:"status",label:"状态",width:"105",_slot_:"status"},{prop:"atime",label:"活动时间",_slot_:"atime",width:"270"},{prop:"platform_name",label:"平台名称"},{prop:"creater",label:"创建人",width:"60"},{prop:"addtime",label:"创建时间",width:"142"},{prop:"",label:"操作",fixed:"right",_noset_:!0,_slot_:"operation",width:"50"}];i={name:"active",mixins:[i.a,l.a],computed:Object(n.a)(Object(n.a)({},Object(o.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"active"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),data:function(){return{select:"1",sinput:"",loading:!1,parmValue:{activity_name:"",activity_code:"",status:"",platform_code:"",starttime:"",endtime:"",page:1,size:15,company_id:"",creater:""},statusOptions:[{id:"0",label:"待产品部审核"},{id:"1",label:"待采购定价"},{id:"2",label:"待财务定售价"},{id:"3",label:"待活动价审核"},{id:"4",label:"审核完成"},{id:"5",label:"活动未开始"},{id:"6",label:"活动进行中"},{id:"7",label:"活动已结束"},{id:"8",label:"审核未通过"}],tableData:[],table:{stripe:!0,border:!0,_defaultHeader_:["setcol"]},pageInfo:{size:15,curr:1,total:0},columns:c}},mounted:function(){this.searchList()},methods:{restSearch:function(){this.pageInfo={size:15,curr:1,total:0},this.parmValue={activity_name:"",activity_code:"",status:"",platform_code:"",starttime:"",endtime:"",page:1,size:15,company_id:"",creater:""},this.searchList()},platform_codesearchChange:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){var a;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a=e.id,e.code,e.label,t.parmValue.platform_code=a||"",t.pageInfo.curr=1,t.parmValue.page=1,r.next=6,t.searchList();case 6:case"end":return r.stop()}}),r)})))()},company_idsearchChange:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){var a;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return e.id,a=e.code,e.label,t.parmValue.company_id=a||"",t.pageInfo.curr=1,t.parmValue.page=1,r.next=6,t.searchList();case 6:case"end":return r.stop()}}),r)})))()},openModal:function(e,t){this.sitem=e,this.modelId=t,this.showModel=!0},handleTime:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t.parmValue.starttime=e.startTime||"",t.parmValue.endtime=e.endTime||"",""!==t.parmValue.starttime&&""!==t.parmValue.endtime||""===t.parmValue.starttime&&""===t.parmValue.endtime)return t.pageInfo.curr=1,t.parmValue.page=1,r.next=7,t.searchList();r.next=7;break;case 7:case"end":return r.stop()}}),r)})))()},changeStatus:function(e,t){var r=this;return Object(a.a)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r.$confirm("确定要改为".concat("1"===t?"禁用":"启用","?"),{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(a.a)(regeneratorRuntime.mark((function a(){var n,i;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return r.loading=!0,n={id:e,status:"1"===t?"0":"1"},a.next=4,s.a.status(n);case 4:if((i=a.sent)&&0===i.code)return r.loading=!1,r.$notify.success({title:"状态修改成功!",message:""}),a.next=10,r.searchList();a.next=12;break;case 10:a.next=19;break;case 12:if(i&&100<=i.code&&i.code<=104)return a.next=15,r.logout();a.next=17;break;case 15:a.next=19;break;case 17:r.loading=!1,r.$message.warning(i.message);case 19:case"end":return a.stop()}}),a)})))).catch((function(){}));case 2:case"end":return n.stop()}}),n)})))()},deleteItem:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t.$confirm("确定要删除?",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(a.a)(regeneratorRuntime.mark((function r(){var a,n;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a={id:e},r.next=3,s.a.delete(a);case 3:if(!(n=r.sent)||0!==n.code){r.next=9;break}t.$notify.success({title:"删除成功",message:""}),t.searchList(),r.next=15;break;case 9:if(n&&100<=n.code&&n.code<=104)return r.next=12,t.logout();r.next=14;break;case 12:r.next=15;break;case 14:t.$message.warning(n.message);case 15:case"end":return r.stop()}}),r)})))).catch((function(){}));case 2:case"end":return r.stop()}}),r)})))()},searchList:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r,a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(""!==e.parmValue.starttime&&""===e.parmValue.endtime||""===e.parmValue.starttime&&""!==e.parmValue.endtime)return e.$message.warning("时间区间不完整!"),t.abrupt("return");t.next=3;break;case 3:return e.loading=!0,(r=JSON.parse(JSON.stringify(e.parmValue))).activity_name="1"===e.select?e.sinput:"",r.activity_code="2"===e.select?e.sinput:"",r.creater="3"===e.select?e.sinput:"",t.next=10,s.a.list(r);case 10:if(!(a=t.sent)||0!==a.code||!a.data){t.next=16;break}e.tableData=a.data.list,e.pageInfo.total=Number(a.data.count),t.next=23;break;case 16:if(a&&100<=a.code&&a.code<=104)return t.next=19,e.logout();t.next=21;break;case 19:t.next=23;break;case 21:e.tableData=[],e.pageInfo.total=0;case 23:e.loading=!1;case 24:case"end":return t.stop()}}),t)})))()}}},l=r("2877"),n=Object(l.a)(i,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"active pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?r("ex-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{table:e.table,data:e.tableData,columns:e.columns,page:e.pageInfo,size:e.size},on:{"page-curr-change":e.handlePageChange,"page-size-change":e.handleSizeChange,"screen-reset":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()},"screen-submit":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},scopedSlots:e._u([{key:"table-header",fn:function(t){return[r("div",{staticStyle:{width:"100%"}},[r("el-row",{staticStyle:{padding:"0 0 10px 80px"}},[r("el-col",{staticStyle:{width:"240px"},attrs:{span:6}},[r("search-terrace",{attrs:{value:e.parmValue.platform_code,disabled:!1,size:"mini",isDetail:!1,placeholder:"所属平台"},on:{searchChange:e.platform_codesearchChange}})],1),r("el-col",{staticStyle:{width:"205px",padding:"0 0 0 10px"},attrs:{span:4}},[r("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"",clearable:"",size:e.searchSize,placeholder:"活动状态"},on:{change:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.parmValue.status,callback:function(t){e.$set(e.parmValue,"status",t)},expression:"parmValue.status"}},e._l(e.statusOptions,(function(e){return r("el-option",{key:"status"+e.id,attrs:{label:e.label,value:e.id}})})),1)],1),r("el-col",{staticStyle:{width:"303px",padding:"0 0 0 10px"},attrs:{span:6}},[r("period-date-picker",{attrs:{type:1,width:"135px",size:e.searchSize,start:e.parmValue.starttime,end:e.parmValue.endtime},on:{timeReturned:e.handleTime}})],1),r("el-col",{staticClass:"fr",staticStyle:{width:"66px",padding:"0 0 0 10px"},attrs:{span:3}},[r("el-button",{attrs:{type:"primary",size:e.searchSize},on:{click:e.searchList}},[e._v(" 刷新 ")])],1),r("el-col",{staticClass:"fr",staticStyle:{width:"66px",padding:"0 0 0 10px"},attrs:{span:3}},[r("el-button",{attrs:{type:"warning",size:e.searchSize},on:{click:e.restSearch}},[e._v(" 重置 ")])],1)],1),r("el-row",[r("el-col",{staticStyle:{width:"320px"},attrs:{span:4}},[r("search-work-company",{attrs:{value:e.parmValue.company_id,placeholder:"业务公司",disabled:!1,size:e.searchSize,isDetail:!1},on:{searchChange:e.company_idsearchChange}})],1),r("el-col",{staticStyle:{width:"373px",padding:"0 0 0 10px"},attrs:{span:4}},[r("el-input",{attrs:{size:e.searchSize,maxlength:40,clearable:"",placeholder:"关键字"},on:{blur:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.sinput,callback:function(t){e.sinput=t},expression:"sinput"}},[r("el-select",{staticStyle:{width:"130px"},attrs:{slot:"prepend",placeholder:"关键字类型"},on:{change:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},slot:"prepend",model:{value:e.select,callback:function(t){e.select=t},expression:"select"}},[r("el-option",{attrs:{label:"活动名称",value:"1"}}),r("el-option",{attrs:{label:"活动编码",value:"2"}}),r("el-option",{attrs:{label:"创建人",value:"3"}})],1)],1)],1),e.powers.some((function(e){return"003"==e}))?r("el-col",{staticClass:"fr",staticStyle:{width:"66px",padding:"0 0 0 10px"},attrs:{span:3}},[r("el-button",{staticStyle:{float:"right"},attrs:{size:e.searchSize,type:"success"},on:{click:function(t){return e.routeGoto("activeDetail",{id:"add",type:"add"})}}},[e._v(" 添加 ")])],1):e._e()],1)],1)]}},{key:"status",fn:function(t){var a=t.scope;return[r("el-tag",{attrs:{size:e.tablebtnSize,type:"4"==a.row.status?"":"8"==a.row.status?"danger":"5"==a.row.status||"7"==a.row.status?"info":"warning"},domProps:{textContent:e._s((e.statusOptions.find((function(e){return e.id==a.row.status}))||{}).label||"--")}})]}},{key:"atime",fn:function(t){return t=t.scope,[e._v(" "+e._s(t.row.start)+"~"+e._s(t.row.end)+" ")]}},{key:"operation",fn:function(t){var a=t.scope;return[e.powers.some((function(e){return"007"==e}))?r("el-tooltip",{attrs:{effect:"dark",content:"详情",placement:"top"}},[r("i",{staticClass:"el-icon-view tb-icon",on:{click:function(t){return e.routeGoto("activeDetail",{id:a.row.activity_code,type:"view"})}}})]):e._e()]}}],null,!1,1235248275)}):r("no-auth"),r("add-edit",{attrs:{id:e.modelId,"show-model":e.showModel,sitem:e.sitem},on:{refresh:e.searchList,cancel:function(t){e.showModel=!1}}})],1)}),[],!1,null,"565ad850",null);t.default=n.exports},"15f1":function(e,t,r){},1733:function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=(r("96cf"),r("7db0"),r("d3b7"),r("61f7")),s=(r("de14"),{name:"supplier_feedback",props:["id","showModelThis","newTime"],mixins:[r("9f53").a],data:function(){return{loading:!1,status:"",showModelThis:this.showModel,ruleForm:{whether_back:"",feedback_remark:"",return_goods_addr:[],addr_detail:"",addressee:"",addressee_phone:"",express_require:""},rulesThis:this.rules,rules:{whether_back:[{required:!0,trigger:"change",message:"请选择是否同意退回"}],feedback_remark:[{required:!0,message:"请输入反馈备注",trigger:"blur"}],return_goods_addr:[{type:"array",required:!0,message:"请选择退回地址所在省/市/区",trigger:"change"}],addr_detail:[{required:!0,message:"请输入详细退货地址",trigger:"blur"}],addressee:[{required:!0,message:"请输入收件人",trigger:"blur"}],addressee_phone:[{required:!0,trigger:"blur",validator:function(e,t,r){""===t?r(new Error("手机号不能为空!")):Object(n.g)(t)?r():r(new Error("手机号格式不正确!"))}}],express_require:[{required:!0,trigger:"blur",message:"请输入物流信息"}]},whether_back_options:[{value:"value1",label:"同意退回"},{value:"value2",label:"拒绝退回"}]}},computed:{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"supplier_feedback"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}},mounted:function(){this.initForm()},watch:{id:function(e){e&&this.initForm()},newTime:function(e){e&&this.initForm()}},methods:{closeAdd:function(){this.showModelThis=!1},initForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.loading=!0,"add"===e.id)return e.rulesThis=e.rules,t.next=5,e.resetForm();t.next=7;break;case 5:t.next=10;break;case 7:return e.rulesThis=e.rules,t.next=10,e.resetForm();case 10:e.loading=!1;case 11:case"end":return t.stop()}}),t)})))()},resetForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$nextTick((function(){e.$refs.ruleForm&&(e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),e.ruleForm={whether_back:"",feedback_remark:"",return_goods_addr:[],addr_detail:"",addressee:"",addressee_phone:"",express_require:""})}));case 2:case"end":return t.stop()}}),t)})))()},submitForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.ruleForm.validate(function(){var e=Object(a.a)(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()},handleView:function(e){this.ruleForm.whether_back=e,this.$refs.ruleForm.validateField("return_goods_addr")},selectAreaAddr_code:function(e){this.ruleForm.return_goods_addr=e,this.$refs.ruleForm.validateField("return_goods_addr")}}});r=r("2877"),r=Object(r.a)(s,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",staticStyle:{width:"100%"},attrs:{loading:e.loading,model:e.ruleForm,"status-icon":"",rules:e.rulesThis,"label-width":"100px"}},[r("el-row",[r("el-row",[r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"是否同意",prop:"whether_back"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择是否同意退回"},on:{change:e.handleView},model:{value:e.ruleForm.whether_back,callback:function(t){e.$set(e.ruleForm,"whether_back",t)},expression:"ruleForm.whether_back"}},e._l(e.whether_back_options,(function(e){return r("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"反馈备注",prop:"feedback_remark"}},[r("el-input",{attrs:{type:"textarea",placeholder:"请输入反馈备注",maxlength:"250","show-word-limit":""},model:{value:e.ruleForm.feedback_remark,callback:function(t){e.$set(e.ruleForm,"feedback_remark",t)},expression:"ruleForm.feedback_remark"}})],1)],1)],1),"value1"===e.ruleForm.whether_back?r("el-row",[r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"退回地址",prop:"return_goods_addr"}},[r("select-area",{attrs:{placeholder:"请选择省/市/区",value:e.ruleForm.return_goods_addr,"is-detail":"add"!==e.id},on:{selectChange:e.selectAreaAddr_code}})],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"详细地址",prop:"addr_detail"}},[r("el-input",{attrs:{placeholder:"请输入退货详细地址",maxlength:"100"},model:{value:e.ruleForm.addr_detail,callback:function(t){e.$set(e.ruleForm,"addr_detail",t)},expression:"ruleForm.addr_detail"}})],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"收件人",prop:"addressee"}},[r("el-input",{attrs:{placeholder:"请输入收件人",maxlength:"20"},model:{value:e.ruleForm.addressee,callback:function(t){e.$set(e.ruleForm,"addressee",t)},expression:"ruleForm.addressee"}})],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"收件人电话",prop:"addressee_phone"}},[r("el-input",{attrs:{placeholder:"请输入收件人电话",maxlength:"11"},model:{value:e.ruleForm.addressee_phone,callback:function(t){e.$set(e.ruleForm,"addressee_phone",t)},expression:"ruleForm.addressee_phone"}})],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"物流要求",prop:"express_require"}},[r("el-input",{attrs:{placeholder:"请输入物流",maxlength:"100"},model:{value:e.ruleForm.express_require,callback:function(t){e.$set(e.ruleForm,"express_require",t)},expression:"ruleForm.express_require"}})],1)],1)],1):e._e(),r("el-col",{staticStyle:{"text-align":"right"},attrs:{span:24}},[r("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("保 存")]),"0"===e.status&&e.powers.some((function(e){return"012"==e}))?r("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.statusConfirm("1","发起审核流程")}}},[e._v("发起审核流程 ")]):e._e(),"1"===e.status&&e.powers.some((function(e){return"014"==e}))?r("el-button",{attrs:{plain:""},on:{click:function(t){return e.statusConfirm("0","取消审核流程")}}},[e._v("取消审核流程")]):e._e(),"0"!==e.status&&"1"!==e.status||!e.powers.some((function(e){return"015"==e}))?e._e():r("el-button",{attrs:{type:"danger",plain:""},on:{click:function(t){return e.statusConfirm("-1","作废该条信息")}}},[e._v("作废该条信息")]),"1"===e.status&&e.powers.some((function(e){return"016"==e}))?r("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.statusConfirm("2","通过审核")}}},[e._v("通过审核")]):e._e()],1)],1)],1)}),[],!1,null,null,null);t.default=r.exports},1842:function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=(r("e9c4"),r("96cf"),r("1fd2")),s=r("61f7"),i={name:"Account",props:["showModel","id","isDetail"],mixins:[r("9f53").a],data:function(){var e=this;return{roleList:[],loading:!1,title:"重置密码",showModelThis:this.showModel,ruleForm:{id:this.id,password:"",confirmPassword:""},rulesThis:this.rules,rules:{password:[{required:!0,trigger:"blur",validator:function(e,t,r){""===t?r(new Error("新密码不能为空!")):!Object(s.b)(t)||t.length<6||16<t.length?r(new Error("新密码为6-16位数字字母组合!")):Object(s.k)(t)?r(new Error("新密码不能为纯数字!")):Object(s.r)(t)?r(new Error("新密码不能为纯字母!")):r()}}],confirmPassword:[{required:!0,trigger:"blur",validator:function(t,r,a){""===r?a(new Error("确认密码不能为空!")):e.ruleForm.password!==r?a(new Error("确认密码与新密码不一致!")):a()}}]}}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis:function(e){e||this.$emit("cancel")}},methods:{initForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.rulesThis=e.rules,t.next=3,e.resetForm();case 3:case"end":return t.stop()}}),t)})))()},resetForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$nextTick((function(){e.$refs.ruleForm&&(e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),e.ruleForm={id:e.id,password:"",confirmPassword:""})}));case 2:case"end":return t.stop()}}),t)})))()},submitForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.ruleForm.validate(function(){var t=Object(a.a)(regeneratorRuntime.mark((function t(r){var a,s;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r)return e.loading=!0,a=JSON.parse(JSON.stringify(e.ruleForm)),t.next=5,n.a.setpwd(a);t.next=21;break;case 5:if(s=t.sent,e.loading=!1,!s||0!==s.code){t.next=13;break}e.$notify.success({title:"密码修改成功!",message:""}),e.showModelThis=!1,e.$emit("refresh"),t.next=19;break;case 13:if(s&&100<=s.code&&s.code<=104)return t.next=16,e.logout();t.next=18;break;case 16:t.next=19;break;case 18:e.$message.warning(s.message);case 19:t.next=23;break;case 21:return t.abrupt("return",!1);case 23:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()}}};r("66211"),r=r("2877"),r=Object(r.a)(i,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:e.title,center:!0,align:"left",top:"5vh",width:"600px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)"},on:{"update:visible":function(t){e.showModelThis=t},close:function(t){e.showModelThis=!1}}},[t("el-card",[t("el-row",{attrs:{gutter:10}},[t("el-col",{attrs:{span:24}},[t("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",rules:e.rulesThis,"label-width":"110px"}},[t("el-form-item",{attrs:{prop:"password",label:"新密码:"}},[t("el-input",{ref:"password",attrs:{placeholder:"新密码",name:"password",type:"password",tabindex:"1",maxlength:"50",autocomplete:"on"},model:{value:e.ruleForm.password,callback:function(t){e.$set(e.ruleForm,"password",t)},expression:"ruleForm.password"}})],1),t("el-form-item",{attrs:{prop:"confirmPassword",label:"确认密码:"}},[t("el-input",{ref:"confirmPassword",attrs:{placeholder:"确认密码",name:"confirmPassword",type:"password",tabindex:"1",maxlength:"50",autocomplete:"on"},model:{value:e.ruleForm.confirmPassword,callback:function(t){e.$set(e.ruleForm,"confirmPassword",t)},expression:"ruleForm.confirmPassword"}})],1)],1)],1),t("el-col",{staticStyle:{"text-align":"right"},attrs:{span:24}},[t("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("保 存 ")]),t("el-button",{on:{click:function(t){e.showModelThis=!1}}},[e._v(e._s(e.isDetail?"关 闭":"取 消"))])],1)],1)],1)],1)}),[],!1,null,"497d9b10",null);t.default=r.exports},1846:function(e,t,r){"use strict";r("c462")},"184f":function(e,t,r){},"18af":function(e,t,r){"use strict";r("2964")},"18c5":function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=r("5530"),s=(r("96cf"),r("7db0"),r("d3b7"),r("e9c4"),r("c740"),r("a9e3"),r("1b69")),i="admin/",o=function(e,t){return Object(s.a)(i+"processowaitlist",e,"post",t)},l=function(e,t){return Object(s.a)(i+"processlist",e,"post",t)},c=r("f5ed"),u=r("2f62"),d=r("9f53"),p=r("6b0b");c={name:"role",mixins:[c.a,d.a],computed:Object(n.a)(Object(n.a)({},Object(u.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"oing"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),data:function(){return{process_router_list:JSON.parse(JSON.stringify(p.b)),loading:!0,modelId:0,parmValue:{page:1,size:15},tableData:[],table:{stripe:!0,border:!0,_defaultHeader_:["setcol"]},pageInfo:{size:15,curr:1,total:0},columns:p.a}},mounted:function(){this.searchProList(),this.searchList()},methods:{getRouter:function(e){var t,r=e.order_type,a=e.order_id,n=(e=e.order_code,this.process_router_list.findIndex((function(e){return e.type===r})));-1!==n?(t=(n=this.process_router_list[n]).toRouter,n=n.to,this.routeGoto(t,{type:"view",id:"code"===n?e:a})):this.$message.warning("暂未找到相关流程!")},restSearch:function(){this.pageInfo={size:15,curr:1,total:0},this.parmValue={page:1,size:15},this.searchProList(),this.searchList()},searchList:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,t.next=3,o(e.parmValue);case 3:if(!(r=t.sent)||0!==r.code||!r.data){t.next=9;break}e.tableData=r.data.list,e.pageInfo.total=Number(r.data.count),t.next=16;break;case 9:if(r&&100<=r.code&&r.code<=104)return t.next=12,e.logout();t.next=14;break;case 12:t.next=16;break;case 14:e.tableData=[],e.pageInfo.total=0;case 16:e.loading=!1;case 17:case"end":return t.stop()}}),t)})))()},searchProList:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,t.next=3,l({page:1,size:50});case 3:if(!(r=t.sent)||0!==r.code||!r.data){t.next=8;break}t.next=15;break;case 8:if(r&&100<=r.code&&r.code<=104)return t.next=11,e.logout();t.next=13;break;case 11:t.next=15;break;case 13:e.tableData=[],e.pageInfo.total=0;case 15:e.loading=!1;case 16:case"end":return t.stop()}}),t)})))()}}},d=r("2877"),n=Object(d.a)(c,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"oing pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?r("ex-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{table:e.table,data:e.tableData,columns:e.columns,page:e.pageInfo,size:e.size},on:{"page-curr-change":e.handlePageChange,"page-size-change":e.handleSizeChange,"screen-reset":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()},"screen-submit":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},scopedSlots:e._u([{key:"table-header",fn:function(t){return[r("div",{staticStyle:{width:"100%",height:"30px"}},[r("el-row",{attrs:{gutter:10}},[r("el-col",{attrs:{span:24}},[r("el-col",{staticStyle:{width:"66px",float:"right"},attrs:{span:3}},[r("el-button",{staticStyle:{float:"right"},attrs:{type:"primary",size:e.searchSize},on:{click:e.searchList}},[e._v(" 刷新 ")])],1),e.powers.some((function(e){return"003"==e}))?r("el-col",{staticStyle:{width:"66px",float:"right"},attrs:{span:3}},[r("el-button",{staticStyle:{float:"right"},attrs:{size:e.searchSize,type:"success"},on:{click:function(t){return e.openModal("add",!1)}}},[e._v(" 添加 ")])],1):e._e()],1)],1)],1)]}},{key:"operation",fn:function(t){var a=t.scope;return[e.powers.some((function(e){return"007"==e}))?r("el-tooltip",{attrs:{effect:"dark",content:"详情",placement:"top"}},[r("i",{staticClass:"el-icon-view tb-icon",on:{click:function(t){return e.getRouter(a.row)}}})]):e._e()]}}],null,!1,1525215990)}):r("no-auth")],1)}),[],!1,null,"9ee3a200",null);t.default=n.exports},"19d7":function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=(r("e9c4"),r("d3b7"),r("25f0"),r("96cf"),r("9f53")),s=r("e5ab"),i=r("61f7");n={name:"wsmInOrderAdd",props:["showModel","id","sitem"],mixins:[n.a],data:function(){return{showModelThis:this.showModel,loading:!0,ruleForm:{wsm_mobile:"",wsm_contactor:"",wsm_addr:"",cgdNo:"",wsm_code:"",post_company:[],post_code:"",post_fee:"",post_time:"",send_num:"",sendtype:"1",status:"1"},rulesThis:this.rules,options:[{value:"1",label:"公司自提"},{value:"2",label:"供应商包邮"}],pickerOptions:{disabledDate:function(e){return e.getTime()>(new Date).valueOf()}},rules:{send_num:[{required:!0,validator:function(e,t,r){e=e.required,e&&""===t?r(new Error("不能为空!")):!e||"0"!==t&&"0."!==t&&"0.0"!==t&&"0.00"!==t&&"0.000"!==t?r():r(new Error("不能为零!"))},trigger:"blur"}],post_company:[{type:"array",required:!0,trigger:"change",message:"请输入物流公司"}],sendtype:[{required:!0,trigger:"change",message:"选择发货方式"}],post_code:[{required:!0,validator:function(e,t,r){""===t?r(new Error("不能为空!")):Object(i.b)(t)?r():r(new Error("仅支持字母和数字!"))},trigger:"blur"}],post_fee:[{required:!0,validator:function(e,t,r){e.required&&""===t?r(new Error("不能为空!")):r()},trigger:"blur"}],post_time:[{required:!0,message:"请选择发货时间",trigger:"change"}]}}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis:function(e){e||this.$emit("cancel")}},methods:{initForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,e.rulesThis=e.rules,t.next=5,e.resetForm();case 5:e.loading=!1;case 6:case"end":return t.stop()}}),t)})))()},resetForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$nextTick((function(){var t,r,a;e.$refs.ruleForm&&(e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),t=(a=e.sitem).cgdNo,r=a.wsend_num,a=a.goodinfo.send_way,e.ruleForm={wsm_mobile:"",wsm_contactor:"",wsm_addr:"",cgdNo:t||"",wsm_code:"",post_company:[],post_code:"",post_fee:"",post_time:"",wsend_num:r||"0",sendtype:"0"===a?"1":"2",send_num:r||"0",status:"1"})}));case 2:case"end":return t.stop()}}),t)})))()},number_change:function(e,t){this.ruleForm[t]=e+""||"0",this.$refs.ruleForm.validateField(t)},sendtypeChange:function(){var e=this.ruleForm.sendtype;this.rulesThis.post_code[0].required="1"===e,this.rulesThis.post_company[0].required="1"===e},submitForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=3,e.$refs.ruleForm.validate(function(){var t=Object(a.a)(regeneratorRuntime.mark((function t(r){var a,n,i,o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r){t.next=29;break}if(e.loading=!0,(a=JSON.parse(JSON.stringify(e.ruleForm))).post_company=a.post_company.toString(),n=new Date(a.post_time).valueOf(),(new Date).valueOf()<=n)return e.$message.warning("发货时间不能选择未来时间!"),e.loading=!1,t.abrupt("return");t.next=10;break;case 10:return t.next=12,s.a.orderinadd(a);case 12:if(n=t.sent,i=n.code,o=n.message,e.loading=!1,0!==i){t.next=21;break}e.$notify.success({title:"添加成功",message:""}),e.$emit("refresh"),t.next=27;break;case 21:if(100<=i&&i<=104)return t.next=24,e.logout();t.next=26;break;case 24:t.next=27;break;case 26:"1009"===i?e.$message.warning("".concat(o,",请刷新采购单详情重试!")):e.$message.warning(o);case 27:t.next=31;break;case 29:return t.abrupt("return",!1);case 31:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 3:case"end":return t.stop()}}),t)})))()},handleCompany:function(e){this.ruleForm.post_company=e&&e.code?[e.label]:[],this.$refs.ruleForm.validateField("post_company")}}},r("8af2"),r=r("2877"),r=Object(r.a)(n,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:"新建入库单",center:!0,align:"left",top:"15vh",width:"700px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)"},on:{close:function(t){e.showModelThis=!1},"update:visible":function(t){e.showModelThis=t}}},[r("el-card",{staticStyle:{"margin-top":"-20px"}},[r("el-row",{attrs:{gutter:10}},[r("el-col",{attrs:{span:24}},[r("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,rules:e.rulesThis,"status-icon":"",size:"small","label-width":"85px"}},[r("el-row",[r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"可入库总数",prop:"wsend_num",required:"","label-width":"95px"}},[r("el-input",{attrs:{disabled:"",placeholder:"可入库总数",maxlength:"100"},model:{value:e.ruleForm.wsend_num,callback:function(t){e.$set(e.ruleForm,"wsend_num",t)},expression:"ruleForm.wsend_num"}})],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"入库数量",prop:"send_num"}},[r("digital-input",{attrs:{values:e.ruleForm.send_num,placeholder:"入库数量",min:0,name:"ruleForm.send_num",disabled:!1,max:e.ruleForm.wsend_num,position:"right",precision:0,size:"small",controls:!1,append:""},on:{reschange:function(t){return e.number_change(t,"send_num")}}})],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"发货方式",prop:"sendtype"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{disabled:e.sitem&&"3"===e.sitem.order_type||e.sitem&&"4"===e.sitem.order_type,placeholder:"发货方式"},on:{change:e.sendtypeChange},model:{value:e.ruleForm.sendtype,callback:function(t){e.$set(e.ruleForm,"sendtype",t)},expression:"ruleForm.sendtype"}},e._l(e.options,(function(e){return r("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"物流费用",prop:"post_fee"}},[r("digital-input",{attrs:{values:e.ruleForm.post_fee,placeholder:"物流费用",min:0,disabled:!1,max:1e11,position:"right",precision:2,size:"small",controls:!1,append:"元"},on:{reschange:function(t){return e.number_change(t,"post_fee")}}})],1)],1),"1"===e.ruleForm.sendtype?r("el-col",{attrs:{span:24}},[r("el-form-item",{attrs:{label:"物流公司",prop:"post_company"}},[r("search-express",{attrs:{value:e.ruleForm.post_company,placeholder:"物流公司",names:"","is-detail":!1},on:{searchChange:e.handleCompany}})],1)],1):e._e(),"1"===e.ruleForm.sendtype?r("el-col",{attrs:{span:24}},[r("el-form-item",{attrs:{label:"物流单号",prop:"post_code"}},[r("el-input",{attrs:{placeholder:"物流单号",maxlength:"100"},model:{value:e.ruleForm.post_code,callback:function(t){e.$set(e.ruleForm,"post_code",t)},expression:"ruleForm.post_code"}})],1)],1):e._e(),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"发货时间",prop:"post_time"}},[r("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"datetime","value-format":"yyyy-MM-dd HH:mm:ss",placeholder:"发货时间","picker-options":e.pickerOptions},on:{change:e.selectTime},model:{value:e.ruleForm.post_time,callback:function(t){e.$set(e.ruleForm,"post_time",t)},expression:"ruleForm.post_time"}})],1)],1),r("el-col",{staticStyle:{"text-align":"right"},attrs:{span:12}},[r("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.submitForm}},[e._v("保 存 ")])],1)],1)],1)],1)],1)],1)],1)}),[],!1,null,"21c57f36",null);t.default=r.exports},"1a65":function(e,t,r){"use strict";r("3f3c")},"1a95":function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=(r("e9c4"),r("96cf"),{name:"editMinorderForm",props:["showModel","sitem"],data:function(){return{loading:!1,showModelThis:this.showModel,ruleForm:{skuCode:"",good_name:"",activity_stock:"",moq_num:"",cost_price:"",sale_price:"",activity_price:""},rulesThis:this.rules,rules:{activity_price:[{required:!0,validator:function(e,t,r){""===t?r(new Error("活动价价不能为空!")):r()},trigger:"blur"}]}}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis:function(e){e||this.$emit("cancel")}},methods:{initForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,e.rulesThis=e.rules,t.next=4,e.resetForm();case 4:e.loading=!1;case 5:case"end":return t.stop()}}),t)})))()},resetForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$nextTick((function(){e.$refs.ruleForm&&(e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),e.ruleForm=e.sitem?JSON.parse(JSON.stringify(e.sitem)):{skuCode:"",good_name:"",activity_stock:"",moq_num:"",cost_price:"",sale_price:"",activity_price:""})}));case 2:case"end":return t.stop()}}),t)})))()},activity_price_change:function(e){this.ruleForm.activity_price=e+"",this.$refs.ruleForm.validateField("activity_price")},submitForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.ruleForm.validate(function(){var t=Object(a.a)(regeneratorRuntime.mark((function t(r){var a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r){t.next=7;break}e.loading=!0,a=JSON.parse(JSON.stringify(e.ruleForm)),e.showModelThis=!1,e.$emit("refresh",a),t.next=9;break;case 7:return t.abrupt("return",!1);case 9:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()}}});r("a444"),r=r("2877"),r=Object(r.a)(n,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:"编辑活动信息",center:!0,align:"left",top:"12vh",width:"600px",size:"mini","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)"},on:{"update:visible":function(t){e.showModelThis=t},close:function(t){e.showModelThis=!1}}},[t("el-card",{staticStyle:{margin:"-20px 0 0 0"}},[t("el-row",{attrs:{gutter:10}},[t("el-col",{attrs:{span:24}},[t("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",rules:e.rulesThis,"label-width":"80px"}},[t("el-form-item",{attrs:{label:"商品编号",prop:"skuCode"}},[t("el-input",{attrs:{placeholder:"商品编号",maxlength:"100",disabled:""},model:{value:e.ruleForm.skuCode,callback:function(t){e.$set(e.ruleForm,"skuCode",t)},expression:"ruleForm.skuCode"}})],1),t("el-form-item",{attrs:{label:"商品名称",prop:"good_name"}},[t("el-input",{attrs:{disabled:"",placeholder:"商品名称",maxlength:"100"},model:{value:e.ruleForm.good_name,callback:function(t){e.$set(e.ruleForm,"good_name",t)},expression:"ruleForm.good_name"}})],1),t("el-form-item",{attrs:{label:"活动库存",prop:"activity_stock"}},[t("el-input",{attrs:{placeholder:"活动库存",disabled:"",maxlength:"100"},model:{value:e.ruleForm.activity_stock,callback:function(t){e.$set(e.ruleForm,"activity_stock",t)},expression:"ruleForm.activity_stock"}})],1),t("el-form-item",{attrs:{label:"起订量",prop:"moq_num"}},[t("el-input",{attrs:{disabled:"",placeholder:"起订量",maxlength:"100"},model:{value:e.ruleForm.moq_num,callback:function(t){e.$set(e.ruleForm,"moq_num",t)},expression:"ruleForm.moq_num"}})],1),t("el-form-item",{attrs:{label:"成本单价",prop:"cost_price"}},[t("el-input",{attrs:{disabled:"",placeholder:"成本单价",maxlength:"100"},model:{value:e.ruleForm.cost_price,callback:function(t){e.$set(e.ruleForm,"cost_price",t)},expression:"ruleForm.cost_price"}},[t("template",{slot:"append"},[e._v("元")])],2)],1),t("el-form-item",{attrs:{label:"非活动价",prop:"sale_price"}},[t("el-input",{attrs:{disabled:"",placeholder:"非活动价",maxlength:"100"},model:{value:e.ruleForm.sale_price,callback:function(t){e.$set(e.ruleForm,"sale_price",t)},expression:"ruleForm.sale_price"}},[t("template",{slot:"append"},[e._v("元")])],2)],1),t("el-form-item",{attrs:{label:"活动价",prop:"activity_price"}},[t("digital-input",{attrs:{values:e.ruleForm.activity_price,placeholder:"活动价",min:0,max:1e11,position:"right",precision:2,size:"large",controls:!1,append:"元"},on:{reschange:e.activity_price_change}})],1)],1)],1),t("el-col",{staticStyle:{"text-align":"right"},attrs:{span:24}},["007"!==e.id?t("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("保 存 ")]):e._e(),t("el-button",{on:{click:function(t){e.showModelThis=!1}}},[e._v(e._s("007"==e.id?"关 闭":"取 消"))])],1)],1)],1)],1)}),[],!1,null,"57b7b2a9",null);t.default=r.exports},"1b6f":function(e,t,r){"use strict";r("312a")},"1b7b":function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=r("ade3"),s=(r("96cf"),r("7db0"),r("d3b7"),r("159b"),r("b0c0"),r("e5ab")),i=r("9f53"),o=[{prop:"cgdNo",label:"采购单编号",width:"160"},{prop:"returnCode",label:"退货单编号",width:"160"},{prop:"apply_name",label:"申请人"},{prop:"good_code",label:"商品编码",width:"140"},{prop:"goods_class",label:"商品分类",width:"130"},{prop:"good_name",label:"商品名称",width:"150"},{prop:"goo_num",label:"商品数量",width:"150"},{prop:"return_num",label:"退货数量"},{prop:"good_total",label:"退货总金额",width:"100"},{prop:"post_company",label:"物流公司"},{prop:"post_code",label:"物流编号"},{prop:"post_fee",label:"物流费",width:"120"},{prop:"status",label:"状态",_slot_:"status",width:"120px"},{prop:"remark",label:"备注"},{prop:"wsm_supplier",label:"供应商"},{prop:"wsm_supplierNo",label:"供应商编码"}];i={name:"addEdit",props:["id","sitem","newTime"],mixins:[i.a],computed:{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"purchaseOrderDetail"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}},data:function(){var e={columns:o,status:"",loading:!1,isDisabled:!1,detailSitem:null};return Object(n.a)(e,"loading",!1),Object(n.a)(e,"modelId",""),Object(n.a)(e,"sitem",null),Object(n.a)(e,"showModel",!1),Object(n.a)(e,"isDetail",!1),Object(n.a)(e,"modelId",0),e},mounted:function(){this.initForm()},watch:{newTime:function(e){e&&this.initForm()}},methods:{addForm:function(){this.detailSitem=this.sitem,this.modelId=this.id,this.showModel=!0},initForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r,a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.loading=!0,"add"===e.id?e.status="":(a=e.sitem,r=a.status,a=a.can,e.sitem.goods_class="",e.status=r||"",a.forEach((function(t,r){e.sitem.goods_class+=0===r?t.name:"/"+t.name}))),e.loading=!1;case 3:case"end":return t.stop()}}),t)})))()},refresh:function(){this.showModelThis=!1,this.$emit("refresh")},statusConfirm:function(e,t){var r=this;return Object(a.a)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r.$confirm("确定要".concat(t,"?"),{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(a.a)(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if("-1"===e)return a.next=3,r.deleteById(t);a.next=5;break;case 3:a.next=7;break;case 5:return a.next=7,r.setStatus(e,t);case 7:case"end":return a.stop()}}),a)})))).catch((function(){}));case 2:case"end":return n.stop()}}),n)})))()},deleteById:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){var a;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,s.a.delete({id:t.queryId});case 2:if(!(a=r.sent)||0!==a.code){r.next=8;break}t.$notify.success({title:e+"成功!",message:""}),t.routeGoto("check",{}),r.next=14;break;case 8:if(a&&100<=a.code&&a.code<=104)return r.next=11,t.logout();r.next=13;break;case 11:r.next=14;break;case 13:t.$message.warning(a.message);case 14:case"end":return r.stop()}}),r)})))()},setStatus:function(e,t,r){var n=this;return Object(a.a)(regeneratorRuntime.mark((function a(){var i,o;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return i={cgdNo:n.sitem.cgdNo,remark:r||"",status:e},a.next=3,s.a.status(i);case 3:if(o=a.sent,n.loading=!1,!o||0!==o.code){a.next=10;break}n.$notify.success({title:t+"成功!",message:""}),n.refresh(),a.next=16;break;case 10:if(o&&100<=o.code&&o.code<=104)return a.next=13,n.logout();a.next=15;break;case 13:a.next=16;break;case 15:n.$message.warning(o.message);case 16:case"end":return a.stop()}}),a)})))()}}},r("4b87"),r=r("2877"),r=Object(r.a)(i,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[r("el-row",{staticClass:"purchaseOrderDetail-addForm"},e._l(e.columns,(function(t,a){return r("el-col",{key:t+a,staticClass:"purchaseOrderDetail-addForm-el-col",attrs:{span:12}},[r("div",{staticClass:"label"},[e._v(e._s(t.label)+":")]),r("div",{staticClass:"name"},[e._v(e._s(e.sitem[t.prop]))])])})),1)],1)}),[],!1,null,"66eada9c",null);t.default=r.exports},"1c0c":function(e,t,r){"use strict";r("2d8d")},"1cf1":function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=(r("96cf"),r("e49d")),s={name:"sort",props:["showModel","id","sitem"],mixins:[r("9f53").a],data:function(){return{loading:!1,showModelThis:this.showModel,ruleForm:{id:"",cat_name:"",order_rate:"0",sale_rate:"0",lower_rate:"0",rate:"0"},rulesThis:this.rules,rules:{fund_code:"",order_rate:[{required:!0,validator:function(e,t,r){""===t?r(new Error("预算→成本毛利率不能为空!")):r()},trigger:"blur"}],sale_rate:[{required:!0,validator:function(e,t,r){""===t?r(new Error("成本→售价毛利率不能为空!")):r()},trigger:"blur"}],lower_rate:[{required:!0,validator:function(e,t,r){""===t?r(new Error("最低毛利率不能为空!")):r()},trigger:"blur"}],rate:[{required:!0,validator:function(e,t,r){""===t?r(new Error("单品修改下限毛利率不能为空!")):r()},trigger:"blur"}]}}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis:function(e){e||this.$emit("cancel")}},methods:{initForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,e.rulesThis=e.rules,t.next=4,e.resetForm();case 4:return t.next=6,e.initData();case 6:e.loading=!1;case 7:case"end":return t.stop()}}),t)})))()},resetForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$nextTick((function(){var t,r,a,n,s,i,o,l;e.$refs.ruleForm&&(e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),t=(l=e.sitem).pid,r=l.id,a=l.cat_name,n=l.order_rate,s=l.sale_rate,i=l.lower_rate,o=l.rate,l=l.fund_code,e.ruleForm={pid:t||"",id:r||"",cat_name:a||"",fund_code:l||"",order_rate:n||"0",sale_rate:s||"0",lower_rate:i||"0",rate:o||"0"})}));case 2:case"end":return t.stop()}}),t)})))()},order_rate_change:function(e){this.ruleForm.order_rate=e+"",this.$refs.ruleForm.validateField("order_rate")},sale_rate_change:function(e){this.ruleForm.sale_rate=e+"",this.$refs.ruleForm.validateField("sale_rate")},lower_rate_change:function(e){this.ruleForm.lower_rate=e+"",this.$refs.ruleForm.validateField("lower_rate")},rate_change:function(e){this.ruleForm.rate=e+"",this.$refs.ruleForm.validateField("rate")},initData:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r,a,s,i,o,l,c,u;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n.a.detail({id:e.sitem.id});case 2:if(!(r=t.sent)||0!==r.code||!r.data){t.next=9;break}u=r.data,a=u.pid,s=u.id,i=u.cat_name,o=u.order_rate,l=u.sale_rate,c=u.lower_rate,u=u.rate,e.ruleForm={pid:a||"",id:s||"",cat_name:i||"",order_rate:o||"0",sale_rate:l||"0",lower_rate:c||"0",rate:u||"0"},t.next=15;break;case 9:if(r&&100<=r.code&&r.code<=104)return t.next=12,e.logout();t.next=14;break;case 12:t.next=15;break;case 14:e.$message.warning(r.message);case 15:case"end":return t.stop()}}),t)})))()}}};r("31de"),r=r("2877"),r=Object(r.a)(s,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:"查看毛利率",center:!0,align:"left",top:"12vh",width:"600px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)"},on:{"update:visible":function(t){e.showModelThis=t},close:function(t){e.showModelThis=!1}}},[t("el-card",{staticStyle:{margin:"-20px 0 0 0"}},[t("el-row",{attrs:{gutter:0}},[t("el-col",{attrs:{span:24}},[t("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",size:"small",rules:e.rulesThis,"label-width":"110px"}},[t("el-form-item",{attrs:{label:"分类名称",prop:"cat_name"}},[t("el-input",{attrs:{disabled:"",placeholder:"分类名称",maxlength:"100"},model:{value:e.ruleForm.cat_name,callback:function(t){e.$set(e.ruleForm,"cat_name",t)},expression:"ruleForm.cat_name"}})],1),t("el-form-item",{attrs:{label:"财务核算码",prop:"fund_code"}},[t("el-input",{attrs:{disabled:"",placeholder:"财务核算码",maxlength:"100"},model:{value:e.ruleForm.fund_code,callback:function(t){e.$set(e.ruleForm,"fund_code",t)},expression:"ruleForm.fund_code"}})],1),t("el-form-item",{attrs:{label:"预算→成本",prop:"order_rate"}},[t("digital-input",{attrs:{values:e.ruleForm.order_rate,placeholder:"预算→成本",min:0,max:1e11,position:"right",precision:2,size:"mini",controls:!1,disabled:"",append:"%"},on:{reschange:e.order_rate_change}})],1),t("el-form-item",{attrs:{label:"成本→售价",prop:"sale_rate"}},[t("digital-input",{attrs:{values:e.ruleForm.sale_rate,placeholder:"成本→售价",min:-100,max:1e11,position:"right",precision:2,size:"mini",disabled:"",controls:!1,append:"%"},on:{reschange:e.sale_rate_change}})],1),t("el-form-item",{attrs:{label:"最低毛利",prop:"lower_rate"}},[t("digital-input",{attrs:{values:e.ruleForm.lower_rate,placeholder:"最低毛利",min:-100,max:1e11,position:"right",precision:2,size:"mini",controls:!1,disabled:"",append:"%"},on:{reschange:e.lower_rate_change}})],1),t("el-form-item",{attrs:{label:"单品修改下限",prop:"rate"}},[t("digital-input",{attrs:{values:e.ruleForm.rate,placeholder:"单品修改下限",min:-100,max:1e11,position:"right",precision:2,size:"mini",controls:!1,disabled:"",append:"%"},on:{reschange:e.rate_change}})],1)],1)],1)],1)],1)],1)}),[],!1,null,"639ce3af",null);t.default=r.exports},"1d35":function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=r("5530"),s=(r("96cf"),r("7db0"),r("d3b7"),r("ac1f"),r("1276"),r("e9c4"),r("f5ed")),i=r("9f53"),o=r("0ba2e"),l=r("e1a4"),c=r("d7bc"),u=r("3e6d"),d=r("5534"),p=r("95d0"),m=r("ed14"),f=r("2f62");s={name:"sellOutOrderDetail",mixins:[s.a,i.a],components:{addEditForm:l.default,addEditA:c.default,wantDeliver:m.default,returnExpress:p.default},computed:Object(n.a)(Object(n.a)({},Object(f.b)(["private_field"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"sellOutOrderDetail"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),data:function(){return{returnCode:"",returnCode_type:"",activeTabs:"1",activeNames:["0","1","2","3","4"],status:"",statusList:[],showColumns:u.b,rshowColumns:d.b,returnShowColumns:[{prop:"is_th",label:"物流承担方",_slot_:"is_th",span:6},{prop:"addr",label:"收货地址",_slot_:"addr",span:18}],returnShowResColumns:[{prop:"post_fee",label:"退货物流费用",span:6},{prop:"post_company",label:"退货物流公司",span:6},{prop:"post_code",label:"退货物流单号",span:12}],sitem:null,resitem:null,newTime:"",showModel:!1,loading:!1,orderOptions:[{id:"1",label:"线上商品销售"},{id:"2",label:"项目线上商品销售"},{id:"3",label:"咨询单销售"},{id:"4",label:"项目咨询单销售"}],statusOptions:[{value:"0",label:"待采购备货"},{value:"1",label:"待库管发货"},{value:"2",label:"待收货"},{value:"3",label:"已收货"},{value:"4",label:"已全部退货"}],status1Options:[{id:"1",label:"待业务审核"},{id:"2",label:"待采购审核"},{id:"3",label:"待设置仓库"},{id:"4",label:"待客户退货"},{id:"5",label:"售后已完成"},{id:"6",label:"业务已驳回"},{id:"7",label:"采购已驳回"},{id:"8",label:"申请已取消"}],status2Options:[{id:"1",label:"待业务审核"},{id:"2",label:"待采购审核"},{id:"3",label:"待同意退货"},{id:"5",label:"售后已完成"},{id:"6",label:"业务已驳回"},{id:"7",label:"采购已驳回"},{id:"8",label:"申请已取消"}],expect_options:[],expect_options1:[{value:"1",label:"退货"},{value:"2",label:"换货"}],expect_options0:[{value:"1",label:"退货"},{value:"2",label:"补发"}],is_th_options:[{value:"1",label:"收货人承担"},{value:"2",label:"业务公司承担"},{value:"3",label:"供应商承担"}],queryId:"",did:""}},mounted:function(){this.queryId=this.$route.query.id,this.initData()},methods:{updateStatus:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t.setstatus(e.status);case 2:case"end":return r.stop()}}),r)})))()},getNewTime:function(){this.newTime=(new Date).valueOf()},setstatus:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){var a,n;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a={id:t.did,status:e},r.next=3,o.a.status(a);case 3:if((n=r.sent)&&0===n.code)return t.$notify.success({title:"修改成功!",message:""}),r.next=8,t.initData();r.next=10;break;case 8:r.next=16;break;case 10:if(n&&100<=n.code&&n.code<=104)return r.next=13,t.logout();r.next=15;break;case 13:r.next=16;break;case 15:t.$message.warning(n.message);case 16:case"end":return r.stop()}}),r)})))()},initData:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function e(){var r,a,n,s,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.returnCode="",t.returnCode_type="",a={outCode:t.queryId},e.next=5,o.a.detail(a);case 5:if(!(r=e.sent)||0!==r.code||!r.data){e.next=19;break}if(t.sitem=r.data,a=t.sitem,n=a.status,a.can,s=a.id,i=a.order_return,t.status=n,t.did=s,i)return t.returnCode=i.returnCode,t.returnCode_type=i.status,e.next=16,t.receive_initData(t.returnCode);e.next=16;break;case 16:t.getNewTime(),e.next=25;break;case 19:if(r&&100<=r.code&&r.code<=104)return e.next=22,t.logout();e.next=24;break;case 22:e.next=25;break;case 24:t.$message.warning(r.message);case 25:case"end":return e.stop()}}),e)})))()},wellReturnCode:function(){"1"===this.returnCode_type||"2"===this.returnCode_type||"3"===this.returnCode_type?this.$message.warning("当前售后申请单未完成审批!"):this.showModel=!0},receive_initData:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){var a,n;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a={returnCode:e},r.next=3,o.a.afterinfo(a);case 3:if(!(n=r.sent)||0!==n.code||!n.data){r.next=10;break}t.resitem=n.data,t.resitem.error_img=t.resitem.error_img.split(","),t.expect_options=JSON.parse(JSON.stringify("1"===t.resitem.is_receive?t.expect_options1:t.expect_options0)),r.next=16;break;case 10:if(n&&100<=n.code&&n.code<=104)return r.next=13,t.logout();r.next=15;break;case 13:r.next=16;break;case 15:t.$message.warning(n.message);case 16:case"end":return r.stop()}}),r)})))()},agree_return:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$confirm("确定要同意退货?",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(a.a)(regeneratorRuntime.mark((function t(){var r,a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r={returnCode:e.returnCode,status:"5",remark:"",is_post:""},t.next=3,o.a.afterstatus(r);case 3:if((a=t.sent)&&0===a.code)return e.$notify.success({title:"退货成功",message:""}),t.next=8,e.initData();t.next=10;break;case 8:t.next=16;break;case 10:if(a&&100<=a.code&&a.code<=104)return t.next=13,e.logout();t.next=15;break;case 13:t.next=16;break;case 15:e.$message.warning(a.message);case 16:case"end":return t.stop()}}),t)})))).catch((function(){}));case 2:case"end":return t.stop()}}),t)})))()},close_return:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$confirm("确定要取消申请?",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(a.a)(regeneratorRuntime.mark((function t(){var r,a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r={returnCode:e.returnCode},t.next=3,o.a.aftercancel(r);case 3:if((a=t.sent)&&0===a.code)return e.$notify.success({title:"取消成功",message:""}),t.next=8,e.initData();t.next=10;break;case 8:t.next=16;break;case 10:if(a&&100<=a.code&&a.code<=104)return t.next=13,e.logout();t.next=15;break;case 13:t.next=16;break;case 15:e.$message.warning(a.message);case 16:case"end":return t.stop()}}),t)})))).catch((function(){}));case 2:case"end":return t.stop()}}),t)})))()}}},i=r("2877"),l=Object(i.a)(s,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"sellOutOrderDetail pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?r("div",{staticStyle:{width:"100%"}},["2"===e.status&&e.powers.some((function(e){return"049"==e}))?r("div",{staticClass:"detail-page-title"},[r("span",[e._v("发货申请单编号:")]),e.sitem?r("span",[e._v(e._s(e.sitem.outCode))]):e._e(),"2"===e.status&&e.powers.some((function(e){return"049"==e}))?r("el-button",{staticClass:"fr",staticStyle:{margin:"0 0 0 10px"},attrs:{type:"primary",plain:"",size:"mini"},on:{click:e.wellReturnCode}},[e._v("新建售后申请单 ")]):e._e()],1):e._e(),r("el-tabs",{model:{value:e.activeTabs,callback:function(t){e.activeTabs=t},expression:"activeTabs"}},[r("el-tab-pane",{attrs:{label:"业务详情",name:"1"}},[r("el-collapse",{staticStyle:{margin:"-18px 0 0 0"},model:{value:e.activeNames,callback:function(t){e.activeNames=t},expression:"activeNames"}},[r("el-collapse-item",{attrs:{title:"发货申请单详情",name:"1"}},[""!==e.newTime?r("show-data-table",{attrs:{newTime:e.newTime,sitem:e.sitem,columns:e.showColumns}},[r("template",{slot:"status"},[r("el-tag",{attrs:{size:"mini",type:"0"==e.sitem.status?"warning":""},domProps:{textContent:e._s((e.statusOptions.find((function(t){return t.value==e.sitem.status}))||{}).label||"--")}})],1),r("template",{slot:"order_type"},[r("el-tag",{attrs:{size:"mini",type:""}},[e._v(e._s("1"===e.sitem.status?"发货申请单":"咨询发货申请单"))])],1),r("template",{slot:"sale_price"},[r("span",[e._v(e._s(e.private_field&&0<e.private_field.length&&e.private_field.some((function(e){return"2"==e}))?e.sitem.sale_price:"***"))])]),r("template",{slot:"total_price"},[r("span",[e._v(e._s(e.private_field&&0<e.private_field.length&&e.private_field.some((function(e){return"2"==e}))?e.sitem.total_price:"***"))])])],2):e._e()],1),r("el-collapse-item",{attrs:{title:"商品信息",name:"2"}},[""!==e.newTime?r("show-goods-data-table",{attrs:{newTime:e.newTime,type:e.sitem.order_type,skucode:e.sitem.skuCode,spucode:e.sitem.good_code}}):e._e()],1),"1"===e.status&&e.powers.some((function(e){return"080"==e}))?r("el-collapse-item",{attrs:{title:"库管发货",name:"3"}},[""!==e.newTime?r("want-deliver",{attrs:{newTime:e.newTime,sitem:e.sitem},on:{refresh:e.initData}}):e._e()],1):e._e(),"2"===e.status&&e.returnCode&&e.returnCode_type&&e.sitem&&e.sitem.order_return&&e.resitem?r("el-collapse-item",{attrs:{title:"售后申请单结果",name:"4"}},[""!==e.newTime&&e.resitem?r("show-data-table",{attrs:{newTime:e.newTime,sitem:e.resitem,border:!("1"===e.resitem.is_receive&&"4"===e.returnCode_type||"1"===e.resitem.is_receive&&"5"===e.returnCode_type),columns:e.rshowColumns}},[r("template",{slot:"status"},[r("el-tag",{attrs:{size:"mini",type:"0"==e.resitem.status?"warning":""},domProps:{textContent:e._s((("0"===e.resitem.is_receive?e.status2Options:e.status1Options).find((function(t){return t.id===e.resitem.status}))||{}).label||"--")}}),"3"===e.resitem.status&&"0"===e.resitem.is_receive?r("el-tooltip",{staticClass:"fr",staticStyle:{padding:"3px 0 0 0"},attrs:{effect:"dark",content:"同意退货",placement:"top"}},[r("i",{staticClass:"el-icon-video-play tb-icon",on:{click:e.agree_return}})]):e._e(),"1"===e.resitem.status||"2"===e.resitem.status||"3"===e.resitem.status||"4"===e.resitem.status?r("el-tooltip",{staticClass:"fr",staticStyle:{padding:"3px 0 0 0"},attrs:{effect:"dark",content:"取消申请",placement:"top"}},[r("i",{staticClass:"el-icon-circle-close tb-icon",on:{click:e.close_return}})]):e._e()],1),r("template",{slot:"order_type"},[r("el-tag",{attrs:{size:"mini"},domProps:{textContent:e._s((e.orderOptions.find((function(t){return t.id==e.resitem.order_type}))||{}).label||"--")}})],1),r("template",{slot:"is_receive"},[r("el-tag",{attrs:{size:"mini",type:""}},[e._v(e._s("1"===e.resitem.is_receive?"已收到货":"0"===e.resitem.is_receive?"未收到":"--"))])],1),r("template",{slot:"except_code"},[r("el-tag",{attrs:{size:"mini"},domProps:{textContent:e._s((e.expect_options.find((function(t){return t.value==e.resitem.except_code}))||{}).label||"--")}})],1),r("template",{slot:"error_img"},e._l(e.resitem.error_img,(function(e,t){return r("img",{directives:[{name:"viewer",rawName:"v-viewer"}],key:e+t,staticClass:"fl hover",staticStyle:{width:"23px",height:"23px",margin:"0 5px 0 0"},attrs:{src:e}})})),0)],2):e._e(),!e.resitem||"1"!==e.resitem.is_receive||"4"!==e.returnCode_type&&"5"!==e.returnCode_type?e._e():r("show-data-table",{attrs:{newTime:e.newTime,sitem:e.resitem,border:"",columns:e.returnShowColumns}},[r("template",{slot:"is_th"},[r("el-tag",{attrs:{size:"mini"},domProps:{textContent:e._s((e.is_th_options.find((function(t){return t.value==e.resitem.is_th}))||{}).label||"--")}})],1),r("template",{slot:"addr"},[r("span",[e._v(e._s(e.resitem.contactor)+"---"+e._s(e.resitem.mobile)+"---"+e._s(e.resitem.addr_cn)+e._s(e.resitem.addr))])])],2),""!==e.newTime&&e.resitem&&"1"===e.resitem.is_receive&&"5"===e.returnCode_type?r("show-data-table",{attrs:{newTime:e.newTime,sitem:e.resitem,border:"",columns:e.returnShowResColumns}}):e._e(),""!==e.newTime&&"4"===e.returnCode_type?r("return-express",{attrs:{sitem:e.resitem,newTime:e.newTime},on:{refresh:e.initData}}):e._e()],1):e._e()],1)],1),r("el-tab-pane",{attrs:{label:"审批记录",name:"2"}},[""!==e.newTime?r("process-time-line",{attrs:{newTime:e.newTime,type:"CKD",orderCode:e.queryId}}):e._e()],1)],1),r("div",[r("add-Edit-A",{attrs:{id:"add",sitem:e.sitem,"show-model":e.showModel,"is-detail":!1},on:{refresh:e.initData,cancel:function(t){e.showModel=!1}}})],1)],1):r("div",[r("no-auth")],1)])}),[],!1,null,null,null);t.default=l.exports},"1da4":function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=r("5530"),s=(r("96cf"),r("7db0"),r("d3b7"),r("a9e3"),r("9010")),i=r("e43c"),o=r("0ee5"),l=r("e66a"),c=r("f5ed"),u=r("2f62"),d=r("9f53");c={name:"brand",mixins:[c.a,d.a],components:{addEdit:s.default},computed:Object(n.a)(Object(n.a)({},Object(u.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"brand"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),data:function(){return{statusList:o.a,roleLevel:l.a,loading:!0,showModel:!1,modelId:"000",sitem:{},parmValue:{page:1,size:15,start:"",end:"",brand_name:"",status:"",creater:""},statusOptions:[{id:"0",label:"禁用"},{id:"1",label:"启用"}],tableData:[],table:{stripe:!0,border:!0,_defaultHeader_:["setcol"]},pageInfo:{size:15,curr:1,total:0},columns:[{prop:"id",label:"ID"},{prop:"brand_name",label:"品牌名称"},{prop:"status",label:"状态",sortable:!0,_slot_:"status"},{prop:"creater",label:"创建人"},{prop:"addtime",label:"创建时间",sortable:!0},{prop:"",label:"操作",fixed:"right",_noset_:!0,_slot_:"operation"}]}},mounted:function(){this.searchList()},methods:{restSearch:function(){this.pageInfo={size:15,curr:1,total:0},this.parmValue={page:1,size:15,start:"",end:"",brand_name:"",status:"",creater:""},this.searchList()},openModal:function(e,t){var r=e.status;"005"===t&&"1"===r?this.$message.warning("禁用后,才可以修改!"):(this.sitem=e,this.modelId=t,this.showModel=!0)},handleTime:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t.parmValue.start=e.startTime||"",t.parmValue.end=e.endTime||"",""!==t.parmValue.start&&""!==t.parmValue.end||""===t.parmValue.start&&""===t.parmValue.end)return t.pageInfo.curr=1,t.parmValue.page=1,r.next=7,t.searchList();r.next=7;break;case 7:case"end":return r.stop()}}),r)})))()},changeStatus:function(e,t){var r=this;return Object(a.a)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r.$confirm("确定要改为".concat("1"===t?"禁用":"启用","?"),{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(a.a)(regeneratorRuntime.mark((function a(){var n,s;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return r.loading=!0,n={id:e,status:"1"===t?"0":"1"},a.next=4,i.a.status(n);case 4:if((s=a.sent)&&0===s.code)return r.loading=!1,r.$notify.success({title:"状态修改成功!",message:""}),a.next=10,r.searchList();a.next=12;break;case 10:a.next=19;break;case 12:if(s&&100<=s.code&&s.code<=104)return a.next=15,r.logout();a.next=17;break;case 15:a.next=19;break;case 17:r.loading=!1,r.$message.warning(s.message);case 19:case"end":return a.stop()}}),a)})))).catch((function(){}));case 2:case"end":return n.stop()}}),n)})))()},deleteItem:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t.$confirm("确定要删除?",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(a.a)(regeneratorRuntime.mark((function r(){var a,n;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a={id:e},r.next=3,i.a.delete(a);case 3:if(!(n=r.sent)||0!==n.code){r.next=9;break}t.$notify.success({title:"删除成功",message:""}),t.searchList(),r.next=15;break;case 9:if(n&&100<=n.code&&n.code<=104)return r.next=12,t.logout();r.next=14;break;case 12:r.next=15;break;case 14:t.$message.warning(n.message);case 15:case"end":return r.stop()}}),r)})))).catch((function(){}));case 2:case"end":return r.stop()}}),r)})))()},searchList:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(""!==e.parmValue.start&&""===e.parmValue.end||""===e.parmValue.start&&""!==e.parmValue.end)return e.$message.warning("时间区间不完整!"),t.abrupt("return");t.next=3;break;case 3:return e.loading=!0,t.next=6,i.a.list(e.parmValue);case 6:if(!(r=t.sent)||0!==r.code||!r.data){t.next=12;break}e.tableData=r.data.list,e.pageInfo.total=Number(r.data.count),t.next=19;break;case 12:if(r&&100<=r.code&&r.code<=104)return t.next=15,e.logout();t.next=17;break;case 15:t.next=19;break;case 17:e.tableData=[],e.pageInfo.total=0;case 19:e.loading=!1;case 20:case"end":return t.stop()}}),t)})))()}}},d=r("2877"),s=Object(d.a)(c,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"brand pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?r("ex-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{table:e.table,data:e.tableData,columns:e.columns,page:e.pageInfo,size:e.size},on:{"page-curr-change":e.handlePageChange,"page-size-change":e.handleSizeChange,"screen-reset":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()},"screen-submit":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},scopedSlots:e._u([{key:"table-header",fn:function(t){return[r("div",{staticStyle:{width:"100%"}},[r("el-row",{staticStyle:{padding:"0 0 10px 80px"}},[r("el-col",{staticStyle:{width:"303px"},attrs:{span:6}},[r("period-date-picker",{attrs:{type:1,width:"135px",size:e.searchSize,start:e.parmValue.start,end:e.parmValue.end},on:{timeReturned:e.handleTime}})],1),r("el-col",{staticStyle:{width:"160px"},attrs:{span:4}},[r("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"",clearable:"",size:e.searchSize,placeholder:"品牌状态"},on:{change:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.parmValue.status,callback:function(t){e.$set(e.parmValue,"status",t)},expression:"parmValue.status"}},e._l(e.statusList,(function(e){return r("el-option",{key:"status"+e.code,attrs:{label:e.name,value:e.code}})})),1)],1),r("el-col",{staticClass:"fr",staticStyle:{width:"66px",padding:"0 0 0 10px"},attrs:{span:3}},[r("el-button",{attrs:{type:"primary",size:e.searchSize},on:{click:e.searchList}},[e._v(" 刷新 ")])],1),r("el-col",{staticClass:"fr",staticStyle:{width:"66px",padding:"0 0 0 10px"},attrs:{span:3}},[r("el-button",{attrs:{type:"warning",size:e.searchSize},on:{click:e.restSearch}},[e._v(" 重置 ")])],1)],1),r("el-row",[r("el-col",{staticStyle:{width:"373px"},attrs:{span:4}},[r("el-input",{attrs:{size:e.searchSize,maxlength:40,placeholder:"品牌名称"},on:{blur:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.parmValue.brand_name,callback:function(t){e.$set(e.parmValue,"brand_name",t)},expression:"parmValue.brand_name"}})],1),r("el-col",{staticStyle:{width:"170px",padding:"0 0 0 10px"},attrs:{span:4}},[r("el-input",{attrs:{size:e.searchSize,maxlength:40,placeholder:"创建人"},on:{change:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.parmValue.creater,callback:function(t){e.$set(e.parmValue,"creater",t)},expression:"parmValue.creater"}})],1),e.powers.some((function(e){return"003"==e}))?r("el-col",{staticClass:"fr",staticStyle:{width:"66px",padding:"0 0 0 10px"},attrs:{span:3}},[r("el-button",{staticStyle:{float:"right"},attrs:{size:e.searchSize,type:"success"},on:{click:function(t){return e.openModal({},"003")}}},[e._v(" 添加 ")])],1):e._e()],1)],1)]}},{key:"status",fn:function(t){var a=t.scope;return[r("el-tag",{attrs:{size:e.tablebtnSize,type:"0"==a.row.status?"warning":""},domProps:{textContent:e._s((e.statusOptions.find((function(e){return e.id==a.row.status}))||{}).label||"--")}})]}},{key:"operation",fn:function(t){var a=t.scope;return[e.powers.some((function(e){return"007"==e}))?r("el-tooltip",{attrs:{effect:"dark",content:"详情",placement:"top"}},[r("i",{staticClass:"el-icon-view tb-icon",on:{click:function(t){return e.openModal(a.row,"007")}}})]):e._e(),e.powers.some((function(e){return"005"==e}))?r("el-tooltip",{attrs:{effect:"dark",content:"修改",placement:"top"}},[r("i",{staticClass:"el-icon-edit tb-icon",on:{click:function(t){return e.openModal(a.row,"005")}}})]):e._e(),e.powers.some((function(e){return"004"==e}))&&"1"===a.row.status?r("el-tooltip",{attrs:{effect:"dark",content:"禁用",placement:"top"}},[r("i",{staticClass:"el-icon-video-pause tb-icon",on:{click:function(t){return e.changeStatus(a.row.id,a.row.status)}}})]):e._e(),e.powers.some((function(e){return"004"==e}))&&"0"===a.row.status?r("el-tooltip",{attrs:{effect:"dark",content:"启用",placement:"top"}},[r("i",{staticClass:"el-icon-video-play tb-icon",on:{click:function(t){return e.changeStatus(a.row.id,a.row.status)}}})]):e._e(),e.powers.some((function(e){return"006"==e}))?r("el-tooltip",{attrs:{effect:"dark",content:"删除",placement:"top"}},[r("i",{staticClass:"el-icon-delete tb-icon",on:{click:function(t){return e.deleteItem(a.row.id)}}})]):e._e()]}}],null,!1,1092933355)}):r("no-auth"),r("add-edit",{attrs:{id:e.modelId,"show-model":e.showModel,sitem:e.sitem},on:{refresh:e.searchList,cancel:function(t){e.showModel=!1}}})],1)}),[],!1,null,"7ff32efc",null);t.default=s.exports},"1db4":function(e,t,r){"use strict";r.r(t);var a=[function(){var e=this.$createElement;e=this._self._c||e;return e("div",{staticClass:"pic-404"},[e("img",{staticClass:"pic-404__parent",attrs:{src:r("a36b"),alt:"404"}}),e("img",{staticClass:"pic-404__child left",attrs:{src:r("26fc"),alt:"404"}}),e("img",{staticClass:"pic-404__child mid",attrs:{src:r("26fc"),alt:"404"}}),e("img",{staticClass:"pic-404__child right",attrs:{src:r("26fc"),alt:"404"}})])}],n={name:"Page404",computed:{message:function(){return"访问的页面不存在..."}},methods:{goto:function(){window.vm.$router.push({path:"/welcome/dashboard"})}}},s=(r("e894"),r("2877"));s=Object(s.a)(n,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("div",{staticClass:"wscn-http404-container"},[t("div",{staticClass:"wscn-http404"},[e._m(0),t("div",{staticClass:"bullshit"},[t("div",{staticClass:"bullshit__oops"},[e._v("哎呀!")]),t("div",{staticClass:"bullshit__headline"},[e._v(e._s(e.message))]),t("div",{staticClass:"bullshit__info"},[e._v(" 请检查您输入的网址是否正确,或单击下面的按钮返回主页. ")]),t("el-button",{attrs:{type:"primary",round:""},on:{click:function(t){return e.goto()}}},[e._v("回到首页")])],1)])])}),a,!1,null,"82eac96e",null);t.default=s.exports},"1e18":function(e,t,r){},"1e5d":function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=(r("96cf"),r("7db0"),r("d3b7"),r("b0c0"),r("e9c4"),r("a15b"),r("452f")),s=r("9f53"),i=[{prop:"good_code",label:"商品编码",width:"150"},{prop:"good_name",label:"商品名称",minWidth:"100"},{prop:"gys_code",label:"供应商编码",width:"142"},{prop:"supplier_name",label:"供货商",minWidth:"110"},{prop:"unit",label:"单位",width:"45"},{prop:"color",label:"商品颜色",width:"70"},{prop:"material",label:"商品材质",width:"70"}];s={name:"addEdit",props:["id","sitem","newTime"],mixins:[s.a],computed:{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"checkDetail"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}},data:function(){return{status:"",companyCode:"",companyName:"",loading:!1,typeList:[{value:"2",label:"抽盘"},{value:"1",label:"全盘"}],columns:i,ruleForm:{companyNo:"",wsm_supplier:[],wsm_code:[],type:"2"},rulesThis:this.rules,rules:{companyNo:[{required:!0,message:"业务公司",trigger:"change"}],wsm_supplier:[{type:"array",required:!0,message:"盘点公司",trigger:"change"}],wsm_code:[{type:"array",required:!0,message:"盘点仓库",trigger:"change"}],type:[{required:!0,message:"盘点类型",trigger:"change"}]}}},mounted:function(){this.initForm()},watch:{newTime:function(e){e&&this.initForm()}},methods:{companyNoChange:function(e,t){var r=this;return Object(a.a)(regeneratorRuntime.mark((function a(){var n;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:n=e.code,r.ruleForm[t]=n||"",r.$refs.ruleForm.validateField(t);case 4:case"end":return a.stop()}}),a)})))()},supplierChange:function(e){e&&e.id?(this.ruleForm.wsm_supplier=[e.code],this.companyCode=e.code):(this.ruleForm.wsm_supplier=[],this.companyCode=""),this.ruleForm.wsm_code=[],this.$refs.ruleForm.validateField("wsm_supplier"),this.$refs.ruleForm.validateField("wsm_code")},stockChange:function(e){e&&e.id?this.ruleForm.wsm_code=[e.code]:this.ruleForm.wsm_code=[],this.$refs.ruleForm.validateField("wsm_code")},initForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,"add"===e.id&&(e.status=""),e.rulesThis=e.rules,t.next=5,e.resetForm();case 5:e.loading=!1;case 6:case"end":return t.stop()}}),t)})))()},resetForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$nextTick((function(){var t,r,a,n,s,i;e.$refs.ruleForm&&(e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),t=(i=e.sitem).companyNo,r=i.status,a=i.type,n=i.wsm_code,s=i.code,i=i.name,e.status=r||"",e.companyCode=s||"",e.companyName=i||"",e.ruleForm={companyNo:t||"",wsm_code:n?[n]:[],type:a||"2",wsm_supplier:e.companyCode?[e.companyCode]:[]})}));case 2:case"end":return t.stop()}}),t)})))()},getId:function(e){return JSON.parse(JSON.stringify(e)).join(",")},submitForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.ruleForm.validate(function(){var t=Object(a.a)(regeneratorRuntime.mark((function t(r){var a,s,i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r){t.next=31;break}if(e.loading=!0,a=JSON.parse(JSON.stringify(e.ruleForm)),s=a.wsm_code,i=a.type,a=a.companyNo,a={companyNo:a,id:e.id,wsm_code:e.getId(s)||"",type:i||""},s={},"add"===e.id)return delete a.id,t.next=9,n.a.add(a);t.next=12;break;case 9:s=t.sent,t.next=15;break;case 12:return t.next=14,n.a.update(a);case 14:s=t.sent;case 15:if(e.loading=!1,!s||0!==s.code){t.next=23;break}i="add"===e.id?"添加成功":"修改成功",e.$notify.success({title:i,message:""}),e.showModelThis=!1,e.$emit("refresh"),t.next=29;break;case 23:if(s&&100<=s.code&&s.code<=104)return t.next=26,e.logout();t.next=28;break;case 26:t.next=29;break;case 28:e.$message.warning(s.message);case 29:t.next=33;break;case 31:return t.abrupt("return",!1);case 33:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()}}},r("9456"),r=r("2877"),r=Object(r.a)(s,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[r("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,rules:e.rulesThis,"status-icon":"",size:"mini","label-width":"80px"}},[r("el-row",[r("el-col",{attrs:{span:"add"===e.id?24:12}},[r("el-form-item",{attrs:{label:"业务公司",prop:"companyNo"}},[r("search-work-company",{attrs:{value:e.ruleForm.companyNo,size:"mini","is-detail":"add"!==e.id,placeholder:"业务公司"},on:{searchChange:function(t){return e.companyNoChange(t,"companyNo")}}})],1)],1),r("el-col",{attrs:{span:"add"===e.id?24:12}},[r("el-form-item",{attrs:{label:"盘点公司",prop:"wsm_supplier"}},[r("search-supplier",{attrs:{value:e.ruleForm.wsm_supplier,size:"mini",disabled:""===e.ruleForm.companyNo,"is-detail":"add"!==e.id,placeholder:"盘点公司",names:e.companyName},on:{searchChange:e.supplierChange}})],1)],1),r("el-col",{attrs:{span:"add"===e.id?24:12}},[r("el-form-item",{attrs:{label:"盘点仓库",prop:"wsm_code"}},[r("search-stock",{attrs:{value:e.ruleForm.wsm_code,size:"mini",disabled:!("add"===e.id||"0"===e.status&&e.powers.some((function(e){return"005"==e}))),"is-detail":"add"!==e.id,placeholder:"盘点仓库",isRelation:!0,companyCode:e.companyCode,names:""},on:{searchChange:e.stockChange}})],1)],1),r("el-col",{attrs:{span:"add"===e.id?24:12}},[r("el-form-item",{attrs:{label:"盘点类型",prop:"type"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"盘点类型",disabled:!("add"===e.id||"0"===e.status&&e.powers.some((function(e){return"005"==e})))},model:{value:e.ruleForm.type,callback:function(t){e.$set(e.ruleForm,"type",t)},expression:"ruleForm.type"}},e._l(e.typeList,(function(e){return r("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1)],1),r("el-col",{staticStyle:{"text-align":"right"},attrs:{span:24}},["add"===e.id||"0"===e.status&&e.powers.some((function(e){return"005"==e}))?r("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.submitForm}},[e._v("保 存 ")]):e._e()],1)],1)],1)],1)}),[],!1,null,"b53f0404",null);t.default=r.exports},"1fd2":function(e,t,r){"use strict";var a=r("1b69"),n="admin/";t.a={list:function(e,t){return Object(a.a)(n+"userlist",e,"post",t)},detail:function(e,t){return Object(a.a)(n+"userinfo",e,"post",t)},update:function(e,t){return Object(a.a)(n+"usersave",e,"post",t)},getClist:function(e,t){return Object(a.a)(n+"query",e,"post",t)},add:function(e,t){return Object(a.a)(n+"accountadd",e,"post",t)},delete:function(e,t){return Object(a.a)(n+"delete",e,"post",t)},setpwd:function(e,t){return Object(a.a)(n+"passset",e,"post",t)},status:function(e,t){return Object(a.a)(n+"userstatus",e,"post",t)},getRole:function(e,t){return Object(a.a)(n+"roleall",e,"post",t)},getWorkList:function(e,t){return Object(a.a)(n+"businesslist",e,"post",t)},getTerraceList:function(e,t){return Object(a.a)(n+"platformlist",e,"post",t)}}},"1fe0":function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=(r("e9c4"),r("96cf"),r("4d66")),s={name:"goldPrice",props:["showModel","id","sitem"],mixins:[r("9f53").a],data:function(){return{loading:!1,title:"添加实时金价",showModelThis:this.showModel,actionList:[],ruleForm:{id:"",price:0,type:""},rulesThis:this.rules,rules:{price:[{required:!0,message:"最新价格不能为空",trigger:"blur"}],type:[{required:!0,message:"金属类型不能为空",trigger:"chenge"}]}}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis:function(e){e||this.$emit("cancel")}},methods:{initForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,"003"===e.id?(e.title="添加实时金价",e.rulesThis=e.rules):"005"===e.id?(e.title="修改实时金价",e.rulesThis=e.rules):(e.title="实时金价详情",e.rulesThis={}),t.next=4,e.resetForm();case 4:e.loading=!1;case 5:case"end":return t.stop()}}),t)})))()},resetForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$nextTick((function(){var t,r,a;e.$refs.ruleForm&&(e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),t=(a=e.sitem).id,r=a.price,a=a.type,e.ruleForm={id:t||"",price:r||"0",type:a||""})}));case 2:case"end":return t.stop()}}),t)})))()},noble_metalsearchChange:function(e){var t=e.id;e.code,e.label,this.ruleForm.type=t||"",this.$refs.ruleForm.validateField("type")},reschange:function(e){this.ruleForm.price=e,this.$refs.ruleForm.validateField("price")},submitForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.ruleForm.validate(function(){var t=Object(a.a)(regeneratorRuntime.mark((function t(r){var a,s,i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r){t.next=32;break}if(e.loading=!0,(a=JSON.parse(JSON.stringify(e.ruleForm))).price+="",a.type+="",s={},"003"===e.id)return delete a.id,t.next=10,n.a.add(a);t.next=13;break;case 10:s=t.sent,t.next=16;break;case 13:return t.next=15,n.a.update(a);case 15:s=t.sent;case 16:if(e.loading=!1,!s||0!==s.code){t.next=24;break}i="add"===e.id?"添加成功!":"修改成功!",e.$notify.success({title:i,message:""}),e.showModelThis=!1,e.$emit("refresh"),t.next=30;break;case 24:if(s&&100<=s.code&&s.code<=104)return t.next=27,e.logout();t.next=29;break;case 27:t.next=30;break;case 29:e.$message.warning(s.message);case 30:t.next=34;break;case 32:return t.abrupt("return",!1);case 34:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()}}};r("d959"),r=r("2877"),r=Object(r.a)(s,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:e.title,center:!0,align:"left",top:"18vh",width:"500px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)"},on:{"update:visible":function(t){e.showModelThis=t},close:function(t){e.showModelThis=!1}}},[t("el-card",{staticStyle:{margin:"-20px 0 0 0"}},[t("el-row",{attrs:{gutter:10}},[t("el-col",{attrs:{span:24}},[t("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",rules:e.rulesThis,"label-width":"80px"}},[t("el-form-item",{attrs:{label:"金属类型",prop:"type"}},[t("search-metal-kind",{attrs:{value:e.ruleForm.type,disabled:"003"!==e.id,isDetail:!1,placeholder:"金属类型"},on:{searchChange:e.noble_metalsearchChange}})],1),t("el-form-item",{attrs:{label:"最新价格",prop:"price",disabled:"007"==e.id}},[t("digital-input",{attrs:{values:e.ruleForm.price,placeholder:"最新价格",min:0,max:1e11,position:"right",precision:2,controls:!1,disabled:"007"===e.id,append:"元"},on:{reschange:e.reschange}})],1)],1)],1),t("el-col",{staticStyle:{"text-align":"right"},attrs:{span:24}},["007"!==e.id?t("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("保 存 ")]):e._e(),t("el-button",{on:{click:function(t){e.showModelThis=!1}}},[e._v(e._s("007"==e.id?"关 闭":"取 消"))])],1)],1)],1)],1)}),[],!1,null,"63ad6104",null);t.default=r.exports},2017:function(e,t,r){"use strict";r("cafe")},"204b":function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=r("2909"),s=r("ade3"),i=(r("96cf"),r("d3b7"),r("159b"),r("e9c4"),r("c740"),r("a434"),r("a15b"),r("9f53")),o=r("e320"),l=r("5f08"),c=r("61f7"),u=r("f8d8"),d=r("8e8f");i={name:"allot",props:["showModel","id"],mixins:[i.a],components:{searchStockGoodModal:l.a,inAddrModel:u.a,AddrAddEditModal:d.a},data:function(){var e={showAddrAddEditModal:!1,AddrAddEditModalIndex:-1,AddrAddEditModalSitem:{},loading:!1,addrmodel:!1,title:"新建销售订单",showModelThis:this.showModel,showGoodsModel:!1,stock_code:"",cat_id:"",ruleForm:{goods_class:[],good_name:"",good_code:"",customer_code:[],sell_code:[]},rulesThis:this.rules,rules:{goods_class:[{type:"array",required:!0,message:"请选择商品分类",trigger:"change"}],good_code:[{required:!0,message:"请选择商品",trigger:"blur"}],customer_code:[{type:"array",required:!0,message:"请选择企业客户",trigger:"change"}],sell_code:[{type:"array",required:!0,message:"请选择供应商公司",trigger:"change"}]},addrForm:{order_addr:[]},addrRules:{arrive_time:[{required:!0,message:"最晚收货日期不能为空",trigger:"change"}],receipt_quantity:[{required:!0,validator:function(e,t,r){""===t?r(new Error("收货总数不能为空!")):Object(c.k)(t)?r():r(new Error("收货总数仅支持整数!"))},trigger:"blur"}],contactor:[{required:!0,trigger:"blur",message:"联系人不能为空"}],mobile:[{required:!0,validator:function(e,t,r){""===t?r(new Error("手机号不能为空!")):Object(c.g)(t)?r():r(new Error("手机号格式不正确!"))},trigger:"blur"}],addr_code:[{type:"array",required:!0,message:"收货省市区不能为空",trigger:"change"}],addr:[{required:!0,message:"详细地址不能为空",trigger:"blur"}]},stockForm:{good_stock:[]}};return Object(s.a)(e,"loading",!1),Object(s.a)(e,"id",""),e},watch:{showModel:function(e){(this.showModelThis=e)&&(this.rulesThis=this.rules,this.resetForm())},showModelThis:function(e){e||this.$emit("cancel")}},methods:{closeModel:function(){this.showModelThis=!1},hand:function(){0===this.ruleForm.goods_class.length?this.$message.warning("请选择商品分类!"):this.showGoodsModel=!0},addrRefresh:function(e){var t;e=e.list;(t=this.addrForm.order_addr).push.apply(t,Object(n.a)(e))},goods_class_change:function(e){this.ruleForm.goods_class=e,this.cat_id=0<e.length?e[e.length-1]:"",this.$refs.ruleForm.validateField("goods_class"),this.ruleForm.good_code="",this.ruleForm.good_name="",this.$refs.ruleForm.validateField("good_code")},refresh:function(e){this.showModelThis=e,this.$emit("refresh",!0)},getstock:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){var a,n;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return t.loading=!0,a={wsm_code:"",page:1,size:100,type_code:e,good_code:"",good_name:"",supplierNo:"",stock_low:"",stock_up:"",warn_low:"",warn_up:"",stock_max:"1"},r.next=4,o.a.getGoodStock(a);case 4:if(!(n=r.sent)||0!==n.code||!n.data){r.next=11;break}t.stockForm={good_stock:[]},n.data.list.forEach((function(e){e={num:e.usable_stock,usable_stock:e.usable_stock,wsm_name:e.wsm_name,wsm_supplier:e.wsm_supplier,wsm_supplierNo:e.wsm_supplierNo,wsm_code:e.wsm_code,original_price:e.original_price,edit:!1},t.stockForm.good_stock.push(e)})),r.next=17;break;case 11:if(n&&100<=n.code&&n.code<=104)return r.next=14,t.logout();r.next=16;break;case 14:r.next=17;break;case 16:t.$message.warning(n.message);case 17:t.loading=!1;case 18:case"end":return r.stop()}}),r)})))()},getNewTime:function(){this.newTime=(new Date).valueOf()},resetForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$nextTick((function(){e.$refs.ruleForm&&(e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),e.cat_id="",e.ruleForm={goods_class:[],good_code:"",customer_code:[],sell_code:[]}),e.$refs.stockForm&&(e.$refs.stockForm.resetFields(),e.$refs.stockForm.clearValidate(),e.stockForm={good_stock:[]}),e.$refs.addrForm&&(e.$refs.addrForm.resetFields(),e.$refs.addrForm.clearValidate(),e.addrForm={order_addr:[]})}));case 2:case"end":return t.stop()}}),t)})))()},showAddrAddEditModalRefresh:function(e){var t,r,a,n,s,i,o,l=e.index;e=e.item;-1===l?this.addrForm.order_addr.push(JSON.parse(JSON.stringify(e))):(t=(e=JSON.parse(JSON.stringify(e))).arrive_time,r=e.receipt_quantity,a=e.contactor,n=e.mobile,s=e.addr_code,i=e.addr_code_name,o=e.addr,e=e.id,this.addrForm.order_addr[l].receipt_quantity=r,this.addrForm.order_addr[l].arrive_time=t,this.addrForm.order_addr[l].contactor=a,this.addrForm.order_addr[l].mobile=n,this.addrForm.order_addr[l].addr_code=s,this.addrForm.order_addr[l].addr_code_name=i,this.addrForm.order_addr[l].addr=o,this.addrForm.order_addr[l].id=e),this.$refs.addrForm.validateField("addrlist")},addGoodsRes:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e&&1===e.length?(t.ruleForm.good_name=e[0].good_name,t.ruleForm.good_code=e[0].type_code):(t.ruleForm.good_name="",t.ruleForm.good_code=""),t.$refs.ruleForm.validateField("good_code"),""!==t.ruleForm.good_code&&"add"===t.id)return r.next=5,t.getstock(t.ruleForm.good_code);r.next=7;break;case 5:r.next=8;break;case 7:t.stockForm={good_stock:[]};case 8:case"end":return r.stop()}}),r)})))()},editRow:function(e){-1!==this.stockForm.good_stock.findIndex((function(e){return!0===e.edit}))?this.$message.warning("当前已有发货仓库信息在编辑,请保存后再试!"):this.stockForm.good_stock[e].edit=!0},checkStockRow:function(e){var t=parseInt(this.stockForm.good_stock[e].usable_stock),r=parseInt(this.stockForm.good_stock[e].num);0===t?this.$message.warning("该仓库已无该商品库存!不能销售!"):t<r?this.$message.warning("销售数量不能大于可用库存!"):this.stockForm.good_stock[e].edit=!1},customer_code_change:function(e){e&&e.code?this.ruleForm.customer_code=[e.code]:this.ruleForm.customer_code=[],this.$refs.ruleForm.validateField("customer_code")},supplierChange:function(e){e&&e.id?this.ruleForm.sell_code=[e.code]:this.ruleForm.sell_code=[],this.$refs.ruleForm.validateField("sell_code")},openHouseModal:function(e){this.AddrAddEditModalIndex=e,this.AddrAddEditModalSitem=-1===e?{}:JSON.parse(JSON.stringify(this.addrForm.order_addr[e])),this.showAddrAddEditModal=!0},select_area_change:function(e,t){this.addrForm.order_addr[t].addr_code=e},checkRow:function(e){var t=this;this.$refs.addrForm.validate((function(r){if(!r)return!1;t.addrForm.order_addr[e].edit=!1}))},deleteRow:function(e,t){t.splice(e,1)},submitForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.ruleForm.validate(function(){var t=Object(a.a)(regeneratorRuntime.mark((function t(r){var a,n,s,i,l,c,u,d,p,m,f,h;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r){t.next=43;break}if(e.loading=!0,s=JSON.parse(JSON.stringify(e.ruleForm)),a=s.good_code,n=s.customer_code,s=s.sell_code,i=JSON.parse(JSON.stringify(e.stockForm)),i=i.good_stock,l=JSON.parse(JSON.stringify(e.addrForm)),l=l.order_addr,c={good_code:a,supplierNo:s.join(","),customer_code:n.join(","),order_addr:[],good_stock:[]},f=m=!(p=!(d=u=0)),i.forEach((function(e){e.edit&&(m=!0),parseInt(e.usable_stock)<parseInt(e.num)&&(p=!1),u+=parseInt(e.num),e={num:e.num,wsm_code:e.wsm_code},c.good_stock.push(e)})),l.forEach((function(e){e.edit&&(f=!0),d+=parseInt(e.receipt_quantity),e={contactor:e.contactor,mobile:e.mobile,arrive_time:e.arrive_time,addr:e.addr,receipt_quantity:e.receipt_quantity,addr_code:e.addr_code},c.order_addr.push(e)})),m)return e.$message.warning("请保存仓库信息!"),e.loading=!1,t.abrupt("return");t.next=13;break;case 13:if(f)return e.$message.warning("请保存地址信息!"),e.loading=!1,t.abrupt("return");t.next=17;break;case 17:if(p){t.next=21;break}return e.$message.warning("部分仓库销售数量已大于可用数量!"),e.loading=!1,t.abrupt("return");case 21:if(u!==d)return e.$message.warning("库存出库总数量,与收货地址信息中的总数量不一致!"),e.loading=!1,t.abrupt("return");t.next=25;break;case 25:return t.next=27,o.a.add(c);case 27:if(h=t.sent,e.loading=!1,!h||0!==h.code){t.next=35;break}e.$notify.success({title:"添加成功",message:""}),e.showModelThis=!1,e.$emit("refresh"),t.next=41;break;case 35:if(h&&100<=h.code&&h.code<=104)return t.next=38,e.logout();t.next=40;break;case 38:t.next=41;break;case 40:e.$message.warning(h.message);case 41:t.next=45;break;case 43:return t.abrupt("return",!1);case 45:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()}}},r("bda4"),l=r("2877"),u=Object(l.a)(i,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:e.title,center:!0,align:"left",top:"5vh",width:"1040px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)","append-to-body":""},on:{close:function(t){e.showModelThis=!1},"update:visible":function(t){e.showModelThis=t}}},[r("el-card",{staticStyle:{"margin-top":"-20px"}},[r("el-row",{attrs:{gutter:10}},[r("el-col",{attrs:{span:24}},[r("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",rules:e.rulesThis,"label-width":"95px"}},[r("el-row",[r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"商品分类",prop:"goods_class"}},[e._v(" search-sort 4444 ")])],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"商品名称",prop:"good_code"}},[r("el-input",{attrs:{readonly:"",maxlength:"200"},on:{focus:e.hand},model:{value:e.ruleForm.good_name,callback:function(t){e.$set(e.ruleForm,"good_name",t)},expression:"ruleForm.good_name"}})],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"销售方",prop:"sell_code"}},[r("search-supplier",{attrs:{type:"1",size:e.searchSize,value:e.ruleForm.sell_code,disabled:!1,isDetail:!1},on:{searchChange:e.supplierChange}})],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"购买方",prop:"customer_code"}},[r("search-customer",{attrs:{value:e.ruleForm.customer_code},on:{searchChange:e.customer_code_change}})],1)],1),r("el-col",{attrs:{span:24}},[r("search-stock-good-modal",{attrs:{once:!0,cat_id:e.cat_id,"show-model":e.showGoodsModel},on:{cancel:function(t){e.showGoodsModel=!1},searchChange:e.addGoodsRes}})],1)],1)],1)],1),r("el-col",{staticStyle:{padding:"0 0 20px 0"},attrs:{span:24}},[r("el-form",{ref:"stockForm",attrs:{model:e.stockForm,size:"mini"}},[r("el-table",{staticStyle:{width:"100%"},attrs:{data:e.stockForm.good_stock,border:"",size:"mini","row-key":"key"}},[r("el-table-column",{attrs:{prop:"wsm_supplierNo",label:"发货公司编号",width:"145"}}),r("el-table-column",{attrs:{"show-overflow-tooltip":"",prop:"wsm_supplier",label:"发货公司名称","min-width":"145"}}),r("el-table-column",{attrs:{prop:"wsm_code",label:"发货仓库编码",width:"180"}}),r("el-table-column",{attrs:{"show-overflow-tooltip":"",prop:"wsm_name",label:"发货仓库名称","min-width":"180"}}),r("el-table-column",{attrs:{prop:"usable_stock",label:"商品可用库存",width:"120"}}),r("el-table-column",{attrs:{prop:"num",label:"下单数量",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-form-item",{staticStyle:{"margin-bottom":"0"},attrs:{prop:"good_stock."+t.$index+".num",rules:{},size:"mini"}},[r("el-input",{attrs:{maxlength:"10",disabled:!t.row.edit},model:{value:t.row.num,callback:function(r){e.$set(t.row,"num",r)},expression:"scope.row.num"}})],1)]}}])}),r("el-table-column",{attrs:{prop:"original_price",label:"销售价",width:"110"}}),r("el-table-column",{attrs:{fixed:"right",width:"80",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.edit?e._e():r("el-tooltip",{attrs:{effect:"dark",content:"编辑",placement:"top"}},[r("i",{staticClass:"el-icon-edit tb-icon",on:{click:function(r){return e.editRow(t.$index)}}})]),t.row.edit?r("el-tooltip",{attrs:{effect:"dark",content:"保存",placement:"top"}},[r("i",{staticClass:"el-icon-circle-check tb-icon",on:{click:function(r){return e.checkStockRow(t.$index)}}})]):e._e(),r("el-tooltip",{attrs:{effect:"dark",content:"删除",placement:"top"}},[r("i",{staticClass:"el-icon-delete tb-icon",on:{click:function(r){return e.deleteRow(t.$index,e.stockForm.good_stock)}}})])]}}])})],1)],1)],1),r("el-col",{staticStyle:{padding:"0 0 22px 0"},attrs:{span:24}},[r("div",{staticClass:"tr",staticStyle:{height:"40px",margin:"-10px 0 0 0"}},[r("download-addr"),r("el-button",{staticStyle:{margin:"0 0 0 10px"},attrs:{type:"primary",size:"mini"},on:{click:function(t){e.addrmodel=!0}}},[e._v("导入收货地址")])],1),r("el-form",{ref:"addrForm",attrs:{model:e.addrForm,size:"mini"}},[r("el-table",{staticStyle:{width:"100%"},attrs:{data:e.addrForm.order_addr,border:"",size:"mini","row-key":"key"}},[r("el-table-column",{attrs:{prop:"receipt_quantity",label:"收货总数","min-width":"125"}}),r("el-table-column",{attrs:{prop:"arrive_time",label:"最晚收货日期",width:"150"}}),r("el-table-column",{attrs:{prop:"contactor",label:"收件联系人","min-width":"110"}}),r("el-table-column",{attrs:{prop:"mobile",label:"收货联系电话","min-width":"130"}}),r("el-table-column",{attrs:{prop:"addr_code",label:"收货省市区","min-width":"230"}}),r("el-table-column",{attrs:{prop:"addr",label:"详细地址","min-width":"170"}}),r("el-table-column",{attrs:{fixed:"right",width:"80"},scopedSlots:e._u([{key:"header",fn:function(t){return[r("span",[e._v("操作")]),r("el-tooltip",{staticClass:"fr",staticStyle:{margin:"3px 0 0 0"},attrs:{effect:"dark",content:"添加",placement:"top"}},[r("i",{staticClass:"el-icon-circle-plus-outline tb-icon",staticStyle:{color:"#63cbe7"},on:{click:function(t){return e.openHouseModal(-1)}}})])]}},{key:"default",fn:function(t){return[t.row.edit?e._e():r("el-tooltip",{attrs:{effect:"dark",content:"编辑",placement:"top"}},[r("i",{staticClass:"el-icon-edit tb-icon",on:{click:function(r){return e.openHouseModal(t.$index)}}})]),r("el-tooltip",{attrs:{effect:"dark",content:"删除",placement:"top"}},[r("i",{staticClass:"el-icon-delete tb-icon",on:{click:function(r){return e.deleteRow(t.$index,e.addrForm.order_addr)}}})])]}}])})],1)],1)],1),r("el-col",{attrs:{span:24}},[r("in-addr-model",{attrs:{"show-model":e.addrmodel},on:{cancel:function(t){e.addrmodel=!1},refresh:e.addrRefresh}}),r("addr-add-edit-modal",{attrs:{showModel:e.showAddrAddEditModal,index:e.AddrAddEditModalIndex,sitem:e.AddrAddEditModalSitem},on:{cancel:function(t){e.showAddrAddEditModal=!1},refresh:e.showAddrAddEditModalRefresh}})],1),r("el-col",{staticStyle:{"text-align":"right"},attrs:{span:24}},[r("el-button",{attrs:{size:"mini",type:"primary"},on:{click:e.submitForm}},[e._v("保 存 ")])],1)],1)],1)],1)}),[],!1,null,"104c55a0",null);t.default=u.exports},"20db":function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=r("5530"),s=(r("96cf"),r("7db0"),r("d3b7"),r("e9c4"),r("25f0"),r("a9e3"),r("f5ed")),i=r("9f53"),o=[{prop:"thNo",label:"售后退货单编号",width:"160"},{prop:"good_code",label:"商品属性编号",width:"150"},{prop:"good_name",label:"商品名称",width:"150"},{prop:"customer_code",label:"客户编号",width:"140"},{prop:"return_num",label:"退货数量"},{prop:"normal_num",label:"正常数量"},{prop:"post_fee",label:"邮费"},{prop:"post_company",label:"物流公司"},{prop:"post_code",label:"快递单号",width:"120"},{prop:"status",label:"状态",_slot_:"status",width:"90px"},{prop:"addtime",label:"申请时间",sortable:!0,width:150},{prop:"",width:50,label:"操作",fixed:"right",_noset_:!0,_slot_:"operation"}],l=r("b8d2"),c=r("a451"),u=r("2f62");s={name:"returnOrder",mixins:[s.a,i.a],components:{addEdit:c.default},computed:Object(n.a)(Object(n.a)({},Object(u.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"returnOrder"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),data:function(){return{customerCode:[],s_input:"",select:"returnNo",statusList:[{value:"0",label:"待申请"},{value:"1",label:"待验收"},{value:"2",label:"待验收审核"},{value:"3",label:"待业务审核"},{value:"4",label:"完成退货"}],sitem:null,statusOptions:[{id:"0",label:"待申请"},{id:"1",label:"待验收"},{id:"2",label:"待验收审核"},{id:"3",label:"待业务审核"},{id:"4",label:"完成退货"}],loading:!0,showModel:!1,isDetail:!1,modelId:0,parmValue:{order_type:"",order_code:"",thNo:"",out_code:"",return_code:"",post_compay:"",post_code:"",start:"",end:"",status:"",customer_code:"",page:1,size:15},tableData:[],table:{stripe:!0,border:!0,_defaultHeader_:["setcol"]},pageInfo:{size:15,curr:1,total:0},columns:o}},mounted:function(){this.searchList()},methods:{restSearch:function(){this.s_input="",this.select="returnNo",this.parmValue={order_code:"",thNo:"",out_code:"",return_code:"",post_compay:"",post_code:"",start:"",end:"",status:"",order_type:"",page:1,size:15},this.pageInfo={size:15,curr:1,total:0},this.searchList()},openModal:function(e,t,r){this.showModel=!0,this.modelId=e,this.isDetail=t,this.sitem=r},customerChange:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return e&&e.id?(t.customerCode=[e.code],t.parmValue.customer_code=e.code):(t.customerCode=[],t.parmValue.customer_code=""),t.parmValue.page=1,r.next=4,t.searchList();case 4:case"end":return r.stop()}}),r)})))()},searchList:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r,a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(""!==e.parmValue.start&&""===e.parmValue.end||""===e.parmValue.start&&""!==e.parmValue.end)return e.$message.warning("时间区间不完整!"),t.abrupt("return");t.next=3;break;case 3:return e.loading=!0,e.parmValue.post_code="expressNo"===e.select?e.s_input:"",e.parmValue.customer_code=e.parmValue.return_code="serviceNo"===e.select?e.s_input:"",e.parmValue.out_code="outOrderNo"===e.select?e.s_input:"",e.parmValue.thNo="returnNo"===e.select?e.s_input:"",e.parmValue.order_code="orderNo"===e.select?e.s_input:"",(r=JSON.parse(JSON.stringify(e.parmValue))).post_compay=r.post_compay.toString(),t.next=13,l.a.list(r);case 13:if(!(a=t.sent)||0!==a.code||!a.data){t.next=19;break}e.tableData=a.data.list,e.pageInfo.total=Number(a.data.count),t.next=26;break;case 19:if(a&&100<=a.code&&a.code<=104)return t.next=22,e.logout();t.next=24;break;case 22:t.next=26;break;case 24:e.tableData=[],e.pageInfo.total=0;case 26:e.loading=!1;case 27:case"end":return t.stop()}}),t)})))()},handleCompany:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return t.parmValue.post_compay=e&&e.code?[e.label]:[],t.pageInfo.curr=1,t.parmValue.page=1,r.next=6,t.searchList();case 6:case"end":return r.stop()}}),r)})))()},handleTime:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t.parmValue.start=e.startTime||"",t.parmValue.end=e.endTime||"",""!==t.parmValue.start&&""!==t.parmValue.end||""===t.parmValue.start&&""===t.parmValue.end)return t.pageInfo.curr=1,t.parmValue.page=1,r.next=7,t.searchList();r.next=7;break;case 7:case"end":return r.stop()}}),r)})))()}}},i=r("2877"),c=Object(i.a)(s,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"returnOrder pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?r("div",[r("ex-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{table:e.table,data:e.tableData,columns:e.columns,page:e.pageInfo,size:e.size},on:{"page-curr-change":e.handlePageChange,"page-size-change":e.handleSizeChange,"screen-reset":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()},"screen-submit":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},scopedSlots:e._u([{key:"table-header",fn:function(t){return[r("div",{staticStyle:{width:"100%"}},[r("el-row",{staticStyle:{padding:"0 0 0 80px"}},[r("el-col",{staticStyle:{width:"293px"},attrs:{span:6}},[r("period-date-picker",{attrs:{type:1,width:"135px",size:e.searchSize,start:e.parmValue.start,end:e.parmValue.end},on:{timeReturned:e.handleTime}})],1),r("el-col",{staticStyle:{width:"170px",padding:"0 0 0 10px"},attrs:{span:4}},[r("search-express",{attrs:{size:e.searchSize,value:e.parmValue.parmValue,placeholder:"物流公司",names:"","is-detail":!1},on:{searchChange:e.handleCompany}})],1),r("el-col",{staticStyle:{width:"320px",padding:"0px 0 0 10px"},attrs:{span:4}},[r("search-customer",{attrs:{value:e.customerCode,size:e.searchSize,placeholder:"客户公司名称"},on:{searchChange:e.customerChange}})],1),r("el-col",{staticStyle:{width:"66px",float:"right"},attrs:{span:3}},[r("el-button",{staticStyle:{float:"right","margin-left":"5px"},attrs:{size:e.searchSize,type:"primary"},on:{click:e.searchList}},[e._v(" 刷新 ")])],1)],1),r("el-row",{staticStyle:{padding:"10px 0 0 0"}},[r("el-col",{staticStyle:{width:"170px"},attrs:{span:4}},[r("el-select",{staticStyle:{width:"100%"},attrs:{size:e.searchSize,filterable:"",clearable:"",placeholder:"退货单状态"},on:{change:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.parmValue.status,callback:function(t){e.$set(e.parmValue,"status",t)},expression:"parmValue.status"}},e._l(e.statusList,(function(e){return r("el-option",{key:"status"+e.value,attrs:{label:e.label,value:e.value}})})),1)],1),r("el-col",{staticStyle:{width:"500px",padding:"0 0 0 10px"},attrs:{span:18}},[r("el-input",{staticClass:"input-with-select",attrs:{clearable:"",size:e.searchSize,placeholder:"关键字",maxlength:"40"},model:{value:e.s_input,callback:function(t){e.s_input=t},expression:"s_input"}},[r("el-select",{staticStyle:{width:"150px"},attrs:{slot:"prepend",placeholder:"关键字类型"},slot:"prepend",model:{value:e.select,callback:function(t){e.select=t},expression:"select"}},[r("el-option",{attrs:{label:"售后退货单编号",value:"returnNo"}}),r("el-option",{attrs:{label:"售后申请单编号",value:"serviceNo"}}),r("el-option",{attrs:{label:"发货申请单编号",value:"outOrderNo"}}),r("el-option",{attrs:{label:"销售订单编号",value:"orderNo"}}),r("el-option",{attrs:{label:"快递单号",value:"expressNo"}})],1),r("el-button",{attrs:{slot:"append",icon:"el-icon-search"},on:{click:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},slot:"append"})],1)],1),r("el-col",{staticClass:"fr",staticStyle:{width:"66px"},attrs:{span:6}},[r("el-button",{staticClass:"fr",attrs:{type:"warning",size:e.searchSize},on:{click:e.restSearch}},[e._v(" 重置 ")])],1)],1)],1)]}},{key:"status",fn:function(t){var a=t.scope;return[r("el-tag",{attrs:{size:e.tablebtnSize,type:"0"==a.row.status?"warning":""},domProps:{textContent:e._s((e.statusList.find((function(e){return e.value==a.row.status}))||{}).label||"--")}})]}},{key:"operation",fn:function(t){var a=t.scope;return[e.powers.some((function(e){return"007"==e}))?r("el-tooltip",{attrs:{effect:"dark",content:"详情",placement:"top"}},[r("i",{staticClass:"el-icon-view tb-icon",on:{click:function(t){return e.routeGoto("returnOrderDetail",{id:a.row.thNo})}}})]):e._e()]}}],null,!1,1471224982)}),r("add-edit",{attrs:{id:e.modelId,sitem:e.sitem,"show-model":e.showModel,"is-detail":e.isDetail},on:{refresh:e.searchList,cancel:function(t){e.showModel=!1}}})],1):r("div",[r("no-auth")],1)])}),[],!1,null,"8cba990e",null);t.default=c.exports},"21d9":function(e,t,r){},"21f2":function(e,t,r){},"21fa":function(e,t,r){"use strict";var a=r("1b69"),n="admin/";t.a={list:function(e,t){return Object(a.a)(n+"menulist",e,"post",t)},update:function(e,t){return Object(a.a)(n+"menusave",e,"post",t)},menustatus:function(e,t){return Object(a.a)(n+"menustatus",e,"post",t)},menudel:function(e,t){return Object(a.a)(n+"menudel",e,"post",t)},actionList:function(e,t){return Object(a.a)(n+"menuaction",e,"post",t)},actionadd:function(e,t){return Object(a.a)(n+"menuactionadd",e,"post",t)},actionedit:function(e,t){return Object(a.a)(n+"menuactionsave",e,"post",t)},actionstatus:function(e,t){return Object(a.a)(n+"menuactionstatus",e,"post",t)},actiondel:function(e,t){return Object(a.a)(n+"menuactiondel",e,"post",t)}}},"22af":function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=r("5530"),s=(r("96cf"),r("7db0"),r("d3b7"),r("25f0"),r("f5ed")),i=r("9f53"),o=r("b5d3"),l=r("2f62"),c=r("d513");s={name:"newProcess",mixins:[s.a,i.a],components:{addEditForm:c.default},computed:Object(n.a)(Object(n.a)({},Object(l.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"newProcess"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),data:function(){return{sitem:null,newTime:0,type:"",parmValue1:{id:""}}},mounted:function(){this.restSearch(),this.setTime()},methods:{initForm:function(){this.setTime()},setTime:function(){this.newTime=(new Date).valueOf()},restSearch:function(){this.parmValue={}},refreshDom:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){var a;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return e.hand_uid=e.hand_uid.toString(),e.resign_uid=e.resign_uid.toString(),t.loading=!0,r.next=5,o.a.update(e);case 5:if(!(a=r.sent)||0!==a.code||!a.data){r.next=10;break}t.updateStatus(e),r.next=15;break;case 10:if(a&&100<=a.code&&a.code<=104)return r.next=13,t.logout();r.next=15;break;case 13:r.next=15;break;case 15:t.loading=!1;case 16:case"end":return r.stop()}}),r)})))()},updateStatus:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){var a,n,s;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a=e.id,s=e.type,a={id:a,remark:"123",status:s},r.next=5,o.a.updateStatus(a);case 5:if(!(n=r.sent)||0!==n.code){r.next=13;break}s="add"===t.id?"添加成功!":"修改成功!",t.$notify.success({title:s,message:""}),t.showModelThis=!1,t.$emit("refresh",!1),r.next=19;break;case 13:if(n&&100<=n.code&&n.code<=104)return r.next=16,t.logout();r.next=18;break;case 16:r.next=19;break;case 18:t.$message.warning(n.message);case 19:case"end":return r.stop()}}),r)})))()}}},i=r("2877"),c=Object(i.a)(s,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("div",{staticClass:"newProcess pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?t("div",[t("div",{staticStyle:{width:"500px"}},[t("add-edit-form",{attrs:{id:this.$route.query.id,sitem:e.sitem,newTime:e.newTime,"show-model":e.showModel,"is-detail":!e.isDetail},on:{resData:e.initForm,refreshDom:e.refreshDom}})],1)]):t("div",[t("no-auth")],1)])}),[],!1,null,null,null);t.default=c.exports},"22dd":function(e,t,r){"use strict";r("8266")},"233c":function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=r("2909"),s=r("5530"),i=(r("96cf"),r("7db0"),r("d3b7"),r("e9c4"),r("99af"),r("159b"),r("c740"),r("b0c0"),r("a9e3"),r("1b69")),o="admin/",l=function(e,t){return Object(i.a)(o+"msglist",e,"post",t)},c=function(e,t){return Object(i.a)(o+"msginfo",e,"post",t)},u=function(e,t){return Object(i.a)(o+"msglimitread",e,"post",t)},d=function(e,t){return Object(i.a)(o+"msgallread",e,"post",t)},p=r("f5ed"),m=r("2f62"),f=r("9f53"),h=r("6b0b");p={name:"role",mixins:[p.a,f.a],computed:Object(s.a)(Object(s.a)({},Object(m.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"unRead"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),data:function(){return{process_router_list:JSON.parse(JSON.stringify(h.b)),loading:!0,parmValue:{page:1,size:15,is_read:"0",order_type:"",orderCode:""},tableData:[],table:{stripe:!0,border:!0,_defaultHeader_:["setcol"]},pageInfo:{size:15,curr:1,total:0},columns:[{type:"selection",fixed:"left",_noset_:!0}].concat(Object(n.a)(h.a))}},mounted:function(){this.columns.unshift(),this.searchList()},methods:{getRouter:function(e,t){e&&t?this.routeGoto(e,{id:t,type:"view"}):this.$message.warning("暂未找到相关流程!")},restSearch:function(){this.pageInfo={size:15,curr:1,total:0},this.parmValue={page:1,size:15,is_read:"0",order_type:"",orderCode:""},this.searchList()},changeStatus:function(e,t,r){var n=this;return Object(a.a)(regeneratorRuntime.mark((function s(){return regeneratorRuntime.wrap((function(s){for(;;)switch(s.prev=s.next){case 0:if(1===r&&e&&0===e.length)return n.$message.warning("至少选择一条数据!"),s.abrupt("return");s.next=3;break;case 3:return s.next=5,n.$confirm("确定要".concat(t,"?"),{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(a.a)(regeneratorRuntime.mark((function a(){var s;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(1===r)return s={id:[]},e.forEach((function(e){s.id.push(e.id)})),a.next=5,n.set_status(t,r,s);a.next=7;break;case 5:a.next=9;break;case 7:return a.next=9,n.set_status(t,r,{});case 9:case"end":return a.stop()}}),a)})))).catch((function(){}));case 5:case"end":return s.stop()}}),s)})))()},set_status:function(e,t,r){var n=this;return Object(a.a)(regeneratorRuntime.mark((function a(){var s,i;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(s={},1===t)return a.next=4,u(r);a.next=7;break;case 4:s=a.sent,a.next=10;break;case 7:return a.next=9,d({});case 9:s=a.sent;case 10:if(0!==(i=s.code)){a.next=18;break}n.$notify.success({title:e+"成功!",message:""}),n.pageInfo.curr=1,n.parmValue.page=1,n.searchList(),a.next=24;break;case 18:if(100<=i&&i<=104)return a.next=21,n.logout();a.next=23;break;case 21:a.next=24;break;case 23:n.$message.warning(message);case 24:case"end":return a.stop()}}),a)})))()},wentRead:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){var a,n,s,i,o;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a=e.toRouter,n=e.queryId,s=e.id,r.next=3,c({id:s});case 3:if(s=r.sent,i=s.code,s.data,o=s.message,0!==i){r.next=11;break}t.getRouter(a,n),r.next=17;break;case 11:if(100<=i&&i<=104)return r.next=14,t.logout();r.next=16;break;case 14:r.next=17;break;case 16:t.$message.warning(o);case 17:case"end":return r.stop()}}),r)})))()},searchList:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,t.next=3,l(e.parmValue);case 3:if(!(r=t.sent)||0!==r.code||!r.data){t.next=10;break}e.tableData=r.data.list,e.tableData.forEach((function(t,r){var a,n,s=e.process_router_list.findIndex((function(e){return e.type===t.order_type}));-1!==s?(a=(s=e.process_router_list[s]).name,n=s.toRouter,s=s.to,e.tableData[r].process_name=a,e.tableData[r].toRouter=n,e.tableData[r].queryId="code"==s?t.order_code:t.order_id):(e.tableData[r].process_name="",e.tableData[r].toRouter="",e.tableData[r].queryId="")})),e.pageInfo.total=Number(r.data.count),t.next=17;break;case 10:if(r&&100<=r.code&&r.code<=104)return t.next=13,e.logout();t.next=15;break;case 13:t.next=17;break;case 15:e.tableData=[],e.pageInfo.total=0;case 17:e.loading=!1;case 18:case"end":return t.stop()}}),t)})))()}}},f=r("2877"),s=Object(f.a)(p,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"unRead pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?r("ex-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{table:e.table,data:e.tableData,columns:e.columns,page:e.pageInfo,size:e.size},on:{"page-curr-change":e.handlePageChange,"page-size-change":e.handleSizeChange,"screen-reset":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()},"screen-submit":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},scopedSlots:e._u([{key:"table-header",fn:function(t){var a=t.selection;return[r("el-row",{staticStyle:{padding:"0 0 0 80px",width:"100%"},attrs:{gutter:10}},[r("el-col",{staticStyle:{width:"230px"},attrs:{span:10}},[r("el-select",{staticStyle:{width:"100%"},attrs:{clearable:"",size:"mini",placeholder:"订单类型"},on:{click:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.parmValue.order_type,callback:function(t){e.$set(e.parmValue,"order_type",t)},expression:"parmValue.order_type"}},e._l(e.process_router_list,(function(e){return r("el-option",{key:e.type,attrs:{label:e.name,value:e.type}})})),1)],1),r("el-col",{staticStyle:{width:"400px",padding:"0 0 0 10px"},attrs:{span:10}},[r("el-input",{attrs:{size:"mini",placeholder:"订单编号",maxlength:"40"},on:{blur:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.parmValue.orderCode,callback:function(t){e.$set(e.parmValue,"orderCode",t)},expression:"parmValue.orderCode"}})],1),r("el-col",{staticStyle:{width:"66px",float:"right"},attrs:{span:3}},[r("el-button",{staticStyle:{float:"right"},attrs:{type:"primary",size:e.searchSize},on:{click:e.searchList}},[e._v(" 刷新 ")])],1),r("el-col",{staticStyle:{width:"90px",float:"right"},attrs:{span:3}},[r("el-button",{staticStyle:{float:"right"},attrs:{type:"primary",size:e.searchSize},on:{click:function(t){return e.changeStatus(a,"全部标记为已读",0)}}},[e._v(" 全部已读 ")])],1),r("el-col",{staticStyle:{width:"66px",float:"right"},attrs:{span:3}},[r("el-button",{staticStyle:{float:"right"},attrs:{type:"primary",size:e.searchSize},on:{click:function(t){return e.changeStatus(a,"批量标记为已读",1)}}},[e._v(" 批量已读 ")])],1)],1)]}},{key:"operation",fn:function(t){var a=t.scope;return[e.powers.some((function(e){return"007"==e}))?r("el-tooltip",{attrs:{effect:"dark",content:"详情",placement:"top"}},[r("i",{staticClass:"el-icon-view tb-icon",on:{click:function(t){return e.wentRead(a.row)}}})]):e._e()]}}],null,!1,2290114497)}):r("no-auth")],1)}),[],!1,null,"cc76256c",null);t.default=s.exports},"234a":function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=(r("96cf"),r("7db0"),r("d3b7"),r("159b"),r("e9c4"),r("a434"),r("25f0"),r("b0c0"),r("7dbe")),s=r("9f53"),i=r("416e");s={name:"handover",props:["id","sitem","newTime"],mixins:[s.a],components:{addEditGoodModal:i.default},data:function(){return{multipleSelection:[],tableData:[],ptableData:[],showModel:!1,editItem:{},options:[{value:"0",label:"非项目"},{value:"1",label:"项目"}],statusOptions:[{value:"1",label:"竞品"},{value:"2",label:"竞聘"}],configOptions:["证书","包装盒","绒布袋","标签","其他"],poptions:[],loading:!1,selectLoading:!1,pickerOptions:{disabledDate:function(e){return e.getTime()<Date.now()-864e5}},status:"",ruleForm:{is_project:"0",projectNo:[],khNo:[],customer_name:"",companyNo:"",endtime:"",pendtime:"",platform_code:"",use_desc:"",budget_total:"",arrtime:""},rulesThis:this.rules,rules:{companyNo:[{required:!0,message:"请选择销售方公司",trigger:"change"}],khNo:[{type:"array",required:!0,message:"请选择购买方公司",trigger:"change"}],platform_code:[{required:!0,message:"请选择所属平台",trigger:"change"}],endtime:[{required:!0,message:"咨询截止时间不能为空",trigger:"change"}],is_project:[{required:!0,message:"请选择咨询类型!",trigger:"change"}],projectNo:[{type:"array",required:!0,message:"请选择项目",trigger:"change"}]}}},computed:{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"zixunOrderDetail"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}},mounted:function(){this.initForm()},watch:{id:function(e){e&&this.initForm()},newTime:function(e){e&&this.initForm()}},methods:{initForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,e.status="",e.rulesThis=e.rules,e.disabled=!1,t.next=6,e.resetForm();case 6:e.loading=!1;case 7:case"end":return t.stop()}}),t)})))()},openEdit:function(e,t){var r,a,n,s,i,o,l,c=this.ruleForm.is_project;e+""=="-1"&&"1"===c?0===this.multipleSelection.length?this.$message.warning("请选择一个项目商品要求!"):1<this.multipleSelection.length?this.$message.warning("每次创建只能选择一个项目商品要求!"):(r=(c=this.multipleSelection[0]).cat_info,a=c.budget_price,n=c.pgNo,s=c.num,i=c.good_type,o=c.good_name,c=c.good_img,l=[],r&&0<r.length&&r.forEach((function(e){l.push(e.id)})),this.editItem={p_cat_info:r,p_cat_id:l,p_budget_price:a,p_pgNo:n,p_num:s,p_good_type:i,p_good_name:o,p_good_img:c,p_arrtime:this.ruleForm.arrtime},this.editItem.index=e,this.showModel=!0):(this.editItem=t,this.editItem.index=e,this.showModel=!0)},handleSelectionChange:function(e){this.multipleSelection=e},editGoodRefresh:function(e){var t=e.index;t+""=="-1"?this.tableData.push(JSON.parse(JSON.stringify(e))):(t=parseInt(t+""),this.tableData[t]=JSON.parse(JSON.stringify(e)),this.$set(this.tableData,t,this.tableData[t])),this.showModel=!1},is_project_change:function(){"0"!==this.ruleForm.is_project&&(this.ptableData=[])},openCostEditDelete:function(e){this.tableData.splice(e,1)},resetForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.resign_name="",e.hand_name="",e.status="",t.next=5,e.$nextTick(Object(a.a)(regeneratorRuntime.mark((function t(){var r,a,n,s,i,o,l,c;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.$refs.ruleForm){t.next=9;break}if(e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),c=e.sitem,r=c.is_project,a=c.projectNo,n=c.khNo,s=c.customer_name,i=c.companyNo,o=c.endtime,l=c.platform_code,c=c.ladder,e.ruleForm={is_project:r||"0",projectNo:a?[a]:[],khNo:n?[n]:[],customer_name:s||"",companyNo:i||"",endtime:o||"",platform_code:l||"",use_desc:"",budget_total:"",arrtime:""},e.tableData=c&&0<c.length?JSON.parse(JSON.stringify(c)):[],e.ruleForm.projectNo&&1===e.ruleForm.projectNo.length)return t.next=9,e.selectChange(e.ruleForm.projectNo);t.next=9;break;case 9:case"end":return t.stop()}}),t)}))));case 5:case"end":return t.stop()}}),t)})))()},submitForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=3,e.$refs.ruleForm.validate(function(){var t=Object(a.a)(regeneratorRuntime.mark((function t(r){var a,s,i,o,l;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r){t.next=39;break}if(e.loading=!0,0===e.tableData.length)return e.$message.warning("至少提供一条商品要求!"),e.loading=!1,t.abrupt("return");t.next=6;break;case 6:if(a=JSON.parse(JSON.stringify(e.ruleForm)),s=a.pendtime,i=a.is_project,o=a.endtime,"1"===i&&new Date(o).getTime()>new Date(s).getTime())return e.$message.warning("咨询截止时间不能晚于项目咨询截止时间!"),e.loading=!1,t.abrupt("return");t.next=12;break;case 12:if(new Date(o).getTime()<=(new Date).getTime())return e.$message.warning("咨询截止时间应该大于当前时间!"),e.loading=!1,t.abrupt("return");t.next=16;break;case 16:return a.khNo=a.khNo.toString(),a.projectNo=a.projectNo.toString(),a.ladder=[],JSON.parse(JSON.stringify(e.tableData)).forEach((function(e){var t={good_name:e.good_name,good_img:e.good_img,cat_id:e.cat_id[e.cat_id.length-1],unit:e.unit.toString(),brand_id:e.brand_id.toString(),arrival_time:e.arrival_time,cost_desc:e.cost_desc,is_addrs:e.is_addrs,is_custom:e.is_custom,metal_id:e.metal_id,config:e.config.toString(),other_config:e.other_config,specs_weight:e.specs_weight,gold_price:e.gold_price,budget_price:e.budget_price,num:e.num,use_desc:e.use_desc,remark:e.remark,pgNo:e.pgNo,total_weight:e.total_weight,is_gold_price:e.is_gold_price,enclosure_file:e.enclosure_file,specinfo:[]};e.specinfo.forEach((function(e){e={specid:e.specid,spec_value_id:e.spec_value_id},t.specinfo.push(e)})),a.ladder.push(t)})),t.next=24,n.a.add(a);case 24:if(l=t.sent,e.loading=!1,!l||0!==l.code){t.next=31;break}e.$notify.success({title:"创建成功!",message:""}),e.$emit("refresh",!0),t.next=37;break;case 31:if(l&&100<=l.code&&l.code<=104)return t.next=34,e.logout();t.next=36;break;case 34:t.next=37;break;case 36:e.$message.warning(l.message);case 37:t.next=41;break;case 39:return t.abrupt("return",!1);case 41:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 3:case"end":return t.stop()}}),t)})))()},selectChange:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){var a,s,i,o,l,c,u,d;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(a=e&&0<e.length?e[0]:"")return r.next=4,n.a.pdetail({projectNo:a});r.next=32;break;case 4:if(a=r.sent,s=a.code,d=a.data,i=a.message,0!==s){r.next=19;break}o=d.use_desc,l=d.budget_total,c=d.ladder,u=d.arrtime,d=d.endtime,t.ruleForm.use_desc=o||"",t.ruleForm.budget_total=l||"",t.ruleForm.arrtime=u||"",t.ruleForm.pendtime=d||"",t.ptableData=c,t.ptableData.forEach((function(e){e.cat_name="";var t=e.cat_info;t&&0<t.length&&t.forEach((function(t,r){e.cat_name+=0!==r?"/"+t.name:t.name}))})),t.tableData,r.next=30;break;case 19:if(100<=s&&s<=104)return r.next=22,t.logout();r.next=24;break;case 22:r.next=30;break;case 24:t.$message.warning(i),t.ptableData=[],t.ruleForm.use_desc="",t.ruleForm.budget_total="",t.ruleForm.arrtime="",t.tableData;case 30:r.next=37;break;case 32:t.ptableData=[],t.ruleForm.use_desc="",t.ruleForm.budget_total="",t.ruleForm.arrtime="",t.tableData=[];case 37:case"end":return r.stop()}}),r)})))()},remoteMethod:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){var a,s,i,o,l,c,u;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t.selectLoading=!0,t.poptions=[],i=JSON.parse(JSON.stringify(t.ruleForm)),a=i.platform_code,s=i.companyNo,i=i.khNo,s){r.next=7;break}return t.$message.warning("请选择销售方公司!"),t.selectLoading=!1,r.abrupt("return");case 7:if(0===i.length)return t.$message.warning("请选择购买方公司!"),t.selectLoading=!1,r.abrupt("return");r.next=11;break;case 11:if(""===a)return t.$message.warning("请选择所属平台!"),t.selectLoading=!1,r.abrupt("return");r.next=15;break;case 15:if(e){r.next=18;break}return t.selectLoading=!1,r.abrupt("return");case 18:return o={page:1,size:100,khNo:i.toString(),companyNo:s,platform_code:a,status:"1",project_name:e},r.next=21,n.a.plist(o);case 21:if(o=r.sent,l=o.code,u=o.data,c=o.message,0!==l){r.next=30;break}u=u.list,t.poptions=u,r.next=37;break;case 30:if(100<=l&&l<=104)return r.next=33,t.logout();r.next=35;break;case 33:r.next=37;break;case 35:t.$message.warning(c),t.poptions=[];case 37:t.selectLoading=!1;case 38:case"end":return r.stop()}}),r)})))()},platform_code_codesearchChange:function(e){var t=e.id;e.code,e.label,this.ruleForm.platform_code=t||"",this.$refs.ruleForm.validateField("platform_code"),this.ruleForm.projectNo=[],this.ruleForm.budget_total="0",this.ruleForm.use_desc="",this.ruleForm.pendtime="",this.ruleForm.arrtime="",this.ptableData=[],this.tableData=[]},company_idsearchChange:function(e){var t;e&&(e.id,t=e.code,e.label,this.ruleForm.companyNo=t||""),this.$refs.ruleForm.validateField("companyNo")},customerChange:function(e){e&&e.id?(this.ruleForm.khNo=[e.code],this.ruleForm.customer_name=e.label):(this.ruleForm.khNo=[],this.ruleForm.customer_name=""),this.$refs.ruleForm.validateField("khNo"),this.ruleForm.projectNo=[],this.ruleForm.budget_total="0",this.ruleForm.use_desc="",this.ruleForm.pendtime="",this.ruleForm.arrtime="",this.ptableData=[],this.tableData=[]}}},r("d53a"),i=r("2877"),r=Object(i.a)(s,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("el-form",{ref:"ruleForm",staticStyle:{width:"100%"},attrs:{loading:e.loading,model:e.ruleForm,"status-icon":"",size:"mini",rules:e.rulesThis,"label-width":"110px"}},[r("el-row",[r("el-col",{attrs:{span:12}},[r("el-form-item",{staticClass:"clear",attrs:{label:"销售方",prop:"companyNo"}},[r("search-work-company",{attrs:{value:e.ruleForm.companyNo,placeholder:"销售方公司",disabled:"view"===e.type,size:"mini",isDetail:"view"===e.type},on:{searchChange:e.company_idsearchChange}})],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{staticClass:"clear",attrs:{label:"购买方公司",prop:"khNo"}},[r("search-customer",{attrs:{value:e.ruleForm.khNo,names:e.ruleForm.customer_name,placeholder:"购买方公司",size:"mini",disabled:"view"===e.type,"is-detail":"view"===e.type},on:{searchChange:e.customerChange}})],1)],1),r("el-col",{attrs:{span:8}},[r("el-form-item",{staticClass:"clear",attrs:{label:"所属平台",prop:"platform_code"}},[r("search-terrace",{attrs:{value:e.ruleForm.platform_code,disabled:"view"===e.type,size:"mini",isDetail:"view"===e.type,names:e.platform_code_name,placeholder:"所属平台"},on:{searchChange:e.platform_code_codesearchChange}})],1)],1),r("el-col",{attrs:{span:8}},[r("el-form-item",{staticClass:"clear",attrs:{label:"咨询截止时间",prop:"endtime"}},[r("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"datetime","value-format":"yyyy-MM-dd HH:mm:ss","picker-options":e.pickerOptions,placeholder:"咨询截止时间"},model:{value:e.ruleForm.endtime,callback:function(t){e.$set(e.ruleForm,"endtime",t)},expression:"ruleForm.endtime"}})],1)],1),r("el-col",{attrs:{span:8}},[r("el-form-item",{staticClass:"clear",attrs:{label:"咨询类型",prop:"is_project"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{disabled:!1,placeholder:"咨询类型"},on:{change:e.is_project_change},model:{value:e.ruleForm.is_project,callback:function(t){e.$set(e.ruleForm,"is_project",t)},expression:"ruleForm.is_project"}},e._l(e.options,(function(e){return r("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1)],1),"1"===e.ruleForm.is_project?r("el-col",{attrs:{span:8}},[r("el-form-item",{staticClass:"clear",attrs:{label:"项目名称",prop:"projectNo"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{multiple:"",filterable:"",remote:"",clearable:"","multiple-limit":1,"reserve-keyword":"",placeholder:"项目名称","remote-method":e.remoteMethod,loading:e.selectLoading},on:{change:e.selectChange},model:{value:e.ruleForm.projectNo,callback:function(t){e.$set(e.ruleForm,"projectNo",t)},expression:"ruleForm.projectNo"}},e._l(e.poptions,(function(e,t){return r("el-option",{key:e.projectNo+t,attrs:{label:e.project_name,value:e.projectNo+"",disabled:"1"!==e.status}})})),1)],1)],1):e._e(),"1"===e.ruleForm.is_project?r("el-col",{attrs:{span:8}},[r("el-form-item",{staticClass:"clear",attrs:{label:"项目咨询截止时间",required:"","label-width":"140px"}},[r("el-input",{attrs:{placeholder:"项目咨询截止时间",disabled:"",maxlength:"500"},model:{value:e.ruleForm.pendtime,callback:function(t){e.$set(e.ruleForm,"pendtime",t)},expression:"ruleForm.pendtime"}})],1)],1):e._e(),"1"===e.ruleForm.is_project?r("el-col",{attrs:{span:8}},[r("el-form-item",{staticClass:"clear",attrs:{label:"要求到货时间",required:""}},[r("el-input",{attrs:{placeholder:"要求到货时间",maxlength:"500",disabled:""},model:{value:e.ruleForm.arrtime,callback:function(t){e.$set(e.ruleForm,"arrtime",t)},expression:"ruleForm.arrtime"}})],1)],1):e._e(),"1"===e.ruleForm.is_project?r("el-col",{attrs:{span:16}},[r("el-form-item",{staticClass:"clear",attrs:{label:"项目用途",required:""}},[r("el-input",{attrs:{placeholder:"项目用途",disabled:"",maxlength:"500"},model:{value:e.ruleForm.use_desc,callback:function(t){e.$set(e.ruleForm,"use_desc",t)},expression:"ruleForm.use_desc"}})],1)],1):e._e(),"1"===e.ruleForm.is_project?r("el-col",{attrs:{span:8}},[r("el-form-item",{staticClass:"clear",attrs:{label:"项目总预算",required:""}},[r("el-input",{attrs:{placeholder:"项目总预算",disabled:"",maxlength:"500"},model:{value:e.ruleForm.budget_total,callback:function(t){e.$set(e.ruleForm,"budget_total",t)},expression:"ruleForm.budget_total"}},[r("template",{slot:"append"},[e._v("元")])],2)],1)],1):e._e(),"1"===e.ruleForm.is_project?r("el-col",{attrs:{span:24}},[r("el-form-item",{staticClass:"clear",attrs:{label:"项目商品要求",required:""}},[r("el-table",{ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:e.ptableData,size:"mini",border:"",stripe:"","tooltip-effect":"dark"},on:{"selection-change":e.handleSelectionChange}},[r("el-table-column",{attrs:{type:"selection",width:"40"}}),r("el-table-column",{attrs:{label:"商品阶梯",width:"70px"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.$index+1))]}}],null,!1,2198601330)}),r("el-table-column",{attrs:{prop:"good_type",label:"商品类型",width:"80px"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-tag",{attrs:{size:"mini"},domProps:{textContent:e._s((e.statusOptions.find((function(e){return e.value==t.row.good_type}))||{}).label||"--")}})]}}],null,!1,2581624672)}),r("el-table-column",{attrs:{prop:"budget_price",label:"预算单价",width:"110"}}),r("el-table-column",{attrs:{prop:"num",label:"购买数量",width:"110"}}),r("el-table-column",{attrs:{prop:"cat_name",label:"商品分类"}}),r("el-table-column",{attrs:{prop:"good_img",label:"图片",width:"50"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.good_img?r("div",{directives:[{name:"viewer",rawName:"v-viewer"}],staticClass:"hover",staticStyle:{width:"20px",height:"20px"}},[r("img",{staticStyle:{display:"inline-block",width:"100%",height:"100%"},attrs:{src:t.row.good_img,alt:""}})]):e._e()]}}],null,!1,4291532340)}),r("el-table-column",{attrs:{prop:"good_name",label:"商品名称"}})],1)],1)],1):e._e(),r("el-co",{attrs:{span:24}},[r("el-form-item",{staticClass:"clear",attrs:{label:"咨询商品要求",required:""}},[r("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData,stripe:"",border:"",size:"mini"}},[r("el-table-column",{attrs:{prop:"arrival_time",label:"到货时间",width:"100","show-overflow-tooltip":""}}),r("el-table-column",{attrs:{prop:"budget_price",label:"预算单价","show-overflow-tooltip":"",width:"110"}}),r("el-table-column",{attrs:{prop:"num",label:"购买数量","show-overflow-tooltip":"",width:"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("span",[e._v(e._s(t.row.num))]),r("span",[e._v(e._s(t.row.unit_name))])]}}])}),r("el-table-column",{attrs:{prop:"cat_id_name",label:"商品分类","show-overflow-tooltip":"","min-width":"170"}}),r("el-table-column",{attrs:{prop:"good_img",label:"图片",width:"50","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.good_img?r("img",{directives:[{name:"viewer",rawName:"v-viewer"}],staticClass:"fl",staticStyle:{width:"23px",height:"23px",margin:"0 5px 0 0"},attrs:{src:t.row.good_img,alt:""}}):e._e()]}}])}),r("el-table-column",{attrs:{prop:"good_name",label:"商品名称","show-overflow-tooltip":"","min-width":"170"}}),r("el-table-column",{attrs:{prop:"specinfo",label:"商品规格","show-overflow-tooltip":"",width:"170"},scopedSlots:e._u([{key:"default",fn:function(t){return e._l(t.row.specinfo,(function(t,a){return r("span",{key:t.spec_name+a},[0!==a?r("span",[e._v("-")]):e._e(),e._v(e._s(t.spec_name)+":["+e._s(t.spec_value_name)+"]")])}))}}])}),r("el-table-column",{attrs:{prop:"is_addrs",label:"是否多地",width:"70","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s("1"===t.row.is_addrs?"多地":"一地")+" ")]}}])}),r("el-table-column",{attrs:{prop:"is_custom",label:"是否定制",width:"70","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s("1"===t.row.is_custom?"定制":"非定制")+" ")]}}])}),r("el-table-column",{attrs:{fixed:"right",width:"80"},scopedSlots:e._u([{key:"header",fn:function(t){return[r("span",[e._v("操作")]),""===e.status?r("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"添加活动商品",placement:"top"}},[r("i",{staticClass:"el-icon-circle-plus-outline fr",staticStyle:{"font-size":"18px","margin-top":"2px"},on:{click:function(t){return e.openEdit(-1,{})}}})]):e._e()]}},{key:"default",fn:function(t){return[r("el-tooltip",{attrs:{effect:"dark",content:"修改",placement:"top"}},[r("i",{staticClass:"el-icon-edit tb-icon",on:{click:function(r){return e.openEdit(t.$index,t.row)}}})]),""===e.status?r("el-tooltip",{attrs:{effect:"dark",content:"删除",placement:"top"}},[r("i",{staticClass:"el-icon-delete tb-icon",on:{click:function(r){return e.openCostEditDelete(t.$index)}}})]):e._e()]}}])})],1)],1),r("add-edit-good-modal",{attrs:{showModel:e.showModel,sitem:e.editItem},on:{cancel:function(t){e.showModel=!1},refresh:e.editGoodRefresh}})],1),"add"===e.id?r("el-col",{staticStyle:{"text-align":"right"},attrs:{span:24}},[r("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.submitForm}},[e._v("保 存")])],1):e._e()],1)],1)}),[],!1,null,"65ca311d",null);t.default=r.exports},"23b4":function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=(r("96cf"),r("7db0"),r("d3b7"),r("ac1f"),r("1276"),r("e9c4"),r("f5ed")),s=r("9f53"),i=r("de14"),o=r("f37e"),l=r("5534"),c=r("5fdc");n={name:"sellAfterApplyDetail",mixins:[n.a,s.a],components:{purchaseExam:c.default,ExpressFeedback:o.default},computed:{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"sellAfterApplyDetail"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}},data:function(){return{orderOptions:[{id:"1",label:"线上商品销售"},{id:"2",label:"项目线上商品销售"},{id:"3",label:"咨询单销售"},{id:"4",label:"项目咨询单销售"}],activeTabs:"1",expect_options:[],expect_options1:[{value:"1",label:"退货"},{value:"2",label:"换货"}],expect_options0:[{value:"1",label:"退货"},{value:"2",label:"补发"}],activeNames:["0","1","2","3","4","5","6","7","8","9"],status:"",statusList:[],sellshowColumns:l.b,sitem:null,newTime:"",loading:!1,status1Options:[{id:"1",label:"待业务审核"},{id:"2",label:"待采购审核"},{id:"3",label:"待设置仓库"},{id:"4",label:"待客户退货"},{id:"5",label:"售后已完成"},{id:"6",label:"业务已驳回"},{id:"7",label:"采购已驳回"},{id:"8",label:"申请已取消"}],status2Options:[{id:"1",label:"待业务审核"},{id:"2",label:"待采购审核"},{id:"3",label:"待同意退货"},{id:"5",label:"售后已完成"},{id:"6",label:"业务已驳回"},{id:"7",label:"采购已驳回"},{id:"8",label:"申请已取消"}],orderCode:"",return_code:"",code:""}},mounted:function(){this.code=this.$route.query.id,this.initData()},methods:{getNewTime:function(){this.newTime=(new Date).valueOf()},statusConfirm:function(e,t){var r=arguments,n=this;return Object(a.a)(regeneratorRuntime.mark((function s(){var i;return regeneratorRuntime.wrap((function(s){for(;;)switch(s.prev=s.next){case 0:i=2<r.length&&void 0!==r[2]?r[2]:"",n.$confirm("确定要".concat(t,"?"),{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(a.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if("-1"===e)return r.next=3,n.deleteById(t);r.next=5;break;case 3:r.next=7;break;case 5:return r.next=7,n.setstatus(e,t,i);case 7:case"end":return r.stop()}}),r)})))).catch((function(){}));case 2:case"end":return s.stop()}}),s)})))()},examForm:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){var a;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t.loading){r.next=6;break}return a="1"===e.state?"2":"5",e.state,r.next=6,t.statusConfirm(a,"提交业务审核",e.remark);case 6:case"end":return r.stop()}}),r)})))()},setstatus:function(e,t){var r=arguments,n=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var a,s;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a={remark:2<r.length&&void 0!==r[2]?r[2]:"",returnCode:n.code,status:e},t.next=4,i.a.status(a);case 4:if((s=t.sent)&&0===s.code)return n.$notify.success({title:"修改成功!",message:""}),t.next=9,n.initData();t.next=11;break;case 9:t.next=17;break;case 11:if(s&&100<=s.code&&s.code<=104)return t.next=14,n.logout();t.next=16;break;case 14:t.next=17;break;case 16:n.$message.warning(s.message);case 17:case"end":return t.stop()}}),t)})))()},initData:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r,a,n,s;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a={returnCode:e.code},t.next=3,i.a.detail(a);case 3:if(!(r=t.sent)||0!==r.code||!r.data){t.next=14;break}e.sitem=r.data,a=e.sitem,n=a.status,a.can,s=a.returnCode,e.status=n,e.orderCode=s,e.sitem.error_img=e.sitem.error_img.split(","),e.expect_options=JSON.parse(JSON.stringify("1"===e.sitem.is_receive?e.expect_options1:e.expect_options0)),e.getNewTime(),t.next=20;break;case 14:if(r&&100<=r.code&&r.code<=104)return t.next=17,e.logout();t.next=19;break;case 17:t.next=20;break;case 19:e.$message.warning(r.message);case 20:case"end":return t.stop()}}),t)})))()}}},s=r("2877"),c=Object(s.a)(n,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"sellAfterApplyDetail pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?r("div",{staticStyle:{width:"100%"}},[r("p",[e._v(e._s(e.status)+"---"+e._s(e.powers))]),r("el-tabs",{model:{value:e.activeTabs,callback:function(t){e.activeTabs=t},expression:"activeTabs"}},[r("el-tab-pane",{attrs:{label:"业务详情",name:"1"}},[r("el-collapse",{staticStyle:{margin:"-18px 0 0 0"},model:{value:e.activeNames,callback:function(t){e.activeNames=t},expression:"activeNames"}},[r("el-collapse-item",{attrs:{title:"售后申请详情",name:"1"}},[""!==e.newTime?r("show-data-table",{attrs:{newTime:e.newTime,sitem:e.sitem,columns:e.sellshowColumns}},[r("template",{slot:"status"},[r("el-tag",{attrs:{size:"mini",type:"0"==e.sitem.status?"warning":""},domProps:{textContent:e._s((("0"===e.sitem.is_receive?e.status2Options:e.status1Options).find((function(t){return t.id===e.sitem.status}))||{}).label||"--")}})],1),r("template",{slot:"order_type"},[r("el-tag",{attrs:{size:"mini"},domProps:{textContent:e._s((e.orderOptions.find((function(t){return t.id==e.sitem.order_type}))||{}).label||"--")}})],1),r("template",{slot:"is_receive"},[r("el-tag",{attrs:{size:"mini",type:""}},[e._v(e._s("1"===e.sitem.is_receive?"已收到货":"0"===e.sitem.is_receive?"未收到":"--"))])],1),r("template",{slot:"except_code"},[r("el-tag",{attrs:{size:"mini"},domProps:{textContent:e._s((e.expect_options.find((function(t){return t.value==e.sitem.except_code}))||{}).label||"--")}})],1),r("template",{slot:"error_img"},e._l(e.sitem.error_img,(function(e,t){return r("img",{directives:[{name:"viewer",rawName:"v-viewer"}],key:e+t,staticClass:"fl hover",staticStyle:{width:"23px",height:"23px",margin:"0 5px 0 0"},attrs:{src:e}})})),0)],2):e._e()],1),r("el-collapse-item",{attrs:{title:"商品信息",name:"2"}},[""!==e.newTime&&e.sitem?r("show-goods-data-table",{attrs:{newTime:e.newTime,type:e.sitem.order_type,skucode:e.sitem.skuCode,spucode:e.sitem.good_code}}):e._e()],1),"1"===e.status&&e.powers.some((function(e){return"034"==e}))?r("el-collapse-item",{attrs:{title:"业务审核",name:"3"}},[r("exam-form",{attrs:{statusList:e.statusList,newTime:e.newTime,disabled:!1,isMust:!1},on:{searchChange:e.examForm}})],1):e._e(),e.status&&"1"!=e.status&&""!=e.newTime?r("el-collapse-item",{attrs:{title:"采购审核",name:"4"}},[""!=e.newTime?r("purchase-exam",{attrs:{sitem:e.sitem,newTime:e.newTime},on:{refresh:e.initData}}):e._e()],1):e._e(),!e.sitem||"1"!==e.sitem.is_receive||"3"!=e.status&&"4"!=e.status&&"5"!=e.status?e._e():r("el-collapse-item",{attrs:{title:"设置退货仓库",name:"4"}},[""!=e.newTime?r("express-feedback",{attrs:{sitem:e.sitem,newTime:e.newTime},on:{refresh:e.initData}}):e._e()],1)],1)],1),r("el-tab-pane",{attrs:{label:"审批记录",name:"2"}},[""!==e.newTime?r("process-time-line",{attrs:{newTime:e.newTime,type:"SHD",orderCode:e.orderCode}}):e._e()],1)],1)],1):r("div",[r("no-auth")],1)])}),[],!1,null,null,null);t.default=c.exports},2408:function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=(r("7db0"),r("d3b7"),r("96cf"),r("f1ed")),s={name:"brand",props:["showModel","index","sitem"],mixins:[r("9f53").a],data:function(){return{loading:!1,title:"商品规格",sinput:"",showModelThis:this.showModel,specVlist:[],ruleForm:{},rulesThis:this.rules,rules:{spec_id:[{required:!0,message:"规格类型不能为空",trigger:"change"}],spec_value_id:[{required:!0,message:"请选择规格值",trigger:"change"}]}}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis:function(e){e||this.$emit("cancel")}},methods:{initForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,e.sinput="",e.resetFormData(),e.rulesThis=e.rules,e.index+""=="-1"?e.title="添加商品规格值":e.title="修改商品规格值",t.next=7,e.resetForm();case 7:e.loading=!1;case 8:case"end":return t.stop()}}),t)})))()},resetForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$nextTick((function(){e.$refs.ruleForm&&(e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),e.resetFormData())}));case 2:case"end":return t.stop()}}),t)})))()},resetFormData:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r,a,n,s,i,o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(o=e.sitem,r=o.id,a=o.spec_id,n=o.spec_value,s=o.spec_value_id,i=o.spec_value_value,o=o.isMust,e.ruleForm={index:e.index,id:r||"",spec_id:a||"",spec_value:n||"",isMust:o||!1,spec_value_id:s||"",spec_value_value:i||""},a)return t.next=5,e.getlist();t.next=5;break;case 5:case"end":return t.stop()}}),t)})))()},add_spec:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r,a,s;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(r=e.ruleForm.spec_id)){t.next=25;break}if(e.sinput)return t.next=5,n.a.valueadd({spec_id:r,spec_value:e.sinput});t.next=22;break;case 5:if(r=t.sent,a=r.code,r.data,s=r.message,0===a)return t.next=12,e.getlist();t.next=14;break;case 12:t.next=20;break;case 14:if(100<=a&&a<=104)return t.next=17,e.logout();t.next=19;break;case 17:t.next=20;break;case 19:e.$message.warning(s);case 20:t.next=23;break;case 22:e.$message.warning("请输入规格值!");case 23:t.next=26;break;case 25:e.$message.warning("请选择规格类型!");case 26:case"end":return t.stop()}}),t)})))()},spec_idsearchChange:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){var a,n;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a=e.id,n=e.spec_name,t.ruleForm.spec_id=a||"",t.ruleForm.spec_value=n||"",t.$refs.ruleForm.validateField("spec_id"),r.next=6,t.getlist();case 6:case"end":return r.stop()}}),r)})))()},spec_value_id_change:function(e){var t,r;e?(t=(r=this.specVlist.find((function(t){return t.id===e}))).id,r=r.spec_value,this.ruleForm.spec_value_id=t||"",this.ruleForm.spec_value_value=r||""):(this.ruleForm.spec_value_id="",this.ruleForm.spec_value_value=""),this.$refs.ruleForm.validateField("spec_value_id")},getlist:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r,a,s,i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e.ruleForm.spec_id)return t.next=4,n.a.valueall({spec_id:r});t.next=20;break;case 4:if(r=t.sent,a=r.code,s=r.data,i=r.message,0!==a){t.next=12;break}e.specVlist=s,t.next=18;break;case 12:if(100<=a&&a<=104)return t.next=15,e.logout();t.next=17;break;case 15:t.next=18;break;case 17:e.$message.warning(i);case 18:t.next=21;break;case 20:e.specVlist=[];case 21:case"end":return t.stop()}}),t)})))()},submitForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.ruleForm.validate(function(){var t=Object(a.a)(regeneratorRuntime.mark((function t(r){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r){t.next=5;break}e.showModelThis=!1,e.$emit("refresh",e.ruleForm),t.next=7;break;case 5:return t.abrupt("return",!1);case 7:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()}}};r("8f03"),r=r("2877"),r=Object(r.a)(s,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:e.title,center:!0,align:"left",top:"18vh",width:"600px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)"},on:{"update:visible":function(t){e.showModelThis=t},close:function(t){e.showModelThis=!1}}},[r("el-card",{staticStyle:{margin:"-20px 0 0 0"}},[r("el-row",{attrs:{gutter:10}},[r("el-col",{attrs:{span:24}},[r("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",size:"small",rules:e.rulesThis,"label-width":"80px"}},[r("el-form-item",{attrs:{label:"规格类型",prop:"spec_id"}},[r("search-spec",{attrs:{value:e.ruleForm.spec_id,disabled:e.sitem.isMust,size:"mini",isDetail:!1,placeholder:"规格类型"},on:{searchChange:e.spec_idsearchChange}})],1),r("el-form-item",{attrs:{label:"规格值",prop:"spec_value_id"}},[0<e.specVlist.length?r("div",[r("el-radio-group",{on:{change:e.spec_value_id_change},model:{value:e.ruleForm.spec_value_id,callback:function(t){e.$set(e.ruleForm,"spec_value_id",t)},expression:"ruleForm.spec_value_id"}},e._l(e.specVlist,(function(t){return r("el-radio",{key:t.id+t.spec_value,attrs:{label:t.id}},[e._v(e._s(t.spec_value))])})),1)],1):r("div",{staticClass:"no-data"},[e._v("暂无规格值,请添加!")])])],1)],1),r("el-col",{staticStyle:{"text-align":"right","padding-top":"18px"},attrs:{span:24}},[r("el-input",{staticClass:"fl",staticStyle:{width:"209px"},attrs:{disabled:"edit"==e.id,size:"small",placeholder:"规格值名称,如红色",maxlength:"100"},model:{value:e.sinput,callback:function(t){e.sinput=t},expression:"sinput"}}),r("el-button",{staticClass:"fl",staticStyle:{margin:"0 0 0 10px"},attrs:{icon:"el-icon-plus",size:"small"},on:{click:e.add_spec}},[e._v("新增规格值")]),"edit"!==e.id?r("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.submitForm}},[e._v("保 存 ")]):e._e(),r("el-button",{attrs:{size:"small"},on:{click:function(t){e.showModelThis=!1}}},[e._v(e._s("edit"==e.id?"关 闭":"取 消"))])],1)],1)],1)],1)}),[],!1,null,"9858a34e",null);t.default=r.exports},2526:function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=(r("96cf"),r("d3b7"),r("159b"),r("e9c4"),r("e49d")),s={name:"sort",props:["showModel","id","sitem","titleList"],mixins:[r("9f53").a],data:function(){return{loading:!1,showModelThis:this.showModel,pid_name:"",ruleForm:{id:"",cat_name:"",order_rate:"0",sale_rate:"0",lower_rate:"0",rate:"0",low_rate:"0",money_rate:"0"},rulesThis:this.rules,rules:{order_rate:[{required:!0,validator:function(e,t,r){e=e.required,""===t&&e?r(new Error("预算→成本毛利率不能为空!")):r()},trigger:"blur"}],sale_rate:[{required:!0,validator:function(e,t,r){e=e.required,""===t&&e?r(new Error("成本→售价毛利率不能为空!")):r()},trigger:"blur"}],lower_rate:[{required:!1,validator:function(e,t,r){e=e.required,""===t&&e?r(new Error("BOSS毛利率不能为空!")):r()},trigger:"blur"}],rate:[{required:!0,validator:function(e,t,r){e=e.required,""===t&&e?r(new Error("主管利率毛利率不能为空!")):r()},trigger:"blur"}],low_rate:[{required:!0,validator:function(e,t,r){e=e.required,""===t&&e?r(new Error("项目最低毛利率不能为空!")):r()},trigger:"blur"}],money_rate:[{required:!0,validator:function(e,t,r){e=e.required,""===t&&e?r(new Error("财务毛利率不能为空!")):r()},trigger:"blur"}]}}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis:function(e){e||this.$emit("cancel")}},methods:{initForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,e.pid_name="",e.titleList.forEach((function(t,r){e.pid_name+=0!==r?"".concat(t.titleName,"/"):""})),e.rulesThis=e.rules,t.next=6,e.resetForm();case 6:return t.next=8,e.initData();case 8:e.loading=!1;case 9:case"end":return t.stop()}}),t)})))()},resetForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$nextTick((function(){var t,r,a,n,s,i,o,l,c,u;e.$refs.ruleForm&&(e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),t=(u=e.sitem).pid,r=u.id,a=u.cat_name,n=u.order_rate,s=u.sale_rate,i=u.lower_rate,o=u.rate,l=u.fund_code,c=u.low_rate,u=u.money_rate,e.ruleForm={pid:t||"",id:r||"",cat_name:a||"",fund_code:l||"",order_rate:n||"0",sale_rate:s||"0",lower_rate:i||"0",rate:o||"0",low_rate:c||"0",money_rate:u||"0"})}));case 2:case"end":return t.stop()}}),t)})))()},rate_change:function(e,t){this.ruleForm[t]=e+"",this.$refs.ruleForm.validateField(t)},initData:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r,a,s,i,o,l,c,u,d,p,m,f;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n.a.detail({id:e.sitem.id});case 2:if(a=t.sent,r=a.code,f=a.data,a=a.message,0!==r){t.next=11;break}s=f.pid,i=f.id,o=f.cat_name,l=f.order_rate,c=f.sale_rate,u=f.lower_rate,d=f.rate,p=f.fund_code,m=f.low_rate,f=f.money_rate,e.ruleForm={pid:s||"",id:i||"",cat_name:o||"",fund_code:p||"",order_rate:l||"0",sale_rate:c||"0",lower_rate:u||"0",rate:d||"0",low_rate:m||"0",money_rate:f||"0"},t.next=17;break;case 11:if(100<=r&&r<=104)return t.next=14,e.logout();t.next=16;break;case 14:t.next=17;break;case 16:e.$message.warning(a);case 17:case"end":return t.stop()}}),t)})))()},submitForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.ruleForm.validate(function(){var t=Object(a.a)(regeneratorRuntime.mark((function t(r){var a,s;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r)return e.loading=!0,delete(a=JSON.parse(JSON.stringify(e.ruleForm))).cat_name,delete a.pid,delete a.fund_code,t.next=8,n.a.editRate(a);t.next=24;break;case 8:if(s=t.sent,e.loading=!1,!s||0!==s.code){t.next=16;break}e.$notify.success({title:"毛利率设置成功!",message:""}),e.showModelThis=!1,e.$emit("refresh"),t.next=22;break;case 16:if(s&&100<=s.code&&s.code<=104)return t.next=19,e.logout();t.next=21;break;case 19:t.next=22;break;case 21:e.$message.warning(s.message);case 22:t.next=26;break;case 24:return t.abrupt("return",!1);case 26:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()}}};r("9302"),r=r("2877"),r=Object(r.a)(s,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:"设置毛利率",center:!0,align:"left",top:"12vh",width:"600px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)"},on:{"update:visible":function(t){e.showModelThis=t},close:function(t){e.showModelThis=!1}}},[t("el-card",{staticStyle:{margin:"-20px 0 0 0"}},[t("el-row",{attrs:{gutter:0}},[t("el-col",{attrs:{span:24}},[t("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",size:"small",rules:e.rulesThis,"label-width":"110px"}},[t("el-form-item",{attrs:{label:"分类名称",prop:"cat_name"}},[t("el-input",{attrs:{disabled:"",placeholder:"分类名称",maxlength:"20"},model:{value:e.ruleForm.cat_name,callback:function(t){e.$set(e.ruleForm,"cat_name",t)},expression:"ruleForm.cat_name"}},[e.pid_name?t("template",{slot:"prepend"},[e._v(e._s(e.pid_name))]):e._e()],2)],1),t("el-form-item",{attrs:{label:"财务核算码",prop:"fund_code"}},[t("el-input",{attrs:{disabled:"",placeholder:"财务核算码",maxlength:"50"},model:{value:e.ruleForm.fund_code,callback:function(t){e.$set(e.ruleForm,"fund_code",t)},expression:"ruleForm.fund_code"}})],1),t("el-form-item",{attrs:{label:"预算→成本",prop:"order_rate"}},[t("digital-input",{attrs:{values:e.ruleForm.order_rate,placeholder:"预算→成本",min:0,max:1e11,position:"right",precision:2,size:"mini",controls:!1,append:"%"},on:{reschange:function(t){return e.rate_change(t,"order_rate")}}})],1),t("el-form-item",{attrs:{label:"成本→售价",prop:"sale_rate"}},[t("digital-input",{attrs:{values:e.ruleForm.sale_rate,placeholder:"成本→售价",min:-100,max:1e11,position:"right",precision:2,size:"mini",controls:!1,append:"%"},on:{reschange:function(t){return e.rate_change(t,"sale_rate")}}})],1),t("el-form-item",{attrs:{label:"主管利率",prop:"rate"}},[t("digital-input",{attrs:{values:e.ruleForm.rate,placeholder:"主管利率",min:-100,max:1e11,position:"right",precision:2,size:"mini",controls:!1,append:"%"},on:{reschange:function(t){return e.rate_change(t,"rate")}}})],1),t("el-form-item",{attrs:{label:"财务利率",prop:"money_rate"}},[t("digital-input",{attrs:{values:e.ruleForm.money_rate,placeholder:"财务利率",min:-100,max:1e11,position:"right",precision:2,size:"mini",controls:!1,append:"%"},on:{reschange:function(t){return e.rate_change(t,"money_rate")}}})],1),t("el-form-item",{attrs:{label:"项目最低毛利",prop:"low_rate"}},[t("digital-input",{attrs:{values:e.ruleForm.low_rate,placeholder:"项目最低毛利",min:-100,max:1e11,position:"right",precision:2,size:"mini",controls:!1,append:"%"},on:{reschange:function(t){return e.rate_change(t,"low_rate")}}})],1),t("el-form-item",{attrs:{label:"BOSS毛利率",prop:"lower_rate"}},[t("digital-input",{attrs:{values:e.ruleForm.lower_rate,placeholder:"BOSS毛利率",min:-100,max:1e11,position:"right",precision:2,size:"mini",controls:!1,append:"%"},on:{reschange:function(t){return e.rate_change(t,"lower_rate")}}})],1)],1)],1),t("el-col",{staticStyle:{"text-align":"right"},attrs:{span:24}},["007"!==e.id?t("el-button",{attrs:{type:"primary",size:"small"},on:{click:e.submitForm}},[e._v("保 存 ")]):e._e(),t("el-button",{attrs:{size:"small"},on:{click:function(t){e.showModelThis=!1}}},[e._v(e._s("007"==e.id?"关 闭":"取 消"))])],1)],1)],1)],1)}),[],!1,null,"a2d10e4c",null);t.default=r.exports},2567:function(e,t,r){},"25dd":function(e,t,r){"use strict";r("d681")},2623:function(e,t,r){"use strict";var a=r("1b69"),n="admin/";t.a={list:function(e,t){return Object(a.a)(n+"ulist",e,"post",t)},detail:function(e,t){return Object(a.a)(n+"query",e,"post",t)},update:function(e,t){return Object(a.a)(n+"refresh",e,"post",t)},add:function(e,t){return Object(a.a)(n+"add",e,"post",t)},delete:function(e,t){return Object(a.a)(n+"itemdel",e,"post",t)},status:function(e,t){return Object(a.a)(n+"stat",e,"post",t)},getRole:function(e,t){return Object(a.a)(n+"roleall",e,"post",t)},userp:function(e,t){return Object(a.a)(n+"userp",e,"post",t)}}},"26fc":function(e,t,r){e.exports=r.p+"static/img/404_cloud.0f4bc32b.png"},2764:function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=(r("96cf"),r("7db0"),r("d3b7"),r("e9c4"),r("159b"),r("b0c0"),r("ac1f"),r("1276"),r("a434"),r("25f0"),r("b64b"),r("c740"),r("7dbe")),s=r("9f53"),i=r("82ae"),o=r("fcbc");s={name:"handover",props:["id","sitem","newTime","type"],mixins:[s.a],components:{baseFormAddEdit:o.default},data:function(){return{od_form:null,unit_name:"",modelIndex:"",modelSitem:{},brand_name:"",showOtherModel:!1,platform_name:"",cat_id_name:"",is_noble:!1,multipleSelection:[],is_addrs_options:[{value:"0",label:"一地"},{value:"1",label:"多地"}],is_custom_options:[{value:"0",label:"非定制"},{value:"1",label:"定制"}],is_gold_price_options:[{value:"0",label:"不启用"},{value:"1",label:"启用"}],config_options:["证书","包装盒","绒布袋","标签","其他"],ptableData:[],showModel:!1,editItem:{},spec_tableData:[],options:[{value:"0",label:"非项目"},{value:"1",label:"项目"}],statusOptions:[{value:"1",label:"竞品"},{value:"2",label:"竞聘"}],configOptions:["证书","包装盒","绒布袋","标签","其他"],poptions:[],loading:!1,selectLoading:!1,pickerOptions:{disabledDate:function(e){return e.getTime()<Date.now()-864e5}},pickerOptions1:{disabledDate:function(e){return e.getTime()<=Date.now()}},status:"",ruleForm:{is_project:"0",projectNo:[],khNo:[],khname:"",companyNo:"",endtime:"",pendtime:"",platform_code:"",puse_desc:"",budget_total:"",arrtime:"",p_cat_info:[],p_cat_id:"",p_budget_price:"",p_pgNo:"",p_num:"",p_good_type:"",p_good_name:"",p_good_img:"",pgNo:"",arrival_time:"",budget_price:"0.00",num:"0",brand_id:[],cat_id:[],unit:[],good_img:"",good_name:"",total_weight:"0",is_addrs:"",is_custom:"",is_gold_price:"",config:[],specs_weight:"0.000",other_config:"",cost_desc:"",use_desc:"",remark:"",metal_id:"",gold_price:""},rulesThis:this.rules,rules:i.a}},computed:{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"zixunOrderDetail"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}},mounted:function(){this.initForm()},watch:{id:function(e){e&&this.initForm()},newTime:function(e){e&&this.initForm()}},methods:{initForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,e.status="",e.spec_tableData=[],e.platform_name="",e.rulesThis=e.rules,e.disabled=!1,t.next=8,e.resetForm();case 8:e.sch_is_noble(),e.loading=!1;case 10:case"end":return t.stop()}}),t)})))()},handleSelectionChange:function(e){this.multipleSelection=e},digitalInput:function(e,t){var r=this;return Object(a.a)(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:r.ruleForm[t]=e+""||"0",r.$refs.ruleForm.validateField(t);case 2:case"end":return a.stop()}}),a)})))()},sch_is_noble:function(){this.rulesThis.projectNo[0].required="1"===this.ruleForm.is_project,this.$refs.ruleForm.validateField("projectNo");for(var e=["config","specs_weight","is_gold_price","metal_id","other_config","gold_price"],t=0;t<e.length;t++)this.rulesThis[e[t]]&&(this.rulesThis[e[t]][0].required=this.is_noble,this.$refs.ruleForm.validateField(e[t]))},resetForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.resign_name="",e.hand_name="",e.status="",t.next=5,e.$nextTick(Object(a.a)(regeneratorRuntime.mark((function t(){var r,a,n,s,i,o,l,c,u,d,p,m,f,h,g,b,_,w,v,x,k,y,F,O,S,C,$,j,R,z,T,N,V,M,D,I,L,q,E,J,P,A,B;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.$refs.ruleForm){t.next=16;break}if(e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),B=JSON.parse(JSON.stringify(e.sitem)),r=B.is_project,a=B.projectNo,n=B.khNo,s=B.khname,i=B.companyNo,o=B.endtime,l=B.platform_code,c=B.platform_name,B.ladder,u=B.pgNo,d=B.can,p=B.arrival_time,m=B.budget_price,f=B.num,h=B.brand_id,g=B.brand,b=B.cat_id,_=B.good_img,w=B.good_name,v=B.total_weight,x=B.is_addrs,k=B.is_custom,y=B.is_gold_price,F=B.config,O=B.specs_weight,S=B.other_config,C=B.cost_desc,$=B.use_desc,j=B.remark,R=B.metal_id,z=B.gold_price,T=B.unit,N=B.unit_name,V=B.p_cat_info,M=B.p_cat_id,D=B.p_budget_price,I=B.p_pgNo,L=B.p_num,q=B.p_good_type,E=B.p_good_name,J=B.p_good_img,P=B.p_arrtime,A=B.specinfo,B=B.enclosure_file,e.unit_name=N,e.brand_name=g,e.spec_tableData=A&&0<A.length?JSON.parse(JSON.stringify(A)):[],e.cat_id_name="",d&&0<d.length&&d.forEach((function(t,r){0===r&&"6"===t.id&&(e.is_noble=!0),e.cat_id_name+=0===r?t.name:"_".concat(t.name)})),e.platform_name=c||"",e.ruleForm={infoNo:e.id,is_project:r||"1",projectNo:a?[a]:[],khNo:n?[n]:[],khname:s||"",companyNo:i||"",endtime:o||"",platform_code:l||"",puse_desc:"",budget_total:"",arrtime:"",p_cat_info:V,p_cat_id:M,p_budget_price:D,p_pgNo:I,p_num:L,p_good_type:q,p_good_name:E,p_good_img:J,p_arrtime:P,pgNo:u||"",arrival_time:p||"",budget_price:m||"0.00",num:f||"0",brand_id:h?[h]:[],cat_id:b&&0<b.length?[b[b.length-1]]:[],good_img:_||"",good_name:w||"",total_weight:v||"0",is_addrs:x||"0",is_custom:k||"0",is_gold_price:y||"0",config:F?F.split(","):[],specs_weight:O||"0.000",other_config:S||"",cost_desc:C||"",use_desc:$||"",remark:j||"",metal_id:R||"",gold_price:z||"",unit:T?[T]:[],enclosure_file:B||""},e.ruleForm.projectNo&&1===e.ruleForm.projectNo.length)return t.next=15,e.selectChange(e.ruleForm.projectNo);t.next=15;break;case 15:e.od_form=JSON.parse(JSON.stringify(e.ruleForm));case 16:case"end":return t.stop()}}),t)}))));case 5:case"end":return t.stop()}}),t)})))()},openEdit:function(e,t){this.modelIndex=e,this.modelSitem=t,this.showOtherModel=!0},openDelete:function(e){this.spec_tableData.splice(e,1)},refreshEdit:function(e){e=JSON.parse(JSON.stringify(e));var t=e.index,r=e.specid,a=e.spec_name,n=e.spec_value_id,s=e.spec_value_name;t+""=="-1"?this.spec_tableData.push(e):(e=parseInt(t+""),this.spec_tableData[e].specid=r,this.spec_tableData[e].spec_name=a,this.spec_tableData[e].spec_value_id=n,this.spec_tableData[e].spec_value_name=s),this.showOtherModel=!1},submitForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.sch_is_noble(),t.next=3,e.$refs.ruleForm.validate(function(){var t=Object(a.a)(regeneratorRuntime.mark((function t(r){var a,s,i,o,l;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r){t.next=43;break}if(e.loading=!0,a=JSON.parse(JSON.stringify(e.ruleForm)),s=a.pendtime,i=a.is_project,o=a.endtime,"1"===i&&new Date(o).getTime()>new Date(s).getTime())return e.$message.warning("咨询截止时间不能晚于项目咨询截止时间!"),e.loading=!1,t.abrupt("return");t.next=8;break;case 8:return a.khNo=a.khNo.toString(),a.projectNo=a.projectNo.toString(),a.brand_id=a.brand_id.toString(),a.unit=a.unit.toString(),a.cat_id=a.cat_id.toString(),a.config=a.config.toString(),a.specinfo=[],JSON.parse(JSON.stringify(e.spec_tableData)).forEach((function(e){e={specid:e.specid,spec_value_id:e.spec_value_id},a.specinfo.push(e)})),delete a.pendtime,delete a.arrtime,delete a.puse_desc,delete a.budget_total,delete a.khname,e.loading=!1,Object.keys(a).forEach((function(t){a[t],e.sitem[t]})),t.next=28,n.a.update(a);case 28:if(l=t.sent,e.loading=!1,!l||0!==l.code){t.next=35;break}e.$notify.success({title:"创建成功!",message:""}),e.$emit("refresh",!0),t.next=41;break;case 35:if(l&&100<=l.code&&l.code<=104)return t.next=38,e.logout();t.next=40;break;case 38:t.next=41;break;case 40:e.$message.warning(l.message);case 41:t.next=45;break;case 43:return t.abrupt("return",!1);case 45:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 3:case"end":return t.stop()}}),t)})))()},selectChange:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){var a,s,i,o,l,c,u,d,p,m,f;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(a=e&&0<e.length?e[0]:"")return r.next=4,n.a.pdetail({projectNo:a});r.next=35;break;case 4:if(i=r.sent,s=i.code,d=i.data,i=i.message,0!==s){r.next=22;break}m=d.use_desc,f=d.budget_total,o=d.ladder,l=d.arrtime,c=d.project_name,u=d.status,d=d.endtime,p=t.ruleForm.pgNo,t.ruleForm.puse_desc=m||"",t.ruleForm.budget_total=f||"",t.ruleForm.arrtime=l||"",t.ruleForm.pendtime=d||"",t.poptions=[{project_name:c,projectNo:a,status:u}],-1!==(f=(m=o).findIndex((function(e){return e.pgNo===p})))&&(t.ptableData.push(m[f]),t.ptableData.forEach((function(e){e.cat_name="";var t=e.cat_info;t&&0<t.length&&t.forEach((function(t,r){e.cat_name+=0!==r?"/"+t.name:t.name}))}))),r.next=33;break;case 22:if(100<=s&&s<=104)return r.next=25,t.logout();r.next=27;break;case 25:r.next=33;break;case 27:t.$message.warning(i),t.ptableData=[],t.ruleForm.puse_desc="",t.ruleForm.budget_total="",t.ruleForm.arrtime="",t.ruleForm.pendtime="";case 33:r.next=40;break;case 35:t.ptableData=[],t.ruleForm.puse_desc="",t.ruleForm.budget_total="",t.ruleForm.arrtime="",t.ruleForm.pendtime="";case 40:case"end":return r.stop()}}),r)})))()},remoteMethod:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){var a,s,i,o,l,c,u;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t.selectLoading=!0,t.poptions=[],i=JSON.parse(JSON.stringify(t.ruleForm)),a=i.platform_code,s=i.companyNo,i=i.khNo,s){r.next=7;break}return t.$message.warning("请选择销售方公司!"),t.selectLoading=!1,r.abrupt("return");case 7:if(0===i.length)return t.$message.warning("请选择购买方公司!"),t.selectLoading=!1,r.abrupt("return");r.next=11;break;case 11:if(""===a)return t.$message.warning("请选择所属平台!"),t.selectLoading=!1,r.abrupt("return");r.next=15;break;case 15:if(e){r.next=18;break}return t.selectLoading=!1,r.abrupt("return");case 18:return o={page:1,size:100,khNo:i.toString(),companyNo:s,platform_code:a,status:"1",project_name:e},r.next=21,n.a.plist(o);case 21:if(o=r.sent,l=o.code,u=o.data,c=o.message,0!==l){r.next=30;break}u=u.list,t.poptions=u,r.next=37;break;case 30:if(100<=l&&l<=104)return r.next=33,t.logout();r.next=35;break;case 33:r.next=37;break;case 35:t.$message.warning(c),t.poptions=[];case 37:t.selectLoading=!1;case 38:case"end":return r.stop()}}),r)})))()},platform_code_codesearchChange:function(e){var t;e&&(t=e.id,e.code,e.label,this.ruleForm.platform_code=t||"",this.$refs.ruleForm.validateField("platform_code"),this.ruleForm.projectNo=[],this.ruleForm.budget_total="0",this.ruleForm.puse_desc="",this.ruleForm.pendtime="",this.ruleForm.arrtime="",this.ptableData=[])},brand_id_searchChange:function(e){e=e.id,this.ruleForm.brand_id=e?[e]:[],this.$refs.ruleForm.validateField("brand_id")},unitsearchChange:function(e){var t=e.code;e=e.label;this.ruleForm.unit=t?[t]:[],this.unit_name=e||"",this.$refs.ruleForm.validateField("unit")},company_idsearchChange:function(e){var t;e&&(e.id,t=e.code,e.label,this.ruleForm.companyNo=t||""),this.$refs.ruleForm.validateField("companyNo")},customerChange:function(e){e&&e.id?(this.ruleForm.khNo=[e.code],this.ruleForm.khname=e.label):(this.ruleForm.khNo=[],this.ruleForm.khname=""),this.$refs.ruleForm.validateField("khNo"),this.ruleForm.projectNo=[],this.ruleForm.budget_total="0",this.ruleForm.pendtime="",this.ruleForm.arrtime="",this.ptableData=[]},noble_metalsearchChange:function(e){var t=e.id;e=e.price;this.ruleForm.metal_id=t||"",this.$refs.ruleForm.validateField("noble_metal"),this.ruleForm.gold_price=e||"0",this.$refs.ruleForm.validateField("gold_price")},goods_class_change:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){var a,n,s;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:e.code,a=e.pid,n=e.id,e.label,s=e.item,t.ruleForm.cat_id=n?[n]:[],t.ruleForm.cat_arr_id=s,t.$refs.ruleForm.validateField("cat_id"),t.is_noble="6"===a;case 6:case"end":return r.stop()}}),r)})))()},beforeAvatarUpload:function(e){var t=!1,r=!1;return e&&("image/jpg"!==e.type&&"image/png"!==e.type&&"image/jpeg"!==e.type||(t=!0),r=e.size/1024/1024<1,t||this.$message.error("图片格式不正确!"),r||this.$message.error("图片大小不能超过 1MB!")),t&&r},UploadErrorEvent:function(e){"break"!==e&&(this.$message.error("图片上传失败!"),this.ruleForm.good_img="",this.$refs.ruleForm.validateField("good_img"))},UploadSuccessEvent:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){var a;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if("noToken"===(a=e.url))return r.next=4,t.logout();r.next=6;break;case 4:r.next=9;break;case 6:t.ruleForm.good_img=a,t.$message.success("图片上传成功!"),t.$refs.ruleForm.validateField("good_img");case 9:case"end":return r.stop()}}),r)})))()},UploadErrorOtherenclosure_file:function(e){"break"!==e&&this.$refs.ruleForm.validateField("enclosure_file")},beforeOtherUpload:function(e){var t=!1;"application/x-zip-compressed"===e.type&&(t=!0);var r=e.name.split(".");"rar"!==r[r.length-1]&&"7z"!==r[r.length-1]||(t=!0),r=e.size/1024/1024<5;return t||this.$message.error("文件格式不正确!"),r||this.$message.error("文件大小不能超过 5MB!"),t&&r},deleteUrl:function(){this.ruleForm.enclosure_file="",this.$refs.ruleForm.validateField("enclosure_file")},UploadSuccessOtherenclosure_file:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){var a;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if("noToken"===(a=e.url))return r.next=5,t.logout();r.next=7;break;case 5:r.next=9;break;case 7:t.ruleForm.enclosure_file=a,t.$message.success("附件上传成功!");case 9:case"end":return r.stop()}}),r)})))()}}},o=r("2877"),r=Object(o.a)(s,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",staticStyle:{width:"100%"},attrs:{loading:e.loading,model:e.ruleForm,"status-icon":"",size:"mini",rules:e.rulesThis,"label-width":"110px"}},[r("el-row",[r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"销售方",prop:"companyNo"}},[r("search-work-company",{attrs:{value:e.ruleForm.companyNo,placeholder:"销售方公司",disabled:"view"===e.type||"edit"===e.type,size:"mini",isDetail:"view"===e.type||"edit"===e.type},on:{searchChange:e.company_idsearchChange}})],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"购买方公司",prop:"khNo"}},[r("search-customer",{attrs:{value:e.ruleForm.khNo,names:e.ruleForm.khname,placeholder:"购买方公司",size:"mini",disabled:"view"===e.type||"edit"===e.type,"is-detail":"view"===e.type||"edit"===e.type},on:{searchChange:e.customerChange}})],1)],1),r("el-col",{attrs:{span:8}},[r("el-form-item",{attrs:{label:"所属平台",prop:"platform_code"}},[r("search-terrace",{attrs:{value:e.ruleForm.platform_code,disabled:"view"===e.type||"edit"===e.type,size:"mini",isDetail:"view"===e.type||"edit"===e.type,names:e.platform_name,placeholder:"所属平台"},on:{searchChange:e.platform_code_codesearchChange}})],1)],1),r("el-col",{attrs:{span:8}},[r("el-form-item",{attrs:{label:"咨询截止时间",prop:"endtime"}},[r("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"datetime","value-format":"yyyy-MM-dd HH:mm:ss",disabled:"view"===e.type,"picker-options":e.pickerOptions,placeholder:"咨询截止时间"},model:{value:e.ruleForm.endtime,callback:function(t){e.$set(e.ruleForm,"endtime",t)},expression:"ruleForm.endtime"}})],1)],1),r("el-col",{attrs:{span:8}},[r("el-form-item",{attrs:{label:"咨询类型",prop:"is_project"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"咨询类型",clearable:"",disabled:"view"===e.type||"edit"===e.type},model:{value:e.ruleForm.is_project,callback:function(t){e.$set(e.ruleForm,"is_project",t)},expression:"ruleForm.is_project"}},e._l(e.options,(function(e){return r("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1)],1),r("el-col",{directives:[{name:"show",rawName:"v-show",value:"1"===e.ruleForm.is_project,expression:"ruleForm.is_project === '1'"}],attrs:{span:8}},[r("el-form-item",{attrs:{label:"项目名称",prop:"projectNo"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{multiple:"",filterable:"",remote:"",clearable:"",disabled:"view"===e.type||"edit"===e.type&&"1"===e.ruleForm.is_project,"multiple-limit":1,"reserve-keyword":"",placeholder:"项目名称","remote-method":e.remoteMethod,loading:e.selectLoading},on:{change:e.selectChange},model:{value:e.ruleForm.projectNo,callback:function(t){e.$set(e.ruleForm,"projectNo",t)},expression:"ruleForm.projectNo"}},e._l(e.poptions,(function(e,t){return r("el-option",{key:e.projectNo+t,attrs:{label:e.project_name,value:e.projectNo+"",disabled:"1"!==e.status}})})),1)],1)],1),r("el-col",{directives:[{name:"show",rawName:"v-show",value:"1"===e.ruleForm.is_project,expression:"ruleForm.is_project === '1'"}],attrs:{span:8}},[r("el-form-item",{attrs:{label:"项目咨询截止时间",required:"","label-width":"140px"}},[r("el-input",{attrs:{placeholder:"项目咨询截止时间",disabled:"",maxlength:"500"},model:{value:e.ruleForm.pendtime,callback:function(t){e.$set(e.ruleForm,"pendtime",t)},expression:"ruleForm.pendtime"}})],1)],1),r("el-col",{directives:[{name:"show",rawName:"v-show",value:"1"===e.ruleForm.is_project,expression:"ruleForm.is_project === '1'"}],attrs:{span:8}},[r("el-form-item",{attrs:{label:"要求到货时间",required:""}},[r("el-input",{attrs:{placeholder:"要求到货时间",disabled:"",maxlength:"500"},model:{value:e.ruleForm.arrtime,callback:function(t){e.$set(e.ruleForm,"arrtime",t)},expression:"ruleForm.arrtime"}})],1)],1),r("el-col",{directives:[{name:"show",rawName:"v-show",value:"1"===e.ruleForm.is_project,expression:"ruleForm.is_project === '1'"}],attrs:{span:16}},[r("el-form-item",{attrs:{label:"项目用途",required:""}},[r("el-input",{attrs:{placeholder:"项目用途",disabled:"",maxlength:"500"},model:{value:e.ruleForm.puse_desc,callback:function(t){e.$set(e.ruleForm,"puse_desc",t)},expression:"ruleForm.puse_desc"}})],1)],1),r("el-col",{directives:[{name:"show",rawName:"v-show",value:"1"===e.ruleForm.is_project,expression:"ruleForm.is_project === '1'"}],attrs:{span:8}},[r("el-form-item",{attrs:{label:"项目总预算",required:""}},[r("el-input",{attrs:{placeholder:"项目总预算",disabled:"",maxlength:"500"},model:{value:e.ruleForm.budget_total,callback:function(t){e.$set(e.ruleForm,"budget_total",t)},expression:"ruleForm.budget_total"}},[r("template",{slot:"append"},[e._v("元")])],2)],1)],1),r("el-col",{directives:[{name:"show",rawName:"v-show",value:"1"===e.ruleForm.is_project,expression:"ruleForm.is_project === '1'"}],attrs:{span:24}},[r("el-form-item",{attrs:{label:"项目商品要求",required:""}},[r("el-table",{staticStyle:{width:"100%"},attrs:{data:e.ptableData,size:"mini",border:"",stripe:"","tooltip-effect":"dark"}},[r("el-table-column",{attrs:{prop:"good_type",label:"商品类型",width:"80px"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-tag",{attrs:{size:"mini"},domProps:{textContent:e._s((e.statusOptions.find((function(e){return e.value==t.row.good_type}))||{}).label||"--")}})]}}])}),r("el-table-column",{attrs:{prop:"budget_price",label:"预算单价",width:"110"}}),r("el-table-column",{attrs:{prop:"num",label:"购买数量",width:"110"}}),r("el-table-column",{attrs:{prop:"cat_name",label:"商品分类"}}),r("el-table-column",{attrs:{prop:"good_img",label:"图片",width:"70"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.good_img?r("div",{directives:[{name:"viewer",rawName:"v-viewer"}],staticClass:"hover",staticStyle:{width:"20px",height:"20px"}},[r("img",{staticStyle:{display:"inline-block",width:"100%",height:"100%"},attrs:{src:t.row.good_img,alt:""}})]):e._e()]}}])}),r("el-table-column",{attrs:{prop:"good_name",label:"商品名称"}})],1)],1)],1),r("el-col",{attrs:{span:24}},[r("el-row",[r("el-col",{attrs:{span:8}},[r("el-form-item",{attrs:{label:"到货日期",prop:"arrival_time"}},[r("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"date",disabled:"view"===e.type||"edit"===e.type&&"1"===e.ruleForm.is_project,"value-format":"yyyy-MM-dd","picker-options":e.pickerOptions1,placeholder:"到货日期"},model:{value:e.ruleForm.arrival_time,callback:function(t){e.$set(e.ruleForm,"arrival_time",t)},expression:"ruleForm.arrival_time"}})],1)],1),r("el-col",{attrs:{span:6}},[r("el-form-item",{attrs:{label:"是否多地",prop:"is_addrs"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"是否多地",disabled:"view"===e.type},model:{value:e.ruleForm.is_addrs,callback:function(t){e.$set(e.ruleForm,"is_addrs",t)},expression:"ruleForm.is_addrs"}},e._l(e.is_addrs_options,(function(e){return r("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1)],1),r("el-col",{attrs:{span:6}},[r("el-form-item",{attrs:{label:"预算单价",prop:"budget_price"}},[r("digital-input",{attrs:{values:e.ruleForm.budget_price,placeholder:"预算单价",min:0,max:1e11,position:"right",precision:2,size:"mini",disabled:"view"===e.type||"edit"===e.type&&"1"===e.ruleForm.is_project,controls:!1,append:"元"},on:{reschange:function(t){return e.digitalInput(t,"budget_price")}}})],1)],1),r("el-col",{attrs:{span:4}},[r("el-form-item",{attrs:{label:"数量",prop:"num","label-width":"60px"}},[r("digital-input",{attrs:{values:e.ruleForm.num,placeholder:"数量",min:0,max:1e11,position:"right",precision:0,size:"mini",disabled:"view"===e.type||"edit"===e.type&&"1"===e.ruleForm.is_project,controls:!1,append:""},on:{reschange:function(t){return e.digitalInput(t,"num")}}})],1)],1),r("el-col",{attrs:{span:8}},[r("el-form-item",{attrs:{label:"品牌",prop:"brand_id"}},[r("search-brand",{attrs:{value:e.ruleForm.brand_id,size:"mini",isDetail:"view"===e.type||"edit"===e.type,names:e.brand_name,disabled:"view"===e.type||"edit"===e.type,placeholder:"品牌"},on:{searchChange:e.brand_id_searchChange}})],1)],1),r("el-col",{attrs:{span:6}},[r("el-form-item",{attrs:{label:"是否定制",prop:"is_custom"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"是否定制",disabled:"view"===e.type},model:{value:e.ruleForm.is_custom,callback:function(t){e.$set(e.ruleForm,"is_custom",t)},expression:"ruleForm.is_custom"}},e._l(e.is_custom_options,(function(e){return r("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1)],1),r("el-col",{attrs:{span:6}},[r("el-form-item",{attrs:{label:"重量",prop:"total_weight"}},[r("digital-input",{attrs:{values:e.ruleForm.total_weight,placeholder:"重量",min:0,max:1e11,position:"right",precision:3,controls:!1,size:"mini",append:"g",disabled:"view"===e.type},on:{reschange:function(t){return e.digitalInput(t,"total_weight")}}})],1)],1),r("el-col",{attrs:{span:4}},[r("el-form-item",{attrs:{label:"单位",prop:"unit","label-width":"60px"}},[r("search-unit",{attrs:{value:e.ruleForm.unit,disabled:"view"===e.type,size:"mini",isDetail:"view"===e.type||"edit"===e.type,names:e.unit_name,placeholder:"商品单位"},on:{searchChange:e.unitsearchChange}})],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"商品分类",prop:"cat_id"}},[r("search-sort",{attrs:{value:e.ruleForm.cat_id,placeholder:"商品分类",disabled:"view"===e.type||"edit"===e.type,size:"mini",names:e.cat_id_name,isDetail:"view"===e.type||"edit"===e.type},on:{searchChange:e.goods_class_change}})],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"商品名称",prop:"good_name"}},[r("el-input",{attrs:{disabled:"view"===e.type,placeholder:"商品名称",maxlength:"100"},model:{value:e.ruleForm.good_name,callback:function(t){e.$set(e.ruleForm,"good_name",t)},expression:"ruleForm.good_name"}})],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"工艺说明",prop:"cost_desc"}},[r("el-input",{attrs:{disabled:"view"===e.type,placeholder:"工艺说明",maxlength:"500"},model:{value:e.ruleForm.cost_desc,callback:function(t){e.$set(e.ruleForm,"cost_desc",t)},expression:"ruleForm.cost_desc"}})],1),r("el-form-item",{attrs:{label:"产品用途",prop:"use_desc"}},[r("el-input",{attrs:{disabled:"view"===e.type,placeholder:"产品用途",maxlength:"500"},model:{value:e.ruleForm.use_desc,callback:function(t){e.$set(e.ruleForm,"use_desc",t)},expression:"ruleForm.use_desc"}})],1),r("el-form-item",{attrs:{label:"商品备注",prop:"remark"}},[r("el-input",{attrs:{disabled:"view"===e.type,placeholder:"商品备注",maxlength:"500"},model:{value:e.ruleForm.remark,callback:function(t){e.$set(e.ruleForm,"remark",t)},expression:"ruleForm.remark"}})],1)],1),r("el-col",{staticStyle:{padding:"0 0 0 15px"},attrs:{span:12}},[r("el-table",{staticStyle:{width:"100%"},attrs:{data:e.spec_tableData,size:"mini",border:"",height:"120px"}},[r("el-table-column",{attrs:{prop:"spec_name",label:"规格类型"}}),r("el-table-column",{attrs:{prop:"spec_value_name",label:"规格值"}}),"view"!==e.type?r("el-table-column",{attrs:{fixed:"right",width:"88px"},scopedSlots:e._u([{key:"header",fn:function(t){return[r("span",[e._v("操作")]),r("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"添加规格类型",placement:"top"}},[r("i",{staticClass:"el-icon-circle-plus-outline fr",staticStyle:{"font-size":"18px","margin-top":"2px"},on:{click:function(t){return e.openEdit("-1",{})}}})])]}},{key:"default",fn:function(t){return[r("el-tooltip",{attrs:{effect:"dark",content:"修改",placement:"top"}},[r("i",{staticClass:"el-icon-edit tb-icon",on:{click:function(r){return e.openEdit(t.$index,t.row)}}})]),r("el-tooltip",{attrs:{effect:"dark",content:"删除",placement:"top"}},[r("i",{staticClass:"el-icon-delete tb-icon",on:{click:function(r){return e.openDelete(t.$index)}}})])]}}],null,!1,2783436760)}):e._e()],1),r("base-form-add-edit",{attrs:{index:e.modelIndex,"show-model":e.showOtherModel,sitem:e.modelSitem},on:{refresh:e.refreshEdit,cancel:function(t){e.showOtherModel=!1}}})],1),r("el-col",{attrs:{span:24}},[r("el-row",[r("el-col",{directives:[{name:"show",rawName:"v-show",value:e.is_noble,expression:"is_noble"}],attrs:{span:12}},[r("el-form-item",{attrs:{label:"配置要求",prop:"config"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{multiple:"",disabled:"view"===e.type,placeholder:"配置要求"},model:{value:e.ruleForm.config,callback:function(t){e.$set(e.ruleForm,"config",t)},expression:"ruleForm.config"}},e._l(e.config_options,(function(e,t){return r("el-option",{key:e+t,attrs:{label:e,value:e}})})),1)],1)],1),r("el-col",{directives:[{name:"show",rawName:"v-show",value:e.is_noble,expression:"is_noble"}],attrs:{span:6}},[r("el-form-item",{attrs:{label:"金属克重",prop:"specs_weight"}},[r("digital-input",{attrs:{values:e.ruleForm.specs_weight,placeholder:"金属克重",min:0,max:1e11,position:"right",precision:3,controls:!1,size:"mini",disabled:"view"===e.type,append:"g"},on:{reschange:function(t){return e.digitalInput(t,"specs_weight")}}})],1)],1),r("el-col",{directives:[{name:"show",rawName:"v-show",value:e.is_noble,expression:"is_noble"}],attrs:{span:6}},[r("el-form-item",{attrs:{label:"启用金价",prop:"is_gold_price"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"启用金价",disabled:"view"===e.type},model:{value:e.ruleForm.is_gold_price,callback:function(t){e.$set(e.ruleForm,"is_gold_price",t)},expression:"ruleForm.is_gold_price"}},e._l(e.is_gold_price_options,(function(e){return r("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1)],1),r("el-col",{staticStyle:{"text-align":"right"},attrs:{span:24}},[r("el-row",[r("el-col",{attrs:{span:8}},[r("el-form-item",{attrs:{label:"商品图片",prop:"good_img",disabled:"007"==e.id}},[r("div",{staticClass:"activity-upload clear"},[r("div",{staticClass:"btnupload"},[e.ruleForm.good_img?r("img",{staticClass:"avatar",attrs:{src:e.ruleForm.good_img}}):r("i",{staticClass:"el-icon-plus avatar-uploader-icon"}),r("file-upload",{staticClass:"Upload",attrs:{disabled:"view"===e.type||"view"!==e.type&&e.ruleForm.p_good_img,accept:".jpg,.png,.jpeg",multiple:!0,uploadcondition:e.beforeAvatarUpload},on:{UploadErrorEvent:e.UploadErrorEvent,UploadSuccessEvent:e.UploadSuccessEvent}})],1),r("div",{staticClass:"txt-tips fl"},[r("p",[e._v("小于1Mb")])])])])],1),r("el-col",{staticClass:"clear",attrs:{span:8}},[r("el-form-item",{staticClass:"activity-upload",attrs:{label:"附件",prop:"enclosure_file"}},[e.ruleForm&&e.ruleForm.enclosure_file?r("div",{staticClass:"clearfix tl"},[r("a",{staticClass:"fl",attrs:{href:e.ruleForm.enclosure_file,download:"附件"}},[e._v("点击下载")]),"view"!==e.type?r("el-link",{staticClass:"fr",staticStyle:{margin:"0 0 0 16px"},attrs:{underline:!1,type:"warning"},on:{click:function(t){return e.deleteUrl()}}},[e._v("删除")]):e._e()],1):r("div",{staticClass:"activity-upload"},[r("div",{staticClass:"btnupload",staticStyle:{position:"relative"}},[r("i",{staticClass:"el-icon-plus avatar-uploader-icon"}),r("file-upload-pdf",{staticClass:"Upload",attrs:{accept:".zip,.rar,.7z",multiple:!1,uploadcondition:e.beforeOtherUpload},on:{UploadErrorEvent:e.UploadErrorOtherenclosure_file,UploadSuccessEvent:e.UploadSuccessOtherenclosure_file}})],1),r("div",{staticClass:"txt-tips fl"},[r("p",[e._v("建议大小:小于5MB")]),r("p",[e._v("文件格式:.zip,.rar,.7z")])])])])],1),r("el-col",{directives:[{name:"show",rawName:"v-show",value:e.is_noble,expression:"is_noble"}],attrs:{span:8}},[r("el-form-item",{attrs:{label:"金属种类",prop:"metal_id"}},[r("search-metal-kind",{attrs:{value:e.ruleForm.metal_id,size:"mini",disabled:"view"===e.type,isDetail:"add"!==e.type,placeholder:"贵金属种类"},on:{searchChange:e.noble_metalsearchChange}})],1),"1"===e.ruleForm.is_gold_price?r("el-form-item",{staticStyle:{margin:"0 0 0 0"},attrs:{label:"当前金价"}},[r("el-input",{attrs:{disabled:"",placeholder:"当前金价",maxlength:"500"},model:{value:e.ruleForm.gold_price,callback:function(t){e.$set(e.ruleForm,"gold_price",t)},expression:"ruleForm.gold_price"}},[r("template",{slot:"append"},[e._v("元")])],2)],1):e._e()],1),r("el-col",{directives:[{name:"show",rawName:"v-show",value:e.is_noble,expression:"is_noble"}],attrs:{span:16}},[r("el-form-item",{attrs:{label:"其他配置要求",prop:"other_config","label-width":"120px"}},[r("el-input",{attrs:{disabled:"view"===e.type,type:"textarea",rows:2,placeholder:"其他配置要求",maxlength:"250","show-word-limit":""},model:{value:e.ruleForm.other_config,callback:function(t){e.$set(e.ruleForm,"other_config",t)},expression:"ruleForm.other_config"}})],1)],1),r("el-col",{staticClass:"fr tr",attrs:{span:8}},["view"!==e.type?r("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.submitForm}},[e._v("保 存 ")]):e._e()],1)],1)],1)],1)],1)],1)],1)],1)],1)}),[],!1,null,"5781595c",null);t.default=r.exports},"279b":function(e,t,r){"use strict";r("847f")},"27f5":function(e,t,r){},"27fe":function(e,t,r){"use strict";r("6715")},"288f":function(e,t,r){"use strict";r("853f")},2914:function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=(r("e9c4"),r("d3b7"),r("25f0"),r("96cf"),r("a2b6")),s=r("9f53");r("61f7"),s={name:"sellReturn",props:["showModel","disabled","sitem","newTime"],mixins:[s.a],data:function(){return{loading:!1,wsm_supplier:"",wsm_name:"",showModelThis:this.showModel,options:[{value:"1",label:"同意退回"},{value:"0",label:"不同意退回"}],return_company:"",ruleForm:{is_th:"1",returnCode:"",remark:"",return_company:[],return_wsm:[]},rulesThis:this.rules,rules:{returnCode:[{required:!0,message:"退货单编号不能为空!",trigger:"blur"}],is_th:[{required:!0,message:"请选择供应商反馈意见!",trigger:"change"}],remark:[{required:!0,message:"请输入退货备注!",trigger:"blur"}],return_company:[{type:"array",required:!0,message:"请选择仓库所在公司!",trigger:"change"}],return_wsm:[{type:"array",required:!0,message:"请选择供仓库!",trigger:"change"}]}}},mounted:function(){this.initForm()},watch:{newTime:function(e){e&&this.initForm()}},methods:{initForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,e.rulesThis=e.rules,t.next=4,e.resetForm();case 4:e.loading=!1;case 5:case"end":return t.stop()}}),t)})))()},resetForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$nextTick((function(){var t,r,a,n,s,i,o,l;e.$refs.ruleForm&&(e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),t=(l=e.sitem).returnCode,r=l.error_msg,a=l.remark,n=l.is_th,s=l.return_wsm,i=l.wsm_supplierNo,o=l.wsm_supplier,l=l.wsm_name,e.wsm_supplier=o||"",e.wsm_name=l||"",e.ruleForm={is_th:n||"1",returnCode:t||"",remark:a||"",error_msg:r||"",return_company:i?[i]:[],return_wsm:s?[s]:[]},e.is_th_change())}));case 2:case"end":return t.stop()}}),t)})))()},change_return_wsm:function(e){e=e.code,this.ruleForm.return_wsm=e?[e]:[],this.$refs.ruleForm.validateField("return_wsm")},selectSupplierStock:function(e){e=e.code,this.ruleForm.return_company=e?[e]:[],this.return_company=e||"",this.ruleForm.return_wsm=[],this.$refs.ruleForm.validateField("return_company"),this.$refs.ruleForm.validateField("return_wsm")},is_th_change:function(){var e=this.ruleForm.is_th;this.rulesThis.remark[0].required="0"===e,this.rulesThis.return_company[0].required="1"===e,this.rulesThis.return_wsm[0].required="1"===e},submitForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.ruleForm.validate(function(){var t=Object(a.a)(regeneratorRuntime.mark((function t(r){var a,s,i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r)return e.loading=!0,"1"===(a=JSON.parse(JSON.stringify(e.ruleForm))).is_th?a.remark="":a.return_wsm=[],delete a.return_company,a.status="3",a.return_wsm=a.return_wsm.toString(),t.next=9,n.a.status(a);t.next=28;break;case 9:if(a=t.sent,s=a.code,a.data,i=a.message,e.loading=!1,0!==s){t.next=20;break}e.$notify.success({title:"提交成功!",message:""}),e.showModelThis=!1,e.$emit("refresh",!1),t.next=26;break;case 20:if(100<=s&&s<=104)return t.next=23,e.logout();t.next=25;break;case 23:t.next=26;break;case 25:e.$message.warning(i);case 26:t.next=30;break;case 28:return t.abrupt("return",!1);case 30:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()}}},r=r("2877"),r=Object(r.a)(s,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",size:"mini",rules:e.rulesThis,"label-width":"95px"}},[r("el-row",[r("el-col",{attrs:{span:5}},[r("el-form-item",{attrs:{label:"供应商反馈",prop:"is_th"}},[r("el-select",{attrs:{placeholder:"供应商反馈",disabled:e.disabled},on:{change:e.is_th_change},model:{value:e.ruleForm.is_th,callback:function(t){e.$set(e.ruleForm,"is_th",t)},expression:"ruleForm.is_th"}},e._l(e.options,(function(e){return r("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1)],1),r("el-col",{directives:[{name:"show",rawName:"v-show",value:"0"===e.ruleForm.is_th,expression:"ruleForm.is_th === '0'"}],attrs:{span:19}},[r("el-form-item",{attrs:{label:"退货备注",prop:"remark"}},[r("el-input",{attrs:{type:"textarea",maxlength:"250",disabled:e.disabled,"show-word-limit":"",placeholder:"请填写备注"},model:{value:e.ruleForm.remark,callback:function(t){e.$set(e.ruleForm,"remark",t)},expression:"ruleForm.remark"}})],1)],1),r("el-col",{directives:[{name:"show",rawName:"v-show",value:"1"===e.ruleForm.is_th,expression:"ruleForm.is_th === '1'"}],attrs:{span:11}},[r("el-form-item",{attrs:{label:"仓库信息",prop:"return_company"}},[r("search-supplier",{attrs:{size:"mini",disabled:e.disabled,isDetail:e.disabled,placeholder:"仓库所在公司",value:e.ruleForm.return_company,names:e.disabled?e.wsm_supplier:""},on:{searchChange:e.selectSupplierStock}})],1)],1),r("el-col",{directives:[{name:"show",rawName:"v-show",value:"1"===e.ruleForm.is_th,expression:"ruleForm.is_th === '1'"}],attrs:{span:8}},[r("el-form-item",{attrs:{prop:"return_wsm","label-width":"10px"}},[r("search-stock",{attrs:{size:"mini",disabled:e.disabled||0===e.ruleForm.return_company.length,value:e.ruleForm.return_wsm,placeholder:"仓库名称",isRelation:!0,isDetail:e.disabled,wsmtype:"5",companyNo:e.sitem.supplierNo,companyCode:e.return_company,names:e.disabled?e.wsm_name:""},on:{searchChange:e.change_return_wsm}})],1)],1),e.disabled?e._e():r("el-col",{staticStyle:{"text-align":"right",padding:"0 0 15px 0"},attrs:{span:24}},[r("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.submitForm}},[e._v("保 存 ")])],1)],1)],1)}),[],!1,null,null,null);t.default=r.exports},2964:function(e,t,r){},"2a08":function(e,t,r){"use strict";var a=r("1da1"),n=r("ade3"),s=r("5530"),i=(r("e9c4"),r("d81d"),r("d3b7"),r("159b"),r("99af"),r("b0c0"),r("a9e3"),r("96cf"),r("1b69")),o=function(e,t){return Object(i.a)("admin/goodlist",e,"post",t)},l=function(e,t){return Object(i.a)("admin/supplierlist",e,"post",t)},c=r("9f53"),u=r("f5ed"),d=r("2f62"),p=[{type:"selection",fixed:"left",_noset_:!0},{prop:"skuCode",label:"商品编码",width:"160"},{prop:"good_thumb_img",label:"图片",_slot_:"good_thumb_img",width:"50"},{prop:"good_name",label:"商品名称","min-width":"120"},{prop:"plat_code",label:"平台商品编号",width:"160"},{prop:"cat_name",label:"商品分类",width:"120"},{prop:"unit",label:"单位",width:"45"},{prop:"model",label:"规格",_slot_:"model",width:"110"},{prop:"brand_name",label:"品牌",width:"100"},{prop:"is_stock",label:"库存类型",_slot_:"is_stock",width:"100"},{prop:"platform_name",label:"所属平台",width:"100"},{prop:"company",label:"业务公司","min-width":"150"},{prop:"purchase",label:"采购员",fixed:"right",width:"70"}];c={name:"searchGoodOnlineModal",mixins:[c.a,u.a],computed:Object(s.a)({},Object(d.b)(["tablebtnSize","searchSize","size"])),props:["showModel","once","sitem","active"],data:function(){var e={select:"1",sinput:"",is_stock:[{id:"0",name:"非库存品"},{id:"1",name:"库存品"}],selectLoading:!1,searchName:"",supplierCode:[],loading:!0,showModelThis:!1,parmValue:{platform_code:"",companyNo:"",is_stock:"",exam_status:"",cat_id:[],brandid:[],good_code:"",good_name:"",plat_code:"",page:1,size:15},tableData:[],passwordModel:!1,passwordModelId:0,isPasswordDetail:!1};return Object(n.a)(e,"tableData",[]),Object(n.a)(e,"table",{stripe:!0,border:!0}),Object(n.a)(e,"pageInfo",{size:15,curr:1,total:0}),Object(n.a)(e,"columns",p),e},watch:{showModel:function(e){(this.showModelThis=e)&&this.restSearch()},showModelThis:function(e){e||this.$emit("cancel")}},methods:{restSearch:function(){var e=this.sitem,t=e.platform_code,r=e.company_id;e=e.is_stock;this.parmValue={platform_code:t||"",companyNo:r||"",is_stock:e||"",cat_id:[],brandid:[],exam_status:this.active?"6":"",good_code:"",good_name:"",plat_code:"",page:1,size:15},this.pageInfo={size:15,curr:1,total:0},this.searchList()},goods_class_change:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return t.parmValue.cat_id=e,t.pageInfo.curr=1,t.parmValue.page=1,r.next=5,t.searchList();case 5:case"end":return r.stop()}}),r)})))()},brandidsearchChange:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){var a;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a=e.id,t.parmValue.brandid=a?[a]:[],t.pageInfo.curr=1,t.parmValue.page=1,r.next=6,t.searchList();case 6:case"end":return r.stop()}}),r)})))()},platform_codesearchChange:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){var a;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a=e.id,e.code,e.label,t.parmValue.platform_code=a?[a]:[],t.pageInfo.curr=1,t.parmValue.page=1,r.next=6,t.searchList();case 6:case"end":return r.stop()}}),r)})))()},company_idsearchChange:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){var a;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return e.id,a=e.code,e.label,t.parmValue.company_id=a||"",t.pageInfo.curr=1,t.parmValue.page=1,r.next=6,t.searchList();case 6:case"end":return r.stop()}}),r)})))()},searchList:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r,a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,(r=JSON.parse(JSON.stringify(e.parmValue))).cat_id=0<r.cat_id.length?r.cat_id[r.cat_id.length-1]:"",r.brandid=0<r.brandid.length?r.brandid[r.brandid.length-1]:"",r.good_code="2"===e.select?e.sinput:"",r.good_name="1"===e.select?e.sinput:"",r.platform_code="3"===e.select?e.sinput:"",t.next=9,o(r);case 9:if(!(a=t.sent)||0!==a.code||!a.data){t.next=16;break}e.tableData=a.data.list,e.tableData.map((function(e){return e.cat_name="",e.cat_info&&0<e.cat_info.length&&e.cat_info.forEach((function(t,r){e.cat_name+="".concat(0!==r?"_":"").concat(t.name)})),e})),e.pageInfo.total=Number(a.data.count),t.next=23;break;case 16:if(a&&100<=a.code&&a.code<=104)return t.next=19,e.logout();t.next=21;break;case 19:t.next=23;break;case 21:e.tableData=[],e.pageInfo.total=0;case 23:e.loading=!1;case 24:case"end":return t.stop()}}),t)})))()},remoteMethod:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){var a,n;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t.selectLoading=!0,""!==e)return t.options=[],n={page:1,size:100,name:e,code:""},r.next=6,l(n);r.next=20;break;case 6:if(!(a=r.sent)||0!==a.code||!a.data){r.next=12;break}n=a.data.list,t.options=n,r.next=18;break;case 12:if(a&&100<=a.code&&a.code<=104)return r.next=15,t.logout();r.next=17;break;case 15:r.next=18;break;case 17:t.$message.warning(a.message);case 18:r.next=21;break;case 20:t.options=[];case 21:t.selectLoading=!1;case 22:case"end":return r.stop()}}),r)})))()},resultList:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e&&1<e.length&&t.once)return t.$message.warning("只能选择一条商品信息!"),r.abrupt("return");r.next=3;break;case 3:t.showModelThis=!1,t.$emit("resultList",e);case 5:case"end":return r.stop()}}),r)})))()}}},u=r("2877"),s=Object(u.a)(c,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:"选择已上线的商品",center:!0,align:"left",top:"8vh",width:"1040px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)","append-to-body":""},on:{close:function(t){e.showModelThis=!1},"update:visible":function(t){e.showModelThis=t}}},[r("el-card",{staticClass:"modal-form-style",staticStyle:{"margin-top":"-20px"}},[r("ex-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{table:e.table,data:e.tableData,columns:e.columns,page:e.pageInfo,size:"mini"},on:{"page-curr-change":e.handlePageChange,"page-size-change":e.handleSizeChange,"screen-reset":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()},"screen-submit":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},scopedSlots:e._u([{key:"table-header",fn:function(t){var a=t.selection;return[r("div",{staticStyle:{width:"100%"}},[r("el-row",{staticStyle:{"margin-top":"-15px"}},[r("el-col",{attrs:{span:24}},[r("el-col",{staticStyle:{width:"210px"},attrs:{span:4}},[r("search-brand",{attrs:{value:e.parmValue.brandid,disabled:!1,size:"mini",isDetail:!1,names:"",placeholder:"品牌"},on:{searchChange:e.brandidsearchChange}})],1),r("el-col",{staticStyle:{width:"370px",padding:"0 0 0 10px"},attrs:{span:6}},[r("good-class",{attrs:{value:e.parmValue.cat_id,disabled:!1,size:e.searchSize,isDetail:!1,placeholder:"分类"},on:{handleChange:e.goods_class_change}})],1),r("el-col",{staticClass:"fr",staticStyle:{width:"66px"},attrs:{span:3}},[r("el-button",{staticStyle:{float:"right","margin-left":"5px"},attrs:{size:"mini",type:"primary"},on:{click:e.searchList}},[e._v(" 刷新 ")])],1),r("el-col",{staticClass:"fr",staticStyle:{width:"66px"},attrs:{span:4}},[r("el-button",{staticClass:"fr",attrs:{type:"warning",size:"mini"},on:{click:e.restSearch}},[e._v(" 重置 ")])],1)],1),r("el-col",{staticStyle:{padding:"10px 0 0 0"},attrs:{span:24}},[r("el-col",{staticStyle:{width:"450px"},attrs:{span:4}},[r("el-input",{attrs:{clearable:"",size:"mini",maxlength:40,placeholder:"关键字"},on:{blur:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.sinput,callback:function(t){e.sinput=t},expression:"sinput"}},[r("el-select",{staticStyle:{width:"120px"},attrs:{slot:"prepend",placeholder:"关键字类型"},slot:"prepend",model:{value:e.select,callback:function(t){e.select=t},expression:"select"}},[r("el-option",{attrs:{label:"商品名称",value:"1"}}),r("el-option",{attrs:{label:"商品编码",value:"2"}}),r("el-option",{attrs:{label:"平台商品编码",value:"3"}})],1)],1)],1),r("el-col",{staticStyle:{width:"66px",float:"right"},attrs:{span:3}},[r("el-button",{staticStyle:{float:"right","margin-left":"5px"},attrs:{size:"mini",type:"success"},on:{click:function(t){return e.resultList(a)}}},[e._v(" 保存 ")])],1)],1)],1)],1)]}},{key:"good_thumb_img",fn:function(t){return t=t.scope,[t.row.good_thumb_img?r("div",{directives:[{name:"viewer",rawName:"v-viewer"}],staticClass:"hover",staticStyle:{width:"20px",height:"20px"}},[r("img",{staticStyle:{display:"inline-block",width:"100%",height:"100%"},attrs:{src:t.row.good_thumb_img,alt:""}})]):e._e()]}},{key:"model",fn:function(t){return t=t.scope,e._l(t.row.specinfo,(function(t,a){return r("span",{key:t.spec_id},[0!==a?r("span",[e._v("--")]):e._e(),r("span",[e._v(e._s(t.spec_name)+"["+e._s(t.spec_value)+"]")])])}))}},{key:"is_stock",fn:function(t){return t=t.scope,[r("span",[e._v(e._s("1"===t.row.is_stock?"库存品":"非库存品")+" ")])]}}])})],1)],1)}),[],!1,null,null,null).exports;t.a=s},"2a17":function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=r("ade3"),s=r("5530"),i=(r("96cf"),r("7db0"),r("d3b7"),r("e9c4"),r("a9e3"),r("c717")),o=r("9f53"),l=r("f5ed"),c=r("d2cb"),u=[{prop:"gyscode",label:"供应商编号",width:"140px"},{prop:"brand_name",label:"品牌",width:"100px"},{prop:"status",label:"状态",width:"60",_slot_:"status"},{prop:"brand_book",label:"授权图",_slot_:"brand_book",width:"60px"},{prop:"long",label:"授权类型",width:"70",_slot_:"long"},{prop:"longTime",label:"授权日期",width:"180",_slot_:"longTime"},{prop:"creater",label:"创建人",width:"60px"},{prop:"addtime",label:"添加时间",width:"145px"},{prop:"",label:"操作",fixed:"right",width:"140",_noset_:!0,_slot_:"operation"}],d=r("2f62");o={name:"searchGoodModal",mixins:[o.a,l.a],components:{addEdit:c.default},computed:Object(s.a)(Object(s.a)({},Object(d.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"supplier"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),props:["showModel","sitem"],data:function(){var e={options1:[{id:"0",name:"长期"},{id:"1",name:"非长期"}],options2:[{id:"0",name:"禁用"},{id:"1",name:"启用"}],costshowModel:!1,modelSitem:null,modelId:"",modelType:"",selectLoading:!1,loading:!0,showModelThis:!1,parmValue:{gyscode:"",page:1,size:15},tableData:[],passwordModel:!1,passwordModelId:0,isPasswordDetail:!1};return Object(n.a)(e,"tableData",[]),Object(n.a)(e,"table",{stripe:!0,border:!0}),Object(n.a)(e,"pageInfo",{size:15,curr:1,total:0}),Object(n.a)(e,"columns",u),e},watch:{showModel:function(e){(this.showModelThis=e)&&this.initd()},showModelThis:function(e){e||this.$emit("cancel")}},methods:{initd:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.modelSitem=JSON.parse(JSON.stringify(e.sitem)),t.next=4,e.restSearch();case 4:case"end":return t.stop()}}),t)})))()},restSearch:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.parmValue={gyscode:e.code,page:1,size:15},e.pageInfo={size:15,curr:1,total:0},t.next=4,e.searchList();case 4:case"end":return t.stop()}}),t)})))()},searchList:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,e.parmValue.gyscode=e.modelSitem.code,t.next=4,i.a.klist(e.parmValue);case 4:if(!(r=t.sent)||0!==r.code||!r.data){t.next=10;break}e.tableData=r.data.list,e.pageInfo.total=Number(r.data.count),t.next=17;break;case 10:if(r&&100<=r.code&&r.code<=104)return t.next=13,e.logout();t.next=15;break;case 13:t.next=17;break;case 15:e.tableData=[],e.pageInfo.total=0;case 17:e.loading=!1;case 18:case"end":return t.stop()}}),t)})))()},openCostEdit:function(e,t){this.modelId=e,this.modelType=t,this.costshowModel=!0},changeStatus:function(e,t){var r=this;return Object(a.a)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r.$confirm("确定要改为".concat("1"===t?"禁用":"启用","?"),{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(a.a)(regeneratorRuntime.mark((function a(){var n,s;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return r.loading=!0,n={id:e,status:"1"===t?"0":"1"},a.next=4,i.a.kstatus(n);case 4:if((s=a.sent)&&0===s.code)return r.loading=!1,r.$notify.success({title:"状态修改成功!",message:""}),a.next=10,r.searchList();a.next=12;break;case 10:a.next=19;break;case 12:if(s&&100<=s.code&&s.code<=104)return a.next=15,r.logout();a.next=17;break;case 15:a.next=19;break;case 17:r.loading=!1,r.$message.warning(s.message);case 19:case"end":return a.stop()}}),a)})))).catch((function(){}));case 2:case"end":return n.stop()}}),n)})))()},deleteItem:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t.$confirm("确定要删除?",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(a.a)(regeneratorRuntime.mark((function r(){var a,n;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a={id:e},r.next=3,i.a.kdelete(a);case 3:if(!(n=r.sent)||0!==n.code){r.next=9;break}t.$notify.success({title:"删除成功",message:""}),t.searchList(),r.next=15;break;case 9:if(n&&100<=n.code&&n.code<=104)return r.next=12,t.logout();r.next=14;break;case 12:r.next=15;break;case 14:t.$message.warning(n.message);case 15:case"end":return r.stop()}}),r)})))).catch((function(){}));case 2:case"end":return r.stop()}}),r)})))()}}},l=r("2877"),c=Object(l.a)(o,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:"支持品牌列表",center:!0,align:"left",top:"8vh",width:"1040px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)","append-to-body":""},on:{close:function(t){e.showModelThis=!1},"update:visible":function(t){e.showModelThis=t}}},[r("el-card",{staticClass:"modal-form-style",staticStyle:{"margin-top":"-20px"}},[r("ex-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{table:e.table,data:e.tableData,columns:e.columns,page:e.pageInfo,size:e.size},on:{"page-curr-change":e.handlePageChange,"page-size-change":e.handleSizeChange,"screen-reset":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()},"screen-submit":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},scopedSlots:e._u([{key:"table-header",fn:function(t){return[r("div",{staticClass:"tr",staticStyle:{margin:"-10px 0 10px 0",width:"100%"}},[e.modelSitem?r("div",{staticClass:"fl",staticStyle:{height:"28px","line-height":"28px"}},[r("span",[e._v("供应商:")]),e._v(e._s(e.modelSitem.name)+" ")]):e._e(),r("el-button",{staticStyle:{margin:"0 0 0 10px"},attrs:{type:"primary",size:e.searchSize},on:{click:e.searchList}},[e._v(" 刷新 ")]),r("el-button",{staticStyle:{margin:"0 0 0 10px"},attrs:{type:"warning",size:e.searchSize},on:{click:e.restSearch}},[e._v(" 重置 ")]),e.powers&&0<e.powers.length&&e.powers.some((function(e){return"073"==e}))?r("el-button",{staticStyle:{margin:"0 0 0 10px"},attrs:{type:"success",size:e.searchSize},on:{click:function(t){return e.openCostEdit(-1,"add")}}},[e._v(" 添加 ")]):e._e()],1)]}},{key:"brand_book",fn:function(t){return t=t.scope,[t.row.brand_book?r("div",{directives:[{name:"viewer",rawName:"v-viewer"}],staticClass:"hover",staticStyle:{width:"20px",height:"20px"}},[r("img",{staticStyle:{display:"inline-block",width:"100%",height:"100%"},attrs:{src:t.row.brand_book,alt:""}})]):e._e()]}},{key:"long",fn:function(t){var a=t.scope;return[r("el-tag",{attrs:{size:e.tablebtnSize,type:"1"==a.row.long?"warning":""},domProps:{textContent:e._s((e.options1.find((function(e){return e.id==a.row.long}))||{}).name||"--")}})]}},{key:"longTime",fn:function(t){return t=t.scope,[e._v(" "+e._s(t.row.starttime)+"~"+e._s(t.row.endtime)+" ")]}},{key:"status",fn:function(t){var a=t.scope;return[r("el-tag",{attrs:{size:e.tablebtnSize,type:"0"==a.row.status?"warning":""},domProps:{textContent:e._s((e.options2.find((function(e){return e.id==a.row.status}))||{}).name||"--")}})]}},{key:"operation",fn:function(t){var a=t.scope;return[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"074"==e}))&&"0"===a.row.status?r("el-tooltip",{attrs:{effect:"dark",content:"查看",placement:"top"}},[r("i",{staticClass:"el-icon-view tb-icon",on:{click:function(t){return e.openCostEdit(a.row.id,"view")}}})]):e._e(),e.powers&&0<e.powers.length&&e.powers.some((function(e){return"075"==e}))&&"0"===a.row.status?r("el-tooltip",{attrs:{effect:"dark",content:"修改",placement:"top"}},[r("i",{staticClass:"el-icon-edit tb-icon",on:{click:function(t){return e.openCostEdit(a.row.id,"edit")}}})]):e._e(),e.powers&&0<e.powers.length&&e.powers.some((function(e){return"076"==e}))&&"1"===a.row.status?r("el-tooltip",{attrs:{effect:"dark",content:"禁用",placement:"top"}},[r("i",{staticClass:"el-icon-video-pause tb-icon",on:{click:function(t){return e.changeStatus(a.row.id,a.row.status)}}})]):e._e(),e.powers&&0<e.powers.length&&e.powers.some((function(e){return"076"==e}))&&"0"===a.row.status?r("el-tooltip",{attrs:{effect:"dark",content:"启用",placement:"top"}},[r("i",{staticClass:"el-icon-video-play tb-icon",on:{click:function(t){return e.changeStatus(a.row.id,a.row.status)}}})]):e._e(),e.powers&&0<e.powers.length&&e.powers.some((function(e){return"077"==e}))&&"0"===a.row.status?r("el-tooltip",{attrs:{effect:"dark",content:"删除",placement:"top"}},[r("i",{staticClass:"el-icon-delete tb-icon",on:{click:function(t){return e.deleteItem(a.row.id)}}})]):e._e()]}}])}),r("add-edit",{attrs:{id:e.modelId,type:e.modelType,sitem:e.modelSitem,showModel:e.costshowModel,code:e.code},on:{cancel:function(t){e.costshowModel=!1},refresh:function(t){e.costshowModel=!1,e.searchList()}}})],1)],1)}),[],!1,null,null,null);t.default=c.exports},"2a42":function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=r("5530"),s=(r("e9c4"),r("c740"),r("d3b7"),r("159b"),r("96cf"),r("d57f")),i=r("d029"),o=r("9f53"),l=r("2f62"),c=r("2f3b");o={name:"financeExamOneForm",mixins:[o.a],props:["id","type","sitem","newTime"],computed:Object(n.a)({},Object(l.b)(["tablebtnSize","searchSize","size"])),components:{editMinorderForm:c.default,showGoodDataModal:i.a},data:function(){return{status:"",showGoodModel:!1,showGoodId:"",loading:!1,showModel:!1,sfinditem:{},tableData:[]}},mounted:function(){this.initForm()},watch:{newTime:function(e){e&&this.initForm()}},methods:{initForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.loading=!0,e.resetFormData(),e.loading=!1;case 3:case"end":return t.stop()}}),t)})))()},editRefresh:function(e){var t=this,r=(e=(this.showModel=!1,JSON.parse(JSON.stringify(e))),e.skuCode),a=e.moq_num,n=(e=e.cost_price,this.tableData.findIndex((function(e){return e.skuCode===r})));-1!==n&&(this.tableData[n].moq_num=a,this.tableData[n].cost_price=e),this.tableData.forEach((function(e,r){t.$set(t.tableData,r,t.tableData[r])}))},showGoodModelFun:function(e){this.showGoodModel=!0,this.showGoodId=e},openModal:function(e){this.sfinditem=JSON.parse(JSON.stringify(e)),this.showModel=!0},resetFormData:function(){this.tableData=[];var e=this.sitem,t=e.info;e=e.status;this.status=e||"",this.tableData=t&&0<t.length?JSON.parse(JSON.stringify(t)):[]},openEdit:function(e){},submitForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r,a,n,i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.loading=!0,r=e.sitem.activity_code,r={activity_code:r||"",good_list:[]},i=JSON.parse(JSON.stringify(e.tableData)),a=!0,n=[],i.forEach((function(e){e.moq_num+""!="0"&&e.moq_num+""!=""||(a=!1),e={id:e.id,skuCode:e.skuCode,cost_price:e.cost_price,moq_num:e.moq_num},n.push(e)})),a){t.next=11;break}return e.$message.warning("部分商品起订量不合法!"),e.loading=!1,t.abrupt("return");case 11:return r.good_list=JSON.parse(JSON.stringify(n)),t.next=14,s.a.actcost(r);case 14:i=t.sent,e.loading=!1,i&&0===i.code&&(e.$notify.success({title:"提交成功!",message:""}),e.$emit("refresh",!0));case 17:case"end":return t.stop()}}),t)})))()}}},r("eca4"),n=r("2877"),l=Object(n.a)(o,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"finance-exam-one-form"},[r("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData,stripe:"",border:"",size:"mini"}},[r("el-table-column",{attrs:{prop:"skuCode",label:"商品编码","show-overflow-tooltip":"",width:"170"}}),r("el-table-column",{attrs:{prop:"good_name",label:"商品名称","show-overflow-tooltip":""}}),r("el-table-column",{attrs:{prop:"activity_stock",label:"活动库存",width:"100","show-overflow-tooltip":""}}),r("el-table-column",{attrs:{prop:"moq_num",label:"起订量",width:"100","show-overflow-tooltip":""}}),r("el-table-column",{attrs:{prop:"cost_price",label:"成本单价(元)",width:"100","show-overflow-tooltip":""}}),r("el-table-column",{attrs:{fixed:"right",width:"80"},scopedSlots:e._u([{key:"header",fn:function(t){return[r("span",[e._v("操作")])]}},{key:"default",fn:function(t){return[r("el-tooltip",{attrs:{effect:"dark",content:"编辑成本",placement:"top"}},[r("i",{staticClass:"el-icon-edit tb-icon",on:{click:function(r){return e.openModal(t.row)}}})]),r("el-tooltip",{attrs:{effect:"dark",content:"查看商品信息",placement:"top"}},[r("i",{staticClass:"el-icon-view tb-icon",on:{click:function(r){return e.showGoodModelFun(t.row.skuCode)}}})])]}}])})],1),r("edit-minorder-form",{attrs:{sitem:e.sfinditem,showModel:e.showModel},on:{refresh:e.editRefresh,cancel:function(t){e.showModel=!1}}}),r("show-good-data-modal",{attrs:{"show-model":e.showGoodModel,skuCode:e.showGoodId},on:{cancel:function(t){e.showGoodModel=!1}}}),r("el-col",{staticStyle:{"text-align":"right",padding:"15px 0 15px 0","border-top":"1px solid #dcdfe6"},attrs:{span:24}},[r("el-button",{attrs:{size:"mini",type:"primary"},on:{click:e.submitForm}},[e._v("保 存 ")])],1)],1)}),[],!1,null,"d9d9da4e",null);t.default=l.exports},"2ad8":function(e,t,r){"use strict";r("c466")},"2c0c":function(e,t,r){"use strict";r("afa2")},"2cc2":function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=(r("e9c4"),r("96cf"),r("6a1e")),s=r("61f7"),i={name:"myMessage",mixins:[r("9f53").a],data:function(){return{infor:{},isDetail:!0,loading:!1,ruleForm:{username:"",nickname:"",mobile:"",email:"",addtime:""},rules:{username:[{required:!0,message:"请输入账号",trigger:"blur"}],nickname:[{required:!0,validator:function(e,t,r){""===t?r(new Error("真实姓名不能为空!")):t.lenght<2||12<t.lenght||!Object(s.c)(t)||Object(s.d)(t)?r(new Error("真实姓名规则为2~12位汉字!")):r()},trigger:"blur"}],mobile:[{required:!0,message:"请输入手机号",trigger:"blur"}],email:[{required:!0,validator:function(e,t,r){""===t?r(new Error("邮箱不能为空!")):Object(s.s)(t)?r():r(new Error("邮箱格式不正确!"))},trigger:"blur"}],addtime:[{required:!0,message:"请输入加入时间",trigger:"blur"}]}}},mounted:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.resetForm();case 2:return t.next=4,e.initData();case 4:case"end":return t.stop()}}),t)})))()},destroyed:function(){},methods:{resetForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$nextTick((function(){e.$refs.ruleForm&&(e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),e.ruleForm={username:"",nickname:"",mobile:"",email:"",role_name:"",addtime:""})}));case 2:case"end":return t.stop()}}),t)})))()},initData:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r,a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n.a.detail({});case 2:if(!(r=t.sent)||0!==r.code||!r.data){t.next=9;break}a=r.data,e.ruleForm={username:a.username,nickname:a.nickname,mobile:a.mobile,email:a.email,addtime:a.addtime,role_name:a.role_name},t.next=15;break;case 9:if(r&&100<=r.code&&r.code<=104)return t.next=12,e.logout();t.next=14;break;case 12:t.next=15;break;case 14:e.$message.warning(r.message);case 15:case"end":return t.stop()}}),t)})))()},submitForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.ruleForm.validate(function(){var t=Object(a.a)(regeneratorRuntime.mark((function t(r){var a,s;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r&&!e.loading)return e.loading=!0,delete(a=JSON.parse(JSON.stringify(e.ruleForm))).role_name,delete a.addtime,delete a.username,t.next=8,n.a.prefect(a);t.next=22;break;case 8:if(s=t.sent,e.loading=!1,!s||0!==s.code){t.next=14;break}e.$notify.success({title:"个人信息修改成功!",message:""}),t.next=20;break;case 14:if(s&&100<=s.code&&s.code<=104)return t.next=17,e.logout();t.next=19;break;case 17:t.next=20;break;case 19:e.$message.warning(s.message);case 20:t.next=24;break;case 22:return t.abrupt("return",!1);case 24:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()}}};r("90a6"),r("fd63"),r=r("2877"),r=Object(r.a)(i,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("div",{staticClass:"my-messagge-page pagePadding"},[t("div",{staticClass:"change"},[t("div",{staticClass:"title"},[e._v("我的信息")]),t("div",{staticClass:"change-main"},[t("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",rules:e.rules,"label-width":"110px"}},[t("el-row",{attrs:{gutter:10}},[t("el-col",{attrs:{span:24}},[t("el-form-item",{attrs:{label:"账户",prop:"username"}},[t("el-input",{attrs:{maxlength:"50",disabled:e.isDetail},model:{value:e.ruleForm.username,callback:function(t){e.$set(e.ruleForm,"username",t)},expression:"ruleForm.username"}})],1)],1),t("el-col",{attrs:{span:24}},[t("el-form-item",{attrs:{label:"姓名",prop:"nickname"}},[t("el-input",{attrs:{maxlength:"50",disabled:e.isDetail},model:{value:e.ruleForm.nickname,callback:function(t){e.$set(e.ruleForm,"nickname",t)},expression:"ruleForm.nickname"}})],1)],1),t("el-col",{attrs:{span:24}},[t("el-form-item",{attrs:{label:"手机号",prop:"mobile"}},[t("el-input",{attrs:{maxlength:"11",disabled:e.isDetail},model:{value:e.ruleForm.mobile,callback:function(t){e.$set(e.ruleForm,"mobile",t)},expression:"ruleForm.mobile"}})],1)],1),t("el-col",{attrs:{span:24}},[t("el-form-item",{attrs:{label:"邮箱",prop:"email"}},[t("el-input",{attrs:{maxlength:"100"},model:{value:e.ruleForm.email,callback:function(t){e.$set(e.ruleForm,"email",t)},expression:"ruleForm.email"}})],1)],1),t("el-col",{attrs:{span:24}},[t("el-form-item",{attrs:{label:"加入时间",prop:"addtime"}},[t("el-input",{attrs:{maxlength:"50",disabled:!0},model:{value:e.ruleForm.addtime,callback:function(t){e.$set(e.ruleForm,"addtime",t)},expression:"ruleForm.addtime"}})],1)],1)],1)],1),t("el-col",{staticClass:"tc",attrs:{span:24}},[t("el-button",{attrs:{type:"primary",disabled:e.loading},on:{click:e.submitForm}},[e.loading?t("i",{staticClass:"el-icon-loading"}):e._e(),t("span",[e._v("提 交 信 息")])])],1)],1)])])}),[],!1,null,"140d7234",null);t.default=r.exports},"2cf9":function(e,t,r){},"2d15":function(e,t,r){},"2d8d":function(e,t,r){},"2da1":function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=(r("b0c0"),r("e9c4"),r("a15b"),r("96cf"),r("d9bb")),s=r("9f53"),i=r("61f7");s={name:"storeSet",props:["showModel","id","isDetail"],mixins:[s.a],data:function(){return{supplier_name:"",accountNames:"",loading:!1,title:"添加仓库",showModelThis:this.showModel,options:[{value:"5",label:"销售仓"},{value:"4",label:"次品仓"}],ruleForm:{companyNo:"",name:"",supplierNo:[],wsmtype:"",addr_code:[],addr:"",contactor_id:[],mobile:"",position:"",wsm_name:"",wsm_mobile:"",wsm_addr:"",addrs_code:[]},rulesThis:this.rules,rules:{name:[{required:!0,message:"仓库名称不能为空",trigger:"blur"}],position:[{required:!0,message:"联系人职位不能为空",trigger:"blur"}],wsmtype:[{required:!0,message:"请选择仓库类型",trigger:"change"}],companyNo:[{required:!0,message:"业务公司不能为空",trigger:"change"}],supplierNo:[{type:"array",required:!0,message:"供应商公司",trigger:"change"}],addr_code:[{type:"array",required:!0,message:"仓库所在省/市/区",trigger:"change"}],addr:[{required:!0,message:"仓库详细地址",trigger:"blur"},{min:1,max:100,message:"长度在 1 到 100 个字符",trigger:"blur"}],contactor_id:[{required:!0,type:"array",message:"仓库负责人",trigger:"change"}],mobile:[{required:!0,validator:function(e,t,r){""===t?r(new Error("联系方式不能为空!")):Object(i.g)(t)?r():r(new Error("联系方式格式不正确!"))},trigger:"blur"}],wsm_name:[{required:!0,message:"收发货联系人",trigger:"blur"},{min:1,max:20,message:"长度在 1 到 20 个字符",trigger:"blur"}],wsm_mobile:[{required:!0,validator:function(e,t,r){""===t?r(new Error("联系方式不能为空!")):Object(i.g)(t)?r():r(new Error("联系方式格式不正确!"))},trigger:"blur"}],addrs_code:[{type:"array",required:!0,message:"收发货所在省/市/区",trigger:"change"}],wsm_addr:[{required:!0,message:"收发货详细地址",trigger:"blur"},{min:1,max:100,message:"长度在 1 到 100 个字符",trigger:"blur"}]}}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis:function(e){e||this.$emit("cancel")}},methods:{companyNosearchChange:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){var a;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:e.id,a=e.code,e.label,t.ruleForm.companyNo=a||"",t.$refs.ruleForm.validateField("companyNo");case 3:case"end":return r.stop()}}),r)})))()},supplierChange:function(e){e&&e.id?this.ruleForm.supplierNo=[e.code]:this.ruleForm.supplierNo=[],this.$refs.ruleForm.validateField("supplierNo")},selectAreaAddr_code:function(e){this.ruleForm.addr_code=e,this.$refs.ruleForm.validateField("addr_code")},selectAreaAddrs_code:function(e){this.ruleForm.addrs_code=e,this.$refs.ruleForm.validateField("addrs_code")},accountChange:function(e){e&&e.id?this.ruleForm.contactor_id=[e.id]:this.ruleForm.contactor_id=[],this.$refs.ruleForm.validateField("contactor_id")},initForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.supplier_name="",e.loading=!0,"add"===e.id)return e.title="新建仓库",e.rulesThis=e.rules,t.next=7,e.resetForm();t.next=9;break;case 7:t.next=14;break;case 9:return e.isDetail?(e.title="仓库详情",e.rulesThis={}):(e.title="修改仓库",e.rulesThis=e.rules),t.next=12,e.resetForm();case 12:return t.next=14,e.initData();case 14:e.loading=!1;case 15:case"end":return t.stop()}}),t)})))()},initData:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r,a,s,i,o,l,c,u,d,p,m,f,h,g,b,_;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n.a.detail({id:e.id});case 2:if(!(r=t.sent)||0!==r.code||!r.data){t.next=11;break}_=r.data,a=_.addr,s=_.addr_code,i=_.addrs_code,o=_.contactor,l=_.contactor_name,c=_.mobile,u=_.name,d=_.supplierNo,p=_.supplier_name,m=_.wsm_addr,_.wsm_code,f=_.wsm_mobile,h=_.wsm_name,g=_.companyNo,b=_.position,_=_.wsm_type,e.supplier_name=p,e.accountNames=l,e.ruleForm={companyNo:g||"",name:u,supplierNo:[d],wsmtype:_||"",addr_code:e.getCode(s),addr:a,contactor_id:o?[o]:[],mobile:c,position:b||"",wsm_type:"",wsm_name:h,wsm_mobile:f,wsm_addr:m,addrs_code:e.getCode(i)},t.next=17;break;case 11:if(r&&100<=r.code&&r.code<=104)return t.next=14,e.logout();t.next=16;break;case 14:t.next=17;break;case 16:e.$message.warning(r.message);case 17:case"end":return t.stop()}}),t)})))()},resetForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$nextTick((function(){e.$refs.ruleForm&&(e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),e.supplier_name="",e.accountNames="",e.ruleForm={companyNo:"",name:"",supplierNo:[],wsmtype:"",addr_code:[],addr:"",contactor_id:[],mobile:"",position:"",wsm_name:"",wsm_mobile:"",wsm_addr:"",addrs_code:[]})}));case 2:case"end":return t.stop()}}),t)})))()},setCode:function(e){return{provice_code:e[0],city_code:e[1],area_code:e[2]}},getCode:function(e){var t=[];return t.push(e.provice_code),t.push(e.city_code),t.push(e.area_code),t},getId:function(e){return JSON.parse(JSON.stringify(e)).join(",")},submitForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.ruleForm.validate(function(){var t=Object(a.a)(regeneratorRuntime.mark((function t(r){var a,s,i,o,l,c,u,d,p,m,f,h,g;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r){t.next=32;break}if(e.loading=!0,m=JSON.parse(JSON.stringify(e.ruleForm)),h=m.name,g=m.supplierNo,a=m.addr_code,s=m.addr,i=m.contactor_id,o=m.mobile,l=m.wsm_name,c=m.wsm_mobile,u=m.wsm_addr,d=m.addrs_code,f=m.companyNo,p=m.position,m=m.wsmtype,f={id:e.id,companyNo:f,name:h,supplierNo:e.getId(g),addr_code:e.setCode(a),addr:s,contactor_id:e.getId(i),mobile:o,wsm_name:l,wsm_mobile:c,wsm_addr:u,addrs_code:e.setCode(d),position:p,wsmtype:m},h={},"add"===e.id)return delete f.id,t.next=10,n.a.add(f);t.next=13;break;case 10:h=t.sent,t.next=16;break;case 13:return t.next=15,n.a.update(f);case 15:h=t.sent;case 16:if(e.loading=!1,!h||0!==h.code){t.next=24;break}g="add"===e.id?"添加成功":"修改成功",e.$notify.success({title:g,message:""}),e.showModelThis=!1,e.$emit("refresh"),t.next=30;break;case 24:if(h&&100<=h.code&&h.code<=104)return t.next=27,e.logout();t.next=29;break;case 27:t.next=30;break;case 29:e.$message.warning(h.message);case 30:t.next=34;break;case 32:return t.abrupt("return",!1);case 34:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()}}},r("6ee8"),r=r("2877"),r=Object(r.a)(s,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:e.title,center:!0,align:"left",top:"8vh",width:"1040px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)"},on:{close:function(t){e.showModelThis=!1},"update:visible":function(t){e.showModelThis=t}}},[r("el-card",{staticStyle:{"margin-top":"-20px"}},[r("el-row",{attrs:{gutter:10}},[r("el-col",{attrs:{span:24}},[r("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",size:"mini",rules:e.rulesThis,"label-width":"100px"}},[r("div",{staticStyle:{padding:"0 0 12px 0"}},[r("el-divider",{attrs:{"content-position":"center"}},[e._v("仓库信息")])],1),r("el-row",[r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{"label-width":"140px",label:"仓库所在业务公司",prop:"companyNo"}},[r("search-work-company",{attrs:{value:e.ruleForm.companyNo,placeholder:"业务公司",disabled:e.isDetail,size:"mini",isDetail:!1},on:{searchChange:e.companyNosearchChange}})],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{staticStyle:{width:"100%"},attrs:{label:"仓库所在公司",prop:"supplierNo","label-width":"120px"}},[r("search-supplier",{attrs:{value:e.ruleForm.supplierNo,names:e.supplier_name,"is-detail":"add"!==e.id,size:"mini",disabled:e.isDetail,placeholder:"仓库公司名称"},on:{searchChange:e.supplierChange}})],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"仓库名称",prop:"name"}},[r("el-input",{attrs:{placeholder:"仓库名称",filterable:"",disabled:e.isDetail,maxlength:"50",clearable:""},model:{value:e.ruleForm.name,callback:function(t){e.$set(e.ruleForm,"name",t)},expression:"ruleForm.name"}})],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"仓库类型",prop:"wsmtype"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{disabled:e.isDetail,placeholder:"仓库类型"},model:{value:e.ruleForm.wsmtype,callback:function(t){e.$set(e.ruleForm,"wsmtype",t)},expression:"ruleForm.wsmtype"}},e._l(e.options,(function(e){return r("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{staticStyle:{width:"100%"},attrs:{label:"仓库负责人",prop:"contactor_id"}},[r("search-account",{attrs:{value:e.ruleForm.contactor_id,placeholder:"仓库负责人","is-detail":"add"!==e.id,disabled:e.isDetail,size:"mini",names:e.accountNames},on:{searchChange:e.accountChange}})],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"负责人电话",prop:"mobile"}},[r("el-input",{attrs:{placeholder:"联系人电话",maxlength:"11",clearable:"",disabled:e.isDetail},model:{value:e.ruleForm.mobile,callback:function(t){e.$set(e.ruleForm,"mobile",t)},expression:"ruleForm.mobile"}})],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"仓库所在省/市/区",prop:"addr_code","label-width":"140px"}},[r("select-area",{attrs:{placeholder:"仓库所在省/市/区",value:e.ruleForm.addr_code,"is-detail":"add"!==e.id,size:"mini",disabled:e.isDetail},on:{selectChange:e.selectAreaAddr_code}})],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"仓库所在详细地址",prop:"addr","label-width":"140px"}},[r("el-input",{attrs:{placeholder:"仓库所在详细地址",maxlength:"100",clearable:"",disabled:e.isDetail},model:{value:e.ruleForm.addr,callback:function(t){e.$set(e.ruleForm,"addr",t)},expression:"ruleForm.addr"}})],1)],1)],1),r("div",{staticStyle:{padding:"0 0 12px 0"}},[r("el-divider",{attrs:{"content-position":"center"}},[e._v("收发货信息")])],1),r("el-row",[r("el-col",{attrs:{span:8}},[r("el-form-item",{attrs:{label:"联系人",prop:"wsm_name","label-width":"68px"}},[r("el-input",{attrs:{placeholder:"联系人",maxlength:"20",disabled:e.isDetail,clearable:""},model:{value:e.ruleForm.wsm_name,callback:function(t){e.$set(e.ruleForm,"wsm_name",t)},expression:"ruleForm.wsm_name"}})],1)],1),r("el-col",{attrs:{span:8}},[r("el-form-item",{attrs:{label:"职位",prop:"position","label-width":"55px"}},[r("el-input",{attrs:{placeholder:"职位",maxlength:"20",disabled:e.isDetail,clearable:""},model:{value:e.ruleForm.position,callback:function(t){e.$set(e.ruleForm,"position",t)},expression:"ruleForm.position"}})],1)],1),r("el-col",{attrs:{span:8}},[r("el-form-item",{attrs:{label:"电话",prop:"wsm_mobile","label-width":"55px"}},[r("el-input",{attrs:{placeholder:"电话",maxlength:"11",disabled:e.isDetail,clearable:""},model:{value:e.ruleForm.wsm_mobile,callback:function(t){e.$set(e.ruleForm,"wsm_mobile",t)},expression:"ruleForm.wsm_mobile"}})],1)],1)],1),r("el-row",[r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"收发货省/市/区",prop:"addrs_code","label-width":"121px"}},[r("select-area",{attrs:{"is-detail":"add"!==e.id,disabled:e.isDetail,size:"mini",value:e.ruleForm.addrs_code,placeholder:"收发货省/市/区"},on:{selectChange:e.selectAreaAddrs_code}})],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"收发货详细地址",prop:"wsm_addr","label-width":"126px"}},[r("el-input",{attrs:{placeholder:"收发货详细地址",maxlength:"100",disabled:e.isDetail,clearable:""},model:{value:e.ruleForm.wsm_addr,callback:function(t){e.$set(e.ruleForm,"wsm_addr",t)},expression:"ruleForm.wsm_addr"}})],1)],1)],1)],1)],1),r("el-col",{staticStyle:{"text-align":"right"},attrs:{span:24}},[e.isDetail?e._e():r("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.submitForm}},[e._v("保 存 ")]),r("el-button",{attrs:{size:"mini"},on:{click:function(t){e.showModelThis=!1}}},[e._v(e._s(e.isDetail?"关 闭":"取 消"))])],1)],1)],1)],1)}),[],!1,null,"9c92e90e",null);t.default=r.exports},"2eac":function(e,t,r){"use strict";r("a1a3")},"2ee3":function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=r("5530"),s=(r("96cf"),r("7db0"),r("d3b7"),r("d81d"),r("a15b"),r("a9e3"),r("d79e")),i=r("4022"),o=r("f5ed"),l=r("2f62"),c=r("9f53");o={name:"group",mixins:[o.a,c.a],components:{addEdit:s.default},computed:Object(n.a)(Object(n.a)({},Object(l.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"group"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),data:function(){return{loading:!0,showModel:!1,isDetail:!1,modelId:0,parmValue:{loginName:"",fullName:"",type:2,page:1,size:15},statusOptions:[{id:0,label:"禁用"},{id:1,label:"启用"}],tableData:[],table:{stripe:!0,border:!0,_defaultHeader_:["setcol"]},pageInfo:{size:15,curr:1,total:0},columns:[{prop:"group_name",label:"组名"},{prop:"userGroupList",label:"组员"},{prop:"group_remark",label:"备注"},{prop:"status",label:"状态",_slot_:"status"},{prop:"addtime",label:"创建时间",sortable:!0},{prop:"",label:"操作",fixed:"right",_noset_:!0,_slot_:"operation"}]}},mounted:function(){this.searchList()},methods:{restSearch:function(){this.pageInfo={size:15,curr:1,total:0},this.parmValue={status:"",level:"",role_name:"",page:1,size:15},this.searchList()},openModal:function(e,t){this.showModel=!0,this.modelId=e,this.isDetail=t},changeStatus:function(e,t){var r=this;return Object(a.a)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r.$confirm("确定要改为".concat("1"===t?"禁用":"启用","?"),{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(a.a)(regeneratorRuntime.mark((function a(){var n,s;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return n={id:e,status:"1"===t?"0":"1"},a.next=3,i.a.status(n);case 3:if(!(s=a.sent)||0!==s.code){a.next=9;break}r.$notify.success({title:"状态修改成功",message:""}),r.searchList(),a.next=15;break;case 9:if(s&&100<=s.code&&s.code<=104)return a.next=12,r.logout();a.next=14;break;case 12:a.next=15;break;case 14:r.$message.warning(s.message);case 15:case"end":return a.stop()}}),a)})))).catch((function(){}));case 2:case"end":return n.stop()}}),n)})))()},searchList:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,t.next=3,i.a.list(e.parmValue);case 3:if(!(r=t.sent)||0!==r.code||!r.data){t.next=10;break}e.tableData=r.data.list,e.tableData.map((function(e){return e.userGroupList=e.userlist.join(","),e})),e.pageInfo.total=Number(r.data.count),t.next=17;break;case 10:if(r&&100<=r.code&&r.code<=104)return t.next=13,e.logout();t.next=15;break;case 13:t.next=17;break;case 15:e.tableData=[],e.pageInfo.total=0;case 17:e.loading=!1;case 18:case"end":return t.stop()}}),t)})))()}}},c=r("2877"),s=Object(c.a)(o,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"group pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?r("ex-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{table:e.table,data:e.tableData,columns:e.columns,page:e.pageInfo,size:e.size},on:{"page-curr-change":e.handlePageChange,"page-size-change":e.handleSizeChange,"screen-reset":function(t){e.pageInfo.curr=1,e.searchList()},"screen-submit":function(t){e.pageInfo.curr=1,e.searchList()}},scopedSlots:e._u([{key:"table-header",fn:function(t){return[r("div",{staticStyle:{width:"100%"}},[r("el-row",[r("el-col",{attrs:{span:24}},[r("el-col",{staticStyle:{width:"66px",float:"right"},attrs:{span:3}},[r("el-button",{staticStyle:{float:"right"},attrs:{type:"primary",size:e.searchSize},on:{click:e.searchList}},[e._v(" 刷新 ")])],1),e.powers.some((function(e){return"003"==e}))?r("el-col",{staticStyle:{width:"66px",float:"right"},attrs:{span:3}},[r("el-button",{staticStyle:{float:"right"},attrs:{size:e.searchSize,type:"success"},on:{click:function(t){return e.openModal("add",!1)}}},[e._v(" 添加 ")])],1):e._e()],1)],1)],1)]}},{key:"status",fn:function(t){var a=t.scope;return[r("el-tag",{attrs:{size:e.tablebtnSize,type:"0"==a.row.status?"warning":""},domProps:{textContent:e._s((e.statusOptions.find((function(e){return e.id==a.row.status}))||{}).label||"--")}})]}},{key:"operation",fn:function(t){var a=t.scope;return[e.powers.some((function(e){return"007"==e}))?r("el-tooltip",{attrs:{effect:"dark",content:"详情",placement:"top"}},[r("i",{staticClass:"el-icon-view tb-icon",on:{click:function(t){return e.openModal(a.row.id,!0)}}})]):e._e(),e.powers.some((function(e){return"005"==e}))?r("el-tooltip",{attrs:{effect:"dark",content:"修改",placement:"top"}},[r("i",{staticClass:"el-icon-edit tb-icon",on:{click:function(t){return e.openModal(a.row.id,!1)}}})]):e._e(),e.powers.some((function(e){return"004"==e}))&&"1"===a.row.status?r("el-tooltip",{attrs:{effect:"dark",content:"禁用",placement:"top"}},[r("i",{staticClass:"el-icon-video-pause tb-icon",on:{click:function(t){return e.changeStatus(a.row.id,a.row.status)}}})]):e._e(),e.powers.some((function(e){return"004"==e}))&&"0"===a.row.status?r("el-tooltip",{attrs:{effect:"dark",content:"启用",placement:"top"}},[r("i",{staticClass:"el-icon-video-play tb-icon",on:{click:function(t){return e.changeStatus(a.row.id,a.row.status)}}})]):e._e()]}}],null,!1,1983715813)}):r("no-auth"),r("add-edit",{attrs:{id:e.modelId,"show-model":e.showModel,"is-detail":e.isDetail},on:{refresh:e.searchList,cancel:function(t){e.showModel=!1}}})],1)}),[],!1,null,"a0e59a86",null);t.default=s.exports},"2f35":function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=(r("e9c4"),r("96cf"),r("9daa")),s={name:"brand",props:["showModel","id","sitem"],mixins:[r("9f53").a],data:function(){return{loading:!1,title:"添加单位",showModelThis:this.showModel,select:"1",activeOptions:[],actionList:[],ruleForm:{id:"",unit:""},rulesThis:this.rules,rules:{unit:[{required:!0,message:"单位名称不能为空",trigger:"blur"}]}}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis:function(e){e||this.$emit("cancel")}},methods:{initForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,"003"===e.id?(e.title="添加单位",e.rulesThis=e.rules):"005"===e.id?(e.title="修改单位",e.rulesThis=e.rules):(e.title="单位详情",e.rulesThis={}),t.next=4,e.resetForm();case 4:e.loading=!1;case 5:case"end":return t.stop()}}),t)})))()},resetForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$nextTick((function(){var t,r;e.$refs.ruleForm&&(e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),t=(r=e.sitem).id,r=r.unit,e.ruleForm={id:t||"",unit:r||""})}));case 2:case"end":return t.stop()}}),t)})))()},submitForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.ruleForm.validate(function(){var t=Object(a.a)(regeneratorRuntime.mark((function t(r){var a,s,i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r){t.next=30;break}if(e.loading=!0,a=JSON.parse(JSON.stringify(e.ruleForm)),s={},"003"===e.id)return delete a.id,t.next=8,n.a.add(a);t.next=11;break;case 8:s=t.sent,t.next=14;break;case 11:return t.next=13,n.a.update(a);case 13:s=t.sent;case 14:if(e.loading=!1,!s||0!==s.code){t.next=22;break}i="003"===e.id?"添加成功!":"修改成功!",e.$notify.success({title:i,message:""}),e.showModelThis=!1,e.$emit("refresh"),t.next=28;break;case 22:if(s&&100<=s.code&&s.code<=104)return t.next=25,e.logout();t.next=27;break;case 25:t.next=28;break;case 27:e.$message.warning(s.message);case 28:t.next=32;break;case 30:return t.abrupt("return",!1);case 32:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()}}};r("40dc"),r=r("2877"),r=Object(r.a)(s,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:e.title,center:!0,align:"left",top:"18vh",width:"500px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)"},on:{"update:visible":function(t){e.showModelThis=t},close:function(t){e.showModelThis=!1}}},[t("el-card",{staticStyle:{margin:"-20px 0 0 0"}},[t("el-row",{attrs:{gutter:10}},[t("el-col",{attrs:{span:24}},[t("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",rules:e.rulesThis,"label-width":"80px"}},[t("el-form-item",{attrs:{label:"单位名称",prop:"unit"}},[t("el-input",{attrs:{disabled:"007"==e.id,placeholder:"单位名称",maxlength:"20"},model:{value:e.ruleForm.unit,callback:function(t){e.$set(e.ruleForm,"unit",t)},expression:"ruleForm.unit"}})],1)],1)],1),t("el-col",{staticStyle:{"text-align":"right"},attrs:{span:24}},["007"!==e.id?t("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("保 存 ")]):e._e(),t("el-button",{on:{click:function(t){e.showModelThis=!1}}},[e._v(e._s("007"==e.id?"关 闭":"取 消"))])],1)],1)],1)],1)}),[],!1,null,"42e2d7b0",null);t.default=r.exports},"2f3b":function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=(r("e9c4"),r("96cf"),{name:"editMinorderForm",props:["showModel","sitem"],data:function(){var e=this;return{loading:!1,showModelThis:this.showModel,ruleForm:{skuCode:"",good_name:"",activity_stock:"",moq_num:"",cost_price:""},rulesThis:this.rules,rules:{moq_num:[{required:!0,validator:function(t,r,a){var n=parseInt(e.ruleForm.activity_stock)||0;""===r?a(new Error("起订量不能为空!")):"0"===r?a(new Error("起订量不能为零!")):parseInt(r)>n?a(new Error("起订量不能大于活动库存数!")):a()},trigger:"blur"}],cost_price:[{required:!0,validator:function(e,t,r){""===t?r(new Error("成本单价不能为空!")):r()},trigger:"blur"}]}}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis:function(e){e||this.$emit("cancel")}},methods:{initForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,e.rulesThis=e.rules,t.next=4,e.resetForm();case 4:e.loading=!1;case 5:case"end":return t.stop()}}),t)})))()},resetForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$nextTick((function(){e.$refs.ruleForm&&(e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),e.ruleForm=e.sitem?JSON.parse(JSON.stringify(e.sitem)):{skuCode:"",good_name:"",activity_stock:"",moq_num:"",cost_price:""})}));case 2:case"end":return t.stop()}}),t)})))()},moq_num_change:function(e){this.ruleForm.moq_num=e+"",this.$refs.ruleForm.validateField("moq_num")},cost_price_change:function(e){this.ruleForm.cost_price=e+"",this.$refs.ruleForm.validateField("cost_price")},submitForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.ruleForm.validate(function(){var t=Object(a.a)(regeneratorRuntime.mark((function t(r){var a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r){t.next=7;break}e.loading=!0,a=JSON.parse(JSON.stringify(e.ruleForm)),e.showModelThis=!1,e.$emit("refresh",a),t.next=9;break;case 7:return t.abrupt("return",!1);case 9:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()}}});r("ee22"),r=r("2877"),r=Object(r.a)(n,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:"编辑活动信息",center:!0,align:"left",top:"12vh",width:"600px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)"},on:{"update:visible":function(t){e.showModelThis=t},close:function(t){e.showModelThis=!1}}},[t("el-card",{staticStyle:{margin:"-20px 0 0 0"}},[t("el-row",{attrs:{gutter:10}},[t("el-col",{attrs:{span:24}},[t("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",rules:e.rulesThis,"label-width":"80px"}},[t("el-form-item",{attrs:{label:"商品编号",prop:"skuCode"}},[t("el-input",{attrs:{placeholder:"商品编号",maxlength:"100",disabled:""},model:{value:e.ruleForm.skuCode,callback:function(t){e.$set(e.ruleForm,"skuCode",t)},expression:"ruleForm.skuCode"}})],1),t("el-form-item",{attrs:{label:"商品名称",prop:"good_name"}},[t("el-input",{attrs:{disabled:"",placeholder:"商品名称",maxlength:"100"},model:{value:e.ruleForm.good_name,callback:function(t){e.$set(e.ruleForm,"good_name",t)},expression:"ruleForm.good_name"}})],1),t("el-form-item",{attrs:{label:"活动库存",prop:"activity_stock"}},[t("el-input",{attrs:{placeholder:"活动库存",disabled:"",maxlength:"100"},model:{value:e.ruleForm.activity_stock,callback:function(t){e.$set(e.ruleForm,"activity_stock",t)},expression:"ruleForm.activity_stock"}})],1),t("el-form-item",{attrs:{label:"起订量",prop:"moq_num"}},[t("digital-input",{attrs:{values:e.ruleForm.moq_num,placeholder:"起订量",min:0,max:1e11,position:"right",precision:0,controls:!1,append:""},on:{reschange:e.moq_num_change}})],1),t("el-form-item",{attrs:{label:"成本单价",prop:"cost_price"}},[t("digital-input",{attrs:{values:e.ruleForm.cost_price,placeholder:"起订量",min:0,max:1e11,position:"right",precision:2,controls:!1,append:"元"},on:{reschange:e.cost_price_change}})],1)],1)],1),t("el-col",{staticStyle:{"text-align":"right"},attrs:{span:24}},["007"!==e.id?t("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("保 存 ")]):e._e(),t("el-button",{on:{click:function(t){e.showModelThis=!1}}},[e._v(e._s("007"==e.id?"关 闭":"取 消"))])],1)],1)],1)],1)}),[],!1,null,"37687d94",null);t.default=r.exports},"305b":function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=r("5530"),s=(r("96cf"),r("7db0"),r("d3b7"),r("d81d"),r("a9e3"),r("f5ed")),i=r("9f53"),o=r("1b69"),l="admin/",c=function(e,t){return Object(o.a)(l+"expresslist",e,"post",t)},u=function(e,t){return Object(o.a)(l+"expressuse",e,"post",t)},d=r("2f62");s={name:"expressSet",mixins:[s.a,i.a],computed:Object(n.a)(Object(n.a)({},Object(d.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"expressSet"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),data:function(){return{sitem:null,expressType:[{type:"0",label:"国内"},{type:"1",label:"国际"},{type:"2",label:"国际邮政"}],statusOptions:[{id:"0",label:"禁用"},{id:"1",label:"启用"}],loading:!0,parmValue:{type:"",name:"",page:1,size:15},tableData:[],table:{stripe:!0,border:!0,_defaultHeader_:["setcol"]},pageInfo:{size:15,curr:1,total:0},columns:[{prop:"comTypeName",label:"快递类型名称"},{prop:"name",label:"快递名称"},{prop:"shortName",label:"快递简称"},{prop:"shortNameEn",label:"快递英文"},{prop:"type",label:"快递属性",_slot_:"type",width:"100px"},{prop:"canOrder",label:"状态",_slot_:"status",width:"80px"},{prop:"",label:"操作",fixed:"right",_noset_:!0,_slot_:"operation",width:"50px"}]}},mounted:function(){this.searchList()},methods:{restSearch:function(){this.parmValue={type:"",name:"",page:1,size:15},this.pageInfo={size:15,curr:1,total:0},this.searchList()},openModal:function(e,t,r){},searchList:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,t.next=3,c(e.parmValue);case 3:if(!(r=t.sent)||0!==r.code||!r.data){t.next=10;break}e.tableData=r.data.list,e.tableData.map((function(e){return e.status=e.type,e})),e.pageInfo.total=Number(r.data.count),t.next=17;break;case 10:if(r&&100<=r.code&&r.code<=104)return t.next=13,e.logout();t.next=15;break;case 13:t.next=17;break;case 15:e.tableData=[],e.pageInfo.total=0;case 17:e.loading=!1;case 18:case"end":return t.stop()}}),t)})))()},statusConfirm:function(e,t){var r=this;return Object(a.a)(regeneratorRuntime.mark((function n(){var s;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return s="1"===t?"禁用":"启用",n.next=3,r.$confirm("确定要改为"+s+"?",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(a.a)(regeneratorRuntime.mark((function a(){var n,s;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return r.loading=!0,n={id:e,status:"1"===t?"0":"1"},a.next=4,u(n);case 4:if((s=a.sent)&&0===s.code)return r.loading=!1,r.$notify.success({title:"状态修改成功!",message:""}),a.next=10,r.searchList();a.next=12;break;case 10:a.next=18;break;case 12:if(s&&100<=s.code&&s.code<=104)return a.next=15,r.logout();a.next=17;break;case 15:a.next=18;break;case 17:r.$message.warning(s.message);case 18:case"end":return a.stop()}}),a)})))).catch((function(){}));case 3:case"end":return n.stop()}}),n)})))()}}},i=r("2877"),n=Object(i.a)(s,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"expressSet pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?r("div",[r("ex-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{table:e.table,data:e.tableData,columns:e.columns,page:e.pageInfo,size:e.size},on:{"page-curr-change":e.handlePageChange,"page-size-change":e.handleSizeChange,"screen-reset":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()},"screen-submit":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},scopedSlots:e._u([{key:"table-header",fn:function(t){return[r("div",{staticStyle:{width:"100%"}},[r("el-row",{staticStyle:{padding:"0 0 0 80px"}},[r("el-col",{attrs:{span:24}},[r("el-col",{staticStyle:{width:"150px"},attrs:{span:4}},[r("el-select",{staticStyle:{width:"100%"},attrs:{size:e.searchSize,filterable:"",clearable:"",placeholder:"快递属性"},on:{change:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.parmValue.type,callback:function(t){e.$set(e.parmValue,"type",t)},expression:"parmValue.type"}},e._l(e.expressType,(function(e){return r("el-option",{key:"status"+e.type,attrs:{label:e.label,value:e.type}})})),1)],1),r("el-col",{staticStyle:{width:"220px",padding:"0 0 0 10px"},attrs:{span:4}},[r("el-input",{attrs:{size:e.searchSize,maxlength:40,placeholder:"快递名称"},model:{value:e.parmValue.name,callback:function(t){e.$set(e.parmValue,"name",t)},expression:"parmValue.name"}})],1),r("el-col",{staticStyle:{width:"54px"},attrs:{span:4}},[r("el-button",{staticClass:"fr",attrs:{size:e.searchSize,type:"primary",icon:"el-icon-search"},on:{click:e.searchList}})],1),r("el-col",{staticStyle:{width:"66px"},attrs:{span:4}},[r("el-button",{staticClass:"fr",attrs:{type:"warning",size:e.searchSize},on:{click:e.restSearch}},[e._v(" 重置 ")])],1),r("el-col",{staticStyle:{width:"66px",float:"right"},attrs:{span:3}},[r("el-button",{staticStyle:{float:"right","margin-left":"5px"},attrs:{size:e.searchSize,type:"primary"},on:{click:e.searchList}},[e._v(" 刷新 ")])],1)],1)],1)],1)]}},{key:"status",fn:function(t){var a=t.scope;return[r("el-tag",{attrs:{size:e.tablebtnSize,type:"0"==a.row.canOrder?"warning":""},domProps:{textContent:e._s((e.statusOptions.find((function(e){return e.id==a.row.canOrder}))||{}).label||"--")}})]}},{key:"type",fn:function(t){var a=t.scope;return[r("el-tag",{attrs:{size:e.tablebtnSize,type:"0"==a.row.type?"warning":""},domProps:{textContent:e._s((e.expressType.find((function(e){return e.type==a.row.status}))||{}).label||"--")}})]}},{key:"operation",fn:function(t){var a=t.scope;return[e.powers.some((function(e){return"007"==e}))?r("el-tooltip",{attrs:{effect:"dark",content:"详情",placement:"top"}},[r("i",{staticClass:"el-icon-view tb-icon",on:{click:function(t){return e.openModal(a.row.id,!0,a.row)}}})]):e._e(),e.powers.some((function(e){return"005"==e}))?r("el-tooltip",{attrs:{effect:"dark",content:"修改",placement:"top"}},[r("i",{staticClass:"el-icon-edit tb-icon",on:{click:function(t){return e.openModal(a.row.id,!1,a.row)}}})]):e._e(),e.powers.some((function(e){return"004"==e}))&&"1"===a.row.canOrder?r("el-tooltip",{attrs:{effect:"dark",content:"禁用",placement:"top"}},[r("i",{staticClass:"el-icon-video-pause tb-icon",on:{click:function(t){return e.statusConfirm(a.row.id,a.row.status)}}})]):e._e(),e.powers.some((function(e){return"004"==e}))&&"0"===a.row.canOrder?r("el-tooltip",{attrs:{effect:"dark",content:"启用",placement:"top"}},[r("i",{staticClass:"el-icon-video-play tb-icon",on:{click:function(t){return e.statusConfirm(a.row.id,a.row.canOrder)}}})]):e._e()]}}],null,!1,1306672304)})],1):r("div",[r("no-auth")],1)])}),[],!1,null,"307396bc",null);t.default=n.exports},"30a4":function(e,t,r){},"312a":function(e,t,r){},"31a1":function(e,t,r){"use strict";r("6944b")},"31de":function(e,t,r){"use strict";r("57e6")},"32c1":function(e,t,r){"use strict";r("e6c1")},"337b":function(e,t,r){"use strict";r("d9df")},3500:function(e,t,r){"use strict";r("eded")},"352a":function(e,t,r){},"35c1":function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=r("ade3"),s=r("5530"),i=(r("96cf"),r("7db0"),r("d3b7"),r("e9c4"),r("a9e3"),r("f5ed")),o=r("9f53"),l=r("5bbe"),c=r("ebea"),u=[{prop:"wsm_in_code",label:"入库单编号",width:"155"},{prop:"cgdNo",label:"采购单编号",width:"155px"},{prop:"status",label:"状态",_slot_:"status",width:"110px"},{prop:"spuCode",label:"SPU编号",width:"145px"},{prop:"good_name",label:"商品名称",_slot_:"good_name","min-width":"145px"},{prop:"brand_name",label:"品牌",width:"95px"},{prop:"send_num",label:"发货数量",width:"80px"},{prop:"post_fee",label:"物流费用",width:"100px"},{prop:"wsm_supplierNo",label:"仓库公司编号",width:"145px"},{prop:"wsm_supplier",label:"仓库公司名称",width:"155px"},{prop:"wsm_code",label:"仓库编号",width:"172px"},{prop:"wsm_name",label:"仓库名称",width:"80px"},{prop:"apply_name",label:"申请人",width:"60px"},{prop:"sendtime",label:"发货时间",width:"145px"},{prop:"",label:"操作",fixed:"right",_noset_:!0,width:"50px",_slot_:"operation"}],d=r("2f62");i={name:"purchaseOrder",mixins:[i.a,o.a],components:{},computed:Object(s.a)(Object(s.a)({},Object(d.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"wsmInOrder"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),data:function(){var e={sitem:null,select:"1",input:"",timeOBJ:{start:"",end:""},options:["创建时间","最晚入库时间"],sselect:"创建时间",order_type_options:c.b,statusOptions:[{value:"0",label:"待发货"},{value:"1",label:"待验货"},{value:"2",label:"待审核"},{value:"3",label:"待入库"},{value:"4",label:"入库完成"},{value:"5",label:"退货待物流"},{value:"6",label:"退货完成"}],loading:!1,showModel:!1,isDetail:!1,modelId:0,wsm_code:[],wsm_supplierNo:[],parmValue:{order_type:"",wsm_in_code:"",cgdNo:"",apply_name:"",good_name:"",good_type_code:"",status:"",wsm_code:"",start:"",end:"",last_start:"",last_end:"",page:1,size:15,supplierNo:"",wsm_supplierNo:""},tableData:[],passwordModel:!1,passwordModelId:0,isPasswordDetail:!1};return Object(n.a)(e,"tableData",[]),Object(n.a)(e,"table",{stripe:!0,border:!0,_defaultHeader_:["setcol"]}),Object(n.a)(e,"pageInfo",{size:15,curr:1,total:0}),Object(n.a)(e,"columns",u),e},mounted:function(){this.searchList()},methods:{restSearch:function(){this.sselect="创建时间",this.select="1",this.input="",this.wsm_code=[],this.wsm_supplierNo=[],this.timeOBJ={start:"",end:""},this.parmValue={order_type:"",wsm_in_code:"",cgdNo:"",apply_name:"",good_name:"",good_type_code:"",status:"",wsm_code:"",start:"",end:"",last_start:"",last_end:"",page:1,size:15},this.pageInfo={size:15,curr:1,total:0},this.searchList()},handleClick:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t.sselect=e,t.parmValue.start="创建时间"===e?t.timeOBJ.start:"",t.parmValue.end="创建时间"===e?t.timeOBJ.end:"",t.parmValue.last_start="创建时间"!==e?t.timeOBJ.start:"",t.parmValue.last_end="创建时间"!==e?t.timeOBJ.end:"",""!==t.timeOBJ.start&&""===t.timeOBJ.end||""===t.timeOBJ.start&&""!==t.timeOBJ.end){r.next=10;break}return t.parmValue.page=1,t.pageInfo.curr=1,r.next=10,t.searchList();case 10:case"end":return r.stop()}}),r)})))()},supplierChange:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return e&&e.id?(t.parmValue.wsm_supplierNo=e.code,t.wsm_supplierNo=[e.code]):(t.parmValue.wsm_supplierNo="",t.wsm_supplierNo=[]),t.parmValue.wsm_code="",t.wsm_code=[],t.parmValue.page=1,t.pageInfo.curr=1,r.next=7,t.searchList();case 7:case"end":return r.stop()}}),r)})))()},stockChange:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return e&&e.id?(t.parmValue.wsm_code=e.code,t.wsm_code=[e.code]):(t.parmValue.wsm_code="",t.wsm_code=[]),t.parmValue.page=1,t.pageInfo.curr=1,r.next=6,t.searchList();case 6:case"end":return r.stop()}}),r)})))()},searchList:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r,a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(""!==e.timeOBJ.start&&""===e.timeOBJ.end||""===e.timeOBJ.start&&""!==e.timeOBJ.end)return e.$message.warning("时间区间不完整!"),t.abrupt("return");t.next=3;break;case 3:return e.loading=!0,e.parmValue.cgdNo="1"===e.select?e.input:"",e.parmValue.wsm_in_code="2"===e.select?e.input:"",e.parmValue.good_type_code="4"===e.select?e.input:"",e.parmValue.good_name="5"===e.select?e.input:"",e.parmValue.apply_name="6"===e.select?e.input:"",e.parmValue.supplierNo="7"===e.select?e.input:"",r=JSON.parse(JSON.stringify(e.parmValue)),r={cgdNo:r.cgdNo,wsm_in_code:r.wsm_in_code,start:r.start,end:r.end,order_type:r.order_type,good_type_code:r.good_type_code,apply_name:r.apply_name,wsm_code:r.wsm_code,good_name:r.good_name,supplie:"",supplierNo:r.wsm_supplierNo,status:r.status,page:r.page,size:r.size},t.next=14,l.a.list(r);case 14:if(!(a=t.sent)||0!==a.code||!a.data){t.next=20;break}e.tableData=a.data.list,e.pageInfo.total=Number(a.data.count),t.next=27;break;case 20:if(a&&100<=a.code&&a.code<=104)return t.next=23,e.logout();t.next=25;break;case 23:t.next=27;break;case 25:e.tableData=[],e.pageInfo.total=0;case 27:e.loading=!1;case 28:case"end":return t.stop()}}),t)})))()},handleTime:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return""!==e.startTime?t.timeOBJ.start=e.startTime:t.timeOBJ.start="",""!==e.endTime?t.timeOBJ.end=e.endTime:t.timeOBJ.end="",r.next=4,t.handleClick(t.sselect);case 4:case"end":return r.stop()}}),r)})))()}}},r("76c2"),o=r("2877"),s=Object(o.a)(i,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"purchaseOrder pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?r("div",[r("ex-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{table:e.table,data:e.tableData,columns:e.columns,page:e.pageInfo,size:e.size},on:{"page-curr-change":e.handlePageChange,"page-size-change":e.handleSizeChange,"screen-reset":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()},"screen-submit":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},scopedSlots:e._u([{key:"table-header",fn:function(t){return[r("div",{staticStyle:{width:"100%"}},[r("el-row",{staticStyle:{padding:"0 0 0 80px"}},[r("el-col",{staticStyle:{width:"130px"},attrs:{span:4}},[r("el-select",{staticStyle:{width:"100%"},attrs:{size:e.searchSize,filterable:"",clearable:"",placeholder:"入库单来源"},on:{change:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.parmValue.order_type,callback:function(t){e.$set(e.parmValue,"order_type",t)},expression:"parmValue.order_type"}},e._l(e.order_type_options,(function(e){return r("el-option",{key:"order_type"+e.value,attrs:{label:e.label,value:e.value}})})),1)],1),r("el-col",{staticStyle:{width:"370px",padding:"0 0 0 10px"},attrs:{span:4}},[r("search-supplier",{attrs:{size:e.searchSize,value:e.wsm_supplierNo,placeholder:"入库公司名称",disabled:!1,isDetail:!1},on:{searchChange:e.supplierChange}})],1),r("el-col",{staticStyle:{width:"220px",padding:"0 0 0 10px"},attrs:{span:4}},[r("search-stock",{attrs:{size:e.searchSize,value:e.wsm_code,placeholder:"入库仓库名称",disabled:!1,isDetail:!1,isRelation:!0,companyCode:e.parmValue.wsm_supplierNo},on:{searchChange:e.stockChange}})],1),r("el-col",{staticStyle:{width:"66px",float:"right"},attrs:{span:3}},[r("el-button",{staticStyle:{float:"right","margin-left":"5px"},attrs:{size:e.searchSize,type:"primary"},on:{click:e.searchList}},[e._v(" 刷新 ")])],1)],1),r("el-row",{staticStyle:{padding:"10px 0 0 0"}},[r("el-col",{staticStyle:{width:"170px"},attrs:{span:4}},[r("el-select",{staticStyle:{width:"100%"},attrs:{size:e.searchSize,filterable:"",clearable:"",placeholder:"入库单状态"},on:{change:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.parmValue.status,callback:function(t){e.$set(e.parmValue,"status",t)},expression:"parmValue.status"}},e._l(e.statusOptions,(function(e){return r("el-option",{key:"status"+e.value,attrs:{label:e.label,value:e.value}})})),1)],1),r("el-col",{staticStyle:{width:"303px",padding:"0 0 0 10px"},attrs:{span:6}},[r("period-date-picker",{attrs:{type:1,width:"135px",size:e.searchSize,start:e.timeOBJ.start,end:e.timeOBJ.end},on:{timeReturned:e.handleTime}})],1),r("el-col",{staticStyle:{width:"420px",padding:"0 0 0 10px"},attrs:{span:6}},[r("el-input",{staticClass:"input-with-select",attrs:{clearable:"",placeholder:"关键字",size:e.searchSize},on:{blur:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.input,callback:function(t){e.input=t},expression:"input"}},[r("el-select",{staticStyle:{width:"145px"},attrs:{slot:"prepend",placeholder:"关键字类型"},on:{change:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},slot:"prepend",model:{value:e.select,callback:function(t){e.select=t},expression:"select"}},[r("el-option",{attrs:{label:"采购单编号",value:"1"}}),r("el-option",{attrs:{label:"入库单编号",value:"2"}}),r("el-option",{attrs:{label:"商品属性编号",value:"4"}}),r("el-option",{attrs:{label:"产品名称",value:"5"}}),r("el-option",{attrs:{label:"申请人",value:"6"}}),r("el-option",{attrs:{label:"采购供应商编号",value:"7"}})],1),r("el-button",{attrs:{slot:"append",icon:"el-icon-search"},on:{click:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},slot:"append"})],1)],1),r("el-col",{staticStyle:{width:"66px",float:"right"},attrs:{span:4}},[r("el-button",{staticClass:"fr",attrs:{type:"warning",size:e.searchSize},on:{click:e.restSearch}},[e._v(" 重置 ")])],1)],1)],1)]}},{key:"good_name",fn:function(t){return t=t.scope,[r("span",[e._v(e._s(t.row.good_name))]),e._l(t.row.speclist,(function(t,a){return r("span",{key:t+a},[e._v(e._s(0===a?"_":"-")+e._s(t.spec_name)+"["+e._s(t.spec_value)+"]")])}))]}},{key:"status",fn:function(t){var a=t.scope;return[r("el-tag",{attrs:{size:e.tablebtnSize,type:"0"==a.row.status?"warning":""},domProps:{textContent:e._s((e.statusOptions.find((function(e){return e.value==a.row.status}))||{}).label||"--")}})]}},{key:"operation",fn:function(t){var a=t.scope;return[e.powers.some((function(e){return"007"==e}))?r("el-tooltip",{attrs:{effect:"dark",content:"详情",placement:"top"}},[r("i",{staticClass:"el-icon-view tb-icon",on:{click:function(t){return e.routeGoto("wsmInOrderDetail",{id:a.row.wsm_in_code})}}})]):e._e()]}}],null,!1,3756954923)})],1):r("div",[r("no-auth")],1)])}),[],!1,null,"dc3473fe",null);t.default=s.exports},"35e6":function(e,t,r){"use strict";r.d(t,"a",(function(){return a})),r.d(t,"b",(function(){return n}));var a=[{prop:"good_name",label:"商品名称",_slot_:"good_name",span:24},{prop:"cat",label:"分类",_slot_:"cat",span:24},{prop:"is_stock",label:"是否库存品",_slot_:"is_stock",span:8},{prop:"unit",label:"单位",span:8},{prop:"tax",label:"税点",append:"%",span:8},{prop:"exclusive",label:"专属类型",_slot_:"exclusive",span:12},{prop:"brand_name",label:"品牌",span:12},{prop:"weight",label:"商品总克重",_slot_:"weight",span:24},{prop:"lead_time",label:"工期",span:8},{prop:"delivery_day",label:"物流",span:8},{prop:"purchase",label:"采购人员",span:8},{prop:"after_sales",label:"售后说明",span:24}],n=[{prop:"orderCode",label:"订单编号",span:6},{prop:"status",label:"订单状态",_slot_:"status",span:6},{prop:"order_type",label:"订单类型",_slot_:"order_type",span:6},{prop:"apply_name",label:"创建人",span:6},{prop:"supplierName",label:"销售方公司",_slot_:"supplierName",span:12},{prop:"companyName",label:"购买方公司",_slot_:"companyName",span:12},{prop:"platform_id",label:"所属平台",span:6},{prop:"good_num",label:"购买数量",span:6},{prop:"send_num",label:"已发数量",span:6},{prop:"wsend_num",label:"未发数量",span:6},{prop:"th_num",label:"退货数量",span:6},{prop:"arrive_time",label:"要求到货时间",span:6},{prop:"sale_price",label:"售价",append:"元",span:6},{prop:"sale_price",label:"总金额",append:"元",span:6},{prop:"paytime",label:"承诺付款时间",span:6},{prop:"post_fee",label:"物流费用",append:"元",span:6},{prop:"useage",label:"订单用途",span:12},{prop:"is_active",label:"活动类型",_slot_:"is_active",span:12},{prop:"send_type",label:"发货类型",_slot_:"send_type",span:6},{prop:"addtime",label:"创建时间",span:6},{prop:"platform_order",label:"平台订单号",span:12},{prop:"workNo",label:"其他单号",span:12},{prop:"remark",label:"备注",span:24}]},3732:function(e,t,r){"use strict";r.d(t,"b",(function(){return g})),r.d(t,"c",(function(){return a})),r.d(t,"g",(function(){return n})),r.d(t,"h",(function(){return s})),r.d(t,"i",(function(){return i})),r.d(t,"j",(function(){return o})),r.d(t,"k",(function(){return l})),r.d(t,"l",(function(){return c})),r.d(t,"m",(function(){return u})),r.d(t,"n",(function(){return d})),r.d(t,"d",(function(){return p})),r.d(t,"e",(function(){return m})),r.d(t,"f",(function(){return f})),r.d(t,"a",(function(){return h}));var a=[{id:"0",name:"否"},{id:"1",name:"是"}],n=[{id:"0",name:"非泰康"},{id:"1",name:"泰康"}],s=[{id:"0",name:"无销售权限"},{id:"1",name:"有销售权限"}],i=[{id:"0",name:"非库存品"},{id:"1",name:"库存品"}],o=[{id:"0",name:"否"},{id:"1",name:"是"}],l=[{id:"1",name:"全国"},{id:"2",name:"全国除偏远"}],c=[{id:"0",name:"否"},{id:"1",name:"是"}],u=[{id:"0",name:"无工差"},{id:"1",name:"有工差"}],d=["证书","包装盒","绒布袋","标签","其他"],p=[{id:"0",name:"现结"},{id:"1",name:"月清"},{id:"2",name:"双月清"}],m=[{id:"0",name:"公司自提"},{id:"1",name:"供应商包邮"}],f=[{id:"0",name:"一地"},{id:"1",name:"多地"}],h=[{prop:"bargainNo",label:"议价单编号",span:6},{prop:"bidsNo",label:"反馈商品编号",span:6},{prop:"infoNo",label:"咨询单编号",span:6},{prop:"status",label:"状态",_slot_:"status",span:6},{prop:"creater",label:"创建人",span:6},{prop:"brand_name",label:"品牌",span:6},{prop:"good_name",label:"商品名称",_slot_:"good_name",span:12},{prop:"can",label:"商品分类",_slot_:"can",span:12},{prop:"specinfo",label:"商品规格",_slot_:"specinfo",span:12},{prop:"origin_addr",label:"产地",span:12},{prop:"expire_day",label:"咨询有效期",append:"天",span:6},{prop:"delivery_day",label:"物流时间",append:"天",span:6},{prop:"work_day",label:"生产工期",append:"天",span:6},{prop:"tax",label:"税点",append:"%",span:6},{prop:"is_addrs",label:"是否多地",_slot_:"is_addrs",span:6},{prop:"is_custom",label:"是否定制",_slot_:"is_custom",span:6},{prop:"weight",label:"商品总重量",append:"g",span:6},{prop:"supply_area",label:"供货区域",_slot_:"supply_area",span:6},{prop:"pay_way",label:"付款方式",_slot_:"pay_way",span:6},{prop:"send_way",label:"发货方式",_slot_:"send_way",span:6},{prop:"cert_fee",label:"成本证书费",append:"元",span:6},{prop:"pakge_fee",label:"成本包装费",append:"元",span:6},{prop:"cost_fee",label:"成本工艺费",append:"元",span:6},{prop:"mark_fee",label:"成本加标费",append:"元",span:6},{prop:"demo_fee",label:"成本打样费",append:"元",span:6},{prop:"open_fee",label:"成本开模费",append:"元",span:6},{prop:"delivery_fee",label:"成本物流费",append:"元",span:6},{prop:"nake_fee",label:"成本裸价",append:"元",span:6},{prop:"good_num",label:"购买数量",_slot_:"good_num",span:6},{prop:"metal_id",label:"贵金属信息",_slot_:"metal_id",span:18},{prop:"sale_price",label:"议价前售价",append:"元",span:6},{prop:"cost_before_price",label:"议价前工艺费",append:"元",span:6},{prop:"before_rate",label:"议价前毛利率",append:"%",span:6},{prop:"addtime",label:"创建时间",span:6},{prop:"after_price",label:"议价后单价",append:"元",span:6},{prop:"cost_after_price",label:"议价后工艺费",append:"元",span:6},{prop:"after_rate",label:"议价后毛利率",append:"%",span:6},{prop:"result_info",label:"议价原因",span:6},{prop:"remark",label:"采购备注",span:24},{prop:"cost_desc",label:"工艺说明",span:24},{prop:"bargain_remark",label:"议价备注",span:24}],g=[{prop:"bargainNo",label:"议价编号",width:"155"},{prop:"infoNo",label:"咨询单编号",width:"155"},{prop:"status",label:"状态",_slot_:"status",width:"120px"},{prop:"bidsNo",label:"采返商品编号",width:"155"},{prop:"good_img",label:"图片",_slot_:"good_img",width:"50"},{prop:"good_name",label:"商品名称",_slot_:"good_name","min-width":"180"},{prop:"can",label:"分类",_slot_:"can","min-width":"125"},{prop:"creater",label:"申请人",width:"75"},{prop:"addtime",label:"添加时间",width:142},{prop:"",label:"操作",fixed:"right",_noset_:!0,_slot_:"operation",width:50}]},3851:function(e,t,r){},"387e":function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=r("5530"),s=(r("a9e3"),r("96cf"),r("4d66")),i=r("f5ed"),o=r("2f62"),l=r("9f53");i={name:"priceRecord",mixins:[i.a,l.a],computed:Object(n.a)({},Object(o.b)(["tablebtnSize","searchSize","size"])),data:function(){return{loading:!0,parmValue:{page:1,size:15,start:"",end:"",type:"",action_name:""},tableData:[],table:{stripe:!0,border:!0,_defaultHeader_:["setcol"]},pageInfo:{size:15,curr:1,total:0},columns:[{prop:"id",label:"ID",width:"70"},{prop:"type_cn",label:"金属种类"},{prop:"price",label:"当前金价(元/g)"},{prop:"action_name",label:"创建人"},{prop:"addtime",label:"创建时间"}]}},mounted:function(){this.searchList()},methods:{restSearch:function(){this.pageInfo={size:15,curr:1,total:0},this.parmValue={page:1,size:15,start:"",end:"",type:"",action_name:""},this.searchList()},handleTime:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t.parmValue.start=e.startTime||"",t.parmValue.end=e.endTime||"",""!==t.parmValue.start&&""!==t.parmValue.end||""===t.parmValue.start&&""===t.parmValue.end)return t.pageInfo.curr=1,t.parmValue.page=1,r.next=7,t.searchList();r.next=7;break;case 7:case"end":return r.stop()}}),r)})))()},noble_metalsearchChange:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){var a;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a=e.id,e.code,e.label,t.parmValue.type=a||"",t.pageInfo.curr=1,t.parmValue.page=1,r.next=6,t.searchList();case 6:case"end":return r.stop()}}),r)})))()},searchList:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(""!==e.parmValue.start&&""===e.parmValue.end||""===e.parmValue.start&&""!==e.parmValue.end)return e.$message.warning("时间区间不完整!"),t.abrupt("return");t.next=3;break;case 3:return e.loading=!0,t.next=6,s.a.ecordList(e.parmValue);case 6:if(!(r=t.sent)||0!==r.code||!r.data){t.next=12;break}e.tableData=r.data.list,e.pageInfo.total=Number(r.data.count),t.next=19;break;case 12:if(r&&100<=r.code&&r.code<=104)return t.next=15,e.logout();t.next=17;break;case 15:t.next=19;break;case 17:e.tableData=[],e.pageInfo.total=0;case 19:e.loading=!1;case 20:case"end":return t.stop()}}),t)})))()}}},l=r("2877"),n=Object(l.a)(i,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"priceRecord"},[r("ex-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{table:e.table,data:e.tableData,columns:e.columns,page:e.pageInfo,size:e.size},on:{"page-curr-change":e.handlePageChange,"page-size-change":e.handleSizeChange,"screen-reset":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()},"screen-submit":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},scopedSlots:e._u([{key:"table-header",fn:function(t){return[r("div",{staticStyle:{width:"100%"}},[r("el-row",{staticStyle:{padding:"0 0 0 80px"}},[r("el-col",{staticStyle:{width:"303px"},attrs:{span:6}},[r("period-date-picker",{attrs:{type:1,width:"135px",size:e.searchSize,start:e.parmValue.start,end:e.parmValue.end},on:{timeReturned:e.handleTime}})],1),r("el-col",{staticStyle:{width:"200px"},attrs:{span:4}},[r("search-metal-kind",{attrs:{value:e.parmValue.type,disabled:!1,isDetail:!1,size:e.searchSize,placeholder:"金属类型"},on:{searchChange:e.noble_metalsearchChange}})],1),r("el-col",{staticStyle:{width:"170px",padding:"0 0 0 10px"},attrs:{span:4}},[r("el-input",{attrs:{size:e.searchSize,maxlength:40,placeholder:"创建人"},on:{change:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.parmValue.action_name,callback:function(t){e.$set(e.parmValue,"action_name",t)},expression:"parmValue.action_name"}})],1),r("el-col",{staticClass:"fr",staticStyle:{width:"66px",padding:"0 0 0 10px"},attrs:{span:3}},[r("el-button",{attrs:{type:"primary",size:e.searchSize},on:{click:e.searchList}},[e._v(" 刷新 ")])],1),r("el-col",{staticClass:"fr",staticStyle:{width:"66px",padding:"0 0 0 10px"},attrs:{span:3}},[r("el-button",{attrs:{type:"warning",size:e.searchSize},on:{click:e.restSearch}},[e._v(" 重置 ")])],1)],1)],1)]}}])})],1)}),[],!1,null,"b0a95c4e",null);t.default=n.exports},"38d3":function(e,t,r){"use strict";r("add0")},3915:function(e,t,r){"use strict";var a=r("1da1"),n=r("ade3"),s=r("5530"),i=(r("e9c4"),r("d3b7"),r("159b"),r("b0c0"),r("a9e3"),r("96cf"),r("1b69")),o=function(e,t){return Object(i.a)("admin/gooduplist",e,"post",t)},l=function(e,t){return Object(i.a)("admin/supplierlist",e,"post",t)},c=r("9f53"),u=r("f5ed"),d=r("2f62"),p=[{type:"selection",fixed:"left",_noset_:!0},{prop:"spuCode",label:"编号",width:"160px"},{prop:"good_thumb_img",label:"图片",_slot_:"good_thumb_img",width:"45px"},{prop:"good_name",label:"名称","min-width":"160px"},{prop:"cat_name",label:"分类","min-width":"100px"},{prop:"brand_name",label:"品牌"},{prop:"good_type",label:"是否定制",_slot_:"good_type",width:"70px"},{prop:"unit",label:"单位",width:"45px"},{prop:"tax",label:"税率",width:"45px"},{prop:"supplierNo",label:"供应商编号",width:"160px"},{prop:"supplier_name",label:"供应商名称",width:"150px"},{prop:"companyNo",label:"业务公司编号",width:"160px"},{prop:"company",label:"业务公司名称",width:"150px"},{prop:"creater",label:"采购员",fixed:"right",width:"70px"}];c={name:"searchGoodModal",mixins:[c.a,u.a],computed:Object(s.a)({},Object(d.b)(["tablebtnSize","searchSize","size"])),props:["showModel","once","isonline","is_stock"],data:function(){var e={options1:[{id:"0",name:"否"},{id:"1",name:"是"}],sinput:"",select:"1",options:[],selectLoading:!1,searchName:"",supplierCode:[],loading:!0,showModelThis:!1,parmValue:{type_code:"",supplierNo:"",cat_id:[],brandid:[],spucode:"",good_name:"",status:"1",company:"",supplier:"",isonline:"",is_stock:"",page:1,size:15},tableData:[],passwordModel:!1,passwordModelId:0,isPasswordDetail:!1};return Object(n.a)(e,"tableData",[]),Object(n.a)(e,"table",{stripe:!0,border:!0}),Object(n.a)(e,"pageInfo",{size:15,curr:1,total:0}),Object(n.a)(e,"columns",p),e},watch:{showModel:function(e){(this.showModelThis=e)&&this.restSearch()},showModelThis:function(e){e||this.$emit("cancel")}},methods:{restSearch:function(){this.sinput="",this.select="1",this.parmValue={type_code:"",supplierNo:"",spucode:"",cat_id:[],brandid:[],good_name:"",status:"1",is_stock:"",company:"",supplier:"",isonline:"",page:1,size:15},this.pageInfo={size:15,curr:1,total:0},this.searchList()},goods_class_change:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return t.parmValue.cat_id=e,t.pageInfo.curr=1,t.parmValue.page=1,r.next=5,t.searchList();case 5:case"end":return r.stop()}}),r)})))()},brandidsearchChange:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){var a;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a=e.id,t.parmValue.brandid=a?[a]:[],t.pageInfo.curr=1,t.parmValue.page=1,r.next=6,t.searchList();case 6:case"end":return r.stop()}}),r)})))()},searchList:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r,a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,e.parmValue.spucode="1"===e.select?e.sinput:"",e.parmValue.good_name="2"===e.select?e.sinput:"",e.parmValue.company="3"===e.select?e.sinput:"",e.parmValue.supplier="4"===e.select?e.sinput:"",e.parmValue.isonline=e.isonline||"",e.parmValue.is_stock=e.is_stock||"",(r=JSON.parse(JSON.stringify(e.parmValue))).cat_id=0<r.cat_id.length?r.cat_id[r.cat_id.length-1]:"",r.brandid=0<r.brandid.length?r.brandid[r.brandid.length-1]:"",t.next=12,o(r);case 12:if(!(a=t.sent)||0!==a.code||!a.data){t.next=19;break}e.tableData=a.data.list,e.tableData.forEach((function(e){e.cat_name="",(e.cat_info||[]).forEach((function(t,r){e.cat_name+=0==r?t.name:"/"+t.name}))})),e.pageInfo.total=Number(a.data.count),t.next=26;break;case 19:if(a&&100<=a.code&&a.code<=104)return t.next=22,e.logout();t.next=24;break;case 22:t.next=26;break;case 24:e.tableData=[],e.pageInfo.total=0;case 26:e.loading=!1;case 27:case"end":return t.stop()}}),t)})))()},remoteMethod:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){var a,n;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t.selectLoading=!0,""!==e)return t.options=[],n={page:1,size:100,name:e,code:""},r.next=6,l(n);r.next=20;break;case 6:if(!(a=r.sent)||0!==a.code||!a.data){r.next=12;break}n=a.data.list,t.options=n,r.next=18;break;case 12:if(a&&100<=a.code&&a.code<=104)return r.next=15,t.logout();r.next=17;break;case 15:r.next=18;break;case 17:t.$message.warning(a.message);case 18:r.next=21;break;case 20:t.options=[];case 21:t.selectLoading=!1;case 22:case"end":return r.stop()}}),r)})))()},resultList:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e&&1<e.length&&t.once)return t.$message.warning("只能选择一条商品信息!"),r.abrupt("return");r.next=3;break;case 3:t.showModelThis=!1,t.$emit("resultList",e);case 5:case"end":return r.stop()}}),r)})))()}}},u=r("2877"),s=Object(u.a)(c,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:"选择商品",center:!0,align:"left",top:"8vh",width:"1040px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)","append-to-body":""},on:{close:function(t){e.showModelThis=!1},"update:visible":function(t){e.showModelThis=t}}},[r("el-card",{staticClass:"modal-form-style",staticStyle:{"margin-top":"-20px"}},[r("ex-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{table:e.table,data:e.tableData,columns:e.columns,page:e.pageInfo,size:e.size},on:{"page-curr-change":e.handlePageChange,"page-size-change":e.handleSizeChange,"screen-reset":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()},"screen-submit":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},scopedSlots:e._u([{key:"table-header",fn:function(t){var a=t.selection;return[r("div",{staticStyle:{width:"100%"}},[r("el-row",{staticStyle:{padding:"0 0 10px 0",margin:"-5px 0 0 0"}},[r("el-col",{staticStyle:{width:"363px"},attrs:{span:6}},[r("good-class",{attrs:{value:e.parmValue.cat_id,disabled:!1,size:e.searchSize,isDetail:!1,placeholder:"分类"},on:{handleChange:e.goods_class_change}})],1),r("el-col",{staticStyle:{width:"228px",padding:"0 0 0 10px"},attrs:{span:4}},[r("search-brand",{attrs:{value:e.parmValue.brandid,disabled:!1,size:"mini",isDetail:!1,names:"",placeholder:"品牌"},on:{searchChange:e.brandidsearchChange}})],1),r("el-col",{staticStyle:{width:"145px",padding:"0 0 0 10px"},attrs:{span:4}},[r("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"",clearable:"",size:e.searchSize,placeholder:"是否定制"},on:{change:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.parmValue.good_type,callback:function(t){e.$set(e.parmValue,"good_type",t)},expression:"parmValue.good_type"}},e._l(e.options1,(function(e){return r("el-option",{key:"good_type"+e.id,attrs:{label:e.name,value:e.id}})})),1)],1),r("el-col",{staticClass:"fr",staticStyle:{width:"66px",padding:"0 0 0 10px"},attrs:{span:3}},[r("el-button",{attrs:{type:"primary",size:e.searchSize},on:{click:e.searchList}},[e._v(" 刷新 ")])],1),r("el-col",{staticClass:"fr",staticStyle:{width:"66px",padding:"0 0 0 10px"},attrs:{span:3}},[r("el-button",{attrs:{type:"warning",size:e.searchSize},on:{click:e.restSearch}},[e._v(" 重置 ")])],1)],1),r("el-row",{staticStyle:{padding:"0 0 0 0"}},[r("el-col",{staticStyle:{width:"518px"},attrs:{span:4}},[r("el-input",{attrs:{size:e.searchSize,maxlength:40,clearable:"",placeholder:"关键字"},on:{blur:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.sinput,callback:function(t){e.sinput=t},expression:"sinput"}},[r("el-select",{staticStyle:{width:"135px"},attrs:{slot:"prepend",placeholder:"关键字类型"},slot:"prepend",model:{value:e.select,callback:function(t){e.select=t},expression:"select"}},[r("el-option",{attrs:{label:"商品编号",value:"1"}}),r("el-option",{attrs:{label:"商品名称",value:"2"}}),r("el-option",{attrs:{label:"业务公司名称",value:"3"}}),r("el-option",{attrs:{label:"供应商名称",value:"4"}})],1)],1)],1),r("el-col",{staticClass:"fr",staticStyle:{width:"66px",padding:"0 0 0 10px"},attrs:{span:3}},[r("el-button",{attrs:{type:"success",size:e.searchSize},on:{click:function(t){return e.resultList(a)}}},[e._v(" 保存 ")])],1)],1)],1)]}},{key:"good_thumb_img",fn:function(t){return t=t.scope,[t.row.good_thumb_img?r("div",{directives:[{name:"viewer",rawName:"v-viewer"}],staticClass:"hover",staticStyle:{width:"20px",height:"20px"}},[r("img",{staticStyle:{display:"inline-block",width:"100%",height:"100%"},attrs:{src:t.row.good_thumb_img,alt:""}})]):e._e()]}},{key:"good_type",fn:function(t){var a=t.scope;return[r("el-tag",{attrs:{size:e.tablebtnSize,type:"0"==a.row.good_type?"warning":""},domProps:{textContent:e._s((e.options1.find((function(e){return e.id==a.row.good_type}))||{}).name||"--")}})]}}])})],1)],1)}),[],!1,null,null,null).exports;t.a=s},"3a02":function(e,t,r){},"3a1a":function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=r("5530"),s=(r("96cf"),r("7db0"),r("d3b7"),r("e9c4"),r("25f0"),r("159b"),r("99af"),r("a9e3"),r("f5ed")),i=r("9f53"),o=r("0ee5"),l=r("4237"),c=[{prop:"good_code",label:"产品编码",width:"150"},{prop:"good_name",label:"产品名称",width:"100"},{prop:"type_code",label:"产品属性编码",width:"130"},{prop:"wsm_supplier",label:"供应商名称",width:"180"},{prop:"wsm_name",label:"仓库名称",width:"80"},{prop:"wsm_code",label:"仓库编码",width:"180"},{prop:"usable_stock",label:"可用库存"},{prop:"warn_stock",label:"预警库存"},{prop:"brand",label:"品牌",width:"70"},{prop:"attribute",label:"产品型号"},{prop:"good_desc",label:"工艺说明"},{prop:"cg_saler",label:"采购人"},{prop:"good_type",label:"产品类型"},{prop:"unit",label:"单位",width:"50"},{prop:"color",label:"颜色"},{prop:"material",label:"材质"},{prop:"specs",label:"规格"},{prop:"",label:"操作",fixed:"right",_noset_:!0,_slot_:"operation",width:"50"}],u=r("9d45"),d=r("2f62");s={name:"survey",mixins:[s.a,i.a],components:{addEdit:u.default},computed:Object(n.a)(Object(n.a)({},Object(d.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"stockWarning"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),data:function(){return{stock_code:"",supplier_code:"",isDisabled:!0,statusList:o.a,loading:!0,showModel:!1,isDetail:!1,modelId:0,parmValue:{companyNo:"",goods_sn:"",supplier_code:[],stock_code:[],warn_num_low:"",warn_num_up:"",stock_num_low:"",stock_num_up:"",page:1,size:15},tableData:[],table:{stripe:!0,border:!0,_defaultHeader_:["setcol"]},pageInfo:{size:15,curr:1,total:0},columns:c}},mounted:function(){this.searchList()},methods:{supplierChange:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){var a;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a=e.code,t.parmValue.companyNo=a||"",t.parmValue.supplier_code=[],t.supplier_code="",t.parmValue.stock_code=[],t.stock_code="",t.parmValue.page=1,t.pageInfo.curr=1,r.next=10,t.searchList();case 10:case"end":return r.stop()}}),r)})))()},selectStock:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){var a;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a=e.code,t.parmValue.stock_code=a?[a]:[],t.stock_code=a||"",t.parmValue.stock_code=[],t.stock_code="",t.parmValue.page=1,t.pageInfo.curr=1,r.next=9,t.searchList();case 9:case"end":return r.stop()}}),r)})))()},selectSupplier:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){var a;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a=e.code,t.parmValue.supplier_code=a?[a]:[],t.supplier_code=a||"",t.parmValue.stock_code=[],t.stock_code="",t.parmValue.page=1,t.pageInfo.curr=1,r.next=9,t.searchList();case 9:case"end":return r.stop()}}),r)})))()},numReturned1:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e&&""!=e.lower&&""!=e.online?(t.parmValue.warn_num_low=e.lower,t.parmValue.warn_num_up=e.online):(t.parmValue.warn_num_low="",t.parmValue.warn_num_up=""),""!=t.parmValue.warn_num_low&&""!=t.parmValue.warn_num_up)return r.next=4,t.searchList();r.next=4;break;case 4:case"end":return r.stop()}}),r)})))()},numReturned:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e&&""!=e.lower&&""!=e.online?(t.parmValue.stock_num_low=e.lower,t.parmValue.stock_num_up=e.online):(t.parmValue.stock_num_low="",t.parmValue.stock_num_up=""),""!=t.parmValue.stock_num_low&&""!=t.parmValue.stock_num_up)return r.next=4,t.searchList();r.next=4;break;case 4:case"end":return r.stop()}}),r)})))()},restSearch:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.pageInfo={size:15,curr:1,total:0},e.parmValue={companyNo:"",goods_sn:"",supplier_code:[],stock_code:[],warn_num_low:"",warn_num_up:"",stock_num_low:"",stock_num_up:"",page:1,size:15},t.next=4,e.searchList();case 4:case"end":return t.stop()}}),t)})))()},openModal:function(e,t,r){this.showModel=!0,this.row=e,this.isDetail=t,this.sitem=r},searchList:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r,a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,(r=JSON.parse(JSON.stringify(e.parmValue))).supplierNo=r.supplier_code.toString()||"",r.wsm_code=r.stock_code.toString()||"",delete r.supplier_code,delete r.stock_code,t.next=8,l.a.list(r);case 8:if(!(a=t.sent)||0!==a.code||!a.data){t.next=15;break}a.data.list.forEach((function(e){""!=e.sort_s&&""!=e.sort_t?e.classArr="".concat(e.sort_f,"/").concat(e.sort_s,"/").concat(e.sort_t):e.classArr=e.sort_f})),e.tableData=a.data.list,e.pageInfo.total=Number(a.data.count),t.next=22;break;case 15:if(a&&100<=a.code&&a.code<=104)return t.next=18,e.logout();t.next=20;break;case 18:t.next=22;break;case 20:e.tableData=[],e.pageInfo.total=0;case 22:e.loading=!1;case 23:case"end":return t.stop()}}),t)})))()}}},i=r("2877"),u=Object(i.a)(s,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"survey pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?r("div",[r("ex-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{table:e.table,data:e.tableData,columns:e.columns,page:e.pageInfo,size:e.size},on:{"page-curr-change":e.handlePageChange,"page-size-change":e.handleSizeChange,"screen-reset":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()},"screen-submit":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},scopedSlots:e._u([{key:"table-header",fn:function(t){return[r("div",{staticClass:"min",staticStyle:{width:"100%"}},[r("el-row",{staticStyle:{padding:"0 0 0 80px"}},[r("el-col",{staticStyle:{width:"280px"},attrs:{span:12}},[r("search-work-company",{attrs:{value:e.parmValue.companyNo,names:"",size:e.searchSize,"is-detail":"add"!==e.id,placeholder:"业务公司"},on:{searchChange:e.supplierChange}})],1),r("el-col",{staticStyle:{width:"273px",padding:"0 0 0 10px"},attrs:{span:6}},[r("number-range",{attrs:{lower:e.parmValue.stock_num_low,online:e.parmValue.stock_num_up,title:"库存量",width:"120px",size:e.searchSize},on:{numReturned:function(t){return e.numReturned(t,0)}}})],1),r("el-col",{staticStyle:{width:"273px",padding:"0 0 0 10px"},attrs:{span:6}},[r("number-range",{attrs:{lower:e.parmValue.warn_num_low,online:e.parmValue.warn_num_up,width:"120px",title:"预警量",size:e.searchSize},on:{numReturned:function(t){return e.numReturned1(t,0)}}})],1),r("el-col",{staticStyle:{width:"66px",float:"right"},attrs:{span:3}},[r("el-button",{staticStyle:{float:"right","margin-left":"5px"},attrs:{type:"primary",size:e.searchSize},on:{click:e.searchList}},[e._v(" 刷新 ")])],1)],1),r("el-row",{staticStyle:{padding:"10px 0 0 0"}},[r("el-col",{staticStyle:{width:"360px"},attrs:{span:12}},[r("search-supplier",{attrs:{size:e.searchSize,disabled:""===e.parmValue.companyNo,placeholder:"供应商公司",value:e.parmValue.supplier_code},on:{searchChange:e.selectSupplier}})],1),r("el-col",{staticStyle:{width:"380px","padding-left":"10px"},attrs:{span:12}},[r("search-stock",{attrs:{isDetail:!0,size:e.searchSize,value:e.parmValue.stock_code,disabled:""===e.supplier_code,placeholder:"出库仓库",isRelation:!0,companyCode:e.supplier_code,names:""},on:{searchChange:e.selectStock}})],1),r("el-col",{staticStyle:{width:"66px",float:"right"},attrs:{span:4}},[r("el-button",{staticClass:"fr",attrs:{size:e.searchSize,type:"warning"},on:{click:e.restSearch}},[e._v("重置")])],1)],1)],1)]}},{key:"status",fn:function(t){var a=t.scope;return[r("el-tag",{attrs:{size:e.tablebtnSize,type:"0"==a.row.status?"warning":""},domProps:{textContent:e._s((e.statusOptions.find((function(e){return e.id==a.row.status}))||{}).label||"--")}})]}},{key:"operation",fn:function(t){var a=t.scope;return[e.powers.some((function(e){return"005"==e}))?r("el-tooltip",{attrs:{effect:"dark",content:"修改",placement:"top"}},[r("i",{staticClass:"el-icon-edit tb-icon",on:{click:function(t){return e.openModal(a.row.id,!1,a.row)}}})]):e._e(),e.powers.some((function(e){return"004"==e}))&&"1"===a.row.status?r("el-tooltip",{attrs:{effect:"dark",content:"禁用",placement:"top"}},[r("i",{staticClass:"el-icon-video-pause tb-icon",on:{click:function(t){return e.statusConfirm(a.row.id,a.row.status)}}})]):e._e(),e.powers.some((function(e){return"004"==e}))&&"0"===a.row.status?r("el-tooltip",{attrs:{effect:"dark",content:"启用",placement:"top"}},[r("i",{staticClass:"el-icon-video-play tb-icon",on:{click:function(t){return e.statusConfirm(a.row.id,a.row.status)}}})]):e._e()]}}],null,!1,832597125)}),r("add-edit",{attrs:{id:e.modelId,sitem:e.sitem,"show-model":e.showModel,"is-detail":e.isDetail},on:{refresh:e.searchList,cancel:function(t){e.showModel=!1}}})],1):r("div",[r("no-auth")],1)])}),[],!1,null,null,null);t.default=u.exports},"3bb3":function(e,t,r){},"3bdc":function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=r("ade3"),s=(r("96cf"),r("7db0"),r("d3b7"),r("61f7")),i=r("de14"),o={name:"purchase_check",props:["id","showModelThis","newTime"],mixins:[r("9f53").a],data:function(){var e;return{loading:!1,status:"",showModelThis:this.showModel,resign_name:"",hand_name:"",ruleForm:{return_store:"",return_goods_addr:[],addr_detail:"",addressee:"",addressee_phone:"",express_require:""},rulesThis:this.rules,rules:(e={return_store:[{required:!0,trigger:"change",message:"请选择退回仓库"}],addressee:[{required:!0,message:"请输入收件人",trigger:"blur"}],return_goods_addr:[{type:"array",required:!0,message:"请选择退回地址所在省/市/区",trigger:"change"}],addr_detail:[{required:!0,message:"请输入详细退货地址",trigger:"blur"}]},Object(n.a)(e,"addressee",[{required:!0,message:"请输入收件人",trigger:"blur"}]),Object(n.a)(e,"addressee_phone",[{required:!0,trigger:"blur",validator:function(e,t,r){""===t?r(new Error("手机号不能为空!")):Object(s.g)(t)?r():r(new Error("手机号格式不正确!"))}}]),Object(n.a)(e,"express_require",[{required:!0,trigger:"blur",message:"请输入物流信息"}]),e),return_store_options:[{value:"value1",label:"供应商仓库",return_goods_addr:["110000","110100","110101"],addr_detail:"三河道",addressee:"张三",addressee_phone:"13223223230"},{value:"value2",label:"自建仓/部门仓1"},{value:"value3",label:"自建仓/部门仓2"},{value:"value4",label:"自建仓/部门仓3"}],return_value:""}},computed:{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"purchase_check"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}},mounted:function(){this.initForm()},watch:{id:function(e){e&&this.initForm()},newTime:function(e){e&&this.initForm()}},methods:{closeAdd:function(){this.showModelThis=!1},initForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.loading=!0,"add"===e.id)return e.status="",e.rulesThis=e.rules,t.next=6,e.resetForm();t.next=8;break;case 6:t.next=11;break;case 8:return e.rulesThis=e.rules,t.next=11,e.resetForm();case 11:e.loading=!1;case 12:case"end":return t.stop()}}),t)})))()},resetForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.resign_name="",e.hand_name="",e.status="",t.next=5,e.$nextTick((function(){e.$refs.ruleForm&&(e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),e.ruleForm={return_store:"",return_goods_addr:[],addr_detail:"",addressee:"",addressee_phone:"",express_require:""})}));case 5:case"end":return t.stop()}}),t)})))()},submitForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.ruleForm.validate(function(){var t=Object(a.a)(regeneratorRuntime.mark((function t(r){var a,n,s;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r){t.next=29;break}if(e.loading=!0,a={id:e.id,resign_uid:rUid,hand_uid:hUid},n={},"add"===e.id)return delete a.id,t.next=8,i.a.add(a);t.next=11;break;case 8:n=t.sent,t.next=14;break;case 11:return t.next=13,i.a.update(a);case 13:n=t.sent;case 14:if(e.loading=!1,!n||0!==n.code){t.next=21;break}s="add"===e.id?"添加成功!":"修改成功!",e.$notify.success({title:s,message:""}),e.$emit("refresh",!1),t.next=27;break;case 21:if(n&&100<=n.code&&n.code<=104)return t.next=24,e.logout();t.next=26;break;case 24:t.next=27;break;case 26:e.$message.warning(n.message);case 27:t.next=31;break;case 29:return t.abrupt("return",!1);case 31:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()},handleStore:function(e){var t=this;this.return_store_options.find((function(r){r.value===e&&(t.ruleForm.return_goods_addr=r.return_goods_addr,t.ruleForm.addr_detail=r.addr_detail,t.ruleForm.addressee=r.addressee,t.ruleForm.addressee_phone=r.addressee_phone,t.$refs.ruleForm.validateField("addressee"),t.$refs.ruleForm.validateField("return_goods_addr"),t.$refs.ruleForm.validateField("addr_detail"),t.$refs.ruleForm.validateField("addressee_phone"))})),this.ruleForm.return_store=e},selectAreaAddr_code:function(e){this.ruleForm.return_goods_addr=e,this.$refs.ruleForm.validateField("return_goods_addr")}}};r=r("2877"),r=Object(r.a)(o,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",staticStyle:{width:"100%"},attrs:{loading:e.loading,model:e.ruleForm,"status-icon":"",rules:e.rulesThis,"label-width":"100px"}},[r("el-row",[r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"退回仓库",prop:"return_store"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择退回仓库"},on:{change:e.handleStore},model:{value:e.ruleForm.return_value,callback:function(t){e.$set(e.ruleForm,"return_value",t)},expression:"ruleForm.return_value"}},e._l(e.return_store_options,(function(e){return r("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1)],1)],1),r("el-row",[r("el-row",[r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"退回地址",prop:"return_goods_addr"}},[r("select-area",{attrs:{placeholder:"请选择省/市/区",value:e.ruleForm.return_goods_addr,"is-detail":"add"!==e.id},on:{selectChange:e.selectAreaAddr_code}})],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"详细地址",prop:"addr_detail"}},[r("el-input",{attrs:{placeholder:"详细地址",maxlength:"100"},model:{value:e.ruleForm.addr_detail,callback:function(t){e.$set(e.ruleForm,"addr_detail",t)},expression:"ruleForm.addr_detail"}})],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"收件人",prop:"addressee"}},[r("el-input",{attrs:{placeholder:"收件人",maxlength:"20"},model:{value:e.ruleForm.addressee,callback:function(t){e.$set(e.ruleForm,"addressee",t)},expression:"ruleForm.addressee"}})],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"收件人电话",prop:"addressee_phone"}},[r("el-input",{attrs:{placeholder:"请输入收件人电话",maxlength:"11"},model:{value:e.ruleForm.addressee_phone,callback:function(t){e.$set(e.ruleForm,"addressee_phone",t)},expression:"ruleForm.addressee_phone"}})],1)],1)],1),r("el-col",{staticStyle:{"text-align":"right"},attrs:{span:24}},[r("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("保 存")]),"0"===e.status&&e.powers.some((function(e){return"012"==e}))?r("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.statusConfirm("1","发起审核流程")}}},[e._v("发起审核流程 ")]):e._e(),"1"===e.status&&e.powers.some((function(e){return"014"==e}))?r("el-button",{attrs:{plain:""},on:{click:function(t){return e.statusConfirm("0","取消审核流程")}}},[e._v("取消审核流程")]):e._e(),"0"!==e.status&&"1"!==e.status||!e.powers.some((function(e){return"015"==e}))?e._e():r("el-button",{attrs:{type:"danger",plain:""},on:{click:function(t){return e.statusConfirm("-1","作废该条信息")}}},[e._v("作废该条信息")]),"1"===e.status&&e.powers.some((function(e){return"016"==e}))?r("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.statusConfirm("2","通过审核")}}},[e._v("通过审核")]):e._e()],1)],1)],1)}),[],!1,null,"9f7e1adc",null);t.default=r.exports},"3c26":function(e,t,r){"use strict";r("352a")},"3ddb":function(e,t,r){},"3e6d":function(e,t,r){"use strict";r.d(t,"a",(function(){return a})),r.d(t,"b",(function(){return n}));var a=[{prop:"outCode",label:"发货申请单编号",width:"156"},{prop:"orderCode",label:"订单编号",width:"156"},{prop:"apply_name",label:"申请人",width:"70px"},{prop:"status",label:"状态",_slot_:"status",width:"120px"},{prop:"send_num",label:"出库总数"},{prop:"good_class",label:"商品分类",width:"150"},{prop:"good_code",label:"商品编码",width:"140"},{prop:"good_name",label:"商品名称",width:"150"},{prop:"customer_code",label:"客户编码",width:"150"},{prop:"companyName",label:"客户名称",width:"200"},{prop:"post_fee",label:"物流费用"},{prop:"sendtime",label:"发货时间",width:"140"},{prop:"send_num",label:"发货数量"},{prop:"addtime",label:"添加时间",width:150},{prop:"",label:"操作",fixed:"right",_noset_:!0,_slot_:"operation",width:50}],n=[{prop:"outCode",label:"发货申请单号",span:6},{prop:"status",label:"发货申请单状态",_slot_:"status",span:6},{prop:"orderCode",label:"订单编号",span:6},{prop:"order_type",label:"订单类别",_slot_:"order_type",span:6},{prop:"apply_name",label:"申请人",span:6},{prop:"post_name",label:"快递公司",span:6},{prop:"post_code",label:"物流编号",span:6},{prop:"post_fee",label:"物流费用",span:6},{prop:"sendtime",label:"发货时间",span:6},{prop:"send_num",label:"发货数量",span:6},{prop:"check_num",label:"验收数量",span:6},{prop:"error_num",label:"异常数量",span:6},{prop:"sale_price",label:"商品单价",_slot_:"sale_price",span:6},{prop:"total_price",label:"发货申请单总价",_slot_:"total_price",span:6},{prop:"addtime",label:"发货方式",span:6},{prop:"addtime",label:"创建时间",span:6},{prop:"contactor",label:"收货联系人",span:6},{prop:"mobile",label:"收货联系人电话",span:6},{prop:"addr",label:"收货地址",span:12}]},"3ec4":function(e,t,r){"use strict";r.d(t,"b",(function(){return a})),r.d(t,"a",(function(){return n}));var a=[{prop:"infoNo",label:"咨询单编号",span:6},{prop:"status",label:"状态",_slot_:"status",span:5},{prop:"addtime",label:"创建时间",span:6},{prop:"departinfo",label:"创建人",_slot_:"departinfo",span:7}],n=[{prop:"in_company",label:"业务企业"},{prop:"in_khname",label:"客户企业"},{prop:"good_name",label:"商品名称",_slot_:"good_name"},{prop:"specinfo",label:"规格",_slot_:"specinfo"},{prop:"can_name",label:"PO"},{prop:"can_name",label:"业管"},{prop:"can_name",label:"备注"},{prop:"can_name",label:"工期"},{prop:"can_name",label:"物流"},{prop:"can_name",label:"发货地"},{prop:"can_name",label:"采购人员"},{prop:"can_name",label:"分类"},{prop:"is_noble",label:"贵金属信息",_slot_:"is_noble"},{prop:"in_platform_name",label:"所属平台",span:8},{prop:"in_arrival_time",label:"要求到货日期",span:8},{prop:"brand_name",label:"品牌",span:8},{prop:"tax",label:"税点",append:"%",span:4},{prop:"weight",label:"商品总克重",append:"g",span:8},{prop:"sale_price",label:"销售单价",append:"元",span:6},{prop:"in_num",label:"咨询数量",_slot_:"in_num",span:6}]},"3f3c":function(e,t,r){},"3fca":function(e,t,r){"use strict";var a=r("1b69"),n="admin/";t.a={add:function(e,t){return Object(a.a)(n+"allotcreate",e,"post",t)},delete:function(e,t){return Object(a.a)(n+"allotdelect",e,"post",t)},detail:function(e,t){return Object(a.a)(n+"allotinfo",e,"post",t)},update:function(e,t){return Object(a.a)(n+"allotedit",e,"post",t)},status:function(e,t){return Object(a.a)(n+"allotstatus",e,"post",t)},allotgetont:function(e,t){return Object(a.a)(n+"allotgetont",e,"post",t)},resultlist:function(e,t){return Object(a.a)(n+"resultlist",e,"post",t)},allotgetin:function(e,t){return Object(a.a)(n+"allotgetin",e,"post",t)},allotvesio:function(e,t){return Object(a.a)(n+"allotvesio",e,"post",t)}}},4022:function(e,t,r){"use strict";var a=r("1b69"),n="admin/";t.a={add:function(e,t){return Object(a.a)(n+"groupadd",e,"post",t)},delete:function(e,t){return Object(a.a)(n+"delete",e,"post",t)},list:function(e,t){return Object(a.a)(n+"grouplist",e,"post",t)},detail:function(e,t){return Object(a.a)(n+"groupinfo",e,"post",t)},update:function(e,t){return Object(a.a)(n+"groupsave",e,"post",t)},status:function(e,t){return Object(a.a)(n+"groupstatus",e,"post",t)},accountall:function(e,t){return Object(a.a)(n+"userall",e,"post",t)}}},4029:function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=r("ade3"),s=r("5530"),i=(r("96cf"),r("7db0"),r("d3b7"),r("a9e3"),r("f5ed")),o=r("b5d3"),l=r("d2f9"),c=r("2f62"),u=r("9f53");l={name:"handover",components:{addEdit:l.default},mixins:[i.a,u.a],computed:Object(s.a)(Object(s.a)({},Object(c.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"handover"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),data:function(){var e={resign_uid:[],hand_uid:[],status_options:[{value:"0",label:"待发起审核流程"},{value:"1",label:"待离职交接审核"},{value:"2",label:"审核不通过"},{value:"3",label:"待系统更新数据"},{value:"4",label:"离职交接已成功"}],loading:!0,showModel:!1,isDetail:!1,modelId:0,parmValue:{start:"",end:"",status:"",page:1,size:15,resign_uid:"",hand_uid:""},tableData:[],passwordModel:!1,passwordModelId:0,isPasswordDetail:!1};return Object(n.a)(e,"tableData",[]),Object(n.a)(e,"table",{stripe:!0,border:!0,_defaultHeader_:["setcol"]}),Object(n.a)(e,"pageInfo",{size:15,curr:1,total:0}),Object(n.a)(e,"columns",[{prop:"resign_name",label:"离职人"},{prop:"hand_name",label:"接收人"},{prop:"status",label:"状态",_slot_:"status"},{prop:"expire_date",label:"生效时间",sortable:!0},{prop:"addtime",label:"创建时间",sortable:!0},{prop:"",label:"操作",fixed:"right",width:50,_noset_:!0,_slot_:"operation"}]),e},mounted:function(){this.searchList()},methods:{restSearch:function(){this.parmValue={start:"",end:"",status:"",resign_uid:"",hand_uid:"",page:1,size:15},this.pageInfo={size:15,curr:1,total:0},this.searchList()},openModal:function(e,t){this.showModel=!0,this.modelId=e,this.isDetail=t},searchList:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(""!==e.parmValue.start&&""===e.parmValue.end||""===e.parmValue.start&&""!==e.parmValue.end)return e.$message.warning("时间区间不完整!"),t.abrupt("return");t.next=3;break;case 3:return e.loading=!0,t.next=6,o.a.list(e.parmValue);case 6:if(!(r=t.sent)||0!==r.code||!r.data){t.next=12;break}e.tableData=r.data.list,e.pageInfo.total=Number(r.data.count),t.next=19;break;case 12:if(r&&100<=r.code&&r.code<=104)return t.next=15,e.logout();t.next=17;break;case 15:t.next=19;break;case 17:e.tableData=[],e.pageInfo.total=0;case 19:e.loading=!1;case 20:case"end":return t.stop()}}),t)})))()},handleResignName:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return t.parmValue.resign_uid=e&&e.id?e.id:"",t.resign_uid=e&&e.id?[e.id]:[],t.parmValue.page=1,r.next=5,t.searchList();case 5:case"end":return r.stop()}}),r)})))()},handleHandoverName:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return t.parmValue.hand_uid=e&&e.id?e.id:"",t.hand_uid=e&&e.id?[e.id]:[],t.parmValue.page=1,r.next=5,t.searchList();case 5:case"end":return r.stop()}}),r)})))()},handleTime:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(""!==e.startTime?t.parmValue.start=e.startTime:t.parmValue.start="",""!==e.endTime?t.parmValue.end=e.endTime:t.parmValue.end="",""!==t.parmValue.start&&""!==t.parmValue.end)return t.parmValue.page=1,r.next=6,t.searchList();r.next=6;break;case 6:case"end":return r.stop()}}),r)})))()}}},i=r("2877"),u=Object(i.a)(l,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"account pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?r("div",[r("ex-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{table:e.table,data:e.tableData,columns:e.columns,page:e.pageInfo,size:e.size},on:{"page-curr-change":e.handlePageChange,"page-size-change":e.handleSizeChange,"screen-reset":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()},"screen-submit":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},scopedSlots:e._u([{key:"table-header",fn:function(t){return[r("div",{staticStyle:{width:"100%"}},[r("el-row",{staticStyle:{padding:"0 0 0 80px"}},[r("el-col",{attrs:{span:24}},[r("el-col",{staticStyle:{width:"210px"},attrs:{span:6}},[r("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"审核状态",size:e.searchSize},on:{change:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.parmValue.status,callback:function(t){e.$set(e.parmValue,"status",t)},expression:"parmValue.status"}},e._l(e.status_options,(function(e){return r("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),r("el-col",{staticStyle:{width:"250px",padding:"0 0 0 10px"},attrs:{span:4}},[r("search-account",{attrs:{value:e.resign_uid,disabled:!1,"is-detail":!1,size:e.searchSize,placeholder:"离职人姓名"},on:{searchChange:e.handleResignName}})],1),r("el-col",{staticStyle:{width:"66px",float:"right"},attrs:{span:4}},[r("el-button",{staticStyle:{float:"right"},attrs:{size:e.searchSize,type:"primary"},on:{click:e.searchList}},[e._v(" 刷新 ")])],1),r("el-col",{staticClass:"fr",staticStyle:{width:"66px",padding:"0 0 0 10px"},attrs:{span:4}},[r("el-button",{staticClass:"fr",attrs:{type:"warning",size:e.searchSize},on:{click:e.restSearch}},[e._v(" 重置 ")])],1)],1)],1),r("el-row",{staticStyle:{padding:"10px 0 0 0"}},[r("el-col",{attrs:{span:24}},[r("el-col",{staticStyle:{width:"291px"},attrs:{span:5}},[r("period-date-picker",{attrs:{start:e.parmValue.start,end:e.parmValue.end,width:"134px",size:e.searchSize},on:{timeReturned:e.handleTime}})],1),r("el-col",{staticStyle:{width:"250px",padding:"0 0 0 10px"},attrs:{span:4}},[r("search-account",{attrs:{value:e.hand_uid,size:e.searchSize,disabled:!1,"is-detail":!1,placeholder:"接受人姓名"},on:{searchChange:e.handleHandoverName}})],1),e.powers.some((function(e){return"003"==e}))?r("el-col",{staticStyle:{width:"66px",float:"right"},attrs:{span:3}},[r("el-button",{staticStyle:{float:"right"},attrs:{size:e.searchSize,type:"success"},on:{click:function(t){return e.openModal("add",!1)}}},[e._v(" 新建 ")])],1):e._e(),r("el-col",{staticStyle:{width:"54px",float:"right"},attrs:{span:4}},[r("el-button",{staticClass:"fr",attrs:{size:e.searchSize,type:"primary",icon:"el-icon-search"},on:{click:e.searchList}})],1)],1)],1)],1)]}},{key:"status",fn:function(t){var a=t.scope;return[r("el-tag",{attrs:{size:e.tablebtnSize,type:"0"==a.row.status?"warning":"2"==a.row.status?"success":""},domProps:{textContent:e._s((e.status_options.find((function(e){return e.value==a.row.status}))||{}).label||"--")}})]}},{key:"operation",fn:function(t){var a=t.scope;return[e.powers.some((function(e){return"007"==e}))?r("el-tooltip",{attrs:{effect:"dark",content:"详情",placement:"top"}},[r("i",{staticClass:"el-icon-view tb-icon",on:{click:function(t){return e.routeGoto("handoverDetail",{id:a.row.id})}}})]):e._e()]}}],null,!1,824263235)}),r("add-edit",{attrs:{id:e.modelId,"show-model":e.showModel,"is-detail":e.isDetail},on:{refresh:e.searchList,cancel:function(t){e.showModel=!1}}})],1):r("div",[r("no-auth")],1)])}),[],!1,null,"a5b444d2",null);t.default=u.exports},"406e":function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=(r("96cf"),r("7db0"),r("d3b7"),r("b0c0"),r("9f53")),s=r("1120"),i=r("3915");n={name:"stockApply",props:["id","sitem","newTime","type"],mixins:[n.a],components:{searchGoodModal:i.a},computed:{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"stockApplyDetail"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}},watch:{newTime:function(e){e&&this.initForm()}},data:function(){return{pickerOptions:{disabledDate:function(e){return e.getTime()<Date.now()}},status:"",cat_id:"",routerId:"",stockCode:"",showGoodsModel:"",loading:!1,ruleForm:{id:"",good_code:"",good_name:"",goods_num:"",file_url:"",file_url_name:"",lasttime:"",remark:""},rulesThis:this.rules,rules:{good_name:[{required:!0,message:"商品名称不能为空!",trigger:"blur"}],goods_num:[{required:!0,validator:function(e,t,r){e=e.required,e&&""===t?r(new Error("不能为空!")):!e||"0"!==t&&"0."!==t&&"0.0"!==t&&"0.00"!==t&&"0.000"!==t?r():r(new Error("不能为零!"))},trigger:"blur"}],lasttime:[{required:!0,message:"请输入最晚入库时间!",trigger:"change"}],file_url:[{required:!0,message:"请选择附件!",trigger:"change"}],remark:[{required:!0,message:"备注不能为空!",trigger:"blur"}]}}},mounted:function(){this.initForm()},methods:{initForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,e.status=void 0!==e.sitem?e.sitem.status:"",e.status="",e.rulesThis=e.rules,t.next=6,e.resetForm();case 6:e.loading=!1;case 7:case"end":return t.stop()}}),t)})))()},addGoodsRes:function(e){e=e[0];var t=e.spuCode;e=e.good_name;this.ruleForm.good_name=e,this.ruleForm.good_code=t,this.$refs.ruleForm.validateField("good_name")},number_change:function(e,t){this.ruleForm[t]=e+""||"0",this.$refs.ruleForm.validateField(t)},closeModel:function(){this.$emit("closeModel")},close_url:function(){this.ruleForm.file_url_name="",this.ruleForm.file_url="",this.$refs.ruleForm.validateField("file_url")},resetForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$nextTick((function(){var t,r,a,n,s,i,o,l,c;e.$refs.ruleForm&&(e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),e.sitem&&(t=(c=e.sitem).id,r=c.good_code,a=c.good_name,n=c.good_num,s=c.lasttime,i=c.file_url,o=c.file_name,l=c.status,c=c.remark,e.ruleForm={id:t||"",good_code:r||"",good_name:a||"",goods_num:n||"0",lasttime:s||"",file_url:i||"",file_url_name:o||"",status:l||"",remark:c||""}))}));case 2:case"end":return t.stop()}}),t)})))()},submitForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.ruleForm.validate(function(){var t=Object(a.a)(regeneratorRuntime.mark((function t(r){var a,n,i,o,l,c,u;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r){t.next=30;break}if(e.loading=!0,o=e.ruleForm,l=o.id,c=o.good_code,u=o.good_type_code,a=o.goods_num,n=o.file_url,i=o.lasttime,o=o.remark,l={id:l,good_code:c,good_type_code:u,good_num:a||"",file_url:n||"",lastime:i||"",remark:o||""},c={},"add"===e.id)return delete l.id,t.next=9,s.a.add(l);t.next=12;break;case 9:c=t.sent,t.next=15;break;case 12:return t.next=14,s.a.update(l);case 14:c=t.sent;case 15:if(!c||0!==c.code){t.next=21;break}u="add"===e.id?"添加成功":"修改成功",e.$notify.success({title:u,message:""}),e.$emit("refresh"),t.next=27;break;case 21:if(c&&100<=c.code&&c.code<=104)return t.next=24,e.logout();t.next=26;break;case 24:t.next=27;break;case 26:e.$message.warning(c.message);case 27:e.loading=!1,t.next=32;break;case 30:return t.abrupt("return",!1);case 32:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()},UploadErrorEvent:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:"break"!==e&&(t.$message.error("附件上传失败!"),t.$refs.ruleForm.validateField("file_url"));case 1:case"end":return r.stop()}}),r)})))()},UploadSuccessEvent:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){var a,n;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(a=e.url,n=e.name,"noToken"===a)return r.next=4,t.logout();r.next=6;break;case 4:r.next=10;break;case 6:t.ruleForm.file_url_name=n,t.ruleForm.file_url=a,t.$message.success("附件上传成功!"),t.$refs.ruleForm.validateField("file_url");case 10:case"end":return r.stop()}}),r)})))()},beforeAvatarUpload:function(e){var t=!1,r=!1;return e&&("application/pdf"===e.type&&(t=!0),r=e.size/1024/1024<1,t||this.$message.error("附件格式不正确!"),r||this.$message.error("附件大小不能超过 1MB!")),t&&r}}},r("580f"),i=r("2877"),r=Object(i.a)(n,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("div",{staticClass:"stockApply-com"},[t("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,rules:e.rulesThis,"status-icon":"",size:"mini","label-width":"90px"}},[t("el-row",[t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"商品名称",prop:"good_name"}},[t("el-input",{attrs:{disabled:!("add"===e.id||"0"===e.status&&e.powers.some((function(e){return"005"==e}))),readonly:"true",maxlength:"100",placeholder:"商品名称"},on:{focus:function(t){e.showGoodsModel=!0}},model:{value:e.ruleForm.good_name,callback:function(t){e.$set(e.ruleForm,"good_name",t)},expression:"ruleForm.good_name"}})],1)],1),t("el-col",{attrs:{span:5}},[t("el-form-item",{attrs:{label:"采购数量",prop:"goods_num"}},[t("digital-input",{attrs:{values:e.ruleForm.goods_num,name:"ruleForm.goods_num",placeholder:"采购数量",min:0,disabled:!("add"===e.id||"0"===e.status&&e.powers.some((function(e){return"005"==e}))),max:1e11,position:"right",precision:0,size:"mini",controls:!1,append:""},on:{reschange:function(t){return e.number_change(t,"goods_num")}}})],1)],1),t("el-col",{attrs:{span:7}},[t("el-form-item",{attrs:{label:"最晚入库时间",prop:"lasttime","label-width":"120px"}},[t("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"date","value-format":"yyyy-MM-dd",placeholder:"最晚入库时间","picker-options":e.pickerOptions,disabled:!("add"===e.id||"0"===e.status&&e.powers.some((function(e){return"005"==e})))},model:{value:e.ruleForm.lasttime,callback:function(t){e.$set(e.ruleForm,"lasttime",t)},expression:"ruleForm.lasttime"}})],1)],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"附件",prop:"file_url"}},[t("div",{staticClass:"file_url",class:{disabled:!("add"===e.id||"0"===e.status&&e.powers.some((function(e){return"005"==e})))}},[e.ruleForm.file_url?t("p",[t("el-link",{attrs:{underline:!1,href:e.ruleForm.file_url,target:"_blank"}},[e._v(e._s(e.ruleForm.file_url_name))]),"add"===e.id||"0"===e.status&&e.powers.some((function(e){return"005"==e}))?t("el-link",{staticClass:"fr",attrs:{type:"info",underline:!1}},[t("i",{staticClass:"el-icon-circle-close",attrs:{size:"mini"},on:{click:e.close_url}})]):e._e()],1):t("p",{staticClass:"no"},[e._v("附件")]),""===e.ruleForm.file_url?t("div",["add"===e.id||"0"===e.status&&e.powers.some((function(e){return"005"==e}))?t("file-upload-pdf",{staticClass:"Upload",attrs:{accept:".pdf",multiple:!1,size:"mini",uploadcondition:e.beforeAvatarUpload},on:{UploadErrorEvent:e.UploadErrorEvent,UploadSuccessEvent:e.UploadSuccessEvent}}):e._e()],1):e._e()])])],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"备注",prop:"remark"}},[t("el-input",{attrs:{type:"textarea",rows:2,placeholder:"备注",maxlength:"250","show-word-limit":"",disabled:!("add"===e.id||"0"===e.status&&e.powers.some((function(e){return"005"==e})))},model:{value:e.ruleForm.remark,callback:function(t){e.$set(e.ruleForm,"remark",t)},expression:"ruleForm.remark"}})],1)],1),t("el-col",{staticStyle:{padding:"0 0 15px 0","text-align":"right"},attrs:{span:12}},["add"===e.id||"0"==e.status&&e.powers.some((function(e){return"005"==e}))?t("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.submitForm}},[e._v("保 存 ")]):e._e()],1)],1)],1),t("search-good-modal",{attrs:{once:!0,cat_id:e.cat_id,is_stock:"1","show-model":e.showGoodsModel,isonline:"1"},on:{cancel:function(t){e.showGoodsModel=!1},resultList:e.addGoodsRes}})],1)}),[],!1,null,"2c50142e",null);t.default=r.exports},"40ac":function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=r("ade3"),s=r("5530"),i=(r("96cf"),r("7db0"),r("d3b7"),r("a9e3"),r("f5ed")),o=r("9f53"),l=r("482b"),c=r("9ed9"),u=r("2f62");i={name:"workCompany",mixins:[i.a,o.a],components:{addEdit:c.default},computed:Object(s.a)(Object(s.a)({},Object(u.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"workCompany"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),data:function(){var e={select:"1",input:"",supplierNo:[],stock_sn:"",stock_name:"",link:"",loading:!0,showModel:!1,isDetail:!1,modelId:0,parmValue:{supplierNo:"",wsm_code:"",start:"",end:"",mobile:"",contactor:""},tableData:[],passwordModel:!1,passwordModelId:0,isPasswordDetail:!1};return Object(n.a)(e,"tableData",[]),Object(n.a)(e,"table",{stripe:!0,border:!0,_defaultHeader_:["setcol"]}),Object(n.a)(e,"pageInfo",{size:15,curr:1,total:0}),Object(n.a)(e,"columns",[{prop:"companyNo",label:"编号",width:"170px"},{prop:"company",label:"公司名称"},{prop:"status",label:"状态",width:"100px",_slot_:"status"},{prop:"creater",label:"负责人",width:"100px"},{prop:"addtime",label:"创建时间",width:"145px"},{prop:"",label:"操作",width:"140px",fixed:"right",_noset_:!0,_slot_:"operation"}]),Object(n.a)(e,"statusOptions",[{id:"0",label:"禁用"},{id:"1",label:"启用"}]),e},mounted:function(){this.searchList()},methods:{handleTime:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t.parmValue.start=e.startTime||"",t.parmValue.end=e.endTime||"",""!==t.parmValue.start&&""!==t.parmValue.end||""===t.parmValue.start&&""===t.parmValue.end)return r.next=5,t.searchList();r.next=5;break;case 5:case"end":return r.stop()}}),r)})))()},restSearch:function(){this.pageInfo={size:15,curr:1,total:0},this.supplierNo=[],this.input="",this.select="1",this.parmValue={supplierNo:"",wsm_code:"",start:"",end:"",mobile:"",contactor:"",page:1,size:15},this.searchList()},openModal:function(e,t){var r=e.status;"005"===t&&"1"===r?this.$message.warning("禁用后,才可以修改!"):(this.showModel=!0,this.modelId=e.id,this.isDetail=t)},searchList:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(""!==e.parmValue.start&&""===e.parmValue.end||""==e.parmValue.start&&""!=e.parmValue.end)return e.$message.warning("开始时间和结束时间不能为空"),t.abrupt("return");t.next=3;break;case 3:return e.loading=!0,t.next=6,l.a.list(e.parmValue);case 6:if(!(r=t.sent)||0!==r.code||!r.data){t.next=12;break}e.tableData=r.data.list,e.pageInfo.total=Number(r.data.count),t.next=19;break;case 12:if(r&&100<=r.code&&r.code<=104)return t.next=15,e.logout();t.next=17;break;case 15:t.next=19;break;case 17:e.tableData=[],e.pageInfo.total=0;case 19:e.loading=!1;case 20:case"end":return t.stop()}}),t)})))()},statusConfirm:function(e,t){var r=this;return Object(a.a)(regeneratorRuntime.mark((function n(){var s;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return s="1"===t?"禁用":"启用",n.next=3,r.$confirm("确定要改为"+s+"?",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(a.a)(regeneratorRuntime.mark((function a(){var n,s;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return r.loading=!0,n={id:e,status:"1"===t?"0":"1"},a.next=4,l.a.status(n);case 4:if((s=a.sent)&&0===s.code)return r.loading=!1,r.$notify.success({title:"状态修改成功!",message:""}),a.next=10,r.searchList();a.next=12;break;case 10:a.next=18;break;case 12:if(s&&100<=s.code&&s.code<=104)return a.next=15,r.logout();a.next=17;break;case 15:a.next=18;break;case 17:r.$message.warning(s.message);case 18:case"end":return a.stop()}}),a)})))).catch((function(){}));case 3:case"end":return n.stop()}}),n)})))()},deleteById:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t.$confirm("确定要删除?",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(a.a)(regeneratorRuntime.mark((function r(){var a,n;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a={id:e},r.next=3,l.a.delete(a);case 3:if(!(n=r.sent)||0!==n.code){r.next=9;break}t.$notify.success({title:"删除成功",message:""}),t.searchList(),r.next=15;break;case 9:if(n&&100<=n.code&&n.code<=104)return r.next=12,t.logout();r.next=14;break;case 12:r.next=15;break;case 14:t.$message.warning(n.message);case 15:case"end":return r.stop()}}),r)})))).catch((function(){}));case 2:case"end":return r.stop()}}),r)})))()}}},o=r("2877"),c=Object(o.a)(i,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"workCompany pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?r("div",[r("ex-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{table:e.table,data:e.tableData,columns:e.columns,page:e.pageInfo,size:e.size},on:{"page-curr-change":e.handlePageChange,"page-size-change":e.handleSizeChange,"screen-reset":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()},"screen-submit":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},scopedSlots:e._u([{key:"table-header",fn:function(t){return[r("div",{staticStyle:{width:"100%"}},[r("el-row",{staticStyle:{padding:"0 0 10px 80px"}},[r("el-col",{staticStyle:{width:"303px"},attrs:{span:6}},[r("period-date-picker",{attrs:{type:1,width:"135px",size:e.searchSize,start:e.parmValue.start,end:e.parmValue.end},on:{timeReturned:e.handleTime}})],1),r("el-col",{staticStyle:{width:"160px"},attrs:{span:4}},[r("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"",clearable:"",size:e.searchSize,placeholder:"状态"},on:{change:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.parmValue.status,callback:function(t){e.$set(e.parmValue,"status",t)},expression:"parmValue.status"}},e._l(e.statusOptions,(function(e){return r("el-option",{key:"status"+e.id,attrs:{label:e.label,value:e.id}})})),1)],1),r("el-col",{staticClass:"fr",staticStyle:{width:"66px",padding:"0 0 0 10px"},attrs:{span:3}},[r("el-button",{attrs:{type:"primary",size:e.searchSize},on:{click:e.searchList}},[e._v(" 刷新 ")])],1),r("el-col",{staticClass:"fr",staticStyle:{width:"66px",padding:"0 0 0 10px"},attrs:{span:3}},[r("el-button",{attrs:{type:"warning",size:e.searchSize},on:{click:e.restSearch}},[e._v(" 重置 ")])],1)],1),r("el-row",[r("el-col",{staticStyle:{width:"373px"},attrs:{span:4}},[r("el-input",{attrs:{size:e.searchSize,maxlength:40,placeholder:"公司名称"},on:{blur:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.parmValue.company,callback:function(t){e.$set(e.parmValue,"company",t)},expression:"parmValue.company"}})],1),r("el-col",{staticStyle:{width:"170px",padding:"0 0 0 10px"},attrs:{span:4}},[r("el-input",{attrs:{size:e.searchSize,maxlength:40,placeholder:"创建人"},on:{change:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.parmValue.creater,callback:function(t){e.$set(e.parmValue,"creater",t)},expression:"parmValue.creater"}})],1),e.powers.some((function(e){return"003"==e}))?r("el-col",{staticClass:"fr",staticStyle:{width:"66px",padding:"0 0 0 10px"},attrs:{span:3}},[r("el-button",{staticStyle:{float:"right"},attrs:{size:e.searchSize,type:"success"},on:{click:function(t){return e.openModal({},"003")}}},[e._v(" 添加 ")])],1):e._e()],1)],1)]}},{key:"status",fn:function(t){var a=t.scope;return[r("el-tag",{attrs:{size:e.tablebtnSize,type:"0"==a.row.status?"warning":""},domProps:{textContent:e._s((e.statusOptions.find((function(e){return e.id==a.row.status}))||{}).label||"--")}})]}},{key:"operation",fn:function(t){var a=t.scope;return[e.powers.some((function(e){return"007"==e}))?r("el-tooltip",{attrs:{effect:"dark",content:"详情",placement:"top"}},[r("i",{staticClass:"el-icon-view tb-icon",on:{click:function(t){return e.openModal(a.row,"007")}}})]):e._e(),e.powers.some((function(e){return"005"==e}))?r("el-tooltip",{attrs:{effect:"dark",content:"修改",placement:"top"}},[r("i",{staticClass:"el-icon-edit tb-icon",on:{click:function(t){return e.openModal(a.row,"005")}}})]):e._e(),e.powers.some((function(e){return"004"==e}))&&"1"===a.row.status?r("el-tooltip",{attrs:{effect:"dark",content:"禁用",placement:"top"}},[r("i",{staticClass:"el-icon-video-pause tb-icon",on:{click:function(t){return e.statusConfirm(a.row.id,a.row.status)}}})]):e._e(),e.powers.some((function(e){return"004"==e}))&&"0"===a.row.status?r("el-tooltip",{attrs:{effect:"dark",content:"启用",placement:"top"}},[r("i",{staticClass:"el-icon-video-play tb-icon",on:{click:function(t){return e.statusConfirm(a.row.id,a.row.status)}}})]):e._e(),e.powers.some((function(e){return"006"==e}))?r("el-tooltip",{attrs:{effect:"dark",content:"删除",placement:"top"}},[r("i",{staticClass:"el-icon-delete tb-icon",on:{click:function(t){return e.deleteById(a.row.id)}}})]):e._e()]}}],null,!1,2898358859)}),r("add-edit",{attrs:{id:e.modelId,"show-model":e.showModel,"is-detail":e.isDetail},on:{refresh:e.searchList,cancel:function(t){e.showModel=!1}}})],1):r("div",[r("no-auth")],1)])}),[],!1,null,"50ca9cbc",null);t.default=c.exports},"40dc":function(e,t,r){"use strict";r("1193")},"40e8":function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=(r("e9c4"),r("96cf"),r("997b"));r("da35"),n={name:"exam-form",props:["size","statusList","disabled","isMust","labelWidth","id","code"],components:{costFormAddEdit:n.default},data:function(){return{loading:!1,showModelThis:this.showModel,pickerOptions:{disabledDate:function(e){return e.getTime()<Date.now()-864e5}},ruleForm:{plat_code:""},rulesThis:this.rules,rules:{plat_code:[{required:!0,message:"平台商品编码不能为空",trigger:"blur"}]}}},newTime:function(e){e&&this.initForm()},mounted:function(){this.initForm()},methods:{initForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,e.rulesThis=e.rules,t.next=4,e.resetForm();case 4:e.loading=!1;case 5:case"end":return t.stop()}}),t)})))()},resetForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$nextTick((function(){e.$refs.ruleForm&&(e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),e.ruleForm={plat_code:e.code||""})}));case 2:case"end":return t.stop()}}),t)})))()},submitForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.ruleForm.validate(function(){var t=Object(a.a)(regeneratorRuntime.mark((function t(r){var a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r){t.next=5;break}a=JSON.parse(JSON.stringify(e.ruleForm)),e.$emit("resSuccess",a),t.next=7;break;case 5:return t.abrupt("return",!1);case 7:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()}}},r("6a22"),r=r("2877"),r=Object(r.a)(n,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"ruleForm",staticClass:"demo-ruleForm-goodsOnline",attrs:{model:e.ruleForm,"status-icon":"",rules:e.rulesThis,"label-width":e.labelWidth||"110px",size:"mini"}},[t("el-row",[t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"平台商品编码",prop:"plat_code"}},[t("el-input",{attrs:{placeholder:"平台商品编码",maxlength:"100"},model:{value:e.ruleForm.plat_code,callback:function(t){e.$set(e.ruleForm,"plat_code",t)},expression:"ruleForm.plat_code"}})],1)],1),t("el-col",{staticClass:"tr",attrs:{span:12}},[t("el-button",{attrs:{size:"mini",type:"primary"},on:{click:e.submitForm}},[e._v("保 存 ")])],1)],1)],1)}),[],!1,null,"f1b5ffa2",null);t.default=r.exports},4129:function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=(r("96cf"),{name:"brand",props:["showModel","index","sitem"],mixins:[r("9f53").a],data:function(){function e(e,t,r){e.required&&""===t?r(new Error("不能为空!")):r()}return{loading:!1,title:"",showModelThis:this.showModel,ruleForm:{},rulesThis:this.rules,rules:{min_num:[{required:!0,validator:function(e,t,r){""===t?r(new Error("起订量不能为空!")):"0"===t?r(new Error("起订量不能为零!")):r()},trigger:"blur"}],nake_price:[{required:!0,validator:e,trigger:"blur"}],cert_fee:[{required:!0,validator:e,trigger:"blur"}],package_fee:[{required:!0,validator:e,trigger:"blur"}],cost_fee:[{required:!0,validator:e,trigger:"blur"}],mark_fee:[{required:!0,validator:e,trigger:"blur"}],nake_fee:[{required:!0,validator:e,trigger:"blur"}],delivery_fee:[{required:!0,validator:e,trigger:"blur"}]}}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis:function(e){e||this.$emit("cancel")}},methods:{initForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,e.index+""=="-1"?e.title="添加成本阶梯":e.title="修改成本阶梯",e.rulesThis=e.rules,t.next=6,e.resetForm();case 6:e.loading=!1;case 7:case"end":return t.stop()}}),t)})))()},resetForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$nextTick(Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.$refs.ruleForm)return e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),t.next=5,e.resetFormData();t.next=5;break;case 5:case"end":return t.stop()}}),t)}))));case 2:case"end":return t.stop()}}),t)})))()},resetFormData:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r,a,n,s,i,o,l,c,u;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.index+""=="-1"?e.ruleForm={id:"",index:"-1",min_num:"0",nake_fee:"0",cost_fee:"0",delivery_fee:"0",cert_fee:"0",mark_fee:"0",package_fee:"0",other_fee:"0"}:(u=e.sitem,r=u.id,a=u.min_num,n=u.nake_fee,s=u.cost_fee,i=u.delivery_fee,o=u.cert_fee,l=u.mark_fee,c=u.package_fee,u=u.other_fee,e.ruleForm={id:r||"",index:e.index,min_num:a||"0",cost_fee:s||"0",nake_fee:n||"0",delivery_fee:i||"0",cert_fee:o||"0",mark_fee:l||"0",package_fee:c||"0",other_fee:u||"0"});case 1:case"end":return t.stop()}}),t)})))()},number_change:function(e,t){this.ruleForm[t]=e+""||"0",this.$refs.ruleForm.validateField(t)},submitForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.ruleForm.validate(function(){var t=Object(a.a)(regeneratorRuntime.mark((function t(r){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r){t.next=5;break}e.showModelThis=!1,e.$emit("refresh",e.ruleForm),t.next=7;break;case 5:return t.abrupt("return",!1);case 7:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()}}});r("03ec"),r=r("2877"),r=Object(r.a)(n,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:e.title,center:!0,align:"left",top:"18vh",width:"700px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)"},on:{"update:visible":function(t){e.showModelThis=t},close:function(t){e.showModelThis=!1}}},[t("el-card",{staticStyle:{margin:"-20px 0 0 0"}},[t("el-row",{attrs:{gutter:10}},[t("el-col",{attrs:{span:24}},[t("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",size:"small",rules:e.rulesThis,"label-width":"80px"}},[t("el-row",[t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"起订量",prop:"min_num"}},[t("digital-input",{attrs:{values:e.ruleForm.min_num,placeholder:"起订量",min:0,disabled:!1,max:1e11,position:"right",precision:0,size:"mini",controls:!1,append:""},on:{reschange:function(t){return e.number_change(t,"min_num")}}})],1)],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"成本单价",prop:"nake_fee"}},[t("digital-input",{attrs:{values:e.ruleForm.nake_fee,placeholder:"成本单价",min:0,disabled:!1,max:1e11,position:"right",precision:2,size:"mini",controls:!1,append:"元"},on:{reschange:function(t){return e.number_change(t,"nake_fee")}}})],1)],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"工艺费",prop:"cost_fee"}},[t("digital-input",{attrs:{values:e.ruleForm.cost_fee,placeholder:"工艺费",min:0,disabled:!1,max:1e11,position:"right",precision:2,size:"mini",controls:!1,append:"元"},on:{reschange:function(t){return e.number_change(t,"cost_fee")}}})],1)],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"物流费",prop:"delivery_fee"}},[t("digital-input",{attrs:{values:e.ruleForm.delivery_fee,placeholder:"物流费",min:0,disabled:!1,max:1e11,position:"right",precision:2,size:"mini",controls:!1,append:"元"},on:{reschange:function(t){return e.number_change(t,"delivery_fee")}}})],1)],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"证书费",prop:"cert_fee"}},[t("digital-input",{attrs:{values:e.ruleForm.cert_fee,placeholder:"证书费",min:0,disabled:!1,max:1e11,position:"right",precision:2,size:"mini",controls:!1,append:"元"},on:{reschange:function(t){return e.number_change(t,"cert_fee")}}})],1)],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"加标费",prop:"mark_fee"}},[t("digital-input",{attrs:{values:e.ruleForm.mark_fee,placeholder:"加标费",min:0,disabled:!1,max:1e11,position:"right",precision:2,size:"mini",controls:!1,append:"元"},on:{reschange:function(t){return e.number_change(t,"mark_fee")}}})],1)],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"包装费",prop:"package_fee"}},[t("digital-input",{attrs:{values:e.ruleForm.package_fee,placeholder:"包装费",min:0,disabled:!1,max:1e11,position:"right",precision:2,size:"mini",controls:!1,append:"元"},on:{reschange:function(t){return e.number_change(t,"package_fee")}}})],1)],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"其他费用",prop:"other_fee"}},[t("digital-input",{attrs:{values:e.ruleForm.other_fee,placeholder:"其他费用",min:0,disabled:!1,max:1e11,position:"right",precision:2,size:"mini",controls:!1,append:"元"},on:{reschange:function(t){return e.number_change(t,"other_fee")}}})],1)],1),t("el-col",{staticStyle:{"text-align":"right"},attrs:{span:24}},[t("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.submitForm}},[e._v("保 存 ")]),t("el-button",{attrs:{size:"small"},on:{click:function(t){e.showModelThis=!1}}},[e._v(e._s("取 消"))])],1)],1)],1)],1)],1)],1)],1)}),[],!1,null,"68253444",null);t.default=r.exports},4141:function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=r("ade3"),s=r("5530"),i=(r("96cf"),r("7db0"),r("d3b7"),r("a9e3"),r("f5ed")),o=r("9f53"),l=r("0ee5"),c=r("e284"),u=r("d5f6"),d=r("2f62");i={name:"unusualReason",mixins:[i.a,o.a],components:{addEdit:u.default},computed:Object(s.a)(Object(s.a)({},Object(d.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"unusualReason"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),data:function(){var e={statusOptions:[{id:"0",label:"禁用"},{id:"1",label:"启用"}],options:[{id:"1",label:"入库验收异常"},{id:"2",label:"退货验收异常"},{id:"3",label:"售后已收到货异常"},{id:"4",label:"采购退货"},{id:"5",label:"销售退换货"},{id:"6",label:"售后未收到货异常"},{id:"7",label:"议价申请原因"}],statusList:l.a,loading:!0,showModel:!1,isDetail:!1,modelId:0,parmValue:{status:"",type:"",page:1,size:15},tableData:[],passwordModel:!1,passwordModelId:0,isPasswordDetail:!1};return Object(n.a)(e,"tableData",[]),Object(n.a)(e,"table",{stripe:!0,border:!0,_defaultHeader_:["setcol"]}),Object(n.a)(e,"pageInfo",{size:15,curr:1,total:0}),Object(n.a)(e,"columns",[{prop:"result_code",label:"原因编号",width:"120px"},{prop:"result",label:"原因标题"},{prop:"type",label:"原因类型",_slot_:"type",width:"150px"},{prop:"result_desc",label:"异常描述"},{prop:"status",label:"状态",_slot_:"status",width:"80px"},{prop:"addtime",label:"创建时间",sortable:!0,width:"140px"},{prop:"",label:"操作",fixed:"right",_noset_:!0,_slot_:"operation",width:"150px"}]),e},mounted:function(){this.searchList()},methods:{deleteItem:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t.$confirm("确定要删除?",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(a.a)(regeneratorRuntime.mark((function r(){var a,n;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a={id:e},r.next=3,c.a.delete(a);case 3:if(!(n=r.sent)||0!==n.code){r.next=9;break}t.$notify.success({title:"删除成功",message:""}),t.searchList(),r.next=15;break;case 9:if(n&&100<=n.code&&n.code<=104)return r.next=12,t.logout();r.next=14;break;case 12:r.next=15;break;case 14:t.$message.warning(n.message);case 15:case"end":return r.stop()}}),r)})))).catch((function(){}));case 2:case"end":return r.stop()}}),r)})))()},restSearch:function(){this.pageInfo={size:15,curr:1,total:0},this.parmValue={status:"",type:"",page:1,size:15},this.searchList()},openModal:function(e,t){var r=e.status,a=e.id;"005"===t&&"1"===r?this.$message.warning("禁用后,才可以修改!"):(this.modelId=a,this.isDetail="007"===t,this.sitem=e,this.showModel=!0)},searchList:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,t.next=3,c.a.list(e.parmValue);case 3:if(!(r=t.sent)||0!==r.code||!r.data){t.next=9;break}e.tableData=r.data.list,e.pageInfo.total=Number(r.data.count),t.next=16;break;case 9:if(r&&100<=r.code&&r.code<=104)return t.next=12,e.logout();t.next=14;break;case 12:t.next=16;break;case 14:e.tableData=[],e.pageInfo.total=0;case 16:e.loading=!1;case 17:case"end":return t.stop()}}),t)})))()},statusConfirm:function(e,t){var r=this;return Object(a.a)(regeneratorRuntime.mark((function n(){var s;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return s="1"===t?"禁用":"启用",n.next=3,r.$confirm("确定要改为"+s+"?",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(a.a)(regeneratorRuntime.mark((function a(){var n,s;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return r.loading=!0,n={id:e,status:"1"===t?"0":"1"},a.next=4,c.a.status(n);case 4:if((s=a.sent)&&0===s.code)return r.loading=!1,r.$notify.success({title:"状态修改成功!",message:""}),a.next=10,r.searchList();a.next=12;break;case 10:a.next=18;break;case 12:if(s&&100<=s.code&&s.code<=104)return a.next=15,r.logout();a.next=17;break;case 15:a.next=18;break;case 17:r.$message.warning(s.message);case 18:case"end":return a.stop()}}),a)})))).catch((function(){}));case 3:case"end":return n.stop()}}),n)})))()}}},o=r("2877"),u=Object(o.a)(i,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"unusualReason pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?r("div",[r("ex-table",{directives:[{name:"loading",rawName:"v-loading",value:!1,expression:"false"}],attrs:{table:e.table,data:e.tableData,columns:e.columns,page:e.pageInfo,size:e.size},on:{"page-curr-change":e.handlePageChange,"page-size-change":e.handleSizeChange,"screen-reset":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()},"screen-submit":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},scopedSlots:e._u([{key:"table-header",fn:function(t){return[r("div",{staticStyle:{width:"100%"}},[r("el-row",{staticStyle:{padding:"0 0 0 80px"}},[r("el-col",{staticStyle:{width:"210px"},attrs:{span:3}},[r("el-select",{attrs:{clearable:"",size:e.searchSize,placeholder:"原因类型"},on:{change:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.parmValue.type,callback:function(t){e.$set(e.parmValue,"type",t)},expression:"parmValue.type"}},e._l(e.options,(function(e){return r("el-option",{key:e.id,attrs:{label:e.label,value:e.id}})})),1)],1),r("el-col",{staticStyle:{width:"66px",float:"right"},attrs:{span:3}},[r("el-button",{staticStyle:{float:"right","margin-left":"5px"},attrs:{size:e.searchSize,type:"primary"},on:{click:e.searchList}},[e._v(" 刷新 ")])],1),r("el-col",{staticStyle:{width:"66px",float:"right"},attrs:{span:4}},[r("el-button",{staticClass:"fr",attrs:{type:"warning",size:e.searchSize},on:{click:e.restSearch}},[e._v(" 重置 ")])],1),e.powers.some((function(e){return"003"==e}))?r("el-col",{staticStyle:{width:"66px",float:"right"},attrs:{span:3}},[r("el-button",{staticStyle:{float:"right","margin-left":"5px"},attrs:{size:e.searchSize,type:"success"},on:{click:function(t){return e.openModal({id:"add"},"003")}}},[e._v(" 新建 ")])],1):e._e()],1)],1)]}},{key:"type",fn:function(t){var a=t.scope;return[r("el-tag",{attrs:{size:e.tablebtnSize},domProps:{textContent:e._s((e.options.find((function(e){return e.id==a.row.type}))||{}).label||"--")}})]}},{key:"status",fn:function(t){var a=t.scope;return[r("el-tag",{attrs:{size:e.tablebtnSize,type:"0"==a.row.status?"warning":""},domProps:{textContent:e._s((e.statusOptions.find((function(e){return e.id==a.row.status}))||{}).label||"--")}})]}},{key:"operation",fn:function(t){var a=t.scope;return[e.powers.some((function(e){return"007"==e}))?r("el-tooltip",{attrs:{effect:"dark",content:"详情",placement:"top"}},[r("i",{staticClass:"el-icon-view tb-icon",on:{click:function(t){return e.openModal(a.row,"007")}}})]):e._e(),e.powers.some((function(e){return"005"==e}))?r("el-tooltip",{attrs:{effect:"dark",content:"修改",placement:"top"}},[r("i",{staticClass:"el-icon-edit tb-icon",on:{click:function(t){return e.openModal(a.row,"005")}}})]):e._e(),e.powers.some((function(e){return"004"==e}))&&"1"===a.row.status?r("el-tooltip",{attrs:{effect:"dark",content:"禁用",placement:"top"}},[r("i",{staticClass:"el-icon-video-pause tb-icon",on:{click:function(t){return e.statusConfirm(a.row.id,a.row.status)}}})]):e._e(),e.powers.some((function(e){return"004"==e}))&&"0"===a.row.status?r("el-tooltip",{attrs:{effect:"dark",content:"启用",placement:"top"}},[r("i",{staticClass:"el-icon-video-play tb-icon",on:{click:function(t){return e.statusConfirm(a.row.id,a.row.status)}}})]):e._e(),e.powers.some((function(e){return"006"==e}))?r("el-tooltip",{attrs:{effect:"dark",content:"删除",placement:"top"}},[r("i",{staticClass:"el-icon-delete tb-icon",on:{click:function(t){return e.deleteItem(a.row.id)}}})]):e._e()]}}],null,!1,4063647961)}),r("add-edit",{attrs:{id:e.modelId,sitem:e.sitem,"show-model":e.showModel,"is-detail":e.isDetail},on:{refresh:e.searchList,cancel:function(t){e.showModel=!1}}})],1):r("div",[r("no-auth")],1)])}),[],!1,null,"074f88a2",null);t.default=u.exports},"416e":function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=(r("a434"),r("e9c4"),r("d3b7"),r("159b"),r("99af"),r("b0c0"),r("ac1f"),r("1276"),r("96cf"),r("7dbe")),s=r("9f53"),i=r("82ae"),o=r("fcbc");s={name:"brand",props:["showModel","id","sitem"],mixins:[s.a],components:{baseFormAddEdit:o.default},data:function(){return{modelIndex:"",modelSitem:{},showOtherModel:!1,spec_tableData:[],loading:!1,is_noble:!1,is_addrs_options:[{value:"0",label:"一地"},{value:"1",label:"多地"}],is_custom_options:[{value:"0",label:"非定制"},{value:"1",label:"定制"}],is_gold_price_options:[{value:"0",label:"不启用"},{value:"1",label:"启用"}],config_options:["证书","包装盒","绒布袋","标签","其他"],title:"添加咨询商品",showModelThis:this.showModel,pickerOptions:{disabledDate:function(e){return e.getTime()<=Date.now()}},ruleForm:{p_cat_info:[],p_cat_id:"",p_budget_price:"",p_pgNo:"",p_num:"",p_good_type:"",p_good_name:"",p_good_img:"",pgNo:"",arrival_time:"",budget_price:"0.00",num:"0",brand_id:[],cat_id:[],unit:[],good_img:"",good_name:"",total_weight:"0.000",is_addrs:"",is_custom:"",is_gold_price:"",config:[],specs_weight:"0.000",other_config:"",cost_desc:"",use_desc:"",remark:"",metal_id:"",gold_price:"0",enclosure_file:""},rulesThis:this.rules,rules:i.d,listindex:"-1"}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis:function(e){e||this.$emit("cancel")}},methods:{initForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,r=e.sitem.index,e.listindex=r+"","-1"===e.listindex?e.title="添加咨询商品":e.title="修改咨询商品",e.rulesThis=e.rules,t.next=7,e.resetForm();case 7:e.loading=!1;case 8:case"end":return t.stop()}}),t)})))()},openEdit:function(e,t){this.modelIndex=e,this.modelSitem=t,this.showOtherModel=!0},openDelete:function(e){this.spec_tableData.splice(e,1)},refreshEdit:function(e){var t=this,r=(e=JSON.parse(JSON.stringify(e)),e.index),a=e.id,n=e.specid,s=e.spec_name,i=e.spec_value_id,o=e.spec_value_name;r+""=="-1"?this.spec_tableData.push(e):this.spec_tableData.forEach((function(e,r){e.spec_id===spec_id&&(t.spec_tableData[r].id=a,t.spec_tableData[r].specid=n,t.spec_tableData[r].spec_name=s,t.spec_tableData[r].spec_value_id=i,t.spec_tableData[r].spec_value_name=o)})),this.showOtherModel=!1},resetForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.spec_tableData=[],t.next=3,e.$nextTick((function(){var t,r,a,n,s,i,o,l,c,u,d,p,m,f,h,g,b,_,w,v,x,k,y,F,O,S,C,$,j,R,z,T,N,V,M,D,I,L;e.$refs.ruleForm&&(e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),t=(t=e.sitem.index)?t+"":"",r=(I=e.sitem).pgNo,a=I.arrival_time,n=I.budget_price,s=I.num,i=I.brand_id,o=I.cat_id,l=I.good_img,c=I.good_name,u=I.total_weight,d=I.is_addrs,p=I.is_custom,m=I.is_gold_price,f=I.config,h=I.specs_weight,g=I.other_config,b=I.cost_desc,_=I.use_desc,w=I.remark,v=I.metal_id,x=I.gold_price,k=I.unit,y=I.unit_name,F=I.p_cat_info,O=I.p_cat_id,S=I.p_budget_price,C=I.p_pgNo,$=I.p_num,j=I.p_good_type,R=I.p_good_name,z=I.p_good_img,T=I.p_arrtime,N=I.brand_name,V=I.specinfo,M=I.cat_id_name,D=I.cat_arr_id,I=I.enclosure_file,L=[],F&&0<F.length&&F.forEach((function(e){L.push(e.id)})),V&&0<V.length?e.spec_tableData=JSON.parse(JSON.stringify(V)):e.spec_tableData=[],e.ruleForm={p_cat_info:F,p_cat_id:O,p_cat_arr_id:L,p_budget_price:S,p_pgNo:C,p_num:$,p_good_type:j,p_good_name:R,p_good_img:z,p_arrtime:T,pgNo:"-1"==t&&C?C:r||"",arrival_time:"-1"==t&&C?T:a||"",budget_price:"-1"==t&&C?S:n||"0.00",num:"-1"==t&&C?$:s||"0",brand_id:i||[],brand_name:N||"",cat_id:o||[],cat_arr_id:D||[],cat_id_name:M||"",good_img:"-1"==t&&C?z:l||"",good_name:"-1"==t&&C?R:c||"",total_weight:u||"0",is_addrs:d||"0",is_custom:p||"0",is_gold_price:m||"0",config:f||[],specs_weight:h||"0.000",other_config:g||"",cost_desc:b||"",use_desc:_||"",remark:w||"",metal_id:v||"",gold_price:x||"0",unit:k||[],unit_name:y||"",enclosure_file:I||""},e.is_noble=!1,D&&0<D.length&&D.forEach((function(t){"6"===t&&(e.is_noble=!0)})))}));case 3:case"end":return t.stop()}}),t)})))()},goods_class_change:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){var a,n,s,i;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:e.code,a=e.pid,n=e.id,s=e.label,i=e.item,t.ruleForm.cat_id=n?[n]:[],t.ruleForm.cat_id_name=s||"",t.ruleForm.cat_arr_id=i,t.$refs.ruleForm.validateField("cat_id"),t.is_noble="6"===a;case 6:case"end":return r.stop()}}),r)})))()},unitsearchChange:function(e){var t=e.code;e=e.label;this.ruleForm.unit=t?[t]:[],this.ruleForm.unit_name=e||"",this.$refs.ruleForm.validateField("unit")},num_change:function(e,t){this.ruleForm[t]=e+"",this.$refs.ruleForm.validateField(t)},brand_id_searchChange:function(e){var t=e.id;e=e.label;this.ruleForm.brand_id=t?[t]:[],this.ruleForm.brand_name=e||"",this.$refs.ruleForm.validateField("brand_id")},noble_metalsearchChange:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){var a;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a=e.id,e.price,t.ruleForm.metal_id=a||"",t.$refs.ruleForm.validateField("metal_id"),r.next=6,t.get_golpricelast();case 6:case"end":return r.stop()}}),r)})))()},get_golpricelast:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r,a,s,i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e.ruleForm.metal_id)return r={type:r},t.next=5,n.a.golpricelast(r);t.next=21;break;case 5:if(r=t.sent,a=r.code,s=r.data,i=r.message,0!==a){t.next=13;break}s.forEach((function(t){t.type&&(e.ruleForm.gold_price=t.price)})),t.next=19;break;case 13:if(100<=a&&a<=104)return t.next=16,e.logout();t.next=18;break;case 16:t.next=19;break;case 18:e.$message.warning(i);case 19:t.next=22;break;case 21:e.ruleForm.gold_price="0";case 22:e.$refs.ruleForm.validateField("gold_price");case 23:case"end":return t.stop()}}),t)})))()},submitForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.ruleForm.validate(function(){var t=Object(a.a)(regeneratorRuntime.mark((function t(r){var a,n,s,i,o,l,c,u,d;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r){t.next=32;break}if(e.loading=!0,0===e.spec_tableData.length)return e.$message.warning("请选择商品规格!"),e.loading=!1,t.abrupt("return");t.next=6;break;case 6:if(a=JSON.parse(JSON.stringify(e.ruleForm)),n=a.cat_arr_id,s=a.total_weight,i=a.specs_weight,!((o=a.p_cat_info)&&0<o.length)){t.next=20;break}for(l=o.length,c="",o.forEach((function(e,t){c+="".concat(0!==t?"_":"").concat(e.name)})),u=!0,d=0;d<l;d++)o[d].id!==n[d]&&(u=!1);if(u){t.next=20;break}return e.$message.warning("商品分类不符合项目商品要求,商品要求中的分类为:".concat(c,"!")),e.loading=!1,t.abrupt("return");case 20:if(1e3*s<1e3*i&&e.is_noble)return e.$message.warning("商品总重量不能小于贵金属重量!"),e.loading=!1,t.abrupt("return");t.next=25;break;case 25:a.index=e.listindex,a.specinfo=JSON.parse(JSON.stringify(e.spec_tableData)),e.loading=!1,e.showModelThis=!1,e.$emit("refresh",a),t.next=34;break;case 32:return t.abrupt("return",!1);case 34:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()},beforeAvatarUpload:function(e){var t=!1,r=!1;return e&&("image/jpg"!==e.type&&"image/png"!==e.type&&"image/jpeg"!==e.type||(t=!0),r=e.size/1024/1024<1,t||this.$message.error("图片格式不正确!"),r||this.$message.error("图片大小不能超过 1MB!")),t&&r},UploadErrorEvent:function(e){"break"!==e&&(this.$message.error("图片上传失败!"),this.ruleForm.good_img="",this.$refs.ruleForm.validateField("good_img"))},UploadSuccessEvent:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){var a;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if("noToken"===(a=e.url))return r.next=4,t.logout();r.next=6;break;case 4:r.next=9;break;case 6:t.ruleForm.good_img=a,t.$message.success("图片上传成功!"),t.$refs.ruleForm.validateField("good_img");case 9:case"end":return r.stop()}}),r)})))()},UploadErrorOtherenclosure_file:function(e){"break"!==e&&this.$refs.ruleForm.validateField("enclosure_file")},beforeOtherUpload:function(e){var t=!1;"application/x-zip-compressed"===e.type&&(t=!0);var r=e.name.split(".");"rar"!==r[r.length-1]&&"7z"!==r[r.length-1]||(t=!0),r=e.size/1024/1024<5;return t||this.$message.error("文件格式不正确!"),r||this.$message.error("文件大小不能超过 5MB!"),t&&r},deleteUrl:function(){this.ruleForm.enclosure_file="",this.$refs.ruleForm.validateField("enclosure_file")},UploadSuccessOtherenclosure_file:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){var a;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if("noToken"===(a=e.url))return r.next=5,t.logout();r.next=7;break;case 5:r.next=9;break;case 7:t.ruleForm.enclosure_file=a,t.$message.success("附件上传成功!");case 9:case"end":return r.stop()}}),r)})))()}}},r("31a1"),o=r("2877"),r=Object(o.a)(s,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:e.title,center:!0,align:"left",top:"8vh",width:"1040px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)","append-to-body":""},on:{"update:visible":function(t){e.showModelThis=t},close:function(t){e.showModelThis=!1}}},[r("el-card",{staticStyle:{margin:"-20px 0 0 0"}},[r("el-row",{attrs:{gutter:10}},[r("el-col",{attrs:{span:24}},[r("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",size:"mini",rules:e.rulesThis,"label-width":"90px"}},[r("el-row",[r("el-col",{attrs:{span:8}},[r("el-form-item",{attrs:{label:"到货日期",prop:"arrival_time"}},[r("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"date",disabled:e.ruleForm.p_arrtime,"value-format":"yyyy-MM-dd","picker-options":e.pickerOptions,placeholder:"到货日期"},model:{value:e.ruleForm.arrival_time,callback:function(t){e.$set(e.ruleForm,"arrival_time",t)},expression:"ruleForm.arrival_time"}})],1)],1),r("el-col",{attrs:{span:6}},[r("el-form-item",{attrs:{label:"是否多地",prop:"is_addrs"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"是否多地"},model:{value:e.ruleForm.is_addrs,callback:function(t){e.$set(e.ruleForm,"is_addrs",t)},expression:"ruleForm.is_addrs"}},e._l(e.is_addrs_options,(function(e){return r("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1)],1),r("el-col",{attrs:{span:6}},[r("el-form-item",{attrs:{label:"预算单价",prop:"budget_price"}},[r("digital-input",{attrs:{values:e.ruleForm.budget_price,placeholder:"预算单价",min:0,max:1e11,position:"right",precision:2,size:"mini",disabled:e.ruleForm.p_budget_price,controls:!1,append:"元"},on:{reschange:function(t){return e.num_change(t,"budget_price")}}})],1)],1),r("el-col",{attrs:{span:4}},[r("el-form-item",{attrs:{label:"数量",prop:"num","label-width":"60px"}},[r("digital-input",{attrs:{values:e.ruleForm.num,placeholder:"数量",min:0,max:1e11,position:"right",precision:0,size:"mini",disabled:e.ruleForm.p_num,controls:!1,append:""},on:{reschange:function(t){return e.num_change(t,"num")}}})],1)],1),r("el-col",{attrs:{span:8}},[r("el-form-item",{attrs:{label:"品牌",prop:"brand_id"}},[r("search-brand",{attrs:{value:e.ruleForm.brand_id,size:"mini",isDetail:"-1"!==e.listindex,names:e.ruleForm.brand_name,placeholder:"品牌"},on:{searchChange:e.brand_id_searchChange}})],1)],1),r("el-col",{attrs:{span:6}},[r("el-form-item",{attrs:{label:"是否定制",prop:"is_custom"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"是否定制"},model:{value:e.ruleForm.is_custom,callback:function(t){e.$set(e.ruleForm,"is_custom",t)},expression:"ruleForm.is_custom"}},e._l(e.is_custom_options,(function(e){return r("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1)],1),r("el-col",{attrs:{span:6}},[r("el-form-item",{attrs:{label:"重量",prop:"total_weight"}},[r("digital-input",{attrs:{values:e.ruleForm.total_weight,placeholder:"重量",min:0,max:1e11,position:"right",precision:3,controls:!1,size:"mini",append:"g"},on:{reschange:function(t){return e.num_change(t,"total_weight")}}})],1)],1),r("el-col",{attrs:{span:4}},[r("el-form-item",{attrs:{label:"单位",prop:"unit","label-width":"60px"}},[r("search-unit",{attrs:{value:e.ruleForm.unit,size:"mini",isDetail:"-1"!==e.listindex,names:e.ruleForm.unit_name,placeholder:"单位"},on:{searchChange:e.unitsearchChange}})],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"商品分类",prop:"cat_id"}},[r("search-sort",{attrs:{value:e.ruleForm.cat_id,placeholder:"商品分类",disabled:!1,size:"mini",names:e.ruleForm.cat_id_name,isDetail:"-1"!==e.listindex},on:{searchChange:e.goods_class_change}})],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"商品名称",prop:"good_name"}},[r("el-input",{attrs:{disabled:!1,placeholder:"商品名称",maxlength:"100"},model:{value:e.ruleForm.good_name,callback:function(t){e.$set(e.ruleForm,"good_name",t)},expression:"ruleForm.good_name"}})],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"工艺说明",prop:"cost_desc"}},[r("el-input",{attrs:{placeholder:"工艺说明",maxlength:"500"},model:{value:e.ruleForm.cost_desc,callback:function(t){e.$set(e.ruleForm,"cost_desc",t)},expression:"ruleForm.cost_desc"}})],1),r("el-form-item",{attrs:{label:"产品用途",prop:"use_desc"}},[r("el-input",{attrs:{placeholder:"产品用途",maxlength:"500"},model:{value:e.ruleForm.use_desc,callback:function(t){e.$set(e.ruleForm,"use_desc",t)},expression:"ruleForm.use_desc"}})],1),r("el-form-item",{attrs:{label:"商品备注",prop:"remark"}},[r("el-input",{attrs:{placeholder:"商品备注",maxlength:"500"},model:{value:e.ruleForm.remark,callback:function(t){e.$set(e.ruleForm,"remark",t)},expression:"ruleForm.remark"}})],1)],1),r("el-col",{staticStyle:{padding:"0 0 0 15px"},attrs:{span:12}},[r("el-table",{staticStyle:{width:"100%"},attrs:{data:e.spec_tableData,size:"mini",border:"",height:"120px"}},[r("el-table-column",{attrs:{prop:"spec_name",label:"规格类型"}}),r("el-table-column",{attrs:{prop:"spec_value_name",label:"规格值"}}),r("el-table-column",{attrs:{fixed:"right",width:"88px"},scopedSlots:e._u([{key:"header",fn:function(t){return[r("span",[e._v("操作")]),r("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"添加规格类型",placement:"top"}},[r("i",{staticClass:"el-icon-circle-plus-outline fr",staticStyle:{"font-size":"18px","margin-top":"2px"},on:{click:function(t){return e.openEdit("-1",{})}}})])]}},{key:"default",fn:function(t){return[r("el-tooltip",{attrs:{effect:"dark",content:"修改",placement:"top"}},[r("i",{staticClass:"el-icon-edit tb-icon",on:{click:function(r){return e.openEdit(t.$index,t.row)}}})]),r("el-tooltip",{attrs:{effect:"dark",content:"删除",placement:"top"}},[r("i",{staticClass:"el-icon-delete tb-icon",on:{click:function(r){return e.openDelete(t.$index)}}})])]}}])})],1),r("base-form-add-edit",{attrs:{index:e.modelIndex,"show-model":e.showOtherModel,sitem:e.modelSitem},on:{refresh:e.refreshEdit,cancel:function(t){e.showOtherModel=!1}}})],1),r("el-col",{attrs:{span:24}},[r("el-row",[e.is_noble?r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"配置要求",prop:"config"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{multiple:"",placeholder:"配置要求"},model:{value:e.ruleForm.config,callback:function(t){e.$set(e.ruleForm,"config",t)},expression:"ruleForm.config"}},e._l(e.config_options,(function(e,t){return r("el-option",{key:e+t,attrs:{label:e,value:e}})})),1)],1)],1):e._e(),e.is_noble?r("el-col",{attrs:{span:6}},[r("el-form-item",{attrs:{label:"金属克重",prop:"specs_weight"}},[r("digital-input",{attrs:{values:e.ruleForm.specs_weight,placeholder:"金属克重",min:0,max:1e11,position:"right",precision:3,controls:!1,size:"mini",append:"g"},on:{reschange:function(t){return e.num_change(t,"specs_weight")}}})],1)],1):e._e(),e.is_noble?r("el-col",{attrs:{span:6}},[r("el-form-item",{attrs:{label:"启用金价",prop:"is_gold_price"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"启用金价"},model:{value:e.ruleForm.is_gold_price,callback:function(t){e.$set(e.ruleForm,"is_gold_price",t)},expression:"ruleForm.is_gold_price"}},e._l(e.is_gold_price_options,(function(e){return r("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1)],1):e._e()],1)],1),r("el-col",{staticStyle:{"text-align":"right"},attrs:{span:24}},[r("el-row",[r("el-col",{staticClass:"clear",attrs:{span:8}},[r("el-form-item",{staticClass:"activity-upload",attrs:{label:"商品图片",prop:"good_img"}},[r("div",{staticClass:"btnupload",staticStyle:{position:"relative"}},[e.ruleForm.good_img?r("img",{staticClass:"avatar",attrs:{src:e.ruleForm.good_img}}):r("i",{staticClass:"el-icon-plus avatar-uploader-icon"}),r("file-upload",{staticClass:"Upload",attrs:{disabled:!1,accept:".jpg,.png,.jpeg",multiple:!0,uploadcondition:e.beforeAvatarUpload},on:{UploadErrorEvent:e.UploadErrorEvent,UploadSuccessEvent:e.UploadSuccessEvent}})],1),r("div",{staticClass:"txt-tips fl"},[r("p",[e._v("小于1Mb")])])])],1),r("el-col",{staticClass:"clear",attrs:{span:8}},[r("el-form-item",{staticClass:"activity-upload",attrs:{label:"附件",prop:"enclosure_file"}},[e.ruleForm&&e.ruleForm.enclosure_file?r("div",{staticClass:"clearfix tl"},[r("a",{staticClass:"fl",attrs:{href:e.ruleForm.enclosure_file,download:"附件"}},[e._v("点击下载")]),r("el-link",{staticClass:"fr",staticStyle:{margin:"0 0 0 16px"},attrs:{underline:!1,type:"warning"},on:{click:function(t){return e.deleteUrl()}}},[e._v("删除")])],1):r("div",{staticClass:"activity-upload"},[r("div",{staticClass:"btnupload",staticStyle:{position:"relative"}},[r("i",{staticClass:"el-icon-plus avatar-uploader-icon"}),r("file-upload-pdf",{staticClass:"Upload",attrs:{accept:".zip,.rar,.7z",multiple:!1,uploadcondition:e.beforeOtherUpload},on:{UploadErrorEvent:e.UploadErrorOtherenclosure_file,UploadSuccessEvent:e.UploadSuccessOtherenclosure_file}})],1),r("div",{staticClass:"txt-tips fl"},[r("p",[e._v("建议大小:小于5MB")]),r("p",[e._v("文件格式:.zip,.rar,.7z")])])])])],1),e.is_noble?r("el-col",{attrs:{span:8}},[r("el-form-item",{attrs:{label:"金属种类",prop:"metal_id"}},[r("search-metal-kind",{attrs:{value:e.ruleForm.metal_id,size:"mini",isDetail:"-1"!==e.listindex,placeholder:"贵金属种类"},on:{searchChange:e.noble_metalsearchChange}})],1),"1"===e.ruleForm.is_gold_price?r("el-form-item",{staticStyle:{margin:"0 0 0 0"},attrs:{label:"当前金价",prop:"gold_price"}},[r("el-input",{attrs:{disabled:"",placeholder:"当前金价",maxlength:"500"},model:{value:e.ruleForm.gold_price,callback:function(t){e.$set(e.ruleForm,"gold_price",t)},expression:"ruleForm.gold_price"}},[r("template",{slot:"append"},[e._v("元")])],2)],1):e._e()],1):e._e(),e.is_noble?r("el-col",{attrs:{span:16}},[r("el-form-item",{attrs:{label:"其他配置要求",prop:"other_config","label-width":"120px"}},[r("el-input",{attrs:{type:"textarea",rows:2,placeholder:"其他配置要求",maxlength:"250","show-word-limit":""},model:{value:e.ruleForm.other_config,callback:function(t){e.$set(e.ruleForm,"other_config",t)},expression:"ruleForm.other_config"}})],1)],1):e._e(),r("el-col",{staticClass:"fr",staticStyle:{padding:"18px 0 0 0"},attrs:{span:8}},["007"!==e.id?r("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.submitForm}},[e._v("保 存 ")]):e._e(),r("el-button",{attrs:{size:"mini"},on:{click:function(t){e.showModelThis=!1}}},[e._v(e._s("007"==e.id?"关 闭":"取 消"))])],1)],1)],1)],1)],1)],1)],1)],1)],1)}),[],!1,null,"eec9b7da",null);t.default=r.exports},4174:function(e,t,r){"use strict";t.a=[{prop:"pgNo",label:"要求编号",width:"155px"},{prop:"sale_price",label:"销售单价",width:"110px"},{prop:"num",label:"购买数量",width:"90px"},{prop:"good_img",label:"图片",_slot_:"good_img",width:"50"},{prop:"good_name",label:"商品名称",_slot_:"good_name","min-width":"200px"},{prop:"class_cat",label:"商品分类","min-width":"110px"},{prop:"source",label:"商品来源",_slot_:"source",width:"90px"},{prop:"expire_day",label:"信息有效期",width:"85px"},{prop:"work_day",label:"制作工期",width:"70px"},{prop:"delivery_day",label:"物流时间",width:"70px"},{prop:"creater",label:"负责人",width:"60px"},{prop:"",label:"操作",fixed:"right",width:"70px",_noset_:!0,_slot_:"operation"}]},4237:function(e,t,r){"use strict";var a=r("1b69"),n="admin/";t.a={add:function(e,t){return Object(a.a)(n+"add",e,"post",t)},delete:function(e,t){return Object(a.a)(n+"delete",e,"post",t)},list:function(e,t){return Object(a.a)(n+"checkflist",e,"post",t)},detail:function(e,t){return Object(a.a)(n+"detail",e,"post",t)},update:function(e,t){return Object(a.a)(n+"goodwarn",e,"post",t)},status:function(e,t){return Object(a.a)(n+"accountstatus",e,"post",t)}}},"431b":function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=(r("96cf"),r("7db0"),r("d3b7"),r("e9c4"),r("e5ab")),s=r("9f53"),i=r("61f7");s={name:"wsmInOrderAdd",props:["id","sitem","newTime","modelSitem"],mixins:[s.a],computed:{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"wsmInOrderDetail"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}},data:function(){function e(e,t,r){""===t?r(new Error("不能为空!")):Object(i.k)(t)?r():r(new Error("仅支持整数!"))}return{loading:!0,status:"",showModel:!1,modelAllnum:"",modelitem:null,modelId:"",ruleForm:{wsm_in_code:"",send_num:"",wsm_num:"",reissue_num:"",return_num:"",contactor:"",addr:"",mobile:"",error_remark:"",remark:""},rules:{wsm_num:{required:!0,validator:e,trigger:"blur"},reissue_num:{required:!0,validator:e,trigger:"blur"},return_num:{required:!0,validator:e,trigger:"blur"},contactor:{required:!0,message:"收件联系人不能为空!",trigger:"blur"},addr:{required:!0,message:"收件地址不能为空!",trigger:"blur"},mobile:{required:!0,validator:function(e,t,r){""!==t?Object(i.h)(t)||Object(i.g)(t)?r():r(new Error("联系电话格式不正确!")):r(new Error("请输入收货联系电话!"))},trigger:"blur"},error_remark:{required:!0,message:"审核备注不能为空!",trigger:"blur"}}}},watch:{newTime:function(e){e&&this.initForm()}},mounted:function(){this.initForm()},methods:{initForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,t.next=3,e.resetForm();case 3:e.loading=!1;case 4:case"end":return t.stop()}}),t)})))()},resetForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$nextTick((function(){var t,r,a,n,s,i,o,l,c,u,d;e.$refs.ruleForm&&(e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),t=(a=e.sitem).wsm_in_code,d=a.status,r=a.send_num,a=a.remark,n=(u=e.sitem.return).return_contactor,s=u.return_addr,i=u.return_mobile,o=u.wsm_num,l=u.reissue_num,c=u.return_num,u=u.error_remark,e.status=d,e.ruleForm={wsm_in_code:t||"",send_num:r||"0",wsm_num:o||"0",reissue_num:l||"0",return_num:c||"0",contactor:n||"",addr:s||"",mobile:i||"",error_remark:u||"",remark:a||""}),e.$refs.tableForm&&(e.$refs.tableForm.resetFields(),e.$refs.tableForm.clearValidate(),d=e.sitem.checkinfo,e.tableForm={error_list:d||[]})}));case 2:case"end":return t.stop()}}),t)})))()},addError:function(e){this.modelAllnum="2",this.modelitem=-1===e?{}:this.tableForm.error_list[e],this.modelId=e,this.showModel=!0},submitForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.ruleForm.validate(function(){var t=Object(a.a)(regeneratorRuntime.mark((function t(r){var a,s,i,o,l,c;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r){t.next=30;break}if(e.loading=!0,a=JSON.parse(JSON.stringify(e.ruleForm)),s=parseInt(a.return_num),i=parseInt(a.wsm_num),o=parseInt(a.send_num),l=parseInt(a.reissue_num),s+i!==o)return e.$message.warning("正常入库数量 + 异常退货数量 不等于 发货总数!"),e.loading=!1,t.abrupt("return");t.next=8;break;case 8:if(s<l)return e.$message.warning("异常补发数量不能大于异常退货数量!"),e.loading=!1,t.abrupt("return");t.next=12;break;case 12:return delete a.send_num,t.next=15,n.a.orderinreturn(a);case 15:if(c=t.sent,e.loading=!1,!c||0!==c.code){t.next=22;break}e.$notify.success({title:"提交成功",message:""}),e.$emit("refresh"),t.next=28;break;case 22:if(c&&100<=c.code&&c.code<=104)return t.next=25,e.logout();t.next=27;break;case 25:t.next=28;break;case 27:e.$message.warning(c.message);case 28:t.next=32;break;case 30:return t.abrupt("return",!1);case 32:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()}}},r("a281"),r=r("2877"),r=Object(r.a)(s,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[t("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,rules:e.rules,"status-icon":"",size:"mini","label-width":"110px"}},[t("el-row",[t("el-col",{attrs:{span:6}},[t("el-form-item",{attrs:{label:"发货总数"}},[t("el-input",{attrs:{placeholder:"发货总数",disabled:"",maxlength:"100"},model:{value:e.ruleForm.send_num,callback:function(t){e.$set(e.ruleForm,"send_num",t)},expression:"ruleForm.send_num"}})],1)],1),t("el-col",{attrs:{span:6}},[t("el-form-item",{attrs:{label:"正常入库数量",prop:"wsm_num"}},[t("el-input",{attrs:{placeholder:"正常入库数量",disabled:"2"!==e.status,maxlength:"100"},model:{value:e.ruleForm.wsm_num,callback:function(t){e.$set(e.ruleForm,"wsm_num",t)},expression:"ruleForm.wsm_num"}})],1)],1),t("el-col",{attrs:{span:6}},[t("el-form-item",{attrs:{label:"异常补发数量",prop:"reissue_num"}},[t("el-input",{attrs:{placeholder:"异常补发数量",disabled:"2"!==e.status,maxlength:"100"},model:{value:e.ruleForm.reissue_num,callback:function(t){e.$set(e.ruleForm,"reissue_num",t)},expression:"ruleForm.reissue_num"}})],1)],1),t("el-col",{attrs:{span:6}},[t("el-form-item",{attrs:{label:"异常退货数量",prop:"return_num"}},[t("el-input",{attrs:{placeholder:"异常退货数量",disabled:"2"!==e.status,maxlength:"100"},model:{value:e.ruleForm.return_num,callback:function(t){e.$set(e.ruleForm,"return_num",t)},expression:"ruleForm.return_num"}})],1)],1),t("el-col",{attrs:{span:6}},[t("el-form-item",{attrs:{label:"收件联系人",prop:"contactor"}},[t("el-input",{attrs:{placeholder:"收件联系人",disabled:"2"!==e.status,maxlength:"100"},model:{value:e.ruleForm.contactor,callback:function(t){e.$set(e.ruleForm,"contactor",t)},expression:"ruleForm.contactor"}})],1),t("el-form-item",{attrs:{label:"收件联系电话",prop:"mobile"}},[t("el-input",{attrs:{placeholder:"收件联系电话",disabled:"2"!==e.status,maxlength:"100"},model:{value:e.ruleForm.mobile,callback:function(t){e.$set(e.ruleForm,"mobile",t)},expression:"ruleForm.mobile"}})],1)],1),t("el-col",{attrs:{span:18}},[t("el-form-item",{attrs:{label:"收件地址",prop:"addr"}},[t("el-input",{attrs:{placeholder:"收件地址",disabled:"2"!==e.status,maxlength:"250"},model:{value:e.ruleForm.addr,callback:function(t){e.$set(e.ruleForm,"addr",t)},expression:"ruleForm.addr"}})],1),t("el-form-item",{attrs:{label:"审核备注",prop:"error_remark"}},[t("el-input",{attrs:{placeholder:"审核备注",disabled:"2"!==e.status,maxlength:"250"},model:{value:e.ruleForm.error_remark,callback:function(t){e.$set(e.ruleForm,"error_remark",t)},expression:"ruleForm.error_remark"}})],1)],1),t("el-col",{staticStyle:{"text-align":"right",padding:"0 0 10px 0"},attrs:{span:24}},["2"===e.status&&e.powers.some((function(e){return"030"==e}))?t("el-button",{attrs:{size:"mini",type:"primary"},on:{click:e.submitForm}},[e._v("保 存 ")]):e._e()],1)],1)],1)],1)}),[],!1,null,"48ed46ba",null);t.default=r.exports},4349:function(e,t,r){},"43b9":function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=(r("ac1f"),r("5319"),r("96cf"),r("61f7")),s=r("6a1e"),i={name:"Login",mixins:[r("9f53").a],data:function(){var e=this;return{stepList:["验证身份","重设密码","设置成功"],timer:null,num:3,step:0,loginFormX:{username:"",mobile:"",code:""},loginRulesX:{username:[{required:!0,trigger:"blur",validator:function(e,t,r){""===t?r(new Error("请输入账号")):r()}}],mobile:[{required:!0,trigger:"blur",validator:function(e,t,r){""===t?r(new Error("手机号不能为空!")):Object(n.g)(t)?r():r(new Error("手机号不正确!"))}}],code:[{required:!0,trigger:"blur",validator:function(e,t,r){""===t?r(new Error("验证码不能为空!")):Object(n.k)(t)&&6===t.length?r():r(new Error("验证码应为6位数字!"))}}]},loginFormY:{newPassword:"",confirmPassword:""},loginRulesY:{newPassword:[{required:!0,trigger:"blur",validator:function(e,t,r){""===t?r(new Error("新密码不能为空!")):!Object(n.b)(t)||t.length<6||16<t.length?r(new Error("新密码为6-16位数字字母组合!")):Object(n.k)(t)?r(new Error("新密码不能为纯数字!")):Object(n.r)(t)?r(new Error("新密码不能为纯字母!")):r()}}],confirmPassword:[{required:!0,trigger:"blur",validator:function(t,r,a){""===r?a(new Error("确认密码不能为空!")):e.loginFormY.newPassword!==r?a(new Error("确认密码与新密码不一致!")):a()}}]},codeType:"code",capsTooltip:!1,loading:!1,showDialog:!1,redirect:void 0,otherQuery:{}}},mounted:function(){""===this.loginFormX.mobile&&this.$refs.mobile.focus(),""===this.loginFormX.code&&this.$refs.code.focus()},destroyed:function(){},methods:{modifyPostLevel:function(e){this.step=e},phoneErr:function(e){e||this.$refs.loginFormX.validateField("mobile")},checkCapslock:function(e){e=e.key,this.capsTooltip=e&&1===e.length&&"A"<=e&&e<="Z"},handleLoginX:function(){var e=this;this.$refs.loginFormX.validate((function(t){if(!t)return!1;e.step++}))},handleLoginY:function(){var e=this;this.$refs.loginFormY.validate((function(t){if(!t)return!1;e.loading||(e.loading=!0,t={username:e.loginFormX.username,mobile:e.loginFormX.mobile,code:e.loginFormX.code,password:e.loginFormY.newPassword},s.a.resetpwd(t).then(function(){var t=Object(a.a)(regeneratorRuntime.mark((function t(r){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r||0!==r.code){t.next=6;break}e.loading=!1,e.step++,e.setTime(),t.next=13;break;case 6:if(r&&100<=r.code&&r.code<=104)return t.next=9,e.logout();t.next=11;break;case 9:t.next=13;break;case 11:e.$message.warning(r.message),e.loading=!1;case 13:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()))}))},setTime:function(){var e=this;this.timer=setInterval((function(){0!==e.num?e.num--:e.timer&&(clearInterval(e.timer),e.num=3,e.gotoLogin())}),1e3)},gotoLogin:function(){window.vm.$router.replace("/login")}}};r("ebdd"),r("b4fa"),r=r("2877"),r=Object(r.a)(i,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"forget-password"},[r("div",{staticClass:"forget-main"},[r("div",{staticClass:"my-card"},[e._m(0),r("div",{staticStyle:{margin:"8px 0 35px 0"}},[r("el-steps",{attrs:{active:e.step,simple:"","process-status":"finish","finish-status":"success"}},e._l(e.stepList,(function(e,t){return r("el-step",{key:t,attrs:{title:e}})})),1)],1),0===e.step?r("div",[r("el-form",{ref:"loginFormX",staticClass:"login-form",attrs:{model:e.loginFormX,rules:e.loginRulesX,autocomplete:"on","label-position":"left","label-width":"95px"}},[r("el-form-item",{attrs:{prop:"username",label:"账号:"}},[r("el-input",{ref:"username",attrs:{placeholder:"账号",name:"username",type:"text",tabindex:"1",maxlength:"50",autocomplete:"on"},model:{value:e.loginFormX.username,callback:function(t){e.$set(e.loginFormX,"username",t)},expression:"loginFormX.username"}})],1),r("el-form-item",{attrs:{prop:"mobile",label:"手机号:"}},[r("el-input",{ref:"mobile",attrs:{placeholder:"手机号",name:"mobile",type:"text",tabindex:"1",maxlength:"11",autocomplete:"on"},model:{value:e.loginFormX.mobile,callback:function(t){e.$set(e.loginFormX,"mobile",t)},expression:"loginFormX.mobile"}})],1),r("el-form-item",{staticClass:"code-sign",attrs:{prop:"code",label:"验证码:"}},[r("ul",{staticClass:"code-main"},[r("li",[r("el-input",{ref:"code",attrs:{placeholder:"验证码",name:"code",type:"text",tabindex:"1",maxlength:"50",autocomplete:"on"},model:{value:e.loginFormX.code,callback:function(t){e.$set(e.loginFormX,"code",t)},expression:"loginFormX.code"}})],1),r("li",[r("send-verification-code",{attrs:{mobile:e.loginFormX.mobile},on:{phoneErr:e.phoneErr}})],1)])]),r("el-button",{staticStyle:{width:"100%","margin-top":"10px"},attrs:{type:"primary"},nativeOn:{click:function(t){return t.preventDefault(),e.handleLoginX(t)}}},[e._v("下一步")])],1)],1):1===e.step?r("div",[r("el-form",{ref:"loginFormY",staticClass:"login-form",attrs:{model:e.loginFormY,rules:e.loginRulesY,autocomplete:"on","label-position":"left","label-width":"100px"}},[r("el-form-item",{attrs:{prop:"newPassword",label:"新密码:"}},[r("el-input",{ref:"newPassword",attrs:{placeholder:"6-16位数字字母组合",name:"newPassword",type:"password",tabindex:"1",maxlength:"16",autocomplete:"on"},model:{value:e.loginFormY.newPassword,callback:function(t){e.$set(e.loginFormY,"newPassword",t)},expression:"loginFormY.newPassword"}})],1),r("el-form-item",{attrs:{prop:"confirmPassword",label:"确认密码:"}},[r("el-input",{ref:"confirmPassword",attrs:{placeholder:"6-16位数字字母组合",name:"confirmPassword",type:"password",tabindex:"1",maxlength:"16",autocomplete:"on"},model:{value:e.loginFormY.confirmPassword,callback:function(t){e.$set(e.loginFormY,"confirmPassword",t)},expression:"loginFormY.confirmPassword"}})],1),r("el-button-group",{staticStyle:{"margin-top":"10px"}},[r("el-button",{staticStyle:{width:"140px"},attrs:{type:"primary",disabled:e.loading,icon:"el-icon-arrow-left"},nativeOn:{click:function(t){t.preventDefault(),e.step=0}}},[e._v("上一步")]),r("el-button",{staticStyle:{width:"140px"},attrs:{type:"primary",loading:e.loading},nativeOn:{click:function(t){return t.preventDefault(),e.handleLoginY(t)}}},[e._v("下一步"),r("i",{staticClass:"el-icon-arrow-right el-icon--right"})])],1)],1)],1):r("div",{staticClass:"success-card"},[e._m(1),r("div",{staticClass:"teps-title"},[e._v("恭喜你,新密码设置成功!")]),r("div",{staticClass:"teps-time"},[r("span",[e._v(e._s(e.num))]),e._v("秒后自动返回 ")])])])])])}),[function(){var e=this.$createElement;e=this._self._c||e;return e("div",{staticClass:"title-container"},[e("h3",{staticClass:"title"},[this._v("设置新登录密码")])])},function(){var e=this.$createElement;e=this._self._c||e;return e("div",{staticClass:"success-icon"},[e("i",{staticClass:"el-icon-success"})])}],!1,null,"639f6314",null);t.default=r.exports},4429:function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=(r("c740"),r("a434"),r("e9c4"),r("96cf"),r("e5ab")),s={name:"purchaseOrder",props:["showModel","id","sitem","allnum"],mixins:[r("9f53").a],data:function(){return{showModelThis:this.showModel,loading:!1,title:"",newTime:"",options:[],ruleForm:{num:"",error_code:"",error_msg:"",error_img:[],remark:""},show:!1,rulesThis:this.rules,rules:{num:[{required:!0,validator:function(e,t,r){e=e.required,e&&""===t?r(new Error("不能为空!")):!e||"0"!==t&&"0."!==t&&"0.0"!==t&&"0.00"!==t&&"0.000"!==t?r():r(new Error("不能为零!"))},trigger:"blur"}],error_code:[{required:!0,message:"请选择异常原因",trigger:"change"}],error_img:[{type:"array",required:!0,message:"异常图片不能为空!",trigger:"change"}],remark:[{required:!0,message:"异常备注不能为空!",trigger:"blur"}]}}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis:function(e){e||this.$emit("cancel")}},methods:{initForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,e.rulesThis=e.rules,-1===e.id?e.title="新建异常记录":e.title="编辑异常记录",t.next=5,e.getresultlist();case 5:return t.next=7,e.resetForm();case 7:e.loading=!1;case 8:case"end":return t.stop()}}),t)})))()},number_change:function(e,t){this.ruleForm[t]=e+""||"0",this.$refs.ruleForm.validateField(t)},elSelectChange:function(e){var t=this.options.findIndex((function(t){return t.result_code===e}));this.ruleForm.error_msg=-1!==t?this.options[t].result:""},imgClose:function(e){this.ruleForm.error_img.splice(e,1),this.$refs.ruleForm.validateField("error_img")},getresultlist:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r,a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n.a.resultlist({page:1,size:100,type:"1",status:""});case 2:if(!(r=t.sent)||0!==r.code||!r.data){t.next=8;break}a=r.data.list,e.options=a,t.next=14;break;case 8:if(r&&100<=r.code&&r.code<=104)return t.next=11,e.logout();t.next=13;break;case 11:t.next=14;break;case 13:e.$message.warning(r.message);case 14:case"end":return t.stop()}}),t)})))()},resetForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$nextTick((function(){var t,r,a,n,s,i;e.$refs.ruleForm&&(e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),r=(t=e.sitem).num,a=t.error_code,n=t.error_msg,s=t.error_img,i=t.remark,t.index,e.ruleForm={num:r||"0",index:e.id,error_code:a||"",error_msg:n||"",error_img:s||[],remark:i||""})}));case 2:case"end":return t.stop()}}),t)})))()},submitForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.ruleForm.validate(function(){var t=Object(a.a)(regeneratorRuntime.mark((function t(r){var a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r){t.next=9;break}if((a=JSON.parse(JSON.stringify(e.ruleForm))).num+""=="0")return e.$message.warning("异常数量不能为0!"),t.abrupt("return");t.next=5;break;case 5:e.showModelThis=!1,e.$emit("refresh",a),t.next=11;break;case 9:return t.abrupt("return",!1);case 11:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()},getNewTime:function(){this.newTime=(new Date).valueOf()},open:function(){this.show=!0},UploadErrorEvent:function(e){"break"!==e&&(this.$message.error("图片上传失败!"),this.$refs.ruleForm.validateField("error_img"))},UploadSuccessEvent:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){var a;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if("noToken"===(a=e.url))return r.next=4,t.logout();r.next=6;break;case 4:r.next=9;break;case 6:t.ruleForm.error_img.push(a),t.$message.success("图片上传成功!"),t.$refs.ruleForm.validateField("error_img");case 9:case"end":return r.stop()}}),r)})))()},beforeAvatarUpload:function(e){var t=!1,r=!1;return e&&("image/jpg"!==e.type&&"image/png"!==e.type&&"image/jpeg"!==e.type||(t=!0),r=e.size/1024/1024<1,t||this.$message.error("图片格式不正确!"),r||this.$message.error("图片大小不能超过 1MB!")),t&&r}}};r("fe5e"),r=r("2877"),r=Object(r.a)(s,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:e.title,center:!0,align:"left",top:"10vh",width:"940px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)"},on:{close:function(t){e.showModelThis=!1},"update:visible":function(t){e.showModelThis=t}}},[r("el-card",{staticStyle:{"margin-top":"-20px"}},[r("el-row",{attrs:{gutter:10}},[r("el-col",{attrs:{span:24}},[r("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",size:"mini",rules:e.rulesThis,"label-width":"85px"}},[r("el-row",[r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"异常数量",prop:"num"}},[r("digital-input",{attrs:{values:e.ruleForm.num,placeholder:"异常数量",min:0,disabled:!1,max:1e9,position:"right",precision:0,size:"mini",controls:!1,append:""},on:{reschange:function(t){return e.number_change(t,"num")}}})],1),r("el-form-item",{attrs:{label:"异常原因",prop:"error_code"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"异常原因"},on:{change:e.elSelectChange},model:{value:e.ruleForm.error_code,callback:function(t){e.$set(e.ruleForm,"error_code",t)},expression:"ruleForm.error_code"}},e._l(e.options,(function(e){return r("el-option",{key:e.result_code,attrs:{label:e.result,value:e.result_code,disabled:"0"===e.status}})})),1)],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"异常备注",prop:"remark"}},[r("el-input",{attrs:{type:"textarea",maxlength:"250","show-word-limit":"",placeholder:"异常备注",autosize:{minRows:3,maxRows:3}},model:{value:e.ruleForm.remark,callback:function(t){e.$set(e.ruleForm,"remark",t)},expression:"ruleForm.remark"}})],1)],1),r("el-col",{attrs:{span:24}},[r("el-form-item",{attrs:{label:"异常图片",prop:"error_img"}},[r("div",{staticClass:"el-form-item-error-img"},[r("ul",e._l(e.ruleForm.error_img,(function(t,a){return r("li",{key:t},[r("img",{attrs:{src:t,alt:""}}),r("i",{staticClass:"el-icon-close",on:{click:function(t){return e.imgClose(a)}}})])})),0),e.ruleForm.error_img.length<5?r("div",{staticClass:"btnupload",staticStyle:{position:"relative"},on:{click:e.open}},[r("i",{staticClass:"el-icon-plus avatar-uploader-icon"}),r("file-upload",{staticClass:"Upload",attrs:{accept:".jpg,.png,.jpeg",multiple:!0,uploadcondition:e.beforeAvatarUpload},on:{UploadErrorEvent:e.UploadErrorEvent,UploadSuccessEvent:e.UploadSuccessEvent}})],1):e._e()])])],1),r("el-col",{attrs:{span:21}},[r("div",{staticClass:"txt-tips fl"},[r("p",[r("span",{attrs:{sty:""}},[e._v("大小:小于1MB;")]),r("span",[e._v("类型:jpg.png.jpeg")])])])]),r("el-col",{staticStyle:{"text-align":"right"},attrs:{span:3}},[r("el-button",{staticClass:"fr",attrs:{type:"primary",size:"mini"},on:{click:e.submitForm}},[e._v("保 存 ")])],1)],1)],1)],1)],1)],1)],1)}),[],!1,null,"c442a424",null);t.default=r.exports},4449:function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=(r("96cf"),r("7db0"),r("d3b7"),r("d81d"),r("ac1f"),r("1276"),r("e9c4"),r("159b"),r("a15b"),r("e5ab")),s=r("9f53"),i=r("61f7");s={name:"wsmInOrderAdd",props:["id","sitem","newTime","modelSitem"],components:{wsmInOrderErrorModel:r("4429").default},mixins:[s.a],computed:{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"wsmInOrderDetail"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}},data:function(){return{loading:!0,rulesThis:this.rules,status:"",showModel:!1,modelAllnum:"",modelitem:null,modelId:"",ruleForm:{wsm_num:""},rules:{wsm_num:{required:!0,validator:function(e,t,r){""===t?r(new Error("不能为空!")):Object(i.k)(t)?r():r(new Error("仅支持整数!"))},trigger:"blur"}},columns:[{prop:"num",label:"异常数量"},{prop:"error_msg",label:"异常原因"},{prop:"error_img",label:"异常图片"},{prop:"remark",label:"异常备注"}],tableForm:{error_list:[]},tableRules:{}}},watch:{newTime:function(e){e&&this.initForm()}},mounted:function(){this.initForm()},methods:{initForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,e.rulesThis=e.rules,t.next=4,e.resetForm();case 4:e.loading=!1;case 5:case"end":return t.stop()}}),t)})))()},errorModel:function(e){var t;e&&(-1===(t=e.index)?this.tableForm.error_list.push(e):this.tableForm.error_list[t]=e)},resetForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$nextTick((function(){var t,r,a;e.$refs.ruleForm&&(e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),t=(a=e.sitem).send_num,r=a.wsm_num,a=a.status,e.status=a,e.ruleForm={send_num:t||"",wsm_num:r||""}),e.$refs.tableForm&&(e.$refs.tableForm.resetFields(),e.$refs.tableForm.clearValidate(),(a=e.sitem.checkinfo).map((function(e){e.error_img=e.error_img.split(",")})),e.tableForm={error_list:a||[]})}));case 2:case"end":return t.stop()}}),t)})))()},number_change:function(e,t){var r=this;return Object(a.a)(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:r.ruleForm[t]=e+""||"0",r.$refs.ruleForm.validateField(t);case 2:case"end":return a.stop()}}),a)})))()},addError:function(e){this.modelAllnum="2",this.modelitem=-1===e?{}:this.tableForm.error_list[e],this.modelId=e,this.showModel=!0},submitForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.ruleForm.validate(function(){var t=Object(a.a)(regeneratorRuntime.mark((function t(r){var a,s,i,o,l,c;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r){t.next=32;break}if(e.loading=!0,s=JSON.parse(JSON.stringify(e.ruleForm)),a=parseInt(s.send_num),s=parseInt(s.wsm_num),i=0,o=[],a===s&&0<e.tableForm.error_list.length)return e.$message.warning("正常数量与发货数量一致,无需填写异常原因!"),e.loading=!1,t.abrupt("return");t.next=8;break;case 8:if(e.tableForm.error_list.forEach((function(e){i+=parseInt(e.num),e={num:e.num,error_code:e.error_code,error_img:e.error_img.join(","),remark:e.remark},o.push(e)})),i+s!==a)return e.$message.warning("异常数量总数与发货总数不一致!"),e.loading=!1,t.abrupt("return");t.next=14;break;case 14:return l={wsm_in_code:e.id,order_num:s+"",error_list:o},t.next=17,n.a.orderincheck(l);case 17:if(c=t.sent,e.loading=!1,!c||0!==c.code){t.next=24;break}e.$notify.success({title:"添加成功",message:""}),e.$emit("refresh"),t.next=30;break;case 24:if(c&&100<=c.code&&c.code<=104)return t.next=27,e.logout();t.next=29;break;case 27:t.next=30;break;case 29:e.$message.warning(c.message);case 30:t.next=34;break;case 32:return t.abrupt("return",!1);case 34:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()}}},r("114f"),r=r("2877"),r=Object(r.a)(s,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[r("el-row",[r("el-col",{attrs:{span:4}},[r("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,rules:e.rulesThis,"status-icon":"",size:"mini","label-width":"80px"}},[r("el-form-item",{attrs:{label:"发货总数"}},[r("el-input",{attrs:{placeholder:"发货总数",disabled:"",maxlength:"100"},model:{value:e.ruleForm.send_num,callback:function(t){e.$set(e.ruleForm,"send_num",t)},expression:"ruleForm.send_num"}})],1),r("el-form-item",{attrs:{label:"正常数量",prop:"wsm_num"}},[r("digital-input",{attrs:{values:e.ruleForm.wsm_num,placeholder:"正常数量",min:0,disabled:!("1"===e.status&&e.powers.some((function(e){return"029"==e}))),max:e.ruleForm.send_num,position:"right",precision:0,size:"mini",controls:!1,append:""},on:{reschange:function(t){return e.number_change(t,"wsm_num")}}})],1)],1)],1),r("el-col",{staticStyle:{padding:"0 0 0 10px"},attrs:{span:20}},[r("wsm-in-order-error-model",{attrs:{showModel:e.showModel,id:e.modelId,sitem:e.modelitem,allnum:e.modelAllnum},on:{refresh:e.errorModel,cancel:function(t){e.showModel=!1}}}),r("el-form",{ref:"tableForm",staticClass:"demo-tableForm",attrs:{model:e.tableForm,rules:e.tableRules}},[r("el-table",{attrs:{data:e.tableForm.error_list,border:"",size:"mini","row-key":"key"}},[e._l(e.columns,(function(t,a){return["error_img"!==t.prop?r("el-table-column",{key:t.prop+a,attrs:{prop:t.prop,"show-overflow-tooltip":"",label:t.label}}):e._e(),"error_img"===t.prop?r("el-table-column",{key:t.prop+a,attrs:{prop:t.prop,label:t.label,width:"350px"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("ul",{staticClass:"el-table-column-error_img-ul clear"},e._l(t.row.error_img,(function(e){return r("li",{directives:[{name:"viewer",rawName:"v-viewer"}],key:e,staticClass:"hover"},[r("img",{attrs:{src:e,alt:""}})])})),0)]}}],null,!0)}):e._e()]})),"1"===e.status&&e.powers.some((function(e){return"029"==e}))?r("el-table-column",{attrs:{fixed:"right",width:"80"},scopedSlots:e._u([{key:"header",fn:function(t){return[r("span",[e._v("操作")]),r("el-tooltip",{staticClass:"fr",staticStyle:{margin:"3px 0 0 0"},attrs:{effect:"dark",content:"添加",placement:"top"}},[r("i",{staticClass:"el-icon-circle-plus-outline tb-icon",staticStyle:{color:"#63cbe7"},on:{click:function(t){return e.addError(-1)}}})])]}},{key:"default",fn:function(t){return[r("el-tooltip",{attrs:{effect:"dark",content:"编辑",placement:"top"}},[r("i",{staticClass:"el-icon-edit tb-icon",on:{click:function(r){return e.addError(t.$index)}}})])]}}],null,!1,1078351568)}):e._e()],2)],1)],1),r("el-col",{staticStyle:{"text-align":"right",padding:"10px 0"},attrs:{span:24}},["1"===e.status&&e.powers.some((function(e){return"029"==e}))?r("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.submitForm}},[e._v("保 存 ")]):e._e()],1)],1)],1)}),[],!1,null,"511e73d5",null);t.default=r.exports},"44e6":function(e,t,r){},4504:function(e,t,r){"use strict";r.r(t);var a=r("9f53"),n=r("db99");a={name:"allot",props:["showModel","id","sitem"],mixins:[a.a],components:{AddForm:n.default},data:function(){return{isDisabled:!0,isDisabledIn:!0,loading:!1,title:"新建调拨申请",showModelThis:this.showModel}},watch:{showModel:function(e){this.showModelThis=e},showModelThis:function(e){e||this.$emit("cancel")}},methods:{closeModel:function(){this.showModelThis=!1},refresh:function(e){this.showModelThis=e,this.$emit("refresh",!0)}}},n=r("2877"),r=Object(n.a)(a,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:e.title,center:!0,align:"left",top:"5vh",width:"1040px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)"},on:{close:function(t){e.showModelThis=!1},"update:visible":function(t){e.showModelThis=t}}},[t("el-row",{staticStyle:{"margin-top":"-20px"},attrs:{gutter:10}},[t("el-col",{attrs:{span:24}},[e.showModelThis?t("add-form",{attrs:{id:e.id,sitem:{}},on:{closeModel:e.closeModel,refresh:e.refresh}}):e._e()],1)],1)],1)}),[],!1,null,null,null);t.default=r.exports},"452f":function(e,t,r){"use strict";var a=r("1b69"),n="admin/";t.a={add:function(e,t){return Object(a.a)(n+"checkcreate",e,"post",t)},delete:function(e,t){return Object(a.a)(n+"checkedell",e,"post",t)},list:function(e,t){return Object(a.a)(n+"list",e,"post",t)},detail:function(e,t){return Object(a.a)(n+"checkinfo",e,"post",t)},update:function(e,t){return Object(a.a)(n+"checkedit",e,"post",t)},status:function(e,t){return Object(a.a)(n+"checkestatus",e,"post",t)},checkgood:function(e,t){return Object(a.a)(n+"checkgood",e,"post",t)},checkimport:function(e,t){return Object(a.a)(n+"checkimport",e,"post",t)}}},"456f":function(e,t,r){"use strict";var a=r("1b69"),n="admin/";t.a={add:function(e,t){return Object(a.a)(n+"platformcreate",e,"post",t)},detail:function(e,t){return Object(a.a)(n+"platforminfo",e,"post",t)},list:function(e,t){return Object(a.a)(n+"platformlist",e,"post",t)},update:function(e,t){return Object(a.a)(n+"platformedit",e,"post",t)},status:function(e,t){return Object(a.a)(n+"platformstatus",e,"post",t)},delete:function(e,t){return Object(a.a)(n+"platformdelete",e,"post",t)}}},"468d":function(e,t,r){"use strict";r("c231")},"482b":function(e,t,r){"use strict";var a=r("1b69"),n="admin/";t.a={list:function(e,t){return Object(a.a)(n+"businesslist",e,"post",t)},add:function(e,t){return Object(a.a)(n+"businesscreate",e,"post",t)},delete:function(e,t){return Object(a.a)(n+"businessdel",e,"post",t)},detail:function(e,t){return Object(a.a)(n+"businesssinfo",e,"post",t)},update:function(e,t){return Object(a.a)(n+"businessedit",e,"post",t)},status:function(e,t){return Object(a.a)(n+"businessstatus",e,"post",t)},businesstitle:function(e,t){return Object(a.a)(n+"businesstitle",e,"post",t)}}},4862:function(e,t,r){},"48c3":function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=r("5530"),s=(r("96cf"),r("7db0"),r("d3b7"),r("25f0"),r("e9c4"),r("159b"),r("b0c0"),r("a9e3"),r("da35")),i=r("f5ed"),o=r("2f62"),l=r("9f53"),c=r("6b81");i={name:"goodsOnline",mixins:[i.a,l.a],computed:Object(n.a)(Object(n.a)({},Object(o.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"goodsOnline"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),data:function(){return{options1:c.b,options8:c.i,loading:!1,parmValue:{good_name:"",spucode:"",cat_id:"",start:"",end:"",platform_code:"",is_stock:"",page:1,size:15,supplierNo:"",good_type:"",brand_id:"",companyNo:"",exam_status:"",plat_code:"",creater:""},tableData:[],table:{stripe:!0,border:!0,_defaultHeader_:["setcol"]},pageInfo:{size:15,curr:1,total:0},columns:c.a,cat_id:[],brandid:[],select:"1",sinput:""}},mounted:function(){this.cat_id=[],this.brandid=[],this.searchList()},methods:{restSearch:function(){this.cat_id=[],this.brandid=[],this.pageInfo={size:15,curr:1,total:0},this.parmValue={good_name:"",spucode:"",cat_id:"",start:"",end:"",platform_code:"",is_stock:"",page:1,size:15,supplierNo:"",good_type:"",brand_id:"",companyNo:"",exam_status:"",plat_code:"",creater:""},this.searchList()},brandidsearchChange:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){var a;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a=e.id,e.code,e.label,t.brandid=a?[a]:[],t.parmValue.brand_id=t.brandid.toString(),t.pageInfo.curr=1,t.parmValue.page=1,r.next=7,t.searchList();case 7:case"end":return r.stop()}}),r)})))()},handleTime:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t.parmValue.start=e.startTime||"",t.parmValue.end=e.endTime||"",""!==t.parmValue.start&&""!==t.parmValue.end||""===t.parmValue.start&&""===t.parmValue.end)return t.pageInfo.curr=1,t.parmValue.page=1,r.next=7,t.searchList();r.next=7;break;case 7:case"end":return r.stop()}}),r)})))()},get_againonline:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t.$confirm("确定要重新发起上线流程?",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(a.a)(regeneratorRuntime.mark((function r(){var a,n;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return t.loading=!0,a={skuCode:e},r.next=4,s.a.againonline(a);case 4:if((n=r.sent)&&0===n.code)return t.loading=!1,t.$notify.success({title:"重新发起上线流程成功!",message:""}),r.next=10,t.searchList();r.next=12;break;case 10:r.next=19;break;case 12:if(n&&100<=n.code&&n.code<=104)return r.next=15,t.logout();r.next=17;break;case 15:r.next=19;break;case 17:t.loading=!1,t.$message.warning(n.message);case 19:case"end":return r.stop()}}),r)})))).catch((function(){}));case 2:case"end":return r.stop()}}),r)})))()},get_donline:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t.$confirm("确定要下线商品?",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(a.a)(regeneratorRuntime.mark((function r(){var a,n;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return t.loading=!0,a={skuCode:e,exam_status:"8"},r.next=4,s.a.status(a);case 4:if((n=r.sent)&&0===n.code)return t.loading=!1,t.$notify.success({title:"下线商品成功!",message:""}),r.next=10,t.searchList();r.next=12;break;case 10:r.next=19;break;case 12:if(n&&100<=n.code&&n.code<=104)return r.next=15,t.logout();r.next=17;break;case 15:r.next=19;break;case 17:t.loading=!1,t.$message.warning(n.message);case 19:case"end":return r.stop()}}),r)})))).catch((function(){}));case 2:case"end":return r.stop()}}),r)})))()},changeStatus:function(e,t){var r=this;return Object(a.a)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r.$confirm("确定要改为".concat("1"===t?"禁用":"启用","?"),{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(a.a)(regeneratorRuntime.mark((function a(){var n,i;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return r.loading=!0,n={id:e,status:"1"===t?"0":"1"},a.next=4,s.a.status(n);case 4:if((i=a.sent)&&0===i.code)return r.loading=!1,r.$notify.success({title:"状态修改成功!",message:""}),a.next=10,r.searchList();a.next=12;break;case 10:a.next=19;break;case 12:if(i&&100<=i.code&&i.code<=104)return a.next=15,r.logout();a.next=17;break;case 15:a.next=19;break;case 17:r.loading=!1,r.$message.warning(i.message);case 19:case"end":return a.stop()}}),a)})))).catch((function(){}));case 2:case"end":return n.stop()}}),n)})))()},deleteItem:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t.$confirm("确定要删除?",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(a.a)(regeneratorRuntime.mark((function r(){var a,n;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a={codes:[e]},r.next=3,s.a.delete(a);case 3:if(!(n=r.sent)||0!==n.code){r.next=9;break}t.$notify.success({title:"删除成功",message:""}),t.searchList(),r.next=15;break;case 9:if(n&&100<=n.code&&n.code<=104)return r.next=12,t.logout();r.next=14;break;case 12:r.next=15;break;case 14:t.$message.warning(n.message);case 15:case"end":return r.stop()}}),r)})))).catch((function(){}));case 2:case"end":return r.stop()}}),r)})))()},searchList:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r,a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(""!==e.parmValue.start&&""===e.parmValue.end||""===e.parmValue.start&&""!==e.parmValue.end)return e.$message.warning("时间区间不完整!"),t.abrupt("return");t.next=3;break;case 3:return e.loading=!0,(r=JSON.parse(JSON.stringify(e.parmValue))).good_name="1"===e.select?e.sinput:"",r.spucode="2"===e.select?e.sinput:"",r.companyNo="5"===e.select?e.sinput:"",r.plat_code="6"===e.select?e.sinput:"",r.creater="7"===e.select?e.sinput:"",t.next=12,s.a.list(r);case 12:if(!(a=t.sent)||0!==a.code||!a.data){t.next=19;break}e.tableData=a.data.list,e.tableData.forEach((function(e){e.cat_name="",(e.cat_info||[]).forEach((function(t,r){e.cat_name+=0==r?t.name:"/"+t.name}))})),e.pageInfo.total=Number(a.data.count),t.next=26;break;case 19:if(a&&100<=a.code&&a.code<=104)return t.next=22,e.logout();t.next=24;break;case 22:t.next=26;break;case 24:e.tableData=[],e.pageInfo.total=0;case 26:e.loading=!1;case 27:case"end":return t.stop()}}),t)})))()},goods_class_change:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return t.cat_id=e,t.parmValue.cat_id=0===t.cat_id.length?"":t.cat_id[t.cat_id.length-1],t.pageInfo.curr=1,t.parmValue.page=1,r.next=6,t.searchList();case 6:case"end":return r.stop()}}),r)})))()}}},l=r("2877"),n=Object(l.a)(i,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"goodsOnline pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?r("ex-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{table:e.table,data:e.tableData,columns:e.columns,page:e.pageInfo,size:e.size},on:{"page-curr-change":e.handlePageChange,"page-size-change":e.handleSizeChange,"screen-reset":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()},"screen-submit":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},scopedSlots:e._u([{key:"table-header",fn:function(t){return[r("div",{staticStyle:{width:"100%"}},[r("el-row",{staticStyle:{padding:"0 0 10px 80px"}},[r("el-col",{staticStyle:{width:"120px"},attrs:{span:4}},[r("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"",clearable:"",size:e.searchSize,placeholder:"是否定制"},on:{change:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.parmValue.good_type,callback:function(t){e.$set(e.parmValue,"good_type",t)},expression:"parmValue.good_type"}},e._l(e.options1,(function(e){return r("el-option",{key:"good_type"+e.id,attrs:{label:e.name,value:e.id}})})),1)],1),r("el-col",{staticStyle:{width:"303px",padding:"0 0 0 10px"},attrs:{span:6}},[r("period-date-picker",{attrs:{type:1,width:"135px",size:e.searchSize,start:e.parmValue.start,end:e.parmValue.end},on:{timeReturned:e.handleTime}})],1),r("el-col",{staticStyle:{width:"310px",padding:"0 0 0 10px"},attrs:{span:6}},[r("good-class",{attrs:{value:e.parmValue.cat_id,disabled:!1,size:e.searchSize,isDetail:!1,placeholder:"分类"},on:{handleChange:e.goods_class_change}})],1),r("el-col",{staticClass:"fr",staticStyle:{width:"66px",padding:"0 0 0 10px"},attrs:{span:3}},[r("el-button",{attrs:{type:"primary",size:e.searchSize},on:{click:e.searchList}},[e._v(" 刷新 ")])],1),r("el-col",{staticClass:"fr",staticStyle:{width:"66px",padding:"0 0 0 10px"},attrs:{span:3}},[r("el-button",{attrs:{type:"warning",size:e.searchSize},on:{click:e.restSearch}},[e._v(" 重置 ")])],1)],1),r("el-row",[r("el-col",{staticStyle:{width:"200px"},attrs:{span:4}},[r("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"",clearable:"",size:e.searchSize,placeholder:"状态"},on:{change:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.parmValue.exam_status,callback:function(t){e.$set(e.parmValue,"exam_status",t)},expression:"parmValue.exam_status"}},e._l(e.options8,(function(e){return r("el-option",{key:"status"+e.id,attrs:{label:e.name,value:e.id}})})),1)],1),r("el-col",{staticStyle:{width:"240px",padding:"0 0 0 10px"},attrs:{span:4}},[r("search-brand",{attrs:{value:e.brandid,disabled:"view"===e.type||"editCoin"===e.type,size:"mini",isDetail:"add"!==e.type,names:e.brand_name,placeholder:"商品品牌"},on:{searchChange:e.brandidsearchChange}})],1),r("el-col",{staticStyle:{width:"470px",padding:"0 0 0 10px"},attrs:{span:4}},[r("el-input",{attrs:{size:e.searchSize,maxlength:40,placeholder:"关键字"},on:{blur:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.sinput,callback:function(t){e.sinput=t},expression:"sinput"}},[r("el-select",{staticStyle:{width:"140px"},attrs:{slot:"prepend",size:e.searchSize,placeholder:"关键字类型"},on:{change:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},slot:"prepend",model:{value:e.select,callback:function(t){e.select=t},expression:"select"}},[r("el-option",{attrs:{label:"商品名称",value:"1"}}),r("el-option",{attrs:{label:"商品编号",value:"2"}}),r("el-option",{attrs:{label:"业务企业编号",value:"5"}}),r("el-option",{attrs:{label:"平台商品编号",value:"6"}}),r("el-option",{attrs:{label:"创建人",value:"7"}})],1)],1)],1),e.powers.some((function(e){return"003"==e}))?r("el-col",{staticClass:"fr",staticStyle:{width:"66px",padding:"0 0 0 10px"},attrs:{span:3}},[r("el-button",{staticStyle:{float:"right"},attrs:{size:e.searchSize,type:"success"},on:{click:function(t){return e.routeGoto("goodsOnlineAdd",{})}}},[e._v(" 添加 ")])],1):e._e()],1)],1)]}},{key:"good_thumb_img",fn:function(t){return t=t.scope,[t.row.good_thumb_img?r("div",{directives:[{name:"viewer",rawName:"v-viewer"}],staticClass:"hover",staticStyle:{width:"20px",height:"20px"}},[r("img",{staticStyle:{display:"inline-block",width:"100%",height:"100%"},attrs:{src:t.row.good_thumb_img,alt:""}})]):e._e()]}},{key:"status",fn:function(t){var a=t.scope;return[r("el-tag",{attrs:{size:e.tablebtnSize,type:"6"==a.row.status?"":"7"==a.row.status?"danger":"warning"},domProps:{textContent:e._s((e.options8.find((function(e){return e.id==a.row.status}))||{}).name||"--")}})]}},{key:"good_type",fn:function(t){var a=t.scope;return[r("el-tag",{attrs:{size:e.tablebtnSize,type:"0"==a.row.good_type?"warning":""},domProps:{textContent:e._s((e.options1.find((function(e){return e.id==a.row.good_type}))||{}).name||"--")}})]}},{key:"operation",fn:function(t){var a=t.scope;return[e.powers.some((function(e){return"007"==e}))?r("el-tooltip",{attrs:{effect:"dark",content:"详情",placement:"top"}},[r("i",{staticClass:"el-icon-view tb-icon",on:{click:function(t){return e.routeGoto("goodsOnlineDetail",{id:a.row.skuCode,type:"view"})}}})]):e._e(),!e.powers.some((function(e){return"078"==e}))||"7"!==a.row.status&&"8"!==a.row.status?e._e():r("el-tooltip",{attrs:{effect:"dark",content:"重新发起上线流程",placement:"top"}},[r("i",{staticClass:"el-icon-upload tb-icon",on:{click:function(t){return e.get_againonline(a.row.skuCode)}}})]),e.powers.some((function(e){return"079"==e}))&&"8"!==a.row.status?r("el-tooltip",{attrs:{effect:"dark",content:"下线商品",placement:"top"}},[r("i",{staticClass:"el-icon-download tb-icon",on:{click:function(t){return e.get_donline(a.row.skuCode)}}})]):e._e()]}}],null,!1,619010740)}):r("no-auth"),r("add-edit",{attrs:{id:e.modelId,"show-model":e.showModel,sitem:e.sitem},on:{refresh:e.searchList,cancel:function(t){e.showModel=!1}}})],1)}),[],!1,null,"0efcd3c8",null);t.default=n.exports},"490d":function(e,t,r){"use strict";r("4cf5")},"49de":function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=(r("96cf"),r("7db0"),r("d3b7"),r("e9c4"),r("25f0"),r("a434"),r("61f7")),s=r("de14"),i={name:"handover",props:["id","sitem","showModelThis","newTime","orderCode","outCode"],mixins:[r("9f53").a],data:function(){return{isShow:!0,loading:!1,disabled:!0,status:"",showModelThis:this.showModel,is_receive_options:[{value:"1",label:"已收到货"},{value:"0",label:"未收到货"}],resign_name:"",hand_name:"",ruleForm:{is_receive:"",send_num:"",order_type:"1",outCode:"",stock_out_numbers:"",num:"",errorCode:"",except_code:"",img:[],remark:""},rulesThis:this.rules,rules:{is_receive:[{required:!0,message:"请选择收货情况",trigger:"change"}],num:[{required:!0,trigger:"blur",validator:function(e,t,r){""===t?r(new Error("异常数量不能为空!")):Object(n.k)(t)?r():r(new Error("异常数量必须为数字"))}}],errorCode:[{required:!0,message:"请选择异常原因",trigger:"change"}],except_code:[{required:!0,message:"请选择期望意愿",trigger:"change"}],img:[{type:"array",required:!0,message:"异常图片不能为空!",trigger:"change"}],remark:[{required:!0,message:"请输入异常备注",trigger:"blur"}]},reason_options:[],expect_options:[],expect_options1:[{value:"1",label:"退货"},{value:"2",label:"换货"}],expect_options0:[{value:"1",label:"退货"},{value:"2",label:"补发"}],expect_value:"",code:""}},computed:{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"handoverDetail"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}},mounted:function(){this.initForm()},watch:{id:function(e){e&&this.initForm()},newTime:function(e){e&&this.initForm()}},methods:{closeAdd:function(){this.showModelThis=!1},initForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,e.status="",e.rulesThis=e.rules,e.disabled=!1,t.next=6,e.resetForm();case 6:e.loading=!1;case 7:case"end":return t.stop()}}),t)})))()},initData:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r,a,n,i,o,l,c;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.sitem)return a=e.sitem.returnCode,a={returnCode:a},t.next=5,s.a.detail(a);t.next=17;break;case 5:if(!(r=t.sent)||0!==r.code||!r.data){t.next=11;break}n=(a=void 0).error_num,i=a.error_img,o=a.error_remark,l=a.except_code,c=a.error_code,e.ruleForm={stock_out_numbers:"",num:n,errorCode:c,except_code:l,img:[i],remark:o},t.next=17;break;case 11:if(r&&100<=r.code&&r.code<=104)return t.next=14,e.logout();t.next=16;break;case 14:t.next=17;break;case 16:e.$message.warning(r.message);case 17:case"end":return t.stop()}}),t)})))()},is_receive_change:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e.ruleForm.is_receive,e.ruleForm.errorCode="",e.ruleForm.except_code="",e.expect_options=[],e.reason_options=[],""!==r)return e.expect_options=JSON.parse(JSON.stringify("1"===r?e.expect_options1:e.expect_options0)),t.next=9,e.getReason("1"===r?"3":"6");t.next=9;break;case 9:case"end":return t.stop()}}),t)})))()},number_change:function(e,t){var r=this;return Object(a.a)(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:r.ruleForm[t]=e+""||"0",r.$refs.ruleForm.validateField(t);case 2:case"end":return a.stop()}}),a)})))()},resetForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.resign_name="",e.hand_name="",e.status="",t.next=5,e.$nextTick((function(){var t;e.$refs.ruleForm&&(e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),t=e.sitem.send_num,e.ruleForm={is_receive:"",send_num:t||"",num:t||"",errorCode:"",except_code:"",img:[],outCode:e.code})}));case 5:case"end":return t.stop()}}),t)})))()},submitForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.ruleForm.validate(function(){var t=Object(a.a)(regeneratorRuntime.mark((function t(r){var a,n,i,o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r)return(a=JSON.parse(JSON.stringify(e.ruleForm))).outCode=e.sitem.outCode,a.img=a.img.toString(),t.next=6,s.a.add(a);t.next=24;break;case 6:if(a=t.sent,n=a.code,a.data,i=a.message,0!==n){t.next=16;break}o="add"===e.id?"添加成功!":"修改成功!",e.$notify.success({title:o,message:""}),e.$emit("refresh",!1),t.next=22;break;case 16:if(100<=n&&n<=104)return t.next=19,e.logout();t.next=21;break;case 19:t.next=22;break;case 21:e.$message.warning(i);case 22:t.next=26;break;case 24:return t.abrupt("return",!1);case 26:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()},getReason:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){var a,n;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a={type:e,page:1,size:100},r.next=3,s.a.reasonList(a);case 3:if(n=r.sent,t.loading=!1,!n||0!==n.code){r.next=9;break}t.reason_options=n.data.list,r.next=15;break;case 9:if(n&&100<=n.code&&n.code<=104)return r.next=12,t.logout();r.next=14;break;case 12:r.next=15;break;case 14:t.$message.warning(n.message);case 15:case"end":return r.stop()}}),r)})))()},UploadErrorEvent:function(e){"break"!==e&&(this.$message.error("图片上传失败!"),this.$refs.ruleForm.validateField("img"))},UploadSuccessEvent:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){var a;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if("noToken"===(a=e.url))return r.next=4,t.logout();r.next=6;break;case 4:r.next=9;break;case 6:t.ruleForm.img.push(a),t.$message.success("图片上传成功!"),t.$refs.ruleForm.validateField("img");case 9:case"end":return r.stop()}}),r)})))()},beforeAvatarUpload:function(e){var t=!1,r=!1;return e&&("image/jpg"!==e.type&&"image/png"!==e.type&&"image/jpeg"!==e.type||(t=!0),r=e.size/1024/1024<1,t||this.$message.error("图片格式不正确!"),r||this.$message.error("图片大小不能超过 1MB!")),t&&r},imgClose:function(e){this.ruleForm.img.splice(e,1),this.$refs.ruleForm.validateField("img")},getMargin:function(){return 0==this.ruleForm.img.length?"margin:0;":this.ruleForm.img.length<3?"margin:0px 0 0 10px":"margin:10px 0 0 10px"},getMargin_li:function(){return this.ruleForm.img.length<=3?"margin:0 0 0 10px":"margin:10px 0 0 10px"}}};r("ede0"),r=r("2877"),r=Object(r.a)(i,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",staticStyle:{width:"100%"},attrs:{loading:e.loading,model:e.ruleForm,"status-icon":"",size:"small",rules:e.rulesThis,"label-width":"80px"}},[r("el-row",[r("el-col",{attrs:{span:6}},[r("el-form-item",{attrs:{label:"收货情况",prop:"is_receive"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{disabled:e.disabled,placeholder:"收货情况"},on:{change:e.is_receive_change},model:{value:e.ruleForm.is_receive,callback:function(t){e.$set(e.ruleForm,"is_receive",t)},expression:"ruleForm.is_receive"}},e._l(e.is_receive_options,(function(e){return r("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),r("el-form-item",{attrs:{label:"发货总量",prop:"send_num",required:""}},[r("el-input",{attrs:{disabled:"",maxlength:"10",placeholder:"发货总量"},model:{value:e.ruleForm.send_num,callback:function(t){e.$set(e.ruleForm,"send_num",t)},expression:"ruleForm.send_num"}})],1),r("el-form-item",{attrs:{label:"异常数量",prop:"num"}},[r("digital-input",{attrs:{values:e.ruleForm.num,placeholder:"异常数量",min:0,disabled:"0"===e.ruleForm.is_receive,max:e.ruleForm.send_num,position:"right",precision:0,size:"small",controls:!1,append:""},on:{reschange:function(t){return e.number_change(t,"num")}}})],1)],1),r("el-col",{attrs:{span:9}},[r("el-form-item",{attrs:{label:"异常原因",prop:"errorCode"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{disabled:""===e.ruleForm.is_receive,placeholder:"异常原因"},model:{value:e.ruleForm.errorCode,callback:function(t){e.$set(e.ruleForm,"errorCode",t)},expression:"ruleForm.errorCode"}},e._l(e.reason_options,(function(e){return r("el-option",{key:e.id,attrs:{label:e.result,value:e.result_code,disabled:0==e.status}})})),1)],1)],1),r("el-col",{attrs:{span:9}},[r("el-form-item",{attrs:{label:"期望意愿",prop:"except_code"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{disabled:""===e.ruleForm.is_receive,placeholder:"期望意愿"},model:{value:e.ruleForm.except_code,callback:function(t){e.$set(e.ruleForm,"except_code",t)},expression:"ruleForm.except_code"}},e._l(e.expect_options,(function(e){return r("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1)],1),r("el-col",{attrs:{span:18}},[r("el-form-item",{attrs:{label:"异常备注",prop:"remark"}},[r("el-input",{attrs:{placeholder:"异常备注",type:"textarea",rows:3,disabled:e.disabled,maxlength:"250","show-word-limit":""},model:{value:e.ruleForm.remark,callback:function(t){e.$set(e.ruleForm,"remark",t)},expression:"ruleForm.remark"}})],1)],1),r("el-col",{attrs:{span:20}},[r("el-form-item",{attrs:{label:"异常图片",prop:"img"}},[r("div",{staticClass:"el-form-item-error-img"},[r("ul",e._l(e.ruleForm.img,(function(t,a){return r("li",{key:t,staticClass:"images_li",style:e.getMargin_li()},[r("img",{staticStyle:{width:"50px",height:"50px"},attrs:{src:t,alt:""}}),"add"===e.id||"0"===e.status&&e.powers.some((function(e){return"005"==e}))?r("i",{staticClass:"el-icon-close",on:{click:function(t){return e.imgClose(a)}}}):e._e()])})),0),e.ruleForm.img.length<5&&e.isShow?r("div",{staticClass:"btnupload",staticStyle:{position:"relative"},style:e.getMargin(),on:{click:function(t){e.show=!0}}},[r("i",{staticClass:"el-icon-plus avatar-uploader-icon"}),r("file-upload",{staticClass:"Upload",attrs:{accept:".jpg,.png,.jpeg",multiple:!0,uploadcondition:e.beforeAvatarUpload},on:{UploadErrorEvent:e.UploadErrorEvent,UploadSuccessEvent:e.UploadSuccessEvent}})],1):e._e()])])],1),r("el-col",{staticStyle:{"text-align":"right"},attrs:{span:4}},["add"===e.id||"0"===e.status&&e.powers.some((function(e){return"005"==e}))?r("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("保 存")]):e._e()],1)],1)],1)}),[],!1,null,"10819a42",null);t.default=r.exports},"4b76":function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=r("5530"),s=(r("96cf"),r("7db0"),r("d3b7"),r("e9c4"),r("a9e3"),r("f5ed")),i=r("9f53"),o=r("0ee5"),l=r("7dbe"),c=r("82ae"),u=r("2f62");s={name:"zixunOrder",mixins:[s.a,i.a],computed:Object(n.a)(Object(n.a)({},Object(u.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"zixunOrder"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),data:function(){return{select:"1",s_input:"",options:[{id:"0",label:"待发布竞标"},{id:"1",label:"招标进行中"},{id:"2",label:"招标已结束"},{id:"3",label:"待选择商品"},{id:"4",label:"已选商品待下单"},{id:"5",label:"已成功转单"},{id:"6",label:"已取消转单"},{id:"7",label:"招标已暂停"}],post_ownOptions:[{id:"1",label:"客户承担"},{id:"2",label:"公司承担"},{id:"3",label:"供应商承担"}],sitem:null,statusOptions:[{id:"0",label:"待审核"},{id:"1",label:"待物流反馈"},{id:"3",label:"待退货"},{id:"4",label:"已退货"},{id:"5",label:"待客户验收"}],statusList:o.a,loading:!0,showModel:!1,isDetail:!1,modelId:0,parmValue:{khNo:[],zxNo:"",salesman:"",cpName:"",status:"",start:"",end:"",page:1,size:15},tableData:[],table:{stripe:!0,border:!0,_defaultHeader_:["setcol"]},pageInfo:{size:15,curr:1,total:0},columns:c.c}},mounted:function(){this.searchList()},methods:{restSearch:function(){this.select="1",this.s_input="",this.parmValue={khNo:[],zxNo:"",salesman:"",cpName:"",status:"",start:"",end:"",page:1,size:15},this.pageInfo={size:15,curr:1,total:0},this.searchList()},openModal:function(e,t,r){this.showModel=!0,this.modelId=e,this.isDetail=t,this.sitem=r},searchList:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r,a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(""!==e.parmValue.start&&""===e.parmValue.end||""==e.parmValue.start&&""!=e.parmValue.end)return e.$message.warning("开始时间和结束时间不能为空"),t.abrupt("return");t.next=3;break;case 3:return e.loading=!0,(r=JSON.parse(JSON.stringify(e.parmValue))).khNo=0<r.khNo.length?r.khNo[r.khNo.length-1]:"",r.zxNo="1"===e.select?e.s_input:"",r.cpName="2"===e.select?e.s_input:"",r.salesman="3"===e.select?e.s_input:"",t.next=11,l.a.list(r);case 11:if(!(a=t.sent)||0!==a.code||!a.data){t.next=17;break}e.tableData=a.data.list,e.pageInfo.total=Number(a.data.count),t.next=24;break;case 17:if(a&&100<=a.code&&a.code<=104)return t.next=20,e.logout();t.next=22;break;case 20:t.next=24;break;case 22:e.tableData=[],e.pageInfo.total=0;case 24:e.loading=!1;case 25:case"end":return t.stop()}}),t)})))()},handleTime:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(""!==e.startTime?t.parmValue.start=e.startTime:t.parmValue.start="",""!==e.endTime?t.parmValue.end=e.endTime:t.parmValue.end="",""!==t.parmValue.start&&""!==t.parmValue.end)return t.pageInfo.curr=1,t.parmValue.page=1,r.next=7,t.searchList();r.next=7;break;case 7:case"end":return r.stop()}}),r)})))()},customerChange:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){var a;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a=e.code,t.parmValue.khNo=a?[a]:[],t.pageInfo.curr=1,t.parmValue.page=1,r.next=6,t.searchList();case 6:case"end":return r.stop()}}),r)})))()}}},r("b684"),i=r("2877"),n=Object(i.a)(s,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"zixunOrder pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?r("div",[r("ex-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{table:e.table,data:e.tableData,columns:e.columns,page:e.pageInfo,size:e.size},on:{"page-curr-change":e.handlePageChange,"page-size-change":e.handleSizeChange,"screen-reset":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()},"screen-submit":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},scopedSlots:e._u([{key:"table-header",fn:function(t){return[r("div",{staticStyle:{width:"100%"}},[r("el-row",{staticStyle:{padding:"0 0 0 80px"}},[r("el-col",{staticStyle:{width:"130px"},attrs:{span:4}},[r("el-select",{attrs:{size:e.searchSize,clearable:"",placeholder:"状态"},on:{change:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.parmValue.status,callback:function(t){e.$set(e.parmValue,"status",t)},expression:"parmValue.status"}},e._l(e.options,(function(e){return r("el-option",{key:e.id,attrs:{label:e.label,value:e.id}})})),1)],1),r("el-col",{staticStyle:{width:"380px",padding:"0px 0 0 10px"},attrs:{span:4}},[r("search-customer",{attrs:{value:e.parmValue.khNo,size:e.searchSize,placeholder:"企业客户"},on:{searchChange:e.customerChange}})],1),r("el-col",{staticStyle:{width:"66px",float:"right"},attrs:{span:3}},[r("el-button",{staticStyle:{float:"right","margin-left":"5px"},attrs:{size:e.searchSize,type:"primary"},on:{click:e.searchList}},[e._v(" 刷新 ")])],1),r("el-col",{staticClass:"fr",staticStyle:{width:"66px"},attrs:{span:4}},[r("el-button",{staticClass:"fr",attrs:{type:"warning",size:e.searchSize},on:{click:e.restSearch}},[e._v(" 重置 ")])],1)],1),r("el-row",{staticStyle:{"padding-top":"10px"}},[r("el-col",{staticStyle:{width:"291px"},attrs:{span:4}},[r("period-date-picker",{attrs:{start:e.parmValue.start,end:e.parmValue.end,width:"134px",size:e.searchSize},on:{timeReturned:e.handleTime}})],1),r("el-col",{staticStyle:{width:"420px",padding:"0 0 0 10px"},attrs:{span:4}},[r("el-input",{staticClass:"input-with-select",attrs:{clearable:"",size:e.searchSize,placeholder:"关键字",maxlength:"40"},on:{blur:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.s_input,callback:function(t){e.s_input=t},expression:"s_input"}},[r("el-select",{staticStyle:{width:"140px"},attrs:{slot:"prepend",placeholder:"关键字类型"},slot:"prepend",model:{value:e.select,callback:function(t){e.select=t},expression:"select"}},[r("el-option",{attrs:{label:"咨询单编号",value:"1"}}),r("el-option",{attrs:{label:"商品名称",value:"2"}}),r("el-option",{attrs:{label:"申请人",value:"3"}})],1)],1)],1),e.powers.some((function(e){return"003"==e}))?r("el-col",{staticClass:"fr",staticStyle:{width:"66px",padding:"0 0 0 10px"},attrs:{span:3}},[r("el-button",{staticStyle:{float:"right"},attrs:{size:e.searchSize,type:"success"},on:{click:function(t){return e.routeGoto("zixunOrderDetail",{id:"add",type:"add"})}}},[e._v(" 添加 ")])],1):e._e()],1)],1)]}},{key:"good_img",fn:function(t){return t=t.scope,[t.row.good_img?r("div",{directives:[{name:"viewer",rawName:"v-viewer"}],staticClass:"hover",staticStyle:{width:"20px",height:"20px"}},[r("img",{staticStyle:{display:"inline-block",width:"100%",height:"100%"},attrs:{src:t.row.good_img,alt:""}})]):e._e()]}},{key:"status",fn:function(t){var a=t.scope;return[r("el-tag",{attrs:{size:e.tablebtnSize,type:"5"==a.row.status?"":"6"==a.row.status||"7"==a.row.status?"info":"warning"},domProps:{textContent:e._s((e.options.find((function(e){return e.id==a.row.status}))||{}).label||"--")}})]}},{key:"is_project",fn:function(t){return t=t.scope,[r("el-tag",{attrs:{size:"mini",type:"1"===t.row.is_project?"":"success"}},[e._v(e._s("0"===t.row.is_project?"非项目咨询单":"1"===t.row.is_project?"项目咨询单":"--"))])]}},{key:"operation",fn:function(t){var a=t.scope;return[e.powers.some((function(e){return"007"==e}))?r("el-tooltip",{attrs:{effect:"dark",content:"详情",placement:"top"}},[r("i",{staticClass:"el-icon-view tb-icon",on:{click:function(t){return e.routeGoto("zixunOrderDetail",{id:a.row.infoNo,type:"view"})}}})]):e._e()]}}],null,!1,721727938)})],1):r("div",[r("no-auth")],1)])}),[],!1,null,"6c46aa66",null);t.default=n.exports},"4b87":function(e,t,r){"use strict";r("007d")},"4c1f":function(e,t,r){"use strict";var a=r("1b69");t.a={list:function(e,t){return Object(a.a)("admin/versionlist",e,"post",t)}}},"4cf5":function(e,t,r){},"4cf7":function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=r("ade3"),s=r("5530"),i=(r("96cf"),r("7db0"),r("d3b7"),r("e9c4"),r("a9e3"),r("159b"),r("b0c0"),r("f5ed")),o=r("9f53"),l=[{prop:"cgdNo",label:"采购单编号",width:"160"},{prop:"returnCode",label:"退货单编号",width:"160"},{prop:"status",label:"状态",_slot_:"status",width:"120px"},{prop:"order_type",label:"退货来源",_slot_:"order_type",width:"80px"},{prop:"good_type_code",label:"商品属性编码",width:"140"},{prop:"good_class",label:"商品分类",width:"130"},{prop:"good_name",label:"商品名称",width:"150"},{prop:"return_num",label:"退货数量"},{prop:"good_total",label:"退货总金额",width:"100"},{prop:"",label:"操作",fixed:"right",width:"50px",_noset_:!0,_slot_:"operation"}],c=r("8775"),u=r("2f62");i={name:"purchaseReturn",mixins:[i.a,o.a],computed:Object(s.a)(Object(s.a)({},Object(u.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"purchaseReturn"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),data:function(){var e;return{select:"returnCode",s_input:"",sitem:null,order_type_options:[{id:"1",label:"备库单"},{id:"2",label:"咨询单"}],statusOptions:[{id:"1",label:"待发起审核"},{id:"2",label:"待业务审核"},{id:"3",label:"待通知财务"},{id:"4",label:"待填写物流"}],loading:!0,showModel:!1,isDetail:!1,modelId:0,parmValue:(e={cgdNo:"",returnCode:"",good_type_code:"",good_name:"",status:""},Object(n.a)(e,"status",""),Object(n.a)(e,"page",1),Object(n.a)(e,"size",15),e),tableData:[],table:{stripe:!0,border:!0,_defaultHeader_:["setcol"]},pageInfo:{size:15,curr:1,total:0},columns:l}},mounted:function(){this.searchList()},methods:{restSearch:function(){this.s_input="",this.select="returnCode",this.parmValue={cgdNo:"",returnCode:"",good_type_code:"",good_name:"",status:"",page:1,size:15},this.pageInfo={size:15,curr:1,total:0},this.searchList()},openModal:function(e,t,r){this.showModel=!0,this.modelId=e,this.isDetail=t,this.sitem=r},deleteById:function(e,t){var r=this;return Object(a.a)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r.$confirm("确定要删除?",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(a.a)(regeneratorRuntime.mark((function a(){var n,s;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return n={id:e,status:"1"===t?"0":"1"},a.next=3,c.a.status(n);case 3:if(!(s=a.sent)||0!==s.code){a.next=9;break}r.$notify.success({title:"删除成功",message:""}),r.searchList(),a.next=15;break;case 9:if(s&&100<=s.code&&s.code<=104)return a.next=12,r.logout();a.next=14;break;case 12:a.next=15;break;case 14:r.$message.warning(s.message);case 15:case"end":return a.stop()}}),a)})))).catch((function(){}));case 2:case"end":return n.stop()}}),n)})))()},searchList:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r,a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,r=JSON.parse(JSON.stringify(e.parmValue)),t.next=4,c.a.list(r);case 4:if(!(a=t.sent)||0!==a.code||!a.data){t.next=11;break}e.tableData=a.data.list,e.pageInfo.total=Number(a.data.count),e.tableData.forEach((function(e){e.good_class="",e.can&&0<e.can.length&&e.can.forEach((function(t,r){e.good_class+=0===r?t.name:"/"+t.name}))})),t.next=18;break;case 11:if(a&&100<=a.code&&a.code<=104)return t.next=14,e.logout();t.next=16;break;case 14:t.next=18;break;case 16:e.tableData=[],e.pageInfo.total=0;case 18:e.loading=!1;case 19:case"end":return t.stop()}}),t)})))()},statusConfirm:function(e,t){var r=this;return Object(a.a)(regeneratorRuntime.mark((function n(){var s;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return s="1"===t?"禁用":"启用",n.next=3,r.$confirm("确定要改为"+s+"?",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(a.a)(regeneratorRuntime.mark((function a(){var n,s;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return r.loading=!0,n={id:e,status:"1"===t?"0":"1"},a.next=4,c.a.status(n);case 4:if((s=a.sent)&&0===s.code)return r.loading=!1,r.$notify.success({title:"状态修改成功!",message:""}),a.next=10,r.searchList();a.next=12;break;case 10:a.next=18;break;case 12:if(s&&100<=s.code&&s.code<=104)return a.next=15,r.logout();a.next=17;break;case 15:a.next=18;break;case 17:r.$message.warning(s.message);case 18:case"end":return a.stop()}}),a)})))).catch((function(){}));case 3:case"end":return n.stop()}}),n)})))()},handleCompany:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return e&&e.code&&(t.parmValue.postCompany=[e.shortName],t.parmValue.page=1),r.next=5,t.searchList();case 5:case"end":return r.stop()}}),r)})))()},handleValue:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.parmValue.returnCode="returnCode"===e.select?e.s_input:"",e.parmValue.cgdNo="cgdNo"===e.select?e.s_input:"",e.parmValue.good_type_code="good_type_code"===e.select?e.s_input:"",e.parmValue.good_name="good_name"===e.select?e.s_input:"",t.next=6,e.searchList();case 6:case"end":return t.stop()}}),t)})))()},handleTime:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(""!==e.startTime?t.parmValue.start=e.startTime:t.parmValue.start="",""!==e.endTime?t.parmValue.end=e.endTime:t.parmValue.end="",""!==t.parmValue.start&&""!==t.parmValue.end)return t.parmValue.page=1,r.next=6,t.searchList();r.next=6;break;case 6:case"end":return r.stop()}}),r)})))()}}},r("490d"),o=r("2877"),s=Object(o.a)(i,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"purchaseReturn pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?r("div",[r("ex-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{table:e.table,data:e.tableData,columns:e.columns,page:e.pageInfo,size:e.size},on:{"page-curr-change":e.handlePageChange,"page-size-change":e.handleSizeChange,"screen-reset":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()},"screen-submit":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},scopedSlots:e._u([{key:"table-header",fn:function(t){return[r("div",{staticStyle:{width:"100%"}},[r("el-row",{staticStyle:{padding:"0 0 0 80px"}},[r("el-col",{staticStyle:{width:"150px",padding:"0 0 0 0px"},attrs:{span:4}},[r("el-select",{staticStyle:{width:"100%"},attrs:{size:e.searchSize,filterable:"",clearable:"",placeholder:"状态"},on:{change:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.parmValue.status,callback:function(t){e.$set(e.parmValue,"status",t)},expression:"parmValue.status"}},e._l(e.statusOptions,(function(e){return r("el-option",{key:"status"+e.id,attrs:{label:e.label,value:e.id}})})),1)],1),r("el-col",{staticStyle:{width:"400px",padding:"0 0 0 10px"},attrs:{span:6}},[r("el-input",{staticClass:"input-with-select",attrs:{clearable:"",placeholder:"关键字",maxlength:"40",size:e.searchSize},model:{value:e.s_input,callback:function(t){e.s_input=t},expression:"s_input"}},[r("el-select",{staticStyle:{width:"125px"},attrs:{slot:"prepend",placeholder:"关键字类型"},on:{change:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},slot:"prepend",model:{value:e.select,callback:function(t){e.select=t},expression:"select"}},[r("el-option",{attrs:{label:"退货单编号",value:"returnCode"}}),r("el-option",{attrs:{label:"采购单编号",value:"cgdNo"}}),r("el-option",{attrs:{label:"商品属性编码",value:"good_type_code"}}),r("el-option",{attrs:{label:"商品名称",value:"good_name"}})],1),r("el-button",{attrs:{slot:"append",icon:"el-icon-search"},on:{click:e.handleValue},slot:"append"})],1)],1),r("el-col",{staticStyle:{width:"66px",float:"right"},attrs:{span:3}},[r("el-button",{staticStyle:{float:"right","margin-left":"5px"},attrs:{size:e.searchSize,type:"primary"},on:{click:e.searchList}},[e._v(" 刷新 ")])],1),r("el-col",{staticClass:"fr",staticStyle:{width:"66px",padding:"0 0 0 10px"},attrs:{span:4}},[r("el-button",{staticClass:"fr",attrs:{type:"warning",size:e.searchSize},on:{click:e.restSearch}},[e._v(" 重置 ")])],1)],1)],1)]}},{key:"status",fn:function(t){var a=t.scope;return[r("el-tag",{attrs:{size:e.tablebtnSize,type:"0"==a.row.status?"warning":""},domProps:{textContent:e._s((e.statusOptions.find((function(e){return e.id==a.row.status}))||{}).label||"--")}})]}},{key:"order_type",fn:function(t){var a=t.scope;return[r("p",{domProps:{textContent:e._s((e.order_type_options.find((function(e){return e.id==a.row.order_type}))||{}).label||"--")}})]}},{key:"operation",fn:function(t){var a=t.scope;return[e.powers.some((function(e){return"007"==e}))?r("el-tooltip",{attrs:{effect:"dark",content:"详情",placement:"top"}},[r("i",{staticClass:"el-icon-view tb-icon",on:{click:function(t){return e.routeGoto("purchaseReturnDetail",{id:a.row.returnCode})}}})]):e._e(),e.powers.some((function(e){return"005"==e}))?r("el-tooltip",{attrs:{effect:"dark",content:"修改",placement:"top"}},[r("i",{staticClass:"el-icon-edit tb-icon",on:{click:function(t){return e.openModal(a.row.id,!1,a.row)}}})]):e._e(),e.powers.some((function(e){return"004"==e}))&&"1"===a.row.status?r("el-tooltip",{attrs:{effect:"dark",content:"禁用",placement:"top"}},[r("i",{staticClass:"el-icon-video-pause tb-icon",on:{click:function(t){return e.statusConfirm(a.row.id,a.row.status)}}})]):e._e(),e.powers.some((function(e){return"004"==e}))&&"0"===a.row.status?r("el-tooltip",{attrs:{effect:"dark",content:"启用",placement:"top"}},[r("i",{staticClass:"el-icon-video-play tb-icon",on:{click:function(t){return e.statusConfirm(a.row.id,a.row.status)}}})]):e._e()]}}],null,!1,3133081479)})],1):r("div",[r("no-auth")],1)])}),[],!1,null,"4414fd35",null);t.default=s.exports},"4d21":function(e,t,r){"use strict";r("69de")},"4d66":function(e,t,r){"use strict";var a=r("1b69"),n="admin/";t.a={list:function(e,t){return Object(a.a)(n+"golpricelast",e,"post",t)},status:function(e,t){return Object(a.a)(n+"goldpricestatus",e,"post",t)},delete:function(e,t){return Object(a.a)(n+"goldpricedelect",e,"post",t)},add:function(e,t){return Object(a.a)(n+"goldpricecreate",e,"post",t)},update:function(e,t){return Object(a.a)(n+"golpriceedit",e,"post",t)},ecordList:function(e,t){return Object(a.a)(n+"goldpricelist",e,"post",t)}}},"4f6a":function(e,t,r){},"51d8":function(e,t,r){"use strict";r("8b37")},"52dd":function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=(r("96cf"),r("7db0"),r("d3b7"),r("159b"),r("b0c0"),r("9f53")),s=r("e5ab"),i=r("4449"),o=r("431b"),l=r("6dad"),c=[{prop:"wsm_in_code",label:"入库单编号",span:6},{prop:"status",label:"入库单状态",_slot_:"status",span:6},{prop:"cgdNo",label:"采购单编号",span:6},{prop:"order_type",label:"采购单来源",_slot_:"order_type",span:6},{prop:"company",label:"购买方公司",_slot_:"company"},{prop:"wsm",label:"仓库信息",_slot_:"wsm"},{prop:"post_fee",label:"快递费用",span:4},{prop:"good_price",label:"采购单价",span:4},{prop:"good_num",label:"采购总数",span:4},{prop:"send_num",label:"入库数量",span:4},{prop:"sendtype",label:"发货方式",_slot_:"sendtype",span:4},{prop:"apply_name",label:"发货人",span:4},{prop:"post_company",label:"快递公司",span:6},{prop:"post_code",label:"快递编号",span:6},{prop:"sendtime",label:"发货时间",span:6},{prop:"addtime",label:"创建时间",span:6}],u=r("ebea");n={name:"wsmInOrderDetail",mixins:[n.a],components:{wsmInOrderRecordForm:i.default,wsmInOrderCheckForm:o.default,wsmInOrderReturnForm:l.default},computed:{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"wsmInOrderDetail"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}},data:function(){return{activeTabs:"1",ShowDataTableColumns:c,activeNames:["0","1","2","3","4","5","6","7","8","9","10"],order_type_options:u.b,sitem:null,status:"",statusOptions:[{value:"0",label:"待发货"},{value:"1",label:"待验货"},{value:"2",label:"待审核"},{value:"3",label:"待入库"},{value:"4",label:"入库完成"},{value:"5",label:"退货待物流"},{value:"6",label:"退货完成"}],statusList:[{code:"0",label:"待发货"},{code:"1",label:"待验货"},{code:"2",label:"待审核"},{code:"3",label:"待入库"},{code:"4",label:"无退货入库成功"},{code:"5",label:"退货成功"}],newTime:"",loading:!1,queryId:""}},mounted:function(){this.status="",this.queryId=this.$route.query.id,this.initData()},methods:{getNewTime:function(){this.newTime=(new Date).valueOf()},setStatus:function(e,t,r){var n=this;return Object(a.a)(regeneratorRuntime.mark((function a(){var i,o;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return i={wsm_in_code:n.queryId,remark:r||"",status:e},a.next=3,s.a.orderinstatus(i);case 3:if(o=a.sent,n.loading=!1,!o||0!==o.code){a.next=10;break}n.$notify.success({title:t+"成功!",message:""}),n.initData(),a.next=16;break;case 10:if(o&&100<=o.code&&o.code<=104)return a.next=13,n.logout();a.next=15;break;case 13:a.next=16;break;case 15:n.$message.warning(o.message);case 16:case"end":return a.stop()}}),a)})))()},examForm:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){var a;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t.loading){r.next=4;break}return a="1"===e.state?"0"===t.sitem.return_num?"4":"5":"2",r.next=4,t.setStatus(a,"提交入库方审核",e.remark);case 4:case"end":return r.stop()}}),r)})))()},initData:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r,a,n,i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,s.a.orderininfo({wsm_in_code:e.queryId});case 2:if(!(r=t.sent)||0!==r.code||!r.data){t.next=11;break}e.sitem=r.data,a=e.sitem,n=a.status,i=a.can,a.wsm_in_code,e.status=n,i&&0<i.length&&(e.sitem.class_cat="",i.forEach((function(t,r){e.sitem.class_cat+=0===r?t.name:"/"+t.name}))),e.getNewTime(),t.next=17;break;case 11:if(r&&100<=r.code&&r.code<=104)return t.next=14,e.logout();t.next=16;break;case 14:t.next=17;break;case 16:e.$message.warning(r.message);case 17:case"end":return t.stop()}}),t)})))()}}},i=r("2877"),o=Object(i.a)(n,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("div",{staticClass:"stockInDetail pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?t("div",{staticStyle:{width:"100%"}},[t("el-tabs",{model:{value:e.activeTabs,callback:function(t){e.activeTabs=t},expression:"activeTabs"}},[t("el-tab-pane",{attrs:{label:"业务详情",name:"1"}},[t("el-collapse",{staticStyle:{margin:"-18px 0 0 0"},model:{value:e.activeNames,callback:function(t){e.activeNames=t},expression:"activeNames"}},[t("el-collapse-item",{attrs:{title:"入库单信息",name:"0"}},[""!==e.newTime?t("show-data-table",{attrs:{newTime:e.newTime,sitem:e.sitem,columns:e.ShowDataTableColumns}},[t("template",{slot:"company"},[t("span",[e._v(e._s(e.sitem.company))]),t("el-popover",{attrs:{placement:"top",width:"300",trigger:"hover"}},[t("ul",[t("li",[t("span",[e._v("购买方公司编号:")]),t("span",[e._v(e._s(e.sitem.companyNo))])])]),t("i",{staticClass:"el-icon-warning-outline fr",attrs:{slot:"reference"},slot:"reference"})])],1),t("template",{slot:"wsm"},[t("span",[e._v(e._s(e.sitem.wsm_supplier)+"/"+e._s(e.sitem.wsm_name))]),t("el-popover",{attrs:{placement:"top",width:"300",trigger:"hover"}},[t("ul",[t("li",[t("span",[e._v("仓库公司编号:")]),t("span",[e._v(e._s(e.sitem.wsm_supplierNo))])]),t("li",[t("span",[e._v("仓库名称编号:")]),t("span",[e._v(e._s(e.sitem.wsm_code))])])]),t("i",{staticClass:"el-icon-warning-outline fr",attrs:{slot:"reference"},slot:"reference"})])],1),t("template",{slot:"status"},[t("el-tag",{attrs:{size:"mini",type:"0"==e.sitem.status?"warning":""},domProps:{textContent:e._s((e.statusOptions.find((function(t){return t.value==e.sitem.status}))||{}).label||"--")}})],1),t("template",{slot:"order_type"},[t("el-tag",{attrs:{size:"mini"},domProps:{textContent:e._s((e.order_type_options.find((function(t){return t.value==e.sitem.order_type}))||{}).label||"--")}})],1),t("template",{slot:"sendtype"},[t("span",[e._v(e._s("1"==e.sitem.sendtype?"公司自提":"2"===e.sitem.sendtype?"供应商包邮":"--"))])])],2):e._e()],1),t("el-collapse-item",{attrs:{title:"商品信息",name:"2"}},[""!==e.newTime?t("show-goods-data-table",{attrs:{newTime:e.newTime,type:e.sitem.order_type,skucode:e.sitem.skuCode,spucode:e.sitem.spuCode,iscgd:!0}}):e._e()],1),e.sitem&&"1"===e.sitem.sendtype?t("el-collapse-item",{attrs:{title:"入库验收登记",name:"3"}},[""!==e.newTime?t("wsm-in-order-record-form",{attrs:{id:e.queryId,newTime:e.newTime,sitem:e.sitem},on:{refresh:function(t){return e.initData()}}}):e._e()],1):e._e(),e.sitem&&"1"===e.sitem.sendtype&&"0"!==e.status&&"1"!==e.status?t("el-collapse-item",{attrs:{title:"入库验收登记审核",name:"4"}},[""!==e.newTime?t("wsm-in-order-check-form",{attrs:{id:e.queryId,newTime:e.newTime,modelSitem:{},sitem:e.sitem},on:{refresh:function(t){return e.initData()}}}):e._e()],1):e._e(),"3"==e.status&&e.powers.some((function(e){return"031"==e}))&&e.sitem&&"1"===e.sitem.sendtype?t("el-collapse-item",{attrs:{title:"入库审核",name:"5"}},[""!==e.newTime?t("exam-form",{attrs:{statusList:e.statusList,newTime:e.newTime,disabled:!1,isMust:!1},on:{searchChange:e.examForm}}):e._e()],1):e._e(),"5"==e.status&&e.powers.some((function(e){return"032"==e}))&&"1"===e.sitem.sendtype?t("el-collapse-item",{attrs:{title:"入库退货",name:"6"}},[""!==e.newTime?t("wsm-in-order-return-form",{attrs:{id:e.queryId,newTime:e.newTime,modelSitem:{},sitem:e.sitem},on:{refresh:function(t){return e.initData()}}}):e._e()],1):e._e()],1)],1),t("el-tab-pane",{attrs:{label:"审批记录",name:"2"}},[""!==e.newTime?t("process-time-line",{attrs:{newTime:e.newTime,type:"RKD",orderCode:e.queryId}}):e._e()],1)],1)],1):t("div",[t("no-auth")],1)])}),[],!1,null,null,null);t.default=o.exports},"52fb":function(e,t,r){},"539c":function(e,t,r){"use strict";r("78cb")},"539d":function(e,t,r){"use strict";r("0205")},5456:function(e,t,r){"use strict";r("b506")},"547b":function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=(r("96cf"),r("7db0"),r("d3b7"),r("ac1f"),r("1276"),r("a9e3"),r("e9c4"),r("25f0"),r("a434"),r("61f7")),s=r("0ba2e"),i={name:"sellAfterApplyDetail",props:["id","sitem","showModelThis","newTime","orderCode","outCode"],mixins:[r("9f53").a],data:function(){return{isShow:!0,loading:!1,disabled:!0,status:"",showModelThis:this.showModel,resign_name:"",hand_name:"",ruleForm:{send_num:"",order_type:"1",outCode:"",error_num:"",error_img:[],error_remark:"",error_code:"",except_code:[]},rulesThis:this.rules,rules:{error_num:[{required:!0,trigger:"blur",validator:function(e,t,r){""===t?r(new Error("异常数量不能为空!")):Object(n.k)(t)?r():r(new Error("异常数量必须为数字"))}}],error_code:[{required:!0,message:"请选择异常原因",trigger:"change"}],except_code:[{required:!0,message:"请选择期望意愿",trigger:"change"}],error_img:[{type:"array",required:!0,message:"异常图片不能为空!",trigger:"change"}],error_remark:[{required:!0,message:"请输入异常原因备注",trigger:"blur"}]},reason_options:[],reason_value:"",expect_options:[{value:"1",label:"退货"},{value:"2",label:"换货"},{value:"3",label:"改变售价"}],code:""}},computed:{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"sellAfterApplyDetail"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}},mounted:function(){this.getReason(),this.initForm()},watch:{id:function(e){e&&this.initForm()},newTime:function(e){e&&this.initForm()}},methods:{closeAddEdit:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.$emit("closeModel",!1);case 1:case"end":return t.stop()}}),t)})))()},closeAdd:function(){this.showModelThis=!1},initForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,e.status="",e.rulesThis=e.rules,e.disabled=!1,t.next=6,e.resetForm();case 6:e.loading=!1;case 7:case"end":return t.stop()}}),t)})))()},resetForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$nextTick((function(){var t,r,a,n,s,i,o;e.$refs.ruleForm&&(e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),t=(o=e.sitem).error_num,r=o.error_img,a=o.error_remark,n=o.except_code,s=o.error_code,i=o.outCode,o=o.send_num,e.ruleForm={outCode:i||"",error_num:t||"",error_code:s||"",except_code:n||"",error_img:r?r.split(","):[],error_remark:a||"",send_num:o||""})}));case 2:case"end":return t.stop()}}),t)})))()},submitForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.ruleForm.validate(function(){var t=Object(a.a)(regeneratorRuntime.mark((function t(r){var a,n,i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r){t.next=35;break}if(a=e.ruleForm.error_num,Number(e.sitem.send_num)<Number(a))return e.$message.warning("异常数量不能大于发货数量"),t.abrupt("return",!1);t.next=5;break;case 5:return(a=JSON.parse(JSON.stringify(e.ruleForm))).error_img=a.error_img.toString(),a.outCode=e.sitem.outCode,a.orderCode=e.sitem.orderCode,a.num=a.error_num,a.remark=a.error_remark,a.img=a.error_img,a.errorCode=a.error_code,delete a.error_num,delete a.error_remark,delete a.error_img,delete a.error_code,e.$emit("refresh",{status:"4",close:!1}),t.next=20,s.a.add(a);case 20:if(!(n=t.sent)||0!==n.code){t.next=27;break}i="add"===e.id?"添加成功!":"修改成功!",e.$notify.success({title:i,message:""}),"add"===e.id?(e.showModelThis=!1,e.$emit("refresh",{status:"5",close:!1})):e.initForm(),t.next=33;break;case 27:if(n&&100<=n.code&&n.code<=104)return t.next=30,e.logout();t.next=32;break;case 30:t.next=33;break;case 32:e.$message.warning(n.message);case 33:t.next=37;break;case 35:return t.abrupt("return",!1);case 37:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()},open:function(){this.show=!0},getReason:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r,a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r={type:"2",page:1,size:100},t.next=3,s.a.reasonList(r);case 3:if(a=t.sent,e.loading=!1,!a||0!==a.code){t.next=9;break}e.reason_options=a.data.list,t.next=15;break;case 9:if(a&&100<=a.code&&a.code<=104)return t.next=12,e.logout();t.next=14;break;case 12:t.next=15;break;case 14:e.$message.warning(a.message);case 15:case"end":return t.stop()}}),t)})))()},handleAnomalousReason:function(e){this.ruleForm.error_code=e||"",this.$refs.ruleForm.validateField("error_code")},UploadErrorEvent:function(e){"break"!==e&&(this.$message.error("图片上传失败!"),this.$refs.ruleForm.validateField("error_img"))},UploadSuccessEvent:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){var a;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if("noToken"===(a=e.url))return r.next=4,t.logout();r.next=6;break;case 4:r.next=9;break;case 6:t.ruleForm.error_img.push(a),t.$message.success("图片上传成功!"),t.$refs.ruleForm.validateField("error_img");case 9:case"end":return r.stop()}}),r)})))()},beforeAvatarUpload:function(e){var t=!1,r=!1;return e&&("image/jpg"!==e.type&&"image/png"!==e.type&&"image/jpeg"!==e.type||(t=!0),r=e.size/1024/1024<1,t||this.$message.error("图片格式不正确!"),r||this.$message.error("图片大小不能超过 1MB!")),t&&r},imgClose:function(e){this.ruleForm.error_img.splice(e,1),this.$refs.ruleForm.validateField("error_img")},getMargin:function(){return 0==this.ruleForm.error_img.length?"margin:0;":this.ruleForm.error_img.length<3?"margin:0px 0 0 10px":"margin:10px 0 0 10px"},getMargin_li:function(){return this.ruleForm.error_img.length<=3?"margin:0 0 0 10px":"margin:10px 0 0 10px"}}};r("fec6"),r=r("2877"),r=Object(r.a)(i,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",staticStyle:{width:"100%"},attrs:{loading:e.loading,model:e.ruleForm,"status-icon":"",rules:e.rulesThis,"label-width":"80px"}},[r("p",[e._v("disabled"+e._s(e.disabled))]),r("el-row",[r("el-row",[r("el-col",{attrs:{span:8}},[r("el-form-item",{attrs:{label:"发货总量",prop:"send_num"}},[r("el-input",{attrs:{disabled:"",maxlength:"10",placeholder:"发货总量"},model:{value:e.ruleForm.send_num,callback:function(t){e.$set(e.ruleForm,"send_num",t)},expression:"ruleForm.send_num"}})],1)],1),r("el-col",{attrs:{span:8}},[r("el-form-item",{attrs:{label:"异常数量",prop:"error_num"}},[r("el-input",{attrs:{disabled:e.disabled,placeholder:"异常数量",maxlength:"10"},model:{value:e.ruleForm.error_num,callback:function(t){e.$set(e.ruleForm,"error_num",t)},expression:"ruleForm.error_num"}})],1)],1),r("el-col",{attrs:{span:8}},[r("el-form-item",{attrs:{label:"期望意愿",prop:"except_code"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{disabled:e.disabled,placeholder:"期望意愿"},model:{value:e.ruleForm.except_code,callback:function(t){e.$set(e.ruleForm,"except_code",t)},expression:"ruleForm.except_code"}},e._l(e.expect_options,(function(e){return r("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1)],1),r("el-col",{attrs:{span:8}},[r("el-form-item",{attrs:{label:"异常原因",prop:"error_code"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{disabled:e.disabled,placeholder:"异常原因"},model:{value:e.ruleForm.error_code,callback:function(t){e.$set(e.ruleForm,"error_code",t)},expression:"ruleForm.error_code"}},e._l(e.reason_options,(function(e){return r("el-option",{key:e.id,attrs:{label:e.result,value:e.result_code,disabled:0==e.status}})})),1)],1)],1),r("el-col",{attrs:{span:16}},[r("el-form-item",{attrs:{label:"异常备注",prop:"error_remark"}},[r("el-input",{attrs:{type:"textarea",placeholder:"异常原因备注",disabled:e.disabled,maxlength:"250","show-word-limit":""},model:{value:e.ruleForm.error_remark,callback:function(t){e.$set(e.ruleForm,"error_remark",t)},expression:"ruleForm.error_remark"}})],1)],1)],1),r("el-col",{attrs:{span:24}},[r("el-form-item",{attrs:{label:"异常图片",prop:"error_img"}},[r("div",{staticClass:"el-form-item-error-img"},[r("ul",e._l(e.ruleForm.error_img,(function(t,a){return r("li",{key:t,staticClass:"images_li",style:e.getMargin_li()},[r("img",{staticStyle:{width:"254px",height:"164px"},attrs:{src:t,alt:""}}),e.disabled?e._e():r("i",{staticClass:"el-icon-close",on:{click:function(t){return e.imgClose(a)}}})])})),0),e.ruleForm.error_img.length<5&&e.isShow?r("div",{staticClass:"btnupload",staticStyle:{position:"relative"},style:e.getMargin(),on:{click:e.open}},[r("i",{staticClass:"el-icon-plus avatar-uploader-icon"}),r("file-upload",{staticClass:"Upload",attrs:{accept:".jpg,.png,.jpeg",multiple:!0,uploadcondition:e.beforeAvatarUpload},on:{UploadErrorEvent:e.UploadErrorEvent,UploadSuccessEvent:e.UploadSuccessEvent}})],1):e._e()])])],1),r("el-col",{staticStyle:{"text-align":"right"},attrs:{span:24}},["add"===e.id||"0"===e.status&&e.powers.some((function(e){return"005"==e}))?r("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("保 存")]):e._e(),"add"===e.id||"0"===e.status&&e.powers.some((function(e){return"005"==e}))?r("el-button",{on:{click:e.closeAddEdit}},[e._v(e._s(e.isDetail?"关 闭":"取 消"))]):e._e()],1)],1)],1)}),[],!1,null,"405bf156",null);t.default=r.exports},"54d6":function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=r("5530"),s=(r("96cf"),r("7db0"),r("d3b7"),r("e9c4"),r("a9e3"),r("f5ed")),i=r("9f53"),o=r("0ee5"),l=r("1b69"),c=function(e,t){return Object(l.a)("admin/allotlist",e,"post",t)},u=[{prop:"allot_code",label:"调拨编号",width:"158"},{prop:"status",label:"调拨状态",_slot_:"status",width:"130px"},{prop:"apply_name",label:"申请人",width:"80"},{prop:"out_company_name",label:"出库仓库业务公司",width:"172"},{prop:"out_companyNo",label:"出库仓库业务公司编号",width:"158"},{prop:"rname",label:"出库仓库所在公司",width:"172"},{prop:"code",label:"出库仓库所在公司编号",width:"145"},{prop:"name",label:"出库仓库名称",width:"95"},{prop:"wsm_code",label:"出库仓库编号",width:"172"},{prop:"in_company_name",label:"入库仓库业务公司",width:"172"},{prop:"in_companyNo",label:"入库仓库业务公司编号",width:"158"},{prop:"tname",label:"入库仓库所在公司名称",width:"172"},{prop:"rcode",label:"入库仓库所在公司编号",width:"145"},{prop:"wsm_in_name",label:"入库仓库名称",width:"95"},{prop:"wsm_in_code",label:"入库仓库编号",width:"172"},{prop:"addtime",label:"创建时间",width:"145px"},{prop:"",label:"操作",_noset_:!0,fixed:"right",_slot_:"operation",width:"50"}],d=r("4504"),p=r("2f62");s={name:"allot",mixins:[s.a,i.a],components:{addEdit:d.default},computed:Object(n.a)(Object(n.a)({},Object(p.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"allot"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),data:function(){return{supplierNo:"",statusOptions:[{id:"0",label:"待发起流程"},{id:"1",label:"待入库方同意入库"},{id:"2",label:"待出库方发货"},{id:"3",label:"待入库方验货提交"},{id:"4",label:"待验货审核"},{id:"5",label:"调拨已完成"}],statusList:o.a,options:["按出库方筛选","按入库方筛选"],loading:!0,sselect:"按出库方筛选",showModel:!1,isDetail:!1,modelId:0,parmValue:{companyNo:"",start:"",end:"",allot_code:"",supplierNo:[],stockNo:[],page:1,size:15},tableData:[],table:{stripe:!0,border:!0,_defaultHeader_:["setcol"]},pageInfo:{size:15,curr:1,total:0},columns:u}},mounted:function(){this.sselect="按出库方筛选",this.searchList()},methods:{handleTime:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return t.parmValue.start=e.startTime||"",t.parmValue.end=e.endTime||"",t.parmValue.page=1,t.pageInfo.curr=1,r.next=6,t.searchList();case 6:case"end":return r.stop()}}),r)})))()},handleClick:function(e){this.sselect=e},restSearch:function(){this.sselect="按出库方筛选",this.supplierNo="",this.pageInfo={size:15,curr:1,total:0},this.parmValue={companyNo:"",start:"",end:"",allot_code:"",supplierNo:[],stockNo:[],page:1,size:15},this.searchList()},companyNoChange:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){var a;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a=e.code,t.parmValue.companyNo=a||"",t.parmValue.page=1,t.pageInfo.curr=1,r.next=6,t.searchList();case 6:case"end":return r.stop()}}),r)})))()},supplierChange:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){var a;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a=e.code,t.parmValue.supplierNo=a?[a]:[],t.parmValue.page=1,t.pageInfo.curr=1,r.next=6,t.searchList();case 6:case"end":return r.stop()}}),r)})))()},stockChange:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){var a;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a=e.code,t.parmValue.stockNo=a?[a]:[],t.parmValue.page=1,t.pageInfo.curr=1,r.next=6,t.searchList();case 6:case"end":return r.stop()}}),r)})))()},openModal:function(e,t){this.showModel=!0,this.modelId=e,this.isDetail=t},searchList:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r,a,n,s;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(""!==e.parmValue.start&&""===e.parmValue.end||""==e.parmValue.start&&""!=e.parmValue.end)return e.$message.warning("开始时间和结束时间不能为空"),t.abrupt("return");t.next=3;break;case 3:return e.loading=!0,r=JSON.parse(JSON.stringify(e.parmValue)),a=1==r.supplierNo.length?r.supplierNo[0]:"",n=1==r.stockNo.length?r.stockNo[0]:"",delete r.supplierNo,delete r.stockNo,r.wsm_out="按出库方筛选"==e.sselect?n:"",r.wsm_in="按出库方筛选"!=e.sselect?n:"",r.wsm_out_supplierNo="按出库方筛选"==e.sselect?a:"",r.wsm_in_supplierNo="按出库方筛选"!=e.sselect?a:"",t.next=14,c(r);case 14:if(!(s=t.sent)||0!==s.code||!s.data){t.next=20;break}e.tableData=s.data.list,e.pageInfo.total=Number(s.data.count),t.next=27;break;case 20:if(s&&100<=s.code&&s.code<=104)return t.next=23,e.logout();t.next=25;break;case 23:t.next=27;break;case 25:e.tableData=[],e.pageInfo.total=0;case 27:e.loading=!1;case 28:case"end":return t.stop()}}),t)})))()}}},r("25dd"),i=r("2877"),d=Object(i.a)(s,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"allot pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?r("div",[r("ex-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{table:e.table,data:e.tableData,columns:e.columns,page:e.pageInfo,size:e.size},on:{"page-curr-change":e.handlePageChange,"page-size-change":e.handleSizeChange,"screen-reset":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()},"screen-submit":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},scopedSlots:e._u([{key:"table-header",fn:function(t){return[r("div",{staticStyle:{width:"100%"}},[r("el-row",{staticStyle:{padding:"0 0 0 80px"}},[r("el-col",{attrs:{span:24}},[r("el-col",{staticStyle:{width:"160px"},attrs:{span:4}},[r("el-select",{staticStyle:{width:"100%"},attrs:{size:e.searchSize,placeholder:"调拨状态"},on:{change:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.parmValue.status,callback:function(t){e.$set(e.parmValue,"status",t)},expression:"parmValue.status"}},e._l(e.statusOptions,(function(e){return r("el-option",{key:e.id,attrs:{label:e.label,value:e.id}})})),1)],1),r("el-col",{staticStyle:{width:"303px",padding:"0 0 0 10px"},attrs:{span:6}},[r("period-date-picker",{attrs:{type:1,width:"135px",size:e.searchSize,start:e.parmValue.start,end:e.parmValue.end},on:{timeReturned:e.handleTime}})],1),r("el-col",{staticStyle:{width:"235px",padding:"0 0 0 10px"},attrs:{span:4}},[r("el-input",{attrs:{size:e.searchSize,maxlength:40,placeholder:"调拨编号"},model:{value:e.parmValue.allot_code,callback:function(t){e.$set(e.parmValue,"allot_code",t)},expression:"parmValue.allot_code"}})],1),r("el-col",{staticStyle:{width:"66px",float:"right"},attrs:{span:3}},[r("el-button",{staticStyle:{float:"right"},attrs:{size:e.searchSize,type:"primary"},on:{click:e.searchList}},[e._v(" 刷新 ")])],1),r("el-col",{staticStyle:{width:"66px",float:"right"},attrs:{span:4}},[r("el-button",{staticClass:"mr5",staticStyle:{float:"right"},attrs:{type:"warning",size:e.searchSize},on:{click:e.restSearch}},[e._v(" 重置 ")])],1),r("el-col",{staticStyle:{width:"66px",float:"right"},attrs:{span:4}},[r("el-button",{staticClass:"fr",staticStyle:{float:"right"},attrs:{type:"success",size:e.searchSize},on:{click:function(t){return e.openModal("add",!1)}}},[e._v(" 新建 ")])],1)],1)],1),r("el-row",{staticStyle:{padding:"10px 0 0 0"}},[r("el-col",{staticStyle:{width:"125px"},attrs:{span:4}},[r("el-dropdown",{attrs:{size:e.searchSize},on:{command:function(t){return e.handleClick(t)}}},[r("el-button",{attrs:{size:e.searchSize}},[e._v(" "+e._s(e.sselect)+" "),r("i",{staticClass:"el-icon-arrow-down el-icon--right",attrs:{size:e.searchSize}})]),r("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},e._l(e.options,(function(t){return r("el-dropdown-item",{key:t,attrs:{command:t}},[e._v(e._s(t))])})),1)],1)],1),r("el-col",{staticStyle:{width:"280px",padding:"0 0 0 10px"},attrs:{span:12}},[r("search-work-company",{attrs:{value:e.parmValue.companyNo,names:"",size:e.searchSize,"is-detail":"add"!==e.id,placeholder:"业务公司"},on:{searchChange:e.companyNoChange}})],1),r("el-col",{staticStyle:{width:"300px",padding:"0 0 0 10px"},attrs:{span:4}},[r("search-supplier",{attrs:{size:e.searchSize,value:e.parmValue.supplierNo,placeholder:"公司名称",disabled:!1,isDetail:!1},on:{searchChange:e.supplierChange}})],1),r("el-col",{staticStyle:{width:"272px",padding:"0 0 0 10px"},attrs:{span:4}},[r("search-stock",{attrs:{size:e.searchSize,value:e.parmValue.stockNo,placeholder:"仓库名称",disabled:!1,isDetail:!1,isRelation:!0,companyCode:e.supplierNo},on:{searchChange:e.stockChange}})],1)],1)],1)]}},{key:"status",fn:function(t){var a=t.scope;return[r("el-tag",{attrs:{size:e.tablebtnSize,type:"0"==a.row.status?"info":"5"==a.row.status?"success":"warning"},domProps:{textContent:e._s((e.statusOptions.find((function(e){return e.id==a.row.status}))||{}).label||"--")}})]}},{key:"operation",fn:function(t){var a=t.scope;return[e.powers.some((function(e){return"007"==e}))?r("el-tooltip",{attrs:{effect:"dark",content:"详情",placement:"top"}},[r("i",{staticClass:"el-icon-view tb-icon",on:{click:function(t){return e.routeGoto("allotDetail",{id:a.row.id})}}})]):e._e()]}}],null,!1,3140476538)}),r("add-edit",{attrs:{id:e.modelId,sitem:{},"show-model":e.showModel,"is-detail":e.isDetail},on:{refresh:e.searchList,cancel:function(t){e.showModel=!1}}})],1):r("div",[r("no-auth")],1)])}),[],!1,null,"47c24604",null);t.default=d.exports},5534:function(e,t,r){"use strict";r.d(t,"a",(function(){return a})),r.d(t,"b",(function(){return n}));var a=[{prop:"returnCode",label:"售后申请单",width:"160"},{prop:"apply_name",label:"申请人"},{prop:"outCode",label:"发货申请单编号",width:"160"},{prop:"total_num",label:"出库总数"},{prop:"good_code",label:"商品编码",width:"140"},{prop:"good_name",label:"商品名称",width:"150"},{prop:"status",label:"状态",_slot_:"status",width:"120px"},{prop:"addtime",label:"添加时间",width:150},{prop:"customer_name",label:"客户名称",width:"200"},{prop:"",label:"操作",fixed:"right",_noset_:!0,_slot_:"operation",width:50}],n=[{prop:"returnCode",label:"售后申请单号",span:6},{prop:"status",label:"售后申请单状态",_slot_:"status",span:6},{prop:"outCode",label:"发货申请单编号",span:6},{prop:"order_type",label:"订单类别",_slot_:"order_type",span:6},{prop:"is_receive",label:"收货情况",_slot_:"is_receive",span:6},{prop:"addtime",label:"创建时间",span:6},{prop:"total_num",label:"发货总数量",span:4},{prop:"error_num",label:"异常数量",span:4},{prop:"apply_name",label:"申请人",span:4},{prop:"error_msg",label:"异常原因",span:6},{prop:"except_code",label:"期望",_slot_:"except_code",span:6},{prop:"error_img",label:"异常图片",_slot_:"error_img",span:12},{prop:"error_remark",label:"备注",span:24}]},"575e":function(e,t,r){},"57e6":function(e,t,r){},"580f":function(e,t,r){"use strict";r("15f1")},5846:function(e,t,r){},5850:function(e,t,r){},5975:function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=r("5530"),s=(r("96cf"),r("7db0"),r("d3b7"),r("a9e3"),r("f5ed")),i=r("9f53"),o=r("1120"),l=r("2f62"),c=r("fa93");s={name:"stockApply",mixins:[s.a,i.a],computed:Object(n.a)(Object(n.a)({},Object(l.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"stockApply"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),data:function(){return{options:[{value:"1",label:"待采购反馈"},{value:"2",label:"已生成采购单"}],select:"1",input:"",loading:!0,parmValue:{good_code:"",bk_code:"",status:"",apply_name:"",start:"",end:"",good_name:"",page:1,size:15},tableData:[],table:{stripe:!0,border:!0,_defaultHeader_:["setcol"]},pageInfo:{size:15,curr:1,total:0},columns:c.a}},mounted:function(){this.searchList()},methods:{handleTime:function(e){e?(this.parmValue.start=e.startTime,this.parmValue.end=e.endTime):(this.parmValue.start="",this.parmValue.end=""),(""!=this.parmValue.start&&""!=this.parmValue.end||""===this.parmValue.start&&""===this.parmValue.end)&&this.searchList()},restSearch:function(){this.select="",this.input="",this.parmValue={status:"",apply_name:"",good_code:"",good_name:"",start:"",end:"",bk_code:"",page:1,size:15},this.pageInfo={size:15,curr:1,total:0},this.searchList()},searchList:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(""!==e.parmValue.start&&""===e.parmValue.end||""==e.parmValue.start&&""!=e.parmValue.end)return e.$message.warning("开始时间和结束时间不能为空"),t.abrupt("return");t.next=3;break;case 3:return e.loading=!0,e.parmValue.bk_code="1"===e.select?e.input:"",e.parmValue.good_code="2"===e.select?e.input:"",e.parmValue.good_name="3"===e.select?e.input:"",e.parmValue.apply_name="4"===e.select?e.input:"",t.next=10,o.a.list(e.parmValue);case 10:if(!(r=t.sent)||0!==r.code||!r.data){t.next=16;break}e.tableData=r.data.list,e.pageInfo.total=Number(r.data.count),t.next=23;break;case 16:if(r&&100<=r.code&&r.code<=104)return t.next=19,e.logout();t.next=21;break;case 19:t.next=23;break;case 21:e.tableData=[],e.pageInfo.total=0;case 23:e.loading=!1;case 24:case"end":return t.stop()}}),t)})))()}}},i=r("2877"),n=Object(i.a)(s,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"stockApply pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?r("div",[r("ex-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{table:e.table,data:e.tableData,columns:e.columns,page:e.pageInfo,size:e.size},on:{"page-curr-change":e.handlePageChange,"page-size-change":e.handleSizeChange,"screen-reset":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()},"screen-submit":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},scopedSlots:e._u([{key:"table-header",fn:function(t){return[r("div",{staticStyle:{width:"100%"}},[r("el-row",{staticStyle:{padding:"0 0 0 80px"}},[r("el-col",{attrs:{span:24}},[r("el-col",{staticStyle:{width:"295px"},attrs:{span:4}},[r("period-date-picker",{attrs:{start:e.parmValue.start,end:e.parmValue.end,width:"135px",size:e.searchSize},on:{timeReturned:e.handleTime}})],1),r("el-col",{staticStyle:{width:"200px",padding:"0 0 0 10px"}},[r("el-select",{attrs:{clearable:"",size:e.searchSize,placeholder:"备库申请状态"},on:{change:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.parmValue.status,callback:function(t){e.$set(e.parmValue,"status",t)},expression:"parmValue.status"}},e._l(e.options,(function(e){return r("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),r("el-col",{staticStyle:{width:"66px",float:"right"},attrs:{span:3}},[r("el-button",{staticStyle:{float:"right","margin-left":"5px"},attrs:{size:e.searchSize,type:"primary"},on:{click:e.searchList}},[e._v(" 刷新 ")])],1),r("el-col",{staticStyle:{width:"66px",float:"right"},attrs:{span:4}},[r("el-button",{staticClass:"fr",attrs:{type:"warning",size:e.searchSize},on:{click:e.restSearch}},[e._v(" 重置 ")])],1)],1)],1),r("el-row",{staticStyle:{"padding-top":"10px"}},[r("el-col",{staticStyle:{width:"400px"}},[r("el-input",{attrs:{placeholder:"关键字",maxlength:"40",size:e.searchSize},model:{value:e.input,callback:function(t){e.input=t},expression:"input"}},[r("el-select",{staticStyle:{width:"130px"},attrs:{slot:"prepend",placeholder:"关键字类型"},slot:"prepend",model:{value:e.select,callback:function(t){e.select=t},expression:"select"}},[r("el-option",{attrs:{label:"备库申请编号",value:"1"}}),r("el-option",{attrs:{label:"商品属性编号",value:"2"}}),r("el-option",{attrs:{label:"商品名称",value:"3"}}),r("el-option",{attrs:{label:"申请人",value:"4"}})],1),r("el-button",{attrs:{slot:"append",icon:"el-icon-search"},on:{click:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},slot:"append"})],1)],1),e.powers.some((function(e){return"003"==e}))?r("el-col",{staticClass:"fr",staticStyle:{width:"56px"},attrs:{span:3}},[r("el-button",{staticClass:"fl",attrs:{size:e.searchSize,type:"success"},on:{click:function(t){return e.routeGoto("stockApplyDetail",{id:"add",type:"add"})}}},[e._v(" 新建 ")])],1):e._e()],1)],1)]}},{key:"status",fn:function(t){var a=t.scope;return[r("el-tag",{attrs:{size:e.tablebtnSize,type:"0"==a.row.status?"warning":"3"==a.row.status?"success":"4"==a.row.status?"danger":""},domProps:{textContent:e._s((e.options.find((function(e){return e.value==a.row.status}))||{}).label||"--")}})]}},{key:"operation",fn:function(t){var a=t.scope;return[e.powers.some((function(e){return"007"==e}))?r("el-tooltip",{attrs:{effect:"dark",content:"详情",placement:"top"}},[r("i",{staticClass:"el-icon-view tb-icon",on:{click:function(t){return e.routeGoto("stockApplyDetail",{id:a.row.id,type:"view"})}}})]):e._e()]}}],null,!1,1411149398)})],1):r("div",[r("no-auth")],1)])}),[],!1,null,null,null);t.default=n.exports},"5ae0":function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=r("5530"),s=(r("96cf"),r("7db0"),r("d3b7"),r("e9c4"),r("159b"),r("7dbe")),i=r("9f53"),o=r("2f62"),l=r("234a"),c=r("2764"),u=r("a784"),d=r("3ec4");i={name:"zixunOrderDetail",mixins:[i.a],components:{addForm:l.default,editForm:c.default,feedbackList:u.default},computed:Object(n.a)(Object(n.a)({},Object(o.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"zixunOrderDetail"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),data:function(){return{statusList:[],size:"small",editColumns:d.b,projectTabs:"1",projectNames:["0","1","2","3","4","5","6","7","8","9"],newTime:"",loading:!1,queryType:"",queryId:"",status:"",sitem:null,options:[{id:"0",label:"待发布竞标"},{id:"1",label:"招标进行中"},{id:"2",label:"招标已结束"},{id:"3",label:"待选择商品"},{id:"4",label:"已选商品待下单"},{id:"5",label:"已成功转单"},{id:"6",label:"已取消转单"},{id:"7",label:"招标已暂停"}]}},mounted:function(){this.initForm()},methods:{initForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r,a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a=e.$route.query,r=a.id,a=a.type,e.queryId=r,e.queryType=a,e.projectTabs="add"===a?"0":"1",e.loading=!0,"add"!==e.queryType){t.next=10;break}e.sitem={},e.getNewTime(),t.next=12;break;case 10:return t.next=12,e.initData();case 12:e.loading=!1;case 13:case"end":return t.stop()}}),t)})))()},handleClick:function(e){},refresh:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.routeReGoto("zixunOrder",{});case 1:case"end":return t.stop()}}),t)})))()},initData:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r,a,n,i,o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,t.next=3,s.a.detail({infoNo:e.queryId});case 3:if(i=t.sent,r=i.code,a=i.message,i=i.data,e.loading=!1,0!==r){t.next=17;break}e.sitem=JSON.parse(JSON.stringify(i)),i=e.sitem,n=i.status,(i=i.can)&&0<i.length?(o=[],i.forEach((function(e){o.push(e.id)})),e.sitem.cat_id=o):e.sitem.cat_id=[],e.status=n,e.getNewTime(),t.next=23;break;case 17:if(100<=r&&r<=104)return t.next=20,e.logout();t.next=22;break;case 20:t.next=23;break;case 22:e.$message.warning(a);case 23:case"end":return t.stop()}}),t)})))()},getNewTime:function(){this.newTime=(new Date).valueOf()},changeStatus:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t.$confirm("7"===e?"确定要停止招标任务么?":"确定要重启招标任务么?","7"===e?"":"重启需要重新编辑咨询信息",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(a.a)(regeneratorRuntime.mark((function r(){var a,n;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if("7"===e)return t.loading=!0,n={infoNo:t.queryId,status:e},r.next=5,s.a.status(n);r.next=22;break;case 5:if(a=r.sent,t.loading=!1,a&&0===a.code)return t.$notify.success({title:"招标任务已结束!",message:""}),r.next=12,t.initForm();r.next=14;break;case 12:r.next=20;break;case 14:if(a&&100<=a.code&&a.code<=104)return r.next=17,t.logout();r.next=19;break;case 17:r.next=20;break;case 19:t.$message.warning(a.message);case 20:r.next=25;break;case 22:n={id:t.queryId,type:"edit"},t.routeReGoto("zixunOrderDetail",n),location.reload();case 25:case"end":return r.stop()}}),r)})))).catch((function(){}));case 2:case"end":return r.stop()}}),r)})))()},examForm:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){var a;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t.loading){r.next=5;break}return a={activity_code:t.queryId,status:"1"===e.state?"1":"8",remark:e.remark},r.next=5,t.setstatus("提交产品部门审核",a);case 5:case"end":return r.stop()}}),r)})))()},setstatus:function(e,t){var r=this;return Object(a.a)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r.$confirm("确定要".concat(e,"?"),{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(a.a)(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,s.a.actstatus(t);case 2:if((a=e.sent)&&0===a.code)return r.$notify.success({title:"提交成功!",message:""}),e.next=7,r.initForm();e.next=9;break;case 7:e.next=15;break;case 9:if(a&&100<=a.code&&a.code<=104)return e.next=12,r.logout();e.next=14;break;case 12:e.next=15;break;case 14:r.$message.warning(a.message);case 15:case"end":return e.stop()}}),e)})))).catch((function(){}));case 2:case"end":return n.stop()}}),n)})))()}}},r("f37a"),l=r("2877"),c=Object(l.a)(i,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"zixunOrderDetail"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"007"==e}))?r("div",{staticClass:"zixunOrderDetail-main"},[""!==e.newTime&&"view"===e.queryType?r("show-data-table",{staticStyle:{padding:"10px 0 5px 0"},attrs:{newTime:e.newTime,border:"",sitem:e.sitem,columns:e.editColumns}},[r("template",{slot:"status"},[r("el-tag",{attrs:{size:e.tablebtnSize},domProps:{textContent:e._s((e.options.find((function(t){return t.id==e.sitem.status}))||{}).label||"--")}}),"1"===e.sitem.status&&e.powers.some((function(e){return"066"==e}))?r("el-tooltip",{attrs:{effect:"dark",content:"停止招标任务",placement:"top"}},[r("i",{staticClass:"el-icon-video-pause hover",staticStyle:{margin:"0 0 0 10px"},on:{click:function(t){return e.changeStatus("7")}}})]):e._e(),"7"!==e.sitem.status&&"2"!==e.sitem.status||!e.powers.some((function(e){return"067"==e}))?e._e():r("el-tooltip",{attrs:{effect:"dark",content:"启动招标任务",placement:"top"}},[r("i",{staticClass:"el-icon-video-play hover",staticStyle:{margin:"0 0 0 10px"},on:{click:function(t){return e.changeStatus("1")}}})])],1),r("template",{slot:"departinfo"},[r("span",[e._v(e._s(e.sitem.salesman)+"--")]),e._l(e.sitem.departinfo,(function(t,a){return r("span",{key:t+a},[0!==a?r("span",[e._v("/")]):e._e(),e._v(e._s(t.name))])}))],2)],2):e._e(),r("el-tabs",{model:{value:e.projectTabs,callback:function(t){e.projectTabs=t},expression:"projectTabs"}},["add"===e.queryType?r("el-tab-pane",{attrs:{label:"新建咨询单",name:"0"}},[""!==e.newTime?r("add-form",{attrs:{newTime:e.newTime,id:e.queryId,type:e.queryType,sitem:e.sitem},on:{refresh:e.refresh}}):e._e()],1):e._e(),"add"!==e.queryType?r("el-tab-pane",{attrs:{label:"咨询单详情",name:"1"}},[""!==e.newTime?r("edit-form",{attrs:{newTime:e.newTime,id:e.queryId,type:e.queryType,sitem:e.sitem},on:{refresh:e.refresh}}):e._e()],1):e._e(),"view"==e.queryType?r("el-tab-pane",{attrs:{label:"反馈情况",name:"2"}},[""!==e.newTime?r("feedback-list",{attrs:{newTime:e.newTime,sitem:e.sitem,id:e.queryId},on:{resGoodOk:function(t){return e.initForm()}}}):e._e()],1):e._e(),"view"==e.queryType?r("el-tab-pane",{attrs:{label:"审批记录",name:"3"}},[""!==e.newTime?r("process-time-line",{attrs:{newTime:e.newTime,type:"ZXD",orderCode:e.queryId}}):e._e()],1):e._e()],1)],1):r("div",[r("no-auth")],1)])}),[],!1,null,"4ecb5cdd",null);t.default=c.exports},"5bb4":function(e,t,r){},"5bbe":function(e,t,r){"use strict";var a=r("1b69"),n="admin/";t.a={add:function(e,t){return Object(a.a)(n+"add",e,"post",t)},delete:function(e,t){return Object(a.a)(n+"delete",e,"post",t)},list:function(e,t){return Object(a.a)(n+"orderinlist",e,"post",t)},detail:function(e,t){return Object(a.a)(n+"detail",e,"post",t)},update:function(e,t){return Object(a.a)(n+"update",e,"post",t)},status:function(e,t){return Object(a.a)(n+"accountstatus",e,"post",t)},returnsend:function(e,t){return Object(a.a)(n+"returnsend",e,"post",t)}}},"5ca7":function(e,t,r){"use strict";r.d(t,"c",(function(){return a})),r.d(t,"a",(function(){return n})),r.d(t,"b",(function(){return s}));var a={11e4:"北京市",12e4:"天津市",13e4:"河北省",14e4:"山西省",15e4:"内蒙古自治区",21e4:"辽宁省",22e4:"吉林省",23e4:"黑龙江省",31e4:"上海市",32e4:"江苏省",33e4:"浙江省",34e4:"安徽省",35e4:"福建省",36e4:"江西省",37e4:"山东省",41e4:"河南省",42e4:"湖北省",43e4:"湖南省",44e4:"广东省",45e4:"广西壮族自治区",46e4:"海南省",5e5:"重庆市",51e4:"四川省",52e4:"贵州省",53e4:"云南省",54e4:"西藏自治区",61e4:"陕西省",62e4:"甘肃省",63e4:"青海省",64e4:"宁夏回族自治区",65e4:"新疆维吾尔自治区",71e4:"台湾省",81e4:"香港特别行政区",82e4:"澳门特别行政区"},n={110100:"北京市",120100:"天津市",130100:"石家庄市",130200:"唐山市",130300:"秦皇岛市",130400:"邯郸市",130500:"邢台市",130600:"保定市",130700:"张家口市",130800:"承德市",130900:"沧州市",131e3:"廊坊市",131100:"衡水市",140100:"太原市",140200:"大同市",140300:"阳泉市",140400:"长治市",140500:"晋城市",140600:"朔州市",140700:"晋中市",140800:"运城市",140900:"忻州市",141e3:"临汾市",141100:"吕梁市",150100:"呼和浩特市",150200:"包头市",150300:"乌海市",150400:"赤峰市",150500:"通辽市",150600:"鄂尔多斯市",150700:"呼伦贝尔市",150800:"巴彦淖尔市",150900:"乌兰察布市",152200:"兴安盟",152500:"锡林郭勒盟",152900:"阿拉善盟",210100:"沈阳市",210200:"大连市",210300:"鞍山市",210400:"抚顺市",210500:"本溪市",210600:"丹东市",210700:"锦州市",210800:"营口市",210900:"阜新市",211e3:"辽阳市",211100:"盘锦市",211200:"铁岭市",211300:"朝阳市",211400:"葫芦岛市",220100:"长春市",220200:"吉林市",220300:"四平市",220400:"辽源市",220500:"通化市",220600:"白山市",220700:"松原市",220800:"白城市",222400:"延边朝鲜族自治州",230100:"哈尔滨市",230200:"齐齐哈尔市",230300:"鸡西市",230400:"鹤岗市",230500:"双鸭山市",230600:"大庆市",230700:"伊春市",230800:"佳木斯市",230900:"七台河市",231e3:"牡丹江市",231100:"黑河市",231200:"绥化市",232700:"大兴安岭地区",310100:"上海市",320100:"南京市",320200:"无锡市",320300:"徐州市",320400:"常州市",320500:"苏州市",320600:"南通市",320700:"连云港市",320800:"淮安市",320900:"盐城市",321e3:"扬州市",321100:"镇江市",321200:"泰州市",321300:"宿迁市",330100:"杭州市",330200:"宁波市",330300:"温州市",330400:"嘉兴市",330500:"湖州市",330600:"绍兴市",330700:"金华市",330800:"衢州市",330900:"舟山市",331e3:"台州市",331100:"丽水市",340100:"合肥市",340200:"芜湖市",340300:"蚌埠市",340400:"淮南市",340500:"马鞍山市",340600:"淮北市",340700:"铜陵市",340800:"安庆市",341e3:"黄山市",341100:"滁州市",341200:"阜阳市",341300:"宿州市",341500:"六安市",341600:"亳州市",341700:"池州市",341800:"宣城市",350100:"福州市",350200:"厦门市",350300:"莆田市",350400:"三明市",350500:"泉州市",350600:"漳州市",350700:"南平市",350800:"龙岩市",350900:"宁德市",360100:"南昌市",360200:"景德镇市",360300:"萍乡市",360400:"九江市",360500:"新余市",360600:"鹰潭市",360700:"赣州市",360800:"吉安市",360900:"宜春市",361e3:"抚州市",361100:"上饶市",370100:"济南市",370200:"青岛市",370300:"淄博市",370400:"枣庄市",370500:"东营市",370600:"烟台市",370700:"潍坊市",370800:"济宁市",370900:"泰安市",371e3:"威海市",371100:"日照市",371300:"临沂市",371400:"德州市",371500:"聊城市",371600:"滨州市",371700:"菏泽市",410100:"郑州市",410200:"开封市",410300:"洛阳市",410400:"平顶山市",410500:"安阳市",410600:"鹤壁市",410700:"新乡市",410800:"焦作市",410900:"濮阳市",411e3:"许昌市",411100:"漯河市",411200:"三门峡市",411300:"南阳市",411400:"商丘市",411500:"信阳市",411600:"周口市",411700:"驻马店市",419e3:"省直辖县",420100:"武汉市",420200:"黄石市",420300:"十堰市",420500:"宜昌市",420600:"襄阳市",420700:"鄂州市",420800:"荆门市",420900:"孝感市",421e3:"荆州市",421100:"黄冈市",421200:"咸宁市",421300:"随州市",422800:"恩施土家族苗族自治州",429e3:"省直辖县",430100:"长沙市",430200:"株洲市",430300:"湘潭市",430400:"衡阳市",430500:"邵阳市",430600:"岳阳市",430700:"常德市",430800:"张家界市",430900:"益阳市",431e3:"郴州市",431100:"永州市",431200:"怀化市",431300:"娄底市",433100:"湘西土家族苗族自治州",440100:"广州市",440200:"韶关市",440300:"深圳市",440400:"珠海市",440500:"汕头市",440600:"佛山市",440700:"江门市",440800:"湛江市",440900:"茂名市",441200:"肇庆市",441300:"惠州市",441400:"梅州市",441500:"汕尾市",441600:"河源市",441700:"阳江市",441800:"清远市",441900:"东莞市",442e3:"中山市",445100:"潮州市",445200:"揭阳市",445300:"云浮市",450100:"南宁市",450200:"柳州市",450300:"桂林市",450400:"梧州市",450500:"北海市",450600:"防城港市",450700:"钦州市",450800:"贵港市",450900:"玉林市",451e3:"百色市",451100:"贺州市",451200:"河池市",451300:"来宾市",451400:"崇左市",460100:"海口市",460200:"三亚市",460300:"三沙市",460400:"儋州市",469e3:"省直辖县",500100:"重庆市",500200:"县",510100:"成都市",510300:"自贡市",510400:"攀枝花市",510500:"泸州市",510600:"德阳市",510700:"绵阳市",510800:"广元市",510900:"遂宁市",511e3:"内江市",511100:"乐山市",511300:"南充市",511400:"眉山市",511500:"宜宾市",511600:"广安市",511700:"达州市",511800:"雅安市",511900:"巴中市",512e3:"资阳市",513200:"阿坝藏族羌族自治州",513300:"甘孜藏族自治州",513400:"凉山彝族自治州",520100:"贵阳市",520200:"六盘水市",520300:"遵义市",520400:"安顺市",520500:"毕节市",520600:"铜仁市",522300:"黔西南布依族苗族自治州",522600:"黔东南苗族侗族自治州",522700:"黔南布依族苗族自治州",530100:"昆明市",530300:"曲靖市",530400:"玉溪市",530500:"保山市",530600:"昭通市",530700:"丽江市",530800:"普洱市",530900:"临沧市",532300:"楚雄彝族自治州",532500:"红河哈尼族彝族自治州",532600:"文山壮族苗族自治州",532800:"西双版纳傣族自治州",532900:"大理白族自治州",533100:"德宏傣族景颇族自治州",533300:"怒江傈僳族自治州",533400:"迪庆藏族自治州",540100:"拉萨市",540200:"日喀则市",540300:"昌都市",540400:"林芝市",540500:"山南市",540600:"那曲市",542500:"阿里地区",610100:"西安市",610200:"铜川市",610300:"宝鸡市",610400:"咸阳市",610500:"渭南市",610600:"延安市",610700:"汉中市",610800:"榆林市",610900:"安康市",611e3:"商洛市",620100:"兰州市",620200:"嘉峪关市",620300:"金昌市",620400:"白银市",620500:"天水市",620600:"武威市",620700:"张掖市",620800:"平凉市",620900:"酒泉市",621e3:"庆阳市",621100:"定西市",621200:"陇南市",622900:"临夏回族自治州",623e3:"甘南藏族自治州",630100:"西宁市",630200:"海东市",632200:"海北藏族自治州",632300:"黄南藏族自治州",632500:"海南藏族自治州",632600:"果洛藏族自治州",632700:"玉树藏族自治州",632800:"海西蒙古族藏族自治州",640100:"银川市",640200:"石嘴山市",640300:"吴忠市",640400:"固原市",640500:"中卫市",650100:"乌鲁木齐市",650200:"克拉玛依市",650400:"吐鲁番市",650500:"哈密市",652300:"昌吉回族自治州",652700:"博尔塔拉蒙古自治州",652800:"巴音郭楞蒙古自治州",652900:"阿克苏地区",653e3:"克孜勒苏柯尔克孜自治州",653100:"喀什地区",653200:"和田地区",654e3:"伊犁哈萨克自治州",654200:"塔城地区",654300:"阿勒泰地区",659e3:"自治区直辖县级行政区划",710100:"台北市",710200:"高雄市",710300:"台南市",710400:"台中市",710500:"金门县",710600:"南投县",710700:"基隆市",710800:"新竹市",710900:"嘉义市",711100:"新北市",711200:"宜兰县",711300:"新竹县",711400:"桃园县",711500:"苗栗县",711700:"彰化县",711900:"嘉义县",712100:"云林县",712400:"屏东县",712500:"台东县",712600:"花莲县",712700:"澎湖县",712800:"连江县",810100:"香港岛",810200:"九龙",810300:"新界",820100:"澳门半岛",820200:"离岛"},s={110101:"东城区",110102:"西城区",110105:"朝阳区",110106:"丰台区",110107:"石景山区",110108:"海淀区",110109:"门头沟区",110111:"房山区",110112:"通州区",110113:"顺义区",110114:"昌平区",110115:"大兴区",110116:"怀柔区",110117:"平谷区",110118:"密云区",110119:"延庆区",120101:"和平区",120102:"河东区",120103:"河西区",120104:"南开区",120105:"河北区",120106:"红桥区",120110:"东丽区",120111:"西青区",120112:"津南区",120113:"北辰区",120114:"武清区",120115:"宝坻区",120116:"滨海新区",120117:"宁河区",120118:"静海区",120119:"蓟州区",130102:"长安区",130104:"桥西区",130105:"新华区",130107:"井陉矿区",130108:"裕华区",130109:"藁城区",130110:"鹿泉区",130111:"栾城区",130121:"井陉县",130123:"正定县",130125:"行唐县",130126:"灵寿县",130127:"高邑县",130128:"深泽县",130129:"赞皇县",130130:"无极县",130131:"平山县",130132:"元氏县",130133:"赵县",130171:"石家庄高新技术产业开发区",130172:"石家庄循环化工园区",130181:"辛集市",130183:"晋州市",130184:"新乐市",130202:"路南区",130203:"路北区",130204:"古冶区",130205:"开平区",130207:"丰南区",130208:"丰润区",130209:"曹妃甸区",130224:"滦南县",130225:"乐亭县",130227:"迁西县",130229:"玉田县",130273:"唐山高新技术产业开发区",130274:"河北唐山海港经济开发区",130281:"遵化市",130283:"迁安市",130284:"滦州市",130302:"海港区",130303:"山海关区",130304:"北戴河区",130306:"抚宁区",130321:"青龙满族自治县",130322:"昌黎县",130324:"卢龙县",130371:"秦皇岛市经济技术开发区",130372:"北戴河新区",130390:"经济技术开发区",130402:"邯山区",130403:"丛台区",130404:"复兴区",130406:"峰峰矿区",130407:"肥乡区",130408:"永年区",130423:"临漳县",130424:"成安县",130425:"大名县",130426:"涉县",130427:"磁县",130430:"邱县",130431:"鸡泽县",130432:"广平县",130433:"馆陶县",130434:"魏县",130435:"曲周县",130471:"邯郸经济技术开发区",130473:"邯郸冀南新区",130481:"武安市",130502:"桥东区",130503:"桥西区",130521:"邢台县",130522:"临城县",130523:"内丘县",130524:"柏乡县",130525:"隆尧县",130526:"任县",130527:"南和县",130528:"宁晋县",130529:"巨鹿县",130530:"新河县",130531:"广宗县",130532:"平乡县",130533:"威县",130534:"清河县",130535:"临西县",130571:"河北邢台经济开发区",130581:"南宫市",130582:"沙河市",130602:"竞秀区",130606:"莲池区",130607:"满城区",130608:"清苑区",130609:"徐水区",130623:"涞水县",130624:"阜平县",130626:"定兴县",130627:"唐县",130628:"高阳县",130629:"容城县",130630:"涞源县",130631:"望都县",130632:"安新县",130633:"易县",130634:"曲阳县",130635:"蠡县",130636:"顺平县",130637:"博野县",130638:"雄县",130671:"保定高新技术产业开发区",130672:"保定白沟新城",130681:"涿州市",130682:"定州市",130683:"安国市",130684:"高碑店市",130702:"桥东区",130703:"桥西区",130705:"宣化区",130706:"下花园区",130708:"万全区",130709:"崇礼区",130722:"张北县",130723:"康保县",130724:"沽源县",130725:"尚义县",130726:"蔚县",130727:"阳原县",130728:"怀安县",130730:"怀来县",130731:"涿鹿县",130732:"赤城县",130772:"张家口市察北管理区",130802:"双桥区",130803:"双滦区",130804:"鹰手营子矿区",130821:"承德县",130822:"兴隆县",130824:"滦平县",130825:"隆化县",130826:"丰宁满族自治县",130827:"宽城满族自治县",130828:"围场满族蒙古族自治县",130871:"承德高新技术产业开发区",130881:"平泉市",130902:"新华区",130903:"运河区",130921:"沧县",130922:"青县",130923:"东光县",130924:"海兴县",130925:"盐山县",130926:"肃宁县",130927:"南皮县",130928:"吴桥县",130929:"献县",130930:"孟村回族自治县",130971:"河北沧州经济开发区",130972:"沧州高新技术产业开发区",130973:"沧州渤海新区",130981:"泊头市",130982:"任丘市",130983:"黄骅市",130984:"河间市",131002:"安次区",131003:"广阳区",131022:"固安县",131023:"永清县",131024:"香河县",131025:"大城县",131026:"文安县",131028:"大厂回族自治县",131071:"廊坊经济技术开发区",131081:"霸州市",131082:"三河市",131090:"开发区",131102:"桃城区",131103:"冀州区",131121:"枣强县",131122:"武邑县",131123:"武强县",131124:"饶阳县",131125:"安平县",131126:"故城县",131127:"景县",131128:"阜城县",131171:"河北衡水经济开发区",131172:"衡水滨湖新区",131182:"深州市",140105:"小店区",140106:"迎泽区",140107:"杏花岭区",140108:"尖草坪区",140109:"万柏林区",140110:"晋源区",140121:"清徐县",140122:"阳曲县",140123:"娄烦县",140181:"古交市",140212:"新荣区",140213:"平城区",140214:"云冈区",140215:"云州区",140221:"阳高县",140222:"天镇县",140223:"广灵县",140224:"灵丘县",140225:"浑源县",140226:"左云县",140271:"山西大同经济开发区",140302:"城区",140303:"矿区",140311:"郊区",140321:"平定县",140322:"盂县",140403:"潞州区",140404:"上党区",140405:"屯留区",140406:"潞城区",140423:"襄垣县",140425:"平顺县",140426:"黎城县",140427:"壶关县",140428:"长子县",140429:"武乡县",140430:"沁县",140431:"沁源县",140471:"山西长治高新技术产业园区",140502:"城区",140521:"沁水县",140522:"阳城县",140524:"陵川县",140525:"泽州县",140581:"高平市",140602:"朔城区",140603:"平鲁区",140621:"山阴县",140622:"应县",140623:"右玉县",140671:"山西朔州经济开发区",140681:"怀仁市",140702:"榆次区",140703:"太谷区",140721:"榆社县",140722:"左权县",140723:"和顺县",140724:"昔阳县",140725:"寿阳县",140727:"祁县",140728:"平遥县",140729:"灵石县",140781:"介休市",140802:"盐湖区",140821:"临猗县",140822:"万荣县",140823:"闻喜县",140824:"稷山县",140825:"新绛县",140826:"绛县",140827:"垣曲县",140828:"夏县",140829:"平陆县",140830:"芮城县",140881:"永济市",140882:"河津市",140902:"忻府区",140921:"定襄县",140922:"五台县",140923:"代县",140924:"繁峙县",140925:"宁武县",140926:"静乐县",140927:"神池县",140928:"五寨县",140929:"岢岚县",140930:"河曲县",140931:"保德县",140932:"偏关县",140971:"五台山风景名胜区",140981:"原平市",141002:"尧都区",141021:"曲沃县",141022:"翼城县",141023:"襄汾县",141024:"洪洞县",141025:"古县",141026:"安泽县",141027:"浮山县",141028:"吉县",141029:"乡宁县",141030:"大宁县",141031:"隰县",141032:"永和县",141033:"蒲县",141034:"汾西县",141081:"侯马市",141082:"霍州市",141102:"离石区",141121:"文水县",141122:"交城县",141123:"兴县",141124:"临县",141125:"柳林县",141126:"石楼县",141127:"岚县",141128:"方山县",141129:"中阳县",141130:"交口县",141181:"孝义市",141182:"汾阳市",150102:"新城区",150103:"回民区",150104:"玉泉区",150105:"赛罕区",150121:"土默特左旗",150122:"托克托县",150123:"和林格尔县",150124:"清水河县",150125:"武川县",150172:"呼和浩特经济技术开发区",150202:"东河区",150203:"昆都仑区",150204:"青山区",150205:"石拐区",150206:"白云鄂博矿区",150207:"九原区",150221:"土默特右旗",150222:"固阳县",150223:"达尔罕茂明安联合旗",150271:"包头稀土高新技术产业开发区",150302:"海勃湾区",150303:"海南区",150304:"乌达区",150402:"红山区",150403:"元宝山区",150404:"松山区",150421:"阿鲁科尔沁旗",150422:"巴林左旗",150423:"巴林右旗",150424:"林西县",150425:"克什克腾旗",150426:"翁牛特旗",150428:"喀喇沁旗",150429:"宁城县",150430:"敖汉旗",150502:"科尔沁区",150521:"科尔沁左翼中旗",150522:"科尔沁左翼后旗",150523:"开鲁县",150524:"库伦旗",150525:"奈曼旗",150526:"扎鲁特旗",150571:"通辽经济技术开发区",150581:"霍林郭勒市",150602:"东胜区",150603:"康巴什区",150621:"达拉特旗",150622:"准格尔旗",150623:"鄂托克前旗",150624:"鄂托克旗",150625:"杭锦旗",150626:"乌审旗",150627:"伊金霍洛旗",150702:"海拉尔区",150703:"扎赉诺尔区",150721:"阿荣旗",150722:"莫力达瓦达斡尔族自治旗",150723:"鄂伦春自治旗",150724:"鄂温克族自治旗",150725:"陈巴尔虎旗",150726:"新巴尔虎左旗",150727:"新巴尔虎右旗",150781:"满洲里市",150782:"牙克石市",150783:"扎兰屯市",150784:"额尔古纳市",150785:"根河市",150802:"临河区",150821:"五原县",150822:"磴口县",150823:"乌拉特前旗",150824:"乌拉特中旗",150825:"乌拉特后旗",150826:"杭锦后旗",150902:"集宁区",150921:"卓资县",150922:"化德县",150923:"商都县",150924:"兴和县",150925:"凉城县",150926:"察哈尔右翼前旗",150927:"察哈尔右翼中旗",150928:"察哈尔右翼后旗",150929:"四子王旗",150981:"丰镇市",152201:"乌兰浩特市",152202:"阿尔山市",152221:"科尔沁右翼前旗",152222:"科尔沁右翼中旗",152223:"扎赉特旗",152224:"突泉县",152501:"二连浩特市",152502:"锡林浩特市",152522:"阿巴嘎旗",152523:"苏尼特左旗",152524:"苏尼特右旗",152525:"东乌珠穆沁旗",152526:"西乌珠穆沁旗",152527:"太仆寺旗",152528:"镶黄旗",152529:"正镶白旗",152530:"正蓝旗",152531:"多伦县",152571:"乌拉盖管委会",152921:"阿拉善左旗",152922:"阿拉善右旗",152923:"额济纳旗",152971:"内蒙古阿拉善经济开发区",210102:"和平区",210103:"沈河区",210104:"大东区",210105:"皇姑区",210106:"铁西区",210111:"苏家屯区",210112:"浑南区",210113:"沈北新区",210114:"于洪区",210115:"辽中区",210123:"康平县",210124:"法库县",210181:"新民市",210190:"经济技术开发区",210202:"中山区",210203:"西岗区",210204:"沙河口区",210211:"甘井子区",210212:"旅顺口区",210213:"金州区",210214:"普兰店区",210224:"长海县",210281:"瓦房店市",210283:"庄河市",210302:"铁东区",210303:"铁西区",210304:"立山区",210311:"千山区",210321:"台安县",210323:"岫岩满族自治县",210381:"海城市",210390:"高新区",210402:"新抚区",210403:"东洲区",210404:"望花区",210411:"顺城区",210421:"抚顺县",210422:"新宾满族自治县",210423:"清原满族自治县",210502:"平山区",210503:"溪湖区",210504:"明山区",210505:"南芬区",210521:"本溪满族自治县",210522:"桓仁满族自治县",210602:"元宝区",210603:"振兴区",210604:"振安区",210624:"宽甸满族自治县",210681:"东港市",210682:"凤城市",210702:"古塔区",210703:"凌河区",210711:"太和区",210726:"黑山县",210727:"义县",210781:"凌海市",210782:"北镇市",210793:"经济技术开发区",210802:"站前区",210803:"西市区",210804:"鲅鱼圈区",210811:"老边区",210881:"盖州市",210882:"大石桥市",210902:"海州区",210903:"新邱区",210904:"太平区",210905:"清河门区",210911:"细河区",210921:"阜新蒙古族自治县",210922:"彰武县",211002:"白塔区",211003:"文圣区",211004:"宏伟区",211005:"弓长岭区",211011:"太子河区",211021:"辽阳县",211081:"灯塔市",211102:"双台子区",211103:"兴隆台区",211104:"大洼区",211122:"盘山县",211202:"银州区",211204:"清河区",211221:"铁岭县",211223:"西丰县",211224:"昌图县",211281:"调兵山市",211282:"开原市",211302:"双塔区",211303:"龙城区",211321:"朝阳县",211322:"建平县",211324:"喀喇沁左翼蒙古族自治县",211381:"北票市",211382:"凌源市",211402:"连山区",211403:"龙港区",211404:"南票区",211421:"绥中县",211422:"建昌县",211481:"兴城市",220102:"南关区",220103:"宽城区",220104:"朝阳区",220105:"二道区",220106:"绿园区",220112:"双阳区",220113:"九台区",220122:"农安县",220171:"长春经济技术开发区",220172:"长春净月高新技术产业开发区",220173:"长春高新技术产业开发区",220174:"长春汽车经济技术开发区",220182:"榆树市",220183:"德惠市",220192:"经济技术开发区",220202:"昌邑区",220203:"龙潭区",220204:"船营区",220211:"丰满区",220221:"永吉县",220271:"吉林经济开发区",220272:"吉林高新技术产业开发区",220281:"蛟河市",220282:"桦甸市",220283:"舒兰市",220284:"磐石市",220302:"铁西区",220303:"铁东区",220322:"梨树县",220323:"伊通满族自治县",220381:"公主岭市",220382:"双辽市",220402:"龙山区",220403:"西安区",220421:"东丰县",220422:"东辽县",220502:"东昌区",220503:"二道江区",220521:"通化县",220523:"辉南县",220524:"柳河县",220581:"梅河口市",220582:"集安市",220602:"浑江区",220605:"江源区",220621:"抚松县",220622:"靖宇县",220623:"长白朝鲜族自治县",220681:"临江市",220702:"宁江区",220721:"前郭尔罗斯蒙古族自治县",220722:"长岭县",220723:"乾安县",220771:"吉林松原经济开发区",220781:"扶余市",220802:"洮北区",220821:"镇赉县",220822:"通榆县",220871:"吉林白城经济开发区",220881:"洮南市",220882:"大安市",222401:"延吉市",222402:"图们市",222403:"敦化市",222404:"珲春市",222405:"龙井市",222406:"和龙市",222424:"汪清县",222426:"安图县",230102:"道里区",230103:"南岗区",230104:"道外区",230108:"平房区",230109:"松北区",230110:"香坊区",230111:"呼兰区",230112:"阿城区",230113:"双城区",230123:"依兰县",230124:"方正县",230125:"宾县",230126:"巴彦县",230127:"木兰县",230128:"通河县",230129:"延寿县",230183:"尚志市",230184:"五常市",230202:"龙沙区",230203:"建华区",230204:"铁锋区",230205:"昂昂溪区",230206:"富拉尔基区",230207:"碾子山区",230208:"梅里斯达斡尔族区",230221:"龙江县",230223:"依安县",230224:"泰来县",230225:"甘南县",230227:"富裕县",230229:"克山县",230230:"克东县",230231:"拜泉县",230281:"讷河市",230302:"鸡冠区",230303:"恒山区",230304:"滴道区",230305:"梨树区",230306:"城子河区",230307:"麻山区",230321:"鸡东县",230381:"虎林市",230382:"密山市",230402:"向阳区",230403:"工农区",230404:"南山区",230405:"兴安区",230406:"东山区",230407:"兴山区",230421:"萝北县",230422:"绥滨县",230502:"尖山区",230503:"岭东区",230505:"四方台区",230506:"宝山区",230521:"集贤县",230522:"友谊县",230523:"宝清县",230524:"饶河县",230602:"萨尔图区",230603:"龙凤区",230604:"让胡路区",230605:"红岗区",230606:"大同区",230621:"肇州县",230622:"肇源县",230623:"林甸县",230624:"杜尔伯特蒙古族自治县",230671:"大庆高新技术产业开发区",230717:"伊美区",230718:"乌翠区",230719:"友好区",230722:"嘉荫县",230723:"汤旺县",230724:"丰林县",230725:"大箐山县",230726:"南岔县",230751:"金林区",230781:"铁力市",230803:"向阳区",230804:"前进区",230805:"东风区",230811:"郊区",230822:"桦南县",230826:"桦川县",230828:"汤原县",230881:"同江市",230882:"富锦市",230883:"抚远市",230902:"新兴区",230903:"桃山区",230904:"茄子河区",230921:"勃利县",231002:"东安区",231003:"阳明区",231004:"爱民区",231005:"西安区",231025:"林口县",231081:"绥芬河市",231083:"海林市",231084:"宁安市",231085:"穆棱市",231086:"东宁市",231102:"爱辉区",231123:"逊克县",231124:"孙吴县",231181:"北安市",231182:"五大连池市",231183:"嫩江市",231202:"北林区",231221:"望奎县",231222:"兰西县",231223:"青冈县",231224:"庆安县",231225:"明水县",231226:"绥棱县",231281:"安达市",231282:"肇东市",231283:"海伦市",232701:"漠河市",232721:"呼玛县",232722:"塔河县",232790:"松岭区",232791:"呼中区",232792:"加格达奇区",232793:"新林区",310101:"黄浦区",310104:"徐汇区",310105:"长宁区",310106:"静安区",310107:"普陀区",310109:"虹口区",310110:"杨浦区",310112:"闵行区",310113:"宝山区",310114:"嘉定区",310115:"浦东新区",310116:"金山区",310117:"松江区",310118:"青浦区",310120:"奉贤区",310151:"崇明区",320102:"玄武区",320104:"秦淮区",320105:"建邺区",320106:"鼓楼区",320111:"浦口区",320113:"栖霞区",320114:"雨花台区",320115:"江宁区",320116:"六合区",320117:"溧水区",320118:"高淳区",320205:"锡山区",320206:"惠山区",320211:"滨湖区",320213:"梁溪区",320214:"新吴区",320281:"江阴市",320282:"宜兴市",320302:"鼓楼区",320303:"云龙区",320305:"贾汪区",320311:"泉山区",320312:"铜山区",320321:"丰县",320322:"沛县",320324:"睢宁县",320371:"徐州经济技术开发区",320381:"新沂市",320382:"邳州市",320391:"工业园区",320402:"天宁区",320404:"钟楼区",320411:"新北区",320412:"武进区",320413:"金坛区",320481:"溧阳市",320505:"虎丘区",320506:"吴中区",320507:"相城区",320508:"姑苏区",320509:"吴江区",320571:"苏州工业园区",320581:"常熟市",320582:"张家港市",320583:"昆山市",320585:"太仓市",320590:"工业园区",320591:"高新区",320602:"崇川区",320611:"港闸区",320612:"通州区",320623:"如东县",320681:"启东市",320682:"如皋市",320684:"海门市",320685:"海安市",320691:"高新区",320703:"连云区",320706:"海州区",320707:"赣榆区",320722:"东海县",320723:"灌云县",320724:"灌南县",320771:"连云港经济技术开发区",320803:"淮安区",320804:"淮阴区",320812:"清江浦区",320813:"洪泽区",320826:"涟水县",320830:"盱眙县",320831:"金湖县",320871:"淮安经济技术开发区",320890:"经济开发区",320902:"亭湖区",320903:"盐都区",320904:"大丰区",320921:"响水县",320922:"滨海县",320923:"阜宁县",320924:"射阳县",320925:"建湖县",320971:"盐城经济技术开发区",320981:"东台市",321002:"广陵区",321003:"邗江区",321012:"江都区",321023:"宝应县",321071:"扬州经济技术开发区",321081:"仪征市",321084:"高邮市",321090:"经济开发区",321102:"京口区",321111:"润州区",321112:"丹徒区",321150:"镇江新区",321181:"丹阳市",321182:"扬中市",321183:"句容市",321202:"海陵区",321203:"高港区",321204:"姜堰区",321271:"泰州医药高新技术产业开发区",321281:"兴化市",321282:"靖江市",321283:"泰兴市",321302:"宿城区",321311:"宿豫区",321322:"沭阳县",321323:"泗阳县",321324:"泗洪县",321371:"宿迁经济技术开发区",330102:"上城区",330105:"拱墅区",330106:"西湖区",330108:"滨江区",330109:"萧山区",330110:"余杭区",330111:"富阳区",330112:"临安区",330113:"钱塘区",330114:"临平区",330122:"桐庐县",330127:"淳安县",330182:"建德市",330203:"海曙区",330205:"江北区",330206:"北仑区",330211:"镇海区",330212:"鄞州区",330213:"奉化区",330225:"象山县",330226:"宁海县",330281:"余姚市",330282:"慈溪市",330302:"鹿城区",330303:"龙湾区",330304:"瓯海区",330305:"洞头区",330324:"永嘉县",330326:"平阳县",330327:"苍南县",330328:"文成县",330329:"泰顺县",330381:"瑞安市",330382:"乐清市",330383:"龙港市",330402:"南湖区",330411:"秀洲区",330421:"嘉善县",330424:"海盐县",330481:"海宁市",330482:"平湖市",330483:"桐乡市",330502:"吴兴区",330503:"南浔区",330521:"德清县",330522:"长兴县",330523:"安吉县",330602:"越城区",330603:"柯桥区",330604:"上虞区",330624:"新昌县",330681:"诸暨市",330683:"嵊州市",330702:"婺城区",330703:"金东区",330723:"武义县",330726:"浦江县",330727:"磐安县",330781:"兰溪市",330782:"义乌市",330783:"东阳市",330784:"永康市",330802:"柯城区",330803:"衢江区",330822:"常山县",330824:"开化县",330825:"龙游县",330881:"江山市",330902:"定海区",330903:"普陀区",330921:"岱山县",330922:"嵊泗县",331002:"椒江区",331003:"黄岩区",331004:"路桥区",331022:"三门县",331023:"天台县",331024:"仙居县",331081:"温岭市",331082:"临海市",331083:"玉环市",331102:"莲都区",331121:"青田县",331122:"缙云县",331123:"遂昌县",331124:"松阳县",331125:"云和县",331126:"庆元县",331127:"景宁畲族自治县",331181:"龙泉市",340102:"瑶海区",340103:"庐阳区",340104:"蜀山区",340111:"包河区",340121:"长丰县",340122:"肥东县",340123:"肥西县",340124:"庐江县",340171:"合肥高新技术产业开发区",340172:"合肥经济技术开发区",340173:"合肥新站高新技术产业开发区",340181:"巢湖市",340190:"高新技术开发区",340191:"经济技术开发区",340202:"镜湖区",340203:"弋江区",340207:"鸠江区",340208:"三山区",340221:"芜湖县",340222:"繁昌县",340223:"南陵县",340281:"无为市",340302:"龙子湖区",340303:"蚌山区",340304:"禹会区",340311:"淮上区",340321:"怀远县",340322:"五河县",340323:"固镇县",340371:"蚌埠市高新技术开发区",340372:"蚌埠市经济开发区",340402:"大通区",340403:"田家庵区",340404:"谢家集区",340405:"八公山区",340406:"潘集区",340421:"凤台县",340422:"寿县",340503:"花山区",340504:"雨山区",340506:"博望区",340521:"当涂县",340522:"含山县",340523:"和县",340602:"杜集区",340603:"相山区",340604:"烈山区",340621:"濉溪县",340705:"铜官区",340706:"义安区",340711:"郊区",340722:"枞阳县",340802:"迎江区",340803:"大观区",340811:"宜秀区",340822:"怀宁县",340825:"太湖县",340826:"宿松县",340827:"望江县",340828:"岳西县",340881:"桐城市",340882:"潜山市",341002:"屯溪区",341003:"黄山区",341004:"徽州区",341021:"歙县",341022:"休宁县",341023:"黟县",341024:"祁门县",341102:"琅琊区",341103:"南谯区",341122:"来安县",341124:"全椒县",341125:"定远县",341126:"凤阳县",341181:"天长市",341182:"明光市",341202:"颍州区",341203:"颍东区",341204:"颍泉区",341221:"临泉县",341222:"太和县",341225:"阜南县",341226:"颍上县",341271:"阜阳合肥现代产业园区",341282:"界首市",341302:"埇桥区",341321:"砀山县",341322:"萧县",341323:"灵璧县",341324:"泗县",341371:"宿州马鞍山现代产业园区",341372:"宿州经济技术开发区",341390:"经济开发区",341502:"金安区",341503:"裕安区",341504:"叶集区",341522:"霍邱县",341523:"舒城县",341524:"金寨县",341525:"霍山县",341602:"谯城区",341621:"涡阳县",341622:"蒙城县",341623:"利辛县",341702:"贵池区",341721:"东至县",341722:"石台县",341723:"青阳县",341802:"宣州区",341821:"郎溪县",341823:"泾县",341824:"绩溪县",341825:"旌德县",341871:"宣城市经济开发区",341881:"宁国市",341882:"广德市",350102:"鼓楼区",350103:"台江区",350104:"仓山区",350105:"马尾区",350111:"晋安区",350112:"长乐区",350121:"闽侯县",350122:"连江县",350123:"罗源县",350124:"闽清县",350125:"永泰县",350128:"平潭县",350181:"福清市",350203:"思明区",350205:"海沧区",350206:"湖里区",350211:"集美区",350212:"同安区",350213:"翔安区",350302:"城厢区",350303:"涵江区",350304:"荔城区",350305:"秀屿区",350322:"仙游县",350402:"梅列区",350403:"三元区",350421:"明溪县",350423:"清流县",350424:"宁化县",350425:"大田县",350426:"尤溪县",350427:"沙县",350428:"将乐县",350429:"泰宁县",350430:"建宁县",350481:"永安市",350502:"鲤城区",350503:"丰泽区",350504:"洛江区",350505:"泉港区",350521:"惠安县",350524:"安溪县",350525:"永春县",350526:"德化县",350527:"金门县",350581:"石狮市",350582:"晋江市",350583:"南安市",350602:"芗城区",350603:"龙文区",350622:"云霄县",350623:"漳浦县",350624:"诏安县",350625:"长泰县",350626:"东山县",350627:"南靖县",350628:"平和县",350629:"华安县",350681:"龙海市",350702:"延平区",350703:"建阳区",350721:"顺昌县",350722:"浦城县",350723:"光泽县",350724:"松溪县",350725:"政和县",350781:"邵武市",350782:"武夷山市",350783:"建瓯市",350802:"新罗区",350803:"永定区",350821:"长汀县",350823:"上杭县",350824:"武平县",350825:"连城县",350881:"漳平市",350902:"蕉城区",350921:"霞浦县",350922:"古田县",350923:"屏南县",350924:"寿宁县",350925:"周宁县",350926:"柘荣县",350981:"福安市",350982:"福鼎市",360102:"东湖区",360103:"西湖区",360104:"青云谱区",360111:"青山湖区",360112:"新建区",360113:"红谷滩区",360121:"南昌县",360123:"安义县",360124:"进贤县",360190:"经济技术开发区",360192:"高新区",360202:"昌江区",360203:"珠山区",360222:"浮梁县",360281:"乐平市",360302:"安源区",360313:"湘东区",360321:"莲花县",360322:"上栗县",360323:"芦溪县",360402:"濂溪区",360403:"浔阳区",360404:"柴桑区",360423:"武宁县",360424:"修水县",360425:"永修县",360426:"德安县",360428:"都昌县",360429:"湖口县",360430:"彭泽县",360481:"瑞昌市",360482:"共青城市",360483:"庐山市",360490:"经济技术开发区",360502:"渝水区",360521:"分宜县",360602:"月湖区",360603:"余江区",360681:"贵溪市",360702:"章贡区",360703:"南康区",360704:"赣县区",360722:"信丰县",360723:"大余县",360724:"上犹县",360725:"崇义县",360726:"安远县",360727:"龙南县",360728:"定南县",360729:"全南县",360730:"宁都县",360731:"于都县",360732:"兴国县",360733:"会昌县",360734:"寻乌县",360735:"石城县",360781:"瑞金市",360802:"吉州区",360803:"青原区",360821:"吉安县",360822:"吉水县",360823:"峡江县",360824:"新干县",360825:"永丰县",360826:"泰和县",360827:"遂川县",360828:"万安县",360829:"安福县",360830:"永新县",360881:"井冈山市",360902:"袁州区",360921:"奉新县",360922:"万载县",360923:"上高县",360924:"宜丰县",360925:"靖安县",360926:"铜鼓县",360981:"丰城市",360982:"樟树市",360983:"高安市",361002:"临川区",361003:"东乡区",361021:"南城县",361022:"黎川县",361023:"南丰县",361024:"崇仁县",361025:"乐安县",361026:"宜黄县",361027:"金溪县",361028:"资溪县",361030:"广昌县",361102:"信州区",361103:"广丰区",361104:"广信区",361123:"玉山县",361124:"铅山县",361125:"横峰县",361126:"弋阳县",361127:"余干县",361128:"鄱阳县",361129:"万年县",361130:"婺源县",361181:"德兴市",370102:"历下区",370103:"市中区",370104:"槐荫区",370105:"天桥区",370112:"历城区",370113:"长清区",370114:"章丘区",370115:"济阳区",370116:"莱芜区",370117:"钢城区",370124:"平阴县",370126:"商河县",370171:"济南高新技术产业开发区",370190:"高新区",370202:"市南区",370203:"市北区",370211:"黄岛区",370212:"崂山区",370213:"李沧区",370214:"城阳区",370215:"即墨区",370271:"青岛高新技术产业开发区",370281:"胶州市",370283:"平度市",370285:"莱西市",370290:"开发区",370302:"淄川区",370303:"张店区",370304:"博山区",370305:"临淄区",370306:"周村区",370321:"桓台县",370322:"高青县",370323:"沂源县",370402:"市中区",370403:"薛城区",370404:"峄城区",370405:"台儿庄区",370406:"山亭区",370481:"滕州市",370502:"东营区",370503:"河口区",370505:"垦利区",370522:"利津县",370523:"广饶县",370571:"东营经济技术开发区",370572:"东营港经济开发区",370602:"芝罘区",370611:"福山区",370612:"牟平区",370613:"莱山区",370634:"长岛县",370671:"烟台高新技术产业开发区",370672:"烟台经济技术开发区",370681:"龙口市",370682:"莱阳市",370683:"莱州市",370684:"蓬莱市",370685:"招远市",370686:"栖霞市",370687:"海阳市",370690:"开发区",370702:"潍城区",370703:"寒亭区",370704:"坊子区",370705:"奎文区",370724:"临朐县",370725:"昌乐县",370772:"潍坊滨海经济技术开发区",370781:"青州市",370782:"诸城市",370783:"寿光市",370784:"安丘市",370785:"高密市",370786:"昌邑市",370790:"开发区",370791:"高新区",370811:"任城区",370812:"兖州区",370826:"微山县",370827:"鱼台县",370828:"金乡县",370829:"嘉祥县",370830:"汶上县",370831:"泗水县",370832:"梁山县",370871:"济宁高新技术产业开发区",370881:"曲阜市",370883:"邹城市",370890:"高新区",370902:"泰山区",370911:"岱岳区",370921:"宁阳县",370923:"东平县",370982:"新泰市",370983:"肥城市",371002:"环翠区",371003:"文登区",371071:"威海火炬高技术产业开发区",371072:"威海经济技术开发区",371082:"荣成市",371083:"乳山市",371091:"经济技术开发区",371102:"东港区",371103:"岚山区",371121:"五莲县",371122:"莒县",371171:"日照经济技术开发区",371302:"兰山区",371311:"罗庄区",371312:"河东区",371321:"沂南县",371322:"郯城县",371323:"沂水县",371324:"兰陵县",371325:"费县",371326:"平邑县",371327:"莒南县",371328:"蒙阴县",371329:"临沭县",371371:"临沂高新技术产业开发区",371402:"德城区",371403:"陵城区",371422:"宁津县",371423:"庆云县",371424:"临邑县",371425:"齐河县",371426:"平原县",371427:"夏津县",371428:"武城县",371472:"德州运河经济开发区",371481:"乐陵市",371482:"禹城市",371502:"东昌府区",371503:"茌平区",371521:"阳谷县",371522:"莘县",371524:"东阿县",371525:"冠县",371526:"高唐县",371581:"临清市",371602:"滨城区",371603:"沾化区",371621:"惠民县",371622:"阳信县",371623:"无棣县",371625:"博兴县",371681:"邹平市",371702:"牡丹区",371703:"定陶区",371721:"曹县",371722:"单县",371723:"成武县",371724:"巨野县",371725:"郓城县",371726:"鄄城县",371728:"东明县",371771:"菏泽经济技术开发区",371772:"菏泽高新技术开发区",410102:"中原区",410103:"二七区",410104:"管城回族区",410105:"金水区",410106:"上街区",410108:"惠济区",410122:"中牟县",410171:"郑州经济技术开发区",410172:"郑州高新技术产业开发区",410173:"郑州航空港经济综合实验区",410181:"巩义市",410182:"荥阳市",410183:"新密市",410184:"新郑市",410185:"登封市",410190:"高新技术开发区",410191:"经济技术开发区",410202:"龙亭区",410203:"顺河回族区",410204:"鼓楼区",410205:"禹王台区",410212:"祥符区",410221:"杞县",410222:"通许县",410223:"尉氏县",410225:"兰考县",410302:"老城区",410303:"西工区",410304:"瀍河回族区",410305:"涧西区",410306:"吉利区",410311:"洛龙区",410322:"孟津县",410323:"新安县",410324:"栾川县",410325:"嵩县",410326:"汝阳县",410327:"宜阳县",410328:"洛宁县",410329:"伊川县",410381:"偃师市",410402:"新华区",410403:"卫东区",410404:"石龙区",410411:"湛河区",410421:"宝丰县",410422:"叶县",410423:"鲁山县",410425:"郏县",410471:"平顶山高新技术产业开发区",410481:"舞钢市",410482:"汝州市",410502:"文峰区",410503:"北关区",410505:"殷都区",410506:"龙安区",410522:"安阳县",410523:"汤阴县",410526:"滑县",410527:"内黄县",410581:"林州市",410590:"开发区",410602:"鹤山区",410603:"山城区",410611:"淇滨区",410621:"浚县",410622:"淇县",410702:"红旗区",410703:"卫滨区",410704:"凤泉区",410711:"牧野区",410721:"新乡县",410724:"获嘉县",410725:"原阳县",410726:"延津县",410727:"封丘县",410771:"新乡高新技术产业开发区",410772:"新乡经济技术开发区",410781:"卫辉市",410782:"辉县市",410783:"长垣市",410802:"解放区",410803:"中站区",410804:"马村区",410811:"山阳区",410821:"修武县",410822:"博爱县",410823:"武陟县",410825:"温县",410871:"焦作城乡一体化示范区",410882:"沁阳市",410883:"孟州市",410902:"华龙区",410922:"清丰县",410923:"南乐县",410926:"范县",410927:"台前县",410928:"濮阳县",410971:"河南濮阳工业园区",411002:"魏都区",411003:"建安区",411024:"鄢陵县",411025:"襄城县",411071:"许昌经济技术开发区",411081:"禹州市",411082:"长葛市",411102:"源汇区",411103:"郾城区",411104:"召陵区",411121:"舞阳县",411122:"临颍县",411171:"漯河经济技术开发区",411202:"湖滨区",411203:"陕州区",411221:"渑池县",411224:"卢氏县",411271:"河南三门峡经济开发区",411281:"义马市",411282:"灵宝市",411302:"宛城区",411303:"卧龙区",411321:"南召县",411322:"方城县",411323:"西峡县",411324:"镇平县",411325:"内乡县",411326:"淅川县",411327:"社旗县",411328:"唐河县",411329:"新野县",411330:"桐柏县",411372:"南阳市城乡一体化示范区",411381:"邓州市",411402:"梁园区",411403:"睢阳区",411421:"民权县",411422:"睢县",411423:"宁陵县",411424:"柘城县",411425:"虞城县",411426:"夏邑县",411481:"永城市",411502:"浉河区",411503:"平桥区",411521:"罗山县",411522:"光山县",411523:"新县",411524:"商城县",411525:"固始县",411526:"潢川县",411527:"淮滨县",411528:"息县",411602:"川汇区",411603:"淮阳区",411621:"扶沟县",411622:"西华县",411623:"商水县",411624:"沈丘县",411625:"郸城县",411627:"太康县",411628:"鹿邑县",411671:"河南周口经济开发区",411681:"项城市",411690:"经济开发区",411702:"驿城区",411721:"西平县",411722:"上蔡县",411723:"平舆县",411724:"正阳县",411725:"确山县",411726:"泌阳县",411727:"汝南县",411728:"遂平县",411729:"新蔡县",419001:"济源市",420102:"江岸区",420103:"江汉区",420104:"硚口区",420105:"汉阳区",420106:"武昌区",420107:"青山区",420111:"洪山区",420112:"东西湖区",420113:"汉南区",420114:"蔡甸区",420115:"江夏区",420116:"黄陂区",420117:"新洲区",420202:"黄石港区",420203:"西塞山区",420204:"下陆区",420205:"铁山区",420222:"阳新县",420281:"大冶市",420302:"茅箭区",420303:"张湾区",420304:"郧阳区",420322:"郧西县",420323:"竹山县",420324:"竹溪县",420325:"房县",420381:"丹江口市",420502:"西陵区",420503:"伍家岗区",420504:"点军区",420505:"猇亭区",420506:"夷陵区",420525:"远安县",420526:"兴山县",420527:"秭归县",420528:"长阳土家族自治县",420529:"五峰土家族自治县",420581:"宜都市",420582:"当阳市",420583:"枝江市",420590:"经济开发区",420602:"襄城区",420606:"樊城区",420607:"襄州区",420624:"南漳县",420625:"谷城县",420626:"保康县",420682:"老河口市",420683:"枣阳市",420684:"宜城市",420702:"梁子湖区",420703:"华容区",420704:"鄂城区",420802:"东宝区",420804:"掇刀区",420822:"沙洋县",420881:"钟祥市",420882:"京山市",420902:"孝南区",420921:"孝昌县",420922:"大悟县",420923:"云梦县",420981:"应城市",420982:"安陆市",420984:"汉川市",421002:"沙市区",421003:"荆州区",421022:"公安县",421023:"监利县",421024:"江陵县",421081:"石首市",421083:"洪湖市",421087:"松滋市",421102:"黄州区",421121:"团风县",421122:"红安县",421123:"罗田县",421124:"英山县",421125:"浠水县",421126:"蕲春县",421127:"黄梅县",421171:"龙感湖管理区",421181:"麻城市",421182:"武穴市",421202:"咸安区",421221:"嘉鱼县",421222:"通城县",421223:"崇阳县",421224:"通山县",421281:"赤壁市",421303:"曾都区",421321:"随县",421381:"广水市",422801:"恩施市",422802:"利川市",422822:"建始县",422823:"巴东县",422825:"宣恩县",422826:"咸丰县",422827:"来凤县",422828:"鹤峰县",429004:"仙桃市",429005:"潜江市",429006:"天门市",429021:"神农架林区",430102:"芙蓉区",430103:"天心区",430104:"岳麓区",430105:"开福区",430111:"雨花区",430112:"望城区",430121:"长沙县",430181:"浏阳市",430182:"宁乡市",430202:"荷塘区",430203:"芦淞区",430204:"石峰区",430211:"天元区",430212:"渌口区",430223:"攸县",430224:"茶陵县",430225:"炎陵县",430271:"云龙示范区",430281:"醴陵市",430302:"雨湖区",430304:"岳塘区",430321:"湘潭县",430373:"湘潭九华示范区",430381:"湘乡市",430382:"韶山市",430405:"珠晖区",430406:"雁峰区",430407:"石鼓区",430408:"蒸湘区",430412:"南岳区",430421:"衡阳县",430422:"衡南县",430423:"衡山县",430424:"衡东县",430426:"祁东县",430481:"耒阳市",430482:"常宁市",430502:"双清区",430503:"大祥区",430511:"北塔区",430522:"新邵县",430523:"邵阳县",430524:"隆回县",430525:"洞口县",430527:"绥宁县",430528:"新宁县",430529:"城步苗族自治县",430581:"武冈市",430582:"邵东市",430602:"岳阳楼区",430603:"云溪区",430611:"君山区",430621:"岳阳县",430623:"华容县",430624:"湘阴县",430626:"平江县",430681:"汨罗市",430682:"临湘市",430702:"武陵区",430703:"鼎城区",430721:"安乡县",430722:"汉寿县",430723:"澧县",430724:"临澧县",430725:"桃源县",430726:"石门县",430781:"津市市",430802:"永定区",430811:"武陵源区",430821:"慈利县",430822:"桑植县",430902:"资阳区",430903:"赫山区",430921:"南县",430922:"桃江县",430923:"安化县",430971:"益阳市大通湖管理区",430981:"沅江市",431002:"北湖区",431003:"苏仙区",431021:"桂阳县",431022:"宜章县",431023:"永兴县",431024:"嘉禾县",431025:"临武县",431026:"汝城县",431027:"桂东县",431028:"安仁县",431081:"资兴市",431102:"零陵区",431103:"冷水滩区",431121:"祁阳县",431122:"东安县",431123:"双牌县",431124:"道县",431125:"江永县",431126:"宁远县",431127:"蓝山县",431128:"新田县",431129:"江华瑶族自治县",431202:"鹤城区",431221:"中方县",431222:"沅陵县",431223:"辰溪县",431224:"溆浦县",431225:"会同县",431226:"麻阳苗族自治县",431227:"新晃侗族自治县",431228:"芷江侗族自治县",431229:"靖州苗族侗族自治县",431230:"通道侗族自治县",431271:"怀化市洪江管理区",431281:"洪江市",431302:"娄星区",431321:"双峰县",431322:"新化县",431381:"冷水江市",431382:"涟源市",433101:"吉首市",433122:"泸溪县",433123:"凤凰县",433124:"花垣县",433125:"保靖县",433126:"古丈县",433127:"永顺县",433130:"龙山县",440103:"荔湾区",440104:"越秀区",440105:"海珠区",440106:"天河区",440111:"白云区",440112:"黄埔区",440113:"番禺区",440114:"花都区",440115:"南沙区",440117:"从化区",440118:"增城区",440203:"武江区",440204:"浈江区",440205:"曲江区",440222:"始兴县",440224:"仁化县",440229:"翁源县",440232:"乳源瑶族自治县",440233:"新丰县",440281:"乐昌市",440282:"南雄市",440303:"罗湖区",440304:"福田区",440305:"南山区",440306:"宝安区",440307:"龙岗区",440308:"盐田区",440309:"龙华区",440310:"坪山区",440311:"光明区",440402:"香洲区",440403:"斗门区",440404:"金湾区",440507:"龙湖区",440511:"金平区",440512:"濠江区",440513:"潮阳区",440514:"潮南区",440515:"澄海区",440523:"南澳县",440604:"禅城区",440605:"南海区",440606:"顺德区",440607:"三水区",440608:"高明区",440703:"蓬江区",440704:"江海区",440705:"新会区",440781:"台山市",440783:"开平市",440784:"鹤山市",440785:"恩平市",440802:"赤坎区",440803:"霞山区",440804:"坡头区",440811:"麻章区",440823:"遂溪县",440825:"徐闻县",440881:"廉江市",440882:"雷州市",440883:"吴川市",440890:"经济技术开发区",440902:"茂南区",440904:"电白区",440981:"高州市",440982:"化州市",440983:"信宜市",441202:"端州区",441203:"鼎湖区",441204:"高要区",441223:"广宁县",441224:"怀集县",441225:"封开县",441226:"德庆县",441284:"四会市",441302:"惠城区",441303:"惠阳区",441322:"博罗县",441323:"惠东县",441324:"龙门县",441402:"梅江区",441403:"梅县区",441422:"大埔县",441423:"丰顺县",441424:"五华县",441426:"平远县",441427:"蕉岭县",441481:"兴宁市",441502:"城区",441521:"海丰县",441523:"陆河县",441581:"陆丰市",441602:"源城区",441621:"紫金县",441622:"龙川县",441623:"连平县",441624:"和平县",441625:"东源县",441702:"江城区",441704:"阳东区",441721:"阳西县",441781:"阳春市",441802:"清城区",441803:"清新区",441821:"佛冈县",441823:"阳山县",441825:"连山壮族瑶族自治县",441826:"连南瑶族自治县",441881:"英德市",441882:"连州市",441901:"中堂镇",441903:"南城街道",441904:"长安镇",441905:"东坑镇",441906:"樟木头镇",441907:"莞城街道",441908:"石龙镇",441909:"桥头镇",441910:"万江街道",441911:"麻涌镇",441912:"虎门镇",441913:"谢岗镇",441914:"石碣镇",441915:"茶山镇",441916:"东城街道",441917:"洪梅镇",441918:"道滘镇",441919:"高埗镇",441920:"企石镇",441921:"凤岗镇",441922:"大岭山镇",441923:"松山湖",441924:"清溪镇",441925:"望牛墩镇",441926:"厚街镇",441927:"常平镇",441928:"寮步镇",441929:"石排镇",441930:"横沥镇",441931:"塘厦镇",441932:"黄江镇",441933:"大朗镇",441934:"东莞港",441935:"东莞生态园",441990:"沙田镇",442001:"南头镇",442002:"神湾镇",442003:"东凤镇",442004:"五桂山街道",442005:"黄圃镇",442006:"小榄镇",442007:"石岐街道",442008:"横栏镇",442009:"三角镇",442010:"三乡镇",442011:"港口镇",442012:"沙溪镇",442013:"板芙镇",442015:"东升镇",442016:"阜沙镇",442017:"民众镇",442018:"东区街道",442019:"火炬开发区街道办事处",442020:"西区街道",442021:"南区街道",442022:"古镇镇",442023:"坦洲镇",442024:"大涌镇",442025:"南朗镇",445102:"湘桥区",445103:"潮安区",445122:"饶平县",445202:"榕城区",445203:"揭东区",445222:"揭西县",445224:"惠来县",445281:"普宁市",445302:"云城区",445303:"云安区",445321:"新兴县",445322:"郁南县",445381:"罗定市",450102:"兴宁区",450103:"青秀区",450105:"江南区",450107:"西乡塘区",450108:"良庆区",450109:"邕宁区",450110:"武鸣区",450123:"隆安县",450124:"马山县",450125:"上林县",450126:"宾阳县",450127:"横县",450202:"城中区",450203:"鱼峰区",450204:"柳南区",450205:"柳北区",450206:"柳江区",450222:"柳城县",450223:"鹿寨县",450224:"融安县",450225:"融水苗族自治县",450226:"三江侗族自治县",450302:"秀峰区",450303:"叠彩区",450304:"象山区",450305:"七星区",450311:"雁山区",450312:"临桂区",450321:"阳朔县",450323:"灵川县",450324:"全州县",450325:"兴安县",450326:"永福县",450327:"灌阳县",450328:"龙胜各族自治县",450329:"资源县",450330:"平乐县",450332:"恭城瑶族自治县",450381:"荔浦市",450403:"万秀区",450405:"长洲区",450406:"龙圩区",450421:"苍梧县",450422:"藤县",450423:"蒙山县",450481:"岑溪市",450502:"海城区",450503:"银海区",450512:"铁山港区",450521:"合浦县",450602:"港口区",450603:"防城区",450621:"上思县",450681:"东兴市",450702:"钦南区",450703:"钦北区",450721:"灵山县",450722:"浦北县",450802:"港北区",450803:"港南区",450804:"覃塘区",450821:"平南县",450881:"桂平市",450902:"玉州区",450903:"福绵区",450921:"容县",450922:"陆川县",450923:"博白县",450924:"兴业县",450981:"北流市",451002:"右江区",451003:"田阳区",451022:"田东县",451024:"德保县",451026:"那坡县",451027:"凌云县",451028:"乐业县",451029:"田林县",451030:"西林县",451031:"隆林各族自治县",451081:"靖西市",451082:"平果市",451102:"八步区",451103:"平桂区",451121:"昭平县",451122:"钟山县",451123:"富川瑶族自治县",451202:"金城江区",451203:"宜州区",451221:"南丹县",451222:"天峨县",451223:"凤山县",451224:"东兰县",451225:"罗城仫佬族自治县",451226:"环江毛南族自治县",451227:"巴马瑶族自治县",451228:"都安瑶族自治县",451229:"大化瑶族自治县",451302:"兴宾区",451321:"忻城县",451322:"象州县",451323:"武宣县",451324:"金秀瑶族自治县",451381:"合山市",451402:"江州区",451421:"扶绥县",451422:"宁明县",451423:"龙州县",451424:"大新县",451425:"天等县",451481:"凭祥市",460105:"秀英区",460106:"龙华区",460107:"琼山区",460108:"美兰区",460202:"海棠区",460203:"吉阳区",460204:"天涯区",460205:"崖州区",460321:"西沙区",460322:"南沙区",460401:"那大镇",460402:"和庆镇",460403:"南丰镇",460404:"大成镇",460405:"雅星镇",460406:"兰洋镇",460407:"光村镇",460408:"木棠镇",460409:"海头镇",460410:"峨蔓镇",460411:"王五镇",460412:"白马井镇",460413:"中和镇",460414:"排浦镇",460415:"东成镇",460416:"新州镇",460417:"洋浦经济开发区",460418:"华南热作学院",469001:"五指山市",469002:"琼海市",469005:"文昌市",469006:"万宁市",469007:"东方市",469021:"定安县",469022:"屯昌县",469023:"澄迈县",469024:"临高县",469025:"白沙黎族自治县",469026:"昌江黎族自治县",469027:"乐东黎族自治县",469028:"陵水黎族自治县",469029:"保亭黎族苗族自治县",469030:"琼中黎族苗族自治县",500101:"万州区",500102:"涪陵区",500103:"渝中区",500104:"大渡口区",500105:"江北区",500106:"沙坪坝区",500107:"九龙坡区",500108:"南岸区",500109:"北碚区",500110:"綦江区",500111:"大足区",500112:"渝北区",500113:"巴南区",500114:"黔江区",500115:"长寿区",500116:"江津区",500117:"合川区",500118:"永川区",500119:"南川区",500120:"璧山区",500151:"铜梁区",500152:"潼南区",500153:"荣昌区",500154:"开州区",500155:"梁平区",500156:"武隆区",500229:"城口县",500230:"丰都县",500231:"垫江县",500233:"忠县",500235:"云阳县",500236:"奉节县",500237:"巫山县",500238:"巫溪县",500240:"石柱土家族自治县",500241:"秀山土家族苗族自治县",500242:"酉阳土家族苗族自治县",500243:"彭水苗族土家族自治县",510104:"锦江区",510105:"青羊区",510106:"金牛区",510107:"武侯区",510108:"成华区",510112:"龙泉驿区",510113:"青白江区",510114:"新都区",510115:"温江区",510116:"双流区",510117:"郫都区",510121:"金堂县",510129:"大邑县",510131:"蒲江县",510132:"新津县",510181:"都江堰市",510182:"彭州市",510183:"邛崃市",510184:"崇州市",510185:"简阳市",510191:"高新区",510302:"自流井区",510303:"贡井区",510304:"大安区",510311:"沿滩区",510321:"荣县",510322:"富顺县",510402:"东区",510403:"西区",510411:"仁和区",510421:"米易县",510422:"盐边县",510502:"江阳区",510503:"纳溪区",510504:"龙马潭区",510521:"泸县",510522:"合江县",510524:"叙永县",510525:"古蔺县",510603:"旌阳区",510604:"罗江区",510623:"中江县",510681:"广汉市",510682:"什邡市",510683:"绵竹市",510703:"涪城区",510704:"游仙区",510705:"安州区",510722:"三台县",510723:"盐亭县",510725:"梓潼县",510726:"北川羌族自治县",510727:"平武县",510781:"江油市",510791:"高新区",510802:"利州区",510811:"昭化区",510812:"朝天区",510821:"旺苍县",510822:"青川县",510823:"剑阁县",510824:"苍溪县",510903:"船山区",510904:"安居区",510921:"蓬溪县",510923:"大英县",510981:"射洪市",511002:"市中区",511011:"东兴区",511024:"威远县",511025:"资中县",511083:"隆昌市",511102:"市中区",511111:"沙湾区",511112:"五通桥区",511113:"金口河区",511123:"犍为县",511124:"井研县",511126:"夹江县",511129:"沐川县",511132:"峨边彝族自治县",511133:"马边彝族自治县",511181:"峨眉山市",511302:"顺庆区",511303:"高坪区",511304:"嘉陵区",511321:"南部县",511322:"营山县",511323:"蓬安县",511324:"仪陇县",511325:"西充县",511381:"阆中市",511402:"东坡区",511403:"彭山区",511421:"仁寿县",511423:"洪雅县",511424:"丹棱县",511425:"青神县",511502:"翠屏区",511503:"南溪区",511504:"叙州区",511523:"江安县",511524:"长宁县",511525:"高县",511526:"珙县",511527:"筠连县",511528:"兴文县",511529:"屏山县",511602:"广安区",511603:"前锋区",511621:"岳池县",511622:"武胜县",511623:"邻水县",511681:"华蓥市",511702:"通川区",511703:"达川区",511722:"宣汉县",511723:"开江县",511724:"大竹县",511725:"渠县",511781:"万源市",511802:"雨城区",511803:"名山区",511822:"荥经县",511823:"汉源县",511824:"石棉县",511825:"天全县",511826:"芦山县",511827:"宝兴县",511902:"巴州区",511903:"恩阳区",511921:"通江县",511922:"南江县",511923:"平昌县",511971:"巴中经济开发区",512002:"雁江区",512021:"安岳县",512022:"乐至县",513201:"马尔康市",513221:"汶川县",513222:"理县",513223:"茂县",513224:"松潘县",513225:"九寨沟县",513226:"金川县",513227:"小金县",513228:"黑水县",513230:"壤塘县",513231:"阿坝县",513232:"若尔盖县",513233:"红原县",513301:"康定市",513322:"泸定县",513323:"丹巴县",513324:"九龙县",513325:"雅江县",513326:"道孚县",513327:"炉霍县",513328:"甘孜县",513329:"新龙县",513330:"德格县",513331:"白玉县",513332:"石渠县",513333:"色达县",513334:"理塘县",513335:"巴塘县",513336:"乡城县",513337:"稻城县",513338:"得荣县",513401:"西昌市",513422:"木里藏族自治县",513423:"盐源县",513424:"德昌县",513425:"会理县",513426:"会东县",513427:"宁南县",513428:"普格县",513429:"布拖县",513430:"金阳县",513431:"昭觉县",513432:"喜德县",513433:"冕宁县",513434:"越西县",513435:"甘洛县",513436:"美姑县",513437:"雷波县",520102:"南明区",520103:"云岩区",520111:"花溪区",520112:"乌当区",520113:"白云区",520115:"观山湖区",520121:"开阳县",520122:"息烽县",520123:"修文县",520181:"清镇市",520201:"钟山区",520203:"六枝特区",520221:"水城县",520281:"盘州市",520302:"红花岗区",520303:"汇川区",520304:"播州区",520322:"桐梓县",520323:"绥阳县",520324:"正安县",520325:"道真仡佬族苗族自治县",520326:"务川仡佬族苗族自治县",520327:"凤冈县",520328:"湄潭县",520329:"余庆县",520330:"习水县",520381:"赤水市",520382:"仁怀市",520402:"西秀区",520403:"平坝区",520422:"普定县",520423:"镇宁布依族苗族自治县",520424:"关岭布依族苗族自治县",520425:"紫云苗族布依族自治县",520502:"七星关区",520521:"大方县",520522:"黔西县",520523:"金沙县",520524:"织金县",520525:"纳雍县",520526:"威宁彝族回族苗族自治县",520527:"赫章县",520602:"碧江区",520603:"万山区",520621:"江口县",520622:"玉屏侗族自治县",520623:"石阡县",520624:"思南县",520625:"印江土家族苗族自治县",520626:"德江县",520627:"沿河土家族自治县",520628:"松桃苗族自治县",522301:"兴义市",522302:"兴仁市",522323:"普安县",522324:"晴隆县",522325:"贞丰县",522326:"望谟县",522327:"册亨县",522328:"安龙县",522601:"凯里市",522622:"黄平县",522623:"施秉县",522624:"三穗县",522625:"镇远县",522626:"岑巩县",522627:"天柱县",522628:"锦屏县",522629:"剑河县",522630:"台江县",522631:"黎平县",522632:"榕江县",522633:"从江县",522634:"雷山县",522635:"麻江县",522636:"丹寨县",522701:"都匀市",522702:"福泉市",522722:"荔波县",522723:"贵定县",522725:"瓮安县",522726:"独山县",522727:"平塘县",522728:"罗甸县",522729:"长顺县",522730:"龙里县",522731:"惠水县",522732:"三都水族自治县",530102:"五华区",530103:"盘龙区",530111:"官渡区",530112:"西山区",530113:"东川区",530114:"呈贡区",530115:"晋宁区",530124:"富民县",530125:"宜良县",530126:"石林彝族自治县",530127:"嵩明县",530128:"禄劝彝族苗族自治县",530129:"寻甸回族彝族自治县",530181:"安宁市",530302:"麒麟区",530303:"沾益区",530304:"马龙区",530322:"陆良县",530323:"师宗县",530324:"罗平县",530325:"富源县",530326:"会泽县",530381:"宣威市",530402:"红塔区",530403:"江川区",530423:"通海县",530424:"华宁县",530425:"易门县",530426:"峨山彝族自治县",530427:"新平彝族傣族自治县",530428:"元江哈尼族彝族傣族自治县",530481:"澄江市",530502:"隆阳区",530521:"施甸县",530523:"龙陵县",530524:"昌宁县",530581:"腾冲市",530602:"昭阳区",530621:"鲁甸县",530622:"巧家县",530623:"盐津县",530624:"大关县",530625:"永善县",530626:"绥江县",530627:"镇雄县",530628:"彝良县",530629:"威信县",530681:"水富市",530702:"古城区",530721:"玉龙纳西族自治县",530722:"永胜县",530723:"华坪县",530724:"宁蒗彝族自治县",530802:"思茅区",530821:"宁洱哈尼族彝族自治县",530822:"墨江哈尼族自治县",530823:"景东彝族自治县",530824:"景谷傣族彝族自治县",530825:"镇沅彝族哈尼族拉祜族自治县",530826:"江城哈尼族彝族自治县",530827:"孟连傣族拉祜族佤族自治县",530828:"澜沧拉祜族自治县",530829:"西盟佤族自治县",530902:"临翔区",530921:"凤庆县",530922:"云县",530923:"永德县",530924:"镇康县",530925:"双江拉祜族佤族布朗族傣族自治县",530926:"耿马傣族佤族自治县",530927:"沧源佤族自治县",532301:"楚雄市",532322:"双柏县",532323:"牟定县",532324:"南华县",532325:"姚安县",532326:"大姚县",532327:"永仁县",532328:"元谋县",532329:"武定县",532331:"禄丰县",532501:"个旧市",532502:"开远市",532503:"蒙自市",532504:"弥勒市",532523:"屏边苗族自治县",532524:"建水县",532525:"石屏县",532527:"泸西县",532528:"元阳县",532529:"红河县",532530:"金平苗族瑶族傣族自治县",532531:"绿春县",532532:"河口瑶族自治县",532601:"文山市",532622:"砚山县",532623:"西畴县",532624:"麻栗坡县",532625:"马关县",532626:"丘北县",532627:"广南县",532628:"富宁县",532801:"景洪市",532822:"勐海县",532823:"勐腊县",532901:"大理市",532922:"漾濞彝族自治县",532923:"祥云县",532924:"宾川县",532925:"弥渡县",532926:"南涧彝族自治县",532927:"巍山彝族回族自治县",532928:"永平县",532929:"云龙县",532930:"洱源县",532931:"剑川县",532932:"鹤庆县",533102:"瑞丽市",533103:"芒市",533122:"梁河县",533123:"盈江县",533124:"陇川县",533301:"泸水市",533323:"福贡县",533324:"贡山独龙族怒族自治县",533325:"兰坪白族普米族自治县",533401:"香格里拉市",533422:"德钦县",533423:"维西傈僳族自治县",540102:"城关区",540103:"堆龙德庆区",540104:"达孜区",540121:"林周县",540122:"当雄县",540123:"尼木县",540124:"曲水县",540127:"墨竹工卡县",540202:"桑珠孜区",540221:"南木林县",540222:"江孜县",540223:"定日县",540224:"萨迦县",540225:"拉孜县",540226:"昂仁县",540227:"谢通门县",540228:"白朗县",540229:"仁布县",540230:"康马县",540231:"定结县",540232:"仲巴县",540233:"亚东县",540234:"吉隆县",540235:"聂拉木县",540236:"萨嘎县",540237:"岗巴县",540302:"卡若区",540321:"江达县",540322:"贡觉县",540323:"类乌齐县",540324:"丁青县",540325:"察雅县",540326:"八宿县",540327:"左贡县",540328:"芒康县",540329:"洛隆县",540330:"边坝县",540402:"巴宜区",540421:"工布江达县",540422:"米林县",540423:"墨脱县",540424:"波密县",540425:"察隅县",540426:"朗县",540502:"乃东区",540521:"扎囊县",540522:"贡嘎县",540523:"桑日县",540524:"琼结县",540525:"曲松县",540526:"措美县",540527:"洛扎县",540528:"加查县",540529:"隆子县",540530:"错那县",540531:"浪卡子县",540602:"色尼区",540621:"嘉黎县",540622:"比如县",540623:"聂荣县",540624:"安多县",540625:"申扎县",540626:"索县",540627:"班戈县",540628:"巴青县",540629:"尼玛县",540630:"双湖县",542521:"普兰县",542522:"札达县",542523:"噶尔县",542524:"日土县",542525:"革吉县",542526:"改则县",542527:"措勤县",610102:"新城区",610103:"碑林区",610104:"莲湖区",610111:"灞桥区",610112:"未央区",610113:"雁塔区",610114:"阎良区",610115:"临潼区",610116:"长安区",610117:"高陵区",610118:"鄠邑区",610122:"蓝田县",610124:"周至县",610202:"王益区",610203:"印台区",610204:"耀州区",610222:"宜君县",610302:"渭滨区",610303:"金台区",610304:"陈仓区",610322:"凤翔县",610323:"岐山县",610324:"扶风县",610326:"眉县",610327:"陇县",610328:"千阳县",610329:"麟游县",610330:"凤县",610331:"太白县",610402:"秦都区",610403:"杨陵区",610404:"渭城区",610422:"三原县",610423:"泾阳县",610424:"乾县",610425:"礼泉县",610426:"永寿县",610428:"长武县",610429:"旬邑县",610430:"淳化县",610431:"武功县",610481:"兴平市",610482:"彬州市",610502:"临渭区",610503:"华州区",610522:"潼关县",610523:"大荔县",610524:"合阳县",610525:"澄城县",610526:"蒲城县",610527:"白水县",610528:"富平县",610581:"韩城市",610582:"华阴市",610602:"宝塔区",610603:"安塞区",610621:"延长县",610622:"延川县",610625:"志丹县",610626:"吴起县",610627:"甘泉县",610628:"富县",610629:"洛川县",610630:"宜川县",610631:"黄龙县",610632:"黄陵县",610681:"子长市",610702:"汉台区",610703:"南郑区",610722:"城固县",610723:"洋县",610724:"西乡县",610725:"勉县",610726:"宁强县",610727:"略阳县",610728:"镇巴县",610729:"留坝县",610730:"佛坪县",610802:"榆阳区",610803:"横山区",610822:"府谷县",610824:"靖边县",610825:"定边县",610826:"绥德县",610827:"米脂县",610828:"佳县",610829:"吴堡县",610830:"清涧县",610831:"子洲县",610881:"神木市",610902:"汉滨区",610921:"汉阴县",610922:"石泉县",610923:"宁陕县",610924:"紫阳县",610925:"岚皋县",610926:"平利县",610927:"镇坪县",610928:"旬阳县",610929:"白河县",611002:"商州区",611021:"洛南县",611022:"丹凤县",611023:"商南县",611024:"山阳县",611025:"镇安县",611026:"柞水县",620102:"城关区",620103:"七里河区",620104:"西固区",620105:"安宁区",620111:"红古区",620121:"永登县",620122:"皋兰县",620123:"榆中县",620171:"兰州新区",620201:"市辖区",620290:"雄关区",620291:"长城区",620292:"镜铁区",620293:"新城镇",620294:"峪泉镇",620295:"文殊镇",620302:"金川区",620321:"永昌县",620402:"白银区",620403:"平川区",620421:"靖远县",620422:"会宁县",620423:"景泰县",620502:"秦州区",620503:"麦积区",620521:"清水县",620522:"秦安县",620523:"甘谷县",620524:"武山县",620525:"张家川回族自治县",620602:"凉州区",620621:"民勤县",620622:"古浪县",620623:"天祝藏族自治县",620702:"甘州区",620721:"肃南裕固族自治县",620722:"民乐县",620723:"临泽县",620724:"高台县",620725:"山丹县",620802:"崆峒区",620821:"泾川县",620822:"灵台县",620823:"崇信县",620825:"庄浪县",620826:"静宁县",620881:"华亭市",620902:"肃州区",620921:"金塔县",620922:"瓜州县",620923:"肃北蒙古族自治县",620924:"阿克塞哈萨克族自治县",620981:"玉门市",620982:"敦煌市",621002:"西峰区",621021:"庆城县",621022:"环县",621023:"华池县",621024:"合水县",621025:"正宁县",621026:"宁县",621027:"镇原县",621102:"安定区",621121:"通渭县",621122:"陇西县",621123:"渭源县",621124:"临洮县",621125:"漳县",621126:"岷县",621202:"武都区",621221:"成县",621222:"文县",621223:"宕昌县",621224:"康县",621225:"西和县",621226:"礼县",621227:"徽县",621228:"两当县",622901:"临夏市",622921:"临夏县",622922:"康乐县",622923:"永靖县",622924:"广河县",622925:"和政县",622926:"东乡族自治县",622927:"积石山保安族东乡族撒拉族自治县",623001:"合作市",623021:"临潭县",623022:"卓尼县",623023:"舟曲县",623024:"迭部县",623025:"玛曲县",623026:"碌曲县",623027:"夏河县",630102:"城东区",630103:"城中区",630104:"城西区",630105:"城北区",630106:"湟中区",630121:"大通回族土族自治县",630123:"湟源县",630202:"乐都区",630203:"平安区",630222:"民和回族土族自治县",630223:"互助土族自治县",630224:"化隆回族自治县",630225:"循化撒拉族自治县",632221:"门源回族自治县",632222:"祁连县",632223:"海晏县",632224:"刚察县",632321:"同仁县",632322:"尖扎县",632323:"泽库县",632324:"河南蒙古族自治县",632521:"共和县",632522:"同德县",632523:"贵德县",632524:"兴海县",632525:"贵南县",632621:"玛沁县",632622:"班玛县",632623:"甘德县",632624:"达日县",632625:"久治县",632626:"玛多县",632701:"玉树市",632722:"杂多县",632723:"称多县",632724:"治多县",632725:"囊谦县",632726:"曲麻莱县",632801:"格尔木市",632802:"德令哈市",632803:"茫崖市",632821:"乌兰县",632822:"都兰县",632823:"天峻县",632857:"大柴旦行政委员会",640104:"兴庆区",640105:"西夏区",640106:"金凤区",640121:"永宁县",640122:"贺兰县",640181:"灵武市",640202:"大武口区",640205:"惠农区",640221:"平罗县",640302:"利通区",640303:"红寺堡区",640323:"盐池县",640324:"同心县",640381:"青铜峡市",640402:"原州区",640422:"西吉县",640423:"隆德县",640424:"泾源县",640425:"彭阳县",640502:"沙坡头区",640521:"中宁县",640522:"海原县",650102:"天山区",650103:"沙依巴克区",650104:"新市区",650105:"水磨沟区",650106:"头屯河区",650107:"达坂城区",650109:"米东区",650121:"乌鲁木齐县",650202:"独山子区",650203:"克拉玛依区",650204:"白碱滩区",650205:"乌尔禾区",650402:"高昌区",650421:"鄯善县",650422:"托克逊县",650502:"伊州区",650521:"巴里坤哈萨克自治县",650522:"伊吾县",652301:"昌吉市",652302:"阜康市",652323:"呼图壁县",652324:"玛纳斯县",652325:"奇台县",652327:"吉木萨尔县",652328:"木垒哈萨克自治县",652701:"博乐市",652702:"阿拉山口市",652722:"精河县",652723:"温泉县",652801:"库尔勒市",652822:"轮台县",652823:"尉犁县",652824:"若羌县",652825:"且末县",652826:"焉耆回族自治县",652827:"和静县",652828:"和硕县",652829:"博湖县",652901:"阿克苏市",652902:"库车市",652922:"温宿县",652924:"沙雅县",652925:"新和县",652926:"拜城县",652927:"乌什县",652928:"阿瓦提县",652929:"柯坪县",653001:"阿图什市",653022:"阿克陶县",653023:"阿合奇县",653024:"乌恰县",653101:"喀什市",653121:"疏附县",653122:"疏勒县",653123:"英吉沙县",653124:"泽普县",653125:"莎车县",653126:"叶城县",653127:"麦盖提县",653128:"岳普湖县",653129:"伽师县",653130:"巴楚县",653131:"塔什库尔干塔吉克自治县",653201:"和田市",653221:"和田县",653222:"墨玉县",653223:"皮山县",653224:"洛浦县",653225:"策勒县",653226:"于田县",653227:"民丰县",654002:"伊宁市",654003:"奎屯市",654004:"霍尔果斯市",654021:"伊宁县",654022:"察布查尔锡伯自治县",654023:"霍城县",654024:"巩留县",654025:"新源县",654026:"昭苏县",654027:"特克斯县",654028:"尼勒克县",654201:"塔城市",654202:"乌苏市",654221:"额敏县",654223:"沙湾县",654224:"托里县",654225:"裕民县",654226:"和布克赛尔蒙古自治县",654301:"阿勒泰市",654321:"布尔津县",654322:"富蕴县",654323:"福海县",654324:"哈巴河县",654325:"青河县",654326:"吉木乃县",659001:"石河子市",659002:"阿拉尔市",659003:"图木舒克市",659004:"五家渠市",659005:"北屯市",659006:"铁门关市",659007:"双河市",659008:"可克达拉市",659009:"昆玉市",659010:"胡杨河市",710101:"中正区",710102:"大同区",710103:"中山区",710104:"松山区",710105:"大安区",710106:"万华区",710107:"信义区",710108:"士林区",710109:"北投区",710110:"内湖区",710111:"南港区",710112:"文山区",710199:"其它区",710201:"新兴区",710202:"前金区",710203:"芩雅区",710204:"盐埕区",710205:"鼓山区",710206:"旗津区",710207:"前镇区",710208:"三民区",710209:"左营区",710210:"楠梓区",710211:"小港区",710241:"苓雅区",710242:"仁武区",710243:"大社区",710244:"冈山区",710245:"路竹区",710246:"阿莲区",710247:"田寮区",710248:"燕巢区",710249:"桥头区",710250:"梓官区",710251:"弥陀区",710252:"永安区",710253:"湖内区",710254:"凤山区",710255:"大寮区",710256:"林园区",710257:"鸟松区",710258:"大树区",710259:"旗山区",710260:"美浓区",710261:"六龟区",710262:"内门区",710263:"杉林区",710264:"甲仙区",710265:"桃源区",710266:"那玛夏区",710267:"茂林区",710268:"茄萣区",710299:"其它区",710301:"中西区",710302:"东区",710303:"南区",710304:"北区",710305:"安平区",710306:"安南区",710339:"永康区",710340:"归仁区",710341:"新化区",710342:"左镇区",710343:"玉井区",710344:"楠西区",710345:"南化区",710346:"仁德区",710347:"关庙区",710348:"龙崎区",710349:"官田区",710350:"麻豆区",710351:"佳里区",710352:"西港区",710353:"七股区",710354:"将军区",710355:"学甲区",710356:"北门区",710357:"新营区",710358:"后壁区",710359:"白河区",710360:"东山区",710361:"六甲区",710362:"下营区",710363:"柳营区",710364:"盐水区",710365:"善化区",710366:"大内区",710367:"山上区",710368:"新市区",710369:"安定区",710399:"其它区",710401:"中区",710402:"东区",710403:"南区",710404:"西区",710405:"北区",710406:"北屯区",710407:"西屯区",710408:"南屯区",710431:"太平区",710432:"大里区",710433:"雾峰区",710434:"乌日区",710435:"丰原区",710436:"后里区",710437:"石冈区",710438:"东势区",710439:"和平区",710440:"新社区",710441:"潭子区",710442:"大雅区",710443:"神冈区",710444:"大肚区",710445:"沙鹿区",710446:"龙井区",710447:"梧栖区",710448:"清水区",710449:"大甲区",710450:"外埔区",710451:"大安区",710499:"其它区",710507:"金沙镇",710508:"金湖镇",710509:"金宁乡",710510:"金城镇",710511:"烈屿乡",710512:"乌坵乡",710614:"南投市",710615:"中寮乡",710616:"草屯镇",710617:"国姓乡",710618:"埔里镇",710619:"仁爱乡",710620:"名间乡",710621:"集集镇",710622:"水里乡",710623:"鱼池乡",710624:"信义乡",710625:"竹山镇",710626:"鹿谷乡",710701:"仁爱区",710702:"信义区",710703:"中正区",710704:"中山区",710705:"安乐区",710706:"暖暖区",710707:"七堵区",710799:"其它区",710801:"东区",710802:"北区",710803:"香山区",710899:"其它区",710901:"东区",710902:"西区",710999:"其它区",711130:"万里区",711132:"板桥区",711133:"汐止区",711134:"深坑区",711135:"石碇区",711136:"瑞芳区",711137:"平溪区",711138:"双溪区",711139:"贡寮区",711140:"新店区",711141:"坪林区",711142:"乌来区",711143:"永和区",711144:"中和区",711145:"土城区",711146:"三峡区",711147:"树林区",711148:"莺歌区",711149:"三重区",711150:"新庄区",711151:"泰山区",711152:"林口区",711153:"芦洲区",711154:"五股区",711155:"八里区",711156:"淡水区",711157:"三芝区",711158:"石门区",711287:"宜兰市",711288:"头城镇",711289:"礁溪乡",711290:"壮围乡",711291:"员山乡",711292:"罗东镇",711293:"三星乡",711294:"大同乡",711295:"五结乡",711296:"冬山乡",711297:"苏澳镇",711298:"南澳乡",711299:"钓鱼台",711387:"竹北市",711388:"湖口乡",711389:"新丰乡",711390:"新埔镇",711391:"关西镇",711392:"芎林乡",711393:"宝山乡",711394:"竹东镇",711395:"五峰乡",711396:"横山乡",711397:"尖石乡",711398:"北埔乡",711399:"峨眉乡",711414:"中坜区",711415:"平镇区",711417:"杨梅区",711418:"新屋区",711419:"观音区",711420:"桃园区",711421:"龟山区",711422:"八德区",711423:"大溪区",711425:"大园区",711426:"芦竹区",711487:"中坜市",711488:"平镇市",711489:"龙潭乡",711490:"杨梅市",711491:"新屋乡",711492:"观音乡",711493:"桃园市",711494:"龟山乡",711495:"八德市",711496:"大溪镇",711497:"复兴乡",711498:"大园乡",711499:"芦竹乡",711520:"头份市",711582:"竹南镇",711583:"头份镇",711584:"三湾乡",711585:"南庄乡",711586:"狮潭乡",711587:"后龙镇",711588:"通霄镇",711589:"苑里镇",711590:"苗栗市",711591:"造桥乡",711592:"头屋乡",711593:"公馆乡",711594:"大湖乡",711595:"泰安乡",711596:"铜锣乡",711597:"三义乡",711598:"西湖乡",711599:"卓兰镇",711736:"员林市",711774:"彰化市",711775:"芬园乡",711776:"花坛乡",711777:"秀水乡",711778:"鹿港镇",711779:"福兴乡",711780:"线西乡",711781:"和美镇",711782:"伸港乡",711783:"员林镇",711784:"社头乡",711785:"永靖乡",711786:"埔心乡",711787:"溪湖镇",711788:"大村乡",711789:"埔盐乡",711790:"田中镇",711791:"北斗镇",711792:"田尾乡",711793:"埤头乡",711794:"溪州乡",711795:"竹塘乡",711796:"二林镇",711797:"大城乡",711798:"芳苑乡",711799:"二水乡",711982:"番路乡",711983:"梅山乡",711984:"竹崎乡",711985:"阿里山乡",711986:"中埔乡",711987:"大埔乡",711988:"水上乡",711989:"鹿草乡",711990:"太保市",711991:"朴子市",711992:"东石乡",711993:"六脚乡",711994:"新港乡",711995:"民雄乡",711996:"大林镇",711997:"溪口乡",711998:"义竹乡",711999:"布袋镇",712180:"斗南镇",712181:"大埤乡",712182:"虎尾镇",712183:"土库镇",712184:"褒忠乡",712185:"东势乡",712186:"台西乡",712187:"仑背乡",712188:"麦寮乡",712189:"斗六市",712190:"林内乡",712191:"古坑乡",712192:"莿桐乡",712193:"西螺镇",712194:"二仑乡",712195:"北港镇",712196:"水林乡",712197:"口湖乡",712198:"四湖乡",712199:"元长乡",712451:"崁顶乡",712467:"屏东市",712468:"三地门乡",712469:"雾台乡",712470:"玛家乡",712471:"九如乡",712472:"里港乡",712473:"高树乡",712474:"盐埔乡",712475:"长治乡",712476:"麟洛乡",712477:"竹田乡",712478:"内埔乡",712479:"万丹乡",712480:"潮州镇",712481:"泰武乡",712482:"来义乡",712483:"万峦乡",712484:"莰顶乡",712485:"新埤乡",712486:"南州乡",712487:"林边乡",712488:"东港镇",712489:"琉球乡",712490:"佳冬乡",712491:"新园乡",712492:"枋寮乡",712493:"枋山乡",712494:"春日乡",712495:"狮子乡",712496:"车城乡",712497:"牡丹乡",712498:"恒春镇",712499:"满州乡",712584:"台东市",712585:"绿岛乡",712586:"兰屿乡",712587:"延平乡",712588:"卑南乡",712589:"鹿野乡",712590:"关山镇",712591:"海端乡",712592:"池上乡",712593:"东河乡",712594:"成功镇",712595:"长滨乡",712596:"金峰乡",712597:"大武乡",712598:"达仁乡",712599:"太麻里乡",712686:"花莲市",712687:"新城乡",712688:"太鲁阁",712689:"秀林乡",712690:"吉安乡",712691:"寿丰乡",712692:"凤林镇",712693:"光复乡",712694:"丰滨乡",712695:"瑞穗乡",712696:"万荣乡",712697:"玉里镇",712698:"卓溪乡",712699:"富里乡",712794:"马公市",712795:"西屿乡",712796:"望安乡",712797:"七美乡",712798:"白沙乡",712799:"湖西乡",712896:"南竿乡",712897:"北竿乡",712898:"东引乡",712899:"莒光乡",810101:"中西区",810102:"湾仔区",810103:"东区",810104:"南区",810201:"九龙城区",810202:"油尖旺区",810203:"深水埗区",810204:"黄大仙区",810205:"观塘区",810301:"北区",810302:"大埔区",810303:"沙田区",810304:"西贡区",810305:"元朗区",810306:"屯门区",810307:"荃湾区",810308:"葵青区",810309:"离岛区",820102:"花地玛堂区",820103:"花王堂区",820104:"望德堂区",820105:"大堂区",820106:"风顺堂区",820202:"嘉模堂区",820203:"路氹填海区",820204:"圣方济各堂区"}},"5d5b":function(e,t,r){"use strict";r("1e18")},"5de4":function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=r("5530"),s=(r("96cf"),r("7db0"),r("d3b7"),r("d81d"),r("e9c4"),r("159b"),r("f5ed")),i=r("21fa"),o=r("b36d"),l=r("2f62"),c=r("9f53");o={name:"MenuOperator",components:{addEdit:o.default},mixins:[s.a,c.a],computed:Object(n.a)(Object(n.a)({},Object(l.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"menuOperator"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),data:function(){return{loading:!0,showModel:!1,showInterface:!1,isDetail:!1,isAdd:!0,level:1,modelId:0,formData:{},parentIds:"",parmValue:{parentId:0,code:"",status:"",type:1,menuCategory:"",current:1,size:15},tableData:[]}},mounted:function(){this.searchList()},methods:{addEditFn:function(e,t,r,a,n,s){this.showModel=!0,this.modelId=e,this.level=r,this.parentIds=t,this.isDetail=a,this.isAdd=n,this.formData=s},submitRefresh:function(e,t,r){var n=this;return Object(a.a)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r<3)return e.next=3,n.searchList();e.next=5;break;case 3:e.next=6;break;case 5:n.getchildList(t);case 6:case"end":return e.stop()}}),e)})))()},remove:function(e,t,r,n){var s=this;return Object(a.a)(regeneratorRuntime.mark((function o(){return regeneratorRuntime.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,s.$confirm("确定要".concat("0"===n?"启用":"禁用","?"),{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(a.a)(regeneratorRuntime.mark((function a(){var o,l;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(o={id:e,status:"1"===n?"0":"1"},l={},3===r)return a.next=5,i.a.actionstatus(o);a.next=8;break;case 5:l=a.sent,a.next=11;break;case 8:return a.next=10,i.a.menustatus(o);case 10:l=a.sent;case 11:if(!l||0!==l.code){a.next=21;break}if(s.$notify.success({title:"修改成功!",message:""}),3!==r){a.next=17;break}s.getchildList(t),a.next=19;break;case 17:return a.next=19,s.searchList();case 19:a.next=27;break;case 21:if(l&&100<=l.code&&l.code<=104)return a.next=24,s.logout();a.next=26;break;case 24:a.next=27;break;case 26:s.$message.warning(l.message);case 27:case"end":return a.stop()}}),a)})))).catch((function(){}));case 2:case"end":return o.stop()}}),o)})))()},deleteMenu:function(e,t,r,n){var s=this;return Object(a.a)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,s.$confirm("确定要删除?",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(a.a)(regeneratorRuntime.mark((function a(){var n,o;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(n={id:e},o={},3===r)return a.next=5,i.a.actiondel(n);a.next=8;break;case 5:o=a.sent,a.next=11;break;case 8:return a.next=10,i.a.menudel(n);case 10:o=a.sent;case 11:if(!o||0!==o.code){a.next=21;break}if(s.$notify.success({title:"删除成功!",message:""}),3!==r){a.next=17;break}s.getchildList(t),a.next=19;break;case 17:return a.next=19,s.searchList();case 19:a.next=24;break;case 21:if(o&&100<=o.code&&o.code<=104)return a.next=24,s.logout();a.next=24;break;case 24:case"end":return a.stop()}}),a)})))).catch((function(){}));case 2:case"end":return n.stop()}}),n)})))()},openChildren:function(e,t,r,a){a?this.tableData=1===r?this.tableData.map((function(t){return t.id===e&&(t.child=[]),t})):this.tableData.map((function(r){return r.id===t&&(r.child=r.child.map((function(t){return t.id===e&&(t.child=[]),t}))),r})):1===r?this.concatData(e,"0",r):this.getchildList(e)},getchildList:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){var a,n,s;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return t.loading=!0,r.next=3,i.a.actionList({id:e});case 3:if(a=r.sent,n=[],!a||0!==a.code||!a.data){r.next=9;break}n=a.data,r.next=15;break;case 9:if(a&&100<=a.code&&a.code<=104)return r.next=12,t.logout();r.next=14;break;case 12:r.next=15;break;case 14:t.$message.warning(a.message);case 15:s=(s=JSON.parse(JSON.stringify(t.tableData))).map((function(t,r){return t&&t.child&&0<t.child.length&&t.child.forEach((function(t,r){return e===t.id&&(t.child=n),t})),t})),t.tableData=s,t.loading=!1;case 19:case"end":return r.stop()}}),r)})))()},concatData:function(e,t,r){var n=this;return Object(a.a)(regeneratorRuntime.mark((function a(){var s,o,l;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return n.loading=!0,a.next=3,i.a.list({});case 3:if(s=a.sent,o=[],!s||0!==s.code||!s.data){a.next=9;break}o=s.data,a.next=15;break;case 9:if(s&&100<=s.code&&s.code<=104)return a.next=12,n.logout();a.next=14;break;case 12:a.next=15;break;case 14:n.$message.warning(s.message);case 15:l=(l=JSON.parse(JSON.stringify(n.tableData))).map((function(a,n){return(1===r?e:t===a.id)&&(a.child=o[n].child),a})),n.tableData=l,n.loading=!1;case 19:case"end":return a.stop()}}),a)})))()},searchList:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,t.next=3,i.a.list({});case 3:if(r=t.sent,e.tableData=[],!r||0!==r.code||!r.data){t.next=9;break}e.tableData=r.data,t.next=15;break;case 9:if(r&&100<=r.code&&r.code<=104)return t.next=12,e.logout();t.next=14;break;case 12:t.next=15;break;case 14:e.tableData=[];case 15:e.loading=!1;case 16:case"end":return t.stop()}}),t)})))()}}},r("92ef"),s=r("2877"),c=Object(s.a)(o,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("div",{staticClass:"box pagePadding MenuOperator"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?t("div",{staticClass:"MenuOperator-main"},[t("el-row",{staticClass:"MenuOperator-search"},[t("el-col",{staticStyle:{padding:"5px"},attrs:{span:24}},[t("el-col",{staticStyle:{width:"195px",float:"right"},attrs:{span:3}},[t("el-button",{staticStyle:{float:"right","margin-left":"5px"},attrs:{type:"primary",size:e.searchSize},on:{click:e.searchList}},[e._v(" 刷新 ")]),e.powers.some((function(e){return"003"==e}))?t("el-button",{staticStyle:{float:"right"},attrs:{type:"success",size:e.searchSize},on:{click:function(t){return e.addEditFn(0,"0",1,!1,!0,{})}}},[e._v(" 添加 ")]):e._e()],1)],1)],1),t("el-row",{staticClass:"MenuOperator-show"},[t("el-col",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{span:24}},[t("shy-tree",{attrs:{value:e.tableData,level:1},on:{addEdit:e.addEditFn,openChildren:e.openChildren,remove:e.remove,deleteMenu:e.deleteMenu}})],1)],1),t("add-edit",{attrs:{id:e.modelId,"show-model":e.showModel,level:e.level,"parent-ids":e.parentIds,"is-add":e.isAdd,"form-data":e.formData,type:e.parmValue.type,"is-detail":e.isDetail},on:{refresh:e.submitRefresh,cancel:function(t){e.showModel=!1}}})],1):t("div",[t("no-auth")],1)])}),[],!1,null,"1dfc388c",null);t.default=c.exports},"5dff":function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=r("5530"),s=(r("96cf"),r("7db0"),r("d3b7"),r("a9e3"),r("cf7c")),i=r("c835"),o=r("0ee5"),l=r("e66a"),c=r("f5ed"),u=r("2f62"),d=r("9f53");c={name:"parameter",mixins:[c.a,d.a],components:{addEdit:s.default},computed:Object(n.a)(Object(n.a)({},Object(u.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"parameter"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),data:function(){return{statusList:o.a,roleLevel:l.a,loading:!0,showModel:!1,modelId:"000",sitem:{},parmValue:{page:1,size:15,start:"",end:"",status:"",creater:""},statusOptions:[{id:"0",label:"禁用"},{id:"1",label:"启用"}],tableData:[],table:{stripe:!0,border:!0,_defaultHeader_:["setcol"]},pageInfo:{size:15,curr:1,total:0},columns:[{prop:"id",label:"ID"},{prop:"parameter_name",label:"系统参数名称"},{prop:"status",label:"状态",sortable:!0,_slot_:"status"},{prop:"creater",label:"创建人"},{prop:"addtime",label:"创建时间",sortable:!0},{prop:"",label:"操作",fixed:"right",_noset_:!0,_slot_:"operation"}]}},mounted:function(){this.searchList()},methods:{restSearch:function(){this.pageInfo={size:15,curr:1,total:0},this.parmValue={page:1,size:15,start:"",end:"",status:"",creater:""},this.searchList()},openModal:function(e,t){this.sitem=e,this.modelId=t,this.showModel=!0},handleTime:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t.parmValue.start=e.startTime||"",t.parmValue.end=e.endTime||"",""!==t.parmValue.start&&""!==t.parmValue.end||""===t.parmValue.start&&""===t.parmValue.end)return t.pageInfo.curr=1,t.parmValue.page=1,r.next=7,t.searchList();r.next=7;break;case 7:case"end":return r.stop()}}),r)})))()},changeStatus:function(e,t){var r=this;return Object(a.a)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r.$confirm("确定要改为".concat("1"===t?"禁用":"启用","?"),{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(a.a)(regeneratorRuntime.mark((function a(){var n,s;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return r.loading=!0,n={id:e,status:"1"===t?"0":"1"},a.next=4,i.a.status(n);case 4:if((s=a.sent)&&0===s.code)return r.loading=!1,r.$notify.success({title:"状态修改成功!",message:""}),a.next=10,r.searchList();a.next=12;break;case 10:a.next=19;break;case 12:if(s&&100<=s.code&&s.code<=104)return a.next=15,r.logout();a.next=17;break;case 15:a.next=19;break;case 17:r.loading=!1,r.$message.warning(s.message);case 19:case"end":return a.stop()}}),a)})))).catch((function(){}));case 2:case"end":return n.stop()}}),n)})))()},deleteItem:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t.$confirm("确定要删除?",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(a.a)(regeneratorRuntime.mark((function r(){var a,n;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a={id:e},r.next=3,i.a.delete(a);case 3:if(!(n=r.sent)||0!==n.code){r.next=9;break}t.$notify.success({title:"删除成功",message:""}),t.searchList(),r.next=15;break;case 9:if(n&&100<=n.code&&n.code<=104)return r.next=12,t.logout();r.next=14;break;case 12:r.next=15;break;case 14:t.$message.warning(n.message);case 15:case"end":return r.stop()}}),r)})))).catch((function(){}));case 2:case"end":return r.stop()}}),r)})))()},searchList:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(""!==e.parmValue.start&&""===e.parmValue.end||""==e.parmValue.start&&""!=e.parmValue.end)return e.$message.warning("开始时间和结束时间不能为空"),t.abrupt("return");t.next=3;break;case 3:return e.loading=!0,t.next=6,i.a.list(e.parmValue);case 6:if(!(r=t.sent)||0!==r.code||!r.data){t.next=12;break}e.tableData=r.data.list,e.pageInfo.total=Number(r.data.count),t.next=19;break;case 12:if(r&&100<=r.code&&r.code<=104)return t.next=15,e.logout();t.next=17;break;case 15:t.next=19;break;case 17:e.tableData=[],e.pageInfo.total=0;case 19:e.loading=!1;case 20:case"end":return t.stop()}}),t)})))()}}},d=r("2877"),s=Object(d.a)(c,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"parameter pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?r("ex-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{table:e.table,data:e.tableData,columns:e.columns,page:e.pageInfo,size:e.size},on:{"page-curr-change":e.handlePageChange,"page-size-change":e.handleSizeChange,"screen-reset":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()},"screen-submit":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},scopedSlots:e._u([{key:"table-header",fn:function(t){return[r("div",{staticStyle:{width:"100%"}},[r("el-row",{staticStyle:{padding:"0 0 10px 80px"}},[r("el-col",{staticStyle:{width:"303px"},attrs:{span:6}},[r("period-date-picker",{attrs:{type:1,width:"135px",size:e.searchSize,start:e.parmValue.start,end:e.parmValue.end},on:{timeReturned:e.handleTime}})],1),r("el-col",{staticStyle:{width:"160px"},attrs:{span:4}},[r("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"",clearable:"",size:e.searchSize,placeholder:"系统参数状态"},on:{change:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.parmValue.status,callback:function(t){e.$set(e.parmValue,"status",t)},expression:"parmValue.status"}},e._l(e.statusList,(function(e){return r("el-option",{key:"status"+e.code,attrs:{label:e.name,value:e.code}})})),1)],1),r("el-col",{staticClass:"fr",staticStyle:{width:"66px",padding:"0 0 0 10px"},attrs:{span:3}},[r("el-button",{attrs:{type:"primary",size:e.searchSize},on:{click:e.searchList}},[e._v(" 刷新 ")])],1),r("el-col",{staticClass:"fr",staticStyle:{width:"66px",padding:"0 0 0 10px"},attrs:{span:3}},[r("el-button",{attrs:{type:"warning",size:e.searchSize},on:{click:e.restSearch}},[e._v(" 重置 ")])],1)],1),r("el-row",[r("el-col",{staticStyle:{width:"373px"},attrs:{span:4}},[r("el-input",{attrs:{size:e.searchSize,maxlength:40,placeholder:"系统参数名称"},on:{blur:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.parmValue.name,callback:function(t){e.$set(e.parmValue,"name",t)},expression:"parmValue.name"}})],1),r("el-col",{staticStyle:{width:"170px",padding:"0 0 0 10px"},attrs:{span:4}},[r("el-input",{attrs:{size:e.searchSize,maxlength:40,placeholder:"创建人"},on:{change:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.parmValue.creater,callback:function(t){e.$set(e.parmValue,"creater",t)},expression:"parmValue.creater"}})],1),e.powers.some((function(e){return"003"==e}))?r("el-col",{staticClass:"fr",staticStyle:{width:"66px",padding:"0 0 0 10px"},attrs:{span:3}},[r("el-button",{staticStyle:{float:"right"},attrs:{size:e.searchSize,type:"success"},on:{click:function(t){return e.openModal({},"003")}}},[e._v(" 添加 ")])],1):e._e()],1)],1)]}},{key:"status",fn:function(t){var a=t.scope;return[r("el-tag",{attrs:{size:e.tablebtnSize,type:"0"==a.row.status?"warning":""},domProps:{textContent:e._s((e.statusOptions.find((function(e){return e.id==a.row.status}))||{}).label||"--")}})]}},{key:"operation",fn:function(t){var a=t.scope;return[e.powers.some((function(e){return"007"==e}))?r("el-tooltip",{attrs:{effect:"dark",content:"详情",placement:"top"}},[r("i",{staticClass:"el-icon-view tb-icon",on:{click:function(t){return e.openModal(a.row,"007")}}})]):e._e(),e.powers.some((function(e){return"005"==e}))?r("el-tooltip",{attrs:{effect:"dark",content:"修改",placement:"top"}},[r("i",{staticClass:"el-icon-edit tb-icon",on:{click:function(t){return e.openModal(a.row,"005")}}})]):e._e(),e.powers.some((function(e){return"004"==e}))&&"1"===a.row.status?r("el-tooltip",{attrs:{effect:"dark",content:"禁用",placement:"top"}},[r("i",{staticClass:"el-icon-video-pause tb-icon",on:{click:function(t){return e.changeStatus(a.row.id,a.row.status)}}})]):e._e(),e.powers.some((function(e){return"004"==e}))&&"0"===a.row.status?r("el-tooltip",{attrs:{effect:"dark",content:"启用",placement:"top"}},[r("i",{staticClass:"el-icon-video-play tb-icon",on:{click:function(t){return e.changeStatus(a.row.id,a.row.status)}}})]):e._e(),e.powers.some((function(e){return"006"==e}))?r("el-tooltip",{attrs:{effect:"dark",content:"删除",placement:"top"}},[r("i",{staticClass:"el-icon-delete tb-icon",on:{click:function(t){return e.deleteItem(a.row.id)}}})]):e._e()]}}],null,!1,3855670895)}):r("no-auth"),r("add-edit",{attrs:{id:e.modelId,"show-model":e.showModel,sitem:e.sitem},on:{refresh:e.searchList,cancel:function(t){e.showModel=!1}}})],1)}),[],!1,null,"65f79e61",null);t.default=s.exports},"5e16":function(e,t,r){},"5e53":function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=r("5530"),s=(r("96cf"),r("7db0"),r("d3b7"),r("a9e3"),r("4c1f")),i=r("f5ed"),o=r("2f62"),l=r("9f53");i={name:"updates",mixins:[i.a,l.a],computed:Object(n.a)(Object(n.a)({},Object(o.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"updates"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),data:function(){return{loading:!0,showModel:!1,isDetail:!1,modelId:0,parmValue:{type:"VER",page:1,size:15},count:0,tableData:[]}},mounted:function(){this.searchList()},methods:{restSearch:function(){this.pageInfo={size:15,curr:1,total:0},this.parmValue={type:"VER",page:1,size:15},this.count=0,this.searchList()},searchList:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,t.next=3,s.a.list(e.parmValue);case 3:if(!(r=t.sent)||0!==r.code||!r.data){t.next=9;break}e.tableData=r.data.list,e.count=Number(r.data.count),t.next=16;break;case 9:if(r&&100<=r.code&&r.code<=104)return t.next=12,e.logout();t.next=14;break;case 12:t.next=16;break;case 14:e.tableData=[],e.count=0;case 16:e.loading=!1;case 17:case"end":return t.stop()}}),t)})))()}}},l=r("2877"),n=Object(l.a)(i,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"updates pagePadding",staticStyle:{"padding-top":"25px"}},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?r("div",[r("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:e.tableData,border:"",size:e.size,stripe:""}},[r("el-table-column",{attrs:{type:"expand"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-form",{staticClass:"demo-table-expand",attrs:{size:e.size,"label-position":"top",inline:""}},[r("el-form-item",{attrs:{label:"更新内容"}},[r("p",{domProps:{innerHTML:e._s(t.row.system)}})])],1)]}}],null,!1,1054835690)}),r("el-table-column",{attrs:{label:"版本号",prop:"version"}}),r("el-table-column",{attrs:{label:"更新模块",prop:"module"}}),r("el-table-column",{attrs:{label:"更新时间",prop:"addtime"}})],1),r("div",{directives:[{name:"show",rawName:"v-show",value:0<e.count,expression:"count > 0"}],staticClass:"Pagination",staticStyle:{"text-align":"right","margin-top":"10px"}},[r("el-pagination",{attrs:{size:e.searchSize,"current-page":e.parmValue.page,"page-sizes":[15,50,100],"page-size":e.parmValue.size,layout:"total, sizes, prev, pager, next, jumper",total:e.count},on:{"size-change":e.handleSizeChange,"current-change":e.handlePageChange}})],1)],1):r("no-auth")],1)}),[],!1,null,"62bbd75f",null);t.default=n.exports},"5ea3":function(e,t,r){},"5f08":function(e,t,r){"use strict";var a=r("1da1"),n=r("ade3"),s=r("5530"),i=(r("96cf"),r("d3b7"),r("159b"),r("b0c0"),r("a9e3"),r("e9c4"),r("d81d"),r("1b69")),o=function(e,t){return Object(i.a)("admin/checkflist",e,"post",t)},l=r("9f53"),c=r("f5ed"),u=r("2f62"),d=[{type:"selection",fixed:"left",_noset_:!0,width:"45",align:"center"},{prop:"spuCode",label:"商品编码",width:"158"},{prop:"good_name",label:"商品名称",_slot_:"good_name","min-width":"200"},{prop:"class_cat",label:"分类",width:"170"},{prop:"brand_name",label:"品牌",width:"100"},{prop:"unit",label:"单位",width:"50"},{prop:"usable_stock",label:"可用库存",width:"110"}];l={name:"searchStockGoodModal",mixins:[l.a,c.a],computed:Object(s.a)({},Object(u.b)(["tablebtnSize","searchSize","size"])),props:["showModel","once","code","good_code","cat_id"],data:function(){var e={options:[],multipleSelection:[],selectLoading:!1,loading:!0,showModelThis:!1,parmValue:{wsm_code:"",cat_id:"",page:1,size:10},tableData:[],passwordModel:!1,passwordModelId:0,isPasswordDetail:!1};return Object(n.a)(e,"tableData",[]),Object(n.a)(e,"table",{stripe:!0,border:!0}),Object(n.a)(e,"pageInfo",{size:10,curr:1,total:0}),Object(n.a)(e,"columns",d),e},watch:{showModel:function(e){(this.showModelThis=e)&&(this.supplierCode=[],this.searchList())},showModelThis:function(e){e||this.$emit("cancel")}},methods:{restSearch:function(){this.parmValue={wsm_code:"",cat_id:"",page:1,size:10},this.pageInfo={size:10,curr:1,total:0},this.searchList()},searchList:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,e.parmValue.wsm_code=e.code||"",e.parmValue.type_code=e.good_code||"",e.parmValue.stock_max="1",e.parmValue.cat_id=e.cat_id,t.next=7,o(e.parmValue);case 7:if(!(r=t.sent)||0!==r.code||!r.data){t.next=14;break}e.tableData=r.data.list,e.tableData.forEach((function(e){e.class_cat="",e.can&&0<e.can.length&&e.can.forEach((function(t,r){e.class_cat+=0===r?t.name:"_"+t.name}))})),e.pageInfo.total=Number(r.data.count),t.next=21;break;case 14:if(r&&100<=r.code&&r.code<=104)return t.next=17,e.logout();t.next=19;break;case 17:t.next=21;break;case 19:e.tableData=[],e.pageInfo.total=0;case 21:e.loading=!1;case 22:case"end":return t.stop()}}),t)})))()},handleSelectionChange:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:t.multipleSelection=e;case 1:case"end":return r.stop()}}),r)})))()},resultList:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.multipleSelection&&1<e.multipleSelection.length&&e.once)return e.$message.warning("只能选择一条商品信息!"),t.abrupt("return");t.next=3;break;case 3:(r=JSON.parse(JSON.stringify(e.multipleSelection))).map((function(e){return delete e.id,e})),e.showModelThis=!1,e.$emit("searchChange",r);case 7:case"end":return t.stop()}}),t)})))()}}},c=r("2877"),s=Object(c.a)(l,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:"仓库商品选择",center:!0,align:"left",top:"8vh",width:"1040px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)","append-to-body":""},on:{close:function(t){e.showModelThis=!1},"update:visible":function(t){e.showModelThis=t}}},[r("el-card",{staticClass:"modal-form-style",staticStyle:{"margin-top":"-20px"}},[r("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:e.tableData,border:"",size:e.size},on:{"selection-change":e.handleSelectionChange}},[e._l(e.columns,(function(t,a){return[t._slot_&&"good_name"===t._slot_?r("el-table-column",{key:t+a,attrs:{"show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[r("span",[e._v(e._s(t.row.good_name))]),e._l(t.row.specinfo,(function(t,a){return r("span",{key:t.spec_value_id+a},[e._v(e._s(0===a?"_":"-")+e._s(t.spec_name)+"["+e._s(t.spec_value)+"]")])}))]}}],null,!0)}):r("el-table-column",e._b({key:t+a,attrs:{"show-overflow-tooltip":""}},"el-table-column",t,!1))]}))],2),!1!==e.pageInfo&&e.tableData&&0<e.tableData.length?r("div",{staticClass:"Pagination clear",staticStyle:{"text-align":"right",padding:"16px 0 0 0"}},[r("div",{staticClass:"fl",staticStyle:{wiith:"90%"}},[r("el-pagination",{attrs:{"current-page":e.pageInfo.curr,"page-size":e.pageInfo.size,size:e.searchSize,layout:"total, prev, pager, next, jumper",total:e.pageInfo.total},on:{"size-change":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.pageInfo.size=t,e.parmValue.size=t,e.searchList()},"current-change":function(t){e.pageInfo.curr=t,e.parmValue.page=t,e.searchList()}}})],1),r("div",{staticClass:"fr"},[r("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.resultList()}}},[e._v("保 存")])],1)]):e._e()],1)],1)}),[],!1,null,null,null);t.a=s.exports},"5f10":function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=(r("96cf"),r("7caa")),s={name:"specs",props:["showModel","id"],mixins:[r("9f53").a],data:function(){return{loading:!1,title:"业务参数详情",showModelThis:this.showModel,dataInfo:{}}},methods:{initForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.initData();case 2:case"end":return t.stop()}}),t)})))()},initData:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r,a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,t.next=3,n.a.detail({id:e.id});case 3:if(r=t.sent,e.loading=!1,!r||0!==r.code){t.next=10;break}a=r.data,e.dataInfo=a,t.next=16;break;case 10:if(r&&100<=r.code&&r.code<=104)return t.next=13,e.logout();t.next=15;break;case 13:t.next=16;break;case 15:e.$message.warning(r.message);case 16:case"end":return t.stop()}}),t)})))()}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis:function(e){e||this.$emit("cancel")}}};r("8082"),r=r("2877"),r=Object(r.a)(s,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:e.title,center:!0,align:"left",top:"5vh",width:"700px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)"},on:{close:function(t){e.showModelThis=!1},"update:visible":function(t){e.showModelThis=t}}},[t("el-card",[t("el-row",{attrs:{gutter:10}},[t("el-col",{attrs:{span:24}}),t("el-col",{staticStyle:{"text-align":"right"},attrs:{span:24}},[t("el-button",{on:{click:function(t){e.showModelThis=!1}}},[e._v("关 闭")])],1)],1)],1)],1)}),[],!1,null,"73eb33d0",null);t.default=r.exports},"5f83":function(e,t,r){},"5f9d":function(e,t,r){"use strict";r("95c5")},"5fdc":function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=(r("96cf"),r("7db0"),r("d3b7"),r("e9c4"),r("de14")),s={name:"sellAfterApplyDetail",mixins:[r("9f53").a],props:["id","newTime","sitem","show"],data:function(){return{loading:!1,is_receive:"1",status:"",statusList:[{value:"1",label:"通过"},{value:"0",label:"驳回"}],is_th_list:[{value:"1",label:"收货人承担"},{value:"2",label:"业务公司承担"},{value:"3",label:"供应商承担"}],return_tag_options:[{value:"1",label:"供应商仓库"},{value:"2",label:"业务公司仓库"}],showModelThis:this.showModel,ruleForm:{status:"1",is_th:"1",return_tag:"1",remark:""},rulesThis:this.rules,rules:{status:[{required:!0,message:"请选择审核状态",trigger:"change"}],is_th:[{required:!0,message:"请选择物流费承担方",trigger:"change"}],return_tag:[{required:!0,message:"请选择退回位置",trigger:"change"}],remark:[{required:!0,message:"请输入审核备注",trigger:"blur"},{min:1,max:250,message:"长度在 1 到 250 个字符",trigger:"blur"}]}}},computed:{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"sellAfterApplyDetail"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}},watch:{newTime:function(e){e&&this.initForm()}},mounted:function(){this.initForm()},methods:{initForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,e.rulesThis=e.rules,t.next=4,e.resetForm();case 4:e.statusChange(),e.loading=!1;case 6:case"end":return t.stop()}}),t)})))()},statusChange:function(){this.rulesThis.is_th[0].required="1"===this.ruleForm.status&&"1"===this.is_receive,this.rulesThis.remark[0].required="1"!==this.ruleForm.status},resetForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$nextTick((function(){var t,r,a,n,s,i;e.$refs.ruleForm&&(e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),t=(i=e.sitem).returnCode,r=i.is_receive,a=i.status,n=i.return_tag,s=i.is_th,i=i.remark,e.status=a||"",e.is_receive=r||"1",e.ruleForm={status:"1",is_th:s||"1",return_tag:n||"1",remark:i||"",returnCode:t||""})}));case 2:case"end":return t.stop()}}),t)})))()},submitForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.ruleForm.validate(function(){var t=Object(a.a)(regeneratorRuntime.mark((function t(r){var a,s;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r)return(a=JSON.parse(JSON.stringify(e.ruleForm))).status="1"===a.status?"3":"6",a.is_th="0"===e.is_receive?"0":a.is_th,a.return_tag="0"===e.is_receive?"0":a.return_tag,a.is_post="0",t.next=9,n.a.status(a);t.next=23;break;case 9:if(!(s=t.sent)||0!==s.code){t.next=15;break}e.$notify.success({title:"提交成功!",message:""}),e.$emit("refresh"),t.next=21;break;case 15:if(s&&100<=s.code&&s.code<=104)return t.next=18,e.logout();t.next=20;break;case 18:t.next=21;break;case 20:e.$message.warning(s.message);case 21:t.next=25;break;case 23:return t.abrupt("return",!1);case 25:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()}}};r=r("2877"),r=Object(r.a)(s,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",staticStyle:{width:"100%"},attrs:{loading:e.loading,model:e.ruleForm,"status-icon":"",size:"mini",rules:e.rules,"label-width":"100px"}},[r("el-row",[r("el-col",{attrs:{span:6}},[r("el-form-item",{attrs:{label:"审核状态",prop:"status"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择审核状态",size:"mini",disabled:!("2"==e.status&&e.powers.some((function(e){return"040"==e})))},on:{change:e.statusChange},model:{value:e.ruleForm.status,callback:function(t){e.$set(e.ruleForm,"status",t)},expression:"ruleForm.status"}},e._l(e.statusList,(function(e){return r("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1)],1),r("el-col",{directives:[{name:"show",rawName:"v-show",value:"1"===e.ruleForm.status&&"1"===e.is_receive,expression:"ruleForm.status === '1' && is_receive === '1'"}],attrs:{span:6}},[r("el-form-item",{attrs:{label:"物流费承担方",prop:"is_th","label-width":"110px"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{disabled:!("2"==e.status&&e.powers.some((function(e){return"040"==e}))),placeholder:"是否承担物流费",size:"mini"},model:{value:e.ruleForm.is_th,callback:function(t){e.$set(e.ruleForm,"is_th",t)},expression:"ruleForm.is_th"}},e._l(e.is_th_list,(function(e){return r("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1)],1),r("el-col",{directives:[{name:"show",rawName:"v-show",value:"1"===e.ruleForm.status&&"1"===e.is_receive,expression:"ruleForm.status === '1' && is_receive === '1'"}],attrs:{span:6}},[r("el-form-item",{attrs:{label:"退回至",prop:"return_tag"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{disabled:!("2"==e.status&&e.powers.some((function(e){return"040"==e}))),placeholder:"是否承担物流费",size:"mini"},model:{value:e.ruleForm.return_tag,callback:function(t){e.$set(e.ruleForm,"return_tag",t)},expression:"ruleForm.return_tag"}},e._l(e.return_tag_options,(function(e){return r("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1)],1),r("el-col",{directives:[{name:"show",rawName:"v-show",value:"0"===e.ruleForm.status,expression:"ruleForm.status === '0'"}],attrs:{span:12}},[r("el-form-item",{attrs:{label:"审核备注",disabled:!("2"==e.status&&e.powers.some((function(e){return"040"==e}))),prop:"remark"}},[r("el-input",{attrs:{type:"textarea",size:"mini",placeholder:"请输入审核备注",disabled:e.disabled,maxlength:"250",autosize:{minRows:2,maxRows:2},"show-word-limit":""},model:{value:e.ruleForm.remark,callback:function(t){e.$set(e.ruleForm,"remark",t)},expression:"ruleForm.remark"}})],1)],1),"2"==e.status&&e.powers.some((function(e){return"040"==e}))?r("el-col",{staticClass:"tr",attrs:{span:6}},[e.isDetail?e._e():r("el-button",{attrs:{size:"mini",type:"primary"},on:{click:e.submitForm}},[e._v("保 存 ")])],1):e._e()],1)],1)}),[],!1,null,"0b22a868",null);t.default=r.exports},"60bb":function(e,t,r){"use strict";r.r(t);var a=r("2909"),n=r("1da1"),s=(r("96cf"),r("7db0"),r("d3b7"),r("159b"),r("e9c4"),r("d81d"),r("ac1f"),r("1276"),r("99af"),r("c740"),r("b0c0"),r("a434"),r("25f0"),r("f5ed")),i=r("9f53"),o=r("0209e"),l=r("61f7"),c=r("f8d8"),u=r("86e2"),d=r("2a08"),p=r("35e6");s={name:"salesOrderDetail",mixins:[s.a,i.a],props:["newTime","id","sitem","type"],components:{inAddrModel:c.a,showVoucherModel:u.a,searchGoodOnlineModal:d.a},watch:{newTime:function(e){e&&this.initForm()}},computed:{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"salesOrderDetail"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}},data:function(){return{ShowDataTableColumns:p.a,AddrAddEditModalIndex:-1,AddrAddEditModalSitem:{},showGoodsModel:!1,showVoucher:!1,companyName:"",showModel:!1,addrmodel:!1,addshowModel:{},pickerOptions:{disabledDate:function(e){return e.getTime()<Date.now()-864e5}},goodtype_options:[{value:"is_activity_0",label:"不参与活动",children:[{value:"1",label:"常规商品"},{value:"2",label:"赠品"},{value:"3",label:"样品"}]},{value:"is_activity_1",label:"参与活动",children:[]}],sendtype_options:[{value:"1",label:"直接发货"},{value:"2",label:"延时发货"}],ruleForm:{order_type:"1",supplierNo:"",customer_code:[],platform_id:"",arrtime:"",proof_type:"",proof_url:"",activity_stock:"0",is_activity:"0",goodtype:["is_activity_0","1"],good_num:"",good_price:"0",platform_order:"",paytime:"",workNo:"",sendtype:"1",remark:"",good_code:""},rulesThis:this.rules,rules:{supplierNo:[{required:!0,message:"请选择销售方公司",trigger:"change"}],customer_code:[{type:"array",required:!0,message:"请选择企业客户",trigger:"change"}],platform_id:[{required:!0,message:"请选择所属平台",trigger:"change"}],arrtime:[{required:!0,message:"要求到货时间",trigger:"change"}],goodtype:[{type:"array",required:!0,message:"请选择活动类型",trigger:"change"}],good_num:[{required:!0,message:"请选择活动类型",trigger:"change"}],sendtype:[{required:!0,message:"请选择发货方式",trigger:"change"}],good_code:[{required:!0,message:"请选择销售商品",trigger:"blur"}],remark:[{required:!0,message:"备注不能为空",trigger:"blur"}]},addrForm:{order_addr:[]},delAddrList:[],delStockList:[],addrRules:{receipt_quantity:{required:!0,validator:function(e,t,r){""===t?r(new Error("收货总数不能为空!")):Object(l.k)(t)?r():r(new Error("收货总数仅支持整数!"))},trigger:"blur"},contactor:{required:!0,trigger:"blur",message:"联系人不能为空"},mobile:{required:!0,validator:function(e,t,r){""===t?r(new Error("手机号不能为空!")):Object(l.g)(t)?r():r(new Error("手机号格式不正确!"))},trigger:"blur"},order_addr:{type:"array",required:!0,message:"收货省市区不能为空",trigger:"change"},addr:{required:!0,message:"详细地址不能为空",trigger:"blur"}},loading:!1,queryId:"",status:"",goods_sitem:{},order_good_num:{ogood_type:"",ogood_num:"0"},priceLoding:!1}},mounted:function(){this.initForm()},methods:{initForm:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.status="",e.queryId=e.$route.query.id,e.rulesThis=e.rules,e.resetForm();case 4:case"end":return t.stop()}}),t)})))()},getNewTime:function(){this.newTime=(new Date).valueOf()},resetForm:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$nextTick((function(){var t;e.$refs.ruleForm&&(e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),e.ruleForm={order_type:"1",supplierNo:"",customer_code:[],platform_id:"",arrtime:"",proof_type:"",proof_url:"",activity_stock:"0",goodtype:["is_activity_0","1"],good_num:"0",good_price:"0",platform_order:"",paytime:"",workNo:"",sendtype:"1",remark:"",good_code:""}),e.$refs.addrForm&&(e.$refs.addrForm.resetFields(),e.$refs.addrForm.clearValidate(),t=e.sitem.addrs,e.addrForm={order_addr:[]},e.delAddrList=[],t&&0<t.length&&t.forEach((function(t){var r=t.addr_code,a=r.area_code,n=r.city_code;r=r.provice_code,r={edit:!1,receipt_quantity:t.receipt_quantity||"",contactor:t.contactor||"",mobile:t.mobile||"",addr_code:a&&n&&r?[r,n,a]:[],addr:t.addr||"",id:t.id,is_del:0};e.delAddrList.push(r),e.addrForm.order_addr.push(r)})))}));case 2:case"end":return t.stop()}}),t)})))()},addrRefresh:function(e){var t;e=e.list;(t=this.addrForm.order_addr).push.apply(t,Object(a.a)(e))},resultList:function(e){var t=this;return Object(n.a)(regeneratorRuntime.mark((function r(){var a;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t.showModel=!1,1===e.length)return a=JSON.parse(JSON.stringify(e[0])),r.next=5,t.get_goods_detail(a.skuCode);r.next=8;break;case 5:t.ruleForm.good_code=t.goods_sitem.skuCode,r.next=10;break;case 8:t.goods_sitem={},t.ruleForm.good_code="";case 10:if(t.$refs.ruleForm.validateField("good_code"),1===e.length)return r.next=14,t.get_goods_active();r.next=14;break;case 14:case"end":return r.stop()}}),r)})))()},get_goods_active:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){var r,n,s,i,l,c,u,d,p;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return s=e.ruleForm,c=s.good_code,r=s.supplierNo,s=s.platform_id,c={skuCode:c,companyNo:r,platform_id:s},t.next=4,o.a.goods_active(c);case 4:if(r=t.sent,n=r.code,s=r.data,i=r.message,0!==n){t.next=18;break}c=s.act,u=s.good,(d=0<c.length?JSON.parse(JSON.stringify(c)):[]).forEach((function(e){e.value=e.activity_code,e.label=e.activity_name})),e.goodtype_options[1].children=[],(l=e.goodtype_options[1].children).push.apply(l,Object(a.a)(d)),(p=0<u.length?JSON.parse(JSON.stringify(u[0])):{}).good_name&&e.goodtype_options[0].children.map((function(e){return e.activity_stock=p?p.stock_num+"":"0",e})),t.next=24;break;case 18:if(100<=n&&n<=104)return t.next=21,e.logout();t.next=23;break;case 21:t.next=24;break;case 23:e.$message.warning(i);case 24:case"end":return t.stop()}}),t)})))()},get_goods_detail:function(e){var t=this;return Object(n.a)(regeneratorRuntime.mark((function r(){var a,n,s,i,l,c,u;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,o.a.goods_detail({skuCode:e});case 2:if(n=r.sent,a=n.code,s=n.data,n=n.message,0!==a){r.next=20;break}t.goods_sitem=s,t.goods_sitem.good_info_img=t.goods_sitem.good_info_img.split(","),s=t.goods_sitem.weight,i=parseInt(+s/1e3),l=+s%1e3,u="",0<i?(u="Kg",c="".concat(i,".").concat(l)):(c=s,u="g"),t.goods_sitem.new_weight=c,t.goods_sitem.weight_unit=u,t.ruleForm.good_code=t.goods_sitem.good_code,r.next=26;break;case 20:if(100<=a&&a<=104)return r.next=23,t.logout();r.next=25;break;case 23:r.next=26;break;case 25:t.$message.warning(n);case 26:case"end":return r.stop()}}),r)})))()},showVoucherFun:function(){this.goods_sitem&&this.goods_sitem.spuCode?this.showVoucher=!0:this.$message.warning("请选择商品!")},addGoodsRes:function(e){var t=this;return Object(n.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:e&&1===e.length?(t.ruleForm.good_name=e[0].good_name,t.ruleForm.good_code=e[0].type_code):(t.ruleForm.good_name="",t.ruleForm.good_code=""),t.$refs.ruleForm.validateField("good_code"),""!==t.ruleForm.good_code&&t.queryId;case 3:case"end":return r.stop()}}),r)})))()},number_change:function(e,t){var r=this;return Object(n.a)(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(r.ruleForm[t]=e+""||"0",r.$refs.ruleForm.validateField(t),"good_num"===t)return a.next=5,r.get_new_price();a.next=5;break;case 5:case"end":return a.stop()}}),a)})))()},get_new_price:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){var r,a,n,s,i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i=e.ruleForm,r=i.goodtype,i=i.good_num,n=2===r.length?r[1]:"",a=e.order_good_num,s=a.ogood_type,a=a.ogood_num,n===s&&i===a)return e.order_good_num={ogood_type:2===r.length?r[1]:"",ogood_num:e.ruleForm.good_num},t.abrupt("return");t.next=7;break;case 7:if(2===r.length?e.goodtype_options.forEach((function(t){t.children&&t.children.length&&t.children.forEach((function(t){t.value===r[1]&&(e.ruleForm.activity_stock=t.activity_stock||"0")}))})):e.ruleForm.activity_stock="0",e.priceLoding){t.next=16;break}return t.next=11,e.set_salegetprice();case 11:n=t.sent,s=n.isok,i=n.price,n.stock,e.ruleForm.good_price=s?i:"0";case 16:e.order_good_num={ogood_type:2===r.length?r[1]:"",ogood_num:e.ruleForm.good_num};case 17:case"end":return t.stop()}}),t)})))()},change_good_code:function(){var e=this.ruleForm,t=e.supplierNo;e=e.platform_id;""===t?this.$message.warning("请选择销售方公司!"):""===e?this.$message.warning("请选择所属平台!"):(this.addshowModel={company_id:t,platform_code:e},this.showModel=!0)},customer_code_change:function(e){e&&e.code?this.ruleForm.customer_code=[e.code]:this.ruleForm.customer_code=[],this.$refs.ruleForm.validateField("customer_code")},supplierChange:function(e){e.id;var t=e.code;e.label,this.ruleForm.supplierNo=t||"",this.$refs.ruleForm.validateField("supplierNo"),this.ruleForm.good_code="",this.goods_sitem={}},platform_idsearchChange:function(e){var t=e.id;e.code,e.label,this.ruleForm.platform_id=t||"",this.$refs.ruleForm.validateField("platform_id"),this.ruleForm.good_code="",this.goods_sitem={}},openHouseModal:function(e){-1!==this.addrForm.order_addr.findIndex((function(e){return!0===e.edit}))?this.$message.warning("当前已有地址在编辑,请保存后再试!"):-1===e?this.addrForm.order_addr.push({edit:!0,receipt_quantity:"",contactor:"",mobile:"",addr_code:[],addr:""}):this.addrForm.order_addr[e].edit=!0},select_area_change:function(e,t){this.addrForm.order_addr[t].addr_code=e},checkRow:function(e){var t=this;return Object(n.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t.$refs.addrForm.validate(function(){var r=Object(n.a)(regeneratorRuntime.mark((function r(a){var n,s,i,l,c,u;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!a){r.next=30;break}if((n=t.addrForm.order_addr[e].addr_code)&&3===n.length)return n=n[n.length-1],r.next=6,o.a.addrall({code:n});r.next=26;break;case 6:if(n=r.sent,s=n.code,u=n.data,i=n.message,0!==s){r.next=18;break}l=u.province,c=u.city,u=u.area,l=l&&l.name?l.name:"",c=c&&c.name?c.name:"",u=u&&u.name?u.name:"",t.addrForm.order_addr[e].addr_code_name=l&&c&&u?"".concat(l,"/").concat(c,"/").concat(u):"",r.next=24;break;case 18:if(100<=s&&s<=104)return r.next=21,t.logout();r.next=23;break;case 21:r.next=24;break;case 23:t.$message.warning(i);case 24:r.next=27;break;case 26:t.addrForm.order_addr[e].addr_code_name="";case 27:t.addrForm.order_addr[e].edit=!1,r.next=32;break;case 30:return r.abrupt("return",!1);case 32:case"end":return r.stop()}}),r)})));return function(e){return r.apply(this,arguments)}}());case 2:case"end":return r.stop()}}),r)})))()},deleteRow:function(e,t){t.splice(e,1)},submitForm:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.ruleForm.validate(function(){var t=Object(n.a)(regeneratorRuntime.mark((function t(r){var a,n,s,i,l,c,u,d,p;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r){t.next=53;break}if(e.loading=!0,l=JSON.parse(JSON.stringify(e.ruleForm)),a=l.sendtype,n=l.good_num,l=l.goodtype,s=JSON.parse(JSON.stringify(e.addrForm)),s=s.order_addr,i=l[0],l=l[1],0===s.length&&"1"===a)return e.$message.warning("至少填写一条地址信息!"),e.loading=!1,t.abrupt("return");t.next=10;break;case 10:if((c=JSON.parse(JSON.stringify(e.ruleForm))).addrlist=[],c.customer_code=c.customer_code.toString(),delete c.proof_type,delete c.proof_url,delete c.good_price,"1"!==a){t.next=27;break}if(u=0,d=!1,s.forEach((function(e){e.edit&&(d=!0),u+=parseInt(e.receipt_quantity),e={contactor:e.contactor,mobile:e.mobile,addr:e.addr,receipt_quantity:e.receipt_quantity,addr_code:e.addr_code},c.addrlist.push(e)})),d)return e.$message.warning("请保存地址信息!"),e.loading=!1,t.abrupt("return");t.next=23;break;case 23:if(+n!==u)return e.$message.warning("地址收货总数与销售总数量不一致!"),e.loading=!1,t.abrupt("return");t.next=27;break;case 27:return t.next=29,e.set_salegetprice();case 29:if(t.sent.isok){t.next=33;break}return e.loading=!1,t.abrupt("return");case 33:return c.is_activity="is_activity_0"===i?"0":"1",c.goodtype="is_activity_1"===i?"1":l,c.act_code="is_activity_1"===i?Fkey_1:"",t.next=38,o.a.add(c);case 38:if(p=t.sent,e.loading=!1,!p||0!==p.code){t.next=45;break}e.$notify.success({title:"订单创建成功!",message:""}),e.$emit("refresh"),t.next=51;break;case 45:if(p&&100<=p.code&&p.code<=104)return t.next=48,e.logout();t.next=50;break;case 48:t.next=51;break;case 50:e.$message.warning(p.message);case 51:t.next=55;break;case 53:return t.abrupt("return",!1);case 55:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()},set_salegetprice:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){var r,a,n,s,i,l,c;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.priceLoding=!0,r={isok:!0,price:"0"},l=e.ruleForm,n=l.good_num,a=l.good_code,l=l.goodtype,c=l[1],l=l[0],a={skuCode:a,sale_num:n,is_activity:"is_activity_0"===l?"0":"1",act_code:"is_activity_1"===l?c:""},t.next=9,o.a.salegetprice(a);case 9:if(n=t.sent,s=n.code,i=n.message,l=n.data,0!==s){t.next=19;break}c=l.sale_price,r.price=c+"",t.next=26;break;case 19:if(100<=s&&s<=104)return t.next=22,e.logout();t.next=24;break;case 22:t.next=26;break;case 24:e.$message.warning(i),r.isok=!1;case 26:return e.priceLoding=!1,t.abrupt("return",r);case 28:case"end":return t.stop()}}),t)})))()}}},r("7ab5"),i=r("2877"),c=Object(i.a)(s,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"salesOrderDetail"},[r("el-row",[r("el-col",{attrs:{span:24}},[r("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",size:"mini",rules:e.rulesThis,"label-width":"95px"}},[r("el-row",[r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"销售方",prop:"supplierNo"}},[r("search-work-company",{attrs:{type:"1",value:e.ruleForm.supplierNo,size:"mini",placeholder:"销售方公司",disabled:!1,isDetail:!1},on:{searchChange:e.supplierChange}})],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"企业客户",prop:"customer_code"}},[r("search-customer",{attrs:{value:e.ruleForm.customer_code,size:"mini",names:e.companyName,placeholder:"企业客户",disabled:!1,"is-detail":!0},on:{searchChange:e.customer_code_change}})],1)],1),r("el-col",{attrs:{span:6}},[r("el-form-item",{attrs:{label:"所属平台",prop:"platform_id"}},[r("search-terrace",{attrs:{value:e.ruleForm.platform_id,disabled:!1,size:"mini",isDetail:!1,placeholder:"所属平台"},on:{searchChange:e.platform_idsearchChange}})],1)],1),r("el-col",{attrs:{span:6}},[r("el-form-item",{attrs:{label:"平台订单号",prop:"platform_order"}},[r("el-input",{attrs:{placeholder:"如:PO号",maxlength:"100"},model:{value:e.ruleForm.platform_order,callback:function(t){e.$set(e.ruleForm,"platform_order",t)},expression:"ruleForm.platform_order"}})],1)],1),r("el-col",{attrs:{span:6}},[r("el-form-item",{attrs:{label:"回款时间",prop:"paytime"}},[r("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"date",disabled:!1,"value-format":"yyyy-MM-dd","picker-options":e.pickerOptions,placeholder:"承诺回款时间"},model:{value:e.ruleForm.paytime,callback:function(t){e.$set(e.ruleForm,"paytime",t)},expression:"ruleForm.paytime"}})],1)],1),r("el-col",{attrs:{span:6}},[r("el-form-item",{attrs:{label:"其他单号",prop:"workNo"}},[r("el-input",{attrs:{placeholder:"如:业管单号",maxlength:"100"},model:{value:e.ruleForm.workNo,callback:function(t){e.$set(e.ruleForm,"workNo",t)},expression:"ruleForm.workNo"}})],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:""===e.ruleForm.good_code?"销售商品":"",prop:"good_code","label-width":""===e.ruleForm.good_code?"95px":"0"}},[""===e.ruleForm.good_code?r("el-input",{attrs:{placeholder:"请选择商品",readonly:"",maxlength:"200"},on:{focus:e.change_good_code},model:{value:e.ruleForm.good_code,callback:function(t){e.$set(e.ruleForm,"good_code",t)},expression:"ruleForm.good_code"}}):r("show-data-table",{staticStyle:{margin:"0",padding:"0"},attrs:{border:"",sitem:e.goods_sitem,columns:e.ShowDataTableColumns}},[r("template",{slot:"good_name"},[e.goods_sitem.good_thumb_img?r("img",{directives:[{name:"viewer",rawName:"v-viewer"}],staticClass:"fl",staticStyle:{width:"23px",height:"23px",margin:"0 5px 0 0"},attrs:{src:e.goods_sitem.good_thumb_img,alt:""}}):e._e(),r("span",[e._v(e._s(e.goods_sitem.good_name))]),e._l(e.goods_sitem.specinfo,(function(t,a){return r("span",{key:t.spec_id+a},[r("span",[e._v(e._s(0===a?"--":"__"))]),r("span",[e._v(e._s(t.spec_name)+"["+e._s(t.spec_value)+"]")])])}))],2),r("template",{slot:"good_info_img"},e._l(e.goods_sitem.good_info_img,(function(e,t){return r("img",{directives:[{name:"viewer",rawName:"v-viewer"}],key:e+t,staticClass:"fl",staticStyle:{width:"23px",height:"23px",margin:"0 5px 0 0"},attrs:{src:e}})})),0),r("template",{slot:"cat"},e._l(e.goods_sitem.cat_info,(function(t,a){return r("span",{key:t.id},[0!==a?r("span",[e._v("_")]):e._e(),r("span",[e._v(e._s(t.name))])])})),0),r("template",{slot:"exclusive"},e._l(e.goods_sitem.exclusive,(function(t,a){return r("span",{key:t.id},[0!==a?r("span",[e._v("/")]):e._e(),r("span",[e._v(e._s(t.name))])])})),0),r("template",{slot:"is_stock"},[r("el-tag",{attrs:{size:"mini"}},[e._v(e._s("1"===e.goods_sitem.is_stock?"是":"否"))])],1),r("template",{slot:"weight"},[r("span",[e._v("商品总重:"+e._s(e.goods_sitem.new_weight)+"/"+e._s(e.goods_sitem.weight_unit))]),e.goods_sitem.metal_id?r("span",[e._v("--"+e._s(e.goods_sitem.noble_weight||"0")+"g--"+e._s(e.goods_sitem.metal_name)+"---"+e._s(e.goods_sitem.gold_price||"0")+"元/g--"+e._s("0"===e.goods_sitem.is_gold_price?"不":"")+"启用实时金价--"+e._s("1"===e.goods_sitem.is_diff?"有":"无")+"工差--"+e._s(e.goods_sitem.config)+"---"+e._s(e.goods_sitem.other_config))]):e._e()])],2)],1)],1),r("el-col",{directives:[{name:"show",rawName:"v-show",value:e.ruleForm.good_code,expression:"ruleForm.good_code"}],attrs:{span:12}},[r("el-row",[r("el-col",{attrs:{span:16}},[r("el-form-item",{attrs:{label:"活动类型",prop:"goodtype"}},[r("el-cascader",{staticStyle:{width:"100%"},attrs:{options:e.goodtype_options,placeholder:"活动类型",props:{expandTrigger:"hover"}},on:{change:e.get_new_price},model:{value:e.ruleForm.goodtype,callback:function(t){e.$set(e.ruleForm,"goodtype",t)},expression:"ruleForm.goodtype"}})],1)],1),r("el-col",{attrs:{span:8}},[r("el-form-item",{attrs:{label:"剩余库存","label-width":"75px"}},[r("el-input",{attrs:{disabled:"",maxlength:"200",placeholder:"剩余库存"},model:{value:e.ruleForm.activity_stock,callback:function(t){e.$set(e.ruleForm,"activity_stock",t)},expression:"ruleForm.activity_stock"}})],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"销售数量",prop:"good_num"}},[r("digital-input",{attrs:{values:e.ruleForm.good_num,name:"ruleForm.good_num",placeholder:"销售数量",min:0,disabled:!1,max:1e11,position:"right",precision:0,size:"mini",controls:!1,append:""},on:{reschange:function(t){return e.number_change(t,"good_num")}}})],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"销售单价",prop:"good_price"}},[r("el-input",{directives:[{name:"loading",rawName:"v-loading",value:e.priceLoding,expression:"priceLoding"}],attrs:{disabled:"",maxlength:"20"},model:{value:e.ruleForm.good_price,callback:function(t){e.$set(e.ruleForm,"good_price",t)},expression:"ruleForm.good_price"}},[r("template",{slot:"append"},[e._v("元")])],2)],1)],1)],1)],1),r("el-col",{attrs:{span:6}},[r("el-form-item",{attrs:{label:"到货时间",prop:"arrtime"}},[r("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"date",disabled:!1,"value-format":"yyyy-MM-dd","picker-options":e.pickerOptions,placeholder:"要求到货时间"},model:{value:e.ruleForm.arrtime,callback:function(t){e.$set(e.ruleForm,"arrtime",t)},expression:"ruleForm.arrtime"}})],1)],1),r("el-col",{attrs:{span:6}},[r("el-form-item",{attrs:{label:"发货方式",prop:"sendtype"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"发货方式"},model:{value:e.ruleForm.sendtype,callback:function(t){e.$set(e.ruleForm,"sendtype",t)},expression:"ruleForm.sendtype"}},e._l(e.sendtype_options,(function(e){return r("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1)],1),r("el-col",{attrs:{span:e.ruleForm.good_code?12:24}},[r("el-form-item",{attrs:{label:"订单备注",prop:"remark"}},[r("el-input",{attrs:{type:"textarea",maxlength:"250","show-word-limit":"",rows:e.ruleForm.good_code?4:2,placeholder:"订单备注"},model:{value:e.ruleForm.remark,callback:function(t){e.$set(e.ruleForm,"remark",t)},expression:"ruleForm.remark"}})],1)],1),r("el-col",{attrs:{span:24}},[r("search-good-online-modal",{attrs:{once:!0,sitem:e.addshowModel,active:!0,"show-model":e.showModel},on:{resultList:e.resultList,cancel:function(t){e.showModel=!1}}})],1)],1)],1)],1),e.ruleForm.sendtype&&"1"===e.ruleForm.sendtype?r("el-col",{staticStyle:{padding:"0 0 22px 0"},attrs:{span:24}},[r("el-form",{ref:"addrForm",attrs:{model:e.addrForm,size:"mini"}},[r("el-table",{staticStyle:{width:"100%"},attrs:{data:e.addrForm.order_addr,border:"",size:"mini","max-height":"200px","row-key":"key"}},[r("el-table-column",{attrs:{type:"index",width:"50","show-overflow-tooltip":""}}),r("el-table-column",{attrs:{prop:"receipt_quantity",label:"收货总数","min-width":"125","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.edit?r("el-form-item",{style:{marginBottom:t.row.edit?"13px":"0"},attrs:{prop:"order_addr."+t.$index+".receipt_quantity",rules:e.addrRules.receipt_quantity,size:"mini"}},[r("el-input",{attrs:{placeholder:"收货总数",maxlength:"20",disabled:!t.row.edit},model:{value:t.row.receipt_quantity,callback:function(r){e.$set(t.row,"receipt_quantity",r)},expression:"scope.row.receipt_quantity"}})],1):e._e(),t.row.edit?e._e():r("span",[e._v(e._s(t.row.receipt_quantity))])]}}],null,!1,1413435709)}),r("el-table-column",{attrs:{prop:"contactor",label:"收件联系人","min-width":"110","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.edit?r("el-form-item",{style:{marginBottom:t.row.edit?"13px":"0"},attrs:{prop:"order_addr."+t.$index+".contactor",rules:e.addrRules.contactor,size:"mini"}},[r("el-input",{attrs:{placeholder:"收件联系人",maxlength:"20",disabled:!t.row.edit},model:{value:t.row.contactor,callback:function(r){e.$set(t.row,"contactor",r)},expression:"scope.row.contactor"}})],1):e._e(),t.row.edit?e._e():r("span",[e._v(e._s(t.row.contactor))])]}}],null,!1,1944570642)}),r("el-table-column",{attrs:{prop:"mobile",label:"收货联系电话","min-width":"130","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.edit?r("el-form-item",{style:{marginBottom:t.row.edit?"13px":"0"},attrs:{prop:"order_addr."+t.$index+".mobile",rules:e.addrRules.mobile,size:"mini"}},[r("el-input",{attrs:{placeholder:"收货联系电话",maxlength:"11",disabled:!t.row.edit},model:{value:t.row.mobile,callback:function(r){e.$set(t.row,"mobile",r)},expression:"scope.row.mobile"}})],1):e._e(),t.row.edit?e._e():r("span",[e._v(e._s(t.row.mobile))])]}}],null,!1,1117629779)}),r("el-table-column",{attrs:{prop:"addr_code",label:"收货省市区","min-width":"230","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.edit?r("el-form-item",{style:{marginBottom:t.row.edit?"13px":"0"},attrs:{prop:"order_addr."+t.$index+".addr_code",rules:e.addrRules.addr_code,size:"mini"}},[r("select-area",{attrs:{value:t.row.addr_code,placeholder:"收货省市区",disabled:!t.row.edit,size:"mini"},on:{selectChange:function(r){return e.select_area_change(r,t.$index)}}})],1):e._e(),t.row.edit?e._e():r("span",[e._v(e._s(t.row.addr_code_name))])]}}],null,!1,3840783870)}),r("el-table-column",{attrs:{prop:"addr",label:"详细地址","min-width":"170","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.edit?r("el-form-item",{style:{marginBottom:t.row.edit?"13px":"0"},attrs:{prop:"order_addr."+t.$index+".addr",rules:e.addrRules.addr,size:"mini"}},[r("el-input",{attrs:{placeholder:"详细地址",maxlength:"100",disabled:!t.row.edit},model:{value:t.row.addr,callback:function(r){e.$set(t.row,"addr",r)},expression:"scope.row.addr"}})],1):e._e(),t.row.edit?e._e():r("span",[e._v(e._s(t.row.addr))])]}}],null,!1,763957316)}),r("el-table-column",{attrs:{fixed:"right",width:"94","show-overflow-tooltip":""},scopedSlots:e._u([{key:"header",fn:function(t){return[r("el-tooltip",{staticClass:"fr",staticStyle:{margin:"3px 0 0 8px"},attrs:{effect:"dark",content:"手动添加地址",placement:"top"}},[r("i",{staticClass:"el-icon-circle-plus-outline tb-icon",staticStyle:{color:"#63cbe7"},on:{click:function(t){return e.openHouseModal(-1)}}})]),r("el-tooltip",{staticClass:"fr",staticStyle:{margin:"3px 0 0 8px"},attrs:{effect:"dark",content:"导入收货地址",placement:"top"}},[r("i",{staticClass:"el-icon-upload2 tb-icon",staticStyle:{color:"#63cbe7"},on:{click:function(t){e.addrmodel=!0}}})]),r("el-tooltip",{staticClass:"fr",staticStyle:{margin:"3px 0 0 0"},attrs:{effect:"dark",content:"下载收货地址模板",placement:"top"}},[r("a",{staticClass:"downloadAddr",attrs:{href:"./static/收货地址模板.xlsx"}},[r("i",{staticClass:"el-icon-download tb-icon",staticStyle:{color:"#63cbe7",margin:"0"}})])])]}},{key:"default",fn:function(t){return[t.row.edit?e._e():r("el-tooltip",{attrs:{effect:"dark",content:"编辑",placement:"top"}},[r("i",{staticClass:"el-icon-edit tb-icon",on:{click:function(r){return e.openHouseModal(t.$index)}}})]),t.row.edit?r("el-tooltip",{attrs:{effect:"dark",content:"保存",placement:"top"}},[r("i",{staticClass:"el-icon-circle-check tb-icon",on:{click:function(r){return e.checkRow(t.$index)}}})]):e._e(),r("el-tooltip",{attrs:{effect:"dark",content:"删除",placement:"top"}},[r("i",{staticClass:"el-icon-delete tb-icon",on:{click:function(r){return e.deleteRow(t.$index,e.addrForm.order_addr)}}})])]}}],null,!1,1481077816)})],1)],1)],1):e._e(),r("el-col",{attrs:{span:24}},[r("in-addr-model",{attrs:{"show-model":e.addrmodel},on:{cancel:function(t){e.addrmodel=!1},refresh:e.addrRefresh}})],1),r("el-col",{staticStyle:{"text-align":"right",padding:"0 0 20px 0",display:"flex","justify-content":"space-between"},attrs:{span:24}},[r("p",[e._v("订单总金额:"+e._s(e.ruleForm.good_num*e.ruleForm.good_price||0))]),r("el-button",{attrs:{size:"mini",type:"primary"},on:{click:e.submitForm}},[e._v("保 存 ")])],1)],1)],1)}),[],!1,null,"6906c142",null);t.default=c.exports},"61d6":function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=(r("e9c4"),r("96cf"),r("0209e")),s={name:"brand",props:["showModel","sitem"],mixins:[r("9f53").a],data:function(){return{loading:!1,title:"添加单位",showModelThis:this.showModel,options:[],pickerOptions:{disabledDate:function(e){return e.getTime()<Date.now()-864e5}},ruleForm:{orderCode:"",paytime:"",workNo:"",platform_order:""},rulesThis:this.rules,rules:{paytime:[{required:!0,message:"请选择承诺回款时间",trigger:"change"}],platform_order:[{required:!0,message:"请输入平台订单号",trigger:"blur"}],workNo:[{required:!0,message:"请输入其他单号",trigger:"blur"}]}}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis:function(e){e||this.$emit("cancel")}},methods:{initForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,e.rulesThis=e.rules,e.options=[],t.next=5,e.resetForm();case 5:e.loading=!1;case 6:case"end":return t.stop()}}),t)})))()},resetForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$nextTick((function(){var t,r,a,n;e.$refs.ruleForm&&(e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),t=(n=e.sitem).orderCode,r=n.paytime,a=n.workNo,n=n.platform_order,e.ruleForm={orderCode:t||"",paytime:r||"",workNo:a||"",platform_order:n||""})}));case 2:case"end":return t.stop()}}),t)})))()},submitForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.ruleForm.validate(function(){var t=Object(a.a)(regeneratorRuntime.mark((function t(r){var a,s;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r)return e.loading=!0,a=JSON.parse(JSON.stringify(e.ruleForm)),t.next=5,n.a.saleaddother(a);t.next=21;break;case 5:if(s=t.sent,e.loading=!1,!s||0!==s.code){t.next=13;break}e.$notify.success({title:"设置成功!",message:""}),e.showModelThis=!1,e.$emit("refresh"),t.next=19;break;case 13:if(s&&100<=s.code&&s.code<=104)return t.next=16,e.logout();t.next=18;break;case 16:t.next=19;break;case 18:e.$message.warning(s.message);case 19:t.next=23;break;case 21:return t.abrupt("return",!1);case 23:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()}}};r("a731"),r=r("2877"),r=Object(r.a)(s,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:"设置部分字段",center:!0,align:"left",top:"18vh",width:"500px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)"},on:{"update:visible":function(t){e.showModelThis=t},close:function(t){e.showModelThis=!1}}},[t("el-card",{staticStyle:{margin:"-20px 0 0 0"}},[t("el-row",{attrs:{gutter:10}},[t("el-col",{attrs:{span:24}},[t("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",size:"mini",rules:e.rulesThis,"label-width":"110px"}},[t("el-form-item",{attrs:{label:"承诺回款时间",prop:"paytime"}},[t("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"date",disabled:!1,"value-format":"yyyy-MM-dd","picker-options":e.pickerOptions,placeholder:"承诺回款时间"},model:{value:e.ruleForm.paytime,callback:function(t){e.$set(e.ruleForm,"paytime",t)},expression:"ruleForm.paytime"}})],1),t("el-form-item",{attrs:{label:"平台订单号",prop:"platform_order"}},[t("el-input",{attrs:{placeholder:"如:PO号",maxlength:"50"},model:{value:e.ruleForm.platform_order,callback:function(t){e.$set(e.ruleForm,"platform_order",t)},expression:"ruleForm.platform_order"}})],1),t("el-form-item",{attrs:{label:"其他单号",prop:"workNo"}},[t("el-input",{attrs:{placeholder:"如:业管单号",maxlength:"50"},model:{value:e.ruleForm.workNo,callback:function(t){e.$set(e.ruleForm,"workNo",t)},expression:"ruleForm.workNo"}})],1)],1)],1),t("el-col",{staticStyle:{"text-align":"right"},attrs:{span:24}},[t("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.submitForm}},[e._v("保 存 ")]),t("el-button",{attrs:{size:"mini"},on:{click:function(t){e.showModelThis=!1}}},[e._v("取 消")])],1)],1)],1)],1)}),[],!1,null,"2218df88",null);t.default=r.exports},"62a1":function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=(r("96cf"),r("d3b7"),r("159b"),r("e9c4"),r("e49d")),s=r("9f53"),i=r("61f7");s={name:"sort",props:["showModel","id","sitem","titleList"],mixins:[s.a],data:function(){return{loading:!1,title:"添加分类",pid_name:"",showModelThis:this.showModel,specOptions:[],ruleForm:{id:"",cat_name:"",specs_id:[],cat_desc:""},rulesThis:this.rules,rules:{cat_name:[{required:!0,message:"分类名称不能为空",trigger:"blur"}],specs_id:[{type:"array",required:!0,message:"请至少选择一个分类规格",trigger:"change"}],fund_code:[{required:!1,validator:function(e,t,r){""!==t&&Object(i.c)(t)?r(new Error("财务核算码不能包含汉字!")):r()},trigger:"blur"}],cat_desc:[{required:!1,message:"",trigger:"blur"}]}}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis:function(e){e||this.$emit("cancel")}},methods:{initForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,e.pid_name="",e.titleList.forEach((function(t,r){e.pid_name+=0!==r?"".concat(t.titleName,"/"):""})),t.next=5,e.resetForm();case 5:if("003"!==e.id){t.next=10;break}e.title="添加分类",e.rulesThis=e.rules,t.next=21;break;case 10:if("005"===e.id)return e.title="修改分类",e.rulesThis=e.rules,t.next=15,e.initData();t.next=17;break;case 15:t.next=21;break;case 17:return e.title="分类详情",e.rulesThis={},t.next=21,e.initData();case 21:return t.next=23,e.getAllSpecs();case 23:e.loading=!1;case 24:case"end":return t.stop()}}),t)})))()},resetForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$nextTick((function(){var t,r,a;e.$refs.ruleForm&&(e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),t=(a=e.sitem).id,r=a.cat_name,a=a.cat_desc,e.ruleForm={pid:e.titleList[e.titleList.length-1].id||"",id:t||"",cat_name:r||"",specs_id:[],cat_desc:a||""})}));case 2:case"end":return t.stop()}}),t)})))()},getAllSpecs:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.specOptions=[],t.next=3,n.a.specstitle({});case 3:if(!(r=t.sent)||0!==r.code){t.next=8;break}e.specOptions=r.data,t.next=16;break;case 8:if(r&&100<=r.code&&r.code<=104)return e.specOptions=[],t.next=12,e.logout();t.next=14;break;case 12:t.next=16;break;case 14:e.specOptions=[],e.$message.warning(r.message);case 16:case"end":return t.stop()}}),t)})))()},initData:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r,a,s,i,o,l,c,u;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n.a.detail({id:e.sitem.id});case 2:if(!(r=t.sent)||0!==r.code||!r.data){t.next=13;break}c=r.data,a=c.pid,s=c.id,i=c.cat_name,o=c.cat_desc,l=c.spec,c=c.fund_code,u=[],l&&0<l.length&&l.forEach((function(e){u.push(e.id)})),e.ruleForm={pid:a||"",id:s||"",cat_name:i||"",specs_id:u||[],fund_code:c||"",cat_desc:o||""},e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),t.next=19;break;case 13:if(r&&100<=r.code&&r.code<=104)return t.next=16,e.logout();t.next=18;break;case 16:t.next=19;break;case 18:e.$message.warning(r.message);case 19:case"end":return t.stop()}}),t)})))()},submitForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.ruleForm.validate(function(){var t=Object(a.a)(regeneratorRuntime.mark((function t(r){var a,s,i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r){t.next=30;break}if(e.loading=!0,a=JSON.parse(JSON.stringify(e.ruleForm)),s={},"003"===e.id)return delete a.id,t.next=8,n.a.add(a);t.next=11;break;case 8:s=t.sent,t.next=14;break;case 11:return t.next=13,n.a.update(a);case 13:s=t.sent;case 14:if(e.loading=!1,!s||0!==s.code){t.next=22;break}i="add"===e.id?"添加成功!":"修改成功!",e.$notify.success({title:i,message:""}),e.showModelThis=!1,e.$emit("refresh"),t.next=28;break;case 22:if(s&&100<=s.code&&s.code<=104)return t.next=25,e.logout();t.next=27;break;case 25:t.next=28;break;case 27:e.$message.warning(s.message);case 28:t.next=32;break;case 30:return t.abrupt("return",!1);case 32:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()}}},r("08ba"),r=r("2877"),r=Object(r.a)(s,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:e.title,center:!0,align:"left",top:"12vh",width:"650px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)"},on:{"update:visible":function(t){e.showModelThis=t},close:function(t){e.showModelThis=!1}}},[r("el-card",{staticStyle:{margin:"-20px 0 0 0"}},[r("el-row",{attrs:{gutter:10}},[r("el-col",{attrs:{span:24}},[r("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",rules:e.rulesThis,"label-width":"95px"}},[r("el-form-item",{attrs:{label:"分类名称",prop:"cat_name"}},[r("el-input",{attrs:{disabled:"007"==e.id,placeholder:"分类名称",maxlength:"20"},model:{value:e.ruleForm.cat_name,callback:function(t){e.$set(e.ruleForm,"cat_name",t)},expression:"ruleForm.cat_name"}},[e.pid_name?r("template",{slot:"prepend"},[e._v(e._s(e.pid_name))]):e._e()],2)],1),r("el-form-item",{attrs:{label:"分类规格",prop:"specs_id"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{multiple:"",disabled:"007"==e.id,placeholder:"分类规格"},model:{value:e.ruleForm.specs_id,callback:function(t){e.$set(e.ruleForm,"specs_id",t)},expression:"ruleForm.specs_id"}},e._l(e.specOptions,(function(e){return r("el-option",{key:e.id,attrs:{label:e.spec_name,value:e.id}})})),1)],1),r("el-form-item",{attrs:{label:"售后说明",prop:"cat_desc"}},[r("el-input",{attrs:{disabled:"007"==e.id,placeholder:"售后说明",type:"textarea",rows:5,maxlength:"2000","show-word-limit":""},model:{value:e.ruleForm.cat_desc,callback:function(t){e.$set(e.ruleForm,"cat_desc",t)},expression:"ruleForm.cat_desc"}})],1)],1)],1),r("el-col",{staticStyle:{"text-align":"right"},attrs:{span:24}},["007"!==e.id?r("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("保 存 ")]):e._e(),r("el-button",{on:{click:function(t){e.showModelThis=!1}}},[e._v(e._s("007"==e.id?"关 闭":"取 消"))])],1)],1)],1)],1)}),[],!1,null,"3ff3a62d",null);t.default=r.exports},"62c7":function(e,t,r){},"62f7":function(e,t,r){"use strict";r("6932")},6322:function(e,t,r){"use strict";r("034d")},"63e9":function(e,t,r){},"63fc":function(e,t,r){"use strict";r("d5a7")},6419:function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=r("5530"),s=(r("c740"),r("a434"),r("96cf"),r("9f53")),i=r("2f62");s={name:"workDiffTable",mixins:[s.a],props:["newTime","id","sitem"],watch:{newTime:function(e){e&&this.initForm()}},computed:Object(n.a)({},Object(i.b)(["tablebtnSize","searchSize","size"])),data:function(){return{orderCode:"",outCode:"",statusOptions:[{id:"1",label:"已出库"},{id:"2",label:"验收中"},{id:"3",label:"验收完成"}],showGoodsModel:!1,stock_code:"",tableData:[],loading:!1,diffStatusOptions:[{id:"1",label:"待业务部门审核"},{id:"2",label:"工差单审核完成"}],queryId:"",status:"",showModel:null,modelId:"",modelItem:null,s_sitem:null}},mounted:function(){this.initForm()},methods:{refresh:function(){this.$emit("refresh")},initForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.status="",e.queryId=e.$route.query.id,e.resetForm();case 3:case"end":return t.stop()}}),t)})))()},getNewTime:function(){this.newTime=(new Date).valueOf()},resetForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$nextTick((function(){e.tableData=[];var t=e.sitem.purcheasediff;t&&e.tableData.push(t)}));case 2:case"end":return t.stop()}}),t)})))()},editRow:function(e){-1!==this.stockForm.good_stock.findIndex((function(e){return!0===e.edit}))?this.$message.warning("当前已有发货仓库信息在编辑,请保存后再试!"):this.stockForm.good_stock[e].edit=!0},checkStockRow:function(e){var t=parseInt(this.stockForm.good_stock[e].usable_stock),r=parseInt(this.stockForm.good_stock[e].num);0===t?this.$message.warning("该仓库已无该商品库存!不能销售!"):t<r?this.$message.warning("销售数量不能大于可用库存!"):this.stockForm.good_stock[e].edit=!1},openHouseModal:function(){this.modelId="add",this.modelItem=this.sitem,this.modelShowModel=!0},checkRow:function(e){var t=this;this.$refs.addrForm.validate((function(r){if(!r)return!1;t.tableData[e].edit=!1}))},deleteRow:function(e,t){t.splice(e,1)},openModal:function(e,t,r){this.s_sitem=t,this.modelId=e,this.showModel=!0}}},n=r("2877"),i=Object(n.a)(s,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"work-diff-table"},[r("el-table",{ref:"addrForm",staticStyle:{width:"100%"},attrs:{data:e.tableData,border:"",size:"mini","row-key":"key"}},[r("el-table-column",{attrs:{"show-overflow-tooltip":"",prop:"diff_weight",label:"工差克重(g)"}}),r("el-table-column",{attrs:{"show-overflow-tooltip":"",prop:"diff_price",label:"工差金额"}}),r("el-table-column",{attrs:{"show-overflow-tooltip":"",prop:"status",label:"状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-tag",{attrs:{size:e.tablebtnSize,type:"0"==t.row.status?"warning":""},domProps:{textContent:e._s((e.diffStatusOptions.find((function(e){return e.id==t.row.status}))||{}).label||"--")}})]}}])}),r("el-table-column",{attrs:{"show-overflow-tooltip":"",prop:"apply_name",label:"创建人"}}),r("el-table-column",{attrs:{"show-overflow-tooltip":"",prop:"addtime",label:"创建时间"}}),r("el-table-column",{attrs:{fixed:"right",width:"50"},scopedSlots:e._u([{key:"header",fn:function(t){return[r("span",[e._v("操作")])]}},{key:"default",fn:function(t){return[t.row.edit?e._e():r("el-tooltip",{attrs:{effect:"dark",content:"查看",placement:"top"}},[r("i",{staticClass:"el-icon-view tb-icon",on:{click:function(r){return e.routeGoto("purchaseDiffOrderDetail",{id:t.row.id})}}})])]}}])})],1)],1)}),[],!1,null,"7bc22b36",null);t.default=i.exports},"646f":function(e,t,r){"use strict";r("a6406")},6551:function(e,t,r){},66211:function(e,t,r){"use strict";r("95b3")},6695:function(e,t,r){"use strict";r.r(t);var a=r("5530"),n=(r("7db0"),r("d3b7"),r("f5ed")),s=r("9f53"),i=r("948d"),o=r("b1f6"),l=r("9fce"),c=r("2f62");n={name:"stockCount",mixins:[n.a,s.a],components:{DataWeido:i.default,ProductWeido:o.default,SpaceCount:l.default},computed:Object(a.a)(Object(a.a)({},Object(c.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"stockCount"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),data:function(){return{activeName:"count"}},methods:{}},s=r("2877"),i=Object(s.a)(n,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("div",{staticClass:"nowCount pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?t("div",[t("div",{staticStyle:{width:"100%"}},[t("el-row",[t("el-col",[t("el-tabs",{model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[t("el-tab-pane",{attrs:{label:"商品维度",name:"productWeido"}},[t("product-weido")],1),t("el-tab-pane",{attrs:{label:"仓库维度",name:"dataWeido"}},[t("data-weido")],1),t("el-tab-pane",{attrs:{label:"区间统计",name:"count"}},[t("space-count")],1)],1)],1)],1)],1)]):t("div",[t("no-auth")],1)])}),[],!1,null,null,null);t.default=i.exports},6715:function(e,t,r){},"678e":function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=(r("96cf"),r("7db0"),r("d3b7"),r("159b"),r("b0c0"),r("f5ed")),s=r("9f53"),i=r("74a5"),o=r("e7e1"),l=r("b651");n={name:"zxDiffOrderDetail",mixins:[n.a,s.a],components:{addForm:o.default},computed:{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"zxDiffOrderDetail"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}},data:function(){return{showModel:!1,showColumns:l.b,activeTabs:"1",activeNames:["-1","0","1","2","3","4","5","10"],statusOptions:[{value:"1",label:"待业务部门审核"},{value:"2",label:"审批已完成"}],orderOptions:[{id:"1",label:"线上商品销售"},{id:"2",label:"项目线上商品销售"},{id:"3",label:"咨询单销售"},{id:"4",label:"项目咨询单销售"}],customer_remark_options:[{value:"1",label:"咨询订单减工差"},{value:"2",label:"咨询订单不减工差"}],is_act_options:[{value:"1",label:"接受工差"},{value:"2",label:"不接受工差-退回重做"}],sitem:null,status:"",newTime:"",loading:!1,queryId:""}},mounted:function(){this.status="",this.queryId=this.$route.query.id,this.initData()},methods:{getNewTime:function(){this.newTime=(new Date).valueOf()+""},setStatus:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r,a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.loading){t.next=18;break}return e.loading=!0,r={id:e.queryId,remark:"",status:""},t.next=5,i.a.fstatus(r);case 5:if(a=t.sent,e.loading=!1,!a||0!==a.code){t.next=12;break}e.$notify.success({title:"通知成功!",message:""}),e.initData(),t.next=18;break;case 12:if(a&&100<=a.code&&a.code<=104)return t.next=15,e.logout();t.next=17;break;case 15:t.next=18;break;case 17:e.$message.warning(a.message);case 18:case"end":return t.stop()}}),t)})))()},initData:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r,a,n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,i.a.detail({id:e.queryId});case 2:if(!(r=t.sent)||0!==r.code||!r.data){t.next=12;break}e.sitem=r.data,n=r.data,a=n.can,n=n.status,e.status=n,e.sitem.class_cat="",a&&0<a.length&&a.forEach((function(t,r){e.sitem.class_cat+=0===r?t.name:"/"+t.name})),e.getNewTime(),t.next=18;break;case 12:if(r&&100<=r.code&&r.code<=104)return t.next=15,e.logout();t.next=17;break;case 15:t.next=18;break;case 17:e.$message.warning(r.message);case 18:case"end":return t.stop()}}),t)})))()}}},r("d70c"),s=r("2877"),o=Object(s.a)(n,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("div",{staticClass:"zxDiffOrderDetail pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"007"==e}))?t("div",{staticStyle:{width:"100%"}},[t("el-tabs",{model:{value:e.activeTabs,callback:function(t){e.activeTabs=t},expression:"activeTabs"}},[t("el-tab-pane",{attrs:{label:"业务详情",name:"1"}},[t("el-collapse",{staticStyle:{margin:"-18px 0 0 0"},model:{value:e.activeNames,callback:function(t){e.activeNames=t},expression:"activeNames"}},[t("el-collapse-item",{attrs:{title:"工差单信息",name:"1"}},[""!==e.newTime?t("show-data-table",{staticStyle:{margin:"0",padding:"0"},attrs:{newTime:e.newTime,sitem:e.sitem,columns:e.showColumns}},[t("template",{slot:"status"},[t("el-tag",{attrs:{size:"mini"},domProps:{textContent:e._s((e.statusOptions.find((function(t){return t.value==e.sitem.status}))||{}).label||"--")}})],1),t("template",{slot:"order_type"},[t("el-tag",{attrs:{size:"mini"},domProps:{textContent:e._s((e.orderOptions.find((function(t){return t.id==e.sitem.order_type}))||{}).label||"--")}})],1),t("template",{slot:"is_act"},[t("el-tag",{attrs:{size:"mini"},domProps:{textContent:e._s((e.is_act_options.find((function(t){return t.value==e.sitem.is_act}))||{}).label||"--")}})],1),t("template",{slot:"customer_remark"},["1"===e.sitem.is_act?t("el-tag",{attrs:{size:"mini"},domProps:{textContent:e._s((e.customer_remark_options.find((function(t){return t.value==e.sitem.customer_remark}))||{}).label||"--")}}):t("el-tag",{attrs:{size:"mini"},domProps:{textContent:e._s("--")}})],1)],2):e._e()],1),t("el-collapse-item",{attrs:{title:"商品信息",name:"2"}},[""!==e.newTime?t("show-goods-data-table",{attrs:{newTime:e.newTime,type:e.sitem.order_type,skucode:e.sitem.skuCode,spucode:e.sitem.good_code,iscgd:!0}}):e._e()],1),e.sitem&&"1"===e.sitem.status?t("el-collapse-item",{attrs:{title:"业务审核",name:"3"}},[""!==e.newTime?t("add-form",{attrs:{sitem:e.sitem,newTime:e.newTime},on:{refresh:function(t){return e.initData()}}}):e._e()],1):e._e()],1)],1),t("el-tab-pane",{attrs:{label:"审批记录",name:"2"}},[""!==e.newTime?t("process-time-line",{attrs:{newTime:e.newTime,type:"ZXGCD",orderCode:e.queryId}}):e._e()],1)],1)],1):t("div",[t("no-auth")],1)])}),[],!1,null,"387c899f",null);t.default=o.exports},6800:function(e,t,r){},6932:function(e,t,r){},6938:function(e,t,r){"use strict";r("c3a4")},"6944b":function(e,t,r){},6986:function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=(r("b0c0"),r("ac1f"),r("1276"),r("a434"),r("e9c4"),r("d3b7"),r("25f0"),r("96cf"),r("c717")),s=r("9f53"),i=r("61f7");s={name:"supplierAdd",mixins:[s.a],props:["showModel","id","type","sitem"],data:function(){return{loading:!1,hand_name:"",coop_stateoptions:[{value:"0",label:"白名单"},{value:"1",label:"黑名单"}],sourceoptions:[{value:"0",label:"客户提供"},{value:"1",label:"供应商"},{value:"2",label:"公司开发"}],typeoptions:[{value:"0",label:"正式供应商"},{value:"1",label:"临时供应商"}],categoryoptions:[{value:"0",label:"单品类供应商"},{value:"1",label:"多品类供应商"}],delivery_wayoptions:[{value:"0",label:"供应商发货"},{value:"1",label:"公司自提"}],supplier_typeoptions:[{value:"0",label:"生产厂家"},{value:"1",label:"代理商"},{value:"2",label:"经销商"},{value:"3",label:"分销商"},{value:"4",label:"电商平台"}],leveloptions:[{value:"2",label:"生产厂家"},{value:"0",label:"一级代理商"},{value:"1",label:"二级代理商"}],pay_typeoptions:[{value:"0",label:"现结"},{value:"1",label:"月清"},{value:"2",label:"双月清"}],ocr_status:[{id:"0",label:"未上传"},{id:"1",label:"识别成功"},{id:"2",label:"识别失败"}],title:"添加供应商",showModelThis:this.showModel,pickerOptions:{disabledDate:function(e){return e.getTime()>Date.now()}},ruleForm:{},rulesThis:this.rules,rules:{coop_state:[{required:!0,message:"请选择合作状态",trigger:"change"}],source:[{required:!0,message:"请选择供应商来源",trigger:"change"}],type:[{required:!0,message:"请选择申请类型",trigger:"change"}],category:[{required:!0,message:"请选择所属类别",trigger:"change"}],delivery_way:[{required:!0,message:"请选择物流方式",trigger:"change"}],supplier_type:[{required:!0,message:"请选择供应商类型",trigger:"change"}],level:[{required:!0,message:"请选择供应商级别",trigger:"change"}],pay_type:[{required:!0,message:"请选择付款方式",trigger:"change"}],prove_img:[{required:!1,type:"array",message:"请上传资质证明",trigger:"change"}],personid:[{required:!0,type:"array",message:"请选择负责人",trigger:"change"}],contactor:[{required:!0,message:"姓名不能为空",trigger:"blur"}],mobile:[{required:!0,validator:function(e,t,r){""===t?r(new Error("手机号不能为空!")):Object(i.g)(t)?r():r(new Error("手机号格式不正确!"))},trigger:"blur"}],telephone:[{required:!1,validator:function(e,t,r){""===t||Object(i.n)(t)?r():r(new Error("规则为区号[0+2~3位]-固定电话[7~8位]!"))},trigger:"blur"}],position:[{required:!0,message:"职位不能为空",trigger:"blur"}],registercode:[{required:!0,validator:function(e,t,r){""!==t?Object(i.f)(t)?r():r(new Error("统一社会信用代码不正确!")):r(new Error("请输入统一社会信用代码!"))},trigger:"blur"}],name:[{required:!0,message:"供应商名称不能为空",trigger:"blur"}],nature:[{required:!0,message:"公司类型不能为空",trigger:"change"}],addr:[{required:!0,message:"详细地址不能为空",trigger:"blur"}],legaler:[{required:!0,message:"法人代表不能为空",trigger:"blur"}],registertime:[{required:!0,message:"成立时间不能为空",trigger:"change"}],scope:[{required:!0,message:"营业执照不能为空",trigger:"blur"}]}}},mounted:function(){this.initForm()},methods:{initForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.hand_name="",e.loading=!0,e.resetFormData(),e.rulesThis=e.rules,t.next=6,e.resetForm();case 6:e.loading=!1;case 7:case"end":return t.stop()}}),t)})))()},resetForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$nextTick((function(){e.$refs.ruleForm&&(e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),e.resetFormData())}));case 2:case"end":return t.stop()}}),t)})))()},resetFormData:function(){var e=this.sitem,t=e.id,r=e.coop_state,a=e.source,n=e.type,s=e.category,i=e.delivery_way,o=e.supplier_type,l=e.level,c=e.pay_type,u=e.supplier_img,d=e.prove_img,p=e.contactor,m=e.mobile,f=e.position,h=e.registercode,g=e.name,b=e.nature,_=e.addr,w=e.legaler,v=e.registertime,x=e.scope,k=e.personid,y=e.person;e=e.telephone;this.hand_name=y||"",this.ruleForm={id:t||"",coop_state:r||"",source:a||"",type:n||"",category:s||"",delivery_way:i||"",supplier_type:o||"",level:l||"",pay_type:c||"",supplier_img:u||"",prove_img:d?(d||"").split(","):[],contactor:p||"",mobile:m||"",telephone:e||"",position:f||"",registercode:h||"",name:g||"",nature:b||"",addr:_||"",legaler:w||"",registertime:v||"",scope:x||"",personid:k?[k]:[]}},closeImg:function(e){this.ruleForm.prove_img.splice(e,1),this.$refs.ruleForm.validateField("prove_img")},submitForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.ruleForm.validate(function(){var t=Object(a.a)(regeneratorRuntime.mark((function t(r){var a,s,i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r){t.next=32;break}if(e.loading=!0,(a=JSON.parse(JSON.stringify(e.ruleForm))).prove_img=a.prove_img.toString(),a.personid=a.personid.toString(),s={},"add"===e.id)return delete a.id,t.next=10,n.a.add(a);t.next=13;break;case 10:s=t.sent,t.next=16;break;case 13:return t.next=15,n.a.update(a);case 15:s=t.sent;case 16:if(e.loading=!1,!s||0!==s.code){t.next=24;break}i="add"===e.id?"添加成功!":"修改成功!",e.$notify.success({title:i,message:""}),e.showModelThis=!1,e.$emit("refresh",s.data),t.next=30;break;case 24:if(s&&100<=s.code&&s.code<=104)return t.next=27,e.logout();t.next=29;break;case 27:t.next=30;break;case 29:e.$message.warning(s.message);case 30:t.next=34;break;case 32:return t.abrupt("return",!1);case 34:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()},deleteimg:function(){this.ruleForm.supplier_img="",this.$refs.ruleForm.validateField("supplier_img")},handleHandoverName:function(e){e&&e.id?this.ruleForm.personid=[e.id]:this.ruleForm.personid=[],this.$refs.ruleForm.validateField("personid")},type_search_change:function(e){var t=e.id;e.code,e.label,this.ruleForm.nature=t||"",this.$refs.ruleForm.validateField("nature")},UploadSuccessEventsupplier_img:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t.UploadSuccessEvent(1,e);case 2:case"end":return r.stop()}}),r)})))()},UploadSuccessEventgood_info_img:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t.UploadSuccessEvent(3,e);case 2:case"end":return r.stop()}}),r)})))()},UploadSuccessEvent:function(e,t){var r=this;return Object(a.a)(regeneratorRuntime.mark((function a(){var n;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if("noToken"===(n=t.url))return a.next=4,r.logout();a.next=6;break;case 4:a.next=8;break;case 6:1===e?(r.ruleForm.supplier_img=n,r.$refs.ruleForm.validateField("supplier_img")):2===e?(r.ruleForm.good_img=n,r.$refs.ruleForm.validateField("good_img")):(r.ruleForm.prove_img.push(n),r.$refs.ruleForm.validateField("prove_img")),r.$message.success("图片上传成功!");case 8:case"end":return a.stop()}}),a)})))()},UploadErrorEventsupplier_img:function(e){this.imgUploadError(1,e)},UploadErrorEventgood_info_img:function(e){this.imgUploadError(3,e)},imgUploadError:function(e,t){"break"!==t&&(this.$message.error("图片上传失败!"),this.$refs.ruleForm.validateField(1===e?"supplier_img":2===e?"good_img":"good_info_img"))},beforeAvatarUpload:function(e){var t=!1;"image/jpg"!==e.type&&"image/png"!==e.type&&"image/jpeg"!==e.type||(t=!0),e=e.size/1024/1024<1;return t||this.$message.error("图片格式不正确!"),e||this.$message.error("图片大小不能超过 1MB!"),t&&e}}},r("ec0d"),r=r("2877"),r=Object(r.a)(s,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"ruleForm",staticClass:"supplierAdd",attrs:{model:e.ruleForm,"status-icon":"",rules:e.rulesThis,size:"small","label-width":"100px"}},[r("el-row",[r("el-col",{attrs:{span:6}},[r("div",{staticClass:"supplierAdd-title",staticStyle:{margin:"6px 0 0 10px"}},[e._v(" 基础信息 ")])]),r("el-col",{attrs:{span:6}},[r("el-form-item",{attrs:{label:"合作状态",prop:"coop_state"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{disabled:"add"!==e.type&&"edit"!==e.type,placeholder:"合作状态"},model:{value:e.ruleForm.coop_state,callback:function(t){e.$set(e.ruleForm,"coop_state",t)},expression:"ruleForm.coop_state"}},e._l(e.coop_stateoptions,(function(e){return r("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1)],1),r("el-col",{attrs:{span:6}},[r("el-form-item",{attrs:{label:"供应商来源",prop:"source"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{disabled:"add"!==e.type&&"edit"!==e.type,placeholder:"供应商来源"},model:{value:e.ruleForm.source,callback:function(t){e.$set(e.ruleForm,"source",t)},expression:"ruleForm.source"}},e._l(e.sourceoptions,(function(e){return r("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1)],1),r("el-col",{attrs:{span:6}},[r("el-form-item",{attrs:{label:"申请类型",prop:"type"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{disabled:"add"!==e.type&&"edit"!==e.type,placeholder:"申请类型"},model:{value:e.ruleForm.type,callback:function(t){e.$set(e.ruleForm,"type",t)},expression:"ruleForm.type"}},e._l(e.typeoptions,(function(e){return r("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1)],1),r("el-col",{attrs:{span:6}},[r("el-form-item",{attrs:{label:"所属类别",prop:"category"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{disabled:"add"!==e.type&&"edit"!==e.type,placeholder:"所属类别"},model:{value:e.ruleForm.category,callback:function(t){e.$set(e.ruleForm,"category",t)},expression:"ruleForm.category"}},e._l(e.categoryoptions,(function(e){return r("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1)],1),r("el-col",{attrs:{span:6}},[r("el-form-item",{attrs:{label:"物流方式",prop:"delivery_way"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{disabled:"add"!==e.type&&"edit"!==e.type,placeholder:"物流方式"},model:{value:e.ruleForm.delivery_way,callback:function(t){e.$set(e.ruleForm,"delivery_way",t)},expression:"ruleForm.delivery_way"}},e._l(e.delivery_wayoptions,(function(e){return r("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1)],1),r("el-col",{attrs:{span:6}},[r("el-form-item",{attrs:{label:"供应商类型",prop:"supplier_type"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{disabled:"add"!==e.type&&"edit"!==e.type,placeholder:"供应商类型"},model:{value:e.ruleForm.supplier_type,callback:function(t){e.$set(e.ruleForm,"supplier_type",t)},expression:"ruleForm.supplier_type"}},e._l(e.supplier_typeoptions,(function(e){return r("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1)],1),r("el-col",{attrs:{span:6}},[r("el-form-item",{attrs:{label:"供应商级别",prop:"level"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{disabled:"add"!==e.type&&"edit"!==e.type,placeholder:"供应商级别"},model:{value:e.ruleForm.level,callback:function(t){e.$set(e.ruleForm,"level",t)},expression:"ruleForm.level"}},e._l(e.leveloptions,(function(e){return r("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1)],1),r("el-col",{attrs:{span:6}},[r("el-form-item",{attrs:{label:"付款方式",prop:"pay_type"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{disabled:"add"!==e.type&&"edit"!==e.type,placeholder:"付款方式"},model:{value:e.ruleForm.pay_type,callback:function(t){e.$set(e.ruleForm,"pay_type",t)},expression:"ruleForm.pay_type"}},e._l(e.pay_typeoptions,(function(e){return r("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),r("el-form-item",{attrs:{label:"负责人",prop:"personid"}},[r("search-account",{attrs:{disabled:"add"!==e.type&&"edit"!==e.type,"is-detail":"add"!==e.type,value:e.ruleForm.personid,size:"small",names:e.hand_name,placeholder:"负责人名称"},on:{searchChange:e.handleHandoverName}})],1)],1),r("el-col",{attrs:{span:6}},[r("el-form-item",{staticClass:"activity-upload",attrs:{label:"营业执照",prop:"supplier_img",disabled:"view"==e.id}},[e.ruleForm.supplier_img?r("div",{staticClass:"img-find"},[r("img",{directives:[{name:"viewer",rawName:"v-viewer"}],staticClass:"avatar hover fl",staticStyle:{width:"50px",height:"50px"},attrs:{src:e.ruleForm.supplier_img}}),"view"!==e.type?r("el-link",{staticClass:"fl",staticStyle:{margin:"0 0 0 16px"},attrs:{underline:!1,type:"warning"},on:{click:function(t){return e.deleteimg()}}},[e._v("删除")]):e._e()],1):r("div",{staticClass:"btnupload",staticStyle:{position:"relative"}},[r("i",{staticClass:"el-icon-plus avatar-uploader-icon"}),"view"!==e.type?r("file-upload",{staticClass:"Upload",attrs:{disabled:"view"==e.id,accept:".jpg,.png,.jpeg",multiple:!0,uploadcondition:e.beforeAvatarUpload},on:{UploadErrorEvent:e.UploadErrorEventsupplier_img,UploadSuccessEvent:e.UploadSuccessEventsupplier_img}}):e._e()],1)])],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"资质证明",prop:"prove_img"}},[r("div",{staticClass:"good_info_img_div"},[r("ul",{staticClass:"clear"},[e.ruleForm&&e.ruleForm.prove_img&&0<e.ruleForm.prove_img.length?e._l(e.ruleForm.prove_img,(function(t,a){return r("li",{directives:[{name:"viewer",rawName:"v-viewer"}],key:t+a,staticClass:"img-show-li"},[r("div",{staticClass:"img-show-li-div"},[r("img",{staticClass:"img-show",attrs:{src:t,alt:""}}),"add"===e.type||"edit"===e.type?r("i",{staticClass:"el-icon-close",on:{click:function(t){return e.closeImg(a)}}}):e._e()])])})):e._e(),e.ruleForm&&e.ruleForm.prove_img&&e.ruleForm.prove_img.length<10&&"view"!==e.type?r("li",{staticClass:"img-show-li"},[r("div",{staticClass:"activity-upload"},[r("div",{staticClass:"btnupload",staticStyle:{position:"relative"}},[r("i",{staticClass:"el-icon-plus avatar-uploader-icon"}),r("file-upload",{staticClass:"Upload",attrs:{disabled:"add"!==e.type&&"edit"!==e.type,accept:".jpg,.png,.jpeg",multiple:!0,uploadcondition:e.beforeAvatarUpload},on:{UploadErrorEvent:e.UploadErrorEventgood_info_img,UploadSuccessEvent:e.UploadSuccessEventgood_info_img}})],1)])]):e._e()],2)])])],1),r("el-col",{attrs:{span:24}},[r("div",{staticClass:"supplierAdd-title"},[e._v("联系人信息")])]),r("el-col",{attrs:{span:6}},[r("el-form-item",{attrs:{label:"姓名",prop:"contactor"}},[r("el-input",{attrs:{disabled:"add"!==e.type&&"edit"!==e.type,placeholder:"姓名",maxlength:"20"},model:{value:e.ruleForm.contactor,callback:function(t){e.$set(e.ruleForm,"contactor",t)},expression:"ruleForm.contactor"}})],1)],1),r("el-col",{attrs:{span:6}},[r("el-form-item",{attrs:{label:"手机号",prop:"mobile"}},[r("el-input",{attrs:{disabled:"add"!==e.type&&"edit"!==e.type,placeholder:"手机号",maxlength:"20"},model:{value:e.ruleForm.mobile,callback:function(t){e.$set(e.ruleForm,"mobile",t)},expression:"ruleForm.mobile"}})],1)],1),r("el-col",{attrs:{span:6}},[r("el-form-item",{attrs:{label:"座机号",prop:"telephone"}},[r("el-input",{attrs:{disabled:"add"!==e.type&&"edit"!==e.type,placeholder:"座机号",maxlength:"50"},model:{value:e.ruleForm.telephone,callback:function(t){e.$set(e.ruleForm,"telephone",t)},expression:"ruleForm.telephone"}})],1)],1),r("el-col",{attrs:{span:6}},[r("el-form-item",{attrs:{label:"职位",prop:"position"}},[r("el-input",{attrs:{disabled:"add"!==e.type&&"edit"!==e.type,placeholder:"职位",maxlength:"20"},model:{value:e.ruleForm.position,callback:function(t){e.$set(e.ruleForm,"position",t)},expression:"ruleForm.position"}})],1)],1),r("el-col",{attrs:{span:24}},[r("div",{staticClass:"supplierAdd-title"},[e._v("营业执照信息")])]),r("el-col",{attrs:{span:16}},[r("el-form-item",{attrs:{label:"供应商名称",prop:"name"}},[r("el-input",{attrs:{disabled:"add"!==e.type&&"edit"!==e.type,placeholder:"供应商名称",maxlength:"50"},model:{value:e.ruleForm.name,callback:function(t){e.$set(e.ruleForm,"name",t)},expression:"ruleForm.name"}})],1)],1),""===e.ruleForm.supplier_img&&("add"===e.type||"edit"==e.type)||"view"==e.type?r("el-col",{attrs:{span:8}},[r("el-form-item",{attrs:{label:"统一社会信用代码",prop:"registercode","label-width":"140px"}},[r("el-input",{attrs:{disabled:"view"==e.type,placeholder:"统一社会信用代码",maxlength:"18"},model:{value:e.ruleForm.registercode,callback:function(t){e.$set(e.ruleForm,"registercode",t)},expression:"ruleForm.registercode"}})],1)],1):e._e(),""===e.ruleForm.supplier_img&&("add"===e.type||"edit"==e.type)||"view"==e.type?r("el-col",{attrs:{span:8}},[r("el-form-item",{attrs:{label:"公司类型",prop:"nature"}},[r("search-company-type",{attrs:{value:e.ruleForm.nature,disabled:"view"==e.type,size:"small",isDetail:!1,placeholder:"公司类型"},on:{searchChange:e.type_search_change}})],1)],1):e._e(),""===e.ruleForm.supplier_img&&("add"===e.type||"edit"==e.type)||"view"==e.type?r("el-col",{attrs:{span:8}},[r("el-form-item",{attrs:{label:"法人代表",prop:"legaler"}},[r("el-input",{attrs:{disabled:"view"==e.type,placeholder:"法人代表",maxlength:"20"},model:{value:e.ruleForm.legaler,callback:function(t){e.$set(e.ruleForm,"legaler",t)},expression:"ruleForm.legaler"}})],1)],1):e._e(),""===e.ruleForm.supplier_img&&("add"===e.type||"edit"==e.type)||"view"==e.type?r("el-col",{attrs:{span:8}},[r("el-form-item",{attrs:{label:"成立日期",prop:"registertime"}},[r("el-input",{attrs:{disabled:"view"==e.type,placeholder:"成立日期",maxlength:"50"},model:{value:e.ruleForm.registertime,callback:function(t){e.$set(e.ruleForm,"registertime",t)},expression:"ruleForm.registertime"}})],1)],1):e._e(),""===e.ruleForm.supplier_img&&("add"===e.type||"edit"==e.type)||"view"==e.type?r("el-col",{attrs:{span:24}},[r("el-form-item",{attrs:{label:"详细地址",prop:"addr"}},[r("el-input",{attrs:{disabled:"view"==e.type,placeholder:"详细地址",maxlength:"200"},model:{value:e.ruleForm.addr,callback:function(t){e.$set(e.ruleForm,"addr",t)},expression:"ruleForm.addr"}})],1)],1):e._e(),""===e.ruleForm.supplier_img&&("add"===e.type||"edit"==e.type)||"view"==e.type?r("el-col",{attrs:{span:24}},[r("el-form-item",{attrs:{label:"运营范围",prop:"scope"}},[r("el-input",{attrs:{autosize:{minRows:6,maxRows:6},type:"textarea",disabled:"view"==e.type,placeholder:"运营范围",maxlength:"5000","show-word-limit":""},model:{value:e.ruleForm.scope,callback:function(t){e.$set(e.ruleForm,"scope",t)},expression:"ruleForm.scope"}})],1)],1):e._e(),"add"===e.type||"edit"===e.type?r("el-col",{staticStyle:{"text-align":"right"},attrs:{span:24}},[r("el-button",{attrs:{type:"primary",size:"small"},on:{click:e.submitForm}},[e._v("保 存 ")])],1):e._e()],1)],1)}),[],!1,null,"ff63bc50",null);t.default=r.exports},"69de":function(e,t,r){},"6a22":function(e,t,r){"use strict";r("f246")},"6a5d":function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=r("ade3"),s=r("5530"),i=(r("96cf"),r("7db0"),r("d3b7"),r("d81d"),r("159b"),r("b0c0"),r("a9e3"),r("f5ed")),o=r("9f53"),l=r("11f6"),c=r("2f62"),u=[{prop:"projectNo",label:"项目单号",fixed:"left",width:"170px"},{prop:"project_name",label:"项目名称","min-width":"120px"},{prop:"status",label:"状态",_slot_:"status",width:"120px"},{prop:"khNo",label:"客户公司编码",width:"125px"},{prop:"khName",label:"客户公司名称","min-width":"158px"},{prop:"platform_name",label:"平台名称",width:"100px"},{prop:"budget_total",label:"项目总预算",width:"130px"},{prop:"company",label:"业务公司","min-width":"130px"},{prop:"creater",label:"申请人",width:"60px"},{prop:"addtime",label:"创建时间",width:"140px"},{prop:"",label:"操作",fixed:"right",_noset_:!0,width:"50px",_slot_:"operation"}];i={name:"project",mixins:[i.a,o.a],computed:Object(s.a)(Object(s.a)({},Object(c.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"project"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),data:function(){var e={select:"1",input:"",addShowModel:!1,addModelId:"",addIsDetail:!1,customerCode:[],sitem:null,statusOptions:[{id:"1",label:"待商品反馈"},{id:"2",label:"待客户选择商品"},{id:"3",label:"待项目方案制定"},{id:"4",label:"待方案选择"},{id:"5",label:"项目待下单"},{id:"6",label:"项目已结束"}],loading:!0,showModel:!1,isDetail:!1,modelId:0,parmValue:{start:"",end:"",page:1,size:15,khNo:"",status:"",project_name:"",low:"",up:""},tableData:[],passwordModel:!1,passwordModelId:0,isPasswordDetail:!1};return Object(n.a)(e,"tableData",[]),Object(n.a)(e,"table",{stripe:!0,border:!0,_defaultHeader_:["setcol"]}),Object(n.a)(e,"pageInfo",{size:15,curr:1,total:0}),Object(n.a)(e,"columns",u),e},mounted:function(){this.searchList()},methods:{timeReturned:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(""!==e.startTime?t.parmValue.start=e.startTime:t.parmValue.start="",""!==e.endTime?t.parmValue.end=e.endTime:t.parmValue.end="",""!==t.parmValue.start&&""!==t.parmValue.end)return t.parmValue.page=1,r.next=6,t.searchList();r.next=6;break;case 6:case"end":return r.stop()}}),r)})))()},restSearch:function(){this.pageInfo={size:15,curr:1,total:0},this.select="1",this.input="",this.customerCode=[],this.parmValue={start:"",end:"",page:1,size:15,khNo:"",status:"",project_name:"",low:"",up:""},this.searchList()},customerChange:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return e&&e.id?(t.customerCode=[e.code],t.parmValue.khNo=e.code):(t.customerCode=[],t.parmValue.khNo=""),t.pageInfo.curr=1,t.parmValue.page=1,r.next=5,t.searchList();case 5:case"end":return r.stop()}}),r)})))()},numReturned:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){var a,n;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a=e.lower,n=e.online,t.parmValue.low=a,t.parmValue.up=n,t.pageInfo.curr=1,t.parmValue.page=1,r.next=7,t.searchList();case 7:case"end":return r.stop()}}),r)})))()},addModal:function(e,t){this.addShowModel=!0,this.addModelId=e,this.addIsDetail=t},deleteById:function(e,t){var r=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,r.$confirm("确定要删除?",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(a.a)(regeneratorRuntime.mark((function t(){var a,n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a={id:e},t.next=3,l.a.delete(a);case 3:if(!(n=t.sent)||0!==n.code){t.next=9;break}r.$notify.success({title:"删除成功",message:""}),r.searchList(),t.next=15;break;case 9:if(n&&100<=n.code&&n.code<=104)return t.next=12,r.logout();t.next=14;break;case 12:t.next=15;break;case 14:r.$message.warning(n.message);case 15:case"end":return t.stop()}}),t)})))).catch((function(){}));case 2:case"end":return t.stop()}}),t)})))()},searchList:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(""!==e.parmValue.start&&""===e.parmValue.end||""===e.parmValue.start&&""!==e.parmValue.end)return e.$message.warning("时间区间不完整!"),t.abrupt("return");t.next=3;break;case 3:return e.loading=!0,t.next=6,l.a.list(e.parmValue);case 6:if(!(r=t.sent)||0!==r.code||!r.data){t.next=13;break}e.tableData=r.data.list,e.tableData.map((function(t){return t.sale_price=e.setNum(t.sale_price),t.sale_fee=e.setNum(t.sale_fee),t.class_cat="",t.can&&0<t.can.length&&t.can.forEach((function(e,r){t.class_cat+=0===r?e.name:"/"+e.name})),t})),e.pageInfo.total=Number(r.data.count),t.next=20;break;case 13:if(r&&100<=r.code&&r.code<=104)return t.next=16,e.logout();t.next=18;break;case 16:t.next=20;break;case 18:e.tableData=[],e.pageInfo.total=0;case 20:e.loading=!1;case 21:case"end":return t.stop()}}),t)})))()}}},r("0829"),o=r("2877"),s=Object(o.a)(i,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"project pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?r("div",[r("ex-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{table:e.table,data:e.tableData,columns:e.columns,page:e.pageInfo,size:e.size},on:{"page-curr-change":e.handlePageChange,"page-size-change":e.handleSizeChange,"screen-reset":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()},"screen-submit":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},scopedSlots:e._u([{key:"table-header",fn:function(t){return[r("div",{staticStyle:{width:"100%"}},[r("el-row",{staticStyle:{padding:"0 0 0 80px"}},[r("el-col",{attrs:{span:24}},[r("el-col",{staticStyle:{width:"140px"},attrs:{span:4}},[r("el-select",{staticStyle:{width:"100%"},attrs:{size:e.searchSize,filterable:"",clearable:"",placeholder:"项目状态"},on:{change:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.parmValue.status,callback:function(t){e.$set(e.parmValue,"status",t)},expression:"parmValue.status"}},e._l(e.statusOptions,(function(e){return r("el-option",{key:"project"+e.id,attrs:{label:e.label,value:e.id}})})),1)],1),r("el-col",{staticStyle:{width:"303px",padding:"0 0 0 10px"},attrs:{span:6}},[r("period-date-picker",{attrs:{start:e.parmValue.start,end:e.parmValue.end,type:1,width:"135px",size:e.searchSize},on:{timeReturned:function(t){return e.timeReturned(t)}}})],1),r("el-col",{staticStyle:{width:"303px",padding:"0 0 0 10px"},attrs:{span:6}},[r("number-range",{attrs:{lower:e.parmValue.low,online:e.parmValue.up,type:1,width:"135px",title:"总预算",size:e.searchSize},on:{timeReturned:function(t){return e.numReturned(t)}}})],1),r("el-col",{staticStyle:{width:"66px",float:"right"},attrs:{span:3}},[r("el-button",{staticStyle:{float:"right","margin-left":"5px"},attrs:{size:e.searchSize,type:"primary"},on:{click:e.searchList}},[e._v(" 刷新 ")])],1),r("el-col",{staticStyle:{width:"66px",float:"right"},attrs:{span:4}},[r("el-button",{staticClass:"fr",attrs:{type:"warning",size:e.searchSize},on:{click:e.restSearch}},[e._v(" 重置 ")])],1)],1)],1),r("el-row",{staticStyle:{padding:"10px 0 0 0"}},[r("el-col",{attrs:{span:24}},[r("el-col",{staticStyle:{width:"365px"},attrs:{span:4}},[r("search-customer",{attrs:{value:e.customerCode,size:e.searchSize,placeholder:"客户公司名称"},on:{searchChange:e.customerChange}})],1),r("el-col",{staticStyle:{width:"350px",padding:"0 0 0 10px"},attrs:{span:4}},[r("el-input",{attrs:{placeholder:"项目名称",size:e.searchSize,maxlength:"100"},on:{blur:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.parmValue.project_name,callback:function(t){e.$set(e.parmValue,"project_name",t)},expression:"parmValue.project_name"}})],1),e.powers.some((function(e){return"003"==e}))?r("el-col",{staticClass:"fr",staticStyle:{width:"66px",padding:"0 0 0 10px"},attrs:{span:3}},[r("el-button",{staticStyle:{float:"right"},attrs:{size:e.searchSize,type:"success"},on:{click:function(t){return e.routeGoto("projectDetail",{id:"add",type:"add"})}}},[e._v(" 添加 ")])],1):e._e()],1)],1)],1)]}},{key:"status",fn:function(t){var a=t.scope;return[r("el-tag",{attrs:{size:e.tablebtnSize},domProps:{textContent:e._s((e.statusOptions.find((function(e){return e.id==a.row.status}))||{}).label||"--")}})]}},{key:"operation",fn:function(t){var a=t.scope;return[e.powers.some((function(e){return"007"==e}))?r("el-tooltip",{attrs:{effect:"dark",content:"详情",placement:"top"}},[r("i",{staticClass:"el-icon-view tb-icon",on:{click:function(t){return e.routeGoto("projectDetail",{id:a.row.projectNo,type:"view"})}}})]):e._e()]}}],null,!1,2578142699)})],1):r("div",[r("no-auth")],1)])}),[],!1,null,"5d2d53c2",null);t.default=s.exports},"6ac1":function(e,t,r){},"6aee":function(e,t,r){"use strict";r.r(t),r("7db0"),r("d3b7");var a=r("9cc0"),n=r("387e");a={name:"goldPrice",components:{priceList:a.default,priceRecord:n.default},computed:{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"goldPrice"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}},data:function(){return{activeName:"first"}}},n=r("2877"),r=Object(n.a)(a,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("div",{staticClass:"goldPrice pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?t("el-row",{staticStyle:{padding:"10px 0 0 0"}},[t("el-tabs",{model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[t("el-tab-pane",{attrs:{label:"当前金价",name:"first"}},[t("price-list")],1),t("el-tab-pane",{attrs:{label:"修改记录",name:"second"}},[t("price-record")],1)],1)],1):t("no-auth")],1)}),[],!1,null,"54b43e85",null);t.default=r.exports},"6b0b":function(e,t,r){"use strict";r.d(t,"b",(function(){return a})),r.d(t,"a",(function(){return n}));var a=[{name:"调拨流程",type:"DBD",toRouter:"/stock/allotDetail",to:"id",isok:!0},{name:"盘点流程",type:"PDD",toRouter:"/stock/checkDetail",to:"id",isok:!0},{name:"采购单流程",type:"CGD",toRouter:"/purchaseIn/purchaseOrderDetail",to:"code",isok:!0},{name:"采购入库单流程",type:"RKD",toRouter:"/purchaseIn/wsmInOrderDetail",to:"code",isok:!0},{name:"采购单退货流程",type:"CGTHD",toRouter:"/purchaseIn/purchaseReturnDetail",to:"code"},{name:"采购工差单流程",type:"CGGCD",toRouter:"/purchaseIn/purchaseDiffOrderDetail",to:"id"},{name:"商品成本流程",type:"SPCB",toRouter:"/goodStore/goodsCostDetail",to:"code"},{name:"商品上线流程",type:"SPSX",toRouter:"/goodStore/goodsOnlineDetail",to:"code"},{name:"活动流程",type:"HD",toRouter:"/goodStore/activeDetail",to:"code"},{name:"离职交接流程",type:"LZJJ",toRouter:"/interest/handoverDetail",to:"id"},{name:"项目流程",type:"PRO",toRouter:"/sellOut/projectDetail",to:"code"},{name:"咨询单流程",type:"ZXD",toRouter:"/sellOut/zixunOrderDetail",to:"code",isok:!1},{name:"议价单流程",type:"YJD",toRouter:"/sellOut/bargainListDetail",to:"code"},{name:"备库申请流程",type:"BHD",toRouter:"/sellOut/stockApplyDetail",to:"id",isok:!0},{name:"销售订单流程",type:"XSQRD",toRouter:"/sellOut/salesOrderDetail",to:"id"},{name:"发货申请单流程",type:"CKD",toRouter:"/sellOut/sellOutOrderDetail",to:"code"},{name:"销售售后申请单流程",type:"SHD",toRouter:"/sellOut/sellAfterApplyDetail",to:"code",isok:!0},{name:"销售售后退货流程",type:"CKTHD",toRouter:"/sellOut/returnOrderDetail",to:"code",isok:!0},{name:"销售退货流程",type:"QRTHD",toRouter:"/sellOut/sellReturnDetail",to:"code",isok:!0},{name:"销售工差单流程",type:"ZXGCD",toRouter:"/sellOut/zxDiffOrderDetail",to:"id"}],n=[{prop:"order_code",label:"业务编号"},{prop:"process_name",label:"流程名称"},{prop:"status_name",label:"流程名称"},{prop:"apply_name",label:"申请人"},{prop:"action_name",label:"操作人"},{prop:"addtime",label:"申请时间"},{prop:"",label:"操作",fixed:"right",_noset_:!0,_slot_:"operation",width:"50"}]},"6b81":function(e,t,r){"use strict";r.d(t,"b",(function(){return a})),r.d(t,"c",(function(){return n})),r.d(t,"d",(function(){return s})),r.d(t,"e",(function(){return i})),r.d(t,"f",(function(){return o})),r.d(t,"g",(function(){return l})),r.d(t,"h",(function(){return c})),r.d(t,"i",(function(){return u})),r.d(t,"a",(function(){return d})),r.d(t,"j",(function(){return p}));var a=[{id:"0",name:"否"},{id:"1",name:"是"}],n=[{id:"0",name:"非泰康"},{id:"1",name:"泰康"}],s=[{id:"0",name:"无销售权限"},{id:"1",name:"有销售权限"}],i=[{id:"0",name:"非库存品"},{id:"1",name:"库存品"}],o=[{id:"0",name:"否"},{id:"1",name:"是"}],l=[{id:"1",name:"全国"},{id:"2",name:"全国除偏远"}],c=[{id:"0",name:"否"},{id:"1",name:"是"}],u=[{id:"1",name:"待完善成本"},{id:"2",name:"待产品审核"},{id:"3",name:"待财务定价"},{id:"4",name:"待财务审核定价"},{id:"5",name:"待上线"},{id:"6",name:"上线成功"},{id:"7",name:"审核失败"},{id:"8",name:"已下线"}],d=[{prop:"skuCode",label:"编号",fixed:"left",width:"160px"},{prop:"good_thumb_img",label:"图片",_slot_:"good_thumb_img",width:"45px"},{prop:"good_name",label:"名称","min-width":"160px"},{prop:"platform_name",label:"平台名称",width:"100px"},{prop:"status",label:"状态",_slot_:"status",width:"118px"},{prop:"cat_name",label:"分类",width:"118px"},{prop:"good_type",label:"是否定制",_slot_:"good_type",width:"70px"},{prop:"brand_name",label:"品牌"},{prop:"companyNo",label:"业务公司编号",width:"160px"},{prop:"company",label:"业务公司名称",width:"150px"},{prop:"plat_code",label:"平台商品编号",width:"150px"},{prop:"purchase",label:"采购员",width:"70px"},{prop:"creater",label:"创建人",width:"70px"},{prop:"addtime",label:"创建时间",width:"140px"},{prop:"",label:"操作",fixed:"right",_noset_:!0,width:"110px",_slot_:"operation"}],p={platform:[{required:!0,message:"请选择所属平台",trigger:"change"}],online_reason:[{required:!0,message:"上线原因不能为空",trigger:"blur"}],online_remark:[{required:!0,message:"上线备注不能为空",trigger:"blur"}]}},"6bd2":function(e,t,r){"use strict";t.a=[{code:"001",name:"列表"},{code:"002",name:"重置密码"},{code:"003",name:"添加"},{code:"004",name:"启/禁用"},{code:"005",name:"修改"},{code:"006",name:"删除"},{code:"007",name:"详情"},{code:"008",name:"提交"},{code:"009",name:"上/下架"},{code:"010",name:"复制"},{code:"011",name:"设为/取消负责人"},{code:"013",name:"模板下载"},{code:"012",name:"发起流程"},{code:"014",name:"取消流程"},{code:"015",name:"作废数据"},{code:"016",name:"离职交接审核"},{code:"017",name:"盘点结果上传"},{code:"018",name:"盘点结果审核"},{code:"019",name:"盘点商品导出"},{code:"020",name:"入库方审核"},{code:"021",name:"出库方发货"},{code:"022",name:"入库方验货"},{code:"023",name:"入库方验货审核"},{code:"024",name:"采购反馈"},{code:"025",name:"反馈认同"},{code:"026",name:"同意发货"},{code:"027",name:"取消发货"},{code:"028",name:"新建入库单"},{code:"029",name:"备库入库验收"},{code:"030",name:"备库入库验收审核"},{code:"031",name:"入库审核"},{code:"032",name:"退货物流"},{code:"033",name:"采购反馈物流费"},{code:"034",name:"售后业务审核"},{code:"035",name:"供货商反馈"},{code:"036",name:"采购审核"},{code:"037",name:"通知库管岗"},{code:"038",name:"通知采购部门"},{code:"039",name:"通知财务部门"},{code:"040",name:"物流反馈"},{code:"041",name:"退货业务审核"},{code:"042",name:"退货验收审核"},{code:"043",name:"业务审核"},{code:"044",name:"通知业务部门"},{code:"045",name:"填写物流"},{code:"046",name:"供应商反馈"},{code:"047",name:"退货验收记录"},{code:"048",name:"添加发货申请单"},{code:"049",name:"添加售后申请"},{code:"050",name:"添加售后退货"},{code:"051",name:"添加未发货退货"},{code:"052",name:"客户验收"},{code:"053",name:"修改成本信息"},{code:"054",name:"修改基础信息"},{code:"055",name:"添加商品上线"},{code:"056",name:"产品部审批"},{code:"057",name:"采购部定价"},{code:"058",name:"财务定价"},{code:"059",name:"财务审核定价"},{code:"060",name:"设置毛利率"},{code:"061",name:"查看毛利率"},{code:"062",name:"添加线上商品"},{code:"063",name:"分享项目"},{code:"064",name:"制定项目方案"},{code:"065",name:"项目下单"},{code:"066",name:"招标任务停止"},{code:"067",name:"招标任务启动"},{code:"068",name:"发起议价"},{code:"069",name:"选定商品"},{code:"070",name:"非项目咨询单下单"},{code:"071",name:"操作上线"},{code:"072",name:"查看支持品牌列表"},{code:"073",name:"添加支持品牌"},{code:"074",name:"查看支持品牌"},{code:"075",name:"编辑支持品牌"},{code:"076",name:"启/禁用支持品牌"},{code:"077",name:"删除支持品牌"},{code:"078",name:"再次发起审核流程"},{code:"079",name:"下线商品"},{code:"080",name:"库管发货"},{code:"081",name:"添加发货申请"},{code:"082",name:"添加工差"},{code:"083",name:"设置退货仓库"}]},"6d2f":function(e,t,r){"use strict";r("700c")},"6d88":function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=(r("d3b7"),r("159b"),r("d81d"),r("b0c0"),r("e9c4"),r("c740"),r("a434"),r("96cf"),r("1fd2")),s=r("9f53"),i=r("61f7");s={name:"Account",props:["showModel","id","isDetail"],mixins:[s.a],data:function(){return{roleList:[],loading:!1,title:"添加账号",organizeList:[],showModelThis:this.showModel,coptions:[],is_mainoptions:[],isIndeterminate:!1,ruleForm:{username:"",name:"",mobile:"",email:"",role_id:"",is_all:"",status:"1",itemid:[],companyArr:[],is_main:"",platform:[]},platformoptions:[],rulesThis:this.rules,rules:{name:[{required:!0,validator:function(e,t,r){""===t?r(new Error("真实姓名不能为空!")):t.length<2||12<t.length||!Object(i.c)(t)||Object(i.d)(t)?r(new Error("真实姓名规则为2~12位汉字!")):r()},trigger:"blur"}],username:[{required:!0,validator:function(e,t,r){""===t?r(new Error("账号不能为空!")):t.length<6||18<t.length||Object(i.k)(t)||Object(i.r)(t)||!Object(i.b)(t)?r(new Error("账号规则为6~18位数字与字母组合!")):r()},trigger:"blur"}],mobile:[{required:!0,validator:function(e,t,r){""===t?r(new Error("手机号不能为空!")):Object(i.g)(t)?r():r(new Error("手机号格式不正确!"))},trigger:"blur"}],email:[{required:!1,validator:function(e,t,r){""===t||Object(i.s)(t)?r():r(new Error("邮箱格式不正确!"))},trigger:"blur"}],role_id:[{required:!0,message:"请选择角色",trigger:"change"}],itemid:[{type:"array",required:!0,message:"请选择所在部门",trigger:"change"}],companyArr:[{type:"array",required:!0,message:"至少选择一个业务公司",trigger:"change"}],platform:[{type:"array",required:!0,message:"至少选择一个业务平台",trigger:"change"}]}}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis:function(e){e||this.$emit("cancel")}},mounted:function(){},methods:{itemidChange:function(e){this.ruleForm.itemid=e,this.$refs.ruleForm.validateField("itemid")},initForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,t.next=3,e.getClist();case 3:return t.next=5,e.getRole();case 5:return t.next=7,e.getWorkList();case 7:return t.next=9,e.getTerraceList();case 9:if("add"===e.id)return t.next=12,e.resetForm();t.next=14;break;case 12:t.next=16;break;case 14:return t.next=16,e.initData();case 16:"add"===e.id?(e.title="添加账号",e.rulesThis=e.rules):e.isDetail?(e.title="账号详情",e.rulesThis={}):(e.title="修改账号",e.rulesThis=e.rules),e.loading=!1;case 18:case"end":return t.stop()}}),t)})))()},getClist:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r,a,s;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.organizeList=[],t.next=3,n.a.getClist({size:1e4});case 3:if(s=t.sent,r=s.code,a=s.data,s=s.message,0!==r){t.next=12;break}e.organizeList=a,e.recursion(e.organizeList),t.next=18;break;case 12:if(100<=r&&r<=104)return t.next=15,e.logout();t.next=17;break;case 15:t.next=18;break;case 17:e.$message.warning(s);case 18:case"end":return t.stop()}}),t)})))()},getWorkList:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r,a,s,i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.coptions=[],e.is_mainoptions=[],t.next=4,n.a.getWorkList({size:1e4,page:1});case 4:if(s=t.sent,r=s.code,a=s.data,s=s.message,0!==r){t.next=14;break}i=a.list,a.count,e.coptions=i,e.coptions.forEach((function(t){e.is_mainoptions.push({id:t.id,status:t.status})})),t.next=20;break;case 14:if(100<=r&&r<=104)return t.next=17,e.logout();t.next=19;break;case 17:t.next=20;break;case 19:e.$message.warning(s);case 20:case"end":return t.stop()}}),t)})))()},getTerraceList:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r,a,s,i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.platformoptions=[],t.next=3,n.a.getTerraceList({size:1e4,page:1});case 3:if(s=t.sent,r=s.code,a=s.data,s=s.message,0!==r){t.next=12;break}i=a.list,a.count,e.platformoptions=i,t.next=18;break;case 12:if(100<=r&&r<=104)return t.next=15,e.logout();t.next=17;break;case 15:t.next=18;break;case 17:e.$message.warning(s);case 18:case"end":return t.stop()}}),t)})))()},handleCheckAllChange:function(e){var t=this;e=e?this.coptions.length:0;this.isIndeterminate=0<e&&e<this.coptions.length,this.ruleForm.companyArr=[],0!==e&&this.coptions.forEach((function(e){"1"===e.status&&t.ruleForm.companyArr.push(e.id)}))},handleCheckedCitiesChange:function(e){e=e.length,this.ruleForm.is_all=e===this.coptions.length,this.isIndeterminate=0<e&&e<this.coptions.length},recursion:function(e){var t=this;e.map((function(e){return e&&Array.isArray(e.child)&&(e.value=e.id+"",e.label=e.name,0===e.child.length?delete e.child:t.recursion(e.child)),e}))},getRole:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r={status:"",level:"",role_name:""},t.next=3,n.a.getRole(r);case 3:(r=t.sent)&&0===r.code&&r.data&&(e.roleList=r.data,e.roleList.map((function(e){return e.id+="",e.status+="",e})));case 5:case"end":return t.stop()}}),t)})))()},initData:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r,a,s;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n.a.detail({id:e.id});case 2:if(s=t.sent,r=s.code,a=s.data,s=s.message,0===r)return t.next=9,e.resetForm(a);t.next=11;break;case 9:t.next=17;break;case 11:if(100<=r&&r<=104)return t.next=14,e.logout();t.next=16;break;case 14:t.next=17;break;case 16:e.$message.warning(s);case 17:case"end":return t.stop()}}),t)})))()},resetForm:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t.$nextTick((function(){var r,a,n,s,i,o,l,c,u,d,p,m,f,h,g;t.$refs.ruleForm&&(t.$refs.ruleForm.resetFields(),t.$refs.ruleForm.clearValidate(),e?(r=e.username,a=e.nickname,n=e.mobile,s=e.email,i=e.roleid,o=e.status,l=e.depart,c=e.business,u=e.platform,d=[],l&&0<l.length&&l.forEach((function(e){d.push(e.depart_code)})),p=c&&0<c.length?JSON.parse(JSON.stringify(c)):[],(c&&0<c.length?JSON.parse(JSON.stringify(c)):[]).forEach((function(e,r){-1===t.coptions.findIndex((function(t){return t.id==e.businessid}))&&p.splice(r,1)})),m=[],f="",p&&0<p.length&&p.forEach((function(e){m.push(e.businessid),"1"===e.is_main&&(f=e.businessid)})),h=u&&0<u.length?JSON.parse(JSON.stringify(u)):[],(u&&0<u.length?JSON.parse(JSON.stringify(u)):[]).forEach((function(e,r){-1===t.platformoptions.findIndex((function(t){return t.id==e.id}))&&h.splice(r,1)})),g=[],h&&0<h.length&&h.forEach((function(e){g.push(e.id)})),t.ruleForm={username:r||"",name:a||"",mobile:n||"",email:s||"",role_id:i||"",status:o||"",itemid:d,is_main:f||"",companyArr:m||[],platform:g||[],is_all:m.length===t.coptions.length},t.isIndeterminate=0<m.length&&m.length<t.coptions.length):(t.ruleForm={username:"",name:"",mobile:"",email:"",role_id:"",is_all:"",status:"1",itemid:[],companyArr:[],is_main:"",platform:[]},t.handleCheckAllChange()))}));case 2:case"end":return r.stop()}}),r)})))()},submitForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.ruleForm.validate(function(){var t=Object(a.a)(regeneratorRuntime.mark((function t(r){var a,s,i,o,l,c,u,d,p,m,f,h,g,b,_;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r){t.next=37;break}if(e.loading=!0,m=JSON.parse(JSON.stringify(e.ruleForm)),a=m.username,s=m.name,i=m.mobile,o=m.email,l=m.role_id,c=m.status,u=m.itemid,d=m.is_main,p=m.is_all,_=m.companyArr,m=m.platform,f=[],h=!0,_.forEach((function(t){f.push({businessid:t,is_main:d===t?"1":"0"}),-1!==e.coptions.findIndex((function(e){return e.id===t&&"0"===e.status}))&&(h=!1)})),h){t.next=9;break}return e.$message.warning("不能选择禁用的业务企业!"),e.loading=!0,t.abrupt("return");case 9:if(g={id:e.id,username:a||"",nickname:s||"",mobile:i||"",email:o||"",role:l||"",status:c||"",itemid:u||[],is_all:p?"1":"0",platform:m||[],companyArr:f},b={},"add"===e.id)return delete g.id,t.next=15,n.a.add(g);t.next=18;break;case 15:b=t.sent,t.next=21;break;case 18:return t.next=20,n.a.update(g);case 20:b=t.sent;case 21:if(e.loading=!1,!b||0!==b.code){t.next=29;break}_="add"===e.id?"添加成功":"修改成功",e.$notify.success({title:_,message:""}),e.showModelThis=!1,e.$emit("refresh"),t.next=35;break;case 29:if(b&&100<=b.code&&b.code<=104)return t.next=32,e.logout();t.next=34;break;case 32:t.next=35;break;case 34:e.$message.warning(b.message);case 35:t.next=39;break;case 37:return t.abrupt("return",!1);case 39:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()}}},r("18af"),r=r("2877"),r=Object(r.a)(s,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:e.title,center:!0,align:"left",top:"10vh",width:"750px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)"},on:{"update:visible":function(t){e.showModelThis=t},close:function(t){e.showModelThis=!1}}},[r("el-card",{staticStyle:{"margin-top":"-20px"}},[r("el-row",{attrs:{gutter:10}},[r("el-col",{attrs:{span:24}},[r("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",size:"mini",rules:e.rulesThis,"label-width":"80px"}},[r("el-row",[r("el-col",{attrs:{span:12}},["add"===e.id||e.isDetail?r("el-form-item",{attrs:{label:"账号",prop:"username"}},[r("el-input",{attrs:{maxlength:"100",disabled:e.isDetail},model:{value:e.ruleForm.username,callback:function(t){e.$set(e.ruleForm,"username",t)},expression:"ruleForm.username"}})],1):e._e()],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"真实姓名",prop:"name"}},[r("el-input",{attrs:{placeholder:"真实姓名",disabled:e.isDetail,maxlength:"100"},model:{value:e.ruleForm.name,callback:function(t){e.$set(e.ruleForm,"name",t)},expression:"ruleForm.name"}})],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"手机号",prop:"mobile"}},[r("el-input",{attrs:{placeholder:"手机号",maxlength:"11",disabled:e.isDetail},model:{value:e.ruleForm.mobile,callback:function(t){e.$set(e.ruleForm,"mobile",t)},expression:"ruleForm.mobile"}})],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"所在部门",prop:"itemid"}},[r("all-organize",{attrs:{value:e.ruleForm.itemid,"is-detail":e.isDetail,disabled:e.isDetail,multiple:!0,size:"mini",checkStrictly:!0,placeholder:"所在部门"},on:{searchChange:e.itemidChange}})],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"邮箱",prop:"email"}},[r("el-input",{attrs:{placeholder:"邮箱",maxlength:"100",disabled:e.isDetail},model:{value:e.ruleForm.email,callback:function(t){e.$set(e.ruleForm,"email",t)},expression:"ruleForm.email"}})],1)],1),r("el-col",{attrs:{span:24}},[r("el-form-item",{attrs:{label:"角色",prop:"role_id"}},[r("el-radio-group",{attrs:{size:"mini",disabled:e.isDetail},model:{value:e.ruleForm.role_id,callback:function(t){e.$set(e.ruleForm,"role_id",t)},expression:"ruleForm.role_id"}},e._l(e.roleList,(function(t){return r("el-radio",{key:t.id,attrs:{label:t.id,disabled:"1"!==t.status}},[e._v(e._s(t.role_name))])})),1)],1)],1),r("el-col",{attrs:{span:24}},[r("el-form-item",{attrs:{label:"业务公司",prop:"companyArr"}},[r("el-row",[r("el-col",{attrs:{span:20}},[r("el-checkbox",{attrs:{size:"mini",indeterminate:e.isIndeterminate},on:{change:e.handleCheckAllChange},model:{value:e.ruleForm.is_all,callback:function(t){e.$set(e.ruleForm,"is_all",t)},expression:"ruleForm.is_all"}},[e._v("全选")]),r("el-checkbox-group",{staticClass:"“fl",attrs:{size:"mini"},on:{change:e.handleCheckedCitiesChange},model:{value:e.ruleForm.companyArr,callback:function(t){e.$set(e.ruleForm,"companyArr",t)},expression:"ruleForm.companyArr"}},e._l(e.coptions,(function(t,a){return r("el-checkbox",{key:t.id+a,staticStyle:{display:"block",margin:"0","box-sizing":"border-box"},attrs:{label:t.id,disabled:"0"===t.status}},[e._v(e._s(t.company))])})),1)],1),r("el-col",{staticStyle:{padding:"33px 0 0 0"},attrs:{span:4}},[r("el-radio-group",{model:{value:e.ruleForm.is_main,callback:function(t){e.$set(e.ruleForm,"is_main",t)},expression:"ruleForm.is_main"}},e._l(e.is_mainoptions,(function(t,a){return r("el-radio",{key:t.id+a,staticStyle:{display:"block",margin:"0",padding:"6px 0 0 0",height:"28px","box-sizing":"border-box"},attrs:{disabled:"0"===t.status,label:t.id}},[e._v("设为默认")])})),1)],1)],1)],1)],1),r("el-col",{attrs:{span:24}},[r("el-form-item",{attrs:{label:"业务平台",prop:"platform"}},[r("el-checkbox-group",{staticClass:"“fl",attrs:{size:"mini"},model:{value:e.ruleForm.platform,callback:function(t){e.$set(e.ruleForm,"platform",t)},expression:"ruleForm.platform"}},e._l(e.platformoptions,(function(t,a){return r("el-checkbox",{key:t.id+a,staticStyle:{display:"block",margin:"0","box-sizing":"border-box"},attrs:{label:t.id}},[e._v(e._s(t.platform_name))])})),1)],1)],1)],1)],1)],1),r("el-col",{staticClass:"bottom-btn",attrs:{span:6}},[e.isDetail?e._e():r("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.submitForm}},[e._v("保 存 ")]),r("el-button",{attrs:{size:"mini"},on:{click:function(t){e.showModelThis=!1}}},[e._v(e._s(e.isDetail?"关 闭":"取 消"))])],1)],1)],1)],1)}),[],!1,null,"77be3663",null);t.default=r.exports},"6d94":function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=(r("96cf"),r("7db0"),r("d3b7"),r("f5ed")),s=r("9f53"),i=r("d513"),o=r("b5d3");n={name:"handoverDetail",mixins:[n.a,s.a],components:{addEditForm:i.default},computed:{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"handoverDetail"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}},watch:{dialogFormVisible:function(e){e&&this.initForm()}},data:function(){return{dialogFormVisible:!1,activeTabs:"1",activeNames:["0","1","2","3"],statusOptions:[],ruleForm:{remark:""},rulesThis:this.rules,rules:{remark:[{required:!0,message:"审核备注不能为空!",trigger:"blur"}]},queryId:"",sitem:null,newTime:""}},mounted:function(){this.queryId=this.$route.query.id,this.initData()},methods:{getNewTime:function(){this.newTime=(new Date).valueOf()},initData:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r,a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,o.a.detail({id:e.queryId});case 2:if(!(r=t.sent)||0!==r.code||!r.data){t.next=11;break}e.sitem=r.data,a=e.sitem.status,e.status=a,"2"===e.status?e.statusOptions=[{value:"0",label:"待发起审核流程"},{value:"1",label:"待离职交接审核"},{value:"2",label:"审核不通过"}]:e.statusOptions=[{value:"0",label:"待发起审核流程"},{value:"1",label:"待离职交接审核"},{value:"3",label:"待系统更新数据"},{value:"4",label:"离职交接已成功"}],e.getNewTime(),t.next=17;break;case 11:if(r&&100<=r.code&&r.code<=104)return t.next=14,e.logout();t.next=16;break;case 14:t.next=17;break;case 16:e.$message.warning(r.message);case 17:case"end":return t.stop()}}),t)})))()},initForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$nextTick((function(){e.rulesThis=e.rules,e.$refs.ruleForm&&(e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),e.ruleForm={remark:""})}));case 2:case"end":return t.stop()}}),t)})))()},statusConfirm:function(e,t){var r=this;return Object(a.a)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r.$confirm("确定要".concat(t,"?"),{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(a.a)(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if("-1"===e)return a.next=3,r.deleteById(t);a.next=5;break;case 3:a.next=7;break;case 5:return a.next=7,r.setStatus(e,t);case 7:case"end":return a.stop()}}),a)})))).catch((function(){}));case 2:case"end":return n.stop()}}),n)})))()},deleteById:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){var a;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,o.a.delete({id:t.queryId});case 2:if(!(a=r.sent)||0!==a.code){r.next=8;break}t.$notify.success({title:e+"成功!",message:""}),t.routeGoto("handover",{}),r.next=14;break;case 8:if(a&&100<=a.code&&a.code<=104)return r.next=11,t.logout();r.next=13;break;case 11:r.next=14;break;case 13:t.$message.warning(a.message);case 14:case"end":return r.stop()}}),r)})))()},setStatus:function(e,t,r){var n=this;return Object(a.a)(regeneratorRuntime.mark((function a(){var s,i;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return s={id:n.queryId,remark:r||"",status:e},a.next=3,o.a.status(s);case 3:if(i=a.sent,n.dialogFormVisible=!1,n.loading=!1,!i||0!==i.code){a.next=11;break}n.$notify.success({title:t+"成功!",message:""}),n.initData(),a.next=17;break;case 11:if(i&&100<=i.code&&i.code<=104)return a.next=14,n.logout();a.next=16;break;case 14:a.next=17;break;case 16:n.$message.warning(i.message);case 17:case"end":return a.stop()}}),a)})))()},submitForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.ruleForm.validate(function(){var t=Object(a.a)(regeneratorRuntime.mark((function t(r){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r){t.next=4;break}e.setStatus("2","审核提交",e.ruleForm.remark),t.next=6;break;case 4:return t.abrupt("return",!1);case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()}}},s=r("2877"),i=Object(s.a)(n,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("div",{staticClass:"handoverDetail pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?t("div",[t("div",{staticClass:"detail-page-title"},[t("span",[e._v("离职交接记录编号:")]),e.sitem?t("span",[e._v(e._s(e.queryId))]):e._e(),"0"!==e.status&&"1"!==e.status||!e.powers.some((function(e){return"015"==e}))?e._e():t("el-button",{staticClass:"fr",attrs:{type:"danger",size:"mini",plain:""},on:{click:function(t){return e.statusConfirm("-1","作废该条信息")}}},[e._v("作废该条信息")]),"1"===e.status&&e.powers.some((function(e){return"014"==e}))?t("el-button",{staticClass:"fr",attrs:{plain:"",size:"mini"},on:{click:function(t){return e.statusConfirm("0","取消审核流程")}}},[e._v("取消审核流程")]):e._e()],1),t("el-tabs",{model:{value:e.activeTabs,callback:function(t){e.activeTabs=t},expression:"activeTabs"}},[t("el-tab-pane",{attrs:{label:"业务详情",name:"1"}},[t("el-collapse",{staticStyle:{margin:"-18px 0 0 0"},model:{value:e.activeNames,callback:function(t){e.activeNames=t},expression:"activeNames"}},[t("el-collapse-item",{attrs:{title:"离职交接详情",name:"0"}},[""!==e.newTime?t("add-edit-form",{attrs:{id:e.queryId,newTime:e.newTime,sitem:e.sitem},on:{refresh:e.initData}}):e._e()],1),"0"===e.status&&e.powers.some((function(e){return"012"==e}))?t("el-collapse-item",{attrs:{title:"发起审核流程",name:"1"}},[t("div",{staticStyle:{height:"50px",padding:"0 0px 20px 0"}},[t("el-button",{staticClass:"fr",attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.statusConfirm("1","发起审核流程")}}},[e._v("发起审核流程 ")])],1)]):e._e(),"1"===e.status&&e.powers.some((function(e){return"016"==e}))?t("el-collapse-item",{attrs:{title:"离职交接审核",name:"2"}},[t("div",{staticStyle:{height:"50px",padding:"0 0px 20px 0"}},[t("el-button",{staticClass:"fr",staticStyle:{margin:"0 0 0 12px"},attrs:{type:"danger",size:"mini",plain:""},on:{click:function(t){e.dialogFormVisible=!0}}},[e._v("审核不通过")]),t("el-button",{staticClass:"fr",attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.statusConfirm("3","通过审核")}}},[e._v("通过审核")]),t("el-dialog",{attrs:{title:"审核备注",visible:e.dialogFormVisible,center:!0,align:"left",top:"22vh",width:"600px","close-on-click-modal":!1,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)"},on:{"update:visible":function(t){e.dialogFormVisible=t},close:function(t){e.dialogFormVisible=!1}}},[t("el-card",{staticStyle:{"margin-top":"-20px"}},[t("el-form",{ref:"ruleForm",attrs:{model:e.ruleForm,"status-icon":"",rules:e.rulesThis}},[t("el-form-item",{attrs:{label:"审核备注",prop:"remark"}},[t("el-input",{attrs:{type:"textarea",autosize:{minRows:4,maxRows:4},placeholder:"审核备注",maxlength:"250","show-word-limit":""},model:{value:e.ruleForm.remark,callback:function(t){e.$set(e.ruleForm,"remark",t)},expression:"ruleForm.remark"}})],1)],1),t("div",{staticClass:"clear"},[t("el-button",{staticClass:"fr",staticStyle:{margin:"0 0 0 12px"},attrs:{type:"primary",size:"mini"},on:{click:e.submitForm}},[e._v("确 定")]),t("el-button",{staticClass:"fr",attrs:{size:"mini"},on:{click:function(t){e.dialogFormVisible=!1}}},[e._v("取 消")])],1)],1)],1)],1)]):e._e()],1)],1),t("el-tab-pane",{attrs:{label:"审批记录",name:"2"}},[""!==e.newTime?t("process-time-line",{attrs:{newTime:e.newTime,type:"LZJJ",orderCode:e.queryId}}):e._e()],1)],1)],1):t("div",[t("no-auth")],1)])}),[],!1,null,null,null);t.default=i.exports},"6dad":function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=(r("96cf"),r("7db0"),r("d3b7"),r("e9c4"),r("25f0"),r("5bbe")),s=r("9f53"),i=r("61f7");s={name:"wsmInOrderAdd",props:["id","sitem","newTime","modelSitem"],mixins:[s.a],computed:{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"wsmInOrderDetail"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}},data:function(){return{loading:!0,status:"",showModel:!1,modelAllnum:"",modelitem:null,modelId:"",ruleForm:{return_num:"",post_company:[],post_code:""},rules:{return_num:{required:!0,validator:function(e,t,r){""===t?r(new Error("不能为空!")):Object(i.k)(t)?r():r(new Error("仅支持整数!"))},trigger:"blur"},post_company:{required:!0,message:"请选择物流公司",trigger:"change"},post_code:{required:!0,validator:function(e,t,r){""===t?r(new Error("不能为空!")):Object(i.b)(t)?r():r(new Error("仅支持字母和数字!"))},trigger:"blur"}}}},watch:{newTime:function(e){e&&this.initForm()}},mounted:function(){this.initForm()},methods:{initForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,t.next=3,e.resetForm();case 3:e.loading=!1;case 4:case"end":return t.stop()}}),t)})))()},errorModel:function(e){var t;e&&(-1===(t=e.index)?this.tableForm.error_list.push(e):this.tableForm.error_list[t]=e)},resetForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$nextTick((function(){var t,r,a,n,s;e.$refs.ruleForm&&(e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),t=(r=e.sitem).wsm_in_code,r=r.status,a=(s=e.sitem.return).return_num,n=s.post_code,s=s.post_company,e.status=r,e.ruleForm={wsm_in_code:t||"",return_num:a||"0",post_company:s?[s]:[],post_code:n||""})}));case 2:case"end":return t.stop()}}),t)})))()},handleCompany:function(e){var t=e.code;e=e.label;this.ruleForm.post_company=t?[e]:[],this.$refs.ruleForm.validateField("post_company")},submitForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.ruleForm.validate(function(){var t=Object(a.a)(regeneratorRuntime.mark((function t(r){var a,s;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r)return e.loading=!0,(a=JSON.parse(JSON.stringify(e.ruleForm))).post_company=a.post_company.toString(),delete a.return_num,t.next=7,n.a.returnsend(a);t.next=22;break;case 7:if(s=t.sent,e.loading=!1,!s||0!==s.code){t.next=14;break}e.$notify.success({title:"提交成功",message:""}),e.$emit("refresh"),t.next=20;break;case 14:if(s&&100<=s.code&&s.code<=104)return t.next=17,e.logout();t.next=19;break;case 17:t.next=20;break;case 19:e.$message.warning(s.message);case 20:t.next=24;break;case 22:return t.abrupt("return",!1);case 24:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()}}},r("8d0a"),r=r("2877"),r=Object(r.a)(s,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,rules:e.rules,"status-icon":"",size:"mini","label-width":"90px"}},[t("el-row",[t("el-col",{attrs:{span:6}},[t("el-form-item",{attrs:{label:"退货总数",prop:"wsm_num"}},[t("el-input",{attrs:{placeholder:"发货总数",disabled:"",maxlength:"100"},model:{value:e.ruleForm.return_num,callback:function(t){e.$set(e.ruleForm,"return_num",t)},expression:"ruleForm.return_num"}})],1)],1),t("el-col",{attrs:{span:6}},[t("el-form-item",{attrs:{label:"物流公司",prop:"post_company"}},[t("search-express",{attrs:{disabled:!("5"===e.status&&e.powers.some((function(e){return"032"==e}))),value:e.ruleForm.post_company,placeholder:"物流公司",names:"",size:"mini","is-detail":!1},on:{searchChange:e.handleCompany}})],1)],1),t("el-col",{attrs:{span:10}},[t("el-form-item",{attrs:{label:"物流单号",prop:"post_code"}},[t("el-input",{attrs:{placeholder:"物流单号",disabled:!("5"===e.status&&e.powers.some((function(e){return"032"==e}))),maxlength:"100"},model:{value:e.ruleForm.post_code,callback:function(t){e.$set(e.ruleForm,"post_code",t)},expression:"ruleForm.post_code"}})],1)],1),t("el-col",{staticStyle:{"text-align":"right"},attrs:{span:2}},["5"===e.status&&e.powers.some((function(e){return"032"==e}))?t("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.submitForm}},[e._v("保 存 ")]):e._e()],1)],1)],1)}),[],!1,null,"858b32e0",null);t.default=r.exports},"6db9":function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=(r("d3b7"),r("159b"),r("b0c0"),r("a434"),r("e9c4"),r("c740"),r("96cf"),r("9f53")),s=r("fee1"),i=r("9d37");n={name:"goodsBack",props:["showModel","isDetail","id","organ","kh"],mixins:[n.a],components:{contactModal:i.default},data:function(){return{findex:-1,sitem:null,editModel:!1,loading:!1,title:"添加企业/组织",showModelThis:this.showModel,ruleForm:{},rulesThis:this.rules,organName:"",tableData:[],old_tableData:[],rules:{region:[{required:!0,message:"请选择组织/企业",trigger:"change"}],name:[{required:!0,message:"组织名称不能为空",trigger:"blur"}],companyName:[{required:!1,message:"企业名称不能为空",trigger:"blur"}]}}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis:function(e){e||this.$emit("cancel")}},methods:{initForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,e.tableData=[],e.old_tableData=[],e.organName="",t.next=6,e.resetForm();case 6:if("003"!==e.isDetail){t.next=11;break}e.title="添加企业/组织",e.rulesThis=e.rules,t.next=22;break;case 11:if("005"===e.isDetail)return e.title="修改企业/组织",e.rulesThis=e.rules,t.next=16,e.initData();t.next=18;break;case 16:t.next=22;break;case 18:return e.title="查看企业/组织",e.rulesThis={},t.next=22,e.initData();case 22:e.setOrganName(),e.loading=!1;case 24:case"end":return t.stop()}}),t)})))()},setOrganName:function(){var e=this,t=(this.organName="",this.organ&&1<this.organ.length?this.organ.forEach((function(t){"0"!==t.id&&(e.organName+=t.name,e.ruleForm.pid=t.id)})):this.organName="",this.ruleForm.companyName),r=0==t.indexOf(this.organName);r&&(this.ruleForm.companyName=t.substring(this.organName.length,this.ruleForm.companyName.length))},openEdit:function(e,t){this.findex=e,this.sitem=t,this.editModel=!0},openDelete:function(e){this.tableData.splice(e,1)},resetForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$nextTick((function(){e.$refs.ruleForm&&(e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),e.ruleForm={id:"",pid:"0",region:"0",name:"",companyName:""})}));case 2:case"end":return t.stop()}}),t)})))()},initData:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r,a,n,i,o,l,c,u,d;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r={},e.kh+""=="0")return t.next=4,s.a.zdetail({id:e.id});t.next=7;break;case 4:r=t.sent,t.next=10;break;case 7:return t.next=9,s.a.qdetail({id:e.id});case 9:r=t.sent;case 10:if(a=(n=r).code,d=n.data,n=n.message,0!==a){t.next=21;break}i=d.pid,o=d.name,l=d.pname,c=d.companyName,u=d.parent,d=d.member,e.organName=l,e.ruleForm={id:e.id,region:e.kh+""||"0",pid:u||i||"0",name:o||"",companyName:c||""},d&&0<d.length?(e.old_tableData=JSON.parse(JSON.stringify(d)),e.tableData=JSON.parse(JSON.stringify(d))):(e.old_tableData=[],e.tableData=[]),e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),t.next=27;break;case 21:if(100<=a&&a<=104)return t.next=24,e.logout();t.next=26;break;case 24:t.next=27;break;case 26:e.$message.warning(n);case 27:case"end":return t.stop()}}),t)})))()},contactRefresh:function(e){this.editModel=!1;var t=e.index,r=e.contactor,a=e.commobile,n=e.position,s=e.comdepart,i=e.wxaccount,o=e.qqaccount,l=e.email,c=e.id,u=e.is_del;t+""=="-1"?this.tableData.push(e):(e=parseInt(t),this.tableData[e].contactor=r||"",this.tableData[e].commobile=a||"",this.tableData[e].position=n||"",this.tableData[e].comdepart=s||"",this.tableData[e].wxaccount=i||"",this.tableData[e].qqaccount=o||"",this.tableData[e].email=l||"",this.tableData[e].id=c||"",this.tableData[e].is_del=u||"0")},submitForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.ruleForm.validate(function(){var t=Object(a.a)(regeneratorRuntime.mark((function t(r){var a,n,i,o,l,c,u;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r){t.next=49;break}if(e.loading=!0,i=e.ruleForm,a=i.id,n=i.pid,l=i.name,i=i.companyName,o={},"0"!==e.ruleForm.region){t.next=18;break}if(l={id:a,pid:n,name:l},"003"===e.isDetail)return delete l.id,t.next=10,s.a.zadd(l);t.next=13;break;case 10:o=t.sent,t.next=16;break;case 13:return t.next=15,s.a.zupdate(l);case 15:o=t.sent;case 16:t.next=33;break;case 18:if(0===e.tableData.length)return e.$message.warning("至少填写一个联系人!"),e.loading=!1,t.abrupt("return");t.next=22;break;case 22:if(c={id:a,companyName:e.organName+i,parent:n,customer_member:e.getCustomer()},"003"===e.isDetail)return delete c.id,t.next=27,s.a.qadd(c);t.next=30;break;case 27:o=t.sent,t.next=33;break;case 30:return t.next=32,s.a.qupdate(c);case 32:o=t.sent;case 33:if(e.loading=!1,!o||0!==o.code){t.next=41;break}u="003"===e.isDetail?"添加成功!":"修改成功!",e.$notify.success({title:u,message:""}),e.showModelThis=!1,e.$emit("refresh"),t.next=47;break;case 41:if(o&&100<=o.code&&o.code<=104)return t.next=44,e.logout();t.next=46;break;case 44:t.next=47;break;case 46:e.$message.warning(o.message);case 47:t.next=51;break;case 49:return t.abrupt("return",!1);case 51:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()},getCustomer:function(){var e=JSON.parse(JSON.stringify(this.tableData)),t=JSON.parse(JSON.stringify(this.old_tableData)),r=[],a=(e.forEach((function(e){""!==e.id&&r.push(e)})),[]),n=[];return t.forEach((function(e,t){var n=null,s=r.findIndex((function(t){return e.id===t.id}));-1===s?(n=JSON.parse(JSON.stringify(e))).is_del="1":n=JSON.parse(JSON.stringify(r[s])),a.push(n)})),e.forEach((function(e){""===e.id&&(e.is_del="0",a.push(e))})),a.forEach((function(e){e={id:e.id,contactor:e.contactor,position:e.position,commobile:e.commobile,comdepart:e.comdepart,wxaccount:e.wxaccount,qqaccount:e.qqaccount,email:e.email,is_del:e.is_del||"0",status:e.status||"1"},n.push(e)})),n}}},r("27fe"),i=r("2877"),r=Object(i.a)(n,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:e.title,center:!0,align:"left",top:"12vh",width:"900px","close-on-click-modal":!1,visible:e.showModelThis,"append-to-body":"","element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)"},on:{close:function(t){e.showModelThis=!1},"update:visible":function(t){e.showModelThis=t}}},[r("el-card",{staticStyle:{"margin-top":"-20px"}},[r("el-row",{attrs:{gutter:10}},[r("el-col",{attrs:{span:24}},[r("el-form",{ref:"ruleForm",attrs:{"label-position":"right","label-width":"110px",model:e.ruleForm,rules:e.rulesThis}},[r("el-row",[r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"组织/企业:",prop:"region"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{disabled:"003"!==e.isDetail,placeholder:"请选择组织/企业"},model:{value:e.ruleForm.region,callback:function(t){e.$set(e.ruleForm,"region",t)},expression:"ruleForm.region"}},[r("el-option",{attrs:{label:"组织",value:"0"}}),r("el-option",{attrs:{label:"企业",value:"1"}})],1)],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"上级组织",prop:"pid"}},[r("el-input",{attrs:{disabled:"",placeholder:e.organName?"上级组织":"暂无上级组织",maxlength:"100"},model:{value:e.organName,callback:function(t){e.organName=t},expression:"organName"}})],1)],1),"0"===e.ruleForm.region?r("el-col",{attrs:{span:24}},[r("el-form-item",{attrs:{label:"组织名称:",prop:"name"}},[r("el-input",{attrs:{disabled:"007"==e.isDetail,placeholder:"组织名称",maxlength:"50"},model:{value:e.ruleForm.name,callback:function(t){e.$set(e.ruleForm,"name",t)},expression:"ruleForm.name"}})],1)],1):e._e(),"1"===e.ruleForm.region?r("el-col",{attrs:{span:24}},[r("el-form-item",{attrs:{label:"企业名称:",prop:"companyName"}},[r("el-input",{attrs:{disabled:"007"==e.isDetail,placeholder:"企业名称",maxlength:"50"},model:{value:e.ruleForm.companyName,callback:function(t){e.$set(e.ruleForm,"companyName",t)},expression:"ruleForm.companyName"}},[e.organName?r("template",{slot:"prepend"},[e._v(e._s(e.organName))]):e._e()],2)],1)],1):e._e(),"1"===e.ruleForm.region?r("el-col",{staticStyle:{padding:"0 0 16px 0"},attrs:{span:24}},[r("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData,size:"mini",border:""}},[r("el-table-column",{attrs:{prop:"contactor",label:"联系人","show-overflow-tooltip":""}}),r("el-table-column",{attrs:{prop:"commobile",label:"联系电话","show-overflow-tooltip":""}}),r("el-table-column",{attrs:{prop:"position",label:"职位","show-overflow-tooltip":""}}),r("el-table-column",{attrs:{prop:"comdepart",label:"所在部门","show-overflow-tooltip":""}}),r("el-table-column",{attrs:{prop:"wxaccount",label:"微信号","show-overflow-tooltip":""}}),r("el-table-column",{attrs:{prop:"qqaccount",label:"qq号","show-overflow-tooltip":""}}),r("el-table-column",{attrs:{prop:"email",label:"邮箱","show-overflow-tooltip":""}}),"007"!==e.isDetail?r("el-table-column",{attrs:{fixed:"right"},scopedSlots:e._u([{key:"header",fn:function(t){return[r("span",[e._v("操作")]),r("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"添加",placement:"top"}},[r("i",{staticClass:"el-icon-circle-plus-outline fr",staticStyle:{"font-size":"18px","margin-top":"2px"},on:{click:function(t){return e.openEdit("-1",{})}}})])]}},{key:"default",fn:function(t){return[r("el-tooltip",{attrs:{effect:"dark",content:"修改",placement:"top"}},[r("i",{staticClass:"el-icon-edit tb-icon",on:{click:function(r){return e.openEdit(t.$index,t.row)}}})]),r("el-tooltip",{attrs:{effect:"dark",content:"禁/启用",placement:"top"}},[r("i",{staticClass:"el-icon-delete tb-icon",on:{click:function(r){return e.openDelete(t.$index)}}})])]}}],null,!1,2879581341)}):e._e()],1),r("contact-modal",{attrs:{showModel:e.editModel,index:e.findex,sitem:e.sitem},on:{cancel:function(t){e.editModel=!1},refresh:e.contactRefresh}})],1):e._e(),r("el-col",{staticStyle:{"text-align":"right"},attrs:{span:24}},["007"!==e.isDetail?r("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("保 存 ")]):e._e(),r("el-button",{on:{click:function(t){e.showModelThis=!1}}},[e._v(e._s("007"==e.isDetail?"关 闭":"取 消"))])],1)],1)],1)],1)],1)],1)],1)}),[],!1,null,"0a5d7c20",null);t.default=r.exports},"6e90":function(e,t,r){"use strict";r("89dd")},"6eba":function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=r("5530"),s=(r("96cf"),r("7db0"),r("d3b7"),r("e9c4"),r("159b"),r("b0c0"),r("ac1f"),r("1276"),r("da35")),i=r("9f53"),o=r("2f62"),l=[{prop:"good_name",label:"商品名称",_slot_:"good_name",span:24},{prop:"company",label:"业务企业名称",_slot_:"company"},{prop:"good_info_img",_slot_:"good_info_img",label:"详情图"},{prop:"cat",label:"分类",span:8},{prop:"creater",label:"申请人",span:4},{prop:"platform_name",label:"上线平台",span:6},{prop:"online_time",label:"上线时间",span:6},{prop:"online_reason",label:"上线原因"},{prop:"online_remark",label:"上线备注",span:12},{prop:"brand_name",label:"品牌",span:6},{prop:"exclusive",label:"专属类型",_slot_:"exclusive",span:6},{prop:"weight",label:"商品总克重",append:"g",span:6},{prop:"packing_list",label:"包装清单",span:6},{prop:"packing_way",label:"包装方式",span:6},{prop:"packing_spec",label:"装箱规格",span:6},{prop:"packing_weight",label:"装箱重量",append:"g",span:6},{prop:"packing_size",label:"装箱尺寸",span:6},{prop:"origin_place_cn",label:"产地",span:8},{prop:"unit",label:"单位",span:4},{prop:"good_bar",label:"商品条形码",span:6},{prop:"supply_area",label:"供货区域",_slot_:"supply_area",span:6},{prop:"delivery_place_cn",label:"发货地",span:8},{prop:"is_stock",label:"是否库存品",_slot_:"is_stock",span:4},{prop:"exam_status",label:"状态",_slot_:"exam_status",span:6},{prop:"good_type",label:"是否定制",_slot_:"good_type",span:6},{prop:"addtime",label:"创建时间",span:8},{prop:"tax",label:"税点",append:"%",span:4},{prop:"delivery_day",label:"物流时间",append:"天",span:4},{prop:"lead_time",label:"供货周期",append:"天",span:4},{prop:"sample_day",label:"调样周期",append:"天",span:4},{prop:"noble",label:"贵金属信息",_slot_:"noble",span:24},{prop:"good_remark",label:"商品备注",span:24},{prop:"after_sales",label:"售后说明",span:24},{prop:"craft_desc",label:"工艺说明",span:24}],c=[{prop:"supplierName",label:"供应商名称",_slot_:"supplierName",span:12},{prop:"cgd_gold_price",label:"供应商采购金价",append:"元/g",span:6},{prop:"is_auth",label:"供应商权限",_slot_:"is_auth",span:6},{prop:"is_step",label:"启用成本阶梯",_slot_:"is_step",span:4},{prop:"demo_fee",label:"打样费(元)",span:5},{prop:"open_fee",label:"开模费(元/件)",span:5},{prop:"sample_fee",label:"调样费(元)",span:5},{prop:"market_price",label:"市场价(元)",span:5},{prop:"nakelist",label:"采购起订量",_slot_:"nakelist",span:24}],u=[{prop:"ladderlist",label:"销售起订量",_slot_:"ladderlist",span:24}],d=r("ba30"),p=r("b747"),m=r("40e8"),f=r("6b81");i={name:"goodsOnlineDetail",mixins:[i.a],components:{onlineExamForm:d.default,fixedPriceForm:p.default,handleOnlineForm:m.default},computed:Object(n.a)(Object(n.a)({},Object(o.b)(["tablebtnSize","searchSize","size","private_field"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"goodsOnlineDetail"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),data:function(){return{public_listCol:l,purchase_listCol:c,sale_listCol:u,options1:f.b,options2:f.c,options3:f.d,options4:f.e,options5:f.f,options6:f.g,options7:f.h,options8:f.i,ladderlist:[],nakelist:[],spuCode:"",size:"small",activeTabs:"1",activeNames:["0","1","2","3","4","5","6","7"],newTime:"",loading:!1,queryType:"",queryId:"",status:"",sitem:null}},mounted:function(){this.initForm()},methods:{initForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r,a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a=e.$route.query,r=a.id,a=a.type,e.queryId=r,e.queryType=a,e.activeTabs="add"===a?"0":"1",e.loading=!0,"add"!==e.queryType){t.next=10;break}e.sitem={},e.getNewTime(),t.next=12;break;case 10:return t.next=12,e.initData();case 12:e.loading=!1;case 13:case"end":return t.stop()}}),t)})))()},examForm:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){var a;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t.loading){r.next=5;break}return a={skuCode:t.queryId,exam_status:"1"===e.state?"3":"7",online_time:e.online_time,remark:e.remark},r.next=5,t.setstatus("提交产品部门审核结果",a);case 5:case"end":return r.stop()}}),r)})))()},examForm2:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){var a;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t.loading){r.next=5;break}return a={skuCode:t.queryId,exam_status:"1"===e.state?"5":"7",remark:e.remark},r.next=5,t.setstatus("提交财务审核结果",a);case 5:case"end":return r.stop()}}),r)})))()},examForm3:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){var a;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t.loading){r.next=5;break}return a={skuCode:t.queryId,exam_status:"6",plat_code:e.plat_code,remark:e.remark||""},r.next=5,t.setstatus("提交商品上线结果",a);case 5:case"end":return r.stop()}}),r)})))()},setstatus:function(e,t){var r=this;return Object(a.a)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r.$confirm("确定要".concat(e,"?"),{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(a.a)(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,s.a.status(t);case 2:if((a=e.sent)&&0===a.code)return r.$notify.success({title:"提交成功!",message:""}),e.next=7,r.initForm();e.next=9;break;case 7:e.next=15;break;case 9:if(a&&100<=a.code&&a.code<=104)return e.next=12,r.logout();e.next=14;break;case 12:e.next=15;break;case 14:r.$message.warning(a.message);case 15:case"end":return e.stop()}}),e)})))).catch((function(){}));case 2:case"end":return n.stop()}}),n)})))()},refresh:function(e){e=e.spuCode,e={id:"add"===this.queryType?e:this.queryId,type:"view"},this.routeReGoto("goodsOnlineDetail",e)},initData:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r,a,n,i,o,l,c,u;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,t.next=3,s.a.detail({skuCode:e.queryId});case 3:if(c=t.sent,r=c.code,a=c.message,c=c.data,e.loading=!1,0!==r){t.next=23;break}e.sitem=JSON.parse(JSON.stringify(c)),c=e.sitem,n=c.exam_status,i=c.cat_info,o=c.ladderlist,l=c.nakelist,c=c.spuCode,e.spuCode=c,e.ladderlist=JSON.parse(JSON.stringify(o)),e.nakelist=JSON.parse(JSON.stringify(l)),u="",i&&0<i.length&&i.forEach((function(e,t){u+=0===t?e.name:"/"+e.name})),e.sitem.cat=u,e.sitem.good_info_img=e.sitem.good_info_img.split(","),e.status=n,e.getNewTime(),t.next=29;break;case 23:if(100<=r&&r<=104)return t.next=26,e.logout();t.next=28;break;case 26:t.next=29;break;case 28:e.$message.warning(a);case 29:case"end":return t.stop()}}),t)})))()},getNewTime:function(){this.newTime=(new Date).valueOf()}}},r("337b"),d=r("2877"),p=Object(d.a)(i,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"goodsOnlineDetail"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"007"==e}))?r("div",{staticClass:"goodsOnlineDetail-main"},[r("el-tabs",{model:{value:e.activeTabs,callback:function(t){e.activeTabs=t},expression:"activeTabs"}},["add"!==e.queryType?r("el-tab-pane",{attrs:{label:"商品上线详情",name:"1"}},[r("el-collapse",{staticStyle:{margin:"-18px 0 0 0"},model:{value:e.activeNames,callback:function(t){e.activeNames=t},expression:"activeNames"}},[r("el-collapse-item",{attrs:{title:"商品上线详情",name:"0"}},[""!==e.newTime?r("show-data-table",{attrs:{newTime:e.newTime,sitem:e.sitem,columns:e.public_listCol}},[r("template",{slot:"good_name"},[e.sitem.good_thumb_img?r("img",{directives:[{name:"viewer",rawName:"v-viewer"}],staticClass:"fl",staticStyle:{width:"23px",height:"23px",margin:"0 5px 0 0"},attrs:{src:e.sitem.good_thumb_img,alt:""}}):e._e(),r("span",[e._v(e._s(e.sitem.good_name))]),e._l(e.sitem.speclist,(function(t,a){return r("span",{key:t.spec_id+a},[r("span",0!==a?[e._v("-")]:[e._v("_")]),r("span",[e._v(e._s(t.spec_name)+"["+e._s(t.spec_value)+"]")])])})),r("el-popover",{attrs:{placement:"top",width:"300",trigger:"hover"}},[r("ul",[r("li",[r("span",[e._v("上线商品编号:")]),r("span",[e._v(e._s(e.sitem.skuCode))])]),""!==e.newTime&&e.private_field&&0<e.private_field.length&&e.private_field.some((function(e){return"1"==e}))?r("li",[r("span",[e._v("成本商品编号:")]),r("span",[e._v(e._s(e.sitem.spuCode))])]):e._e(),r("li",[r("span",[e._v("平台商品编码:")]),r("span",[e._v(e._s(e.sitem.plat_code))])])]),r("i",{staticClass:"el-icon-warning-outline fr",attrs:{slot:"reference"},slot:"reference"})])],2),r("template",{slot:"company"},[r("span",[e._v(e._s(e.sitem.company))]),r("el-popover",{attrs:{placement:"top",width:"300",trigger:"hover"}},[r("ul",[r("li",[r("span",[e._v("业务企业编号:")]),r("span",[e._v(e._s(e.sitem.companyNo))])])]),r("i",{staticClass:"el-icon-warning-outline fr",attrs:{slot:"reference"},slot:"reference"})])],1),r("template",{slot:"good_info_img"},e._l(e.sitem.good_info_img,(function(e,t){return r("img",{directives:[{name:"viewer",rawName:"v-viewer"}],key:e+t,staticClass:"fl",staticStyle:{width:"23px",height:"23px",margin:"0 5px 0 0"},attrs:{src:e}})})),0),r("template",{slot:"exclusive"},e._l(e.sitem.exclusive,(function(t,a){return r("span",{key:t.id},[0!==a?r("span",[e._v("/")]):e._e(),e._v(" "),r("span",[e._v(e._s(t.name))])])})),0),r("template",{slot:"supply_area"},[r("el-tag",{attrs:{size:"mini"},domProps:{textContent:e._s((e.options6.find((function(t){return t.id==e.sitem.supply_area}))||{}).name||"--")}})],1),r("template",{slot:"is_stock"},[r("el-tag",{attrs:{size:"mini"},domProps:{textContent:e._s((e.options4.find((function(t){return t.id==e.sitem.is_stock}))||{}).name||"--")}})],1),r("template",{slot:"exam_status"},[r("el-tag",{attrs:{size:"mini"},domProps:{textContent:e._s((e.options8.find((function(t){return t.id==e.sitem.exam_status}))||{}).name||"--")}})],1),r("template",{slot:"good_type"},[r("el-tag",{attrs:{size:"mini"},domProps:{textContent:e._s((e.options1.find((function(t){return t.id==e.sitem.good_type}))||{}).name||"--")}}),"1"===e.sitem.good_type?r("span",{staticStyle:{padding:"0 0 0 5px"}},[e._v(e._s(e.sitem.moq)+"起订/工期"+e._s(e.sitem.customized)+"天")]):e._e()],1),r("template",{slot:"noble"},[e.sitem.noble_metal?r("span",[e._v(e._s(e.sitem.noble_weight||"0")+"g-"+e._s(e.sitem.noble_name)+"-"+e._s(e.sitem.gold_price||"0")+"元/g-"+e._s("0"===e.sitem.is_gold_price?"不":"")+"启用实时金价-"+e._s("1"===e.sitem.is_diff?"有":"无")+"工差-"+e._s(e.sitem.config)+"-"+e._s(e.sitem.other_config))]):e._e()])],2):e._e(),""!==e.newTime&&e.private_field&&0<e.private_field.length&&e.private_field.some((function(e){return"1"==e}))?r("show-data-table",{attrs:{newTime:e.newTime,sitem:e.sitem,columns:e.purchase_listCol}},[r("template",{slot:"supplierName"},[r("span",[e._v(e._s(e.sitem.supplierName))]),r("el-popover",{attrs:{placement:"top",width:"300",trigger:"hover"}},[r("ul",[r("li",[r("span",[e._v("供应商编号:")]),r("span",[e._v(e._s(e.sitem.supplierNo))])])]),r("i",{staticClass:"el-icon-warning-outline fr",attrs:{slot:"reference"},slot:"reference"})])],1),r("template",{slot:"is_auth"},[r("el-tag",{attrs:{size:"mini"},domProps:{textContent:e._s((e.options3.find((function(t){return t.id==e.sitem.is_auth}))||{}).name||"--")}})],1),r("template",{slot:"is_step"},[r("el-tag",{attrs:{size:"mini"},domProps:{textContent:e._s((e.options7.find((function(t){return t.id==e.sitem.is_step}))||{}).name||"--")}})],1),r("template",{slot:"nakelist"},[e.nakelist?r("div",[r("el-table",{staticStyle:{width:"99%",margin:"10px 10px 10px 0"},attrs:{data:e.nakelist,size:"mini",border:"",stripe:""}},[r("el-table-column",{attrs:{prop:"min_num",label:"起订量(>=)"}}),r("el-table-column",{attrs:{prop:"nake_fee",label:"成本单价"}}),r("el-table-column",{attrs:{prop:"cost_fee",label:"工艺费"}}),r("el-table-column",{attrs:{prop:"delivery_fee",label:"物流费"}}),r("el-table-column",{attrs:{prop:"cert_fee",label:"证书费"}}),r("el-table-column",{attrs:{prop:"mark_fee",label:"加标费"}}),r("el-table-column",{attrs:{prop:"package_fee",label:"包装费"}}),r("el-table-column",{attrs:{prop:"other_fee",label:"其他费用"}}),r("el-table-column",{attrs:{prop:"nake_total",label:"成本合计"}})],1)],1):r("div",[e._v("--")])])],2):e._e(),""!==e.newTime&&e.private_field&&0<e.private_field.length&&e.private_field.some((function(e){return"2"==e}))&&e.ladderlist&&0<e.ladderlist.length?r("show-data-table",{attrs:{newTime:e.newTime,sitem:e.sitem,columns:e.sale_listCol}},[r("template",{slot:"ladderlist"},[r("el-table",{staticStyle:{width:"99%",margin:"10px 10px 10px 0"},attrs:{data:e.ladderlist,size:"mini",border:"",stripe:""}},[r("el-table-column",{attrs:{prop:"min_num",label:"起订量(>=)"}}),r("el-table-column",{attrs:{prop:"sale_price",label:"售价"}}),r("el-table-column",{attrs:{prop:"market_price",label:"市场价"}}),r("el-table-column",{attrs:{prop:"market_platform",label:"对比平台"}}),r("el-table-column",{attrs:{prop:"status",label:"状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s("1"===t.row.status?"启用":"禁用"))]}}],null,!1,3462811054)})],1)],1)],2):e._e()],1),"2"===e.status&&"view"==e.queryType&&e.powers.some((function(e){return"056"==e}))?r("el-collapse-item",{attrs:{title:"产品部门审批",name:"1"}},[""!==e.newTime?r("online-exam-form",{attrs:{newTime:e.newTime,time:e.sitem.online_time,disabled:!1,isMust:!1,statusList:[]},on:{searchChange:e.examForm}}):e._e()],1):e._e(),"3"===e.status&&"view"==e.queryType&&e.powers.some((function(e){return"058"==e}))?r("el-collapse-item",{attrs:{title:"财务定价",name:"2"}},[""!==e.newTime?r("fixed-price-form",{attrs:{newTime:e.newTime,id:e.queryId,spuCode:e.spuCode,sitem:e.sitem,disabled:!1,isMust:!1},on:{resSuccess:e.initForm}}):e._e()],1):e._e(),"4"===e.status&&"view"==e.queryType&&e.powers.some((function(e){return"059"==e}))?r("el-collapse-item",{attrs:{title:"财务审核定价",name:"3"}},[""!==e.newTime?r("exam-form",{attrs:{newTime:e.newTime,options8:e.options8,disabled:!1,isMust:!1},on:{searchChange:e.examForm2}}):e._e()],1):e._e(),"5"===e.status&&"view"==e.queryType&&e.powers.some((function(e){return"071"==e}))?r("el-collapse-item",{attrs:{title:"操作商品上线",name:"4"}},[""!==e.newTime?r("handle-online-form",{attrs:{newTime:e.newTime,options:[],code:e.sitem.plat_code,disabled:!1,isMust:!1},on:{resSuccess:e.examForm3}}):e._e()],1):e._e()],1)],1):e._e(),r("el-tab-pane",{attrs:{label:"审批记录",name:"2"}},[""!==e.newTime?r("process-time-line",{attrs:{newTime:e.newTime,type:"SPSX",orderCode:e.queryId}}):e._e()],1)],1)],1):r("div",[r("no-auth")],1)])}),[],!1,null,"30d6ec60",null);t.default=p.exports},"6ee8":function(e,t,r){"use strict";r("5ea3")},"6f53":function(e,t,r){function a(e){return function(t){for(var r,a=i(t),l=s(a),c=l.length,u=0,d=[];u<c;)r=l[u++],n&&!o.call(a,r)||d.push(e?[r,a[r]]:a[r]);return d}}var n=r("83ab"),s=r("df75"),i=r("fc6a"),o=r("d1e7").f;e.exports={entries:a(!0),values:a(!1)}},"6fca":function(e,t,r){},"700c":function(e,t,r){},"70bb":function(e,t,r){},"715a":function(e,t,r){"use strict";r("3ddb")},"71bd":function(e,t,r){},7270:function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=(r("96cf"),r("7db0"),r("d3b7"),r("e9c4"),r("25f0"),r("9f53")),s=r("3fca"),i=r("61f7");n={name:"allotFlow",mixins:[n.a],props:["id","sitem"],computed:{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"allotDetail"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}},data:function(){return{status:"",ruleForm:{post_name:[],post_code:"",post_fee:""},rules:{post_name:[{type:"array",required:!0,message:"请选择发货公司",trigger:"change"}],post_fee:[{required:!0,validator:function(e,t,r){""===t?r(new Error("物流费用不能为空!")):Object(i.l)(t)?r():r(new Error("物流费用仅支持整数及两位小数!"))},trigger:"blur"}],post_code:[{required:!0,trigger:"blur",validator:function(e,t,r){""===t?r(new Error("物流单号不能为空!")):Object(i.b)(t)?r():r(new Error("请输入正确的物流单号"))}}]}}},mounted:function(){this.resetForm()},methods:{resetForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$nextTick((function(){var t,r,a,n;e.$refs.ruleForm&&(e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),t=(n=e.sitem).post_code,r=n.post_fee,a=n.post_name,n=n.status,e.status=n,e.ruleForm={post_code:t,post_fee:r+"",post_name:a?[a]:[]})}));case 2:case"end":return t.stop()}}),t)})))()},submitForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.ruleForm.validate(function(){var t=Object(a.a)(regeneratorRuntime.mark((function t(r){var a,n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r)return e.loading=!0,(a=JSON.parse(JSON.stringify(e.ruleForm))).allot_code=e.sitem.allot_code,a.post_name=a.post_name.toString(),t.next=7,s.a.allotgetont(a);t.next=22;break;case 7:if(n=t.sent,e.loading=!1,!n||0!==n.code){t.next=14;break}e.showModelThis=!1,e.$emit("refresh"),t.next=20;break;case 14:if(n&&100<=n.code&&n.code<=104)return t.next=17,e.logout();t.next=19;break;case 17:t.next=20;break;case 19:e.$message.warning(n.message);case 20:t.next=24;break;case 22:return t.abrupt("return",!1);case 24:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()},handleCompany:function(e){this.ruleForm.post_name=e&&e.code?[e.label]:[],this.$refs.ruleForm.validateField("post_name")}}},r=r("2877"),r=Object(r.a)(n,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("el-form",{ref:"ruleForm",attrs:{model:e.ruleForm,rules:e.rules,"label-width":"90px"}},[t("el-row",[t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"物流公司",prop:"post_name"}},[t("search-express",{attrs:{value:e.ruleForm.post_name,placeholder:"请输入物流公司",names:"",disabled:!("2"==e.status&&e.powers.some((function(e){return"021"==e}))),"is-detail":!("2"==e.status&&e.powers.some((function(e){return"021"==e})))},on:{searchChange:e.handleCompany}})],1),t("el-form-item",{attrs:{label:"物流费用",prop:"post_fee"}},[t("el-input",{attrs:{type:"number",placeholder:"请输入物流费用",disabled:!("2"==e.status&&e.powers.some((function(e){return"021"==e})))},model:{value:e.ruleForm.post_fee,callback:function(t){e.$set(e.ruleForm,"post_fee",t)},expression:"ruleForm.post_fee"}},[t("template",{slot:"append"},[e._v("元")])],2)],1)],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"物流单号",prop:"post_code"}},[t("el-input",{attrs:{placeholder:"请输入物流单号",maxlength:"100",disabled:!("2"==e.status&&e.powers.some((function(e){return"021"==e}))),clearable:""},model:{value:e.ruleForm.post_code,callback:function(t){e.$set(e.ruleForm,"post_code",t)},expression:"ruleForm.post_code"}})],1),t("el-form-item",["2"==e.status&&e.powers.some((function(e){return"021"==e}))?t("el-button",{staticClass:"fr",attrs:{type:"primary",size:"medium"},on:{click:e.submitForm}},[e._v("保 存 ")]):e._e()],1)],1)],1)],1)}),[],!1,null,null,null);t.default=r.exports},7274:function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=r("5530"),s=(r("96cf"),r("7db0"),r("d3b7"),r("a9e3"),r("2f35")),i=r("9daa"),o=r("0ee5"),l=r("e66a"),c=r("f5ed"),u=r("2f62"),d=r("9f53");c={name:"unit",mixins:[c.a,d.a],components:{addEdit:s.default},computed:Object(n.a)(Object(n.a)({},Object(u.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"unit"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),data:function(){return{statusList:o.a,roleLevel:l.a,loading:!0,showModel:!1,modelId:"000",sitem:{},parmValue:{page:1,size:15,start:"",end:"",unit:"",status:"",creater:""},statusOptions:[{id:"0",label:"禁用"},{id:"1",label:"启用"}],tableData:[],table:{stripe:!0,border:!0,_defaultHeader_:["setcol"]},pageInfo:{size:15,curr:1,total:0},columns:[{prop:"id",label:"ID"},{prop:"unit",label:"单位名称"},{prop:"status",label:"状态",sortable:!0,_slot_:"status"},{prop:"creater",label:"创建人"},{prop:"addtime",label:"创建时间",sortable:!0},{prop:"",label:"操作",fixed:"right",_noset_:!0,_slot_:"operation"}]}},mounted:function(){this.searchList()},methods:{restSearch:function(){this.pageInfo={size:15,curr:1,total:0},this.parmValue={page:1,size:15,start:"",end:"",unit:"",status:"",creater:""},this.searchList()},openModal:function(e,t,r){"005"===t&&"1"===r?this.$message.warning("禁用后,才可以修改!"):(this.sitem=e,this.modelId=t,this.showModel=!0)},handleTime:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t.parmValue.start=e.startTime||"",t.parmValue.end=e.endTime||"",""!==t.parmValue.start&&""!==t.parmValue.end||""===t.parmValue.start&&""===t.parmValue.end)return t.pageInfo.curr=1,t.parmValue.page=1,r.next=7,t.searchList();r.next=7;break;case 7:case"end":return r.stop()}}),r)})))()},changeStatus:function(e,t){var r=this;return Object(a.a)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r.$confirm("确定要改为".concat("1"===t?"禁用":"启用","?"),{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(a.a)(regeneratorRuntime.mark((function a(){var n,s;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return r.loading=!0,n={id:e,status:"1"===t?"0":"1"},a.next=4,i.a.status(n);case 4:if((s=a.sent)&&0===s.code)return r.loading=!1,r.$notify.success({title:"状态修改成功!",message:""}),a.next=10,r.searchList();a.next=12;break;case 10:a.next=19;break;case 12:if(s&&100<=s.code&&s.code<=104)return a.next=15,r.logout();a.next=17;break;case 15:a.next=19;break;case 17:r.loading=!1,r.$message.warning(s.message);case 19:case"end":return a.stop()}}),a)})))).catch((function(){}));case 2:case"end":return n.stop()}}),n)})))()},deleteItem:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t.$confirm("确定要删除?",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(a.a)(regeneratorRuntime.mark((function r(){var a,n;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a={id:e},r.next=3,i.a.delete(a);case 3:if(!(n=r.sent)||0!==n.code){r.next=9;break}t.$notify.success({title:"删除成功",message:""}),t.searchList(),r.next=15;break;case 9:if(n&&100<=n.code&&n.code<=104)return r.next=12,t.logout();r.next=14;break;case 12:r.next=15;break;case 14:t.$message.warning(n.message);case 15:case"end":return r.stop()}}),r)})))).catch((function(){}));case 2:case"end":return r.stop()}}),r)})))()},searchList:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(""!==e.parmValue.start&&""===e.parmValue.end||""===e.parmValue.start&&""!==e.parmValue.end)return e.$message.warning("时间区间不完整!"),t.abrupt("return");t.next=3;break;case 3:return e.loading=!0,t.next=6,i.a.list(e.parmValue);case 6:if(!(r=t.sent)||0!==r.code||!r.data){t.next=12;break}e.tableData=r.data.list,e.pageInfo.total=Number(r.data.count),t.next=19;break;case 12:if(r&&100<=r.code&&r.code<=104)return t.next=15,e.logout();t.next=17;break;case 15:t.next=19;break;case 17:e.tableData=[],e.pageInfo.total=0;case 19:e.loading=!1;case 20:case"end":return t.stop()}}),t)})))()}}},d=r("2877"),s=Object(d.a)(c,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"unit pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?r("ex-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{table:e.table,data:e.tableData,columns:e.columns,page:e.pageInfo,size:e.size},on:{"page-curr-change":e.handlePageChange,"page-size-change":e.handleSizeChange,"screen-reset":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()},"screen-submit":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},scopedSlots:e._u([{key:"table-header",fn:function(t){return[r("div",{staticStyle:{width:"100%"}},[r("el-row",{staticStyle:{padding:"0 0 10px 80px"}},[r("el-col",{staticStyle:{width:"303px"},attrs:{span:6}},[r("period-date-picker",{attrs:{type:1,width:"135px",size:e.searchSize,start:e.parmValue.start,end:e.parmValue.end},on:{timeReturned:e.handleTime}})],1),r("el-col",{staticStyle:{width:"160px"},attrs:{span:4}},[r("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"",clearable:"",size:e.searchSize,placeholder:"单位状态"},on:{change:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.parmValue.status,callback:function(t){e.$set(e.parmValue,"status",t)},expression:"parmValue.status"}},e._l(e.statusList,(function(e){return r("el-option",{key:"status"+e.code,attrs:{label:e.name,value:e.code}})})),1)],1),r("el-col",{staticClass:"fr",staticStyle:{width:"66px",padding:"0 0 0 10px"},attrs:{span:3}},[r("el-button",{attrs:{type:"primary",size:e.searchSize},on:{click:e.searchList}},[e._v(" 刷新 ")])],1),r("el-col",{staticClass:"fr",staticStyle:{width:"66px",padding:"0 0 0 10px"},attrs:{span:3}},[r("el-button",{attrs:{type:"warning",size:e.searchSize},on:{click:e.restSearch}},[e._v(" 重置 ")])],1)],1),r("el-row",[r("el-col",{staticStyle:{width:"373px"},attrs:{span:4}},[r("el-input",{attrs:{size:e.searchSize,maxlength:40,placeholder:"单位名称"},on:{blur:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.parmValue.unit,callback:function(t){e.$set(e.parmValue,"unit",t)},expression:"parmValue.unit"}})],1),r("el-col",{staticStyle:{width:"170px",padding:"0 0 0 10px"},attrs:{span:4}},[r("el-input",{attrs:{size:e.searchSize,maxlength:40,placeholder:"创建人"},on:{change:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.parmValue.creater,callback:function(t){e.$set(e.parmValue,"creater",t)},expression:"parmValue.creater"}})],1),e.powers.some((function(e){return"003"==e}))?r("el-col",{staticClass:"fr",staticStyle:{width:"66px",padding:"0 0 0 10px"},attrs:{span:3}},[r("el-button",{staticStyle:{float:"right"},attrs:{size:e.searchSize,type:"success"},on:{click:function(t){return e.openModal({},"003","0")}}},[e._v(" 添加 ")])],1):e._e()],1)],1)]}},{key:"status",fn:function(t){var a=t.scope;return[r("el-tag",{attrs:{size:e.tablebtnSize,type:"0"==a.row.status?"warning":""},domProps:{textContent:e._s((e.statusOptions.find((function(e){return e.id==a.row.status}))||{}).label||"--")}})]}},{key:"operation",fn:function(t){var a=t.scope;return[e.powers.some((function(e){return"007"==e}))?r("el-tooltip",{attrs:{effect:"dark",content:"详情",placement:"top"}},[r("i",{staticClass:"el-icon-view tb-icon",on:{click:function(t){return e.openModal(a.row,"007",a.row.status)}}})]):e._e(),e.powers.some((function(e){return"005"==e}))?r("el-tooltip",{attrs:{effect:"dark",content:"修改",placement:"top"}},[r("i",{staticClass:"el-icon-edit tb-icon",on:{click:function(t){return e.openModal(a.row,"005",a.row.status)}}})]):e._e(),e.powers.some((function(e){return"004"==e}))&&"1"===a.row.status?r("el-tooltip",{attrs:{effect:"dark",content:"禁用",placement:"top"}},[r("i",{staticClass:"el-icon-video-pause tb-icon",on:{click:function(t){return e.changeStatus(a.row.id,a.row.status)}}})]):e._e(),e.powers.some((function(e){return"004"==e}))&&"0"===a.row.status?r("el-tooltip",{attrs:{effect:"dark",content:"启用",placement:"top"}},[r("i",{staticClass:"el-icon-video-play tb-icon",on:{click:function(t){return e.changeStatus(a.row.id,a.row.status)}}})]):e._e(),e.powers.some((function(e){return"006"==e}))?r("el-tooltip",{attrs:{effect:"dark",content:"删除",placement:"top"}},[r("i",{staticClass:"el-icon-delete tb-icon",on:{click:function(t){return e.deleteItem(a.row.id)}}})]):e._e()]}}],null,!1,3734495218)}):r("no-auth"),r("add-edit",{attrs:{id:e.modelId,"show-model":e.showModel,sitem:e.sitem},on:{refresh:e.searchList,cancel:function(t){e.showModel=!1}}})],1)}),[],!1,null,"ab488f3e",null);t.default=s.exports},7391:function(e,t,r){},"73a7":function(e,t,r){"use strict";r("2d15")},"743d":function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=r("5530"),s=(r("96cf"),r("7db0"),r("d3b7"),r("a9e3"),r("bb68")),i=r("dd3d"),o=r("0ee5"),l=r("e66a"),c=r("f5ed"),u=r("2f62"),d=r("9f53");c={name:"specs",mixins:[c.a,d.a],components:{addEdit:s.default},computed:Object(n.a)(Object(n.a)({},Object(u.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"specs"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),data:function(){return{statusList:o.a,roleLevel:l.a,loading:!0,showModel:!1,modelId:"000",sitem:{},parmValue:{page:1,size:15,start:"",end:"",status:"",creater:"",spec_name:""},statusOptions:[{id:"0",label:"禁用"},{id:"1",label:"启用"}],tableData:[],table:{stripe:!0,border:!0,_defaultHeader_:["setcol"]},pageInfo:{size:15,curr:1,total:0},columns:[{prop:"id",label:"ID"},{prop:"spec_name",label:"规格名称"},{prop:"status",label:"状态",sortable:!0,_slot_:"status"},{prop:"creater",label:"创建人"},{prop:"addtime",label:"创建时间",sortable:!0},{prop:"",label:"操作",fixed:"right",_noset_:!0,_slot_:"operation"}]}},mounted:function(){this.searchList()},methods:{restSearch:function(){this.pageInfo={size:15,curr:1,total:0},this.parmValue={page:1,size:15,start:"",end:"",status:"",creater:"",spec_name:""},this.searchList()},openModal:function(e,t,r){"005"===t&&"1"===r?this.$message.warning("禁用后,才可以修改!"):(this.sitem=e,this.modelId=t,this.showModel=!0)},handleTime:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t.parmValue.start=e.startTime||"",t.parmValue.end=e.endTime||"",""!==t.parmValue.start&&""!==t.parmValue.end||""===t.parmValue.start&&""===t.parmValue.end)return t.pageInfo.curr=1,t.parmValue.page=1,r.next=7,t.searchList();r.next=7;break;case 7:case"end":return r.stop()}}),r)})))()},changeStatus:function(e,t){var r=this;return Object(a.a)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r.$confirm("确定要改为".concat("1"===t?"禁用":"启用","?"),{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(a.a)(regeneratorRuntime.mark((function a(){var n,s;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return r.loading=!0,n={id:e,status:"1"===t?"0":"1"},a.next=4,i.a.status(n);case 4:if((s=a.sent)&&0===s.code)return r.loading=!1,r.$notify.success({title:"状态修改成功!",message:""}),a.next=10,r.searchList();a.next=12;break;case 10:a.next=19;break;case 12:if(s&&100<=s.code&&s.code<=104)return a.next=15,r.logout();a.next=17;break;case 15:a.next=19;break;case 17:r.loading=!1,r.$message.warning(s.message);case 19:case"end":return a.stop()}}),a)})))).catch((function(){}));case 2:case"end":return n.stop()}}),n)})))()},deleteItem:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t.$confirm("确定要删除?",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(a.a)(regeneratorRuntime.mark((function r(){var a,n;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a={id:e},r.next=3,i.a.delete(a);case 3:if(!(n=r.sent)||0!==n.code){r.next=9;break}t.$notify.success({title:"删除成功",message:""}),t.searchList(),r.next=15;break;case 9:if(n&&100<=n.code&&n.code<=104)return r.next=12,t.logout();r.next=14;break;case 12:r.next=15;break;case 14:t.$message.warning(n.message);case 15:case"end":return r.stop()}}),r)})))).catch((function(){}));case 2:case"end":return r.stop()}}),r)})))()},searchList:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(""!==e.parmValue.start&&""===e.parmValue.end||""===e.parmValue.start&&""!==e.parmValue.end)return e.$message.warning("时间区间不完整!"),t.abrupt("return");t.next=3;break;case 3:return e.loading=!0,t.next=6,i.a.list(e.parmValue);case 6:if(!(r=t.sent)||0!==r.code||!r.data){t.next=12;break}e.tableData=r.data.list,e.pageInfo.total=Number(r.data.count),t.next=19;break;case 12:if(r&&100<=r.code&&r.code<=104)return t.next=15,e.logout();t.next=17;break;case 15:t.next=19;break;case 17:e.tableData=[],e.pageInfo.total=0;case 19:e.loading=!1;case 20:case"end":return t.stop()}}),t)})))()}}},d=r("2877"),s=Object(d.a)(c,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"specs pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?r("ex-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{table:e.table,data:e.tableData,columns:e.columns,page:e.pageInfo,size:e.size},on:{"page-curr-change":e.handlePageChange,"page-size-change":e.handleSizeChange,"screen-reset":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()},"screen-submit":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},scopedSlots:e._u([{key:"table-header",fn:function(t){return[r("div",{staticStyle:{width:"100%"}},[r("el-row",{staticStyle:{padding:"0 0 10px 80px"}},[r("el-col",{staticStyle:{width:"303px"},attrs:{span:6}},[r("period-date-picker",{attrs:{type:1,width:"135px",size:e.searchSize,start:e.parmValue.start,end:e.parmValue.end},on:{timeReturned:e.handleTime}})],1),r("el-col",{staticStyle:{width:"160px"},attrs:{span:4}},[r("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"",clearable:"",size:e.searchSize,placeholder:"规格状态"},on:{change:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.parmValue.status,callback:function(t){e.$set(e.parmValue,"status",t)},expression:"parmValue.status"}},e._l(e.statusList,(function(e){return r("el-option",{key:"status"+e.code,attrs:{label:e.name,value:e.code}})})),1)],1),r("el-col",{staticClass:"fr",staticStyle:{width:"66px",padding:"0 0 0 10px"},attrs:{span:3}},[r("el-button",{attrs:{type:"primary",size:e.searchSize},on:{click:e.searchList}},[e._v(" 刷新 ")])],1),r("el-col",{staticClass:"fr",staticStyle:{width:"66px",padding:"0 0 0 10px"},attrs:{span:3}},[r("el-button",{attrs:{type:"warning",size:e.searchSize},on:{click:e.restSearch}},[e._v(" 重置 ")])],1)],1),r("el-row",[r("el-col",{staticStyle:{width:"373px"},attrs:{span:4}},[r("el-input",{attrs:{size:e.searchSize,maxlength:40,placeholder:"规格名称"},on:{blur:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.parmValue.spec_name,callback:function(t){e.$set(e.parmValue,"spec_name",t)},expression:"parmValue.spec_name"}})],1),r("el-col",{staticStyle:{width:"170px",padding:"0 0 0 10px"},attrs:{span:4}},[r("el-input",{attrs:{size:e.searchSize,maxlength:40,placeholder:"创建人"},on:{change:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.parmValue.creater,callback:function(t){e.$set(e.parmValue,"creater",t)},expression:"parmValue.creater"}})],1),e.powers.some((function(e){return"003"==e}))?r("el-col",{staticClass:"fr",staticStyle:{width:"66px",padding:"0 0 0 10px"},attrs:{span:3}},[r("el-button",{staticStyle:{float:"right"},attrs:{size:e.searchSize,type:"success"},on:{click:function(t){return e.openModal({},"003","0")}}},[e._v(" 添加 ")])],1):e._e()],1)],1)]}},{key:"status",fn:function(t){var a=t.scope;return[r("el-tag",{attrs:{size:e.tablebtnSize,type:"0"==a.row.status?"warning":""},domProps:{textContent:e._s((e.statusOptions.find((function(e){return e.id==a.row.status}))||{}).label||"--")}})]}},{key:"operation",fn:function(t){var a=t.scope;return[e.powers.some((function(e){return"007"==e}))?r("el-tooltip",{attrs:{effect:"dark",content:"详情",placement:"top"}},[r("i",{staticClass:"el-icon-view tb-icon",on:{click:function(t){return e.openModal(a.row,"007",a.row.status)}}})]):e._e(),e.powers.some((function(e){return"005"==e}))?r("el-tooltip",{attrs:{effect:"dark",content:"修改",placement:"top"}},[r("i",{staticClass:"el-icon-edit tb-icon",on:{click:function(t){return e.openModal(a.row,"005",a.row.status)}}})]):e._e(),e.powers.some((function(e){return"004"==e}))&&"1"===a.row.status?r("el-tooltip",{attrs:{effect:"dark",content:"禁用",placement:"top"}},[r("i",{staticClass:"el-icon-video-pause tb-icon",on:{click:function(t){return e.changeStatus(a.row.id,a.row.status)}}})]):e._e(),e.powers.some((function(e){return"004"==e}))&&"0"===a.row.status?r("el-tooltip",{attrs:{effect:"dark",content:"启用",placement:"top"}},[r("i",{staticClass:"el-icon-video-play tb-icon",on:{click:function(t){return e.changeStatus(a.row.id,a.row.status)}}})]):e._e(),e.powers.some((function(e){return"006"==e}))?r("el-tooltip",{attrs:{effect:"dark",content:"删除",placement:"top"}},[r("i",{staticClass:"el-icon-delete tb-icon",on:{click:function(t){return e.deleteItem(a.row.id)}}})]):e._e()]}}],null,!1,3041291337)}):r("no-auth"),r("add-edit",{attrs:{id:e.modelId,"show-model":e.showModel,sitem:e.sitem},on:{refresh:e.searchList,cancel:function(t){e.showModel=!1}}})],1)}),[],!1,null,"a5454806",null);t.default=s.exports},"74a5":function(e,t,r){"use strict";var a=r("1b69"),n="admin/";t.a={add:function(e,t){return Object(a.a)(n+"salezxcreate",e,"post",t)},delete:function(e,t){return Object(a.a)(n+"Consultdel",e,"post",t)},list:function(e,t){return Object(a.a)(n+"saledifflist",e,"post",t)},detail:function(e,t){return Object(a.a)(n+"salediffinfo",e,"post",t)},update:function(e,t){return Object(a.a)(n+"update",e,"post",t)},status:function(e,t){return Object(a.a)(n+"salediffcheck",e,"post",t)},fstatus:function(e,t){return Object(a.a)(n+"salediffstatus",e,"post",t)}}},"768a":function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=(r("7db0"),r("d3b7"),r("96cf"),r("f1ed")),s={name:"brand",props:["showModel","index","sitem"],mixins:[r("9f53").a],data:function(){return{loading:!1,title:"商品规格",sinput:"",showModelThis:this.showModel,specVlist:[],ruleForm:{},rulesThis:this.rules,rules:{specid:[{required:!0,message:"规格类型不能为空",trigger:"change"}],spec_value_id:[{required:!0,message:"请选择规格值",trigger:"change"}]}}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis:function(e){e||this.$emit("cancel")}},methods:{initForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,e.resetFormData(),e.rulesThis=e.rules,e.index+""=="-1"?e.title="添加商品规格值":e.title="修改商品规格值",t.next=6,e.resetForm();case 6:e.loading=!1;case 7:case"end":return t.stop()}}),t)})))()},resetForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$nextTick(Object(a.a)(regeneratorRuntime.mark((function t(){var r,a,n,s;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.$refs.ruleForm){t.next=10;break}if(e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),e.index+""!="-1")return e.specVlist=[],s=e.sitem,r=s.specid,a=s.spec_name,n=s.spec_value_id,s=s.spec_value_name,e.ruleForm={index:e.index,specid:r||"",spec_name:a||"",spec_value_id:n||"",spec_value_name:s||""},t.next=9,e.getlist();t.next=10;break;case 9:case 10:case"end":return t.stop()}}),t)}))));case 2:case"end":return t.stop()}}),t)})))()},resetFormData:function(){this.specVlist=[],this.ruleForm={index:"-1",specid:"",spec_name:"",spec_value_id:"",spec_value_name:""}},add_spec:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r,a,s;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(r=e.ruleForm.specid)){t.next=25;break}if(e.sinput)return t.next=5,n.a.valueadd({spec_id:r,spec_value:e.sinput});t.next=22;break;case 5:if(r=t.sent,a=r.code,r.data,s=r.message,0===a)return t.next=12,e.getlist();t.next=14;break;case 12:t.next=20;break;case 14:if(100<=a&&a<=104)return t.next=17,e.logout();t.next=19;break;case 17:t.next=20;break;case 19:e.$message.warning(s);case 20:t.next=23;break;case 22:e.$message.warning("请输入规格值!");case 23:t.next=26;break;case 25:e.$message.warning("请选择规格类型!");case 26:case"end":return t.stop()}}),t)})))()},specidsearchChange:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){var a,n;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a=e.id,n=e.spec_name,t.ruleForm.specid=a||"",t.ruleForm.spec_name=n||"",t.$refs.ruleForm.validateField("specid"),r.next=6,t.getlist();case 6:case"end":return r.stop()}}),r)})))()},spec_value_id_change:function(e){var t,r;e?(t=(r=this.specVlist.find((function(t){return t.id===e}))).id,r=r.spec_value,this.ruleForm.spec_value_id=t||"",this.ruleForm.spec_value_name=r||""):(this.ruleForm.spec_value_id="",this.ruleForm.spec_value_name=""),this.$refs.ruleForm.validateField("spec_value_id")},getlist:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r,a,s,i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e.ruleForm.specid)return t.next=4,n.a.valueall({spec_id:r});t.next=20;break;case 4:if(r=t.sent,a=r.code,s=r.data,i=r.message,0!==a){t.next=12;break}e.specVlist=s,t.next=18;break;case 12:if(100<=a&&a<=104)return t.next=15,e.logout();t.next=17;break;case 15:t.next=18;break;case 17:e.$message.warning(i);case 18:t.next=21;break;case 20:e.specVlist=[];case 21:case"end":return t.stop()}}),t)})))()},submitForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.ruleForm.validate(function(){var t=Object(a.a)(regeneratorRuntime.mark((function t(r){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r){t.next=6;break}e.showModelThis=!1,e.$emit("refresh",e.ruleForm),t.next=8;break;case 6:return t.abrupt("return",!1);case 8:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()}}};r("a89f"),r=r("2877"),r=Object(r.a)(s,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:e.title,center:!0,align:"left",top:"18vh",width:"570px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)","append-to-body":""},on:{"update:visible":function(t){e.showModelThis=t},close:function(t){e.showModelThis=!1}}},[r("el-card",{staticStyle:{margin:"-20px 0 0 0"}},[r("el-row",{attrs:{gutter:10}},[r("el-col",{attrs:{span:24}},[r("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",size:"small",rules:e.rulesThis,"label-width":"80px"}},[r("el-form-item",{attrs:{label:"规格类型",prop:"specid"}},[r("search-spec",{attrs:{value:e.ruleForm.specid,disabled:!1,size:"mini",isDetail:!1,placeholder:"规格类型"},on:{searchChange:e.specidsearchChange}})],1),r("el-form-item",{attrs:{label:"规格值",prop:"spec_value_id"}},[0<e.specVlist.length?r("div",[r("el-radio-group",{on:{change:e.spec_value_id_change},model:{value:e.ruleForm.spec_value_id,callback:function(t){e.$set(e.ruleForm,"spec_value_id",t)},expression:"ruleForm.spec_value_id"}},e._l(e.specVlist,(function(t){return r("el-radio",{key:t.id+t.spec_value,attrs:{label:t.id}},[e._v(e._s(t.spec_value))])})),1)],1):r("div",{staticClass:"no-data"},[e._v("暂无规格值,请添加!")])])],1)],1),r("el-col",{staticStyle:{"text-align":"right"},attrs:{span:24}},[r("el-input",{staticClass:"fl",staticStyle:{width:"209px"},attrs:{disabled:"edit"==e.id,size:"small",placeholder:"规格值名称,如红色",maxlength:"50"},model:{value:e.sinput,callback:function(t){e.sinput=t},expression:"sinput"}}),r("el-button",{staticClass:"fl",staticStyle:{margin:"0 0 0 10px"},attrs:{icon:"el-icon-plus",size:"small"},on:{click:e.add_spec}},[e._v("新增规格值")]),"edit"!==e.id?r("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.submitForm}},[e._v("保 存 ")]):e._e(),r("el-button",{attrs:{size:"small"},on:{click:function(t){e.showModelThis=!1}}},[e._v(e._s("edit"==e.id?"关 闭":"取 消"))])],1)],1)],1)],1)}),[],!1,null,"2360c5e9",null);t.default=r.exports},"76c2":function(e,t,r){"use strict";r("13ce")},"76fb":function(e,t,r){},7726:function(e,t,r){},"773a":function(e,t,r){"use strict";r("d720")},"787f":function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=(r("96cf"),r("7db0"),r("d3b7"),r("e9c4"),r("159b"),r("c740"),r("d81d"),r("b0c0"),r("a9e3"),r("11f6")),s=r("9f53"),i=r("4174"),o=r("e7f4");s={name:"setPlan",props:["showModel","sitem","id","type","newTime"],mixins:[s.a],components:{buyGoodModal:o.default},computed:{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"projectDetail"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}},watch:{newTime:function(e){e&&this.initForm()}},data:function(){return{showModel:!1,searchItem:{},loading:!1,allPlanList:[],bayGoodItem:{},bayGoodShowModel:!1,ladder:[],index:0,total:0,table_type:"list",projectNo:"",status:"",statusOptions:[{value:"1",label:"竞品"},{value:"2",label:"竞聘"}],table:{stripe:!0,border:!0},columns:i.a,tableData:[],multipleSelection:[],plan_show:{sale_total:"0",feedback:[]}}},mounted:function(){this.initForm()},methods:{initForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,t.next=3,e.initListData();case 3:return t.next=5,e.back_list();case 5:e.loading=!1;case 6:case"end":return t.stop()}}),t)})))()},place_order:function(){var e=this.sitem,t=e.company,r=e.khName,a=e.platform_name,n=e.arrtime;e=e.project_name;this.bayGoodItem=JSON.parse(JSON.stringify(this.allPlanList[this.index])),this.bayGoodItem.in_company=t,this.bayGoodItem.in_khname=r,this.bayGoodItem.in_platform_name=a,this.bayGoodItem.in_arrival_time=n,this.bayGoodItem.in_project_name=e,this.bayGoodShowModel=!0},resetFormData:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.pageInfo={size:15,curr:1,total:0},e.loading=!0,e.tableData=[],t.next=5,e.searchList();case 5:case"end":return t.stop()}}),t)})))()},back_list:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.table_type="list",t.next=3,e.get_plan("1");case 3:case"end":return t.stop()}}),t)})))()},add_plan:function(){var e=this.sitem.low_rate;100*(e||"0")==0?this.$message.warning("暂无项目毛利率,不能制定方案!"):(this.table_type="add",this.plan_show={sale_total:"0",feedback:[]})},moq_num_change:function(e,t,r){this.plan_show.feedback[t][r]=e+"",this.$set(this.plan_show.feedback[t],t,this.plan_show.feedback[t])},initListData:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r,a,n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.sitem,r=n.projectNo,a=n.ladder,n=n.status,e.status=n,e.projectNo=r,e.ladder=JSON.parse(JSON.stringify(a)),e.pageInfo={size:100,curr:1,total:0},e.tableData=[],t.next=9,e.searchList();case 9:case"end":return t.stop()}}),t)})))()},handleSelectionChange:function(e){var t=this,r=(this.multipleSelection=e,JSON.parse(JSON.stringify(this.plan_show.feedback)));this.plan_show={sale_total:"0",feedback:[]},this.multipleSelection.forEach((function(e,a){var n=r.findIndex((function(t){return e.id===t.id&&t.pgNo===e.pgNo}));-1!==n?t.plan_show.feedback.push(JSON.parse(JSON.stringify(r[n]))):t.plan_show.feedback.push(JSON.parse(JSON.stringify(t.multipleSelection[a])))})),this.plan_show.feedback.map((function(e){return e.new_sale_price=e.sale_price,e.origin_num=e.num,e}))},searchList:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r,a,s,i,o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return s=e.pageInfo,r=s.size,s=s.curr,s={page:s,size:r,zxNo:"",infoNo:"",bidNo:"",status:"1",pgNo:"",projectNo:e.projectNo},t.next=4,n.a.back_good_list(s);case 4:if(r=t.sent,a=r.code,s=r.data,0!==a){t.next=14;break}i=s.list,o=s.count,e.tableData=i,e.tableData.map((function(e){return e.class_cat="",e.can&&0<e.can.length&&e.can.forEach((function(t,r){e.class_cat+=0===r?t.name:"_"+t.name})),e})),e.pageInfo.total=Number(o),t.next=21;break;case 14:if(100<=a&&a<=104)return t.next=17,e.logout();t.next=19;break;case 17:t.next=21;break;case 19:e.tableData=[],e.pageInfo.total=0;case 21:case"end":return t.stop()}}),t)})))()},save_plan:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r,a,s,i,o,l,c;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.loading){t.next=34;break}if(o=e.plan_show.feedback,a=!0,(r=o).forEach((function(e){-1!==r.findIndex((function(t){return t.pgNo===e.pgNo&&e.id!==t.id}))&&(a=!1)})),a){t.next=8;break}return e.$message.warning("一种商品要求只能选择一种商品!"),t.abrupt("return");case 8:if(s=!0,e.ladder.forEach((function(e){var t=0;r.forEach((function(r){e.pgNo===r.pgNo&&t++})),1!==t&&(s=!1)})),s){t.next=13;break}return e.$message.warning("方案必须涵盖全部商品要求!"),t.abrupt("return");case 13:return e.loading=!0,i={feedback:[],projectNo:e.projectNo},r.forEach((function(e){e={feedid:e.id,sale_price:e.new_sale_price,good_num:e.num},i.feedback.push(e)})),t.next=18,n.a.project_make_plan(i);case 18:if(o=t.sent,l=o.code,o.data,c=o.message,0===l)return t.next=25,e.back_list();t.next=27;break;case 25:t.next=33;break;case 27:if(100<=l&&l<=104)return t.next=30,e.logout();t.next=32;break;case 30:t.next=33;break;case 32:e.$message.warning(c);case 33:e.loading=!1;case 34:case"end":return t.stop()}}),t)})))()},get_plan:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){var a,s,i,o;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a={projectNo:t.projectNo},r.next=3,n.a.get_project_plan(a);case 3:if(a=r.sent,s=a.code,i=a.data,o=a.message,0!==s){r.next=15;break}if(t.allPlanList=JSON.parse(JSON.stringify(i)),t.total=t.allPlanList.length,e&&0<t.allPlanList.length)return r.next=13,t.change_plan("1");r.next=13;break;case 13:r.next=21;break;case 15:if(100<=s&&s<=104)return r.next=18,t.logout();r.next=20;break;case 18:r.next=21;break;case 20:t.$message.warning(o);case 21:case"end":return r.stop()}}),r)})))()},change_plan:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){var a,n,s,i;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:for(t.table_type="list",t.plan_show={sale_total:"0",status:"0",feedback:[]},e&&(t.index=0),"4"===t.status&&t.allPlanList.forEach((function(e,r){"1"===e.status&&(t.index=r)})),s=JSON.parse(JSON.stringify(t.allPlanList[t.index])),a=s.sale_total,n=s.feedback,s=s.status,t.plan_show={sale_total:a,status:s,feedback:JSON.parse(JSON.stringify(n))},t.plan_show.feedback.map((function(e){return e.class_cat="",e.cat_info&&0<e.cat_info.length&&e.cat_info.forEach((function(t,r){e.class_cat+=0===r?t.name:"_"+t.name})),e})),i=0;i<t.plan_show.feedback.length;i++)t.$set(t.plan_show.feedback[i],i,t.plan_show.feedback[i]);case 9:case"end":return r.stop()}}),r)})))()}}},r("2c0c"),o=r("2877"),r=Object(o.a)(s,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"project-setPlan"},[r("div",{staticClass:"project-setPlan-main"},[r("div",{staticClass:"project-setPlan-title"},[e._v("商品要求")]),r("div",{staticClass:"project-setPlan-ask-table"},[e.ladder?[r("el-table",{staticStyle:{width:"100%"},attrs:{data:e.ladder,size:"mini",border:"",stripe:""}},[r("el-table-column",{attrs:{label:"要求编码",prop:"pgNo",width:"155px","show-overflow-tooltip":""}}),r("el-table-column",{attrs:{prop:"good_type",label:"商品类型",width:"80px","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-tag",{attrs:{size:"mini"},domProps:{textContent:e._s((e.statusOptions.find((function(e){return e.value==t.row.good_type}))||{}).label||"--")}})]}}],null,!1,2581624672)}),r("el-table-column",{attrs:{prop:"budget_price",label:"预算单价",width:"110","show-overflow-tooltip":""}}),r("el-table-column",{attrs:{prop:"num",label:"购买数量",width:"110","show-overflow-tooltip":""}}),r("el-table-column",{attrs:{prop:"cat_name",label:"商品分类","show-overflow-tooltip":""}}),r("el-table-column",{attrs:{prop:"good_img",label:"图片",width:"50","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.good_img?r("div",{directives:[{name:"viewer",rawName:"v-viewer"}],staticClass:"hover",staticStyle:{width:"20px",height:"20px"}},[r("img",{staticStyle:{display:"inline-block",width:"100%",height:"100%"},attrs:{src:t.row.good_img,alt:""}})]):e._e()]}}],null,!1,4291532340)}),r("el-table-column",{attrs:{prop:"good_name",label:"商品名称","show-overflow-tooltip":""}})],1)]:e._e()],2),r("div",{staticClass:"project-setPlan-title"},[e._v("客户意向商品")]),r("div",{staticClass:"project-setPlan-backGood-table"},[r("el-table",{ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:e.tableData,size:"mini",border:"",stripe:""},on:{"selection-change":e.handleSelectionChange}},["add"===e.table_type?r("el-table-column",{attrs:{type:"selection",width:"40"}}):e._e(),r("el-table-column",{attrs:{prop:"pgNo",label:"要求编码",width:"155px","show-overflow-tooltip":""}}),r("el-table-column",{attrs:{prop:"origin_price",label:"销售单价",width:"110","show-overflow-tooltip":""}}),r("el-table-column",{attrs:{prop:"num",label:"购买数量",width:"110","show-overflow-tooltip":""}}),r("el-table-column",{attrs:{prop:"good_img",label:"图片",width:"50","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.good_img?r("div",{directives:[{name:"viewer",rawName:"v-viewer"}],staticClass:"hover",staticStyle:{width:"20px",height:"20px"}},[r("img",{staticStyle:{display:"inline-block",width:"100%",height:"100%"},attrs:{src:t.row.good_img,alt:""}})]):e._e()]}}])}),r("el-table-column",{attrs:{prop:"good_name",label:"商品名称","min-width":"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[r("span",[e._v(e._s(t.row.good_name))]),e._l(t.row.specinfo,(function(t,a){return r("span",{key:t.id+a},[e._v(" "+e._s(0===a?"_":"-")+e._s(t.spec_name)+"["+e._s(t.spec_value_name)+"] ")])}))]}}])}),r("el-table-column",{attrs:{prop:"data_source",label:"商品来源",width:"85","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-tag",{attrs:{size:"mini",type:"1"===t.row.data_source?"success":""}},[e._v(e._s("1"===t.row.data_source?"平台商品":"采反商品"))])]}}])}),r("el-table-column",{attrs:{prop:"class_cat",label:"商品分类","show-overflow-tooltip":""}}),r("el-table-column",{attrs:{prop:"expire_day",label:"信息有效期",width:"85","show-overflow-tooltip":""}}),r("el-table-column",{attrs:{prop:"work_day",label:"制作工期",width:"70","show-overflow-tooltip":""}}),r("el-table-column",{attrs:{prop:"delivery_day",label:"物流时间",width:"70","show-overflow-tooltip":""}})],1)],1),r("div",{staticClass:"project-setPlan-title"},[e._v(" 项目方案 "),0!==e.total&&"list"===e.table_type?r("span",{staticStyle:{margin:"0 0 0 50px","font-size":"13px",color:"#e4393c"}},[e._v(e._s("1"===e.plan_show.status?"已选定":"")+"方案总金额:"+e._s(e.plan_show.sale_total)+"元")]):e._e(),"list"===e.table_type?r("el-button-group",{staticClass:"fr",staticStyle:{margin:"8px 0 0 0"},attrs:{size:"mini"}},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"064"==e}))&&("3"==e.status||"4"==e.status)?r("el-button",{staticClass:"fr",attrs:{type:"primary",icon:"el-icon-circle-plus-outline",size:"mini"},on:{click:e.add_plan}},[e._v("添加方案 ")]):e._e(),"1"===e.plan_show.status?r("el-button",{staticClass:"fr",attrs:{type:"primary",size:"mini"},on:{click:e.place_order}},[e._v("项目下单"),r("i",{staticClass:"el-icon-shopping-cart-2 el-icon--right"})]):e._e(),0!==e.total?r("el-button",{staticClass:"fr",attrs:{type:"primary",size:"mini",disabled:0===e.index,icon:"el-icon-arrow-left"},on:{click:function(t){e.index--,e.change_plan()}}}):e._e(),0!==e.total?r("el-button",{staticClass:"fr",staticStyle:{height:"29px"},attrs:{type:"primary",size:"mini"}},[e._v("方案共"+e._s(e.index+1)+"/"+e._s(e.total))]):e._e(),0!==e.total?r("el-button",{staticClass:"fr",attrs:{type:"primary",disabled:e.index+1===e.total,size:"mini"},on:{click:function(t){e.index++,e.change_plan()}}},[r("i",{staticClass:"el-icon-arrow-right el-icon--right",attrs:{size:"mini"}})]):e._e()],1):"add"===e.table_type?r("el-button-group",{staticClass:"fr",staticStyle:{margin:"8px 0 0 0"},attrs:{size:"mini"}},[r("el-button",{staticClass:"fr",attrs:{type:"primary",size:"mini",icon:"el-icon-arrow-left"},on:{click:e.back_list}},[e._v("返回列表")]),r("el-button",{staticClass:"fr",attrs:{type:"primary",size:"mini"},on:{click:e.save_plan}},[e._v("保存方案"),r("i",{staticClass:"el-icon-upload el-icon--right"})])],1):e._e()],1),r("div",{staticClass:"project-setPlan-backGood-table"},[r("el-table",{ref:"multipleTable"+e.index,staticStyle:{width:"100%"},attrs:{data:e.plan_show.feedback,size:"mini",border:"",stripe:""}},[r("el-table-column",{attrs:{prop:"pgNo",label:"要求编码",width:"155px","show-overflow-tooltip":""}}),r("el-table-column",{attrs:{prop:"origin_price",label:"系统售价单价",width:"110","show-overflow-tooltip":""}}),r("el-table-column",{attrs:{prop:"new_sale_price",label:"当前销售单价",width:"110","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return["add"===e.table_type?r("digital-input",{attrs:{values:t.row.new_sale_price,placeholder:"售价",min:t.row.origin_price,max:1e11,position:"right",precision:2,size:"mini",controls:!1,append:""},on:{reschange:function(r){return e.moq_num_change(r,t.$index,"new_sale_price")}}}):r("span",[e._v(e._s(t.row.sale_price)+"元")])]}}])}),r("el-table-column",{attrs:{prop:"origin_num",label:"咨询数量",width:"110","show-overflow-tooltip":""}}),r("el-table-column",{attrs:{prop:"num",label:"购买数量",width:"110","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return["add"===e.table_type?r("digital-input",{attrs:{values:t.row.origin_num,placeholder:"购买数量",min:t.row.origin_num,max:1e11,position:"right",precision:0,size:"mini",controls:!1,append:""},on:{reschange:function(r){return e.moq_num_change(r,t.$index,"num")}}}):r("span",[e._v(e._s(t.row.num))])]}}])}),r("el-table-column",{attrs:{prop:"data_source",label:"商品来源",width:"85"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-tag",{attrs:{size:"mini",type:"1"===t.row.data_source?"success":""}},[e._v(e._s("1"===t.row.data_source?"平台商品":"采反商品"))])]}}])}),r("el-table-column",{attrs:{prop:"good_img",label:"图片",width:"50","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.good_img?r("div",{directives:[{name:"viewer",rawName:"v-viewer"}],staticClass:"hover",staticStyle:{width:"20px",height:"20px"}},[r("img",{staticStyle:{display:"inline-block",width:"100%",height:"100%"},attrs:{src:t.row.good_img,alt:""}})]):e._e()]}}])}),r("el-table-column",{attrs:{prop:"good_name",label:"商品名称","min-width":"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[r("span",[e._v(e._s(t.row.good_name))]),e._l(t.row.specinfo,(function(t,a){return r("span",{key:t.id+a},[e._v(" "+e._s(0===a?"_":"-")+e._s(t.spec_name)+"["+e._s(t.spec_value_name)+"] ")])}))]}}])}),r("el-table-column",{attrs:{prop:"class_cat",label:"商品分类","show-overflow-tooltip":""}})],1)],1),r("buy-good-modal",{attrs:{showModel:e.bayGoodShowModel,sitem:e.bayGoodItem},on:{cancel:function(t){e.bayGoodShowModel=!1},refresh:function(t){e.bayGoodShowModel=!1,e.$emit("resGoodOk")}}})],1)])}),[],!1,null,"2f311a20",null);t.default=r.exports},"78ba":function(e,t,r){"use strict";r.r(t),r("6a1e");var a={name:"goodShare",mixins:[r("9f53").a],data:function(){return{currentRow:null,loading:!1,radio:"",multipleSelection:[],tableData:[{date:"2016-05-02",name:"王小虎",address:"上海市普陀区金沙江路 1518 弄",price:"52013.14",num:"99"},{date:"2016-05-04",name:"王小虎",address:"上海市普陀区金沙江路 1517 弄",price:"52013.14",num:"99"},{date:"2016-05-01",name:"王小虎",address:"上海市普陀区金沙江路 1519 弄",price:"52013.14",num:"99"},{date:"2016-05-03",name:"王小虎",address:"上海市普陀区金沙江路 1516 弄",price:"52013.14",num:"99"}],loginForm:{username:"17744520491",password:"123asd"},loginRules:{}}},mounted:function(){},methods:{radio_change:function(e,t){},handleClick:function(e){}}};r("4d21"),r=r("2877"),r=Object(r.a)(a,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"good-share"},[e._m(0),r("div",{staticClass:"right"},[r("div",{staticClass:"title"},[e._v("方案选择:")]),r("div",{staticClass:"table-main clear"},[r("div",{staticClass:"table-main-index"},[e._v("方案1")]),r("div",{staticClass:"table-main-last"},[r("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData,border:"",size:"mini"}},[r("el-table-column",{attrs:{label:"序号",width:"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-radio",{attrs:{label:t.$index+1,name:" "},on:{change:function(t){return e.radio_change(t,1)}},model:{value:e.radio,callback:function(t){e.radio=t},expression:"radio"}})]}}])}),r("el-table-column",{attrs:{property:"date",label:"商品名称",width:"145"}}),r("el-table-column",{attrs:{property:"name",label:"图片",width:"120"}}),r("el-table-column",{attrs:{property:"address","show-overflow-tooltip":"",label:"分类"}}),r("el-table-column",{attrs:{property:"num","show-overflow-tooltip":"",label:"购买数量"}}),r("el-table-column",{attrs:{property:"price","show-overflow-tooltip":"",label:"预算单价"}})],1)],1)])]),r("div",{staticClass:"bottom"},[r("div",{staticClass:"table-main clear"},[r("div",{staticClass:"table-main-index",staticStyle:{"padding-top":"40px"}},[e._v(" 已选中的方案 ")]),r("div",{staticClass:"table-main-last"},[r("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData,border:"",size:"mini"}},[r("el-table-column",{attrs:{label:"方案1商品名称",property:"date",width:"150"}}),r("el-table-column",{attrs:{property:"name",label:"图片",width:"120"}}),r("el-table-column",{attrs:{property:"address",label:"分类","show-overflow-tooltip":""}}),r("el-table-column",{attrs:{property:"num",label:"购买数量","show-overflow-tooltip":""}}),r("el-table-column",{attrs:{property:"price",label:"预算单价","show-overflow-tooltip":""}})],1),r("div",[e._v("当前方案总金额:974032元")])],1)])])])}),[function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("div",{staticClass:"left"},[t("div",{staticClass:"title"},[e._v("项目信息")]),t("ul",{staticClass:"clear"},[t("li",[e._v("总预算:")]),t("li",[e._v("20000元")]),t("li",[e._v("要求到货日期:")]),t("li",[e._v("2022-88-88")]),t("li",[e._v("业务员:")]),t("li",[e._v("张三")]),t("li",[e._v("购买方:")]),t("li",[e._v(" XXXXX公司公司公司公司公司公司公司公司公司公司公司公司公司公司公司公司公司 ")]),t("li",[e._v("项目名称:")]),t("li",[e._v("111公司公司公司公司公司公司公司公司公司")]),t("li",[e._v("项目用途:")]),t("li",[e._v(" 项目用途项目用途项目用途项目用途项目用途项目用途项目用途项目用途项目用途项目用途项目用途项目用途项目用途项目用途项目用途项目用途项目用途项目用途项目用途项目用途项目用途项目用途项目用途项目用途项目用途项目用途项目用途 ")])])])}],!1,null,"2366bd39",null);t.default=r.exports},"78cb":function(e,t,r){},7904:function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=(r("96cf"),r("d3b7"),r("159b"),r("07ac"),r("5daa")),s=(r("5f87"),r("9f53")),i=r("452f");s={name:"resultUplodModel",props:["showModel","id"],mixins:[s.a],data:function(){return{imgAPI:n.a.baseURL,loading:!1,length:0,showModelThis:this.showModel,isfile:!1,head:["商品编码","商品属性编码","商品名称","商品描述","品牌","单位","供应商编码","供应商名称","一级分类","二级分类","三级分类","新建时间","仓库编码","仓库名称","可用库存","盘点库存"],tableData:[],ruleForm:{execl:""},rules:{execl:[{required:!0,message:"请选择文件",trigger:"change"}]},columns:[]}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis:function(e){e||this.$emit("cancel")}},methods:{initForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.loading=!0,e.isfile=!1,e.tableData=[],e.columns=[],e.head.forEach((function(t,r){e.columns.push({prop:"value"+r,label:t})})),e.loading=!1;case 6:case"end":return t.stop()}}),t)})))()},beforeUpload:function(e){return e.size/1024/1024<1||(this.$message({message:"请不要上传大于1MB的文件.",type:"warning"}),!1)},handleSuccess:function(e){var t,r=this,a=e.results,n=e.header;this.length=0,this.head.length!==n.length?this.$message.error("表头与导入模板不匹配!"):(t=!0,this.head.forEach((function(e,r){e!==n[r]&&(t=!1)})),t?(this.length=n.length,this.tableHeader=n,e=a,this.tableData=[],e.forEach((function(e){for(var t=Object.values(e),a={},n=0;n<t.length;n++)a["value"+n]=t[n];r.tableData.push(a)}))):this.$message.error("表头与导入模板不匹配!"))},submitForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r,a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.loading){t.next=19;break}return e.loading=!0,r={id:e.id,data:e.tableData},t.next=5,i.a.checkimport(r);case 5:if(a=t.sent,e.loading=!1,!a||0!==a.code){t.next=13;break}e.$notify.success({title:"盘点数据提交成功!",message:""}),e.showModelThis=!1,e.$emit("refresh",!1),t.next=19;break;case 13:if(a&&100<=a.code&&a.code<=104)return t.next=16,e.logout();t.next=18;break;case 16:t.next=19;break;case 18:e.$message.warning(a.message);case 19:case"end":return t.stop()}}),t)})))()}}},r("e1bb"),r=r("2877"),r=Object(r.a)(s,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:"导入数据",center:!0,align:"left",top:"5vh",width:"1040px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)"},on:{"update:visible":function(t){e.showModelThis=t},close:function(t){e.showModelThis=!1}}},[r("el-card",{staticStyle:{margin:"-20px"}},[r("el-row",{staticStyle:{height:"550px"},attrs:{gutter:10}},[r("el-col",{attrs:{span:24}},[r("upload-excel",{attrs:{"on-success":e.handleSuccess,"before-upload":e.beforeUpload}}),r("el-table",{staticStyle:{width:"100%","margin-top":"20px"},attrs:{data:e.tableData,size:"mini",border:"","max-height":"400px","highlight-current-row":""}},e._l(e.columns,(function(e,t){return r("el-table-column",{key:e.prop+t,attrs:{"show-overflow-tooltip":"",prop:e.prop,label:e.label,"min-width":"96px"}})})),1)],1),r("el-col",{staticStyle:{"text-align":"right",margin:"15px 0 0 0"},attrs:{span:24}},[e.isDetail?e._e():r("el-button",{attrs:{size:"mini",type:"primary"},on:{click:e.submitForm}},[e._v("保 存 ")]),r("el-button",{attrs:{size:"mini"},on:{click:function(t){e.showModelThis=!1}}},[e._v(e._s(e.isDetail?"关 闭":"取 消"))])],1)],1)],1)],1)}),[],!1,null,"2dc8ba34",null);t.default=r.exports},7914:function(e,t,r){"use strict";r.r(t);var a=r("2909"),n=r("1da1"),s=(r("96cf"),r("7db0"),r("d3b7"),r("4de4"),r("c740"),r("159b"),r("a434"),r("99af"),r("e9c4"),r("d81d"),r("1b69")),i="admin/",o=function(e,t){return Object(s.a)(i+"roleinfo",e,"post",t)},l=function(e,t){return Object(s.a)(i+"rolesave",e,"post",t)},c=function(e,t){return Object(s.a)(i+"roleall",e,"post",t)},u=function(e,t){return Object(s.a)(i+"menuactionlist",e,"post",t)},d={name:"Action",mixins:[r("9f53").a],data:function(){return{ruleForm:{},isBtnDisabled:!0,roleActive:{},actionChange:[],roleList:[],rules:[],actionList:[],action_data:[],action:[],private_data:[],private_field:[]}},computed:{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"action"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]},indeterminateCheck:function(){return function(e){var t=e.action.filter((function(t){return-1<e.checkList.findIndex((function(e){return e===t.id}))})).length,r=e.action.filter((function(t){return-1==e.checkList.findIndex((function(e){return e===t.id}))})).length;return 0<t&&0<r}},indeterminateField:function(){return function(e){var t=e.action_data.filter((function(t){return-1<e.fieldList.findIndex((function(e){return e===t.id}))})).length,r=e.action_data.filter((function(t){return-1==e.fieldList.findIndex((function(e){return e===t.id}))})).length;return 0<t&&0<r}}},mounted:function(){this.initactionList()},methods:{handleCheckAllChange:function(e,t,r,a){var n=this;this.actionList[t].child[a].checkAll=e,this.$set(this.actionList,t,r),this.actionList[t].child[a].action.forEach((function(r){var s=n.actionList[t].child[a].checkList.findIndex((function(e){return e===r.id}));e&&-1==s?n.actionList[t].child[a].checkList.push(r.id):!e&&-1<s&&n.actionList[t].child[a].checkList.splice(s,1)}))},handleFieldAllChange:function(e,t,r,a){var n=this;this.actionList[t].child[a].fieldAll=e,this.$set(this.actionList,t,r),this.actionList[t].child[a].action_data.forEach((function(r){var s=n.actionList[t].child[a].fieldList.findIndex((function(e){return e===r.id}));e&&-1==s?n.actionList[t].child[a].fieldList.push(r.id):!e&&-1<s&&n.actionList[t].child[a].fieldList.splice(s,1)}))},handleCheckedGroupChange:function(e,t,r,a){var n=this;this.actionList[t].child[a].checkAll=this.actionList[t].child[a].action.every((function(e){return-1<n.actionList[t].child[a].checkList.findIndex((function(t){return t===e.id}))})),this.$set(this.actionList,t,r)},handleFieldGroupChange:function(e,t,r,a){var n=this;this.actionList[t].child[a].fieldAll=this.actionList[t].child[a].action_data.every((function(e){return-1<n.actionList[t].child[a].fieldList.findIndex((function(t){return t===e.id}))})),this.$set(this.actionList,t,r)},handleCheckedChange:function(e,t,r,a,n){e?-1==this.actionList[r].child[a].checkList.indexOf(t)&&this.actionList[r].child[a].checkList.push(t):(-1<(e=this.actionList[r].child[a].checkList.findIndex((function(e){return e==t})))&&this.actionList[r].child[a].checkList.splice(e,1),this.actionList[r].child[a].checkAll=!1),this.$set(this.actionList,r,n)},handleFieldChange:function(e,t,r,a,n){e?-1==this.actionList[r].child[a].fieldList.indexOf(t)&&this.actionList[r].child[a].fieldList.push(t):(-1<(e=this.actionList[r].child[a].fieldList.findIndex((function(e){return e==t})))&&this.actionList[r].child[a].fieldList.splice(e,1),this.actionList[r].child[a].fieldAll=!1),this.$set(this.actionList,r,n)},switchRoleHandle:function(e){var t=this;this.roleActive=Object.assign({},e),this.$nextTick(Object(n.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t.refreshRoleDetail(e.id);case 2:case"end":return r.stop()}}),r)}))))},save:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){var r,n,s,i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.action_data=[],e.action=[],r=[],e.actionList.forEach((function(t){t.child.forEach((function(t){var n;(n=e.action_data).push.apply(n,Object(a.a)(t.fieldList)),(n=e.action).push.apply(n,Object(a.a)(t.checkList)),"1"===t.is_private_change&&r.push(t.id)}))})),0!==e.action.length){t.next=8;break}e.$message.warning("请选择功能!"),t.next=24;break;case 8:return n={roleid:e.roleActive.id,role_name:e.ruleForm.role_name,level:e.ruleForm.level,action:e.action,action_data:e.action_data,private_data:r,private_field:e.private_field},s=e.$loading(),t.next=12,l(n);case 12:if(!(i=t.sent)||0!==i.code||!i.data){t.next=17;break}e.$notify.success({title:"保存成功!",message:""}),t.next=23;break;case 17:if(i&&100<=i.code&&i.code<=104)return t.next=20,e.logout();t.next=22;break;case 20:t.next=23;break;case 22:e.$message.warning(i.message);case 23:s.close();case 24:case"end":return t.stop()}}),t)})))()},refreshRoleDetail:function(e){var t=this;return Object(n.a)(regeneratorRuntime.mark((function r(){var a,n;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return t.isBtnDisabled=!0,r.next=3,o({roleid:e});case 3:if(!(a=r.sent)||0!==a.code||!a.data){r.next=16;break}n=a.data,(t.ruleForm=n).action&&0<n.action.length?t.action=n.action:t.action=[],n.action_data&&0<n.action_data.length?t.action_data=n.action_data:t.action_data=[],""===n.private_data&&(n.private_data=[]),n.private_data&&0<n.private_data.length?t.private_data=n.private_data:t.private_data=[],t.private_field=n.private_field,t.refreshRoleCheckAllStatus(),r.next=22;break;case 16:if(a&&100<=a.code&&a.code<=104)return r.next=19,t.logout();r.next=21;break;case 19:r.next=22;break;case 21:t.$message.warning(a.message);case 22:t.isBtnDisabled=!1;case 23:case"end":return r.stop()}}),r)})))()},initactionList:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,u({});case 2:if((r=t.sent)&&0===r.code&&r.data)return e.rules=r.data,t.next=7,e.initRoleList();t.next=9;break;case 7:t.next=15;break;case 9:if(r&&100<=r.code&&r.code<=104)return t.next=12,e.logout();t.next=14;break;case 12:t.next=15;break;case 14:e.$message.warning(r.message);case 15:case"end":return t.stop()}}),t)})))()},initRoleList:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,c({});case 2:if(!(r=t.sent)||0!==r.code||!r.data){t.next=16;break}if(e.roleList=[].concat(r.data),0<e.roleList.length)return t.next=8,e.switchRoleHandle(e.roleList[0]);t.next=10;break;case 8:t.next=16;break;case 10:if(r&&100<=r.code&&r.code<=104)return t.next=13,e.logout();t.next=15;break;case 13:t.next=16;break;case 15:e.$message.warning(r.message);case 16:case"end":return t.stop()}}),t)})))()},refreshRoleCheckAllStatus:function(){var e=this,t=(t=JSON.parse(JSON.stringify(this.rules)).filter((function(e){return e.child&&0<e.child.length}))).map((function(e){return e.child.map((function(e){return e.checkAll=!1,e.checkList=[],e.fieldAll=!1,e.fieldList=[],(e.is_private_change="0")===e.is_private?e.private=[]:e.private=[{id:"0",label:"公有数据"},{id:"1",label:"私有数据"}],e})),e}));this.actionList=t,this.actionList.forEach((function(t,r){t.child&&0<t.child.length&&t.child.forEach((function(t,r){var a;t.id,t.action&&0<t.action.length&&t.action.forEach((function(r){var a=e.action.findIndex((function(e){return e===r.id}));-1!==a&&t.checkList.push(e.action[a]),t.action.length===t.checkList.length&&(t.checkAll=!0)})),t.action_data&&0<t.action_data.length&&(t.action_data.map((function(r){var a=e.action_data.findIndex((function(e){return e===r.id}));-1!==a&&t.fieldList.push(e.action_data[a])})),t.action_data.length===t.fieldList.length&&(t.fieldAll=!0)),t.private&&2===t.private.length?(a=e.private_data.findIndex((function(e){return e===t.id})),t.is_private_change=-1!==a?"1":"0"):t.is_private_change="0"})),e.$set(e.actionList,r,t)}))}}};r("8a39"),r=r("2877"),r=Object(r.a)(d,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"action pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?r("div",{staticClass:"action_show"},[r("div",{staticClass:"action_show_box"},[r("ul",{staticClass:"role-list"},[r("p",{staticClass:"role-list__title"},[e._v("角色列表")]),0==e.roleList.length?r("p",{staticStyle:{"line-height":"60px","text-align":"center",color:"#909399"}},[e._v(" 暂无数据 ")]):e._e(),e._l(e.roleList,(function(t,a){return r("li",{key:"role"+a,staticClass:"role-list__item",class:{active:t.id==e.roleActive.id},on:{click:function(r){e.isBtnDisabled||e.switchRoleHandle(t)}}},[e._v(" "+e._s(t.role_name)+" "),e.isBtnDisabled&&t.id==e.roleActive.id?r("i",{staticClass:"el-icon-loading"}):e._e()])}))],2),r("div",{staticClass:"rule-view"},[r("div",{staticClass:"rule-list"},e._l(e.actionList,(function(t,a){return r("el-row",{key:"menu"+t.id+a},[t.child&&0<t.child.length?r("el-col",{staticClass:"ffff",attrs:{span:24}},[r("div",{staticClass:"ftitle"},[r("span",[e._v(e._s(t.menu_name))])]),r("div",{staticClass:"fbody"},e._l(t.child,(function(n,s){return r("div",{key:"yemian"+n.id+s,staticClass:"fbody-item"},[n.action&&0===n.action.length&&n.action_data&&0===n.action_data.length?e._e():[r("div",{staticClass:"stitle"},[r("span",{staticClass:"_h2"},[e._v(e._s(n.menu_name))]),n&&n.private&&2===n.private.length?r("el-radio-group",{staticStyle:{margin:"0 0 0 20px"},attrs:{size:"mini"},model:{value:n.is_private_change,callback:function(t){e.$set(n,"is_private_change",t)},expression:"subItem.is_private_change"}},e._l(n.private,(function(t,a){return r("el-radio-button",{key:t.label+a,attrs:{label:t.id}},[e._v(e._s(t.label))])})),1):e._e()],1),n.action&&0<n.action.length?r("div",{staticClass:"scheck"},[r("div",{staticClass:"checkAll"},[r("el-checkbox",{attrs:{disabled:!e.powers.some((function(e){return"008"==e})),indeterminate:e.indeterminateCheck(n)},on:{change:function(r){return e.handleCheckAllChange(r,a,t,s)}},model:{value:n.checkAll,callback:function(t){e.$set(n,"checkAll",t)},expression:"subItem.checkAll"}},[e._v("功能全选")])],1),r("div",{staticClass:"checkItem"},[r("el-checkbox-group",{attrs:{disabled:!e.powers.some((function(e){return"008"==e}))},on:{change:function(r){return e.handleCheckedGroupChange(r,a,t,s)}},model:{value:n.checkList,callback:function(t){e.$set(n,"checkList",t)},expression:"subItem.checkList"}},[e._l(n.action,(function(n){return[r("el-checkbox",{key:"checkItem"+n.id,attrs:{disabled:!e.powers.some((function(e){return"008"==e})),label:n.id},on:{change:function(r){return e.handleCheckedChange(r,n.id,a,s,t)}}},[e._v(e._s(n.action_name))])]}))],2)],1)]):e._e(),n.action_data&&0<n.action_data.length?r("div",{staticClass:"sfield"},[r("div",{staticClass:"checkAll"},[r("el-checkbox",{attrs:{disabled:!e.powers.some((function(e){return"008"==e})),indeterminate:e.indeterminateField(n)},on:{change:function(r){return e.handleFieldAllChange(r,a,t,s)}},model:{value:n.fieldAll,callback:function(t){e.$set(n,"fieldAll",t)},expression:"subItem.fieldAll"}},[e._v("字段全选")])],1),r("div",{staticClass:"checkItem"},[r("el-checkbox-group",{attrs:{disabled:!e.powers.some((function(e){return"008"==e}))},on:{change:function(r){return e.handleFieldGroupChange(r,a,t,s)}},model:{value:n.fieldList,callback:function(t){e.$set(n,"fieldList",t)},expression:"subItem.fieldList"}},[e._l(n.action_data,(function(n){return[r("el-checkbox",{key:"FieldItem"+n.id,attrs:{label:n.id,disabled:!e.powers.some((function(e){return"008"==e}))},on:{change:function(r){return e.handleFieldChange(r,n.id,a,s,t)}}},[e._v(e._s(n.field_name))])]}))],2)],1)]):e._e()]],2)})),0)]):e._e()],1)})),1)])]),r("div",{staticClass:"rule-bottom"},[e.powers.some((function(e){return"008"==e}))?r("el-button",{attrs:{size:"small",type:"primary",disabled:e.isBtnDisabled},on:{click:function(t){return e.save()}}},[e._v("提 交")]):e._e()],1)]):r("div",[r("no-auth")],1)])}),[],!1,null,"37072dc3",null);t.default=r.exports},7951:function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=(r("96cf"),r("7db0"),r("d3b7"),r("e9c4"),r("159b"),r("c740"),r("3fca")),s=r("9f53"),i=r("61f7"),o=r("9850");s={name:"allot",props:["id","sitem","newTime"],mixins:[s.a],computed:{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"allotDetail"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}},data:function(){return{options:[],status:"",loading:!1,tableForm:{product_go:[]},tableFormThis:o.a.tableFormThis,columns:[]}},watch:{newTime:function(e){e&&this.initForm()}},mounted:function(){this.initForm()},methods:{initForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,e.columns=[],t.next=4,e.getresultlist();case 4:return t.next=6,e.resetForm();case 6:e.loading=!1;case 7:case"end":return t.stop()}}),t)})))()},getresultlist:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r,a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n.a.resultlist({page:1,size:100,type:"1",status:""});case 2:if(!(r=t.sent)||0!==r.code||!r.data){t.next=8;break}a=r.data.list,e.options=a,t.next=14;break;case 8:if(r&&100<=r.code&&r.code<=104)return t.next=11,e.logout();t.next=13;break;case 11:t.next=14;break;case 13:e.$message.warning(r.message);case 14:case"end":return t.stop()}}),t)})))()},resetForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$nextTick((function(){var t,r;e.$refs.tableForm&&(e.$refs.tableForm.resetFields(),e.$refs.tableForm.clearValidate(),t=(r=e.sitem).item,r=r.status,e.status=r,JSON.parse(JSON.stringify(o.a.columns)).forEach((function(t){"5"!=e.status&&"4"!=e.status||(t.show=!0),"4"==e.status&&"stock_num"===t.prop&&(t.type="input",t.width="150px"),"3"==e.status&&("error_remark"!==t.prop&&"error_num"!==t.prop||(t.show=!0,t.width="150px",t.type="input"),"error_code"===t.prop&&(t.show=!0,t.width="150px",t.type="select")),e.columns.push(t)})),e.tableForm.product_go=[],JSON.parse(JSON.stringify(t)).forEach((function(t){t.usable_stock=t.usable_num,t.type_code=t.good_type_code,t.error_num=t.error_num||"0",t.error_code=t.error_code||"",t.error_msg=t.error_msg||"",t.error_remark=t.error_remark||"",t.stock_num=t.stock_num||"0",t.edit=!1,e.tableForm.product_go.push(t)})))}));case 2:case"end":return t.stop()}}),t)})))()},submitForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r,a,s,i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=-1,a=[],e.tableForm.product_go.forEach((function(e,t){e.edit&&-1===r&&(r=t)})),-1!==r)return e.$message.warning("当前已有商品正在编辑!"),t.abrupt("return");t.next=5;break;case 5:if(e.loading=!0,a=e.getGoodList(),s={allot_code:e.sitem.allot_code,good:a},i={},"3"==e.status)return t.next=12,n.a.allotgetin(s);t.next=15;break;case 12:i=t.sent,t.next=18;break;case 15:return t.next=17,n.a.allotvesio(s);case 17:i=t.sent;case 18:if(e.loading=!1,!i||0!==i.code){t.next=24;break}e.$notify.success({title:"3"==e.status?"入库方验货结果提交成功!":"入库方验货审核结果提交成功",message:""}),e.$emit("refresh"),t.next=30;break;case 24:if(i&&100<=i.code&&i.code<=104)return t.next=27,e.logout();t.next=29;break;case 27:t.next=30;break;case 29:e.$message.warning(i.message);case 30:case"end":return t.stop()}}),t)})))()},getGoodList:function(){var e=this,t=JSON.parse(JSON.stringify(this.tableForm.product_go)),r=[];return t.forEach((function(t){var a={good_code:t.type_code,usable_num:t.usable_stock,error_num:t.error_num,error_remark:t.error_remark,error_code:t.error_code};"4"===e.status&&(a.stock_num=t.stock_num),r.push(a)})),r},resetRow:function(e){"3"===this.status?(this.tableForm.product_go[e].error_num="0",this.tableForm.product_go[e].error_code="",this.tableForm.product_go[e].error_msg="",this.tableForm.product_go[e].error_remark=""):this.tableForm.product_go[e].stock_num="0"},elSelectChange:function(e,t){var r=this.options.findIndex((function(t){return t.result_code===e}));this.tableForm.product_go[t].error_msg=-1!==r?this.options[r].result:""},checkRow:function(e){var t=this.tableForm.product_go[e],r=t.allot_num,a=t.error_num,n=t.error_code,s=t.error_remark;t=t.stock_num;if("3"===this.status){if(!Object(i.k)(a+"")||""===a)return void this.$message.warning("异常数量必须为整数!");if(parseInt(a+"")>parseInt(r+""))return void this.$message.warning("异常数量不大于调拨总数量!");if(0<parseInt(a+"")&&""===n)return void this.$message.warning("请选择异常原因!");if(0<parseInt(a+"")&&""===s)return void this.$message.warning("请输入异常备注!");if(0===parseInt(a+"")&&""!==n)return void this.$message.warning("异常数量为零,不用选择异常原因!");if(0===parseInt(a+"")&&""!==s)return void this.$message.warning("异常数量为零,不用填写异常备注!")}else{if(!Object(i.k)(t+""||""===t))return void this.$message.warning("入库数量必须为整数!");if(parseInt(t+"")>parseInt(r+""))return void this.$message.warning("入库数量不大于调拨总数量!")}this.tableForm.product_go[e].edit=!1},editRow:function(e){-1!==this.tableForm.product_go.findIndex((function(e){return e.edit}))?this.$message.warning("请完成其他行的编辑!"):this.tableForm.product_go[e].edit=!0}}},r("96c6"),r=r("2877"),r=Object(r.a)(s,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("el-row",{staticClass:"addForm"},[r("el-col",{attrs:{span:24}},[r("el-form",{ref:"tableForm",staticClass:"demo-tableForm product_go",attrs:{model:e.tableForm,rules:e.tableFormThis,size:"mini"}},[r("el-table",{attrs:{data:e.tableForm.product_go,border:"",size:"mini","row-key":"key"}},[e._l(e.columns,(function(t,a){return["text"===t.type&&t.show&&"error_code"!==t.prop?r("el-table-column",{key:t.prop+a,attrs:{prop:t.prop,"show-overflow-tooltip":"",label:t.label,width:t.width,"min-width":t.minWidth}}):"text"===t.type&&t.show&&"error_code"===t.prop?r("el-table-column",{key:t.prop+a,attrs:{prop:t.prop,label:t.label,width:t.width,"min-width":t.minWidth},scopedSlots:e._u([{key:"default",fn:function(t){return[r("span",{staticClass:"spscope"},[e._v(e._s(t.row.error_msg))])]}}],null,!0)}):"text"!==t.type&&t.show?r("el-table-column",{key:t.prop+a,attrs:{prop:t.prop,label:t.label,width:t.width,"min-width":t.minWidth},scopedSlots:e._u([{key:"default",fn:function(a){return[r("el-form-item",{attrs:{prop:"product_go."+a.$index+"."+t.prop,rules:a.row.edit?e.tableFormThis[t.prop]:{},size:"mini"}},[!0===a.row.edit&&"input"===t.type?r("el-input",{attrs:{size:"mini",maxlength:"250",clearable:""},model:{value:a.row[t.prop],callback:function(r){e.$set(a.row,t.prop,r)},expression:"scope.row[item.prop]"}}):e._e(),!0===a.row.edit&&"select"===t.type?r("el-select",{staticStyle:{width:"100%"},attrs:{clearable:"",placeholder:"异常原因"},on:{change:function(t){return e.elSelectChange(t,a.$index)}},model:{value:a.row[t.prop],callback:function(r){e.$set(a.row,t.prop,r)},expression:"scope.row[item.prop]"}},e._l(e.options,(function(e){return r("el-option",{key:e.result_code,attrs:{label:e.result,value:e.result_code,disabled:"0"===e.status}})})),1):e._e(),a.row.edit?e._e():r("span",{staticClass:"spscope"},[e._v(e._s("select"===t.type?a.row.error_msg:a.row[t.prop]))])],1)]}}],null,!0)}):e._e()]})),"3"==e.status&&e.powers.some((function(e){return"022"==e}))||"4"==e.status&&e.powers.some((function(e){return"023"==e}))?r("el-table-column",{attrs:{fixed:"right",label:"操作",width:"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.edit?e._e():r("el-tooltip",{attrs:{effect:"dark",content:"编辑",placement:"top"}},[r("i",{staticClass:"el-icon-edit tb-icon",on:{click:function(r){return e.editRow(t.$index)}}})]),t.row.edit?r("el-tooltip",{attrs:{effect:"dark",content:"保存",placement:"top"}},[r("i",{staticClass:"el-icon-circle-check tb-icon",on:{click:function(r){return e.checkRow(t.$index)}}})]):e._e(),r("el-tooltip",{attrs:{effect:"dark",content:"重置",placement:"top"}},[r("i",{staticClass:"el-icon-refresh-left tb-icon",on:{click:function(r){return e.resetRow(t.$index)}}})])]}}],null,!1,3847135684)}):e._e()],2)],1)],1),r("el-col",{staticStyle:{"text-align":"right",padding:"10px 0 0 0"},attrs:{span:24}},["3"==e.status&&e.powers.some((function(e){return"022"==e}))||"4"==e.status&&e.powers.some((function(e){return"023"==e}))?r("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.submitForm}},[e._v("保 存 ")]):e._e()],1)],1)}),[],!1,null,"3880bf12",null);t.default=r.exports},"798a9":function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=r("5530"),s=(r("96cf"),r("7db0"),r("d3b7"),r("e9c4"),r("159b"),r("c740"),r("a434"),r("f5ed")),i=r("9f53"),o=r("e320"),l=r("962f"),c=r("d9c3"),u=r("f8d8"),d=r("2f62");s={name:"salesOrderDetail",mixins:[s.a,i.a],props:["newTime","id","sitem"],components:{outOrderAddModel:l.default,addModel:c.default,inAddrModel:u.a},watch:{newTime:function(e){e&&this.initForm()}},computed:Object(n.a)(Object(n.a)({},Object(d.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"salesOrderDetail"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),data:function(){return{orderCode:"",outCode:"",is_all:!1,addrmodel:!1,statusOptions:[{id:"0",label:"待公司采购"},{id:"1",label:"待库管发货"},{id:"2",label:"待收货"},{id:"3",label:"已收货"},{id:"4",label:"已全部退货"}],showGoodsModel:!1,stock_code:"",tableData:[],loading:!1,queryId:"",status:"",showModel:null,modelId:"",modelItem:null,s_sitem:null,returnId:"",returnItem:null,returnModel:!1,is_return:!0}},mounted:function(){this.initForm()},methods:{closeModel:function(){this.modelId="",this.modelShowModel=!1},refresh:function(){this.$emit("refresh"),this.modelId="",this.modelShowModel=!1},initForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.status="",e.queryId=e.$route.query.id,e.resetForm();case 3:case"end":return t.stop()}}),t)})))()},getNewTime:function(){this.newTime=(new Date).valueOf()},resetForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$nextTick((function(){e.is_return=!0;var t=e.sitem,r=t.addrs,a=t.status,n=(t=(t.wsend_num,t.send_type,t.good_num),e.status=a,0);e.tableData=JSON.parse(JSON.stringify(r)),e.tableData.forEach((function(e){n+=+e.receipt_quantity})),n===+t&&(e.is_return=!1)}));case 2:case"end":return t.stop()}}),t)})))()},addrRefresh:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){var a,n,s,i,l,c,u;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t.loading){r.next=28;break}if(t.loading=!0,s=t.sitem,a=s.arrive_time,n=s.orderCode,s=s.wsend_num,i=e.list,l=0,c={arrtime:a,orderCode:n,addrlist:[]},i.forEach((function(e){l+=+e.receipt_quantity,e={contactor:e.contactor,mobile:e.mobile,addr:e.addr,addr_code:e.addr_code,receipt_quantity:e.receipt_quantity},c.addrlist.push(e)})),+s<0+l)return t.$message.warning("导入地址总数量不能大于未发货总数量!"),t.loading=!1,r.abrupt("return");r.next=12;break;case 12:return r.next=14,o.a.saleaddr(c);case 14:if(u=r.sent,t.loading=!1,!u||0!==u.code){r.next=22;break}t.$notify.success({title:"反馈物流费用成功!",message:""}),t.showModelThis=!1,t.$emit("refresh"),r.next=28;break;case 22:if(u&&100<=u.code&&u.code<=104)return r.next=25,t.logout();r.next=27;break;case 25:r.next=28;break;case 27:t.$message.warning(u.message);case 28:case"end":return r.stop()}}),r)})))()},editRow:function(e){-1!==this.stockForm.good_stock.findIndex((function(e){return!0===e.edit}))?this.$message.warning("当前已有发货仓库信息在编辑,请保存后再试!"):this.stockForm.good_stock[e].edit=!0},checkStockRow:function(e){var t=parseInt(this.stockForm.good_stock[e].usable_stock),r=parseInt(this.stockForm.good_stock[e].num);0===t?this.$message.warning("该仓库已无该商品库存!不能销售!"):t<r?this.$message.warning("销售数量不能大于可用库存!"):this.stockForm.good_stock[e].edit=!1},checkRow:function(e){var t=this;this.$refs.addrForm.validate((function(r){if(!r)return!1;t.tableData[e].edit=!1}))},deleteRow:function(e,t){t.splice(e,1)},submitForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.ruleForm.validate(function(){var t=Object(a.a)(regeneratorRuntime.mark((function t(r){var a,n,s;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r)return e.loading=!0,a=JSON.parse(JSON.stringify(e.addrForm)),a=a.order_addr,n={id:e.queryId,order_addr:[]},a.forEach((function(e){e={post_fee:e.post_fee,id:e.id},n.order_addr.push(e)})),t.next=7,o.a.salefee(n);t.next=23;break;case 7:if(s=t.sent,e.loading=!1,!s||0!==s.code){t.next=15;break}e.$notify.success({title:"反馈物流费用成功!",message:""}),e.showModelThis=!1,e.$emit("refresh"),t.next=21;break;case 15:if(s&&100<=s.code&&s.code<=104)return t.next=18,e.logout();t.next=20;break;case 18:t.next=21;break;case 20:e.$message.warning(s.message);case 21:t.next=25;break;case 23:return t.abrupt("return",!1);case 25:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()},openHouseModal:function(){this.modelId="add",this.modelItem=this.sitem,this.modelShowModel=!0},openModal:function(){this.returnId="add",this.returnItem=this.sitem,this.returnModel=!0}}},i=r("2877"),l=Object(i.a)(s,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"outOrderTable"},[r("el-table",{ref:"addrForm",staticStyle:{width:"100%"},attrs:{data:e.tableData,border:"",size:"mini","max-height":"300px","row-key":"key"}},[r("el-table-column",{attrs:{"show-overflow-tooltip":"",prop:"outCode",label:"发货申请单号",width:"155"}}),r("el-table-column",{attrs:{"show-overflow-tooltip":"",prop:"send_status",label:"状态",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-tag",{attrs:{size:e.tablebtnSize,type:"0"==t.row.send_status?"warning":""},domProps:{textContent:e._s((e.statusOptions.find((function(e){return e.id==t.row.send_status}))||{}).label||"--")}})]}}])}),r("el-table-column",{attrs:{"show-overflow-tooltip":"",prop:"receipt_quantity",label:"发货数量",width:"80"}}),r("el-table-column",{attrs:{"show-overflow-tooltip":"",prop:"contactor",label:"联系人",width:"80"}}),r("el-table-column",{attrs:{"show-overflow-tooltip":"",prop:"mobile",label:"联系电话",width:"110"}}),r("el-table-column",{attrs:{"show-overflow-tooltip":"",prop:"addr",label:"收货地址","min-width":"170"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.addr_info)+e._s(t.row.addr)+" ")]}}])}),r("el-table-column",{attrs:{"show-overflow-tooltip":"",prop:"post_name",label:"物流公司","min-width":"110"}}),r("el-table-column",{attrs:{"show-overflow-tooltip":"",prop:"post_code",label:"物流单号",width:"160"}}),r("el-table-column",{attrs:{"show-overflow-tooltip":"",prop:"sendtime",label:"发货时间",width:"145"}}),r("el-table-column",{attrs:{fixed:"right",width:"150"},scopedSlots:e._u([{key:"header",fn:function(t){return[r("span",[e._v("操作")]),"0"!==e.status&&"1"!==e.status||!e.powers.some((function(e){return"048"==e}))||"1"===e.sitem.send_type?e._e():r("el-tooltip",{staticClass:"fr",staticStyle:{margin:"3px 0 0 8px"},attrs:{effect:"dark",content:"添加",placement:"top"}},[r("i",{staticClass:"el-icon-circle-plus-outline tb-icon",staticStyle:{color:"#63cbe7",magin:"0 0 0 10px"},on:{click:function(t){return e.openHouseModal()}}})]),r("el-tooltip",{staticClass:"fr",staticStyle:{margin:"3px 0 0 8px"},attrs:{effect:"dark",content:"导入收货地址",placement:"top"}},[r("i",{staticClass:"el-icon-upload2 tb-icon",staticStyle:{color:"#63cbe7"},on:{click:function(t){e.addrmodel=!0}}})]),r("el-tooltip",{staticClass:"fr",staticStyle:{margin:"3px 0 0 8px"},attrs:{effect:"dark",content:"下载收货地址模板",placement:"top"}},[r("a",{staticClass:"downloadAddr",attrs:{href:"./static/收货地址模板.xlsx"}},[r("i",{staticClass:"el-icon-download tb-icon",staticStyle:{color:"#63cbe7",margin:"0"}})])]),r("el-tooltip",{staticClass:"fr",staticStyle:{margin:"3px 0 0 0"},attrs:{effect:"dark",content:"退货",placement:"top"}},[r("i",{staticClass:"el-icon-delete tb-icon",staticStyle:{color:"#63cbe7",magin:"0 0 0 10px"},on:{click:function(t){return e.openModal()}}})])]}},{key:"default",fn:function(t){return[e.powers.some((function(e){return"007"==e}))?r("el-tooltip",{attrs:{effect:"dark",content:"查看",placement:"top"}},[r("i",{staticClass:"el-icon-view tb-icon",on:{click:function(r){return e.routeGoto("sellOutOrderDetail",{id:t.row.outCode})}}})]):e._e()]}}])})],1),r("out-order-add-model",{attrs:{showModel:e.modelShowModel,id:e.modelId,sitem:e.modelItem},on:{refresh:e.refresh,closeModel:function(t){e.modelShowModel=!1}}}),r("in-addr-model",{attrs:{"show-model":e.addrmodel},on:{cancel:function(t){e.addrmodel=!1},refresh:e.addrRefresh}}),r("add-model",{attrs:{id:e.returnId,sitem:e.returnItem,"show-model":e.returnModel,"is-detail":!1},on:{refresh:e.refresh,cancel:function(t){e.returnModel=!1}}})],1)}),[],!1,null,"64d2fc14",null);t.default=l.exports},"7a70":function(e,t,r){},"7a78":function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=r("5530"),s=(r("96cf"),r("7db0"),r("d3b7"),r("f5ed")),i=r("9f53"),o=r("1120"),l=r("406e"),c=r("2f62"),u=r("fa93"),d=r("0d0c");s={name:"stockApplyDetail",mixins:[s.a,i.a],components:{addEdit:l.default,PurchaseBack:d.default},computed:Object(n.a)(Object(n.a)({},Object(c.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"stockApplyDetail"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),data:function(){return{activeTabs:"0",activeNames:["0","1","2","3","4"],showColumns:u.b,newTime:"",isDisabled:!1,queryId:"",queryType:"",loading:!0,sitem:null,status:"",statusOptions:[{value:"1",label:"待采购反馈"},{value:"2",label:"已生成采购单"},{value:"4",label:"已取消采购"}]}},mounted:function(){var e=this.$route.query,t=e.id;e=e.type;this.queryId=t,this.queryType=e,this.activeTabs="add"===e?"0":"1","add"===this.queryType?(this.sitem={},this.getNewTime()):this.initData()},methods:{initData:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r,a,n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,t.next=3,o.a.detail({id:e.queryId});case 3:if(a=t.sent,n=a.code,r=a.data,a=a.message,0!==n){t.next=14;break}n=r.status,e.sitem=r,e.status=n,e.getNewTime(),t.next=20;break;case 14:if(res&&100<=res.code&&res.code<=104)return t.next=17,e.logout();t.next=19;break;case 17:t.next=20;break;case 19:e.$message.warning(a);case 20:e.loading=!1;case 21:case"end":return t.stop()}}),t)})))()},statusConfirm:function(e,t){var r=this;return Object(a.a)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r.$confirm("确定要".concat(t,"?"),{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(a.a)(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if("-1"===e)return a.next=3,r.deleteById(t);a.next=5;break;case 3:a.next=8;break;case 5:return r.isDisabled=!0,a.next=8,r.setStatus(e,t);case 8:case"end":return a.stop()}}),a)})))).catch((function(){}));case 2:case"end":return n.stop()}}),n)})))()},deleteById:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){var a;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,o.a.delete({id:t.queryId});case 2:if(!(a=r.sent)||0!==a.code){r.next=8;break}t.$notify.success({title:e+"成功!",message:""}),t.routeGoto("stockApply",{}),r.next=14;break;case 8:if(a&&100<=a.code&&a.code<=104)return r.next=11,t.logout();r.next=13;break;case 11:r.next=14;break;case 13:t.$message.warning(a.message);case 14:case"end":return r.stop()}}),r)})))()},setStatus:function(e,t){var r=this;return Object(a.a)(regeneratorRuntime.mark((function a(){var n,s;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return n={id:r.queryId,status:e},a.next=3,o.a.status(n);case 3:if(s=a.sent,r.loading=!1,!s||0!==s.code){a.next=10;break}r.$notify.success({title:t+"成功!",message:""}),r.initData(),a.next=16;break;case 10:if(s&&100<=s.code&&s.code<=104)return a.next=13,r.logout();a.next=15;break;case 13:a.next=16;break;case 15:r.$message.warning(s.message);case 16:case"end":return a.stop()}}),a)})))()},getNewTime:function(){this.newTime=(new Date).valueOf()}}},i=r("2877"),l=Object(i.a)(s,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("div",{staticClass:"stockApplyDetail pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"007"==e}))?t("div",[t("el-tabs",{model:{value:e.activeTabs,callback:function(t){e.activeTabs=t},expression:"activeTabs"}},["add"===e.queryType?t("el-tab-pane",{attrs:{label:"新建备库申请单",name:"0"}},[""!=e.newTime?t("add-edit",{attrs:{sitem:e.sitem,id:e.queryId,newTime:e.newTime,type:e.queryId},on:{refresh:function(t){return e.routeReGoto("stockApply",{})}}}):e._e()],1):e._e(),"view"===e.queryType?t("el-tab-pane",{attrs:{label:"业务详情",name:"1"}},[t("el-collapse",{staticStyle:{margin:"-18px 0 0 0"},model:{value:e.activeNames,callback:function(t){e.activeNames=t},expression:"activeNames"}},[t("el-collapse-item",{attrs:{name:"1",title:"备库详情"}},[""!==e.newTime?t("show-data-table",{attrs:{newTime:e.newTime,sitem:e.sitem,columns:e.showColumns}},[t("template",{slot:"status"},[t("el-tag",{attrs:{size:"mini",type:"0"==e.sitem.status?"warning":""},domProps:{textContent:e._s((e.statusOptions.find((function(t){return t.value==e.sitem.status}))||{}).label||"--")}})],1),t("template",{slot:"file_url"},[t("el-link",{attrs:{underline:!1,href:e.sitem.file_url,target:"_blank"}},[e._v(e._s(e.sitem.file_name))])],1)],2):e._e()],1),t("el-collapse-item",{attrs:{name:"2",title:"商品详情"}},[""!==e.newTime?t("show-goods-data-table",{attrs:{newTime:e.newTime,type:"1",iscgd:!0,skucode:e.sitem.skuCode,spucode:e.sitem.spuCode}}):e._e()],1),"1"===e.status&&e.powers.some((function(e){return"024"==e}))?t("el-collapse-item",{attrs:{name:"3",title:"采购反馈-设置入库的仓库"}},[""!=e.newTime?t("purchase-back",{attrs:{sitem:e.sitem,id:e.queryId,newTime:e.newTime},on:{refresh:e.initData}}):e._e()],1):e._e()],1)],1):e._e(),"view"===e.queryType?t("el-tab-pane",{attrs:{label:"审批记录",name:"2"}},[""!==e.newTime?t("process-time-line",{attrs:{newTime:e.newTime,type:"BHD",orderCode:e.queryId}}):e._e()],1):e._e()],1)],1):t("div",[t("no-auth")],1)])}),[],!1,null,null,null);t.default=l.exports},"7ab5":function(e,t,r){"use strict";r("9619b")},"7b4a":function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=r("ade3"),s=r("5530"),i=(r("96cf"),r("7db0"),r("d3b7"),r("159b"),r("b0c0"),r("a9e3"),r("f5ed")),o=r("9f53"),l=r("8394"),c=[{prop:"cgdNo",label:"采购单编号",width:"160px"},{prop:"status",label:"状态",_slot_:"status",width:"120px"},{prop:"apply_name",label:"申请人",width:"65px"},{prop:"good_code",label:"商品编码",width:"150px"},{prop:"good_name",label:"商品名称"},{prop:"class_cat",label:"商品分类"},{prop:"good_weight",label:"商品总重量(g)",width:"110px"},{prop:"diff_weight",label:"工差总重量(g)",width:"110px"},{prop:"addtime",label:"创建时间",width:"140px",sortable:!0},{prop:"",label:"操作",fixed:"right",_noset_:!0,width:"52px",_slot_:"operation"}],u=r("2f62");i={name:"purchaseDiffOrder",mixins:[i.a,o.a],components:{},computed:Object(s.a)(Object(s.a)({},Object(u.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"purchaseDiffOrder"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),data:function(){var e={sitem:null,select:"cgdNo",s_input:"",statusOptions:[{id:"1",label:"待业务部门审核"},{id:"2",label:"工差单审核完成"}],loading:!0,showModel:!1,isDetail:!1,modelId:0,parmValue:{name:"",username:"",apply_name:"",cgdNo:"",status:"",start:"",end:"",page:1,size:15},tableData:[],passwordModel:!1,passwordModelId:0,isPasswordDetail:!1};return Object(n.a)(e,"tableData",[]),Object(n.a)(e,"table",{stripe:!0,border:!0,_defaultHeader_:["setcol"]}),Object(n.a)(e,"pageInfo",{size:15,curr:1,total:0}),Object(n.a)(e,"columns",c),e},mounted:function(){this.searchList()},methods:{restSearch:function(){this.parmValue={name:"",username:"",status:"",start:"",end:"",page:1,size:15},this.pageInfo={size:15,curr:1,total:0},this.searchList()},handleTime:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:""!==e.startTime?t.parmValue.start=e.startTime:t.parmValue.start="",""!==e.endTime?t.parmValue.end=e.endTime:t.parmValue.end="";case 2:case"end":return r.stop()}}),r)})))()},openModal:function(e,t,r){this.showModel=!0,this.modelId=e,this.isDetail=t,this.sitem=r},deleteById:function(e,t){var r=this;return Object(a.a)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r.$confirm("确定要删除?",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(a.a)(regeneratorRuntime.mark((function a(){var n,s;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return n={id:e,status:"1"===t?"0":"1"},a.next=3,l.a.status(n);case 3:if(!(s=a.sent)||0!==s.code){a.next=9;break}r.$notify.success({title:"删除成功",message:""}),r.searchList(),a.next=15;break;case 9:if(s&&100<=s.code&&s.code<=104)return a.next=12,r.logout();a.next=14;break;case 12:a.next=15;break;case 14:r.$message.warning(s.message);case 15:case"end":return a.stop()}}),a)})))).catch((function(){}));case 2:case"end":return n.stop()}}),n)})))()},searchList:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(""!==e.parmValue.start&&""===e.parmValue.end||""===e.parmValue.start&&""!==e.parmValue.end)return e.$message.warning("时间区间不完整!"),t.abrupt("return");t.next=3;break;case 3:return e.loading=!0,t.next=6,l.a.list(e.parmValue);case 6:if(!(r=t.sent)||0!==r.code||!r.data){t.next=13;break}e.tableData=r.data.list,e.tableData.forEach((function(e){e.class_cat="",e.can&&0<e.can.length&&(e.class_cat="",e.can.forEach((function(t,r){e.class_cat+=0===r?t.name:"/"+t.name})))})),e.pageInfo.total=Number(r.data.count),t.next=20;break;case 13:if(r&&100<=r.code&&r.code<=104)return t.next=16,e.logout();t.next=18;break;case 16:t.next=20;break;case 18:e.tableData=[],e.pageInfo.total=0;case 20:e.loading=!1;case 21:case"end":return t.stop()}}),t)})))()},statusConfirm:function(e,t){var r=this;return Object(a.a)(regeneratorRuntime.mark((function n(){var s;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return s="1"===t?"禁用":"启用",n.next=3,r.$confirm("确定要改为"+s+"?",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(a.a)(regeneratorRuntime.mark((function a(){var n,s;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return r.loading=!0,n={id:e,status:"1"===t?"0":"1"},a.next=4,l.a.status(n);case 4:if((s=a.sent)&&0===s.code)return r.loading=!1,r.$notify.success({title:"状态修改成功!",message:""}),a.next=10,r.searchList();a.next=12;break;case 10:a.next=18;break;case 12:if(s&&100<=s.code&&s.code<=104)return a.next=15,r.logout();a.next=17;break;case 15:a.next=18;break;case 17:r.$message.warning(s.message);case 18:case"end":return a.stop()}}),a)})))).catch((function(){}));case 3:case"end":return n.stop()}}),n)})))()},handleValue:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.parmValue.cgdNo="cgdNo"===e.select?e.s_input:"",e.parmValue.apply_name="apply_name"===e.select?e.s_input:"",t.next=4,e.searchList();case 4:case"end":return t.stop()}}),t)})))()}}},r("ff75"),o=r("2877"),s=Object(o.a)(i,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"purchaseDiffOrder pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?r("div",[r("ex-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{table:e.table,data:e.tableData,columns:e.columns,page:e.pageInfo,size:e.size},on:{"page-curr-change":e.handlePageChange,"page-size-change":e.handleSizeChange,"screen-reset":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()},"screen-submit":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},scopedSlots:e._u([{key:"table-header",fn:function(t){return[r("div",{staticStyle:{width:"100%"}},[r("el-row",{staticStyle:{padding:"0 0 0 80px"}},[r("el-col",{staticStyle:{width:"140px"},attrs:{span:4}},[r("el-select",{staticStyle:{width:"100%"},attrs:{size:e.searchSize,filterable:"",clearable:"",placeholder:"工差单状态"},on:{change:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.parmValue.status,callback:function(t){e.$set(e.parmValue,"status",t)},expression:"parmValue.status"}},e._l(e.statusOptions,(function(e){return r("el-option",{key:"status"+e.code,attrs:{label:e.label,value:e.id}})})),1)],1),r("el-col",{staticStyle:{width:"303px",padding:"0 0 0 10px"},attrs:{span:6}},[r("period-date-picker",{attrs:{type:1,width:"135px",size:e.searchSize,start:e.parmValue.start,end:e.parmValue.end},on:{timeReturned:e.handleTime}})],1),r("el-col",{staticStyle:{width:"66px",float:"right"},attrs:{span:3}},[r("el-button",{staticStyle:{float:"right","margin-left":"5px"},attrs:{size:e.searchSize,type:"primary"},on:{click:e.searchList}},[e._v(" 刷新 ")])],1),r("el-col",{staticStyle:{width:"66px",float:"right"},attrs:{span:4}},[r("el-button",{staticClass:"fr",attrs:{type:"warning",size:e.searchSize},on:{click:e.restSearch}},[e._v(" 重置 ")])],1)],1),r("el-row",{staticStyle:{padding:"10px 0 0 0"}},[r("el-col",{staticStyle:{width:"400px",padding:"0 0 0 0px"},attrs:{span:6}},[r("el-input",{staticClass:"input-with-select",attrs:{clearable:"",placeholder:"关键字",maxlength:"40",size:e.searchSize},model:{value:e.s_input,callback:function(t){e.s_input=t},expression:"s_input"}},[r("el-select",{staticStyle:{width:"125px"},attrs:{slot:"prepend",placeholder:"关键字类型"},on:{change:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},slot:"prepend",model:{value:e.select,callback:function(t){e.select=t},expression:"select"}},[r("el-option",{attrs:{label:"采购单编号",value:"cgdNo"}}),r("el-option",{attrs:{label:"申请人",value:"apply_name"}})],1),r("el-button",{attrs:{slot:"append",icon:"el-icon-search"},on:{click:e.handleValue},slot:"append"})],1)],1)],1)],1)]}},{key:"status",fn:function(t){var a=t.scope;return[r("el-tag",{attrs:{size:e.tablebtnSize,type:"0"==a.row.status?"warning":""},domProps:{textContent:e._s((e.statusOptions.find((function(e){return e.id==a.row.status}))||{}).label||"--")}})]}},{key:"operation",fn:function(t){var a=t.scope;return[e.powers.some((function(e){return"007"==e}))?r("el-tooltip",{attrs:{effect:"dark",content:"详情",placement:"top"}},[r("i",{staticClass:"el-icon-view tb-icon",on:{click:function(t){return e.routeGoto("purchaseDiffOrderDetail",{id:a.row.id})}}})]):e._e()]}}],null,!1,2053588666)})],1):r("div",[r("no-auth")],1)])}),[],!1,null,"78bef25b",null);t.default=s.exports},"7caa":function(e,t,r){"use strict";var a=r("1b69"),n="admin/";t.a={detail:function(e,t){return Object(a.a)(n+"system",e,"post",t)},list:function(e,t){return Object(a.a)(n+"system",e,"post",t)},update:function(e,t){return Object(a.a)(n+"setconf",e,"post",t)}}},"7dbe":function(e,t,r){"use strict";var a=r("1b69"),n="admin/";t.a={detail:function(e,t){return Object(a.a)(n+"consultzxinfo",e,"post",t)},update:function(e,t){return Object(a.a)(n+"zxedit",e,"post",t)},status:function(e,t){return Object(a.a)(n+"consultbar",e,"post",t)},feedList:function(e,t){return Object(a.a)(n+"consultbidlist",e,"post",t)},add:function(e,t){return Object(a.a)(n+"consultcreate",e,"post",t)},plist:function(e,t){return Object(a.a)(n+"projectlist",e,"post",t)},delete:function(e,t){return Object(a.a)(n+"delete",e,"post",t)},list:function(e,t){return Object(a.a)(n+"consultlists",e,"post",t)},pdetail:function(e,t){return Object(a.a)(n+"projectinfo",e,"post",t)},bargain_add:function(e,t){return Object(a.a)(n+"consultbaradd",e,"post",t)},bidscheck:function(e,t){return Object(a.a)(n+"bidscheck",e,"post",t)},consultorder:function(e,t){return Object(a.a)(n+"consultorder",e,"post",t)},addrall:function(e,t){return Object(a.a)(n+"addrall",e,"post",t)},golpricelast:function(e,t){return Object(a.a)(n+"golpricelast",e,"post",t)}}},"7e10":function(e,t,r){"use strict";r.r(t);var a=[function(){var e=this.$createElement;e=this._self._c||e;return e("div",{staticClass:"dingLoading"},[e("img",{attrs:{src:r("f8b2"),alt:""}})])}],n={name:"loadingPage",data:function(){return{}},mounted:function(){}},s=(r("04c0"),r("2877"));s=Object(s.a)(n,(function(){this.$createElement;return this._self._c,this._m(0)}),a,!1,null,"17af7bec",null);t.default=s.exports},"7e66":function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=r("5530"),s=(r("96cf"),r("7db0"),r("d3b7"),r("a9e3"),r("c717")),i=r("0ee5"),o=r("e66a"),l=r("f5ed"),c=r("2f62"),u=r("2a17"),d=r("9f53");l={name:"supplier",mixins:[l.a,d.a],components:{showBrandList:u.default},computed:Object(n.a)(Object(n.a)({},Object(c.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"supplier"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),data:function(){return{statusList:i.a,roleLevel:o.a,loading:!0,showModel:!1,modelSitem:null,stype:{},parmValue:{page:1,size:15,start:"",end:"",status:"",creater:"",name:"",ocr_status:""},statusOptions:[{id:"0",label:"禁用"},{id:"1",label:"启用"}],ocr_status:[{id:"0",label:"未上传"},{id:"1",label:"识别成功"},{id:"2",label:"识别失败"}],tableData:[],table:{stripe:!0,border:!0,_defaultHeader_:["setcol"]},pageInfo:{size:15,curr:1,total:0},columns:[{prop:"code",label:"编号",width:"160"},{prop:"name",label:"供应商名称"},{prop:"status",label:"状态",width:"60",_slot_:"status"},{prop:"ocr_status",label:"营业执照识别状态",width:"120",_slot_:"ocr_status"},{prop:"legaler",label:"法人",width:"80"},{prop:"person",label:"负责人",width:"100"},{prop:"creater",label:"创建人",width:"100"},{prop:"addtime",label:"创建时间",width:"145",sortable:!0},{prop:"",label:"操作",fixed:"right",width:"180",_noset_:!0,_slot_:"operation"}]}},mounted:function(){this.searchList()},methods:{restSearch:function(){this.pageInfo={size:15,curr:1,total:0},this.parmValue={page:1,size:15,start:"",end:"",status:"",creater:"",name:"",person:"",ocr_status:""},this.searchList()},openModal:function(e){this.modelSitem=e,this.showModel=!0},handleTime:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t.parmValue.start=e.startTime||"",t.parmValue.end=e.endTime||"",""!==t.parmValue.start&&""!==t.parmValue.end||""===t.parmValue.start&&""===t.parmValue.end)return t.pageInfo.curr=1,t.parmValue.page=1,r.next=7,t.searchList();r.next=7;break;case 7:case"end":return r.stop()}}),r)})))()},gotoEdit:function(e,t){var r=e.status;"005"===t&&"1"===r?this.$message.warning("禁用后,才可以修改!"):this.routeGoto("supplierDetail",{id:e.id,type:"edit"})},changeStatus:function(e,t){var r=this;return Object(a.a)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r.$confirm("确定要改为".concat("1"===t?"禁用":"启用","?"),{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(a.a)(regeneratorRuntime.mark((function a(){var n,i;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return r.loading=!0,n={id:e,status:"1"===t?"0":"1"},a.next=4,s.a.status(n);case 4:if((i=a.sent)&&0===i.code)return r.loading=!1,r.$notify.success({title:"状态修改成功!",message:""}),a.next=10,r.searchList();a.next=12;break;case 10:a.next=19;break;case 12:if(i&&100<=i.code&&i.code<=104)return a.next=15,r.logout();a.next=17;break;case 15:a.next=19;break;case 17:r.loading=!1,r.$message.warning(i.message);case 19:case"end":return a.stop()}}),a)})))).catch((function(){}));case 2:case"end":return n.stop()}}),n)})))()},deleteItem:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t.$confirm("确定要删除?",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(a.a)(regeneratorRuntime.mark((function r(){var a,n;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a={id:e},r.next=3,s.a.delete(a);case 3:if(!(n=r.sent)||0!==n.code){r.next=9;break}t.$notify.success({title:"删除成功",message:""}),t.searchList(),r.next=15;break;case 9:if(n&&100<=n.code&&n.code<=104)return r.next=12,t.logout();r.next=14;break;case 12:r.next=15;break;case 14:t.$message.warning(n.message);case 15:case"end":return r.stop()}}),r)})))).catch((function(){}));case 2:case"end":return r.stop()}}),r)})))()},searchList:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r,a,n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(""!==e.parmValue.start&&""===e.parmValue.end||""==e.parmValue.start&&""!=e.parmValue.end)return e.$message.warning("开始时间和结束时间不能为空"),t.abrupt("return");t.next=3;break;case 3:return e.loading=!0,t.next=6,s.a.list(e.parmValue);case 6:if(r=t.sent,a=r.code,n=r.data,r.message,0!==(r=parseInt(a+""))){t.next=17;break}a=n.list,n=n.count,e.tableData=a,e.pageInfo.total=Number(n+""),t.next=24;break;case 17:if(100<=r&&r<=104)return t.next=20,e.logout();t.next=22;break;case 20:t.next=24;break;case 22:e.tableData=[],e.pageInfo.total=0;case 24:e.loading=!1;case 25:case"end":return t.stop()}}),t)})))()}}},d=r("2877"),u=Object(d.a)(l,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"supplier pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?r("ex-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{table:e.table,data:e.tableData,columns:e.columns,page:e.pageInfo,size:e.size},on:{"page-curr-change":e.handlePageChange,"page-size-change":e.handleSizeChange,"screen-reset":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()},"screen-submit":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},scopedSlots:e._u([{key:"table-header",fn:function(t){return[r("div",{staticStyle:{width:"100%"}},[r("el-row",{staticStyle:{padding:"0 0 10px 80px"}},[r("el-col",{staticStyle:{width:"303px"},attrs:{span:6}},[r("period-date-picker",{attrs:{type:1,width:"135px",size:e.searchSize,start:e.parmValue.start,end:e.parmValue.end},on:{timeReturned:e.handleTime}})],1),r("el-col",{staticStyle:{width:"160px"},attrs:{span:4}},[r("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"",clearable:"",size:e.searchSize,placeholder:"状态"},on:{change:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.parmValue.status,callback:function(t){e.$set(e.parmValue,"status",t)},expression:"parmValue.status"}},e._l(e.statusList,(function(e){return r("el-option",{key:"status"+e.code,attrs:{label:e.name,value:e.code}})})),1)],1),r("el-col",{staticStyle:{width:"200px",padding:"0 0 0 10px"},attrs:{span:4}},[r("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"",clearable:"",size:e.searchSize,placeholder:"营业执照识别状态"},on:{change:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.parmValue.ocr_status,callback:function(t){e.$set(e.parmValue,"ocr_status",t)},expression:"parmValue.ocr_status"}},e._l(e.ocr_status,(function(e){return r("el-option",{key:"ocr_status"+e.id,attrs:{label:e.label,value:e.id}})})),1)],1),r("el-col",{staticClass:"fr",staticStyle:{width:"66px",padding:"0 0 0 10px"},attrs:{span:3}},[r("el-button",{attrs:{type:"primary",size:e.searchSize},on:{click:e.searchList}},[e._v(" 刷新 ")])],1),r("el-col",{staticClass:"fr",staticStyle:{width:"66px",padding:"0 0 0 10px"},attrs:{span:3}},[r("el-button",{attrs:{type:"warning",size:e.searchSize},on:{click:e.restSearch}},[e._v(" 重置 ")])],1)],1),r("el-row",[r("el-col",{staticStyle:{width:"373px"},attrs:{span:4}},[r("el-input",{attrs:{size:e.searchSize,maxlength:40,placeholder:"供应商名称"},on:{blur:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.parmValue.name,callback:function(t){e.$set(e.parmValue,"name",t)},expression:"parmValue.name"}})],1),r("el-col",{staticStyle:{width:"170px",padding:"0 0 0 10px"},attrs:{span:4}},[r("el-input",{attrs:{size:e.searchSize,maxlength:40,placeholder:"创建人"},on:{change:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.parmValue.creater,callback:function(t){e.$set(e.parmValue,"creater",t)},expression:"parmValue.creater"}})],1),r("el-col",{staticStyle:{width:"170px",padding:"0 0 0 10px"},attrs:{span:4}},[r("el-input",{attrs:{size:e.searchSize,maxlength:40,placeholder:"负责人"},on:{change:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.parmValue.person,callback:function(t){e.$set(e.parmValue,"person",t)},expression:"parmValue.person"}})],1),e.powers.some((function(e){return"003"==e}))?r("el-col",{staticClass:"fr",staticStyle:{width:"66px",padding:"0 0 0 10px"},attrs:{span:3}},[r("el-button",{staticStyle:{float:"right"},attrs:{size:e.searchSize,type:"success"},on:{click:function(t){return e.routeGoto("supplierDetail",{id:"add",type:"add"})}}},[e._v(" 添加 ")])],1):e._e()],1)],1)]}},{key:"status",fn:function(t){var a=t.scope;return[r("el-tag",{attrs:{size:e.tablebtnSize,type:"0"==a.row.status?"warning":""},domProps:{textContent:e._s((e.statusOptions.find((function(e){return e.id==a.row.status}))||{}).label||"--")}})]}},{key:"ocr_status",fn:function(t){var a=t.scope;return[r("el-tag",{attrs:{size:e.tablebtnSize,type:"0"==a.row.ocr_status?"info":"1"==a.row.ocr_status?"primary":"2"==a.row.ocr_status?"danger":""},domProps:{textContent:e._s((e.ocr_status.find((function(e){return e.id==a.row.ocr_status}))||{}).label||"--")}})]}},{key:"operation",fn:function(t){var a=t.scope;return[e.powers.some((function(e){return"007"==e}))?r("el-tooltip",{attrs:{effect:"dark",content:"详情",placement:"top"}},[r("i",{staticClass:"el-icon-view tb-icon",on:{click:function(t){return e.routeGoto("supplierDetail",{id:a.row.id,type:"view"})}}})]):e._e(),e.powers.some((function(e){return"005"==e}))?r("el-tooltip",{attrs:{effect:"dark",content:"修改",placement:"top"}},[r("i",{staticClass:"el-icon-edit tb-icon",on:{click:function(t){return e.gotoEdit(a.row,"005")}}})]):e._e(),e.powers.some((function(e){return"004"==e}))&&"1"===a.row.status?r("el-tooltip",{attrs:{effect:"dark",content:"禁用",placement:"top"}},[r("i",{staticClass:"el-icon-video-pause tb-icon",on:{click:function(t){return e.changeStatus(a.row.id,a.row.status)}}})]):e._e(),e.powers.some((function(e){return"004"==e}))&&"0"===a.row.status?r("el-tooltip",{attrs:{effect:"dark",content:"启用",placement:"top"}},[r("i",{staticClass:"el-icon-video-play tb-icon",on:{click:function(t){return e.changeStatus(a.row.id,a.row.status)}}})]):e._e(),e.powers.some((function(e){return"006"==e}))?r("el-tooltip",{attrs:{effect:"dark",content:"删除",placement:"top"}},[r("i",{staticClass:"el-icon-delete tb-icon",on:{click:function(t){return e.deleteItem(a.row.id)}}})]):e._e(),e.powers.some((function(e){return"072"==e}))?r("el-tooltip",{attrs:{effect:"dark",content:"查看支持品牌",placement:"top"}},[r("i",{staticClass:"el-icon-search tb-icon",on:{click:function(t){return e.openModal(a.row)}}})]):e._e()]}}],null,!1,740115070)}):r("no-auth"),r("show-brand-list",{attrs:{sitem:e.modelSitem,"show-model":e.showModel},on:{refresh:function(t){e.showModel=!1},cancel:function(t){e.showModel=!1}}})],1)}),[],!1,null,"49fb4b90",null);t.default=u.exports},"7efc":function(e,t,r){},"7f3a":function(e,t,r){"use strict";r("0cd5")},"7f68":function(e,t,r){"use strict";r("71bd")},8064:function(e,t,r){"use strict";r("62c7")},8082:function(e,t,r){"use strict";r("9163")},"80ae":function(e,t,r){},"80c2":function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=r("5530"),s=(r("96cf"),r("7db0"),r("d3b7"),r("3ca3"),r("ddb0"),r("2b3d"),r("9861"),r("f5ed")),i=r("9f53"),o=r("452f"),l=r("1e5d"),c=r("9ab0"),u=r("5daa"),d=r("2f62");s={name:"checkDetail",mixins:[s.a,i.a],components:{addEdit:l.default,resultUplod:c.default},computed:Object(n.a)(Object(n.a)({},Object(d.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"checkDetail"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),data:function(){return{code:"",activeTabs:"1",statusOptions:[{value:"0",label:"发起审核流程"},{value:"1",label:"上传盘点结果"},{value:"2",label:"盘点审核"},{value:"3",label:"系统更新"},{value:"4",label:"盘点完成 "}],activeNames:["-1","0","1","2","3","4"],sitem:null,status:"",newTime:"",fileUrl:u.a.baseURL,loading:!0,queryId:""}},mounted:function(){this.status="",this.queryId=this.$route.query.id,this.initData()},methods:{initData:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,t.next=3,o.a.detail({id:e.queryId});case 3:if(!(r=t.sent)||0!==r.code||!r.data){t.next=11;break}e.sitem=r.data,e.status=e.sitem.status,e.code=r.data.check_code,e.getNewTime(),t.next=17;break;case 11:if(r&&100<=r.code&&r.code<=104)return t.next=14,e.logout();t.next=16;break;case 14:t.next=17;break;case 16:e.$message.warning(r.message);case 17:e.loading=!1;case 18:case"end":return t.stop()}}),t)})))()},statusConfirm:function(e,t){var r=this;return Object(a.a)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r.$confirm("确定要".concat(t,"?"),{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(a.a)(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if("-1"===e)return a.next=3,r.deleteById(t);a.next=5;break;case 3:a.next=12;break;case 5:if("-2"===e)return a.next=8,r.exportGood(t);a.next=10;break;case 8:a.next=12;break;case 10:return a.next=12,r.setStatus(e,t);case 12:case"end":return a.stop()}}),a)})))).catch((function(){}));case 2:case"end":return n.stop()}}),n)})))()},getNewTime:function(){this.newTime=(new Date).valueOf()},exportGood:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){var a,n;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:t.loading||(t.loading=!0,a="aplication/zip",n={id:t.queryId},axios({method:"post",url:t.fileUrl+"admin/checkexport",responseType:"blob",data:n,headers:{Accept:a}}).then((function(r){var n,s;r&&200==r.status&&r.data?(n=new Blob([r.data],{type:a}),n=window.URL.createObjectURL(n),(s=document.createElement("a")).style.display="none",s.href=n,s.setAttribute("download","".concat(e,".zip")),document.body.appendChild(s),s.click(),document.body.removeChild(s),window.URL.revokeObjectURL(n),t.$message.success("".concat(e,"导出成功!"))):t.$message.error(r.data.message),setTimeout((function(){t.loading=!1}),500)})).catch((function(e){t.loading=!1})));case 1:case"end":return r.stop()}}),r)})))()},deleteById:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){var a;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,o.a.delete({id:t.queryId});case 2:if(!(a=r.sent)||0!==a.code){r.next=8;break}t.$notify.success({title:e+"成功!",message:""}),t.routeGoto("check",{}),r.next=14;break;case 8:if(a&&100<=a.code&&a.code<=104)return r.next=11,t.logout();r.next=13;break;case 11:r.next=14;break;case 13:t.$message.warning(a.message);case 14:case"end":return r.stop()}}),r)})))()},setStatus:function(e,t,r){var n=this;return Object(a.a)(regeneratorRuntime.mark((function a(){var s,i;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return s={id:n.queryId,remark:r||"",status:e},a.next=3,o.a.status(s);case 3:if(i=a.sent,n.loading=!1,!i||0!==i.code){a.next=10;break}n.$notify.success({title:t+"成功!",message:""}),n.initData(),a.next=16;break;case 10:if(i&&100<=i.code&&i.code<=104)return a.next=13,n.logout();a.next=15;break;case 13:a.next=16;break;case 15:n.$message.warning(i.message);case 16:case"end":return a.stop()}}),a)})))()},examForm:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){var a;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t.loading){r.next=4;break}return a="1"===e.state?"3":"1",r.next=4,t.setStatus(a,"盘点审核",e.remark);case 4:case"end":return r.stop()}}),r)})))()}}},r("9b9d"),i=r("2877"),l=Object(i.a)(s,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"checkDetail pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?t("div",{staticStyle:{width:"100%"}},[t("div",{staticClass:"detail-page-title"},[t("span",[e._v("盘点编号:")]),e.sitem?t("span",[e._v(e._s(e.sitem.check_code))]):e._e(),"0"!==e.status&&"1"!==e.status||!e.powers.some((function(e){return"015"==e}))?e._e():t("el-button",{staticClass:"fr",attrs:{type:"danger",plain:"",size:"mini"},on:{click:function(t){return e.statusConfirm("-1","作废该条信息")}}},[e._v("作废该条信息")]),"1"===e.status&&e.powers.some((function(e){return"019"==e}))?t("el-button",{staticClass:"fr",attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.statusConfirm("-2","导出盘点商品")}}},[e._v("导出盘点商品 ")]):e._e()],1),t("el-tabs",{model:{value:e.activeTabs,callback:function(t){e.activeTabs=t},expression:"activeTabs"}},[t("el-tab-pane",{attrs:{label:"业务详情",name:"1"}},[t("el-collapse",{staticStyle:{margin:"-18px 0 0 0"},model:{value:e.activeNames,callback:function(t){e.activeNames=t},expression:"activeNames"}},[t("el-collapse-item",{attrs:{title:"盘点详情",name:"-1"}},[""!==e.newTime?t("add-edit",{attrs:{newTime:e.newTime,sitem:e.sitem,id:e.queryId},on:{refresh:function(t){return e.initData()}}}):e._e()],1),"0"===e.status&&e.powers.some((function(e){return"012"==e}))||"1"===e.status&&e.powers.some((function(e){return"014"==e}))?t("el-collapse-item",{attrs:{title:"发起审核流程",name:"1"}},["0"===e.status&&e.powers.some((function(e){return"012"==e}))?t("el-button",{attrs:{type:"primary",plain:"",size:"mini"},on:{click:function(t){return e.statusConfirm("1","发起审核流程")}}},[e._v("发起审核流程 ")]):e._e(),"1"===e.status&&e.powers.some((function(e){return"014"==e}))?t("el-button",{attrs:{plain:"",size:"mini"},on:{click:function(t){return e.statusConfirm("0","取消审核流程")}}},[e._v("取消审核流程")]):e._e()],1):e._e(),"3"==e.status||"1"==e.status&&e.powers.some((function(e){return"017"==e}))||"2"==e.status&&e.powers.some((function(e){return"018"==e}))?t("el-collapse-item",{attrs:{title:"盘点结果记录",name:"1"}},[t("result-uplod",{attrs:{newTime:e.newTime,sitem:e.sitem,id:e.queryId},on:{refresh:function(t){return e.initData()}}})],1):e._e(),"2"==e.status&&e.powers.some((function(e){return"018"==e}))?t("el-collapse-item",{attrs:{title:"盘点审核",name:"2"}},[t("exam-form",{attrs:{statusList:e.statusList,newTime:e.newTime,disabled:!1,isMust:!1},on:{searchChange:e.examForm}})],1):e._e()],1)],1),t("el-tab-pane",{attrs:{label:"审批记录",name:"2"}},[""!==e.newTime?t("process-time-line",{attrs:{newTime:e.newTime,type:"PDD",orderCode:e.code}}):e._e()],1)],1)],1):t("div",[t("no-auth")],1)])}),[],!1,null,"44e704a8",null);t.default=l.exports},8177:function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=(r("e9c4"),r("96cf"),r("456f")),s={name:"terrace",props:["showModel","id","sitem"],mixins:[r("9f53").a],data:function(){return{loading:!1,title:"添加平台",showModelThis:this.showModel,options:[{value:"1",label:"toB"},{value:"0",label:"toC"}],ruleForm:{id:"",platform_name:"",platform_type:""},rulesThis:this.rules,rules:{platform_name:[{required:!0,message:"平台名称不能为空",trigger:"blur"}],platform_type:[{required:!0,message:"请选择平台类型",trigger:"change"}]}}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis:function(e){e||this.$emit("cancel")}},methods:{initForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,"003"===e.id?(e.title="添加平台",e.rulesThis=e.rules):"005"===e.id?(e.title="修改平台",e.rulesThis=e.rules):(e.title="平台详情",e.rulesThis={}),t.next=4,e.resetForm();case 4:e.loading=!1;case 5:case"end":return t.stop()}}),t)})))()},resetForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$nextTick((function(){var t,r,a;e.$refs.ruleForm&&(e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),t=(a=e.sitem).id,r=a.platform_name,a=a.platform_type,e.ruleForm={id:t||"",platform_name:r||"",platform_type:a||""})}));case 2:case"end":return t.stop()}}),t)})))()},submitForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.ruleForm.validate(function(){var t=Object(a.a)(regeneratorRuntime.mark((function t(r){var a,s,i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r){t.next=30;break}if(e.loading=!0,a=JSON.parse(JSON.stringify(e.ruleForm)),s={},"003"===e.id)return delete a.id,t.next=8,n.a.add(a);t.next=11;break;case 8:s=t.sent,t.next=14;break;case 11:return t.next=13,n.a.update(a);case 13:s=t.sent;case 14:if(e.loading=!1,!s||0!==s.code){t.next=22;break}i="add"===e.id?"添加成功!":"修改成功!",e.$notify.success({title:i,message:""}),e.showModelThis=!1,e.$emit("refresh"),t.next=28;break;case 22:if(s&&100<=s.code&&s.code<=104)return t.next=25,e.logout();t.next=27;break;case 25:t.next=28;break;case 27:e.$message.warning(s.message);case 28:t.next=32;break;case 30:return t.abrupt("return",!1);case 32:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()}}};r("82f22"),r=r("2877"),r=Object(r.a)(s,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:e.title,center:!0,align:"left",top:"18vh",width:"500px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)"},on:{"update:visible":function(t){e.showModelThis=t},close:function(t){e.showModelThis=!1}}},[r("el-card",{staticStyle:{margin:"-20px 0 0 0"}},[r("el-row",{attrs:{gutter:10}},[r("el-col",{attrs:{span:24}},[r("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",rules:e.rulesThis,"label-width":"80px"}},[r("el-form-item",{attrs:{label:"平台名称",prop:"platform_name"}},[r("el-input",{attrs:{disabled:"007"==e.id,placeholder:"平台名称",maxlength:"20"},model:{value:e.ruleForm.platform_name,callback:function(t){e.$set(e.ruleForm,"platform_name",t)},expression:"ruleForm.platform_name"}})],1),r("el-form-item",{attrs:{label:"平台类型",prop:"platform_type"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择平台类型"},model:{value:e.ruleForm.platform_type,callback:function(t){e.$set(e.ruleForm,"platform_type",t)},expression:"ruleForm.platform_type"}},e._l(e.options,(function(e){return r("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1)],1)],1),r("el-col",{staticStyle:{"text-align":"right"},attrs:{span:24}},["007"!==e.id?r("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("保 存 ")]):e._e(),r("el-button",{on:{click:function(t){e.showModelThis=!1}}},[e._v(e._s("007"==e.id?"关 闭":"取 消"))])],1)],1)],1)],1)}),[],!1,null,"1eb68f30",null);t.default=r.exports},8231:function(e,t,r){"use strict";r("cbac")},8266:function(e,t,r){},"82ae":function(e,t,r){"use strict";function a(e,t,r){""===t?r(new Error("预算单价不能为空!")):"0"===t||"0."===t||"0.0"===t||"0.00"===t?r(new Error("预算单价不能为零!")):r()}function n(e,t,r){""===t?r(new Error("购买数量不能为空!")):"0"===t?r(new Error("购买数量不能为零!")):r()}function s(e,t,r){(e=e.required)&&""===t?r(new Error("商品重量不能为空!")):!e||"0"!==t&&"0."!==t&&"0.0"!==t&&"0.00"!==t&&"0.000"!==t?r():r(new Error("商品重量不能为零!"))}function i(e,t,r){(e=e.required)&&""===t?r(new Error("金属克重不能为空!")):!e||"0"!==t&&"0."!==t&&"0.0"!==t&&"0.00"!==t&&"0.000"!==t?r():r(new Error("金属克重不能为零!"))}r.d(t,"c",(function(){return u})),r.d(t,"d",(function(){return o})),r.d(t,"a",(function(){return l})),r.d(t,"b",(function(){return c}));var o={arrival_time:[{required:!0,message:"到货时间不能为空",trigger:"change"}],budget_price:[{required:!0,validator:a,trigger:"change"}],num:[{required:!0,validator:n,trigger:"change"}],brand_id:[{type:"array",required:!0,message:"请选择品牌",trigger:"change"}],unit:[{type:"array",required:!0,message:"请选择单位",trigger:"change"}],cat_id:[{type:"array",required:!0,message:"请选择商品分类",trigger:"change"}],good_img:[{required:!0,message:"商品图片不能为空",trigger:"change"}],good_name:[{required:!0,message:"商品名称不能为空",trigger:"blur"}],model:[{required:!0,message:"型号不能为空",trigger:"blur"}],color:[{required:!0,message:"颜色不能为空",trigger:"blur"}],material:[{required:!0,message:"材质不能为空",trigger:"blur"}],total_weight:[{required:!1,validator:s,trigger:"blur"}],is_addrs:[{required:!0,message:"请选择是否多地",trigger:"change"}],is_custom:[{required:!0,message:"请选择是否定制",trigger:"change"}],is_gold_price:[{required:!0,message:"请选择是否启用实时金价",trigger:"change"}],config:[{required:!0,type:"array",message:"至少选择一个配置",trigger:"change"}],specs_weight:[{required:!0,validator:i,trigger:"blur"}],other_config:[{required:!0,message:"其他要求不能为空",trigger:"blur"}],cost_desc:[{required:!1,message:"工艺说明不能为空",trigger:"blur"}],use_desc:[{required:!0,message:"产品用途不能为空",trigger:"blur"}],remark:[{required:!0,message:"商品备注不能为空",trigger:"blur"}],metal_id:[{required:!0,message:"贵金属种类不能为空",trigger:"blur"}],gold_price:[{required:!0,message:"当前金价不能为空",trigger:"blur"}],enclosure_file:[{required:!1,message:"请上传附件",trigger:"change"}]},l={companyNo:[{required:!0,message:"请选择销售方公司",trigger:"change"}],khNo:[{type:"array",required:!0,message:"请选择购买方公司",trigger:"change"}],platform_code:[{required:!0,message:"请选择所属平台",trigger:"change"}],endtime:[{required:!0,message:"咨询截止时间不能为空",trigger:"change"}],is_project:[{required:!0,message:"请选择咨询类型!",trigger:"change"}],projectNo:[{type:"array",required:!0,message:"请选择项目",trigger:"change"}],arrival_time:[{required:!0,message:"到货时间不能为空",trigger:"change"}],budget_price:[{required:!0,validator:a,trigger:"change"}],num:[{required:!0,validator:n,trigger:"change"}],brand_id:[{type:"array",required:!0,message:"请选择品牌",trigger:"change"}],unit:[{type:"array",required:!0,message:"请选择单位",trigger:"change"}],cat_id:[{type:"array",required:!0,message:"请选择商品分类",trigger:"change"}],good_img:[{required:!0,message:"商品图片不能为空",trigger:"change"}],good_name:[{required:!0,message:"商品名称不能为空",trigger:"blur"}],model:[{required:!0,message:"型号不能为空",trigger:"blur"}],color:[{required:!0,message:"颜色不能为空",trigger:"blur"}],material:[{required:!0,message:"材质不能为空",trigger:"blur"}],total_weight:[{required:!0,validator:s,trigger:"blur"}],is_addrs:[{required:!0,message:"请选择是否多地",trigger:"change"}],is_custom:[{required:!0,message:"请选择是否定制",trigger:"change"}],is_gold_price:[{required:!0,message:"请选择是否启用实时金价",trigger:"change"}],config:[{required:!0,type:"array",message:"至少选择一个配置",trigger:"change"}],specs_weight:[{required:!0,validator:i,trigger:"blur"}],other_config:[{required:!0,message:"其他要求不能为空",trigger:"blur"}],cost_desc:[{required:!1,message:"工艺说明不能为空",trigger:"blur"}],use_desc:[{required:!0,message:"产品用途不能为空",trigger:"blur"}],remark:[{required:!0,message:"商品备注不能为空",trigger:"blur"}],metal_id:[{required:!0,message:"贵金属种类不能为空",trigger:"blur"}],gold_price:[{required:!0,message:"当前金价不能为空",trigger:"blur"}]},c=[{prop:"bidNo",label:"反馈商品编号",width:"160"},{prop:" origin_price",label:"议价前销售单价",width:"110"},{prop:"sale_price",label:"议价后销售单价",width:"110"},{prop:"good_img",label:"图片",_slot_:"good_img",width:"50"},{prop:"good_name",label:"商品名称","min-width":"100"},{prop:"specinfo",label:"型号",_slot_:"specinfo","min-width":"100"},{prop:"status",label:"状态",_slot_:"status",width:"120px"},{prop:"expire_day",label:"信息有效期",width:"85"},{prop:"delivery_day",label:"物流时间",width:"85"},{prop:"work_day",label:"生产工期",width:"85"},{prop:"creater",label:"负责人",width:"60"},{prop:"addtime",label:"添加时间",width:142},{prop:"",label:"操作",fixed:"right",_noset_:!0,_slot_:"operation",width:155}],u=[{prop:"infoNo",label:"咨询编号",width:"160"},{prop:"good_img",label:"图片",_slot_:"good_img",width:"50"},{prop:"good_name",label:"商品名称","min-width":"120"},{prop:"status",label:"状态",_slot_:"status",width:"120px"},{prop:"is_project",label:"咨询单类型",_slot_:"is_project",width:"110px"},{prop:"khNo",label:"客户编号",width:"160"},{prop:"khname",label:"客户名称","min-width":"135"},{prop:"budget_price",label:"预算单价",width:110},{prop:"num",label:"咨询数量",width:110},{prop:"creater",label:"申请人",width:"60"},{prop:"addtime",label:"添加时间",width:142},{prop:"",label:"操作",fixed:"right",_noset_:!0,_slot_:"operation",width:50}]},"82f22":function(e,t,r){"use strict";r("9bbb")},8394:function(e,t,r){"use strict";var a=r("1b69"),n="admin/";t.a={add:function(e,t){return Object(a.a)(n+"cgddiffcreat",e,"post",t)},delete:function(e,t){return Object(a.a)(n+"delete",e,"post",t)},list:function(e,t){return Object(a.a)(n+"cgddifflist",e,"post",t)},detail:function(e,t){return Object(a.a)(n+"cgddiffinfo",e,"post",t)},update:function(e,t){return Object(a.a)(n+"update",e,"post",t)},status:function(e,t){return Object(a.a)(n+"cgddiffstatu",e,"post",t)}}},"83bf":function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=(r("96cf"),r("7db0"),r("d3b7"),r("61f7"),r("de14")),s={name:"purchase_check",props:["id","showModelThis","newTime","returnCode"],mixins:[r("9f53").a],data:function(){return{wsm_code:[],wsm_supplierNo:[],loading:!1,status:"",showModelThis:this.showModel,resign_name:"",hand_name:"",ruleForm:{wsm_supplierNo:"",wsm_code:""},rulesThis:this.rules,rules:{return_stock:[{required:!0,trigger:"change",message:""}]},pageInfo:{size:15,curr:1,total:0}}},computed:{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"purchase_check"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}},mounted:function(){},watch:{id:function(e){e&&this.initForm()},newTime:function(e){e&&this.initForm()}},methods:{closeAdd:function(){this.showModelThis=!1},initForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.loading=!0,"add"===e.id)return e.status="",e.rulesThis=e.rules,t.next=6,e.resetForm();t.next=8;break;case 6:t.next=11;break;case 8:return e.rulesThis=e.rules,t.next=11,e.resetForm();case 11:e.loading=!1;case 12:case"end":return t.stop()}}),t)})))()},resetForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.resign_name="",e.hand_name="",e.status="",t.next=5,e.$nextTick((function(){e.$refs.ruleForm&&(e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),e.wsm_supplierNo=[],e.ruleForm={return_store:"",return_goods_addr:[],addr_detail:"",addressee:"",addressee_phone:"",express_require:""})}));case 5:case"end":return t.stop()}}),t)})))()},submitForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.ruleForm.validate(function(){var t=Object(a.a)(regeneratorRuntime.mark((function t(r){var a,s;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r)return e.loading=!0,a={returnCode:e.returnCode,wsm_code:e.ruleForm.wsm_code},t.next=5,n.a.afterFeed(a);t.next=20;break;case 5:if(s=t.sent,e.loading=!1,!s||0!==s.code){t.next=12;break}e.$notify.success({title:"物流已反馈",message:""}),e.$emit("refresh",!1),t.next=18;break;case 12:if(s&&100<=s.code&&s.code<=104)return t.next=15,e.logout();t.next=17;break;case 15:t.next=18;break;case 17:e.$message.warning(s.message);case 18:t.next=22;break;case 20:return t.abrupt("return",!1);case 22:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()},handleStore:function(e){var t=this;this.return_store_options.find((function(r){r.value===e&&(t.ruleForm.return_goods_addr=r.return_goods_addr,t.ruleForm.addr_detail=r.addr_detail,t.ruleForm.addressee=r.addressee,t.ruleForm.addressee_phone=r.addressee_phone,t.$refs.ruleForm.validateField("addressee"),t.$refs.ruleForm.validateField("return_goods_addr"),t.$refs.ruleForm.validateField("addr_detail"),t.$refs.ruleForm.validateField("addressee_phone"))})),this.ruleForm.return_store=e},supplierChange:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:e&&e.id?(t.ruleForm.wsm_supplierNo=e.code,t.wsm_supplierNo=[e.code]):(t.ruleForm.wsm_supplierNo="",t.wsm_supplierNo=[]),t.ruleForm.wsm_code="",t.wsm_code=[];case 3:case"end":return r.stop()}}),r)})))()},stockChange:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:e&&e.id?(t.ruleForm.wsm_code=e.code,t.wsm_code=[e.code]):(t.ruleForm.wsm_code="",t.wsm_code=[]);case 2:case"end":return r.stop()}}),r)})))()}}};r=r("2877"),r=Object(r.a)(s,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",staticStyle:{width:"100%"},attrs:{loading:e.loading,model:e.ruleForm,"status-icon":"",rules:e.rulesThis,"label-width":"100px"}},[t("el-row",[t("el-form-item",{attrs:{label:"退回仓库",prop:"return_stock"}},[t("el-col",{staticStyle:{width:"370px",padding:"0 0 0 10px"},attrs:{span:4}},[t("search-supplier",{attrs:{size:e.searchSize,value:e.wsm_supplierNo,placeholder:"入库公司名称",disabled:!1,isDetail:!1},on:{searchChange:e.supplierChange}})],1),t("el-col",{staticStyle:{width:"220px",padding:"0 0 0 10px"},attrs:{span:4}},[t("search-stock",{attrs:{size:e.searchSize,value:e.wsm_code,placeholder:"入库仓库名称",disabled:!1,isDetail:!1,isRelation:!0,companyCode:e.ruleForm.wsm_supplierNo},on:{searchChange:e.stockChange}})],1)],1),t("el-col",{staticStyle:{"text-align":"right"},attrs:{span:24}},[t("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("保 存")]),"0"===e.status&&e.powers.some((function(e){return"012"==e}))?t("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.statusConfirm("1","发起审核流程")}}},[e._v("发起审核流程 ")]):e._e(),"1"===e.status&&e.powers.some((function(e){return"014"==e}))?t("el-button",{attrs:{plain:""},on:{click:function(t){return e.statusConfirm("0","取消审核流程")}}},[e._v("取消审核流程")]):e._e(),"0"!==e.status&&"1"!==e.status||!e.powers.some((function(e){return"015"==e}))?e._e():t("el-button",{attrs:{type:"danger",plain:""},on:{click:function(t){return e.statusConfirm("-1","作废该条信息")}}},[e._v("作废该条信息")]),"1"===e.status&&e.powers.some((function(e){return"016"==e}))?t("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.statusConfirm("2","通过审核")}}},[e._v("通过审核")]):e._e()],1)],1)],1)}),[],!1,null,"638b4fa2",null);t.default=r.exports},"847f":function(e,t,r){},"853f":function(e,t,r){},"85c8":function(e,t,r){},8636:function(e,t,r){},"866f":function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=r("5530"),s=(r("96cf"),r("7db0"),r("d3b7"),r("e9c4"),r("159b"),r("b0c0"),r("c12d")),i=r("9f53"),o=r("2f62");i={name:"workbenchDetail",components:{baseForm:r("931c").default},mixins:[i.a],computed:Object(n.a)(Object(n.a)({},Object(o.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"workbenchDetail"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),data:function(){return{num:60,timer:null,loading:!1,showModel:!1,tableData:[],baseSitem:{},isDetail:!1,modelId:0,queryId:"",status:"",sitem:{},newTime:"",editId:"add",editType:"wait",parmValue:{page:1,size:100,zxNo:"",infoNo:"",bidNo:"",projectNo:"",is_own:"1"}}},mounted:function(){this.initForm()},beforeDestroy:function(){this.timer&&clearInterval(this.timer)},methods:{initForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.editType="wait",r=e.$route.query.id,e.queryId=r,e.loading=!0,t.next=7,e.initData();case 7:return t.next=9,e.searchList();case 9:e.loading=!1;case 10:case"end":return t.stop()}}),t)})))()},initData:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r,a,n,i,o,l,c;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,s.a.detail({infoNo:e.queryId});case 2:if(n=t.sent,r=n.code,a=n.message,n=n.data,0===r)return i=n.status,e.status=i,e.sitem=JSON.parse(JSON.stringify(n)),i=e.sitem.can,e.sitem.is_metal="",e.sitem.can_id_arr=[],e.sitem.can_name="",o="",c=!(l=[]),i.forEach((function(e,t){o+=0==t?e.name:"_".concat(e.name),l.push(e.id),"6"===e.id&&(c=!0)})),e.sitem.is_metal=c,e.sitem.can_id_arr=l,e.sitem.can_name=o,e.getNewTime(),t.next=22,e.well_timer();t.next=24;break;case 22:t.next=30;break;case 24:if(100<=r&&r<=104)return t.next=27,e.logout();t.next=29;break;case 27:t.next=30;break;case 29:e.$message.warning(a);case 30:case"end":return t.stop()}}),t)})))()},well_timer:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.timer=setInterval(Object(a.a)(regeneratorRuntime.mark((function t(){var r,a,n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(0===e.num){t.next=4;break}e.num--,t.next=28;break;case 4:if(e.timer)return t.next=7,e.repeat_initData();t.next=28;break;case 7:if(n=t.sent,r=n.code,a=n.status,n=n.message,0!==r||"1"!==a){t.next=15;break}e.num=60,t.next=28;break;case 15:if(0!==r||"1"===a){t.next=20;break}e.status=a,e.clearTime(),t.next=28;break;case 20:if(100<=r&&r<=104)return e.clearTime(),t.next=24,e.logout();t.next=26;break;case 24:t.next=28;break;case 26:e.clearTime(),e.$message.warning(n);case 28:case"end":return t.stop()}}),t)}))),1e3);case 1:case"end":return t.stop()}}),t)})))()},clearTime:function(){this.timer&&(clearInterval(this.timer),this.num=0)},repeat_initData:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r,a,n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,s.a.detail({infoNo:e.queryId});case 2:return a=t.sent,n=a.code,r=a.message,a=a.data,a=a.status,n={code:n,status:a,message:r},t.abrupt("return",n);case 9:case"end":return t.stop()}}),t)})))()},getNewTime:function(){this.newTime=(new Date).valueOf()},openModal:function(e,t){var r=this.$route.query.id;this.queryId=r,this.editId=e,this.editType=t,this.getNewTime()},searchList:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r,a,n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,e.parmValue.infoNo=e.queryId,t.next=4,s.a.good_list(e.parmValue);case 4:if(n=t.sent,r=n.code,a=n.data,n.message,0!==r){t.next=13;break}n=a.list,e.tableData=n,t.next=19;break;case 13:if(100<=r&&r<=104)return t.next=16,e.logout();t.next=18;break;case 16:t.next=19;break;case 18:e.tableData=[];case 19:e.loading=!1;case 20:case"end":return t.stop()}}),t)})))()}}},r("6d2f"),n=r("2877"),o=Object(n.a)(i,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"workbenchdetail"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"007"==e}))?r("div",{staticClass:"page-main clear"},["1"!==e.status?r("div",[r("search-not",{attrs:{placeholder:"招标任务已结束!"}})],1):r("div",[r("div",{staticClass:"left"},[r("div",{staticClass:"left-main"},[e.sitem?r("div",{staticClass:"left-card"},[r("div",{staticClass:"page-main-title"},[e._v("招标任务信息")]),r("ul",{staticClass:"page-main-ul clear"},[r("li",[e._v("任务单号:")]),r("li",[e._v(e._s(e.queryId))]),r("li",[e._v("截止时间:")]),r("li",[e._v(e._s(e.sitem.endtime))]),r("li",[e._v("购买数量:")]),r("li",[e._v(e._s(e.sitem.num)+e._s(e.sitem.unit_name))]),r("li",[e._v("预算单价:")]),r("li",[e._v(e._s(e.sitem.original_price)+"元")]),r("li",[e._v("咨询人:")]),r("li",[e._v(e._s(e.sitem.salesman))]),r("li",[e._v("到货时间:")]),r("li",[e._v(e._s(e.sitem.arrival_time))])])]):e._e(),e.sitem?r("div",{staticClass:"left-card"},[r("div",{staticClass:"page-main-title"},[e._v("商品要求")]),r("ul",{staticClass:"page-main-ul clear"},[r("li",[e._v("商品名称:")]),r("li",[e._v(e._s(e.sitem.good_name))]),e.sitem.good_img?r("li",[e._v("商品图片:")]):e._e(),e.sitem.good_img?r("li",[r("img",{directives:[{name:"viewer",rawName:"v-viewer"}],staticClass:"hover",staticStyle:{width:"20px",height:"20px",display:"inline-block"},attrs:{src:e.sitem.good_img}})]):e._e(),r("li",[e._v("商品分类:")]),r("li",[e._v(e._s(e.sitem.can_name))]),r("li",[e._v("商品品牌:")]),r("li",[e._v(e._s(e.sitem.brand||"无要求"))]),r("li",[e._v("商品规格:")]),r("li",[r("el-table",{staticStyle:{width:"100%"},attrs:{data:e.sitem.specinfo,border:"",stripe:"",size:"mini"}},[r("el-table-column",{attrs:{prop:"spec_name",label:"类型:值","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.spec_name)+":"+e._s(t.row.spec_value_name)+" ")]}}],null,!1,330658974)})],1)],1),r("li",[e._v("总重量:")]),r("li",[e._v(e._s(e.sitem.total_weight)+"g")]),r("li",[e._v("是否多地:")]),r("li",[e._v(e._s("1"===e.sitem.is_addrs?"多地":"一地"))]),r("li",[e._v("是否定制:")]),r("li",[e._v(e._s("1"===e.sitem.is_custom?"定制":"非定制"))]),e.sitem.is_metal?r("li",[e._v("启用金价:")]):e._e(),e.sitem.is_metal?r("li",[e._v(" "+e._s("1"===e.sitem.is_gold_price?"启用":"不启用")+" ")]):e._e(),e.sitem.is_metal?r("li",[e._v("配置要求:")]):e._e(),e.sitem.is_metal?r("li",[e._v(e._s(e.sitem.config))]):e._e(),e.sitem.is_metal?r("li",[e._v("金属克重:")]):e._e(),e.sitem.is_metal?r("li",[e._v(e._s(e.sitem.specs_weight)+"g")]):e._e(),e.sitem.is_metal?r("li",[e._v("其他要求:")]):e._e(),e.sitem.is_metal?r("li",[e._v(" "+e._s(e.sitem.other_config)+" ")]):e._e(),e.sitem.is_metal?r("li",[e._v("金属种类:")]):e._e(),e.sitem.is_metal?r("li",[e._v(" "+e._s(e.sitem.metal_name)+" ")]):e._e(),e.sitem&&e.sitem.cost_desc?r("li",[e._v("工艺说明:")]):e._e(),e.sitem&&e.sitem.cost_desc?r("li",[e._v(e._s(e.sitem.cost_desc))]):e._e(),r("li",[e._v("产品用途:")]),r("li",[e._v(e._s(e.sitem.use_desc))]),r("li",[e._v("商品备注:")]),r("li",[e._v(e._s(e.sitem.remark))]),r("li",[e._v("商品附件:")]),e.sitem&&e.sitem.enclosure_file?r("li",[r("a",{staticClass:"fl",attrs:{href:e.sitem.enclosure_file,download:"附件"}},[e._v("点击下载附件")])]):e._e()])]):e._e()])]),r("div",{staticClass:"p-right"},[""==e.editType||"wait"==e.editType?r("div",{staticClass:"right-mian-wait"},[r("div",{staticClass:"title"},[e._v("采返工作台")]),r("div",{staticClass:"main"},[e._v("暂无工作数据!")])]):[""!==e.newTime?r("base-form",{attrs:{id:e.queryId,editId:e.editId,type:e.editType,askItem:e.sitem,sitem:e.baseSitem,newTime:e.newTime},on:{refresh:function(t){e.editType="wait",e.searchList()},cancel:function(t){e.editType="wait"}}}):e._e()]],2),r("div",{staticClass:"bottom"},[r("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData,border:"",stripe:"",size:"mini"}},[r("el-table-column",{attrs:{prop:"good_img",label:"图片",width:"48","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.good_img?r("div",{directives:[{name:"viewer",rawName:"v-viewer"}],staticClass:"hover",staticStyle:{width:"20px",height:"20px"}},[r("img",{staticStyle:{display:"inline-block",width:"100%",height:"100%"},attrs:{src:t.row.good_img,alt:""}})]):e._e()]}}],null,!1,4291532340)}),r("el-table-column",{attrs:{prop:"good_name",label:"商品名称","min-width":"120","show-overflow-tooltip":""}}),r("el-table-column",{attrs:{prop:"total_fee",label:"成本合计",width:"110","show-overflow-tooltip":""}}),r("el-table-column",{attrs:{prop:"bargain_status",label:"采返信息状态",width:"100","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return["0"===t.row.bargain_status?r("el-tag",{attrs:{type:"''",size:"mini"}},[e._v("新建信息")]):r("el-tag",{attrs:{type:"danger",size:"mini"}},[e._v("待确认")])]}}],null,!1,3014981466)}),r("el-table-column",{attrs:{prop:"specinfo",label:"规格",width:"100","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return e._l(t.row.specinfo,(function(t,a){return r("span",{key:t+a},[0!==a?r("span",[e._v("--")]):e._e(),e._v(e._s(t.spec_name)+"["+e._s(t.spec_value_name)+"]")])}))}}],null,!1,614360670)}),r("el-table-column",{attrs:{prop:"unit",label:"单位",width:"45","show-overflow-tooltip":""}}),r("el-table-column",{attrs:{prop:"brand_name",label:"品牌",width:"80","show-overflow-tooltip":""}}),r("el-table-column",{attrs:{prop:"supplierName",label:"供应商","show-overflow-tooltip":""}}),r("el-table-column",{attrs:{fixed:"right",label:"操作",width:"80"},scopedSlots:e._u([{key:"header",fn:function(t){return[r("span",[e._v("操作")]),r("el-tooltip",{attrs:{effect:"dark",content:"添加反馈商品",placement:"top"}},[r("i",{staticClass:"el-icon-circle-plus-outline tb-icon fr",on:{click:function(t){return e.openModal("add","add")}}})])]}},{key:"default",fn:function(t){return[e.powers.some((function(e){return"007"==e}))?r("el-tooltip",{attrs:{effect:"dark",content:"详情",placement:"top"}},[r("i",{staticClass:"el-icon-view tb-icon",on:{click:function(r){return e.openModal(t.row.bidNo,"view")}}})]):e._e(),r("el-tooltip",{attrs:{effect:"dark",content:"修改",placement:"top"}},[r("i",{staticClass:"el-icon-edit tb-icon",on:{click:function(r){return e.openModal(t.row.bidNo,"edit")}}})])]}}],null,!1,2332486537)})],1)],1)])]):r("div",[r("no-auth")],1)])}),[],!1,null,"995061dc",null);t.default=o.exports},"86a3":function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=r("5530"),s=(r("96cf"),r("7db0"),r("d3b7"),r("fb6a"),r("159b"),r("a9e3"),r("62a1")),i=r("2526"),o=r("e49d"),l=r("0ee5"),c=r("e66a"),u=r("f5ed"),d=r("2f62"),p=r("9f53");u={name:"sort",mixins:[u.a,p.a],components:{addEdit:s.default,addEditRate:i.default},computed:Object(n.a)(Object(n.a)({},Object(d.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"sort"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),data:function(){return{statusList:l.a,roleLevel:c.a,loading:!0,showModel:!1,modelId:"000",sitem:{},showRateModel:!1,modelRateId:"000",sitemRate:{},titleList:[],parmValue:{page:1,size:15,status:"",cat_name:"",pid:"0"},statusOptions:[{id:"0",label:"禁用"},{id:"1",label:"启用"}],tableData:[],table:{stripe:!0,border:!0,_defaultHeader_:["setcol"]},pageInfo:{size:15,curr:1,total:0},columns:[{prop:"cat_name",label:"分类名称",width:"130px"},{prop:"status",label:"状态",_slot_:"status",width:"70px"},{prop:"level",label:"分类等级",width:"70px"},{prop:"fund_code",label:"财务核算码",width:"130px"},{prop:"specs",label:"关联规格",width:"130px"},{prop:"cat_desc",label:"售后说明"},{prop:"creater",label:"创建人",width:"70px"},{prop:"addtime",label:"创建时间",width:"145px"},{prop:"",label:"操作",fixed:"right",width:"200px",_noset_:!0,_slot_:"operation"}]}},mounted:function(){this.initTitleList(),this.parmValue.pid="0",this.searchList()},methods:{restSearch:function(){this.pageInfo={size:15,curr:1,total:0},this.parmValue={page:1,size:15,status:"",pid:"0",cat_name:""},this.initTitleList(),this.searchList()},initTitleList:function(){this.titleList=[],this.titleList.push({id:"0",titleName:"全部一级分类"})},openChildren:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){var a;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return t.parmValue.pid=e.id,t.pageInfo.curr=1,t.parmValue.page=1,r.next=5,t.searchList();case 5:a={id:e.id,titleName:e.cat_name},t.titleList.push(a);case 7:case"end":return r.stop()}}),r)})))()},setRate:function(e){this.modelRateId=e.id,this.sitemRate=e,this.showRateModel=!0},openModal:function(e,t){var r=e.status;"005"===t&&"1"===r?this.$message.warning("禁用后,才可以修改!"):(this.sitem=e,this.modelId=t,this.showModel=!0)},changeBreadcrumb:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e+1===t.titleList.length)return r.abrupt("return");r.next=4;break;case 4:t.parmValue.pid=t.titleList[e].id,t.titleList=t.titleList.slice(0,e+1);case 6:return t.pageInfo.curr=1,t.parmValue.page=1,r.next=10,t.searchList();case 10:case"end":return r.stop()}}),r)})))()},changeStatus:function(e,t){var r=this;return Object(a.a)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r.$confirm("确定要改为".concat("1"===t?"禁用":"启用","?"),{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(a.a)(regeneratorRuntime.mark((function a(){var n,s;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return r.loading=!0,n={id:e,status:"1"===t?"0":"1"},a.next=4,o.a.status(n);case 4:if((s=a.sent)&&0===s.code)return r.loading=!1,r.$notify.success({title:"状态修改成功!",message:""}),a.next=10,r.searchList();a.next=12;break;case 10:a.next=19;break;case 12:if(s&&100<=s.code&&s.code<=104)return a.next=15,r.logout();a.next=17;break;case 15:a.next=19;break;case 17:r.loading=!1,r.$message.warning(s.message);case 19:case"end":return a.stop()}}),a)})))).catch((function(){}));case 2:case"end":return n.stop()}}),n)})))()},deleteItem:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t.$confirm("确定要删除?",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(a.a)(regeneratorRuntime.mark((function r(){var a,n;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a={id:e},r.next=3,o.a.delete(a);case 3:if(!(n=r.sent)||0!==n.code){r.next=9;break}t.$notify.success({title:"删除成功",message:""}),t.searchList(),r.next=15;break;case 9:if(n&&100<=n.code&&n.code<=104)return r.next=12,t.logout();r.next=14;break;case 12:r.next=15;break;case 14:t.$message.warning(n.message);case 15:case"end":return r.stop()}}),r)})))).catch((function(){}));case 2:case"end":return r.stop()}}),r)})))()},searchList:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,t.next=3,o.a.list(e.parmValue);case 3:if(!(r=t.sent)||0!==r.code||!r.data){t.next=10;break}e.tableData=r.data.list,e.tableData.forEach((function(e){e.im&&0<e.im.length?(e.specs="",e.im.forEach((function(t,r){e.specs+=0===r?t.spec_name:",".concat(t.spec_name)}))):e.specs=""})),e.pageInfo.total=Number(r.data.count),t.next=17;break;case 10:if(r&&100<=r.code&&r.code<=104)return t.next=13,e.logout();t.next=15;break;case 13:t.next=17;break;case 15:e.tableData=[],e.pageInfo.total=0;case 17:e.loading=!1;case 18:case"end":return t.stop()}}),t)})))()}}},r("ba03"),p=r("2877"),s=Object(p.a)(u,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"sort pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?r("ex-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{table:e.table,data:e.tableData,columns:e.columns,page:e.pageInfo,size:e.size},on:{"page-curr-change":e.handlePageChange,"page-size-change":e.handleSizeChange,"screen-reset":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()},"screen-submit":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},scopedSlots:e._u([{key:"table-header",fn:function(t){return[r("div",{staticStyle:{width:"100%"}},[r("el-row",{staticStyle:{padding:"0 0 10px 80px"}},[r("el-col",{staticStyle:{width:"748px"},attrs:{span:3}},[r("div",{staticClass:"my-breadcrumb clear"},e._l(e.titleList,(function(t,a){return r("div",{key:t+a,staticClass:"my-breadcrumb-item",on:{click:function(t){return e.changeBreadcrumb(a)}}},[r("span",{staticClass:"label"},[e._v(e._s(t.titleName))]),a+1!==e.titleList.length?r("span",{staticClass:"separator"},[e._v("/")]):e._e()])})),0)]),r("el-col",{staticClass:"fr",staticStyle:{width:"66px",padding:"0 0 0 10px"},attrs:{span:3}},[r("el-button",{attrs:{type:"primary",size:e.searchSize},on:{click:e.searchList}},[e._v(" 刷新 ")])],1),r("el-col",{staticClass:"fr",staticStyle:{width:"66px",padding:"0 0 0 10px"},attrs:{span:3}},[r("el-button",{attrs:{type:"warning",size:e.searchSize},on:{click:e.restSearch}},[e._v(" 重置 ")])],1)],1),r("el-row",[r("el-col",{staticStyle:{width:"160px"},attrs:{span:4}},[r("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"",clearable:"",size:e.searchSize,placeholder:"分类状态"},on:{change:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.parmValue.status,callback:function(t){e.$set(e.parmValue,"status",t)},expression:"parmValue.status"}},e._l(e.statusList,(function(e){return r("el-option",{key:"status"+e.code,attrs:{label:e.name,value:e.code}})})),1)],1),r("el-col",{staticStyle:{width:"380px",padding:"0 0 0 10px"},attrs:{span:4}},[r("el-input",{attrs:{size:e.searchSize,maxlength:40,placeholder:"分类名称"},on:{blur:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.parmValue.cat_name,callback:function(t){e.$set(e.parmValue,"cat_name",t)},expression:"parmValue.cat_name"}})],1),e.powers.some((function(e){return"003"==e}))?r("el-col",{staticClass:"fr",staticStyle:{width:"66px",padding:"0 0 0 10px"},attrs:{span:3}},[r("el-button",{staticStyle:{float:"right"},attrs:{size:e.searchSize,type:"success"},on:{click:function(t){return e.openModal({},"003")}}},[e._v(" 添加 ")])],1):e._e()],1)],1)]}},{key:"status",fn:function(t){var a=t.scope;return[r("el-tag",{attrs:{size:e.tablebtnSize,type:"0"==a.row.status?"warning":""},domProps:{textContent:e._s((e.statusOptions.find((function(e){return e.id==a.row.status}))||{}).label||"--")}})]}},{key:"operation",fn:function(t){var a=t.scope;return[e.powers.some((function(e){return"007"==e}))?r("el-tooltip",{attrs:{effect:"dark",content:"详情",placement:"top"}},[r("i",{staticClass:"el-icon-view tb-icon",on:{click:function(t){return e.openModal(a.row,"007")}}})]):e._e(),e.powers.some((function(e){return"005"==e}))?r("el-tooltip",{attrs:{effect:"dark",content:"修改",placement:"top"}},[r("i",{staticClass:"el-icon-edit tb-icon",on:{click:function(t){return e.openModal(a.row,"005")}}})]):e._e(),e.powers.some((function(e){return"004"==e}))&&"1"===a.row.status?r("el-tooltip",{attrs:{effect:"dark",content:"禁用",placement:"top"}},[r("i",{staticClass:"el-icon-video-pause tb-icon",on:{click:function(t){return e.changeStatus(a.row.id,a.row.status)}}})]):e._e(),e.powers.some((function(e){return"004"==e}))&&"0"===a.row.status?r("el-tooltip",{attrs:{effect:"dark",content:"启用",placement:"top"}},[r("i",{staticClass:"el-icon-video-play tb-icon",on:{click:function(t){return e.changeStatus(a.row.id,a.row.status)}}})]):e._e(),e.powers.some((function(e){return"006"==e}))?r("el-tooltip",{attrs:{effect:"dark",content:"删除",placement:"top"}},[r("i",{staticClass:"el-icon-delete tb-icon",on:{click:function(t){return e.deleteItem(a.row.id)}}})]):e._e(),e.powers.some((function(e){return"060"==e}))?r("el-tooltip",{attrs:{effect:"dark",content:"设置毛利率",placement:"top"}},[r("i",{staticClass:"el-icon-s-check tb-icon",on:{click:function(t){return e.setRate(a.row)}}})]):e._e(),parseInt(a.row.level)<3?r("el-tooltip",{attrs:{effect:"dark",content:"下级分类",placement:"top"}},[r("i",{staticClass:"el-icon-arrow-right tb-icon",on:{click:function(t){return e.openChildren(a.row)}}})]):e._e()]}}],null,!1,3127378713)}):r("no-auth"),r("add-edit",{attrs:{id:e.modelId,"show-model":e.showModel,sitem:e.sitem,titleList:e.titleList},on:{refresh:e.searchList,cancel:function(t){e.showModel=!1}}}),r("add-edit-rate",{attrs:{id:e.modelRateId,"show-model":e.showRateModel,sitem:e.sitemRate,titleList:e.titleList},on:{refresh:e.searchList,cancel:function(t){e.showRateModel=!1}}})],1)}),[],!1,null,"ef28a37c",null);t.default=s.exports},"86e2":function(e,t,r){"use strict";var a=r("1da1"),n=r("5530"),s=(r("96cf"),r("a9e3"),r("e9c4"),r("1b69")),i=function(e,t){return Object(s.a)("admin/goodproof",e,"post",t)},o=r("9f53"),l=r("f5ed"),c=r("2f62"),u=[{type:"selection",fixed:"left",_noset_:!0},{prop:"spuCode",label:"商品编号",width:"160px"},{prop:"proof_type",label:"凭证类型",_slot_:"proof_type"},{prop:"proof_url",label:"凭证文件",_slot_:"proof_url"},{prop:"creater",label:"创建人"},{prop:"addtime",label:"创建时间",width:"145px"}];o={name:"showVoucherModel",mixins:[o.a,l.a],computed:Object(n.a)({},Object(c.b)(["tablebtnSize","searchSize","size"])),props:["showModel","once","id"],data:function(){return{loading:!0,showModelThis:!1,options:[{value:"1",label:"视频"},{value:"2",label:"图片"},{value:"3",label:"其他"}],parmValue:{spuCode:"",page:1,size:15},tableData:[],table:{stripe:!0,border:!0},pageInfo:{size:15,curr:1,total:0},columns:u}},watch:{showModel:function(e){(this.showModelThis=e)&&(this.supplierCode=[],this.searchList())},showModelThis:function(e){e||this.$emit("cancel")}},methods:{restSearch:function(){this.supplierCode=[],this.parmValue={spuCode:"",page:1,size:15},this.pageInfo={size:15,curr:1,total:0},this.searchList()},searchList:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,e.parmValue.spuCode=e.id,t.next=4,i(e.parmValue);case 4:if(!(r=t.sent)||0!==r.code||!r.data){t.next=10;break}e.tableData=r.data.list,e.pageInfo.total=Number(r.data.count),t.next=17;break;case 10:if(r&&100<=r.code&&r.code<=104)return t.next=13,e.logout();t.next=15;break;case 13:t.next=17;break;case 15:e.tableData=[],e.pageInfo.total=0;case 17:e.loading=!1;case 18:case"end":return t.stop()}}),t)})))()},resultList:function(e){var t=e?e.length:0;0===t?this.$message.warning("请选择历史凭证!"):this.once&&1!==t?this.$message.warning("只能选择一条凭证!"):(this.showModelThis=!1,this.$emit("searchChange",JSON.parse(JSON.stringify(e[0]))))}}},r("3c26"),l=r("2877"),n=Object(l.a)(o,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:"历史凭证列表",center:!0,align:"left",top:"8vh",width:"740px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)","append-to-body":""},on:{close:function(t){e.showModelThis=!1},"update:visible":function(t){e.showModelThis=t}}},[r("el-card",{staticClass:"modal-form-style",staticStyle:{"margin-top":"-20px"}},[r("ex-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{table:e.table,data:e.tableData,columns:e.columns,page:e.pageInfo,size:e.size},on:{"page-curr-change":e.handlePageChange,"page-size-change":e.handleSizeChange,"screen-reset":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()},"screen-submit":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},scopedSlots:e._u([{key:"table-header",fn:function(t){var a=t.selection;return[r("div",{staticStyle:{width:"100%"}},[r("el-row",{staticStyle:{margin:"-15px 0 0 0"}},[r("el-col",{staticClass:"fr",staticStyle:{width:"66px",padding:"0 0 0 10px"},attrs:{span:3}},[r("el-button",{attrs:{type:"success",size:e.searchSize},on:{click:function(t){return e.resultList(a)}}},[e._v(" 保存 ")])],1),r("el-col",{staticClass:"fr",staticStyle:{width:"66px",padding:"0 0 0 10px"},attrs:{span:3}},[r("el-button",{attrs:{type:"primary",size:e.searchSize},on:{click:e.searchList}},[e._v(" 刷新 ")])],1)],1)],1)]}},{key:"proof_type",fn:function(t){var a=t.scope;return[r("el-tag",{attrs:{size:e.tablebtnSize},domProps:{textContent:e._s((e.options.find((function(e){return e.value==a.row.proof_type}))||{}).label||"--")}})]}},{key:"proof_url",fn:function(t){return t=t.scope,["1"===t.row.proof_type?r("div",{staticClass:"hover",staticStyle:{width:"20px",height:"20px"}},[r("i",{staticClass:"el-icon-video-camera",staticStyle:{background:"#000",color:"#fff"}})]):"2"===t.row.proof_type?r("div",{directives:[{name:"viewer",rawName:"v-viewer"}],staticClass:"hover",staticStyle:{width:"20px",height:"20px"}},[r("img",{staticStyle:{display:"inline-block",width:"100%",height:"100%"},attrs:{src:t.row.proof_url,alt:""}})]):r("a",{attrs:{href:t.row.proof_url,download:"凭证文件"}},[e._v("点击下载")])]}}])})],1)],1)}),[],!1,null,null,null).exports;t.a=n},8771:function(e,t,r){"use strict";r("0f2c")},8775:function(e,t,r){"use strict";var a=r("1b69"),n="admin/";t.a={add:function(e,t){return Object(a.a)(n+"backcreate",e,"post",t)},delete:function(e,t){return Object(a.a)(n+"backdel",e,"post",t)},list:function(e,t){return Object(a.a)(n+"backlist",e,"post",t)},detail:function(e,t){return Object(a.a)(n+"backinfo",e,"post",t)},update:function(e,t){return Object(a.a)(n+"update",e,"post",t)},status:function(e,t){return Object(a.a)(n+"backstatus",e,"post",t)},returnExp:function(e,t){return Object(a.a)(n+"backfe",e,"post",t)}}},8834:function(e,t,r){"use strict";r("5850")},"88ec":function(e,t,r){"use strict";var a=r("1b69"),n="admin/";t.a={add:function(e,t){return Object(a.a)(n+"roleadd",e,"post",t)},list:function(e,t){return Object(a.a)(n+"rolelist",e,"post",t)},detail:function(e,t){return Object(a.a)(n+"roleinfo",e,"post",t)},update:function(e,t){return Object(a.a)(n+"rolesave",e,"post",t)},status:function(e,t){return Object(a.a)(n+"rolestatus",e,"post",t)},actionList:function(e,t){return Object(a.a)(n+"menuactionlist",e,"post",t)}}},"89b12":function(e,t,r){},"89d1":function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=r("5530"),s=(r("96cf"),r("7db0"),r("d3b7"),r("a9e3"),r("8177")),i=r("456f"),o=r("0ee5"),l=r("e66a"),c=r("f5ed"),u=r("2f62"),d=r("9f53");c={name:"terrace",mixins:[c.a,d.a],components:{addEdit:s.default},computed:Object(n.a)(Object(n.a)({},Object(u.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"terrace"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),data:function(){return{statusList:o.a,roleLevel:l.a,loading:!0,showModel:!1,modelId:"000",sitem:{},parmValue:{page:1,size:15,start:"",end:"",status:"",creater:"",platform_name:""},statusOptions:[{id:"0",label:"禁用"},{id:"1",label:"启用"}],tableData:[],table:{stripe:!0,border:!0,_defaultHeader_:["setcol"]},pageInfo:{size:15,curr:1,total:0},columns:[{prop:"platform_code",label:"平台编号",width:"160px"},{prop:"platform_name",label:"平台名称"},{prop:"status",label:"状态",_slot_:"status"},{prop:"creater",label:"创建人"},{prop:"addtime",label:"创建时间"},{prop:"",label:"操作",fixed:"right",_noset_:!0,_slot_:"operation"}]}},mounted:function(){this.searchList()},methods:{restSearch:function(){this.pageInfo={size:15,curr:1,total:0},this.parmValue={page:1,size:15,start:"",end:"",status:"",creater:"",platform_name:""},this.searchList()},openModal:function(e,t){var r=e.status;"005"===t&&"1"===r?this.$message.warning("禁用后,才可以修改!"):(this.sitem=e,this.modelId=t,this.showModel=!0)},handleTime:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t.parmValue.start=e.startTime||"",t.parmValue.end=e.endTime||"",""!==t.parmValue.start&&""!==t.parmValue.end||""===t.parmValue.start&&""===t.parmValue.end)return t.pageInfo.curr=1,t.parmValue.page=1,r.next=7,t.searchList();r.next=7;break;case 7:case"end":return r.stop()}}),r)})))()},changeStatus:function(e,t){var r=this;return Object(a.a)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r.$confirm("确定要改为".concat("1"===t?"禁用":"启用","?"),{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(a.a)(regeneratorRuntime.mark((function a(){var n,s;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return r.loading=!0,n={id:e,status:"1"===t?"0":"1"},a.next=4,i.a.status(n);case 4:if((s=a.sent)&&0===s.code)return r.loading=!1,r.$notify.success({title:"状态修改成功!",message:""}),a.next=10,r.searchList();a.next=12;break;case 10:a.next=19;break;case 12:if(s&&100<=s.code&&s.code<=104)return a.next=15,r.logout();a.next=17;break;case 15:a.next=19;break;case 17:r.loading=!1,r.$message.warning(s.message);case 19:case"end":return a.stop()}}),a)})))).catch((function(){}));case 2:case"end":return n.stop()}}),n)})))()},deleteItem:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t.$confirm("确定要删除?",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(a.a)(regeneratorRuntime.mark((function r(){var a,n;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a={id:e},r.next=3,i.a.delete(a);case 3:if(!(n=r.sent)||0!==n.code){r.next=9;break}t.$notify.success({title:"删除成功",message:""}),t.searchList(),r.next=15;break;case 9:if(n&&100<=n.code&&n.code<=104)return r.next=12,t.logout();r.next=14;break;case 12:r.next=15;break;case 14:t.$message.warning(n.message);case 15:case"end":return r.stop()}}),r)})))).catch((function(){}));case 2:case"end":return r.stop()}}),r)})))()},searchList:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(""!==e.parmValue.start&&""===e.parmValue.end||""==e.parmValue.start&&""!=e.parmValue.end)return e.$message.warning("开始时间和结束时间不能为空"),t.abrupt("return");t.next=3;break;case 3:return e.loading=!0,t.next=6,i.a.list(e.parmValue);case 6:if(!(r=t.sent)||0!==r.code||!r.data){t.next=12;break}e.tableData=r.data.list,e.pageInfo.total=Number(r.data.count),t.next=19;break;case 12:if(r&&100<=r.code&&r.code<=104)return t.next=15,e.logout();t.next=17;break;case 15:t.next=19;break;case 17:e.tableData=[],e.pageInfo.total=0;case 19:e.loading=!1;case 20:case"end":return t.stop()}}),t)})))()}}},d=r("2877"),s=Object(d.a)(c,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"terrace pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?r("ex-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{table:e.table,data:e.tableData,columns:e.columns,page:e.pageInfo,size:e.size},on:{"page-curr-change":e.handlePageChange,"page-size-change":e.handleSizeChange,"screen-reset":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()},"screen-submit":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},scopedSlots:e._u([{key:"table-header",fn:function(t){return[r("div",{staticStyle:{width:"100%"}},[r("el-row",{staticStyle:{padding:"0 0 10px 80px"}},[r("el-col",{staticStyle:{width:"303px"},attrs:{span:6}},[r("period-date-picker",{attrs:{type:1,width:"135px",size:e.searchSize,start:e.parmValue.start,end:e.parmValue.end},on:{timeReturned:e.handleTime}})],1),r("el-col",{staticStyle:{width:"160px"},attrs:{span:4}},[r("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"",clearable:"",size:e.searchSize,placeholder:"平台状态"},on:{change:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.parmValue.status,callback:function(t){e.$set(e.parmValue,"status",t)},expression:"parmValue.status"}},e._l(e.statusList,(function(e){return r("el-option",{key:"status"+e.code,attrs:{label:e.name,value:e.code}})})),1)],1),r("el-col",{staticClass:"fr",staticStyle:{width:"66px",padding:"0 0 0 10px"},attrs:{span:3}},[r("el-button",{attrs:{type:"primary",size:e.searchSize},on:{click:e.searchList}},[e._v(" 刷新 ")])],1),r("el-col",{staticClass:"fr",staticStyle:{width:"66px",padding:"0 0 0 10px"},attrs:{span:3}},[r("el-button",{attrs:{type:"warning",size:e.searchSize},on:{click:e.restSearch}},[e._v(" 重置 ")])],1)],1),r("el-row",[r("el-col",{staticStyle:{width:"373px"},attrs:{span:4}},[r("el-input",{attrs:{size:e.searchSize,maxlength:40,placeholder:"平台名称"},on:{blur:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.parmValue.platform_name,callback:function(t){e.$set(e.parmValue,"platform_name",t)},expression:"parmValue.platform_name"}})],1),r("el-col",{staticStyle:{width:"170px",padding:"0 0 0 10px"},attrs:{span:4}},[r("el-input",{attrs:{size:e.searchSize,maxlength:40,placeholder:"创建人"},on:{change:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.parmValue.creater,callback:function(t){e.$set(e.parmValue,"creater",t)},expression:"parmValue.creater"}})],1),e.powers.some((function(e){return"003"==e}))?r("el-col",{staticClass:"fr",staticStyle:{width:"66px",padding:"0 0 0 10px"},attrs:{span:3}},[r("el-button",{staticStyle:{float:"right"},attrs:{size:e.searchSize,type:"success"},on:{click:function(t){return e.openModal({},"003")}}},[e._v(" 添加 ")])],1):e._e()],1)],1)]}},{key:"status",fn:function(t){var a=t.scope;return[r("el-tag",{attrs:{size:e.tablebtnSize,type:"0"==a.row.status?"warning":""},domProps:{textContent:e._s((e.statusOptions.find((function(e){return e.id==a.row.status}))||{}).label||"--")}})]}},{key:"operation",fn:function(t){var a=t.scope;return[e.powers.some((function(e){return"007"==e}))?r("el-tooltip",{attrs:{effect:"dark",content:"详情",placement:"top"}},[r("i",{staticClass:"el-icon-view tb-icon",on:{click:function(t){return e.openModal(a.row,"007")}}})]):e._e(),e.powers.some((function(e){return"005"==e}))?r("el-tooltip",{attrs:{effect:"dark",content:"修改",placement:"top"}},[r("i",{staticClass:"el-icon-edit tb-icon",on:{click:function(t){return e.openModal(a.row,"005")}}})]):e._e(),e.powers.some((function(e){return"004"==e}))&&"1"===a.row.status?r("el-tooltip",{attrs:{effect:"dark",content:"禁用",placement:"top"}},[r("i",{staticClass:"el-icon-video-pause tb-icon",on:{click:function(t){return e.changeStatus(a.row.id,a.row.status)}}})]):e._e(),e.powers.some((function(e){return"004"==e}))&&"0"===a.row.status?r("el-tooltip",{attrs:{effect:"dark",content:"启用",placement:"top"}},[r("i",{staticClass:"el-icon-video-play tb-icon",on:{click:function(t){return e.changeStatus(a.row.id,a.row.status)}}})]):e._e(),e.powers.some((function(e){return"006"==e}))?r("el-tooltip",{attrs:{effect:"dark",content:"删除",placement:"top"}},[r("i",{staticClass:"el-icon-delete tb-icon",on:{click:function(t){return e.deleteItem(a.row.id)}}})]):e._e()]}}],null,!1,1856257711)}):r("no-auth"),r("add-edit",{attrs:{id:e.modelId,"show-model":e.showModel,sitem:e.sitem},on:{refresh:e.searchList,cancel:function(t){e.showModel=!1}}})],1)}),[],!1,null,"2ba832ca",null);t.default=s.exports},"89dd":function(e,t,r){},"8a39":function(e,t,r){"use strict";r("27f5")},"8af2":function(e,t,r){"use strict";r("f770")},"8b37":function(e,t,r){},"8ba7":function(e,t,r){"use strict";r("89b12")},"8c04":function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=r("5530"),s=(r("96cf"),r("7db0"),r("d3b7"),r("159b"),r("a9e3"),r("1b69")),i=function(e,t){return Object(s.a)("admin/cattlist",e,"post",t)},o=r("0ee5"),l=r("e66a"),c=r("f5ed"),u=r("2f62"),d=r("9f53"),p=r("1cf1");c={name:"searchSort",mixins:[c.a,d.a],components:{addEdit:p.default},computed:Object(n.a)(Object(n.a)({},Object(u.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"searchSort"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),data:function(){return{statusList:o.a,roleLevel:l.a,loading:!0,showModel:!1,modelId:"000",sitem:{},parmValue:{page:1,size:15,start:"",end:"",status:"",creater:"",cat_name:""},statusOptions:[{id:"0",label:"禁用"},{id:"1",label:"启用"}],tableData:[],table:{stripe:!0,border:!0,_defaultHeader_:["setcol"]},pageInfo:{size:15,curr:1,total:0},columns:[{prop:"cat_name",label:"分类名称",width:"140px"},{prop:"status",label:"状态",_slot_:"status",width:"70px"},{prop:"level",label:"分类等级",width:"70px"},{prop:"fund_code",label:"财务核算码",width:"130px"},{prop:"specs",label:"关联规格",width:"130px"},{prop:"cat_desc",label:"售后说明"},{prop:"creater",label:"创建人",width:"70px"},{prop:"addtime",label:"创建时间",sortable:!0,width:"145px"},{prop:"",label:"操作",fixed:"right",width:"50px",_noset_:!0,_slot_:"operation"}]}},mounted:function(){this.searchList()},methods:{restSearch:function(){this.pageInfo={size:15,curr:1,total:0},this.parmValue={page:1,size:15,start:"",end:"",status:"",creater:"",cat_name:""},this.searchList()},handleTime:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t.parmValue.start=e.startTime||"",t.parmValue.end=e.endTime||"",""!==t.parmValue.start&&""!==t.parmValue.end||""===t.parmValue.start&&""===t.parmValue.end)return t.pageInfo.curr=1,t.parmValue.page=1,r.next=7,t.searchList();r.next=7;break;case 7:case"end":return r.stop()}}),r)})))()},openModal:function(e){this.sitem=e,this.modelId=e.id,this.showModel=!0},searchList:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(""!==e.parmValue.start&&""===e.parmValue.end||""===e.parmValue.start&&""!==e.parmValue.end)return e.$message.warning("时间区间不完整!"),t.abrupt("return");t.next=3;break;case 3:return e.loading=!0,t.next=6,i(e.parmValue);case 6:if(!(r=t.sent)||0!==r.code||!r.data){t.next=13;break}e.tableData=r.data.list,e.tableData.forEach((function(e){e.im&&0<e.im.length?(e.specs="",e.im.forEach((function(t,r){e.specs+=0===r?t.spec_name:",".concat(t.spec_name)}))):e.specs=""})),e.pageInfo.total=Number(r.data.count),t.next=20;break;case 13:if(r&&100<=r.code&&r.code<=104)return t.next=16,e.logout();t.next=18;break;case 16:t.next=20;break;case 18:e.tableData=[],e.pageInfo.total=0;case 20:e.loading=!1;case 21:case"end":return t.stop()}}),t)})))()}}},d=r("2877"),p=Object(d.a)(c,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"searchSort pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?r("div",[r("ex-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{table:e.table,data:e.tableData,columns:e.columns,page:e.pageInfo,size:e.size},on:{"page-curr-change":e.handlePageChange,"page-size-change":e.handleSizeChange,"screen-reset":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()},"screen-submit":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},scopedSlots:e._u([{key:"table-header",fn:function(t){return[r("div",{staticStyle:{width:"100%"}},[r("el-row",{staticStyle:{padding:"0 0 10px 80px"}},[r("el-col",{staticStyle:{width:"303px"},attrs:{span:6}},[r("period-date-picker",{attrs:{type:1,width:"135px",size:e.searchSize,start:e.parmValue.start,end:e.parmValue.end},on:{timeReturned:e.handleTime}})],1),r("el-col",{staticStyle:{width:"160px"},attrs:{span:4}},[r("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"",clearable:"",size:e.searchSize,placeholder:"分类状态"},on:{change:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.parmValue.status,callback:function(t){e.$set(e.parmValue,"status",t)},expression:"parmValue.status"}},e._l(e.statusList,(function(e){return r("el-option",{key:"status"+e.code,attrs:{label:e.name,value:e.code}})})),1)],1),r("el-col",{staticClass:"fr",staticStyle:{width:"66px",padding:"0 0 0 10px"},attrs:{span:3}},[r("el-button",{attrs:{type:"primary",size:e.searchSize},on:{click:e.searchList}},[e._v(" 刷新 ")])],1),r("el-col",{staticClass:"fr",staticStyle:{width:"66px",padding:"0 0 0 10px"},attrs:{span:3}},[r("el-button",{attrs:{type:"warning",size:e.searchSize},on:{click:e.restSearch}},[e._v(" 重置 ")])],1)],1),r("el-row",[r("el-col",{staticStyle:{width:"373px"},attrs:{span:4}},[r("el-input",{attrs:{size:e.searchSize,maxlength:40,placeholder:"分类名称"},on:{blur:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.parmValue.cat_name,callback:function(t){e.$set(e.parmValue,"cat_name",t)},expression:"parmValue.cat_name"}})],1),r("el-col",{staticStyle:{width:"170px",padding:"0 0 0 10px"},attrs:{span:4}},[r("el-input",{attrs:{size:e.searchSize,maxlength:40,placeholder:"创建人"},on:{change:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.parmValue.creater,callback:function(t){e.$set(e.parmValue,"creater",t)},expression:"parmValue.creater"}})],1)],1)],1)]}},{key:"status",fn:function(t){var a=t.scope;return[r("el-tag",{attrs:{size:e.tablebtnSize,type:"0"==a.row.status?"warning":""},domProps:{textContent:e._s((e.statusOptions.find((function(e){return e.id==a.row.status}))||{}).label||"--")}})]}},{key:"operation",fn:function(t){var a=t.scope;return[e.powers.some((function(e){return"061"==e}))?r("el-tooltip",{attrs:{effect:"dark",content:"查看毛利率",placement:"top"}},[r("i",{staticClass:"el-icon-view tb-icon",on:{click:function(t){return e.openModal(a.row)}}})]):e._e()]}}],null,!1,1664281120)}),r("add-edit",{attrs:{id:e.modelId,"show-model":e.showModel,sitem:e.sitem},on:{refresh:e.searchList,cancel:function(t){e.showModel=!1}}})],1):r("no-auth")],1)}),[],!1,null,"070825ca",null);t.default=p.exports},"8d0a":function(e,t,r){"use strict";r("de57")},"8ddb":function(e,t,r){"use strict";r("7726")},"8e8f":function(e,t,r){"use strict";var a=r("1da1"),n=(r("e9c4"),r("b0c0"),r("99af"),r("fb6a"),r("96cf"),r("61f7")),s=r("5ca7"),i=r("1b69"),o=function(e,t){return Object(i.a)("admin/addrall",e,"post",t)},l={name:"AddrAddEditModal",props:["showModel","index","sitem","type"],data:function(){return{roleList:[],loading:!1,title:"",organizeList:[],pickerOptions:{disabledDate:function(e){return e.getTime()<(new Date).valueOf()}},showModelThis:this.showModel,ruleForm:{receipt_quantity:"",contactor:"",mobile:"",addr_code:[],addr:"",id:""},rulesThis:this.rules,rules:{receipt_quantity:[{required:!0,validator:function(e,t,r){""===t?r(new Error("不能为空!")):Object(n.k)(t)?r():r(new Error("仅支持整数!"))},trigger:"blur"}],contactor:[{required:!0,trigger:"blur",message:"联系人不能为空"}],mobile:[{required:!0,validator:function(e,t,r){""===t?r(new Error("手机号不能为空!")):Object(n.g)(t)?r():r(new Error("手机号格式不正确!"))},trigger:"blur"}],addr_code:[{type:"array",required:!0,message:"收货省市区不能为空",trigger:"change"}],addr:[{required:!0,message:"详细地址不能为空",trigger:"blur"}]}}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis:function(e){e||this.$emit("cancel")}},methods:{itemidChange:function(e){this.ruleForm.itemid=e,this.$refs.ruleForm.validateField("itemid")},initForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,-1===e.index?e.title="添加收货地址":e.title="修改收货地址",e.rulesThis=e.rules,t.next=5,e.resetForm();case 5:e.loading=!1;case 6:case"end":return t.stop()}}),t)})))()},resetForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$nextTick((function(){var t,r,a,n,s,i,o,l;e.$refs.ruleForm&&(e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),t=(l=e.sitem).receipt_quantity,r=l.contactor,a=l.mobile,n=l.addr_code,s=l.addr_code_name,i=l.addr,o=l.in_addr,l=l.id,e.ruleForm={receipt_quantity:t,contactor:r,mobile:a,in_addr:o||"",addr_code:n&&3===n.length?n:[],addr_code_name:s||"",addr:i,id:l||""})}));case 2:case"end":return t.stop()}}),t)})))()},submitForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.ruleForm.validate(function(){var t=Object(a.a)(regeneratorRuntime.mark((function t(r){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r){t.next=5;break}e.showModelThis=!1,e.$emit("refresh",{index:e.index,item:JSON.parse(JSON.stringify(e.ruleForm))}),t.next=7;break;case 5:return t.abrupt("return",!1);case 7:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()},select_area_change:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){var a,n,s,i,l,c;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t.ruleForm.addr_code=e,t.$refs.ruleForm.validateField("addr_code"),(a=t.ruleForm.addr_code)&&3===a.length)return a=a[a.length-1],r.next=7,o({code:a});r.next=27;break;case 7:if(a=r.sent,n=a.code,c=a.data,s=a.message,0!==n){r.next=19;break}i=c.province,l=c.city,c=c.area,i=i&&i.name?i.name:"",l=l&&l.name?l.name:"",c=c&&c.name?c.name:"",t.addrForm.addr_code_name=i&&l&&c?"".concat(i,"/").concat(l,"/").concat(c):"",r.next=25;break;case 19:if(100<=n&&n<=104)return r.next=22,t.logout();r.next=24;break;case 22:r.next=25;break;case 24:t.$message.warning(s);case 25:r.next=28;break;case 27:t.addrForm.addr_code_name="";case 28:case"end":return r.stop()}}),r)})))()},get_code:function(e,t,r){var a,n,i,o="",l=[];if(e&&t&&r){for(var c in s.c)if(e===s.c[c]){l.push(c),o+=s.c[c];break}if(1===l.length)for(var u in s.a)if(t===s.a[u]){l.push(u),o+="/"+s.a[u];break}if(2===l.length)for(var d in s.b)if(r===s.b[d]){l.push(d),o+="/"+s.b[d];break}3===l.length?(i=n="",a=!1,n=l[0].slice(0,2),i=l[1].slice(2,4),(a=0===l[1].indexOf(n)&&0===l[2].indexOf(n)&&2==l[2].indexOf(i)||a)||(o="",l=[])):(o="",l=[])}return{name:o,code:l}}}};r=r("2877"),r=Object(r.a)(l,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:e.title,center:!0,align:"left",top:"8vh",width:"600px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)","append-to-body":""},on:{close:function(t){e.showModelThis=!1},"update:visible":function(t){e.showModelThis=t}}},[t("el-card",{staticStyle:{"margin-top":"-20px"}},[t("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",rules:e.rulesThis,"label-width":"135px"}},[t("el-form-item",{attrs:{label:"收货总数",prop:"receipt_quantity"}},[t("el-input",{attrs:{placeholder:"收货总数"},model:{value:e.ruleForm.receipt_quantity,callback:function(t){e.$set(e.ruleForm,"receipt_quantity",t)},expression:"ruleForm.receipt_quantity"}})],1),t("el-form-item",{attrs:{label:"收货联系人",prop:"contactor"}},[t("el-input",{attrs:{maxlength:"250",placeholder:"收货联系人"},model:{value:e.ruleForm.contactor,callback:function(t){e.$set(e.ruleForm,"contactor",t)},expression:"ruleForm.contactor"}})],1),t("el-form-item",{attrs:{label:"收货联系电话",prop:"mobile"}},[t("el-input",{attrs:{maxlength:"11",placeholder:"收货联系电话"},model:{value:e.ruleForm.mobile,callback:function(t){e.$set(e.ruleForm,"mobile",t)},expression:"ruleForm.mobile"}})],1),"1"==e.type?t("el-form-item",{attrs:{label:"省市区(文件导入)",prop:"in_addr"}},[t("el-input",{attrs:{disabled:"",placeholder:"省市区(文件导入)"},model:{value:e.ruleForm.in_addr,callback:function(t){e.$set(e.ruleForm,"in_addr",t)},expression:"ruleForm.in_addr"}})],1):e._e(),t("el-form-item",{attrs:{label:"1"==e.type?"省市区(系统解析)":"收货省市区",prop:"addr_code"}},[t("select-area",{attrs:{value:e.ruleForm.addr_code,placeholder:"收货省市区"},on:{selectChange:function(t){return e.select_area_change(t)}}})],1),t("el-form-item",{attrs:{label:"详细地址",prop:"addr"}},[t("el-input",{attrs:{maxlength:"250",placeholder:"详细地址"},model:{value:e.ruleForm.addr,callback:function(t){e.$set(e.ruleForm,"addr",t)},expression:"ruleForm.addr"}})],1),t("div",{staticStyle:{"text-align":"right"}},[t("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("保 存 ")]),t("el-button",{on:{click:function(t){e.showModelThis=!1}}},[e._v(e._s(e.isDetail?"关 闭":"取 消"))])],1)],1)],1)],1)}),[],!1,null,null,null);t.a=r.exports},"8f03":function(e,t,r){"use strict";r("7391")},"8fce":function(e,t,r){},9010:function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=(r("96cf"),r("4d63"),r("ac1f"),r("2c3e"),r("25f0"),r("00b4"),r("e9c4"),r("e43c")),s=r("9f53");r("61f7"),s={name:"brand",props:["showModel","id","sitem"],mixins:[s.a],data:function(){return{loading:!1,title:"添加品牌",showModelThis:this.showModel,select:"1",activeOptions:[],actionList:[],ruleForm:{id:"",brand_name:"",logo_url:""},rulesThis:this.rules,rules:{brand_name:[{required:!0,validator:function(e,t,r){var a=new RegExp("[\\u4E00-\\u9FFF]+","g");""===t?r(new Error("品牌名称不能为空!")):a.test(t)?r():r(new Error("品牌名称必须包含汉字!"))},trigger:"blur"}]}}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis:function(e){e||this.$emit("cancel")}},methods:{initForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,"003"===e.id?(e.title="添加品牌",e.rulesThis=e.rules):"005"===e.id?(e.title="修改品牌",e.rulesThis=e.rules):(e.title="品牌详情",e.rulesThis={}),t.next=4,e.resetForm();case 4:e.loading=!1;case 5:case"end":return t.stop()}}),t)})))()},resetForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$nextTick((function(){var t,r,a;e.$refs.ruleForm&&(e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),t=(a=e.sitem).id,r=a.brand_name,a=a.logo_url,e.ruleForm={id:t||"",brand_name:r||"",logo_url:a||""})}));case 2:case"end":return t.stop()}}),t)})))()},submitForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.ruleForm.validate(function(){var t=Object(a.a)(regeneratorRuntime.mark((function t(r){var a,s,i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r){t.next=30;break}if(e.loading=!0,a=JSON.parse(JSON.stringify(e.ruleForm)),s={},"003"===e.id)return delete a.id,t.next=8,n.a.add(a);t.next=11;break;case 8:s=t.sent,t.next=14;break;case 11:return t.next=13,n.a.update(a);case 13:s=t.sent;case 14:if(e.loading=!1,!s||0!==s.code){t.next=22;break}i="add"===e.id?"添加成功!":"修改成功!",e.$notify.success({title:i,message:""}),e.showModelThis=!1,e.$emit("refresh"),t.next=28;break;case 22:if(s&&100<=s.code&&s.code<=104)return t.next=25,e.logout();t.next=27;break;case 25:t.next=28;break;case 27:e.$message.warning(s.message);case 28:t.next=32;break;case 30:return t.abrupt("return",!1);case 32:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()},beforeAvatarUpload:function(e){var t=!1,r=!1;return e&&("image/jpg"!==e.type&&"image/png"!==e.type&&"image/jpeg"!==e.type||(t=!0),r=e.size/1024/1024<1,t||this.$message.error("图片格式不正确!"),r||this.$message.error("图片大小不能超过 1MB!")),t&&r},UploadErrorEvent:function(e){"break"!==e&&(this.$message.error("图片上传失败!"),this.ruleForm.logo_url="",this.$refs.ruleForm.validateField("logo_url"))},UploadSuccessEvent:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){var a;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if("noToken"===(a=e.url))return r.next=4,t.logout();r.next=6;break;case 4:r.next=9;break;case 6:t.ruleForm.logo_url=a,t.$message.success("图片上传成功!"),t.$refs.ruleForm.validateField("logo_url");case 9:case"end":return r.stop()}}),r)})))()}}},r("092c"),r=r("2877"),r=Object(r.a)(s,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:e.title,center:!0,align:"left",top:"18vh",width:"500px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)"},on:{"update:visible":function(t){e.showModelThis=t},close:function(t){e.showModelThis=!1}}},[t("el-card",{staticStyle:{margin:"-20px 0 0 0"}},[t("el-row",{attrs:{gutter:10}},[t("el-col",{attrs:{span:24}},[t("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",rules:e.rulesThis,"label-width":"80px"}},[t("el-form-item",{attrs:{label:"品牌名称",prop:"brand_name"}},[t("el-input",{attrs:{disabled:"007"==e.id,placeholder:"品牌名称",maxlength:"20"},model:{value:e.ruleForm.brand_name,callback:function(t){e.$set(e.ruleForm,"brand_name",t)},expression:"ruleForm.brand_name"}})],1),t("el-form-item",{staticClass:"activity-upload",attrs:{label:"LOGO",prop:"logo_url",disabled:"007"==e.id}},[t("div",{staticClass:"btnupload",staticStyle:{position:"relative"}},[e.ruleForm.logo_url?t("img",{staticClass:"avatar",attrs:{src:e.ruleForm.logo_url}}):t("i",{staticClass:"el-icon-plus avatar-uploader-icon"}),t("file-upload",{staticClass:"Upload",attrs:{disabled:"007"==e.id,accept:".jpg,.png,.jpeg",multiple:!0,uploadcondition:e.beforeAvatarUpload},on:{UploadErrorEvent:e.UploadErrorEvent,UploadSuccessEvent:e.UploadSuccessEvent}})],1),t("div",{staticClass:"txt-tips fl"},[t("p",[e._v("大小:小于1M")]),t("p",[e._v("尺寸:100*100")]),t("p",[e._v("类型:jpg.png.jpeg")])])])],1)],1),t("el-col",{staticStyle:{"text-align":"right"},attrs:{span:24}},["007"!==e.id?t("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("保 存 ")]):e._e(),t("el-button",{on:{click:function(t){e.showModelThis=!1}}},[e._v(e._s("007"==e.id?"关 闭":"取 消"))])],1)],1)],1)],1)}),[],!1,null,"3cbd7048",null);t.default=r.exports},"90a6":function(e,t,r){"use strict";r("0ff4")},9130:function(e,t,r){"use strict";r("2cf9")},9163:function(e,t,r){},9187:function(e,t,r){"use strict";r("8636")},"91d6":function(e,t,r){"use strict";r("3bb3")},"92b3":function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=(r("e9c4"),r("96cf"),r("9f53")),s=r("11f6");n={name:"brand",props:["showModel","index","sitem"],mixins:[n.a],data:function(){return{loading:!1,title:"",options:[{value:"1",label:"竞品"},{value:"2",label:"竞聘"}],showModelThis:this.showModel,ruleForm:{id:"",index:-1,good_type:"1",good_name:"",good_img:"",cat_id:[],budget_price:"",num:""},rulesThis:this.rules,rules:{good_type:[{required:!0,message:"请选择商品类型",trigger:"change"}],good_name:[{required:!1,message:"商品名称不能为空",trigger:"blur"}],good_img:[{required:!1,message:"商品图片不能为空",trigger:"change"}],cat_id:[{type:"array",required:!0,message:"请选择商品分类",trigger:"change"}],budget_price:[{required:!0,validator:function(e,t,r){""===t?r(new Error("预算单价不能为空!")):"0"===t||"0."===t||"0.0"===t||"0.00"===t?r(new Error("预算单价不能为零!")):r()},trigger:"blur"}],num:[{required:!0,validator:function(e,t,r){""===t?r(new Error("购买数量不能为空!")):"0"===t?r(new Error("购买数量不能为零!")):r()},trigger:"blur"}]}}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis:function(e){e||this.$emit("cancel")}},methods:{initForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,e.rulesThis=e.rules,e.index+""=="-1"?e.title="添加商品要求":e.title="修改商品要求",t.next=6,e.resetForm();case 6:e.loading=!1;case 7:case"end":return t.stop()}}),t)})))()},goods_class_change:function(e){this.ruleForm.cat_id=e,this.$refs.ruleForm.validateField("cat_id")},deleteUrl:function(){this.ruleForm.good_img="",this.$refs.ruleForm.validateField("good_img")},good_type_change:function(){var e=this.ruleForm.good_type;this.rulesThis.cat_id[0].required="1"===e},UploadSuccessEventproof_url:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){var a;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if("noToken"===(a=e.url))return r.next=4,t.logout();r.next=6;break;case 4:r.next=9;break;case 6:t.ruleForm.good_img=a,t.$refs.ruleForm.validateField("good_img"),t.$message.success("图片上传成功!");case 9:case"end":return r.stop()}}),r)})))()},UploadErrorEventproof_url:function(e){"break"!==e&&(this.$refs.ruleForm.validatefield("good_img"),this.$message.error("图片上传失败!"))},beforeAvatarUpload:function(e){var t=!1;"image/jpg"!==e.type&&"image/png"!==e.type&&"image/jpeg"!==e.type||(t=!0),e=e.size/1024/1024<1;return t||this.$message.error("图片格式不正确!"),e||this.$message.error("图片大小不能超过 1MB!"),t&&e},budget_price_change:function(e){this.ruleForm.budget_price=e+"",this.$refs.ruleForm.validateField("budget_price")},num_change:function(e){this.ruleForm.num=e+"",this.$refs.ruleForm.validateField("num")},resetForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$nextTick(Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.$refs.ruleForm)return e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),t.next=5,e.resetFormData();t.next=5;break;case 5:case"end":return t.stop()}}),t)}))));case 2:case"end":return t.stop()}}),t)})))()},resetFormData:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r,a,n,s,i,o,l;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:l=e.sitem,r=l.id,a=l.cat_id,n=l.good_type,s=l.good_name,i=l.good_img,o=l.budget_price,l=l.num,e.ruleForm={id:r||"",index:e.index,good_type:n||"1",good_name:s||"",good_img:i||"",cat_id:a?[a]:[],budget_price:o||"0.00",num:l||"0"},e.good_type_change();case 3:case"end":return t.stop()}}),t)})))()},submitForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.ruleForm.validate(function(){var t=Object(a.a)(regeneratorRuntime.mark((function t(r){var a,n,i,o,l,c,u,d;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r){t.next=33;break}e.loading=!0,a=JSON.parse(JSON.stringify(e.ruleForm)),n=a.cat_id,i="",o=n.length,l=0;case 7:if(l<o)return t.next=10,s.a.catinfo({id:n[l]});t.next=28;break;case 10:if(u=t.sent,c=u.code,d=u.data,u=u.message,0!==c){t.next=19;break}d=d.cat_name,i+=0===l?d:"/".concat(d),t.next=25;break;case 19:if(100<=c&&c<=104)return t.next=22,e.logout();t.next=24;break;case 22:t.next=25;break;case 24:e.$message.warning(u);case 25:l++,t.next=7;break;case 28:a.cat_name=i,e.showModelThis=!1,e.$emit("refresh",a),t.next=35;break;case 33:return t.abrupt("return",!1);case 35:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()}}},r("38d3"),r=r("2877"),r=Object(r.a)(n,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:e.title,center:!0,align:"left",top:"12vh",width:"500px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)"},on:{"update:visible":function(t){e.showModelThis=t},close:function(t){e.showModelThis=!1}}},[r("el-card",{staticStyle:{margin:"-20px 0 0 0"}},[r("el-row",{attrs:{gutter:10}},[r("el-col",{attrs:{span:24}},[r("el-form",{ref:"ruleForm",attrs:{model:e.ruleForm,"status-icon":"",size:"mini",rules:e.rulesThis,"label-width":"80px"}},[r("el-form-item",{attrs:{label:"预算单价",prop:"budget_price"}},[r("digital-input",{attrs:{values:e.ruleForm.budget_price,placeholder:"预算单价",min:0,max:1e11,position:"right",precision:2,size:"mini",controls:!1,append:"元"},on:{reschange:e.budget_price_change}})],1),r("el-form-item",{attrs:{label:"购买数量",prop:"num"}},[r("digital-input",{attrs:{values:e.ruleForm.num,placeholder:"购买数量",min:0,max:1e11,position:"right",precision:0,size:"mini",controls:!1,append:""},on:{reschange:e.num_change}})],1),r("el-form-item",{attrs:{label:"商品类型",prop:"good_type"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"商品类型"},on:{change:e.good_type_change},model:{value:e.ruleForm.good_type,callback:function(t){e.$set(e.ruleForm,"good_type",t)},expression:"ruleForm.good_type"}},e._l(e.options,(function(e){return r("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),r("el-form-item",{attrs:{label:"商品分类",prop:"cat_id"}},[r("good-class",{attrs:{value:e.ruleForm.cat_id,disabled:!1,size:"mini",isDetail:!1,placeholder:"商品分类"},on:{handleChange:e.goods_class_change}})],1),r("el-form-item",{attrs:{label:"商品名称",prop:"good_name"}},[r("el-input",{attrs:{placeholder:"商品名称",maxlength:"100"},model:{value:e.ruleForm.good_name,callback:function(t){e.$set(e.ruleForm,"good_name",t)},expression:"ruleForm.good_name"}})],1),r("el-form-item",{attrs:{label:"商品图片",prop:"good_img"}},[e.ruleForm.good_img?r("div",{staticClass:"clearfix"},[r("img",{staticClass:"avatar fl",staticStyle:{width:"50px",height:"50px"},attrs:{src:e.ruleForm.good_img}}),r("el-link",{staticStyle:{margin:"0 0 0 16px"},attrs:{underline:!1,type:"warning"},on:{click:function(t){return e.deleteUrl()}}},[e._v("删除")])],1):r("div",{staticClass:"activity-upload"},[r("div",{staticClass:"btnupload",staticStyle:{position:"relative"}},[r("i",{staticClass:"el-icon-plus avatar-uploader-icon"}),r("file-upload",{staticClass:"Upload",attrs:{disabled:"view"===e.type||"editCoin"===e.type,accept:".jpg,.png,.jpeg",multiple:!1,uploadcondition:e.beforeAvatarUpload},on:{UploadErrorEvent:e.UploadErrorEventproof_url,UploadSuccessEvent:e.UploadSuccessEventproof_url}})],1),r("div",{staticClass:"txt-tips fl"},[r("p",[e._v("建议大小:小于1MB")]),r("p",[e._v("文件格式:.jpg,.png,.jpeg")])])])])],1)],1),r("el-col",{staticStyle:{"text-align":"right"},attrs:{span:24}},[r("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.submitForm}},[e._v("保 存 ")]),r("el-button",{attrs:{size:"small"},on:{click:function(t){e.showModelThis=!1}}},[e._v(e._s("取 消"))])],1)],1)],1)],1)}),[],!1,null,"1d82b470",null);t.default=r.exports},"92bc":function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=r("5530"),s=(r("96cf"),r("7db0"),r("d3b7"),r("e9c4"),r("d57f")),i=r("9f53"),o=r("2f62"),l=r("e94b"),c=r("2a42"),u=r("c4e2"),d=r("c73d");i={name:"activeDetail",mixins:[i.a],components:{baseForm:l.default,financeExamOneForm:c.default,financeExamTwoForm:u.default,financeExamThreeForm:d.default},computed:Object(n.a)(Object(n.a)({},Object(o.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"activeDetail"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),data:function(){return{statusList:[],size:"small",activeTabs:"1",activeNames:["0","1","2","3","4","5","6","7","8","9"],newTime:"",loading:!1,queryType:"",queryId:"",status:"",sitem:null}},mounted:function(){this.initForm()},methods:{initForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r,a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a=e.$route.query,r=a.id,a=a.type,e.queryId=r,e.queryType=a,e.activeTabs="add"===a?"0":"1",e.loading=!0,"add"!==e.queryType){t.next=10;break}e.sitem={},e.getNewTime(),t.next=12;break;case 10:return t.next=12,e.initData();case 12:e.loading=!1;case 13:case"end":return t.stop()}}),t)})))()},examForm:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){var a;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t.loading){r.next=5;break}return a={activity_code:t.queryId,status:"1"===e.state?"1":"8",remark:e.remark},r.next=5,t.setstatus("提交产品部门审核",a);case 5:case"end":return r.stop()}}),r)})))()},setstatus:function(e,t){var r=this;return Object(a.a)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r.$confirm("确定要".concat(e,"?"),{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(a.a)(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,s.a.actstatus(t);case 2:if((a=e.sent)&&0===a.code)return r.$notify.success({title:"提交成功!",message:""}),e.next=7,r.initForm();e.next=9;break;case 7:e.next=15;break;case 9:if(a&&100<=a.code&&a.code<=104)return e.next=12,r.logout();e.next=14;break;case 12:e.next=15;break;case 14:r.$message.warning(a.message);case 15:case"end":return e.stop()}}),e)})))).catch((function(){}));case 2:case"end":return n.stop()}}),n)})))()},handleClick:function(e){},refresh:function(e){this.routeReGoto("active",{})},initData:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r,a,n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,t.next=3,s.a.detail({activity_code:e.queryId});case 3:if(n=t.sent,r=n.code,a=n.message,n=n.data,e.loading=!1,0!==r){t.next=15;break}e.sitem=JSON.parse(JSON.stringify(n)),n=e.sitem.status,e.status=n,e.getNewTime(),t.next=21;break;case 15:if(100<=r&&r<=104)return t.next=18,e.logout();t.next=20;break;case 18:t.next=21;break;case 20:e.$message.warning(a);case 21:case"end":return t.stop()}}),t)})))()},getNewTime:function(){this.newTime=(new Date).valueOf()}}},r("bee9"),l=r("2877"),c=Object(l.a)(i,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("div",{staticClass:"activeDetail"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"007"==e}))?t("div",{staticClass:"activeDetail-main"},[t("el-tabs",{model:{value:e.activeTabs,callback:function(t){e.activeTabs=t},expression:"activeTabs"}},["add"===e.queryType?t("el-tab-pane",{attrs:{label:"新建活动",name:"0"}},[""!==e.newTime?t("base-form",{attrs:{type:e.queryType,id:e.queryId,newTime:e.newTime,sitem:e.sitem},on:{refresh:e.refresh}}):e._e()],1):e._e(),"add"!==e.queryType?t("el-tab-pane",{attrs:{label:"活动详情",name:"1"}},[t("el-collapse",{staticStyle:{margin:"-18px 0 0 0"},model:{value:e.activeNames,callback:function(t){e.activeNames=t},expression:"activeNames"}},[t("el-collapse-item",{attrs:{title:"活动详情",name:"0"}},[""!==e.newTime?t("base-form",{attrs:{type:e.queryType,id:e.queryId,newTime:e.newTime,sitem:e.sitem},on:{refresh:e.refresh}}):e._e()],1),"0"==e.status&&e.powers.some((function(e){return"056"==e}))?t("el-collapse-item",{attrs:{title:"产品部门审批",name:"1"}},[t("exam-form",{attrs:{statusList:e.statusList,newTime:e.newTime,disabled:!1,isMust:!1},on:{searchChange:e.examForm}})],1):e._e(),"1"==e.status&&e.powers.some((function(e){return"057"==e}))?t("el-collapse-item",{attrs:{title:"采购部定价",name:"2"}},[""!==e.newTime?t("finance-exam-one-form",{attrs:{type:e.queryType,id:e.queryId,newTime:e.newTime,sitem:e.sitem},on:{refresh:function(t){return e.initData()}}}):e._e()],1):e._e(),"2"==e.status&&e.powers.some((function(e){return"058"==e}))?t("el-collapse-item",{attrs:{title:"财务定价",name:"3"}},[""!==e.newTime?t("finance-exam-two-form",{attrs:{type:e.queryType,id:e.queryId,newTime:e.newTime,sitem:e.sitem},on:{refresh:function(t){return e.initData()}}}):e._e()],1):e._e(),"3"==e.status&&e.powers.some((function(e){return"059"==e}))?t("el-collapse-item",{attrs:{title:"财务审核定价",name:"4"}},[""!==e.newTime?t("finance-exam-three-form",{attrs:{type:e.queryType,id:e.queryId,newTime:e.newTime,sitem:e.sitem},on:{refresh:function(t){return e.initData()}}}):e._e()],1):e._e()],1)],1):e._e(),"add"!==e.queryType?t("el-tab-pane",{attrs:{label:"审批记录",name:"2"}},[""!==e.newTime?t("process-time-line",{attrs:{newTime:e.newTime,type:"HD",orderCode:e.queryId}}):e._e()],1):e._e()],1)],1):t("div",[t("no-auth")],1)])}),[],!1,null,"55821508",null);t.default=c.exports},"92ef":function(e,t,r){"use strict";r("a6ac")},"92f1":function(e,t,r){"use strict";var a=r("1b69"),n="admin/";t.a={add:function(e,t){return Object(a.a)(n+"excluadd",e,"post",t)},delete:function(e,t){return Object(a.a)(n+"excludel",e,"post",t)},list:function(e,t){return Object(a.a)(n+"exclulist",e,"post",t)},detail:function(e,t){return Object(a.a)(n+"catinfo",e,"post",t)},update:function(e,t){return Object(a.a)(n+"excluedit",e,"post",t)},status:function(e,t){return Object(a.a)(n+"exclustatus",e,"post",t)}}},9302:function(e,t,r){"use strict";r("3a02")},"931c":function(e,t,r){"use strict";function a(e,t,r){""===t?r(new Error("不能为空!")):r()}function n(e,t,r){""===t?r(new Error("不能为空!")):"0"===t||"0."===t||"0.0"===t||"0.00"===t||"0.000"===t?r(new Error("不能为零!")):r()}r.r(t);var s=r("ade3"),i=r("1da1"),o=r("5530"),l=(r("96cf"),r("7db0"),r("d3b7"),r("e9c4"),r("159b"),r("99af"),r("b0c0"),r("ac1f"),r("1276"),r("25f0"),r("a434"),r("c12d")),c=r("9f53"),u=r("2f62"),d=r("768a"),p=[{id:"0",name:"否"},{id:"1",name:"是"}],m=[{id:"0",name:"非泰康"},{id:"1",name:"泰康"}],f=[{id:"0",name:"无销售权限"},{id:"1",name:"有销售权限"}],h=[{id:"0",name:"非库存品"},{id:"1",name:"库存品"}],g=[{id:"0",name:"否"},{id:"1",name:"是"}],b=[{id:"1",name:"全国"},{id:"2",name:"全国除偏远"}],_=[{id:"0",name:"否"},{id:"1",name:"是"}],w=[{id:"0",name:"无工差"},{id:"1",name:"有工差"}],v=["证书","包装盒","绒布袋","标签","其他"],x=[{id:"0",name:"现结"},{id:"1",name:"月清"},{id:"2",name:"双月清"}],k=[{id:"0",name:"公司自提"},{id:"1",name:"供应商包邮"}],y={cat_id:[{type:"array",required:!0,message:"商品分类",trigger:"change"}],expire_day:[{required:!0,validator:n,trigger:"blur"}],supplierNo:[{type:"array",required:!0,message:"请选择供应商",trigger:"change"}],delivery_day:[{required:!0,validator:a,trigger:"blur"}],pname:[{required:!0,message:"请输入商品名称",trigger:"blur"}],work_day:[{required:!0,validator:a,trigger:"blur"}],model:[{required:!0,message:"型号不能为空",trigger:"blur"}],color:[{required:!0,message:"颜色不能为空",trigger:"blur"}],material:[{required:!0,message:"材质不能为空",trigger:"blur"}],brandid:[{type:"array",required:!0,message:"商品品牌",trigger:"change"}],unit_id:[{type:"array",required:!0,message:"请输入商品单位",trigger:"blur"}],weight:[{required:!0,validator:n,trigger:"blur"}],tax:[{required:!0,message:"请选择税率",trigger:"change"}],supply_area:[{required:!0,message:"请选择供货区域",trigger:"change"}],origin_place:[{type:"array",required:!0,message:"请选择产地",trigger:"change"}],cert_fee:[{required:!0,validator:a,trigger:"blur"}],pakge_fee:[{required:!0,validator:a,trigger:"blur"}],cost_fee:[{required:!0,validator:a,trigger:"blur"}],mark_fee:[{required:!0,validator:a,trigger:"blur"}],demo_fee:[{required:!0,validator:a,trigger:"blur"}],open_fee:[{required:!0,validator:a,trigger:"blur"}],delivery_fee:[{required:!0,validator:a,trigger:"blur"}],nake_fee:[{required:!0,validator:a,trigger:"blur"}],noble_weight:[{required:!0,validator:n,trigger:"blur"}],metal_id:[{required:!0,message:"请选择贵金属种类",trigger:"change"}],is_gold_price:[{required:!0,message:"请选择是否启用实时金价",trigger:"change"}],is_diff:[{required:!0,message:"请选择有无工差",trigger:"change"}],config:[{required:!0,type:"array",message:"请选择配置要求",trigger:"change"}],other_config:[{required:!0,message:"其他要求不能为空",trigger:"blur"}],pay_way:[{required:!0,message:"请选择付款方式",trigger:"change"}],send_way:[{required:!0,message:"请选择发货方式",trigger:"change"}],cost_desc:[{required:!1,message:"工艺说明不能为空",trigger:"blur"}],remark:[{required:!0,message:"商品备注不能为空",trigger:"blur"}],good_img:[{required:!0,message:"商品图片不能为空",trigger:"change"}]};c={name:"goodsCostAdd",mixins:[c.a],props:["showModel","id","type","sitem","askItem","newTime","editId"],components:{baseFormAddEdit:d.default},computed:Object(o.a)(Object(o.a)({},Object(u.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"goodsCostAdd"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),watch:{newTime:function(e){e&&this.initForm()}},data:function(){return{cat_id_name:"",supplierNo:"",brand_name:"",unit_name:"",title:"",modelIndex:"",modelSitem:{},showOtherModel:!1,is_noble:!1,status:"",rulesThis:this.rules,activeName:"1",loading:!0,options1:p,options2:m,options3:f,options4:h,options5:g,options6:b,options7:_,options8:w,options9:v,options10:x,options11:k,ruleForm:{},rules:JSON.parse(JSON.stringify(y))}},mounted:function(){this.initForm()},methods:{initForm:function(){var e=this;return Object(i.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.supplierNo=[],e.loading=!0,"add"===e.type?e.title="新建采返商品":"edit"===e.type?e.title="编辑采返商品":e.title="采返商品详情",e.resetFormData(),e.rulesThis=e.rules,t.next=9,e.resetForm();case 9:if("edit"===e.type||"view"===e.type)return t.next=12,e.initData();t.next=12;break;case 12:e.setrules(),e.loading=!1;case 14:case"end":return t.stop()}}),t)})))()},number_change:function(e,t){this.ruleForm[t]=e+""||"0",this.$refs.ruleForm.validateField(t)},initData:function(){var e=this;return Object(i.a)(regeneratorRuntime.mark((function t(){var r,a,n,i,o,c,u,d,p,m,f,h,g,b,_,w,v,x,k,y,F,O,S,C,$,j,R,z,T,N,V,M,D,I,L,q,E,J,P,A;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,t.next=3,l.a.good_detail({bidNo:e.editId});case 3:if(A=t.sent,r=A.code,a=A.message,A=A.data,0!==r){t.next=23;break}A=JSON.parse(JSON.stringify(A)),n=A.bidNo,i=A.good_name,o=A.cat_id,c=A.cat_info,u=A.brand_id,d=A.unit,p=A.unit_id,m=A.tax,f=A.supplierNo,h=A.cost_desc,g=A.remark,b=A.weight,_=A.supply_area,w=A.origin_place,v=A.delivery_day,x=A.expire_day,k=A.good_img,y=A.cert_fee,F=A.pakge_fee,O=A.cost_fee,S=A.mark_fee,C=A.demo_fee,$=A.open_fee,j=A.metal_id,R=A.noble_weight,z=A.is_gold_price,T=A.delivery_fee,N=A.status,V=A.brand_name,M=A.work_day,D=A.pay_way,I=A.send_way,L=A.is_diff,q=A.config,E=A.nake_fee,J=A.other_config,P=A.supplierName,(A=A.specinfo)&&0<A.length&&(e.spec_tableData=JSON.parse(JSON.stringify(A))),e.cat_id_name="",c&&c.length&&c.forEach((function(t,r){e.cat_id_name+="".concat(0!==r?"_":"").concat(t.name)})),e.supplierNo_name=P||"",e.is_noble=e.askItem.is_metal,e.brand_name=V||"",e.unit_name=d||"",e.ruleForm=(A={infoNo:e.id||"",bidNo:n||""},Object(s.a)(A,"infoNo",e.id||""),Object(s.a)(A,"cat_id",o?[o]:[]),Object(s.a)(A,"supplierNo",f?[f]:[]),Object(s.a)(A,"pname",i||""),Object(s.a)(A,"expire_day",x||"0"),Object(s.a)(A,"delivery_day",v||"0"),Object(s.a)(A,"work_day",M||"0"),Object(s.a)(A,"brandid",u?[u]:[]),Object(s.a)(A,"unit_id",p?[p]:[]),Object(s.a)(A,"weight",b||"0.000"),Object(s.a)(A,"tax",m?m+"%":""),Object(s.a)(A,"supply_area",_||""),Object(s.a)(A,"origin_place",w?w.split(","):[]),Object(s.a)(A,"cert_fee",y||"0.00"),Object(s.a)(A,"pakge_fee",F||"0.00"),Object(s.a)(A,"cost_fee",O||"0.00"),Object(s.a)(A,"mark_fee",S||"0.00"),Object(s.a)(A,"demo_fee",C||"0.00"),Object(s.a)(A,"open_fee",$||"0.00"),Object(s.a)(A,"delivery_fee",T||"0.00"),Object(s.a)(A,"nake_fee",E||"0.00"),Object(s.a)(A,"pay_way",D||""),Object(s.a)(A,"send_way",I||""),Object(s.a)(A,"noble_weight",R||"0.000"),Object(s.a)(A,"metal_id",j||""),Object(s.a)(A,"is_gold_price",z||""),Object(s.a)(A,"is_diff",L||""),Object(s.a)(A,"config",q?q.split(","):[]),Object(s.a)(A,"other_config",J||""),Object(s.a)(A,"remark",g||""),Object(s.a)(A,"cost_desc",h||""),Object(s.a)(A,"good_img",k||""),A),e.status=N,t.next=29;break;case 23:if(100<=r&&r<=104)return t.next=26,e.logout();t.next=28;break;case 26:t.next=29;break;case 28:e.$message.warning(a);case 29:case"end":return t.stop()}}),t)})))()},submitForm:function(){var e=this;return Object(i.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.ruleForm.validate(function(){var t=Object(i.a)(regeneratorRuntime.mark((function t(r){var a,n,s;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r){t.next=46;break}if(e.loading=!0,0===e.spec_tableData.length)return e.$message.warning("请填写规格!"),e.loading=!1,t.abrupt("return");t.next=6;break;case 6:if((a=JSON.parse(JSON.stringify(e.ruleForm))).cat_id=a.cat_id[a.cat_id.length-1],a.brandid=a.brandid.toString(),a.supplierNo=a.supplierNo.toString(),a.origin_place=a.origin_place.toString(),a.unit_id=a.unit_id.toString(),a.config=a.config.toString(),a.tax=parseInt(a.tax+"")+"",a.specinfo=[],JSON.parse(JSON.stringify(e.spec_tableData)).forEach((function(e){e={specid:e.specid,spec_value_id:e.spec_value_id},a.specinfo.push(e)})),n={},"add"===e.type)return delete a.bidNo,t.next=23,l.a.good_add(a);t.next=26;break;case 23:n=t.sent,t.next=29;break;case 26:return t.next=28,l.a.good_update(a);case 28:n=t.sent;case 29:if(e.loading=!1,!n||0!==n.code){t.next=38;break}s="add"===e.type?"新建成功!":"修改成功!",e.$notify.success({title:s,message:""}),e.showModelThis=!1,e.$emit("refresh"),t.next=44;break;case 38:if(n&&100<=n.code&&n.code<=104)return t.next=41,e.logout();t.next=43;break;case 41:t.next=44;break;case 43:e.$message.warning(n.message);case 44:t.next=48;break;case 46:return t.abrupt("return",!1);case 48:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()},resetForm:function(){var e=this;return Object(i.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$nextTick(Object(i.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.$refs.ruleForm&&(e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),e.spec_tableData=[],e.is_noble=e.askItem.is_metal,e.cat_id_name="add"===e.type?e.askItem.can_name:"",e.brand_name="add"===e.type?e.askItem.brand:"",e.unit_name="add"===e.type?e.askItem.unit_name:"",e.ruleForm={infoNo:e.id||"",cat_id:"add"===e.type?[e.askItem.cat_id]:[],supplierNo:[],pname:"add"===e.type?e.askItem.good_name:"",expire_day:"0",delivery_day:"0",work_day:"0",brandid:"add"===e.type&&e.askItem.brand_id?[e.askItem.brand_id]:[],unit_id:"add"===e.type?[e.askItem.unit]:[],weight:"add"===e.type?e.askItem.total_weight:"0.000",tax:"",supply_area:"",origin_place:[],cert_fee:"0.00",pakge_fee:"0.00",cost_fee:"0.00",mark_fee:"0.00",demo_fee:"0.00",open_fee:"0.00",delivery_fee:"0.00",nake_fee:"0.00",pay_way:"",send_way:"",noble_weight:"add"===e.type?e.askItem.specs_weight:"0.000",metal_id:"add"===e.type?e.askItem.metal_id:"",is_gold_price:"add"===e.type?e.askItem.is_gold_price:"",is_diff:"",config:"add"===e.type&&e.askItem.config?e.askItem.config.split(","):[],other_config:"add"===e.type?e.askItem.other_config:"",remark:"",cost_desc:"add"===e.type?e.askItem.cost_desc:"",good_img:"add"===e.type?e.askItem.good_img:""},"add"===e.type&&(e.spec_tableData=JSON.parse(JSON.stringify(e.askItem.specinfo))));case 1:case"end":return t.stop()}}),t)}))));case 2:case"end":return t.stop()}}),t)})))()},openEdit:function(e,t){this.modelIndex=e,this.modelSitem=t,this.showOtherModel=!0},openDelete:function(e){this.spec_tableData.splice(e,1)},refreshEdit:function(e){e=JSON.parse(JSON.stringify(e));var t=e.index,r=e.specid,a=e.spec_name,n=e.spec_value_id,s=e.spec_value_name;t+""=="-1"?this.spec_tableData.push(e):(e=parseInt(t+""),this.spec_tableData[e].specid=r,this.spec_tableData[e].spec_name=a,this.spec_tableData[e].spec_value_id=n,this.spec_tableData[e].spec_value_name=s),this.showOtherModel=!1},cat_id_change:function(e){var t=this;return Object(i.a)(regeneratorRuntime.mark((function r(){var a,n;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:a=e.pid,n=e.id,e.label,t.ruleForm.cat_id=n?[n]:[],t.is_noble="6"===a,t.$refs.ruleForm.validateField("cat_id"),t.setrules();case 5:case"end":return r.stop()}}),r)})))()},setrules:function(){for(var e=["noble_weight","metal_id","is_gold_price","is_diff","config","other_config"],t=0;t<e.length;t++)this.rules[e[t]][0].required=this.is_noble},brandidsearchChange:function(e){var t=e.id;e.code,e.label,this.ruleForm.brandid=t?[t]:[],this.$refs.ruleForm.validateField("brandid")},supplierNosearchChange:function(e){var t=e.id,r=e.code;e.label,this.ruleForm.supplierNo=t?[r]:[],this.$refs.ruleForm.validateField("supplierNo")},taxsearchChange:function(e){this.ruleForm.tax=e,this.$refs.ruleForm.validateField("tax")},unitsearchChange:function(e){var t=e.id,r=e.code;e.label,this.ruleForm.unit_id=t?[r]:[],this.$refs.ruleForm.validateField("unit_id")},metal_idsearchChange:function(e){var t=e.id;e.code,e.label,this.ruleForm.metal_id=t||"",this.$refs.ruleForm.validateField("metal_id")},selectAreaorigin_place:function(e){this.ruleForm.origin_place=e,this.$refs.ruleForm.validateField("origin_place")},UploadSuccessEventgood_img:function(e){var t=this;return Object(i.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t.UploadSuccessEvent(1,e);case 2:case"end":return r.stop()}}),r)})))()},UploadSuccessEvent:function(e,t){var r=this;return Object(i.a)(regeneratorRuntime.mark((function a(){var n;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if("noToken"===(n=t.url))return a.next=4,r.logout();a.next=6;break;case 4:a.next=8;break;case 6:(1===e||2===e)&&(r.ruleForm.good_img=n,r.$refs.ruleForm.validateField("good_img")),r.$message.success("图片上传成功!");case 8:case"end":return a.stop()}}),a)})))()},UploadErrorEventgood_img:function(e){this.imgUploadError(1,e)},imgUploadError:function(e,t){"break"!==t&&(this.$message.error("图片上传失败!"),this.$refs.ruleForm.validateField(1===e||2===e?"good_img":""))},beforeAvatarUpload:function(e){var t=!1;"image/jpg"!==e.type&&"image/png"!==e.type&&"image/jpeg"!==e.type||(t=!0),e=e.size/1024/1024<1;return t||this.$message.error("图片格式不正确!"),e||this.$message.error("图片大小不能超过 1MB!"),t&&e},resetFormData:function(){this.status="",this.is_noble=!1,this.cat_id_name="",this.brand_name="",this.unit_name="",this.ruleForm={infoNo:"",cat_id:[],supplierNo:[],pname:"",expire_day:"0",delivery_day:"0",work_day:"0",color:"",model:"",material:"",brandid:[],unit_id:[],weight:"0.000",tax:"",supply_area:"",origin_place:[],cert_fee:"0.00",pakge_fee:"0.00",cost_fee:"0.00",mark_fee:"0.00",demo_fee:"0.00",open_fee:"0.00",delivery_fee:"0.00",nake_fee:"0.00",pay_way:"",send_way:"",noble_weight:"0.000",metal_id:"",is_gold_price:"",is_diff:"",config:[],other_config:"",remark:"",cost_desc:"",good_img:""}},addFormData:function(){this.status="",this.is_noble=!1,this.cat_id_name="",this.brand_name="",this.unit_name="",this.ruleForm={infoNo:"",cat_id:[],supplierNo:[],pname:"",expire_day:"0",delivery_day:"0",work_day:"0",color:"",model:"",material:"",brandid:[],unit_id:[],weight:"0.000",tax:"",supply_area:"",origin_place:[],cert_fee:"0.00",pakge_fee:"0.00",cost_fee:"0.00",mark_fee:"0.00",demo_fee:"0.00",open_fee:"0.00",delivery_fee:"0.00",nake_fee:"0.00",pay_way:"",send_way:"",noble_weight:"0.000",metal_id:"",is_gold_price:"",is_diff:"",config:[],other_config:"",remark:"",cost_desc:"",good_img:""}}}},r("7f68"),d=r("2877"),o=Object(d.a)(c,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",rules:e.rulesThis,size:"mini","label-width":"85px"}},[r("el-row",[r("el-col",{staticStyle:{padding:"12px 16px 12px 16px","text-align":"right"},attrs:{span:24}},[r("span",{staticClass:"fl",staticStyle:{height:"28px","font-size":"16px","line-height":"28px"}},[e._v(e._s(e.title))]),r("el-button",{attrs:{size:"mini"},on:{click:function(t){return e.$emit("cancel")}}},[e._v("取 消 ")]),"view"!==e.type?r("el-button",{attrs:{size:"mini",type:"primary"},on:{click:e.submitForm}},[e._v("保 存 ")]):e._e()],1),r("el-col",{attrs:{span:16}},[r("el-form-item",{attrs:{label:"供应商",prop:"supplierNo"}},[r("search-supplier",{attrs:{value:e.ruleForm.supplierNo,placeholder:"供应商",size:"mini",names:e.supplierNo_name,disabled:"view"===e.type,isDetail:"add"!==e.type},on:{searchChange:e.supplierNosearchChange}})],1)],1),r("el-col",{attrs:{span:8}},[r("el-form-item",{attrs:{label:"品牌",prop:"brandid","label-width":"60px"}},[r("search-brand",{attrs:{value:e.ruleForm.brandid,size:"mini",disabled:!1,isDetail:!0,names:e.brand_name,placeholder:"品牌"},on:{searchChange:e.brandidsearchChange}})],1)],1),r("el-col",{attrs:{span:5}},[r("el-form-item",{attrs:{label:"有效期",prop:"expire_day"}},[r("digital-input",{attrs:{values:e.ruleForm.expire_day,placeholder:"有效期",min:0,max:1e11,position:"right",precision:0,size:"mini",disabled:"view"===e.type,controls:!1,append:"天"},on:{reschange:function(t){return e.number_change(t,"expire_day")}}})],1)],1),r("el-col",{attrs:{span:5}},[r("el-form-item",{attrs:{label:"物流时间",prop:"delivery_day"}},[r("digital-input",{attrs:{values:e.ruleForm.delivery_day,placeholder:"物流时间",min:0,max:1e11,position:"right",precision:0,size:"mini",disabled:"view"===e.type,controls:!1,append:"天"},on:{reschange:function(t){return e.number_change(t,"delivery_day")}}})],1)],1),r("el-col",{attrs:{span:5}},[r("el-form-item",{attrs:{label:"生产工期",prop:"work_day"}},[r("digital-input",{attrs:{values:e.ruleForm.work_day,placeholder:"生产工期",min:0,max:1e11,disabled:"view"===e.type,position:"right",precision:0,size:"mini",controls:!1,append:"天"},on:{reschange:function(t){return e.number_change(t,"work_day")}}})],1)],1),r("el-col",{attrs:{span:5}},[r("el-form-item",{attrs:{label:"税点",prop:"tax","label-width":"60px"}},[r("search-tax",{attrs:{value:e.ruleForm.tax,size:"mini",disabled:"view"===e.type,isDetail:"add"!==e.type,placeholder:"税点"},on:{searchChange:e.taxsearchChange}})],1)],1),r("el-col",{attrs:{span:4}},[r("el-form-item",{attrs:{label:"单位",prop:"unit_id","label-width":"60px"}},[r("search-unit",{attrs:{value:e.ruleForm.unit_id,size:"mini",isDetail:!0,names:e.unit_name,disabled:!1,placeholder:"单位"},on:{searchChange:e.unitsearchChange}})],1)],1),r("el-col",{attrs:{span:24}},[r("el-row",[r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"分类",prop:"cat_id"}},[r("search-sort",{attrs:{value:e.ruleForm.cat_id,placeholder:"分类",size:"mini",names:e.cat_id_name,disabled:!1,isDetail:!0},on:{searchChange:e.cat_id_change}})],1),r("el-form-item",{attrs:{label:"商品名称",prop:"pname"}},[r("el-input",{attrs:{placeholder:"商品名称",maxlength:"100",disabled:"view"===e.type},model:{value:e.ruleForm.pname,callback:function(t){e.$set(e.ruleForm,"pname",t)},expression:"ruleForm.pname"}})],1),r("el-form-item",{attrs:{label:"产地",prop:"origin_place"}},[r("select-area",{attrs:{placeholder:"产地",value:e.ruleForm.origin_place,size:"mini",disabled:"view"===e.type,"is-detail":"add"!==e.id},on:{selectChange:e.selectAreaorigin_place}})],1)],1),r("el-col",{staticStyle:{padding:"0 0 0 15px"},attrs:{span:12}},[r("el-table",{staticStyle:{width:"100%"},attrs:{data:e.spec_tableData,size:"mini",border:"","max-height":"120px"}},[r("el-table-column",{attrs:{prop:"spec_name",label:"规格类型"}}),r("el-table-column",{attrs:{prop:"spec_value_name",label:"规格值"}}),"view"!==e.type?r("el-table-column",{attrs:{fixed:"right",width:"88px"},scopedSlots:e._u([{key:"header",fn:function(t){return[r("span",[e._v("操作")]),r("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"添加规格类型",placement:"top"}},[r("i",{staticClass:"el-icon-circle-plus-outline fr",staticStyle:{"font-size":"18px","margin-top":"2px"},on:{click:function(t){return e.openEdit("-1",{})}}})])]}},{key:"default",fn:function(t){return[r("el-tooltip",{attrs:{effect:"dark",content:"修改",placement:"top"}},[r("i",{staticClass:"el-icon-edit tb-icon",on:{click:function(r){return e.openEdit(t.$index,t.row)}}})]),r("el-tooltip",{attrs:{effect:"dark",content:"删除",placement:"top"}},[r("i",{staticClass:"el-icon-delete tb-icon",on:{click:function(r){return e.openDelete(t.$index)}}})])]}}],null,!1,2783436760)}):e._e()],1),r("base-form-add-edit",{attrs:{index:e.modelIndex,"show-model":e.showOtherModel,sitem:e.modelSitem},on:{refresh:e.refreshEdit,cancel:function(t){e.showOtherModel=!1}}})],1)],1)],1),r("el-col",{attrs:{span:6}},[r("el-form-item",{attrs:{label:"总重量",prop:"weight"}},[r("digital-input",{attrs:{values:e.ruleForm.weight,placeholder:"总重量",min:0,max:1e11,position:"right",precision:3,disabled:"view"===e.type,size:"mini",controls:!1,append:"g"},on:{reschange:function(t){return e.number_change(t,"weight")}}})],1)],1),r("el-col",{attrs:{span:6}},[r("el-form-item",{attrs:{label:"供货区域",prop:"supply_area"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"",disabled:"view"===e.type,clearable:"",placeholder:"供货区域"},model:{value:e.ruleForm.supply_area,callback:function(t){e.$set(e.ruleForm,"supply_area",t)},expression:"ruleForm.supply_area"}},e._l(e.options6,(function(e){return r("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),r("el-col",{attrs:{span:6}},[r("el-form-item",{staticClass:"clear",attrs:{label:"付款方式",prop:"pay_way"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"",disabled:"view"===e.type,clearable:"",placeholder:"付款方式"},model:{value:e.ruleForm.pay_way,callback:function(t){e.$set(e.ruleForm,"pay_way",t)},expression:"ruleForm.pay_way"}},e._l(e.options10,(function(e){return r("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),r("el-col",{attrs:{span:6}},[r("el-form-item",{staticClass:"clear",attrs:{label:"发货方式",prop:"send_way"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"",clearable:"",disabled:"view"===e.type,placeholder:"发货方式"},model:{value:e.ruleForm.send_way,callback:function(t){e.$set(e.ruleForm,"send_way",t)},expression:"ruleForm.send_way"}},e._l(e.options11,(function(e){return r("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),r("el-col",{attrs:{span:6}},[r("el-form-item",{attrs:{label:"证书费",prop:"cert_fee"}},[r("digital-input",{attrs:{values:e.ruleForm.cert_fee,placeholder:"证书费",min:0,disabled:"view"===e.type,max:1e11,position:"right",precision:2,size:"mini",controls:!1,append:"元"},on:{reschange:function(t){return e.number_change(t,"cert_fee")}}})],1)],1),r("el-col",{attrs:{span:6}},[r("el-form-item",{attrs:{label:"包装费",prop:"pakge_fee"}},[r("digital-input",{attrs:{values:e.ruleForm.pakge_fee,placeholder:"包装费",min:0,disabled:"view"===e.type,max:1e11,position:"right",precision:2,size:"mini",controls:!1,append:"元"},on:{reschange:function(t){return e.number_change(t,"pakge_fee")}}})],1)],1),r("el-col",{attrs:{span:6}},[r("el-form-item",{attrs:{label:"工艺费",prop:"cost_fee"}},[r("digital-input",{attrs:{values:e.ruleForm.pcost_fee,placeholder:"工艺费",min:0,disabled:"view"===e.type,max:1e11,position:"right",precision:2,size:"mini",controls:!1,append:"元"},on:{reschange:function(t){return e.number_change(t,"cost_fee")}}})],1)],1),r("el-col",{attrs:{span:6}},[r("el-form-item",{attrs:{label:"加标费",prop:"mark_fee"}},[r("digital-input",{attrs:{values:e.ruleForm.mark_fee,placeholder:"加标费",min:0,disabled:"view"===e.type,max:1e11,position:"right",precision:2,size:"mini",controls:!1,append:"元"},on:{reschange:function(t){return e.number_change(t,"mark_fee")}}})],1)],1),r("el-col",{attrs:{span:6}},[r("el-form-item",{attrs:{label:"打样费",prop:"demo_fee"}},[r("digital-input",{attrs:{values:e.ruleForm.demo_fee,placeholder:"打样费",min:0,disabled:"view"===e.type,max:1e11,position:"right",precision:2,size:"mini",controls:!1,append:"元"},on:{reschange:function(t){return e.number_change(t,"demo_fee")}}})],1)],1),r("el-col",{attrs:{span:6}},[r("el-form-item",{attrs:{label:"开模费",prop:"open_fee"}},[r("digital-input",{attrs:{values:e.ruleForm.open_fee,placeholder:"开模费",min:0,disabled:"view"===e.type,max:1e11,position:"right",precision:2,size:"mini",controls:!1,append:"元"},on:{reschange:function(t){return e.number_change(t,"open_fee")}}})],1)],1),r("el-col",{attrs:{span:6}},[r("el-form-item",{attrs:{label:"物流费",prop:"delivery_fee"}},[r("digital-input",{attrs:{values:e.ruleForm.delivery_fee,placeholder:"物流费",min:0,disabled:"view"===e.type,max:1e11,position:"right",precision:2,size:"mini",controls:!1,append:"元"},on:{reschange:function(t){return e.number_change(t,"delivery_fee")}}})],1)],1),r("el-col",{attrs:{span:6}},[r("el-form-item",{staticClass:"clear",attrs:{label:"裸价",prop:"nake_fee"}},[r("digital-input",{attrs:{values:e.ruleForm.nake_fee,placeholder:"裸价",min:0,disabled:"view"===e.type,max:1e11,position:"right",precision:2,size:"mini",controls:!1,append:"元"},on:{reschange:function(t){return e.number_change(t,"nake_fee")}}})],1)],1),r("el-col",{directives:[{name:"show",rawName:"v-show",value:e.is_noble,expression:"is_noble"}],attrs:{span:24}},[r("el-col",{attrs:{span:6}},[r("el-form-item",{attrs:{label:"金属重量",prop:"noble_weight"}},[r("digital-input",{attrs:{values:e.ruleForm.noble_weight,placeholder:"金属重量",min:0,disabled:"view"===e.type,max:1e11,position:"right",precision:3,size:"mini",controls:!1,append:"g"},on:{reschange:function(t){return e.number_change(t,"noble_weight")}}})],1)],1),r("el-col",{attrs:{span:6}},[r("el-form-item",{attrs:{label:"金属种类",prop:"metal_id"}},[r("search-metal-kind",{attrs:{value:e.ruleForm.metal_id,size:"mini",disabled:!1,isDetail:!0,placeholder:"金属种类"},on:{searchChange:e.metal_idsearchChange}})],1)],1),r("el-col",{attrs:{span:6}},[r("el-form-item",{attrs:{label:"启用金价",prop:"is_gold_price"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"",clearable:"",disabled:"view"===e.type,placeholder:"启用金价"},model:{value:e.ruleForm.is_gold_price,callback:function(t){e.$set(e.ruleForm,"is_gold_price",t)},expression:"ruleForm.is_gold_price"}},e._l(e.options5,(function(e){return r("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),r("el-col",{attrs:{span:6}},[r("el-form-item",{attrs:{label:"有无工差",prop:"is_diff"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"",clearable:"",disabled:"view"===e.type,placeholder:"有无工差"},model:{value:e.ruleForm.is_diff,callback:function(t){e.$set(e.ruleForm,"is_diff",t)},expression:"ruleForm.is_diff"}},e._l(e.options8,(function(e){return r("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"配置要求",prop:"config"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{multiple:"",disabled:"view"===e.type,placeholder:"配置要求"},model:{value:e.ruleForm.config,callback:function(t){e.$set(e.ruleForm,"config",t)},expression:"ruleForm.config"}},e._l(e.options9,(function(e,t){return r("el-option",{key:e+t,attrs:{label:e,value:e}})})),1)],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"其他配置要求",prop:"other_config","label-width":"120px"}},[r("el-input",{attrs:{placeholder:"其他要求",maxlength:"100",disabled:"view"===e.type},model:{value:e.ruleForm.other_config,callback:function(t){e.$set(e.ruleForm,"other_config",t)},expression:"ruleForm.other_config"}})],1)],1)],1),r("el-col",{attrs:{span:18}},[r("el-form-item",{attrs:{label:"采购备注",prop:"remark"}},[r("el-input",{attrs:{placeholder:"采购备注",maxlength:"500",disabled:"view"===e.type},model:{value:e.ruleForm.remark,callback:function(t){e.$set(e.ruleForm,"remark",t)},expression:"ruleForm.remark"}})],1),r("el-form-item",{attrs:{label:"工艺说明",prop:"cost_desc"}},[r("el-input",{attrs:{placeholder:"工艺说明",maxlength:"500",disabled:"view"===e.type},model:{value:e.ruleForm.cost_desc,callback:function(t){e.$set(e.ruleForm,"cost_desc",t)},expression:"ruleForm.cost_desc"}})],1)],1),r("el-col",{attrs:{span:6}},[r("el-form-item",{staticClass:"activity-upload",attrs:{label:"商品图片(<1mb)",prop:"good_img"}},[r("div",{staticClass:"btnupload",staticStyle:{position:"relative"}},[e.ruleForm.good_img?r("img",{staticClass:"avatar",attrs:{src:e.ruleForm.good_img}}):r("i",{staticClass:"el-icon-plus avatar-uploader-icon"}),r("file-upload",{staticClass:"Upload",attrs:{accept:".jpg,.png,.jpeg",multiple:!0,disabled:"view"===e.type,uploadcondition:e.beforeAvatarUpload},on:{UploadErrorEvent:e.UploadErrorEventgood_img,UploadSuccessEvent:e.UploadSuccessEventgood_img}})],1)])],1)],1)],1)}),[],!1,null,"f89c3c76",null);t.default=o.exports},"93e6":function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=r("5530"),s=(r("96cf"),r("7db0"),r("d3b7"),r("159b"),r("b0c0"),r("f5ed")),i=r("9f53"),o=r("8775"),l=[{prop:"returnCode",label:"采购退货单编号"},{prop:"cgdNo",label:"采购单编号"},{prop:"apply_name",label:"申请人"},{prop:"class_cat",label:"商品分类"},{prop:"good_code",label:"商品编码"},{prop:"good_name",label:"商品名称"},{prop:"wsm_supplier",label:"供应商"},{prop:"wsm_supplierNo",label:"供应商编码"},{prop:"remark",label:"备注",span:"24",showProp:!0},{prop:"goo_num",label:"总采购数量"},{prop:"good_price",label:"采购单价"},{prop:"return_num",label:"退货退货数量"},{prop:"good_total",label:"退货总金额"},{prop:"post_company",label:"物流公司",showProp:!0},{prop:"post_code",label:"物流编号",showProp:!0},{prop:"post_fee",label:"物流费",showProp:!0},{prop:"status",label:"状态",_slot_:"status"},{prop:"updatetime",label:"更新时间"},{prop:"addtime",label:"创建时间"}],c=r("2f62");s={name:"purchaseReturnDetail",mixins:[s.a,i.a],components:{},computed:Object(n.a)(Object(n.a)({},Object(c.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"purchaseReturnDetail"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),data:function(){return{activeTabs:"1",orderCode:"",ShowDataTableColumns:l,activeNames:["0","1","2","3","4","10"],newTime:"",queryId:"",loading:!0,sitem:null,status:"",statusOptions:[{value:"1",label:"待业务审核"},{value:"2",label:"通知财务部门"},{value:"3",label:"采购退货成功"}]}},mounted:function(){this.queryId=this.$route.query.id,this.initData()},methods:{examForm:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){var a;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t.loading){r.next=4;break}return a="1"===e.state?"2":"0",r.next=4,t.setStatus(a,"提交业务审核",e.remark);case 4:case"end":return r.stop()}}),r)})))()},initData:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r,a,n,s;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,t.next=3,o.a.detail({returnCode:e.queryId});case 3:if(!(r=t.sent)||0!==r.code||!r.data){t.next=13;break}e.sitem=r.data,s=e.sitem,a=s.can,n=s.status,s=s.bk_code,e.status=n,e.orderCode=s,a&&0<a.length&&(e.sitem.class_cat="",a.forEach((function(t,r){e.sitem.class_cat+=0===r?t.name:"/"+t.name}))),e.getNewTime(),t.next=20;break;case 13:if(r&&100<=r.code&&r.code<=104)return t.next=16,e.logout();t.next=18;break;case 16:t.next=20;break;case 18:e.sitem={},e.status=0;case 20:e.loading=!1;case 21:case"end":return t.stop()}}),t)})))()},statusConfirm:function(e,t){var r=this;return Object(a.a)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r.$confirm("确定要".concat(t,"?"),{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(a.a)(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if("-1"===e)return a.next=3,r.deleteById(t);a.next=5;break;case 3:a.next=7;break;case 5:return a.next=7,r.setStatus(e,t);case 7:case"end":return a.stop()}}),a)})))).catch((function(){}));case 2:case"end":return n.stop()}}),n)})))()},deleteById:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){var a;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,o.a.delete({id:t.queryId});case 2:if(!(a=r.sent)||0!==a.code){r.next=8;break}t.$notify.success({title:e+"成功!",message:""}),t.routeGoto("purchaseReturn",{}),r.next=14;break;case 8:if(a&&100<=a.code&&a.code<=104)return r.next=11,t.logout();r.next=13;break;case 11:r.next=14;break;case 13:t.$message.warning(a.message);case 14:case"end":return r.stop()}}),r)})))()},setStatus:function(e,t){var r=this;return Object(a.a)(regeneratorRuntime.mark((function a(){var n,s;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return n={id:r.sitem.id,status:e,returnCode:r.queryId},a.next=3,o.a.status(n);case 3:if(s=a.sent,r.loading=!1,s&&0===s.code)return r.$notify.success({title:t+"成功!",message:""}),a.next=9,r.initData();a.next=11;break;case 9:a.next=17;break;case 11:if(s&&100<=s.code&&s.code<=104)return a.next=14,r.logout();a.next=16;break;case 14:a.next=17;break;case 16:r.$message.warning(s.message);case 17:case"end":return a.stop()}}),a)})))()},getNewTime:function(){this.newTime=(new Date).valueOf()}}},i=r("2877"),n=Object(i.a)(s,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("div",{staticClass:"purchaseReturnDetail pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?t("div",[t("div",{staticClass:"detail-page-title"},[t("span",[e._v("采购退货单编号:")]),e.sitem?t("span",[e._v(e._s(e.sitem.bk_code))]):e._e(),!e.powers.some((function(e){return"015"===e}))||"0"!==e.status&&"1"!==e.status&&"2"!==e.status?e._e():t("el-button",{staticClass:"fr",staticStyle:{margin:"0 0 0 12px"},attrs:{type:"danger",plain:"",size:"mini"},on:{click:function(t){return e.statusConfirm("-1","作废该条信息")}}},[e._v("作废该条信息")]),"1"===e.status&&e.powers.some((function(e){return"014"==e}))?t("el-button",{staticClass:"fr",attrs:{plain:"",type:"primary",size:"mini"},on:{click:function(t){return e.statusConfirm("0","取消审核流程")}}},[e._v("取消备库申请")]):e._e()],1),t("el-tabs",{model:{value:e.activeTabs,callback:function(t){e.activeTabs=t},expression:"activeTabs"}},[t("el-tab-pane",{attrs:{label:"业务详情",name:"1"}},[t("el-collapse",{staticStyle:{margin:"-18px 0 0 0"},model:{value:e.activeNames,callback:function(t){e.activeNames=t},expression:"activeNames"}},[t("el-collapse-item",{attrs:{title:"采购退货单信息",name:"0"}},[""!==e.newTime?t("show-data-table",{attrs:{newTime:e.newTime,sitem:e.sitem,columns:e.ShowDataTableColumns}},[t("template",{slot:"status"},[t("el-tag",{attrs:{size:"mini",type:"0"==e.sitem.status?"warning":""},domProps:{textContent:e._s((e.statusOptions.find((function(t){return t.value==e.sitem.status}))||{}).label||"--")}})],1)],2):e._e()],1)],1)],1),t("el-tab-pane",{attrs:{label:"审批记录",name:"2"}},[""!==e.newTime?t("process-time-line",{attrs:{newTime:e.newTime,type:"CGTHD",orderCode:e.queryId}}):e._e()],1)],1)],1):t("div",[t("no-auth")],1)])}),[],!1,null,null,null);t.default=n.exports},9406:function(e,t,r){"use strict";r.r(t);var a=r("5530"),n=r("2f62");a={name:"dashboard",data:function(){return{emptyGif:r("ff1f")}},computed:Object(a.a)({},Object(n.b)(["avatar"])),mounted:function(){}},r("9d69"),n=r("2877"),n=Object(n.a)(a,(function(){var e=this.$createElement;e=this._self._c||e;return e("div",{staticClass:"dashboard-container"},[e("div",{staticClass:"dashboard-editor-container"},[e("div",{staticClass:"info-container clearfix"},[e("pan-thumb",{attrs:{image:this.avatar,width:"130px",height:"130px"}}),e("span",{staticClass:"welcome-title"},[this._v("欢迎登录采销平台")])],1),e("img",{staticStyle:{width:"60%",margin:"-30px auto 0 auto"},attrs:{src:this.emptyGif}})])])}),[],!1,null,"6bdd809c",null);t.default=n.exports},"944b":function(e,t,r){},9456:function(e,t,r){"use strict";r("bfe2")},9486:function(e,t,r){"use strict";var a=r("1b69"),n="admin/";t.a={add:function(e,t){return Object(a.a)(n+"shareadd",e,"post",t)},delete:function(e,t){return Object(a.a)(n+"sharedel",e,"post",t)},list:function(e,t){return Object(a.a)(n+"sharelist",e,"post",t)},detail:function(e,t){return Object(a.a)(n+"shareinfo",e,"post",t)},update:function(e,t){return Object(a.a)(n+"sharesave",e,"post",t)},status:function(e,t){return Object(a.a)(n+"sharestatus",e,"post",t)},accountall:function(e,t){return Object(a.a)(n+"userall",e,"post",t)},groupall:function(e,t){return Object(a.a)(n+"GroupAll",e,"post",t)},actionList:function(e,t){return Object(a.a)(n+"menuactionlist",e,"post",t)}}},"948d":function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=r("5530"),s=(r("96cf"),r("7db0"),r("d3b7"),r("e9c4"),r("25f0"),r("a9e3"),r("f5ed")),i=r("9f53"),o=r("1b69"),l="admin/",c=function(e,t){return Object(o.a)(l+"getstockwsm",e,"post",t)},u=[{type:"expand",_slot_:"expand",label:""},{prop:"company_no",label:"仓库业务公司编码",width:"150"},{prop:"company_name",label:"仓库业务公司名称","min-width":"180"},{prop:"supplier_code",label:"仓库所在公司编码",width:"150"},{prop:"supplier_name",label:"仓库所在公司名称","min-width":"180"},{prop:"wsm_code",label:"仓库编码",width:"180"},{prop:"wsm_name",label:"仓库名称","min-width":"100"},{prop:"total_stock",label:"当前库存"},{prop:"wait_in_stock",label:"待入库"},{prop:"wait_out_stock",label:"待出库",width:"80px"},{prop:"usable_stock",label:"可用库存"},{prop:"intra_stock",label:"在途库存"}],d=r("2f62");s={name:"dataWeido",mixins:[s.a,i.a],computed:Object(n.a)(Object(n.a)({},Object(d.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"stockCount"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),data:function(){return{loading:!1,stock_code:"",supplier_code:"",parmValue:{companyNo:"",supplier_code:[],stock_code:[],page:1,size:15},tableData:[],table:{stripe:!0,border:!0,_defaultHeader_:["setcol"]},pageInfo:{size:15,curr:1,total:0},columns:u}},mounted:function(){this.searchList()},methods:{supplierChange:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){var a;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a=e.code,t.parmValue.companyNo=a||"",t.parmValue.supplier_code=[],t.supplier_code="",t.parmValue.stock_code=[],t.stock_code="",t.parmValue.page=1,t.pageInfo.curr=1,r.next=10,t.searchList();case 10:case"end":return r.stop()}}),r)})))()},selectStock:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){var a;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a=e.code,t.parmValue.stock_code=a?[a]:[],t.stock_code=a||"",t.parmValue.stock_code=[],t.stock_code="",t.parmValue.page=1,t.pageInfo.curr=1,r.next=9,t.searchList();case 9:case"end":return r.stop()}}),r)})))()},selectSupplier:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){var a;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a=e.code,t.parmValue.supplier_code=a?[a]:[],t.supplier_code=a||"",t.parmValue.stock_code=[],t.stock_code="",t.parmValue.page=1,t.pageInfo.curr=1,r.next=9,t.searchList();case 9:case"end":return r.stop()}}),r)})))()},restSearch:function(){this.pageInfo={size:15,curr:1,total:0},this.parmValue={companyNo:"",supplier_code:[],stock_code:[],page:1,size:15},this.searchList()},searchList:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r,a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,(r=JSON.parse(JSON.stringify(e.parmValue))).supplierNo=r.supplier_code.toString()||"",r.wsm_code=r.stock_code.toString()||"",delete r.supplier_code,delete r.stock_code,t.next=8,c(r);case 8:if(!(a=t.sent)||0!==a.code||!a.data){t.next=14;break}e.tableData=a.data.list,e.pageInfo.total=Number(a.data.count),t.next=21;break;case 14:if(a&&100<=a.code&&a.code<=104)return t.next=17,e.logout();t.next=19;break;case 17:t.next=21;break;case 19:e.tableData=[],e.pageInfo.total=0;case 21:e.loading=!1;case 22:case"end":return t.stop()}}),t)})))()}}},i=r("2877"),n=Object(i.a)(s,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"dataWeido pagePadding",staticStyle:{padding:"0"}},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?r("div",[r("ex-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{table:e.table,data:e.tableData,columns:e.columns,page:e.pageInfo,size:e.size},on:{"page-curr-change":e.handlePageChange,"page-size-change":e.handleSizeChange,"screen-reset":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()},"screen-submit":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},scopedSlots:e._u([{key:"table-header",fn:function(t){return[r("div",{staticStyle:{width:"100%"}},[r("el-row",{staticStyle:{padding:"0 0 0 80px"}},[r("el-col",{attrs:{span:24}},[r("el-col",{staticStyle:{width:"240px"},attrs:{span:12}},[r("search-work-company",{attrs:{value:e.parmValue.companyNo,names:"",size:e.searchSize,"is-detail":"add"!==e.id,placeholder:"业务公司"},on:{searchChange:e.supplierChange}})],1),r("el-col",{staticStyle:{width:"300px",padding:"0 0 0 10px"},attrs:{span:12}},[r("search-supplier",{attrs:{size:e.searchSize,placeholder:"供应商公司",disabled:""===e.parmValue.companyNo,value:e.parmValue.supplier_code},on:{searchChange:e.selectSupplier}})],1),r("el-col",{staticStyle:{width:"200px","padding-left":"10px"},attrs:{span:12}},[r("search-stock",{attrs:{isDetail:!0,size:e.searchSize,value:e.parmValue.stock_code,disabled:""===e.supplier_code,placeholder:"出库仓库",isRelation:!0,companyCode:e.supplier_code,names:""},on:{searchChange:e.selectStock}})],1),r("el-col",{staticStyle:{width:"54px"},attrs:{span:4}},[r("el-button",{staticClass:"fr",attrs:{size:e.searchSize,type:"primary",icon:"el-icon-search",label:""},on:{click:e.searchList}})],1),r("el-col",{staticClass:"mr5",staticStyle:{width:"54px","margin-left":"10px"},attrs:{span:4}},[r("el-button",{staticClass:"fr",attrs:{size:e.searchSize,type:"warning"},on:{click:e.restSearch}},[e._v("重置")])],1)],1)],1)],1)]}},{key:"expand",fn:function(t){return t=t.scope,[r("el-table",{staticStyle:{width:"100%",paddind:"20px"},attrs:{data:t.row.child,border:"",size:"small"}},[r("el-table-column",{attrs:{label:"商品编码",prop:"spuCode",width:"160"}}),r("el-table-column",{attrs:{label:"商品名称",prop:"good_name","min-width":"120","show-overflow-tooltip":""}}),r("el-table-column",{attrs:{label:"规格",prop:"attribute","show-overflow-tooltip":"","min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(t){return e._l(t.row.specinfo,(function(t,a){return r("span",{key:a+t.spec_value_id},[e._v(e._s(0===a?"":"-")+e._s(t.spec_name)+"["+e._s(t.spec_value)+"]")])}))}}],null,!0)}),r("el-table-column",{attrs:{label:"分类","min-width":"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return e._l(t.row.can,(function(t,a){return r("span",{key:a+t.spec_value_id},[e._v(e._s(0===a?"":"_")+e._s(t.name))])}))}}],null,!0)}),r("el-table-column",{attrs:{label:"品牌",prop:"brand_name","show-overflow-tooltip":"",width:"100"}}),r("el-table-column",{attrs:{label:"单位",prop:"unit","show-overflow-tooltip":"",width:"80"}}),r("el-table-column",{attrs:{label:"当前库存","show-overflow-tooltip":"",prop:"total_stock",width:"80"}}),r("el-table-column",{attrs:{label:"待入库存","show-overflow-tooltip":"",prop:"wait_in_stock",width:"80"}}),r("el-table-column",{attrs:{label:"待出库存","show-overflow-tooltip":"",prop:"wait_out_stock",width:"80"}}),r("el-table-column",{attrs:{label:"可用库存","show-overflow-tooltip":"",prop:"usable_stock",width:"80"}}),r("el-table-column",{attrs:{label:"在途库存","show-overflow-tooltip":"",prop:"intra_stock",width:"80"}})],1)]}}],null,!1,2290028115)}),r("add-edit",{attrs:{id:e.modelId,sitem:e.sitem,"show-model":e.showModel,"is-detail":e.isDetail},on:{refresh:e.searchList,cancel:function(t){e.showModel=!1}}})],1):r("div",[r("no-auth")],1)])}),[],!1,null,null,null);t.default=n.exports},"95b3":function(e,t,r){},"95c5":function(e,t,r){},"95d0":function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=(r("96cf"),r("7db0"),r("d3b7"),r("e9c4"),r("0ba2e")),s=r("9f53"),i=r("61f7");s={name:"purchase_check",props:["id","showModelThis","newTime","sitem"],mixins:[s.a],data:function(){return{options:[{value:"1",label:"个人承担"},{value:"2",label:"公司承担"},{value:"3",label:"供应商承担"}],returnCode:"",code:"",isShow:!1,loading:!1,status:"",showModelThis:this.showModel,resign_name:"",hand_name:"",ruleForm:{post_company:"",express_company:[],express_numbres:"",express_fee:0,is_th:""},rulesThis:this.rules,rules:{express_company:[{type:"array",required:!0,trigger:"change",message:"请选择物流公司"}],express_numbres:[{required:!0,trigger:"blur",validator:function(e,t,r){""===t?r(new Error("物流单号不能为空!")):Object(i.b)(t)?r():r(new Error("物流单号格式不正确!"))}}],express_fee:[{required:!0,trigger:"blur",validator:function(e,t,r){e.required&&""===t?r(new Error("不能为空!")):r()}}]}}},computed:{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"purchase_check"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}},mounted:function(){this.initForm()},watch:{id:function(e){e&&this.initForm()},newTime:function(e){e&&this.initForm()}},methods:{closeAdd:function(){this.showModelThis=!1},initForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.loading=!0,"add"===e.id)return e.status="",e.rulesThis=e.rules,t.next=6,e.resetForm();t.next=8;break;case 6:t.next=11;break;case 8:return e.rulesThis=e.rules,t.next=11,e.resetForm();case 11:e.loading=!1;case 12:case"end":return t.stop()}}),t)})))()},resetForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.resign_name="",e.hand_name="",e.status="",t.next=5,e.$nextTick((function(){var t,r,a,n,s;e.$refs.ruleForm&&(e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),t=(s=e.sitem).returnCode,r=s.is_th,a=s.company,n=s.post_code,s=s.post_fee,e.is_th=r,e.returnCode=t,e.ruleForm={post_company:"",express_company:a?[a]:[],express_numbres:n||"",express_fee:s||"0",is_th:r||""},e.isShow="1"!==r,e.rulesThis.express_fee[0].required="1"!==r)}));case 5:case"end":return t.stop()}}),t)})))()},submitForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.ruleForm.validate(function(){var t=Object(a.a)(regeneratorRuntime.mark((function t(r){var a,s;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r)return a=JSON.parse(JSON.stringify(e.ruleForm)),a={returnCode:e.returnCode,company:a.post_company,post_code:a.express_numbres,post_fee:a.express_fee||0,is_th:e.is_th},t.next=5,n.a.setdelivery(a);t.next=20;break;case 5:if(s=t.sent,e.loading=!1,!s||0!==s.code){t.next=12;break}e.$notify.success({title:s.message,message:""}),e.$emit("refresh"),t.next=18;break;case 12:if(s&&100<=s.code&&s.code<=104)return t.next=15,e.logout();t.next=17;break;case 15:t.next=18;break;case 17:e.$message.warning(s.message);case 18:t.next=22;break;case 20:return t.abrupt("return",!1);case 22:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()},handleCompany:function(e){e&&e.code&&(this.ruleForm.post_company=e.shortName,this.ruleForm.express_company=[e.code],this.ruleForm.page=1)},number_change:function(e,t){var r=this;return Object(a.a)(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:r.ruleForm[t]=e+""||"0",r.$refs.ruleForm.validateField(t);case 2:case"end":return a.stop()}}),a)})))()},handleChange:function(e){this.isShow=!(!e||"2"!=e)}}},r=r("2877"),r=Object(r.a)(s,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",staticStyle:{width:"100%",padding:"20px 0 0 0"},attrs:{loading:e.loading,model:e.ruleForm,"status-icon":"",size:"mini",rules:e.rulesThis,"label-width":"100px"}},[t("el-row",[t("el-col",{attrs:{span:6}},[t("el-form-item",{attrs:{label:"物流公司",prop:"express_company"}},[t("search-express",{attrs:{value:e.ruleForm.express_company,placeholder:"物流公司",names:"",size:"mini",disabled:!1,"is-detail":!1},on:{searchChange:e.handleCompany}})],1)],1),t("el-col",{attrs:{span:6}},[t("el-form-item",{attrs:{label:"物流单号",prop:"express_numbres"}},[t("el-input",{attrs:{placeholder:"物流单号",maxlength:"100"},model:{value:e.ruleForm.express_numbres,callback:function(t){e.$set(e.ruleForm,"express_numbres",t)},expression:"ruleForm.express_numbres"}})],1)],1),e.isShow?t("el-col",{attrs:{span:6}},[t("el-form-item",{attrs:{label:"物流费用",prop:"express_fee"}},[t("digital-input",{attrs:{values:e.ruleForm.express_fee,placeholder:"物流费用",min:0,disabled:!1,max:1e11,position:"right",precision:2,size:"mini",controls:!1,append:"元"},on:{reschange:function(t){return e.number_change(t,"lead_time")}}})],1)],1):e._e(),t("el-col",{staticStyle:{"text-align":"right"},attrs:{span:e.isShow?6:12}},[t("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.submitForm}},[e._v("保 存")])],1)],1)],1)}),[],!1,null,"33ae2f38",null);t.default=r.exports},"9619b":function(e,t,r){},"962f":function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=(r("e9c4"),r("d3b7"),r("25f0"),r("96cf"),r("e320")),s=r("9f53"),i=r("61f7");s={name:"Account",props:["showModel","id","sitem"],mixins:[s.a],data:function(){return{roleList:[],loading:!1,title:"新建发货申请单",showModelThis:this.showModel,rulesThis:{},rules:{send_num:[{required:!0,validator:function(e,t,r){""===t?r(new Error("不能为空!")):Object(i.k)(t)?r():r(new Error("仅支持整数!"))},trigger:"blur"}],contactor:[{required:!0,trigger:"blur",message:"联系人不能为空"}],mobile:[{required:!0,validator:function(e,t,r){""===t?r(new Error("手机号不能为空!")):Object(i.g)(t)?r():r(new Error("手机号格式不正确!"))},trigger:"blur"}],addr_code:[{type:"array",required:!0,message:"收货省市区不能为空",trigger:"change"}],addr:[{required:!0,message:"详细地址不能为空",trigger:"blur"}]},ruleForm:{orderCode:"",wsend_num:"",send_num:"",contactor:"",mobile:"",addr_code:[],addr:"",id:""}}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis:function(e){e||this.$emit("cancel")}},methods:{closeModel:function(){this.showModelThis=!1,this.$emit("closeModel")},initForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,e.rulesThis=e.rules,t.next=4,e.resetForm();case 4:e.loading=!1;case 5:case"end":return t.stop()}}),t)})))()},resetForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$nextTick((function(){var t,r;e.$refs.ruleForm&&(e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),t=(r=e.sitem).orderCode,r=r.wsend_num,e.ruleForm={orderCode:t||"",wsend_num:r||"0",send_num:r||"0",contactor:"",mobile:"",addr:"",addr_code:[]})}));case 2:case"end":return t.stop()}}),t)})))()},select_area_change:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:t.ruleForm.addr_code=e,t.$refs.ruleForm.validateField("addr_code");case 2:case"end":return r.stop()}}),r)})))()},submitForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.ruleForm.validate(function(){var t=Object(a.a)(regeneratorRuntime.mark((function t(r){var a,s;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r)return e.loading=!0,(a=JSON.parse(JSON.stringify(e.ruleForm))).addr_code=a.addr_code.toString(),t.next=6,n.a.saleout(a);t.next=22;break;case 6:if(s=t.sent,e.loading=!1,!s||0!==s.code){t.next=14;break}e.$notify.success({title:"添加成功",message:""}),e.showModelThis=!1,e.$emit("refresh"),t.next=20;break;case 14:if(s&&100<=s.code&&s.code<=104)return t.next=17,e.logout();t.next=19;break;case 17:t.next=20;break;case 19:e.$message.warning(s.message);case 20:t.next=24;break;case 22:return t.abrupt("return",!1);case 24:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()},handleCompany:function(e){e&&e.code&&(this.ruleForm.post_name=[e.shortName]),this.$refs.ruleForm.validateField("post_name")}}},r("f3cf"),r=r("2877"),r=Object(r.a)(s,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:e.title,center:!0,align:"left",top:"15vh",width:"700px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)"},on:{"update:visible":function(t){e.showModelThis=t},close:function(t){e.showModelThis=!1}}},[t("el-card",{staticClass:"account",staticStyle:{"margin-top":"-20px"}},[t("el-row",{attrs:{gutter:10}},[t("el-col",{attrs:{span:24}},[t("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",size:"mini",rules:e.rulesThis,"label-width":"85px"}},[t("el-row",[t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"未发总数",prop:"wsend_num",required:""}},[t("el-input",{attrs:{disabled:"",maxlength:"10",placeholder:"未发总数"},model:{value:e.ruleForm.wsend_num,callback:function(t){e.$set(e.ruleForm,"wsend_num",t)},expression:"ruleForm.wsend_num"}})],1)],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"发货数量",prop:"send_num"}},[t("el-input",{attrs:{placeholder:"收货数量",maxlength:"10"},model:{value:e.ruleForm.send_num,callback:function(t){e.$set(e.ruleForm,"send_num",t)},expression:"ruleForm.send_num"}})],1)],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"联系人",prop:"contactor"}},[t("el-input",{attrs:{maxlength:"250",placeholder:"联系人"},model:{value:e.ruleForm.contactor,callback:function(t){e.$set(e.ruleForm,"contactor",t)},expression:"ruleForm.contactor"}})],1)],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"联系电话",prop:"mobile"}},[t("el-input",{attrs:{maxlength:"11",placeholder:"联系电话"},model:{value:e.ruleForm.mobile,callback:function(t){e.$set(e.ruleForm,"mobile",t)},expression:"ruleForm.mobile"}})],1)],1),t("el-col",{attrs:{span:24}},[t("el-form-item",{attrs:{label:"收货省市区",prop:"addr_code","label-width":"99px"}},[t("select-area",{attrs:{value:e.ruleForm.addr_code,size:"mini",placeholder:"收货省市区"},on:{selectChange:function(t){return e.select_area_change(t)}}})],1)],1),t("el-col",{attrs:{span:24}},[t("el-form-item",{attrs:{label:"详细地址",prop:"addr"}},[t("el-input",{attrs:{maxlength:"250",placeholder:"详细地址"},model:{value:e.ruleForm.addr,callback:function(t){e.$set(e.ruleForm,"addr",t)},expression:"ruleForm.addr"}})],1)],1),t("el-col",{staticStyle:{"text-align":"right"},attrs:{span:24}},[t("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.submitForm}},[e._v("保 存 ")]),t("el-button",{attrs:{size:"mini"},on:{click:function(t){e.showModelThis=!1}}},[e._v(e._s(e.isDetail?"关 闭":"取 消"))])],1)],1)],1)],1)],1)],1)],1)}),[],!1,null,"ca9d6d82",null);t.default=r.exports},"966f":function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=r("5530"),s=(r("96cf"),r("7db0"),r("d3b7"),r("b0c0"),r("fb6a"),r("159b"),r("a9e3"),r("034d0")),i=r("92f1"),o=r("0ee5"),l=r("e66a"),c=r("f5ed"),u=r("2f62"),d=r("9f53");c={name:"exclusive",mixins:[c.a,d.a],components:{addEdit:s.default},computed:Object(n.a)(Object(n.a)({},Object(u.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"exclusive"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),data:function(){return{statusList:o.a,roleLevel:l.a,loading:!0,showModel:!1,modelId:"000",sitem:{},titleList:[],parmValue:{page:1,size:15,status:"",cat_name:"",pid:"0"},statusOptions:[{id:"0",label:"禁用"},{id:"1",label:"启用"}],tableData:[],table:{stripe:!0,border:!0,_defaultHeader_:["setcol"]},pageInfo:{size:15,curr:1,total:0},columns:[{prop:"id",label:"ID",width:"80px"},{prop:"name",label:"专属类型名称","min-width":"130px"},{prop:"status",label:"状态",_slot_:"status","min-width":"70px"},{prop:"level",label:"等级","min-width":"70px"},{prop:"creater",label:"创建人","min-width":"70px"},{prop:"addtime",label:"创建时间","min-width":"145px"},{prop:"",label:"操作",fixed:"right",width:"200px",_noset_:!0,_slot_:"operation"}]}},mounted:function(){this.initTitleList(),this.parmValue.pid="0",this.searchList()},methods:{restSearch:function(){this.pageInfo={size:15,curr:1,total:0},this.parmValue={page:1,size:15,status:"",pid:"0",cat_name:""},this.initTitleList(),this.searchList()},initTitleList:function(){this.titleList=[],this.titleList.push({id:"0",titleName:"全部一级专属类型"})},openChildren:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){var a;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return t.parmValue.pid=e.id,t.pageInfo.curr=1,t.parmValue.page=1,r.next=5,t.searchList();case 5:a={id:e.id,titleName:e.name},t.titleList.push(a);case 7:case"end":return r.stop()}}),r)})))()},openModal:function(e,t){var r=e.status;"005"===t&&"1"===r?this.$message.warning("禁用后,才可以修改!"):(this.sitem=e,this.modelId=t,this.showModel=!0)},changeBreadcrumb:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e+1===t.titleList.length)return r.abrupt("return");r.next=4;break;case 4:t.parmValue.pid=t.titleList[e].id,t.titleList=t.titleList.slice(0,e+1);case 6:return t.pageInfo.curr=1,t.parmValue.page=1,r.next=10,t.searchList();case 10:case"end":return r.stop()}}),r)})))()},changeStatus:function(e,t){var r=this;return Object(a.a)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r.$confirm("确定要改为".concat("1"===t?"禁用":"启用","?"),{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(a.a)(regeneratorRuntime.mark((function a(){var n,s;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return r.loading=!0,n={id:e,status:"1"===t?"0":"1"},a.next=4,i.a.status(n);case 4:if((s=a.sent)&&0===s.code)return r.loading=!1,r.$notify.success({title:"状态修改成功!",message:""}),a.next=10,r.searchList();a.next=12;break;case 10:a.next=19;break;case 12:if(s&&100<=s.code&&s.code<=104)return a.next=15,r.logout();a.next=17;break;case 15:a.next=19;break;case 17:r.loading=!1,r.$message.warning(s.message);case 19:case"end":return a.stop()}}),a)})))).catch((function(){}));case 2:case"end":return n.stop()}}),n)})))()},deleteItem:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t.$confirm("确定要删除?",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(a.a)(regeneratorRuntime.mark((function r(){var a,n;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a={id:e},r.next=3,i.a.delete(a);case 3:if(!(n=r.sent)||0!==n.code){r.next=9;break}t.$notify.success({title:"删除成功",message:""}),t.searchList(),r.next=15;break;case 9:if(n&&100<=n.code&&n.code<=104)return r.next=12,t.logout();r.next=14;break;case 12:r.next=15;break;case 14:t.$message.warning(n.message);case 15:case"end":return r.stop()}}),r)})))).catch((function(){}));case 2:case"end":return r.stop()}}),r)})))()},searchList:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,t.next=3,i.a.list(e.parmValue);case 3:if(!(r=t.sent)||0!==r.code||!r.data){t.next=10;break}e.tableData=r.data.list,e.tableData.forEach((function(e){e.im&&0<e.im.length?(e.specs="",e.im.forEach((function(t,r){e.specs+=0===r?t.spec_name:",".concat(t.spec_name)}))):e.specs=""})),e.pageInfo.total=Number(r.data.count),t.next=17;break;case 10:if(r&&100<=r.code&&r.code<=104)return t.next=13,e.logout();t.next=15;break;case 13:t.next=17;break;case 15:e.tableData=[],e.pageInfo.total=0;case 17:e.loading=!1;case 18:case"end":return t.stop()}}),t)})))()}}},r("1a65"),d=r("2877"),s=Object(d.a)(c,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"exclusive pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?r("ex-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{table:e.table,data:e.tableData,columns:e.columns,page:e.pageInfo,size:e.size},on:{"page-curr-change":e.handlePageChange,"page-size-change":e.handleSizeChange,"screen-reset":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()},"screen-submit":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},scopedSlots:e._u([{key:"table-header",fn:function(t){return[r("div",{staticStyle:{width:"100%"}},[r("el-row",{staticStyle:{padding:"0 0 10px 80px"}},[r("el-col",{staticStyle:{width:"748px"},attrs:{span:3}},[r("div",{staticClass:"my-breadcrumb clear"},e._l(e.titleList,(function(t,a){return r("div",{key:t+a,staticClass:"my-breadcrumb-item",on:{click:function(t){return e.changeBreadcrumb(a)}}},[r("span",{staticClass:"label"},[e._v(e._s(t.titleName))]),a+1!==e.titleList.length?r("span",{staticClass:"separator"},[e._v("/")]):e._e()])})),0)]),r("el-col",{staticClass:"fr",staticStyle:{width:"66px",padding:"0 0 0 10px"},attrs:{span:3}},[r("el-button",{attrs:{type:"primary",size:e.searchSize},on:{click:e.searchList}},[e._v(" 刷新 ")])],1),r("el-col",{staticClass:"fr",staticStyle:{width:"66px",padding:"0 0 0 10px"},attrs:{span:3}},[r("el-button",{attrs:{type:"warning",size:e.searchSize},on:{click:e.restSearch}},[e._v(" 重置 ")])],1)],1),r("el-row",[r("el-col",{staticStyle:{width:"160px"},attrs:{span:4}},[r("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"",clearable:"",size:e.searchSize,placeholder:"专属类型状态"},on:{change:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.parmValue.status,callback:function(t){e.$set(e.parmValue,"status",t)},expression:"parmValue.status"}},e._l(e.statusList,(function(e){return r("el-option",{key:"status"+e.code,attrs:{label:e.name,value:e.code}})})),1)],1),r("el-col",{staticStyle:{width:"380px",padding:"0 0 0 10px"},attrs:{span:4}},[r("el-input",{attrs:{size:e.searchSize,maxlength:40,placeholder:"专属类型名称"},on:{blur:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.parmValue.cat_name,callback:function(t){e.$set(e.parmValue,"cat_name",t)},expression:"parmValue.cat_name"}})],1),e.powers.some((function(e){return"003"==e}))?r("el-col",{staticClass:"fr",staticStyle:{width:"66px",padding:"0 0 0 10px"},attrs:{span:3}},[r("el-button",{staticStyle:{float:"right"},attrs:{size:e.searchSize,type:"success"},on:{click:function(t){return e.openModal({},"003")}}},[e._v(" 添加 ")])],1):e._e()],1)],1)]}},{key:"status",fn:function(t){var a=t.scope;return[r("el-tag",{attrs:{size:e.tablebtnSize,type:"0"==a.row.status?"warning":""},domProps:{textContent:e._s((e.statusOptions.find((function(e){return e.id==a.row.status}))||{}).label||"--")}})]}},{key:"operation",fn:function(t){var a=t.scope;return[e.powers.some((function(e){return"007"==e}))?r("el-tooltip",{attrs:{effect:"dark",content:"详情",placement:"top"}},[r("i",{staticClass:"el-icon-view tb-icon",on:{click:function(t){return e.openModal(a.row,"007")}}})]):e._e(),e.powers.some((function(e){return"005"==e}))?r("el-tooltip",{attrs:{effect:"dark",content:"修改",placement:"top"}},[r("i",{staticClass:"el-icon-edit tb-icon",on:{click:function(t){return e.openModal(a.row,"005")}}})]):e._e(),e.powers.some((function(e){return"004"==e}))&&"1"===a.row.status?r("el-tooltip",{attrs:{effect:"dark",content:"禁用",placement:"top"}},[r("i",{staticClass:"el-icon-video-pause tb-icon",on:{click:function(t){return e.changeStatus(a.row.id,a.row.status)}}})]):e._e(),e.powers.some((function(e){return"004"==e}))&&"0"===a.row.status?r("el-tooltip",{attrs:{effect:"dark",content:"启用",placement:"top"}},[r("i",{staticClass:"el-icon-video-play tb-icon",on:{click:function(t){return e.changeStatus(a.row.id,a.row.status)}}})]):e._e(),e.powers.some((function(e){return"006"==e}))?r("el-tooltip",{attrs:{effect:"dark",content:"删除",placement:"top"}},[r("i",{staticClass:"el-icon-delete tb-icon",on:{click:function(t){return e.deleteItem(a.row.id)}}})]):e._e(),parseInt(a.row.level)<2?r("el-tooltip",{attrs:{effect:"dark",content:"下级专属类型",placement:"top"}},[r("i",{staticClass:"el-icon-arrow-right tb-icon",on:{click:function(t){return e.openChildren(a.row)}}})]):e._e()]}}],null,!1,3725556754)}):r("no-auth"),r("add-edit",{attrs:{id:e.modelId,"show-model":e.showModel,sitem:e.sitem,titleList:e.titleList},on:{refresh:e.searchList,cancel:function(t){e.showModel=!1}}})],1)}),[],!1,null,"35d69fb4",null);t.default=s.exports},"96c6":function(e,t,r){"use strict";r("6800")},"96cc":function(e,t,r){"use strict";r("de7e")},"973a":function(e,t,r){"use strict";r("08c9")},9850:function(e,t,r){"use strict";t.a={tableFormThis:{type_code:[{required:!1,message:"",trigger:"blur"}],good_name:[{required:!1,message:"",trigger:"blur"}],usable_num:[{required:!1,message:"",trigger:"blur"}],allot_num:[{required:!1,message:"",trigger:"blur"}],error_num:[{required:!1,message:"",trigger:"blur"}],error_code:[{required:!1,message:"",trigger:"change"}],error_remark:[{required:!1,message:"",trigger:"blur"}]},columns:[{prop:"spuCode",label:"商品编号",width:"160",show:!0,type:"text"},{prop:"good_name",label:"调拨商品名称",minWidth:"180",show:!0,type:"text"},{prop:"usable_num",label:"可用库存数",width:"100",show:!0,type:"text"},{prop:"allot_num",label:"调拨总数量",width:"100",show:!0,type:"text"},{prop:"error_num",label:"异常数量",width:"100",show:!1,type:"text"},{prop:"error_code",label:"异常原因",width:"100",show:!1,type:"text"},{prop:"error_remark",label:"异常原因备注",width:"100",show:!1,type:"text"},{prop:"stock_num",label:"入库数量",width:"100",show:!1,type:"text"}]}},"997b":function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=(r("96cf"),r("9f53")),s=r("da35");n={name:"brand",props:["showModel","index","sitem","spuCode"],mixins:[n.a],data:function(){return{loading:!1,title:"",showModelThis:this.showModel,ruleForm:{id:"",index:"-1",min_num:"0",sale_price:"0",market_price:"0",market_platform:"",new_sale_price:"",status:"1",is_del:"0"},rulesThis:this.rules,search_loading:!1,rules:{min_num:[{required:!0,validator:function(e,t,r){""===t?r(new Error("起订量不能为空!")):"0"===t?r(new Error("起订量不能为零!")):r()},trigger:"blur"}],sale_price:[{required:!0,validator:function(e,t,r){""===t?r(new Error("售价不能为空!")):r()},trigger:"blur"}],market_price:[{required:!0,type:"number",validator:function(e,t,r){""===t?r(new Error("市场价不能为空!")):r()},trigger:"blur"}],market_platform:[{required:!0,message:"对比平台不能为空",trigger:"blur"}],status:[{required:!0,message:"请选择使用状态",trigger:"change"}]}}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis:function(e){e||this.$emit("cancel")}},methods:{initForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,t.next=3,e.resetForm();case 3:e.rulesThis=e.rules,e.index+""=="-1"?e.title="添加销售成本阶梯":e.title="修改销售成本阶梯",e.loading=!1;case 6:case"end":return t.stop()}}),t)})))()},resetForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$nextTick(Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.$refs.ruleForm)return e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),t.next=5,e.resetFormData();t.next=5;break;case 5:case"end":return t.stop()}}),t)}))));case 2:case"end":return t.stop()}}),t)})))()},resetFormData:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r,a,n,s,i,o,l;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return l=e.sitem,r=l.id,a=l.min_num,n=l.sale_price,s=l.market_price,i=l.market_platform,o=l.status,l=l.is_del,e.ruleForm={id:r||"",index:e.index,min_num:a||"0",sale_price:n||"0",market_price:s||"0",market_platform:i||"",new_sale_price:"",status:o||"1",is_del:l||"0"},t.next=4,e.get_new(e.ruleForm.min_num);case 4:case"end":return t.stop()}}),t)})))()},submitForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.ruleForm.validate(function(){var t=Object(a.a)(regeneratorRuntime.mark((function t(r){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r){t.next=5;break}e.showModelThis=!1,e.$emit("refresh",e.ruleForm),t.next=8;break;case 5:return t.abrupt("return",!1);case 8:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()},min_num_change:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return t.ruleForm.min_num=e+"",t.$refs.ruleForm.validateField("min_num"),r.next=4,t.get_new(t.ruleForm.min_num);case 4:case"end":return r.stop()}}),r)})))()},get_new:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){var a,n,i;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t.search_loading){r.next=24;break}if(""!==e&&"0"!==e){r.next=5;break}t.ruleForm.new_sale_price="0",r.next=24;break;case 5:return t.search_loading=!0,r.next=8,s.a.goodupprice({min_num:e,spuCode:t.spuCode});case 8:if(n=r.sent,a=n.code,i=n.data,n=n.message,t.search_loading=!1,0!==a){r.next=18;break}i=i.sale_price,t.ruleForm.new_sale_price=i,r.next=24;break;case 18:if(100<=a&&a<=104)return r.next=21,t.logout();r.next=23;break;case 21:r.next=24;break;case 23:1010==a?t.ruleForm.new_sale_price="0":t.$message.warning(n);case 24:case"end":return r.stop()}}),r)})))()},sale_price_change:function(e){this.ruleForm.sale_price=e,this.$refs.ruleForm.validateField("sale_price")},market_price_change:function(e){this.ruleForm.market_price=e,this.$refs.ruleForm.validateField("market_price")},reschange:function(e){this.ruleForm.price=e,this.$refs.ruleForm.validateField("price")}}},r("cec4"),r=r("2877"),r=Object(r.a)(n,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:e.title,center:!0,align:"left",top:"15vh",width:"500px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)"},on:{"update:visible":function(t){e.showModelThis=t},close:function(t){e.showModelThis=!1}}},[t("el-card",{staticStyle:{margin:"-20px 0 0 0"}},[t("el-row",{attrs:{gutter:10}},[t("el-col",{attrs:{span:24}},[t("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",size:"small",rules:e.rulesThis,"label-width":"85px"}},[t("el-form-item",{attrs:{label:"起订量",prop:"min_num"}},[t("digital-input",{attrs:{values:e.ruleForm.min_num,placeholder:"起订量",min:0,max:1e11,position:"right",precision:0,controls:!1,size:"small",disabled:"007"===e.id,append:""},on:{reschange:e.min_num_change}})],1),t("el-form-item",{attrs:{label:"系统售价",prop:"new_sale_price"}},[t("el-input",{directives:[{name:"loading",rawName:"v-loading",value:e.search_loading,expression:"search_loading"}],attrs:{placeholder:"系统售价",disabled:!0,maxlength:"20"},model:{value:e.ruleForm.new_sale_price,callback:function(t){e.$set(e.ruleForm,"new_sale_price",t)},expression:"ruleForm.new_sale_price"}},[t("template",{slot:"append"},[e._v("元")])],2)],1),t("el-form-item",{attrs:{label:"售价",prop:"sale_price"}},[t("digital-input",{attrs:{values:e.ruleForm.sale_price,placeholder:"售价",min:0,max:1e11,position:"right",precision:2,controls:!1,size:"small",disabled:"007"===e.id,append:"元"},on:{reschange:e.sale_price_change}})],1),t("el-form-item",{attrs:{label:"市场价",prop:"market_price"}},[t("digital-input",{attrs:{values:e.ruleForm.market_price,placeholder:"市场价",min:0,max:1e11,position:"right",precision:2,controls:!1,size:"small",disabled:"007"===e.id,append:"元"},on:{reschange:e.market_price_change}})],1),t("el-form-item",{attrs:{label:"对比平台",prop:"market_platform"}},[t("el-input",{attrs:{placeholder:"对比平台",maxlength:"50"},model:{value:e.ruleForm.market_platform,callback:function(t){e.$set(e.ruleForm,"market_platform",t)},expression:"ruleForm.market_platform"}})],1),t("el-row",{attrs:{gutter:10}},[t("el-col",{attrs:{span:16}},[t("el-form-item",{attrs:{label:"状态",prop:"status"}},[t("el-radio-group",{model:{value:e.ruleForm.status,callback:function(t){e.$set(e.ruleForm,"status",t)},expression:"ruleForm.status"}},[t("el-radio",{attrs:{label:"1"}},[e._v("启用")]),t("el-radio",{attrs:{label:"0"}},[e._v("禁用")])],1)],1)],1),t("el-col",{staticStyle:{"text-align":"right"},attrs:{span:8}},[t("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.submitForm}},[e._v("保 存 ")]),t("el-button",{attrs:{size:"small"},on:{click:function(t){e.showModelThis=!1}}},[e._v(e._s("取 消"))])],1)],1)],1)],1)],1)],1)],1)}),[],!1,null,"a0f5b568",null);t.default=r.exports},"9a12":function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=(r("96cf"),r("7db0"),r("d3b7"),r("e9c4"),r("159b"),r("c740"),r("a434"),r("99af"),r("b8d2")),s=r("9f53"),i=r("61f7"),o={name:"returnOrder",props:["showModel","index","sitem"],mixins:[s.a],data:function(){return{loading:!1,title:"",showModelThis:this.showModel,ruleForm:{error_num:"",error_code:"",error_remark:"",error_code_name:"",id:""},rulesThis:this.rules,rules:{error_num:[{required:!0,validator:function(e,t,r){""===t?r(new Error("异常数量不能为空!")):Object(i.k)(t)?r():r(new Error("异常数量必须为数字"))},trigger:"blur"}],error_code:[{required:!0,message:"请输入异常原因",trigger:"change"}],error_remark:[{required:!0,message:"请填写异常原因备注",trigger:"blur"}]}}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis:function(e){e||this.$emit("cancel")}},methods:{initForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,e.rulesThis=e.rules,-1===e.index?e.title="添加异常情况":e.title="编辑异常情况",t.next=5,e.resetForm();case 5:e.loading=!1;case 6:case"end":return t.stop()}}),t)})))()},resetForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$nextTick((function(){var t,r,a,n,s;e.$refs.ruleForm&&(e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),t=(s=e.sitem).error_num,r=s.error_code,a=s.error_remark,n=s.error_code_name,s=s.id,e.ruleForm={id:s||"",error_num:t||"",error_code:r||"",error_remark:a||"",error_code_name:n||""})}));case 2:case"end":return t.stop()}}),t)})))()},submitForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.ruleForm.validate(function(){var t=Object(a.a)(regeneratorRuntime.mark((function t(r){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r){t.next=5;break}e.showModelThis=!1,e.$emit("refresh",{index:e.index,item:JSON.parse(JSON.stringify(e.ruleForm))}),t.next=7;break;case 5:return t.abrupt("return",!1);case 7:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()},select_change:function(e){this.ruleForm.error_code=e&&e.code?e.code:"",this.ruleForm.error_code_name=e&&e.code?e.label:"",this.$refs.ruleForm.validateField("error_code_name"),this.$refs.ruleForm.validateField("error_code")}}};r=r("2877"),o=Object(r.a)(o,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:e.title,center:!0,align:"left",top:"15vh",width:"600px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)"},on:{close:function(t){e.showModelThis=!1},"update:visible":function(t){e.showModelThis=t}}},[t("el-card",{staticStyle:{margin:"-20px 0 0 0"}},[t("el-row",{attrs:{gutter:10}},[t("el-col",{attrs:{span:24}},[t("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",rules:e.rulesThis,"label-width":"80px"}},[t("el-row",[t("el-col",{attrs:{span:24}},[t("el-form-item",{attrs:{label:"异常数量",prop:"error_num"}},[t("el-input",{attrs:{placeholder:"请输入异常数量"},model:{value:e.ruleForm.error_num,callback:function(t){e.$set(e.ruleForm,"error_num",t)},expression:"ruleForm.error_num"}})],1)],1),t("el-col",{attrs:{span:24}},[t("el-form-item",{attrs:{label:"异常原因",prop:"error_code"}},[t("abnormal-cause",{attrs:{value:e.ruleForm.error_code,placeholder:"请选择异常原因",disabled:!1},on:{searchChange:e.select_change}})],1)],1),t("el-col",{attrs:{span:24}},[t("el-form-item",{attrs:{label:"异常备注",prop:"error_remark"}},[t("el-input",{attrs:{type:"textarea",rows:3,placeholder:"请输入异常备注",maxlength:"250","show-word-limit":""},model:{value:e.ruleForm.error_remark,callback:function(t){e.$set(e.ruleForm,"error_remark",t)},expression:"ruleForm.error_remark"}})],1)],1)],1)],1)],1),t("el-col",{staticStyle:{"text-align":"right"},attrs:{span:24}},[t("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("保 存 ")]),t("el-button",{on:{click:function(t){e.showModelThis=!1}}},[e._v("关 闭")])],1)],1)],1)],1)}),[],!1,null,"7cceb9e6",null).exports,s={name:"zxAfterSaleOrderDetail",props:["id","showModelThis","newTime","sitem"],mixins:[s.a],components:{abnormalConditionModal:o},data:function(){function e(e,t,r){""===t?r(new Error("数量不能为空!")):Object(i.k)(t)?r():r(new Error("数量格式不正确!"))}return{arr:[],s_item:null,sitemGetNumber:"",isShow:!1,returnNO:"",ruleForm:{return_num:"",normal:"",remark:"",product_go:[]},btn_code:"",index:"",options:[],edit:!1,totalNumber:0,loading:!1,status:"",showModel:null,rulesThis:this.rules,rules:{return_num:[{required:!0,trigger:"blur",validator:e}],normal:[{required:!0,trigger:"blur",validator:e}],remark:[{required:!0,trigger:"blur",message:"请填写备注信息"}]}}},computed:{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"returnOrderDetail"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}},watch:{newTime:function(e){e&&this.initForm()}},mounted:function(){this.initForm()},methods:{initForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,e.rulesThis=e.rules,t.next=4,e.getresultlist();case 4:return t.next=6,e.resetForm();case 6:e.loading=!1;case 7:case"end":return t.stop()}}),t)})))()},resetForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$nextTick((function(){var t,r,a,n,s;e.$refs.ruleForm&&(e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),e.status="",e.arr=[],t=(s=e.sitem).child,r=s.status,a=s.normal_num,n=s.remark,s=s.return_num,e.status=r,t&&(e.arr=t&&0<t.length?JSON.parse(JSON.stringify(t)):[],e.arr.forEach((function(e){e.is_del="0",e.error_code_name=e.error_msg}))),e.ruleForm={return_num:s||"",normal:a||"",remark:n,product_go:e.arr})}));case 2:case"end":return t.stop()}}),t)})))()},submitForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.ruleForm.validate(function(){var t=Object(a.a)(regeneratorRuntime.mark((function t(r){var a,s,i,o,l,c,u;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r){t.next=29;break}if(e.loading=!0,o=JSON.parse(JSON.stringify(e.ruleForm)),a=JSON.parse(JSON.stringify(e.arr)),c=o.return_num,s=o.normal,i=o.product_go,o=o.remark,l=0,i&&0<i.length&&i.forEach((function(e){l+=parseInt(e.error_num)})),parseInt(s)+l!==parseInt(c))return e.$message.warning("可销售数量+异常总数量不等于退货总数量!"),e.loading=!1,t.abrupt("return");t.next=11;break;case 11:return i.forEach((function(e){var t=a.findIndex((function(t){return e.id===t.id}));-1!==t&&a.splice(t,1)})),a.forEach((function(e){e.is_del="1"})),c={thNo:e.sitem.thNo,normal:s,remark:o,errorlist:[].concat(i).concat(a)},t.next=16,n.a.returnCheck(c);case 16:if(u=t.sent,e.loading=!1,!u||0!==u.code){t.next=23;break}e.$notify.success({title:u.message,message:""}),e.$emit("refresh"),t.next=29;break;case 23:if(u&&100<=u.code&&u.code<=104)return t.next=26,e.logout();t.next=28;break;case 26:t.next=29;break;case 28:e.$message.warning(u.message);case 29:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()},getresultlist:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r,a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n.a.resultlist({page:1,size:100,type:"1",status:"3"});case 2:if(!(r=t.sent)||0!==r.code||!r.data){t.next=8;break}a=r.data.list,e.options=a,t.next=14;break;case 8:if(r&&100<=r.code&&r.code<=104)return t.next=11,e.logout();t.next=13;break;case 11:t.next=14;break;case 13:e.$message.warning(r.message);case 14:case"end":return t.stop()}}),t)})))()},deleteRow:function(e,t){"add"!==this.id&&t[e].id&&this.delList.push(t[e]),t.splice(e,1),this.$refs.ruleForm.validateField("product_go")},openModal:function(e){this.s_item=-1===e?{}:JSON.parse(JSON.stringify(this.ruleForm.product_go[e])),this.index=e,this.showModel=!0},handleValue:function(e){var t,r,a,n,s=e.index;e=e.item;-1===s?this.ruleForm.product_go.push(JSON.parse(JSON.stringify(e))):(t=(e=JSON.parse(JSON.stringify(e))).error_num,r=e.error_code,a=e.error_remark,n=e.error_code_name,e=e.id,this.ruleForm.product_go[s].id=e,this.ruleForm.product_go[s].error_num=t,this.ruleForm.product_go[s].error_code=r,this.ruleForm.product_go[s].error_remark=a,this.ruleForm.product_go[s].error_code_name=n),this.$refs.ruleForm.validateField("product_go")}}},o=Object(r.a)(s,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",staticStyle:{width:"100%"},attrs:{loading:e.loading,model:e.ruleForm,"status-icon":"",size:"mini",rules:e.rulesThis,"label-width":"115px"}},[r("el-row",[r("el-col",{attrs:{span:8}},[r("el-form-item",{attrs:{label:"退货总数量",prop:"return_num"}},[r("el-input",{attrs:{disabled:"",placeholder:"退货总数量",maxlength:"10"},model:{value:e.ruleForm.return_num,callback:function(t){e.$set(e.ruleForm,"return_num",t)},expression:"ruleForm.return_num"}})],1),r("el-form-item",{attrs:{label:"可销售数量",prop:"normal"}},[r("el-input",{attrs:{disabled:!("1"===e.status&&e.powers&&0<e.powers.length&&e.powers.some((function(e){return"047"==e}))),placeholder:"可销售数量"},model:{value:e.ruleForm.normal,callback:function(t){e.$set(e.ruleForm,"normal",t)},expression:"ruleForm.normal"}})],1)],1),r("el-col",{attrs:{span:16}},[r("el-form-item",{attrs:{label:"其他备注",prop:"remark"}},[r("el-input",{attrs:{disabled:!("1"===e.status&&e.powers&&0<e.powers.length&&e.powers.some((function(e){return"047"==e}))),type:"textarea",maxlength:"250",rows:3,"show-word-limit":"",placeholder:"请填写备注"},model:{value:e.ruleForm.remark,callback:function(t){e.$set(e.ruleForm,"remark",t)},expression:"ruleForm.remark"}})],1)],1),"1"===e.status&&e.powers&&0<e.powers.length&&e.powers.some((function(e){return"047"==e}))?r("el-col",{attrs:{span:24}},[r("el-form-item",{attrs:{label:"异常情况记录",size:"mini"}},[r("el-form",{ref:"ruleForm",staticClass:"demo-tableForm product_go",attrs:{model:e.ruleForm,rules:e.tableFormThis,size:"mini"}},[r("el-table",{attrs:{data:e.ruleForm.product_go,border:"",size:"mini","row-key":"key"}},[r("el-table-column",{attrs:{label:"异常数量",prop:"error_num"}}),r("el-table-column",{attrs:{label:"异常原因",prop:"error_code_name"}}),r("el-table-column",{attrs:{label:"异常备注",prop:"error_remark"}}),"1"===e.status&&e.powers&&0<e.powers.length&&e.powers.some((function(e){return"047"==e}))?r("el-table-column",{attrs:{fixed:"right",label:"操作",width:"80"},scopedSlots:e._u([{key:"header",fn:function(t){return[r("span",[e._v("操作")]),r("el-tooltip",{staticClass:"fr",staticStyle:{margin:"3px 0 0 0"},attrs:{effect:"dark",content:"添加",placement:"top"}},[r("i",{staticClass:"el-icon-circle-plus-outline tb-icon",staticStyle:{color:"#63cbe7"},on:{click:function(t){return e.openModal(-1)}}})])]}},{key:"default",fn:function(t){return[t.row.edit?e._e():r("el-tooltip",{attrs:{effect:"dark",content:"编辑",placement:"top"}},[r("i",{staticClass:"el-icon-edit tb-icon",on:{click:function(r){return e.openModal(t.$index)}}})]),t.row.edit?r("el-tooltip",{attrs:{effect:"dark",content:"重置",placement:"top"}},[r("i",{staticClass:"el-icon-delete tb-icon",on:{click:function(r){return e.deleteRow(t.$index,e.ruleForm.product_go)}}})]):e._e()]}}],null,!1,1336181413)}):e._e()],1)],1)],1)],1):e._e(),"1"===e.status&&e.powers&&0<e.powers.length&&e.powers.some((function(e){return"047"==e}))?r("el-col",{staticStyle:{"text-align":"right",margin:"-5px 0 20px 0"},attrs:{span:24}},[r("el-button",{staticClass:"fr",attrs:{type:"primary",size:"mini"},on:{click:e.submitForm}},[e._v("保 存 ")])],1):e._e()],1),e._v(" 11 "),r("abnormal-condition-modal",{attrs:{index:e.index,sitem:e.s_item,"show-model":e.showModel},on:{refresh:e.handleValue,cancel:function(t){e.showModel=!1}}})],1)}),[],!1,null,"6e21bbeb",null);t.default=o.exports},"9a39":function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=r("5530"),s=(r("96cf"),r("7db0"),r("d3b7"),r("159b"),r("b0c0"),r("a9e3"),r("f5ed")),i=r("9f53"),o=r("0209e"),l=[{type:"selection",fixed:"left",_noset_:!0},{prop:"orderCode",label:"订单编号",width:"155px"},{prop:"good_name",label:"商品名称",_slot_:"good_name",width:"150"},{prop:"good_class",label:"商品分类",width:"120"},{prop:"good_num",label:"商品数量"},{prop:"sale_price",label:"销售单价"},{prop:"total_price",label:"总价"},{prop:"status",label:"订单状态",_slot_:"status",width:"120px"},{prop:"order_type",label:"订单类型",_slot_:"order_type",width:"130px"},{prop:"useage",label:"订单用途",width:"100px"},{prop:"customer_code",label:"客户公司编码",width:"155px"},{prop:"customerName",label:"企业客户名称",width:"125px"},{prop:"supplierName",label:"销售方公司",width:"125px"},{prop:"apply_name",label:"创建人",width:"60px"},{prop:"addtime",label:"创建时间",width:"145px"},{prop:"",label:"操作",fixed:"right",_noset_:!0,width:"50px",_slot_:"operation"}],c=r("204b"),u=r("d548"),d=r("2f62");s={name:"salesOrder",mixins:[s.a,i.a],components:{addEdit:c.default,userAddEdit:u.default},computed:Object(n.a)(Object(n.a)({},Object(d.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"salesOrder"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),data:function(){return{sitem:null,select:"orderCode",input:"",customerCode:[],statusOptions:[{id:"0",label:"待发货"},{id:"1",label:"待发货完成"},{id:"2",label:"发货已完成"},{id:"3",label:"订单已取消"}],orderOptions:[{id:"1",label:"线上商品销售"},{id:"2",label:"项目线上商品销售"},{id:"3",label:"咨询单销售"},{id:"4",label:"项目咨询单销售"}],loading:!1,showModel:!1,isDetail:!1,modelId:0,parmValue:{order_type:"",orderCode:"",apply_name:"",good_name:"",good_code:"",status:"",page:1,size:15,supplierNo:"",customer_code:"",start:"",end:""},tableData:[],table:{stripe:!0,border:!0,_defaultHeader_:["setcol"]},pageInfo:{size:15,curr:1,total:0},columns:l,orderCodeList:[],userShowModel:!1}},mounted:function(){this.searchList()},methods:{restSearch:function(){this.select="orderCode",this.input="",this.customerCode=[],this.parmValue={order_type:"",orderCode:"",apply_name:"",good_name:"",good_code:"",status:"",page:1,size:15,supplierNo:"",customer_code:"",start:"",end:""},this.pageInfo={size:15,curr:1,total:0},this.searchList()},openModal:function(e,t,r){this.modelId=e,this.isDetail=t,this.sitem=r,this.showModel=!0},supplierChange:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){var a;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return e.id,a=e.code,e.label,t.parmValue.supplierNo=a||"",t.parmValue.page=1,t.pageInfo.curr=1,r.next=6,t.searchList();case 6:case"end":return r.stop()}}),r)})))()},set_user:function(e){var t,r=this;0===e.length?this.$message.warning("至少选择一个订单!"):(this.orderCodeList=[],t=!0,e.forEach((function(e){r.orderCodeList.push(e.orderCode),e.use_order&&(t=!1)})),t?this.userShowModel=!0:this.$message.warning("只能选择未绑定的订单!"))},customerChange:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return e&&e.id?(t.customerCode=[e.code],t.parmValue.customer_code=e.code):(t.customerCode=[],t.parmValue.customer_code=""),t.parmValue.page=1,t.pageInfo.curr=1,r.next=5,t.searchList();case 5:case"end":return r.stop()}}),r)})))()},stockChange:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return e&&e.id?t.parmValue.stockNo=[e.code]:t.parmValue.stockNo=[],t.parmValue.page=1,t.pageInfo.curr=1,r.next=5,t.searchList();case 5:case"end":return r.stop()}}),r)})))()},searchList:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(""!==e.parmValue.start&&""===e.parmValue.end||""===e.parmValue.start&&""!==e.parmValue.end)return e.$message.warning("时间区间不完整!"),t.abrupt("return");t.next=3;break;case 3:return e.loading=!0,e.parmValue.orderCode="orderCode"===e.select?e.input:"",e.parmValue.good_name="good_name"===e.select?e.input:"",e.parmValue.apply_name="apply_name"===e.select?e.input:"",t.next=9,o.a.list(e.parmValue);case 9:if(!(r=t.sent)||0!==r.code||!r.data){t.next=16;break}e.tableData=r.data.list,e.tableData.forEach((function(e){e.good_class="",e.can&&0<e.can.length&&e.can.forEach((function(t,r){e.good_class+=0===r?t.name:"_"+t.name}))})),e.pageInfo.total=Number(r.data.count),t.next=23;break;case 16:if(r&&100<=r.code&&r.code<=104)return t.next=19,e.logout();t.next=21;break;case 19:t.next=23;break;case 21:e.tableData=[],e.pageInfo.total=0;case 23:e.loading=!1;case 24:case"end":return t.stop()}}),t)})))()},handleTime:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:""!==e.startTime?t.parmValue.start=e.startTime:t.parmValue.start="",""!==e.endTime?t.parmValue.end=e.endTime:t.parmValue.end="";case 2:case"end":return r.stop()}}),r)})))()}}},r("973a"),i=r("2877"),c=Object(i.a)(s,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"salesOrder pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?r("div",[r("ex-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{table:e.table,data:e.tableData,columns:e.columns,page:e.pageInfo,size:e.size},on:{"page-curr-change":e.handlePageChange,"page-size-change":e.handleSizeChange,"screen-reset":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()},"screen-submit":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},scopedSlots:e._u([{key:"table-header",fn:function(t){var a=t.selection;return[r("div",{staticStyle:{width:"100%"}},[r("el-row",{staticStyle:{padding:"0 0 0 80px"}},[r("el-col",{staticStyle:{width:"293px",padding:"0 0 0 0px"},attrs:{span:6}},[r("period-date-picker",{attrs:{type:1,width:"135px",size:e.searchSize,start:e.parmValue.start,end:e.parmValue.end},on:{timeReturned:e.handleTime}})],1),r("el-col",{staticStyle:{width:"148px",padding:"0 0 0 8px"},attrs:{span:4}},[r("el-select",{staticStyle:{width:"100%"},attrs:{size:e.searchSize,filterable:"",clearable:"",placeholder:"订单状态"},on:{change:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.parmValue.status,callback:function(t){e.$set(e.parmValue,"status",t)},expression:"parmValue.status"}},e._l(e.statusOptions,(function(e){return r("el-option",{key:"status"+e.id,attrs:{label:e.label,value:e.id}})})),1)],1),r("el-col",{staticStyle:{width:"240px",padding:"0 0 0 10px"},attrs:{span:4}},[r("search-work-company",{attrs:{type:"1",value:e.parmValue.supplierNo,size:"mini",placeholder:"销售方公司",disabled:!1,isDetail:!1},on:{searchChange:e.supplierChange}})],1),r("el-col",{staticStyle:{width:"66px",float:"right"},attrs:{span:3}},[r("el-button",{staticStyle:{float:"right","margin-left":"5px"},attrs:{size:e.searchSize,type:"primary"},on:{click:e.searchList}},[e._v(" 刷新 ")])],1),r("el-col",{staticStyle:{width:"66px",float:"right"},attrs:{span:3}},[r("el-button",{staticStyle:{float:"right","margin-left":"5px"},attrs:{size:e.searchSize,type:"primary"},on:{click:function(t){return e.set_user(a)}}},[e._v(" 设置订单用途 ")])],1)],1),r("el-row",{staticStyle:{padding:"10px 0 0 0"}},[r("el-col",{staticStyle:{width:"371px"},attrs:{span:6}},[r("search-customer",{attrs:{value:e.customerCode,size:e.searchSize,placeholder:"客户公司名称"},on:{searchChange:e.customerChange}})],1),r("el-col",{staticStyle:{width:"150px",padding:"0 0 0 9px"},attrs:{span:4}},[r("el-select",{staticStyle:{width:"100%"},attrs:{size:e.searchSize,filterable:"",clearable:"",placeholder:"订单类型"},on:{change:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.parmValue.order_type,callback:function(t){e.$set(e.parmValue,"order_type",t)},expression:"parmValue.order_type"}},e._l(e.orderOptions,(function(e){return r("el-option",{key:"orderstatus"+e.id,attrs:{label:e.label,value:e.id}})})),1)],1),r("el-col",{staticStyle:{width:"325px",padding:"0 0 0 10px"},attrs:{span:6}},[r("el-input",{staticClass:"input-with-select",attrs:{clearable:"",placeholder:"关键字",maxlength:"40",size:e.searchSize},on:{blur:e.searchList},model:{value:e.input,callback:function(t){e.input=t},expression:"input"}},[r("el-select",{staticStyle:{width:"100px"},attrs:{slot:"prepend",placeholder:"关键字类型"},on:{change:e.searchList},slot:"prepend",model:{value:e.select,callback:function(t){e.select=t},expression:"select"}},[r("el-option",{attrs:{label:"订单编号",value:"orderCode"}}),r("el-option",{attrs:{label:"商品名称",value:"good_name"}}),r("el-option",{attrs:{label:"申请人",value:"apply_name"}})],1)],1)],1),r("el-col",{staticStyle:{width:"66px",float:"right"},attrs:{span:4}},[r("el-button",{staticClass:"fr",attrs:{type:"warning",size:e.searchSize},on:{click:e.restSearch}},[e._v(" 重置 ")])],1),e.powers.some((function(e){return"003"==e}))?r("el-col",{staticStyle:{width:"56px",float:"right"},attrs:{span:3}},[r("el-button",{staticStyle:{float:"right"},attrs:{size:e.searchSize,type:"success"},on:{click:function(t){return e.routeGoto("salesOrderDetail",{id:"add",type:"add"})}}},[e._v(" 新建 ")])],1):e._e()],1)],1)]}},{key:"good_name",fn:function(t){return t=t.scope,[r("span",[e._v(e._s(t.row.good_name))]),e._l(t.row.speclist,(function(t,a){return r("span",{key:t.spec_id+a},[r("span",0!==a?[e._v("-")]:[e._v("_")]),r("span",[e._v(e._s(t.spec_name)+"["+e._s(t.spec_value)+"]")])])}))]}},{key:"status",fn:function(t){var a=t.scope;return[r("el-tag",{attrs:{size:e.tablebtnSize,type:"0"==a.row.status?"warning":""},domProps:{textContent:e._s((e.statusOptions.find((function(e){return e.id==a.row.status}))||{}).label||"--")}})]}},{key:"order_type",fn:function(t){var a=t.scope;return[r("el-tag",{attrs:{size:e.tablebtnSize},domProps:{textContent:e._s((e.orderOptions.find((function(e){return e.id==a.row.order_type}))||{}).label||"--")}})]}},{key:"operation",fn:function(t){var a=t.scope;return[r("el-tooltip",{attrs:{effect:"dark",content:"详情",placement:"top"}},[r("i",{staticClass:"el-icon-view tb-icon",on:{click:function(t){return e.routeGoto("salesOrderDetail",{id:a.row.id,type:"view"})}}})])]}}],null,!1,2627720076)}),r("add-edit",{attrs:{id:e.modelId,sitem:e.sitem,"show-model":e.showModel,"is-detail":e.isDetail},on:{refresh:e.searchList,cancel:function(t){e.showModel=!1}}}),r("user-add-edit",{attrs:{code:e.orderCodeList,"show-model":e.userShowModel},on:{refresh:e.searchList,cancel:function(t){e.userShowModel=!1}}})],1):r("div",[r("no-auth")],1)])}),[],!1,null,"562735fa",null);t.default=c.exports},"9ab0":function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=r("ade3"),s=r("5530"),i=(r("96cf"),r("7db0"),r("d3b7"),r("a9e3"),r("452f")),o=r("f5ed"),l=r("9f53"),c=r("7904"),u=r("2f62");o={name:"addEdit",props:["id","newTime","sitem"],mixins:[o.a,l.a],components:{resultUplodModel:c.default},computed:Object(s.a)(Object(s.a)({},Object(u.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"checkDetail"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),watch:{newTime:function(e){e&&this.restSearch()}},data:function(){var e={importshowModel:!1,status:"",typeOptions:[{id:"0",label:"盘盈"},{id:"1",label:"盘亏"}],loading:!0,showModel:!1,isDetail:!1,modelId:0,parmValue:{page:1,size:15,check_code:""},tableData:[],passwordModel:!1,passwordModelId:0,isPasswordDetail:!1};return Object(n.a)(e,"tableData",[]),Object(n.a)(e,"table",{stripe:!0,border:!0}),Object(n.a)(e,"pageInfo",{size:15,curr:1,total:0}),Object(n.a)(e,"columns",[{prop:"good_type_code",label:"商品属性编号","min-width":"130px"},{prop:"good_name",label:"商品名称","min-width":"200px"},{prop:"is_profit",label:"盘盈/盘亏",_slot_:"is_profit","min-width":"100px"},{prop:"origin_num",label:"盘点前数量","min-width":"110px"},{prop:"check_num",label:"盘点后数量","min-width":"110px"},{prop:"diff_num",label:"差额数量","min-width":"100px"},{prop:"addtime",label:"结果上传时间",width:"145px"},{prop:"",label:"操作",fixed:"right",_noset_:!0,width:"50px",_slot_:"operation"}]),e},mounted:function(){this.restSearch()},methods:{restSearch:function(){this.status=this.sitem.status,this.pageInfo={size:15,curr:1,total:0},this.parmValue={id:"",page:1,size:15},this.searchList()},refresh:function(){this.pageInfo.curr=1,this.parmValue.page=1,this.searchList(),this.$emit("refresh")},searchList:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,e.parmValue.id=e.id,t.next=4,i.a.checkgood(e.parmValue);case 4:if(!(r=t.sent)||0!==r.code||!r.data){t.next=10;break}e.tableData=r.data.list,e.pageInfo.total=Number(r.data.count),t.next=17;break;case 10:if(r&&100<=r.code&&r.code<=104)return t.next=13,e.logout();t.next=15;break;case 13:t.next=17;break;case 15:e.tableData=[],e.pageInfo.total=0;case 17:e.loading=!1;case 18:case"end":return t.stop()}}),t)})))()}}},l=r("2877"),c=Object(l.a)(o,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[r("el-table",{directives:[{name:"loading",rawName:"v-loading",value:!1,expression:"false"}],staticStyle:{width:"100%"},attrs:{data:e.tableData,border:"",stripe:"",size:"mini"}},[r("el-table-column",{attrs:{prop:"good_type_code",label:"商品属性编号","min-width":"130"}}),r("el-table-column",{attrs:{prop:"good_name",label:"商品名称","min-width":"200"}}),r("el-table-column",{attrs:{prop:"is_profit",label:"盘盈/盘亏","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-tag",{attrs:{size:e.tablebtnSize,type:"0"==t.row.is_profit?"success":"warning"},domProps:{textContent:e._s((e.typeOptions.find((function(e){return e.id==t.row.is_profit}))||{}).label||"--")}})]}}])}),r("el-table-column",{attrs:{prop:"origin_num",label:"盘点前数量","min-width":"110"}}),r("el-table-column",{attrs:{prop:"check_num",label:"盘点后数量","min-width":"110"}}),r("el-table-column",{attrs:{prop:"diff_num",label:"差额数量","min-width":"110"}}),r("el-table-column",{attrs:{prop:"addtime",width:"145",label:"结果上传时间"},scopedSlots:e._u([{key:"header",fn:function(t){return[r("span",[e._v("结果上传时间")]),"1"==e.status&&e.powers.some((function(e){return"017"==e}))?r("el-tooltip",{staticClass:"fr",staticStyle:{margin:"3px 0 0 0"},attrs:{effect:"dark",content:"添加",placement:"top"}},[r("i",{staticClass:"el-icon-circle-plus-outline tb-icon",staticStyle:{color:"#63cbe7",magin:"0 0 0 10px"},on:{click:function(t){e.importshowModel=!0}}})]):e._e()]}}])})],1),e.tableData&&0<e.tableData.length?r("div",{staticClass:"Pagination",staticStyle:{"text-align":"right","margin-top":"10px"}},[r("el-pagination",{attrs:{"current-page":e.parmValue.page,"page-size":e.parmValue.size,size:"mini",layout:"total, prev, pager, next, jumper",total:e.pageInfo.total},on:{"size-change":e.handleSizeChange,"current-change":e.handlePageChange}})],1):e._e(),r("result-uplod-model",{attrs:{"show-model":e.importshowModel,id:e.id},on:{refresh:e.refresh,cancel:function(t){e.importshowModel=!1}}})],1)}),[],!1,null,"3a417cf9",null);t.default=c.exports},"9b12":function(e,t,r){},"9b5e":function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=(r("96cf"),{name:"handover",props:["showModel","id","isDetail","sitem"],components:{addEditForm:r("547b").default},data:function(){return{sitem:null,title:"",showModelThis:this.showModel}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis:function(e){e||this.$emit("cancel")}},methods:{initForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.loading=!0,"add"===e.id?(e.title="新建售后申请",e.rulesThis=e.rules):e.isDetail?e.rulesThis={}:e.rulesThis=e.rules,e.loading=!1;case 3:case"end":return t.stop()}}),t)})))()},handClick:function(e){this.showModelThis=e},refresh:function(e){this.showModelThis=e.close,this.$emit("refresh",{status:5})}}});r=r("2877"),r=Object(r.a)(n,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("el-dialog",{attrs:{title:"新建售后申请",center:!0,align:"left",top:"14vh",width:"1000px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)"},on:{"update:visible":function(t){e.showModelThis=t},close:function(t){e.showModelThis=!1}}},[t("el-card",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{"margin-top":"-20px"}},[e.showModel?t("add-edit-form",{attrs:{id:e.id,sitem:e.sitem,"show-model":e.showModel,"is-detail":e.isDetail},on:{closeModel:e.handClick,refresh:e.refresh}}):e._e()],1)],1)}),[],!1,null,"5eb5c1d5",null);t.default=r.exports},"9b9d":function(e,t,r){"use strict";r("ea68")},"9bbb":function(e,t,r){},"9cbd":function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=r("5530"),s=(r("96cf"),r("7db0"),r("d3b7"),r("e9c4"),r("c717")),i=r("9f53"),o=r("2f62"),l=r("6986");i={name:"supplierDetail",mixins:[i.a],components:{baseForm:l.default},computed:Object(n.a)(Object(n.a)({},Object(o.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"supplierDetail"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),data:function(){return{statusList:[],size:"small",activeTabs:"1",activeNames:["0","1"],editColumns:[{prop:"code",label:"供应商编号",span:6},{prop:"status",label:"使用状态",_slot_:"status",span:4},{prop:"ocr_status",label:"执照识别状态",_slot_:"ocr_status",span:5},{prop:"creater",label:"创建人",span:4},{prop:"addtime",label:"创建时间",span:5}],statusOptions:[{id:"0",label:"禁用"},{id:"1",label:"启用"}],ocr_status:[{id:"0",label:"未上传"},{id:"1",label:"识别成功"},{id:"2",label:"识别失败"}],newTime:"",loading:!1,queryType:"",queryId:"",status:"",sitem:null}},mounted:function(){this.initForm()},methods:{initForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r,a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a=e.$route.query,r=a.id,a=a.type,e.queryId=r,e.queryType=a,e.activeTabs="add"===a?"0":"1",e.loading=!0,"add"!==e.queryType){t.next=10;break}e.sitem={},e.getNewTime(),t.next=12;break;case 10:return t.next=12,e.initData();case 12:e.loading=!1;case 13:case"end":return t.stop()}}),t)})))()},examForm:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){var a;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t.loading){r.next=5;break}return a="1"===e.state?"1":e.rebut,r.next=5,t.setstatus(a,"提交采购部门审核",e.remark);case 5:case"end":return r.stop()}}),r)})))()},setstatus:function(e,t,r){var n=this;return Object(a.a)(regeneratorRuntime.mark((function i(){return regeneratorRuntime.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,n.$confirm("确定要".concat(t,"?"),{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(a.a)(regeneratorRuntime.mark((function t(){var a,i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a={spuCode:n.queryId,status:e,remark:r},t.next=3,s.a.status(a);case 3:if((i=t.sent)&&0===i.code)return n.$notify.success({title:"提交成功!",message:""}),t.next=8,n.initForm();t.next=10;break;case 8:t.next=16;break;case 10:if(i&&100<=i.code&&i.code<=104)return t.next=13,n.logout();t.next=15;break;case 13:t.next=16;break;case 15:n.$message.warning(i.message);case 16:case"end":return t.stop()}}),t)})))).catch((function(){}));case 2:case"end":return i.stop()}}),i)})))()},handleClick:function(e){},refresh:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){var a;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a=e.id,a={id:"add"===t.queryType?a:t.queryId,type:"view"},t.routeReGoto("supplierDetail",a),r.next=5,t.initForm();case 5:case"end":return r.stop()}}),r)})))()},initData:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r,a,n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,t.next=3,s.a.detail({id:e.queryId});case 3:if(n=t.sent,r=n.code,a=n.message,n=n.data,e.loading=!1,0!==r){t.next=15;break}e.sitem=JSON.parse(JSON.stringify(n)),n=e.sitem.status,e.status=n,e.getNewTime(),t.next=21;break;case 15:if(100<=r&&r<=104)return t.next=18,e.logout();t.next=20;break;case 18:t.next=21;break;case 20:e.$message.warning(a);case 21:case"end":return t.stop()}}),t)})))()},getNewTime:function(){this.newTime=(new Date).valueOf()}}},r("d80a"),l=r("2877"),n=Object(l.a)(i,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("div",{staticClass:"supplierDetail"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"007"==e}))?t("div",{staticClass:"supplierDetail-main"},[""===e.newTime||"view"!==e.queryType&&"edit"!==e.queryType?e._e():t("show-data-table",{staticStyle:{padding:"10px 0 5px 0"},attrs:{newTime:e.newTime,sitem:e.sitem,columns:e.editColumns}},[t("template",{slot:"status"},[t("el-tag",{attrs:{size:"mini",type:"0"==e.sitem.status?"warning":""},domProps:{textContent:e._s((e.statusOptions.find((function(t){return t.id==e.sitem.status}))||{}).label||"--")}})],1),t("template",{slot:"ocr_status"},[t("el-tag",{attrs:{size:"mini",type:"0"==e.sitem.ocr_status?"info":"1"==e.sitem.ocr_status?"primary":"2"==e.sitem.ocr_status?"danger":""},domProps:{textContent:e._s((e.ocr_status.find((function(t){return t.id==e.sitem.ocr_status}))||{}).label||"--")}})],1)],2),t("el-tabs",{model:{value:e.activeTabs,callback:function(t){e.activeTabs=t},expression:"activeTabs"}},["add"===e.queryType?t("el-tab-pane",{attrs:{label:"新建供应商",name:"0"}},[""!==e.newTime?t("base-form",{attrs:{type:e.queryType,id:e.queryId,newTime:e.newTime,sitem:e.sitem},on:{refresh:e.refresh}}):e._e()],1):e._e(),"add"!==e.queryType?t("el-tab-pane",{attrs:{label:"供应商详情",name:"1"}},[""!==e.newTime?t("base-form",{attrs:{type:e.queryType,id:e.queryId,newTime:e.newTime,sitem:e.sitem},on:{refresh:e.refresh}}):e._e()],1):e._e()],1)],1):t("div",[t("no-auth")],1)])}),[],!1,null,"f368be3c",null);t.default=n.exports},"9cc0":function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=r("5530"),s=(r("96cf"),r("7db0"),r("d3b7"),r("1fe0")),i=r("4d66"),o=r("f5ed"),l=r("2f62"),c=r("9f53");o={name:"goldPrice",mixins:[o.a,c.a],components:{addEdit:s.default},computed:Object(n.a)(Object(n.a)({},Object(l.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"goldPrice"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),data:function(){return{loading:!0,showModel:!1,modelId:"000",sitem:{},parmValue:{type:""},statusOptions:[{id:"0",label:"禁用"},{id:"1",label:"启用"}],tableData:[]}},mounted:function(){this.searchList()},methods:{restSearch:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.parmValue={type:""},t.next=3,e.searchList();case 3:case"end":return t.stop()}}),t)})))()},openModal:function(e,t){this.sitem=e,this.modelId=t,this.showModel=!0},noble_metalsearchChange:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){var a;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a=e.id,e.code,e.label,t.parmValue.type=a||"",r.next=4,t.searchList();case 4:case"end":return r.stop()}}),r)})))()},changeStatus:function(e,t){var r=this;return Object(a.a)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r.$confirm("确定要改为".concat("1"===t?"禁用":"启用","?"),{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(a.a)(regeneratorRuntime.mark((function a(){var n,s;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return r.loading=!0,n={id:e,status:"1"===t?"0":"1"},a.next=4,i.a.status(n);case 4:if((s=a.sent)&&0===s.code)return r.loading=!1,r.$notify.success({title:"状态修改成功!",message:""}),a.next=10,r.searchList();a.next=12;break;case 10:a.next=19;break;case 12:if(s&&100<=s.code&&s.code<=104)return a.next=15,r.logout();a.next=17;break;case 15:a.next=19;break;case 17:r.loading=!1,r.$message.warning(s.message);case 19:case"end":return a.stop()}}),a)})))).catch((function(){}));case 2:case"end":return n.stop()}}),n)})))()},deleteItem:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t.$confirm("确定要删除?",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(a.a)(regeneratorRuntime.mark((function r(){var a,n;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a={id:e},r.next=3,i.a.delete(a);case 3:if(!(n=r.sent)||0!==n.code){r.next=9;break}t.$notify.success({title:"删除成功",message:""}),t.searchList(),r.next=15;break;case 9:if(n&&100<=n.code&&n.code<=104)return r.next=12,t.logout();r.next=14;break;case 12:r.next=15;break;case 14:t.$message.warning(n.message);case 15:case"end":return r.stop()}}),r)})))).catch((function(){}));case 2:case"end":return r.stop()}}),r)})))()},searchList:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,t.next=3,i.a.list(e.parmValue);case 3:if(!(r=t.sent)||0!==r.code||!r.data){t.next=8;break}e.tableData=r.data,t.next=14;break;case 8:if(r&&100<=r.code&&r.code<=104)return t.next=11,e.logout();t.next=13;break;case 11:t.next=14;break;case 13:e.tableData=[];case 14:e.loading=!1;case 15:case"end":return t.stop()}}),t)})))()}}},c=r("2877"),s=Object(c.a)(o,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"priceList"},[r("el-row",[r("el-col",{staticStyle:{width:"200px"},attrs:{span:4}},[r("search-metal-kind",{attrs:{value:e.parmValue.type,disabled:!1,isDetail:!1,size:e.searchSize,placeholder:"金属类型"},on:{searchChange:e.noble_metalsearchChange}})],1),r("el-col",{staticClass:"fr",staticStyle:{width:"66px",padding:"0 0 0 10px"},attrs:{span:3}},[r("el-button",{attrs:{type:"primary",size:e.searchSize},on:{click:e.searchList}},[e._v(" 刷新 ")])],1),r("el-col",{staticClass:"fr",staticStyle:{width:"66px",padding:"0 0 0 10px"},attrs:{span:3}},[r("el-button",{attrs:{type:"warning",size:e.searchSize},on:{click:e.restSearch}},[e._v(" 重置 ")])],1),e.powers.some((function(e){return"003"==e}))?r("el-col",{staticClass:"fr",staticStyle:{width:"66px",padding:"0 0 0 10px"},attrs:{span:3}},[r("el-button",{staticStyle:{float:"right"},attrs:{size:e.searchSize,type:"success"},on:{click:function(t){return e.openModal({},"003")}}},[e._v(" 添加 ")])],1):e._e(),r("el-col",{staticStyle:{padding:"10px 0 0 0"},attrs:{span:24}},[r("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData,border:"",stripe:"",size:"mini"}},[r("el-table-column",{attrs:{prop:"type_cn",label:"贵金属种类",width:"180"}}),r("el-table-column",{attrs:{prop:"price",label:"当前金价(元/g)",width:"180"}}),r("el-table-column",{attrs:{label:"状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-tag",{attrs:{size:e.tablebtnSize,type:"0"==t.row.status?"warning":""},domProps:{textContent:e._s((e.statusOptions.find((function(e){return e.id==t.row.status}))||{}).label||"--")}})]}}])}),r("el-table-column",{attrs:{prop:"action_name",label:"创建人"}}),r("el-table-column",{attrs:{prop:"addtime",label:"创建时间"}}),r("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[e.powers.some((function(e){return"007"==e}))?r("el-tooltip",{attrs:{effect:"dark",content:"详情",placement:"top"}},[r("i",{staticClass:"el-icon-view tb-icon",on:{click:function(r){return e.openModal(t.row,"007")}}})]):e._e(),e.powers.some((function(e){return"005"==e}))?r("el-tooltip",{attrs:{effect:"dark",content:"修改",placement:"top"}},[r("i",{staticClass:"el-icon-edit tb-icon",on:{click:function(r){return e.openModal(t.row,"005")}}})]):e._e(),e.powers.some((function(e){return"004"==e}))&&"1"===t.row.status?r("el-tooltip",{attrs:{effect:"dark",content:"禁用",placement:"top"}},[r("i",{staticClass:"el-icon-video-pause tb-icon",on:{click:function(r){return e.changeStatus(t.row.id,t.row.status)}}})]):e._e(),e.powers.some((function(e){return"004"==e}))&&"0"===t.row.status?r("el-tooltip",{attrs:{effect:"dark",content:"启用",placement:"top"}},[r("i",{staticClass:"el-icon-video-play tb-icon",on:{click:function(r){return e.changeStatus(t.row.id,t.row.status)}}})]):e._e(),e.powers.some((function(e){return"006"==e}))?r("el-tooltip",{attrs:{effect:"dark",content:"删除",placement:"top"}},[r("i",{staticClass:"el-icon-delete tb-icon",on:{click:function(r){return e.deleteItem(t.row.id)}}})]):e._e()]}}])})],1)],1)],1),r("add-edit",{attrs:{id:e.modelId,"show-model":e.showModel,sitem:e.sitem},on:{refresh:e.searchList,cancel:function(t){e.showModel=!1}}})],1)}),[],!1,null,"2271a73c",null);t.default=s.exports},"9cd7":function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=(r("b0c0"),r("96cf"),r("2623")),s=r("6bd2"),i={mixins:[r("9f53").a],props:["showModel","id","isDetail","pid","level","isAdd","type","formData"],data:function(){return{loading:!1,showIconModel:!1,title:"",btnList:s.a,showModelThis:this.showModel,ruleForm:{},rulesThis:this.rules,rules:{name:[{required:!0,message:"请输入组织名称",trigger:"blur"},{min:1,max:50,message:"长度在 1 到 50 个字符",trigger:"blur"}]}}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis:function(e){e||this.$emit("cancel")}},methods:{initForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.isAdd?(e.title="添加组织",e.loading=!1,e.rulesThis=e.rules):e.isDetail?(e.title="组织详情",e.rulesThis={}):(e.title="修改组织",e.rulesThis=e.rules),t.next=3,e.resetForm();case 3:case"end":return t.stop()}}),t)})))()},resetForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.ruleForm={id:e.id,pid:e.pid,name:e.formData&&e.formData.name?e.formData.name:""},t.next=3,e.$nextTick((function(){e.$refs.ruleForm&&e.$refs.ruleForm.clearValidate()}));case 3:case"end":return t.stop()}}),t)})))()},submitForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.loading)return t.abrupt("return",!1);t.next=2;break;case 2:return e.loading=!0,t.next=5,e.$refs.ruleForm.validate(function(){var t=Object(a.a)(regeneratorRuntime.mark((function t(r){var a,s,i,o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r){t.next=35;break}if(a={},s={},i=e.ruleForm.name,a={id:e.id,pid:e.pid,name:i},1!==e.level&&(2===e.level?(delete a.menuid,delete a.action_code,delete a.status):(delete a.pid,delete a.img,delete a.is_show,delete a.weight,delete a.route,delete a.is_display,delete a.url)),e.isAdd&&delete a.id,e.isAdd)return t.next=10,n.a.add(a);t.next=13;break;case 10:s=t.sent,t.next=16;break;case 13:return t.next=15,n.a.update(a);case 15:s=t.sent;case 16:if(e.loading=!1,!s||0!==s.code){t.next=27;break}e.ruleForm={},i=e.isAdd?"添加成功":"修改成功",e.$notify.success({title:i,message:""}),e.showModelThis=!1,o=e.pid,0===e.id&&(o="0"),e.$emit("refresh",e.id,o,e.level),t.next=33;break;case 27:if(s&&100<=s.code&&s.code<=104)return t.next=30,e.logout();t.next=32;break;case 30:t.next=33;break;case 32:e.$message.warning(s.message);case 33:t.next=38;break;case 35:return e.loading=!1,t.abrupt("return",!1);case 38:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 5:case"end":return t.stop()}}),t)})))()}}};r("f6ef"),r=r("2877"),r=Object(r.a)(i,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:e.title,center:!0,align:"left",top:"25vh",width:"600px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)","append-to-body":""},on:{"update:visible":function(t){e.showModelThis=t},close:function(t){e.showModelThis=!1}}},[t("el-card",{staticStyle:{"margin-top":"-20px"}},[t("el-row",[t("el-col",{attrs:{span:24}},[t("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"is_show-icon":"",rules:e.rulesThis,"label-width":"100px"}},[t("el-form-item",{attrs:{label:"组织名称:",prop:"name"}},[t("el-input",{attrs:{disabled:e.isDetail,maxlength:"50",placeholder:"请输入组织名称"},model:{value:e.ruleForm.name,callback:function(t){e.$set(e.ruleForm,"name",t)},expression:"ruleForm.name"}})],1)],1)],1),t("el-col",{staticStyle:{"text-align":"right"},attrs:{span:24}},[e.isDetail?e._e():t("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v(" 保 存 ")]),t("el-button",{on:{click:function(t){e.showModelThis=!1}}},[e._v(e._s(e.isDetail?"关 闭":"取 消"))])],1)],1)],1)],1)}),[],!1,null,"74fafd80",null);t.default=r.exports},"9cf7":function(e,t,r){},"9d37":function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=(r("e9c4"),r("96cf"),r("61f7")),s={name:"goodsBack",props:["showModel","index","sitem"],data:function(){return{loading:!1,title:"添加联系人",showModelThis:this.showModel,ruleForm:{},rulesThis:this.rules,organName:"",rules:{contactor:[{required:!0,message:"联系人不能为空!",trigger:"change"}],position:[{required:!0,message:"职位不能为空",trigger:"blur"}],comdepart:[{required:!0,message:"部门不能为空",trigger:"blur"}],commobile:[{required:!0,validator:function(e,t,r){""===t?r(new Error("电话不能为空!")):Object(n.g)(t)?r():r(new Error("电话格式不正确!"))},trigger:"blur"}],wxaccount:[{required:!1,validator:function(e,t,r){""===t||Object(n.j)(t)?r():r(new Error("微信号格式不正确!"))},trigger:"blur"}],qqaccount:[{required:!1,validator:function(e,t,r){""===t||Object(n.i)(t)?r():r(new Error("QQ号格式不正确!"))},trigger:"blur"}],email:[{required:!1,validator:function(e,t,r){""===t||Object(n.s)(t)?r():r(new Error("邮箱格式不正确!"))},trigger:"blur"}]}}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis:function(e){e||this.$emit("cancel")}},methods:{initForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,e.resetFormData(),e.rulesThis=e.rules,e.index+""=="-1"?e.title="添加联系人":e.title="修改联系人",t.next=8,e.resetForm();case 8:e.loading=!1;case 9:case"end":return t.stop()}}),t)})))()},resetForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$nextTick((function(){e.$refs.ruleForm&&(e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),e.resetFormData())}));case 2:case"end":return t.stop()}}),t)})))()},resetFormData:function(){var e=this.sitem,t=e.id,r=e.contactor,a=e.is_del,n=e.commobile,s=e.position,i=e.wxaccount,o=e.qqaccount,l=e.email,c=e.comdepart;e=e.status;this.ruleForm={id:t||"",index:this.index||-1,contactor:r||"",position:s||"",wxaccount:i||"",qqaccount:o||"",email:l||"",comdepart:c||"",status:e||"",is_del:a||"0",commobile:n||""}},submitForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.ruleForm.validate(function(){var t=Object(a.a)(regeneratorRuntime.mark((function t(r){var a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r){t.next=7;break}e.showModelThis=!1,(a=JSON.parse(JSON.stringify(e.ruleForm))).index=e.index,e.$emit("refresh",a),t.next=9;break;case 7:return t.abrupt("return",!1);case 9:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()}}};r("cb98"),r=r("2877"),r=Object(r.a)(s,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:e.title,center:!0,align:"left",top:"12vh",width:"900px","close-on-click-modal":!1,visible:e.showModelThis,"append-to-body":"","element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)"},on:{close:function(t){e.showModelThis=!1},"update:visible":function(t){e.showModelThis=t}}},[t("el-card",{staticStyle:{"margin-top":"-20px"}},[t("el-row",{attrs:{gutter:10}},[t("el-col",{attrs:{span:24}},[t("el-form",{ref:"ruleForm",attrs:{"label-position":"right","label-width":"90px",model:e.ruleForm,rules:e.rulesThis}},[t("el-row",[t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"联系人:",prop:"contactor"}},[t("el-input",{attrs:{placeholder:"联系人",maxlength:"100"},model:{value:e.ruleForm.contactor,callback:function(t){e.$set(e.ruleForm,"contactor",t)},expression:"ruleForm.contactor"}})],1)],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"电话:",prop:"commobile"}},[t("el-input",{attrs:{placeholder:"电话",maxlength:"100"},model:{value:e.ruleForm.commobile,callback:function(t){e.$set(e.ruleForm,"commobile",t)},expression:"ruleForm.commobile"}})],1)],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"职位:",prop:"position"}},[t("el-input",{attrs:{placeholder:"职位",maxlength:"100"},model:{value:e.ruleForm.position,callback:function(t){e.$set(e.ruleForm,"position",t)},expression:"ruleForm.position"}})],1)],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"部门:",prop:"comdepart"}},[t("el-input",{attrs:{placeholder:"部门",maxlength:"100"},model:{value:e.ruleForm.comdepart,callback:function(t){e.$set(e.ruleForm,"comdepart",t)},expression:"ruleForm.comdepart"}})],1)],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"微信号:",prop:"wxaccount"}},[t("el-input",{attrs:{placeholder:"微信号",maxlength:"100"},model:{value:e.ruleForm.wxaccount,callback:function(t){e.$set(e.ruleForm,"wxaccount",t)},expression:"ruleForm.wxaccount"}})],1)],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"QQ:",prop:"qqaccount"}},[t("el-input",{attrs:{placeholder:"QQ",maxlength:"100"},model:{value:e.ruleForm.qqaccount,callback:function(t){e.$set(e.ruleForm,"qqaccount",t)},expression:"ruleForm.qqaccount"}})],1)],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"邮箱:",prop:"email"}},[t("el-input",{attrs:{placeholder:"邮箱",maxlength:"100"},model:{value:e.ruleForm.email,callback:function(t){e.$set(e.ruleForm,"email",t)},expression:"ruleForm.email"}})],1)],1),t("el-col",{staticStyle:{"text-align":"right"},attrs:{span:12}},[t("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("保 存 ")]),t("el-button",{on:{click:function(t){e.showModelThis=!1}}},[e._v(e._s("007"==e.id?"关 闭":"取 消"))])],1)],1)],1)],1)],1)],1)],1)}),[],!1,null,"4eac1571",null);t.default=r.exports},"9d45":function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=(r("96cf"),r("4237")),s=r("9f53"),i=r("61f7");s={name:"stockWarning",props:["showModel","row","isDetail","sitem"],mixins:[s.a],data:function(){return{title:"库存预警修改",companyCode:"",loading:!1,showModelThis:this.showModel,ruleForm:{good_code:"",wsm_code:"",wsm_name:"",good_name:"",warn_stock:""},rulesThis:this.rules,rules:{warn_stock:[{required:!0,validator:function(e,t,r){""===t?r(new Error("预计数量不能为空!")):Object(i.k)(t)?r():r(new Error("预计数量仅支持数字!"))},trigger:"blur"}],good_name:[{message:"产品名称不能为空",required:!0,trigger:"blur"}],wsm_supplier:[{required:!0,message:"请选择供应商",trigger:"blue"}],wsm_name:[{required:!0,message:"请选择仓库",trigger:"blur"}]}}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis:function(e){e||this.$emit("cancel")},sitem:function(e){var t=e.good_name,r=e.warn_stock,a=e.wsm_name,n=e.wsm_supplier,s=e.wsm_code;e=e.type_code;this.ruleForm={wsm_supplier:n,wsm_name:a,good_name:t,warn_stock:r,wsm_code:s,good_code:e}}},methods:{initForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.loading=!0,e.title="库存预警修改",e.rulesThis=e.rules,e.loading=!1;case 4:case"end":return t.stop()}}),t)})))()},submitForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.ruleForm.validate(function(){var t=Object(a.a)(regeneratorRuntime.mark((function t(r){var a,s;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r)return e.loading=!0,s={warn_stock:e.ruleForm.warn_stock,type_code:e.ruleForm.good_code,wsm_code:e.ruleForm.wsm_code},t.next=5,n.a.update(s);t.next=22;break;case 5:if(a=t.sent,e.loading=!1,!a||0!==a.code){t.next=14;break}s="add"===e.id?"添加成功":"修改成功",e.$notify.success({title:s,message:""}),e.showModelThis=!1,e.$emit("refresh"),t.next=20;break;case 14:if(a&&100<=a.code&&a.code<=104)return t.next=17,e.logout();t.next=19;break;case 17:t.next=20;break;case 19:e.$message.warning(a.message);case 20:t.next=24;break;case 22:return t.abrupt("return",!1);case 24:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()}}},r=r("2877"),r=Object(r.a)(s,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:e.title,center:!0,align:"left",top:"5vh",width:"600px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)"},on:{close:function(t){e.showModelThis=!1},"update:visible":function(t){e.showModelThis=t}}},[t("el-card",{staticStyle:{"margin-top":"-20px"}},[t("el-row",{attrs:{gutter:10}},[t("el-col",{attrs:{span:24}},[t("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",rules:e.rulesThis,"label-width":"110px"}},[t("el-form-item",{attrs:{label:"供应商名称",prop:"wsm_supplier"}},[t("el-input",{attrs:{disabled:"",maxlength:"1000",placeholder:"请选择供应商"},model:{value:e.ruleForm.wsm_supplier,callback:function(t){e.$set(e.ruleForm,"wsm_supplier",t)},expression:"ruleForm.wsm_supplier"}})],1),t("el-form-item",{attrs:{label:"仓库名称",prop:"wsm_name"}},[t("el-input",{attrs:{disabled:"",maxlength:"1000",placeholder:"请选择备库仓库"},model:{value:e.ruleForm.wsm_name,callback:function(t){e.$set(e.ruleForm,"wsm_name",t)},expression:"ruleForm.wsm_name"}})],1),t("el-form-item",{attrs:{label:"商品名称",prop:"good_name"}},[t("el-input",{attrs:{maxlength:"1000",disabled:""},model:{value:e.ruleForm.good_name,callback:function(t){e.$set(e.ruleForm,"good_name",t)},expression:"ruleForm.good_name"}})],1),t("el-form-item",{attrs:{label:"预警数量",prop:"warn_stock"}},[t("el-input",{attrs:{maxlength:"1000"},model:{value:e.ruleForm.warn_stock,callback:function(t){e.$set(e.ruleForm,"warn_stock",t)},expression:"ruleForm.warn_stock"}})],1)],1)],1),t("el-col",{staticStyle:{"text-align":"right"},attrs:{span:24}},[e.isDetail?e._e():t("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("保 存 ")]),t("el-button",{on:{click:function(t){e.showModelThis=!1}}},[e._v(e._s(e.isDetail?"关 闭":"取 消"))])],1)],1)],1)],1)}),[],!1,null,null,null);t.default=r.exports},"9d47":function(e,t,r){},"9d69":function(e,t,r){"use strict";r("9cf7")},"9daa":function(e,t,r){"use strict";var a=r("1b69"),n="admin/";t.a={add:function(e,t){return Object(a.a)(n+"unitcreate",e,"post",t)},update:function(e,t){return Object(a.a)(n+"unitedit",e,"post",t)},list:function(e,t){return Object(a.a)(n+"unitlist",e,"post",t)},delete:function(e,t){return Object(a.a)(n+"unitdelete",e,"post",t)},status:function(e,t){return Object(a.a)(n+"unitstatus",e,"post",t)}}},"9e7a":function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=r("5530"),s=(r("96cf"),r("7db0"),r("d3b7"),r("a9e3"),r("b32b")),i=r("9486"),o=r("0ee5"),l=r("e66a"),c=r("f5ed"),u=r("2f62"),d=r("9f53");c={name:"role",mixins:[c.a,d.a],components:{addEdit:s.default},computed:Object(n.a)(Object(n.a)({},Object(u.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"dataShare"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),data:function(){return{statusList:o.a,roleLevel:l.a,loading:!0,showModel:!1,isDetail:!1,modelId:0,parmValue:{page:1,size:15},statusOptions:[{id:0,label:"禁用"},{id:1,label:"启用"}],authOptions:[{id:"1",label:"管理员"},{id:"2",label:"非管理员"}],tableData:[],table:{stripe:!0,border:!0,_defaultHeader_:["setcol"]},pageInfo:{size:15,curr:1,total:0},columns:[{prop:"actionlist",label:"菜单数据"},{prop:"share_user",label:"数据源用户"},{prop:"to_user",label:"数据共享用户"},{prop:"to_group",label:"数据共享用户组"},{prop:"status",label:"状态",sortable:!0,_slot_:"status"},{prop:"addtime",label:"创建时间",sortable:!0},{prop:"",label:"操作",fixed:"right",_noset_:!0,_slot_:"operation"}]}},mounted:function(){this.searchList()},methods:{restSearch:function(){this.pageInfo={size:15,curr:1,total:0},this.parmValue={page:1,size:15},this.searchList()},openModal:function(e,t){this.showModel=!0,this.modelId=e,this.isDetail=t},changeStatus:function(e,t){var r=this;return Object(a.a)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r.$confirm("确定要改为".concat("1"===t?"禁用":"启用","?"),{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(a.a)(regeneratorRuntime.mark((function a(){var n,s;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return r.loading=!0,n={id:e,status:"1"===t?"0":"1"},a.next=4,i.a.status(n);case 4:if((s=a.sent)&&0===s.code)return r.loading=!1,r.$notify.success({title:"状态修改成功!",message:""}),a.next=10,r.searchList();a.next=12;break;case 10:a.next=19;break;case 12:if(s&&100<=s.code&&s.code<=104)return a.next=15,r.logout();a.next=17;break;case 15:a.next=19;break;case 17:r.loading=!1,r.$message.warning(s.message);case 19:case"end":return a.stop()}}),a)})))).catch((function(){}));case 2:case"end":return n.stop()}}),n)})))()},searchList:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,t.next=3,i.a.list(e.parmValue);case 3:if(!(r=t.sent)||0!==r.code||!r.data){t.next=9;break}e.tableData=r.data.list,e.pageInfo.total=Number(r.data.count),t.next=16;break;case 9:if(r&&100<=r.code&&r.code<=104)return t.next=12,e.logout();t.next=14;break;case 12:t.next=16;break;case 14:e.tableData=[],e.pageInfo.total=0;case 16:e.loading=!1;case 17:case"end":return t.stop()}}),t)})))()}}},d=r("2877"),s=Object(d.a)(c,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"dataShare pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?r("ex-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{table:e.table,data:e.tableData,columns:e.columns,page:e.pageInfo,size:e.size},on:{"page-curr-change":e.handlePageChange,"page-size-change":e.handleSizeChange,"screen-reset":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()},"screen-submit":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},scopedSlots:e._u([{key:"table-header",fn:function(t){return[r("div",{staticStyle:{width:"100%"}},[r("el-row",{attrs:{gutter:10}},[r("el-col",{attrs:{span:24}},[r("el-col",{staticStyle:{width:"66px",float:"right"},attrs:{span:3}},[r("el-button",{staticStyle:{float:"right"},attrs:{type:"primary",size:e.searchSize},on:{click:e.searchList}},[e._v(" 刷新 ")])],1),e.powers.some((function(e){return"003"==e}))?r("el-col",{staticStyle:{width:"66px",float:"right"},attrs:{span:3}},[r("el-button",{staticStyle:{float:"right"},attrs:{size:e.searchSize,type:"success"},on:{click:function(t){return e.openModal("add",!1)}}},[e._v(" 添加 ")])],1):e._e()],1)],1)],1)]}},{key:"status",fn:function(t){var a=t.scope;return[r("el-tag",{attrs:{size:e.tablebtnSize,type:"0"==a.row.status?"warning":""},domProps:{textContent:e._s((e.statusOptions.find((function(e){return e.id==a.row.status}))||{}).label||"--")}})]}},{key:"operation",fn:function(t){var a=t.scope;return[e.powers.some((function(e){return"007"==e}))?r("el-tooltip",{attrs:{effect:"dark",content:"详情",placement:"top"}},[r("i",{staticClass:"el-icon-view tb-icon",on:{click:function(t){return e.openModal(a.row.id,!0)}}})]):e._e(),e.powers.some((function(e){return"005"==e}))?r("el-tooltip",{attrs:{effect:"dark",content:"修改",placement:"top"}},[r("i",{staticClass:"el-icon-edit tb-icon",on:{click:function(t){return e.openModal(a.row.id,!1)}}})]):e._e(),e.powers.some((function(e){return"004"==e}))&&"1"===a.row.status?r("el-tooltip",{attrs:{effect:"dark",content:"禁用",placement:"top"}},[r("i",{staticClass:"el-icon-video-pause tb-icon",on:{click:function(t){return e.changeStatus(a.row.id,a.row.status)}}})]):e._e(),e.powers.some((function(e){return"004"==e}))&&"0"===a.row.status?r("el-tooltip",{attrs:{effect:"dark",content:"启用",placement:"top"}},[r("i",{staticClass:"el-icon-video-play tb-icon",on:{click:function(t){return e.changeStatus(a.row.id,a.row.status)}}})]):e._e()]}}],null,!1,1049064717)}):r("no-auth"),r("add-edit",{attrs:{id:e.modelId,"show-model":e.showModel,"is-detail":e.isDetail},on:{refresh:e.searchList,cancel:function(t){e.showModel=!1}}})],1)}),[],!1,null,"06917f42",null);t.default=s.exports},"9ed6":function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=(r("d3b7"),r("b64b"),r("96cf"),r("6a1e")),s=r("9f53"),i=r("61f7"),o=(s={name:"Login",mixins:[s.a],data:function(){return{ver:"",show:!1,loginForm:{username:"",password:""},loginRules:{username:[{required:!0,trigger:"blur",validator:function(e,t,r){""===t?r(new Error("手机号不能为空!")):Object(i.g)(t)?r():r(new Error("请输入正确的手机号"))}}],password:[{required:!0,trigger:"blur",validator:function(e,t,r){""===t?r(new Error("密码不能为空!")):!Object(i.b)(t)||t.length<6||18<t.length?r(new Error("密码为6-18位数字字母组合!")):Object(i.k)(t)?r(new Error("密码不能为纯数字!")):Object(i.r)(t)?r(new Error("密码不能为纯字母!")):r()}}]},passwordType:"password",capsTooltip:!1,loading:!1,showDialog:!1,redirect:void 0,otherQuery:{}}},watch:{$route:{handler:function(e){e=e.query,e&&(this.redirect=e.redirect,this.otherQuery=this.getOtherQuery(e))},immediate:!0}},mounted:function(){""===this.loginForm.username?this.$refs.username.focus():""===this.loginForm.password&&this.$refs.password.focus()},methods:{getversion:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r,a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n.a.version({});case 2:if(!(r=t.sent)||0!==r.code){t.next=8;break}a=r.data,e.ver=a.version,t.next=14;break;case 8:if(r&&100<=r.code&&r.code<=104)return t.next=11,e.logout();t.next=13;break;case 11:t.next=14;break;case 13:e.$message.warning(r.message);case 14:case"end":return t.stop()}}),t)})))()},setVisible:function(e){this.show=e},handleClick:function(){this.show=!0},handleSuccess:function(){this.show=!1,this.handleLogin()},checkCapslock:function(e){e=e.key,this.capsTooltip=e&&1===e.length&&"A"<=e&&e<="Z"},showPwd:function(){var e=this;"password"===this.passwordType?this.passwordType="":this.passwordType="password",this.$nextTick((function(){e.$refs.password.focus()}))},handleLogin:function(){var e=this;this.$refs.loginForm.validate((function(t){if(!t)return!1;e.loading=!0,e.$store.dispatch("user/login",e.loginForm).then((function(t){0===t.code?e.getMenu():(e.$message.warning(t.message),e.loading=!1)})).catch((function(t){e.loading=!1}))}))},getMenu:function(){var e=this;this.$store.dispatch("user/getMenuList",this).then((function(t){window.vm.$router.push({path:e.redirect||"/welcome",query:e.otherQuery}),e.loading=!1})).catch((function(t){e.loading=!1}))},getOtherQuery:function(e){return Object.keys(e).reduce((function(t,r){return"redirect"!==r&&(t[r]=e[r]),t}),{})}}},r("2017"),r("cfc5"),r("2877"));o=Object(o.a)(s,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("div",{staticClass:"login-container"},[t("div",{staticClass:"login-form-main"},[t("img",{attrs:{src:r("a56b"),alt:""}}),e._m(0),t("el-form",{ref:"loginForm",staticClass:"login-form",attrs:{model:e.loginForm,rules:e.loginRules,autocomplete:"on","label-position":"left"}},[t("div",{staticClass:"title-container"},[t("h3",{staticClass:"title"},[e._v(" 采销平台"),t("span",[e._v(e._s(e.ver))])])]),t("el-form-item",{attrs:{prop:"username"}},[t("span",{staticClass:"svg-container"},[t("i",{staticClass:"el-icon-user"})]),t("el-input",{ref:"username",attrs:{placeholder:"手机号",name:"username",type:"text",tabindex:"1",maxlength:"11",autocomplete:"on"},model:{value:e.loginForm.username,callback:function(t){e.$set(e.loginForm,"username",t)},expression:"loginForm.username"}})],1),t("el-tooltip",{attrs:{content:"Caps lock is On",placement:"right",manual:""},model:{value:e.capsTooltip,callback:function(t){e.capsTooltip=t},expression:"capsTooltip"}},[t("el-form-item",{attrs:{prop:"password"}},[t("span",{staticClass:"svg-container"},[t("i",{staticClass:"el-icon-unlock"})]),t("el-input",{key:e.passwordType,ref:"password",attrs:{type:e.passwordType,placeholder:"密码",name:"password",tabindex:"2",autocomplete:"on",maxlength:"16"},on:{blur:function(t){e.capsTooltip=!1}},nativeOn:{keyup:[function(t){return e.checkCapslock(t)},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleLogin(t)}]},model:{value:e.loginForm.password,callback:function(t){e.$set(e.loginForm,"password",t)},expression:"loginForm.password"}}),t("span",{staticClass:"show-pwd",on:{click:e.showPwd}},[t("svg-icon",{attrs:{"icon-class":"password"===e.passwordType?"eye":"eye-open"}})],1)],1)],1),t("el-button",{staticStyle:{width:"100%","margin-top":"5px"},attrs:{loading:e.loading,disabled:e.loading,type:"primary"},nativeOn:{click:function(t){return t.preventDefault(),e.handleLogin()}}},[e._v("登 录")]),t("div",{staticStyle:{position:"relative",padding:"12px 0 0 0"}},[t("div",{staticClass:"tips",staticStyle:{float:"left"}},[t("el-popover",{attrs:{placement:"top",title:"初始密码:",width:"200",trigger:"click",content:"dingding123"}},[t("i",{staticClass:"el-icon-info",attrs:{slot:"reference"},slot:"reference"})])],1)])],1)],1),e._m(1)])}),[function(){var e=this.$createElement;e=this._self._c||e;return e("div",{staticClass:"main-title"},[e("h1",[this._v("欢迎登录")]),e("h3",[this._v("采销平台")])])},function(){var e=this.$createElement;e=this._self._c||e;return e("div",{staticClass:"beian"},[e("span",[this._v("万宇恒通")]),e("a",{attrs:{target:"_blank",href:"https://beian.miit.gov.cn/"}},[this._v("京ICP备2020033956号-1")]),e("span")])}],!1,null,"23095f99",null);t.default=o.exports},"9ed9":function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=(r("e9c4"),r("96cf"),r("482b")),s=r("9f53"),i=r("61f7");s={name:"workCompany",props:["showModel","id","isDetail"],mixins:[s.a],data:function(){return{pickerOptions:{disabledDate:function(e){return e.getTime()>=Date.now()}},supplier_name:"",accountNames:"",loading:!1,title:"添加业务企业",showModelThis:this.showModel,ruleForm:{id:"",company:"",type:"",inv_code:"",inv_legaler:"",inv_time:"",inv_addr:"",inv_bank:"",inv_bankNo:"",contactor:"",mobile:"",addr:"",inv_scope:"",license_img:""},rulesThis:this.rules,rules:{company:[{required:!0,message:"企业名称不能为空!",trigger:"blur"}],type:[{required:!0,message:"公司类型不能为空!",trigger:"change"}],inv_code:[{required:!0,validator:function(e,t,r){""!==t?Object(i.f)(t)?r():r(new Error("统一社会信用代码不正确!")):r(new Error("统一社会信用代码不能为空!"))},trigger:"blur"}],inv_legaler:[{required:!0,validator:function(e,t,r){""===t?r(new Error("法人不能为空!")):!Object(i.c)(t)||Object(i.d)(t)?r(new Error("法人只能为汉字!")):r()},trigger:"blur"}],inv_time:[{required:!0,message:"成立日期不能为空!",trigger:"change"}],inv_addr:[{required:!0,message:"详细地址不能为空!",trigger:"blur"}],inv_bank:[{required:!0,message:"银行名称不能为空!",trigger:"blur"}],inv_bankNo:[{required:!0,message:"银行卡号不能为空!",trigger:"blur"}],contactor:[{required:!0,validator:function(e,t,r){""===t?r(new Error("联系人不能为空!")):!Object(i.c)(t)||Object(i.d)(t)?r(new Error("联系人只能为汉字!")):r()},trigger:"blur"}],mobile:[{required:!0,validator:function(e,t,r){""!==t?Object(i.h)(t)||Object(i.g)(t)?r():r(new Error("联系电话格式不正确!")):r(new Error("联系电话不能为空!"))},trigger:"blur"}],addr:[{required:!0,message:"联系地址不能为空!",trigger:"blur"}],inv_scope:[{required:!0,message:"经营范围不能为空!",trigger:"blur"}],license_img:[{required:!1,message:"",trigger:"blur"}]}}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis:function(e){e||this.$emit("cancel")}},methods:{initForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.supplier_name="",e.loading=!0,"003"===e.isDetail)return e.title="新建业务企业",e.rulesThis=e.rules,t.next=7,e.resetForm();t.next=9;break;case 7:t.next=24;break;case 9:if("007"==e.isDetail)return e.title="业务企业详情",e.rulesThis={},t.next=14,e.resetForm();t.next=18;break;case 14:return t.next=16,e.initData();case 16:t.next=24;break;case 18:return e.title="修改业务企业",e.rulesThis=e.rules,t.next=22,e.resetForm();case 22:return t.next=24,e.initData();case 24:e.loading=!1;case 25:case"end":return t.stop()}}),t)})))()},type_search_change:function(e){var t=e.id;e.code,e.label,this.ruleForm.type=t||"",this.$refs.ruleForm.validateField("type")},initData:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r,a,s,i,o,l,c,u,d,p,m,f,h,g,b;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n.a.detail({id:e.id});case 2:if(!(r=t.sent)||0!==r.code||!r.data){t.next=9;break}b=r.data,a=b.id,s=b.company,i=b.type,o=b.inv_code,l=b.inv_legaler,c=b.inv_time,u=b.inv_addr,d=b.inv_bank,p=b.inv_bankNo,m=b.contactor,f=b.mobile,h=b.addr,g=b.inv_scope,b=b.license_img,e.ruleForm={id:a||"",company:s||"",type:i||"",inv_code:o||"",inv_legaler:l||"",inv_time:c||"",inv_addr:u||"",inv_bank:d||"",inv_bankNo:p||"",contactor:m||"",mobile:f||"",addr:h||"",inv_scope:g||"",license_img:b||""},t.next=15;break;case 9:if(r&&100<=r.code&&r.code<=104)return t.next=12,e.logout();t.next=14;break;case 12:t.next=15;break;case 14:e.$message.warning(r.message);case 15:case"end":return t.stop()}}),t)})))()},resetForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$nextTick((function(){e.$refs.ruleForm&&(e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),e.ruleForm={id:"",company:"",type:"",inv_code:"",inv_legaler:"",inv_time:"",inv_addr:"",inv_bank:"",inv_bankNo:"",contactor:"",mobile:"",addr:"",inv_scope:"",license_img:""})}));case 2:case"end":return t.stop()}}),t)})))()},submitForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.ruleForm.validate(function(){var t=Object(a.a)(regeneratorRuntime.mark((function t(r){var a,s,i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r){t.next=30;break}if(e.loading=!0,a=JSON.parse(JSON.stringify(e.ruleForm)),s={},"003"===e.isDetail)return delete a.id,t.next=8,n.a.add(a);t.next=11;break;case 8:s=t.sent,t.next=14;break;case 11:return t.next=13,n.a.update(a);case 13:s=t.sent;case 14:if(e.loading=!1,!s||0!==s.code){t.next=22;break}i="003"===e.isDetail?"添加成功":"修改成功",e.$notify.success({title:i,message:""}),e.showModelThis=!1,e.$emit("refresh"),t.next=28;break;case 22:if(s&&100<=s.code&&s.code<=104)return t.next=25,e.logout();t.next=27;break;case 25:t.next=28;break;case 27:e.$message.warning(s.message);case 28:t.next=32;break;case 30:return t.abrupt("return",!1);case 32:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()},beforeAvatarUpload:function(e){var t=!1,r=!1;return e&&("image/jpg"!==e.type&&"image/png"!==e.type&&"image/jpeg"!==e.type||(t=!0),r=e.size/1024/1024<1,t||this.$message.error("图片格式不正确!"),r||this.$message.error("图片大小不能超过 1MB!")),t&&r},UploadErrorEvent:function(e){"break"!==e&&(this.$message.error("图片上传失败!"),this.ruleForm.license_img="",this.$refs.ruleForm.validateField("license_img"))},UploadSuccessEvent:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){var a;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if("noToken"===(a=e.url))return r.next=4,t.logout();r.next=6;break;case 4:r.next=9;break;case 6:t.ruleForm.license_img=a,t.$message.success("图片上传成功!"),t.$refs.ruleForm.validateField("license_img");case 9:case"end":return r.stop()}}),r)})))()}}},r("6e90"),r=r("2877"),r=Object(r.a)(s,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:e.title,center:!0,align:"left",top:"8vh",width:"1040px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)"},on:{close:function(t){e.showModelThis=!1},"update:visible":function(t){e.showModelThis=t}}},[t("el-card",{staticStyle:{"margin-top":"-20px"}},[t("el-row",[t("el-col",{attrs:{span:24}},[t("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",size:"small",rules:e.rulesThis,"label-width":"90px"}},[t("el-row",{},[t("el-col",{staticStyle:{height:"336px","border-right":"1px solid #dcdfe6"},attrs:{span:1}},[t("ul",{staticClass:"tc fff"},[t("li",[e._v("企")]),t("li",[e._v("业")]),t("li",[e._v("信")]),t("li",[e._v("息")])])]),t("el-col",{attrs:{span:23}},[t("el-row",[t("el-col",{attrs:{span:13}},[t("el-form-item",{attrs:{label:"企业名称",prop:"company"}},[t("el-input",{attrs:{placeholder:"企业名称",filterable:"",disabled:"007"==e.isDetail,maxlength:"100",clearable:""},model:{value:e.ruleForm.company,callback:function(t){e.$set(e.ruleForm,"company",t)},expression:"ruleForm.company"}})],1)],1),t("el-col",{attrs:{span:11}},[t("el-form-item",{staticStyle:{width:"100%"},attrs:{label:"统一社会信用代码",prop:"inv_code","label-width":"150px"}},[t("el-input",{attrs:{placeholder:"统一社会信用代码",filterable:"",disabled:"007"==e.isDetail,maxlength:"40",clearable:""},model:{value:e.ruleForm.inv_code,callback:function(t){e.$set(e.ruleForm,"inv_code",t)},expression:"ruleForm.inv_code"}})],1)],1),t("el-col",{attrs:{span:13}},[t("el-form-item",{attrs:{label:"详细地址",prop:"inv_addr"}},[t("el-input",{attrs:{placeholder:"详细地址",maxlength:"100",clearable:"",disabled:"007"==e.isDetail},model:{value:e.ruleForm.inv_addr,callback:function(t){e.$set(e.ruleForm,"inv_addr",t)},expression:"ruleForm.inv_addr"}})],1)],1),t("el-col",{attrs:{span:11}},[t("el-form-item",{attrs:{label:"法人",prop:"inv_legaler"}},[t("el-input",{attrs:{placeholder:"法人",maxlength:"12",minlength:"2",clearable:"",disabled:"007"==e.isDetail},model:{value:e.ruleForm.inv_legaler,callback:function(t){e.$set(e.ruleForm,"inv_legaler",t)},expression:"ruleForm.inv_legaler"}})],1)],1),t("el-col",{attrs:{span:13}},[t("el-form-item",{attrs:{label:"成立日期",prop:"inv_time"}},[t("el-date-picker",{staticStyle:{width:"100%"},attrs:{align:"right",type:"date",placeholder:"成立日期","value-format":"yyyy-MM-dd","picker-options":e.pickerOptions},model:{value:e.ruleForm.inv_time,callback:function(t){e.$set(e.ruleForm,"inv_time",t)},expression:"ruleForm.inv_time"}})],1)],1),t("el-col",{attrs:{span:11}},[t("el-form-item",{attrs:{label:"联系人",prop:"contactor"}},[t("el-input",{attrs:{placeholder:"联系人",maxlength:"12",minlength:"2",clearable:"",disabled:"007"==e.isDetail},model:{value:e.ruleForm.contactor,callback:function(t){e.$set(e.ruleForm,"contactor",t)},expression:"ruleForm.contactor"}})],1)],1),t("el-col",{attrs:{span:13}},[t("el-form-item",{attrs:{label:"营业范围",prop:"inv_scope"}},[t("el-input",{attrs:{type:"textarea",placeholder:"营业范围",maxlength:"2000",rows:8,"show-word-limit":"",disabled:"007"==e.isDetail},model:{value:e.ruleForm.inv_scope,callback:function(t){e.$set(e.ruleForm,"inv_scope",t)},expression:"ruleForm.inv_scope"}})],1)],1),t("el-col",{attrs:{span:11}},[t("el-form-item",{attrs:{label:"公司类型",prop:"type"}},[t("search-company-type",{attrs:{value:e.ruleForm.type,disabled:!1,size:"mini",isDetail:!1,placeholder:"公司类型"},on:{searchChange:e.type_search_change}})],1)],1),t("el-col",{staticStyle:{height:"124px"},attrs:{span:11}},[t("el-form-item",{staticClass:"activity-upload",attrs:{label:"营业执照",prop:"license_img"}},[t("div",{staticClass:"btnupload",staticStyle:{position:"relative"}},[e.ruleForm.license_img?t("img",{staticClass:"avatar",attrs:{src:e.ruleForm.license_img}}):t("i",{staticClass:"el-icon-plus avatar-uploader-icon"}),t("file-upload",{staticClass:"Upload",attrs:{disabled:"007"==e.isDetail,accept:".jpg,.png,.jpeg",multiple:!0,uploadcondition:e.beforeAvatarUpload},on:{UploadErrorEvent:e.UploadErrorEvent,UploadSuccessEvent:e.UploadSuccessEvent}})],1),t("div",{staticClass:"txt-tips fl"},[t("p",[e._v("大小:小于1M")]),t("p",[e._v("尺寸:100*100")]),t("p",[e._v("类型:jpg.png.jpeg")])])])],1)],1)],1)],1),t("el-row",{staticStyle:{"border-top":"1px solid #dcdfe6"}},[t("el-col",{staticStyle:{height:"120px",padding:"20px 0 0 0","border-right":"1px solid #dcdfe6"},attrs:{span:1}},[t("ul",{staticClass:"tc sss"},[t("li",[e._v("开")]),t("li",[e._v("票")]),t("li",[e._v("信")]),t("li",[e._v("息")])])]),t("el-col",{staticStyle:{padding:"20px 0 0 0"},attrs:{span:23}},[t("el-row",[t("el-col",{attrs:{span:13}},[t("el-form-item",{attrs:{label:"银行名称",prop:"inv_bank"}},[t("el-input",{attrs:{placeholder:"银行名称",disabled:"007"==e.isDetail,maxlength:"100"},model:{value:e.ruleForm.inv_bank,callback:function(t){e.$set(e.ruleForm,"inv_bank",t)},expression:"ruleForm.inv_bank"}})],1)],1),t("el-col",{attrs:{span:11}},[t("el-form-item",{attrs:{label:"银行卡号",prop:"inv_bankNo"}},[t("el-input",{attrs:{placeholder:"银行卡号",maxlength:"100",disabled:"007"==e.isDetail},model:{value:e.ruleForm.inv_bankNo,callback:function(t){e.$set(e.ruleForm,"inv_bankNo",t)},expression:"ruleForm.inv_bankNo"}})],1)],1),t("el-col",{attrs:{span:13}},[t("el-form-item",{attrs:{label:"联系地址",prop:"addr"}},[t("el-input",{attrs:{placeholder:"联系地址",maxlength:"100",disabled:"007"==e.isDetail},model:{value:e.ruleForm.addr,callback:function(t){e.$set(e.ruleForm,"addr",t)},expression:"ruleForm.addr"}})],1)],1),t("el-col",{attrs:{span:11}},[t("el-form-item",{attrs:{label:"联系电话",prop:"mobile"}},[t("el-input",{attrs:{placeholder:"联系电话",maxlength:"100",disabled:"007"==e.isDetail},model:{value:e.ruleForm.mobile,callback:function(t){e.$set(e.ruleForm,"mobile",t)},expression:"ruleForm.mobile"}})],1),t("div",{staticStyle:{width:"100%","text-align":"right"}},["007"!==e.isDetail?t("el-button",{attrs:{type:"primary",size:"small"},on:{click:e.submitForm}},[e._v("保 存 ")]):e._e(),t("el-button",{attrs:{size:"small"},on:{click:function(t){e.showModelThis=!1}}},[e._v(e._s("007"==e.isDetail?"关 闭":"取 消"))])],1)],1)],1)],1)],1)],1)],1)],1)],1)],1)}),[],!1,null,"5aeb37c4",null);t.default=r.exports},"9fce":function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=r("5530"),s=(r("96cf"),r("7db0"),r("d3b7"),r("e9c4"),r("25f0"),r("159b"),r("a9e3"),r("f5ed")),i=r("9f53"),o=r("1b69"),l="admin/",c=function(e,t){return Object(o.a)(l+"getstockbet",e,"post",t)},u=[{prop:"company_no",label:"仓库业务公司编码",width:"150"},{prop:"company_name",label:"仓库业务公司名称","min-width":"180"},{prop:"supplier_code",label:"仓库所在公司编码",width:"150"},{prop:"supplier_name",label:"仓库所在公司名称","min-width":"180"},{prop:"wsm_code",label:"仓库编码",width:"180"},{prop:"wsm_name",label:"仓库名称","min-width":"100"},{prop:"good_code",label:"商品编码",width:"160"},{prop:"good_name",label:"商品名称","min-width":"150"},{prop:"specinfo",label:"规格","min-width":"150",_slot_:"specinfo"},{prop:"can",label:"分类",_slot_:"can",width:"155"},{prop:"brand_name",label:"分类",width:"85"},{prop:"unit",label:"单位",width:"50"},{prop:"usable_stock",label:"当前库存",width:"80"},{prop:"wait_in_stock",label:"待入库",width:"80"},{prop:"wait_out_stock",label:"待出库",width:"80"},{prop:"intra_stock",label:"在途库存",width:"80"}],d=r("2f62");s={name:"spaceCount",mixins:[s.a,i.a],components:{},computed:Object(n.a)(Object(n.a)({},Object(d.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"stockCount"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),data:function(){return{stock_code:"",supplier_code:"",parmValue:{supplier_code:[],stock_code:[],companyNo:"",start:"",end:"",type_code:"",page:1,size:15},loading:!0,tableData:[],table:{stripe:!0,border:!0,_defaultHeader_:["setcol"]},pageInfo:{size:15,curr:1,total:0},columns:u}},mounted:function(){this.searchList()},methods:{supplierChange:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){var a;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a=e.code,t.parmValue.companyNo=a||"",t.parmValue.supplier_code=[],t.supplier_code="",t.parmValue.stock_code=[],t.stock_code="",t.parmValue.page=1,t.pageInfo.curr=1,r.next=10,t.searchList();case 10:case"end":return r.stop()}}),r)})))()},handleTime:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return t.parmValue.start=e.startTime||"",t.parmValue.end=e.endTime||"",t.parmValue.page=1,t.pageInfo.curr=1,r.next=6,t.searchList();case 6:case"end":return r.stop()}}),r)})))()},selectStock:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){var a;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a=e.code,t.parmValue.stock_code=a?[a]:[],t.stock_code=a||"",t.parmValue.stock_code=[],t.stock_code="",t.parmValue.page=1,t.pageInfo.curr=1,r.next=9,t.searchList();case 9:case"end":return r.stop()}}),r)})))()},selectSupplier:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){var a;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a=e.code,t.parmValue.supplier_code=a?[a]:[],t.supplier_code=a||"",t.parmValue.stock_code=[],t.stock_code="",t.parmValue.page=1,t.pageInfo.curr=1,r.next=9,t.searchList();case 9:case"end":return r.stop()}}),r)})))()},restSearch:function(){this.pageInfo={size:15,curr:1,total:0},this.parmValue={start:"",end:"",companyNo:"",type_code:"",supplier_code:[],stock_code:[],page:1,size:15},this.searchList()},searchList:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r,a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,(r=JSON.parse(JSON.stringify(e.parmValue))).supplierNo=r.supplier_code.toString()||"",r.wsm_code=r.stock_code.toString()||"",delete r.supplier_code,delete r.stock_code,t.next=8,c(r);case 8:if(!(a=t.sent)||0!==a.code||!a.data){t.next=15;break}e.tableData=a.data.list,e.tableData.forEach((function(e){e.supplier_wsm_name=e.supplier_name===e.wsm_name?e.supplier_name:e.supplier_name+"/"+e.wsm_name})),e.pageInfo.total=Number(a.data.count),t.next=22;break;case 15:if(a&&100<=a.code&&a.code<=104)return t.next=18,e.logout();t.next=20;break;case 18:t.next=22;break;case 20:e.tableData=[],e.pageInfo.total=0;case 22:e.loading=!1;case 23:case"end":return t.stop()}}),t)})))()}}},i=r("2877"),n=Object(i.a)(s,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"spaceCount pagePadding",staticStyle:{padding:"0"}},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?r("div",[r("ex-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{table:e.table,data:e.tableData,columns:e.columns,page:e.pageInfo,size:e.size},on:{"page-curr-change":e.handlePageChange,"page-size-change":e.handleSizeChange,"screen-reset":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()},"screen-submit":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},scopedSlots:e._u([{key:"table-header",fn:function(t){return[r("div",{staticClass:"min",staticStyle:{width:"100%"}},[r("el-row",{staticStyle:{padding:"0 0 0 80px"}},[r("el-col",{staticStyle:{width:"300px"},attrs:{span:12}},[r("search-work-company",{attrs:{value:e.parmValue.companyNo,names:"",size:e.searchSize,"is-detail":"add"!==e.id,placeholder:"业务公司"},on:{searchChange:e.supplierChange}})],1),r("el-col",{staticStyle:{width:"330px",padding:"0 0 0 10px"},attrs:{span:10}},[r("el-input",{attrs:{size:e.searchSize,maxlength:"40",placeholder:"商品属性编码"},model:{value:e.parmValue.type_code,callback:function(t){e.$set(e.parmValue,"type_code",t)},expression:"parmValue.type_code"}})],1),r("el-col",{staticClass:"fr",staticStyle:{width:"66px"},attrs:{span:4}},[r("el-button",{staticClass:"fl",attrs:{size:e.searchSize,type:"warning"},on:{click:e.restSearch}},[e._v("重置")])],1)],1),r("el-row",{staticStyle:{padding:"10px 0 0 0"}},[r("el-col",{staticStyle:{width:"380px"},attrs:{span:12}},[r("search-supplier",{attrs:{size:e.searchSize,placeholder:"供应商公司",disabled:""===e.parmValue.companyNo,value:e.parmValue.supplier_code},on:{searchChange:e.selectSupplier}})],1),r("el-col",{staticStyle:{width:"330px",padding:"0 0 0 10px"},attrs:{span:12}},[r("search-stock",{attrs:{isDetail:!0,size:e.searchSize,value:e.parmValue.stock_code,disabled:""===e.supplier_code,placeholder:"出库仓库",isRelation:!0,companyCode:e.supplier_code,names:""},on:{searchChange:e.selectStock}})],1),r("el-col",{staticClass:"fr",staticStyle:{width:"66px"},attrs:{span:4}},[r("el-button",{attrs:{size:e.searchSize,type:"primary",label:""},on:{click:e.searchList}},[e._v("刷新")])],1)],1)],1)]}},{key:"specinfo",fn:function(t){return t=t.scope,e._l(t.row.specinfo,(function(t,a){return r("span",{key:a+t.spec_value_id},[e._v(e._s(0===a?"":"-")+e._s(t.spec_name)+"["+e._s(t.spec_value)+"]")])}))}},{key:"can",fn:function(t){return t=t.scope,e._l(t.row.cat_info,(function(t,a){return r("span",{key:a+t.id},[e._v(e._s(0===a?"":"-")+e._s(t.name))])}))}}],null,!1,3042128963)})],1):r("div",[r("no-auth")],1)])}),[],!1,null,null,null);t.default=n.exports},a072:function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=r("5530"),s=(r("96cf"),r("7db0"),r("d3b7"),r("25f0"),r("159b"),r("b0c0"),r("a9e3"),r("1b69")),i={list:function(e,t){return Object(s.a)("admin/zixunlist",e,"post",t)}},o=r("f5ed"),l=r("2f62"),c=r("9f53"),u=[{id:"0",name:"否"},{id:"1",name:"是"}],d=[{prop:"spuCode",label:"编号",width:"160px"},{prop:"good_img",label:"图片",_slot_:"good_img",width:"45px"},{prop:"good_name",label:"名称","min-width":"160px"},{prop:"cat_name",label:"分类"},{prop:"brand_name",label:"品牌"},{prop:"good_type",label:"是否定制",_slot_:"good_type",width:"70px"},{prop:"supplierNo",label:"供应商编号",width:"110px"},{prop:"supplier_name",label:"供应商名称",width:"110px"},{prop:"companyNo",label:"业务公司编号",width:"110px"},{prop:"company",label:"业务公司名称",width:"110px"},{prop:"addtime",label:"创建时间",width:"140px"},{prop:"",label:"操作",fixed:"right",_noset_:!0,width:"50px",_slot_:"operation"}],p=r("ed0b");o={name:"dealGoodsPool",mixins:[o.a,c.a],components:{showGoodsDataTableModal:p.a},computed:Object(n.a)(Object(n.a)({},Object(l.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"dealGoodsPool"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),data:function(){return{row:{},visible:!1,select:"1",sinput:"",statusList:[{code:"0",name:"新建待审核"},{code:"1",name:"审核通过"},{code:"2",name:"基础修改待审核"},{code:"3",name:"成本修改待审核"}],options1:u,loading:!1,parmValue:{page:1,size:15,start:"",end:"",status:"",creater:""},tableData:[],table:{stripe:!0,border:!0,_defaultHeader_:["setcol"]},pageInfo:{size:15,curr:1,total:0},columns:d,supplierNo:[],cat_id:[],brandid:[]}},mounted:function(){this.supplierNo=[],this.cat_id=[],this.brandid=[],this.searchList()},methods:{show_view:function(e){this.row=e,this.row.dtitle="咨询成交商品详情",this.visible=!0},restSearch:function(){this.supplierNo=[],this.cat_id=[],this.brandid=[],this.pageInfo={size:15,curr:1,total:0},this.parmValue={page:1,size:15,start:"",end:"",status:"",creater:""},this.searchList()},supplierNosearchChange:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){var a;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return e.id,a=e.code,e.label,t.supplierNo=[a],t.parmValue.supplierNo=t.supplierNo.toString(),t.pageInfo.curr=1,t.parmValue.page=1,r.next=8,t.searchList();case 8:case"end":return r.stop()}}),r)})))()},company_idsearchChange:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){var a,n;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a=e.id,n=e.code,e.label,t.parmValue.company_id=a?n:"",t.pageInfo.curr=1,t.parmValue.page=1,r.next=6,t.searchList();case 6:case"end":return r.stop()}}),r)})))()},brandidsearchChange:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){var a;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a=e.id,e.code,e.label,t.brandid=a?[a]:[],t.ruleForm.brandid=t.this.brandid.toString(),t.pageInfo.curr=1,t.parmValue.page=1,r.next=7,t.searchList();case 7:case"end":return r.stop()}}),r)})))()},handleTime:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t.parmValue.start=e.startTime||"",t.parmValue.end=e.endTime||"",""!==t.parmValue.start&&""!==t.parmValue.end||""===t.parmValue.start&&""===t.parmValue.end)return t.pageInfo.curr=1,t.parmValue.page=1,r.next=7,t.searchList();r.next=7;break;case 7:case"end":return r.stop()}}),r)})))()},changeStatus:function(e,t){var r=this;return Object(a.a)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r.$confirm("确定要改为".concat("1"===t?"禁用":"启用","?"),{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(a.a)(regeneratorRuntime.mark((function a(){var n,s;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return r.loading=!0,n={id:e,status:"1"===t?"0":"1"},a.next=4,i.status(n);case 4:if((s=a.sent)&&0===s.code)return r.loading=!1,r.$notify.success({title:"状态修改成功!",message:""}),a.next=10,r.searchList();a.next=12;break;case 10:a.next=19;break;case 12:if(s&&100<=s.code&&s.code<=104)return a.next=15,r.logout();a.next=17;break;case 15:a.next=19;break;case 17:r.loading=!1,r.$message.warning(s.message);case 19:case"end":return a.stop()}}),a)})))).catch((function(){}));case 2:case"end":return n.stop()}}),n)})))()},deleteItem:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t.$confirm("确定要删除?",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(a.a)(regeneratorRuntime.mark((function r(){var a,n;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a={codes:[e]},r.next=3,i.delete(a);case 3:if(!(n=r.sent)||0!==n.code){r.next=9;break}t.$notify.success({title:"删除成功",message:""}),t.searchList(),r.next=15;break;case 9:if(n&&100<=n.code&&n.code<=104)return r.next=12,t.logout();r.next=14;break;case 12:r.next=15;break;case 14:t.$message.warning(n.message);case 15:case"end":return r.stop()}}),r)})))).catch((function(){}));case 2:case"end":return r.stop()}}),r)})))()},searchList:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(""!==e.parmValue.start&&""===e.parmValue.end||""===e.parmValue.start&&""!==e.parmValue.end)return e.$message.warning("时间区间不完整!"),t.abrupt("return");t.next=3;break;case 3:return e.loading=!0,t.next=6,i.list(e.parmValue);case 6:if(!(r=t.sent)||0!==r.code||!r.data){t.next=13;break}e.tableData=r.data.list,e.tableData.forEach((function(e){e.cat_name="",(e.cat_info||[]).forEach((function(t,r){e.cat_name+=0==r?t.name:"/"+t.name}))})),e.pageInfo.total=Number(r.data.count),t.next=20;break;case 13:if(r&&100<=r.code&&r.code<=104)return t.next=16,e.logout();t.next=18;break;case 16:t.next=20;break;case 18:e.tableData=[],e.pageInfo.total=0;case 20:e.loading=!1;case 21:case"end":return t.stop()}}),t)})))()},goods_class_change:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){var a;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a=e.value,t.cat_id=a||[],t.pageInfo.cat_id=t.cat_id.toString(),t.pageInfo.curr=1,t.parmValue.page=1,r.next=7,t.searchList();case 7:case"end":return r.stop()}}),r)})))()}}},c=r("2877"),p=Object(c.a)(o,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"dealGoodsPool pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?r("ex-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{table:e.table,data:e.tableData,columns:e.columns,page:e.pageInfo,size:e.size},on:{"page-curr-change":e.handlePageChange,"page-size-change":e.handleSizeChange,"screen-reset":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()},"screen-submit":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},scopedSlots:e._u([{key:"table-header",fn:function(t){return[r("div",{staticStyle:{width:"100%"}},[r("el-row",{staticStyle:{padding:"0 0 10px 80px"}},[r("el-col",{staticStyle:{width:"293px"},attrs:{span:6}},[r("period-date-picker",{attrs:{type:1,width:"135px",size:e.searchSize,start:e.parmValue.start,end:e.parmValue.end},on:{timeReturned:e.handleTime}})],1),r("el-col",{staticStyle:{width:"270px",padding:"0 0 0 10px"},attrs:{span:6}},[r("el-input",{staticStyle:{},attrs:{size:e.searchSize,maxlength:40,placeholder:"商品名称"},model:{value:e.parmValue.supplier_name,callback:function(t){e.$set(e.parmValue,"supplier_name",t)},expression:"parmValue.supplier_name"}})],1),r("el-col",{staticStyle:{width:"250px",padding:"0 0 0 10px"},attrs:{span:6}},[r("el-input",{staticStyle:{},attrs:{size:e.searchSize,maxlength:40,placeholder:"商品编码"},model:{value:e.parmValue.good_code,callback:function(t){e.$set(e.parmValue,"good_code",t)},expression:"parmValue.good_code"}})],1),r("el-col",{staticClass:"fr",staticStyle:{width:"66px",padding:"0 0 0 10px"},attrs:{span:3}},[r("el-button",{attrs:{type:"primary",size:e.searchSize},on:{click:e.searchList}},[e._v(" 刷新 ")])],1)],1),r("el-row",[r("el-col",{staticStyle:{width:"518px"},attrs:{span:4}},[r("el-input",{attrs:{size:e.searchSize,maxlength:40,placeholder:"关键字"},model:{value:e.sinput,callback:function(t){e.sinput=t},expression:"sinput"}},[r("el-select",{staticStyle:{width:"130px"},attrs:{slot:"prepend",placeholder:"关键词类型"},on:{change:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},slot:"prepend",model:{value:e.select,callback:function(t){e.select=t},expression:"select"}},[r("el-option",{attrs:{label:"业务公司编码",value:"1"}}),r("el-option",{attrs:{label:"业务公司名称",value:"2"}}),r("el-option",{attrs:{label:"供应商编码",value:"3"}}),r("el-option",{attrs:{label:"供应商名称",value:"4"}})],1)],1)],1),r("el-col",{staticClass:"fr",staticStyle:{width:"66px",padding:"0 0 0 10px"},attrs:{span:3}},[r("el-button",{attrs:{type:"warning",size:e.searchSize},on:{click:e.restSearch}},[e._v(" 重置 ")])],1)],1)],1)]}},{key:"good_img",fn:function(t){return t=t.scope,[t.row.good_img?r("div",{directives:[{name:"viewer",rawName:"v-viewer"}],staticClass:"hover",staticStyle:{width:"20px",height:"20px"}},[r("img",{staticStyle:{display:"inline-block",width:"100%",height:"100%"},attrs:{src:t.row.good_img,alt:""}})]):e._e()]}},{key:"good_type",fn:function(t){var a=t.scope;return[r("el-tag",{attrs:{size:e.tablebtnSize,type:"0"==a.row.good_type?"warning":""},domProps:{textContent:e._s((e.options1.find((function(e){return e.id==a.row.good_type}))||{}).name||"--")}})]}},{key:"operation",fn:function(t){var a=t.scope;return[e.powers.some((function(e){return"007"==e}))?r("el-tooltip",{attrs:{effect:"dark",content:"详情",placement:"top"}},[r("i",{staticClass:"el-icon-view tb-icon",on:{click:function(t){return e.show_view(a.row)}}})]):e._e()]}}],null,!1,2929107178)}):r("no-auth"),r("show-goods-data-table-modal",{attrs:{showModel:e.visible,type:"3",title:e.row.dtitle,skuCode:e.row.skuCode,spuCode:e.row.spuCode,iscgd:!1},on:{cancel:function(t){e.visible=!1}}})],1)}),[],!1,null,"315f8f24",null);t.default=p.exports},a1a3:function(e,t,r){},a204:function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=r("ade3"),s=r("5530"),i=(r("96cf"),r("7db0"),r("d3b7"),r("e9c4"),r("a9e3"),r("f5ed")),o=r("9f53"),l=r("0ee5"),c=r("de14"),u=r("5534"),d=r("2f62");i={name:"sellAfterApply",mixins:[i.a,o.a],computed:Object(s.a)(Object(s.a)({},Object(d.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"sellAfterApply"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),data:function(){var e;return{select:"serviceNum",s_input:"",customerCode:[],except_codeOptions:[{id:"1",label:"退货"},{id:"2",label:"换货"},{id:"3",label:"改变售价"}],post_ownOptions:[{id:"1",label:"客户承担"},{id:"2",label:"公司承担"},{id:"3",label:"供应商承担"}],sitem:null,status1Options:[{id:"1",label:"待业务审核"},{id:"2",label:"待采购审核"},{id:"3",label:"待设置仓库"},{id:"4",label:"待客户退货"},{id:"5",label:"售后已完成"},{id:"6",label:"业务已驳回"},{id:"7",label:"采购已驳回"},{id:"8",label:"申请已取消"}],status2Options:[{id:"1",label:"待业务审核"},{id:"2",label:"待采购审核"},{id:"3",label:"待同意退货"},{id:"5",label:"售后已完成"},{id:"6",label:"业务已驳回"},{id:"7",label:"采购已驳回"},{id:"8",label:"申请已取消"}],statusList:l.a,loading:!1,showModel:!1,isDetail:!1,modelId:0,parmValue:(e={good_code:"",orderCode:"",outCode:"",except_code:"",serviceValue:"",start:"",end:"",order_type:"",customer_code:"",returnCode:"",apply_name:"",good_name:""},Object(n.a)(e,"except_code",""),Object(n.a)(e,"page",1),Object(n.a)(e,"size",15),e),tableData:[],table:{stripe:!0,border:!0,_defaultHeader_:["setcol"]},pageInfo:{size:15,curr:1,total:0},columns:u.a,serviceOptions:[{value:"0",label:"待审核"},{value:"1",label:"待物流反馈"},{value:"2",label:"待退货"},{value:"3",label:"已退货"}],expectOptions:[{value:"1",label:"退货"},{value:"2",label:"换货"},{value:"3",label:"改变售价"}]}},mounted:function(){this.searchList()},methods:{restSearch:function(){this.customerCode=[],this.select="serviceNum",this.s_input="",this.parmValue={order_type:"",customer_code:"",start:"",end:"",returnCode:"",apply_name:"",good_code:"",orderCode:"",outCode:"",good_name:"",except_code:"",page:1,size:15},this.pageInfo={size:15,curr:1,total:0},this.searchList()},openModal:function(e,t,r){this.showModel=!0,this.modelId=e,this.isDetail=t,this.sitem=r},deleteById:function(e,t){var r=this;return Object(a.a)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r.$confirm("确定要删除?",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(a.a)(regeneratorRuntime.mark((function a(){var n,s;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return n={id:e,status:"1"===t?"0":"1"},a.next=3,c.a.status(n);case 3:if(!(s=a.sent)||0!==s.code){a.next=9;break}r.$notify.success({title:"删除成功",message:""}),r.searchList(),a.next=15;break;case 9:if(s&&100<=s.code&&s.code<=104)return a.next=12,r.logout();a.next=14;break;case 12:a.next=15;break;case 14:r.$message.warning(s.message);case 15:case"end":return a.stop()}}),a)})))).catch((function(){}));case 2:case"end":return n.stop()}}),n)})))()},searchList:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r,a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(""!==e.parmValue.start&&""===e.parmValue.end||""===e.parmValue.start&&""!==e.parmValue.end)return e.$message.warning("时间区间不完整!"),t.abrupt("return");t.next=3;break;case 3:return e.loading=!0,e.parmValue.apply_name="applyer"===e.select?e.s_input:"",e.parmValue.good_name="goodsName"===e.select?e.s_input:"",e.parmValue.good_code="goodsNum"===e.select?e.s_input:"",e.parmValue.returnCode="serviceNum"===e.select?e.s_input:"",e.parmValue.orderCode="sellOrderNum"===e.select?e.s_input:"",e.parmValue.outCode="sellOutNum"===e.select?e.s_input:"",r=JSON.parse(JSON.stringify(e.parmValue)),t.next=13,c.a.list(r);case 13:if(!(a=t.sent)||0!==a.code||!a.data){t.next=19;break}e.tableData=a.data.list,e.pageInfo.total=Number(a.data.count),t.next=26;break;case 19:if(a&&100<=a.code&&a.code<=104)return t.next=22,e.logout();t.next=24;break;case 22:t.next=26;break;case 24:e.tableData=[],e.pageInfo.total=0;case 26:e.loading=!1;case 27:case"end":return t.stop()}}),t)})))()},statusConfirm:function(e,t){var r=this;return Object(a.a)(regeneratorRuntime.mark((function n(){var s;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return s="1"===t?"禁用":"启用",n.next=3,r.$confirm("确定要改为"+s+"?",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(a.a)(regeneratorRuntime.mark((function a(){var n,s;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return r.loading=!0,n={id:e,status:"1"===t?"0":"1"},a.next=4,c.a.status(n);case 4:if((s=a.sent)&&0===s.code)return r.loading=!1,r.$notify.success({title:"状态修改成功!",message:""}),a.next=10,r.searchList();a.next=12;break;case 10:a.next=18;break;case 12:if(s&&100<=s.code&&s.code<=104)return a.next=15,r.logout();a.next=17;break;case 15:a.next=18;break;case 17:r.$message.warning(s.message);case 18:case"end":return a.stop()}}),a)})))).catch((function(){}));case 3:case"end":return n.stop()}}),n)})))()},handleTime:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(""!==e.startTime?t.parmValue.start=e.startTime:t.parmValue.start="",""!==e.endTime?t.parmValue.end=e.endTime:t.parmValue.end="",""!==t.parmValue.start&&""!==t.parmValue.end)return t.parmValue.page=1,r.next=6,t.searchList();r.next=6;break;case 6:case"end":return r.stop()}}),r)})))()},customerChange:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return e&&e.id?(t.customerCode=[e.code],t.parmValue.customer_code=e.code):(t.customerCode=[],t.parmValue.customer_code=""),t.parmValue.page=1,r.next=4,t.searchList();case 4:case"end":return r.stop()}}),r)})))()},handleValue:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.searchList();case 2:case"end":return t.stop()}}),t)})))()}}},o=r("2877"),s=Object(o.a)(i,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"sellAfterApply pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?r("div",[r("ex-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{table:e.table,data:e.tableData,columns:e.columns,page:e.pageInfo,size:e.size},on:{"page-curr-change":e.handlePageChange,"page-size-change":e.handleSizeChange,"screen-reset":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()},"screen-submit":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},scopedSlots:e._u([{key:"table-header",fn:function(t){return[r("div",{staticStyle:{width:"100%"}},[r("el-row",{staticStyle:{padding:"0 0 0 80px"}},[r("el-col",{attrs:{span:24}},[r("el-col",{staticStyle:{width:"291px"},attrs:{span:4}},[r("period-date-picker",{attrs:{start:e.parmValue.start,end:e.parmValue.end,width:"134px",size:e.searchSize},on:{timeReturned:e.handleTime}})],1),r("el-col",{staticStyle:{width:"140px","padding-left":"10px"},attrs:{span:4}},[r("el-select",{attrs:{size:e.searchSize,clearable:"",placeholder:"处理状态"},on:{change:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.parmValue.status,callback:function(t){e.$set(e.parmValue,"status",t)},expression:"parmValue.status"}},e._l(e.serviceOptions,(function(e){return r("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),r("el-col",{staticStyle:{width:"320px",padding:"0px 0 0 10px"},attrs:{span:4}},[r("search-customer",{attrs:{value:e.customerCode,size:e.searchSize,placeholder:"客户公司名称"},on:{searchChange:e.customerChange}})],1),r("el-col",{staticStyle:{width:"66px",float:"right"},attrs:{span:3}},[r("el-button",{staticStyle:{float:"right","margin-left":"5px"},attrs:{size:e.searchSize,type:"primary"},on:{click:e.searchList}},[e._v(" 刷新 ")])],1)],1)],1),r("el-row",{staticStyle:{"padding-top":"10px"}},[r("el-col",{staticStyle:{width:"620px"},attrs:{span:4}},[r("el-input",{staticClass:"input-with-select",attrs:{clearable:"",size:e.searchSize,maxlength:"40",placeholder:"关键字"},model:{value:e.s_input,callback:function(t){e.s_input=t},expression:"s_input"}},[r("el-select",{staticStyle:{width:"150px"},attrs:{slot:"prepend",placeholder:"关键字类型"},slot:"prepend",model:{value:e.select,callback:function(t){e.select=t},expression:"select"}},[r("el-option",{attrs:{label:"售后申请编号",value:"serviceNum"}}),r("el-option",{attrs:{label:"发货申请单编号",value:"sellOutNum"}}),r("el-option",{attrs:{label:"商品编号",value:"goodsNum"}}),r("el-option",{attrs:{label:"商品名称",value:"goodsName"}}),r("el-option",{attrs:{label:"申请人",value:"applyer"}})],1),r("el-button",{attrs:{slot:"append",icon:"el-icon-search"},on:{click:e.handleValue},slot:"append"})],1)],1),r("el-col",{staticStyle:{width:"66px"},attrs:{span:4}},[r("el-button",{staticClass:"fr",attrs:{type:"warning",size:e.searchSize},on:{click:e.restSearch}},[e._v(" 重置 ")])],1)],1)],1)]}},{key:"status",fn:function(t){var a=t.scope;return[r("el-tag",{attrs:{size:e.tablebtnSize,type:""},domProps:{textContent:e._s((("0"===a.row.is_receive?e.status2Options:e.status1Options).find((function(e){return e.id==a.row.status}))||{}).label||"--")}})]}},{key:"post_own",fn:function(t){var a=t.scope;return[r("el-tag",{attrs:{size:e.tablebtnSize,type:"0"==a.row.status?"warning":""},domProps:{textContent:e._s((e.post_ownOptions.find((function(e){return e.id==a.row.post_own}))||{}).label||"--")}})]}},{key:"except_code",fn:function(t){var a=t.scope;return[r("el-tag",{attrs:{size:e.tablebtnSize,type:"0"==a.row.status?"warning":""},domProps:{textContent:e._s((e.except_codeOptions.find((function(e){return e.id==a.row.except_code}))||{}).label||"--")}})]}},{key:"operation",fn:function(t){var a=t.scope;return[e.powers.some((function(e){return"007"==e}))?r("el-tooltip",{attrs:{effect:"dark",content:"详情",placement:"top"}},[r("i",{staticClass:"el-icon-view tb-icon",on:{click:function(t){return e.routeGoto("sellAfterApplyDetail",{id:a.row.returnCode})}}})]):e._e()]}}],null,!1,2657168554)})],1):r("div",[r("no-auth")],1)])}),[],!1,null,"2d8e6fbe",null);t.default=s.exports},a211:function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=(r("96cf"),{name:"active",props:["showModel","left","right","lang"],data:function(){return{loading:!0,title:"商品阶梯价格",showModelThis:this.showModel}},methods:{closeModel:function(e){this.showModelThis=!1},initForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.loading=!1;case 1:case"end":return t.stop()}}),t)})))()}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis:function(e){e||this.$emit("cancel")}}});r("22dd"),r=r("2877"),r=Object(r.a)(n,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("el-dialog",{attrs:{title:e.title,center:!0,align:"left",top:"12vh",width:"1040px","close-on-click-modal":!1,visible:e.showModelThis},on:{close:e.closeModel,"update:visible":function(t){e.showModelThis=t}}},[r("el-card",[r("el-row",{attrs:{gutter:10}},[r("el-col",{attrs:{span:24}},[e.left&&e.left.header&&0<e.left.header.length&&e.right&&e.right.header&&0<e.right.header.length?r("div",[r("div",{staticClass:"list-table clearfix"},[r("div",{staticClass:"left",style:{width:e.lang}},[r("div",{staticClass:"header"},e._l(e.left.header,(function(t,a){return r("div",{key:"lhead"+a,staticClass:"header-item"},[e._v(" "+e._s(t.spec_name)+" ")])})),0),e.left.spec&&0<e.left.spec.length?r("div",{staticClass:"header-body"},e._l(e.left.spec,(function(t,a){return r("div",{key:"lheadrow"+a,staticClass:"header-body-row"},e._l(t,(function(t,a){return r("div",{key:"lheadcol"+a,staticClass:"heder-body-col"},[e._v(" "+e._s(t.spec_value)+" ")])})),0)})),0):e._e()]),r("div",{staticClass:"right",style:{paddingLeft:e.lang}},[r("div",{staticClass:"header"},e._l(e.right.header,(function(t,a){return r("div",{key:"lheadr"+a,staticClass:"header-col clearfix"},[r("div",{staticClass:"header-col-jieti clearfix"},[r("div",{staticClass:"header-col-jieti-title tc clearfix"},[e._v(" 阶梯"+e._s(a+1)+" ")]),r("div",{staticClass:"header-col-jieti-main clearfix"},[r("div",{staticClass:"header-col-item fl tc"},[e._v(e._s(t.num))]),r("div",{staticClass:"header-col-item fl tc"},[e._v(e._s(t.price))])])])])})),0),e.right.spec&&0<e.right.spec.length?r("div",{staticClass:"right-body"},e._l(e.right.spec,(function(t,a){return r("div",{key:"lbodyr"+a,staticClass:"right-body-col"},e._l(t.limit,(function(t,a){return r("div",{key:"lbritem"+a,staticClass:"right-body-col-item clearfix"},[r("div",{staticClass:"right-body-col-item-div fl tc"},[e._v(" "+e._s(t.begin_num)+" ")]),r("div",{staticClass:"right-body-col-item-div fl tc"},[e._v(" "+e._s(t.shop_price)+" ")])])})),0)})),0):e._e()])])]):r("div",{staticClass:"tc"},[r("el-tag",{attrs:{type:"warning"}},[e._v("暂无阶梯价!")])],1)])],1)],1)],1)}),[],!1,null,"8b767786",null);t.default=r.exports},a281:function(e,t,r){"use strict";r("c9a0")},a2b6:function(e,t,r){"use strict";var a=r("1b69"),n="admin/";t.a={add:function(e,t){return Object(a.a)(n+"reordercreate",e,"post",t)},delete:function(e,t){return Object(a.a)(n+"reorderdel",e,"post",t)},list:function(e,t){return Object(a.a)(n+"reorderlist",e,"post",t)},detail:function(e,t){return Object(a.a)(n+"reorderinfo",e,"post",t)},update:function(e,t){return Object(a.a)(n+"update",e,"post",t)},status:function(e,t){return Object(a.a)(n+"reorderexam",e,"post",t)},getReason:function(e,t){return Object(a.a)(n+"resultlist",e,"post",t)},returnCheck:function(e,t){return Object(a.a)(n+"reorderexam",e,"post",t)}}},a36b:function(e,t,r){e.exports=r.p+"static/img/404.a57b6f31.png"},a444:function(e,t,r){"use strict";r("e3ac")},a451:function(e,t,r){"use strict";r.r(t),r=r("2877"),r=Object(r.a)({},void 0,void 0,!1,null,null,null),t.default=r.exports},a4dd:function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=r("5530"),s=(r("96cf"),r("7db0"),r("d3b7"),r("e9c4"),r("159b"),r("c740"),r("b0c0"),r("a9e3"),r("1b69")),i="admin/",o=function(e,t){return Object(s.a)(i+"processolist",e,"post",t)},l=r("f5ed"),c=r("2f62"),u=r("9f53"),d=r("6b0b");l={name:"done",mixins:[l.a,u.a],computed:Object(n.a)(Object(n.a)({},Object(c.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"done"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),data:function(){return{loading:!0,process_router_list:JSON.parse(JSON.stringify(d.b)),parmValue:{page:1,size:15},tableData:[],table:{stripe:!0,border:!0,_defaultHeader_:["setcol"]},pageInfo:{size:15,curr:1,total:0},columns:d.a}},mounted:function(){this.searchList()},methods:{getRouter:function(e,t){e&&t?this.routeGoto(e,{id:t,type:"view"}):this.$message.warning("暂未找到相关流程!")},restSearch:function(){this.pageInfo={size:15,curr:1,total:0},this.parmValue={page:1,size:15},this.searchList()},searchList:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,t.next=3,o(e.parmValue);case 3:if(!(r=t.sent)||0!==r.code||!r.data){t.next=10;break}e.tableData=r.data.list,e.tableData.forEach((function(t,r){var a,n,s=e.process_router_list.findIndex((function(e){return e.type===t.order_type}));-1!==s?(a=(s=e.process_router_list[s]).name,n=s.toRouter,s=s.to,e.tableData[r].process_name=a,e.tableData[r].toRouter=n,e.tableData[r].queryId="code"==s?t.order_code:t.order_id):(e.tableData[r].process_name="",e.tableData[r].toRouter="",e.tableData[r].queryId="")})),e.pageInfo.total=Number(r.data.count),t.next=17;break;case 10:if(r&&100<=r.code&&r.code<=104)return t.next=13,e.logout();t.next=15;break;case 13:t.next=17;break;case 15:e.tableData=[],e.pageInfo.total=0;case 17:e.loading=!1;case 18:case"end":return t.stop()}}),t)})))()}}},u=r("2877"),n=Object(u.a)(l,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"done pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?r("ex-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{table:e.table,data:e.tableData,columns:e.columns,page:e.pageInfo,size:e.size},on:{"page-curr-change":e.handlePageChange,"page-size-change":e.handleSizeChange,"screen-reset":function(t){e.pageInfo.curr=1,e.searchList()},"screen-submit":function(t){e.pageInfo.curr=1,e.searchList()}},scopedSlots:e._u([{key:"table-header",fn:function(t){return[r("div",{staticStyle:{width:"100%",height:"30px"}},[r("el-row",[r("el-col",{attrs:{span:24}},[r("el-col",{staticStyle:{width:"66px",float:"right"},attrs:{span:3}},[r("el-button",{staticStyle:{float:"right"},attrs:{type:"primary",size:e.searchSize},on:{click:e.searchList}},[e._v(" 刷新 ")])],1),e.powers.some((function(e){return"003"==e}))?r("el-col",{staticStyle:{width:"66px",float:"right"},attrs:{span:3}},[r("el-button",{staticStyle:{float:"right"},attrs:{size:e.searchSize,type:"success"},on:{click:function(t){return e.openModal("add",!1)}}},[e._v(" 添加 ")])],1):e._e()],1)],1)],1)]}},{key:"status",fn:function(t){var a=t.scope;return[r("el-tag",{attrs:{size:e.tablebtnSize,type:"0"==a.row.status?"warning":""},domProps:{textContent:e._s((e.statusOptions.find((function(e){return e.id==a.row.status}))||{}).label||"--")}})]}},{key:"operation",fn:function(t){var a=t.scope;return[e.powers.some((function(e){return"007"==e}))?r("el-tooltip",{attrs:{effect:"dark",content:"详情",placement:"top"}},[r("i",{staticClass:"el-icon-view tb-icon",on:{click:function(t){return e.getRouter(a.row.toRouter,a.row.queryId)}}})]):e._e()]}}],null,!1,4217995266)}):r("no-auth")],1)}),[],!1,null,"3ae36f26",null);t.default=n.exports},a55b:function(e,t,r){},a56b:function(e,t,r){e.exports=r.p+"static/img/loginlan.1ecbd4ab.png"},a5f8:function(e,t,r){"use strict";r("70bb")},a6406:function(e,t,r){},a6ac:function(e,t,r){},a731:function(e,t,r){"use strict";r("5846")},a784:function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=r("5530"),s=(r("96cf"),r("7db0"),r("d3b7"),r("a9e3"),r("e9c4"),r("f5ed")),i=r("9f53"),o=r("7dbe"),l=r("82ae"),c=r("2f62"),u=r("ad6d1"),d=r("b87d"),p=r("ed0b");s={name:"zixunOrder",mixins:[s.a,i.a],props:["id","newTime","sitem"],components:{addEditBargain:u.default,buyGoodModal:d.default,showGoodsDataTableModal:p.a},computed:Object(n.a)(Object(n.a)({},Object(c.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"zixunOrderDetail"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),watch:{newTime:function(e){var t;e&&(t=(e=this.sitem).is_project,e=e.status,this.is_project=t,this.status=e,this.searchList())}},data:function(){return{row:{},visible:!1,view_spuCode:"",view_show:!1,wantBmodel:!1,wantBsitem:"",select:"1",s_input:"",status:"",bayGoodShowModel:!1,bayGoodItem:{},is_project:!1,customerCode:[],baoptions:[{id:"1",label:"待业务主管审批"},{id:"2",label:"待财务专员审批"},{id:"3",label:"待财务主管审批"},{id:"4",label:"审批通过"},{id:"5",label:"业务主管驳回"},{id:"6",label:"财务主管驳回"},{id:"7",label:"已取消议价"}],options:[{id:"0",label:"待发布竞标"},{id:"1",label:"招标进行中"},{id:"2",label:"招标已结束"},{id:"3",label:"待选择商品"},{id:"4",label:"已选商品待下单"},{id:"5",label:"已成功转单"},{id:"6",label:"已取消转单"},{id:"7",label:"招标已暂停"}],sitem:null,statusOptions:[{id:"0",label:"采返已结束",type:"info"},{id:"1",label:"采返已结束",type:"info"},{id:"2",label:"采返已结束",type:"info"},{id:"3",label:"等待议价结果",type:"warning"},{id:"4",label:"等待议价结果",type:"warning"},{id:"5",label:"议价已结束",type:""},{id:"6",label:"已选择该商品",type:"success"}],loading:!0,showModel:!1,isDetail:!1,show_reject_item:null,show_reject_model:!1,modelId:0,parmValue:{zxNo:"",infoNo:"",bidNo:"",projectNo:"",page:1,size:15},tableData:[],table:{stripe:!0,border:!0},pageInfo:{size:15,curr:1,total:0},columns:l.b}},mounted:function(){var e=this.sitem,t=e.is_project;e=e.status;this.is_project=t,this.status=e,this.searchList()},methods:{show_view:function(e){this.row=e,this.visible=!0},restSearch:function(){this.parmValue={zxNo:"",infoNo:"",bidNo:"",projectNo:"",page:1,size:15},this.pageInfo={size:15,curr:1,total:0},this.searchList()},show_reject:function(e){this.show_reject_item=[],this.show_reject_item.push(e.reject),this.show_reject_model=!0},wantBargaining:function(e){this.wantBsitem=e,this.wantBmodel=!0},openModal:function(e,t,r){this.showModel=!0,this.modelId=e,this.isDetail=t,this.sitem=r},searchList:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,e.parmValue.infoNo=e.id,t.next=4,o.a.feedList(e.parmValue);case 4:if(!(r=t.sent)||0!==r.code||!r.data){t.next=10;break}e.tableData=r.data.list,e.pageInfo.total=Number(r.data.count),t.next=17;break;case 10:if(r&&100<=r.code&&r.code<=104)return t.next=13,e.logout();t.next=15;break;case 13:t.next=17;break;case 15:e.tableData=[],e.pageInfo.total=0;case 17:e.loading=!1;case 18:case"end":return t.stop()}}),t)})))()},change_goods:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t.$confirm("确定要选择该商品下单?",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(a.a)(regeneratorRuntime.mark((function r(){var a,n;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return t.loading=!0,a={bidNo:e},r.next=4,o.a.bidscheck(a);case 4:if(!(n=r.sent)||0!==n.code){r.next=11;break}t.loading=!1,t.$notify.success({title:"选择商品成功!",message:""}),t.$emit("resGoodOk"),r.next=17;break;case 11:if(n&&100<=n.code&&n.code<=104)return r.next=14,t.logout();r.next=16;break;case 14:r.next=17;break;case 16:t.$message.warning(n.message);case 17:case"end":return r.stop()}}),r)})))).catch((function(){}));case 2:case"end":return r.stop()}}),r)})))()},statusConfirm:function(e,t){var r=this;return Object(a.a)(regeneratorRuntime.mark((function n(){var s;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return s="1"===t?"禁用":"启用",n.next=3,r.$confirm("确定要改为"+s+"?",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(a.a)(regeneratorRuntime.mark((function a(){var n,s;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return r.loading=!0,n={id:e,status:"1"===t?"0":"1"},a.next=4,o.a.status(n);case 4:if((s=a.sent)&&0===s.code)return r.loading=!1,r.$notify.success({title:"状态修改成功!",message:""}),a.next=10,r.searchList();a.next=12;break;case 10:a.next=18;break;case 12:if(s&&100<=s.code&&s.code<=104)return a.next=15,r.logout();a.next=17;break;case 15:a.next=18;break;case 17:r.$message.warning(s.message);case 18:case"end":return a.stop()}}),a)})))).catch((function(){}));case 3:case"end":return n.stop()}}),n)})))()},buy_goods:function(e){var t=this.sitem,r=t.company,a=t.khname,n=t.platform_name,s=t.arrival_time;t=t.num;this.bayGoodItem=JSON.parse(JSON.stringify(e)),this.bayGoodItem.in_company=r,this.bayGoodItem.in_khname=a,this.bayGoodItem.in_platform_name=n,this.bayGoodItem.in_arrival_time=s,this.bayGoodItem.in_num=t,this.bayGoodShowModel=!0},handleTime:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(""!==e.startTime?t.parmValue.start=e.startTime:t.parmValue.start="",""!==e.endTime?t.parmValue.end=e.endTime:t.parmValue.end="",""!==t.parmValue.start&&""!==t.parmValue.end)return t.pageInfo.curr=1,t.parmValue.page=1,r.next=7,t.searchList();r.next=7;break;case 7:case"end":return r.stop()}}),r)})))()},customerChange:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return e&&e.id?(t.customerCode=[e.code],t.parmValue.customer_code=e.code):(t.customerCode=[],t.parmValue.customer_code=""),t.pageInfo.curr=1,t.parmValue.page=1,r.next=5,t.searchList();case 5:case"end":return r.stop()}}),r)})))()}}},r("279b"),i=r("2877"),u=Object(i.a)(s,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"zixunOrder pagePadding"},[r("ex-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{table:e.table,data:e.tableData,columns:e.columns,page:e.pageInfo,size:e.size},on:{"page-curr-change":e.handlePageChange,"page-size-change":e.handleSizeChange,"screen-reset":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()},"screen-submit":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},scopedSlots:e._u([{key:"good_img",fn:function(t){return t=t.scope,[t.row.good_img?r("div",{directives:[{name:"viewer",rawName:"v-viewer"}],staticClass:"hover",staticStyle:{width:"20px",height:"20px"}},[r("img",{staticStyle:{display:"inline-block",width:"100%",height:"100%"},attrs:{src:t.row.good_img,alt:""}})]):e._e()]}},{key:"status",fn:function(t){var a=t.scope;return[r("el-tag",{attrs:{size:e.tablebtnSize,type:(e.statusOptions.find((function(e){return e.id==a.row.status}))||{}).type||""},domProps:{textContent:e._s((e.statusOptions.find((function(e){return e.id==a.row.status}))||{}).label||"--")}})]}},{key:"specinfo",fn:function(t){return t=t.scope,e._l(t.row.specinfo,(function(t,a){return r("span",{key:t.specid+a},[0!==a?r("span"):e._e(),e._v(e._s(t.spec_name)+"["+e._s(t.spec_value_name)+"]")])}))}},{key:"operation",fn:function(t){var a=t.scope;return[e.powers.some((function(e){return"007"==e}))?r("el-tooltip",{attrs:{effect:"dark",content:"详情",placement:"top"}},[r("i",{staticClass:"el-icon-view tb-icon",on:{click:function(t){return e.show_view(a.row)}}})]):e._e(),e.powers&&0<e.powers.length&&e.powers.some((function(e){return"068"==e}))&&"0"===e.is_project&&a.row.reject&&a.row.reject.id?r("el-tooltip",{attrs:{effect:"dark",content:"上次议价驳回原因",placement:"top"}},[r("i",{staticClass:"el-icon-warning tb-icon",on:{click:function(t){return e.show_reject(a.row)}}})]):e._e(),e.powers&&0<e.powers.length&&e.powers.some((function(e){return"068"==e}))&&"0"===e.is_project&&("2"===e.status||"7"===e.status||"3"===e.status&&"3"!==a.row.status&&"4"!==a.row.status&&"6"!==a.row.status)?r("el-tooltip",{attrs:{effect:"dark",content:"发起议价流程",placement:"top"}},[r("i",{staticClass:"el-icon-s-flag tb-icon",on:{click:function(t){return e.wantBargaining(a.row)}}})]):e._e(),e.powers&&0<e.powers.length&&e.powers.some((function(e){return"069"==e}))&&"0"===e.is_project&&"6"!==a.row.status&&("3"==e.status||"2"==e.status||"7"==e.status)?r("el-tooltip",{attrs:{effect:"dark",content:"选择该商品",placement:"top"}},[r("i",{staticClass:"el-icon-s-check tb-icon",on:{click:function(t){return e.change_goods(a.row.bidNo)}}})]):e._e(),e.powers&&0<e.powers.length&&e.powers.some((function(e){return"070"==e}))&&"0"===e.is_project&&"6"===a.row.status&&"4"==e.status?r("el-tooltip",{attrs:{effect:"dark",content:"下单",placement:"top"}},[r("i",{staticClass:"el-icon-shopping-cart-2 tb-icon",on:{click:function(t){return e.buy_goods(a.row)}}})]):e._e()]}}])}),r("add-edit-bargain",{attrs:{showModel:e.wantBmodel,sitem:e.wantBsitem},on:{cancel:function(t){e.wantBmodel=!1},refresh:function(t){e.wantBmodel=!1,e.$emit("resGoodOk")}}}),r("buy-good-modal",{attrs:{showModel:e.bayGoodShowModel,sitem:e.bayGoodItem},on:{cancel:function(t){e.bayGoodShowModel=!1},refresh:function(t){e.bayGoodShowModel=!1,e.$emit("resGoodOk")}}}),r("show-goods-data-table-modal",{attrs:{showModel:e.visible,type:"3",title:"采返商品详情",skuCode:e.row.skuCode,spuCode:e.row.spuCode,iscgd:!0},on:{cancel:function(t){e.visible=!1}}}),r("el-dialog",{attrs:{title:"上次议价驳回原因",visible:e.show_reject_model,width:"30%","append-to-body":""},on:{"update:visible":function(t){e.show_reject_model=t},close:function(t){e.show_reject_model=!1}}},e._l(e.show_reject_item,(function(t,a){return r("ul",{key:t.id+a,staticStyle:{margin:"-20px 0 0 0"}},[r("li",{staticStyle:{"line-height":"20px",padding:"0 0 16px 0"}},[e._v(" 驳回节点:"+e._s((e.baoptions.find((function(e){return e.id==t.status}))||{}).label||"--")+" ")]),r("li",[e._v("驳回理由:"+e._s(t.remark))])])})),0)],1)}),[],!1,null,"7224485e",null);t.default=u.exports},a89f:function(e,t,r){"use strict";r("03b8")},a908:function(e,t,r){"use strict";r("575e")},a923:function(e,t,r){},a9ad:function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=(r("96cf"),r("61f7")),s=r("6a1e"),i={name:"Login",mixins:[r("9f53").a],data:function(){var e=this;return{loginForm:{oldPassword:"",newPassword:"",confirmPassword:""},loginRules:{oldPassword:[{required:!0,trigger:"blur",validator:function(e,t,r){""===t?r(new Error("旧密码不能为空!")):!Object(n.b)(t)||t.length<6||18<t.length?r(new Error("旧密码为6-18位数字字母组合!")):Object(n.k)(t)?r(new Error("旧密码不能为纯数字!")):Object(n.r)(t)?r(new Error("旧密码不能为纯字母!")):r()}}],newPassword:[{required:!0,trigger:"blur",validator:function(t,r,a){""===r?a(new Error("新密码不能为空!")):e.loginForm.oldPassword===r?a(new Error("新密码不能与旧密码一致!")):!Object(n.b)(r)||r.length<6||18<r.length?a(new Error("新密码为6-18位数字字母组合!")):Object(n.k)(r)?a(new Error("新密码不能为纯数字!")):Object(n.r)(r)?a(new Error("新密码不能为纯字母!")):a()}}],confirmPassword:[{required:!0,trigger:"blur",validator:function(t,r,a){""===r?a(new Error("确认密码不能为空!")):e.loginForm.newPassword!==r?a(new Error("确认密码与新密码不一致!")):a()}}]},loading:!1,otherQuery:{}}},methods:{handleLogin:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.$refs.loginForm.validate(function(){var t=Object(a.a)(regeneratorRuntime.mark((function t(r){var n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r){t.next=4;break}e.loading||(e.loading=!0,n={oldpwd:e.loginForm.oldPassword,newpwd:e.loginForm.newPassword},s.a.setpwd(n).then(function(){var t=Object(a.a)(regeneratorRuntime.mark((function t(r){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r&&0===r.code)return e.loading=!1,e.$message.success(r.message),t.next=5,e.logout();t.next=7;break;case 5:t.next=14;break;case 7:if(r&&100<=r.code&&r.code<=104)return t.next=10,e.logout();t.next=12;break;case 10:t.next=14;break;case 12:e.$message.warning(r.message),e.loading=!1;case 14:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())),t.next=6;break;case 4:return t.abrupt("return",!1);case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 1:case"end":return t.stop()}}),t)})))()}}};r("62f7"),r("d65f"),r=r("2877"),r=Object(r.a)(i,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("div",{staticClass:"change-password pagePadding"},[t("div",{staticClass:"change"},[t("div",{staticClass:"title"},[e._v(" 设置新登录密码 "),t("el-popover",{attrs:{placement:"top",title:"初始密码:",width:"200",trigger:"click",content:"dingding123"}},[t("i",{staticClass:"el-icon-info",attrs:{slot:"reference"},slot:"reference"})])],1),t("el-form",{ref:"loginForm",staticClass:"login-form",attrs:{model:e.loginForm,rules:e.loginRules,autocomplete:"on","label-position":"right","label-width":"100px"}},[t("el-form-item",{attrs:{prop:"oldPassword",label:"旧密码:"}},[t("el-input",{ref:"oldPassword",attrs:{placeholder:"旧密码",name:"oldPassword",type:"password",tabindex:"1",maxlength:"16",autocomplete:"on"},model:{value:e.loginForm.oldPassword,callback:function(t){e.$set(e.loginForm,"oldPassword",t)},expression:"loginForm.oldPassword"}})],1),t("el-form-item",{attrs:{prop:"newPassword",label:"新密码:"}},[t("el-input",{ref:"newPassword",attrs:{placeholder:"新密码",name:"newPassword",type:"password",maxlength:"16",tabindex:"1",autocomplete:"on"},model:{value:e.loginForm.newPassword,callback:function(t){e.$set(e.loginForm,"newPassword",t)},expression:"loginForm.newPassword"}})],1),t("el-form-item",{attrs:{prop:"confirmPassword",label:"确认密码:"}},[t("el-input",{ref:"confirmPassword",attrs:{placeholder:"确认密码",name:"confirmPassword",type:"password",maxlength:"16",tabindex:"1",autocomplete:"on"},model:{value:e.loginForm.confirmPassword,callback:function(t){e.$set(e.loginForm,"confirmPassword",t)},expression:"loginForm.confirmPassword"}})],1),t("el-button",{staticStyle:{width:"98%",margin:"15px 0 0 5%"},attrs:{loading:e.loading,type:"primary",round:""},nativeOn:{click:function(t){return t.preventDefault(),e.handleLogin(t)}}},[e._v("确认修改")])],1)],1)])}),[],!1,null,"3e496fef",null);t.default=r.exports},ad6d1:function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=(r("e9c4"),r("d3b7"),r("159b"),r("99af"),r("96cf"),r("d1e0")),s={name:"Account",props:["showModel","sitem"],mixins:[r("9f53").a],data:function(){return{roleList:[],loading:!1,title:"添加账号",organizeList:[],showModelThis:this.showModel,ruleForm:{result_info_id:"",bargain_price:"0",result_info_id_name:"",bargain_remark:""},show_sitem:null,rulesThis:this.rules,rules:{result_info_id:[{required:!0,message:"请选择议价原因!",trigger:"change"}],bargain_price:[{required:!0,validator:function(e,t,r){""===t?r(new Error("不能为空!")):"0"===t||"0."===t||"0.0"===t||"0.00"===t?r(new Error("期望售价不能为零!")):r()},trigger:"blur"}],bargain_remark:[{required:!0,message:"议价备注不能为空!",trigger:"blur"}]}}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis:function(e){e||this.$emit("cancel")}},mounted:function(){},methods:{itemidChange:function(e){this.ruleForm.itemid=e,this.$refs.ruleForm.validateField("itemid")},initForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,e.rulesThis=e.rules,t.next=4,e.resetForm();case 4:e.loading=!1;case 5:case"end":return t.stop()}}),t)})))()},number_change:function(e,t){this.ruleForm[t]=e+""||"0",this.$refs.ruleForm.validateField(t)},resetForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$nextTick((function(){e.show_sitem=JSON.parse(JSON.stringify(e.sitem));var t=e.sitem,r=t.sale_price;t=t.specinfo;t&&0<t.length&&t.forEach((function(t,r){e.show_sitem.good_name+="".concat(0===r?"_":"-").concat(t.spec_name,"[").concat(t.spec_value_name,"]")})),e.$refs.ruleForm&&(e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),e.ruleForm={bargain_price:r||"0",result_info_id:"",bargain_remark:"",result_info_id_name:""})}));case 2:case"end":return t.stop()}}),t)})))()},select_change:function(e){var t=e.code;e=e.label;this.ruleForm.result_info_id=t||"",this.ruleForm.result_info_id_name=e||"",this.$refs.ruleForm.validateField("result_info_id")},submitForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.ruleForm.validate(function(){var t=Object(a.a)(regeneratorRuntime.mark((function t(r){var a,s,i,o,l,c;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r){t.next=27;break}if(e.loading=!0,i=JSON.parse(JSON.stringify(e.ruleForm)),a=i.bargain_price,s=i.result_info_id,i=i.bargain_remark,l=e.sitem,o=l.bidNo,100*l.sale_price==100*a)return e.$message.warning("期望售价不能等于当前售价!"),e.loading=!1,t.abrupt("return");t.next=8;break;case 8:return l={bidNo:o,bargain_price:a,result_info_id:s,bargain_remark:i},t.next=11,n.a.bargain_add(l);case 11:if(c=t.sent,e.loading=!1,!c||0!==c.code){t.next=19;break}e.$notify.success({title:"议价流程创建成功!",message:""}),e.showModelThis=!1,e.$emit("refresh"),t.next=25;break;case 19:if(c&&100<=c.code&&c.code<=104)return t.next=22,e.logout();t.next=24;break;case 22:t.next=25;break;case 24:e.$message.warning(c.message);case 25:t.next=29;break;case 27:return t.abrupt("return",!1);case 29:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()}}};r("2eac"),r=r("2877"),r=Object(r.a)(s,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:"申请议价",center:!0,align:"left",top:"10vh",width:"900px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)"},on:{"update:visible":function(t){e.showModelThis=t},close:function(t){e.showModelThis=!1}}},[t("el-card",{staticStyle:{"margin-top":"-20px"}},[t("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",size:"mini",rules:e.rulesThis,"label-width":"75px"}},[t("el-row",[t("el-col",{attrs:{span:3}},[t("el-form-item",{staticStyle:{margin:"0"},attrs:{label:"图片","label-width":"44px"}},[e.show_sitem&&e.show_sitem.good_img?t("img",{directives:[{name:"viewer",rawName:"v-viewer"}],staticClass:"hover",staticStyle:{width:"35px",height:"35px"},attrs:{src:e.show_sitem.good_img,alt:""}}):e._e()])],1),t("el-col",{attrs:{span:4}},[t("el-form-item",{attrs:{label:"单位","label-width":"50px"}},[e.show_sitem?t("el-input",{attrs:{maxlength:"10",disabled:""},model:{value:e.show_sitem.unit,callback:function(t){e.$set(e.show_sitem,"unit",t)},expression:"show_sitem.unit"}}):e._e()],1)],1),t("el-col",{attrs:{span:17}},[t("el-form-item",{attrs:{label:"商品名称"}},[e.show_sitem?t("el-input",{attrs:{maxlength:"100",disabled:""},model:{value:e.show_sitem.good_name,callback:function(t){e.$set(e.show_sitem,"good_name",t)},expression:"show_sitem.good_name"}}):e._e()],1)],1),t("el-col",{attrs:{span:8}},[t("el-form-item",{attrs:{label:"议价原因",prop:"result_info_id","label-width":"88px"}},[t("abnormal-cause",{attrs:{value:e.ruleForm.result_info_id,placeholder:"议价原因",type:"7",disabled:!1,size:"mini"},on:{searchChange:e.select_change}})],1)],1),t("el-col",{attrs:{span:7}},[t("el-form-item",{attrs:{label:"当前售价"}},[e.show_sitem?t("el-input",{attrs:{maxlength:"20",disabled:""},model:{value:e.show_sitem.sale_price,callback:function(t){e.$set(e.show_sitem,"sale_price",t)},expression:"show_sitem.sale_price"}}):e._e()],1)],1),t("el-col",{attrs:{span:9}},[t("el-form-item",{attrs:{label:"期望售价",prop:"bargain_price","label-width":"88px"}},[t("digital-input",{attrs:{values:e.ruleForm.bargain_price,name:"ruleForm.bargain_price",placeholder:"期望售价",min:0,disabled:!1,max:1e11,position:"right",precision:2,size:"mini",controls:!1,append:"元"},on:{reschange:function(t){return e.number_change(t,"bargain_price")}}})],1)],1),t("el-col",{attrs:{span:18}},[t("el-form-item",{attrs:{label:"议价备注:",prop:"bargain_remark","label-width":"88px"}},[t("el-input",{attrs:{type:"textarea",rows:2,maxlength:"250","show-word-limit":"",placeholder:"议价备注"},model:{value:e.ruleForm.bargain_remark,callback:function(t){e.$set(e.ruleForm,"bargain_remark",t)},expression:"ruleForm.bargain_remark"}})],1)],1),t("el-col",{staticStyle:{"text-align":"right"},attrs:{span:6}},[t("el-button",{attrs:{size:"mini"},on:{click:function(t){e.showModelThis=!1}}},[e._v(e._s(e.isDetail?"关 闭":"取 消"))]),e.isDetail?e._e():t("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.submitForm}},[e._v("保 存 ")])],1)],1)],1)],1)],1)}),[],!1,null,"fbdf6366",null);t.default=r.exports},add0:function(e,t,r){},af2b:function(e,t,r){},afa2:function(e,t,r){},b051:function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=(r("96cf"),{name:"active",props:["showModel","left","right","lang"],data:function(){return{loading:!0,title:"商品阶梯价格",showModelThis:this.showModel}},methods:{closeModel:function(e){this.showModelThis=!1},initForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.loading=!1;case 1:case"end":return t.stop()}}),t)})))()}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis:function(e){e||this.$emit("cancel")}}});r("539d"),r=r("2877"),r=Object(r.a)(n,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("el-dialog",{attrs:{title:e.title,center:!0,align:"left",top:"12vh",width:"1040px","close-on-click-modal":!1,visible:e.showModelThis},on:{close:e.closeModel,"update:visible":function(t){e.showModelThis=t}}},[r("el-card",[r("el-row",{attrs:{gutter:10}},[r("el-col",{attrs:{span:24}},[e.left&&e.left.header&&0<e.left.header.length&&e.right&&e.right.header&&0<e.right.header.length?r("div",[r("div",{staticClass:"list-table clearfix"},[r("div",{staticClass:"left",style:{width:e.lang}},[r("div",{staticClass:"header"},e._l(e.left.header,(function(t,a){return r("div",{key:"lhead"+a,staticClass:"header-item"},[e._v(" "+e._s(t.spec_name)+" ")])})),0),e.left.spec&&0<e.left.spec.length?r("div",{staticClass:"header-body"},e._l(e.left.spec,(function(t,a){return r("div",{key:"lheadrow"+a,staticClass:"header-body-row"},e._l(t,(function(t,a){return r("div",{key:"lheadcol"+a,staticClass:"heder-body-col"},[e._v(" "+e._s(t.spec_value)+" ")])})),0)})),0):e._e()]),r("div",{staticClass:"right",style:{paddingLeft:e.lang}},[r("div",{staticClass:"header"},e._l(e.right.header,(function(t,a){return r("div",{key:"lheadr"+a,staticClass:"header-col clearfix"},[r("div",{staticClass:"header-col-jieti clearfix"},[r("div",{staticClass:"header-col-jieti-title tc clearfix"},[e._v(" 阶梯"+e._s(a+1)+" ")]),r("div",{staticClass:"header-col-jieti-main clearfix"},[r("div",{staticClass:"header-col-item fl tc"},[e._v(e._s(t.num))]),r("div",{staticClass:"header-col-item fl tc"},[e._v(e._s(t.price))])])])])})),0),e.right.spec&&0<e.right.spec.length?r("div",{staticClass:"right-body"},e._l(e.right.spec,(function(t,a){return r("div",{key:"lbodyr"+a,staticClass:"right-body-col"},e._l(t.limit,(function(t,a){return r("div",{key:"lbritem"+a,staticClass:"right-body-col-item clearfix"},[r("div",{staticClass:"right-body-col-item-div fl tc"},[e._v(" "+e._s(t.begin_num)+" ")]),r("div",{staticClass:"right-body-col-item-div fl tc"},[e._v(" "+e._s(t.shop_price)+" ")])])})),0)})),0):e._e()])])]):r("div",{staticClass:"tc"},[r("el-tag",{attrs:{type:"warning"}},[e._v("暂无阶梯价!")])],1)])],1)],1)],1)}),[],!1,null,"5836dba2",null);t.default=r.exports},b0c3:function(e,t,r){"use strict";r("52fb")},b1a7:function(e,t,r){},b1f6:function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=r("5530"),s=(r("96cf"),r("7db0"),r("d3b7"),r("a9e3"),r("f5ed")),i=r("9f53"),o=r("0ee5"),l=r("1b69"),c="admin/",u=function(e,t){return Object(l.a)(c+"getstockgod",e,"post",t)},d=r("2f62"),p=[{type:"expand",_slot_:"expand",label:""},{prop:"good_code",label:"商品编码",width:"160"},{prop:"good_name",label:"商品名称","min-width":"150"},{prop:"specinfo",label:"规格","min-width":"150",_slot_:"specinfo"},{prop:"sort_f",label:"分类",width:"155"},{prop:"brand_name",label:"分类",width:"85"},{prop:"unit",label:"单位",width:"50"},{prop:"usable_stock",label:"当前库存",width:"80"},{prop:"wait_in_stock",label:"待入库",width:"80"},{prop:"wait_out_stock",label:"待出库",width:"80"},{prop:"intra_stock",label:"在途库存",width:"80"}];s={name:"productWeido",mixins:[s.a,i.a],components:{},computed:Object(n.a)(Object(n.a)({},Object(d.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"stockCount"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),data:function(){return{statusList:o.a,loading:!0,showModel:!1,isDetail:!1,modelId:0,parmValue:{type_code:"",page:1,size:15},tableData:[],table:{stripe:!0,border:!0,_defaultHeader_:["setcol"]},pageInfo:{size:15,curr:1,total:0},columns:p}},mounted:function(){this.searchList()},methods:{restSearch:function(){this.pageInfo={size:15,curr:1,total:0},this.parmValue={type_code:"",size:15,curr:1},this.searchList()},searchList:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,t.next=3,u(e.parmValue);case 3:if(!(r=t.sent)||0!==r.code||!r.data){t.next=9;break}e.tableData=r.data.list,e.pageInfo.total=Number(r.data.count),t.next=16;break;case 9:if(r&&100<=r.code&&r.code<=104)return t.next=12,e.logout();t.next=14;break;case 12:t.next=16;break;case 14:e.tableData=[],e.pageInfo.total=0;case 16:e.loading=!1;case 17:case"end":return t.stop()}}),t)})))()}}},i=r("2877"),n=Object(i.a)(s,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"productWeido pagePadding",staticStyle:{padding:"0"}},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?r("div",[r("ex-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{table:e.table,data:e.tableData,columns:e.columns,page:e.pageInfo,size:e.size},on:{"page-curr-change":e.handlePageChange,"page-size-change":e.handleSizeChange,"screen-reset":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()},"screen-submit":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},scopedSlots:e._u([{key:"table-header",fn:function(t){return[r("div",{staticStyle:{width:"100%"}},[r("el-row",{staticStyle:{padding:"0 0 0 80px"}},[r("el-col",{attrs:{span:24}},[r("el-col",{attrs:{span:10}},[r("el-input",{attrs:{size:e.searchSize,maxlength:"40",placeholder:"sku编码"},model:{value:e.parmValue.type_code,callback:function(t){e.$set(e.parmValue,"type_code",t)},expression:"parmValue.type_code"}})],1),r("el-col",{staticStyle:{width:"54px"},attrs:{span:4}},[r("el-button",{staticClass:"fr",attrs:{size:e.searchSize,type:"primary",icon:"el-icon-search",label:""},on:{click:e.searchList}})],1),r("el-col",{staticClass:"mr5",staticStyle:{width:"56px","margin-left":"10px"},attrs:{span:4}},[r("el-button",{staticClass:"fr",attrs:{size:e.searchSize,type:"warning"},on:{click:e.restSearch}},[e._v("重置")])],1)],1)],1)],1)]}},{key:"expand",fn:function(e){return e=e.scope,[r("el-table",{staticStyle:{width:"100%",paddind:"20px"},attrs:{data:e.row.child,border:"",size:"small"}},[r("el-table-column",{attrs:{label:"仓库名称",prop:"wsm_name","show-overflow-tooltip":"",width:"150"}}),r("el-table-column",{attrs:{label:"仓库编码",prop:"wsm_code","show-overflow-tooltip":"",width:"170"}}),r("el-table-column",{attrs:{label:"仓库所在公司名称",prop:"supplierName","show-overflow-tooltip":"",width:"150"}}),r("el-table-column",{attrs:{label:"仓库所在公司编码",prop:"supplierNo","show-overflow-tooltip":"",width:"160"}}),r("el-table-column",{attrs:{label:"仓库业务公司名称",prop:"company","show-overflow-tooltip":"",width:"150"}}),r("el-table-column",{attrs:{label:"仓库业务公司编码",prop:"companyNo","show-overflow-tooltip":"",width:"160"}}),r("el-table-column",{attrs:{label:"当前库存",width:"100","show-overflow-tooltip":"",prop:"total_stock"}}),r("el-table-column",{attrs:{label:"待入库",width:"100","show-overflow-tooltip":"",prop:"wait_in_stock"}}),r("el-table-column",{attrs:{label:"待出库",width:"100","show-overflow-tooltip":"",prop:"wait_out_stock"}}),r("el-table-column",{attrs:{label:"可用库存",width:"100","show-overflow-tooltip":"",prop:"usable_stock"}}),r("el-table-column",{attrs:{label:"在途库存",width:"100","show-overflow-tooltip":"",prop:"intra_stock"}})],1)]}},{key:"specinfo",fn:function(t){return t=t.scope,e._l(t.row.specinfo,(function(t,a){return r("span",{key:a+t.spec_value_id},[e._v(e._s(0===a?"":"-")+e._s(t.spec_name)+"["+e._s(t.spec_value)+"]")])}))}}],null,!1,3638773410)}),r("add-edit",{attrs:{id:e.modelId,sitem:e.sitem,"show-model":e.showModel,"is-detail":e.isDetail},on:{refresh:e.searchList,cancel:function(t){e.showModel=!1}}})],1):r("div",[r("no-auth")],1)])}),[],!1,null,null,null);t.default=n.exports},b32b:function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=r("ade3"),s=(r("ac1f"),r("1276"),r("4de4"),r("d3b7"),r("e9c4"),r("a15b"),r("96cf"),r("9486")),i={name:"DataShare",props:["showModel","id","isDetail"],mixins:[r("9f53").a],data:function(){var e={loading:!1,title:"添加共享规则",showModelThis:this.showModel,select:"1",activeOptions:[],actionList:[],ruleForm:{collect:[],userid:[],touserid:[],togroupid:[],action:"0"},rulesThis:this.rules,rules:{collect:[{required:!0,message:"请选择共享的菜单",trigger:"change"}],userid:[{required:!0,message:"请选择数据源用户",trigger:"change"}],touserid:[{required:!1,message:"请选择数据共享用户",trigger:"change"}],togroupid:[{required:!1,message:"请选择数据共享用户组",trigger:"change"}],action:[{required:!0,message:"请选择数据权限",trigger:"change"}]},dataForm:{name:"",status:""}};return Object(n.a)(e,"activeOptions",[]),Object(n.a)(e,"groupallList",[]),e},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis:function(e){e||this.$emit("cancel")}},methods:{initForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,t.next=3,e.initActionList();case 3:return t.next=5,e.getAllActive();case 5:return t.next=7,e.groupAllActive();case 7:if("add"===e.id)return e.title="添加共享规则",e.rulesThis=e.rules,t.next=12,e.resetForm();t.next=14;break;case 12:t.next=19;break;case 14:return e.isDetail?(e.title="共享规则",e.rulesThis={}):(e.title="修改共享规则",e.rulesThis=e.rules),t.next=17,e.resetForm();case 17:return t.next=19,e.initData();case 19:e.loading=!1;case 20:case"end":return t.stop()}}),t)})))()},initData:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r,a,n,i,o,l;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,s.a.detail({id:e.id});case 2:if(!(r=t.sent)||0!==r.code){t.next=21;break}if(l=r.data,a=l.action_collect,n=l.share_user,i=l.to_user,o=l.to_group,l=l.action,e.ruleForm.collect=a.split(","),e.ruleForm.userid=n.split(","),e.ruleForm.touserid=""===i?[]:i.split(","),e.ruleForm.togroupid=""===o?[]:o.split(","),e.ruleForm.action=l,0===e.ruleForm.touserid.length){t.next=14;break}e.select="1",t.next=21;break;case 14:if(r&&100<=r.code&&r.code<=104)return t.next=17,e.logout();t.next=19;break;case 17:t.next=21;break;case 19:e.select="2",e.$message.warning(r.message);case 21:case"end":return t.stop()}}),t)})))()},initActionList:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r,a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,s.a.actionList({});case 2:if(!(r=t.sent)||0!==r.code){t.next=9;break}a=r.data,a=a.filter((function(e){return e.child&&0<e.child.length})),e.actionList=a,t.next=15;break;case 9:if(r&&100<=r.code&&r.code<=104)return t.next=12,e.logout();t.next=14;break;case 12:t.next=15;break;case 14:e.$message.warning(r.message);case 15:case"end":return t.stop()}}),t)})))()},getAllActive:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,s.a.accountall(e.dataForm);case 2:if(!(r=t.sent)||0!==r.code||!r.data){t.next=7;break}e.activeOptions=r.data,t.next=13;break;case 7:if(r&&100<=r.code&&r.code<=104)return t.next=10,e.logout();t.next=12;break;case 10:t.next=13;break;case 12:e.$message.warning(r.message);case 13:case"end":return t.stop()}}),t)})))()},groupAllActive:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,s.a.groupall(e.dataForm);case 2:if(!(r=t.sent)||0!==r.code||!r.data){t.next=7;break}e.groupallList=r.data,t.next=13;break;case 7:if(r&&100<=r.code&&r.code<=104)return t.next=10,e.logout();t.next=12;break;case 10:t.next=13;break;case 12:e.$message.warning(r.message);case 13:case"end":return t.stop()}}),t)})))()},resetForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$nextTick((function(){e.$refs.ruleForm&&(e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),e.ruleForm={collect:[],userid:[],touserid:[],togroupid:[],action:"0"})}));case 2:case"end":return t.stop()}}),t)})))()},submitForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.ruleForm.validate(function(){var t=Object(a.a)(regeneratorRuntime.mark((function t(r){var a,n,i,o,l;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r){t.next=40;break}if(0===e.ruleForm.touserid.length&&"1"===e.select)return e.$message.warning("请选择数据共享用户"),t.abrupt("return");t.next=4;break;case 4:if(0===e.ruleForm.togroupid.length&&"1"!==e.select)return e.$message.warning("请选择数据共享用户组"),t.abrupt("return");t.next=7;break;case 7:if("1"===e.select&&e.ruleForm.userid[0]===e.ruleForm.touserid[0])return e.$message.warning("源用户不能与分享用户一致!"),t.abrupt("return");t.next=10;break;case 10:if(e.loading=!0,n=JSON.parse(JSON.stringify(e.ruleForm)),i=n.collect,o=n.userid,l=n.touserid,a=n.togroupid,n=n.action,i={id:e.id,collect:i.join(),userid:o.join(),touserid:"1"===e.select?l.join():"",togroupid:"1"===e.select?"":a.join(),action:n},o={},"add"===e.id)return delete i.id,t.next=18,s.a.add(i);t.next=21;break;case 18:o=t.sent,t.next=24;break;case 21:return t.next=23,s.a.update(i);case 23:o=t.sent;case 24:if(e.loading=!1,!o||0!==o.code){t.next=32;break}l="add"===e.id?"添加成功":"修改成功",e.$notify.success({title:l,message:""}),e.showModelThis=!1,e.$emit("refresh"),t.next=38;break;case 32:if(o&&100<=o.code&&o.code<=104)return t.next=35,e.logout();t.next=37;break;case 35:t.next=38;break;case 37:e.$message.warning(o.message);case 38:t.next=42;break;case 40:return t.abrupt("return",!1);case 42:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()}}};r("8ddb"),r=r("2877"),r=Object(r.a)(i,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:e.title,center:!0,align:"left",top:"18vh",width:"900px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)"},on:{"update:visible":function(t){e.showModelThis=t},close:function(t){e.showModelThis=!1}}},[r("el-card",[r("el-row",{attrs:{gutter:10}},[r("el-col",{attrs:{span:24}},[r("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",rules:e.rulesThis,"label-width":"130px"}},[r("el-form-item",{attrs:{label:"共享的菜单数据",prop:"collect"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{multiple:"",filterable:"",clearable:"",disabled:e.isDetail,placeholder:"请选择菜单数据"},model:{value:e.ruleForm.collect,callback:function(t){e.$set(e.ruleForm,"collect",t)},expression:"ruleForm.collect"}},e._l(e.actionList,(function(t,a){return r("el-option-group",{key:t.menu_name+a,attrs:{label:t.menu_name}},e._l(t.child,(function(e,t){return r("el-option",{key:"item"+e.menu_name+t,attrs:{label:e.menu_name,value:e.id}})})),1)})),1)],1),r("el-form-item",{attrs:{label:"数据源用户",prop:"userid"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{multiple:"",filterable:"",clearable:"","multiple-limit":1,placeholder:"请选择数据源用户",disabled:e.isDetail},model:{value:e.ruleForm.userid,callback:function(t){e.$set(e.ruleForm,"userid",t)},expression:"ruleForm.userid"}},e._l(e.activeOptions,(function(t){return r("el-option",{key:"userid"+t.id,attrs:{label:t.nickname,value:t.id,disabled:"1"!==t.status}},[r("span",{staticStyle:{float:"left"}},[e._v(e._s(t.nickname))]),r("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px",padding:"0 25px 0 0"}},[e._v(e._s(t.role_name))])])})),1)],1),r("el-divider"),r("el-form-item",{attrs:{label:"数据共享对象",required:""}},[r("ul",{staticClass:"dataShare-edit"},[r("li",[r("el-select",{attrs:{slot:"prepend",placeholder:"请选择"},slot:"prepend",model:{value:e.select,callback:function(t){e.select=t},expression:"select"}},[r("el-option",{attrs:{label:"用户",value:"1"}}),r("el-option",{attrs:{label:"用户组",value:"2"}})],1)],1),r("li",["1"===e.select?r("el-select",{staticStyle:{width:"100%"},attrs:{multiple:"",filterable:"","multiple-limit":1,clearable:"",placeholder:"请选择用户",disabled:e.isDetail},model:{value:e.ruleForm.touserid,callback:function(t){e.$set(e.ruleForm,"touserid",t)},expression:"ruleForm.touserid"}},e._l(e.activeOptions,(function(t){return r("el-option",{key:"touserid"+t.id,attrs:{label:t.nickname,value:t.id,disabled:"1"!==t.status}},[r("span",{staticStyle:{float:"left"}},[e._v(e._s(t.nickname))]),r("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px",padding:"0 25px 0 0"}},[e._v(e._s(t.role_name))])])})),1):r("el-select",{staticStyle:{width:"100%"},attrs:{multiple:"",filterable:"","multiple-limit":1,clearable:"",placeholder:"请选择用户组",disabled:e.isDetail},model:{value:e.ruleForm.togroupid,callback:function(t){e.$set(e.ruleForm,"togroupid",t)},expression:"ruleForm.togroupid"}},e._l(e.groupallList,(function(e){return r("el-option",{key:"togroupid"+e.id,attrs:{label:e.group_name,value:e.id,disabled:"1"!==e.status}})})),1)],1)])]),r("el-form-item",{attrs:{label:"共享的数据权限",prop:"action"}},[r("el-radio",{attrs:{label:"0"},model:{value:e.ruleForm.action,callback:function(t){e.$set(e.ruleForm,"action",t)},expression:"ruleForm.action"}},[e._v("只读")]),r("el-radio",{attrs:{label:"1"},model:{value:e.ruleForm.action,callback:function(t){e.$set(e.ruleForm,"action",t)},expression:"ruleForm.action"}},[e._v("读写")])],1)],1)],1),r("el-col",{staticStyle:{"text-align":"right"},attrs:{span:24}},[e.isDetail?e._e():r("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("保 存 ")]),r("el-button",{on:{click:function(t){e.showModelThis=!1}}},[e._v(e._s(e.isDetail?"关 闭":"取 消"))])],1)],1)],1)],1)}),[],!1,null,"a74f935c",null);t.default=r.exports},b346:function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=r("5530"),s=(r("96cf"),r("7db0"),r("d3b7"),r("a9e3"),r("1b69")),i={list:function(e,t){return Object(s.a)("admin/loglist",e,"post",t)}},o=r("f5ed"),l=r("2f62"),c=r("9f53");o={name:"oplog",mixins:[o.a,c.a],computed:Object(n.a)(Object(n.a)({},Object(l.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"oplog"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),data:function(){return{loading:!0,showModel:!1,isDetail:!1,modelId:0,parmValue:{role:"",action:"",event:"",startTime:"",endTime:"",name:"",page:1,size:15},tableData:[],table:{stripe:!0,border:!0,_defaultHeader_:["setcol"]},pageInfo:{size:15,curr:1,total:0},columns:[{prop:"name",label:"账号"},{prop:"rolename",label:"角色"},{prop:"info",label:"模块"},{prop:"url",label:"事件"},{prop:"addtime",label:"操作时间",sortable:!0}]}},mounted:function(){this.searchList()},methods:{restSearch:function(){this.pageInfo={size:15,curr:1,total:0},this.parmValue={role:"",action:"",event:"",startTime:"",endTime:"",name:"",page:1,size:15},this.searchList()},timeReturned:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(""!==e.startTime?t.parmValue.startTime=e.startTime:t.parmValue.startTime="",""!==e.endTime?t.parmValue.endTime=e.endTime:t.parmValue.endTime="",""!==t.parmValue.startTime&&""!==t.parmValue.endTime)return t.parmValue.page=1,r.next=6,t.searchList();r.next=6;break;case 6:case"end":return r.stop()}}),r)})))()},openModal:function(e,t){this.showModel=!0,this.modelId=e,this.isDetail=t},changeStatus:function(e,t){var r=this;return Object(a.a)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r.$confirm("确定要改为".concat("1"===t?"禁用":"启用","?"),{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(a.a)(regeneratorRuntime.mark((function a(){var n,s;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return n={roleid:e,status:"1"===t?"0":"1"},a.next=3,i.delete(n);case 3:if(0!==(s=a.sent).code){a.next=9;break}r.$notify.success({title:"状态修改成功",message:""}),r.searchList(),a.next=15;break;case 9:if(s&&100<=s.code&&s.code<=104)return a.next=12,r.logout();a.next=14;break;case 12:a.next=15;break;case 14:r.$message.warning(s.message);case 15:case"end":return a.stop()}}),a)})))).catch((function(){}));case 2:case"end":return n.stop()}}),n)})))()},searchList:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(""!==e.parmValue.startTime&&""===e.parmValue.endTime||""===e.parmValue.startTime&&""!==e.parmValue.endTime)return e.$message.warning("时间区间不完整!"),t.abrupt("return");t.next=3;break;case 3:return e.loading=!0,t.next=6,i.list(e.parmValue);case 6:if(!(r=t.sent)||0!==r.code||!r.data){t.next=12;break}e.tableData=r.data.list,e.pageInfo.total=Number(r.data.count),t.next=19;break;case 12:if(r&&100<=r.code&&r.code<=104)return t.next=15,e.logout();t.next=17;break;case 15:t.next=19;break;case 17:e.tableData=[],e.pageInfo.total=0;case 19:e.loading=!1;case 20:case"end":return t.stop()}}),t)})))()}}},c=r("2877"),n=Object(c.a)(o,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"oplog pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?r("ex-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{table:e.table,data:e.tableData,columns:e.columns,page:e.pageInfo,size:e.size},on:{"page-curr-change":e.handlePageChange,"page-size-change":e.handleSizeChange,"screen-reset":function(t){e.pageInfo.curr=1,e.searchList()},"screen-submit":function(t){e.pageInfo.curr=1,e.searchList()}},scopedSlots:e._u([{key:"table-header",fn:function(t){return[r("div",{staticStyle:{width:"100%"}},[r("el-row",[r("el-col",{staticStyle:{padding:"0 0 10px 80px"},attrs:{span:24}},[r("el-col",{staticStyle:{width:"160px"},attrs:{span:3}},[r("el-input",{attrs:{size:e.searchSize,maxlength:40,placeholder:"用户角色"},model:{value:e.parmValue.role,callback:function(t){e.$set(e.parmValue,"role",t)},expression:"parmValue.role"}})],1),r("el-col",{staticStyle:{width:"170px",padding:"0 0 0 10px"},attrs:{span:3}},[r("el-input",{attrs:{maxlength:40,size:e.searchSize,placeholder:"模块名称"},model:{value:e.parmValue.action,callback:function(t){e.$set(e.parmValue,"action",t)},expression:"parmValue.action"}})],1),r("el-col",{staticStyle:{width:"170px",padding:"0 0 0 10px"},attrs:{span:3}},[r("el-input",{attrs:{maxlength:40,size:e.searchSize,placeholder:"操作事件"},model:{value:e.parmValue.event,callback:function(t){e.$set(e.parmValue,"event",t)},expression:"parmValue.event"}})],1),r("el-col",{staticClass:"fr",staticStyle:{width:"54px"},attrs:{span:3}},[r("el-button",{staticClass:"fr",attrs:{type:"primary",size:e.searchSize,icon:"el-icon-search"},on:{click:e.searchList}})],1)],1),r("el-col",{attrs:{span:24}},[r("el-col",{staticStyle:{width:"322px","padding-right":"0"},attrs:{span:6}},[r("period-date-picker",{attrs:{start:e.parmValue.startTime,end:e.parmValue.endTime,type:1,width:"145px",size:e.searchSize},on:{timeReturned:function(t){return e.timeReturned(t)}}})],1),r("el-col",{staticStyle:{width:"66px",float:"right"},attrs:{span:3}},[r("el-button",{staticStyle:{float:"right"},attrs:{size:e.searchSize,type:"primary"},on:{click:e.searchList}},[e._v(" 刷新 ")])],1),r("el-col",{staticStyle:{width:"66px"},attrs:{span:3}},[r("el-button",{staticClass:"fr",attrs:{type:"warning",size:e.searchSize},on:{click:e.restSearch}},[e._v(" 重置 ")])],1)],1)],1)],1)]}}],null,!1,502036115)}):r("no-auth")],1)}),[],!1,null,"55fe58ee",null);t.default=n.exports},b36d:function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=(r("96cf"),r("b0c0"),r("21fa")),s=r("6bd2"),i=r("cdf1"),o=r("9f53");i={components:{iconDialog:i.default},mixins:[o.a],props:["showModel","id","isDetail","parentIds","level","isAdd","type","formData"],data:function(){return{loading:!1,showIconModel:!1,title:"",btnList:s.a,showModelThis:this.showModel,ruleForm:{},rulesThis:this.rules,rules:{name:[{required:!0,message:"请输入名称",trigger:"blur"},{min:1,max:50,message:"长度在 1 到 50 个字符",trigger:"blur"}],code:[{required:!0,message:"请输入按钮标识编码(用于判断按钮是否显示)",trigger:"change"}],img:[{required:!0,message:"请选择图标",trigger:"blur"}],route:[{required:!0,message:"请输入路由",trigger:"blur"},{min:1,max:50,message:"长度在 1 到 50 个字符",trigger:"blur"}],component:[{required:!0,message:"请输入页面组件路径",trigger:"blur"},{min:1,max:100,message:"长度在 1 到 100 个字符",trigger:"blur"}],weight:[{required:!0,message:"请输入权重,数值越大排名越靠前",trigger:"blur"}],is_show:[{required:!0,message:"请选择状态",trigger:"change"}],is_display:[{required:!0,message:"请选择页面状态",trigger:"change"}]}}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis:function(e){e||this.$emit("cancel")}},methods:{codeChange:function(e){for(var t=0;t<this.btnList.length;t++)if(this.btnList[t].code===e){this.ruleForm.name=this.btnList[t].name;break}},setVal:function(e){this.ruleForm.img=e,this.$refs.ruleForm.validateField("img")},initForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.isAdd)return 1===e.level?e.title="添加一级菜单":2===e.level?e.title="添加二级菜单":e.title="添加按钮",e.loading=!1,e.rulesThis=e.rules,t.next=6,e.resetForm();t.next=8;break;case 6:t.next=11;break;case 8:return e.isDetail?(1===e.level?e.title="一级菜单详情":2===e.level?e.title="二级菜单详情":e.title="按钮详情",e.rulesThis={}):(1===e.level?e.title="修改一级菜单":2===e.level?e.title="修改二级菜单":e.title="修改按钮",e.rulesThis=e.rules),t.next=11,e.initData();case 11:case"end":return t.stop()}}),t)})))()},initData:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r,a,n,s,i,o,l,c,u,d,p,m;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,r="",r=e.isAdd&&0===e.id?"0":e.parentIds,m=e.formData,a=m.menu_name,n=m.menu_img,s=m.menu_route,i=m.is_show,o=m.weight,l=m.status,c=m.menu_url,u=m.menuid,d=m.action_name,p=m.action_code,m=m.is_display,3!==e.level?(e.ruleForm={parentId:e.id+"",parentIds:r+"",name:a+"",code:"",img:n+"",route:s+"",component:1===e.level?"":c+"",menuCategory:"1",type:e.type+"",is_show:i+"",is_display:m+"",weight:parseInt(o+"")},1===e.level&&delete e.ruleForm.parentIds):e.ruleForm={parentId:e.id+"",parentIds:u+"",name:d+"",code:p+"",img:"",route:"",component:"",menuCategory:"2",type:e.type+"",is_show:l+"",weight:"1"},e.loading=!1,t.next=8,e.$nextTick((function(){e.$refs.ruleForm&&e.$refs.ruleForm.clearValidate()}));case 8:case"end":return t.stop()}}),t)})))()},resetForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r="",r=e.isAdd&&0===e.id?"0":e.parentIds,e.ruleForm={parentId:e.id,parentIds:r,name:"",code:"",img:"",route:"",component:"",menuCategory:e.level<3?1:2,type:e.type+"",is_show:"1",is_display:"1",weight:1},t.next=5,e.$nextTick((function(){e.$refs.ruleForm&&e.$refs.ruleForm.clearValidate()}));case 5:case"end":return t.stop()}}),t)})))()},submitForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.loading)return t.abrupt("return",!1);t.next=2;break;case 2:return e.loading=!0,t.next=5,e.$refs.ruleForm.validate(function(){var t=Object(a.a)(regeneratorRuntime.mark((function t(r){var a,s,i,o,l,c,u,d,p,m;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r){t.next=41;break}if(a={},s={},d=e.ruleForm,p=d.name,m=d.img,i=d.route,o=d.is_show,l=d.is_display,c=d.weight,u=d.component,d=d.code,a={id:e.id,pid:e.parentIds,menuid:e.parentIds,name:p,img:m,is_show:o,weight:c,route:i,is_display:l,url:u,action_code:d,status:o},1===e.level?(delete a.pid,delete a.menuid,delete a.url,delete a.action_code,delete a.status):2===e.level?(delete a.menuid,delete a.action_code,delete a.status):(delete a.pid,delete a.img,delete a.is_show,delete a.weight,delete a.route,delete a.is_display,delete a.url),e.isAdd&&delete a.id,e.level<3)return t.next=10,n.a.update(a);t.next=13;break;case 10:s=t.sent,t.next=22;break;case 13:if(e.isAdd)return t.next=16,n.a.actionadd(a);t.next=19;break;case 16:s=t.sent,t.next=22;break;case 19:return t.next=21,n.a.actionedit(a);case 21:s=t.sent;case 22:if(e.loading=!1,!s||0!==s.code){t.next=33;break}e.ruleForm={},p=e.isAdd?"添加成功":"修改成功",e.$notify.success({title:p,message:""}),e.showModelThis=!1,m=e.parentIds,0===e.id&&(m="0"),e.$emit("refresh",e.id,m,e.level),t.next=39;break;case 33:if(s&&100<=s.code&&s.code<=104)return t.next=36,e.logout();t.next=38;break;case 36:t.next=39;break;case 38:e.$message.warning(s.message);case 39:t.next=43;break;case 41:return e.loading=!1,t.abrupt("return",!1);case 43:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 5:case"end":return t.stop()}}),t)})))()}}},r("b4b3"),o=r("2877"),r=Object(o.a)(i,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:e.title,center:!0,align:"left",top:"10vh",width:"750px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)","append-to-body":""},on:{"update:visible":function(t){e.showModelThis=t},close:function(t){e.showModelThis=!1}}},[r("el-card",{staticStyle:{"margin-top":"-20px"}},[r("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"is_show-icon":"",rules:e.rulesThis,"label-width":"100px"}},[r("el-row",[r("el-col",{attrs:{span:24}},[e.level<3?r("el-form-item",{attrs:{label:"名称:",prop:"name"}},[r("el-input",{attrs:{disabled:e.isDetail,maxlength:"10",placeholder:"例如:用户管理"},model:{value:e.ruleForm.name,callback:function(t){e.$set(e.ruleForm,"name",t)},expression:"ruleForm.name"}})],1):e._e(),3===e.level?r("el-form-item",{attrs:{label:"按钮标识:",prop:"code"}},[r("el-select",{attrs:{placeholder:"请选择按钮标识",clearable:"",filterable:"",disabled:e.isDetail},on:{change:e.codeChange},model:{value:e.ruleForm.code,callback:function(t){e.$set(e.ruleForm,"code",t)},expression:"ruleForm.code"}},e._l(e.btnList,(function(e){return r("el-option",{key:e.code,attrs:{label:e.name,value:e.code}})})),1)],1):e._e(),r("el-row",[e.level<3?r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"路由:",prop:"route"}},[r("el-input",{attrs:{disabled:e.isDetail,maxlength:"100",placeholder:"例如:user"},model:{value:e.ruleForm.route,callback:function(t){e.$set(e.ruleForm,"route",t)},expression:"ruleForm.route"}})],1)],1):e._e(),e.level<3?r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"图标:",prop:"img"}},[r("el-row",{attrs:{gutter:10}},[e.ruleForm.img?r("el-col",{staticStyle:{width:"45px"},attrs:{span:3}},[r("div",{staticClass:"g-block",on:{click:function(t){e.showIconModel=!0}}},[r("i",{class:e.ruleForm.img})])]):e._e(),e.ruleForm.img?e._e():r("el-col",{attrs:{span:7}},[r("el-button",{attrs:{type:"warning",size:"mini"},on:{click:function(t){e.showIconModel=!0}}},[e._v(" 选择图标 ")])],1)],1),r("iconDialog",{attrs:{"show-model":e.showIconModel},on:{setVal:e.setVal,cancel:function(t){e.showIconModel=!1}}})],1)],1):e._e()],1),2===e.level?r("el-form-item",{attrs:{label:"页面路径:",prop:"component"}},[r("el-input",{attrs:{disabled:e.isDetail,maxlength:"100",placeholder:"例如:park/user"},model:{value:e.ruleForm.component,callback:function(t){e.$set(e.ruleForm,"component",t)},expression:"ruleForm.component"}},[r("template",{slot:"prepend"},[e._v("views/")])],2)],1):e._e(),r("el-row",[r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"状态:",prop:"is_show"}},[r("el-radio",{attrs:{label:"1",disabled:e.isDetail},model:{value:e.ruleForm.is_show,callback:function(t){e.$set(e.ruleForm,"is_show",t)},expression:"ruleForm.is_show"}},[e._v(" 启用 ")]),r("el-radio",{attrs:{label:"0",disabled:e.isDetail},model:{value:e.ruleForm.is_show,callback:function(t){e.$set(e.ruleForm,"is_show",t)},expression:"ruleForm.is_show"}},[e._v(" 禁用 ")])],1)],1),r("el-col",{attrs:{span:12}},[e.level<3?r("el-form-item",{attrs:{label:"页面状态:",prop:"is_display"}},[r("el-radio",{attrs:{label:"1",disabled:e.isDetail},model:{value:e.ruleForm.is_display,callback:function(t){e.$set(e.ruleForm,"is_display",t)},expression:"ruleForm.is_display"}},[e._v(" 显示 ")]),r("el-radio",{attrs:{label:"0",disabled:e.isDetail},model:{value:e.ruleForm.is_display,callback:function(t){e.$set(e.ruleForm,"is_display",t)},expression:"ruleForm.is_display"}},[e._v(" 隐藏 ")])],1):e._e()],1)],1),e.level<3?r("el-form-item",{attrs:{label:"排序权重:",prop:"weight"}},[r("el-row",{attrs:{gutter:10}},[r("el-col",{staticStyle:{padding:"0"},attrs:{span:16}},[r("el-input",{attrs:{type:"number",maxlength:"10",disabled:e.isDetail},model:{value:e.ruleForm.weight,callback:function(t){e.$set(e.ruleForm,"weight",e._n(t))},expression:"ruleForm.weight"}})],1),r("el-col",{attrs:{span:7}},[r("el-tag",{attrs:{type:"danger"}},[e._v("数值越大排名越靠前")])],1)],1)],1):e._e()],1)],1)],1),r("el-col",{staticStyle:{"text-align":"right",padding:"0 0 10px 0"},attrs:{span:24}},[e.isDetail?e._e():r("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v(" 保 存 ")]),r("el-button",{on:{click:function(t){e.showModelThis=!1}}},[e._v(e._s(e.isDetail?"关 闭":"取 消"))])],1)],1)],1)}),[],!1,null,"7ac358cf",null);t.default=r.exports},b386:function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=(r("96cf"),{name:"handover",props:["showModel","id","isDetail","sitem"],components:{addEditForm:r("e1a4").default},data:function(){return{sitem:null,title:"",showModelThis:this.showModel}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis:function(e){e||this.$emit("cancel")}},methods:{initForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.loading=!0,"add"===e.id?(e.title="新建售后申请",e.rulesThis=e.rules):e.isDetail?e.rulesThis={}:e.rulesThis=e.rules,e.loading=!1;case 3:case"end":return t.stop()}}),t)})))()},handClick:function(e){this.showModelThis=e},refresh:function(e){this.showModelThis=e,this.$emit("refresh",!0)}}});r=r("2877"),r=Object(r.a)(n,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("el-dialog",{attrs:{title:"新建售后申请",center:!0,align:"left",top:"22vh",width:"1000px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)"},on:{"update:visible":function(t){e.showModelThis=t},close:function(t){e.showModelThis=!1}}},[t("el-card",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{"margin-top":"-20px"}},[e.showModel?t("add-edit-form",{attrs:{id:e.id,sitem:e.sitem,"show-model":e.showModel,"is-detail":e.isDetail},on:{closeModel:e.handClick,refresh:e.refresh}}):e._e()],1)],1)}),[],!1,null,"114cd703",null);t.default=r.exports},b4b3:function(e,t,r){"use strict";r("5bb4")},b4fa:function(e,t,r){"use strict";r("ccd3")},b506:function(e,t,r){},b582:function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=r("ade3"),s=r("5530"),i=(r("96cf"),r("7db0"),r("d3b7"),r("a9e3"),r("f5ed")),o=r("9f53"),l=r("e5ab"),c=r("ebea"),u=r("2f62");i={name:"purchaseOrder",mixins:[i.a,o.a],components:{},computed:Object(s.a)(Object(s.a)({},Object(u.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"purchaseOrder"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),data:function(){var e={sitem:null,select:"1",input:"",timeOBJ:{start:"",end:""},options:["创建时间","最晚入库时间"],sselect:"创建时间",statusOptions:c.c,order_type_options:c.b,loading:!1,showModel:!1,isDetail:!1,modelId:0,wsm_code:[],wsm_supplierNo:[],parmValue:{bk_code:"",wsm_in_code:"",cgdNo:"",apply_name:"",good_name:"",good_code:"",status:"",wsm_code:"",start:"",end:"",last_start:"",last_end:"",page:1,size:15,supplierNo:"",wsm_supplierNo:""},tableData:[],passwordModel:!1,passwordModelId:0,isPasswordDetail:!1};return Object(n.a)(e,"tableData",[]),Object(n.a)(e,"table",{stripe:!0,border:!0,_defaultHeader_:["setcol"]}),Object(n.a)(e,"pageInfo",{size:15,curr:1,total:0}),Object(n.a)(e,"columns",c.a),e},mounted:function(){this.searchList()},methods:{restSearch:function(){this.sselect="创建时间",this.select="1",this.input="",this.wsm_code=[],this.wsm_supplierNo=[],this.timeOBJ={start:"",end:""},this.parmValue={bk_code:"",wsm_in_code:"",cgdNo:"",apply_name:"",good_name:"",good_code:"",status:"",wsm_code:"",start:"",end:"",last_start:"",last_end:"",page:1,size:15},this.pageInfo={size:15,curr:1,total:0},this.searchList()},handleClick:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t.sselect=e,t.parmValue.start="创建时间"===e?t.timeOBJ.start:"",t.parmValue.end="创建时间"===e?t.timeOBJ.end:"",t.parmValue.last_start="创建时间"!==e?t.timeOBJ.start:"",t.parmValue.last_end="创建时间"!==e?t.timeOBJ.end:"",""!==t.timeOBJ.start&&""===t.timeOBJ.end||""===t.timeOBJ.start&&""!==t.timeOBJ.end){r.next=10;break}return t.parmValue.page=1,t.pageInfo.curr=1,r.next=10,t.searchList();case 10:case"end":return r.stop()}}),r)})))()},supplierChange:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return e&&e.id?(t.parmValue.wsm_supplierNo=e.code,t.wsm_supplierNo=[e.code]):(t.parmValue.wsm_supplierNo="",t.wsm_supplierNo=[]),t.parmValue.wsm_code="",t.wsm_code=[],t.parmValue.page=1,t.pageInfo.curr=1,r.next=7,t.searchList();case 7:case"end":return r.stop()}}),r)})))()},stockChange:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return e&&e.id?(t.parmValue.wsm_code=e.code,t.wsm_code=[e.code]):(t.parmValue.wsm_code="",t.wsm_code=[]),t.parmValue.page=1,t.pageInfo.curr=1,r.next=6,t.searchList();case 6:case"end":return r.stop()}}),r)})))()},searchList:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(""!==e.timeOBJ.start&&""===e.timeOBJ.end||""===e.timeOBJ.start&&""!==e.timeOBJ.end)return e.$message.warning("时间区间不完整!"),t.abrupt("return");t.next=3;break;case 3:return e.loading=!0,e.parmValue.cgdNo="1"===e.select?e.input:"",e.parmValue.wsm_in_code="2"===e.select?e.input:"",e.parmValue.bk_code="3"===e.select?e.input:"",e.parmValue.good_code="4"===e.select?e.input:"",e.parmValue.good_name="5"===e.select?e.input:"",e.parmValue.apply_name="6"===e.select?e.input:"",e.parmValue.supplierNo="7"===e.select?e.input:"",t.next=13,l.a.list(e.parmValue);case 13:if(!(r=t.sent)||0!==r.code||!r.data){t.next=19;break}e.tableData=r.data.list,e.pageInfo.total=Number(r.data.count),t.next=26;break;case 19:if(r&&100<=r.code&&r.code<=104)return t.next=22,e.logout();t.next=24;break;case 22:t.next=26;break;case 24:e.tableData=[],e.pageInfo.total=0;case 26:e.loading=!1;case 27:case"end":return t.stop()}}),t)})))()},handleTime:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return""!==e.startTime?t.timeOBJ.start=e.startTime:t.timeOBJ.start="",""!==e.endTime?t.timeOBJ.end=e.endTime:t.timeOBJ.end="",r.next=4,t.handleClick(t.sselect);case 4:case"end":return r.stop()}}),r)})))()}}},r("773a"),o=r("2877"),s=Object(o.a)(i,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"purchaseOrder pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?r("div",[r("ex-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{table:e.table,data:e.tableData,columns:e.columns,page:e.pageInfo,size:e.size},on:{"page-curr-change":e.handlePageChange,"page-size-change":e.handleSizeChange,"screen-reset":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()},"screen-submit":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},scopedSlots:e._u([{key:"table-header",fn:function(t){return[r("div",{staticStyle:{width:"100%"}},[r("el-row",{staticStyle:{padding:"0 0 0 80px"}},[r("el-col",{staticStyle:{width:"150px"},attrs:{span:4}},[r("el-select",{staticStyle:{width:"100%"},attrs:{size:e.searchSize,filterable:"",clearable:"",placeholder:"采购单状态"},on:{change:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.parmValue.status,callback:function(t){e.$set(e.parmValue,"status",t)},expression:"parmValue.status"}},e._l(e.statusOptions,(function(e){return r("el-option",{key:"status"+e.value,attrs:{label:e.label,value:e.value}})})),1)],1),r("el-col",{staticStyle:{width:"370px",padding:"0 0 0 10px"},attrs:{span:4}},[r("search-supplier",{attrs:{size:e.searchSize,value:e.wsm_supplierNo,placeholder:"入库公司名称",disabled:!1,isDetail:!1},on:{searchChange:e.supplierChange}})],1),r("el-col",{staticStyle:{width:"220px",padding:"0 0 0 10px"},attrs:{span:4}},[r("search-stock",{attrs:{size:e.searchSize,value:e.wsm_code,placeholder:"入库仓库名称",disabled:!1,isDetail:!1,isRelation:!0,companyCode:e.parmValue.wsm_supplierNo},on:{searchChange:e.stockChange}})],1),r("el-col",{staticStyle:{width:"66px",float:"right"},attrs:{span:3}},[r("el-button",{staticStyle:{float:"right","margin-left":"5px"},attrs:{size:e.searchSize,type:"primary"},on:{click:e.searchList}},[e._v(" 刷新 ")])],1)],1),r("el-row",{staticStyle:{padding:"10px 0 0 0"}},[r("el-col",{staticStyle:{width:"120px"},attrs:{span:4}},[r("el-dropdown",{attrs:{size:e.searchSize},on:{command:function(t){return e.handleClick(t)}}},[r("el-button",{staticStyle:{width:"120px"},attrs:{size:e.searchSize}},[e._v(" "+e._s(e.sselect)+" "),r("i",{staticClass:"el-icon-arrow-down el-icon--right",attrs:{size:e.searchSize}})]),r("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},e._l(e.options,(function(t){return r("el-dropdown-item",{key:t,attrs:{command:t}},[e._v(e._s(t))])})),1)],1)],1),r("el-col",{staticStyle:{width:"303px",padding:"0 0 0 10px"},attrs:{span:6}},[r("period-date-picker",{attrs:{type:1,width:"135px",size:e.searchSize,start:e.timeOBJ.start,end:e.timeOBJ.end},on:{timeReturned:e.handleTime}})],1),r("el-col",{staticStyle:{width:"400px",padding:"0 0 0 10px"},attrs:{span:6}},[r("el-input",{staticClass:"input-with-select",attrs:{clearable:"",placeholder:"关键字",maxlength:"40",size:e.searchSize},on:{blur:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.input,callback:function(t){e.input=t},expression:"input"}},[r("el-select",{staticStyle:{width:"125px"},attrs:{slot:"prepend",placeholder:"关键字类型"},on:{change:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},slot:"prepend",model:{value:e.select,callback:function(t){e.select=t},expression:"select"}},[r("el-option",{attrs:{label:"采购单编号",value:"1"}}),r("el-option",{attrs:{label:"入库单编号",value:"2"}}),r("el-option",{attrs:{label:"备库编号",value:"3"}}),r("el-option",{attrs:{label:"商品属性编号",value:"4"}}),r("el-option",{attrs:{label:"产品名称",value:"5"}}),r("el-option",{attrs:{label:"申请人",value:"6"}}),r("el-option",{attrs:{label:"采购供应商编号",value:"7"}})],1)],1)],1),r("el-col",{staticStyle:{width:"66px",float:"right"},attrs:{span:4}},[r("el-button",{staticClass:"fr",attrs:{type:"warning",size:e.searchSize},on:{click:e.restSearch}},[e._v(" 重置 ")])],1)],1)],1)]}},{key:"good_name",fn:function(t){return t=t.scope,[r("span",[e._v(e._s(t.row.good_name))]),e._l(t.row.speclist,(function(t,a){return r("span",{key:t.spec_id+a},[e._v(" "+e._s(0===a?"__":"--")+e._s(t.spec_name)+"["+e._s(t.spec_value)+"] ")])}))]}},{key:"status",fn:function(t){var a=t.scope;return[r("el-tag",{attrs:{size:e.tablebtnSize},domProps:{textContent:e._s((e.statusOptions.find((function(e){return e.value==a.row.status}))||{}).label||"--")}})]}},{key:"order_type",fn:function(t){var a=t.scope;return[r("el-tag",{attrs:{size:e.tablebtnSize},domProps:{textContent:e._s((e.order_type_options.find((function(e){return e.value==a.row.order_type}))||{}).label||"--")}})]}},{key:"operation",fn:function(t){var a=t.scope;return[e.powers.some((function(e){return"007"==e}))?r("el-tooltip",{attrs:{effect:"dark",content:"详情",placement:"top"}},[r("i",{staticClass:"el-icon-view tb-icon",on:{click:function(t){return e.routeGoto("purchaseOrderDetail",{id:a.row.cgdNo})}}})]):e._e()]}}],null,!1,3721394199)})],1):r("div",[r("no-auth")],1)])}),[],!1,null,"da249c56",null);t.default=s.exports},b5b8:function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=r("5530"),s=(r("96cf"),r("7db0"),r("d3b7"),r("e9c4"),r("f1ed")),i=r("9f53"),o=r("2f62"),l=r("e470");i={name:"goodsCostDetail",mixins:[i.a],components:{baseForm:l.default},computed:Object(n.a)(Object(n.a)({},Object(o.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"goodsCostDetail"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),data:function(){return{statusList:[],size:"small",activeTabs:"1",activeNames:["0","1"],newTime:"",loading:!1,queryType:"",queryId:"",status:"",sitem:null}},mounted:function(){this.initForm()},methods:{initForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r,a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a=e.$route.query,r=a.id,a=a.type,e.queryId=r,e.queryType=a,e.activeTabs="add"===a?"0":"1",e.loading=!0,"add"!==e.queryType){t.next=10;break}e.sitem={},e.getNewTime(),t.next=12;break;case 10:return t.next=12,e.initData();case 12:e.loading=!1;case 13:case"end":return t.stop()}}),t)})))()},examForm:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){var a;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t.loading){r.next=6;break}return a="",a="1"===e.state?"1":"0"===t.status?"6":"2"===t.status?"4":"3"===t.status?"5":"",r.next=6,t.setstatus(a,"提交采购部门审核",e.remark);case 6:case"end":return r.stop()}}),r)})))()},setstatus:function(e,t,r){var n=this;return Object(a.a)(regeneratorRuntime.mark((function i(){return regeneratorRuntime.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,n.$confirm("确定要".concat(t,"?"),{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(a.a)(regeneratorRuntime.mark((function t(){var a,i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a={spuCode:n.queryId,status:e,remark:r},t.next=3,s.a.status(a);case 3:if((i=t.sent)&&0===i.code)return n.$notify.success({title:"提交成功!",message:""}),t.next=8,n.initForm();t.next=10;break;case 8:t.next=16;break;case 10:if(i&&100<=i.code&&i.code<=104)return t.next=13,n.logout();t.next=15;break;case 13:t.next=16;break;case 15:n.$message.warning(i.message);case 16:case"end":return t.stop()}}),t)})))).catch((function(){}));case 2:case"end":return i.stop()}}),i)})))()},handleClick:function(e){},refresh:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.routeReGoto("goodsCost",{});case 2:case"end":return e.stop()}}),e)})))()},initData:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r,a,n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,t.next=3,s.a.detail({spuCode:e.queryId});case 3:if(n=t.sent,r=n.code,a=n.message,n=n.data,e.loading=!1,0!==r){t.next=15;break}e.sitem=JSON.parse(JSON.stringify(n)),n=e.sitem.status,e.status=n,e.getNewTime(),t.next=21;break;case 15:if(100<=r&&r<=104)return t.next=18,e.logout();t.next=20;break;case 18:t.next=21;break;case 20:e.$message.warning(a);case 21:case"end":return t.stop()}}),t)})))()},getNewTime:function(){this.newTime=(new Date).valueOf()}}},r("e405"),l=r("2877"),n=Object(l.a)(i,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("div",{staticClass:"goodsCostDetail"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"007"==e}))?t("div",{staticClass:"goodsCostDetail-main"},[t("el-tabs",{model:{value:e.activeTabs,callback:function(t){e.activeTabs=t},expression:"activeTabs"}},["add"===e.queryType?t("el-tab-pane",{attrs:{label:"新建商品成本",name:"0"}},[""!==e.newTime?t("base-form",{attrs:{type:e.queryType,id:e.queryId,newTime:e.newTime,sitem:e.sitem},on:{refresh:e.refresh}}):e._e()],1):e._e(),"add"!==e.queryType?t("el-tab-pane",{attrs:{label:"商品成本详情",name:"1"}},[t("el-collapse",{staticStyle:{margin:"-18px 0 0 0"},model:{value:e.activeNames,callback:function(t){e.activeNames=t},expression:"activeNames"}},[t("el-collapse-item",{attrs:{title:"商品成本详情",name:"0"}},[""!==e.newTime?t("base-form",{attrs:{type:e.queryType,id:e.queryId,newTime:e.newTime,sitem:e.sitem},on:{refresh:e.refresh}}):e._e()],1),"0"!==e.status&&"2"!==e.status&&"3"!==e.status||"view"!==e.queryType||!e.powers.some((function(e){return"036"==e}))?e._e():t("el-collapse-item",{attrs:{title:"采购部门审批",name:"1"}},[t("exam-form",{attrs:{statusList:e.statusList,newTime:e.newTime,disabled:!1,isMust:!1},on:{searchChange:e.examForm}})],1)],1)],1):e._e(),"add"!==e.queryType?t("el-tab-pane",{attrs:{label:"审批记录",name:"2"}},[""!==e.newTime?t("process-time-line",{attrs:{newTime:e.newTime,type:"SPCB",orderCode:e.queryId}}):e._e()],1):e._e()],1)],1):t("div",[t("no-auth")],1)])}),[],!1,null,"5d3e0ce8",null);t.default=n.exports},b5d3:function(e,t,r){"use strict";var a=r("1b69"),n="admin/";t.a={list:function(e,t){return Object(a.a)(n+"Resigninfolist",e,"post",t)},detail:function(e,t){return Object(a.a)(n+"Resigninfoselect",e,"post",t)},update:function(e,t){return Object(a.a)(n+"Resigninfoedit",e,"post",t)},add:function(e,t){return Object(a.a)(n+"Resigninfocreate",e,"post",t)},delete:function(e,t){return Object(a.a)(n+"Resigninfodel",e,"post",t)},status:function(e,t){return Object(a.a)(n+"Resigninfostatu",e,"post",t)},getRole:function(e,t){return Object(a.a)(n+"roleall",e,"post",t)},updateStatus:function(e,t){return Object(a.a)(n+"Resigninfostatu",e,"post",t)}}},b651:function(e,t,r){"use strict";r.d(t,"a",(function(){return a})),r.d(t,"b",(function(){return n}));var a=[{prop:"orderCode",label:"订单编号",fixed:"left",width:"152px"},{prop:"diff_weight",label:"工差总重量",width:"125px"},{prop:"diff_price",label:"工差总金额",width:"125px"},{prop:"gold_price",label:"金价",width:"125px"},{prop:"good_code",label:"商品编号",width:"160px"},{prop:"good_name",label:"商品名称","min-width":"160px"},{prop:"class_cat",label:"商品分类",width:"160px"},{prop:"addtime",label:"创建时间",width:"140px"},{prop:"",label:"操作",fixed:"right",_noset_:!0,width:"50px",_slot_:"operation"}],n=[{prop:"orderCode",label:"订单编号",span:6},{prop:"order_type",label:"工差单状态",_slot_:"order_type",span:6},{prop:"status",label:"工差单状态",_slot_:"status",span:6},{prop:"addtime",label:"创建时间",span:6},{prop:"diff_weight",label:"工差总重量",span:6},{prop:"diff_price",label:"工差总金额",span:6},{prop:"gold_price",label:"金价",span:6},{prop:"is_act",label:"客户反馈",_slot_:"is_act",span:6},{prop:"customer_remark",label:"客户意愿",_slot_:"customer_remark",span:6},{prop:"remark",label:"业务审核备注",span:18}]},b656:function(e,t,r){"use strict";r("e506")},b684:function(e,t,r){"use strict";r("03f1")},b6cb:function(e,t,r){},b747:function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=(r("c740"),r("a434"),r("d81d"),r("e9c4"),r("d3b7"),r("159b"),r("b0c0"),r("ac1f"),r("1276"),r("96cf"),r("da35")),s={name:"exam-form",props:["size","statusList","disabled","isMust","labelWidth","id","spuCode","sitem"],components:{showVoucherModel:r("86e2").a},data:function(){function e(e,t,r){e.required&&""===t?r(new Error("不能为空!")):r()}return{loading:!1,showVoucher:!1,video_url:"",img_url:"",other_url:"",options:[{value:"1",label:"视频"},{value:"2",label:"图片"},{value:"3",label:"其他"}],status_options:[{value:"1",label:"启用"},{value:"0",label:"禁用"}],showModelThis:this.showModel,pickerOptions:{disabledDate:function(e){return e.getTime()<Date.now()-864e5}},costshowModel:!1,costmodelIndex:"",costsitem:{},ruleForm:{skuCode:"",proof_type:"1",proof_url:""},rulesThis:this.rules,rules:{proof_type:[{required:!0,message:"请选择审核状态",trigger:"change"}],proof_url:[{required:!0,message:"请上传凭证文件",trigger:"blur,change"}],rebut:[{required:!0,message:"请选择驳回节点",trigger:"change"}],remark:[{required:!0,message:"请输入审核备注",trigger:"blur"},{min:1,max:250,message:"长度在 1 到 250 个字符",trigger:"blur"}]},addrForm:{good_ladder:[]},addrRules:{min_num:[{required:!0,validator:function(e,t,r){e=e.required,e&&""===t?r(new Error("不能为空!")):!e||"0"!==t&&"0."!==t&&"0.0"!==t&&"0.00"!==t&&"0.000"!==t?r():r(new Error("不能为零!"))},trigger:"blur"}],sale_price:[{required:!0,trigger:"blur",validator:e}],market_price:[{required:!0,validator:e,trigger:"blur"}],market_platform:[{required:!0,message:"对比平台不能为空",trigger:"blur"}],status:[{required:!0,message:"状态不能为空",trigger:"change"}]}}},watch:{isDetail:function(e,t){this.isDetail!==e&&(this.options=[],this.selectLoading=!1)},newTime:function(e){e&&this.initForm()}},mounted:function(){this.initForm()},methods:{initForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,t.next=4,e.resetForm();case 4:e.rulesThis=e.rules,e.loading=!1;case 6:case"end":return t.stop()}}),t)})))()},openCostEdit:function(e){-1!==this.addrForm.good_ladder.findIndex((function(e){return!0===e.edit}))?this.$message.warning("当前已有阶梯售价在编辑,请保存后再试!"):-1===e?this.addrForm.good_ladder.push({edit:!0,min_num:"",new_sale_price:"",sale_price:"",market_price:"",market_platform:"",status:"1"}):(this.addrForm.good_ladder[e].edit=!0,this.addrForm.good_ladder[e].newTime=(new Date).valueOf()+"")},get_new:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){var a,s,i,o;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a=t.addrForm.good_ladder[e].min_num,t.addrForm.good_ladder[e].search_loading=!0,r.next=4,n.a.goodupprice({min_num:a,spuCode:t.spuCode});case 4:return a=r.sent,o=a.code,s=a.data,i=a.message,o={isok:o,price:0===o?s.sale_price:"0",message:i},t.addrForm.good_ladder[e].search_loading=!1,r.abrupt("return",o);case 11:case"end":return r.stop()}}),r)})))()},checkRow:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t.$refs.addrForm.validate(function(){var r=Object(a.a)(regeneratorRuntime.mark((function r(a){var n,s,i,o;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!a){r.next=27;break}if(t.addrForm.good_ladder[e].search_loading){r.next=25;break}if(n=t.addrForm.good_ladder[e].min_num,-1!==t.addrForm.good_ladder.findIndex((function(e){return!0!==e.edit&&e.min_num+""==n+""})))return t.$message.warning("当前已有相同起订量的销售价!"),r.abrupt("return");r.next=7;break;case 7:return r.next=9,t.get_new(e);case 9:if(o=r.sent,s=o.isok,i=o.price,o=o.message,0!==s){r.next=18;break}t.addrForm.good_ladder[e].new_sale_price=i,t.addrForm.good_ladder[e].edit=!1,r.next=25;break;case 18:if(100<=s&&s<=104)return r.next=21,t.logout();r.next=23;break;case 21:r.next=25;break;case 23:t.addrForm.good_ladder[e].new_sale_price=i,t.$message.warning(o);case 25:r.next=29;break;case 27:return r.abrupt("return",!1);case 29:case"end":return r.stop()}}),r)})));return function(e){return r.apply(this,arguments)}}());case 2:case"end":return r.stop()}}),r)})))()},openCostEditDelete:function(e){this.addrForm.good_ladder.splice(e,1)},num_change:function(e,t,r){var n=this;return Object(a.a)(regeneratorRuntime.mark((function a(){var s,i,o,l;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(n.addrForm.good_ladder[r][t]=e+""||"0","min_num"!==t){a.next=25;break}if(""!==(s=n.addrForm.good_ladder[r].min_num)&&"0"!==s){a.next=7;break}n.addrForm.good_ladder[r].new_sale_price="0",a.next=25;break;case 7:if(n.addrForm.good_ladder[r].search_loading){a.next=25;break}return a.next=10,n.get_new(r);case 10:if(s=a.sent,i=s.isok,o=s.price,l=s.message,0!==i){a.next=18;break}n.addrForm.good_ladder[r].new_sale_price=o,a.next=25;break;case 18:if(100<=i&&i<=104)return a.next=21,n.logout();a.next=23;break;case 21:a.next=25;break;case 23:n.addrForm.good_ladder[r].new_sale_price=o,n.$message.warning(l);case 25:case"end":return a.stop()}}),a)})))()},resetForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$nextTick(Object(a.a)(regeneratorRuntime.mark((function t(){var r,a,n,s,i,o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.$refs.ruleForm||!e.$refs.addrForm){t.next=45;break}e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),e.$refs.addrForm.resetFields(),e.$refs.addrForm.clearValidate(),r=e.sitem,n=r.proof,(r=r.ladderlist).map((function(e){return e.search_loading=!1,e.new_sale_price="0",e.newTime=(new Date).valueOf()+"",e.edit=!1,e})),e.ruleForm={skuCode:e.id,proof_type:n&&n.proof_type?n.proof_type:"1",proof_url:n&&n.proof_url?n.proof_url:""},e.addrForm={good_ladder:r&&0<r.length?JSON.parse(JSON.stringify(r)):[]},t.t0=e.ruleForm.proof_type,t.next="1"===t.t0?12:"2"===t.t0?14:"3"===t.t0?16:18;break;case 12:return e.video_url=e.ruleForm.proof_url,t.abrupt("break",19);case 14:return e.img_url=e.ruleForm.proof_url,t.abrupt("break",19);case 16:return e.other_url=e.ruleForm.proof_url,t.abrupt("break",19);case 18:e.video_url=e.ruleForm.proof_url;case 19:e.$refs.ruleForm.validateField("proof_url"),a=0;case 21:if(a<e.addrForm.good_ladder.length)return t.next=24,e.get_new(a);t.next=45;break;case 24:if(n=t.sent,s=n.isok,i=n.price,o=n.message,0!==s){t.next=33;break}e.addrForm.good_ladder[a].new_sale_price=i,e.addrForm.good_ladder[a].edit=!1,t.next=42;break;case 33:if(100<=s&&s<=104)return t.next=36,e.logout();t.next=38;break;case 36:t.next=42;break;case 38:e.addrForm.good_ladder[a].new_sale_price=i,e.addrForm.good_ladder[a].edit=!0,e.addrForm.good_ladder[a].newTime=(new Date).valueOf()+"",e.$message.warning(o);case 42:a++,t.next=21;break;case 45:case"end":return t.stop()}}),t)}))));case 2:case"end":return t.stop()}}),t)})))()},submitForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.ruleForm.validate(function(){var t=Object(a.a)(regeneratorRuntime.mark((function t(r){var a,s,i,o,l,c,u,d,p;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r){t.next=62;break}if(e.loading=!0,a=JSON.parse(JSON.stringify(e.ruleForm)),0===e.addrForm.good_ladder.length)return e.$message.warning("至少添加一条销售价信息!"),e.loading=!1,t.abrupt("return");t.next=7;break;case 7:if(s=JSON.parse(JSON.stringify(e.addrForm.good_ladder)),i=!1,s.forEach((function(e){e.edit&&(i=!0)})),i)return e.$message.warning("请保存阶梯售价!"),e.loading=!1,t.abrupt("return");t.next=14;break;case 14:o=!0,l=0;case 16:if(l<e.addrForm.good_ladder)return e.addrForm.good_ladder[l].search_loading=!0,t.next=20,e.get_new(l);t.next=40;break;case 20:if(u=t.sent,c=u.isok,u=u.price,0!==c){t.next=28;break}e.addrForm.good_ladder[l].new_sale_price=u,e.addrForm.good_ladder[l].edit=!1,t.next=37;break;case 28:if(100<=c&&c<=104)return t.next=31,e.logout();t.next=33;break;case 31:t.next=37;break;case 33:o=!1,e.addrForm.good_ladder[l].new_sale_price=u,e.addrForm.good_ladder[l].edit=!0,e.addrForm.good_ladder[l].newTime=(new Date).valueOf()+"";case 37:l++,t.next=16;break;case 40:return o||(e.$message.warning("阶梯售价未满足成本最低起订量!"),e.loading=!1),d=[],s.forEach((function(e){var t,r=JSON.parse(JSON.stringify(e));for(t in r)r[t]+="";delete r.index,d.push(r)})),a.good_ladder=d,a.skuCode=e.id,t.next=47,n.a.ladderOne(a);case 47:if(p=t.sent,e.loading=!1,!p||0!==p.code){t.next=54;break}e.$notify.success({title:"信息提交成功",message:""}),e.$emit("resSuccess",!0),t.next=60;break;case 54:if(p&&100<=p.code&&p.code<=104)return t.next=57,e.logout();t.next=59;break;case 57:t.next=60;break;case 59:e.$message.warning(p.message);case 60:t.next=64;break;case 62:return t.abrupt("return",!1);case 64:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()},resvoucher:function(e){var t=e.proof_type,r=e.proof_url;switch(this.ruleForm.proof_type=t||"1",this.ruleForm.proof_type){case"1":this.video_url=r;break;case"2":this.img_url=r;break;case"3":this.other_url=r;break;default:this.video_url=r}this.set_proof_url()},UploadSuccessEventproof_url:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){var a;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if("noToken"===(a=e.url))return r.next=4,t.logout();r.next=6;break;case 4:r.next=9;break;case 6:t.img_url=a,t.set_proof_url(),t.$message.success("图片上传成功!");case 9:case"end":return r.stop()}}),r)})))()},UploadErrorEventproof_url:function(e){"break"!==e&&(this.set_proof_url(),this.$message.error("图片上传失败!"))},beforeAvatarUpload:function(e){var t=!1;"image/jpg"!==e.type&&"image/png"!==e.type&&"image/jpeg"!==e.type||(t=!0),e=e.size/1024/1024<1;return t||this.$message.error("图片格式不正确!"),e||this.$message.error("图片大小不能超过 1MB!"),t&&e},UploadSuccessVideoproof_url:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){var a;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if("noToken"===(a=e.url))return r.next=4,t.logout();r.next=6;break;case 4:r.next=9;break;case 6:t.video_url=a,t.set_proof_url(),t.$message.success("视频上传成功!");case 9:case"end":return r.stop()}}),r)})))()},UploadErrorVideoproof_url:function(e){"break"!==e&&(this.set_proof_url(),this.$message.error("视频上传失败!"))},beforeVideoUpload:function(e){var t=!1;"video/mp4"!==e.type&&"video/avi"!==e.type||(t=!0),e=e.size/1024/1024<10;return t||this.$message.error("视频格式不正确!"),e||this.$message.error("视频大小不能超过 10MB!"),t&&e},UploadSuccessOtherproof_url:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){var a;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if("noToken"===(a=e.url))return r.next=4,t.logout();r.next=6;break;case 4:r.next=9;break;case 6:t.other_url=a,t.set_proof_url(),t.$message.success("文件成功!");case 9:case"end":return r.stop()}}),r)})))()},UploadErrorOtherproof_url:function(e){"break"!==e&&(this.set_proof_url(),this.$message.error("文件上传失败!"))},beforeOtherUpload:function(e){var t=!1;"application/vnd.ms-excel"!==e.type&&"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"!==e.type&&"application/pdf"!==e.type&&"application/x-zip-compressed"!==e.type||(t=!0);var r=e.name.split(".");"rar"!==r[r.length-1]&&"7z"!==r[r.length-1]||(t=!0),r=e.size/1024/1024<5;return t||this.$message.error("文件格式不正确!"),r||this.$message.error("文件大小不能超过 5MB!"),t&&r},deleteUrl:function(e){switch(e){case"1":this.video_url="";break;case"2":this.img_url="";break;case"3":this.other_url="";break;default:this.video_url=""}this.set_proof_url()},set_proof_url:function(){switch(this.ruleForm.proof_type){case"1":this.ruleForm.proof_url=this.video_url;break;case"2":this.ruleForm.proof_url=this.img_url;break;case"3":this.ruleForm.proof_url=this.other_url;break;default:this.ruleForm.proof_url=this.video_url}this.$refs.ruleForm.validateField("proof_url")}}};r("7f3a"),r=r("2877"),r=Object(r.a)(s,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[r("el-form",{ref:"addrForm",staticClass:"demo-addrForm-goodsOnline",attrs:{model:e.addrForm,"status-icon":"",size:"mini"}},[r("el-table",{staticStyle:{width:"100%",margin:"0 0 20px 0"},attrs:{data:e.addrForm.good_ladder,size:"mini",border:"",stripe:"","max-height":"300px","row-key":"key"}},[r("el-table-column",{attrs:{type:"index",width:"50","show-overflow-tooltip":""}}),r("el-table-column",{attrs:{prop:"min_num",label:"起订量(>=)","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-form-item",{directives:[{name:"show",rawName:"v-show",value:t.row.edit,expression:"scope.row.edit"}],style:{marginBottom:t.row.edit?"13px":"0"},attrs:{prop:"good_ladder."+t.$index+".min_num",rules:e.addrRules.min_num,size:"mini"}},[r("digital-input",{attrs:{values:t.row.min_num,placeholder:"起订量(>=)",min:0,max:1e11,position:"right",precision:0,controls:!1,append:"",newTime:t.row.newTime,size:"mini",disabled:!t.row.edit},on:{reschange:function(r){return e.num_change(r,"min_num",t.$index)}}})],1),r("span",{directives:[{name:"show",rawName:"v-show",value:!t.row.edit,expression:"!scope.row.edit"}]},[e._v(e._s(t.row.min_num))])]}}])}),r("el-table-column",{attrs:{prop:"new_sale_price","show-overflow-tooltip":""},scopedSlots:e._u([{key:"header",fn:function(t){return[r("span",[e._v("系统售价(元)")]),r("el-popover",{staticClass:"fr",staticStyle:{margin:"3px 0 0 0"},attrs:{placement:"top-start",title:"计算公式:",width:"300",trigger:"hover"}},[r("div",["1"===e.sitem.is_gold_price?r("div",[r("span",{staticClass:"jiashu"},[e._v("贵金属克重")]),r("span",{staticClass:"jiahao"},[e._v("*")]),r("span",{staticClass:"jiashu"},[e._v("实时金价")]),r("span",{staticClass:"jiahao"},[e._v("+")]),r("span",{staticClass:"jiashu"},[e._v("工艺费")]),r("span",{staticClass:"jiahao"},[e._v("*")]),r("span",{staticClass:"jiashu"},[e._v("贵金属克重")]),r("span",{staticClass:"jiahao"},[e._v("+")])]):e._e(),r("div",[r("span",{staticClass:"jiashu"},[e._v("包装费")]),r("span",{staticClass:"jiahao"},[e._v("+")]),r("span",{staticClass:"jiashu"},[e._v("裸价")]),r("span",{staticClass:"jiahao"},[e._v("+")]),r("span",{staticClass:"jiashu"},[e._v("加标费")]),r("span",{staticClass:"jiahao"},[e._v("+")]),r("span",{staticClass:"jiashu"},[e._v("证书费")]),r("span",{staticClass:"jiahao"},[e._v("+")]),r("span",{staticClass:"jiashu"},[e._v("物流费")])])]),r("i",{staticClass:"el-icon-question tb-icon",attrs:{slot:"reference"},slot:"reference"})])]}},{key:"default",fn:function(t){return[r("el-form-item",{directives:[{name:"show",rawName:"v-show",value:t.row.edit,expression:"scope.row.edit"}],style:{marginBottom:t.row.edit?"13px":"0"},attrs:{prop:"good_ladder."+t.$index+".new_sale_price",rules:e.addrRules.new_sale_price,size:"mini"}},[r("el-input",{directives:[{name:"loading",rawName:"v-loading",value:t.row.loading,expression:"scope.row.loading"}],attrs:{placeholder:"系统售价",disabled:!0,size:"mini",maxlength:"20"},model:{value:t.row.new_sale_price,callback:function(r){e.$set(t.row,"new_sale_price",r)},expression:"scope.row.new_sale_price"}})],1),r("span",{directives:[{name:"show",rawName:"v-show",value:!t.row.edit,expression:"!scope.row.edit"}]},[e._v(e._s(t.row.new_sale_price))])]}}])}),r("el-table-column",{attrs:{prop:"sale_price",label:"售价","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-form-item",{directives:[{name:"show",rawName:"v-show",value:t.row.edit,expression:"scope.row.edit"}],style:{marginBottom:t.row.edit?"13px":"0"},attrs:{prop:"good_ladder."+t.$index+".sale_price",rules:e.addrRules.sale_price,size:"mini"}},[r("digital-input",{attrs:{values:t.row.sale_price,placeholder:"售价",min:0,max:1e11,position:"right",precision:2,controls:!1,append:"",newTime:t.row.newTime,size:"mini",disabled:!t.row.edit},on:{reschange:function(r){return e.num_change(r,"sale_price",t.$index)}}})],1),r("span",{directives:[{name:"show",rawName:"v-show",value:!t.row.edit,expression:"!scope.row.edit"}]},[e._v(e._s(t.row.sale_price))])]}}])}),r("el-table-column",{attrs:{prop:"market_price",label:"市场价","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-form-item",{directives:[{name:"show",rawName:"v-show",value:t.row.edit,expression:"scope.row.edit"}],style:{marginBottom:t.row.edit?"13px":"0"},attrs:{prop:"good_ladder."+t.$index+".market_price",rules:e.addrRules.market_price,size:"mini"}},[r("digital-input",{attrs:{values:t.row.market_price,placeholder:"市场价",min:0,max:1e11,position:"right",precision:2,controls:!1,append:"",newTime:t.row.newTime,size:"mini",disabled:!t.row.edit},on:{reschange:function(r){return e.num_change(r,"market_price",t.$index)}}})],1),r("span",{directives:[{name:"show",rawName:"v-show",value:!t.row.edit,expression:"!scope.row.edit"}]},[e._v(e._s(t.row.market_price))])]}}])}),r("el-table-column",{attrs:{prop:"market_platform",label:"对比平台","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-form-item",{directives:[{name:"show",rawName:"v-show",value:t.row.edit,expression:"scope.row.edit"}],style:{marginBottom:t.row.edit?"13px":"0"},attrs:{prop:"good_ladder."+t.$index+".market_platform",rules:e.addrRules.market_platform,size:"mini"}},[r("el-input",{attrs:{placeholder:"对比平台",maxlength:"50",disabled:!t.row.edit},model:{value:t.row.market_platform,callback:function(r){e.$set(t.row,"market_platform",r)},expression:"scope.row.market_platform"}})],1),r("span",{directives:[{name:"show",rawName:"v-show",value:!t.row.edit,expression:"!scope.row.edit"}]},[e._v(e._s(t.row.market_platform))])]}}])}),r("el-table-column",{attrs:{prop:"status",label:"状态","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-form-item",{directives:[{name:"show",rawName:"v-show",value:t.row.edit,expression:"scope.row.edit"}],style:{marginBottom:t.row.edit?"13px":"0"},attrs:{prop:"good_ladder."+t.$index+".status",rules:e.addrRules.status,size:"mini"}},[r("el-select",{attrs:{placeholder:"状态"},model:{value:t.row.status,callback:function(r){e.$set(t.row,"status",r)},expression:"scope.row.status"}},e._l(e.status_options,(function(e){return r("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),r("span",{directives:[{name:"show",rawName:"v-show",value:!t.row.edit,expression:"!scope.row.edit"}]},[e._v(e._s("1"==t.row.status?"启用":"禁用"))])]}}])}),r("el-table-column",{attrs:{fixed:"right"},scopedSlots:e._u([{key:"header",fn:function(t){return[r("span",[e._v("操作")]),r("el-tooltip",{attrs:{effect:"dark",content:"添加阶梯",placement:"top"}},[r("i",{staticClass:"el-icon-circle-plus-outline tb-icon fr",on:{click:function(t){return e.openCostEdit(-1)}}})])]}},{key:"default",fn:function(t){return[t.row.edit?r("el-tooltip",{attrs:{effect:"dark",content:"保存",placement:"top"}},[r("i",{staticClass:"el-icon-circle-check tb-icon",on:{click:function(r){return e.checkRow(t.$index)}}})]):r("el-tooltip",{attrs:{effect:"dark",content:"修改",placement:"top"}},[r("i",{staticClass:"el-icon-edit tb-icon",on:{click:function(r){return e.openCostEdit(t.$index)}}})]),r("el-tooltip",{attrs:{effect:"dark",content:"删除",placement:"top"}},[r("i",{staticClass:"el-icon-delete tb-icon",on:{click:function(r){return e.openCostEditDelete(t.$index)}}})])]}}])})],1)],1),r("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm-goodsOnline",attrs:{model:e.ruleForm,"status-icon":"",rules:e.rulesThis,size:"mini"}},[r("el-row",[r("el-col",{attrs:{span:24}},[r("el-form-item",{attrs:{label:"售价凭证类型",prop:"proof_type"}},[r("el-radio-group",{on:{change:function(t){return e.set_proof_url()}},model:{value:e.ruleForm.proof_type,callback:function(t){e.$set(e.ruleForm,"proof_type",t)},expression:"ruleForm.proof_type"}},e._l(e.options,(function(t){return r("el-radio",{key:t.value,attrs:{label:t.value}},[e._v(e._s(t.label))])})),1),r("el-button",{staticClass:"fr",attrs:{type:"primary"},on:{click:function(t){e.showVoucher=!0}}},[e._v("查看历史凭证")])],1),r("show-voucher-model",{attrs:{showModel:e.showVoucher,id:e.spuCode},on:{cancel:function(t){e.showVoucher=!1},searchChange:e.resvoucher}})],1),r("el-col",{attrs:{span:18}},[r("el-form-item",{attrs:{label:"凭证文件",prop:"proof_url"}},[r("ul",{staticClass:"shangchuan-ul"},["1"===e.ruleForm.proof_type?r("li",{staticClass:"shiping"},[e.video_url?r("div",{staticClass:"clearfix"},[r("video",{staticClass:"fl",attrs:{width:"250",controls:""}},[r("source",{attrs:{src:e.video_url,type:"video/mp4"}}),r("source",{attrs:{src:e.video_url,type:"video/avi"}}),e._v(" 您的浏览器不支持Video标签。 ")]),r("el-link",{staticStyle:{margin:"0 0 0 16px"},attrs:{underline:!1,type:"warning"},on:{click:function(t){return e.deleteUrl("1")}}},[e._v("删除")])],1):r("div",{staticClass:"activity-upload"},[r("div",{staticClass:"btnupload",staticStyle:{position:"relative"}},[r("i",{staticClass:"el-icon-plus avatar-uploader-icon"}),r("video-upload",{staticClass:"Upload",attrs:{disabled:"view"===e.type||"editCoin"===e.type,accept:".mp4,.avi",multiple:!1,uploadcondition:e.beforeVideoUpload},on:{UploadErrorEvent:e.UploadVideoEventproof_url,UploadSuccessEvent:e.UploadSuccessVideoproof_url}})],1),r("div",{staticClass:"txt-tips fl"},[r("p",[e._v("建议大小:小于10MB")]),r("p",[e._v("文件格式:.mp4,.avi")])])])]):e._e(),"2"===e.ruleForm.proof_type?r("li",{staticClass:"tupian"},[e.img_url?r("div",{staticClass:"clearfix"},[r("img",{staticClass:"avatar fl",staticStyle:{width:"50px",height:"50px"},attrs:{src:e.img_url}}),r("el-link",{staticStyle:{margin:"0 0 0 16px"},attrs:{underline:!1,type:"warning"},on:{click:function(t){return e.deleteUrl("2")}}},[e._v("删除")])],1):r("div",{staticClass:"activity-upload"},[r("div",{staticClass:"btnupload",staticStyle:{position:"relative"}},[r("i",{staticClass:"el-icon-plus avatar-uploader-icon"}),r("file-upload",{staticClass:"Upload",attrs:{disabled:"view"===e.type||"editCoin"===e.type,accept:".jpg,.png,.jpeg",multiple:!1,uploadcondition:e.beforeAvatarUpload},on:{UploadErrorEvent:e.UploadErrorEventproof_url,UploadSuccessEvent:e.UploadSuccessEventproof_url}})],1),r("div",{staticClass:"txt-tips fl"},[r("p",[e._v("建议大小:小于1MB")]),r("p",[e._v("文件格式:.jpg,.png,.jpeg")])])])]):e._e(),"3"===e.ruleForm.proof_type?r("li",{staticClass:"qita"},[e.other_url?r("div",{staticClass:"clearfix"},[r("a",{attrs:{href:e.other_url,download:"凭证文件"}},[e._v("点击下载")]),r("el-link",{staticStyle:{margin:"0 0 0 16px"},attrs:{underline:!1,type:"warning"},on:{click:function(t){return e.deleteUrl("3")}}},[e._v("删除")])],1):r("div",{staticClass:"activity-upload"},[r("div",{staticClass:"btnupload",staticStyle:{position:"relative"}},[r("i",{staticClass:"el-icon-plus avatar-uploader-icon"}),r("file-upload-pdf",{staticClass:"Upload",attrs:{accept:".xlsx,.xls,.pdf,.zip,.rar,.7z",multiple:!1,uploadcondition:e.beforeOtherUpload},on:{UploadErrorEvent:e.UploadErrorOtherproof_url,UploadSuccessEvent:e.UploadSuccessOtherproof_url}})],1),r("div",{staticClass:"txt-tips fl"},[r("p",[e._v("建议大小:小于5MB")]),r("p",[e._v("文件格式:.xlsx,.xls,.pdf,.zip,.rar,.7z")])])])]):e._e()])])],1),r("el-col",{attrs:{span:6}},[r("el-form-item",{staticClass:"fr"},[e.isDetail?e._e():r("el-button",{attrs:{size:"mini",type:"primary"},on:{click:e.submitForm}},[e._v("保 存 ")])],1)],1)],1)],1)],1)}),[],!1,null,"07d8fd50",null);t.default=r.exports},b7e3:function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=r("5530"),s=(r("96cf"),r("7db0"),r("d3b7"),r("a9e3"),r("baa8")),i=r("fc11"),o=r("0ee5"),l=r("e66a"),c=r("f5ed"),u=r("2f62"),d=r("9f53");c={name:"orderuse",mixins:[c.a,d.a],components:{addEdit:s.default},computed:Object(n.a)(Object(n.a)({},Object(u.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"orderuse"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),data:function(){return{statusList:o.a,roleLevel:l.a,loading:!0,showModel:!1,modelId:"000",sitem:{},parmValue:{page:1,size:15,start:"",end:"",order_use:"",status:"",creater:""},statusOptions:[{id:"0",label:"禁用"},{id:"1",label:"启用"}],tableData:[],table:{stripe:!0,border:!0,_defaultHeader_:["setcol"]},pageInfo:{size:15,curr:1,total:0},columns:[{prop:"id",label:"ID",width:"80px"},{prop:"order_use",label:"订单用途名称"},{prop:"status",label:"状态",_slot_:"status"},{prop:"creater",label:"创建人"},{prop:"addtime",label:"创建时间"},{prop:"",label:"操作",fixed:"right",_noset_:!0,_slot_:"operation"}]}},mounted:function(){this.searchList()},methods:{restSearch:function(){this.pageInfo={size:15,curr:1,total:0},this.parmValue={page:1,size:15,start:"",end:"",order_use:"",status:"",creater:""},this.searchList()},openModal:function(e,t){var r=e.status;"005"===t&&"1"===r?this.$message.warning("禁用后,才可以修改!"):(this.sitem=e,this.modelId=t,this.showModel=!0)},handleTime:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t.parmValue.start=e.startTime||"",t.parmValue.end=e.endTime||"",""!==t.parmValue.start&&""!==t.parmValue.end||""===t.parmValue.start&&""===t.parmValue.end)return t.pageInfo.curr=1,t.parmValue.page=1,r.next=7,t.searchList();r.next=7;break;case 7:case"end":return r.stop()}}),r)})))()},changeStatus:function(e,t){var r=this;return Object(a.a)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r.$confirm("确定要改为".concat("1"===t?"禁用":"启用","?"),{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(a.a)(regeneratorRuntime.mark((function a(){var n,s;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return r.loading=!0,n={id:e,status:"1"===t?"0":"1"},a.next=4,i.a.status(n);case 4:if((s=a.sent)&&0===s.code)return r.loading=!1,r.$notify.success({title:"状态修改成功!",message:""}),a.next=10,r.searchList();a.next=12;break;case 10:a.next=19;break;case 12:if(s&&100<=s.code&&s.code<=104)return a.next=15,r.logout();a.next=17;break;case 15:a.next=19;break;case 17:r.loading=!1,r.$message.warning(s.message);case 19:case"end":return a.stop()}}),a)})))).catch((function(){}));case 2:case"end":return n.stop()}}),n)})))()},deleteItem:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t.$confirm("确定要删除?",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(a.a)(regeneratorRuntime.mark((function r(){var a,n;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a={id:e},r.next=3,i.a.delete(a);case 3:if(!(n=r.sent)||0!==n.code){r.next=9;break}t.$notify.success({title:"删除成功",message:""}),t.searchList(),r.next=15;break;case 9:if(n&&100<=n.code&&n.code<=104)return r.next=12,t.logout();r.next=14;break;case 12:r.next=15;break;case 14:t.$message.warning(n.message);case 15:case"end":return r.stop()}}),r)})))).catch((function(){}));case 2:case"end":return r.stop()}}),r)})))()},searchList:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(""!==e.parmValue.start&&""===e.parmValue.end||""==e.parmValue.start&&""!=e.parmValue.end)return e.$message.warning("开始时间和结束时间不能为空"),t.abrupt("return");t.next=3;break;case 3:return e.loading=!0,t.next=6,i.a.list(e.parmValue);case 6:if(!(r=t.sent)||0!==r.code||!r.data){t.next=12;break}e.tableData=r.data.list,e.pageInfo.total=Number(r.data.count),t.next=19;break;case 12:if(r&&100<=r.code&&r.code<=104)return t.next=15,e.logout();t.next=17;break;case 15:t.next=19;break;case 17:e.tableData=[],e.pageInfo.total=0;case 19:e.loading=!1;case 20:case"end":return t.stop()}}),t)})))()}}},d=r("2877"),s=Object(d.a)(c,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"orderuse pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?r("ex-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{table:e.table,data:e.tableData,columns:e.columns,page:e.pageInfo,size:e.size},on:{"page-curr-change":e.handlePageChange,"page-size-change":e.handleSizeChange,"screen-reset":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()},"screen-submit":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},scopedSlots:e._u([{key:"table-header",fn:function(t){return[r("div",{staticStyle:{width:"100%"}},[r("el-row",{staticStyle:{padding:"0 0 10px 80px"}},[r("el-col",{staticStyle:{width:"303px"},attrs:{span:6}},[r("period-date-picker",{attrs:{type:1,width:"135px",size:e.searchSize,start:e.parmValue.start,end:e.parmValue.end},on:{timeReturned:e.handleTime}})],1),r("el-col",{staticStyle:{width:"160px"},attrs:{span:4}},[r("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"",clearable:"",size:e.searchSize,placeholder:"订单用途状态"},on:{change:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.parmValue.status,callback:function(t){e.$set(e.parmValue,"status",t)},expression:"parmValue.status"}},e._l(e.statusList,(function(e){return r("el-option",{key:"status"+e.code,attrs:{label:e.name,value:e.code}})})),1)],1),r("el-col",{staticClass:"fr",staticStyle:{width:"66px",padding:"0 0 0 10px"},attrs:{span:3}},[r("el-button",{attrs:{type:"primary",size:e.searchSize},on:{click:e.searchList}},[e._v(" 刷新 ")])],1),r("el-col",{staticClass:"fr",staticStyle:{width:"66px",padding:"0 0 0 10px"},attrs:{span:3}},[r("el-button",{attrs:{type:"warning",size:e.searchSize},on:{click:e.restSearch}},[e._v(" 重置 ")])],1)],1),r("el-row",[r("el-col",{staticStyle:{width:"373px"},attrs:{span:4}},[r("el-input",{attrs:{size:e.searchSize,maxlength:40,placeholder:"订单用途名称"},on:{blur:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.parmValue.order_use,callback:function(t){e.$set(e.parmValue,"order_use",t)},expression:"parmValue.order_use"}})],1),r("el-col",{staticStyle:{width:"170px",padding:"0 0 0 10px"},attrs:{span:4}},[r("el-input",{attrs:{size:e.searchSize,maxlength:40,placeholder:"创建人"},on:{change:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.parmValue.creater,callback:function(t){e.$set(e.parmValue,"creater",t)},expression:"parmValue.creater"}})],1),e.powers.some((function(e){return"003"==e}))?r("el-col",{staticClass:"fr",staticStyle:{width:"66px",padding:"0 0 0 10px"},attrs:{span:3}},[r("el-button",{staticStyle:{float:"right"},attrs:{size:e.searchSize,type:"success"},on:{click:function(t){return e.openModal({},"003")}}},[e._v(" 添加 ")])],1):e._e()],1)],1)]}},{key:"status",fn:function(t){var a=t.scope;return[r("el-tag",{attrs:{size:e.tablebtnSize,type:"0"==a.row.status?"warning":""},domProps:{textContent:e._s((e.statusOptions.find((function(e){return e.id==a.row.status}))||{}).label||"--")}})]}},{key:"operation",fn:function(t){var a=t.scope;return[e.powers.some((function(e){return"007"==e}))?r("el-tooltip",{attrs:{effect:"dark",content:"详情",placement:"top"}},[r("i",{staticClass:"el-icon-view tb-icon",on:{click:function(t){return e.openModal(a.row,"007")}}})]):e._e(),e.powers.some((function(e){return"005"==e}))?r("el-tooltip",{attrs:{effect:"dark",content:"修改",placement:"top"}},[r("i",{staticClass:"el-icon-edit tb-icon",on:{click:function(t){return e.openModal(a.row,"005")}}})]):e._e(),e.powers.some((function(e){return"004"==e}))&&"1"===a.row.status?r("el-tooltip",{attrs:{effect:"dark",content:"禁用",placement:"top"}},[r("i",{staticClass:"el-icon-video-pause tb-icon",on:{click:function(t){return e.changeStatus(a.row.id,a.row.status)}}})]):e._e(),e.powers.some((function(e){return"004"==e}))&&"0"===a.row.status?r("el-tooltip",{attrs:{effect:"dark",content:"启用",placement:"top"}},[r("i",{staticClass:"el-icon-video-play tb-icon",on:{click:function(t){return e.changeStatus(a.row.id,a.row.status)}}})]):e._e(),e.powers.some((function(e){return"006"==e}))?r("el-tooltip",{attrs:{effect:"dark",content:"删除",placement:"top"}},[r("i",{staticClass:"el-icon-delete tb-icon",on:{click:function(t){return e.deleteItem(a.row.id)}}})]):e._e()]}}],null,!1,155376346)}):r("no-auth"),r("add-edit",{attrs:{id:e.modelId,"show-model":e.showModel,sitem:e.sitem},on:{refresh:e.searchList,cancel:function(t){e.showModel=!1}}})],1)}),[],!1,null,"6c683c20",null);t.default=s.exports},b87d:function(e,t,r){"use strict";r.r(t);var a=r("2909"),n=r("1da1"),s=r("ade3"),i=(r("96cf"),r("d3b7"),r("159b"),r("99af"),r("b0c0"),r("c740"),r("a434"),r("e9c4"),r("25f0"),r("9f53")),o=r("7dbe"),l=r("5f08"),c=r("61f7"),u=r("f8d8"),d=r("3ec4");i={name:"buyGoodModal",props:["showModel","sitem"],mixins:[i.a],components:{searchStockGoodModal:l.a,inAddrModel:u.a},data:function(){function e(e,t,r){(e=e.required)&&""===t?r(new Error("不能为空!")):!e||"0"!==t&&"0."!==t&&"0.0"!==t&&"0.00"!==t&&"0.000"!==t?r():r(new Error("不能为零!"))}var t={loading:!1,total_price:"0",addrmodel:!1,showModelThis:this.showModel,showGoodsModel:!1,ShowDataTableColumns:d.a,options:[{value:"1",label:"直接发货"},{value:"2",label:"延时发货"}],stock_code:"",cat_id:"",ruleForm:{bidNo:"",good_num:"",sale_price:"",sendtype:"1",arrtime:"",remark:""},rulesThis:this.rules,rules:{good_num:[{required:!0,validator:e,trigger:"blur"}],sale_price:[{required:!0,validator:e,trigger:"blur"}],sendtype:[{required:!0,message:"请选择发货方式",trigger:"change"}],remark:[{required:!0,message:"输入订单备注",trigger:"blur"}]},addrForm:{order_addr:[]},addrRules:{receipt_quantity:[{required:!0,validator:function(e,t,r){""===t?r(new Error("收货总数不能为空!")):Object(c.k)(t)?r():r(new Error("收货总数仅支持整数!"))},trigger:"blur"}],contactor:[{required:!0,trigger:"blur",message:"联系人不能为空"}],mobile:[{required:!0,validator:function(e,t,r){""===t?r(new Error("手机号不能为空!")):Object(c.g)(t)?r():r(new Error("手机号格式不正确!"))},trigger:"blur"}],addr_code:[{type:"array",required:!0,message:"收货省市区不能为空",trigger:"change"}],addr:[{required:!0,message:"详细地址不能为空",trigger:"blur"}]}};return Object(s.a)(t,"loading",!1),Object(s.a)(t,"id",""),t},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis:function(e){e||this.$emit("cancel")}},methods:{closeModel:function(){this.showModelThis=!1},num_change:function(e,t){this.ruleForm[t]=e+"",this.$refs.ruleForm.validateField(t),this.set_total_price()},set_total_price:function(){var e=this.ruleForm,t=e.good_num;e=e.sale_price;this.total_price=+t*+e+""},initForm:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,e.rulesThis=e.rules,r=e.sitem.can,e.sitem.can_name="",e.sitem.is_noble=!1,r&&0<r.length&&r.forEach((function(t,r){e.sitem.is_noble="6"===t.id,e.sitem.can_name+="".concat(0!==r?"_":"").concat(t.name)})),t.next=9,e.resetForm();case 9:e.getNewTime(),e.set_total_price(),e.loading=!1;case 12:case"end":return t.stop()}}),t)})))()},addrRefresh:function(e){var t;e=e.list;(t=this.addrForm.order_addr).push.apply(t,Object(a.a)(e))},getNewTime:function(){this.newTime=(new Date).valueOf()},resetForm:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$nextTick((function(){var t,r,a,n,s;e.$refs.ruleForm&&(e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),r=(t=e.sitem).bidNo,a=t.in_num,n=t.in_arrival_time,s=t.sale_price,t.remark,e.ruleForm={bidNo:r||"",good_num:a||"0",sale_price:s||"",sendtype:"1",arrtime:n||"",remark:""}),e.$refs.addrForm&&(e.$refs.addrForm.resetFields(),e.$refs.addrForm.clearValidate(),e.addrForm={order_addr:[]})}));case 2:case"end":return t.stop()}}),t)})))()},openHouseModal:function(e){-1!==this.addrForm.order_addr.findIndex((function(e){return!0===e.edit}))?this.$message.warning("当前已有地址在编辑,请保存后再试!"):-1===e?this.addrForm.order_addr.push({edit:!0,receipt_quantity:"",contactor:"",mobile:"",addr_code:[],addr:""}):this.addrForm.order_addr[e].edit=!0},select_area_change:function(e,t){var r=this;return Object(n.a)(regeneratorRuntime.mark((function a(){var n,s,i,l,c,u;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(r.addrForm.order_addr[t].addr_code=e,(n=r.addrForm.order_addr[t].addr_code)&&3===n.length)return n=n[n.length-1],a.next=6,o.a.addrall({code:n});a.next=26;break;case 6:if(n=a.sent,s=n.code,u=n.data,i=n.message,0!==s){a.next=18;break}l=u.province,c=u.city,u=u.area,l=l&&l.name?l.name:"",c=c&&c.name?c.name:"",u=u&&u.name?u.name:"",r.addrForm.order_addr[t].addr_code_name=l&&c&&u?"".concat(l,"/").concat(c,"/").concat(u):"",a.next=24;break;case 18:if(100<=s&&s<=104)return a.next=21,r.logout();a.next=23;break;case 21:a.next=24;break;case 23:r.$message.warning(i);case 24:a.next=27;break;case 26:r.addrForm.order_addr[t].addr_code_name="";case 27:case"end":return a.stop()}}),a)})))()},checkRow:function(e){var t=this;this.$refs.addrForm.validate((function(r){if(!r)return!1;t.addrForm.order_addr[e].edit=!1}))},deleteRow:function(e,t){t.splice(e,1)},submitForm:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.ruleForm.validate(function(){var t=Object(n.a)(regeneratorRuntime.mark((function t(r){var a,n,s,i,l,c,u;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r){t.next=40;break}if(e.loading=!0,(a=JSON.parse(JSON.stringify(e.ruleForm))).order_addr=[],n=a.sendtype,s=a.good_num,i=JSON.parse(JSON.stringify(e.addrForm)),i=i.order_addr,"1"===n&&i&&0===i.length)return e.$message.warning("至少上传一个地址信息!"),e.loading=!1,t.abrupt("return");t.next=10;break;case 10:if("1"!==n){t.next=21;break}if(l=0,c=!1,i.forEach((function(e){e.edit&&(c=!0),l+=parseInt(e.receipt_quantity+""),e={addr_code:e.addr_code.toString(),contactor:e.contactor,mobile:e.mobile,addr:e.addr,receipt_quantity:e.receipt_quantity},a.order_addr.push(e)})),c)return e.$message.warning("请保存地址信息!"),e.loading=!1,t.abrupt("return");t.next=17;break;case 17:if(parseInt(s+"")!==l&&"2"===n)return e.$message.warning("收货总数量与购买不一致!"),e.loading=!1,t.abrupt("return");t.next=21;break;case 21:return t.next=24,o.a.consultorder(a);case 24:if(u=t.sent,e.loading=!1,!u||0!==u.code){t.next=32;break}e.$notify.success({title:"下单成功!",message:""}),e.showModelThis=!1,e.$emit("refresh"),t.next=38;break;case 32:if(u&&100<=u.code&&u.code<=104)return t.next=35,e.logout();t.next=37;break;case 35:t.next=38;break;case 37:e.$message.warning(u.message);case 38:t.next=42;break;case 40:return t.abrupt("return",!1);case 42:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()}}},r("8064"),l=r("2877"),u=Object(l.a)(i,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:"咨询单选定商品下单",center:!0,align:"left",top:"5vh",width:"1040px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)","append-to-body":""},on:{close:function(t){e.showModelThis=!1},"update:visible":function(t){e.showModelThis=t}}},[r("el-card",{staticStyle:{"margin-top":"-20px"}},[r("el-row",[r("el-col",{attrs:{span:24}},[""!==e.newTime&&e.sitem?r("show-data-table",{staticStyle:{margin:"0",padding:"0"},attrs:{newTime:e.newTime,sitem:e.sitem,border:"",columns:e.ShowDataTableColumns}},[r("template",{slot:"good_name"},[e.sitem.good_img?r("img",{directives:[{name:"viewer",rawName:"v-viewer"}],staticClass:"fl",staticStyle:{width:"23px",height:"23px",margin:"0 5px 0 0"},attrs:{src:e.sitem.good_img,alt:""}}):e._e(),r("div",[e._v(e._s(e.sitem.good_name))])]),r("template",{slot:"specinfo"},e._l(e.sitem.specinfo,(function(t,a){return r("span",{key:t.specid+a},[0!==a?r("span",[e._v("--")]):e._e(),r("span",[e._v(e._s(t.spec_name)+"["+e._s(t.spec_value_name)+"]")])])})),0),r("template",{slot:"is_noble"},[e.sitem.is_noble?r("span",[e._v(" "+e._s(e.sitem.noble_weight)+"g--"+e._s(e.sitem.metal_name)+"--"+e._s("1"===e.sitem.is_diff?"有":"无")+"工差--"+e._s(e.sitem.config)+"--"+e._s(e.sitem.other_config))]):r("span",[e._v("非贵金属商品")])]),r("template",{slot:"in_num"},[r("span",[e._v(e._s(e.sitem.in_num)+e._s(e.sitem.unit))])])],2):e._e()],1),r("el-col",{staticStyle:{padding:"18px 0 0 0"},attrs:{span:24}},[r("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",rules:e.rulesThis,size:"mini","label-width":"55px"}},[r("el-row",[r("el-col",{attrs:{span:5}},[r("el-form-item",{attrs:{label:"数量",prop:"good_num"}},[r("digital-input",{attrs:{values:e.ruleForm.good_num,placeholder:"数量",min:e.sitem.in_num,max:1e11,position:"right",precision:0,size:"mini",controls:!1,disabled:!1,append:e.sitem.unit},on:{reschange:function(t){return e.num_change(t,"good_num")}}})],1)],1),r("el-col",{attrs:{span:6}},[r("el-form-item",{attrs:{label:"单价",prop:"sale_price"}},[r("digital-input",{attrs:{values:e.ruleForm.sale_price,placeholder:"商品单价",min:e.sitem.sale_price,max:1e11,position:"right",precision:2,size:"mini",controls:!1,disabled:!1,append:"元"},on:{reschange:function(t){return e.num_change(t,"sale_price")}}})],1)],1),r("el-col",{attrs:{span:6}},[r("el-form-item",{attrs:{label:"总金额",prop:"good_num","label-width":"70px"}},[r("el-input",{attrs:{placeholder:"总金额",disabled:"",maxlength:"500"},model:{value:e.total_price,callback:function(t){e.total_price=t},expression:"total_price"}})],1)],1),r("el-col",{attrs:{span:5}},[r("el-form-item",{attrs:{label:"发货方式",prop:"sendtype","label-width":"90px"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"发货方式"},model:{value:e.ruleForm.sendtype,callback:function(t){e.$set(e.ruleForm,"sendtype",t)},expression:"ruleForm.sendtype"}},e._l(e.options,(function(e){return r("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1)],1),r("el-col",{staticStyle:{"text-align":"right"},attrs:{span:2}},[r("el-button",{attrs:{size:"mini",type:"primary"},on:{click:e.submitForm}},[e._v("保 存 ")])],1),r("el-col",{attrs:{span:24}},[r("el-form-item",{attrs:{label:"订单备注",prop:"remark","label-width":"85px"}},[r("el-input",{attrs:{maxlength:"500",placeholder:"订单备注"},model:{value:e.ruleForm.remark,callback:function(t){e.$set(e.ruleForm,"remark",t)},expression:"ruleForm.remark"}})],1)],1)],1)],1)],1),"1"===e.ruleForm.sendtype?r("el-col",{attrs:{span:24}},[r("el-form",{ref:"addrForm",attrs:{model:e.addrForm,size:"mini"}},[r("el-table",{staticStyle:{width:"100%"},attrs:{data:e.addrForm.order_addr,border:"",size:"mini","max-height":"300px","row-key":"key"}},[r("el-table-column",{attrs:{type:"index",width:"50","show-overflow-tooltip":""}}),r("el-table-column",{attrs:{prop:"receipt_quantity",label:"收货总数","min-width":"125","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.edit?r("el-form-item",{style:{marginBottom:t.row.edit?"13px":"0"},attrs:{prop:"order_addr."+t.$index+".receipt_quantity",rules:e.addrRules.receipt_quantity,size:"mini"}},[r("el-input",{attrs:{placeholder:"收货总数",disabled:!t.row.edit,maxlength:"10"},model:{value:t.row.receipt_quantity,callback:function(r){e.$set(t.row,"receipt_quantity",r)},expression:"scope.row.receipt_quantity"}})],1):e._e(),t.row.edit?e._e():r("span",[e._v(e._s(t.row.receipt_quantity))])]}}],null,!1,255859134)}),r("el-table-column",{attrs:{prop:"contactor",label:"收件联系人","min-width":"110","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.edit?r("el-form-item",{style:{marginBottom:t.row.edit?"13px":"0"},attrs:{prop:"order_addr."+t.$index+".contactor",rules:e.addrRules.contactor,size:"mini"}},[r("el-input",{attrs:{placeholder:"收件联系人",maxlength:"20",disabled:!t.row.edit},model:{value:t.row.contactor,callback:function(r){e.$set(t.row,"contactor",r)},expression:"scope.row.contactor"}})],1):e._e(),t.row.edit?e._e():r("span",[e._v(e._s(t.row.contactor))])]}}],null,!1,1944570642)}),r("el-table-column",{attrs:{prop:"mobile",label:"收货联系电话","min-width":"130","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.edit?r("el-form-item",{style:{marginBottom:t.row.edit?"13px":"0"},attrs:{prop:"order_addr."+t.$index+".mobile",rules:e.addrRules.mobile,size:"mini"}},[r("el-input",{attrs:{placeholder:"收货联系电话",disabled:!t.row.edit,maxlength:"11"},model:{value:t.row.mobile,callback:function(r){e.$set(t.row,"mobile",r)},expression:"scope.row.mobile"}})],1):e._e(),t.row.edit?e._e():r("span",[e._v(e._s(t.row.mobile))])]}}],null,!1,598804467)}),r("el-table-column",{attrs:{prop:"addr_code",label:"收货省市区","min-width":"230","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.edit?r("el-form-item",{style:{marginBottom:t.row.edit?"13px":"0"},attrs:{prop:"order_addr."+t.$index+".addr_code",rules:e.addrRules.addr_code,size:"mini"}},[r("select-area",{attrs:{value:t.row.addr_code,disabled:!t.row.edit,placeholder:"收货省市区",size:"mini"},on:{selectChange:function(r){return e.select_area_change(r,t.$index)}}})],1):e._e(),t.row.edit?e._e():r("span",[e._v(e._s(t.row.addr_code_name))])]}}],null,!1,2253759390)}),r("el-table-column",{attrs:{prop:"addr",label:"详细地址","min-width":"170","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.edit?r("el-form-item",{style:{marginBottom:t.row.edit?"13px":"0"},attrs:{prop:"order_addr."+t.$index+".addr",rules:e.addrRules.addr,size:"mini"}},[r("el-input",{attrs:{placeholder:"详细地址",disabled:!t.row.edit,maxlength:"100"},model:{value:t.row.addr,callback:function(r){e.$set(t.row,"addr",r)},expression:"scope.row.addr"}})],1):e._e(),t.row.edit?e._e():r("span",[e._v(e._s(t.row.addr))])]}}],null,!1,3380776036)}),r("el-table-column",{attrs:{fixed:"right",width:"94","show-overflow-tooltip":""},scopedSlots:e._u([{key:"header",fn:function(t){return[r("el-tooltip",{staticClass:"fr",staticStyle:{margin:"3px 0 0 8px"},attrs:{effect:"dark",content:"手动添加地址",placement:"top"}},[r("i",{staticClass:"el-icon-circle-plus-outline tb-icon",staticStyle:{color:"#63cbe7"},on:{click:function(t){return e.openHouseModal(-1)}}})]),r("el-tooltip",{staticClass:"fr",staticStyle:{margin:"3px 0 0 8px"},attrs:{effect:"dark",content:"导入收货地址",placement:"top"}},[r("i",{staticClass:"el-icon-upload2 tb-icon",staticStyle:{color:"#63cbe7"},on:{click:function(t){e.addrmodel=!0}}})]),r("el-tooltip",{staticClass:"fr",staticStyle:{margin:"3px 0 0 0"},attrs:{effect:"dark",content:"下载收货地址模板",placement:"top"}},[r("a",{staticClass:"downloadAddr",attrs:{href:"./static/收货地址模板.xlsx"}},[r("i",{staticClass:"el-icon-download tb-icon",staticStyle:{color:"#63cbe7",margin:"0"}})])])]}},{key:"default",fn:function(t){return[t.row.edit?e._e():r("el-tooltip",{attrs:{effect:"dark",content:"编辑",placement:"top"}},[r("i",{staticClass:"el-icon-edit tb-icon",on:{click:function(r){return e.openHouseModal(t.$index)}}})]),t.row.edit?r("el-tooltip",{attrs:{effect:"dark",content:"保存",placement:"top"}},[r("i",{staticClass:"el-icon-circle-check tb-icon",on:{click:function(r){return e.checkRow(t.$index)}}})]):e._e(),r("el-tooltip",{attrs:{effect:"dark",content:"删除",placement:"top"}},[r("i",{staticClass:"el-icon-delete tb-icon",on:{click:function(r){return e.deleteRow(t.$index,e.addrForm.order_addr)}}})])]}}],null,!1,1481077816)})],1)],1)],1):e._e(),r("el-col",{attrs:{span:24}},[r("in-addr-model",{attrs:{"show-model":e.addrmodel},on:{cancel:function(t){e.addrmodel=!1},refresh:e.addrRefresh}})],1)],1)],1)],1)}),[],!1,null,"59f8d3ee",null);t.default=u.exports},b8d2:function(e,t,r){"use strict";var a=r("1b69"),n="admin/";t.a={add:function(e,t){return Object(a.a)(n+"add",e,"post",t)},delete:function(e,t){return Object(a.a)(n+"delete",e,"post",t)},list:function(e,t){return Object(a.a)(n+"orderbacklist",e,"post",t)},detail:function(e,t){return Object(a.a)(n+"orderbackinfo",e,"post",t)},update:function(e,t){return Object(a.a)(n+"update",e,"post",t)},status:function(e,t){return Object(a.a)(n+"orderbackexam",e,"post",t)},check:function(e,t){return Object(a.a)(n+"orderbce",e,"post",t)},returnCheck:function(e,t){return Object(a.a)(n+"orderbackcheck",e,"post",t)},resultlist:function(e,t){return Object(a.a)(n+"resultlist",e,"post",t)}}},ba03:function(e,t,r){"use strict";r("21f2")},ba30:function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=(r("96cf"),{name:"exam-form",props:["size","statusList","disabled","isMust","labelWidth","time"],data:function(){return{loading:!1,stateList:[{value:"1",label:"通过"},{value:"0",label:"驳回"}],showModelThis:this.showModel,pickerOptions:{disabledDate:function(e){return e.getTime()<Date.now()-864e5}},ruleForm:{state:"1",rebut:"",online_time:"",remark:""},rulesThis:this.rules,rules:{state:[{required:!0,message:"请选择审核状态",trigger:"change"}],online_time:[{required:!0,message:"请选择上线时间",trigger:"change"}],rebut:[{required:!0,message:"请选择驳回节点",trigger:"change"}],remark:[{required:!0,message:"请输入审核备注",trigger:"blur"},{min:1,max:250,message:"长度在 1 到 250 个字符",trigger:"blur"}]}}},watch:{isDetail:function(e,t){this.isDetail!==e&&(this.options=[],this.selectLoading=!1)},newTime:function(e){e&&this.initForm()}},mounted:function(){this.initForm()},methods:{initForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,e.rulesThis=e.rules,t.next=4,e.resetForm();case 4:e.stateChange(),e.loading=!1;case 6:case"end":return t.stop()}}),t)})))()},stateChange:function(){"1"===this.ruleForm.state?(this.rulesThis.rebut[0].required=!1,this.rulesThis.remark[0].required=!1):(this.rulesThis.rebut[0].required=!0,this.rulesThis.remark[0].required=!0)},resetForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$nextTick((function(){e.$refs.ruleForm&&(e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),e.ruleForm={state:"1",rebut:"",online_time:e.time||"",remark:""})}));case 2:case"end":return t.stop()}}),t)})))()},submitForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.ruleForm.validate(function(){var t=Object(a.a)(regeneratorRuntime.mark((function t(r){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r){t.next=4;break}e.$emit("searchChange",e.ruleForm),t.next=6;break;case 4:return t.abrupt("return",!1);case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()}}});r=r("2877"),r=Object(r.a)(n,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",rules:e.rulesThis,"label-width":e.labelWidth||"100px",size:e.size||"medium"}},[r("el-row",[r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"审核状态",prop:"state"}},[r("el-radio-group",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择审核状态",size:e.size||"medium"},on:{change:e.stateChange},model:{value:e.ruleForm.state,callback:function(t){e.$set(e.ruleForm,"state",t)},expression:"ruleForm.state"}},e._l(e.stateList,(function(t){return r("el-radio",{key:t.value,attrs:{label:t.value}},[e._v(e._s(t.label))])})),1)],1),"1"===e.ruleForm.state?r("el-form-item",{attrs:{label:"上线时间",prop:"online_time"}},[r("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"datetime","value-format":"yyyy-MM-dd HH:mm:ss","picker-options":e.pickerOptions,placeholder:"上线时间"},model:{value:e.ruleForm.online_time,callback:function(t){e.$set(e.ruleForm,"online_time",t)},expression:"ruleForm.online_time"}})],1):e._e()],1),r("el-col",{attrs:{span:12}},["0"===e.ruleForm.state?r("el-form-item",{attrs:{label:"审核备注",prop:"remark"}},[r("el-input",{attrs:{type:"textarea",placeholder:"审核备注",disabled:e.disabled,maxlength:"250","show-word-limit":"",autosize:{minRows:3,maxRows:3}},model:{value:e.ruleForm.remark,callback:function(t){e.$set(e.ruleForm,"remark",t)},expression:"ruleForm.remark"}})],1):e._e(),r("el-form-item",{staticClass:"fr"},[e.isDetail?e._e():r("el-button",{attrs:{size:"mini",type:"primary"},on:{click:e.submitForm}},[e._v("保 存 ")])],1)],1)],1)],1)}),[],!1,null,null,null);t.default=r.exports},baa6:function(e,t,r){e.exports=r.p+"static/img/developing.750f7ed1.jpg"},baa8:function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=(r("e9c4"),r("96cf"),r("fc11")),s={name:"orderuse",props:["showModel","id","sitem"],mixins:[r("9f53").a],data:function(){return{loading:!1,title:"添加订单用途",showModelThis:this.showModel,select:"1",activeOptions:[],actionList:[],ruleForm:{id:"",order_use:"",logo_url:""},rulesThis:this.rules,rules:{order_use:[{required:!0,message:"订单用途不能为空!",trigger:"blur"}]}}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis:function(e){e||this.$emit("cancel")}},methods:{initForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,"003"===e.id?(e.title="添加订单用途",e.rulesThis=e.rules):"005"===e.id?(e.title="修改订单用途",e.rulesThis=e.rules):(e.title="订单用途详情",e.rulesThis={}),t.next=4,e.resetForm();case 4:e.loading=!1;case 5:case"end":return t.stop()}}),t)})))()},resetForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$nextTick((function(){var t,r,a;e.$refs.ruleForm&&(e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),r=(t=e.sitem).id,a=t.order_use,t.logo_url,e.ruleForm={id:r||"",order_use:a||""})}));case 2:case"end":return t.stop()}}),t)})))()},submitForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.ruleForm.validate(function(){var t=Object(a.a)(regeneratorRuntime.mark((function t(r){var a,s,i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r){t.next=30;break}if(e.loading=!0,a=JSON.parse(JSON.stringify(e.ruleForm)),s={},"003"===e.id)return delete a.id,t.next=8,n.a.add(a);t.next=11;break;case 8:s=t.sent,t.next=14;break;case 11:return t.next=13,n.a.update(a);case 13:s=t.sent;case 14:if(e.loading=!1,!s||0!==s.code){t.next=22;break}i="add"===e.id?"添加成功!":"修改成功!",e.$notify.success({title:i,message:""}),e.showModelThis=!1,e.$emit("refresh"),t.next=28;break;case 22:if(s&&100<=s.code&&s.code<=104)return t.next=25,e.logout();t.next=27;break;case 25:t.next=28;break;case 27:e.$message.warning(s.message);case 28:t.next=32;break;case 30:return t.abrupt("return",!1);case 32:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()},beforeAvatarUpload:function(e){var t=!1,r=!1;return e&&("image/jpg"!==e.type&&"image/png"!==e.type&&"image/jpeg"!==e.type||(t=!0),r=e.size/1024/1024<1,t||this.$message.error("图片格式不正确!"),r||this.$message.error("图片大小不能超过 1MB!")),t&&r},UploadErrorEvent:function(e){"break"!==e&&(this.$message.error("图片上传失败!"),this.ruleForm.logo_url="",this.$refs.ruleForm.validateField("logo_url"))},UploadSuccessEvent:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){var a;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if("noToken"===(a=e.url))return r.next=4,t.logout();r.next=6;break;case 4:r.next=9;break;case 6:t.ruleForm.logo_url=a,t.$message.success("图片上传成功!"),t.$refs.ruleForm.validateField("logo_url");case 9:case"end":return r.stop()}}),r)})))()}}};r("91d6"),r=r("2877"),r=Object(r.a)(s,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:e.title,center:!0,align:"left",top:"18vh",width:"500px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)"},on:{"update:visible":function(t){e.showModelThis=t},close:function(t){e.showModelThis=!1}}},[t("el-card",{staticStyle:{margin:"-20px 0 0 0"}},[t("el-row",{attrs:{gutter:10}},[t("el-col",{attrs:{span:24}},[t("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",rules:e.rulesThis,"label-width":"80px"}},[t("el-form-item",{attrs:{label:"订单用途",prop:"order_use"}},[t("el-input",{attrs:{disabled:"007"==e.id,placeholder:"订单用途",maxlength:"20"},model:{value:e.ruleForm.order_use,callback:function(t){e.$set(e.ruleForm,"order_use",t)},expression:"ruleForm.order_use"}})],1)],1)],1),t("el-col",{staticStyle:{"text-align":"right"},attrs:{span:24}},["007"!==e.id?t("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("保 存 ")]):e._e(),t("el-button",{on:{click:function(t){e.showModelThis=!1}}},[e._v(e._s("007"==e.id?"关 闭":"取 消"))])],1)],1)],1)],1)}),[],!1,null,"5ea09a60",null);t.default=r.exports},bada:function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=r("ade3"),s=(r("96cf"),r("7db0"),r("d3b7"),r("f5ed")),i=r("9f53"),o=r("a2b6"),l=r("2914"),c=[{prop:"returnCode",label:"退货单编号",span:7},{prop:"status",label:"退货单状态",_slot_:"status",span:5},{prop:"order_type",label:"订单类型",_slot_:"order_type",span:6},{prop:"apply_name",label:"创建人",span:6},{prop:"supplierName",label:"销售方公司",_slot_:"supplierName",span:12},{prop:"companyName",label:"购买方公司",_slot_:"companyName",span:12},{prop:"platform_name",label:"所属平台",span:7},{prop:"good_num",label:"购买数量",span:5},{prop:"send_num",label:"已发数量",span:6},{prop:"wsend_num",label:"未发数量",span:6},{prop:"addtime",label:"创建时间",span:7},{prop:"send_type",label:"发货类型",_slot_:"send_type",span:5},{prop:"error_msg",label:"退货原因",span:12},{prop:"remark",label:"备注",span:24},{prop:"addrinfo",label:"发货申请信息",_slot_:"addrinfo",span:24}];s={name:"sellReturnDetail",mixins:[s.a,i.a],components:{comExamForm:l.default},computed:{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"sellReturnDetail"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}},data:function(){var e={activeTabs:"1",showColumns:c,statusOptions:[{value:"1",label:"待业务审批"},{value:"2",label:"待专员审批"},{value:"3",label:"待主管审批"},{value:"4",label:"退货完成"},{value:"5",label:"业务驳回"},{value:"6",label:"采购驳回"},{value:"7",label:"专员审批不通过"}],orderOptions:[{id:"1",label:"线上商品销售"},{id:"2",label:"项目线上商品销售"},{id:"3",label:"咨询单销售"},{id:"4",label:"项目咨询单销售"}],sitem:null,activeNames:["0","1","2","3","4","5"]};return Object(n.a)(e,"sitem",null),Object(n.a)(e,"status",""),Object(n.a)(e,"statusList",[{value:"1",label:"待验货"},{value:"2",label:"待验货审核"},{value:"3",label:"待业务审核"}]),Object(n.a)(e,"newTime",""),Object(n.a)(e,"loading",!1),Object(n.a)(e,"queryId",""),e},mounted:function(){this.queryId=this.$route.query.id,this.initData()},methods:{statusConfirm:function(e,t,r){var n=this;return Object(a.a)(regeneratorRuntime.mark((function s(){return regeneratorRuntime.wrap((function(s){for(;;)switch(s.prev=s.next){case 0:n.$confirm("确定要".concat(t,"?"),{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(a.a)(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,n.setstatus(e,t,r);case 2:case"end":return a.stop()}}),a)})))).catch((function(){}));case 1:case"end":return s.stop()}}),s)})))()},getNewTime:function(){this.newTime=(new Date).valueOf()},examForm:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){var a;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t.loading){r.next=5;break}return a="1"===e.state?"2":"5",e.state,r.next=5,t.statusConfirm(a,"提交审核结果",e.remark);case 5:case"end":return r.stop()}}),r)})))()},dirExamForm:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){var a;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t.loading){r.next=5;break}return a="1"===e.state?"4":"2",e.state,r.next=5,t.statusConfirm(a,"提交审核结果",e.remark);case 5:case"end":return r.stop()}}),r)})))()},setstatus:function(e,t){var r=arguments,n=this;return Object(a.a)(regeneratorRuntime.mark((function a(){var s,i;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return s=2<r.length&&void 0!==r[2]?r[2]:"",s={returnCode:n.qid,status:e,remark:s},a.next=4,o.a.status(s);case 4:if((i=a.sent)&&0===i.code)return n.$notify.success({title:t+"成功!",message:""}),a.next=9,n.initData();a.next=11;break;case 9:a.next=17;break;case 11:if(i&&100<=i.code&&i.code<=104)return a.next=14,n.logout();a.next=16;break;case 14:a.next=17;break;case 16:n.$message.warning(i.message);case 17:case"end":return a.stop()}}),a)})))()},initData:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,o.a.detail({returnCode:e.qid});case 2:if(!(r=t.sent)||0!==r.code||!r.data){t.next=9;break}e.status=r.data.status,e.sitem=r.data,e.getNewTime(),t.next=15;break;case 9:if(r&&100<=r.code&&r.code<=104)return t.next=12,e.logout();t.next=14;break;case 12:t.next=15;break;case 14:e.$message.warning(r.message);case 15:case"end":return t.stop()}}),t)})))()}}},i=r("2877"),l=Object(i.a)(s,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("div",{staticClass:"sellReturnDetail pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?t("div",{staticStyle:{width:"100%"}},[t("el-tabs",{model:{value:e.activeTabs,callback:function(t){e.activeTabs=t},expression:"activeTabs"}},[t("el-tab-pane",{attrs:{label:"业务详情",name:"1"}},[t("el-collapse",{staticStyle:{margin:"-18px 0 0 0"},model:{value:e.activeNames,callback:function(t){e.activeNames=t},expression:"activeNames"}},[t("el-collapse-item",{attrs:{title:"退货单详情",name:"0"}},[e.status?t("show-data-table",{staticStyle:{margin:"0",padding:"0"},attrs:{sitem:e.sitem,columns:e.showColumns}},[t("template",{slot:"status"},[t("el-tag",{attrs:{size:"mini"},domProps:{textContent:e._s((e.statusOptions.find((function(t){return t.value==e.sitem.status}))||{}).label||"--")}})],1),t("template",{slot:"order_type"},[t("el-tag",{attrs:{size:"mini"},domProps:{textContent:e._s((e.orderOptions.find((function(t){return t.id==e.sitem.order_type}))||{}).label||"--")}})],1),t("template",{slot:"supplierName"},[t("span",[e._v(e._s(e.sitem.supplier_name))]),t("el-popover",{attrs:{placement:"top",width:"300",trigger:"hover"}},[t("ul",[t("li",[t("span",[e._v("销售方公司编号:")]),t("span",[e._v(e._s(e.sitem.supplierNo))])])]),t("i",{staticClass:"el-icon-warning-outline fr",attrs:{slot:"reference"},slot:"reference"})])],1),t("template",{slot:"companyName"},[t("span",[e._v(e._s(e.sitem.customer_name))]),t("el-popover",{attrs:{placement:"top",width:"300",trigger:"hover"}},[t("ul",[t("li",[t("span",[e._v("购买方公司编号:")]),t("span",[e._v(e._s(e.sitem.customer_code))])])]),t("i",{staticClass:"el-icon-warning-outline fr",attrs:{slot:"reference"},slot:"reference"})])],1),t("template",{slot:"is_active"},["1"===e.sitem.order_type?t("span",[t("span",[e._v(e._s("1"===e.sitem.is_activity?"参与活动":"不参与活动")+"/"+e._s(e.sitem.good_type))])]):t("span",[e._v("--")])]),t("template",{slot:"send_type"},[t("el-tag",{attrs:{size:"mini"}},[e._v(e._s("1"===e.sitem.send_type?"直接发货":"2"===e.sitem.send_type?"延迟发货":"--"))])],1),t("template",{slot:"addrinfo"},[e.sitem&&e.sitem.addrinfo&&0<e.sitem.addrinfo.length?t("div",{staticStyle:{padding:"2px 8px 0 0"}},[t("el-table",{attrs:{data:e.sitem.addrinfo,border:"",size:"mini","row-key":"key","max-height":"300px"}},[t("el-table-column",{attrs:{label:"收货人-联系电话-地址","min-width":"300","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.contactor)+"-"+e._s(t.row.mobile)+"-"+e._s(t.row.addr_info)+e._s(t.row.addr)+" ")]}}],null,!1,654494487)}),t("el-table-column",{attrs:{label:"收货总数量",prop:"receipt_quantity",width:"100"}}),t("el-table-column",{attrs:{label:"退货数量",prop:"return_num",width:"100"}}),t("el-table-column",{attrs:{label:"未发货数量",prop:"wsend_num",width:"90"}}),t("el-table-column",{attrs:{label:"已发货数量",prop:"send_num",width:"90"}})],1)],1):t("span",[e._v("--")])])],2):e._e()],1),t("el-collapse-item",{attrs:{title:"商品信息",name:"2"}},[""!==e.newTime?t("show-goods-data-table",{attrs:{newTime:e.newTime,type:e.sitem.order_type,skucode:e.sitem.skuCode,spucode:e.sitem.good_code}}):e._e()],1),e.sitem&&"1"!==e.sitem.order_type&&e.powers.some((function(e){return"043"==e}))&&"1"===e.status?t("el-collapse-item",{attrs:{title:"业务审核",name:"3"}},[e.newTime?t("exam-form",{attrs:{statusList:e.statusList,newTime:e.newTime,disabled:!1,isMust:!1},on:{searchChange:e.examForm}}):e._e()],1):e._e(),!e.sitem||"1"===e.sitem.order_type||"4"!==e.status&&"3"!==e.status&&"2"!==e.status?e._e():t("el-collapse-item",{attrs:{title:"采购专员审批",name:"4"}},[e.newTime?t("com-exam-form",{attrs:{statusList:e.statusList,newTime:e.newTime,sitem:e.sitem,disabled:"4"===e.status||"3"===e.status||!(e.powers.some((function(e){return"024"==e}))&&"2"===e.status),isMust:!1},on:{refresh:e.initData}}):e._e()],1),e.sitem&&"1"!==e.sitem.order_type&&e.powers.some((function(e){return"036"==e}))&&"3"===e.status?t("el-collapse-item",{attrs:{title:"采购主管审批",name:"5"}},[e.newTime?t("exam-form",{attrs:{statusList:e.statusList,newTime:e.newTime,disabled:!1,isMust:!1},on:{searchChange:e.dirExamForm}}):e._e()],1):e._e()],1)],1),t("el-tab-pane",{attrs:{label:"审批记录",name:"2"}},[""!==e.newTime?t("process-time-line",{attrs:{newTime:e.newTime,type:"QRTHD",orderCode:e.queryId}}):e._e()],1)],1)],1):t("div",[t("no-auth")],1)])}),[],!1,null,null,null);t.default=l.exports},bb68:function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=(r("e9c4"),r("96cf"),r("dd3d")),s={name:"specs",props:["showModel","id","sitem"],mixins:[r("9f53").a],data:function(){return{loading:!1,title:"添加规格",showModelThis:this.showModel,select:"1",activeOptions:[],actionList:[],ruleForm:{id:"",spec_name:"",logo_url:""},rulesThis:this.rules,rules:{spec_name:[{required:!0,message:"规格名称不能为空",trigger:"blur"}]}}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis:function(e){e||this.$emit("cancel")}},methods:{initForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,"003"===e.id?(e.title="添加规格",e.rulesThis=e.rules):"005"===e.id?(e.title="修改规格",e.rulesThis=e.rules):(e.title="规格详情",e.rulesThis={}),t.next=4,e.resetForm();case 4:e.loading=!1;case 5:case"end":return t.stop()}}),t)})))()},resetForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$nextTick((function(){var t,r;e.$refs.ruleForm&&(e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),t=(r=e.sitem).id,r=r.spec_name,e.ruleForm={id:t||"",spec_name:r||""})}));case 2:case"end":return t.stop()}}),t)})))()},submitForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.ruleForm.validate(function(){var t=Object(a.a)(regeneratorRuntime.mark((function t(r){var a,s,i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r){t.next=30;break}if(e.loading=!0,a=JSON.parse(JSON.stringify(e.ruleForm)),s={},"003"===e.id)return delete a.id,t.next=8,n.a.add(a);t.next=11;break;case 8:s=t.sent,t.next=14;break;case 11:return t.next=13,n.a.update(a);case 13:s=t.sent;case 14:if(e.loading=!1,!s||0!==s.code){t.next=22;break}i="add"===e.id?"添加成功!":"修改成功!",e.$notify.success({title:i,message:""}),e.showModelThis=!1,e.$emit("refresh"),t.next=28;break;case 22:if(s&&100<=s.code&&s.code<=104)return t.next=25,e.logout();t.next=27;break;case 25:t.next=28;break;case 27:e.$message.warning(s.message);case 28:t.next=32;break;case 30:return t.abrupt("return",!1);case 32:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()}}};r("468d"),r=r("2877"),r=Object(r.a)(s,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:e.title,center:!0,align:"left",top:"18vh",width:"500px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)"},on:{"update:visible":function(t){e.showModelThis=t},close:function(t){e.showModelThis=!1}}},[t("el-card",{staticStyle:{margin:"-20px 0 0 0"}},[t("el-row",{attrs:{gutter:10}},[t("el-col",{attrs:{span:24}},[t("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",rules:e.rulesThis,"label-width":"80px"}},[t("el-form-item",{attrs:{label:"规格名称",prop:"spec_name"}},[t("el-input",{attrs:{disabled:"007"==e.id,placeholder:"规格名称",maxlength:"20"},model:{value:e.ruleForm.spec_name,callback:function(t){e.$set(e.ruleForm,"spec_name",t)},expression:"ruleForm.spec_name"}})],1)],1)],1),t("el-col",{staticStyle:{"text-align":"right"},attrs:{span:24}},["007"!==e.id?t("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("保 存 ")]):e._e(),t("el-button",{on:{click:function(t){e.showModelThis=!1}}},[e._v(e._s("007"==e.id?"关 闭":"取 消"))])],1)],1)],1)],1)}),[],!1,null,"5565e254",null);t.default=r.exports},bd2d:function(e,t,r){},bda4:function(e,t,r){"use strict";r("bffd")},bee9:function(e,t,r){"use strict";r("bd2d")},bf09:function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=(r("96cf"),r("7db0"),r("d3b7"),r("159b"),r("e9c4"),r("3fca")),s=r("9f53"),i={tableFormThis:{post_company:[{required:!1,message:"",trigger:"blur"}],post_code:[{required:!1,message:"",trigger:"blur"}],post_fee:[{required:!1,message:"",trigger:"blur"}],sendtime:[{required:!1,message:"",trigger:"blur"}],send_num:[{required:!1,message:"",trigger:"blur"}],status:[{required:!1,message:"",trigger:"change"}],error_remark:[{required:!1,message:"",trigger:"blur"}]},columns:[{prop:"wsm_in_code",label:"入库单编号",width:"155"},{prop:"sendtype_name",label:"发货方式",width:"90"},{prop:"post_fee",label:"快递费用",width:"100"},{prop:"send_num",label:"发货数量",width:"110"},{prop:"status_name",label:"入库状态",width:"120"},{prop:"post_company",label:"快递公司",width:"125"},{prop:"post_code",label:"快递单号"},{prop:"sendtime",label:"发货时间",width:"145"}]},o=r("19d7");s={name:"allot",props:["id","sitem","newTime"],mixins:[s.a],components:{wsmInOrderModel:o.default},computed:{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"purchaseOrderDetail"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}},data:function(){return{showModel:!1,isDetail:!1,modelId:0,options:[],status:"",loading:!1,modelSitem:null,wsm_in_code:"",tableForm:{product_go:[]},tableFormThis:i.tableFormThis,statusOptions:[{value:"0",label:"待发货"},{value:"1",label:"待验货"},{value:"2",label:"待审核"},{value:"3",label:"待入库"},{value:"4",label:"无退货入库成功"}],columns:i.columns}},watch:{newTime:function(e){e&&this.initForm()}},mounted:function(){this.initForm()},methods:{initForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,e.modelSitem=null,t.next=4,e.resetForm();case 4:e.loading=!1;case 5:case"end":return t.stop()}}),t)})))()},resetForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$nextTick((function(){var t,r;e.$refs.tableForm&&(e.$refs.tableForm.resetFields(),e.$refs.tableForm.clearValidate(),t=(r=e.sitem).status,r=r.child,e.status=t,e.tableForm.product_go=r||[],e.tableForm.product_go.forEach((function(t){t.sendtype_name="1"===t.sendtype?"公司自提":"2"===t.sendtype?"供应商包邮":"--",t.status_name=(e.statusOptions.find((function(e){return e.value==t.status}))||{}).label||"--"})))}));case 2:case"end":return t.stop()}}),t)})))()},openModal:function(){this.modelSitem=this.sitem,this.showModel=!0},submitForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r,a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.loading=!0,r=e.getGoodList(),r={allot_code:e.sitem.allot_code,good:r},a={},"3"==e.status)return t.next=8,n.a.allotgetin(r);t.next=11;break;case 8:a=t.sent,t.next=14;break;case 11:return t.next=13,n.a.allotvesio(r);case 13:a=t.sent;case 14:if(e.loading=!1,!a||0!==a.code){t.next=20;break}e.$notify.success({title:"3"==e.status?"入库方验货结果提交成功!":"入库方验货审核结果提交成功",message:""}),e.$emit("refresh"),t.next=26;break;case 20:if(a&&100<=a.code&&a.code<=104)return t.next=23,e.logout();t.next=25;break;case 23:t.next=26;break;case 25:e.$message.warning(a.message);case 26:case"end":return t.stop()}}),t)})))()},getGoodList:function(){var e=this,t=JSON.parse(JSON.stringify(this.tableForm.product_go)),r=[];return t.forEach((function(t){var a={good_code:t.type_code,usable_num:t.usable_stock,error_num:t.error_num,error_remark:t.error_remark,error_code:t.error_code};"4"===e.status&&(a.stock_num=t.stock_num),r.push(a)})),r}}},r("5456"),o=r("2877"),r=Object(o.a)(s,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("el-row",{staticClass:"addForm"},[r("el-col",{attrs:{span:24}},[r("el-form",{ref:"tableForm",staticClass:"demo-tableForm product_go",attrs:{model:e.tableForm,rules:e.tableFormThis,size:"mini"}},[r("el-table",{attrs:{data:e.tableForm.product_go,border:"",size:"mini","row-key":"key"}},[e._l(e.columns,(function(e,t){return[r("el-table-column",{key:e.prop+t,attrs:{prop:e.prop,"show-overflow-tooltip":"",label:e.label,width:e.width,"min-width":e.minWidth}})]})),r("el-table-column",{attrs:{fixed:"right",width:"50"},scopedSlots:e._u([{key:"header",fn:function(t){return["1"===e.status&&e.powers.some((function(e){return"028"==e}))||"2"===e.status&&e.powers.some((function(e){return"028"==e}))?r("el-tooltip",{staticClass:"fr",staticStyle:{margin:"3px 0 0 0"},attrs:{effect:"dark",content:"添加",placement:"top"}},[r("i",{staticClass:"el-icon-circle-plus-outline tb-icon",staticStyle:{color:"#63cbe7"},on:{click:function(t){return e.openModal()}}})]):r("span",[e._v("操作")])]}},{key:"default",fn:function(t){return[e.powers.some((function(e){return"007"==e}))?r("el-tooltip",{attrs:{effect:"dark",content:"详情",placement:"top"}},[r("i",{staticClass:"el-icon-view tb-icon",on:{click:function(r){return e.routeGoto("wsmInOrderDetail",{id:t.row.wsm_in_code})}}})]):e._e()]}}])})],2)],1),r("wsm-in-order-model",{attrs:{"show-model":e.showModel,sitem:e.modelSitem},on:{refresh:function(t){e.showModel=!1,e.$emit("refresh")},cancel:function(t){e.showModel=!1}}})],1)],1)}),[],!1,null,"14ea9538",null);t.default=r.exports},bfe2:function(e,t,r){},bffd:function(e,t,r){},c12d:function(e,t,r){"use strict";var a=r("1b69"),n="admin/";t.a={list:function(e,t){return Object(a.a)(n+"crontablist",e,"post",t)},detail:function(e,t){return Object(a.a)(n+"consultzxinfo",e,"post",t)},good_detail:function(e,t){return Object(a.a)(n+"consultfeadinfo",e,"post",t)},good_add:function(e,t){return Object(a.a)(n+"consultfeed",e,"post",t)},good_update:function(e,t){return Object(a.a)(n+"consultfeededit",e,"post",t)},good_list:function(e,t){return Object(a.a)(n+"consultbidlist",e,"post",t)},update:function(e,t){return Object(a.a)(n+"customaredit",e,"post",t)},add:function(e,t){return Object(a.a)(n+"customarcreate",e,"post",t)},delete:function(e,t){return Object(a.a)(n+"customardelete",e,"post",t)},status:function(e,t){return Object(a.a)(n+"resultstatu",e,"post",t)}}},c231:function(e,t,r){},c28a:function(e,t,r){},c3a4:function(e,t,r){},c420:function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=r("ade3"),s=r("5530"),i=(r("96cf"),r("7db0"),r("d3b7"),r("a9e3"),r("f5ed")),o=r("1fd2"),l=r("6d88"),c=r("1842"),u=r("0ee5"),d=r("2f62"),p=r("9f53");l={name:"Account",components:{addEdit:l.default,resetPassword:c.default},mixins:[i.a,p.a],computed:Object(s.a)(Object(s.a)({},Object(d.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"account"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),data:function(){var e={sitem:null,statusOptions:[{id:"0",label:"禁用"},{id:"1",label:"启用"}],statusList:u.a,loading:!0,showModel:!1,isDetail:!1,modelId:0,parmValue:{name:"",username:"",status:"",page:1,size:15},tableData:[],passwordModel:!1,passwordModelId:0,isPasswordDetail:!1};return Object(n.a)(e,"tableData",[]),Object(n.a)(e,"table",{stripe:!0,border:!0,_defaultHeader_:["setcol"]}),Object(n.a)(e,"pageInfo",{size:15,curr:1,total:0}),Object(n.a)(e,"columns",[{prop:"nickname",label:"真实姓名",width:"110px"},{prop:"role_name",label:"角色名称",width:"110px"},{prop:"mobile",label:"联系电话",width:"110px"},{prop:"depart_info",label:"所在部门",_slot_:"depart_info"},{prop:"email",label:"邮箱"},{prop:"status",label:"状态",_slot_:"status",width:"70px"},{prop:"addtime",label:"创建时间",sortable:!0,width:"140px"},{prop:"",label:"操作",fixed:"right",_noset_:!0,width:"140px",_slot_:"operation"}]),e},mounted:function(){this.searchList()},methods:{restSearch:function(){this.parmValue={name:"",username:"",status:"",page:1,size:15},this.pageInfo={size:15,curr:1,total:0},this.searchList()},openModal:function(e,t,r){this.showModel=!0,this.modelId=e,this.isDetail=t,this.sitem=r},openPasswordModal:function(e,t){this.passwordModel=!0,this.passwordModelId=e,this.isPasswordDetail=t},deleteById:function(e,t){var r=this;return Object(a.a)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r.$confirm("确定要删除?",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(a.a)(regeneratorRuntime.mark((function a(){var n,s;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return n={id:e,status:"1"===t?"0":"1"},a.next=3,o.a.status(n);case 3:if(!(s=a.sent)||0!==s.code){a.next=9;break}r.$notify.success({title:"删除成功",message:""}),r.searchList(),a.next=15;break;case 9:if(s&&100<=s.code&&s.code<=104)return a.next=12,r.logout();a.next=14;break;case 12:a.next=15;break;case 14:r.$message.warning(s.message);case 15:case"end":return a.stop()}}),a)})))).catch((function(){}));case 2:case"end":return n.stop()}}),n)})))()},searchList:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,t.next=3,o.a.list(e.parmValue);case 3:if(!(r=t.sent)||0!==r.code||!r.data){t.next=9;break}e.tableData=r.data.list,e.pageInfo.total=Number(r.data.count),t.next=16;break;case 9:if(r&&100<=r.code&&r.code<=104)return t.next=12,e.logout();t.next=14;break;case 12:t.next=16;break;case 14:e.tableData=[],e.pageInfo.total=0;case 16:e.loading=!1;case 17:case"end":return t.stop()}}),t)})))()},statusConfirm:function(e,t){var r=this;return Object(a.a)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r.$confirm("确定要改为".concat("1"===t?"禁用":"启用","?"),{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(a.a)(regeneratorRuntime.mark((function a(){var n,s;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return r.loading=!0,n={id:e,status:"1"===t?"0":"1"},a.next=4,o.a.status(n);case 4:if((s=a.sent)&&0===s.code)return r.loading=!1,r.$notify.success({title:"状态修改成功!",message:""}),a.next=10,r.searchList();a.next=12;break;case 10:a.next=18;break;case 12:if(s&&100<=s.code&&s.code<=104)return a.next=15,r.logout();a.next=17;break;case 15:a.next=18;break;case 17:r.$message.warning(s.message);case 18:case"end":return a.stop()}}),a)})))).catch((function(){}));case 2:case"end":return n.stop()}}),n)})))()}}},r("8231"),c=r("2877"),i=Object(c.a)(l,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"account pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?r("div",[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?r("ex-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{table:e.table,data:e.tableData,columns:e.columns,page:e.pageInfo,size:e.size},on:{"page-curr-change":e.handlePageChange,"page-size-change":e.handleSizeChange,"screen-reset":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()},"screen-submit":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},scopedSlots:e._u([{key:"table-header",fn:function(t){return[r("div",{staticStyle:{width:"100%"}},[r("el-row",{staticStyle:{padding:"0 0 0 80px"}},[r("el-col",{attrs:{span:24}},[r("el-col",{staticStyle:{width:"120px"},attrs:{span:4}},[r("el-select",{staticStyle:{width:"100%"},attrs:{size:e.searchSize,filterable:"",clearable:"",placeholder:"账号状态"},on:{change:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.parmValue.status,callback:function(t){e.$set(e.parmValue,"status",t)},expression:"parmValue.status"}},e._l(e.statusList,(function(e){return r("el-option",{key:"status"+e.code,attrs:{label:e.name,value:e.code}})})),1)],1),r("el-col",{staticStyle:{width:"150px",padding:"0 0 0 10px"},attrs:{span:4}},[r("el-input",{attrs:{size:e.searchSize,maxlength:40,placeholder:"业务员姓名"},model:{value:e.parmValue.name,callback:function(t){e.$set(e.parmValue,"name",t)},expression:"parmValue.name"}})],1),r("el-col",{staticStyle:{width:"160px",padding:"0 0 0 10px"},attrs:{span:4}},[r("el-input",{attrs:{size:e.searchSize,maxlength:40,placeholder:"手机号"},model:{value:e.parmValue.username,callback:function(t){e.$set(e.parmValue,"username",t)},expression:"parmValue.username"}})],1),r("el-col",{staticStyle:{width:"54px"},attrs:{span:4}},[r("el-button",{staticClass:"fr",attrs:{size:e.searchSize,type:"primary",icon:"el-icon-search"},on:{click:e.searchList}})],1),r("el-col",{staticStyle:{width:"66px"},attrs:{span:4}},[r("el-button",{staticClass:"fr",attrs:{type:"warning",size:e.searchSize},on:{click:e.restSearch}},[e._v(" 重置 ")])],1),r("el-col",{staticStyle:{width:"66px",float:"right"},attrs:{span:3}},[r("el-button",{staticStyle:{float:"right","margin-left":"5px"},attrs:{size:e.searchSize,type:"primary"},on:{click:e.searchList}},[e._v(" 刷新 ")])],1)],1)],1)],1)]}},{key:"depart_info",fn:function(t){return t=t.scope,e._l(t.row.depart_info,(function(t,a){return r("el-tag",{key:t+a,staticStyle:{margin:"0 3px 0 0"},attrs:{size:e.tablebtnSize,type:"''"}},[e._l(t,(function(t,n){return r("span",{key:t+a+n},[r("span",{directives:[{name:"show",rawName:"v-show",value:0<n,expression:"cindex > 0"}]},[e._v("/")]),r("span",[e._v(e._s(t))])])})),e._v(" "+e._s(t.name))],2)}))}},{key:"status",fn:function(t){var a=t.scope;return[r("el-tag",{attrs:{size:e.tablebtnSize,type:"0"==a.row.status?"warning":""},domProps:{textContent:e._s((e.statusOptions.find((function(e){return e.id==a.row.status}))||{}).label||"--")}})]}},{key:"operation",fn:function(t){var a=t.scope;return[e.powers.some((function(e){return"002"==e}))?r("el-tooltip",{attrs:{effect:"dark",content:"重置密码",placement:"top"}},[r("i",{staticClass:"el-icon-refresh-left tb-icon",on:{click:function(t){return e.openPasswordModal(a.row.id,!1)}}})]):e._e(),e.powers.some((function(e){return"007"==e}))?r("el-tooltip",{attrs:{effect:"dark",content:"详情",placement:"top"}},[r("i",{staticClass:"el-icon-view tb-icon",on:{click:function(t){return e.openModal(a.row.id,!0,a.row)}}})]):e._e(),e.powers.some((function(e){return"005"==e}))?r("el-tooltip",{attrs:{effect:"dark",content:"修改",placement:"top"}},[r("i",{staticClass:"el-icon-edit tb-icon",on:{click:function(t){return e.openModal(a.row.id,!1,a.row)}}})]):e._e(),e.powers.some((function(e){return"004"==e}))&&"1"===a.row.status?r("el-tooltip",{attrs:{effect:"dark",content:"禁用",placement:"top"}},[r("i",{staticClass:"el-icon-video-pause tb-icon",on:{click:function(t){return e.statusConfirm(a.row.id,a.row.status)}}})]):e._e(),e.powers.some((function(e){return"004"==e}))&&"0"===a.row.status?r("el-tooltip",{attrs:{effect:"dark",content:"启用",placement:"top"}},[r("i",{staticClass:"el-icon-video-play tb-icon",on:{click:function(t){return e.statusConfirm(a.row.id,a.row.status)}}})]):e._e()]}}],null,!1,2288877523)}):e._e(),r("add-edit",{attrs:{id:e.modelId,sitem:e.sitem,"show-model":e.showModel,"is-detail":e.isDetail},on:{refresh:e.searchList,cancel:function(t){e.showModel=!1}}}),r("reset-password",{attrs:{id:e.passwordModelId,"show-model":e.passwordModel,"is-detail":e.isPasswordDetail},on:{refresh:e.searchList,cancel:function(t){e.passwordModel=!1}}})],1):r("div",[r("no-auth")],1)])}),[],!1,null,"080b61f6",null);t.default=i.exports},c421:function(e,t,r){"use strict";r.r(t);var a=r("2909"),n=r("1da1"),s=(r("e9c4"),r("d81d"),r("99af"),r("d3b7"),r("159b"),r("c740"),r("96cf"),r("a2b6")),i=r("9f53"),o=r("61f7");i={name:"sellReturn",props:["showModel","id","isDetail","sitem","showModelThis","newTime"],mixins:[i.a],data:function(){return{loading:!1,showModelThis:this.showModel,ruleForm:{orderCode:"",remark:"",errorCode:""},rulesThis:this.rules,rules:{errorCode:[{required:!0,message:"请选择退货原因",trigger:"change"}],remark:[{required:!0,message:"请输入退货备注",trigger:"blur"}]},tableForm:{get_product_go:[]}}},mounted:function(){this.initForm()},watch:{newTime:function(e){e&&this.initForm()}},methods:{errorCode_change:function(e){this.ruleForm.errorCode=e&&e.code?e.code:"",this.$refs.ruleForm.validateField("errorCode")},initForm:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,e.rulesThis=e.rules,t.next=4,e.resetForm();case 4:e.loading=!1;case 5:case"end":return t.stop()}}),t)})))()},resetForm:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$nextTick((function(){var t,r,n;e.$refs.ruleForm&&(e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),n=(r=e.sitem).info,t=r.addrs,r=r.orderCode,(n&&0<n.length?JSON.parse(JSON.stringify(n)):[]).map((function(e){return e.edit=!1,e.return_num=e.return_num||"0",e})),(n=t&&0<t.length?JSON.parse(JSON.stringify(t)):[]).map((function(e){return e.edit=!1,e.return_num=e.return_num||"0",e})),e.ruleForm={orderCode:r||"",remark:"",errorCode:""},e.tableForm={get_product_go:(t=[]).concat.apply(t,Object(a.a)(n))})}));case 2:case"end":return t.stop()}}),t)})))()},submitForm:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.ruleForm.validate(function(){var t=Object(n.a)(regeneratorRuntime.mark((function t(r){var a,n,i,o,l,c,u;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r){t.next=39;break}e.loading=!0,a=JSON.parse(JSON.stringify(e.ruleForm)),u=JSON.parse(JSON.stringify(e.tableForm.get_product_go)),n=!1,o=i=0,l=[],u.forEach((function(e){e.edit&&(n=!0);var t={addrid:e.id,return_num:e.return_num};o+=e.return_num,l.push(t)})),a.addr=l,t.next=12;break;case 12:if(n)return e.$message.warning("地址信息正在编辑,请保存后再试!"),e.loading=!1,t.abrupt("return");t.next=16;break;case 16:if(i!==o)return e.$message.warning("仓库退货总数不等于收货地址总数!"),e.loading=!1,t.abrupt("return");t.next=20;break;case 20:return t.next=22,s.a.add(a);case 22:if(c=t.sent,e.loading=!1,!c||0!==c.code){t.next=31;break}u="add"===e.id?"添加成功":"修改成功",e.$notify.success({title:u,message:""}),e.showModelThis=!1,e.$emit("refresh",!1),t.next=37;break;case 31:if(c&&100<=c.code&&c.code<=104)return t.next=34,e.logout();t.next=36;break;case 34:t.next=37;break;case 36:e.$message.warning(c.message);case 37:t.next=41;break;case 39:return t.abrupt("return",!1);case 41:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()},checkRow:function(e,t){var r;1===t&&(r=(t=this.tableForm.get_product_go[e]).wsend_num,t=t.return_num,Object(o.k)(t)?parseInt(r)<parseInt(t)?this.$message.warning("退货数量不能大于未发货总数量!"):this.tableForm.get_product_go[e].edit=!1:this.$message.warning("退货数量不规范!"))},editRow:function(e,t){-1!==JSON.parse(JSON.stringify(this.tableForm.get_product_go)).findIndex((function(e){e.edit}))?this.$message.warning("请完成其他行的编辑!"):this.tableForm.get_product_go[e].edit=!0}}},r=r("2877"),r=Object(r.a)(i,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("el-row",{attrs:{gutter:10}},[r("el-col",{attrs:{span:24}},[r("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",rules:e.rulesThis,size:"mini","label-width":"80px"}},[r("el-row",{attrs:{gutter:10}},[r("el-col",{attrs:{span:8}},[r("el-form-item",{attrs:{label:"退货原因",prop:"errorCode"}},[r("abnormal-cause",{attrs:{value:e.ruleForm.errorCode,placeholder:"退货原因",type:"5",size:"mini"},on:{searchChange:e.errorCode_change}})],1)],1),r("el-col",{attrs:{span:16}},[r("el-form-item",{attrs:{label:"退货备注",prop:"remark"}},[r("el-input",{attrs:{disabled:e.isDetail,type:"textarea",maxlength:"250","show-word-limit":"",placeholder:"请填写备注"},model:{value:e.ruleForm.remark,callback:function(t){e.$set(e.ruleForm,"remark",t)},expression:"ruleForm.remark"}})],1)],1)],1),r("el-form-item",{attrs:{label:"收货信息",size:"mini",required:""}},[r("el-table",{attrs:{data:e.tableForm.get_product_go,border:"",size:"mini","row-key":"key","max-height":"300px"}},[r("el-table-column",{attrs:{label:"收货人-联系电话-地址","min-width":"300","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.contactor)+"-"+e._s(t.row.mobile)+"-"+e._s(t.row.addr_info)+e._s(t.row.addr)+" ")]}}])}),r("el-table-column",{attrs:{label:"收货总数量",prop:"receipt_quantity",width:"100"}}),r("el-table-column",{attrs:{label:"退货数量",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-form-item",{staticStyle:{margin:"0"},attrs:{size:"mini"}},[r("el-input-number",{attrs:{size:"mini",disabled:!t.row.edit,min:0,max:t.row.wsend_num,precision:0},model:{value:t.row.return_num,callback:function(r){e.$set(t.row,"return_num",r)},expression:"scope.row.return_num"}})],1)]}}])}),r("el-table-column",{attrs:{label:"未发货数量",prop:"wsend_num",width:"90"}}),r("el-table-column",{attrs:{label:"已发货数量",prop:"send_num",width:"90"}}),r("el-table-column",{attrs:{fixed:"right",label:"操作",width:"50"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.edit?e._e():r("el-tooltip",{attrs:{effect:"dark",content:"编辑",placement:"top"}},[r("i",{staticClass:"el-icon-edit tb-icon",on:{click:function(r){return e.editRow(t.$index,1)}}})]),t.row.edit?r("el-tooltip",{attrs:{effect:"dark",content:"保存",placement:"top"}},[r("i",{staticClass:"el-icon-circle-check tb-icon",on:{click:function(r){return e.checkRow(t.$index,1)}}})]):e._e()]}}])})],1)],1)],1)],1),r("el-col",{staticStyle:{"text-align":"right"},attrs:{span:24}},[r("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.submitForm}},[e._v("保 存 ")]),e.isDetail?e._e():r("el-button",{attrs:{size:"mini"},on:{click:function(t){e.showModelThis=!1}}},[e._v("关 闭")])],1)],1)}),[],!1,null,null,null);t.default=r.exports},c462:function(e,t,r){},c466:function(e,t,r){},c4b4:function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=(r("96cf"),r("7db0"),r("d3b7"),r("e9c4"),r("11f6")),s={name:"Account",props:["showModel","sitem","id","type","newTime"],mixins:[r("9f53").a],computed:{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"projectDetail"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}},watch:{newTime:function(e){e&&this.initForm()}},data:function(){return{loading:!1,ruleForm:{projectNo:"",rate:"0"},rulesThis:this.rules,rules:{rate:[{required:!0,validator:function(e,t,r){""===t?r(new Error("项目毛利率不能为空!")):"0"===t||"0."===t||"0.0"===t||"0.00"===t?r(new Error("项目毛利率不能为零!")):r()},trigger:"blur"}]}}},mounted:function(){this.initForm()},methods:{rate_change:function(e){this.ruleForm.rate=e+"",this.$refs.ruleForm.validateField("rate")},initForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,e.company="",e.ruleForm={projectNo:"",rate:"0"},e.rulesThis=e.rules,t.next=6,e.resetForm();case 6:e.loading=!1;case 7:case"end":return t.stop()}}),t)})))()},resetForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$nextTick((function(){var t,r,a;e.$refs.ruleForm&&(e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),t=(a=e.sitem).low_rate,r=a.projectNo,a=a.status,e.status=a||"",e.ruleForm={projectNo:r||"",rate:t||"0"})}));case 2:case"end":return t.stop()}}),t)})))()},submitForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.ruleForm.validate(function(){var t=Object(a.a)(regeneratorRuntime.mark((function t(r){var a,s;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r)return e.loading=!0,a=JSON.parse(JSON.stringify(e.ruleForm)),t.next=5,n.a.rateEdit(a);t.next=21;break;case 5:if(s=t.sent,e.loading=!1,!s||0!==s.code){t.next=13;break}e.$notify.success({title:"设置成功!",message:""}),e.showModelThis=!1,e.$emit("refresh",s.data),t.next=19;break;case 13:if(s&&100<=s.code&&s.code<=104)return t.next=16,e.logout();t.next=18;break;case 16:t.next=19;break;case 18:e.$message.warning(s.message);case 19:t.next=23;break;case 21:return t.abrupt("return",!1);case 23:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()}}};r("5f9d"),r=r("2877"),r=Object(r.a)(s,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("el-form",{ref:"ruleForm",attrs:{model:e.ruleForm,"status-icon":"",size:"mini",rules:e.rulesThis,"label-width":"112px"}},[t("el-row",[t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"项目毛利率",prop:"rate"}},[t("digital-input",{attrs:{values:e.ruleForm.rate,placeholder:"项目毛利率",min:0,max:1e11,position:"right",precision:2,size:"mini",disabled:("5"===e.status||"6"===e.status)&&e.powers&&0<e.powers.length&&e.powers.some((function(e){return"060"==e})),controls:!1,append:"%"},on:{reschange:e.rate_change}})],1)],1),("5"!==e.status||"6"!==e.status)&&e.powers&&0<e.powers.length&&e.powers.some((function(e){return"060"==e}))?t("el-col",{staticStyle:{"text-align":"right"},attrs:{span:12}},[t("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.submitForm}},[e._v("保 存 ")])],1):e._e()],1)],1)}),[],!1,null,"2c88150e",null);t.default=r.exports},c4db:function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=(r("96cf"),r("e9c4"),r("d3b7"),r("159b"),r("a434"),r("b0c0"),r("25f0"),r("99af"),r("11f6")),s=r("9f53"),i=r("92b3");s={name:"Account",props:["showModel","sitem","id","type","newTime"],mixins:[s.a],components:{costFormAddEdit:i.default},watch:{newTime:function(e){e&&this.initForm()}},data:function(){return{loading:!1,tableData:[],costshowModel:!1,costmodelIndex:"",costsitem:{},statusOptions:[{value:"1",label:"竞品"},{value:"2",label:"竞聘"}],pickerOptions:{disabledDate:function(e){return e.getTime()<Date.now()-864e5}},company:"",platform_name:"",ruleForm:{name:"",platform:"",companyNo:"",khNo:[],customer_name:"",budget_total:"0",arrtime:"",endtime:"",use_desc:"",ladder:[]},rulesThis:this.rules,rules:{name:[{required:!0,message:"项目名称不能为空!",trigger:"blur"}],platform:[{required:!0,message:"请选择所属平台",trigger:"change"}],companyNo:[{required:!0,message:"请选择销售方公司",trigger:"change"}],khNo:[{type:"array",required:!0,message:"请选择购买方公司",trigger:"change"}],budget_total:[{required:!0,validator:function(e,t,r){""===t?r(new Error("项目总预算不能为空!")):"0"===t||"0."===t||"0.0"===t||"0.00"===t?r(new Error("项目总预算不能为零!")):r()},trigger:"blur"}],arrtime:[{required:!0,message:"要求到货时间不能为空!",trigger:"change"}],endtime:[{required:!0,message:"咨询截止时间不能为空!",trigger:"change"}],use_desc:[{required:!0,message:"项目用途不能为空",trigger:"blur"}],ladder:[{type:"array",required:!0,message:"至少添加两个商品要求",trigger:"change"}]}}},mounted:function(){this.initForm()},methods:{costrefreshEdit:function(e){var t=this,r=(e=JSON.parse(JSON.stringify(e)),e.index),a=e.id,n=e.budget_price,s=e.num,i=e.cat_name,o=e.good_img,l=e.good_name,c=e.good_type,u=e.cat_id;r+""=="-1"?this.ruleForm.ladder.push(e):this.ruleForm.ladder.forEach((function(e,d){d===parseInt(r)&&(t.ruleForm.ladder[d].id=a,t.ruleForm.ladder[d].budget_price=n,t.ruleForm.ladder[d].num=s,t.ruleForm.ladder[d].good_type=c,t.ruleForm.ladder[d].cat_id=JSON.parse(JSON.stringify(u)),t.ruleForm.ladder[d].cat_name=JSON.parse(JSON.stringify(i)),t.ruleForm.ladder[d].good_name=l,t.ruleForm.ladder[d].good_img=o)})),this.showModel=!1,this.$refs.ruleForm.validateField("ladder")},time_change:function(e,t){var r=this.ruleForm,a=r.arrtime;r=r.endtime;a&&r&&new Date(r).getTime()>=new Date(a).getTime()&&(this.$message.warning("咨询截止时间不能大于要求到货时间!"),1===t?this.ruleForm.arrtime="":2===t&&(this.ruleForm.endtime="")),this.$refs.ruleForm.validateField("arrtime"),this.$refs.ruleForm.validateField("endtime")},platform_codesearchChange:function(e){var t=e.id;e.code,e.label,this.ruleForm.platform=t||"",this.$refs.ruleForm.validateField("platform")},company_idsearchChange:function(e){var t;e&&(e.id,t=e.code,e.label,this.ruleForm.companyNo=t||""),this.$refs.ruleForm.validateField("companyNo")},customerChange:function(e){e&&e.id?(this.ruleForm.khNo=[e.code],this.ruleForm.customer_name=e.label):(this.ruleForm.khNo=[],this.ruleForm.customer_name=""),this.$refs.ruleForm.validateField("khNo")},budget_total_change:function(e){this.ruleForm.budget_total=e+"",this.$refs.ruleForm.validateField("budget_total")},openCostEdit:function(e,t){this.costmodelIndex=e,this.costsitem=t,this.costshowModel=!0},openCostEditDelete:function(e){this.ruleForm.ladder.splice(e,1),this.$refs.ruleForm.validateField("ladder")},initForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,e.company="",e.ruleForm={name:"",platform:"",companyNo:"",khNo:[],customer_name:"",budget_total:"0",arrtime:"",endtime:"",use_desc:"",ladder:[]},e.rulesThis=e.rules,t.next=6,e.resetForm();case 6:e.loading=!1;case 7:case"end":return t.stop()}}),t)})))()},resetForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$nextTick((function(){var t,r,a,n,s,i,o,l,c,u,d,p;e.$refs.ruleForm&&(e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),t=(p=e.sitem).project_name,r=p.budget_total,a=p.ladder,n=p.use_desc,s=p.arrtime,i=p.endtime,o=p.khName,l=p.company,c=p.khNo,u=p.companyNo,d=p.platform_id,p=p.platform_name,e.company=l||"",e.platform_name=p||"",e.ruleForm={name:t||"",platform:d||"",companyNo:u||"",khNo:c?[c]:[],customer_name:o||"",budget_total:r||"0",arrtime:s||"",endtime:i||"",use_desc:n||"",ladder:a&&0<a.length?a:[]},e.ruleForm.ladder.forEach((function(e){e.cat_name="";var t=e.cat_info;t&&0<t.length&&t.forEach((function(t,r){e.cat_name+=0!==r?"_"+t.name:t.name}))})))}));case 2:case"end":return t.stop()}}),t)})))()},submitForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.ruleForm.validate(function(){var t=Object(a.a)(regeneratorRuntime.mark((function t(r){var a,s,i,o,l,c;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r){t.next=39;break}if(e.loading=!0,a=JSON.parse(JSON.stringify(e.ruleForm)),i=a.budget_total,s=a.ladder,i=Math.floor(100*i)/100,a.khNo=a.khNo.toString(),delete a.customer_name,s&&s.length<2)return e.$message.warning("至少添加两个商品要求!"),e.loading=!1,t.abrupt("return");t.next=12;break;case 12:if(o=0,l=[],s.forEach((function(e){var t=JSON.parse(JSON.stringify(e));delete t.id,delete t.index,delete t.is_del,delete t.cat_name,t.cat_id=t.cat_id&&0<t.cat_id.length?t.cat_id[t.cat_id.length-1]:"",l.push(t),t=Math.floor(100*e.budget_price),e=parseInt(e.num);o=Math.floor(100*(t*e/100+o))/100})),i<o)return e.$message.warning("项目总预算不能低于所以商品要求预算总和!"),e.loading=!1,t.abrupt("return");t.next=20;break;case 20:return a.ladder=JSON.parse(JSON.stringify(l)),t.next=23,n.a.add(a);case 23:if(c=t.sent,e.loading=!1,!c||0!==c.code){t.next=31;break}e.$notify.success({title:"添加成功",message:""}),e.showModelThis=!1,e.$emit("refresh",c.data),t.next=37;break;case 31:if(c&&100<=c.code&&c.code<=104)return t.next=34,e.logout();t.next=36;break;case 34:t.next=37;break;case 36:e.$message.warning(c.message);case 37:t.next=41;break;case 39:return t.abrupt("return",!1);case 41:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()}}},r("646f"),i=r("2877"),r=Object(i.a)(s,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("el-row",[r("el-col",{attrs:{span:24}},[r("el-form",{ref:"ruleForm",attrs:{model:e.ruleForm,"status-icon":"",size:"mini",rules:e.rulesThis,"label-width":"112px"}},[r("el-row",[r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"项目名称",prop:"name"}},[r("el-input",{attrs:{placeholder:"项目名称",disabled:"view"===e.type,maxlength:"100"},model:{value:e.ruleForm.name,callback:function(t){e.$set(e.ruleForm,"name",t)},expression:"ruleForm.name"}})],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"所属平台",prop:"platform"}},[r("search-terrace",{attrs:{value:e.ruleForm.platform,disabled:"view"===e.type,size:"mini",isDetail:"view"===e.type,names:e.platform_name,placeholder:"所属平台"},on:{searchChange:e.platform_codesearchChange}})],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"销售方",prop:"companyNo"}},[r("search-work-company",{attrs:{value:e.ruleForm.companyNo,placeholder:"销售方公司",disabled:"view"===e.type,size:"mini",isDetail:"view"===e.type},on:{searchChange:e.company_idsearchChange}})],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"购买方",prop:"khNo"}},[r("search-customer",{attrs:{value:e.ruleForm.khNo,names:e.ruleForm.customer_name,placeholder:"购买方公司",size:"mini",disabled:"view"===e.type,"is-detail":"view"===e.type},on:{searchChange:e.customerChange}})],1)],1),r("el-col",{attrs:{span:8}},[r("el-form-item",{attrs:{label:"项目总预算",prop:"budget_total"}},[r("digital-input",{attrs:{values:e.ruleForm.budget_total,placeholder:"项目总预算",min:0,max:1e11,position:"right",precision:2,size:"mini",disabled:"view"===e.type,controls:!1,append:"元"},on:{reschange:e.budget_total_change}})],1)],1),r("el-col",{attrs:{span:8}},[r("el-form-item",{attrs:{label:"要求到货时间",prop:"arrtime"}},[r("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"date",disabled:"view"===e.type,"value-format":"yyyy-MM-dd","picker-options":e.pickerOptions,placeholder:"要求到货时间"},on:{change:function(t){return e.time_change(t,1)}},model:{value:e.ruleForm.arrtime,callback:function(t){e.$set(e.ruleForm,"arrtime",t)},expression:"ruleForm.arrtime"}})],1)],1),r("el-col",{attrs:{span:8}},[r("el-form-item",{attrs:{label:"咨询截止时间",prop:"endtime"}},[r("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"datetime",disabled:"view"===e.type,"value-format":"yyyy-MM-dd HH:mm:ss","picker-options":e.pickerOptions,placeholder:"要求到货时间"},on:{change:function(t){return e.time_change(t,2)}},model:{value:e.ruleForm.endtime,callback:function(t){e.$set(e.ruleForm,"endtime",t)},expression:"ruleForm.endtime"}})],1)],1),r("el-col",{attrs:{span:24}},[r("el-form-item",{attrs:{label:"项目用途",prop:"use_desc"}},[r("el-input",{attrs:{type:"textarea",rows:2,placeholder:"项目用途",disabled:"view"===e.type,maxlength:"250","show-word-limit":""},model:{value:e.ruleForm.use_desc,callback:function(t){e.$set(e.ruleForm,"use_desc",t)},expression:"ruleForm.use_desc"}})],1)],1),r("el-col",{attrs:{span:24}},[r("el-form-item",{attrs:{label:"商品要求",prop:"ladder"}},[r("el-table",{staticStyle:{width:"100%"},attrs:{data:e.ruleForm.ladder,size:"mini",border:"",stripe:""}},[r("el-table-column",{attrs:{label:"商品阶梯",width:"70px"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.$index+1))]}}])}),r("el-table-column",{attrs:{prop:"good_type",label:"商品类型",width:"80px"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-tag",{attrs:{size:"mini"},domProps:{textContent:e._s((e.statusOptions.find((function(e){return e.value==t.row.good_type}))||{}).label||"--")}})]}}])}),r("el-table-column",{attrs:{prop:"budget_price",label:"预算单价",width:"110"}}),r("el-table-column",{attrs:{prop:"num",label:"购买数量",width:"110"}}),r("el-table-column",{attrs:{prop:"cat_name",label:"商品分类"}}),r("el-table-column",{attrs:{prop:"good_img",label:"图片",width:"50"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.good_img?r("div",{directives:[{name:"viewer",rawName:"v-viewer"}],staticClass:"hover",staticStyle:{width:"20px",height:"20px"}},[r("img",{staticStyle:{display:"inline-block",width:"100%",height:"100%"},attrs:{src:t.row.good_img,alt:""}})]):e._e()]}}])}),r("el-table-column",{attrs:{prop:"good_name",label:"商品名称"}}),"add"===e.type?r("el-table-column",{attrs:{fixed:"right",width:"110"},scopedSlots:e._u([{key:"header",fn:function(t){return[r("span",[e._v("操作")]),r("el-tooltip",{attrs:{effect:"dark",content:"添加阶梯",placement:"top"}},[r("i",{staticClass:"el-icon-circle-plus-outline tb-icon fr",on:{click:function(t){return e.openCostEdit(-1,{})}}})])]}},{key:"default",fn:function(t){return[r("el-tooltip",{attrs:{effect:"dark",content:"修改",placement:"top"}},[r("i",{staticClass:"el-icon-edit tb-icon",on:{click:function(r){return e.openCostEdit(t.$index,t.row)}}})]),r("el-tooltip",{attrs:{effect:"dark",content:"删除",placement:"top"}},[r("i",{staticClass:"el-icon-delete tb-icon",on:{click:function(r){return e.openCostEditDelete(t.$index)}}})])]}}],null,!1,2856051856)}):e._e()],1)],1),r("cost-form-add-edit",{attrs:{index:e.costmodelIndex,"show-model":e.costshowModel,sitem:e.costsitem},on:{refresh:e.costrefreshEdit,cancel:function(t){e.costshowModel=!1}}})],1)],1)],1)],1),"add"===e.type?r("el-col",{staticStyle:{"text-align":"right"},attrs:{span:24}},[r("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.submitForm}},[e._v("保 存 ")])],1):e._e()],1)}),[],!1,null,"3affe228",null);t.default=r.exports},c4e2:function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=r("5530"),s=(r("e9c4"),r("c740"),r("d3b7"),r("159b"),r("96cf"),r("d57f")),i=r("9f53"),o=r("2f62"),l=r("1a95"),c=r("d029");i={name:"financeExamOneForm",mixins:[i.a],props:["id","type","sitem","newTime"],computed:Object(n.a)({},Object(o.b)(["tablebtnSize","searchSize","size"])),components:{setActivePriceForm:l.default,showGoodDataModal:c.a},data:function(){return{status:"",loading:!1,showModel:!1,showGoodModel:!1,showGoodId:"",sfinditem:{},tableData:[]}},watch:{newTime:function(e){e&&this.initForm()}},mounted:function(){this.initForm()},methods:{initForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.loading=!0,e.resetFormData(),e.loading=!1;case 3:case"end":return t.stop()}}),t)})))()},editRefresh:function(e){this.showModel=!1;e=JSON.parse(JSON.stringify(e));var t=e.skuCode,r=(e=e.activity_price,this.tableData.findIndex((function(e){return e.skuCode===t})));-1!==r&&(this.tableData[r].activity_price=e,this.$set(this.tableData,r,this.tableData[r]))},showGoodModelFun:function(e){this.showGoodModel=!0,this.showGoodId=e},openModal:function(e){this.sfinditem=JSON.parse(JSON.stringify(e)),this.showModel=!0},resetFormData:function(){this.tableData=[];var e=this.sitem,t=e.info;e=e.status;this.status=e||"",this.tableData=t&&0<t.length?JSON.parse(JSON.stringify(t)):[]},submitForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r,a,n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,r=e.sitem.activity_code,r={activity_code:r||"",good_list:[]},n=JSON.parse(JSON.stringify(e.tableData)),a=[],n.forEach((function(e){e={id:e.id,activity_price:e.activity_price},a.push(e)})),r.good_list=JSON.parse(JSON.stringify(a)),t.next=9,s.a.setActivity(r);case 9:n=t.sent,e.loading=!1,n&&0===n.code&&(e.$notify.success({title:"提交成功!",message:""}),e.$emit("refresh",!0));case 12:case"end":return t.stop()}}),t)})))()}}},r("f489"),n=r("2877"),o=Object(n.a)(i,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"finance-exam-one-form"},[r("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData,stripe:"",border:"",size:"mini"}},[r("el-table-column",{attrs:{prop:"skuCode",label:"商品编码","show-overflow-tooltip":"",width:"170"}}),r("el-table-column",{attrs:{prop:"good_name",label:"商品名称","show-overflow-tooltip":""}}),r("el-table-column",{attrs:{prop:"activity_stock",label:"活动库存",width:"100","show-overflow-tooltip":""}}),r("el-table-column",{attrs:{prop:"moq_num",label:"起订量",width:"100","show-overflow-tooltip":""}}),r("el-table-column",{attrs:{prop:"cost_price",label:"成本单价(元)",width:"100","show-overflow-tooltip":""}}),r("el-table-column",{attrs:{prop:"sale_price",label:"非活动价(元)",width:"100","show-overflow-tooltip":""}}),r("el-table-column",{attrs:{prop:"activity_price",label:"活动价(元)",width:"100","show-overflow-tooltip":""}}),r("el-table-column",{attrs:{fixed:"right",width:"80"},scopedSlots:e._u([{key:"header",fn:function(t){return[r("span",[e._v("操作")])]}},{key:"default",fn:function(t){return[r("el-tooltip",{attrs:{effect:"dark",content:"编辑成本",placement:"top"}},[r("i",{staticClass:"el-icon-edit tb-icon",on:{click:function(r){return e.openModal(t.row)}}})]),r("el-tooltip",{attrs:{effect:"dark",content:"查看商品信息",placement:"top"}},[r("i",{staticClass:"el-icon-view tb-icon",on:{click:function(r){return e.showGoodModelFun(t.row.skuCode)}}})])]}}])})],1),r("set-active-price-form",{attrs:{sitem:e.sfinditem,showModel:e.showModel},on:{refresh:e.editRefresh,cancel:function(t){e.showModel=!1}}}),r("show-good-data-modal",{attrs:{"show-model":e.showGoodModel,skuCode:e.showGoodId},on:{cancel:function(t){e.showGoodModel=!1}}}),r("el-col",{staticStyle:{"text-align":"right",padding:"15px 0 15px 0","border-top":"1px solid #dcdfe6"},attrs:{span:24}},[r("el-button",{attrs:{size:"mini",type:"primary"},on:{click:e.submitForm}},[e._v("保 存 ")])],1)],1)}),[],!1,null,"2eb5472b",null);t.default=o.exports},c521:function(e,t,r){"use strict";r("d1a6")},c717:function(e,t,r){"use strict";var a=r("1b69"),n="admin/";t.a={add:function(e,t){return Object(a.a)(n+"supplercreate",e,"post",t)},delete:function(e,t){return Object(a.a)(n+"supplerdelete",e,"post",t)},list:function(e,t){return Object(a.a)(n+"supplerlist",e,"post",t)},update:function(e,t){return Object(a.a)(n+"suppleredit",e,"post",t)},status:function(e,t){return Object(a.a)(n+"supplerstatus",e,"post",t)},detail:function(e,t){return Object(a.a)(n+"supplerinfo",e,"post",t)},kadd:function(e,t){return Object(a.a)(n+"keepbcreate",e,"post",t)},kdelete:function(e,t){return Object(a.a)(n+"keepbdelete",e,"post",t)},klist:function(e,t){return Object(a.a)(n+"keepblist",e,"post",t)},kstatus:function(e,t){return Object(a.a)(n+"keepbstatus",e,"post",t)},kdetail:function(e,t){return Object(a.a)(n+"keepbinfo",e,"post",t)},kupdate:function(e,t){return Object(a.a)(n+"keepbedit",e,"post",t)}}},c73d:function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=r("5530"),s=(r("e9c4"),r("c740"),r("d3b7"),r("159b"),r("96cf"),r("d57f")),i=r("9f53"),o=r("2f62"),l=r("1a95"),c=r("d029");i={name:"financeExamOneForm",mixins:[i.a],props:["id","type","sitem","newTime"],computed:Object(n.a)({},Object(o.b)(["tablebtnSize","searchSize","size"])),components:{setActivePriceForm:l.default,showGoodDataModal:c.a},data:function(){return{status:"",ruleForm:{status:"1",remark:""},rulesThis:this.rules,rules:{status:[{required:!0,message:"请选择审核状态!",trigger:"change"}],remark:[{required:!0,message:"审核备注不能为空!",trigger:"blur"},{min:1,max:250,message:"长度在 1 到 250 个字符",trigger:"blur"}]},options:[{value:"0",label:"待审核"},{value:"1",label:"通过"},{value:"2",label:"驳回"}],loading:!1,showModel:!1,sfinditem:{},tableData:[],showGoodModel:!1,showGoodId:"",multipleSelection:[]}},watch:{newTime:function(e){e&&this.initForm()}},mounted:function(){this.initForm()},methods:{initForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,e.resetFormData(),e.rulesThis=e.rules,t.next=5,e.resetForm();case 5:e.statusChange(),e.loading=!1;case 7:case"end":return t.stop()}}),t)})))()},handleSelectionChange:function(e){this.multipleSelection=e},showGoodModelFun:function(e){this.showGoodModel=!0,this.showGoodId=e},editRefresh:function(e){this.showModel=!1;e=JSON.parse(JSON.stringify(e));var t=e.skuCode,r=(e=e.activity_price,this.tableData.findIndex((function(e){return e.skuCode===t})));-1!==r&&(this.tableData[r].activity_price=e,this.$set(this.tableData,r,this.tableData[r]))},openModal:function(e){this.sfinditem=JSON.parse(JSON.stringify(e)),this.showModel=!0},statusChange:function(){this.rulesThis.remark[0].required="2"===this.ruleForm.status},submitForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.ruleForm.validate(function(){var t=Object(a.a)(regeneratorRuntime.mark((function t(r){var a,n,s;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r){t.next=5;break}a=e.ruleForm,n=a.status,s=a.remark,e.multipleSelection&&0<e.multipleSelection.length?e.tableData.forEach((function(t,r){-1!==e.multipleSelection.findIndex((function(e){return e.id===t.id}))&&(e.tableData[r].status=n,e.tableData[r].remark=s,e.$set(e.tableData,r,e.tableData[r]))})):e.$message.warning("请选择商品!"),t.next=7;break;case 5:return t.abrupt("return",!1);case 7:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()},resetFormData:function(){this.tableData=[];var e=this.sitem,t=e.info;e=e.status;this.status=e||"",this.tableData=t&&0<t.length?JSON.parse(JSON.stringify(t)):[]},resetForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$nextTick((function(){e.$refs.ruleForm&&(e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),e.ruleForm={status:"1",remark:""})}));case 2:case"end":return t.stop()}}),t)})))()},submitTable:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r,a,n,i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.loading=!0,r=e.sitem.activity_code,r={activity_code:r||"",good_list:[]},i=JSON.parse(JSON.stringify(e.tableData)),a=!0,n=[],i.forEach((function(e){"1"!==e.status&&"2"!==e.status&&(a=!1),e={id:e.id,status:e.status,remark:e.remark},n.push(e)})),a){t.next=11;break}return e.$message.warning("部分商品未审核!"),e.loading=!1,t.abrupt("return");case 11:return r.good_list=JSON.parse(JSON.stringify(n)),t.next=14,s.a.status(r);case 14:i=t.sent,e.loading=!1,i&&0===i.code&&(e.$notify.success({title:"提交成功!",message:""}),e.$emit("refresh",!0));case 17:case"end":return t.stop()}}),t)})))()}}},r("9187"),n=r("2877"),o=Object(n.a)(i,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"finance-exam-three-form"},[r("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",rules:e.rulesThis,size:"mini","label-width":"90px"}},[r("el-row",[r("el-col",{attrs:{span:8}},[r("el-form-item",{attrs:{label:"审核状态",prop:"status"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"审核状态"},on:{change:e.statusChange},model:{value:e.ruleForm.status,callback:function(t){e.$set(e.ruleForm,"status",t)},expression:"ruleForm.status"}},e._l(e.options,(function(e){return r("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"审核备注",prop:"remark"}},[r("el-input",{attrs:{placeholder:"审核备注",maxlength:"100"},model:{value:e.ruleForm.remark,callback:function(t){e.$set(e.ruleForm,"remark",t)},expression:"ruleForm.remark"}})],1)],1),r("el-col",{attrs:{span:4}},[r("el-button",{staticStyle:{float:"right"},attrs:{size:"mini",type:"success"},on:{click:e.submitForm}},[e._v(" 批量设置状态 ")])],1)],1)],1),r("el-table",{ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:e.tableData,stripe:"",border:"","tooltip-effect":"dark",size:"mini"},on:{"selection-change":e.handleSelectionChange}},[r("el-table-column",{attrs:{type:"selection",width:"40"}}),r("el-table-column",{attrs:{prop:"skuCode",label:"商品编码","show-overflow-tooltip":"",width:"170"}}),r("el-table-column",{attrs:{prop:"good_name",label:"商品名称","show-overflow-tooltip":""}}),r("el-table-column",{attrs:{prop:"activity_stock",label:"活动库存",width:"100","show-overflow-tooltip":""}}),r("el-table-column",{attrs:{prop:"moq_num",label:"起订量",width:"100","show-overflow-tooltip":""}}),r("el-table-column",{attrs:{prop:"cost_price",label:"成本单价(元)",width:"100","show-overflow-tooltip":""}}),r("el-table-column",{attrs:{prop:"sale_price",label:"非活动价(元)",width:"100","show-overflow-tooltip":""}}),r("el-table-column",{attrs:{prop:"activity_price",label:"活动价(元)",width:"100","show-overflow-tooltip":""}}),r("el-table-column",{attrs:{prop:"status",label:"审核状态",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-tag",{attrs:{size:"mini",type:"0"==t.row.status?"warning":"2"==t.row.status?"danger":""},domProps:{textContent:e._s((e.options.find((function(e){return e.value==t.row.status}))||{}).label||"--")}})]}}])}),r("el-table-column",{attrs:{prop:"remark",label:"审核备注",width:"100","show-overflow-tooltip":""}}),r("el-table-column",{attrs:{fixed:"right",width:"50"},scopedSlots:e._u([{key:"header",fn:function(t){return[r("span",[e._v("操作")])]}},{key:"default",fn:function(t){return[r("el-tooltip",{attrs:{effect:"dark",content:"查看商品信息",placement:"top"}},[r("i",{staticClass:"el-icon-view tb-icon",on:{click:function(r){return e.showGoodModelFun(t.row.skuCode)}}})])]}}])})],1),r("set-active-price-form",{attrs:{sitem:e.sfinditem,showModel:e.showModel},on:{refresh:e.editRefresh,cancel:function(t){e.showModel=!1}}}),r("show-good-data-modal",{attrs:{"show-model":e.showGoodModel,skuCode:e.showGoodId},on:{cancel:function(t){e.showGoodModel=!1}}}),r("el-col",{staticStyle:{"text-align":"right",padding:"15px 0 15px 0","border-top":"1px solid #dcdfe6"},attrs:{span:24}},[r("el-button",{attrs:{size:"mini",type:"primary"},on:{click:e.submitTable}},[e._v("保 存 ")])],1)],1)}),[],!1,null,"0d7310ee",null);t.default=o.exports},c835:function(e,t,r){"use strict";var a=r("1b69"),n="admin/";t.a={detail:function(e,t){return Object(a.a)(n+"system",e,"post",t)},list:function(e,t){return Object(a.a)(n+"system",e,"post",t)},update:function(e,t){return Object(a.a)(n+"setconf",e,"post",t)}}},c8bae:function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=(r("96cf"),r("7db0"),r("d3b7"),r("f5ed")),s=r("9f53"),i=r("3fca"),o=r("db99"),l=r("7270"),c=r("7951");n={name:"allotDetail",mixins:[n.a,s.a],components:{addForm:o.default,GoStockAudit:l.default,InspectionTable:c.default},computed:{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"allotDetail"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}},data:function(){return{activeTabs:"1",code:"",activeNames:["-1","0","1","2","3","4","5"],sitem:null,status:"",newTime:"",loading:!1,queryId:"",statusOptions:[{value:"0",label:"待发起审核流程"},{value:"1",label:"入库方审核"},{value:"2",label:"出库方发货"},{value:"3",label:"入库方验货"},{value:"4",label:"验货审核"},{value:"5",label:"调拨完成"}]}},mounted:function(){this.status="",this.queryId=this.$route.query.id,this.initData()},methods:{handClick:function(e){this.company=e},statusConfirm:function(e,t){var r=this;return Object(a.a)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r.$confirm("确定要".concat(t,"?"),{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(a.a)(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if("-1"===e)return a.next=3,r.deleteById(t);a.next=5;break;case 3:a.next=7;break;case 5:return a.next=7,r.setStatus(e,t);case 7:case"end":return a.stop()}}),a)})))).catch((function(){}));case 2:case"end":return n.stop()}}),n)})))()},getNewTime:function(){this.newTime=(new Date).valueOf()},deleteById:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){var a;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,i.a.delete({id:t.queryId});case 2:if(!(a=r.sent)||0!==a.code){r.next=8;break}t.$notify.success({title:e+"成功!",message:""}),t.routeGoto("check",{}),r.next=14;break;case 8:if(a&&100<=a.code&&a.code<=104)return r.next=11,t.logout();r.next=13;break;case 11:r.next=14;break;case 13:t.$message.warning(a.message);case 14:case"end":return r.stop()}}),r)})))()},setStatus:function(e,t,r){var n=this;return Object(a.a)(regeneratorRuntime.mark((function a(){var s,o;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return s={id:n.queryId,remark:r||"",status:e},a.next=3,i.a.status(s);case 3:if(o=a.sent,n.loading=!1,!o||0!==o.code){a.next=10;break}n.$notify.success({title:t+"成功!",message:""}),n.initData(),a.next=16;break;case 10:if(o&&100<=o.code&&o.code<=104)return a.next=13,n.logout();a.next=15;break;case 13:a.next=16;break;case 15:n.$message.warning(o.message);case 16:case"end":return a.stop()}}),a)})))()},examForm:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){var a;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t.loading){r.next=4;break}return a="1"===e.state?"2":"0",r.next=4,t.setStatus(a,"提交入库方审核",e.remark);case 4:case"end":return r.stop()}}),r)})))()},initData:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,t.next=3,i.a.detail({id:e.queryId});case 3:if(!(r=t.sent)||0!==r.code||!r.data){t.next=11;break}e.sitem=r.data,e.status=e.sitem.status,e.code=r.data.allot_code,e.getNewTime(),t.next=17;break;case 11:if(r&&100<=r.code&&r.code<=104)return t.next=14,e.logout();t.next=16;break;case 14:t.next=17;break;case 16:e.$message.warning(r.message);case 17:e.loading=!1;case 18:case"end":return t.stop()}}),t)})))()}}},s=r("2877"),o=Object(s.a)(n,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("div",{staticClass:"allotDetail pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?t("div",{staticStyle:{width:"100%"}},[t("div",{staticClass:"detail-page-title"},[t("span",[e._v("调拨编号:")]),e.sitem?t("span",[e._v(e._s(e.sitem.allot_code))]):e._e(),""!==e.status&&"5"!==e.status&&e.powers.some((function(e){return"015"==e}))?t("el-button",{staticClass:"fr",attrs:{type:"danger",plain:"",size:"mini"},on:{click:function(t){return e.statusConfirm("-1","作废该条信息")}}},[e._v("作废该条信息")]):e._e()],1),t("el-tabs",{model:{value:e.activeTabs,callback:function(t){e.activeTabs=t},expression:"activeTabs"}},[t("el-tab-pane",{attrs:{label:"业务详情",name:"1"}},[t("el-collapse",{staticStyle:{margin:"-18px 0 0 0"},model:{value:e.activeNames,callback:function(t){e.activeNames=t},expression:"activeNames"}},[t("el-collapse-item",{attrs:{title:"调拨详情",name:"-1"}},[""!==e.newTime?t("add-form",{attrs:{newTime:e.newTime,sitem:e.sitem,id:e.queryId},on:{refresh:function(t){return e.initData()}}}):e._e()],1),"0"===e.status&&e.powers.some((function(e){return"012"==e}))||"1"===e.status&&e.powers.some((function(e){return"014"==e}))?t("el-collapse-item",{attrs:{title:"发起审核流程",name:"0"}},[t("div",{staticClass:"exam-content"},["0"===e.status&&e.powers.some((function(e){return"012"==e}))?t("el-button",{staticClass:"fr",attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.statusConfirm("1","发起审核流程")}}},[e._v("发起审核流程 ")]):e._e(),"1"===e.status&&e.powers.some((function(e){return"014"==e}))?t("el-button",{staticClass:"fr",attrs:{plain:"",size:"mini"},on:{click:function(t){return e.statusConfirm("0","取消审核流程")}}},[e._v("取消审核流程")]):e._e()],1)]):e._e(),"1"==e.status&&e.powers.some((function(e){return"020"==e}))?t("el-collapse-item",{attrs:{title:"入库方审核",name:"1"}},[""!==e.newTime?t("exam-form",{attrs:{statusList:e.statusList,newTime:e.newTime,disabled:!1,isMust:!1},on:{searchChange:e.examForm}}):e._e()],1):e._e(),""!==e.status&&"0"!==e.status&&"1"!==e.status?t("el-collapse-item",{attrs:{title:"出库方发货",name:"2"}},[""!==e.newTime?t("go-stock-audit",{attrs:{newTime:e.newTime,sitem:e.sitem,id:e.queryId},on:{refresh:function(t){return e.initData()}}}):e._e()],1):e._e(),"3"==e.status?t("el-collapse-item",{attrs:{title:"入库方验货",name:"3"}},[""!==e.newTime?t("inspection-table",{attrs:{newTime:e.newTime,sitem:e.sitem,id:e.queryId},on:{refresh:function(t){return e.initData()}}}):e._e()],1):e._e(),"4"==e.status?t("el-collapse-item",{attrs:{title:"入库方验货审核",name:"4"}},[""!==e.newTime?t("inspection-table",{attrs:{newTime:e.newTime,sitem:e.sitem,id:e.queryId},on:{refresh:function(t){return e.initData()}}}):e._e()],1):e._e()],1)],1),t("el-tab-pane",{attrs:{label:"审批记录",name:"2"}},[""!==e.newTime?t("process-time-line",{attrs:{newTime:e.newTime,type:"DBD",orderCode:e.code}}):e._e()],1)],1)],1):t("div",[t("no-auth")],1)])}),[],!1,null,null,null);t.default=o.exports},c9a0:function(e,t,r){},ca65:function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=r("ade3"),s=r("5530"),i=(r("96cf"),r("7db0"),r("d3b7"),r("d81d"),r("159b"),r("b0c0"),r("a9e3"),r("f5ed")),o=r("9f53"),l=r("74a5"),c=r("2f62"),u=r("b651");i={name:"zxDiffOrder",mixins:[i.a,o.a],computed:Object(s.a)(Object(s.a)({},Object(c.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"zxDiffOrder"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),data:function(){var e={select:"1",input:"",addShowModel:!1,addModelId:"",addIsDetail:!1,customerCode:[],sitem:null,statusOptions:[{id:"0",label:"禁用"},{id:"1",label:"启用"}],statusList:["样品咨询单","线上咨询","线上贵金属","线下咨询","线下贵金属","赠品咨询单","项目竞聘"],loading:!0,showModel:!1,isDetail:!1,modelId:0,parmValue:{zxNo:"",khNo:"",cpName:"",status:"",salesman:"",start:"",end:"",page:1,size:15},tableData:[],passwordModel:!1,passwordModelId:0,isPasswordDetail:!1};return Object(n.a)(e,"tableData",[]),Object(n.a)(e,"table",{stripe:!0,border:!0,_defaultHeader_:["setcol"]}),Object(n.a)(e,"pageInfo",{size:15,curr:1,total:0}),Object(n.a)(e,"columns",u.a),e},mounted:function(){this.searchList()},methods:{timeReturned:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(""!==e.startTime?t.parmValue.start=e.startTime:t.parmValue.start="",""!==e.endTime?t.parmValue.end=e.endTime:t.parmValue.end="",""!==t.parmValue.start&&""!==t.parmValue.end)return t.parmValue.page=1,r.next=6,t.searchList();r.next=6;break;case 6:case"end":return r.stop()}}),r)})))()},restSearch:function(){this.pageInfo={size:15,curr:1,total:0},this.select="1",this.input="",this.customerCode=[],this.parmValue={zxNo:"",khNo:"",cpName:"",status:"",salesman:"",start:"",end:"",page:1,size:15},this.searchList()},customerChange:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return e&&e.id?(t.customerCode=[e.code],t.parmValue.khNo=e.code):(t.customerCode=[],t.parmValue.khNo=""),t.parmValue.page=1,r.next=4,t.searchList();case 4:case"end":return r.stop()}}),r)})))()},openModal:function(e,t){this.showModel=!0,this.modelId=e,this.isDetail=t},addModal:function(e,t){this.addShowModel=!0,this.addModelId=e,this.addIsDetail=t},deleteById:function(e,t){var r=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,r.$confirm("确定要删除?",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(a.a)(regeneratorRuntime.mark((function t(){var a,n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a={id:e},t.next=3,l.a.delete(a);case 3:if(!(n=t.sent)||0!==n.code){t.next=9;break}r.$notify.success({title:"删除成功",message:""}),r.searchList(),t.next=15;break;case 9:if(n&&100<=n.code&&n.code<=104)return t.next=12,r.logout();t.next=14;break;case 12:t.next=15;break;case 14:r.$message.warning(n.message);case 15:case"end":return t.stop()}}),t)})))).catch((function(){}));case 2:case"end":return t.stop()}}),t)})))()},searchList:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(""!==e.parmValue.start&&""===e.parmValue.end||""==e.parmValue.start&&""!=e.parmValue.end)return e.$message.warning("开始时间和结束时间不能为空"),t.abrupt("return");t.next=3;break;case 3:return e.loading=!0,e.parmValue.zxNo="1"===e.select?e.input:"",e.parmValue.salesman="2"===e.select?e.input:"",e.parmValue.cpName="3"===e.select?e.input:"",t.next=9,l.a.list(e.parmValue);case 9:if(!(r=t.sent)||0!==r.code||!r.data){t.next=16;break}e.tableData=r.data.list,e.tableData.map((function(t){return t.sale_price=e.setNum(t.sale_price),t.sale_fee=e.setNum(t.sale_fee),t.class_cat="",t.can&&0<t.can.length&&t.can.forEach((function(e,r){t.class_cat+=0===r?e.name:"/"+e.name})),t})),e.pageInfo.total=Number(r.data.count),t.next=23;break;case 16:if(r&&100<=r.code&&r.code<=104)return t.next=19,e.logout();t.next=21;break;case 19:t.next=23;break;case 21:e.tableData=[],e.pageInfo.total=0;case 23:e.loading=!1;case 24:case"end":return t.stop()}}),t)})))()}}},r("b0c3"),o=r("2877"),s=Object(o.a)(i,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"zxDiffOrder pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?r("div",[r("ex-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{table:e.table,data:e.tableData,columns:e.columns,page:e.pageInfo,size:e.size},on:{"page-curr-change":e.handlePageChange,"page-size-change":e.handleSizeChange,"screen-reset":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()},"screen-submit":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},scopedSlots:e._u([{key:"table-header",fn:function(t){return[r("div",{staticStyle:{width:"100%"}},[r("el-row",{staticStyle:{padding:"0 0 0 80px"}},[r("el-col",{attrs:{span:24}},[r("el-col",{staticStyle:{width:"293px"},attrs:{span:6}},[r("period-date-picker",{attrs:{start:e.parmValue.start,end:e.parmValue.end,type:1,width:"135px",size:e.searchSize},on:{timeReturned:function(t){return e.timeReturned(t)}}})],1),r("el-col",{staticStyle:{width:"300px",padding:"0 0 0 10px"},attrs:{span:4}},[r("el-input",{attrs:{placeholder:"订单编号",size:e.searchSize,maxlength:40},on:{blur:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.parmValue.orderCode,callback:function(t){e.$set(e.parmValue,"orderCode",t)},expression:"parmValue.orderCode"}},[r("el-button",{attrs:{slot:"append",icon:"el-icon-search"},on:{click:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},slot:"append"})],1)],1),r("el-col",{staticStyle:{width:"66px",float:"right"},attrs:{span:3}},[r("el-button",{staticStyle:{float:"right","margin-left":"5px"},attrs:{size:e.searchSize,type:"primary"},on:{click:e.searchList}},[e._v(" 刷新 ")])],1),r("el-col",{staticStyle:{width:"66px",float:"right"},attrs:{span:4}},[r("el-button",{staticClass:"fr",attrs:{type:"warning",size:e.searchSize},on:{click:e.restSearch}},[e._v(" 重置 ")])],1)],1)],1)],1)]}},{key:"status",fn:function(t){var a=t.scope;return[r("el-tag",{attrs:{size:e.tablebtnSize,type:"0"==a.row.status?"warning":""},domProps:{textContent:e._s((e.statusOptions.find((function(e){return e.id==a.row.status}))||{}).label||"--")}})]}},{key:"operation",fn:function(t){var a=t.scope;return[e.powers.some((function(e){return"007"==e}))?r("el-tooltip",{attrs:{effect:"dark",content:"详情",placement:"top"}},[r("i",{staticClass:"el-icon-view tb-icon",on:{click:function(t){return e.routeGoto("zxDiffOrderDetail",{id:a.row.id})}}})]):e._e()]}}],null,!1,3681740302)})],1):r("div",[r("no-auth")],1)])}),[],!1,null,"34bf0060",null);t.default=s.exports},caf4:function(e,t,r){"use strict";r("f59b")},cafe:function(e,t,r){},cb98:function(e,t,r){"use strict";r("184f")},cbac:function(e,t,r){},ccb2:function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=r("5530"),s=(r("96cf"),r("7db0"),r("d3b7"),r("a9e3"),r("e9c4"),r("159b"),r("b0c0"),r("f5ed")),i=r("9f53"),o=r("1b69"),l=function(e,t){return Object(o.a)("admin/goodloglist",e,"post",t)},c=function(e,t){return Object(o.a)("admin/goodstat",e,"post",t)},u=r("ec1b"),d=(u=r.n(u),r("2f62"));s={name:"survey",mixins:[s.a,i.a],components:{countTo:u.a},computed:Object(n.a)(Object(n.a)({},Object(d.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"survey"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),data:function(){return{statusOptions:[{id:"1",label:"增加"},{id:"2",label:"减少"}],stock_code:"",supplier_code:"",parmValue:{companyNo:"",supplier_code:[],stock_code:[],page:1,size:15},stock_list:[{id:"1",icon:"el-icon-box",label:"当前库存",endVal:0},{id:"2",icon:"el-icon-download",label:"待入库",endVal:0},{id:"3",icon:"el-icon-upload2",label:"待出库",endVal:0},{id:"4",icon:"el-icon-shopping-cart-full",label:"可用库存",endVal:0},{id:"5",icon:"el-icon-truck",label:"在途库存",endVal:0}],loading:!0,showModel:!1,isDetail:!1,modelId:0,tableData:[],table:{stripe:!0,border:!0},pageInfo:{size:15,curr:1,total:0},columns:[{prop:"good_log_code",label:"业务编号",width:"160px"},{prop:"action_type_cn",label:"库存来源",width:"90px"},{prop:"type",label:"变化类别",_slot_:"type_status",width:"70px"},{prop:"stock",label:"变动数量",width:"90px"},{prop:"companyNo",label:"业务公司编号",width:"150px"},{prop:"company",label:"业务公司名称","min-width":"150px"},{prop:"code",label:"仓库所在公司编号",width:"150px"},{prop:"name",label:"仓库所在公司名称","min-width":"150px"},{prop:"wsm_code",label:"仓库编号",width:"165px"},{prop:"wsm_name",label:"仓库名称","min-width":"100px"},{prop:"action_name",label:"操作人",width:"70px"},{prop:"reviewer",label:"操作人部门",_slot_:"reviewer",width:"130px"},{prop:"addtime",label:"操作时间",width:"145px",sortable:!0}]}},mounted:function(){this.stock_code="",this.supplier_code="",this.stockList(),this.searchList()},methods:{supplierChange:function(e){e=e.code,this.parmValue.companyNo=e||"",this.parmValue.supplier_code=[],this.supplier_code="",this.parmValue.stock_code=[],this.parmValue.page=1,this.pageInfo.curr=1,this.stockList(),this.searchList()},selectSupplier:function(e){e=e.code,this.parmValue.supplier_code=e?[e]:[],this.supplier_code=e,this.parmValue.stock_code=[],this.stock_code="",this.parmValue.page=1,this.pageInfo.curr=1,this.stockList(),this.searchList()},selectStock:function(e){e=e.code,this.parmValue.stock_code=e?[e]:[],this.stock_code=e||"",this.parmValue.page=1,this.pageInfo.curr=1,this.stockList(),this.searchList()},stockList:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r,a,n,s,i,o,l;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a={companyNo:e.parmValue.companyNo,supplier_code:e.supplier_code,stock_code:e.stock_code},t.next=3,c(a);case 3:if(!(r=t.sent)||0!==r.code||!r.data){t.next=13;break}a=r.data,n=a.intra_stock,s=a.total_stock,i=a.usable_stock,o=a.wait_in_stock,l=a.wait_out_stock,e.stock_list[0].endVal=Number(s),e.stock_list[1].endVal=Number(o),e.stock_list[2].endVal=Number(l),e.stock_list[3].endVal=Number(i),e.stock_list[4].endVal=Number(n),t.next=18;break;case 13:if(r&&100<=r.code&&r.code<=104)return t.next=16,e.logout();t.next=18;break;case 16:t.next=18;break;case 18:case"end":return t.stop()}}),t)})))()},searchList:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r,a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.tableData=[],e.loading=!0,(r=JSON.parse(JSON.stringify(e.parmValue))).supplier_code=e.supplier_code,r.stock_code=e.stock_code,t.next=7,l(r);case 7:if(!(a=t.sent)||0!==a.code||!a.data){t.next=14;break}e.tableData=a.data.list,e.tableData.forEach((function(e){e.empty&&(e.code=e.empty.code,e.wsm_name=e.empty.wsm_name,e.name=e.empty.name)})),e.pageInfo.total=Number(a.data.count),t.next=21;break;case 14:if(a&&100<=a.code&&a.code<=104)return t.next=17,e.logout();t.next=19;break;case 17:t.next=21;break;case 19:e.tableData=[],e.pageInfo.total=0;case 21:e.loading=!1;case 22:case"end":return t.stop()}}),t)})))()}}},r("b656"),i=r("2877"),u=Object(i.a)(s,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"stockWarning pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?r("div",[r("div",{staticStyle:{width:"100%"}},[r("el-row",{staticStyle:{padding:"15px 0 0 0px"}},[r("el-col",{staticStyle:{width:"290px"},attrs:{span:12}},[r("search-work-company",{attrs:{value:e.parmValue.companyNo,names:"",size:e.searchSize,"is-detail":"add"!==e.id,disabled:e.isDetail,placeholder:"业务公司"},on:{searchChange:e.supplierChange}})],1),r("el-col",{staticStyle:{width:"300px","padding-left":"10px"},attrs:{span:12}},[r("search-supplier",{attrs:{size:e.searchSize,placeholder:"供应商公司",disabled:""===e.parmValue.companyNo,value:e.parmValue.supplier_code},on:{searchChange:e.selectSupplier}})],1),r("el-col",{staticStyle:{width:"240px","padding-left":"10px"},attrs:{span:12}},[r("search-stock",{attrs:{isDetail:!0,size:e.searchSize,value:e.parmValue.stock_code,disabled:""===e.supplier_code,placeholder:"出库仓库",isRelation:!0,companyCode:e.supplier_code,names:""},on:{searchChange:e.selectStock}})],1)],1)],1),r("div",{staticClass:"stock-survey clear"},e._l(e.stock_list,(function(t){return r("el-row",{key:t.id,staticStyle:{float:"left"}},[r("el-col",{staticClass:"card",attrs:{span:24}},[r("el-card",{attrs:{shadow:"always"}},[r("i",{staticClass:"icon",class:t.icon}),r("countTo",{staticStyle:{display:"block"},attrs:{startVal:0,endVal:t.endVal,duration:3e3}}),r("p",{staticStyle:{"margin-top":"5px"}},[e._v(e._s(t.label))])],1)],1)],1)})),1),r("ex-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{table:e.table,data:e.tableData,columns:e.columns,page:e.pageInfo,size:e.size},on:{"row-click":e.handClick,"page-curr-change":e.handlePageChange,"page-size-change":e.handleSizeChange,"screen-reset":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()},"screen-submit":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},scopedSlots:e._u([{key:"table-header",fn:function(t){return[r("div",{staticStyle:{width:"100%",height:"30px","line-height":"30px"}},[r("i",{staticClass:"el-icon-s-unfold",staticStyle:{height:"10px"}}),e._v("库存操作记录 ")])]}},{key:"type_status",fn:function(t){var a=t.scope;return[r("el-tag",{attrs:{size:"mini",type:"0"==a.row.type?"warning":""},domProps:{textContent:e._s((e.statusOptions.find((function(e){return e.id==a.row.type}))||{}).label||"--")}})]}},{key:"reviewer",fn:function(t){return t=t.scope,[t.row.item&&0<t.row.item.length?r("el-tag",{attrs:{size:e.tablebtnSize}},e._l(t.row.item,(function(t,a){return r("span",{key:t+a},[e._v(e._s(t))])})),0):e._e()]}}],null,!1,4283997789)})],1):r("div",[r("no-auth")],1)])}),[],!1,null,"94ffe7f0",null);t.default=u.exports},ccb9:function(e,t,r){},ccbc:function(e,t,r){"use strict";r("03dd")},ccd3:function(e,t,r){},cdb9:function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=r("5530"),s=(r("96cf"),r("7db0"),r("d3b7"),r("d81d"),r("159b"),r("99af"),r("b0c0"),r("a9e3"),r("c12d")),i=r("e66a"),o=r("f5ed"),l=r("2f62"),c=r("9f53");o={name:"workbench",mixins:[o.a,c.a],computed:Object(n.a)(Object(n.a)({},Object(l.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"workbench"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),data:function(){return{roleLevel:i.a,loading:!1,showModel:!1,modelId:"000",sitem:{},list1:[],list:[],parmValue:{page:1,size:1e3,status:"1"},statusOptions:[{id:"0",label:"禁用"},{id:"1",label:"启用"}],tableData:[],table:{stripe:!0,border:!0,_defaultHeader_:["setcol"]},pageInfo:{size:15,curr:1,total:0},columns:[{prop:"id",label:"ID"},{prop:"workbench",label:"活动名称"},{prop:"status",label:"状态",sortable:!0,_slot_:"status"},{prop:"creater",label:"创建人"},{prop:"addtime",label:"创建时间",sortable:!0},{prop:"",label:"操作",fixed:"right",_noset_:!0,_slot_:"operation"}]}},mounted:function(){this.searchList()},methods:{restSearch:function(){this.pageInfo={size:1e3,curr:1,total:0},this.parmValue={page:1,size:15,status:"1"},this.searchList()},openModal:function(e,t){this.sitem=e,this.modelId=t,this.showModel=!0},handleTime:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t.parmValue.starttime=e.startTime||"",t.parmValue.endtime=e.endTime||"",""!==t.parmValue.starttime&&""!==t.parmValue.endtime||""===t.parmValue.starttime&&""===t.parmValue.endtime)return t.pageInfo.curr=1,t.parmValue.page=1,r.next=7,t.searchList();r.next=7;break;case 7:case"end":return r.stop()}}),r)})))()},changeStatus:function(e,t){var r=this;return Object(a.a)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r.$confirm("确定要改为".concat("1"===t?"禁用":"启用","?"),{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(a.a)(regeneratorRuntime.mark((function a(){var n,i;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return r.loading=!0,n={id:e,status:"1"===t?"0":"1"},a.next=4,s.a.status(n);case 4:if((i=a.sent)&&0===i.code)return r.loading=!1,r.$notify.success({title:"状态修改成功!",message:""}),a.next=10,r.searchList();a.next=12;break;case 10:a.next=19;break;case 12:if(i&&100<=i.code&&i.code<=104)return a.next=15,r.logout();a.next=17;break;case 15:a.next=19;break;case 17:r.loading=!1,r.$message.warning(i.message);case 19:case"end":return a.stop()}}),a)})))).catch((function(){}));case 2:case"end":return n.stop()}}),n)})))()},deleteItem:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t.$confirm("确定要删除?",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(a.a)(regeneratorRuntime.mark((function r(){var a,n;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a={id:e},r.next=3,s.a.delete(a);case 3:if(!(n=r.sent)||0!==n.code){r.next=9;break}t.$notify.success({title:"删除成功",message:""}),t.searchList(),r.next=15;break;case 9:if(n&&100<=n.code&&n.code<=104)return r.next=12,t.logout();r.next=14;break;case 12:r.next=15;break;case 14:t.$message.warning(n.message);case 15:case"end":return r.stop()}}),r)})))).catch((function(){}));case 2:case"end":return r.stop()}}),r)})))()},imgclick:function(e){e.stopPropagation(),e.preventDefault()},searchList:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r,a,n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,t.next=3,s.a.list(e.parmValue);case 3:if(n=t.sent,r=n.code,n=n.data,0!==r){t.next=14;break}a=n.list,n=n.count,e.list=a,e.list.map((function(e){return e.cat_name="",e.can&&0<e.can.length&&e.can.forEach((function(t,r){e.cat_name+="".concat(0!==r?"_":"").concat(t.name)})),e})),e.list.length,e.pageInfo.total=Number(n),t.next=21;break;case 14:if(100<=r&&r<=104)return t.next=17,e.logout();t.next=19;break;case 17:t.next=21;break;case 19:e.list=[],e.pageInfo.total=0;case 21:e.loading=!1;case 22:case"end":return t.stop()}}),t)})))()}}},r("fb17"),c=r("2877"),n=Object(c.a)(o,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"workbench"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?r("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"workbench-main"},[r("ul",{staticClass:"clear po-ul"},[r("li",{staticClass:"po-li"},[r("div",{staticClass:"taskTitle color1"},[e._v("咨询单任务")]),r("div",{staticClass:"taskList clear"},[e._l(e.list,(function(t){return r("div",{key:t,staticClass:"task-item",on:{click:function(r){return e.routeGoto("workbenchDetail",{id:t.infoNo})}}},[r("ul",{staticClass:"fl item-ul"},[r("li",{staticClass:"fl item-li"},[r("span",{staticClass:"label"},[e._v("任务编号:")]),r("span",{staticClass:"label-main"},[e._v(e._s(t.infoNo))])]),r("li",{staticClass:"fl item-li"},[r("span",{staticClass:"label"},[e._v("截止时间:")]),r("span",{staticClass:"label-main"},[e._v(e._s(t.endtime))])]),r("li",{staticClass:"fl item-li"},[r("span",{staticClass:"label"},[e._v("商品分类:")]),r("span",{staticClass:"label-main"},[e._v(e._s(t.cat_name))])]),r("li",{staticClass:"fl item-li"},[r("span",{staticClass:"label"},[e._v("商品品牌:")]),r("span",{staticClass:"label-main"},[e._v(e._s(t.brand_name))])]),r("li",{staticClass:"fl item-li"},[r("span",{staticClass:"label"},[e._v("商品名称:")]),r("span",{staticClass:"label-main"},[t.good_img?r("img",{directives:[{name:"viewer",rawName:"v-viewer"}],staticClass:"hover",staticStyle:{width:"20px",height:"20px"},attrs:{src:t.good_img,alt:""},on:{click:e.imgclick}}):e._e(),e._v(" "+e._s(t.good_name))])]),r("li",{staticClass:"fl item-li"},[r("span",{staticClass:"label"},[e._v("商品预算:")]),r("span",{staticClass:"label-main"},[e._v(" "+e._s(t.budget_price)+"元/"+e._s(t.num)+e._s(e.unit))])])])])})),r("div",{staticClass:"no-data"},[e._v("暂无数据!")])],2)]),r("li",{staticClass:"po-li"},[r("div",{staticClass:"taskTitle color2"},[e._v("客户指定商品任务")]),r("div",{staticClass:"taskList"},[e._l(e.list1,(function(t){return r("div",{key:t,staticClass:"task-item",on:{click:function(t){return e.routeGoto("workbenchDetail",{id:"INF2203151428199103"})}}},[e._v(" "+e._s(t)+" ")])})),r("div",{staticClass:"no-data"},[e._v("暂无数据!")])],2)])])]):r("no-auth"),r("add-edit",{attrs:{id:e.modelId,"show-model":e.showModel,sitem:e.sitem},on:{refresh:e.searchList,cancel:function(t){e.showModel=!1}}})],1)}),[],!1,null,"6c30bd3e",null);t.default=n.exports},cdbd:function(e,t,r){},cdf1:function(e,t,r){"use strict";r.r(t);var a={props:["showModel"],data:function(){return{loading:!1,icon:"",showModelThis:this.showModel}},watch:{icon:function(e){e&&(this.showModelThis=!1,this.$emit("setVal",e))},showModel:function(e){this.showModelThis=e},showModelThis:function(e){e||this.$emit("cancel")}},methods:{closeModel:function(){}}};r=r("2877"),r=Object(r.a)(a,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:"选择图标",center:!0,align:"left",top:"7vh",width:"840px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)","append-to-body":""},on:{"update:visible":function(t){e.showModelThis=t},close:function(t){e.showModelThis=!1}}},[t("el-card",[t("el-row",{attrs:{gutter:10}},[t("el-col",{attrs:{span:24}},[t("icon-list",{model:{value:e.icon,callback:function(t){e.icon=t},expression:"icon"}})],1),t("el-col",{staticStyle:{"text-align":"right"},attrs:{span:24}},[t("el-button",{on:{click:function(t){e.showModelThis=!1}}},[e._v("取 消")])],1)],1)],1)],1)}),[],!1,null,null,null);t.default=r.exports},ce05:function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=(r("96cf"),r("7db0"),r("d3b7"),r("d81d"),r("e9c4"),r("159b"),r("c740"),r("b8d2")),s=r("9f53"),i={tableFormThis:{type_code:[{required:!1,message:"",trigger:"blur"}],good_name:[{required:!1,message:"",trigger:"blur"}],usable_num:[{required:!1,message:"",trigger:"blur"}],allot_num:[{required:!1,message:"",trigger:"blur"}],error_num:[{required:!1,message:"",trigger:"blur"}],error_code:[{required:!1,message:"",trigger:"change"}],error_remark:[{required:!1,message:"",trigger:"blur"}]},columns:[{prop:"anomalous_numbers",label:"异常数量",show:!0,type:"text"},{prop:"anomalous_reason",label:"异常原因",show:!0,type:"select"},{prop:"anomalous_remark",label:"异常备注",show:!0,type:"text"}]};s={name:"returnCheck",props:["id","newTime","sitem"],mixins:[s.a],computed:{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"returnOrderDetail"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}},data:function(){return{thNo:"",options:[{value:"1",label:"同意"},{value:"2",label:"拒绝"}],status:"",loading:!1,tableForm:{product_go:[]},tableFormThis:i.tableFormThis,voList:[]}},watch:{newTime:function(e){e&&this.initForm()}},mounted:function(){this.initForm()},methods:{initForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,t.next=3,e.resetForm();case 3:e.loading=!1;case 4:case"end":return t.stop()}}),t)})))()},resetForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$nextTick((function(){var t,r,a;e.$refs.tableForm&&(e.voList=[],e.tableForm.product_go=[],e.$refs.tableForm.resetFields(),e.$refs.tableForm.clearValidate(),t=(a=e.sitem).child,r=a.thNo,a=a.status,e.status=a,e.thNo=r,t.map((function(t){t={id:t.id,anomalous_numbers:t.error_num,anomalous_reason:t.error_code,anomalous_reason_code:t.error_code,anomalous_remark:t.error_remark,check_value:"0"===t.status?"1":t.status,check_remark:t.exam_remark,is_del:"0"},e.voList.push(t)})),JSON.parse(JSON.stringify(e.voList)).forEach((function(t){t.edit=!1,e.tableForm.product_go.push(t)})))}));case 2:case"end":return t.stop()}}),t)})))()},submitForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r,a,s,i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=-1,e.tableForm.product_go.forEach((function(e,t){e.edit&&-1===r&&(r=t)})),-1!==r)return e.$message.warning("当前已有商品正在编辑!"),t.abrupt("return");t.next=5;break;case 5:return a=[],JSON.parse(JSON.stringify(e.tableForm)).product_go.map((function(e){e={id:e.id,remark:e.anomalous_remark,status:e.check_value},a.push(e)})),s={thNo:e.thNo,errorlist:a,status:"3"},t.next=11,n.a.check(s);case 11:if(!(i=t.sent)||0!==i.code){t.next=17;break}e.$notify.success({title:i.message,message:""}),e.$emit("refresh"),t.next=23;break;case 17:if(i&&100<=i.code&&i.code<=104)return t.next=20,e.logout();t.next=22;break;case 20:t.next=23;break;case 22:e.$message.warning(i.message);case 23:case"end":return t.stop()}}),t)})))()},checkRow:function(e){var t=this.tableForm.product_go[e],r=t.check_value;t=t.check_remark;"1"!==r&&"2"!==r?this.$message.warning("审核情况不能为空!"):"2"===r&&""===t?this.$message.warning("审核备注不能为空!"):("1"===r&&(this.tableForm.product_go[e].edit=!1),"2"===r&&""!==t&&(this.tableForm.product_go[e].edit=!1))},editRow:function(e){-1!==this.tableForm.product_go.findIndex((function(e){return e.edit}))?this.$message.warning("请完成其他行的编辑!"):this.tableForm.product_go[e].edit=!0},resetRow:function(e){this.tableForm.product_go[e].check_remark="",this.tableForm.product_go[e].check_value="1"}}},r=r("2877"),r=Object(r.a)(s,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("el-row",{staticClass:"addForm"},[r("el-col",{attrs:{span:24}},[r("el-form",{ref:"tableForm",staticClass:"demo-tableForm product_go",attrs:{model:e.tableForm,rules:e.tableFormThis,size:"mini"}},[r("el-table",{attrs:{data:e.tableForm.product_go,border:"",size:"mini","row-key":"key"}},[r("el-table-column",{attrs:{label:"异常数量",prop:"anomalous_numbers"}}),r("el-table-column",{attrs:{label:"异常原因",prop:"anomalous_reason"}}),r("el-table-column",{attrs:{label:"异常备注",prop:"anomalous_remark"}}),r("el-table-column",{attrs:{label:"审核情况",prop:"check_value"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-form-item",{style:t.row.edit?"":"margin:0",attrs:{size:"mini",prop:"product_go."+t.$index+".check_value",rules:e.tableFormThis.check_value}},[r("el-select",{staticStyle:{width:"100%"},attrs:{disabled:!t.row.edit,placeholder:"审核情况"},model:{value:t.row.check_value,callback:function(r){e.$set(t.row,"check_value",r)},expression:"scope.row.check_value"}},e._l(e.options,(function(e){return r("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1)]}}])}),r("el-table-column",{attrs:{label:"审核备注",prop:"check_remark"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-form-item",{style:t.row.edit?"":"margin:0",attrs:{size:"mini",prop:"product_go."+t.$index+".check_remark",rules:e.tableFormThis.check_remark}},[r("el-input",{attrs:{disabled:!t.row.edit,maxlength:"100"},model:{value:t.row.check_remark,callback:function(r){e.$set(t.row,"check_remark",r)},expression:"scope.row.check_remark"}})],1)]}}])}),"2"===e.status&&e.powers&&0<e.powers.length&&e.powers.some((function(e){return"042"==e}))?r("el-table-column",{attrs:{fixed:"right",label:"操作",width:"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.edit?e._e():r("el-tooltip",{attrs:{effect:"dark",content:"编辑",placement:"top"}},[r("i",{staticClass:"el-icon-edit tb-icon",on:{click:function(r){return e.editRow(t.$index)}}})]),t.row.edit?r("el-tooltip",{attrs:{effect:"dark",content:"保存",placement:"top"}},[r("i",{staticClass:"el-icon-circle-check tb-icon",on:{click:function(r){return e.checkRow(t.$index)}}})]):e._e(),r("el-tooltip",{attrs:{effect:"dark",content:"重置",placement:"top"}},[r("i",{staticClass:"el-icon-refresh-left tb-icon",on:{click:function(r){return e.resetRow(t.$index)}}})])]}}],null,!1,3847135684)}):e._e()],1),"2"===e.status&&e.powers&&0<e.powers.length&&e.powers.some((function(e){return"042"==e}))?r("el-col",{staticStyle:{"text-align":"right",padding:"30px 0 10px 0"},attrs:{span:24}},[r("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.submitForm}},[e._v("保 存 ")])],1):e._e()],1)],1)],1)}),[],!1,null,"d6834370",null);t.default=r.exports},cec4:function(e,t,r){"use strict";r("5e16")},cf7c:function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=(r("e9c4"),r("96cf"),r("c835")),s={name:"parameter",props:["showModel","id","sitem"],mixins:[r("9f53").a],data:function(){return{loading:!1,title:"添加系统参数",showModelThis:this.showModel,select:"1",activeOptions:[],actionList:[],ruleForm:{id:"",parameter_name:""},rulesThis:this.rules,rules:{parameter_name:[{required:!0,message:"系统参数名称不能为空",trigger:"blur"}]}}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis:function(e){e||this.$emit("cancel")}},methods:{initForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,"003"===e.id?(e.title="添加系统参数",e.rulesThis=e.rules):"005"===e.id?(e.title="修改系统参数",e.rulesThis=e.rules):(e.title="系统参数详情",e.rulesThis={}),t.next=4,e.resetForm();case 4:e.loading=!1;case 5:case"end":return t.stop()}}),t)})))()},resetForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$nextTick((function(){var t,r;e.$refs.ruleForm&&(e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),t=(r=e.sitem).id,r=r.parameter_name,e.ruleForm={id:t||"",parameter_name:r||""})}));case 2:case"end":return t.stop()}}),t)})))()},submitForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.ruleForm.validate(function(){var t=Object(a.a)(regeneratorRuntime.mark((function t(r){var a,s,i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r){t.next=30;break}if(e.loading=!0,a=JSON.parse(JSON.stringify(e.ruleForm)),s={},"003"===e.id)return delete a.id,t.next=8,n.a.add(a);t.next=11;break;case 8:s=t.sent,t.next=14;break;case 11:return t.next=13,n.a.update(a);case 13:s=t.sent;case 14:if(e.loading=!1,!s||0!==s.code){t.next=22;break}i="add"===e.id?"添加成功!":"修改成功!",e.$notify.success({title:i,message:""}),e.showModelThis=!1,e.$emit("refresh"),t.next=28;break;case 22:if(s&&100<=s.code&&s.code<=104)return t.next=25,e.logout();t.next=27;break;case 25:t.next=28;break;case 27:e.$message.warning(s.message);case 28:t.next=32;break;case 30:return t.abrupt("return",!1);case 32:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()}}};r("a908"),r=r("2877"),r=Object(r.a)(s,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:e.title,center:!0,align:"left",top:"18vh",width:"500px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)"},on:{"update:visible":function(t){e.showModelThis=t},close:function(t){e.showModelThis=!1}}},[t("el-card",{staticStyle:{margin:"-20px 0 0 0"}},[t("el-row",{attrs:{gutter:10}},[t("el-col",{attrs:{span:24}},[t("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",rules:e.rulesThis,"label-width":"80px"}},[t("el-form-item",{attrs:{label:"系统参数名称",prop:"parameter_name"}},[t("el-input",{attrs:{disabled:"007"==e.id,placeholder:"系统参数名称",maxlength:"20"},model:{value:e.ruleForm.parameter_name,callback:function(t){e.$set(e.ruleForm,"parameter_name",t)},expression:"ruleForm.parameter_name"}})],1)],1)],1),t("el-col",{staticStyle:{"text-align":"right"},attrs:{span:24}},["007"!==e.id?t("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("保 存 ")]):e._e(),t("el-button",{on:{click:function(t){e.showModelThis=!1}}},[e._v(e._s("007"==e.id?"关 闭":"取 消"))])],1)],1)],1)],1)}),[],!1,null,"0a8a3c7a",null);t.default=r.exports},cfc5:function(e,t,r){"use strict";r("14ac")},d029:function(e,t,r){"use strict";var a=r("1da1"),n=r("5530"),s=(r("96cf"),r("e9c4"),r("d3b7"),r("159b"),r("b0c0"),r("ac1f"),r("1276"),r("1b69")),i=function(e,t){return Object(s.a)("admin/goodinfo",e,"post",t)},o=r("9f53"),l=r("f5ed"),c=r("2f62"),u=[{prop:"good_name",label:"商品名称",_slot_:"good_name"},{prop:"speclist",label:"规格",_slot_:"speclist"},{prop:"supplierName",label:"供应商名称"},{prop:"company",label:"业务企业名称"},{prop:"good_info_img",_slot_:"good_info_img",label:"详情图"},{prop:"online_reason",label:"上线原因"},{prop:"skuCode",label:"上线后商品编号",span:8},{prop:"spuCode",label:"成本商品编号",span:8},{prop:"creater",label:"申请人",span:8},{prop:"platform_name",label:"上线平台",span:8},{prop:"platform_code_en",label:"平台商品编码",span:8},{prop:"cat",label:"分类",span:8},{prop:"brand_name",label:"品牌",span:8},{prop:"unit",label:"单位",span:4},{prop:"tax",label:"税点",append:"%",span:4},{prop:"good_type",label:"是否定制",_slot_:"good_type",span:8},{prop:"is_stock",label:"是否库存品",_slot_:"is_stock",span:6},{prop:"delivery_day",label:"物流时间",append:"天",span:6},{prop:"lead_time",label:"供货周期",append:"天",span:6},{prop:"sample_day",label:"调样周期",append:"天",span:6},{prop:"exclusive",label:"专属类型",_slot_:"exclusive",span:8},{prop:"weight",label:"商品总克重",append:"g",span:8},{prop:"supply_area",label:"供货区域",_slot_:"supply_area",span:8},{prop:"exam_status",label:"状态",_slot_:"exam_status",span:8},{prop:"updatetime",label:"更新时间",span:8},{prop:"addtime",label:"创建时间",span:8},{prop:"online_remark",label:"上线备注",span:24},{prop:"after_sales",label:"售后说明",span:24},{prop:"good_remark",label:"商品备注",span:24},{prop:"craft_desc",label:"工艺说明",span:24},{prop:"ladderlist",label:"销售起订量",_slot_:"ladderlist",span:24}],d=[{id:"0",name:"否"},{id:"1",name:"是"}],p=[{id:"0",name:"非泰康"},{id:"1",name:"泰康"}],m=[{id:"0",name:"无销售权限"},{id:"1",name:"有销售权限"}],f=[{id:"0",name:"非库存品"},{id:"1",name:"库存品"}],h=[{id:"0",name:"否"},{id:"1",name:"是"}],g=[{id:"1",name:"全国"},{id:"2",name:"全国除偏远"}],b=[{id:"0",name:"否"},{id:"1",name:"是"}],_=[{id:"0",name:"待提交"},{id:"1",name:"待完善成本"},{id:"2",name:"待产品审核"},{id:"3",name:"待财务定价"},{id:"4",name:"待财务审核定价"},{id:"5",name:"待上线"},{id:"6",name:"上线成功"},{id:"7",name:"审核失败"}];o={name:"showGoodDataModal",mixins:[o.a,l.a],computed:Object(n.a)({},Object(c.b)(["tablebtnSize","searchSize","size"])),props:["showModel","spuCode","skuCode"],data:function(){return{ShowDataTableColumns:u,options1:d,options2:p,options3:m,options4:f,options5:h,options6:g,options7:b,options8:_,loading:!0,showModelThis:!1,sitem:null,newTime:""}},watch:{showModel:function(e){(this.showModelThis=e)&&(this.supplierCode=[],this.initData())},showModelThis:function(e){e||this.$emit("cancel")}},methods:{initData:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r,a,n,s,o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,t.next=3,i({skuCode:e.id});case 3:if(s=t.sent,r=s.code,a=s.message,s=s.data,e.loading=!1,0!==r){t.next=19;break}e.sitem=JSON.parse(JSON.stringify(s)),s=e.sitem,n=s.exam_status,s=s.cat_info,o="",s&&0<s.length&&s.forEach((function(e,t){o+=0===t?e.name:"/"+e.name})),e.sitem.cat=o,e.sitem.good_info_img=e.sitem.good_info_img.split(","),e.status=n,e.getNewTime(),t.next=25;break;case 19:if(100<=r&&r<=104)return t.next=22,e.logout();t.next=24;break;case 22:t.next=25;break;case 24:e.$message.warning(a);case 25:case"end":return t.stop()}}),t)})))()},getNewTime:function(){this.newTime=(new Date).valueOf()}}},l=r("2877"),n=Object(l.a)(o,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:"商品详情",center:!0,align:"left",top:"8vh",width:"1040px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)","append-to-body":""},on:{close:function(t){e.showModelThis=!1},"update:visible":function(t){e.showModelThis=t}}},[r("el-card",{staticClass:"modal-form-style",staticStyle:{"margin-top":"-20px"}},[""!==e.newTime?r("show-data-table",{staticStyle:{margin:"0",padding:"0"},attrs:{newTime:e.newTime,sitem:e.sitem,columns:e.ShowDataTableColumns}},[r("template",{slot:"good_name"},[e.sitem.good_thumb_img?r("img",{directives:[{name:"viewer",rawName:"v-viewer"}],staticClass:"fl",staticStyle:{width:"23px",height:"23px",margin:"0 5px 0 0"},attrs:{src:e.sitem.good_thumb_img,alt:""}}):e._e(),r("div",[e._v(e._s(e.sitem.good_name))])]),r("template",{slot:"speclist"},e._l(e.sitem.speclist,(function(t,a){return r("span",{key:t.spec_id+a},[0!==a?r("span",[e._v("-")]):e._e(),r("span",[e._v(e._s(t.spec_value))])])})),0),r("template",{slot:"good_info_img"},e._l(e.sitem.good_info_img,(function(e,t){return r("img",{directives:[{name:"viewer",rawName:"v-viewer"}],key:e+t,staticClass:"fl",staticStyle:{width:"23px",height:"23px",margin:"0 5px 0 0"},attrs:{src:e}})})),0),r("template",{slot:"is_auth"},[r("el-tag",{attrs:{size:"mini"},domProps:{textContent:e._s((e.options3.find((function(t){return t.id==e.sitem.is_auth}))||{}).name||"--")}})],1),r("template",{slot:"exclusive"},e._l(e.sitem.exclusive,(function(t,a){return r("span",{key:t.id},[0!==a?r("span",[e._v("/")]):e._e(),r("span",[e._v(e._s(t.name))])])})),0),r("template",{slot:"is_stock"},[r("el-tag",{attrs:{size:"mini"},domProps:{textContent:e._s((e.options4.find((function(t){return t.id==e.sitem.is_stock}))||{}).name||"--")}})],1),r("template",{slot:"good_type"},[r("el-tag",{attrs:{size:"mini"},domProps:{textContent:e._s((e.options1.find((function(t){return t.id==e.sitem.good_type}))||{}).name||"--")}}),"1"===e.sitem.good_type?r("span",[e._v("起订量:"+e._s(e.sitem.moq)+",工期:"+e._s(e.sitem.customized)+"天")]):e._e()],1),r("template",{slot:"supply_area"},[r("el-tag",{attrs:{size:"mini"},domProps:{textContent:e._s((e.options6.find((function(t){return t.id==e.sitem.supply_area}))||{}).name||"--")}})],1),r("template",{slot:"is_step"},[r("el-tag",{attrs:{size:"mini"},domProps:{textContent:e._s((e.options7.find((function(t){return t.id==e.sitem.is_step}))||{}).name||"--")}})],1),r("template",{slot:"exam_status"},[r("el-tag",{attrs:{size:"mini"},domProps:{textContent:e._s((e.options8.find((function(t){return t.id==e.sitem.exam_status}))||{}).name||"--")}})],1)],2):e._e()],1)],1)}),[],!1,null,null,null).exports;t.a=n},d1a6:function(e,t,r){},d1e0:function(e,t,r){"use strict";var a=r("1b69"),n="admin/";t.a={detail:function(e,t){return Object(a.a)(n+"bragaininfo",e,"post",t)},update:function(e,t){return Object(a.a)(n+"zxedit",e,"post",t)},status:function(e,t){return Object(a.a)(n+"bragainstatus",e,"post",t)},feedList:function(e,t){return Object(a.a)(n+"consultbidlist",e,"post",t)},list:function(e,t){return Object(a.a)(n+"bargainlist",e,"post",t)},add:function(e,t){return Object(a.a)(n+"consultcreate",e,"post",t)},plist:function(e,t){return Object(a.a)(n+"projectlist",e,"post",t)},delete:function(e,t){return Object(a.a)(n+"delete",e,"post",t)},pdetail:function(e,t){return Object(a.a)(n+"projectinfo",e,"post",t)},bargain_add:function(e,t){return Object(a.a)(n+"consultbaradd",e,"post",t)},reasonList:function(e,t){return Object(a.a)(n+"resultlist",e,"post",t)},afterFeed:function(e,t){return Object(a.a)(n+"afterfeed",e,"post",t)},aftergys:function(e,t){return Object(a.a)(n+"aftergys",e,"post",t)},afterPost:function(e,t){return Object(a.a)(n+"afterpost ",e,"post",t)},afterwsm:function(e,t){return Object(a.a)(n+"afterwsm ",e,"post",t)}}},d2cb:function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=r("ade3"),s=(r("e9c4"),r("b0c0"),r("d3b7"),r("25f0"),r("96cf"),r("c717")),i={name:"brand",props:["showModel","id","type","sitem"],mixins:[r("9f53").a],data:function(){var e=this;return{loading:!1,title:"添加支持品牌",showModelThis:this.showModel,brand_name:"",gys_name:"",ruleForm:{},rulesThis:this.rules,pickerOptions1:{disabledDate:function(t){if(null!=e.ruleForm.endtime&&""!=e.ruleForm.endtime&&t)return t.getTime()>new Date(e.ruleForm.endtime).valueOf()}},pickerOptions2:{disabledDate:function(t){if(null!=e.ruleForm.starttime&&""!=e.ruleForm.starttime&&t)return t.getTime()<new Date(e.ruleForm.starttime).valueOf()}},rules:Object(n.a)({gyscode:[{type:"array",required:!0,message:"供应商不能为空",trigger:"change"}],brand_id:[{type:"array",required:!0,message:"请选择支持品牌",trigger:"blur"}],long:[{required:!1,message:"请选择授权类型",trigger:"change"}],starttime:[{required:!1,message:"请选择授权开始日期",trigger:"blur"}],brand_book:[{required:!1,message:"请选择授权结束日期",trigger:"change"}]},"brand_book",[{required:!1,message:"授权图片不能为空",trigger:"change"}])}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis:function(e){e||this.$emit("cancel")}},methods:{initForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.loading=!0,e.brand_name="",e.gys_name="",e.resetFormData(),"add"===e.type)return e.rulesThis=e.rules,e.title="添加支持品牌",t.next=9,e.resetForm();t.next=11;break;case 9:t.next=26;break;case 11:if("edit"===e.type)return e.rulesThis=e.rules,e.title="修改支持品牌",t.next=16,e.resetForm();t.next=20;break;case 16:return t.next=18,e.initData();case 18:t.next=26;break;case 20:return e.rulesThis={},e.title="查看支持品牌",t.next=24,e.resetForm();case 24:return t.next=26,e.initData();case 26:e.loading=!1;case 30:case"end":return t.stop()}}),t)})))()},resetForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$nextTick((function(){e.$refs.ruleForm&&(e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),e.resetFormData())}));case 2:case"end":return t.stop()}}),t)})))()},timeChange:function(){""!==this.ruleForm.starttime&&null!==this.ruleForm.starttime&&""!==this.ruleForm.endtime&&null!==this.ruleForm.endtime&&new Date(this.ruleForm.endtime).valueOf()<new Date(this.ruleForm.starttime).valueOf()&&(this.$message.warning("结束时间不大于开始时间!"),this.ruleForm.endtime="",this.ruleForm.starttime=""),this.$refs.ruleForm.validateField("starttime"),this.$refs.ruleForm.validateField("endtime")},resetFormData:function(){var e=JSON.parse(JSON.stringify(this.sitem)),t=e.code;e=e.name;"add"===this.type&&(this.gys_name=e||""),this.ruleForm={id:"",gyscode:"add"===this.type&&t?[t]:[],brand_id:[],long:"1",starttime:"",endtime:"",brand_book:""}},initData:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r,a,n,i,o,l,c,u,d,p,m;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,t.next=3,s.a.kdetail({id:e.id});case 3:if(m=t.sent,r=m.code,a=m.message,m=m.data,e.loading=!1,0!==r){t.next=15;break}n=m.id,i=m.brand_book,o=m.brand_id,l=m.brand_name,c=m.long,u=m.starttime,d=m.endtime,p=m.gyscode,m=m.name,e.brand_name=l,e.gys_name=m,e.ruleForm={id:n||"",gyscode:p?[p]:[],brand_id:o?[o]:[],long:c||"",starttime:u||"",endtime:d||"",brand_book:i||""},t.next=21;break;case 15:if(100<=r&&r<=104)return t.next=18,e.logout();t.next=20;break;case 18:t.next=21;break;case 20:e.$message.warning(a);case 21:case"end":return t.stop()}}),t)})))()},submitForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.ruleForm.validate(function(){var t=Object(a.a)(regeneratorRuntime.mark((function t(r){var a,n,i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r){t.next=32;break}if(e.loading=!0,(a=JSON.parse(JSON.stringify(e.ruleForm))).brand_id=a.brand_id.toString(),a.gyscode=a.gyscode.toString(),n={},"add"===e.type)return delete a.id,t.next=10,s.a.kadd(a);t.next=13;break;case 10:n=t.sent,t.next=16;break;case 13:return t.next=15,s.a.kupdate(a);case 15:n=t.sent;case 16:if(e.loading=!1,!n||0!==n.code){t.next=24;break}i="add"===e.type?"添加成功!":"修改成功!",e.$notify.success({title:i,message:""}),e.showModelThis=!1,e.$emit("refresh"),t.next=30;break;case 24:if(n&&100<=n.code&&n.code<=104)return t.next=27,e.logout();t.next=29;break;case 27:t.next=30;break;case 29:e.$message.warning(n.message);case 30:t.next=34;break;case 32:return t.abrupt("return",!1);case 34:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()},brandidsearchChange:function(e){var t=e.id;e.code,e.label,this.ruleForm.brand_id=t?[t]:[],this.$refs.ruleForm.validateField("brand_id")},beforeAvatarUpload:function(e){var t=!1,r=!1;return e&&("image/jpg"!==e.type&&"image/png"!==e.type&&"image/jpeg"!==e.type||(t=!0),r=e.size/1024/1024<1,t||this.$message.error("图片格式不正确!"),r||this.$message.error("图片大小不能超过 1MB!")),t&&r},UploadErrorEvent:function(e){"break"!==e&&(this.$message.error("图片上传失败!"),this.ruleForm.brand_book="",this.$refs.ruleForm.validateField("brand_book"))},UploadSuccessEvent:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){var a;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if("noToken"===(a=e.url))return r.next=4,t.logout();r.next=6;break;case 4:r.next=9;break;case 6:t.ruleForm.brand_book=a,t.$message.success("图片上传成功!"),t.$refs.ruleForm.validateField("brand_book");case 9:case"end":return r.stop()}}),r)})))()}}};r("1c0c"),r=r("2877"),r=Object(r.a)(i,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:e.title,center:!0,align:"left",top:"5vh",width:"600px","append-to-body":"","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)"},on:{"update:visible":function(t){e.showModelThis=t},close:function(t){e.showModelThis=!1}}},[t("el-card",{staticStyle:{margin:"-20px 0 0 0"}},[t("el-row",{attrs:{gutter:10}},[t("el-col",{attrs:{span:24}},[t("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",rules:e.rulesThis,size:"mini","label-width":"90px"}},[t("el-form-item",{attrs:{label:"供应商",prop:"gyscode"}},[t("search-supplier",{attrs:{disabled:!0,value:e.ruleForm.gyscode,placeholder:"供应商",isDetail:!0,names:e.gys_name}})],1),t("el-form-item",{attrs:{label:"支持品牌",prop:"brand_id"}},[t("search-brand",{attrs:{value:e.ruleForm.brand_id,size:"mini",disabled:"view"===e.type,isDetail:"add"!==e.type,names:e.brand_name,placeholder:"商品品牌"},on:{searchChange:e.brandidsearchChange}})],1),t("el-form-item",{attrs:{label:"授权类型",prop:"long"}},[t("el-radio-group",{attrs:{disabled:"view"===e.type},model:{value:e.ruleForm.long,callback:function(t){e.$set(e.ruleForm,"long",t)},expression:"ruleForm.long"}},[t("el-radio",{attrs:{label:"0"}},[e._v("长期")]),t("el-radio",{attrs:{label:"1"}},[e._v("非长期")])],1)],1),"1"===e.ruleForm.long?t("el-form-item",{staticStyle:{margin:"0"},attrs:{label:"授权时间"}},[t("el-col",{attrs:{span:11}},[t("el-form-item",{attrs:{prop:"starttime"}},[t("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"date",disabled:"view"===e.type,placeholder:"开始日期","picker-options":e.pickerOptions1,"value-format":"yyyy-MM-dd"},on:{change:e.timeChange},model:{value:e.ruleForm.starttime,callback:function(t){e.$set(e.ruleForm,"starttime",t)},expression:"ruleForm.starttime"}})],1)],1),t("el-col",{staticClass:"line tc",attrs:{span:2}},[e._v("-")]),t("el-col",{attrs:{span:11}},[t("el-form-item",{attrs:{prop:"endtime"}},[t("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"date",disabled:"view"===e.type,placeholder:"结束日期","value-format":"yyyy-MM-dd","picker-options":e.pickerOptions2},on:{change:e.timeChange},model:{value:e.ruleForm.endtime,callback:function(t){e.$set(e.ruleForm,"endtime",t)},expression:"ruleForm.endtime"}})],1)],1)],1):e._e(),t("el-col",{attrs:{span:17}},[t("el-form-item",{staticClass:"activity-upload",attrs:{label:"授权图片",prop:"brand_book",disabled:"007"==e.id}},[t("div",{staticClass:"btnupload",staticStyle:{position:"relative"}},[e.ruleForm.brand_book?t("img",{staticClass:"avatar",attrs:{src:e.ruleForm.brand_book}}):t("i",{staticClass:"el-icon-plus avatar-uploader-icon"}),t("file-upload",{staticClass:"Upload",attrs:{disabled:"view"===e.type,accept:".jpg,.png,.jpeg",multiple:!0,uploadcondition:e.beforeAvatarUpload},on:{UploadErrorEvent:e.UploadErrorEvent,UploadSuccessEvent:e.UploadSuccessEvent}})],1)])],1),t("el-col",{staticStyle:{"text-align":"right",padding:"72px 0 0 0"},attrs:{span:7}},["view"!==e.type?t("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.submitForm}},[e._v("保 存 ")]):e._e(),t("el-button",{attrs:{size:"small"},on:{click:function(t){e.showModelThis=!1}}},[e._v(e._s("view"===e.type?"关 闭":"取 消"))])],1)],1)],1)],1)],1)],1)}),[],!1,null,"bba65a32",null);t.default=r.exports},d2f9:function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=(r("96cf"),{name:"handover",props:["showModel","id","isDetail"],components:{addEditForm:r("d513").default},data:function(){return{title:"",showModelThis:this.showModel}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis:function(e){e||this.$emit("cancel")}},methods:{initForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.loading=!0,"add"===e.id?(e.title="添加离职交接",e.rulesThis=e.rules):e.isDetail?e.rulesThis={}:e.rulesThis=e.rules,e.loading=!1;case 3:case"end":return t.stop()}}),t)})))()},handClick:function(e){this.showModelThis=e},refresh:function(e){this.showModelThis=e,this.$emit("refresh",!0)}}});r=r("2877"),r=Object(r.a)(n,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("el-dialog",{attrs:{title:e.title,center:!0,align:"left",top:"22vh",width:"600px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)"},on:{"update:visible":function(t){e.showModelThis=t},close:function(t){e.showModelThis=!1}}},[t("el-card",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{"margin-top":"-20px"}},[e.showModel?t("add-edit-form",{attrs:{id:e.id,sitem:{},"show-model":e.showModel,"is-detail":e.isDetail},on:{closeModel:e.handClick,refresh:e.refresh}}):e._e()],1)],1)}),[],!1,null,"7de164e4",null);t.default=r.exports},d463:function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=r("ade3"),s=r("5530"),i=(r("96cf"),r("7db0"),r("d3b7"),r("a9e3"),r("f5ed")),o=r("0f31"),l=r("e502"),c=r("2f62"),u=r("9f53");l={name:"Invoicing",components:{addEdit:l.default},mixins:[i.a,u.a],computed:Object(s.a)(Object(s.a)({},Object(c.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"Invoicing"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),data:function(){var e={statusOptions:[{id:"0",label:"禁用"},{id:"1",label:"启用"}],select:"invoice_code",sinput:"",statusList:[{id:"0",label:"禁用"},{id:"1",label:"启用"}],loading:!0,showModel:!1,isDetail:!1,modelId:0,parmValue:{name:"",username:"",status:"",page:1,size:15},tableData:[],passwordModel:!1,passwordModelId:0,isPasswordDetail:!1};return Object(n.a)(e,"tableData",[]),Object(n.a)(e,"table",{stripe:!0,border:!0,_defaultHeader_:["setcol"]}),Object(n.a)(e,"pageInfo",{size:15,curr:1,total:0}),Object(n.a)(e,"columns",[{prop:"companyNo",label:"客户编码",width:"155px"},{prop:"companyName",label:"客户名称","min-width":"150px"},{prop:"invoice_code",label:"统一社会信用代码",width:"155px"},{prop:"invoice_title",label:"发票抬头","min-width":"150px"},{prop:"invoice_mobile",label:"联系电话","min-width":"110px"},{prop:"status",label:"状态",_slot_:"status",width:"70px"},{prop:"creater",label:"创建人",width:"60px"},{prop:"addtime",label:"创建时间",width:"140px"},{prop:"",label:"操作",fixed:"right",_noset_:!0,width:"140px",_slot_:"operation"}]),e},mounted:function(){this.searchList()},methods:{restSearch:function(){this.parmValue={name:"",username:"",status:"",page:1,size:15},this.pageInfo={size:15,curr:1,total:0},this.searchList()},openModal:function(e,t){var r=e.status;e=e.id;"005"===t&&"1"===r?this.$message.warning("禁用后,才可以修改!"):(this.showModel=!0,this.modelId=e,this.isDetail="007"===t)},openPasswordModal:function(e,t){this.passwordModel=!0,this.passwordModelId=e,this.isPasswordDetail=t},deleteById:function(e,t){var r=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,r.$confirm("确定要删除?",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(a.a)(regeneratorRuntime.mark((function t(){var a,n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a={id:e},t.next=3,o.a.delete(a);case 3:if(!(n=t.sent)||0!==n.code){t.next=9;break}r.$notify.success({title:"删除成功",message:""}),r.searchList(),t.next=15;break;case 9:if(n&&100<=n.code&&n.code<=104)return t.next=12,r.logout();t.next=14;break;case 12:t.next=15;break;case 14:r.$message.warning(n.message);case 15:case"end":return t.stop()}}),t)})))).catch((function(){}));case 2:case"end":return t.stop()}}),t)})))()},searchList:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(""!==e.parmValue.start&&""===e.parmValue.end||""==e.parmValue.start&&""!=e.parmValue.end)return e.$message.warning("开始时间和结束时间不能为空"),t.abrupt("return");t.next=3;break;case 3:return e.loading=!0,e.parmValue.invoice_code="",e.parmValue.invoice_mobile="",e.parmValue.invoice_title="",e.parmValue.companyName="",e.parmValue.creater="",e.parmValue[e.select]=e.sinput,t.next=12,o.a.list(e.parmValue);case 12:if(!(r=t.sent)||0!==r.code||!r.data){t.next=18;break}e.tableData=r.data.list,e.pageInfo.total=Number(r.data.count),t.next=25;break;case 18:if(r&&100<=r.code&&r.code<=104)return t.next=21,e.logout();t.next=23;break;case 21:t.next=25;break;case 23:e.tableData=[],e.pageInfo.total=0;case 25:e.loading=!1;case 26:case"end":return t.stop()}}),t)})))()},statusConfirm:function(e,t){var r=this;return Object(a.a)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r.$confirm("确定要改为".concat("1"===t?"禁用":"启用","?"),{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(a.a)(regeneratorRuntime.mark((function a(){var n,s;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return r.loading=!0,n={id:e,status:"1"===t?"0":"1"},a.next=4,o.a.status(n);case 4:if((s=a.sent)&&0===s.code)return r.loading=!1,r.$notify.success({title:"状态修改成功!",message:""}),a.next=10,r.searchList();a.next=12;break;case 10:a.next=18;break;case 12:if(s&&100<=s.code&&s.code<=104)return a.next=15,r.logout();a.next=17;break;case 15:a.next=18;break;case 17:r.$message.warning(s.message);case 18:case"end":return a.stop()}}),a)})))).catch((function(){}));case 2:case"end":return n.stop()}}),n)})))()}}},r("51d8"),i=r("2877"),u=Object(i.a)(l,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"Invoicing pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?r("div",[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?r("ex-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{table:e.table,data:e.tableData,columns:e.columns,page:e.pageInfo,size:e.size},on:{"page-curr-change":e.handlePageChange,"page-size-change":e.handleSizeChange,"screen-reset":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()},"screen-submit":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},scopedSlots:e._u([{key:"table-header",fn:function(t){return[r("div",{staticStyle:{width:"100%"}},[r("el-row",{staticStyle:{padding:"0 0 10px 80px"}},[r("el-col",{staticStyle:{width:"303px"},attrs:{span:6}},[r("period-date-picker",{attrs:{type:1,width:"135px",size:e.searchSize,start:e.parmValue.start,end:e.parmValue.end},on:{timeReturned:e.handleTime}})],1),r("el-col",{staticStyle:{width:"160px"},attrs:{span:4}},[r("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"",clearable:"",size:e.searchSize,placeholder:"状态"},on:{change:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.parmValue.status,callback:function(t){e.$set(e.parmValue,"status",t)},expression:"parmValue.status"}},e._l(e.statusList,(function(e){return r("el-option",{key:"status"+e.id,attrs:{label:e.label,value:e.id}})})),1)],1),r("el-col",{staticClass:"fr",staticStyle:{width:"66px",padding:"0 0 0 10px"},attrs:{span:3}},[r("el-button",{attrs:{type:"primary",size:e.searchSize},on:{click:e.searchList}},[e._v(" 刷新 ")])],1),r("el-col",{staticClass:"fr",staticStyle:{width:"66px",padding:"0 0 0 10px"},attrs:{span:3}},[r("el-button",{attrs:{type:"warning",size:e.searchSize},on:{click:e.restSearch}},[e._v(" 重置 ")])],1)],1),r("el-row",[r("el-col",{staticStyle:{width:"543px"},attrs:{span:4}},[r("el-input",{attrs:{size:e.searchSize,maxlength:40,placeholder:"关键字"},on:{blur:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.sinput,callback:function(t){e.sinput=t},expression:"sinput"}},[r("el-select",{staticStyle:{width:"125px"},attrs:{slot:"prepend",placeholder:"关键字类型"},slot:"prepend",model:{value:e.select,callback:function(t){e.select=t},expression:"select"}},[r("el-option",{attrs:{label:"统一社会信用代码",value:"invoice_code"}}),r("el-option",{attrs:{label:"联系方式",value:"invoice_mobile"}}),r("el-option",{attrs:{label:"发票抬头",value:"invoice_title"}}),r("el-option",{attrs:{label:"企业客户名称",value:"companyName"}}),r("el-option",{attrs:{label:"创建人",value:"creater"}})],1)],1)],1),e.powers.some((function(e){return"003"==e}))?r("el-col",{staticClass:"fr",staticStyle:{width:"66px",padding:"0 0 0 10px"},attrs:{span:3}},[r("el-button",{staticStyle:{float:"right"},attrs:{size:e.searchSize,type:"success"},on:{click:function(t){return e.openModal({id:"add"},"003")}}},[e._v(" 添加 ")])],1):e._e()],1)],1)]}},{key:"depart_info",fn:function(t){return t=t.scope,e._l(t.row.depart_info,(function(t,a){return r("el-tag",{key:t+a,staticStyle:{margin:"0 3px 0 0"},attrs:{size:e.tablebtnSize,type:"''"}},[e._l(t,(function(t,n){return r("span",{key:t+a+n},[r("span",{directives:[{name:"show",rawName:"v-show",value:0<n,expression:"cindex > 0"}]},[e._v("/")]),r("span",[e._v(e._s(t))])])})),e._v(" "+e._s(t.name))],2)}))}},{key:"status",fn:function(t){var a=t.scope;return[r("el-tag",{attrs:{size:e.tablebtnSize,type:"0"===a.row.status?"warning":""},domProps:{textContent:e._s((e.statusOptions.find((function(e){return e.id==a.row.status}))||{}).label||"--")}})]}},{key:"operation",fn:function(t){var a=t.scope;return[e.powers.some((function(e){return"002"==e}))?r("el-tooltip",{attrs:{effect:"dark",content:"重置密码",placement:"top"}},[r("i",{staticClass:"el-icon-refresh-left tb-icon",on:{click:function(t){return e.openPasswordModal(a.row.id,!1)}}})]):e._e(),e.powers.some((function(e){return"007"==e}))?r("el-tooltip",{attrs:{effect:"dark",content:"详情",placement:"top"}},[r("i",{staticClass:"el-icon-view tb-icon",on:{click:function(t){return e.openModal(a.row,"007")}}})]):e._e(),e.powers.some((function(e){return"005"==e}))?r("el-tooltip",{attrs:{effect:"dark",content:"修改",placement:"top"}},[r("i",{staticClass:"el-icon-edit tb-icon",on:{click:function(t){return e.openModal(a.row,"005")}}})]):e._e(),e.powers.some((function(e){return"004"==e}))&&"1"===a.row.status?r("el-tooltip",{attrs:{effect:"dark",content:"禁用",placement:"top"}},[r("i",{staticClass:"el-icon-video-pause tb-icon",on:{click:function(t){return e.statusConfirm(a.row.id,a.row.status)}}})]):e._e(),e.powers.some((function(e){return"004"==e}))&&"0"===a.row.status?r("el-tooltip",{attrs:{effect:"dark",content:"启用",placement:"top"}},[r("i",{staticClass:"el-icon-video-play tb-icon",on:{click:function(t){return e.statusConfirm(a.row.id,a.row.status)}}})]):e._e(),e.powers.some((function(e){return"006"==e}))?r("el-tooltip",{attrs:{effect:"dark",content:"删除",placement:"top"}},[r("i",{staticClass:"el-icon-delete tb-icon",on:{click:function(t){return e.deleteById(a.row.id)}}})]):e._e()]}}],null,!1,3783681329)}):e._e(),r("add-edit",{attrs:{id:e.modelId,"show-model":e.showModel,"is-detail":e.isDetail},on:{refresh:e.searchList,cancel:function(t){e.showModel=!1}}})],1):r("div",[r("no-auth")],1)])}),[],!1,null,"26360621",null);t.default=u.exports},d4a1:function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=r("ade3"),s=r("5530"),i=(r("96cf"),r("7db0"),r("d3b7"),r("a9e3"),r("f5ed")),o=r("9f53"),l=r("d9bb"),c=r("2da1"),u=r("2f62");i={name:"storeSet",mixins:[i.a,o.a],components:{addEdit:c.default},computed:Object(s.a)(Object(s.a)({},Object(u.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"storeSet"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),data:function(){var e={select:"1",input:"",supplierNo:[],stock_sn:"",stock_name:"",link:"",loading:!0,showModel:!1,isDetail:!1,modelId:0,parmValue:{supplierNo:"",wsm_code:"",start:"",end:"",mobile:"",contactor:""},tableData:[],passwordModel:!1,passwordModelId:0,isPasswordDetail:!1};return Object(n.a)(e,"tableData",[]),Object(n.a)(e,"table",{stripe:!0,border:!0,_defaultHeader_:["setcol"]}),Object(n.a)(e,"pageInfo",{size:15,curr:1,total:0}),Object(n.a)(e,"columns",[{prop:"wsm_code",label:"编号",width:"170px"},{prop:"name",label:"仓库名称"},{prop:"supplierNo",label:"供应商编号",width:"140px"},{prop:"supplier_name",label:"供应商公司","min-width":"140px"},{prop:"status",label:"状态",width:"60px",_slot_:"status"},{prop:"contactor_name",label:"负责人",width:"70px"},{prop:"mobile",label:"负责人电话",width:"100px"},{prop:"addtime",label:"创建时间",width:"140px"},{prop:"",label:"操作",width:"140px",fixed:"right",_noset_:!0,_slot_:"operation"}]),Object(n.a)(e,"statusOptions",[{id:"0",label:"禁用"},{id:"1",label:"启用"}]),e},mounted:function(){this.searchList()},methods:{supplierChange:function(e){e&&e.id?this.parmValue.supplierNo=e.code:this.parmValue.supplierNo="",this.parmValue.page=1,this.searchList()},stockChange:function(e){e&&e.id?this.parmValue.wsm_code=e.code:this.parmValue.wsm_code="",this.parmValue.page=1,this.searchList()},addList:function(e){window.vm.$router.push({path:"addStore",query:{id:e}})},restSearch:function(){this.pageInfo={size:15,curr:1,total:0},this.supplierNo=[],this.input="",this.select="1",this.parmValue={supplierNo:"",wsm_code:"",start:"",end:"",mobile:"",contactor:"",page:1,size:15},this.searchList()},openModal:function(e,t){this.showModel=!0,this.modelId=e,this.isDetail=t},searchList:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(""!==e.parmValue.start&&""===e.parmValue.end||""==e.parmValue.start&&""!=e.parmValue.end)return e.$message.warning("开始时间和结束时间不能为空"),t.abrupt("return");t.next=3;break;case 3:return e.loading=!0,e.parmValue.wsm_code="1"===e.select?e.input:"",e.parmValue.contactor="2"===e.select?e.input:"",e.parmValue.mobile="3"===e.select?e.input:"",t.next=9,l.a.list(e.parmValue);case 9:if(!(r=t.sent)||0!==r.code||!r.data){t.next=15;break}e.tableData=r.data.list,e.pageInfo.total=Number(r.data.count),t.next=22;break;case 15:if(r&&100<=r.code&&r.code<=104)return t.next=18,e.logout();t.next=20;break;case 18:t.next=22;break;case 20:e.tableData=[],e.pageInfo.total=0;case 22:e.loading=!1;case 23:case"end":return t.stop()}}),t)})))()},statusConfirm:function(e,t){var r=this;return Object(a.a)(regeneratorRuntime.mark((function n(){var s;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return s="1"===t?"禁用":"启用",n.next=3,r.$confirm("确定要改为"+s+"?",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(a.a)(regeneratorRuntime.mark((function a(){var n,s;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return r.loading=!0,n={id:e,status:"1"===t?"0":"1"},a.next=4,l.a.status(n);case 4:if((s=a.sent)&&0===s.code)return r.loading=!1,r.$notify.success({title:"状态修改成功!",message:""}),a.next=10,r.searchList();a.next=12;break;case 10:a.next=18;break;case 12:if(s&&100<=s.code&&s.code<=104)return a.next=15,r.logout();a.next=17;break;case 15:a.next=18;break;case 17:r.$message.warning(s.message);case 18:case"end":return a.stop()}}),a)})))).catch((function(){}));case 3:case"end":return n.stop()}}),n)})))()},deleteById:function(e,t){var r=this;return Object(a.a)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if("1"===t)return r.$message.warning("正在启用的仓库不能删除!"),n.abrupt("return");n.next=3;break;case 3:return n.next=5,r.$confirm("确定要删除?",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(a.a)(regeneratorRuntime.mark((function t(){var a,n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a={id:e},t.next=3,l.a.delete(a);case 3:if(!(n=t.sent)||0!==n.code){t.next=9;break}r.$notify.success({title:"删除成功",message:""}),r.searchList(),t.next=15;break;case 9:if(n&&100<=n.code&&n.code<=104)return t.next=12,r.logout();t.next=14;break;case 12:t.next=15;break;case 14:r.$message.warning(n.message);case 15:case"end":return t.stop()}}),t)})))).catch((function(){}));case 5:case"end":return n.stop()}}),n)})))()}}},o=r("2877"),c=Object(o.a)(i,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"storeSet pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?r("div",[r("ex-table",{directives:[{name:"loading",rawName:"v-loading",value:!1,expression:"false"}],attrs:{table:e.table,data:e.tableData,columns:e.columns,page:e.pageInfo,size:e.size},on:{"page-curr-change":e.handlePageChange,"page-size-change":e.handleSizeChange,"screen-reset":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()},"screen-submit":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},scopedSlots:e._u([{key:"table-header",fn:function(t){return[r("div",{staticStyle:{width:"100%"}},[r("el-row",{staticStyle:{padding:"0 0 10px 80px"}},[r("el-col",{staticStyle:{width:"303px",padding:"0"},attrs:{span:18}},[r("period-date-picker",{attrs:{start:e.parmValue.start,end:e.parmValue.end,type:1,width:"135px",title:"创建",size:e.searchSize},on:{numReturned:function(t){return e.numReturned(t,0)}}})],1),r("el-col",{staticStyle:{width:"420px",padding:"0"},attrs:{span:18}},[r("el-input",{staticClass:"input-with-select",attrs:{placeholder:"关键字",maxlength:"40",size:e.searchSize},model:{value:e.input,callback:function(t){e.input=t},expression:"input"}},[r("el-select",{staticStyle:{width:"125px"},attrs:{slot:"prepend",placeholder:"关键字类型"},slot:"prepend",model:{value:e.select,callback:function(t){e.select=t},expression:"select"}},[r("el-option",{attrs:{label:"仓库编码",value:"1"}}),r("el-option",{attrs:{label:"负责人姓名",value:"2"}}),r("el-option",{attrs:{label:"负责人手机号",value:"3"}})],1),r("el-button",{attrs:{slot:"append",icon:"el-icon-search"},on:{click:e.searchList},slot:"append"})],1)],1),r("el-col",{staticStyle:{width:"66px","padding-left":"10px"},attrs:{span:4}},[r("el-button",{staticClass:"fl",attrs:{type:"warning",size:e.searchSize},on:{click:e.restSearch}},[e._v(" 重置 ")])],1),r("el-col",{staticClass:"fr",staticStyle:{width:"56px","margin-left":"10px"},attrs:{span:3}},[r("el-button",{attrs:{size:e.searchSize,type:"primary"},on:{click:e.searchList}},[e._v(" 刷新 ")])],1)],1),r("el-row",{staticStyle:{padding:"0"}},[r("el-col",{staticStyle:{width:"340px",padding:"0"},attrs:{span:18}},[r("search-customer",{attrs:{size:e.searchSize,code:e.supplierNo,placeholder:"供应商公司名称","is-detail":!1,disabled:!1,names:""},on:{searchChange:e.supplierChange}})],1),e.powers.some((function(e){return"003"==e}))?r("el-col",{staticClass:"mr10 fr",staticStyle:{width:"56px"},attrs:{span:3}},[r("el-button",{staticClass:"fl",attrs:{size:e.searchSize,type:"success"},on:{click:function(t){return e.openModal("add",!1)}}},[e._v(" 新建 ")])],1):e._e()],1)],1)]}},{key:"status",fn:function(t){var a=t.scope;return[r("el-tag",{attrs:{size:e.tablebtnSize,type:"0"==a.row.status?"warning":""},domProps:{textContent:e._s((e.statusOptions.find((function(e){return e.id==a.row.status}))||{}).label||"--")}})]}},{key:"operation",fn:function(t){var a=t.scope;return[e.powers.some((function(e){return"007"==e}))?r("el-tooltip",{attrs:{effect:"dark",content:"详情",placement:"top"}},[r("i",{staticClass:"el-icon-view tb-icon",on:{click:function(t){return e.openModal(a.row.id,!0)}}})]):e._e(),e.powers.some((function(e){return"005"==e}))?r("el-tooltip",{attrs:{effect:"dark",content:"修改",placement:"top"}},[r("i",{staticClass:"el-icon-edit tb-icon",on:{click:function(t){return e.openModal(a.row.id,!1)}}})]):e._e(),e.powers.some((function(e){return"004"==e}))&&"1"===a.row.status?r("el-tooltip",{attrs:{effect:"dark",content:"禁用",placement:"top"}},[r("i",{staticClass:"el-icon-video-pause tb-icon",on:{click:function(t){return e.statusConfirm(a.row.id,a.row.status)}}})]):e._e(),e.powers.some((function(e){return"004"==e}))&&"0"===a.row.status?r("el-tooltip",{attrs:{effect:"dark",content:"启用",placement:"top"}},[r("i",{staticClass:"el-icon-video-play tb-icon",on:{click:function(t){return e.statusConfirm(a.row.id,a.row.status)}}})]):e._e(),e.powers.some((function(e){return"006"==e}))?r("el-tooltip",{attrs:{effect:"dark",content:"删除",placement:"top"}},[r("i",{staticClass:"el-icon-delete tb-icon",on:{click:function(t){return e.deleteById(a.row.id,a.row.status)}}})]):e._e()]}}],null,!1,3433840278)}),r("add-edit",{attrs:{id:e.modelId,"show-model":e.showModel,"is-detail":e.isDetail},on:{refresh:e.searchList,cancel:function(t){e.showModel=!1}}})],1):r("div",[r("no-auth")],1)])}),[],!1,null,"ef6c60a0",null);t.default=c.exports},d4aa:function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=r("5530"),s=(r("96cf"),r("7db0"),r("d3b7"),r("a9e3"),r("f291")),i=r("88ec"),o=r("0ee5"),l=r("e66a"),c=r("f5ed"),u=r("9f53"),d=r("2f62");c={name:"role",mixins:[c.a,u.a],components:{addEdit:s.default},computed:Object(n.a)(Object(n.a)({},Object(d.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"role"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),data:function(){var e=this;return{statusList:o.a,roleLevel:l.a,loading:!0,showModel:!1,isDetail:!1,modelId:0,parmValue:{loginName:"",fullName:"",type:2,page:1,size:15},statusOptions:[{id:0,label:"禁用"},{id:1,label:"启用"}],authOptions:[{id:"1",label:"管理员"},{id:"2",label:"非管理员"}],tableData:[],table:{stripe:!0,border:!0,_defaultHeader_:["setcol"]},pageInfo:{size:15,curr:1,total:0},columns:[{prop:"role_name",label:"角色名称"},{prop:"level",label:"角色等级",_format_:function(t){return(e.authOptions.find((function(e){return e.id==t.level}))||{}).label}},{prop:"addtime",label:"创建时间",sortable:!0},{prop:"status",label:"状态",sortable:!0,_slot_:"status"},{prop:"",label:"操作",fixed:"right",_noset_:!0,_slot_:"operation"}]}},mounted:function(){this.searchList()},methods:{restSearch:function(){this.pageInfo={size:15,curr:1,total:0},this.parmValue={status:"",level:"",role_name:"",page:1,size:15},this.searchList()},openModal:function(e,t){this.showModel=!0,this.modelId=e,this.isDetail=t},changeStatus:function(e,t){var r=this;return Object(a.a)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r.$confirm("确定要改为".concat("1"===t?"禁用":"启用","?"),{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(a.a)(regeneratorRuntime.mark((function a(){var n,s;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return n={roleid:e,status:"1"===t?"0":"1"},a.next=3,i.a.status(n);case 3:if(!(s=a.sent)||0!==s.code){a.next=9;break}r.$notify.success({title:"状态修改成功",message:""}),r.searchList(),a.next=15;break;case 9:if(s&&100<=s.code&&s.code<=104)return a.next=12,r.logout();a.next=14;break;case 12:a.next=15;break;case 14:r.$message.warning(s.message);case 15:case"end":return a.stop()}}),a)})))).catch((function(){}));case 2:case"end":return n.stop()}}),n)})))()},searchList:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,t.next=3,i.a.list(e.parmValue);case 3:if(!(r=t.sent)||0!==r.code||!r.data){t.next=9;break}e.tableData=r.data.list,e.pageInfo.total=Number(r.data.count),t.next=16;break;case 9:if(r&&100<=r.code&&r.code<=104)return t.next=12,e.logout();t.next=14;break;case 12:t.next=16;break;case 14:e.tableData=[],e.pageInfo.total=0;case 16:e.loading=!1;case 17:case"end":return t.stop()}}),t)})))()}}},u=r("2877"),s=Object(u.a)(c,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"role pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?r("ex-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{table:e.table,data:e.tableData,columns:e.columns,page:e.pageInfo,size:e.size},on:{"page-curr-change":e.handlePageChange,"page-size-change":e.handleSizeChange,"screen-reset":function(t){e.pageInfo.curr=1,e.searchList()},"screen-submit":function(t){e.pageInfo.curr=1,e.searchList()}},scopedSlots:e._u([{key:"table-header",fn:function(t){return[r("div",{staticStyle:{width:"100%"}},[r("el-row",[r("el-col",{staticStyle:{padding:"0 0 0 80px"},attrs:{span:24}},[r("el-col",{staticStyle:{width:"120px"},attrs:{span:3}},[r("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"",clearable:"",size:e.searchSize,placeholder:"角色状态"},on:{change:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.parmValue.status,callback:function(t){e.$set(e.parmValue,"status",t)},expression:"parmValue.status"}},e._l(e.statusList,(function(e){return r("el-option",{key:"status"+e.code,attrs:{label:e.name,value:e.code}})})),1)],1),r("el-col",{staticStyle:{width:"130px",padding:"0 0 0 10px"},attrs:{span:3}},[r("el-select",{staticStyle:{width:"100%"},attrs:{size:e.searchSize,filterable:"",placeholder:"角色等级"},on:{change:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.parmValue.level,callback:function(t){e.$set(e.parmValue,"level",t)},expression:"parmValue.level"}},e._l(e.roleLevel,(function(e){return r("el-option",{key:"ruleid"+e.code,attrs:{label:e.name,value:e.code}})})),1)],1),r("el-col",{staticStyle:{width:"150px",padding:"0 0 0 10px"},attrs:{span:3}},[r("el-input",{attrs:{size:e.searchSize,maxlength:40,placeholder:"角色名称"},model:{value:e.parmValue.role_name,callback:function(t){e.$set(e.parmValue,"role_name",t)},expression:"parmValue.role_name"}})],1),r("el-col",{staticStyle:{width:"54px"},attrs:{span:3}},[r("el-button",{staticClass:"fr",attrs:{type:"primary",size:e.searchSize,icon:"el-icon-search"},on:{click:e.searchList}})],1),r("el-col",{staticStyle:{width:"66px"},attrs:{span:3}},[r("el-button",{staticClass:"fr",attrs:{type:"warning",size:e.searchSize},on:{click:e.restSearch}},[e._v(" 重置 ")])],1),r("el-col",{staticStyle:{width:"66px",float:"right"},attrs:{span:3}},[r("el-button",{staticStyle:{float:"right"},attrs:{type:"primary",size:e.searchSize},on:{click:e.searchList}},[e._v(" 刷新 ")])],1),e.powers.some((function(e){return"003"==e}))?r("el-col",{staticStyle:{width:"66px",float:"right"},attrs:{span:3}},[r("el-button",{staticStyle:{float:"right"},attrs:{size:e.searchSize,type:"success"},on:{click:function(t){return e.openModal("add",!1)}}},[e._v(" 添加 ")])],1):e._e()],1)],1)],1)]}},{key:"status",fn:function(t){var a=t.scope;return[r("el-tag",{attrs:{size:e.tablebtnSize,type:"0"==a.row.status?"warning":""},domProps:{textContent:e._s((e.statusOptions.find((function(e){return e.id==a.row.status}))||{}).label||"--")}})]}},{key:"operation",fn:function(t){var a=t.scope;return[e.powers.some((function(e){return"007"==e}))?r("el-tooltip",{attrs:{effect:"dark",content:"详情",placement:"top"}},[r("i",{staticClass:"el-icon-view tb-icon",on:{click:function(t){return e.openModal(a.row.id,!0)}}})]):e._e(),e.powers.some((function(e){return"005"==e}))?r("el-tooltip",{attrs:{effect:"dark",content:"修改",placement:"top"}},[r("i",{staticClass:"el-icon-edit tb-icon",on:{click:function(t){return e.openModal(a.row.id,!1)}}})]):e._e(),e.powers.some((function(e){return"004"==e}))&&"1"===a.row.status?r("el-tooltip",{attrs:{effect:"dark",content:"禁用",placement:"top"}},[r("i",{staticClass:"el-icon-video-pause tb-icon",on:{click:function(t){return e.changeStatus(a.row.id,a.row.status)}}})]):e._e(),e.powers.some((function(e){return"004"==e}))&&"0"===a.row.status?r("el-tooltip",{attrs:{effect:"dark",content:"启用",placement:"top"}},[r("i",{staticClass:"el-icon-video-play tb-icon",on:{click:function(t){return e.changeStatus(a.row.id,a.row.status)}}})]):e._e()]}}],null,!1,2871923126)}):r("no-auth"),r("add-edit",{attrs:{id:e.modelId,"show-model":e.showModel,"is-detail":e.isDetail},on:{refresh:e.searchList,cancel:function(t){e.showModel=!1}}})],1)}),[],!1,null,"8dde8f40",null);t.default=s.exports},d513:function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=(r("96cf"),r("7db0"),r("d3b7"),r("ac1f"),r("1276"),r("25f0"),r("b5d3")),s={name:"handover",props:["id","newTime","sitem"],mixins:[r("9f53").a],data:function(){return{loading:!1,disabled:!0,status:"",resign_name:"",hand_name:"",ruleForm:{hand_uid:[],resign_uid:[],expire_date:"",remark:""},rulesThis:this.rules,rules:{resign_uid:[{type:"array",required:!0,message:"请选择离职人",trigger:"change"}],hand_uid:[{type:"array",required:!0,message:"请选择接受人",trigger:"change"}],expire_date:[{required:!0,message:"请选择生效时间",trigger:"blur"}]}}},computed:{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"handoverDetail"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}},mounted:function(){this.initForm()},watch:{id:function(e){e&&this.initForm()},newTime:function(e){e&&this.initForm()}},methods:{initForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,e.status="",e.rulesThis=e.rules,t.next=5,e.resetForm();case 5:e.loading=!1;case 6:case"end":return t.stop()}}),t)})))()},resetForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.resign_name="",e.hand_name="",t.next=4,e.$nextTick((function(){var t,r,a,n,s,i,o;e.$refs.ruleForm&&(e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),t=(o=e.sitem).status,r=o.resign_name,a=o.hand_name,n=o.hand_uid,s=o.resign_uid,i=o.expire_date,o=o.remark,e.resign_name=r||"",e.hand_name=a||"",e.status=t||"",e.ruleForm={hand_uid:n?n.split(","):[],resign_uid:s?s.split(","):[],expire_date:i||"",remark:o||""})}));case 4:case"end":return t.stop()}}),t)})))()},submitForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.ruleForm.validate(function(){var t=Object(a.a)(regeneratorRuntime.mark((function t(r){var a,s,i,o,l,c;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r){t.next=34;break}if(a=e.ruleForm,s=a.resign_uid,i=a.hand_uid,a=a.expire_date,s=s.toString(),i=i.toString(),s===i)return e.$message.error("离职人和接收人不能相同"),t.abrupt("return");t.next=6;break;case 6:if(e.loading=!0,o={id:e.id,resign_uid:s,hand_uid:i,expire_date:a},l={},"add"===e.id)return delete o.id,t.next=13,n.a.add(o);t.next=16;break;case 13:l=t.sent,t.next=19;break;case 16:return t.next=18,n.a.update(o);case 18:l=t.sent;case 19:if(e.loading=!1,!l||0!==l.code){t.next=26;break}c="add"===e.id?"添加成功!":"修改成功!",e.$notify.success({title:c,message:""}),e.$emit("refresh"),t.next=32;break;case 26:if(l&&100<=l.code&&l.code<=104)return t.next=29,e.logout();t.next=31;break;case 29:t.next=32;break;case 31:e.$message.warning(l.message);case 32:t.next=36;break;case 34:return t.abrupt("return",!1);case 36:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()},handleResignName:function(e){e&&e.id?this.ruleForm.resign_uid=[e.id]:this.ruleForm.resign_uid=[],this.$refs.ruleForm.validateField("resign_uid")},handleHandoverName:function(e){e&&e.id?this.ruleForm.hand_uid=[e.id]:this.ruleForm.hand_uid=[],this.$refs.ruleForm.validateField("hand_uid")}}};r=r("2877"),r=Object(r.a)(s,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",staticStyle:{width:"100%"},attrs:{loading:e.loading,model:e.ruleForm,"status-icon":"",rules:e.rulesThis,"label-width":"100px"}},[t("el-row",[t("el-col",{attrs:{span:"add"!==e.id?12:24}},[t("el-form-item",{attrs:{label:"离职人",prop:"resign_uid"}},[t("search-account",{attrs:{disabled:!("add"===e.id||"0"===e.status&&e.powers.some((function(e){return"005"==e}))),"is-detail":"add"!==e.id,value:e.ruleForm.resign_uid,size:e.searchSize,names:e.resign_name,placeholder:"离职人名称"},on:{searchChange:e.handleResignName}})],1)],1),t("el-col",{attrs:{span:"add"!==e.id?12:24}},[t("el-form-item",{attrs:{label:"接受人",prop:"hand_uid"}},[t("search-account",{attrs:{disabled:!("add"===e.id||"0"===e.status&&e.powers.some((function(e){return"005"==e}))),"is-detail":"add"!==e.id,value:e.ruleForm.hand_uid,size:e.searchSize,names:e.hand_name,placeholder:"接受人名称"},on:{searchChange:e.handleHandoverName}})],1)],1),t("el-col",{attrs:{span:"add"!==e.id?12:24}},[t("el-form-item",{attrs:{label:"生效时间",prop:"expire_date"}},[t("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"datetime","value-format":"yyyy-MM-dd HH:mm:ss",placeholder:"生效时间",disabled:!("add"===e.id||"0"===e.status&&e.powers.some((function(e){return"005"==e})))},model:{value:e.ruleForm.expire_date,callback:function(t){e.$set(e.ruleForm,"expire_date",t)},expression:"ruleForm.expire_date"}})],1)],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"审核备注",prop:"remark"}},[t("el-input",{attrs:{type:"textarea",disabled:"",autosize:{minRows:4,maxRows:4},placeholder:"审核备注",maxlength:"250","show-word-limit":""},model:{value:e.ruleForm.remark,callback:function(t){e.$set(e.ruleForm,"remark",t)},expression:"ruleForm.remark"}})],1)],1),"add"===e.id||"0"===e.status&&e.powers.some((function(e){return"005"==e}))?t("el-col",{staticStyle:{"text-align":"right",padding:"0 0 20px 0"},attrs:{span:"add"!==e.id?12:24}},[t("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.submitForm}},[e._v("保 存")])],1):e._e()],1)],1)}),[],!1,null,"21df4074",null);t.default=r.exports},d53a:function(e,t,r){"use strict";r("cdbd")},d548:function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=(r("e9c4"),r("96cf"),r("0209e")),s={name:"brand",props:["showModel","code"],mixins:[r("9f53").a],data:function(){return{loading:!1,title:"添加单位",showModelThis:this.showModel,options:[],ruleForm:{orderCode:[],useid:""},rulesThis:this.rules,rules:{useid:[{required:!0,message:"请选择订单用途",trigger:"change"}]}}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis:function(e){e||this.$emit("cancel")}},methods:{initForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,e.rulesThis=e.rules,e.options=[],t.next=5,e.resetForm();case 5:return t.next=7,e.get_options();case 7:e.loading=!1;case 8:case"end":return t.stop()}}),t)})))()},resetForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$nextTick((function(){e.$refs.ruleForm&&(e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),e.ruleForm={orderCode:e.code||[],useid:""})}));case 2:case"end":return t.stop()}}),t)})))()},submitForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.ruleForm.validate(function(){var t=Object(a.a)(regeneratorRuntime.mark((function t(r){var a,s;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r)return e.loading=!0,a=JSON.parse(JSON.stringify(e.ruleForm)),t.next=5,n.a.saleuse(a);t.next=21;break;case 5:if(s=t.sent,e.loading=!1,!s||0!==s.code){t.next=13;break}e.$notify.success({title:"设置成功!",message:""}),e.showModelThis=!1,e.$emit("refresh"),t.next=19;break;case 13:if(s&&100<=s.code&&s.code<=104)return t.next=16,e.logout();t.next=18;break;case 16:t.next=19;break;case 18:e.$message.warning(s.message);case 19:t.next=23;break;case 21:return t.abrupt("return",!1);case 23:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()},get_options:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r,a,s;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n.a.uselist({page:1,size:1e4});case 2:if(a=t.sent,r=a.code,s=a.data,a=a.message,0!==r){t.next=11;break}s=s.list,e.options=s,t.next=18;break;case 11:if(100<=r&&r<=104)return t.next=14,e.logout();t.next=16;break;case 14:t.next=18;break;case 16:e.options=[],e.$message.warning(a);case 18:case"end":return t.stop()}}),t)})))()}}};r("006e"),r=r("2877"),r=Object(r.a)(s,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:"设置订单用途",center:!0,align:"left",top:"18vh",width:"500px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)"},on:{"update:visible":function(t){e.showModelThis=t},close:function(t){e.showModelThis=!1}}},[r("el-card",{staticStyle:{margin:"-20px 0 0 0"}},[r("el-row",{attrs:{gutter:10}},[r("el-col",{attrs:{span:24}},[r("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",rules:e.rulesThis,"label-width":"80px"}},[r("el-form-item",{attrs:{label:"订单用途",prop:"useid"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"",clearable:"",placeholder:"订单用途"},model:{value:e.ruleForm.useid,callback:function(t){e.$set(e.ruleForm,"useid",t)},expression:"ruleForm.useid"}},e._l(e.options,(function(e){return r("el-option",{key:e.id,attrs:{label:e.order_use,value:e.id,disabled:"1"!==e.status}})})),1)],1)],1)],1),r("el-col",{staticStyle:{"text-align":"right"},attrs:{span:24}},[e.code?r("span",{staticClass:"fl"},[e._v("已选"+e._s(e.code.length)+"个订单")]):e._e(),r("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("保 存 ")]),r("el-button",{on:{click:function(t){e.showModelThis=!1}}},[e._v("取 消")])],1)],1)],1)],1)}),[],!1,null,"74b4aa64",null);t.default=r.exports},d57f:function(e,t,r){"use strict";var a=r("1b69"),n="admin/";t.a={list:function(e,t){return Object(a.a)(n+"activitylist",e,"post",t)},add:function(e,t){return Object(a.a)(n+"actcreate",e,"post",t)},detail:function(e,t){return Object(a.a)(n+"actinfo",e,"post",t)},actcost:function(e,t){return Object(a.a)(n+"actcost",e,"post",t)},setActivity:function(e,t){return Object(a.a)(n+"activity",e,"post",t)},status:function(e,t){return Object(a.a)(n+"actexam",e,"post",t)},actstatus:function(e,t){return Object(a.a)(n+"actstatus",e,"post",t)},update:function(e,t){return Object(a.a)(n+"customaredit",e,"post",t)},delete:function(e,t){return Object(a.a)(n+"customardelete",e,"post",t)}}},d5a7:function(e,t,r){},d5f6:function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=(r("e9c4"),r("96cf"),r("e284")),s={name:"unusualReason",props:["showModel","id","isDetail","sitem"],mixins:[r("9f53").a],data:function(){return{loading:!1,title:"",showModelThis:this.showModel,ruleForm:{type:"1",result:"",result_desc:""},rulesThis:this.rules,options:[{id:"1",label:"入库验收异常"},{id:"2",label:"退货验收异常"},{id:"3",label:"售后已收到货异常"},{id:"4",label:"采购退货"},{id:"5",label:"销售退换货"},{id:"6",label:"售后未收到货异常"},{id:"7",label:"议价申请原因"}],rules:{type:[{required:!0,trigger:"change",message:"请选择原因类型"}],result:[{required:!0,trigger:"blur",message:"入库异常原因不能为空"}],result_desc:[{required:!0,trigger:"blur",message:"入库异常备注不能为空"}]}}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis:function(e){e||this.$emit("cancel")}},methods:{initForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.loading=!0,"add"===e.id)return e.title="添加异常原因",e.rulesThis=e.rules,t.next=6,e.resetForm();t.next=8;break;case 6:t.next=13;break;case 8:return e.isDetail?(e.title="异常原因详情",e.rulesThis={}):(e.title="修改异常原因",e.rulesThis=e.rules),t.next=11,e.resetForm();case 11:return t.next=13,e.initData();case 13:e.loading=!1;case 14:case"end":return t.stop()}}),t)})))()},initData:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n.a.detail({id:e.id});case 2:if(!(r=t.sent)||0!==r.code||!r.data){t.next=7;break}e.ruleForm=r.data,t.next=13;break;case 7:if(r&&100<=r.code&&r.code<=104)return t.next=10,e.logout();t.next=12;break;case 10:t.next=13;break;case 12:e.$message.warning(r.message);case 13:case"end":return t.stop()}}),t)})))()},resetForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$nextTick((function(){e.$refs.ruleForm&&(e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),e.ruleForm={result:"",result_desc:"",type:"1"})}));case 2:case"end":return t.stop()}}),t)})))()},submitForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.ruleForm.validate(function(){var t=Object(a.a)(regeneratorRuntime.mark((function t(r){var a,s,i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r){t.next=34;break}if(e.loading=!0,i=JSON.parse(JSON.stringify(e.ruleForm)),a=i.result,s=i.result_desc,i=i.type,a={result:a||"",result_desc:s||"",type:i||"1",id:e.id},s={},"add"===e.id)return delete a.id,t.next=10,n.a.add(a);t.next=13;break;case 10:s=t.sent,t.next=18;break;case 13:return delete a.type,t.next=16,n.a.update(a);case 16:s=t.sent;case 18:if(e.loading=!1,!s||0!==s.code){t.next=26;break}i="add"===e.id?"添加成功":"修改成功",e.$notify.success({title:i,message:""}),e.showModelThis=!1,e.$emit("refresh"),t.next=32;break;case 26:if(s&&100<=s.code&&s.code<=104)return t.next=29,e.logout();t.next=31;break;case 29:t.next=32;break;case 31:e.$message.warning(s.message);case 32:t.next=36;break;case 34:return t.abrupt("return",!1);case 36:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()}}};r("ef8b"),r=r("2877"),r=Object(r.a)(s,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:e.title,center:!0,align:"left",top:"12vh",width:"700px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)"},on:{close:function(t){e.showModelThis=!1},"update:visible":function(t){e.showModelThis=t}}},[r("el-card",{staticStyle:{margin:"-20px 0 0 0"}},[r("el-row",{attrs:{gutter:10}},[r("el-col",{attrs:{span:24}},[r("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",rules:e.rulesThis,"label-width":"80px"}},[r("el-form-item",{attrs:{label:"原因类型",prop:"result"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"原因类型",disabled:!("add"===e.id)},model:{value:e.ruleForm.type,callback:function(t){e.$set(e.ruleForm,"type",t)},expression:"ruleForm.type"}},e._l(e.options,(function(e){return r("el-option",{key:e.id,attrs:{label:e.label,value:e.id}})})),1)],1),r("el-form-item",{attrs:{label:"原因标题",prop:"result"}},[r("el-input",{attrs:{disabled:e.isDetail,placeholder:"原因标题",maxlength:"50","show-word-limit":""},model:{value:e.ruleForm.result,callback:function(t){e.$set(e.ruleForm,"result",t)},expression:"ruleForm.result"}})],1),r("el-form-item",{attrs:{label:"原因备注",prop:"result_desc"}},[r("el-input",{attrs:{autosize:{minRows:4,maxRows:10},type:"textarea",placeholder:"原因备注",maxlength:"250","show-word-limit":"",disabled:e.isDetail},model:{value:e.ruleForm.result_desc,callback:function(t){e.$set(e.ruleForm,"result_desc",t)},expression:"ruleForm.result_desc"}})],1)],1)],1),r("el-col",{staticStyle:{"text-align":"right"},attrs:{span:24}},[e.isDetail?e._e():r("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("保 存 ")]),r("el-button",{on:{click:function(t){e.showModelThis=!1}}},[e._v(e._s(e.isDetail?"关 闭":"取 消"))])],1)],1)],1)],1)}),[],!1,null,"7e226637",null);t.default=r.exports},d65f:function(e,t,r){"use strict";r("b1a7")},d668:function(e,t,r){"use strict";r.r(t);var a=[function(){var e=this.$createElement;e=this._self._c||e;return e("div",{staticClass:"developing"},[e("img",{attrs:{src:r("baa6"),alt:""}})])}],n={name:"developing"},s=(r("df37"),r("2877"));s=Object(s.a)(n,(function(){this.$createElement;return this._self._c,this._m(0)}),a,!1,null,"71020079",null);t.default=s.exports},d681:function(e,t,r){},d70c:function(e,t,r){"use strict";r("ed8b")},d720:function(e,t,r){},d79e:function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=(r("ac1f"),r("1276"),r("e9c4"),r("a15b"),r("96cf"),r("4022")),s={name:"Group",props:["showModel","id","isDetail"],mixins:[r("9f53").a],data:function(){return{loading:!1,title:"添加用户组",showModelThis:this.showModel,ruleForm:{id:this.id,name:"",group_user:[],group_remark:""},rulesThis:this.rules,rules:{name:[{required:!0,message:"请输入组名称",trigger:"blur"},{min:2,max:30,message:"长度在 2 到 30 个字符",trigger:"blur"}],group_user:[{required:!0,message:"请选择数据共享用户",trigger:"change"}],group_remark:[{required:!0,message:"请输入备注",trigger:"blur"},{min:2,max:300,message:"长度在 2 到 300 个字符",trigger:"blur"}]},dataForm:{name:"",status:""},activeOptions:[]}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis:function(e){e||this.$emit("cancel")}},methods:{initForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.getAllActive();case 2:if(e.loading=!0,"add"===e.id)return e.title="添加用户组",e.rulesThis=e.rules,t.next=8,e.resetForm();t.next=10;break;case 8:t.next=15;break;case 10:return e.isDetail?(e.title="用户组详情",e.rulesThis={}):(e.title="修改用户组",e.rulesThis=e.rules),t.next=13,e.resetForm();case 13:return t.next=15,e.initData();case 15:e.loading=!1;case 16:case"end":return t.stop()}}),t)})))()},initData:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r,a,s,i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n.a.detail({id:e.id});case 2:if(!(r=t.sent)||0!==r.code){t.next=9;break}s=r.data,a=s.group_name,i=s.group_user,s=s.group_remark,i=i.split(","),e.ruleForm={id:e.id,name:a,group_user:i,group_remark:s},t.next=15;break;case 9:if(r&&100<=r.code&&r.code<=104)return t.next=12,e.logout();t.next=14;break;case 12:t.next=15;break;case 14:e.$message.warning(r.message);case 15:case"end":return t.stop()}}),t)})))()},resetForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$nextTick((function(){e.$refs.ruleForm&&(e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),e.ruleForm={id:e.id,name:"",group_user:[],group_remark:""})}));case 2:case"end":return t.stop()}}),t)})))()},submitForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.ruleForm.validate(function(){var t=Object(a.a)(regeneratorRuntime.mark((function t(r){var a,s,i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r){t.next=32;break}if(e.loading=!0,a=JSON.parse(JSON.stringify(e.ruleForm)),s=a.group_user.join(),a.group_user=s,s={},"add"===e.id)return delete a.id,t.next=10,n.a.add(a);t.next=13;break;case 10:s=t.sent,t.next=16;break;case 13:return t.next=15,n.a.update(a);case 15:s=t.sent;case 16:if(e.loading=!1,!s||0!==s.code){t.next=24;break}i="add"===e.id?"添加成功":"修改成功",e.$notify.success({title:i,message:""}),e.showModelThis=!1,e.$emit("refresh"),t.next=30;break;case 24:if(s&&100<=s.code&&s.code<=104)return t.next=27,e.logout();t.next=29;break;case 27:t.next=30;break;case 29:e.$message.warning(s.message);case 30:t.next=34;break;case 32:return t.abrupt("return",!1);case 34:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()},getAllActive:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n.a.accountall(e.dataForm);case 2:if(!(r=t.sent)||0!==r.code||!r.data){t.next=7;break}e.activeOptions=r.data,t.next=13;break;case 7:if(r&&100<=r.code&&r.code<=104)return t.next=10,e.logout();t.next=12;break;case 10:t.next=13;break;case 12:e.$message.warning(r.message);case 13:case"end":return t.stop()}}),t)})))()}}};r("c521"),r=r("2877"),r=Object(r.a)(s,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:e.title,center:!0,align:"left",top:"10vh",width:"900px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)"},on:{"update:visible":function(t){e.showModelThis=t},close:function(t){e.showModelThis=!1}}},[r("el-card",{staticStyle:{"margin-top":"-20px"}},[r("el-row",{attrs:{gutter:10}},[r("el-col",{attrs:{span:24}},[r("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",rules:e.rulesThis,"label-width":"80px"}},[r("el-form-item",{attrs:{label:"组名称",prop:"name"}},[r("el-input",{attrs:{placeholder:"请输入组名称",maxlength:"50",disabled:e.isDetail},model:{value:e.ruleForm.name,callback:function(t){e.$set(e.ruleForm,"name",t)},expression:"ruleForm.name"}})],1),r("el-form-item",{attrs:{label:"组成员",prop:"group_user"}},[r("el-select",{staticClass:"setWidth",attrs:{multiple:"",filterable:"",clearable:"",disabled:e.isDetail},model:{value:e.ruleForm.group_user,callback:function(t){e.$set(e.ruleForm,"group_user",t)},expression:"ruleForm.group_user"}},e._l(e.activeOptions,(function(t){return r("el-option",{key:"group_user"+t.id,attrs:{label:t.nickname,value:t.id,disabled:"1"!==t.status}},[r("span",{staticStyle:{float:"left"}},[e._v(e._s(t.nickname))]),r("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px",padding:"0 25px 0 0"}},[e._v(e._s(t.role_name))])])})),1)],1),r("el-form-item",{attrs:{label:"备注",prop:"group_remark"}},[r("el-input",{attrs:{type:"textarea",placeholder:"请输入备注",rows:5,maxlength:"300","show-word-limit":"",disabled:e.isDetail},model:{value:e.ruleForm.group_remark,callback:function(t){e.$set(e.ruleForm,"group_remark",t)},expression:"ruleForm.group_remark"}})],1)],1)],1),r("el-col",{staticStyle:{"text-align":"right"},attrs:{span:24}},[e.isDetail?e._e():r("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("保 存 ")]),r("el-button",{on:{click:function(t){e.showModelThis=!1}}},[e._v(e._s(e.isDetail?"关 闭":"取 消"))])],1)],1)],1)],1)}),[],!1,null,"ff3a160a",null);t.default=r.exports},d7bc:function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=(r("96cf"),{name:"handover",props:["showModel","id","isDetail","sitem"],components:{addEditFormA:r("49de").default},data:function(){return{sitem:null,title:"",showModelThis:this.showModel}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis:function(e){e||this.$emit("cancel")}},methods:{initForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.loading=!0,"add"===e.id?(e.title="新建售后申请",e.rulesThis=e.rules):e.isDetail?e.rulesThis={}:e.rulesThis=e.rules,e.loading=!1;case 3:case"end":return t.stop()}}),t)})))()},handClick:function(e){this.showModelThis=e},refresh:function(e){this.showModelThis=e,this.$emit("refresh",!0)}}});r=r("2877"),r=Object(r.a)(n,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("el-dialog",{attrs:{title:"新建售后申请",center:!0,align:"left",top:"14vh",width:"900px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)"},on:{"update:visible":function(t){e.showModelThis=t},close:function(t){e.showModelThis=!1}}},[t("el-card",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{"margin-top":"-20px"}},[e.showModel?t("add-edit-form-a",{attrs:{id:e.id,sitem:e.sitem,"show-model":e.showModel,"is-detail":e.isDetail},on:{closeModel:e.handClick,refresh:e.refresh}}):e._e()],1)],1)}),[],!1,null,"5780f156",null);t.default=r.exports},d80a:function(e,t,r){"use strict";r("8fce")},d959:function(e,t,r){"use strict";r("4f6a")},d9bb:function(e,t,r){"use strict";var a=r("1b69"),n="admin/";t.a={add:function(e,t){return Object(a.a)(n+"wareadd",e,"post",t)},list:function(e,t){return Object(a.a)(n+"warelist",e,"post",t)},detail:function(e,t){return Object(a.a)(n+"wareinfo",e,"post",t)},update:function(e,t){return Object(a.a)(n+"waresave",e,"post",t)},status:function(e,t){return Object(a.a)(n+"warestatus",e,"post",t)},delete:function(e,t){return Object(a.a)(n+"waredel",e,"post",t)}}},d9c3:function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=(r("d3b7"),r("159b"),r("d81d"),r("99af"),r("e9c4"),r("c740"),r("96cf"),r("a2b6")),s=r("9f53"),i=r("61f7");s={name:"sellReturn",props:["showModel","id","isDetail","sitem"],mixins:[s.a],data:function(){return{loading:!1,showModelThis:this.showModel,ruleForm:{good_num:"",thnum:"",return_type:"1",orderCode:"",remark:"",errorCode:"",returnT:""},rulesThis:this.rules,options:[{value:"1",label:"无地址"},{value:"2",label:"有地址"}],rules:{errorCode:[{required:!0,message:"请选择退货原因",trigger:"change"}],good_num:[{required:!0,message:"请输入购买数量",trigger:"blur"}],thnum:[{required:!0,message:"请输入未发数量",trigger:"blur"}],remark:[{required:!0,message:"请输入退货备注",trigger:"blur"}],return_type:[{required:!0,message:"请选择退货类型",trigger:"change"}]},get_product_go:[],noAddrT:0,hasAddrT:0,type_change:!0}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis:function(e){e||this.$emit("cancel")}},methods:{errorCode_change:function(e){this.ruleForm.errorCode=e&&e.code?e.code:"",this.$refs.ruleForm.validateField("errorCode")},initForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,e.rulesThis=e.rules,t.next=4,e.resetForm();case 4:e.loading=!1;case 5:case"end":return t.stop()}}),t)})))()},number_change:function(e,t,r){var n=this;return Object(a.a)(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:null!==r?(n.get_product_go[r][t]=e+""||"0",n.$set(n.get_product_go,r,n.get_product_go[r])):(n.ruleForm[t]=e+""||"0",n.$refs.ruleForm.validateField(t));case 1:case"end":return a.stop()}}),a)})))()},return_type_change:function(){var e=this.ruleForm.return_type;this.ruleForm.returnT="1"===e?this.noAddrT:this.hasAddrT},resetForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$nextTick((function(){var t,r,a,n,s;e.$refs.ruleForm&&(e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),r=(t=e.sitem).addrs,a=t.orderCode,n=t.good_num,t.send_type,t.wsend_num,e.noAddrT=0,e.hasAddrT=0,s=[],r.forEach((function(t){e.hasAddrT+=+t.receipt_quantity,"0"===t.send_status||"1"===t.send_status?s.push(t):t.receipt_quantity})),s.map((function(e){return e.edit=!1,e.return_num=e.return_num||"0",e})),e.noAddrT=+n-e.hasAddrT,0===e.noAddrT||0===e.hasAddrT?e.type_change=!0:e.type_change=!1,e.ruleForm={good_num:n||"0",orderCode:a||"",return_type:0!==e.noAddrT&&0!==e.hasAddrT||0!==e.noAddrT?"1":"2",remark:"",errorCode:"",thnum:n||"0",returnT:"0"},e.get_product_go=(t=[]).concat.apply(t,s),e.return_type_change())}));case 2:case"end":return t.stop()}}),t)})))()},submitForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.ruleForm.validate(function(){var t=Object(a.a)(regeneratorRuntime.mark((function t(r){var a,s,i,o,l,c,u,d,p;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r){t.next=37;break}if(e.loading=!0,u=e.ruleForm,a=u.thnum,s=u.return_type,o=u.orderCode,i=u.remark,u=u.errorCode,o={orderCode:o,errorCode:u,remark:i,thnum:a,returnAddr:[]},l=[],c=0,"2"!==s){t.next=19;break}if(u=JSON.parse(JSON.stringify(e.get_product_go)),d=!1,u.forEach((function(e){e.edit&&(d=!0);var t={id:e.id,return_num:e.return_num};c+=+e.return_num,l.push(t)})),o.returnAddr=l,d)return e.$message.warning("地址信息正在编辑,请保存后再试!"),e.loading=!1,t.abrupt("return");t.next=14;break;case 14:if(0===c)return e.$message.warning("地址退货总数量不能为0!"),e.loading=!1,t.abrupt("return");t.next=18;break;case 18:o.thnum=c;case 19:return t.next=21,n.a.add(o);case 21:if(p=t.sent,e.loading=!1,!p||0!==p.code){t.next=29;break}e.$notify.success({title:"添加成功",message:""}),e.showModelThis=!1,e.$emit("refresh",!1),t.next=35;break;case 29:if(p&&100<=p.code&&p.code<=104)return t.next=32,e.logout();t.next=34;break;case 32:t.next=35;break;case 34:e.$message.warning(p.message);case 35:t.next=39;break;case 37:return t.abrupt("return",!1);case 39:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()},checkRow:function(e){var t=this.get_product_go[e],r=t.wsend_num;t=t.return_num;Object(i.k)(t)?parseInt(r)<parseInt(t)?this.$message.warning("退货数量不能大于未发货总数量!"):(this.get_product_go[e].edit=!1,this.$set(this.get_product_go,e,this.get_product_go[e])):this.$message.warning("退货数量不规范!")},editRow:function(e){-1!==JSON.parse(JSON.stringify(this.get_product_go)).findIndex((function(e){return!0===e.edit}))?this.$message.warning("请完成其他行的编辑!"):(this.get_product_go[e].edit=!0,this.$set(this.get_product_go,e,this.get_product_go[e]))}}},r=r("2877"),r=Object(r.a)(s,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:"新建退货单",center:!0,align:"left",top:"5vh",width:"1040px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)"},on:{close:function(t){e.showModelThis=!1},"update:visible":function(t){e.showModelThis=t}}},[r("el-card",{staticStyle:{margin:"-20px 0 0 0"}},[r("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",rules:e.rulesThis,size:"mini","label-width":"80px"}},[r("el-row",[r("el-col",{attrs:{span:8}},[r("el-form-item",{attrs:{label:"退货类型",prop:"return_type"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{disabled:e.type_change,placeholder:"退货类型"},on:{change:e.return_type_change},model:{value:e.ruleForm.return_type,callback:function(t){e.$set(e.ruleForm,"return_type",t)},expression:"ruleForm.return_type"}},e._l(e.options,(function(e){return r("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),r("el-form-item",{attrs:{label:"退货原因",prop:"errorCode"}},[r("abnormal-cause",{attrs:{value:e.ruleForm.errorCode,placeholder:"退货原因",type:"5",size:"mini"},on:{searchChange:e.errorCode_change}})],1)],1),r("el-col",{attrs:{span:16}},[r("el-form-item",{attrs:{label:"退货备注",prop:"remark"}},[r("el-input",{attrs:{disabled:e.isDetail,type:"textarea",rows:3,maxlength:"250","show-word-limit":"",placeholder:"请填写备注"},model:{value:e.ruleForm.remark,callback:function(t){e.$set(e.ruleForm,"remark",t)},expression:"ruleForm.remark"}})],1)],1),r("el-col",{directives:[{name:"show",rawName:"v-show",value:"2"===e.ruleForm.return_type,expression:"ruleForm.return_type === '2'"}],attrs:{span:24}},[r("el-form-item",{attrs:{label:"收货信息",size:"mini",required:""}},[r("el-table",{attrs:{data:e.get_product_go,border:"",size:"mini","row-key":"key","max-height":"300px"}},[r("el-table-column",{attrs:{label:"收货人-联系电话-地址","min-width":"300","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.contactor)+"-"+e._s(t.row.mobile)+"-"+e._s(t.row.addr_info)+e._s(t.row.addr)+" ")]}}])}),r("el-table-column",{attrs:{label:"收货总数量",prop:"receipt_quantity",width:"100"}}),r("el-table-column",{attrs:{label:"退货数量",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("digital-input",{directives:[{name:"show",rawName:"v-show",value:t.row.edit,expression:"scope.row.edit"}],attrs:{values:t.row.return_num,placeholder:"退货数量",min:0,disabled:!1,max:t.row.receipt_quantity,position:"right",precision:0,size:"mini",controls:!1,append:""},on:{reschange:function(r){return e.number_change(r,"return_num",t.$index)}}}),r("span",{directives:[{name:"show",rawName:"v-show",value:!t.row.edit,expression:"!scope.row.edit"}]},[e._v(" "+e._s(t.row.return_num)+" ")])]}}])}),r("el-table-column",{attrs:{fixed:"right",label:"操作",width:"50"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.edit?e._e():r("el-tooltip",{attrs:{effect:"dark",content:"编辑",placement:"top"}},[r("i",{staticClass:"el-icon-edit tb-icon",on:{click:function(r){return e.editRow(t.$index,1)}}})]),t.row.edit?r("el-tooltip",{attrs:{effect:"dark",content:"保存",placement:"top"}},[r("i",{staticClass:"el-icon-circle-check tb-icon",on:{click:function(r){return e.checkRow(t.$index,1)}}})]):e._e()]}}])})],1)],1)],1),r("el-col",{attrs:{span:24}},[r("el-row",[r("el-col",{attrs:{span:6}},[r("el-form-item",{attrs:{label:"购买数量",prop:"good_num"}},[r("el-input",{attrs:{disabled:!0,placeholder:"购买数量",maxlength:"10"},model:{value:e.ruleForm.good_num,callback:function(t){e.$set(e.ruleForm,"good_num",t)},expression:"ruleForm.good_num"}})],1)],1),r("el-col",{attrs:{span:6}},[r("el-form-item",{attrs:{label:"可退数量",prop:"returnT"}},[r("el-input",{attrs:{disabled:!0,maxlength:"10",placeholder:"可退数量"},model:{value:e.ruleForm.returnT,callback:function(t){e.$set(e.ruleForm,"returnT",t)},expression:"ruleForm.returnT"}})],1)],1),r("el-col",{directives:[{name:"show",rawName:"v-show",value:"1"===e.ruleForm.return_type,expression:"ruleForm.return_type === '1'"}],attrs:{span:6}},[r("el-form-item",{attrs:{label:"未发数量",prop:"thnum"}},[r("digital-input",{attrs:{values:e.ruleForm.thnum,placeholder:"未发数量",min:0,disabled:!1,max:e.ruleForm.returnT,position:"right",precision:0,size:"mini",controls:!1,append:""},on:{reschange:function(t){return e.number_change(t,"thnum")}}})],1)],1),r("el-col",{staticStyle:{"text-align":"right"},attrs:{span:"1"===e.ruleForm.return_type?6:12}},[r("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.submitForm}},[e._v("保 存 ")]),e.isDetail?e._e():r("el-button",{attrs:{size:"mini"},on:{click:function(t){e.showModelThis=!1}}},[e._v("关 闭")])],1)],1)],1)],1)],1)],1)],1)}),[],!1,null,"2a3b9a1a",null);t.default=r.exports},d9c6:function(e,t,r){"use strict";r("a55b")},d9df:function(e,t,r){},da35:function(e,t,r){"use strict";var a=r("1b69"),n="admin/";t.a={list:function(e,t){return Object(a.a)(n+"goodlist",e,"post",t)},add:function(e,t){return Object(a.a)(n+"gooduponline",e,"post",t)},detail:function(e,t){return Object(a.a)(n+"goodinfo",e,"post",t)},goodupexam:function(e,t){return Object(a.a)(n+"goodupexam",e,"post",t)},status:function(e,t){return Object(a.a)(n+"goodupexam",e,"post",t)},ladderOne:function(e,t){return Object(a.a)(n+"goodupeditladder",e,"post",t)},delete:function(e,t){return Object(a.a)(n+"gooddel",e,"post",t)},againonline:function(e,t){return Object(a.a)(n+"againonline",e,"post",t)},goodupprice:function(e,t){return Object(a.a)(n+"goodupprice",e,"post",t)},copy:function(e,t){return Object(a.a)(n+"goodcopy",e,"post",t)},catAll:function(e,t){return Object(a.a)(n+"catAll",e,"post",t)},brandAll:function(e,t){return Object(a.a)(n+"brandall",e,"post",t)},supplierAll:function(e,t){return Object(a.a)(n+"supplierall",e,"post",t)},specByCat:function(e,t){return Object(a.a)(n+"SpecByCat",e,"post",t)},specinfoadd:function(e,t){return Object(a.a)(n+"specinfoadd",e,"post",t)}}},db84:function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=(r("96cf"),{name:"goodsCost",props:["showModel","left","right","lang"],data:function(){return{loading:!0,title:"商品阶梯价格",showModelThis:this.showModel}},methods:{closeModel:function(e){this.showModelThis=!1},initForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.loading=!1;case 1:case"end":return t.stop()}}),t)})))()}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis:function(e){e||this.$emit("cancel")}}});r("715a"),r=r("2877"),r=Object(r.a)(n,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("el-dialog",{attrs:{title:e.title,center:!0,align:"left",top:"12vh",width:"1040px","close-on-click-modal":!1,visible:e.showModelThis},on:{close:e.closeModel,"update:visible":function(t){e.showModelThis=t}}},[r("el-card",[r("el-row",{attrs:{gutter:10}},[r("el-col",{attrs:{span:24}},[e.left&&e.left.header&&0<e.left.header.length&&e.right&&e.right.header&&0<e.right.header.length?r("div",[r("div",{staticClass:"list-table clearfix"},[r("div",{staticClass:"left",style:{width:e.lang}},[r("div",{staticClass:"header"},e._l(e.left.header,(function(t,a){return r("div",{key:"lhead"+a,staticClass:"header-item"},[e._v(" "+e._s(t.spec_name)+" ")])})),0),e.left.spec&&0<e.left.spec.length?r("div",{staticClass:"header-body"},e._l(e.left.spec,(function(t,a){return r("div",{key:"lheadrow"+a,staticClass:"header-body-row"},e._l(t,(function(t,a){return r("div",{key:"lheadcol"+a,staticClass:"heder-body-col"},[e._v(" "+e._s(t.spec_value)+" ")])})),0)})),0):e._e()]),r("div",{staticClass:"right",style:{paddingLeft:e.lang}},[r("div",{staticClass:"header"},e._l(e.right.header,(function(t,a){return r("div",{key:"lheadr"+a,staticClass:"header-col clearfix"},[r("div",{staticClass:"header-col-jieti clearfix"},[r("div",{staticClass:"header-col-jieti-title tc clearfix"},[e._v(" 阶梯"+e._s(a+1)+" ")]),r("div",{staticClass:"header-col-jieti-main clearfix"},[r("div",{staticClass:"header-col-item fl tc"},[e._v(e._s(t.num))]),r("div",{staticClass:"header-col-item fl tc"},[e._v(e._s(t.price))])])])])})),0),e.right.spec&&0<e.right.spec.length?r("div",{staticClass:"right-body"},e._l(e.right.spec,(function(t,a){return r("div",{key:"lbodyr"+a,staticClass:"right-body-col"},e._l(t.limit,(function(t,a){return r("div",{key:"lbritem"+a,staticClass:"right-body-col-item clearfix"},[r("div",{staticClass:"right-body-col-item-div fl tc"},[e._v(" "+e._s(t.begin_num)+" ")]),r("div",{staticClass:"right-body-col-item-div fl tc"},[e._v(" "+e._s(t.shop_price)+" ")])])})),0)})),0):e._e()])])]):r("div",{staticClass:"tc"},[r("el-tag",{attrs:{type:"warning"}},[e._v("暂无阶梯价!")])],1)])],1)],1)],1)}),[],!1,null,"770605d2",null);t.default=r.exports},db99:function(e,t,r){"use strict";r.r(t);var a=r("2909"),n=r("1da1"),s=(r("96cf"),r("7db0"),r("d3b7"),r("c740"),r("e9c4"),r("159b"),r("25f0"),r("a434"),r("99af"),r("3fca")),i=r("5f08"),o=r("9f53"),l=r("61f7"),c=r("9850");o={name:"allot",props:["showModel","id","sitem","newTime"],mixins:[o.a],components:{searchStockGoodModal:i.a},computed:{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"allotDetail"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}},data:function(){return{showGoodsModel:!1,status:"",supplier_code:"",supplier_name:"",supplier_in_code:"",supplier_in_name:"",stock_code:"",stock_in_code:"",loading:!1,showModelThis:this.showModel,delList:[],ruleForm:{supplier_code:[],stock_code:[],supplier_in_code:[],stock_in_code:[],in_companyNo:"",out_companyNo:""},tableForm:{product_go:[]},rulesThis:this.rules,tableFormThis:c.a.tableFormThis,rules:{in_companyNo:[{required:!0,message:"请选择入库方业务公司",trigger:"change"}],out_companyNo:[{required:!0,message:"请选择出库方业务公司",trigger:"change"}],supplier_code:[{type:"array",required:!0,message:"请选择供应商",trigger:"change"}],stock_code:[{type:"array",required:!0,message:"请选择仓库",trigger:"change"}],supplier_in_code:[{type:"array",required:!0,message:"请选择供应商",trigger:"change"}],stock_in_code:[{type:"array",required:!0,message:"请选择仓库",trigger:"change"}]},columns:[],tableData:[]}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis:function(e){e||this.$emit("cancel")},newTime:function(e){e&&this.initForm()}},mounted:function(){this.initForm()},methods:{closeModel:function(){this.$emit("closeModel")},supplierChange:function(e,t){var r=this;return Object(n.a)(regeneratorRuntime.mark((function a(){var n;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:n=e.code,r.ruleForm[t]=n||"",r.$refs.ruleForm.validateField(t);case 3:case"end":return a.stop()}}),a)})))()},openGoodsModel:function(){0===this.ruleForm.stock_code.length?this.$message.warning("请选择出库仓库!"):-1!==this.tableForm.product_go.findIndex((function(e){return e.edit}))?this.$message.warning("当前已有商品正在编辑!"):this.showGoodsModel=!0},initForm:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,"add"===e.id&&(e.status=""),e.columns=[],e.rulesThis=e.rules,t.next=6,e.resetForm();case 6:e.loading=!1;case 7:case"end":return t.stop()}}),t)})))()},resetForm:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$nextTick((function(){var t,r,a,n,s,i,o,l,u;e.$refs.ruleForm&&(e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),t=(i=e.sitem).wsm_in,r=i.wsm_out,u=i.wsm_in_name,l=i.wsm_out_name,o=i.status,a=i.out_code,n=i.in_code,s=i.in_companyNo,i=i.out_companyNo,e.status=o||"",e.supplier_code=a||"",e.supplier_name=l||"",e.supplier_in_code=n||"",e.supplier_in_name=u||"",e.stock_code=r||"",e.stock_in_code=t||"",e.ruleForm={in_companyNo:s||"",out_companyNo:i||"",supplier_code:a?[a]:[],stock_code:r?[r]:[],supplier_in_code:n?[n]:[],stock_in_code:t?[t]:[]}),e.$refs.tableForm&&(e.$refs.tableForm.resetFields(),e.$refs.tableForm.clearValidate(),l=(o=e.sitem).item,u=o.status,e.status=u||"",e.tableForm.product_go=[],e.delList=[],JSON.parse(JSON.stringify(l||[])).forEach((function(t){t.usable_num=t.usable_num,t.type_code=t.good_type_code,t.error_num=t.error_num||"0",t.error_code=t.error_code||"",t.error_msg=t.error_msg||"",t.error_remark=t.error_remark||"",t.stock_num=t.stock_num||"0",t.edit=!1,t.spuCode=t.good_type_code,e.tableForm.product_go.push(t)})),JSON.parse(JSON.stringify(c.a.columns)).forEach((function(t){"5"!=e.status&&"4"!=e.status||(t.show=!0),"4"==e.status&&"stock_num"===t.prop&&(t.type="input",t.width="150px"),"3"==e.status&&("error_remark"!==t.prop&&"error_num"!==t.prop||(t.show=!0,t.width="150px",t.type="input"),"error_code"===t.prop&&(t.show=!0,t.width="150px",t.type="select")),"0"!=e.status&&""!=e.status||"allot_num"===t.prop&&(t.width="150px",t.type="input"),e.columns.push(t)})))}));case 2:case"end":return t.stop()}}),t)})))()},submitForm:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.ruleForm.validate(function(){var t=Object(n.a)(regeneratorRuntime.mark((function t(r){var a,n,i,o,l,c,u;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r){t.next=48;break}if(e.stock_code==e.stock_in_code)return e.$message.warning("出入库仓库不能相同!"),t.abrupt("return");t.next=4;break;case 4:if(0===e.tableForm.product_go.length)return e.$message.warning("请选择调拨商品!"),t.abrupt("return");t.next=7;break;case 7:if(a=-1,i=n=!0,o=[],e.tableForm.product_go.forEach((function(e,t){e.edit&&-1===a&&(a=t),t=parseInt(e.usable_num),e=parseInt(e.allot_num),0===t&&(i=!1),t<e&&(n=!1)})),-1!==a)return e.$message.warning("当前已有商品正在编辑!"),t.abrupt("return");t.next=12;break;case 12:if(i){t.next=15;break}return e.$message.warning("部分商品已无可用库存数,无法进行调拨操作!"),t.abrupt("return");case 15:if(n){t.next=18;break}return e.$message.warning("部分商品调拨数量已大于可用库存数!"),t.abrupt("return");case 18:if(e.loading=!0,o=e.getGoodList(),c=JSON.parse(JSON.stringify(e.ruleForm)),l=c.stock_code,c=c.stock_in_code,l={id:e.id,wsm_out:l.toString(),wsm_in:c.toString(),good:o},c={},"add"===e.id)return delete l.id,t.next=27,s.a.add(l);t.next=30;break;case 27:c=t.sent,t.next=33;break;case 30:return t.next=32,s.a.update(l);case 32:c=t.sent;case 33:if(e.loading=!1,!c||0!==c.code){t.next=40;break}u="add"===e.id?"添加成功":"修改成功",e.$notify.success({title:u,message:""}),e.$emit("refresh"),t.next=46;break;case 40:if(c&&100<=c.code&&c.code<=104)return t.next=43,e.logout();t.next=45;break;case 43:t.next=46;break;case 45:e.$message.warning(c.message);case 46:t.next=50;break;case 48:return t.abrupt("return",!1);case 50:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()},getGoodList:function(){var e=JSON.parse(JSON.stringify(this.tableForm.product_go)),t=JSON.parse(JSON.stringify(this.delList)),r=[];return e.forEach((function(e){e={spuCode:e.spuCode||"",allot_num:e.allot_num,is_del:"0"},r.push(e)})),t.forEach((function(e){e={id:e.id||"",good_code:e.type_code,allot_num:e.allot_num,is_del:"1"},r.push(e)})),r},deleteRow:function(e,t){"add"!==this.id&&t[e].id&&this.delList.push(t[e]),t.splice(e,1)},checkRow:function(e){var t=this.tableForm.product_go[e],r=t.usable_num;t=t.allot_num;Object(l.k)(t)?"0"===t?this.$message.warning("调拨数量不能为0!"):parseInt(t)>parseInt(r)?this.$message.warning("调拨数量不大于可用库存数!"):this.tableForm.product_go[e].edit=!1:this.$message.warning("请输入数字!")},editRow:function(e){-1!==this.tableForm.product_go.findIndex((function(e){return e.edit}))?this.$message.warning("请完成其他行的编辑!"):this.tableForm.product_go[e].edit=!0},addGoodsRes:function(e){var t=JSON.parse(JSON.stringify(this.tableForm.product_go)),r=JSON.parse(JSON.stringify(e)),n=(e=[]).concat.apply(e,Object(a.a)(t)),s=JSON.parse(JSON.stringify(this.delList));r.forEach((function(e,a){-1===t.findIndex((function(t){return e.spuCode===t.spuCode}))&&(r[a].usable_num=r[a].usable_stock,r[a].allot_num=r[a].usable_stock,r[a].edit=!1,n.push(r[a]))})),n.forEach((function(e){var t=s.findIndex((function(t){return e.spuCode===t.spuCode}));-1!==t&&s.splice(t,1)})),this.tableForm.product_go=(e=[]).concat.apply(e,Object(a.a)(n)),this.delList=(e=[]).concat.apply(e,Object(a.a)(s)),this.$refs.tableForm.validateField("product_go")},selectSupplierOut:function(e){e=e.code,this.ruleForm.supplier_code=e?[e]:[],this.supplier_code=e||"",this.ruleForm.stock_code=[],this.tableForm.product_go=[],this.delList=[],this.$refs.ruleForm.validateField("supplier_code")},selectStockOut:function(e){e&&e.id?(this.ruleForm.stock_code=[e.code],this.stock_code=e.code):(this.ruleForm.stock_code=[],this.stock_code=""),this.tableForm.product_go=[],this.delList=[],this.$refs.ruleForm.validateField("stock_code")},selectStockIn:function(e){e&&e.id?(this.ruleForm.stock_in_code=[e.code],this.stock_in_code=e.code):(this.ruleForm.stock_in_code=[],this.stock_in_code=""),this.$refs.ruleForm.validateField("stock_in_code")},selectSupplierIn:function(e){e&&e.id?(this.ruleForm.supplier_in_code=[e.code],this.supplier_in_code=e.code):(this.ruleForm.supplier_in_code=[],this.supplier_in_code=""),this.ruleForm.stock_in_code=[],this.$refs.ruleForm.validateField("supplier_in_code")}}},r("13fb"),i=r("2877"),r=Object(i.a)(o,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("el-row",{staticClass:"addForm"},[r("el-col",{attrs:{span:24}},[r("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",rules:e.rulesThis,size:"mini","label-width":"85px"}},[r("el-row",[r("el-col",{attrs:{span:12}},[r("div",{staticClass:"label-title-model"},[e._v("出库仓库信息:")]),r("el-form-item",{attrs:{label:"业务公司",prop:"out_companyNo"}},[r("search-work-company",{attrs:{value:e.ruleForm.out_companyNo,size:"mini",disabled:!("add"===e.id||"0"===e.status&&e.powers.some((function(e){return"005"==e}))),"is-detail":"add"!==e.id,placeholder:"业务公司"},on:{searchChange:function(t){return e.supplierChange(t,"out_companyNo")}}})],1),r("el-form-item",{attrs:{label:"公司",prop:"supplier_code"}},[r("search-supplier",{attrs:{value:e.ruleForm.supplier_code,placeholder:"请选择公司",size:"mini","is-detail":"add"!==e.id,disabled:!("add"===e.id||"0"===e.status&&e.powers.some((function(e){return"005"==e}))),names:e.supplier_name},on:{searchChange:e.selectSupplierOut}})],1),r("el-form-item",{attrs:{label:"仓库",prop:"stock_code"}},[r("search-stock",{attrs:{value:e.ruleForm.stock_code,isDetail:"add"!==e.id,disabled:!("add"===e.id||"0"===e.status&&e.powers.some((function(e){return"005"==e}))),size:"mini",placeholder:"请选择仓库",isRelation:!0,companyCode:e.supplier_code,names:""},on:{searchChange:e.selectStockOut}})],1)],1),r("el-col",{attrs:{span:12}},[r("div",{staticClass:"label-title-model"},[e._v("入库仓库信息:")]),r("el-form-item",{attrs:{label:"业务公司",prop:"in_companyNo"}},[r("search-work-company",{attrs:{value:e.ruleForm.in_companyNo,names:"",size:"mini",disabled:!("add"===e.id||"0"===e.status&&e.powers.some((function(e){return"005"==e}))),"is-detail":"add"!==e.id,placeholder:"业务公司"},on:{searchChange:function(t){return e.supplierChange(t,"in_companyNo")}}})],1),r("el-form-item",{attrs:{label:"公司",prop:"supplier_in_code"}},[r("search-supplier",{attrs:{value:e.ruleForm.supplier_in_code,placeholder:"请选择公司",size:"mini","is-detail":"add"!==e.id,disabled:!("add"===e.id||"0"===e.status&&e.powers.some((function(e){return"005"==e}))),names:e.supplier_in_name},on:{searchChange:e.selectSupplierIn}})],1),r("el-form-item",{attrs:{label:"仓库",prop:"stock_in_code"}},[r("search-stock",{attrs:{value:e.ruleForm.stock_in_code,isDetail:"add"!==e.id,size:"mini",disabled:!("add"===e.id||"0"===e.status&&e.powers.some((function(e){return"005"==e}))),placeholder:"请选择仓库",isRelation:!0,companyCode:e.supplier_in_code,names:""},on:{searchChange:e.selectStockIn}})],1)],1)],1)],1)],1),r("el-col",{attrs:{span:24}},["3"==e.status&&e.powers.some((function(e){return"022"==e}))||"4"==e.status&&e.powers.some((function(e){return"023"==e}))?e._e():r("el-form",{ref:"tableForm",staticClass:"demo-tableForm product_go",attrs:{model:e.tableForm,rules:e.tableFormThis,size:"mini"}},[r("el-table",{attrs:{data:e.tableForm.product_go,border:"",size:"mini","row-key":"key"}},[e._l(e.columns,(function(t,a){return["text"===t.type&&t.show&&"error_code"!==t.prop?r("el-table-column",{key:t.prop+a,attrs:{prop:t.prop,"show-overflow-tooltip":"",label:t.label,width:t.width,"min-width":t.minWidth}}):"text"===t.type&&t.show&&"error_code"===t.prop?r("el-table-column",{key:t.prop+a,attrs:{prop:t.prop,label:t.label,width:t.width,"min-width":t.minWidth},scopedSlots:e._u([{key:"default",fn:function(t){return[r("span",{staticClass:"spscope"},[e._v(e._s(t.row.error_msg))])]}}],null,!0)}):"text"!==t.type&&t.show?r("el-table-column",{key:t.prop+a,attrs:{prop:t.prop,label:t.label,width:t.width,"min-width":t.minWidth},scopedSlots:e._u([{key:"default",fn:function(a){return[r("el-form-item",{attrs:{prop:"product_go."+a.$index+"."+t.prop,rules:a.row.edit?e.tableFormThis[t.prop]:{},size:"mini"}},[!0===a.row.edit&&"input"===t.type?r("el-input",{attrs:{size:"mini",maxlength:"250",clearable:""},model:{value:a.row[t.prop],callback:function(r){e.$set(a.row,t.prop,r)},expression:"scope.row[item.prop]"}}):e._e(),!0===a.row.edit&&"select"===t.type?r("el-select",{staticStyle:{width:"100%"},attrs:{clearable:"",placeholder:"异常原因"},on:{change:function(t){return e.elSelectChange(t,a.$index)}},model:{value:a.row[t.prop],callback:function(r){e.$set(a.row,t.prop,r)},expression:"scope.row[item.prop]"}},e._l(e.options,(function(e){return r("el-option",{key:e.result_code,attrs:{label:e.result,value:e.result_code,disabled:"0"===e.status}})})),1):e._e(),a.row.edit?e._e():r("span",{staticClass:"spscope"},[e._v(e._s("select"===t.type?a.row.error_msg:a.row[t.prop]))])],1)]}}],null,!0)}):e._e()]})),r("el-table-column",{attrs:{fixed:"right",label:"操作",width:"80"},scopedSlots:e._u([{key:"header",fn:function(t){return[r("span",[e._v("操作")]),r("el-tooltip",{staticClass:"fr",staticStyle:{margin:"3px 0 0 0"},attrs:{effect:"dark",content:"添加",placement:"top"}},[r("i",{staticClass:"el-icon-circle-plus-outline tb-icon",staticStyle:{color:"#63cbe7",magin:"0 0 0 10px"},on:{click:e.openGoodsModel}})])]}},{key:"default",fn:function(t){return[t.row.edit?e._e():r("el-tooltip",{attrs:{effect:"dark",content:"编辑",placement:"top"}},[r("i",{staticClass:"el-icon-edit tb-icon",on:{click:function(r){return e.editRow(t.$index)}}})]),t.row.edit?r("el-tooltip",{attrs:{effect:"dark",content:"保存",placement:"top"}},[r("i",{staticClass:"el-icon-circle-check tb-icon",on:{click:function(r){return e.checkRow(t.$index)}}})]):e._e(),r("el-tooltip",{attrs:{effect:"dark",content:"删除",placement:"top"}},[r("i",{staticClass:"el-icon-delete tb-icon",on:{click:function(r){return e.deleteRow(t.$index,e.tableForm.product_go)}}})])]}}],null,!1,1371037085)})],2)],1)],1),r("el-col",{staticStyle:{"text-align":"right",padding:"10px 0 10px 0"},attrs:{span:24}},["add"===e.id||"0"===e.status&&e.powers.some((function(e){return"005"==e}))?r("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.submitForm}},[e._v("保 存 ")]):e._e()],1),r("el-col",{attrs:{span:24}},[r("search-stock-good-modal",{attrs:{"show-model":e.showGoodsModel,code:e.stock_code},on:{cancel:function(t){e.showGoodsModel=!1},searchChange:e.addGoodsRes}})],1)],1)}),[],!1,null,"f3b5fa46",null);t.default=r.exports},dbbb:function(e,t,r){"use strict";function a(e,t,r){e.required&&""===t?r(new Error("不能为空!")):r()}r.d(t,"b",(function(){return n})),r.d(t,"c",(function(){return s})),r.d(t,"d",(function(){return i})),r.d(t,"e",(function(){return o})),r.d(t,"f",(function(){return l})),r.d(t,"g",(function(){return c})),r.d(t,"h",(function(){return u})),r.d(t,"i",(function(){return d})),r.d(t,"j",(function(){return p})),r.d(t,"a",(function(){return m})),r.d(t,"k",(function(){return f}));var n=[{id:"0",name:"否"},{id:"1",name:"是"}],s=[{id:"0",name:"非泰康"},{id:"1",name:"泰康"}],i=[{id:"0",name:"无销售权限"},{id:"1",name:"有销售权限"}],o=[{id:"0",name:"非库存品"},{id:"1",name:"库存品"}],l=[{id:"0",name:"否"},{id:"1",name:"是"}],c=[{id:"1",name:"全国"},{id:"2",name:"全国除偏远"}],u=[{id:"0",name:"否"},{id:"1",name:"是"}],d=[{id:"0",name:"无工差"},{id:"1",name:"有工差"}],p=["证书","包装盒","绒布袋","标签","其他"],m=[{type:"selection",fixed:"left",_noset_:!0},{prop:"spuCode",label:"编号",width:"160px"},{prop:"good_thumb_img",label:"图片",_slot_:"good_thumb_img",width:"45px"},{prop:"good_name",label:"名称","min-width":"160px"},{prop:"cat_name",label:"分类"},{prop:"brand_name",label:"品牌"},{prop:"isonline",label:"是否上线",_slot_:"isonline",width:"70px"},{prop:"status",label:"状态",_slot_:"status",width:"118px"},{prop:"supplierNo",label:"供应商编号",width:"110px"},{prop:"supplier_name",label:"供应商名称",width:"110px"},{prop:"companyNo",label:"业务公司编号",width:"110px"},{prop:"company",label:"业务公司名称",width:"110px"},{prop:"creater",label:"创建人",width:"70px"},{prop:"addtime",label:"创建时间",width:"140px"},{prop:"",label:"操作",fixed:"right",_noset_:!0,width:"170px",_slot_:"operation"}],f={cat_id:[{type:"array",required:!0,message:"请选择商品分类",trigger:"change"}],brandid:[{type:"array",required:!0,message:"请选择商品品牌",trigger:"change"}],noble_weight:[{required:!0,validator:function(e,t,r){e=e.required,e&&""===t?r(new Error("不能为空!")):!e||"0"!==t&&"0."!==t&&"0.0"!==t&&"0.00"!==t&&"0.000"!==t?r():r(new Error("不能为零!"))},trigger:"blur"}],weight:[{required:!0,validator:a,trigger:"blur"}],good_type:[{required:!0,message:"请选择是否定制",trigger:"change"}],is_stock:[{required:!0,message:"请选择是否库存品",trigger:"change"}],company_id:[{required:!0,message:"请选择业务公司",trigger:"change"}],supplierNo:[{type:"array",required:!0,message:"请选择供应商",trigger:"change"}],is_auth:[{required:!0,message:"请选择是否有权限销售",trigger:"change"}],tax:[{required:!0,message:"请选择税率",trigger:"change"}],good_name:[{required:!0,message:"请输入商品名称",trigger:"blur"}],unit:[{type:"array",required:!0,message:"请输入商品单位",trigger:"blur"}],is_exclusive:[{required:!0,type:"array",message:"请选择专属类型",trigger:"change"}],noble_metal:[{required:!0,message:"请选择贵金属种类",trigger:"change"}],is_gold_price:[{required:!0,message:"请选择是否启用实时金价",trigger:"change"}],moq:[{required:!0,validator:a,trigger:"blur"}],customized:[{required:!0,validator:a,trigger:"blur"}],after_sales:[{required:!0,message:"售后说明不能为空",trigger:"blur"}],good_remark:[{required:!0,message:"商品备注不能为空",trigger:"blur"}],packing_list:[{required:!0,message:"请输入包装清单",trigger:"blur"}],packing_way:[{required:!0,message:"请输入包装方式",trigger:"blur"}],packing_spec:[{required:!0,message:"请输入装箱规格",trigger:"blur"}],packing_weight:[{required:!0,message:"请输入装箱重量",trigger:"blur"}],packing_szie:[{required:!0,message:"请输入装箱尺寸",trigger:"blur"}],supply_area:[{required:!0,message:"请选择供货区域",trigger:"change"}],delivery_place:[{type:"array",required:!0,message:"请选择发货地",trigger:"change"}],origin_place:[{type:"array",required:!0,message:"请选择产地",trigger:"change"}],delivery_day:[{required:!0,message:"请输入物流时间",trigger:"blur"}],lead_time:[{required:!0,message:"请输入供货周期",trigger:"blur"}],sample_day:[{required:!0,message:"请输入调样周期",trigger:"blur"}],packing_size:[{required:!0,message:"请输入装箱尺寸",trigger:"blur"}],good_size:[{required:!0,message:"请输入商品尺寸",trigger:"blur"}],good_thumb_img:[{required:!0,message:"请上传商品缩略图",trigger:"change"}],good_img:[{type:"array",required:!0,validator:function(e,t,r){e=e.required,e&&0==t.length?r(new Error("请上传商品主图!")):e&&(t.length<3||10<t.length)?r(new Error("商品主图应为3~10张!")):r()},trigger:"change"}],good_info_img:[{type:"array",required:!0,message:"至少上传一张商品详情介绍图",trigger:"change"}],demo_fee:[{required:!0,validator:a,trigger:"blur"}],is_diff:[{required:!0,message:"请选择有无工差",trigger:"change"}],config:[{required:!0,type:"array",message:"请选择配置要求",trigger:"change"}],other_config:[{required:!0,message:"其他要求不能为空",trigger:"blur"}],open_fee:[{required:!0,validator:a,trigger:"blur"}],sample_fee:[{required:!0,validator:a,trigger:"blur"}],market_price:[{required:!0,validator:a,trigger:"blur"}],cgd_gold_price:[{required:!0,validator:a,trigger:"blur"}]}},dced:function(e,t,r){"use strict";r("76fb")},dd07:function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=r("5530"),s=(r("96cf"),r("7db0"),r("d3b7"),r("a434"),r("e9c4"),r("159b"),r("c740"),r("99af"),r("da35")),i=r("9f53"),o=r("2f62"),l=r("3915"),c=r("6b81");i={name:"goodsOnlineAdd",mixins:[i.a],props:["showModel","id","type","sitem"],components:{searchGoodModal:l.a},computed:Object(n.a)(Object(n.a)({},Object(o.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"goodsOnlineAdd"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),watch:{newTime:function(e){e&&this.initForm()}},data:function(){return{tableData:[],costshowModel:!1,costmodelIndex:"",costsitem:{},showModel:!1,status:"",rulesThis:this.rules,activeName:"1",loading:!0,options1:c.b,ruleForm:{},rules:c.j}},mounted:function(){this.initForm()},methods:{initForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,e.resetFormData(),e.rulesThis=e.rules,t.next=5,e.resetForm();case 5:e.loading=!1;case 6:case"end":return t.stop()}}),t)})))()},openDel:function(e){this.tableData.splice(e,1)},resultList:function(e){var t=this,r=(this.showModel=!1,JSON.parse(JSON.stringify(e))),a=JSON.parse(JSON.stringify(this.tableData));r.forEach((function(e,n){-1===a.findIndex((function(t){return e.spucode===t.spucode}))&&(n=JSON.parse(JSON.stringify(r[n])),t.tableData.push(n))}))},submitForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.ruleForm.validate(function(){var t=Object(a.a)(regeneratorRuntime.mark((function t(r){var a,n,i,o,l,c;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r)return e.loading=!0,a=JSON.parse(JSON.stringify(e.ruleForm)),JSON.parse(JSON.stringify(e.tableData)).forEach((function(e){a.codes.push(e.spuCode)})),t.next=7,s.a.add(a);t.next=26;break;case 7:if(o=t.sent,n=o.code,i=o.data,o=o.message,e.loading=!1,0!==n){t.next=18;break}e.$notify.success({title:"新建成功",message:""}),e.showModelThis=!1,e.routeReGoto("goodsOnline",{}),t.next=24;break;case 18:if(100<=n&&n<=104)return t.next=21,e.logout(n<=104);t.next=23;break;case 21:t.next=24;break;case 23:1009==n?(l=JSON.parse(JSON.stringify(i)),c="<ul>",l.forEach((function(e){c+="<li>\n <img src='".concat(e.good_img,"' style='width: 20px; height: 20px'\n class='hover'\n v-viewer/>\n <span>").concat(e.good_name,"__</span>");e=e.speclist;var t="<span>";e.forEach((function(e,r){t+="".concat(0!==r?"--":"").concat(e.spec_name,"[").concat(e.spec_value,"]")})),c+=t+"</span></li>"})),c+="</ul>",e.$notify({title:"以下商品已上线或已经在审批流程中!",dangerouslyUseHTMLString:!0,message:c})):e.$message.warning(o);case 24:t.next=28;break;case 26:return t.abrupt("return",!1);case 28:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()},resetFormData:function(){this.ruleForm={platform:"",codes:[],online_reason:"",online_remark:""},this.tableData=[]},resetForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$nextTick(Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.$refs.ruleForm&&(e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),e.resetFormData());case 1:case"end":return t.stop()}}),t)}))));case 2:case"end":return t.stop()}}),t)})))()},platform_codesearchChange:function(e){var t=e.id;e.code,e.label,this.ruleForm.platform=t||"",this.$refs.ruleForm.validateField("platform")}}},r("8771"),l=r("2877"),n=Object(l.a)(i,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"goodsOnlineAdd"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"007"==e}))?r("div",{staticClass:"goodsOnlineAdd-main"},[r("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",rules:e.rulesThis,size:"mini","label-width":"110px"}},[r("el-row",[r("el-col",{attrs:{span:8}},[r("el-form-item",{attrs:{label:"所属平台",prop:"platform"}},[r("search-terrace",{attrs:{value:e.ruleForm.platform,disabled:!1,size:"mini",isDetail:!1,placeholder:"所属平台"},on:{searchChange:e.platform_codesearchChange}})],1),r("el-form-item",{attrs:{label:"上线原因",prop:"online_reason"}},[r("el-input",{attrs:{disabled:!1,placeholder:"上线原因",maxlength:"200"},model:{value:e.ruleForm.online_reason,callback:function(t){e.$set(e.ruleForm,"online_reason",t)},expression:"ruleForm.online_reason"}})],1)],1),r("el-col",{attrs:{span:16}},[r("el-form-item",{attrs:{label:"上线备注",prop:"online_remark"}},[r("el-input",{attrs:{type:"textarea",rows:3,disabled:!1,placeholder:"上线备注",maxlength:"250","show-word-limit":""},model:{value:e.ruleForm.online_remark,callback:function(t){e.$set(e.ruleForm,"online_remark",t)},expression:"ruleForm.online_remark"}})],1)],1),r("el-col",{attrs:{span:24}},[r("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData,stripe:"",border:"",size:"mini"}},[r("el-table-column",{attrs:{prop:"spuCode",label:"商品编号",width:"180","show-overflow-tooltip":""}}),r("el-table-column",{attrs:{prop:"good_thumb_img",label:"图片",width:"45","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.good_thumb_img?r("div",{directives:[{name:"viewer",rawName:"v-viewer"}],staticClass:"hover",staticStyle:{width:"20px",height:"20px"}},[r("img",{staticStyle:{display:"inline-block",width:"100%",height:"100%"},attrs:{src:t.row.good_thumb_img,alt:""}})]):e._e()]}}],null,!1,2960794804)}),r("el-table-column",{attrs:{prop:"good_name",label:"商品名称","min-width":"160","show-overflow-tooltip":""}}),r("el-table-column",{attrs:{prop:"cat_name",label:"分类","min-width":"110","show-overflow-tooltip":""}}),r("el-table-column",{attrs:{prop:"good_name",label:"品牌","min-width":"brand_name","show-overflow-tooltip":""}}),r("el-table-column",{attrs:{prop:"good_type",label:"是否定制","min-width":"70","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-tag",{attrs:{size:"mini",type:"1"==t.row.good_type?"":"warning"},domProps:{textContent:e._s((e.options1.find((function(e){return e.id==t.row.status}))||{}).name||"--")}})]}}],null,!1,3481581420)}),r("el-table-column",{attrs:{prop:"supplierNo",label:"供应商编号",width:"110","show-overflow-tooltip":""}}),r("el-table-column",{attrs:{prop:"supplier_name",label:"供应商名称",width:"110","show-overflow-tooltip":""}}),r("el-table-column",{attrs:{prop:"companyNo",label:"业务公司编号",width:"110","show-overflow-tooltip":""}}),r("el-table-column",{attrs:{prop:"company",label:"业务公司名称",width:"110","show-overflow-tooltip":""}}),r("el-table-column",{attrs:{fixed:"right"},scopedSlots:e._u([{key:"header",fn:function(t){return[r("span",[e._v("操作")]),r("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"添加上线商品",placement:"top"}},[r("i",{staticClass:"el-icon-circle-plus-outline fr",staticStyle:{"font-size":"18px","margin-top":"2px"},on:{click:function(t){e.showModel=!0}}})])]}},{key:"default",fn:function(t){return[r("el-tooltip",{attrs:{effect:"dark",content:"删除",placement:"top"}},[r("i",{staticClass:"el-icon-delete tb-icon",on:{click:function(r){return e.openDel(t.$index)}}})])]}}],null,!1,1171667486)})],1),r("search-good-modal",{attrs:{showModel:e.showModel,once:!1},on:{resultList:e.resultList,cancel:function(t){e.showModel=!1}}})],1),r("el-col",{staticStyle:{"text-align":"right",padding:"15px 0 15px 0"},attrs:{span:24}},[r("el-button",{attrs:{size:"mini",type:"primary"},on:{click:e.submitForm}},[e._v("保 存 ")])],1)],1)],1)],1):r("div",[r("no-auth")],1)])}),[],!1,null,"c973a7fa",null);t.default=n.exports},dd3d:function(e,t,r){"use strict";var a=r("1b69"),n="admin/";t.a={add:function(e,t){return Object(a.a)(n+"specscreate",e,"post",t)},list:function(e,t){return Object(a.a)(n+"specslist",e,"post",t)},status:function(e,t){return Object(a.a)(n+"specsstatus",e,"post",t)},update:function(e,t){return Object(a.a)(n+"specsedit",e,"post",t)},delete:function(e,t){return Object(a.a)(n+"specsdelete",e,"post",t)}}},dd65:function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=(r("96cf"),r("7db0"),r("d3b7"),r("f5ed")),s=r("9f53"),i=r("e320"),o=r("60bb"),l=r("798a9"),c=r("35e6"),u=r("61d6");n={name:"salesOrderDetail",mixins:[n.a,s.a],components:{addForm:o.default,orderOutTable:l.default,setPartial:u.default},computed:{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"salesOrderDetail"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}},data:function(){return{finishStatus:"finish",activeTabs:"1",activeNames:["-1","0","1","2","3","4","5","6"],showColumns:c.b,setShowModel:!1,orderOptions:[{id:"1",label:"线上商品销售"},{id:"2",label:"项目线上商品销售"},{id:"3",label:"咨询单销售"},{id:"4",label:"项目咨询单销售"}],statusOptions:[{value:"0",label:"待发货"},{value:"1",label:"待发货完成"},{value:"2",label:"发货已完成"},{value:"3",label:"订单已取消"}],sitem:null,orderCode:"",status:"",newTime:"",loading:!1,queryId:"",queryType:""}},mounted:function(){this.status="";var e=this.$route.query,t=e.id;e=e.type;this.queryId=t,this.queryType=e,this.activeTabs="add"===e?"0":"1",this.loading=!0,"add"===this.queryType?(this.sitem={},this.getNewTime()):this.initData(),this.loading=!1},methods:{statusConfirm:function(e,t){var r=this;return Object(a.a)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r.$confirm("确定要".concat(t,"?"),{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(a.a)(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if("-1"===e)return a.next=3,r.deleteById(t);a.next=5;break;case 3:a.next=7;break;case 5:return a.next=7,r.setStatus(e,t);case 7:case"end":return a.stop()}}),a)})))).catch((function(){}));case 2:case"end":return n.stop()}}),n)})))()},getNewTime:function(){this.newTime=(new Date).valueOf()+""},deleteById:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){var a;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,i.a.delete({id:t.queryId});case 2:if(!(a=r.sent)||0!==a.code){r.next=8;break}t.$notify.success({title:e+"成功!",message:""}),t.routeGoto("check",{}),r.next=14;break;case 8:if(a&&100<=a.code&&a.code<=104)return r.next=11,t.logout();r.next=13;break;case 11:r.next=14;break;case 13:t.$message.warning(a.message);case 14:case"end":return r.stop()}}),r)})))()},setStatus:function(e,t,r){var n=this;return Object(a.a)(regeneratorRuntime.mark((function a(){var s,o;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return s={id:n.queryId,remark:r||"",status:e},a.next=3,i.a.status(s);case 3:if(o=a.sent,n.loading=!1,!o||0!==o.code){a.next=10;break}n.$notify.success({title:t+"成功!",message:""}),n.initData(),a.next=16;break;case 10:if(o&&100<=o.code&&o.code<=104)return a.next=13,n.logout();a.next=15;break;case 13:a.next=16;break;case 15:n.$message.warning(o.message);case 16:case"end":return a.stop()}}),a)})))()},examForm:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){var a;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t.loading){r.next=4;break}return a="1"===e.state?"2":"0",r.next=4,t.setStatus(a,"提交入库方审核",e.remark);case 4:case"end":return r.stop()}}),r)})))()},initData:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,t.next=3,i.a.detail({id:e.queryId});case 3:if(!(r=t.sent)||0!==r.code||!r.data){t.next=11;break}e.sitem=r.data,e.status=e.sitem.status,e.orderCode=e.sitem.orderCode,e.getNewTime(),t.next=17;break;case 11:if(r&&100<=r.code&&r.code<=104)return t.next=14,e.logout();t.next=16;break;case 14:t.next=17;break;case 16:e.$message.warning(r.message);case 17:e.loading=!1;case 18:case"end":return t.stop()}}),t)})))()}}},r("288f"),s=r("2877"),o=Object(s.a)(n,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("div",{staticClass:"salesOrderDetail pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?t("div",{staticStyle:{width:"100%"}},["add"!==e.queryType?t("div",{staticStyle:{height:"30px"}},[t("span",[e._v("订单编号:")]),e.sitem?t("span",[e._v(e._s(e.sitem.orderCode))]):e._e(),t("el-button",{staticClass:"fr",staticStyle:{margin:"0 0 0 10px"},attrs:{type:"primary",size:"mini"},on:{click:function(t){e.setShowModel=!0}}},[e._v("设置部分字段 ")])],1):e._e(),t("el-tabs",{model:{value:e.activeTabs,callback:function(t){e.activeTabs=t},expression:"activeTabs"}},["add"===e.queryType?t("el-tab-pane",{attrs:{label:"新建销售订单",name:"0"}},[""!==e.newTime?t("add-form",{attrs:{newTime:e.newTime,type:e.queryType,sitem:e.sitem,id:e.queryId},on:{refresh:function(t){return e.routeReGoto("salesOrder",{})}}}):e._e()],1):e._e(),"add"!==e.queryType?t("el-tab-pane",{attrs:{label:"业务详情",name:"1"}},[t("el-collapse",{staticStyle:{margin:"-18px 0 0 0"},model:{value:e.activeNames,callback:function(t){e.activeNames=t},expression:"activeNames"}},[t("el-collapse-item",{attrs:{title:"销售订单信息",name:"-1"}},[e.status?t("show-data-table",{staticStyle:{margin:"0",padding:"0"},attrs:{sitem:e.sitem,columns:e.showColumns}},[t("template",{slot:"status"},[t("el-tag",{attrs:{size:"mini"},domProps:{textContent:e._s((e.statusOptions.find((function(t){return t.value==e.sitem.status}))||{}).label||"--")}})],1),t("template",{slot:"order_type"},[t("el-tag",{attrs:{size:"mini"},domProps:{textContent:e._s((e.orderOptions.find((function(t){return t.id==e.sitem.order_type}))||{}).label||"--")}})],1),t("template",{slot:"supplierName"},[t("span",[e._v(e._s(e.sitem.supplierName))]),t("el-popover",{attrs:{placement:"top",width:"300",trigger:"hover"}},[t("ul",[t("li",[t("span",[e._v("销售方公司编号:")]),t("span",[e._v(e._s(e.sitem.supplierNo))])])]),t("i",{staticClass:"el-icon-warning-outline fr",attrs:{slot:"reference"},slot:"reference"})])],1),t("template",{slot:"companyName"},[t("span",[e._v(e._s(e.sitem.companyName))]),t("el-popover",{attrs:{placement:"top",width:"300",trigger:"hover"}},[t("ul",[t("li",[t("span",[e._v("购买方公司编号:")]),t("span",[e._v(e._s(e.sitem.companyNo))])])]),t("i",{staticClass:"el-icon-warning-outline fr",attrs:{slot:"reference"},slot:"reference"})])],1),t("template",{slot:"is_active"},["1"===e.sitem.order_type?t("span",[t("span",[e._v(e._s("1"===e.sitem.is_activity?"参与活动":"不参与活动")+"/"+e._s(e.sitem.good_type))])]):t("span",[e._v("--")])]),t("template",{slot:"send_type"},[t("el-tag",{attrs:{size:"mini"}},[e._v(e._s("1"===e.sitem.send_type?"直接发货":"2"===e.sitem.send_type?"延迟发货":"--"))])],1)],2):e._e()],1),t("el-collapse-item",{attrs:{title:"商品信息",name:"2"}},[""!==e.newTime?t("show-goods-data-table",{attrs:{newTime:e.newTime,type:e.sitem.order_type,skucode:e.sitem.skuCode,spucode:e.sitem.good_code}}):e._e()],1),t("el-collapse-item",{attrs:{title:"发货申请",name:"3"}},[""!==e.newTime?t("order-out-table",{attrs:{newTime:e.newTime,sitem:e.sitem,id:e.queryId},on:{refresh:function(t){return e.initData()}}}):e._e()],1)],1)],1):e._e(),"add"!==e.queryType?t("el-tab-pane",{attrs:{label:"审批记录",name:"2"}},[""!==e.newTime?t("process-time-line",{attrs:{newTime:e.newTime,type:"XSQRD",orderCode:e.queryId}}):e._e()],1):e._e()],1),t("set-partial",{attrs:{sitem:e.sitem,"show-model":e.setShowModel},on:{refresh:e.initData,cancel:function(t){e.setShowModel=!1}}})],1):t("div",[t("no-auth")],1)])}),[],!1,null,"5c0db3b9",null);t.default=o.exports},de14:function(e,t,r){"use strict";var a=r("1b69"),n="admin/";t.a={add:function(e,t){return Object(a.a)(n+"aftercreate",e,"post",t)},delete:function(e,t){return Object(a.a)(n+"delete",e,"post",t)},list:function(e,t){return Object(a.a)(n+"afterlist",e,"post",t)},detail:function(e,t){return Object(a.a)(n+"afterinfo",e,"post",t)},update:function(e,t){return Object(a.a)(n+"update",e,"post",t)},status:function(e,t){return Object(a.a)(n+"afterstatus",e,"post",t)},reasonList:function(e,t){return Object(a.a)(n+"resultlist",e,"post",t)},aftersetwsm:function(e,t){return Object(a.a)(n+"aftersetwsm",e,"post",t)},afterPost:function(e,t){return Object(a.a)(n+"afterpost ",e,"post",t)}}},de57:function(e,t,r){},de65:function(e,t,r){"use strict";r("7efc")},de7e:function(e,t,r){},df37:function(e,t,r){"use strict";r("30a4")},e000:function(e,t,r){},e1a4:function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=(r("96cf"),r("9f53")),s=[{prop:"outCode",label:"商品分类"},{prop:"good_name",label:"商品名称"},{prop:"good_num",label:"发货数量"},{prop:"contactor",label:"收货人"},{prop:"mobile",label:"收货联系电话"},{prop:"addr",label:"收货地址"}];n={name:"handover",props:["id","sitem","newTime"],mixins:[n.a],data:function(){return{columnsForm:s,loading:!1,ruleForm:null,code:""}},watch:{newTime:function(e){e&&this.initForm()}},mounted:function(){this.initForm()},methods:{initForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.loading=!0,e.ruleForm=e.sitem,e.loading=!1;case 3:case"end":return t.stop()}}),t)})))()}}},r=r("2877"),r=Object(r.a)(n,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",staticStyle:{width:"100%"},attrs:{loading:e.loading,model:e.ruleForm,"label-width":"100px"}},[e.ruleForm?r("el-row",e._l(e.columnsForm,(function(t){return r("el-col",{key:t.label,attrs:{span:12}},[r("el-form-item",{attrs:{label:t.label}},[r("el-input",{attrs:{disabled:"",placeholder:t.label},model:{value:e.ruleForm[t.prop],callback:function(r){e.$set(e.ruleForm,t.prop,r)},expression:"ruleForm[item.prop]"}})],1)],1)})),1):e._e()],1)}),[],!1,null,"0374528e",null);t.default=r.exports},e1bb:function(e,t,r){"use strict";r("e395")},e1d3:function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=r("5530"),s=(r("96cf"),r("7db0"),r("d3b7"),r("e9c4"),r("a9e3"),r("1b69")),i="admin/",o=function(e,t){return Object(s.a)(i+"activitylinst",e,"post",t)},l=function(e,t){return Object(s.a)(i+"delete",e,"post",t)},c=function(e,t){return Object(s.a)(i+"companystatus",e,"post",t)},u=r("0ee5"),d=r("e66a"),p=r("f5ed"),m=r("2f62"),f=r("9f53"),h=r("d029");p={name:"activeGood",mixins:[p.a,f.a],components:{showGoodDataModal:h.a},computed:Object(n.a)(Object(n.a)({},Object(m.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"activeGood"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),data:function(){return{statusList:u.a,roleLevel:d.a,loading:!1,showGoodModel:!1,showGoodId:"",parmValue:{page:1,size:15,start:"",end:"",status:"",platform_code:"",skuCode:"",good_name:"",activity_name:"",activity_code:"",creater:""},statusOptions:[{id:"0",label:"未开始"},{id:"1",label:"进行中"},{id:"2",label:"已下架"}],tableData:[],table:{stripe:!0,border:!0,_defaultHeader_:["setcol"]},pageInfo:{size:15,curr:1,total:0},columns:[{prop:"skuCode",label:"商品编号",fixed:"left",width:"160"},{prop:"good_name",label:"商品名称","min-width":"170"},{prop:"status",label:"状态",_slot_:"status"},{prop:"activity_stock",label:"活动库存"},{prop:"moq_num",label:"起订量"},{prop:"sale_price",label:"非活动价",width:"100px"},{prop:"activity_price",label:"活动价",width:"100px"},{prop:"platform_name",label:"平台名称",width:"100px"},{prop:"activity_code",label:"活动编号",width:"160px"},{prop:"activity_name",label:"活动名称",width:"120px"},{prop:"",label:"操作",fixed:"right",width:"50",_noset_:!0,_slot_:"operation"}]}},mounted:function(){this.searchList()},methods:{restSearch:function(){this.pageInfo={size:15,curr:1,total:0},this.parmValue={page:1,size:15,start:"",end:"",status:"",platform_code:"",skuCode:"",good_name:"",activity_name:"",activity_code:"",creater:""},this.searchList()},openModal:function(e,t){this.sitem=e,this.modelId=t,this.showModel=!0},showGoodModelFun:function(e){this.showGoodModel=!0,this.showGoodId=e},handleTime:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t.parmValue.start=e.startTime||"",t.parmValue.end=e.endTime||"",""!==t.parmValue.start&&""!==t.parmValue.end||""===t.parmValue.start&&""===t.parmValue.end)return t.pageInfo.curr=1,t.parmValue.page=1,r.next=7,t.searchList();r.next=7;break;case 7:case"end":return r.stop()}}),r)})))()},platform_codesearchChange:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){var a;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return e&&(a=e.id,e.code,e.label,t.parmValue.platform_code=a||""),t.pageInfo.curr=1,t.parmValue.page=1,r.next=5,t.searchList();case 5:case"end":return r.stop()}}),r)})))()},changeStatus:function(e,t){var r=this;return Object(a.a)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r.$confirm("确定要改为".concat("1"===t?"禁用":"启用","?"),{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(a.a)(regeneratorRuntime.mark((function a(){var n,s;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return r.loading=!0,n={id:e,status:"1"===t?"0":"1"},a.next=4,c(n);case 4:if((s=a.sent)&&0===s.code)return r.loading=!1,r.$notify.success({title:"状态修改成功!",message:""}),a.next=10,r.searchList();a.next=12;break;case 10:a.next=19;break;case 12:if(s&&100<=s.code&&s.code<=104)return a.next=15,r.logout();a.next=17;break;case 15:a.next=19;break;case 17:r.loading=!1,r.$message.warning(s.message);case 19:case"end":return a.stop()}}),a)})))).catch((function(){}));case 2:case"end":return n.stop()}}),n)})))()},deleteItem:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t.$confirm("确定要删除?",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(a.a)(regeneratorRuntime.mark((function r(){var a,n;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a={id:e},r.next=3,l(a);case 3:if(!(n=r.sent)||0!==n.code){r.next=9;break}t.$notify.success({title:"删除成功",message:""}),t.searchList(),r.next=15;break;case 9:if(n&&100<=n.code&&n.code<=104)return r.next=12,t.logout();r.next=14;break;case 12:r.next=15;break;case 14:t.$message.warning(n.message);case 15:case"end":return r.stop()}}),r)})))).catch((function(){}));case 2:case"end":return r.stop()}}),r)})))()},searchList:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r,a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,r=JSON.parse(JSON.stringify(e.parmValue)),t.next=4,o(r);case 4:if(!(a=t.sent)||0!==a.code||!a.data){t.next=10;break}e.tableData=a.data.list,e.pageInfo.total=Number(a.data.count),t.next=17;break;case 10:if(a&&100<=a.code&&a.code<=104)return t.next=13,e.logout();t.next=15;break;case 13:t.next=17;break;case 15:e.tableData=[],e.pageInfo.total=0;case 17:e.loading=!1;case 18:case"end":return t.stop()}}),t)})))()}}},f=r("2877"),h=Object(f.a)(p,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"activeGood pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?r("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[r("ex-table",{attrs:{table:e.table,data:e.tableData,columns:e.columns,page:e.pageInfo,size:e.size},on:{"page-curr-change":e.handlePageChange,"page-size-change":e.handleSizeChange,"screen-reset":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()},"screen-submit":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},scopedSlots:e._u([{key:"table-header",fn:function(t){return[r("div",{staticStyle:{width:"100%"}},[r("el-row",{staticStyle:{padding:"0 0 10px 80px"}},[r("el-col",{staticStyle:{width:"160px"},attrs:{span:6}},[r("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"",clearable:"",size:e.searchSize,placeholder:"商品状态"},on:{change:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.parmValue.status,callback:function(t){e.$set(e.parmValue,"status",t)},expression:"parmValue.status"}},e._l(e.statusOptions,(function(e){return r("el-option",{key:"status"+e.id,attrs:{label:e.label,value:e.id}})})),1)],1),r("el-col",{staticStyle:{width:"220px",padding:"0 0 0 10px"},attrs:{span:4}},[r("el-input",{attrs:{size:e.searchSize,clearable:"",maxlength:40,placeholder:"商品编号"},on:{blur:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.parmValue.skuCode,callback:function(t){e.$set(e.parmValue,"skuCode",t)},expression:"parmValue.skuCode"}})],1),r("el-col",{staticStyle:{width:"300px",padding:"0 0 0 10px"},attrs:{span:4}},[r("el-input",{attrs:{size:e.searchSize,maxlength:40,clearable:"",placeholder:"商品名称"},on:{blur:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.parmValue.good_name,callback:function(t){e.$set(e.parmValue,"good_name",t)},expression:"parmValue.good_name"}})],1),r("el-col",{staticClass:"fr",staticStyle:{width:"66px",padding:"0 0 0 10px"},attrs:{span:3}},[r("el-button",{attrs:{type:"primary",size:e.searchSize},on:{click:e.searchList}},[e._v(" 刷新 ")])],1)],1),r("el-row",[r("el-col",{staticStyle:{width:"240px"},attrs:{span:6}},[r("search-terrace",{attrs:{value:e.parmValue.platform_code,disabled:!1,size:"mini",isDetail:!1,placeholder:"所属平台"},on:{searchChange:e.platform_codesearchChange}})],1),r("el-col",{staticStyle:{width:"220px",padding:"0 0 0 10px"},attrs:{span:4}},[r("el-input",{attrs:{size:e.searchSize,maxlength:40,clearable:"",placeholder:"活动编号"},on:{blur:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.parmValue.activity_code,callback:function(t){e.$set(e.parmValue,"activity_code",t)},expression:"parmValue.activity_code"}})],1),r("el-col",{staticStyle:{width:"300px",padding:"0 0 0 10px"},attrs:{span:4}},[r("el-input",{attrs:{size:e.searchSize,maxlength:40,clearable:"",placeholder:"活动名称"},on:{blur:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.parmValue.activity_name,callback:function(t){e.$set(e.parmValue,"activity_name",t)},expression:"parmValue.activity_name"}})],1),r("el-col",{staticClass:"fr",staticStyle:{width:"66px",padding:"0 0 0 10px"},attrs:{span:3}},[r("el-button",{attrs:{type:"warning",size:e.searchSize},on:{click:e.restSearch}},[e._v(" 重置 ")])],1)],1)],1)]}},{key:"status",fn:function(t){var a=t.scope;return[r("el-tag",{attrs:{size:e.tablebtnSize,type:"0"==a.row.status?"warning":""},domProps:{textContent:e._s((e.statusOptions.find((function(e){return e.id==a.row.status}))||{}).label||"--")}})]}},{key:"operation",fn:function(t){var a=t.scope;return[e.powers.some((function(e){return"007"==e}))?r("el-tooltip",{attrs:{effect:"dark",content:"详情",placement:"top"}},[r("i",{staticClass:"el-icon-view tb-icon",on:{click:function(t){return e.showGoodModelFun(a.row.skuCode)}}})]):e._e()]}}],null,!1,1115198634)}),r("show-good-data-modal",{attrs:{"show-model":e.showGoodModel,skuCode:e.showGoodId},on:{cancel:function(t){e.showGoodModel=!1}}})],1):r("no-auth")],1)}),[],!1,null,"1d5576ae",null);t.default=h.exports},e284:function(e,t,r){"use strict";var a=r("1b69"),n="admin/";t.a={add:function(e,t){return Object(a.a)(n+"resultcreate",e,"post",t)},delete:function(e,t){return Object(a.a)(n+"resultdel",e,"post",t)},list:function(e,t){return Object(a.a)(n+"resultlist",e,"post",t)},detail:function(e,t){return Object(a.a)(n+"resultselect",e,"post",t)},update:function(e,t){return Object(a.a)(n+"resultedit",e,"post",t)},status:function(e,t){return Object(a.a)(n+"resultstatu",e,"post",t)}}},e320:function(e,t,r){"use strict";var a=r("1b69"),n="admin/";t.a={add:function(e,t){return Object(a.a)(n+"salecreate",e,"post",t)},delete:function(e,t){return Object(a.a)(n+"saledelect",e,"post",t)},detail:function(e,t){return Object(a.a)(n+"saleinfo",e,"post",t)},update:function(e,t){return Object(a.a)(n+"saleedit",e,"post",t)},status:function(e,t){return Object(a.a)(n+"salestatus",e,"post",t)},getGoodStock:function(e,t){return Object(a.a)(n+"checkflist",e,"post",t)},salefee:function(e,t){return Object(a.a)(n+"salefee",e,"post",t)},saleout:function(e,t){return Object(a.a)(n+"saleoutadd",e,"post",t)},saleaddr:function(e,t){return Object(a.a)(n+"saleaddr",e,"post",t)},orderininfo:function(e,t){return Object(a.a)(n+"orderininfo",e,"post",t)},resultlist:function(e,t){return Object(a.a)(n+"resultlist",e,"post",t)},orderincheck:function(e,t){return Object(a.a)(n+"orderincheck",e,"post",t)},orderinreturn:function(e,t){return Object(a.a)(n+"orderinreturn",e,"post",t)},orderinstatus:function(e,t){return Object(a.a)(n+"orderinstatus",e,"post",t)}}},e36f:function(e,t,r){},e395:function(e,t,r){},e3ac:function(e,t,r){},e405:function(e,t,r){"use strict";r("c28a")},e43c:function(e,t,r){"use strict";var a=r("1b69"),n="admin/";t.a={add:function(e,t){return Object(a.a)(n+"brandcreate",e,"post",t)},delete:function(e,t){return Object(a.a)(n+"branddel",e,"post",t)},list:function(e,t){return Object(a.a)(n+"brandlist",e,"post",t)},update:function(e,t){return Object(a.a)(n+"brandedit",e,"post",t)},status:function(e,t){return Object(a.a)(n+"brandstatus",e,"post",t)}}},e470:function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=r("ade3"),s=r("5530"),i=(r("96cf"),r("7db0"),r("d3b7"),r("a434"),r("159b"),r("e9c4"),r("25f0"),r("c740"),r("b0c0"),r("ac1f"),r("1276"),r("d81d"),r("f1ed")),o=r("9f53"),l=r("2f62"),c=r("2408"),u=r("4129"),d=r("dbbb");o={name:"goodsCostAdd",mixins:[o.a],props:["showModel","id","type","sitem"],components:{baseFormAddEdit:c.default,costFormAddEdit:u.default},computed:Object(s.a)(Object(s.a)({},Object(l.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"goodsCostAdd"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),watch:{newTime:function(e){e&&this.initForm()}},data:function(){var e={spec_tableData:[],cat_id_name:"",brand_name:"",unit_name:"",costshowModel:!1,costmodelIndex:"",costsitem:{},showModel:!1,modelIndex:"",is_noble:!1,size:"small",status:"",rulesThis:this.rules,activeName:"1",loading:!0,supplierName:"",options1:d.b,options2:d.c,options3:d.d,options4:d.e,options5:d.f,options6:d.g,options7:d.h,options8:d.i,options9:d.j,ruleForm:{}};return Object(n.a)(e,"spec_tableData",[]),Object(n.a)(e,"old_spec_tableData",[]),Object(n.a)(e,"ladder_tableData",[]),Object(n.a)(e,"old_ladder_tableData",[]),Object(n.a)(e,"rules",d.k),e},mounted:function(){this.initForm()},methods:{initForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,e.resetFormData(),e.rulesThis=e.rules,t.next=5,e.resetForm();case 5:return e.sch_is_noble(),e.good_type_change(),t.next=9,e.get_golpricelast();case 9:e.loading=!1;case 10:case"end":return t.stop()}}),t)})))()},number_change:function(e,t){var r=this;return Object(a.a)(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return r.ruleForm[t]=e+""||"0",r.$refs.ruleForm.validateField(t),a.next=4,r.get_all_fee();case 4:case"end":return a.stop()}}),a)})))()},openEdit:function(e,t){this.modelIndex=e,this.sitem=t,this.showModel=!0},openCostEdit:function(e,t){this.costmodelIndex=e,this.costsitem=t,this.costshowModel=!0},openDelete:function(e){this.spec_tableData.splice(e,1)},openCostEditDelete:function(e){this.ladder_tableData.splice(e,1)},submitForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.sch_is_noble(),e.good_type_change(),t.next=4,e.$refs.ruleForm.validate(function(){var t=Object(a.a)(regeneratorRuntime.mark((function t(r){var a,n,s,o,l,c,u;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r){t.next=68;break}if(e.loading=!0,0===e.spec_tableData.length)return e.$message.warning("请录入商品规格信息!"),e.loading=!1,t.abrupt("return");t.next=6;break;case 6:if(a=!0,e.spec_tableData.forEach((function(e){e.isMust&&!e.spec_value_id&&(a=!1)})),a){t.next=12;break}return e.$message.warning("分类绑定的规格必须填写规格值!"),e.loading=!1,t.abrupt("return");case 12:if(0===e.ladder_tableData.length)return e.$message.warning("请录入阶梯成本!"),e.loading=!1,t.abrupt("return");t.next=16;break;case 16:if(o=e.ruleForm,c=o.noble_weight,l=o.weight,o.good_type,o.moq,o.is_step,!e.is_noble){t.next=22;break}if(1e3*l<1e3*c)return e.$message.warning("贵金属总重量不能大于商品总重量!"),e.loading=!1,t.abrupt("return");t.next=22;break;case 22:if((n=JSON.parse(JSON.stringify(e.ruleForm))).cat_id=n.cat_id.toString(),n.brandid=n.brandid.toString(),n.supplierNo=n.supplierNo.toString(),n.delivery_place=n.delivery_place.toString(),n.origin_place=n.origin_place.toString(),n.good_info_img=n.good_info_img.toString(),n.good_img=n.good_img.toString(),n.unit=n.unit.toString(),n.speclist=JSON.parse(JSON.stringify(e.setResData(1))),n.good_ladder=JSON.parse(JSON.stringify(e.setResData(2))),n.config=n.config.toString(),n.is_exclusive=0<n.is_exclusive.length?n.is_exclusive[n.is_exclusive.length-1]:"",s={},delete n.id,"add"===e.type)return delete n.spuCode,t.next=41,i.a.add(n);t.next=44;break;case 41:s=t.sent,t.next=63;break;case 44:if("editBase"===e.type)return o=e.setModel(n,"1"),t.next=48,i.a.update(o);t.next=51;break;case 48:s=t.sent,t.next=63;break;case 51:if("editCoin"===e.type)return l=e.setModel(n,"2"),t.next=55,i.a.updateP(l);t.next=58;break;case 55:s=t.sent,t.next=63;break;case 58:return n.companyNo=n.company_id,delete n.company_id,t.next=62,i.a.edit_update(n);case 62:s=t.sent;case 63:e.loading=!1,s&&0===s.code&&(c=s.data.spuCode,u="add"===e.type?"新建成功!":"editBase"===e.type?"基础信息修改成功!":"editCoin"===e.type?"成本信息修改成功!":"商品信息修改成功",e.$notify.success({title:u,message:""}),e.showModelThis=!1,e.$emit("refresh",{spuCode:c})),t.next=71;break;case 68:return t.abrupt("return",!1);case 71:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 4:case"end":return t.stop()}}),t)})))()},setResData:function(e){var t=JSON.parse(JSON.stringify(1===e?this.spec_tableData:this.ladder_tableData)),r=JSON.parse(JSON.stringify(1===e?this.old_spec_tableData:this.old_ladder_tableData)),a=[],n=(t.forEach((function(e){""!==e.id&&a.push(e)})),[]),s=[];return r.forEach((function(e,t){var r=null,s=a.findIndex((function(t){return e.id===t.id}));-1===s?(r=JSON.parse(JSON.stringify(e))).is_del="1":r=JSON.parse(JSON.stringify(a[s])),n.push(r)})),t.forEach((function(e){""===e.id&&(e.is_del="0",n.push(e))})),1===e?n.forEach((function(e){e={id:e.id,spec_id:e.spec_id,spec_value_id:e.spec_value_id,is_del:e.is_del||"0"},s.push(e)})):n.forEach((function(e){e={id:e.id,min_num:e.min_num,nake_fee:e.nake_fee,cost_fee:e.cost_fee,delivery_fee:e.delivery_fee,cert_fee:e.cert_fee,mark_fee:e.mark_fee,package_fee:e.package_fee,other_fee:e.other_fee,is_del:e.is_del||"0"},s.push(e)})),s},setladder:function(){var e=JSON.parse(JSON.stringify(this.ladder_tableData)),t=JSON.parse(JSON.stringify(this.old_ladder_tableData)),r=[],a=(e.forEach((function(e){""!==e.id&&r.push(e)})),[]),n=[];return t.forEach((function(e,t){var n=null;-1===r.findIndex((function(t){return e.id===t.id}))?(n=JSON.parse(JSON.stringify(e))).is_del="1":n=JSON.parse(JSON.stringify(b)),a.push(n)})),e.forEach((function(e){""===e.id&&(e.is_del="0",a.push(e))})),a.forEach((function(e){e={id:e.id,min_num:e.min_num,spec_value_id:e.spec_value_id,is_del:e.is_del||"0"},n.push(e)})),n},refreshEdit:function(e){var t=this,r=(e=JSON.parse(JSON.stringify(e)),e.index,e.id),a=e.spec_id,n=(e.isMust,e.spec_value),s=e.spec_value_id,i=e.spec_value_value,o=-1;this.spec_tableData.forEach((function(e,l){e.spec_id===a&&(o=l,t.spec_tableData[l].id=r,t.spec_tableData[l].spec_id=a,t.spec_tableData[l].spec_value=n,t.spec_tableData[l].spec_value_id=s,t.spec_tableData[l].spec_value_value=i)})),-1===o&&this.spec_tableData.push(e),this.showModel=!1},costrefreshEdit:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){var a,n,s,i,o,l,c,u,d,p,m,f,h;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a=JSON.parse(JSON.stringify(e)),n=a.index,s=a.id,i=a.cost_fee,o=a.delivery_fee,l=a.min_num,c=a.nake_fee,u=a.cert_fee,d=a.mark_fee,p=a.package_fee,m=a.other_fee,f=!0,h=-1,t.ladder_tableData&&0===t.ladder_tableData.length?t.ladder_tableData.push(a):(t.ladder_tableData.forEach((function(e,r){parseInt(l+"")===parseInt(e.min_num+"")&&(f=!1,t.ladder_tableData[r].id=s,t.ladder_tableData[r].min_num=l,t.ladder_tableData[r].cost_fee=i,t.ladder_tableData[r].delivery_fee=o,t.ladder_tableData[r].nake_fee=c,t.ladder_tableData[r].cert_fee=u,t.ladder_tableData[r].mark_fee=d,t.ladder_tableData[r].package_fee=p,t.ladder_tableData[r].other_fee=m)})),f&&(t.ladder_tableData.forEach((function(e,r){r===parseInt(n+"")&&(h=r,t.ladder_tableData[r].id=s,t.ladder_tableData[r].min_num=l,t.ladder_tableData[r].cost_fee=i,t.ladder_tableData[r].delivery_fee=o,t.ladder_tableData[r].nake_fee=c,t.ladder_tableData[r].cert_fee=u,t.ladder_tableData[r].mark_fee=d,t.ladder_tableData[r].package_fee=p,t.ladder_tableData[r].other_fee=m)})),-1===h&&t.ladder_tableData.push(a))),r.next=7,t.get_all_fee();case 7:t.showModel=!1;case 8:case"end":return r.stop()}}),r)})))()},get_golpricelast:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r,a,n,s;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e.ruleForm.noble_metal)return r={type:r},t.next=5,i.a.golpricelast(r);t.next=21;break;case 5:if(r=t.sent,a=r.code,n=r.data,s=r.message,0!==a){t.next=13;break}n.forEach((function(t){t.type&&(e.ruleForm.noble_price=t.price)})),t.next=19;break;case 13:if(100<=a&&a<=104)return t.next=16,e.logout();t.next=18;break;case 16:t.next=19;break;case 18:e.$message.warning(s);case 19:t.next=22;break;case 21:e.ruleForm.noble_price="0";case 22:case"end":return t.stop()}}),t)})))()},get_all_fee:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.get_golpricelast();case 2:e.ladder_tableData.forEach((function(t,r){e.ladder_tableData[r].nake_total=e.count_fee(t),e.$set(e.ladder_tableData,r,e.ladder_tableData[r])}));case 3:case"end":return t.stop()}}),t)})))()},count_fee:function(e){var t=this.ruleForm,r=t.noble_price,a=t.is_gold_price,n=(t=t.noble_weight,e.cost_fee),s=e.delivery_fee,i=e.nake_fee,o=e.cert_fee,l=e.mark_fee;i=100*e.package_fee+100*i+100*l+100*o+100*s+100*e.other_fee;return this.is_noble&&"1"===a&&(l=1e3*t,o=100*n,i+=parseInt(100*r*l/1e3)+parseInt(l*o/1e3)),parseFloat(i/100)},dataSort:function(e){return function(t,r){return t[e]-r[e]}},resetFormData:function(){this.spec_tableData=[],this.old_spec_tableData=[],this.ladder_tableData=[],this.old_ladder_tableData=[],this.cat_id_name="",this.is_noble=!1,this.status="",this.brand_name="",this.unit_name="",this.supplierName="",this.ruleForm={id:"",spuCode:"",cat_id:[],brandid:[],noble_weight:"0",weight:"0",good_type:"0",is_stock:"0",supplierNo:[],company_id:"",is_auth:"",tax:"",good_name:"",unit:[],is_exclusive:[],noble_metal:"",is_gold_price:"",moq:"",customized:"",after_sales:"",craft_desc:"",good_remark:"",packing_list:"",packing_way:"",packing_spec:"",packing_weight:"",packing_size:"",good_size:"",good_bar:"",supply_area:"",delivery_place:[],origin_place:[],delivery_day:"0",lead_time:"0",sample_day:"0",good_thumb_img:"",good_img:[],good_info_img:[],demo_fee:"0",open_fee:"0",sample_fee:"0",market_price:"0",cgd_gold_price:"0",noble_price:"0",is_diff:"",config:[],other_config:""}},resetForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$nextTick(Object(a.a)(regeneratorRuntime.mark((function t(){var r,a,n,s,i,o,l,c,u,d,p,m,f,h,g,b,_,w,v,x,k,y,F,O,S,C,$,j,R,z,T,N,V,M,D,I,L,q,E,J,P,A,B,G,U,H,X,W,Q,Y,Z,K,ee,te,re,ae,ne;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.$refs.ruleForm&&(e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),e.spec_tableData=[],e.old_spec_tableData=[],e.ladder_tableData=[],e.old_ladder_tableData=[],K=e.sitem,r=K.id,a=K.spuCode,n=K.good_name,ne=K.cat_info,s=K.brand_id,i=K.unit,o=K.supplierName,l=K.companyNo,c=K.good_unit,u=K.good_type,d=K.moq,K.is_exclusive,p=K.customized,m=K.tax,f=K.supplierNo,h=K.is_auth,K.auth_img,g=K.exclusive,b=K.is_stock,_=K.after_sales,w=K.craft_desc,v=K.good_remark,x=K.weight,k=K.packing_way,y=K.packing_size,F=K.good_size,O=K.packing_spec,S=K.packing_list,C=K.packing_weight,$=K.good_bar,j=K.supply_area,R=K.delivery_place,z=K.origin_place,T=K.delivery_day,N=K.lead_time,V=K.sample_day,M=K.sample_fee,D=K.good_img,I=K.good_thumb_img,L=K.good_info_img,q=K.demo_fee,E=K.open_fee,J=K.noble_metal,P=K.noble_weight,A=K.is_gold_price,B=K.market_price,G=K.cgd_gold_price,U=K.noble_price,H=K.status,X=K.nakelist,W=K.speclist,Q=K.brand_name,Y=K.config,Z=K.is_diff,K=K.other_config,ee="",te=[],(ne||[]).forEach((function(e,t){ee+=0===t?e.name:"_".concat(e.name),te.push(e.id)})),e.cat_id_name=ee,re=!1,0<te.length&&te.forEach((function(e){"6"===e&&(re=!0)})),ae=[],g&&0<g.length&&g.forEach((function(e,t){ae.push(e.id)})),e.is_noble=re,(W&&0<W.length?JSON.parse(JSON.stringify(W)):[]).forEach((function(t){t={id:t.id,is_del:t.is_del,spec_id:t.spec_id,spec_value:t.spec_name,spec_value_value:t.spec_value,spec_value_id:t.spec_value_id,spuCode:t.spuCode},e.spec_tableData.push(t)})),e.old_spec_tableData=JSON.parse(JSON.stringify(e.spec_tableData)),ne=X&&0<X.length?JSON.parse(JSON.stringify(X)):[],e.ladder_tableData=ne,e.old_ladder_tableData=JSON.parse(JSON.stringify(e.ladder_tableData)),e.status=H,e.brand_name=Q,e.unit_name=i,e.supplierName=o||"",e.ruleForm={id:r||"",spuCode:a||"",cat_id:te&&0<te.length?[te[te.length-1]]:[],brandid:s?[s]:[],noble_weight:P||"",weight:x||"",good_type:u||"0",is_stock:b||"0",supplierNo:f?[f]:[],company_id:l||"",is_auth:h||"",tax:m?m+"%":"",good_name:n||"",unit:c?[c]:[],is_exclusive:ae||[],noble_metal:J||"",is_gold_price:A||"0",moq:d||"0",customized:p||"0",after_sales:_||"",craft_desc:w||"",good_remark:v||"",packing_list:S||"",packing_way:k||"",packing_spec:O||"",packing_weight:C||"",packing_size:y||"",good_size:F||"",good_bar:$||"",supply_area:j||"",delivery_place:R?(R||"").split(","):[],origin_place:z?(z||"").split(","):[],delivery_day:T||"",lead_time:N||"",sample_day:V||"",good_thumb_img:I||"",good_img:D?(D||"").split(","):[],good_info_img:L?(L||"").split(","):[],demo_fee:q||"",open_fee:E||"",sample_fee:M||"",market_price:B||"",cgd_gold_price:G||"",noble_price:U||"0",is_diff:Z||"",config:Y?Y.split(","):[],other_config:K||""}),t.next=3,e.set_must_spec();case 3:case"end":return t.stop()}}),t)}))));case 2:case"end":return t.stop()}}),t)})))()},sch_is_noble:function(){for(var e,t=["noble_weight","noble_metal","is_gold_price","is_diff","config","other_config","cgd_gold_price"],r=0;r<t.length;r++)"cgd_gold_price"===t[r]?(e=this.ruleForm.is_gold_price,this.rulesThis[t[r]][0].required=this.is_noble&&"1"===e):this.rulesThis[t[r]][0].required=this.is_noble,this.$refs.ruleForm.validateField(t[r])},setModel:function(e,t){var r=null;return 1===t?(delete(r=JSON.parse(JSON.stringify(e))).demo_fee,delete r.open_fee,delete r.noble_metal,delete r.noble_weight,delete r.is_gold_price,delete r.market_price,delete r.cgd_gold_price,delete r.good_ladder):r={demo_fee:e.demo_fee||"",open_fee:e.open_fee||"",noble_metal:e.noble_metal||"",noble_weight:e.noble_weight||"",is_gold_price:e.is_gold_price||"",market_price:e.market_price||"",cgd_gold_price:e.cgd_gold_price||"",good_ladder:e.good_ladder||[],spuCode:e.spuCode||""},e},goods_class_change:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){var a,n,s;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return e.code,a=e.pid,n=e.id,e.label,s=e.cat_desc,t.ruleForm.cat_id=n?[n]:[],t.$refs.ruleForm.validateField("cat_id"),t.ruleForm.after_sales=s||"",t.$refs.ruleForm.validateField("after_sales"),t.is_noble="6"===a,t.sch_is_noble(),r.next=9,t.set_must_spec();case 9:return r.next=11,t.get_all_fee();case 11:case"end":return r.stop()}}),r)})))()},set_must_spec:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r,a,n,s,o,l;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e.ruleForm.cat_id,n=1==n.length?n[0]:"",r=e.spec_tableData&&0<e.spec_tableData.length?JSON.parse(JSON.stringify(e.spec_tableData)):[],a=[],n)return t.next=7,i.a.catinfo({id:n});t.next=26;break;case 7:if(n=t.sent,s=n.code,o=n.message,l=n.data,0!==s){t.next=18;break}(l=l.spec)&&0<l.length&&(r&&0<r.length?(r.forEach((function(e){e.isMust=!1})),l.forEach((function(e,t){var a=r.findIndex((function(t){return t.spec_id===e.id}));-1!==a?r[a].isMust=!0:r.push({id:"",index:"1",spec_id:e.id,spec_value:e.spec_name,isMust:!0,spec_value_value:"",spec_value_id:""})}))):l.forEach((function(e,t){e={id:"",index:"1",spec_id:e.id,spec_value:e.spec_name,isMust:!0,spec_value_value:"",spec_value_id:""},r.push(e)}))),r.map((function(e,t){return e.index=t+"",e})),e.spec_tableData=r&&0<r.length?JSON.parse(JSON.stringify(r)):[],t.next=24;break;case 18:if(100<=s&&s<=104)return t.next=21,e.logout();t.next=23;break;case 21:t.next=24;break;case 23:e.$message.warning(o);case 24:t.next=27;break;case 26:r.forEach((function(e){e.isMust||a.push(e)}));case 27:case"end":return t.stop()}}),t)})))()},is_goold_price_change:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.get_all_fee();case 2:case"end":return e.stop()}}),e)})))()},brandidsearchChange:function(e){var t=e.id;e.code,e.label,this.ruleForm.brandid=t?[t]:[],this.$refs.ruleForm.validateField("brandid")},supplierNosearchChange:function(e){e.id;var t=e.code;e.label,this.ruleForm.supplierNo=t?[t]:[],this.$refs.ruleForm.validateField("supplierNo")},company_idsearchChange:function(e){e.id;var t=e.code;e.label,this.ruleForm.company_id=t||"",this.$refs.ruleForm.validateField("company_id")},taxsearchChange:function(e){this.ruleForm.tax=e,this.$refs.ruleForm.validateField("tax")},exclusiveSearchChange:function(e){this.ruleForm.is_exclusive=e,this.$refs.ruleForm.validateField("is_exclusive")},unitsearchChange:function(e){e.id;var t=e.code;e.label,this.ruleForm.unit=t?[t]:[],this.$refs.ruleForm.validateField("unit")},noble_metalsearchChange:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){var a;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a=e.id,e.code,e.label,t.ruleForm.noble_metal=a||"",t.$refs.ruleForm.validateField("noble_metal"),r.next=5,t.get_all_fee();case 5:case"end":return r.stop()}}),r)})))()},selectAreaChange:function(e,t){this.ruleForm[t]=e,this.$refs.ruleForm.validateField(t)},closeImg:function(e,t){this.ruleForm[t].splice(e,1),this.$refs.ruleForm.validateField(t)},UploadSuccessEvent:function(e,t){var r=this;return Object(a.a)(regeneratorRuntime.mark((function a(){var n;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if("noToken"===(n=e.url))return a.next=4,r.logout();a.next=6;break;case 4:a.next=9;break;case 6:"good_thumb_img"===t?r.ruleForm[t]=n:r.ruleForm[t].push(n),r.$refs.ruleForm.validateField(t),r.$message.success("图片上传成功!");case 9:case"end":return a.stop()}}),a)})))()},good_type_change:function(){for(var e=["moq","customized"],t=0;t<e.length;t++)this.rulesThis[e[t]][0].required="1"===this.ruleForm.good_type,this.$refs.ruleForm.validateField(e[t])},UploadErrorEvent:function(e,t){"break"!==e&&(this.$message.error("图片上传失败!"),this.$refs.ruleForm.validateField(t))},beforeAvatarUpload:function(e){var t=!1;"image/jpg"!==e.type&&"image/png"!==e.type&&"image/jpeg"!==e.type||(t=!0),e=e.size/1024/1024<1;return t||this.$message.error("图片格式不正确!"),e||this.$message.error("图片大小不能超过 1MB!"),t&&e}}},r("1846"),c=r("2877"),u=Object(c.a)(o,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"ruleForm",attrs:{model:e.ruleForm,"status-icon":"",rules:e.rulesThis,size:"mini","label-width":"90px"}},[r("el-row",{staticClass:"ddiv"},[r("el-col",{staticClass:"dtitle",attrs:{span:1}},[r("ul",{staticStyle:{padding:"140px 0 0 0"}},[r("li",[e._v("基")]),r("li",[e._v("础")]),r("li",[e._v("信")]),r("li",[e._v("息")])])]),r("el-col",{staticClass:"dmain",attrs:{span:23}},[r("el-row",[r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"商品分类",prop:"cat_id"}},[r("search-sort",{attrs:{value:e.ruleForm.cat_id,placeholder:"商品分类",disabled:"view"===e.type||"editBase"===e.type||"editCoin"===e.type,size:"mini",names:e.cat_id_name,isDetail:"add"!==e.type},on:{searchChange:e.goods_class_change}})],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"商品名称",prop:"good_name"}},[r("el-input",{attrs:{placeholder:"商品名称",maxlength:"100",disabled:"view"===e.type||"editCoin"===e.type},model:{value:e.ruleForm.good_name,callback:function(t){e.$set(e.ruleForm,"good_name",t)},expression:"ruleForm.good_name"}})],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"业务公司",prop:"company_id"}},[r("search-work-company",{attrs:{value:e.ruleForm.company_id,placeholder:"业务公司",disabled:"view"===e.type||"editBase"===e.type||"editCoin"===e.type,size:"mini",isDetail:"add"!==e.type},on:{searchChange:e.company_idsearchChange}})],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"供应商",prop:"supplierNo"}},[r("search-supplier",{attrs:{value:e.ruleForm.supplierNo,placeholder:"供应商",disabled:"view"===e.type||"editCoin"===e.type,size:"mini",names:e.supplierName,isDetail:"add"!==e.type},on:{searchChange:e.supplierNosearchChange}})],1)],1),r("el-col",{attrs:{span:8}},[r("el-form-item",{attrs:{label:"商品品牌",prop:"brandid"}},[r("search-brand",{attrs:{value:e.ruleForm.brandid,disabled:"view"===e.type||"editCoin"===e.type,size:"mini",isDetail:"add"!==e.type,names:e.brand_name,placeholder:"商品品牌"},on:{searchChange:e.brandidsearchChange}})],1)],1),r("el-col",{attrs:{span:8}},[r("el-form-item",{attrs:{label:"销售权限",prop:"is_auth"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"",clearable:"",disabled:"view"===e.type||"editCoin"===e.type,placeholder:"销售权限"},model:{value:e.ruleForm.is_auth,callback:function(t){e.$set(e.ruleForm,"is_auth",t)},expression:"ruleForm.is_auth"}},e._l(e.options3,(function(e){return r("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),r("el-col",{attrs:{span:4}},[r("el-form-item",{attrs:{label:"单位",prop:"unit","label-width":"60px"}},[r("search-unit",{attrs:{value:e.ruleForm.unit,disabled:"view"===e.type||"editCoin"===e.type,size:"mini",isDetail:"add"!==e.type,names:e.unit_name,placeholder:"单位"},on:{searchChange:e.unitsearchChange}})],1)],1),r("el-col",{attrs:{span:4}},[r("el-form-item",{attrs:{label:"税点",prop:"tax","label-width":"60px"}},[r("search-tax",{attrs:{value:e.ruleForm.tax,disabled:"view"===e.type||"editBase"===e.type||"editCoin"===e.type,size:"mini",isDetail:"add"!==e.type,placeholder:"税点"},on:{searchChange:e.taxsearchChange}})],1)],1),r("el-col",{attrs:{span:8}},[r("el-form-item",{attrs:{label:"专属类型",prop:"is_exclusive"}},[r("search-exclusive",{staticStyle:{width:"100%"},attrs:{disabled:"view"===e.type||"editCoin"===e.type,isDetail:"add"!==e.type,size:"mini",placeholder:"专属类型",value:e.ruleForm.is_exclusive},on:{selectChange:e.exclusiveSearchChange}})],1)],1),r("el-col",{attrs:{span:8}},[r("el-form-item",{attrs:{label:"商品总重量",prop:"weight","label-width":"95px"}},[r("digital-input",{attrs:{values:e.ruleForm.weight,name:"ruleForm.weight",placeholder:"商品总重量",min:0,disabled:"view"===e.type||"editCoin"===e.type,max:1e11,position:"right",precision:3,size:"mini",controls:!1,append:"g"},on:{reschange:function(t){return e.number_change(t,"weight")}}})],1)],1),r("el-col",{attrs:{span:8}},[r("el-form-item",{attrs:{label:"是否库存品",prop:"is_stock","label-width":"95px"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"",clearable:"",disabled:"view"===e.type||"editBase"===e.type||"editCoin"===e.type,placeholder:"是否库存品"},model:{value:e.ruleForm.is_stock,callback:function(t){e.$set(e.ruleForm,"is_stock",t)},expression:"ruleForm.is_stock"}},e._l(e.options4,(function(e){return r("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),r("el-col",{directives:[{name:"show",rawName:"v-show",value:e.is_noble,expression:"is_noble"}],attrs:{span:24}},[r("el-row",[r("el-col",{attrs:{span:8}},[r("el-form-item",{attrs:{label:"贵金属重量",prop:"noble_weight","label-width":"95px"}},[r("digital-input",{attrs:{values:e.ruleForm.noble_weight,placeholder:"贵金属重量",name:"ruleForm.noble_weight",min:0,disabled:"view"===e.type||"editBase"===e.type||"editCoin"===e.type,max:1e11,position:"right",precision:3,size:"mini",controls:!1,append:"g"},on:{reschange:function(t){return e.number_change(t,"noble_weight")}}})],1)],1),r("el-col",{attrs:{span:8}},[r("el-form-item",{attrs:{label:"贵金属种类",prop:"noble_metal","label-width":"95px"}},[r("search-metal-kind",{attrs:{value:e.ruleForm.noble_metal,disabled:"view"===e.type||"editBase"===e.type||"editCoin"===e.type,size:"mini",isDetail:"add"!==e.type,placeholder:"贵金属种类"},on:{searchChange:e.noble_metalsearchChange}})],1)],1),r("el-col",{attrs:{span:8}},[r("el-form-item",{attrs:{label:"启用实时金价",prop:"is_gold_price","label-width":"110px"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"",clearable:"",disabled:"view"===e.type||"editBase"===e.type||"editCoin"===e.type,placeholder:"启用实时金价"},on:{change:e.is_goold_price_change},model:{value:e.ruleForm.is_gold_price,callback:function(t){e.$set(e.ruleForm,"is_gold_price",t)},expression:"ruleForm.is_gold_price"}},e._l(e.options5,(function(e){return r("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),r("el-col",{attrs:{span:6}},[r("el-form-item",{attrs:{label:"有无工差",prop:"is_diff"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"",clearable:"",disabled:"view"===e.type||"editBase"===e.type||"editCoin"===e.type,placeholder:"有无工差"},model:{value:e.ruleForm.is_diff,callback:function(t){e.$set(e.ruleForm,"is_diff",t)},expression:"ruleForm.is_diff"}},e._l(e.options8,(function(e){return r("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),r("el-col",{attrs:{span:10}},[r("el-form-item",{attrs:{label:"配置要求",prop:"config","label-width":"85px"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{multiple:"",disabled:"view"===e.type,placeholder:"配置要求"},model:{value:e.ruleForm.config,callback:function(t){e.$set(e.ruleForm,"config",t)},expression:"ruleForm.config"}},e._l(e.options9,(function(e,t){return r("el-option",{key:e+t,attrs:{label:e,value:e}})})),1)],1)],1),r("el-col",{attrs:{span:8}},[r("el-form-item",{attrs:{label:"其他配置要求",prop:"other_config","label-width":"110px"}},[r("el-input",{attrs:{placeholder:"其他配置要求",maxlength:"100",disabled:"view"===e.type},model:{value:e.ruleForm.other_config,callback:function(t){e.$set(e.ruleForm,"other_config",t)},expression:"ruleForm.other_config"}})],1)],1)],1)],1),r("el-col",{attrs:{span:8}},[r("el-form-item",{attrs:{label:"售后说明",prop:"after_sales"}},[r("el-input",{attrs:{type:"textarea",rows:4,disabled:"view"===e.type||"editCoin"===e.type,placeholder:"售后说明","show-word-limit":"",maxlength:"250"},model:{value:e.ruleForm.after_sales,callback:function(t){e.$set(e.ruleForm,"after_sales",t)},expression:"ruleForm.after_sales"}})],1)],1),r("el-col",{attrs:{span:8}},[r("el-form-item",{attrs:{label:"商品备注",prop:"good_remark"}},[r("el-input",{attrs:{type:"textarea",rows:4,disabled:"view"===e.type||"editCoin"===e.type,placeholder:"商品备注","show-word-limit":"",maxlength:"250"},model:{value:e.ruleForm.good_remark,callback:function(t){e.$set(e.ruleForm,"good_remark",t)},expression:"ruleForm.good_remark"}})],1)],1),r("el-col",{attrs:{span:8}},[r("el-form-item",{attrs:{label:"工艺说明",prop:"craft_desc"}},[r("el-input",{attrs:{type:"textarea",disabled:"view"===e.type||"editCoin"===e.type,rows:4,placeholder:"工艺说明","show-word-limit":"",maxlength:"250"},model:{value:e.ruleForm.craft_desc,callback:function(t){e.$set(e.ruleForm,"craft_desc",t)},expression:"ruleForm.craft_desc"}})],1)],1),r("el-col",{attrs:{span:8}},[r("el-form-item",{attrs:{label:"是否定制",prop:"good_type"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"",disabled:"view"===e.type||"editCoin"===e.type,clearable:"",placeholder:"是否定制"},on:{change:e.good_type_change},model:{value:e.ruleForm.good_type,callback:function(t){e.$set(e.ruleForm,"good_type",t)},expression:"ruleForm.good_type"}},e._l(e.options1,(function(e){return r("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),r("el-col",{directives:[{name:"show",rawName:"v-show",value:"1"===e.ruleForm.good_type,expression:"ruleForm.good_type === '1'"}],attrs:{span:8}},[r("el-form-item",{attrs:{label:"定制起订量",prop:"moq","label-width":"95px"}},[r("digital-input",{attrs:{values:e.ruleForm.moq,placeholder:"定制起订量",name:"ruleForm.moq",min:0,disabled:"view"===e.type||"editCoin"===e.type,max:1e11,position:"right",precision:0,size:"mini",controls:!1,append:""},on:{reschange:function(t){return e.number_change(t,"moq")}}})],1)],1),r("el-col",{directives:[{name:"show",rawName:"v-show",value:"1"===e.ruleForm.good_type,expression:"ruleForm.good_type === '1'"}],attrs:{span:8}},[r("el-form-item",{attrs:{label:"定制工期",prop:"customized"}},[r("digital-input",{attrs:{values:e.ruleForm.customized,placeholder:"定制工期",name:"ruleForm.customized",min:0,disabled:"view"===e.type||"editCoin"===e.type,max:1e11,position:"right",precision:0,size:"mini",controls:!1,append:"天"},on:{reschange:function(t){return e.number_change(t,"customized")}}})],1)],1)],1)],1)],1),r("el-row",{staticClass:"ddiv"},[r("el-col",{staticClass:"dtitle",attrs:{span:1}},[r("ul",[r("li",[e._v("规")]),r("li",[e._v("格")]),r("li",[e._v("信")]),r("li",[e._v("息")])])]),r("el-col",{staticClass:"dmain",staticStyle:{padding:"20px 0 20px 18px"},attrs:{span:23}},[r("el-table",{staticStyle:{width:"100%"},attrs:{data:e.spec_tableData,size:"mini",border:""}},[r("el-table-column",{attrs:{prop:"spec_value",label:"规格类型"}}),r("el-table-column",{attrs:{prop:"spec_value_value",label:"规格值"}}),"add"===e.type||"editBase"===e.type||"edit"===e.type?r("el-table-column",{attrs:{fixed:"right"},scopedSlots:e._u([{key:"header",fn:function(t){return[r("span",[e._v("操作")]),r("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"添加规格类型",placement:"top"}},[r("i",{staticClass:"el-icon-circle-plus-outline fr",staticStyle:{"font-size":"18px","margin-top":"2px"},on:{click:function(t){return e.openEdit("-1",{})}}})])]}},{key:"default",fn:function(t){return[r("el-tooltip",{attrs:{effect:"dark",content:"修改",placement:"top"}},[r("i",{staticClass:"el-icon-edit tb-icon",on:{click:function(r){return e.openEdit(t.$index,t.row)}}})]),t.row.isMust?e._e():r("el-tooltip",{attrs:{effect:"dark",content:"删除",placement:"top"}},[r("i",{staticClass:"el-icon-delete tb-icon",on:{click:function(r){return e.openDelete(t.$index)}}})])]}}],null,!1,2145383267)}):e._e()],1),r("base-form-add-edit",{attrs:{index:e.modelIndex,"show-model":e.showModel,sitem:e.sitem},on:{refresh:e.refreshEdit,cancel:function(t){e.showModel=!1}}})],1)],1),r("el-row",{staticClass:"ddiv"},[r("el-col",{staticClass:"dtitle",attrs:{span:1}},[r("ul",[r("li",[e._v("包")]),r("li",[e._v("装")]),r("li",[e._v("信")]),r("li",[e._v("息")])])]),r("el-col",{staticClass:"dmain",attrs:{span:23}},[r("el-row",[r("el-col",{attrs:{span:6}},[r("el-form-item",{attrs:{label:"包装方式",prop:"packing_way"}},[r("el-input",{attrs:{placeholder:"包装方式",disabled:"view"===e.type||"editCoin"===e.type,maxlength:"250"},model:{value:e.ruleForm.packing_way,callback:function(t){e.$set(e.ruleForm,"packing_way",t)},expression:"ruleForm.packing_way"}})],1)],1),r("el-col",{attrs:{span:6}},[r("el-form-item",{attrs:{label:"装箱规格",prop:"packing_spec"}},[r("el-input",{attrs:{placeholder:"装箱规格",disabled:"view"===e.type||"editCoin"===e.type,maxlength:"250"},model:{value:e.ruleForm.packing_spec,callback:function(t){e.$set(e.ruleForm,"packing_spec",t)},expression:"ruleForm.packing_spec"}})],1)],1),r("el-col",{attrs:{span:6}},[r("el-form-item",{attrs:{label:"装箱重量",prop:"packing_weight"}},[r("digital-input",{attrs:{values:e.ruleForm.packing_weight,placeholder:"装箱重量",min:0,name:"ruleForm.packing_weight",disabled:"view"===e.type||"editCoin"===e.type,max:1e11,position:"right",precision:3,size:"mini",controls:!1,append:"g"},on:{reschange:function(t){return e.number_change(t,"packing_weight")}}})],1)],1),r("el-col",{attrs:{span:6}},[r("el-form-item",{attrs:{label:"装箱尺寸",prop:"packing_size"}},[r("el-input",{attrs:{placeholder:"装箱尺寸",disabled:"view"===e.type||"editCoin"===e.type,maxlength:"250"},model:{value:e.ruleForm.packing_size,callback:function(t){e.$set(e.ruleForm,"packing_size",t)},expression:"ruleForm.packing_size"}})],1)],1),r("el-col",{attrs:{span:6}},[r("el-form-item",{attrs:{label:"商品尺寸",prop:"good_size"}},[r("el-input",{attrs:{placeholder:"商品尺寸",disabled:"view"===e.type||"editCoin"===e.type,maxlength:"250"},model:{value:e.ruleForm.good_size,callback:function(t){e.$set(e.ruleForm,"good_size",t)},expression:"ruleForm.good_size"}})],1)],1),r("el-col",{attrs:{span:6}},[r("el-form-item",{attrs:{label:"商品条形码",prop:"good_bar"}},[r("el-input",{attrs:{placeholder:"商品条形码",disabled:"view"===e.type||"editCoin"===e.type,type:"number",min:0,max:9999999999999,step:0},model:{value:e.ruleForm.good_bar,callback:function(t){e.$set(e.ruleForm,"good_bar",t)},expression:"ruleForm.good_bar"}})],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"包装清单",prop:"packing_list"}},[r("el-input",{attrs:{placeholder:"包装清单",disabled:"view"===e.type||"editCoin"===e.type,maxlength:"250"},model:{value:e.ruleForm.packing_list,callback:function(t){e.$set(e.ruleForm,"packing_list",t)},expression:"ruleForm.packing_list"}})],1)],1)],1)],1)],1),r("el-row",{staticClass:"ddiv"},[r("el-col",{staticClass:"dtitle",attrs:{span:1}},[r("ul",[r("li",[e._v("发")]),r("li",[e._v("货")]),r("li",[e._v("信")]),r("li",[e._v("息")])])]),r("el-col",{staticClass:"dmain",attrs:{span:23}},[r("el-row",[r("el-col",{attrs:{span:6}},[r("el-form-item",{attrs:{label:"供货区域",prop:"supply_area"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"",clearable:"",disabled:"view"===e.type||"editCoin"===e.type,placeholder:"供货区域"},model:{value:e.ruleForm.supply_area,callback:function(t){e.$set(e.ruleForm,"supply_area",t)},expression:"ruleForm.supply_area"}},e._l(e.options6,(function(e){return r("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),r("el-col",{attrs:{span:6}},[r("el-form-item",{attrs:{label:"物流时间",prop:"delivery_day"}},[r("digital-input",{attrs:{values:e.ruleForm.delivery_day,placeholder:"物流时间",min:0,name:"ruleForm.delivery_day",disabled:"view"===e.type||"editCoin"===e.type,max:1e11,position:"right",precision:0,size:"mini",controls:!1,append:"天"},on:{reschange:function(t){return e.number_change(t,"delivery_day")}}})],1)],1),r("el-col",{attrs:{span:6}},[r("el-form-item",{attrs:{label:"供货周期",prop:"lead_time"}},[r("digital-input",{attrs:{values:e.ruleForm.lead_time,placeholder:"物流时间",min:0,name:"ruleForm.lead_time",disabled:"view"===e.type||"editCoin"===e.type,max:1e11,position:"right",precision:0,size:"mini",controls:!1,append:"天"},on:{reschange:function(t){return e.number_change(t,"lead_time")}}})],1)],1),r("el-col",{attrs:{span:6}},[r("el-form-item",{attrs:{label:"调样周期",prop:"sample_day"}},[r("digital-input",{attrs:{values:e.ruleForm.sample_day,placeholder:"调样周期",min:0,name:"ruleForm.sample_day",disabled:"view"===e.type||"editCoin"===e.type,max:1e11,position:"right",precision:0,size:"mini",controls:!1,append:"天"},on:{reschange:function(t){return e.number_change(t,"sample_day")}}})],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"发货地",prop:"delivery_place"}},[r("select-area",{attrs:{placeholder:"发货地",value:e.ruleForm.delivery_place,"is-detail":"add"!==e.id,disabled:"view"===e.type||"editCoin"===e.type,size:"mini"},on:{selectChange:function(t){return e.selectAreaChange(t,"delivery_place")}}})],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"产地",prop:"origin_place"}},[r("select-area",{attrs:{placeholder:"产地",value:e.ruleForm.origin_place,size:"mini","is-detail":"add"!==e.id,disabled:"view"===e.type||"editCoin"===e.type},on:{selectChange:function(t){return e.selectAreaChange(t,"origin_place")}}})],1)],1)],1)],1)],1),r("el-row",{staticClass:"ddiv"},[r("el-col",{staticClass:"dtitle",attrs:{span:1}},[r("ul",[r("li",[e._v("图")]),r("li",[e._v("片")]),r("li",[e._v("信")]),r("li",[e._v("息")])])]),r("el-col",{staticClass:"dmain",attrs:{span:23}},[r("el-row",{staticStyle:{padding:"0 0 20px 0"}},[r("el-col",{attrs:{span:6}},[r("el-form-item",{staticClass:"activity-upload my-label-top",attrs:{label:"商品缩略",prop:"good_thumb_img"}},[r("div",{staticClass:"btnupload",staticStyle:{position:"relative"}},[e.ruleForm.good_thumb_img?r("img",{staticClass:"avatar",attrs:{src:e.ruleForm.good_thumb_img}}):r("i",{staticClass:"el-icon-plus avatar-uploader-icon"}),r("file-upload",{staticClass:"Upload",attrs:{disabled:"view"===e.type||"editCoin"===e.type,accept:".jpg,.png,.jpeg",multiple:!0,uploadcondition:e.beforeAvatarUpload},on:{UploadErrorEvent:function(t){return e.UploadErrorEvent(t,"good_thumb_img")},UploadSuccessEvent:function(t){return e.UploadSuccessEvent(t,"good_thumb_img")}}})],1),r("div",{staticClass:"txt-tips fl"},[r("p",[e._v("尺寸比例:")]),r("p",[e._v("1:1")])])])],1),r("el-col",{attrs:{span:9}},[r("el-form-item",{attrs:{label:"商品主图",prop:"good_img"}},[r("div",{staticClass:"good_info_img_div"},[e.ruleForm.good_img?r("ul",{staticClass:"clear"},[e._l(e.ruleForm.good_img,(function(t,a){return r("li",{directives:[{name:"viewer",rawName:"v-viewer"}],key:t+a,staticClass:"img-show-li"},[r("div",{staticClass:"img-show-li-div"},[r("img",{staticClass:"img-show",attrs:{src:t,alt:""}}),"add"==e.type||"editBase"===e.type||"edit"===e.type?r("i",{staticClass:"el-icon-close",on:{click:function(t){return e.closeImg(a,"good_img")}}}):e._e()])])})),e.ruleForm.good_img.length<10&&("add"==e.type||"editBase"===e.type||"edit"===e.type)?r("li",{staticClass:"img-show-li"},[r("div",{staticClass:"activity-upload"},[r("div",{staticClass:"btnupload",staticStyle:{position:"relative"}},[r("i",{staticClass:"el-icon-plus avatar-uploader-icon"}),r("file-upload",{staticClass:"Upload",attrs:{disabled:"view"===e.type||"editCoin"===e.type,accept:".jpg,.png,.jpeg",multiple:!0,uploadcondition:e.beforeAvatarUpload},on:{UploadErrorEvent:function(t){return e.UploadErrorEvent(t,"good_img")},UploadSuccessEvent:function(t){return e.UploadSuccessEvent(t,"good_img")}}})],1)])]):e._e()],2):e._e()])])],1),r("el-col",{attrs:{span:9}},[r("el-form-item",{attrs:{label:"详情介绍",prop:"good_info_img"}},[r("div",{staticClass:"good_info_img_div"},[e.ruleForm.good_info_img?r("ul",{staticClass:"clear"},[e._l(e.ruleForm.good_info_img,(function(t,a){return r("li",{directives:[{name:"viewer",rawName:"v-viewer"}],key:t+a,staticClass:"img-show-li"},[r("div",{staticClass:"img-show-li-div"},[r("img",{staticClass:"img-show",attrs:{src:t,alt:""}}),"add"==e.type||"editBase"===e.type||"edit"===e.type?r("i",{staticClass:"el-icon-close",on:{click:function(t){return e.closeImg(a,"good_info_img")}}}):e._e()])])})),e.ruleForm.good_info_img.length<10&&("add"==e.type||"editBase"===e.type||"edit"===e.type)?r("li",{staticClass:"img-show-li"},[r("div",{staticClass:"activity-upload"},[r("div",{staticClass:"btnupload",staticStyle:{position:"relative"}},[r("i",{staticClass:"el-icon-plus avatar-uploader-icon"}),r("file-upload",{staticClass:"Upload",attrs:{disabled:"view"===e.type||"editCoin"===e.type,accept:".jpg,.png,.jpeg",multiple:!0,uploadcondition:e.beforeAvatarUpload},on:{UploadErrorEvent:function(t){return e.UploadErrorEvent(t,"good_info_img")},UploadSuccessEvent:function(t){return e.UploadSuccessEvent(t,"good_info_img")}}})],1)])]):e._e()],2):e._e()])])],1),r("el-col",{attrs:{span:24}},[r("div",{staticStyle:{"font-size":"12px",color:"#606266"}},[r("span",{staticStyle:{padding:"0 0 0 20px"}},[e._v("图片大小:小于1M")]),r("span",{staticStyle:{padding:"0 0 0 20px"}},[e._v("图片类型.jpg/png/jpeg")])])])],1)],1)],1),r("el-row",{staticClass:"ddiv"},[r("el-col",{staticClass:"dtitle",attrs:{span:1}},[r("ul",{staticStyle:{padding:"0"}},[r("li",[e._v("固")]),r("li",[e._v("定")]),r("li",[e._v("与")]),r("li",[e._v("阶")]),r("li",[e._v("梯")]),r("li",[e._v("成")]),r("li",[e._v("本")])])]),r("el-col",{staticClass:"dmain",attrs:{span:23}},[r("el-row",[r("el-col",{attrs:{span:6}},[r("el-form-item",{attrs:{label:"打样费",prop:"demo_fee","label-width":"75px"}},[r("digital-input",{attrs:{values:e.ruleForm.demo_fee,placeholder:"打样费",min:0,name:"ruleForm.demo_fee",disabled:"view"===e.type||"editBase"===e.type,max:1e11,position:"right",precision:2,size:"mini",controls:!1,append:"元"},on:{reschange:function(t){return e.number_change(t,"demo_fee")}}})],1)],1),r("el-col",{attrs:{span:6}},[r("el-form-item",{attrs:{label:"开模费",prop:"open_fee","label-width":"75px"}},[r("digital-input",{attrs:{values:e.ruleForm.open_fee,placeholder:"开模费",min:0,name:"ruleForm.open_fee",disabled:"view"===e.type||"editBase"===e.type,max:1e11,position:"right",precision:2,size:"mini",controls:!1,append:"元/件"},on:{reschange:function(t){return e.number_change(t,"open_fee")}}})],1)],1),r("el-col",{attrs:{span:6}},[r("el-form-item",{attrs:{label:"调样费",prop:"sample_fee","label-width":"75px"}},[r("digital-input",{attrs:{values:e.ruleForm.sample_fee,placeholder:"调样费",min:0,name:"ruleForm.sample_fee",disabled:"view"===e.type||"editBase"===e.type,max:1e11,position:"right",precision:2,size:"mini",controls:!1,append:"元"},on:{reschange:function(t){return e.number_change(t,"sample_fee")}}})],1)],1),r("el-col",{attrs:{span:6}},[r("el-form-item",{attrs:{label:"市场价",prop:"market_price","label-width":"75px"}},[r("digital-input",{attrs:{values:e.ruleForm.market_price,placeholder:"市场价",min:0,name:"ruleForm.market_price",disabled:"view"===e.type||"editBase"===e.type,max:1e11,position:"right",precision:2,size:"mini",controls:!1,append:"元"},on:{reschange:function(t){return e.number_change(t,"market_price")}}})],1)],1),r("el-col",{directives:[{name:"show",rawName:"v-show",value:e.is_noble&&e.ruleForm&&"1"===e.ruleForm.is_gold_price,expression:"is_noble && ruleForm && ruleForm.is_gold_price === '1'"}],attrs:{span:6}},[r("el-form-item",{attrs:{label:"供应商采购金价",prop:"cgd_gold_price","label-width":"130px"}},[r("digital-input",{attrs:{values:e.ruleForm.cgd_gold_price,placeholder:"供应商采购金价",min:0,name:"ruleForm.cgd_gold_price",disabled:"view"===e.type||"editBase"===e.type,max:1e11,position:"right",precision:2,size:"mini",controls:!1,append:"元/g"},on:{reschange:function(t){return e.number_change(t,"cgd_gold_price")}}})],1)],1),r("el-col",{directives:[{name:"show",rawName:"v-show",value:e.is_noble&&e.ruleForm&&"1"===e.ruleForm.is_gold_price,expression:"is_noble && ruleForm && ruleForm.is_gold_price === '1'"}],attrs:{span:6}},[r("el-form-item",{attrs:{label:"当前金价"}},[r("el-input",{attrs:{disabled:"",maxlength:"15",placeholder:"当前金价"},model:{value:e.ruleForm.noble_price,callback:function(t){e.$set(e.ruleForm,"noble_price",t)},expression:"ruleForm.noble_price"}},[r("template",{slot:"append"},[e._v("元/g")])],2)],1)],1),r("el-col",{staticStyle:{"padding-left":"18px"},attrs:{span:24}},[r("el-table",{staticStyle:{width:"100%",margin:"0 0 20px 0"},attrs:{data:e.ladder_tableData,size:"mini",border:"",stripe:""}},[r("el-table-column",{attrs:{prop:"min_num",label:"起订量(>=)"}}),r("el-table-column",{attrs:{prop:"nake_fee",label:"成本单价"}}),r("el-table-column",{attrs:{prop:"cost_fee",label:"工艺费"}}),r("el-table-column",{attrs:{prop:"delivery_fee",label:"物流费"}}),r("el-table-column",{attrs:{prop:"cert_fee",label:"证书费"}}),r("el-table-column",{attrs:{prop:"mark_fee",label:"加标费"}}),r("el-table-column",{attrs:{prop:"package_fee",label:"包装费"}}),r("el-table-column",{attrs:{prop:"other_fee",label:"其他费用"}}),r("el-table-column",{attrs:{prop:"nake_total",label:"成本合计"}}),"add"===e.type||"editCoin"===e.type||"edit"===e.type?r("el-table-column",{attrs:{fixed:"right",width:"80px"},scopedSlots:e._u([{key:"header",fn:function(t){return[r("span",[e._v("操作")]),r("el-tooltip",{attrs:{effect:"dark",content:"添加阶梯",placement:"top"}},[r("i",{staticClass:"el-icon-circle-plus-outline tb-icon fr",on:{click:function(t){return e.openCostEdit(-1,{})}}})])]}},{key:"default",fn:function(t){return[r("el-tooltip",{attrs:{effect:"dark",content:"修改",placement:"top"}},[r("i",{staticClass:"el-icon-edit tb-icon",on:{click:function(r){return e.openCostEdit(t.$index,t.row)}}})]),r("el-tooltip",{attrs:{effect:"dark",content:"删除",placement:"top"}},[r("i",{staticClass:"el-icon-delete tb-icon",on:{click:function(r){return e.openCostEditDelete(t.$index)}}})])]}}],null,!1,2856051856)}):e._e()],1)],1)],1),r("cost-form-add-edit",{attrs:{index:e.costmodelIndex,"show-model":e.costshowModel,sitem:e.costsitem},on:{refresh:e.costrefreshEdit,cancel:function(t){e.costshowModel=!1}}})],1),"editBase"===e.type||"add"===e.type||"editCoin"===e.type||"edit"===e.type?r("el-col",{staticStyle:{"text-align":"right",padding:"15px 0 15px 0","border-top":"1px solid #dcdfe6"},attrs:{span:24}},[r("el-button",{attrs:{size:"mini",type:"primary"},on:{click:e.submitForm}},[e._v("保 存 ")])],1):e._e()],1)],1)}),[],!1,null,"b107bc9c",null);t.default=u.exports},e49d:function(e,t,r){"use strict";var a=r("1b69"),n="admin/";t.a={add:function(e,t){return Object(a.a)(n+"catcreate",e,"post",t)},delete:function(e,t){return Object(a.a)(n+"delete",e,"post",t)},list:function(e,t){return Object(a.a)(n+"catplist",e,"post",t)},detail:function(e,t){return Object(a.a)(n+"catinfo",e,"post",t)},update:function(e,t){return Object(a.a)(n+"catedit",e,"post",t)},status:function(e,t){return Object(a.a)(n+"catstatus",e,"post",t)},goodsList:function(e,t){return Object(a.a)(n+"catlist",e,"post",t)},specstitle:function(e,t){return Object(a.a)(n+"specstitle",e,"post",t)},editRate:function(e,t){return Object(a.a)(n+"catratedit",e,"post",t)}}},e502:function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=(r("96cf"),r("fb6a"),r("e9c4"),r("d3b7"),r("25f0"),r("0f31")),s=r("61f7"),i={name:"Invoicing",props:["showModel","id","isDetail","isApproval"],watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis:function(e){e||this.$emit("cancel")}},data:function(){var e=this;return{statusList:[],loading:!1,title:"添加开票信息",showModelThis:this.showModel,dataInfo:{},companyNoNames:"",soptins:[{code:"1",name:"区-固-分"},{code:"2",name:"区-固"},{code:"3",name:"固-分"},{code:"4",name:"固"},{code:"5",name:"手机号"}],companyList:[],schange:"1",ruleForm:{},rulesThis:this.rules,rules:{companyNo:[{required:!0,message:"请选择客户公司",trigger:"change"}],invoice_title:[{required:!0,message:"请选择发票抬头",trigger:"change"}],invoice_code:[{required:!0,validator:function(e,t,r){""!==t?Object(s.f)(t)?r():r(new Error("统一社会信用代码不正确!")):r(new Error("请输入统一社会信用代码!"))},trigger:"blur"}],invoice_bank:[{required:!0,message:"请输入开户银行名称",trigger:"blur"}],invoice_bankNo:[{required:!0,message:"请输入开户银行账号",trigger:"blur"}],invoice_addr:[{required:!0,message:"请输入纳税登记地址",trigger:"blur"}],invoice_mobile:[{required:!0,validator:function(t,r,a){var n,i;""!==r?"1"===e.schange?Object(s.o)(r)?a():a(new Error("规则为区号[0+2~3位]-固定电话[7~8位]-分机号[1~6位]!")):"2"===e.schange?Object(s.n)(r)?a():a(new Error("规则为区号[0+2~3位]-固定电话[7~8位]!")):"3"===e.schange?Object(s.q)(r)?a():a(new Error("规则为固定电话[7~8位]-分机号[1~6位]!")):"4"===e.schange?Object(s.p)(r)?a():3<r.length&&(n=r.slice(0,3),i=r.slice(3),"400"!==n&&"800"!==n||7!==i.length?a(new Error("纯固定电话规则为[7~8位]或10位!")):a()):Object(s.g)(r)?a():a(new Error("手机号格式不正确!")):a(new Error("请输入联系电话!"))},trigger:"blur"}]}}},methods:{closeModel:function(){},selectChange:function(){"1"===this.cexForm.status?this.cexRules.remark[0].required=!1:this.cexRules.remark[0].required=!0},initForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.loading=!0,e.resetFormData(),"add"===e.id)return e.title="添加开票信息",e.rulesThis=e.rules,t.next=8,e.resetForm();t.next=10;break;case 8:t.next=15;break;case 10:return e.isDetail?(e.title="开票信息",e.rulesThis={}):(e.title="修改开票信息",e.rulesThis=e.rules),t.next=13,e.resetForm();case 13:return t.next=15,e.initData();case 15:e.loading=!1;case 16:case"end":return t.stop()}}),t)})))()},initData:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r,a,s,i,o,l,c,u,d;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,t.next=3,n.a.detail({id:e.id});case 3:r=t.sent,a=r.code,d=r.data,r.message,e.loading=!1,0===a&&(r=d.id,a=d.companyNo,s=d.companyName,i=d.invoice_title,o=d.invoice_code,l=d.invoice_bank,c=d.invoice_bankNo,u=d.invoice_addr,d=d.invoice_mobile,e.companyNoNames=s||"",e.ruleForm={id:r,companyNo:a?[a]:[],invoice_title:i||"",invoice_code:o||"",invoice_bank:l||"",invoice_bankNo:c||"",invoice_addr:u||"",invoice_mobile:d||""},e.setTypeM(d));case 9:case"end":return t.stop()}}),t)})))()},resetForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$nextTick((function(){e.$refs.ruleForm&&(e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),e.resetFormData())}));case 2:case"end":return t.stop()}}),t)})))()},resetFormData:function(){this.ruleForm={id:"",companyNo:[],invoice_title:"",invoice_code:"",invoice_bank:"",invoice_bankNo:"",invoice_addr:"",invoice_mobile:""}},selectChangeMobile:function(){this.$refs.ruleForm.validateField("invoice_mobile")},setTypeM:function(e){Object(s.g)(e)?this.schange="5":Object(s.o)(e)?this.schange="1":Object(s.n)(e)?this.schange="2":Object(s.q)(e)?this.schange="3":this.schange="4"},submitForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.ruleForm.validate(function(){var t=Object(a.a)(regeneratorRuntime.mark((function t(r){var a,s,i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r){t.next=19;break}if(e.loading=!0,(a=JSON.parse(JSON.stringify(e.ruleForm))).companyNo=a.companyNo.toString(),s={},"add"===e.id)return delete a.id,t.next=9,n.a.add(a);t.next=12;break;case 9:s=t.sent,t.next=15;break;case 12:return t.next=14,n.a.update(a);case 14:s=t.sent;case 15:e.loading=!1,0===s.code&&(i="add"===e.id?"添加成功":"修改成功",e.$notify.success({title:i,message:""}),e.showModelThis=!1,e.$emit("refresh")),t.next=21;break;case 19:return t.abrupt("return",!1);case 21:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()},getCompanyList:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n.a.companyall({type:"2"});case 2:0===(r=t.sent).code&&(e.companyList=r.data);case 4:case"end":return t.stop()}}),t)})))()},companyNo_change:function(e){e&&e.code?this.ruleForm.companyNo=[e.code]:this.ruleForm.companyNo=[],this.$refs.ruleForm.validateField("companyNo")}}};r("8ba7"),r=r("2877"),r=Object(r.a)(i,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:e.title,center:!0,align:"left",top:"10vh",width:"600px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)"},on:{close:e.closeModel,"update:visible":function(t){e.showModelThis=t}}},[r("el-card",{staticStyle:{margin:"-20px 0 0 0"}},[r("el-row",{attrs:{gutter:10}},[r("el-col",{attrs:{span:24}},[r("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",rules:e.rulesThis,size:"small","label-width":"108px"}},[r("el-row",[r("el-col",{attrs:{span:24}},[r("el-form-item",{attrs:{label:"客户公司",prop:"companyNo"}},[r("search-customer",{attrs:{value:e.ruleForm.companyNo,isDetail:"add"!==this.id,names:e.companyNoNames,disabled:e.isDetail,placeholder:"客户公司"},on:{searchChange:e.companyNo_change}})],1)],1),r("el-col",{attrs:{span:24}},[r("el-form-item",{attrs:{label:"发票抬头",prop:"invoice_title"}},[r("el-input",{attrs:{disabled:e.isDetail,placeholder:"发票抬头",maxlength:"100"},model:{value:e.ruleForm.invoice_title,callback:function(t){e.$set(e.ruleForm,"invoice_title",t)},expression:"ruleForm.invoice_title"}})],1)],1),r("el-col",{attrs:{span:24}},[r("el-form-item",{attrs:{label:"统一社会信用代码",prop:"invoice_code","label-width":"140px"}},[r("el-input",{attrs:{placeholder:"统一社会信用代码",disabled:e.isDetail,maxlength:"100"},model:{value:e.ruleForm.invoice_code,callback:function(t){e.$set(e.ruleForm,"invoice_code",t)},expression:"ruleForm.invoice_code"}})],1)],1),r("el-col",{attrs:{span:24}},[r("el-form-item",{attrs:{label:"开户银行名称",prop:"invoice_bank"}},[r("el-input",{attrs:{placeholder:"开户银行名称",disabled:e.isDetail,maxlength:"100"},model:{value:e.ruleForm.invoice_bank,callback:function(t){e.$set(e.ruleForm,"invoice_bank",t)},expression:"ruleForm.invoice_bank"}})],1)],1),r("el-col",{attrs:{span:24}},[r("el-form-item",{attrs:{label:"开户银行账号",prop:"invoice_bankNo"}},[r("el-input",{attrs:{disabled:e.isDetail,placeholder:"开户银行账号",maxlength:"100"},model:{value:e.ruleForm.invoice_bankNo,callback:function(t){e.$set(e.ruleForm,"invoice_bankNo",t)},expression:"ruleForm.invoice_bankNo"}})],1)],1),r("el-col",{attrs:{span:24}},[r("el-form-item",{attrs:{label:"纳税登记地址",prop:"invoice_addr"}},[r("el-input",{attrs:{disabled:e.isDetail,placeholder:"纳税登记地址",maxlength:"100"},model:{value:e.ruleForm.invoice_addr,callback:function(t){e.$set(e.ruleForm,"invoice_addr",t)},expression:"ruleForm.invoice_addr"}})],1)],1),r("el-col",{attrs:{span:24}},[r("el-form-item",{attrs:{label:"联系电话",prop:"invoice_mobile"}},[r("el-input",{attrs:{disabled:e.isDetail,placeholder:"联系电话",maxlength:"100"},model:{value:e.ruleForm.invoice_mobile,callback:function(t){e.$set(e.ruleForm,"invoice_mobile",t)},expression:"ruleForm.invoice_mobile"}},[r("el-select",{staticStyle:{width:"110px"},attrs:{slot:"prepend",placeholder:"电话类型"},on:{change:e.selectChangeMobile},slot:"prepend",model:{value:e.schange,callback:function(t){e.schange=t},expression:"schange"}},e._l(e.soptins,(function(e){return r("el-option",{key:e.code+"indexs",attrs:{label:e.name,value:e.code}})})),1)],1)],1)],1)],1),r("el-col",{staticStyle:{"text-align":"right"},attrs:{span:24}},[e.isDetail?e._e():r("el-button",{attrs:{type:"primary",size:"small"},on:{click:e.submitForm}},[e._v("保 存 ")]),r("el-button",{attrs:{size:"small"},on:{click:function(t){e.showModelThis=!1}}},[e._v(e._s(e.isDetail?"关 闭":"取 消"))])],1)],1)],1)],1)],1)],1)}),[],!1,null,"51c16447",null);t.default=r.exports},e506:function(e,t,r){},e5ab:function(e,t,r){"use strict";var a=r("1b69"),n="admin/";t.a={add:function(e,t){return Object(a.a)(n+"add",e,"post",t)},list:function(e,t){return Object(a.a)(n+"cgdlist",e,"post",t)},delete:function(e,t){return Object(a.a)(n+"delete",e,"post",t)},detail:function(e,t){return Object(a.a)(n+"cgdinfo",e,"post",t)},update:function(e,t){return Object(a.a)(n+"cgdedit",e,"post",t)},status:function(e,t){return Object(a.a)(n+"cgdstatus",e,"post",t)},orderinadd:function(e,t){return Object(a.a)(n+"orderinadd",e,"post",t)},orderininfo:function(e,t){return Object(a.a)(n+"orderininfo",e,"post",t)},resultlist:function(e,t){return Object(a.a)(n+"resultlist",e,"post",t)},orderincheck:function(e,t){return Object(a.a)(n+"orderincheck",e,"post",t)},orderinreturn:function(e,t){return Object(a.a)(n+"orderinreturn",e,"post",t)},orderinstatus:function(e,t){return Object(a.a)(n+"orderinstatus",e,"post",t)},re_detail:function(e,t){return Object(a.a)(n+"goodzxinfo",e,"post",t)},cost_detail:function(e,t){return Object(a.a)(n+"goodupinfo",e,"post",t)}}},e5db:function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=r("ade3"),s=r("5530"),i=(r("96cf"),r("7db0"),r("d3b7"),r("a9e3"),r("f5ed")),o=r("9f53"),l=r("1b69"),c=function(e,t){return Object(l.a)("admin/checklist",e,"post",t)},u=r("e6b4"),d=r("2f62");i={name:"check",mixins:[i.a,o.a],components:{addModel:u.default},computed:Object(s.a)(Object(s.a)({},Object(d.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"check"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),data:function(){var e={sitem:null,statusOptions:[{id:"0",label:"待发起流程"},{id:"1",label:"待上传盘点结果"},{id:"2",label:"待审核盘点结果"},{id:"3",label:"待系统更新"},{id:"4",label:"盘点已结束"}],typeOptions:[{id:"1",label:"全盘"},{id:"2",label:"抽盘"}],loading:!0,showModel:!1,isDetail:!1,modelId:0,parmValue:{page:1,size:15,wsm_code:"",check_code:"",type:"",status:"",start:"",end:""},tableData:[],passwordModel:!1,passwordModelId:0,isPasswordDetail:!1};return Object(n.a)(e,"tableData",[]),Object(n.a)(e,"table",{stripe:!0,border:!0,_defaultHeader_:["setcol"]}),Object(n.a)(e,"pageInfo",{size:15,curr:1,total:0}),Object(n.a)(e,"columns",[{prop:"check_code",label:"盘点编号",width:"155px"},{prop:"wsm_code",label:"仓库编码",width:"170px"},{prop:"name",label:"仓库名称"},{prop:"code",label:"公司编码",width:"140px"},{prop:"caname",label:"公司名称"},{prop:"status",label:"盘点状态",_slot_:"status",width:"120px"},{prop:"type",label:"盘点类型",_slot_:"type",width:"70px"},{prop:"addtime",label:"创建时间",width:"140px"},{prop:"",label:"操作",fixed:"right",_noset_:!0,width:"50px",_slot_:"operation"}]),e},mounted:function(){this.searchList()},methods:{restSearch:function(){this.pageInfo={size:15,curr:1,total:0},this.parmValue={wsm_code:"",check_code:"",type:"",status:"",start:"",end:"",page:1,size:15},this.searchList()},openModal:function(e,t,r){this.showModel=!0,this.modelId=e,this.isDetail=t,this.sitem=r},timeReturned:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(""!==e.startTime?t.parmValue.start=e.startTime:t.parmValue.start="",""!==e.endTime?t.parmValue.end=e.endTime:t.parmValue.end="",""!==t.parmValue.start&&""!==t.parmValue.end)return t.parmValue.page=1,r.next=6,t.searchList();r.next=6;break;case 6:case"end":return r.stop()}}),r)})))()},searchList:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(""!==e.parmValue.start&&""===e.parmValue.end||""===e.parmValue.start&&""!==e.parmValue.end)return e.$message.warning("时间区间不完整!"),t.abrupt("return");t.next=3;break;case 3:return e.loading=!0,t.next=6,c(e.parmValue);case 6:if(!(r=t.sent)||0!==r.code||!r.data){t.next=12;break}e.tableData=r.data.list,e.pageInfo.total=Number(r.data.count),t.next=19;break;case 12:if(r&&100<=r.code&&r.code<=104)return t.next=15,e.logout();t.next=17;break;case 15:t.next=19;break;case 17:e.tableData=[],e.pageInfo.total=0;case 19:e.loading=!1;case 20:case"end":return t.stop()}}),t)})))()}}},o=r("2877"),u=Object(o.a)(i,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"check pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?r("div",[r("ex-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{table:e.table,data:e.tableData,columns:e.columns,page:e.pageInfo,size:e.size},on:{"page-curr-change":e.handlePageChange,"page-size-change":e.handleSizeChange,"screen-reset":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()},"screen-submit":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},scopedSlots:e._u([{key:"table-header",fn:function(t){return[r("div",{staticStyle:{width:"100%"}},[r("el-row",{staticStyle:{padding:"0 0 0 80px"}},[r("el-col",{attrs:{span:24}},[r("el-col",{staticStyle:{width:"292px"},attrs:{span:6}},[r("period-date-picker",{attrs:{start:e.parmValue.start,end:e.parmValue.end,type:1,width:"135px",size:e.searchSize},on:{timeReturned:function(t){return e.timeReturned(t)}}})],1),r("el-col",{staticStyle:{width:"180px",padding:"0 0 0 10px"},attrs:{span:4}},[r("el-select",{staticStyle:{width:"100%"},attrs:{size:e.searchSize,filterable:"",clearable:"",placeholder:"盘点状态"},on:{change:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.parmValue.status,callback:function(t){e.$set(e.parmValue,"status",t)},expression:"parmValue.status"}},e._l(e.statusOptions,(function(e){return r("el-option",{key:"status"+e.id,attrs:{label:e.label,value:e.id}})})),1)],1),r("el-col",{staticStyle:{width:"130px",padding:"0 0 0 10px"},attrs:{span:4}},[r("el-select",{staticStyle:{width:"100%"},attrs:{size:e.searchSize,filterable:"",clearable:"",placeholder:"盘点类型"},on:{change:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.parmValue.type,callback:function(t){e.$set(e.parmValue,"type",t)},expression:"parmValue.type"}},e._l(e.typeOptions,(function(e){return r("el-option",{key:"type"+e.id,attrs:{label:e.label,value:e.id}})})),1)],1),r("el-col",{staticStyle:{width:"66px",float:"right"},attrs:{span:3}},[r("el-button",{staticStyle:{float:"right","margin-left":"5px"},attrs:{size:e.searchSize,type:"primary"},on:{click:e.searchList}},[e._v(" 刷新 ")])],1)],1)],1),r("el-row",{staticStyle:{padding:"10px 0 0 0"}},[r("el-col",{attrs:{span:24}},[r("el-col",{staticStyle:{width:"260px"},attrs:{span:4}},[r("el-input",{attrs:{size:e.searchSize,maxlength:40,placeholder:"仓库编号"},model:{value:e.parmValue.wsm_code,callback:function(t){e.$set(e.parmValue,"wsm_code",t)},expression:"parmValue.wsm_code"}})],1),r("el-col",{staticStyle:{width:"250px",padding:"0 0 0 10px"},attrs:{span:4}},[r("el-input",{attrs:{size:e.searchSize,maxlength:40,placeholder:"盘点编号"},model:{value:e.parmValue.check_code,callback:function(t){e.$set(e.parmValue,"check_code",t)},expression:"parmValue.check_code"}})],1),r("el-col",{staticStyle:{width:"54px"},attrs:{span:4}},[r("el-button",{staticClass:"fr",attrs:{size:e.searchSize,type:"primary",icon:"el-icon-search"},on:{click:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}}})],1),r("el-col",{staticStyle:{width:"66px"},attrs:{span:4}},[r("el-button",{staticClass:"fr",attrs:{type:"warning",size:e.searchSize},on:{click:e.restSearch}},[e._v(" 重置 ")])],1),e.powers.some((function(e){return"003"==e}))?r("el-col",{staticStyle:{width:"66px",float:"right"},attrs:{span:3}},[r("el-button",{staticStyle:{float:"right","margin-left":"5px"},attrs:{size:e.searchSize,type:"success"},on:{click:function(t){return e.openModal("add",!1,{})}}},[e._v(" 添加 ")])],1):e._e()],1)],1)],1)]}},{key:"status",fn:function(t){var a=t.scope;return[r("el-tag",{attrs:{size:e.tablebtnSize,type:"0"==a.row.status?"warning":""},domProps:{textContent:e._s((e.statusOptions.find((function(e){return e.id==a.row.status}))||{}).label||"--")}})]}},{key:"type",fn:function(t){var a=t.scope;return[r("el-tag",{attrs:{size:e.tablebtnSize,type:"1"==a.row.type?"success":""},domProps:{textContent:e._s((e.typeOptions.find((function(e){return e.id==a.row.type}))||{}).label||"--")}})]}},{key:"operation",fn:function(t){var a=t.scope;return[e.powers.some((function(e){return"007"==e}))?r("el-tooltip",{attrs:{effect:"dark",content:"详情",placement:"top"}},[r("i",{staticClass:"el-icon-view tb-icon",on:{click:function(t){return e.routeGoto("checkDetail",{id:a.row.id})}}})]):e._e()]}}],null,!1,3897524770)}),r("add-model",{attrs:{id:e.modelId,sitem:e.sitem,"show-model":e.showModel,"is-detail":e.isDetail},on:{refresh:e.searchList,cancel:function(t){e.showModel=!1}}})],1):r("div",[r("no-auth")],1)])}),[],!1,null,"e3a601f6",null);t.default=u.exports},e66a:function(e,t,r){"use strict";t.a=[{name:"管理员",code:"1"},{name:"非管理员",code:"2"}]},e6b4:function(e,t,r){"use strict";r.r(t);var a={name:"addModel",props:["showModel","id"],components:{addEdit:r("1e5d").default},data:function(){return{formId:"",loading:!1,showModelThis:this.showModel}},watch:{showModel:function(e){this.showModelThis=e},showModelThis:function(e){e||this.$emit("cancel")}},methods:{closeModel:function(){this.showModelThis=!1},refresh:function(e){this.showModelThis=e,this.$emit("refresh",!0)}}};r("1b6f"),r=r("2877"),r=Object(r.a)(a,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:"新建盘点",center:!0,align:"left",top:"18vh",width:"600px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)","append-to-body":""},on:{close:function(t){e.showModelThis=!1},"update:visible":function(t){e.showModelThis=t}}},[t("el-card",{staticStyle:{"margin-top":"-20px"}},[e.showModelThis?t("add-edit",{attrs:{id:e.id,sitem:{}},on:{closeModel:e.closeModel,refresh:e.refresh}}):e._e()],1)],1)}),[],!1,null,"2a848113",null);t.default=r.exports},e6c1:function(e,t,r){},e744:function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=r("5530"),s=(r("96cf"),r("7db0"),r("d3b7"),r("25f0"),r("e9c4"),r("159b"),r("b0c0"),r("a9e3"),r("1b69")),i={list:function(e,t){return Object(s.a)("admin/goodlist",e,"post",t)}},o=r("f5ed"),l=r("2f62"),c=r("9f53"),u=[{id:"0",name:"否"},{id:"1",name:"是"}],d=[{id:"1",name:"待完善成本"},{id:"2",name:"待产品审核"},{id:"3",name:"待财务定价"},{id:"4",name:"待财务审核定价"},{id:"5",name:"待上线"},{id:"6",name:"上线成功"},{id:"7",name:"审核失败"},{id:"8",name:"已下线"}],p=[{prop:"skuCode",label:"编号",fixed:"left",width:"160px"},{prop:"platform_name",label:"平台名称",width:"110px"},{prop:"good_thumb_img",label:"图片",_slot_:"good_thumb_img",width:"45px"},{prop:"good_name",label:"名称","min-width":"160px"},{prop:"cat_name",label:"分类",width:"140px"},{prop:"good_type",label:"定制",_slot_:"good_type",width:"50px"},{prop:"brand_name",label:"品牌"},{prop:"companyNo",label:"业务公司编号",width:"155px"},{prop:"company",label:"业务公司名称",width:"150px"},{prop:"plat_code",label:"平台商品编号",width:"100px"},{prop:"plat_code",label:"起订量",width:"70px"},{prop:"plat_code",label:"售价",width:"70px"},{prop:"purchase",label:"采购员",width:"70px"},{prop:"creater",label:"创建人",width:"70px"},{prop:"addtime",label:"创建时间",width:"140px"},{prop:"",label:"操作",fixed:"right",_noset_:!0,width:"50px",_slot_:"operation"}];r("ed0b"),o={name:"goodsRepertory",mixins:[o.a,c.a],computed:Object(n.a)(Object(n.a)({},Object(l.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"goodsRepertory"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),data:function(){return{row:{},visible:!1,options1:u,options8:d,loading:!1,parmValue:{good_name:"",spucode:"",cat_id:"",start:"",end:"",platform_code:"",is_stock:"",min_price:"",max_price:"",moq:0,page:1,size:15,supplierNo:"",good_type:"",brand_id:"",companyNo:"",exam_status:"6",plat_code:"",creater:""},tableData:[],table:{stripe:!0,border:!0,_defaultHeader_:["setcol"]},pageInfo:{size:15,curr:1,total:0},columns:p,cat_id:[],brandid:[],select:"1",sinput:""}},mounted:function(){this.cat_id=[],this.brandid=[],this.searchList()},methods:{openDilog:function(e){this.row=e,this.visible=!0},restSearch:function(){this.cat_id=[],this.brandid=[],this.pageInfo={size:15,curr:1,total:0},this.parmValue={good_name:"",spucode:"",cat_id:"",start:"",end:"",platform_code:"",is_stock:"",min_price:"",max_price:"",moq:0,page:1,size:15,supplierNo:"",good_type:"",brand_id:"",companyNo:"",exam_status:"6",plat_code:"",creater:""},this.searchList()},brandidsearchChange:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){var a;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a=e.id,e.code,e.label,t.brandid=a?[a]:[],t.parmValue.brand_id=t.brandid.toString(),t.pageInfo.curr=1,t.parmValue.page=1,r.next=7,t.searchList();case 7:case"end":return r.stop()}}),r)})))()},handleTime:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t.parmValue.start=e.startTime||"",t.parmValue.end=e.endTime||"",""!==t.parmValue.start&&""!==t.parmValue.end||""===t.parmValue.start&&""===t.parmValue.end)return t.pageInfo.curr=1,t.parmValue.page=1,r.next=7,t.searchList();r.next=7;break;case 7:case"end":return r.stop()}}),r)})))()},get_againonline:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t.$confirm("确定要重新发起上线流程?",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(a.a)(regeneratorRuntime.mark((function r(){var a,n;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return t.loading=!0,a={skuCode:e},r.next=4,i.againonline(a);case 4:if((n=r.sent)&&0===n.code)return t.loading=!1,t.$notify.success({title:"重新发起上线流程成功!",message:""}),r.next=10,t.searchList();r.next=12;break;case 10:r.next=19;break;case 12:if(n&&100<=n.code&&n.code<=104)return r.next=15,t.logout();r.next=17;break;case 15:r.next=19;break;case 17:t.loading=!1,t.$message.warning(n.message);case 19:case"end":return r.stop()}}),r)})))).catch((function(){}));case 2:case"end":return r.stop()}}),r)})))()},get_donline:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t.$confirm("确定要下线商品?",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(a.a)(regeneratorRuntime.mark((function r(){var a,n;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return t.loading=!0,a={skuCode:e,exam_status:"8"},r.next=4,i.status(a);case 4:if((n=r.sent)&&0===n.code)return t.loading=!1,t.$notify.success({title:"下线商品成功!",message:""}),r.next=10,t.searchList();r.next=12;break;case 10:r.next=19;break;case 12:if(n&&100<=n.code&&n.code<=104)return r.next=15,t.logout();r.next=17;break;case 15:r.next=19;break;case 17:t.loading=!1,t.$message.warning(n.message);case 19:case"end":return r.stop()}}),r)})))).catch((function(){}));case 2:case"end":return r.stop()}}),r)})))()},changeStatus:function(e,t){var r=this;return Object(a.a)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r.$confirm("确定要改为".concat("1"===t?"禁用":"启用","?"),{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(a.a)(regeneratorRuntime.mark((function a(){var n,s;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return r.loading=!0,n={id:e,status:"1"===t?"0":"1"},a.next=4,i.status(n);case 4:if((s=a.sent)&&0===s.code)return r.loading=!1,r.$notify.success({title:"状态修改成功!",message:""}),a.next=10,r.searchList();a.next=12;break;case 10:a.next=19;break;case 12:if(s&&100<=s.code&&s.code<=104)return a.next=15,r.logout();a.next=17;break;case 15:a.next=19;break;case 17:r.loading=!1,r.$message.warning(s.message);case 19:case"end":return a.stop()}}),a)})))).catch((function(){}));case 2:case"end":return n.stop()}}),n)})))()},deleteItem:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t.$confirm("确定要删除?",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(a.a)(regeneratorRuntime.mark((function r(){var a,n;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a={codes:[e]},r.next=3,i.delete(a);case 3:if(!(n=r.sent)||0!==n.code){r.next=9;break}t.$notify.success({title:"删除成功",message:""}),t.searchList(),r.next=15;break;case 9:if(n&&100<=n.code&&n.code<=104)return r.next=12,t.logout();r.next=14;break;case 12:r.next=15;break;case 14:t.$message.warning(n.message);case 15:case"end":return r.stop()}}),r)})))).catch((function(){}));case 2:case"end":return r.stop()}}),r)})))()},searchList:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r,a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(""!==e.parmValue.start&&""===e.parmValue.end||""===e.parmValue.start&&""!==e.parmValue.end)return e.$message.warning("时间区间不完整!"),t.abrupt("return");t.next=3;break;case 3:return e.loading=!0,(r=JSON.parse(JSON.stringify(e.parmValue))).good_name="1"===e.select?e.sinput:"",r.spucode="2"===e.select?e.sinput:"",r.companyNo="5"===e.select?e.sinput:"",r.plat_code="6"===e.select?e.sinput:"",r.creater="7"===e.select?e.sinput:"",t.next=12,i.list(r);case 12:if(!(a=t.sent)||0!==a.code||!a.data){t.next=19;break}e.tableData=a.data.list,e.tableData.forEach((function(e){e.cat_name="",(e.cat_info||[]).forEach((function(t,r){e.cat_name+=0==r?t.name:"/"+t.name}))})),e.pageInfo.total=Number(a.data.count),t.next=26;break;case 19:if(a&&100<=a.code&&a.code<=104)return t.next=22,e.logout();t.next=24;break;case 22:t.next=26;break;case 24:e.tableData=[],e.pageInfo.total=0;case 26:e.loading=!1;case 27:case"end":return t.stop()}}),t)})))()},goods_class_change:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return t.cat_id=e,t.parmValue.cat_id=0===t.cat_id.length?"":t.cat_id[t.cat_id.length-1],t.pageInfo.curr=1,t.parmValue.page=1,r.next=6,t.searchList();case 6:case"end":return r.stop()}}),r)})))()},numReturned:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return t.parmValue.min_price=e.lower,t.parmValue.max_price=e.online,r.next=4,t.goodsSearch();case 4:case"end":return r.stop()}}),r)})))()},goodsSearch:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r,a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e.parmValue,r={is_stock:r.is_stock,min_price:r.min_price,max_price:r.max_price,moq:r.moq,page:r.page,size:r.size},t.next=4,i.getgoodlistbyladder(r);case 4:if((a=t.sent)&&0===a.code)return e.loading=!1,t.next=9,e.searchList();t.next=11;break;case 9:t.next=18;break;case 11:if(a&&100<=a.code&&a.code<=104)return t.next=14,e.logout();t.next=16;break;case 14:t.next=18;break;case 16:e.loading=!1,e.$message.warning(a.message);case 18:case 19:case"end":return t.stop()}}),t)})))()}}},r("0a28"),c=r("2877"),n=Object(c.a)(o,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"goodsRepertory pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?r("ex-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{table:e.table,data:e.tableData,columns:e.columns,page:e.pageInfo,size:e.size},on:{"page-curr-change":e.handlePageChange,"page-size-change":e.handleSizeChange,"screen-reset":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()},"screen-submit":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},scopedSlots:e._u([{key:"table-header",fn:function(t){return[r("div",{staticStyle:{width:"100%"}},[r("el-row",{staticStyle:{padding:"0 0 10px 80px"}},[r("el-col",{staticStyle:{width:"120px"},attrs:{span:4}},[r("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"",clearable:"",size:e.searchSize,placeholder:"是否定制"},on:{change:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.parmValue.good_type,callback:function(t){e.$set(e.parmValue,"good_type",t)},expression:"parmValue.good_type"}},e._l(e.options1,(function(e){return r("el-option",{key:"good_type"+e.id,attrs:{label:e.name,value:e.id}})})),1)],1),r("el-col",{staticStyle:{width:"303px",padding:"0 0 0 10px"},attrs:{span:6}},[r("period-date-picker",{attrs:{type:1,width:"135px",size:e.searchSize,start:e.parmValue.start,end:e.parmValue.end},on:{timeReturned:e.handleTime}})],1),r("el-col",{staticStyle:{width:"140px",padding:"0 0 0 10px"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"",clearable:"",size:e.searchSize,placeholder:"是否库存品"},on:{change:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.parmValue.is_stock,callback:function(t){e.$set(e.parmValue,"is_stock",t)},expression:"parmValue.is_stock"}},e._l(e.options1,(function(e){return r("el-option",{key:"good_type"+e.id,attrs:{label:e.name,value:e.id}})})),1)],1),r("el-col",{staticStyle:{width:"250px",padding:"0 0 0 10px"},attrs:{span:6}},[r("good-class",{attrs:{value:e.parmValue.cat_id,disabled:!1,size:e.searchSize,isDetail:!1,placeholder:"分类"},on:{handleChange:e.goods_class_change}})],1),r("el-col",{staticClass:"fr",staticStyle:{width:"66px",padding:"0 0 0 10px"},attrs:{span:3}},[r("el-button",{attrs:{type:"primary",size:e.searchSize},on:{click:e.searchList}},[e._v(" 刷新 ")])],1),r("el-col",{staticClass:"fr",staticStyle:{width:"66px",padding:"0 0 0 10px"},attrs:{span:3}},[r("el-button",{attrs:{type:"warning",size:e.searchSize},on:{click:e.restSearch}},[e._v(" 重置 ")])],1)],1),r("el-row",[r("el-col",{staticStyle:{width:"200px"},attrs:{span:4}},[r("search-brand",{attrs:{value:e.brandid,disabled:"view"===e.type||"editCoin"===e.type,size:"mini",isDetail:"add"!==e.type,names:e.brand_name,placeholder:"商品品牌"},on:{searchChange:e.brandidsearchChange}})],1),r("el-col",{staticStyle:{width:"303px",padding:"0 0 0 10px"},attrs:{span:6}},[r("number-range",{attrs:{lower:e.parmValue.min_price,online:e.parmValue.max_price,title:"售价",width:"135px",size:e.searchSize},on:{numReturned:e.numReturned}})],1),r("el-col",{staticStyle:{width:"140px",padding:"0 0 0 10px"}},[r("el-input",{attrs:{placeholder:"最低起订量",type:"number"},model:{value:e.parmValue.moq,callback:function(t){e.$set(e.parmValue,"moq",t)},expression:"parmValue.moq"}})],1),r("el-col",{staticStyle:{width:"380px",padding:"0 0 0 10px"},attrs:{span:4}},[r("el-input",{attrs:{size:e.searchSize,maxlength:40,placeholder:"关键字"},on:{blur:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.sinput,callback:function(t){e.sinput=t},expression:"sinput"}},[r("el-select",{staticStyle:{width:"123px"},attrs:{slot:"prepend",size:e.searchSize,placeholder:"关键字类型"},on:{change:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},slot:"prepend",model:{value:e.select,callback:function(t){e.select=t},expression:"select"}},[r("el-option",{attrs:{label:"商品名称",value:"1"}}),r("el-option",{attrs:{label:"商品编号",value:"2"}}),r("el-option",{attrs:{label:"业务企业编号",value:"5"}}),r("el-option",{attrs:{label:"平台商品编号",value:"6"}}),r("el-option",{attrs:{label:"创建人",value:"7"}})],1)],1)],1)],1)],1)]}},{key:"good_thumb_img",fn:function(t){return t=t.scope,[t.row.good_thumb_img?r("div",{directives:[{name:"viewer",rawName:"v-viewer"}],staticClass:"hover",staticStyle:{width:"20px",height:"20px"}},[r("img",{staticStyle:{display:"inline-block",width:"100%",height:"100%"},attrs:{src:t.row.good_thumb_img,alt:""}})]):e._e()]}},{key:"status",fn:function(t){var a=t.scope;return[r("el-tag",{attrs:{size:e.tablebtnSize,type:"6"==a.row.status?"":"7"==a.row.status?"danger":"warning"},domProps:{textContent:e._s((e.options8.find((function(e){return e.id==a.row.status}))||{}).name||"--")}})]}},{key:"good_type",fn:function(t){var a=t.scope;return[r("el-tag",{attrs:{size:e.tablebtnSize,type:"0"==a.row.good_type?"warning":""},domProps:{textContent:e._s((e.options1.find((function(e){return e.id==a.row.good_type}))||{}).name||"--")}})]}},{key:"operation",fn:function(t){var a=t.scope;return[r("el-tooltip",{attrs:{effect:"dark",content:"详情",placement:"top"}},[r("i",{staticClass:"el-icon-view tb-icon",on:{click:function(t){return e.openDilog(a.row)}}})])]}}],null,!1,853078082)}):r("no-auth"),r("show-goods-data-table-modal",{attrs:{showModel:e.visible,type:e.row.type,title:e.row.title,skuCode:e.row.skuCode,spuCode:e.row.spuCode,iscgd:e.row.iscgd},on:{cancel:function(t){e.visible=!1}}})],1)}),[],!1,null,"44355bcc",null);t.default=n.exports},e7e1:function(e,t,r){"use strict";r.r(t);var a=r("2909"),n=r("1da1"),s=(r("96cf"),r("7db0"),r("d3b7"),r("c740"),r("a434"),r("e9c4"),r("74a5")),i={name:"Account",props:["newTime","sitem"],mixins:[r("9f53").a],computed:{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"zxDiffOrderDetail"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}},data:function(){return{loading:!1,status:"",options:[{value:"1",label:"咨询订单减工差"},{value:"2",label:"咨询订单不减工差"}],is_actOptions:[{value:"1",label:"接受工差"},{value:"2",label:"不接受工差-退回重做"}],ruleForm:{id:"",status:"",is_act:"1",customer_remark:"1",remark:""},rulesThis:this.rules,rules:{is_act:[{required:!0,message:"请选择客户是否接受工差!",trigger:"change"}],customer_remark:[{required:!0,message:"请选择客户意愿!",trigger:"change"}],remark:[{required:!0,message:"审核备注不能为空!",trigger:"blur"}]}}},watch:{newTime:function(e){e&&this.initForm()},showModelThis:function(e){e||this.$emit("cancel")}},mounted:function(){this.initForm()},methods:{supplierChange:function(e){var t=this;return Object(n.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:e&&e.id?t.ruleForm.supplierNo=[e.code]:t.ruleForm.supplierNo=[],t.$refs.ruleForm.validateField("supplierNo");case 2:case"end":return r.stop()}}),r)})))()},initForm:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,e.status="",e.rulesThis=e.rules,t.next=5,e.resetForm();case 5:e.loading=!1;case 6:case"end":return t.stop()}}),t)})))()},resetForm:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$nextTick((function(){var t,r,a,n,s;e.$refs.ruleForm&&(e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),t=(s=e.sitem).is_act,r=s.customer_remark,a=s.id,n=s.remark,s=s.status,e.status=s,e.ruleForm={id:a||"",status:"",is_act:"1"===t||"2"===t?t:"1",customer_remark:"1"===r||"2"===r?r:"1",remark:n||""})}));case 2:case"end":return t.stop()}}),t)})))()},addrRefresh:function(e){var t;e=e.list;(t=this.addrForm.addrlist).push.apply(t,Object(a.a)(e))},openHouseModal:function(e){-1!==this.addrForm.addrlist.findIndex((function(e){return!0===e.edit}))?this.$message.warning("当前已有地址在编辑,请保存后再试!"):-1===e?this.addrForm.addrlist.push({edit:!0,arrive_time:"",receipt_quantity:"",contactor:"",mobile:"",addr_code:[],addr:""}):this.addrForm.addrlist[e].edit=!0},select_area_change:function(e,t){this.addrForm.addrlist[t].addr_code=e},checkRow:function(e){var t=this;this.$refs.addrForm.validate((function(r){if(!r)return!1;t.addrForm.addrlist[e].edit=!1}))},deleteRow:function(e,t){t.splice(e,1)},submitForm:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.ruleForm.validate(function(){var t=Object(n.a)(regeneratorRuntime.mark((function t(r){var a,n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r)return e.loading=!0,(a=JSON.parse(JSON.stringify(e.ruleForm))).status="2",t.next=6,s.a.status(a);t.next=22;break;case 6:if(n=t.sent,e.loading=!1,!n||0!==n.code){t.next=14;break}e.$notify.success({title:"提交成功!",message:""}),e.showModelThis=!1,e.$emit("refresh"),t.next=20;break;case 14:if(n&&100<=n.code&&n.code<=104)return t.next=17,e.logout();t.next=19;break;case 17:t.next=20;break;case 19:e.$message.warning(n.message);case 20:t.next=24;break;case 22:return t.abrupt("return",!1);case 24:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()}}};r("ccbc"),r=r("2877"),r=Object(r.a)(i,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",size:"mini",rules:e.rulesThis,"label-width":"90px"}},[r("el-row",[r("el-col",{attrs:{span:7}},[r("el-form-item",{attrs:{label:"客户是否接受工差",prop:"is_act","label-width":"135px"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{size:"mini",disabled:!("1"===e.status&&e.powers.some((function(e){return"043"==e}))),placeholder:"客户是否接受工差"},model:{value:e.ruleForm.is_act,callback:function(t){e.$set(e.ruleForm,"is_act",t)},expression:"ruleForm.is_act"}},e._l(e.is_actOptions,(function(e){return r("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),r("el-form-item",{directives:[{name:"show",rawName:"v-show",value:"1"===e.ruleForm.is_act,expression:"ruleForm.is_act === '1'"}],attrs:{label:"客户意愿",prop:"customer_remark"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{size:"mini",disabled:!("1"===e.status&&e.powers.some((function(e){return"043"==e}))),placeholder:"客户意愿"},model:{value:e.ruleForm.customer_remark,callback:function(t){e.$set(e.ruleForm,"customer_remark",t)},expression:"ruleForm.customer_remark"}},e._l(e.options,(function(e){return r("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1)],1),r("el-col",{attrs:{span:17}},[r("el-form-item",{attrs:{label:"审核备注",prop:"remark"}},[r("el-input",{attrs:{type:"textarea",rows:2,size:"mini",disabled:!("1"===e.status&&e.powers.some((function(e){return"043"==e}))),placeholder:"业务审核备注",maxlength:"250","show-word-limit":""},model:{value:e.ruleForm.remark,callback:function(t){e.$set(e.ruleForm,"remark",t)},expression:"ruleForm.remark"}})],1),"1"===e.status&&e.powers.some((function(e){return"043"==e}))?r("div",{staticClass:"tr",staticStyle:{width:"100%",padding:"0 0 12px 0"}},[r("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.submitForm}},[e._v("保 存 ")])],1):e._e()],1)],1)],1)}),[],!1,null,"2015d91f",null);t.default=r.exports},e7e7:function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=(r("96cf"),r("7db0"),r("d3b7"),r("9f53")),s=r("61f7");n={name:"wsmInOrderAdd",props:["id","sitem","newTime"],mixins:[n.a],computed:{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"zxoutOrderDetail"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}},data:function(){return{loading:!0,ruleForm:{outCode:"",send_num:"",post_name:[],post_code:"",post_fee:"",sendtime:""},rules:{post_name:{type:"array",required:!0,trigger:"change",message:"请输入物流公司"},post_code:{required:!0,validator:function(e,t,r){""===t?r(new Error("不能为空!")):Object(s.b)(t)?r():r(new Error("仅支持字母和数字!"))},trigger:"blur"},post_fee:{required:!0,validator:function(e,t,r){""===t?r(new Error("不能为空!")):Object(s.k)(t)||Object(s.l)(t)?r():r(new Error("仅支持整数或两位小数!"))},trigger:"blur"}}}},watch:{newTime:function(e){e&&this.initForm()}},mounted:function(){this.initForm()},methods:{initForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,t.next=3,e.resetForm();case 3:e.loading=!1;case 4:case"end":return t.stop()}}),t)})))()},resetForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$nextTick((function(){var t,r,a,n,s;e.$refs.ruleForm&&(e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),t=(s=e.sitem).outCode,r=s.send_num,a=s.post_code,n=s.post_name,s=s.post_fee,e.ruleForm={outCode:t||"",send_num:r||"",post_name:n?[n]:[],post_code:a||"",post_fee:s||"",sendtime:""})}));case 2:case"end":return t.stop()}}),t)})))()},submitForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.ruleForm.validate(function(){var e=Object(a.a)(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t){e.next=3;break}e.next=5;break;case 3:return e.abrupt("return",!1);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()},handleCompany:function(e){e&&e.code&&(this.ruleForm.post_name=[e.shortName],this.ruleForm.page=1),this.$refs.ruleForm.validateField("post_name")}}},r("caf4"),r=r("2877"),r=Object(r.a)(n,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,rules:e.rules,"status-icon":"","label-width":"100px"}},[t("el-row",[t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"发货总数",prop:"send_num",required:""}},[t("el-input",{attrs:{disabled:"",placeholder:"物流单号",maxlength:"100"},model:{value:e.ruleForm.send_num,callback:function(t){e.$set(e.ruleForm,"send_num",t)},expression:"ruleForm.send_num"}})],1)],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"物流公司",prop:"post_name"}},[t("search-express",{attrs:{value:e.ruleForm.post_name,placeholder:"物流公司",names:"","is-detail":!1},on:{searchChange:e.handleCompany}})],1)],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"物流单号",prop:"post_code"}},[t("el-input",{attrs:{placeholder:"物流单号",maxlength:"100"},model:{value:e.ruleForm.post_code,callback:function(t){e.$set(e.ruleForm,"post_code",t)},expression:"ruleForm.post_code"}})],1)],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"物流费用",prop:"post_fee"}},[t("el-input",{attrs:{placeholder:"物流费用",maxlength:"100"},model:{value:e.ruleForm.post_fee,callback:function(t){e.$set(e.ruleForm,"post_fee",t)},expression:"ruleForm.post_fee"}},[t("template",{slot:"append"},[e._v("元")])],2)],1)],1),e.powers.some((function(e){return"045"==e}))?t("el-col",{staticStyle:{"text-align":"right"},attrs:{span:24}},[t("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.submitForm}},[e._v("保 存 ")])],1):e._e()],1)],1)}),[],!1,null,"1eb5f10e",null);t.default=r.exports},e7f4:function(e,t,r){"use strict";r.r(t);var a=r("2909"),n=r("1da1"),s=r("ade3"),i=(r("96cf"),r("e9c4"),r("d3b7"),r("159b"),r("c740"),r("b0c0"),r("99af"),r("a434"),r("25f0"),r("9f53")),o=r("11f6"),l=r("5f08"),c=r("61f7"),u=r("f8d8"),d=[{prop:"in_company",label:"业务企业"},{prop:"in_khname",label:"客户企业"},{prop:"in_platform_name",label:"所属平台",span:8},{prop:"in_arrival_time",label:"要求到货日期",span:6},{prop:"in_project_name",label:"项目名称",span:10}];i={name:"buyGoodModal",props:["showModel","sitem",""],mixins:[i.a],components:{searchStockGoodModal:l.a,inAddrModel:u.a},data:function(){var e={loading:!1,addrmodel:!1,showModelThis:this.showModel,showGoodsModel:!1,ShowDataTableColumns:d,planNo:"",arrtime:"",project_list:[],options:[{value:"1",label:"直接发货"},{value:"2",label:"延时发货"}],index:0,total:0,order_good:[],sendtype:"1",addrForm:{order_addr:[]},addrRules:{receipt_quantity:[{required:!0,validator:function(e,t,r){""===t?r(new Error("收货总数不能为空!")):Object(c.k)(t)?r():r(new Error("收货总数仅支持整数!"))},trigger:"blur"}],contactor:[{required:!0,trigger:"blur",message:"联系人不能为空"}],mobile:[{required:!0,validator:function(e,t,r){""===t?r(new Error("手机号不能为空!")):Object(c.g)(t)?r():r(new Error("手机号格式不正确!"))},trigger:"blur"}],addr_code:[{type:"array",required:!0,message:"收货省市区不能为空",trigger:"change"}],addr:[{required:!0,message:"详细地址不能为空",trigger:"blur"}]}};return Object(s.a)(e,"loading",!1),Object(s.a)(e,"id",""),e},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis:function(e){e||this.$emit("cancel")}},methods:{closeModel:function(){this.showModelThis=!1},initForm:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){var r,a,n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,e.project_list=[],a=e.sitem,n=a.planNo,r=a.in_arrival_time,a=a.feedback,e.planNo=n||"",e.arrtime=r||"",(n=JSON.parse(JSON.stringify(a)))&&0<n.length&&n.forEach((function(t){t.sendtype="1",t=JSON.parse(JSON.stringify(t)),e.project_list.push({order_good:[t],order_addr:[]})})),e.index=0,e.total=e.project_list.length,t.next=12,e.resetForm(e.index);case 12:e.getNewTime(),e.loading=!1;case 14:case"end":return t.stop()}}),t)})))()},addrRefresh:function(e){var t;e=e.list;(t=this.addrForm.order_addr).push.apply(t,Object(a.a)(e))},prev_goods:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.index--,t.next=3,e.resetForm(e.index);case 3:case"end":return t.stop()}}),t)})))()},next_goods:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){var r,a,n,s;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e.addrForm.order_addr,a=e.order_good[0].num,n=0,"1"===e.sendtype&&r&&0===r.length)return e.$message.warning("直接发货需要录入地址!"),t.abrupt("return");t.next=6;break;case 6:if(s=!1,r.forEach((function(e){n+=+e.receipt_quantity,e.edit&&(s=!0)})),s)return e.$message.warning("当前已有地址在编辑,请保存后再试!"),t.abrupt("return");t.next=11;break;case 11:if("1"===e.sendtype&&n!==parseInt(a+""))return e.$message.warning("收货数量总数与购买数量总数不一致!"),t.abrupt("return");t.next=14;break;case 14:if(e.project_list[e.index].order_good[0].sendtype=e.sendtype,e.project_list[e.index].order_addr=0===e.addrForm.order_addr.length?[]:JSON.parse(JSON.stringify(e.addrForm.order_addr)),e.index+1!==e.total){t.next=20;break}e.submitForm(),t.next=23;break;case 20:return e.index++,t.next=23,e.resetForm(e.index);case 23:case"end":return t.stop()}}),t)})))()},getNewTime:function(){this.newTime=(new Date).valueOf()},sendtype_change:function(e,t){this.order_good[t].sendtype=e,this.sendtype=this.order_good[t].sendtype},resetForm:function(e){var t=this;return Object(n.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t.$nextTick((function(){t.$refs.addrForm&&(t.$refs.addrForm.resetFields(),t.$refs.addrForm.clearValidate());var r=t.project_list[e].order_good;t.order_good=0<r.length?JSON.parse(JSON.stringify(r)):[],r=t.project_list[e].order_addr;t.addrForm.order_addr=0<r.length?JSON.parse(JSON.stringify(r)):[],t.sendtype=t.order_good[0].sendtype}));case 2:case"end":return r.stop()}}),r)})))()},openHouseModal:function(e){-1!==this.addrForm.order_addr.findIndex((function(e){return!0===e.edit}))?this.$message.warning("当前已有地址在编辑,请保存后再试!"):-1===e?this.addrForm.order_addr.push({edit:!0,receipt_quantity:"",contactor:"",mobile:"",addr_code:[],addr:""}):this.addrForm.order_addr[e].edit=!0},select_area_change:function(e,t){var r=this;return Object(n.a)(regeneratorRuntime.mark((function a(){var n,s,i,l,c,u;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(r.addrForm.order_addr[t].addr_code=e,(n=r.addrForm.order_addr[t].addr_code)&&3===n.length)return n=n[n.length-1],a.next=6,o.a.addrall({code:n});a.next=26;break;case 6:if(n=a.sent,s=n.code,u=n.data,i=n.message,0!==s){a.next=18;break}l=u.province,c=u.city,u=u.area,l=l&&l.name?l.name:"",c=c&&c.name?c.name:"",u=u&&u.name?u.name:"",r.addrForm.order_addr[t].addr_code_name=l&&c&&u?"".concat(l,"/").concat(c,"/").concat(u):"",a.next=24;break;case 18:if(100<=s&&s<=104)return a.next=21,r.logout();a.next=23;break;case 21:a.next=24;break;case 23:r.$message.warning(i);case 24:a.next=27;break;case 26:r.addrForm.order_addr[t].addr_code_name="";case 27:case"end":return a.stop()}}),a)})))()},checkRow:function(e){var t=this;this.$refs.addrForm.validate((function(r){if(!r)return!1;t.addrForm.order_addr[e].edit=!1}))},deleteRow:function(e,t){t.splice(e,1)},submitForm:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){var r,a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,r={planNo:e.planNo,arrtime:e.arrtime,planinfo:[]},e.project_list.forEach((function(e){var t=e.order_good,a=(e=e.order_addr,t=JSON.parse(JSON.stringify(t[0])),{feedback_id:t.id||"",sendtype:t.sendtype||"2",addrlist:[]});e.forEach((function(e){e={addr_code:e.addr_code.toString(),contactor:e.contactor,mobile:e.mobile,addr:e.addr,receipt_quantity:e.receipt_quantity},a.addrlist.push(e)})),r.planinfo.push(a)})),t.next=5,o.a.project_place_order(r);case 5:if(a=t.sent,e.loading=!1,!a||0!==a.code){t.next=13;break}e.$notify.success({title:"下单成功!",message:""}),e.showModelThis=!1,e.$emit("refresh"),t.next=19;break;case 13:if(a&&100<=a.code&&a.code<=104)return t.next=16,e.logout();t.next=18;break;case 16:t.next=19;break;case 18:e.$message.warning(a.message);case 19:case"end":return t.stop()}}),t)})))()}}},r("6938"),l=r("2877"),u=Object(l.a)(i,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:"项目下单",center:!0,align:"left",top:"5vh",width:"1040px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)","append-to-body":""},on:{close:function(t){e.showModelThis=!1},"update:visible":function(t){e.showModelThis=t}}},[r("el-card",{staticStyle:{"margin-top":"-20px"}},[r("el-row",[r("el-col",{attrs:{span:24}},[""!==e.newTime&&e.sitem?r("show-data-table",{staticStyle:{margin:"0",padding:"0"},attrs:{border:"",newTime:e.newTime,sitem:e.sitem,columns:e.ShowDataTableColumns}}):e._e()],1),r("el-col",{staticStyle:{padding:"10px 0 0 0"},attrs:{span:24}},[r("span",{staticStyle:{"line-height":"30px"}},[e._v("商品下单:")]),r("el-button-group",{staticClass:"fr",staticStyle:{margin:"0 0 8px 0"},attrs:{size:"mini"}},[0!==e.total?r("el-button",{staticClass:"fr",attrs:{type:"primary",size:"mini",disabled:0===e.index,icon:"el-icon-arrow-left"},on:{click:function(t){return e.prev_goods()}}}):e._e(),0!==e.total?r("el-button",{staticClass:"fr",staticStyle:{height:"29px"},attrs:{type:"primary",size:"mini"}},[e._v("商品共"+e._s(e.index+1)+"/"+e._s(e.total))]):e._e(),0!==e.total?r("el-button",{staticClass:"fr",attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.next_goods()}}},[r("i",{staticClass:"el-icon-arrow-right el-icon--right",attrs:{size:"mini"}})]):e._e()],1)],1),r("el-col",{attrs:{span:24}},[r("el-table",{staticStyle:{width:"100%"},attrs:{data:e.order_good,border:"",size:"mini","row-key":"key"}},[r("el-table-column",{attrs:{prop:"good_name",label:"图片",width:"50","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.good_img?r("div",{directives:[{name:"viewer",rawName:"v-viewer"}],staticClass:"hover",staticStyle:{width:"20px",height:"20px"}},[r("img",{staticStyle:{display:"inline-block",width:"100%",height:"100%"},attrs:{src:t.row.good_img,alt:""}})]):e._e()]}}])}),r("el-table-column",{attrs:{prop:"good_name",label:"商品名称","min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("span",[e._v(e._s(t.row.good_name))]),e._l(t.row.specinfo,(function(t,a){return r("span",{key:t.id+a},[e._v(" "+e._s(0===a?"_":"-")+e._s(t.spec_name)+"["+e._s(t.spec_value_name)+"] ")])}))]}}])}),r("el-table-column",{attrs:{prop:"brand_name",label:"品牌",width:"110","show-overflow-tooltip":""}}),r("el-table-column",{attrs:{prop:"sale_price",label:"单价",width:"110","show-overflow-tooltip":""}}),r("el-table-column",{attrs:{prop:"num",label:"数量",width:"100","show-overflow-tooltip":""}}),r("el-table-column",{attrs:{prop:"sendtype",label:"发货方式",width:"150","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"发货方式",size:"mini"},on:{change:function(r){return e.sendtype_change(r,t.$index)}},model:{value:t.row.sendtype,callback:function(r){e.$set(t.row,"sendtype",r)},expression:"scope.row.sendtype"}},e._l(e.options,(function(e){return r("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)]}}])})],1)],1),"1"===e.sendtype?r("el-col",{staticStyle:{padding:"15px 0 0 0"},attrs:{span:24}},[r("el-form",{ref:"addrForm",attrs:{model:e.addrForm,size:"mini"}},[r("el-table",{staticStyle:{width:"100%"},attrs:{data:e.addrForm.order_addr,border:"",size:"mini","max-height":"300px","row-key":"key"}},[r("el-table-column",{attrs:{type:"index",width:"80","show-overflow-tooltip":""}}),r("el-table-column",{attrs:{prop:"receipt_quantity",label:"收货总数","min-width":"125","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.edit?r("el-form-item",{style:{marginBottom:t.row.edit?"13px":"0"},attrs:{prop:"order_addr."+t.$index+".receipt_quantity",rules:e.addrRules.receipt_quantity,size:"mini"}},[r("el-input",{attrs:{disabled:!t.row.edit,maxlength:"10"},model:{value:t.row.receipt_quantity,callback:function(r){e.$set(t.row,"receipt_quantity",r)},expression:"scope.row.receipt_quantity"}})],1):e._e(),t.row.edit?e._e():r("span",[e._v(e._s(t.row.receipt_quantity))])]}}],null,!1,1944295793)}),r("el-table-column",{attrs:{prop:"contactor",label:"收件联系人","min-width":"110","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.edit?r("el-form-item",{style:{marginBottom:t.row.edit?"13px":"0"},attrs:{prop:"order_addr."+t.$index+".contactor",rules:e.addrRules.contactor,size:"mini"}},[r("el-input",{attrs:{disabled:!t.row.edit,maxlength:"20"},model:{value:t.row.contactor,callback:function(r){e.$set(t.row,"contactor",r)},expression:"scope.row.contactor"}})],1):e._e(),t.row.edit?e._e():r("span",[e._v(e._s(t.row.contactor))])]}}],null,!1,351615410)}),r("el-table-column",{attrs:{prop:"mobile",label:"收货联系电话","min-width":"130","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.edit?r("el-form-item",{style:{marginBottom:t.row.edit?"13px":"0"},attrs:{prop:"order_addr."+t.$index+".mobile",rules:e.addrRules.mobile,size:"mini"}},[r("el-input",{attrs:{disabled:!t.row.edit,maxlength:"11"},model:{value:t.row.mobile,callback:function(r){e.$set(t.row,"mobile",r)},expression:"scope.row.mobile"}})],1):e._e(),t.row.edit?e._e():r("span",[e._v(e._s(t.row.mobile))])]}}],null,!1,1210137360)}),r("el-table-column",{attrs:{prop:"addr_code",label:"收货省市区","min-width":"230","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.edit?r("el-form-item",{style:{marginBottom:t.row.edit?"13px":"0"},attrs:{prop:"order_addr."+t.$index+".addr_code",rules:e.addrRules.addr_code,size:"mini"}},[r("select-area",{attrs:{value:t.row.addr_code,disabled:!t.row.edit,size:"mini"},on:{selectChange:function(r){return e.select_area_change(r,t.$index)}}})],1):e._e(),t.row.edit?e._e():r("span",[e._v(e._s(t.row.addr_code_name))])]}}],null,!1,2753072003)}),r("el-table-column",{attrs:{prop:"addr",label:"详细地址","min-width":"170","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.edit?r("el-form-item",{style:{marginBottom:t.row.edit?"13px":"0"},attrs:{prop:"order_addr."+t.$index+".addr",rules:e.addrRules.addr,size:"mini"}},[r("el-input",{attrs:{disabled:!t.row.edit,maxlength:"100"},model:{value:t.row.addr,callback:function(r){e.$set(t.row,"addr",r)},expression:"scope.row.addr"}})],1):e._e(),t.row.edit?e._e():r("span",[e._v(e._s(t.row.addr))])]}}],null,!1,757755393)}),r("el-table-column",{attrs:{fixed:"right",width:"94","show-overflow-tooltip":""},scopedSlots:e._u([{key:"header",fn:function(t){return[r("el-tooltip",{staticClass:"fr",staticStyle:{margin:"3px 0 0 8px"},attrs:{effect:"dark",content:"手动添加地址",placement:"top"}},[r("i",{staticClass:"el-icon-circle-plus-outline tb-icon",staticStyle:{color:"#63cbe7"},on:{click:function(t){return e.openHouseModal(-1)}}})]),r("el-tooltip",{staticClass:"fr",staticStyle:{margin:"3px 0 0 8px"},attrs:{effect:"dark",content:"导入收货地址",placement:"top"}},[r("i",{staticClass:"el-icon-upload2 tb-icon",staticStyle:{color:"#63cbe7"},on:{click:function(t){e.addrmodel=!0}}})]),r("el-tooltip",{staticClass:"fr",staticStyle:{margin:"3px 0 0 0"},attrs:{effect:"dark",content:"下载收货地址模板",placement:"top"}},[r("a",{staticClass:"downloadAddr",attrs:{href:"./static/收货地址模板.xlsx"}},[r("i",{staticClass:"el-icon-download tb-icon",staticStyle:{color:"#63cbe7",margin:"0"}})])])]}},{key:"default",fn:function(t){return[t.row.edit?e._e():r("el-tooltip",{attrs:{effect:"dark",content:"编辑",placement:"top"}},[r("i",{staticClass:"el-icon-edit tb-icon",on:{click:function(r){return e.openHouseModal(t.$index)}}})]),t.row.edit?r("el-tooltip",{attrs:{effect:"dark",content:"保存",placement:"top"}},[r("i",{staticClass:"el-icon-circle-check tb-icon",on:{click:function(r){return e.checkRow(t.$index)}}})]):e._e(),r("el-tooltip",{attrs:{effect:"dark",content:"删除",placement:"top"}},[r("i",{staticClass:"el-icon-delete tb-icon",on:{click:function(r){return e.deleteRow(t.$index,e.addrForm.order_addr)}}})])]}}],null,!1,1481077816)})],1)],1)],1):e._e(),r("el-col",{attrs:{span:24}},[r("in-addr-model",{attrs:{"show-model":e.addrmodel},on:{cancel:function(t){e.addrmodel=!1},refresh:e.addrRefresh}})],1)],1)],1)],1)}),[],!1,null,"451fd002",null);t.default=u.exports},e84d:function(e,t,r){},e894:function(e,t,r){"use strict";r("44e6")},e94b:function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=r("5530"),s=(r("96cf"),r("7db0"),r("d3b7"),r("a434"),r("e9c4"),r("159b"),r("c740"),r("d57f")),i=r("9f53"),o=r("2f62"),l=r("2a08"),c=r("d029");i={name:"activeAdd",mixins:[i.a],props:["showModel","id","type","sitem","newTime"],components:{searchGoodOnlineModal:l.a,showGoodDataModal:c.a},watch:{newTime:function(e){e&&this.initForm()}},computed:Object(n.a)(Object(n.a)({},Object(o.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"activeDetail"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),data:function(){var e=this;return{size:"small",activeName:"3",status:"",options:[{value:"0",label:"待审核"},{value:"1",label:"通过"},{value:"2",label:"驳回"}],is_stock:[{id:"0",name:"非库存品"},{id:"1",name:"库存品"}],pickerOptions1:{disabledDate:function(t){if(null!=e.ruleForm.activity_end&&""!=e.ruleForm.activity_end&&t)return t.getTime()>new Date(e.ruleForm.activity_end).valueOf()}},pickerOptions2:{disabledDate:function(t){if(null!=e.ruleForm.activity_start&&""!=e.ruleForm.activity_start&&t)return t.getTime()<new Date(e.ruleForm.activity_start).valueOf()}},loading:!1,showModel:!1,once:!1,rulesThis:this.rules,showGoodModel:!1,showGoodId:"",ruleForm:{},tableData:[],rules:{activity_name:[{required:!0,message:"活动标题不能为空",trigger:"blur"}],company_id:[{required:!0,message:"业务公司不能为空",trigger:"change"}],platform_code:[{required:!0,message:"所属平台不能为空",trigger:"change"}],activity_start:[{required:!0,message:"开始时间不能为空",trigger:"change"}],activity_end:[{required:!0,message:"结束时间不能为空",trigger:"change"}],activity_desc:[{required:!0,message:"活动描述不能为空",trigger:"blur"}],is_stock:[{required:!0,message:"请选择是否库存品",trigger:"change"}],good_list:[{type:"array",required:!0,message:"至少选择一个商品!",trigger:"change,blur"}]}}},mounted:function(){this.initForm()},methods:{initForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,e.resetFormData(),e.rulesThis=e.rules,t.next=5,e.resetForm();case 5:e.loading=!1;case 6:case"end":return t.stop()}}),t)})))()},resetForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$nextTick(Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.$refs.ruleForm&&(e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),e.resetFormData());case 1:case"end":return t.stop()}}),t)}))));case 2:case"end":return t.stop()}}),t)})))()},showGoodModelFun:function(e){this.showGoodModel=!0,this.showGoodId=e},openCostEditDelete:function(e){this.ruleForm.good_list.splice(e,1),this.$refs.ruleForm.validateField("good_list")},company_idsearchChange:function(e){var t,r=this.ruleForm.company_id;e&&(e.id,t=e.code,e.label,this.ruleForm.company_id=t||""),this.$refs.ruleForm.validateField("company_id"),r!==this.ruleForm.company_id&&(this.ruleForm.good_list=[])},is_stock_change:function(e){var t=this.ruleForm.is_stock,r="0";t!==(r=this.ruleForm.good_list&&0<this.ruleForm.good_list.length?this.ruleForm.good_list[0].is_stock:r)&&(this.ruleForm.good_list=[])},platform_codesearchChange:function(e){var t=this.ruleForm.platform_code,r=e.id;e.code,e.label,this.ruleForm.platform_code=r||"",this.$refs.ruleForm.validateField("platform_code"),t!==this.ruleForm.platform_code&&(this.ruleForm.good_list=[])},resultList:function(e){var t=this,r=(this.showModel=!1,JSON.parse(JSON.stringify(e))),a=JSON.parse(JSON.stringify(this.ruleForm.good_list));r.forEach((function(e,n){-1===a.findIndex((function(t){return e.skucode===t.skucode}))&&((n=JSON.parse(JSON.stringify(r[n]))).activity_stock="1",n.newTime=(new Date).valueOf(),t.ruleForm.good_list.push(n))}))},resetFormData:function(){this.tableData=[];var e=this.sitem,t=e.activity_name,r=e.activity_desc,a=e.is_stock,n=e.end,s=e.start,i=e.platform_code,o=e.company_id,l=e.info;e=e.status;this.ruleForm={activity_name:t||"",platform_code:i||"",company_id:o||"",activity_start:s||"",activity_end:n||"",activity_desc:r||"",is_stock:a||"",good_list:l&&0<l.length?JSON.parse(JSON.stringify(l)):[]},this.status=e||"",this.tableData=l&&0<l.length?JSON.parse(JSON.stringify(l)):[]},handleClick:function(e){},openEdit:function(){var e=this.ruleForm,t=e.company_id,r=e.platform_code;e=e.is_stock;""===r?this.$message.warning("请选择平台!"):""===t?this.$message.warning("请选择业务企业!"):""===e?this.$message.warning("请选择库存类型!"):this.showModel=!0},submitForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.ruleForm.validate(function(){var t=Object(a.a)(regeneratorRuntime.mark((function t(r){var a,n,i,o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r){t.next=31;break}if(e.loading=!0,0===e.ruleForm.good_list.length)return e.$message.warning("请选择活动商品信息!"),e.loading=!1,t.abrupt("return");t.next=6;break;case 6:if(a=JSON.parse(JSON.stringify(e.ruleForm)),i=a.good_list,i=JSON.parse(JSON.stringify(i)),n=[],a.good_list=[],i.forEach((function(e){e={skuCode:e.skuCode,activity_stock:e.activity_stock},n.push(e)})),a.good_list=n,i={},"add"===e.type)return delete a.id,delete a.spuCode,t.next=20,s.a.add(a);t.next=23;break;case 20:i=t.sent,t.next=26;break;case 23:return t.next=25,s.a.update(a);case 25:i=t.sent;case 26:e.loading=!1,i&&0===i.code&&(o="add"===e.type?"新建成功!":"库存修改成功!",e.$notify.success({title:o,message:""}),e.showModelThis=!1,e.$emit("refresh",!0)),t.next=33;break;case 31:return t.abrupt("return",!1);case 33:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()}}},r("32c1"),l=r("2877"),c=Object(l.a)(i,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"activeAdd"},[r("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",rules:e.rulesThis,size:"mini","label-width":"90px"}},[r("el-row",[r("el-col",{attrs:{span:8}},[r("el-form-item",{attrs:{label:"业务企业",prop:"company_id"}},[r("search-work-company",{attrs:{value:e.ruleForm.company_id,disabled:""!==e.status,size:"mini",isDetail:!1,placeholder:"业务企业"},on:{searchChange:e.company_idsearchChange}})],1)],1),r("el-col",{attrs:{span:16}},[r("el-form-item",{attrs:{label:"活动标题",prop:"activity_name"}},[r("el-input",{attrs:{placeholder:"活动标题",disabled:""!==e.status,maxlength:"100"},model:{value:e.ruleForm.activity_name,callback:function(t){e.$set(e.ruleForm,"activity_name",t)},expression:"ruleForm.activity_name"}})],1)],1),r("el-col",{attrs:{span:8}},[r("el-form-item",{attrs:{label:"所属平台",prop:"platform_code"}},[r("search-terrace",{attrs:{value:e.ruleForm.platform_code,disabled:""!==e.status,size:"mini",isDetail:!1,placeholder:"所属平台"},on:{searchChange:e.platform_codesearchChange}})],1)],1),r("el-col",{attrs:{span:16}},[r("el-form-item",{staticStyle:{margin:"0"},attrs:{label:"活动时间",required:""}},[r("el-row",[r("el-col",{attrs:{span:11}},[r("el-form-item",{attrs:{prop:"datactivity_name"}},[r("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"datetime",placeholder:"开始时间",disabled:""!==e.status,"value-format":"yyyy-MM-dd HH:mm:ss","picker-options":e.pickerOptions1},model:{value:e.ruleForm.activity_start,callback:function(t){e.$set(e.ruleForm,"activity_start",t)},expression:"ruleForm.activity_start"}})],1)],1),r("el-col",{staticClass:"tc",attrs:{span:2}},[e._v("-")]),r("el-col",{attrs:{span:11}},[r("el-form-item",{attrs:{prop:"activity_end"}},[r("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"datetime","value-format":"yyyy-MM-dd HH:mm:ss",placeholder:"结束时间",disabled:""!==e.status,"picker-options":e.pickerOptions2},model:{value:e.ruleForm.activity_end,callback:function(t){e.$set(e.ruleForm,"activity_end",t)},expression:"ruleForm.activity_end"}})],1)],1)],1)],1)],1),r("el-col",{attrs:{span:8}},[r("el-form-item",{attrs:{label:"库存类型",prop:"is_stock"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{size:"mini",disabled:""!==e.status,placeholder:"库存类型"},on:{change:e.is_stock_change},model:{value:e.ruleForm.is_stock,callback:function(t){e.$set(e.ruleForm,"is_stock",t)},expression:"ruleForm.is_stock"}},e._l(e.is_stock,(function(e){return r("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),r("el-col",{attrs:{span:16}},[r("el-form-item",{attrs:{label:"活动描述",prop:"activity_desc"}},[r("el-input",{attrs:{placeholder:"活动描述",type:"textarea",rows:2,disabled:""!==e.status,"show-word-limit":"",maxlength:"500"},model:{value:e.ruleForm.activity_desc,callback:function(t){e.$set(e.ruleForm,"activity_desc",t)},expression:"ruleForm.activity_desc"}})],1)],1),""==e.status||"4"==e.status||"0"===e.status&&e.powers.some((function(e){return"056"!==e}))||"1"===e.status&&e.powers.some((function(e){return"057"!==e}))||"2"===e.status&&e.powers.some((function(e){return"058"!==e}))||"3"===e.status&&e.powers.some((function(e){return"059"!==e}))?r("el-col",{attrs:{span:24}},[r("el-form-item",{attrs:{label:"活动商品","label-position":"top",prop:"good_list"}},[r("el-table",{staticStyle:{width:"100%"},attrs:{data:e.ruleForm.good_list,stripe:"",border:"",size:"mini"}},[r("el-table-column",{attrs:{prop:"skuCode",label:"商品编码","show-overflow-tooltip":"",width:"170"}}),r("el-table-column",{attrs:{prop:"good_name",label:"商品名称","show-overflow-tooltip":""}}),r("el-table-column",{attrs:{prop:"activity_stock",label:"活动库存",width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-input-number",{directives:[{name:"show",rawName:"v-show",value:"view"!==e.type,expression:"type !== 'view'"}],staticStyle:{width:"100%"},attrs:{min:1,max:1e11,precision:0,label:"活动库存"},model:{value:t.row.activity_stock,callback:function(r){e.$set(t.row,"activity_stock",r)},expression:"scope.row.activity_stock"}}),r("span",{directives:[{name:"show",rawName:"v-show",value:"view"===e.type,expression:"type === 'view'"}]},[e._v(e._s(t.row.activity_stock))])]}}],null,!1,2714999662)}),""!==e.status&&"0"!==e.status?r("el-table-column",{attrs:{prop:"moq_num",label:"起订量",width:"100","show-overflow-tooltip":""}}):e._e(),""!==e.status&&"0"!==e.status?r("el-table-column",{attrs:{prop:"cost_price",label:"成本单价(元)",width:"100","show-overflow-tooltip":""}}):e._e(),""!==e.status&&"0"!==e.status?r("el-table-column",{attrs:{prop:"sale_price",label:"非活动价(元)",width:"100","show-overflow-tooltip":""}}):e._e(),""!==e.status&&"0"!==e.status?r("el-table-column",{attrs:{prop:"activity_price",label:"活动价(元)",width:"100","show-overflow-tooltip":""}}):e._e(),""!==e.status&&"0"!==e.status?r("el-table-column",{attrs:{prop:"status",label:"审核状态",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-tag",{attrs:{size:"mini",type:"0"==t.row.status?"warning":"2"==t.row.status?"danger":""},domProps:{textContent:e._s((e.options.find((function(e){return e.value==t.row.status}))||{}).label||"--")}})]}}],null,!1,3299576313)}):e._e(),""!==e.status&&"0"!==e.status?r("el-table-column",{attrs:{prop:"remark",label:"审核备注",width:"100","show-overflow-tooltip":""}}):e._e(),r("el-table-column",{attrs:{fixed:"right",width:"80"},scopedSlots:e._u([{key:"header",fn:function(t){return[r("span",[e._v("操作")]),""===e.status?r("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"添加活动商品",placement:"top"}},[r("i",{staticClass:"el-icon-circle-plus-outline fr",staticStyle:{"font-size":"18px","margin-top":"2px"},on:{click:function(t){return e.openEdit("add","0")}}})]):e._e()]}},{key:"default",fn:function(t){return[r("el-tooltip",{attrs:{effect:"dark",content:"查看商品信息",placement:"top"}},[r("i",{staticClass:"el-icon-view tb-icon",on:{click:function(r){return e.showGoodModelFun(t.row.skuCode)}}})]),""===e.status?r("el-tooltip",{attrs:{effect:"dark",content:"删除",placement:"top"}},[r("i",{staticClass:"el-icon-delete tb-icon",on:{click:function(r){return e.openCostEditDelete(t.$index)}}})]):e._e()]}}],null,!1,452201791)})],1)],1)],1):e._e()],1)],1),r("search-good-online-modal",{attrs:{once:e.once,sitem:e.ruleForm,active:!0,"show-model":e.showModel},on:{resultList:e.resultList,cancel:function(t){e.showModel=!1}}}),r("show-good-data-modal",{attrs:{"show-model":e.showGoodModel,skuCode:e.showGoodId,spuCode:""},on:{cancel:function(t){e.showGoodModel=!1}}}),""===e.status?r("el-col",{staticStyle:{"text-align":"right",padding:"15px 0 15px 0","border-top":"1px solid #dcdfe6"},attrs:{span:24}},[r("el-button",{attrs:{size:"mini",type:"primary"},on:{click:e.submitForm}},[e._v("保 存 ")])],1):e._e()],1)}),[],!1,null,"6d7eef5e",null);t.default=c.exports},ea33:function(e,t,r){"use strict";r("5f83")},ea68:function(e,t,r){},eb67:function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=(r("96cf"),r("7db0"),r("d3b7"),r("ddb0"),r("7caa")),s=r("ed08"),i=r("5f10"),o=r("9f53");i={name:"Parameter",components:{addEdit:i.default},mixins:[o.a],computed:{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"parameter"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}},data:function(){return{pickerOptions:{disabledDate:function(e){var t=(new Date).valueOf();t=864e5*parseInt(t/864e5);return e.getTime()<=t}},showModel:!1,loading:!1,modelId:0,tableData:[]}},mounted:function(){this.getInfor()},methods:{onSubmit:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){var a,i;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t.loading){r.next=20;break}return t.loading=!0,(a={fields_name:e.field_name,value:e.values,expiretime:e.expiretime,fields:e.fields}).expiretime=Object(s.c)(new Date(a.expiretime).valueOf()),r.next=6,n.a.update(a);case 6:if((i=r.sent)&&0===i.code)return t.$notify.success({title:i.message,message:""}),r.next=11,t.getInfor();r.next=13;break;case 11:r.next=19;break;case 13:if(i&&100<=i.code&&i.code<=104)return r.next=16,t.logout();r.next=18;break;case 16:r.next=19;break;case 18:t.$message.warning(i.message);case 19:t.loading=!1;case 20:case"end":return r.stop()}}),r)})))()},getInfor:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,t.next=3,n.a.list({});case 3:if(!(r=t.sent)||0!==r.code||!r.data){t.next=8;break}e.tableData=r.data,t.next=14;break;case 8:if(r&&100<=r.code&&r.code<=104)return t.next=11,e.logout();t.next=13;break;case 11:t.next=14;break;case 13:e.tableData=[];case 14:e.loading=!1;case 15:case"end":return t.stop()}}),t)})))()},openModal:function(e){this.showModel=!0,this.modelId=e}}},r("2ad8"),o=r("2877"),r=Object(o.a)(i,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"parameter pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?r("div",[r("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:e.tableData,stripe:"",border:"",size:e.size}},[r("el-table-column",{attrs:{prop:"field_name",label:"参数名称","show-overflow-tooltip":"",align:"center"}}),e.powers.some((function(e){return"008"==e}))?r("el-table-column",{attrs:{label:"字段值","show-overflow-tooltip":"",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-input",{attrs:{placeholder:"请输入",maxlength:"100"},model:{value:t.row.values,callback:function(r){e.$set(t.row,"values",r)},expression:"scope.row.values"}})]}}],null,!1,503130966)}):r("el-table-column",{attrs:{prop:"values",label:"字段值","show-overflow-tooltip":"",align:"center"}}),e.powers.some((function(e){return"008"==e}))?r("el-table-column",{attrs:{prop:"expiretime",label:"生效时间","show-overflow-tooltip":"",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-date-picker",{staticStyle:{width:"100%"},attrs:{"picker-options":e.pickerOptions,type:"datetime","value-format":"yyyy-MM-dd HH:mm:ss",placeholder:"选择日期时间","default-time":"00:00:00"},model:{value:t.row.expiretime,callback:function(r){e.$set(t.row,"expiretime",r)},expression:"scope.row.expiretime"}})]}}],null,!1,2313843170)}):r("el-table-column",{attrs:{prop:"expiretime",label:"生效时间","show-overflow-tooltip":"",align:"center"}}),r("el-table-column",{attrs:{fixed:"right",label:"操作",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e.powers.some((function(e){return"008"==e}))?r("el-link",{staticStyle:{margin:"0 4px"},attrs:{type:"primary",underline:!1,size:e.tablebtnSize},on:{click:function(r){return e.onSubmit(t.row)}}},[e._v(" 提交 ")]):e._e()]}}],null,!1,3380244527)})],1),r("add-edit",{attrs:{showModel:e.showModel,id:e.modelId},on:{cancel:function(t){e.showModel=!1}}})],1):r("div",[r("no-auth")],1)])}),[],!1,null,"e56fd1a4",null);t.default=r.exports},ebdd:function(e,t,r){"use strict";r("7a70")},ebea:function(e,t,r){"use strict";r.d(t,"a",(function(){return a})),r.d(t,"c",(function(){return n})),r.d(t,"b",(function(){return s}));var a=[{prop:"cgdNo",label:"采购单编号",width:"155px"},{prop:"spuCode",label:"商品编号",width:"158px"},{prop:"good_name",label:"商品名称",_slot_:"good_name","min-width":"145px"},{prop:"good_price",label:"单价",width:"110px"},{prop:"good_num",label:"数量",width:"110px"},{prop:"total_fee",label:"总货款",width:"110px"},{prop:"status",label:"状态",_slot_:"status",width:"120px"},{prop:"order_type",label:"采购单来源",_slot_:"order_type",width:"110px"},{prop:"supplierNo",label:"采购供应商编号",width:"145px"},{prop:"supplier_name",label:"采购供应商名称",width:"155px"},{prop:"cgder",label:"采购员",width:"60px"},{prop:"addtime",label:"创建时间",width:"145px"},{prop:"",label:"操作",fixed:"right",_noset_:!0,width:"50px",_slot_:"operation"}],n=[{value:"0",label:"待与供应商确认"},{value:"1",label:"待入库"},{value:"2",label:"部分入库"},{value:"3",label:"入库完成"},{value:"4",label:"已取消订单"}],s=[{value:"1",label:"备货单"},{value:"2",label:"线上非库存品"},{value:"3",label:"咨询采返"},{value:"4",label:"项目采返"}]},ec0d:function(e,t,r){"use strict";r("4862")},ec1b:function(e,t,r){function a(e){if(s[e])return s[e].exports;var t=s[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,a),t.l=!0,t.exports}var n,s;e.exports=(n=[function(e,t,r){r=r(4)(r(1),r(5),null,null),e.exports=r.exports},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=r(3);t.default={props:{startVal:{type:Number,required:!1,default:0},endVal:{type:Number,required:!1,default:2017},duration:{type:Number,required:!1,default:3e3},autoplay:{type:Boolean,required:!1,default:!0},decimals:{type:Number,required:!1,default:0,validator:function(e){return 0<=e}},decimal:{type:String,required:!1,default:"."},separator:{type:String,required:!1,default:","},prefix:{type:String,required:!1,default:""},suffix:{type:String,required:!1,default:""},useEasing:{type:Boolean,required:!1,default:!0},easingFn:{type:Function,default:function(e,t,r,a){return r*(1-Math.pow(2,-10*e/a))*1024/1023+t}}},data:function(){return{localStartVal:this.startVal,displayValue:this.formatNumber(this.startVal),printVal:null,paused:!1,localDuration:this.duration,startTime:null,timestamp:null,remaining:null,rAF:null}},computed:{countDown:function(){return this.startVal>this.endVal}},watch:{startVal:function(){this.autoplay&&this.start()},endVal:function(){this.autoplay&&this.start()}},mounted:function(){this.autoplay&&this.start(),this.$emit("mountedCallback")},methods:{start:function(){this.localStartVal=this.startVal,this.startTime=null,this.localDuration=this.duration,this.paused=!1,this.rAF=(0,a.requestAnimationFrame)(this.count)},pauseResume:function(){this.paused?(this.resume(),this.paused=!1):(this.pause(),this.paused=!0)},pause:function(){(0,a.cancelAnimationFrame)(this.rAF)},resume:function(){this.startTime=null,this.localDuration=+this.remaining,this.localStartVal=+this.printVal,(0,a.requestAnimationFrame)(this.count)},reset:function(){(this.startTime=null,a.cancelAnimationFrame)(this.rAF),this.displayValue=this.formatNumber(this.startVal)},count:function(e){this.startTime||(this.startTime=e),e=(this.timestamp=e)-this.startTime,this.remaining=this.localDuration-e,this.useEasing?this.countDown?this.printVal=this.localStartVal-this.easingFn(e,0,this.localStartVal-this.endVal,this.localDuration):this.printVal=this.easingFn(e,this.localStartVal,this.endVal-this.localStartVal,this.localDuration):this.countDown?this.printVal=this.localStartVal-(this.localStartVal-this.endVal)*(e/this.localDuration):this.printVal=this.localStartVal+(this.localStartVal-this.startVal)*(e/this.localDuration),this.countDown?this.printVal=this.printVal<this.endVal?this.endVal:this.printVal:this.printVal=this.printVal>this.endVal?this.endVal:this.printVal,this.displayValue=this.formatNumber(this.printVal),e<this.localDuration?this.rAF=(0,a.requestAnimationFrame)(this.count):this.$emit("callback")},isNumber:function(e){return!isNaN(parseFloat(e))},formatNumber:function(e){e=e.toFixed(this.decimals);e=(e+="").split(".");var t=e[0],r=(e=1<e.length?this.decimal+e[1]:"",/(\d+)(\d{3})/);if(this.separator&&!this.isNumber(this.separator))for(;r.test(t);)t=t.replace(r,"$1"+this.separator+"$2");return this.prefix+t+e+this.suffix}},destroyed:function(){(0,a.cancelAnimationFrame)(this.rAF)}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r=r(0),r=r&&r.__esModule?r:{default:r},t.default=r.default,"undefined"!=typeof window&&window.Vue&&window.Vue.component("count-to",r.default)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=0,n="webkit moz ms o".split(" "),s=void 0,i=void 0;if("undefined"==typeof window)t.requestAnimationFrame=s=function(){},t.cancelAnimationFrame=i=function(){};else{t.requestAnimationFrame=s=window.requestAnimationFrame,t.cancelAnimationFrame=i=window.cancelAnimationFrame;for(var o,l=0;l<n.length&&(!s||!i);l++)o=n[l],t.requestAnimationFrame=s=s||window[o+"RequestAnimationFrame"],t.cancelAnimationFrame=i=i||window[o+"CancelAnimationFrame"]||window[o+"CancelRequestAnimationFrame"];s&&i||(t.requestAnimationFrame=s=function(e){var t=(new Date).getTime(),r=Math.max(0,16-(t-a)),n=window.setTimeout((function(){e(t+r)}),r);return a=t+r,n},t.cancelAnimationFrame=i=function(e){window.clearTimeout(e)})}t.requestAnimationFrame=s,t.cancelAnimationFrame=i},function(e,t){e.exports=function(e,t,r,a){var n,s,i=e=e||{},o=typeof e.default;o="function"==typeof(i="object"!=o&&"function"!=o?i:(n=e).default)?i.options:i;return t&&(o.render=t.render,o.staticRenderFns=t.staticRenderFns),r&&(o._scopeId=r),a&&(s=Object.create(o.computed||null),Object.keys(a).forEach((function(e){var t=a[e];s[e]=function(){return t}})),o.computed=s),{esModule:n,exports:i,options:o}}},function(e,t){e.exports={render:function(){var e=this.$createElement;return(this._self._c||e)("span",[this._v("\n "+this._s(this.displayValue)+"\n")])},staticRenderFns:[]}}],s={},a.m=n,a.c=s,a.i=function(e){return e},a.d=function(e,t,r){a.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="/dist/",a(a.s=2))},ec42:function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=r("5530"),s=(r("96cf"),r("7db0"),r("d3b7"),r("a9e3"),r("f5ed")),i=r("9f53"),o=r("d1e0"),l=r("3732"),c=r("2f62");s={name:"bargainList",mixins:[s.a,i.a],computed:Object(n.a)(Object(n.a)({},Object(c.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"bargainList"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),data:function(){return{select:"1",s_input:"",customerCode:[],options:[{id:"1",label:"待业务主管审批"},{id:"2",label:"待财务专员审批"},{id:"3",label:"待财务主管审批"},{id:"4",label:"审批通过"},{id:"5",label:"业务主管驳回"},{id:"6",label:"财务主管驳回"},{id:"7",label:"已取消议价"}],sitem:null,loading:!0,showModel:!1,isDetail:!1,modelId:0,parmValue:{order_type:"2",returnCode:"",outCode:"",status:"",orderCode:"",good_code:"",except_code:"",apply_name:"",start:"",end:"",customer_code:"",good_name:"",page:1,size:15},tableData:[],table:{stripe:!0,border:!0,_defaultHeader_:["setcol"]},pageInfo:{size:15,curr:1,total:0},columns:l.b,resultValue:""}},mounted:function(){this.searchList()},methods:{restSearch:function(){this.customerCode=[],this.select="1",this.s_input="",this.parmValue={order_type:"2",returnCode:"",outCode:"",status:"",orderCode:"",good_code:"",except_code:"",apply_name:"",start:"",end:"",customer_code:"",good_name:"",page:1,size:15},this.pageInfo={size:15,curr:1,total:0},this.searchList()},openModal:function(e,t,r){this.showModel=!0,this.modelId=e,this.isDetail=t,this.sitem=r},deleteById:function(e,t){var r=this;return Object(a.a)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r.$confirm("确定要删除?",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(a.a)(regeneratorRuntime.mark((function a(){var n,s;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return n={id:e,status:"1"===t?"0":"1"},a.next=3,o.a.status(n);case 3:if(!(s=a.sent)||0!==s.code){a.next=9;break}r.$notify.success({title:"删除成功",message:""}),r.searchList(),a.next=15;break;case 9:if(s&&100<=s.code&&s.code<=104)return a.next=12,r.logout();a.next=14;break;case 12:a.next=15;break;case 14:r.$message.warning(s.message);case 15:case"end":return a.stop()}}),a)})))).catch((function(){}));case 2:case"end":return n.stop()}}),n)})))()},searchList:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(""!==e.parmValue.start&&""===e.parmValue.end||""===e.parmValue.start&&""!==e.parmValue.end)return e.$message.warning("时间区间不完整!"),t.abrupt("return");t.next=3;break;case 3:return e.loading=!0,e.parmValue.returnCode="1"===e.select?e.s_input:"",e.parmValue.orderCode="2"===e.select?e.s_input:"",e.parmValue.outCode="3"===e.select?e.s_input:"",e.parmValue.good_code="4"===e.select?e.s_input:"",e.parmValue.good_name="5"===e.select?e.s_input:"",e.parmValue.apply_name="6"===e.select?e.s_input:"",t.next=12,o.a.list(e.parmValue);case 12:if(!(r=t.sent)||0!==r.code||!r.data){t.next=18;break}e.tableData=r.data.list,e.pageInfo.total=Number(r.data.count),t.next=25;break;case 18:if(r&&100<=r.code&&r.code<=104)return t.next=21,e.logout();t.next=23;break;case 21:t.next=25;break;case 23:e.tableData=[],e.pageInfo.total=0;case 25:e.loading=!1;case 26:case"end":return t.stop()}}),t)})))()},statusConfirm:function(e,t){var r=this;return Object(a.a)(regeneratorRuntime.mark((function n(){var s;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return s="1"===t?"禁用":"启用",n.next=3,r.$confirm("确定要改为"+s+"?",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(a.a)(regeneratorRuntime.mark((function a(){var n,s;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return r.loading=!0,n={id:e,status:"1"===t?"0":"1"},a.next=4,o.a.status(n);case 4:if((s=a.sent)&&0===s.code)return r.loading=!1,r.$notify.success({title:"状态修改成功!",message:""}),a.next=10,r.searchList();a.next=12;break;case 10:a.next=18;break;case 12:if(s&&100<=s.code&&s.code<=104)return a.next=15,r.logout();a.next=17;break;case 15:a.next=18;break;case 17:r.$message.warning(s.message);case 18:case"end":return a.stop()}}),a)})))).catch((function(){}));case 3:case"end":return n.stop()}}),n)})))()},handleTime:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(""!==e.startTime?t.parmValue.start=e.startTime:t.parmValue.start="",""!==e.endTime?t.parmValue.end=e.endTime:t.parmValue.end="",""!==t.parmValue.start&&""!==t.parmValue.end)return t.pageInfo.curr=1,t.parmValue.page=1,r.next=7,t.searchList();r.next=7;break;case 7:case"end":return r.stop()}}),r)})))()},customerChange:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return e&&e.id?(t.customerCode=[e.code],t.parmValue.customer_code=e.code):(t.customerCode=[],t.parmValue.customer_code=""),t.pageInfo.curr=1,t.parmValue.page=1,r.next=5,t.searchList();case 5:case"end":return r.stop()}}),r)})))()}}},r("539c"),i=r("2877"),n=Object(i.a)(s,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"bargainList pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?r("div",[r("ex-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{table:e.table,data:e.tableData,columns:e.columns,page:e.pageInfo,size:e.size},on:{"page-curr-change":e.handlePageChange,"page-size-change":e.handleSizeChange,"screen-reset":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()},"screen-submit":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},scopedSlots:e._u([{key:"table-header",fn:function(t){return[r("div",{staticStyle:{width:"100%"}},[r("el-row",{staticStyle:{padding:"0 0 0 80px"}},[r("el-col",{staticStyle:{width:"130px"},attrs:{span:4}},[r("el-select",{attrs:{size:e.searchSize,clearable:"",placeholder:"状态"},on:{change:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.parmValue.status,callback:function(t){e.$set(e.parmValue,"status",t)},expression:"parmValue.status"}},e._l(e.options,(function(e){return r("el-option",{key:e.id,attrs:{label:e.label,value:e.id}})})),1)],1),r("el-col",{staticStyle:{width:"301px",padding:"0 0 0 10px"},attrs:{span:4}},[r("period-date-picker",{attrs:{start:e.parmValue.start,end:e.parmValue.end,width:"134px",size:e.searchSize},on:{timeReturned:e.handleTime}})],1),r("el-col",{staticStyle:{width:"420px",padding:"0 0 0 10px"},attrs:{span:4}},[r("el-input",{staticClass:"input-with-select",attrs:{clearable:"",size:e.searchSize,placeholder:"关键字",maxlength:"40"},on:{blur:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.s_input,callback:function(t){e.s_input=t},expression:"s_input"}},[r("el-select",{staticStyle:{width:"140px"},attrs:{slot:"prepend",placeholder:"关键字类型"},slot:"prepend",model:{value:e.select,callback:function(t){e.select=t},expression:"select"}},[r("el-option",{attrs:{label:"议价单编号",value:"1"}}),r("el-option",{attrs:{label:"反馈商品编号",value:"2"}}),r("el-option",{attrs:{label:"咨询单编号",value:"3"}})],1),r("el-button",{attrs:{slot:"append",icon:"el-icon-search"},on:{click:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},slot:"append"})],1)],1),r("el-col",{staticStyle:{width:"66px",float:"right"},attrs:{span:3}},[r("el-button",{staticStyle:{float:"right","margin-left":"5px"},attrs:{size:e.searchSize,type:"primary"},on:{click:e.searchList}},[e._v(" 刷新 ")])],1),r("el-col",{staticClass:"fr",staticStyle:{width:"66px"},attrs:{span:4}},[r("el-button",{staticClass:"fr",attrs:{type:"warning",size:e.searchSize},on:{click:e.restSearch}},[e._v(" 重置 ")])],1)],1)],1)]}},{key:"good_img",fn:function(t){return t=t.scope,[t.row.good_img?r("div",{directives:[{name:"viewer",rawName:"v-viewer"}],staticClass:"hover",staticStyle:{width:"20px",height:"20px"}},[r("img",{staticStyle:{display:"inline-block",width:"100%",height:"100%"},attrs:{src:t.row.good_img,alt:""}})]):e._e()]}},{key:"status",fn:function(t){var a=t.scope;return[r("el-tag",{attrs:{size:e.tablebtnSize,type:"0"==a.row.status?"warning":""},domProps:{textContent:e._s((e.options.find((function(e){return e.id==a.row.status}))||{}).label||"--")}})]}},{key:"good_name",fn:function(t){return t=t.scope,[r("span",[e._v(e._s(t.row.good_name))]),e._l(t.row.specinfo,(function(t,a){return r("span",{key:t.spec_value_id+a},[e._v(" "+e._s(0==a?"__":"--")+e._s(t.spec_name)+"["+e._s(t.spec_value_name)+"]")])}))]}},{key:"can",fn:function(t){return t=t.scope,e._l(t.row.can,(function(t,a){return r("span",{key:t.id+a},[0!==a?r("span",[e._v("_")]):e._e(),e._v(e._s(t.name))])}))}},{key:"operation",fn:function(t){var a=t.scope;return[e.powers.some((function(e){return"007"==e}))?r("el-tooltip",{attrs:{effect:"dark",content:"详情",placement:"top"}},[r("i",{staticClass:"el-icon-view tb-icon",on:{click:function(t){return e.routeGoto("bargainListDetail",{id:a.row.bargainNo,type:"view"})}}})]):e._e()]}}],null,!1,656625934)})],1):r("div",[r("no-auth")],1)])}),[],!1,null,"2c4beb48",null);t.default=n.exports},eca4:function(e,t,r){"use strict";r("944b")},ed0b:function(e,t,r){"use strict";var a={name:"showGoodsDataTableModal",props:["showModel","title","type","skuCode","spuCode","iscgd"],data:function(){return{newTime:"",loading:!0,showModelThis:this.showModel}},watch:{showModel:function(e){(this.showModelThis=e)&&(this.loading=!0,this.getNewTime())},showModelThis:function(e){e||this.$emit("cancel")}},methods:{getNewTime:function(){this.newTime=(new Date).valueOf()+"",this.loading=!1}}};r=r("2877"),r=Object(r.a)(a,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:e.title,center:!0,align:"left",top:"8vh",width:"1040px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)","append-to-body":""},on:{close:function(t){e.showModelThis=!1},"update:visible":function(t){e.showModelThis=t}}},[""!==e.newTime?t("show-goods-data-table",{staticStyle:{margin:"-20px 0 0 0"},attrs:{newTime:e.newTime,type:e.type,skucode:e.skuCode,spucode:e.spuCode,iscgd:e.iscgd,border:!0}}):e._e()],1)}),[],!1,null,null,null);t.a=r.exports},ed14:function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=(r("e9c4"),r("d3b7"),r("25f0"),r("96cf"),r("0ba2e")),s=r("9f53"),i=r("61f7");s={name:"wsmInOrderAdd",props:["id","sitem","newTime"],mixins:[s.a],data:function(){return{loading:!0,ruleForm:{outCode:"",send_num:"",post_name:[],post_code:"",post_fee:""},rules:{post_name:{type:"array",required:!0,trigger:"change",message:"请输入物流公司"},post_code:{required:!0,validator:function(e,t,r){""===t?r(new Error("不能为空!")):Object(i.b)(t)?r():r(new Error("仅支持字母和数字!"))},trigger:"blur"},post_fee:{required:!0,validator:function(e,t,r){e.required&&""===t?r(new Error("不能为空!")):r()},trigger:"blur"}}}},watch:{newTime:function(e){e&&this.initForm()}},mounted:function(){this.initForm()},methods:{initForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,t.next=3,e.resetForm();case 3:e.loading=!1;case 4:case"end":return t.stop()}}),t)})))()},resetForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$nextTick((function(){var t,r,a,n,s;e.$refs.ruleForm&&(e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),t=(s=e.sitem).outCode,r=s.send_num,a=s.post_code,n=s.post_name,s=s.post_fee,e.ruleForm={outCode:t||"",send_num:r||"",post_name:n?[n]:[],post_code:a||"",post_fee:s||""})}));case 2:case"end":return t.stop()}}),t)})))()},submitForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.ruleForm.validate(function(){var t=Object(a.a)(regeneratorRuntime.mark((function t(r){var a,s;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r)return e.loading=!0,(a=JSON.parse(JSON.stringify(e.ruleForm))).post_name=a.post_name.toString(),delete a.send_num,delete a.page,t.next=8,n.a.saleoutsend(a);t.next=23;break;case 8:if(s=t.sent,e.loading=!1,!s||0!==s.code){t.next=15;break}e.$notify.success({title:"添加成功",message:""}),e.$emit("refresh"),t.next=21;break;case 15:if(s&&100<=s.code&&s.code<=104)return t.next=18,e.logout();t.next=20;break;case 18:t.next=21;break;case 20:e.$message.warning(s.message);case 21:t.next=25;break;case 23:return t.abrupt("return",!1);case 25:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()},handleCompany:function(e){e.code,e.id,e=e.label,this.ruleForm.post_name=e?[e]:[],this.$refs.ruleForm.validateField("post_name")},number_change:function(e,t){this.ruleForm[t]=e+""||"0",this.$refs.ruleForm.validateField(t)}}},r("d9c6"),r=r("2877"),r=Object(r.a)(s,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,rules:e.rules,size:"mini","status-icon":"","label-width":"90px"}},[t("el-row",[t("el-col",{attrs:{span:8}},[t("el-form-item",{attrs:{label:"发货总数",prop:"send_num",required:""}},[t("el-input",{attrs:{disabled:"",placeholder:"发货总数",maxlength:"100"},model:{value:e.ruleForm.send_num,callback:function(t){e.$set(e.ruleForm,"send_num",t)},expression:"ruleForm.send_num"}})],1),t("el-form-item",{attrs:{label:"物流公司",prop:"post_name"}},[t("search-express",{attrs:{value:e.ruleForm.post_name,placeholder:"物流公司",names:"",size:"mini","is-detail":!1},on:{searchChange:e.handleCompany}})],1)],1),t("el-col",{attrs:{span:8}},[t("el-form-item",{attrs:{label:"物流费用",prop:"post_fee"}},[t("digital-input",{attrs:{values:e.ruleForm.post_fee,placeholder:"物流费用",min:0,disabled:"view"===e.type||"post_fee"===e.type,max:1e11,position:"right",precision:2,size:"mini",controls:!1,append:"元"},on:{reschange:function(t){return e.number_change(t,"post_fee")}}})],1),t("el-form-item",{attrs:{label:"物流单号",prop:"post_code"}},[t("el-input",{attrs:{placeholder:"物流单号",maxlength:"100"},model:{value:e.ruleForm.post_code,callback:function(t){e.$set(e.ruleForm,"post_code",t)},expression:"ruleForm.post_code"}})],1)],1),t("el-col",{staticStyle:{"text-align":"right"},attrs:{span:8}},[t("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.submitForm}},[e._v("保 存 ")])],1)],1)],1)}),[],!1,null,"7dffaeb4",null);t.default=r.exports},ed8b:function(e,t,r){},ede0:function(e,t,r){"use strict";r("e36f")},eded:function(e,t,r){},ee22:function(e,t,r){"use strict";r("21d9")},ee5c:function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=r("5530"),s=(r("96cf"),r("7db0"),r("d3b7"),r("fb6a"),r("b0c0"),r("99af"),r("e9c4"),r("d81d"),r("f5ed")),i=r("2623"),o=r("9cd7"),l=r("0ee5"),c=r("2f62"),u=r("9f53");o={name:"organize",components:{addEdit:o.default},mixins:[s.a,u.a],computed:Object(n.a)(Object(n.a)({},Object(c.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"organize"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),data:function(){return{titleList:[],sitem:null,statusList:l.a,loading:!0,showModel:!1,showInterface:!1,isDetail:!1,isAdd:!0,level:1,modelId:0,formData:{},parentIds:"",parmValue:{pid:"",name:"",nickname:""},depart:[],item:[],passwordModel:!1,passwordModelId:0}},mounted:function(){this.searchList()},methods:{restSearch:function(){this.parmValue={pid:"",name:"",nickname:""},this.searchList()},changeBreadcrumb:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e+1===t.titleList.length)return r.abrupt("return");r.next=4;break;case 4:t.parmValue.pid=t.titleList[e].id,t.titleList=t.titleList.slice(0,e+1);case 6:return 1===t.titleList.length&&(t.titleList=[]),r.next=9,t.searchList();case 9:case"end":return r.stop()}}),r)})))()},openChildren:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){var a;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return t.parmValue.pid=e.id,a={id:e.id,titleName:e.name},0===t.titleList.length&&t.titleList.push({id:"",titleName:"全部分类"}),t.titleList.push(a),r.next=6,t.searchList();case 6:case"end":return r.stop()}}),r)})))()},openModal:function(e,t,r){this.showModel=!0,this.modelId=e,this.isDetail=t,this.sitem=r},openPasswordModal:function(e,t){this.passwordModel=!0,this.passwordModelId=e,this.isPasswordDetail=t},setUpEdit:function(e,t){var r=this;return Object(a.a)(regeneratorRuntime.mark((function a(){var n,s;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if("1"===t)return n={id:e,position:"2"},a.next=4,i.a.userp(n);a.next=19;break;case 4:if((s=a.sent)&&0===s.code)return r.$notify.success({title:"设置成功!",message:""}),a.next=9,r.searchList();a.next=11;break;case 9:a.next=17;break;case 11:if(s&&100<=s.code&&s.code<=104)return a.next=14,r.logout();a.next=16;break;case 14:a.next=17;break;case 16:r.$message.warning(s.message);case 17:a.next=20;break;case 19:r.$message.warning("该账户已是部门负责人!");case 20:case"end":return a.stop()}}),a)})))()},addEditFn:function(e,t,r,a,n,s){this.showModel=!0,this.modelId=e,this.level=r,this.parentIds=t,this.isDetail=a,this.isAdd=n,this.formData=s},setstatus:function(e,t,r,n){var s=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=3,s.$confirm("确定要".concat("0"===n?"启用":"禁用","?"),{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(a.a)(regeneratorRuntime.mark((function t(){var r,a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r={id:e,status:"1"===n?"0":"1"},t.next=3,i.a.status(r);case 3:if((a=t.sent)&&0===a.code)return s.$notify.success({title:"修改成功!",message:""}),t.next=8,s.searchList();t.next=10;break;case 8:t.next=16;break;case 10:if(a&&100<=a.code&&a.code<=104)return t.next=13,s.logout();t.next=15;break;case 13:t.next=16;break;case 15:s.$message.warning(a.message);case 16:case"end":return t.stop()}}),t)})))).catch((function(){}));case 3:case"end":return t.stop()}}),t)})))()},del:function(e,t,r,n){var s=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=3,s.$confirm("确定要删除?",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(a.a)(regeneratorRuntime.mark((function t(){var r,a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r={id:e},t.next=3,i.a.delete(r);case 3:if((a=t.sent)&&0===a.code)return s.$notify.success({title:"删除成功!",message:""}),t.next=8,s.searchList();t.next=10;break;case 8:t.next=13;break;case 10:if(a&&100<=a.code&&a.code<=104)return t.next=13,s.logout();t.next=13;break;case 13:case"end":return t.stop()}}),t)})))).catch((function(){}));case 3:case"end":return t.stop()}}),t)})))()},concatData:function(e,t,r){var n=this;return Object(a.a)(regeneratorRuntime.mark((function a(){var s,o,l;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return n.loading=!0,a.next=3,i.a.list({});case 3:if(s=a.sent,o=[],!s||0!==s.code||!s.data){a.next=9;break}o=s.data,a.next=15;break;case 9:if(s&&100<=s.code&&s.code<=104)return a.next=12,n.logout();a.next=14;break;case 12:a.next=15;break;case 14:n.$message.warning(s.message);case 15:l=(l=JSON.parse(JSON.stringify(n.depart))).map((function(a,n){return(1===r?e:t===a.id)&&(a.child=o[n].child),a})),n.depart=l,n.loading=!1;case 19:case"end":return a.stop()}}),a)})))()},deleteById:function(e,t){var r=this;return Object(a.a)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r.$confirm("确定要删除?",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(a.a)(regeneratorRuntime.mark((function a(){var n,s;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return n={id:e,status:"1"===t?"0":"1"},a.next=3,i.a.status(n);case 3:if(!(s=a.sent)||0!==s.code){a.next=9;break}r.$notify.success({title:"删除成功",message:""}),r.searchList(),a.next=15;break;case 9:if(s&&100<=s.code&&s.code<=104)return a.next=12,r.logout();a.next=14;break;case 12:a.next=15;break;case 14:r.$message.warning(s.message);case 15:case"end":return a.stop()}}),a)})))).catch((function(){}));case 2:case"end":return n.stop()}}),n)})))()},searchList:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r,a,n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,t.next=3,i.a.list(e.parmValue);case 3:if(!(r=t.sent)||0!==r.code||!r.data){t.next=10;break}n=r.data,a=n.depart,n=n.item,e.depart=a,e.item=n,t.next=17;break;case 10:if(r&&100<=r.code&&r.code<=104)return t.next=13,e.logout();t.next=15;break;case 13:t.next=17;break;case 15:e.depart=[],e.item=[];case 17:e.loading=!1;case 18:case"end":return t.stop()}}),t)})))()},statusConfirm:function(e,t){var r=this;return Object(a.a)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r.$confirm("确定要改为".concat("1"===t?"禁用":"启用","?"),{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(a.a)(regeneratorRuntime.mark((function a(){var n,s;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return r.loading=!0,n={id:e,status:"1"===t?"0":"1"},a.next=4,i.a.status(n);case 4:if((s=a.sent)&&0===s.code)return r.loading=!1,r.$notify.success({title:"状态修改成功!",message:""}),a.next=10,r.searchList();a.next=12;break;case 10:a.next=18;break;case 12:if(s&&100<=s.code&&s.code<=104)return a.next=15,r.logout();a.next=17;break;case 15:a.next=18;break;case 17:r.$message.warning(s.message);case 18:case"end":return a.stop()}}),a)})))).catch((function(){}));case 2:case"end":return n.stop()}}),n)})))()}}},r("9130"),s=r("2877"),u=Object(s.a)(o,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"organize pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?r("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[r("el-row",[r("el-col",{attrs:{span:24}},[r("el-col",{staticStyle:{padding:"12px 0 15px 0"},attrs:{span:24}},[r("div",{staticClass:"my-breadcrumb clear"},e._l(e.titleList,(function(t,a){return r("div",{key:t+a,staticClass:"my-breadcrumb-item",class:{chover:!0},on:{click:function(t){return e.changeBreadcrumb(a)}}},[r("span",{staticClass:"label"},[e._v(e._s(t.titleName))]),a+1!==e.titleList.length?r("span",{staticClass:"separator"},[e._v("/")]):e._e()])})),0)]),r("el-col",{attrs:{span:24}},[r("el-row",{staticStyle:{padding:"0 0 3px 0"}},[r("el-col",{staticStyle:{width:"200px"},attrs:{span:8}},[r("el-input",{attrs:{placeholder:"部门名称",size:e.searchSize,maxlength:"50"},model:{value:e.parmValue.name,callback:function(t){e.$set(e.parmValue,"name",t)},expression:"parmValue.name"}})],1),r("el-col",{staticStyle:{width:"250px",padding:"0 0 0 10px"},attrs:{span:8}},[r("el-input",{attrs:{placeholder:"员工姓名",size:e.searchSize,maxlength:"50"},model:{value:e.parmValue.nickname,callback:function(t){e.$set(e.parmValue,"nickname",t)},expression:"parmValue.nickname"}},[r("el-button",{attrs:{slot:"append",icon:"el-icon-search"},on:{click:e.searchList},slot:"append"})],1)],1),r("el-col",{staticStyle:{width:"195px",float:"right"},attrs:{span:3}},[r("el-button",{staticStyle:{float:"right","margin-left":"5px"},attrs:{type:"primary",size:e.searchSize},on:{click:e.searchList}},[e._v(" 刷新 ")]),e.powers.some((function(e){return"003"==e}))?r("el-button",{staticStyle:{float:"right"},attrs:{type:"success",size:e.searchSize},on:{click:function(t){return e.addEditFn(0,e.parmValue&&""!==e.parmValue.pid?e.parmValue.pid:"0",1,!1,!0,{})}}},[e._v(" 添加 ")]):e._e()],1)],1)],1)],1)],1),r("el-row",{attrs:{gutter:10}},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?r("el-col",{attrs:{span:24}},[r("organize-tree",{staticStyle:{"margin-left":"-5px"},attrs:{list:e.depart,level:1,pid:0},on:{addEdit:e.addEditFn,openChildren:e.openChildren,status:e.setstatus,del:e.del}}),r("staff-tree",{staticStyle:{"margin-left":"-5px"},attrs:{list:e.item,level:1,pid:0},on:{setUpEdit:e.setUpEdit}})],1):e._e(),e.item&&0===e.item.length&&e.depart&&0===e.depart.length?r("div",{staticClass:"no-data"},[e._v(" 暂无数据 ")]):e._e()],1),r("add-edit",{attrs:{id:e.modelId,"show-model":e.showModel,level:e.level,pid:e.parentIds,"is-add":e.isAdd,"form-data":e.formData,type:e.parmValue.type,"is-detail":e.isDetail},on:{refresh:e.searchList,cancel:function(t){e.showModel=!1}}})],1):r("div",[r("no-auth")],1)])}),[],!1,null,"21dd8142",null);t.default=u.exports},ef3c:function(e,t,r){"use strict";r.r(t),r("ac1f"),r("5319");var a={created:function(){var e=this.$route,t=e.params;e=e.query,t=t.path;this.$router.replace({path:"/welcome/dashboard"+t,query:e})},render:function(e){return e()}};r=r("2877"),r=Object(r.a)(a,void 0,void 0,!1,null,null,null);t.default=r.exports},ef8b:function(e,t,r){"use strict";r("f9d4")},efa6:function(e,t,r){},efc5:function(e,t,r){"use strict";r("6ac1")},f0fe:function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=r("ade3"),s=r("5530"),i=(r("96cf"),r("d3b7"),r("159b"),r("e9c4"),r("d81d"),r("99af"),r("b0c0"),r("a9e3"),r("11f6")),o=r("9f53"),l=r("f5ed"),c=r("2f62"),u=[{type:"selection",fixed:"left",_noset_:!0},{prop:"skuCode",label:"商品编码",width:"160"},{prop:"good_name",label:"商品名称","min-width":"120"},{prop:" cat_name",label:"商品分类","min-width":"120"},{prop:"stock_total",label:"可用库存",width:"90px"},{prop:"unit",label:"单位",width:"45"},{prop:"brand_name",label:"品牌",width:"145"},{prop:"sale_price",label:"售价",width:"110"}];o={name:"searchGoodOnlineTableModal",mixins:[o.a,l.a],computed:Object(s.a)({},Object(c.b)(["tablebtnSize","searchSize","size"])),props:["showModel","sitem"],data:function(){var e={options:[{id:"0",name:"非库存品"},{id:"1",name:"库存品"}],company:"",platform_name:"",selectLoading:!1,searchName:"",loading:!0,showModelThis:!1,parmValue:{buy_num:"",price:"",cat_id:[],companyNo:"",platform_code:"",page:1,size:15},tableData:[],passwordModel:!1,passwordModelId:0,isPasswordDetail:!1};return Object(n.a)(e,"tableData",[]),Object(n.a)(e,"table",{stripe:!0,border:!0}),Object(n.a)(e,"pageInfo",{size:15,curr:1,total:0}),Object(n.a)(e,"columns",u),e},watch:{showModel:function(e){(this.showModelThis=e)&&this.restSearch()},showModelThis:function(e){e||this.$emit("cancel")}},methods:{restSearch:function(){var e=this.sitem,t=e.platform_id,r=e.companyNo,a=e.num,n=(e.cat_id,e.budget_price),s=e.company,i=e.platform_name,o=(e=e.cat_info,this.company=s,this.platform_name=i,[]);e&&0<e.length&&e.forEach((function(e){o.push(e.id)})),this.parmValue={buy_num:a,price:n,cat_id:o,companyNo:r,platform_code:t,page:1,size:15},this.pageInfo={size:15,curr:1,total:0},this.searchList()},searchList:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r,a,n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,r=JSON.parse(JSON.stringify(e.parmValue)),a=r.cat_id,r.cat_id=a&&0<a.length?a[a.length-1]:"",t.next=6,i.a.get_good_online_list(r);case 6:if(!(n=t.sent)||0!==n.code||!n.data){t.next=13;break}e.tableData=n.data.list,e.tableData.map((function(t){return t.cat_name="",t.cat_info&&0<t.cat_info.length?t.cat_info.forEach((function(e,r){t.cat_name+="".concat(0!==r?"_":"").concat(e.name)})):e.setNum(t.sale_price),t})),e.pageInfo.total=Number(n.data.count),t.next=20;break;case 13:if(n&&100<=n.code&&n.code<=104)return t.next=16,e.logout();t.next=18;break;case 16:t.next=20;break;case 18:e.tableData=[],e.pageInfo.total=0;case 20:e.loading=!1;case 21:case"end":return t.stop()}}),t)})))()},goods_class_change:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return t.parmValue.cat_id=e,t.pageInfo.curr=1,t.parmValue.page=1,r.next=5,t.searchList();case 5:case"end":return r.stop()}}),r)})))()},remoteMethod:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){var a,n;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t.selectLoading=!0,""!==e)return t.options=[],n={page:1,size:100,name:e,code:""},r.next=6,i.a.supplierList(n);r.next=20;break;case 6:if(!(a=r.sent)||0!==a.code||!a.data){r.next=12;break}n=a.data.list,t.options=n,r.next=18;break;case 12:if(a&&100<=a.code&&a.code<=104)return r.next=15,t.logout();r.next=17;break;case 15:r.next=18;break;case 17:t.$message.warning(a.message);case 18:r.next=21;break;case 20:t.options=[];case 21:t.selectLoading=!1;case 22:case"end":return r.stop()}}),r)})))()},resultList:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){var a,n,s;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e&&1<e.length&&t.once)return t.$message.warning("只能选择一条商品信息!"),r.abrupt("return");r.next=3;break;case 3:return t.loading=!0,a={pgNo:t.sitem.pgNo,spuCode:[],source:"1"},e.forEach((function(e){a.spuCode.push(e.skuCode)})),r.next=8,i.a.project_online_good_add(a);case 8:if(s=r.sent,n=s.code,s.data,s=s.message,t.loading=!1,0!==n){r.next=19;break}t.$notify.success({title:"添加成功!",message:""}),t.showModelThis=!1,t.$emit("submitRes",t.sitem.pgNo_index),r.next=25;break;case 19:if(100<=n&&n<=104)return r.next=22,t.logout();r.next=24;break;case 22:r.next=25;break;case 24:t.$message.warning(s);case 25:case"end":return r.stop()}}),r)})))()}}},l=r("2877"),s=Object(l.a)(o,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:"选择已上线的商品",center:!0,align:"left",top:"8vh",width:"1040px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)","append-to-body":""},on:{close:function(t){e.showModelThis=!1},"update:visible":function(t){e.showModelThis=t}}},[r("el-card",{staticClass:"modal-form-style",staticStyle:{"margin-top":"-20px"}},[r("ex-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{table:e.table,data:e.tableData,columns:e.columns,page:e.pageInfo,size:"mini"},on:{"page-curr-change":e.handlePageChange,"page-size-change":e.handleSizeChange,"screen-reset":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()},"screen-submit":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},scopedSlots:e._u([{key:"table-header",fn:function(t){var a=t.selection;return[r("div",{staticStyle:{width:"100%"}},[r("el-row",{staticStyle:{"margin-top":"-15px"}},[r("el-col",{attrs:{span:24}},[r("el-col",{staticStyle:{width:"220px"},attrs:{span:4}},[r("el-input",{attrs:{size:"mini",maxlength:40,disabled:"",placeholder:"起订量"},model:{value:e.parmValue.buy_num,callback:function(t){e.$set(e.parmValue,"buy_num",t)},expression:"parmValue.buy_num"}},[r("template",{slot:"prepend"},[e._v("起订量:")])],2)],1),r("el-col",{staticStyle:{width:"460px",padding:"0 0 0 10px"},attrs:{span:4}},[r("el-input",{attrs:{size:"mini",maxlength:40,clearable:"",disabled:"",placeholder:"业务公司"},model:{value:e.company,callback:function(t){e.company=t},expression:"company"}})],1),r("el-col",{staticClass:"fr",staticStyle:{width:"66px"},attrs:{span:3}},[r("el-button",{staticStyle:{float:"right","margin-left":"5px"},attrs:{size:"mini",type:"primary"},on:{click:e.searchList}},[e._v(" 刷新 ")])],1),r("el-col",{staticClass:"fr",staticStyle:{width:"66px"},attrs:{span:4}},[r("el-button",{staticClass:"fr",attrs:{type:"warning",size:"mini"},on:{click:e.restSearch}},[e._v(" 重置 ")])],1)],1),r("el-col",{staticStyle:{padding:"10px 0 0 0"},attrs:{span:24}},[r("el-col",{staticStyle:{width:"220px"},attrs:{span:4}},[r("el-input",{attrs:{size:"mini",maxlength:40,disabled:"",placeholder:"预算单价"},model:{value:e.parmValue.price,callback:function(t){e.$set(e.parmValue,"price",t)},expression:"parmValue.price"}},[r("template",{slot:"prepend"},[e._v("售 价 ≤")])],2)],1),r("el-col",{staticStyle:{width:"250px",padding:"0 0 0 10px"},attrs:{span:4}},[r("el-input",{attrs:{size:"mini",maxlength:40,clearable:"",disabled:"",placeholder:"所属平台"},model:{value:e.platform_name,callback:function(t){e.platform_name=t},expression:"platform_name"}})],1),r("el-col",{staticStyle:{width:"280px",padding:"0 0 0 10px"},attrs:{span:4}},[r("good-class",{attrs:{value:e.parmValue.cat_id,disabled:"1"===e.sitem.good_type,size:"mini",isDetail:"1"===e.sitem.good_type,placeholder:"分类"},on:{handleChange:e.goods_class_change}})],1),r("el-col",{staticStyle:{width:"66px",float:"right"},attrs:{span:3}},[r("el-button",{staticStyle:{float:"right","margin-left":"5px"},attrs:{size:"mini",type:"success"},on:{click:function(t){return e.resultList(a)}}},[e._v(" 保存 ")])],1)],1)],1)],1)]}}])})],1)],1)}),[],!1,null,null,null);t.default=s.exports},f1ed:function(e,t,r){"use strict";var a=r("1b69"),n="admin/";t.a={add:function(e,t){return Object(a.a)(n+"goodupcreate",e,"post",t)},online_add:function(e,t){return Object(a.a)(n+"gooduponline",e,"post",t)},list:function(e,t){return Object(a.a)(n+"gooduplist",e,"post",t)},valueall:function(e,t){return Object(a.a)(n+"valueall",e,"post",t)},valueadd:function(e,t){return Object(a.a)(n+"valuecreate",e,"post",t)},detail:function(e,t){return Object(a.a)(n+"goodupinfo",e,"post",t)},update:function(e,t){return Object(a.a)(n+"goodupeditinfo",e,"post",t)},updateP:function(e,t){return Object(a.a)(n+"goodupeditfee",e,"post",t)},edit_update:function(e,t){return Object(a.a)(n+"goodupedit",e,"post",t)},delete:function(e,t){return Object(a.a)(n+"goodupdelall",e,"post",t)},status:function(e,t){return Object(a.a)(n+"goodexam",e,"post",t)},catinfo:function(e,t){return Object(a.a)(n+"catinfo",e,"post",t)},copy:function(e,t){return Object(a.a)(n+"goodupcopy",e,"post",t)},golpricelast:function(e,t){return Object(a.a)(n+"golpricelast",e,"post",t)}}},f235:function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=(r("96cf"),r("8394")),s=r("9f53"),i=r("61f7");s={name:"purchaseDiffOrder",props:["showModel","id","isDetail","sitem"],mixins:[s.a],data:function(){return{loading:!1,showModelThis:this.showModel,ruleForm:{num:"",loginName:"",goods_class:""},rulesThis:this.rules,rules:{num:[{required:!0,validator:function(e,t,r){""===t?r(new Error("总工差克重不能为空!")):"0"===t||"0.0"===t||"0.00"===t||"0.000"===t?r(new Error("总工差克重不能为0!")):Object(i.k)(t)||Object(i.m)(t)?r():r(new Error("总工差克重支持整数或三位小数!"))},trigger:"blur"}]}}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis:function(e){e||this.$emit("cancel")}},methods:{initForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,e.rulesThis=e.rules,t.next=4,e.resetForm();case 4:e.loading=!1;case 5:case"end":return t.stop()}}),t)})))()},initData:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n.a.detail({id:e.id});case 2:if(!(r=t.sent)||0!==r.code||!r.data){t.next=8;break}e.ruleForm=r.data,e.ruleForm.role_id=e.ruleForm.role,t.next=14;break;case 8:if(r&&100<=r.code&&r.code<=104)return t.next=11,e.logout();t.next=13;break;case 11:t.next=14;break;case 13:e.$message.warning(r.message);case 14:case"end":return t.stop()}}),t)})))()},number_change:function(e,t){var r=this;return Object(a.a)(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:r.ruleForm[t]=e+""||"0",r.$refs.ruleForm.validateField(t);case 2:case"end":return a.stop()}}),a)})))()},resetForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$nextTick((function(){var t,r,a;e.$refs.ruleForm&&(e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),t=(a=e.sitem).cgdNo,r=a.weight,a=a.good_num,e.ruleForm={cgdNo:t||"",weight:+a*+r||"0",num:"0"})}));case 2:case"end":return t.stop()}}),t)})))()},submitForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.ruleForm.validate(function(){var t=Object(a.a)(regeneratorRuntime.mark((function t(r){var a,s,i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r)return e.loading=!0,a=e.ruleForm,s=a.cgdNo,a=a.num,s={cgdNo:s,diff_weight:a},t.next=6,n.a.add(s);t.next=22;break;case 6:if(i=t.sent,e.loading=!1,!i||0!==i.code){t.next=14;break}e.$notify.success({title:"添加成功!",message:""}),e.showModelThis=!1,e.$emit("refresh"),t.next=20;break;case 14:if(i&&100<=i.code&&i.code<=104)return t.next=17,e.logout();t.next=19;break;case 17:t.next=20;break;case 19:e.$message.warning(i.message);case 20:t.next=24;break;case 22:return t.abrupt("return",!1);case 24:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()}}},r("73a7"),r=r("2877"),r=Object(r.a)(s,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:"填写采购单总工差",center:!0,align:"left",top:"17vh",width:"640px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)"},on:{close:function(t){e.showModelThis=!1},"update:visible":function(t){e.showModelThis=t}}},[t("el-card",{staticStyle:{margin:"-20px 0 0 0"}},[t("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",size:"mini",rules:e.rulesThis,"label-width":"100px"}},[t("el-row",[t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"商品总克重",prop:"weight"}},[t("digital-input",{attrs:{values:e.ruleForm.weight,placeholder:"商品总克重",min:0,disabled:!0,max:1e11,position:"right",precision:3,size:"mini",controls:!1,append:"g"},on:{reschange:function(t){return e.number_change(t,"weight")}}})],1)],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"工差总克重",prop:"num"}},[t("digital-input",{attrs:{values:e.ruleForm.num,placeholder:"工差总克重",min:0,disabled:!1,max:e.ruleForm.weight,position:"right",precision:3,size:"mini",controls:!1,append:"g"},on:{reschange:function(t){return e.number_change(t,"num")}}})],1)],1),t("el-col",{staticStyle:{"text-align":"right"},attrs:{span:24}},[e.isDetail?e._e():t("el-button",{attrs:{size:"mini",type:"primary"},on:{click:e.submitForm}},[e._v("保 存 ")]),t("el-button",{attrs:{size:"mini"},on:{click:function(t){e.showModelThis=!1}}},[e._v(e._s(e.isDetail?"关 闭":"取 消"))])],1)],1)],1)],1)],1)}),[],!1,null,"2c399771",null);t.default=r.exports},f246:function(e,t,r){},f291:function(e,t,r){"use strict";r.r(t);var a=r("2909"),n=r("1da1"),s=(r("96cf"),r("4de4"),r("d3b7"),r("c740"),r("159b"),r("a434"),r("e9c4"),r("d81d"),r("88ec")),i=r("e66a"),o=r("61f7"),l={name:"Role",props:["showModel","id","isDetail"],mixins:[r("9f53").a],data:function(){return{loading:!1,title:"添加角色",private_data:[],showModelThis:this.showModel,roleLevel:i.a,ruleForm:{role_name:"",level:"1",private_field:[]},action_data:[],action:[],roleActive:{rules:[]},roleList:[],ruleList:[],dataList:[],actionList:[],rulesThis:this.rules,rules:{private_field:[{type:"array",required:!0,message:"请选择关键字段权限",trigger:"change"}],role_name:[{required:!0,validator:function(e,t,r){""===t?r(new Error("角色名称不能为空!")):t.lenght<2||10<t.lenght||!Object(o.c)(t)||Object(o.d)(t)?r(new Error("角色名称规则为2~10位汉字!")):r()},trigger:"blur"}],level:[{required:!0,message:"请选择角色等级",trigger:"change"}]}}},computed:{indeterminateCheck:function(){return function(e){var t=e.action.filter((function(t){return-1<e.checkList.findIndex((function(e){return e===t.id}))})).length,r=e.action.filter((function(t){return-1==e.checkList.findIndex((function(e){return e===t.id}))})).length;return 0<t&&0<r}},indeterminateField:function(){return function(e){var t=e.action_data.filter((function(t){return-1<e.fieldList.findIndex((function(e){return e===t.id}))})).length,r=e.action_data.filter((function(t){return-1==e.fieldList.findIndex((function(e){return e===t.id}))})).length;return 0<t&&0<r}}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis:function(e){e||this.$emit("cancel")}},methods:{handleCheckAllChange:function(e,t,r,a){var n=this;this.actionList[t].child[a].checkAll=e,this.$set(this.actionList,t,r),this.actionList[t].child[a].action.forEach((function(r){var s=n.actionList[t].child[a].checkList.findIndex((function(e){return e===r.id}));e&&-1==s?n.actionList[t].child[a].checkList.push(r.id):!e&&-1<s&&n.actionList[t].child[a].checkList.splice(s,1)}))},handleFieldAllChange:function(e,t,r,a){var n=this;this.actionList[t].child[a].fieldAll=e,this.$set(this.actionList,t,r),this.actionList[t].child[a].action_data.forEach((function(r){var s=n.actionList[t].child[a].fieldList.findIndex((function(e){return e===r.id}));e&&-1==s?n.actionList[t].child[a].fieldList.push(r.id):!e&&-1<s&&n.actionList[t].child[a].fieldList.splice(s,1)}))},handleCheckedGroupChange:function(e,t,r,a){var n=this;this.actionList[t].child[a].checkAll=this.actionList[t].child[a].action.every((function(e){return-1<n.actionList[t].child[a].checkList.findIndex((function(t){return t===e.id}))})),this.$set(this.actionList,t,r)},handleFieldGroupChange:function(e,t,r,a){var n=this;this.actionList[t].child[a].fieldAll=this.actionList[t].child[a].action_data.every((function(e){return-1<n.actionList[t].child[a].fieldList.findIndex((function(t){return t===e.id}))})),this.$set(this.actionList,t,r)},handleCheckedChange:function(e,t,r,a,n){e?-1==this.actionList[r].child[a].checkList.indexOf(t)&&this.actionList[r].child[a].checkList.push(t):(-1<(e=this.actionList[r].child[a].checkList.findIndex((function(e){return e==t})))&&this.actionList[r].child[a].checkList.splice(e,1),this.actionList[r].child[a].checkAll=!1),this.$set(this.actionList,r,n)},handleFieldChange:function(e,t,r,a,n){e?-1==this.actionList[r].child[a].fieldList.indexOf(t)&&this.actionList[r].child[a].fieldList.push(t):(-1<(e=this.actionList[r].child[a].fieldList.findIndex((function(e){return e==t})))&&this.actionList[r].child[a].fieldList.splice(e,1),this.actionList[r].child[a].fieldAll=!1),this.$set(this.actionList,r,n)},initForm:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.loading=!0,"add"===e.id)return e.title="添加角色",e.rulesThis=e.rules,t.next=6,e.resetForm();t.next=11;break;case 6:return t.next=8,e.initActionList();case 8:e.loading=!1,t.next=19;break;case 11:return e.isDetail?(e.title="角色",e.rulesThis={}):(e.title="修改角色",e.rulesThis=e.rules),t.next=14,e.resetForm();case 14:return t.next=16,e.initActionList();case 16:return t.next=18,e.initData();case 18:e.loading=!1;case 19:case"end":return t.stop()}}),t)})))()},initData:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){var r,a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,s.a.detail({roleid:e.id});case 2:if(!(r=t.sent)||0!==r.code||!r.data){t.next=16;break}(a=r.data).private_field=""===a.private_field?[]:a.private_field,(e.ruleForm=a).action&&0<a.action.length?e.action=a.action:e.action=[],a.action_data&&0<a.action_data.length?e.action_data=a.action_data:e.action_data=[],""===a.private_data&&(a.private_data=[]),a.private_data&&0<a.private_data.length?e.private_data=a.private_data:e.private_data=[],(a=JSON.parse(JSON.stringify(e.actionList))).map((function(t){return t.child&&0<t.child.length&&t.child.map((function(t){var r;return t.action&&0<t.action.length&&(t.action.map((function(r){var a=e.action.findIndex((function(e){return e===r.id}));return-1!==a&&t.checkList.push(e.action[a]),r})),t.action.length===t.checkList.length&&(t.checkAll=!0)),t.action_data&&0<t.action_data.length&&(t.action_data.map((function(r){var a=e.action_data.findIndex((function(e){return e===r.id}));return-1!==a&&t.fieldList.push(e.action_data[a]),r})),t.action_data.length===t.fieldList.length&&(t.fieldAll=!0)),t.private&&2===t.private.length?(r=e.private_data.findIndex((function(e){return e===t.id})),t.is_private_change=-1!==r?"1":"0"):t.is_private_change="0",t})),t})),e.actionList=a,t.next=22;break;case 16:if(r&&100<=r.code&&r.code<=104)return t.next=19,e.logout();t.next=21;break;case 19:t.next=22;break;case 21:e.$message.warning(r.message);case 22:case"end":return t.stop()}}),t)})))()},initActionList:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){var r,a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,s.a.actionList({});case 2:if(!(r=t.sent)||0!==r.code){t.next=10;break}a=r.data,a=(a=a.filter((function(e){return e.child&&0<e.child.length}))).map((function(e){return e.child.map((function(e){return e.checkAll=!1,e.checkList=[],e.fieldAll=!1,e.fieldList=[],(e.is_private_change="0")===e.is_private?e.private=[]:e.private=[{id:"0",label:"公有数据"},{id:"1",label:"私有数据"}],e})),e})),e.actionList=a,t.next=16;break;case 10:if(r&&100<=r.code&&r.code<=104)return t.next=13,e.logout();t.next=15;break;case 13:t.next=16;break;case 15:e.$message.warning(r.message);case 16:case"end":return t.stop()}}),t)})))()},resetForm:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$nextTick((function(){e.$refs.ruleForm&&(e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),e.ruleForm={role_name:"",private_field:[],level:"1"})}));case 2:case"end":return t.stop()}}),t)})))()},submitForm:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.ruleForm.validate(function(){var t=Object(n.a)(regeneratorRuntime.mark((function t(r){var n,i,o,l;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r){t.next=40;break}if(e.action_data=[],e.action=[],n=[],e.actionList.forEach((function(t){t.child.forEach((function(t){var r;(r=e.action_data).push.apply(r,Object(a.a)(t.fieldList)),(r=e.action).push.apply(r,Object(a.a)(t.checkList)),"1"===t.is_private_change&&n.push(t.id)}))})),0!==e.action.length){t.next=9;break}e.$message.warning("请选择功能!"),t.next=38;break;case 9:if(e.loading=!0,i={roleid:e.id,role_name:e.ruleForm.role_name,private_field:JSON.parse(JSON.stringify(e.ruleForm.private_field)),level:e.ruleForm.level,action:e.action,action_data:e.action_data,private_data:n},o={},"add"===e.id)return delete i.roleid,t.next=18,s.a.add(i);t.next=21;break;case 18:o=t.sent,t.next=24;break;case 21:return t.next=23,s.a.update(i);case 23:o=t.sent;case 24:if(e.loading=!1,!o||0!==o.code){t.next=32;break}l="add"===e.id?"添加成功":"修改成功",e.$notify.success({title:l,message:""}),e.showModelThis=!1,e.$emit("refresh"),t.next=38;break;case 32:if(o&&100<=o.code&&o.code<=104)return t.next=35,e.logout();t.next=37;break;case 35:t.next=38;break;case 37:e.$message.warning(o.message);case 38:t.next=42;break;case 40:return t.abrupt("return",!1);case 42:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()}}};r("6322"),r=r("2877"),r=Object(r.a)(l,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:e.title,center:!0,align:"left",top:"5vh",width:"1040px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)"},on:{"update:visible":function(t){e.showModelThis=t},close:function(t){e.showModelThis=!1}}},[r("el-card",{staticStyle:{"margin-top":"-20px"}},[r("el-row",{attrs:{gutter:10}},[r("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",size:"mini",rules:e.rulesThis,"label-width":"80px"}},[r("el-col",{attrs:{span:9}},[r("el-form-item",{attrs:{label:"角色名称",prop:"role_name"}},[r("el-input",{attrs:{disabled:e.isDetail,maxlength:"50",placeholder:"角色名称"},model:{value:e.ruleForm.role_name,callback:function(t){e.$set(e.ruleForm,"role_name",t)},expression:"ruleForm.role_name"}})],1)],1),r("el-col",{attrs:{span:9}},[r("el-form-item",{attrs:{label:"关键字段权限",prop:"private_field","label-width":"110px"}},[r("el-checkbox-group",{attrs:{disabled:e.isDetail,placeholder:"关键字段权限"},model:{value:e.ruleForm.private_field,callback:function(t){e.$set(e.ruleForm,"private_field",t)},expression:"ruleForm.private_field"}},[r("el-checkbox",{attrs:{label:"1"}},[e._v("成本价")]),r("el-checkbox",{attrs:{label:"2"}},[e._v("销售价")]),r("el-checkbox",{attrs:{label:"3"}},[e._v("毛利率")])],1)],1)],1),r("el-col",{attrs:{span:6}},[r("el-form-item",{attrs:{label:"角色等级",prop:"level"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"",disabled:e.isDetail,placeholder:"请选择角色等级"},model:{value:e.ruleForm.level,callback:function(t){e.$set(e.ruleForm,"level",t)},expression:"ruleForm.level"}},e._l(e.roleLevel,(function(e){return r("el-option",{key:"ruleid"+e.code,attrs:{label:e.name,value:e.code}})})),1)],1)],1),r("div",{staticClass:"quanxian-main"},[r("div",{staticClass:"quanxian-title"},[r("span",{staticStyle:{color:"#ff8888"}},[e._v("*")]),r("span",{staticStyle:{"font-size":"14px",color:"#606266","line-height":"40px",padding:"0 12px 0 0","font-weight":"700"}},[e._v("功能权限")])]),r("div",{staticClass:"rule-view"},[r("div",{staticClass:"rule-list"},e._l(e.actionList,(function(t,a){return r("el-row",{key:"menu"+t.id+a},[t.child&&0<t.child.length?r("el-col",{staticClass:"ffff",attrs:{span:24}},[r("div",{staticClass:"ftitle"},[r("span",[e._v(e._s(t.menu_name))])]),r("div",{staticClass:"fbody"},e._l(t.child,(function(n,s){return r("div",{key:"yemian"+n.id+s,staticClass:"fbody-item"},[n.action&&0===n.action.length&&n.action_data&&0===n.action_data.length?e._e():[r("div",{staticClass:"stitle"},[r("span",{staticClass:"_h2"},[e._v(e._s(n.menu_name))]),n&&n.private&&2===n.private.length?r("el-radio-group",{staticStyle:{margin:"0 0 0 20px"},attrs:{size:"mini",disabled:e.isDetail},model:{value:n.is_private_change,callback:function(t){e.$set(n,"is_private_change",t)},expression:"subItem.is_private_change"}},e._l(n.private,(function(t,a){return r("el-radio-button",{key:t.label+a,attrs:{disabled:e.isDetail,label:t.id}},[e._v(e._s(t.label))])})),1):e._e()],1),n.action&&0<n.action.length?r("div",{staticClass:"scheck"},[r("div",{staticClass:"checkAll"},[r("el-checkbox",{attrs:{disabled:e.isDetail,indeterminate:e.indeterminateCheck(n)},on:{change:function(r){return e.handleCheckAllChange(r,a,t,s)}},model:{value:n.checkAll,callback:function(t){e.$set(n,"checkAll",t)},expression:"subItem.checkAll"}},[e._v("功能全选")])],1),r("div",{staticClass:"checkItem"},[r("el-checkbox-group",{attrs:{disabled:e.isDetail},on:{change:function(r){return e.handleCheckedGroupChange(r,a,t,s)}},model:{value:n.checkList,callback:function(t){e.$set(n,"checkList",t)},expression:"subItem.checkList"}},[e._l(n.action,(function(n){return[r("el-checkbox",{key:"checkItem"+n.id,attrs:{disabled:e.isDetail,label:n.id},on:{change:function(r){return e.handleCheckedChange(r,n.id,a,s,t)}}},[e._v(e._s(n.action_name))])]}))],2)],1)]):e._e(),n.action_data&&0<n.action_data.length?r("div",{staticClass:"sfield"},[r("div",{staticClass:"checkAll"},[r("el-checkbox",{attrs:{disabled:e.isDetail,indeterminate:e.indeterminateField(n)},on:{change:function(r){return e.handleFieldAllChange(r,a,t,s)}},model:{value:n.fieldAll,callback:function(t){e.$set(n,"fieldAll",t)},expression:"subItem.fieldAll"}},[e._v("字段全选")])],1),r("div",{staticClass:"checkItem"},[r("el-checkbox-group",{attrs:{disabled:e.isDetail},on:{change:function(r){return e.handleFieldGroupChange(r,a,t,s)}},model:{value:n.fieldList,callback:function(t){e.$set(n,"fieldList",t)},expression:"subItem.fieldList"}},[e._l(n.action_data,(function(n){return[r("el-checkbox",{key:"FieldItem"+n.id,attrs:{label:n.id,disabled:e.isDetail},on:{change:function(r){return e.handleFieldChange(r,n.id,a,s,t)}}},[e._v(e._s(n.field_name))])]}))],2)],1)]):e._e()]],2)})),0)]):e._e()],1)})),1)])])],1),r("el-col",{staticStyle:{"text-align":"right"},attrs:{span:24}},[e.isDetail?e._e():r("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.submitForm}},[e._v("保 存 ")]),r("el-button",{attrs:{size:"mini"},on:{click:function(t){e.showModelThis=!1}}},[e._v(e._s(e.isDetail?"关 闭":"取 消"))])],1)],1)],1)],1)}),[],!1,null,"8a9e2e0a",null);t.default=r.exports},f37a:function(e,t,r){"use strict";r("f820")},f37e:function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=(r("96cf"),r("7db0"),r("d3b7"),r("ac1f"),r("1276"),r("e9c4"),r("25f0"),r("de14")),s=r("9f53"),i=r("61f7");s={name:"sellAfterApplyDetail",props:["id","newTime","sitem"],mixins:[s.a],data:function(){return{loading:!1,status:"",showModelThis:this.showModel,wsm_supplier_name:"",wsm_code_name:"",return_tag:"",ruleForm:{wsm_supplier:"",wsm_supplierNo:[],wsm_code:[],wsm_codeNo:"",contactor:"",mobile:"",addr_code:[],addr:""},rulesThis:this.rules,rules:{wsm_supplierNo:[{type:"array",required:!0,trigger:"change",message:"请选择仓库所在公司"}],wsm_code:[{type:"array",required:!0,trigger:"change",message:"请选择退货仓库"}],contactor:[{required:!0,trigger:"blur",validator:function(e,t,r){""===t?r(new Error("收件人不能为空!")):r()}}],mobile:[{required:!0,trigger:"blur",validator:function(e,t,r){""===t?r(new Error("手机号不能为空!")):Object(i.g)(t)?r():r(new Error("手机号格式不正确!"))}}],addr_code:[{type:"array",required:!0,trigger:"change",message:"请选择省市区"}],addr:[{required:!0,trigger:"blur",message:"请输入详细地址"}]}}},computed:{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"sellAfterApplyDetail"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}},watch:{newTime:function(e){e&&this.initForm()}},mounted:function(){this.initForm()},methods:{initForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,e.status="",e.rulesThis=e.rules,t.next=5,e.resetForm();case 5:e.loading=!1;case 6:case"end":return t.stop()}}),t)})))()},resetForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$nextTick((function(){var t,r,a,n,s,i,o,l,c,u,d;e.$refs.ruleForm&&(e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),d=(u=e.sitem).status,t=u.returnCode,r=u.return_wsm,a=u.addr,n=u.mobile,s=u.contactor,i=u.wsm_supplierNo,o=u.wsm_supplier,l=u.wsm_name,c=u.addr_code,u.addrs_code,u=u.return_tag,e.status=d,e.return_tag=u||"",e.wsm_supplier_name=o,e.wsm_code_name=l,e.wsm_supplier_code=i,e.ruleForm={returnCode:t||"",wsm_code:r?[r]:[],wsm_supplierNo:i?[i]:[],contactor:s||"",mobile:n||"",addr:a||"",addr_code:[]},c&&(d=c.split(","),e.ruleForm.addr_code=d&&3===d.length?d:[]),e.rulesThis.wsm_supplierNo[0].required="2"===e.return_tag,e.rulesThis.wsm_code[0].required="2"===e.return_tag)}));case 2:case"end":return t.stop()}}),t)})))()},submitForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.ruleForm.validate(function(){var t=Object(a.a)(regeneratorRuntime.mark((function t(r){var a,s;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r)return e.loading=!0,(a=JSON.parse(JSON.stringify(e.ruleForm))).addr_code=a.addr_code.toString(),a.wsm_code=a.wsm_code.toString(),delete a.wsm_codeNo,delete a.wsm_supplier,delete a.wsm_supplierNo,t.next=11,n.a.aftersetwsm(a);t.next=26;break;case 11:if(s=t.sent,e.loading=!1,!s||0!==s.code){t.next=18;break}e.$notify.success({title:"提交成功",message:""}),e.$emit("refresh",!1),t.next=24;break;case 18:if(s&&100<=s.code&&s.code<=104)return t.next=21,e.logout();t.next=23;break;case 21:t.next=24;break;case 23:e.$message.warning(s.message);case 24:t.next=28;break;case 26:return t.abrupt("return",!1);case 28:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()},supplierChange:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:e&&e.id?(t.wsm_supplier_code=e.code,t.ruleForm.wsm_supplierNo=[e.code]):(t.ruleForm.wsm_supplier=[],t.wsm_supplier_code=""),t.ruleForm.wsm_code="",t.wsm_code=[],t.ruleForm.contactor="",t.ruleForm.mobile="",t.ruleForm.addr="";case 6:case"end":return r.stop()}}),r)})))()},stockChange:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){var a,n,s,i,o;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:a=e.code,s=e.contactor,i=e.mobile,o=e.addr,n=e.addr_code,e.addr_cn,t.ruleForm.wsm_codeNo=a||"",t.ruleForm.wsm_code=a?[a]:[],t.ruleForm.contactor=s||"",t.ruleForm.mobile=i||"",t.ruleForm.addr=o||"",s=n.provice_code,i=n.city_code,o=n.area_code,t.ruleForm.addr_code=a?[s,i,o]:[];case 9:case"end":return r.stop()}}),r)})))()},addr_selectChange:function(e){this.ruleForm.addr_code=e||[],this.$refs.ruleForm.validateField("addr_code")}}},r=r("2877"),r=Object(r.a)(s,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",staticStyle:{width:"100%"},attrs:{loading:e.loading,model:e.ruleForm,"status-icon":"",size:"mini",rules:e.rules,"label-width":"100px"}},[t("el-row",[t("el-col",{directives:[{name:"show",rawName:"v-show",value:"2"===e.return_tag,expression:"return_tag === '2'"}],attrs:{span:12}},[t("el-form-item",{attrs:{label:"仓库信息",prop:"wsm_supplierNo"}},[t("search-supplier",{attrs:{size:"mini",value:e.ruleForm.wsm_supplierNo,disabled:!("3"===e.status&&e.powers.some((function(e){return"083"==e}))),placeholder:"仓库所在公司",names:e.wsm_supplier_name,isDetail:!0},on:{searchChange:e.supplierChange}})],1)],1),t("el-col",{directives:[{name:"show",rawName:"v-show",value:"2"===e.return_tag,expression:"return_tag === '2'"}],attrs:{span:12}},[t("el-form-item",{attrs:{prop:"wsm_code","label-width":"10px"}},[t("search-stock",{attrs:{size:"mini",value:e.ruleForm.wsm_code,placeholder:"退库仓库",disabled:!("3"===e.status&&e.powers.some((function(e){return"083"==e}))),isDetail:!0,isRelation:!0,wsmtype:"4",names:e.wsm_code_name,companyNo:e.sitem.customer_code,companyCode:e.wsm_supplier_code},on:{searchChange:e.stockChange}})],1)],1),e.ruleForm.wsm_code&&1===e.ruleForm.wsm_code.length&&"2"===e.return_tag||"1"==e.return_tag?t("el-col",{attrs:{span:24}},[t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"收件人",prop:"contactor"}},[t("el-input",{attrs:{disabled:"2"===e.return_tag||!("3"===e.status&&e.powers.some((function(e){return"083"==e}))),maxlength:"20",placeholder:"收件人"},model:{value:e.ruleForm.contactor,callback:function(t){e.$set(e.ruleForm,"contactor",t)},expression:"ruleForm.contactor"}})],1)],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"收件人电话",prop:"mobile"}},[t("el-input",{attrs:{disabled:"2"===e.return_tag||!("3"===e.status&&e.powers.some((function(e){return"083"==e}))),maxlength:"11",placeholder:"收件人电话"},model:{value:e.ruleForm.mobile,callback:function(t){e.$set(e.ruleForm,"mobile",t)},expression:"ruleForm.mobile"}})],1)],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"退回地址",prop:"addr_code"}},[t("select-area",{attrs:{placeholder:"省/市/区",value:e.ruleForm.addr_code,"is-detail":!0,size:"mini",disabled:"2"===e.return_tag||!("3"===e.status&&e.powers.some((function(e){return"083"==e})))},on:{selectChange:e.addr_selectChange}})],1)],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{"label-width":"10px",prop:"addr"}},[t("el-input",{attrs:{disabled:"2"===e.return_tag||!("3"===e.status&&e.powers.some((function(e){return"083"==e}))),maxlength:"250",placeholder:"退回地址"},model:{value:e.ruleForm.addr,callback:function(t){e.$set(e.ruleForm,"addr",t)},expression:"ruleForm.addr"}})],1)],1)],1):e._e(),"3"===e.status&&e.powers.some((function(e){return"083"==e}))?t("el-col",{staticStyle:{"text-align":"right",padding:"0 0 15px 0"},attrs:{span:24}},[t("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.submitForm}},[e._v("保 存")])],1):e._e()],1)],1)}),[],!1,null,"1e5afac7",null);t.default=r.exports},f3cf:function(e,t,r){"use strict";r("2567")},f489:function(e,t,r){"use strict";r("85c8")},f59b:function(e,t,r){},f5e0:function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=r("5530"),s=(r("96cf"),r("7db0"),r("d3b7"),r("99af"),r("e9c4"),r("11f6")),i=r("9f53"),o=r("2f62"),l=r("c4db"),c=r("c4b4"),u=r("129e"),d=r("787f"),p=r("5daa");i={name:"projectDetail",mixins:[i.a],components:{addForm:l.default,grossForm:c.default,backGoodShow:u.default,setPlan:d.default},computed:Object(n.a)(Object(n.a)({},Object(o.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"projectDetail"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),data:function(){return{statusList:[],size:"small",projectTabs:"1",projectNames:["0","1","2","3","4","5","6","7","8","9"],newTime:"",loading:!1,queryType:"",queryId:"",status:"",sitem:null}},mounted:function(){this.initForm()},methods:{initForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r,a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a=e.$route.query,r=a.id,a=a.type,e.queryId=r,e.queryType=a,e.projectTabs="add"===a?"0":"1",e.loading=!0,"add"!==e.queryType){t.next=10;break}e.sitem={},e.getNewTime(),t.next=12;break;case 10:return t.next=12,e.initData();case 12:e.loading=!1;case 13:case"end":return t.stop()}}),t)})))()},examForm:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){var a;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t.loading){r.next=5;break}return a={activity_code:t.queryId,status:"1"===e.state?"1":"8",remark:e.remark},r.next=5,t.setstatus("提交产品部门审核",a);case 5:case"end":return r.stop()}}),r)})))()},setstatus:function(e,t){var r=this;return Object(a.a)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r.$confirm("确定要".concat(e,"?"),{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(a.a)(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,s.a.actstatus(t);case 2:if((a=e.sent)&&0===a.code)return r.$notify.success({title:"提交成功!",message:""}),e.next=7,r.initForm();e.next=9;break;case 7:e.next=15;break;case 9:if(a&&100<=a.code&&a.code<=104)return e.next=12,r.logout();e.next=14;break;case 12:e.next=15;break;case 14:r.$message.warning(a.message);case 15:case"end":return e.stop()}}),e)})))).catch((function(){}));case 2:case"end":return n.stop()}}),n)})))()},handleClick:function(e){},copyToClip:function(){var e="".concat(p.a.webUrl).concat(this.queryId),t=document.createElement("input");t.setAttribute("value",e),document.body.appendChild(t),t.select(),document.execCommand("copy"),document.body.removeChild(t),this.$message.warning("分享链接已成功复制至粘贴板!")},refresh:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.routeReGoto("project",{});case 1:case"end":return e.stop()}}),e)})))()},initData:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r,a,n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,t.next=3,s.a.detail({projectNo:e.queryId});case 3:if(n=t.sent,r=n.code,a=n.message,n=n.data,e.loading=!1,0!==r){t.next=16;break}e.sitem=JSON.parse(JSON.stringify(n)),n=e.sitem.status,e.status=n,e.getNewTime(),t.next=22;break;case 16:if(100<=r&&r<=104)return t.next=19,e.logout();t.next=21;break;case 19:t.next=22;break;case 21:e.$message.warning(a);case 22:case"end":return t.stop()}}),t)})))()},getNewTime:function(){this.newTime=(new Date).valueOf()}}},r("03fb"),l=r("2877"),c=Object(l.a)(i,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("div",{staticClass:"projectDetail"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"007"==e}))?t("div",{staticClass:"projectDetail-main"},[e.powers.some((function(e){return"063"==e}))?t("div",{staticClass:"share-a"},[t("el-tooltip",{attrs:{effect:"dark",content:"分享项目",placement:"top"}},[t("el-button",{attrs:{type:"primary",size:"mini",icon:"el-icon-position",circle:""},on:{click:function(t){return e.copyToClip("good-share")}}})],1)],1):e._e(),t("el-tabs",{model:{value:e.projectTabs,callback:function(t){e.projectTabs=t},expression:"projectTabs"}},["add"===e.queryType?t("el-tab-pane",{attrs:{label:"新建项目",name:"0"}},[""!==e.newTime?t("add-form",{attrs:{newTime:e.newTime,id:e.queryId,type:e.queryType,sitem:e.sitem},on:{refresh:e.refresh}}):e._e()],1):e._e(),"add"!==e.queryType?t("el-tab-pane",{attrs:{label:"项目详情",name:"1"}},[t("el-collapse",{staticStyle:{margin:"-18px 0 0 0"},model:{value:e.projectNames,callback:function(t){e.projectNames=t},expression:"projectNames"}},[t("el-collapse-item",{attrs:{title:"项目详情",name:"0"}},[""!==e.newTime?t("add-form",{attrs:{newTime:e.newTime,id:e.queryId,type:e.queryType,sitem:e.sitem},on:{refresh:e.refresh}}):e._e()],1),e.powers.some((function(e){return"061"==e}))?t("el-collapse-item",{attrs:{title:"设置项目毛利率",name:"1"}},[""!==e.newTime?t("gross-form",{attrs:{newTime:e.newTime,id:e.queryId,type:e.queryType,sitem:e.sitem},on:{refresh:function(t){return e.initForm()}}}):e._e()],1):e._e()],1)],1):e._e(),"add"!==e.queryType?t("el-tab-pane",{attrs:{label:"商品反馈详情",name:"2"}},[""!==e.newTime?t("back-good-show",{attrs:{id:e.queryId,newTime:e.newTime,type:e.queryType,sitem:e.sitem},on:{refresh:function(t){return e.initForm()}}}):e._e()],1):e._e(),"add"===e.queryType||"3"!==e.status&&"4"!==e.status&&"5"!==e.status&&"6"!==e.status?e._e():t("el-tab-pane",{attrs:{label:"方案制作",name:"3"}},[""!==e.newTime?t("set-plan",{attrs:{id:e.queryId,newTime:e.newTime,type:e.queryType,sitem:e.sitem},on:{refresh:function(t){return e.initForm()},resGoodOk:function(t){return e.initForm()}}}):e._e()],1),"add"!==e.queryType?t("el-tab-pane",{attrs:{label:"审批记录",name:"4"}},[""!==e.newTime?t("process-time-line",{attrs:{newTime:e.newTime,type:"PRO",orderCode:e.queryId}}):e._e()],1):e._e()],1)],1):t("div",[t("no-auth")],1)])}),[],!1,null,"2215357a",null);t.default=c.exports},f5ed:function(e,t,r){"use strict";var a=r("1da1");r("96cf"),t.a={methods:{handlePageChange:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return t.parmValue.page=e,r.next=3,t.searchList();case 3:case"end":return r.stop()}}),r)})))()},handleSizeChange:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return t.parmValue.page=1,t.parmValue.size=e,r.next=4,t.searchList();case 4:case"end":return r.stop()}}),r)})))()}}}},f63c:function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=(r("96cf"),r("7db0"),r("d3b7"),r("159b"),r("b0c0"),r("f5ed")),s=r("9f53"),i=r("e5ab"),o=r("bf09"),l=r("6419"),c=[{prop:"cgdNo",label:"采购单编号",span:6},{prop:"status",label:"采购单状态",_slot_:"status",span:6},{prop:"order_type",label:"采购单来源",_slot_:"order_type",span:6},{prop:"lasttime",label:"要求入库时间",span:6},{prop:"supplier_name",label:"销售方公司",_slot_:"supplier_name"},{prop:"company",label:"购买方公司",_slot_:"company"},{prop:"wsm",label:"仓库信息",_slot_:"wsm"},{prop:"total_fee",label:"采购总成本",span:6},{prop:"good_price",label:"采购单价",span:6},{prop:"good_num",label:"采购总数量",span:6},{prop:"send_num",label:"已发货数量",span:6},{prop:"wsend_num",label:"未发货数量",span:6},{prop:"addtime",label:"创建时间",span:6}],u=r("ebea"),d=r("1394");n={name:"purchaseOrderDetail",mixins:[n.a,s.a],components:{orderInTable:o.default,tolerance:d.default,workDiffTable:l.default},computed:{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"purchaseOrderDetail"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}},data:function(){return{hasdiff:!1,activeTabs:"1",ShowDataTableColumns:c,isMetal:!1,finishStatus:"finish",activeNames:["0","1","2","3","4","5","10"],sitem:null,statusOptions:u.c,order_type_options:u.b,status:"",newTime:"",loading:!1,queryId:"",ReturnAddModel:!1}},mounted:function(){this.queryId=this.$route.query.id,this.initData()},methods:{getNewTime:function(){this.newTime=(new Date).valueOf()},examForm:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){var a;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t.loading){r.next=4;break}return a="1"===e.state?"2":"0",r.next=4,t.setStatus(a,"提交入库方审核",e.remark);case 4:case"end":return r.stop()}}),r)})))()},initData:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r,a,n,s;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,t.next=3,i.a.detail({cgdNo:e.queryId});case 3:if(!(r=t.sent)||0!==r.code||!r.data){t.next=12;break}e.sitem=r.data,a=e.sitem,n=a.status,s=a.can,a.cgdNo,e.status=n,s&&0<s.length&&(e.sitem.class_cat="",s.forEach((function(t,r){e.sitem.class_cat+=0===r?t.name:"/"+t.name}))),e.getNewTime(),t.next=18;break;case 12:if(r&&100<=r.code&&r.code<=104)return t.next=15,e.logout();t.next=17;break;case 15:t.next=18;break;case 17:e.$message.warning(r.message);case 18:e.loading=!1;case 19:case"end":return t.stop()}}),t)})))()},statusConfirm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$confirm("确定已与供应商确认?",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(a.a)(regeneratorRuntime.mark((function t(){var r,a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r={cgdNo:e.sitem.cgdNo,status:"1"},t.next=3,i.a.status(r);case 3:if(a=t.sent,e.loading=!1,a&&0===a.code)return e.$notify.success({title:"提交成功!",message:""}),t.next=9,e.initData();t.next=11;break;case 9:t.next=17;break;case 11:if(a&&100<=a.code&&a.code<=104)return t.next=14,e.logout();t.next=16;break;case 14:t.next=17;break;case 16:e.$message.warning(a.message);case 17:case"end":return t.stop()}}),t)})))).catch((function(){}));case 2:case"end":return t.stop()}}),t)})))()}}},r("63fc"),s=r("2877"),o=Object(s.a)(n,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("div",{staticClass:"purchaseOrderDetail pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?t("div",{staticStyle:{width:"100%"}},[t("div",{staticClass:"detail-page-title",attrs:{showBtn:"1"===e.status&&e.powers.some((function(e){return"082"==e}))}},[t("span",[e._v("采购单编号:")]),t("span",[e._v(e._s(e.queryId)+" ")]),""!==e.newTime?t("tolerance",{attrs:{newTime:e.newTime,sitem:e.sitem}}):e._e()],1),t("el-tabs",{model:{value:e.activeTabs,callback:function(t){e.activeTabs=t},expression:"activeTabs"}},[t("el-tab-pane",{attrs:{label:"业务详情",name:"1"}},[t("el-collapse",{staticStyle:{margin:"-18px 0 0 0"},model:{value:e.activeNames,callback:function(t){e.activeNames=t},expression:"activeNames"}},[t("el-collapse-item",{attrs:{title:"采购单信息",name:"1"}},[""!==e.newTime?t("show-data-table",{attrs:{newTime:e.newTime,sitem:e.sitem,columns:e.ShowDataTableColumns}},[t("template",{slot:"supplier_name"},[t("span",[e._v(e._s(e.sitem.supplier_name))]),t("el-popover",{attrs:{placement:"top",width:"300",trigger:"hover"}},[t("ul",[t("li",[t("span",[e._v("销售方公司编号:")]),t("span",[e._v(e._s(e.sitem.supplierNo))])])]),t("i",{staticClass:"el-icon-warning-outline fr",attrs:{slot:"reference"},slot:"reference"})])],1),t("template",{slot:"company"},[t("span",[e._v(e._s(e.sitem.company))]),t("el-popover",{attrs:{placement:"top",width:"300",trigger:"hover"}},[t("ul",[t("li",[t("span",[e._v("购买方公司编号:")]),t("span",[e._v(e._s(e.sitem.companyNo))])])]),t("i",{staticClass:"el-icon-warning-outline fr",attrs:{slot:"reference"},slot:"reference"})])],1),t("template",{slot:"status"},[t("el-tag",{attrs:{size:"mini",type:"0"==e.sitem.status?"warning":""},domProps:{textContent:e._s((e.statusOptions.find((function(t){return t.value==e.sitem.status}))||{}).label||"--")}}),e.powers.some((function(e){return"007"==e}))&&"0"===e.sitem.status?t("el-tooltip",{staticClass:"fr",attrs:{effect:"dark",content:"已于供应商确认",placement:"top"}},[t("i",{staticClass:"el-icon-video-play tb-icon",on:{click:function(t){return e.statusConfirm()}}})]):e._e()],1),t("template",{slot:"order_type"},[t("el-tag",{attrs:{size:"mini"},domProps:{textContent:e._s((e.order_type_options.find((function(t){return t.value==e.sitem.order_type}))||{}).label||"--")}}),"1"===e.sitem.order_type?t("el-popover",{attrs:{placement:"top",width:"300",trigger:"hover"}},[t("ul",[t("li",[t("span",[e._v("备库单编号:")]),t("span",[e._v(e._s(e.sitem.bkcode))])])]),t("i",{staticClass:"el-icon-warning-outline fr",attrs:{slot:"reference"},slot:"reference"})]):e._e()],1),t("template",{slot:"wsm"},[t("span",[e._v(e._s(e.sitem.wsm_supplier)+"/"+e._s(e.sitem.wsm_name))]),t("el-popover",{attrs:{placement:"top",width:"300",trigger:"hover"}},[t("ul",[t("li",[t("span",[e._v("仓库公司编号:")]),t("span",[e._v(e._s(e.sitem.wsm_supplierNo))])]),t("li",[t("span",[e._v("仓库名称编号:")]),t("span",[e._v(e._s(e.sitem.wsm_code))])])]),t("i",{staticClass:"el-icon-warning-outline fr",attrs:{slot:"reference"},slot:"reference"})])],1)],2):e._e()],1),t("el-collapse-item",{attrs:{title:"商品信息",name:"2"}},[""!==e.newTime?t("show-goods-data-table",{attrs:{newTime:e.newTime,type:e.sitem.order_type,skucode:e.sitem.skuCode,spucode:e.sitem.spuCode,iscgd:!0}}):e._e()],1),e.sitem&&"0"!==e.sitem.status?t("el-collapse-item",{attrs:{title:"入库单",name:"3"}},[""!==e.newTime?t("order-in-table",{attrs:{newTime:e.newTime,sitem:e.sitem,id:e.queryId},on:{refresh:function(t){return e.initData()}}}):e._e()],1):e._e(),e.sitem&&"1"!==e.sitem.order_type&&"0"!==e.sitem.status&&e.sitem.purcheasediff?t("el-collapse-item",{attrs:{title:"工差单",name:"4"}},[""!==e.newTime?t("work-diff-table",{attrs:{newTime:e.newTime,sitem:e.sitem}}):e._e()],1):e._e()],1)],1),t("el-tab-pane",{attrs:{label:"审批记录",name:"2"}},[""!==e.newTime?t("process-time-line",{attrs:{newTime:e.newTime,type:"CGD",orderCode:e.queryId}}):e._e()],1)],1)],1):t("div",[t("no-auth")],1)])}),[],!1,null,"8a8ed3be",null);t.default=o.exports},f6ef:function(e,t,r){"use strict";r("a923")},f770:function(e,t,r){},f77d:function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=r("5530"),s=(r("96cf"),r("7db0"),r("d3b7"),r("fb6a"),r("b0c0"),r("9f53")),i=r("fee1"),o=r("6db9"),l=r("2f62");s={name:"business",mixins:[s.a],components:{addEdit:o.default},computed:Object(n.a)(Object(n.a)({},Object(l.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"business"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),data:function(){return{kh:"",select:"1",sinput:"",statusOptions:[{id:"0",label:"禁用"},{id:"1",label:"启用"}],khOptions:[{id:0,label:"组织"},{id:1,label:"企业"}],titleList:[],isDetail:!1,modelId:"",loading:!0,showModel:!1,parmValue:{name:"",pid:"",creater:"",start:"",end:"",companyNo:""},tableData:[]}},mounted:function(){this.initTitleList(),this.searchList()},methods:{openModal:function(e,t,r){var a=e.status;e=e.id;"005"===t&&"1"===a?this.$message.warning("禁用后,才可以修改!"):(this.modelId=e,this.kh=r,this.isDetail=t,this.showModel=!0)},initTitleList:function(){this.titleList=[],this.titleList.push({id:"0",name:"全部一级组织"})},handleTime:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t.parmValue.start=e.startTime||"",t.parmValue.end=e.endTime||"",""!==t.parmValue.start&&""!==t.parmValue.end||""===t.parmValue.start&&""===t.parmValue.end)return r.next=5,t.searchList();r.next=5;break;case 5:case"end":return r.stop()}}),r)})))()},changeBreadcrumb:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e+1===t.titleList.length)return r.abrupt("return");r.next=4;break;case 4:t.parmValue.pid=t.titleList[e].id,t.titleList=t.titleList.slice(0,e+1);case 6:return r.next=8,t.searchList();case 8:case"end":return r.stop()}}),r)})))()},restSearch:function(){this.titleList=[],this.parmValue={name:"",pid:"",creater:"",start:"",end:"",companyNo:""},this.searchList()},getNext:function(e){this.titleList.push(this.tableData[e]),this.parmValue.pid=this.tableData[e].id,this.parmValue.name="",this.searchList()},changeStatus:function(e,t,r){var n=this;return Object(a.a)(regeneratorRuntime.mark((function s(){return regeneratorRuntime.wrap((function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,n.$confirm("确定要改为".concat("1"===t?"禁用":"启用","?"),{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(a.a)(regeneratorRuntime.mark((function a(){var s,o;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(n.loading=!0,s={id:e,status:"1"===t?"0":"1"},o={},r+""=="0")return a.next=6,i.a.zstatus(s);a.next=9;break;case 6:o=a.sent,a.next=12;break;case 9:return a.next=11,i.a.qstatus(s);case 11:o=a.sent;case 12:if(o&&0===o.code)return n.loading=!1,n.$notify.success({title:"状态修改成功!",message:""}),a.next=17,n.searchList();a.next=19;break;case 17:a.next=26;break;case 19:if(o&&100<=o.code&&o.code<=104)return a.next=22,n.logout();a.next=24;break;case 22:a.next=26;break;case 24:n.loading=!1,n.$message.warning(o.message);case 26:case"end":return a.stop()}}),a)})))).catch((function(){}));case 2:case"end":return s.stop()}}),s)})))()},deleteItem:function(e,t){var r=this;return Object(a.a)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r.$confirm("确定要删除?",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(a.a)(regeneratorRuntime.mark((function a(){var n,s;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(n={id:e},s={},t+""=="0")return a.next=5,i.a.zdelete(n);a.next=8;break;case 5:s=a.sent,a.next=11;break;case 8:return a.next=10,i.a.qdelete(n);case 10:s=a.sent;case 11:if(!s||0!==s.code){a.next=16;break}r.$notify.success({title:"删除成功",message:""}),r.searchList(),a.next=22;break;case 16:if(s&&100<=s.code&&s.code<=104)return a.next=19,r.logout();a.next=21;break;case 19:a.next=22;break;case 21:r.$message.warning(s.message);case 22:case"end":return a.stop()}}),a)})))).catch((function(){}));case 2:case"end":return n.stop()}}),n)})))()},searchList:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(""!==e.parmValue.start&&""===e.parmValue.end||""==e.parmValue.start&&""!=e.parmValue.end)return e.$message.warning("开始时间和结束时间不能为空"),t.abrupt("return");t.next=3;break;case 3:return e.loading=!0,e.parmValue.name="1"===e.select?e.sinput:"",e.parmValue.companyNo="2"===e.select?e.sinput:"",e.parmValue.creater="3"===e.select?e.sinput:"",t.next=9,i.a.list(e.parmValue);case 9:if(!(r=t.sent)||0!==r.code||!r.data){t.next=14;break}e.tableData=r.data,t.next=20;break;case 14:if(r&&100<=r.code&&r.code<=104)return t.next=17,e.logout();t.next=19;break;case 17:t.next=20;break;case 19:e.tableData=[];case 20:e.loading=!1;case 21:case"end":return t.stop()}}),t)})))()}}},r("3500"),o=r("2877"),n=Object(o.a)(s,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"business pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?r("div",[0<e.titleList.length?r("el-row",{staticStyle:{padding:"5px 0 0 0"}},[r("div",{staticClass:"my-breadcrumb clear"},[e._l(e.titleList,(function(t,a){return r("div",{key:t+a,staticClass:"my-breadcrumb-item",on:{click:function(t){return e.changeBreadcrumb(a)}}},[r("span",{staticClass:"label"},[e._v(e._s(t.name))]),a+1!==e.titleList.length?r("span",{staticClass:"separator"},[e._v("/")]):e._e()])})),r("el-button",{staticStyle:{float:"right",margin:"4px 0 0 10px"},attrs:{size:e.searchSize,type:"primary"},on:{click:e.searchList}},[e._v(" 刷新 ")]),r("el-button",{staticClass:"fr",staticStyle:{margin:"4px 0 0 10px"},attrs:{type:"warning",size:e.searchSize},on:{click:e.restSearch}},[e._v(" 重置 ")])],2)]):e._e(),r("el-row",{staticStyle:{padding:"7px 0 10px 0"}},[r("el-col",{staticStyle:{width:"303px"},attrs:{span:6}},[r("period-date-picker",{attrs:{type:1,width:"135px",size:e.searchSize,start:e.parmValue.start,end:e.parmValue.end},on:{timeReturned:e.handleTime}})],1),r("el-col",{staticStyle:{width:"400px"},attrs:{span:3}},[r("el-input",{attrs:{size:e.searchSize,placeholder:"关键字",maxlength:"40"},on:{blur:function(t){return e.searchList()}},model:{value:e.sinput,callback:function(t){e.sinput=t},expression:"sinput"}},[r("el-select",{staticStyle:{width:"125px"},attrs:{slot:"prepend",placeholder:"关键字类型"},slot:"prepend",model:{value:e.select,callback:function(t){e.select=t},expression:"select"}},[r("el-option",{attrs:{label:"组织/企业名称",value:"1"}}),r("el-option",{attrs:{label:"企业编号",value:"2"}}),r("el-option",{attrs:{label:"创建人",value:"3"}})],1),r("el-button",{attrs:{slot:"append",icon:"el-icon-search"},on:{click:function(t){return e.searchList()}},slot:"append"})],1)],1),e.powers.some((function(e){return"003"==e}))?r("el-col",{staticClass:"fr",staticStyle:{width:"66px",padding:"0 0 0 10px"},attrs:{span:3}},[r("el-button",{staticStyle:{float:"right"},attrs:{size:e.searchSize,type:"success"},on:{click:function(t){return e.openModal({id:"add"},"003","0")}}},[e._v(" 添加 ")])],1):e._e()],1),r("el-table",{directives:[{name:"loading",rawName:"v-loading",value:!1,expression:"false"}],staticStyle:{width:"100%"},attrs:{data:e.tableData,size:e.size,border:""}},[r("el-table-column",{attrs:{prop:"id",label:"ID",width:"100"}}),r("el-table-column",{attrs:{label:"类型",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-tag",{attrs:{size:e.tablebtnSize,type:0==t.row.kh?"success":""},domProps:{textContent:e._s((e.khOptions.find((function(e){return e.id==t.row.kh}))||{}).label||"--")}})]}}],null,!1,3481890151)}),r("el-table-column",{attrs:{prop:"name",label:"名称","show-overflow-tooltip":""}}),r("el-table-column",{attrs:{prop:"code",label:"编码","show-overflow-tooltip":""}}),r("el-table-column",{attrs:{label:"状态",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-tag",{attrs:{size:e.tablebtnSize,type:"0"===t.row.status?"warning":""},domProps:{textContent:e._s((e.statusOptions.find((function(e){return e.id==t.row.status}))||{}).label||"--")}})]}}],null,!1,3653142052)}),r("el-table-column",{attrs:{prop:"creater",label:"创建人",width:"80","show-overflow-tooltip":""}}),r("el-table-column",{attrs:{prop:"addtime",label:"创建时间",width:"145","show-overflow-tooltip":""}}),r("el-table-column",{attrs:{fixed:"right",label:"操作",width:"170"},scopedSlots:e._u([{key:"default",fn:function(t){return[e.powers.some((function(e){return"007"==e}))?r("el-tooltip",{attrs:{effect:"dark",content:"查看信息",placement:"top"}},[r("i",{staticClass:"el-icon-view tb-icon",on:{click:function(r){return e.openModal(t.row,"007",t.row.kh)}}})]):e._e(),e.powers.some((function(e){return"005"==e}))?r("el-tooltip",{attrs:{effect:"dark",content:"编辑信息",placement:"top"}},[r("i",{staticClass:"el-icon-edit tb-icon",on:{click:function(r){return e.openModal(t.row,"005",t.row.kh)}}})]):e._e(),e.powers.some((function(e){return"004"==e}))&&"1"===t.row.status?r("el-tooltip",{attrs:{effect:"dark",content:"禁用",placement:"top"}},[r("i",{staticClass:"el-icon-video-pause tb-icon",on:{click:function(r){return e.changeStatus(t.row.id,t.row.status,t.row.kh)}}})]):e._e(),e.powers.some((function(e){return"004"==e}))&&"0"===t.row.status?r("el-tooltip",{attrs:{effect:"dark",content:"启用",placement:"top"}},[r("i",{staticClass:"el-icon-video-play tb-icon",on:{click:function(r){return e.changeStatus(t.row.id,t.row.status,t.row.kh)}}})]):e._e(),e.powers.some((function(e){return"006"==e}))?r("el-tooltip",{attrs:{effect:"dark",content:"删除",placement:"top"}},[r("i",{staticClass:"el-icon-delete tb-icon",on:{click:function(r){return e.deleteItem(t.row.id,t.row.kh)}}})]):e._e(),t.row.kh+""=="0"?r("el-tooltip",{attrs:{effect:"dark",content:"查询下一级",placement:"top"}},[r("i",{staticClass:"el-icon-caret-right tb-icon",on:{click:function(r){return e.getNext(t.$index)}}})]):e._e()]}}],null,!1,3664823048)})],1),r("add-edit",{attrs:{showModel:e.showModel,id:e.modelId,organ:e.titleList,kh:e.kh,"is-detail":e.isDetail},on:{refresh:e.searchList,cancel:function(t){e.showModel=!1}}})],1):r("div",[r("no-auth")],1)])}),[],!1,null,"090ccd56",null);t.default=n.exports},f820:function(e,t,r){},f8b2:function(e,t,r){e.exports=r.p+"static/img/loading.190c78aa.gif"},f8d8:function(e,t,r){"use strict";var a=r("1da1"),n=(r("a434"),r("e9c4"),r("d3b7"),r("ac1f"),r("5319"),r("159b"),r("07ac"),r("b0c0"),r("c740"),r("99af"),r("fb6a"),r("96cf"),r("9f53")),s=r("5ca7"),i=r("61f7"),o=r("8e8f");n={name:"inAddrModel",props:["showModel","id","sitem"],mixins:[n.a],components:{AddrAddEditModal:o.a},data:function(){return{showAddrAddEditModal:!1,AddrAddEditModalIndex:-1,AddrAddEditModalSitem:{},tableData:[],tableHeader:[],title:"",showModelThis:!1,loading:!1,newTime:0,pickerOptions:{disabledDate:function(e){return e.getTime()<(new Date).valueOf()}},rulesThis:this.rules,ruleForm:{order_addr:[]},rules:{receipt_quantity:[{required:!0,validator:function(e,t,r){""===t?r(new Error("收货总数不能为空!")):Object(i.k)(t)?r():r(new Error("收货总数仅支持整数!"))},trigger:"blur"}],contactor:[{required:!0,trigger:"blur",message:"联系人不能为空"}],mobile:[{required:!0,validator:function(e,t,r){""===t?r(new Error("联系电话不能为空!")):Object(i.g)(t)?r():r(new Error("联系电话格式不正确!"))},trigger:"blur"}],addr_code:[{type:"array",required:!0,message:"收货省市区不能为空",trigger:"change"}],addr:[{required:!0,message:"详细地址不能为空",trigger:"blur"}]}}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis:function(e){e||this.$emit("cancel")}},mounted:function(){this.get_code()},methods:{resetForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$nextTick((function(){e.$refs.ruleForm&&(e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),e.ruleForm={order_addr:[]})}));case 2:case"end":return t.stop()}}),t)})))()},deleteRow:function(e,t){t.splice(e,1)},showAddrAddEditModalRefresh:function(e){var t,r,a,n,s,i,o=e.index;e=e.item;-1===o?this.ruleForm.order_addr.push(JSON.parse(JSON.stringify(e))):(t=(e=JSON.parse(JSON.stringify(e))).receipt_quantity,r=e.contactor,a=e.mobile,n=e.addr_code,s=e.addr_code_name,i=e.addr,e=e.id,this.ruleForm.order_addr[o].receipt_quantity=t,this.ruleForm.order_addr[o].contactor=r,this.ruleForm.order_addr[o].mobile=a,this.ruleForm.order_addr[o].addr_code=n,this.ruleForm.order_addr[o].addr_code_name=s,this.ruleForm.order_addr[o].addr=i,this.ruleForm.order_addr[o].id=e),this.$refs.ruleForm.validateField("order_addr")},beforeUpload:function(e){return e.size/1024/1024<1||(this.$message({message:"请不要上传大于1MB的文件.",type:"warning"}),!1)},handleSuccess:function(e){var t,r=this,a=e.results,n=e.header;0===a.length?this.$message.error("表格无有效数据!"):(e=["收货总数","收货联系人","收货联系电话","收货省名称","收货市名称","收货区名称","详细地址"]).length!==n.length?this.$message.error("表头与导入模板不匹配!"):(t=!0,e.forEach((function(e,r){e!==n[r].replace(/\s*/g,"")&&(t=!1)})),t?(this.tableHeader=n,this.tableData=[],e=a,this.ruleForm.order_addr=[],e.forEach((function(e){e=Object.values(e);var t=r.get_code(e[3],e[4],e[5]);t={receipt_quantity:e[0]+"",contactor:e[1]+"",mobile:e[2]+"",in_addr:e[3]+"/"+e[4]+"/"+e[5],addr_code_name:t.name+"",addr_code:t.code,addr:e[6]+"",edit:!1};r.ruleForm.order_addr.push(t)}))):this.$message.error("表头与导入模板不匹配!"))},openHouseModal:function(e){this.AddrAddEditModalIndex=e,this.AddrAddEditModalSitem=-1===e?{}:JSON.parse(JSON.stringify(this.ruleForm.order_addr[e])),this.showAddrAddEditModal=!0},unique:function(e){for(var t=[],r=0;r<e.length;r++)!function(r){-1===t.findIndex((function(t){return t.inv_number===e[r].inv_number}))&&t.push(e[r])}(r);return t},setTime:function(e){return e=(e=e.replace(/\//g,"-")).replace(/\./g,"-"),13!==(new Date(e).valueOf()+"").length?"":e},initForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.rulesThis=e.rules,t.next=3,e.resetForm();case 3:e.newTime=0,e.loading=!0,e.tableData=[],e.tableHeader=[],e.step=1,e.title="批量导入收货地址信息",e.changea(),e.loading=!1;case 11:case"end":return t.stop()}}),t)})))()},refreshAll:function(){this.showModelThis=!1,this.$emit("refresh")},changea:function(){this.newTime=(new Date).valueOf()},submitForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r,a,n,s;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.loading){t.next=24;break}if(e.loading=!0,(r=e.ruleForm.order_addr).length<1)return e.$message.error("导入数据不能为空!"),e.loading=!1,t.abrupt("return");t.next=7;break;case 7:if(a=!1,r.forEach((function(e){e.err=!1,e.edit&&(e.err=!0,a=!0)})),a)return e.$message.error("当前收货地址已在编辑,请保存后再试!"),e.loading=!1,t.abrupt("return");t.next=13;break;case 13:if(n=null,r.some((function(t,r){if(!(n=e.checkItem(t)).isok)return n.index=r,!0})),n&&!n.isok)return e.$message.error("第".concat(n.index+1,"行,").concat(n.message)),e.loading=!1,t.abrupt("return");t.next=19;break;case 19:e.loading=!1,e.showModelThis=!1,s=JSON.parse(JSON.stringify(r)),e.$emit("refresh",{list:s});case 24:case"end":return t.stop()}}),t)})))()},checkItem:function(e){var t={isok:!0,message:""},r=e.arrive_time,a=e.receipt_quantity,n=e.contactor,s=e.mobile,o=e.addr_code;e=e.addr;return""===a&&t.isok&&(t.isok=!1,t.message="收货总数不能为空!"),!Object(i.k)(a)&&t.isok&&(t.isok=!1,t.message="收货总数仅支持整数!"),""===r&&t.isok&&(t.isok=!1,t.message="最晚收货日期不能为空!"),""===n&&t.isok&&(t.isok=!1,t.message="收货联系人不能为空!"),""===s&&t.isok&&(t.isok=!1,t.message="收货联系电话不能为空!"),!Object(i.g)(s)&&t.isok&&(t.isok=!1,t.message="收货联系电话格式不正确!"),3!==o.length&&t.isok&&(t.isok=!1,t.message="收货省市区不能为空!"),""===e&&t.isok&&(t.isok=!1,t.message="详细地址不能为空!"),t},get_code:function(e,t,r){var a,n,i,o="",l=[];if(e&&t&&r){for(var c in s.c)if(e===s.c[c]){l.push(c),o+=s.c[c];break}if(1===l.length)for(var u in s.a)if(t===s.a[u]){l.push(u),o+="/"+s.a[u];break}if(2===l.length)for(var d in s.b)if(r===s.b[d]){l.push(d),o+="/"+s.b[d];break}3===l.length?(i=n="",a=!1,n=l[0].slice(0,2),i=l[1].slice(2,4),(a=0===l[1].indexOf(n)&&0===l[2].indexOf(n)&&2==l[2].indexOf(i)||a)||(o="",l=[])):(o="",l=[])}return{name:o,code:l}}}},r("15a7"),o=r("2877"),r=Object(o.a)(n,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:e.title,center:!0,align:"left",top:"8vh",width:"1040px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)","append-to-body":""},on:{"update:visible":function(t){e.showModelThis=t},close:function(t){e.showModelThis=!1}}},[r("el-card",{staticStyle:{"margin-top":"-25px"}},[r("upload-excel",{attrs:{"on-success":e.handleSuccess,"before-upload":e.beforeUpload}}),r("el-form",{ref:"ruleForm",attrs:{model:e.ruleForm,size:"mini"}},[r("el-table",{staticStyle:{width:"100%"},attrs:{data:e.ruleForm.order_addr,border:"",size:"mini","max-height":"400px","row-key":"key"}},[r("el-table-column",{attrs:{prop:"receipt_quantity",label:"收货总数",width:"100","show-overflow-tooltip":""}}),r("el-table-column",{attrs:{prop:"contactor",label:"收件联系人","show-overflow-tooltip":"",width:"85"}}),r("el-table-column",{attrs:{prop:"mobile",label:"收货联系电话","show-overflow-tooltip":"",width:"100"}}),r("el-table-column",{attrs:{"show-overflow-tooltip":"",prop:"in_addr",label:"收货省市区(文件导入)",width:"150"}}),r("el-table-column",{attrs:{"show-overflow-tooltip":"",prop:"addr_code_name",label:"收货省市区(系统解析)",width:"150"}}),r("el-table-column",{attrs:{prop:"addr",label:"详细地址","show-overflow-tooltip":""}}),r("el-table-column",{attrs:{fixed:"right",width:"80",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-tooltip",{attrs:{effect:"dark",content:"编辑",placement:"top"}},[r("i",{staticClass:"el-icon-edit tb-icon",on:{click:function(r){return e.openHouseModal(t.$index)}}})]),r("el-tooltip",{attrs:{effect:"dark",content:"删除",placement:"top"}},[r("i",{staticClass:"el-icon-delete tb-icon",on:{click:function(r){return e.deleteRow(t.$index,e.ruleForm.order_addr)}}})])]}}])})],1)],1),r("addr-add-edit-modal",{attrs:{showModel:e.showAddrAddEditModal,index:e.AddrAddEditModalIndex,sitem:e.AddrAddEditModalSitem,type:"1"},on:{cancel:function(t){e.showAddrAddEditModal=!1},refresh:e.showAddrAddEditModalRefresh}}),r("div",{staticClass:"tr",staticStyle:{padding:"10px 0 0 0"}},[r("el-button",{attrs:{type:"primary",size:"small"},on:{click:e.submitForm}},[e._v("保 存 ")])],1)],1)],1)}),[],!1,null,"b54b0238",null);t.a=r.exports},f9d4:function(e,t,r){},fa93:function(e,t,r){"use strict";r.d(t,"a",(function(){return a})),r.d(t,"b",(function(){return n}));var a=[{prop:"bk_code",label:"申请编码",width:"160"},{prop:"apply_name",label:"申请人",width:"60"},{prop:"good_name",label:"商品名称","min-width":"120"},{prop:"spuCode",label:"SPU编码",width:"155"},{prop:"good_num",label:"数量","min-width":"50"},{prop:"status",label:"状态",_slot_:"status",width:"120px"},{prop:"addtime",label:"创建时间",sortable:!0,width:"150"},{prop:"",label:"操作",fixed:"right",_noset_:!0,width:"50px",_slot_:"operation"}],n=[{prop:"bk_code",label:"申请编码",span:6},{prop:"status",label:"状态",_slot_:"status",span:6},{prop:"apply_name",label:"申请人",span:6},{prop:"addtime",label:"创建时间",span:6},{prop:"good_num",label:"采购数量",span:6},{prop:"lasttime",label:"最晚入库时间",span:6},{prop:"file_url",label:"附件",_slot_:"file_url",span:12},{prop:"remark",label:"备注",span:24}]},fb17:function(e,t,r){"use strict";r("0eac")},fb2f:function(e,t,r){},fb71:function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=r("ade3"),s=r("5530"),i=(r("96cf"),r("7db0"),r("d3b7"),r("e9c4"),r("a9e3"),r("f5ed")),o=r("9f53"),l=[{prop:"returnCode",label:"退货单编号",width:"160"},{prop:"status",label:"状态",_slot_:"status",width:"120px"},{prop:"good_code",label:"商品属性编码",width:"160"},{prop:"good_name",label:"商品名称","min-width":"180"},{prop:"num",label:"退货数量",width:"110"},{prop:"total_num",label:"订单总数",width:"110"},{prop:"apply_name",label:"申请人",width:"70"},{prop:"addtime",label:"申请时间",sortable:!0,width:150},{prop:"",width:50,label:"操作",fixed:"right",_noset_:!0,_slot_:"operation"}],c=r("a2b6"),u=r("2f62");i={name:"sellReturn",mixins:[i.a,o.a],computed:Object(s.a)(Object(s.a)({},Object(u.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"sellReturn"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),data:function(){var e={select:"returnCode",s_input:"",sitem:null,statusOptions:[{id:"1",label:"待业务审批"},{id:"2",label:"待专员审批"},{id:"3",label:"待主管审批"},{id:"4",label:"退货完成"},{id:"5",label:"业务驳回"},{id:"6",label:"采购驳回"},{id:"7",label:"专员审批不通过"}],loading:!1,showModel:!1,isDetail:!1,modelId:0,parmValue:{returnCode:"",orderCode:"",apply_name:"",start:"",end:"",status:"",page:1,size:15,order_type:"1"},tableData:[],passwordModel:!1,passwordModelId:0,isPasswordDetail:!1};return Object(n.a)(e,"tableData",[]),Object(n.a)(e,"table",{stripe:!0,border:!0,_defaultHeader_:["setcol"]}),Object(n.a)(e,"pageInfo",{size:15,curr:1,total:0}),Object(n.a)(e,"columns",l),e},mounted:function(){this.searchList()},methods:{restSearch:function(){this.s_input="",this.select="",this.parmValue={order_type:"1",returnCode:"",orderCode:"",apply_name:"",start:"",end:"",status:"",page:1,size:15},this.pageInfo={size:15,curr:1,total:0},this.searchList()},openModal:function(e,t,r){this.showModel=!0,this.modelId=e,this.isDetail=t,this.sitem=r},deleteById:function(e,t){var r=this;return Object(a.a)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r.$confirm("确定要删除?",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(a.a)(regeneratorRuntime.mark((function a(){var n,s;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return n={id:e,status:"1"===t?"0":"1"},a.next=3,c.a.status(n);case 3:if(!(s=a.sent)||0!==s.code){a.next=9;break}r.$notify.success({title:"删除成功",message:""}),r.searchList(),a.next=15;break;case 9:if(s&&100<=s.code&&s.code<=104)return a.next=12,r.logout();a.next=14;break;case 12:a.next=15;break;case 14:r.$message.warning(s.message);case 15:case"end":return a.stop()}}),a)})))).catch((function(){}));case 2:case"end":return n.stop()}}),n)})))()},searchList:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r,a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(""!==e.parmValue.start&&""===e.parmValue.end||""===e.parmValue.start&&""!==e.parmValue.end)return e.$message.warning("时间区间不完整!"),t.abrupt("return");t.next=3;break;case 3:return e.loading=!0,e.parmValue.returnCode="returnCode"===e.select?e.s_input:"",e.parmValue.orderCode="orderCode"===e.select?e.s_input:"",e.parmValue.apply_name="apply_name"===e.select?e.s_input:"",r=JSON.parse(JSON.stringify(e.parmValue)),t.next=10,c.a.list(r);case 10:if(!(a=t.sent)||0!==a.code||!a.data){t.next=16;break}e.tableData=a.data.list,e.pageInfo.total=Number(a.data.count),t.next=23;break;case 16:if(a&&100<=a.code&&a.code<=104)return t.next=19,e.logout();t.next=21;break;case 19:t.next=23;break;case 21:e.tableData=[],e.pageInfo.total=0;case 23:e.loading=!1;case 24:case"end":return t.stop()}}),t)})))()},handleCompany:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return e&&e.code&&(t.parmValue.postCompany=[e.shortName],t.parmValue.page=1),r.next=4,t.searchList();case 4:case"end":return r.stop()}}),r)})))()},handleTime:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(""!==e.startTime?t.parmValue.start=e.startTime:t.parmValue.start="",""!==e.endTime?t.parmValue.end=e.endTime:t.parmValue.end="",""!==t.parmValue.start&&""!==t.parmValue.end)return t.parmValue.page=1,r.next=6,t.searchList();r.next=6;break;case 6:case"end":return r.stop()}}),r)})))()}}},r("010b"),o=r("2877"),s=Object(o.a)(i,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"sellReturn pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?r("div",[r("ex-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{table:e.table,data:e.tableData,columns:e.columns,page:e.pageInfo,size:e.size},on:{"page-curr-change":e.handlePageChange,"page-size-change":e.handleSizeChange,"screen-reset":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()},"screen-submit":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},scopedSlots:e._u([{key:"table-header",fn:function(t){return[r("div",{staticStyle:{width:"100%"}},[r("el-row",{staticStyle:{padding:"0 0 0 80px"}},[r("el-col",{attrs:{span:24}},[r("el-col",{staticStyle:{width:"303px",padding:"0 0 0 0px"},attrs:{span:6}},[r("period-date-picker",{attrs:{type:1,width:"135px",size:e.searchSize,start:e.parmValue.start,end:e.parmValue.end},on:{timeReturned:e.handleTime}})],1),r("el-col",{staticStyle:{width:"150px",padding:"0 0 0 0px"},attrs:{span:4}},[r("el-select",{staticStyle:{width:"100%"},attrs:{size:e.searchSize,filterable:"",clearable:"",placeholder:"退货单状态"},on:{change:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.parmValue.status,callback:function(t){e.$set(e.parmValue,"status",t)},expression:"parmValue.status"}},e._l(e.statusOptions,(function(e){return r("el-option",{key:"status"+e.id,attrs:{label:e.label,value:e.id}})})),1)],1),r("el-col",{staticStyle:{width:"400px",padding:"0 0 0 10px"},attrs:{span:6}},[r("el-input",{staticClass:"input-with-select",attrs:{clearable:"",placeholder:"关键字",maxlength:"40",size:e.searchSize},model:{value:e.s_input,callback:function(t){e.s_input=t},expression:"s_input"}},[r("el-select",{staticStyle:{width:"150px"},attrs:{slot:"prepend",placeholder:"关键字类型"},slot:"prepend",model:{value:e.select,callback:function(t){e.select=t},expression:"select"}},[r("el-option",{attrs:{label:"销售退货单编号",value:"returnCode"}}),r("el-option",{attrs:{label:"销售订单编号",value:"orderCode"}}),r("el-option",{attrs:{label:"申请人",value:"apply_name"}})],1),r("el-button",{attrs:{slot:"append",icon:"el-icon-search"},on:{click:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},slot:"append"})],1)],1),r("el-col",{staticClass:"fr",staticStyle:{width:"66px",padding:"0 0 0 10px"},attrs:{span:4}},[r("el-button",{staticClass:"fr",attrs:{type:"warning",size:e.searchSize},on:{click:e.restSearch}},[e._v(" 重置 ")])],1),r("el-col",{staticStyle:{width:"66px",float:"right"},attrs:{span:3}},[r("el-button",{staticStyle:{float:"right","margin-left":"5px"},attrs:{size:e.searchSize,type:"primary"},on:{click:e.searchList}},[e._v(" 刷新 ")])],1)],1)],1),r("el-row",{staticStyle:{padding:"10px 0 0 0"}})],1)]}},{key:"status",fn:function(t){var a=t.scope;return[r("el-tag",{attrs:{size:e.tablebtnSize,type:"0"==a.row.status?"warning":""},domProps:{textContent:e._s((e.statusOptions.find((function(e){return e.id==a.row.status}))||{}).label||"--")}})]}},{key:"operation",fn:function(t){var a=t.scope;return[e.powers.some((function(e){return"007"==e}))?r("el-tooltip",{attrs:{effect:"dark",content:"详情",placement:"top"}},[r("i",{staticClass:"el-icon-view tb-icon",on:{click:function(t){return e.routeGoto("sellReturnDetail",{id:a.row.returnCode})}}})]):e._e()]}}],null,!1,1061604328)})],1):r("div",[r("no-auth")],1)])}),[],!1,null,"34ccc8f0",null);t.default=s.exports},fc11:function(e,t,r){"use strict";var a=r("1b69"),n="admin/";t.a={add:function(e,t){return Object(a.a)(n+"usecreate",e,"post",t)},delete:function(e,t){return Object(a.a)(n+"usedelete",e,"post",t)},list:function(e,t){return Object(a.a)(n+"uselist",e,"post",t)},update:function(e,t){return Object(a.a)(n+"useedit",e,"post",t)},status:function(e,t){return Object(a.a)(n+"usestatus",e,"post",t)},detail:function(e,t){return Object(a.a)(n+"useinfo",e,"post",t)}}},fcad:function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=(r("96cf"),r("7db0"),r("d3b7"),r("159b"),r("b0c0"),r("f5ed")),s=r("9f53"),i=r("b8d2"),o=r("9a12"),l=r("ce05"),c=[{prop:"thNo",label:"售后退货单编号",span:6},{prop:"status",label:"售后退货单状态",_slot_:"status",span:6},{prop:"returnCode",label:"售后申请单编号",span:6},{prop:"apply_name",label:"申请人",span:6},{prop:"outCode",label:"发货申请单编号",span:6},{prop:"orderCode",label:"订单编号",span:6},{prop:"addtime",label:"创建时间",span:6},{prop:"contactor",label:"退回联系人",span:6},{prop:"mobile",label:"退回联系电话",span:6},{prop:"return_msg",label:"退回原因",span:12},{prop:"addtime",label:"创建时间",span:6},{prop:"addr",label:"退回联系地址",span:18}];n={name:"returnOrderDetail",mixins:[n.a,s.a],components:{ReturnRecord:o.default,ReturnCheck:l.default},computed:{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"returnOrderDetail"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}},data:function(){return{activeTabs:"1",ShowDataTableColumns:c,statusOptions:[{value:"0",label:"取消"},{value:"1",label:"退货商品验收"},{value:"2",label:"退货验收审核"},{value:"3",label:"退货业务审核"},{value:"4",label:"退货已完成"}],sitem:null,orderCode:"",activeNames:["-1","0","1","2"],status:"",statusList:[{value:"1",label:"待验货"},{value:"2",label:"待验货审核"},{value:"3",label:"待业务审核"}],newTime:"",loading:!1,queryId:""}},mounted:function(){this.queryId=this.$route.query.id,this.initData()},methods:{getNewTime:function(){this.newTime=(new Date).valueOf()},examForm:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){var a;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t.loading){r.next=4;break}return a="1"===e.state?"4":e.rebut,r.next=4,t.setstatus(a,"提交业务审核",e.remark);case 4:case"end":return r.stop()}}),r)})))()},setstatus:function(e,t,r){var n=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n.$confirm("确定要".concat("4"===e?"同意":"驳回","?"),{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(a.a)(regeneratorRuntime.mark((function t(){var a,s;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a={thNo:n.queryId,status:e,remark:r},t.next=3,i.a.status(a);case 3:if((s=t.sent)&&0===s.code)return n.$notify.success({title:"修改成功!",message:""}),t.next=8,n.initData();t.next=10;break;case 8:t.next=16;break;case 10:if(s&&100<=s.code&&s.code<=104)return t.next=13,n.logout();t.next=15;break;case 13:t.next=16;break;case 15:n.$message.warning(s.message);case 16:case"end":return t.stop()}}),t)})))).catch((function(){}));case 2:case"end":return t.stop()}}),t)})))()},initData:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r,a,n,s,o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a={thNo:e.queryId},t.next=3,i.a.detail(a);case 3:if(!(r=t.sent)||0!==r.code||!r.data){t.next=13;break}e.sitem=r.data,a=e.sitem,n=a.status,s=a.orderCode,o=a.can,e.status=n,e.orderCode=s,o&&0<o.length&&(e.sitem.class_cat="",o.forEach((function(t,r){e.sitem.class_cat+=0===r?t.name:"/"+t.name}))),e.getNewTime(),t.next=19;break;case 13:if(r&&100<=r.code&&r.code<=104)return t.next=16,e.logout();t.next=18;break;case 16:t.next=19;break;case 18:e.$message.warning(r.message);case 19:case"end":return t.stop()}}),t)})))()}}},s=r("2877"),o=Object(s.a)(n,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("div",{staticClass:"returnOrderDetail pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?t("div",{staticStyle:{width:"100%"}},[t("p",[e._v(e._s(e.status)+"---"+e._s(e.powers))]),t("el-tabs",{model:{value:e.activeTabs,callback:function(t){e.activeTabs=t},expression:"activeTabs"}},[t("el-tab-pane",{attrs:{label:"业务详情",name:"1"}},[t("el-collapse",{staticStyle:{margin:"-18px 0 0 0"},model:{value:e.activeNames,callback:function(t){e.activeNames=t},expression:"activeNames"}},[t("el-collapse-item",{attrs:{title:"售后退货单详情",name:"-1"}},[""!==e.newTime?t("show-data-table",{attrs:{newTime:e.newTime,sitem:e.sitem,columns:e.ShowDataTableColumns}},[t("template",{slot:"status"},[t("el-tag",{attrs:{size:"mini",type:"0"==e.sitem.status?"warning":""},domProps:{textContent:e._s((e.statusOptions.find((function(t){return t.value==e.sitem.status}))||{}).label||"--")}})],1)],2):e._e()],1),t("el-collapse-item",{attrs:{title:"退货验收记录",name:"0"}},[""!==e.newTime?t("return-record",{attrs:{sitem:e.sitem,newTime:e.newTime},on:{refresh:e.initData}}):e._e()],1),"2"==e.status||"3"==e.status||"4"==e.status?t("el-collapse-item",{attrs:{title:"退货验收审核",name:"1"}},[""!=e.newTime?t("return-check",{attrs:{newTime:e.newTime,sitem:e.sitem},on:{refresh:e.initData}}):e._e()],1):e._e(),"3"==e.status&&e.powers.some((function(e){return"043"==e}))?t("el-collapse-item",{attrs:{title:"业务审核",name:"2"}},[t("exam-form",{attrs:{statusList:[{value:"1",label:"待验货"},{value:"2",label:"待验货审核"}],newTime:e.newTime,disabled:!1,isMust:!0},on:{searchChange:e.examForm}})],1):e._e()],1)],1),t("el-tab-pane",{attrs:{label:"审批记录",name:"2"}},[""!==e.newTime?t("process-time-line",{attrs:{newTime:e.newTime,type:"CKTHD",orderCode:e.queryId}}):e._e()],1)],1)],1):t("div",[t("no-auth")],1)])}),[],!1,null,null,null);t.default=o.exports},fcbc:function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=(r("7db0"),r("d3b7"),r("96cf"),r("f1ed")),s={name:"brand",props:["showModel","index","sitem"],mixins:[r("9f53").a],data:function(){return{loading:!1,title:"商品规格",sinput:"",showModelThis:this.showModel,specVlist:[],ruleForm:{},rulesThis:this.rules,rules:{specid:[{required:!0,message:"规格类型不能为空",trigger:"change"}],spec_value_id:[{required:!0,message:"请选择规格值",trigger:"change"}]}}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis:function(e){e||this.$emit("cancel")}},methods:{initForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,e.resetFormData(),e.rulesThis=e.rules,e.index+""=="-1"?e.title="添加商品规格值":e.title="修改商品规格值",t.next=6,e.resetForm();case 6:e.loading=!1;case 7:case"end":return t.stop()}}),t)})))()},resetForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$nextTick(Object(a.a)(regeneratorRuntime.mark((function t(){var r,a,n,s;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.$refs.ruleForm){t.next=10;break}if(e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),e.index+""!="-1")return e.specVlist=[],s=e.sitem,r=s.specid,a=s.spec_name,n=s.spec_value_id,s=s.spec_value_name,e.ruleForm={index:e.index,specid:r||"",spec_name:a||"",spec_value_id:n||"",spec_value_name:s||""},t.next=9,e.getlist();t.next=10;break;case 9:case 10:case"end":return t.stop()}}),t)}))));case 2:case"end":return t.stop()}}),t)})))()},resetFormData:function(){this.specVlist=[],this.ruleForm={index:"-1",specid:"",spec_name:"",spec_value_id:"",spec_value_name:""}},add_spec:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r,a,s;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(r=e.ruleForm.specid)){t.next=25;break}if(e.sinput)return t.next=5,n.a.valueadd({spec_id:r,spec_value:e.sinput});t.next=22;break;case 5:if(r=t.sent,a=r.code,r.data,s=r.message,0===a)return t.next=12,e.getlist();t.next=14;break;case 12:t.next=20;break;case 14:if(100<=a&&a<=104)return t.next=17,e.logout();t.next=19;break;case 17:t.next=20;break;case 19:e.$message.warning(s);case 20:t.next=23;break;case 22:e.$message.warning("请输入规格值!");case 23:t.next=26;break;case 25:e.$message.warning("请选择规格类型!");case 26:case"end":return t.stop()}}),t)})))()},specidsearchChange:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){var a,n;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a=e.id,n=e.spec_name,t.ruleForm.specid=a||"",t.ruleForm.spec_name=n||"",t.$refs.ruleForm.validateField("specid"),r.next=6,t.getlist();case 6:case"end":return r.stop()}}),r)})))()},spec_value_id_change:function(e){var t,r;e?(t=(r=this.specVlist.find((function(t){return t.id===e}))).id,r=r.spec_value,this.ruleForm.spec_value_id=t||"",this.ruleForm.spec_value_name=r||""):(this.ruleForm.spec_value_id="",this.ruleForm.spec_value_name=""),this.$refs.ruleForm.validateField("spec_value_id")},getlist:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r,a,s,i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e.ruleForm.specid)return t.next=4,n.a.valueall({spec_id:r});t.next=20;break;case 4:if(r=t.sent,a=r.code,s=r.data,i=r.message,0!==a){t.next=12;break}e.specVlist=s,t.next=18;break;case 12:if(100<=a&&a<=104)return t.next=15,e.logout();t.next=17;break;case 15:t.next=18;break;case 17:e.$message.warning(i);case 18:t.next=21;break;case 20:e.specVlist=[];case 21:case"end":return t.stop()}}),t)})))()},submitForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.ruleForm.validate(function(){var t=Object(a.a)(regeneratorRuntime.mark((function t(r){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r){t.next=6;break}e.showModelThis=!1,e.$emit("refresh",e.ruleForm),t.next=8;break;case 6:return t.abrupt("return",!1);case 8:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()}}};r("ea33"),r=r("2877"),r=Object(r.a)(s,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:e.title,center:!0,align:"left",top:"18vh",width:"570px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)","append-to-body":""},on:{"update:visible":function(t){e.showModelThis=t},close:function(t){e.showModelThis=!1}}},[r("el-card",{staticStyle:{margin:"-20px 0 0 0"}},[r("el-row",{attrs:{gutter:10}},[r("el-col",{attrs:{span:24}},[r("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",size:"small",rules:e.rulesThis,"label-width":"80px"}},[r("el-form-item",{attrs:{label:"规格类型",prop:"specid"}},[r("search-spec",{attrs:{value:e.ruleForm.specid,disabled:!1,size:"mini",isDetail:!1,placeholder:"规格类型"},on:{searchChange:e.specidsearchChange}})],1),r("el-form-item",{attrs:{label:"规格值",prop:"spec_value_id"}},[0<e.specVlist.length?r("div",[r("el-radio-group",{on:{change:e.spec_value_id_change},model:{value:e.ruleForm.spec_value_id,callback:function(t){e.$set(e.ruleForm,"spec_value_id",t)},expression:"ruleForm.spec_value_id"}},e._l(e.specVlist,(function(t){return r("el-radio",{key:t.id+t.spec_value,attrs:{label:t.id}},[e._v(e._s(t.spec_value))])})),1)],1):r("div",{staticClass:"no-data"},[e._v("暂无规格值,请添加!")])])],1)],1),r("el-col",{staticStyle:{"text-align":"right"},attrs:{span:24}},[r("el-input",{staticClass:"fl",staticStyle:{width:"209px"},attrs:{disabled:"edit"==e.id,size:"small",placeholder:"规格值名称,如红色",maxlength:"20"},model:{value:e.sinput,callback:function(t){e.sinput=t},expression:"sinput"}}),r("el-button",{staticClass:"fl",staticStyle:{margin:"0 0 0 10px"},attrs:{icon:"el-icon-plus",size:"small"},on:{click:e.add_spec}},[e._v("新增规格值")]),"edit"!==e.id?r("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.submitForm}},[e._v("保 存 ")]):e._e(),r("el-button",{attrs:{size:"small"},on:{click:function(t){e.showModelThis=!1}}},[e._v(e._s("edit"==e.id?"关 闭":"取 消"))])],1)],1)],1)],1)}),[],!1,null,"d15bb5ee",null);t.default=r.exports},fd63:function(e,t,r){"use strict";r("0f36")},fdb1:function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=(r("96cf"),r("61f7")),s=r("6a1e"),i={name:"Login",mixins:[r("9f53").a],data:function(){return{loginForm:{mobile:"",code:""},loginRules:{mobile:[{required:!0,trigger:"blur",validator:function(e,t,r){""===t?r(new Error("手机号不能为空!")):Object(n.g)(t)?r():r(new Error("手机号不正确!"))}}],code:[{required:!0,trigger:"blur",validator:function(e,t,r){""===t?r(new Error("验证码不能为空!")):Object(n.k)(t)&&6===t.length?r():r(new Error("验证码应为6位数字!"))}}]},loading:!1,otherQuery:{}}},mounted:function(){this.resetForm()},methods:{resetForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$nextTick((function(){e.$refs.ruleForm&&(e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),e.ruleForm={mobile:"",code:""})}));case 2:case"end":return t.stop()}}),t)})))()},handleLogin:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.$refs.loginForm.validate(function(){var t=Object(a.a)(regeneratorRuntime.mark((function t(r){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r){t.next=4;break}e.loading||(e.loading=!0,s.a.resetmobile(e.loginForm).then(function(){var t=Object(a.a)(regeneratorRuntime.mark((function t(r){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r&&0===r.code)return e.loading=!1,e.$message.success(r.message),t.next=5,e.logout();t.next=7;break;case 5:t.next=14;break;case 7:if(r&&100<=r.code&&r.code<=104)return t.next=10,e.logout();t.next=12;break;case 10:t.next=14;break;case 12:e.$message.warning(r.message),e.loading=!1;case 14:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())),t.next=6;break;case 4:return t.abrupt("return",!1);case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 1:case"end":return t.stop()}}),t)})))()}}};r("dced"),r("efc5"),r=r("2877"),r=Object(r.a)(i,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("div",{staticClass:"change-mobile"},[t("div",{staticClass:"change"},[t("div",{staticClass:"title"},[e._v("更换手机号")]),t("el-form",{ref:"loginForm",staticClass:"login-form",attrs:{model:e.loginForm,rules:e.loginRules,autocomplete:"on","label-position":"right","label-width":"100px"}},[t("el-form-item",{attrs:{prop:"mobile",label:"新手机号:"}},[t("el-input",{ref:"mobile",attrs:{placeholder:"手机号",name:"mobile",type:"text",maxlength:"11",tabindex:"1",autocomplete:"on"},model:{value:e.loginForm.mobile,callback:function(t){e.$set(e.loginForm,"mobile",t)},expression:"loginForm.mobile"}})],1),t("el-form-item",{staticClass:"code-sign",attrs:{prop:"code",label:"验证码:"}},[t("ul",{staticClass:"code-main"},[t("li",[t("el-input",{ref:"code",attrs:{placeholder:"验证码",name:"code",type:"code",tabindex:"1",autocomplete:"on"},model:{value:e.loginForm.code,callback:function(t){e.$set(e.loginForm,"code",t)},expression:"loginForm.code"}})],1),t("li",[t("send-verification-code",{attrs:{mobile:e.loginForm.mobile}})],1)])]),t("el-button",{staticStyle:{width:"98%",margin:"15px 0 0 5%"},attrs:{loading:e.loading,type:"primary",round:""},nativeOn:{click:function(t){return t.preventDefault(),e.handleLogin(t)}}},[e._v("确认修改")])],1)],1)])}),[],!1,null,"aae05b16",null);t.default=r.exports},fe56:function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=r("5530"),s=(r("96cf"),r("7db0"),r("d3b7"),r("e9c4"),r("d1e0")),i=r("9f53"),o=r("2f62"),l=r("3732");i={name:"bargainListDetail",mixins:[i.a],computed:Object(n.a)(Object(n.a)({},Object(o.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"bargainListDetail"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),data:function(){return{statusList:[],size:"small",editColumns:l.a,options1:l.c,options2:l.g,options3:l.h,options4:l.i,options5:l.j,options6:l.k,options7:l.l,options8:l.m,options9:l.n,options10:l.d,options11:l.e,options12:l.f,projectTabs:"1",activeNames:["0","1","2","3","4","5","6","7","8","9"],newTime:"",loading:!1,queryType:"",queryId:"",status:"",sitem:null,options:[{id:"1",label:"待主管审批",type:""},{id:"2",label:"待财务专员审批",type:""},{id:"3",label:"待财务主管审批",type:""},{id:"4",label:"审批通过",type:""},{id:"5",label:"主管驳回",type:""},{id:"6",label:"财务主管驳回",type:""},{id:"7",label:"已取消议价",type:""}]}},mounted:function(){this.initForm()},methods:{initForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r,a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=e.$route.query,r=a.id,a=a.type,e.queryId=r,e.queryType=a,e.projectTabs="1",e.loading=!0,t.next=7,e.initData();case 7:e.loading=!1;case 8:case"end":return t.stop()}}),t)})))()},handleClick:function(e){},refresh:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.routeReGoto("bargainList",{});case 1:case"end":return t.stop()}}),t)})))()},initData:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r,a,n,i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,t.next=3,s.a.detail({bargainNo:e.queryId});case 3:if(n=t.sent,r=n.code,a=n.message,n=n.data,e.loading=!1,0!==r){t.next=15;break}e.sitem=JSON.parse(JSON.stringify(n)),n=e.sitem,i=n.status,n.can,e.status=i,e.getNewTime(),t.next=21;break;case 15:if(100<=r&&r<=104)return t.next=18,e.logout();t.next=20;break;case 18:t.next=21;break;case 20:e.$message.warning(a);case 21:case"end":return t.stop()}}),t)})))()},getNewTime:function(){this.newTime=(new Date).valueOf()},examForm:function(e,t,r){var n=this;return Object(a.a)(regeneratorRuntime.mark((function a(){var s;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(n.loading){a.next=6;break}return(s={bargainNo:n.queryId,status:"",remark:"1"===e.state?"":e.remark}).status=1===t?"1"===e.state?"2":"5":2===t?"3":"1"===e.state?"4":"6",a.next=6,n.setstatus("提交".concat(r,"审核"),s);case 6:case"end":return a.stop()}}),a)})))()},setstatus:function(e,t){var r=this;return Object(a.a)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r.$confirm("确定要".concat(e,"?"),{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(a.a)(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,s.a.status(t);case 2:if((a=e.sent)&&0===a.code)return r.$notify.success({title:"提交成功!",message:""}),e.next=7,r.initForm();e.next=9;break;case 7:e.next=15;break;case 9:if(a&&100<=a.code&&a.code<=104)return e.next=12,r.logout();e.next=14;break;case 12:e.next=15;break;case 14:r.$message.warning(a.message);case 15:case"end":return e.stop()}}),e)})))).catch((function(){}));case 2:case"end":return n.stop()}}),n)})))()}}},r("de65"),n=r("2877"),o=Object(n.a)(i,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"bargainListDetail"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"007"==e}))?r("div",{staticClass:"bargainListDetail-main"},[r("el-tabs",{model:{value:e.projectTabs,callback:function(t){e.projectTabs=t},expression:"projectTabs"}},[r("el-tab-pane",{attrs:{label:"议价单详情",name:"1"}},[r("el-collapse",{staticStyle:{margin:"-18px 0 0 0"},model:{value:e.activeNames,callback:function(t){e.activeNames=t},expression:"activeNames"}},[r("el-collapse-item",{attrs:{title:"议价详情",name:"1"}},[""!==e.newTime&&"view"===e.queryType?r("show-data-table",{staticStyle:{padding:"-5px 0 10px 0"},attrs:{newTime:e.newTime,sitem:e.sitem,columns:e.editColumns}},[r("template",{slot:"status"},[r("el-tag",{attrs:{size:e.tablebtnSize},domProps:{textContent:e._s((e.options.find((function(t){return t.id==e.sitem.status}))||{}).label||"--")}})],1),r("template",{slot:"good_name"},[e.sitem.good_img?r("img",{directives:[{name:"viewer",rawName:"v-viewer"}],staticClass:"fl hover",staticStyle:{width:"23px",height:"23px",margin:"0","vertical-align":"top"},attrs:{src:e.sitem.good_img,alt:""}}):e._e(),r("span",{staticStyle:{"vertical-align":"top"}},[e._v(e._s(e.sitem.good_name))])]),r("template",{slot:"specinfo"},e._l(e.sitem.specinfo,(function(t,a){return r("span",{key:t.specid+a},[0!==a?r("span",[e._v("--")]):e._e(),e._v(e._s(t.spec_name)+"["+e._s(t.spec_value_name)+"]")])})),0),r("template",{slot:"can"},e._l(e.sitem.can,(function(t,a){return r("span",{key:t.id+a},[0!==a?r("span",[e._v("_")]):e._e(),e._v(e._s(t.name))])})),0),r("template",{slot:"is_addrs"},[r("el-tag",{attrs:{size:e.tablebtnSize},domProps:{textContent:e._s((e.options12.find((function(t){return t.id==e.sitem.is_addrs}))||{}).name||"--")}})],1),r("template",{slot:"is_custom"},[r("el-tag",{attrs:{size:e.tablebtnSize},domProps:{textContent:e._s((e.options1.find((function(t){return t.id==e.sitem.is_custom}))||{}).name||"--")}})],1),r("template",{slot:"supply_area"},[r("el-tag",{attrs:{size:e.tablebtnSize},domProps:{textContent:e._s((e.options6.find((function(t){return t.id===e.sitem.supply_area}))||{}).name||"--")}})],1),r("template",{slot:"pay_way"},[r("el-tag",{attrs:{size:e.tablebtnSize},domProps:{textContent:e._s((e.options10.find((function(t){return t.id==e.sitem.pay_way}))||{}).name||"--")}})],1),r("template",{slot:"send_way"},[r("el-tag",{attrs:{size:e.tablebtnSize},domProps:{textContent:e._s((e.options11.find((function(t){return t.id==e.sitem.send_way}))||{}).name||"--")}})],1),r("template",{slot:"good_num"},[r("span",[e._v(e._s(e.sitem.good_num||"0")+e._s(e.sitem.unit))])]),r("template",{slot:"metal_id"},[e.sitem.metal_id?r("span",[e._v(e._s(e.sitem.noble_weight||"0")+"g---"+e._s(e.sitem.metal_name)+"---"+e._s(e.sitem.gold_price||"0")+"元/g---"+e._s("0"===e.sitem.is_gold_price?"不":"")+"启用实时金价---"+e._s("1"===e.sitem.is_diff?"有":"无")+"工差---"+e._s(e.sitem.config)+"---"+e._s(e.sitem.other_config))]):r("span",[e._v("--")])])],2):e._e()],1),"1"==e.status&&e.powers.some((function(e){return"043"==e}))?r("el-collapse-item",{attrs:{title:"业务部门审批",name:"2"}},[r("exam-form",{attrs:{statusList:[],newTime:e.newTime,disabled:!1,isMust:!1},on:{searchChange:function(t){return e.examForm(t,1,"业务部门")}}})],1):e._e(),"2"==e.status&&e.powers.some((function(e){return"058"==e}))?r("el-collapse-item",{attrs:{title:"财务专员审批",name:"3"}},[r("exam-form",{attrs:{statusList:[],newTime:e.newTime,disabled:!1,isMust:!1},on:{searchChange:function(t){return e.examForm(t,2,"财务专员")}}})],1):e._e(),"3"==e.status&&e.powers.some((function(e){return"059"==e}))?r("el-collapse-item",{attrs:{title:"财务主管审批",name:"4"}},[r("exam-form",{attrs:{statusList:[],newTime:e.newTime,disabled:!1,isMust:!1},on:{searchChange:function(t){return e.examForm(t,3,"财务主管")}}})],1):e._e()],1)],1),r("el-tab-pane",{attrs:{label:"审批记录",name:"3"}},[""!==e.newTime?r("process-time-line",{attrs:{newTime:e.newTime,type:"YJD",orderCode:e.queryId}}):e._e()],1)],1)],1):r("div",[r("no-auth")],1)])}),[],!1,null,"32265577",null);t.default=o.exports},fe5e:function(e,t,r){"use strict";r("80ae")},fec6:function(e,t,r){"use strict";r("3851")},feca:function(e,t,r){var a={"./dashboard/index.vue":"9406","./developing/index.vue":"d668","./error-page/404.vue":"1db4","./good-share/components/changeBackGood.vue":"965c","./good-share/components/showBackGood.vue":"f7c7","./good-share/index.vue":"1e21","./goodStore/active/components/baseForm.vue":"e94b","./goodStore/active/components/edit-minorder-form.vue":"2f3b","./goodStore/active/components/finance-exam-one-form.vue":"2a42","./goodStore/active/components/finance-exam-three-form.vue":"c73d","./goodStore/active/components/finance-exam-two-form.vue":"c4e2","./goodStore/active/components/set-active-price-form.vue":"1a95","./goodStore/active/detail.vue":"92bc","./goodStore/active/index.vue":"15af","./goodStore/active/ladderPrice.vue":"a211","./goodStore/activeGood/index.vue":"e1d3","./goodStore/brand/addEdit.vue":"9010","./goodStore/brand/index.vue":"1da4","./goodStore/dealGoodsPool/index.vue":"a072","./goodStore/goldPrice/components/addEdit.vue":"1fe0","./goodStore/goldPrice/components/priceList.vue":"9cc0","./goodStore/goldPrice/components/priceRecord.vue":"387e","./goodStore/goldPrice/index.vue":"6aee","./goodStore/goodsCost/components/addEdit.vue":"1598","./goodStore/goodsCost/components/baseForm.vue":"e470","./goodStore/goodsCost/components/baseFormAddEdit.vue":"2408","./goodStore/goodsCost/components/costFormAddEdit.vue":"4129","./goodStore/goodsCost/detail.vue":"b5b8","./goodStore/goodsCost/index.vue":"ff1a","./goodStore/goodsCost/ladderPrice.vue":"db84","./goodStore/goodsOnline/add.vue":"dd07","./goodStore/goodsOnline/components/costFormAddEdit.vue":"997b","./goodStore/goodsOnline/components/fixed-price-form.vue":"b747","./goodStore/goodsOnline/components/handle-online-form.vue":"40e8","./goodStore/goodsOnline/components/online-exam-form.vue":"ba30","./goodStore/goodsOnline/detail.vue":"6eba","./goodStore/goodsOnline/index.vue":"48c3","./goodStore/goodsRepertory/index.vue":"e744","./goodStore/searchSort/addEdit.vue":"1cf1","./goodStore/searchSort/index.vue":"8c04","./goodStore/sort/addEdit.vue":"62a1","./goodStore/sort/addEditRate.vue":"2526","./goodStore/sort/index.vue":"86a3","./goodStore/specs/addEdit.vue":"bb68","./goodStore/specs/index.vue":"743d","./goodStore/unit/addEdit.vue":"2f35","./goodStore/unit/index.vue":"7274","./interest/account/addEdit.vue":"6d88","./interest/account/index.vue":"c420","./interest/account/resetPassword.vue":"1842","./interest/action/index.vue":"7914","./interest/dataShare/addEdit.vue":"b32b","./interest/dataShare/index.vue":"9e7a","./interest/group/addEdit.vue":"d79e","./interest/group/index.vue":"2ee3","./interest/handover/addDetail.vue":"22af","./interest/handover/components/addEdit.vue":"d2f9","./interest/handover/components/addEditForm.vue":"d513","./interest/handover/detail.vue":"6d94","./interest/handover/index.vue":"4029","./interest/organize/addEdit.vue":"9cd7","./interest/organize/index.vue":"ee5c","./interest/role/addEdit.vue":"f291","./interest/role/index.vue":"d4aa","./loadingPage/index.vue":"7e10","./login/forget-password.vue":"43b9","./login/index.vue":"9ed6","./person-infor/change-password.vue":"a9ad","./person-infor/change-phone.vue":"fdb1","./person-infor/my-message.vue":"2cc2","./plan-change/index.vue":"78ba","./process/done/index.vue":"a4dd","./process/oing/index.vue":"18c5","./process/read/index.vue":"130d","./process/unRead/index.vue":"233c","./purchaseIn/purchaseDiffOrder/addEditModel.vue":"f235","./purchaseIn/purchaseDiffOrder/detail.vue":"1068","./purchaseIn/purchaseDiffOrder/index.vue":"7b4a","./purchaseIn/purchaseOrder/components/order-in-table.vue":"bf09","./purchaseIn/purchaseOrder/components/tolerance.vue":"1394","./purchaseIn/purchaseOrder/components/work-diff-table.vue":"6419","./purchaseIn/purchaseOrder/detail.vue":"f63c","./purchaseIn/purchaseOrder/index.vue":"b582","./purchaseIn/purchaseReturn/components/purchase-order-addEdit.vue":"1b7b","./purchaseIn/purchaseReturn/detail.vue":"93e6","./purchaseIn/purchaseReturn/index.vue":"4cf7","./purchaseIn/workbench/components/baseForm.vue":"931c","./purchaseIn/workbench/components/baseFormAddEdit.vue":"768a","./purchaseIn/workbench/detail.vue":"866f","./purchaseIn/workbench/index.vue":"cdb9","./purchaseIn/workbench/ladderPrice.vue":"b051","./purchaseIn/wsmInOrder/components/wsm-in-order-check-form.vue":"431b","./purchaseIn/wsmInOrder/components/wsm-in-order-error-model.vue":"4429","./purchaseIn/wsmInOrder/components/wsm-in-order-model.vue":"19d7","./purchaseIn/wsmInOrder/components/wsm-in-order-record-form.vue":"4449","./purchaseIn/wsmInOrder/components/wsm-in-order-return-form.vue":"6dad","./purchaseIn/wsmInOrder/detail.vue":"52dd","./purchaseIn/wsmInOrder/index.vue":"35c1","./redirect/index.vue":"ef3c","./sellOut/bargainList/detail.vue":"fe56","./sellOut/bargainList/index.vue":"ec42","./sellOut/project/components/addForm.vue":"c4db","./sellOut/project/components/backGoodShow.vue":"129e","./sellOut/project/components/buyGoodModal.vue":"e7f4","./sellOut/project/components/costFormAddEdit.vue":"92b3","./sellOut/project/components/grossForm.vue":"c4b4","./sellOut/project/components/search-good-online-table-modal/index.vue":"f0fe","./sellOut/project/components/setPlan.vue":"787f","./sellOut/project/detail.vue":"f5e0","./sellOut/project/index.vue":"6a5d","./sellOut/returnOrder/addEdit.vue":"a451","./sellOut/returnOrder/components/return-record.vue":"9a12","./sellOut/returnOrder/components/returnCheck.vue":"ce05","./sellOut/returnOrder/detail.vue":"fcad","./sellOut/returnOrder/index.vue":"20db","./sellOut/salesOrder/components/addEdit.vue":"204b","./sellOut/salesOrder/components/addForm.vue":"60bb","./sellOut/salesOrder/components/order-out-table.vue":"798a9","./sellOut/salesOrder/components/out-order-add-model.vue":"962f","./sellOut/salesOrder/detail.vue":"dd65","./sellOut/salesOrder/index.vue":"9a39","./sellOut/salesOrder/setPartial.vue":"61d6","./sellOut/salesOrder/userAddEdit.vue":"d548","./sellOut/sellAfterApply/components/express_feedback.vue":"f37e","./sellOut/sellAfterApply/components/purchase_exam.vue":"5fdc","./sellOut/sellAfterApply/detail.vue":"23b4","./sellOut/sellAfterApply/index.vue":"a204","./sellOut/sellOutOrder/components/addEdit.vue":"b386","./sellOut/sellOutOrder/components/addEditA.vue":"d7bc","./sellOut/sellOutOrder/components/addEditForm.vue":"e1a4","./sellOut/sellOutOrder/components/addEditFormA.vue":"49de","./sellOut/sellOutOrder/components/addEdit_sellForm.vue":"547b","./sellOut/sellOutOrder/components/addEdit_sellReturnOrder.vue":"9b5e","./sellOut/sellOutOrder/components/express_feedback.vue":"83bf","./sellOut/sellOutOrder/components/logisticsForm.vue":"e7e7","./sellOut/sellOutOrder/components/purchase_check.vue":"3bdc","./sellOut/sellOutOrder/components/returnExpress.vue":"95d0","./sellOut/sellOutOrder/components/supplier_feedback.vue":"1733","./sellOut/sellOutOrder/components/want-deliver.vue":"ed14","./sellOut/sellOutOrder/detail.vue":"1d35","./sellOut/sellOutOrder/index.vue":"0985","./sellOut/sellReturn/components/addForm.vue":"c421","./sellOut/sellReturn/components/addModel.vue":"d9c3","./sellOut/sellReturn/components/comExamForm.vue":"2914","./sellOut/sellReturn/detail.vue":"bada","./sellOut/sellReturn/index.vue":"fb71","./sellOut/stockApply/components/addEdit.vue":"406e","./sellOut/stockApply/components/purchaseBack.vue":"0d0c","./sellOut/stockApply/detail.vue":"7a78","./sellOut/stockApply/index.vue":"5975","./sellOut/zixunOrder/components/addEditBargain.vue":"ad6d1","./sellOut/zixunOrder/components/addEditForm.vue":"234a","./sellOut/zixunOrder/components/addEditGoodModal.vue":"416e","./sellOut/zixunOrder/components/baseFormAddEdit.vue":"fcbc","./sellOut/zixunOrder/components/buyGoodModal.vue":"b87d","./sellOut/zixunOrder/components/editForm.vue":"2764","./sellOut/zixunOrder/components/feedbackList.vue":"a784","./sellOut/zixunOrder/detail.vue":"5ae0","./sellOut/zixunOrder/index.vue":"4b76","./sellOut/zxDiffOrder/components/addForm.vue":"e7e1","./sellOut/zxDiffOrder/detail.vue":"678e","./sellOut/zxDiffOrder/index.vue":"ca65","./serviceParam/Invoicing/addEdit.vue":"e502","./serviceParam/Invoicing/index.vue":"d463","./serviceParam/business/addEdit.vue":"6db9","./serviceParam/business/contactModal.vue":"9d37","./serviceParam/business/index.vue":"f77d","./serviceParam/exclusive/addEdit.vue":"034d0","./serviceParam/exclusive/index.vue":"966f","./serviceParam/expressSet/index.vue":"305b","./serviceParam/orderuse/addEdit.vue":"baa8","./serviceParam/orderuse/index.vue":"b7e3","./serviceParam/parameter/addEdit.vue":"cf7c","./serviceParam/parameter/index.vue":"5dff","./serviceParam/storeSet/addEdit.vue":"2da1","./serviceParam/storeSet/index.vue":"d4a1","./serviceParam/supplier/components/addEdit.vue":"d2cb","./serviceParam/supplier/components/baseForm.vue":"6986","./serviceParam/supplier/components/show-brand-list/index.vue":"2a17","./serviceParam/supplier/detail.vue":"9cbd","./serviceParam/supplier/index.vue":"7e66","./serviceParam/terrace/addEdit.vue":"8177","./serviceParam/terrace/index.vue":"89d1","./serviceParam/unusualReason/addEdit.vue":"d5f6","./serviceParam/unusualReason/index.vue":"4141","./serviceParam/workCompany/addEdit.vue":"9ed9","./serviceParam/workCompany/index.vue":"40ac","./stock/allot/addEdit.vue":"4504","./stock/allot/components/Inspection-table.vue":"7951","./stock/allot/components/addForm.vue":"db99","./stock/allot/components/goStock-audit.vue":"7270","./stock/allot/detail.vue":"c8bae","./stock/allot/index.vue":"54d6","./stock/check/addModel.vue":"e6b4","./stock/check/components/addEdit.vue":"1e5d","./stock/check/components/resultUplod.vue":"9ab0","./stock/check/components/resultUplodModel.vue":"7904","./stock/check/detail.vue":"80c2","./stock/check/index.vue":"e5db","./stock/stockCount/components/dataWeido/index.vue":"948d","./stock/stockCount/components/productWeido/index.vue":"b1f6","./stock/stockCount/components/spaceCount/index.vue":"9fce","./stock/stockCount/index.vue":"6695","./stock/stockWarning/addEdit.vue":"9d45","./stock/stockWarning/index.vue":"3a1a","./stock/survey/index.vue":"ccb2","./system/menuOperator/addEdit.vue":"b36d","./system/menuOperator/iconDialog.vue":"cdf1","./system/menuOperator/index.vue":"5de4","./system/oplog/index.vue":"b346","./system/parameter/addEdit.vue":"5f10","./system/parameter/index.vue":"eb67","./system/updates/index.vue":"5e53"};function n(e){return e=s(e),r(e)}function s(e){if(r.o(a,e))return a[e];throw(e=new Error("Cannot find module '"+e+"'")).code="MODULE_NOT_FOUND",e}n.keys=function(){return Object.keys(a)},n.resolve=s,(e.exports=n).id="feca"},fee1:function(e,t,r){"use strict";var a=r("1b69"),n="admin/";t.a={list:function(e,t){return Object(a.a)(n+"customerlist",e,"post",t)},zadd:function(e,t){return Object(a.a)(n+"customercreate",e,"post",t)},zdetail:function(e,t){return Object(a.a)(n+"customerselect",e,"post",t)},zupdate:function(e,t){return Object(a.a)(n+"customerupdate",e,"post",t)},zdelete:function(e,t){return Object(a.a)(n+"customerdelect",e,"post",t)},zstatus:function(e,t){return Object(a.a)(n+"customerstatus",e,"post",t)},qadd:function(e,t){return Object(a.a)(n+"customarcreate",e,"post",t)},qupdate:function(e,t){return Object(a.a)(n+"customaredit",e,"post",t)},qdetail:function(e,t){return Object(a.a)(n+"customarinfo",e,"post",t)},qdelete:function(e,t){return Object(a.a)(n+"customardelete",e,"post",t)},qstatus:function(e,t){return Object(a.a)(n+"customarstatus",e,"post",t)}}},ff1a:function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=r("5530"),s=(r("96cf"),r("7db0"),r("d3b7"),r("e9c4"),r("25f0"),r("159b"),r("b0c0"),r("a9e3"),r("f1ed")),i=r("f5ed"),o=r("2f62"),l=r("9f53"),c=r("dbbb"),u=r("1598");i={name:"goodsCost",mixins:[i.a,l.a],components:{addEdit:u.default},computed:Object(n.a)(Object(n.a)({},Object(o.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"goodsCost"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),data:function(){return{statusList:[{code:"0",name:"新建待审核",type:""},{code:"1",name:"审核通过",type:"success"},{code:"2",name:"基础修改待审核",type:""},{code:"3",name:"成本修改待审核",type:""},{code:"4",name:"基础修改驳回",type:"danger"},{code:"5",name:"成本修改驳回",type:"danger"},{code:"6",name:"新建审核驳回",type:"danger"},{code:"7",name:"复制商品待编辑",type:"info"}],isonlineoptions:[{id:"0",name:"未上线"},{id:"1",name:"已上线"}],showModel:!1,options1:c.b,loading:!1,changeList:[],parmValue:{page:1,size:15,start:"",end:"",status:"",good_name:"",spucode:"",cat_id:[],brandid:"",good_type:"",companyNo:"",supplierNo:"",isonline:""},sinput:"",select:"",tableData:[],table:{stripe:!0,border:!0,_defaultHeader_:["setcol"]},pageInfo:{size:15,curr:1,total:0},columns:c.a,supplierNo:[],brandid:[]}},mounted:function(){this.select="1",this.supplierNo=[],this.brandid=[],this.searchList()},methods:{restSearch:function(){this.select="1",this.supplierNo=[],this.brandid=[],this.pageInfo={size:15,curr:1,total:0},this.parmValue={page:1,size:15,start:"",end:"",status:"",good_name:"",spucode:"",cat_id:[],brandid:"",good_type:"",isonline:"",companyNo:"",supplierNo:""},this.searchList()},wantto:function(e,t,r){if("0"===t)this.$message.warning("新建商品成正在审核中,请审核结束后再修改!");else{if("2"===t){if("2"===r)return void this.$message.warning("商品基础信息已修改,请等待审核结果!");if("3"===r)return void this.$message.warning("商品基础信息修改流程正在审核中,请审核结束后再修改!")}if("3"===t){if("3"===r)return void this.$message.warning("商品成本信息已修改,请等待审核结果!");if("2"===r)return void this.$message.warning("商品成信息修改流程正在审核中,请审核结束后再修改!")}this.routeGoto("goodsCostDetail",{id:e,type:"2"===r?"editBase":"3"===r?"editCoin":""})}},selection_change:function(e){e=e.list,this.changeList=0<e.length?JSON.parse(JSON.stringify(e)):[]},brandidsearchChange:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){var a;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a=e.id,e.code,e.label,t.brandid=a?[a]:[],t.parmValue.brandid=t.brandid.toString(),t.pageInfo.curr=1,t.parmValue.page=1,r.next=7,t.searchList();case 7:case"end":return r.stop()}}),r)})))()},handleTime:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t.parmValue.start=e.startTime||"",t.parmValue.end=e.endTime||"",""!==t.parmValue.start&&""!==t.parmValue.end||""===t.parmValue.start&&""===t.parmValue.end)return t.pageInfo.curr=1,t.parmValue.page=1,r.next=7,t.searchList();r.next=7;break;case 7:case"end":return r.stop()}}),r)})))()},good_copy:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t.$confirm("确定要复制该商品?",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(a.a)(regeneratorRuntime.mark((function r(){var a,n;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return t.loading=!0,a={spuCode:e},r.next=4,s.a.copy(a);case 4:if((n=r.sent)&&0===n.code)return t.loading=!1,t.$notify.success({title:"复制商品成功!",message:""}),r.next=10,t.searchList();r.next=12;break;case 10:r.next=19;break;case 12:if(n&&100<=n.code&&n.code<=104)return r.next=15,t.logout();r.next=17;break;case 15:r.next=19;break;case 17:t.loading=!1,t.$message.warning(n.message);case 19:case"end":return r.stop()}}),r)})))).catch((function(){}));case 2:case"end":return r.stop()}}),r)})))()},changeStatus:function(e,t){var r=this;return Object(a.a)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r.$confirm("确定要改为".concat("1"===t?"禁用":"启用","?"),{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(a.a)(regeneratorRuntime.mark((function a(){var n,i;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return r.loading=!0,n={id:e,status:"1"===t?"0":"1"},a.next=4,s.a.status(n);case 4:if((i=a.sent)&&0===i.code)return r.loading=!1,r.$notify.success({title:"状态修改成功!",message:""}),a.next=10,r.searchList();a.next=12;break;case 10:a.next=19;break;case 12:if(i&&100<=i.code&&i.code<=104)return a.next=15,r.logout();a.next=17;break;case 15:a.next=19;break;case 17:r.loading=!1,r.$message.warning(i.message);case 19:case"end":return a.stop()}}),a)})))).catch((function(){}));case 2:case"end":return n.stop()}}),n)})))()},deleteItem:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t.$confirm("确定要删除?",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(a.a)(regeneratorRuntime.mark((function r(){var a,n;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a={codes:[e]},r.next=3,s.a.delete(a);case 3:if(!(n=r.sent)||0!==n.code){r.next=9;break}t.$notify.success({title:"删除成功",message:""}),t.searchList(),r.next=15;break;case 9:if(n&&100<=n.code&&n.code<=104)return r.next=12,t.logout();r.next=14;break;case 12:r.next=15;break;case 14:t.$message.warning(n.message);case 15:case"end":return r.stop()}}),r)})))).catch((function(){}));case 2:case"end":return r.stop()}}),r)})))()},searchList:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r,a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(""!==e.parmValue.start&&""===e.parmValue.end||""===e.parmValue.start&&""!==e.parmValue.end)return e.$message.warning("时间区间不完整!"),t.abrupt("return");t.next=3;break;case 3:return e.loading=!0,e.parmValue.spucode="1"===e.select?e.sinput:"",e.parmValue.good_name="2"===e.select?e.sinput:"",e.parmValue.companyNo="3"===e.select?e.sinput:"",e.parmValue.supplierNo="4"===e.select?e.sinput:"",(r=JSON.parse(JSON.stringify(e.parmValue))).cat_id=0<r.cat_id.length?r.cat_id[r.cat_id.length-1]:"",t.next=12,s.a.list(r);case 12:if(!(a=t.sent)||0!==a.code||!a.data){t.next=19;break}e.tableData=a.data.list,e.tableData.forEach((function(e){e.cat_name="",(e.cat_info||[]).forEach((function(t,r){e.cat_name+=0==r?t.name:"/"+t.name}))})),e.pageInfo.total=Number(a.data.count),t.next=26;break;case 19:if(a&&100<=a.code&&a.code<=104)return t.next=22,e.logout();t.next=24;break;case 22:t.next=26;break;case 24:e.tableData=[],e.pageInfo.total=0;case 26:e.loading=!1;case 27:case"end":return t.stop()}}),t)})))()},goods_class_change:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return t.parmValue.cat_id=e,t.pageInfo.curr=1,t.parmValue.page=1,r.next=5,t.searchList();case 5:case"end":return r.stop()}}),r)})))()},add_online:function(){var e;0===this.changeList.length?this.$message.warning("至少选择一个商品!"):(e=!0,this.changeList.forEach((function(t){"1"!==t.status&&(e=!1)})),e?this.showModel=!0:this.$message.warning("只有审核通过的商品可以上线!"))}}},l=r("2877"),u=Object(l.a)(i,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"goodsCost pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?r("ex-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{table:e.table,data:e.tableData,columns:e.columns,page:e.pageInfo,size:e.size},on:{"page-curr-change":e.handlePageChange,"page-size-change":e.handleSizeChange,"screen-reset":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()},"screen-submit":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()},selection:e.selection_change},scopedSlots:e._u([{key:"table-header",fn:function(t){return[r("div",{staticStyle:{width:"100%"}},[r("el-row",{staticStyle:{padding:"0 0 10px 80px"}},[r("el-col",{staticStyle:{width:"303px"},attrs:{span:6}},[r("period-date-picker",{attrs:{type:1,width:"135px",size:e.searchSize,start:e.parmValue.start,end:e.parmValue.end},on:{timeReturned:e.handleTime}})],1),r("el-col",{staticStyle:{width:"135px"},attrs:{span:4}},[r("search-brand",{attrs:{value:e.brandid,disabled:!1,size:"mini",isDetail:!1,names:"",placeholder:"商品品牌"},on:{searchChange:e.brandidsearchChange}})],1),r("el-col",{staticStyle:{width:"310px",padding:"0 0 0 10px"},attrs:{span:6}},[r("good-class",{attrs:{value:e.parmValue.cat_id,disabled:!1,size:e.searchSize,isDetail:!1,placeholder:"分类"},on:{handleChange:e.goods_class_change}})],1),r("el-col",{staticClass:"fr",staticStyle:{width:"66px",padding:"0 0 0 10px"},attrs:{span:3}},[r("el-button",{attrs:{type:"primary",size:e.searchSize},on:{click:e.searchList}},[e._v(" 刷新 ")])],1),r("el-col",{staticClass:"fr",staticStyle:{width:"66px",padding:"0 0 0 10px"},attrs:{span:3}},[r("el-button",{attrs:{type:"warning",size:e.searchSize},on:{click:e.restSearch}},[e._v(" 重置 ")])],1)],1),r("el-row",[r("el-col",{staticStyle:{width:"226px"},attrs:{span:4}},[r("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"",clearable:"",size:e.searchSize,placeholder:"状态"},on:{change:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.parmValue.status,callback:function(t){e.$set(e.parmValue,"status",t)},expression:"parmValue.status"}},e._l(e.statusList,(function(e){return r("el-option",{key:"status"+e.code,attrs:{label:e.name,value:e.code}})})),1)],1),r("el-col",{staticStyle:{width:"145px",padding:"0 0 0 10px"},attrs:{span:4}},[r("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"",clearable:"",size:e.searchSize,placeholder:"是否上线"},on:{change:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.parmValue.isonline,callback:function(t){e.$set(e.parmValue,"isonline",t)},expression:"parmValue.isonline"}},e._l(e.isonlineoptions,(function(e){return r("el-option",{key:"isonline"+e.id,attrs:{label:e.name,value:e.id}})})),1)],1),r("el-col",{staticStyle:{width:"420px",padding:"0 0 0 10px"},attrs:{span:4}},[r("el-input",{attrs:{size:e.searchSize,maxlength:40,placeholder:"关键字"},on:{blur:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.sinput,callback:function(t){e.sinput=t},expression:"sinput"}},[r("el-select",{staticStyle:{width:"135px"},attrs:{slot:"prepend",placeholder:"关键字类型"},on:{change:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},slot:"prepend",model:{value:e.select,callback:function(t){e.select=t},expression:"select"}},[r("el-option",{attrs:{label:"商品编号",value:"1"}}),r("el-option",{attrs:{label:"商品名称",value:"2"}}),r("el-option",{attrs:{label:"业务企业编号",value:"3"}}),r("el-option",{attrs:{label:"供应商编号",value:"4"}})],1)],1)],1),e.powers.some((function(e){return"003"==e}))?r("el-col",{staticClass:"fr",staticStyle:{width:"66px",padding:"0 0 0 10px"},attrs:{span:3}},[r("el-button",{staticStyle:{float:"right"},attrs:{size:e.searchSize,type:"success"},on:{click:function(t){return e.routeGoto("goodsCostDetail",{id:"add",type:"add"})}}},[e._v(" 添加 ")])],1):e._e(),e.powers.some((function(e){return"055"==e}))?r("el-col",{staticClass:"fr",staticStyle:{width:"110px",padding:"0 0 0 10px"},attrs:{span:3}},[r("el-button",{staticStyle:{float:"right"},attrs:{size:e.searchSize,type:"warning"},on:{click:e.add_online}},[r("i",{staticClass:"el-icon-circle-plus-outline"}),r("span",[e._v("商品上线")])])],1):e._e()],1)],1)]}},{key:"good_thumb_img",fn:function(t){return t=t.scope,[t.row.good_thumb_img?r("div",{directives:[{name:"viewer",rawName:"v-viewer"}],staticClass:"hover",staticStyle:{width:"20px",height:"20px"}},[r("img",{staticStyle:{display:"inline-block",width:"100%",height:"100%"},attrs:{src:t.row.good_thumb_img,alt:""}})]):e._e()]}},{key:"status",fn:function(t){var a=t.scope;return[r("el-tag",{attrs:{size:e.tablebtnSize,type:(e.statusList.find((function(e){return e.code==a.row.status}))||{}).type||"--"},domProps:{textContent:e._s((e.statusList.find((function(e){return e.code==a.row.status}))||{}).name||"--")}})]}},{key:"isonline",fn:function(t){var a=t.scope;return[r("el-tag",{attrs:{size:e.tablebtnSize,type:"0"==a.row.is_online?"warning":""},domProps:{textContent:e._s((e.isonlineoptions.find((function(e){return e.id==a.row.is_online}))||{}).name||"--")}})]}},{key:"operation",fn:function(t){var a=t.scope;return[e.powers.some((function(e){return"007"==e}))?r("el-tooltip",{attrs:{effect:"dark",content:"详情",placement:"top"}},[r("i",{staticClass:"el-icon-view tb-icon",on:{click:function(t){return e.routeGoto("goodsCostDetail",{id:a.row.spuCode,type:"view"})}}})]):e._e(),e.powers.some((function(e){return"005"==e}))&&"7"===a.row.status||e.powers.some((function(e){return"005"==e}))&&"6"===a.row.status?r("el-tooltip",{attrs:{effect:"dark",content:"修改",placement:"top"}},[r("i",{staticClass:"el-icon-edit tb-icon",on:{click:function(t){return e.routeGoto("goodsCostDetail",{id:a.row.spuCode,type:"edit"})}}})]):e._e(),e.powers.some((function(e){return"054"==e}))&&"1"===a.row.status||e.powers.some((function(e){return"054"==e}))&&"4"===a.row.status?r("el-tooltip",{attrs:{effect:"dark",content:"修改基础信息",placement:"top"}},[r("i",{staticClass:"el-icon-c-scale-to-original tb-icon",on:{click:function(t){return e.wantto(a.row.spuCode,a.row.status,"2")}}})]):e._e(),e.powers.some((function(e){return"053"==e}))&&"1"===a.row.status||e.powers.some((function(e){return"053"==e}))&&"5"===a.row.status?r("el-tooltip",{attrs:{effect:"dark",content:"修改成本信息",placement:"top"}},[r("i",{staticClass:"el-icon-coin tb-icon",on:{click:function(t){return e.wantto(a.row.spuCode,a.row.status,"3")}}})]):e._e(),e.powers.some((function(e){return"010"==e}))&&"7"!==a.row.status?r("el-tooltip",{attrs:{effect:"dark",content:"复制商品",placement:"top"}},[r("i",{staticClass:"el-icon-document-copy tb-icon",on:{click:function(t){return e.good_copy(a.row.spuCode)}}})]):e._e(),e.powers.some((function(e){return"006"==e}))?r("el-tooltip",{attrs:{effect:"dark",content:"删除",placement:"top"}},[r("i",{staticClass:"el-icon-delete tb-icon",on:{click:function(t){return e.deleteItem(a.row.spuCode)}}})]):e._e()]}}],null,!1,2749800812)}):r("no-auth"),r("add-edit",{attrs:{id:"",sitem:e.changeList,"show-model":e.showModel,"is-detail":!1},on:{refresh:function(t){e.showModel=!1},cancel:function(t){e.showModel=!1}}})],1)}),[],!1,null,"7624bf4d",null);t.default=u.exports},ff1f:function(e,t,r){e.exports=r.p+"static/img/welcome.6cf0f25b.gif"},ff75:function(e,t,r){"use strict";r("6fca")}}]);
|