1 |
- (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-f9557db2","chunk-9e9dd6a0","chunk-482cb3ce","chunk-15caf0ce","chunk-8a90d99e","chunk-25ffc4de"],{"018a":function(e,t,a){},"01bd":function(e,t,a){"use strict";a("018a")},"03ed":function(e,t,a){"use strict";a("6057")},"04c0":function(e,t,a){"use strict";a("efa6")},"0ee5":function(e,t,a){"use strict";a.d(t,"a",(function(){return r})),a.d(t,"b",(function(){return n}));var r=[{id:"1",label:"备库单"},{id:"2",label:"系统商品"},{id:"3",label:"招标反馈"}],n=[{id:"1",label:"库存品"},{id:"2",label:"系统商品"},{id:"3",label:"招标反馈"}]},"0ff4":function(e,t,a){},"119d":function(e,t,a){"use strict";a("be28")},"18a5":function(e,t,a){"use strict";a.r(t);var r=a("1da1"),n=a("5530"),i=(a("96cf"),a("f5ed")),s=a("9f53"),o=a("9927"),l=a("50fe"),c=a("0ee5"),u=a("2036"),d=a("2f62");i={name:"sellOutOrderDetail",mixins:[i.a,s.a],components:{wantDeliver:u.default},computed:Object(n.a)(Object(n.a)({},Object(d.b)(["business_companyNo"])),{},{maxNo:function(){return this.business_companyNo}}),watch:{maxNo:function(e,t){var a=this;this.$notify({title:"供应商已发生变化",dangerouslyUseHTMLString:!0,message:"5秒后,跳转至发货申请列表页!"}),setTimeout((function(){a.routeReGoto("/sellOutOrder/index",{})}),5e3)}},data:function(){return{xs_order_type_options:c.b,statusOptions:l.c,showColumns:l.b,activeTabs:"1",activeNames:["0","1","2","3","4"],status:"",sitem:null,newTime:"",loading:!1,queryId:""}},mounted:function(){this.queryId=this.$route.query.id,this.initData()},methods:{getNewTime:function(){this.newTime=(new Date).valueOf()},initData:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){var a,r,n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.returnCode="",e.returnCode_type="",t.next=4,o.a.detail({outCode:e.queryId});case 4:return a=t.sent,t.next=7,e.useResHandle(a);case 7:a=t.sent,r=a.code,n=a.data,a.message,0===r&&(e.sitem=n,r=e.sitem,n=r.status,r.id,e.status=n,e.getNewTime());case 12:case"end":return t.stop()}}),t)})))()}}},s=a("2877"),u=Object(s.a)(i,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("div",{staticClass:"sellOutOrderDetail pagePadding"},[t("el-tabs",{model:{value:e.activeTabs,callback:function(t){e.activeTabs=t},expression:"activeTabs"}},[t("el-tab-pane",{attrs:{label:"业务详情",name:"1"}},[t("el-collapse",{staticStyle:{margin:"-18px 0 0 0"},model:{value:e.activeNames,callback:function(t){e.activeNames=t},expression:"activeNames"}},[t("el-collapse-item",{attrs:{title:"发货申请单详情",name:"1"}},[""!==e.newTime?t("show-data-table",{attrs:{newTime:e.newTime,sitem:e.sitem,columns:e.showColumns}},[t("template",{slot:"status"},[t("el-tag",{attrs:{size:"mini",type:"0"==e.sitem.status?"warning":""},domProps:{textContent:e._s((e.statusOptions.find((function(t){return t.value==e.sitem.status}))||{}).label||"--")}})],1),t("template",{slot:"order_type"},[t("el-tag",{attrs:{size:"mini"},domProps:{textContent:e._s((e.xs_order_type_options.find((function(t){return t.id==e.sitem.order_type}))||{}).label||"--")}})],1)],2):e._e()],1),t("el-collapse-item",{attrs:{title:"商品信息",name:"2"}},[""!==e.newTime?t("show-goods-data-table",{attrs:{newTime:e.newTime,type:e.sitem.order_type,skucode:e.sitem.skuCode,spucode:e.sitem.good_code}}):e._e()],1),"1"===e.status?t("el-collapse-item",{attrs:{title:"库管发货",name:"3"}},[""!==e.newTime?t("want-deliver",{attrs:{newTime:e.newTime,sitem:e.sitem},on:{refresh:e.initData}}):e._e()],1):e._e()],1)],1)],1)],1)}),[],!1,null,null,null);t.default=u.exports},"1db4":function(e,t,a){"use strict";a.r(t);var r=[function(){var e=this.$createElement;e=this._self._c||e;return e("div",{staticClass:"pic-404"},[e("img",{staticClass:"pic-404__parent",attrs:{src:a("a36b"),alt:"404"}}),e("img",{staticClass:"pic-404__child left",attrs:{src:a("26fc"),alt:"404"}}),e("img",{staticClass:"pic-404__child mid",attrs:{src:a("26fc"),alt:"404"}}),e("img",{staticClass:"pic-404__child right",attrs:{src:a("26fc"),alt:"404"}})])}],n={name:"Page404",computed:{message:function(){return"访问的页面不存在..."}},methods:{goto:function(){window.vm.$router.push({path:"/welcome/dashboard"})}}},i=(a("e894"),a("2877"));i=Object(i.a)(n,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("div",{staticClass:"wscn-http404-container"},[t("div",{staticClass:"wscn-http404"},[e._m(0),t("div",{staticClass:"bullshit"},[t("div",{staticClass:"bullshit__oops"},[e._v("哎呀!")]),t("div",{staticClass:"bullshit__headline"},[e._v(e._s(e.message))]),t("div",{staticClass:"bullshit__info"},[e._v(" 请检查您输入的网址是否正确,或单击下面的按钮返回主页. ")]),t("el-button",{attrs:{type:"primary",round:""},on:{click:function(t){return e.goto()}}},[e._v("回到首页")])],1)])])}),r,!1,null,"82eac96e",null);t.default=i.exports},"1df8":function(e,t,a){},"1dfc":function(e,t,a){"use strict";a.r(t);var r=a("1da1"),n=a("ade3"),i=a("5530"),s=(a("96cf"),a("7db0"),a("d3b7"),a("a9e3"),a("f5ed")),o=a("9f53"),l=a("401e"),c=a("4e06"),u=a("2f62"),d=a("5fb4");s={name:"recovery",mixins:[s.a,o.a],components:{showData:d.default},computed:Object(i.a)(Object(i.a)({},Object(u.b)(["tablebtnSize","searchSize","size","business_companyNo"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"recovery"==e.menu_route}))||{};e=(null!==e?e:{}).action;return null!=e?e:[]},maxNo:function(){return this.business_companyNo}}),watch:{maxNo:function(e,t){this.restSearch()}},data:function(){var e={loading:!1,showModel:!1,isDetail:!1,modelId:0,parmValue:{infoNo:"",bidNo:"",is_own:"1",company_name:"",page:1,size:15},tableData:[]};return Object(n.a)(e,"tableData",[]),Object(n.a)(e,"table",{stripe:!0,border:!0,_defaultHeader_:["setcol"]}),Object(n.a)(e,"pageInfo",{size:15,curr:1,total:0}),Object(n.a)(e,"columns",c.a),e},mounted:function(){this.searchList()},methods:{restSearch:function(){this.parmValue={infoNo:"",bidNo:"",is_own:"1",company_name:"",page:1,size:15},this.pageInfo={size:15,curr:1,total:0},this.searchList()},searchList:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){var a,r,n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,t.next=3,l.a.list(e.parmValue);case 3:return a=t.sent,t.next=6,e.useResHandle(a,!0);case 6:a=t.sent,r=a.code,n=a.data,a.message,0===r?(r=n.list,n=n.count,e.tableData=r,e.pageInfo.total=Number(n)):(e.tableData=[],e.pageInfo.total=0),e.loading=!1;case 12:case"end":return t.stop()}}),t)})))()}}},a("119d"),o=a("2877"),d=Object(o.a)(s,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"recovery pagePadding"},[a("ex-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{table:e.table,data:e.tableData,columns:e.columns,page:e.pageInfo,size:e.size},on:{"page-curr-change":e.handlePageChange,"page-size-change":e.handleSizeChange,"screen-reset":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()},"screen-submit":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},scopedSlots:e._u([{key:"table-header",fn:function(t){return[a("div",{staticStyle:{width:"100%"}},[a("el-row",{staticStyle:{padding:"0 0 0 80px"}},[a("el-col",{staticStyle:{width:"300px"},attrs:{span:6}},[a("el-input",{attrs:{clearable:"",placeholder:"任务单号",maxlength:"40",size:e.searchSize},on:{blur:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.parmValue.infoNo,callback:function(t){e.$set(e.parmValue,"infoNo",t)},expression:"parmValue.infoNo"}})],1),a("el-col",{staticStyle:{width:"300px",padding:"0 0 0 10px"},attrs:{span:6}},[a("el-input",{attrs:{clearable:"",placeholder:"反馈编号",maxlength:"40",size:e.searchSize},on:{blur:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.parmValue.bidNo,callback:function(t){e.$set(e.parmValue,"bidNo",t)},expression:"parmValue.bidNo"}})],1),a("el-col",{staticStyle:{width:"66px",float:"right"},attrs:{span:4}},[a("el-button",{staticClass:"fr",attrs:{type:"warning",size:e.searchSize},on:{click:e.restSearch}},[e._v(" 重置 ")])],1),a("el-col",{staticStyle:{width:"66px",float:"right"},attrs:{span:3}},[a("el-button",{staticStyle:{float:"right","margin-left":"5px"},attrs:{size:e.searchSize,type:"primary"},on:{click:e.searchList}},[e._v(" 刷新 ")])],1)],1)],1)]}},{key:"good_name",fn:function(t){return t=t.scope,[a("span",[e._v(e._s(t.row.good_name))]),e._l(t.row.specinfo,(function(t,r){return a("span",{key:t.spec_id+r},[e._v(" "+e._s(0===r?"__":"--")+e._s(t.spec_name)+"["+e._s(t.spec_value_name)+"] ")])}))]}},{key:"can",fn:function(t){return t=t.scope,e._l(t.row.can,(function(t,r){return a("span",{key:t.id+r},[e._v(" "+e._s(0===r?"":"_")+e._s(t.name)+" ")])}))}},{key:"operation",fn:function(t){var r=t.scope;return[a("el-tooltip",{attrs:{effect:"dark",content:"详情",placement:"top"}},[a("i",{staticClass:"el-icon-view tb-icon",on:{click:function(t){e.modelId=r.row.bidNo,e.showModel=!0}}})])]}}])}),a("show-data",{attrs:{showModel:e.showModel,bidNo:e.modelId},on:{cancel:function(t){e.showModel=!1}}})],1)}),[],!1,null,"4539ba3c",null);t.default=d.exports},2017:function(e,t,a){"use strict";a("cafe")},"2023c":function(e,t,a){"use strict";a("205b")},2036:function(e,t,a){"use strict";a.r(t);var r=a("1da1"),n=(a("a434"),a("d3b7"),a("25f0"),a("159b"),a("99af"),a("e9c4"),a("96cf"),a("9927")),i=a("9f53"),s=a("61f7");i={name:"wsmInOrderAdd",props:["id","sitem","newTime"],mixins:[i.a],data:function(){function e(e,t,a){e.required&&""===t?a(new Error("不能为空!")):a()}function t(e,t,a){e=e.required;var r=t.length;e?""===t?a(new Error("物流单号不能为空!")):r<9||20<r||!Object(s.h)(t)&&!Object(s.b)(t)?a(new Error("仅支持纯数字或字母数字组合(9~20位)!")):a():a()}return{loading:!0,order_source:"",const_post:{required:!0,validator:t,trigger:"blur"},ruleForm:{outCode:"",send_num:"",post_name:[],post_code:[{value:"",key:Date.now()}],post_fee:"",remark:""},rules:{post_name:{type:"array",required:!0,trigger:"change",message:"请输入物流公司"},post_code:{required:!0,validator:t,trigger:"blur"},post_fee:{required:!0,validator:e,trigger:"blur"},remark:{required:!0,validator:e,trigger:"blur"}}}},watch:{newTime:function(e){e&&this.initForm()}},mounted:function(){this.initForm()},methods:{initForm:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,t.next=3,e.resetForm();case 3:e.loading=!1;case 4:case"end":return t.stop()}}),t)})))()},removeDomain:function(e){1===this.ruleForm.post_code.length?this.$message.warning("至少填写一个快递单号!"):-1!==e&&this.ruleForm.post_code.splice(e,1)},addDomain:function(){this.ruleForm.post_code.push({value:"",key:Date.now()})},resetForm:function(){var e=this;return Object(r.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,a,r,n,i,s,o;e.$refs.ruleForm&&(e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),t=(o=e.sitem).outCode,a=o.send_num,r=o.post_code,n=o.post_name,i=o.post_fee,s=o.remark,o=o.order_source,e.order_source=o,e.ruleForm={outCode:t||"",send_num:a||"",post_name:n?[n]:[],post_code:[{value:r||"",key:Date.now()}],post_fee:i||"",remark:s||""})}));case 2:case"end":return t.stop()}}),t)})))()},submitForm:function(){var e=this;return Object(r.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(r.a)(regeneratorRuntime.mark((function t(a){var r,i,s,o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!a){t.next=27;break}if(e.loading)return t.abrupt("return");t.next=3;break;case 3:return e.loading=!0,s=e.ruleForm,i=s.post_name,s=s.post_code,i=i.toString(),r="",s.forEach((function(e,t){r+="".concat(0===t?"":",").concat(e.value)})),(s=JSON.parse(JSON.stringify(e.ruleForm))).post_name=i,s.post_code=r,delete s.send_num,delete s.page,t.next=16,n.a.saleoutsend(s);case 16:return i=t.sent,t.next=19,e.useResHandle(i);case 19:s=t.sent,o=s.code,s.data,s.message,e.loading=!1,0===o&&(e.$notify.success({title:"添加成功",message:""}),e.$emit("refresh")),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)})))()},handleCompany:function(e){e.code,e.id,e=e.label,this.ruleForm.post_name=e?[e]:[],this.$refs.ruleForm.validateField("post_name")},number_change:function(e,t){this.ruleForm[t]=e+""||"0",this.$refs.ruleForm.validateField(t)}}},a("c379"),a=a("2877"),a=Object(a.a)(i,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,rules:e.rules,size:"mini","status-icon":"","label-width":"95px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"发货总数",prop:"send_num",required:""}},[a("el-input",{attrs:{disabled:"",placeholder:"发货总数",maxlength:"100"},model:{value:e.ruleForm.send_num,callback:function(t){e.$set(e.ruleForm,"send_num",t)},expression:"ruleForm.send_num"}})],1),a("el-form-item",{attrs:{label:"物流费用",prop:"post_fee"}},[a("digital-input",{attrs:{values:e.ruleForm.post_fee,placeholder:"物流费用",min:0,disabled:"view"===e.type||"post_fee"===e.type,max:1e11,position:"right",precision:2,size:"mini",controls:!1,append:"元"},on:{reschange:function(t){return e.number_change(t,"post_fee")}}})],1)],1),a("el-col",{attrs:{span:16}},[a("el-form-item",{attrs:{label:"备注",prop:"remark"}},[a("el-input",{attrs:{type:"textarea",placeholder:"备注",autosize:{minRows:4,maxRows:4},maxlength:"100"},model:{value:e.ruleForm.remark,callback:function(t){e.$set(e.ruleForm,"remark",t)},expression:"ruleForm.remark"}})],1)],1),a("el-col",{attrs:{span:24}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"物流公司",prop:"post_name"}},[a("search-express",{attrs:{value:e.ruleForm.post_name,placeholder:"物流公司",names:"",size:"mini",order_source:e.order_source,"is-detail":!1},on:{searchChange:e.handleCompany}})],1)],1),e._l(e.ruleForm.post_code,(function(t,r){return a("el-col",{key:t.key,attrs:{span:8}},[a("el-form-item",{key:t.key,attrs:{label:"物流单号"+(r+1),prop:"post_code."+r+".value",rules:e.const_post}},[a("el-input",{attrs:{placeholder:"物流单号",minlength:"9",maxlength:"20"},model:{value:t.value,callback:function(a){e.$set(t,"value",a)},expression:"domain.value"}},[a("el-button",{attrs:{slot:"append",icon:"el-icon-delete"},on:{click:function(t){return t.preventDefault(),e.removeDomain(r)}},slot:"append"})],1)],1)],1)}))],2)],1),a("el-col",{staticStyle:{"text-align":"right",padding:"0 0 16px 0"},attrs:{span:24}},[a("el-button",{attrs:{type:"warning",size:"mini",icon:"el-icon-circle-plus-outline"},on:{click:e.addDomain}},[e._v("添加快递单号")]),a("el-button",{attrs:{type:"primary",size:"mini",icon:"el-icon-search"},on:{click:e.submitForm}},[e._v("保 存 ")])],1)],1)],1)}),[],!1,null,"a32868ac",null);t.default=a.exports},"205b":function(e,t,a){},"26fc":function(e,t,a){e.exports=a.p+"static/img/404_cloud.0f4bc32b.png"},"27ee":function(e,t,a){"use strict";a.r(t);var r=a("1da1"),n=a("5530"),i=(a("e9c4"),a("d3b7"),a("159b"),a("b0c0"),a("96cf"),a("77f8")),s=a("9f53"),o=a("2f62");s={name:"workbenchDetail",components:{baseForm:a("2c5d").default},mixins:[s.a],computed:Object(n.a)(Object(n.a)({},Object(o.b)(["size","business_companyNo"])),{},{maxNo:function(){return this.business_companyNo}}),watch:{maxNo:function(e,t){var a=this;this.$notify({title:"供应商已发生变化",dangerouslyUseHTMLString:!0,message:"5秒后,跳转至招标工作台页面!"}),setTimeout((function(){a.routeReGoto("/workbench/index",{})}),5e3)}},data:function(){return{num:60,timer:null,loading:!1,showModel:!1,tableData:[],baseSitem:{},isDetail:!1,modelId:0,queryId:"",status:"",sitem:{},newTime:"",editId:"add",editType:"wait",parmValue:{page:1,size:100,zxNo:"",infoNo:"",bidNo:"",projectNo:"",is_own:"1"}}},mounted:function(){this.initForm()},beforeDestroy:function(){this.timer&&clearInterval(this.timer)},methods:{initForm:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.editType="wait",a=e.$route.query.id,e.queryId=a,e.loading=!0,t.next=7,e.initData();case 7:return t.next=9,e.searchList();case 9:e.loading=!1;case 10:case"end":return t.stop()}}),t)})))()},initData:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){var a,r,n,s,o,l;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,i.a.detail({infoNo:e.queryId});case 2:return a=t.sent,t.next=5,e.useResHandle(a);case 5:if(a=t.sent,n=a.code,r=a.data,a.message,0===n)return n=r.status,e.status=n,e.sitem=JSON.parse(JSON.stringify(r)),n=e.sitem.can,e.sitem.is_metal="",e.sitem.can_id_arr=[],e.sitem.can_name="",s="",l=!(o=[]),n.forEach((function(e,t){s+=0==t?e.name:"_".concat(e.name),o.push(e.id),"6"===e.id&&(l=!0)})),e.sitem.is_metal=l,e.sitem.can_id_arr=o,e.sitem.can_name=s,e.getNewTime(),t.next=25,e.well_timer();t.next=25;break;case 25:case"end":return t.stop()}}),t)})))()},well_timer:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.timer=setInterval(Object(r.a)(regeneratorRuntime.mark((function t(){var a,r,n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(0===e.num){t.next=4;break}e.num--,t.next=28;break;case 4:if(e.timer)return t.next=7,e.repeat_initData();t.next=28;break;case 7:if(n=t.sent,a=n.code,r=n.status,n=n.message,0!==a||"1"!==r){t.next=15;break}e.num=60,t.next=28;break;case 15:if(0!==a||"1"===r){t.next=20;break}e.status=r,e.clearTime(),t.next=28;break;case 20:if(100<=a&&a<=104)return e.clearTime(),t.next=24,e.logout();t.next=26;break;case 24:t.next=28;break;case 26:e.clearTime(),e.$message.warning(n);case 28:case"end":return t.stop()}}),t)}))),1e3);case 1:case"end":return t.stop()}}),t)})))()},clearTime:function(){this.timer&&(clearInterval(this.timer),this.num=0)},repeat_initData:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){var a,r,n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,i.a.detail({infoNo:e.queryId});case 2:return r=t.sent,n=r.code,a=r.message,r=r.data,r=r.status,n={code:n,status:r,message:a},t.abrupt("return",n);case 9:case"end":return t.stop()}}),t)})))()},getNewTime:function(){this.newTime=(new Date).valueOf()},openModal:function(e,t){var a=this.$route.query.id;this.queryId=a,this.editId=e,this.editType=t,this.getNewTime()},searchList:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){var a,r,n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,e.parmValue.infoNo=e.queryId,t.next=4,i.a.good_list(e.parmValue);case 4:return a=t.sent,t.next=7,e.useResHandle(a);case 7:a=t.sent,n=a.code,r=a.data,a.message,0===n?(n=r.list,e.tableData=n):e.tableData=[],e.loading=!1;case 13:case"end":return t.stop()}}),t)})))()}}},a("9a50"),n=a("2877"),o=Object(n.a)(s,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"workbenchdetail"},[a("div",{staticClass:"page-main clear"},["1"!==e.status?a("div",[a("search-not",{attrs:{placeholder:"招标任务已结束!"}})],1):a("div",[a("div",{staticClass:"left"},[a("div",{staticClass:"left-main"},[e.sitem?a("div",{staticClass:"left-card"},[a("div",{staticClass:"page-main-title"},[e._v("招标任务信息")]),a("ul",{staticClass:"page-main-ul clear"},[a("li",[e._v("任务单号:")]),a("li",[e._v(e._s(e.queryId))]),a("li",[e._v("截止时间:")]),a("li",[e._v(e._s(e.sitem.endtime))]),a("li",[e._v("购买数量:")]),a("li",[e._v(e._s(e.sitem.num)+e._s(e.sitem.unit_name))]),a("li",[e._v("预算单价:")]),a("li",[e._v(e._s(e.sitem.original_price)+"元")]),a("li",[e._v("竞价人:")]),a("li",[e._v(e._s(e.sitem.salesman))]),a("li",[e._v("到货时间:")]),a("li",[e._v(e._s(e.sitem.arrival_time))]),a("li",[e._v("需求公司:")]),a("li",[e._v(e._s(e.sitem.company))])])]):e._e(),e.sitem?a("div",{staticClass:"left-card"},[a("div",{staticClass:"page-main-title"},[e._v("商品要求")]),a("ul",{staticClass:"page-main-ul clear"},[a("li",[e._v("商品名称:")]),a("li",[e._v(e._s(e.sitem.good_name))]),e.sitem.good_img?a("li",[e._v("商品图片:")]):e._e(),e.sitem.good_img?a("li",[a("img",{directives:[{name:"viewer",rawName:"v-viewer"}],staticClass:"hover",staticStyle:{width:"20px",height:"20px",display:"inline-block"},attrs:{src:e.sitem.good_img}})]):e._e(),a("li",[e._v("商品分类:")]),a("li",[e._v(e._s(e.sitem.can_name))]),a("li",[e._v("商品品牌:")]),a("li",[e._v(e._s(e.sitem.brand||"无要求"))]),a("li",[e._v("商品规格:")]),a("li",[a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.sitem.specinfo,border:"",stripe:"",size:"mini"}},[a("el-table-column",{attrs:{prop:"spec_name",label:"类型:值","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.spec_name)+":"+e._s(t.row.spec_value_name)+" ")]}}],null,!1,330658974)})],1)],1),a("li",[e._v("总重量:")]),a("li",[e._v(e._s(e.sitem.total_weight)+"g")]),a("li",[e._v("是否多地:")]),a("li",[e._v(e._s("1"===e.sitem.is_addrs?"多地":"一地"))]),a("li",[e._v("是否定制:")]),a("li",[e._v(e._s("1"===e.sitem.is_custom?"定制":"非定制"))]),e.sitem.is_metal?a("li",[e._v("启用金价:")]):e._e(),e.sitem.is_metal?a("li",[e._v(" "+e._s("1"===e.sitem.is_gold_price?"启用":"不启用")+" ")]):e._e(),e.sitem.is_metal?a("li",[e._v("配置要求:")]):e._e(),e.sitem.is_metal?a("li",[e._v(e._s(e.sitem.config))]):e._e(),e.sitem.is_metal?a("li",[e._v("金属克重:")]):e._e(),e.sitem.is_metal?a("li",[e._v(e._s(e.sitem.specs_weight)+"g")]):e._e(),e.sitem.is_metal?a("li",[e._v("其他要求:")]):e._e(),e.sitem.is_metal?a("li",[e._v(" "+e._s(e.sitem.other_config)+" ")]):e._e(),e.sitem.is_metal?a("li",[e._v("金属种类:")]):e._e(),e.sitem.is_metal?a("li",[e._v(" "+e._s(e.sitem.metal_name)+" ")]):e._e(),e.sitem&&e.sitem.cost_desc?a("li",[e._v("工艺说明:")]):e._e(),e.sitem&&e.sitem.cost_desc?a("li",[e._v(e._s(e.sitem.cost_desc))]):e._e(),a("li",[e._v("产品用途:")]),a("li",[e._v(e._s(e.sitem.use_desc))]),a("li",[e._v("商品备注:")]),a("li",[e._v(e._s(e.sitem.remark))]),a("li",[e._v("商品附件:")]),e.sitem&&e.sitem.enclosure_file?a("li",[a("a",{staticClass:"fl",attrs:{href:e.sitem.enclosure_file,download:"附件"}},[e._v("点击下载附件")])]):e._e()])]):e._e()])]),a("div",{staticClass:"p-right"},[""==e.editType||"wait"==e.editType?a("div",{staticClass:"right-mian-wait"},[a("div",{staticClass:"title"},[e._v("采返工作台")]),a("div",{staticClass:"main"},[e._v("暂无工作数据!")])]):[""!==e.newTime?a("base-form",{attrs:{id:e.queryId,editId:e.editId,type:e.editType,askItem:e.sitem,sitem:e.baseSitem,newTime:e.newTime},on:{refresh:function(t){e.editType="wait",e.searchList()},cancel:function(t){e.editType="wait"}}}):e._e()]],2),a("div",{staticClass:"bottom"},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData,border:"",stripe:"",size:"mini"}},[a("el-table-column",{attrs:{prop:"good_name",label:"商品名称","min-width":"120","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"total_fee",label:"成本合计",width:"110","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"bargain_status",label:"采返信息状态",width:"100","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return["0"===t.row.bargain_status&&"1"==t.row.status?a("el-tag",{attrs:{type:"''",size:"mini"}},[e._v("新建信息")]):a("el-tag",{attrs:{type:"danger",size:"mini"}},[e._v("待确认")])]}}])}),a("el-table-column",{attrs:{prop:"specinfo",label:"规格",width:"100","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return e._l(t.row.specinfo,(function(t,r){return a("span",{key:t+r},[0!==r?a("span",[e._v("--")]):e._e(),e._v(e._s(t.spec_name)+"["+e._s(t.spec_value_name)+"]")])}))}}])}),a("el-table-column",{attrs:{prop:"unit",label:"单位",width:"45","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"brand_name",label:"品牌",width:"80","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"supplierName",label:"供应商","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{fixed:"right",label:"操作",width:"80"},scopedSlots:e._u([{key:"header",fn:function(t){return[a("span",[e._v("操作")]),a("el-tooltip",{attrs:{effect:"dark",content:"添加反馈商品",placement:"top"}},[a("i",{staticClass:"el-icon-circle-plus-outline tb-icon fr",on:{click:function(t){return e.openModal("add","add")}}})])]}},{key:"default",fn:function(t){return[a("el-tooltip",{attrs:{effect:"dark",content:"详情",placement:"top"}},[a("i",{staticClass:"el-icon-view tb-icon",on:{click:function(a){return e.openModal(t.row.bidNo,"view")}}})]),a("el-tooltip",{attrs:{effect:"dark",content:"修改",placement:"top"}},[a("i",{staticClass:"el-icon-edit tb-icon",on:{click:function(a){return e.openModal(t.row.bidNo,"edit")}}})])]}}])})],1)],1)])])])}),[],!1,null,"4323593a",null);t.default=o.exports},"29e5":function(e,t,a){"use strict";a.r(t);var r=a("1da1"),n=a("5530"),i=(a("d81d"),a("d3b7"),a("159b"),a("99af"),a("b0c0"),a("a9e3"),a("96cf"),a("77f8")),s=[{name:"管理员",code:"1"},{name:"非管理员",code:"2"}],o=a("f5ed"),l=a("2f62"),c=a("9f53");o={name:"workbench",mixins:[o.a,c.a],computed:Object(n.a)(Object(n.a)({},Object(l.b)(["tablebtnSize","searchSize","size","business_companyNo"])),{},{maxNo:function(){return this.business_companyNo}}),watch:{maxNo:function(e,t){this.searchList(!0)}},data:function(){return{num:60,timer:null,roleLevel:s,loading:!1,showModel:!1,modelId:"000",sitem:{},list1:[],list:[],parmValue:{page:1,size:1e3,status:"1"},statusOptions:[{id:"0",label:"禁用"},{id:"1",label:"启用"}],tableData:[],table:{stripe:!0,border:!0,_defaultHeader_:["setcol"]},pageInfo:{size:15,curr:1,total:0},columns:[{prop:"id",label:"ID"},{prop:"workbench",label:"活动名称"},{prop:"status",label:"状态",sortable:!0,_slot_:"status"},{prop:"creater",label:"创建人"},{prop:"addtime",label:"创建时间",sortable:!0},{prop:"",label:"操作",fixed:"right",_noset_:!0,_slot_:"operation"}]}},mounted:function(){this.searchList(!0)},beforeDestroy:function(){this.timer&&clearInterval(this.timer)},methods:{wantTo:function(e){this.routeGoto("wDetail",{id:e})},well_timer:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.timer=setInterval(Object(r.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(0===e.num){t.next=4;break}e.num--,t.next=11;break;case 4:if(e.timer)return t.next=7,e.searchList();t.next=10;break;case 7:e.num=60,t.next=11;break;case 10:e.clearTime();case 11:case"end":return t.stop()}}),t)}))),1e3);case 1:case"end":return t.stop()}}),t)})))()},restSearch:function(){this.pageInfo={size:1e3,curr:1,total:0},this.parmValue={page:1,size:15,status:"1"},this.searchList()},openModal:function(e,t){this.sitem=e,this.modelId=t,this.showModel=!0},handleTime:function(e){var t=this;return Object(r.a)(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(t.parmValue.starttime=e.startTime||"",t.parmValue.endtime=e.endTime||"",""!==t.parmValue.starttime&&""!==t.parmValue.endtime||""===t.parmValue.starttime&&""===t.parmValue.endtime)return t.pageInfo.curr=1,t.parmValue.page=1,a.next=7,t.searchList();a.next=7;break;case 7:case"end":return a.stop()}}),a)})))()},changeStatus:function(e,t){var a=this;return Object(r.a)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,a.$confirm("确定要改为".concat("1"===t?"禁用":"启用","?"),{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(r.a)(regeneratorRuntime.mark((function r(){var n,s,o;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a.loading=!0,n={id:e,status:"1"===t?"0":"1"},r.next=4,i.a.status(n);case 4:return n=r.sent,r.next=7,a.useResHandle(n);case 7:if(s=r.sent,o=s.code,s.data,s.message,0===o)return a.loading=!1,a.$notify.success({title:"状态修改成功!",message:""}),r.next=16,a.searchList();r.next=16;break;case 16:a.loading=!1;case 17:case"end":return r.stop()}}),r)})))).catch((function(){}));case 2:case"end":return n.stop()}}),n)})))()},imgclick:function(e){e.stopPropagation(),e.preventDefault()},searchList:function(e){var t=this;return Object(r.a)(regeneratorRuntime.mark((function a(){var r,n,s;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(t.loading){a.next=24;break}return t.loading=!0,a.next=4,i.a.list(t.parmValue);case 4:return r=a.sent,a.next=7,t.useResHandle(r);case 7:if(r=a.sent,n=r.code,s=r.data,r.message,0!==n){a.next=21;break}if(n=s.list,s=s.count,t.list=n,t.list.map((function(e){return e.cat_name="",e.can&&0<e.can.length&&e.can.forEach((function(t,a){e.cat_name+="".concat(0!==a?"_":"").concat(t.name)})),e})),t.pageInfo.total=Number(s),e)return a.next=19,t.well_timer();a.next=19;break;case 19:a.next=23;break;case 21:t.list=[],t.pageInfo.total=0;case 23:t.loading=!1;case 24:case"end":return a.stop()}}),a)})))()}}},a("f15d"),c=a("2877"),n=Object(c.a)(o,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"workbench"},[a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"workbench-main"},[a("ul",{staticClass:"clear po-ul"},[a("li",{staticClass:"po-li"},[a("div",{staticClass:"taskTitle color1"},[e._v("竞价单任务")]),a("div",{staticClass:"taskList clear"},[e._l(e.list,(function(t){return a("div",{key:t,staticClass:"task-item",style:t.is_all_feed+""=="0"?"background:#fdf6ec":t.is_feed+""=="1"?"background: #ecf5ff":"background: #fff",on:{click:function(a){return e.wantTo(t.infoNo)}}},[a("ul",{staticClass:"fl item-ul"},[a("li",{staticClass:"fl item-li"},[a("span",{staticClass:"label"},[e._v("任务编号:")]),a("span",{staticClass:"label-main"},[e._v(e._s(t.infoNo))])]),a("li",{staticClass:"fl item-li"},[a("span",{staticClass:"label"},[e._v("截止时间:")]),a("span",{staticClass:"label-main"},[e._v(e._s(t.endtime))])]),a("li",{staticClass:"fl item-li"},[a("span",{staticClass:"label"},[e._v("商品分类:")]),a("span",{staticClass:"label-main"},[e._v(e._s(t.cat_name))])]),a("li",{staticClass:"fl item-li"},[a("span",{staticClass:"label"},[e._v("商品品牌:")]),a("span",{staticClass:"label-main"},[e._v(e._s(t.brand_name))])]),a("li",{staticClass:"fl item-li"},[a("span",{staticClass:"label"},[e._v("商品名称:")]),a("span",{staticClass:"label-main"},[t.good_img?a("img",{directives:[{name:"viewer",rawName:"v-viewer"}],staticClass:"hover",staticStyle:{width:"20px",height:"20px"},attrs:{src:t.good_img,alt:""},on:{click:e.imgclick}}):e._e(),e._v(" "+e._s(t.good_name))])]),a("li",{staticClass:"fl item-li"},[a("span",{staticClass:"label"},[e._v("商品预算:")]),a("span",{staticClass:"label-main"},[e._v(" "+e._s(t.original_price)+"元/"+e._s(t.num)+e._s(e.unit))])])])])})),a("div",{staticClass:"no-data"},[e._v("暂无数据!")])],2)])])]),a("add-edit",{attrs:{id:e.modelId,"show-model":e.showModel,sitem:e.sitem},on:{refresh:e.searchList,cancel:function(t){e.showModel=!1}}})],1)}),[],!1,null,"46cb5212",null);t.default=n.exports},"2adf":function(e,t,a){},"2c5d":function(e,t,a){"use strict";function r(e,t,a){e.required&&""===t?a(new Error("不能为空!")):a()}function n(e,t,a){e.required?""===t?a(new Error("不能为空!")):"0"===t||"0."===t||"0.0"===t||"0.00"===t||"0.000"===t?a(new Error("不能为零!")):a():a()}function i(e,t,a){t=null!=t?t:"",e.required&&""===t?a(new Error("不能为空!")):Object(m.g)(t)?a(new Error("不能使用英文特殊字符!")):a()}a.r(t);var s=a("ade3"),o=a("1da1"),l=a("5530"),c=(a("96cf"),a("7db0"),a("d3b7"),a("a434"),a("ac1f"),a("1276"),a("25f0"),a("a9e3"),a("5319"),a("b680"),a("e9c4"),a("159b"),a("99af"),a("b0c0"),a("77f8")),u=a("9f53"),d=a("2f62"),p=a("d5c6"),m=a("61f7"),f=[{id:"0",name:"否"},{id:"1",name:"是"}],g=[{id:"0",name:"非泰康"},{id:"1",name:"泰康"}],_=[{id:"0",name:"无销售权限"},{id:"1",name:"有销售权限"}],h=[{id:"0",name:"非库存品"},{id:"1",name:"库存品"}],b=[{id:"0",name:"否"},{id:"1",name:"是"}],v=[{id:"1",name:"全国"},{id:"2",name:"全国除偏远"}],w=[{id:"0",name:"否"},{id:"1",name:"是"}],x=[{id:"0",name:"无工差"},{id:"1",name:"有工差"}],y=["证书","包装盒","绒布袋","标签","其他"],k=[{id:"0",name:"现结"},{id:"1",name:"月清"},{id:"2",name:"双月清"}],F=[{id:"0",name:"公司自提"},{id:"1",name:"供应商包邮"}],O={cat_id:[{type:"array",required:!0,message:"商品分类",trigger:"change"}],expire_day:[{required:!0,validator:n,trigger:"blur"}],delivery_day:[{required:!0,validator:r,trigger:"blur"}],pname:[{required:!0,validator:function(e,t,a){e.required&&0==t.length?a(new Error("不能为空!")):Object(m.a)(t)?a(new Error("不能出现/回车/换行符!")):Object(m.g)(t)?a(new Error("不能使用英文特殊字符!")):a()},trigger:"blur"}],work_day:[{required:!0,validator:r,trigger:"blur"}],model:[{required:!0,message:"型号不能为空",trigger:"blur"}],color:[{required:!0,message:"颜色不能为空",trigger:"blur"}],material:[{required:!0,message:"材质不能为空",trigger:"blur"}],brandid:[{type:"array",required:!0,message:"商品品牌",trigger:"change"}],unit_id:[{type:"array",required:!0,message:"请输入商品单位",trigger:"blur"}],weight:[{required:!0,validator:n,trigger:"blur"}],tax:[{required:!0,message:"请选择税率",trigger:"change"}],supply_area:[{required:!0,message:"请选择供货区域",trigger:"change"}],origin_place:[{type:"array",required:!0,message:"请选择产地",trigger:"change"}],delivery_place:[{type:"array",required:!0,message:"请选择发货地",trigger:"change"}],cert_fee:[{required:!0,validator:r,trigger:"blur"}],pakge_fee:[{required:!0,validator:r,trigger:"blur"}],cost_fee:[{required:!0,validator:r,trigger:"blur"}],mark_fee:[{required:!0,validator:r,trigger:"blur"}],demo_fee:[{required:!0,validator:r,trigger:"blur"}],open_fee:[{required:!0,validator:r,trigger:"blur"}],delivery_fee:[{required:!0,validator:r,trigger:"blur"}],nake_fee:[{required:!0,validator:r,trigger:"blur"}],noble_weight:[{required:!0,validator:n,trigger:"blur"}],metal_id:[{required:!0,message:"请选择贵金属种类",trigger:"change"}],is_gold_price:[{required:!0,message:"请选择是否启用实时金价",trigger:"change"}],is_diff:[{required:!0,message:"请选择有无工差",trigger:"change"}],config:[{required:!0,type:"array",message:"请选择配置要求",trigger:"change"}],other_config:[{required:!0,message:"其他要求不能为空",trigger:"blur"}],pay_way:[{required:!0,message:"请选择付款方式",trigger:"change"}],send_way:[{required:!0,message:"请选择发货方式",trigger:"change"}],cost_desc:[{required:!1,validator:i,trigger:"blur"}],remark:[{required:!0,validator:i,trigger:"blur"}],good_img:[{required:!0,message:"商品图片不能为空",trigger:"change"}]};u={name:"goodsCostAdd",mixins:[u.a],props:["showModel","id","type","sitem","askItem","newTime","editId"],components:{baseFormAddEdit:p.default},computed:Object(l.a)(Object(l.a)({},Object(d.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"goodsCostAdd"==e.menu_route}))||{};e=(null!==e?e:{}).action;return null!=e?e:[]}}),watch:{newTime:function(e){e&&this.initForm()}},data:function(){return{pid:"",cat_id_name:"",brand_name:"",unit_name:"",title:"",modelIndex:"",modelSitem:{},showOtherModel:!1,is_noble:!1,status:"",rulesThis:this.rules,activeName:"1",loading:!0,newGoldPrice:0,options1:f,options2:g,options3:_,options4:h,options5:b,options6:v,options7:w,options8:x,options9:y,options10:k,options11:F,ruleForm:{},rules:O,r1:"",r2:"",r3:"",r4:"",newPrice:0}},mounted:function(){this.initForm()},methods:{closeImg:function(e,t){this.ruleForm[t].splice(e,1),this.$refs.ruleForm.validateField(t)},accAdd:function(e,t){var a,r;try{a=e.toString().split(".")[1].length}catch(e){a=0}try{r=t.toString().split(".")[1].length}catch(e){r=0}return(e*(e=Math.pow(10,Math.max(a,r)))+t*e)/e},accMul:function(e,t){var a=0;e=e.toString(),t=t.toString();try{a+=e.split(".")[1].length}catch(e){}try{a+=t.split(".")[1].length}catch(e){}return(Number(e.replace(".",""))*Number(t.replace(".",""))/Math.pow(10,a)).toString()},accDiv:function(e,t){var a=0,r=0;try{a=e.toString().split(".")[1].length}catch(e){}try{r=t.toString().split(".")[1].length}catch(e){}return Number(e.toString().replace(".",""))/Number(t.toString().replace(".",""))*Math.pow(10,r-a)},initForm:function(){var e=this;return Object(o.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,"add"===e.type?e.title="新建采返商品":"edit"===e.type?e.title="编辑采返商品":e.title="采返商品详情",e.resetFormData(),t.next=7,e.resetForm();case 7:if("edit"===e.type||"view"===e.type)return t.next=11,e.initData();t.next=11;break;case 11:e.golpricelast(),e.rulesThis=e.rules,e.setrules(),e.loading=!1;case 17:case"end":return t.stop()}}),t)})))()},computedCost:function(){var e=this.askItem.num,t=this.ruleForm,a=t.demo_fee,r=t.open_fee,n=t.noble_weight,i=t.cost_fee,s=t.pakge_fee,o=t.mark_fee,l=t.cert_fee,c=t.nake_fee;t=t.delivery_fee,a=this.accDiv(a,e),r=this.accDiv(r,e),e=this.accMul(n,this.newGoldPrice),i=this.accMul(i,n),n=this.accAdd(s,o),s=this.accAdd(l,c);this.is_noble?this.newPrice=this.accAdd(this.accAdd(this.accAdd(a,r),this.accAdd(e,i)),this.accAdd(this.accAdd(n,s),t)).toFixed(2):this.newPrice=this.accAdd(this.accAdd(this.accAdd(a,r),this.accAdd(n,s)),t).toFixed(2)},number_change:function(e,t){this.ruleForm[t]=e+""||"0",this.$refs.ruleForm.validateField(t),this.computedCost()},initData:function(){var e=this;return Object(o.a)(regeneratorRuntime.mark((function t(){var a,r,n,i,o,l,u,d,p,m,f,g,_,h,b,v,w,x,y,k,F,O,C,S,j,R,N,z,$,D,T,E,q,I,V,M,L,J;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,t.next=3,c.a.good_detail({bidNo:e.editId});case 3:return a=t.sent,t.next=6,e.useResHandle(a);case 6:a=t.sent,J=a.code,r=a.data,a.message,0===J&&(J=JSON.parse(JSON.stringify(r)),r=J.bidNo,n=J.good_name,i=J.cat_id,o=J.cat_info,l=J.brand_id,u=J.unit,d=J.unit_id,p=J.tax,m=J.cost_desc,f=J.remark,g=J.weight,_=J.supply_area,h=J.origin_place,b=J.delivery_place,v=J.delivery_day,w=J.expire_day,x=J.good_img,y=J.cert_fee,k=J.pakge_fee,F=J.cost_fee,O=J.mark_fee,C=J.demo_fee,S=J.open_fee,j=J.metal_id,R=J.noble_weight,N=J.is_gold_price,z=J.delivery_fee,$=J.status,D=J.brand_name,T=J.work_day,E=J.pay_way,q=J.send_way,I=J.is_diff,V=J.config,M=J.nake_fee,L=J.other_config,(J=J.specinfo)&&0<J.length&&(e.spec_tableData=JSON.parse(JSON.stringify(J))),e.cat_id_name="",o&&o.length&&o.forEach((function(t,a){0===a&&(e.pid=t.id),e.cat_id_name+="".concat(0!==a?"_":"").concat(t.name)})),e.is_noble="1"===N&&"6"===e.pid,e.brand_name=D||"",e.unit_name=u||"",e.ruleForm=(J={infoNo:e.id||"",bidNo:r||""},Object(s.a)(J,"infoNo",e.id||""),Object(s.a)(J,"cat_id",i?[i]:[]),Object(s.a)(J,"pname",n||""),Object(s.a)(J,"expire_day",w||"1"),Object(s.a)(J,"delivery_day",v||"0"),Object(s.a)(J,"work_day",T||"0"),Object(s.a)(J,"brandid",l?[l]:[]),Object(s.a)(J,"unit_id",d?[d]:[]),Object(s.a)(J,"weight",g||"0.000"),Object(s.a)(J,"tax",p?p+"%":""),Object(s.a)(J,"supply_area",_||""),Object(s.a)(J,"origin_place",h?h.split(","):[]),Object(s.a)(J,"delivery_place",b?b.split(","):[]),Object(s.a)(J,"cert_fee",y||"0.00"),Object(s.a)(J,"pakge_fee",k||"0.00"),Object(s.a)(J,"cost_fee",F||"0.00"),Object(s.a)(J,"mark_fee",O||"0.00"),Object(s.a)(J,"demo_fee",C||"0.00"),Object(s.a)(J,"open_fee",S||"0.00"),Object(s.a)(J,"delivery_fee",z||"0.00"),Object(s.a)(J,"nake_fee",M||"0.00"),Object(s.a)(J,"pay_way",E||""),Object(s.a)(J,"send_way",q||"1"),Object(s.a)(J,"noble_weight",R||"0.000"),Object(s.a)(J,"metal_id",j||""),Object(s.a)(J,"is_gold_price",N||"0"),Object(s.a)(J,"is_diff",I||"0"),Object(s.a)(J,"config",V?V.split(","):[]),Object(s.a)(J,"other_config",L||""),Object(s.a)(J,"remark",f||""),Object(s.a)(J,"cost_desc",m||""),Object(s.a)(J,"good_img",x||[]),J),e.status=$,e.is_noble&&(e.ruleForm.nake_fee="0"));case 11:case"end":return t.stop()}}),t)})))()},submitForm:function(){var e=this;return Object(o.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.loading)return t.abrupt("return");t.next=2;break;case 2:if(e.is_noble&&(e.ruleForm.nake_fee="0"),e.computedCost(),10<e.ruleForm.good_img.length)return e.$message.warning("上传图片不能超过10张"),t.abrupt("return");t.next=7;break;case 7:return t.next=9,e.$refs.ruleForm.validate(function(){var t=Object(o.a)(regeneratorRuntime.mark((function t(a){var r,n,i,s;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!a){t.next=44;break}if(e.loading){t.next=42;break}if(e.loading=!0,0===e.spec_tableData.length)return e.$message.warning("请填写规格!"),e.loading=!1,t.abrupt("return");t.next=8;break;case 8:if((r=JSON.parse(JSON.stringify(e.ruleForm))).cat_id=r.cat_id[r.cat_id.length-1],r.brandid=r.brandid.toString(),r.origin_place=r.origin_place.toString(),r.delivery_place=r.delivery_place.toString(),r.send_way="1",r.is_gold_price="0",r.is_diff="0",r.unit_id=r.unit_id.toString(),r.config=r.config.toString(),r.tax=parseInt(r.tax+"")+"",r.specinfo=[],JSON.parse(JSON.stringify(e.spec_tableData)).forEach((function(e){e={specid:e.specid,spec_value_id:e.spec_value_id},r.specinfo.push(e)})),n={},"add"===e.type)return delete r.bidNo,t.next=28,c.a.good_add(r);t.next=31;break;case 28:n=t.sent,t.next=34;break;case 31:return t.next=33,c.a.good_update(r);case 33:n=t.sent;case 34:return t.next=36,e.useResHandle(n);case 36:s=t.sent,i=s.code,s.data,s.message,e.loading=!1,0===i&&(s="add"===e.type?"新建成功!":"修改成功!",e.$notify.success({title:s,message:""}),e.showModelThis=!1,e.$emit("refresh"));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 9:case"end":return t.stop()}}),t)})))()},resetForm:function(){var e=this;return Object(o.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(o.a)(regeneratorRuntime.mark((function t(){var a,r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.$refs.ruleForm&&(e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),e.spec_tableData=[],e.is_noble=!1,a=e.askItem,r=a.can_id_arr,a=a.is_gold_price,r.forEach((function(t,a){0==a&&(e.pid=t)})),"6"===e.pid&&"1"===a&&(e.is_noble=!0),e.cat_id_name="add"===e.type?e.askItem.can_name:"",e.brand_name="",e.unit_name="",r=e.askItem.good_img?e.askItem.good_img.split(","):[],e.ruleForm={infoNo:e.id||"",cat_id:"add"===e.type?[e.askItem.cat_id]:[],pname:"add"===e.type?e.askItem.good_name:"",expire_day:"1",delivery_day:"0",work_day:"0",brandid:[],unit_id:[],weight:"add"===e.type?e.askItem.total_weight:"0.000",tax:"",supply_area:"",origin_place:[],delivery_place:[],cert_fee:"0.00",pakge_fee:"0.00",cost_fee:"0.00",mark_fee:"0.00",demo_fee:"0.00",open_fee:"0.00",delivery_fee:"0.00",nake_fee:"0.00",pay_way:"",send_way:"1",noble_weight:"add"===e.type?e.askItem.specs_weight:"0.000",metal_id:"add"===e.type?e.askItem.metal_id:"",is_gold_price:"add"===e.type?e.askItem.is_gold_price:"0",is_diff:"0",config:"add"===e.type&&e.askItem.config?e.askItem.config.split(","):[],other_config:"add"===e.type?e.askItem.other_config:"",remark:"",cost_desc:"add"===e.type?e.askItem.cost_desc:"",good_img:"add"===e.type?r:[]},"add"===e.type&&(e.spec_tableData=JSON.parse(JSON.stringify(e.askItem.specinfo))));case 1:case"end":return t.stop()}}),t)}))));case 2:case"end":return t.stop()}}),t)})))()},openEdit:function(e,t){this.modelIndex=e,this.modelSitem=t,this.showOtherModel=!0},openDelete:function(e){this.spec_tableData.splice(e,1)},refreshEdit:function(e){e=JSON.parse(JSON.stringify(e));var t=e.index,a=e.specid,r=e.spec_name,n=e.spec_value_id,i=e.spec_value_name;t+""=="-1"?this.spec_tableData.push(e):(e=parseInt(t+""),this.spec_tableData[e].specid=a,this.spec_tableData[e].spec_name=r,this.spec_tableData[e].spec_value_id=n,this.spec_tableData[e].spec_value_name=i),this.showOtherModel=!1},cat_id_change:function(e){var t=this;return Object(o.a)(regeneratorRuntime.mark((function a(){var r,n;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:n=e.pid,r=e.id,e.label,"6"===n?(t.$message.warning("不允许反馈贵金属商品!"),t.pid="",t.ruleForm.cat_id=[]):(t.pid=n||"",t.ruleForm.cat_id=r?[r]:[]),t.$refs.ruleForm.validateField("cat_id"),n=t.ruleForm.is_gold_price,t.is_noble="6"===t.pid&&"1"===n,t.setrules(),t.is_noble&&(t.ruleForm.nake_fee="0"),t.computedCost();case 8:case"end":return a.stop()}}),a)})))()},setrules:function(){for(var e=["noble_weight","is_gold_price","is_diff"],t=0;t<e.length;t++)this.rulesThis[e[t]][0].required=this.is_noble;for(var a=["metal_id","config","other_config"],r=0;r<a.length;r++)this.rulesThis[a[r]][0].required="6"===this.pid},is_gold_price_change:function(){var e=this.ruleForm.is_gold_price;this.$refs.ruleForm.validateField("is_gold_price"),this.is_noble="6"===this.pid&&"1"===e,this.setrules(),this.is_noble&&(this.ruleForm.nake_fee="0"),this.computedCost()},brandidsearchChange:function(e){var t=e.id;e.code,e.label,this.ruleForm.brandid=t?[t]:[],this.$refs.ruleForm.validateField("brandid")},taxsearchChange:function(e){this.ruleForm.tax=e,this.$refs.ruleForm.validateField("tax")},unitsearchChange:function(e){var t=e.id,a=e.code;e.label,this.ruleForm.unit_id=t?[a]:[],this.$refs.ruleForm.validateField("unit_id")},metal_idsearchChange:function(e){var t=this;return Object(o.a)(regeneratorRuntime.mark((function a(){var r;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:t.loading=!0,r=e.id,e.code,e.label,t.ruleForm.metal_id=r||"",t.$refs.ruleForm.validateField("metal_id"),t.golpricelast(),t.loading=!1;case 6:case"end":return a.stop()}}),a)})))()},golpricelast:function(){var e=this;return Object(o.a)(regeneratorRuntime.mark((function t(){var a,r,n,i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(""===(a=e.ruleForm.metal_id)&&"0"===a)return e.newGoldPrice=0,e.computedCost(),t.abrupt("return");t.next=5;break;case 5:return t.next=7,c.a.golpricelast({type:a});case 7:return r=t.sent,t.next=10,e.useResHandle(r,!0);case 10:r=t.sent,n=r.code,i=r.data,r.message,0!==n||1!==i.length?e.newGoldPrice=0:e.newGoldPrice=i[0].price,e.computedCost();case 16:case"end":return t.stop()}}),t)})))()},selectAreaorigin_place:function(e){this.ruleForm.origin_place=e,this.$refs.ruleForm.validateField("origin_place")},selectAreadelivery_place:function(e){this.ruleForm.delivery_place=e,this.$refs.ruleForm.validateField("delivery_place")},UploadSuccessEventgood_img:function(e){var t=this;return Object(o.a)(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,t.UploadSuccessEvent(1,e);case 2:case"end":return a.stop()}}),a)})))()},UploadSuccessEvent:function(e,t){var a=this;return Object(o.a)(regeneratorRuntime.mark((function r(){var n;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(10<a.ruleForm.good_img.length)return a.$message.warning("上传图片最多不能超过10张"),r.abrupt("return");r.next=3;break;case 3:if("noToken"===(n=t.url))return r.next=7,a.logout();r.next=9;break;case 7:r.next=18;break;case 9:if("noSupplierNo"===n)return a.$notify({title:"当前供应商参数错误",dangerouslyUseHTMLString:!0,message:"5秒后,请您重新登录!"}),r.next=13,setTimeout(Object(o.a)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a.logout();case 2:case"end":return e.stop()}}),e)}))),5e3);r.next=15;break;case 13:r.next=18;break;case 15:(1===e||2===e)&&(a.ruleForm.good_img.push(n),a.$refs.ruleForm.validateField("good_img")),a.$message.success("图片上传成功!");case 18:case"end":return r.stop()}}),r)})))()},UploadErrorEventgood_img:function(e){this.imgUploadError(1,e)},imgUploadError:function(e,t){"break"!==t&&(this.$message.error("图片上传失败!"),this.$refs.ruleForm.validateField(1===e||2===e?"good_img":""))},beforeAvatarUpload:function(e){var t=!1;"image/jpg"!==e.type&&"image/png"!==e.type&&"image/jpeg"!==e.type||(t=!0),e=e.size/1024/1024<1;return t||this.$message.error("图片格式不正确!"),e||this.$message.error("图片大小不能超过 1MB!"),t&&e},resetFormData:function(){this.status="",this.is_noble=!1,this.cat_id_name="",this.brand_name="",this.unit_name="",this.ruleForm={infoNo:"",cat_id:[],pname:"",expire_day:"1",delivery_day:"0",work_day:"0",color:"",model:"",material:"",brandid:[],unit_id:[],weight:"0.000",tax:"",supply_area:"",origin_place:[],delivery_place:[],cert_fee:"0.00",pakge_fee:"0.00",cost_fee:"0.00",mark_fee:"0.00",demo_fee:"0.00",open_fee:"0.00",delivery_fee:"0.00",nake_fee:"0.00",pay_way:"",send_way:"1",noble_weight:"0.000",metal_id:"",is_gold_price:"0",is_diff:"0",config:[],other_config:"",remark:"",cost_desc:"",good_img:[]}},addFormData:function(){this.status="",this.is_noble=!1,this.cat_id_name="",this.brand_name="",this.unit_name="",this.ruleForm={infoNo:"",cat_id:[],pname:"",expire_day:"1",delivery_day:"0",work_day:"0",color:"",model:"",material:"",brandid:[],unit_id:[],weight:"0.000",tax:"",supply_area:"",origin_place:[],delivery_place:[],cert_fee:"0.00",pakge_fee:"0.00",cost_fee:"0.00",mark_fee:"0.00",demo_fee:"0.00",open_fee:"0.00",delivery_fee:"0.00",nake_fee:"0.00",pay_way:"",send_way:"1",noble_weight:"0.000",metal_id:"",is_gold_price:"0",is_diff:"0",config:[],other_config:"",remark:"",cost_desc:"",good_img:[]}}}},a("5250"),p=a("2877"),l=Object(p.a)(u,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",rules:e.rules,size:"mini","label-width":"85px"}},[a("el-row",[a("el-col",{staticStyle:{padding:"12px 16px 12px 16px","text-align":"right"},attrs:{span:24}},[a("span",[e._v(" 预计成本合计:"),a("span",[e._v(" "+e._s(e.newPrice)+" ")])]),a("span",{staticClass:"fl",staticStyle:{height:"28px","font-size":"16px","line-height":"28px"}},[e._v(e._s(e.title))]),a("el-button",{attrs:{size:"mini"},on:{click:function(t){return e.$emit("cancel")}}},[e._v("取 消 ")]),"view"!==e.type?a("el-button",{attrs:{size:"mini",type:"primary"},on:{click:e.submitForm}},[e._v("保 存 ")]):e._e()],1),a("el-col",{attrs:{span:18}},[a("el-form-item",{attrs:{label:"商品名称",prop:"pname"}},[a("el-input",{attrs:{placeholder:"商品名称",maxlength:"100",disabled:"view"===e.type},model:{value:e.ruleForm.pname,callback:function(t){e.$set(e.ruleForm,"pname",t)},expression:"ruleForm.pname"}})],1)],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"税点",prop:"tax","label-width":"60px"}},[a("search-tax",{attrs:{value:e.ruleForm.tax,size:"mini",disabled:"view"===e.type,isDetail:"add"!==e.type,placeholder:"税点"},on:{searchChange:e.taxsearchChange}})],1)],1),a("el-col",{attrs:{span:24}},[a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"分类",prop:"cat_id"}},[a("search-sort",{attrs:{value:e.ruleForm.cat_id,placeholder:"分类",size:"mini",names:e.cat_id_name,disabled:!1,isDetail:!0},on:{searchChange:e.cat_id_change}})],1),a("el-form-item",{attrs:{label:"品牌",prop:"brandid"}},[a("search-brand",{attrs:{value:e.ruleForm.brandid,size:"mini",disabled:!1,isDetail:!0,names:e.brand_name,placeholder:"品牌"},on:{searchChange:e.brandidsearchChange}})],1),a("el-form-item",{attrs:{label:"产地",prop:"origin_place"}},[a("select-area",{attrs:{placeholder:"产地",value:e.ruleForm.origin_place,size:"mini",disabled:"view"===e.type,"is-detail":"add"!==e.id},on:{selectChange:e.selectAreaorigin_place}})],1),a("el-form-item",{attrs:{label:"发货地",prop:"delivery_place"}},[a("select-area",{attrs:{placeholder:"发货地",value:e.ruleForm.delivery_place,size:"mini",disabled:"view"===e.type,"is-detail":"add"!==e.id},on:{selectChange:e.selectAreadelivery_place}})],1)],1),a("el-col",{staticStyle:{padding:"0 0 0 15px"},attrs:{span:12}},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.spec_tableData,size:"mini",border:"","max-height":"175px"}},[a("el-table-column",{attrs:{prop:"spec_name",label:"规格类型"}}),a("el-table-column",{attrs:{prop:"spec_value_name",label:"规格值"}}),"view"!==e.type?a("el-table-column",{attrs:{fixed:"right",width:"88px"},scopedSlots:e._u([{key:"header",fn:function(t){return[a("span",[e._v("操作")]),a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"添加规格类型",placement:"top"}},[a("i",{staticClass:"el-icon-circle-plus-outline fr",staticStyle:{"font-size":"18px","margin-top":"2px"},on:{click:function(t){return e.openEdit("-1",{})}}})])]}},{key:"default",fn:function(t){return[a("el-tooltip",{attrs:{effect:"dark",content:"修改",placement:"top"}},[a("i",{staticClass:"el-icon-edit tb-icon",on:{click:function(a){return e.openEdit(t.$index,t.row)}}})]),a("el-tooltip",{attrs:{effect:"dark",content:"删除",placement:"top"}},[a("i",{staticClass:"el-icon-delete tb-icon",on:{click:function(a){return e.openDelete(t.$index)}}})])]}}],null,!1,2783436760)}):e._e()],1),a("base-form-add-edit",{attrs:{index:e.modelIndex,"show-model":e.showOtherModel,sitem:e.modelSitem},on:{refresh:e.refreshEdit,cancel:function(t){e.showOtherModel=!1}}})],1)],1)],1),a("el-col",{attrs:{span:24}},[a("el-row",[a("el-col",{attrs:{span:24}},[a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"有效期",prop:"expire_day"}},[a("digital-input",{attrs:{values:e.ruleForm.expire_day,placeholder:"有效期",min:1,max:1e11,position:"right",precision:0,size:"mini",disabled:"view"===e.type,controls:!1,append:"天"},on:{reschange:function(t){return e.number_change(t,"expire_day")}}})],1)],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"物流时间",prop:"delivery_day"}},[a("digital-input",{attrs:{values:e.ruleForm.delivery_day,placeholder:"物流时间",min:0,max:1e11,position:"right",precision:0,size:"mini",disabled:"view"===e.type,controls:!1,append:"天"},on:{reschange:function(t){return e.number_change(t,"delivery_day")}}})],1)],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"生产工期",prop:"work_day"}},[a("digital-input",{attrs:{values:e.ruleForm.work_day,placeholder:"生产工期",min:0,max:1e11,disabled:"view"===e.type,position:"right",precision:0,size:"mini",controls:!1,append:"天"},on:{reschange:function(t){return e.number_change(t,"work_day")}}})],1)],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"单位",prop:"unit_id","label-width":"60px"}},[a("search-unit",{attrs:{value:e.ruleForm.unit_id,size:"mini",isDetail:!0,names:e.unit_name,disabled:!1,placeholder:"单位"},on:{searchChange:e.unitsearchChange}})],1)],1)],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"总重量",prop:"weight"}},[a("digital-input",{attrs:{values:e.ruleForm.weight,placeholder:"总重量",min:0,max:1e11,position:"right",precision:3,disabled:"view"===e.type,size:"mini",controls:!1,append:"g"},on:{reschange:function(t){return e.number_change(t,"weight")}}})],1)],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"供货区域",prop:"supply_area"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"",disabled:"view"===e.type,clearable:"",placeholder:"供货区域"},model:{value:e.ruleForm.supply_area,callback:function(t){e.$set(e.ruleForm,"supply_area",t)},expression:"ruleForm.supply_area"}},e._l(e.options6,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{staticClass:"clear",attrs:{label:"付款方式",prop:"pay_way"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"",disabled:"view"===e.type,clearable:"",placeholder:"付款方式"},model:{value:e.ruleForm.pay_way,callback:function(t){e.$set(e.ruleForm,"pay_way",t)},expression:"ruleForm.pay_way"}},e._l(e.options10,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1)],1)],1),a("el-col",{attrs:{span:24}},[a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"证书费",prop:"cert_fee"}},[a("digital-input",{attrs:{values:e.ruleForm.cert_fee,placeholder:"证书费",min:0,disabled:"view"===e.type,max:1e11,position:"right",precision:2,size:"mini",controls:!1,append:"元"},on:{reschange:function(t){return e.number_change(t,"cert_fee")}}})],1)],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"包装费",prop:"pakge_fee"}},[a("digital-input",{attrs:{values:e.ruleForm.pakge_fee,placeholder:"包装费",min:0,disabled:"view"===e.type,max:1e11,position:"right",precision:2,size:"mini",controls:!1,append:"元"},on:{reschange:function(t){return e.number_change(t,"pakge_fee")}}})],1)],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"工艺费",prop:"cost_fee"}},[a("digital-input",{attrs:{values:e.ruleForm.cost_fee,placeholder:"工艺费",min:0,disabled:"view"===e.type,max:1e11,position:"right",precision:2,size:"mini",controls:!1,append:"元"},on:{reschange:function(t){return e.number_change(t,"cost_fee")}}})],1)],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"加标费",prop:"mark_fee"}},[a("digital-input",{attrs:{values:e.ruleForm.mark_fee,placeholder:"加标费",min:0,disabled:"view"===e.type,max:1e11,position:"right",precision:2,size:"mini",controls:!1,append:"元"},on:{reschange:function(t){return e.number_change(t,"mark_fee")}}})],1)],1)],1)],1),a("el-col",{attrs:{span:24}},[a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"打样费",prop:"demo_fee"}},[a("digital-input",{attrs:{values:e.ruleForm.demo_fee,placeholder:"打样费",min:0,disabled:"view"===e.type,max:1e11,position:"right",precision:2,size:"mini",controls:!1,append:"元"},on:{reschange:function(t){return e.number_change(t,"demo_fee")}}})],1)],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"开模费",prop:"open_fee"}},[a("digital-input",{attrs:{values:e.ruleForm.open_fee,placeholder:"开模费",min:0,disabled:"view"===e.type,max:1e11,position:"right",precision:2,size:"mini",controls:!1,append:"元"},on:{reschange:function(t){return e.number_change(t,"open_fee")}}})],1)],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"物流费",prop:"delivery_fee"}},[a("digital-input",{attrs:{values:e.ruleForm.delivery_fee,placeholder:"物流费",min:0,disabled:"view"===e.type,max:1e11,position:"right",precision:2,size:"mini",controls:!1,append:"元"},on:{reschange:function(t){return e.number_change(t,"delivery_fee")}}})],1)],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{staticClass:"clear",attrs:{label:"裸价",prop:"nake_fee"}},[a("digital-input",{attrs:{values:e.ruleForm.nake_fee,placeholder:"裸价",min:0,disabled:"view"===e.type||e.is_noble,max:1e11,position:"right",precision:2,size:"mini",controls:!1,append:"元"},on:{reschange:function(t){return e.number_change(t,"nake_fee")}}})],1)],1)],1)],1),a("el-col",{directives:[{name:"show",rawName:"v-show",value:"6"===e.pid,expression:"pid === '6'"}],attrs:{span:24}},[a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"金属重量",prop:"noble_weight"}},[a("digital-input",{attrs:{values:e.ruleForm.noble_weight,placeholder:"金属重量",min:0,disabled:"view"===e.type,max:1e11,position:"right",precision:3,size:"mini",controls:!1,append:"g"},on:{reschange:function(t){return e.number_change(t,"noble_weight")}}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"金属种类",prop:"metal_id"}},[a("search-metal-kind",{attrs:{value:e.ruleForm.metal_id,size:"mini",disabled:"view"===e.type,isDetail:!0,placeholder:"金属种类"},on:{searchChange:e.metal_idsearchChange}})],1)],1)],1),a("el-col",{attrs:{span:24}},[a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"配置要求",prop:"config"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{multiple:"",disabled:"view"===e.type,placeholder:"配置要求"},model:{value:e.ruleForm.config,callback:function(t){e.$set(e.ruleForm,"config",t)},expression:"ruleForm.config"}},e._l(e.options9,(function(e,t){return a("el-option",{key:e+t,attrs:{label:e,value:e}})})),1)],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"其他配置要求",prop:"other_config","label-width":"120px"}},[a("el-input",{attrs:{placeholder:"其他要求",maxlength:"100",disabled:"view"===e.type},model:{value:e.ruleForm.other_config,callback:function(t){e.$set(e.ruleForm,"other_config",t)},expression:"ruleForm.other_config"}})],1)],1)],1)],1)],1),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"采购备注",prop:"remark"}},[a("el-input",{attrs:{placeholder:"采购备注",maxlength:"500",disabled:"view"===e.type},model:{value:e.ruleForm.remark,callback:function(t){e.$set(e.ruleForm,"remark",t)},expression:"ruleForm.remark"}})],1),a("el-form-item",{attrs:{label:"工艺说明",prop:"cost_desc"}},[a("el-input",{attrs:{placeholder:"工艺说明",maxlength:"500",disabled:"view"===e.type},model:{value:e.ruleForm.cost_desc,callback:function(t){e.$set(e.ruleForm,"cost_desc",t)},expression:"ruleForm.cost_desc"}})],1)],1),a("el-col",{attrs:{span:24}},[e.ruleForm.good_img?a("el-form-item",{staticClass:"activity-upload",attrs:{label:"商品图片(<1mb)",prop:"good_img"}},[e._l(e.ruleForm.good_img,(function(t,r){return a("div",{key:r,staticClass:"btnupload",staticStyle:{position:"relative","margin-left":"10px"}},[a("img",{staticClass:"avatar",attrs:{src:e.ruleForm.good_img[r]}}),"add"==e.type||"editBase"===e.type||"edit"===e.type?a("i",{staticClass:"el-icon-close",on:{click:function(t){return e.closeImg(r,"good_img")}}}):e._e()])})),"view"!=e.type?a("div",[a("i",{staticClass:"el-icon-plus avatar-uploader-icon",staticStyle:{position:"relative",width:"50px",height:"50px"}},[a("file-upload",{staticClass:"Upload",attrs:{accept:".jpg,.png,.jpeg",multiple:!0,disabled:"view"===e.type,uploadcondition:e.beforeAvatarUpload},on:{UploadErrorEvent:e.UploadErrorEventgood_img,UploadSuccessEvent:e.UploadSuccessEventgood_img}})],1)]):e._e()],2):e._e()],1)],1)],1)}),[],!1,null,"f6b3d85a",null);t.default=l.exports},"2cc2":function(e,t,a){"use strict";a.r(t);var r=a("1da1"),n=(a("e9c4"),a("96cf"),a("b86f")),i=a("61f7"),s={name:"myMessage",mixins:[a("9f53").a],data:function(){return{infor:{},isDetail:!0,loading:!1,ruleForm:{username:"",nickname:"",mobile:"",email:"",addtime:""},rules:{username:[{required:!0,message:"请输入账号",trigger:"blur"}],nickname:[{required:!0,validator:function(e,t,a){""===t?a(new Error("真实姓名不能为空!")):t.lenght<2||12<t.lenght||!Object(i.c)(t)||Object(i.d)(t)?a(new Error("真实姓名规则为2~12位汉字!")):a()},trigger:"blur"}],mobile:[{required:!0,message:"请输入手机号",trigger:"blur"}],email:[{required:!0,validator:function(e,t,a){""===t?a(new Error("邮箱不能为空!")):Object(i.j)(t)?a():a(new Error("邮箱格式不正确!"))},trigger:"blur"}],addtime:[{required:!0,message:"请输入加入时间",trigger:"blur"}]}}},mounted:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.resetForm();case 2:return t.next=4,e.initData();case 4:case"end":return t.stop()}}),t)})))()},destroyed:function(){},methods:{resetForm:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$nextTick((function(){e.$refs.ruleForm&&(e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),e.ruleForm={username:"",nickname:"",mobile:"",email:"",role_name:"",addtime:""})}));case 2:case"end":return t.stop()}}),t)})))()},initData:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){var a,r,i,s,o,l,c;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n.a.detail({});case 2:return a=t.sent,t.next=5,e.useResHandle(a);case 5:a=t.sent,r=a.code,c=a.data,a.message,0===r&&(r=c.username,i=c.nickname,s=c.mobile,o=c.email,l=c.addtime,c=c.role_name,e.ruleForm={username:r,nickname:i,mobile:s,email:o,addtime:l,role_name:c});case 10:case"end":return t.stop()}}),t)})))()},submitForm:function(){var e=this;return Object(r.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(r.a)(regeneratorRuntime.mark((function t(a){var r,i,s;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!a){t.next=21;break}if(e.loading)return t.abrupt("return");t.next=3;break;case 3:return e.loading=!0,delete(r=JSON.parse(JSON.stringify(e.ruleForm))).role_name,delete r.addtime,delete r.username,t.next=10,n.a.prefect(r);case 10:return r=t.sent,t.next=13,e.useResHandle(r);case 13:i=t.sent,s=i.code,i.data,i.message,e.loading=!1,0===s&&e.$notify.success({title:"个人信息修改成功!",message:""}),t.next=23;break;case 21:return t.abrupt("return",!1);case 23:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()}}};a("90a6"),a("39d0"),a=a("2877"),a=Object(a.a)(s,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("div",{staticClass:"my-messagge-page pagePadding"},[t("div",{staticClass:"change"},[t("div",{staticClass:"title"},[e._v("我的信息")]),t("div",{staticClass:"change-main"},[t("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",rules:e.rules,"label-width":"110px"}},[t("el-row",{attrs:{gutter:10}},[t("el-col",{attrs:{span:24}},[t("el-form-item",{attrs:{label:"账户",prop:"username"}},[t("el-input",{attrs:{maxlength:"50",disabled:e.isDetail},model:{value:e.ruleForm.username,callback:function(t){e.$set(e.ruleForm,"username",t)},expression:"ruleForm.username"}})],1)],1),t("el-col",{attrs:{span:24}},[t("el-form-item",{attrs:{label:"姓名",prop:"nickname"}},[t("el-input",{attrs:{maxlength:"50",disabled:e.isDetail},model:{value:e.ruleForm.nickname,callback:function(t){e.$set(e.ruleForm,"nickname",t)},expression:"ruleForm.nickname"}})],1)],1),t("el-col",{attrs:{span:24}},[t("el-form-item",{attrs:{label:"手机号",prop:"mobile"}},[t("el-input",{attrs:{maxlength:"11",disabled:e.isDetail},model:{value:e.ruleForm.mobile,callback:function(t){e.$set(e.ruleForm,"mobile",t)},expression:"ruleForm.mobile"}})],1)],1),t("el-col",{attrs:{span:24}},[t("el-form-item",{attrs:{label:"邮箱",prop:"email"}},[t("el-input",{attrs:{maxlength:"100"},model:{value:e.ruleForm.email,callback:function(t){e.$set(e.ruleForm,"email",t)},expression:"ruleForm.email"}})],1)],1),t("el-col",{attrs:{span:24}},[t("el-form-item",{attrs:{label:"加入时间",prop:"addtime"}},[t("el-input",{attrs:{maxlength:"50",disabled:!0},model:{value:e.ruleForm.addtime,callback:function(t){e.$set(e.ruleForm,"addtime",t)},expression:"ruleForm.addtime"}})],1)],1)],1)],1),t("el-col",{staticClass:"tc",attrs:{span:24}},[t("el-button",{attrs:{type:"primary",disabled:e.loading},on:{click:e.submitForm}},[e.loading?t("i",{staticClass:"el-icon-loading"}):e._e(),t("span",[e._v("提 交 信 息")])])],1)],1)])])}),[],!1,null,"e44e3452",null);t.default=a.exports},"2fbc":function(e,t,a){},"37a0":function(e,t,a){},"39d0":function(e,t,a){"use strict";a("37a0")},"401e":function(e,t,a){"use strict";var r=a("1b69"),n="abutment/";t.a={list:function(e,t){return Object(r.a)(n+"consultBidListCopy",e,"post",t)},good_detail:function(e,t){return Object(r.a)(n+"consultfeadinfo",e,"post",t)}}},"43b9":function(e,t,a){"use strict";a.r(t);var r=a("1da1"),n=(a("ac1f"),a("5319"),a("96cf"),a("61f7")),i=a("b86f"),s={name:"Login",mixins:[a("9f53").a],data:function(){var e=this;return{stepList:["验证身份","重设密码","设置成功"],timer:null,num:3,step:0,loginFormX:{username:"",mobile:"",code:""},loginRulesX:{username:[{required:!0,trigger:"blur",validator:function(e,t,a){""===t?a(new Error("请输入账号")):a()}}],mobile:[{required:!0,trigger:"blur",validator:function(e,t,a){""===t?a(new Error("手机号不能为空!")):Object(n.f)(t)?a():a(new Error("手机号不正确!"))}}],code:[{required:!0,trigger:"blur",validator:function(e,t,a){""===t?a(new Error("验证码不能为空!")):Object(n.h)(t)&&6===t.length?a():a(new Error("验证码应为6位数字!"))}}]},loginFormY:{newPassword:"",confirmPassword:""},loginRulesY:{newPassword:[{required:!0,trigger:"blur",validator:function(e,t,a){""===t?a(new Error("新密码不能为空!")):!Object(n.b)(t)||t.length<6||16<t.length?a(new Error("新密码为6-16位数字字母组合!")):Object(n.h)(t)?a(new Error("新密码不能为纯数字!")):Object(n.i)(t)?a(new Error("新密码不能为纯字母!")):a()}}],confirmPassword:[{required:!0,trigger:"blur",validator:function(t,a,r){""===a?r(new Error("确认密码不能为空!")):e.loginFormY.newPassword!==a?r(new Error("确认密码与新密码不一致!")):r()}}]},codeType:"code",capsTooltip:!1,loading:!1,showDialog:!1,redirect:void 0,otherQuery:{}}},mounted:function(){""===this.loginFormX.mobile&&this.$refs.mobile.focus(),""===this.loginFormX.code&&this.$refs.code.focus()},destroyed:function(){},methods:{modifyPostLevel:function(e){this.step=e},phoneErr:function(e){e||this.$refs.loginFormX.validateField("mobile")},checkCapslock:function(e){e=e.key,this.capsTooltip=e&&1===e.length&&"A"<=e&&e<="Z"},handleLoginX:function(){var e=this;this.$refs.loginFormX.validate((function(t){if(!t)return!1;e.step++}))},handleLoginY:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.loginFormY.validate(function(){var t=Object(r.a)(regeneratorRuntime.mark((function t(a){var r,n,s;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!a){t.next=15;break}if(e.loading){t.next=13;break}return e.loading=!0,r={username:e.loginFormX.username,mobile:e.loginFormX.mobile,code:e.loginFormX.code,password:e.loginFormY.newPassword},t.next=6,i.a.resetpwd(r);case 6:return r=t.sent,t.next=9,e.useResHandle(r);case 9:s=t.sent,n=s.code,s=s.message,0===n?(e.loading=!1,e.step++,e.setTime()):(e.$message.warning(s),e.loading=!1);case 13:t.next=16;break;case 15:return t.abrupt("return",!1);case 16:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()},setTime:function(){var e=this;this.timer=setInterval((function(){0!==e.num?e.num--:e.timer&&(clearInterval(e.timer),e.num=3,e.gotoLogin())}),1e3)},gotoLogin:function(){window.vm.$router.replace("/login")}}};a("ebdd"),a("aa1b"),a=a("2877"),a=Object(a.a)(s,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"forget-password"},[a("div",{staticClass:"forget-main"},[a("div",{staticClass:"my-card"},[e._m(0),a("div",{staticStyle:{margin:"8px 0 35px 0"}},[a("el-steps",{attrs:{active:e.step,simple:"","process-status":"finish","finish-status":"success"}},e._l(e.stepList,(function(e,t){return a("el-step",{key:t,attrs:{title:e}})})),1)],1),0===e.step?a("div",[a("el-form",{ref:"loginFormX",staticClass:"login-form",attrs:{model:e.loginFormX,rules:e.loginRulesX,autocomplete:"on","label-position":"left","label-width":"95px"}},[a("el-form-item",{attrs:{prop:"username",label:"账号:"}},[a("el-input",{ref:"username",attrs:{placeholder:"账号",name:"username",type:"text",tabindex:"1",maxlength:"50",autocomplete:"on"},model:{value:e.loginFormX.username,callback:function(t){e.$set(e.loginFormX,"username",t)},expression:"loginFormX.username"}})],1),a("el-form-item",{attrs:{prop:"mobile",label:"手机号:"}},[a("el-input",{ref:"mobile",attrs:{placeholder:"手机号",name:"mobile",type:"text",tabindex:"1",maxlength:"11",autocomplete:"on"},model:{value:e.loginFormX.mobile,callback:function(t){e.$set(e.loginFormX,"mobile",t)},expression:"loginFormX.mobile"}})],1),a("el-form-item",{staticClass:"code-sign",attrs:{prop:"code",label:"验证码:"}},[a("ul",{staticClass:"code-main"},[a("li",[a("el-input",{ref:"code",attrs:{placeholder:"验证码",name:"code",type:"text",tabindex:"1",maxlength:"50",autocomplete:"on"},model:{value:e.loginFormX.code,callback:function(t){e.$set(e.loginFormX,"code",t)},expression:"loginFormX.code"}})],1),a("li",[a("send-verification-code",{attrs:{mobile:e.loginFormX.mobile},on:{phoneErr:e.phoneErr}})],1)])]),a("el-button",{staticStyle:{width:"100%","margin-top":"10px"},attrs:{type:"primary"},nativeOn:{click:function(t){return t.preventDefault(),e.handleLoginX(t)}}},[e._v("下一步")])],1)],1):1===e.step?a("div",[a("el-form",{ref:"loginFormY",staticClass:"login-form",attrs:{model:e.loginFormY,rules:e.loginRulesY,autocomplete:"on","label-position":"left","label-width":"100px"}},[a("el-form-item",{attrs:{prop:"newPassword",label:"新密码:"}},[a("el-input",{ref:"newPassword",attrs:{placeholder:"6-16位数字字母组合",name:"newPassword",type:"password",tabindex:"1",maxlength:"16",autocomplete:"on"},model:{value:e.loginFormY.newPassword,callback:function(t){e.$set(e.loginFormY,"newPassword",t)},expression:"loginFormY.newPassword"}})],1),a("el-form-item",{attrs:{prop:"confirmPassword",label:"确认密码:"}},[a("el-input",{ref:"confirmPassword",attrs:{placeholder:"6-16位数字字母组合",name:"confirmPassword",type:"password",tabindex:"1",maxlength:"16",autocomplete:"on"},model:{value:e.loginFormY.confirmPassword,callback:function(t){e.$set(e.loginFormY,"confirmPassword",t)},expression:"loginFormY.confirmPassword"}})],1),a("el-button-group",{staticStyle:{"margin-top":"10px"}},[a("el-button",{staticStyle:{width:"140px"},attrs:{type:"primary",disabled:e.loading,icon:"el-icon-arrow-left"},nativeOn:{click:function(t){t.preventDefault(),e.step=0}}},[e._v("上一步")]),a("el-button",{staticStyle:{width:"140px"},attrs:{type:"primary",loading:e.loading},nativeOn:{click:function(t){return t.preventDefault(),e.handleLoginY(t)}}},[e._v("下一步"),a("i",{staticClass:"el-icon-arrow-right el-icon--right"})])],1)],1)],1):a("div",{staticClass:"success-card"},[e._m(1),a("div",{staticClass:"teps-title"},[e._v("恭喜你,新密码设置成功!")]),a("div",{staticClass:"teps-time"},[a("span",[e._v(e._s(e.num))]),e._v("秒后自动返回 ")])])])])])}),[function(){var e=this.$createElement;e=this._self._c||e;return e("div",{staticClass:"title-container"},[e("h3",{staticClass:"title"},[this._v("设置新登录密码")])])},function(){var e=this.$createElement;e=this._self._c||e;return e("div",{staticClass:"success-icon"},[e("i",{staticClass:"el-icon-success"})])}],!1,null,"556fc940",null);t.default=a.exports},"44e6":function(e,t,a){},4533:function(e,t,a){},"46d1":function(e,t,a){"use strict";a.r(t);var r=a("1da1"),n=a("5530"),i=(a("96cf"),a("e9c4"),a("d3b7"),a("159b"),a("b0c0"),a("a9e3"),a("d098")),s=a("f5ed"),o=a("9f53"),l=a("2f62"),c=a("a463");s={name:"goodsCost",mixins:[s.a,o.a],computed:Object(n.a)(Object(n.a)({},Object(l.b)(["tablebtnSize","searchSize","size","business_companyNo"])),{},{maxNo:function(){return this.business_companyNo}}),watch:{maxNo:function(e,t){this.restSearch()}},data:function(){return{dialogFormVisible:!1,statusList:c.l,isonlineoptions:[{id:"0",name:"未上线"},{id:"1",name:"已上线"}],options1:c.b,loading:!1,changeList:[],parmValue:{page:1,size:15,start:"",end:"",status:"",good_name:"",spucode:"",cat_id:[],brandid:"",good_type:"",companyNo:"",supplierNo:"",isonline:"",company_name:""},sinput:"",select:"",tableData:[],table:{stripe:!0,border:!0,_defaultHeader_:["setcol"]},pageInfo:{size:15,curr:1,total:0},columns:c.a,supplierNo:[],brandid:[]}},mounted:function(){var e,t=this.$route.query.back;t?(this.parmValue=JSON.parse(t),e=(t=this.parmValue).page,t=t.size,0<this.parmValue.brandid.length&&(this.brandid=[this.parmValue.brandid]),this.pageInfo={size:t,curr:e,total:0},this.select=this.parmValue.select,this.sinput=this.parmValue.sinput):this.select="1",this.select="1",this.supplierNo=[],this.searchList()},methods:{getRouter:function(e,t){var a;e&&t?(t={id:t,type:"view"},this.parmValue.select=this.select,this.parmValue.sinput=this.sinput,a={options:JSON.parse(JSON.stringify(this.parmValue)),router:this.$route.path},t.preModel=JSON.stringify(a),this.routeGoto(e,t)):this.$message.warning("暂未找到相关流程!")},restSearch:function(){this.select="1",this.sinput="",this.supplierNo=[],this.brandid=[],this.pageInfo={size:15,curr:1,total:0},this.parmValue={page:1,size:15,start:"",end:"",status:"",good_name:"",company_name:"",spucode:"",cat_id:[],brandid:"",good_type:"",isonline:"",companyNo:"",supplierNo:""},this.searchList()},wantto:function(e,t,a,n){var s=this;return Object(r.a)(regeneratorRuntime.mark((function a(){var r,o,l;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,i.a.checkIsUpdate({spuCode:t});case 2:return r=a.sent,a.next=5,s.useResHandle(r);case 5:r=a.sent,o=r.code,l=r.data,0===o&&(l.is_allow_update+""=="1"?s.routeGoto("/goodsCost/gDetail",{id:t,type:"2"===n?"editBase":"3"===n?"editCoin":""}):e+""=="1"?s.$message.warning("已上线的商品需要下线才能修改!"):s.$message.warning("当前商品上线流程正在进行中,请下线再操作!"));case 9:case"end":return a.stop()}}),a)})))()},selection_change:function(e){e=e.list,this.changeList=0<e.length?JSON.parse(JSON.stringify(e)):[]},brandidsearchChange:function(e){var t=this;return Object(r.a)(regeneratorRuntime.mark((function a(){var r,n;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return r=(n=null!=e?e:{}).id,n=n.label,t.brandid=r?[r]:[],t.parmValue.brandid=r||"",t.parmValue.supplierName=n||"",t.pageInfo.curr=1,t.parmValue.page=1,a.next=8,t.searchList();case 8:case"end":return a.stop()}}),a)})))()},handleTime:function(e){var t=this;return Object(r.a)(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(t.parmValue.start=e.startTime||"",t.parmValue.end=e.endTime||"",""!==t.parmValue.start&&""!==t.parmValue.end||""===t.parmValue.start&&""===t.parmValue.end)return t.pageInfo.curr=1,t.parmValue.page=1,a.next=7,t.searchList();a.next=7;break;case 7:case"end":return a.stop()}}),a)})))()},good_copy:function(e){var t=this;return Object(r.a)(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,t.$confirm("确定要复制该商品?",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(r.a)(regeneratorRuntime.mark((function a(){var r,n;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return t.loading=!0,r={spuCode:e},a.next=4,i.a.copy(r);case 4:return r=a.sent,a.next=7,t.useResHandle(r);case 7:if(n=a.sent,0===n.code)return t.loading=!1,t.$notify.success({title:"复制商品成功!",message:""}),a.next=14,t.searchList();a.next=16;break;case 14:a.next=17;break;case 16:t.loading=!1;case 17:case"end":return a.stop()}}),a)})))).catch((function(){}));case 2:case"end":return a.stop()}}),a)})))()},deleteItem:function(e){var t=this;return Object(r.a)(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,t.$confirm("确定要删除?",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(r.a)(regeneratorRuntime.mark((function a(){var r,n;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return r={codes:[e]},a.next=3,i.a.delete(r);case 3:return r=a.sent,a.next=6,t.useResHandle(r);case 6:if(n=a.sent,0===n.code)return t.$notify.success({title:"删除成功",message:""}),a.next=12,t.searchList();a.next=12;break;case 12:case"end":return a.stop()}}),a)})))).catch((function(){}));case 2:case"end":return a.stop()}}),a)})))()},searchList:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){var a,r,n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.loading)return t.abrupt("return");t.next=2;break;case 2:if(""!==e.parmValue.start&&""===e.parmValue.end||""===e.parmValue.start&&""!==e.parmValue.end)return e.$message.warning("时间区间不完整!"),t.abrupt("return");t.next=5;break;case 5:return e.loading=!0,(a=JSON.parse(JSON.stringify(e.parmValue))).spucode="1"===e.select?e.sinput:"",a.good_name="2"===e.select?e.sinput:"",a.cat_id=0<a.cat_id.length?a.cat_id[a.cat_id.length-1]:"",t.next=12,i.a.list(a);case 12:return a=t.sent,t.next=15,e.useResHandle(a);case 15:n=t.sent,r=n.code,n=n.data,0===r?(r=n.list,n=n.count,e.tableData=r,e.tableData.forEach((function(e){e.cat_name="",(e.cat_info||[]).forEach((function(t,a){e.cat_name+=0==a?t.name:"/"+t.name}))})),e.pageInfo.total=Number(n)):(e.tableData=[],e.pageInfo.total=0),e.loading=!1;case 20:case"end":return t.stop()}}),t)})))()},goods_class_change:function(e){var t=this;return Object(r.a)(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return t.parmValue.cat_id=e,t.pageInfo.curr=1,t.parmValue.page=1,a.next=5,t.searchList();case 5:case"end":return a.stop()}}),a)})))()}}},o=a("2877"),n=Object(o.a)(s,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"goodsCost pagePadding"},[a("ex-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{table:e.table,data:e.tableData,columns:e.columns,page:e.pageInfo,size:e.size},on:{"page-curr-change":e.handlePageChange,"page-size-change":e.handleSizeChange,"screen-reset":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()},"screen-submit":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()},selection:e.selection_change},scopedSlots:e._u([{key:"table-header",fn:function(t){return[a("div",{staticStyle:{width:"100%"}},[a("el-row",{staticStyle:{padding:"0 0 10px 80px"}},[a("el-col",{staticStyle:{width:"303px"},attrs:{span:6}},[a("period-date-picker",{attrs:{type:1,width:"135px",size:e.searchSize,start:e.parmValue.start,end:e.parmValue.end},on:{timeReturned:e.handleTime}})],1),a("el-col",{staticStyle:{width:"135px"},attrs:{span:4}},[a("search-brand",{attrs:{value:e.brandid,disabled:!1,size:"mini",isDetail:!0,names:e.parmValue.supplierName,placeholder:"商品品牌"},on:{searchChange:e.brandidsearchChange}})],1),a("el-col",{staticStyle:{width:"310px",padding:"0 0 0 10px"},attrs:{span:6}},[a("good-class",{attrs:{value:e.parmValue.cat_id,disabled:!1,size:e.searchSize,isDetail:!1,placeholder:"分类"},on:{handleChange:e.goods_class_change}})],1),a("el-col",{staticClass:"fr",staticStyle:{width:"66px",padding:"0 0 0 10px"},attrs:{span:3}},[a("el-button",{attrs:{type:"primary",size:e.searchSize},on:{click:e.searchList}},[e._v(" 刷新 ")])],1),a("el-col",{staticClass:"fr",staticStyle:{width:"66px",padding:"0 0 0 10px"},attrs:{span:3}},[a("el-button",{attrs:{type:"warning",size:e.searchSize},on:{click:e.restSearch}},[e._v(" 重置 ")])],1)],1),a("el-row",[a("el-col",{staticStyle:{width:"226px"},attrs:{span:4}},[a("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"",clearable:"",size:e.searchSize,placeholder:"状态"},on:{change:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.parmValue.status,callback:function(t){e.$set(e.parmValue,"status",t)},expression:"parmValue.status"}},e._l(e.statusList,(function(e){return a("el-option",{key:"status"+e.code,attrs:{label:e.name,value:e.code}})})),1)],1),a("el-col",{staticStyle:{width:"145px",padding:"0 0 0 10px"},attrs:{span:4}},[a("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"",clearable:"",size:e.searchSize,placeholder:"是否上线"},on:{change:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.parmValue.isonline,callback:function(t){e.$set(e.parmValue,"isonline",t)},expression:"parmValue.isonline"}},e._l(e.isonlineoptions,(function(e){return a("el-option",{key:"isonline"+e.id,attrs:{label:e.name,value:e.id}})})),1)],1),a("el-col",{staticStyle:{width:"420px",padding:"0 0 0 10px"},attrs:{span:4}},[a("el-input",{attrs:{size:e.searchSize,maxlength:40,placeholder:"关键字"},on:{blur:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.sinput,callback:function(t){e.sinput=t},expression:"sinput"}},[a("el-select",{staticStyle:{width:"135px"},attrs:{slot:"prepend",placeholder:"关键字类型"},on:{change:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},slot:"prepend",model:{value:e.select,callback:function(t){e.select=t},expression:"select"}},[a("el-option",{attrs:{label:"商品编号",value:"1"}}),a("el-option",{attrs:{label:"商品名称",value:"2"}})],1)],1)],1),a("el-col",{staticClass:"fr",staticStyle:{width:"66px",padding:"0 0 0 10px"},attrs:{span:3}},[a("el-button",{staticStyle:{float:"right"},attrs:{size:e.searchSize,type:"success"},on:{click:function(t){return e.routeGoto("/goodsCost/gDetail",{id:"add",type:"add"})}}},[e._v(" 添加 ")])],1)],1)],1)]}},{key:"good_thumb_img",fn:function(t){return t=t.scope,[t.row.good_thumb_img?a("div",{directives:[{name:"viewer",rawName:"v-viewer"}],staticClass:"hover",staticStyle:{width:"20px",height:"20px"}},[a("img",{staticStyle:{display:"inline-block",width:"100%",height:"100%"},attrs:{src:t.row.good_thumb_img,alt:""}})]):e._e()]}},{key:"status",fn:function(t){var r=t.scope;return[a("el-tag",{attrs:{size:e.tablebtnSize,type:(e.statusList.find((function(e){return e.code==r.row.status}))||{}).type||"--"},domProps:{textContent:e._s((e.statusList.find((function(e){return e.code==r.row.status}))||{}).name||"--")}})]}},{key:"isonline",fn:function(t){var r=t.scope;return[a("el-tag",{attrs:{size:e.tablebtnSize,type:"0"==r.row.is_online?"warning":""},domProps:{textContent:e._s((e.isonlineoptions.find((function(e){return e.id==r.row.is_online}))||{}).name||"--")}})]}},{key:"operation",fn:function(t){var r=t.scope;return["8"!==r.row.status?a("el-tooltip",{attrs:{effect:"dark",content:"详情",placement:"top"}},[a("i",{staticClass:"el-icon-view tb-icon",on:{click:function(t){return e.getRouter("/goodsCost/gDetail",r.row.spuCode)}}})]):e._e(),"7"===r.row.status||"6"===r.row.status||"8"===r.row.status?a("el-tooltip",{attrs:{effect:"dark",content:"修改",placement:"top"}},[a("i",{staticClass:"el-icon-edit tb-icon",on:{click:function(t){return e.routeGoto("/goodsCost/gDetail",{id:r.row.spuCode,type:"edit"})}}})]):e._e(),"4"===r.row.status||"1"===r.row.status?a("el-tooltip",{attrs:{effect:"dark",content:"修改基础信息",placement:"top"}},[a("i",{staticClass:"el-icon-c-scale-to-original tb-icon",on:{click:function(t){return e.wantto(r.row.is_online,r.row.spuCode,r.row.status,"2")}}})]):e._e(),"5"===r.row.status||"1"===r.row.status?a("el-tooltip",{attrs:{effect:"dark",content:"修改成本信息",placement:"top"}},[a("i",{staticClass:"el-icon-coin tb-icon",on:{click:function(t){return e.wantto(r.row.is_online,r.row.spuCode,r.row.status,"3")}}})]):e._e(),"7"!==r.row.status&&"8"!==r.row.status?a("el-tooltip",{attrs:{effect:"dark",content:"复制商品",placement:"top"}},[a("i",{staticClass:"el-icon-document-copy tb-icon",on:{click:function(t){return e.good_copy(r.row.spuCode)}}})]):e._e()]}}])})],1)}),[],!1,null,"ba81a396",null);t.default=n.exports},"484a":function(e,t,a){},"4a64":function(e,t,a){},"4d7e":function(e,t,a){},"4e06":function(e,t,a){"use strict";a.d(t,"a",(function(){return r})),a.d(t,"c",(function(){return n})),a.d(t,"d",(function(){return i})),a.d(t,"e",(function(){return s})),a.d(t,"f",(function(){return o})),a.d(t,"g",(function(){return l})),a.d(t,"h",(function(){return c})),a.d(t,"i",(function(){return u})),a.d(t,"j",(function(){return d})),a.d(t,"k",(function(){return p})),a.d(t,"b",(function(){return m}));var r=[{prop:"infoNo",label:"任务单号",width:"155px"},{prop:"bidNo",label:"反馈单编号",width:"158px"},{prop:"good_name",label:"商品名称",_slot_:"good_name","min-width":"220px"},{prop:"can",label:"分类",_slot_:"can","min-width":"180px"},{prop:"brand_name",label:"品牌",width:"80px"},{prop:"unit",label:"单位",width:"60px"},{prop:"addtime",label:"创建时间",width:"145px"},{prop:"",label:"操作",fixed:"right",_noset_:!0,width:"50px",_slot_:"operation"}],n=[{id:"0",name:"否"},{id:"1",name:"是"}],i=[{id:"0",name:"非泰康"},{id:"1",name:"泰康"}],s=[{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:"1",name:"待完善成本"},{id:"2",name:"待产品审核"},{id:"3",name:"待财务定价"},{id:"4",name:"待财务审核定价"},{id:"5",name:"待上线"},{id:"6",name:"上线成功"},{id:"7",name:"审核失败"},{id:"8",name:"已下线"}],p=[{id:"0",name:"现结"},{id:"1",name:"月清"},{id:"2",name:"双月清"}],m=[{prop:"good_name",label:"商品名称",_slot_:"good_name",span:24},{prop:"supplierName",label:"供应商名称",_slot_:"supplierName",span:12},{prop:"brand_name",label:"品牌",span:12},{prop:"cat",label:"分类",_slot_:"cat",span:12},{prop:"tax",label:"税点",append:"%",span:6},{prop:"unit",label:"单位",span:6},{prop:"delivery_place_cn",label:"发货地",span:9},{prop:"expire_day",label:"有效期",append:"天",span:5},{prop:"delivery_day",label:"物流时间",append:"天",span:5},{prop:"work_day",label:"生产工期",append:"天",span:5},{prop:"origin_place_cn",label:"产地",span:9},{prop:"pay_way",label:"付款方式",_slot_:"pay_way",span:5},{prop:"creater",label:"反馈人",span:4},{prop:"addtime",label:"反馈时间",span:6},{prop:"weight",label:"商品总克重",append:"g",span:6},{prop:"supply_area",label:"供货区域",_slot_:"supply_area",span:6},{prop:"send_way",label:"发货方式",_slot_:"send_way",span:6},{prop:"total_fee",label:"成本合计",append:"元",span:6},{prop:"cert_fee",label:"证书费",append:"元",span:6},{prop:"pakge_fee",label:"包装费",append:"元",span:6},{prop:"cost_fee",label:"工艺费",append:"元",span:6},{prop:"mark_fee",label:"加标费",append:"元",span:6},{prop:"demo_fee",label:"打样费",append:"元",span:6},{prop:"open_fee",label:"开模费",append:"元",span:6},{prop:"delivery_fee",label:"物流费",append:"元",span:6},{prop:"nake_fee",label:"裸价",append:"元",span:6},{prop:"remark",label:"采返备注",span:24},{prop:"cost_desc",label:"工艺说明",span:24},{prop:"good_img",_slot_:"good_img",label:"商品图片",span:24}]},"509a":function(e,t,a){"use strict";a("484a")},"50fe":function(e,t,a){"use strict";a.d(t,"a",(function(){return r})),a.d(t,"b",(function(){return n})),a.d(t,"c",(function(){return i}));var r=[{type:"selection",fixed:"left",_noset_:!0},{prop:"outCode",label:"发货申请单编号",width:"156"},{prop:"cgdNo",label:"销售订单编号",width:"156"},{prop:"status",label:"状态",_slot_:"status",width:"120px"},{prop:"good_class",label:"商品分类",width:"150"},{prop:"good_code",label:"商品编码",width:"140"},{prop:"good_name",label:"商品名称",width:"150"},{prop:"order_type",label:"商品来源",_slot_:"order_type",width:"70"},{prop:"contactor",label:"联系人",width:"70"},{prop:"mobile",label:"联系电话",width:"100"},{prop:"send_num",label:"发货数量"},{prop:"post_name",label:"物流公司"},{prop:"post_code",label:"物流单号"},{prop:"sendtime",label:"发货时间",width:"140"},{prop:"addtime",label:"申请时间",width:146},{prop:"",label:"操作",fixed:"right",_noset_:!0,_slot_:"operation",width:50}],n=[{prop:"outCode",label:"发货申请单号",span:6},{prop:"status",label:"发货申请单状态",_slot_:"status",span:6},{prop:"order_type",label:"商品来源",_slot_:"order_type",span:6},{prop:"sendtime",label:"发货时间",span:6},{prop:"send_num",label:"发货数量",span:6},{prop:"addtime",label:"创建时间",span:6},{prop:"post_name",label:"快递公司",span:6},{prop:"post_fee",label:"物流费用",span:6},{prop:"contactor",label:"收货联系人",span:6},{prop:"mobile",label:"收货联系人电话",span:6},{prop:"addr",label:"收货地址",span:12},{prop:"post_code",label:"物流编号",span:24},{prop:"remark",label:"发货申请备注",span:24}],i=[{value:"0",label:"待采购备货"},{value:"1",label:"待库管发货"},{value:"2",label:"已发货待收货"},{value:"3",label:"已收货"},{value:"4",label:"已全部退货"}]},5250:function(e,t,a){"use strict";a("6e6b")},"532f":function(e,t,a){"use strict";a("77e8")},"5f61":function(e,t,a){"use strict";a("f538")},"5f9b":function(e,t,a){"use strict";a.r(t);var r=a("1da1"),n=a("ade3"),i=a("5530"),s=(a("96cf"),a("e9c4"),a("d3b7"),a("159b"),a("a9e3"),a("f5ed")),o=a("9f53"),l=a("5daa"),c=a("f1d7"),u=a("e4d4"),d=a("0ee5"),p=a("2f62");s={name:"purchaseOrder",mixins:[s.a,o.a],components:{},computed:Object(i.a)(Object(i.a)({},Object(p.b)(["tablebtnSize","searchSize","size","business_companyNo"])),{},{maxNo:function(){return this.business_companyNo}}),watch:{maxNo:function(e,t){this.restSearch()}},data:function(){var e={supplierName:"",cg_order_type_options:d.a,stockName:"",changeList:[],fileUrl:l.a.baseURL,sitem:null,select:"1",input:"",timeOBJ:{start:"",end:""},options:["创建时间","最晚入库时间"],sselect:"创建时间",statusOptions:u.c,loading:!1,showModel:!1,isDetail:!1,modelId:0,wsm_code:[],wsm_supplierNo:[],parmValue:{orderCode:"",bk_code:"",wsm_in_code:"",cgdNo:"",apply_name:"",good_name:"",good_code:"",status:"",wsm_code:"",start:"",end:"",last_start:"",last_end:"",page:1,size:15,company_name:"",wsm_supplierNo:""},tableData:[],passwordModel:!1,passwordModelId:0,isPasswordDetail:!1};return Object(n.a)(e,"tableData",[]),Object(n.a)(e,"table",{stripe:!0,border:!0,_defaultHeader_:["setcol"]}),Object(n.a)(e,"pageInfo",{size:15,curr:1,total:0}),Object(n.a)(e,"columns",u.a),e},mounted:function(){var e,t,a,r,n,i=this.$route.query.back;i?(this.parmValue=JSON.parse(i),e=(i=this.parmValue).page,t=i.size,a=i.start,r=i.end,n=i.last_start,i=i.last_end,this.timeOBJ.start=a||n,this.timeOBJ.end=r||i,this.pageInfo={size:t,curr:e,total:0},this.select=this.parmValue.select,this.sselect=this.parmValue.sselect,this.input=this.parmValue.input):(this.select="1",this.sselect="创建时间"),this.searchList()},methods:{getRouter:function(e,t){var a;e&&t?(t={id:t},this.parmValue.select=this.select,this.parmValue.sselect=this.sselect,this.parmValue.input=this.input,a={options:JSON.parse(JSON.stringify(this.parmValue)),router:this.$route.path},t.preModel=JSON.stringify(a),this.routeGoto(e,t)):this.$message.warning("暂未找到相关流程!")},selection_change:function(e){e=e.list,this.changeList=0<e.length?JSON.parse(JSON.stringify(e)):[]},download:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){var a,r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.loading)return t.abrupt("return");t.next=2;break;case 2:if(e.changeList.length<=0)return e.$message.warning("请选择有效数据"),t.abrupt("return");t.next=5;break;case 5:return e.loading=!0,r=e.fileUrl+"abutment/exportCgdList",a={cgdNos:[]},e.changeList.forEach((function(e){a.cgdNos.push(e.cgdNo)})),t.next=11,e.pageHttpDownload(r,a,"aplication/zip","销售订单.zip");case 11:r=t.sent,0===r.code?e.$message.success("销售订单导出成功!"):e.$message.success("销售订单导出失败!"),setTimeout((function(){e.loading=!1}),500);case 15:case"end":return t.stop()}}),t)})))()},statusConfirm:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){var a,n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.changeList.length<=0)return e.$message.warning("至少选择一条销售订单数据!"),t.abrupt("return");t.next=3;break;case 3:if(a=!0,n=[],e.changeList.forEach((function(e){"0"!==e.status&&(a=!1),n.push(e.cgdNo)})),a){t.next=8;break}return e.$message.warning("只能选择未确认的销售订单!"),t.abrupt("return");case 8:return t.next=10,e.$confirm("确定批量确认?",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(r.a)(regeneratorRuntime.mark((function t(){var a,r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a={cgdNo:n,status:"1"},t.next=3,c.a.status(a);case 3:return a=t.sent,t.next=6,e.useResHandle(a);case 6:if(r=t.sent,r=r.code,e.loading=!1,0===r)return e.$notify.success({title:"提交成功!",message:""}),t.next=13,e.searchList();t.next=13;break;case 13:case"end":return t.stop()}}),t)})))).catch((function(){}));case 10:case"end":return t.stop()}}),t)})))()},statusConfirmIn:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){var a,n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.changeList.length<=0)return e.$message.warning("至少选择一条销售订单数据!"),t.abrupt("return");t.next=3;break;case 3:if(a=!0,n=[],e.changeList.forEach((function(e){"1"!==e.status&&"2"!==e.status&&(a=!1),n.push(e.cgdNo)})),a){t.next=8;break}return e.$message.warning("只能选择未入库的销售订单!"),t.abrupt("return");case 8:return t.next=10,e.$confirm("确定批量入库?",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(r.a)(regeneratorRuntime.mark((function t(){var a,r,i,s;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a={cgdNo:n},t.next=3,c.a.addOrderIn(a);case 3:return a=t.sent,t.next=6,e.useResHandle(a,!0);case 6:if(s=t.sent,r=s.code,i=s.data,s=s.message,e.loading=!1,0===r)return e.$notify.success({title:"提交成功!",message:""}),t.next=15,e.searchList();t.next=17;break;case 15:t.next=18;break;case 17:1003==r?e.showal(i,s,""):e.$message.warning(s);case 18:case"end":return t.stop()}}),t)})))).catch((function(){}));case 10:case"end":return t.stop()}}),t)})))()},showal:function(e,t,a){var r="<ul>";e.forEach((function(e){r+="<li>".concat(""!==a?e[a]:e,"</li>")})),r+="</ul>",this.$notify({title:t,dangerouslyUseHTMLString:!0,message:r})},restSearch:function(){this.sselect="创建时间",this.select="1",this.input="",this.wsm_code=[],this.wsm_supplierNo=[],this.timeOBJ={start:"",end:""},this.parmValue={bk_code:"",wsm_in_code:"",cgdNo:"",apply_name:"",good_name:"",good_code:"",status:"",wsm_code:"",start:"",end:"",last_start:"",last_end:"",orderCode:"",company_name:"",page:1,size:15},this.pageInfo={size:15,curr:1,total:0},this.searchList()},handleClick:function(e){var t=this;return Object(r.a)(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(t.sselect=e,t.parmValue.start="创建时间"===e?t.timeOBJ.start:"",t.parmValue.end="创建时间"===e?t.timeOBJ.end:"",t.parmValue.last_start="创建时间"!==e?t.timeOBJ.start:"",t.parmValue.last_end="创建时间"!==e?t.timeOBJ.end:"",""!==t.timeOBJ.start&&""===t.timeOBJ.end||""===t.timeOBJ.start&&""!==t.timeOBJ.end){a.next=10;break}return t.parmValue.page=1,t.pageInfo.curr=1,a.next=10,t.searchList();case 10:case"end":return a.stop()}}),a)})))()},searchList:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){var a,r,n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.loading)return t.abrupt("return");t.next=2;break;case 2:if(""!==e.timeOBJ.start&&""===e.timeOBJ.end||""===e.timeOBJ.start&&""!==e.timeOBJ.end)return e.$message.warning("时间区间不完整!"),t.abrupt("return");t.next=5;break;case 5:return e.loading=!0,e.parmValue.cgdNo="1"===e.select?e.input:"",e.parmValue.good_code="4"===e.select?e.input:"",e.parmValue.good_name="5"===e.select?e.input:"",t.next=12,c.a.list(e.parmValue);case 12:return a=t.sent,t.next=15,e.useResHandle(a);case 15:a=t.sent,r=a.code,n=a.data,0===r?(r=n.list,n=n.count,e.tableData=r,e.pageInfo.total=Number(n)):(e.tableData=[],e.pageInfo.total=0),e.loading=!1;case 20:case"end":return t.stop()}}),t)})))()},handleTime:function(e){var t=this;return Object(r.a)(regeneratorRuntime.mark((function a(){var r;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return t.timeOBJ.start=null!=(r=null==e?void 0:e.startTime)?r:"",t.timeOBJ.end=null!=(r=null==e?void 0:e.endTime)?r:"",a.next=4,t.handleClick(t.sselect);case 4:case"end":return a.stop()}}),a)})))()}}},a("03ed"),o=a("2877"),i=Object(o.a)(s,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"purchaseOrder pagePadding"},[a("ex-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{table:e.table,data:e.tableData,columns:e.columns,page:e.pageInfo,size:e.size},on:{"page-curr-change":e.handlePageChange,"page-size-change":e.handleSizeChange,"screen-reset":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()},"screen-submit":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()},selection:e.selection_change},scopedSlots:e._u([{key:"table-header",fn:function(t){return[a("div",{staticStyle:{width:"100%"}},[a("el-row",{staticStyle:{padding:"0 0 0 80px"}},[a("el-col",{staticStyle:{width:"150px"},attrs:{span:4}},[a("el-select",{staticStyle:{width:"100%"},attrs:{size:e.searchSize,filterable:"",clearable:"",placeholder:"销售订单状态"},on:{change:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.parmValue.status,callback:function(t){e.$set(e.parmValue,"status",t)},expression:"parmValue.status"}},e._l(e.statusOptions,(function(e){return a("el-option",{key:"status"+e.value,attrs:{label:e.label,value:e.value}})})),1)],1),a("el-col",{staticStyle:{width:"110px",padding:"0 0 0 10px"},attrs:{span:4}},[a("el-dropdown",{attrs:{size:e.searchSize},on:{command:function(t){return e.handleClick(t)}}},[a("el-button",{staticStyle:{width:"100px"},attrs:{size:e.searchSize}},[e._v(" "+e._s(e.sselect)+" "),a("i",{staticClass:"el-icon-arrow-down el-icon--right",attrs:{size:e.searchSize}})]),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},e._l(e.options,(function(t){return a("el-dropdown-item",{key:t,attrs:{command:t}},[e._v(e._s(t))])})),1)],1)],1),a("el-col",{staticStyle:{width:"303px",padding:"0 0 0 10px"},attrs:{span:4}},[a("period-date-picker",{attrs:{type:1,width:"135px",size:e.searchSize,start:e.timeOBJ.start,end:e.timeOBJ.end},on:{timeReturned:e.handleTime}})],1),a("el-col",{staticStyle:{width:"66px",float:"right"},attrs:{span:3}},[a("el-button",{staticStyle:{float:"right","margin-left":"5px"},attrs:{size:e.searchSize,type:"primary"},on:{click:e.searchList}},[e._v(" 刷新 ")])],1),a("el-col",{staticStyle:{width:"66px",float:"right"},attrs:{span:4}},[a("el-button",{staticClass:"fr",attrs:{type:"warning",size:e.searchSize},on:{click:e.restSearch}},[e._v(" 重置 ")])],1)],1),a("el-row",{staticStyle:{padding:"10px 0 0 0"}},[a("el-col",{staticStyle:{width:"500px",padding:"0 0 0 0px"},attrs:{span:6}},[a("el-input",{staticClass:"input-with-select",attrs:{clearable:"",placeholder:"关键字",maxlength:"40",size:e.searchSize},on:{blur:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.input,callback:function(t){e.input=t},expression:"input"}},[a("el-select",{staticStyle:{width:"125px"},attrs:{slot:"prepend",placeholder:"关键字类型"},on:{change:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},slot:"prepend",model:{value:e.select,callback:function(t){e.select=t},expression:"select"}},[a("el-option",{attrs:{label:"销售订单编号",value:"1"}}),a("el-option",{attrs:{label:"商品编号",value:"4"}}),a("el-option",{attrs:{label:"商品名称",value:"5"}})],1)],1)],1),a("el-col",{staticStyle:{width:"90px",float:"right"},attrs:{span:4}},[a("el-button",{staticClass:"fr",staticStyle:{"margin-left":"30px"},attrs:{type:"primary",size:e.searchSize},on:{click:e.download}},[e._v(" 批量导出 ")])],1),a("el-col",{staticStyle:{width:"90px",float:"right"},attrs:{span:4}},[a("el-button",{staticClass:"fr",attrs:{type:"primary",size:e.searchSize},on:{click:e.statusConfirmIn}},[e._v(" 批量入库 ")])],1),a("el-col",{staticStyle:{width:"90px",float:"right"},attrs:{span:4}},[a("el-button",{staticClass:"fr",attrs:{type:"primary",size:e.searchSize},on:{click:e.statusConfirm}},[e._v(" 批量确认 ")])],1)],1)],1)]}},{key:"good_name",fn:function(t){return t=t.scope,[a("span",[e._v(e._s(t.row.good_name))]),e._l(t.row.speclist,(function(t,r){return a("span",{key:t.spec_id+r},[e._v(" "+e._s(0===r?"__":"--")+e._s(t.spec_name)+"["+e._s(t.spec_value)+"] ")])}))]}},{key:"status",fn:function(t){var r=t.scope;return[a("el-tag",{attrs:{size:e.tablebtnSize},domProps:{textContent:e._s((e.statusOptions.find((function(e){return e.value==r.row.status}))||{}).label||"--")}})]}},{key:"order_id",fn:function(t){var r=t.scope;return[a("el-tag",{attrs:{size:e.tablebtnSize},domProps:{textContent:e._s((e.cg_order_type_options.find((function(e){return e.id==r.row.order_type}))||{}).label||"--")}})]}},{key:"operation",fn:function(t){var r=t.scope;return[a("el-tooltip",{attrs:{effect:"dark",content:"详情",placement:"top"}},[a("i",{staticClass:"el-icon-view tb-icon",on:{click:function(t){return e.getRouter("/purchaseOrder/pDetail",r.row.cgdNo)}}})])]}}])})],1)}),[],!1,null,"142fde78",null);t.default=i.exports},"5fb4":function(e,t,a){"use strict";a.r(t);var r=a("1da1"),n=(a("96cf"),a("4e06")),i=a("9f53"),s=a("401e");i={name:"showData",props:["showModel","bidNo"],mixins:[i.a],data:function(){return{newTime:"",loading:!0,showModelThis:this.showModel,sitem:"",options1:n.c,options2:n.d,options3:n.e,options4:n.f,options5:n.g,options6:n.h,options7:n.i,options8:n.j,options9:n.k,costColumns:n.b}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initData()},showModelThis:function(e){e||this.$emit("cancel")}},methods:{initData:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){var a,r,n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,t.next=3,s.a.good_detail({bidNo:e.bidNo});case 3:return a=t.sent,t.next=6,e.useResHandle(a,!0);case 6:a=t.sent,r=a.code,n=a.data,a.message,0===r&&(e.sitem=n,e.loading=!1);case 11:case"end":return t.stop()}}),t)})))()}}},a=a("2877"),a=Object(a.a)(i,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:"采返商品详情",center:!0,align:"left",top:"8vh",width:"1040px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)","append-to-body":""},on:{close:function(t){e.showModelThis=!1},"update:visible":function(t){e.showModelThis=t}}},[a("show-data-table",{staticStyle:{margin:"-20px 0 0 0"},attrs:{sitem:e.sitem,columns:e.costColumns,border:!0}},[a("template",{slot:"supplierName"},[a("span",[e._v(e._s(e.sitem.supplierName))]),a("el-popover",{attrs:{placement:"top",width:"300",trigger:"hover"}},[a("ul",[a("li",[a("span",[e._v("供应商编号:")]),a("span",[e._v(e._s(e.sitem.supplierNo))])])]),a("i",{staticClass:"el-icon-warning-outline fr",attrs:{slot:"reference"},slot:"reference"})])],1),a("template",{slot:"good_name"},[a("span",[e._v(e._s(e.sitem.good_name))]),e._l(e.sitem.specinfo,(function(t,r){return a("span",{key:t.spec_id+r},[a("span",0!==r?[e._v("-")]:[e._v("_")]),a("span",[e._v(e._s(t.spec_name)+"["+e._s(t.spec_value_name)+"]")])])})),a("el-popover",{attrs:{placement:"top",width:"300",trigger:"hover"}},[a("ul",[a("li",[a("span",[e._v("商品编号:")]),a("span",[e._v(e._s(e.sitem.spuCode))])])]),a("i",{staticClass:"el-icon-warning-outline fr",attrs:{slot:"reference"},slot:"reference"})])],2),a("template",{slot:"cat"},e._l(e.sitem.cat_info,(function(t,r){return a("span",{key:t.id+r},[e._v(" "+e._s(0===r?"":"_")+e._s(t.name)+" ")])})),0),a("template",{slot:"send_way"},[a("span",[e._v(e._s("1"===e.sitem.send_way?"供应商包邮":"公司自提"))])]),a("template",{slot:"good_type"},[a("el-tag",{attrs:{size:"mini"},domProps:{textContent:e._s((e.options1.find((function(t){return t.id==e.sitem.good_type}))||{}).name||"--")}}),"1"===e.sitem.good_type?a("span",{staticStyle:{padding:"0 0 0 5px"}},[e._v(e._s(e.sitem.moq)+"起订/工期"+e._s(e.sitem.customized)+"天")]):e._e()],1),a("template",{slot:"pay_way"},[a("el-tag",{attrs:{size:"mini"},domProps:{textContent:e._s((e.options9.find((function(t){return t.id==e.sitem.pay_way}))||{}).name||"--")}})],1),a("template",{slot:"supply_area"},[a("el-tag",{attrs:{size:"mini"},domProps:{textContent:e._s((e.options6.find((function(t){return t.id==e.sitem.supply_area}))||{}).name||"--")}})],1),a("template",{slot:"noble"},[e.sitem.noble_name?a("span",[e._v(e._s(e.sitem.noble_weight||"0")+"g-"+e._s(e.sitem.noble_name)+"-"+e._s(e.sitem.gold_price||"0")+"元/g-"+e._s("0"===e.sitem.is_gold_price?"不":"")+"启用实时金价-"+e._s("1"===e.sitem.is_diff?"有":"无")+"工差-"+e._s(e.sitem.config)+"-"+e._s(e.sitem.other_config))]):a("span",[e._v("--")])]),a("template",{slot:"good_img"},e._l(e.sitem.good_img,(function(e,t){return a("img",{directives:[{name:"viewer",rawName:"v-viewer"}],key:e+t,staticClass:"fl",staticStyle:{width:"23px",height:"23px",margin:"0 5px 0 0"},attrs:{src:e,alt:""}})})),0)],2)],1)}),[],!1,null,null,null);t.default=a.exports},6057:function(e,t,a){},"60bd":function(e,t,a){"use strict";a("4533")},"62f7":function(e,t,a){"use strict";a("69324")},"639a":function(e,t,a){"use strict";a("4a64")},69324:function(e,t,a){},"6e6b":function(e,t,a){},"6f15":function(e,t,a){"use strict";a.r(t);var r=a("1da1"),n=a("5530"),i=(a("96cf"),a("e9c4"),a("d3b7"),a("159b"),a("a9e3"),a("b0c0"),a("f5ed")),s=a("9f53"),o=a("2f62"),l=a("5daa"),c=a("9927"),u=a("50fe"),d=a("0ee5");i={name:"sellOutOrder",mixins:[i.a,s.a],computed:Object(n.a)(Object(n.a)({},Object(o.b)(["tablebtnSize","searchSize","size","business_companyNo"])),{},{maxNo:function(){return this.business_companyNo}}),watch:{maxNo:function(e,t){this.restSearch()}},data:function(){return{select:"cgdNo",s_input:"",customerCode:[],fileUrl:l.a.baseURL,options:["申请时间","发货时间"],sselect:"申请时间",changeList:[],sitem:null,statusOptions:[{id:"0",label:"待发货"},{id:"1",label:"待库管发货"},{id:"2",label:"已发货待收货"},{id:"3",label:"已收货"},{id:"4",label:"已全部退货"}],loading:!1,isDetail:!1,timeOBJ:{start:"",end:""},modelId:0,parmValue:{order_type:"",orderCode:"",apply_name:"",cgdNo:"",start:"",end:"",start_sendtime:"",end_sendtime:"",companyNo:"",good_code:"",good_name:"",outCode:"",status:"",company_name:"",page:1,size:15},tableData:[],table:{stripe:!0,border:!0,_defaultHeader_:["setcol"]},pageInfo:{size:15,curr:1,total:0},columns:u.a,xs_order_type_options:d.b}},mounted:function(){var e,t=this.$route.query.back;t?(this.parmValue=JSON.parse(t),e=(t=this.parmValue).page,t=t.size,0<this.parmValue.companyNo.length&&(this.customerCode=[this.parmValue.companyNo]),this.pageInfo={size:t,curr:e,total:0},this.select=this.parmValue.select,this.s_input=this.parmValue.s_input):this.select="cgdNo",this.searchList()},methods:{getRouter:function(e,t){var a;e&&t?(t={id:t},this.parmValue.select=this.select,this.parmValue.s_input=this.s_input,a={options:JSON.parse(JSON.stringify(this.parmValue)),router:this.$route.path},t.preModel=JSON.stringify(a),this.routeGoto(e,t)):this.$message.warning("暂未找到相关流程!")},selection_change:function(e){e=e.list,this.changeList=0<e.length?JSON.parse(JSON.stringify(e)):[]},download:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){var a,r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.loading)return t.abrupt("return");t.next=2;break;case 2:if(e.changeList.length<=0)return e.$message.warning("请选择有效数据"),t.abrupt("return");t.next=5;break;case 5:return e.loading=!0,r=e.fileUrl+"abutment/exportsaleout",a=[],e.changeList.forEach((function(e){a.push(e.outCode)})),t.next=11,e.pageHttpDownload(r,{outCodes:a},"aplication/zip","发货申请单.zip");case 11:r=t.sent,0===r.code?e.$message.success("发货申请单导出成功!"):e.$message.success("发货申请单导出失败!"),setTimeout((function(){e.loading=!1}),500);case 15:case"end":return t.stop()}}),t)})))()},restSearch:function(){this.customerCode=[],this.select="cgdNo",this.s_input="",this.timeOBJ={start:"",end:""},this.parmValue={order_type:"",orderCode:"",apply_name:"",cgdNo:"",start:"",end:"",start_sendtime:"",end_sendtime:"",companyNo:"",good_code:"",good_name:"",outCode:"",status:"",company_name:"",page:1,size:15},this.pageInfo={size:15,curr:1,total:0},this.searchList()},searchList:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){var a,r,n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.loading)return t.abrupt("return");t.next=2;break;case 2:if(""!==e.timeOBJ.start&&""===e.timeOBJ.end||""===e.timeOBJ.start&&""!==e.timeOBJ.end)return e.$message.warning("时间区间不完整!"),t.abrupt("return");t.next=5;break;case 5:return e.loading=!0,a=JSON.parse(JSON.stringify(e.parmValue)),t.next=9,c.a.list(a);case 9:return a=t.sent,t.next=12,e.useResHandle(a);case 12:r=t.sent,n=r.code,r=r.data,0===n?(r=(n=null!=r?r:{}).list,n=n.count,e.tableData=null!=r?r:[],e.pageInfo.total=Number(n),e.tableData.forEach((function(e){e.good_class="",e.can&&0<e.can.length&&e.can.forEach((function(t,a){e.good_class+=0===a?t.name:"/"+t.name}))}))):(e.tableData=[],e.pageInfo.total=0),e.loading=!1;case 17:case"end":return t.stop()}}),t)})))()},handleClick:function(e){var t=this;return Object(r.a)(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(t.sselect=e,t.parmValue.start="申请时间"===e?t.timeOBJ.start:"",t.parmValue.end="申请时间"===e?t.timeOBJ.end:"",t.parmValue.start_sendtime="发货时间"!==e?t.timeOBJ.start:"",t.parmValue.end_sendtime="发货时间"!==e?t.timeOBJ.end:"",""!==t.timeOBJ.start&&""===t.timeOBJ.end||""===t.timeOBJ.start&&""!==t.timeOBJ.end){a.next=10;break}return t.parmValue.page=1,t.pageInfo.curr=1,a.next=10,t.searchList();case 10:case"end":return a.stop()}}),a)})))()},handleTime:function(e){var t=this;return Object(r.a)(regeneratorRuntime.mark((function a(){var r;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return t.timeOBJ.start=null!=(r=null==e?void 0:e.startTime)?r:"",t.timeOBJ.end=null!=(r=null==e?void 0:e.endTime)?r:"",a.next=4,t.handleClick(t.sselect);case 4:case"end":return a.stop()}}),a)})))()},customerChange:function(e){var t=this;return Object(r.a)(regeneratorRuntime.mark((function a(){var r,n;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return r=(n=null!=e?e:{}).code,n=n.label,t.customerCode=r?[r]:[],t.parmValue.supplierName=null!=n?n:"",t.parmValue.companyNo=null!=r?r:"",t.pageInfo.curr=1,t.parmValue.page=1,a.next=8,t.searchList();case 8:case"end":return a.stop()}}),a)})))()},handleValue:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.parmValue.orderCode="orderCode"===e.select?e.s_input:"",e.parmValue.outCode="outCode"===e.select?e.s_input:"",e.parmValue.good_code="good_code"===e.select?e.s_input:"",e.parmValue.good_name="good_name"===e.select?e.s_input:"",e.parmValue.apply_name="apply_name"===e.select?e.s_input:"",e.parmValue.cgdNo="cgdNo"===e.select?e.s_input:"",e.parmValue.company_name="company_name"===e.select?e.s_input:"",t.next=9,e.searchList();case 9:case"end":return t.stop()}}),t)})))()}}},a("6fc8"),s=a("2877"),n=Object(s.a)(i,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"sellOutOrder pagePadding"},[a("ex-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{table:e.table,data:e.tableData,columns:e.columns,page:e.pageInfo,size:e.size},on:{"page-curr-change":e.handlePageChange,"page-size-change":e.handleSizeChange,"screen-reset":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()},"screen-submit":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()},selection:e.selection_change},scopedSlots:e._u([{key:"table-header",fn:function(t){return[a("div",{staticStyle:{width:"100%"}},[a("el-row",{staticStyle:{padding:"0 0 0 80px"}},[a("el-col",{staticStyle:{width:"110px"},attrs:{span:4}},[a("el-dropdown",{attrs:{size:e.searchSize},on:{command:function(t){return e.handleClick(t)}}},[a("el-button",{staticStyle:{width:"100px"},attrs:{size:e.searchSize}},[e._v(" "+e._s(e.sselect)+" "),a("i",{staticClass:"el-icon-arrow-down el-icon--right",attrs:{size:e.searchSize}})]),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},e._l(e.options,(function(t){return a("el-dropdown-item",{key:t,staticStyle:{width:"100px"},attrs:{command:t}},[e._v(e._s(t))])})),1)],1)],1),a("el-col",{staticStyle:{width:"290px"},attrs:{span:4}},[a("period-date-picker",{attrs:{type:1,start:e.timeOBJ.start,end:e.timeOBJ.end,width:"134px",size:e.searchSize},on:{timeReturned:e.handleTime}})],1),a("el-col",{staticStyle:{width:"230px",padding:"0px 0 0 10px"},attrs:{span:4}},[a("search-customer",{attrs:{value:e.customerCode,size:e.searchSize,placeholder:"客户公司名称",names:e.parmValue.supplierName,"is-detail":!0},on:{searchChange:e.customerChange}})],1),a("el-col",{staticStyle:{width:"66px",float:"right"},attrs:{span:3}},[a("el-button",{staticStyle:{float:"right","margin-left":"5px"},attrs:{size:e.searchSize,type:"primary"},on:{click:e.searchList}},[e._v(" 刷新 ")])],1),a("el-col",{staticStyle:{width:"66px",float:"right"},attrs:{span:4}},[a("el-button",{staticClass:"fr",staticStyle:{"margin-left":"30px"},attrs:{type:"primary",size:e.searchSize},on:{click:e.download}},[e._v(" 导出 ")])],1)],1),a("el-row",{staticStyle:{"padding-top":"10px"}},[a("el-col",{staticStyle:{width:"150px"},attrs:{span:4}},[a("el-select",{staticStyle:{width:"100%"},attrs:{size:e.searchSize,filterable:"",clearable:"",placeholder:"状态"},on:{change:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.parmValue.status,callback:function(t){e.$set(e.parmValue,"status",t)},expression:"parmValue.status"}},e._l(e.statusOptions,(function(e){return a("el-option",{key:"status"+e.id,attrs:{label:e.label,value:e.id}})})),1)],1),a("el-col",{staticStyle:{width:"500px",padding:"0 0 0 10px"},attrs:{span:4}},[a("el-input",{staticClass:"input-with-select",attrs:{clearable:"",size:e.searchSize,placeholder:"关键字",maxlength:"40"},model:{value:e.s_input,callback:function(t){e.s_input=t},expression:"s_input"}},[a("el-select",{staticStyle:{width:"140px"},attrs:{slot:"prepend",placeholder:"关键字类型"},slot:"prepend",model:{value:e.select,callback:function(t){e.select=t},expression:"select"}},[a("el-option",{attrs:{label:"销售订单编号",value:"cgdNo"}}),a("el-option",{attrs:{label:"发货申请单编号",value:"outCode"}}),a("el-option",{attrs:{label:"商品编号",value:"good_code"}}),a("el-option",{attrs:{label:"商品名称",value:"good_name"}}),a("el-option",{attrs:{label:"申请人部门",value:"company_name"}}),a("el-option",{attrs:{label:"申请人",value:"apply_name"}})],1),a("el-button",{attrs:{slot:"append",icon:"el-icon-search"},on:{click:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.handleValue()}},slot:"append"})],1)],1),a("el-col",{staticClass:"fr",staticStyle:{width:"66px"},attrs:{span:4}},[a("el-button",{staticClass:"fr",attrs:{type:"warning",size:e.searchSize},on:{click:e.restSearch}},[e._v(" 重置 ")])],1)],1)],1)]}},{key:"status",fn:function(t){var r=t.scope;return[a("el-tag",{attrs:{size:e.tablebtnSize,type:"0"==r.row.status?"warning":""},domProps:{textContent:e._s((e.statusOptions.find((function(e){return e.id==r.row.status}))||{}).label||"--")}})]}},{key:"order_type",fn:function(t){var r=t.scope;return[a("el-tag",{attrs:{size:e.tablebtnSize},domProps:{textContent:e._s((e.xs_order_type_options.find((function(e){return e.id==r.row.order_type}))||{}).label||"--")}})]}},{key:"operation",fn:function(t){var r=t.scope;return[a("el-tooltip",{attrs:{effect:"dark",content:"详情",placement:"top"}},[a("i",{staticClass:"el-icon-view tb-icon",on:{click:function(t){return e.getRouter("/sellOutOrder/sDetail",r.row.outCode)}}})])]}}])})],1)}),[],!1,null,"4036ab58",null);t.default=n.exports},"6fc8":function(e,t,a){"use strict";a("4d7e")},"714b":function(e,t,a){"use strict";a("95b9")},"753f":function(e,t,a){"use strict";a.r(t);var r=a("1da1"),n=(a("96cf"),{name:"brand",props:["showModel","index","sitem"],mixins:[a("9f53").a],data:function(){function e(e,t,a){e.required&&""===t?a(new Error("不能为空!")):a()}return{loading:!1,title:"",showModelThis:this.showModel,ruleForm:{},rulesThis:this.rules,rules:{min_num:[{required:!0,validator:function(e,t,a){""===t?a(new Error("起订量不能为空!")):"0"===t?a(new Error("起订量不能为零!")):a()},trigger:"blur"}],nake_price:[{required:!0,validator:e,trigger:"blur"}],cert_fee:[{required:!0,validator:e,trigger:"blur"}],package_fee:[{required:!0,validator:e,trigger:"blur"}],cost_fee:[{required:!0,validator:e,trigger:"blur"}],mark_fee:[{required:!0,validator:e,trigger:"blur"}],nake_fee:[{required:!0,validator:e,trigger:"blur"}],delivery_fee:[{required:!0,validator:e,trigger:"blur"}]}}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis:function(e){e||this.$emit("cancel")}},methods:{initForm:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,e.index+""=="-1"?e.title="添加成本阶梯":e.title="修改成本阶梯",e.rulesThis=e.rules,t.next=6,e.resetForm();case 6:e.loading=!1;case 7:case"end":return t.stop()}}),t)})))()},resetForm:function(){var e=this;return Object(r.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(r.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.$refs.ruleForm)return e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),t.next=5,e.resetFormData();t.next=5;break;case 5:case"end":return t.stop()}}),t)}))));case 2:case"end":return t.stop()}}),t)})))()},resetFormData:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){var a,r,n,i,s,o,l,c,u;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.index+""=="-1"?e.ruleForm={id:"",index:"-1",min_num:"0",nake_fee:"0",cost_fee:"0",delivery_fee:"0",cert_fee:"0",mark_fee:"0",package_fee:"0",other_fee:"0"}:(u=e.sitem,a=u.id,r=u.min_num,n=u.nake_fee,i=u.cost_fee,s=u.delivery_fee,o=u.cert_fee,l=u.mark_fee,c=u.package_fee,u=u.other_fee,e.ruleForm={id:a||"",index:e.index,min_num:r||"0",cost_fee:i||"0",nake_fee:n||"0",delivery_fee:s||"0",cert_fee:o||"0",mark_fee:l||"0",package_fee:c||"0",other_fee:u||"0"});case 1:case"end":return t.stop()}}),t)})))()},number_change:function(e,t){this.ruleForm[t]=e+""||"0",this.$refs.ruleForm.validateField(t)},submitForm:function(){var e=this;return Object(r.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(r.a)(regeneratorRuntime.mark((function t(a){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!a){t.next=5;break}e.showModelThis=!1,e.$emit("refresh",e.ruleForm),t.next=7;break;case 5:return t.abrupt("return",!1);case 7:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()}}});a("af66"),a=a("2877"),a=Object(a.a)(n,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:e.title,center:!0,align:"left",top:"18vh",width:"700px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)"},on:{"update:visible":function(t){e.showModelThis=t},close:function(t){e.showModelThis=!1}}},[t("el-card",{staticStyle:{margin:"-20px 0 0 0"}},[t("el-row",{attrs:{gutter:10}},[t("el-col",{attrs:{span:24}},[t("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",size:"small",rules:e.rulesThis,"label-width":"80px"}},[t("el-row",[t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"起订量",prop:"min_num"}},[t("digital-input",{attrs:{values:e.ruleForm.min_num,placeholder:"起订量",min:0,disabled:!1,max:1e11,position:"right",precision:0,size:"mini",controls:!1,append:""},on:{reschange:function(t){return e.number_change(t,"min_num")}}})],1)],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"成本单价",prop:"nake_fee"}},[t("digital-input",{attrs:{values:e.ruleForm.nake_fee,placeholder:"成本单价",min:0,disabled:!1,max:1e11,position:"right",precision:2,size:"mini",controls:!1,append:"元"},on:{reschange:function(t){return e.number_change(t,"nake_fee")}}})],1)],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"工艺费",prop:"cost_fee"}},[t("digital-input",{attrs:{values:e.ruleForm.cost_fee,placeholder:"工艺费",min:0,disabled:!1,max:1e11,position:"right",precision:2,size:"mini",controls:!1,append:"元"},on:{reschange:function(t){return e.number_change(t,"cost_fee")}}})],1)],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"物流费",prop:"delivery_fee"}},[t("digital-input",{attrs:{values:e.ruleForm.delivery_fee,placeholder:"物流费",min:0,disabled:!1,max:1e11,position:"right",precision:2,size:"mini",controls:!1,append:"元"},on:{reschange:function(t){return e.number_change(t,"delivery_fee")}}})],1)],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"证书费",prop:"cert_fee"}},[t("digital-input",{attrs:{values:e.ruleForm.cert_fee,placeholder:"证书费",min:0,disabled:!1,max:1e11,position:"right",precision:2,size:"mini",controls:!1,append:"元"},on:{reschange:function(t){return e.number_change(t,"cert_fee")}}})],1)],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"加标费",prop:"mark_fee"}},[t("digital-input",{attrs:{values:e.ruleForm.mark_fee,placeholder:"加标费",min:0,disabled:!1,max:1e11,position:"right",precision:2,size:"mini",controls:!1,append:"元"},on:{reschange:function(t){return e.number_change(t,"mark_fee")}}})],1)],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"包装费",prop:"package_fee"}},[t("digital-input",{attrs:{values:e.ruleForm.package_fee,placeholder:"包装费",min:0,disabled:!1,max:1e11,position:"right",precision:2,size:"mini",controls:!1,append:"元"},on:{reschange:function(t){return e.number_change(t,"package_fee")}}})],1)],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"其他费用",prop:"other_fee"}},[t("digital-input",{attrs:{values:e.ruleForm.other_fee,placeholder:"其他费用",min:0,disabled:!1,max:1e11,position:"right",precision:2,size:"mini",controls:!1,append:"元"},on:{reschange:function(t){return e.number_change(t,"other_fee")}}})],1)],1),t("el-col",{staticStyle:{"text-align":"right"},attrs:{span:24}},[t("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.submitForm}},[e._v("保 存 ")]),t("el-button",{attrs:{size:"small"},on:{click:function(t){e.showModelThis=!1}}},[e._v(e._s("取 消"))])],1)],1)],1)],1)],1)],1)],1)}),[],!1,null,"58411e1d",null);t.default=a.exports},"77e8":function(e,t,a){},"77f8":function(e,t,a){"use strict";var r=a("1b69"),n="abutment/";t.a={list:function(e,t){return Object(r.a)(n+"crontabList",e,"post",t)},detail:function(e,t){return Object(r.a)(n+"consultZxInfo",e,"post",t)},good_list:function(e,t){return Object(r.a)(n+"consultBidList",e,"post",t)},golpricelast:function(e,t){return Object(r.a)(n+"goldPriceLastList",e,"post",t)},good_detail:function(e,t){return Object(r.a)(n+"consultFeadInfo",e,"post",t)},good_add:function(e,t){return Object(r.a)(n+"consultFeadback",e,"post",t)},good_update:function(e,t){return Object(r.a)(n+"consultFeadEdit",e,"post",t)}}},"7a70":function(e,t,a){},"7e10":function(e,t,a){"use strict";a.r(t);var r=[function(){var e=this.$createElement;e=this._self._c||e;return e("div",{staticClass:"dingLoading"},[e("img",{attrs:{src:a("f8b2"),alt:""}})])}],n={name:"loadingPage",data:function(){return{}},mounted:function(){}},i=(a("04c0"),a("2877"));i=Object(i.a)(n,(function(){this.$createElement;return this._self._c,this._m(0)}),r,!1,null,"17af7bec",null);t.default=i.exports},"8de0":function(e,t,a){e.exports=a.p+"static/img/bg2.73e83ed1.jpg"},"90a6":function(e,t,a){"use strict";a("0ff4")},9406:function(e,t,a){"use strict";a.r(t);var r={name:"dashboard",data:function(){return{emptyGif:a("8de0")}}},n=(a("60bd"),a("2877"));n=Object(n.a)(r,(function(){var e=this.$createElement;e=this._self._c||e;return e("div",{staticClass:"dashboard-container"},[e("img",{staticClass:"bg-img",attrs:{src:this.emptyGif}})])}),[],!1,null,"25b467a0",null);t.default=n.exports},"95b9":function(e,t,a){},9927:function(e,t,a){"use strict";var r=a("1b69"),n="abutment/";t.a={list:function(e,t){return Object(r.a)(n+"saleOutList",e,"post",t)},saleoutsend:function(e,t){return Object(r.a)(n+"outSend",e,"post",t)},detail:function(e,t){return Object(r.a)(n+"outInfo",e,"post",t)},saleoutbatch:function(e,t){return Object(r.a)(n+"outSendBatchByImport",e,"post",t)}}},"9a50":function(e,t,a){"use strict";a("da3c")},"9ed6":function(e,t,a){"use strict";a.r(t),a("d3b7"),a("b64b");var r=a("9f53"),n=a("61f7"),i=(r={name:"Login",mixins:[r.a],data:function(){return{ver:"",show:!1,loginForm:{mobile:"",password:""},loginRules:{mobile:[{required:!0,trigger:"blur",validator:function(e,t,a){""===t?a(new Error("手机号不能为空!")):Object(n.f)(t)?a():a(new Error("请输入正确的手机号"))}}],password:[{required:!0,trigger:"blur",validator:function(e,t,a){""===t?a(new Error("密码不能为空!")):!Object(n.b)(t)||t.length<6||18<t.length?a(new Error("密码为6-18位数字字母组合!")):Object(n.h)(t)?a(new Error("密码不能为纯数字!")):Object(n.i)(t)?a(new Error("密码不能为纯字母!")):a()}}]},passwordType:"password",capsTooltip:!1,loading:!1,showDialog:!1,redirect:void 0,otherQuery:{}}},watch:{$route:{handler:function(e){e=e.query,e&&(this.redirect=e.redirect,this.otherQuery=this.getOtherQuery(e))},immediate:!0}},mounted:function(){""===this.loginForm.mobile?this.$refs.mobile.focus():""===this.loginForm.password&&this.$refs.password.focus()},methods:{setVisible:function(e){this.show=e},handleClick:function(){this.show=!0},handleSuccess:function(){this.show=!1,this.handleLogin()},checkCapslock:function(e){e=e.key,this.capsTooltip=e&&1===e.length&&"A"<=e&&e<="Z"},showPwd:function(){var e=this;"password"===this.passwordType?this.passwordType="":this.passwordType="password",this.$nextTick((function(){e.$refs.password.focus()}))},handleLogin:function(){var e=this;this.$refs.loginForm.validate((function(t){if(!t)return!1;e.loading=!0,e.$store.dispatch("user/login",e.loginForm).then((function(t){var a=t.code;t=t.message;0===a?e.getMenu():(e.$message.warning(t),e.loading=!1)})).catch((function(t){e.loading=!1}))}))},getMenu:function(){var e=this;this.$store.dispatch("user/getMenuList",this).then((function(t){"success"===t&&window.vm.$router.push({path:e.redirect||("success-dataV"===t?"/bigScreen/datavScr":"/welcome"),query:e.otherQuery}),e.loading=!1})).catch((function(t){e.loading=!1}))},getOtherQuery:function(e){return Object.keys(e).reduce((function(t,a){return"redirect"!==a&&(t[a]=e[a]),t}),{})}}},a("2017"),a("f96f"),a("2877"));i=Object(i.a)(r,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("div",{staticClass:"login-container"},[t("div",{staticClass:"login-form-main"},[t("img",{attrs:{src:a("a56b"),alt:""}}),e._m(0),t("el-form",{ref:"loginForm",staticClass:"login-form",attrs:{model:e.loginForm,rules:e.loginRules,autocomplete:"on","label-position":"left"}},[t("div",{staticClass:"title-container"},[t("h3",{staticClass:"title"},[e._v(" 采销平台供应商端"),t("span",[e._v(e._s(e.ver))])])]),t("el-form-item",{attrs:{prop:"mobile"}},[t("span",{staticClass:"svg-container"},[t("i",{staticClass:"el-icon-user"})]),t("el-input",{ref:"mobile",attrs:{placeholder:"手机号",name:"mobile",type:"text",tabindex:"1",maxlength:"11",autocomplete:"on"},model:{value:e.loginForm.mobile,callback:function(t){e.$set(e.loginForm,"mobile",t)},expression:"loginForm.mobile"}})],1),t("el-tooltip",{attrs:{content:"Caps lock is On",placement:"right",manual:""},model:{value:e.capsTooltip,callback:function(t){e.capsTooltip=t},expression:"capsTooltip"}},[t("el-form-item",{attrs:{prop:"password"}},[t("span",{staticClass:"svg-container"},[t("i",{staticClass:"el-icon-unlock"})]),t("el-input",{key:e.passwordType,ref:"password",attrs:{type:e.passwordType,placeholder:"密码",name:"password",tabindex:"2",autocomplete:"on",maxlength:"16"},on:{blur:function(t){e.capsTooltip=!1}},nativeOn:{keyup:[function(t){return e.checkCapslock(t)},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleLogin(t)}]},model:{value:e.loginForm.password,callback:function(t){e.$set(e.loginForm,"password",t)},expression:"loginForm.password"}}),t("span",{staticClass:"show-pwd",on:{click:e.showPwd}},[t("svg-icon",{attrs:{"icon-class":"password"===e.passwordType?"eye":"eye-open"}})],1)],1)],1),t("el-button",{staticStyle:{width:"100%","margin-top":"5px"},attrs:{loading:e.loading,disabled:e.loading,type:"primary"},nativeOn:{click:function(t){return t.preventDefault(),e.handleLogin()}}},[e._v("登 录")]),t("div",{staticStyle:{position:"relative",padding:"12px 0 0 0"}},[t("div",{staticClass:"tips",staticStyle:{float:"left"}},[t("el-popover",{attrs:{placement:"top",title:"初始密码:",width:"200",trigger:"click",content:"请联系管理员"}},[t("i",{staticClass:"el-icon-info",attrs:{slot:"reference"},slot:"reference"})])],1)])],1)],1),e._m(1)])}),[function(){var e=this.$createElement;e=this._self._c||e;return e("div",{staticClass:"main-title"},[e("h1",[this._v("欢迎登录")]),e("h3",[this._v("采销平台供应商端")])])},function(){var e=this.$createElement;e=this._self._c||e;return e("div",{staticClass:"beian"},[e("span",[this._v("万宇恒通")]),e("a",{attrs:{target:"_blank",href:"https://beian.miit.gov.cn/"}},[this._v("京ICP备2020033956号-1")]),e("span")])}],!1,null,"11bd2356",null);t.default=i.exports},a36b:function(e,t,a){e.exports=a.p+"static/img/404.a57b6f31.png"},a463:function(e,t,a){"use strict";function r(e,t,a){e.required&&""===t?a(new Error("不能为空!")):a()}function n(e,t,a){(e=e.required)&&""===t?a(new Error("不能为空!")):!e||"0"!==t&&"0."!==t&&"0.0"!==t&&"0.00"!==t&&"0.000"!==t?a():a(new Error("不能为零!"))}function i(e,t,a){e.required&&0==t.length?a(new Error("不能为空!")):Object(s.g)(t)?a(new Error("不能使用英文特殊字符!")):a()}a.d(t,"b",(function(){return o})),a.d(t,"c",(function(){return l})),a.d(t,"d",(function(){return c})),a.d(t,"e",(function(){return u})),a.d(t,"f",(function(){return d})),a.d(t,"g",(function(){return p})),a.d(t,"h",(function(){return m})),a.d(t,"i",(function(){return f})),a.d(t,"j",(function(){return g})),a.d(t,"a",(function(){return h})),a.d(t,"k",(function(){return b})),a.d(t,"l",(function(){return _}));var s=a("61f7"),o=[{id:"0",name:"否"},{id:"1",name:"是"}],l=[{id:"0",name:"非泰康"},{id:"1",name:"泰康"}],c=[{id:"0",name:"无销售权限"},{id:"1",name:"有销售权限"}],u=[{id:"0",name:"系统商品"},{id:"1",name:"库存品"}],d=[{id:"0",name:"否"},{id:"1",name:"是"}],p=[{id:"1",name:"全国"},{id:"2",name:"全国除偏远"}],m=[{id:"0",name:"否"},{id:"1",name:"是"}],f=[{id:"0",name:"无工差"},{id:"1",name:"有工差"}],g=["证书","包装盒","绒布袋","标签","其他"],_=[{code:"0",name:"新建待审核",type:""},{code:"1",name:"审核通过",type:"success"},{code:"2",name:"基础修改待审核",type:""},{code:"3",name:"成本修改待审核",type:""},{code:"4",name:"基础修改驳回",type:"danger"},{code:"5",name:"成本修改驳回",type:"danger"},{code:"6",name:"新建审核驳回",type:"danger"},{code:"7",name:"复制商品待编辑",type:"info"},{code:"8",name:"竞价商品待编辑",type:"info"}],h=[{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:"140px",_slot_:"operation"}],b={cat_id:[{type:"array",required:!0,message:"请选择商品分类",trigger:"change"}],brandid:[{type:"array",required:!0,message:"请选择商品品牌",trigger:"change"}],noble_weight:[{required:!0,validator:n,trigger:"blur"}],weight:[{required:!0,validator:r,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,validator:function(e,t,a){e.required&&0==t.length?a(new Error("不能为空!")):Object(s.a)(t)?a(new Error("不能出现回车/换行符!")):Object(s.g)(t)?a(new Error("不能使用英文特殊字符!")):a()},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:r,trigger:"blur"}],stock_moq:[{required:!0,validator:n,trigger:"blur"}],customized:[{required:!0,validator:r,trigger:"blur"}],after_sales:[{required:!0,message:"售后说明不能为空",trigger:"blur"},{required:!0,validator:i,trigger:"blur"}],good_remark:[{required:!0,message:"商品备注不能为空",trigger:"blur"},{required:!0,validator:i,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,a){e=e.required,e&&0==t.length?a(new Error("请上传商品主图!")):e&&(t.length<3||10<t.length)?a(new Error("商品主图应为3~10张!")):a()},trigger:"change"}],good_info_img:[{type:"array",required:!0,message:"至少上传一张商品详情介绍图",trigger:"change"}],demo_fee:[{required:!0,validator:r,trigger:"blur"}],is_diff:[{required:!0,message:"请选择有无工差",trigger:"change"}],config:[{required:!0,type:"array",message:"请选择配置要求",trigger:"change"}],other_config:[{required:!0,message:"其他要求不能为空",trigger:"blur"}],open_fee:[{required:!0,validator:r,trigger:"blur"}],sample_fee:[{required:!0,validator:r,trigger:"blur"}],market_price:[{required:!0,validator:r,trigger:"blur"}],cgd_gold_price:[{required:!0,validator:r,trigger:"blur"}],craft_desc:[{required:!1,validator:i,trigger:"blur"}]}},a56b:function(e,t,a){e.exports=a.p+"static/img/loginlan.1ecbd4ab.png"},a810:function(e,t,a){},a84a:function(e,t,a){},a984:function(e,t,a){"use strict";a.r(t);var r=a("1da1"),n=a("5530"),i=(a("96cf"),a("d3b7"),a("159b"),a("ac1f"),a("5319"),a("07ac"),a("1276"),a("e9c4"),a("9927")),s=a("9f53"),o=[{type:"index",label:"序号",width:"70px"},{prop:"value25",label:"发货申请单号",width:"156px"},{prop:"value5",label:"订单编号",width:"156px"},{prop:"value8",label:"产品名称","min-width":"180px"},{prop:"value9",label:"规格","min-width":"180px"},{prop:"value10",label:"单位",width:"45px"},{prop:"value20",label:"发货数量",width:"100px"},{prop:"value21",label:"收货人",width:"70px"},{prop:"value22",label:"联系方式",width:"110px"},{prop:"value23",label:"收货地址",width:"150px"},{prop:"value26",label:"平台订单号",width:"150px"},{prop:"value27",label:"发货申请单物流公司",width:"150px"},{prop:"value28",label:"发货申请单物流单号",width:"150px"},{prop:"value29",label:"发货申请单物流费用",width:"140px"},{prop:"value30",label:"发货申请单备注","min-width":"150px"}],l=["序号","创建时间","采购单编号","采购单状态","采购员","确认单号","确认单时间","产品编号","产品名称","规格","单位","供应商名称","供应商编号","裸价","物流费","发货方式","采购单价","确认单备注","采购数量","采购货款","发货数量","收货人","联系方式","收货地址","到货时间","发货申请单号","平台订单号","发货申请单物流公司","发货申请单物流单号","发货申请单物流费用","发货申请单备注","申请人","商品分类"],c=a("61f7"),u=a("2f62");s={mixins:[s.a],name:"orderImport",computed:Object(n.a)(Object(n.a)({},Object(u.b)(["business_companyNo"])),{},{maxNo:function(){return this.business_companyNo}}),watch:{maxNo:function(e,t){this.$message.warning("供应商已发生变化,请重新上传文件!"),this.cancel()}},data:function(){return{code_msg:"物流单号必传,且支持纯数字或字母数字组合(9~20位)!",ruleForm:{order_addr:[]},table:{stripe:!0,border:!0,"max-height":"800px"},tableData:[],pageInfo:{size:15,curr:1,total:0},head:l,loading:!1,columns:o,btnFlag:!1,editBtnFlag:!1}},mounted:function(){},methods:{beforeUpload:function(e){return e.size/1024<500||(this.$message({message:"请不要上传大于500KB的文件.",type:"warning"}),!1)},handleSuccess:function(e){var t=this,a=e.results,r=e.header;if(!this.loading){if(this.loading=!0,0===a.length)return this.$message.error("表格无有效数据!"),void(this.loading=!1);if(this.head.length!==r.length)return this.$message.error("表头与导入模板不匹配!"),void(this.loading=!1);var n=!0;if(this.head.forEach((function(e,t){e!==r[t].replace(/\s*/g,"")&&(n=!1)})),!n)return this.$message.error("表头与导入模板不匹配!"),void(this.loading=!1);this.tableData=[],e=a;try{e.forEach((function(e,a){var r={};Object.values(e).forEach((function(e,t){e=(e=(null!=e?e:"")+"").replace(/\s+/g,""),Object.defineProperty(r,"value".concat(t),{value:28===t?e.replace(/\\|\/|\?|\?|\*|\"|\“|\”|\'|\‘|\’|\,|\;|\?|\<|\>|\{|\}|\[|\]|\[|\]|\:|\:|\.|\^|\$|\!|\~|\`|\|/g,","):e})})),t.tableData.push(r)}))}catch(e){}this.loading=!1}},cancel:function(){this.tableData=[]},validateCode:function(e){e=e.split(",");var t=!0;return e.forEach((function(e){var a=e.length,r=!0;""===e?r=!1:9<=a&&a<=20?r=!!Object(c.h)(e)||!!Object(c.b)(e):t=!1,r||(t=!1)})),t},submit:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){var a,r,n,s,o,l,c;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.loading){t.next=41;break}if(e.loading=!0,0===e.tableData.length)return e.$message.warning("导入数据不能为空"),e.loading=!1,t.abrupt("return");t.next=6;break;case 6:if(r=[],n=a=!0,e.tableData.forEach((function(t,i){""!==t.value25&&""!==t.value27&&""!==t.value28&&""!==t.value29&&""!==t.value30||(a=!1);var s={outCode:t.value25,post_name:t.value27,post_code:t.value28,post_fee:t.value29,remark:t.value30};e.validateCode(t.value28)||(n=!1),r.push(s)})),a){t.next=12;break}return e.$notify.warning({title:"以下单号不能为空!",message:"发货申请单号/发货申请单物流公司/发货申请单物流单号/发货申请单物流费用/发货申请单备注"}),e.loading=!1,t.abrupt("return");case 12:if(n){t.next=16;break}return e.$notify.warning({title:"部分物流单号不符合规则!",message:e.code_msg}),e.loading=!1,t.abrupt("return");case 16:return s={list:JSON.parse(JSON.stringify(r))},t.next=20,i.a.saleoutbatch(s);case 20:return s=t.sent,t.next=23,e.useResHandle(s,!0);case 23:if(c=t.sent,o=c.code,l=c.data,c=c.message,e.loading=!1,0===o)return e.$notify.success({title:"导入成功!",message:""}),e.tableData=[],t.next=33,e.routeReGoto("sellOutOrder",{});t.next=35;break;case 33:t.next=41;break;case 35:if(100<=o&&o<=104)return t.next=38,e.logout();t.next=40;break;case 38:t.next=41;break;case 40:1003==o?e.showal(l,c,""):1005==o||1011==o?e.showal(l,c,"outCode"):e.$message.warning(c);case 41:case"end":return t.stop()}}),t)})))()},showal:function(e,t,a){var r="<ul>";e.forEach((function(e){r+="<li>".concat(""!==a?e[a]:e,"</li>")})),r+="</ul>",this.$notify({title:t,dangerouslyUseHTMLString:!0,message:r})}}},a("509a"),n=a("2877"),u=Object(n.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<e.tableData.length?t("div",{staticClass:"tr",staticStyle:{padding:"10px 0 0 0"}},[t("el-button",{attrs:{size:"mini"},on:{click:e.cancel}},[e._v("取消")]),t("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.submit}},[e._v("提交")])],1):t("div",[t("upload-excel",{attrs:{"on-success":e.handleSuccess,"before-upload":e.beforeUpload}})],1),t("div",[t("el-alert",{attrs:{title:"多物流单号请用逗号','隔开",type:"warning",closable:!1}})],1),t("ex-table",{staticStyle:{margin:"15px 0 0 0"},attrs:{columns:e.columns,table:e.table,data:e.tableData}})],1)}),[],!1,null,"8849a1f2",null);t.default=u.exports},a9ad:function(e,t,a){"use strict";a.r(t);var r=a("1da1"),n=(a("96cf"),a("61f7")),i=a("b86f"),s={name:"Login",mixins:[a("9f53").a],data:function(){var e=this;return{loginForm:{oldPassword:"",newPassword:"",confirmPassword:""},loginRules:{oldPassword:[{required:!0,trigger:"blur",validator:function(e,t,a){""===t?a(new Error("旧密码不能为空!")):!Object(n.b)(t)||t.length<6||18<t.length?a(new Error("旧密码为6-18位数字字母组合!")):Object(n.h)(t)?a(new Error("旧密码不能为纯数字!")):Object(n.i)(t)?a(new Error("旧密码不能为纯字母!")):a()}}],newPassword:[{required:!0,trigger:"blur",validator:function(t,a,r){""===a?r(new Error("新密码不能为空!")):e.loginForm.oldPassword===a?r(new Error("新密码不能与旧密码一致!")):!Object(n.b)(a)||a.length<6||18<a.length?r(new Error("新密码为6-18位数字字母组合!")):Object(n.h)(a)?r(new Error("新密码不能为纯数字!")):Object(n.i)(a)?r(new Error("新密码不能为纯字母!")):r()}}],confirmPassword:[{required:!0,trigger:"blur",validator:function(t,a,r){""===a?r(new Error("确认密码不能为空!")):e.loginForm.newPassword!==a?r(new Error("确认密码与新密码不一致!")):r()}}]},loading:!1,otherQuery:{}}},methods:{handleLogin:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.$refs.loginForm.validate(function(){var t=Object(r.a)(regeneratorRuntime.mark((function t(a){var n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!a){t.next=4;break}e.loading||(e.loading=!0,n={oldpwd:e.loginForm.oldPassword,newpwd:e.loginForm.newPassword},i.a.setpwd(n).then(function(){var t=Object(r.a)(regeneratorRuntime.mark((function t(a){var r,n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.useResHandle(a);case 2:if(n=t.sent,r=n.code,n.data,n=n.message,0===r)return e.loading=!1,e.$message.success(n),t.next=11,e.logout();t.next=11;break;case 11:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())),t.next=6;break;case 4:return t.abrupt("return",!1);case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 1:case"end":return t.stop()}}),t)})))()}}};a("62f7"),a("532f"),a=a("2877"),a=Object(a.a)(s,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("div",{staticClass:"change-password pagePadding"},[t("div",{staticClass:"change"},[t("div",{staticClass:"title"},[e._v(" 设置新登录密码 "),t("el-popover",{attrs:{placement:"top",title:"初始密码:",width:"200",trigger:"click",content:"dingding123"}},[t("i",{staticClass:"el-icon-info",attrs:{slot:"reference"},slot:"reference"})])],1),t("el-form",{ref:"loginForm",staticClass:"login-form",attrs:{model:e.loginForm,rules:e.loginRules,autocomplete:"on","label-position":"right","label-width":"100px"}},[t("el-form-item",{attrs:{prop:"oldPassword",label:"旧密码:"}},[t("el-input",{ref:"oldPassword",attrs:{placeholder:"旧密码",name:"oldPassword",type:"password",tabindex:"1",maxlength:"16",autocomplete:"on"},model:{value:e.loginForm.oldPassword,callback:function(t){e.$set(e.loginForm,"oldPassword",t)},expression:"loginForm.oldPassword"}})],1),t("el-form-item",{attrs:{prop:"newPassword",label:"新密码:"}},[t("el-input",{ref:"newPassword",attrs:{placeholder:"新密码",name:"newPassword",type:"password",maxlength:"16",tabindex:"1",autocomplete:"on"},model:{value:e.loginForm.newPassword,callback:function(t){e.$set(e.loginForm,"newPassword",t)},expression:"loginForm.newPassword"}})],1),t("el-form-item",{attrs:{prop:"confirmPassword",label:"确认密码:"}},[t("el-input",{ref:"confirmPassword",attrs:{placeholder:"确认密码",name:"confirmPassword",type:"password",maxlength:"16",tabindex:"1",autocomplete:"on"},model:{value:e.loginForm.confirmPassword,callback:function(t){e.$set(e.loginForm,"confirmPassword",t)},expression:"loginForm.confirmPassword"}})],1),t("el-button",{staticStyle:{width:"98%",margin:"15px 0 0 5%"},attrs:{loading:e.loading,type:"primary",round:""},nativeOn:{click:function(t){return t.preventDefault(),e.handleLogin(t)}}},[e._v("确认修改")])],1)],1)])}),[],!1,null,"cc20a91e",null);t.default=a.exports},aa1b:function(e,t,a){"use strict";a("2adf")},af66:function(e,t,a){"use strict";a("2fbc")},bb5b:function(e,t,a){"use strict";a.r(t);var r=a("1da1"),n=(a("7db0"),a("d3b7"),a("96cf"),a("d098")),i={name:"brand",props:["showModel","index","sitem"],mixins:[a("9f53").a],data:function(){return{loading:!1,title:"商品规格",sinput:"",showModelThis:this.showModel,specVlist:[],ruleForm:{},rulesThis:this.rules,rules:{spec_id:[{required:!0,message:"规格类型不能为空",trigger:"change"}],spec_value_id:[{required:!0,message:"请选择规格值",trigger:"change"}]}}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis:function(e){e||this.$emit("cancel")}},methods:{initForm:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,e.sinput="",e.resetFormData(),e.rulesThis=e.rules,e.index+""=="-1"?e.title="添加商品规格值":e.title="修改商品规格值",t.next=7,e.resetForm();case 7:e.loading=!1;case 8:case"end":return t.stop()}}),t)})))()},resetForm:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$nextTick((function(){e.$refs.ruleForm&&(e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),e.resetFormData())}));case 2:case"end":return t.stop()}}),t)})))()},resetFormData:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){var a,r,n,i,s,o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(o=e.sitem,a=o.id,r=o.spec_id,n=o.spec_value,i=o.spec_value_id,s=o.spec_value_value,o=o.isMust,e.ruleForm={index:e.index,id:a||"",spec_id:r||"",spec_value:n||"",isMust:o||!1,spec_value_id:i||"",spec_value_value:s||""},r)return t.next=5,e.getlist();t.next=5;break;case 5:case"end":return t.stop()}}),t)})))()},add_spec:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){var a,r,i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(a=e.ruleForm.spec_id)){t.next=19;break}if(e.sinput)return t.next=5,n.a.valueadd({spec_id:a,spec_value:e.sinput});t.next=16;break;case 5:return a=t.sent,t.next=8,e.useResHandle(a);case 8:if(r=t.sent,i=r.code,r.data,0===i)return t.next=14,e.getlist();t.next=14;break;case 14:t.next=17;break;case 16:e.$message.warning("请输入规格值!");case 17:t.next=20;break;case 19:e.$message.warning("请选择规格类型!");case 20:case"end":return t.stop()}}),t)})))()},spec_idsearchChange:function(e){var t=this;return Object(r.a)(regeneratorRuntime.mark((function a(){var r,n;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return r=e.id,n=e.spec_name,t.ruleForm.spec_id=r||"",t.ruleForm.spec_value=n||"",t.$refs.ruleForm.validateField("spec_id"),a.next=6,t.getlist();case 6:case"end":return a.stop()}}),a)})))()},spec_value_id_change:function(e){var t,a;e?(t=(a=this.specVlist.find((function(t){return t.id===e}))).id,a=a.spec_value,this.ruleForm.spec_value_id=t||"",this.ruleForm.spec_value_value=a||""):(this.ruleForm.spec_value_id="",this.ruleForm.spec_value_value=""),this.$refs.ruleForm.validateField("spec_value_id")},getlist:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){var a,r,i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a=e.ruleForm.spec_id)return t.next=4,n.a.valueall({spec_id:a});t.next=13;break;case 4:return a=t.sent,t.next=7,e.useResHandle(a);case 7:i=t.sent,r=i.code,i=i.data,0===r&&(e.specVlist=i),t.next=14;break;case 13:e.specVlist=[];case 14:case"end":return t.stop()}}),t)})))()},submitForm:function(){var e=this;return Object(r.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(r.a)(regeneratorRuntime.mark((function t(a){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!a){t.next=5;break}e.showModelThis=!1,e.$emit("refresh",e.ruleForm),t.next=7;break;case 5:return t.abrupt("return",!1);case 7:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()}}};a("639a"),a=a("2877"),a=Object(a.a)(i,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:e.title,center:!0,align:"left",top:"5vh",width:"1040px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)"},on:{"update:visible":function(t){e.showModelThis=t},close:function(t){e.showModelThis=!1}}},[a("el-card",{staticStyle:{margin:"-20px 0 0 0"}},[a("el-row",{attrs:{gutter:10}},[a("el-col",{attrs:{span:24}},[a("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",size:"small",rules:e.rulesThis,"label-width":"30px"}},[a("el-form-item",{attrs:{label:"规格值",prop:"spec_value_id"}},[0<e.specVlist.length?a("div",{staticStyle:{"max-height":"600px","overflow-y":"scroll"}},[a("el-radio-group",{on:{change:e.spec_value_id_change},model:{value:e.ruleForm.spec_value_id,callback:function(t){e.$set(e.ruleForm,"spec_value_id",t)},expression:"ruleForm.spec_value_id"}},e._l(e.specVlist,(function(t){return a("el-radio",{key:t.id+t.spec_value,attrs:{label:t.id}},[e._v(e._s(t.spec_value))])})),1)],1):a("div",{staticClass:"no-data tc"},[e._v("暂无规格值,请添加!")])]),a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"类型",prop:"spec_id","label-width":"58px"}},[a("search-spec",{attrs:{value:e.ruleForm.spec_id,disabled:e.sitem.isMust,size:"small",isDetail:!1,placeholder:"规格类型"},on:{searchChange:e.spec_idsearchChange}})],1)],1),a("el-col",{staticStyle:{"text-align":"right",padding:"0px 0 0 10px"},attrs:{span:18}},[a("el-input",{staticClass:"fl",staticStyle:{width:"209px"},attrs:{disabled:"edit"==e.id,size:"small",placeholder:"规格值名称,如红色",maxlength:"100"},model:{value:e.sinput,callback:function(t){e.sinput=t},expression:"sinput"}}),a("el-button",{staticClass:"fl",staticStyle:{margin:"0 0 0 10px"},attrs:{icon:"el-icon-plus",size:"small"},on:{click:e.add_spec}},[e._v("新增规格值")]),"edit"!==e.id?a("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.submitForm}},[e._v("保 存 ")]):e._e(),a("el-button",{attrs:{size:"small"},on:{click:function(t){e.showModelThis=!1}}},[e._v(e._s("edit"==e.id?"关 闭":"取 消"))])],1)],1)],1)],1)],1)],1)],1)}),[],!1,null,"2890aba2",null);t.default=a.exports},bda9:function(e,t,a){"use strict";a("ef32")},be28:function(e,t,a){},c379:function(e,t,a){"use strict";a("a84a")},cafe:function(e,t,a){},d098:function(e,t,a){"use strict";var r=a("1b69"),n="abutment/";t.a={add:function(e,t){return Object(r.a)(n+"createGood",e,"post",t)},list:function(e,t){return Object(r.a)(n+"getGoodList",e,"post",t)},valueall:function(e,t){return Object(r.a)(n+"allSpec",e,"post",t)},valueadd:function(e,t){return Object(r.a)(n+"createSpec",e,"post",t)},detail:function(e,t){return Object(r.a)(n+"getGoodDetail",e,"post",t)},update:function(e,t){return Object(r.a)(n+"updateGoodBasicsInfo",e,"post",t)},updateP:function(e,t){return Object(r.a)(n+"updateGoodPriceInfo",e,"post",t)},edit_update:function(e,t){return Object(r.a)(n+"editGoodUp",e,"post",t)},checkIsUpdate:function(e,t){return Object(r.a)(n+"checkIsUpdate",e,"post",t)},copy:function(e,t){return Object(r.a)(n+"goodCopy",e,"post",t)},delete:function(e,t){return Object(r.a)(n+"goodupdelall",e,"post",t)},status:function(e,t){return Object(r.a)(n+"goodexam",e,"post",t)},catinfo:function(e,t){return Object(r.a)(n+"catInfo",e,"post",t)},golpricelast:function(e,t){return Object(r.a)(n+"goldPriceLastList",e,"post",t)},goodupoffline:function(e,t){return Object(r.a)(n+"goodupoffline",e,"post",t)}}},d5c6:function(e,t,a){"use strict";a.r(t);var r=a("1da1"),n=(a("7db0"),a("d3b7"),a("96cf"),a("d098")),i={name:"brand",props:["showModel","index","sitem"],mixins:[a("9f53").a],data:function(){return{loading:!1,title:"商品规格",sinput:"",showModelThis:this.showModel,specVlist:[],ruleForm:{},rulesThis:this.rules,rules:{specid:[{required:!0,message:"规格类型不能为空",trigger:"change"}],spec_value_id:[{required:!0,message:"请选择规格值",trigger:"change"}]}}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis:function(e){e||this.$emit("cancel")}},methods:{initForm:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,e.resetFormData(),e.rulesThis=e.rules,e.index+""=="-1"?e.title="添加商品规格值":e.title="修改商品规格值",t.next=6,e.resetForm();case 6:e.loading=!1;case 7:case"end":return t.stop()}}),t)})))()},resetForm:function(){var e=this;return Object(r.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(r.a)(regeneratorRuntime.mark((function t(){var a,r,n,i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.$refs.ruleForm){t.next=10;break}if(e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),e.index+""!="-1")return e.specVlist=[],i=e.sitem,a=i.specid,r=i.spec_name,n=i.spec_value_id,i=i.spec_value_name,e.ruleForm={index:e.index,specid:a||"",spec_name:r||"",spec_value_id:n||"",spec_value_name:i||""},t.next=9,e.getlist();t.next=10;break;case 9:case 10:case"end":return t.stop()}}),t)}))));case 2:case"end":return t.stop()}}),t)})))()},resetFormData:function(){this.specVlist=[],this.ruleForm={index:"-1",specid:"",spec_name:"",spec_value_id:"",spec_value_name:""}},add_spec:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){var a,r,i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(a=e.ruleForm.specid)){t.next=20;break}if(e.sinput)return t.next=5,n.a.valueadd({spec_id:a,spec_value:e.sinput});t.next=17;break;case 5:return a=t.sent,t.next=8,e.useResHandle(a,!0);case 8:if(r=t.sent,i=r.code,r.data,r.message,0===i)return t.next=15,e.getlist();t.next=15;break;case 15:t.next=18;break;case 17:e.$message.warning("请输入规格值!");case 18:t.next=21;break;case 20:e.$message.warning("请选择规格类型!");case 21:case"end":return t.stop()}}),t)})))()},specidsearchChange:function(e){var t=this;return Object(r.a)(regeneratorRuntime.mark((function a(){var r,n;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return r=e.id,n=e.spec_name,t.ruleForm.specid=r||"",t.ruleForm.spec_name=n||"",t.$refs.ruleForm.validateField("specid"),a.next=6,t.getlist();case 6:case"end":return a.stop()}}),a)})))()},spec_value_id_change:function(e){var t,a;e?(t=(a=this.specVlist.find((function(t){return t.id===e}))).id,a=a.spec_value,this.ruleForm.spec_value_id=t||"",this.ruleForm.spec_value_name=a||""):(this.ruleForm.spec_value_id="",this.ruleForm.spec_value_name=""),this.$refs.ruleForm.validateField("spec_value_id")},getlist:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){var a,r,i,s;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a=e.ruleForm.specid)return t.next=4,n.a.valueall({spec_id:a});t.next=14;break;case 4:return a=t.sent,t.next=7,e.useResHandle(a);case 7:r=t.sent,i=r.code,s=r.data,r.message,e.specVlist=0===i?s:[],t.next=15;break;case 14:e.specVlist=[];case 15:case"end":return t.stop()}}),t)})))()},submitForm:function(){var e=this;return Object(r.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(r.a)(regeneratorRuntime.mark((function t(a){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!a){t.next=6;break}e.showModelThis=!1,e.$emit("refresh",e.ruleForm),t.next=8;break;case 6:return t.abrupt("return",!1);case 8:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()}}};a("5f61"),a=a("2877"),a=Object(a.a)(i,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:e.title,center:!0,align:"left",top:"5vh",width:"1040px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)","append-to-body":""},on:{"update:visible":function(t){e.showModelThis=t},close:function(t){e.showModelThis=!1}}},[a("el-card",{staticStyle:{margin:"-20px 0 0 0"}},[a("el-row",{attrs:{gutter:10}},[a("el-col",{attrs:{span:24}},[a("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",size:"small",rules:e.rulesThis,"label-width":"80px"}},[a("el-form-item",{attrs:{label:"规格类型",prop:"specid"}},[a("search-spec",{attrs:{value:e.ruleForm.specid,disabled:!1,size:"mini",isDetail:!1,placeholder:"规格类型"},on:{searchChange:e.specidsearchChange}})],1),a("el-form-item",{attrs:{label:"规格值",prop:"spec_value_id"}},[0<e.specVlist.length?a("div",[a("el-radio-group",{on:{change:e.spec_value_id_change},model:{value:e.ruleForm.spec_value_id,callback:function(t){e.$set(e.ruleForm,"spec_value_id",t)},expression:"ruleForm.spec_value_id"}},e._l(e.specVlist,(function(t){return a("el-radio",{key:t.id+t.spec_value,attrs:{label:t.id}},[e._v(e._s(t.spec_value))])})),1)],1):a("div",{staticClass:"no-data"},[e._v("暂无规格值,请添加!")])])],1)],1),a("el-col",{staticStyle:{"text-align":"right"},attrs:{span:24}},[a("el-input",{staticClass:"fl",staticStyle:{width:"209px"},attrs:{disabled:"edit"==e.id,size:"small",placeholder:"规格值名称,如红色",maxlength:"50"},model:{value:e.sinput,callback:function(t){e.sinput=t},expression:"sinput"}}),a("el-button",{staticClass:"fl",staticStyle:{margin:"0 0 0 10px"},attrs:{icon:"el-icon-plus",size:"small"},on:{click:e.add_spec}},[e._v("新增规格值")]),"edit"!==e.id?a("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.submitForm}},[e._v("保 存 ")]):e._e(),a("el-button",{attrs:{size:"small"},on:{click:function(t){e.showModelThis=!1}}},[e._v(e._s("edit"==e.id?"关 闭":"取 消"))])],1)],1)],1)],1)}),[],!1,null,"e8e7fe34",null);t.default=a.exports},d635:function(e,t,a){"use strict";a.r(t);var r=a("1da1"),n=(a("96cf"),{name:"active",props:["showModel","left","right","lang"],data:function(){return{loading:!0,title:"商品阶梯价格",showModelThis:this.showModel}},methods:{closeModel:function(e){this.showModelThis=!1},initForm:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.loading=!1;case 1:case"end":return t.stop()}}),t)})))()}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis:function(e){e||this.$emit("cancel")}}});a("bda9"),a=a("2877"),a=Object(a.a)(n,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:e.title,center:!0,align:"left",top:"12vh",width:"1040px","close-on-click-modal":!1,visible:e.showModelThis},on:{close:e.closeModel,"update:visible":function(t){e.showModelThis=t}}},[a("el-card",[a("el-row",{attrs:{gutter:10}},[a("el-col",{attrs:{span:24}},[e.left&&e.left.header&&0<e.left.header.length&&e.right&&e.right.header&&0<e.right.header.length?a("div",[a("div",{staticClass:"list-table clearfix"},[a("div",{staticClass:"left",style:{width:e.lang}},[a("div",{staticClass:"header"},e._l(e.left.header,(function(t,r){return a("div",{key:"lhead"+r,staticClass:"header-item"},[e._v(" "+e._s(t.spec_name)+" ")])})),0),e.left.spec&&0<e.left.spec.length?a("div",{staticClass:"header-body"},e._l(e.left.spec,(function(t,r){return a("div",{key:"lheadrow"+r,staticClass:"header-body-row"},e._l(t,(function(t,r){return a("div",{key:"lheadcol"+r,staticClass:"heder-body-col"},[e._v(" "+e._s(t.spec_value)+" ")])})),0)})),0):e._e()]),a("div",{staticClass:"right",style:{paddingLeft:e.lang}},[a("div",{staticClass:"header"},e._l(e.right.header,(function(t,r){return a("div",{key:"lheadr"+r,staticClass:"header-col clearfix"},[a("div",{staticClass:"header-col-jieti clearfix"},[a("div",{staticClass:"header-col-jieti-title tc clearfix"},[e._v(" 阶梯"+e._s(r+1)+" ")]),a("div",{staticClass:"header-col-jieti-main clearfix"},[a("div",{staticClass:"header-col-item fl tc"},[e._v(e._s(t.num))]),a("div",{staticClass:"header-col-item fl tc"},[e._v(e._s(t.price))])])])])})),0),e.right.spec&&0<e.right.spec.length?a("div",{staticClass:"right-body"},e._l(e.right.spec,(function(t,r){return a("div",{key:"lbodyr"+r,staticClass:"right-body-col"},e._l(t.limit,(function(t,r){return a("div",{key:"lbritem"+r,staticClass:"right-body-col-item clearfix"},[a("div",{staticClass:"right-body-col-item-div fl tc"},[e._v(" "+e._s(t.begin_num)+" ")]),a("div",{staticClass:"right-body-col-item-div fl tc"},[e._v(" "+e._s(t.shop_price)+" ")])])})),0)})),0):e._e()])])]):a("div",{staticClass:"tc"},[a("el-tag",{attrs:{type:"warning"}},[e._v("暂无阶梯价!")])],1)])],1)],1)],1)}),[],!1,null,"a71ad932",null);t.default=a.exports},da3c:function(e,t,a){},e4d4:function(e,t,a){"use strict";a.d(t,"a",(function(){return r})),a.d(t,"c",(function(){return n})),a.d(t,"b",(function(){return i}));var r=[{type:"selection",fixed:"left",_noset_:!0},{prop:"cgdNo",label:"销售订单编号",width:"155px"},{prop:"spuCode",label:"商品成本编号",width:"158px"},{prop:"good_name",label:"商品名称",_slot_:"good_name","min-width":"145px"},{prop:"good_price",label:"单价",width:"110px"},{prop:"good_num",label:"数量",width:"110px"},{prop:"total_fee",label:"总货款",width:"110px"},{prop:"status",label:"状态",_slot_:"status",width:"120px"},{prop:"order_id",label:"销售订单来源",_slot_:"order_id",width:"110px"},{prop:"lasttime",label:"预计最晚入库时间",width:"145px"},{prop:"addtime",label:"创建时间",width:"145px"},{prop:"",label:"操作",fixed:"right",_noset_:!0,width:"50px",_slot_:"operation"}],n=[{value:"0",label:"待确认"},{value:"1",label:"待入库"},{value:"2",label:"部分入库"},{value:"3",label:"入库完成"},{value:"4",label:"已取消订单"}],i=[{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:"total_fee",label:"采购总成本",span:8},{prop:"good_price",label:"销售订单价",span:8},{prop:"good_num",label:"采购总数量",span:8},{prop:"send_num",label:"已发货数量",span:8},{prop:"wsend_num",label:"未发货数量",span:8},{prop:"addtime",label:"创建时间",span:8},{prop:"addr_info",label:"收货信息",_slot_:"addr_info",span:24}]},e735a:function(e,t,a){"use strict";a.r(t);var r=a("1da1"),n=a("5530"),i=(a("e9c4"),a("96cf"),a("d098")),s=a("9f53"),o=a("2f62"),l=a("f064");s={name:"goodsCostDetail",mixins:[s.a],components:{baseForm:l.default},computed:Object(n.a)(Object(n.a)({},Object(o.b)(["tablebtnSize","searchSize","size","business_companyNo"])),{},{maxNo:function(){return this.business_companyNo}}),watch:{maxNo:function(e,t){var a=this;this.$notify({title:"供应商已发生变化",dangerouslyUseHTMLString:!0,message:"5秒后,跳转至商品列表页!"}),setTimeout((function(){a.routeReGoto("/goodsCost/index",{})}),5e3)}},data:function(){return{statusList:[],size:"small",activeTabs:"1",activeNames:["0","1"],newTime:"",loading:!1,queryType:"",queryId:"",status:"",sitem:null}},mounted:function(){this.initForm()},methods:{initForm:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){var a,r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e.$route.query,a=r.id,r=r.type,e.queryId=a,e.queryType=r,e.activeTabs="add"===r?"0":"1",e.loading=!0,"add"!==e.queryType){t.next=10;break}e.sitem={},e.getNewTime(),t.next=12;break;case 10:return t.next=12,e.initData();case 12:e.loading=!1;case 13:case"end":return t.stop()}}),t)})))()},examForm:function(e){var t=this;return Object(r.a)(regeneratorRuntime.mark((function a(){var r;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(t.loading){a.next=6;break}return r="",r="1"===e.state?"1":"0"===t.status?"6":"2"===t.status?"4":"3"===t.status?"5":"",a.next=6,t.setstatus(r,"提交采购部门审核",e.remark);case 6:case"end":return a.stop()}}),a)})))()},setstatus:function(e,t,a){var n=this;return Object(r.a)(regeneratorRuntime.mark((function s(){return regeneratorRuntime.wrap((function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,n.$confirm("确定要".concat(t,"?"),{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(r.a)(regeneratorRuntime.mark((function t(){var r,s;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r={spuCode:n.queryId,status:e,remark:a},t.next=3,i.a.status(r);case 3:return r=t.sent,t.next=6,n.useResHandle(r);case 6:if(s=t.sent,0===s.code)return n.$notify.success({title:"提交成功!",message:""}),t.next=12,n.initForm();t.next=12;break;case 12:case"end":return t.stop()}}),t)})))).catch((function(){}));case 2:case"end":return s.stop()}}),s)})))()},handleClick:function(e){},refresh:function(e){var t=this;return Object(r.a)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.routeReGoto("/goodsCost/index",{});case 2:case"end":return e.stop()}}),e)})))()},initData:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){var a,r,n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,t.next=3,i.a.detail({spuCode:e.queryId});case 3:return a=t.sent,t.next=6,e.useResHandle(a);case 6:a=t.sent,n=a.code,r=a.data,e.loading=!1,0===n&&(e.sitem=JSON.parse(JSON.stringify(r)),n=e.sitem.status,e.status=n,e.getNewTime());case 11:case"end":return t.stop()}}),t)})))()},getNewTime:function(){this.newTime=(new Date).valueOf()}}},a("714b"),l=a("2877"),n=Object(l.a)(s,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("div",{staticClass:"goodsCostDetail"},[t("el-tabs",{model:{value:e.activeTabs,callback:function(t){e.activeTabs=t},expression:"activeTabs"}},["add"===e.queryType?t("el-tab-pane",{attrs:{label:"新建商品成本",name:"0"}},[""!==e.newTime?t("base-form",{attrs:{type:e.queryType,id:e.queryId,newTime:e.newTime,sitem:e.sitem},on:{refresh:e.refresh}}):e._e()],1):e._e(),"add"!==e.queryType?t("el-tab-pane",{attrs:{label:"商品成本详情",name:"1"}},[t("el-collapse",{staticStyle:{margin:"-18px 0 0 0"},model:{value:e.activeNames,callback:function(t){e.activeNames=t},expression:"activeNames"}},[t("el-collapse-item",{attrs:{title:"商品成本详情",name:"0"}},[""!==e.newTime?t("base-form",{attrs:{type:e.queryType,id:e.queryId,newTime:e.newTime,sitem:e.sitem},on:{refresh:e.refresh}}):e._e()],1),"0"!==e.status&&"2"!==e.status&&"3"!==e.status||"view"!==e.queryType?e._e():t("el-collapse-item",{attrs:{title:"采购部门审批",name:"1"}},[t("exam-form",{attrs:{statusList:e.statusList,newTime:e.newTime,disabled:!1,isMust:!1},on:{searchChange:e.examForm}})],1)],1)],1):e._e()],1)],1)}),[],!1,null,"362ccc93",null);t.default=n.exports},e894:function(e,t,a){"use strict";a("44e6")},ebdd:function(e,t,a){"use strict";a("7a70")},ec54:function(e,t,a){"use strict";a.r(t);var r=a("1da1"),n=a("5530"),i=(a("96cf"),a("d3b7"),a("159b"),a("b0c0"),a("f5ed")),s=a("9f53"),o=a("f1d7"),l=a("e4d4"),c=a("0ee5"),u=a("5daa"),d=a("2f62");i={name:"purchaseOrderDetail",mixins:[i.a,s.a],computed:Object(n.a)(Object(n.a)({},Object(d.b)(["business_companyNo"])),{},{maxNo:function(){return this.business_companyNo}}),watch:{maxNo:function(e,t){var a=this;this.$notify({title:"供应商已发生变化",dangerouslyUseHTMLString:!0,message:"5秒后,跳转至销售订单列表页!"}),setTimeout((function(){a.routeReGoto("/purchaseOrder/index",{})}),5e3)}},data:function(){return{statusOptions:l.c,cg_order_type_options:c.a,fileUrl:u.a.baseURL,showColumns:l.b,activeTabs:"1",isMetal:!1,finishStatus:"finish",activeNames:["0","1","2","3","4","5","10"],sitem:null,status:"",newTime:"",loading:!1,queryId:""}},mounted:function(){this.queryId=this.$route.query.id,this.initData()},methods:{getNewTime:function(){this.newTime=(new Date).valueOf()},initData:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){var a,r,n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,t.next=3,o.a.detail({cgdNo:e.queryId});case 3:return a=t.sent,t.next=6,e.useResHandle(a);case 6:a=t.sent,n=a.code,r=a.data,a.message,0===n&&(e.sitem=r,n=e.sitem,r=n.status,n=n.can,e.status=r,n&&0<n.length&&(e.sitem.class_cat="",n.forEach((function(t,a){e.sitem.class_cat+=0===a?t.name:"/"+t.name}))),e.getNewTime()),e.loading=!1;case 12:case"end":return t.stop()}}),t)})))()},statusConfirm:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$confirm("确定已与供应商确认?",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(r.a)(regeneratorRuntime.mark((function t(){var a,r,n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a={cgdNo:[e.sitem.cgdNo],status:"1"},t.next=3,o.a.status(a);case 3:return a=t.sent,t.next=6,e.useResHandle(a);case 6:if(r=t.sent,n=r.code,r.data,r.message,e.loading=!1,0===n)return e.$notify.success({title:"提交成功!",message:""}),t.next=15,e.initData();t.next=15;break;case 15:case"end":return t.stop()}}),t)})))).catch((function(){}));case 2:case"end":return t.stop()}}),t)})))()}}},a("01bd"),s=a("2877"),n=Object(s.a)(i,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("div",{staticClass:"purchaseOrderDetail pagePadding"},[t("el-tabs",{model:{value:e.activeTabs,callback:function(t){e.activeTabs=t},expression:"activeTabs"}},[t("el-tab-pane",{attrs:{label:"业务详情",name:"1"}},[t("el-collapse",{staticStyle:{margin:"-18px 0 0 0"},model:{value:e.activeNames,callback:function(t){e.activeNames=t},expression:"activeNames"}},[t("el-collapse-item",{attrs:{title:"销售订单信息",name:"1"}},[""!==e.newTime?t("show-data-table",{attrs:{newTime:e.newTime,sitem:e.sitem,columns:e.showColumns}},[t("template",{slot:"supplier_name"},[t("span",[e._v(e._s(e.sitem.supplier_name))]),t("el-popover",{attrs:{placement:"top",width:"300",trigger:"hover"}},[t("ul",[t("li",[t("span",[e._v("销售方公司编号:")]),t("span",[e._v(e._s(e.sitem.supplierNo))])])]),t("i",{staticClass:"el-icon-warning-outline fr",attrs:{slot:"reference"},slot:"reference"})])],1),t("template",{slot:"company"},[t("span",[e._v(e._s(e.sitem.company))]),t("el-popover",{attrs:{placement:"top",width:"300",trigger:"hover"}},[t("ul",[t("li",[t("span",[e._v("购买方公司编号:")]),t("span",[e._v(e._s(e.sitem.companyNo))])])]),t("i",{staticClass:"el-icon-warning-outline fr",attrs:{slot:"reference"},slot:"reference"})])],1),t("template",{slot:"status"},[t("el-tag",{attrs:{size:"mini",type:"0"==e.sitem.status?"warning":""},domProps:{textContent:e._s((e.statusOptions.find((function(t){return t.value==e.sitem.status}))||{}).label||"--")}}),"0"===e.sitem.status?t("el-tooltip",{staticClass:"fr",attrs:{effect:"dark",content:"已于供应商确认",placement:"top"}},[t("i",{staticClass:"el-icon-video-play tb-icon",on:{click:function(t){return e.statusConfirm()}}})]):e._e()],1),t("template",{slot:"order_type"},[t("el-tag",{attrs:{size:"mini"},domProps:{textContent:e._s((e.cg_order_type_options.find((function(t){return t.id==e.sitem.order_type}))||{}).label||"--")}}),"1"===e.sitem.order_type?t("el-popover",{attrs:{placement:"top",width:"300",trigger:"hover"}},[t("ul",[t("li",[t("span",[e._v("备库单编号:")]),t("span",[e._v(e._s(e.sitem.bkcode))])])]),t("i",{staticClass:"el-icon-warning-outline fr",attrs:{slot:"reference"},slot:"reference"})]):e._e(),"1"!==e.sitem.order_type?t("el-popover",{attrs:{placement:"top",width:"300",trigger:"hover"}},[t("ul",[t("li",[t("span",[e._v("订单编号:")]),t("span",[e._v(e._s(e.sitem.orderCode))])])]),t("i",{staticClass:"el-icon-warning-outline fr",attrs:{slot:"reference"},slot:"reference"})]):e._e()],1),t("template",{slot:"gold_price"},["0"==e.sitem.status&&"6"==e.sitem.can[0].id&&"1"==e.cost_detailArr.is_gold_price?t("div",[e._v(" "+e._s(e.sitem.gold_price)+" ")]):t("div",[e._v("----")])]),t("template",{slot:"customer"},[t("span",[e._v(e._s(e.sitem.customer.companyName))]),1!=e.sitem.order_type?t("el-popover",{attrs:{placement:"top",width:"300",trigger:"hover"}},[t("ul",[t("li",[t("span",[e._v("客户编号:")]),t("span",[e._v(e._s(e.sitem.customer.companyNo))])])]),t("i",{staticClass:"el-icon-warning-outline fr",attrs:{slot:"reference"},slot:"reference"})]):e._e()],1),t("template",{slot:"addr_info"},[t("el-table",{staticStyle:{width:"100%"},attrs:{data:e.sitem.addr_info,size:"mini",border:"",stripe:""}},[t("el-table-column",{attrs:{prop:"receipt_quantity",label:"发货数量","show-overflow-tooltip":"",width:"150px"}}),t("el-table-column",{attrs:{prop:"contactor",label:"收货人","show-overflow-tooltip":"",width:"100px"}}),t("el-table-column",{attrs:{prop:"mobile",label:"联系电话","show-overflow-tooltip":"",width:"140px"}}),t("el-table-column",{attrs:{prop:"addr_code",label:"收货地址","show-overflow-tooltip":"","min-width":"500px"}})],1)],1)],2):e._e()],1),t("el-collapse-item",{attrs:{title:"商品信息",name:"2"}},[""!==e.newTime?t("show-goods-data-table",{attrs:{newTime:e.newTime,type:e.sitem.order_type,skucode:e.sitem.skuCode,spucode:e.sitem.spuCode,iscgd:!0}}):e._e()],1)],1)],1)],1)],1)}),[],!1,null,"26988a17",null);t.default=n.exports},ef32:function(e,t,a){},ef3c:function(e,t,a){"use strict";a.r(t),a("ac1f"),a("5319");var r={created:function(){var e=this.$route,t=e.params;e=e.query,t=t.path;this.$router.replace({path:"/welcome/dashboard"+t,query:e})},render:function(e){return e()}};a=a("2877"),a=Object(a.a)(r,void 0,void 0,!1,null,null,null);t.default=a.exports},efa6:function(e,t,a){},f064:function(e,t,a){"use strict";a.r(t);var r=a("1da1"),n=a("ade3"),i=a("5530"),s=(a("a434"),a("d3b7"),a("159b"),a("e9c4"),a("25f0"),a("c740"),a("ac1f"),a("1276"),a("a9e3"),a("5319"),a("b0c0"),a("d81d"),a("96cf"),a("d098")),o=a("9f53"),l=a("2f62"),c=a("bb5b"),u=a("753f"),d=a("a463");o={name:"goodsCostAdd",mixins:[o.a],props:["showModel","id","type","sitem","business_companyNo"],components:{baseFormAddEdit:c.default,costFormAddEdit:u.default},computed:Object(i.a)({},Object(l.b)(["tablebtnSize","searchSize","size"])),watch:{newTime:function(e){e&&this.initForm()}},data:function(){var e={spec_tableData:[],cat_id_name:"",brand_name:"",unit_name:"",costshowModel:!1,costmodelIndex:"",costsitem:{},showModel:!1,modelIndex:"",is_noble:!1,size:"small",status:"",rulesThis:this.rules,activeName:"1",loading:!0,supplierName:"",options1:d.b,options2:d.c,options3:d.d,options4:d.e,options5:d.f,options6:d.g,options7:d.h,options8:d.i,options9:d.j,ruleForm:{}};return Object(n.a)(e,"spec_tableData",[]),Object(n.a)(e,"old_spec_tableData",[]),Object(n.a)(e,"ladder_tableData",[]),Object(n.a)(e,"old_ladder_tableData",[]),Object(n.a)(e,"rules",d.k),e},mounted:function(){this.initForm()},methods:{initForm:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,e.resetFormData(),e.rulesThis=e.rules,t.next=5,e.resetForm();case 5:return e.sch_is_noble(),e.good_type_change(),t.next=9,e.get_golpricelast();case 9:e.stock_change(),e.loading=!1;case 11:case"end":return t.stop()}}),t)})))()},number_change:function(e,t){var a=this;return Object(r.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a.ruleForm[t]=e+""||"0",a.$refs.ruleForm.validateField(t),r.next=4,a.get_all_fee();case 4:case"end":return r.stop()}}),r)})))()},openEdit:function(e,t){this.modelIndex=e,this.sitem=t,this.showModel=!0},stock_change:function(){this.rulesThis.stock_moq[0].required="1"===this.ruleForm.is_stock},openCostEdit:function(e,t){this.costmodelIndex=e,this.costsitem=t,this.costshowModel=!0},openDelete:function(e){this.spec_tableData.splice(e,1)},openCostEditDelete:function(e){this.ladder_tableData.splice(e,1)},submitForm:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.sch_is_noble(),e.good_type_change(),t.next=4,e.$refs.ruleForm.validate(function(){var t=Object(r.a)(regeneratorRuntime.mark((function t(a){var r,n,i,o,l,c,u,d,p,m,f;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!a){t.next=94;break}if(e.loading){t.next=92;break}if(e.loading=!0,0===e.spec_tableData.length)return e.$message.warning("请录入商品规格信息!"),e.loading=!1,t.abrupt("return");t.next=7;break;case 7:if(r=!0,e.spec_tableData.forEach((function(e){e.isMust&&!e.spec_value_id&&(r=!1)})),r){t.next=13;break}return e.$message.warning("分类绑定的规格必须填写规格值!"),e.loading=!1,t.abrupt("return");case 13:if(0===e.ladder_tableData.length)return e.$message.warning("请录入阶梯成本!"),e.loading=!1,t.abrupt("return");t.next=17;break;case 17:if(p=e.ruleForm,n=p.noble_weight,i=p.weight,p.good_type,p.moq,p.is_step,o=p.is_gold_price,m=p.stock_moq,p=p.is_stock,l=parseInt(e.ladder_tableData[0].min_num),m=parseInt(m),e.ladder_tableData.forEach((function(e){e=parseInt(e.min_num),l=e<l?e:l})),"1"!==p){t.next=25;break}if(m<l)return e.$message.warning("备库起订量不能低于成本最低起订量!"),e.loading=!1,t.abrupt("return");t.next=25;break;case 25:if(1!==l)return e.$message.warning("请填写起订量为1的成本!"),e.loading=!1,t.abrupt("return");t.next=29;break;case 29:if(!e.is_noble){t.next=34;break}if(1e3*i<1e3*n)return e.$message.warning("贵金属总重量不能大于商品总重量!"),e.loading=!1,t.abrupt("return");t.next=34;break;case 34:if("1"!==o||!e.is_noble){t.next=41;break}if(c=!0,e.ladder_tableData.forEach((function(e){0!=+e.nake_fee&&(c=!1)})),c){t.next=41;break}return e.$message.warning("启用实时金价的贵金属商品不能填写成本单价!"),e.loading=!1,t.abrupt("return");case 41:if((u=JSON.parse(JSON.stringify(e.ruleForm))).cat_id=u.cat_id.toString(),u.brandid=u.brandid.toString(),u.is_auth="1",u.is_gold_price="0",u.is_stock="0",u.is_diff="0",u.delivery_place=u.delivery_place.toString(),u.origin_place=u.origin_place.toString(),u.good_info_img=u.good_info_img.toString(),u.good_img=u.good_img.toString(),u.unit=u.unit.toString(),u.speclist=JSON.parse(JSON.stringify(e.setResData(1))),u.good_ladder=JSON.parse(JSON.stringify(e.setResData(2))),u.config=u.config.toString(),u.is_exclusive=0<u.is_exclusive.length?u.is_exclusive[u.is_exclusive.length-1]:"",d={},delete u.id,"add"===e.type)return delete u.spuCode,t.next=63,s.a.add(u);t.next=66;break;case 63:d=t.sent,t.next=85;break;case 66:if("editBase"===e.type)return p=e.setModel(u,"1"),t.next=70,s.a.update(p);t.next=73;break;case 70:d=t.sent,t.next=85;break;case 73:if("editCoin"===e.type)return m=e.setModel(u,"2"),t.next=77,s.a.updateP(m);t.next=80;break;case 77:d=t.sent,t.next=85;break;case 80:return u.companyNo=u.company_id,delete u.company_id,t.next=84,s.a.edit_update(u);case 84:d=t.sent;case 85:return e.loading=!1,t.next=88,e.useResHandle(d);case 88:f=t.sent,f=f.code,e.loading=!1,0===f&&(f="add"===e.type?"新建成功!":"editBase"===e.type?"基础信息修改成功!":"editCoin"===e.type?"成本信息修改成功!":"商品信息修改成功",e.$notify.success({title:f,message:""}),e.showModelThis=!1,e.$emit("refresh"));case 92:t.next=95;break;case 94:return t.abrupt("return",!1);case 95:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 4:case"end":return t.stop()}}),t)})))()},setResData:function(e){var t=JSON.parse(JSON.stringify(1===e?this.spec_tableData:this.ladder_tableData)),a=JSON.parse(JSON.stringify(1===e?this.old_spec_tableData:this.old_ladder_tableData)),r=[],n=(t.forEach((function(e){""!==e.id&&r.push(e)})),[]),i=[];return a.forEach((function(e,t){var a=null,i=r.findIndex((function(t){return e.id===t.id}));-1===i?(a=JSON.parse(JSON.stringify(e))).is_del="1":a=JSON.parse(JSON.stringify(r[i])),n.push(a)})),t.forEach((function(e){""===e.id&&(e.is_del="0",n.push(e))})),1===e?n.forEach((function(e){e={id:e.id,spec_id:e.spec_id,spec_value_id:e.spec_value_id,is_del:e.is_del||"0"},i.push(e)})):n.forEach((function(e){e={id:e.id,min_num:e.min_num,nake_fee:e.nake_fee,cost_fee:e.cost_fee,delivery_fee:e.delivery_fee,cert_fee:e.cert_fee,mark_fee:e.mark_fee,package_fee:e.package_fee,other_fee:e.other_fee,is_del:e.is_del||"0"},i.push(e)})),i},setladder:function(){var e=JSON.parse(JSON.stringify(this.ladder_tableData)),t=JSON.parse(JSON.stringify(this.old_ladder_tableData)),a=[],r=(e.forEach((function(e){""!==e.id&&a.push(e)})),[]),n=[];return t.forEach((function(e,t){var n=null;-1===a.findIndex((function(t){return e.id===t.id}))?(n=JSON.parse(JSON.stringify(e))).is_del="1":n=JSON.parse(JSON.stringify(b)),r.push(n)})),e.forEach((function(e){""===e.id&&(e.is_del="0",r.push(e))})),r.forEach((function(e){e={id:e.id,min_num:e.min_num,spec_value_id:e.spec_value_id,is_del:e.is_del||"0"},n.push(e)})),n},refreshEdit:function(e){var t=this,a=(e=JSON.parse(JSON.stringify(e)),e.index,e.id),r=e.spec_id,n=(e.isMust,e.spec_value),i=e.spec_value_id,s=e.spec_value_value,o=-1;this.spec_tableData.forEach((function(e,l){e.spec_id===r&&(o=l,t.spec_tableData[l].id=a,t.spec_tableData[l].spec_id=r,t.spec_tableData[l].spec_value=n,t.spec_tableData[l].spec_value_id=i,t.spec_tableData[l].spec_value_value=s)})),-1===o&&this.spec_tableData.push(e),this.showModel=!1},costrefreshEdit:function(e){var t=this;return Object(r.a)(regeneratorRuntime.mark((function a(){var r,n,i,s,o,l,c,u,d,p,m,f,g;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return r=JSON.parse(JSON.stringify(e)),n=r.index,i=r.id,s=r.cost_fee,o=r.delivery_fee,l=r.min_num,c=r.nake_fee,u=r.cert_fee,d=r.mark_fee,p=r.package_fee,m=r.other_fee,f=!0,g=-1,t.ladder_tableData&&0===t.ladder_tableData.length?t.ladder_tableData.push(r):(t.ladder_tableData.forEach((function(e,a){parseInt(l+"")===parseInt(e.min_num+"")&&(f=!1,t.ladder_tableData[a].id=i,t.ladder_tableData[a].min_num=l,t.ladder_tableData[a].cost_fee=s,t.ladder_tableData[a].delivery_fee=o,t.ladder_tableData[a].nake_fee=c,t.ladder_tableData[a].cert_fee=u,t.ladder_tableData[a].mark_fee=d,t.ladder_tableData[a].package_fee=p,t.ladder_tableData[a].other_fee=m)})),f&&(t.ladder_tableData.forEach((function(e,a){a===parseInt(n+"")&&(g=a,t.ladder_tableData[a].id=i,t.ladder_tableData[a].min_num=l,t.ladder_tableData[a].cost_fee=s,t.ladder_tableData[a].delivery_fee=o,t.ladder_tableData[a].nake_fee=c,t.ladder_tableData[a].cert_fee=u,t.ladder_tableData[a].mark_fee=d,t.ladder_tableData[a].package_fee=p,t.ladder_tableData[a].other_fee=m)})),-1===g&&t.ladder_tableData.push(r))),a.next=7,t.get_all_fee();case 7:t.showModel=!1;case 8:case"end":return a.stop()}}),a)})))()},get_golpricelast:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){var a,r,n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a=e.ruleForm.noble_metal)return a={type:a},t.next=5,s.a.golpricelast(a);t.next=14;break;case 5:return a=t.sent,t.next=8,e.useResHandle(a);case 8:n=t.sent,r=n.code,n=n.data,0===r&&n.forEach((function(t){t.type&&(e.ruleForm.noble_price=t.price)})),t.next=15;break;case 14:e.ruleForm.noble_price="0";case 15:case"end":return t.stop()}}),t)})))()},get_all_fee:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.get_golpricelast();case 2:e.ladder_tableData.forEach((function(t,a){e.ladder_tableData[a].nake_total=e.count_fee(t),e.$set(e.ladder_tableData,a,e.ladder_tableData[a])}));case 3:case"end":return t.stop()}}),t)})))()},count_fee:function(e){var t=this.ruleForm,a=t.noble_price,r=t.is_gold_price,n=(t=t.noble_weight,e.nake_fee),i=e.cost_fee,s=e.delivery_fee,o=e.cert_fee,l=e.mark_fee,c=e.package_fee;e=e.other_fee,n=this.add_sum(n,s),s=this.add_sum(c,o),c=this.add_sum(l,e),o=this.add_sum(this.add_sum(n,s),c);return this.is_noble&&"1"===r&&(l=this.add_sum(this.accMul(a,t),this.accMul(t,i)),o=this.add_sum(o,l)),o},add_sum:function(e,t){var a,r;try{r=e.toString().split(".")[1].length}catch(e){r=0}try{a=t.toString().split(".")[1].length}catch(e){a=0}return r=Math.pow(10,Math.max(r,a)),(this.accMul(e,r)+this.accMul(t,r))/r},accMul:function(e,t){var a=0;e=e.toString(),t=t.toString();try{a+=e.split(".")[1].length}catch(e){}try{a+=t.split(".")[1].length}catch(e){}return Number(e.replace(".",""))*Number(t.replace(".",""))/Math.pow(10,a)},dataSort:function(e){return function(t,a){return t[e]-a[e]}},resetFormData:function(){this.spec_tableData=[],this.old_spec_tableData=[],this.ladder_tableData=[],this.old_ladder_tableData=[],this.cat_id_name="",this.is_noble=!1,this.status="",this.brand_name="",this.unit_name="",this.supplierName="",this.ruleForm={id:"",spuCode:"",cat_id:[],brandid:[],noble_weight:"0",weight:"0",good_type:"0",is_stock:"0",company_id:this.business_companyNo||"",is_auth:"1",tax:"",good_name:"",unit:[],is_exclusive:[],noble_metal:"",is_gold_price:"0",moq:"",customized:"",after_sales:"",craft_desc:"",good_remark:"",packing_list:"",packing_way:"",packing_spec:"",packing_weight:"",packing_size:"",good_size:"",good_bar:"",supply_area:"",delivery_place:[],origin_place:[],delivery_day:"0",lead_time:"0",sample_day:"0",good_thumb_img:"",good_img:[],good_info_img:[],demo_fee:"0",open_fee:"0",sample_fee:"0",market_price:"0",cgd_gold_price:"0",noble_price:"0",is_diff:"0",config:[],other_config:"",stock_moq:"0"}},resetForm:function(){var e=this;return Object(r.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(r.a)(regeneratorRuntime.mark((function t(){var a,r,n,i,s,o,l,c,u,d,p,m,f,g,_,h,b,v,w,x,y,k,F,O,C,S,j,R,N,z,$,D,T,E,q,I,V,M,L,J,P,B,U,H,A,G,X,Y,Q,Z,K,W,ee,te,ae,re,ne;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.$refs.ruleForm&&(e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),e.spec_tableData=[],e.old_spec_tableData=[],e.ladder_tableData=[],e.old_ladder_tableData=[],W=e.sitem,a=W.id,r=W.spuCode,n=W.good_name,ne=W.cat_info,i=W.brand_id,s=W.unit,o=W.supplierName,l=W.companyNo,c=W.good_unit,u=W.good_type,d=W.moq,W.is_exclusive,p=W.customized,m=W.tax,f=W.is_auth,W.auth_img,g=W.exclusive,_=W.is_stock,h=W.after_sales,b=W.craft_desc,v=W.good_remark,w=W.weight,x=W.packing_way,y=W.packing_size,k=W.good_size,F=W.packing_spec,O=W.packing_list,C=W.packing_weight,S=W.good_bar,j=W.supply_area,R=W.delivery_place,N=W.origin_place,z=W.delivery_day,$=W.lead_time,D=W.sample_day,T=W.sample_fee,E=W.good_img,q=W.good_thumb_img,I=W.good_info_img,V=W.demo_fee,M=W.open_fee,L=W.noble_metal,J=W.noble_weight,P=W.is_gold_price,B=W.market_price,U=W.cgd_gold_price,H=W.noble_price,A=W.status,G=W.nakelist,X=W.speclist,Y=W.brand_name,Q=W.config,Z=W.is_diff,K=W.other_config,W=W.stock_moq,ee="",te=[],(ne||[]).forEach((function(e,t){ee+=0===t?e.name:"_".concat(e.name),te.push(e.id)})),e.cat_id_name=ee,ae=!1,0<te.length&&te.forEach((function(e){"6"===e&&(ae=!0)})),re=[],g&&0<g.length&&g.forEach((function(e,t){re.push(e.id)})),e.is_noble=ae,(X&&0<X.length?JSON.parse(JSON.stringify(X)):[]).forEach((function(t){t={id:t.id,is_del:t.is_del,spec_id:t.spec_id,spec_value:t.spec_name,spec_value_value:t.spec_value,spec_value_id:t.spec_value_id,spuCode:t.spuCode},e.spec_tableData.push(t)})),e.old_spec_tableData=JSON.parse(JSON.stringify(e.spec_tableData)),ne=G&&0<G.length?JSON.parse(JSON.stringify(G)):[],e.ladder_tableData=ne,e.old_ladder_tableData=JSON.parse(JSON.stringify(e.ladder_tableData)),e.status=A,e.brand_name=Y,e.unit_name=s,e.supplierName=o||"",e.ruleForm={id:a||"",spuCode:r||"",cat_id:te&&0<te.length?[te[te.length-1]]:[],brandid:i?[i]:[],noble_weight:J||"",weight:w||"",good_type:u||"0",is_stock:_||"0",company_id:l||"",is_auth:f||"1",tax:m?m+"%":"",good_name:n||"",unit:c?[c]:[],is_exclusive:re||[],noble_metal:L||"",is_gold_price:P||"0",moq:d||"0",customized:p||"0",after_sales:h||"",craft_desc:b||"",good_remark:v||"",packing_list:O||"",packing_way:x||"",packing_spec:F||"",packing_weight:C||"",packing_size:y||"",good_size:k||"",good_bar:S||"",supply_area:j||"",delivery_place:R?(R||"").split(","):[],origin_place:N?(N||"").split(","):[],delivery_day:z||"",lead_time:$||"",sample_day:D||"",good_thumb_img:q||"",good_img:E&&"[object Array]"!==Object.prototype.toString.call(E)?(E||"").split(","):[],good_info_img:I?("[object Array]"===Object.prototype.toString.call(I)?[]:I||"").split(","):[],demo_fee:V||"",open_fee:M||"",sample_fee:T||"",market_price:B||"",cgd_gold_price:U||"",noble_price:H||"0",is_diff:Z||"0",config:Q?Q.split(","):[],other_config:K||"",stock_moq:W||"0"}),t.next=3,e.set_must_spec();case 3:case"end":return t.stop()}}),t)}))));case 2:case"end":return t.stop()}}),t)})))()},sch_is_noble:function(){for(var e,t=["noble_weight","noble_metal","is_gold_price","is_diff","config","other_config","cgd_gold_price"],a=0;a<t.length;a++)"cgd_gold_price"===t[a]?(e=this.ruleForm.is_gold_price,this.rulesThis[t[a]][0].required=this.is_noble&&"1"===e):this.rulesThis[t[a]][0].required=this.is_noble,this.$refs.ruleForm.validateField(t[a])},setModel:function(e,t){var a=null;return 1===t?(delete(a=JSON.parse(JSON.stringify(e))).demo_fee,delete a.open_fee,delete a.noble_metal,delete a.noble_weight,delete a.is_gold_price,delete a.market_price,delete a.cgd_gold_price,delete a.good_ladder):a={demo_fee:e.demo_fee||"",open_fee:e.open_fee||"",noble_metal:e.noble_metal||"",noble_weight:e.noble_weight||"",is_gold_price:e.is_gold_price||"0",market_price:e.market_price||"",cgd_gold_price:e.cgd_gold_price||"",good_ladder:e.good_ladder||[],spuCode:e.spuCode||""},e},goods_class_change:function(e){var t=this;return Object(r.a)(regeneratorRuntime.mark((function a(){var r,n,i;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return e.code,r=e.pid,n=e.id,e.label,i=e.cat_desc,"6"===r?(t.$message.warning("不允许创建贵金属商品!"),t.ruleForm.cat_id=[],t.ruleForm.after_sales=""):(t.ruleForm.cat_id=n?[n]:[],t.ruleForm.after_sales=i||""),t.is_noble=!1,t.$refs.ruleForm.validateField("cat_id"),t.$refs.ruleForm.validateField("after_sales"),t.sch_is_noble(),a.next=8,t.set_must_spec();case 8:return a.next=10,t.get_all_fee();case 10:case"end":return a.stop()}}),a)})))()},set_must_spec:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){var a,r,n,i,o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e.ruleForm.cat_id,n=1==n.length?n[0]:"",a=e.spec_tableData&&0<e.spec_tableData.length?JSON.parse(JSON.stringify(e.spec_tableData)):[],r=[],n)return t.next=7,s.a.catinfo({id:n});t.next=16;break;case 7:return n=t.sent,t.next=10,e.useResHandle(n);case 10:i=t.sent,o=i.code,i=i.data,0===o&&((o=i.spec)&&0<o.length&&(a&&0<a.length?(a.forEach((function(e){e.isMust=!1})),o.forEach((function(e,t){var r=a.findIndex((function(t){return t.spec_id===e.id}));-1!==r?a[r].isMust=!0:a.push({id:"",index:"1",spec_id:e.id,spec_value:e.spec_name,isMust:!0,spec_value_value:"",spec_value_id:""})}))):o.forEach((function(e,t){e={id:"",index:"1",spec_id:e.id,spec_value:e.spec_name,isMust:!0,spec_value_value:"",spec_value_id:""},a.push(e)}))),a.map((function(e,t){return e.index=t+"",e})),e.spec_tableData=a&&0<a.length?JSON.parse(JSON.stringify(a)):[]),t.next=17;break;case 16:a.forEach((function(e){e.isMust||r.push(e)}));case 17:case"end":return t.stop()}}),t)})))()},is_goold_price_change:function(e){var t=this;return Object(r.a)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.get_all_fee();case 2:case"end":return e.stop()}}),e)})))()},brandidsearchChange:function(e){var t=e.id;e.code,e.label,this.ruleForm.brandid=t?[t]:[],this.$refs.ruleForm.validateField("brandid")},company_idsearchChange:function(e){e.id;var t=e.code;e.label,this.ruleForm.company_id=t||"",this.$refs.ruleForm.validateField("company_id")},taxsearchChange:function(e){this.ruleForm.tax=e,this.$refs.ruleForm.validateField("tax")},exclusiveSearchChange:function(e){this.ruleForm.is_exclusive=e,this.$refs.ruleForm.validateField("is_exclusive")},unitsearchChange:function(e){e.id;var t=e.code;e.label,this.ruleForm.unit=t?[t]:[],this.$refs.ruleForm.validateField("unit")},noble_metalsearchChange:function(e){var t=this;return Object(r.a)(regeneratorRuntime.mark((function a(){var r;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return r=e.id,e.code,e.label,t.ruleForm.noble_metal=r||"",t.$refs.ruleForm.validateField("noble_metal"),a.next=5,t.get_all_fee();case 5:case"end":return a.stop()}}),a)})))()},selectAreaChange:function(e,t){this.ruleForm[t]=e,this.$refs.ruleForm.validateField(t)},closeImg:function(e,t){this.ruleForm[t].splice(e,1),this.$refs.ruleForm.validateField(t)},UploadSuccessEvent:function(e,t){var a=this;return Object(r.a)(regeneratorRuntime.mark((function n(){var i;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if("noToken"===(i=e.url))return n.next=4,a.logout();n.next=6;break;case 4:n.next=15;break;case 6:if("noSupplierNo"===i)return a.$notify({title:"当前供应商参数错误",dangerouslyUseHTMLString:!0,message:"5秒后,请您重新登录!"}),n.next=10,setTimeout(Object(r.a)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a.logout();case 2:case"end":return e.stop()}}),e)}))),5e3);n.next=12;break;case 10:n.next=15;break;case 12:"good_thumb_img"===t?a.ruleForm[t]=i:a.ruleForm[t].length<10&&a.ruleForm[t].push(i),a.$refs.ruleForm.validateField(t),a.$message.success("图片上传成功!");case 15:case"end":return n.stop()}}),n)})))()},good_type_change:function(){for(var e=["moq","customized"],t=0;t<e.length;t++)this.rulesThis[e[t]][0].required="1"===this.ruleForm.good_type,this.$refs.ruleForm.validateField(e[t])},UploadErrorEvent:function(e,t){"break"!==e&&(this.$message.error("图片上传失败!"),this.$refs.ruleForm.validateField(t))},beforeAvatarUpload:function(e){var t=!1;"image/jpg"!==e.type&&"image/png"!==e.type&&"image/jpeg"!==e.type||(t=!0),e=e.size/1024/1024<1;return t||this.$message.error("图片格式不正确!"),e||this.$message.error("图片大小不能超过 1MB!"),t&&e}}},a("2023c"),c=a("2877"),u=Object(c.a)(o,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"ruleForm",attrs:{model:e.ruleForm,"status-icon":"",rules:e.rulesThis,size:"mini","label-width":"90px"}},[a("el-row",{staticClass:"ddiv"},[a("el-col",{staticClass:"dtitle",attrs:{span:1}},[a("ul",{staticStyle:{padding:"90px 0 0 0"}},[a("li",[e._v("基")]),a("li",[e._v("础")]),a("li",[e._v("信")]),a("li",[e._v("息")])])]),a("el-col",{staticClass:"dmain",attrs:{span:23}},[a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"商品名称",prop:"good_name"}},[a("el-input",{attrs:{placeholder:"商品名称",maxlength:"100",disabled:"view"===e.type||"editCoin"===e.type},model:{value:e.ruleForm.good_name,callback:function(t){e.$set(e.ruleForm,"good_name",t)},expression:"ruleForm.good_name"}})],1)],1),a("el-col",{attrs:{span:4}},[a("el-form-item",{attrs:{label:"税点",prop:"tax","label-width":"60px"}},[a("search-tax",{attrs:{value:e.ruleForm.tax,disabled:"view"===e.type||"editBase"===e.type||"editCoin"===e.type,size:"mini",isDetail:"add"!==e.type,placeholder:"税点"},on:{searchChange:e.taxsearchChange}})],1)],1),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"商品分类",prop:"cat_id"}},[a("search-sort",{attrs:{value:e.ruleForm.cat_id,placeholder:"商品分类",disabled:"view"===e.type||"editBase"===e.type||"editCoin"===e.type,size:"mini",names:e.cat_id_name,isDetail:"add"!==e.type},on:{searchChange:e.goods_class_change}})],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"业务公司",prop:"company_id"}},[a("search-work-company",{attrs:{value:e.ruleForm.company_id,placeholder:"业务公司",disabled:"view"===e.type||"editBase"===e.type||"editCoin"===e.type,size:"mini",isDetail:"add"!==e.type},on:{searchChange:e.company_idsearchChange}})],1)],1),a("el-col",{attrs:{span:4}},[a("el-form-item",{attrs:{label:"单位",prop:"unit","label-width":"60px"}},[a("search-unit",{attrs:{value:e.ruleForm.unit,disabled:"view"===e.type||"editCoin"===e.type,size:"mini",isDetail:"add"!==e.type,names:e.unit_name,placeholder:"单位"},on:{searchChange:e.unitsearchChange}})],1)],1),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"商品品牌",prop:"brandid"}},[a("search-brand",{attrs:{value:e.ruleForm.brandid,disabled:"view"===e.type||"editCoin"===e.type,size:"mini",isDetail:"add"!==e.type,names:e.brand_name,placeholder:"商品品牌"},on:{searchChange:e.brandidsearchChange}})],1)],1),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"专属类型",prop:"is_exclusive"}},[a("search-exclusive",{staticStyle:{width:"100%"},attrs:{disabled:"view"===e.type||"editCoin"===e.type,isDetail:"add"!==e.type,size:"mini",placeholder:"专属类型",value:e.ruleForm.is_exclusive},on:{selectChange:e.exclusiveSearchChange}})],1)],1),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"商品总重量",prop:"weight","label-width":"95px"}},[a("digital-input",{attrs:{values:e.ruleForm.weight,name:"ruleForm.weight",placeholder:"商品总重量",min:0,disabled:"view"===e.type||"editCoin"===e.type,max:1e11,position:"right",precision:3,size:"mini",controls:!1,append:"g"},on:{reschange:function(t){return e.number_change(t,"weight")}}})],1)],1),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"是否定制",prop:"good_type"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"",disabled:"view"===e.type||"editCoin"===e.type,clearable:"",placeholder:"是否定制"},on:{change:e.good_type_change},model:{value:e.ruleForm.good_type,callback:function(t){e.$set(e.ruleForm,"good_type",t)},expression:"ruleForm.good_type"}},e._l(e.options1,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),a("el-col",{attrs:{span:24}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"售后说明",prop:"after_sales"}},[a("el-input",{attrs:{type:"textarea",rows:4,disabled:"view"===e.type||"editCoin"===e.type,placeholder:"售后说明","show-word-limit":"",maxlength:"250"},model:{value:e.ruleForm.after_sales,callback:function(t){e.$set(e.ruleForm,"after_sales",t)},expression:"ruleForm.after_sales"}})],1)],1),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"商品备注",prop:"good_remark"}},[a("el-input",{attrs:{type:"textarea",rows:4,disabled:"view"===e.type||"editCoin"===e.type,placeholder:"商品备注","show-word-limit":"",maxlength:"250"},model:{value:e.ruleForm.good_remark,callback:function(t){e.$set(e.ruleForm,"good_remark",t)},expression:"ruleForm.good_remark"}})],1)],1),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"工艺说明",prop:"craft_desc"}},[a("el-input",{attrs:{type:"textarea",disabled:"view"===e.type||"editCoin"===e.type,rows:4,placeholder:"工艺说明","show-word-limit":"",maxlength:"250"},model:{value:e.ruleForm.craft_desc,callback:function(t){e.$set(e.ruleForm,"craft_desc",t)},expression:"ruleForm.craft_desc"}})],1)],1)],1)],1),a("el-col",{directives:[{name:"show",rawName:"v-show",value:e.is_noble||"1"===e.ruleForm.good_type,expression:"is_noble || ruleForm.good_type === '1'"}],attrs:{span:24}},[a("el-row",[a("el-col",{directives:[{name:"show",rawName:"v-show",value:"1"===e.ruleForm.good_type,expression:"ruleForm.good_type === '1'"}],attrs:{span:8}},[a("el-form-item",{attrs:{label:"定制起订量",prop:"moq","label-width":"95px"}},[a("digital-input",{attrs:{values:e.ruleForm.moq,placeholder:"定制起订量",name:"ruleForm.moq",min:0,disabled:"view"===e.type||"editCoin"===e.type,max:1e11,position:"right",precision:0,size:"mini",controls:!1,append:""},on:{reschange:function(t){return e.number_change(t,"moq")}}})],1)],1),a("el-col",{directives:[{name:"show",rawName:"v-show",value:"1"===e.ruleForm.good_type,expression:"ruleForm.good_type === '1'"}],attrs:{span:8}},[a("el-form-item",{attrs:{label:"定制工期",prop:"customized"}},[a("digital-input",{attrs:{values:e.ruleForm.customized,placeholder:"定制工期",name:"ruleForm.customized",min:0,disabled:"view"===e.type||"editCoin"===e.type,max:1e11,position:"right",precision:0,size:"mini",controls:!1,append:"天"},on:{reschange:function(t){return e.number_change(t,"customized")}}})],1)],1),a("el-col",{directives:[{name:"show",rawName:"v-show",value:e.is_noble,expression:"is_noble"}],attrs:{span:8}},[a("el-form-item",{attrs:{label:"贵金属重量",prop:"noble_weight","label-width":"95px"}},[a("digital-input",{attrs:{values:e.ruleForm.noble_weight,placeholder:"贵金属重量",name:"ruleForm.noble_weight",min:0,disabled:"view"===e.type||"editBase"===e.type||"editCoin"===e.type,max:1e11,position:"right",precision:3,size:"mini",controls:!1,append:"g"},on:{reschange:function(t){return e.number_change(t,"noble_weight")}}})],1)],1),a("el-col",{directives:[{name:"show",rawName:"v-show",value:e.is_noble,expression:"is_noble"}],attrs:{span:6}},[a("el-form-item",{attrs:{label:"贵金属种类",prop:"noble_metal","label-width":"95px"}},[a("search-metal-kind",{attrs:{value:e.ruleForm.noble_metal,disabled:"view"===e.type||"editBase"===e.type||"editCoin"===e.type,size:"mini",isDetail:"add"!==e.type,placeholder:"贵金属种类"},on:{searchChange:e.noble_metalsearchChange}})],1)],1),a("el-col",{directives:[{name:"show",rawName:"v-show",value:e.is_noble,expression:"is_noble"}],attrs:{span:10}},[a("el-form-item",{attrs:{label:"配置要求",prop:"config","label-width":"85px"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{multiple:"",disabled:"view"===e.type,placeholder:"配置要求"},model:{value:e.ruleForm.config,callback:function(t){e.$set(e.ruleForm,"config",t)},expression:"ruleForm.config"}},e._l(e.options9,(function(e,t){return a("el-option",{key:e+t,attrs:{label:e,value:e}})})),1)],1)],1),a("el-col",{directives:[{name:"show",rawName:"v-show",value:e.is_noble,expression:"is_noble"}],attrs:{span:8}},[a("el-form-item",{attrs:{label:"其他配置要求",prop:"other_config","label-width":"110px"}},[a("el-input",{attrs:{placeholder:"其他配置要求",maxlength:"100",disabled:"view"===e.type},model:{value:e.ruleForm.other_config,callback:function(t){e.$set(e.ruleForm,"other_config",t)},expression:"ruleForm.other_config"}})],1)],1)],1)],1)],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-row",{staticClass:"ddiv"},[a("el-col",{staticClass:"dtitle",attrs:{span:1}},[a("ul",{staticStyle:{padding:"65px 0 0 0"}},[a("li",[e._v("包")]),a("li",[e._v("装")]),a("li",[e._v("信")]),a("li",[e._v("息")])])]),a("el-col",{staticClass:"dmain",attrs:{span:23}},[a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"包装方式",prop:"packing_way"}},[a("el-input",{attrs:{placeholder:"包装方式",disabled:"view"===e.type||"editCoin"===e.type,maxlength:"250"},model:{value:e.ruleForm.packing_way,callback:function(t){e.$set(e.ruleForm,"packing_way",t)},expression:"ruleForm.packing_way"}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"装箱规格",prop:"packing_spec"}},[a("el-input",{attrs:{placeholder:"装箱规格",disabled:"view"===e.type||"editCoin"===e.type,maxlength:"250"},model:{value:e.ruleForm.packing_spec,callback:function(t){e.$set(e.ruleForm,"packing_spec",t)},expression:"ruleForm.packing_spec"}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"装箱重量",prop:"packing_weight"}},[a("digital-input",{attrs:{values:e.ruleForm.packing_weight,placeholder:"装箱重量",min:0,name:"ruleForm.packing_weight",disabled:"view"===e.type||"editCoin"===e.type,max:1e11,position:"right",precision:3,size:"mini",controls:!1,append:"g"},on:{reschange:function(t){return e.number_change(t,"packing_weight")}}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"装箱尺寸",prop:"packing_size"}},[a("el-input",{attrs:{placeholder:"装箱尺寸",disabled:"view"===e.type||"editCoin"===e.type,maxlength:"250"},model:{value:e.ruleForm.packing_size,callback:function(t){e.$set(e.ruleForm,"packing_size",t)},expression:"ruleForm.packing_size"}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"商品尺寸",prop:"good_size"}},[a("el-input",{attrs:{placeholder:"商品尺寸",disabled:"view"===e.type||"editCoin"===e.type,maxlength:"250"},model:{value:e.ruleForm.good_size,callback:function(t){e.$set(e.ruleForm,"good_size",t)},expression:"ruleForm.good_size"}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"商品条形码",prop:"good_bar"}},[a("el-input",{attrs:{placeholder:"商品条形码",disabled:"view"===e.type||"editCoin"===e.type,type:"number",min:0,max:9999999999999,step:0},model:{value:e.ruleForm.good_bar,callback:function(t){e.$set(e.ruleForm,"good_bar",t)},expression:"ruleForm.good_bar"}})],1)],1),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"包装清单",prop:"packing_list"}},[a("el-input",{attrs:{placeholder:"包装清单",disabled:"view"===e.type||"editCoin"===e.type,maxlength:"250"},model:{value:e.ruleForm.packing_list,callback:function(t){e.$set(e.ruleForm,"packing_list",t)},expression:"ruleForm.packing_list"}})],1)],1)],1)],1)],1)],1),a("el-col",{attrs:{span:12}},[a("el-row",{staticClass:"ddiv ltitle"},[a("el-col",{staticClass:"dtitle",attrs:{span:1}},[a("ul",{staticStyle:{padding:"65px 0 0 0"}},[a("li",[e._v("规")]),a("li",[e._v("格")]),a("li",[e._v("信")]),a("li",[e._v("息")])])]),a("el-col",{staticClass:"dmain",staticStyle:{padding:"20px 0 20px 18px"},attrs:{span:23}},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.spec_tableData,size:"mini",border:"",height:"164px"}},[a("el-table-column",{attrs:{prop:"spec_value",label:"规格类型"}}),a("el-table-column",{attrs:{prop:"spec_value_value",label:"规格值"}}),"add"===e.type||"editBase"===e.type||"edit"===e.type?a("el-table-column",{attrs:{fixed:"right"},scopedSlots:e._u([{key:"header",fn:function(t){return[a("span",[e._v("操作")]),a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"添加规格类型",placement:"top"}},[a("i",{staticClass:"el-icon-circle-plus-outline fr",staticStyle:{"font-size":"18px","margin-top":"2px"},on:{click:function(t){return e.openEdit("-1",{})}}})])]}},{key:"default",fn:function(t){return[a("el-tooltip",{attrs:{effect:"dark",content:"修改",placement:"top"}},[a("i",{staticClass:"el-icon-edit tb-icon",on:{click:function(a){return e.openEdit(t.$index,t.row)}}})]),t.row.isMust?e._e():a("el-tooltip",{attrs:{effect:"dark",content:"删除",placement:"top"}},[a("i",{staticClass:"el-icon-delete tb-icon",on:{click:function(a){return e.openDelete(t.$index)}}})])]}}],null,!1,2145383267)}):e._e()],1),a("base-form-add-edit",{attrs:{index:e.modelIndex,"show-model":e.showModel,sitem:e.sitem},on:{refresh:e.refreshEdit,cancel:function(t){e.showModel=!1}}})],1)],1)],1)],1),a("el-row",{staticClass:"ddiv"},[a("el-col",{staticClass:"dtitle",attrs:{span:1}},[a("ul",{staticStyle:{padding:"20px 0 0 0"}},[a("li",[e._v("发")]),a("li",[e._v("货")]),a("li",[e._v("信")]),a("li",[e._v("息")])])]),a("el-col",{staticClass:"dmain",attrs:{span:23}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"发货地",prop:"delivery_place"}},[a("select-area",{attrs:{placeholder:"发货地",value:e.ruleForm.delivery_place,"is-detail":"add"!==e.id,disabled:"view"===e.type||"editCoin"===e.type,size:"mini"},on:{selectChange:function(t){return e.selectAreaChange(t,"delivery_place")}}})],1)],1),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"供货区域",prop:"supply_area"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"",clearable:"",disabled:"view"===e.type||"editCoin"===e.type,placeholder:"供货区域"},model:{value:e.ruleForm.supply_area,callback:function(t){e.$set(e.ruleForm,"supply_area",t)},expression:"ruleForm.supply_area"}},e._l(e.options6,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"物流时间",prop:"delivery_day"}},[a("digital-input",{attrs:{values:e.ruleForm.delivery_day,placeholder:"物流时间",min:0,name:"ruleForm.delivery_day",disabled:"view"===e.type||"editCoin"===e.type,max:1e11,position:"right",precision:0,size:"mini",controls:!1,append:"天"},on:{reschange:function(t){return e.number_change(t,"delivery_day")}}})],1)],1),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"产地",prop:"origin_place"}},[a("select-area",{attrs:{placeholder:"产地",value:e.ruleForm.origin_place,size:"mini","is-detail":"add"!==e.id,disabled:"view"===e.type||"editCoin"===e.type},on:{selectChange:function(t){return e.selectAreaChange(t,"origin_place")}}})],1)],1),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"供货周期",prop:"lead_time"}},[a("digital-input",{attrs:{values:e.ruleForm.lead_time,placeholder:"物流时间",min:0,name:"ruleForm.lead_time",disabled:"view"===e.type||"editCoin"===e.type,max:1e11,position:"right",precision:0,size:"mini",controls:!1,append:"天"},on:{reschange:function(t){return e.number_change(t,"lead_time")}}})],1)],1),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"调样周期",prop:"sample_day"}},[a("digital-input",{attrs:{values:e.ruleForm.sample_day,placeholder:"调样周期",min:0,name:"ruleForm.sample_day",disabled:"view"===e.type||"editCoin"===e.type,max:1e11,position:"right",precision:0,size:"mini",controls:!1,append:"天"},on:{reschange:function(t){return e.number_change(t,"sample_day")}}})],1)],1)],1)],1)],1),a("el-row",{staticClass:"ddiv"},[a("el-col",{staticClass:"dtitle",attrs:{span:1}},[a("ul",{staticStyle:{padding:"25px 0 0 0"}},[a("li",[e._v("图")]),a("li",[e._v("片")]),a("li",[e._v("信")]),a("li",[e._v("息")])])]),a("el-col",{staticClass:"dmain",attrs:{span:23}},[a("el-row",{staticStyle:{padding:"0 0 20px 0"}},[a("el-col",{attrs:{span:6}},[a("el-form-item",{staticClass:"activity-upload my-label-top",attrs:{label:"商品缩略",prop:"good_thumb_img"}},[a("div",{staticClass:"btnupload",staticStyle:{position:"relative"}},[e.ruleForm.good_thumb_img?a("img",{staticClass:"avatar",attrs:{src:e.ruleForm.good_thumb_img}}):a("i",{staticClass:"el-icon-plus avatar-uploader-icon"}),a("file-upload",{staticClass:"Upload",attrs:{disabled:"view"===e.type||"editCoin"===e.type,accept:".jpg,.png,.jpeg",multiple:!0,uploadcondition:e.beforeAvatarUpload},on:{UploadErrorEvent:function(t){return e.UploadErrorEvent(t,"good_thumb_img")},UploadSuccessEvent:function(t){return e.UploadSuccessEvent(t,"good_thumb_img")}}})],1),a("div",{staticClass:"txt-tips fl"},[a("p",[e._v("尺寸比例:")]),a("p",[e._v("1:1")])])])],1),a("el-col",{attrs:{span:9}},[a("el-form-item",{attrs:{label:"商品主图",prop:"good_img"}},[a("div",{staticClass:"good_info_img_div"},[e.ruleForm.good_img?a("ul",{staticClass:"clear"},[e._l(e.ruleForm.good_img,(function(t,r){return a("li",{directives:[{name:"viewer",rawName:"v-viewer"}],key:t+r,staticClass:"img-show-li"},[a("div",{staticClass:"img-show-li-div"},[a("img",{staticClass:"img-show",attrs:{src:t,alt:""}}),"add"==e.type||"editBase"===e.type||"edit"===e.type?a("i",{staticClass:"el-icon-close",on:{click:function(t){return e.closeImg(r,"good_img")}}}):e._e()])])})),e.ruleForm.good_img.length<11&&("add"==e.type||"editBase"===e.type||"edit"===e.type)?a("li",{staticClass:"img-show-li"},[a("div",{staticClass:"activity-upload"},[a("div",{staticClass:"btnupload",staticStyle:{position:"relative"}},[a("i",{staticClass:"el-icon-plus avatar-uploader-icon"}),a("file-upload",{staticClass:"Upload",attrs:{disabled:"view"===e.type||"editCoin"===e.type,accept:".jpg,.png,.jpeg",multiple:!0,uploadcondition:e.beforeAvatarUpload},on:{UploadErrorEvent:function(t){return e.UploadErrorEvent(t,"good_img")},UploadSuccessEvent:function(t){return e.UploadSuccessEvent(t,"good_img")}}})],1)])]):e._e()],2):e._e()])])],1),a("el-col",{attrs:{span:9}},[a("el-form-item",{attrs:{label:"详情介绍",prop:"good_info_img"}},[a("div",{staticClass:"good_info_img_div"},[e.ruleForm.good_info_img?a("ul",{staticClass:"clear"},[e._l(e.ruleForm.good_info_img,(function(t,r){return a("li",{directives:[{name:"viewer",rawName:"v-viewer"}],key:t+r,staticClass:"img-show-li"},[a("div",{staticClass:"img-show-li-div"},[a("img",{staticClass:"img-show",attrs:{src:t,alt:""}}),"add"==e.type||"editBase"===e.type||"edit"===e.type?a("i",{staticClass:"el-icon-close",on:{click:function(t){return e.closeImg(r,"good_info_img")}}}):e._e()])])})),e.ruleForm.good_info_img.length<11&&("add"==e.type||"editBase"===e.type||"edit"===e.type)?a("li",{staticClass:"img-show-li"},[a("div",{staticClass:"activity-upload"},[a("div",{staticClass:"btnupload",staticStyle:{position:"relative"}},[a("i",{staticClass:"el-icon-plus avatar-uploader-icon"}),a("file-upload",{staticClass:"Upload",attrs:{disabled:"view"===e.type||"editCoin"===e.type,accept:".jpg,.png,.jpeg",multiple:!0,uploadcondition:e.beforeAvatarUpload},on:{UploadErrorEvent:function(t){return e.UploadErrorEvent(t,"good_info_img")},UploadSuccessEvent:function(t){return e.UploadSuccessEvent(t,"good_info_img")}}})],1)])]):e._e()],2):e._e()])])],1),a("el-col",{attrs:{span:24}},[a("div",{staticStyle:{"font-size":"12px",color:"#606266"}},[a("span",{staticStyle:{padding:"0 0 0 20px"}},[e._v("图片大小:小于1M")]),a("span",{staticStyle:{padding:"0 0 0 20px"}},[e._v("图片类型.jpg/png/jpeg")])])])],1)],1)],1),a("el-row",{staticClass:"ddiv"},[a("el-col",{staticClass:"dtitle",attrs:{span:1}},[a("ul",{staticStyle:{padding:"25px 0 0 0"}},[a("li",[e._v("固")]),a("li",[e._v("定")]),a("li",[e._v("与")]),a("li",[e._v("阶")]),a("li",[e._v("梯")]),a("li",[e._v("成")]),a("li",[e._v("本")])])]),a("el-col",{staticClass:"dmain",attrs:{span:23}},[a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"打样费",prop:"demo_fee","label-width":"75px"}},[a("digital-input",{attrs:{values:e.ruleForm.demo_fee,placeholder:"打样费",min:0,name:"ruleForm.demo_fee",disabled:"view"===e.type||"editBase"===e.type,max:1e11,position:"right",precision:2,size:"mini",controls:!1,append:"元"},on:{reschange:function(t){return e.number_change(t,"demo_fee")}}})],1)],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"开模费",prop:"open_fee","label-width":"75px"}},[a("digital-input",{attrs:{values:e.ruleForm.open_fee,placeholder:"开模费",min:0,name:"ruleForm.open_fee",disabled:"view"===e.type||"editBase"===e.type,max:1e11,position:"right",precision:2,size:"mini",controls:!1,append:"元/件"},on:{reschange:function(t){return e.number_change(t,"open_fee")}}})],1)],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"调样费",prop:"sample_fee","label-width":"75px"}},[a("digital-input",{attrs:{values:e.ruleForm.sample_fee,placeholder:"调样费",min:0,name:"ruleForm.sample_fee",disabled:"view"===e.type||"editBase"===e.type,max:1e11,position:"right",precision:2,size:"mini",controls:!1,append:"元"},on:{reschange:function(t){return e.number_change(t,"sample_fee")}}})],1)],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"市场价",prop:"market_price","label-width":"75px"}},[a("digital-input",{attrs:{values:e.ruleForm.market_price,placeholder:"市场价",min:0,name:"ruleForm.market_price",disabled:"view"===e.type||"editBase"===e.type,max:1e11,position:"right",precision:2,size:"mini",controls:!1,append:"元"},on:{reschange:function(t){return e.number_change(t,"market_price")}}})],1)],1),a("el-col",{directives:[{name:"show",rawName:"v-show",value:e.is_noble&&e.ruleForm&&"1"===e.ruleForm.is_gold_price,expression:"is_noble && ruleForm && ruleForm.is_gold_price === '1'"}],attrs:{span:6}},[a("el-form-item",{attrs:{label:"供应商采购金价",prop:"cgd_gold_price","label-width":"130px"}},[a("digital-input",{attrs:{values:e.ruleForm.cgd_gold_price,placeholder:"供应商采购金价",min:0,name:"ruleForm.cgd_gold_price",disabled:"view"===e.type||"editBase"===e.type,max:1e11,position:"right",precision:2,size:"mini",controls:!1,append:"元/g"},on:{reschange:function(t){return e.number_change(t,"cgd_gold_price")}}})],1)],1),a("el-col",{directives:[{name:"show",rawName:"v-show",value:e.is_noble&&e.ruleForm&&"1"===e.ruleForm.is_gold_price,expression:"is_noble && ruleForm && ruleForm.is_gold_price === '1'"}],attrs:{span:6}},[a("el-form-item",{attrs:{label:"当前金价"}},[a("el-input",{attrs:{disabled:"",maxlength:"15",placeholder:"当前金价"},model:{value:e.ruleForm.noble_price,callback:function(t){e.$set(e.ruleForm,"noble_price",t)},expression:"ruleForm.noble_price"}},[a("template",{slot:"append"},[e._v("元/g")])],2)],1)],1),a("el-col",{staticStyle:{"padding-left":"18px"},attrs:{span:24}},[a("el-table",{staticStyle:{width:"100%",margin:"0 0 20px 0"},attrs:{data:e.ladder_tableData,size:"mini",border:"",stripe:""}},[a("el-table-column",{attrs:{prop:"min_num",label:"起订量(>=)"}}),a("el-table-column",{attrs:{prop:"nake_fee",label:"成本单价"}}),a("el-table-column",{attrs:{prop:"cost_fee",label:"工艺费"}}),a("el-table-column",{attrs:{prop:"delivery_fee",label:"物流费"}}),a("el-table-column",{attrs:{prop:"cert_fee",label:"证书费"}}),a("el-table-column",{attrs:{prop:"mark_fee",label:"加标费"}}),a("el-table-column",{attrs:{prop:"package_fee",label:"包装费"}}),a("el-table-column",{attrs:{prop:"other_fee",label:"其他费用"}}),a("el-table-column",{attrs:{prop:"nake_total",label:"成本合计"}}),"add"===e.type||"editCoin"===e.type||"edit"===e.type?a("el-table-column",{attrs:{fixed:"right",width:"80px"},scopedSlots:e._u([{key:"header",fn:function(t){return[a("span",[e._v("操作")]),a("el-tooltip",{attrs:{effect:"dark",content:"添加阶梯",placement:"top"}},[a("i",{staticClass:"el-icon-circle-plus-outline tb-icon fr",on:{click:function(t){return e.openCostEdit(-1,{})}}})])]}},{key:"default",fn:function(t){return[a("el-tooltip",{attrs:{effect:"dark",content:"修改",placement:"top"}},[a("i",{staticClass:"el-icon-edit tb-icon",on:{click:function(a){return e.openCostEdit(t.$index,t.row)}}})]),a("el-tooltip",{attrs:{effect:"dark",content:"删除",placement:"top"}},[a("i",{staticClass:"el-icon-delete tb-icon",on:{click:function(a){return e.openCostEditDelete(t.$index)}}})])]}}],null,!1,2856051856)}):e._e()],1)],1)],1),a("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?a("el-col",{staticStyle:{"text-align":"right",padding:"15px 0 15px 0","border-top":"1px solid #dcdfe6"},attrs:{span:24}},[a("el-button",{attrs:{size:"mini",type:"primary"},on:{click:e.submitForm}},[e._v("保 存 ")])],1):e._e()],1)],1)}),[],!1,null,"19563bdf",null);t.default=u.exports},f15d:function(e,t,a){"use strict";a("a810")},f1d7:function(e,t,a){"use strict";var r=a("1b69"),n="abutment/";t.a={add:function(e,t){return Object(r.a)(n+"add",e,"post",t)},list:function(e,t){return Object(r.a)(n+"getOrderList",e,"post",t)},delete:function(e,t){return Object(r.a)(n+"delete",e,"post",t)},detail:function(e,t){return Object(r.a)(n+"getOrderInfo",e,"post",t)},status:function(e,t){return Object(r.a)(n+"changeOrderStatus",e,"post",t)},addOrderIn:function(e,t){return Object(r.a)(n+"addOrderIn",e,"post",t)},resultlist:function(e,t){return Object(r.a)(n+"resultlist",e,"post",t)},orderincheck:function(e,t){return Object(r.a)(n+"orderincheck",e,"post",t)},orderinreturn:function(e,t){return Object(r.a)(n+"orderinreturn",e,"post",t)},orderinstatus:function(e,t){return Object(r.a)(n+"orderinstatus",e,"post",t)},re_detail:function(e,t){return Object(r.a)(n+"goodzxinfo",e,"post",t)},cost_detail:function(e,t){return Object(r.a)(n+"goodupinfo",e,"post",t)},cove_detail:function(e,t){return Object(r.a)(n+"getGoodZxInfoByNotZixun",e,"post",t)},exportCgdList:function(e,t){return Object(r.a)(n+"exportCgdList",e,"post",t)}}},f538:function(e,t,a){},f5ed:function(e,t,a){"use strict";var r=a("1da1");a("d3b7"),a("3ca3"),a("ddb0"),a("2b3d"),a("9861"),a("96cf"),t.a={methods:{handlePageChange:function(e){var t=this;return Object(r.a)(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return t.parmValue.page=e,t.pageInfo.curr=e,a.next=4,t.searchList();case 4:case"end":return a.stop()}}),a)})))()},handleSizeChange:function(e){var t=this;return Object(r.a)(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return t.parmValue.page=1,t.pageInfo.curr=1,t.pageInfo.size=e,t.parmValue.size=e,a.next=6,t.searchList();case 6:case"end":return a.stop()}}),a)})))()},pageHttpDownload:function(e,t,a,n){var i=this;return Object(r.a)(regeneratorRuntime.mark((function s(){return regeneratorRuntime.wrap((function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,new Promise(function(){var s=Object(r.a)(regeneratorRuntime.mark((function r(s,o){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:axios({method:"post",url:e,responseType:"blob",data:t,headers:{Accept:a}}).then((function(e){e=null!=e?e:{};var t=e.status;e=e.data;200==t?(i.pageDownload(e,a,n),s({code:0})):s({code:-1})})).catch((function(){s({code:-2})}));case 1:case"end":return r.stop()}}),r)})));return function(e,t){return s.apply(this,arguments)}}());case 2:return s.abrupt("return",s.sent);case 3:case"end":return s.stop()}}),s)})))()},pageDownload:function(e,t,a){e=window.URL.createObjectURL(new Blob([e],{type:t})),t=document.createElement("a"),t.style.display="none",t.href=e,t.setAttribute("download",a),document.body.appendChild(t),t.click(),t.remove(),window.URL.revokeObjectURL(e)}}}},f8b2:function(e,t,a){e.exports=a.p+"static/img/loading.190c78aa.gif"},f96f:function(e,t,a){"use strict";a("1df8")},feca:function(e,t,a){var r={"./dashboard/index.vue":"9406","./error-page/404.vue":"1db4","./goodsCost/components/baseForm.vue":"f064","./goodsCost/components/baseFormAddEdit.vue":"bb5b","./goodsCost/components/costFormAddEdit.vue":"753f","./goodsCost/detail.vue":"e735a","./goodsCost/index.vue":"46d1","./loadingPage/index.vue":"7e10","./login/forget-password.vue":"43b9","./login/index.vue":"9ed6","./person-infor/change-password.vue":"a9ad","./person-infor/my-message.vue":"2cc2","./purchaseOrder/detail.vue":"ec54","./purchaseOrder/index.vue":"5f9b","./recovery/index.vue":"1dfc","./recovery/showData.vue":"5fb4","./redirect/index.vue":"ef3c","./sellOutOrder/detail.vue":"18a5","./sellOutOrder/index.vue":"6f15","./sellOutOrder/want-deliver.vue":"2036","./sendOutOrder/index.vue":"a984","./workbench/components/baseForm.vue":"2c5d","./workbench/components/baseFormAddEdit.vue":"d5c6","./workbench/detail.vue":"27ee","./workbench/index.vue":"29e5","./workbench/ladderPrice.vue":"d635"};function n(e){return e=i(e),a(e)}function i(e){if(a.o(r,e))return r[e];throw(e=new Error("Cannot find module '"+e+"'")).code="MODULE_NOT_FOUND",e}n.keys=function(){return Object.keys(r)},n.resolve=i,(e.exports=n).id="feca"}}]);
|