(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-409cadb4","chunk-3e94c4a0","chunk-1a9d78b9","chunk-09413a44","chunk-2a52459a","chunk-3bc89c67","chunk-95806aaa","chunk-1abecf4c","chunk-bbbb90b4","chunk-44a70938"],{"0087":function(e,t,r){"use strict";r("e30a")},"019d":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)}}},"0216":function(e,t,r){"use strict";r("9f45")},"034d":function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=(r("96cf"),r("159b"),r("b0c0"),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,o;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}o="add"===e.id?"添加成功!":"修改成功!",e.$notify.success({title:o,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"),s=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=s.exports},"03ec":function(e,t,r){"use strict";r("bd71")},"04c0":function(e,t,r){"use strict";r("56c0")},"04dd":function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=r("5530"),s=(r("96cf"),r("7db0"),r("159b"),r("a15b"),r("d57f")),o=r("9f53"),i=r("2f62"),l=r("909d");i={name:"activeAdd",mixins:[o.a],components:{costFormAddEdit:l.default},computed:Object(n.a)(Object(n.a)({},Object(i.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"activeAdd"==e.menu_route}))||{};return e&&e.action&&0=)"}}),r("el-table-column",{attrs:{prop:"s2",label:"成本裸价"}}),r("el-table-column",{attrs:{prop:"s3",label:"成本合计"}}),r("el-table-column",{attrs:{prop:"s4",label:"物流费"}}),r("el-table-column",{attrs:{prop:"s5",label:"使用状态"}}),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.openEdit("add",{})}}})])]}},{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(t){return e.openEdit("")}}})]),r("el-tooltip",{attrs:{effect:"dark",content:"禁/启用",placement:"top"}},[r("i",{staticClass:"el-icon-video-pause tb-icon",on:{click:function(t){return e.openEdit("")}}})])]}}])})],1),r("cost-form-add-edit",{attrs:{id:e.modelId,"show-model":e.showModel,sitem:e.sitem},on:{refresh:e.refreshEdit,cancel:function(t){e.showModel=!1}}})],1)],1)],1)}),[],!1,null,"b9afc33e",null);t.default=i.exports},"053c":function(e,t,r){},"0577":function(e,t,r){"use strict";r.r(t);var a=r("2909"),n=r("1da1"),s=(r("96cf"),r("7db0"),r("159b"),r("a434"),r("a15b"),r("c740"),r("f5ed")),o=r("9f53"),i=r("79e5"),l=r("61f7"),c=r("f8d8"),u=r("8e8f");u={name:"salesOrderDetail",mixins:[s.a,o.a],props:["newTime","id","sitem"],components:{inAddrModel:c.a,AddrAddEditModal:u.a},watch:{newTime:function(e){e&&this.initForm()}},computed:{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"zxOrderDetail"==e.menu_route}))||{};return e&&e.action&&0",i.forEach((function(e){l+="
  • \n \n ").concat(e.good_name,"__");e=e.speclist;var t="";e.forEach((function(e,r){t+="".concat(0!==r?"--":"").concat(e.spec_name,"[").concat(e.spec_value,"]")})),l+=t+"
  • "})),l+="",e.$notify({title:"一下商品已上线或已经在审批流程中!",dangerouslyUseHTMLString:!0,message:l})):e.$message.warning(res.message);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("f87f"),r=r("2877"),s=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"},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,"4ef2de07",null);t.default=s.exports},"15a7":function(e,t,r){"use strict";r("d920")},"15af":function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=r("5530"),s=(r("96cf"),r("7db0"),r("a9e3"),r("d57f")),o=r("f5ed"),i=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:[o.a,l.a],computed:Object(n.a)(Object(n.a)({},Object(i.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"active"==e.menu_route}))||{};return e&&e.action&&0new Date(s).getTime())return e.$message.warning("咨询截止时间不能晚于项目咨询截止时间!"),e.loading=!1,t.abrupt("return");t.next=11;break;case 11: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,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=19,n.a.add(a);case 19:if(l=t.sent,e.loading=!1,!l||0!==l.code){t.next=26;break}e.$notify.success({title:"创建成功!",message:""}),e.$emit("refresh",!0),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 3:case"end":return t.stop()}}),t)})))()},selectChange:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){var a,s,o,i,l,c,u;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(l=e&&0new 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,e.loading=!1,t.next=25,n.a.update(a);case 25:if(l=t.sent,e.loading=!1,!l||0!==l.code){t.next=32;break}e.$notify.success({title:"创建成功!",message:""}),e.$emit("refresh",!0),t.next=38;break;case 32:if(l&&100<=l.code&&l.code<=104)return t.next=35,e.logout();t.next=37;break;case 35:t.next=38;break;case 37:e.$message.warning(l.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 3:case"end":return t.stop()}}),t)})))()},selectChange:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){var a,s,o,i,l,c,u,d,p,m,f;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(a=e&&0n?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"),n=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=n.exports},"305b":function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=r("5530"),s=(r("96cf"),r("7db0"),r("d81d"),r("a9e3"),r("f5ed")),o=r("9f53"),i=r("16dc"),l=r("f7aa"),c=r("2f62");c={name:"expressSet",mixins:[s.a,o.a],components:{addEdit:l.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"expressSet"==e.menu_route}))||{};return e&&e.action&&0(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(o.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:{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(){var t,r,a,n,s,o,i,l,c;e.$refs.ruleForm&&(e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),"add"===e.id&&(t=(c=e.sitem).post_company,r=c.post_code,a=c.post_fee,n=c.sendtime,s=c.cgdNo,o=c.wsm_code,i=c.send_num,l=c.wsend_num,c=c.sendtype,e.ruleForm={wsend_num:l||"",cgdNo:s||"",wsm_code:o||"",post_company:t?[t]:[],post_code:r||"",post_fee:a||"",post_time:n||"",sendtype:c||"1",send_num:i||"",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,s,o;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(),t.next=6,n.a.orderinadd(a);t.next=23;break;case 6:if(o=t.sent,s=o.code,o=o.message,e.loading=!1,0!==s){t.next=15;break}e.$notify.success({title:"添加成功",message:""}),e.$emit("refresh"),t.next=21;break;case 15:if(100<=s&&s<=104)return t.next=18,e.logout();t.next=20;break;case 18:t.next=21;break;case 20:"1009"===s?e.$message.warning("".concat(o,",请刷新采购单详情重试!")):e.$message.warning(o);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 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("866e"),r=r("2877"),s=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:"demo-ruleForm",attrs:{model:e.ruleForm,rules:e.rulesThis,"status-icon":"",size:"small","label-width":"85px"}},[r("el-row",[r("el-col",{attrs:{span:(e.id,12)}},[r("el-form-item",{attrs:{label:"可入库总数",prop:"wsend_num"}},[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:(e.id,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:"add"!==e.id,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:(e.id,12)}},[r("el-form-item",{attrs:{label:"发货方式",prop:"sendtype"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{disabled:"add"!==e.id,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:(e.id,12)}},[r("el-form-item",{attrs:{label:"物流费用",prop:"post_fee"}},[r("digital-input",{attrs:{values:e.ruleForm.post_fee,placeholder:"物流费用",min:0,name:"ruleForm.post_fee",disabled:"add"!==e.id,max:e.ruleForm.post_fee,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:"add"===e.id?24:12}},[r("el-form-item",{attrs:{label:"物流公司",prop:"post_company"}},[r("search-express",{attrs:{disabled:"add"!==e.id,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:"add"===e.id?24:12}},[r("el-form-item",{attrs:{label:"物流单号",prop:"post_code"}},[r("el-input",{attrs:{disabled:"add"!==e.id,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:(e.id,12)}},[r("el-form-item",{attrs:{label:"发货时间",prop:"post_time"}},[r("el-date-picker",{staticStyle:{width:"100%"},attrs:{disabled:"add"!==e.id,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),"add"===e.id?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):e._e()],1)],1)}),[],!1,null,"0dbaa6e6",null);t.default=s.exports},"416e":function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=(r("a434"),r("159b"),r("99af"),r("b0c0"),r("96cf"),r("9f53")),s=r("82ae"),o=r("fcbc");o={name:"brand",props:["showModel","id","sitem"],mixins:[n.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"},rulesThis:this.rules,rules:s.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=JSON.parse(JSON.stringify(e)),a=(e=r.index,r.id),n=r.specid,s=r.spec_name,o=r.spec_value_id,i=r.spec_value_name;e+""=="-1"?this.spec_tableData.push(r):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=o,t.spec_tableData[r].spec_value_name=i)})),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,o,i,l,c,u,d,p,m,f,h,g,b,_,w,v,x,k,y,F,O,S,$,C,R,j,T,z,N,M,D,V,I;e.$refs.ruleForm&&(e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),t=(D=e.sitem.index)?D+"":"",r=(V=e.sitem).pgNo,a=V.arrival_time,n=V.budget_price,s=V.num,o=V.brand_id,i=V.cat_id,l=V.good_img,c=V.good_name,u=V.total_weight,d=V.is_addrs,p=V.is_custom,m=V.is_gold_price,f=V.config,h=V.specs_weight,g=V.other_config,b=V.cost_desc,_=V.use_desc,w=V.remark,v=V.metal_id,x=V.gold_price,k=V.unit,y=V.unit_name,F=V.p_cat_info,O=V.p_cat_id,S=V.p_budget_price,$=V.p_pgNo,C=V.p_num,R=V.p_good_type,j=V.p_good_name,T=V.p_good_img,z=V.p_arrtime,N=V.brand_name,M=V.specinfo,D=V.cat_id_name,V=V.cat_arr_id,I=[],F&&0r&&(r=e.limit.length),e.spec&&0 0"}],staticClass:"Pagination",staticStyle:{"text-align":"right","margin-top":"10px"}},[r("el-pagination",{attrs:{size:e.searchSize,"current-page":e.parmValue.page,"page-sizes":[10,15,20,30,40],"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("div",[r("no-auth")],1)])}),[],!1,null,"27ea19e9",null);t.default=c.exports},"431b":function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=(r("96cf"),r("7db0"),r("e5ab")),s=r("9f53"),o=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 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=i.exports},"5eca":function(e,t,r){},"5f08":function(e,t,r){"use strict";var a=r("1da1"),n=r("ade3"),s=r("5530"),o=(r("96cf"),r("159b"),r("b0c0"),r("a9e3"),r("d81d"),r("1b69")),i=function(e,t){return Object(o.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:"type_code",label:"商品编码",width:"125"},{prop:"good_name",label:"商品名称","min-width":"120"},{prop:"class_cat",label:"分类","min-width":"100"},{prop:"usable_stock",label:"可用库存",width:"110"},{prop:"unit",label:"单位",width:"45"},{prop:"color",label:"商品颜色",width:"70"},{prop:"material",label:"商品材质",width:"70"},{prop:"brand",label:"品牌",width:"70"}];u={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,i(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&&0Date.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(o.g)(t)?r():r(new Error("手机号格式不正确!"))},trigger:"blur"}],telephone:[{required:!1,validator:function(e,t,r){""===t||Object(o.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(o.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,o=e.delivery_way,i=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:o||"",supplier_type:i||"",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,o;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}o="add"===e.id?"添加成功!":"修改成功!",e.$notify.success({title:o,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;return"image/jpg"!==e.type&&"image/png"!==e.type&&"image/jpeg"!==e.type||(t=!0),e=e.size/1024/1024<1,t||this.$message.error("图片格式不正确!"),e||this.$message.error("图片大小不能超过 1MB!"),t&&e}}},r("e1b3"),r=r("2877"),s=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=)"}}),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=)"}}),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._v(" 111 ")])],1)],1):r("div",[r("no-auth")],1)])}),[],!1,null,"86626cd8",null);t.default=i.exports},"6f04":function(e,t,r){"use strict";r("0843")},"6f53":function(e,t,r){var a=r("83ab"),n=r("df75"),s=r("fc6a"),o=r("d1e7").f;r=function(e){return function(t){for(var r,i=s(t),l=n(i),c=l.length,u=0,d=[];u 0"}],staticClass:"Pagination",staticStyle:{"text-align":"right","margin-top":"10px"}},[r("el-pagination",{attrs:{size:e.searchSize,"current-page":e.parmValue.page,"page-sizes":[10,15,20,30,40],"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),r("add-edit",{attrs:{showModel:e.showModel,id:e.modelId,isDetail:e.isDetail},on:{refresh:e.searchList,cancel:function(t){e.showModel=!1}}})],1)}),[],!1,null,"12cee536",null);t.default=i.exports},7224:function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=r("ade3"),s=(r("96cf"),r("7db0"),r("61f7")),o=r("de14"),i={name:"sellAfterApplyDetail",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"sellAfterApplyDetail"==e.menu_route}))||{};return e&&e.action&&0parseInt(r+""))return void this.$message.warning("异常数量不大于调拨总数量!");if(0parseInt(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"),s=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=s.exports},"796d":function(e,t,r){},"798a9":function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=r("5530"),s=(r("96cf"),r("7db0"),r("c740"),r("a434"),r("159b"),r("f5ed")),o=r("9f53"),i=r("e320"),l=r("962f"),c=r("2f62");c={name:"salesOrderDetail",mixins:[s.a,o.a],props:["newTime","id","sitem"],components:{outOrderAddModel:l.default},watch:{newTime:function(e){e&&this.initForm()}},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"salesOrderDetail"==e.menu_route}))||{};return e&&e.action&&0=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(o.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(o.c)(t)||Object(o.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(o.c)(t)||Object(o.d)(t)?r(new Error("联系人只能为汉字!")):r()},trigger:"blur"}],mobile:[{required:!0,validator:function(e,t,r){""!==t?Object(o.h)(t)||Object(o.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,o,i,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,o=b.type,i=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:o||"",inv_code:i||"",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,o;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}o="003"===e.isDetail?"添加成功":"修改成功",e.$notify.success({title:o,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("c1a2"),r=r("2877"),s=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,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},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:"银行卡号",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:"联系电话",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,"7fb7b3cc",null);t.default=s.exports},"9f45":function(e,t,r){},"9f70":function(e,t,r){"use strict";var a=r("1b69"),n="admin/";t.a={detail:function(e,t){return Object(a.a)(n+"saleoutinfo",e,"post",t)},status:function(e,t){return Object(a.a)(n+"salecustomer",e,"post",t)},list:function(e,t){return Object(a.a)(n+"xsaleout",e,"post",t)},salezxout:function(e,t){return Object(a.a)(n+"salezxout",e,"post",t)}}},"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("25f0"),r("159b"),r("a9e3"),r("f5ed")),o=r("9f53"),i=r("1b69"),l="admin/",c=function(e,t){return Object(i.a)(l+"getstockbet",e,"post",t)},u=[{prop:"supplier_code",label:"供应商编码",width:"140"},{prop:"wsm_code",label:"仓库编码",width:"170"},{prop:"supplier_wsm_name",label:"仓库名称","min-width":"220"},{prop:"type_code",label:"商品属性编码",width:"130"},{prop:"good_name",label:"商品名称","min-width":"150"},{prop:"in_total",label:"入库量"},{prop:"out_total",label:"出库量"}],d=r("2f62");d={name:"spaceCount",mixins:[s.a,o.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=)","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"},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:"对比平台",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-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,null,"7db0846f",null);t.default=s.exports},b7e3:function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=r("5530"),s=(r("96cf"),r("7db0"),r("a9e3"),r("baa8")),o=r("fc11"),i=r("0ee5"),l=r("e66a"),c=r("f5ed"),u=r("2f62"),d=r("9f53");u={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 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,"7e84b8f4",null);t.default=d.exports},c421:function(e,t,r){"use strict";r.r(t);var a=r("2909"),n=r("1da1"),s=(r("d81d"),r("99af"),r("159b"),r("c740"),r("96cf"),r("a2b6")),o=r("9f53"),i=r("61f7");o={name:"sellReturn",props:["showModel","id","isDetail","sitem","showModelThis","newTime"],mixins:[o.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(),t=(r=e.sitem).info,n=r.addrs,r=r.orderCode,(t&&0=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&&(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,o,i,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,o=p.endtime,i=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?[d]:[],companyNo:u||"",khNo:c?[c]:[],customer_name:i||"",budget_total:r||"0",arrtime:s||"",endtime:o||"",use_desc:n||"",ladder:a&&0=)"}}),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)],1)}),[],!1,null,null,null).exports;t.a=c},d158:function(e,t,r){"use strict";r("4a94")},d1d1:function(e,t,r){"use strict";r("d890")},d1dc: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)}}},d215:function(e,t,r){},d235:function(e,t,r){},d2af:function(e,t,r){"use strict";r("b7e5")},d2cb:function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=r("ade3"),s=(r("b0c0"),r("d3b7"),r("25f0"),r("96cf"),r("c717")),o={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() 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,1552016989)}):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,"2d179830",null);t.default=c.exports},d4a1:function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=r("ade3"),s=r("5530"),o=(r("96cf"),r("7db0"),r("a9e3"),r("f5ed")),i=r("9f53"),l=r("d9bb"),c=r("2da1"),u=r("2f62");u={name:"storeSet",mixins:[o.a,i.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&&0e.noSendNum)return e.$message.warning("退货数量不能大于未发货数量"),t.abrupt("return");t.next=13;break;case 13:if(l={},"add"===e.id)return delete a.id,t.next=18,s.a.add(i);t.next=21;break;case 18:l=t.sent,t.next=24;break;case 21:return t.next=23,s.a.update(i);case 23:l=t.sent;case 24:if(e.loading=!1,!l||0!==l.code){t.next=32;break}c="add"===e.id?"添加成功":"修改成功",e.$notify.success({title:c,message:""}),e.showModelThis=!1,e.$emit("refresh"),t.next=38;break;case 32:if(l&&100<=l.code&&l.code<=104)return t.next=35,e.logout();t.next=37;break;case 35:t.next=38;break;case 37:e.$message.warning(l.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)})))()},checkRow:function(e,t){var r,a;"return"==t?(r=JSON.parse(JSON.stringify(this.ruleForm)),Number(r.return_num)>Number(this.noSendNum)?this.$message.warning("退货数量不能大于未发货数量"):(r=(a=this.tableForm.product_go[e]).check_value,a=a.check_remark,""!=r&&""!=a?this.tableForm.product_go[e].edit=!1:this.$message.warning("审核情况或审核备注不能为空"))):"get"==t&&(a=JSON.parse(JSON.stringify(this.ruleForm)),Number(a.get_return_num)>Number(this.noSendNum)?this.$message.warning("退货数量不能大于未发货数量"):(a=(t=this.tableForm.get_product_go[e]).check_value,t=t.check_remark,""!=a&&""!=t?this.tableForm.get_product_go[e].edit=!1:this.$message.warning("审核情况或审核备注不能为空")))},editRow:function(e,t){"return"==t?-1!==this.tableForm.product_go.findIndex((function(e){e.edit}))?this.$message.warning("请完成其他行的编辑!"):this.tableForm.product_go[e].edit=!0:"get"==t&&(-1!==this.tableForm.product_go.findIndex((function(e){e.edit}))?this.$message.warning("请完成其他行的编辑!"):this.tableForm.get_product_go[e].edit=!0)},resetRow:function(e){this.tableForm.product_go[e].check_remark="",this.tableForm.product_go[e].check_value="agree"},handClick:function(e){this.showModelThis=e},refresh:function(e){this.showModelThis=e,this.$emit("refresh",!0)}}},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:"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-card",{staticStyle:{margin:"-20px 0 0 0"}},[e.showModel?t("add-form",{attrs:{showModel:e.showModel,sitem:e.sitem,id:e.id,isDetail:e.isDetail},on:{closeModel:e.handClick,refresh:e.refresh}}):e._e()],1)],1)}),[],!1,null,"0faec570",null);t.default=o.exports},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)}}},db54:function(e,t,r){"use strict";r("7022")},db72:function(e,t,r){"use strict";r("cb12")},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"),n=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&&0parseInt(r)?this.$message.warning("调拨数量不大于可用库存数!"):this.tableForm.product_go[e].edit=!1:this.$message.warning("调拨数量不能为0!"):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.type_code===t.type_code}))&&(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.type_code===t.type_code}));-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.id?(this.ruleForm.supplier_code=[e.code],this.supplier_code=e.code):(this.ruleForm.supplier_code=[],this.supplier_code=""),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("a5ec"),r=r("2877"),o=Object(r.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.parmValue.out_companyNo,names:"",size:"mini","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),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),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:"supplier_code"}},[r("search-supplier",{staticStyle:{width:"100%"},attrs:{value:e.ruleForm.supplier_code,placeholder:"请选择业务公司","is-detail":"add"!==e.id,disabled:!("add"===e.id),names:e.supplier_name},on:{searchChange:e.selectSupplierOut}})],1),r("el-form-item",{attrs:{label:"公司",prop:"supplier_in_code"}},[r("search-supplier",{attrs:{value:e.ruleForm.supplier_in_code,placeholder:"请选择公司","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,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()]})),"0"===e.status&&e.powers.some((function(e){return"005"==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)}):e._e()],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,"6f539390",null);t.default=o.exports},dbbb: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 o})),r.d(t,"f",(function(){return i})),r.d(t,"g",(function(){return l})),r.d(t,"h",(function(){return c})),r.d(t,"i",(function(){return u})),r.d(t,"j",(function(){return d})),r.d(t,"a",(function(){return p})),r.d(t,"k",(function(){return m}));var a=[{id:"0",name:"否"},{id:"1",name:"是"}],n=[{id:"0",name:"非泰康"},{id:"1",name:"泰康"}],s=[{id:"0",name:"无销售权限"},{id:"1",name:"有销售权限"}],o=[{id:"0",name:"非库存品"},{id:"1",name:"库存品"}],i=[{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=[{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:"good_type",label:"定制",_slot_:"good_type",width:"50px"},{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"}],m=(t=function(e,t,r){e.required&&""===t?r(new Error("不能为空!")):r()},{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:t,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:t,trigger:"blur"}],customized:[{required:!0,validator:t,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=)"}}),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,"fe4d1e88",null);t.default=l.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("d3b7"),r("25f0"),r("0f31")),s=r("61f7"),o={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,o;""!==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():3new Date(e.ruleForm.activity_end).valueOf()}},pickerOptions2:{disabledDate:function(t){if(null!=e.ruleForm.activity_start&&""!=e.ruleForm.activity_start&&t)return t.getTime()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.printValthis.endVal?this.endVal:this.printVal,this.displayValue=this.formatNumber(this.printVal),e