(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-f8cc0b40","chunk-0b024dde","chunk-44401bcc","chunk-b7f101b0","chunk-a4a85b14","chunk-1d0a69b6","chunk-6e922e31","chunk-15caf0ce","chunk-4ff11544","chunk-ee636058"],{"00c8":function(e,t,a){},"00f6":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("159b"),a("b0c0"),a("e9c4"),a("a9e3"),[{prop:"wsm_in_code",label:"入库单编号",span:6},{prop:"status",label:"入库单状态",_slot_:"status",span:6},{prop:"cgdNo",label:"采购单编号",span:6},{prop:"order_type",label:"采购单来源",_slot_:"order_type",span:6},{prop:"company",label:"购买方公司",_slot_:"company"},{prop:"wsm",label:"仓库信息",_slot_:"wsm"},{prop:"post_fee",label:"快递费用",span:4},{prop:"good_price",label:"采购单价",_slot_:"good_price",span:4},{prop:"good_num",label:"采购总数",span:4},{prop:"send_num",label:"入库数量",span:4},{prop:"sendtype",label:"发货方式",_slot_:"sendtype",span:4},{prop:"apply_name",label:"发货人",span:4},{prop:"post_company",label:"快递公司",span:6},{prop:"post_code",label:"快递编号",span:6},{prop:"sendtime",label:"发货时间",span:6},{prop:"addtime",label:"创建时间",span:6}]),o=[{prop:"wsm_in_code",label:"入库单编号",width:"155"},{prop:"cgdNo",label:"采购单编号",width:"155px"},{prop:"status",label:"状态",_slot_:"status",width:"110px"},{prop:"spuCode",label:"商品成本编号",width:"145px"},{prop:"good_name",label:"商品名称",_slot_:"good_name","min-width":"145px"},{prop:"brand_name",label:"品牌",width:"95px"},{prop:"send_num",label:"发货数量",width:"80px"},{prop:"post_fee",label:"物流费用",width:"100px"},{prop:"order_type",label:"备货单",_slot_:"order_type",width:"130px"},{prop:"wsm_supplierNo",label:"仓库公司编号",width:"145px"},{prop:"wsm_supplier",label:"仓库公司名称",width:"155px"},{prop:"wsm_code",label:"仓库编号",width:"172px"},{prop:"wsm_name",label:"仓库名称",width:"80px"},{prop:"company_name",label:"申请人部门",minWidth:"150px"},{prop:"apply_name",label:"申请人",width:"60px"},{prop:"sendtime",label:"发货时间",width:"145px"},{prop:"",label:"操作",fixed:"right",_noset_:!0,width:"50px",_slot_:"operation"}],l=[{value:"0",label:"待发货"},{value:"1",label:"待验货"},{value:"2",label:"待审核"},{value:"3",label:"待入库"},{value:"4",label:"入库完成"},{value:"5",label:"退货待物流"},{value:"6",label:"退货完成"}],c=a("0ee5"),u=a("f5ed"),d=a("9f53"),p=a("e5ab"),m=a("5bbe"),f=a("2f62"),h=a("7b15");u={mixins:[u.a,d.a],computed:Object(i.a)(Object(i.a)({},Object(f.b)(["tablebtnSize","searchSize","size","private_field"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"standingBookDetail"==e.menu_route}))||{};e=(null!==e?e:{}).action;return null!=e?e:[]}}),components:{detailDatatable:h.default},props:["queryId"],data:function(){return Object(n.a)({parmValue:{order_type:"",wsm_in_code:"",cgdNo:"",apply_name:"",good_name:"",good_type_code:"",status:"",wsm_code:"",start:"",end:"",last_start:"",last_end:"",page:1,size:15,supplierNo:"",company_name:"",wsm_supplierNo:""},tableData:[],table:{stripe:!0,border:!0},pageInfo:{size:15,curr:1,total:0},loading:!0,dialogTableVisible:!1,listColumns:o,cg_order_type_options:c.a,statusOptions:l,status:"",columns:s,newTime:"",sitem:null},"loading",!1)},mounted:function(){this.searchList()},methods:{getNewTime:function(){this.newTime=(new Date).valueOf()},initData:function(e){var t=this;return Object(r.a)(regeneratorRuntime.mark((function a(){var r,n,i,s;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,p.a.orderininfo({wsm_in_code:e});case 2:if(!(r=a.sent)||0!==r.code||!r.data){a.next=11;break}t.sitem=r.data,n=t.sitem,i=n.status,s=n.can,n.wsm_in_code,t.status=i,s&&0 table > tbody");i.a.create(t,{disabled:!this.isRowDrop,ghostClass:"sortable-ghost",animation:180,delay:0,onEndevt:function(t){var a=e.data.splice(t.oldIndex,1)[0];e.data.splice(t.newIndex,0,a)}})},columnDrop:function(){var e=this,t=document.querySelector(".el-table__header-wrapper tr");i.a.create(t,{disabled:!this.isColDrop,ghostClass:"sortable-ghost",animation:180,delay:0,onEnd:function(t){var a=e.columns.splice(t.oldIndex,1)[0];e.columns.splice(t.newIndex,0,a)}})},getObjPrototype:function(e,t){return new Function("obj","return obj.".concat(t))(e)},doLayout:function(){var e;(e=this.$refs.elTable).doLayout.apply(e,arguments)},clearSelection:function(){var e;(e=this.$refs.elTable).clearSelection.apply(e,arguments)},toggleRowSelection:function(){var e;(e=this.$refs.elTable).toggleRowSelection.apply(e,arguments)},toggleAllSelection:function(){var e;(e=this.$refs.elTable).toggleAllSelection.apply(e,arguments)},setCurrentRow:function(){var e;(e=this.$refs.elTable).setCurrentRow.apply(e,arguments)},toggleRowExpansion:function(){var e;(e=this.$refs.elTable).toggleRowExpansion.apply(e,arguments)}}),r=n,a("1133"),a("2e52"),n=a("2877"),a=Object(n.a)(r,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("div",{staticClass:"table-header"},[e._l(e.table._defaultHeader_,(function(t,r){return["setcol"==t?a("el-dropdown",{key:r,staticClass:"setcol-table-lie",attrs:{placement:"bottom-end",trigger:"click","hide-on-click":!1}},[a("el-button",{attrs:{size:"small"}},[e._v("列设置")]),a("el-dropdown-menu",{class:"ex-table-setcol-dropdown",attrs:{slot:"dropdown"},slot:"dropdown"},[e._l(e.setColumns,(function(t,r){return[t._noset_?e._e():a("el-dropdown-item",{key:"setColumns"+r},[a("el-switch",{attrs:{"active-text":t.label,"active-value":!1,"inactive-value":!0},model:{value:t._hidden_,callback:function(a){e.$set(t,"_hidden_",a)},expression:"column._hidden_"}})],1)]}))],2)],1):e._e()]})),e._t("table-header",null,{selection:e.tableSelection,alldata:e.data})],2),a("el-table",e._g(e._b({ref:"elTable",staticStyle:{width:"100%"},attrs:{data:e.data,size:e.size,"span-method":e.arraySpanMethod},on:{"selection-change":function(t){e.tableSelection=t}}},"el-table",e.table,!1),e.$listeners),[e._l(e.columns,(function(t,r){return[t._hidden_||!t.type||t._slot_?t._hidden_?e._e():a("el-table-column",e._b({key:r,attrs:{"show-overflow-tooltip":""},scopedSlots:e._u([{key:"header",fn:function(r){return[a("span",[e._v(e._s(t.label))]),t._screen_?a("span",{on:{click:function(a){return a.stopPropagation(),e.addConditionItemByCol(t,r)}}},[!1===t._screen_tip_?a("i",{staticClass:"el-icon-connection",style:e.isHasScreenColumn(t)?"color:#3888e5;":""}):a("el-tooltip",{attrs:{effect:t._screen_tip_effect_||"dark",content:t._screen_tip_||"筛选",placement:t._screen_tip_placement_||"top"}},[a("i",{staticClass:"el-icon-connection",style:e.isHasScreenColumn(t)?"color:#3888e5;":""})])],1):e._e()]}},{key:"default",fn:function(r){return t._slot_?e._t(t._slot_,null,{scope:r}):t._render_?[a("ex-slot",{attrs:{column:t,render:t._render_,scope:r}})]:[a("span",[e._v(e._s(t._format_?t._format_(r.row):e.getObjPrototype(r.row,t.prop)))])]}}],null,!0)},"el-table-column",t,!1)):a("el-table-column",e._b({key:r,attrs:{align:"center",width:"45px"}},"el-table-column",t,!1))]}))],2),!1!==e.page&&e.data&&0new Date(e.endTime).valueOf()}},pickerOptions2:{disabledDate:function(t){if(null!=e.startTime&&""!=e.startTime&&t)return t.getTime()new Date(e.endTime).valueOf()}},pickerOptions2:{disabledDate:function(t){if(null!=e.startTime&&""!=e.startTime&&t)return t.getTime()Date.now()-864e5}},addrRules:{platform_code:{required:!0,trigger:"blur",message:"平台订单号不能为空"},sale_source:{required:!0,trigger:"blur",message:"销售渠道不能为空"},mode:{required:!0,trigger:"change",message:"收费模式不能为空"},plat_code:{required:!0,trigger:"blur",message:"平台商品编号不能为空"},num:{required:!0,validator:function(e,t,a){e=e.required,e&&""===t?a(new Error("不能为空!")):!e||"0"!==t&&"0."!==t&&"0.0"!==t&&"0.00"!==t&&"0.000"!==t?a():a(new Error("不能为零!"))},trigger:"blur"},price:{required:!0,validator:function(e,t,a){e.required&&""===t?a(new Error("不能为空!")):a()},trigger:"blur"},contactor:{required:!0,trigger:"blur",message:"联系人不能为空"},mobile:{required:!0,validator:function(e,t,a){""===t?a(new Error("手机号不能为空!")):Object(s.k)(t)?a():a(new Error("手机号格式不正确!"))},trigger:"blur"},addr:{required:!0,message:"联系地址不能为空",trigger:"blur"},order_remark:{required:!0,message:"订单备注不能为空",trigger:"blur"},activity_name:{required:!1},po_code:{required:!1},platform_time:{required:!1}}}},mounted:function(){},methods:{cancel:function(){this.addrForm.order_addr=[]},checkRow:function(e){var t=this;return Object(r.a)(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=3,t.$refs.addrForm.validate(function(){var a=Object(r.a)(regeneratorRuntime.mark((function a(r){return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(!r){a.next=4;break}t.addrForm.order_addr[e].edit=!1,a.next=6;break;case 4:return a.abrupt("return",!1);case 6:case"end":return a.stop()}}),a)})));return function(e){return a.apply(this,arguments)}}());case 3:case"end":return a.stop()}}),a)})))()},number_change:function(e,t,a){var n=this;return Object(r.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:n.addrForm.order_addr[t][a]=e+""||"0",n.addrForm.order_addr[t].newTime=(new Date).valueOf()+"";case 2:case"end":return r.stop()}}),r)})))()},deleteRow:function(e,t){t.splice(e,1)},formatDate:function(e){return e=new Date(e),e.getFullYear()+"-"+(e.getMonth()+1<10?"0"+(e.getMonth()+1):e.getMonth()+1)+"-"+e.getDate()+" "},submit:function(){var e=this;return Object(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.btnFlag)return t.abrupt("return");t.next=3;break;case 3:if(a=e.addrForm.order_addr,(a={list:a}).list.length<=0)return e.$message.warning("导入数据不能为空"),t.abrupt("return");t.next=8;break;case 8:r=[{name:"平台订单号",str:"platform_code"},{name:"销售渠道",str:"sale_source"},{name:"平台商品编号",str:"plat_code"},{name:"单价(元)",str:"price"},{name:"数量",str:"num"},{name:"收费模式",str:"mode"},{name:"订单备注",str:"order_remark"},{name:"收货人",str:"contactor"},{name:"联系电话",str:"mobile"},{name:"联系地址",str:"addr"}],n=!0,i=[];try{a.list.forEach((function(t,a){if(i.push(t.platform_code),!n)throw Error();if(0==t.price||0==t.num)throw e.$message.warning("表格第".concat(a+1,"行,单价,数量的值不能为0")),n=!1,Error();if(isNaN(t.price)||isNaN(t.num)||isNaN(t.before_discount_all_price))throw e.$message.warning("表格第".concat(a+1,"行,单价,数量,总金额必须是数字")),n=!1,Error();if(!Number.isInteger(Number(t.num)))throw e.$message.warning("表格第".concat(a+1,"行,数量必须是整数")),n=!1,Error();for(var s=0;s",o.forEach((function(e){l+="
  • \n \n ").concat(e.good_name,"__");e=e.speclist;var t="";e.forEach((function(e,a){t+="".concat(0!==a?"--":"").concat(e.spec_name,"[").concat(e.spec_value,"]")})),l+=t+"
  • "})),l+="",e.$notify({title:"一下商品已上线或已经在审批流程中!",dangerouslyUseHTMLString:!0,message:l})):1010===i?(c=JSON.parse(JSON.stringify(s)),u="
      ",c.forEach((function(e){u+="
    • \n \n ").concat(e.good_name,"__");e=e.speclist;var t="";e.forEach((function(e,a){t+="".concat(0!==a?"--":"").concat(e.spec_name,"[").concat(e.spec_value,"]")})),u+=t+"
    • "})),u+="
    ",e.$notify({title:"该平台要求商品必须要有一件的成本!",dangerouslyUseHTMLString:!0,message:u})):e.$message.warning(res.message);case 26:t.next=29;break;case 28: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)})))()}}};a("fc5f"),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)"},on:{"update:visible":function(t){e.showModelThis=t},close:function(t){e.showModelThis=!1}}},[a("el-card",{staticStyle:{margin:"-20px 0 0 0","padding-bottom":"0"}},[a("el-row",{attrs:{gutter:10}},[a("el-col",{staticStyle:{padding:"0 0 15px 0"},attrs:{span:24}},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.sitem,stripe:"",size:"mini",border:"","max-height":"380px"}},[a("el-table-column",{attrs:{prop:"spuCode",label:"编号",width:"160","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"good_thumb_img",label:"图片",width:"45","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.good_thumb_img?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()]}}])}),a("el-table-column",{attrs:{prop:"good_name",label:"名称","min-width":"160px","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"cat_name",label:"分类","min-width":"100","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"brand_name",label:"品牌","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"good_type",label:"定制",width:"50","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-tag",{attrs:{size:"mini",type:"1"==t.row.good_type?"":"warning"},domProps:{textContent:e._s((e.options1.find((function(e){return e.id==t.row.status}))||{}).name||"--")}})]}}])}),a("el-table-column",{attrs:{prop:"supplierNo",label:"供应商编号",width:"110","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"supplier_name",label:"供应商名称",width:"110","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"companyNo",label:"业务公司编号",width:"110","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"company",label:"业务公司名称",width:"110","show-overflow-tooltip":""}})],1)],1),a("el-col",{attrs:{span:24}},[a("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",rules:e.rulesThis,"label-width":"80px"}},[a("el-row",{staticStyle:{}},[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"所属平台",prop:"platform"}},[a("search-terrace",{attrs:{value:e.ruleForm.platform,disabled:!1,isDetail:!1,is_show:"1",placeholder:"所属平台"},on:{searchChange:e.platform_codesearchChange}})],1),a("el-form-item",{attrs:{label:"上线原因",prop:"online_reason"}},[a("el-input",{attrs:{disabled:!1,placeholder:"上线原因",maxlength:"200"},model:{value:e.ruleForm.online_reason,callback:function(t){e.$set(e.ruleForm,"online_reason",t)},expression:"ruleForm.online_reason"}})],1)],1),a("el-col",{staticStyle:{"text-align":"right"},attrs:{span:16}},[a("el-form-item",{attrs:{label:"上线备注",prop:"online_remark"}},[a("el-input",{attrs:{type:"textarea",rows:3,disabled:!1,placeholder:"商品备注",maxlength:"2000","show-word-limit":""},model:{value:e.ruleForm.online_remark,callback:function(t){e.$set(e.ruleForm,"online_remark",t)},expression:"ruleForm.online_remark"}})],1),"007"!==e.id?a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.submitForm}},[e._v("保 存 ")]):e._e(),a("el-button",{attrs:{size:"mini"},on:{click:function(t){e.showModelThis=!1}}},[e._v(e._s("007"==e.id?"关 闭":"取 消"))])],1)],1)],1)],1)],1)],1)],1)}),[],!1,null,"3a6c0dd0",null);t.default=a.exports},"15afa":function(e,t,a){"use strict";a.r(t);var r=a("1da1"),n=a("5530"),i=(a("96cf"),a("7db0"),a("d3b7"),a("e9c4"),a("a9e3"),a("d57f")),s=a("f5ed"),o=a("2f62"),l=a("9f53"),c=[{prop:"activity_code",label:"活动编码",fixed:"left",width:"155"},{prop:"activity_name",label:"活动名称"},{prop:"status",label:"状态",width:"105",_slot_:"status"},{prop:"atime",label:"活动时间",_slot_:"atime",width:"270"},{prop:"platform_name",label:"平台名称"},{prop:"company_name",label:"创建人部门",minWidth:"150px"},{prop:"creater",label:"创建人",width:"60"},{prop:"addtime",label:"创建时间",width:"142"},{prop:"",label:"操作",fixed:"right",_noset_:!0,_slot_:"operation",width:"50"}];s={name:"active",mixins:[s.a,l.a],computed:Object(n.a)(Object(n.a)({},Object(o.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"active"==e.menu_route}))||{};e=(null!==e?e:{}).action;return null!=e?e:[]}}),data:function(){return{select:"1",sinput:"",loading:!1,parmValue:{activity_name:"",activity_code:"",status:"",platform_code:"",starttime:"",endtime:"",page:1,size:15,company_id:"",creater:"",company_name:""},statusOptions:[{id:"0",label:"待产品部审核"},{id:"1",label:"待采购定价"},{id:"2",label:"待财务定售价"},{id:"3",label:"待活动价审核"},{id:"4",label:"审核完成"},{id:"5",label:"活动未开始"},{id:"6",label:"活动进行中"},{id:"7",label:"活动已结束"},{id:"8",label:"审核未通过"}],tableData:[],table:{stripe:!0,border:!0,_defaultHeader_:["setcol"]},pageInfo:{size:15,curr:1,total:0},columns:c}},mounted:function(){var e,t=this.$route.query.back;t?(this.parmValue=JSON.parse(t),e=(t=this.parmValue).page,t=t.size,this.pageInfo={size:t,curr:e,total:0},this.select=this.parmValue.select,this.sinput=this.parmValue.sinput):this.select="1",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.pageInfo={size:15,curr:1,total:0},this.parmValue={activity_name:"",activity_code:"",status:"",platform_code:"",starttime:"",endtime:"",page:1,size:15,company_id:"",creater:"",company_name:""},this.searchList()},platform_codesearchChange: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.parmValue.platform_code=r||"",t.pageInfo.curr=1,t.parmValue.page=1,a.next=6,t.searchList();case 6:case"end":return a.stop()}}),a)})))()},company_idsearchChange: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 e.id,r=e.code,e.label,t.parmValue.company_id=r||"",t.pageInfo.curr=1,t.parmValue.page=1,a.next=6,t.searchList();case 6:case"end":return a.stop()}}),a)})))()},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;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:if((s=r.sent)&&0===s.code)return a.loading=!1,a.$notify.success({title:"状态修改成功!",message:""}),r.next=10,a.searchList();r.next=12;break;case 10:r.next=19;break;case 12:if(s&&100<=s.code&&s.code<=104)return r.next=15,a.logout();r.next=17;break;case 15:r.next=19;break;case 17:a.loading=!1,a.$message.warning(s.message);case 19:case"end":return r.stop()}}),r)})))).catch((function(){}));case 2:case"end":return n.stop()}}),n)})))()},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={id:e},a.next=3,i.a.delete(r);case 3:if(!(n=a.sent)||0!==n.code){a.next=9;break}t.$notify.success({title:"删除成功",message:""}),t.searchList(),a.next=15;break;case 9:if(n&&100<=n.code&&n.code<=104)return a.next=12,t.logout();a.next=14;break;case 12:a.next=15;break;case 14:t.$message.warning(n.message);case 15: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;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(""!==e.parmValue.starttime&&""===e.parmValue.endtime||""===e.parmValue.starttime&&""!==e.parmValue.endtime)return e.$message.warning("时间区间不完整!"),t.abrupt("return");t.next=3;break;case 3:return e.loading=!0,(a=JSON.parse(JSON.stringify(e.parmValue))).activity_name="1"===e.select?e.sinput:"",a.activity_code="2"===e.select?e.sinput:"",a.creater="3"===e.select?e.sinput:"",a.company_name="4"===e.select?e.sinput:"",t.next=11,i.a.list(a);case 11:if(!(r=t.sent)||0!==r.code||!r.data){t.next=17;break}e.tableData=r.data.list,e.pageInfo.total=Number(r.data.count),t.next=24;break;case 17:if(r&&100<=r.code&&r.code<=104)return t.next=20,e.logout();t.next=22;break;case 20:t.next=24;break;case 22:e.tableData=[],e.pageInfo.total=0;case 24:e.loading=!1;case 25:case"end":return t.stop()}}),t)})))()}}},l=a("2877"),n=Object(l.a)(s,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"active pagePadding"},[e.powers.some((function(e){return"001"==e}))?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 10px 80px"}},[a("el-col",{staticStyle:{width:"240px"},attrs:{span:6}},[a("search-terrace",{attrs:{value:e.parmValue.platform_code,disabled:!1,size:"mini",isDetail:!1,is_show:"0",placeholder:"所属平台"},on:{searchChange:e.platform_codesearchChange}})],1),a("el-col",{staticStyle:{width:"205px",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.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:"303px",padding:"0 0 0 10px"},attrs:{span:6}},[a("period-date-picker",{attrs:{type:1,width:"135px",size:e.searchSize,start:e.parmValue.starttime,end:e.parmValue.endtime},on:{timeReturned:e.handleTime}})],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:"320px"},attrs:{span:4}},[a("search-work-company",{attrs:{value:e.parmValue.company_id,placeholder:"业务公司",disabled:!1,size:e.searchSize,isDetail:!1},on:{searchChange:e.company_idsearchChange}})],1),a("el-col",{staticStyle:{width:"373px",padding:"0 0 0 10px"},attrs:{span:4}},[a("el-input",{attrs:{size:e.searchSize,maxlength:40,clearable:"",placeholder:"关键字"},on:{blur:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.sinput,callback:function(t){e.sinput=t},expression:"sinput"}},[a("el-select",{staticStyle:{width:"130px"},attrs:{slot:"prepend",placeholder:"关键字类型"},on:{change:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},slot:"prepend",model:{value:e.select,callback:function(t){e.select=t},expression:"select"}},[a("el-option",{attrs:{label:"活动名称",value:"1"}}),a("el-option",{attrs:{label:"活动编码",value:"2"}}),a("el-option",{attrs:{label:"创建人",value:"3"}}),a("el-option",{attrs:{label:"创建人部门",value:"4"}})],1)],1)],1),e.powers.some((function(e){return"003"==e}))?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("activeDetail",{id:"add",type:"add"})}}},[e._v(" 添加 ")])],1):e._e()],1)],1)]}},{key:"status",fn:function(t){var r=t.scope;return[a("el-tag",{attrs:{size:e.tablebtnSize,type:"4"==r.row.status?"":"8"==r.row.status?"danger":"5"==r.row.status||"7"==r.row.status?"info":"warning"},domProps:{textContent:e._s((e.statusOptions.find((function(e){return e.id==r.row.status}))||{}).label||"--")}})]}},{key:"atime",fn:function(t){return t=t.scope,[e._v(" "+e._s(t.row.start)+"~"+e._s(t.row.end)+" ")]}},{key:"operation",fn:function(t){var r=t.scope;return[e.powers.some((function(e){return"007"==e}))?a("el-tooltip",{attrs:{effect:"dark",content:"详情",placement:"top"}},[a("i",{staticClass:"el-icon-view tb-icon",on:{click:function(t){return e.getRouter("activeDetail",r.row.activity_code)}}})]):e._e()]}}],null,!1,2956131442)}):a("no-auth"),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,"1356d155",null);t.default=n.exports},"15e6":function(e,t,a){"use strict";a("e7f5")},1646:function(e,t,a){},1715:function(e,t,a){},1733:function(e,t,a){"use strict";a.r(t);var r=a("1da1"),n=(a("96cf"),a("7db0"),a("d3b7"),a("61f7")),i=(a("de14"),{name:"supplier_feedback",props:["id","showModelThis","newTime"],mixins:[a("9f53").a],data:function(){return{loading:!1,status:"",showModelThis:this.showModel,ruleForm:{whether_back:"",feedback_remark:"",return_goods_addr:[],addr_detail:"",addressee:"",addressee_phone:"",express_require:""},rulesThis:this.rules,rules:{whether_back:[{required:!0,trigger:"change",message:"请选择是否同意退回"}],feedback_remark:[{required:!0,message:"请输入反馈备注",trigger:"blur"}],return_goods_addr:[{type:"array",required:!0,message:"请选择退回地址所在省/市/区",trigger:"change"}],addr_detail:[{required:!0,message:"请输入详细退货地址",trigger:"blur"}],addressee:[{required:!0,message:"请输入收件人",trigger:"blur"}],addressee_phone:[{required:!0,trigger:"blur",validator:function(e,t,a){""===t?a(new Error("手机号不能为空!")):Object(n.k)(t)?a():a(new Error("手机号格式不正确!"))}}],express_require:[{required:!0,trigger:"blur",message:"请输入物流信息"}]},whether_back_options:[{value:"value1",label:"同意退回"},{value:"value2",label:"拒绝退回"}]}},computed:{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"supplier_feedback"==e.menu_route}))||{};e=(null!==e?e:{}).action;return null!=e?e:[]}},mounted:function(){this.initForm()},watch:{id:function(e){e&&this.initForm()},newTime:function(e){e&&this.initForm()}},methods:{closeAdd:function(){this.showModelThis=!1},initForm:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.loading=!0,"add"===e.id)return e.rulesThis=e.rules,t.next=5,e.resetForm();t.next=7;break;case 5:t.next=10;break;case 7:return e.rulesThis=e.rules,t.next=10,e.resetForm();case 10:e.loading=!1;case 11:case"end":return t.stop()}}),t)})))()},resetForm:function(){var e=this;return Object(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={whether_back:"",feedback_remark:"",return_goods_addr:[],addr_detail:"",addressee:"",addressee_phone:"",express_require:""})}));case 2:case"end":return t.stop()}}),t)})))()},submitForm:function(){var e=this;return Object(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(e.loading)return t.abrupt("return");t.next=2;break;case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()},handleView:function(e){this.ruleForm.whether_back=e,this.$refs.ruleForm.validateField("return_goods_addr")},selectAreaAddr_code:function(e){this.ruleForm.return_goods_addr=e,this.$refs.ruleForm.validateField("return_goods_addr")}}});a=a("2877"),a=Object(a.a)(i,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",staticStyle:{width:"100%"},attrs:{loading:e.loading,model:e.ruleForm,"status-icon":"",rules:e.rulesThis,"label-width":"100px"}},[a("el-row",[a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"是否同意",prop:"whether_back"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择是否同意退回"},on:{change:e.handleView},model:{value:e.ruleForm.whether_back,callback:function(t){e.$set(e.ruleForm,"whether_back",t)},expression:"ruleForm.whether_back"}},e._l(e.whether_back_options,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"反馈备注",prop:"feedback_remark"}},[a("el-input",{attrs:{type:"textarea",placeholder:"请输入反馈备注",maxlength:"250","show-word-limit":""},model:{value:e.ruleForm.feedback_remark,callback:function(t){e.$set(e.ruleForm,"feedback_remark",t)},expression:"ruleForm.feedback_remark"}})],1)],1)],1),"value1"===e.ruleForm.whether_back?a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"退回地址",prop:"return_goods_addr"}},[a("select-area",{attrs:{placeholder:"请选择省/市/区",value:e.ruleForm.return_goods_addr,"is-detail":"add"!==e.id},on:{selectChange:e.selectAreaAddr_code}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"详细地址",prop:"addr_detail"}},[a("el-input",{attrs:{placeholder:"请输入退货详细地址",maxlength:"100"},model:{value:e.ruleForm.addr_detail,callback:function(t){e.$set(e.ruleForm,"addr_detail",t)},expression:"ruleForm.addr_detail"}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"收件人",prop:"addressee"}},[a("el-input",{attrs:{placeholder:"请输入收件人",maxlength:"20"},model:{value:e.ruleForm.addressee,callback:function(t){e.$set(e.ruleForm,"addressee",t)},expression:"ruleForm.addressee"}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"收件人电话",prop:"addressee_phone"}},[a("el-input",{attrs:{placeholder:"请输入收件人电话",maxlength:"11"},model:{value:e.ruleForm.addressee_phone,callback:function(t){e.$set(e.ruleForm,"addressee_phone",t)},expression:"ruleForm.addressee_phone"}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"物流要求",prop:"express_require"}},[a("el-input",{attrs:{placeholder:"请输入物流",maxlength:"100"},model:{value:e.ruleForm.express_require,callback:function(t){e.$set(e.ruleForm,"express_require",t)},expression:"ruleForm.express_require"}})],1)],1)],1):e._e(),a("el-col",{staticStyle:{"text-align":"right"},attrs:{span:24}},[a("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("保 存")]),"0"===e.status&&e.powers.some((function(e){return"012"==e}))?a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.statusConfirm("1","发起审核流程")}}},[e._v("发起审核流程 ")]):e._e(),"1"===e.status&&e.powers.some((function(e){return"014"==e}))?a("el-button",{attrs:{plain:""},on:{click:function(t){return e.statusConfirm("0","取消审核流程")}}},[e._v("取消审核流程")]):e._e(),"0"!==e.status&&"1"!==e.status||!e.powers.some((function(e){return"015"==e}))?e._e():a("el-button",{attrs:{type:"danger",plain:""},on:{click:function(t){return e.statusConfirm("-1","作废该条信息")}}},[e._v("作废该条信息")]),"1"===e.status&&e.powers.some((function(e){return"016"==e}))?a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.statusConfirm("2","通过审核")}}},[e._v("通过审核")]):e._e()],1)],1)],1)}),[],!1,null,null,null);t.default=a.exports},"176d":function(e,t,a){"use strict";a.r(t),a("4de4"),a("d3b7"),a("a434");var r=a("53fe"),n=a.n(r);r={name:"ex-table",components:{"ex-slot":{functional:!0,props:{render:Function,scope:{type:Object,default:null},column:{type:Object,default:null}},render:function(e,t){return t.props.column&&(t.props.scope.column=t.props.column),t.props.render(e,t.props.scope)}}},props:{table:{type:Object,default:function(){}},data:{type:Array,default:function(){return[]}},columns:{type:Array,default:function(){return[]}},page:{type:Object,default:{curr:1,size:15,total:0}},conditions:{type:Array,default:function(){return[]}},isRowDrop:{type:Boolean,default:!1},isColDrop:{type:Boolean,default:!1},size:{type:String,default:"mini"}},computed:{screenColumns:function(){return this.columns.filter((function(e){return!0===e._screen_}))},setColumns:function(){return this.columns.filter((function(e){return!e._noset_}))},isHasScreenColumn:function(){return function(e){return this.conditions.some((function(t){return t.prop===e.prop}))}},page_curr:function(){return this.page.curr},page_size:function(){return this.page.size},page_total:function(){return this.page.total}},data:function(){return{tableSelection:[]}},watch:{page_curr:function(e){this.page.curr=e},page_size:function(e){this.page.size=e},page_total:function(e){this.page.total=e}},mounted:function(){this.rowDrop(),this.columnDrop()},directives:{drap:{inserted:function(e,t){e.onmousedown=function(a){var r=t.modifiers.parent?e.parentNode:e,n=document.body.offsetWidth,i=document.body.offsetHeight,s=r.offsetWidth,o=r.offsetHeight,l=a.clientX-r.offsetLeft,c=a.clientY-r.offsetTop;document.onmousemove=function(e){var a=e.clientX-l;e=e.clientY-c;t.modifiers.limit&&(a=n-s<(a=a<0?0:a)?n-s:a,e=i-o<(e=e<0?0:e)?i-o:e),r.style.left=a+"px",r.style.top=e+"px"},document.onmouseup=function(){document.onmousemove=null}}}}},methods:{arraySpanMethod:function(e){e.row,e.column,e.rowIndex,e.columnIndex},objectSpanMethod:function(e){e.row,e.column;var t=e.rowIndex;if(0===e.columnIndex)return t%2==0?{rowspan:2,colspan:1}:{rowspan:0,colspan:0}},handleSelectionChange:function(e){this.tableSelection=e,this.$emit("selection",{list:this.tableSelection})},rowDrop:function(){var e=this,t=document.querySelector(".el-table__body-wrapper > table > tbody");n.a.create(t,{disabled:!this.isRowDrop,ghostClass:"sortable-ghost",animation:180,delay:0,onEndevt:function(t){var a=e.data.splice(t.oldIndex,1)[0];e.data.splice(t.newIndex,0,a)}})},columnDrop:function(){var e=this,t=document.querySelector(".el-table__header-wrapper tr");n.a.create(t,{disabled:!this.isColDrop,ghostClass:"sortable-ghost",animation:180,delay:0,onEnd:function(t){var a=e.columns.splice(t.oldIndex,1)[0];e.columns.splice(t.newIndex,0,a)}})},getObjPrototype:function(e,t){return new Function("obj","return obj.".concat(t))(e)},doLayout:function(){var e;(e=this.$refs.elTable).doLayout.apply(e,arguments)},clearSelection:function(){var e;(e=this.$refs.elTable).clearSelection.apply(e,arguments)},toggleRowSelection:function(){var e;(e=this.$refs.elTable).toggleRowSelection.apply(e,arguments)},toggleAllSelection:function(){var e;(e=this.$refs.elTable).toggleAllSelection.apply(e,arguments)},setCurrentRow:function(){var e;(e=this.$refs.elTable).setCurrentRow.apply(e,arguments)},toggleRowExpansion:function(){var e;(e=this.$refs.elTable).toggleRowExpansion.apply(e,arguments)}}},a("6190"),a("5d0a"),a=a("2877"),a=Object(a.a)(r,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("div",{staticClass:"table-header"},[e._l(e.table._defaultHeader_,(function(t,r){return["setcol"==t?a("el-dropdown",{key:r,staticClass:"setcol-table-lie",attrs:{placement:"bottom-end",trigger:"click","hide-on-click":!1}},[a("el-button",{attrs:{size:"mini"}},[e._v("列设置")]),a("el-dropdown-menu",{class:"ex-table-setcol-dropdown",attrs:{slot:"dropdown"},slot:"dropdown"},[e._l(e.setColumns,(function(t,r){return[t._noset_?e._e():a("el-dropdown-item",{key:"setColumns"+r},[a("el-switch",{attrs:{"active-text":t.label,"active-value":!1,"inactive-value":!0},model:{value:t._hidden_,callback:function(a){e.$set(t,"_hidden_",a)},expression:"column._hidden_"}})],1)]}))],2)],1):e._e()]})),e._t("table-header",null,{selection:e.tableSelection,alldata:e.data})],2),a("el-table",e._g(e._b({ref:"elTable",staticStyle:{width:"100%"},attrs:{data:e.data,size:e.size,"span-method":e.arraySpanMethod},on:{"selection-change":e.handleSelectionChange}},"el-table",e.table,!1),e.$listeners),[e._l(e.columns,(function(t,r){return[t._hidden_||!t.type||t._slot_?t._hidden_?e._e():a("el-table-column",e._b({key:r,attrs:{"show-overflow-tooltip":""},scopedSlots:e._u([{key:"header",fn:function(r){return[a("span",[e._v(e._s(t.label))]),t._screen_?a("span",{on:{click:function(a){return a.stopPropagation(),e.addConditionItemByCol(t,r)}}},[!1===t._screen_tip_?a("i",{staticClass:"el-icon-connection",style:e.isHasScreenColumn(t)?"color:#3888e5;":""}):a("el-tooltip",{attrs:{effect:t._screen_tip_effect_||"dark",content:t._screen_tip_||"筛选",placement:t._screen_tip_placement_||"top"}},[a("i",{staticClass:"el-icon-connection",style:e.isHasScreenColumn(t)?"color:#3888e5;":""})])],1):e._e()]}},{key:"default",fn:function(r){return t._slot_?e._t(t._slot_,null,{scope:r}):t._render_?[a("ex-slot",{attrs:{column:t,render:t._render_,scope:r}})]:[a("span",[e._v(e._s(t._format_?t._format_(r.row):e.getObjPrototype(r.row,t.prop)))])]}}],null,!0)},"el-table-column",t,!1)):a("el-table-column",e._b({key:r,attrs:{align:"center",width:"45px"}},"el-table-column",t,!1))]}))],2)],1)}),[],!1,null,"5a964e96",null);t.default=a.exports},"17b2":function(e,t,a){},1842:function(e,t,a){"use strict";a.r(t);var r=a("1da1"),n=(a("e9c4"),a("96cf"),a("1fd2")),i=a("61f7"),s={name:"Account",props:["showModel","id","isDetail"],mixins:[a("9f53").a],data:function(){var e=this;return{roleList:[],loading:!1,title:"重置密码",showModelThis:this.showModel,ruleForm:{id:this.id,password:"",confirmPassword:""},rulesThis:this.rules,rules:{password:[{required:!0,trigger:"blur",validator:function(e,t,a){""===t?a(new Error("新密码不能为空!")):!Object(i.e)(t)||t.length<6||16(new Date).valueOf()}},rules:{send_num:[{required:!0,validator:function(e,t,a){e=e.required,e&&""===t?a(new Error("不能为空!")):!e||"0"!==t&&"0."!==t&&"0.0"!==t&&"0.00"!==t&&"0.000"!==t?a():a(new Error("不能为零!"))},trigger:"blur"}],post_company:[{type:"array",required:!0,trigger:"change",message:"请输入物流公司"}],sendtype:[{required:!0,trigger:"change",message:"选择发货方式"}],post_code:[{required:!0,validator:function(e,t,a){""===t?a(new Error("不能为空!")):Object(s.e)(t)?a():a(new Error("仅支持字母和数字!"))},trigger:"blur"}],post_fee:[{required:!0,validator:function(e,t,a){e.required&&""===t?a(new Error("不能为空!")):a()},trigger:"blur"}],post_time:[{required:!0,message:"请选择发货时间",trigger:"change"}]}}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis:function(e){e||this.$emit("cancel")}},methods:{initForm:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,e.rulesThis=e.rules,t.next=5,e.resetForm();case 5:e.loading=!1;case 6:case"end":return t.stop()}}),t)})))()},resetForm:function(){var e=this;return Object(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;e.$refs.ruleForm&&(e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),t=(r=e.sitem).cgdNo,a=r.wsend_num,n=r.goodinfo,r=r.order_source,n=n.send_way,e.order_source=r||"",e.ruleForm={wsm_mobile:"",wsm_contactor:"",wsm_addr:"",cgdNo:t||"",wsm_code:"",post_company:[],post_code:"",post_fee:"",post_time:"",wsend_num:a||"0",sendtype:"0"===n?"1":"2",send_num:a||"0",status:"1"})}));case 2:case"end":return t.stop()}}),t)})))()},number_change:function(e,t){this.ruleForm[t]=e+""||"0",this.$refs.ruleForm.validateField(t)},sendtypeChange:function(){var e=this.ruleForm.sendtype;this.rulesThis.post_code[0].required="1"===e,this.rulesThis.post_company[0].required="1"===e},submitForm:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=3,e.$refs.ruleForm.validate(function(){var t=Object(r.a)(regeneratorRuntime.mark((function t(a){var r,n,s,o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!a){t.next=31;break}if(e.loading)return t.abrupt("return");t.next=3;break;case 3:if(e.loading=!0,(r=JSON.parse(JSON.stringify(e.ruleForm))).post_company=r.post_company.toString(),n=new Date(r.post_time).valueOf(),(new Date).valueOf()<=n)return e.$message.warning("发货时间不能选择未来时间!"),e.loading=!1,t.abrupt("return");t.next=12;break;case 12:return t.next=14,i.a.orderinadd(r);case 14:if(n=t.sent,s=n.code,o=n.message,e.loading=!1,0!==s){t.next=23;break}e.$notify.success({title:"添加成功",message:""}),e.$emit("refresh"),t.next=29;break;case 23:if(100<=s&&s<=104)return t.next=26,e.logout();t.next=28;break;case 26:t.next=29;break;case 28:"1009"===s?e.$message.warning("".concat(o,",请刷新采购单详情重试!")):e.$message.warning(o);case 29:t.next=33;break;case 31:return t.abrupt("return",!1);case 33:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 3:case"end":return t.stop()}}),t)})))()},handleCompany:function(e){this.ruleForm.post_company=e&&e.code?[e.label]:[],this.$refs.ruleForm.validateField("post_company")}}},a("b23b"),a=a("2877"),a=Object(a.a)(n,(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:"15vh",width:"700px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)"},on:{close:function(t){e.showModelThis=!1},"update:visible":function(t){e.showModelThis=t}}},[a("el-card",{staticStyle:{"margin-top":"-20px"}},[a("el-row",{attrs:{gutter:10}},[a("el-col",{attrs:{span:24}},[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.rulesThis,"status-icon":"",size:"mini","label-width":"85px"}},[a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"可入库总数",prop:"wsend_num",required:"","label-width":"95px"}},[a("el-input",{attrs:{disabled:"",size:"mini",placeholder:"可入库总数",maxlength:"100"},model:{value:e.ruleForm.wsend_num,callback:function(t){e.$set(e.ruleForm,"wsend_num",t)},expression:"ruleForm.wsend_num"}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"入库数量",prop:"send_num"}},[a("digital-input",{attrs:{values:e.ruleForm.send_num,placeholder:"入库数量",min:0,name:"ruleForm.send_num",disabled:!1,max:e.ruleForm.wsend_num,position:"right",precision:0,size:"mini",controls:!1,append:""},on:{reschange:function(t){return e.number_change(t,"send_num")}}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"发货方式",prop:"sendtype"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{size:"mini",disabled:e.sitem&&"3"===e.sitem.order_type,placeholder:"发货方式"},on:{change:e.sendtypeChange},model:{value:e.ruleForm.sendtype,callback:function(t){e.$set(e.ruleForm,"sendtype",t)},expression:"ruleForm.sendtype"}},e._l(e.options,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"物流费用",prop:"post_fee"}},[a("digital-input",{attrs:{values:e.ruleForm.post_fee,placeholder:"物流费用",min:0,disabled:!1,max:1e11,position:"right",precision:2,size:"mini",controls:!1,append:"元"},on:{reschange:function(t){return e.number_change(t,"post_fee")}}})],1)],1),"1"===e.ruleForm.sendtype?a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"物流公司",prop:"post_company"}},[a("search-express",{attrs:{value:e.ruleForm.post_company,placeholder:"物流公司",names:"",order_source:e.order_source,size:"mini","is-detail":!1},on:{searchChange:e.handleCompany}})],1)],1):e._e(),"1"===e.ruleForm.sendtype?a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"物流单号",prop:"post_code"}},[a("el-input",{attrs:{placeholder:"物流单号",size:"mini",maxlength:"100"},model:{value:e.ruleForm.post_code,callback:function(t){e.$set(e.ruleForm,"post_code",t)},expression:"ruleForm.post_code"}})],1)],1):e._e(),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"发货时间",prop:"post_time"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"datetime",size:"mini","value-format":"yyyy-MM-dd HH:mm:ss",placeholder:"发货时间","picker-options":e.pickerOptions},on:{change:e.selectTime},model:{value:e.ruleForm.post_time,callback:function(t){e.$set(e.ruleForm,"post_time",t)},expression:"ruleForm.post_time"}})],1)],1),a("el-col",{staticStyle:{"text-align":"right"},attrs:{span:12}},[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.submitForm}},[e._v("保 存 ")])],1)],1)],1)],1)],1)],1)],1)}),[],!1,null,"38030dd0",null);t.default=a.exports},"1a95":function(e,t,a){"use strict";a.r(t);var r=a("1da1"),n=(a("e9c4"),a("96cf"),{name:"editMinorderForm",props:["showModel","sitem"],data:function(){return{loading:!1,showModelThis:this.showModel,ruleForm:{skuCode:"",good_name:"",activity_stock:"",moq_num:"",cost_price:"",sale_price:"",activity_price:""},rulesThis:this.rules,rules:{activity_price:[{required:!0,validator:function(e,t,a){""===t?a(new Error("活动价价不能为空!")):a()},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.rulesThis=e.rules,t.next=4,e.resetForm();case 4:e.loading=!1;case 5:case"end":return t.stop()}}),t)})))()},resetForm:function(){var e=this;return Object(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=e.sitem?JSON.parse(JSON.stringify(e.sitem)):{skuCode:"",good_name:"",activity_stock:"",moq_num:"",cost_price:"",sale_price:"",activity_price:""})}));case 2:case"end":return t.stop()}}),t)})))()},activity_price_change:function(e){this.ruleForm.activity_price=e+"",this.$refs.ruleForm.validateField("activity_price")},submitForm:function(){var e=this;return Object(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;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!a){t.next=4;break}e.loading||(e.loading=!0,r=JSON.parse(JSON.stringify(e.ruleForm)),e.showModelThis=!1,e.$emit("refresh",r)),t.next=6;break;case 4:return t.abrupt("return",!1);case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()}}});a("d7f2"),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:"编辑活动信息",center:!0,align:"left",top:"12vh",width:"600px",size:"mini","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)"},on:{"update:visible":function(t){e.showModelThis=t},close:function(t){e.showModelThis=!1}}},[t("el-card",{staticStyle:{margin:"-20px 0 0 0"}},[t("el-row",{attrs:{gutter:10}},[t("el-col",{attrs:{span:24}},[t("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",rules:e.rulesThis,"label-width":"80px"}},[t("el-form-item",{attrs:{label:"商品编号",prop:"skuCode"}},[t("el-input",{attrs:{placeholder:"商品编号",maxlength:"100",disabled:""},model:{value:e.ruleForm.skuCode,callback:function(t){e.$set(e.ruleForm,"skuCode",t)},expression:"ruleForm.skuCode"}})],1),t("el-form-item",{attrs:{label:"商品名称",prop:"good_name"}},[t("el-input",{attrs:{disabled:"",placeholder:"商品名称",maxlength:"100"},model:{value:e.ruleForm.good_name,callback:function(t){e.$set(e.ruleForm,"good_name",t)},expression:"ruleForm.good_name"}})],1),t("el-form-item",{attrs:{label:"活动库存",prop:"activity_stock"}},[t("el-input",{attrs:{placeholder:"活动库存",disabled:"",maxlength:"100"},model:{value:e.ruleForm.activity_stock,callback:function(t){e.$set(e.ruleForm,"activity_stock",t)},expression:"ruleForm.activity_stock"}})],1),t("el-form-item",{attrs:{label:"起订量",prop:"moq_num"}},[t("el-input",{attrs:{disabled:"",placeholder:"起订量",maxlength:"100"},model:{value:e.ruleForm.moq_num,callback:function(t){e.$set(e.ruleForm,"moq_num",t)},expression:"ruleForm.moq_num"}})],1),t("el-form-item",{attrs:{label:"成本单价",prop:"cost_price"}},[t("el-input",{attrs:{disabled:"",placeholder:"成本单价",maxlength:"100"},model:{value:e.ruleForm.cost_price,callback:function(t){e.$set(e.ruleForm,"cost_price",t)},expression:"ruleForm.cost_price"}},[t("template",{slot:"append"},[e._v("元")])],2)],1),t("el-form-item",{attrs:{label:"非活动价",prop:"sale_price"}},[t("el-input",{attrs:{disabled:"",placeholder:"非活动价",maxlength:"100"},model:{value:e.ruleForm.sale_price,callback:function(t){e.$set(e.ruleForm,"sale_price",t)},expression:"ruleForm.sale_price"}},[t("template",{slot:"append"},[e._v("元")])],2)],1),t("el-form-item",{attrs:{label:"活动价",prop:"activity_price"}},[t("digital-input",{attrs:{values:e.ruleForm.activity_price,placeholder:"活动价",min:0,max:1e11,position:"right",precision:2,size:"large",controls:!1,append:"元"},on:{reschange:e.activity_price_change}})],1)],1)],1),t("el-col",{staticStyle:{"text-align":"right"},attrs:{span:24}},["007"!==e.id?t("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("保 存 ")]):e._e(),t("el-button",{on:{click:function(t){e.showModelThis=!1}}},[e._v(e._s("007"==e.id?"关 闭":"取 消"))])],1)],1)],1)],1)}),[],!1,null,"313cdeb6",null);t.default=a.exports},"1a98":function(e,t,a){},"1acc":function(e,t,a){"use strict";a("fdbe")},"1add":function(e,t,a){},"1b18e":function(e,t,a){"use strict";a("2fca")},"1b64":function(e,t,a){"use strict";a.r(t);var r=a("1da1"),n=a("5530"),i=(a("96cf"),a("a9e3"),a("e9c4"),a("d3b7"),a("3ca3"),a("ddb0"),a("2b3d"),a("9861"),a("f5ed")),s=a("9f53"),o=a("5daa"),l=(a("886e"),a("52ee")),c=a("224e"),u=a("2f62");i={name:"purchaseOrder",mixins:[i.a,s.a],components:{periodDatePickerActive:l.default},computed:Object(n.a)({},Object(u.b)(["tablebtnSize","searchSize","size"])),data:function(){return{changeList:[],fileUrl:o.a.baseURL,loading:!1,parmValue:{select:"",xiugai1:"",xiugai2:"",start_date:"",end_date:"",page:1,size:15},tableData:[],table:{stripe:!0,border:!0,_defaultHeader_:["setcol"]},pageInfo:{size:15,curr:1,total:0},table14:c.g}},mounted:function(){alert("暂无数据,未修改"),this.searchList()},methods:{searchList: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:if(""!==e.parmValue.start_date&&""===e.parmValue.end_date||""===e.parmValue.start_date&&""!==e.parmValue.end_date)return e.$message.warning("时间区间不完整!"),t.abrupt("return");t.next=3;break;case 3:return t.abrupt("return");case 7:if(!(a=t.sent)||0!==a.code||!a.data){t.next=13;break}e.tableData=a.data.list,e.pageInfo.total=Number(a.data.count),t.next=20;break;case 13:if(a&&100<=a.code&&a.code<=104)return t.next=16,e.logout();t.next=18;break;case 16:t.next=20;break;case 18:e.tableData=[],e.pageInfo.total=0;case 20:e.loading=!1;case 21:case"end":return t.stop()}}),t)})))()},restSearch:function(){this.parmValue={start_date:"",end_date:"",page:1,size:15},this.pageInfo={size:15,curr:1,total:0},this.searchList()},time:function(e){var t=this;return Object(r.a)(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(t.parmValue.start_date=e.startTime||"",t.parmValue.end_date=e.endTime||"",""!==t.parmValue.start_date&&""===t.parmValue.end_date||""===t.parmValue.start_date&&""!==t.parmValue.end_date)return t.$message.warning("时间区间不完整!"),a.abrupt("return");a.next=5;break;case 5:return t.pageInfo.curr=1,t.parmValue.page=1,a.next=9,t.searchList();case 9:case"end":return a.stop()}}),a)})))()},selection_change:function(e){e=e.list,this.changeList=0=)",minWidth:"200px"},{prop:"package_fee",label:"包装费",minWidth:"200px"},{prop:"other_fee",label:"其他费用",minWidth:"200px"},{prop:"nake_total",label:"成本合计",minWidth:"200px"}]},"228c":function(e,t,a){"use strict";a("f051")},"228e":function(e,t,a){"use strict";a("1221")},2296:function(e,t,a){},"22af":function(e,t,a){"use strict";a.r(t);var r=a("1da1"),n=a("5530"),i=(a("96cf"),a("7db0"),a("d3b7"),a("25f0"),a("f5ed")),s=a("9f53"),o=a("b5d3"),l=a("2f62"),c=a("d513");i={name:"newProcess",mixins:[i.a,s.a],components:{addEditForm:c.default},computed:Object(n.a)(Object(n.a)({},Object(l.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"newProcess"==e.menu_route}))||{};e=(null!==e?e:{}).action;return null!=e?e:[]}}),data:function(){return{sitem:null,newTime:0,type:"",parmValue1:{id:""}}},mounted:function(){this.restSearch(),this.setTime()},methods:{initForm:function(){this.setTime()},setTime:function(){this.newTime=(new Date).valueOf()},restSearch:function(){this.parmValue={}},refreshDom:function(e){var t=this;return Object(r.a)(regeneratorRuntime.mark((function a(){var r;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return e.hand_uid=e.hand_uid.toString(),e.resign_uid=e.resign_uid.toString(),t.loading=!0,a.next=5,o.a.update(e);case 5:if(!(r=a.sent)||0!==r.code||!r.data){a.next=10;break}t.updateStatus(e),a.next=15;break;case 10:if(r&&100<=r.code&&r.code<=104)return a.next=13,t.logout();a.next=15;break;case 13:a.next=15;break;case 15:t.loading=!1;case 16:case"end":return a.stop()}}),a)})))()},updateStatus: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 r=e.id,i=e.type,r={id:r,remark:"123",status:i},a.next=5,o.a.updateStatus(r);case 5:if(!(n=a.sent)||0!==n.code){a.next=13;break}i="add"===t.id?"添加成功!":"修改成功!",t.$notify.success({title:i,message:""}),t.showModelThis=!1,t.$emit("refresh",!1),a.next=19;break;case 13:if(n&&100<=n.code&&n.code<=104)return a.next=16,t.logout();a.next=18;break;case 16:a.next=19;break;case 18:t.$message.warning(n.message);case 19:case"end":return a.stop()}}),a)})))()}}},s=a("2877"),c=Object(s.a)(i,(function(){var e=this.$createElement;e=this._self._c||e;return e("div",{staticClass:"newProcess pagePadding"},[this.powers.some((function(e){return"007"==e}))?e("div",[e("div",{staticStyle:{width:"500px"}},[e("add-edit-form",{attrs:{id:this.$route.query.id,sitem:this.sitem,newTime:this.newTime,"show-model":this.showModel,"is-detail":!this.isDetail},on:{resData:this.initForm,refreshDom:this.refreshDom}})],1)]):e("div",[e("no-auth")],1)])}),[],!1,null,null,null);t.default=c.exports},"22c1":function(e,t,a){"use strict";a("a6c2")},"22c8":function(e,t,a){},"22dd":function(e,t,a){"use strict";a("8266")},"233c":function(e,t,a){"use strict";a.r(t);var r=a("1da1"),n=a("2909"),i=a("5530"),s=(a("96cf"),a("7db0"),a("d3b7"),a("e9c4"),a("99af"),a("c740"),a("159b"),a("b0c0"),a("a9e3"),a("1b69")),o="admin/",l=function(e,t){return Object(s.a)(o+"msglist",e,"post",t)},c=function(e,t){return Object(s.a)(o+"msginfo",e,"post",t)},u=function(e,t){return Object(s.a)(o+"msglimitread",e,"post",t)},d=function(e,t){return Object(s.a)(o+"msgallread",e,"post",t)},p=a("f5ed"),m=a("2f62"),f=a("9f53"),h=a("6b0b");p={name:"role",mixins:[p.a,f.a],computed:Object(i.a)(Object(i.a)({},Object(m.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"unRead"==e.menu_route}))||{};e=(null!==e?e:{}).action;return null!=e?e:[]}}),data:function(){return{process_router_list:JSON.parse(JSON.stringify(h.c)),loading:!0,parmValue:{page:1,size:15,is_read:"0",order_type:"",orderCode:""},tableData:[],table:{stripe:!0,border:!0,_defaultHeader_:["setcol"]},pageInfo:{size:15,curr:1,total:0},columns:[{type:"selection",fixed:"left",_noset_:!0}].concat(Object(n.a)(h.a)),readUnRead:h.b}},mounted:function(){var e,t=this.$route.query.back;t&&(this.parmValue=JSON.parse(t),e=(t=this.parmValue).page,t=t.size,this.pageInfo={size:t,curr:e,total:0}),this.columns.unshift(),this.searchList()},methods:{getRouter:function(e){var t,a=e.order_type,r=e.order_id,n=(e=e.orderCode,this.process_router_list.findIndex((function(e){return e.type===a})));-1!==n?(t=(n=this.process_router_list[n]).toRouter,n={type:"view",id:"code"===n.to?e:r},e={options:JSON.parse(JSON.stringify(this.parmValue)),router:this.$route.path},n.preModel=JSON.stringify(e),this.routeGoto(t,n)):this.$message.warning("暂未找到相关流程!")},restSearch:function(){this.pageInfo={size:15,curr:1,total:0},this.parmValue={page:1,size:15,is_read:"0",order_type:"",orderCode:""},this.searchList()},changeStatus:function(e,t,a){var n=this;return Object(r.a)(regeneratorRuntime.mark((function i(){return regeneratorRuntime.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(1===a&&e&&0===e.length)return n.$message.warning("至少选择一条数据!"),i.abrupt("return");i.next=3;break;case 3:return i.next=5,n.$confirm("确定要".concat(t,"?"),{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(r.a)(regeneratorRuntime.mark((function r(){var i;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(1===a)return i={id:[]},e.forEach((function(e){i.id.push(e.id)})),r.next=5,n.set_status(t,a,i);r.next=7;break;case 5:r.next=9;break;case 7:return r.next=9,n.set_status(t,a,{});case 9:case"end":return r.stop()}}),r)})))).catch((function(){}));case 5:case"end":return i.stop()}}),i)})))()},set_status:function(e,t,a){var n=this;return Object(r.a)(regeneratorRuntime.mark((function r(){var i,s;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(i={},1===t)return r.next=4,u(a);r.next=7;break;case 4:i=r.sent,r.next=10;break;case 7:return r.next=9,d({});case 9:i=r.sent;case 10:if(0!==(s=i.code)){r.next=18;break}n.$notify.success({title:e+"成功!",message:""}),n.pageInfo.curr=1,n.parmValue.page=1,n.searchList(),r.next=24;break;case 18:if(100<=s&&s<=104)return r.next=21,n.logout();r.next=23;break;case 21:r.next=24;break;case 23:n.$message.warning(message);case 24:case"end":return r.stop()}}),r)})))()},wentRead: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.toRouter,e.queryId,r=e.id,e.orderCode,a.next=4,c({id:r});case 4:if(r=a.sent,n=r.code,r.data,i=r.message,0!==n){a.next=13;break}t.getRouter(e),a.next=19;break;case 13:if(100<=n&&n<=104)return a.next=16,t.logout();a.next=18;break;case 16:a.next=19;break;case 18:t.$message.warning(i);case 19:case"end":return a.stop()}}),a)})))()},searchList: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.loading=!0,t.next=3,l(e.parmValue);case 3:if(!(a=t.sent)||0!==a.code||!a.data){t.next=10;break}e.tableData=a.data.list,e.tableData.forEach((function(t,a){var r,n,i=e.process_router_list.findIndex((function(e){return e.type===t.order_type}));-1!==i?(r=(i=e.process_router_list[i]).name,n=i.toRouter,i=i.to,e.tableData[a].process_name=r,e.tableData[a].toRouter=n,e.tableData[a].queryId="code"==i?t.order_code:t.order_id):(e.tableData[a].process_name="",e.tableData[a].toRouter="",e.tableData[a].queryId="")})),e.pageInfo.total=Number(a.data.count),t.next=17;break;case 10:if(a&&100<=a.code&&a.code<=104)return t.next=13,e.logout();t.next=15;break;case 13:t.next=17;break;case 15:e.tableData=[],e.pageInfo.total=0;case 17:e.loading=!1;case 18:case"end":return t.stop()}}),t)})))()}}},f=a("2877"),i=Object(f.a)(p,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"unRead pagePadding"},[e.powers.some((function(e){return"001"==e}))?a("ex-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{table:e.table,data:e.tableData,columns:e.readUnRead,page:e.pageInfo,size:e.size},on:{"page-curr-change":e.handlePageChange,"page-size-change":e.handleSizeChange,"screen-reset":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()},"screen-submit":function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},scopedSlots:e._u([{key:"table-header",fn:function(t){var r=t.selection;return[a("el-row",{staticStyle:{padding:"0 0 0 80px",width:"100%"},attrs:{gutter:10}},[a("el-col",{staticStyle:{width:"230px"},attrs:{span:10}},[a("el-select",{staticStyle:{width:"100%"},attrs:{clearable:"",size:"mini",placeholder:"订单类型"},on:{click:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.parmValue.order_type,callback:function(t){e.$set(e.parmValue,"order_type",t)},expression:"parmValue.order_type"}},e._l(e.process_router_list,(function(e){return a("el-option",{key:e.type,attrs:{label:e.name,value:e.type}})})),1)],1),a("el-col",{staticStyle:{width:"400px",padding:"0 0 0 10px"},attrs:{span:10}},[a("el-input",{attrs:{size:"mini",placeholder:"订单编号",maxlength:"40"},on:{blur:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.parmValue.orderCode,callback:function(t){e.$set(e.parmValue,"orderCode",t)},expression:"parmValue.orderCode"}})],1),a("el-col",{staticStyle:{width:"66px",float:"right"},attrs:{span:3}},[a("el-button",{staticStyle:{float:"right"},attrs:{type:"primary",size:e.searchSize},on:{click:e.searchList}},[e._v(" 刷新 ")])],1),a("el-col",{staticStyle:{width:"90px",float:"right"},attrs:{span:3}},[a("el-button",{staticStyle:{float:"right"},attrs:{type:"primary",size:e.searchSize},on:{click:function(t){return e.changeStatus(r,"全部标记为已读",0)}}},[e._v(" 全部已读 ")])],1),a("el-col",{staticStyle:{width:"66px",float:"right"},attrs:{span:3}},[a("el-button",{staticStyle:{float:"right"},attrs:{type:"primary",size:e.searchSize},on:{click:function(t){return e.changeStatus(r,"批量标记为已读",1)}}},[e._v(" 批量已读 ")])],1)],1)]}},{key:"operation",fn:function(t){var r=t.scope;return[e.powers.some((function(e){return"007"==e}))?a("el-tooltip",{attrs:{effect:"dark",content:"详情",placement:"top"}},[a("i",{staticClass:"el-icon-view tb-icon",on:{click:function(t){return e.wentRead(r.row)}}})]):e._e()]}}],null,!1,4259202337)}):a("no-auth")],1)}),[],!1,null,"f0d0e860",null);t.default=i.exports},"234a":function(e,t,a){"use strict";a.r(t);var r=a("ade3"),n=a("1da1"),i=a("5530"),s=(a("96cf"),a("7db0"),a("d3b7"),a("159b"),a("e9c4"),a("a434"),a("25f0"),a("b0c0"),a("7dbe")),o=a("9f53"),l=a("416e"),c=a("2f62");o={name:"handover",props:["id","sitem","newTime"],mixins:[o.a],components:{addEditGoodModal:l.default},computed:Object(i.a)({},Object(c.b)(["business_companyNo"])),data:function(){return{multipleSelection:[],tableData:[],ptableData:[],showModel:!1,editItem:{},options:[{value:"0",label:"非项目"},{value:"1",label:"项目"}],statusOptions:[{value:"1",label:"竞品"},{value:"2",label:"竞聘"}],configOptions:["证书","包装盒","绒布袋","标签","其他"],poptions:[],loading:!1,selectLoading:!1,pickerOptions:{disabledDate:function(e){return e.getTime()new Date(n).getTime())return e.$message.warning("竞价截止时间不能晚于项目竞价截止时间!"),e.loading=!1,t.abrupt("return");t.next=14;break;case 14:if(new Date(o).getTime()<=(new Date).getTime())return e.$message.warning("竞价截止时间应该大于当前时间!"),e.loading=!1,t.abrupt("return");t.next=18;break;case 18:return r.khNo=r.khNo.toString(),r.projectNo=r.projectNo.toString(),r.ladder=[],JSON.parse(JSON.stringify(e.tableData)).forEach((function(e){var t={good_name:e.good_name,good_img:e.good_img,cat_id:e.cat_id[e.cat_id.length-1],unit:e.unit.toString(),brand_id:e.brand_id.toString(),arrival_time:e.arrival_time,cost_desc:e.cost_desc,is_addrs:e.is_addrs,is_custom:e.is_custom,metal_id:e.metal_id,config:e.config.toString(),other_config:e.other_config,specs_weight:e.specs_weight,gold_price:e.gold_price,budget_price:e.budget_price,num:e.num,use_desc:e.use_desc,remark:e.remark,pgNo:e.pgNo,total_weight:e.total_weight,is_gold_price:e.is_gold_price,enclosure_file:e.enclosure_file,specinfo:[]};e.specinfo.forEach((function(e){e={specid:e.specid,spec_value_id:e.spec_value_id},t.specinfo.push(e)})),r.ladder.push(t)})),t.next=26,s.a.add(r);case 26:if(l=t.sent,e.loading=!1,!l||0!==l.code){t.next=33;break}e.$notify.success({title:"创建成功!",message:""}),e.$emit("refresh",!0),t.next=39;break;case 33:if(l&&100<=l.code&&l.code<=104)return t.next=36,e.logout();t.next=38;break;case 36:t.next=39;break;case 38:e.$message.warning(l.message);case 39:t.next=43;break;case 41:return t.abrupt("return",!1);case 43:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 3:case"end":return t.stop()}}),t)})))()},selectChange:function(e){var t=this;return Object(n.a)(regeneratorRuntime.mark((function a(){var r,n,i,o,l,c,u,d;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(r=e&&0new Date(n).getTime())return e.$message.warning("竞价截止时间不能晚于项目竞价截止时间!"),e.loading=!1,t.abrupt("return");t.next=10;break;case 10:if(new Date(o).getTime()<=(new Date).getTime())return e.$message.warning("竞价截止时间应该大于当前时间!"),e.loading=!1,t.abrupt("return");t.next=14;break;case 14:return r.khNo=r.khNo.toString(),r.projectNo=r.projectNo.toString(),r.brand_id=r.brand_id.toString(),r.unit=r.unit.toString(),r.cat_id=r.cat_id.toString(),r.config=r.config.toString(),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)})),delete r.pendtime,delete r.arrtime,delete r.puse_desc,delete r.budget_total,delete r.khname,e.loading=!1,Object.keys(r).forEach((function(t){r[t],e.sitem[t]})),t.next=34,s.a.update(r);case 34:if(l=t.sent,e.loading=!1,!l||0!==l.code){t.next=41;break}e.$notify.success({title:"创建成功!",message:""}),e.$emit("refresh",!0),t.next=47;break;case 41:if(l&&100<=l.code&&l.code<=104)return t.next=44,e.logout();t.next=46;break;case 44:t.next=47;break;case 46:e.$message.warning(l.message);case 47:t.next=51;break;case 49:return t.abrupt("return",!1);case 51:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 3:case"end":return t.stop()}}),t)})))()},selectChange:function(e){var t=this;return Object(n.a)(regeneratorRuntime.mark((function a(){var r,n,i,o,l,c,u,d,p,m,f;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(r=e&&0new Date(e.endTime).valueOf()}},pickerOptions2:{disabledDate:function(t){if(null!=e.startTime&&""!=e.startTime&&t)return t.getTime()(new Date).valueOf()}},activeNames:["0","1","2","3","4","5","10"],importSitem:null,confirmSitem:null,price_min:"0",subSitem:null,conGoodData:null,subGoodData:null,status:"",newTime:"",loading:!1,queryId:"",rulesThis:{},coptions:[],options:h,actOptions:[],ruleForm:{},rules:b,options1:_,options2:w,options3:v,options4:x,options5:k,options6:y,options7:F,options8:C,options9:S,onlineColumns:O,priceLoding:!1}},mounted:function(){this.queryId=this.$route.query.id,this.initForm()},methods:{change_good:function(){},statusActive:function(e){var t="";switch(e){case"1":t="系统验证数据中";break;case"2":t="待确认订单信息";break;case"3":t="待处理(待扣减库存)";break;case"4":t="库存不足";break;case"5":t="订单录入成功"}return t},statusActiveTag:function(e){var t="";switch(e){case"1":t="";break;case"2":t="info";break;case"3":t="warning";break;case"4":t="danger";break;case"5":t="success"}return t},initForm:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,e.rulesThis=e.rules,t.next=4,e.resetForm();case 4:return t.next=6,e.initData();case 6:e.loading=!1;case 7:case"end":return t.stop()}}),t)})))()},againForm:function(e){var t=this;return Object(r.a)(regeneratorRuntime.mark((function a(){var r,n,i,s,o,l,c,u,d,p,m,f,h,g,b;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(r=e.platform_code,n=e.po_code,i=e.platform_time,s=e.plat_code,o=e.sale_source,l=e.mode,c=e.contactor,u=e.mobile,d=e.price,p=e.num,m=e.before_discount_all_price,f=e.activity_code,h=e.order_remark,g=e.addr,b=e.addr_code,t.ruleForm={id:t.queryId||"",platform_code:r||"",po_code:n||"",platform_time:i||"",plat_code:s||"",sale_source:o||"",mode:l||"",contactor:c||"",mobile:u||"",price:d||"",num:p||"",before_discount_all_price:m||"",activity_code:f||"",order_remark:h||"",addr:g||"",addr_code:b&&0=+e.ruleForm.price&&(e.ruleForm.price=s):e.ruleForm.price="0";case 18:case"end":return t.stop()}}),t)})))()},get_goods_active:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){var a,r,n,i,s;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.actOptions=[],n=e.subGoodData,s=n.skuCode,a=n.companyNo,n=n.platform_code,s={skuCode:s,companyNo:a,platform_id:n},t.next=5,m(s);case 5:if(a=t.sent,r=a.code,n=a.data,i=a.message,0!==r){t.next=14;break}s=n.act,e.actOptions=s,t.next=20;break;case 14:if(100<=r&&r<=104)return t.next=17,e.logout();t.next=19;break;case 17:t.next=20;break;case 19:e.$message.warning(i);case 20:0===e.actOptions.length&&(e.ruleForm.activity_code="",e.$refs.ruleForm.validateField("activity_code"));case 21:case"end":return t.stop()}}),t)})))()},resetForm:function(){var e=this;return Object(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=g)}));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,n,i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!a){t.next=26;break}if(e.loading)return t.abrupt("return");t.next=3;break;case 3:return e.loading=!0,(r=JSON.parse(JSON.stringify(e.ruleForm))).platform_id=e.platform_id,t.next=8,l(r);case 8:if(r=t.sent,n=r.code,r.data,i=r.message,e.loading=!1,0!==n){t.next=18;break}e.$notify.success({title:"提交成功!",message:""}),e.initForm(),t.next=24;break;case 18:if(100<=n&&n<=104)return t.next=21,e.logout();t.next=23;break;case 21:t.next=24;break;case 23:e.$message.warning(i);case 24:t.next=28;break;case 26:return t.abrupt("return",!1);case 28:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()},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)},set_salegetprice:function(e){var t=this;return Object(r.a)(regeneratorRuntime.mark((function a(){var r,n,i,s;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return t.priceLoding=!0,r={isok:!0,price:"0"},a.next=4,p(e);case 4:if(s=a.sent,n=s.code,i=s.message,s=s.data,0!==n){a.next=13;break}s=s.sale_price,r.price=s+"",a.next=20;break;case 13:if(100<=n&&n<=104)return a.next=16,t.logout();a.next=18;break;case 16:a.next=20;break;case 18:t.$message.warning(i),r.isok=!1;case 20:return t.priceLoding=!1,a.abrupt("return",r);case 22:case"end":return a.stop()}}),a)})))()},getNewTime:function(){this.newTime=(new Date).valueOf()}}},a("0b96"),i=a("2877"),D=Object(i.a)(n,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"orderConfirm pagePadding"},[e.powers.some((function(e){return"001"==e}))?a("div",{staticStyle:{width:"100%"}},[e.sitem&&e.status?a("show-data-table",{staticStyle:{margin:"0 0 10px 0",padding:"0"},attrs:{sitem:e.sitem,columns:e.showColumns,border:""},scopedSlots:e._u([{key:"status",fn:function(){return[a("el-tag",{staticStyle:{margin:"auto"},attrs:{size:"mini",type:e.sitem.status_type}},[e._v(e._s(e.sitem.status_name))])]},proxy:!0},{key:"error_msg",fn:function(){return[a("span",{style:{color:e.sitem.error_msg?"red":""}},[e._v(e._s(e.sitem.error_msg||"--"))])]},proxy:!0}],null,!1,2278773076)}):e._e(),a("el-form",{ref:"ruleForm",attrs:{model:e.ruleForm,"status-icon":"",size:"mini",rules:e.rulesThis,"label-width":"0px"}},[a("div",{staticClass:"tab-row"},[a("div",{staticClass:"tab-item-label"},[a("label",{staticStyle:{color:"transparent"}},[e._v("*")]),e._v("字段 ")]),a("div",{staticClass:"tab-item-main"},[a("el-row",{staticClass:"tab-title"},[a("el-col",{attrs:{span:4}},[e._v("文件导入数据")]),a("el-col",{attrs:{span:9}},[e._v("系统解析数据")]),a("el-col",{attrs:{span:11}},[e._v("确认后的数据")])],1)],1)]),e.importSitem&&e.importSitem.platform_code&&e.confirmSitem&&e.confirmSitem.platform_code?a("div",[a("div",{staticClass:"tab-row"},[a("div",{staticClass:"tab-item-label"},[a("div",[a("label",{staticStyle:{color:"red"}},[e._v("*")]),e._v("平台订单号")]),a("div",[a("label",{staticStyle:{color:"transparent"}},[e._v("*")]),e._v("其他单号")])]),a("div",{staticClass:"tab-item-main"},[a("el-row",{staticClass:"tab-title"},[a("el-col",{attrs:{span:4}},[a("div",{staticStyle:{"min-height":"26px","word-break":"break-all"}},[e._v(" "+e._s(e.importSitem.platform_code)+" ")]),a("div",{staticStyle:{"min-height":"26px","word-break":"break-all"}},[e._v(" "+e._s(e.importSitem.po_code)+" ")])]),a("el-col",{attrs:{span:9}},[a("div",{staticStyle:{"min-height":"26px","word-break":"break-all"}},[e._v(" "+e._s(e.confirmSitem.platform_code)+" ")]),a("div",{staticStyle:{"min-height":"26px","word-break":"break-all"}},[e._v(" "+e._s(e.confirmSitem.po_code)+" ")])]),a("el-col",{staticClass:"nop",attrs:{span:11}},[a("el-row",[a("el-col",{staticClass:"border",attrs:{span:12}},[a("el-form-item",{attrs:{prop:"platform_code"}},[a("el-input",{attrs:{maxlength:"100",disabled:!("2"===e.status&&e.powers.some((function(e){return"008"==e}))),placeholder:"平台订单号"},model:{value:e.ruleForm.platform_code,callback:function(t){e.$set(e.ruleForm,"platform_code",t)},expression:"ruleForm.platform_code"}})],1)],1),a("el-col",{staticClass:"border",attrs:{span:12}},[a("el-form-item",{attrs:{prop:"po_code"}},[a("el-input",{attrs:{maxlength:"100",disabled:!("2"===e.status&&e.powers.some((function(e){return"008"==e}))),placeholder:"其他单号"},model:{value:e.ruleForm.po_code,callback:function(t){e.$set(e.ruleForm,"po_code",t)},expression:"ruleForm.po_code"}})],1)],1)],1)],1)],1)],1)]),a("div",{staticClass:"tab-row"},[a("div",{staticClass:"tab-item-label"},[a("div",[a("label",{staticStyle:{color:"red"}},[e._v("*")]),e._v("平台订单下单时间")]),a("div",[a("label",{staticStyle:{color:"red"}},[e._v("*")]),e._v("平台商品编号")])]),a("div",{staticClass:"tab-item-main"},[a("el-row",{staticClass:"tab-title"},[a("el-col",{attrs:{span:4}},[a("div",{staticStyle:{"min-height":"26px","word-break":"break-all"}},[e._v(" "+e._s(e.importSitem.platform_time)+" ")]),a("div",{staticStyle:{"min-height":"26px","word-break":"break-all"}},[e._v(" "+e._s(e.importSitem.plat_code)+" ")])]),a("el-col",{attrs:{span:9}},[a("div",{staticStyle:{"min-height":"26px","word-break":"break-all"}},[e._v(" "+e._s(e.confirmSitem.platform_time)+" ")]),a("div",{staticStyle:{"min-height":"26px","word-break":"break-all"}},[e._v(" "+e._s(e.confirmSitem.plat_code)+" ")]),e.conGoodData&&e.conGoodData.good_thumb_img?a("div",[a("show-data-table",{attrs:{sitem:e.conGoodData,columns:e.onlineColumns,border:!0}},[a("template",{slot:"good_name"},[e.conGoodData.good_thumb_img?a("img",{directives:[{name:"viewer",rawName:"v-viewer"}],staticClass:"fl hover",staticStyle:{width:"23px",height:"23px",margin:"0 5px 0 0"},attrs:{src:e.conGoodData.good_thumb_img,alt:""}}):e._e(),a("span",[e._v(e._s(e.conGoodData.good_name))]),e._l(e.conGoodData.speclist,(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)+"]")])])})),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.conGoodData.skuCode))])]),""!==e.newTime&&e.private_field&&0 table > tbody");i.a.create(t,{disabled:!this.isRowDrop,ghostClass:"sortable-ghost",animation:180,delay:0,onEndevt:function(t){var a=e.data.splice(t.oldIndex,1)[0];e.data.splice(t.newIndex,0,a)}})},columnDrop:function(){var e=this,t=document.querySelector(".el-table__header-wrapper tr");i.a.create(t,{disabled:!this.isColDrop,ghostClass:"sortable-ghost",animation:180,delay:0,onEnd:function(t){var a=e.columns.splice(t.oldIndex,1)[0];e.columns.splice(t.newIndex,0,a)}})},getObjPrototype:function(e,t){return new Function("obj","return obj.".concat(t))(e)},doLayout:function(){var e;(e=this.$refs.elTable).doLayout.apply(e,arguments)},clearSelection:function(){var e;(e=this.$refs.elTable).clearSelection.apply(e,arguments)},toggleRowSelection:function(){var e;(e=this.$refs.elTable).toggleRowSelection.apply(e,arguments)},toggleAllSelection:function(){var e;(e=this.$refs.elTable).toggleAllSelection.apply(e,arguments)},setCurrentRow:function(){var e;(e=this.$refs.elTable).setCurrentRow.apply(e,arguments)},toggleRowExpansion:function(){var e;(e=this.$refs.elTable).toggleRowExpansion.apply(e,arguments)}}),r=n,a("1543"),a("5730"),n=a("2877"),a=Object(n.a)(r,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("div",{staticClass:"table-header"},[e._l(e.table._defaultHeader_,(function(t,r){return["setcol"==t?a("el-dropdown",{key:r,staticClass:"setcol-table-lie",attrs:{placement:"bottom-end",trigger:"click","hide-on-click":!1}},[a("el-button",{attrs:{size:"small"}},[e._v("列设置")]),a("el-dropdown-menu",{class:"ex-table-setcol-dropdown",attrs:{slot:"dropdown"},slot:"dropdown"},[e._l(e.setColumns,(function(t,r){return[t._noset_?e._e():a("el-dropdown-item",{key:"setColumns"+r},[a("el-switch",{attrs:{"active-text":t.label,"active-value":!1,"inactive-value":!0},model:{value:t._hidden_,callback:function(a){e.$set(t,"_hidden_",a)},expression:"column._hidden_"}})],1)]}))],2)],1):e._e()]})),e._t("table-header",null,{selection:e.tableSelection,alldata:e.data})],2),a("el-table",e._g(e._b({ref:"elTable",staticStyle:{width:"100%"},attrs:{data:e.data,size:e.size,"span-method":e.arraySpanMethod},on:{"selection-change":function(t){e.tableSelection=t}}},"el-table",e.table,!1),e.$listeners),[e._l(e.columns,(function(t,r){return[t._hidden_||!t.type||t._slot_?t._hidden_?e._e():a("el-table-column",e._b({key:r,attrs:{"show-overflow-tooltip":""},scopedSlots:e._u([{key:"header",fn:function(r){return[a("span",[e._v(e._s(t.label))]),t._screen_?a("span",{on:{click:function(a){return a.stopPropagation(),e.addConditionItemByCol(t,r)}}},[!1===t._screen_tip_?a("i",{staticClass:"el-icon-connection",style:e.isHasScreenColumn(t)?"color:#3888e5;":""}):a("el-tooltip",{attrs:{effect:t._screen_tip_effect_||"dark",content:t._screen_tip_||"筛选",placement:t._screen_tip_placement_||"top"}},[a("i",{staticClass:"el-icon-connection",style:e.isHasScreenColumn(t)?"color:#3888e5;":""})])],1):e._e()]}},{key:"default",fn:function(r){return t._slot_?e._t(t._slot_,null,{scope:r}):t._render_?[a("ex-slot",{attrs:{column:t,render:t._render_,scope:r}})]:[a("span",[e._v(e._s(t._format_?t._format_(r.row):e.getObjPrototype(r.row,t.prop)))])]}}],null,!0)},"el-table-column",t,!1)):a("el-table-column",e._b({key:r,attrs:{align:"center",width:"45px"}},"el-table-column",t,!1))]}))],2),!1!==e.page&&e.data&&0n?r(new Error("起订量不能大于活动库存数!")):r()},trigger:"blur"}],cost_price:[{required:!0,validator:function(e,t,a){""===t?a(new Error("成本单价不能为空!")):a()},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.rulesThis=e.rules,t.next=4,e.resetForm();case 4:e.loading=!1;case 5:case"end":return t.stop()}}),t)})))()},resetForm:function(){var e=this;return Object(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=e.sitem?JSON.parse(JSON.stringify(e.sitem)):{skuCode:"",good_name:"",activity_stock:"",moq_num:"",cost_price:""})}));case 2:case"end":return t.stop()}}),t)})))()},moq_num_change:function(e){this.ruleForm.moq_num=e+"",this.$refs.ruleForm.validateField("moq_num")},cost_price_change:function(e){this.ruleForm.cost_price=e+"",this.$refs.ruleForm.validateField("cost_price")},submitForm:function(){var e=this;return Object(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;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!a){t.next=4;break}e.loading||(e.loading=!0,r=JSON.parse(JSON.stringify(e.ruleForm)),e.showModelThis=!1,e.$emit("refresh",r)),t.next=6;break;case 4:return t.abrupt("return",!1);case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()}}});a("9b16"),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:"编辑活动信息",center:!0,align:"left",top:"12vh",width:"600px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)"},on:{"update:visible":function(t){e.showModelThis=t},close:function(t){e.showModelThis=!1}}},[t("el-card",{staticStyle:{margin:"-20px 0 0 0"}},[t("el-row",{attrs:{gutter:10}},[t("el-col",{attrs:{span:24}},[t("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",rules:e.rulesThis,"label-width":"80px"}},[t("el-form-item",{attrs:{label:"商品编号",prop:"skuCode"}},[t("el-input",{attrs:{placeholder:"商品编号",maxlength:"100",disabled:""},model:{value:e.ruleForm.skuCode,callback:function(t){e.$set(e.ruleForm,"skuCode",t)},expression:"ruleForm.skuCode"}})],1),t("el-form-item",{attrs:{label:"商品名称",prop:"good_name"}},[t("el-input",{attrs:{disabled:"",placeholder:"商品名称",maxlength:"100"},model:{value:e.ruleForm.good_name,callback:function(t){e.$set(e.ruleForm,"good_name",t)},expression:"ruleForm.good_name"}})],1),t("el-form-item",{attrs:{label:"活动库存",prop:"activity_stock"}},[t("el-input",{attrs:{placeholder:"活动库存",disabled:"",maxlength:"100"},model:{value:e.ruleForm.activity_stock,callback:function(t){e.$set(e.ruleForm,"activity_stock",t)},expression:"ruleForm.activity_stock"}})],1),t("el-form-item",{attrs:{label:"起订量",prop:"moq_num"}},[t("digital-input",{attrs:{values:e.ruleForm.moq_num,placeholder:"起订量",min:0,max:1e11,position:"right",precision:0,controls:!1,append:""},on:{reschange:e.moq_num_change}})],1),t("el-form-item",{attrs:{label:"成本单价",prop:"cost_price"}},[t("digital-input",{attrs:{values:e.ruleForm.cost_price,placeholder:"起订量",min:0,max:1e11,position:"right",precision:2,controls:!1,append:"元"},on:{reschange:e.cost_price_change}})],1)],1)],1),t("el-col",{staticStyle:{"text-align":"right"},attrs:{span:24}},["007"!==e.id?t("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("保 存 ")]):e._e(),t("el-button",{on:{click:function(t){e.showModelThis=!1}}},[e._v(e._s("007"==e.id?"关 闭":"取 消"))])],1)],1)],1)],1)}),[],!1,null,"6be0521e",null);t.default=a.exports},"2f3b6":function(e,t,a){"use strict";a("baf2")},"2fb2b":function(e,t,a){},"2fca":function(e,t,a){},3028:function(e,t,a){},"303c":function(e,t,a){"use strict";a("32ac")},"305b":function(e,t,a){"use strict";a.r(t);var r=a("1da1"),n=a("5530"),i=(a("96cf"),a("7db0"),a("d3b7"),a("d81d"),a("a9e3"),a("f5ed")),s=a("9f53"),o=a("1b69"),l="admin/",c=function(e,t){return Object(o.a)(l+"expresslist",e,"post",t)},u=function(e,t){return Object(o.a)(l+"expressuse",e,"post",t)},d=a("2f62");i={name:"expressSet",mixins:[i.a,s.a],computed:Object(n.a)(Object(n.a)({},Object(d.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"expressSet"==e.menu_route}))||{};e=(null!==e?e:{}).action;return null!=e?e:[]}}),data:function(){return{sitem:null,expressType:[{type:"0",label:"国内"},{type:"1",label:"国际"},{type:"2",label:"国际邮政"}],statusOptions:[{id:"0",label:"禁用"},{id:"1",label:"启用"}],loading:!0,parmValue:{type:"",name:"",page:1,size:15},tableData:[],table:{stripe:!0,border:!0,_defaultHeader_:["setcol"]},pageInfo:{size:15,curr:1,total:0},columns:[{prop:"comTypeName",label:"快递类型名称"},{prop:"name",label:"快递名称"},{prop:"shortName",label:"快递简称"},{prop:"shortNameEn",label:"快递英文"},{prop:"type",label:"快递属性",_slot_:"type",width:"100px"},{prop:"canOrder",label:"状态",_slot_:"status",width:"80px"},{prop:"",label:"操作",fixed:"right",_noset_:!0,_slot_:"operation",width:"50px"}]}},mounted:function(){this.searchList()},methods:{restSearch:function(){this.parmValue={type:"",name:"",page:1,size:15},this.pageInfo={size:15,curr:1,total:0},this.searchList()},openModal:function(e,t,a){},searchList: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.loading=!0,t.next=3,c(e.parmValue);case 3:if(!(a=t.sent)||0!==a.code||!a.data){t.next=10;break}e.tableData=a.data.list,e.tableData.map((function(e){return e.status=e.type,e})),e.pageInfo.total=Number(a.data.count),t.next=17;break;case 10:if(a&&100<=a.code&&a.code<=104)return t.next=13,e.logout();t.next=15;break;case 13:t.next=17;break;case 15:e.tableData=[],e.pageInfo.total=0;case 17:e.loading=!1;case 18:case"end":return t.stop()}}),t)})))()},statusConfirm: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:return i="1"===t?"禁用":"启用",n.next=3,a.$confirm("确定要改为"+i+"?",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(r.a)(regeneratorRuntime.mark((function r(){var n,i;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,u(n);case 4:if((i=r.sent)&&0===i.code)return a.loading=!1,a.$notify.success({title:"状态修改成功!",message:""}),r.next=10,a.searchList();r.next=12;break;case 10:r.next=18;break;case 12:if(i&&100<=i.code&&i.code<=104)return r.next=15,a.logout();r.next=17;break;case 15:r.next=18;break;case 17:a.$message.warning(i.message);case 18:case"end":return r.stop()}}),r)})))).catch((function(){}));case 3:case"end":return n.stop()}}),n)})))()}}},s=a("2877"),n=Object(s.a)(i,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"expressSet pagePadding"},[e.powers.some((function(e){return"001"==e}))?a("div",[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",{attrs:{span:24}},[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.type,callback:function(t){e.$set(e.parmValue,"type",t)},expression:"parmValue.type"}},e._l(e.expressType,(function(e){return a("el-option",{key:"status"+e.type,attrs:{label:e.label,value:e.type}})})),1)],1),a("el-col",{staticStyle:{width:"220px",padding:"0 0 0 10px"},attrs:{span:4}},[a("el-input",{attrs:{size:e.searchSize,maxlength:40,placeholder:"快递名称"},model:{value:e.parmValue.name,callback:function(t){e.$set(e.parmValue,"name",t)},expression:"parmValue.name"}})],1),a("el-col",{staticStyle:{width:"54px"},attrs:{span:4}},[a("el-button",{staticClass:"fr",attrs:{size:e.searchSize,type:"primary",icon:"el-icon-search"},on:{click:e.searchList}})],1),a("el-col",{staticStyle:{width:"66px"},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)],1)]}},{key:"status",fn:function(t){var r=t.scope;return[a("el-tag",{attrs:{size:e.tablebtnSize,type:"0"==r.row.canOrder?"warning":""},domProps:{textContent:e._s((e.statusOptions.find((function(e){return e.id==r.row.canOrder}))||{}).label||"--")}})]}},{key:"type",fn:function(t){var r=t.scope;return[a("el-tag",{attrs:{size:e.tablebtnSize,type:"0"==r.row.type?"warning":""},domProps:{textContent:e._s((e.expressType.find((function(e){return e.type==r.row.status}))||{}).label||"--")}})]}},{key:"operation",fn:function(t){var r=t.scope;return[e.powers.some((function(e){return"007"==e}))?a("el-tooltip",{attrs:{effect:"dark",content:"详情",placement:"top"}},[a("i",{staticClass:"el-icon-view tb-icon",on:{click:function(t){return e.openModal(r.row.id,!0,r.row)}}})]):e._e(),e.powers.some((function(e){return"005"==e}))?a("el-tooltip",{attrs:{effect:"dark",content:"修改",placement:"top"}},[a("i",{staticClass:"el-icon-edit tb-icon",on:{click:function(t){return e.openModal(r.row.id,!1,r.row)}}})]):e._e(),e.powers.some((function(e){return"004"==e}))&&"1"===r.row.canOrder?a("el-tooltip",{attrs:{effect:"dark",content:"禁用",placement:"top"}},[a("i",{staticClass:"el-icon-video-pause tb-icon",on:{click:function(t){return e.statusConfirm(r.row.id,r.row.status)}}})]):e._e(),e.powers.some((function(e){return"004"==e}))&&"0"===r.row.canOrder?a("el-tooltip",{attrs:{effect:"dark",content:"启用",placement:"top"}},[a("i",{staticClass:"el-icon-video-play tb-icon",on:{click:function(t){return e.statusConfirm(r.row.id,r.row.canOrder)}}})]):e._e()]}}],null,!1,1115089712)})],1):a("div",[a("no-auth")],1)])}),[],!1,null,"915d6c80",null);t.default=n.exports},3077:function(e,t,a){},"308c":function(e,t,a){"use strict";a("199f")},"30a4":function(e,t,a){},"311d":function(e,t,a){},"312a":function(e,t,a){},"315e":function(e,t,a){},3169:function(e,t,a){},3177:function(e,t,a){"use strict";a.r(t);var r=a("1da1"),n=a("5530"),i=(a("96cf"),a("7db0"),a("d3b7"),a("e9c4"),a("a9e3"),a("f5ed")),s=a("9f53"),o=a("5daa"),l=a("9423"),c=a("683e"),u=a("65edf"),d=a("2f62");i={name:"goodsOffline",mixins:[i.a,s.a],components:{periodDatePickerActive:c.default},computed:Object(n.a)(Object(n.a)({},Object(d.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"goodsOffline"==e.menu_route}))||{};e=(null!==e?e:{}).action;return null!=e?e:[]}}),data:function(){return{changeList:[],fileUrl:o.a.baseURL,loading:!1,parmValue:{start_date:"",end_date:"",creater:"",page:1,size:15},tableData:[],table:{stripe:!0,border:!0,_defaultHeader_:["setcol"]},pageInfo:{size:15,curr:1,total:0},columns:u.a}},mounted:function(){var e,t=this.$route.query.back;t&&(this.parmValue=JSON.parse(t),e=(t=this.parmValue).page,t=t.size,this.pageInfo={size:t,curr:e,total:0}),this.searchList()},methods:{getRouter:function(e,t){var a;e&&t?(t={id:t,type:"view"},a={options:JSON.parse(JSON.stringify(this.parmValue)),router:this.$route.path},t.preModel=JSON.stringify(a),this.routeGoto(e,t)):this.$message.warning("暂未找到相关流程!")},searchList: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:if(""!==e.parmValue.start_date&&""===e.parmValue.end_date||""===e.parmValue.start_date&&""!==e.parmValue.end_date)return e.$message.warning("时间区间不完整!"),t.abrupt("return");t.next=3;break;case 3:return e.loading=!0,t.next=7,l.a.goodofflist(e.parmValue);case 7:if(!(a=t.sent)||0!==a.code||!a.data){t.next=13;break}e.tableData=a.data.list,e.pageInfo.total=Number(a.data.count),t.next=21;break;case 13:if(a&&100<=a.code&&a.code<=104)return t.next=16,e.logout();t.next=18;break;case 16:t.next=21;break;case 18:e.$message.warning(a.message),e.tableData=[],e.pageInfo.total=0;case 21:e.loading=!1;case 22:case"end":return t.stop()}}),t)})))()},restSearch:function(){this.parmValue={start_date:"",end_date:"",creater:"",page:1,size:15},this.pageInfo={size:15,curr:1,total:0},this.searchList()},time: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_date=e.startTime||"",t.parmValue.end_date=e.endTime||"",""!==t.parmValue.start_date&&""===t.parmValue.end_date||""===t.parmValue.start_date&&""!==t.parmValue.end_date)return t.$message.warning("时间区间不完整!"),a.abrupt("return");a.next=5;break;case 5:return t.pageInfo.curr=1,t.parmValue.page=1,a.next=9,t.searchList();case 9:case"end":return a.stop()}}),a)})))()},selection_change:function(e){e=e.list,this.changeList=0n.offsetTop-80&&(t.currentAnchor=a.tar)})))}}},a("bf9e"),a=a("2877"),a=Object(a.a)(n,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("div",{class:e.float?"cec-anchor_float":"cec-anchor",style:{height:e.height}},[t("div",{class:"anchor-header "+(e.float?e.getHeaderPosition:"")},[t("div",{staticClass:"anchor-trunk",style:{height:e.getAnchorLinkHeight}}),t("div",{staticClass:"anchor-link",style:{height:e.getAnchorLinkHeight}},[t("AnchorLink",{attrs:{data:e.data,currentAnchor:e.currentAnchor},on:{goAnchor:e.goAnchor}})],1)]),t("div",{ref:"anchor-body",staticClass:"anchor-body",on:{scroll:function(t){return e.scrollEvent(t)}}},[e._t("default")],2)])}),[],!1,null,"67ab6912",null);t.default=a.exports},"433b":function(e,t,a){"use strict";a("315e")},"43b0":function(e,t,a){"use strict";var r=a("1b69"),n=a("0e14"),i="admin/";t.a={list:function(e,t){return Object(r.a)(i+"receiptlist",e,"post",t)},clist:function(e,t){return Object(r.a)(i+"customerlist",e,"post",t)},receiptexport:function(e,t){return Object(r.a)(i+"receiptexport",e,"post",t)},receiptimport:function(e,t){return Object(r.a)(i+"receiptimport",e,"post",t)},add:function(e,t){return Object(r.a)(i+"execsave",e,"post",t)},exportList:function(e,t){return Object(r.a)(i+"execlist",e,"post",t)},hlist:function(e,t){return Object(n.a)(i+"execnowlist",e,"post",t)},download:function(e,t){return Object(n.a)(i+"execnowdown",e,"post",t)},realNewList:function(e,t){return Object(r.a)(i+"nowlist",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("6a1e"),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.k)(t)?a():a(new Error("手机号不正确!"))}}],code:[{required:!0,trigger:"blur",validator:function(e,t,a){""===t?a(new Error("验证码不能为空!")):Object(n.p)(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.e)(t)||t.length<6||16new Date(e.endTime).valueOf()}},pickerOptions2:{disabledDate:function(t){if(null!=e.startTime&&""!=e.startTime&&t)return t.getTime()",l.forEach((function(e){c+="
  • ".concat(e.skuCode,"__").concat(e.good_name,"
  • ")})),c+="",e.$notify({title:"新毛利已影响以下线上商品售价,请下线后再修改!",dangerouslyUseHTMLString:!0,message:c})):e.$message.warning(o);case 24:t.next=28;break;case 26:return t.abrupt("return",!1);case 28:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()}}};a("bf59"),a=a("2877"),a=Object(a.a)(i,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:"设置毛利率",center:!0,align:"left",top:"12vh",width:"600px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)"},on:{"update:visible":function(t){e.showModelThis=t},close:function(t){e.showModelThis=!1}}},[t("el-card",{staticStyle:{margin:"-20px 0 0 0"}},[t("el-row",{attrs:{gutter:0}},[t("el-col",{attrs:{span:24}},[t("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",size:"small",rules:e.rulesThis,"label-width":"110px"}},[t("el-form-item",{attrs:{label:"分类名称",prop:"cat_name"}},[t("el-input",{attrs:{disabled:"",placeholder:"分类名称",maxlength:"20"},model:{value:e.ruleForm.cat_name,callback:function(t){e.$set(e.ruleForm,"cat_name",t)},expression:"ruleForm.cat_name"}},[e.pid_name?t("template",{slot:"prepend"},[e._v(e._s(e.pid_name))]):e._e()],2)],1),t("el-form-item",{attrs:{label:"财务核算码",prop:"fund_code"}},[t("el-input",{attrs:{disabled:"",placeholder:"财务核算码",maxlength:"50"},model:{value:e.ruleForm.fund_code,callback:function(t){e.$set(e.ruleForm,"fund_code",t)},expression:"ruleForm.fund_code"}})],1),t("el-form-item",{attrs:{label:"成本→售价",prop:"sale_rate"}},[t("digital-input",{attrs:{values:e.ruleForm.sale_rate,placeholder:"成本→售价",min:-100,max:1e11,position:"right",precision:2,size:"mini",controls:!1,append:"%"},on:{reschange:function(t){return e.rate_change(t,"sale_rate")}}})],1)],1)],1),t("el-col",{staticStyle:{"text-align":"right"},attrs:{span:24}},["007"!==e.id?t("el-button",{attrs:{type:"primary",size:"small"},on:{click:e.submitForm}},[e._v("保 存 ")]):e._e(),t("el-button",{attrs:{size:"small"},on:{click:function(t){e.showModelThis=!1}}},[e._v(e._s("007"==e.id?"关 闭":"取 消"))])],1)],1)],1)],1)}),[],!1,null,"3b07a7b8",null);t.default=a.exports},"593c":function(e,t,a){},"594e":function(e,t,a){},5975:function(e,t,a){"use strict";a.r(t);var r=a("1da1"),n=a("5530"),i=(a("96cf"),a("7db0"),a("d3b7"),a("e9c4"),a("a9e3"),a("f5ed")),s=a("9f53"),o=a("1120"),l=a("2f62"),c=a("fa93");i={name:"stockApply",mixins:[i.a,s.a],computed:Object(n.a)(Object(n.a)({},Object(l.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"stockApply"==e.menu_route}))||{};e=(null!==e?e:{}).action;return null!=e?e:[]}}),data:function(){return{options:[{value:"1",label:"待采购反馈"},{value:"2",label:"已生成采购单"}],select:"1",input:"",loading:!0,parmValue:{good_code:"",bk_code:"",status:"",apply_name:"",start:"",end:"",good_name:"",page:1,size:15,company_name:""},tableData:[],table:{stripe:!0,border:!0,_defaultHeader_:["setcol"]},pageInfo:{size:15,curr:1,total:0},columns:c.a}},mounted:function(){var e,t=this.$route.query.back;t?(this.parmValue=JSON.parse(t),e=(t=this.parmValue).page,t=t.size,this.pageInfo={size:t,curr:e,total:0},this.select=this.parmValue.select,this.input=this.parmValue.input):this.select="1",this.searchList()},methods:{getRouter:function(e,t){var a;e&&t?(t={id:t,type:"view"},this.parmValue.select=this.select,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("暂未找到相关流程!")},handleTime:function(e){e?(this.parmValue.start=e.startTime,this.parmValue.end=e.endTime):(this.parmValue.start="",this.parmValue.end=""),(""!=this.parmValue.start&&""!=this.parmValue.end||""===this.parmValue.start&&""===this.parmValue.end)&&this.searchList()},restSearch:function(){this.select="",this.input="",this.parmValue={status:"",apply_name:"",good_code:"",good_name:"",start:"",end:"",bk_code:"",page:1,size:15,company_name:""},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;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(""!==e.parmValue.start&&""===e.parmValue.end||""==e.parmValue.start&&""!=e.parmValue.end)return e.$message.warning("开始时间和结束时间不能为空"),t.abrupt("return");t.next=3;break;case 3:return e.loading=!0,e.parmValue.bk_code="1"===e.select?e.input:"",e.parmValue.good_code="2"===e.select?e.input:"",e.parmValue.good_name="3"===e.select?e.input:"",e.parmValue.apply_name="4"===e.select?e.input:"",e.parmValue.company_name="5"===e.select?e.input:"",t.next=11,o.a.list(e.parmValue);case 11:if(!(a=t.sent)||0!==a.code||!a.data){t.next=17;break}e.tableData=a.data.list,e.pageInfo.total=Number(a.data.count),t.next=24;break;case 17:if(a&&100<=a.code&&a.code<=104)return t.next=20,e.logout();t.next=22;break;case 20:t.next=24;break;case 22:e.tableData=[],e.pageInfo.total=0;case 24:e.loading=!1;case 25:case"end":return t.stop()}}),t)})))()}}},s=a("2877"),n=Object(s.a)(i,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"stockApply pagePadding"},[e.powers.some((function(e){return"001"==e}))?a("div",[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",{attrs:{span:24}},[a("el-col",{staticStyle:{width:"295px"},attrs:{span:4}},[a("period-date-picker",{attrs:{start:e.parmValue.start,end:e.parmValue.end,width:"135px",size:e.searchSize},on:{timeReturned:e.handleTime}})],1),a("el-col",{staticStyle:{width:"200px",padding:"0 0 0 10px"}},[a("el-select",{attrs:{clearable:"",size:e.searchSize,placeholder:"备库申请状态"},on:{change:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.parmValue.status,callback:function(t){e.$set(e.parmValue,"status",t)},expression:"parmValue.status"}},e._l(e.options,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],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)],1),a("el-row",{staticStyle:{"padding-top":"10px"}},[a("el-col",{staticStyle:{width:"400px"}},[a("el-input",{attrs:{placeholder:"关键字",maxlength:"40",size:e.searchSize},model:{value:e.input,callback:function(t){e.input=t},expression:"input"}},[a("el-select",{staticStyle:{width:"130px"},attrs:{slot:"prepend",placeholder:"关键字类型"},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"}}),a("el-option",{attrs:{label:"商品名称",value:"3"}}),a("el-option",{attrs:{label:"申请人",value:"4"}}),a("el-option",{attrs:{label:"申请人部门",value:"5"}})],1),a("el-button",{attrs:{slot:"append",icon:"el-icon-search"},on:{click:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},slot:"append"})],1)],1),e.powers.some((function(e){return"003"==e}))?a("el-col",{staticClass:"fr",staticStyle:{width:"56px"},attrs:{span:3}},[a("el-button",{staticClass:"fl",attrs:{size:e.searchSize,type:"success"},on:{click:function(t){return e.routeGoto("stockApplyDetail",{id:"add",type:"add"})}}},[e._v(" 新建 ")])],1):e._e()],1)],1)]}},{key:"status",fn:function(t){var r=t.scope;return[a("el-tag",{attrs:{size:e.tablebtnSize,type:"0"==r.row.status?"warning":"3"==r.row.status?"success":"4"==r.row.status?"danger":""},domProps:{textContent:e._s((e.options.find((function(e){return e.value==r.row.status}))||{}).label||"--")}})]}},{key:"operation",fn:function(t){var r=t.scope;return[e.powers.some((function(e){return"007"==e}))?a("el-tooltip",{attrs:{effect:"dark",content:"详情",placement:"top"}},[a("i",{staticClass:"el-icon-view tb-icon",on:{click:function(t){return e.getRouter("stockApplyDetail",r.row.id)}}})]):e._e()]}}],null,!1,2886415135)})],1):a("div",[a("no-auth")],1)])}),[],!1,null,null,null);t.default=n.exports},"59b3":function(e,t,a){"use strict";a.r(t);var r=a("1da1"),n=a("5530"),i=(a("96cf"),a("ac1f"),a("1276"),a("d3b7"),a("159b"),a("b0c0"),a("a9e3"),a("e9c4"),a("3ca3"),a("ddb0"),a("2b3d"),a("9861"),a("f5ed")),s=a("9f53"),o=a("5daa"),l=a("b439"),c=a("ed1a"),u=a("ec2f"),d=a("2f62");i={name:"purchaseOrder",mixins:[i.a,s.a],components:{periodDatePickerActive:c.default},computed:Object(n.a)({},Object(d.b)(["tablebtnSize","searchSize","size"])),data:function(){return{newTime:"",month:"",editOld:{},editNew:{},changeList:[],showData:[],fileUrl:o.a.baseURL,loading:!1,parmValue:{creater:"",supplier_name:"",start_date:"",end_date:"",page:1,size:15},tableData:[],table:{stripe:!0,border:!0,_defaultHeader_:["setcol"]},pageInfo:{size:15,curr:1,total:0},table3:u.c}},mounted:function(){this.month=this.transformTime(),this.getNewTime()},methods:{transformTime:function(){var e=new Date,t=e.getFullYear();e=e.getMonth()+1;return t+"-"+(e<10?"0"+e:e)},getNewTime:function(){this.newTime=(new Date).valueOf()},get_key_value:function(e,t){return"good_img"===e||"good_info_img"===e||"good_thumb_img"===e?t[e]?(t[e]||"").split(","):[]:t[e]},searchList: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:if(e.loading)return t.abrupt("return");t.next=2;break;case 2:if(""!==e.parmValue.start_date&&""===e.parmValue.end_date||""===e.parmValue.start_date&&""!==e.parmValue.end_date)return e.$message.warning("请选择时间!"),e.tableData=[],e.pageInfo.total=0,t.abrupt("return");t.next=7;break;case 7:return e.loading=!0,t.next=10,l.a.goodSimpleZhao(e.parmValue);case 10:if(!(a=t.sent)||0!==a.code||!a.data){t.next=18;break}e.tableData=a.data.list,e.tableData.forEach((function(e){e.cat_name="",(e.catinfo||[]).forEach((function(t,a){e.cat_name+=0==a?t.name:"/"+t.name}))})),e.pageInfo.total=Number(a.data.count),t.next=26;break;case 18:if(a&&100<=a.code&&a.code<=104)return t.next=21,e.logout();t.next=23;break;case 21:t.next=26;break;case 23:e.tableData=[],e.pageInfo.total=0,e.$message.warning(a.message);case 26:e.loading=!1;case 27:case"end":return t.stop()}}),t)})))()},restSearch:function(){this.month=this.transformTime(),this.parmValue.page=1,this.parmValue.sizee=15,this.parmValue.creater="",this.parmValue.supplier_name="",this.pageInfo={size:15,curr:1,total:0},this.getNewTime()},time: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_date=e.startTime||"",t.parmValue.end_date=e.endTime||"",t.month=e.value,""!==t.parmValue.start_date&&""===t.parmValue.end_date||""===t.parmValue.start_date&&""!==t.parmValue.end_date)return t.$message.warning("请选择时间!"),a.abrupt("return");a.next=6;break;case 6:return t.pageInfo.curr=1,t.parmValue.page=1,a.next=10,t.searchList();case 10:case"end":return a.stop()}}),a)})))()},selection_change:function(e){e=e.list,this.changeList=0 0"}],staticClass:"Pagination",staticStyle:{"text-align":"right","margin-top":"10px"}},[a("el-pagination",{attrs:{size:e.searchSize,"current-page":e.parmValue.page,"page-sizes":[15,50,100],"page-size":e.parmValue.size,layout:"total, sizes, prev, pager, next, jumper",total:e.count},on:{"size-change":e.handleSizeChange,"current-change":e.handlePageChange}})],1)],1):a("no-auth")],1)}),[],!1,null,"5a876e77",null);t.default=n.exports},"5e63":function(e,t,a){},"5e89":function(e,t,a){var r=a("861d"),n=Math.floor;e.exports=function(e){return!r(e)&&isFinite(e)&&n(e)===e}},"5ef5":function(e,t,a){"use strict";a("cb59")},"5f08":function(e,t,a){"use strict";var r=a("1da1"),n=a("ade3"),i=a("5530"),s=(a("96cf"),a("d3b7"),a("159b"),a("b0c0"),a("a9e3"),a("e9c4"),a("d81d"),a("1b69")),o=function(e,t){return Object(s.a)("admin/checkflist",e,"post",t)},l=a("9f53"),c=a("f5ed"),u=a("2f62"),d=[{type:"selection",fixed:"left",_noset_:!0,width:"45",align:"center"},{prop:"spuCode",label:"商品编码",width:"158"},{prop:"good_name",label:"商品名称",_slot_:"good_name","min-width":"200"},{prop:"class_cat",label:"分类",width:"170"},{prop:"brand_name",label:"品牌",width:"100"},{prop:"unit",label:"单位",width:"50"},{prop:"usable_stock",label:"可用库存",width:"110"}];l={name:"searchStockGoodModal",mixins:[l.a,c.a],computed:Object(i.a)({},Object(u.b)(["tablebtnSize","searchSize","size"])),props:["showModel","once","code","good_code","cat_id"],data:function(){var e={options:[],multipleSelection:[],selectLoading:!1,loading:!0,showModelThis:!1,parmValue:{wsm_code:"",cat_id:"",page:1,size:10},tableData:[],passwordModel:!1,passwordModelId:0,isPasswordDetail:!1};return Object(n.a)(e,"tableData",[]),Object(n.a)(e,"table",{stripe:!0,border:!0}),Object(n.a)(e,"pageInfo",{size:10,curr:1,total:0}),Object(n.a)(e,"columns",d),e},watch:{showModel:function(e){(this.showModelThis=e)&&(this.supplierCode=[],this.searchList())},showModelThis:function(e){e||this.$emit("cancel")}},methods:{restSearch:function(){this.parmValue={wsm_code:"",cat_id:"",page:1,size:10},this.pageInfo={size:10,curr:1,total:0},this.searchList()},searchList:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,e.parmValue.wsm_code=e.code||"",e.parmValue.type_code=e.good_code||"",e.parmValue.stock_max="1",e.parmValue.cat_id=e.cat_id,t.next=7,o(e.parmValue);case 7:if(!(a=t.sent)||0!==a.code||!a.data){t.next=14;break}e.tableData=a.data.list,e.tableData.forEach((function(e){e.class_cat="",e.can&&0 table > tbody");i.a.create(t,{disabled:!this.isRowDrop,ghostClass:"sortable-ghost",animation:180,delay:0,onEndevt:function(t){var a=e.data.splice(t.oldIndex,1)[0];e.data.splice(t.newIndex,0,a)}})},columnDrop:function(){var e=this,t=document.querySelector(".el-table__header-wrapper tr");i.a.create(t,{disabled:!this.isColDrop,ghostClass:"sortable-ghost",animation:180,delay:0,onEnd:function(t){var a=e.columns.splice(t.oldIndex,1)[0];e.columns.splice(t.newIndex,0,a)}})},getObjPrototype:function(e,t){return new Function("obj","return obj.".concat(t))(e)},doLayout:function(){var e;(e=this.$refs.elTable).doLayout.apply(e,arguments)},clearSelection:function(){var e;(e=this.$refs.elTable).clearSelection.apply(e,arguments)},toggleRowSelection:function(){var e;(e=this.$refs.elTable).toggleRowSelection.apply(e,arguments)},toggleAllSelection:function(){var e;(e=this.$refs.elTable).toggleAllSelection.apply(e,arguments)},setCurrentRow:function(){var e;(e=this.$refs.elTable).setCurrentRow.apply(e,arguments)},toggleRowExpansion:function(){var e;(e=this.$refs.elTable).toggleRowExpansion.apply(e,arguments)}}),r=n,a("f126"),a("8b94"),n=a("2877"),a=Object(n.a)(r,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("div",{staticClass:"table-header"},[e._l(e.table._defaultHeader_,(function(t,r){return["setcol"==t?a("el-dropdown",{key:r,staticClass:"setcol-table-lie",attrs:{placement:"bottom-end",trigger:"click","hide-on-click":!1}},[a("el-button",{attrs:{size:"small"}},[e._v("列设置")]),a("el-dropdown-menu",{class:"ex-table-setcol-dropdown",attrs:{slot:"dropdown"},slot:"dropdown"},[e._l(e.setColumns,(function(t,r){return[t._noset_?e._e():a("el-dropdown-item",{key:"setColumns"+r},[a("el-switch",{attrs:{"active-text":t.label,"active-value":!1,"inactive-value":!0},model:{value:t._hidden_,callback:function(a){e.$set(t,"_hidden_",a)},expression:"column._hidden_"}})],1)]}))],2)],1):e._e()]})),e._t("table-header",null,{selection:e.tableSelection,alldata:e.data})],2),a("el-table",e._g(e._b({ref:"elTable",staticStyle:{width:"100%"},attrs:{data:e.data,size:e.size,"span-method":e.arraySpanMethod},on:{"selection-change":function(t){e.tableSelection=t}}},"el-table",e.table,!1),e.$listeners),[e._l(e.columns,(function(t,r){return[t._hidden_||!t.type||t._slot_?t._hidden_?e._e():a("el-table-column",e._b({key:r,attrs:{"show-overflow-tooltip":""},scopedSlots:e._u([{key:"header",fn:function(r){return[a("span",[e._v(e._s(t.label))]),t._screen_?a("span",{on:{click:function(a){return a.stopPropagation(),e.addConditionItemByCol(t,r)}}},[!1===t._screen_tip_?a("i",{staticClass:"el-icon-connection",style:e.isHasScreenColumn(t)?"color:#3888e5;":""}):a("el-tooltip",{attrs:{effect:t._screen_tip_effect_||"dark",content:t._screen_tip_||"筛选",placement:t._screen_tip_placement_||"top"}},[a("i",{staticClass:"el-icon-connection",style:e.isHasScreenColumn(t)?"color:#3888e5;":""})])],1):e._e()]}},{key:"default",fn:function(r){return t._slot_?e._t(t._slot_,null,{scope:r}):t._render_?[a("ex-slot",{attrs:{column:t,render:t._render_,scope:r}})]:[a("span",[e._v(e._s(t._format_?t._format_(r.row):e.getObjPrototype(r.row,t.prop)))])]}}],null,!0)},"el-table-column",t,!1)):a("el-table-column",e._b({key:r,attrs:{align:"center",width:"45px"}},"el-table-column",t,!1))]}))],2),!1!==e.page&&e.data&&0new Date(e.endTime).valueOf()}},pickerOptions2:{disabledDate:function(t){if(null!=e.startTime&&""!=e.startTime&&t)return t.getTime()Date.now()}},ruleForm:{},rulesThis:this.rules,rules:{coop_state:[{required:!0,message:"请选择合作状态",trigger:"change"}],source:[{required:!0,message:"请选择供应商来源",trigger:"change"}],type:[{required:!0,message:"请选择申请类型",trigger:"change"}],category:[{required:!0,message:"请选择所属类别",trigger:"change"}],delivery_way:[{required:!0,message:"请选择物流方式",trigger:"change"}],supplier_type:[{required:!0,message:"请选择供应商类型",trigger:"change"}],level:[{required:!0,message:"请选择供应商级别",trigger:"change"}],pay_type:[{required:!0,message:"请选择付款方式",trigger:"change"}],prove_img:[{required:!1,type:"array",message:"请上传资质证明",trigger:"change"}],personid:[{required:!0,type:"array",message:"请选择负责人",trigger:"change"}],contactor:[{required:!0,message:"姓名不能为空",trigger:"blur"}],mobile:[{required:!0,validator:function(e,t,a){""===t?a(new Error("手机号不能为空!")):Object(s.k)(t)?a():a(new Error("手机号格式不正确!"))},trigger:"blur"}],telephone:[{required:!1,validator:function(e,t,a){""===t||Object(s.r)(t)?a():a(new Error("规则为区号[0+2~3位]-固定电话[7~8位]!"))},trigger:"blur"}],position:[{required:!0,message:"职位不能为空",trigger:"blur"}],registercode:[{required:!0,validator:function(e,t,a){""!==t?Object(s.j)(t)?a():a(new Error("统一社会信用代码不正确!")):a(new Error("请输入统一社会信用代码!"))},trigger:"blur"}],name:[{required:!0,message:"供应商名称不能为空",trigger:"blur"}],nature:[{required:!0,message:"公司类型不能为空",trigger:"change"}],addr:[{required:!0,validator:function(e,t,a){""===t?a(new Error("详细地址不能为空!")):Object(s.c)(t)?a(new Error("不能出现/回车/换行符!")):Object(s.n)(t)?a(new Error("不能使用英文特殊字符!")):Object(s.d)(t)?a():a(new Error("详细地址填写不规范!"))},trigger:"blur"}],legaler:[{required:!0,message:"法人代表不能为空",trigger:"blur"}],registertime:[{required:!0,message:"成立时间不能为空",trigger:"change"}],scope:[{required:!0,message:"营业执照不能为空",trigger:"blur"}]}}},mounted:function(){this.initForm()},methods:{initForm:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.hand_name="",e.loading=!0,e.resetFormData(),e.rulesThis=e.rules,t.next=6,e.resetForm();case 6:e.loading=!1;case 7:case"end":return t.stop()}}),t)})))()},resetForm:function(){var e=this;return Object(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.sitem,t=e.id,a=e.coop_state,r=e.source,n=e.type,i=e.category,s=e.delivery_way,o=e.supplier_type,l=e.level,c=e.pay_type,u=e.supplier_img,d=e.prove_img,p=e.contactor,m=e.mobile,f=e.position,h=e.registercode,g=e.name,b=e.nature,_=e.addr,w=e.legaler,v=e.registertime,x=e.scope,k=e.personid,y=e.person;e=e.telephone;this.hand_name=y||"",this.ruleForm={id:t||"",coop_state:a||"",source:r||"",type:n||"",category:i||"",delivery_way:s||"",supplier_type:o||"",level:l||"",pay_type:c||"",supplier_img:u||"",prove_img:d?(d||"").split(","):[],contactor:p||"",mobile:m||"",telephone:e||"",position:f||"",registercode:h||"",name:g||"",nature:b||"",addr:_||"",legaler:w||"",registertime:v||"",scope:x||"",personid:k?[k]:[]}},closeImg:function(e){this.ruleForm.prove_img.splice(e,1),this.$refs.ruleForm.validateField("prove_img")},submitForm:function(){var e=this;return Object(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=34;break}if(e.loading)return t.abrupt("return");t.next=3;break;case 3:if(e.loading=!0,(r=JSON.parse(JSON.stringify(e.ruleForm))).prove_img=r.prove_img.toString(),r.personid=r.personid.toString(),i={},"add"===e.id)return delete r.id,t.next=12,n.a.add(r);t.next=15;break;case 12:i=t.sent,t.next=18;break;case 15:return t.next=17,n.a.update(r);case 17:i=t.sent;case 18:if(e.loading=!1,!i||0!==i.code){t.next=26;break}s="add"===e.id?"添加成功!":"修改成功!",e.$notify.success({title:s,message:""}),e.showModelThis=!1,e.$emit("refresh",i.data),t.next=32;break;case 26:if(i&&100<=i.code&&i.code<=104)return t.next=29,e.logout();t.next=31;break;case 29:t.next=32;break;case 31:e.$message.warning(i.message);case 32:t.next=36;break;case 34:return t.abrupt("return",!1);case 36:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()},deleteimg:function(){this.ruleForm.supplier_img="",this.$refs.ruleForm.validateField("supplier_img")},handleHandoverName:function(e){e&&e.id?this.ruleForm.personid=[e.id]:this.ruleForm.personid=[],this.$refs.ruleForm.validateField("personid")},type_search_change:function(e){var t=e.id;e.code,e.label,this.ruleForm.nature=t||"",this.$refs.ruleForm.validateField("nature")},UploadSuccessEventsupplier_img:function(e){var t=this;return Object(r.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)})))()},UploadSuccessEventgood_info_img: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.UploadSuccessEvent(3,e);case 2:case"end":return a.stop()}}),a)})))()},UploadSuccessEvent:function(e,t){var a=this;return Object(r.a)(regeneratorRuntime.mark((function r(){var n;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if("noToken"===(n=t.url))return r.next=4,a.logout();r.next=6;break;case 4:r.next=8;break;case 6:1===e?(a.ruleForm.supplier_img=n,a.$refs.ruleForm.validateField("supplier_img")):2===e?(a.ruleForm.good_img=n,a.$refs.ruleForm.validateField("good_img")):(a.ruleForm.prove_img.push(n),a.$refs.ruleForm.validateField("prove_img")),a.$message.success("图片上传成功!");case 8:case"end":return r.stop()}}),r)})))()},UploadErrorEventsupplier_img:function(e){this.imgUploadError(1,e)},UploadErrorEventgood_info_img:function(e){this.imgUploadError(3,e)},imgUploadError:function(e,t){"break"!==t&&(this.$message.error("图片上传失败!"),this.$refs.ruleForm.validateField(1===e?"supplier_img":2===e?"good_img":"good_info_img"))},beforeAvatarUpload:function(e){var t=!1;"image/jpg"!==e.type&&"image/png"!==e.type&&"image/jpeg"!==e.type||(t=!0),e=e.size/1024/1024<1;return t||this.$message.error("图片格式不正确!"),e||this.$message.error("图片大小不能超过 1MB!"),t&&e}}},a("0fde"),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:"supplierAdd",attrs:{model:e.ruleForm,"status-icon":"",rules:e.rulesThis,size:"small","label-width":"100px"}},[a("el-row",[a("el-col",{attrs:{span:6}},[a("div",{staticClass:"supplierAdd-title",staticStyle:{margin:"6px 0 0 10px"}},[e._v("基础信息")])]),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"合作状态",prop:"coop_state"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{disabled:"add"!==e.type&&"edit"!==e.type,placeholder:"合作状态"},model:{value:e.ruleForm.coop_state,callback:function(t){e.$set(e.ruleForm,"coop_state",t)},expression:"ruleForm.coop_state"}},e._l(e.coop_stateoptions,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1)],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"供应商来源",prop:"source"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{disabled:"add"!==e.type&&"edit"!==e.type,placeholder:"供应商来源"},model:{value:e.ruleForm.source,callback:function(t){e.$set(e.ruleForm,"source",t)},expression:"ruleForm.source"}},e._l(e.sourceoptions,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1)],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"申请类型",prop:"type"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{disabled:"add"!==e.type&&"edit"!==e.type,placeholder:"申请类型"},model:{value:e.ruleForm.type,callback:function(t){e.$set(e.ruleForm,"type",t)},expression:"ruleForm.type"}},e._l(e.typeoptions,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1)],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"所属类别",prop:"category"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{disabled:"add"!==e.type&&"edit"!==e.type,placeholder:"所属类别"},model:{value:e.ruleForm.category,callback:function(t){e.$set(e.ruleForm,"category",t)},expression:"ruleForm.category"}},e._l(e.categoryoptions,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1)],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"物流方式",prop:"delivery_way"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{disabled:"add"!==e.type&&"edit"!==e.type,placeholder:"物流方式"},model:{value:e.ruleForm.delivery_way,callback:function(t){e.$set(e.ruleForm,"delivery_way",t)},expression:"ruleForm.delivery_way"}},e._l(e.delivery_wayoptions,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1)],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"供应商类型",prop:"supplier_type"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{disabled:"add"!==e.type&&"edit"!==e.type,placeholder:"供应商类型"},model:{value:e.ruleForm.supplier_type,callback:function(t){e.$set(e.ruleForm,"supplier_type",t)},expression:"ruleForm.supplier_type"}},e._l(e.supplier_typeoptions,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1)],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"供应商级别",prop:"level"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{disabled:"add"!==e.type&&"edit"!==e.type,placeholder:"供应商级别"},model:{value:e.ruleForm.level,callback:function(t){e.$set(e.ruleForm,"level",t)},expression:"ruleForm.level"}},e._l(e.leveloptions,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1)],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"付款方式",prop:"pay_type"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{disabled:"add"!==e.type&&"edit"!==e.type,placeholder:"付款方式"},model:{value:e.ruleForm.pay_type,callback:function(t){e.$set(e.ruleForm,"pay_type",t)},expression:"ruleForm.pay_type"}},e._l(e.pay_typeoptions,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),a("el-form-item",{attrs:{label:"负责人",prop:"personid"}},[a("search-account",{attrs:{disabled:"add"!==e.type&&"edit"!==e.type,"is-detail":"add"!==e.type,value:e.ruleForm.personid,size:"small",names:e.hand_name,placeholder:"负责人名称"},on:{searchChange:e.handleHandoverName}})],1)],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{staticClass:"activity-upload",attrs:{label:"营业执照",prop:"supplier_img",disabled:"view"==e.id}},[e.ruleForm.supplier_img?a("div",{staticClass:"img-find"},[a("img",{directives:[{name:"viewer",rawName:"v-viewer"}],staticClass:"avatar hover fl",staticStyle:{width:"50px",height:"50px"},attrs:{src:e.ruleForm.supplier_img}}),"view"!==e.type?a("el-link",{staticClass:"fl",staticStyle:{margin:"0 0 0 16px"},attrs:{underline:!1,type:"warning"},on:{click:function(t){return e.deleteimg()}}},[e._v("删除")]):e._e()],1):a("div",{staticClass:"btnupload",staticStyle:{position:"relative"}},[a("i",{staticClass:"el-icon-plus avatar-uploader-icon"}),"view"!==e.type?a("file-upload",{staticClass:"Upload",attrs:{disabled:"view"==e.id,accept:".jpg,.png,.jpeg",multiple:!0,uploadcondition:e.beforeAvatarUpload},on:{UploadErrorEvent:e.UploadErrorEventsupplier_img,UploadSuccessEvent:e.UploadSuccessEventsupplier_img}}):e._e()],1)])],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"资质证明",prop:"prove_img"}},[a("div",{staticClass:"good_info_img_div"},[a("ul",{staticClass:"clear"},[e.ruleForm&&e.ruleForm.prove_img&&0=)"}}),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:"成本合计"}})],1)],1):a("div",[e._v("--")])])],2):e._e(),""!==e.newTime&&e.private_field&&0=)"}}),a("el-table-column",{attrs:{prop:"sale_price",label:"售价"}}),a("el-table-column",{attrs:{prop:"cost_fee",label:"工艺费"}}),a("el-table-column",{attrs:{prop:"market_price",label:"市场价"}}),a("el-table-column",{attrs:{prop:"market_platform",label:"对比平台"}}),a("el-table-column",{attrs:{prop:"status",label:"状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s("1"===t.row.status?"启用":"禁用"))]}}],null,!1,3462811054)})],1)],1)],2):e._e()],1),"2"===e.status&&e.ppowers.some((function(e){return"2"==e}))&&"view"==e.queryType?a("el-collapse-item",{attrs:{title:"产品部门审批",name:"1"}},[""!==e.newTime?a("online-exam-form",{attrs:{newTime:e.newTime,time:e.sitem.online_time,disabled:!1,isMust:!1,statusList:[]},on:{searchChange:e.examForm}}):e._e()],1):e._e(),"3"===e.status&&e.ppowers.some((function(e){return"3"==e}))&&"view"==e.queryType?a("el-collapse-item",{attrs:{title:"财务定价",name:"2"}},[""!==e.newTime?a("fixed-price-form",{attrs:{newTime:e.newTime,id:e.queryId,spuCode:e.spuCode,sitem:e.sitem,disabled:!1,isMust:!1},on:{resSuccess:e.initForm,searchChange:e.examForm1}}):e._e()],1):e._e(),"4"===e.status&&e.ppowers.some((function(e){return"4"==e}))&&"view"==e.queryType?a("el-collapse-item",{attrs:{title:"财务审核定价",name:"3"}},[""!==e.newTime?a("examFormNew",{attrs:{newTime:e.newTime,options8:e.options8,disabled:!1,isMust:!1},on:{searchChange:e.examForm2}}):e._e()],1):e._e(),"5"===e.status&&e.ppowers.some((function(e){return"5"==e}))&&"view"==e.queryType?a("el-collapse-item",{attrs:{title:"操作商品上线",name:"4"}},[""!==e.newTime?a("handle-online-form",{attrs:{newTime:e.newTime,options:[],code:e.sitem.plat_code,disabled:!1,isMust:!1},on:{resSuccess:e.examForm3}}):e._e()],1):e._e()],1)],1):e._e(),a("el-tab-pane",{attrs:{label:"审批记录",name:"2"}},[""!==e.newTime?a("process-time-line",{attrs:{newTime:e.newTime,type:"SPSX",orderCode:e.queryId}}):e._e()],1),a("el-tab-pane",{attrs:{label:"审批备注",name:"3"}},[""!==e.newTime?a("process-remark-time-line",{attrs:{newTime:e.newTime,skuCode:e.queryId}}):e._e()],1)],1)],1):a("div",[a("no-auth")],1)])}),[],!1,null,"610fb8c0",null);t.default=p.exports},"6ebc":function(e,t,a){"use strict";a("205e")},"6ee5":function(e,t,a){"use strict";a.r(t);var r=a("5530"),n=(a("7db0"),a("d3b7"),a("9f53")),i=a("5daa"),s=a("3bd5"),o=a("816c"),l=a("9d76"),c=a("c454"),u=a("2f62");n={name:"saleReportOrder",mixins:[n.a],components:{realTimeExport:s.default,preExport:o.default,historyData:l.default,realTimeExportNew:c.default},computed:Object(r.a)(Object(r.a)({},Object(u.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"saleReportOrder"==e.menu_route}))||{};e=(null!==e?e:{}).action;return null!=e?e:[]}}),data:function(){return{activeName:"1",loading:!1,fileUrl:i.a.baseURL}},mounted:function(){this.activeName="1"},methods:{}},a("5753"),s=a("2877"),o=Object(s.a)(n,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("div",{staticClass:"financeReport pagePadding"},[e.powers.some((function(e){return"001"==e}))?t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{"margin-top":"25px"}},[t("el-tabs",{attrs:{type:"border-card"},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[t("el-tab-pane",{attrs:{label:"延时下载",name:"1"}},[t("real-time-export-new")],1)],1)],1):t("no-auth")],1)}),[],!1,null,"68dc9def",null);t.default=o.exports},"6f01":function(e,t,a){},"6f53":function(e,t,a){function r(e){return function(t){for(var a,r=s(t),l=i(r),c=l.length,u=0,d=[];uparseInt(a+""))return void this.$message.warning("异常数量不大于调拨总数量!");if(0parseInt(a+""))return void this.$message.warning("入库数量不大于调拨总数量!")}this.tableForm.product_go[e].edit=!1},editRow:function(e){-1!==this.tableForm.product_go.findIndex((function(e){return e.edit}))?this.$message.warning("请完成其他行的编辑!"):this.tableForm.product_go[e].edit=!0}}},a("ce7e"),a=a("2877"),a=Object(a.a)(i,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-row",{staticClass:"addForm"},[a("el-col",{attrs:{span:24}},[a("el-form",{ref:"tableForm",staticClass:"demo-tableForm product_go",attrs:{model:e.tableForm,rules:e.tableFormThis,size:"mini"}},[a("el-table",{attrs:{data:e.tableForm.product_go,border:"",size:"mini","row-key":"key"}},[e._l(e.columns,(function(t,r){return["text"===t.type&&t.show&&"error_code"!==t.prop?a("el-table-column",{key:t.prop+r,attrs:{prop:t.prop,"show-overflow-tooltip":"",label:t.label,width:t.width,"min-width":t.minWidth}}):"text"===t.type&&t.show&&"error_code"===t.prop?a("el-table-column",{key:t.prop+r,attrs:{prop:t.prop,label:t.label,width:t.width,"min-width":t.minWidth},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",{staticClass:"spscope"},[e._v(e._s(t.row.error_msg))])]}}],null,!0)}):"text"!==t.type&&t.show?a("el-table-column",{key:t.prop+r,attrs:{prop:t.prop,label:t.label,width:t.width,"min-width":t.minWidth},scopedSlots:e._u([{key:"default",fn:function(r){return[a("el-form-item",{attrs:{prop:"product_go."+r.$index+"."+t.prop,rules:r.row.edit?e.tableFormThis[t.prop]:{},size:"mini"}},[!0===r.row.edit&&"input"===t.type?a("el-input",{attrs:{size:"mini",maxlength:"250",clearable:""},model:{value:r.row[t.prop],callback:function(a){e.$set(r.row,t.prop,a)},expression:"scope.row[item.prop]"}}):e._e(),!0===r.row.edit&&"select"===t.type?a("el-select",{staticStyle:{width:"100%"},attrs:{clearable:"",placeholder:"异常原因"},on:{change:function(t){return e.elSelectChange(t,r.$index)}},model:{value:r.row[t.prop],callback:function(a){e.$set(r.row,t.prop,a)},expression:"scope.row[item.prop]"}},e._l(e.options,(function(e){return a("el-option",{key:e.result_code,attrs:{label:e.result,value:e.result_code,disabled:"0"===e.status}})})),1):e._e(),r.row.edit?e._e():a("span",{staticClass:"spscope"},[e._v(e._s("select"===t.type?r.row.error_msg:r.row[t.prop]))])],1)]}}],null,!0)}):e._e()]})),"3"==e.status&&e.ppowers.some((function(e){return"3"==e}))||"4"==e.status&&e.ppowers.some((function(e){return"4"==e}))?a("el-table-column",{attrs:{fixed:"right",label:"操作",width:"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.edit?e._e():a("el-tooltip",{attrs:{effect:"dark",content:"编辑",placement:"top"}},[a("i",{staticClass:"el-icon-edit tb-icon",on:{click:function(a){return e.editRow(t.$index)}}})]),t.row.edit?a("el-tooltip",{attrs:{effect:"dark",content:"保存",placement:"top"}},[a("i",{staticClass:"el-icon-circle-check tb-icon",on:{click:function(a){return e.checkRow(t.$index)}}})]):e._e(),a("el-tooltip",{attrs:{effect:"dark",content:"重置",placement:"top"}},[a("i",{staticClass:"el-icon-refresh-left tb-icon",on:{click:function(a){return e.resetRow(t.$index)}}})])]}}],null,!1,3847135684)}):e._e()],2)],1)],1),a("el-col",{staticStyle:{"text-align":"right",padding:"10px 0 0 0"},attrs:{span:24}},["3"==e.status&&e.ppowers.some((function(e){return"3"==e}))||"4"==e.status&&e.ppowers.some((function(e){return"4"==e}))?a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.submitForm}},[e._v("保 存 ")]):e._e()],1)],1)}),[],!1,null,"010472db",null);t.default=a.exports},7954:function(e,t,a){"use strict";a.r(t);var r=a("1da1"),n=a("5530"),i=(a("96cf"),a("a9e3"),a("e9c4"),a("d3b7"),a("3ca3"),a("ddb0"),a("2b3d"),a("9861"),a("f5ed")),s=a("9f53"),o=a("5daa"),l=a("f39f"),c=a("988d"),u=a("1fc9"),d=a("2f62");i={name:"saleReport",mixins:[i.a,s.a],components:{periodDatePickerActive:c.default},computed:Object(n.a)({},Object(d.b)(["tablebtnSize","searchSize","size"])),data:function(){return{changeList:[],fileUrl:o.a.baseURL,loading:!1,parmValue:{status:"",start_date:"",end_date:"",page:1,size:15},tableData:[],table:{stripe:!0,border:!0,_defaultHeader_:["setcol"]},pageInfo:{size:15,curr:1,total:0},table12:u.d}},mounted:function(){this.searchList()},methods:{searchList: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:if(""!==e.parmValue.start_date&&""===e.parmValue.end_date||""===e.parmValue.start_date&&""!==e.parmValue.end_date)return e.$message.warning("时间区间不完整!"),t.abrupt("return");t.next=3;break;case 3:return e.loading=!0,t.next=6,l.a.saleexportthdata(e.parmValue);case 6:if(!(a=t.sent)||0!==a.code||!a.data){t.next=12;break}e.tableData=a.data.list,e.pageInfo.total=Number(a.data.count),t.next=20;break;case 12:if(a&&100<=a.code&&a.code<=104)return t.next=15,e.logout();t.next=17;break;case 15:t.next=20;break;case 17:e.$message.warning(a.message),e.tableData=[],e.pageInfo.total=0;case 20:e.loading=!1;case 21:case"end":return t.stop()}}),t)})))()},restSearch:function(){this.parmValue={status:"",start_date:"",end_date:"",page:1,size:15},this.pageInfo={size:15,curr:1,total:0},this.searchList()},time:function(e){var t=this;return Object(r.a)(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(t.parmValue.start_date=e.startTime||"",t.parmValue.end_date=e.endTime||"",""!==t.parmValue.start_date&&""===t.parmValue.end_date||""===t.parmValue.start_date&&""!==t.parmValue.end_date)return t.$message.warning("时间区间不完整!"),a.abrupt("return");a.next=5;break;case 5:return t.pageInfo.curr=1,t.parmValue.page=1,a.next=9,t.searchList();case 9:case"end":return a.stop()}}),a)})))()},selection_change:function(e){e=e.list,this.changeList=0new Date(e.endTime).valueOf()}},pickerOptions2:{disabledDate:function(t){if(null!=e.startTime&&""!=e.startTime&&t)return t.getTime()",l.forEach((function(e){c+="
  • \n \n ").concat(e.good_name,"__");e=e.speclist;var t="";e.forEach((function(e,a){t+="".concat(0!==a?"--":"").concat(e.spec_name,"[").concat(e.spec_value,"]")})),c+=t+"
  • "})),c+="",e.$notify({title:"一下商品已上线或已经在审批流程中!",dangerouslyUseHTMLString:!0,message:c})):e.$message.warning(o);case 26:t.next=30;break;case 28:return t.abrupt("return",!1);case 30:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()}}};a("1ce6"),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)"},on:{"update:visible":function(t){e.showModelThis=t},close:function(t){e.showModelThis=!1}}},[a("el-card",{staticStyle:{margin:"-20px 0 0 0","padding-bottom":"0"}},[a("el-row",{attrs:{gutter:10}},[a("el-col",{staticStyle:{padding:"0 0 15px 0"},attrs:{span:24}},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.sitem,stripe:"",size:"mini",border:"","max-height":"380px"}},[a("el-table-column",{attrs:{prop:"spuCode",label:"编号",width:"160","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"good_img",label:"图片",width:"45","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.good_img?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_img,alt:""}})]):e._e()]}}])}),a("el-table-column",{attrs:{prop:"good_name",label:"名称","min-width":"160px","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"cat_name",label:"分类","min-width":"100","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"brand_name",label:"品牌","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"good_type",label:"定制",width:"50","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-tag",{attrs:{size:"mini",type:"1"==t.row.good_type?"":"warning"},domProps:{textContent:e._s((e.options1.find((function(e){return e.id==t.row.status}))||{}).name||"--")}})]}}])}),a("el-table-column",{attrs:{prop:"supplierNo",label:"供应商编号",width:"110","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"supplier_name",label:"供应商名称",width:"110","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"companyNo",label:"业务公司编号",width:"110","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"company",label:"业务公司名称",width:"110","show-overflow-tooltip":""}})],1)],1),a("el-col",{attrs:{span:24}},[a("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",rules:e.rulesThis,"label-width":"80px"}},[a("el-row",{staticStyle:{}},[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"所属平台",prop:"platform"}},[a("search-terrace",{attrs:{value:e.ruleForm.platform,disabled:!1,isDetail:!1,is_show:"1",placeholder:"所属平台"},on:{searchChange:e.platform_codesearchChange}})],1),a("el-form-item",{attrs:{label:"上线原因",prop:"online_reason"}},[a("el-input",{attrs:{disabled:!1,placeholder:"上线原因",maxlength:"200"},model:{value:e.ruleForm.online_reason,callback:function(t){e.$set(e.ruleForm,"online_reason",t)},expression:"ruleForm.online_reason"}})],1)],1),a("el-col",{staticStyle:{"text-align":"right"},attrs:{span:16}},[a("el-form-item",{attrs:{label:"上线备注",prop:"online_remark"}},[a("el-input",{attrs:{type:"textarea",rows:3,disabled:!1,placeholder:"商品备注",maxlength:"2000","show-word-limit":""},model:{value:e.ruleForm.online_remark,callback:function(t){e.$set(e.ruleForm,"online_remark",t)},expression:"ruleForm.online_remark"}})],1),"007"!==e.id?a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.submitForm}},[e._v("保 存 ")]):e._e(),a("el-button",{attrs:{size:"mini"},on:{click:function(t){e.showModelThis=!1}}},[e._v(e._s("007"==e.id?"关 闭":"取 消"))])],1)],1)],1)],1)],1)],1)],1)}),[],!1,null,"5a6195f4",null);t.default=a.exports},"87fe":function(e,t,a){"use strict";a.r(t);var r=a("2909"),n=a("1da1"),i=(a("96cf"),a("7db0"),a("d3b7"),a("4de4"),a("c740"),a("159b"),a("a434"),a("99af"),a("e9c4"),a("d81d"),a("1b69")),s="admin/",o=function(e,t){return Object(i.a)(s+"role_process_info",e,"post",t)},l=function(e,t){return Object(i.a)(s+"role_process_save",e,"post",t)},c=function(e,t){return Object(i.a)(s+"roleall",e,"post",t)},u=function(e,t){return Object(i.a)(s+"action_process_all",e,"post",t)},d={name:"processPermission",mixins:[a("9f53").a],data:function(){return{ruleForm:{},isBtnDisabled:!1,roleActive:{},processPermissionChange:[],roleList:[],rules:[],perActionList:[],processPermission:[],private_data:[],private_field:[]}},computed:{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"processPermission"===e.menu_route}))||{};e=(null!==e?e:{}).action;return null!=e?e:[]},indeterminateCheck:function(){return function(e){var t=e.child.filter((function(t){return-1new Date(e.endTime).valueOf()}},pickerOptions2:{disabledDate:function(t){if(null!=e.startTime&&""!=e.startTime&&t)return t.getTime()=Date.now()}},supplier_name:"",accountNames:"",loading:!1,title:"添加业务企业",showModelThis:this.showModel,ruleForm:{id:"",company:"",type:"",inv_code:"",inv_legaler:"",inv_time:"",inv_addr:"",inv_bank:"",inv_bankNo:"",contactor:"",mobile:"",addr:"",inv_scope:"",license_img:""},rulesThis:this.rules,rules:{company:[{required:!0,message:"企业名称不能为空!",trigger:"blur"}],type:[{required:!0,message:"公司类型不能为空!",trigger:"change"}],inv_code:[{required:!0,validator:function(e,t,a){""!==t?Object(s.j)(t)?a():a(new Error("统一社会信用代码不正确!")):a(new Error("统一社会信用代码不能为空!"))},trigger:"blur"}],inv_legaler:[{required:!0,validator:function(e,t,a){""===t?a(new Error("法人不能为空!")):!Object(s.g)(t)||Object(s.h)(t)?a(new Error("法人只能为汉字!")):a()},trigger:"blur"}],inv_time:[{required:!0,message:"成立日期不能为空!",trigger:"change"}],inv_addr:[{required:!0,validator:function(e,t,a){""===t?a(new Error("详细地址不能为空!")):Object(s.c)(t)?a(new Error("不能出现/回车/换行符!")):Object(s.n)(t)?a(new Error("不能使用英文特殊字符!")):Object(s.d)(t)?a():a(new Error("详细地址填写不规范!"))},trigger:"blur"}],inv_bank:[{required:!0,message:"银行名称不能为空!",trigger:"blur"}],inv_bankNo:[{required:!0,message:"银行卡号不能为空!",trigger:"blur"}],contactor:[{required:!0,validator:function(e,t,a){""===t?a(new Error("联系人不能为空!")):!Object(s.g)(t)||Object(s.h)(t)?a(new Error("联系人只能为汉字!")):a()},trigger:"blur"}],mobile:[{required:!0,validator:function(e,t,a){""!==t?Object(s.l)(t)||Object(s.k)(t)?a():a(new Error("联系电话格式不正确!")):a(new Error("联系电话不能为空!"))},trigger:"blur"}],addr:[{required:!0,message:"联系地址不能为空!",trigger:"blur"}],inv_scope:[{required:!0,message:"经营范围不能为空!",trigger:"blur"}],license_img:[{required:!1,message:"",trigger:"blur"}]}}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis:function(e){e||this.$emit("cancel")}},methods:{initForm:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.supplier_name="",e.loading=!0,"003"===e.isDetail)return e.title="新建业务企业",e.rulesThis=e.rules,t.next=7,e.resetForm();t.next=9;break;case 7:t.next=24;break;case 9:if("007"==e.isDetail)return e.title="业务企业详情",e.rulesThis={},t.next=14,e.resetForm();t.next=18;break;case 14:return t.next=16,e.initData();case 16:t.next=24;break;case 18:return e.title="修改业务企业",e.rulesThis=e.rules,t.next=22,e.resetForm();case 22:return t.next=24,e.initData();case 24:e.loading=!1;case 25:case"end":return t.stop()}}),t)})))()},type_search_change:function(e){var t=e.id;e.code,e.label,this.ruleForm.type=t||"",this.$refs.ruleForm.validateField("type")},initData:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){var a,r,i,s,o,l,c,u,d,p,m,f,h,g,b;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n.a.detail({companyNo:e.id});case 2:if(!(a=t.sent)||0!==a.code||!a.data){t.next=9;break}b=a.data,r=b.id,i=b.company,s=b.type,o=b.inv_code,l=b.inv_legaler,c=b.inv_time,u=b.inv_addr,d=b.inv_bank,p=b.inv_bankNo,m=b.contactor,f=b.mobile,h=b.addr,g=b.inv_scope,b=b.license_img,e.ruleForm={id:r||"",company:i||"",type:s||"",inv_code:o||"",inv_legaler:l||"",inv_time:c||"",inv_addr:u||"",inv_bank:d||"",inv_bankNo:p||"",contactor:m||"",mobile:f||"",addr:h||"",inv_scope:g||"",license_img:b||""},t.next=15;break;case 9:if(a&&100<=a.code&&a.code<=104)return t.next=12,e.logout();t.next=14;break;case 12:t.next=15;break;case 14:e.$message.warning(a.message);case 15:case"end":return t.stop()}}),t)})))()},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={id:"",company:"",type:"",inv_code:"",inv_legaler:"",inv_time:"",inv_addr:"",inv_bank:"",inv_bankNo:"",contactor:"",mobile:"",addr:"",inv_scope:"",license_img:""})}));case 2:case"end":return t.stop()}}),t)})))()},submitForm:function(){var e=this;return Object(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=32;break}if(e.loading)return t.abrupt("return");t.next=3;break;case 3:if(e.loading=!0,r=JSON.parse(JSON.stringify(e.ruleForm)),i={},"003"===e.isDetail)return delete r.id,t.next=10,n.a.add(r);t.next=13;break;case 10:i=t.sent,t.next=16;break;case 13:return t.next=15,n.a.update(r);case 15:i=t.sent;case 16:if(e.loading=!1,!i||0!==i.code){t.next=24;break}s="003"===e.isDetail?"添加成功":"修改成功",e.$notify.success({title:s,message:""}),e.showModelThis=!1,e.$emit("refresh"),t.next=30;break;case 24:if(i&&100<=i.code&&i.code<=104)return t.next=27,e.logout();t.next=29;break;case 27:t.next=30;break;case 29:e.$message.warning(i.message);case 30:t.next=34;break;case 32:return t.abrupt("return",!1);case 34:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()},beforeAvatarUpload:function(e){var t=!1,a=!1;return e&&("image/jpg"!==e.type&&"image/png"!==e.type&&"image/jpeg"!==e.type||(t=!0),a=e.size/1024/1024<1,t||this.$message.error("图片格式不正确!"),a||this.$message.error("图片大小不能超过 1MB!")),t&&a},UploadErrorEvent:function(e){"break"!==e&&(this.$message.error("图片上传失败!"),this.ruleForm.license_img="",this.$refs.ruleForm.validateField("license_img"))},UploadSuccessEvent:function(e){var t=this;return Object(r.a)(regeneratorRuntime.mark((function a(){var r;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if("noToken"===(r=e.url))return a.next=4,t.logout();a.next=6;break;case 4:a.next=9;break;case 6:t.ruleForm.license_img=r,t.$message.success("图片上传成功!"),t.$refs.ruleForm.validateField("license_img");case 9:case"end":return a.stop()}}),a)})))()}}},a("aa17"),a=a("2877"),a=Object(a.a)(i,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:e.title,center:!0,align:"left",top:"8vh",width:"1040px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)"},on:{close:function(t){e.showModelThis=!1},"update:visible":function(t){e.showModelThis=t}}},[t("el-card",{staticStyle:{"margin-top":"-20px"}},[t("el-row",[t("el-col",{attrs:{span:24}},[t("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",size:"small",rules:e.rulesThis,"label-width":"90px"}},[t("el-row",{},[t("el-col",{staticStyle:{height:"336px","border-right":"1px solid #dcdfe6"},attrs:{span:1}},[t("ul",{staticClass:"tc fff"},[t("li",[e._v("企")]),t("li",[e._v("业")]),t("li",[e._v("信")]),t("li",[e._v("息")])])]),t("el-col",{attrs:{span:23}},[t("el-row",[t("el-col",{attrs:{span:13}},[t("el-form-item",{attrs:{label:"企业名称",prop:"company"}},[t("el-input",{attrs:{placeholder:"企业名称",filterable:"",disabled:"007"==e.isDetail,maxlength:"100",clearable:""},model:{value:e.ruleForm.company,callback:function(t){e.$set(e.ruleForm,"company",t)},expression:"ruleForm.company"}})],1)],1),t("el-col",{attrs:{span:11}},[t("el-form-item",{staticStyle:{width:"100%"},attrs:{label:"统一社会信用代码",prop:"inv_code","label-width":"150px"}},[t("el-input",{attrs:{placeholder:"统一社会信用代码",filterable:"",disabled:"007"==e.isDetail,maxlength:"40",clearable:""},model:{value:e.ruleForm.inv_code,callback:function(t){e.$set(e.ruleForm,"inv_code",t)},expression:"ruleForm.inv_code"}})],1)],1),t("el-col",{attrs:{span:13}},[t("el-form-item",{attrs:{label:"详细地址",prop:"inv_addr"}},[t("el-input",{attrs:{placeholder:"详细地址",maxlength:"100",clearable:"",disabled:"007"==e.isDetail},model:{value:e.ruleForm.inv_addr,callback:function(t){e.$set(e.ruleForm,"inv_addr",t)},expression:"ruleForm.inv_addr"}})],1)],1),t("el-col",{attrs:{span:11}},[t("el-form-item",{attrs:{label:"法人",prop:"inv_legaler"}},[t("el-input",{attrs:{placeholder:"法人",maxlength:"12",minlength:"2",clearable:"",disabled:"007"==e.isDetail},model:{value:e.ruleForm.inv_legaler,callback:function(t){e.$set(e.ruleForm,"inv_legaler",t)},expression:"ruleForm.inv_legaler"}})],1)],1),t("el-col",{attrs:{span:13}},[t("el-form-item",{attrs:{label:"成立日期",prop:"inv_time"}},[t("el-date-picker",{staticStyle:{width:"100%"},attrs:{align:"right",type:"date",placeholder:"成立日期","value-format":"yyyy-MM-dd","picker-options":e.pickerOptions},model:{value:e.ruleForm.inv_time,callback:function(t){e.$set(e.ruleForm,"inv_time",t)},expression:"ruleForm.inv_time"}})],1)],1),t("el-col",{attrs:{span:11}},[t("el-form-item",{attrs:{label:"联系人",prop:"contactor"}},[t("el-input",{attrs:{placeholder:"联系人",maxlength:"12",minlength:"2",clearable:"",disabled:"007"==e.isDetail},model:{value:e.ruleForm.contactor,callback:function(t){e.$set(e.ruleForm,"contactor",t)},expression:"ruleForm.contactor"}})],1)],1),t("el-col",{attrs:{span:13}},[t("el-form-item",{attrs:{label:"营业范围",prop:"inv_scope"}},[t("el-input",{attrs:{type:"textarea",placeholder:"营业范围",maxlength:"2000",rows:8,"show-word-limit":"",disabled:"007"==e.isDetail},model:{value:e.ruleForm.inv_scope,callback:function(t){e.$set(e.ruleForm,"inv_scope",t)},expression:"ruleForm.inv_scope"}})],1)],1),t("el-col",{attrs:{span:11}},[t("el-form-item",{attrs:{label:"公司类型",prop:"type"}},[t("search-company-type",{attrs:{value:e.ruleForm.type,disabled:!1,size:"mini",isDetail:!1,placeholder:"公司类型"},on:{searchChange:e.type_search_change}})],1)],1),t("el-col",{staticStyle:{height:"124px"},attrs:{span:11}},[t("el-form-item",{staticClass:"activity-upload",attrs:{label:"营业执照",prop:"license_img"}},[t("div",{staticClass:"btnupload",staticStyle:{position:"relative"}},[e.ruleForm.license_img?t("img",{staticClass:"avatar",attrs:{src:e.ruleForm.license_img}}):t("i",{staticClass:"el-icon-plus avatar-uploader-icon"}),t("file-upload",{staticClass:"Upload",attrs:{disabled:"007"==e.isDetail,accept:".jpg,.png,.jpeg",multiple:!0,uploadcondition:e.beforeAvatarUpload},on:{UploadErrorEvent:e.UploadErrorEvent,UploadSuccessEvent:e.UploadSuccessEvent}})],1),t("div",{staticClass:"txt-tips fl"},[t("p",[e._v("大小:小于1M")]),t("p",[e._v("尺寸:100*100")]),t("p",[e._v("类型:jpg.png.jpeg")])])])],1)],1)],1)],1),t("el-row",{staticStyle:{"border-top":"1px solid #dcdfe6"}},[t("el-col",{staticStyle:{height:"120px",padding:"20px 0 0 0","border-right":"1px solid #dcdfe6"},attrs:{span:1}},[t("ul",{staticClass:"tc sss"},[t("li",[e._v("开")]),t("li",[e._v("票")]),t("li",[e._v("信")]),t("li",[e._v("息")])])]),t("el-col",{staticStyle:{padding:"20px 0 0 0"},attrs:{span:23}},[t("el-row",[t("el-col",{attrs:{span:13}},[t("el-form-item",{attrs:{label:"银行名称",prop:"inv_bank"}},[t("el-input",{attrs:{placeholder:"银行名称",disabled:"007"==e.isDetail,maxlength:"100"},model:{value:e.ruleForm.inv_bank,callback:function(t){e.$set(e.ruleForm,"inv_bank",t)},expression:"ruleForm.inv_bank"}})],1)],1),t("el-col",{attrs:{span:11}},[t("el-form-item",{attrs:{label:"银行卡号",prop:"inv_bankNo"}},[t("el-input",{attrs:{placeholder:"银行卡号",maxlength:"100",disabled:"007"==e.isDetail},model:{value:e.ruleForm.inv_bankNo,callback:function(t){e.$set(e.ruleForm,"inv_bankNo",t)},expression:"ruleForm.inv_bankNo"}})],1)],1),t("el-col",{attrs:{span:13}},[t("el-form-item",{attrs:{label:"联系地址",prop:"addr"}},[t("el-input",{attrs:{placeholder:"联系地址",maxlength:"100",disabled:"007"==e.isDetail},model:{value:e.ruleForm.addr,callback:function(t){e.$set(e.ruleForm,"addr",t)},expression:"ruleForm.addr"}})],1)],1),t("el-col",{attrs:{span:11}},[t("el-form-item",{attrs:{label:"联系电话",prop:"mobile"}},[t("el-input",{attrs:{placeholder:"联系电话",maxlength:"100",disabled:"007"==e.isDetail},model:{value:e.ruleForm.mobile,callback:function(t){e.$set(e.ruleForm,"mobile",t)},expression:"ruleForm.mobile"}})],1),t("div",{staticStyle:{width:"100%","text-align":"right"}},["007"!==e.isDetail?t("el-button",{attrs:{type:"primary",size:"small"},on:{click:e.submitForm}},[e._v("保 存 ")]):e._e(),t("el-button",{attrs:{size:"small"},on:{click:function(t){e.showModelThis=!1}}},[e._v(e._s("007"==e.isDetail?"关 闭":"取 消"))])],1)],1)],1)],1)],1)],1)],1)],1)],1)],1)}),[],!1,null,"0dad280f",null);t.default=a.exports},"9ef2":function(e,t,a){},"9fce":function(e,t,a){"use strict";a.r(t);var r=a("1da1"),n=a("5530"),i=(a("96cf"),a("7db0"),a("d3b7"),a("e9c4"),a("25f0"),a("159b"),a("a9e3"),a("f5ed")),s=a("9f53"),o=a("1b69"),l="admin/",c=function(e,t){return Object(o.a)(l+"getstockbet",e,"post",t)},u=[{prop:"company_no",label:"仓库业务公司编码",width:"150"},{prop:"company_name",label:"仓库业务公司名称","min-width":"180"},{prop:"supplier_code",label:"仓库所在公司编码",width:"150"},{prop:"supplier_name",label:"仓库所在公司名称","min-width":"180"},{prop:"wsm_code",label:"仓库编码",width:"180"},{prop:"wsm_name",label:"仓库名称","min-width":"100"},{prop:"good_code",label:"商品编码",width:"160"},{prop:"good_name",label:"商品名称","min-width":"150"},{prop:"specinfo",label:"规格","min-width":"150",_slot_:"specinfo"},{prop:"can",label:"分类",_slot_:"can",width:"155"},{prop:"brand_name",label:"品牌",width:"85"},{prop:"unit",label:"单位",width:"50"},{prop:"usable_stock",label:"当前库存",width:"80"},{prop:"wait_in_stock",label:"待入库",width:"80"},{prop:"wait_out_stock",label:"待出库",width:"80"},{prop:"intra_stock",label:"在途库存",width:"80"}],d=a("2f62");i={name:"spaceCount",mixins:[i.a,s.a],components:{},computed:Object(n.a)(Object(n.a)({},Object(d.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"stockCount"==e.menu_route}))||{};e=(null!==e?e:{}).action;return null!=e?e:[]}}),data:function(){return{stock_code:"",supplier_code:"",parmValue:{supplier_code:[],stock_code:[],companyNo:"",start:"",end:"",type_code:"",page:1,size:15},loading:!0,tableData:[],table:{stripe:!0,border:!0,_defaultHeader_:["setcol"]},pageInfo:{size:15,curr:1,total:0},columns:u}},mounted:function(){this.searchList()},methods:{supplierChange:function(e){var t=this;return Object(r.a)(regeneratorRuntime.mark((function a(){var r;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return r=e.code,t.parmValue.companyNo=r||"",t.parmValue.supplier_code=[],t.supplier_code="",t.parmValue.stock_code=[],t.stock_code="",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(){return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return t.parmValue.start=e.startTime||"",t.parmValue.end=e.endTime||"",t.parmValue.page=1,t.pageInfo.curr=1,a.next=6,t.searchList();case 6:case"end":return a.stop()}}),a)})))()},selectStock: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.code,t.parmValue.stock_code=r?[r]:[],t.stock_code=r||"",t.parmValue.page=1,t.pageInfo.curr=1,a.next=7,t.searchList();case 7:case"end":return a.stop()}}),a)})))()},selectSupplier: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.code,t.parmValue.supplier_code=r?[r]:[],t.supplier_code=r||"",t.parmValue.stock_code=[],t.stock_code="",t.parmValue.page=1,t.pageInfo.curr=1,a.next=9,t.searchList();case 9:case"end":return a.stop()}}),a)})))()},restSearch:function(){this.pageInfo={size:15,curr:1,total:0},this.parmValue={start:"",end:"",companyNo:"",type_code:"",supplier_code:[],stock_code:[],page:1,size:15},this.searchList()},searchList:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){var a,r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,(a=JSON.parse(JSON.stringify(e.parmValue))).supplierNo=a.supplier_code.toString()||"",a.wsm_code=a.stock_code.toString()||"",delete a.supplier_code,delete a.stock_code,t.next=8,c(a);case 8:if(!(r=t.sent)||0!==r.code||!r.data){t.next=15;break}e.tableData=r.data.list,e.tableData.forEach((function(e){e.supplier_wsm_name=e.supplier_name===e.wsm_name?e.supplier_name:e.supplier_name+"/"+e.wsm_name})),e.pageInfo.total=Number(r.data.count),t.next=22;break;case 15:if(r&&100<=r.code&&r.code<=104)return t.next=18,e.logout();t.next=20;break;case 18:t.next=22;break;case 20:e.tableData=[],e.pageInfo.total=0;case 22:e.loading=!1;case 23:case"end":return t.stop()}}),t)})))()}}},s=a("2877"),n=Object(s.a)(i,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"spaceCount pagePadding",staticStyle:{padding:"0"}},[e.powers.some((function(e){return"001"==e}))?a("div",[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",{staticClass:"min",staticStyle:{width:"100%"}},[a("el-row",{staticStyle:{padding:"0 0 0 80px"}},[a("el-col",{staticStyle:{width:"300px"},attrs:{span:12}},[a("search-work-company",{attrs:{value:e.parmValue.companyNo,names:"",size:e.searchSize,"is-detail":"add"!==e.id,placeholder:"业务公司"},on:{searchChange:e.supplierChange}})],1),a("el-col",{staticStyle:{width:"330px",padding:"0 0 0 10px"},attrs:{span:10}},[a("el-input",{attrs:{size:e.searchSize,maxlength:"40",placeholder:"商品属性编码"},model:{value:e.parmValue.type_code,callback:function(t){e.$set(e.parmValue,"type_code",t)},expression:"parmValue.type_code"}})],1),a("el-col",{staticClass:"fr",staticStyle:{width:"66px"},attrs:{span:4}},[a("el-button",{staticClass:"fl",attrs:{size:e.searchSize,type:"warning"},on:{click:e.restSearch}},[e._v("重置")])],1)],1),a("el-row",{staticStyle:{padding:"10px 0 0 0"}},[a("el-col",{staticStyle:{width:"380px"},attrs:{span:12}},[a("search-supplier",{attrs:{size:e.searchSize,placeholder:"供应商公司",disabled:""===e.parmValue.companyNo,value:e.parmValue.supplier_code},on:{searchChange:e.selectSupplier}})],1),a("el-col",{staticStyle:{width:"330px",padding:"0 0 0 10px"},attrs:{span:12}},[a("search-stock",{attrs:{isDetail:!0,size:e.searchSize,value:e.parmValue.stock_code,disabled:""===e.supplier_code,placeholder:"出库仓库",isRelation:!0,companyCode:e.supplier_code,names:""},on:{searchChange:e.selectStock}})],1),a("el-col",{staticClass:"fr",staticStyle:{width:"66px"},attrs:{span:4}},[a("el-button",{attrs:{size:e.searchSize,type:"primary",label:""},on:{click:e.searchList}},[e._v("刷新")])],1)],1)],1)]}},{key:"specinfo",fn:function(t){return t=t.scope,e._l(t.row.specinfo,(function(t,r){return a("span",{key:r+t.spec_value_id},[e._v(e._s(0===r?"":"-")+e._s(t.spec_name)+"["+e._s(t.spec_value)+"]")])}))}},{key:"can",fn:function(t){return t=t.scope,e._l(t.row.cat_info,(function(t,r){return a("span",{key:r+t.id},[e._v(e._s(0===r?"":"-")+e._s(t.name))])}))}}],null,!1,3042128963)})],1):a("div",[a("no-auth")],1)])}),[],!1,null,null,null);t.default=n.exports},a035:function(e,t,a){},a051:function(e,t,a){},a072:function(e,t,a){"use strict";a.r(t);var r=a("1da1"),n=a("5530"),i=(a("96cf"),a("7db0"),a("d3b7"),a("e9c4"),a("25f0"),a("159b"),a("b0c0"),a("a9e3"),a("dc59")),s=a("f5ed"),o=a("2f62"),l=a("9f53"),c=[{id:"0",name:"否"},{id:"1",name:"是"}],u=[{type:"selection",fixed:"left",_noset_:!0},{prop:"spuCode",label:"编号",width:"160px"},{prop:"good_name",label:"名称","min-width":"160px"},{prop:"cat_name",label:"分类"},{prop:"brand_name",label:"品牌"},{prop:"good_type",label:"是否定制",_slot_:"good_type",width:"70px"},{prop:"companyNo",label:"业务公司编号",width:"110px"},{prop:"company",label:"业务公司名称",width:"110px"},{prop:"addtime",label:"创建时间",width:"140px"},{prop:"",label:"操作",fixed:"right",_noset_:!0,width:"50px",_slot_:"operation"}],d=a("ed0b"),p=a("87b8");s={name:"dealGoodsPool",mixins:[s.a,l.a],components:{showGoodsDataTableModal:d.a,addEdit:p.default},computed:Object(n.a)(Object(n.a)({},Object(o.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"dealGoodsPool"==e.menu_route}))||{};e=(null!==e?e:{}).action;return null!=e?e:[]}}),data:function(){return{row:{},visible:!1,select:"1",sinput:"",showModel:!1,changeList:[],statusList:[{code:"0",name:"新建待审核"},{code:"1",name:"审核通过"},{code:"2",name:"基础修改待审核"},{code:"3",name:"成本修改待审核"}],options1:c,loading:!1,parmValue:{page:1,size:15,start:"",end:"",status:"",creater:"",spuCode:"",good_name:""},tableData:[],table:{stripe:!0,border:!0,_defaultHeader_:["setcol"]},pageInfo:{size:15,curr:1,total:0},columns:u,supplierNo:[],cat_id:[],brandid:[]}},mounted:function(){this.supplierNo=[],this.cat_id=[],this.brandid=[],this.searchList()},methods:{add_online:function(){0===this.changeList.length?this.$message.warning("至少选择一个商品!"):100new Date(e.endTime).valueOf()}},pickerOptions2:{disabledDate:function(t){if(null!=e.startTime&&""!=e.startTime&&t)return t.getTime()=)","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form-item",{directives:[{name:"show",rawName:"v-show",value:t.row.edit,expression:"scope.row.edit"}],style:{marginBottom:t.row.edit?"13px":"0"},attrs:{prop:"good_ladder."+t.$index+".min_num",rules:e.addrRules.min_num,size:"mini"}},[a("digital-input",{attrs:{values:t.row.min_num,placeholder:"起订量(>=)",min:0,max:1e11,position:"right",precision:0,controls:!1,append:"",newTime:t.row.newTime,size:"mini",disabled:!t.row.edit},on:{reschange:function(a){return e.num_change(a,"min_num",t.$index)}}})],1),a("span",{directives:[{name:"show",rawName:"v-show",value:!t.row.edit,expression:"!scope.row.edit"}]},[e._v(e._s(t.row.min_num))])]}}])}),a("el-table-column",{attrs:{prop:"new_sale_price","show-overflow-tooltip":""},scopedSlots:e._u([{key:"header",fn:function(t){return[a("span",[e._v("系统售价")])]}},{key:"default",fn:function(t){return[a("el-form-item",{directives:[{name:"show",rawName:"v-show",value:t.row.edit,expression:"scope.row.edit"}],style:{marginBottom:t.row.edit?"13px":"0"},attrs:{prop:"good_ladder."+t.$index+".new_sale_price",rules:e.addrRules.new_sale_price,size:"mini"}},[a("el-input",{directives:[{name:"loading",rawName:"v-loading",value:t.row.loading,expression:"scope.row.loading"}],attrs:{placeholder:"系统售价",disabled:!0,size:"mini",maxlength:"20"},model:{value:t.row.new_sale_price,callback:function(a){e.$set(t.row,"new_sale_price",a)},expression:"scope.row.new_sale_price"}})],1),a("span",{directives:[{name:"show",rawName:"v-show",value:!t.row.edit,expression:"!scope.row.edit"}]},[e._v(e._s(t.row.new_sale_price))])]}}])}),e.sitem&&"1"===e.sitem.is_gold_price&&e.is_noble?e._e():a("el-table-column",{attrs:{prop:"sale_price",label:"售价","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form-item",{directives:[{name:"show",rawName:"v-show",value:t.row.edit,expression:"scope.row.edit"}],style:{marginBottom:t.row.edit?"13px":"0"},attrs:{prop:"good_ladder."+t.$index+".sale_price",rules:e.addrRules.sale_price,size:"mini"}},[a("digital-input",{attrs:{values:t.row.sale_price,placeholder:"售价",min:0,max:1e11,position:"right",precision:2,controls:!1,append:"",newTime:t.row.newTime,size:"mini",disabled:!t.row.edit},on:{reschange:function(a){return e.num_change(a,"sale_price",t.$index)}}})],1),a("span",{directives:[{name:"show",rawName:"v-show",value:!t.row.edit,expression:"!scope.row.edit"}]},[e._v(e._s(t.row.sale_price))])]}}],null,!1,3637421800)}),e.sitem&&"1"===e.sitem.is_gold_price&&e.is_noble?a("el-table-column",{attrs:{prop:"new_cost_fee","show-overflow-":"",label:"系统工艺费"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form-item",{directives:[{name:"show",rawName:"v-show",value:t.row.edit,expression:"scope.row.edit"}],style:{marginBottom:t.row.edit?"13px":"0"},attrs:{prop:"good_ladder."+t.$index+".new_cost_fee",rules:e.addrRules.new_cost_fee,size:"mini"}},[a("el-input",{directives:[{name:"loading",rawName:"v-loading",value:t.row.loading,expression:"scope.row.loading"}],attrs:{placeholder:"工艺费",disabled:!0,size:"mini",maxlength:"20"},model:{value:t.row.new_cost_fee,callback:function(a){e.$set(t.row,"new_cost_fee",a)},expression:"scope.row.new_cost_fee"}})],1),a("span",{directives:[{name:"show",rawName:"v-show",value:!t.row.edit,expression:"!scope.row.edit"}]},[e._v(e._s(t.row.new_cost_fee))])]}}],null,!1,2813150560)}):e._e(),e.sitem&&"1"===e.sitem.is_gold_price&&e.is_noble?a("el-table-column",{attrs:{prop:"cost_fee",label:"工艺费","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form-item",{directives:[{name:"show",rawName:"v-show",value:t.row.edit,expression:"scope.row.edit"}],style:{marginBottom:t.row.edit?"13px":"0"},attrs:{prop:"good_ladder."+t.$index+".cost_fee",rules:e.addrRules.cost_fee,size:"mini"}},[a("digital-input",{attrs:{values:t.row.cost_fee,placeholder:"工艺费",min:0,max:1e11,position:"right",precision:2,controls:!1,append:"",newTime:t.row.newTime,size:"mini",disabled:!t.row.edit},on:{reschange:function(a){return e.num_change(a,"cost_fee",t.$index)}}})],1),a("span",{directives:[{name:"show",rawName:"v-show",value:!t.row.edit,expression:"!scope.row.edit"}]},[e._v(e._s(t.row.cost_fee))])]}}],null,!1,3735667788)}):e._e(),a("el-table-column",{attrs:{prop:"market_price",label:"市场价","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form-item",{directives:[{name:"show",rawName:"v-show",value:t.row.edit,expression:"scope.row.edit"}],style:{marginBottom:t.row.edit?"13px":"0"},attrs:{prop:"good_ladder."+t.$index+".market_price",rules:e.addrRules.market_price,size:"mini"}},[a("digital-input",{attrs:{values:t.row.market_price,placeholder:"市场价",min:0,max:1e11,position:"right",precision:2,controls:!1,append:"",newTime:t.row.newTime,size:"mini",disabled:!t.row.edit},on:{reschange:function(a){return e.num_change(a,"market_price",t.$index)}}})],1),a("span",{directives:[{name:"show",rawName:"v-show",value:!t.row.edit,expression:"!scope.row.edit"}]},[e._v(e._s(t.row.market_price))])]}}])}),a("el-table-column",{attrs:{prop:"market_platform",label:"对比平台","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form-item",{directives:[{name:"show",rawName:"v-show",value:t.row.edit,expression:"scope.row.edit"}],style:{marginBottom:t.row.edit?"13px":"0"},attrs:{prop:"good_ladder."+t.$index+".market_platform",rules:e.addrRules.market_platform,size:"mini"}},[a("el-input",{attrs:{placeholder:"对比平台",maxlength:"50",disabled:!t.row.edit},model:{value:t.row.market_platform,callback:function(a){e.$set(t.row,"market_platform",a)},expression:"scope.row.market_platform"}})],1),a("span",{directives:[{name:"show",rawName:"v-show",value:!t.row.edit,expression:"!scope.row.edit"}]},[e._v(e._s(t.row.market_platform))])]}}])}),a("el-table-column",{attrs:{prop:"status",label:"状态","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form-item",{directives:[{name:"show",rawName:"v-show",value:t.row.edit,expression:"scope.row.edit"}],style:{marginBottom:t.row.edit?"13px":"0"},attrs:{prop:"good_ladder."+t.$index+".status",rules:e.addrRules.status,size:"mini"}},[a("el-select",{attrs:{placeholder:"状态"},model:{value:t.row.status,callback:function(a){e.$set(t.row,"status",a)},expression:"scope.row.status"}},e._l(e.status_options,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),a("span",{directives:[{name:"show",rawName:"v-show",value:!t.row.edit,expression:"!scope.row.edit"}]},[e._v(e._s("1"==t.row.status?"启用":"禁用"))])]}}])}),a("el-table-column",{attrs:{fixed:"right"},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[t.row.edit?a("el-tooltip",{attrs:{effect:"dark",content:"保存",placement:"top"}},[a("i",{staticClass:"el-icon-circle-check tb-icon",on:{click:function(a){return e.checkRow(t.$index)}}})]):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)}}})]),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)}}})])]}}])})],1)],1),a("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm-goodsOnline",attrs:{model:e.ruleForm,"status-icon":"",rules:e.rulesThis,"label-position":"left",size:"mini"}},[a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"审核状态",prop:"state"}},[a("el-radio-group",{attrs:{placeholder:"请选择审核状态",size:e.size||"medium"},on:{change:e.stateChange},model:{value:e.ruleForm.state,callback:function(t){e.$set(e.ruleForm,"state",t)},expression:"ruleForm.state"}},e._l(e.stateList,(function(t){return a("el-radio",{key:t.value,attrs:{label:t.value}},[e._v(e._s(t.label))])})),1)],1),a("el-form-item",{attrs:{label:"审核备注",prop:"remark"}},[a("el-input",{attrs:{type:"textarea",placeholder:"审核备注",disabled:e.disabled,maxlength:"250","show-word-limit":"",autosize:{minRows:3,maxRows:3}},model:{value:e.ruleForm.remark,callback:function(t){e.$set(e.ruleForm,"remark",t)},expression:"ruleForm.remark"}})],1)],1),"1"===e.ruleForm.state?a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"售价凭证类型",prop:"proof_type"}},[a("el-radio-group",{on:{change:function(t){return e.set_proof_url()}},model:{value:e.ruleForm.proof_type,callback:function(t){e.$set(e.ruleForm,"proof_type",t)},expression:"ruleForm.proof_type"}},e._l(e.options,(function(t){return a("el-radio",{key:t.value,attrs:{label:t.value}},[e._v(e._s(t.label))])})),1),a("el-button",{staticClass:"fr",attrs:{type:"primary"},on:{click:function(t){e.showVoucher=!0}}},[e._v("查看历史凭证")])],1),a("el-form-item",{attrs:{label:"凭证文件",prop:"proof_url"}},[a("ul",{staticClass:"shangchuan-ul"},["1"===e.ruleForm.proof_type?a("li",{staticClass:"shiping"},[e.video_url?a("div",{staticClass:"clearfix"},[a("el-popover",{attrs:{placement:"top",width:"300",trigger:"hover"}},[a("video",{staticClass:"fl",attrs:{width:"275",controls:""}},[a("source",{attrs:{src:e.video_url,type:"video/mp4"}}),a("source",{attrs:{src:e.video_url,type:"video/avi"}}),e._v(" 您的浏览器不支持Video标签。 ")]),a("i",{staticClass:"el-icon-video-camera-solid hover",staticStyle:{"font-size":"18px"},attrs:{slot:"reference"},slot:"reference"})]),a("el-link",{staticStyle:{margin:"0 0 0 16px"},attrs:{underline:!1,type:"warning"},on:{click:function(t){return e.deleteUrl("1")}}},[e._v("删除")])],1):a("div",{staticClass:"activity-upload"},[a("div",{staticClass:"btnupload",staticStyle:{position:"relative"}},[a("i",{staticClass:"el-icon-plus avatar-uploader-icon"}),a("video-upload",{staticClass:"Upload",attrs:{disabled:"view"===e.type||"editCoin"===e.type,accept:".mp4,.avi",multiple:!1,uploadcondition:e.beforeVideoUpload},on:{UploadErrorEvent:e.UploadVideoEventproof_url,UploadSuccessEvent:e.UploadSuccessVideoproof_url}})],1),a("div",{staticClass:"txt-tips fl"},[a("p",[e._v("建议大小:小于10MB")]),a("p",[e._v("文件格式:.mp4,.avi")])])])]):e._e(),"2"===e.ruleForm.proof_type?a("li",{staticClass:"tupian"},[e.img_url?a("div",{staticClass:"clearfix"},[a("img",{staticClass:"avatar fl",staticStyle:{width:"50px",height:"50px"},attrs:{src:e.img_url}}),a("el-link",{staticStyle:{margin:"0 0 0 16px"},attrs:{underline:!1,type:"warning"},on:{click:function(t){return e.deleteUrl("2")}}},[e._v("删除")])],1):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:!1,uploadcondition:e.beforeAvatarUpload},on:{UploadErrorEvent:e.UploadErrorEventproof_url,UploadSuccessEvent:e.UploadSuccessEventproof_url}})],1),a("div",{staticClass:"txt-tips fl"},[a("p",[e._v("建议大小:小于1MB")]),a("p",[e._v("文件格式:.jpg,.png,.jpeg")])])])]):e._e(),"3"===e.ruleForm.proof_type?a("li",{staticClass:"qita"},[e.other_url?a("div",{staticClass:"clearfix"},[a("a",{attrs:{href:e.other_url,download:"凭证文件"}},[e._v("点击下载")]),a("el-link",{staticStyle:{margin:"0 0 0 16px"},attrs:{underline:!1,type:"warning"},on:{click:function(t){return e.deleteUrl("3")}}},[e._v("删除")])],1):a("div",{staticClass:"activity-upload"},[a("div",{staticClass:"btnupload",staticStyle:{position:"relative"}},[a("i",{staticClass:"el-icon-plus avatar-uploader-icon"}),a("file-upload-pdf",{staticClass:"Upload",attrs:{accept:".xlsx,.xls,.pdf,.zip,.rar,.7z",multiple:!1,uploadcondition:e.beforeOtherUpload},on:{UploadErrorEvent:e.UploadErrorOtherproof_url,UploadSuccessEvent:e.UploadSuccessOtherproof_url}})],1),a("div",{staticClass:"txt-tips fl"},[a("p",[e._v("建议大小:小于5MB")]),a("p",[e._v("文件格式:.xlsx,.xls,.pdf,.zip,.rar,.7z")])])])]):e._e()])]),a("show-voucher-model",{attrs:{showModel:e.showVoucher,id:e.spuCode},on:{cancel:function(t){e.showVoucher=!1},searchChange:e.resvoucher}})],1):e._e(),a("el-col",{attrs:{span:24}},[a("el-form-item",{staticClass:"fr"},[e.isDetail||"1"===e.ruleForm.state?e._e():a("el-button",{attrs:{size:"mini",type:"primary"},on:{click:function(t){return e.rejectRe("")}}},[e._v("驳回重新审核 ")]),e.isDetail?e._e():a("el-button",{attrs:{size:"mini",type:"primary"},on:{click:e.submitForm}},[e._v("保 存 ")])],1)],1)],1)],1)],1)}),[],!1,null,"88181fa4",null);t.default=a.exports},b7e3:function(e,t,a){"use strict";a.r(t);var r=a("1da1"),n=a("5530"),i=(a("96cf"),a("7db0"),a("d3b7"),a("a9e3"),a("baa8")),s=a("fc11"),o=a("0ee5"),l=a("e66a"),c=a("f5ed"),u=a("2f62"),d=a("9f53");c={name:"orderuse",mixins:[c.a,d.a],components:{addEdit:i.default},computed:Object(n.a)(Object(n.a)({},Object(u.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"orderuse"==e.menu_route}))||{};e=(null!==e?e:{}).action;return null!=e?e:[]}}),data:function(){return{statusList:o.b,roleLevel:l.a,loading:!0,showModel:!1,modelId:"000",sitem:{},parmValue:{page:1,size:15,start:"",end:"",order_use:"",status:"",company_name:"",creater:""},statusOptions:[{id:"0",label:"禁用"},{id:"1",label:"启用"}],tableData:[],table:{stripe:!0,border:!0,_defaultHeader_:["setcol"]},pageInfo:{size:15,curr:1,total:0},columns:[{prop:"id",label:"ID",width:"80px"},{prop:"order_use",label:"订单用途名称"},{prop:"status",label:"状态",_slot_:"status"},{prop:"creater",label:"创建人"},{prop:"company_name",label:"创建人部门",minWidth:"150px"},{prop:"addtime",label:"创建时间"},{prop:"",label:"操作",fixed:"right",_noset_:!0,_slot_:"operation"}]}},mounted:function(){this.searchList()},methods:{restSearch:function(){this.pageInfo={size:15,curr:1,total:0},this.parmValue={page:1,size:15,start:"",end:"",order_use:"",status:"",company_name:"",creater:""},this.searchList()},openModal:function(e,t){var a=e.status;"005"===t&&"1"===a?this.$message.warning("禁用后,才可以修改!"):(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.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)})))()},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,i;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,s.a.status(n);case 4:if((i=r.sent)&&0===i.code)return a.loading=!1,a.$notify.success({title:"状态修改成功!",message:""}),r.next=10,a.searchList();r.next=12;break;case 10:r.next=19;break;case 12:if(i&&100<=i.code&&i.code<=104)return r.next=15,a.logout();r.next=17;break;case 15:r.next=19;break;case 17:a.loading=!1,a.$message.warning(i.message);case 19:case"end":return r.stop()}}),r)})))).catch((function(){}));case 2:case"end":return n.stop()}}),n)})))()},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={id:e},a.next=3,s.a.delete(r);case 3:if(!(n=a.sent)||0!==n.code){a.next=9;break}t.$notify.success({title:"删除成功",message:""}),t.searchList(),a.next=15;break;case 9:if(n&&100<=n.code&&n.code<=104)return a.next=12,t.logout();a.next=14;break;case 12:a.next=15;break;case 14:t.$message.warning(n.message);case 15: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;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(""!==e.parmValue.start&&""===e.parmValue.end||""==e.parmValue.start&&""!=e.parmValue.end)return e.$message.warning("开始时间和结束时间不能为空"),t.abrupt("return");t.next=3;break;case 3:return e.loading=!0,t.next=6,s.a.list(e.parmValue);case 6:if(!(a=t.sent)||0!==a.code||!a.data){t.next=12;break}e.tableData=a.data.list,e.pageInfo.total=Number(a.data.count),t.next=19;break;case 12:if(a&&100<=a.code&&a.code<=104)return t.next=15,e.logout();t.next=17;break;case 15:t.next=19;break;case 17:e.tableData=[],e.pageInfo.total=0;case 19:e.loading=!1;case 20:case"end":return t.stop()}}),t)})))()}}},d=a("2877"),i=Object(d.a)(c,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"orderuse pagePadding"},[e.powers.some((function(e){return"001"==e}))?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 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:"160px"},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",{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:"373px"},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.parmValue.order_use,callback:function(t){e.$set(e.parmValue,"order_use",t)},expression:"parmValue.order_use"}})],1),a("el-col",{staticStyle:{width:"170px",padding:"0 0 0 10px"},attrs:{span:4}},[a("el-input",{attrs:{size:e.searchSize,maxlength:40,placeholder:"创建人"},on:{change:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.parmValue.creater,callback:function(t){e.$set(e.parmValue,"creater",t)},expression:"parmValue.creater"}})],1),a("el-col",{staticStyle:{width:"170px",padding:"0 0 0 10px"},attrs:{span:4}},[a("el-input",{attrs:{size:e.searchSize,maxlength:40,placeholder:"创建人部门"},on:{change:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.parmValue.company_name,callback:function(t){e.$set(e.parmValue,"company_name",t)},expression:"parmValue.company_name"}})],1),e.powers.some((function(e){return"003"==e}))?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.openModal({},"003")}}},[e._v(" 添加 ")])],1):e._e()],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:"operation",fn:function(t){var r=t.scope;return[e.powers.some((function(e){return"007"==e}))?a("el-tooltip",{attrs:{effect:"dark",content:"详情",placement:"top"}},[a("i",{staticClass:"el-icon-view tb-icon",on:{click:function(t){return e.openModal(r.row,"007")}}})]):e._e(),e.powers.some((function(e){return"005"==e}))?a("el-tooltip",{attrs:{effect:"dark",content:"修改",placement:"top"}},[a("i",{staticClass:"el-icon-edit tb-icon",on:{click:function(t){return e.openModal(r.row,"005")}}})]):e._e(),e.powers.some((function(e){return"004"==e}))&&"1"===r.row.status?a("el-tooltip",{attrs:{effect:"dark",content:"禁用",placement:"top"}},[a("i",{staticClass:"el-icon-video-pause tb-icon",on:{click:function(t){return e.changeStatus(r.row.id,r.row.status)}}})]):e._e(),e.powers.some((function(e){return"004"==e}))&&"0"===r.row.status?a("el-tooltip",{attrs:{effect:"dark",content:"启用",placement:"top"}},[a("i",{staticClass:"el-icon-video-play tb-icon",on:{click:function(t){return e.changeStatus(r.row.id,r.row.status)}}})]):e._e(),e.powers.some((function(e){return"006"==e}))?a("el-tooltip",{attrs:{effect:"dark",content:"删除",placement:"top"}},[a("i",{staticClass:"el-icon-delete tb-icon",on:{click:function(t){return e.deleteItem(r.row.id)}}})]):e._e()]}}],null,!1,1820143921)}):a("no-auth"),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,"cacdfc2a",null);t.default=i.exports},b7e5: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:"zxNo",label:"竞价单编号",width:"158px"},{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:"company_name",label:"采购员部门",minWidth:"150px"},{prop:"creater",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:"stock_moq",label:"备库起订量",span:4},{prop:"noble",_slot_:"noble",label:"贵金属信息",span:20},{prop:"remark",label:"采返备注",span:24},{prop:"cost_desc",label:"工艺说明",span:24},{prop:"good_img",_slot_:"good_img",label:"商品图片",span:24}]},b84d:function(e,t,a){"use strict";a.r(t);var r=a("1da1"),n=(a("96cf"),a("d3b7"),a("159b"),a("33de")),i=a("a4e6"),s=(n={data:function(){return{options:{legend:{},tooltip:{},dataset:{source:[["product","今日","本月","今年"]]},xAxis:{type:"category"},yAxis:{},series:[{type:"bar",label:{show:!0,color:"#fff",position:"top",formatter:function(e){return e.value[1]+"%"}},itemStyle:{normal:{color:"#1a8cd7"}}},{type:"bar",label:{show:!0,color:"#fff",position:"top",formatter:function(e){return e.value[2]+"%"}},itemStyle:{normal:{color:"skyblue"}}},{type:"bar",label:{show:!0,color:"#fff",position:"top",formatter:function(e){return e.value[3]+"%"}},itemStyle:{normal:{color:"orange"}}}]},flag:!1}},components:{Echart:n.a},props:{cdata:{type:Object,default:function(){return{}}}},mounted:function(){this.initHttp3()},methods:{initHttp: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:return t.next=2,i.a.datatordertransferratetoday();case 2:if(!((a=t.sent).data.length<=0)){t.next=6;break}for(r=0;rnew Date(e.endTime).valueOf()}},pickerOptions2:{disabledDate:function(t){if(null!=e.startTime&&""!=e.startTime&&t)return t.getTime() 0"}]},[e._v("/")]),a("span",[e._v(e._s(t))])])})),e._v(" "+e._s(t.name))],2)}))}},{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:"operation",fn:function(t){var r=t.scope;return[e.powers.some((function(e){return"002"==e}))?a("el-tooltip",{attrs:{effect:"dark",content:"重置密码",placement:"top"}},[a("i",{staticClass:"el-icon-refresh-left tb-icon",on:{click:function(t){return e.openPasswordModal(r.row.id,!1)}}})]):e._e(),e.powers.some((function(e){return"007"==e}))?a("el-tooltip",{attrs:{effect:"dark",content:"详情",placement:"top"}},[a("i",{staticClass:"el-icon-view tb-icon",on:{click:function(t){return e.openModal(r.row.id,!0,r.row)}}})]):e._e(),e.powers.some((function(e){return"005"==e}))?a("el-tooltip",{attrs:{effect:"dark",content:"修改",placement:"top"}},[a("i",{staticClass:"el-icon-edit tb-icon",on:{click:function(t){return e.openModal(r.row.id,!1,r.row)}}})]):e._e(),e.powers.some((function(e){return"004"==e}))&&"1"===r.row.status?a("el-tooltip",{attrs:{effect:"dark",content:"禁用",placement:"top"}},[a("i",{staticClass:"el-icon-video-pause tb-icon",on:{click:function(t){return e.statusConfirm(r.row.id,r.row.status)}}})]):e._e(),e.powers.some((function(e){return"004"==e}))&&"0"===r.row.status?a("el-tooltip",{attrs:{effect:"dark",content:"启用",placement:"top"}},[a("i",{staticClass:"el-icon-video-play tb-icon",on:{click:function(t){return e.statusConfirm(r.row.id,r.row.status)}}})]):e._e()]}}],null,!1,917723571)}),a("add-edit",{attrs:{id:e.modelId,sitem:e.sitem,"show-model":e.showModel,"is-detail":e.isDetail},on:{refresh:e.searchList,cancel:function(t){e.showModel=!1}}}),a("reset-password",{attrs:{id:e.passwordModelId,"show-model":e.passwordModel,"is-detail":e.isPasswordDetail},on:{refresh:e.searchList,cancel:function(t){e.passwordModel=!1}}})],1):a("div",[a("no-auth")],1)])}),[],!1,null,"7735e3fe",null);t.default=s.exports},c421:function(e,t,a){"use strict";a.r(t);var r=a("2909"),n=a("1da1"),i=(a("e9c4"),a("d81d"),a("99af"),a("d3b7"),a("159b"),a("c740"),a("96cf"),a("a2b6")),s=a("9f53"),o=a("61f7");s={name:"sellReturn",props:["showModel","id","isDetail","sitem","showModelThis","newTime"],mixins:[s.a],data:function(){return{loading:!1,showModelThis:this.showModel,ruleForm:{orderCode:"",remark:"",errorCode:""},rulesThis:this.rules,rules:{errorCode:[{required:!0,message:"请选择退货原因",trigger:"change"}],remark:[{required:!0,message:"请输入退货备注",trigger:"blur"}]},tableForm:{get_product_go:[]}}},mounted:function(){this.initForm()},watch:{newTime:function(e){e&&this.initForm()}},methods:{errorCode_change:function(e){this.ruleForm.errorCode=e&&e.code?e.code:"",this.$refs.ruleForm.validateField("errorCode")},initForm:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,e.rulesThis=e.rules,t.next=4,e.resetForm();case 4:e.loading=!1;case 5:case"end":return t.stop()}}),t)})))()},resetForm:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$nextTick((function(){var t,a,n;e.$refs.ruleForm&&(e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),n=(a=e.sitem).info,t=a.addrs,a=a.orderCode,(n&&0=new Date(r).getTime()&&(this.$message.warning("竞价截止时间不能大于要求到货时间!"),1===t?this.ruleForm.arrtime="":2===t&&(this.ruleForm.endtime="")),this.$refs.ruleForm.validateField("arrtime"),this.$refs.ruleForm.validateField("endtime")},platform_codesearchChange:function(e){var t=e.id;e.code,e.label,this.ruleForm.platform=t||"",this.$refs.ruleForm.validateField("platform")},company_idsearchChange:function(e){var t;e&&(e.id,t=e.code,e.label,this.ruleForm.companyNo=t||""),this.$refs.ruleForm.validateField("companyNo")},customerChange:function(e){e&&e.id?(this.ruleForm.khNo=[e.code],this.ruleForm.customer_name=e.label):(this.ruleForm.khNo=[],this.ruleForm.customer_name=""),this.$refs.ruleForm.validateField("khNo")},budget_total_change:function(e){this.ruleForm.budget_total=e+"",this.$refs.ruleForm.validateField("budget_total")},openCostEdit:function(e,t){this.costmodelIndex=e,this.costsitem=t,this.costshowModel=!0},openCostEditDelete:function(e){this.ruleForm.ladder.splice(e,1),this.$refs.ruleForm.validateField("ladder")},initForm:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,e.company="",e.ruleForm={name:"",platform:"",companyNo:e.business_companyNo||"",khNo:[],customer_name:"",budget_total:"0",arrtime:"",endtime:"",use_desc:"",ladder:[]},e.rulesThis=e.rules,t.next=6,e.resetForm();case 6:e.loading=!1;case 7:case"end":return t.stop()}}),t)})))()},resetForm:function(){var e=this;return Object(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,l,c,u,d,p;e.$refs.ruleForm&&(e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),t=(p=e.sitem).project_name,a=p.budget_total,r=p.ladder,n=p.use_desc,i=p.arrtime,s=p.endtime,o=p.khName,l=p.company,c=p.khNo,u=p.companyNo,d=p.platform_id,p=p.platform_name,e.company=l||"",e.platform_name=p||"",e.ruleForm={name:t||"",platform:d||"",companyNo:u||"",khNo:c?[c]:[],customer_name:o||"",budget_total:a||"0",arrtime:i||"",endtime:s||"",use_desc:n||"",ladder:r&&0new Date(e.ruleForm.endtime).valueOf()}},pickerOptions2:{disabledDate:function(t){if(null!=e.ruleForm.starttime&&""!=e.ruleForm.starttime&&t)return t.getTime() 0"}]},[e._v("/")]),a("span",[e._v(e._s(t))])])})),e._v(" "+e._s(t.name))],2)}))}},{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:"operation",fn:function(t){var r=t.scope;return[e.powers.some((function(e){return"002"==e}))?a("el-tooltip",{attrs:{effect:"dark",content:"重置密码",placement:"top"}},[a("i",{staticClass:"el-icon-refresh-left tb-icon",on:{click:function(t){return e.openPasswordModal(r.row.id,!1)}}})]):e._e(),e.powers.some((function(e){return"007"==e}))?a("el-tooltip",{attrs:{effect:"dark",content:"详情",placement:"top"}},[a("i",{staticClass:"el-icon-view tb-icon",on:{click:function(t){return e.openModal(r.row,"007")}}})]):e._e(),e.powers.some((function(e){return"005"==e}))?a("el-tooltip",{attrs:{effect:"dark",content:"修改",placement:"top"}},[a("i",{staticClass:"el-icon-edit tb-icon",on:{click:function(t){return e.openModal(r.row,"005")}}})]):e._e(),e.powers.some((function(e){return"004"==e}))&&"1"===r.row.status?a("el-tooltip",{attrs:{effect:"dark",content:"禁用",placement:"top"}},[a("i",{staticClass:"el-icon-video-pause tb-icon",on:{click:function(t){return e.statusConfirm(r.row.id,r.row.status)}}})]):e._e(),e.powers.some((function(e){return"004"==e}))&&"0"===r.row.status?a("el-tooltip",{attrs:{effect:"dark",content:"启用",placement:"top"}},[a("i",{staticClass:"el-icon-video-play tb-icon",on:{click:function(t){return e.statusConfirm(r.row.id,r.row.status)}}})]):e._e(),e.powers.some((function(e){return"006"==e}))?a("el-tooltip",{attrs:{effect:"dark",content:"删除",placement:"top"}},[a("i",{staticClass:"el-icon-delete tb-icon",on:{click:function(t){return e.deleteById(r.row.id)}}})]):e._e()]}}],null,!1,455484160)}):e._e(),a("add-edit",{attrs:{id:e.modelId,"show-model":e.showModel,"is-detail":e.isDetail},on:{refresh:e.searchList,cancel:function(t){e.showModel=!1}}})],1):a("div",[a("no-auth")],1)])}),[],!1,null,"6def94b4",null);t.default=u.exports},d4a1: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("d9bb"),c=a("2da1"),u=a("2f62");s={name:"storeSet",mixins:[s.a,o.a],components:{addEdit:c.default},computed:Object(i.a)(Object(i.a)({},Object(u.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"storeSet"==e.menu_route}))||{};e=(null!==e?e:{}).action;return null!=e?e:[]}}),data:function(){var e={options:[{value:"5",label:"销售仓"},{value:"4",label:"次品仓"}],select:"1",input:"",supplierNo:[],stock_sn:"",stock_name:"",company_new_name:"",link:"",loading:!0,showModel:!1,isDetail:!1,modelId:0,parmValue:{supplierNo:"",wsm_code:"",wsm_type:"",start:"",end:"",mobile:"",contactor_name:"",size:15,page:1},tableData:[],passwordModel:!1,passwordModelId:0,isPasswordDetail:!1};return Object(n.a)(e,"tableData",[]),Object(n.a)(e,"table",{stripe:!0,border:!0,_defaultHeader_:["setcol"]}),Object(n.a)(e,"pageInfo",{size:15,curr:1,total:0}),Object(n.a)(e,"columns",[{prop:"wsm_code",label:"编号",width:"170px"},{prop:"name",label:"仓库名称"},{prop:"type_name",label:"仓库类型",width:"80px"},{prop:"supplierNo",label:"供应商编号",width:"140px"},{prop:"supplier_name",label:"供应商公司","min-width":"140px"},{prop:"status",label:"状态",width:"60px",_slot_:"status"},{prop:"company_new_name",label:"负责人部门",minWidth:"150px"},{prop:"contactor_name",label:"负责人",width:"70px"},{prop:"mobile",label:"负责人电话",width:"100px"},{prop:"addtime",label:"创建时间",width:"140px"},{prop:"",label:"操作",width:"140px",fixed:"right",_noset_:!0,_slot_:"operation"}]),Object(n.a)(e,"statusOptions",[{id:"0",label:"禁用"},{id:"1",label:"启用"}]),e},mounted:function(){this.searchList()},methods:{supplierChange:function(e){e&&e.id?(this.supplierNo=[e.code],this.parmValue.supplierNo=e.code):(this.parmValue.supplierNo="",this.supplierNo=[]),this.parmValue.page=1,this.searchList()},stockChange:function(e){e&&e.id?this.parmValue.wsm_code=e.code:this.parmValue.wsm_code="",this.parmValue.page=1,this.searchList()},addList:function(e){window.vm.$router.push({path:"addStore",query:{id:e}})},restSearch:function(){this.pageInfo={size:15,curr:1,total:0},this.supplierNo=[],this.input="",this.select="1",this.parmValue={supplierNo:"",wsm_code:"",wsm_type:"",start:"",company_new_name:"",end:"",mobile:"",contactor_name:"",page:1,size:15},this.searchList()},openModal:function(e,t){this.showModel=!0,this.modelId=e,this.isDetail=t},searchList:function(){var e=this;return Object(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.parmValue.start&&""===e.parmValue.end||""==e.parmValue.start&&""!=e.parmValue.end)return e.$message.warning("开始时间和结束时间不能为空"),t.abrupt("return");t.next=3;break;case 3:return e.loading=!0,e.parmValue.wsm_code="1"===e.select?e.input:"",e.parmValue.contactor_name="2"===e.select?e.input:"",e.parmValue.mobile="3"===e.select?e.input:"",e.parmValue.company_new_name="4"===e.select?e.input:"",t.next=10,l.a.list(e.parmValue);case 10:if(n=t.sent,a=n.code,n=n.data,0!==a){t.next=19;break}r=(n=null!=n?n:{}).list,n=n.count,e.tableData=r,e.pageInfo.total=Number(null!=n?n:"0"),t.next=26;break;case 19:if(100<=a&&a<=104)return t.next=22,e.logout();t.next=24;break;case 22:t.next=26;break;case 24:e.tableData=[],e.pageInfo.total=0;case 26:e.loading=!1;case 27:case"end":return t.stop()}}),t)})))()},statusConfirm:function(e,t){var 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:return i="1"===t?"禁用":"启用",n.next=3,a.$confirm("确定要改为"+i+"?",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(r.a)(regeneratorRuntime.mark((function r(){var n,i;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,l.a.status(n);case 4:if((i=r.sent)&&0===i.code)return a.loading=!1,a.$notify.success({title:"状态修改成功!",message:""}),r.next=10,a.searchList();r.next=12;break;case 10:r.next=18;break;case 12:if(i&&100<=i.code&&i.code<=104)return r.next=15,a.logout();r.next=17;break;case 15:r.next=18;break;case 17:a.$message.warning(i.message);case 18:case"end":return r.stop()}}),r)})))).catch((function(){}));case 3:case"end":return n.stop()}}),n)})))()},deleteById: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:if("1"===t)return a.$message.warning("正在启用的仓库不能删除!"),n.abrupt("return");n.next=3;break;case 3:return n.next=5,a.$confirm("确定要删除?",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(r.a)(regeneratorRuntime.mark((function t(){var r,n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r={id:e},t.next=3,l.a.delete(r);case 3:if(!(n=t.sent)||0!==n.code){t.next=9;break}a.$notify.success({title:"删除成功",message:""}),a.searchList(),t.next=15;break;case 9:if(n&&100<=n.code&&n.code<=104)return t.next=12,a.logout();t.next=14;break;case 12:t.next=15;break;case 14:a.$message.warning(n.message);case 15:case"end":return t.stop()}}),t)})))).catch((function(){}));case 5:case"end":return n.stop()}}),n)})))()}}},o=a("2877"),c=Object(o.a)(s,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"storeSet pagePadding"},[e.powers.some((function(e){return"001"==e}))?a("div",[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 10px 80px"}},[a("el-col",{staticStyle:{width:"303px",padding:"0"},attrs:{span:18}},[a("period-date-picker",{attrs:{start:e.parmValue.start,end:e.parmValue.end,type:1,width:"135px",title:"创建",size:e.searchSize},on:{numReturned:function(t){return e.numReturned(t,0)}}})],1),a("el-col",{staticStyle:{width:"340px",padding:"0"},attrs:{span:18}},[a("search-supplier",{attrs:{value:e.supplierNo,size:e.searchSize,code:e.parmValue.supplierNo,placeholder:"供应商公司名称","is-detail":!1,disabled:!1,names:""},on:{searchChange:e.supplierChange}})],1),a("el-col",{staticClass:"fr",staticStyle:{width:"56px","margin-left":"10px"},attrs:{span:3}},[a("el-button",{attrs:{size:e.searchSize,type:"primary"},on:{click:e.searchList}},[e._v(" 刷新 ")])],1)],1),a("el-row",{staticStyle:{padding:"0"}},[a("el-col",{staticStyle:{width:"120px",padding:"0"},attrs:{span:4}},[a("el-select",{staticStyle:{width:"100%"},attrs:{clearable:"",size:e.searchSize,placeholder:"仓库类型"},on:{change:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.parmValue.wsm_type,callback:function(t){e.$set(e.parmValue,"wsm_type",t)},expression:"parmValue.wsm_type"}},e._l(e.options,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),a("el-col",{staticStyle:{width:"420px",padding:"0 0 0 10px"},attrs:{span:18}},[a("el-input",{staticClass:"input-with-select",attrs:{placeholder:"关键字",maxlength:"40",size:e.searchSize},model:{value:e.input,callback:function(t){e.input=t},expression:"input"}},[a("el-select",{staticStyle:{width:"125px"},attrs:{slot:"prepend",placeholder:"关键字类型"},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"}}),a("el-option",{attrs:{label:"负责人手机号",value:"3"}}),a("el-option",{attrs:{label:"负责人部门",value:"4"}})],1),a("el-button",{attrs:{slot:"append",icon:"el-icon-search"},on:{click:e.searchList},slot:"append"})],1)],1),a("el-col",{staticClass:"fr",staticStyle:{width:"66px","padding-left":"10px"},attrs:{span:4}},[a("el-button",{staticClass:"fl",attrs:{type:"warning",size:e.searchSize},on:{click:e.restSearch}},[e._v(" 重置 ")])],1),e.powers.some((function(e){return"003"==e}))?a("el-col",{staticClass:"mr10 fr",staticStyle:{width:"56px"},attrs:{span:3}},[a("el-button",{staticClass:"fl",attrs:{size:e.searchSize,type:"success"},on:{click:function(t){return e.openModal("add",!1)}}},[e._v(" 新建 ")])],1):e._e()],1)],1)]}},{key:"status",fn:function(t){var 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:"operation",fn:function(t){var r=t.scope;return[e.powers.some((function(e){return"007"==e}))?a("el-tooltip",{attrs:{effect:"dark",content:"详情",placement:"top"}},[a("i",{staticClass:"el-icon-view tb-icon",on:{click:function(t){return e.openModal(r.row.id,!0)}}})]):e._e(),e.powers.some((function(e){return"005"==e}))?a("el-tooltip",{attrs:{effect:"dark",content:"修改",placement:"top"}},[a("i",{staticClass:"el-icon-edit tb-icon",on:{click:function(t){return e.openModal(r.row.id,!1)}}})]):e._e(),e.powers.some((function(e){return"004"==e}))&&"1"===r.row.status?a("el-tooltip",{attrs:{effect:"dark",content:"禁用",placement:"top"}},[a("i",{staticClass:"el-icon-video-pause tb-icon",on:{click:function(t){return e.statusConfirm(r.row.id,r.row.status)}}})]):e._e(),e.powers.some((function(e){return"004"==e}))&&"0"===r.row.status?a("el-tooltip",{attrs:{effect:"dark",content:"启用",placement:"top"}},[a("i",{staticClass:"el-icon-video-play tb-icon",on:{click:function(t){return e.statusConfirm(r.row.id,r.row.status)}}})]):e._e(),e.powers.some((function(e){return"006"==e}))?a("el-tooltip",{attrs:{effect:"dark",content:"删除",placement:"top"}},[a("i",{staticClass:"el-icon-delete tb-icon",on:{click:function(t){return e.deleteById(r.row.id,r.row.status)}}})]):e._e()]}}],null,!1,3167765525)}),a("add-edit",{attrs:{id:e.modelId,"show-model":e.showModel,"is-detail":e.isDetail},on:{refresh:e.searchList,cancel:function(t){e.showModel=!1}}})],1):a("div",[a("no-auth")],1)])}),[],!1,null,"bbad68d2",null);t.default=c.exports},d4aa:function(e,t,a){"use strict";a.r(t);var r=a("1da1"),n=a("5530"),i=(a("96cf"),a("7db0"),a("d3b7"),a("a9e3"),a("f291")),s=a("88ec"),o=a("0ee5"),l=a("e66a"),c=a("f5ed"),u=a("9f53"),d=a("2f62");c={name:"role",mixins:[c.a,u.a],components:{addEdit:i.default},computed:Object(n.a)(Object(n.a)({},Object(d.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"role"==e.menu_route}))||{};e=(null!==e?e:{}).action;return null!=e?e:[]}}),data:function(){var e=this;return{statusList:o.b,roleLevel:l.a,loading:!0,showModel:!1,isDetail:!1,modelId:0,parmValue:{loginName:"",fullName:"",type:2,page:1,size:15},statusOptions:[{id:0,label:"禁用"},{id:1,label:"启用"}],authOptions:[{id:"1",label:"管理员"},{id:"2",label:"非管理员"}],tableData:[],table:{stripe:!0,border:!0,_defaultHeader_:["setcol"]},pageInfo:{size:15,curr:1,total:0},columns:[{prop:"role_name",label:"角色名称"},{prop:"level",label:"角色等级",_format_:function(t){return(e.authOptions.find((function(e){return e.id==t.level}))||{}).label}},{prop:"addtime",label:"创建时间",sortable:!0},{prop:"status",label:"状态",sortable:!0,_slot_:"status"},{prop:"",label:"操作",fixed:"right",_noset_:!0,_slot_:"operation"}]}},mounted:function(){this.searchList()},methods:{restSearch:function(){this.pageInfo={size:15,curr:1,total:0},this.parmValue={status:"",level:"",role_name:"",page:1,size:15},this.searchList()},openModal:function(e,t){this.showModel=!0,this.modelId=e,this.isDetail=t},changeStatus:function(e,t){var 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,i;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n={roleid:e,status:"1"===t?"0":"1"},r.next=3,s.a.status(n);case 3:if(!(i=r.sent)||0!==i.code){r.next=9;break}a.$notify.success({title:"状态修改成功",message:""}),a.searchList(),r.next=15;break;case 9:if(i&&100<=i.code&&i.code<=104)return r.next=12,a.logout();r.next=14;break;case 12:r.next=15;break;case 14:a.$message.warning(i.message);case 15:case"end":return r.stop()}}),r)})))).catch((function(){}));case 2:case"end":return n.stop()}}),n)})))()},searchList: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.loading=!0,t.next=3,s.a.list(e.parmValue);case 3:if(!(a=t.sent)||0!==a.code||!a.data){t.next=9;break}e.tableData=a.data.list,e.pageInfo.total=Number(a.data.count),t.next=16;break;case 9:if(a&&100<=a.code&&a.code<=104)return t.next=12,e.logout();t.next=14;break;case 12:t.next=16;break;case 14:e.tableData=[],e.pageInfo.total=0;case 16:e.loading=!1;case 17:case"end":return t.stop()}}),t)})))()}}},u=a("2877"),i=Object(u.a)(c,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"role pagePadding"},[e.powers.some((function(e){return"001"==e}))?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.searchList()},"screen-submit":function(t){e.pageInfo.curr=1,e.searchList()}},scopedSlots:e._u([{key:"table-header",fn:function(t){return[a("div",{staticStyle:{width:"100%"}},[a("el-row",[a("el-col",{staticStyle:{padding:"0 0 0 80px"},attrs:{span:24}},[a("el-col",{staticStyle:{width:"120px"},attrs:{span:3}},[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:"130px",padding:"0 0 0 10px"},attrs:{span:3}},[a("el-select",{staticStyle:{width:"100%"},attrs:{size:e.searchSize,filterable:"",placeholder:"角色等级"},on:{change:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.parmValue.level,callback:function(t){e.$set(e.parmValue,"level",t)},expression:"parmValue.level"}},e._l(e.roleLevel,(function(e){return a("el-option",{key:"ruleid"+e.code,attrs:{label:e.name,value:e.code}})})),1)],1),a("el-col",{staticStyle:{width:"150px",padding:"0 0 0 10px"},attrs:{span:3}},[a("el-input",{attrs:{size:e.searchSize,maxlength:40,placeholder:"角色名称"},model:{value:e.parmValue.role_name,callback:function(t){e.$set(e.parmValue,"role_name",t)},expression:"parmValue.role_name"}})],1),a("el-col",{staticStyle:{width:"54px"},attrs:{span:3}},[a("el-button",{staticClass:"fr",attrs:{type:"primary",size:e.searchSize,icon:"el-icon-search"},on:{click:e.searchList}})],1),a("el-col",{staticStyle:{width:"66px"},attrs:{span:3}},[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"},attrs:{type:"primary",size:e.searchSize},on:{click:e.searchList}},[e._v(" 刷新 ")])],1),e.powers.some((function(e){return"003"==e}))?a("el-col",{staticStyle:{width:"66px",float:"right"},attrs:{span:3}},[a("el-button",{staticStyle:{float:"right"},attrs:{size:e.searchSize,type:"success"},on:{click:function(t){return e.openModal("add",!1)}}},[e._v(" 添加 ")])],1):e._e()],1)],1)],1)]}},{key:"status",fn:function(t){var 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:"operation",fn:function(t){var r=t.scope;return[e.powers.some((function(e){return"007"==e}))?a("el-tooltip",{attrs:{effect:"dark",content:"详情",placement:"top"}},[a("i",{staticClass:"el-icon-view tb-icon",on:{click:function(t){return e.openModal(r.row.id,!0)}}})]):e._e(),e.powers.some((function(e){return"005"==e}))?a("el-tooltip",{attrs:{effect:"dark",content:"修改",placement:"top"}},[a("i",{staticClass:"el-icon-edit tb-icon",on:{click:function(t){return e.openModal(r.row.id,!1)}}})]):e._e(),e.powers.some((function(e){return"004"==e}))&&"1"===r.row.status?a("el-tooltip",{attrs:{effect:"dark",content:"禁用",placement:"top"}},[a("i",{staticClass:"el-icon-video-pause tb-icon",on:{click:function(t){return e.changeStatus(r.row.id,r.row.status)}}})]):e._e(),e.powers.some((function(e){return"004"==e}))&&"0"===r.row.status?a("el-tooltip",{attrs:{effect:"dark",content:"启用",placement:"top"}},[a("i",{staticClass:"el-icon-video-play tb-icon",on:{click:function(t){return e.changeStatus(r.row.id,r.row.status)}}})]):e._e()]}}],null,!1,2536871830)}):a("no-auth"),a("add-edit",{attrs:{id:e.modelId,"show-model":e.showModel,"is-detail":e.isDetail},on:{refresh:e.searchList,cancel:function(t){e.showModel=!1}}})],1)}),[],!1,null,"0d8d0b5e",null);t.default=i.exports},d4b4:function(e,t,a){},d4ce:function(e,t,a){"use strict";a.r(t);var r=a("1da1"),n=a("5530"),i=(a("96cf"),a("7db0"),a("d3b7"),a("4d06")),s=a("b009"),o=a("2f62"),l=a("5daa"),c=a("9f53");s={name:"Account",components:{addEdit:s.default},mixins:[c.a],computed:Object(n.a)(Object(n.a)({},Object(o.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"financeReport"==e.menu_route}))||{};e=(null!==e?e:{}).action;return null!=e?e:[]}}),data:function(){return{fileUrl:l.a.baseURL,statusOptions:[{id:"0",label:"待创建"},{id:"1",label:"待执行"},{id:"2",label:"已完成"}],loading:!0,showModel:!1,sitem:null,parmValue:{page:1,size:15},tableData:[]}},mounted:function(){this.searchList()},methods:{restSearch:function(){this.parmValue={page:1,size:15},this.searchList()},openModal:function(e){this.showModel=!0,this.sitem=e},batchExport:function(e){var t,a=this;this.loading||(this.loading=!0,(t=document.createElement("a")).href=this.fileUrl+e,t.click(),this.$message.success("下载成功!"),setTimeout((function(){a.loading=!1}),500))},searchList: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.loading=!0,t.next=3,i.a.exportList(e.parmValue);case 3:if(!(a=t.sent)||0!==a.code||!a.data){t.next=8;break}e.tableData=a.data.list,t.next=14;break;case 8:if(a&&100<=a.code&&a.code<=104)return t.next=11,e.logout();t.next=13;break;case 11:t.next=14;break;case 13:e.tableData=[];case 14:e.loading=!1;case 15:case"end":return t.stop()}}),t)})))()}}},a("dcb8"),c=a("2877"),n=Object(c.a)(s,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"pre-export"},[a("el-row",{staticStyle:{padding:"0 0 14px 0"}},[a("el-col",{staticStyle:{width:"355px"},attrs:{span:12}},[a("el-alert",{attrs:{closable:!1,title:"新建的需求业务报表,会在隔天01:00开始生成文件!",type:"warning"}})],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),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:e.tableData,border:"",size:e.size}},[a("el-table-column",{attrs:{prop:"name",label:"业务表名称","min-width":"140"}}),a("el-table-column",{attrs:{prop:"start",label:"数据开始时间","min-width":"140"}}),a("el-table-column",{attrs:{prop:"end",label:"数据结束时间","min-width":"140"}}),a("el-table-column",{attrs:{prop:"apply_name",label:"申请人","min-width":"70"}}),a("el-table-column",{attrs:{prop:"status",label:"状态","min-width":"70"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-tag",{attrs:{size:e.tablebtnSize,type:"2"==t.row.status?"success":"1"==t.row.status?"warning":"info"},domProps:{textContent:e._s((e.statusOptions.find((function(e){return e.id==t.row.status}))||{}).label||"--")}})]}}])}),a("el-table-column",{attrs:{prop:"expiretime",label:"文件过期时间","min-width":"140"}}),a("el-table-column",{attrs:{prop:"updatetime",label:"创建时间","min-width":"140"}}),a("el-table-column",{attrs:{fixed:"right",label:"操作",width:"82"},scopedSlots:e._u([{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.openModal(t.row)}}})]),"2"==t.row.status?a("el-tooltip",{attrs:{effect:"dark",content:"下载",placement:"top"}},[a("i",{staticClass:"el-icon-download tb-icon",on:{click:function(a){return e.batchExport(t.row.down_url)}}})]):e._e()]}}])})],1),a("add-edit",{attrs:{sitem:e.sitem,"show-model":e.showModel,type:"1"},on:{refresh:e.searchList,cancel:function(t){e.showModel=!1}}})],1)}),[],!1,null,"1c8c420a",null);t.default=n.exports},d509:function(e,t,a){"use strict";a.r(t);var r=a("1da1"),n=a("5530"),i=(a("a9e3"),a("e9c4"),a("d3b7"),a("3ca3"),a("ddb0"),a("2b3d"),a("9861"),a("96cf"),a("f5ed")),s=a("9f53"),o=a("5daa"),l=a("f39f"),c=a("988d"),u=a("1fc9"),d=a("2f62");i={name:"saleReport",mixins:[i.a,s.a],components:{periodDatePickerActive:c.default},computed:Object(n.a)({},Object(d.b)(["tablebtnSize","searchSize","size"])),data:function(){return{changeList:[],fileUrl:o.a.baseURL,loading:!1,parmValue:{status:"",create_company:"",company:"",start_date:"",end_date:"",page:1,size:15},tableData:[],table:{stripe:!0,border:!0,_defaultHeader_:["setcol"]},pageInfo:{size:15,curr:1,total:0},table9:u.s}},mounted:function(){this.searchList()},methods:{supplierChange: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 e.id,r=e.code,e.label,t.parmValue.company=r||"",t.parmValue.page=1,t.pageInfo.curr=1,a.next=6,t.searchList();case 6:case"end":return a.stop()}}),a)})))()},searchList: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:if(""!==e.parmValue.start_date&&""===e.parmValue.end_date||""===e.parmValue.start_date&&""!==e.parmValue.end_date)return e.$message.warning("时间区间不完整!"),t.abrupt("return");t.next=3;break;case 3:return e.loading=!0,t.next=6,l.a.saleexportsaledetailed(e.parmValue);case 6:if(!(a=t.sent)||0!==a.code||!a.data){t.next=12;break}e.tableData=a.data.list,e.pageInfo.total=Number(a.data.count),t.next=20;break;case 12:if(a&&100<=a.code&&a.code<=104)return t.next=15,e.logout();t.next=17;break;case 15:t.next=20;break;case 17:e.$message.warning(a.message),e.tableData=[],e.pageInfo.total=0;case 20:e.loading=!1;case 21:case"end":return t.stop()}}),t)})))()},restSearch:function(){this.parmValue={status:"",start_date:"",end_date:"",create_company:"",company:"",page:1,size:15},this.pageInfo={size:15,curr:1,total:0},this.searchList()},time: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_date=e.startTime||"",t.parmValue.end_date=e.endTime||"",""!==t.parmValue.start_date&&""===t.parmValue.end_date||""===t.parmValue.start_date&&""!==t.parmValue.end_date)return t.$message.warning("时间区间不完整!"),a.abrupt("return");a.next=5;break;case 5:return t.pageInfo.curr=1,t.parmValue.page=1,a.next=9,t.searchList();case 9:case"end":return a.stop()}}),a)})))()},selection_change:function(e){e=e.list,this.changeList=0parseInt(a)?this.$message.warning("调拨数量不大于可用库存数!"):this.tableForm.product_go[e].edit=!1:this.$message.warning("请输入数字!")},editRow:function(e){-1!==this.tableForm.product_go.findIndex((function(e){return e.edit}))?this.$message.warning("请完成其他行的编辑!"):this.tableForm.product_go[e].edit=!0},addGoodsRes:function(e){var t=JSON.parse(JSON.stringify(this.tableForm.product_go)),a=JSON.parse(JSON.stringify(e)),n=(e=[]).concat.apply(e,Object(r.a)(t)),i=JSON.parse(JSON.stringify(this.delList));a.forEach((function(e,r){-1===t.findIndex((function(t){return e.spuCode===t.spuCode}))&&(a[r].usable_num=a[r].usable_stock,a[r].allot_num=a[r].usable_stock,a[r].edit=!1,n.push(a[r]))})),n.forEach((function(e){var t=i.findIndex((function(t){return e.spuCode===t.spuCode}));-1!==t&&i.splice(t,1)})),this.tableForm.product_go=(e=[]).concat.apply(e,Object(r.a)(n)),this.delList=(e=[]).concat.apply(e,Object(r.a)(i)),this.$refs.tableForm.validateField("product_go")},selectSupplierOut:function(e){e=e.code,this.ruleForm.supplier_code=e?[e]:[],this.supplier_code=e||"",this.ruleForm.stock_code=[],this.tableForm.product_go=[],this.delList=[],this.$refs.ruleForm.validateField("supplier_code")},selectStockOut:function(e){e&&e.id?(this.ruleForm.stock_code=[e.code],this.stock_code=e.code):(this.ruleForm.stock_code=[],this.stock_code=""),this.tableForm.product_go=[],this.delList=[],this.$refs.ruleForm.validateField("stock_code")},selectStockIn:function(e){e&&e.id?(this.ruleForm.stock_in_code=[e.code],this.stock_in_code=e.code):(this.ruleForm.stock_in_code=[],this.stock_in_code=""),this.$refs.ruleForm.validateField("stock_in_code")},selectSupplierIn:function(e){e&&e.id?(this.ruleForm.supplier_in_code=[e.code],this.supplier_in_code=e.code):(this.ruleForm.supplier_in_code=[],this.supplier_in_code=""),this.ruleForm.stock_in_code=[],this.$refs.ruleForm.validateField("supplier_in_code")}}},a("5536"),s=a("2877"),a=Object(s.a)(o,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-row",{staticClass:"addForm"},[a("el-col",{attrs:{span:24}},[a("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",rules:e.rulesThis,size:"mini","label-width":"85px"}},[a("el-row",[a("el-col",{attrs:{span:12}},[a("div",{staticClass:"label-title-model"},[e._v("出库仓库信息:")]),a("el-form-item",{attrs:{label:"业务公司",prop:"out_companyNo"}},[a("search-work-company",{attrs:{value:e.ruleForm.out_companyNo,size:"mini",disabled:!("add"===e.id||"0"===e.status&&e.powers.some((function(e){return"005"==e}))),"is-detail":"add"!==e.id,placeholder:"业务公司"},on:{searchChange:function(t){return e.supplierChange(t,"out_companyNo")}}})],1),a("el-form-item",{attrs:{label:"公司",prop:"supplier_code"}},[a("search-supplier",{attrs:{value:e.ruleForm.supplier_code,placeholder:"请选择公司",size:"mini","is-detail":"add"!==e.id,disabled:!("add"===e.id||"0"===e.status&&e.powers.some((function(e){return"005"==e}))),names:e.supplier_name},on:{searchChange:e.selectSupplierOut}})],1),a("el-form-item",{attrs:{label:"仓库",prop:"stock_code"}},[a("search-stock",{attrs:{value:e.ruleForm.stock_code,isDetail:"add"!==e.id,disabled:!("add"===e.id||"0"===e.status&&e.powers.some((function(e){return"005"==e}))),size:"mini",placeholder:"请选择仓库",isRelation:!0,companyCode:e.supplier_code,names:""},on:{searchChange:e.selectStockOut}})],1)],1),a("el-col",{attrs:{span:12}},[a("div",{staticClass:"label-title-model"},[e._v("入库仓库信息:")]),a("el-form-item",{attrs:{label:"业务公司",prop:"in_companyNo"}},[a("search-work-company",{attrs:{value:e.ruleForm.in_companyNo,names:"",size:"mini",disabled:!("add"===e.id||"0"===e.status&&e.powers.some((function(e){return"005"==e}))),"is-detail":"add"!==e.id,placeholder:"业务公司"},on:{searchChange:function(t){return e.supplierChange(t,"in_companyNo")}}})],1),a("el-form-item",{attrs:{label:"公司",prop:"supplier_in_code"}},[a("search-supplier",{attrs:{value:e.ruleForm.supplier_in_code,placeholder:"请选择公司",size:"mini","is-detail":"add"!==e.id,disabled:!("add"===e.id||"0"===e.status&&e.powers.some((function(e){return"005"==e}))),names:e.supplier_in_name},on:{searchChange:e.selectSupplierIn}})],1),a("el-form-item",{attrs:{label:"仓库",prop:"stock_in_code"}},[a("search-stock",{attrs:{value:e.ruleForm.stock_in_code,isDetail:"add"!==e.id,size:"mini",disabled:!("add"===e.id||"0"===e.status&&e.powers.some((function(e){return"005"==e}))),placeholder:"请选择仓库",isRelation:!0,companyCode:e.supplier_in_code,names:""},on:{searchChange:e.selectStockIn}})],1)],1)],1)],1)],1),"3"==e.status&&e.powers.some((function(e){return"022"==e}))||"4"==e.status&&e.powers.some((function(e){return"023"==e}))?e._e():a("el-col",{attrs:{span:24}},[a("el-form",{ref:"tableForm",staticClass:"demo-tableForm product_go",attrs:{model:e.tableForm,rules:e.tableFormThis,size:"mini"}},[a("el-table",{attrs:{data:e.tableForm.product_go,border:"",size:"mini","row-key":"key"}},[e._l(e.columns,(function(t,r){return["text"===t.type&&t.show&&"error_code"!==t.prop?a("el-table-column",{key:t.prop+r,attrs:{prop:t.prop,"show-overflow-tooltip":"",label:t.label,width:t.width,"min-width":t.minWidth}}):"text"===t.type&&t.show&&"error_code"===t.prop?a("el-table-column",{key:t.prop+r,attrs:{prop:t.prop,label:t.label,width:t.width,"min-width":t.minWidth},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",{staticClass:"spscope"},[e._v(e._s(t.row.error_msg))])]}}],null,!0)}):"text"!==t.type&&t.show?a("el-table-column",{key:t.prop+r,attrs:{prop:t.prop,label:t.label,width:t.width,"min-width":t.minWidth},scopedSlots:e._u([{key:"default",fn:function(r){return[a("el-form-item",{attrs:{prop:"product_go."+r.$index+"."+t.prop,rules:r.row.edit?e.tableFormThis[t.prop]:{},size:"mini"}},[!0===r.row.edit&&"input"===t.type?a("el-input",{attrs:{size:"mini",maxlength:"250",clearable:""},model:{value:r.row[t.prop],callback:function(a){e.$set(r.row,t.prop,a)},expression:"scope.row[item.prop]"}}):e._e(),!0===r.row.edit&&"select"===t.type?a("el-select",{staticStyle:{width:"100%"},attrs:{clearable:"",placeholder:"异常原因"},on:{change:function(t){return e.elSelectChange(t,r.$index)}},model:{value:r.row[t.prop],callback:function(a){e.$set(r.row,t.prop,a)},expression:"scope.row[item.prop]"}},e._l(e.options,(function(e){return a("el-option",{key:e.result_code,attrs:{label:e.result,value:e.result_code,disabled:"0"===e.status}})})),1):e._e(),r.row.edit?e._e():a("span",{staticClass:"spscope"},[e._v(e._s("select"===t.type?r.row.error_msg:r.row[t.prop]))])],1)]}}],null,!0)}):e._e()]})),"add"===e.id||"0"===e.status&&e.powers.some((function(e){return"005"==e}))?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",{staticClass:"fr",staticStyle:{margin:"3px 0 0 0"},attrs:{effect:"dark",content:"添加",placement:"top"}},[a("i",{staticClass:"el-icon-circle-plus-outline tb-icon",staticStyle:{color:"#63cbe7",magin:"0 0 0 10px"},on:{click:e.openGoodsModel}})])]}},{key:"default",fn:function(t){return[t.row.edit?e._e():a("el-tooltip",{attrs:{effect:"dark",content:"编辑",placement:"top"}},[a("i",{staticClass:"el-icon-edit tb-icon",on:{click:function(a){return e.editRow(t.$index)}}})]),t.row.edit?a("el-tooltip",{attrs:{effect:"dark",content:"保存",placement:"top"}},[a("i",{staticClass:"el-icon-circle-check tb-icon",on:{click:function(a){return e.checkRow(t.$index)}}})]):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.deleteRow(t.$index,e.tableForm.product_go)}}})])]}}],null,!1,1371037085)}):e._e()],2)],1)],1),a("el-col",{staticStyle:{"text-align":"right",padding:"10px 0 10px 0"},attrs:{span:24}},["add"===e.id||"0"===e.status&&e.powers.some((function(e){return"005"==e}))?a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.submitForm}},[e._v("保 存 ")]):e._e()],1),a("el-col",{attrs:{span:24}},[a("search-stock-good-modal",{attrs:{"show-model":e.showGoodsModel,code:e.stock_code},on:{cancel:function(t){e.showGoodsModel=!1},searchChange:e.addGoodsRes}})],1)],1)}),[],!1,null,"132c3029",null);t.default=a.exports},dbbb: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.n)(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 h})),a.d(t,"a",(function(){return g})),a.d(t,"k",(function(){return b}));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:"有工差"}],h=["证书","包装盒","绒布袋","标签","其他"],g=[{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:"company_name",label:"创建人部门",minWidth:"150px"},{prop:"creater",label:"创建人",width:"70px"},{prop:"addtime",label:"创建时间",width:"140px"},{prop:"",label:"操作",fixed:"right",_noset_:!0,width:"200px",_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.c)(t)?a(new Error("不能出现回车/换行符!")):Object(s.n)(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",l.forEach((function(e){c+="
  • \n \n ").concat(e.good_name,"__");e=e.speclist;var t="";e.forEach((function(e,a){t+="".concat(0!==a?"--":"").concat(e.spec_name,"[").concat(e.spec_value,"]")})),c+=t+"
  • "})),c+="",e.$notify({title:"以下商品已上线或已经在审批流程中!",dangerouslyUseHTMLString:!0,message:c})):e.$message.warning(o);case 31:t.next=35;break;case 33:return t.abrupt("return",!1);case 35:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()},resetFormData:function(){this.ruleForm={platform:"",codes:[],online_reason:"",online_remark:""},this.tableData=[]},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:e.$refs.ruleForm&&(e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),e.resetFormData());case 1:case"end":return t.stop()}}),t)}))));case 2:case"end":return t.stop()}}),t)})))()},platform_codesearchChange:function(e){var t=e.id;e.code,e.label,this.ruleForm.platform=t||"",this.$refs.ruleForm.validateField("platform")}}},a("4dd9"),l=a("2877"),n=Object(l.a)(s,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"goodsOnlineAdd"},[e.powers.some((function(e){return"007"==e}))?a("div",{staticClass:"goodsOnlineAdd-main"},[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.rulesThis,size:"mini","label-width":"110px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"所属平台",prop:"platform"}},[a("search-terrace",{attrs:{value:e.ruleForm.platform,disabled:!1,size:"mini",is_show:"1",isDetail:!1,placeholder:"所属平台"},on:{searchChange:e.platform_codesearchChange}})],1),a("el-form-item",{attrs:{label:"上线原因",prop:"online_reason"}},[a("el-input",{attrs:{disabled:!1,placeholder:"上线原因",maxlength:"200"},model:{value:e.ruleForm.online_reason,callback:function(t){e.$set(e.ruleForm,"online_reason",t)},expression:"ruleForm.online_reason"}})],1)],1),a("el-col",{attrs:{span:16}},[a("el-form-item",{attrs:{label:"上线备注",prop:"online_remark"}},[a("el-input",{attrs:{type:"textarea",rows:3,disabled:!1,placeholder:"上线备注",maxlength:"250","show-word-limit":""},model:{value:e.ruleForm.online_remark,callback:function(t){e.$set(e.ruleForm,"online_remark",t)},expression:"ruleForm.online_remark"}})],1)],1),a("el-col",{attrs:{span:24}},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData,stripe:"",border:"",size:"mini"}},[a("el-table-column",{attrs:{width:"50",type:"index","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"spuCode",label:"商品编号",width:"180","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"good_thumb_img",label:"图片",width:"45","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.good_thumb_img?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()]}}],null,!1,2960794804)}),a("el-table-column",{attrs:{prop:"good_name",label:"商品名称","min-width":"160","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"cat_name",label:"分类","min-width":"110","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"good_name",label:"品牌","min-width":"brand_name","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"good_type",label:"是否定制","min-width":"70","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-tag",{attrs:{size:"mini",type:"1"==t.row.good_type?"":"warning"},domProps:{textContent:e._s((e.options1.find((function(e){return e.id==t.row.status}))||{}).name||"--")}})]}}],null,!1,3481581420)}),a("el-table-column",{attrs:{prop:"supplierNo",label:"供应商编号",width:"110","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"supplier_name",label:"供应商名称",width:"110","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"companyNo",label:"业务公司编号",width:"110","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"company",label:"业务公司名称",width:"110","show-overflow-tooltip":""}}),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){e.showModel=!0}}})])]}},{key:"default",fn:function(t){return[a("el-tooltip",{attrs:{effect:"dark",content:"删除",placement:"top"}},[a("i",{staticClass:"el-icon-delete tb-icon",on:{click:function(a){return e.openDel(t.$index)}}})])]}}],null,!1,1171667486)})],1),a("search-good-modal",{attrs:{showModel:e.showModel,once:!1},on:{resultList:e.resultList,cancel:function(t){e.showModel=!1}}})],1),a("el-col",{staticStyle:{"text-align":"right",padding:"15px 0 15px 0"},attrs:{span:24}},[a("el-button",{attrs:{size:"mini",type:"primary"},on:{click:e.submitForm}},[e._v("保 存 ")])],1)],1)],1)],1):a("div",[a("no-auth")],1)])}),[],!1,null,"4199f911",null);t.default=n.exports},dd3d:function(e,t,a){"use strict";var r=a("1b69"),n="admin/";t.a={add:function(e,t){return Object(r.a)(n+"specscreate",e,"post",t)},list:function(e,t){return Object(r.a)(n+"specslist",e,"post",t)},status:function(e,t){return Object(r.a)(n+"specsstatus",e,"post",t)},update:function(e,t){return Object(r.a)(n+"specsedit",e,"post",t)},delete:function(e,t){return Object(r.a)(n+"specsdelete",e,"post",t)}}},dd65:function(e,t,a){"use strict";a.r(t);var r=a("1da1"),n=(a("96cf"),a("7db0"),a("d3b7"),a("f5ed")),i=a("9f53"),s=a("e320"),o=a("60bb"),l=a("798a9"),c=a("35e6"),u=a("61d6"),d=a("0ee5");n={name:"salesOrderDetail",mixins:[n.a,i.a],components:{addForm:o.default,orderOutTable:l.default,setPartial:u.default},computed:{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"salesOrderDetail"==e.menu_route}))||{};e=(null!==e?e:{}).action;return null!=e?e:[]}},data:function(){return{finishStatus:"finish",activeTabs:"1",activeNames:["-1","0","1","2","3","4","5","6"],showColumns:c.b,setShowModel:!1,goodtype_options:[{value:"1",label:"常规商品"},{value:"2",label:"赠品"},{value:"3",label:"样品"}],xs_order_type_options:d.d,xs_order_source_options:d.c,statusOptions:[{value:"0",label:"待发货"},{value:"1",label:"待发货完成"},{value:"2",label:"发货已完成"},{value:"3",label:"订单已取消"}],sitem:null,orderCode:"",status:"",newTime:"",loading:!1,queryId:"",queryType:""}},mounted:function(){this.status="";var e=this.$route.query,t=e.id;e=e.type;this.queryId=t,this.queryType=e,this.activeTabs="add"===e?"0":"1",this.loading=!0,"add"===this.queryType?(this.sitem={},this.getNewTime()):this.initData(),this.loading=!1},methods:{statusConfirm:function(e,t){var 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(t,"?"),{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(r.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if("-1"===e)return r.next=3,a.deleteById(t);r.next=5;break;case 3:r.next=7;break;case 5:return r.next=7,a.setStatus(e,t);case 7:case"end":return r.stop()}}),r)})))).catch((function(){}));case 2:case"end":return n.stop()}}),n)})))()},getNewTime:function(){this.newTime=(new Date).valueOf()+""},deleteById:function(e){var t=this;return Object(r.a)(regeneratorRuntime.mark((function a(){var r;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,s.a.delete({id:t.queryId});case 2:if(!(r=a.sent)||0!==r.code){a.next=8;break}t.$notify.success({title:e+"成功!",message:""}),t.routeGoto("check",{}),a.next=14;break;case 8:if(r&&100<=r.code&&r.code<=104)return a.next=11,t.logout();a.next=13;break;case 11:a.next=14;break;case 13:t.$message.warning(r.message);case 14:case"end":return a.stop()}}),a)})))()},setStatus:function(e,t,a){var n=this;return Object(r.a)(regeneratorRuntime.mark((function r(){var i,o;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return i={id:n.queryId,remark:a||"",status:e},r.next=3,s.a.status(i);case 3:if(o=r.sent,n.loading=!1,!o||0!==o.code){r.next=10;break}n.$notify.success({title:t+"成功!",message:""}),n.initData(),r.next=16;break;case 10:if(o&&100<=o.code&&o.code<=104)return r.next=13,n.logout();r.next=15;break;case 13:r.next=16;break;case 15:n.$message.warning(o.message);case 16:case"end":return r.stop()}}),r)})))()},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=4;break}return r="1"===e.state?"2":"0",a.next=4,t.setStatus(r,"提交入库方审核",e.remark);case 4:case"end":return a.stop()}}),a)})))()},initData: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.loading=!0,t.next=3,s.a.detail({id:e.queryId});case 3:if(!(a=t.sent)||0!==a.code||!a.data){t.next=11;break}e.sitem=a.data,e.status=e.sitem.status,e.orderCode=e.sitem.orderCode,e.getNewTime(),t.next=17;break;case 11:if(a&&100<=a.code&&a.code<=104)return t.next=14,e.logout();t.next=16;break;case 14:t.next=17;break;case 16:e.$message.warning(a.message);case 17:e.loading=!1;case 18:case"end":return t.stop()}}),t)})))()}}},a("937d"),i=a("2877"),o=Object(i.a)(n,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("div",{staticClass:"salesOrderDetail pagePadding"},[e.powers.some((function(e){return"007"==e}))?t("div",{staticStyle:{width:"100%"}},["add"!==e.queryType?t("div",{staticStyle:{height:"30px"}},[t("span",[e._v("订单编号:")]),e.sitem?t("span",[e._v(e._s(e.sitem.orderCode))]):e._e(),t("el-button",{staticClass:"fr",staticStyle:{margin:"0 0 0 10px"},attrs:{type:"primary",size:"mini"},on:{click:function(t){e.setShowModel=!0}}},[e._v("设置部分字段 ")])],1):e._e(),t("el-tabs",{model:{value:e.activeTabs,callback:function(t){e.activeTabs=t},expression:"activeTabs"}},["add"===e.queryType?t("el-tab-pane",{attrs:{label:"新建销售订单",name:"0"}},[""!==e.newTime?t("add-form",{attrs:{newTime:e.newTime,type:e.queryType,sitem:e.sitem,id:e.queryId},on:{refresh:function(t){return e.routeReGoto("salesOrder",{})}}}):e._e()],1):e._e(),"add"!==e.queryType?t("el-tab-pane",{attrs:{label:"业务详情",name:"1"}},[t("el-collapse",{staticStyle:{margin:"-18px 0 0 0"},model:{value:e.activeNames,callback:function(t){e.activeNames=t},expression:"activeNames"}},[t("el-collapse-item",{attrs:{title:"销售订单信息",name:"-1"}},[e.status?t("show-data-table",{staticStyle:{margin:"0",padding:"0"},attrs:{sitem:e.sitem,columns:e.showColumns}},[t("template",{slot:"status"},[t("el-tag",{attrs:{size:"mini"},domProps:{textContent:e._s((e.statusOptions.find((function(t){return t.value==e.sitem.status}))||{}).label||"--")}})],1),t("template",{slot:"order_type"},[t("el-tag",{attrs:{size:"mini"},domProps:{textContent:e._s((e.xs_order_type_options.find((function(t){return t.id==e.sitem.order_type}))||{}).label||"--")}})],1),t("template",{slot:"order_source"},[t("el-tag",{attrs:{size:"mini"},domProps:{textContent:e._s((e.xs_order_source_options.find((function(t){return t.id==e.sitem.order_source}))||{}).label||"--")}})],1),t("template",{slot:"supplierName"},[t("span",[e._v(e._s(e.sitem.supplierName))]),t("el-popover",{attrs:{placement:"top",width:"300",trigger:"hover"}},[t("ul",[t("li",[t("span",[e._v("销售方公司编号:")]),t("span",[e._v(e._s(e.sitem.supplierNo))])])]),t("i",{staticClass:"el-icon-warning-outline fr",attrs:{slot:"reference"},slot:"reference"})])],1),t("template",{slot:"companyName"},[t("span",[e._v(e._s(e.sitem.companyName))]),t("el-popover",{attrs:{placement:"top",width:"300",trigger:"hover"}},[t("ul",[t("li",[t("span",[e._v("购买方公司编号:")]),t("span",[e._v(e._s(e.sitem.companyNo))])])]),t("i",{staticClass:"el-icon-warning-outline fr",attrs:{slot:"reference"},slot:"reference"})])],1),t("template",{slot:"is_active"},["1"===e.sitem.order_type||"2"===e.sitem.order_type?t("span",[t("span",[e._v(e._s("1"===e.sitem.is_activity?"参与活动":"不参与活动")+"/"+e._s((e.goodtype_options.find((function(t){return t.value==e.sitem.good_type}))||{}).label||"--"))])]):t("span",[e._v("--")])]),t("template",{slot:"proof_id"},["1"===e.sitem.proof_type?t("el-popover",{attrs:{placement:"top",width:"300",trigger:"hover"}},[t("video",{staticClass:"fl",attrs:{width:"275",controls:""}},[t("source",{attrs:{src:e.sitem.proof_url,type:"video/mp4"}}),t("source",{attrs:{src:e.sitem.proof_url,type:"video/avi"}}),e._v(" 您的浏览器不支持Video标签。 ")]),t("i",{staticClass:"el-icon-video-camera-solid hover",staticStyle:{"font-size":"18px"},attrs:{slot:"reference"},slot:"reference"})]):"2"===e.sitem.proof_type?t("img",{directives:[{name:"viewer",rawName:"v-viewer"}],staticClass:"avatar fl hover",staticStyle:{width:"28px",height:"28px"},attrs:{src:e.sitem.proof_url}}):"3"===e.sitem.proof_type?t("a",{attrs:{href:e.sitem.proof_url,download:"凭证文件"}},[e._v("点击下载")]):t("span",[e._v("暂无凭证")])],1),t("template",{slot:"send_type"},[t("el-tag",{attrs:{size:"mini"}},[e._v(e._s("1"===e.sitem.send_type?"直接发货":"2"===e.sitem.send_type?"延迟发货":"--"))])],1)],2):e._e()],1),t("el-collapse-item",{attrs:{title:"商品信息",name:"2"}},[""!==e.newTime?t("show-goods-data-table",{attrs:{newTime:e.newTime,type:e.sitem.order_type,skucode:e.sitem.skuCode,spucode:e.sitem.good_code}}):e._e()],1),t("el-collapse-item",{attrs:{title:"发货申请",name:"3"}},[""!==e.newTime?t("order-out-table",{attrs:{newTime:e.newTime,sitem:e.sitem,id:e.queryId},on:{refresh:function(t){return e.initData()}}}):e._e()],1)],1)],1):e._e(),"add"!==e.queryType?t("el-tab-pane",{attrs:{label:"审批记录",name:"2"}},[""!==e.newTime?t("process-time-line",{attrs:{newTime:e.newTime,type:"XSQRD",orderCode:e.queryId}}):e._e()],1):e._e()],1),t("set-partial",{attrs:{sitem:e.sitem,"show-model":e.setShowModel},on:{refresh:e.initData,cancel:function(t){e.setShowModel=!1}}})],1):t("div",[t("no-auth")],1)])}),[],!1,null,"67830fba",null);t.default=o.exports},de14:function(e,t,a){"use strict";var r=a("1b69"),n="admin/";t.a={add:function(e,t){return Object(r.a)(n+"aftercreate",e,"post",t)},delete:function(e,t){return Object(r.a)(n+"delete",e,"post",t)},list:function(e,t){return Object(r.a)(n+"afterlist",e,"post",t)},detail:function(e,t){return Object(r.a)(n+"afterinfo",e,"post",t)},update:function(e,t){return Object(r.a)(n+"update",e,"post",t)},status:function(e,t){return Object(r.a)(n+"afterstatus",e,"post",t)},reasonList:function(e,t){return Object(r.a)(n+"resultlist",e,"post",t)},aftersetwsm:function(e,t){return Object(r.a)(n+"aftersetwsm",e,"post",t)},afterPost:function(e,t){return Object(r.a)(n+"afterpost ",e,"post",t)}}},de3b:function(e,t,a){"use strict";a("d9c2")},de5d:function(e,t,a){"use strict";a("b66d")},dea4:function(e,t,a){"use strict";a("adf8")},decf:function(e,t,a){"use strict";a.r(t);var r=a("1da1"),n=a("5530"),i=(a("96cf"),a("7db0"),a("d3b7"),a("f5ed")),s=a("9f53"),o=a("e0a6"),l=a("6de1"),c=a("2f62");i={name:"othgoodsOfflineDetail",mixins:[i.a,s.a],components:{},computed:Object(n.a)(Object(n.a)({},Object(c.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"othgoodsOfflineDetail"==e.menu_route}))||{};e=(null!==e?e:{}).action;return null!=e?e:[]}}),data:function(){return{loading:!1,list:{},parmValue:{id:this.$route.query.id},activeName:"1",newTime:"",costArr:l.b}},mounted:function(){this.searchList()},methods:{searchList: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.loading=!0,t.next=3,o.a.goodoffdetail(e.parmValue);case 3:if(!(a=t.sent)||0!==a.code||!a.data){t.next=8;break}e.list=a.data,t.next=15;break;case 8:if(a&&100<=a.code&&a.code<=104)return t.next=11,e.logout();t.next=13;break;case 11:t.next=15;break;case 13:e.$message.warning(a.message),e.list={};case 15:e.getNewTime(),e.loading=!1;case 17:case"end":return t.stop()}}),t)})))()},getNewTime:function(){this.newTime=(new Date).valueOf()}}},a("e4de"),s=a("2877"),n=Object(s.a)(i,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("div",{staticClass:"box"},[e.powers.some((function(e){return"007"==e}))?t("div",[t("el-tabs",{on:{"tab-click":e.handleClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[t("el-tab-pane",{attrs:{label:"商品下线详情",name:"1"}},[""!==e.newTime?t("show-data-table",{attrs:{newTime:e.newTime,sitem:e.list,columns:e.costArr}},[t("template",{slot:"children_list"},[t("el-table",{staticStyle:{width:"100%"},attrs:{data:e.list.children_list,size:"mini"}},[t("el-table-column",{attrs:{prop:"skuCode",label:"商品上线编号","min-width":"140"}}),t("el-table-column",{attrs:{prop:"platform_name",label:"平台名称","min-width":"140"}}),t("el-table-column",{attrs:{prop:"purchease",label:"采购人","min-width":"90"}}),t("el-table-column",{attrs:{prop:"creater",label:"创建人","min-width":"90"}})],1)],1)],2):e._e()],1)],1)],1):t("div",[t("no-auth")],1)])}),[],!1,null,"4aab0224",null);t.default=n.exports},df21:function(e,t,a){"use strict";a.r(t);var r={components:{Echart:a("33de").a},props:{cdata:{type:Object,default:function(){return{}}}},data:function(){return{region:"1",region1:"1",region2:"1",options:{label:{show:!0,position:"inside"},legend:{},tooltip:{},dataset:{source:[["product","返单商品数","中标商品数"],["1小时以内",43.3,85.8],["1-2小时",83.1,73.4],["2-4小时",86.4,65.2],["4-24小时",72.4,53.9],["24小时以上",72.4,53.9]]},xAxis:{type:"category"},yAxis:{},series:[{type:"bar"},{type:"bar"}]}}},mounted:function(){},methods:{cinit:function(){this.$echarts.init(document.getElementById("bottomRight")).setOption(this.options)}}};a("a78b"),a=a("2877"),a=Object(a.a)(r,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("div",{staticClass:"txtSize"},[t("div",{staticClass:"title"},[t("span",[e._v("采购返单时长")]),t("div",{staticStyle:{display:"flex"}},[t("span",{staticStyle:{width:"100px"}},[t("el-select",{attrs:{size:"mini"},model:{value:e.region,callback:function(t){e.region=t},expression:"region"}},[t("el-option",{attrs:{label:"不限部门",value:"1"}}),t("el-option",{attrs:{label:"网络部",value:"2"}})],1)],1),t("span",{staticStyle:{width:"60px"}},[t("el-select",{attrs:{size:"mini"},model:{value:e.region1,callback:function(t){e.region1=t},expression:"region1"}},[t("el-option",{attrs:{label:"日",value:"1"}}),t("el-option",{attrs:{label:"月",value:"2"}}),t("el-option",{attrs:{label:"年",value:"3"}})],1)],1),t("span",{staticStyle:{width:"140px"}},[t("el-date-picker",{staticStyle:{width:"100%"},attrs:{size:"mini",clearable:!1,type:1==e.region1?"date":2==e.region1?"month":"year",placeholder:"选择日期"},model:{value:e.region2,callback:function(t){e.region2=t},expression:"region2"}})],1)])]),t("div",{staticClass:"dv"},[t("p",{staticStyle:{"font-size":"12px"}},[e._v("平均时长(分钟)")]),t("dv-decoration-9",[e._v("10")])],1),t("Echart",{attrs:{options:e.options,id:"bottomRight",height:"400px",width:"100%"}})],1)}),[],!1,null,"087efb57",null);t.default=a.exports},df37:function(e,t,a){"use strict";a("30a4")},e013:function(e,t,a){"use strict";a("d633")},e041:function(e,t,a){"use strict";a.r(t);var r=a("1da1"),n=a("5530"),i=(a("96cf"),a("7db0"),a("d3b7"),a("e9c4"),a("1b69")),s=function(e,t){return Object(i.a)("youzan/yz_get_update_good_log_by_caixiao",e,"post",t)},o=a("f5ed"),l=a("2f62"),c=a("9f53"),u=a("6140");o={name:"othGoodFieldLog",mixins:[o.a,c.a],components:{addEdit:u.default},computed:Object(n.a)(Object(n.a)({},Object(l.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"othGoodFieldLog"==e.menu_route}))||{};e=(null!==e?e:{}).action;return null!=e?e:[]}}),data:function(){return{loading:!1,showModel:!1,sitem:null,parmValue:{page:1,size:15,skuCode:"",creater:"",start_date:"",end_date:""},tableData:[],table:{stripe:!0,border:!0,_defaultHeader_:["setcol"]},pageInfo:{size:15,curr:1,total:0},columns:[{prop:"id",label:"记录ID"},{prop:"skuCode",label:"上线商品编号"},{prop:"item_id",label:"有赞商品ID"},{prop:"creater",label:"修改人"},{prop:"addtime",label:"修改时间"},{prop:"",label:"操作",fixed:"right",_noset_:!0,width:"60px",_slot_:"operation"}]}},mounted:function(){this.searchList()},methods:{handleEdit:function(e){this.sitem=JSON.parse(JSON.stringify(this.tableData[e])),this.showModel=!0},restSearch:function(){this.pageInfo={size:15,curr:1,total:0},this.parmValue={page:1,size:15,skuCode:"",creater:"",start_date:"",end_date:""},this.searchList()},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_date=e.startTime||"",t.parmValue.end_date=e.endTime||"",""!==t.parmValue.start_date&&""!==t.parmValue.end_date||""===t.parmValue.start_date&&""===t.parmValue.end_date)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)})))()},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,t.next=8,s(e.parmValue);case 8:if(n=t.sent,a=n.code,n=n.data,0!==a){t.next=17;break}r=(n=null!=n?n:{}).list,n=n.count,e.tableData=null!=r?r:[],e.pageInfo.total=null!=n?n:0,t.next=24;break;case 17:if(100<=a&&a<=104)return t.next=20,e.logout();t.next=22;break;case 20:t.next=24;break;case 22:e.tableData=[],e.pageInfo.total=0;case 24:e.loading=!1;case 25:case"end":return t.stop()}}),t)})))()}}},a("8e6d"),c=a("2877"),u=Object(c.a)(o,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"sort pagePadding"},[e.powers.some((function(e){return"001"==e}))?a("div",[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:"303px",padding:"0 0 0 10px"},attrs:{span:6}},[a("period-date-picker",{attrs:{type:1,width:"135px",size:e.searchSize,start:e.parmValue.start_date,end:e.parmValue.end_date},on:{timeReturned:e.handleTime}})],1),a("el-col",{staticStyle:{width:"230px",padding:"0 0 0 10px"},attrs:{span:6}},[a("el-input",{attrs:{placeholder:"上线商品编号",size:e.searchSize,clearable:""},on:{blur:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.parmValue.skuCode,callback:function(t){e.$set(e.parmValue,"skuCode",t)},expression:"parmValue.skuCode"}})],1),a("el-col",{staticStyle:{width:"160px",padding:"0 0 0 10px"},attrs:{span:6}},[a("el-input",{attrs:{placeholder:"修改人",size:e.searchSize,clearable:""},on:{blur:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.parmValue.creater,callback:function(t){e.$set(e.parmValue,"creater",t)},expression:"parmValue.creater"}})],1),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)],1)]}},{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.handleEdit(r.$index)}}})])]}}],null,!1,3387992834)}),a("add-edit",{attrs:{sitem:e.sitem,"show-model":e.showModel},on:{refresh:function(t){e.showModel=!1,e.searchList()},cancel:function(t){e.showModel=!1}}})],1):a("no-auth")],1)}),[],!1,null,"6e078148",null);t.default=u.exports},e0a6:function(e,t,a){"use strict";var r=a("1b69");t.a={list:function(e,t){return Object(r.a)("youzan/yz_goodoff_list",e,"post",t)},goodoffdetail:function(e,t){return Object(r.a)("youzan/yz_goodoff_detail",e,"post",t)}}},e0d4:function(e,t,a){"use strict";a.r(t);var r=a("1da1"),n=a("5530"),i=(a("96cf"),a("a9e3"),a("e9c4"),a("d3b7"),a("3ca3"),a("ddb0"),a("2b3d"),a("9861"),a("f5ed")),s=a("9f53"),o=a("5daa"),l=a("f39f"),c=a("988d"),u=a("1fc9"),d=a("2f62");i={name:"saleReport",mixins:[i.a,s.a],components:{periodDatePickerActive:c.default},computed:Object(n.a)({},Object(d.b)(["tablebtnSize","searchSize","size"])),data:function(){return{changeList:[],fileUrl:o.a.baseURL,loading:!1,parmValue:{start_date:"",end_date:"",page:1,size:15},tableData:[],table:{stripe:!0,border:!0,_defaultHeader_:["setcol"]},pageInfo:{size:15,curr:1,total:0},table2:u.l}},mounted:function(){this.searchList()},methods:{searchList: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:if(""!==e.parmValue.start_date&&""===e.parmValue.end_date||""===e.parmValue.start_date&&""!==e.parmValue.end_date)return e.$message.warning("时间区间不完整!"),t.abrupt("return");t.next=3;break;case 3:return e.loading=!0,t.next=6,l.a.saleexportconsultinfo(e.parmValue);case 6:if(!(a=t.sent)||0!==a.code||!a.data){t.next=12;break}e.tableData=a.data.list,e.pageInfo.total=Number(a.data.count),t.next=20;break;case 12:if(a&&100<=a.code&&a.code<=104)return t.next=15,e.logout();t.next=17;break;case 15:t.next=20;break;case 17:e.$message.warning(a.message),e.tableData=[],e.pageInfo.total=0;case 20:e.loading=!1;case 21:case"end":return t.stop()}}),t)})))()},restSearch:function(){this.parmValue={start_date:"",end_date:"",page:1,size:15},this.pageInfo={size:15,curr:1,total:0},this.searchList()},time:function(e){var t=this;return Object(r.a)(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(t.parmValue.start_date=e.startTime||"",t.parmValue.end_date=e.endTime||"",""!==t.parmValue.start_date&&""===t.parmValue.end_date||""===t.parmValue.start_date&&""!==t.parmValue.end_date)return t.$message.warning("时间区间不完整!"),a.abrupt("return");a.next=5;break;case 5:return t.pageInfo.curr=1,t.parmValue.page=1,a.next=9,t.searchList();case 9:case"end":return a.stop()}}),a)})))()},selection_change:function(e){e=e.list,this.changeList=0=)"}}),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,"681d4d98",null);t.default=u.exports},e49d:function(e,t,a){"use strict";var r=a("1b69"),n="admin/";t.a={add:function(e,t){return Object(r.a)(n+"catcreate",e,"post",t)},delete:function(e,t){return Object(r.a)(n+"delete",e,"post",t)},list:function(e,t){return Object(r.a)(n+"catplist",e,"post",t)},detail:function(e,t){return Object(r.a)(n+"catinfo",e,"post",t)},update:function(e,t){return Object(r.a)(n+"catedit",e,"post",t)},status:function(e,t){return Object(r.a)(n+"catstatus",e,"post",t)},goodsList:function(e,t){return Object(r.a)(n+"catlist",e,"post",t)},specstitle:function(e,t){return Object(r.a)(n+"specstitle",e,"post",t)},editRate:function(e,t){return Object(r.a)(n+"catratedit",e,"post",t)}}},e4de:function(e,t,a){"use strict";a("afd5")},e4f8:function(e,t,a){},e502:function(e,t,a){"use strict";a.r(t);var r=a("1da1"),n=(a("96cf"),a("fb6a"),a("e9c4"),a("d3b7"),a("25f0"),a("0f31")),i=a("61f7"),s={name:"Invoicing",props:["showModel","id","isDetail","isApproval"],watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis:function(e){e||this.$emit("cancel")}},data:function(){var e=this;return{statusList:[],loading:!1,title:"添加开票信息",showModelThis:this.showModel,dataInfo:{},companyNoNames:"",soptins:[{code:"1",name:"区-固-分"},{code:"2",name:"区-固"},{code:"3",name:"固-分"},{code:"4",name:"固"},{code:"5",name:"手机号"}],companyList:[],schange:"1",ruleForm:{},rulesThis:this.rules,rules:{companyNo:[{required:!0,message:"请选择客户公司",trigger:"change"}],invoice_title:[{required:!0,message:"请选择发票抬头",trigger:"change"}],invoice_code:[{required:!0,validator:function(e,t,a){""!==t?Object(i.j)(t)?a():a(new Error("统一社会信用代码不正确!")):a(new Error("请输入统一社会信用代码!"))},trigger:"blur"}],invoice_bank:[{required:!0,message:"请输入开户银行名称",trigger:"blur"}],invoice_bankNo:[{required:!0,message:"请输入开户银行账号",trigger:"blur"}],invoice_addr:[{required:!0,message:"请输入纳税登记地址",trigger:"blur"}],invoice_mobile:[{required:!0,validator:function(t,a,r){var n,s;""!==a?"1"===e.schange?Object(i.s)(a)?r():r(new Error("规则为区号[0+2~3位]-固定电话[7~8位]-分机号[1~6位]!")):"2"===e.schange?Object(i.r)(a)?r():r(new Error("规则为区号[0+2~3位]-固定电话[7~8位]!")):"3"===e.schange?Object(i.u)(a)?r():r(new Error("规则为固定电话[7~8位]-分机号[1~6位]!")):"4"===e.schange?Object(i.t)(a)?r():3new Date(e.ruleForm.activity_end).valueOf()}},pickerOptions2:{disabledDate:function(t){if(null!=e.ruleForm.activity_start&&""!=e.ruleForm.activity_start&&t)return t.getTime()",u.forEach((function(e){d+="
  • ".concat(e,"
  • ")})),d+="",e.$notify({title:c,dangerouslyUseHTMLString:!0,message:d})):1007==o?(p=JSON.parse(JSON.stringify(l)),m="
      ",p.forEach((function(e){m+="
    • ".concat(e,"
    • ")})),m+="
    ",e.$notify({title:c,dangerouslyUseHTMLString:!0,message:m})):e.$message.warning(c);case 43:t.next=47;break;case 45:return t.abrupt("return",!1);case 47:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()}}},a("6ebc"),l=a("2877"),c=Object(l.a)(s,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"activeAdd"},[a("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",rules:e.rulesThis,size:"mini","label-width":"90px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"业务企业",prop:"company_id"}},[a("search-work-company",{attrs:{value:e.ruleForm.company_id,disabled:""!==e.status,size:"mini",isDetail:!1,placeholder:"业务企业"},on:{searchChange:e.company_idsearchChange}})],1)],1),a("el-col",{attrs:{span:16}},[a("el-form-item",{attrs:{label:"活动标题",prop:"activity_name"}},[a("el-input",{attrs:{placeholder:"活动标题",disabled:""!==e.status,maxlength:"100"},model:{value:e.ruleForm.activity_name,callback:function(t){e.$set(e.ruleForm,"activity_name",t)},expression:"ruleForm.activity_name"}})],1)],1),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"所属平台",prop:"platform_code"}},[a("search-terrace",{attrs:{value:e.ruleForm.platform_code,disabled:""!==e.status,size:"mini",isDetail:!1,is_show:""!==e.start?"1":"0",placeholder:"所属平台"},on:{searchChange:e.platform_codesearchChange}})],1)],1),a("el-col",{attrs:{span:16}},[a("el-form-item",{staticStyle:{margin:"0"},attrs:{label:"活动时间",required:""}},[a("el-row",[a("el-col",{attrs:{span:11}},[a("el-form-item",{attrs:{prop:"datactivity_name"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"datetime",placeholder:"开始时间",disabled:""!==e.status,"value-format":"yyyy-MM-dd HH:mm:ss","picker-options":e.pickerOptions1},model:{value:e.ruleForm.activity_start,callback:function(t){e.$set(e.ruleForm,"activity_start",t)},expression:"ruleForm.activity_start"}})],1)],1),a("el-col",{staticClass:"tc",attrs:{span:2}},[e._v("-")]),a("el-col",{attrs:{span:11}},[a("el-form-item",{attrs:{prop:"activity_end"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"datetime","value-format":"yyyy-MM-dd HH:mm:ss",placeholder:"结束时间",disabled:""!==e.status,"picker-options":e.pickerOptions2},model:{value:e.ruleForm.activity_end,callback:function(t){e.$set(e.ruleForm,"activity_end",t)},expression:"ruleForm.activity_end"}})],1)],1)],1)],1)],1),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"库存类型",prop:"is_stock"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{size:"mini",disabled:""!==e.status,placeholder:"库存类型"},on:{change:e.is_stock_change},model:{value:e.ruleForm.is_stock,callback:function(t){e.$set(e.ruleForm,"is_stock",t)},expression:"ruleForm.is_stock"}},e._l(e.is_stock,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),a("el-col",{attrs:{span:16}},[a("el-form-item",{attrs:{label:"活动描述",prop:"activity_desc"}},[a("el-input",{attrs:{placeholder:"活动描述",type:"textarea",rows:2,disabled:""!==e.status,"show-word-limit":"",maxlength:"500"},model:{value:e.ruleForm.activity_desc,callback:function(t){e.$set(e.ruleForm,"activity_desc",t)},expression:"ruleForm.activity_desc"}})],1)],1),"4"!=e.status&&("0"===e.status&&e.powers.some((function(e){return"056"==e}))||"1"===e.status&&e.powers.some((function(e){return"057"==e}))||"2"===e.status&&e.powers.some((function(e){return"058"==e}))||"3"===e.status&&e.powers.some((function(e){return"059"==e})))?e._e():a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"活动商品","label-position":"top",prop:"good_list"}},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.ruleForm.good_list,stripe:"",border:"",size:"mini"}},[a("el-table-column",{attrs:{prop:"skuCode",label:"商品编码","show-overflow-tooltip":"",width:"170"}}),a("el-table-column",{attrs:{prop:"good_name",label:"商品名称","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"activity_stock",label:"活动库存",width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input-number",{directives:[{name:"show",rawName:"v-show",value:"view"!==e.type,expression:"type !== 'view'"}],staticStyle:{width:"100%"},attrs:{min:1,max:1e11,precision:0,label:"活动库存"},model:{value:t.row.activity_stock,callback:function(a){e.$set(t.row,"activity_stock",a)},expression:"scope.row.activity_stock"}}),a("span",{directives:[{name:"show",rawName:"v-show",value:"view"===e.type,expression:"type === 'view'"}]},[e._v(e._s(t.row.activity_stock))])]}}],null,!1,2714999662)}),""!==e.status&&"0"!==e.status?a("el-table-column",{attrs:{prop:"moq_num",label:"起订量",width:"100","show-overflow-tooltip":""}}):e._e(),""!==e.status&&"0"!==e.status?a("el-table-column",{attrs:{prop:"cost_price",label:"成本单价(元)",width:"100","show-overflow-tooltip":""}}):e._e(),""!==e.status&&"0"!==e.status?a("el-table-column",{attrs:{prop:"sale_price",label:"非活动价(元)",width:"100","show-overflow-tooltip":""}}):e._e(),""!==e.status&&"0"!==e.status?a("el-table-column",{attrs:{prop:"activity_price",label:"活动价(元)",width:"100","show-overflow-tooltip":""}}):e._e(),""!==e.status&&"0"!==e.status?a("el-table-column",{attrs:{prop:"status",label:"审核状态",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-tag",{attrs:{size:"mini",type:"0"==t.row.status?"warning":"2"==t.row.status?"danger":""},domProps:{textContent:e._s((e.options.find((function(e){return e.value==t.row.status}))||{}).label||"--")}})]}}],null,!1,4072576819)}):e._e(),""!==e.status&&"0"!==e.status?a("el-table-column",{attrs:{prop:"remark",label:"审核备注",width:"100","show-overflow-tooltip":""}}):e._e(),a("el-table-column",{attrs:{fixed:"right",width:"80"},scopedSlots:e._u([{key:"header",fn:function(t){return[a("span",[e._v("操作")]),""===e.status?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("add","0")}}})]):e._e()]}},{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.showGoodModelFun(t.row.skuCode)}}})]),""===e.status?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)}}})]):e._e()]}}],null,!1,452201791)})],1)],1)],1)],1)],1),a("search-good-online-modal",{attrs:{once:e.once,sitem:e.ruleForm,active:!0,"show-model":e.showModel},on:{resultList:e.resultList,cancel:function(t){e.showModel=!1}}}),a("show-good-data-modal",{attrs:{"show-model":e.showGoodModel,skuCode:e.showGoodId,spuCode:""},on:{cancel:function(t){e.showGoodModel=!1}}}),""===e.status?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,null,"37ce933b",null);t.default=c.exports},ea33:function(e,t,a){"use strict";a("5f83")},ea49:function(e,t,a){},ea5f:function(e,t,a){"use strict";a("22c8")},ea69:function(e,t,a){"use strict";a.r(t);var r=a("1da1"),n=(a("96cf"),a("a4e6")),i={data:function(){return{datatotalzixunpurchease:{},datawaitsendtotal:{}}},mounted:function(){this.initHttp()},methods:{initHttp: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:return t.next=2,n.a.datatotalzixunpurchease();case 2:if(0!=(a=t.sent).code){t.next=7;break}e.datatotalzixunpurchease=a.data,t.next=9;break;case 7:return e.$message.error(a.message),t.abrupt("return");case 9:return t.next=11,n.a.datawaitsendtotal();case 11:if(0!=(r=t.sent).code){t.next=16;break}e.datawaitsendtotal=r.data,t.next=18;break;case 16:return e.$message.error(r.message),t.abrupt("return");case 18:case"end":return t.stop()}}),t)})))()}}};a("7754"),a=a("2877"),a=Object(a.a)(i,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("div",{attrs:{id:"center"}},[t("div",{staticClass:"up"},[t("div",{staticClass:"bg-color-black item"},[e._m(0),t("div",{staticClass:"ml-3 cex"},[e._v(e._s(e.datatotalzixunpurchease.zixun_total))])]),t("div",{staticClass:"bg-color-black item"},[e._m(1),t("div",{staticClass:"ml-3 cex"},[e._v(e._s(e.datatotalzixunpurchease.not_feedback))])]),t("div",{staticClass:"bg-color-black item"},[e._m(2),t("div",{staticClass:"ml-3 cex"},[e._v(e._s(e.datatotalzixunpurchease.purchease_total))])]),t("div",{staticClass:"bg-color-black item"},[e._m(3),t("div",{staticClass:"ml-3 cex"},[e._v(e._s(e.datatotalzixunpurchease.purchease_wait_confirm))])]),t("div",{staticClass:"bg-color-black item",staticStyle:{"margin-bottom":"0"}},[e._m(4),t("div",{staticClass:"ml-3 cex"},[e._v(e._s(e.datawaitsendtotal.order_num))])]),t("div",{staticClass:"bg-color-black item",staticStyle:{"margin-bottom":"0"}},[e._m(5),t("div",{staticClass:"ml-3 cex"},[e._v(e._s(e.datawaitsendtotal.wsend_num))])])])])}),[function(){var e=this.$createElement;e=this._self._c||e;return e("p",{staticClass:"ml-3 fw-b fs-xl cec"},[e("span",{staticStyle:{color:"#ffbc25"}},[this._v("(竞价单)")]),this._v(" 招标单数")])},function(){var e=this.$createElement;e=this._self._c||e;return e("p",{staticClass:"ml-3 fw-b fs-xl cec"},[e("span",{staticStyle:{color:"#ffbc25"}},[this._v("(竞价单)")]),this._v(" 未竞标单数")])},function(){var e=this.$createElement;e=this._self._c||e;return e("p",{staticClass:"ml-3 fw-b fs-xl cec"},[e("span",{staticStyle:{color:"#ffbc25"}},[this._v("(采购单)")]),this._v(" 采购单数")])},function(){var e=this.$createElement;e=this._self._c||e;return e("p",{staticClass:"ml-3 fw-b fs-xl cec"},[e("span",{staticStyle:{color:"#ffbc25"}},[this._v("(采购单)")]),this._v(" 未下单数")])},function(){var e=this.$createElement;e=this._self._c||e;return e("p",{staticClass:"ml-3 fw-b fs-xl cec"},[e("span",{staticStyle:{color:"#ffbc25"}},[this._v("(未发货)")]),this._v(" 单数")])},function(){var e=this.$createElement;e=this._self._c||e;return e("p",{staticClass:"ml-3 fw-b fs-xl cec"},[e("span",{staticStyle:{color:"#ffbc25"}},[this._v("(未发货)")]),this._v(" 商品数")])}],!1,null,"31da8ee8",null);t.default=a.exports},eb67:function(e,t,a){"use strict";a.r(t);var r=a("1da1"),n=(a("96cf"),a("7db0"),a("d3b7"),a("ddb0"),a("7caa")),i=a("ed08"),s=a("5f10"),o=a("9f53");s={name:"Parameter",components:{addEdit:s.default},mixins:[o.a],computed:{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"parameter"==e.menu_route}))||{};e=(null!==e?e:{}).action;return null!=e?e:[]}},data:function(){return{pickerOptions:{disabledDate:function(e){var t=(new Date).valueOf();t=864e5*parseInt(t/864e5);return e.getTime()<=t}},showModel:!1,loading:!1,modelId:0,tableData:[]}},mounted:function(){this.getInfor()},methods:{onSubmit:function(e){var t=this;return Object(r.a)(regeneratorRuntime.mark((function a(){var r,s;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(t.loading){a.next=20;break}return t.loading=!0,(r={fields_name:e.field_name,value:e.values,expiretime:e.expiretime,fields:e.fields}).expiretime=Object(i.c)(new Date(r.expiretime).valueOf()),a.next=6,n.a.update(r);case 6:if((s=a.sent)&&0===s.code)return t.$notify.success({title:s.message,message:""}),a.next=11,t.getInfor();a.next=13;break;case 11:a.next=19;break;case 13:if(s&&100<=s.code&&s.code<=104)return a.next=16,t.logout();a.next=18;break;case 16:a.next=19;break;case 18:t.$message.warning(s.message);case 19:t.loading=!1;case 20:case"end":return a.stop()}}),a)})))()},getInfor: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.loading=!0,t.next=3,n.a.list({});case 3:if(!(a=t.sent)||0!==a.code||!a.data){t.next=8;break}e.tableData=a.data,t.next=14;break;case 8:if(a&&100<=a.code&&a.code<=104)return t.next=11,e.logout();t.next=13;break;case 11:t.next=14;break;case 13:e.tableData=[];case 14:e.loading=!1;case 15:case"end":return t.stop()}}),t)})))()},openModal:function(e){this.showModel=!0,this.modelId=e}}},a("ba7d"),o=a("2877"),a=Object(o.a)(s,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"parameter pagePadding"},[e.powers.some((function(e){return"001"==e}))?a("div",[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:e.tableData,stripe:"",border:"",size:e.size}},[a("el-table-column",{attrs:{prop:"field_name",label:"参数名称","show-overflow-tooltip":"",align:"center"}}),e.powers.some((function(e){return"008"==e}))?a("el-table-column",{attrs:{label:"字段值","show-overflow-tooltip":"",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input",{attrs:{placeholder:"请输入",maxlength:"100"},model:{value:t.row.values,callback:function(a){e.$set(t.row,"values",a)},expression:"scope.row.values"}})]}}],null,!1,503130966)}):a("el-table-column",{attrs:{prop:"values",label:"字段值","show-overflow-tooltip":"",align:"center"}}),e.powers.some((function(e){return"008"==e}))?a("el-table-column",{attrs:{prop:"expiretime",label:"生效时间","show-overflow-tooltip":"",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{"picker-options":e.pickerOptions,type:"datetime","value-format":"yyyy-MM-dd HH:mm:ss",placeholder:"选择日期时间","default-time":"00:00:00"},model:{value:t.row.expiretime,callback:function(a){e.$set(t.row,"expiretime",a)},expression:"scope.row.expiretime"}})]}}],null,!1,2313843170)}):a("el-table-column",{attrs:{prop:"expiretime",label:"生效时间","show-overflow-tooltip":"",align:"center"}}),a("el-table-column",{attrs:{fixed:"right",label:"操作",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e.powers.some((function(e){return"008"==e}))?a("el-link",{staticStyle:{margin:"0 4px"},attrs:{type:"primary",underline:!1,size:e.tablebtnSize},on:{click:function(a){return e.onSubmit(t.row)}}},[e._v(" 提交 ")]):e._e()]}}],null,!1,413173711)})],1),a("add-edit",{attrs:{showModel:e.showModel,id:e.modelId},on:{cancel:function(t){e.showModel=!1}}})],1):a("div",[a("no-auth")],1)])}),[],!1,null,"1f23a9d4",null);t.default=a.exports},ebb8:function(e,t,a){"use strict";a("f8b9")},ebc9:function(e,t,a){"use strict";a("8062")},ebdd:function(e,t,a){"use strict";a("7a70")},ebea:function(e,t,a){"use strict";a.d(t,"a",(function(){return r})),a.d(t,"b",(function(){return n}));var r=[{type:"selection",fixed:"left",_noset_:!0},{prop:"cgdNo",label:"采购单编号",width:"155px"},{prop:"orderCode",label:"订单编号",width:"155px"},{prop:"spuCode",label:"商品成本编号",width:"158px"},{prop:"good_name",label:"商品名称",_slot_:"good_name","min-width":"145px"},{prop:"good_price",label:"单价",width:"110px"},{prop:"good_num",label:"数量",width:"110px"},{prop:"total_fee",label:"总货款",width:"110px"},{prop:"status",label:"状态",_slot_:"status",width:"120px"},{prop:"order_id",label:"采购单来源",_slot_:"order_id",width:"110px"},{prop:"lasttime",label:"预计最晚入库时间",width:"145px"},{prop:"supplierNo",label:"采购供应商编号",width:"145px"},{prop:"supplier_name",label:"采购供应商名称",width:"155px"},{prop:"company_name",label:"采购员部门",minWidth:"100px"},{prop:"cgder",label:"采购员",width:"60px"},{prop:"addtime",label:"创建时间",width:"145px"},{prop:"",label:"操作",fixed:"right",_noset_:!0,width:"50px",_slot_:"operation"}],n=[{value:"0",label:"待与供应商确认"},{value:"1",label:"待入库"},{value:"2",label:"部分入库"},{value:"3",label:"入库完成"},{value:"4",label:"已取消订单"}]},ebee:function(e,t,a){},ebfc:function(e,t,a){},ec0a:function(e,t,a){},ec16:function(e,t,a){},ec1b:function(e,t,a){function r(e){if(i[e])return i[e].exports;var t=i[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,r),t.l=!0,t.exports}var n,i;e.exports=(n=[function(e,t,a){a=a(4)(a(1),a(5),null,null),e.exports=a.exports},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(3);t.default={props:{startVal:{type:Number,required:!1,default:0},endVal:{type:Number,required:!1,default:2017},duration:{type:Number,required:!1,default:3e3},autoplay:{type:Boolean,required:!1,default:!0},decimals:{type:Number,required:!1,default:0,validator:function(e){return 0<=e}},decimal:{type:String,required:!1,default:"."},separator:{type:String,required:!1,default:","},prefix:{type:String,required:!1,default:""},suffix:{type:String,required:!1,default:""},useEasing:{type:Boolean,required:!1,default:!0},easingFn:{type:Function,default:function(e,t,a,r){return a*(1-Math.pow(2,-10*e/r))*1024/1023+t}}},data:function(){return{localStartVal:this.startVal,displayValue:this.formatNumber(this.startVal),printVal:null,paused:!1,localDuration:this.duration,startTime:null,timestamp:null,remaining:null,rAF:null}},computed:{countDown:function(){return this.startVal>this.endVal}},watch:{startVal:function(){this.autoplay&&this.start()},endVal:function(){this.autoplay&&this.start()}},mounted:function(){this.autoplay&&this.start(),this.$emit("mountedCallback")},methods:{start:function(){this.localStartVal=this.startVal,this.startTime=null,this.localDuration=this.duration,this.paused=!1,this.rAF=(0,r.requestAnimationFrame)(this.count)},pauseResume:function(){this.paused?(this.resume(),this.paused=!1):(this.pause(),this.paused=!0)},pause:function(){(0,r.cancelAnimationFrame)(this.rAF)},resume:function(){this.startTime=null,this.localDuration=+this.remaining,this.localStartVal=+this.printVal,(0,r.requestAnimationFrame)(this.count)},reset:function(){(this.startTime=null,r.cancelAnimationFrame)(this.rAF),this.displayValue=this.formatNumber(this.startVal)},count:function(e){this.startTime||(this.startTime=e),e=(this.timestamp=e)-this.startTime,this.remaining=this.localDuration-e,this.useEasing?this.countDown?this.printVal=this.localStartVal-this.easingFn(e,0,this.localStartVal-this.endVal,this.localDuration):this.printVal=this.easingFn(e,this.localStartVal,this.endVal-this.localStartVal,this.localDuration):this.countDown?this.printVal=this.localStartVal-(this.localStartVal-this.endVal)*(e/this.localDuration):this.printVal=this.localStartVal+(this.localStartVal-this.startVal)*(e/this.localDuration),this.countDown?this.printVal=this.printValthis.endVal?this.endVal:this.printVal,this.displayValue=this.formatNumber(this.printVal),e(new Date).valueOf()}}}},watch:{disabled:function(e){this.isEdit=e},month:function(e){this.value=e},newTime:function(e){this.timeChange()}},mounted:function(){},methods:{timeChange:function(){var e,t,a,r,n;null===this.value?(r={startTime:this.value="",endTime:"",value:this.value},this.$emit("timeReturned",r)):(r="",e=(t=(a=new Date(this.value)).getFullYear())+"-"+((a=a.getMonth()+1)<10?"0"+a:a)+"-",r=a+""=="12"?e+"31":(n=parseInt(a)+1,t=new Date(t+"-"+(a<10?"0"+n:n)+"-01").valueOf()-864e5,e+((a=new Date(t).getDate())<10?"0"+a:a)),n={startTime:"".concat(this.value,"-01"),endTime:r,value:this.value},this.$emit("timeReturned",n))}}};a("7b3d"),a=a("2877"),a=Object(a.a)(r,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("div",{staticClass:"fl time"},[t("el-date-picker",{attrs:{type:"month",size:e.size,placeholder:"选择月","value-format":"yyyy-MM",editable:!1,clearable:!0,disabled:e.isEdit,"picker-options":e.pickerOptions},on:{change:e.timeChange},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}})],1)}),[],!1,null,null,null);t.default=a.exports},ee23:function(e,t,a){"use strict";a("e903")},ee33:function(e,t,a){"use strict";a("3cae")},ee4b:function(e,t,a){},ee5c:function(e,t,a){"use strict";a.r(t);var r=a("1da1"),n=a("5530"),i=(a("96cf"),a("7db0"),a("d3b7"),a("fb6a"),a("b0c0"),a("99af"),a("e9c4"),a("d81d"),a("f5ed")),s=a("2623"),o=a("9cd7"),l=a("0ee5"),c=a("2f62"),u=a("9f53");o={name:"organize",components:{addEdit:o.default},mixins:[i.a,u.a],computed:Object(n.a)(Object(n.a)({},Object(c.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"organize"==e.menu_route}))||{};e=(null!==e?e:{}).action;return null!=e?e:[]}}),data:function(){return{titleList:[],sitem:null,statusList:l.b,loading:!0,showModel:!1,showInterface:!1,isDetail:!1,isAdd:!0,level:1,modelId:0,formData:{},parentIds:"",parmValue:{pid:"",name:"",nickname:""},depart:[],item:[],passwordModel:!1,passwordModelId:0}},mounted:function(){this.searchList()},methods:{restSearch:function(){this.parmValue={pid:"",name:"",nickname:""},this.searchList()},changeBreadcrumb:function(e){var t=this;return Object(r.a)(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(e+1===t.titleList.length)return a.abrupt("return");a.next=4;break;case 4:t.parmValue.pid=t.titleList[e].id,t.titleList=t.titleList.slice(0,e+1);case 6:return 1===t.titleList.length&&(t.titleList=[]),a.next=9,t.searchList();case 9:case"end":return a.stop()}}),a)})))()},openChildren: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.parmValue.pid=e.id,r={id:e.id,titleName:e.name},0===t.titleList.length&&t.titleList.push({id:"",titleName:"全部分类"}),t.titleList.push(r),a.next=6,t.searchList();case 6:case"end":return a.stop()}}),a)})))()},openModal:function(e,t,a){this.showModel=!0,this.modelId=e,this.isDetail=t,this.sitem=a},openPasswordModal:function(e,t){this.passwordModel=!0,this.passwordModelId=e,this.isPasswordDetail=t},setUpEdit:function(e,t){var a=this;return Object(r.a)(regeneratorRuntime.mark((function r(){var n,i;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if("1"===t)return n={id:e,position:"2"},r.next=4,s.a.userp(n);r.next=19;break;case 4:if((i=r.sent)&&0===i.code)return a.$notify.success({title:"设置成功!",message:""}),r.next=9,a.searchList();r.next=11;break;case 9:r.next=17;break;case 11:if(i&&100<=i.code&&i.code<=104)return r.next=14,a.logout();r.next=16;break;case 14:r.next=17;break;case 16:a.$message.warning(i.message);case 17:r.next=20;break;case 19:a.$message.warning("该账户已是部门负责人!");case 20:case"end":return r.stop()}}),r)})))()},addEditFn:function(e,t,a,r,n,i){this.showModel=!0,this.modelId=e,this.level=a,this.parentIds=t,this.isDetail=r,this.isAdd=n,this.formData=i},setstatus:function(e,t,a,n){var i=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=3,i.$confirm("确定要".concat("0"===n?"启用":"禁用","?"),{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={id:e,status:"1"===n?"0":"1"},t.next=3,s.a.status(a);case 3:if((r=t.sent)&&0===r.code)return i.$notify.success({title:"修改成功!",message:""}),t.next=8,i.searchList();t.next=10;break;case 8:t.next=16;break;case 10:if(r&&100<=r.code&&r.code<=104)return t.next=13,i.logout();t.next=15;break;case 13:t.next=16;break;case 15:i.$message.warning(r.message);case 16:case"end":return t.stop()}}),t)})))).catch((function(){}));case 3:case"end":return t.stop()}}),t)})))()},del:function(e,t,a,n){var i=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=3,i.$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={id:e},t.next=3,s.a.delete(a);case 3:if((r=t.sent)&&0===r.code)return i.$notify.success({title:"删除成功!",message:""}),t.next=8,i.searchList();t.next=10;break;case 8:t.next=13;break;case 10:if(r&&100<=r.code&&r.code<=104)return t.next=13,i.logout();t.next=13;break;case 13:case"end":return t.stop()}}),t)})))).catch((function(){}));case 3:case"end":return t.stop()}}),t)})))()},concatData:function(e,t,a){var n=this;return Object(r.a)(regeneratorRuntime.mark((function r(){var i,o,l;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n.loading=!0,r.next=3,s.a.list({});case 3:if(i=r.sent,o=[],!i||0!==i.code||!i.data){r.next=9;break}o=i.data,r.next=15;break;case 9:if(i&&100<=i.code&&i.code<=104)return r.next=12,n.logout();r.next=14;break;case 12:r.next=15;break;case 14:n.$message.warning(i.message);case 15:l=(l=JSON.parse(JSON.stringify(n.depart))).map((function(r,n){return(1===a?e:t===r.id)&&(r.child=o[n].child),r})),n.depart=l,n.loading=!1;case 19:case"end":return r.stop()}}),r)})))()},deleteById: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("确定要删除?",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(r.a)(regeneratorRuntime.mark((function r(){var n,i;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n={id:e,status:"1"===t?"0":"1"},r.next=3,s.a.status(n);case 3:if(!(i=r.sent)||0!==i.code){r.next=9;break}a.$notify.success({title:"删除成功",message:""}),a.searchList(),r.next=15;break;case 9:if(i&&100<=i.code&&i.code<=104)return r.next=12,a.logout();r.next=14;break;case 12:r.next=15;break;case 14:a.$message.warning(i.message);case 15:case"end":return r.stop()}}),r)})))).catch((function(){}));case 2:case"end":return n.stop()}}),n)})))()},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,s.a.list(e.parmValue);case 3:if(!(a=t.sent)||0!==a.code||!a.data){t.next=10;break}n=a.data,r=n.depart,n=n.item,e.depart=r,e.item=n,t.next=17;break;case 10:if(a&&100<=a.code&&a.code<=104)return t.next=13,e.logout();t.next=15;break;case 13:t.next=17;break;case 15:e.depart=[],e.item=[];case 17:e.loading=!1;case 18:case"end":return t.stop()}}),t)})))()},statusConfirm: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,i;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,s.a.status(n);case 4:if((i=r.sent)&&0===i.code)return a.loading=!1,a.$notify.success({title:"状态修改成功!",message:""}),r.next=10,a.searchList();r.next=12;break;case 10:r.next=18;break;case 12:if(i&&100<=i.code&&i.code<=104)return r.next=15,a.logout();r.next=17;break;case 15:r.next=18;break;case 17:a.$message.warning(i.message);case 18:case"end":return r.stop()}}),r)})))).catch((function(){}));case 2:case"end":return n.stop()}}),n)})))()}}},a("f9d9"),i=a("2877"),u=Object(i.a)(o,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"organize pagePadding"},[e.powers.some((function(e){return"001"==e}))?a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[a("el-row",[a("el-col",{attrs:{span:24}},[a("el-col",{staticStyle:{padding:"12px 0 15px 0"},attrs:{span:24}},[a("div",{staticClass:"my-breadcrumb clear"},e._l(e.titleList,(function(t,r){return a("div",{key:t+r,staticClass:"my-breadcrumb-item",class:{chover:!0},on:{click:function(t){return e.changeBreadcrumb(r)}}},[a("span",{staticClass:"label"},[e._v(e._s(t.titleName))]),r+1!==e.titleList.length?a("span",{staticClass:"separator"},[e._v("/")]):e._e()])})),0)]),a("el-col",{attrs:{span:24}},[a("el-row",{staticStyle:{padding:"0 0 3px 0"}},[a("el-col",{staticStyle:{width:"200px"},attrs:{span:8}},[a("el-input",{attrs:{placeholder:"部门名称",size:e.searchSize,maxlength:"50"},model:{value:e.parmValue.name,callback:function(t){e.$set(e.parmValue,"name",t)},expression:"parmValue.name"}})],1),a("el-col",{staticStyle:{width:"250px",padding:"0 0 0 10px"},attrs:{span:8}},[a("el-input",{attrs:{placeholder:"员工姓名",size:e.searchSize,maxlength:"50"},model:{value:e.parmValue.nickname,callback:function(t){e.$set(e.parmValue,"nickname",t)},expression:"parmValue.nickname"}},[a("el-button",{attrs:{slot:"append",icon:"el-icon-search"},on:{click:e.searchList},slot:"append"})],1)],1),a("el-col",{staticStyle:{width:"195px",float:"right"},attrs:{span:3}},[a("el-button",{staticStyle:{float:"right","margin-left":"5px"},attrs:{type:"primary",size:e.searchSize},on:{click:e.searchList}},[e._v(" 刷新 ")]),e.powers.some((function(e){return"003"==e}))?a("el-button",{staticStyle:{float:"right"},attrs:{type:"success",size:e.searchSize},on:{click:function(t){return e.addEditFn(0,e.parmValue&&""!==e.parmValue.pid?e.parmValue.pid:"0",1,!1,!0,{})}}},[e._v(" 添加 ")]):e._e()],1)],1)],1)],1)],1),a("el-row",{attrs:{gutter:10}},[e.powers.some((function(e){return"001"==e}))?a("el-col",{attrs:{span:24}},[a("organize-tree",{staticStyle:{"margin-left":"-5px"},attrs:{list:e.depart,level:1,pid:0},on:{addEdit:e.addEditFn,openChildren:e.openChildren,status:e.setstatus,del:e.del}}),a("staff-tree",{staticStyle:{"margin-left":"-5px"},attrs:{list:e.item,level:1,pid:0},on:{setUpEdit:e.setUpEdit}})],1):e._e(),e.item&&0===e.item.length&&e.depart&&0===e.depart.length?a("div",{staticClass:"no-data"},[e._v(" 暂无数据 ")]):e._e()],1),a("add-edit",{attrs:{id:e.modelId,"show-model":e.showModel,level:e.level,pid:e.parentIds,"is-add":e.isAdd,"form-data":e.formData,type:e.parmValue.type,"is-detail":e.isDetail},on:{refresh:e.searchList,cancel:function(t){e.showModel=!1}}})],1):a("div",[a("no-auth")],1)])}),[],!1,null,"34fcc692",null);t.default=u.exports},ee83:function(e,t,a){"use strict";a.r(t);var r=a("1da1"),n=(a("d3b7"),a("ac1f"),a("5319"),a("159b"),a("07ac"),a("e9c4"),a("96cf"),a("2a9f")),i=a("9f53"),s=[{prop:"",type:"index",fixed:"left",width:"100px"},{prop:"platform_code",label:"平台订单号",width:"152px"},{prop:"po_code",label:"其他单号",width:"140px"},{prop:"platform_time",label:"平台订单下单时间",width:"145px"},{prop:"sale_source",label:"销售渠道",width:"90px"},{prop:"plat_code",label:"平台商品编号",width:"140px"},{prop:"price",label:"单价(元)",width:"110px"},{prop:"num",label:"数量",width:"110px"},{prop:"before_discount_all_price",label:"订单总金额",width:"110px"},{prop:"activity_name",label:"优惠活动名称",width:"140px"},{prop:"mode",label:"收费模式",width:"90px"},{prop:"contactor",label:"收货人",width:"60px"},{prop:"mobile",label:"联系电话",width:"110px"},{prop:"addr",label:"联系地址",width:"140px"},{prop:"order_remark",label:"订单备注",width:"140px"}];i={mixins:[i.a],name:"orderImport",data:function(){return{ruleForm:{platform_id:""},table:{stripe:!0,border:!0,"max-height":"800px"},tableData:[],pageInfo:{size:15,curr:1,total:0},rulesThis:this.rules,rules:{platform_id:[{required:!0,message:"请选择导入目标平台",trigger:"change"}]},loading:!1,columns:s,btnFlag:!1,editBtnFlag:!1}},mounted:function(){this.resetForm()},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 e.loading=!1,e.rulesThis=e.rules,e.tableData=[],t.next=5,e.$nextTick((function(){e.$refs.ruleForm&&(e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),e.ruleForm={platform_id:""})}));case 5:case"end":return t.stop()}}),t)})))()},platform_codesearchChange:function(e){e=e.id,this.ruleForm.platform_id=e||"",this.$refs.ruleForm.validateField("platform_id")},beforeUpload:function(e){return e.size/1024/1024<1||(this.$message({message:"请不要上传大于1MB的文件.",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(e=["平台订单号","其他单号(不必填)","平台下单时间","销售渠道","平台商品编号","单价(元)","数量","订单总金额","优惠活动名称","收费模式","收货人","联系电话","联系地址","订单备注"],e.length!==r.length)return this.$message.error("表头与导入模板不匹配!"),void(this.loading=!1);var n=!0;if(e.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){e=Object.values(e),e={platform_code:e[0]+"",po_code:e[1]+"",platform_time:e[2],sale_source:e[3]+"",plat_code:e[4]+"",price:e[5]+"",num:e[6]+"",before_discount_all_price:e[7]+"",activity_name:e[8]+"",mode:e[9]+"",contactor:e[10]+"",mobile:e[11]+"",addr:e[12]+"",order_remark:e[13]+""},t.tableData.push(e)}))}catch(e){}this.loading=!1}},submit: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=32;break}if(e.loading){t.next=30;break}if(e.loading=!0,0===e.tableData.length)return e.$message.warning("导入数据不能为空"),e.loading=!1,t.abrupt("return");t.next=7;break;case 7:return r=e.ruleForm.platform_id,(i=JSON.parse(JSON.stringify(e.tableData))).forEach((function(e){e.platform_id=r})),i={list:i},t.next=13,n.a.orderimport(i);case 13:if(i=t.sent,s=i.code,i.data,o=i.message,e.loading=!1,0===s)return e.$notify.success({title:"导入成功!",message:""}),t.next=22,e.resetForm();t.next=24;break;case 22:t.next=30;break;case 24:if(100<=s&&s<=104)return t.next=27,e.logout();t.next=29;break;case 27:t.next=30;break;case 29:e.$message.warning(o);case 30:t.next=34;break;case 32:return t.abrupt("return",!1);case 34:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()}}},a("67fc"),a=a("2877"),a=Object(a.a)(i,(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|\{|\}|\[|\]|\[|\]|\:|\:|\.|\^|\$|\!|\~|\`|\|/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(o.p)(e)||!!Object(o.e)(e):t=!1,r||(t=!1)})),t},submit:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){var a,r,i,s,o,l,c,u,d,p;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.loading){t.next=38;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=[],i=a=!0,e.tableData.forEach((function(t,n){""!==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)||(i=!1),r.push(s)})),a){t.next=12;break}return e.$notify.warning({title:"以下单号不能为空!",message:"发货申请单号/发货申请单物流公司/发货申请单物流单号/发货申请单物流费用/发货申请单备注"}),e.loading=!1,t.abrupt("return");case 12:if(i){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,n.a.saleoutbatch(s);case 20:if(s=t.sent,o=s.code,l=s.data,c=s.message,e.loading=!1,0===o)return e.$notify.success({title:"导入成功!",message:""}),e.tableData=[],t.next=30,e.routeReGoto("sellOutOrder",{});t.next=32;break;case 30:t.next=38;break;case 32:if(100<=o&&o<=104)return t.next=35,e.logout();t.next=37;break;case 35:t.next=38;break;case 37:1005==o?(d=JSON.parse(JSON.stringify(l)),u="
      ",d.forEach((function(e){u+="
    • ".concat(e.outCode,"
    • ")})),u+="
    ",e.$notify({title:c,dangerouslyUseHTMLString:!0,message:u})):1011==o?(d=JSON.parse(JSON.stringify(l)),p="
      ",d.forEach((function(e){p+="
    • ".concat(e.outCode,"
    • ")})),p+="
    ",e.$notify({title:c,dangerouslyUseHTMLString:!0,message:p})):e.$message.warning(c);case 38:case"end":return t.stop()}}),t)})))()}}},a("c899"),a=a("2877"),a=Object(a.a)(i,(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