(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-18eb7b8d","chunk-5e2f57c6","chunk-44401bcc","chunk-b7f101b0","chunk-a4a85b14","chunk-1d0a69b6","chunk-1c777704","chunk-15caf0ce","chunk-4ff11544","chunk-ee636058"],{"006e":function(e,t,r){"use strict";r("af2b")},"007d7":function(e,t,r){},"0136":function(e,t,r){"use strict";r.d(t,"b",(function(){return a})),r.d(t,"d",(function(){return s})),r.d(t,"c",(function(){return i})),r.d(t,"a",(function(){return n}));var a=[{type:"selection",fixed:"left",_noset_:!0},{prop:"cgdNo",label:"采购单编号",width:"155px"},{prop:"orderCode",label:"订单编号",width:"155px"},{prop:"spuCode",label:"商品成本编号",width:"158px"},{prop:"good_name",label:"商品名称",_slot_:"good_name","min-width":"145px"},{prop:"good_price",label:"单价",width:"110px"},{prop:"good_num",label:"数量",width:"110px"},{prop:"total_fee",label:"总货款",width:"110px"},{prop:"status",label:"状态",_slot_:"status",width:"120px"},{prop:"order_type",label:"采购单来源",_slot_:"order_type",width:"110px"},{prop:"lasttime",label:"预计最晚入库时间",width:"145px"},{prop:"supplierNo",label:"采购供应商编号",width:"145px"},{prop:"supplier_name",label:"采购供应商名称",width:"155px"},{prop:"cgder",label:"采购员",width:"60px"},{prop:"addtime",label:"创建时间",width:"145px"}],n=[{prop:"cgdNo",label:"采购单编号",span:6},{prop:"status",label:"采购单状态",_slot_:"status",span:6},{prop:"order_type",label:"采购单来源",_slot_:"order_type",span:6},{prop:"lasttime",label:"要求入库时间",span:6},{prop:"supplier_name",label:"销售方公司",_slot_:"supplier_name"},{prop:"company",label:"购买方公司",_slot_:"company"},{prop:"wsm",label:"仓库信息",_slot_:"wsm"},{prop:"total_fee",label:"采购总成本",span:6},{prop:"good_price",label:"采购单价",span:6},{prop:"good_num",label:"采购总数量",span:6},{prop:"send_num",label:"已发货数量",span:6},{prop:"wsend_num",label:"未发货数量",span:6},{prop:"addtime",label:"创建时间",span:6}],s=[{value:"0",label:"待与供应商确认"},{value:"1",label:"待入库"},{value:"2",label:"部分入库"},{value:"3",label:"入库完成"},{value:"4",label:"已取消订单"}],i=[{value:"1",label:"备货单"},{value:"2",label:"线上非库存品"},{value:"3",label:"咨询采返"},{value:"4",label:"项目采返"}]},"0205":function(e,t,r){},"0209e":function(e,t,r){"use strict";var a=r("1b69"),n="admin/";t.a={add:function(e,t){return Object(a.a)(n+"salecreate",e,"post",t)},delete:function(e,t){return Object(a.a)(n+"delete",e,"post",t)},list:function(e,t){return Object(a.a)(n+"salelist",e,"post",t)},detail:function(e,t){return Object(a.a)(n+"detail",e,"post",t)},update:function(e,t){return Object(a.a)(n+"update",e,"post",t)},status:function(e,t){return Object(a.a)(n+"accountstatus",e,"post",t)},salegetprice:function(e,t){return Object(a.a)(n+"salegetprice",e,"post",t)},goods_detail:function(e,t){return Object(a.a)(n+"goodinfo",e,"post",t)},goods_active:function(e,t){return Object(a.a)(n+"actquery",e,"post",t)},saleuse:function(e,t){return Object(a.a)(n+"saleuse",e,"post",t)},uselist:function(e,t){return Object(a.a)(n+"uselist",e,"post",t)},saleaddother:function(e,t){return Object(a.a)(n+"saleaddother",e,"post",t)},saleaddr:function(e,t){return Object(a.a)(n+"saleaddr",e,"post",t)},addrall:function(e,t){return Object(a.a)(n+"addrall",e,"post",t)}}},"034d":function(e,t,r){},"034d0":function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=(r("96cf"),r("d3b7"),r("159b"),r("b0c0"),r("e9c4"),r("92f1")),s={name:"sort",props:["showModel","id","sitem","titleList"],mixins:[r("9f53").a],data:function(){return{loading:!1,title:"添加专属类型",pid_name:"",showModelThis:this.showModel,specOptions:[],ruleForm:{id:"",name:""},rulesThis:this.rules,rules:{name:[{required:!0,message:"专属类型名称不能为空",trigger:"blur"}]}}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis:function(e){e||this.$emit("cancel")}},methods:{initForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,e.pid_name="",e.titleList.forEach((function(t,r){e.pid_name+=0!==r?"".concat(t.titleName,"/"):""})),t.next=5,e.resetForm();case 5:"003"===e.id?(e.title="添加专属类型",e.rulesThis=e.rules):"005"===e.id?(e.title="修改专属类型",e.rulesThis=e.rules):(e.title="专属类型详情",e.rulesThis={}),e.loading=!1;case 7:case"end":return t.stop()}}),t)})))()},resetForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$nextTick((function(){var t,r;e.$refs.ruleForm&&(e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),t=(r=e.sitem).id,r=r.name,e.ruleForm={pid:e.titleList[e.titleList.length-1].id||"",id:t||"",name:r||""})}));case 2:case"end":return t.stop()}}),t)})))()},submitForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.ruleForm.validate(function(){var t=Object(a.a)(regeneratorRuntime.mark((function t(r){var a,s,i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r){t.next=30;break}if(e.loading=!0,a=JSON.parse(JSON.stringify(e.ruleForm)),s={},"003"===e.id)return delete a.id,t.next=8,n.a.add(a);t.next=11;break;case 8:s=t.sent,t.next=14;break;case 11:return t.next=13,n.a.update(a);case 13:s=t.sent;case 14:if(e.loading=!1,!s||0!==s.code){t.next=22;break}i="add"===e.id?"添加成功!":"修改成功!",e.$notify.success({title:i,message:""}),e.showModelThis=!1,e.$emit("refresh"),t.next=28;break;case 22:if(s&&100<=s.code&&s.code<=104)return t.next=25,e.logout();t.next=27;break;case 25:t.next=28;break;case 27:e.$message.warning(s.message);case 28:t.next=32;break;case 30:return t.abrupt("return",!1);case 32:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()}}};r("5d5b"),r=r("2877"),r=Object(r.a)(s,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:e.title,center:!0,align:"left",top:"12vh",width:"650px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)"},on:{"update:visible":function(t){e.showModelThis=t},close:function(t){e.showModelThis=!1}}},[t("el-card",{staticStyle:{margin:"-20px 0 0 0"}},[t("el-row",{attrs:{gutter:10}},[t("el-col",{attrs:{span:24}},[t("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",rules:e.rulesThis,"label-width":"95px"}},[t("el-form-item",{attrs:{label:"名称",prop:"name"}},[t("el-input",{attrs:{disabled:"007"==e.id,placeholder:"名称",maxlength:"20"},model:{value:e.ruleForm.name,callback:function(t){e.$set(e.ruleForm,"name",t)},expression:"ruleForm.name"}},[e.pid_name?t("template",{slot:"prepend"},[e._v(e._s(e.pid_name))]):e._e()],2)],1)],1)],1),t("el-col",{staticStyle:{"text-align":"right"},attrs:{span:24}},["007"!==e.id?t("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("保 存 ")]):e._e(),t("el-button",{on:{click:function(t){e.showModelThis=!1}}},[e._v(e._s("007"==e.id?"关 闭":"取 消"))])],1)],1)],1)],1)}),[],!1,null,"65b8d7b5",null);t.default=r.exports},"035b":function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=r("5530"),s=(r("96cf"),r("a9e3"),r("e9c4"),r("d3b7"),r("159b"),r("3ca3"),r("ddb0"),r("2b3d"),r("9861"),r("f5ed")),i=r("9f53"),o=r("5daa"),l=(r("886e"),r("52ee")),c=r("224e"),u=r("2f62");s={name:"purchaseOrder",mixins:[s.a,i.a],components:{periodDatePickerActive:l.default},computed:Object(n.a)({},Object(u.b)(["tablebtnSize","searchSize","size"])),data:function(){return{changeList:[],fileUrl:o.a.baseURL,loading:!1,parmValue:{start_date:"",end_date:"",page:1,size:15},tableData:[],table:{stripe:!0,border:!0,_defaultHeader_:["setcol"]},pageInfo:{size:15,curr:1,total:0},table10:c.b}},mounted:function(){this.searchList()},methods:{searchList:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(""!==e.parmValue.start_date&&""===e.parmValue.end_date||""===e.parmValue.start_date&&""!==e.parmValue.end_date)return e.$message.warning("时间区间不完整!"),t.abrupt("return");t.next=3;break;case 3:return t.abrupt("return");case 7:if(!(r=t.sent)||0!==r.code||!r.data){t.next=13;break}e.tableData=r.data.list,e.pageInfo.total=Number(r.data.count),t.next=20;break;case 13:if(r&&100<=r.code&&r.code<=104)return t.next=16,e.logout();t.next=18;break;case 16:t.next=20;break;case 18:e.tableData=[],e.pageInfo.total=0;case 20:e.loading=!1;case 21:case"end":return t.stop()}}),t)})))()},restSearch:function(){this.parmValue={start_date:"",end_date:"",page:1,size:15},this.pageInfo={size:15,curr:1,total:0},this.searchList()},time:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return t.parmValue.start_date=e.startTime||"",t.parmValue.end_date=e.endTime||"",r.next=4,t.searchList();case 4:case"end":return r.stop()}}),r)})))()},selection_change:function(e){e=e.list,this.changeList=0Date.now()-864e5}},addrRules:{platform_code:{required:!0,trigger:"blur",message:"平台订单号不能为空"},sale_source:{required:!0,trigger:"blur",message:"销售渠道不能为空"},mode:{required:!0,trigger:"change",message:"收费模式不能为空"},plat_code:{required:!0,trigger:"blur",message:"平台商品编号不能为空"},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"},price:{required:!0,validator:function(e,t,r){e.required&&""===t?r(new Error("不能为空!")):r()},trigger:"blur"},contactor:{required:!0,trigger:"blur",message:"联系人不能为空"},mobile:{required:!0,validator:function(e,t,r){""===t?r(new Error("手机号不能为空!")):Object(i.i)(t)?r():r(new Error("手机号格式不正确!"))},trigger:"blur"},addr:{required:!0,message:"联系地址不能为空",trigger:"blur"},order_remark:{required:!0,message:"订单备注不能为空",trigger:"blur"},activity_name:{required:!1},po_code:{required:!1},platform_time:{required:!1}}}},mounted:function(){},methods:{cancel:function(){this.addrForm.order_addr=[]},checkRow:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=3,t.$refs.addrForm.validate(function(){var r=Object(a.a)(regeneratorRuntime.mark((function r(a){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!a){r.next=4;break}t.addrForm.order_addr[e].edit=!1,r.next=6;break;case 4:return r.abrupt("return",!1);case 6:case"end":return r.stop()}}),r)})));return function(e){return r.apply(this,arguments)}}());case 3:case"end":return r.stop()}}),r)})))()},number_change:function(e,t,r){var n=this;return Object(a.a)(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:n.addrForm.order_addr[t][r]=e+""||"0",n.addrForm.order_addr[t].newTime=(new Date).valueOf()+"";case 2:case"end":return a.stop()}}),a)})))()},deleteRow:function(e,t){t.splice(e,1)},formatDate:function(e){return e=new Date(e),e.getFullYear()+"-"+(e.getMonth()+1<10?"0"+(e.getMonth()+1):e.getMonth()+1)+"-"+e.getDate()+" "},submit:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r,a,n,s;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.btnFlag)return t.abrupt("return");t.next=3;break;case 3:if(r=e.addrForm.order_addr,(r={list:r}).list.length<=0)return e.$message.warning("导入数据不能为空"),t.abrupt("return");t.next=8;break;case 8:a=[{name:"平台订单号",str:"platform_code"},{name:"销售渠道",str:"sale_source"},{name:"平台商品编号",str:"plat_code"},{name:"单价(元)",str:"price"},{name:"数量",str:"num"},{name:"收费模式",str:"mode"},{name:"订单备注",str:"order_remark"},{name:"收货人",str:"contactor"},{name:"联系电话",str:"mobile"},{name:"联系地址",str:"addr"}],n=!0,s=[];try{r.list.forEach((function(t,r){if(s.push(t.platform_code),!n)throw Error();if(0==t.price||0==t.num)throw e.$message.warning("表格第".concat(r+1,"行,单价,数量的值不能为0")),n=!1,Error();if(isNaN(t.price)||isNaN(t.num)||isNaN(t.before_discount_all_price))throw e.$message.warning("表格第".concat(r+1,"行,单价,数量,总金额必须是数字")),n=!1,Error();if(!Number.isInteger(Number(t.num)))throw e.$message.warning("表格第".concat(r+1,"行,数量必须是整数")),n=!1,Error();for(var i=0;i",o.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 25:t.next=29;break;case 27:return t.abrupt("return",!1);case 29:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()}}};r("a5f8"),r=r("2877"),r=Object(r.a)(s,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:"添加商品上线",center:!0,align:"left",top:"8vh",width:"1040px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)"},on:{"update:visible":function(t){e.showModelThis=t},close:function(t){e.showModelThis=!1}}},[r("el-card",{staticStyle:{margin:"-20px 0 0 0","padding-bottom":"0"}},[r("el-row",{attrs:{gutter:10}},[r("el-col",{staticStyle:{padding:"0 0 15px 0"},attrs:{span:24}},[r("el-table",{staticStyle:{width:"100%"},attrs:{data:e.sitem,stripe:"",size:"mini",border:"","max-height":"380px"}},[r("el-table-column",{attrs:{prop:"spuCode",label:"编号",width:"160","show-overflow-tooltip":""}}),r("el-table-column",{attrs:{prop:"good_thumb_img",label:"图片",width:"45","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.good_thumb_img?r("div",{directives:[{name:"viewer",rawName:"v-viewer"}],staticClass:"hover",staticStyle:{width:"20px",height:"20px"}},[r("img",{staticStyle:{display:"inline-block",width:"100%",height:"100%"},attrs:{src:t.row.good_thumb_img,alt:""}})]):e._e()]}}])}),r("el-table-column",{attrs:{prop:"good_name",label:"名称","min-width":"160px","show-overflow-tooltip":""}}),r("el-table-column",{attrs:{prop:"cat_name",label:"分类","min-width":"100","show-overflow-tooltip":""}}),r("el-table-column",{attrs:{prop:"brand_name",label:"品牌","show-overflow-tooltip":""}}),r("el-table-column",{attrs:{prop:"good_type",label:"定制",width:"50","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-tag",{attrs:{size:"mini",type:"1"==t.row.good_type?"":"warning"},domProps:{textContent:e._s((e.options1.find((function(e){return e.id==t.row.status}))||{}).name||"--")}})]}}])}),r("el-table-column",{attrs:{prop:"supplierNo",label:"供应商编号",width:"110","show-overflow-tooltip":""}}),r("el-table-column",{attrs:{prop:"supplier_name",label:"供应商名称",width:"110","show-overflow-tooltip":""}}),r("el-table-column",{attrs:{prop:"companyNo",label:"业务公司编号",width:"110","show-overflow-tooltip":""}}),r("el-table-column",{attrs:{prop:"company",label:"业务公司名称",width:"110","show-overflow-tooltip":""}})],1)],1),r("el-col",{attrs:{span:24}},[r("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",rules:e.rulesThis,"label-width":"80px"}},[r("el-row",{staticStyle:{}},[r("el-col",{attrs:{span:8}},[r("el-form-item",{attrs:{label:"所属平台",prop:"platform"}},[r("search-terrace",{attrs:{value:e.ruleForm.platform,disabled:!1,isDetail:!1,placeholder:"所属平台"},on:{searchChange:e.platform_codesearchChange}})],1),r("el-form-item",{attrs:{label:"上线原因",prop:"online_reason"}},[r("el-input",{attrs:{disabled:!1,placeholder:"上线原因",maxlength:"200"},model:{value:e.ruleForm.online_reason,callback:function(t){e.$set(e.ruleForm,"online_reason",t)},expression:"ruleForm.online_reason"}})],1)],1),r("el-col",{staticStyle:{"text-align":"right"},attrs:{span:16}},[r("el-form-item",{attrs:{label:"上线备注",prop:"online_remark"}},[r("el-input",{attrs:{type:"textarea",rows:3,disabled:!1,placeholder:"商品备注",maxlength:"2000","show-word-limit":""},model:{value:e.ruleForm.online_remark,callback:function(t){e.$set(e.ruleForm,"online_remark",t)},expression:"ruleForm.online_remark"}})],1),"007"!==e.id?r("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.submitForm}},[e._v("保 存 ")]):e._e(),r("el-button",{attrs:{size:"mini"},on:{click:function(t){e.showModelThis=!1}}},[e._v(e._s("007"==e.id?"关 闭":"取 消"))])],1)],1)],1)],1)],1)],1)],1)}),[],!1,null,"d15fd8ce",null);t.default=r.exports},"15a7":function(e,t,r){"use strict";r("6551")},"15afa":function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=r("5530"),s=(r("96cf"),r("7db0"),r("d3b7"),r("e9c4"),r("a9e3"),r("d57f")),i=r("f5ed"),o=r("2f62"),l=r("9f53"),c=[{prop:"activity_code",label:"活动编码",fixed:"left",width:"155"},{prop:"activity_name",label:"活动名称"},{prop:"status",label:"状态",width:"105",_slot_:"status"},{prop:"atime",label:"活动时间",_slot_:"atime",width:"270"},{prop:"platform_name",label:"平台名称"},{prop:"creater",label:"创建人",width:"60"},{prop:"addtime",label:"创建时间",width:"142"},{prop:"",label:"操作",fixed:"right",_noset_:!0,_slot_:"operation",width:"50"}];i={name:"active",mixins:[i.a,l.a],computed:Object(n.a)(Object(n.a)({},Object(o.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"active"==e.menu_route}))||{};return e&&e.action&&0(new Date).valueOf()}},rules:{send_num:[{required:!0,validator:function(e,t,r){e=e.required,e&&""===t?r(new Error("不能为空!")):!e||"0"!==t&&"0."!==t&&"0.0"!==t&&"0.00"!==t&&"0.000"!==t?r():r(new Error("不能为零!"))},trigger:"blur"}],post_company:[{type:"array",required:!0,trigger:"change",message:"请输入物流公司"}],sendtype:[{required:!0,trigger:"change",message:"选择发货方式"}],post_code:[{required:!0,validator:function(e,t,r){""===t?r(new Error("不能为空!")):Object(i.c)(t)?r():r(new Error("仅支持字母和数字!"))},trigger:"blur"}],post_fee:[{required:!0,validator:function(e,t,r){e.required&&""===t?r(new Error("不能为空!")):r()},trigger:"blur"}],post_time:[{required:!0,message:"请选择发货时间",trigger:"change"}]}}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis:function(e){e||this.$emit("cancel")}},methods:{initForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,e.rulesThis=e.rules,t.next=5,e.resetForm();case 5:e.loading=!1;case 6:case"end":return t.stop()}}),t)})))()},resetForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$nextTick((function(){var t,r,a;e.$refs.ruleForm&&(e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),t=(a=e.sitem).cgdNo,r=a.wsend_num,a=a.goodinfo.send_way,e.ruleForm={wsm_mobile:"",wsm_contactor:"",wsm_addr:"",cgdNo:t||"",wsm_code:"",post_company:[],post_code:"",post_fee:"",post_time:"",wsend_num:r||"0",sendtype:"0"===a?"1":"2",send_num:r||"0",status:"1"})}));case 2:case"end":return t.stop()}}),t)})))()},number_change:function(e,t){this.ruleForm[t]=e+""||"0",this.$refs.ruleForm.validateField(t)},sendtypeChange:function(){var e=this.ruleForm.sendtype;this.rulesThis.post_code[0].required="1"===e,this.rulesThis.post_company[0].required="1"===e},submitForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=3,e.$refs.ruleForm.validate(function(){var t=Object(a.a)(regeneratorRuntime.mark((function t(r){var a,n,i,o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r){t.next=29;break}if(e.loading=!0,(a=JSON.parse(JSON.stringify(e.ruleForm))).post_company=a.post_company.toString(),n=new Date(a.post_time).valueOf(),(new Date).valueOf()<=n)return e.$message.warning("发货时间不能选择未来时间!"),e.loading=!1,t.abrupt("return");t.next=10;break;case 10:return t.next=12,s.a.orderinadd(a);case 12:if(n=t.sent,i=n.code,o=n.message,e.loading=!1,0!==i){t.next=21;break}e.$notify.success({title:"添加成功",message:""}),e.$emit("refresh"),t.next=27;break;case 21:if(100<=i&&i<=104)return t.next=24,e.logout();t.next=26;break;case 24:t.next=27;break;case 26:"1009"===i?e.$message.warning("".concat(o,",请刷新采购单详情重试!")):e.$message.warning(o);case 27:t.next=31;break;case 29:return t.abrupt("return",!1);case 31:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 3:case"end":return t.stop()}}),t)})))()},handleCompany:function(e){this.ruleForm.post_company=e&&e.code?[e.label]:[],this.$refs.ruleForm.validateField("post_company")}}},r("d2f1"),r=r("2877"),r=Object(r.a)(n,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:"新建入库单",center:!0,align:"left",top:"15vh",width:"700px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)"},on:{close:function(t){e.showModelThis=!1},"update:visible":function(t){e.showModelThis=t}}},[r("el-card",{staticStyle:{"margin-top":"-20px"}},[r("el-row",{attrs:{gutter:10}},[r("el-col",{attrs:{span:24}},[r("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,rules:e.rulesThis,"status-icon":"",size:"mini","label-width":"85px"}},[r("el-row",[r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"可入库总数",prop:"wsend_num",required:"","label-width":"95px"}},[r("el-input",{attrs:{disabled:"",size:"mini",placeholder:"可入库总数",maxlength:"100"},model:{value:e.ruleForm.wsend_num,callback:function(t){e.$set(e.ruleForm,"wsend_num",t)},expression:"ruleForm.wsend_num"}})],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"入库数量",prop:"send_num"}},[r("digital-input",{attrs:{values:e.ruleForm.send_num,placeholder:"入库数量",min:0,name:"ruleForm.send_num",disabled:!1,max:e.ruleForm.wsend_num,position:"right",precision:0,size:"mini",controls:!1,append:""},on:{reschange:function(t){return e.number_change(t,"send_num")}}})],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"发货方式",prop:"sendtype"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{size:"mini",disabled:e.sitem&&"3"===e.sitem.order_type||e.sitem&&"4"===e.sitem.order_type,placeholder:"发货方式"},on:{change:e.sendtypeChange},model:{value:e.ruleForm.sendtype,callback:function(t){e.$set(e.ruleForm,"sendtype",t)},expression:"ruleForm.sendtype"}},e._l(e.options,(function(e){return r("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"物流费用",prop:"post_fee"}},[r("digital-input",{attrs:{values:e.ruleForm.post_fee,placeholder:"物流费用",min:0,disabled:!1,max:1e11,position:"right",precision:2,size:"mini",controls:!1,append:"元"},on:{reschange:function(t){return e.number_change(t,"post_fee")}}})],1)],1),"1"===e.ruleForm.sendtype?r("el-col",{attrs:{span:24}},[r("el-form-item",{attrs:{label:"物流公司",prop:"post_company"}},[r("search-express",{attrs:{value:e.ruleForm.post_company,placeholder:"物流公司",names:"",size:"mini","is-detail":!1},on:{searchChange:e.handleCompany}})],1)],1):e._e(),"1"===e.ruleForm.sendtype?r("el-col",{attrs:{span:24}},[r("el-form-item",{attrs:{label:"物流单号",prop:"post_code"}},[r("el-input",{attrs:{placeholder:"物流单号",size:"mini",maxlength:"100"},model:{value:e.ruleForm.post_code,callback:function(t){e.$set(e.ruleForm,"post_code",t)},expression:"ruleForm.post_code"}})],1)],1):e._e(),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"发货时间",prop:"post_time"}},[r("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"datetime",size:"mini","value-format":"yyyy-MM-dd HH:mm:ss",placeholder:"发货时间","picker-options":e.pickerOptions},on:{change:e.selectTime},model:{value:e.ruleForm.post_time,callback:function(t){e.$set(e.ruleForm,"post_time",t)},expression:"ruleForm.post_time"}})],1)],1),r("el-col",{staticStyle:{"text-align":"right"},attrs:{span:12}},[r("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.submitForm}},[e._v("保 存 ")])],1)],1)],1)],1)],1)],1)],1)}),[],!1,null,"ac20b840",null);t.default=r.exports},"1a16":function(e,t,r){},"1a65":function(e,t,r){"use strict";r("3f3c")},"1a95":function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=(r("e9c4"),r("96cf"),{name:"editMinorderForm",props:["showModel","sitem"],data:function(){return{loading:!1,showModelThis:this.showModel,ruleForm:{skuCode:"",good_name:"",activity_stock:"",moq_num:"",cost_price:"",sale_price:"",activity_price:""},rulesThis:this.rules,rules:{activity_price:[{required:!0,validator:function(e,t,r){""===t?r(new Error("活动价价不能为空!")):r()},trigger:"blur"}]}}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis:function(e){e||this.$emit("cancel")}},methods:{initForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,e.rulesThis=e.rules,t.next=4,e.resetForm();case 4:e.loading=!1;case 5:case"end":return t.stop()}}),t)})))()},resetForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$nextTick((function(){e.$refs.ruleForm&&(e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),e.ruleForm=e.sitem?JSON.parse(JSON.stringify(e.sitem)):{skuCode:"",good_name:"",activity_stock:"",moq_num:"",cost_price:"",sale_price:"",activity_price:""})}));case 2:case"end":return t.stop()}}),t)})))()},activity_price_change:function(e){this.ruleForm.activity_price=e+"",this.$refs.ruleForm.validateField("activity_price")},submitForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.ruleForm.validate(function(){var t=Object(a.a)(regeneratorRuntime.mark((function t(r){var a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r){t.next=7;break}e.loading=!0,a=JSON.parse(JSON.stringify(e.ruleForm)),e.showModelThis=!1,e.$emit("refresh",a),t.next=9;break;case 7:return t.abrupt("return",!1);case 9:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()}}});r("a444"),r=r("2877"),r=Object(r.a)(n,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:"编辑活动信息",center:!0,align:"left",top:"12vh",width:"600px",size:"mini","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)"},on:{"update:visible":function(t){e.showModelThis=t},close:function(t){e.showModelThis=!1}}},[t("el-card",{staticStyle:{margin:"-20px 0 0 0"}},[t("el-row",{attrs:{gutter:10}},[t("el-col",{attrs:{span:24}},[t("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",rules:e.rulesThis,"label-width":"80px"}},[t("el-form-item",{attrs:{label:"商品编号",prop:"skuCode"}},[t("el-input",{attrs:{placeholder:"商品编号",maxlength:"100",disabled:""},model:{value:e.ruleForm.skuCode,callback:function(t){e.$set(e.ruleForm,"skuCode",t)},expression:"ruleForm.skuCode"}})],1),t("el-form-item",{attrs:{label:"商品名称",prop:"good_name"}},[t("el-input",{attrs:{disabled:"",placeholder:"商品名称",maxlength:"100"},model:{value:e.ruleForm.good_name,callback:function(t){e.$set(e.ruleForm,"good_name",t)},expression:"ruleForm.good_name"}})],1),t("el-form-item",{attrs:{label:"活动库存",prop:"activity_stock"}},[t("el-input",{attrs:{placeholder:"活动库存",disabled:"",maxlength:"100"},model:{value:e.ruleForm.activity_stock,callback:function(t){e.$set(e.ruleForm,"activity_stock",t)},expression:"ruleForm.activity_stock"}})],1),t("el-form-item",{attrs:{label:"起订量",prop:"moq_num"}},[t("el-input",{attrs:{disabled:"",placeholder:"起订量",maxlength:"100"},model:{value:e.ruleForm.moq_num,callback:function(t){e.$set(e.ruleForm,"moq_num",t)},expression:"ruleForm.moq_num"}})],1),t("el-form-item",{attrs:{label:"成本单价",prop:"cost_price"}},[t("el-input",{attrs:{disabled:"",placeholder:"成本单价",maxlength:"100"},model:{value:e.ruleForm.cost_price,callback:function(t){e.$set(e.ruleForm,"cost_price",t)},expression:"ruleForm.cost_price"}},[t("template",{slot:"append"},[e._v("元")])],2)],1),t("el-form-item",{attrs:{label:"非活动价",prop:"sale_price"}},[t("el-input",{attrs:{disabled:"",placeholder:"非活动价",maxlength:"100"},model:{value:e.ruleForm.sale_price,callback:function(t){e.$set(e.ruleForm,"sale_price",t)},expression:"ruleForm.sale_price"}},[t("template",{slot:"append"},[e._v("元")])],2)],1),t("el-form-item",{attrs:{label:"活动价",prop:"activity_price"}},[t("digital-input",{attrs:{values:e.ruleForm.activity_price,placeholder:"活动价",min:0,max:1e11,position:"right",precision:2,size:"large",controls:!1,append:"元"},on:{reschange:e.activity_price_change}})],1)],1)],1),t("el-col",{staticStyle:{"text-align":"right"},attrs:{span:24}},["007"!==e.id?t("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("保 存 ")]):e._e(),t("el-button",{on:{click:function(t){e.showModelThis=!1}}},[e._v(e._s("007"==e.id?"关 闭":"取 消"))])],1)],1)],1)],1)}),[],!1,null,"57b7b2a9",null);t.default=r.exports},"1b18e":function(e,t,r){"use strict";r("2fca")},"1b64":function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=r("5530"),s=(r("96cf"),r("a9e3"),r("e9c4"),r("d3b7"),r("159b"),r("3ca3"),r("ddb0"),r("2b3d"),r("9861"),r("f5ed")),i=r("9f53"),o=r("5daa"),l=(r("886e"),r("52ee")),c=r("224e"),u=r("2f62");s={name:"purchaseOrder",mixins:[s.a,i.a],components:{periodDatePickerActive:l.default},computed:Object(n.a)({},Object(u.b)(["tablebtnSize","searchSize","size"])),data:function(){return{changeList:[],fileUrl:o.a.baseURL,loading:!1,parmValue:{select:"",xiugai1:"",xiugai2:"",start_date:"",end_date:"",page:1,size:15},tableData:[],table:{stripe:!0,border:!0,_defaultHeader_:["setcol"]},pageInfo:{size:15,curr:1,total:0},table14:c.f}},mounted:function(){this.searchList()},methods:{searchList:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(""!==e.parmValue.start_date&&""===e.parmValue.end_date||""===e.parmValue.start_date&&""!==e.parmValue.end_date)return e.$message.warning("时间区间不完整!"),t.abrupt("return");t.next=3;break;case 3:return t.abrupt("return");case 7:if(!(r=t.sent)||0!==r.code||!r.data){t.next=13;break}e.tableData=r.data.list,e.pageInfo.total=Number(r.data.count),t.next=20;break;case 13:if(r&&100<=r.code&&r.code<=104)return t.next=16,e.logout();t.next=18;break;case 16:t.next=20;break;case 18:e.tableData=[],e.pageInfo.total=0;case 20:e.loading=!1;case 21:case"end":return t.stop()}}),t)})))()},restSearch:function(){this.parmValue={start_date:"",end_date:"",page:1,size:15},this.pageInfo={size:15,curr:1,total:0},this.searchList()},time:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return t.parmValue.start_date=e.startTime||"",t.parmValue.end_date=e.endTime||"",r.next=4,t.searchList();case 4:case"end":return r.stop()}}),r)})))()},selection_change:function(e){e=e.list,this.changeList=0new Date(n).getTime())return e.$message.warning("咨询截止时间不能晚于项目咨询截止时间!"),e.loading=!1,t.abrupt("return");t.next=12;break;case 12:if(new Date(o).getTime()<=(new Date).getTime())return e.$message.warning("咨询截止时间应该大于当前时间!"),e.loading=!1,t.abrupt("return");t.next=16;break;case 16:return a.khNo=a.khNo.toString(),a.projectNo=a.projectNo.toString(),a.ladder=[],JSON.parse(JSON.stringify(e.tableData)).forEach((function(e){var t={good_name:e.good_name,good_img:e.good_img,cat_id:e.cat_id[e.cat_id.length-1],unit:e.unit.toString(),brand_id:e.brand_id.toString(),arrival_time:e.arrival_time,cost_desc:e.cost_desc,is_addrs:e.is_addrs,is_custom:e.is_custom,metal_id:e.metal_id,config:e.config.toString(),other_config:e.other_config,specs_weight:e.specs_weight,gold_price:e.gold_price,budget_price:e.budget_price,num:e.num,use_desc:e.use_desc,remark:e.remark,pgNo:e.pgNo,total_weight:e.total_weight,is_gold_price:e.is_gold_price,enclosure_file:e.enclosure_file,specinfo:[]};e.specinfo.forEach((function(e){e={specid:e.specid,spec_value_id:e.spec_value_id},t.specinfo.push(e)})),a.ladder.push(t)})),t.next=24,i.a.add(a);case 24:if(l=t.sent,e.loading=!1,!l||0!==l.code){t.next=31;break}e.$notify.success({title:"创建成功!",message:""}),e.$emit("refresh",!0),t.next=37;break;case 31:if(l&&100<=l.code&&l.code<=104)return t.next=34,e.logout();t.next=36;break;case 34:t.next=37;break;case 36:e.$message.warning(l.message);case 37:t.next=41;break;case 39:return t.abrupt("return",!1);case 41:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 3:case"end":return t.stop()}}),t)})))()},selectChange:function(e){var t=this;return Object(n.a)(regeneratorRuntime.mark((function r(){var a,n,s,o,l,c,u,d;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(a=e&&0new Date(n).getTime())return e.$message.warning("咨询截止时间不能晚于项目咨询截止时间!"),e.loading=!1,t.abrupt("return");t.next=8;break;case 8:return a.khNo=a.khNo.toString(),a.projectNo=a.projectNo.toString(),a.brand_id=a.brand_id.toString(),a.unit=a.unit.toString(),a.cat_id=a.cat_id.toString(),a.config=a.config.toString(),a.specinfo=[],JSON.parse(JSON.stringify(e.spec_tableData)).forEach((function(e){e={specid:e.specid,spec_value_id:e.spec_value_id},a.specinfo.push(e)})),delete a.pendtime,delete a.arrtime,delete a.puse_desc,delete a.budget_total,delete a.khname,e.loading=!1,Object.keys(a).forEach((function(t){a[t],e.sitem[t]})),t.next=28,i.a.update(a);case 28:if(l=t.sent,e.loading=!1,!l||0!==l.code){t.next=35;break}e.$notify.success({title:"创建成功!",message:""}),e.$emit("refresh",!0),t.next=41;break;case 35:if(l&&100<=l.code&&l.code<=104)return t.next=38,e.logout();t.next=40;break;case 38:t.next=41;break;case 40:e.$message.warning(l.message);case 41:t.next=45;break;case 43:return t.abrupt("return",!1);case 45:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 3:case"end":return t.stop()}}),t)})))()},selectChange:function(e){var t=this;return Object(n.a)(regeneratorRuntime.mark((function r(){var a,n,s,o,l,c,u,d,p,m,f;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(a=e&&0(new Date).valueOf()}},activeNames:["0","1","2","3","4","5","10"],importSitem:null,confirmSitem:null,price_min:"0",subSitem:null,conGoodData:null,subGoodData:null,status:"",newTime:"",loading:!1,queryId:"",rulesThis:{},coptions:[],options:h,actOptions:[],ruleForm:{},rules:b,options1:_,options2:w,options3:v,options4:x,options5:k,options6:y,options7:F,options8:C,options9:D,onlineColumns:O,priceLoding:!1}},mounted:function(){this.queryId=this.$route.query.id,this.initForm()},methods:{change_good:function(){},statusActive:function(e){var t="";switch(e){case"1":t="系统验证数据中";break;case"2":t="待确认订单信息";break;case"3":t="待处理(待扣减库存)";break;case"4":t="库存不足";break;case"5":t="订单录入成功"}return t},statusActiveTag:function(e){var t="";switch(e){case"1":t="";break;case"2":t="info";break;case"3":t="warning";break;case"4":t="danger";break;case"5":t="success"}return t},initForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,e.rulesThis=e.rules,t.next=4,e.resetForm();case 4:return t.next=6,e.initData();case 6:e.loading=!1;case 7:case"end":return t.stop()}}),t)})))()},againForm:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){var a,n,s,i,o,l,c,u,d,p,m,f,h,g,b;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(a=e.platform_code,n=e.po_code,s=e.platform_time,i=e.plat_code,o=e.sale_source,l=e.mode,c=e.contactor,u=e.mobile,d=e.price,p=e.num,m=e.before_discount_all_price,f=e.activity_code,h=e.order_remark,g=e.addr,b=e.addr_code,t.ruleForm={id:t.queryId||"",platform_code:a||"",po_code:n||"",platform_time:s||"",plat_code:i||"",sale_source:o||"",mode:l||"",contactor:c||"",mobile:u||"",price:d||"",num:p||"",before_discount_all_price:m||"",activity_code:f||"",order_remark:h||"",addr:g||"",addr_code:b&&0=+e.ruleForm.price&&(e.ruleForm.price=i):e.ruleForm.price="0";case 18:case"end":return t.stop()}}),t)})))()},get_goods_active:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r,a,n,s,i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.actOptions=[],n=e.subGoodData,i=n.skuCode,r=n.companyNo,n=n.platform_code,i={skuCode:i,companyNo:r,platform_id:n},t.next=5,m(i);case 5:if(r=t.sent,a=r.code,n=r.data,s=r.message,0!==a){t.next=14;break}i=n.act,e.actOptions=i,t.next=20;break;case 14:if(100<=a&&a<=104)return t.next=17,e.logout();t.next=19;break;case 17:t.next=20;break;case 19:e.$message.warning(s);case 20:0===e.actOptions.length&&(e.ruleForm.activity_code="",e.$refs.ruleForm.validateField("activity_code"));case 21: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=g)}));case 2:case"end":return t.stop()}}),t)})))()},submitForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.ruleForm.validate(function(){var t=Object(a.a)(regeneratorRuntime.mark((function t(r){var a,n,s;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r)return e.loading=!0,a=JSON.parse(JSON.stringify(e.ruleForm)),t.next=5,l(a);t.next=23;break;case 5:if(a=t.sent,n=a.code,a.data,s=a.message,e.loading=!1,0!==n){t.next=15;break}e.$notify.success({title:"提交成功!",message:""}),e.initForm(),t.next=21;break;case 15:if(100<=n&&n<=104)return t.next=18,e.logout();t.next=20;break;case 18:t.next=21;break;case 20:e.$message.warning(s);case 21:t.next=25;break;case 23:return t.abrupt("return",!1);case 25:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()},accMul:function(e,t){var r=0;e=e.toString(),t=t.toString();try{r+=e.split(".")[1].length}catch(e){}try{r+=t.split(".")[1].length}catch(e){}return Number(e.replace(".",""))*Number(t.replace(".",""))/Math.pow(10,r)},set_salegetprice:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){var a,n,s,i;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return t.priceLoding=!0,a={isok:!0,price:"0"},r.next=4,p(e);case 4:if(i=r.sent,n=i.code,s=i.message,i=i.data,0!==n){r.next=13;break}i=i.sale_price,a.price=i+"",r.next=20;break;case 13:if(100<=n&&n<=104)return r.next=16,t.logout();r.next=18;break;case 16:r.next=20;break;case 18:t.$message.warning(s),a.isok=!1;case 20:return t.priceLoding=!1,r.abrupt("return",a);case 22:case"end":return r.stop()}}),r)})))()},getNewTime:function(){this.newTime=(new Date).valueOf()}}},r("ca23"),s=r("2877"),S=Object(s.a)(n,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"orderConfirm pagePadding"},[e.powers&&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"),r=Object(r.a)(n,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:"编辑活动信息",center:!0,align:"left",top:"12vh",width:"600px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)"},on:{"update:visible":function(t){e.showModelThis=t},close:function(t){e.showModelThis=!1}}},[t("el-card",{staticStyle:{margin:"-20px 0 0 0"}},[t("el-row",{attrs:{gutter:10}},[t("el-col",{attrs:{span:24}},[t("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",rules:e.rulesThis,"label-width":"80px"}},[t("el-form-item",{attrs:{label:"商品编号",prop:"skuCode"}},[t("el-input",{attrs:{placeholder:"商品编号",maxlength:"100",disabled:""},model:{value:e.ruleForm.skuCode,callback:function(t){e.$set(e.ruleForm,"skuCode",t)},expression:"ruleForm.skuCode"}})],1),t("el-form-item",{attrs:{label:"商品名称",prop:"good_name"}},[t("el-input",{attrs:{disabled:"",placeholder:"商品名称",maxlength:"100"},model:{value:e.ruleForm.good_name,callback:function(t){e.$set(e.ruleForm,"good_name",t)},expression:"ruleForm.good_name"}})],1),t("el-form-item",{attrs:{label:"活动库存",prop:"activity_stock"}},[t("el-input",{attrs:{placeholder:"活动库存",disabled:"",maxlength:"100"},model:{value:e.ruleForm.activity_stock,callback:function(t){e.$set(e.ruleForm,"activity_stock",t)},expression:"ruleForm.activity_stock"}})],1),t("el-form-item",{attrs:{label:"起订量",prop:"moq_num"}},[t("digital-input",{attrs:{values:e.ruleForm.moq_num,placeholder:"起订量",min:0,max:1e11,position:"right",precision:0,controls:!1,append:""},on:{reschange:e.moq_num_change}})],1),t("el-form-item",{attrs:{label:"成本单价",prop:"cost_price"}},[t("digital-input",{attrs:{values:e.ruleForm.cost_price,placeholder:"起订量",min:0,max:1e11,position:"right",precision:2,controls:!1,append:"元"},on:{reschange:e.cost_price_change}})],1)],1)],1),t("el-col",{staticStyle:{"text-align":"right"},attrs:{span:24}},["007"!==e.id?t("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("保 存 ")]):e._e(),t("el-button",{on:{click:function(t){e.showModelThis=!1}}},[e._v(e._s("007"==e.id?"关 闭":"取 消"))])],1)],1)],1)],1)}),[],!1,null,"37687d94",null);t.default=r.exports},"2fca":function(e,t,r){},"305b":function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=r("5530"),s=(r("96cf"),r("7db0"),r("d3b7"),r("d81d"),r("a9e3"),r("f5ed")),i=r("9f53"),o=r("1b69"),l="admin/",c=function(e,t){return Object(o.a)(l+"expresslist",e,"post",t)},u=function(e,t){return Object(o.a)(l+"expressuse",e,"post",t)},d=r("2f62");s={name:"expressSet",mixins:[s.a,i.a],computed:Object(n.a)(Object(n.a)({},Object(d.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"expressSet"==e.menu_route}))||{};return e&&e.action&&0new Date(e.endTime).valueOf()}},pickerOptions2:{disabledDate:function(t){if(null!=e.startTime&&""!=e.startTime&&t)return t.getTime() 0"}],staticClass:"Pagination",staticStyle:{"text-align":"right","margin-top":"10px"}},[r("el-pagination",{attrs:{size:e.searchSize,"current-page":e.parmValue.page,"page-sizes":[15,50,100],"page-size":e.parmValue.size,layout:"total, sizes, prev, pager, next, jumper",total:e.count},on:{"size-change":e.handleSizeChange,"current-change":e.handlePageChange}})],1)],1):r("no-auth")],1)}),[],!1,null,"62bbd75f",null);t.default=n.exports},"5e89":function(e,t,r){var a=r("861d"),n=Math.floor;e.exports=function(e){return!a(e)&&isFinite(e)&&n(e)===e}},"5f08":function(e,t,r){"use strict";var a=r("1da1"),n=r("ade3"),s=r("5530"),i=(r("96cf"),r("d3b7"),r("159b"),r("b0c0"),r("a9e3"),r("e9c4"),r("d81d"),r("1b69")),o=function(e,t){return Object(i.a)("admin/checkflist",e,"post",t)},l=r("9f53"),c=r("f5ed"),u=r("2f62"),d=[{type:"selection",fixed:"left",_noset_:!0,width:"45",align:"center"},{prop:"spuCode",label:"商品编码",width:"158"},{prop:"good_name",label:"商品名称",_slot_:"good_name","min-width":"200"},{prop:"class_cat",label:"分类",width:"170"},{prop:"brand_name",label:"品牌",width:"100"},{prop:"unit",label:"单位",width:"50"},{prop:"usable_stock",label:"可用库存",width:"110"}];l={name:"searchStockGoodModal",mixins:[l.a,c.a],computed:Object(s.a)({},Object(u.b)(["tablebtnSize","searchSize","size"])),props:["showModel","once","code","good_code","cat_id"],data:function(){var e={options:[],multipleSelection:[],selectLoading:!1,loading:!0,showModelThis:!1,parmValue:{wsm_code:"",cat_id:"",page:1,size:10},tableData:[],passwordModel:!1,passwordModelId:0,isPasswordDetail:!1};return Object(n.a)(e,"tableData",[]),Object(n.a)(e,"table",{stripe:!0,border:!0}),Object(n.a)(e,"pageInfo",{size:10,curr:1,total:0}),Object(n.a)(e,"columns",d),e},watch:{showModel:function(e){(this.showModelThis=e)&&(this.supplierCode=[],this.searchList())},showModelThis:function(e){e||this.$emit("cancel")}},methods:{restSearch:function(){this.parmValue={wsm_code:"",cat_id:"",page:1,size:10},this.pageInfo={size:10,curr:1,total:0},this.searchList()},searchList:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,e.parmValue.wsm_code=e.code||"",e.parmValue.type_code=e.good_code||"",e.parmValue.stock_max="1",e.parmValue.cat_id=e.cat_id,t.next=7,o(e.parmValue);case 7:if(!(r=t.sent)||0!==r.code||!r.data){t.next=14;break}e.tableData=r.data.list,e.tableData.forEach((function(e){e.class_cat="",e.can&&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(i.i)(t)?r():r(new Error("手机号格式不正确!"))},trigger:"blur"}],telephone:[{required:!1,validator:function(e,t,r){""===t||Object(i.o)(t)?r():r(new Error("规则为区号[0+2~3位]-固定电话[7~8位]!"))},trigger:"blur"}],position:[{required:!0,message:"职位不能为空",trigger:"blur"}],registercode:[{required:!0,validator:function(e,t,r){""!==t?Object(i.h)(t)?r():r(new Error("统一社会信用代码不正确!")):r(new Error("请输入统一社会信用代码!"))},trigger:"blur"}],name:[{required:!0,message:"供应商名称不能为空",trigger:"blur"}],nature:[{required:!0,message:"公司类型不能为空",trigger:"change"}],addr:[{required:!0,message:"详细地址不能为空",trigger:"blur"}],legaler:[{required:!0,message:"法人代表不能为空",trigger:"blur"}],registertime:[{required:!0,message:"成立时间不能为空",trigger:"change"}],scope:[{required:!0,message:"营业执照不能为空",trigger:"blur"}]}}},mounted:function(){this.initForm()},methods:{initForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.hand_name="",e.loading=!0,e.resetFormData(),e.rulesThis=e.rules,t.next=6,e.resetForm();case 6:e.loading=!1;case 7:case"end":return t.stop()}}),t)})))()},resetForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$nextTick((function(){e.$refs.ruleForm&&(e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),e.resetFormData())}));case 2:case"end":return t.stop()}}),t)})))()},resetFormData:function(){var e=this.sitem,t=e.id,r=e.coop_state,a=e.source,n=e.type,s=e.category,i=e.delivery_way,o=e.supplier_type,l=e.level,c=e.pay_type,u=e.supplier_img,d=e.prove_img,p=e.contactor,m=e.mobile,f=e.position,h=e.registercode,g=e.name,b=e.nature,_=e.addr,w=e.legaler,v=e.registertime,x=e.scope,k=e.personid,y=e.person;e=e.telephone;this.hand_name=y||"",this.ruleForm={id:t||"",coop_state:r||"",source:a||"",type:n||"",category:s||"",delivery_way:i||"",supplier_type:o||"",level:l||"",pay_type:c||"",supplier_img:u||"",prove_img:d?(d||"").split(","):[],contactor:p||"",mobile:m||"",telephone:e||"",position:f||"",registercode:h||"",name:g||"",nature:b||"",addr:_||"",legaler:w||"",registertime:v||"",scope:x||"",personid:k?[k]:[]}},closeImg:function(e){this.ruleForm.prove_img.splice(e,1),this.$refs.ruleForm.validateField("prove_img")},submitForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.ruleForm.validate(function(){var t=Object(a.a)(regeneratorRuntime.mark((function t(r){var a,s,i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r){t.next=32;break}if(e.loading=!0,(a=JSON.parse(JSON.stringify(e.ruleForm))).prove_img=a.prove_img.toString(),a.personid=a.personid.toString(),s={},"add"===e.id)return delete a.id,t.next=10,n.a.add(a);t.next=13;break;case 10:s=t.sent,t.next=16;break;case 13:return t.next=15,n.a.update(a);case 15:s=t.sent;case 16:if(e.loading=!1,!s||0!==s.code){t.next=24;break}i="add"===e.id?"添加成功!":"修改成功!",e.$notify.success({title:i,message:""}),e.showModelThis=!1,e.$emit("refresh",s.data),t.next=30;break;case 24:if(s&&100<=s.code&&s.code<=104)return t.next=27,e.logout();t.next=29;break;case 27:t.next=30;break;case 29:e.$message.warning(s.message);case 30:t.next=34;break;case 32:return t.abrupt("return",!1);case 34:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()},deleteimg:function(){this.ruleForm.supplier_img="",this.$refs.ruleForm.validateField("supplier_img")},handleHandoverName:function(e){e&&e.id?this.ruleForm.personid=[e.id]:this.ruleForm.personid=[],this.$refs.ruleForm.validateField("personid")},type_search_change:function(e){var t=e.id;e.code,e.label,this.ruleForm.nature=t||"",this.$refs.ruleForm.validateField("nature")},UploadSuccessEventsupplier_img:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t.UploadSuccessEvent(1,e);case 2:case"end":return r.stop()}}),r)})))()},UploadSuccessEventgood_info_img:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t.UploadSuccessEvent(3,e);case 2:case"end":return r.stop()}}),r)})))()},UploadSuccessEvent:function(e,t){var r=this;return Object(a.a)(regeneratorRuntime.mark((function a(){var n;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if("noToken"===(n=t.url))return a.next=4,r.logout();a.next=6;break;case 4:a.next=8;break;case 6:1===e?(r.ruleForm.supplier_img=n,r.$refs.ruleForm.validateField("supplier_img")):2===e?(r.ruleForm.good_img=n,r.$refs.ruleForm.validateField("good_img")):(r.ruleForm.prove_img.push(n),r.$refs.ruleForm.validateField("prove_img")),r.$message.success("图片上传成功!");case 8:case"end":return a.stop()}}),a)})))()},UploadErrorEventsupplier_img:function(e){this.imgUploadError(1,e)},UploadErrorEventgood_info_img:function(e){this.imgUploadError(3,e)},imgUploadError:function(e,t){"break"!==t&&(this.$message.error("图片上传失败!"),this.$refs.ruleForm.validateField(1===e?"supplier_img":2===e?"good_img":"good_info_img"))},beforeAvatarUpload:function(e){var t=!1;"image/jpg"!==e.type&&"image/png"!==e.type&&"image/jpeg"!==e.type||(t=!0),e=e.size/1024/1024<1;return t||this.$message.error("图片格式不正确!"),e||this.$message.error("图片大小不能超过 1MB!"),t&&e}}},r("ec0d"),r=r("2877"),r=Object(r.a)(s,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"ruleForm",staticClass:"supplierAdd",attrs:{model:e.ruleForm,"status-icon":"",rules:e.rulesThis,size:"small","label-width":"100px"}},[r("el-row",[r("el-col",{attrs:{span:6}},[r("div",{staticClass:"supplierAdd-title",staticStyle:{margin:"6px 0 0 10px"}},[e._v(" 基础信息 ")])]),r("el-col",{attrs:{span:6}},[r("el-form-item",{attrs:{label:"合作状态",prop:"coop_state"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{disabled:"add"!==e.type&&"edit"!==e.type,placeholder:"合作状态"},model:{value:e.ruleForm.coop_state,callback:function(t){e.$set(e.ruleForm,"coop_state",t)},expression:"ruleForm.coop_state"}},e._l(e.coop_stateoptions,(function(e){return r("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1)],1),r("el-col",{attrs:{span:6}},[r("el-form-item",{attrs:{label:"供应商来源",prop:"source"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{disabled:"add"!==e.type&&"edit"!==e.type,placeholder:"供应商来源"},model:{value:e.ruleForm.source,callback:function(t){e.$set(e.ruleForm,"source",t)},expression:"ruleForm.source"}},e._l(e.sourceoptions,(function(e){return r("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1)],1),r("el-col",{attrs:{span:6}},[r("el-form-item",{attrs:{label:"申请类型",prop:"type"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{disabled:"add"!==e.type&&"edit"!==e.type,placeholder:"申请类型"},model:{value:e.ruleForm.type,callback:function(t){e.$set(e.ruleForm,"type",t)},expression:"ruleForm.type"}},e._l(e.typeoptions,(function(e){return r("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1)],1),r("el-col",{attrs:{span:6}},[r("el-form-item",{attrs:{label:"所属类别",prop:"category"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{disabled:"add"!==e.type&&"edit"!==e.type,placeholder:"所属类别"},model:{value:e.ruleForm.category,callback:function(t){e.$set(e.ruleForm,"category",t)},expression:"ruleForm.category"}},e._l(e.categoryoptions,(function(e){return r("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1)],1),r("el-col",{attrs:{span:6}},[r("el-form-item",{attrs:{label:"物流方式",prop:"delivery_way"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{disabled:"add"!==e.type&&"edit"!==e.type,placeholder:"物流方式"},model:{value:e.ruleForm.delivery_way,callback:function(t){e.$set(e.ruleForm,"delivery_way",t)},expression:"ruleForm.delivery_way"}},e._l(e.delivery_wayoptions,(function(e){return r("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1)],1),r("el-col",{attrs:{span:6}},[r("el-form-item",{attrs:{label:"供应商类型",prop:"supplier_type"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{disabled:"add"!==e.type&&"edit"!==e.type,placeholder:"供应商类型"},model:{value:e.ruleForm.supplier_type,callback:function(t){e.$set(e.ruleForm,"supplier_type",t)},expression:"ruleForm.supplier_type"}},e._l(e.supplier_typeoptions,(function(e){return r("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1)],1),r("el-col",{attrs:{span:6}},[r("el-form-item",{attrs:{label:"供应商级别",prop:"level"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{disabled:"add"!==e.type&&"edit"!==e.type,placeholder:"供应商级别"},model:{value:e.ruleForm.level,callback:function(t){e.$set(e.ruleForm,"level",t)},expression:"ruleForm.level"}},e._l(e.leveloptions,(function(e){return r("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1)],1),r("el-col",{attrs:{span:6}},[r("el-form-item",{attrs:{label:"付款方式",prop:"pay_type"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{disabled:"add"!==e.type&&"edit"!==e.type,placeholder:"付款方式"},model:{value:e.ruleForm.pay_type,callback:function(t){e.$set(e.ruleForm,"pay_type",t)},expression:"ruleForm.pay_type"}},e._l(e.pay_typeoptions,(function(e){return r("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),r("el-form-item",{attrs:{label:"负责人",prop:"personid"}},[r("search-account",{attrs:{disabled:"add"!==e.type&&"edit"!==e.type,"is-detail":"add"!==e.type,value:e.ruleForm.personid,size:"small",names:e.hand_name,placeholder:"负责人名称"},on:{searchChange:e.handleHandoverName}})],1)],1),r("el-col",{attrs:{span:6}},[r("el-form-item",{staticClass:"activity-upload",attrs:{label:"营业执照",prop:"supplier_img",disabled:"view"==e.id}},[e.ruleForm.supplier_img?r("div",{staticClass:"img-find"},[r("img",{directives:[{name:"viewer",rawName:"v-viewer"}],staticClass:"avatar hover fl",staticStyle:{width:"50px",height:"50px"},attrs:{src:e.ruleForm.supplier_img}}),"view"!==e.type?r("el-link",{staticClass:"fl",staticStyle:{margin:"0 0 0 16px"},attrs:{underline:!1,type:"warning"},on:{click:function(t){return e.deleteimg()}}},[e._v("删除")]):e._e()],1):r("div",{staticClass:"btnupload",staticStyle:{position:"relative"}},[r("i",{staticClass:"el-icon-plus avatar-uploader-icon"}),"view"!==e.type?r("file-upload",{staticClass:"Upload",attrs:{disabled:"view"==e.id,accept:".jpg,.png,.jpeg",multiple:!0,uploadcondition:e.beforeAvatarUpload},on:{UploadErrorEvent:e.UploadErrorEventsupplier_img,UploadSuccessEvent:e.UploadSuccessEventsupplier_img}}):e._e()],1)])],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"资质证明",prop:"prove_img"}},[r("div",{staticClass:"good_info_img_div"},[r("ul",{staticClass:"clear"},[e.ruleForm&&e.ruleForm.prove_img&&0=)"}}),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:"cost_fee",label:"工艺费"}}),r("el-table-column",{attrs:{prop:"market_price",label:"市场价"}}),r("el-table-column",{attrs:{prop:"market_platform",label:"对比平台"}}),r("el-table-column",{attrs:{prop:"status",label:"状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s("1"===t.row.status?"启用":"禁用"))]}}],null,!1,3462811054)})],1)],1)],2):e._e()],1),"2"===e.status&&"view"==e.queryType&&e.powers.some((function(e){return"056"==e}))?r("el-collapse-item",{attrs:{title:"产品部门审批",name:"1"}},[""!==e.newTime?r("online-exam-form",{attrs:{newTime:e.newTime,time:e.sitem.online_time,disabled:!1,isMust:!1,statusList:[]},on:{searchChange:e.examForm}}):e._e()],1):e._e(),"3"===e.status&&"view"==e.queryType&&e.powers.some((function(e){return"058"==e}))?r("el-collapse-item",{attrs:{title:"财务定价",name:"2"}},[""!==e.newTime?r("fixed-price-form",{attrs:{newTime:e.newTime,id:e.queryId,spuCode:e.spuCode,sitem:e.sitem,disabled:!1,isMust:!1},on:{resSuccess:e.initForm}}):e._e()],1):e._e(),"4"===e.status&&"view"==e.queryType&&e.powers.some((function(e){return"059"==e}))?r("el-collapse-item",{attrs:{title:"财务审核定价",name:"3"}},[""!==e.newTime?r("exam-form",{attrs:{newTime:e.newTime,options8:e.options8,disabled:!1,isMust:!1},on:{searchChange:e.examForm2}}):e._e()],1):e._e(),"5"===e.status&&"view"==e.queryType&&e.powers.some((function(e){return"071"==e}))?r("el-collapse-item",{attrs:{title:"操作商品上线",name:"4"}},[""!==e.newTime?r("handle-online-form",{attrs:{newTime:e.newTime,options:[],code:e.sitem.plat_code,disabled:!1,isMust:!1},on:{resSuccess:e.examForm3}}):e._e()],1):e._e()],1)],1):e._e(),r("el-tab-pane",{attrs:{label:"审批记录",name:"2"}},[""!==e.newTime?r("process-time-line",{attrs:{newTime:e.newTime,type:"SPSX",orderCode:e.queryId}}):e._e()],1)],1)],1):r("div",[r("no-auth")],1)])}),[],!1,null,"5a317b86",null);t.default=p.exports},"6f53":function(e,t,r){function a(e){return function(t){for(var r,a=i(t),l=s(a),c=l.length,u=0,d=[];uparseInt(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("c004"),r=r("2877"),r=Object(r.a)(s,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("el-row",{staticClass:"addForm"},[r("el-col",{attrs:{span:24}},[r("el-form",{ref:"tableForm",staticClass:"demo-tableForm product_go",attrs:{model:e.tableForm,rules:e.tableFormThis,size:"mini"}},[r("el-table",{attrs:{data:e.tableForm.product_go,border:"",size:"mini","row-key":"key"}},[e._l(e.columns,(function(t,a){return["text"===t.type&&t.show&&"error_code"!==t.prop?r("el-table-column",{key:t.prop+a,attrs:{prop:t.prop,"show-overflow-tooltip":"",label:t.label,width:t.width,"min-width":t.minWidth}}):"text"===t.type&&t.show&&"error_code"===t.prop?r("el-table-column",{key:t.prop+a,attrs:{prop:t.prop,label:t.label,width:t.width,"min-width":t.minWidth},scopedSlots:e._u([{key:"default",fn:function(t){return[r("span",{staticClass:"spscope"},[e._v(e._s(t.row.error_msg))])]}}],null,!0)}):"text"!==t.type&&t.show?r("el-table-column",{key:t.prop+a,attrs:{prop:t.prop,label:t.label,width:t.width,"min-width":t.minWidth},scopedSlots:e._u([{key:"default",fn:function(a){return[r("el-form-item",{attrs:{prop:"product_go."+a.$index+"."+t.prop,rules:a.row.edit?e.tableFormThis[t.prop]:{},size:"mini"}},[!0===a.row.edit&&"input"===t.type?r("el-input",{attrs:{size:"mini",maxlength:"250",clearable:""},model:{value:a.row[t.prop],callback:function(r){e.$set(a.row,t.prop,r)},expression:"scope.row[item.prop]"}}):e._e(),!0===a.row.edit&&"select"===t.type?r("el-select",{staticStyle:{width:"100%"},attrs:{clearable:"",placeholder:"异常原因"},on:{change:function(t){return e.elSelectChange(t,a.$index)}},model:{value:a.row[t.prop],callback:function(r){e.$set(a.row,t.prop,r)},expression:"scope.row[item.prop]"}},e._l(e.options,(function(e){return r("el-option",{key:e.result_code,attrs:{label:e.result,value:e.result_code,disabled:"0"===e.status}})})),1):e._e(),a.row.edit?e._e():r("span",{staticClass:"spscope"},[e._v(e._s("select"===t.type?a.row.error_msg:a.row[t.prop]))])],1)]}}],null,!0)}):e._e()]})),"3"==e.status&&e.powers.some((function(e){return"022"==e}))||"4"==e.status&&e.powers.some((function(e){return"023"==e}))?r("el-table-column",{attrs:{fixed:"right",label:"操作",width:"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.edit?e._e():r("el-tooltip",{attrs:{effect:"dark",content:"编辑",placement:"top"}},[r("i",{staticClass:"el-icon-edit tb-icon",on:{click:function(r){return e.editRow(t.$index)}}})]),t.row.edit?r("el-tooltip",{attrs:{effect:"dark",content:"保存",placement:"top"}},[r("i",{staticClass:"el-icon-circle-check tb-icon",on:{click:function(r){return e.checkRow(t.$index)}}})]):e._e(),r("el-tooltip",{attrs:{effect:"dark",content:"重置",placement:"top"}},[r("i",{staticClass:"el-icon-refresh-left tb-icon",on:{click:function(r){return e.resetRow(t.$index)}}})])]}}],null,!1,3847135684)}):e._e()],2)],1)],1),r("el-col",{staticStyle:{"text-align":"right",padding:"10px 0 0 0"},attrs:{span:24}},["3"==e.status&&e.powers.some((function(e){return"022"==e}))||"4"==e.status&&e.powers.some((function(e){return"023"==e}))?r("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.submitForm}},[e._v("保 存 ")]):e._e()],1)],1)}),[],!1,null,"304ba0f6",null);t.default=r.exports},"798a9":function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=r("5530"),s=(r("96cf"),r("7db0"),r("d3b7"),r("e9c4"),r("159b"),r("c740"),r("a434"),r("f5ed")),i=r("9f53"),o=r("e320"),l=r("962f"),c=r("d9c3"),u=r("f8d8"),d=r("2f62");s={name:"salesOrderDetail",mixins:[s.a,i.a],props:["newTime","id","sitem"],components:{outOrderAddModel:l.default,addModel:c.default,inAddrModel:u.a},watch:{newTime:function(e){e&&this.initForm()}},computed:Object(n.a)(Object(n.a)({},Object(d.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"salesOrderDetail"==e.menu_route}))||{};return e&&e.action&&0",l.forEach((function(e){c+="
  • \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,"]")})),c+=t+"
  • "})),c+="",e.$notify({title:"一下商品已上线或已经在审批流程中!",dangerouslyUseHTMLString:!0,message:c})):e.$message.warning(o);case 25:t.next=29;break;case 27:return t.abrupt("return",!1);case 29:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()}}};r("9a09"),r=r("2877"),r=Object(r.a)(s,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:"添加商品上线",center:!0,align:"left",top:"8vh",width:"1040px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)"},on:{"update:visible":function(t){e.showModelThis=t},close:function(t){e.showModelThis=!1}}},[r("el-card",{staticStyle:{margin:"-20px 0 0 0","padding-bottom":"0"}},[r("el-row",{attrs:{gutter:10}},[r("el-col",{staticStyle:{padding:"0 0 15px 0"},attrs:{span:24}},[r("el-table",{staticStyle:{width:"100%"},attrs:{data:e.sitem,stripe:"",size:"mini",border:"","max-height":"380px"}},[r("el-table-column",{attrs:{prop:"spuCode",label:"编号",width:"160","show-overflow-tooltip":""}}),r("el-table-column",{attrs:{prop:"good_img",label:"图片",width:"45","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.good_img?r("div",{directives:[{name:"viewer",rawName:"v-viewer"}],staticClass:"hover",staticStyle:{width:"20px",height:"20px"}},[r("img",{staticStyle:{display:"inline-block",width:"100%",height:"100%"},attrs:{src:t.row.good_img,alt:""}})]):e._e()]}}])}),r("el-table-column",{attrs:{prop:"good_name",label:"名称","min-width":"160px","show-overflow-tooltip":""}}),r("el-table-column",{attrs:{prop:"cat_name",label:"分类","min-width":"100","show-overflow-tooltip":""}}),r("el-table-column",{attrs:{prop:"brand_name",label:"品牌","show-overflow-tooltip":""}}),r("el-table-column",{attrs:{prop:"good_type",label:"定制",width:"50","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-tag",{attrs:{size:"mini",type:"1"==t.row.good_type?"":"warning"},domProps:{textContent:e._s((e.options1.find((function(e){return e.id==t.row.status}))||{}).name||"--")}})]}}])}),r("el-table-column",{attrs:{prop:"supplierNo",label:"供应商编号",width:"110","show-overflow-tooltip":""}}),r("el-table-column",{attrs:{prop:"supplier_name",label:"供应商名称",width:"110","show-overflow-tooltip":""}}),r("el-table-column",{attrs:{prop:"companyNo",label:"业务公司编号",width:"110","show-overflow-tooltip":""}}),r("el-table-column",{attrs:{prop:"company",label:"业务公司名称",width:"110","show-overflow-tooltip":""}})],1)],1),r("el-col",{attrs:{span:24}},[r("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",rules:e.rulesThis,"label-width":"80px"}},[r("el-row",{staticStyle:{}},[r("el-col",{attrs:{span:8}},[r("el-form-item",{attrs:{label:"所属平台",prop:"platform"}},[r("search-terrace",{attrs:{value:e.ruleForm.platform,disabled:!1,isDetail:!1,placeholder:"所属平台"},on:{searchChange:e.platform_codesearchChange}})],1),r("el-form-item",{attrs:{label:"上线原因",prop:"online_reason"}},[r("el-input",{attrs:{disabled:!1,placeholder:"上线原因",maxlength:"200"},model:{value:e.ruleForm.online_reason,callback:function(t){e.$set(e.ruleForm,"online_reason",t)},expression:"ruleForm.online_reason"}})],1)],1),r("el-col",{staticStyle:{"text-align":"right"},attrs:{span:16}},[r("el-form-item",{attrs:{label:"上线备注",prop:"online_remark"}},[r("el-input",{attrs:{type:"textarea",rows:3,disabled:!1,placeholder:"商品备注",maxlength:"2000","show-word-limit":""},model:{value:e.ruleForm.online_remark,callback:function(t){e.$set(e.ruleForm,"online_remark",t)},expression:"ruleForm.online_remark"}})],1),"007"!==e.id?r("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.submitForm}},[e._v("保 存 ")]):e._e(),r("el-button",{attrs:{size:"mini"},on:{click:function(t){e.showModelThis=!1}}},[e._v(e._s("007"==e.id?"关 闭":"取 消"))])],1)],1)],1)],1)],1)],1)],1)}),[],!1,null,"5b6e1541",null);t.default=r.exports},"886e":function(e,t,r){"use strict";var a=r("1b69"),n="admin/";t.a={add:function(e,t){return Object(a.a)(n+"add",e,"post",t)},list:function(e,t){return Object(a.a)(n+"cgdlist",e,"post",t)},delete:function(e,t){return Object(a.a)(n+"delete",e,"post",t)},detail:function(e,t){return Object(a.a)(n+"cgdinfo",e,"post",t)},update:function(e,t){return Object(a.a)(n+"cgdedit",e,"post",t)},reportzixuntotal:function(e,t){return Object(a.a)(n+"reportzixuntotal",e,"post",t)},reportpurcheaseordersum:function(e,t){return Object(a.a)(n+"reportpurcheaseordersum",e,"post",t)},reportconsultbidssum:function(e,t){return Object(a.a)(n+"reportconsultbidssum",e,"post",t)},reportpurcheaseordersumbyuser:function(e,t){return Object(a.a)(n+"reportpurcheaseordersumbyuser",e,"post",t)},reportconsultinfobidssum:function(e,t){return Object(a.a)(n+"reportconsultinfobidssum",e,"post",t)}}},"88ec":function(e,t,r){"use strict";var a=r("1b69"),n="admin/";t.a={add:function(e,t){return Object(a.a)(n+"roleadd",e,"post",t)},list:function(e,t){return Object(a.a)(n+"rolelist",e,"post",t)},detail:function(e,t){return Object(a.a)(n+"roleinfo",e,"post",t)},update:function(e,t){return Object(a.a)(n+"rolesave",e,"post",t)},status:function(e,t){return Object(a.a)(n+"rolestatus",e,"post",t)},actionList:function(e,t){return Object(a.a)(n+"menuactionlist",e,"post",t)}}},"896c":function(e,t,r){},"89b12":function(e,t,r){},"89d1":function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=r("5530"),s=(r("96cf"),r("7db0"),r("d3b7"),r("a9e3"),r("8177")),i=r("456f"),o=r("0ee5"),l=r("e66a"),c=r("f5ed"),u=r("2f62"),d=r("9f53");c={name:"terrace",mixins:[c.a,d.a],components:{addEdit:s.default},computed:Object(n.a)(Object(n.a)({},Object(u.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"terrace"==e.menu_route}))||{};return e&&e.action&&0=Date.now()}},supplier_name:"",accountNames:"",loading:!1,title:"添加业务企业",showModelThis:this.showModel,ruleForm:{id:"",company:"",type:"",inv_code:"",inv_legaler:"",inv_time:"",inv_addr:"",inv_bank:"",inv_bankNo:"",contactor:"",mobile:"",addr:"",inv_scope:"",license_img:""},rulesThis:this.rules,rules:{company:[{required:!0,message:"企业名称不能为空!",trigger:"blur"}],type:[{required:!0,message:"公司类型不能为空!",trigger:"change"}],inv_code:[{required:!0,validator:function(e,t,r){""!==t?Object(i.h)(t)?r():r(new Error("统一社会信用代码不正确!")):r(new Error("统一社会信用代码不能为空!"))},trigger:"blur"}],inv_legaler:[{required:!0,validator:function(e,t,r){""===t?r(new Error("法人不能为空!")):!Object(i.e)(t)||Object(i.f)(t)?r(new Error("法人只能为汉字!")):r()},trigger:"blur"}],inv_time:[{required:!0,message:"成立日期不能为空!",trigger:"change"}],inv_addr:[{required:!0,message:"详细地址不能为空!",trigger:"blur"}],inv_bank:[{required:!0,message:"银行名称不能为空!",trigger:"blur"}],inv_bankNo:[{required:!0,message:"银行卡号不能为空!",trigger:"blur"}],contactor:[{required:!0,validator:function(e,t,r){""===t?r(new Error("联系人不能为空!")):!Object(i.e)(t)||Object(i.f)(t)?r(new Error("联系人只能为汉字!")):r()},trigger:"blur"}],mobile:[{required:!0,validator:function(e,t,r){""!==t?Object(i.j)(t)||Object(i.i)(t)?r():r(new Error("联系电话格式不正确!")):r(new Error("联系电话不能为空!"))},trigger:"blur"}],addr:[{required:!0,message:"联系地址不能为空!",trigger:"blur"}],inv_scope:[{required:!0,message:"经营范围不能为空!",trigger:"blur"}],license_img:[{required:!1,message:"",trigger:"blur"}]}}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis:function(e){e||this.$emit("cancel")}},methods:{initForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.supplier_name="",e.loading=!0,"003"===e.isDetail)return e.title="新建业务企业",e.rulesThis=e.rules,t.next=7,e.resetForm();t.next=9;break;case 7:t.next=24;break;case 9:if("007"==e.isDetail)return e.title="业务企业详情",e.rulesThis={},t.next=14,e.resetForm();t.next=18;break;case 14:return t.next=16,e.initData();case 16:t.next=24;break;case 18:return e.title="修改业务企业",e.rulesThis=e.rules,t.next=22,e.resetForm();case 22:return t.next=24,e.initData();case 24:e.loading=!1;case 25:case"end":return t.stop()}}),t)})))()},type_search_change:function(e){var t=e.id;e.code,e.label,this.ruleForm.type=t||"",this.$refs.ruleForm.validateField("type")},initData:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var r,a,s,i,o,l,c,u,d,p,m,f,h,g,b;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n.a.detail({id:e.id});case 2:if(!(r=t.sent)||0!==r.code||!r.data){t.next=9;break}b=r.data,a=b.id,s=b.company,i=b.type,o=b.inv_code,l=b.inv_legaler,c=b.inv_time,u=b.inv_addr,d=b.inv_bank,p=b.inv_bankNo,m=b.contactor,f=b.mobile,h=b.addr,g=b.inv_scope,b=b.license_img,e.ruleForm={id:a||"",company:s||"",type:i||"",inv_code:o||"",inv_legaler:l||"",inv_time:c||"",inv_addr:u||"",inv_bank:d||"",inv_bankNo:p||"",contactor:m||"",mobile:f||"",addr:h||"",inv_scope:g||"",license_img:b||""},t.next=15;break;case 9:if(r&&100<=r.code&&r.code<=104)return t.next=12,e.logout();t.next=14;break;case 12:t.next=15;break;case 14:e.$message.warning(r.message);case 15:case"end":return t.stop()}}),t)})))()},resetForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$nextTick((function(){e.$refs.ruleForm&&(e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),e.ruleForm={id:"",company:"",type:"",inv_code:"",inv_legaler:"",inv_time:"",inv_addr:"",inv_bank:"",inv_bankNo:"",contactor:"",mobile:"",addr:"",inv_scope:"",license_img:""})}));case 2:case"end":return t.stop()}}),t)})))()},submitForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.ruleForm.validate(function(){var t=Object(a.a)(regeneratorRuntime.mark((function t(r){var a,s,i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r){t.next=30;break}if(e.loading=!0,a=JSON.parse(JSON.stringify(e.ruleForm)),s={},"003"===e.isDetail)return delete a.id,t.next=8,n.a.add(a);t.next=11;break;case 8:s=t.sent,t.next=14;break;case 11:return t.next=13,n.a.update(a);case 13:s=t.sent;case 14:if(e.loading=!1,!s||0!==s.code){t.next=22;break}i="003"===e.isDetail?"添加成功":"修改成功",e.$notify.success({title:i,message:""}),e.showModelThis=!1,e.$emit("refresh"),t.next=28;break;case 22:if(s&&100<=s.code&&s.code<=104)return t.next=25,e.logout();t.next=27;break;case 25:t.next=28;break;case 27:e.$message.warning(s.message);case 28:t.next=32;break;case 30:return t.abrupt("return",!1);case 32:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()},beforeAvatarUpload:function(e){var t=!1,r=!1;return e&&("image/jpg"!==e.type&&"image/png"!==e.type&&"image/jpeg"!==e.type||(t=!0),r=e.size/1024/1024<1,t||this.$message.error("图片格式不正确!"),r||this.$message.error("图片大小不能超过 1MB!")),t&&r},UploadErrorEvent:function(e){"break"!==e&&(this.$message.error("图片上传失败!"),this.ruleForm.license_img="",this.$refs.ruleForm.validateField("license_img"))},UploadSuccessEvent:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function r(){var a;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if("noToken"===(a=e.url))return r.next=4,t.logout();r.next=6;break;case 4:r.next=9;break;case 6:t.ruleForm.license_img=a,t.$message.success("图片上传成功!"),t.$refs.ruleForm.validateField("license_img");case 9:case"end":return r.stop()}}),r)})))()}}},r("6e90"),r=r("2877"),r=Object(r.a)(s,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:e.title,center:!0,align:"left",top:"8vh",width:"1040px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)"},on:{close:function(t){e.showModelThis=!1},"update:visible":function(t){e.showModelThis=t}}},[t("el-card",{staticStyle:{"margin-top":"-20px"}},[t("el-row",[t("el-col",{attrs:{span:24}},[t("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",size:"small",rules:e.rulesThis,"label-width":"90px"}},[t("el-row",{},[t("el-col",{staticStyle:{height:"336px","border-right":"1px solid #dcdfe6"},attrs:{span:1}},[t("ul",{staticClass:"tc fff"},[t("li",[e._v("企")]),t("li",[e._v("业")]),t("li",[e._v("信")]),t("li",[e._v("息")])])]),t("el-col",{attrs:{span:23}},[t("el-row",[t("el-col",{attrs:{span:13}},[t("el-form-item",{attrs:{label:"企业名称",prop:"company"}},[t("el-input",{attrs:{placeholder:"企业名称",filterable:"",disabled:"007"==e.isDetail,maxlength:"100",clearable:""},model:{value:e.ruleForm.company,callback:function(t){e.$set(e.ruleForm,"company",t)},expression:"ruleForm.company"}})],1)],1),t("el-col",{attrs:{span:11}},[t("el-form-item",{staticStyle:{width:"100%"},attrs:{label:"统一社会信用代码",prop:"inv_code","label-width":"150px"}},[t("el-input",{attrs:{placeholder:"统一社会信用代码",filterable:"",disabled:"007"==e.isDetail,maxlength:"40",clearable:""},model:{value:e.ruleForm.inv_code,callback:function(t){e.$set(e.ruleForm,"inv_code",t)},expression:"ruleForm.inv_code"}})],1)],1),t("el-col",{attrs:{span:13}},[t("el-form-item",{attrs:{label:"详细地址",prop:"inv_addr"}},[t("el-input",{attrs:{placeholder:"详细地址",maxlength:"100",clearable:"",disabled:"007"==e.isDetail},model:{value:e.ruleForm.inv_addr,callback:function(t){e.$set(e.ruleForm,"inv_addr",t)},expression:"ruleForm.inv_addr"}})],1)],1),t("el-col",{attrs:{span:11}},[t("el-form-item",{attrs:{label:"法人",prop:"inv_legaler"}},[t("el-input",{attrs:{placeholder:"法人",maxlength:"12",minlength:"2",clearable:"",disabled:"007"==e.isDetail},model:{value:e.ruleForm.inv_legaler,callback:function(t){e.$set(e.ruleForm,"inv_legaler",t)},expression:"ruleForm.inv_legaler"}})],1)],1),t("el-col",{attrs:{span:13}},[t("el-form-item",{attrs:{label:"成立日期",prop:"inv_time"}},[t("el-date-picker",{staticStyle:{width:"100%"},attrs:{align:"right",type:"date",placeholder:"成立日期","value-format":"yyyy-MM-dd","picker-options":e.pickerOptions},model:{value:e.ruleForm.inv_time,callback:function(t){e.$set(e.ruleForm,"inv_time",t)},expression:"ruleForm.inv_time"}})],1)],1),t("el-col",{attrs:{span:11}},[t("el-form-item",{attrs:{label:"联系人",prop:"contactor"}},[t("el-input",{attrs:{placeholder:"联系人",maxlength:"12",minlength:"2",clearable:"",disabled:"007"==e.isDetail},model:{value:e.ruleForm.contactor,callback:function(t){e.$set(e.ruleForm,"contactor",t)},expression:"ruleForm.contactor"}})],1)],1),t("el-col",{attrs:{span:13}},[t("el-form-item",{attrs:{label:"营业范围",prop:"inv_scope"}},[t("el-input",{attrs:{type:"textarea",placeholder:"营业范围",maxlength:"2000",rows:8,"show-word-limit":"",disabled:"007"==e.isDetail},model:{value:e.ruleForm.inv_scope,callback:function(t){e.$set(e.ruleForm,"inv_scope",t)},expression:"ruleForm.inv_scope"}})],1)],1),t("el-col",{attrs:{span:11}},[t("el-form-item",{attrs:{label:"公司类型",prop:"type"}},[t("search-company-type",{attrs:{value:e.ruleForm.type,disabled:!1,size:"mini",isDetail:!1,placeholder:"公司类型"},on:{searchChange:e.type_search_change}})],1)],1),t("el-col",{staticStyle:{height:"124px"},attrs:{span:11}},[t("el-form-item",{staticClass:"activity-upload",attrs:{label:"营业执照",prop:"license_img"}},[t("div",{staticClass:"btnupload",staticStyle:{position:"relative"}},[e.ruleForm.license_img?t("img",{staticClass:"avatar",attrs:{src:e.ruleForm.license_img}}):t("i",{staticClass:"el-icon-plus avatar-uploader-icon"}),t("file-upload",{staticClass:"Upload",attrs:{disabled:"007"==e.isDetail,accept:".jpg,.png,.jpeg",multiple:!0,uploadcondition:e.beforeAvatarUpload},on:{UploadErrorEvent:e.UploadErrorEvent,UploadSuccessEvent:e.UploadSuccessEvent}})],1),t("div",{staticClass:"txt-tips fl"},[t("p",[e._v("大小:小于1M")]),t("p",[e._v("尺寸:100*100")]),t("p",[e._v("类型:jpg.png.jpeg")])])])],1)],1)],1)],1),t("el-row",{staticStyle:{"border-top":"1px solid #dcdfe6"}},[t("el-col",{staticStyle:{height:"120px",padding:"20px 0 0 0","border-right":"1px solid #dcdfe6"},attrs:{span:1}},[t("ul",{staticClass:"tc sss"},[t("li",[e._v("开")]),t("li",[e._v("票")]),t("li",[e._v("信")]),t("li",[e._v("息")])])]),t("el-col",{staticStyle:{padding:"20px 0 0 0"},attrs:{span:23}},[t("el-row",[t("el-col",{attrs:{span:13}},[t("el-form-item",{attrs:{label:"银行名称",prop:"inv_bank"}},[t("el-input",{attrs:{placeholder:"银行名称",disabled:"007"==e.isDetail,maxlength:"100"},model:{value:e.ruleForm.inv_bank,callback:function(t){e.$set(e.ruleForm,"inv_bank",t)},expression:"ruleForm.inv_bank"}})],1)],1),t("el-col",{attrs:{span:11}},[t("el-form-item",{attrs:{label:"银行卡号",prop:"inv_bankNo"}},[t("el-input",{attrs:{placeholder:"银行卡号",maxlength:"100",disabled:"007"==e.isDetail},model:{value:e.ruleForm.inv_bankNo,callback:function(t){e.$set(e.ruleForm,"inv_bankNo",t)},expression:"ruleForm.inv_bankNo"}})],1)],1),t("el-col",{attrs:{span:13}},[t("el-form-item",{attrs:{label:"联系地址",prop:"addr"}},[t("el-input",{attrs:{placeholder:"联系地址",maxlength:"100",disabled:"007"==e.isDetail},model:{value:e.ruleForm.addr,callback:function(t){e.$set(e.ruleForm,"addr",t)},expression:"ruleForm.addr"}})],1)],1),t("el-col",{attrs:{span:11}},[t("el-form-item",{attrs:{label:"联系电话",prop:"mobile"}},[t("el-input",{attrs:{placeholder:"联系电话",maxlength:"100",disabled:"007"==e.isDetail},model:{value:e.ruleForm.mobile,callback:function(t){e.$set(e.ruleForm,"mobile",t)},expression:"ruleForm.mobile"}})],1),t("div",{staticStyle:{width:"100%","text-align":"right"}},["007"!==e.isDetail?t("el-button",{attrs:{type:"primary",size:"small"},on:{click:e.submitForm}},[e._v("保 存 ")]):e._e(),t("el-button",{attrs:{size:"small"},on:{click:function(t){e.showModelThis=!1}}},[e._v(e._s("007"==e.isDetail?"关 闭":"取 消"))])],1)],1)],1)],1)],1)],1)],1)],1)],1)],1)}),[],!1,null,"5aeb37c4",null);t.default=r.exports},"9f4e":function(e,t,r){},"9fce":function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=r("5530"),s=(r("96cf"),r("7db0"),r("d3b7"),r("e9c4"),r("25f0"),r("159b"),r("a9e3"),r("f5ed")),i=r("9f53"),o=r("1b69"),l="admin/",c=function(e,t){return Object(o.a)(l+"getstockbet",e,"post",t)},u=[{prop:"company_no",label:"仓库业务公司编码",width:"150"},{prop:"company_name",label:"仓库业务公司名称","min-width":"180"},{prop:"supplier_code",label:"仓库所在公司编码",width:"150"},{prop:"supplier_name",label:"仓库所在公司名称","min-width":"180"},{prop:"wsm_code",label:"仓库编码",width:"180"},{prop:"wsm_name",label:"仓库名称","min-width":"100"},{prop:"good_code",label:"商品编码",width:"160"},{prop:"good_name",label:"商品名称","min-width":"150"},{prop:"specinfo",label:"规格","min-width":"150",_slot_:"specinfo"},{prop:"can",label:"分类",_slot_:"can",width:"155"},{prop:"brand_name",label:"品牌",width:"85"},{prop:"unit",label:"单位",width:"50"},{prop:"usable_stock",label:"当前库存",width:"80"},{prop:"wait_in_stock",label:"待入库",width:"80"},{prop:"wait_out_stock",label:"待出库",width:"80"},{prop:"intra_stock",label:"在途库存",width:"80"}],d=r("2f62");s={name:"spaceCount",mixins:[s.a,i.a],components:{},computed:Object(n.a)(Object(n.a)({},Object(d.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"stockCount"==e.menu_route}))||{};return e&&e.action&&0new Date(e.endTime).valueOf()}},pickerOptions2:{disabledDate:function(t){if(null!=e.startTime&&""!=e.startTime&&t)return t.getTime()=)","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("系统售价")])]}},{key:"default",fn:function(t){return[r("el-form-item",{directives:[{name:"show",rawName:"v-show",value:t.row.edit,expression:"scope.row.edit"}],style:{marginBottom:t.row.edit?"13px":"0"},attrs:{prop:"good_ladder."+t.$index+".new_sale_price",rules:e.addrRules.new_sale_price,size:"mini"}},[r("el-input",{directives:[{name:"loading",rawName:"v-loading",value:t.row.loading,expression:"scope.row.loading"}],attrs:{placeholder:"系统售价",disabled:!0,size:"mini",maxlength:"20"},model:{value:t.row.new_sale_price,callback:function(r){e.$set(t.row,"new_sale_price",r)},expression:"scope.row.new_sale_price"}})],1),r("span",{directives:[{name:"show",rawName:"v-show",value:!t.row.edit,expression:"!scope.row.edit"}]},[e._v(e._s(t.row.new_sale_price))])]}}])}),e.sitem&&"1"===e.sitem.is_gold_price&&e.is_noble?e._e():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))])]}}],null,!1,3637421800)}),e.sitem&&"1"===e.sitem.is_gold_price&&e.is_noble?r("el-table-column",{attrs:{prop:"new_cost_fee","show-overflow-":"",label:"系统工艺费"},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+".new_cost_fee",rules:e.addrRules.new_cost_fee,size:"mini"}},[r("el-input",{directives:[{name:"loading",rawName:"v-loading",value:t.row.loading,expression:"scope.row.loading"}],attrs:{placeholder:"工艺费",disabled:!0,size:"mini",maxlength:"20"},model:{value:t.row.new_cost_fee,callback:function(r){e.$set(t.row,"new_cost_fee",r)},expression:"scope.row.new_cost_fee"}})],1),r("span",{directives:[{name:"show",rawName:"v-show",value:!t.row.edit,expression:"!scope.row.edit"}]},[e._v(e._s(t.row.new_cost_fee))])]}}],null,!1,2813150560)}):e._e(),e.sitem&&"1"===e.sitem.is_gold_price&&e.is_noble?r("el-table-column",{attrs:{prop:"cost_fee",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+".cost_fee",rules:e.addrRules.cost_fee,size:"mini"}},[r("digital-input",{attrs:{values:t.row.cost_fee,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,"cost_fee",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.cost_fee))])]}}],null,!1,3735667788)}):e._e(),r("el-table-column",{attrs:{prop:"market_price",label:"市场价","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-form-item",{directives:[{name:"show",rawName:"v-show",value:t.row.edit,expression:"scope.row.edit"}],style:{marginBottom:t.row.edit?"13px":"0"},attrs:{prop:"good_ladder."+t.$index+".market_price",rules:e.addrRules.market_price,size:"mini"}},[r("digital-input",{attrs:{values:t.row.market_price,placeholder:"市场价",min:0,max:1e11,position:"right",precision:2,controls:!1,append:"",newTime:t.row.newTime,size:"mini",disabled:!t.row.edit},on:{reschange:function(r){return e.num_change(r,"market_price",t.$index)}}})],1),r("span",{directives:[{name:"show",rawName:"v-show",value:!t.row.edit,expression:"!scope.row.edit"}]},[e._v(e._s(t.row.market_price))])]}}])}),r("el-table-column",{attrs:{prop:"market_platform",label:"对比平台","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-form-item",{directives:[{name:"show",rawName:"v-show",value:t.row.edit,expression:"scope.row.edit"}],style:{marginBottom:t.row.edit?"13px":"0"},attrs:{prop:"good_ladder."+t.$index+".market_platform",rules:e.addrRules.market_platform,size:"mini"}},[r("el-input",{attrs:{placeholder:"对比平台",maxlength:"50",disabled:!t.row.edit},model:{value:t.row.market_platform,callback:function(r){e.$set(t.row,"market_platform",r)},expression:"scope.row.market_platform"}})],1),r("span",{directives:[{name:"show",rawName:"v-show",value:!t.row.edit,expression:"!scope.row.edit"}]},[e._v(e._s(t.row.market_platform))])]}}])}),r("el-table-column",{attrs:{prop:"status",label:"状态","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-form-item",{directives:[{name:"show",rawName:"v-show",value:t.row.edit,expression:"scope.row.edit"}],style:{marginBottom:t.row.edit?"13px":"0"},attrs:{prop:"good_ladder."+t.$index+".status",rules:e.addrRules.status,size:"mini"}},[r("el-select",{attrs:{placeholder:"状态"},model:{value:t.row.status,callback:function(r){e.$set(t.row,"status",r)},expression:"scope.row.status"}},e._l(e.status_options,(function(e){return r("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),r("span",{directives:[{name:"show",rawName:"v-show",value:!t.row.edit,expression:"!scope.row.edit"}]},[e._v(e._s("1"==t.row.status?"启用":"禁用"))])]}}])}),r("el-table-column",{attrs:{fixed:"right"},scopedSlots:e._u([{key:"header",fn:function(t){return[r("span",[e._v("操作")]),r("el-tooltip",{attrs:{effect:"dark",content:"添加阶梯",placement:"top"}},[r("i",{staticClass:"el-icon-circle-plus-outline tb-icon fr",on:{click:function(t){return e.openCostEdit(-1)}}})])]}},{key:"default",fn:function(t){return[t.row.edit?r("el-tooltip",{attrs:{effect:"dark",content:"保存",placement:"top"}},[r("i",{staticClass:"el-icon-circle-check tb-icon",on:{click:function(r){return e.checkRow(t.$index)}}})]):r("el-tooltip",{attrs:{effect:"dark",content:"修改",placement:"top"}},[r("i",{staticClass:"el-icon-edit tb-icon",on:{click:function(r){return e.openCostEdit(t.$index)}}})]),r("el-tooltip",{attrs:{effect:"dark",content:"删除",placement:"top"}},[r("i",{staticClass:"el-icon-delete tb-icon",on:{click:function(r){return e.openCostEditDelete(t.$index)}}})])]}}])})],1)],1),r("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm-goodsOnline",attrs:{model:e.ruleForm,"status-icon":"",rules:e.rulesThis,size:"mini"}},[r("el-row",[r("el-col",{attrs:{span:24}},[r("el-form-item",{attrs:{label:"售价凭证类型",prop:"proof_type"}},[r("el-radio-group",{on:{change:function(t){return e.set_proof_url()}},model:{value:e.ruleForm.proof_type,callback:function(t){e.$set(e.ruleForm,"proof_type",t)},expression:"ruleForm.proof_type"}},e._l(e.options,(function(t){return r("el-radio",{key:t.value,attrs:{label:t.value}},[e._v(e._s(t.label))])})),1),r("el-button",{staticClass:"fr",attrs:{type:"primary"},on:{click:function(t){e.showVoucher=!0}}},[e._v("查看历史凭证")])],1),r("show-voucher-model",{attrs:{showModel:e.showVoucher,id:e.spuCode},on:{cancel:function(t){e.showVoucher=!1},searchChange:e.resvoucher}})],1),r("el-col",{attrs:{span:18}},[r("el-form-item",{attrs:{label:"凭证文件",prop:"proof_url"}},[r("ul",{staticClass:"shangchuan-ul"},["1"===e.ruleForm.proof_type?r("li",{staticClass:"shiping"},[e.video_url?r("div",{staticClass:"clearfix"},[r("video",{staticClass:"fl",attrs:{width:"250",controls:""}},[r("source",{attrs:{src:e.video_url,type:"video/mp4"}}),r("source",{attrs:{src:e.video_url,type:"video/avi"}}),e._v(" 您的浏览器不支持Video标签。 ")]),r("el-link",{staticStyle:{margin:"0 0 0 16px"},attrs:{underline:!1,type:"warning"},on:{click:function(t){return e.deleteUrl("1")}}},[e._v("删除")])],1):r("div",{staticClass:"activity-upload"},[r("div",{staticClass:"btnupload",staticStyle:{position:"relative"}},[r("i",{staticClass:"el-icon-plus avatar-uploader-icon"}),r("video-upload",{staticClass:"Upload",attrs:{disabled:"view"===e.type||"editCoin"===e.type,accept:".mp4,.avi",multiple:!1,uploadcondition:e.beforeVideoUpload},on:{UploadErrorEvent:e.UploadVideoEventproof_url,UploadSuccessEvent:e.UploadSuccessVideoproof_url}})],1),r("div",{staticClass:"txt-tips fl"},[r("p",[e._v("建议大小:小于10MB")]),r("p",[e._v("文件格式:.mp4,.avi")])])])]):e._e(),"2"===e.ruleForm.proof_type?r("li",{staticClass:"tupian"},[e.img_url?r("div",{staticClass:"clearfix"},[r("img",{staticClass:"avatar fl",staticStyle:{width:"50px",height:"50px"},attrs:{src:e.img_url}}),r("el-link",{staticStyle:{margin:"0 0 0 16px"},attrs:{underline:!1,type:"warning"},on:{click:function(t){return e.deleteUrl("2")}}},[e._v("删除")])],1):r("div",{staticClass:"activity-upload"},[r("div",{staticClass:"btnupload",staticStyle:{position:"relative"}},[r("i",{staticClass:"el-icon-plus avatar-uploader-icon"}),r("file-upload",{staticClass:"Upload",attrs:{disabled:"view"===e.type||"editCoin"===e.type,accept:".jpg,.png,.jpeg",multiple:!1,uploadcondition:e.beforeAvatarUpload},on:{UploadErrorEvent:e.UploadErrorEventproof_url,UploadSuccessEvent:e.UploadSuccessEventproof_url}})],1),r("div",{staticClass:"txt-tips fl"},[r("p",[e._v("建议大小:小于1MB")]),r("p",[e._v("文件格式:.jpg,.png,.jpeg")])])])]):e._e(),"3"===e.ruleForm.proof_type?r("li",{staticClass:"qita"},[e.other_url?r("div",{staticClass:"clearfix"},[r("a",{attrs:{href:e.other_url,download:"凭证文件"}},[e._v("点击下载")]),r("el-link",{staticStyle:{margin:"0 0 0 16px"},attrs:{underline:!1,type:"warning"},on:{click:function(t){return e.deleteUrl("3")}}},[e._v("删除")])],1):r("div",{staticClass:"activity-upload"},[r("div",{staticClass:"btnupload",staticStyle:{position:"relative"}},[r("i",{staticClass:"el-icon-plus avatar-uploader-icon"}),r("file-upload-pdf",{staticClass:"Upload",attrs:{accept:".xlsx,.xls,.pdf,.zip,.rar,.7z",multiple:!1,uploadcondition:e.beforeOtherUpload},on:{UploadErrorEvent:e.UploadErrorOtherproof_url,UploadSuccessEvent:e.UploadSuccessOtherproof_url}})],1),r("div",{staticClass:"txt-tips fl"},[r("p",[e._v("建议大小:小于5MB")]),r("p",[e._v("文件格式:.xlsx,.xls,.pdf,.zip,.rar,.7z")])])])]):e._e()])])],1),r("el-col",{attrs:{span:6}},[r("el-form-item",{staticClass:"fr"},[e.isDetail?e._e():r("el-button",{attrs:{size:"mini",type:"primary"},on:{click:e.submitForm}},[e._v("保 存 ")])],1)],1)],1)],1)],1)}),[],!1,null,"b6ee8f62",null);t.default=r.exports},b7e3:function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=r("5530"),s=(r("96cf"),r("7db0"),r("d3b7"),r("a9e3"),r("baa8")),i=r("fc11"),o=r("0ee5"),l=r("e66a"),c=r("f5ed"),u=r("2f62"),d=r("9f53");c={name:"orderuse",mixins:[c.a,d.a],components:{addEdit:s.default},computed:Object(n.a)(Object(n.a)({},Object(u.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"orderuse"==e.menu_route}))||{};return e&&e.action&&0 0"}]},[e._v("/")]),r("span",[e._v(e._s(t))])])})),e._v(" "+e._s(t.name))],2)}))}},{key:"status",fn:function(t){var a=t.scope;return[r("el-tag",{attrs:{size:e.tablebtnSize,type:"0"==a.row.status?"warning":""},domProps:{textContent:e._s((e.statusOptions.find((function(e){return e.id==a.row.status}))||{}).label||"--")}})]}},{key:"operation",fn:function(t){var a=t.scope;return[e.powers.some((function(e){return"002"==e}))?r("el-tooltip",{attrs:{effect:"dark",content:"重置密码",placement:"top"}},[r("i",{staticClass:"el-icon-refresh-left tb-icon",on:{click:function(t){return e.openPasswordModal(a.row.id,!1)}}})]):e._e(),e.powers.some((function(e){return"007"==e}))?r("el-tooltip",{attrs:{effect:"dark",content:"详情",placement:"top"}},[r("i",{staticClass:"el-icon-view tb-icon",on:{click:function(t){return e.openModal(a.row.id,!0,a.row)}}})]):e._e(),e.powers.some((function(e){return"005"==e}))?r("el-tooltip",{attrs:{effect:"dark",content:"修改",placement:"top"}},[r("i",{staticClass:"el-icon-edit tb-icon",on:{click:function(t){return e.openModal(a.row.id,!1,a.row)}}})]):e._e(),e.powers.some((function(e){return"004"==e}))&&"1"===a.row.status?r("el-tooltip",{attrs:{effect:"dark",content:"禁用",placement:"top"}},[r("i",{staticClass:"el-icon-video-pause tb-icon",on:{click:function(t){return e.statusConfirm(a.row.id,a.row.status)}}})]):e._e(),e.powers.some((function(e){return"004"==e}))&&"0"===a.row.status?r("el-tooltip",{attrs:{effect:"dark",content:"启用",placement:"top"}},[r("i",{staticClass:"el-icon-video-play tb-icon",on:{click:function(t){return e.statusConfirm(a.row.id,a.row.status)}}})]):e._e()]}}],null,!1,2288877523)}):e._e(),r("add-edit",{attrs:{id:e.modelId,sitem:e.sitem,"show-model":e.showModel,"is-detail":e.isDetail},on:{refresh:e.searchList,cancel:function(t){e.showModel=!1}}}),r("reset-password",{attrs:{id:e.passwordModelId,"show-model":e.passwordModel,"is-detail":e.isPasswordDetail},on:{refresh:e.searchList,cancel:function(t){e.passwordModel=!1}}})],1):r("div",[r("no-auth")],1)])}),[],!1,null,"080b61f6",null);t.default=i.exports},c421:function(e,t,r){"use strict";r.r(t);var a=r("2909"),n=r("1da1"),s=(r("e9c4"),r("d81d"),r("99af"),r("d3b7"),r("159b"),r("c740"),r("96cf"),r("a2b6")),i=r("9f53"),o=r("61f7");i={name:"sellReturn",props:["showModel","id","isDetail","sitem","showModelThis","newTime"],mixins:[i.a],data:function(){return{loading:!1,showModelThis:this.showModel,ruleForm:{orderCode:"",remark:"",errorCode:""},rulesThis:this.rules,rules:{errorCode:[{required:!0,message:"请选择退货原因",trigger:"change"}],remark:[{required:!0,message:"请输入退货备注",trigger:"blur"}]},tableForm:{get_product_go:[]}}},mounted:function(){this.initForm()},watch:{newTime:function(e){e&&this.initForm()}},methods:{errorCode_change:function(e){this.ruleForm.errorCode=e&&e.code?e.code:"",this.$refs.ruleForm.validateField("errorCode")},initForm:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,e.rulesThis=e.rules,t.next=4,e.resetForm();case 4:e.loading=!1;case 5:case"end":return t.stop()}}),t)})))()},resetForm:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$nextTick((function(){var t,r,n;e.$refs.ruleForm&&(e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),n=(r=e.sitem).info,t=r.addrs,r=r.orderCode,(n&&0=new Date(a).getTime()&&(this.$message.warning("咨询截止时间不能大于要求到货时间!"),1===t?this.ruleForm.arrtime="":2===t&&(this.ruleForm.endtime="")),this.$refs.ruleForm.validateField("arrtime"),this.$refs.ruleForm.validateField("endtime")},platform_codesearchChange:function(e){var t=e.id;e.code,e.label,this.ruleForm.platform=t||"",this.$refs.ruleForm.validateField("platform")},company_idsearchChange:function(e){var t;e&&(e.id,t=e.code,e.label,this.ruleForm.companyNo=t||""),this.$refs.ruleForm.validateField("companyNo")},customerChange:function(e){e&&e.id?(this.ruleForm.khNo=[e.code],this.ruleForm.customer_name=e.label):(this.ruleForm.khNo=[],this.ruleForm.customer_name=""),this.$refs.ruleForm.validateField("khNo")},budget_total_change:function(e){this.ruleForm.budget_total=e+"",this.$refs.ruleForm.validateField("budget_total")},openCostEdit:function(e,t){this.costmodelIndex=e,this.costsitem=t,this.costshowModel=!0},openCostEditDelete:function(e){this.ruleForm.ladder.splice(e,1),this.$refs.ruleForm.validateField("ladder")},initForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,e.company="",e.ruleForm={name:"",platform:"",companyNo:e.business_companyNo||"",khNo:[],customer_name:"",budget_total:"0",arrtime:"",endtime:"",use_desc:"",ladder:[]},e.rulesThis=e.rules,t.next=6,e.resetForm();case 6:e.loading=!1;case 7:case"end":return t.stop()}}),t)})))()},resetForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$nextTick((function(){var t,r,a,n,s,i,o,l,c,u,d,p;e.$refs.ruleForm&&(e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),t=(p=e.sitem).project_name,r=p.budget_total,a=p.ladder,n=p.use_desc,s=p.arrtime,i=p.endtime,o=p.khName,l=p.company,c=p.khNo,u=p.companyNo,d=p.platform_id,p=p.platform_name,e.company=l||"",e.platform_name=p||"",e.ruleForm={name:t||"",platform:d||"",companyNo:u||"",khNo:c?[c]:[],customer_name:o||"",budget_total:r||"0",arrtime:s||"",endtime:i||"",use_desc:n||"",ladder:a&&0new 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,3783681329)}):e._e(),r("add-edit",{attrs:{id:e.modelId,"show-model":e.showModel,"is-detail":e.isDetail},on:{refresh:e.searchList,cancel:function(t){e.showModel=!1}}})],1):r("div",[r("no-auth")],1)])}),[],!1,null,"ecb6cb46",null);t.default=u.exports},d486:function(e,t,r){"use strict";r("3866")},d4a1:function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=r("ade3"),s=r("5530"),i=(r("96cf"),r("7db0"),r("d3b7"),r("a9e3"),r("f5ed")),o=r("9f53"),l=r("d9bb"),c=r("2da1"),u=r("2f62");i={name:"storeSet",mixins:[i.a,o.a],components:{addEdit:c.default},computed:Object(s.a)(Object(s.a)({},Object(u.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"storeSet"==e.menu_route}))||{};return e&&e.action&&0parseInt(r)?this.$message.warning("调拨数量不大于可用库存数!"):this.tableForm.product_go[e].edit=!1:this.$message.warning("请输入数字!")},editRow:function(e){-1!==this.tableForm.product_go.findIndex((function(e){return e.edit}))?this.$message.warning("请完成其他行的编辑!"):this.tableForm.product_go[e].edit=!0},addGoodsRes:function(e){var t=JSON.parse(JSON.stringify(this.tableForm.product_go)),r=JSON.parse(JSON.stringify(e)),n=(e=[]).concat.apply(e,Object(a.a)(t)),s=JSON.parse(JSON.stringify(this.delList));r.forEach((function(e,a){-1===t.findIndex((function(t){return e.spuCode===t.spuCode}))&&(r[a].usable_num=r[a].usable_stock,r[a].allot_num=r[a].usable_stock,r[a].edit=!1,n.push(r[a]))})),n.forEach((function(e){var t=s.findIndex((function(t){return e.spuCode===t.spuCode}));-1!==t&&s.splice(t,1)})),this.tableForm.product_go=(e=[]).concat.apply(e,Object(a.a)(n)),this.delList=(e=[]).concat.apply(e,Object(a.a)(s)),this.$refs.tableForm.validateField("product_go")},selectSupplierOut:function(e){e=e.code,this.ruleForm.supplier_code=e?[e]:[],this.supplier_code=e||"",this.ruleForm.stock_code=[],this.tableForm.product_go=[],this.delList=[],this.$refs.ruleForm.validateField("supplier_code")},selectStockOut:function(e){e&&e.id?(this.ruleForm.stock_code=[e.code],this.stock_code=e.code):(this.ruleForm.stock_code=[],this.stock_code=""),this.tableForm.product_go=[],this.delList=[],this.$refs.ruleForm.validateField("stock_code")},selectStockIn:function(e){e&&e.id?(this.ruleForm.stock_in_code=[e.code],this.stock_in_code=e.code):(this.ruleForm.stock_in_code=[],this.stock_in_code=""),this.$refs.ruleForm.validateField("stock_in_code")},selectSupplierIn:function(e){e&&e.id?(this.ruleForm.supplier_in_code=[e.code],this.supplier_in_code=e.code):(this.ruleForm.supplier_in_code=[],this.supplier_in_code=""),this.ruleForm.stock_in_code=[],this.$refs.ruleForm.validateField("supplier_in_code")}}},r("4032c"),i=r("2877"),r=Object(i.a)(o,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("el-row",{staticClass:"addForm"},[r("el-col",{attrs:{span:24}},[r("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",rules:e.rulesThis,size:"mini","label-width":"85px"}},[r("el-row",[r("el-col",{attrs:{span:12}},[r("div",{staticClass:"label-title-model"},[e._v("出库仓库信息:")]),r("el-form-item",{attrs:{label:"业务公司",prop:"out_companyNo"}},[r("search-work-company",{attrs:{value:e.ruleForm.out_companyNo,size:"mini",disabled:!("add"===e.id||"0"===e.status&&e.powers.some((function(e){return"005"==e}))),"is-detail":"add"!==e.id,placeholder:"业务公司"},on:{searchChange:function(t){return e.supplierChange(t,"out_companyNo")}}})],1),r("el-form-item",{attrs:{label:"公司",prop:"supplier_code"}},[r("search-supplier",{attrs:{value:e.ruleForm.supplier_code,placeholder:"请选择公司",size:"mini","is-detail":"add"!==e.id,disabled:!("add"===e.id||"0"===e.status&&e.powers.some((function(e){return"005"==e}))),names:e.supplier_name},on:{searchChange:e.selectSupplierOut}})],1),r("el-form-item",{attrs:{label:"仓库",prop:"stock_code"}},[r("search-stock",{attrs:{value:e.ruleForm.stock_code,isDetail:"add"!==e.id,disabled:!("add"===e.id||"0"===e.status&&e.powers.some((function(e){return"005"==e}))),size:"mini",placeholder:"请选择仓库",isRelation:!0,companyCode:e.supplier_code,names:""},on:{searchChange:e.selectStockOut}})],1)],1),r("el-col",{attrs:{span:12}},[r("div",{staticClass:"label-title-model"},[e._v("入库仓库信息:")]),r("el-form-item",{attrs:{label:"业务公司",prop:"in_companyNo"}},[r("search-work-company",{attrs:{value:e.ruleForm.in_companyNo,names:"",size:"mini",disabled:!("add"===e.id||"0"===e.status&&e.powers.some((function(e){return"005"==e}))),"is-detail":"add"!==e.id,placeholder:"业务公司"},on:{searchChange:function(t){return e.supplierChange(t,"in_companyNo")}}})],1),r("el-form-item",{attrs:{label:"公司",prop:"supplier_in_code"}},[r("search-supplier",{attrs:{value:e.ruleForm.supplier_in_code,placeholder:"请选择公司",size:"mini","is-detail":"add"!==e.id,disabled:!("add"===e.id||"0"===e.status&&e.powers.some((function(e){return"005"==e}))),names:e.supplier_in_name},on:{searchChange:e.selectSupplierIn}})],1),r("el-form-item",{attrs:{label:"仓库",prop:"stock_in_code"}},[r("search-stock",{attrs:{value:e.ruleForm.stock_in_code,isDetail:"add"!==e.id,size:"mini",disabled:!("add"===e.id||"0"===e.status&&e.powers.some((function(e){return"005"==e}))),placeholder:"请选择仓库",isRelation:!0,companyCode:e.supplier_in_code,names:""},on:{searchChange:e.selectStockIn}})],1)],1)],1)],1)],1),"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-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()]})),"add"===e.id||"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,"c5743f14",null);t.default=r.exports},dbbb:function(e,t,r){"use strict";function a(e,t,r){e.required&&""===t?r(new Error("不能为空!")):r()}r.d(t,"b",(function(){return n})),r.d(t,"c",(function(){return s})),r.d(t,"d",(function(){return i})),r.d(t,"e",(function(){return o})),r.d(t,"f",(function(){return l})),r.d(t,"g",(function(){return c})),r.d(t,"h",(function(){return u})),r.d(t,"i",(function(){return d})),r.d(t,"j",(function(){return p})),r.d(t,"a",(function(){return m})),r.d(t,"k",(function(){return f}));var n=[{id:"0",name:"否"},{id:"1",name:"是"}],s=[{id:"0",name:"非泰康"},{id:"1",name:"泰康"}],i=[{id:"0",name:"无销售权限"},{id:"1",name:"有销售权限"}],o=[{id:"0",name:"非库存品"},{id:"1",name:"库存品"}],l=[{id:"0",name:"否"},{id:"1",name:"是"}],c=[{id:"1",name:"全国"},{id:"2",name:"全国除偏远"}],u=[{id:"0",name:"否"},{id:"1",name:"是"}],d=[{id:"0",name:"无工差"},{id:"1",name:"有工差"}],p=["证书","包装盒","绒布袋","标签","其他"],m=[{type:"selection",fixed:"left",_noset_:!0},{prop:"spuCode",label:"编号",width:"160px"},{prop:"good_thumb_img",label:"图片",_slot_:"good_thumb_img",width:"45px"},{prop:"good_name",label:"名称","min-width":"160px"},{prop:"cat_name",label:"分类"},{prop:"brand_name",label:"品牌"},{prop:"isonline",label:"是否上线",_slot_:"isonline",width:"70px"},{prop:"status",label:"状态",_slot_:"status",width:"118px"},{prop:"supplierNo",label:"供应商编号",width:"110px"},{prop:"supplier_name",label:"供应商名称",width:"110px"},{prop:"companyNo",label:"业务公司编号",width:"110px"},{prop:"company",label:"业务公司名称",width:"110px"},{prop:"creater",label:"创建人",width:"70px"},{prop:"addtime",label:"创建时间",width:"140px"},{prop:"",label:"操作",fixed:"right",_noset_:!0,width:"170px",_slot_:"operation"}],f={cat_id:[{type:"array",required:!0,message:"请选择商品分类",trigger:"change"}],brandid:[{type:"array",required:!0,message:"请选择商品品牌",trigger:"change"}],noble_weight:[{required:!0,validator:function(e,t,r){e=e.required,e&&""===t?r(new Error("不能为空!")):!e||"0"!==t&&"0."!==t&&"0.0"!==t&&"0.00"!==t&&"0.000"!==t?r():r(new Error("不能为零!"))},trigger:"blur"}],weight:[{required:!0,validator:a,trigger:"blur"}],good_type:[{required:!0,message:"请选择是否定制",trigger:"change"}],is_stock:[{required:!0,message:"请选择是否库存品",trigger:"change"}],company_id:[{required:!0,message:"请选择业务公司",trigger:"change"}],supplierNo:[{type:"array",required:!0,message:"请选择供应商",trigger:"change"}],is_auth:[{required:!0,message:"请选择是否有权限销售",trigger:"change"}],tax:[{required:!0,message:"请选择税率",trigger:"change"}],good_name:[{required:!0,message:"请输入商品名称",trigger:"blur"}],unit:[{type:"array",required:!0,message:"请输入商品单位",trigger:"blur"}],is_exclusive:[{required:!0,type:"array",message:"请选择专属类型",trigger:"change"}],noble_metal:[{required:!0,message:"请选择贵金属种类",trigger:"change"}],is_gold_price:[{required:!0,message:"请选择是否启用实时金价",trigger:"change"}],moq:[{required:!0,validator:a,trigger:"blur"}],customized:[{required:!0,validator:a,trigger:"blur"}],after_sales:[{required:!0,message:"售后说明不能为空",trigger:"blur"}],good_remark:[{required:!0,message:"商品备注不能为空",trigger:"blur"}],packing_list:[{required:!0,message:"请输入包装清单",trigger:"blur"}],packing_way:[{required:!0,message:"请输入包装方式",trigger:"blur"}],packing_spec:[{required:!0,message:"请输入装箱规格",trigger:"blur"}],packing_weight:[{required:!0,message:"请输入装箱重量",trigger:"blur"}],packing_szie:[{required:!0,message:"请输入装箱尺寸",trigger:"blur"}],supply_area:[{required:!0,message:"请选择供货区域",trigger:"change"}],delivery_place:[{type:"array",required:!0,message:"请选择发货地",trigger:"change"}],origin_place:[{type:"array",required:!0,message:"请选择产地",trigger:"change"}],delivery_day:[{required:!0,message:"请输入物流时间",trigger:"blur"}],lead_time:[{required:!0,message:"请输入供货周期",trigger:"blur"}],sample_day:[{required:!0,message:"请输入调样周期",trigger:"blur"}],packing_size:[{required:!0,message:"请输入装箱尺寸",trigger:"blur"}],good_size:[{required:!0,message:"请输入商品尺寸",trigger:"blur"}],good_thumb_img:[{required:!0,message:"请上传商品缩略图",trigger:"change"}],good_img:[{type:"array",required:!0,validator:function(e,t,r){e=e.required,e&&0==t.length?r(new Error("请上传商品主图!")):e&&(t.length<3||10",l.forEach((function(e){c+="
  • \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,"]")})),c+=t+"
  • "})),c+="",e.$notify({title:"以下商品已上线或已经在审批流程中!",dangerouslyUseHTMLString:!0,message:c})):e.$message.warning(o);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)})))()},resetFormData:function(){this.ruleForm={platform:"",codes:[],online_reason:"",online_remark:""},this.tableData=[]},resetForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$nextTick(Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.$refs.ruleForm&&(e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),e.resetFormData());case 1:case"end":return t.stop()}}),t)}))));case 2:case"end":return t.stop()}}),t)})))()},platform_codesearchChange:function(e){var t=e.id;e.code,e.label,this.ruleForm.platform=t||"",this.$refs.ruleForm.validateField("platform")}}},r("369e"),l=r("2877"),n=Object(l.a)(i,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"goodsOnlineAdd"},[e.powers&&0=)"}}),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,"50c94bcf",null);t.default=u.exports},e49d:function(e,t,r){"use strict";var a=r("1b69"),n="admin/";t.a={add:function(e,t){return Object(a.a)(n+"catcreate",e,"post",t)},delete:function(e,t){return Object(a.a)(n+"delete",e,"post",t)},list:function(e,t){return Object(a.a)(n+"catplist",e,"post",t)},detail:function(e,t){return Object(a.a)(n+"catinfo",e,"post",t)},update:function(e,t){return Object(a.a)(n+"catedit",e,"post",t)},status:function(e,t){return Object(a.a)(n+"catstatus",e,"post",t)},goodsList:function(e,t){return Object(a.a)(n+"catlist",e,"post",t)},specstitle:function(e,t){return Object(a.a)(n+"specstitle",e,"post",t)},editRate:function(e,t){return Object(a.a)(n+"catratedit",e,"post",t)}}},e502:function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=(r("96cf"),r("fb6a"),r("e9c4"),r("d3b7"),r("25f0"),r("0f31")),s=r("61f7"),i={name:"Invoicing",props:["showModel","id","isDetail","isApproval"],watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis:function(e){e||this.$emit("cancel")}},data:function(){var e=this;return{statusList:[],loading:!1,title:"添加开票信息",showModelThis:this.showModel,dataInfo:{},companyNoNames:"",soptins:[{code:"1",name:"区-固-分"},{code:"2",name:"区-固"},{code:"3",name:"固-分"},{code:"4",name:"固"},{code:"5",name:"手机号"}],companyList:[],schange:"1",ruleForm:{},rulesThis:this.rules,rules:{companyNo:[{required:!0,message:"请选择客户公司",trigger:"change"}],invoice_title:[{required:!0,message:"请选择发票抬头",trigger:"change"}],invoice_code:[{required:!0,validator:function(e,t,r){""!==t?Object(s.h)(t)?r():r(new Error("统一社会信用代码不正确!")):r(new Error("请输入统一社会信用代码!"))},trigger:"blur"}],invoice_bank:[{required:!0,message:"请输入开户银行名称",trigger:"blur"}],invoice_bankNo:[{required:!0,message:"请输入开户银行账号",trigger:"blur"}],invoice_addr:[{required:!0,message:"请输入纳税登记地址",trigger:"blur"}],invoice_mobile:[{required:!0,validator:function(t,r,a){var n,i;""!==r?"1"===e.schange?Object(s.p)(r)?a():a(new Error("规则为区号[0+2~3位]-固定电话[7~8位]-分机号[1~6位]!")):"2"===e.schange?Object(s.o)(r)?a():a(new Error("规则为区号[0+2~3位]-固定电话[7~8位]!")):"3"===e.schange?Object(s.r)(r)?a():a(new Error("规则为固定电话[7~8位]-分机号[1~6位]!")):"4"===e.schange?Object(s.q)(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()",u.forEach((function(e){d+="
  • ".concat(e.outCode,"
  • ")})),d+="",e.$notify({title:c,dangerouslyUseHTMLString:!0,message:d})):e.$message.warning(c);case 42:t.next=46;break;case 44:return t.abrupt("return",!1);case 46:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()}}},r("0802"),l=r("2877"),c=Object(l.a)(i,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"activeAdd"},[r("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",rules:e.rulesThis,size:"mini","label-width":"90px"}},[r("el-row",[r("el-col",{attrs:{span:8}},[r("el-form-item",{attrs:{label:"业务企业",prop:"company_id"}},[r("search-work-company",{attrs:{value:e.ruleForm.company_id,disabled:""!==e.status,size:"mini",isDetail:!1,placeholder:"业务企业"},on:{searchChange:e.company_idsearchChange}})],1)],1),r("el-col",{attrs:{span:16}},[r("el-form-item",{attrs:{label:"活动标题",prop:"activity_name"}},[r("el-input",{attrs:{placeholder:"活动标题",disabled:""!==e.status,maxlength:"100"},model:{value:e.ruleForm.activity_name,callback:function(t){e.$set(e.ruleForm,"activity_name",t)},expression:"ruleForm.activity_name"}})],1)],1),r("el-col",{attrs:{span:8}},[r("el-form-item",{attrs:{label:"所属平台",prop:"platform_code"}},[r("search-terrace",{attrs:{value:e.ruleForm.platform_code,disabled:""!==e.status,size:"mini",isDetail:!1,placeholder:"所属平台"},on:{searchChange:e.platform_codesearchChange}})],1)],1),r("el-col",{attrs:{span:16}},[r("el-form-item",{staticStyle:{margin:"0"},attrs:{label:"活动时间",required:""}},[r("el-row",[r("el-col",{attrs:{span:11}},[r("el-form-item",{attrs:{prop:"datactivity_name"}},[r("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"datetime",placeholder:"开始时间",disabled:""!==e.status,"value-format":"yyyy-MM-dd HH:mm:ss","picker-options":e.pickerOptions1},model:{value:e.ruleForm.activity_start,callback:function(t){e.$set(e.ruleForm,"activity_start",t)},expression:"ruleForm.activity_start"}})],1)],1),r("el-col",{staticClass:"tc",attrs:{span:2}},[e._v("-")]),r("el-col",{attrs:{span:11}},[r("el-form-item",{attrs:{prop:"activity_end"}},[r("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"datetime","value-format":"yyyy-MM-dd HH:mm:ss",placeholder:"结束时间",disabled:""!==e.status,"picker-options":e.pickerOptions2},model:{value:e.ruleForm.activity_end,callback:function(t){e.$set(e.ruleForm,"activity_end",t)},expression:"ruleForm.activity_end"}})],1)],1)],1)],1)],1),r("el-col",{attrs:{span:8}},[r("el-form-item",{attrs:{label:"库存类型",prop:"is_stock"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{size:"mini",disabled:""!==e.status,placeholder:"库存类型"},on:{change:e.is_stock_change},model:{value:e.ruleForm.is_stock,callback:function(t){e.$set(e.ruleForm,"is_stock",t)},expression:"ruleForm.is_stock"}},e._l(e.is_stock,(function(e){return r("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),r("el-col",{attrs:{span:16}},[r("el-form-item",{attrs:{label:"活动描述",prop:"activity_desc"}},[r("el-input",{attrs:{placeholder:"活动描述",type:"textarea",rows:2,disabled:""!==e.status,"show-word-limit":"",maxlength:"500"},model:{value:e.ruleForm.activity_desc,callback:function(t){e.$set(e.ruleForm,"activity_desc",t)},expression:"ruleForm.activity_desc"}})],1)],1),"4"!=e.status&&("0"===e.status&&e.powers.some((function(e){return"056"==e}))||"1"===e.status&&e.powers.some((function(e){return"057"==e}))||"2"===e.status&&e.powers.some((function(e){return"058"==e}))||"3"===e.status&&e.powers.some((function(e){return"059"==e})))?e._e():r("el-col",{attrs:{span:24}},[r("el-form-item",{attrs:{label:"活动商品","label-position":"top",prop:"good_list"}},[r("el-table",{staticStyle:{width:"100%"},attrs:{data:e.ruleForm.good_list,stripe:"",border:"",size:"mini"}},[r("el-table-column",{attrs:{prop:"skuCode",label:"商品编码","show-overflow-tooltip":"",width:"170"}}),r("el-table-column",{attrs:{prop:"good_name",label:"商品名称","show-overflow-tooltip":""}}),r("el-table-column",{attrs:{prop:"activity_stock",label:"活动库存",width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-input-number",{directives:[{name:"show",rawName:"v-show",value:"view"!==e.type,expression:"type !== 'view'"}],staticStyle:{width:"100%"},attrs:{min:1,max:1e11,precision:0,label:"活动库存"},model:{value:t.row.activity_stock,callback:function(r){e.$set(t.row,"activity_stock",r)},expression:"scope.row.activity_stock"}}),r("span",{directives:[{name:"show",rawName:"v-show",value:"view"===e.type,expression:"type === 'view'"}]},[e._v(e._s(t.row.activity_stock))])]}}],null,!1,2714999662)}),""!==e.status&&"0"!==e.status?r("el-table-column",{attrs:{prop:"moq_num",label:"起订量",width:"100","show-overflow-tooltip":""}}):e._e(),""!==e.status&&"0"!==e.status?r("el-table-column",{attrs:{prop:"cost_price",label:"成本单价(元)",width:"100","show-overflow-tooltip":""}}):e._e(),""!==e.status&&"0"!==e.status?r("el-table-column",{attrs:{prop:"sale_price",label:"非活动价(元)",width:"100","show-overflow-tooltip":""}}):e._e(),""!==e.status&&"0"!==e.status?r("el-table-column",{attrs:{prop:"activity_price",label:"活动价(元)",width:"100","show-overflow-tooltip":""}}):e._e(),""!==e.status&&"0"!==e.status?r("el-table-column",{attrs:{prop:"status",label:"审核状态",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-tag",{attrs:{size:"mini",type:"0"==t.row.status?"warning":"2"==t.row.status?"danger":""},domProps:{textContent:e._s((e.options.find((function(e){return e.value==t.row.status}))||{}).label||"--")}})]}}],null,!1,3299576313)}):e._e(),""!==e.status&&"0"!==e.status?r("el-table-column",{attrs:{prop:"remark",label:"审核备注",width:"100","show-overflow-tooltip":""}}):e._e(),r("el-table-column",{attrs:{fixed:"right",width:"80"},scopedSlots:e._u([{key:"header",fn:function(t){return[r("span",[e._v("操作")]),""===e.status?r("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"添加活动商品",placement:"top"}},[r("i",{staticClass:"el-icon-circle-plus-outline fr",staticStyle:{"font-size":"18px","margin-top":"2px"},on:{click:function(t){return e.openEdit("add","0")}}})]):e._e()]}},{key:"default",fn:function(t){return[r("el-tooltip",{attrs:{effect:"dark",content:"查看商品信息",placement:"top"}},[r("i",{staticClass:"el-icon-view tb-icon",on:{click:function(r){return e.showGoodModelFun(t.row.skuCode)}}})]),""===e.status?r("el-tooltip",{attrs:{effect:"dark",content:"删除",placement:"top"}},[r("i",{staticClass:"el-icon-delete tb-icon",on:{click:function(r){return e.openCostEditDelete(t.$index)}}})]):e._e()]}}],null,!1,452201791)})],1)],1)],1)],1)],1),r("search-good-online-modal",{attrs:{once:e.once,sitem:e.ruleForm,active:!0,"show-model":e.showModel},on:{resultList:e.resultList,cancel:function(t){e.showModel=!1}}}),r("show-good-data-modal",{attrs:{"show-model":e.showGoodModel,skuCode:e.showGoodId,spuCode:""},on:{cancel:function(t){e.showGoodModel=!1}}}),""===e.status?r("el-col",{staticStyle:{"text-align":"right",padding:"15px 0 15px 0","border-top":"1px solid #dcdfe6"},attrs:{span:24}},[r("el-button",{attrs:{size:"mini",type:"primary"},on:{click:e.submitForm}},[e._v("保 存 ")])],1):e._e()],1)}),[],!1,null,"649dd639",null);t.default=c.exports},ea33:function(e,t,r){"use strict";r("5f83")},eaaa:function(e,t,r){},ead8:function(e,t,r){},eb67:function(e,t,r){"use strict";r.r(t);var a=r("1da1"),n=(r("96cf"),r("7db0"),r("d3b7"),r("ddb0"),r("7caa")),s=r("ed08"),i=r("5f10"),o=r("9f53");i={name:"Parameter",components:{addEdit:i.default},mixins:[o.a],computed:{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"parameter"==e.menu_route}))||{};return e&&e.action&&0this.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",c.forEach((function(e){u+="
  • ".concat(e.outCode,"
  • ")})),u+="",e.$notify({title:l,dangerouslyUseHTMLString:!0,message:u})):e.$message.warning(l);case 35:case"end":return t.stop()}}),t)})))()}}},r("84a3"),r=r("2877"),r=Object(r.a)(s,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"orderImport pagePadding"},[e.tableData&&0