1 |
- (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-a081bf92","chunk-3c2d3cee","chunk-3387554e","chunk-784d75dd","chunk-d0938f4c","chunk-37bf977e","chunk-15caf0ce","chunk-9a80af00"],{"03a5":function(e,t,a){"use strict";a("bfe0")},"04c5":function(e,t,a){},"068b":function(e,t,a){"use strict";a("1ee4")},"07b9":function(e,t,a){},"07d3":function(e,t,a){"use strict";a("7b8a")},"0880":function(e,t,a){"use strict";a.r(t);var r=a("1da1"),n=(a("e9c4"),a("96cf"),a("72c0")),i=a("7d27"),o=a("9f53");i={name:"report",props:["showModel","id","isDetail"],components:{PeriodDatePicker:i.a},mixins:[o.a],data:function(){return{ruleForm:{name:"账龄",start:"",end:""},rules:{name:[{required:!0,message:"请输入报表名称",trigger:"blur"},{min:1,max:50,message:"长度在 1 到 50 个字符",trigger:"blur"}]},activeName:"first",tabsList:[{tabs:"账龄",key:1},{tabs:"部门",key:2},{tabs:"业务员",key:3},{tabs:"合计",key:4},{tabs:"总公司",key:5},{tabs:"分公司",key:6},{tabs:"确认单的数量",key:7},{tabs:"平台",key:8},{tabs:"开票类型",key:9},{tabs:"产品品类",key:10},{tabs:"月",key:11},{tabs:"日",key:12}],loading:!1,title:"设置报表格式",showModelThis:this.showModel}},methods:{timeReturned: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:""!==e.startTime?t.ruleForm.start=e.startTime:t.ruleForm.start="",""!==e.endTime?t.ruleForm.end=e.endTime:t.ruleForm.end="",""!==t.ruleForm.start&&t.ruleForm.end;case 3:case"end":return a.stop()}}),a)})))()},handleClick:function(e,t){},closeModel:function(){},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("add"!==e.id){t.next=5;break}e.title="设置报表格式",e.loading=!1,t.next=8;break;case 5:return e.isDetail,e.title="设置报表格式",t.next=8,e.initData();case 8:case"end":return t.stop()}}),t)})))()},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,n.a.detail({id:e.id});case 3:if(a=t.sent,e.loading=!1,!a||0!==a.code){t.next=8;break}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.$message.warning(a.message);case 14:case"end":return t.stop()}}),t)})))()},submitForm:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.ruleForm.validate(function(){var t=Object(r.a)(regeneratorRuntime.mark((function t(a){var r,i,o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!a){t.next=30;break}if(e.loading=!0,r=JSON.parse(JSON.stringify(e.ruleForm)),i={},"add"===e.id)return r.passport=r.password,t.next=8,n.a.add(r);t.next=11;break;case 8:i=t.sent,t.next=14;break;case 11:return t.next=13,n.a.update(r);case 13:i=t.sent;case 14:if(e.loading=!1,!i||0!==i.code){t.next=22;break}o="add"===e.id?"添加成功":"修改成功",e.$notify.success({title:o,message:""}),e.showModelThis=!1,e.$emit("refresh"),t.next=28;break;case 22:if(i&&100<=i.code&&i.code<=104)return t.next=25,e.logout();t.next=27;break;case 25:t.next=28;break;case 27:e.$message.warning(i.message);case 28:t.next=32;break;case 30:return t.abrupt("return",!1);case 32:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis:function(e){e||this.$emit("cancel")}}},a("cd23"),o=a("2877"),a=Object(o.a)(i,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:e.title,center:!0,align:"left",top:"5vh",width:"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:e.closeModel,"update:visible":function(t){e.showModelThis=t}}},[t("el-card",[t("el-row",{attrs:{gutter:10}},[t("el-col",{attrs:{span:24}},[t("el-row",{staticStyle:{height:"500px"},attrs:{gutter:10}},[t("el-col",{attrs:{span:18}},[t("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,rules:e.rules,size:"mini","label-width":"85px","label-position":"top"}},[t("el-row",{attrs:{gutter:10}},[t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"报表名称",prop:"name"}},[t("el-input",{attrs:{placeholder:"请输入报表名称"},model:{value:e.ruleForm.name,callback:function(t){e.$set(e.ruleForm,"name",t)},expression:"ruleForm.name"}})],1)],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"报表数据时间区间",required:""}},[t("period-date-picker",{attrs:{start:e.ruleForm.start,end:e.ruleForm.end,type:1,size:"mini",width:"165px"},on:{timeReturned:function(t){return e.timeReturned(t)}}})],1)],1)],1),t("el-col",{attrs:{span:24}},[t("el-form-item",{attrs:{label:"报表预览",required:""}})],1),t("el-col",{attrs:{span:24}},[t("el-form-item",[t("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.submitForm("ruleForm")}}},[e._v("立即创建")]),t("el-button",{on:{click:function(t){return e.resetForm("ruleForm")}}},[e._v("重置")])],1)],1)],1)],1),t("el-col",{attrs:{span:6}},[t("div",[e._v("报表参数")]),t("div")])],1)],1),t("el-col",{staticStyle:{"text-align":"right"},attrs:{span:24}},[e.isDetail?e._e():t("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("保 存 ")]),t("el-button",{on:{click:function(t){e.showModelThis=!1}}},[e._v(e._s(e.isDetail?"关 闭":"取 消"))])],1)],1)],1)],1)}),[],!1,null,"4758633b",null);t.default=a.exports},"08ff":function(e,t,a){"use strict";a.r(t);var r=a("1da1"),n=(a("96cf"),a("99af"),a("e9c4"),a("d3b7"),a("159b"),a("a15b"),a("a434"),a("3ef2")),i=a("c7f0"),o=a("9f53");i={name:"orderRecord",props:["id","newTime","payNo","dstatus","companyNo"],components:{Upload:i.a},mixins:[o.a],data:function(){return{pickerOptions:{disabledDate:function(e){if(e)return e.getTime()>=(new Date).valueOf()}},image:[],loading:!1,show:!1,ruleForm:{sid:this.id,image:[],paytime:""},feedbacksThis:this.feedbacks,feedbacks:{image:[{required:!0,message:"请选择发票照片",trigger:"change"}],paytime:[{required:!0,message:"请选择回执时间",trigger:"change"}]}}},watch:{newTime:function(e,t){e!==t&&this.initForm()}},mounted:function(){this.initForm()},methods:{transformTime:function(e){e=new Date(e);var t=this.setNum(e.getFullYear()),a=this.setNum(e.getMonth()+1),r=this.setNum(e.getDate()),n=this.setNum(e.getHours()),i=this.setNum(e.getMinutes());e=this.setNum(e.getSeconds());return"".concat(t,"-").concat(a,"-").concat(r," ").concat(n,":").concat(i,":").concat(e)},setNum:function(e){return e<10?"0".concat(e):e+""},open:function(){this.show=!0},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.feedbacksThis=e.feedbacks,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(){e.$refs.ruleForm&&(e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),e.ruleForm={sid:e.id,image:[],paytime:new Date})}));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,o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a)return e.loading=!0,r=JSON.parse(JSON.stringify(e.ruleForm)),i=[],r.image.forEach((function(e){i.push(e.image)})),r.image=i.join(","),r.status="4",r.sid=e.id,r.paytime=e.transformTime(r.paytime),t.next=11,n.a.paymentexam(r);t.next=27;break;case 11:if(!(o=t.sent)||0!==o.code){t.next=19;break}e.$notify.success({title:"回执上传成功!",message:""}),e.showModelThis=!1,e.$emit("refreshAll"),t.next=25;break;case 19:if(o&&100<=o.code&&o.code<=104)return t.next=22,e.logout();t.next=24;break;case 22:t.next=25;break;case 24:e.$message.warning(o.message);case 25:t.next=29;break;case 27:return t.abrupt("return",!1);case 29:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()},closeImg:function(e,t){var a=this;return Object(r.a)(regeneratorRuntime.mark((function r(){var i;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t)return a.loading=!0,r.next=4,n.a.invoicedel({id:t});r.next=19;break;case 4:if(!(i=r.sent)||0!==i.code){r.next=10;break}a.ruleForm.image.splice(e,1),a.$refs.ruleForm.validateField("image"),r.next=16;break;case 10:if(i&&100<=i.code&&i.code<=104)return r.next=13,a.logout();r.next=15;break;case 13:r.next=16;break;case 15:a.$message.warning(i.message);case 16:a.loading=!1,r.next=21;break;case 19:a.ruleForm.image.splice(e,1),a.$refs.ruleForm.validateField("image");case 21:case"end":return r.stop()}}),r)})))()},UploadErrorEvent:function(){this.$message.error("图片上传失败!"),this.$refs.ruleForm.validateField("image")},UploadSuccessEvent:function(e){"break"!==e.url&&(e=e.url.url,this.ruleForm.image.push({id:"",image:e}),this.$message.success("图片上传成功!"),this.$refs.ruleForm.validateField("image"))},beforeAvatarUpload:function(e){var t=!1;"image/jpg"!==e.type&&"image/png"!==e.type&&"image/bmp"!==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("84e3"),o=a("2877"),a=Object(o.a)(i,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-row",[a("el-col",{attrs:{span:24}},[a("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,rules:e.feedbacksThis,"label-width":"130px"}},[a("el-row",{attrs:{gutter:10}},[a("el-col",{attrs:{span:24}},[a("el-form-item",{staticClass:"activity-upload",attrs:{label:"回执照片",prop:"image"}},[a("div",{staticClass:"img-list-main clearfix"},[e._l(e.ruleForm.image,(function(t,r){return a("div",{key:t.image+r,staticClass:"img-item",class:{}},[a("img",{directives:[{name:"viewer",rawName:"v-viewer"}],staticClass:"avatar",attrs:{src:t.image}}),a("i",{staticClass:"el-icon-close",on:{click:function(a){return e.closeImg(r,t.id)}}})])})),e.ruleForm.image.length<101?a("div",{staticClass:"btnupload",staticStyle:{position:"relative"},on:{click:e.open}},[a("i",{staticClass:"el-icon-plus avatar-uploader-icon"}),a("Upload",{staticClass:"Upload",attrs:{accept:".jpg,.png,.bmp,.jpeg",multiple:!0,uploadcondition:e.beforeAvatarUpload},on:{UploadErrorEvent:e.UploadErrorEvent,UploadSuccessEvent:e.UploadSuccessEvent}})],1):e._e()],2),a("div",{staticClass:"txt-tips fl"},[a("p",[a("span",{attrs:{sty:""}},[e._v("大小:小于1M;")]),a("span",[e._v("尺寸:100*100;")]),a("span",[e._v("类型:jpg.png.bmp.jpeg")])])])]),a("el-form-item",{attrs:{label:"回执时间",prop:"paytime"}},[a("el-date-picker",{attrs:{type:"datetime","picker-options":e.pickerOptions,"value-format":"yyyy-MM-dd HH:mm:ss",placeholder:"选择回执时间"},model:{value:e.ruleForm.paytime,callback:function(t){e.$set(e.ruleForm,"paytime",t)},expression:"ruleForm.paytime"}})],1)],1)],1)],1)],1),a("el-col",{staticStyle:{"text-align":"right"},attrs:{span:24}},[a("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("保 存 ")])],1)],1)}),[],!1,null,"1c6f65c2",null);t.default=a.exports},"09a2":function(e,t,a){},"0c50":function(e,t,a){"use strict";a.r(t);var r=a("1da1"),n=(a("96cf"),a("5bcd")),i=a("1195"),o=a("6810");n={name:"orderRecord",props:["showModel","id","isDetail","dstatus","payNo","companyNo"],components:{addView:n.default,stepBar:o.default,feedbackView:i.default},data:function(){return{activeNames:"2",newTime:0,activeName:"-1",showView:!0,loading:!1,title:"反馈信息",showModelThis:this.showModel}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis:function(e){e||this.$emit("cancel")}},methods:{closeModel:function(){},refreshAll:function(){this.showModelThis=!1,this.$emit("refresh")},initForm:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.changea();case 2:case"end":return t.stop()}}),t)})))()},changea:function(){this.newTime=(new Date).valueOf()}}},a("409f"),o=a("2877"),i=Object(o.a)(n,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:e.title,center:!0,align:"left",top:"10vh",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:e.closeModel}},[t("el-card",{staticStyle:{"margin-top":"-15px",height:"685px"}},[t("stepBar",{attrs:{id:e.modelId,payNo:e.payNo,dstatus:e.dstatus},on:{refresh:e.searchList}}),t("el-collapse",{attrs:{accordion:""},model:{value:e.activeNames,callback:function(t){e.activeNames=t},expression:"activeNames"}},[t("el-collapse-item",{attrs:{title:"对账详情",name:"1"}},[t("add-view",{attrs:{id:e.id,isDetail:e.isDetail,newTime:e.newTime,payNo:e.payNo},on:{refreshAll:e.refreshAll}})],1),t("el-collapse-item",{attrs:{title:"反馈信息",name:"2"}},[t("feedback-view",{attrs:{id:e.id,newTime:e.newTime,payNo:e.payNo},on:{refreshAll:e.refreshAll}})],1)],1)],1)],1)}),[],!1,null,"0407c560",null);t.default=i.exports},"0c98":function(e,t,a){},"0e40":function(e,t,a){},"0ee5":function(e,t,a){"use strict";t.a=[{name:"启用",code:"1"},{name:"禁用",code:"0"}]},"0ff4":function(e,t,a){},"10c0":function(e,t,a){"use strict";a.r(t);var r=a("1da1"),n=a("5530"),i=(a("96cf"),a("7db0"),a("d3b7"),a("c740"),a("a15b"),a("159b"),a("a9e3"),a("f5ed")),o=a("cf12"),s=a("2f62"),l=a("db30"),c=a("c9be"),u=a("88a9"),d=a("14b9"),p=a("9f53");c={name:"relationQuery",components:{headTemplate:c.default,itemTemplate:u.default,addEdit:d.default},computed:Object(n.a)(Object(n.a)({},Object(s.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"relationQuery"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),data:function(){return{code:[],input:"",No:"",selectLoading:!1,invoiceType:l.d,capitalType:l.c,queryBasisList:l.g,active:["capital","order","invoice"],loading:!1,showModel:!1,isDetail:!1,modelId:0,parmValue:{type:"",companyNo:"",page:1,size:15,codeNo:""},count:0,tableData:[]}},mixins:[i.a,p.a],mounted:function(){this.restSearch()},methods:{restSearch:function(){this.code=[],this.active=[],this.parmValue={type:"",companyNo:"",page:1,size:15,codeNo:""},this.tableData=[]},openModal:function(e,t,a,r){switch(this.isDetail=0,a+","+r){case"order,invoice":this.isDetail="1";break;case"order,capital":this.isDetail="2";break;case"capital,order":this.isDetail="3";break;case"invoice,capital":this.isDetail="4";break;case"capital,invoice":this.isDetail="5";break;case"invoice,order":this.isDetail="6"}this.modelId=t,this.No=e,this.showModel=!0},typeChange: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&&-1!==(r=t.queryBasisList.findIndex((function(t){return t.code===e})))?t.active=t.queryBasisList[r].active:(t.active=[],t.tableData=[]),t.parmValue.codeNo="",a.next=4,t.searchList();case 4: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.type)return e.$message.warning("请选择查询依据!"),t.abrupt("return");t.next=3;break;case 3:if(e.active&&3===e.active.length)return e.parmValue.companyNo=e.code.join(","),e.loading=!0,e.tableData=[],t.next=9,o.a.list(e.parmValue);t.next=25;break;case 9:if(!(a=t.sent)||0!==a.code||!a.data){t.next=17;break}a.data.list.forEach((function(t){var a={order:{btn:"orderinfo"===t.dashd,No:"",list:[]},capital:{btn:"tradeinfo"===t.dashd,No:"",list:[]},invoice:{btn:"invinfo"===t.dashd,No:"",list:[]}};t.orderinfo.forEach((function(e){e.qrdNo.forEach((function(t){t={code:t.qrdNo,name:e.companyName,inv_fee:t.ainv_fee,fund_fee:t.afund_fee,order_fee:0},a.order.No=e.orderNo,a.order.list.push(t)}))})),t.tradeinfo.forEach((function(e){var t={code:e.traNo,name:e.companyName,inv_fee:e.inv_fee,fund_fee:0,order_fee:e.order_fee};a.capital.No=e.traNo,a.capital.list.push(t)})),t.invinfo.forEach((function(e){var t={code:e.invNo,name:e.companyName,inv_fee:0,fund_fee:e.atrade_fee,order_fee:e.aorder_fee};a.invoice.No=e.invNo,a.invoice.list.push(t)})),e.tableData.push(a)})),e.count=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.count=0;case 24:e.loading=!1;case 25:case"end":return t.stop()}}),t)})))()},remoteMethod: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.selectLoading=!0,""!==e)return t.activeOptions=[],a.next=5,o.a.clist({page:1,size:100,company:e});a.next=18;break;case 5:if(!((r=a.sent)&&0===r.code&&r.data&&r.data.list)){a.next=10;break}t.activeOptions=r.data.list,a.next=16;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=16;break;case 15:t.$message.warning(r.message);case 16:a.next=19;break;case 18:t.activeOptions=[];case 19:t.selectLoading=!1;case 20:case"end":return a.stop()}}),a)})))()}}},a("166d"),u=a("2877"),d=Object(u.a)(c,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"relationQuery pagePadding"},[a("div",{staticStyle:{"min-width":"1260px"}},[a("div",{staticStyle:{padding:"5px 0 10px 0"}},[a("el-row",{staticStyle:{padding:"0 0 0px 0"},attrs:{gutter:10}},[a("el-col",{staticStyle:{width:"170px"},attrs:{span:6}},[a("el-select",{attrs:{size:e.searchSize,placeholder:"查询依据"},on:{change:e.typeChange},model:{value:e.parmValue.type,callback:function(t){e.$set(e.parmValue,"type",t)},expression:"parmValue.type"}},e._l(e.queryBasisList,(function(e){return a("el-option",{key:e.code,attrs:{label:e.name,value:e.code}})})),1)],1),a("el-col",{staticStyle:{width:"470px"},attrs:{span:6}},[a("el-select",{staticClass:"setWidth",staticStyle:{width:"100%"},attrs:{multiple:"",filterable:"",size:e.searchSize,remote:"","multiple-limit":1,"reserve-keyword":"",placeholder:"请输入公司名称","remote-method":e.remoteMethod,loading:e.selectLoading},model:{value:e.code,callback:function(t){e.code=t},expression:"code"}},e._l(e.activeOptions,(function(e){return a("el-option",{key:e.companyNo,attrs:{label:e.companyName,value:e.companyNo}})})),1)],1),a("el-col",{staticStyle:{width:"400px"},attrs:{span:6}},[a("el-input",{staticClass:"input-with-select",attrs:{placeholder:"请输入编码",size:e.searchSize},model:{value:e.parmValue.codeNo,callback:function(t){e.$set(e.parmValue,"codeNo",t)},expression:"parmValue.codeNo"}},[a("el-select",{staticStyle:{width:"120px"},attrs:{slot:"prepend",disabled:"",size:e.searchSize,placeholder:"请选择"},on:{change:function(t){e.parmValue.page=1,e.searchList()}},slot:"prepend",model:{value:e.parmValue.type,callback:function(t){e.$set(e.parmValue,"type",t)},expression:"parmValue.type"}},e._l(e.queryBasisList,(function(e){return a("el-option",{key:e.code,attrs:{label:e.name+"编码",value:e.code}})})),1)],1)],1),a("el-col",{staticStyle:{float:"right",width:"226px","text-align":"right"},attrs:{span:6}},[a("el-button",{attrs:{size:e.searchSize,type:"primary",icon:"el-icon-search"},on:{click:e.searchList}}),e.powers.some((function(e){return"024"==e}))?a("el-button",{attrs:{type:"warning",size:e.searchSize},on:{click:e.restSearch}},[e._v(" 重置 ")]):e._e(),e.powers.some((function(e){return"002"==e}))?a("el-button",{staticStyle:{"margin-left":"10px"},attrs:{size:e.searchSize,type:"primary"},on:{click:e.searchList}},[e._v(" 刷新 ")]):e._e()],1)],1)],1),a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[e.active&&0<e.active.length?a("div",[a("el-row",{staticClass:"header-j",attrs:{gutter:20}},e._l(e.active,(function(t,r){return a("el-col",{key:t,class:{width1:1!==r,width2:1===r},attrs:{span:8}},[a("head-template",{attrs:{title:"capital"===t?"资金":"order"===t?"确认单":"发票",dashdIndex:r,type:e.parmValue.type}})],1)})),1),e.tableData&&0<e.tableData.length?a("div",{staticClass:"body-main"},e._l(e.tableData,(function(t,r){return a("div",{key:t+r,staticClass:"body-page-main"},[a("el-row",{staticClass:"body-page",attrs:{gutter:20}},e._l(e.active,(function(r,n){return a("el-col",{key:r+n,staticClass:"body-page-item",class:{width1:1!==n,width2:1===n},attrs:{span:8}},[a("item-template",{attrs:{list:t[r].list,headIndex:n,type:e.parmValue.type}}),1===n||t[r].btn?e._e():a("el-tooltip",{attrs:{effect:"dark",content:"核销记录",placement:"top"}},[1===n||t[r].btn?e._e():a("div",{staticClass:"btn",class:{right:0===n,left:2===n},on:{click:function(a){return e.openModal(t[e.active[1]].No,t[e.active[1]].list[0].code,e.active[1],r)}}},[a("i",0===n?{staticClass:"el-icon-d-arrow-left"}:{staticClass:"el-icon-d-arrow-right"})])]),1!==n&&t[r].btn?a("div",{staticClass:"btn dis",class:{right:0===n,left:2===n}},[a("i",0===n?{staticClass:"el-icon-d-arrow-left"}:{staticClass:"el-icon-d-arrow-right"})]):e._e()],1)})),1)],1)})),0):a("div",{staticClass:"body-main"},[a("div",{staticClass:"body-page-main"},[a("el-row",{staticClass:"body-page",attrs:{gutter:20}},e._l(3,(function(t){return a("el-col",{key:t,staticClass:"body-page-item",class:{width2:2===t,width1:2!==t},attrs:{span:8}},[a("div",{staticClass:"nodate"},[e._v("暂无数据")])])})),1)],1)])],1):a("div",{staticClass:"myCard"},[e._m(0)])]),a("div",{directives:[{name:"show",rawName:"v-show",value:0<e.count,expression:"count > 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),a("add-edit",{attrs:{id:e.modelId,"show-model":e.showModel,No:e.No,"is-detail":e.isDetail},on:{refresh:e.searchList,cancel:function(t){e.showModel=!1}}})],1)])}),[function(){var e=this.$createElement;e=this._self._c||e;return e("div",{staticClass:"excelUploadBox"},[e("i",{staticClass:"el-icon-receiving"}),e("span",{staticClass:"boxM"},[this._v("请选择查询依据!")])])}],!1,null,"21d7c217",null);t.default=d.exports},1180:function(e,t,a){"use strict";a("ec38")},1195:function(e,t,a){"use strict";a.r(t);var r=a("1da1"),n=(a("d3b7"),a("159b"),a("e9c4"),a("96cf"),a("3ef2")),i={name:"orderRecord",props:["id","newTime","payNo","companyNo"],mixins:[a("9f53").a],data:function(){return{loading:!1,feedbackForm:{id:this.id,status:"3",companyNo:""},options:[],feedbacksThis:this.feedbacks,feedbacks:{companyNo:[{required:!0,message:"请选择财务信息",trigger:"change"}]}}},watch:{newTime:function(e,t){e!==t&&this.initForm()}},mounted:function(){this.initForm()},methods:{initForm:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,t.next=3,e.initData();case 3:return e.loading=!0,e.feedbacksThis=e.feedbacks,t.next=8,e.resetForm();case 8:e.loading=!1;case 9:case"end":return t.stop()}}),t)})))()},resetForm:function(){var e=this;return Object(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.feedbackForm&&(e.$refs.feedbackForm.resetFields(),e.$refs.feedbackForm.clearValidate(),e.feedbackForm={id:e.id,status:"3",companyNo:""})}));case 2:case"end":return t.stop()}}),t)})))()},chang:function(e){var t;this.options.forEach((function(a){a.companyNo===e&&(t=a)})),this.feedbackForm.company_name=t.company_name,this.feedbackForm.company_license=t.company_license,this.feedbackForm.bank_name=t.bank_name,this.feedbackForm.bankNo=t.bankNo},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.feedbackForm.validate(function(){var t=Object(r.a)(regeneratorRuntime.mark((function t(a){var r,i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a)return e.loading=!0,r=JSON.parse(JSON.stringify(e.feedbackForm)),r={sid:r.id,payNo:e.payNo,status:r.status,companyNo:r.companyNo},i={},t.next=7,n.a.again(r);t.next=24;break;case 7:if(i=t.sent,e.loading=!1,!i||0!==i.code){t.next=16;break}e.$notify.success({title:"发票信息反馈成功!",message:""}),e.showModelThis=!1,e.$emit("refreshAll"),t.next=22;break;case 16:if(i&&100<=i.code&&i.code<=104)return t.next=19,e.logout();t.next=21;break;case 19:t.next=22;break;case 21:e.$message.warning(i.message);case 22:t.next=26;break;case 24:return t.abrupt("return",!1);case 26:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()},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.options=[],t.next=3,n.a.companyall({});case 3:if(!(a=t.sent)||0!==a.code||!a.data){t.next=8;break}e.options=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.$message.warning(a.message);case 14:case"end":return t.stop()}}),t)})))()}}};a("1180"),a=a("2877"),a=Object(a.a)(i,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-row",[a("el-col",{attrs:{span:24}},[a("el-form",{ref:"feedbackForm",staticClass:"demo-feedbackForm",attrs:{model:e.feedbackForm,rules:e.feedbacksThis,"label-width":"130px"}},[a("el-row",{attrs:{gutter:0}},[a("el-col",{attrs:{span:23}},[a("el-form-item",{attrs:{label:"公司财务信息",prop:"companyNo"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择财务信息"},on:{change:e.chang},model:{value:e.feedbackForm.companyNo,callback:function(t){e.$set(e.feedbackForm,"companyNo",t)},expression:"feedbackForm.companyNo"}},e._l(e.options,(function(t){return a("el-option",{key:t.companyNo,attrs:{label:t.company_name,value:t.companyNo,disabled:"0"==t.status}},[a("span",{staticStyle:{float:"left"}},[e._v(e._s(t.company_name))]),a("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px"}},[e._v(e._s(t.bank_name))])])})),1)],1),e.feedbackForm.companyNo?a("el-col",{attrs:{span:24}},[a("el-row",{attrs:{gutter:0}},[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{size:"mini",label:"单位名称",prop:"company_name"}},[a("el-input",{attrs:{disabled:""},model:{value:e.feedbackForm.company_name,callback:function(t){e.$set(e.feedbackForm,"company_name",t)},expression:"feedbackForm.company_name"}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{size:"mini",label:"纳税人识别号",prop:"company_license"}},[a("el-input",{attrs:{disabled:""},model:{value:e.feedbackForm.company_license,callback:function(t){e.$set(e.feedbackForm,"company_license",t)},expression:"feedbackForm.company_license"}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{size:"mini",label:"银行名称",prop:"bank_name"}},[a("el-input",{attrs:{disabled:""},model:{value:e.feedbackForm.bank_name,callback:function(t){e.$set(e.feedbackForm,"bank_name",t)},expression:"feedbackForm.bank_name"}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{size:"mini",label:"银行卡号",prop:"bankNo"}},[a("el-input",{attrs:{disabled:""},model:{value:e.feedbackForm.bankNo,callback:function(t){e.$set(e.feedbackForm,"bankNo",t)},expression:"feedbackForm.bankNo"}})],1)],1)],1)],1):e._e()],1),a("el-col",{staticStyle:{"text-align":"right"},attrs:{span:23}},[a("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("提 交 ")])],1)],1)],1)],1)],1)}),[],!1,null,"29be38f0",null);t.default=a.exports},1420: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("1b69")),o=function(e,t){return Object(i.a)("Stats/departtj",e,"post",t)},s=a("2f62");n={name:"table",mixins:[a("9f53").a],computed:Object(n.a)(Object(n.a)({},Object(s.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"table"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),data:function(){return{loading:!0,date:"",pickerOptions:{disabledDate:function(e){return e.getTime()>Date.now()}},tableData:[]}},mounted:function(){this.restSearch()},methods:{tableRowClassName:function(e){var t=e.row;e=e.rowIndex;return t&&t.child&&0<t.child.length||0===e?"warning-row":""},transformTime:function(){var e=new Date,t=e.getFullYear(),a=e.getMonth()+1;e=e.getDate();return t+"-"+(a<10?"0"+a:a)+"-"+(e<10?"0"+e:e)},restSearch:function(){this.date=this.transformTime(),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,t.next=3,o({date:e.date||""});case 3:if(!((a=t.sent)&&0===a.code&&a.data&&0<a.data.length)){t.next=9;break}e.tableData=a.data,e.tableData.map((function(e,t){return e.id=t+"",e.p=e.p||e.depart,e.child&&0<e.child.length&&e.child.map((function(t,a){return t.id=""+e+a,t})),e})),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)})))()}}},s=a("2877"),a=Object(s.a)(n,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"table pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?a("div",[a("div",{staticClass:"clear",staticStyle:{padding:"10px 0 12px 0"}},[a("el-date-picker",{staticClass:"fl",staticStyle:{width:"200px"},attrs:{size:"small",align:"right",type:"date",editable:!1,clearable:!1,placeholder:"选择日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","picker-options":e.pickerOptions},on:{change:e.searchList},model:{value:e.date,callback:function(t){e.date=t},expression:"date"}}),e.powers.some((function(e){return"024"==e}))?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):e._e(),e.powers.some((function(e){return"002"==e}))?a("el-col",{staticClass:"fr",staticStyle:{width:"66px"},attrs:{span:4}},[a("el-button",{staticStyle:{float:"right"},attrs:{size:e.searchSize,type:"primary"},on:{click:e.searchList}},[e._v(" 刷新 ")])],1):e._e()],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:e.tableData,border:"","max-height":e.maxHeight,size:"mini","row-key":"id","default-expand-all":"","row-class-name":e.tableRowClassName,"tree-props":{children:"child",hasChildren:"hasChildren"}}},[a("el-table-column",{attrs:{prop:"p",label:"业绩类型",fixed:"left",width:"120"}}),a("el-table-column",{attrs:{label:"本日金额",width:"120",align:"center"}},[a("el-table-column",{attrs:{"show-overflow-tooltip":"",label:"销售",width:"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(e._f("toThousandFilter")(t.row.dtotal)))])]}}],null,!1,2174592860)}),a("el-table-column",{attrs:{"show-overflow-tooltip":"",label:"退款",width:"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(e._f("toThousandFilter")(t.row.thfee)))])]}}],null,!1,2252153184)})],1),a("el-table-column",{attrs:{label:"本周金额",width:"120",align:"center"}},[a("el-table-column",{attrs:{"show-overflow-tooltip":"",label:"销售",width:"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(e._f("toThousandFilter")(t.row.wtotal)))])]}}],null,!1,375533455)}),a("el-table-column",{attrs:{"show-overflow-tooltip":"",label:"退款",width:"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(e._f("toThousandFilter")(t.row.wthfee)))])]}}],null,!1,2331001335)})],1),a("el-table-column",{attrs:{label:"本月金额",width:"120",align:"center"}},[a("el-table-column",{attrs:{"show-overflow-tooltip":"",label:"销售指标",width:"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(e._f("toThousandFilter")(t.row.tips)))])]}}],null,!1,3266069252)}),a("el-table-column",{attrs:{"show-overflow-tooltip":"",label:"销售",width:"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(e._f("toThousandFilter")(t.row.total)))])]}}],null,!1,4205706584)}),a("el-table-column",{attrs:{"show-overflow-tooltip":"",label:"销售完成率",width:"95"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.rate?t.row.rate+"%":""))])]}}],null,!1,3474681101)}),a("el-table-column",{attrs:{"show-overflow-tooltip":"",label:"退款",width:"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(e._f("toThousandFilter")(t.row.mthfee)))])]}}],null,!1,2432827885)}),a("el-table-column",{attrs:{"show-overflow-tooltip":"",label:"净销售",width:"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(e._f("toThousandFilter")(t.row.thtotal)))])]}}],null,!1,4005198660)}),a("el-table-column",{attrs:{"show-overflow-tooltip":"",label:"净销售完成率",width:"95"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.thrate?t.row.thrate+"%":""))])]}}],null,!1,289410189)})],1)],1)],1):a("no-auth")],1)}),[],!1,null,"09a0b36c",null);t.default=a.exports},"14b9":function(e,t,a){"use strict";a.r(t);var r=a("1da1"),n=(a("96cf"),a("cf12")),i={name:"clients",props:["showModel","id","isDetail","No"],mixins:[a("9f53").a],data:function(){return{loading:!1,title:"核销记录",showModelThis:this.showModel,tableData:[],main:"",vice:""}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis:function(e){e||this.$emit("cancel")}},methods:{closeModel:function(){},initForm:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.loading=!0,t.t0=e.isDetail,t.next="1"===t.t0?5:"2"===t.t0?8:"3"===t.t0?11:"4"===t.t0?14:"5"===t.t0?17:"6"===t.t0?20:23;break;case 5:return e.main="确认单",e.vice="发票",t.abrupt("break",23);case 8:return e.main="确认单",e.vice="资金",t.abrupt("break",23);case 11:return e.main="资金",e.vice="确认单",t.abrupt("break",23);case 14:return e.main="发票",e.vice="资金",t.abrupt("break",23);case 17:return e.main="资金",e.vice="发票",t.abrupt("break",23);case 20:return e.main="发票",e.vice="确认单",t.abrupt("break",23);case 23:return t.next=26,e.initData();case 26:e.loading=!1;case 27:case"end":return t.stop()}}),t)})))()},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.tableData=[],t.next=3,n.a.detail({codeNo:e.No!==e.id?e.No:e.id,type:e.isDetail});case 3:if(!(a=t.sent)||0!==a.code){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.$message.warning(a.message);case 14:case"end":return t.stop()}}),t)})))()}}};a("f8e0"),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:"15vh",width:"1024px","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:e.closeModel}},[t("el-card",{staticClass:"add",staticStyle:{"margin-top":"-25px"}},[t("el-table",{staticStyle:{width:"100%"},attrs:{"max-height":"550",stripe:"",size:"mini",data:e.tableData,border:""}},[t("el-table-column",{attrs:{fixed:"left",prop:"id",label:"核销记录编号",width:"100"}}),t("el-table-column",{attrs:{label:e.main+"信息"}},[t("el-table-column",{attrs:{prop:"codeNo",label:"编号",width:"190"}}),t("el-table-column",{attrs:{prop:"total_fee",label:"总额",width:"115"}}),t("el-table-column",{attrs:{prop:"cancel_total",label:"核销金额",width:"115"}}),t("el-table-column",{attrs:{prop:"balance",label:"核销后余额",width:"115"}})],1),t("el-table-column",{attrs:{label:e.vice+"信息"}},[t("el-table-column",{attrs:{prop:"viceNo",label:"编号",width:"190"}}),t("el-table-column",{attrs:{prop:"vice_total",label:"总额",width:"115"}}),t("el-table-column",{attrs:{prop:"cancel_fee",label:"核销金额",width:"115"}}),t("el-table-column",{attrs:{prop:"vice_fee",label:"核销后余额",width:"115"}})],1),t("el-table-column",{attrs:{prop:"addtime",label:"核销时间",width:"145"}})],1)],1)],1)}),[],!1,null,"5264b879",null);t.default=a.exports},"14d7":function(e,t,a){},1529:function(e,t,a){"use strict";var r=a("1da1"),n=(a("d3b7"),a("159b"),a("96cf"),a("ba6c")),i=a("f5ed"),o=a("9f53");i={props:["id","showModel","trade_status","order_status","inv_status","type_check","onces"],mixins:[i.a,o.a],data:function(){return{loading:!1,icon:"",count:0,tableData:[],showModelThis:this.showModel,multipleSelection:[],parmValue:{companyNo:"",order_status:"",trade_status:"",total_low:"",total_up:"",starttime:"",endtime:"",type_check:"",status:"",invNo:"",page:1,size:15}}},watch:{icon:function(e){e&&(this.showModelThis=!1,this.$emit("setVal",e))},showModel:function(e){this.showModelThis=e},showModelThis:function(e){e?this.searchList():this.$emit("cancel")}},methods:{handleSelectionChange:function(e){this.multipleSelection=e},restSearch:function(){this.parmValue.invNo="",this.parmValue.page=1,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.multipleSelection=[],e.loading){t.next=24;break}return e.loading=!0,e.tableData=[],e.parmValue.companyNo=e.id,e.parmValue.type_check=e.type_check,e.parmValue.order_status=e.order_status,e.parmValue.trade_status=e.trade_status,t.next=10,n.a.list(e.parmValue);case 10:if(!((a=t.sent)&&0===a.code&&a.data&&a.data.list)){t.next=16;break}e.tableData=a.data.list,e.count=a.data.count,t.next=23;break;case 16:if(a&&100<=a.code&&a.code<=104)return t.next=19,e.logout();t.next=21;break;case 19:t.next=23;break;case 21:e.tableData=[],e.count=0;case 23:e.loading=!1;case 24:case"end":return t.stop()}}),t)})))()},closeModel:function(){},submitForm: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(a=!0,e.multipleSelection.forEach((function(t){"4"===e.trade_status&&0!==parseInt(t.fund_used)&&(a=!1),"4"===e.order_status&&0!==parseInt(t.order_used)&&(a=!1)})),a){t.next=9;break}if("4"===e.trade_status)return e.$message.warning("部分发票信息:资金处理中的金额不为零!!"),t.abrupt("return");t.next=6;break;case 6:if("4"===e.order_status)return e.$message.warning("部分发票信息:确认单处理中的金额不为零!!"),t.abrupt("return");t.next=9;break;case 9:e.onces&&1<e.multipleSelection.length?e.$message.warning("只能选择一条数据!"):(e.showModelThis=!1,e.$emit("refresh",e.multipleSelection));case 10:case"end":return t.stop()}}),t)})))()}}},o=a("2877"),a=Object(o.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:"7vh",width:"1024px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)","append-to-body":""},on:{"update:visible":function(t){e.showModelThis=t},close:e.closeModel}},[a("el-card",{staticStyle:{height:"700px","margin-top":"-25px"}},[a("el-row",{attrs:{gutter:10}},[a("el-col",{staticStyle:{padding:"0 0 10px 0"},attrs:{span:24}},[a("el-col",{staticStyle:{width:"290px"},attrs:{span:8}},[a("el-input",{attrs:{placeholder:"请输入发票编号"},model:{value:e.parmValue.invNo,callback:function(t){e.$set(e.parmValue,"invNo",t)},expression:"parmValue.invNo"}},[a("el-button",{attrs:{slot:"append",icon:"el-icon-search"},on:{click:e.searchList},slot:"append"})],1)],1),a("el-col",{staticClass:"fr tr",staticStyle:{width:"160px"},attrs:{span:4}},[a("el-button",{attrs:{type:"primary"},on:{click:e.searchList}},[e._v(" 刷新 ")]),a("el-button",{attrs:{type:"warning"},on:{click:e.restSearch}},[e._v(" 重置 ")])],1)],1),a("el-col",{attrs:{span:24}},[a("el-table",{ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:e.tableData,stripe:"",border:"",size:"mini","max-height":"610","row-key":"id","expand-row-keys":e.expands},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"45",fixed:"left",align:"center"}}),a("el-table-column",{attrs:{prop:"invNo",label:"发票编号","show-overflow-tooltip":"",width:"170"}}),a("el-table-column",{attrs:{prop:"inv_in",label:"企业编码","show-overflow-tooltip":"","min-width":"130"}}),a("el-table-column",{attrs:{prop:"company",label:"企业名称","show-overflow-tooltip":"","min-width":"170"}}),a("el-table-column",{attrs:{prop:"apply_name",label:"处理人","show-overflow-tooltip":"","min-width":"70"}}),a("el-table-column",{attrs:{prop:"inv_value",label:"发票额度","show-overflow-tooltip":"","min-width":"110"}}),a("el-table-column",{attrs:{label:"关联资金信息","show-overflow-tooltip":"",align:"center"}},[a("el-table-column",{attrs:{prop:"atrade_fee",label:"已核销金额","show-overflow-tooltip":"","min-width":"110"}}),a("el-table-column",{attrs:{prop:"fund_used",label:"处理中的金额","show-overflow-tooltip":"","min-width":"110"}}),a("el-table-column",{attrs:{prop:"wtrade_fee",label:"未核销金额","show-overflow-tooltip":"","min-width":"110"}}),a("el-table-column",{attrs:{label:"核销状态","show-overflow-tooltip":"","min-width":"95"},scopedSlots:e._u([{key:"default",fn:function(t){return["1"===t.row.trade_status?a("el-tag",{attrs:{type:"danger",size:"mini"}},[e._v("未核销")]):"2"===t.row.trade_status?a("el-tag",{attrs:{type:"warning",size:"mini"}},[e._v("部分核销")]):a("el-tag",{attrs:{type:"",size:"mini"}},[e._v("全部核销")])]}}])})],1),a("el-table-column",{attrs:{label:"关联确认单信息","show-overflow-tooltip":"",align:"center"}},[a("el-table-column",{attrs:{prop:"aorder_fee",label:"已核销金额","show-overflow-tooltip":"","min-width":"110"}}),a("el-table-column",{attrs:{prop:"order_used",label:"处理中的金额","show-overflow-tooltip":"","min-width":"110"}}),a("el-table-column",{attrs:{prop:"worder_fee",label:"未核销金额","show-overflow-tooltip":"","min-width":"110"}}),a("el-table-column",{attrs:{label:"核销状态","show-overflow-tooltip":"","min-width":"95"},scopedSlots:e._u([{key:"default",fn:function(t){return["1"===t.row.order_status?a("el-tag",{attrs:{type:"danger",size:"mini"}},[e._v("未核销")]):"2"===t.row.order_status?a("el-tag",{attrs:{type:"warning",size:"mini"}},[e._v("部分核销")]):a("el-tag",{attrs:{type:"",size:"mini"}},[e._v("全部核销")])]}}])})],1),a("el-table-column",{attrs:{prop:"addtime",label:"创建时间","show-overflow-tooltip":"",width:"150"}})],1)],1),a("el-col",{attrs:{span:24}},[a("el-row",[a("el-col",{attrs:{span:18}},[a("div",{staticClass:"Pagination",staticStyle:{"text-align":"center","margin-top":"12px"}},[a("el-pagination",{attrs:{"current-page":e.parmValue.page,"page-size":e.parmValue.size,size:e.searchSize,layout:"total, prev, pager, next, jumper",total:e.count},on:{"size-change":e.handleSizeChange,"current-change":e.handlePageChange}})],1)]),a("el-col",{staticStyle:{"text-align":"right"},attrs:{span:6}},[a("div",{staticStyle:{"margin-top":"12px"}},[a("el-button",{attrs:{type:"primary",size:"medium"},on:{click:e.submitForm}},[e._v("保 存 ")]),a("el-button",{attrs:{size:"medium"},on:{click:function(t){e.showModelThis=!1}}},[e._v(e._s(e.isDetail?"关 闭":"取 消"))])],1)])],1)],1)],1)],1)],1)}),[],!1,null,null,null);t.a=a.exports},"15a6":function(e,t,a){"use strict";a("67b3")},"166d":function(e,t,a){"use strict";a("4288")},1735:function(e,t,a){"use strict";a("c5b5")},"17d7":function(e,t,a){"use strict";var r=a("1da1"),n=(a("d3b7"),a("159b"),a("96cf"),a("6c0a")),i=a("f5ed"),o=a("9f53");i={props:["id","showModel","trade_status","order_status","inv_status","type_check","onces","status"],mixins:[i.a,o.a],data:function(){return{loading:!1,icon:"",count:0,tableData:[],showModelThis:this.showModel,multipleSelection:[],parmValue:{companyNo:"",total_low:"",total_up:"",inv_status:"",order_status:"",traNo:"",status:"",page:1,size:15}}},watch:{icon:function(e){e&&(this.showModelThis=!1,this.$emit("setVal",e))},showModel:function(e){this.showModelThis=e},showModelThis:function(e){e?this.searchList():this.$emit("cancel")}},methods:{handleSelectionChange:function(e){this.multipleSelection=e},restSearch:function(){this.parmValue.traNo="",this.parmValue.page=1,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.multipleSelection=[],e.loading){t.next=25;break}return e.loading=!0,e.tableData=[],e.parmValue.companyNo=e.id,e.parmValue.type_check=e.type_check,e.parmValue.order_status=e.order_status,e.parmValue.inv_status=e.inv_status,e.parmValue.status=e.status||"",t.next=11,n.a.list(e.parmValue);case 11:if(!((a=t.sent)&&0===a.code&&a.data&&a.data.list)){t.next=17;break}e.tableData=a.data.list,e.count=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.count=0;case 24:e.loading=!1;case 25:case"end":return t.stop()}}),t)})))()},closeModel:function(){},submitForm: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(a=!0,e.multipleSelection.forEach((function(t){"4"===e.inv_status&&0!==parseInt(t.inv_used)&&(a=!1),"4"===e.order_status&&0!==parseInt(t.order_used)&&(a=!1)})),a){t.next=9;break}if("4"===e.inv_status)return e.$message.warning("部分资金信息:发票处理中的金额不为零!!"),t.abrupt("return");t.next=6;break;case 6:if("4"===e.order_status)return e.$message.warning("部分资金信息:确认单处理中的金额不为零!!"),t.abrupt("return");t.next=9;break;case 9:e.onces&&1<e.multipleSelection.length?e.$message.warning("只能选择一条数据!"):(e.showModelThis=!1,e.$emit("refresh",e.multipleSelection));case 10:case"end":return t.stop()}}),t)})))()}}},o=a("2877"),a=Object(o.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:"7vh",width:"1024px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)","append-to-body":""},on:{"update:visible":function(t){e.showModelThis=t},close:e.closeModel}},[a("el-card",{staticStyle:{height:"700px","margin-top":"-25px"}},[a("el-row",{attrs:{gutter:10}},[a("el-col",{staticStyle:{padding:"0 0 10px 0"},attrs:{span:24}},[a("el-col",{staticStyle:{width:"290px"},attrs:{span:8}},[a("el-input",{attrs:{placeholder:"请输入资金编号"},model:{value:e.parmValue.traNo,callback:function(t){e.$set(e.parmValue,"traNo",t)},expression:"parmValue.traNo"}},[a("el-button",{attrs:{slot:"append",icon:"el-icon-search"},on:{click:e.searchList},slot:"append"})],1)],1),a("el-col",{staticClass:"fr tr",staticStyle:{width:"160px"},attrs:{span:4}},[a("el-button",{attrs:{type:"primary"},on:{click:e.searchList}},[e._v(" 刷新 ")]),a("el-button",{attrs:{type:"warning"},on:{click:e.restSearch}},[e._v(" 重置 ")])],1)],1),a("el-col",{attrs:{span:24}},[a("el-table",{ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:e.tableData,stripe:"",border:"",size:"mini","max-height":"610","row-key":"id","expand-row-keys":e.expands},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"45",fixed:"left",align:"center"}}),a("el-table-column",{attrs:{prop:"traNo",label:"资金编号","show-overflow-tooltip":"",width:"270"}}),a("el-table-column",{attrs:{prop:"companyNo",label:"认领企业编号","show-overflow-tooltip":"",width:"130"}}),a("el-table-column",{attrs:{prop:"customer",label:"认领企业名称","show-overflow-tooltip":"","min-width":"170"}}),a("el-table-column",{attrs:{prop:"trade_out",label:"付款方","show-overflow-tooltip":"","min-width":"170"}}),a("el-table-column",{attrs:{prop:"trade_used",label:"付款备注","show-overflow-tooltip":"",width:"270"}}),a("el-table-column",{attrs:{prop:"total_fee",label:"资金总额度","show-overflow-tooltip":"","min-width":"110"}}),a("el-table-column",{attrs:{label:"关联发票信息","show-overflow-tooltip":"",align:"center"}},[a("el-table-column",{attrs:{prop:"inv_fee",label:"已核销金额","show-overflow-tooltip":"","min-width":"110"}}),a("el-table-column",{attrs:{prop:"inv_used",label:"处理中的金额","show-overflow-tooltip":"","min-width":"110"}}),a("el-table-column",{attrs:{prop:"winv_fee",label:"未核销金额","show-overflow-tooltip":"","min-width":"110"}}),a("el-table-column",{attrs:{label:"核销状态","show-overflow-tooltip":"","min-width":"95"},scopedSlots:e._u([{key:"default",fn:function(t){return["1"===t.row.inv_status?a("el-tag",{attrs:{type:"danger",size:"mini"}},[e._v("未核销")]):"2"===t.row.inv_status?a("el-tag",{attrs:{type:"warning",size:"mini"}},[e._v("部分核销")]):a("el-tag",{attrs:{type:"",size:"mini"}},[e._v("全部核销")])]}}])})],1),a("el-table-column",{attrs:{label:"关联确认单信息","show-overflow-tooltip":"",align:"center"}},[a("el-table-column",{attrs:{prop:"order_fee",label:"已核销金额","show-overflow-tooltip":"","min-width":"110"}}),a("el-table-column",{attrs:{prop:"order_used",label:"处理中的金额","show-overflow-tooltip":"","min-width":"110"}}),a("el-table-column",{attrs:{prop:"worder_fee",label:"未核销金额","show-overflow-tooltip":"","min-width":"110"}}),a("el-table-column",{attrs:{label:"核销状态","show-overflow-tooltip":"","min-width":"95"},scopedSlots:e._u([{key:"default",fn:function(t){return["1"===t.row.order_status?a("el-tag",{attrs:{type:"danger",size:"mini"}},[e._v("未核销")]):"2"===t.row.order_status?a("el-tag",{attrs:{type:"warning",size:"mini"}},[e._v("部分核销")]):a("el-tag",{attrs:{type:"",size:"mini"}},[e._v("全部核销")])]}}])})],1),a("el-table-column",{attrs:{prop:"addtime",label:"创建时间","show-overflow-tooltip":"",width:"150"}})],1)],1),a("el-col",{attrs:{span:24}},[a("el-row",[a("el-col",{attrs:{span:18}},[a("div",{staticClass:"Pagination",staticStyle:{"text-align":"center","margin-top":"12px"}},[a("el-pagination",{attrs:{"current-page":e.parmValue.page,"page-size":e.parmValue.size,size:e.searchSize,layout:"total, prev, pager, next, jumper",total:e.count},on:{"size-change":e.handleSizeChange,"current-change":e.handlePageChange}})],1)]),a("el-col",{staticStyle:{"text-align":"right"},attrs:{span:6}},[a("div",{staticStyle:{"margin-top":"12px"}},[a("el-button",{attrs:{type:"primary",size:"medium"},on:{click:e.submitForm}},[e._v("保 存 ")]),a("el-button",{attrs:{size:"medium"},on:{click:function(t){e.showModelThis=!1}}},[e._v(e._s(e.isDetail?"关 闭":"取 消"))])],1)])],1)],1)],1)],1)],1)}),[],!1,null,null,null);t.a=a.exports},1842:function(e,t,a){"use strict";a.r(t);var r=a("1da1"),n=(a("e9c4"),a("96cf"),a("1fd2")),i=a("61f7"),o={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.b)(t)||t.length<6||16<t.length?a(new Error("新密码为6-16位数字字母组合!")):Object(i.i)(t)?a(new Error("新密码不能为纯数字!")):Object(i.o)(t)?a(new Error("新密码不能为纯字母!")):a()}}],confirmPassword:[{required:!0,trigger:"blur",validator:function(t,a,r){""===a?r(new Error("确认密码不能为空!")):e.ruleForm.password!==a?r(new Error("确认密码与新密码不一致!")):r()}}]}}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis:function(e){e||this.$emit("cancel")}},methods:{closeModel:function(){},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.rulesThis=e.rules,t.next=3,e.resetForm();case 3: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:e.id,password:"",confirmPassword:""})}));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;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a)return e.loading=!0,r=JSON.parse(JSON.stringify(e.ruleForm)),t.next=5,n.a.setpwd(r);t.next=21;break;case 5:if(i=t.sent,e.loading=!1,!i||0!==i.code){t.next=13;break}e.$notify.success({title:"密码修改成功!",message:""}),e.showModelThis=!1,e.$emit("refresh"),t.next=19;break;case 13:if(i&&100<=i.code&&i.code<=104)return t.next=16,e.logout();t.next=18;break;case 16:t.next=19;break;case 18:e.$message.warning(i.message);case 19:t.next=23;break;case 21:return t.abrupt("return",!1);case 23:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()}}};a("8924"),a=a("2877"),a=Object(a.a)(o,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:e.title,center:!0,align:"left",top:"5vh",width:"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:e.closeModel}},[t("el-card",[t("el-row",{attrs:{gutter:10}},[t("el-col",{attrs:{span:24}},[t("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",rules:e.rulesThis,"label-width":"110px"}},[t("el-form-item",{attrs:{prop:"password",label:"新密码:"}},[t("el-input",{ref:"password",attrs:{placeholder:"新密码",name:"password",type:"password",tabindex:"1",autocomplete:"on"},model:{value:e.ruleForm.password,callback:function(t){e.$set(e.ruleForm,"password",t)},expression:"ruleForm.password"}})],1),t("el-form-item",{attrs:{prop:"confirmPassword",label:"确认密码:"}},[t("el-input",{ref:"confirmPassword",attrs:{placeholder:"确认密码",name:"confirmPassword",type:"password",tabindex:"1",autocomplete:"on"},model:{value:e.ruleForm.confirmPassword,callback:function(t){e.$set(e.ruleForm,"confirmPassword",t)},expression:"ruleForm.confirmPassword"}})],1)],1)],1),t("el-col",{staticStyle:{"text-align":"right"},attrs:{span:24}},[t("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("保 存 ")]),t("el-button",{on:{click:function(t){e.showModelThis=!1}}},[e._v(e._s(e.isDetail?"关 闭":"取 消"))])],1)],1)],1)],1)}),[],!1,null,"309c39e1",null);t.default=a.exports},"18bc":function(e,t,a){},"191e":function(e,t,a){},"1c20":function(e,t,a){"use strict";a.r(t);var r=a("1da1"),n=a("5530"),i=(a("96cf"),a("7db0"),a("d3b7"),a("159b"),a("a9e3"),a("f5ed")),o=a("f70e"),s=a("3264"),l=a("2f62"),c=a("5daa"),u=a("9f53");s={name:"Account",components:{ExTable:s.default},mixins:[i.a,u.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"standBook"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),data:function(){return{fileUrl:c.a.testURL,statusOptions:[{id:"0",label:"待申请",type:"info"},{id:"1",label:"系统处理中",type:"warning"},{id:"2",label:"已完成",type:"success"},{id:"3",label:"导出失败",type:"danger"}],loading:!0,showModel:!1,sitem:null,parmValue:{page:1,size:15},tableData:[],table:{stripe:!0,border:!0,_defaultHeader_:["setcol"]},pageInfo:{size:15,curr:1,total:0},columns:[{prop:"name",label:"业务表名称","min-width":"145px"},{prop:"status",label:"状态",_slot_:"status","min-width":"100px"},{prop:"remark",label:"下载反馈备注","min-width":"145px"},{prop:"expiretime",label:"文件过期时间",width:"145px"},{prop:"updatetime",label:"更新时间",width:"145px"},{prop:"addtime",label:"创建时间",width:"145px"},{prop:"",label:"操作",fixed:"right",width:"80px",_slot_:"operation"}]}},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))},setStatus:function(e){var t=this;return Object(r.a)(regeneratorRuntime.mark((function a(){var r,n;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(t.loading){a.next=19;break}return t.loading=!0,r={id:e},a.next=5,o.a.download(r);case 5:if((n=a.sent)&&0===n.code)return t.$notify.success({title:"申请成功,请等待系统执行完成!",message:""}),a.next=10,t.searchList();a.next=12;break;case 10:a.next=18;break;case 12:if(n&&100<=n.code&&n.code<=104)return a.next=15,t.logout();a.next=17;break;case 15:a.next=18;break;case 17:t.$message.warning(n.message);case 18:t.loading=!1;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,o.a.hlist(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(e){"3"!==e.status&&(e.remark="")})),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)})))()}}},a("e38f"),i=a("2877"),u=Object(i.a)(s,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"pre-export"},[a("ex-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{"margin-top":"-10px"},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:"355px"},attrs:{span:12}},[a("el-alert",{attrs:{closable:!1,title:"申请导出后,文件会在几分钟后生成!",type:"warning"}})],1),e.powers.some((function(e){return"002"==e}))?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):e._e()],1)],1)],1)]}},{key:"status",fn:function(t){var r=t.scope;return[a("el-tag",{attrs:{size:e.tablebtnSize,type:(e.statusOptions.find((function(e){return e.id==r.row.status}))||{}).type||""},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"049"==e}))&&"1"!==r.row.status?a("el-tooltip",{attrs:{effect:"dark",content:"申请导出",placement:"top"}},[a("i",{staticClass:"el-icon-thumb tb-icon",on:{click:function(t){return e.setStatus(r.row.id)}}})]):e._e(),e.powers.some((function(e){return"049"==e}))&&"2"==r.row.status?a("el-tooltip",{attrs:{effect:"dark",content:"导出",placement:"top"}},[a("i",{staticClass:"el-icon-download tb-icon",on:{click:function(t){return e.batchExport(r.row.down_url)}}})]):e._e()]}}])})],1)}),[],!1,null,"74b27e65",null);t.default=u.exports},"1c81":function(e,t,a){"use strict";var r=a("1b69"),n="Admin/";t.a={add:function(e,t){return Object(r.a)(n+"companyadd",e,"post",t)},detail:function(e,t){return Object(r.a)(n+"companyinfo",e,"post",t)},status:function(e,t){return Object(r.a)(n+"companystatus",e,"post",t)},list:function(e,t){return Object(r.a)(n+"companylist",e,"post",t)},update:function(e,t){return Object(r.a)(n+"companysave",e,"post",t)}}},"1caa":function(e,t,a){"use strict";a.r(t);var r=a("2909"),n=a("1da1"),i=a("5530"),o=(a("96cf"),a("7db0"),a("d3b7"),a("a15b"),a("e9c4"),a("d81d"),a("ac1f"),a("1276"),a("a9e3"),a("99af"),a("159b"),a("25f0"),a("b0c0"),a("3ca3"),a("ddb0"),a("3264")),s=a("9403"),l=a("ac3e"),c=a("f5ed"),u=a("2f62"),d=a("db30"),p=a("7d27"),m=a("9f53"),f=a("d20f");c={name:"relation",mixins:[c.a,m.a],components:{ExTable:o.default,addView:s.default,PeriodDatePicker:p.a},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"relation"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),data:function(){return{selectList:[{code:"1",name:"确认单号"},{code:"2",name:"发票单号"},{code:"3",name:"资金单号"}],newTime:0,code:[],relationType:d.j,RQList:d.a,selectLoading:!1,activeOptions:[],name:"",contector:"",loading:!0,showModel:!1,isDetail:!1,modelId:0,parmValue:{companyNo:"",type:"",status:"",start:"",end:"",codeType:"1",codeNo:"",page:1,size:15},tableData:[],table:{stripe:!0,border:!0,_defaultHeader_:["setcol"]},pageInfo:{size:15,curr:1,total:0},columns:[{type:"selection",fixed:"left",_noset_:!0},{prop:"id",label:"ID",fixed:"left",width:"70px"},{prop:"companyNo",label:"公司编码",width:"130px"},{prop:"companyName",label:"公司名称","min-width":"230px"},{prop:"cancel_total",label:"核销额度",width:"120px"},{prop:"rela_form",label:"关联类型",_slot_:"rela_form",width:"120px"},{prop:"orderNo",label:"订单编号",width:"180px",_slot_:"orderNo"},{prop:"traNo",label:"资金编号",width:"250px",_slot_:"traNo"},{prop:"invNo",label:"发票编号",width:"200px",_slot_:"invNo"},{prop:"status",label:"状态",_slot_:"status",width:"110px"},{prop:"addtime",label:"创建时间",sortable:!0,width:"145px"},{prop:"",label:"操作",width:"120px",fixed:"right",_noset_:!0,_slot_:"operation"}]}},mounted:function(){this.showModel=!1,this.searchList()},methods:{restSearch:function(){this.pageInfo={size:15,curr:1,total:0},this.parmValue={companyNo:"",type:"",status:"",start:"",end:"",codeType:"1",codeNo:"",page:1,size:15},this.searchList()},openModal:function(e,t){this.showModel=!0,this.changea(),this.modelId=e,this.isDetail=t},changeStatus:function(e){var t=this;return Object(n.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(n.a)(regeneratorRuntime.mark((function a(){var r;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,l.a.delete({id:e});case 2:if(!(r=a.sent)||0!==r.code){a.next=8;break}t.$notify.success({title:"取消申请成功",message:""}),t.searchList(),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)})))).catch((function(){}));case 2:case"end":return a.stop()}}),a)})))()},timeReturned:function(e){var t=this;return Object(n.a)(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(""!==e.startTime?t.parmValue.start=e.startTime:t.parmValue.start="",""!==e.endTime?t.parmValue.end=e.endTime:t.parmValue.end="",""!==t.parmValue.start&&""!==t.parmValue.end)return t.parmValue.page=1,a.next=6,t.searchList();a.next=6;break;case 6:case"end":return a.stop()}}),a)})))()},searchList:function(){var e=this;return Object(n.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,e.parmValue.companyNo=e.code.join(","),a=JSON.parse(JSON.stringify(e.parmValue)),t.next=5,l.a.list(a);case 5:if(!(r=t.sent)||0!==r.code||!r.data){t.next=13;break}e.tableData=r.data.list,e.tableData.map((function(e){var t=e.orderNo.split(",");e.orderNo=t[0],e.orderNo_length=t.length,e.orderNo_showMain=t,t=e.traNo.split(","),e.traNo=t[0],e.traNo_length=t.length,e.traNo_showMain=t,t=e.invNo.split(",");return e.invNo=t[0],e.invNo_length=t.length,e.invNo_showMain=t,e})),e.pageInfo.total=Number(r.data.count),t.next=20;break;case 13:if(r&&100<=r.code&&r.code<=104)return t.next=16,e.logout();t.next=18;break;case 16:t.next=20;break;case 18:e.tableData=[],e.pageInfo.total=0;case 20:e.loading=!1;case 21:case"end":return t.stop()}}),t)})))()},batchExport:function(e){var t,n,i=this;this.loading||(0==e.length?this.$message.warning("请至少选择一条数据!"):(this.loading=!0,t=(t=[]).concat.apply(t,Object(r.a)(e)),n=[],t.forEach((function(e){var t=Object.assign({},e);t.orderNo=t.orderNo_showMain.toString(),t.traNo=t.traNo_showMain.toString(),t.invNo=t.invNo_showMain.toString(),t.rela_form=(i.RQList.find((function(t){return t.code==e.rela_form}))||{}).name||"--",t.status=(i.relationType.find((function(t){return t.code==e.status}))||{}).name||"--",n.push(t)})),Promise.all([a.e("chunk-10eafd66"),a.e("chunk-2d0cc0b6")]).then(a.bind(null,"4bf8")).then((function(e){var t=Object(f.a)(["id","companyNo","companyName","cancel_total","rela_form","orderNo","traNo","invNo","status","addtime"],n);e.export_json_to_excel({header:["ID","公司编码","公司名称","核销额度","关联类型","订单编号","资金编号","发票编号","状态","创建时间"],data:t,filename:"".concat("单款票确认数据批量导出")}),i.$message.success("单款票确认数据导出成功!"),setTimeout((function(){i.loading=!1}),500)}))))},remoteMethod:function(e){var t=this;return Object(n.a)(regeneratorRuntime.mark((function a(){var r;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(t.selectLoading=!0,""!==e)return t.activeOptions=[],a.next=5,l.a.clist({page:1,size:100,company:e});a.next=18;break;case 5:if(!((r=a.sent)&&0===r.code&&r.data&&r.data.list)){a.next=10;break}t.activeOptions=r.data.list,a.next=16;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=16;break;case 15:t.$message.warning(r.message);case 16:a.next=19;break;case 18:t.activeOptions=[];case 19:t.selectLoading=!1;case 20:case"end":return a.stop()}}),a)})))()},changea:function(){this.newTime=(new Date).valueOf()}}},a("2bd2"),m=a("2877"),o=Object(m.a)(c,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"relation pagePadding"},[a("add-view",{attrs:{id:e.modelId,showModel:e.showModel,"is-detail":e.isDetail,newTime:e.newTime},on:{refresh:function(t){e.showModel=!1,e.searchList()},cancel:function(t){e.showModel=!1}}}),e.powers&&0<e.powers.length&&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){var r=t.selection;return[a("div",{staticStyle:{width:"100%"}},[a("el-row",{staticStyle:{padding:"0 0 10px 80px"},attrs:{gutter:10}},[a("el-col",{staticStyle:{width:"180px"},attrs:{span:7}},[a("el-select",{staticStyle:{width:"100%"},attrs:{size:e.searchSize,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.RQList,(function(e){return a("el-option",{key:e.code,attrs:{label:e.name,value:e.code}})})),1)],1),a("el-col",{staticStyle:{width:"170px"},attrs:{span:7}},[a("el-select",{staticStyle:{width:"100%"},attrs:{size:e.searchSize,clearable:"",placeholder:"关联状态"},on:{change:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.parmValue.status,callback:function(t){e.$set(e.parmValue,"status",t)},expression:"parmValue.status"}},e._l(e.relationType,(function(e){return a("el-option",{key:e.code,attrs:{label:e.name,value:e.code}})})),1)],1),a("el-col",{staticStyle:{width:"320px"},attrs:{span:6}},[a("period-date-picker",{attrs:{start:e.parmValue.start,end:e.parmValue.end,type:1,width:"144px",size:e.searchSize},on:{timeReturned:function(t){return e.timeReturned(t)}}})],1),a("el-col",{staticClass:"fr",staticStyle:{width:"66px"},attrs:{span:4}},[e.powers.some((function(e){return"002"==e}))?a("el-button",{staticClass:"fr",attrs:{size:e.searchSize,type:"primary"},on:{click:e.searchList}},[e._v(" 刷新 ")]):e._e()],1),a("el-col",{staticClass:"fr",staticStyle:{width:"66px"},attrs:{span:4}},[e.powers.some((function(e){return"024"==e}))?a("el-button",{attrs:{type:"warning",size:e.searchSize},on:{click:e.restSearch}},[e._v(" 重置 ")]):e._e()],1),a("el-col",{staticClass:"fr",staticStyle:{width:"56px"},attrs:{span:4}},[a("el-button",{attrs:{size:e.searchSize,type:"primary",icon:"el-icon-search"},on:{click:e.searchList}})],1)],1),a("el-row",{attrs:{gutter:10}},[a("el-col",{staticStyle:{width:"430px"},attrs:{span:6}},[a("el-select",{staticClass:"setWidth",staticStyle:{width:"100%"},attrs:{multiple:"",filterable:"",size:e.searchSize,remote:"","multiple-limit":1,"reserve-keyword":"",placeholder:"请输入公司名称","remote-method":e.remoteMethod,loading:e.selectLoading},model:{value:e.code,callback:function(t){e.code=t},expression:"code"}},e._l(e.activeOptions,(function(e){return a("el-option",{key:e.companyNo,attrs:{label:e.companyName,value:e.companyNo}})})),1)],1),a("el-col",{staticStyle:{width:"330px"},attrs:{span:4}},[a("el-input",{staticClass:"input-with-select",attrs:{placeholder:"请输入编号",size:e.searchSize},model:{value:e.parmValue.codeNo,callback:function(t){e.$set(e.parmValue,"codeNo",t)},expression:"parmValue.codeNo"}},[a("el-select",{staticStyle:{width:"105px"},attrs:{slot:"prepend",size:e.searchSize},slot:"prepend",model:{value:e.parmValue.codeType,callback:function(t){e.$set(e.parmValue,"codeType",t)},expression:"parmValue.codeType"}},e._l(e.selectList,(function(e,t){return a("el-option",{key:e.code+t,attrs:{label:e.name,value:e.code}})})),1)],1)],1),a("el-col",{staticStyle:{width:"88px",float:"right"},attrs:{span:4}},[a("el-button",{staticClass:"fr",attrs:{type:"primary",size:e.searchSize,disabled:e.loading},on:{click:function(t){return e.batchExport(r)}}},[e._v(" 页面导出 ")])],1),a("el-col",{staticClass:"fr",staticStyle:{width:"66px"},attrs:{span:4}},[e.powers.some((function(e){return"003"==e}))?a("el-button",{staticClass:"fr",staticStyle:{"margin-left":"0px"},attrs:{type:"success",size:e.searchSize},on:{click:function(t){return e.openModal("add","003")}}},[e._v(" 添加 ")]):e._e()],1)],1)],1)]}},{key:"orderNo",fn:function(t){var r=t.scope;return[1<r.row.orderNo_length?a("el-popover",{attrs:{placement:"top",width:"180",trigger:"hover"}},[a("ul",{staticClass:"my-tag-ul-main",staticStyle:{"list-style-type":"disc"}},e._l(r.row.orderNo_showMain,(function(t,n){return a("li",{key:n+r.row.orderNo+t,staticStyle:{"font-size":"12px","line-height":"20px","list-style-type":"disc","list-style-position":"inside",display:"list-item"}},[e._v(" "+e._s(t)+" ")])})),0),a("p",{staticStyle:{display:"inline-block","vertical-align":"top",cursor:"pointer"},attrs:{slot:"reference"},slot:"reference"},[a("span",{staticStyle:{display:"inline-block","vertical-align":"top"}},[e._v(e._s(r.row.orderNo))]),a("span",{staticStyle:{display:"inline-block","vertical-align":"top",padding:"0 0 0 2px"}},[a("i",{staticClass:"el-icon-more",staticStyle:{"font-size":"12px",height:"23px",display:"inline-block","line-height":"30px"}})])])]):a("p",[e._v(e._s(r.row.orderNo))])]}},{key:"traNo",fn:function(t){var r=t.scope;return[1<r.row.traNo_length?a("el-popover",{attrs:{placement:"top",width:"200",trigger:"hover"}},[a("ul",{staticStyle:{"list-style-type":"disc","list-style-position":"inside"}},e._l(r.row.traNo_showMain,(function(t,n){return a("li",{key:n+r.row.traNo+t,staticStyle:{"font-size":"12px","line-height":"20px","list-style-type":"disc","list-style-position":"inside",display:"list-item"}},[e._v(" "+e._s(t)+" ")])})),0),a("p",{staticStyle:{display:"inline-block","vertical-align":"top",cursor:"pointer"},attrs:{slot:"reference"},slot:"reference"},[a("span",{staticStyle:{display:"inline-block","vertical-align":"top"}},[e._v(e._s(r.row.traNo))]),a("span",{staticStyle:{display:"inline-block","vertical-align":"top",padding:"0 0 0 2px"}},[a("i",{staticClass:"el-icon-more",staticStyle:{"font-size":"12px",height:"23px",display:"inline-block","line-height":"30px"}})])])]):a("p",[e._v(e._s(r.row.traNo))])]}},{key:"invNo",fn:function(t){var r=t.scope;return[1<r.row.invNo_length?a("el-popover",{attrs:{placement:"top",width:"200",trigger:"hover"}},[a("ul",{staticStyle:{"list-style-type":"disc","list-style-position":"inside"}},e._l(r.row.invNo_showMain,(function(t,n){return a("li",{key:n+r.row.invNo+t,staticStyle:{"font-size":"12px","line-height":"20px","list-style-type":"disc","list-style-position":"inside",display:"list-item"}},[e._v(" "+e._s(t)+" ")])})),0),a("p",{staticStyle:{display:"inline-block","vertical-align":"top",cursor:"pointer"},attrs:{slot:"reference"},slot:"reference"},[a("span",{staticStyle:{display:"inline-block","vertical-align":"top"}},[e._v(e._s(r.row.invNo))]),a("span",{staticStyle:{display:"inline-block","vertical-align":"top",padding:"0 0 0 2px"}},[a("i",{staticClass:"el-icon-more",staticStyle:{"font-size":"12px",height:"23px",display:"inline-block","line-height":"28px"}})])])]):a("p",[e._v(e._s(r.row.invNo))])]}},{key:"rela_form",fn:function(t){var r=t.scope;return[a("el-tag",{attrs:{size:"mini",type:""},domProps:{textContent:e._s((e.RQList.find((function(e){return e.code==r.row.rela_form}))||{}).name||"--")}})]}},{key:"status",fn:function(t){var r=t.scope;return[a("el-tag",{attrs:{size:"mini",type:"3"==r.row.status?"success":"2"==r.row.status?"warning":""},domProps:{textContent:e._s((e.relationType.find((function(e){return e.code==r.row.status}))||{}).name||"--")}})]}},{key:"operation",fn:function(t){var r=t.scope;return[e.powers.some((function(e){return"007"==e}))&&"2"===r.row.rela_form||e.powers.some((function(e){return"007"==e}))&&"3"===r.row.rela_form?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,"007")}}})]):e._e(),e.powers.some((function(e){return"027"==e}))&&"3"!==r.row.status&&"2"===r.row.rela_form||e.powers.some((function(e){return"027"==e}))&&"3"!==r.row.status&&"3"===r.row.rela_form?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)}}})]):e._e(),e.powers.some((function(e){return"029"==e}))&&"1"===r.row.status&&"2"===r.row.rela_form||e.powers.some((function(e){return"029"==e}))&&"1"===r.row.status&&"3"===r.row.rela_form?a("el-tooltip",{attrs:{effect:"dark",content:"财务审核",placement:"top"}},[a("i",{staticClass:"el-icon-s-check tb-icon",on:{click:function(t){return e.openModal(r.row.id,"029")}}})]):e._e()]}}],null,!1,17517381)}):a("no-auth")],1)}),[],!1,null,"6186be66",null);t.default=o.exports},"1d37":function(e,t,a){"use strict";a.r(t);var r=a("1da1"),n=(a("e9c4"),a("96cf"),a("61b8")),i={name:"refund",props:["showModel","id","isDetail","dstatus"],mixins:[a("9f53").a],data:function(){return{time:0,roleList:[],loading:!1,title:"添加退款申请",showModelThis:this.showModel,status:"",ruleForm:{relaNo:"",backType:"0"},resData:null,rulesThis:this.rules,statusList1:[{code:"2",name:"通过"},{code:"5",name:"驳回"}],statusList2:[{code:"3",name:"通过"},{code:"6",name:"驳回"}],statusList:[],rules:{relaNo:[{required:!0,message:"请输入原资金编号",trigger:"blur"}],backType:[{required:!0,message:"请选择退款类型",trigger:"change"}]},examForm:{relaNo:"",status:"1",remark:""},examThis:this.examRules,examRules:{status:[{required:!0,message:"请选择审核状态",trigger:"change"}],remark:[{required:!1,message:"请输入审核备注",trigger:"bulr"}]}}},watch:{showModel:function(e){(this.showModelThis=e)&&(this.status="",this.initForm())},showModelThis:function(e){e||this.$emit("cancel")}},methods:{closeModel:function(){},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,"003"===e.isDetail)return e.title="添加退款申请",e.rulesThis=e.rules,t.next=7,e.resetForm();t.next=9;break;case 7:t.next=17;break;case 9:return e.rulesThis={},e.examThis=e.examRules,"028"===e.isDetail?(e.title="退款业务审核",e.statusList=e.statusList1):(e.title="退款财务审核",e.statusList=e.statusList2),t.next=15,e.resetForm();case 15:return t.next=17,e.initData();case 17:e.status=e.dstatus,e.loading=!1;case 19:case"end":return t.stop()}}),t)})))()},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 t.next=2,n.a.detail({refundNo:e.id});case 2:if(!(a=t.sent)||0!==a.code||!a.data){t.next=7;break}e.ruleForm=a.data,t.next=13;break;case 7:if(a&&100<=a.code&&a.code<=104)return t.next=10,e.logout();t.next=12;break;case 10:t.next=13;break;case 12:e.$message.warning(a.message);case 13:case"end":return t.stop()}}),t)})))()},radioChange:function(){this.examForm.status===this.statusList[0].code?this.examThis.remark[0].required=!1:this.examThis.remark[0].required=!0},resetForm:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$nextTick((function(){e.$refs.ruleForm&&(e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),e.ruleForm={relaNo:"",backType:"0"}),e.$refs.examForm&&(e.$refs.examForm.resetFields(),e.$refs.examForm.clearValidate(),e.examForm={status:e.statusList[0].code,remark:""},e.radioChange())}));case 2:case"end":return t.stop()}}),t)})))()},submitExamForm: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.examForm.validate(function(){var t=Object(r.a)(regeneratorRuntime.mark((function t(a){var r,i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a)return e.loading=!0,r=JSON.parse(JSON.stringify(e.examForm)),r={refundNo:e.id,status:r.status,remark:r.remark},t.next=6,n.a.status(r);t.next=23;break;case 6:if(i=t.sent,e.loading=!1,!i||0!==i.code){t.next=15;break}e.$notify.success({title:"审核成功!",message:""}),e.showModelThis=!1,e.$emit("refresh"),t.next=21;break;case 15:if(i&&100<=i.code&&i.code<=104)return t.next=18,e.logout();t.next=20;break;case 18:t.next=21;break;case 20:e.$message.warning(i.message);case 21:t.next=25;break;case 23:return t.abrupt("return",!1);case 25:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()},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;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a)return e.loading=!0,r=JSON.parse(JSON.stringify(e.ruleForm)),r={relaNo:r.relaNo,backType:r.backType,type:"1"},t.next=6,n.a.add(r);t.next=23;break;case 6:if(i=t.sent,e.loading=!1,!i||0!==i.code){t.next=15;break}e.$notify.success({title:"添加成功!",message:""}),e.showModelThis=!1,e.$emit("refresh"),t.next=21;break;case 15:if(i&&100<=i.code&&i.code<=104)return t.next=18,e.logout();t.next=20;break;case 18:t.next=21;break;case 20:e.$message.warning(i.message);case 21:t.next=25;break;case 23:return t.abrupt("return",!1);case 25:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()}}};a("80ea"),a=a("2877"),a=Object(a.a)(i,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:e.title,center:!0,align:"left",top:"12vh",width:"750px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)"},on:{"update:visible":function(t){e.showModelThis=t},close:e.closeModel}},[a("el-card",{staticStyle:{"margin-top":"-25px"}},[a("el-row",{attrs:{gutter:10}},[a("el-col",{attrs:{span:24}},[a("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",rules:e.rulesThis,"label-width":"110px"}},[a("el-form-item",{attrs:{label:"原资金编号",prop:"relaNo"}},[a("el-input",{attrs:{placeholder:"如TRA000000000000-000",disabled:"003"!==e.isDetail},model:{value:e.ruleForm.relaNo,callback:function(t){e.$set(e.ruleForm,"relaNo",t)},expression:"ruleForm.relaNo"}})],1),"003"!==e.isDetail?a("el-row",[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{size:"mini",label:"原认领企业编号"}},[a("el-input",{attrs:{disabled:""},model:{value:e.ruleForm.customerNo,callback:function(t){e.$set(e.ruleForm,"customerNo",t)},expression:"ruleForm.customerNo"}})],1)],1),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{size:"mini",label:"原认领企业"}},[a("el-input",{attrs:{disabled:""},model:{value:e.ruleForm.companyName,callback:function(t){e.$set(e.ruleForm,"companyName",t)},expression:"ruleForm.companyName"}})],1)],1),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{size:"mini",label:"退款总金额"}},[a("el-input",{attrs:{disabled:""},model:{value:e.ruleForm.refund_fee,callback:function(t){e.$set(e.ruleForm,"refund_fee",t)},expression:"ruleForm.refund_fee"}})],1)],1)],1):e._e()],1)],1),"003"!==e.isDetail?a("el-col",{attrs:{span:24}},[a("el-form",{ref:"examForm",staticClass:"demo-examForm",attrs:{model:e.examForm,"status-icon":"",rules:e.examThis,"label-width":"110px"}},[a("el-form-item",{attrs:{label:"审核状态",prop:"status"}},[a("el-radio-group",{on:{change:e.radioChange},model:{value:e.examForm.status,callback:function(t){e.$set(e.examForm,"status",t)},expression:"examForm.status"}},e._l(e.statusList,(function(t,r){return a("el-radio",{key:t.code+r,attrs:{label:t.code}},[e._v(e._s(t.name))])})),1)],1),a("el-form-item",{attrs:{label:"审核备注",prop:"remark"}},[a("el-input",{attrs:{type:"textarea",placeholder:"请输入审核备注",maxlength:"250","show-word-limit":""},model:{value:e.examForm.remark,callback:function(t){e.$set(e.examForm,"remark",t)},expression:"examForm.remark"}})],1)],1)],1):e._e(),a("el-col",{staticStyle:{"text-align":"right"},attrs:{span:24}},["003"===e.isDetail?a("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("保 存 ")]):a("el-button",{attrs:{type:"primary"},on:{click:e.submitExamForm}},[e._v("保 存 ")]),a("el-button",{on:{click:function(t){e.showModelThis=!1}}},[e._v("关 闭")])],1)],1)],1)],1)}),[],!1,null,"470f846f",null);t.default=a.exports},"1d63":function(e,t,a){},"1db4":function(e,t,a){"use strict";a.r(t);var r=[function(){var e=this.$createElement;e=this._self._c||e;return e("div",{staticClass:"pic-404"},[e("img",{staticClass:"pic-404__parent",attrs:{src:a("a36b"),alt:"404"}}),e("img",{staticClass:"pic-404__child left",attrs:{src:a("26fc"),alt:"404"}}),e("img",{staticClass:"pic-404__child mid",attrs:{src:a("26fc"),alt:"404"}}),e("img",{staticClass:"pic-404__child right",attrs:{src:a("26fc"),alt:"404"}})])}],n={name:"Page404",computed:{message:function(){return"访问的页面不存在..."}},methods:{goto:function(){window.vm.$router.push({path:"/welcome/dashboard"})}}},i=(a("e894"),a("2877"));i=Object(i.a)(n,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("div",{staticClass:"wscn-http404-container"},[t("div",{staticClass:"wscn-http404"},[e._m(0),t("div",{staticClass:"bullshit"},[t("div",{staticClass:"bullshit__oops"},[e._v("哎呀!")]),t("div",{staticClass:"bullshit__headline"},[e._v(e._s(e.message))]),t("div",{staticClass:"bullshit__info"},[e._v(" 请检查您输入的网址是否正确,或单击下面的按钮返回主页. ")]),t("el-button",{attrs:{type:"primary",round:""},on:{click:function(t){return e.goto()}}},[e._v("回到首页")])],1)])])}),r,!1,null,"82eac96e",null);t.default=i.exports},"1db7":function(e,t,a){"use strict";a("09a2")},"1e63":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("1c81")),o=a("3264"),s=a("f5ed"),l=a("ebe4"),c=a("2f62"),u=a("9f53");o={name:"finance",components:{ExTable:o.default,addEdit:l.default},mixins:[s.a,u.a],computed:Object(n.a)(Object(n.a)({},Object(c.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"finance"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),data:function(){return{isDetail:!1,statusOptions:[{id:"0",label:"禁用"},{id:"1",label:"启用"}],pickerOptions:{disabledDate:function(e){var t=(new Date).valueOf();t=864e5*parseInt(t/864e5);return e.getTime()<=t}},showModel:!1,loading:!1,modelId:0,parmValue:{page:1,size:15},tableData:[],table:{stripe:!0,border:!0,_defaultHeader_:["setcol"]},pageInfo:{size:15,curr:1,total:0},columns:[{prop:"companyNo",label:"信息编号",width:"190px"},{prop:"company_name",label:"单位名称"},{prop:"company_license",label:"纳税人识别号",width:"190px"},{prop:"bank_name",label:"银行名称"},{prop:"bankNo",label:"银行卡号"},{prop:"status",label:"状态",width:"90px",_slot_:"status"},{prop:"addtime",label:"创建时间",width:"160px",sortable:!0},{prop:"",label:"操作",width:"120px",fixed:"right",_noset_:!0,_slot_:"operation"}]}},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,i.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)})))()},openModal:function(e,t){this.showModel=!0,this.modelId=e,this.isDetail=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,o;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a.loading=!0,n={companyNo:e,status:"1"===t?"0":"1"},r.next=4,i.a.status(n);case 4:if((o=r.sent)&&0===o.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(o&&100<=o.code&&o.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(o.message);case 19:case"end":return r.stop()}}),r)})))).catch((function(){}));case 2:case"end":return n.stop()}}),n)})))()}}},a("df07"),l=a("2877"),s=Object(l.a)(o,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"finance pagePadding"},[e.powers&&0<e.powers.length&&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",{attrs:{gutter:10}},[a("el-col",{attrs:{span:24}},[a("el-col",{staticStyle:{width:"195px",float:"right"},attrs:{span:3}},[e.powers.some((function(e){return"002"==e}))?a("el-button",{staticStyle:{float:"right","margin-left":"5px"},attrs:{size:e.searchSize,type:"primary"},on:{click:e.searchList}},[e._v(" 刷新 ")]):e._e(),e.powers.some((function(e){return"003"==e}))?a("el-button",{staticStyle:{float:"right",margin:"0"},attrs:{size:e.searchSize,type:"success"},on:{click:function(t){return e.openModal("add",!1)}}},[e._v(" 添加 ")]):e._e()],1)],1)],1)],1)]}},{key:"status",fn:function(t){var r=t.scope;return[a("el-tag",{attrs:{type:"0"==r.row.status?"warning":"",size:e.size},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.companyNo,!0)}}})]):e._e(),e.powers.some((function(e){return"007"==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.companyNo,!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.companyNo,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.companyNo,r.row.status)}}})]):e._e()]}}],null,!1,823964103)}):a("no-auth"),a("add-edit",{attrs:{id:e.modelId,"show-model":e.showModel,"is-detail":e.isDetail,contector:e.contector,name:e.name},on:{refresh:e.searchList,cancel:function(t){e.showModel=!1}}})],1)}),[],!1,null,"df196e8c",null);t.default=s.exports},"1ee4":function(e,t,a){},"1fb6":function(e,t,a){"use strict";a("8241")},"1fd2":function(e,t,a){"use strict";var r=a("1b69"),n="Api/";t.a={list:function(e,t){return Object(r.a)("Admin/userlist",e,"post",t)},detail:function(e,t){return Object(r.a)(n+"userinfo",e,"post",t)},update:function(e,t){return Object(r.a)(n+"usersave",e,"post",t)},add:function(e,t){return Object(r.a)(n+"accountadd",e,"post",t)},delete:function(e,t){return Object(r.a)(n+"delete",e,"post",t)},setpwd:function(e,t){return Object(r.a)(n+"passset",e,"post",t)},status:function(e,t){return Object(r.a)(n+"userstatus",e,"post",t)},getRole:function(e,t){return Object(r.a)("Admin/roleall",e,"post",t)}}},2:function(e,t){},2017:function(e,t,a){"use strict";a("cafe")},"203d":function(e,t,a){"use strict";a.r(t);var r=a("1da1"),n=(a("96cf"),a("c3a8")),i={name:"clients",props:["showModel","id","isDetail","name"],mixins:[a("9f53").a],data:function(){return{startVal:0,endVal:2017,loading:!1,title:"企业客户财务概况",showModelThis:this.showModel,surveyList:[{title:"资金概况:",unit:"元",feeList:[{label:"未核销(确认单):",num:0}]},{title:"发票概况:",unit:"元",feeList:[{label:"已开票未核销:",num:0}]}],orderList:[{title:"销售确认单概况:",unit:"元",feeList:[{title:"资金",child:[{label:"未回款:",num:0},{label:"已回未开票:",num:0}]},{title:"发票",child:[{label:"未开票:",num:0},{label:"已开未回款:",num:0}]}]}]}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis:function(e){e||this.$emit("cancel")}},methods:{closeModel:function(){},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.surveyList[0].feeList[0].num=0,e.surveyList[1].feeList[0].num=0,e.orderList[0].feeList[0].child[0].num=0,e.orderList[0].feeList[0].child[1].num=0,e.orderList[0].feeList[1].child[0].num=0,e.orderList[0].feeList[1].child[1].num=0,e.loading=!0,t.next=9,e.initData();case 9:e.loading=!1;case 10:case"end":return t.stop()}}),t)})))()},initData:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){var a,r;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){t.next=8;break}(r=a.data)&&(r.trade&&(e.surveyList[0].feeList[0].num=r.trade.worder_fee||0),r.inv&&(e.surveyList[1].feeList[0].num=r.inv.wtrade_fee||0),r.order&&(e.orderList[0].feeList[0].child[0].num=r.order.wpay_fee||0,e.orderList[0].feeList[0].child[1].num=r.order.trade_inv||0,e.orderList[0].feeList[1].child[0].num=r.order.winv_fee||0,e.orderList[0].feeList[1].child[1].num=r.order.inv_trade||0)),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.$message.warning(a.message);case 14:case"end":return t.stop()}}),t)})))()}}};a("beb2"),a=a("2877"),a=Object(a.a)(i,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:e.title,center:!0,align:"left",top:"15vh",width:"900px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)"},on:{"update:visible":function(t){e.showModelThis=t},close:e.closeModel}},[a("el-card",{staticClass:"add",staticStyle:{"margin-top":"-25px"}},[a("el-row",{attrs:{gutter:40}},[a("el-col",{staticStyle:{padding:"0 0 12px 0"},attrs:{span:24}},[e.name?a("el-col",{attrs:{span:12}},[a("span",[e._v("公司名称:")]),a("span",[e._v(e._s(e.name))])]):e._e(),e.contector?a("el-col",{attrs:{span:12}},[a("span",[e._v("联系人:")]),a("span",[e._v(e._s(e.contector))])]):e._e()],1),a("el-col",{attrs:{span:24}},[a("el-row",{attrs:{gutter:20}},[e._l(e.surveyList,(function(t,r){return a("el-col",{key:t.title+r,attrs:{span:12}},[a("div",{staticClass:"grid-content bg-purple"},[a("div",{staticClass:"survey-title"},[e._v(e._s(t.title))]),e._l(t.feeList,(function(r,n){return a("div",{key:r.title+n,staticClass:"survey-main tc"},[a("el-badge",[e._v(e._s(r.label))]),a("el-badge",[e._v(" "+e._s(r.num)+e._s(t.unit))])],1)}))],2)])})),e._l(e.orderList,(function(t,r){return a("el-col",{key:t.title+r,staticStyle:{"margin-top":"20px"},attrs:{span:24}},[a("div",{staticClass:"grid-content bg-purple"},[a("div",{staticClass:"survey-title"},[e._v(e._s(t.title))]),e._l(t.feeList,(function(r,n){return a("div",{key:r.title+n,staticClass:"survey-main",style:{paddingTop:0===n?"20px":0}},[a("ul",{staticClass:"clear",staticStyle:{width:"100%"}},[a("li",{staticClass:"tc fl"},[a("el-badge",{staticStyle:{color:"#409eff"}},[e._v(e._s(r.title))])],1),e._l(r.child,(function(r,n){return a("li",{key:r+n,staticClass:"tc fl"},[a("el-badge",[e._v(e._s(r.label))]),a("el-badge",[e._v(" "+e._s(r.num)+e._s(t.unit))])],1)}))],2)])}))],2)])}))],2)],1)],1)],1)],1)}),[],!1,null,"b27291f8",null);t.default=a.exports},"21fa":function(e,t,a){"use strict";var r=a("1b69"),n="Admin/";t.a={list:function(e,t){return Object(r.a)(n+"menulist",e,"post",t)},update:function(e,t){return Object(r.a)(n+"menusave",e,"post",t)},menustatus:function(e,t){return Object(r.a)(n+"menustatus",e,"post",t)},actionList:function(e,t){return Object(r.a)(n+"menuaction",e,"post",t)},actionadd:function(e,t){return Object(r.a)(n+"menuactionadd",e,"post",t)},actionedit:function(e,t){return Object(r.a)(n+"menuactionsave",e,"post",t)},actionstatus:function(e,t){return Object(r.a)(n+"menuactionstatus",e,"post",t)}}},2453:function(e,t,a){},2496:function(e,t,a){"use strict";a("90ca")},"24a2":function(e,t,a){"use strict";a.r(t);var r=a("1da1"),n=(a("e9c4"),a("99af"),a("d3b7"),a("159b"),a("a15b"),a("96cf"),a("3ef2")),i=a("5563"),o=a("9f53");i={name:"orderRecord",props:["id","newTime","payNo","companyNo","isDetail"],components:{InvoiceHead:i.default},mixins:[o.a],data:function(){return{pickerOptions:{disabledDate:function(e){if(e)return e.getTime()>=(new Date).valueOf()}},newTimes:null,examineForm:{invid:this.id,status:"0",remark:"",invtime:""},activeForm:0,oldItem:{buyer_address:"",buyer_bank:"",buyer_id:"",buyer_name:"",seller_address:"",seller_bank:"",seller_id:"",seller_name:""},newItem:{buyer_address:"",buyer_bank:"",buyer_id:"",buyer_name:"",seller_address:"",seller_bank:"",seller_id:"",seller_name:""},ratioItem:{buyer_address:!0,buyer_bank:!0,buyer_id:!0,buyer_name:!0,seller_address:!0,seller_bank:!0,seller_id:!0,seller_name:!0},length:0,oldresList:{buyer:{},seller:{},list:[]},resList:{buyer:{},seller:{},list:[]},ratioresList:{buyer:{},seller:{},list:[]},ratioNo:{id:"",item_list:[],issue_date:!0,subtotal_amount:!0,subtotal_tax:!0,total:!0},options:[{value:"0",label:"通过"},{value:"4",label:"驳回"}],examineFormThis:{status:[{required:!0,message:"请选择审核状态",trigger:"change"}],remark:[{required:!1,message:"请输入价税合计",trigger:"blur"}],invtime:[{required:!0,message:"请选择发票审核时间",trigger:"change"}]},examForm:{id:"",item_list:[],issue_date:"",subtotal_amount:"",subtotal_tax:"",total:""},examsThis:this.exams,activeImg:0,exams:{item_list:[],issue_date:[{required:!0,message:"请输入开票日期",trigger:"blur"}],subtotal_amount:[{required:!0,message:"请输入合计金额",trigger:"blur"}],subtotal_tax:[{required:!0,message:"请输入合计税额",trigger:"blur"}],total:[{required:!0,message:"请输入价税合计",trigger:"blur"}]}}},watch:{newTime:function(e,t){e!==t&&this.initForm()}},mounted:function(){this.initForm()},methods:{changeS:function(e){this.examineFormThis.remark[0].required="4"===e},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.examsThis=e.exams,t.next=6,e.getData();case 6:return t.next=8,e.initData();case 8:case"end":return t.stop()}}),t)})))()},resetForm: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.newTimes=(new Date).valueOf(),a.next=4,t.$nextTick((function(){t.$refs.examForm&&(t.$refs.examForm.resetFields(),t.$refs.examForm.clearValidate(),t.setKey(t.resList.buyer,t.oldresList.buyer,t.ratioresList.buyer),t.setKey(t.resList.seller,t.oldresList.seller,t.ratioresList.seller),t.setNewKey(e))}));case 4:t.loading=!1;case 5:case"end":return a.stop()}}),a)})))()},setKey:function(e,t,a){for(var r in e)this.newItem[r]=JSON.parse(JSON.stringify(e[r]));for(var n in t)this.oldItem[n]=JSON.parse(JSON.stringify(t[n]));for(var i in a)this.ratioItem[i]=JSON.parse(JSON.stringify(a[i]))},setNewKey:function(e){var t,a=JSON.parse(JSON.stringify(this.resList.list[e]));for(t in a)"goods"===t?this.examForm.item_list=JSON.parse(JSON.stringify(a[t])):this.examForm[t]=JSON.parse(JSON.stringify(a[t]));var r,n=JSON.parse(JSON.stringify(this.ratioresList.list[e]));for(r in n)"goods"===r?this.ratioNo.item_list=JSON.parse(JSON.stringify(n[r])):this.ratioNo[r]=JSON.parse(JSON.stringify(n[r]));this.examineForm.invtime=""===this.examineForm.invtime?this.transformTime(new Date):this.examineForm.invtime},transformTime:function(e){e=new Date(e);var t=this.setNum(e.getFullYear()),a=this.setNum(e.getMonth()+1),r=this.setNum(e.getDate()),n=this.setNum(e.getHours()),i=this.setNum(e.getMinutes());e=this.setNum(e.getSeconds());return"".concat(t,"-").concat(a,"-").concat(r," ").concat(n,":").concat(i,":").concat(e)},setNum:function(e){return e<10?"0".concat(e):e+""},getData: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=3,n.a.companydetail({companyNo:e.companyNo,sid:e.id});case 3:if(!(a=t.sent)||0!==a.code){t.next=10;break}r=a.data||[],e.oldresList={buyer:{},seller:{},list:[]},e.oldresList.buyer={buyer_address:r.company_address+r.mobile,buyer_bank:r.bank_name+r.bankNo,buyer_id:r.company_license,buyer_name:r.company_name},t.next=16;break;case 10:if(a&&100<=a.code&&a.code<=104)return t.next=13,e.logout();t.next=15;break;case 13:t.next=16;break;case 15:e.$message.warning(a.message);case 16:case"end":return t.stop()}}),t)})))()},initData:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){var a,r,i,o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.oldresList.list=[],e.resList={buyer:{},seller:{},list:[]},e.ratioresList={buyer:{},seller:{},list:[]},t.next=4,n.a.invoiceinfo({sid:e.id});case 4:if(!((a=t.sent)&&0===a.code&&a.data&&a.data.invoice&&0<a.data.invoice.length)){t.next=20;break}for(i in r=a.data||[],e.oldresList.seller={seller_address:r.old.seller_address,seller_bank:r.old.seller_bank,seller_id:r.old.seller_id,seller_name:r.old.seller_name},e.resList.buyer={buyer_address:r.buyer.buyer_address,buyer_bank:r.buyer.buyer_bank,buyer_id:r.buyer.buyer_id,buyer_name:r.buyer.buyer_name},e.resList.seller={seller_address:r.seller.seller_address,seller_bank:r.seller.seller_bank,seller_id:r.seller.seller_id,seller_name:r.seller.seller_name},r.invoice.forEach((function(t,a){var r={id:t.id,image:t.image,issue_date:t.issue_date,status:t.status,payid:t.payid,subtotal_amount:t.subtotal_amount,subtotal_tax:t.subtotal_tax,total:t.total,goods:t.item_list};t={id:t.id,image:t.image,issue_date:t.invoice_info.issue_date,status:t.status,payid:t.payid,subtotal_amount:t.invoice_info.subtotal_amount,subtotal_tax:t.invoice_info.subtotal_tax,total:t.invoice_info.total,goods:t.invoice_info.item_list};e.oldresList.list.push(t),e.resList.list.push(r)})),e.oldresList.seller)e.ratioresList.seller[i]=e.oldresList.seller[i]===e.resList.seller[i];for(o in e.oldresList.buyer)e.ratioresList.buyer[o]=e.oldresList.buyer[o]===e.resList.buyer[o];return e.length=e.oldresList.list.length,e.oldresList.list.forEach((function(t,a){var r,n=Object.assign({},{});for(r in t)!function(t){if("goods"===t){n[t]=[];var r=JSON.parse(JSON.stringify(e.oldresList.list[a][t])),i=JSON.parse(JSON.stringify(e.resList.list[a][t])),o=i.length-r.length;if(0!=o)for(var s=0;s<Math.abs(o);s++){var l=e.setItem();(o<0?i:r).push(l)}r.forEach((function(e,a){var o,s=Object.assign({},{});for(o in e)s[o]=r[a][o]===i[a][o];n[t].push(s)}))}else n[t]=e.oldresList.list[a][t]===e.resList.list[a][t]}(r);e.ratioresList.list.push(n)})),e.activeImg=0,t.next=18,e.carouselChange(0);case 18:t.next=26;break;case 20:if(a&&100<=a.code&&a.code<=104)return t.next=23,e.logout();t.next=25;break;case 23:t.next=26;break;case 25:e.$message.warning(a.message);case 26:case"end":return t.stop()}}),t)})))()},setItem:function(){return{amount:"",name:"",quantity:"",specification:"",tax:"",tax_rate:"",unit:"",unit_price:""}},sitDeta:function(e){for(var t in e)Array.isArray(e[t])||(e[t]+="");return e},carouselChange: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.activeImg=e,0<t.resList.list.length&&e<t.resList.list.length)return a.next=4,t.resetForm(e);a.next=4;break;case 4:case"end":return a.stop()}}),a)})))()},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.examineForm.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=14;break}if(e.loading=!0,(r=JSON.parse(JSON.stringify(e.examineForm))).invid=e.examForm.id,"4"===r.status)return t.next=8,e.setstatus(r);t.next=10;break;case 8:t.next=12;break;case 10:return t.next=12,e.lastOne();case 12:t.next=16;break;case 14:return t.abrupt("return",!1);case 16:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()},setstatus: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,n.a.invoicestatus(e);case 2:if((r=a.sent)&&0===r.code)return a.next=6,t.lastOne();a.next=8;break;case 6: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)})))()},lastOne: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=!1,e.activeImg+1==e.length)return t.next=4,e.invoiceexam();t.next=6;break;case 4:t.next=8;break;case 6:return t.next=8,e.carouselChange(++e.activeImg);case 8:case"end":return t.stop()}}),t)})))()},invoiceexam: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.invoiceexam({sid:e.id,invtime:e.examineForm.invtime});case 3:if(!(a=t.sent)||0!==a.code){t.next=11;break}e.$notify.success({title:"审核发票提交成功!",message:""}),e.showModelThis=!1,e.$emit("refreshAll"),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)})))()},ValidationList:function(e){return Object(r.a)(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=!0,e.forEach((function(e){for(var t in e)""===e[t]&&(a=!1)})),t.abrupt("return",a);case 3:case"end":return t.stop()}}),t)})))()},detectionField:function(e,t){var a=this;return Object(r.a)(regeneratorRuntime.mark((function r(){var n,i,o,s,l,c,u,d;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:for(o in n={buyer_address:JSON.parse(JSON.stringify(a.oldresList.buyer.buyer_address)),buyer_bank:JSON.parse(JSON.stringify(a.oldresList.buyer.buyer_bank)),buyer_id:JSON.parse(JSON.stringify(a.oldresList.buyer.buyer_id)),buyer_name:JSON.parse(JSON.stringify(a.oldresList.buyer.buyer_name)),seller_address:JSON.parse(JSON.stringify(a.oldresList.seller.seller_address)),seller_bank:JSON.parse(JSON.stringify(a.oldresList.seller.seller_bank)),seller_id:JSON.parse(JSON.stringify(a.oldresList.seller.seller_id)),seller_name:JSON.parse(JSON.stringify(a.oldresList.seller.seller_name)),item_list:JSON.parse(JSON.stringify(a.oldresList.list[t].goods)),issue_date:JSON.parse(JSON.stringify(a.oldresList.list[t].issue_date)),subtotal_amount:JSON.parse(JSON.stringify(a.oldresList.list[t].subtotal_amount)),subtotal_tax:JSON.parse(JSON.stringify(a.oldresList.list[t].subtotal_tax)),total:JSON.parse(JSON.stringify(a.oldresList.list[t].total))},i=[],e)if("item_list"!==o)e[o]!==n[o]&&i.push(o);else{for(s=!0,l=0;l<e.item_list.length;l++)for(c in e.item_list[l])n.item_list[l]&&e.item_list[l][c]!==n.item_list[l][c]&&(s=!1);s||i.push("item_list")}for(u=0;u<i.length;u++);return(d=JSON.parse(JSON.stringify(e))).field=i.join(","),d.id=JSON.parse(JSON.stringify(a.oldresList.list[t].id)),r.abrupt("return",d);case 8:case"end":return r.stop()}}),r)})))()}}},a("3638"),o=a("2877"),a=Object(o.a)(i,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-row",[a("el-col",{attrs:{span:24}},[a("invoice-head",{attrs:{newTime:e.newTimes,oldItem:e.oldItem,newItem:e.newItem,ratioItem:e.ratioItem,isDetail:!0,img:e.img,id:e.id,payNo:e.payNo,companyNo:e.companyNo},on:{nextStep:e.nextStep}})],1),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 clearfix",attrs:{model:e.ruleForm,rules:e.rulesThis,"label-width":"100px"}})],1),a("el-col",{attrs:{span:24}},[a("el-form",{ref:"examForm",staticClass:"demo-examForm-view",attrs:{model:e.examForm,rules:e.examsThis,"label-width":"90px",size:"mini"}},[a("el-row",{attrs:{gutter:10}},[a("el-col",{attrs:{span:24}},[a("el-row",[a("el-col",{attrs:{span:24}},[a("el-table",{staticStyle:{width:"100%"},attrs:{size:"mini",data:e.examForm.item_list,border:""}},[a("el-table-column",{attrs:{prop:"name",label:"货物或应税劳务、服务名称",width:"200px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input",{class:{errorInput:e.ratioNo&&e.ratioNo.item_list&&e.ratioNo.item_list[t.$index]&&!e.ratioNo.item_list[t.$index].name},attrs:{size:"mini",readonly:"",placeholder:"货物或应税劳务、服务名称"},model:{value:t.row.name,callback:function(a){e.$set(t.row,"name",a)},expression:"scope.row.name"}})]}}])}),a("el-table-column",{attrs:{prop:"specification",label:"规格型号",width:"110"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input",{class:{errorInput:e.ratioNo&&e.ratioNo.item_list&&e.ratioNo.item_list[t.$index]&&!e.ratioNo.item_list[t.$index].specification},attrs:{size:"mini",readonly:"",placeholder:"规格型号"},model:{value:t.row.specification,callback:function(a){e.$set(t.row,"specification",a)},expression:"scope.row.specification"}})]}}])}),a("el-table-column",{attrs:{prop:"unit",width:"70",label:"单位"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input",{class:{errorInput:e.ratioNo&&e.ratioNo.item_list&&e.ratioNo.item_list[t.$index]&&!e.ratioNo.item_list[t.$index].unit},attrs:{size:"mini",readonly:"",placeholder:"单位"},model:{value:t.row.unit,callback:function(a){e.$set(t.row,"unit",a)},expression:"scope.row.unit"}})]}}])}),a("el-table-column",{attrs:{prop:"quantity",width:"100",label:"数量"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input",{class:{errorInput:e.ratioNo&&e.ratioNo.item_list&&e.ratioNo.item_list[t.$index]&&!e.ratioNo.item_list[t.$index].quantity},attrs:{size:"mini",readonly:"",placeholder:"数量"},model:{value:t.row.quantity,callback:function(a){e.$set(t.row,"quantity",a)},expression:"scope.row.quantity"}})]}}])}),a("el-table-column",{attrs:{prop:"unit_price",label:"单价"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input",{class:{errorInput:e.ratioNo&&e.ratioNo.item_list&&e.ratioNo.item_list[t.$index]&&!e.ratioNo.item_list[t.$index].unit_price},attrs:{size:"mini",readonly:"",placeholder:"单价"},model:{value:t.row.unit_price,callback:function(a){e.$set(t.row,"unit_price",a)},expression:"scope.row.unit_price"}})]}}])}),a("el-table-column",{attrs:{prop:"amount",label:"金额"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input",{class:{errorInput:e.ratioNo&&e.ratioNo.item_list&&e.ratioNo.item_list[t.$index]&&!e.ratioNo.item_list[t.$index].amount},attrs:{size:"mini",readonly:"",placeholder:"金额"},model:{value:t.row.amount,callback:function(a){e.$set(t.row,"amount",a)},expression:"scope.row.amount"}})]}}])}),a("el-table-column",{attrs:{prop:"tax_rate",width:"80",label:"税率"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input",{class:{errorInput:e.ratioNo&&e.ratioNo.item_list&&e.ratioNo.item_list[t.$index]&&!e.ratioNo.item_list[t.$index].tax_rate},attrs:{readonly:"",size:"mini",placeholder:"税率"},model:{value:t.row.tax_rate,callback:function(a){e.$set(t.row,"tax_rate",a)},expression:"scope.row.tax_rate"}})]}}])}),a("el-table-column",{attrs:{prop:"tax",label:"税额"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input",{class:{errorInput:e.ratioNo&&e.ratioNo.item_list&&e.ratioNo.item_list[t.$index]&&!e.ratioNo.item_list[t.$index].tax},attrs:{size:"mini",readonly:"",placeholder:"税额"},model:{value:t.row.tax,callback:function(a){e.$set(t.row,"tax",a)},expression:"scope.row.tax"}})]}}])})],1)],1),a("el-col",{staticStyle:{"padding-top":"18px"},attrs:{span:24}},[a("el-col",{attrs:{span:6}},[a("el-form-item",{class:{errorForm:e.ratioNo&&!e.ratioNo.issue_date},attrs:{prop:"issue_date",label:"开票日期"}},[a("el-input",{attrs:{placeholder:"开票日期",readonly:""},model:{value:e.examForm.issue_date,callback:function(t){e.$set(e.examForm,"issue_date",t)},expression:"examForm.issue_date"}})],1)],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{class:{errorForm:e.ratioNo&&!e.ratioNo.subtotal_amount},attrs:{prop:"subtotal_amount",label:"合计金额"}},[a("el-input",{attrs:{readonly:"",placeholder:"合计金额"},model:{value:e.examForm.subtotal_amount,callback:function(t){e.$set(e.examForm,"subtotal_amount",t)},expression:"examForm.subtotal_amount"}})],1)],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{class:{errorForm:e.ratioNo&&!e.ratioNo.subtotal_tax},attrs:{prop:"subtotal_tax",label:"合计税额"}},[a("el-input",{attrs:{readonly:"",placeholder:"合计税额"},model:{value:e.examForm.subtotal_tax,callback:function(t){e.$set(e.examForm,"subtotal_tax",t)},expression:"examForm.subtotal_tax"}})],1)],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{class:{errorForm:e.ratioNo&&!e.ratioNo.total},attrs:{prop:"total",label:"价税合计"}},[a("el-input",{attrs:{readonly:"",placeholder:"价税合计"},model:{value:e.examForm.total,callback:function(t){e.$set(e.examForm,"total",t)},expression:"examForm.total"}})],1)],1)],1)],1)],1)],1)],1)],1),a("el-col",{staticStyle:{"text-align":"right"},attrs:{span:24}},[a("el-col",{attrs:{span:8}},[e.oldresList&&e.oldresList.list&&e.oldresList.list[e.activeImg]&&e.oldresList.list[e.activeImg].image?a("img",{directives:[{name:"viewer",rawName:"v-viewer"}],staticClass:"fl",staticStyle:{width:"80px",heigth:"52px"},attrs:{src:e.oldresList.list[e.activeImg].image,alt:""}}):e._e(),a("el-tag",{staticClass:"fl",staticStyle:{margin:"0 0 0 5px"}},[e._v("共"+e._s(e.length)+"张发票,当前第"+e._s(e.activeImg+1)+"张")])],1),"033"===e.isDetail?a("el-col",{staticStyle:{"text-align":"right"},attrs:{span:16}},[1<e.oldresList.list.length?a("el-button-group",[a("el-button",{attrs:{type:"primary",disabled:0===e.activeImg,icon:"el-icon-arrow-left"},on:{click:function(t){return e.carouselChange(--e.activeImg)}}},[e._v("上一张")]),a("el-button",{attrs:{type:"primary",disabled:e.activeImg+1==e.oldresList.list.length},on:{click:function(t){return e.carouselChange(++e.activeImg)}}},[e._v("下一张"),a("i",{staticClass:"el-icon-arrow-right el-icon--right"})])],1):e._e()],1):a("el-col",{attrs:{span:16}},[a("el-form",{ref:"examineForm",staticClass:"demo-examineForm",attrs:{model:e.examineForm,rules:e.examineFormThis,"label-width":"60px",size:"mini"}},[a("el-row",{attrs:{gutter:10}},[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{prop:"invtime",label:"时间"}},[a("el-date-picker",{staticClass:"fl",staticStyle:{width:"100%"},attrs:{type:"datetime","picker-options":e.pickerOptions,"value-format":"yyyy-MM-dd HH:mm:ss",placeholder:"发票审核时间"},model:{value:e.examineForm.invtime,callback:function(t){e.$set(e.examineForm,"invtime",t)},expression:"examineForm.invtime"}})],1)],1),a("el-col",{attrs:{span:7}},[a("el-form-item",{attrs:{label:"审核",prop:"status"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择审核状态"},on:{change:e.changeS},model:{value:e.examineForm.status,callback:function(t){e.$set(e.examineForm,"status",t)},expression:"examineForm.status"}},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",{staticStyle:{"text-align":"right"},attrs:{span:5}},[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.submitForm}},[e._v("提交审核结果")])],1),"4"===e.examineForm.status?a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"备注",prop:"remark"}},[a("el-input",{attrs:{type:"textarea",rows:3},model:{value:e.examineForm.remark,callback:function(t){e.$set(e.examineForm,"remark",t)},expression:"examineForm.remark"}})],1)],1):e._e()],1)],1)],1)],1)],1)}),[],!1,null,"35fee96c",null);t.default=a.exports},"26a9":function(e,t,a){},"26fc":function(e,t,a){e.exports=a.p+"static/img/404_cloud.0f4bc32b.png"},"2b34":function(e,t,a){"use strict";a.r(t);var r=a("2909"),n=a("1da1"),i=a("5530"),o=(a("96cf"),a("7db0"),a("d3b7"),a("a15b"),a("159b"),a("a9e3"),a("d81d"),a("b680"),a("b0c0"),a("99af"),a("3ca3"),a("ddb0"),a("ff7e")),s=a("3264"),l=a("f5ed"),c=a("d20f"),u=a("9f53"),d=a("8eac"),p=a("2f62"),m=a("d313"),f=[{type:"expand",label:"",_slot_:"expand"},{type:"selection",fixed:"left",_noset_:!0,width:"50"},{prop:"cgdNO",label:"采购单编号",width:"145"},{prop:"goodNo",label:"商品编号",width:"125"},{prop:"purchasePrice",label:"货款",width:"110px"},{prop:"supplierNo",label:"供货商编码",width:"140px"},{prop:"name",label:"供货商",width:"180px"},{prop:"ownerName",label:"采购员"},{prop:"send_info",label:"发货状态",_slot_:"send_info",width:"95px"},{prop:"th_info",label:"退货状态",_slot_:"th_info",width:"95px"},{prop:"payinfo",label:"付款状态",_slot_:"payinfo",width:"95px"},{prop:"pay_fee",label:"已付金额",width:"110px"},{prop:"wait_fee",label:"待付金额",width:"110px"},{prop:"invinfo",label:"回票状态",_slot_:"invinfo",width:"95px"},{prop:"inv_open_fee",label:"已回票金额",width:"110px"},{prop:"inv_wait_fee",label:"待回票金额",width:"110px"},{prop:"inv_status",label:"信息设置状态",_slot_:"inv_status",width:"100px"},{prop:"inv_company",label:"回票编号",width:"170px"},{prop:"inv_company_name",label:"回票公司",width:"180px"},{prop:"DownTime",label:"下单时间",width:"140px"}],h=[{code:"1",name:"采购单编码"},{code:"2",name:"财务信息编号"},{code:"3",name:"业务员名字"},{code:"4",name:"商品编号"}],b=[{value:"0",label:"未绑定"},{value:"1",label:"待审核"},{value:"2",label:"已通过"},{value:"3",label:"已驳回"}],g=[{value:"1",label:"未退货"},{value:"2",label:"部分退货"},{value:"3",label:"全部退货"}],w=[{value:"1",label:"未发货"},{value:"2",label:"部分发货"},{value:"3",label:"全部发货"}],v=[{value:"1",label:"未付款"},{value:"2",label:"部分付款"},{value:"3",label:"全部付款"}],x=[{value:"1",label:"未回票"},{value:"2",label:"部分回票"},{value:"3",label:"全部回票"}],_=["采购单编号","货款","供应商编码","供应商名称","采购员","发货状态","退货状态","付款状态","已付金额","待付金额","回票状态","已回票金额","待回票金额","信息设置状态","回票编号","回票公司","下单时间","商品编号","商品名称","商品描述","单位","数量","含有工差","工期","成本合计","税率","成本裸价","加标费","包装费","证书费","开模费","物流费","工差","商品类型","商品品牌","商品型号","商品材质","商品颜色","金属种类","金属重量","金属价格"],y=["cgdNO","purchasePrice","supplierNo","name","ownerName","send_info","th_info","payinfo","pay_fee","wait_fee","invinfo","inv_open_fee","inv_wait_fee","inv_status","inv_company","inv_company_name","DownTime","goodNo","goodName","goodDesc","goodUnit","orderNum","isDiff","workDay","pay_price","taxPoint","nakedPrice","markPrice","packPrice","certPrice","openPrice","postPrice","diff_fee","goodType","goodBank","goodModel","goodMaterial","goodColor","goodCat","weight","price"];s={name:"porder",components:{ExTable:s.default,setEdit:d.default,examEdit:m.default},mixins:[l.a,u.a],computed:Object(i.a)(Object(i.a)({},Object(p.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"porder"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),data:function(){return{selectK:"1",input:"",selectKlist:h,code:[],showModel1:!1,showModel2:!1,selectLoading:!1,activeOptions:[],selection:[],options:b,th_status_list:g,send_status_list:w,pay_status_list:v,inv_status_list:x,statusOptions:[{id:"0",label:"禁用"},{id:"1",label:"启用"}],pickerOptions:{disabledDate:function(e){var t=(new Date).valueOf();t=864e5*parseInt(t/864e5);return e.getTime()<=t}},loading:!1,modelId:0,parmValue:{name:"",code:"",sequenceNo:"",inv_company:"",inv_status:"",send_status:"",payinfo:"",invinfo:"",goodNo:"",th_status:"",page:1,size:15},formValue:{name:"",page:1,size:100},tableData:[],table:{stripe:!0,border:!0,_defaultHeader_:["setcol"]},pageInfo:{size:15,curr:1,total:0},columns:f}},mounted:function(){this.searchList()},methods:{restSearch: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.selectK="1",e.input="",e.code=[],e.parmValue.code=e.code.join(","),e.parmValue.sequenceNo="",e.parmValue.page=1,e.pageInfo.curr=1,e.parmValue.inv_company="",e.parmValue.inv_status="",e.parmValue.goodNo="",e.parmValue.send_status="",e.parmValue.owner="",t.next=14,e.searchList();case 14:case"end":return t.stop()}}),t)})))()},statusConfirm:function(e){var t=this;return Object(n.a)(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(e&&0===e.length)return t.$message.error("请选择采购单!"),a.abrupt("return");a.next=3;break;case 3:return a.next=5,t.$confirm("确定要将选中的采购单改为无需对账状态?",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(n.a)(regeneratorRuntime.mark((function a(){var r,n,i;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return t.loading=!0,r="",e.forEach((function(e,t){r+=0===t?e.id:","+e.id})),n={id:r},a.next=6,o.a.paymentunpay(n);case 6:if((i=a.sent)&&0===i.code)return t.loading=!1,t.$notify.success({title:"无需对账状态修改成功!",message:""}),a.next=12,t.searchList();a.next=14;break;case 12:a.next=20;break;case 14:if(i&&100<=i.code&&i.code<=104)return a.next=17,t.logout();a.next=19;break;case 17:a.next=20;break;case 19:t.$message.warning(i.message);case 20:case"end":return a.stop()}}),a)})))).catch((function(){}));case 5:case"end":return a.stop()}}),a)})))()},searchList:function(){var e=this;return Object(n.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.sequenceNo="1"===e.selectK?e.input:"",e.parmValue.inv_company="2"===e.selectK?e.input:"",e.parmValue.owner="3"===e.selectK?e.input:"",e.parmValue.goodNo="4"===e.selectK?e.input:"",t.next=7,o.a.list(e.parmValue);case 7:if(!(a=t.sent)||0!==a.code||!a.data){t.next=14;break}e.tableData=a.data.list,e.pageInfo.total=Number(a.data.count),e.formatGoodList(),t.next=21;break;case 14:if(a&&100<=a.code&&a.code<=104)return t.next=17,e.logout();t.next=19;break;case 17:t.next=21;break;case 19:e.tableData=[],e.pageInfo.total=0;case 21:e.loading=!1;case 22:case"end":return t.stop()}}),t)})))()},selectChange: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.parmValue.code=e.code.join(","),e.formValue.page=1,e.pageInfo.curr=1,t.next=6,e.searchList();case 6:case"end":return t.stop()}}),t)})))()},setBilling:function(e){this.selection=[],e&&0===e.length?this.$message.error("请选择采购单"):(this.selection=e,this.showModel1=!0,this.showModel2=!1)},examBilling:function(e){var t;e&&0===e.length?this.$message.error("请选择采购单"):(t=!0,e.forEach((function(e){"1"!==e.inv_status&&(t=!1)})),t?(this.selection=e,this.showModel1=!1,this.showModel2=!0):this.$message.error("只有待审核的采购单才能进行审核操作!"))},formatGoodList:function(){var e=this;this.tableData.map((function(t){return t.purchasePrice=e.setNum(t.purchasePrice),t.totalPrice=e.setNum(t.totalPrice),t.pay_fee=e.setNum(t.pay_fee),t.wait_fee=e.setNum(t.wait_fee),t.price=e.setNum(t.price),t.nakedPrice=e.setNum(t.nakedPrice),t.markPrice=e.setNum(t.markPrice),t.packPrice=e.setNum(t.packPrice),t.certPrice=e.setNum(t.certPrice),t.openPrice=e.setNum(t.openPrice),t.craftPrice=e.setNum(t.craftPrice),t.postPrice=e.setNum(t.postPrice),t.weight=e.setNum(t.weight),t.diff_fee=e.setNum(t.diff_fee),t.price=e.setNum(t.price),t.inv_open_fee=e.setNum(t.inv_open_fee),t.inv_wait_fee=e.setNum(t.inv_wait_fee),t}))},setNum:function(e){return e?parseFloat(e+"").toFixed(2):"-"},remoteMethod:function(e){var t=this;return Object(n.a)(regeneratorRuntime.mark((function a(){var r;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(t.selectLoading=!0,""!==e)return t.activeOptions=[],t.formValue.name=e,a.next=6,o.a.supplierlist(t.formValue);a.next=19;break;case 6:if(!((r=a.sent)&&0===r.code&&r.data&&r.data.list)){a.next=11;break}t.activeOptions=r.data.list,a.next=17;break;case 11:if(r&&100<=r.code&&r.code<=104)return a.next=14,t.logout();a.next=16;break;case 14:a.next=17;break;case 16:t.$message.warning(r.message);case 17:a.next=20;break;case 19:t.activeOptions=[];case 20:t.selectLoading=!1;case 21:case"end":return a.stop()}}),a)})))()},setlable:function(e,t){return(e.find((function(e){return e.value==t}))||{}).label||""},batchExport:function(e){var t,n,i=this;this.loading||(0==e.length?this.$message.warning("请至少选择一条数据!"):(this.loading=!0,t=(t=[]).concat.apply(t,Object(r.a)(e)),n=[],t.forEach((function(e){var t=Object.assign({},e);t.send_info=i.setlable(i.send_status_list,e.send_info),t.th_info=i.setlable(i.th_status_list,e.th_info),t.payinfo=i.setlable(i.pay_status_list,e.payinfo),t.invinfo=i.setlable(i.inv_status_list,e.invinfo),t.inv_status=i.setlable(i.options,e.inv_status),n.push(t)})),Promise.all([a.e("chunk-10eafd66"),a.e("chunk-2d0cc0b6")]).then(a.bind(null,"4bf8")).then((function(e){var t=Object(c.a)(y,n);e.export_json_to_excel({header:_,data:t,filename:"".concat("采购单导出")}),i.$message.success("采购单导出成功!"),setTimeout((function(){i.loading=!1}),500)}))))}}},a("c090"),d=a("2877"),m=Object(d.a)(s,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"porder pagePadding"},[e.powers&&0<e.powers.length&&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){var r=t.selection;return[a("div",{staticStyle:{width:"100%"}},[a("el-row",{staticStyle:{padding:"0 0 10px 80px"}},[a("el-col",{staticStyle:{width:"470px"},attrs:{span:8}},[a("el-select",{staticStyle:{width:"100%"},attrs:{multiple:"",filterable:"",remote:"","multiple-limit":1,"reserve-keyword":"",size:e.searchSize,placeholder:"供应商名称","remote-method":e.remoteMethod,loading:e.selectLoading},on:{change:e.selectChange},model:{value:e.code,callback:function(t){e.code=t},expression:"code"}},e._l(e.activeOptions,(function(e){return a("el-option",{key:e.code,attrs:{label:e.name+"--------"+e.contector,value:e.code}})})),1)],1),e.powers.some((function(e){return"041"==e}))?a("el-col",{staticStyle:{width:"140px",float:"right"},attrs:{span:3}},[a("el-button",{staticClass:"fr",attrs:{size:e.searchSize,type:"primary"},on:{click:function(t){return e.setBilling(r)}}},[e._v(" 批量设置回票信息")])],1):e._e(),e.powers.some((function(e){return"042"==e}))?a("el-col",{staticStyle:{width:"140px",float:"right"},attrs:{span:3}},[a("el-button",{staticStyle:{float:"right"},attrs:{size:e.searchSize,type:"primary"},on:{click:function(t){return e.examBilling(r)}}},[e._v(" 批量审核回票信息 ")])],1):e._e()],1),a("el-row",{staticStyle:{padding:"0 0 10px 0"}},[a("el-col",{staticStyle:{width:"120px"},attrs:{span:8}},[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.send_status,callback:function(t){e.$set(e.parmValue,"send_status",t)},expression:"parmValue.send_status"}},e._l(e.send_status_list,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),a("el-col",{staticStyle:{width:"130px","padding-left":"10px"},attrs:{span:8}},[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.payinfo,callback:function(t){e.$set(e.parmValue,"payinfo",t)},expression:"parmValue.payinfo"}},e._l(e.pay_status_list,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),a("el-col",{staticStyle:{width:"130px","padding-left":"10px"},attrs:{span:8}},[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.invinfo,callback:function(t){e.$set(e.parmValue,"invinfo",t)},expression:"parmValue.invinfo"}},e._l(e.inv_status_list,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),a("el-col",{staticStyle:{width:"130px","padding-left":"10px"},attrs:{span:8}},[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.th_status,callback:function(t){e.$set(e.parmValue,"th_status",t)},expression:"parmValue.th_status"}},e._l(e.th_status_list,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),a("el-col",{staticStyle:{width:"160px",padding:"0 0 0 10px"},attrs:{span:8}},[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.inv_status,callback:function(t){e.$set(e.parmValue,"inv_status",t)},expression:"parmValue.inv_status"}},e._l(e.options,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e.powers.some((function(e){return"050"==e}))?a("el-col",{staticStyle:{width:"140px",float:"right"},attrs:{span:3}},[a("el-button",{staticStyle:{float:"right"},attrs:{size:e.searchSize,type:"primary"},on:{click:function(t){return e.statusConfirm(r)}}},[e._v(" 批量设置采购单无需对账状态 ")])],1):e._e()],1),a("el-row",{attrs:{gutter:10}},[a("el-col",{staticStyle:{width:"390px"},attrs:{span:5}},[a("el-input",{staticStyle:{width:"100%"},attrs:{clearable:"",size:e.searchSize,placeholder:"关键字"},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.selectK,callback:function(t){e.selectK=t},expression:"selectK"}},e._l(e.selectKlist,(function(e){return a("el-option",{key:e.code,attrs:{label:e.name,value:e.code}})})),1),a("el-button",{attrs:{slot:"append",icon:"el-icon-search"},nativeOn:{click:function(t){return e.searchList(t)}},slot:"append"})],1)],1),a("el-col",{staticStyle:{width:"84px",float:"right"},attrs:{span:3}},[e.powers.some((function(e){return"051"==e}))?a("el-button",{staticClass:"fr",staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-download",size:e.searchSize},on:{click:function(t){return e.batchExport(r)}}},[e._v("导出")]):e._e()],1),a("el-col",{staticStyle:{width:"66px",float:"right"},attrs:{span:3}},[e.powers.some((function(e){return"002"==e}))?a("el-button",{staticClass:"fr",staticStyle:{"margin-left":"10px"},attrs:{size:e.searchSize,type:"primary"},on:{click:e.searchList}},[e._v(" 刷新 ")]):e._e()],1),a("el-col",{staticStyle:{width:"66px",float:"right"},attrs:{span:3}},[e.powers.some((function(e){return"024"==e}))?a("el-button",{staticClass:"fr",attrs:{type:"warning",size:e.searchSize},on:{click:e.restSearch}},[e._v(" 重置 ")]):e._e()],1)],1)],1)]}},{key:"expand",fn:function(t){return t=t.scope,[a("el-form",{staticClass:"demo-table-expand",attrs:{"label-position":"left",size:"mini",inline:"","label-width":"70px"}},[a("el-row",[a("el-col",{attrs:{span:4}},[a("el-form-item",{attrs:{size:"mini",label:"商品编号"}},[a("span",[e._v(e._s(t.row.goodNo))])])],1),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{size:"mini",label:"商品名称"}},[a("span",[e._v(e._s(t.row.goodName))])])],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{size:"mini",label:"商品描述"}},[a("span",[e._v(e._s(t.row.goodDesc))])])],1),a("el-col",{attrs:{span:4}},[a("el-form-item",{attrs:{size:"mini",label:"单位"}},[a("span",[e._v(e._s(t.row.goodUnit))])])],1),a("el-col",{attrs:{span:4}},[a("el-form-item",{attrs:{size:"mini",label:"数量"}},[a("span",[e._v(e._s(t.row.orderNum))])])],1),a("el-col",{attrs:{span:4}},[a("el-form-item",{attrs:{size:"mini",label:"含有工差"}},[a("span",[e._v(e._s(t.row.isDiff))])])],1),a("el-col",{attrs:{span:4}},[a("el-form-item",{attrs:{size:"mini",label:"工期"}},[a("span",[e._v(e._s(t.row.workDay))])])],1),a("el-col",{attrs:{span:4}},[a("el-form-item",{attrs:{size:"mini",label:"成本合计"}},[a("span",[e._v(e._s(t.row.pay_price))])])],1),a("el-col",{attrs:{span:4}},[a("el-form-item",{attrs:{size:"mini",label:"税率"}},[a("span",[e._v(e._s(t.row.taxPoint))])])],1),a("el-col",{attrs:{span:4}},[a("el-form-item",{attrs:{size:"mini",label:"成本裸价"}},[a("span",[e._v(e._s(t.row.nakedPrice))])])],1),a("el-col",{attrs:{span:4}},[a("el-form-item",{attrs:{size:"mini",label:"加标费"}},[a("span",[e._v(e._s(t.row.markPrice))])])],1),a("el-col",{attrs:{span:4}},[a("el-form-item",{attrs:{size:"mini",label:"包装费"}},[a("span",[e._v(e._s(t.row.packPrice))])])],1),a("el-col",{attrs:{span:4}},[a("el-form-item",{attrs:{size:"mini",label:"证书费"}},[a("span",[e._v(e._s(t.row.certPrice))])])],1),a("el-col",{attrs:{span:4}},[a("el-form-item",{attrs:{size:"mini",label:"开模费"}},[a("span",[e._v(e._s(t.row.openPrice))])])],1),a("el-col",{attrs:{span:4}},[a("el-form-item",{attrs:{size:"mini",label:"物流费"}},[a("span",[e._v(e._s(t.row.postPrice))])])],1),a("el-col",{attrs:{span:4}},[a("el-form-item",{attrs:{size:"mini",label:"工差"}},[a("span",[e._v(e._s(t.row.diff_fee))])])],1),a("el-col",{attrs:{span:4}},[a("el-form-item",{attrs:{size:"mini",label:"商品类型"}},[a("span",[e._v(e._s(t.row.goodType))])])],1),a("el-col",{attrs:{span:4}},[a("el-form-item",{attrs:{size:"mini",label:"商品品牌"}},[a("span",[e._v(e._s(t.row.goodBank))])])],1),a("el-col",{attrs:{span:4}},[a("el-form-item",{attrs:{size:"mini",label:"商品型号"}},[a("span",[e._v(e._s(t.row.goodModel))])])],1),a("el-col",{attrs:{span:4}},[a("el-form-item",{attrs:{size:"mini",label:"商品材质"}},[a("span",[e._v(e._s(t.row.goodMaterial))])])],1),a("el-col",{attrs:{span:4}},[a("el-form-item",{attrs:{size:"mini",label:"商品颜色"}},[a("span",[e._v(e._s(t.row.goodColor))])])],1),a("el-col",{attrs:{span:4}},[a("el-form-item",{attrs:{size:"mini",label:"金属种类"}},[a("span",[e._v(e._s(t.row.goodCat))])])],1),a("el-col",{attrs:{span:4}},[a("el-form-item",{attrs:{size:"mini",label:"金属重量"}},[a("span",[e._v(e._s(t.row.weight))])])],1),a("el-col",{attrs:{span:4}},[a("el-form-item",{attrs:{size:"mini",label:"金属价格"}},[a("span",[e._v(e._s(t.row.price))])])],1)],1)],1)]}},{key:"inv_status",fn:function(t){var r=t.scope;return[a("el-tag",{attrs:{size:"mini",type:"3"==r.row.inv_status?"danger":"2"==r.row.inv_status?"success":"warning"},domProps:{textContent:e._s((e.options.find((function(e){return e.value==r.row.inv_status}))||{}).label||"--")}})]}},{key:"th_info",fn:function(t){var r=t.scope;return[a("el-tag",{attrs:{size:"mini",type:"1"==r.row.th_info?"success":"danger"},domProps:{textContent:e._s((e.th_status_list.find((function(e){return e.value==r.row.th_info}))||{}).label||"--")}})]}},{key:"send_info",fn:function(t){var r=t.scope;return[a("el-tag",{attrs:{size:"mini",type:"3"==r.row.send_info?"success":"2"==r.row.send_info?"warning":"danger"},domProps:{textContent:e._s((e.send_status_list.find((function(e){return e.value==r.row.send_info}))||{}).label||"--")}})]}},{key:"payinfo",fn:function(t){var r=t.scope;return[a("el-tag",{attrs:{size:"mini",type:"3"==r.row.payinfo?"success":"2"==r.row.payinfo?"warning":"danger"},domProps:{textContent:e._s((e.pay_status_list.find((function(e){return e.value==r.row.payinfo}))||{}).label||"--")}})]}},{key:"invinfo",fn:function(t){var r=t.scope;return[a("el-tag",{attrs:{size:"mini",type:"3"==r.row.invinfo?"success":"2"==r.row.invinfo?"warning":"danger"},domProps:{textContent:e._s((e.inv_status_list.find((function(e){return e.value==r.row.invinfo}))||{}).label||"--")}})]}}],null,!1,1771148748)}):a("no-auth"),a("set-edit",{attrs:{tableData:e.selection,"show-model":e.showModel1},on:{refresh:e.searchList,cancel:function(t){e.showModel1=!1}}}),a("exam-edit",{attrs:{tableData:e.selection,"show-model":e.showModel2},on:{refresh:e.searchList,cancel:function(t){e.showModel2=!1}}})],1)}),[],!1,null,"2c1c4fdc",null);t.default=m.exports},"2b69":function(e,t,a){"use strict";a("f5a7")},"2bd2":function(e,t,a){"use strict";a("306f")},"2c30":function(e,t,a){"use strict";a("4059")},"2cc2":function(e,t,a){"use strict";a.r(t);var r=a("1da1"),n=(a("e9c4"),a("96cf"),a("6a1e")),i=a("61f7"),o={name:"myMessage",mixins:[a("9f53").a],data:function(){return{infor:{},isDetail:!0,loading:!1,ruleForm:{username:"",nickname:"",mobile:"",email:"",role_name:"",addtime:""},rules:{username:[{required:!0,message:"请输入账号",trigger:"blur"}],nickname:[{required:!0,validator:function(e,t,a){""===t?a(new Error("真实姓名不能为空!")):t.lenght<2||12<t.lenght||!Object(i.c)(t)||Object(i.d)(t)?a(new Error("真实姓名规则为2~12位汉字!")):a()},trigger:"blur"}],mobile:[{required:!0,message:"请输入手机号",trigger:"blur"}],email:[{required:!0,validator:function(e,t,a){""===t?a(new Error("邮箱不能为空!")):Object(i.p)(t)?a():a(new Error("邮箱格式不正确!"))},trigger:"blur"}],role_name:[{required:!0,message:"请输入角色",trigger:"blur"}],addtime:[{required:!0,message:"请输入加入时间",trigger:"blur"}]}}},created:function(){},mounted:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.resetForm();case 2:return t.next=4,e.initData();case 4:case"end":return t.stop()}}),t)})))()},destroyed:function(){},methods:{resetForm:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$nextTick((function(){e.$refs.ruleForm&&(e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),e.ruleForm={username:"",nickname:"",mobile:"",email:"",role_name:"",addtime:""})}));case 2:case"end":return t.stop()}}),t)})))()},initData:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){var a,r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n.a.detail({});case 2:if(!(a=t.sent)||0!==a.code||!a.data){t.next=9;break}r=a.data,e.ruleForm={username:r.username,nickname:r.nickname,mobile:r.mobile,email:r.email,addtime:r.addtime,role_name:r.role_name},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)})))()},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;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a&&!e.loading)return e.loading=!0,delete(r=JSON.parse(JSON.stringify(e.ruleForm))).role_name,delete r.addtime,delete r.username,t.next=8,n.a.prefect(r);t.next=22;break;case 8:if(i=t.sent,e.loading=!1,!i||0!==i.code){t.next=14;break}e.$notify.success({title:"个人信息修改成功!",message:""}),t.next=20;break;case 14:if(i&&100<=i.code&&i.code<=104)return t.next=17,e.logout();t.next=19;break;case 17:t.next=20;break;case 19:e.$message.warning(i.message);case 20:t.next=24;break;case 22:return t.abrupt("return",!1);case 24:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()}}};a("90a6"),a("03a5"),a=a("2877"),a=Object(a.a)(o,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("div",{staticClass:"my-messagge-page pagePadding"},[t("div",{staticClass:"change"},[t("div",{staticClass:"title"},[e._v("我的信息")]),t("div",{staticClass:"change-main"},[t("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",rules:e.rules,"label-width":"110px"}},[t("el-row",{attrs:{gutter:10}},[t("el-col",{attrs:{span:24}},[t("el-form-item",{attrs:{label:"账户",prop:"username"}},[t("el-input",{attrs:{disabled:e.isDetail},model:{value:e.ruleForm.username,callback:function(t){e.$set(e.ruleForm,"username",t)},expression:"ruleForm.username"}})],1)],1),t("el-col",{attrs:{span:24}},[t("el-form-item",{attrs:{label:"姓名",prop:"nickname"}},[t("el-input",{attrs:{disabled:e.isDetail},model:{value:e.ruleForm.nickname,callback:function(t){e.$set(e.ruleForm,"nickname",t)},expression:"ruleForm.nickname"}})],1)],1),t("el-col",{attrs:{span:24}},[t("el-form-item",{attrs:{label:"手机号",prop:"mobile"}},[t("el-input",{attrs:{disabled:e.isDetail},model:{value:e.ruleForm.mobile,callback:function(t){e.$set(e.ruleForm,"mobile",t)},expression:"ruleForm.mobile"}})],1)],1),t("el-col",{attrs:{span:24}},[t("el-form-item",{attrs:{label:"邮箱",prop:"email"}},[t("el-input",{model:{value:e.ruleForm.email,callback:function(t){e.$set(e.ruleForm,"email",t)},expression:"ruleForm.email"}})],1)],1),t("el-col",{attrs:{span:24}},[t("el-form-item",{attrs:{label:"角色",prop:"role_name"}},[t("el-input",{attrs:{disabled:e.isDetail},model:{value:e.ruleForm.role_name,callback:function(t){e.$set(e.ruleForm,"role_name",t)},expression:"ruleForm.role_name"}})],1)],1),t("el-col",{attrs:{span:24}},[t("el-form-item",{attrs:{label:"加入时间",prop:"addtime"}},[t("el-input",{attrs:{disabled:e.isDetail},model:{value:e.ruleForm.addtime,callback:function(t){e.$set(e.ruleForm,"addtime",t)},expression:"ruleForm.addtime"}})],1)],1)],1)],1),t("el-col",{staticClass:"tc",attrs:{span:24}},[t("el-button",{attrs:{type:"primary",disabled:e.loading},on:{click:e.submitForm}},[e.loading?t("i",{staticClass:"el-icon-loading"}):e._e(),t("span",[e._v("提 交 信 息")])])],1)],1)])])}),[],!1,null,"705cd365",null);t.default=a.exports},"2cc4":function(e,t,a){},"2db4":function(e,t,a){"use strict";a("7f01")},"2ebb":function(e,t,a){"use strict";a.r(t);var r=a("1da1"),n=a("5530"),i=(a("96cf"),a("7db0"),a("d3b7"),a("a15b"),a("a9e3"),a("3264")),o=a("6c0a"),s=a("f5ed"),l=a("2f62"),c=a("50ec"),u=a("db30"),d=a("9f53");s={name:"capitalPool",mixins:[s.a,d.a],components:{ExTable:i.default,numberRange:c.a},computed:Object(n.a)(Object(n.a)({},Object(l.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"capitalPool"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),data:function(){return{traNo:"",status:"",exam_remark:"",importshowModel:!1,invoiceType:u.d,orderType:u.e,capitalFlowType:u.b,code:[],selectLoading:!1,activeOptions:[],name:"",contector:"",loading:!1,parmValue:{companyNo:"",total_low:"",total_up:"",inv_status:"",order_status:"",traNo:"",status:"3",start:"",end:"",page:1,size:15},tableData:[],table:{stripe:!0,border:!0,_defaultHeader_:["setcol"]},pageInfo:{size:15,curr:1,total:0},columns:[{prop:"traNo",label:"资金编号",width:"250px",fixed:"left"},{prop:"total_fee",label:"总额",width:"120px"},{prop:"companyNo",label:"认领企业编码",width:"130px"},{prop:"customer",label:"认领企业","min-width":"200px"},{prop:"inv_fee",label:"发票已核销金额",width:"120px"},{prop:"inv_used",label:"发票处理中的金额",width:"120px"},{prop:"winv_fee",label:"发票未核销金额",width:"120px"},{prop:"inv_status",label:"发票核销状态",width:"110px",_slot_:"inv_status"},{prop:"order_fee",label:"确认单已核销金额",width:"120px"},{prop:"order_used",label:"确认单处理中的金额",width:"135px"},{prop:"worder_fee",label:"确认单未核销金额",width:"120px"},{prop:"order_status",label:"确认单核销状态",width:"110px",_slot_:"order_status"},{prop:"addtime",label:"认领时间",sortable:!0,width:"145px"}]}},mounted:function(){this.searchList()},methods:{restSearch:function(){this.code=[],this.pageInfo={size:15,curr:1,total:0},this.parmValue={companyNo:"",total_low:"",total_up:"",inv_status:"",order_status:"",start:"",end:"",traNo:"",status:"3",page:1,size:15},this.searchList()},numReturned:function(e,t){0===t?(this.parmValue.total_low=e.lower,this.parmValue.total_up=e.online):1===t?(this.parmValue.pay_low=e.lower,this.parmValue.pay_up=e.online):(this.parmValue.inv_low=e.lower,this.parmValue.inv_up=e.online)},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.total_low&&""===e.parmValue.total_up||""===e.parmValue.total_low&&""!==e.parmValue.total_up)return e.$message.warning("资金总额区间有误!"),t.abrupt("return");t.next=3;break;case 3:return e.parmValue.companyNo=e.code.join(","),e.loading=!0,t.next=7,o.a.list(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=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)})))()},remoteMethod: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.selectLoading=!0,""!==e)return t.activeOptions=[],a.next=5,o.a.clist({page:1,size:100,company:e});a.next=18;break;case 5:if(!((r=a.sent)&&0===r.code&&r.data&&r.data.list)){a.next=10;break}t.activeOptions=r.data.list,a.next=16;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=16;break;case 15:t.$message.warning(r.message);case 16:a.next=19;break;case 18:t.activeOptions=[];case 19:t.selectLoading=!1;case 20:case"end":return a.stop()}}),a)})))()}}},d=a("2877"),i=Object(d.a)(s,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"capitalPool pagePadding"},[e.powers&&0<e.powers.length&&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"},attrs:{gutter:10}},[a("el-col",{staticStyle:{width:"470px"},attrs:{span:8}},[a("el-select",{staticClass:"setWidth",staticStyle:{width:"100%"},attrs:{multiple:"",filterable:"",size:e.searchSize,remote:"","multiple-limit":1,"reserve-keyword":"",placeholder:"请输入公司名称","remote-method":e.remoteMethod,loading:e.selectLoading},model:{value:e.code,callback:function(t){e.code=t},expression:"code"}},e._l(e.activeOptions,(function(e){return a("el-option",{key:e.companyNo,attrs:{label:e.companyName,value:e.companyNo}})})),1)],1),a("el-col",{staticStyle:{width:"282px"},attrs:{span:8}},[a("el-input",{attrs:{size:e.searchSize,placeholder:"请输入资金编号"},model:{value:e.parmValue.traNo,callback:function(t){e.$set(e.parmValue,"traNo",t)},expression:"parmValue.traNo"}})],1),a("el-col",{staticClass:"fr tr",staticStyle:{width:"66px"},attrs:{span:4}},[e.powers.some((function(e){return"002"==e}))?a("el-button",{attrs:{size:e.searchSize,type:"primary"},on:{click:e.searchList}},[e._v(" 刷新 ")]):e._e()],1),a("el-col",{staticClass:"fr tr",staticStyle:{width:"66px"},attrs:{span:4}},[e.powers.some((function(e){return"024"==e}))?a("el-button",{attrs:{type:"warning",size:e.searchSize},on:{click:e.restSearch}},[e._v(" 重置 ")]):e._e()],1)],1),a("el-row",{attrs:{gutter:10}},[a("el-col",{staticStyle:{width:"168px"},attrs:{span:7}},[a("el-select",{staticStyle:{width:"100%"},attrs:{size:e.searchSize,clearable:"",placeholder:"关联发票状态"},on:{change:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.parmValue.inv_status,callback:function(t){e.$set(e.parmValue,"inv_status",t)},expression:"parmValue.inv_status"}},e._l(e.invoiceType,(function(e){return a("el-option",{key:e.code,attrs:{label:e.name,value:e.code}})})),1)],1),a("el-col",{staticStyle:{width:"168px"},attrs:{span:7}},[a("el-select",{staticStyle:{width:"100%"},attrs:{size:e.searchSize,clearable:"",placeholder:"关联确认单状态"},on:{change:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.parmValue.order_status,callback:function(t){e.$set(e.parmValue,"order_status",t)},expression:"parmValue.order_status"}},e._l(e.orderType,(function(e){return a("el-option",{key:e.code,attrs:{label:e.name,value:e.code}})})),1)],1),a("el-col",{staticStyle:{width:"302px"},attrs:{span:6}},[a("number-range",{attrs:{start:e.parmValue.total_low,end:e.parmValue.total_up,type:1,width:"135px",title:"资金总额",size:e.searchSize},on:{numReturned:function(t){return e.numReturned(t,0)}}})],1),a("el-col",{staticClass:"fr tr",staticStyle:{width:"54px"},attrs:{span:4}},[a("el-button",{attrs:{type:"primary",size:e.searchSize,icon:"el-icon-search"},on:{click:e.searchList}})],1)],1)],1)]}},{key:"status",fn:function(t){var r=t.scope;return[a("el-tag",{attrs:{type:"4"==r.row.status?"danger":"3"==r.row.status?"success":"2"==r.row.status?"":"warning",size:"mini"},domProps:{textContent:e._s((e.capitalFlowType.find((function(e){return e.code==r.row.status}))||{}).name||"--")}})]}},{key:"inv_status",fn:function(t){return t=t.scope,["1"==t.row.inv_status?a("el-tag",{attrs:{size:"mini",type:"danger"}},[e._v("未核销")]):"2"==t.row.inv_status?a("el-tag",{attrs:{size:"mini",type:"warning"}},[e._v("部分核销")]):a("el-tag",{attrs:{size:"mini",type:"success"}},[e._v("全部核销")])]}},{key:"order_status",fn:function(t){return t=t.scope,["1"==t.row.order_status?a("el-tag",{attrs:{size:"mini",type:"danger"}},[e._v("未核销")]):"2"==t.row.order_status?a("el-tag",{attrs:{size:"mini",type:"warning"}},[e._v("部分核销")]):a("el-tag",{attrs:{size:"mini",type:"success"}},[e._v("全部核销")])]}}],null,!1,606201357)}):a("no-auth"),a("add-edit",{attrs:{"show-model":e.importshowModel},on:{refresh:e.searchList,cancel:function(t){e.importshowModel=!1}}}),a("add-edit1",{attrs:{id:e.modelId,"show-model":e.showModel,"is-detail":e.isDetail,traNo:e.traNo,exam_remark:e.exam_remark,status:e.status},on:{refresh:e.searchList,cancel:function(t){e.showModel=!1}}})],1)}),[],!1,null,"66dbc4e1",null);t.default=i.exports},"2ee3":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("a15b"),a("a9e3"),a("3264")),o=a("d79e"),s=a("4022"),l=a("f5ed"),c=a("2f62"),u=a("9f53");l={name:"group",mixins:[l.a,u.a],components:{ExTable:i.default,addEdit:o.default},computed:Object(n.a)(Object(n.a)({},Object(c.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"group"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),data:function(){return{loading:!0,showModel:!1,isDetail:!1,modelId:0,parmValue:{loginName:"",fullName:"",type:2,page:1,size:15},statusOptions:[{id:0,label:"禁用"},{id:1,label:"启用"}],tableData:[],table:{stripe:!0,border:!0,_defaultHeader_:["setcol"]},pageInfo:{size:15,curr:1,total:0},columns:[{prop:"group_name",label:"组名"},{prop:"userGroupList",label:"组员"},{prop:"group_remark",label:"备注"},{prop:"status",label:"状态",_slot_:"status"},{prop:"addtime",label:"创建时间",sortable:!0},{prop:"",label:"操作",fixed:"right",_noset_:!0,_slot_:"operation"}]}},mounted:function(){this.searchList()},methods:{restSearch:function(){this.pageInfo={size:10,curr:1,total:0},this.parmValue={status:"",level:"",role_name:"",page:1,size:10},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=10;break}e.tableData=a.data.list,e.tableData.map((function(e){return e.userGroupList=e.userlist.join(","),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)})))()}}},u=a("2877"),i=Object(u.a)(l,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"group pagePadding"},[e.powers&&0<e.powers.length&&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",{attrs:{span:24}},[e.powers.some((function(e){return"002"==e}))?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._e(),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,3658343133)}):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,"670eddbc",null);t.default=i.exports},3:function(e,t){},"306f":function(e,t,a){},"30a4":function(e,t,a){},"313b":function(e,t,a){},3206:function(e,t,a){},3264:function(e,t,a){"use strict";a.r(t);var r=a("ade3"),n=(a("4de4"),a("d3b7"),a("a434"),a("53fe")),i=a.n(n);n={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:[Boolean,Object],default:!1},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}))}}},data:function(){return{tableSelection:[]}}};Object(r.a)(n,"computed",{page_curr:function(){return this.page.curr},page_size:function(){return this.page.size},page_total:function(){return this.page.total}}),Object(r.a)(n,"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}}),Object(r.a)(n,"mounted",(function(){this.rowDrop(),this.columnDrop()})),Object(r.a)(n,"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,o=r.offsetWidth,s=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-o<(a=a<0?0:a)?n-o:a,e=i-s<(e=e<0?0:e)?i-s:e),r.style.left=a+"px",r.style.top=e+"px"},document.onmouseup=function(){document.onmousemove=null}}}}}),Object(r.a)(n,"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}},rowDrop:function(){var e=this,t=document.querySelector(".el-table__body-wrapper > 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("f111"),a("47d2"),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&&0<e.data.length?a("div",{staticClass:"Pagination",staticStyle:{"text-align":"right","margin-top":"10px"}},[a("el-pagination",{attrs:{"current-page":e.page.curr,"page-sizes":[15,50,100],"page-size":e.page.size,size:e.searchSize,layout:"total, sizes, prev, pager, next, jumper",total:e.page.total},on:{"size-change":function(t){return e.$emit("page-size-change",t)},"current-change":function(t){return e.$emit("page-curr-change",t)}}})],1):e._e()],1)}),[],!1,null,"78cd719c",null),t.default=a.exports},"327e":function(e,t,a){"use strict";var r=a("1b69"),n="Admin/";t.a={list:function(e,t){return Object(r.a)(n+"refundlist",e,"post",t)},clist:function(e,t){return Object(r.a)(n+"customerlist",e,"post",t)},add:function(e,t){return Object(r.a)(n+"refundcreate",e,"post",t)},detail:function(e,t){return Object(r.a)(n+"refundinfo",e,"post",t)},delete:function(e,t){return Object(r.a)(n+"refunddel",e,"post",t)},status:function(e,t){return Object(r.a)(n+"refundexam",e,"post",t)}}},"32c9":function(e,t,a){"use strict";a("d82d")},3387:function(e,t,a){"use strict";a("dfb0")},3638:function(e,t,a){"use strict";a("9214")},3904:function(e,t,a){"use strict";a.r(t);var r=a("53ca"),n=a("1da1"),i=(a("96cf"),a("a434"),a("d3b7"),a("159b"),a("a15b"),a("c740"),a("e9c4"),a("7b0b1")),o=a("1529"),s=a("61b8"),l=a("f5ed"),c=a("9f53"),u=(l={props:["id","showModel","refund_status","onces"],mixins:[l.a,c.a],data:function(){return{loading:!1,icon:"",count:0,tableData:[],showModelThis:this.showModel,multipleSelection:[],parmValue:{type:"1",page:1,size:15,relaNo:"",inv_type:"",back_type:"",refund_status:""}}},watch:{icon:function(e){e&&(this.showModelThis=!1,this.$emit("setVal",e))},showModel:function(e){this.showModelThis=e},showModelThis:function(e){e?this.searchList():this.$emit("cancel")}},methods:{handleSelectionChange:function(e){this.multipleSelection=e},restSearch:function(){this.parmValue.traNo="",this.parmValue.page=1,this.searchList()},searchList:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.multipleSelection=[],e.loading){t.next=22;break}return e.loading=!0,e.tableData=[],e.parmValue.companyNo=e.id,e.parmValue.refund_status=e.refund_status||"",t.next=8,s.a.list(e.parmValue);case 8:if(!((a=t.sent)&&0===a.code&&a.data&&a.data.list)){t.next=14;break}e.tableData=a.data.list,e.count=a.data.count,t.next=21;break;case 14:if(a&&100<=a.code&&a.code<=104)return t.next=17,e.logout();t.next=19;break;case 17:t.next=21;break;case 19:e.tableData=[],e.count=0;case 21:e.loading=!1;case 22:case"end":return t.stop()}}),t)})))()},closeModel:function(){},submitForm:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.onces&&1<e.multipleSelection.length?e.$message.warning("只能选择一条数据!"):(e.showModelThis=!1,e.$emit("refresh",e.multipleSelection));case 1:case"end":return t.stop()}}),t)})))()}}},a("2877"));l=Object(u.a)(l,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:"选择退款记录",center:!0,align:"left",top:"7vh",width:"1024px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)","append-to-body":""},on:{"update:visible":function(t){e.showModelThis=t},close:e.closeModel}},[t("el-card",{staticStyle:{height:"700px","margin-top":"-25px"}},[t("el-row",{attrs:{gutter:10}},[t("el-col",{staticStyle:{padding:"0 0 10px 0"},attrs:{span:24}},[t("el-col",{staticStyle:{width:"290px"},attrs:{span:8}},[t("el-input",{attrs:{placeholder:"请输入退款编号"},model:{value:e.parmValue.traNo,callback:function(t){e.$set(e.parmValue,"traNo",t)},expression:"parmValue.traNo"}},[t("el-button",{attrs:{slot:"append",icon:"el-icon-search"},on:{click:e.searchList},slot:"append"})],1)],1),t("el-col",{staticClass:"fr tr",staticStyle:{width:"160px"},attrs:{span:4}},[t("el-button",{attrs:{type:"primary"},on:{click:e.searchList}},[e._v(" 刷新 ")]),t("el-button",{attrs:{type:"warning"},on:{click:e.restSearch}},[e._v(" 重置 ")])],1)],1),t("el-col",{attrs:{span:24}},[t("el-table",{ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:e.tableData,stripe:"",border:"",size:"mini","max-height":"610","row-key":"id","expand-row-keys":e.expands},on:{"selection-change":e.handleSelectionChange}},[t("el-table-column",{attrs:{type:"selection",width:"45",fixed:"left",align:"center"}}),t("el-table-column",{attrs:{prop:"refundNo",label:"退款编号","show-overflow-tooltip":"",width:"180"}}),t("el-table-column",{attrs:{prop:"traNo",label:"原资金编号","show-overflow-tooltip":"",width:"230"}}),t("el-table-column",{attrs:{prop:"customerNo",label:"客户企业编码","show-overflow-tooltip":"",width:"130"}}),t("el-table-column",{attrs:{prop:"customer",label:"客户企业名称","show-overflow-tooltip":"","min-width":"170"}}),t("el-table-column",{attrs:{prop:"refund_fee",label:"退款总额度","show-overflow-tooltip":"",width:"120px"}}),t("el-table-column",{attrs:{prop:"back_fee",label:"退款认领额度","show-overflow-tooltip":"",width:"120"}}),t("el-table-column",{attrs:{prop:"addtime",label:"申请时间","show-overflow-tooltip":"",width:"150"}})],1)],1),t("el-col",{attrs:{span:24}},[t("el-row",[t("el-col",{attrs:{span:18}},[t("div",{staticClass:"Pagination",staticStyle:{"text-align":"center","margin-top":"12px"}},[t("el-pagination",{attrs:{"current-page":e.parmValue.page,"page-size":e.parmValue.size,size:e.searchSize,layout:"total, prev, pager, next, jumper",total:e.count},on:{"size-change":e.handleSizeChange,"current-change":e.handlePageChange}})],1)]),t("el-col",{staticStyle:{"text-align":"right"},attrs:{span:6}},[t("div",{staticStyle:{"margin-top":"12px"}},[t("el-button",{attrs:{type:"primary",size:"medium"},on:{click:e.submitForm}},[e._v("保 存 ")]),t("el-button",{attrs:{size:"medium"},on:{click:function(t){e.showModelThis=!1}}},[e._v(e._s(e.isDetail?"关 闭":"取 消"))])],1)])],1)],1)],1)],1)],1)}),[],!1,null,null,null).exports,o={name:"capitalClaim",props:["showModel","id","isDetail","logNo","exam_remark","status","trade_type"],components:{invoiceChangeDialog:o.a,refundChangeDialog:l},mixins:[c.a],data:function(){return{showInvoiceModel:!1,showRefundModel:!1,invoiceModelId:"",refundData:[],trade:null,options:[{value:"3",label:"通过"},{value:"4",label:"驳回"}],code:[],activeOptions:[],invTableData:[],invList:[],selectLoading:!1,activeNames:["2"],loading:!1,title:"资金详情",showModelThis:this.showModel,resData:null,claimForm:{companyNo:"",id:this.id,invid:"",total_fee:0},claimRules:{companyNo:[{required:!0,message:"请选择企业客户",trigger:"change"}],invid:[{required:!0,message:"请选择发票",trigger:"change"}],total_fee:[{required:!0,message:"请输入认领金额",trigger:"blur"}]},ruleForm:{status:"",remark:"",invid:this.id},rules:{status:[{required:!0,message:"请选择审核状态",trigger:"change"}],remark:[{required:!1,message:"请输入审核备注",trigger:"blur"}]}}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis:function(e){e||this.$emit("cancel")}},methods:{closeModel:function(){},deleteRow:function(e,t,a){var r=this;t.splice(e,1),this.claimForm.invid="",1===a?this.invTableData.forEach((function(e,t){r.claimForm.invid+=0===t?e.id:",".concat(e.id)})):this.refundData.forEach((function(e,t){r.claimForm.invid+=0===t?e.refundNo:",".concat(e.refundNo)})),this.$refs.claimForm.validateField("invid")},handleChange:function(){var e,t;this.claimForm.companyNo=this.code.join(","),this.$refs.claimForm.validateField("companyNo"),this.code===[]?(this.trade=null,this.claimRules.invid[0].required=!1):(e=this.code[0],-1!==(t=this.activeOptions.findIndex((function(t){return t.companyNo===e})))?(this.trade={trade_inv:this.activeOptions[t].trade_inv,trade_inv_status:this.activeOptions[t].trade_inv_status},this.claimRules.invid[0].required=!0):(this.trade=null,this.claimRules.invid[0].required=!1)),this.invTableData=[]},invoiceRefresh:function(e){var t=this;e&&1===e.length&&(this.invTableData=e),this.claimForm.invid="",this.invTableData.forEach((function(e,a){t.claimForm.invid+=0===a?e.id:",".concat(e.id)})),this.$refs.claimForm.validateField("invid")},refundRefresh:function(e){var t,a=this;0===this.refundData.length?this.refundData=e:(t=JSON.parse(JSON.stringify(this.refundData)),e.forEach((function(e){-1===t.findIndex((function(t){return t.refundNo===e.refundNo}))&&t.push(e)})),this.refundData=t,this.refundData.forEach((function(e,t){a.$set(a.refundData,t,e)}))),this.claimForm.invid="",this.refundData.forEach((function(e,t){a.claimForm.invid+=0===t?e.refundNo:",".concat(e.refundNo)})),this.$refs.claimForm.validateField("invid")},openInvoice:function(){this.code&&1===this.code.length?(this.invoiceModelId=this.code[0],this.showInvoiceModel=!0):this.$message.warning("请选择认领客户!")},openrefund:function(){this.code&&1===this.code.length?(this.invoiceModelId=this.code[0],this.showRefundModel=!0):this.$message.warning("请选择认领客户!")},remoteMethod:function(e){var t=this;return Object(n.a)(regeneratorRuntime.mark((function a(){var r;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(t.selectLoading=!0,""!==e)return t.activeOptions=[],a.next=5,i.a.clist({page:1,size:100,company:e});a.next=18;break;case 5:if(!((r=a.sent)&&0===r.code&&r.data&&r.data.list)){a.next=10;break}t.activeOptions=r.data.list,a.next=16;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=16;break;case 15:t.$message.warning(r.message);case 16:a.next=19;break;case 18:t.activeOptions=[];case 19:t.selectLoading=!1;case 20:case"end":return a.stop()}}),a)})))()},seChange:function(){"4"===this.ruleForm.status?this.rules.remark[0].required=!0:this.rules.remark[0].required=!1},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 t.next=2,e.resetForm();case 2:if("1"===e.trade_type?e.claimRules.invid[0].message="请选择退款记录!":e.claimRules.invid[0].message="请选择发票!",e.code=[],e.activeOptions=[],"039"===e.isDetail?(e.activeNames=["2"],e.title="资金认领"):"040"===e.isDetail?(e.activeNames=["3"],e.title="认领审核"):(e.activeNames=["1"],e.title="资金详情"),e.loading=!0,e.resData=null,-1===e.logNo.indexOf("-"))return t.next=11,e.tradelog();t.next=13;break;case 11:t.next=17;break;case 13:return t.next=15,e.initData();case 15:return t.next=17,e.getTradein();case 17:"1"===e.trade_type?e.claimRules.total_fee[0].required=!1:e.claimRules.total_fee[0].required=!0,e.loading=!1;case 19:case"end":return t.stop()}}),t)})))()},initData:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){var a,n,o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,i.a.detail({traNo:e.logNo});case 2:if(!(a=t.sent)||0!==a.code){t.next=17;break}if(e.resData=a.data,n=e.resData.userinfo,o=e.resData.btotal_fee,e.resData.btotal_fee=e.resData.total_fee,e.resData.total_fee=o,"039"===e.isDetail&&n&&!Array.isArray(n)&&"object"===Object(r.a)(n)&&""!==n.companyNo&&""!==n.companyName)return e.code=[n.companyNo],e.claimForm.companyNo=n.companyNo,t.next=14,e.remoteMethod(n.companyName);t.next=15;break;case 14:e.$refs.claimForm.validateField("companyNo");case 15: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.resData=null,e.$message.warning(a.message);case 24:case"end":return t.stop()}}),t)})))()},tradelog:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,i.a.tradelog({traNo:e.logNo});case 2:if(!(a=t.sent)||0!==a.code){t.next=9;break}e.resData=a.data,e.claimForm.total_fee="1"===e.status?+e.resData.total_fee:+e.resData.balance,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.resData=null,e.$message.warning(a.message);case 16:case"end":return t.stop()}}),t)})))()},getTradein:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){var a,n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.invList=[],t.next=3,i.a.tradein({traNo:e.logNo});case 3:if(!(a=t.sent)||0!==a.code||!a.data){t.next=9;break}n=a.data.inv,Array.isArray(n)||"object"!==Object(r.a)(n)||e.invList.push(n),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 16:case"end":return t.stop()}}),t)})))()},resetForm:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$nextTick((function(){e.$refs.claimForm&&"039"===e.isDetail?(e.$refs.claimForm.resetFields(),e.$refs.claimForm.clearValidate(),e.code=[],e.activeOptions=[],e.claimForm={companyNo:"",invid:"",id:e.id,total_fee:0},e.trade=null,e.claimRules.invid[0].required=!1):e.$refs.ruleForm&&"040"===e.isDetail&&(e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),e.ruleForm={status:"",remark:"",invid:e.id},e.seChange())}));case 2:case"end":return t.stop()}}),t)})))()},submitClaimForm:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.claimForm.validate(function(){var t=Object(n.a)(regeneratorRuntime.mark((function t(a){var r,n,o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!a){t.next=37;break}if(0===parseInt(e.claimForm.total_fee)&&"0"===e.trade_type)return e.$message.warning("认领资金不能为0!"),t.abrupt("return");t.next=5;break;case 5:if(e.refundData&&1===e.refundData.length&&parseFloat(e.resData.total_fee)<parseFloat(e.refundData[0].refund_fee)&&"1"===e.trade_type)return e.$message.warning("认领资金不能小于退款资金!"),t.abrupt("return");t.next=8;break;case 8:if(e.loading=!0,(r=JSON.parse(JSON.stringify(e.claimForm))).id=e.id,n={},"1"!==e.trade_type)return t.next=15,i.a.tradesave(r);t.next=18;break;case 15:n=t.sent,t.next=22;break;case 18:return o={id:e.id,refundid:r.invid,companyNo:r.companyNo},t.next=21,i.a.traderefund(o);case 21:n=t.sent;case 22:if(e.loading=!1,!n||0!==n.code){t.next=29;break}e.$notify.success({title:"资金认领成功!",message:""}),e.showModelThis=!1,e.$emit("refresh"),t.next=35;break;case 29:if(n&&100<=n.code&&n.code<=104)return t.next=32,e.logout();t.next=34;break;case 32:t.next=35;break;case 34:e.$message.warning(n.message);case 35:t.next=39;break;case 37:return t.abrupt("return",!1);case 39:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()},submitForm:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.ruleForm.validate(function(){var t=Object(n.a)(regeneratorRuntime.mark((function t(a){var r,n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a)return e.loading=!0,r=JSON.parse(JSON.stringify(e.ruleForm)),r={traNo:e.logNo,status:r.status,remark:r.remark},t.next=6,i.a.status(r);t.next=25;break;case 6:if(!(n=t.sent)||0!==n.code){t.next=13;break}e.$notify.success({title:"认领审核提交成功!",message:""}),e.showModelThis=!1,e.$emit("refresh"),t.next=23;break;case 13:if(1004!==n.code){t.next=17;break}e.$notify.warning({title:"认领审核提交失败!",message:"未到申请时间!"}),t.next=23;break;case 17:if(n&&100<=n.code&&n.code<=104)return t.next=20,e.logout();t.next=22;break;case 20:t.next=23;break;case 22:e.$message.warning(n.message);case 23:t.next=27;break;case 25:return t.abrupt("return",!1);case 27:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()}}},a("3fbf"),l=Object(u.a)(o,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:e.title,center:!0,align:"left",top:"15vh",width:"900px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)"},on:{"update:visible":function(t){e.showModelThis=t},close:e.closeModel}},[a("el-card",{staticClass:"add",staticStyle:{"margin-top":"-25px"}},[a("el-collapse",{model:{value:e.activeNames,callback:function(t){e.activeNames=t},expression:"activeNames"}},[a("el-collapse-item",{attrs:{title:"资金详情",name:"1"}},[null!==e.resData?a("el-row",{attrs:{gutter:20}},[a("el-col",{staticClass:"clear",attrs:{span:11,offset:1}},[a("div",{staticClass:"fp-title"},[e._v("流水编码:")]),a("div",{staticClass:"fp-name"},[e._v(e._s(e.resData.logNo))])]),a("el-col",{staticClass:"clear",attrs:{span:11}},[a("div",{staticClass:"fp-title"},[e._v("交易类型:")]),a("div",{staticClass:"fp-name"},[e._v(" "+e._s("1"===e.resData.trade_type?"支出":"收入")+" ")])]),a("el-col",{staticClass:"clear",attrs:{span:11,offset:1}},[a("div",{staticClass:"fp-title"},[e._v("对方公司:")]),a("div",{staticClass:"fp-name"},[e._v(e._s(e.resData.trade_out))])]),a("el-col",{staticClass:"clear",attrs:{span:11}},[a("div",{staticClass:"fp-title"},[e._v("对方账户:")]),a("div",{staticClass:"fp-name"},[e._v(e._s(e.resData.trade_account))])]),a("el-col",{staticClass:"clear",attrs:{span:11,offset:1}},[a("div",{staticClass:"fp-title"},[e._v("对方银行:")]),a("div",{staticClass:"fp-name"},[e._v(e._s(e.resData.trade_bank))])]),a("el-col",{staticClass:"clear",attrs:{span:11}},[a("div",{staticClass:"fp-title"},[e._v("交易时间:")]),a("div",{staticClass:"fp-name"},[e._v(e._s(e.resData.trade_time))])]),a("el-col",{staticClass:"clear",attrs:{span:23,offset:1}},[a("div",{staticClass:"fp-title"},[e._v("交易备注:")]),a("div",{staticClass:"fp-name"},[e._v(e._s(e.resData.trade_used))])]),a("el-col",{staticClass:"clear",attrs:{span:11,offset:1}},[a("div",{staticClass:"fp-title"},[e._v("交易金额:")]),a("div",{staticClass:"fp-name"},[e._v(e._s(e.resData.total_fee)+"元")])]),a("el-col",{staticClass:"clear",attrs:{span:11}},[a("div",{staticClass:"fp-title"},[e._v("认领金额:")]),a("div",{staticClass:"fp-name"},[e._v(e._s(e.resData.btra_fee)+"元")])]),e.resData&&e.resData.status&&"2"===e.resData.status||e.resData&&e.resData.status&&"4"===e.resData.status?a("el-col",{attrs:{span:24}},[e.resData.userinfo&&e.resData.userinfo.companyNo?a("el-row",{attrs:{gutter:20}},[a("el-col",{staticClass:"clear",attrs:{span:11,offset:1}},[a("div",{staticClass:"fp-title"},[e._v("认领企业编码:")]),a("div",{staticClass:"fp-name"},[e._v(e._s(e.resData.userinfo.companyNo))])]),a("el-col",{staticClass:"clear",attrs:{span:11}},[a("div",{staticClass:"fp-title"},[e._v("认领客户名称:")]),a("div",{staticClass:"fp-name"},[e._v(e._s(e.resData.userinfo.companyName))])])],1):e._e(),e.invList&&0<e.invList.length?a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.invList,stripe:"",border:"",size:"mini"}},[a("el-table-column",{attrs:{prop:"invNo",label:"发票编号","show-overflow-tooltip":"",width:"170"}}),a("el-table-column",{attrs:{prop:"inv_value",label:"发票额度","show-overflow-tooltip":"","min-width":"110"}}),a("el-table-column",{attrs:{label:"关联资金信息","show-overflow-tooltip":"",align:"center"}},[a("el-table-column",{attrs:{prop:"atrade_fee",label:"已核销金额","show-overflow-tooltip":"","min-width":"110"}}),a("el-table-column",{attrs:{prop:"wtrade_fee",label:"未核销金额","show-overflow-tooltip":"","min-width":"110"}}),a("el-table-column",{attrs:{label:"核销状态","show-overflow-tooltip":"","min-width":"95"},scopedSlots:e._u([{key:"default",fn:function(t){return["1"===t.row.trade_status?a("el-tag",{attrs:{type:"danger",size:"mini"}},[e._v("未核销")]):"2"===t.row.trade_status?a("el-tag",{attrs:{type:"warning",size:"mini"}},[e._v("部分核销")]):a("el-tag",{attrs:{type:"",size:"mini"}},[e._v("全部核销")])]}}],null,!1,3108470491)})],1),a("el-table-column",{attrs:{label:"关联确认单信息","show-overflow-tooltip":"",align:"center"}},[a("el-table-column",{attrs:{prop:"aorder_fee",label:"已核销金额","show-overflow-tooltip":"","min-width":"110"}}),a("el-table-column",{attrs:{prop:"worder_fee",label:"未核销金额","show-overflow-tooltip":"","min-width":"110"}}),a("el-table-column",{attrs:{label:"核销状态","show-overflow-tooltip":"","min-width":"95"},scopedSlots:e._u([{key:"default",fn:function(t){return["1"===t.row.order_status?a("el-tag",{attrs:{type:"danger",size:"mini"}},[e._v("未核销")]):"2"===t.row.order_status?a("el-tag",{attrs:{type:"warning",size:"mini"}},[e._v("部分核销")]):a("el-tag",{attrs:{type:"",size:"mini"}},[e._v("全部核销")])]}}],null,!1,1453022043)})],1),a("el-table-column",{attrs:{prop:"addtime",label:"创建时间","show-overflow-tooltip":"",width:"150"}}),"003"===e.isDetail?a("el-table-column",{attrs:{fixed:"right",label:"操作",width:"50"},scopedSlots:e._u([{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.deleteRow(t.$index,3)}}})])]}}],null,!1,3820773310)}):e._e()],1):e._e()],1):e._e()],1):e._e()],1),"039"===e.isDetail?a("el-collapse-item",{attrs:{title:"资金认领",name:"2"}},[a("el-form",{ref:"claimForm",staticClass:"demo-claimForm",staticStyle:{padding:"0 20px 0 10px"},attrs:{model:e.claimForm,"status-icon":"",rules:e.claimRules,"label-width":"90px"}},[a("el-row",[a("el-col",{attrs:{span:"0"===e.trade_type?16:24}},[a("el-form-item",{attrs:{label:"认领客户",prop:"companyNo"}},[a("el-select",{staticClass:"setWidth",staticStyle:{width:"50%"},attrs:{multiple:"",filterable:"",remote:"","multiple-limit":1,"reserve-keyword":"",placeholder:"请输入公司名称","remote-method":e.remoteMethod,loading:e.selectLoading},on:{change:e.handleChange},model:{value:e.code,callback:function(t){e.code=t},expression:"code"}},e._l(e.activeOptions,(function(e){return a("el-option",{key:e.companyNo,attrs:{label:e.companyName,value:e.companyNo}})})),1)],1)],1),"0"===e.trade_type?a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"认领金额",prop:"total_fee"}},[a("el-input-number",{staticStyle:{width:"100%"},attrs:{"step-strictly":"","controls-position":"right",precision:2,step:.01,min:0,max:e.resData&&e.resData.total_fee?e.resData.total_fee:0},model:{value:e.claimForm.total_fee,callback:function(t){e.$set(e.claimForm,"total_fee",t)},expression:"claimForm.total_fee"}})],1)],1):e._e()],1),e.trade&&1===e.trade.trade_inv_status&&"0"===e.trade_type?a("el-form-item",{staticClass:"noMargin",attrs:{label:"关联发票",size:"mini",prop:"invid","label-position":"top"}},[a("div",{staticStyle:{padding:"0 0 7px 0"}},[a("el-tag",{attrs:{type:"warning"}},[e._v("该企业客户已欠款"+e._s(e.trade.trade_inv)+"元,请关联以资金为依据开具的发票!")]),a("el-button",{staticClass:"fr",attrs:{type:"primary"},on:{click:e.openInvoice}},[e._v("选择发票")])],1),a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.invTableData,stripe:"",border:"",size:"mini"}},[a("el-table-column",{attrs:{prop:"invNo",label:"发票编号","show-overflow-tooltip":"",width:"170"}}),a("el-table-column",{attrs:{prop:"company",label:"企业名称","show-overflow-tooltip":"","min-width":"170"}}),a("el-table-column",{attrs:{prop:"contactor",label:"联系人","show-overflow-tooltip":"","min-width":"70"}}),a("el-table-column",{attrs:{prop:"apply_name",label:"处理人","show-overflow-tooltip":"","min-width":"70"}}),a("el-table-column",{attrs:{prop:"inv_value",label:"发票额度","show-overflow-tooltip":"","min-width":"110"}}),a("el-table-column",{attrs:{label:"关联资金信息","show-overflow-tooltip":"",align:"center"}},[a("el-table-column",{attrs:{prop:"atrade_fee",label:"已核销金额","show-overflow-tooltip":"","min-width":"110"}}),a("el-table-column",{attrs:{prop:"wtrade_fee",label:"未核销金额","show-overflow-tooltip":"","min-width":"110"}}),a("el-table-column",{attrs:{label:"核销状态","show-overflow-tooltip":"","min-width":"95"},scopedSlots:e._u([{key:"default",fn:function(t){return["1"===t.row.trade_status?a("el-tag",{attrs:{type:"danger",size:"mini"}},[e._v("未核销")]):"2"===t.row.trade_status?a("el-tag",{attrs:{type:"warning",size:"mini"}},[e._v("部分核销")]):a("el-tag",{attrs:{type:"",size:"mini"}},[e._v("全部核销")])]}}],null,!1,3108470491)})],1),a("el-table-column",{attrs:{prop:"addtime",label:"创建时间","show-overflow-tooltip":"",width:"150"}}),a("el-table-column",{attrs:{fixed:"right",label:"操作",width:"50"},scopedSlots:e._u([{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.deleteRow(t.$index,e.invTableData,1)}}})])]}}],null,!1,3081855087)})],1),a("invoice-change-dialog",{attrs:{id:e.invoiceModelId,"show-model":e.showInvoiceModel,type_check:"2",order_status:"",trade_status:"4",onces:!0},on:{refresh:e.invoiceRefresh,cancel:function(t){e.showInvoiceModel=!1}}})],1):e._e(),"1"===e.trade_type?a("el-form-item",{staticClass:"noMargin",staticStyle:{"margin-top":"-15px"},attrs:{label:"退票记录",size:"mini",prop:"invid","label-position":"top"}},[a("div",{staticStyle:{padding:"0 0 7px 0"}},[a("el-tag",{attrs:{type:"warning"}},[e._v("支出交易记录,需关联退款记录!")]),a("el-button",{staticClass:"fr",attrs:{type:"primary"},on:{click:e.openrefund}},[e._v("选择退款记录")])],1),a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.refundData,stripe:"",border:"",size:"mini"}},[a("el-table-column",{attrs:{prop:"refundNo",label:"退款编号","show-overflow-tooltip":"",width:"180"}}),a("el-table-column",{attrs:{prop:"traNo",label:"原资金编号","show-overflow-tooltip":"",width:"230"}}),a("el-table-column",{attrs:{prop:"customerNo",label:"客户企业编码","show-overflow-tooltip":"",width:"130"}}),a("el-table-column",{attrs:{prop:"customer",label:"客户企业名称","show-overflow-tooltip":"","min-width":"170"}}),a("el-table-column",{attrs:{prop:"refund_fee",label:"退款总额度","show-overflow-tooltip":"",width:"120px"}}),a("el-table-column",{attrs:{prop:"back_fee",label:"退款认领额度","show-overflow-tooltip":"",width:"120"}}),a("el-table-column",{attrs:{prop:"addtime",label:"申请时间","show-overflow-tooltip":"",width:"150"}}),a("el-table-column",{attrs:{fixed:"right",label:"操作",width:"50"},scopedSlots:e._u([{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.deleteRow(t.$index,e.refundData,2)}}})])]}}],null,!1,2529740013)})],1),a("refund-change-dialog",{attrs:{id:e.invoiceModelId,"show-model":e.showRefundModel,refund_status:"3",onces:!0},on:{refresh:e.refundRefresh,cancel:function(t){e.showRefundModel=!1}}})],1):e._e(),a("el-form-item",{staticClass:"noMargin",attrs:{size:"mini"}},[a("el-row",["4"===e.status?a("el-col",{attrs:{span:18}},[a("el-alert",{attrs:{title:"财务驳回理由:",type:"error",size:"mini",closable:!1,description:e.exam_remark,"show-icon":""}})],1):e._e(),a("el-col",{staticStyle:{"text-align":"right"},attrs:{span:"4"===e.status?6:24}},[a("el-button",{attrs:{size:"medium",type:"primary"},on:{click:e.submitClaimForm}},[e._v("保 存 ")]),a("el-button",{attrs:{size:"medium"},on:{click:function(t){e.showModelThis=!1}}},[e._v(" 取 消")])],1)],1)],1)],1)],1):e._e(),"040"===e.isDetail?a("el-collapse-item",{attrs:{title:"认领审核",name:"3"}},[a("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",staticStyle:{padding:"0 20px 0 10px"},attrs:{model:e.ruleForm,"status-icon":"",rules:e.rules,"label-width":"90px"}},[a("el-form-item",{attrs:{label:"审核状态",prop:"status"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择审核状态"},on:{change:e.seChange},model:{value:e.ruleForm.status,callback:function(t){e.$set(e.ruleForm,"status",t)},expression:"ruleForm.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-form-item",{attrs:{label:"审核备注",prop:"remark"}},[a("el-input",{attrs:{type:"textarea",maxlength:"250","show-word-limit":"",autosize:{minRows:6,maxRows:6}},model:{value:e.ruleForm.remark,callback:function(t){e.$set(e.ruleForm,"remark",t)},expression:"ruleForm.remark"}})],1),a("el-form-item",{staticStyle:{"text-align":"right"}},[a("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("保 存 ")]),a("el-button",{on:{click:function(t){e.showModelThis=!1}}},[e._v(" 取 消")])],1)],1)],1):e._e()],1)],1)],1)}),[],!1,null,"ed32e45e",null);t.default=l.exports},"399c":function(e,t,a){"use strict";a("cc57")},"3aca":function(e,t,a){"use strict";a("313b")},"3b07":function(e,t,a){"use strict";a("c8a8")},"3c00":function(e,t,a){"use strict";var r=a("1b69");t.a={list:function(e,t){return Object(r.a)("Admin/supplierlist",e,"post",t)},detail:function(e,t){return Object(r.a)("Admin/supplierinfo",e,"post",t)}}},"3de5":function(e,t,a){},"3ef2":function(e,t,a){"use strict";var r=a("1b69"),n="Admin/";t.a={list:function(e,t){return Object(r.a)(n+"paymentlist",e,"post",t)},supplierlist:function(e,t){return Object(r.a)(n+"supplierlist",e,"post",t)},paymentcgdlist:function(e,t){return Object(r.a)(n+"paymentcgdlist",e,"post",t)},status:function(e,t){return Object(r.a)(n+"paymentstatus",e,"post",t)},again:function(e,t){return Object(r.a)(n+"paymentaduit",e,"post",t)},add:function(e,t){return Object(r.a)(n+"paymentadd",e,"post",t)},detail:function(e,t){return Object(r.a)(n+"paymentpayinfo",e,"post",t)},companyall:function(e,t){return Object(r.a)(n+"companyall",e,"post",t)},invoiceadd:function(e,t){return Object(r.a)(n+"invoiceadd",e,"post",t)},invoiceinfo:function(e,t){return Object(r.a)(n+"invoiceinfo",e,"post",t)},companydetail:function(e,t){return Object(r.a)(n+"companyinfo",e,"post",t)},invoicedel:function(e,t){return Object(r.a)(n+"invoicedel",e,"post",t)},invoicesave:function(e,t){return Object(r.a)(n+"invoicesave",e,"post",t)},invoicecheck:function(e,t){return Object(r.a)(n+"invoicecheck",e,"post",t)},update:function(e,t){return Object(r.a)(n+"companysave",e,"post",t)},invoicestatus:function(e,t){return Object(r.a)(n+"invoicestatus",e,"post",t)},invoiceexam:function(e,t){return Object(r.a)(n+"invoiceexam",e,"post",t)},save:function(e,t){return Object(r.a)(n+"paymentpaysave",e,"post",t)},ratelist:function(e,t){return Object(r.a)(n+"ratelist",e,"post",t)},paymentexam:function(e,t){return Object(r.a)(n+"paymentexam",e,"post",t)}}},"3ef8":function(e,t,a){"use strict";a("736e")},"3fbf":function(e,t,a){"use strict";a("9d1a")},4:function(e,t){},4022:function(e,t,a){"use strict";var r=a("1b69"),n="Admin/";t.a={add:function(e,t){return Object(r.a)(n+"groupadd",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+"grouplist",e,"post",t)},detail:function(e,t){return Object(r.a)(n+"groupinfo",e,"post",t)},update:function(e,t){return Object(r.a)(n+"groupsave",e,"post",t)},status:function(e,t){return Object(r.a)(n+"groupstatus",e,"post",t)},accountall:function(e,t){return Object(r.a)(n+"userall",e,"post",t)}}},4059:function(e,t,a){},"409f":function(e,t,a){"use strict";a("07b9")},4195:function(e,t,a){},"41a1":function(e,t,a){"use strict";a.r(t);var r=a("1da1"),n=a("5530"),i=(a("96cf"),a("7db0"),a("d3b7"),a("b0c0"),a("a15b"),a("a9e3"),a("3264")),o=a("ba6c"),s=a("f5ed"),l=a("7d27"),c=a("50ec"),u=a("db30"),d=a("2f62"),p=a("9f53");s={name:"invoicePool",mixins:[s.a,p.a],components:{ExTable:i.default,PeriodDatePicker:l.a,numberRange:c.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"invoicePool"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),data:function(){return{orderType:u.e,capitalType:u.c,billType:[{code:"1",name:"确认单开票"},{code:"2",name:"资金开票-资金未认领"},{code:"3",name:"资金开票-资金已认领"}],code:[],selectLoading:!1,activeOptions:[],name:"",contector:"",loading:!1,showModel:!1,isDetail:!1,modelId:0,parmValue:{companyNo:"",order_status:"",trade_status:"",total_low:"",total_up:"",starttime:"",endtime:"",type_check:"",status:"",invNo:"",page:1,size:15},tableData:[],table:{stripe:!0,border:!0,_defaultHeader_:["setcol"]},pageInfo:{size:15,curr:1,total:0},columns:[{prop:"invNo",label:"发票编号",fixed:"left",width:"180px"},{prop:"inv_in",label:"公司编码",width:"130px"},{prop:"company",label:"公司名称","min-width":"170px"},{prop:"kp_company",label:"销售方开票公司名称","min-width":"180px"},{prop:"type_check",label:"开票类型",_slot_:"type_check",width:"150px"},{prop:"inv_value",label:"发票额度",width:"120px"},{prop:"atrade_fee",label:"资金已核销金额",width:"120px"},{prop:"fund_used",label:"资金处理中的金额",width:"120px"},{prop:"wtrade_fee",label:"资金待核销金额",width:"120px"},{prop:"trade_status",label:"关联资金状态",_slot_:"trade_status",width:"120px"},{prop:"aorder_fee",label:"确认单已核销金额",width:"120px"},{prop:"order_used",label:"确认单处理中的金额",width:"130px"},{prop:"worder_fee",label:"确认单待核销金额",width:"120px"},{prop:"order_status",label:"关联确认单状态",_slot_:"order_status",width:"120px"},{prop:"addtime",label:"创建时间",sortable:!0,width:"150px"}]}},mounted:function(){this.searchList()},methods:{restSearch:function(){this.code=[],this.pageInfo={size:15,curr:1,total:0},this.parmValue={companyNo:"",order_status:"",trade_status:"",total_low:"",total_up:"",starttime:"",endtime:"",type_check:"",status:"",invNo:"",page:1,size:15},this.searchList()},timeReturned: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.startTime?t.parmValue.starttime=e.startTime:t.parmValue.starttime="",""!==e.endTime?t.parmValue.endtime=e.endTime:t.parmValue.endtime="",""!==t.parmValue.starttime&&""!==t.parmValue.endtime)return t.parmValue.page=1,a.next=6,t.searchList();a.next=6;break;case 6:case"end":return a.stop()}}),a)})))()},openModal:function(e,t,a,r){this.contector=a,this.name=t,this.showModel=!0,this.modelId=e,this.isDetail=r},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(a){i.next=2;break}return i.abrupt("return");case 2:return i.next=4,n.$confirm("确定要改为".concat("1"===t?"禁用":"启用","?"),{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(r.a)(regeneratorRuntime.mark((function a(){var r,i;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return r={roleid:e,status:"1"===t?"0":"1"},a.next=3,o.a.delete(r);case 3:if(!(i=a.sent)||0!==i.code){a.next=9;break}n.$notify.success({title:"状态修改成功",message:""}),n.searchList(),a.next=15;break;case 9:if(i&&100<=i.code&&i.code<=104)return a.next=12,n.logout();a.next=14;break;case 12:a.next=15;break;case 14:n.$message.warning(i.message);case 15:case"end":return a.stop()}}),a)})))).catch((function(){}));case 4:case"end":return i.stop()}}),i)})))()},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.starttime&&""===e.parmValue.endtime||""===e.parmValue.starttime&&""!==e.parmValue.endtime)return e.$message.warning("时间区间有误!"),t.abrupt("return");t.next=3;break;case 3:if(""!==e.parmValue.total_low&&""===e.parmValue.total_up||""===e.parmValue.total_low&&""!==e.parmValue.total_up)return e.$message.warning("发票总额区间有误!"),t.abrupt("return");t.next=6;break;case 6:return e.loading=!0,e.parmValue.companyNo=e.code.join(","),t.next=10,o.a.list(e.parmValue);case 10:if(!(a=t.sent)||0!==a.code||!a.data){t.next=16;break}e.tableData=a.data.list,e.pageInfo.total=Number(a.data.count),t.next=23;break;case 16:if(a&&100<=a.code&&a.code<=104)return t.next=19,e.logout();t.next=21;break;case 19:t.next=23;break;case 21:e.tableData=[],e.pageInfo.total=0;case 23:e.loading=!1;case 24:case"end":return t.stop()}}),t)})))()},remoteMethod: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.selectLoading=!0,""!==e)return t.activeOptions=[],a.next=5,o.a.clist({page:1,size:100,company:e});a.next=18;break;case 5:if(!((r=a.sent)&&0===r.code&&r.data&&r.data.list)){a.next=10;break}t.activeOptions=r.data.list,a.next=16;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=16;break;case 15:t.$message.warning(r.message);case 16:a.next=19;break;case 18:t.activeOptions=[];case 19:t.selectLoading=!1;case 20:case"end":return a.stop()}}),a)})))()}}},p=a("2877"),i=Object(p.a)(s,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"invoicePool pagePadding"},[e.powers&&0<e.powers.length&&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"},attrs:{gutter:10}},[a("el-col",{staticStyle:{width:"460px"},attrs:{span:8}},[a("el-select",{staticClass:"setWidth",staticStyle:{width:"100%"},attrs:{multiple:"",filterable:"",size:e.searchSize,remote:"","multiple-limit":1,"reserve-keyword":"",placeholder:"请输入公司名称","remote-method":e.remoteMethod,loading:e.selectLoading},model:{value:e.code,callback:function(t){e.code=t},expression:"code"}},e._l(e.activeOptions,(function(e){return a("el-option",{key:e.companyNo,attrs:{label:e.companyName,value:e.companyNo}})})),1)],1),a("el-col",{staticStyle:{width:"290px"},attrs:{span:8}},[a("el-input",{attrs:{size:e.searchSize,placeholder:"请输入发票编号"},model:{value:e.parmValue.invNo,callback:function(t){e.$set(e.parmValue,"invNo",t)},expression:"parmValue.invNo"}})],1),a("el-col",{staticClass:"fr tr",staticStyle:{width:"66px"},attrs:{span:4}},[e.powers.some((function(e){return"002"==e}))?a("el-button",{attrs:{size:e.searchSize,type:"primary"},on:{click:e.searchList}},[e._v(" 刷新 ")]):e._e()],1)],1),a("el-row",{staticStyle:{"padding-bottom":"10px"},attrs:{gutter:10}},[a("el-col",{staticStyle:{width:"170px"},attrs:{span:7}},[a("el-select",{staticStyle:{width:"100%"},attrs:{size:e.searchSize,clearable:"",placeholder:"关联资金状态"},on:{change:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.parmValue.trade_status,callback:function(t){e.$set(e.parmValue,"trade_status",t)},expression:"parmValue.trade_status"}},e._l(e.capitalType,(function(e){return a("el-option",{key:e.code,attrs:{label:e.name,value:e.code}})})),1)],1),a("el-col",{staticStyle:{width:"340px"},attrs:{span:6}},[a("number-range",{attrs:{start:e.parmValue.total_low,end:e.parmValue.total_up,type:1,width:"154px",title:"资金总额",size:e.searchSize},on:{numReturned:function(t){return e.numReturned(t,0)}}})],1),a("el-col",{staticStyle:{width:"170px"},attrs:{span:7}},[a("el-select",{staticStyle:{width:"100%"},attrs:{size:e.searchSize,clearable:"",placeholder:"开票类型"},on:{change:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.parmValue.type_check,callback:function(t){e.$set(e.parmValue,"type_check",t)},expression:"parmValue.type_check"}},e._l(e.billType,(function(e){return a("el-option",{key:e.code,attrs:{label:e.name,value:e.code}})})),1)],1),a("el-col",{staticClass:"fr tr",staticStyle:{width:"66px"},attrs:{span:4}},[e.powers.some((function(e){return"024"==e}))?a("el-button",{attrs:{type:"warning",size:e.searchSize},on:{click:e.restSearch}},[e._v(" 重置 ")]):e._e()],1)],1),a("el-row",{attrs:{gutter:10}},[a("el-col",{staticStyle:{width:"170px"},attrs:{span:7}},[a("el-select",{staticStyle:{width:"100%"},attrs:{size:e.searchSize,clearable:"",placeholder:"关联确认单状态"},on:{change:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.parmValue.order_status,callback:function(t){e.$set(e.parmValue,"order_status",t)},expression:"parmValue.order_status"}},e._l(e.orderType,(function(e){return a("el-option",{key:e.code,attrs:{label:e.name,value:e.code}})})),1)],1),a("el-col",{staticStyle:{width:"340px"},attrs:{span:6}},[a("period-date-picker",{attrs:{start:e.parmValue.starttime,end:e.parmValue.endtime,type:1,width:"154px",size:e.searchSize},on:{timeReturned:function(t){return e.timeReturned(t)}}})],1),a("el-col",{staticClass:"fr tr",staticStyle:{width:"54px"},attrs:{span:4}},[a("el-button",{attrs:{size:e.searchSize,type:"primary",icon:"el-icon-search"},on:{click:e.searchList}})],1)],1)],1)]}},{key:"trade_status",fn:function(t){return t=t.scope,["1"==t.row.trade_status?a("el-tag",{attrs:{size:"mini",type:"danger"}},[e._v("未核销")]):"2"==t.row.trade_status?a("el-tag",{attrs:{size:"mini",type:"warning"}},[e._v("部分核销")]):a("el-tag",{attrs:{size:"mini",type:"success"}},[e._v("全部核销")])]}},{key:"type_check",fn:function(t){var r=t.scope;return[a("el-tag",{attrs:{size:"mini"},domProps:{textContent:e._s((e.billType.find((function(e){return e.code==r.row.type_check}))||{}).name||"--")}})]}},{key:"order_status",fn:function(t){return t=t.scope,["1"==t.row.order_status?a("el-tag",{attrs:{size:"mini",type:"danger"}},[e._v("未核销")]):"2"==t.row.order_status?a("el-tag",{attrs:{size:"mini",type:"warning"}},[e._v("部分核销")]):a("el-tag",{attrs:{size:"mini",type:"success"}},[e._v("全部核销")])]}},{key:"operation",fn:function(t){var r=t.scope;return[e.powers.some((function(e){return"007"==e}))?a("el-link",{staticStyle:{margin:"0 5px"},attrs:{type:"primary",size:e.tablebtnSize,underline:!1},on:{click:function(t){return e.openModal(r.row.id,r.row.name,r.row.contector,!0)}}},[e._v(" 详情 ")]):e._e()]}}],null,!1,3742723465)}):a("no-auth")],1)}),[],!1,null,"28a81a8b",null);t.default=i.exports},"41c1":function(e,t,a){},4288:function(e,t,a){},"42d5":function(e,t,a){"use strict";a("bfb4")},"431b":function(e,t,a){},"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("bf2a"),o=a("6a1e"),s=a("9f53");i={name:"Login",components:{SocialSign:i.a},mixins:[s.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.g)(t)?a():a(new Error("手机号不正确!"))}}],code:[{required:!0,trigger:"blur",validator:function(e,t,a){""===t?a(new Error("验证码不能为空!")):Object(n.i)(t)&&6===t.length?a():a(new Error("验证码应为6位数字!"))}}]},loginFormY:{newPassword:"",confirmPassword:""},loginRulesY:{newPassword:[{required:!0,trigger:"blur",validator:function(e,t,a){""===t?a(new Error("新密码不能为空!")):!Object(n.b)(t)||t.length<6||16<t.length?a(new Error("新密码为6-16位数字字母组合!")):Object(n.i)(t)?a(new Error("新密码不能为纯数字!")):Object(n.o)(t)?a(new Error("新密码不能为纯字母!")):a()}}],confirmPassword:[{required:!0,trigger:"blur",validator:function(t,a,r){""===a?r(new Error("确认密码不能为空!")):e.loginFormY.newPassword!==a?r(new Error("确认密码与新密码不一致!")):r()}}]},codeType:"code",capsTooltip:!1,loading:!1,showDialog:!1,redirect:void 0,otherQuery:{}}},created:function(){},mounted:function(){""===this.loginFormX.mobile&&this.$refs.mobile.focus(),""===this.loginFormX.code&&this.$refs.code.focus()},destroyed:function(){},methods:{modifyPostLevel:function(e){this.step=e},phoneErr:function(e){e||this.$refs.loginFormX.validateField("mobile")},checkCapslock:function(e){e=e.key,this.capsTooltip=e&&1===e.length&&"A"<=e&&e<="Z"},handleLoginX:function(){var e=this;this.$refs.loginFormX.validate((function(t){if(!t)return!1;e.step++}))},handleLoginY:function(){var e=this;this.$refs.loginFormY.validate((function(t){if(!t)return!1;e.loading||(e.loading=!0,t={username:e.loginFormX.username,mobile:e.loginFormX.mobile,code:e.loginFormX.code,password:e.loginFormY.newPassword},o.a.resetpwd(t).then(function(){var t=Object(r.a)(regeneratorRuntime.mark((function t(a){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!a||0!==a.code){t.next=6;break}e.loading=!1,e.step++,e.setTime(),t.next=13;break;case 6:if(a&&100<=a.code&&a.code<=104)return t.next=9,e.logout();t.next=11;break;case 9:t.next=13;break;case 11:e.$message.warning(a.message),e.loading=!1;case 13:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()))}))},setTime:function(){var e=this;this.timer=setInterval((function(){0!==e.num?e.num--:e.timer&&(clearInterval(e.timer),e.num=3,e.gotoLogin())}),1e3)},gotoLogin:function(){window.vm.$router.replace("/login")}}},a("ebdd"),a("672e"),s=a("2877"),a=Object(s.a)(i,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"forget-password"},[a("div",{staticClass:"forget-main"},[a("div",{staticClass:"my-card"},[e._m(0),a("div",{staticStyle:{margin:"8px 0 35px 0"}},[a("el-steps",{attrs:{active:e.step,simple:"","process-status":"finish","finish-status":"success"}},e._l(e.stepList,(function(e,t){return a("el-step",{key:t,attrs:{title:e}})})),1)],1),0===e.step?a("div",[a("el-form",{ref:"loginFormX",staticClass:"login-form",attrs:{model:e.loginFormX,rules:e.loginRulesX,autocomplete:"on","label-position":"left","label-width":"95px"}},[a("el-form-item",{attrs:{prop:"username",label:"账号:"}},[a("el-input",{ref:"username",attrs:{placeholder:"账号",name:"username",type:"text",tabindex:"1",autocomplete:"on"},model:{value:e.loginFormX.username,callback:function(t){e.$set(e.loginFormX,"username",t)},expression:"loginFormX.username"}})],1),a("el-form-item",{attrs:{prop:"mobile",label:"手机号:"}},[a("el-input",{ref:"mobile",attrs:{placeholder:"手机号",name:"mobile",type:"text",tabindex:"1",autocomplete:"on"},model:{value:e.loginFormX.mobile,callback:function(t){e.$set(e.loginFormX,"mobile",t)},expression:"loginFormX.mobile"}})],1),a("el-form-item",{staticClass:"code-sign",attrs:{prop:"code",label:"验证码:"}},[a("ul",{staticClass:"code-main"},[a("li",[a("el-input",{ref:"code",attrs:{placeholder:"验证码",name:"code",type:"text",tabindex:"1",autocomplete:"on"},model:{value:e.loginFormX.code,callback:function(t){e.$set(e.loginFormX,"code",t)},expression:"loginFormX.code"}})],1),a("li",[a("SocialSign",{attrs:{mobile:e.loginFormX.mobile},on:{phoneErr:e.phoneErr}})],1)])]),a("el-button",{staticStyle:{width:"100%","margin-top":"10px"},attrs:{type:"primary"},nativeOn:{click:function(t){return t.preventDefault(),e.handleLoginX(t)}}},[e._v("下一步")])],1)],1):1===e.step?a("div",[a("el-form",{ref:"loginFormY",staticClass:"login-form",attrs:{model:e.loginFormY,rules:e.loginRulesY,autocomplete:"on","label-position":"left","label-width":"100px"}},[a("el-form-item",{attrs:{prop:"newPassword",label:"新密码:"}},[a("el-input",{ref:"newPassword",attrs:{placeholder:"6-16位数字字母组合",name:"newPassword",type:"password",tabindex:"1",autocomplete:"on"},model:{value:e.loginFormY.newPassword,callback:function(t){e.$set(e.loginFormY,"newPassword",t)},expression:"loginFormY.newPassword"}})],1),a("el-form-item",{attrs:{prop:"confirmPassword",label:"确认密码:"}},[a("el-input",{ref:"confirmPassword",attrs:{placeholder:"6-16位数字字母组合",name:"confirmPassword",type:"password",tabindex:"1",autocomplete:"on"},model:{value:e.loginFormY.confirmPassword,callback:function(t){e.$set(e.loginFormY,"confirmPassword",t)},expression:"loginFormY.confirmPassword"}})],1),a("el-button-group",{staticStyle:{"margin-top":"10px"}},[a("el-button",{staticStyle:{width:"140px"},attrs:{type:"primary",disabled:e.loading,icon:"el-icon-arrow-left"},nativeOn:{click:function(t){t.preventDefault(),e.step=0}}},[e._v("上一步")]),a("el-button",{staticStyle:{width:"140px"},attrs:{type:"primary",loading:e.loading},nativeOn:{click:function(t){return t.preventDefault(),e.handleLoginY(t)}}},[e._v("下一步"),a("i",{staticClass:"el-icon-arrow-right el-icon--right"})])],1)],1)],1):a("div",{staticClass:"success-card"},[e._m(1),a("div",{staticClass:"teps-title"},[e._v("恭喜你,新密码设置成功!")]),a("div",{staticClass:"teps-time"},[a("span",[e._v(e._s(e.num))]),e._v("秒后自动返回 ")])])])])])}),[function(){var e=this.$createElement;e=this._self._c||e;return e("div",{staticClass:"title-container"},[e("h3",{staticClass:"title"},[this._v("设置新登录密码")])])},function(){var e=this.$createElement;e=this._self._c||e;return e("div",{staticClass:"success-icon"},[e("i",{staticClass:"el-icon-success"})])}],!1,null,"bc4a2840",null);t.default=a.exports},"44e6":function(e,t,a){},4580:function(e,t,a){"use strict";a.r(t);var r=a("1da1"),n=(a("96cf"),a("5bcd")),i=a("9218"),o=a("08ff");n={name:"orderRecord",props:["showModel","id","isDetail","dstatus","payNo","companyNo"],components:{addView:n.default,stepBar:i.default,receipt:o.default},data:function(){return{activeNames:"3",newTime:0,activeName:"-1",showView:!0,loading:!1,title:"付款回执",showModelThis:this.showModel}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis:function(e){e||this.$emit("cancel")}},methods:{closeModel:function(){},refreshAll:function(){this.showModelThis=!1,this.$emit("refresh")},initForm:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.changea();case 2:case"end":return t.stop()}}),t)})))()},changea:function(){this.newTime=(new Date).valueOf()}}},a("b8a8"),i=a("2877"),o=Object(i.a)(n,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:e.title,center:!0,align:"left",top:"10vh",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:e.closeModel}},[t("el-card",{staticStyle:{"margin-top":"-15px",height:"685px"}},[t("stepBar",{attrs:{id:e.modelId,payNo:e.payNo,dstatus:e.dstatus},on:{refresh:e.searchList}}),t("el-collapse",{attrs:{accordion:""},model:{value:e.activeNames,callback:function(t){e.activeNames=t},expression:"activeNames"}},[t("el-collapse-item",{attrs:{title:"对账详情",name:"1"}},[t("add-view",{attrs:{id:e.id,isDetail:e.isDetail,newTime:e.newTime,companyNo:e.companyNo,payNo:e.payNo},on:{refreshAll:e.refreshAll}})],1),t("el-collapse-item",{attrs:{title:"付款回执",name:"3"}},[t("receipt",{attrs:{id:e.id,newTime:e.newTime,dstatus:e.dstatus,payNo:e.payNo},on:{refreshAll:e.refreshAll}})],1)],1)],1)],1)}),[],!1,null,"b3783224",null);t.default=o.exports},"475b":function(e,t,a){"use strict";a("759a")},"47d2":function(e,t,a){"use strict";a("191e")},"4a35":function(e,t,a){"use strict";a.r(t);var r=a("1da1"),n=(a("96cf"),a("d3b7"),a("159b"),{name:"orderRecord",props:["showModel","id","isDetail","dstatus","payNo","companyNo","pay_status","remark"],components:{addView:a("5bcd").default},data:function(){return{activeNames:["1"],newTime:0,activeName:"-1",loading:!1,title:"",showModelThis:this.showModel}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis:function(e){e||this.$emit("cancel")}},methods:{closeModel:function(){},refreshAll:function(){this.showModelThis=!1,this.$emit("refresh")},setTotal:function(e){if(!(0<e.length))return[];e.forEach((function(e){}))},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:"003"===e.isDetail?e.title="添加订单对账":"005"===e.isDetail?e.title="修改订单对账":"007"===e.isDetail&&(e.title="订单对账详情"),e.changea(),e.loading=!1;case 4:case"end":return t.stop()}}),t)})))()},changea:function(){this.newTime=(new Date).valueOf()}}});a("a95e"),a=a("2877"),a=Object(a.a)(n,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:e.title,center:!0,align:"left",top:"10vh",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:e.closeModel}},[t("el-card",{staticStyle:{"margin-top":"-15px",height:"685px"}},["2"===e.dstatus?t("div",{staticStyle:{margin:"0 0 15px 0"},attrs:{span:18}},[t("el-alert",{attrs:{title:"业务驳回理由:",type:"error",size:"mini",closable:!1,description:e.remark,"show-icon":""}})],1):e._e(),t("add-view",{attrs:{id:e.id,isDetail:e.isDetail,newTime:e.newTime,payNo:e.payNo,dstatus:e.dstatus,pay_status:e.pay_status},on:{refreshAll:e.refreshAll}})],1)],1)}),[],!1,null,"bcf7186c",null);t.default=a.exports},"4ac4":function(e,t,a){},"4c1f":function(e,t,a){"use strict";var r=a("1b69");t.a={list:function(e,t){return Object(r.a)("Admin/versionlist",e,"post",t)}}},"4e97":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("159b"),a("d81d"),a("b680"),a("1b69")),o={list:function(e,t){return Object(i.a)("Admin/paymentthinfo",e,"post",t)}},s=a("3264"),l=a("f5ed"),c=a("9f53"),u=a("2f62");s={name:"pordeRGoods",components:{ExTable:s.default},mixins:[l.a,c.a],computed:Object(n.a)(Object(n.a)({},Object(u.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"pordeRGoods"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),data:function(){return{selectKlist:[{code:"1",name:"采购单编码"},{code:"2",name:"确认单号"},{code:"3",name:"确认单产品单号"}],code:[],showModel1:!1,showModel2:!1,selectLoading:!1,activeOptions:[],selection:[],th_status_list:[{value:"1",label:"已完成"},{value:"2",label:"进行中"},{value:"3",label:"已取消"}],statusOptions:[{id:"0",label:"禁用"},{id:"1",label:"启用"}],pickerOptions:{disabledDate:function(e){var t=(new Date).valueOf();t=864e5*parseInt(t/864e5);return e.getTime()<=t}},loading:!1,modelId:0,parmValue:{status:"",type:"1",company:"",codeNo:"",page:1,size:15},formValue:{name:"",page:1,size:100},tableData:[],table:{stripe:!0,border:!0,_defaultHeader_:["setcol"]},pageInfo:{size:15,curr:1,total:0},columns:[{prop:"thNo",label:"退货单号",width:"125px",fixed:"left"},{prop:"th_status",label:"退货状态",_slot_:"th_status",width:"75px"},{prop:"th_qrdNo",label:"确认单号",width:"135px"},{prop:"th_qrdcpNo",label:"确认单产品号",width:"155px"},{prop:"th_cgdNo",label:"采购单号",width:"135px"},{prop:"th_company",label:"退货供货商","min-width":"120px"},{prop:"th_user",label:"申请人",width:"65px"},{prop:"th_num",label:"退货数量",width:"90px"},{prop:"th_qrd_fee",label:"退货确认单金额",width:"110px"},{prop:"th_cgd_fee",label:"退货采购单金额",width:"110px"},{prop:"th_post_fee",label:"快递费",width:"80px"},{prop:"is_th",label:"供货商支出退货",_slot_:"is_th",width:"110px"},{prop:"th_remark",label:"退回备注",width:"110px"},{prop:"createtime",label:"下单时间",width:"145px"}]}},mounted:function(){this.searchList()},methods:{restSearch:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.parmValue.page=1,e.pageInfo.curr=1,e.parmValue.type="1",e.parmValue.status="",e.parmValue.codeNo="",t.next=7,e.searchList();case 7:case"end":return t.stop()}}),t)})))()},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.list(e.parmValue);case 3:if(!(a=t.sent)||0!==a.code||!a.data){t.next=10;break}e.tableData=a.data.list,e.pageInfo.total=Number(a.data.count),e.formatGoodList(),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)})))()},setBilling:function(e){this.selection=[],e&&0===e.length?this.$message.error("请选择采购单"):(this.selection=e,this.showModel1=!0,this.showModel2=!1)},examBilling:function(e){var t;e&&0===e.length?this.$message.error("请选择采购单"):(t=!0,e.forEach((function(e){"1"!==e.inv_status&&(t=!1)})),t?(this.selection=e,this.showModel1=!1,this.showModel2=!0):this.$message.error("只有待审核的采购单才能进行审核操作!"))},formatGoodList:function(){this.tableData.map((function(e){return e.purchasePrice=e.purchasePrice?parseFloat(e.purchasePrice+"").toFixed(2):"-",e.totalPrice=e.totalPrice?parseFloat(e.totalPrice+"").toFixed(2):"-",e.pay_fee=e.pay_fee?parseFloat(e.pay_fee+"").toFixed(2):"-",e.wait_fee=e.wait_fee?parseFloat(e.wait_fee+"").toFixed(2):"-",e.price=e.price?parseFloat(e.price+"").toFixed(2):"-",e.nakedPrice=e.nakedPrice?parseFloat(e.nakedPrice+"").toFixed(2):"-",e.markPrice=e.markPrice?parseFloat(e.markPrice+"").toFixed(2):"-",e.packPrice=e.packPrice?parseFloat(e.packPrice+"").toFixed(2):"-",e.certPrice=e.certPrice?parseFloat(e.certPrice+"").toFixed(2):"-",e.openPrice=e.openPrice?parseFloat(e.openPrice+"").toFixed(2):"-",e.craftPrice=e.certPrice?parseFloat(e.craftPrice+"").toFixed(2):"-",e.postPrice=e.postPrice?parseFloat(e.postPrice+"").toFixed(2):"-",e.weight=e.weight?parseFloat(e.weight+"").toFixed(2):"-",e.diff_fee=e.diff_fee?parseFloat(e.diff_fee+"").toFixed(2):"-",e.price=e.price?parseFloat(e.price+"").toFixed(2):"-",e.inv_open_fee=e.inv_open_fee?parseFloat(e.inv_open_fee+"").toFixed(2):"-",e.inv_wait_fee=e.inv_wait_fee?parseFloat(e.inv_wait_fee+"").toFixed(2):"-",e}))},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={companyNo:e,status:"1"===t?"0":"1"},r.next=4,o.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)})))()}}},a("068b"),l=a("2877"),c=Object(l.a)(s,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"porder pagePadding"},[e.powers&&0<e.powers.length&&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 0 80px"}},[a("el-col",{staticStyle:{width:"120px"},attrs:{span:8}},[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.th_status_list,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),a("el-col",{staticStyle:{width:"350px",padding:"0 0 0 10px"},attrs:{span:5}},[a("el-input",{staticStyle:{width:"100%"},attrs:{clearable:"",size:e.searchSize,placeholder:"关键字"},model:{value:e.parmValue.codeNo,callback:function(t){e.$set(e.parmValue,"codeNo",t)},expression:"parmValue.codeNo"}},[a("el-select",{staticStyle:{width:"125px"},attrs:{slot:"prepend",placeholder:"请选择"},slot:"prepend",model:{value:e.parmValue.type,callback:function(t){e.$set(e.parmValue,"type",t)},expression:"parmValue.type"}},e._l(e.selectKlist,(function(e){return a("el-option",{key:e.code,attrs:{label:e.name,value:e.code}})})),1),a("el-button",{attrs:{slot:"append",icon:"el-icon-search"},nativeOn:{click:function(t){return e.searchList(t)}},slot:"append"})],1)],1),a("el-col",{staticStyle:{width:"270px",padding:"0 0 0 10px"},attrs:{span:8}},[a("el-input",{staticStyle:{width:"100%"},attrs:{clearable:"",size:e.searchSize,placeholder:"退货供应商名称"},model:{value:e.parmValue.company,callback:function(t){e.$set(e.parmValue,"company",t)},expression:"parmValue.company"}})],1),a("el-col",{staticStyle:{width:"66px",float:"right"},attrs:{span:3}},[e.powers.some((function(e){return"002"==e}))?a("el-button",{staticClass:"fr",staticStyle:{"margin-left":"10px"},attrs:{size:e.searchSize,type:"primary"},on:{click:e.searchList}},[e._v(" 刷新 ")]):e._e()],1),a("el-col",{staticStyle:{width:"66px",float:"right"},attrs:{span:3}},[e.powers.some((function(e){return"024"==e}))?a("el-button",{staticClass:"fr",attrs:{type:"warning",size:e.searchSize},on:{click:e.restSearch}},[e._v(" 重置 ")]):e._e()],1)],1)],1)]}},{key:"th_status",fn:function(t){var r=t.scope;return[a("el-tag",{attrs:{size:"mini",type:"3"==r.row.th_status?"danger":"2"==r.row.th_status?"success":"warning"},domProps:{textContent:e._s((e.th_status_list.find((function(e){return e.value==r.row.th_status}))||{}).label||"--")}})]}},{key:"is_th",fn:function(t){return t=t.scope,[a("el-tag",{attrs:{size:"mini",type:"1"==t.row.is_th?"success":"warning"}},[e._v(e._s("1"==t.row.is_th?"同意":"不同意"))])]}}],null,!1,381398582)}):a("no-auth")],1)}),[],!1,null,"2ea0a1b5",null);t.default=c.exports},"4ebf":function(e,t,a){"use strict";a("5618")},"50a9":function(e,t,a){"use strict";a("56a4")},"50b8":function(e,t,a){"use strict";a.r(t);var r=a("1da1"),n=(a("96cf"),a("c740"),{props:["dstatus"],data:function(){return{active:-1,status:"",dstatusOptions:[{id:"1",label:"待业务审核"},{id:"2",label:"待财务审核"},{id:"3",label:"待资金认领完成"},{id:"4",label:"退款已完成"}]}},watch:{dstatus:function(e){this.status=e,this.status&&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:e.active=e.dstatusOptions.findIndex((function(t){return t.id===e.status}));case 1:case"end":return t.stop()}}),t)})))()}}});a=a("2877"),a=Object(a.a)(n,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-steps",{staticStyle:{padding:"12px 0 18px 0"},attrs:{active:e.active,"align-center":"","process-status":"finish"}},e._l(e.dstatusOptions,(function(e,t){return a("el-step",{key:e.name+t,attrs:{title:e.label}})})),1)}),[],!1,null,null,null);t.default=a.exports},"50ec":function(e,t,a){"use strict";a("4d63"),a("ac1f"),a("2c3e"),a("25f0"),a("00b4"),a("99af");var r={name:"numBerRange",props:{title:{type:String,default:""},lower:{type:String,default:""},online:{type:String,default:""},disabled:{type:Boolean,default:!1},size:{type:String,default:"mini"},width:{type:String,default:"170px"}},data:function(){return{isEdit:this.disabled,lowerNum:this.lower,onlineNum:this.online}},watch:{disabled:function(e,t){this.isEdit=e}},mounted:function(){},methods:{accountInput:function(e,t){for(var a=new RegExp("[0-9]+"),r=e.length,n="",i=0;i<r;i++)a.test(e[i])&&(n+=e[i]);1===t?this.lowerNum=n:this.onlineNum=n},numChange:function(){""!==this.lowerNum&&null!==this.lowerNum&&""!==this.onlineNum&&null!==this.onlineNum&&parseInt(this.onlineNum)-parseInt(this.lowerNum)<=0&&(this.$message.error("".concat(this.title,"上限应大于").concat(this.title,"下限!")),this.lowerNum="",this.onlineNum=""),this.numReturned()},numReturned:function(){this.$emit("numReturned",{lower:null==this.lowerNum?"":this.lowerNum,online:null==this.onlineNum?"":this.onlineNum})}}};a("1735"),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 ageInput"},[t("el-input",{style:{width:e.width},attrs:{type:"text",size:e.size,placeholder:e.title+"下限"},on:{change:function(t){return e.numChange()},input:function(t){return e.accountInput(t,1)}},model:{value:e.lowerNum,callback:function(t){e.lowerNum=t},expression:"lowerNum"}}),t("samp",{staticStyle:{padding:"0 3px",margin:"0"}},[e._v("至")]),t("el-input",{style:{width:e.width},attrs:{type:"text",size:e.size,placeholder:e.title+"上限"},on:{input:function(t){return e.accountInput(t,2)},change:function(t){return e.numChange()}},model:{value:e.onlineNum,callback:function(t){e.onlineNum=t},expression:"onlineNum"}})],1)}),[],!1,null,null,null);t.a=a.exports},"52a0":function(e,t,a){"use strict";a.r(t);var r=a("1da1"),n=(a("ac1f"),a("5319"),a("96cf"),{props:["showModel","item","isDetail","index"],data:function(){return{loading:!1,showModelThis:this.showModel,ruleForm:{goodNo:"",goodname:"",remark:"",unit:"",num:"",inv_num:"",over_num:"",good_num:"",total:"",ainv_fee:"",winv_fee:"",total_fee:""},rulesThis:this.rules,rules:{remark:[{required:!0,message:"请输入开票商品名",trigger:"blur"}],good_num:[{required:!0,message:"请输入此次核销数量",trigger:"blur"}],unit:[{required:!0,message:"请输入商品单价",trigger:"blur"}],total_fee:[{required:!0,message:"请输入开票商品名",trigger:"blur"}]}}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis:function(e){e||this.$emit("cancel")}},methods:{closeModel:function(){},initForm:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,t.next=3,e.resetForm();case 3:e.rulesThis=e.rules,e.ruleForm=Object.assign({},e.item),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(t){e.$refs.ruleForm&&(e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),e.ruleForm={goodNo:"",goodname:"",remark:"",num:"",inv_num:"",over_num:"",good_num:"",total:"",unit:"",ainv_fee:"",winv_fee:"",total_fee:""})}));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(!a){t.next=16;break}if(e.ruleForm.remark=e.ruleForm.remark.replace(/\s*/g,""),""===e.ruleForm.remark)return e.$message.error("开票商品名不能未空!"),t.abrupt("return");t.next=5;break;case 5:if("003"!==e.isDetail){t.next=12;break}if(0===e.ruleForm.good_num)return e.$message.error("核销数量不能为0!"),t.abrupt("return");t.next=9;break;case 9:if(0===e.ruleForm.total_fee||0===e.ruleForm.total_fee||0===e.ruleForm.total_fee)return e.$message.error("核销金额不能为0!"),t.abrupt("return");t.next=12;break;case 12:e.showModelThis=!1,e.$emit("refresh",e.ruleForm),t.next=18;break;case 16:return t.abrupt("return",!1);case 18:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()}}});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:"7vh",width:"840px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)","append-to-body":""},on:{"update:visible":function(t){e.showModelThis=t},close:e.closeModel}},[t("el-card",[t("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",size:"mini",rules:e.rulesThis,"label-width":"95px"}},[t("el-row",[t("el-col",{attrs:{span:8}},[t("el-form-item",{attrs:{label:"产品编号",prop:"goodNo"}},[t("p",[e._v(e._s(e.ruleForm.goodNo))])])],1),t("el-col",{attrs:{span:8}},[t("el-form-item",{attrs:{label:"产品单价",prop:"goodNo"}},[t("p",[e._v(e._s(e.ruleForm.price))])])],1),t("el-col",{attrs:{span:8}},[t("el-form-item",{attrs:{label:"产品单位",prop:"unit"}},[t("el-input",{attrs:{maxlength:"200"},model:{value:e.ruleForm.unit,callback:function(t){e.$set(e.ruleForm,"unit",t)},expression:"ruleForm.unit"}})],1)],1)],1),t("el-form-item",{attrs:{label:"商品名称"}},[t("p",[e._v(e._s(e.ruleForm.goodname))])]),t("el-form-item",{attrs:{label:"开票商品名",prop:"remark"}},[t("el-input",{attrs:{maxlength:"200"},model:{value:e.ruleForm.remark,callback:function(t){e.$set(e.ruleForm,"remark",t)},expression:"ruleForm.remark"}})],1),"003"===e.isDetail?t("el-row",[t("el-col",{staticClass:"fl-col",attrs:{span:6}},[t("el-form-item",{attrs:{label:"总量"}},[t("p",[e._v(e._s(e.ruleForm.num))])]),t("el-tag",{staticClass:"fl-tag",attrs:{size:"medium"}},[e._v("数量")])],1),t("el-col",{staticStyle:{width:"165px"},attrs:{span:6}},[t("el-form-item",{attrs:{label:"已核销","label-width":"55px"}},[t("p",[e._v(e._s(e.ruleForm.inv_num))])])],1),t("el-col",{staticStyle:{width:"165px"},attrs:{span:6}},[t("el-form-item",{attrs:{label:"未核销","label-width":"55px"}},[t("p",[e._v(e._s(e.ruleForm.over_num))])])],1),t("el-col",{staticStyle:{width:"231px"},attrs:{span:6}},[t("el-form-item",{attrs:{label:"此次核销",prop:"good_num","label-width":"80px"}},[t("el-input-number",{staticClass:"notAnniu",staticStyle:{width:"100%"},attrs:{"step-strictly":"",size:"mini","controls-position":"right",disabled:"003"!==e.isDetail,precision:0,step:1,min:0,max:e.ruleForm.over_num},model:{value:e.ruleForm.good_num,callback:function(t){e.$set(e.ruleForm,"good_num",t)},expression:"ruleForm.good_num"}})],1)],1),t("el-col",{staticClass:"fl-col",attrs:{span:6}},[t("el-form-item",{attrs:{label:"总量"}},[t("p",[e._v(e._s(e.ruleForm.total))])]),t("el-tag",{staticClass:"fl-tag",attrs:{size:"medium"}},[e._v("金额")])],1),t("el-col",{staticStyle:{width:"165px"},attrs:{span:6}},[t("el-form-item",{attrs:{label:"已核销","label-width":"55px"}},[t("p",[e._v(e._s(e.ruleForm.ainv_fee))])])],1),t("el-col",{staticStyle:{width:"165px"},attrs:{span:6}},[t("el-form-item",{attrs:{label:"未核销","label-width":"55px"}},[t("p",[e._v(e._s(e.ruleForm.winv_fee))])])],1),t("el-col",{staticStyle:{width:"231px"},attrs:{span:6}},[t("el-form-item",{attrs:{label:"此次核销","label-width":"80px",prop:"total_fee"}},[t("el-input-number",{staticClass:"notAnniu",staticStyle:{width:"100%"},attrs:{"step-strictly":"",size:"mini","controls-position":"right",disabled:"003"!==e.isDetail,precision:2,step:.01,min:0,max:e.ruleForm.winv_fee},model:{value:e.ruleForm.total_fee,callback:function(t){e.$set(e.ruleForm,"total_fee",t)},expression:"ruleForm.total_fee"}})],1)],1)],1):e._e(),t("el-row",[t("el-col",{staticStyle:{"text-align":"right"},attrs:{span:24}},[t("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v(" 保 存 ")]),t("el-button",{on:{click:function(t){e.showModelThis=!1}}},[e._v("取 消")])],1)],1)],1)],1)],1)}),[],!1,null,null,null);t.default=a.exports},5563:function(e,t,a){"use strict";a.r(t);var r=a("1da1"),n=(a("e9c4"),a("96cf"),a("3ef2")),i={name:"orderRecord",props:["newTime","oldItem","newItem","isDetail","img","ratioItem","id","payNo","companyNo"],mixins:[a("9f53").a],data:function(){return{examForm:{buyer_address:"",buyer_bank:"",buyer_id:"",buyer_name:"",seller_address:"",seller_bank:"",seller_id:"",seller_name:""},examsThis:this.exams,exams:{buyer_address:[{required:!0,message:"请输入购买方地址、电话",trigger:"blur"}],buyer_bank:[{required:!0,message:"请输入购买方开户行及帐号",trigger:"blur"}],buyer_id:[{required:!0,message:"请输入购买方纳税人识别号",trigger:"blur"}],buyer_name:[{required:!0,message:"请输入购买方单位名称",trigger:"blur"}],seller_address:[{required:!0,message:"请输入销售方地址、电话",trigger:"blur"}],seller_bank:[{required:!0,message:"请输入销售方开户行及帐号",trigger:"blur"}],seller_id:[{required:!0,message:"请输入销售方纳税人识别号",trigger:"blur"}],seller_name:[{required:!0,message:"请输入销售方单位名称",trigger:"blur"}]}}},watch:{newTime:function(e,t){e!==t&&this.initForm()}},mounted:function(){this.initForm()},methods:{initForm:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,t.next=3,e.resetForm();case 3:e.examsThis=e.exams,e.loading=!1;case 5:case"end":return t.stop()}}),t)})))()},abnormal: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={sid:e.id,payNo:e.payNo,status:"3"},t.next=5,n.a.again(a);case 5:if(!(r=t.sent)||0!==r.code){t.next=13;break}e.$notify.success({title:"异常已提交,成功返回上一步!",message:""}),e.showModelThis=!1,e.$emit("refreshAll"),t.next=19;break;case 13:if(r&&100<=r.code&&r.code<=104)return t.next=16,e.logout();t.next=18;break;case 16:t.next=19;break;case 18:e.$message.warning(r.message);case 19:e.loading=!1;case 20:case"end":return t.stop()}}),t)})))()},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,o,s,l;e.$refs.examForm&&(e.$refs.examForm.resetFields(),e.$refs.examForm.clearValidate(),t=(l=e.newItem).buyer_address,a=l.buyer_bank,r=l.buyer_id,n=l.buyer_name,i=l.seller_address,o=l.seller_bank,s=l.seller_id,l=l.seller_name,t&&(e.examForm.buyer_address=t,e.examForm.buyer_bank=a,e.examForm.buyer_id=r,e.examForm.buyer_name=n,e.examForm.seller_address=i,e.examForm.seller_bank=o,e.examForm.seller_id=s,e.examForm.seller_name=l))}));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.examForm.validate(function(){var t=Object(r.a)(regeneratorRuntime.mark((function t(a){var r,n,i,o,s,l,c;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!a){t.next=23;break}if(e.loading=!0,o=e.oldItem,r=o.buyer_name,n=o.buyer_id,i=o.buyer_bank,o=o.buyer_address,(s=JSON.parse(JSON.stringify(e.examForm))).buyer_name!==r)return e.$message.error("购买方单位名称不正确!"),t.abrupt("return");t.next=7;break;case 7:if(s.buyer_id!==n)return e.$message.error("购买方纳税人识别号不正确!"),t.abrupt("return");t.next=10;break;case 10:if(s.buyer_bank!==i)return e.$message.error("购买方开户行及帐号不正确!"),t.abrupt("return");t.next=13;break;case 13:if(s.buyer_address!==o)return e.$message.error("购买方地址、电话不正确!"),t.abrupt("return");t.next=16;break;case 16:for(c in l=[],s)s[c]!==e.newItem[c]&&l.push(c);s.field=l,e.loading=!1,e.$emit("nextStep",s),t.next=25;break;case 23:return t.abrupt("return",!1);case 25:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()}}};a("c93a"),a=a("2877"),a=Object(a.a)(i,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("el-row",[t("el-col",{attrs:{span:24}},[t("el-form",{ref:"examForm",staticClass:"demo-examForm-view",attrs:{model:e.examForm,rules:e.examsThis,"label-width":"0px",size:"mini"}},[t("el-row",{attrs:{gutter:10}},[t("el-col",{attrs:{span:24}},[t("el-row",{attrs:{gutter:10}},[t("el-col",{attrs:{span:1}},[t("div",{staticClass:"tc"},[e._v("购")]),t("div",{staticClass:"tc"},[e._v("买")]),t("div",{staticClass:"tc"},[e._v("方")]),t("div",{staticClass:"tc"},[e._v("信")]),t("div",{staticClass:"tc"},[e._v("息")])]),t("el-col",{attrs:{span:11}},[t("el-form-item",{class:{errorForm:e.ratioItem&&!e.ratioItem.buyer_name},attrs:{prop:"buyer_name"}},[t("el-input",{attrs:{readonly:e.isDetail,placeholder:"请输入单位名称"},model:{value:e.examForm.buyer_name,callback:function(t){e.$set(e.examForm,"buyer_name",t)},expression:"examForm.buyer_name"}})],1),t("el-form-item",{class:{errorForm:e.ratioItem&&!e.ratioItem.buyer_id},attrs:{prop:"buyer_id"}},[t("el-input",{attrs:{readonly:e.isDetail,placeholder:"请输入纳税人识别号"},model:{value:e.examForm.buyer_id,callback:function(t){e.$set(e.examForm,"buyer_id",t)},expression:"examForm.buyer_id"}})],1),t("el-form-item",{class:{errorForm:e.ratioItem&&!e.ratioItem.buyer_bank},attrs:{prop:"buyer_bank"}},[t("el-input",{attrs:{readonly:e.isDetail,placeholder:"请输入开户行及帐号"},model:{value:e.examForm.buyer_bank,callback:function(t){e.$set(e.examForm,"buyer_bank",t)},expression:"examForm.buyer_bank"}})],1),t("el-form-item",{class:{errorForm:e.ratioItem&&!e.ratioItem.buyer_address},attrs:{prop:"buyer_address"}},[t("el-input",{attrs:{readonly:e.isDetail,placeholder:"请输入地址、电话"},model:{value:e.examForm.buyer_address,callback:function(t){e.$set(e.examForm,"buyer_address",t)},expression:"examForm.buyer_address"}})],1)],1),t("el-col",{attrs:{span:11}},[t("el-form-item",{class:{errorForm:e.ratioItem&&!e.ratioItem.seller_name},attrs:{prop:"seller_name"}},[t("el-input",{attrs:{readonly:e.isDetail,placeholder:"请输入单位名称"},model:{value:e.examForm.seller_name,callback:function(t){e.$set(e.examForm,"seller_name",t)},expression:"examForm.seller_name"}})],1),t("el-form-item",{class:{errorForm:e.ratioItem&&!e.ratioItem.seller_id},attrs:{prop:"seller_id"}},[t("el-input",{attrs:{readonly:e.isDetail,placeholder:"请输入纳税人识别号"},model:{value:e.examForm.seller_id,callback:function(t){e.$set(e.examForm,"seller_id",t)},expression:"examForm.seller_id"}})],1),t("el-form-item",{class:{errorForm:e.ratioItem&&!e.ratioItem.seller_bank},attrs:{prop:"seller_bank"}},[t("el-input",{attrs:{readonly:e.isDetail,placeholder:"请输入开户行及帐号"},model:{value:e.examForm.seller_bank,callback:function(t){e.$set(e.examForm,"seller_bank",t)},expression:"examForm.seller_bank"}})],1),t("el-form-item",{class:{errorForm:e.ratioItem&&!e.ratioItem.seller_address},attrs:{prop:"seller_address"}},[t("el-input",{attrs:{readonly:e.isDetail,placeholder:"请输入地址、电话"},model:{value:e.examForm.seller_address,callback:function(t){e.$set(e.examForm,"seller_address",t)},expression:"examForm.seller_address"}})],1)],1),t("el-col",{attrs:{span:1}},[t("div",{staticClass:"tc"},[e._v("销")]),t("div",{staticClass:"tc"},[e._v("售")]),t("div",{staticClass:"tc"},[e._v("方")]),t("div",{staticClass:"tc"},[e._v("信")]),t("div",{staticClass:"tc"},[e._v("息")])])],1)],1),e.isDetail?e._e():t("el-col",{staticStyle:{"text-align":"right"},attrs:{span:24}},[t("img",{directives:[{name:"viewer",rawName:"v-viewer"}],staticClass:"fl",staticStyle:{width:"80px",heigth:"52px"},attrs:{src:e.img,alt:""}}),t("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("查看明细数据 ")])],1)],1)],1)],1)],1)}),[],!1,null,"75c29fa6",null);t.default=a.exports},5604:function(e,t,a){"use strict";a("8645")},5610:function(e,t,a){},5618:function(e,t,a){},"56a4":function(e,t,a){},"57c4":function(e,t,a){},"57c6":function(e,t,a){},"57d4":function(e,t,a){"use strict";a.r(t);var r=a("1da1"),n=(a("96cf"),a("d3b7"),a("159b"),a("5bcd")),i=a("6810"),o=a("24a2");n={name:"orderRecord",props:["showModel","id","isDetail","dstatus","payNo","companyNo"],components:{addView:n.default,InvoiceReview:o.default,stepBar:i.default},data:function(){return{activeNames:"2",newTime:0,activeName:"-1",showView:!0,loading:!1,title:"审核发票",showModelThis:this.showModel}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis:function(e){e||this.$emit("cancel")}},methods:{closeModel:function(){},refreshAll:function(){this.showModelThis=!1,this.$emit("refresh")},setTotal:function(e){if(!(0<e.length))return[];e.forEach((function(e){}))},initForm:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.changea();case 2:case"end":return t.stop()}}),t)})))()},changea:function(){this.newTime=(new Date).valueOf()}}},a("2db4"),o=a("2877"),i=Object(o.a)(n,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:e.title,center:!0,align:"left",top:"10vh",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:e.closeModel}},[t("el-card",{staticStyle:{"margin-top":"-15px",height:"685px"}},[t("stepBar",{attrs:{id:e.modelId,payNo:e.payNo,dstatus:e.dstatus},on:{refresh:e.searchList}}),t("el-collapse",{attrs:{accordion:""},model:{value:e.activeNames,callback:function(t){e.activeNames=t},expression:"activeNames"}},[t("el-collapse-item",{attrs:{title:"对账详情",name:"1"}},[t("add-view",{attrs:{id:e.id,isDetail:e.isDetail,newTime:e.newTime,payNo:e.payNo,companyNo:e.companyNo},on:{refreshAll:e.refreshAll}})],1),t("el-collapse-item",{attrs:{title:"审核发票",name:"2"}},[t("invoice-review",{attrs:{id:e.id,newTime:e.newTime,dstatus:e.dstatus,payNo:e.payNo,companyNo:e.companyNo},on:{refreshAll:e.refreshAll}})],1)],1)],1)],1)}),[],!1,null,"0a6f2b67",null);t.default=i.exports},5844:function(e,t,a){"use strict";a.r(t);var r=a("1da1"),n=(a("96cf"),a("5bcd")),i=a("837b"),o=a("9218");n={name:"orderRecord",props:["showModel","id","isDetail","dstatus","payNo","companyNo"],components:{addView:n.default,examView:i.default,stepBar:o.default},data:function(){return{activeNames:"2",newTime:0,activeName:"-1",loading:!1,title:"业务审核",showModelThis:this.showModel}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis:function(e){e||this.$emit("cancel")}},methods:{closeModel:function(){},refreshAll:function(){this.showModelThis=!1,this.$emit("refresh")},initForm:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.changea();case 2:case"end":return t.stop()}}),t)})))()},changea:function(){this.newTime=(new Date).valueOf()}}},a("6c6b"),i=a("2877"),o=Object(i.a)(n,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:e.title,center:!0,align:"left",top:"10vh",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:e.closeModel}},[t("el-card",{staticStyle:{"margin-top":"-15px",height:"685px"}},[t("stepBar",{attrs:{id:e.modelId,payNo:e.payNo,dstatus:e.dstatus},on:{refresh:e.searchList}}),t("el-collapse",{attrs:{accordion:""},model:{value:e.activeNames,callback:function(t){e.activeNames=t},expression:"activeNames"}},[t("el-collapse-item",{attrs:{title:"对账详情",name:"1"}},[t("add-view",{staticStyle:{margin:"0 0 -28px 0"},attrs:{id:e.id,isDetail:e.isDetail,newTime:e.newTime,payNo:e.payNo},on:{refreshAll:e.refreshAll}})],1),t("el-collapse-item",{attrs:{title:"业务审核",name:"2"}},[t("exam-view",{attrs:{id:e.id,type:"1",newTime:e.newTime,payNo:e.payNo},on:{refreshAll:e.refreshAll}})],1)],1)],1)],1)}),[],!1,null,"1159351f",null);t.default=o.exports},"584e":function(e,t,a){},"59fa":function(e,t,a){},"5a3c":function(e,t,a){"use strict";a.r(t);var r=a("1da1"),n=(a("e9c4"),a("96cf"),a("8ef8")),i=a("6fd3"),o=a("b97c");n={name:"invoiceApply",props:["showModel","id","isDetail","status","invNo"],mixins:[a("9f53").a],components:{addview:n.default,appProcess:i.default},data:function(){return{options:[{value:"3",label:"通过"},{value:"2",label:"驳回"}],activeNames:"2",loading:!1,newTime:0,showModelThis:this.showModel,ruleForm:{status:"",remark:""},rules:{status:[{required:!0,message:"请选择审核状态",trigger:"change"}],remark:[{required:!1,message:"请输入审核备注",trigger:"blur"}]}}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis:function(e){e||this.$emit("cancel")}},methods:{closeModel:function(){},initForm:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.loading=!0,e.activeNames="2","029"===e.isDetail?e.title="财务审核":"005"===e.isDetail?e.title="修改发票申请":"007"===e.isDetail&&(e.title="发票申请详情"),e.changea(),e.loading=!1;case 5:case"end":return t.stop()}}),t)})))()},refreshAll:function(){this.showModelThis=!1,this.$emit("refresh")},seChange:function(){"2"===this.ruleForm.status?this.rules.remark[0].required=!0:this.rules.remark[0].required=!1},changea:function(){this.newTime=(new Date).valueOf()},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)return e.loading=!0,r=JSON.parse(JSON.stringify(e.ruleForm)),n=r.status,r=r.remark,n={invNo:e.invNo,status:n,remark:r},t.next=6,o.a.status(n);t.next=21;break;case 6:if(!(i=t.sent)||0!==i.code){t.next=13;break}e.$notify.success({title:"财务审核提交成功!",message:""}),e.showModelThis=!1,e.$emit("refresh"),t.next=19;break;case 13:if(i&&100<=i.code&&i.code<=104)return t.next=16,e.logout();t.next=18;break;case 16:t.next=19;break;case 18:e.$message.warning(i.message);case 19:t.next=23;break;case 21:return t.abrupt("return",!1);case 23:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()}}},a("8d5e"),i=a("2877"),a=Object(i.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:e.title,center:!0,align:"left",top:"8vh",width:"1024px","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:e.closeModel}},[a("el-card",{staticStyle:{height:"700px","margin-top":"-25px"}},[a("appProcess",{attrs:{status:e.status}}),a("el-collapse",{attrs:{accordion:""},model:{value:e.activeNames,callback:function(t){e.activeNames=t},expression:"activeNames"}},[a("el-collapse-item",{attrs:{title:"发票申请详情",name:"1"}},[a("addview",{attrs:{id:e.id,newTime:e.newTime,"show-model":e.showModel,"is-detail":e.isDetail},on:{refreshAll:e.refreshAll}})],1),a("el-collapse-item",{attrs:{title:"财务审核",name:"2"}},[a("el-row",[a("el-col",{staticStyle:{"padding-right":"10px"},attrs:{span:24}},[a("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",rules:e.rules,"label-width":"110px"}},[a("el-form-item",{attrs:{label:"审核状态",prop:"status"}},[a("el-radio-group",{model:{value:e.ruleForm.status,callback:function(t){e.$set(e.ruleForm,"status",t)},expression:"ruleForm.status"}},e._l(e.options,(function(t){return a("el-radio",{key:t.value,attrs:{label:t.value},on:{change:e.seChange}},[e._v(e._s(t.label))])})),1)],1),a("el-form-item",{attrs:{label:"审核备注",prop:"remark"}},[a("el-input",{attrs:{type:"textarea",maxlength:"250","show-word-limit":"",autosize:{minRows:6,maxRows:6}},model:{value:e.ruleForm.remark,callback:function(t){e.$set(e.ruleForm,"remark",t)},expression:"ruleForm.remark"}})],1)],1)],1),a("el-col",{staticStyle:{"padding-right":"10px","text-align":"right"},attrs:{span:24}},[a("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("保 存 ")])],1)],1)],1)],1)],1)],1)}),[],!1,null,"c2e49cd6",null);t.default=a.exports},"5b49":function(e,t,a){"use strict";a("4195")},"5bcd":function(e,t,a){"use strict";a.r(t);var r=a("2909"),n=a("1da1"),i=(a("d81d"),a("c740"),a("d3b7"),a("159b"),a("b0c0"),a("a434"),a("b680"),a("e9c4"),a("99af"),a("4e82"),a("3ca3"),a("ddb0"),a("ac1f"),a("1276"),a("5319"),a("96cf"),a("3ef2")),o=a("f57a"),s=[{value:"X",label:"现结",children:[{value:"1",label:"一次性结算"},{value:"2",label:"自定义比例"}]},{value:"Y",label:"周期结",children:[{value:"3",label:"月结"},{value:"4",label:"季结"}]}],l=a("61f7"),c=a("d20f"),u=a("9f53");o={name:"orderRecord",props:["dstatus","showModel","id","isDetail","newTime","payNo","companyNo","pay_status"],components:{orderChange:o.default},mixins:[u.a],data:function(){return{send_status_list:[{value:"1",label:"未发货"},{value:"2",label:"部分发货"},{value:"3",label:"全部发货"}],pdisabled:!1,companyNoCode:"",companyNoName:"",supplierNo:[],ratelist:[],downLoading:!1,spread:!1,selectLoading:!1,changeModelId:0,changeModel:!1,accountList:s,loading:!1,ruleForm:{id:this.id,account:["X","1"],name:[],inv_rate:"",scale:[{num:0},{num:0}],goodList:[],return_img:[]},rulesThis:this.rules,rules:{name:[{type:"array",required:!0,message:"请选择公司名称",trigger:"change"}],inv_rate:[{required:!0,message:"请选择商品税率",trigger:"change"}],account:[{type:"array",required:!0,message:"请选择账期",trigger:"change"}],goodList:[{type:"array",required:!0,message:"请选择采购单商品",trigger:"change"}]},activeOptions:[],parmValue:{name:"",page:1,size:30},scaleTotal:0,show:!1}},watch:{newTime:function(e,t){e!==t&&this.initForm()}},mounted:function(){this.initForm()},methods:{initForm:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,e.pdisabled=0===parseInt(e.pay_status)&&0===parseInt(e.dstatus),"003"===e.isDetail||"007"===e.isDetail?e.spread=!0:e.spread=!1,t.next=5,e.getratelist();case 5:if("003"===e.isDetail)return e.rulesThis=e.rules,t.next=9,e.resetForm();t.next=11;break;case 9:t.next=22;break;case 11:if("005"===e.isDetail)return e.rulesThis=e.rules,t.next=15,e.resetForm();t.next=19;break;case 15:return t.next=17,e.initData();case 17:t.next=22;break;case 19:return e.rulesThis={},t.next=22,e.initData();case 22:e.loading=!1;case 23:case"end":return t.stop()}}),t)})))()},getratelist:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,i.a.ratelist({});case 2:if(!((a=t.sent)&&0===a.code&&a.data&&0<a.data.length)){t.next=8;break}e.ratelist=a.data,e.ratelist.map((function(e){return e.rateName=e.rate+"%",e})),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.ratelist=[];case 14:case"end":return t.stop()}}),t)})))()},inv_rateChange:function(){var e=this,t=this.ratelist.findIndex((function(t){return t.id===e.ruleForm.inv_rate})),a="";-1!==t&&(a=this.ratelist[t].rateName),this.ruleForm&&this.ruleForm.goodList&&0<this.ruleForm.goodList.length&&this.ruleForm.goodList.forEach((function(t,r){t.taxPoint1=a,e.$set(e.ruleForm.goodList,r,t)}))},selectChange:function(e){this.supplierNo=e||[],0!==this.ruleForm.name.length&&this.ruleForm.name[0]&&this.changeModelId&&0!==this.changeModelId&&(this.ruleForm.goodList=[])},openChange:function(){this.spread=!this.spread},addGoods:function(){1===this.supplierNo.length?(this.changeModelId=this.supplierNo[0],this.ruleForm.goodList&&0<this.ruleForm.goodList.length?(this.companyNoCode=this.ruleForm.goodList[0].inv_company,this.companyNoName=this.ruleForm.goodList[0].inv_company_name):(this.companyNoCode="",this.companyNoName=""),this.changeModel=!0):this.$message.warning("请选择公司名称")},Addend:function(){this.ruleForm.scale.push({num:0}),this.scaleChange()},del:function(){this.ruleForm.scale.splice(this.ruleForm.scale.length-1,1),this.scaleChange()},scaleChange:function(){var e=0;this.ruleForm.scale.forEach((function(t){e+=t.num})),this.scaleTotal=parseFloat(parseFloat(e+"").toFixed(2))},goodsReshList:function(e){var t=this;return Object(n.a)(regeneratorRuntime.mark((function a(){var n,i,o,s;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:i=JSON.parse(JSON.stringify(t.ruleForm.goodList)),o=JSON.parse(JSON.stringify(e)),s=(n=[]).concat.apply(n,Object(r.a)(i)),o.forEach((function(e,t){var a=i.findIndex((function(t){return e.cgdNO===t.cgdNO}));-1===a&&s.push(o[t])})),s.sort((function(e,t){return e.cgdNO!=t.cgdNO?e.cgdNO-t.cgdNO:e.goodNo-t.goodNo})),t.ruleForm.goodList=(n=[]).concat.apply(n,Object(r.a)(s)),t.formatGoodList(),t.inv_rateChange();case 6:case"end":return a.stop()}}),a)})))()},formatGoodList:function(){this.ruleForm.goodList.map((function(e){return e.taxPoint1=e.taxPoint1||"",e.purchasePrice=e.purchasePrice?parseFloat(e.purchasePrice+"").toFixed(2):"-",e.totalPrice=e.totalPrice?parseFloat(e.totalPrice+"").toFixed(2):"-",e.pay_fee=e.pay_fee?parseFloat(e.pay_fee+"").toFixed(2):"-",e.wait_fee=e.wait_fee?parseFloat(e.wait_fee+"").toFixed(2):"-",e.nakedPrice=e.nakedPrice?parseFloat(e.nakedPrice+"").toFixed(2):"-",e.markPrice=e.markPrice?parseFloat(e.markPrice+"").toFixed(2):"-",e.packPrice=e.packPrice?parseFloat(e.packPrice+"").toFixed(2):"-",e.certPrice=e.certPrice?parseFloat(e.certPrice+"").toFixed(2):"-",e.openPrice=e.openPrice?parseFloat(e.openPrice+"").toFixed(2):"-",e.craftPrice=e.certPrice?parseFloat(e.craftPrice+"").toFixed(2):"-",e.postPrice=e.postPrice?parseFloat(e.postPrice+"").toFixed(2):"-",e.weight=e.weight?parseFloat(e.weight+"").toFixed(2):"-",e.diff_fee=e.diff_fee?parseFloat(e.diff_fee+"").toFixed(2):"-",e.price=e.price?parseFloat(e.price+"").toFixed(2):"-",e}))},download:function(){var e,t,r,n=this;this.downLoading||(this.ruleForm&&this.ruleForm.goodList&&this.ruleForm.goodList.length<1?this.$message.warning("暂无采购单商品!"):(this.downLoading=!0,e=JSON.parse(JSON.stringify(this.ruleForm.goodList)),t=[],e.forEach((function(e,a){var r=Object.assign({},e);r.names=e.name+e.department,t.push(r)})),r="采购应付账款导出-".concat(Object(l.n)((new Date).valueOf())),Promise.all([a.e("chunk-10eafd66"),a.e("chunk-2d0cc0b6")]).then(a.bind(null,"4bf8")).then((function(e){var a=Object(c.a)(["cgdNO","goodName","weight","goodCat","postPrice","orderNum","DownTime","names","purchasePrice","wait_fee","pay_price"],t);e.export_json_to_excel({header:["采购单编号","商品名称","g/个","金属种类","物流费","数量","下单日期","客户名称","货款总额","付款金额","成本金额"],data:a,filename:"".concat(r)}),n.$message.success("采购应付账款导出成功!"),setTimeout((function(){n.downLoading=!1}),750)}))))},initData:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){var a,r,n,o,s,l,c,u,d,p;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,i.a.detail({sid:e.id});case 2:if(!(a=t.sent)||0!==a.code){t.next=17;break}d=a.data,r=d.name,n=d.contector,o=d.pay_method,s=d.list,l=d.inv_rate,c=d.return_img,u=d.supplierNo,d=d.pay_rate,d=d.split(","),p=[],d.forEach((function(e){e=(e=e.replace(/\[/g,"")).replace(/\]/g,""),e={num:parseFloat(e)},p.push(e)})),e.ruleForm={id:e.id,name:[r+"-----"+n],account:["1"===o||"2"===o?"X":"Y",o],scale:p,goodList:s,inv_rate:l,return_img:Array.isArray(c)?c:[]},e.supplierNo=[u],e.handleChange(e.ruleForm.account),e.formatGoodList(),e.inv_rateChange(),e.$refs.ruleForm.clearValidate(),t.next=23;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=23;break;case 22:e.$message.warning(a.message);case 23:case"end":return t.stop()}}),t)})))()},resetForm:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$nextTick((function(){e.$refs.ruleForm&&(e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),e.ruleForm={id:e.id,account:["X","1"],name:[],scale:[{num:0}],goodList:[],return_img:[]},e.handleChange(e.ruleForm.account))}));case 2:case"end":return t.stop()}}),t)})))()},handleChange:function(e){"2"===e[1]?(this.show=!0,1===this.ruleForm.scale.length&&this.ruleForm.scale.push({num:0}),this.scaleChange()):this.show=!1},delGoods:function(e){this.ruleForm.goodList.splice(e,1)},setNum:function(e){return e?parseFloat(e+"").toFixed(2):"-"},submitForm:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.ruleForm.validate(function(){var t=Object(n.a)(regeneratorRuntime.mark((function t(a){var r,n,o,s,l,c,u;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!a){t.next=46;break}if(r=0,e.ruleForm.goodList.forEach((function(t){r=0===(r+=+t.wait_fee)?0:parseFloat(e.setNum(r))})),"2"!==(n=JSON.parse(JSON.stringify(e.ruleForm))).account[n.account.length-1]&&(e.scaleTotal=r,n.scale=[{num:r}]),"2"===n.account[n.account.length-1]&&e.scaleTotal!==r)return e.$message.warning("自定义金额比例总数与货款总数不一致!"),t.abrupt("return");t.next=8;break;case 8:if(o=!0,n.scale.forEach((function(e){0===e.num&&(o=!1)})),o||"2"!==n.account[n.account.length-1]){t.next=13;break}return e.$message.error("自定义比例不能出现0!"),t.abrupt("return");case 13:if(e.loading=!0,s=[],n.scale.forEach((function(e){s.push(e.num)})),l={cids:"",supplierNo:e.supplierNo[0],pay_method:n.account[n.account.length-1],pay_rate:s,inv_rate:n.inv_rate},n.goodList.forEach((function(e,t){l.cids+=0===t?e.id:","+e.id})),"add"!==e.id&&(l.payNo=e.payNo),c={},"add"===e.id)return t.next=25,i.a.add(l);t.next=28;break;case 25:c=t.sent,t.next=31;break;case 28:return t.next=30,i.a.save(l);case 30:c=t.sent;case 31:if(e.loading=!1,!c||0!==c.code){t.next=38;break}u="add"===e.id?"添加成功":"修改成功",e.$notify.success({title:u,message:""}),e.$emit("refreshAll"),t.next=44;break;case 38:if(c&&100<=c.code&&c.code<=104)return t.next=41,e.logout();t.next=43;break;case 41:t.next=44;break;case 43:e.$message.warning(c.message);case 44:t.next=48;break;case 46:return t.abrupt("return",!1);case 48:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()},remoteMethod:function(e){var t=this;return Object(n.a)(regeneratorRuntime.mark((function a(){var r;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(t.selectLoading=!0,""!==e)return t.activeOptions=[],t.parmValue.name=e,a.next=6,i.a.supplierlist(t.parmValue);a.next=19;break;case 6:if(!((r=a.sent)&&0===r.code&&r.data&&r.data.list)){a.next=11;break}t.activeOptions=r.data.list,a.next=17;break;case 11:if(r&&100<=r.code&&r.code<=104)return a.next=14,t.logout();a.next=16;break;case 14:a.next=17;break;case 16:t.$message.warning(r.message);case 17:a.next=20;break;case 19:t.options=[];case 20:t.selectLoading=!1;case 21:case"end":return a.stop()}}),a)})))()}}},a("50a9"),u=a("2877"),u=Object(u.a)(o,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"ruleForm",staticClass:"demo-ruleForm clearfix",attrs:{model:e.ruleForm,rules:e.rulesThis,"label-width":"95px"}},[a("el-row",{attrs:{gutter:10}},[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"公司名称",prop:"name"}},[a("el-select",{staticClass:"setWidth",attrs:{multiple:"",filterable:"",disabled:"003"!==e.isDetail,remote:"","multiple-limit":1,"reserve-keyword":"",placeholder:"请输入关键词搜索","remote-method":e.remoteMethod,loading:e.selectLoading},on:{change:e.selectChange},model:{value:e.ruleForm.name,callback:function(t){e.$set(e.ruleForm,"name",t)},expression:"ruleForm.name"}},e._l(e.activeOptions,(function(t){return a("el-option",{key:t.code,attrs:{label:t.name+"-----"+t.contector,value:t.code}},[a("span",{staticStyle:{float:"left"}},[e._v(e._s(t.name))]),a("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px",padding:"0 0 25px 0"}},[e._v(e._s(t.contector))])])})),1)],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"账期",prop:"account"}},[a("el-cascader",{staticClass:"setWidth",attrs:{disabled:!("003"===e.isDetail||"005"===e.isDetail&&e.pdisabled),options:e.accountList},on:{change:e.handleChange},model:{value:e.ruleForm.account,callback:function(t){e.$set(e.ruleForm,"account",t)},expression:"ruleForm.account"}})],1)],1),e.show?a("el-col",{attrs:{span:24}},[a("el-form-item",{staticStyle:{margin:"0 0 5px 0"},attrs:{label:"自定义比例",prop:"scale",required:""}},[a("el-row",[a("el-col",{style:{width:"003"===e.isDetail||"005"===e.isDetail&&e.pdisabled?"733px":"100%"},attrs:{span:"003"===e.isDetail?21:24}},[a("ul",{staticClass:"clearfix scale"},[e._l(e.ruleForm.scale,(function(t,r){return a("li",{key:t.num+""+r,staticClass:"fl",staticStyle:{margin:"0 0 10px 0"}},[a("div",{staticClass:"Addend fl"},[0!=r?a("i",{staticClass:"el-icon-plus fuhao-i fl"}):e._e(),a("el-input-number",{staticClass:"fl",staticStyle:{width:"210px"},attrs:{disabled:!("003"===e.isDetail||"005"===e.isDetail&&e.pdisabled),"step-strictly":"","controls-position":"right",precision:2,step:.01,min:0,max:99999999},on:{change:e.scaleChange},model:{value:t.num,callback:function(a){e.$set(t,"num",a)},expression:"v.num"}})],1)])})),a("li",{staticClass:"fl fuhao dengyu",staticStyle:{margin:"0 0 10px 0"}},[a("i",{staticClass:"el-icon-sort fl"})]),a("li",{staticClass:"fl",staticStyle:{margin:"0 0 10px 0"}},[a("el-input",{staticClass:"fl",staticStyle:{width:"193px"},attrs:{disabled:""},model:{value:e.scaleTotal,callback:function(t){e.scaleTotal=t},expression:"scaleTotal"}},[a("template",{slot:"append"},[e._v("元")])],2)],1)],2)]),"003"===e.isDetail||"005"===e.isDetail&&e.pdisabled?a("el-col",{staticStyle:{width:"120px"},attrs:{span:3}},[a("div",{staticClass:"clearfix"},[a("el-button-group",{staticClass:"fr"},[a("el-button",{attrs:{type:"primary",disabled:5<=e.ruleForm.scale.length,icon:"el-icon-circle-plus-outline"},on:{click:e.Addend}}),a("el-button",{attrs:{type:"danger",disabled:e.ruleForm.scale.length<=1,icon:"el-icon-delete"},on:{click:e.del}})],1)],1)]):e._e()],1)],1)],1):e._e(),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"商品税率",prop:"inv_rate"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{disabled:!("003"===e.isDetail||"005"===e.isDetail),placeholder:"请选择商品税率"},on:{change:e.inv_rateChange},model:{value:e.ruleForm.inv_rate,callback:function(t){e.$set(e.ruleForm,"inv_rate",t)},expression:"ruleForm.inv_rate"}},e._l(e.ratelist,(function(e){return a("el-option",{key:e.id,attrs:{disabled:"1"!==e.status,label:e.rateName,value:e.id}})})),1)],1)],1),a("el-col",{attrs:{span:12}},[a("el-tag",{staticStyle:{margin:"0 0 0 95px"},attrs:{type:"warning"}},[e._v("批量修改采购单商品税率")])],1),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"采购单商品",size:"mini",prop:"goodList"}},[a("el-row",{staticStyle:{margin:"0 0 5px 0"}},[a("el-col",{staticStyle:{padding:"0 0 5px 0"},attrs:{span:18}},[a("el-tag",{attrs:{type:"warning",size:"mini"}},[e._v("共计:"),a("span",[e._v(e._s(e.ruleForm.goodList.length))]),e._v("个订单。")])],1),a("el-col",{attrs:{span:6}},["003"===e.isDetail||"005"===e.isDetail&&e.pdisabled?a("el-button",{staticClass:"fr",staticStyle:{margin:"0 0 0 10px"},attrs:{type:"primary",size:"mini"},on:{click:e.addGoods}},[e._v("添加采购单")]):e._e(),a("el-button",{staticClass:"fr",attrs:{type:"primary",disabled:e.downLoading},on:{click:e.download}},[e.downLoading?a("i",{staticClass:"el-icon-loading"}):e._e(),a("span",[e._v("明细下载")])])],1),a("el-col",{attrs:{span:24}},[a("el-table",{ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:e.ruleForm.goodList,"tooltip-effect":"dark",size:"mini",stripe:"",border:"","row-key":"index","max-height":"320"}},[a("el-table-column",{attrs:{prop:"cgdNO",label:"采购单编号",width:"135",fixed:"left","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{label:"采购单信息",align:"center"}},[a("el-table-column",{attrs:{prop:"purchasePrice",label:"货款","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"name",label:"供货商","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"contector",label:"联系人",width:"65","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"ownerName",label:"采购员","show-overflow-tooltip":"",width:"65"}}),a("el-table-column",{attrs:{label:"发货状态",width:"85"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-tag",{attrs:{size:"mini",type:"3"==t.row.send_info?"success":"2"==t.row.send_info?"warning":"danger"},domProps:{textContent:e._s((e.send_status_list.find((function(e){return e.value==t.row.send_info}))||{}).label||"--")}})]}}])}),a("el-table-column",{attrs:{prop:"inv_company",label:"开票编号",width:"170px","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"inv_company_name",label:"开票公司","show-overflow-tooltip":"",width:"170px"}}),a("el-table-column",{attrs:{prop:"DownTime",label:"下单时间","show-overflow-tooltip":""}})],1),a("el-table-column",{attrs:{label:"商品基础信息",align:"center"}},[a("el-table-column",{attrs:{label:"商品编号",prop:"goodNo","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{label:"名称",prop:"goodName","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"goodUnit",label:"单位","show-overflow-tooltip":"",width:"50"}}),a("el-table-column",{attrs:{prop:"isDiff",label:"含有工差","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"workDay",label:"工期","show-overflow-tooltip":""}})],1),a("el-table-column",{attrs:{label:"商品费用信息",align:"center"}},[a("el-table-column",{attrs:{prop:"pay_price",label:"成本合计","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"pay_fee",label:"已付款","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"wait_fee",label:"待付款","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"nakedPrice",label:"成本裸价","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"markPrice",label:"加标费","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"packPrice",label:"包装费","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"certPrice",label:"证书费","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"openPrice",label:"开模费","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"craftPrice",label:"工艺费","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"postPrice",label:"物流费","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"diff_fee",label:"工差金额","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"diff_info",label:"工差","show-overflow-tooltip":""}})],1),a("el-table-column",{attrs:{label:"商品属性",align:"center"}},[a("el-table-column",{attrs:{label:"类型",prop:"goodType","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{label:"品牌",prop:"goodBank","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{label:"型号",prop:"goodModel","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{label:"材质",prop:"goodMaterial","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{label:"颜色",prop:"goodColor","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"goodDesc",label:"描述","show-overflow-tooltip":""}})],1),a("el-table-column",{attrs:{label:"贵金属属性",align:"center"}},[a("el-table-column",{attrs:{prop:"goodCat",label:"种类","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"weight",label:"重量","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"price",label:"实时价格","show-overflow-tooltip":""}})],1),a("el-table-column",{attrs:{prop:"taxPoint",label:"原税率",fixed:"right",width:"60","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"taxPoint1",label:"新税率",fixed:"right",width:"60","show-overflow-tooltip":""}}),"003"===e.isDetail||"005"===e.isDetail&&e.pdisabled?a("el-table-column",{attrs:{fixed:"right","show-overflow-tooltip":"",label:"操作",width:"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return e.delGoods(t.$index)}}},[e._v("删除")])]}}],null,!1,2022020692)}):e._e()],1),a("order-change",{attrs:{id:e.changeModelId,companyNoCode:e.companyNoCode,companyNoName:e.companyNoName,"show-model":e.changeModel},on:{refresh:e.goodsReshList,cancel:function(t){e.changeModel=!1}}})],1)],1)],1)],1),e.ruleForm.return_img&&0<e.ruleForm.return_img.length?a("el-col",{attrs:{span:24}},[a("el-form-item",{staticClass:"clear return_img",attrs:{label:"回执图片",size:"mini"}},[a("ul",{staticClass:"fl"},e._l(e.ruleForm.return_img,(function(e){return a("li",{key:e,staticClass:"fl"},[a("img",{directives:[{name:"viewer",rawName:"v-viewer"}],staticClass:"fl",staticStyle:{width:"80px",height:"52px",border:"1px solid rgb(220, 223, 230)"},attrs:{src:e,alt:""}})])})),0)])],1):e._e(),a("el-col",{staticStyle:{"text-align":"right"},attrs:{span:24}},["003"===e.isDetail||"005"===e.isDetail?a("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("保 存 ")]):e._e()],1)],1)],1)}),[],!1,null,"c065c1a4",null);t.default=u.exports},"5d51":function(e,t,a){"use strict";a.r(t);var r=a("1da1"),n=(a("96cf"),a("e9c4"),a("b680"),a("a9e3"),a("27e6")),i=a("9f53"),o=a("61f7");i={name:"Account",props:["showModel","id","isDetail"],mixins:[i.a],data:function(){return{searchName1:"",searchName2:"",searchName3:"",searchName4:"",company_img:"",options:[],bm:"",roleList:[],loading:!1,title:"添加确认单信息",showModelThis:this.showModel,ruleForm:{},rulesThis:this.rules,pickerOptions:{disabledDate:function(e){return e.getTime()>(new Date).valueOf()}},rules:{sale_name:[{required:!0,message:"请输入创建人",trigger:"blur"}],department:[{required:!0,message:"请输入部门",trigger:"blur"}],cgd_tax:[{required:!0,message:"请输入采购毛利率",trigger:"blur"}],cat_f:[{required:!0,message:"请选择商品分类",trigger:"change"}],supplierNo:[{type:"array",required:!0,message:"请选择供应商公司",trigger:"change"}],qrdType:[{required:!0,message:"请输入订单类型",trigger:"blur"}],good_total:[{required:!0,message:"请输入货款总金额",trigger:"blur"}],sequenceNo:[{required:!0,message:"请输入单据号",trigger:"blur"}],poNo:[{required:!0,message:"请输入PO编号",trigger:"blur"}],khNo:[{type:"array",required:!0,message:"请选择购买方公司",trigger:"change"}],tax:[{type:"array",required:!0,message:"请选择税率",trigger:"change"}],companyNo:[{type:"array",required:!0,message:"请选择销售方公司",trigger:"change"}],contactor:[{required:!0,message:"请输入收货人",trigger:"blur"}],mobile:[{required:!0,validator:function(e,t,a){""!==t?Object(o.h)(t)||Object(o.g)(t)?a():a(new Error("联系电话格式不正确!")):a(new Error("请输入联系电话!"))},trigger:"blur"}],addr:[{required:!0,message:"请输入联系地址",trigger:"blur"}],sendtime:[{required:!0,message:"请输入发货时间",trigger:"change"}],goodName:[{required:!0,message:"请输入商品名称",trigger:"blur"}],goodPice:[{required:!0,message:"请输入单价",trigger:"blur"}],goodNum:[{required:!0,message:"请输入数量",trigger:"blur"}]}}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis:function(e){e||this.$emit("cancel")}},methods:{closeModel:function(){},searchChange1:function(e){this.ruleForm.khNo=JSON.parse(JSON.stringify(e)),this.$refs.ruleForm.validateField("khNo")},searchChange2:function(e){this.ruleForm.companyNo=JSON.parse(JSON.stringify(e)),this.$refs.ruleForm.validateField("companyNo")},searchChange3:function(e){this.ruleForm.supplierNo=JSON.parse(JSON.stringify(e)),this.$refs.ruleForm.validateField("supplierNo")},searchChange4:function(e){this.ruleForm.tax=JSON.parse(JSON.stringify(e)),this.$refs.ruleForm.validateField("tax")},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.setform(),e.searchName1="",e.searchName2="",e.searchName3="",e.searchName4="",e.loading=!0,"add"===e.id)return e.title="添加确认单信息",e.rulesThis=e.rules,t.next=11,e.resetForm();t.next=13;break;case 11:t.next=18;break;case 13:return e.isDetail?(e.title="确认单信息详情",e.rulesThis={}):(e.title="修改确认单信息",e.rulesThis=e.rules),t.next=16,e.resetForm();case 16:return t.next=18,e.initData();case 18:return t.next=20,e.getCatList();case 20:e.loading=!1;case 21:case"end":return t.stop()}}),t)})))()},initData:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){var a,r,i,o,s,l,c,u,d,p,m,f,h,b,g,w,v,x,_,y,k,F,S,N;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n.a.detail({id:e.id});case 2:if(!(a=t.sent)||0!==a.code){t.next=12;break}N=a.data,r=N.addr,i=N.cgd_tax,o=N.contactor,s=N.department,l=N.goodName,c=N.goodNum,u=N.goodPice,d=N.good_total,p=N.khNo,m=N.mobile,f=N.poNo,h=N.qrdType,b=N.sale_name,g=N.sendtime,w=N.supperinfo,v=N.supplier,x=N.supplierNo,_=N.companyNo,y=N.sequenceNo,k=N.knName,F=N.tax,S=N.cat_f,N=N.rateid,e.searchName1=k,e.searchName2=w,e.searchName3=v,e.searchName4=F,e.ruleForm={khNo:[p],companyNo:[_],supplierNo:[x],sale_name:b,department:s,qrdType:h,good_total:+d,sequenceNo:y,poNo:f,contactor:o,mobile:m,addr:r,cat_f:S||"",sendtime:g,goodName:l,goodPice:+u,goodNum:+c,cgd_tax:+i,tax:[N]},t.next=18;break;case 12:if(a&&100<=a.code&&a.code<=104)return t.next=15,e.logout();t.next=17;break;case 15:t.next=18;break;case 17:e.$message.warning(a.message);case 18:case"end":return t.stop()}}),t)})))()},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.setform())}));case 2:case"end":return t.stop()}}),t)})))()},setform:function(){this.ruleForm={khNo:[],companyNo:[],supplierNo:[],sale_name:"",department:"网络部",qrdType:"客服确认单",good_total:0,sequenceNo:"",poNo:"",contactor:"",mobile:"",addr:"",cat_f:"",sendtime:"",goodName:"",goodPice:0,goodNum:0,cgd_tax:0,tax:[]}},numBlur:function(){this.ruleForm.good_total=this.setNum(+this.ruleForm.goodPice*+this.ruleForm.goodNum)},setNum:function(e){return e?parseFloat(e+"").toFixed(2):"0"},getCatList: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.options=[],a={pid:"",level:"1"},t.next=4,n.a.getcat(a);case 4:if(!(r=t.sent)||0!==r.code){t.next=9;break}e.options=r.data,t.next=15;break;case 9:if(r&&100<=r.code&&r.code<=104)return t.next=12,e.logout();t.next=14;break;case 12:t.next=15;break;case 14:e.$message.warning(r.message);case 15:case"end":return t.stop()}}),t)})))()},submitForm:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.ruleForm.validate(function(){var t=Object(r.a)(regeneratorRuntime.mark((function t(a){var n,i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!a){t.next=28;break}if(e.loading=!0,n=JSON.parse(JSON.stringify(e.ruleForm)),"0.00"===parseFloat(n.goodPice+"").toFixed(2))return e.$message.warning("商品单价不能为0!"),e.loading=!1,t.abrupt("return");t.next=7;break;case 7:if(0===n.goodNum)return e.$message.warning("商品数量不能为0!"),e.loading=!1,t.abrupt("return");t.next=11;break;case 11:for(i in n.companyNo=n.companyNo[0],n.khNo=n.khNo[0],n.supplierNo=n.supplierNo[0],n.tax=n.tax[0],n.buyer=n.sale_name,n.buy_depart=n.department,n.id=e.id,n)n[i]=n[i]+"";if(0!==Number(n.cgd_tax)){t.next=24;break}e.$confirm("当前采购毛利率为0,是否提交?","温馨提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(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.httpSubmit(n);case 2:case"end":return t.stop()}}),t)})))).catch((function(){e.loading=!1})),t.next=26;break;case 24:return t.next=26,e.httpSubmit(n);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)})))()},httpSubmit:function(e){var t=this;return Object(r.a)(regeneratorRuntime.mark((function a(){var r,i;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(r={},"add"===t.id)return delete e.id,a.next=5,n.a.add(e);a.next=8;break;case 5:r=a.sent,a.next=11;break;case 8:return a.next=10,n.a.update(e);case 10:r=a.sent;case 11:if(t.loading=!1,!r||0!==r.code){a.next=19;break}i="add"===t.id?"添加成功!":"修改成功!",t.$notify.success({title:i,message:""}),t.showModelThis=!1,t.$emit("refresh"),a.next=25;break;case 19:if(r&&100<=r.code&&r.code<=104)return a.next=22,t.logout();a.next=24;break;case 22:a.next=25;break;case 24:t.$message.warning(r.message);case 25:case"end":return a.stop()}}),a)})))()}}},a("bec2"),a=a("2877"),a=Object(a.a)(i,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:e.title,center:!0,align:"left",top:"5vh",width:"1040px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)"},on:{"update:visible":function(t){e.showModelThis=t},close:e.closeModel}},[a("el-card",{staticStyle:{"margin-top":"-20px"}},[a("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",rules:e.rulesThis,size:"mini","label-width":"93px"}},[a("el-row",{attrs:{gutter:10}},[a("el-col",{staticStyle:{padding:"0 0 10px 0","margin-top":"-5px"},attrs:{span:24}},[a("el-divider",[a("el-tag",{attrs:{size:"mini"}},[e._v("确认单信息")])],1)],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"创建人",prop:"sale_name"}},[a("el-input",{attrs:{placeholder:"请输入创建人",disabled:e.isDetail,maxlength:"200"},model:{value:e.ruleForm.sale_name,callback:function(t){e.$set(e.ruleForm,"sale_name","string"==typeof t?t.trim():t)},expression:"ruleForm.sale_name"}})],1)],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"部门",prop:"department"}},[a("el-input",{attrs:{placeholder:"请输入部门",disabled:"",maxlength:"200"},model:{value:e.ruleForm.department,callback:function(t){e.$set(e.ruleForm,"department","string"==typeof t?t.trim():t)},expression:"ruleForm.department"}})],1)],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"确认单类型",prop:"qrdType"}},[a("el-input",{attrs:{placeholder:"请输入确认单类型",disabled:"",maxlength:"200"},model:{value:e.ruleForm.qrdType,callback:function(t){e.$set(e.ruleForm,"qrdType","string"==typeof t?t.trim():t)},expression:"ruleForm.qrdType"}})],1)],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"采购毛利率",prop:"cgd_tax"}},[a("el-input-number",{staticStyle:{width:"100%"},attrs:{"controls-position":"right",placeholder:"请输入采购毛利率",disabled:e.isDetail,min:0,precision:2,"step-strictly":"",step:.01,max:100},on:{change:e.numBlur},model:{value:e.ruleForm.cgd_tax,callback:function(t){e.$set(e.ruleForm,"cgd_tax",t)},expression:"ruleForm.cgd_tax"}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"单据号",prop:"sequenceNo"}},[a("el-input",{attrs:{placeholder:"请输入单据号",disabled:e.isDetail,maxlength:"200"},model:{value:e.ruleForm.sequenceNo,callback:function(t){e.$set(e.ruleForm,"sequenceNo","string"==typeof t?t.trim():t)},expression:"ruleForm.sequenceNo"}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"PO编号",prop:"poNo"}},[a("el-input",{attrs:{placeholder:"请输入PO编号",disabled:e.isDetail,maxlength:"200"},model:{value:e.ruleForm.poNo,callback:function(t){e.$set(e.ruleForm,"poNo","string"==typeof t?t.trim():t)},expression:"ruleForm.poNo"}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"购买方公司",prop:"khNo"}},[a("search-select",{attrs:{code:e.ruleForm.khNo,placeholder:"请选择购买方公司",names:e.searchName1,"is-detail":"add"!==e.id,type:"1",size:"mini",disabled:e.isDetail},on:{end:e.searchChange1}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"销售方公司",prop:"companyNo"}},[a("search-select",{attrs:{code:e.ruleForm.companyNo,placeholder:"请选择销售方公司",names:e.searchName2,type:"2",size:"mini","is-detail":"add"!==e.id,disabled:e.isDetail},on:{end:e.searchChange2}})],1)],1),a("el-col",{staticStyle:{padding:"0 0 10px 0","margin-top":"-5px"},attrs:{span:24}},[a("el-divider",[a("el-tag",{attrs:{size:"mini"}},[e._v("收货信息")])],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"收货人",prop:"contactor"}},[a("el-input",{attrs:{placeholder:"请输入收货人",maxlength:"200",disabled:e.isDetail},model:{value:e.ruleForm.contactor,callback:function(t){e.$set(e.ruleForm,"contactor","string"==typeof t?t.trim():t)},expression:"ruleForm.contactor"}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"联系电话",prop:"mobile"}},[a("el-input",{attrs:{placeholder:"请输入联系电话",maxlength:"200",disabled:e.isDetail},model:{value:e.ruleForm.mobile,callback:function(t){e.$set(e.ruleForm,"mobile","string"==typeof t?t.trim():t)},expression:"ruleForm.mobile"}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"联系地址",prop:"addr"}},[a("el-input",{attrs:{placeholder:"请输入联系地址",maxlength:"200",disabled:e.isDetail},model:{value:e.ruleForm.addr,callback:function(t){e.$set(e.ruleForm,"addr","string"==typeof t?t.trim():t)},expression:"ruleForm.addr"}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"发货时间",prop:"sendtime"}},[a("el-date-picker",{staticStyle:{width:"100%",margin:"0"},attrs:{editable:!1,clearable:!0,size:"mini","picker-options":e.pickerOptions,placeholder:"请选择发货时间",type:"datetime",disabled:e.isDetail,"value-format":"yyyy-MM-dd HH:mm:ss"},model:{value:e.ruleForm.sendtime,callback:function(t){e.$set(e.ruleForm,"sendtime",t)},expression:"ruleForm.sendtime"}})],1)],1),a("el-col",{staticStyle:{padding:"0 0 10px 0","margin-top":"-5px"},attrs:{span:24}},[a("el-divider",[a("el-tag",{attrs:{size:"mini"}},[e._v("商品信息")])],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"供应商公司",prop:"supplierNo"}},[a("search-select",{attrs:{code:e.ruleForm.supplierNo,placeholder:"请选择供应商公司",type:"3",size:"mini",names:e.searchName3,disabled:e.isDetail,"is-detail":"add"!==e.id},on:{end:e.searchChange3}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"商品分类",prop:"cat_f"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"",disabled:e.isDetail,placeholder:"请选择商品分类"},model:{value:e.ruleForm.cat_f,callback:function(t){e.$set(e.ruleForm,"cat_f",t)},expression:"ruleForm.cat_f"}},e._l(e.options,(function(e,t){return a("el-option",{key:e.cat_name+t,attrs:{label:e.cat_name,value:e.cat_name}})})),1)],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"商品名称",prop:"goodName"}},[a("el-input",{attrs:{placeholder:"请输入商品名称",maxlength:"200",disabled:e.isDetail},model:{value:e.ruleForm.goodName,callback:function(t){e.$set(e.ruleForm,"goodName","string"==typeof t?t.trim():t)},expression:"ruleForm.goodName"}})],1)],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"数量",prop:"goodNum"}},[a("el-input-number",{staticStyle:{width:"100%"},attrs:{"controls-position":"right",placeholder:"请输入数量",disabled:e.isDetail,min:0,precision:0,"step-strictly":"",step:1,max:9999999},on:{change:e.numBlur},model:{value:e.ruleForm.goodNum,callback:function(t){e.$set(e.ruleForm,"goodNum",t)},expression:"ruleForm.goodNum"}})],1)],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"单价","label-width":"55px",prop:"goodPice"}},[a("el-input-number",{staticStyle:{width:"100%"},attrs:{"controls-position":"right",placeholder:"请输入单价",disabled:e.isDetail,min:0,precision:2,"step-strictly":"",step:.01,max:9999999},on:{change:e.numBlur},model:{value:e.ruleForm.goodPice,callback:function(t){e.$set(e.ruleForm,"goodPice",t)},expression:"ruleForm.goodPice"}})],1)],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"货款总额",prop:"good_total"}},[a("el-input",{attrs:{placeholder:"请输入货款总额",disabled:""},model:{value:e.ruleForm.good_total,callback:function(t){e.$set(e.ruleForm,"good_total",e._n(t))},expression:"ruleForm.good_total"}},[a("template",{slot:"append"},[e._v("元")])],2)],1)],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"税率",prop:"tax"}},[a("search-select",{attrs:{code:e.ruleForm.tax,placeholder:"请选择税率",type:"4",size:"mini",names:e.searchName4,disabled:e.isDetail,"is-detail":"add"!==e.id},on:{end:e.searchChange4}})],1)],1),a("el-col",{staticStyle:{"text-align":"right",padding:"5px 0 0 0"},attrs:{span:12}},[e.isDetail?e._e():a("el-button",{attrs:{size:"mini",type:"primary"},on:{click:e.submitForm}},[e._v("保 存 ")]),a("el-button",{attrs:{size:"mini"},on:{click:function(t){e.showModelThis=!1}}},[e._v(e._s(e.isDetail?"关 闭":"取 消"))])],1)],1)],1)],1)],1)}),[],!1,null,"1bf67bc3",null);t.default=a.exports},"5de4":function(e,t,a){"use strict";a.r(t);var r=a("1da1"),n=a("5530"),i=(a("96cf"),a("7db0"),a("d3b7"),a("99af"),a("d81d"),a("e9c4"),a("159b"),a("f5ed")),o=a("21fa"),s=a("b36d"),l=a("2f62"),c=a("9f53");s={name:"MenuOperator",components:{addEdit:s.default},mixins:[i.a,c.a],computed:Object(n.a)(Object(n.a)({},Object(l.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"menuOperator"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),data:function(){return{loading:!0,showModel:!1,showInterface:!1,isDetail:!1,isAdd:!0,level:1,modelId:0,formData:{},parentIds:"",parmValue:{parentId:0,code:"",status:"",type:1,menuCategory:"",current:1,size:10},tableData:[]}},created:function(){this.restSearch()},methods:{restSearch:function(){this.searchList()},editInterface:function(e){this.showInterface=!0,this.modelId=e},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},submitRefresh:function(e,t,a){a<3?this.restSearch():this.getchildList(t)},remove:function(e,t,a,n){var i=this;return Object(r.a)(regeneratorRuntime.mark((function s(){return regeneratorRuntime.wrap((function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=3,i.$confirm("确定要".concat("0"===n?"启用":"禁用","?"),{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(r.a)(regeneratorRuntime.mark((function r(){var s,l;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(s={id:e,status:"1"===n?"0":"1"},l={},3===a)return r.next=5,o.a.actionstatus(s);r.next=8;break;case 5:l=r.sent,r.next=11;break;case 8:return r.next=10,o.a.menustatus(s);case 10:l=r.sent;case 11:if(!l||0!==l.code){r.next=16;break}i.$notify.success({title:"修改成功!",message:""}),3===a?i.getchildList(t):i.restSearch(),r.next=22;break;case 16:if(l&&100<=l.code&&l.code<=104)return r.next=19,i.logout();r.next=21;break;case 19:r.next=22;break;case 21:i.$message.warning(l.message);case 22:case"end":return r.stop()}}),r)})))).catch((function(){}));case 3:case"end":return s.stop()}}),s)})))()},openChildren:function(e,t,a,r){r?this.tableData=1===a?this.tableData.map((function(t){return t.id===e&&(t.child=[]),t})):this.tableData.map((function(a){return a.id===t&&(a.child=a.child.map((function(t){return t.id===e&&(t.child=[]),t}))),a})):1===a?this.concatData(e,"0",a):this.getchildList(e)},getchildList: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 t.loading=!0,a.next=3,o.a.actionList({id:e});case 3:if(r=a.sent,n=[],!r||0!==r.code||!r.data){a.next=9;break}n=r.data,a.next=15;break;case 9:if(r&&100<=r.code&&r.code<=104)return a.next=12,t.logout();a.next=14;break;case 12:a.next=15;break;case 14:t.$message.warning(r.message);case 15:i=(i=JSON.parse(JSON.stringify(t.tableData))).map((function(t,a){return t&&t.child&&0<t.child.length&&t.child.forEach((function(t,a){return e===t.id&&(t.child=n),t})),t})),t.tableData=i,t.loading=!1;case 19:case"end":return a.stop()}}),a)})))()},concatData:function(e,t,a){var n=this;return Object(r.a)(regeneratorRuntime.mark((function r(){var i,s,l;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n.loading=!0,r.next=4,o.a.list({});case 4:if(i=r.sent,s=[],!i||0!==i.code||!i.data){r.next=10;break}s=i.data,r.next=16;break;case 10:if(i&&100<=i.code&&i.code<=104)return r.next=13,n.logout();r.next=15;break;case 13:r.next=16;break;case 15:n.$message.warning(i.message);case 16:l=(l=JSON.parse(JSON.stringify(n.tableData))).map((function(r,n){return(1===a?e:t===r.id)&&(r.child=s[n].child),r})),n.tableData=l,n.loading=!1;case 20:case"end":return r.stop()}}),r)})))()},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.list({});case 3:if(a=t.sent,e.tableData=[],!a||0!==a.code||!a.data){t.next=10;break}e.tableData=a.data,t.next=16;break;case 10:if(a&&100<=a.code&&a.code<=104)return t.next=13,e.logout();t.next=15;break;case 13:t.next=16;break;case 15:e.tableData=[];case 16:e.loading=!1;case 17:case"end":return t.stop()}}),t)})))()}}},i=a("2877"),c=Object(i.a)(s,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("div",{staticClass:"box pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?t("div",[t("el-row",{attrs:{gutter:10}},[t("el-col",{staticStyle:{padding:"5px"},attrs:{span:24}},[t("el-col",{staticStyle:{width:"195px",float:"right"},attrs:{span:3}},[e.powers.some((function(e){return"002"==e}))?t("el-button",{staticStyle:{float:"right","margin-left":"5px"},attrs:{type:"primary",size:e.searchSize},on:{click:e.restSearch}},[e._v(" 刷新 ")]):e._e(),e.powers.some((function(e){return"003"==e}))?t("el-button",{staticStyle:{float:"right"},attrs:{type:"success",size:e.searchSize},on:{click:function(t){return e.addEditFn(0,"0",1,!1,!0,{})}}},[e._v(" 添加 ")]):e._e()],1)],1)],1),t("el-row",{attrs:{gutter:10}},[t("el-col",{attrs:{span:24}},[t("shy-tree",{attrs:{value:e.tableData,level:1},on:{addEdit:e.addEditFn,openChildren:e.openChildren,editInterface:e.editInterface,remove:e.remove}})],1)],1),t("add-edit",{attrs:{id:e.modelId,"show-model":e.showModel,level:e.level,"parent-ids":e.parentIds,"is-add":e.isAdd,"form-data":e.formData,type:e.parmValue.type,"is-detail":e.isDetail},on:{refresh:e.submitRefresh,cancel:function(t){e.showModel=!1}}})],1):t("div",[t("no-auth")],1)])}),[],!1,null,null,null);t.default=c.exports},"5e53":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("4c1f")),o=a("f5ed"),s=a("7d27"),l=a("2f62"),c=a("9f53");o={name:"updates",mixins:[o.a,c.a],components:{PeriodDatePicker: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"updates"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),data:function(){return{loading:!0,showModel:!1,isDetail:!1,modelId:0,parmValue:{type:"VER",page:1,size:15},count:0,tableData:[]}},mounted:function(){this.searchList()},methods:{restSearch:function(){this.parmValue={type:"VER",page:1,size:15},this.count=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,t.next=3,i.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.count=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.count=0;case 16:e.loading=!1;case 17:case"end":return t.stop()}}),t)})))()}}},c=a("2877"),s=Object(c.a)(o,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"updates pagePadding",staticStyle:{"padding-top":"25px"}},[e.powers&&0<e.powers.length&&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,border:"",size:e.size,stripe:""}},[a("el-table-column",{attrs:{type:"expand"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form",{staticClass:"demo-table-expand",attrs:{size:e.size,"label-position":"top",inline:""}},[a("el-form-item",{attrs:{label:"更新内容"}},[a("p",{domProps:{innerHTML:e._s(t.row.system)}})])],1)]}}],null,!1,1054835690)}),a("el-table-column",{attrs:{label:"版本号",prop:"version"}}),a("el-table-column",{attrs:{label:"更新模块",prop:"module"}}),a("el-table-column",{attrs:{label:"更新时间",prop:"addtime"}})],1),a("div",{directives:[{name:"show",rawName:"v-show",value:0<e.count,expression:"count > 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,"9d923b9a",null);t.default=s.exports},"5f10":function(e,t,a){"use strict";a.r(t);var r=a("1da1"),n=(a("96cf"),a("7caa")),i={name:"specs",props:["showModel","id"],mixins:[a("9f53").a],data:function(){return{loading:!1,title:"业务参数详情",showModelThis:this.showModel,dataInfo:{}}},methods:{closeModel:function(){},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 t.next=2,e.initData();case 2:case"end":return t.stop()}}),t)})))()},initData: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,t.next=3,n.a.detail({id:e.id});case 3:if(a=t.sent,e.loading=!1,!a||0!==a.code){t.next=10;break}r=a.data,e.dataInfo=r,t.next=16;break;case 10:if(a&&100<=a.code&&a.code<=104)return t.next=13,e.logout();t.next=15;break;case 13:t.next=16;break;case 15:e.$message.warning(a.message);case 16:case"end":return t.stop()}}),t)})))()}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis:function(e){e||this.$emit("cancel")}}};a("1fb6"),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:"5vh",width:"700px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)"},on:{close:e.closeModel,"update:visible":function(t){e.showModelThis=t}}},[t("el-card",[t("el-row",{attrs:{gutter:10}},[t("el-col",{attrs:{span:24}}),t("el-col",{staticStyle:{"text-align":"right"},attrs:{span:24}},[t("el-button",{on:{click:function(t){e.showModelThis=!1}}},[e._v("关 闭")])],1)],1)],1)],1)}),[],!1,null,"77d131a7",null);t.default=a.exports},"5fc8":function(e,t,a){},"60c0":function(e,t,a){},"60e4":function(e,t,a){"use strict";a("57c6")},"61b8":function(e,t,a){"use strict";var r=a("1b69"),n="Admin/";t.a={list:function(e,t){return Object(r.a)(n+"refundlist",e,"post",t)},clist:function(e,t){return Object(r.a)(n+"customerlist",e,"post",t)},add:function(e,t){return Object(r.a)(n+"refundcreate",e,"post",t)},detail:function(e,t){return Object(r.a)(n+"refundinfo",e,"post",t)},delete:function(e,t){return Object(r.a)(n+"refunddel",e,"post",t)},status:function(e,t){return Object(r.a)(n+"refundexam",e,"post",t)}}},"621b":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("a15b"),a("a9e3"),a("3264")),o=a("1d37"),s=a("61b8"),l=a("f5ed"),c=a("2f62"),u=a("9f53"),d=a("5daa");l={name:"refund",mixins:[l.a,u.a],components:{ExTable:i.default,addEdit:o.default},computed:Object(n.a)(Object(n.a)({},Object(c.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"refund"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),data:function(){return{showModel:!1,isDetail:!1,selection:[],invNo:"0",dstatus:"0",modelId:0,selectLoading:!1,billType:[{code:"1",name:"待业务审核"},{code:"2",name:"待财务审核"},{code:"3",name:"待资金认领完成"},{code:"4",name:"退款已完成"},{code:"5",name:"业务已驳回"},{code:"6",name:"财务已驳回"}],activeOptions:[],name:"",downLoading:!1,code:[],loading:!0,formValue:{company:"",page:1,size:100},fileUrl:d.a.baseURL+"%E5%8F%91%E7%A5%A8%E5%AF%BC%E5%85%A5%E6%A8%A1%E6%9D%BF.xls",parmValue:{companyNo:"",type:"1",page:1,size:15,relaNo:"",inv_type:"",back_type:"",refund_status:""},tableData:[],table:{stripe:!0,border:!0,_defaultHeader_:["setcol"]},pageInfo:{size:15,curr:1,total:0},columns:[{prop:"refundNo",label:"退款编号",width:"180px",fixed:"left"},{prop:"traNo",label:"原资金编号",width:"180px"},{prop:"customerNo",label:"客户企业编码",width:"130px"},{prop:"customer",label:"客户企业名称","min-width":"180px"},{prop:"refund_fee",label:"退款总额度",width:"120px"},{prop:"back_fee",label:"退款认领额度",width:"120px"},{prop:"apply_name",label:"申请人",width:"85px"},{prop:"refund_status",label:"退款状态",_slot_:"refund_status",width:"120px"},{prop:"addtime",label:"申请时间",sortable:!0,width:"150px"},{prop:"",label:"操作",fixed:"right",_noset_:!0,width:"110px",_slot_:"operation"}]}},mounted:function(){this.searchList()},methods:{selectChange: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 a=JSON.parse(JSON.stringify(e.code)),e.parmValue.companyNo=a.join(","),e.parmValue.page=1,t.next=5,e.searchList();case 5:case"end":return t.stop()}}),t)})))()},restSearch:function(){this.pageInfo={size:15,curr:1,total:0},this.parmValue={companyNo:"",type:"1",page:1,size:15,relaNo:"",inv_type:"",back_type:"",refund_status:""},this.searchList()},openModal:function(e,t,a){this.modelId=e,this.dstatus=a,this.isDetail=t,this.showModel=!0},changeStatus: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={refundNo: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: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)})))()},remoteMethod: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.selectLoading=!0,""!==e)return t.activeOptions=[],t.formValue.company=e,a.next=6,s.a.clist(t.formValue);a.next=19;break;case 6:if(!((r=a.sent)&&0===r.code&&r.data&&r.data.list)){a.next=11;break}t.activeOptions=r.data.list,a.next=17;break;case 11:if(r&&100<=r.code&&r.code<=104)return a.next=14,t.logout();a.next=16;break;case 14:a.next=17;break;case 16:t.$message.warning(r.message);case 17:a.next=20;break;case 19:t.activeOptions=[];case 20:t.selectLoading=!1;case 21:case"end":return a.stop()}}),a)})))()}}},u=a("2877"),i=Object(u.a)(l,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"refund pagePadding"},[e.powers&&0<e.powers.length&&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 10px 80px"},attrs:{span:24}},[a("el-col",{staticStyle:{width:"470px"},attrs:{span:12}},[a("el-select",{staticStyle:{width:"100%"},attrs:{multiple:"",filterable:"",remote:"","multiple-limit":1,"reserve-keyword":"",size:e.searchSize,placeholder:"公司名称","remote-method":e.remoteMethod,loading:e.selectLoading},on:{change:e.selectChange},model:{value:e.code,callback:function(t){e.code=t},expression:"code"}},e._l(e.activeOptions,(function(e){return a("el-option",{key:e.companyNo,attrs:{label:e.companyName,value:e.companyNo}})})),1)],1),e.powers.some((function(e){return"002"==e}))?a("el-col",{staticStyle:{width:"66px",float:"right"},attrs:{span:4}},[a("el-button",{staticStyle:{float:"right"},attrs:{size:e.searchSize,type:"primary"},on:{click:e.searchList}},[e._v(" 刷新 ")])],1):e._e(),e.powers.some((function(e){return"024"==e}))?a("el-col",{staticStyle:{width:"66px",float:"right"},attrs:{span:4}},[a("el-button",{staticStyle:{float:"right"},attrs:{type:"warning",size:e.searchSize},on:{click:e.restSearch}},[e._v(" 重置 ")])],1):e._e()],1),a("el-col",{attrs:{span:24}},[a("el-col",{staticStyle:{width:"190px"},attrs:{span:4}},[a("el-select",{staticStyle:{width:"100%"},attrs:{size:e.searchSize,placeholder:"退款状态"},on:{change:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.parmValue.refund_status,callback:function(t){e.$set(e.parmValue,"refund_status",t)},expression:"parmValue.refund_status"}},e._l(e.billType,(function(e){return a("el-option",{key:e.code,attrs:{label:e.name,value:e.code}})})),1)],1),a("el-col",{staticStyle:{width:"290px","padding-left":"10px"},attrs:{span:4}},[a("el-input",{staticClass:"input-with-select",attrs:{size:e.searchSize,placeholder:"请输入资金编号"},model:{value:e.parmValue.relaNo,callback:function(t){e.$set(e.parmValue,"relaNo",t)},expression:"parmValue.relaNo"}},[a("el-button",{attrs:{slot:"append",icon:"el-icon-search"},on:{click:e.searchList},slot:"append"})],1)],1),e.powers.some((function(e){return"003"==e}))?a("el-col",{staticStyle:{width:"80px",float:"right"},attrs:{span:4}},[a("el-button",{staticStyle:{float:"right"},attrs:{type:"success",size:e.searchSize},on:{click:function(t){return e.openModal("add","003")}}},[e._v(" 添加 ")])],1):e._e()],1)],1)],1)]}},{key:"refund_status",fn:function(t){var r=t.scope;return[a("el-tag",{attrs:{type:"4"==r.row.refund_status?"success":"5"==r.row.refund_status||"6"==r.row.refund_status?"danger":"warning",size:"mini"},domProps:{textContent:e._s((e.billType.find((function(e){return e.code==r.row.refund_status}))||{}).name||"--")}})]}},{key:"operation",fn:function(t){var r=t.scope;return[e.powers.some((function(e){return"028"==e}))&&"1"===r.row.refund_status?a("el-tooltip",{attrs:{effect:"dark",content:"业务审核",placement:"top"}},[a("i",{staticClass:"el-icon-finished tb-icon",on:{click:function(t){return e.openModal(r.row.refundNo,"028",r.row.refund_status)}}})]):e._e(),e.powers.some((function(e){return"029"==e}))&&"2"===r.row.refund_status?a("el-tooltip",{attrs:{effect:"dark",content:"财务审核",placement:"top"}},[a("i",{staticClass:"el-icon-finished tb-icon",on:{click:function(t){return e.openModal(r.row.refundNo,"029",r.row.refund_status)}}})]):e._e(),e.powers.some((function(e){return"027"==e}))&&"3"!==r.row.refund_status&&"4"!==r.row.refund_status?a("el-tooltip",{attrs:{effect:"dark",content:"取消申请",placement:"top"}},[a("i",{staticClass:"el-icon-error tb-icon",on:{click:function(t){return e.changeStatus(r.row.refundNo)}}})]):e._e()]}}],null,!1,2459792904)}):a("no-auth"),a("add-edit",{attrs:{id:e.modelId,"show-model":e.showModel,"is-detail":e.isDetail,dstatus:e.dstatus},on:{refresh:e.searchList,cancel:function(t){e.showModel=!1}}})],1)}),[],!1,null,"68906335",null);t.default=i.exports},"62f7":function(e,t,a){"use strict";a("6932")},"65a7":function(e,t,a){},"672e":function(e,t,a){"use strict";a("3de5")},"67b3":function(e,t,a){},6810:function(e,t,a){"use strict";a.r(t);var r=a("1da1"),n=(a("96cf"),a("c740"),{props:["showModel","id","isDetail","dstatus","payNo"],data:function(){return{active:0,dstatusOptions:[{id:"0",label:"提交申请"},{id:"1",label:"业务审核"},{id:"3",label:"上传发票"},{id:"4",label:"识别发票"},{id:"5",label:"校验结果"},{id:"6",label:"审核发票"},{id:"7",label:"回票完成"}]}},mounted:function(){this.initForm()},methods:{initForm:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.active=e.dstatusOptions.findIndex((function(t){return t.id===e.dstatus}));case 1:case"end":return t.stop()}}),t)})))()}}});a=a("2877"),a=Object(a.a)(n,(function(){var e=this.$createElement,t=this._self._c||e;return t("el-steps",{staticStyle:{padding:"12px 0 18px 0"},attrs:{active:this.active,"align-center":"","process-status":"finish"}},this._l(this.dstatusOptions,(function(e,a){return t("el-step",{key:e.name+a,attrs:{title:e.label}})})),1)}),[],!1,null,null,null);t.default=a.exports},6932:function(e,t,a){},"6a1e":function(e,t,a){"use strict";var r=a("1b69");t.a={verfiy:function(e,t){return Object(r.a)("Api/verify_code",e,"post",t)},resetpwd:function(e,t){return Object(r.a)("Api/passmobile",e,"post",t)},resetmobile:function(e,t){return Object(r.a)("Api/resetmobile",e,"post",t)},setpwd:function(e,t){return Object(r.a)("Api/passsave",e,"post",t)},list:function(e,t){return Object(r.a)("admin/menu",e,"post",t)},detail:function(e,t){return Object(r.a)("Admin/userinfo",e,"post",t)},version:function(e,t){return Object(r.a)("Admin/lastversion",e,"post",t)},prefect:function(e,t){return Object(r.a)("Api/prefect",e,"post",t)}}},"6aa7":function(e,t,a){"use strict";a.r(t);var r=a("1da1"),n=a("5530"),i=(a("96cf"),a("7db0"),a("d3b7"),a("159b"),a("99af"),a("3ca3"),a("ddb0"),a("b0c0"),a("a15b"),a("a9e3"),a("a717")),o=a("3904"),s=a("7b0b1"),l=a("5daa"),c=a("f5ed"),u=a("2f62"),d=a("7d27"),p=a("50ec"),m=a("db30"),f=a("61f7"),h=a("9f53"),b=a("d20f");c={name:"capitalClaim",mixins:[c.a,h.a],components:{addEdit:i.default,PeriodDatePicker:d.a,numberRange:p.a,addEdit1:o.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"capitalClaim"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),data:function(){return{multipleSelection:[],select:"1",sname:"",stype:"",input:"",timer:!1,logNo:"",status:"",trade_type:"",exam_remark:"",importshowModel:!1,fileUrl:l.a.baseURL+"%E8%B5%84%E9%87%91%E6%A8%A1%E6%9D%BF.xls",invoiceType:m.d,orderType:m.e,capitalFlowType:m.b,downLoading:!1,code:[],selectLoading:!1,activeOptions:[],name:"",contector:"",loading:!1,showModel:!1,isDetail:!1,modelId:0,parmValue:{companyNo:"",name:"",logNo:"",total_low:"",total_up:"",start:"",end:"",status:"",page:1,size:15},tableData:[],count:0}},mounted:function(){this.searchList()},methods:{handleSelectionChange:function(e){this.multipleSelection=e},restSearch:function(){this.code=[],this.pageInfo={size:15,curr:1,total:0},this.parmValue={companyNo:"",total_low:"",total_up:"",name:"",start:"",end:"",logNo:"",status:"",page:1,size:15},this.searchList()},batchExport:function(){var e,t,r,n=this;this.loading||(0==this.multipleSelection.length?this.$message.warning("请至少选择一条数据!"):(e=[],this.multipleSelection.forEach((function(t){e.push(t),t.children&&0<t.children.length&&t.children.forEach((function(t){e.push(t)}))})),this.loading=!0,t=(t=[]).concat.apply(t,e),r=[],t.forEach((function(e){e=Object.assign({},e),e.trade_type="0"===e.trade_type?"收入":"支出",r.push(e)})),Promise.all([a.e("chunk-10eafd66"),a.e("chunk-2d0cc0b6")]).then(a.bind(null,"4bf8")).then((function(e){var t=Object(b.a)(["traNo","trade_type","statusName","total_fee","amount","companyNo","companyName","trade_out","trade_account","trade_used","exam_remark","trade_time"],r);e.export_json_to_excel({header:["资金编号","收入/支出","认领状态","记录总金额","已认领金额","认领企业编码","认领企业","对方公司","对方账号","付款备注","驳回原因","交易时间"],data:t,filename:"".concat("资金认领数据批量导出")}),n.$message.success("资金认领数据批量导出成功!"),setTimeout((function(){n.loading=!1}),500)}))))},openModal:function(e,t,a,r,n,i){this.logNo=t,this.modelId=e,this.exam_remark=r,this.isDetail=a,this.status=n,this.trade_type=i||"",this.showModel=!0},timeReturned: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.startTime?t.parmValue.start=e.startTime:t.parmValue.start="",""!==e.endTime?t.parmValue.end=e.endTime:t.parmValue.end="",""!==t.parmValue.start&&""!==t.parmValue.end)return t.parmValue.page=1,a.next=6,t.searchList();a.next=6;break;case 6:case"end":return a.stop()}}),a)})))()},numReturned:function(e,t){0===t?(this.parmValue.total_low=e.lower,this.parmValue.total_up=e.online):1===t?(this.parmValue.pay_low=e.lower,this.parmValue.pay_up=e.online):(this.parmValue.inv_low=e.lower,this.parmValue.inv_up=e.online)},changeStatus: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={traNo: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.total_low&&""===e.parmValue.total_up||""===e.parmValue.total_low&&""!==e.parmValue.total_up)return e.$message.warning("资金总额区间有误!"),t.abrupt("return");t.next=3;break;case 3:return"1"===e.select?(e.parmValue.logNo=e.input,e.parmValue.name=""):(e.parmValue.logNo="",e.parmValue.name=e.input),e.parmValue.companyNo=e.code.join(","),e.loading=!0,t.next=8,s.a.list(e.parmValue);case 8:if(!(a=t.sent)||0!==a.code||!a.data){t.next=17;break}e.tableData=[],a.data.list.forEach((function(t){var a={children:[]};t.trade&&1===t.trade.length&&"1"===t.is_all?(a=Object.assign(a,t.trade[0]),e.setType(a.status),a.statusName=e.sname,a.status_type=e.stype,a.amount=a.total_fee,a.trade_account=t.trade_account,a.trade_out=t.trade_out,a.trade_used=t.trade_used,a.trade_type=t.trade_type):t.trade&&1<t.trade.length||t.trade&&1===t.trade.length&&"1"!==t.is_all?((a=Object.assign(a,t)).status="1"===a.is_all?"5":"6",e.setType(a.status),a.statusName=e.sname,a.traNo=a.logNo,a.status_type=e.stype,t.trade.forEach((function(r){e.setType(r.status),r.statusName=e.sname,r.status_type=e.stype,r.amount=r.total_fee,r.trade_account=t.trade_account,r.trade_out=t.trade_out,r.trade_used=t.trade_used,r.trade_type=t.trade_type,r=Object.assign({},r),a.children.push(r)}))):((a=t).traNo=a.logNo,e.setType(a.status),a.statusName=e.sname,a.status_type=e.stype),e.tableData.push(a)})),e.count=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.count=0;case 24:e.loading=!1;case 25:case"end":return t.stop()}}),t)})))()},setType:function(e){switch(this.sname,this.stype="",e){case"1":this.sname="未认领",this.stype="warning";break;case"2":this.sname="待审核",this.stype="";break;case"3":this.sname="认领成功",this.stype="success";break;case"4":this.sname="审核驳回",this.stype="danger";break;case"5":this.sname="全部认领",this.stype="success";break;case"6":this.sname="部分认领",this.stype="warning";break;default:this.sname="",this.stype=""}},remoteMethod: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.selectLoading=!0,""!==e)return t.activeOptions=[],a.next=5,s.a.clist({page:1,size:100,company:e});a.next=18;break;case 5:if(!((r=a.sent)&&0===r.code&&r.data&&r.data.list)){a.next=10;break}t.activeOptions=r.data.list,a.next=16;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=16;break;case 15:t.$message.warning(r.message);case 16:a.next=19;break;case 18:t.activeOptions=[];case 19:t.selectLoading=!1;case 20:case"end":return a.stop()}}),a)})))()},dlTemplate: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:e.downLoading||(e.downLoading=!0,(a=document.createElement("iframe")).src=e.fileUrl+"?time="+Object(f.n)((new Date).valueOf()),a.style.display="none",document.body.appendChild(a),e.$message.success("资金模板下载成功!"),setTimeout((function(){e.downLoading=!1}),500));case 1:case"end":return t.stop()}}),t)})))()}}},h=a("2877"),i=Object(h.a)(c,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"capitalClaim pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?a("div",[a("el-row",{staticStyle:{"padding-bottom":"10px"},attrs:{gutter:10}},[a("el-col",{staticStyle:{width:"145px"},attrs:{span:7}},[a("el-select",{staticStyle:{width:"100%"},attrs:{size:e.searchSize,clearable:"",placeholder:"认领状态"},on:{change:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.parmValue.status,callback:function(t){e.$set(e.parmValue,"status",t)},expression:"parmValue.status"}},e._l(e.capitalFlowType,(function(e){return a("el-option",{key:e.code,attrs:{label:e.name,value:e.code}})})),1)],1),a("el-col",{staticStyle:{width:"460px"},attrs:{span:8}},[a("el-select",{staticClass:"setWidth",staticStyle:{width:"100%"},attrs:{multiple:"",filterable:"",size:e.searchSize,remote:"","multiple-limit":1,"reserve-keyword":"",placeholder:"认领公司名称","remote-method":e.remoteMethod,loading:e.selectLoading},model:{value:e.code,callback:function(t){e.code=t},expression:"code"}},e._l(e.activeOptions,(function(e){return a("el-option",{key:e.companyNo,attrs:{label:e.companyName,value:e.companyNo}})})),1)],1),a("el-col",{staticClass:"fr tr",staticStyle:{width:"226px"},attrs:{span:4}},[a("el-button",{attrs:{type:"primary",size:e.searchSize,icon:"el-icon-search"},on:{click:e.searchList}}),e.powers.some((function(e){return"024"==e}))?a("el-button",{attrs:{type:"warning",size:e.searchSize},on:{click:e.restSearch}},[e._v(" 重置 ")]):e._e(),e.powers.some((function(e){return"002"==e}))?a("el-button",{attrs:{size:e.searchSize,type:"primary"},on:{click:e.searchList}},[e._v(" 刷新 ")]):e._e()],1)],1),a("el-row",{staticStyle:{"padding-bottom":"10px"},attrs:{gutter:10}},[a("el-col",{staticStyle:{width:"302px"},attrs:{span:6}},[a("period-date-picker",{attrs:{start:e.parmValue.start,end:e.parmValue.end,type:1,width:"135px",size:e.searchSize},on:{timeReturned:function(t){return e.timeReturned(t)}}})],1),a("el-col",{staticStyle:{width:"302px"},attrs:{span:6}},[a("number-range",{attrs:{start:e.parmValue.total_low,end:e.parmValue.total_up,type:1,width:"135px",title:"资金总额",size:e.searchSize},on:{numReturned:function(t){return e.numReturned(t,0)}}})],1),e.powers.some((function(e){return"023"==e}))?a("el-col",{staticClass:"fr",staticStyle:{width:"90px"},attrs:{span:3}},[a("el-button",{attrs:{size:e.searchSize,type:"primary",disabled:e.downLoading},on:{click:e.dlTemplate}},[e._v(" 下载模板 ")])],1):e._e(),e.powers.some((function(e){return"038"==e}))?a("el-col",{staticClass:"fr",staticStyle:{width:"90px"},attrs:{span:3}},[a("el-button",{attrs:{size:e.searchSize,type:"primary"},on:{click:function(t){e.importshowModel=!0}}},[e._v(" 导入数据 ")])],1):e._e()],1),a("el-row",{staticStyle:{"padding-bottom":"10px"},attrs:{gutter:10}},[a("el-col",{staticStyle:{width:"470px"},attrs:{span:8}},[a("el-input",{attrs:{size:e.searchSize,placeholder:"关键字"},model:{value:e.input,callback:function(t){e.input=t},expression:"input"}},[a("el-select",{staticStyle:{width:"103px"},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"}})],1)],1)],1),a("el-col",{staticClass:"fr",staticStyle:{width:"108px"},attrs:{span:4}},[a("el-button",{staticClass:"fr",attrs:{type:"primary",icon:"el-icon-download",size:e.searchSize},on:{click:function(t){return e.batchExport()}}},[e._v("批量导出")])],1)],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:e.tableData,border:"",size:e.size,"row-key":"traNo",stripe:"","default-expand-all":!1,"tree-props":{children:"children",hasChildren:"hasChildren"}},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"45","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{label:"资金编号",prop:"traNo",width:"220px",fixed:"left","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{label:"收入/支出",prop:"trade_type",width:"80px","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-tag",{attrs:{type:"0"===t.row.trade_type?"success":"warning",size:"mini"},domProps:{textContent:e._s("0"===t.row.trade_type?"收入":"支出")}})]}}],null,!1,2930761443)}),a("el-table-column",{attrs:{label:"认领状态",prop:"status",width:"90px","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-tag",{attrs:{type:t.row.status_type,size:"mini"},domProps:{textContent:e._s(t.row.statusName)}})]}}],null,!1,2039200012)}),a("el-table-column",{attrs:{label:"记录总金额",prop:"total_fee",width:"120px","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{label:"已认领金额",prop:"amount",width:"120px","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{label:"认领企业编码",prop:"companyNo",width:"130px","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{label:"认领企业","show-overflow-tooltip":"",prop:"companyName","min-width":"170px"}}),a("el-table-column",{attrs:{label:"对方公司",prop:"trade_out","show-overflow-tooltip":"","min-width":"170px"}}),a("el-table-column",{attrs:{label:"对方账号",prop:"trade_account","show-overflow-tooltip":"",width:"170px"}}),a("el-table-column",{attrs:{label:"付款备注","show-overflow-tooltip":"",prop:"trade_used",width:"180px"}}),a("el-table-column",{attrs:{label:"驳回原因","show-overflow-tooltip":"",prop:"exam_remark",width:"180px"}}),a("el-table-column",{attrs:{label:"交易时间",prop:"trade_time",width:"145px","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{fixed:"right",label:"操作",width:"85px","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e.powers.some((function(e){return"039"==e}))&&t.row.logNo===t.row.traNo&&"1"===t.row.status&&0!==parseInt(t.row.balance)||e.powers.some((function(e){return"039"==e}))&&t.row.logNo===t.row.traNo&&"6"===t.row.status&&0!==parseInt(t.row.balance)?a("el-tooltip",{attrs:{effect:"dark",content:"资金认领",placement:"top"}},[a("i",{staticClass:"el-icon-s-flag tb-icon",on:{click:function(a){return e.openModal(t.row.id,t.row.traNo,"039",t.row.exam_remark,t.row.status,t.row.trade_type)}}})]):e._e(),e.powers.some((function(e){return"040"==e}))&&t.row.logNo!==t.row.traNo&&"2"===t.row.status?a("el-tooltip",{attrs:{effect:"dark",content:"认领审核",placement:"top"}},[a("i",{staticClass:"el-icon-s-check tb-icon",on:{click:function(a){return e.openModal(t.row.id,t.row.traNo,"040",t.row.exam_remark,t.row.status)}}})]):e._e(),e.powers.some((function(e){return"040"==e}))&&t.row.logNo!==t.row.traNo&&"2"===t.row.status||e.powers.some((function(e){return"040"==e}))&&t.row.logNo!==t.row.traNo&&"4"===t.row.status?a("el-tooltip",{attrs:{effect:"dark",content:"取消认领申请",placement:"top"}},[a("i",{staticClass:"el-icon-error tb-icon",on:{click:function(a){return e.changeStatus(t.row.traNo)}}})]):e._e()]}}],null,!1,1566712268)})],1),a("div",{directives:[{name:"show",rawName:"v-show",value:0<e.count,expression:"count > 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"),a("add-edit",{attrs:{"show-model":e.importshowModel},on:{refresh:e.searchList,cancel:function(t){e.importshowModel=!1}}}),a("add-edit1",{attrs:{id:e.modelId,"show-model":e.showModel,"is-detail":e.isDetail,logNo:e.logNo,exam_remark:e.exam_remark,status:e.status,trade_type:e.trade_type},on:{refresh:e.searchList,cancel:function(t){e.showModel=!1}}})],1)}),[],!1,null,"6ca7d899",null);t.default=i.exports},"6c0a":function(e,t,a){"use strict";var r=a("1b69");t.a={list:function(e,t){return Object(r.a)("Admin/tradepool",e,"post",t)},clist:function(e,t){return Object(r.a)("Admin/customerlist",e,"post",t)}}},"6c6b":function(e,t,a){"use strict";a("9e62")},"6d88":function(e,t,a){"use strict";a.r(t);var r=a("1da1"),n=(a("e9c4"),a("b0c0"),a("96cf"),a("1fd2")),i=a("9f53"),o=a("61f7");i={name:"Account",props:["showModel","id","isDetail","sitem"],mixins:[i.a],data:function(){return{roleList:[],loading:!1,title:"添加账号",showModelThis:this.showModel,ruleForm:{username:"",name:"",mobile:"",email:"",role_id:"",status:"1"},rulesThis:this.rules,rules:{name:[{required:!0,validator:function(e,t,a){""===t?a(new Error("真实姓名不能为空!")):t.length<2||12<t.length||!Object(o.c)(t)||Object(o.d)(t)?a(new Error("真实姓名规则为2~12位汉字!")):a()},trigger:"blur"}],username:[{required:!0,validator:function(e,t,a){""===t?a(new Error("账号不能为空!")):t.length<6||18<t.length||Object(o.i)(t)||Object(o.o)(t)||!Object(o.b)(t)?a(new Error("账号规则为6~18位数字与字母组合!")):a()},trigger:"blur"}],mobile:[{required:!0,validator:function(e,t,a){""===t?a(new Error("手机号不能为空!")):Object(o.g)(t)?a():a(new Error("手机号格式不正确!"))},trigger:"blur"}],email:[{required:!1,validator:function(e,t,a){""===t||Object(o.p)(t)?a():a(new Error("邮箱格式不正确!"))},trigger:"blur"}],role_id:[{required:!0,message:"请选择角色",trigger:"change"}],status:[{required:!0,message:"请选择状态",trigger:"change"}]}}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis:function(e){e||this.$emit("cancel")}},methods:{closeModel:function(){},initForm:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,t.next=4,e.getRole();case 4:if("add"===e.id)return e.title="添加账号",e.rulesThis=e.rules,t.next=9,e.resetForm();t.next=11;break;case 9:t.next=14;break;case 11:return e.isDetail?(e.title="账号详情",e.rulesThis={}):(e.title="修改账号",e.rulesThis=e.rules),t.next=14,e.resetForm(e.sitem);case 14:e.loading=!1;case 15:case"end":return t.stop()}}),t)})))()},getRole: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 a={status:"",level:"",role_name:""},t.next=3,n.a.getRole(a);case 3:(a=t.sent)&&0===a.code&&a.data&&(e.roleList=a.data);case 5:case"end":return t.stop()}}),t)})))()},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 t.next=2,n.a.detail({id:e.id});case 2:if(!(a=t.sent)||0!==a.code||!a.data){t.next=8;break}e.ruleForm=a.data,e.ruleForm.role_id=e.ruleForm.role,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.$message.warning(a.message);case 14:case"end":return t.stop()}}),t)})))()},resetForm: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.$nextTick((function(){var a,r,n,i,o,s;t.$refs.ruleForm&&(t.$refs.ruleForm.resetFields(),t.$refs.ruleForm.clearValidate(),a=e.username,r=e.nickname,n=e.mobile,i=e.email,o=e.roleid,s=e.status,t.ruleForm={username:a||"",name:r||"",mobile:n||"",email:i||"",role_id:o||"",status:s||""},"add"!==t.id&&!t.isDetail||(t.rules.username[0].required=!1))}));case 2:case"end":return a.stop()}}),a)})))()},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,o,s,l,c;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!a){t.next=31;break}if(e.loading=!0,o=JSON.parse(JSON.stringify(e.ruleForm)),s=o.username,l=o.name,c=o.mobile,r=o.email,i=o.role_id,o=o.status,s={id:e.id,username:s||"",nickname:l||"",mobile:c||"",email:r||"",role:i||"",status:o||""},l={},"add"===e.id)return delete s.id,t.next=9,n.a.add(s);t.next=12;break;case 9:l=t.sent,t.next=15;break;case 12:return t.next=14,n.a.update(s);case 14:l=t.sent;case 15:if(e.loading=!1,!l||0!==l.code){t.next=23;break}c="add"===e.id?"添加成功":"修改成功",e.$notify.success({title:c,message:""}),e.showModelThis=!1,e.$emit("refresh"),t.next=29;break;case 23:if(l&&100<=l.code&&l.code<=104)return t.next=26,e.logout();t.next=28;break;case 26:t.next=29;break;case 28:e.$message.warning(l.message);case 29:t.next=33;break;case 31:return t.abrupt("return",!1);case 33:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()}}},a("c1b2"),a=a("2877"),a=Object(a.a)(i,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:e.title,center:!0,align:"left",top:"5vh",width:"900px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)"},on:{"update:visible":function(t){e.showModelThis=t},close:e.closeModel}},[a("el-card",[a("el-row",{attrs:{gutter:10}},[a("el-col",{attrs:{span:24}},[a("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",rules:e.rulesThis,"label-width":"110px"}},["add"===e.id||e.isDetail?a("el-form-item",{attrs:{label:"账号",prop:"username"}},[a("el-input",{attrs:{disabled:e.isDetail},model:{value:e.ruleForm.username,callback:function(t){e.$set(e.ruleForm,"username",t)},expression:"ruleForm.username"}})],1):e._e(),a("el-form-item",{attrs:{label:"真实姓名",prop:"name"}},[a("el-input",{attrs:{disabled:e.isDetail},model:{value:e.ruleForm.name,callback:function(t){e.$set(e.ruleForm,"name",t)},expression:"ruleForm.name"}})],1),a("el-form-item",{attrs:{label:"手机号",prop:"mobile"}},[a("el-input",{attrs:{disabled:e.isDetail},model:{value:e.ruleForm.mobile,callback:function(t){e.$set(e.ruleForm,"mobile",t)},expression:"ruleForm.mobile"}})],1),a("el-form-item",{attrs:{label:"邮箱",prop:"email"}},[a("el-input",{attrs:{disabled:e.isDetail},model:{value:e.ruleForm.email,callback:function(t){e.$set(e.ruleForm,"email",t)},expression:"ruleForm.email"}})],1),a("el-form-item",{attrs:{label:"角色",prop:"role_id"}},[a("el-radio-group",{attrs:{disabled:e.isDetail},model:{value:e.ruleForm.role_id,callback:function(t){e.$set(e.ruleForm,"role_id",t)},expression:"ruleForm.role_id"}},e._l(e.roleList,(function(t){return a("el-radio",{key:t.id,attrs:{label:t.id,disabled:"1"!==t.status}},[e._v(e._s(t.role_name))])})),1)],1),a("el-form-item",{attrs:{label:"状态",prop:"status"}},[a("el-switch",{attrs:{"active-value":"1","inactive-value":"0",disabled:e.isDetail},model:{value:e.ruleForm.status,callback:function(t){e.$set(e.ruleForm,"status",t)},expression:"ruleForm.status"}})],1)],1)],1),a("el-col",{staticStyle:{"text-align":"right"},attrs:{span:24}},[e.isDetail?e._e():a("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("保 存 ")]),a("el-button",{on:{click:function(t){e.showModelThis=!1}}},[e._v(e._s(e.isDetail?"关 闭":"取 消"))])],1)],1)],1)],1)}),[],!1,null,"88244378",null);t.default=a.exports},"6eef":function(e,t,a){},"6f08":function(e,t,a){},"6f1c":function(e,t,a){"use strict";a.r(t);var r=a("1da1"),n=(a("a434"),a("e9c4"),a("96cf"),a("8ef8")),i=a("6fd3"),o=a("b97c");n={name:"invoiceApply",props:["showModel","id","isDetail","status","invNo"],mixins:[a("9f53").a],components:{addview:n.default,appProcess:i.default},data:function(){return{options:[{value:"3",label:"通过"},{value:"2",label:"驳回"}],activeNames:"2",loading:!1,newTime:0,showModelThis:this.showModel,ruleForm:{status:"4",remark:"",inv_info:""},rules:{inv_info:[{required:!0,message:"请录入发票回执信息",trigger:"blur"}]}}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis:function(e){e||this.$emit("cancel")}},methods:{closeModel:function(){},initForm:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.loading=!0,e.activeNames="2",e.changea(),e.loading=!1;case 4:case"end":return t.stop()}}),t)})))()},deleteRow:function(e,t){t.splice(e,1),this.$refs.ruleForm.validateField("inv_info")},refreshAll:function(){this.showModelThis=!1,this.$emit("refresh")},seChange:function(){"2"===this.ruleForm.status?this.rules.remark[0].required=!0:this.rules.remark[0].required=!1},changea:function(){this.newTime=(new Date).valueOf()},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,s;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a)return e.loading=!0,n=JSON.parse(JSON.stringify(e.ruleForm)),i=n.status,r=n.remark,n=n.inv_info,i={invNo:e.invNo,status:i,remark:r,inv_info:n},t.next=6,o.a.status(i);t.next=21;break;case 6:if(!(s=t.sent)||0!==s.code){t.next=13;break}e.$notify.success({title:"发票回执提交成功!",message:""}),e.showModelThis=!1,e.$emit("refresh"),t.next=19;break;case 13:if(s&&100<=s.code&&s.code<=104)return t.next=16,e.logout();t.next=18;break;case 16:t.next=19;break;case 18:e.$message.warning(s.message);case 19:t.next=23;break;case 21:return t.abrupt("return",!1);case 23:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()}}},a("07d3"),i=a("2877"),a=Object(i.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:"8vh",width:"1024px","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:e.closeModel}},[t("el-card",{staticStyle:{height:"700px","margin-top":"-25px"}},[t("appProcess",{attrs:{status:e.status}}),t("el-collapse",{attrs:{accordion:""},model:{value:e.activeNames,callback:function(t){e.activeNames=t},expression:"activeNames"}},[t("el-collapse-item",{attrs:{title:"发票申请详情",name:"1"}},[t("addview",{attrs:{id:e.id,newTime:e.newTime,"show-model":e.showModel,"is-detail":e.isDetail},on:{refreshAll:e.refreshAll}})],1),t("el-collapse-item",{attrs:{title:"财务开票",name:"2"}},[t("el-row",[t("el-col",{staticStyle:{"padding-right":"10px"},attrs:{span:24}},[t("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",rules:e.rules,"label-width":"110px"}},[t("el-form-item",{attrs:{label:"发票回执",prop:"inv_info"}},[t("el-input",{attrs:{type:"textarea",maxlength:"2000","show-word-limit":"",autosize:{minRows:10,maxRows:10},placeholder:"请将鼠标放入输入框,等待扫码枪出结果"},model:{value:e.ruleForm.inv_info,callback:function(t){e.$set(e.ruleForm,"inv_info",t)},expression:"ruleForm.inv_info"}})],1)],1)],1),t("el-col",{staticStyle:{"padding-right":"10px","text-align":"right"},attrs:{span:24}},[t("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("保 存 ")])],1)],1)],1)],1)],1)],1)}),[],!1,null,"7d53ad12",null);t.default=a.exports},"6fbb":function(e,t,a){"use strict";a.r(t);var r=a("1da1"),n=(a("e9c4"),a("96cf"),a("6fd3")),i=a("b97c");a("61f7"),n={name:"invoiceApply",props:["showModel","id","isDetail","status","invNo"],mixins:[a("9f53").a],components:{appProcess:n.default},data:function(){return{loading:!1,newTime:0,showModelThis:this.showModel,ruleForm:{company:"",code:""},rules:{company:[{required:!0,trigger:"blur"}],code:[{required:!0,trigger:"blur"}]}}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis:function(e){e||this.$emit("cancel")}},methods:{closeModel:function(){},initForm:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,t.next=3,e.resetForm();case 3:e.loading=!1;case 4:case"end":return t.stop()}}),t)})))()},refreshAll:function(){this.showModelThis=!1,this.$emit("refresh")},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={company:"",code:""})}));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,o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a)return e.loading=!0,r=JSON.parse(JSON.stringify(e.ruleForm)),n=r.company,r=r.code,n={invNo:e.invNo,company:n,code:r},t.next=6,i.a.post(n);t.next=21;break;case 6:if(!(o=t.sent)||0!==o.code){t.next=13;break}e.$notify.success({title:"财务审核提交成功!",message:""}),e.showModelThis=!1,e.$emit("refresh"),t.next=19;break;case 13:if(o&&100<=o.code&&o.code<=104)return t.next=16,e.logout();t.next=18;break;case 16:t.next=19;break;case 18:e.$message.warning(o.message);case 19:t.next=23;break;case 21:return t.abrupt("return",!1);case 23:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()}}},a("a2c3"),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:"20vh",width:"700px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)"},on:{"update:visible":function(t){e.showModelThis=t},close:e.closeModel}},[t("el-card",{staticStyle:{"margin-top":"-25px"}},[t("el-row",[t("el-col",{staticStyle:{"padding-right":"10px"},attrs:{span:24}},[t("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",rules:e.rules,"label-width":"110px"}},[t("el-form-item",{attrs:{label:"物流公司",prop:"company"}},[t("el-input",{model:{value:e.ruleForm.company,callback:function(t){e.$set(e.ruleForm,"company",t)},expression:"ruleForm.company"}})],1),t("el-form-item",{attrs:{label:"物流单号",prop:"code"}},[t("el-input",{model:{value:e.ruleForm.code,callback:function(t){e.$set(e.ruleForm,"code",t)},expression:"ruleForm.code"}})],1)],1)],1),t("el-col",{staticStyle:{"padding-right":"10px","text-align":"right"},attrs:{span:24}},[t("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("保 存 ")])],1)],1)],1)],1)}),[],!1,null,"e12aac8a",null);t.default=a.exports},"6fd3":function(e,t,a){"use strict";a.r(t);var r=a("1da1"),n=(a("96cf"),a("c740"),{props:["status"],data:function(){return{active:0,dstatusOptions:[{id:0,label:"待发起审核"},{id:1,label:"待财务审核"},{id:3,label:"待财务开票"},{id:4,label:"待填写物流"},{id:5,label:"开票已完成"}]}},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:e.active=e.dstatusOptions.findIndex((function(t){return t.id===parseInt(e.status)}));case 1:case"end":return t.stop()}}),t)})))()}}});a=a("2877"),a=Object(a.a)(n,(function(){var e=this.$createElement,t=this._self._c||e;return t("el-steps",{staticStyle:{padding:"12px 0 18px 0"},attrs:{active:this.active,"align-center":"","process-status":"finish"}},this._l(this.dstatusOptions,(function(e,a){return t("el-step",{key:e.name+a,attrs:{title:e.label}})})),1)}),[],!1,null,null,null);t.default=a.exports},7078:function(e,t,a){"use strict";a("6eef")},"71ff":function(e,t,a){"use strict";a.r(t);var r=a("1da1"),n=a("5530"),i=(a("a9e3"),a("96cf"),a("f5ed")),o=a("72c0"),s=a("0880"),l=a("3264"),c=a("2f62"),u=a("9f53");n={name:"report",computed:Object(n.a)({},Object(c.b)(["tablebtnSize","searchSize","size"])),mixins:[u.a,i.a],data:function(){return{loading:!0,showModel:!1,isDetail:!1,modelId:0,parmValue:{loginName:"",fullName:"",type:2,page:1,size:10},count:0,statusOptions:[{id:0,label:"禁用"},{id:1,label:"启用"}],tableData:[],table:{stripe:!0,border:!0,_defaultHeader_:[]},columns:[{prop:"role",label:"role","min-width":"100"},{prop:"role_name",label:"角色名称","min-width":"120"},{prop:"id",label:"id","min-width":"80"},{prop:"username",label:"账号","min-width":"120"},{prop:"name",label:"业务员姓名","min-width":"120"},{prop:"addtime",label:"添加时间","min-width":"160"}]}},mounted:function(){this.searchList()},components:{addEdit:s.default,ExTableNew:l.default},methods:{restSearch:function(){this.parmValue={loginName:"",fullName:"",type:2,page:1,size:10},this.searchList()},openModal:function(e,t){this.showModel=!0,this.modelId=e,this.isDetail=t},deleteById: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;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,o.a.delete({id:e});case 2:if(!(r=a.sent)||0!==r.code){a.next=8;break}t.$notify.success({title:"删除成功",message:""}),t.searchList(),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)})))).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:return e.loading=!0,t.next=3,o.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.count=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.count=0;case 16:e.loading=!1;case 17: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=4,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,o.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 4:case"end":return n.stop()}}),n)})))()}}},a("3aca"),c=a("2877"),u=Object(c.a)(n,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"report pagePadding"},[a("el-row",{attrs:{gutter:10}},[a("el-col",{staticStyle:{padding:"0 0 18px 0"},attrs:{span:24}},[a("el-col",{attrs:{span:3}},[a("el-input",{attrs:{size:e.searchSize,maxlength:40,placeholder:"账户"},model:{value:e.parmValue.loginName,callback:function(t){e.$set(e.parmValue,"loginName",t)},expression:"parmValue.loginName"}})],1),a("el-col",{attrs:{span:3}},[a("el-input",{attrs:{size:e.searchSize,maxlength:40,placeholder:"姓名"},model:{value:e.parmValue.fullName,callback:function(t){e.$set(e.parmValue,"fullName",t)},expression:"parmValue.fullName"}})],1),a("el-col",{staticStyle:{width:"152px"},attrs:{span:3}},[a("el-button",{attrs:{type:"primary",size:e.searchSize,icon:"el-icon-search"},on:{click:e.searchList}}),a("el-button",{attrs:{type:"warning",size:e.searchSize},on:{click:e.restSearch}},[e._v(" 重置 ")])],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(" 刷新 ")]),a("el-button",{staticStyle:{float:"right"},attrs:{type:"success",size:e.searchSize},on:{click:function(t){return e.openModal("add",!1)}}},[e._v(" 添加 ")])],1)],1)],1),a("ex-table-new",{attrs:{table:e.table,data:e.tableData,columns:e.columns,page:e.pageInfo,isRowDrop:!1,isColDrop:!0},scopedSlots:e._u([{key:"status",fn:function(t){var r=t.scope;return[a("el-tag",{attrs:{type:1==r.row.status?"success":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(e){return e=e.scope,[a("el-tooltip",{attrs:{effect:"dark",content:0==e.row.status?"启用":1==e.row.status?"禁用":"--",placement:"top"}},[a("i",{staticClass:"tb-icon",class:0==e.row.status?"el-icon-circle-check":1==e.row.status?"el-icon-circle-close":""})]),a("el-tooltip",{attrs:{effect:"dark",content:"编辑",placement:"top"}},[a("i",{staticClass:"tb-icon el-icon-edit"})])]}}])}),a("div",{directives:[{name:"show",rawName:"v-show",value:0<e.count,expression:"count > 0"}],staticClass:"Pagination",staticStyle:{"text-align":"right","margin-top":"10px"}},[a("el-pagination",{attrs:{size:e.searchSize,"current-page":e.parmValue.page,"page-sizes":[10,15,20,30,40],"page-size":e.parmValue.size,layout:"total, sizes, prev, pager, next, jumper",total:e.count},on:{"size-change":e.handleSizeChange,"current-change":e.handlePageChange}})],1),a("add-edit",{attrs:{showModel:e.showModel,id:e.modelId,isDetail:e.isDetail},on:{refresh:e.searchList,cancel:function(t){e.showModel=!1}}})],1)}),[],!1,null,"dd4fcef0",null);t.default=u.exports},"72c0":function(e,t,a){"use strict";var r=a("1b69"),n="admin/";t.a={add:function(e,t){return Object(r.a)(n+"add",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+"accountlist",e,"post",t)},detail:function(e,t){return Object(r.a)(n+"detail",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+"accountstatus",e,"post",t)}}},"736e":function(e,t,a){},"742e":function(e,t,a){},"74e6":function(e,t,a){"use strict";a("a838")},"759a":function(e,t,a){},"768d":function(e,t,a){"use strict";a("5fc8")},"76fb":function(e,t,a){},7914: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")),o="Admin/",s=function(e,t){return Object(i.a)(o+"roleinfo",e,"post",t)},l=function(e,t){return Object(i.a)(o+"rolesave",e,"post",t)},c=function(e,t){return Object(i.a)(o+"roleall",e,"post",t)},u=function(e,t){return Object(i.a)(o+"menuactionlist",e,"post",t)},d={name:"Action",mixins:[a("9f53").a],data:function(){return{ruleForm:{},isBtnDisabled:!0,roleActive:{},actionChange:[],roleList:[],rules:[],actionList:[],action_data:[],action:[],private_data:[]}},computed:{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"action"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]},indeterminateCheck:function(){return function(e){var t=e.action.filter((function(t){return-1<e.checkList.findIndex((function(e){return e===t.id}))})).length,a=e.action.filter((function(t){return-1==e.checkList.findIndex((function(e){return e===t.id}))})).length;return 0<t&&0<a}},indeterminateField:function(){return function(e){var t=e.action_data.filter((function(t){return-1<e.fieldList.findIndex((function(e){return e===t.id}))})).length,a=e.action_data.filter((function(t){return-1==e.fieldList.findIndex((function(e){return e===t.id}))})).length;return 0<t&&0<a}}},mounted:function(){this.initactionList()},methods:{handleCheckAllChange:function(e,t,a,r){var n=this;this.actionList[t].child[r].checkAll=e,this.$set(this.actionList,t,a),this.actionList[t].child[r].action.forEach((function(a){var i=n.actionList[t].child[r].checkList.findIndex((function(e){return e===a.id}));e&&-1==i?n.actionList[t].child[r].checkList.push(a.id):!e&&-1<i&&n.actionList[t].child[r].checkList.splice(i,1)}))},handleFieldAllChange:function(e,t,a,r){var n=this;this.actionList[t].child[r].fieldAll=e,this.$set(this.actionList,t,a),this.actionList[t].child[r].action_data.forEach((function(a){var i=n.actionList[t].child[r].fieldList.findIndex((function(e){return e===a.id}));e&&-1==i?n.actionList[t].child[r].fieldList.push(a.id):!e&&-1<i&&n.actionList[t].child[r].fieldList.splice(i,1)}))},handleCheckedGroupChange:function(e,t,a,r){var n=this;this.actionList[t].child[r].checkAll=this.actionList[t].child[r].action.every((function(e){return-1<n.actionList[t].child[r].checkList.findIndex((function(t){return t===e.id}))})),this.$set(this.actionList,t,a)},handleFieldGroupChange:function(e,t,a,r){var n=this;this.actionList[t].child[r].fieldAll=this.actionList[t].child[r].action_data.every((function(e){return-1<n.actionList[t].child[r].fieldList.findIndex((function(t){return t===e.id}))})),this.$set(this.actionList,t,a)},handleCheckedChange:function(e,t,a,r,n){e?-1==this.actionList[a].child[r].checkList.indexOf(t)&&this.actionList[a].child[r].checkList.push(t):(-1<(e=this.actionList[a].child[r].checkList.findIndex((function(e){return e==t})))&&this.actionList[a].child[r].checkList.splice(e,1),this.actionList[a].child[r].checkAll=!1),this.$set(this.actionList,a,n)},handleFieldChange:function(e,t,a,r,n){e?-1==this.actionList[a].child[r].fieldList.indexOf(t)&&this.actionList[a].child[r].fieldList.push(t):(-1<(e=this.actionList[a].child[r].fieldList.findIndex((function(e){return e==t})))&&this.actionList[a].child[r].fieldList.splice(e,1),this.actionList[a].child[r].fieldAll=!1),this.$set(this.actionList,a,n)},switchRoleHandle:function(e){var t=this;this.roleActive=Object.assign({},e),this.$nextTick(Object(n.a)(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,t.refreshRoleDetail(e.id);case 2:case"end":return a.stop()}}),a)}))))},save:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){var a,n,i,o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.action_data=[],e.action=[],a=[],e.actionList.forEach((function(t){t.child.forEach((function(t){var n;(n=e.action_data).push.apply(n,Object(r.a)(t.fieldList)),(n=e.action).push.apply(n,Object(r.a)(t.checkList)),"1"===t.is_private_change&&a.push(t.id)}))})),0!==e.action.length){t.next=8;break}e.$message.warning("请选择功能!"),t.next=24;break;case 8:return n={roleid:e.roleActive.id,role_name:e.ruleForm.role_name,level:e.ruleForm.level,action:e.action,action_data:e.action_data,private_data:a},i=e.$loading(),t.next=12,l(n);case 12:if(!(o=t.sent)||0!==o.code||!o.data){t.next=17;break}e.$notify.success({title:"保存成功!",message:""}),t.next=23;break;case 17:if(o&&100<=o.code&&o.code<=104)return t.next=20,e.logout();t.next=22;break;case 20:t.next=23;break;case 22:e.$message.warning(o.message);case 23:i.close();case 24:case"end":return t.stop()}}),t)})))()},refreshRoleDetail:function(e){var t=this;return Object(n.a)(regeneratorRuntime.mark((function a(){var r,n;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return t.isBtnDisabled=!0,a.next=3,s({roleid:e});case 3:if(!(r=a.sent)||0!==r.code||!r.data){a.next=14;break}n=r.data,(t.ruleForm=n).action&&0<n.action.length?t.action=n.action:t.action=[],n.action_data&&0<n.action_data.length?t.action_data=n.action_data:t.action_data=[],""===n.private_data&&(n.private_data=[]),n.private_data&&0<n.private_data.length?t.private_data=n.private_data:t.private_data=[],t.refreshRoleCheckAllStatus(),a.next=20;break;case 14:if(r&&100<=r.code&&r.code<=104)return a.next=17,t.logout();a.next=19;break;case 17:a.next=20;break;case 19:t.$message.warning(r.message);case 20:t.isBtnDisabled=!1;case 21:case"end":return a.stop()}}),a)})))()},initactionList:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,u({});case 2:if((a=t.sent)&&0===a.code&&a.data)return e.rules=a.data,t.next=7,e.initRoleList();t.next=9;break;case 7: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)})))()},initRoleList:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,c({});case 2:if(!(a=t.sent)||0!==a.code||!a.data){t.next=16;break}if(e.roleList=[].concat(a.data),0<e.roleList.length)return t.next=8,e.switchRoleHandle(e.roleList[0]);t.next=10;break;case 8:t.next=16;break;case 10:if(a&&100<=a.code&&a.code<=104)return t.next=13,e.logout();t.next=15;break;case 13:t.next=16;break;case 15:e.$message.warning(a.message);case 16:case"end":return t.stop()}}),t)})))()},refreshRoleCheckAllStatus:function(){var e=this,t=(t=JSON.parse(JSON.stringify(this.rules)).filter((function(e){return e.child&&0<e.child.length}))).map((function(e){return e.child.map((function(e){return e.checkAll=!1,e.checkList=[],e.fieldAll=!1,e.fieldList=[],(e.is_private_change="0")===e.is_private?e.private=[]:e.private=[{id:"0",label:"公有数据"},{id:"1",label:"私有数据"}],e})),e}));this.actionList=t,this.actionList.forEach((function(t,a){t.child&&0<t.child.length&&t.child.forEach((function(t,a){var r;t.id,t.action&&0<t.action.length&&t.action.forEach((function(a){var r=e.action.findIndex((function(e){return e===a.id}));-1!==r&&t.checkList.push(e.action[r]),t.action.length===t.checkList.length&&(t.checkAll=!0)})),t.action_data&&0<t.action_data.length&&(t.action_data.map((function(a){var r=e.action_data.findIndex((function(e){return e===a.id}));-1!==r&&t.fieldList.push(e.action_data[r])})),t.action_data.length===t.fieldList.length&&(t.fieldAll=!0)),t.private&&2===t.private.length?(r=e.private_data.findIndex((function(e){return e===t.id})),t.is_private_change=-1!==r?"1":"0"):t.is_private_change="0"})),e.$set(e.actionList,a,t)}))}}};a("5b49"),a=a("2877"),a=Object(a.a)(d,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"action pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?a("div",{staticClass:"action_show"},[a("div",{staticClass:"action_show_box"},[a("ul",{staticClass:"role-list"},[a("p",{staticClass:"role-list__title"},[e._v("角色列表")]),0==e.roleList.length?a("p",{staticStyle:{"line-height":"60px","text-align":"center",color:"#909399"}},[e._v(" 暂无数据 ")]):e._e(),e._l(e.roleList,(function(t,r){return a("li",{key:"role"+r,staticClass:"role-list__item",class:{active:t.id==e.roleActive.id},on:{click:function(a){e.isBtnDisabled||e.switchRoleHandle(t)}}},[e._v(" "+e._s(t.role_name)+" "),e.isBtnDisabled&&t.id==e.roleActive.id?a("i",{staticClass:"el-icon-loading"}):e._e()])}))],2),a("div",{staticClass:"rule-view"},[a("div",{staticClass:"rule-list"},e._l(e.actionList,(function(t,r){return a("el-row",{key:"menu"+t.id+r},[t.child&&0<t.child.length?a("el-col",{staticClass:"ffff",attrs:{span:24}},[a("div",{staticClass:"ftitle"},[a("span",[e._v(e._s(t.menu_name))])]),a("div",{staticClass:"fbody"},e._l(t.child,(function(n,i){return a("div",{key:"yemian"+n.id+i,staticClass:"fbody-item"},[n.action&&0===n.action.length&&n.action_data&&0===n.action_data.length?e._e():[a("div",{staticClass:"stitle"},[a("span",{staticClass:"_h2"},[e._v(e._s(n.menu_name))]),n&&n.private&&2===n.private.length?a("el-radio-group",{staticStyle:{margin:"0 0 0 20px"},attrs:{size:"mini"},model:{value:n.is_private_change,callback:function(t){e.$set(n,"is_private_change",t)},expression:"subItem.is_private_change"}},e._l(n.private,(function(t,r){return a("el-radio-button",{key:t.label+r,attrs:{label:t.id}},[e._v(e._s(t.label))])})),1):e._e()],1),n.action&&0<n.action.length?a("div",{staticClass:"scheck"},[a("div",{staticClass:"checkAll"},[a("el-checkbox",{attrs:{disabled:!e.powers.some((function(e){return"008"==e})),indeterminate:e.indeterminateCheck(n)},on:{change:function(a){return e.handleCheckAllChange(a,r,t,i)}},model:{value:n.checkAll,callback:function(t){e.$set(n,"checkAll",t)},expression:"subItem.checkAll"}},[e._v("功能全选")])],1),a("div",{staticClass:"checkItem"},[a("el-checkbox-group",{attrs:{disabled:!e.powers.some((function(e){return"008"==e}))},on:{change:function(a){return e.handleCheckedGroupChange(a,r,t,i)}},model:{value:n.checkList,callback:function(t){e.$set(n,"checkList",t)},expression:"subItem.checkList"}},[e._l(n.action,(function(n){return[a("el-checkbox",{key:"checkItem"+n.id,attrs:{disabled:!e.powers.some((function(e){return"008"==e})),label:n.id},on:{change:function(a){return e.handleCheckedChange(a,n.id,r,i,t)}}},[e._v(e._s(n.action_name))])]}))],2)],1)]):e._e(),n.action_data&&0<n.action_data.length?a("div",{staticClass:"sfield"},[a("div",{staticClass:"checkAll"},[a("el-checkbox",{attrs:{disabled:!e.powers.some((function(e){return"008"==e})),indeterminate:e.indeterminateField(n)},on:{change:function(a){return e.handleFieldAllChange(a,r,t,i)}},model:{value:n.fieldAll,callback:function(t){e.$set(n,"fieldAll",t)},expression:"subItem.fieldAll"}},[e._v("字段全选")])],1),a("div",{staticClass:"checkItem"},[a("el-checkbox-group",{attrs:{disabled:!e.powers.some((function(e){return"008"==e}))},on:{change:function(a){return e.handleFieldGroupChange(a,r,t,i)}},model:{value:n.fieldList,callback:function(t){e.$set(n,"fieldList",t)},expression:"subItem.fieldList"}},[e._l(n.action_data,(function(n){return[a("el-checkbox",{key:"FieldItem"+n.id,attrs:{label:n.id,disabled:!e.powers.some((function(e){return"008"==e}))},on:{change:function(a){return e.handleFieldChange(a,n.id,r,i,t)}}},[e._v(e._s(n.field_name))])]}))],2)],1)]):e._e()]],2)})),0)]):e._e()],1)})),1)])]),a("div",{staticClass:"rule-bottom"},[e.powers.some((function(e){return"008"==e}))?a("el-button",{attrs:{size:"small",type:"primary",disabled:e.isBtnDisabled},on:{click:function(t){return e.save()}}},[e._v("提 交")]):e._e()],1)]):a("div",[a("no-auth")],1)])}),[],!1,null,"640d4838",null);t.default=a.exports},7970:function(e,t,a){"use strict";a.r(t);var r=a("1da1"),n=(a("96cf"),a("5bcd")),i=a("837b"),o=a("9218");n={name:"orderRecord",props:["showModel","id","isDetail","dstatus","payNo","companyNo"],components:{addView:n.default,examView:i.default,stepBar:o.default},data:function(){return{activeNames:"2",newTime:0,activeName:"-1",loading:!1,title:"业务审核",showModelThis:this.showModel}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis:function(e){e||this.$emit("cancel")}},methods:{closeModel:function(){},refreshAll:function(){this.showModelThis=!1,this.$emit("refresh")},initForm:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.changea();case 2:case"end":return t.stop()}}),t)})))()},changea:function(){this.newTime=(new Date).valueOf()}}},a("ad8a"),i=a("2877"),o=Object(i.a)(n,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:e.title,center:!0,align:"left",top:"10vh",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:e.closeModel}},[t("el-card",{staticStyle:{"margin-top":"-15px",height:"685px"}},[t("stepBar",{attrs:{id:e.modelId,payNo:e.payNo,dstatus:e.dstatus},on:{refresh:e.searchList}}),t("el-collapse",{attrs:{accordion:""},model:{value:e.activeNames,callback:function(t){e.activeNames=t},expression:"activeNames"}},[t("el-collapse-item",{attrs:{title:"对账详情",name:"1"}},[t("add-view",{staticStyle:{margin:"0 0 -28px 0"},attrs:{id:e.id,isDetail:e.isDetail,newTime:e.newTime,payNo:e.payNo},on:{refreshAll:e.refreshAll}})],1),t("el-collapse-item",{attrs:{title:"财务审核",name:"2"}},[t("exam-view",{attrs:{id:e.id,type:"2",newTime:e.newTime,payNo:e.payNo},on:{refreshAll:e.refreshAll}})],1)],1)],1)],1)}),[],!1,null,"6a2f88c7",null);t.default=o.exports},"7a5e":function(e,t,a){"use strict";a.r(t);var r=a("1da1"),n=(a("e9c4"),a("96cf"),a("3ef2")),i={name:"orderRecord",props:["id","newTime","payNo","companyNo"],mixins:[a("9f53").a],data:function(){return{options:[{value:"3",label:"通过"},{value:"2",label:"驳回"}],examForm:{id:this.id,status:"3",remark:""},examsThis:this.exams,exams:{status:[{required:!0,message:"请选择审核状态",trigger:"change"}],remark:[{required:!1,message:"请输入审核备注",trigger:"bulr"}]}}},watch:{newTime:function(e,t){e!==t&&this.initForm()}},mounted:function(){this.initForm()},methods:{initForm:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,e.examsThis=e.exams,t.next=5,e.resetForm();case 5:e.statusChange,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.examForm&&(e.$refs.examForm.resetFields(),e.$refs.examForm.clearValidate(),e.examForm={id:e.id,status:"3"})}));case 2:case"end":return t.stop()}}),t)})))()},statusChange:function(){this.examForm&&this.examForm.status==this.options[0].value?this.examsThis.remark[0].required=!1:this.examsThis.remark[0].required=!0},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.examForm.validate(function(){var t=Object(r.a)(regeneratorRuntime.mark((function t(a){var r,i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a)return e.loading=!0,r=JSON.parse(JSON.stringify(e.examForm)),r={sid:r.id,payNo:e.payNo,status:r.status,remark:r.remark},i={},t.next=7,n.a.again(r);t.next=24;break;case 7:if(i=t.sent,e.loading=!1,!i||0!==i.code){t.next=16;break}e.$notify.success({title:"业务审核成功!",message:""}),e.showModelThis=!1,e.$emit("refreshAll"),t.next=22;break;case 16:if(i&&100<=i.code&&i.code<=104)return t.next=19,e.logout();t.next=21;break;case 19:t.next=22;break;case 21:e.$message.warning(i.message);case 22:t.next=26;break;case 24:return t.abrupt("return",!1);case 26:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()},remoteMethod: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.selectLoading=!0,""!==e)return t.activeOptions=[],t.parmValue.contector=e,a.next=6,n.a.supplierlist(t.parmValue);a.next=19;break;case 6:if(0!==(r=a.sent).code||!r.data||!r.data.list){a.next=11;break}t.activeOptions=r.data.list,a.next=17;break;case 11:if(r&&100<=r.code&&r.code<=104)return a.next=14,t.logout();a.next=16;break;case 14:a.next=17;break;case 16:t.$message.warning(r.message);case 17:a.next=20;break;case 19:t.options=[];case 20:t.selectLoading=!1;case 21:case"end":return a.stop()}}),a)})))()}}};a("dfb7"),a=a("2877"),a=Object(a.a)(i,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-row",[a("el-col",{attrs:{span:24}},[a("el-form",{ref:"examForm",staticClass:"demo-examForm",attrs:{model:e.examForm,rules:e.examsThis,"label-width":"100px"}},[a("el-row",{attrs:{gutter:10}},[a("el-col",{attrs:{span:18}},[a("el-form-item",{attrs:{label:"审核",prop:"status"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择审核状态"},on:{change:e.statusChange},model:{value:e.examForm.status,callback:function(t){e.$set(e.examForm,"status",t)},expression:"examForm.status"}},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",{staticStyle:{"text-align":"right"},attrs:{span:6}},[a("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("提交审核结果")])],1),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"审核备注",prop:"remark"}},[a("el-input",{attrs:{type:"textarea",rows:4,placeholder:"请输入审核备注",maxlength:"250","show-word-limit":""},model:{value:e.examForm.remark,callback:function(t){e.$set(e.examForm,"remark",t)},expression:"examForm.remark"}})],1)],1)],1)],1)],1)],1)}),[],!1,null,"649918dd",null);t.default=a.exports},"7a70":function(e,t,a){},"7a88":function(e,t,a){"use strict";a.r(t);var r=a("1da1"),n=a("5530"),i=(a("96cf"),a("7db0"),a("d3b7"),a("a15b"),a("d81d"),a("b680"),a("ac1f"),a("1276"),a("5319"),a("a9e3"),a("159b"),a("b0c0"),a("3264")),o=a("3ef2"),s=a("0ee5"),l=a("e66a"),c=a("f5ed"),u=a("7d27"),d=a("2f62"),p=a("9f53"),m=a("4a35"),f=a("ee22"),h=a("0c50"),b=a("95c0"),g=a("d1ee"),w=a("57d4"),v=a("5844"),x=a("7970"),_=a("4580"),y=a("6fbb");c={name:"orderRecord",mixins:[c.a,p.a],components:{ExTable:i.default,PeriodDatePicker:u.a,addEdit1:m.default,addEdit2:f.default,addEdit3:h.default,addEdit4:b.default,addEdit5:g.default,addEdit6:w.default,addEdit21:v.default,addEdit22:x.default,addEdit23:_.default,AddEdit4:y.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"orderRecord"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),data:function(){return{selectK:"1",input:"",selectKlist:[{code:"1",name:"付款编码"},{code:"2",name:"申请人"}],code:[],dstatusOptions:[{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:"9",label:"识别未成功"}],options:[{id:"0",label:"待提交申请"},{id:"1",label:"待业务审核"},{id:"2",label:"待财务审核"},{id:"3",label:"待付款回执"},{id:"4",label:"付款已成功"}],payNo:0,formValue:{name:"",page:1,size:20},activeOptions:[],selectLoading:!1,statusList:s.a,roleLevel:l.a,loading:!0,companyNo:"0",showModel1:!1,showModel2:!1,showModel3:!1,showModel4:!1,showModel5:!1,showModel6:!1,showModel21:!1,showModel22:!1,showModel23:!1,isDetail:!1,modelId:0,dstatus:0,remark:"",pay_status:"",parmValue:{startTime:"",endTime:"",supplierNo:"",apply:"",pay_status:"",inv_status:"",payNo:"",page:1,size:15},tableData:[],table:{stripe:!0,border:!0,_defaultHeader_:["setcol"]},pageInfo:{size:15,curr:1,total:0},columns:[{prop:"payNo",label:"付款编码",width:"180"},{prop:"dzNo",label:"对账编码",width:"180px"},{prop:"supplierNo",label:"供货商编码",width:"140px"},{prop:"name",label:"供货商名称",width:"170px"},{prop:"contector",label:"联系人"},{prop:"createrName",label:"申请人"},{prop:"total_fee",label:"总货款",width:"110px"},{prop:"pay_fee",label:"已付款金额",width:"110px"},{prop:"wait_fee",label:"待付款金额",width:"110px"},{prop:"inv_fee",label:"已回票金额",width:"110px"},{prop:"dpay_fee",label:"申请金额",width:"100px"},{prop:"pay_stages",label:"当期期数",width:"70px"},{prop:"pay_status",label:"付款状态",width:"110px",_slot_:"pay_status"},{prop:"dstatus",label:"回票状态",width:"110px",_slot_:"dstatus"},{prop:"addtime",label:"申请时间",width:"140px"},{prop:"",label:"操作",fixed:"right",width:"96px",_slot_:"operation"}]}},mounted:function(){this.selectK="1",this.input="",this.searchList()},methods:{restSearch:function(){this.selectK="1",this.input="",this.code=[],this.pageInfo={size:15,curr:1,total:0},this.parmValue={startTime:"",endTime:"",supplierNo:"",payNo:"",apply:"",pay_status:"",inv_status:"",page:1,size:15},this.searchList()},timeReturned: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.startTime?t.parmValue.startTime=e.startTime:t.parmValue.startTime="",""!==e.endTime?t.parmValue.endTime=e.endTime:t.parmValue.endTime="",""!==t.parmValue.startTime&&""!==t.parmValue.endTime)return t.parmValue.page=1,a.next=6,t.searchList();a.next=6;break;case 6:case"end":return a.stop()}}),a)})))()},openModal:function(e,t,a,r,n,i,o){this.modelId=e,this.isDetail=t,this.dstatus=a,this.payNo=r,this.companyNo=n,this.pay_status=i||"",this.remark=o||"","003"===t||"005"===t||"007"===t?this.showModel1=!0:"045"===this.isDetail?this.showModel2=!0:"034"===this.isDetail?this.showModel3=!0:"031"===this.isDetail?this.showModel4=!0:"032"===this.isDetail?this.showModel5=!0:"035"===this.isDetail?this.showModel6=!0:"043"===this.isDetail?this.showModel21=!0:"044"===this.isDetail?this.showModel22=!0:"033"===this.isDetail&&(this.showModel23=!0)},cancel:function(){this.showModel1=!1,this.showModel2=!1,this.showModel3=!1,this.showModel4=!1,this.showModel5=!1,this.showModel6=!1,this.showModel21=!1,this.showModel22=!1,this.showModel23=!1},selectChange:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.parmValue.supplierNo=e.code.join(","),e.formValue.page=1,e.pageInfo.curr=1,t.next=5,e.searchList();case 5:case"end":return t.stop()}}),t)})))()},ApplyPay: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={payNo:e,sid:t,status:"1"},r.next=3,o.a.again(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)})))()},ApplyExamPay: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={sid:e,status:"1"},a.next=3,o.a.paymentexam(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)})))()},changeStatus: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={payNo:e,status:"0"},a.next=3,o.a.status(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.startTime&&""===e.parmValue.endTime)return e.$message.error("结束时间不能为空!"),t.abrupt("return");t.next=3;break;case 3:if(""===e.parmValue.startTime&&""!==e.parmValue.endTime)return e.$message.error("开始时间不能为空!"),t.abrupt("return");t.next=6;break;case 6:return e.loading=!0,"1"===e.selectK?(e.parmValue.payNo=e.input,e.parmValue.apply=""):(e.parmValue.payNo="",e.parmValue.apply=e.input),t.next=10,o.a.list(e.parmValue);case 10:if(!(a=t.sent)||0!==a.code||!a.data){t.next=17;break}e.tableData=a.data.list,e.tableData.map((function(t){t.total_fee=parseFloat(t.total_fee+"").toFixed(2),t.pay_fee=parseFloat(t.pay_fee+"").toFixed(2),t.wait_fee=parseFloat(t.wait_fee+"").toFixed(2),t.dpay_fee=parseFloat(t.dpay_fee+"").toFixed(2),t.inv_fee=parseFloat(t.inv_fee+"").toFixed(2),t.dtype=e.setDtype(t.dstatus),t.ptype=e.setPtype(t.pay_status),t.delType=e.setDeltype(t.dstatus,t.pay_status);var a=parseInt(t.pay_stages),r=t.pay_rate.replace("[","").replace("]","").split(",");return t.pay_rate=r[a-1]+"%",t})),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)})))()},setDeltype:function(e,t){return"4"!==t&&("7"!==e&&"8"!==e)},setDtype:function(e){var t=this,a=!1;return[{type:"030",tatus:["0","2"]},{type:"045",tatus:["1"]},{type:"031",tatus:["3","9"]},{type:"032",tatus:["5"]},{type:"035",tatus:["6"]}].forEach((function(r){t.powers.some((function(e){return e==r.type}))&&r.tatus.forEach((function(t){t===e&&(a=!0)}))})),a},setPtype:function(e){var t=this,a=!1;return[{type:"030",tatus:["0","5","6"]},{type:"043",tatus:["1"]},{type:"044",tatus:["2"]},{type:"033",tatus:["3"]}].forEach((function(r){t.powers.some((function(e){return e==r.type}))&&r.tatus.forEach((function(t){t===e&&(a=!0)}))})),a},remoteMethod: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.selectLoading=!0,""!==e)return t.activeOptions=[],t.formValue.name=e,a.next=6,o.a.supplierlist(t.formValue);a.next=19;break;case 6:if(!((r=a.sent)&&0===r.code&&r.data&&r.data.list)){a.next=11;break}t.activeOptions=r.data.list,a.next=17;break;case 11:if(r&&100<=r.code&&r.code<=104)return a.next=14,t.logout();a.next=16;break;case 14:a.next=17;break;case 16:t.$message.warning(r.message);case 17:a.next=20;break;case 19:t.activeOptions=[];case 20:t.selectLoading=!1;case 21:case"end":return a.stop()}}),a)})))()}}},p=a("2877"),i=Object(p.a)(c,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"orderRecord pagePadding"},[e.powers&&0<e.powers.length&&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"},attrs:{gutter:10}},[a("el-col",{staticStyle:{width:"460px"},attrs:{span:6}},[a("el-select",{staticStyle:{width:"100%"},attrs:{multiple:"",filterable:"",remote:"","multiple-limit":1,"reserve-keyword":"",size:e.searchSize,placeholder:"供应商名称搜索","remote-method":e.remoteMethod,loading:e.selectLoading},on:{change:e.selectChange},model:{value:e.code,callback:function(t){e.code=t},expression:"code"}},e._l(e.activeOptions,(function(e){return a("el-option",{key:e.code,attrs:{label:e.name,value:e.code}})})),1)],1),a("el-col",{staticStyle:{width:"296px"},attrs:{span:6}},[a("period-date-picker",{attrs:{start:e.parmValue.startTime,end:e.parmValue.endTime,type:1,width:"132px",size:e.searchSize},on:{timeReturned:function(t){return e.timeReturned(t)}}})],1),e.powers.some((function(e){return"002"==e}))?a("el-col",{staticStyle:{width:"66px",float:"right",padding:"0"},attrs:{span:3}},[a("el-button",{staticClass:"fr",attrs:{size:e.searchSize,type:"primary"},on:{click:e.searchList}},[e._v(" 刷新 ")])],1):e._e(),e.powers.some((function(e){return"024"==e}))?a("el-col",{staticStyle:{width:"61px",float:"right",padding:"0"},attrs:{span:3}},[a("el-button",{staticClass:"fr",attrs:{type:"warning",size:e.searchSize},on:{click:e.restSearch}},[e._v(" 重置 ")])],1):e._e()],1),a("el-row",{attrs:{gutter:10}},[a("el-col",{staticStyle:{width:"155px"},attrs:{span:8}},[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.pay_status,callback:function(t){e.$set(e.parmValue,"pay_status",t)},expression:"parmValue.pay_status"}},e._l(e.options,(function(e){return a("el-option",{key:e.id,attrs:{label:e.label,value:e.id}})})),1)],1),a("el-col",{staticStyle:{width:"155px"},attrs:{span:8}},[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.inv_status,callback:function(t){e.$set(e.parmValue,"inv_status",t)},expression:"parmValue.inv_status"}},e._l(e.dstatusOptions,(function(e){return a("el-option",{key:e.id,attrs:{label:e.label,value:e.id}})})),1)],1),a("el-col",{staticStyle:{width:"350px"},attrs:{span:5}},[a("el-input",{staticStyle:{width:"100%"},attrs:{clearable:"",size:e.searchSize,placeholder:"关键字"},model:{value:e.input,callback:function(t){e.input=t},expression:"input"}},[a("el-select",{staticStyle:{width:"100px"},attrs:{slot:"prepend",placeholder:"请选择"},slot:"prepend",model:{value:e.selectK,callback:function(t){e.selectK=t},expression:"selectK"}},e._l(e.selectKlist,(function(e){return a("el-option",{key:e.code,attrs:{label:e.name,value:e.code}})})),1),a("el-button",{attrs:{slot:"append",icon:"el-icon-search"},nativeOn:{click:function(t){return e.searchList(t)}},slot:"append"})],1)],1),e.powers.some((function(e){return"003"==e}))?a("el-col",{staticStyle:{width:"66px",float:"right",padding:"0"},attrs:{span:2}},[a("el-button",{staticClass:"fr",attrs:{size:e.searchSize,type:"success"},on:{click:function(t){return e.openModal("add","003",0,0,0)}}},[e._v(" 添加 ")])],1):e._e()],1)],1)]}},{key:"dstatus",fn:function(t){var r=t.scope;return[a("el-tag",{attrs:{size:"mini",type:"7"==r.row.dstatus?"success":"0"==r.row.dstatus?"info":"9"==r.row.dstatus||"2"==r.row.dstatus?"danger":"warning"},domProps:{textContent:e._s((e.dstatusOptions.find((function(e){return e.id==r.row.dstatus}))||{}).label||"--")}})]}},{key:"pay_status",fn:function(t){var r=t.scope;return[a("el-tag",{attrs:{size:"mini",type:"4"==r.row.pay_status?"success":"0"==r.row.pay_status?"info":"5"==r.row.pay_status||"6"==r.row.pay_status?"danger":"warning"},domProps:{textContent:e._s((e.options.find((function(e){return e.id==r.row.pay_status}))||{}).label||"--")}})]}},{key:"operation",fn:function(t){var r=t.scope;return[a("el-dropdown",{attrs:{trigger:"click"}},[a("span",{staticClass:"el-dropdown-link"},[e._v(" 更多操作"),a("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),a("el-dropdown-menu",{staticStyle:{"min-width":"130px"},attrs:{slot:"dropdown"},slot:"dropdown"},[e.powers.some((function(e){return"007"==e}))?a("el-dropdown-item",{nativeOn:{click:function(t){return e.openModal(r.row.sid,"007",r.row.dstatus,r.row.payNo,r.row.companyNo)}}},[a("span",{staticStyle:{"text-align":"center",display:"block"}},[e._v("查看详情")])]):e._e(),e.powers.some((function(e){return"005"==e}))&&"1"===r.row.pay_stages&&"0"===r.row.dstatus||e.powers.some((function(e){return"005"==e}))&&"1"===r.row.pay_stages&&"2"===r.row.dstatus?a("el-dropdown-item",{nativeOn:{click:function(t){return e.openModal(r.row.sid,"005",r.row.dstatus,r.row.payNo,r.row.companyNo,r.row.pay_status,r.row.aremark)}}},[a("span",{staticStyle:{"text-align":"center",display:"block"}},[e._v("修改申请")])]):e._e(),e.powers.some((function(e){return"027"==e}))&&r.row.delType?a("el-dropdown-item",{nativeOn:{click:function(t){return e.changeStatus(r.row.payNo)}}},[a("span",{staticStyle:{"text-align":"center",display:"block"}},[e._v("取消申请")])]):e._e(),r.row.ptype?a("el-divider",{staticClass:"my-el-divider"},[e._v("付款")]):e._e(),e.powers.some((function(e){return"030"==e}))&&"0"===r.row.pay_status||e.powers.some((function(e){return"030"==e}))&&"5"===r.row.pay_status||e.powers.some((function(e){return"030"==e}))&&"6"===r.row.pay_status?a("el-dropdown-item",{nativeOn:{click:function(t){return e.ApplyExamPay(r.row.sid)}}},[a("span",{staticStyle:{"text-align":"center",display:"block"}},[e._v("发起审核流程")])]):e._e(),e.powers.some((function(e){return"043"==e}))&&"1"===r.row.pay_status?a("el-dropdown-item",{nativeOn:{click:function(t){return e.openModal(r.row.sid,"043",r.row.pay_status,r.row.payNo,r.row.companyNo)}}},[a("span",{staticStyle:{"text-align":"center",display:"block"}},[e._v("业务审核")])]):e._e(),e.powers.some((function(e){return"044"==e}))&&"2"===r.row.pay_status?a("el-dropdown-item",{nativeOn:{click:function(t){return e.openModal(r.row.sid,"044",r.row.pay_status,r.row.payNo,r.row.companyNo)}}},[a("span",{staticStyle:{"text-align":"center",display:"block"}},[e._v("财务审核")])]):e._e(),e.powers.some((function(e){return"033"==e}))&&"3"===r.row.pay_status?a("el-dropdown-item",{nativeOn:{click:function(t){return e.openModal(r.row.sid,"033",r.row.pay_status,r.row.payNo,r.row.companyNo)}}},[a("span",{staticStyle:{"text-align":"center",display:"block"}},[e._v("付款回执")])]):e._e(),r.row.dtype?a("el-divider",{staticClass:"my-el-divider"},[e._v("回票")]):e._e(),e.powers.some((function(e){return"030"==e}))&&"0"===r.row.dstatus||e.powers.some((function(e){return"030"==e}))&&"2"===r.row.dstatus?a("el-dropdown-item",{nativeOn:{click:function(t){return e.ApplyPay(r.row.payNo,r.row.sid)}}},[a("span",{staticStyle:{"text-align":"center",display:"block"}},[e._v("发起审核流程")])]):e._e(),e.powers.some((function(e){return"045"==e}))&&"1"===r.row.dstatus?a("el-dropdown-item",{nativeOn:{click:function(t){return e.openModal(r.row.sid,"045",r.row.dstatus,r.row.payNo,r.row.companyNo)}}},[a("span",{staticStyle:{"text-align":"center",display:"block"}},[e._v("业务审核")])]):e._e(),e.powers.some((function(e){return"031"==e}))&&"3"===r.row.dstatus||e.powers.some((function(e){return"031"==e}))&&"9"===r.row.dstatus?a("el-dropdown-item",{nativeOn:{click:function(t){return e.openModal(r.row.sid,"031",r.row.dstatus,r.row.payNo,r.row.companyNo)}}},[a("span",{staticStyle:{"text-align":"center",display:"block"}},[e._v("上传发票")])]):e._e(),e.powers.some((function(e){return"032"==e}))&&"5"===r.row.dstatus?a("el-dropdown-item",{nativeOn:{click:function(t){return e.openModal(r.row.sid,"032",r.row.dstatus,r.row.payNo,r.row.companyNo)}}},[a("span",{staticStyle:{"text-align":"center",display:"block"}},[e._v("校验结果")])]):e._e(),e.powers.some((function(e){return"035"==e}))&&"6"===r.row.dstatus?a("el-dropdown-item",{nativeOn:{click:function(t){return e.openModal(r.row.sid,"035",r.row.dstatus,r.row.payNo,r.row.companyNo)}}},[a("span",{staticStyle:{"text-align":"center",display:"block"}},[e._v("审核发票")])]):e._e()],1)],1)]}}],null,!1,1742355827)}):a("no-auth"),"003"===e.isDetail||"005"===e.isDetail||"007"===e.isDetail?a("add-edit1",{attrs:{id:e.modelId,payNo:e.payNo,"show-model":e.showModel1,"is-detail":e.isDetail,pay_status:e.pay_status,remark:e.remark,dstatus:e.dstatus},on:{refresh:e.searchList,cancel:e.cancel}}):e._e(),a("add-edit-2",{attrs:{id:e.modelId,payNo:e.payNo,"show-model":e.showModel2,"is-detail":e.isDetail,dstatus:e.dstatus},on:{refresh:e.searchList,cancel:e.cancel}}),a("add-edit-3",{attrs:{id:e.modelId,payNo:e.payNo,"show-model":e.showModel3,"is-detail":e.isDetail,dstatus:e.dstatus},on:{refresh:e.searchList,cancel:e.cancel}}),a("add-edit-4",{attrs:{id:e.modelId,payNo:e.payNo,"show-model":e.showModel4,"is-detail":e.isDetail,dstatus:e.dstatus},on:{refresh:e.searchList,cancel:e.cancel}}),a("add-edit-5",{attrs:{id:e.modelId,payNo:e.payNo,companyNo:e.companyNo,"show-model":e.showModel5,"is-detail":e.isDetail,dstatus:e.dstatus},on:{refresh:e.searchList,cancel:e.cancel}}),a("add-edit-6",{attrs:{id:e.modelId,payNo:e.payNo,companyNo:e.companyNo,"show-model":e.showModel6,"is-detail":e.isDetail,dstatus:e.dstatus},on:{refresh:e.searchList,cancel:e.cancel}}),a("add-edit-21",{attrs:{id:e.modelId,payNo:e.payNo,companyNo:e.companyNo,"show-model":e.showModel21,"is-detail":e.isDetail,dstatus:e.dstatus},on:{refresh:e.searchList,cancel:e.cancel}}),a("add-edit-22",{attrs:{id:e.modelId,payNo:e.payNo,companyNo:e.companyNo,"show-model":e.showModel22,"is-detail":e.isDetail,dstatus:e.dstatus},on:{refresh:e.searchList,cancel:e.cancel}}),a("add-edit-23",{attrs:{id:e.modelId,payNo:e.payNo,companyNo:e.companyNo,"show-model":e.showModel23,"is-detail":e.isDetail,dstatus:e.dstatus},on:{refresh:e.searchList,cancel:e.cancel}})],1)}),[],!1,null,"11e21743",null);t.default=i.exports},"7b0b1":function(e,t,a){"use strict";var r=a("1b69"),n="Admin/";t.a={list:function(e,t){return Object(r.a)(n+"tradelist",e,"post",t)},clist:function(e,t){return Object(r.a)(n+"customerlist",e,"post",t)},add:function(e,t){return Object(r.a)(n+"tradecreate",e,"post",t)},detail:function(e,t){return Object(r.a)(n+"tradeinfo",e,"post",t)},delete:function(e,t){return Object(r.a)(n+"tradedel",e,"post",t)},status:function(e,t){return Object(r.a)(n+"tradeupdate",e,"post",t)},tradesave:function(e,t){return Object(r.a)(n+"tradesave",e,"post",t)},tradein:function(e,t){return Object(r.a)(n+"tradein",e,"post",t)},tradelog:function(e,t){return Object(r.a)(n+"tradelog",e,"post",t)},traderefund:function(e,t){return Object(r.a)(n+"traderefund",e,"post",t)}}},"7b8a":function(e,t,a){},"7caa":function(e,t,a){"use strict";var r=a("1b69"),n="admin/";t.a={detail:function(e,t){return Object(r.a)(n+"system",e,"post",t)},list:function(e,t){return Object(r.a)(n+"system",e,"post",t)},update:function(e,t){return Object(r.a)(n+"setconf",e,"post",t)}}},"7d27":function(e,t,a){"use strict";var r={name:"PeriodDatePicker",props:["start","end","disabled","size","width","type","timeType"],data:function(){var e=this;return{startTime:this.start,endTime:this.end,isEdit:this.disabled,pickerOptions1:{disabledDate:function(t){if(null!=e.endTime&&""!=e.endTime&&t)return t.getTime()>new Date(e.endTime).valueOf()}},pickerOptions2:{disabledDate:function(t){if(null!=e.startTime&&""!=e.startTime&&t)return t.getTime()<new Date(e.startTime).valueOf()}}}},watch:{disabled:function(e){this.isEdit=e},start:function(e){this.startTime=e},end:function(e){this.endTime=e}},mounted:function(){},methods:{timeChange:function(){""!==this.startTime&&null!==this.startTime&&""!==this.endTime&&null!==this.endTime?this.type+""!="1"||this.setType(365)?this.type+""!="2"||this.setType(90)?new Date(this.endTime).valueOf()<new Date(this.startTime).valueOf()?this.showMessage("结束时间不大于开始时间!"):this.timeReturned():this.showMessage("时间跨度不能超过90天!"):this.showMessage("时间跨度不能超过一年!"):this.timeReturned()},timeReturned:function(){var e=null==this.startTime?"":this.startTime,t=null==this.endTime?"":this.endTime;e={startTime:""==e?"":this.transformTime(e),endTime:""==t?"":this.transformTime(t)};this.$emit("timeReturned",e)},transformTime:function(e){e=new Date(e);var t=e.getFullYear(),a=e.getMonth()+1;e=e.getDate();return t+"-"+(a<10?"0"+a:a)+"-"+(e<10?"0"+e:e)},showMessage:function(e){this.$message.error(e),this.startTime="",this.endTime="",this.timeReturned()},setType:function(e){var t=new Date(this.startTime).valueOf();return!(864e5*e<new Date(this.endTime).valueOf()-t)}}};a("2b69"),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",{staticClass:"date-picker",staticStyle:{margin:"0"},style:{width:e.width},attrs:{type:e.timeType||"date",size:e.size,placeholder:"开始日期","value-format":"yyyy-MM-dd","picker-options":e.pickerOptions1,editable:!1,clearable:!0,disabled:e.isEdit},on:{change:e.timeChange},model:{value:e.startTime,callback:function(t){e.startTime=t},expression:"startTime"}}),t("samp",{staticStyle:{padding:"0 3px",margin:"0"}},[e._v("至")]),t("el-date-picker",{staticClass:"date-picker",staticStyle:{margin:"0"},style:{width:e.width},attrs:{size:e.size,type:e.timeType||"date",placeholder:"结束日期",disabled:e.isEdit,"picker-options":e.pickerOptions2,editable:!1,"value-format":"yyyy-MM-dd",clearable:!0},on:{change:e.timeChange},model:{value:e.endTime,callback:function(t){e.endTime=t},expression:"endTime"}})],1)}),[],!1,null,null,null);t.a=a.exports},"7e10":function(e,t,a){"use strict";a.r(t);var r=[function(){var e=this.$createElement;e=this._self._c||e;return e("div",{staticClass:"dingLoading"},[e("img",{attrs:{src:a("f8b2"),alt:""}})])}],n={name:"loadingPage",data:function(){return{}},created:function(){}},i=(a("42d5"),a("2877"));i=Object(i.a)(n,(function(){this.$createElement;return this._self._c,this._m(0)}),r,!1,null,"3427ed7c",null);t.default=i.exports},"7f01":function(e,t,a){},"80ea":function(e,t,a){"use strict";a("57c4")},"81d5":function(e,t,a){},8238:function(e,t,a){},8241:function(e,t,a){},"837b":function(e,t,a){"use strict";a.r(t);var r=a("1da1"),n=(a("e9c4"),a("96cf"),a("3ef2")),i={name:"orderRecord",props:["id","newTime","payNo","companyNo","type"],mixins:[a("9f53").a],data:function(){return{options:[],options1:[{value:"2",label:"通过"}],options2:[{value:"3",label:"通过"}],examForm:{id:this.id,status:"2",remark:""},examsThis:this.exams,exams:{status:[{required:!0,message:"请选择审核状态",trigger:"change"}],remark:[{required:!1,message:"请输入审核备注",trigger:"bulr"}]}}},watch:{newTime:function(e,t){e!==t&&this.initForm()}},mounted:function(){this.initForm()},methods:{initForm:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return"1"===e.type?e.options=e.options1:e.options=e.options2,e.loading=!0,e.examsThis=e.exams,t.next=6,e.resetForm();case 6:e.statusChange(),e.loading=!1;case 8:case"end":return t.stop()}}),t)})))()},resetForm:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$nextTick((function(){e.$refs.examForm&&(e.$refs.examForm.resetFields(),e.$refs.examForm.clearValidate(),e.examForm={id:e.id,status:e.options[0].value,remark:""})}));case 2:case"end":return t.stop()}}),t)})))()},statusChange:function(){this.examForm&&this.examForm.status==this.options[0].value?this.examsThis.remark[0].required=!1:this.examsThis.remark[0].required=!0},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.examForm.validate(function(){var t=Object(r.a)(regeneratorRuntime.mark((function t(a){var r,i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a)return e.loading=!0,r=JSON.parse(JSON.stringify(e.examForm)),r={sid:r.id,status:r.status,remark:r.remark},i={},t.next=7,n.a.paymentexam(r);t.next=24;break;case 7:if(i=t.sent,e.loading=!1,!i||0!==i.code){t.next=16;break}e.$notify.success({title:"业务审核成功!",message:""}),e.showModelThis=!1,e.$emit("refreshAll"),t.next=22;break;case 16:if(i&&100<=i.code&&i.code<=104)return t.next=19,e.logout();t.next=21;break;case 19:t.next=22;break;case 21:e.$message.warning(i.message);case 22:t.next=26;break;case 24:return t.abrupt("return",!1);case 26:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()},remoteMethod: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.selectLoading=!0,""!==e)return t.activeOptions=[],t.parmValue.contector=e,a.next=6,n.a.supplierlist(t.parmValue);a.next=19;break;case 6:if(0!==(r=a.sent).code||!r.data||!r.data.list){a.next=11;break}t.activeOptions=r.data.list,a.next=17;break;case 11:if(r&&100<=r.code&&r.code<=104)return a.next=14,t.logout();a.next=16;break;case 14:a.next=17;break;case 16:t.$message.warning(r.message);case 17:a.next=20;break;case 19:t.options=[];case 20:t.selectLoading=!1;case 21:case"end":return a.stop()}}),a)})))()}}};a("a77f"),a=a("2877"),a=Object(a.a)(i,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-row",[a("el-col",{attrs:{span:24}},[a("el-form",{ref:"examForm",staticClass:"demo-examForm",attrs:{model:e.examForm,rules:e.examsThis,"label-width":"100px"}},[a("el-row",{attrs:{gutter:10}},[a("el-col",{attrs:{span:18}},[a("el-form-item",{attrs:{label:"审核状态",prop:"status"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择审核状态"},on:{change:e.statusChange},model:{value:e.examForm.status,callback:function(t){e.$set(e.examForm,"status",t)},expression:"examForm.status"}},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",{staticStyle:{"text-align":"right"},attrs:{span:6}},[a("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("提交审核结果")])],1)],1)],1)],1)],1)}),[],!1,null,"4003f130",null);t.default=a.exports},"84e3":function(e,t,a){"use strict";a("eb18")},"85a3":function(e,t,a){},"85db":function(e,t,a){"use strict";a("fe57")},8645:function(e,t,a){},"88a9":function(e,t,a){"use strict";a.r(t);var r={name:"itemTemplate",props:["list","headIndex","type"],data:function(){return{}},methods:{}};a("3387"),a=a("2877"),a=Object(a.a)(r,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"itemTemplateBody"},[e.list&&0<e.list.length?e._l(e.list,(function(t,r){return a("el-row",{key:t.code+r,staticClass:"body"},[a("el-col",{staticStyle:{width:"200px"},attrs:{span:8}},[a("div",[e._v(e._s(t.code))])]),1===e.headIndex?a("el-col",{staticClass:"setWidth",attrs:{span:8}},[a("div",[e._v(e._s(t.name))])]):e._e(),"1"===e.type&&1!==e.headIndex?a("el-col",{style:{width:1===e.headIndex?"110px":" 108px"},attrs:{span:8}},[a("div",[e._v(e._s(t.order_fee))])]):e._e(),"1"===e.type&&1===e.headIndex?a("el-col",{style:{width:1===e.headIndex?"110px":" 108px"},attrs:{span:8}},[a("div",[e._v(e._s(t.fund_fee))])]):e._e(),"1"===e.type&&1===e.headIndex?a("el-col",{style:{width:1===e.headIndex?"110px":" 108px"},attrs:{span:8}},[a("div",[e._v(e._s(t.inv_fee))])]):e._e(),"2"===e.type&&1!==e.headIndex?a("el-col",{style:{width:1===e.headIndex?"110px":" 108px"},attrs:{span:8}},[a("div",[e._v(e._s(t.inv_fee))])]):e._e(),"2"===e.type&&1===e.headIndex?a("el-col",{style:{width:1===e.headIndex?"110px":" 108px"},attrs:{span:8}},[a("div",[e._v(e._s(t.fund_fee))])]):e._e(),"2"===e.type&&1===e.headIndex?a("el-col",{style:{width:1===e.headIndex?"110px":" 108px"},attrs:{span:8}},[a("div",[e._v(e._s(t.order_fee))])]):e._e(),"3"===e.type&&1!==e.headIndex?a("el-col",{style:{width:1===e.headIndex?"110px":" 108px"},attrs:{span:8}},[a("div",[e._v(e._s(t.fund_fee))])]):e._e(),"3"===e.type&&1===e.headIndex?a("el-col",{style:{width:1===e.headIndex?"110px":" 108px"},attrs:{span:8}},[a("div",[e._v(e._s(t.order_fee))])]):e._e(),"3"===e.type&&1===e.headIndex?a("el-col",{style:{width:1===e.headIndex?"110px":" 108px"},attrs:{span:8}},[a("div",[e._v(e._s(t.inv_fee))])]):e._e()],1)})):[a("div",{staticClass:"nodate"},[e._v("暂无数据")])]],2)}),[],!1,null,"6c777205",null);t.default=a.exports},"88ec":function(e,t,a){"use strict";var r=a("1b69"),n="Admin/";t.a={add:function(e,t){return Object(r.a)(n+"roleadd",e,"post",t)},delete:function(e,t){return Object(r.a)(n+"rolestatus",e,"post",t)},list:function(e,t){return Object(r.a)(n+"rolelist",e,"post",t)},detail:function(e,t){return Object(r.a)(n+"roleinfo",e,"post",t)},update:function(e,t){return Object(r.a)(n+"rolesave",e,"post",t)},status:function(e,t){return Object(r.a)(n+"rolestatus",e,"post",t)},actionList:function(e,t){return Object(r.a)(n+"menuactionlist",e,"post",t)}}},8924:function(e,t,a){"use strict";a("c9d2")},8961:function(e,t,a){"use strict";a.r(t);var r=a("1da1"),n=a("5530"),i=(a("96cf"),a("7db0"),a("d3b7"),a("c740"),a("3ca3"),a("ddb0"),a("2b3d"),a("9861"),a("99af"),a("9f53")),o=a("5daa"),s=a("7d27"),l=a("2f62");i={name:"standBook",mixins:[i.a],components:{PeriodDatePicker: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"standBook"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),data:function(){return{options:[{value:"2",label:"确认单明细",start:"",end:"",url:"Admin/downreportqrd"},{value:"4",label:"采购单明细",start:"",end:"",url:"Admin/downreportcgd"},{value:"7",label:"核算确认单",start:"",end:"",url:"downqrd"},{value:"8",label:"核算采购单",start:"",end:"",url:"downcgd"},{value:"9",label:"业绩确认采购单",start:"",end:"",url:"downqrdtz"},{value:"10",label:"业绩退货单",start:"",end:"",url:"downth"}],loading:!1,fileUrl:o.a.baseURL}},methods:{restSearch:function(e){e=this.resType(e),-1!==e&&(this.options[e].start="",this.options[e].end="")},timeReturned: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:-1!==(n=a.resType(t))&&(""!==e.startTime?a.options[n].start=e.startTime:a.options[n].start="",""!==e.endTime?a.options[n].end=e.endTime:a.options[n].end="");case 2:case"end":return r.stop()}}),r)})))()},resType:function(e){return this.options.findIndex((function(t){return t.value===e}))},batchExport:function(e){var t=this;return Object(r.a)(regeneratorRuntime.mark((function a(){var r,n,i,o,s;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(-1===(r=t.resType(e))){a.next=12;break}if(n=t.options[r].url,i=t.options[r].label,o={start:t.options[r].start,end:t.options[r].end},t.loading){a.next=12;break}if(""===o.start||""===o.end)return t.$message.warning("请选择时间区间!"),a.abrupt("return");a.next=9;break;case 9:t.loading=!0,s="aplication/zip",axios({method:"post",url:t.fileUrl+n,responseType:"blob",data:o,headers:{Accept:s}}).then((function(e){var a;e&&200==e.status&&e.data?(e=new Blob([e.data],{type:s}),e=window.URL.createObjectURL(e),(a=document.createElement("a")).style.display="none",a.href=e,a.setAttribute("download","".concat(o.start,"至").concat(o.end).concat(i,".zip")),document.body.appendChild(a),a.click(),document.body.removeChild(a),window.URL.revokeObjectURL(e),t.$message.success(i+"信息导出成功!")):t.$message.error("时间区间过长,请修改后再试!"),setTimeout((function(){t.loading=!1}),500)})).catch((function(e){t.$message.error("时间区间过长,请修改后再试!"),t.loading=!1}));case 12:case"end":return a.stop()}}),a)})))()}}},a("74e6"),s=a("2877"),n=Object(s.a)(i,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"real-time-export"},[a("div",{staticClass:"standBook-ul-box"},[a("ul",{staticClass:"standBook-ul clearfix"},e._l(e.options,(function(t){return a("li",{key:t.value},[a("div",{staticClass:"label"},[e._v(e._s(t.label)+":")]),a("div",{staticClass:"time"},[a("period-date-picker",{attrs:{start:t.start,end:t.end,type:0,width:"135px",size:e.searchSize},on:{timeReturned:function(a){return e.timeReturned(a,t.value)}}})],1),a("div",{staticClass:"operation"},[e.powers.some((function(e){return"049"==e}))?a("el-button",{staticClass:"fr",staticStyle:{"margin-left":"15px"},attrs:{type:"primary",icon:"el-icon-download",size:e.searchSize},on:{click:function(a){return e.batchExport(t.value)}}},[e._v("导出")]):e._e(),e.powers.some((function(e){return"024"==e}))?a("el-button",{staticClass:"fr",attrs:{type:"warning",size:e.searchSize},on:{click:function(a){return e.restSearch(t.value)}}},[e._v(" 重置 ")]):e._e()],1)])})),0)])])}),[],!1,null,"b06eb05c",null);t.default=n.exports},"89ae":function(e,t,a){"use strict";a("c026")},"8b87":function(e,t,a){},"8ca9":function(e,t,a){},"8ced":function(e,t,a){},"8d5e":function(e,t,a){"use strict";a("b9e4")},"8daf":function(e,t,a){},"8e23":function(e,t,a){"use strict";a.r(t);var r=a("1da1"),n=(a("96cf"),a("d3b7"),a("ac1f"),a("5319"),a("159b"),a("07ac"),a("c740"),a("b0c0"),a("00b4"),a("1146")),i=a.n(n),o=(n={props:{beforeUpload:Function,onSuccess:Function},data:function(){return{loading:!1,excelData:{header:null,results:null}}},methods:{generateData:function(e){var t=e.header;e=e.results;this.excelData.header=t,this.excelData.results=e,this.loading=!1,this.onSuccess&&this.onSuccess(this.excelData)},handleDrop:function(e){if(e.stopPropagation(),e.preventDefault(),!this.loading){var t=e.dataTransfer.files;if(1!==t.length)this.$message.error("Only support uploading one file!");else{if(t=t[0],!this.isExcel(t))return this.$message.error("仅支持上载.xlsx、.xls后缀文件"),!1;this.upload(t),e.stopPropagation(),e.preventDefault()}}},handleDragover:function(e){e.stopPropagation(),e.preventDefault(),e.dataTransfer.dropEffect="copy"},handleUpload:function(){this.$refs["excel-upload-input"].click()},handleClick:function(e){e=e.target.files[0],e&&this.upload(e)},upload:function(e){this.$refs["excel-upload-input"].value=null,this.beforeUpload&&!this.beforeUpload(e)||this.readerData(e)},readerData:function(e){var t=this;return this.loading=!0,new Promise((function(a,r){var n=new FileReader;n.onload=function(e){e=e.target.result,e=i.a.read(e,{type:"array"});var r=e.SheetNames[0];e=e.Sheets[r],r=t.getHeaderRow(e),e=i.a.utils.sheet_to_json(e,{defval:""});t.generateData({header:r,results:e}),t.loading=!1,a()},n.readAsArrayBuffer(e)}))},getHeaderRow:function(e){for(var t=[],a=i.a.utils.decode_range(e["!ref"]),r=a.s.r,n=a.s.c;n<=a.e.c;++n){var o=e[i.a.utils.encode_cell({c:n,r:r})],s="UNKNOWN "+n;o&&o.t&&(s=i.a.utils.format_cell(o)),t.push(s)}return t},isExcel:function(e){return/\.(xlsx|xls|csv)$/.test(e.name)}}},a("3ef8"),a("2877")),s=(n=Object(o.a)(n,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("div",[t("input",{ref:"excel-upload-input",staticClass:"excel-upload-input",attrs:{type:"file",accept:".xlsx, .xls"},on:{change:e.handleClick}}),t("div",{staticClass:"drop",on:{drop:e.handleDrop,dragover:e.handleDragover,dragenter:e.handleDragover}},[t("span",{staticStyle:{height:"28px","vertical-align":"middle","line-height":"28px",display:"inline-block"}},[e._v("将excel文件拖放到此处或")]),t("el-button",{staticStyle:{"margin-left":"12px"},attrs:{loading:e.loading,size:"mini",type:"primary"},on:{click:e.handleUpload}},[e._v(" 点击 ")])],1)])}),[],!1,null,"2cc95567",null).exports,a("ccd8"));n={name:"invoiceApply",props:["showModel"],components:{UploadExcelComponent:n},data:function(){return{tableData:[],tableHeader:[],title:"",showModelThis:!1,loading:!1,newTime:0}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis:function(e){e||this.$emit("cancel")}},methods:{beforeUpload:function(e){return e.size/1024/1024<1||(this.$message({message:"请不要上传大于1MB的文件.",type:"warning"}),!1)},handleSuccess:function(e){var t,a,r=this,n=e.results,i=e.header;e=["发票编号","发票类型","发票代码","发票号码","发票金额","开票日期"];e.length!==i.length?this.$message.error("表头与导入模板不匹配!"):(t=!0,e.forEach((function(e,a){e!==i[a].replace(/\s*/g,"")&&(t=!1)})),t?(this.tableHeader=i,this.tableData=[],e=n,a=!0,this.tableData=[],e.forEach((function(e){e=Object.values(e);var t=r.setTime((e[5]+"").replace(/^\s*|\s*$/g,"")),n=r.get_inv_type(e[1]+"");-1===n&&(a=!1),n={invNo:e[0]+"",inv_type_name:-1===n?"":e[1]+"",inv_type:-1===n?"":n,inv_code:e[2]+"",inv_number:e[3]+"",inv_total:e[4]+"",createtime:t};r.tableData.push(n)})),a||this.$message.error("发票类型不正确,请将表格格式转为文本上传!")):this.$message.error("表头与导入模板不匹配!"))},unique:function(e){for(var t=[],a=0;a<e.length;a++)!function(a){-1===t.findIndex((function(t){return t.inv_number===e[a].inv_number}))&&t.push(e[a])}(a);return t},setTime:function(e){return e=(e=e.replace(/\//g,"-")).replace(/\./g,"-"),13!==(new Date(e).valueOf()+"").length?"":e},closeModel:function(){},dropzoneS:function(e){this.$message({message:"Upload success",type:"success"})},dropzoneR:function(e){this.$message({message:"Delete success",type:"success"})},initForm:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.newTime=0,e.loading=!0,e.tableData=[],e.tableHeader=[],e.step=1,e.title="批量导入开票信息",e.changea(),e.loading=!1;case 8:case"end":return t.stop()}}),t)})))()},refreshAll:function(){this.showModelThis=!1,this.$emit("refresh")},changea:function(){this.newTime=(new Date).valueOf()},submitForm:function(){var e=this;return Object(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){t.next=33;break}if(e.tableData.length<1)return e.$message.error("导入数据不能为空!"),e.loading=!1,t.abrupt("return");t.next=5;break;case 5:if(e.unique(e.tableData).length!==e.tableData.length)return e.$message.error("发票号码不可以重复出现!"),e.loading=!1,t.abrupt("return");t.next=10;break;case 10:if(e.loading=!0,a=!0,r=[],e.tableData.forEach((function(e,t){var n,i=Object.assign({},e);for(n in delete i.inv_type_name,i)""===i[n]&&(a=!1);r.push(i)})),a){t.next=18;break}return e.$message.error("导入数据不能出现空值!"),e.loading=!1,t.abrupt("return");case 18:return t.next=20,s.a.receiptimport({data:r});case 20:if(n=t.sent,e.loading=!1,!n||0!==n.code){t.next=27;break}e.showModelThis=!1,e.$emit("refresh"),t.next=33;break;case 27:if(n&&100<=n.code&&n.code<=104)return t.next=30,e.logout();t.next=32;break;case 30:t.next=33;break;case 32:n&&1005===n.code&&e.$message.error(n.message);case 33:case"end":return t.stop()}}),t)})))()},get_inv_type:function(e){var t=[{id:"1",name:"增值税专用发票"},{id:"2",name:"增值税普通发票"},{id:"3",name:"增值税电子专用发票"},{id:"4",name:"增值税电子普通发票"}],a=t.findIndex((function(t){return t.name===e.replace(/\s*/g,"")}));return-1!==a&&t[a].id,a}}},a("3b07"),a=Object(o.a)(n,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:e.title,center:!0,align:"left",top:"8vh",width:"1000px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)"},on:{"update:visible":function(t){e.showModelThis=t},close:e.closeModel}},[t("el-card",{staticStyle:{"margin-top":"-25px"}},[t("upload-excel-component",{attrs:{"on-success":e.handleSuccess,"before-upload":e.beforeUpload}}),t("el-table",{staticStyle:{width:"100%","margin-top":"20px"},attrs:{data:e.tableData,size:"mini",border:"","max-height":"400px","highlight-current-row":""}},[t("el-table-column",{attrs:{prop:"invNo",label:"发票编号",width:"180"}}),t("el-table-column",{attrs:{prop:"inv_type_name",label:"发票类型",width:"150"}}),t("el-table-column",{attrs:{prop:"inv_code",label:"发票代码"}}),t("el-table-column",{attrs:{prop:"inv_number",label:"发票号码"}}),t("el-table-column",{attrs:{prop:"inv_total",label:"发票金额",width:"130"}}),t("el-table-column",{attrs:{prop:"createtime",label:"开票日期",width:"150"}})],1),t("div",{staticClass:"tr",staticStyle:{padding:"10px 0 0 0"}},[t("el-button",{attrs:{type:"primary",size:"small"},on:{click:e.submitForm}},[e._v("保 存 ")])],1)],1)],1)}),[],!1,null,"6250fea8",null);t.default=a.exports},"8eac":function(e,t,a){"use strict";a.r(t);var r=a("1da1"),n=(a("96cf"),a("a434"),a("c740"),a("e9c4"),a("d81d"),a("d3b7"),a("159b"),a("ff7e")),i={name:"supplierPay",props:["showModel","tableData"],mixins:[a("9f53").a],data:function(){return{res:null,loading:!1,title:"批量设置开票信息",selectLoading:!1,activeOptions:[],code:[],list:[],multipleSelection:[],showModelThis:this.showModel}},watch:{showModel:function(e){e&&this.initForm(),this.showModelThis=e},showModelThis:function(e){e||this.$emit("cancel")}},methods:{closeModel:function(){},deleteRow:function(e,t){t.splice(e,1)},remoteMethod:function(e){var t=this;return Object(r.a)(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.selectLoading=!0,t.activeOptions=[],e.next=4,n.a.companylist({});case 4:if(!(a=e.sent)||0!==a.code||!a.data){e.next=9;break}t.activeOptions=a.data,e.next=15;break;case 9:if(a&&100<=a.code&&a.code<=104)return e.next=12,t.logout();e.next=14;break;case 12:e.next=15;break;case 14:t.activeOptions=[];case 15:t.selectLoading=!1;case 16:case"end":return e.stop()}}),e)})))()},handleSelectionChange:function(e){this.multipleSelection=e},selectChange:function(e){var t;e&&0<e.length?(t=e[0],e=this.activeOptions.findIndex((function(e){return e.companyNo===t})),this.res=-1!==e?this.activeOptions[e]:null):this.res=null},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.multipleSelection=[],e.activeOptions=[],e.code=[],e.res=null,t.next=7,e.remoteMethod("");case 7:e.$nextTick((function(){e.tableData&&0<e.tableData.length&&(e.list=JSON.parse(JSON.stringify(e.tableData)),e.list.map((function(e){return e.companyNo="",e.company_name="",e.company_license="",e.bankNo="",e.bank_name="",e})))})),e.loading=!1;case 9:case"end":return t.stop()}}),t)})))()},batchSet:function(){var e=this;this.multipleSelection&&0===this.multipleSelection.length?this.$message.warning("请选择采购单!"):this.code&&0===this.code.length?this.$message.warning("请选择开票信息!"):this.multipleSelection.forEach((function(t){var a=e.list.findIndex((function(e){return e.cgdNO===t.cgdNO}));-1!==a&&(e.list[a].companyNo=e.res.companyNo,e.list[a].company_name=e.res.company_name,e.list[a].company_license=e.res.company_license,e.list[a].bankNo=e.res.bankNo,e.list[a].bank_name=e.res.bank_name,e.$set(e.list,a,e.list[a]))}))},saveSet:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){var a,r,i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a=!0,r={cgd:[]},e.list.forEach((function(e){var t={cgdNo:e.sequenceNo,companyNo:e.companyNo};e.companyNo&&""!==e.companyNo||(a=!1),r.cgd.push(t)})),a){t.next=8;break}return e.$message.warning("部分采购单未设置开票信息!"),t.abrupt("return");case 8:return e.loading=!0,t.next=11,n.a.inv(r);case 11:if(!(i=t.sent)||0!==i.code||!i.data){t.next=19;break}e.$notify.success({title:"设置成功!",message:""}),e.showModelThis=!1,e.$emit("refresh"),t.next=25;break;case 19:if(i&&100<=i.code&&i.code<=104)return t.next=22,e.logout();t.next=24;break;case 22:t.next=25;break;case 24:e.$message.warning(i.message);case 25:e.loading=!1;case 26:case"end":return t.stop()}}),t)})))()}}};a("5604"),a=a("2877"),a=Object(a.a)(i,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:e.title,center:!0,align:"left",top:"12vh",width:"1024px","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:e.closeModel}},[a("el-card",{staticClass:"add",staticStyle:{"margin-top":"-25px"}},[a("el-row",[a("el-col",{attrs:{span:18}},[a("el-form",{ref:"ruleForm",attrs:{size:"small","label-width":"100px"}},[a("el-form-item",{attrs:{size:"small",label:"开票信息:"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{multiple:"",filterable:"",size:"small",remote:"","multiple-limit":1,"reserve-keyword":"",placeholder:"开票信息"},on:{change:e.selectChange},model:{value:e.code,callback:function(t){e.code=t},expression:"code"}},e._l(e.activeOptions,(function(e){return a("el-option",{key:e.companyNo,attrs:{label:e.companyNo+"--------"+e.company_name,value:e.companyNo}})})),1)],1)],1)],1),a("el-col",{attrs:{span:6}},[a("el-button",{staticClass:"fl",staticStyle:{margin:"0 0 0 10px"},attrs:{type:"primary",size:"small"},on:{click:e.batchSet}},[e._v("批量设置")]),a("el-button",{staticClass:"fr",attrs:{type:"primary",size:"small"},on:{click:e.saveSet}},[e._v("保存设置")])],1),null===e.res?a("el-col",{attrs:{span:24}}):a("el-col",{attrs:{span:24}},[a("el-form",{ref:"ruleForm3",attrs:{size:"mini","label-width":"100px"}},[a("el-row",[a("el-col",{attrs:{span:7}},[a("el-form-item",{attrs:{size:"mini",label:"纳税人识别号:"}},[a("p",[e._v(e._s(e.res.company_license))])])],1),a("el-col",{attrs:{span:7}},[a("el-form-item",{attrs:{size:"mini",label:"银行卡号:"}},[a("p",[e._v(e._s(e.res.bankNo))])])],1),a("el-col",{attrs:{span:10}},[a("el-form-item",{attrs:{size:"mini",label:"银行名称:"}},[a("p",[e._v(e._s(e.res.bank_name))])])],1)],1)],1)],1)],1),a("div",{staticStyle:{heigth:"80px"}}),a("el-table",e._g({ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:e.list,stripe:"",border:"",size:"mini","max-height":"450px","row-key":"cgdNO","tooltip-effect":"dark"},on:{"selection-change":e.handleSelectionChange}},e.$listeners),[a("el-table-column",{attrs:{type:"selection",width:"50",fixed:"left",align:"center"}}),a("el-table-column",{attrs:{prop:"cgdNO","show-overflow-tooltip":"",label:"采购单编号",width:"150"}}),a("el-table-column",{attrs:{prop:"name","show-overflow-tooltip":"",label:"供货商",width:"180"}}),a("el-table-column",{attrs:{prop:"contector","show-overflow-tooltip":"",label:"联系人",width:"70"}}),a("el-table-column",{attrs:{label:"开票信息"}},[a("el-table-column",{attrs:{prop:"companyNo","show-overflow-tooltip":"",label:"编码",width:"170"}}),a("el-table-column",{attrs:{prop:"company_name","show-overflow-tooltip":"",label:"公司名称",width:"170"}}),a("el-table-column",{attrs:{prop:"company_license","show-overflow-tooltip":"",label:"纳税人识别号",width:"155"}}),a("el-table-column",{attrs:{prop:"bank_name","show-overflow-tooltip":"",label:"银行名称",width:"170"}}),a("el-table-column",{attrs:{prop:"bankNo","show-overflow-tooltip":"",label:"银行卡号",width:"145"}})],1),a("el-table-column",{attrs:{label:"操作",fixed:"right",width:"50"},scopedSlots:e._u([{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.deleteRow(t.$index,e.list)}}})])]}}])})],1)],1)],1)}),[],!1,null,"91f1ed62",null);t.default=a.exports},"8ecf":function(e,t,a){"use strict";a("14d7")},"8ef8":function(e,t,a){"use strict";a.r(t);var r=a("1da1"),n=a("ade3"),i=(a("96cf"),a("fb6a"),a("a434"),a("e9c4"),a("d3b7"),a("159b"),a("c740"),a("99af"),a("a15b"),a("d81d"),a("ac1f"),a("5319"),a("b97c")),o=a("ffe4"),s=a("17d7"),l=a("9f53"),c=a("52a0"),u=a("61f7");o={name:"invoiceApply",props:["showModel","id","isDetail","newTime","invNo","status"],components:{orderChangeDialog:o.a,goodChangeDialog:c.default,capitalChangeDialog:s.a},mixins:[l.a],data:function(){var e=this,t={disableds:!1,modelId:"",showOrderModel:!1,showCapitalModel:!1,cwRes:null,invoiceList:[],tableData:[],capitalTableData:[],activeIndex:0,activeItem:null,showGoodChangeModel:!1,remark:"",exam_remark:"",step:1,selectLoading:!1,selectLoading2:!1,loading:!1,title:"添加发票申请",schange:"1",soptins:[{code:"1",name:"区-固-分"},{code:"2",name:"区-固"},{code:"3",name:"固-分"},{code:"4",name:"固"},{code:"5",name:"手机号"}],invioceType:[{id:"1",name:"增值税专用发票"},{id:"2",name:"增值税普通发票"},{id:"3",name:"增值税电子专用发票"},{id:"4",name:"增值税电子普通发票"}],billType:[{id:"1",name:"订单开票"},{id:"2",name:"资金开票-资金未认领"},{id:"3",name:"资金开票-资金已认领"}],formValue:{company:"",page:1,size:100},showModelThis:this.showModel,select:"1",activeOptions:[],activeOptions2:[],actionList:[],ruleForm1:{companyNo:[],inv_type:"",inv_add:"0",invoice_title:[],invoice_code:"",invoice_bank:"",invoice_bankNo:"",invoice_addr:"",inv_out:"",invoice_mobile:"",type:"",total:0,remark:""},rulesThis:this.rules1,rules1:{companyNo:[{required:!0,message:"请选择申请企业",trigger:"change"}],inv_out:[{required:!0,message:"请选择销售方开票信息",trigger:"change"}],inv_add:[{required:!0,message:"请选择发票抬头类型",trigger:"change"}],userid:[{required:!0,message:"请选择数据源用户",trigger:"change"}],touserid:[{required:!0,message:"请选择数据共享用户",trigger:"change"}],inv_type:[{required:!0,message:"请选择发票类型",trigger:"change"}],type:[{required:!0,message:"请选择开票类型",trigger:"change"}],invoice_title:[{required:!0,message:"请选择发票抬头",trigger:"change"}],invoice_code:[{required:!0,validator:function(e,t,a){""!==t?Object(u.f)(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,i;""!==a?"1"===e.schange?Object(u.k)(a)?r():r(new Error("规则为区号[0+2~3位]-固定电话[7~8位]-分机号[1~6位]!")):"2"===e.schange?Object(u.j)(a)?r():r(new Error("规则为区号[0+2~3位]-固定电话[7~8位]!")):"3"===e.schange?Object(u.m)(a)?r():r(new Error("规则为固定电话[7~8位]-分机号[1~6位]!")):"4"===e.schange?Object(u.l)(a)?r():3<a.length&&(n=a.slice(0,3),i=a.slice(3),"400"!==n&&"800"!==n||7!==i.length?r(new Error("纯固定电话规则为[7~8位]或10位!")):r()):Object(u.g)(a)?r():r(new Error("手机号格式不正确!")):r(new Error("请输入联系电话!"))},trigger:"blur"}],total:[{required:!1,message:"请输入发票总额",trigger:"blur"}],remark:[{required:!1,message:"请输入备注",trigger:"blur"}]},dataForm:{name:"",status:""}};return Object(n.a)(t,"activeOptions",[]),Object(n.a)(t,"groupallList",[]),Object(n.a)(t,"multipleSelection",[]),t},watch:{newTime:function(e,t){e!==t&&this.initForm()}},mounted:function(){this.initForm()},methods:{editRow:function(e){this.activeIndex=e,this.activeItem=this.tableData[e],this.showGoodChangeModel=!0},deleteRow:function(e,t){t.splice(e,1)},goodChangeEnd:function(e){var t,a,r;e&&(t=e.remark,a=e.total_fee,r=e.good_num,e=e.unit,this.tableData[this.activeIndex].remark=t,this.tableData[this.activeIndex].total_fee=a,this.tableData[this.activeIndex].good_num=r,this.tableData[this.activeIndex].unit=e)},selectChangeMobile:function(){this.$refs.ruleForm1.validateField("invoice_mobile")},invAddChange:function(){"1"===this.ruleForm1.inv_add&&(this.ruleForm1.invoice_title="",this.setcwRes(),this.setform1())},orderRefresh:function(e){var t=this,a=JSON.parse(JSON.stringify(this.tableData));e.forEach((function(e){var t=a.findIndex((function(t){return t.sequenceNo===e.sequenceNo&&t.orderNo===e.orderNo}));-1<t&&a.splice(t,1)})),this.tableData=[].concat(a).concat(e),this.tableData.forEach((function(e,a){t.$set(t.tableData,a,e)}))},capitalRefresh:function(e){var t=this,a=JSON.parse(JSON.stringify(this.capitalTableData));e.forEach((function(e){var t=a.findIndex((function(t){return t.sequenceNo===e.sequenceNo&&t.orderNo===e.orderNo}));-1<t&&a.splice(t,1)})),this.capitalTableData=[].concat(a).concat(e),this.capitalTableData.forEach((function(e,a){t.$set(t.capitalTableData,a,e)}))},openModal:function(e){var t=JSON.parse(JSON.stringify(this.ruleForm1.companyNo));this.modelId=t.join(","),1===e?this.showOrderModel=!0:this.showCapitalModel=!0},closeModel:function(){},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.step=1,e.remark="",e.exam_remark="",e.loading=!0,e.cwRes=null,e.disableds="003"!==e.isDetail&&"005"!==e.isDetail,e.tableData=[],t.next=9,e.getCompanylist();case 9:if("003"===e.isDetail)return e.title="添加发票申请",e.rulesThis=e.rules1,t.next=14,e.resetForm();t.next=16;break;case 14:t.next=23;break;case 16:return"005"==e.isDetail?(e.title="发票申请详情",e.rulesThis=e.rules1):"007"===e.isDetail&&(e.title="修改发票申请",e.rulesThis={}),t.next=21,e.resetForm();case 21:return t.next=23,e.initData();case 23:e.loading=!1;case 24:case"end":return t.stop()}}),t)})))()},getCompanylist: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.invoiceList=[],t.next=3,i.a.companylist({page:1,size:30});case 3:if(!((a=t.sent)&&0===a.code&&a.data&&a.data.list)){t.next=8;break}e.invoiceList=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.invoiceList=[];case 14:case"end":return t.stop()}}),t)})))()},selectChange: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(a=JSON.parse(JSON.stringify(e.ruleForm1.companyNo)),""!==(a=a.join(","))){t.next=7;break}e.cwRes=null,e.setform1(),t.next=9;break;case 7:return t.next=9,e.getCaiwu(a);case 9:e.tableData=[],e.capitalTableData=[];case 11:case"end":return t.stop()}}),t)})))()},selectChange2: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(a=JSON.parse(JSON.stringify(e.ruleForm1.invoice_title)),""===(r=a.join(",")))e.cwRes=null,e.setform1();else if(-1!==(n=e.activeOptions2.findIndex((function(e){return e.id+""==r+""}))))for(i in e.setcwRes(),e.cwRes)e.cwRes[i]=e.activeOptions2[n][i]?e.activeOptions2[n][i]+"":"","invoice_title"!==i&&"companyNo"!==i&&(e.ruleForm1[i]=e.activeOptions2[n][i]?e.activeOptions2[n][i]+"":""),e.setTypeM(e.ruleForm1.invoice_mobile),e.validateFormField();else e.cwRes=null,e.setform1();case 3:case"end":return t.stop()}}),t)})))()},setform1:function(){"1"===this.ruleForm1.inv_add?this.ruleForm1.invoice_title=[]:this.ruleForm1.invoice_title="",this.ruleForm1.invoice_code="",this.ruleForm1.invoice_bank="",this.ruleForm1.invoice_bankNo="",this.ruleForm1.invoice_addr="",this.ruleForm1.invoice_mobile="",this.validateFormField()},validateFormField:function(){this.$refs.ruleForm1&&(this.$refs.ruleForm1.validateField("invoice_title"),this.$refs.ruleForm1.validateField("invoice_code"),this.$refs.ruleForm1.validateField("invoice_bank"),this.$refs.ruleForm1.validateField("invoice_bankNo"),this.$refs.ruleForm1.validateField("invoice_addr"),this.$refs.ruleForm1.validateField("invoice_mobile"))},setcwRes:function(){this.cwRes={id:"",companyNo:"",companyName:"",invoice_title:"",invoice_code:"",invoice_bank:"",invoice_bankNo:"",invoice_addr:"",invoice_mobile:""}},getCaiwu:function(e){var t=this;return Object(r.a)(regeneratorRuntime.mark((function a(){var r,n,o;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,i.a.cwlist({companyNo:e});case 2:if(!(r=a.sent)||0!==r.code||!r.data){a.next=11;break}for(o in n=r.data,t.setcwRes(),t.cwRes)t.cwRes[o]=n[o]?n[o]+"":"","invoice_title"===o||"companyNo"===o?t.ruleForm1.invoice_title=[n.companyNo]:t.ruleForm1[o]=n[o]?n[o]+"":"",t.setTypeM(t.ruleForm1.invoice_mobile),t.validateFormField();t.activeOptions2=[n],t.ruleForm1.invoice_title=[n.id],a.next=19;break;case 11:if(r&&100<=r.code&&r.code<=104)return a.next=14,t.logout();a.next=16;break;case 14:a.next=19;break;case 16:t.cwRes=null,t.$message.warning(r.message),t.setform1();case 19:case"end":return a.stop()}}),a)})))()},getCaiwu2:function(e){var t=this;return Object(r.a)(regeneratorRuntime.mark((function a(){var r,n,o;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,i.a.cwlist({name:e});case 2:if(!(r=a.sent)||0!==r.code||!r.data){a.next=9;break}for(o in n=r.data,t.setcwRes(),t.cwRes)t.cwRes[o]=n[o]?n[o]+"":"","invoice_title"===o||"companyNo"===o?t.ruleForm1.invoice_title=[n.companyNo]:t.ruleForm1[o]=n[o]?n[o]+"":"",t.validateFormField();a.next=17;break;case 9:if(r&&100<=r.code&&r.code<=104)return a.next=12,t.logout();a.next=14;break;case 12:a.next=17;break;case 14:t.cwRes=null,t.setform1(),t.$message.warning(r.message);case 17:case"end":return a.stop()}}),a)})))()},remoteMethod: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.selectLoading=!0,""!==e)return t.activeOptions=[],t.formValue.company=e,a.next=6,i.a.clist(t.formValue);a.next=19;break;case 6:if(!((r=a.sent)&&0===r.code&&r.data&&r.data.list)){a.next=11;break}t.activeOptions=r.data.list,a.next=17;break;case 11:if(r&&100<=r.code&&r.code<=104)return a.next=14,t.logout();a.next=16;break;case 14:a.next=17;break;case 16:t.$message.warning(r.message);case 17:a.next=20;break;case 19:t.activeOptions=[];case 20:t.selectLoading=!1;case 21:case"end":return a.stop()}}),a)})))()},remoteMethod2: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.selectLoading2=!0,""!==e)return t.activeOptions2=[],a.next=5,i.a.invoicelist({name:e});a.next=18;break;case 5:if(!(r=a.sent)||0!==r.code||!r.data){a.next=10;break}t.activeOptions2=r.data,a.next=16;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=16;break;case 15:t.$message.warning(r.message);case 16:a.next=19;break;case 18:t.activeOptions2=[];case 19:t.selectLoading2=!1;case 20:case"end":return a.stop()}}),a)})))()},initData:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){var a,r,n,o,s,l,c,u,d,p,m,f,h,b,g,w,v,x;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,i.a.detail({id:e.id});case 2:if(!((a=t.sent)&&0===a.code&&a.data&&a.data.customer&&a.data.customer.companyNo)){t.next=20;break}v=a.data,r=v.invoice_title,n=v.invoice_code,o=v.invoice_bank,s=v.invoice_bankNo,l=v.invoice_addr,c=v.invoice_mobile,u=v.inv_type,d=v.type_check,p=v.customer,m=v.inv_value,f=v.remark,h=v.inv_add,b=v.exam_remark,g=v.order,w=v.trade,v=v.inv_out,x=p.companyNo,e.cwRes={id:"0",companyNo:"0",companyName:"0",invoice_title:r,invoice_code:n,invoice_bank:o,invoice_bankNo:s,invoice_addr:l,invoice_mobile:c},e.ruleForm1={companyNo:[x],inv_type:u?parseInt(u)+"":"",type:d?parseInt(d)+"":"",total:m,remark:f,inv_add:h,inv_out:v,invoice_title:[r],invoice_code:n,invoice_bank:o,invoice_bankNo:s,invoice_addr:l,invoice_mobile:c},e.activeOptions=[p],e.remark=f,e.exam_remark=b,e.setTypeM(c),e.disableds||e.changetype(e.ruleForm1.type),(x=g&&g.good&&0<g.good.length?JSON.parse(JSON.stringify(g.good)):[]).map((function(e){return e.sequenceNo=e.goodNo,e.goodname=e.good_name,e.over_num=parseInt(e.num)-parseInt(e.inv_num),e})),e.tableData=x,e.capitalTableData=w,e.capitalTableData.forEach((function(t,a){t.customer=t.companyName,e.$set(e.capitalTableData,a,t)})),t.next=26;break;case 20:if(a&&100<=a.code&&a.code<=104)return t.next=23,e.logout();t.next=25;break;case 23:t.next=26;break;case 25:e.$message.warning(a.message);case 26:case 27:case"end":return t.stop()}}),t)})))()},changetype:function(e){this.rulesThis&&this.rulesThis.total&&this.rulesThis.remark&&(1===e?(this.rulesThis.total[0].required=!1,this.rulesThis.remark[0].required=!1):(this.rulesThis.total[0].required=!0,this.rulesThis.remark[0].required=!0))},setTypeM:function(e){Object(u.g)(e)?this.schange="5":Object(u.k)(e)?this.schange="1":Object(u.j)(e)?this.schange="2":Object(u.m)(e)?this.schange="3":this.schange="4"},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.ruleForm1&&(e.$refs.ruleForm1.resetFields(),e.$refs.ruleForm1.clearValidate(),e.cwRes=null,e.ruleForm1={companyNo:[],inv_type:"",type:"",inv_add:"0",total:0,remark:"",invoice_title:[],invoice_code:"",invoice_bank:"",invoice_bankNo:"",invoice_addr:"",invoice_mobile:""})}));case 2:case"end":return t.stop()}}),t)})))()},submitForm1: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.ruleForm1.validate(function(){var t=Object(r.a)(regeneratorRuntime.mark((function t(a){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!a){t.next=9;break}if("2"===e.ruleForm1.type)return t.next=4,e.mAddOrUpdate();t.next=6;break;case 4:t.next=7;break;case 6:e.step=2;case 7:t.next=11;break;case 9:return t.abrupt("return",!1);case 11:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()},submitForm2:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){var a,r,n,o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.loading){t.next=40;break}if(0===e.capitalTableData.length)return e.$message.warning("请选择资金!"),t.abrupt("return");t.next=4;break;case 4:return a=[],e.capitalTableData.forEach((function(e){a.push(e.traNo)})),t.next=8,e.setInputForm(1);case 8:if((r=t.sent).traNo=a,delete r.total,delete r.good,e.loading=!0,n={},"add"===e.id)return delete r.invNo,t.next=19,i.a.receiptbytrade(r);t.next=22;break;case 19:n=t.sent,t.next=27;break;case 22:return delete r.traNo,delete r.inv_type,t.next=26,i.a.editbytrade(r);case 26:n=t.sent;case 27:if(e.loading=!1,!n||0!==n.code){t.next=34;break}o="add"===e.id?"添加成功":"修改成功",e.$notify.success({title:o,message:""}),e.$emit("refreshAll"),t.next=40;break;case 34:if(n&&100<=n.code&&n.code<=104)return t.next=37,e.logout();t.next=39;break;case 37:t.next=40;break;case 39:e.$message.warning(n.message);case 40:case"end":return t.stop()}}),t)})))()},mAddOrUpdate: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){t.next=32;break}return e.loading=!0,t.next=4,e.setInputForm();case 4:if(delete(a=t.sent).traNo,delete a.good,r={},"add"===e.id)return delete a.invNo,t.next=13,i.a.madd(a);t.next=16;break;case 13:r=t.sent,t.next=19;break;case 16:return t.next=18,i.a.mupdate(a);case 18:r=t.sent;case 19:if(e.loading=!1,!r||0!==r.code){t.next=26;break}n="add"===e.id?"添加成功":"修改成功",e.$notify.success({title:n,message:""}),e.$emit("refreshAll"),t.next=32;break;case 26:if(r&&100<=r.code&&r.code<=104)return t.next=29,e.logout();t.next=31;break;case 29:t.next=32;break;case 31:e.$message.warning(r.message);case 32:case"end":return t.stop()}}),t)})))()},submitForm:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){var a,r,n,o,s,l;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.loading){t.next=45;break}if(0===e.tableData.length)return e.$message.warning("请选择确认单商品"),t.abrupt("return");t.next=4;break;case 4:return a=JSON.parse(JSON.stringify(e.tableData)),n=r=!0,t.next=9,e.setInputForm(1);case 9:if(delete(o=t.sent).traNo,delete o.total,a.forEach((function(e){0===e.good_num&&(r=!1),0===e.total_fee&&(r=!1),""!==e.unit&&void 0!==e.unit&&null!==e.unit||(r=!1);var t=e.remark.replace(/\s*/g,"");""===t&&(n=!1),t={sequenceNo:e.sequenceNo,remark:t,total_fee:e.total_fee,num:e.good_num,unit:e.unit};o.good.push(t)})),r){t.next=17;break}return e.$message.error("商品数量/商品总额不能为0,商品单位不能为空!"),t.abrupt("return");case 17:if(n){t.next=20;break}return e.$message.error("开票商品名不能为空!"),t.abrupt("return");case 20:if(e.loading=!0,s={},"add"===e.id)return delete o.invNo,t.next=26,i.a.oadd(o);t.next=29;break;case 26:s=t.sent,t.next=32;break;case 29:return t.next=31,i.a.oupdate(o);case 31:s=t.sent;case 32:if(e.loading=!1,!s||0!==s.code){t.next=39;break}l="add"===e.id?"添加成功":"修改成功",e.$notify.success({title:l,message:""}),e.$emit("refreshAll"),t.next=45;break;case 39:if(s&&100<=s.code&&s.code<=104)return t.next=42,e.logout();t.next=44;break;case 42:t.next=45;break;case 44:e.$message.warning(s.message);case 45:case"end":return t.stop()}}),t)})))()},setInputForm:function(e){var t=this;return Object(r.a)(regeneratorRuntime.mark((function a(){var r,n,i,o,s,l,c,u,d,p,m,f;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return m=JSON.parse(JSON.stringify(t.ruleForm1)),r=m.inv_add,f=m.companyNo,n=m.inv_type,i=m.inv_out,o=m.total,s=m.remark,l=m.invoice_title,c=m.invoice_code,u=m.invoice_bank,d=m.invoice_bankNo,p=m.invoice_addr,m=m.invoice_mobile,f={invNo:t.invNo,traNo:[],inv_add:r,companyNo:f.join(),inv_type:n+"",inv_out:i,total:o+"",remark:e?t.remark:s+"",invoice_title:"0"==r?t.cwRes.invoice_title:l,invoice_code:c,good:[],invoice_bank:u,invoice_bankNo:d,invoice_addr:p,invoice_mobile:m},a.abrupt("return",f);case 3:case"end":return a.stop()}}),a)})))()}}},a("c723"),c=a("2877"),s=Object(c.a)(o,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-row",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{gutter:10}},[1===e.step?a("el-col",{attrs:{span:24}},[a("el-form",{ref:"ruleForm1",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm1,rules:e.rulesThis,"label-width":"110px"}},[a("el-row",[a("el-col",{attrs:{span:13}},[a("el-form-item",{attrs:{label:"申请公司",prop:"companyNo"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{multiple:"",filterable:"",remote:"",disabled:e.disableds,"multiple-limit":1,"reserve-keyword":"",size:e.searchSize,placeholder:"公司名称搜索","remote-method":e.remoteMethod,loading:e.selectLoading},on:{change:function(t){return e.selectChange(t,!1)}},model:{value:e.ruleForm1.companyNo,callback:function(t){e.$set(e.ruleForm1,"companyNo",t)},expression:"ruleForm1.companyNo"}},e._l(e.activeOptions,(function(e){return a("el-option",{key:e.companyNo,attrs:{label:e.companyName,value:e.companyNo}})})),1)],1)],1),a("el-col",{attrs:{span:11}},[a("el-form-item",{attrs:{label:"发票抬头类型",prop:"inv_add"}},[a("el-radio-group",{attrs:{disabled:e.disableds},on:{change:e.invAddChange},model:{value:e.ruleForm1.inv_add,callback:function(t){e.$set(e.ruleForm1,"inv_add",t)},expression:"ruleForm1.inv_add"}},[a("el-radio",{attrs:{label:"0",disabled:e.disableds}},[e._v("使用已有发票抬头")]),a("el-radio",{attrs:{label:"1",disabled:e.disableds}},[e._v("新建发票抬头")])],1)],1)],1),a("el-col",{attrs:{span:24}},[a("el-col",{attrs:{span:13}},[a("el-form-item",{attrs:{label:"发票抬头",prop:"invoice_title"}},["0"===e.ruleForm1.inv_add?a("el-select",{staticStyle:{width:"100%"},attrs:{multiple:"",filterable:"",remote:"",disabled:e.disableds,"multiple-limit":1,"reserve-keyword":"",size:e.searchSize,placeholder:"发票抬头搜索","remote-method":e.remoteMethod2,loading:e.selectLoading2},on:{change:e.selectChange2},model:{value:e.ruleForm1.invoice_title,callback:function(t){e.$set(e.ruleForm1,"invoice_title",t)},expression:"ruleForm1.invoice_title"}},e._l(e.activeOptions2,(function(e){return a("el-option",{key:e.id,attrs:{label:e.invoice_title,value:e.id}})})),1):a("el-input",{attrs:{disabled:e.disableds,placeholder:"请输入发票抬头"},model:{value:e.ruleForm1.invoice_title,callback:function(t){e.$set(e.ruleForm1,"invoice_title",t)},expression:"ruleForm1.invoice_title"}})],1)],1),a("el-col",{attrs:{span:11}},[a("el-form-item",{attrs:{label:"纳税登记证号",prop:"invoice_code"}},[a("el-input",{attrs:{disabled:"0"===e.ruleForm1.inv_add||e.disableds,placeholder:"请输入纳税登记证号"},model:{value:e.ruleForm1.invoice_code,callback:function(t){e.$set(e.ruleForm1,"invoice_code",t)},expression:"ruleForm1.invoice_code"}})],1)],1),a("el-col",{attrs:{span:13}},[a("el-form-item",{attrs:{label:"开户银行名称",prop:"invoice_bank"}},[a("el-input",{attrs:{disabled:e.disableds,placeholder:"请输入开户银行名称"},model:{value:e.ruleForm1.invoice_bank,callback:function(t){e.$set(e.ruleForm1,"invoice_bank",t)},expression:"ruleForm1.invoice_bank"}})],1)],1),a("el-col",{attrs:{span:11}},[a("el-form-item",{attrs:{label:"开户银行账号",prop:"invoice_bankNo"}},[a("el-input",{attrs:{disabled:e.disableds,placeholder:"请输入开户银行账号"},model:{value:e.ruleForm1.invoice_bankNo,callback:function(t){e.$set(e.ruleForm1,"invoice_bankNo",t)},expression:"ruleForm1.invoice_bankNo"}})],1)],1),a("el-col",{attrs:{span:13}},[a("el-form-item",{attrs:{label:"纳税登记地址",prop:"invoice_addr"}},[a("el-input",{attrs:{disabled:e.disableds,placeholder:"请输入纳税登记地址"},model:{value:e.ruleForm1.invoice_addr,callback:function(t){e.$set(e.ruleForm1,"invoice_addr",t)},expression:"ruleForm1.invoice_addr"}})],1)],1),a("el-col",{attrs:{span:11}},[a("el-form-item",{attrs:{label:"联系电话",prop:"invoice_mobile"}},[a("el-input",{attrs:{disabled:e.disableds,placeholder:"请输入联系电话"},model:{value:e.ruleForm1.invoice_mobile,callback:function(t){e.$set(e.ruleForm1,"invoice_mobile",t)},expression:"ruleForm1.invoice_mobile"}},[a("el-select",{staticStyle:{width:"100px"},attrs:{slot:"prepend",placeholder:"请选择"},on:{change:e.selectChangeMobile},slot:"prepend",model:{value:e.schange,callback:function(t){e.schange=t},expression:"schange"}},e._l(e.soptins,(function(e){return a("el-option",{key:e.code+"indexs",attrs:{label:e.name,value:e.code}})})),1)],1)],1)],1)],1),a("el-col",{attrs:{span:13}},[a("el-form-item",{attrs:{label:"发票类型",prop:"inv_type"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{clearable:"",disabled:e.disableds,placeholder:"请选择发票类型"},model:{value:e.ruleForm1.inv_type,callback:function(t){e.$set(e.ruleForm1,"inv_type",t)},expression:"ruleForm1.inv_type"}},e._l(e.invioceType,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),a("el-col",{attrs:{span:11}},[a("el-form-item",{attrs:{label:"开票类型",prop:"type"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{disabled:"003"!==e.isDetail,placeholder:"请选择开票类型"},on:{change:e.changetype},model:{value:e.ruleForm1.type,callback:function(t){e.$set(e.ruleForm1,"type",t)},expression:"ruleForm1.type"}},e._l(e.billType,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"销售方开票信息","label-width":"125px",prop:"inv_out"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{disabled:e.disableds,placeholder:"请选择销售方开票信息"},model:{value:e.ruleForm1.inv_out,callback:function(t){e.$set(e.ruleForm1,"inv_out",t)},expression:"ruleForm1.inv_out"}},e._l(e.invoiceList,(function(e){return a("el-option",{key:e.companyNo,attrs:{label:e.company_name,value:e.companyNo}})})),1)],1)],1),"2"===e.ruleForm1.type?a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"开票总金额",prop:"total"}},[a("el-input-number",{staticStyle:{width:"100%"},attrs:{"step-strictly":"","controls-position":"right",disabled:e.disableds,precision:2,step:.01,min:0,max:1e12},model:{value:e.ruleForm1.total,callback:function(t){e.$set(e.ruleForm1,"total",t)},expression:"ruleForm1.total"}})],1)],1):e._e(),"2"===e.ruleForm1.type?a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"备注",prop:"remark"}},[a("el-input",{attrs:{disabled:e.disableds,type:"textarea",maxlength:"250","show-word-limit":"",autosize:{minRows:6,maxRows:6},placeholder:"请输入商品明细要求: 商品分类,型号等信息"},model:{value:e.ruleForm1.remark,callback:function(t){e.$set(e.ruleForm1,"remark",t)},expression:"ruleForm1.remark"}})],1)],1):e._e(),a("el-col",{attrs:{span:24}},[a("el-row",["2"===e.status?a("el-col",{attrs:{span:20}},[a("el-alert",{attrs:{title:"财务驳回理由:",type:"error",closable:!1,description:e.exam_remark,"show-icon":""}})],1):e._e(),a("el-col",{staticStyle:{"text-align":"right"},attrs:{span:"2"===e.status?4:24}},["2"!==e.ruleForm1.type?a("el-button",{attrs:{type:"primary"},on:{click:e.submitForm1}},[e._v("下一步"),a("i",{staticClass:"el-icon-arrow-right el-icon--right"})]):e._e(),e.disableds||"2"!==e.ruleForm1.type?e._e():a("el-button",{attrs:{type:"primary"},on:{click:e.submitForm1}},[e._v("保 存 ")])],1)],1)],1)],1)],1)],1):1!==e.step&&"1"===e.ruleForm1.type?a("el-col",{attrs:{span:24}},[a("el-row",[a("el-col",{staticStyle:{padding:"0 12px 8px 0"},attrs:{span:"003"!==e.isDetail?24:21}},[a("el-alert",{attrs:{title:"特别提示:请注意商品未核销数量/发票未核销金额。若此次核销的数量等于未核销数量,不论此次总金额核销后,发票未核销金额是否为0,都不能再使用该商品核销!发票核销总金额同理。",type:"error",closable:!1,"show-icon":""}})],1),"003"===e.isDetail?a("el-col",{staticClass:"tr",staticStyle:{padding:"11px 0 8px 0"},attrs:{span:3}},[a("el-button",{staticClass:"fr",attrs:{type:"primary",size:"small"},on:{click:function(t){return e.openModal(1)}}},[e._v("添加产品确认单")])],1):e._e(),a("el-col",{attrs:{span:24}},[a("el-table",{staticStyle:{width:"100%"},attrs:{size:"mini",data:e.tableData,stripe:"","highlight-current-row":"","max-height":"380",border:""}},[a("el-table-column",{attrs:{label:"产品编号",prop:"goodNo","show-overflow-tooltip":"",width:"155",fixed:"left"}}),a("el-table-column",{attrs:{label:"商品名称",prop:"goodname","show-overflow-tooltip":"","min-width":"120"}}),a("el-table-column",{attrs:{label:"开票商品名",width:"160",prop:"remark","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{label:"品牌",prop:"brand",width:"80","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{label:"单位",prop:"unit",width:"80","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{label:"单价",width:"90",prop:"price"}}),a("el-table-column",{attrs:{label:"数量",align:"center"}},[a("el-table-column",{attrs:{label:"总计",width:"70",prop:"num"}}),a("el-table-column",{attrs:{label:"已核销",width:"70",prop:"inv_num"}}),a("el-table-column",{attrs:{label:"未核销",width:"70",prop:"over_num"}}),a("el-table-column",{attrs:{label:"此次核销",width:"70",prop:"good_num"}})],1),a("el-table-column",{attrs:{label:"总价",width:"105",prop:"total","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{label:"关联发票信息",align:"center"}},[a("el-table-column",{attrs:{label:"已核销金额",width:"100",prop:"ainv_fee","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{label:"未核销金额",width:"100",prop:"winv_fee","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{label:"此次核销金额",width:"100",prop:"total_fee"}})],1),"003"===e.isDetail||"005"===e.isDetail?a("el-table-column",{attrs:{fixed:"right",label:"操作",width:"80"},scopedSlots:e._u([{key:"default",fn:function(t){return["003"===e.isDetail||"005"===e.isDetail?a("el-tooltip",{attrs:{effect:"dark",content:"编辑",placement:"top"}},["003"===e.isDetail||"005"===e.isDetail?a("i",{staticClass:"el-icon-edit tb-icon",on:{click:function(a){return e.editRow(t.$index)}}}):e._e()]):e._e(),"003"===e.isDetail?a("el-tooltip",{attrs:{effect:"dark",content:"删除",placement:"top"}},["003"===e.isDetail?a("i",{staticClass:"el-icon-delete tb-icon",on:{click:function(a){return e.deleteRow(t.$index,e.tableData)}}}):e._e()]):e._e()]}}],null,!1,1227095925)}):e._e()],1)],1),a("el-col",{staticStyle:{padding:"10px 0 0 0"},attrs:{span:24}},[a("el-input",{attrs:{disabled:e.disableds,type:"textarea",maxlength:"250","show-word-limit":"",autosize:{minRows:3,maxRows:3},placeholder:"请输入其他要求"},model:{value:e.remark,callback:function(t){e.remark=t},expression:"remark"}})],1),a("el-col",{staticStyle:{padding:"10px 0 0 0"},attrs:{span:24}},[a("el-row",["2"===e.status?a("el-col",{attrs:{span:19}},[a("el-alert",{attrs:{title:"财务驳回理由:",type:"error",closable:!1,description:e.exam_remark,"show-icon":""}})],1):e._e(),a("el-col",{staticClass:"tr",attrs:{span:"2"===e.status?5:24}},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.step=1}}},[a("i",{staticClass:"el-icon-arrow-left el-icon--left"}),e._v("上一步")]),e.disableds?e._e():a("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("保 存 ")])],1)],1)],1)],1),a("order-change-dialog",{attrs:{id:e.modelId,trade_status:"",inv_status:"4","is-detail":e.isDetail,"show-model":e.showOrderModel},on:{refresh:e.orderRefresh,cancel:function(t){e.showOrderModel=!1}}}),a("good-change-dialog",{attrs:{"show-model":e.showGoodChangeModel,item:e.activeItem,"is-detail":e.isDetail},on:{refresh:e.goodChangeEnd,cancel:function(t){e.showGoodChangeModel=!1}}})],1):1!==e.step&&"3"===e.ruleForm1.type?a("el-col",{attrs:{span:24}},[a("el-row",["003"===e.isDetail?a("el-col",{staticClass:"tr",staticStyle:{padding:"11px 0 8px 0"},attrs:{span:24}},[a("el-button",{staticClass:"fr",attrs:{type:"primary",size:"small"},on:{click:function(t){return e.openModal(2)}}},[e._v("添加资金")])],1):e._e(),a("el-col",{attrs:{span:24}},[a("el-table",{staticStyle:{width:"100%"},attrs:{size:"mini",data:e.capitalTableData,stripe:"","highlight-current-row":"","max-height":"380",border:""}},[a("el-table-column",{attrs:{prop:"traNo",label:"资金编号","show-overflow-tooltip":"",width:"270"}}),a("el-table-column",{attrs:{prop:"customer",label:"企业名称","show-overflow-tooltip":"","min-width":"170"}}),a("el-table-column",{attrs:{prop:"trade_out",label:"付款方","show-overflow-tooltip":"","min-width":"170"}}),a("el-table-column",{attrs:{prop:"trade_used",label:"付款备注","show-overflow-tooltip":"",width:"270"}}),a("el-table-column",{attrs:{prop:"total_fee",label:"资金总额度","show-overflow-tooltip":"","min-width":"110"}}),a("el-table-column",{attrs:{label:"关联发票信息","show-overflow-tooltip":"",align:"center"}},[a("el-table-column",{attrs:{prop:"inv_fee",label:"已核销金额","show-overflow-tooltip":"","min-width":"110"}}),a("el-table-column",{attrs:{prop:"inv_used",label:"处理中的金额","show-overflow-tooltip":"","min-width":"110"}}),a("el-table-column",{attrs:{prop:"winv_fee",label:"未核销金额","show-overflow-tooltip":"","min-width":"110"}}),a("el-table-column",{attrs:{label:"核销状态","show-overflow-tooltip":"","min-width":"95"},scopedSlots:e._u([{key:"default",fn:function(t){return["1"===t.row.inv_status?a("el-tag",{attrs:{type:"danger",size:"mini"}},[e._v("未核销")]):"2"===t.row.inv_status?a("el-tag",{attrs:{type:"warning",size:"mini"}},[e._v("部分核销")]):a("el-tag",{attrs:{type:"",size:"mini"}},[e._v("全部核销")])]}}])})],1),a("el-table-column",{attrs:{label:"关联确认单信息","show-overflow-tooltip":"",align:"center"}},[a("el-table-column",{attrs:{prop:"order_fee",label:"已核销金额","show-overflow-tooltip":"","min-width":"110"}}),a("el-table-column",{attrs:{prop:"order_used",label:"处理中的金额","show-overflow-tooltip":"","min-width":"110"}}),a("el-table-column",{attrs:{prop:"worder_fee",label:"未核销金额","show-overflow-tooltip":"","min-width":"110"}}),a("el-table-column",{attrs:{label:"核销状态","show-overflow-tooltip":"","min-width":"95"},scopedSlots:e._u([{key:"default",fn:function(t){return["1"===t.row.order_status?a("el-tag",{attrs:{type:"danger",size:"mini"}},[e._v("未核销")]):"2"===t.row.order_status?a("el-tag",{attrs:{type:"warning",size:"mini"}},[e._v("部分核销")]):a("el-tag",{attrs:{type:"",size:"mini"}},[e._v("全部核销")])]}}])})],1),a("el-table-column",{attrs:{prop:"addtime",label:"创建时间","show-overflow-tooltip":"",width:"150"}}),"003"===e.isDetail?a("el-table-column",{attrs:{fixed:"right",label:"操作",width:"50"}},[["003"===e.isDetail?a("el-tooltip",{attrs:{effect:"dark",content:"删除",placement:"top"}},["003"===e.isDetail?a("i",{staticClass:"el-icon-delete tb-icon",on:{click:function(t){return e.deleteRow(e.scope.$index,1)}}}):e._e()]):e._e()]],2):e._e()],1)],1),a("el-col",{staticStyle:{padding:"10px 0 0 0"},attrs:{span:24}},[a("el-input",{attrs:{disabled:e.disableds,type:"textarea",maxlength:"250","show-word-limit":"",autosize:{minRows:3,maxRows:3},placeholder:"请输入其他要求"},model:{value:e.remark,callback:function(t){e.remark=t},expression:"remark"}})],1),a("el-col",{staticStyle:{padding:"10px 0 0 0"},attrs:{span:24}},[a("el-row",["2"===e.status?a("el-col",{attrs:{span:19}},[a("el-alert",{attrs:{title:"财务驳回理由:",type:"error",closable:!1,description:e.exam_remark,"show-icon":""}})],1):e._e(),a("el-col",{staticClass:"tr",attrs:{span:"2"===e.status?5:24}},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.step=1}}},[a("i",{staticClass:"el-icon-arrow-left el-icon--left"}),e._v("上一步")]),e.disableds?e._e():a("el-button",{attrs:{type:"primary"},on:{click:e.submitForm2}},[e._v("保 存 ")])],1)],1)],1)],1),a("capital-change-dialog",{attrs:{id:e.modelId,order_status:"",trade_status:"",inv_status:"4",status:"3","show-model":e.showCapitalModel},on:{refresh:e.capitalRefresh,cancel:function(t){e.showCapitalModel=!1}}})],1):e._e()],1)}),[],!1,null,"3680190c",null);t.default=s.exports},"90a6":function(e,t,a){"use strict";a("0ff4")},"90ca":function(e,t,a){},9214:function(e,t,a){},9218:function(e,t,a){"use strict";a.r(t);var r=a("1da1"),n=(a("96cf"),a("c740"),{props:["showModel","id","isDetail","dstatus","payNo"],data:function(){return{active:0,dstatusOptions:[{id:"0",label:"提交申请"},{id:"1",label:"业务审核"},{id:"2",label:"财务信息"},{id:"3",label:"付款回执"},{id:"6",label:"付款完成"}]}},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:e.active=e.dstatusOptions.findIndex((function(t){return t.id===e.dstatus}));case 1:case"end":return t.stop()}}),t)})))()}}});a=a("2877"),a=Object(a.a)(n,(function(){var e=this.$createElement,t=this._self._c||e;return t("el-steps",{staticStyle:{padding:"12px 0 18px 0"},attrs:{active:this.active,"align-center":"","process-status":"finish"}},this._l(this.dstatusOptions,(function(e,a){return t("el-step",{key:e.name+a,attrs:{title:e.label}})})),1)}),[],!1,null,null,null);t.default=a.exports},9403:function(e,t,a){"use strict";a.r(t);var r=a("1da1"),n=(a("a434"),a("a15b"),a("d3b7"),a("159b"),a("c740"),a("e9c4"),a("99af"),a("d81d"),a("96cf"),a("ac3e")),i=a("ffe4"),o=a("17d7"),s=a("1529"),l=a("db30");i={name:"relation",props:["showModel","id","isDetail","newTime"],mixins:[a("9f53").a],components:{orderChange:i.a,capitalChange:o.a,invoiceChange:s.a},data:function(){return{showModel1:!1,showModel2:!1,showModel3:!1,order_trade_status:"",order_order_status:"",order_inv_status:"",trade_order_status:"",trade_trade_status:"",trade_inv_status:"",inv_order_status:"",inv_trade_status:"",inv_inv_status:"",order_onces:!0,trade_onces:!0,inv_onces:!0,order_total:0,trade_total:0,inv_total:0,orderList:[],capitalList:[],invoiceList:[],roleList:[],code:[],options:[{value:"3",label:"通过"},{value:"2",label:"驳回"}],examForm:{status:"",remark:""},examRules:{status:[{required:!0,message:"请选择审核状态",trigger:"change"}],remark:[{required:!1,message:"请输入审核备注",trigger:"blur"}]},loading:!1,relationList:l.i,activeRelation:[],resData:null,title:"添加关联",selectLoading:!1,activeOptions:[],relationBasisType:l.h,showModelThis:this.showModel,ruleForm:{status:"",companyNo:""},rulesThis:this.rules,rules:{companyNo:[{required:!0,message:"请选择企业",trigger:"change"}],status:[{required:!0,message:"请选择关联方式",trigger:"change"}]}}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis:function(e){e||this.$emit("cancel")},newTime:function(e,t){e!==t&&this.initForm()}},methods:{closeModel:function(){},seChange:function(){"2"===this.examForm.status?this.examRules.remark[0].required=!0:this.examRules.remark[0].required=!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,e.activeRelation=[],"003"===e.isDetail)return e.title="添加关联",e.rulesThis=e.rules,t.next=9,e.resetForm();t.next=11;break;case 9:t.next=17;break;case 11:return e.rulesThis={},e.title="关联详情",t.next=15,e.resetForm();case 15:return t.next=17,e.initData();case 17:e.loading=!1;case 18:case"end":return t.stop()}}),t)})))()},deleteRow:function(e,t){(1===t?this.orderList:2===t?this.capitalList:this.invoiceList).splice(e,1),this.getTotal()},openModel:function(e){this.code&&1===this.code.length?(this.modelId=this.code[0],1===e?this.showModel1=!0:2===e?this.showModel2=!0:this.showModel3=!0):this.$message.warning("请选择企业!")},selectChange:function(){this.ruleForm.companyNo=this.code.join(","),this.$refs.ruleForm.validateField("companyNo"),this.orderList=[],this.capitalList=[],this.invoiceList=[],this.getTotal()},getTotal:function(){var e=this;this.order_total=0,this.trade_total=0,this.inv_total=0,"2"===this.ruleForm.status||"3"===this.ruleForm.status?(this.inv_total=0,"003"===this.isDetail?this.orderList.forEach((function(t){e.order_total+=+t.wpay_fee})):this.order_total=this.resData&&this.resData.cancel_total?this.resData.cancel_total:0,this.capitalList.forEach((function(t){e.trade_total+="003"!==e.isDetail?+t.cancel_fee:+t.worder_fee}))):"4"===this.ruleForm.status||"5"===this.ruleForm.status?(this.order_total=0,this.capitalList.forEach((function(t){e.trade_total+="003"!==e.isDetail?+t.cancel_fee:+t.winv_fee})),this.invoiceList.forEach((function(t){e.inv_total+="003"!==e.isDetail?+t.cancel_fee:+t.wtrade_fee}))):(this.order_total=0,this.trade_total=0,this.inv_total=0)},statusChange:function(){var e=this,t=this.relationList.findIndex((function(t){return t.code===e.ruleForm.status}));-1!==t?(this.activeRelation=this.relationList[t].active,this.order_order_status=this.relationList[t].orderType[0],this.order_trade_status=this.relationList[t].orderType[1],this.order_inv_status=this.relationList[t].orderType[2],this.trade_order_status=this.relationList[t].capitalType[0],this.trade_trade_status=this.relationList[t].capitalType[1],this.trade_inv_status=this.relationList[t].capitalType[2],this.inv_order_status=this.relationList[t].invoiceType[0],this.inv_trade_status=this.relationList[t].invoiceType[1],this.inv_inv_status=this.relationList[t].invoiceType[2],this.order_onces=this.relationList[t].onces[0],this.trade_onces=this.relationList[t].onces[1],this.inv_onces=this.relationList[t].onces[2]):(this.activeRelation=[],this.order_trade_status="",this.order_order_status="",this.order_inv_status="",this.trade_trade_status="",this.trade_order_status="",this.trade_inv_status="",this.inv_trade_status="",this.inv_order_status="",this.inv_inv_status="",this.order_onces=!0,this.trade_onces=!0,this.inv_onces=!0),this.getTotal()},orderListUpdate:function(e){var t;this.order_onces?(this.orderList=[],this.orderList=e):(t=JSON.parse(JSON.stringify(this.orderList)),e.forEach((function(e){var a=t.findIndex((function(t){return t.sequenceNo===e.sequenceNo&&t.orderNo===e.orderNo}));-1<a&&t.splice(a,1)})),this.orderList=[].concat(t).concat(e)),this.getTotal()},capitalListUpdate:function(e){var t;this.trade_onces?(this.capitalList=[],this.capitalList=e):(t=JSON.parse(JSON.stringify(this.capitalList)),e.forEach((function(e){var a=t.findIndex((function(t){return t.sequenceNo===e.sequenceNo&&t.orderNo===e.orderNo}));-1<a&&t.splice(a,1)})),this.capitalList=[].concat(t).concat(e)),this.getTotal()},invoiceListUpdate:function(e){var t;this.inv_onces?(this.invoiceList=[],this.invoiceList=e):(t=JSON.parse(JSON.stringify(this.capitalList)),e.forEach((function(e){var a=t.findIndex((function(t){return t.sequenceNo===e.sequenceNo&&t.orderNo===e.orderNo}));-1<a&&t.splice(a,1)})),this.invoiceList=[].concat(t).concat(e)),this.getTotal()},initData: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.detail({id:e.id});case 2:if(!(a=t.sent)||0!==a.code){t.next=18;break}r=a.data,e.resData=r,e.ruleForm.status=r.rela_form,e.statusChange(),e.ruleForm.companyNo=r.companyNo,e.code=[r.companyName],e.orderList=r.order_info,e.capitalList=r.tra_info,0<e.capitalList.length&&e.capitalList.map((function(e){return e.customer=e.companyName,e})),e.invoiceList=r.inv_info,0<e.invoiceList.length&&e.invoiceList.map((function(e){return e.company=e.companyName,e})),e.getTotal(),t.next=25;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=25;break;case 23:e.resData=null,e.$message.warning(a.message);case 25: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.orderList=[],e.capitalList=[],e.invoiceList=[],e.active=[],e.activeOptions=[],e.code=[],e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),e.ruleForm={status:"",companyNo:""},e.getTotal()),e.$refs.examForm&&(e.examForm={status:"",remark:""},e.seChange())}));case 2:case"end":return t.stop()}}),t)})))()},remoteMethod: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.selectLoading=!0,""!==e)return t.activeOptions=[],a.next=5,n.a.clist({page:1,size:100,company:e});a.next=18;break;case 5:if(!((r=a.sent)&&0===r.code&&r.data&&r.data.list)){a.next=10;break}t.activeOptions=r.data.list,a.next=16;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=16;break;case 15:t.$message.warning(r.message);case 16:a.next=19;break;case 18:t.activeOptions=[];case 19:t.selectLoading=!1;case 20:case"end":return a.stop()}}),a)})))()},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,o,s,l;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!a){t.next=73;break}if("2"!==e.ruleForm.status&&"3"!==e.ruleForm.status){t.next=20;break}if(e.orderList&&0===e.orderList.length)return e.$message.error("请选择确认单!"),t.abrupt("return");t.next=5;break;case 5:if(e.capitalList&&0===e.capitalList.length)return e.$message.error("请选择资金!"),t.abrupt("return");t.next=8;break;case 8:if(0===e.order_total)return e.$message.error("确认单核销总额不能为0!"),t.abrupt("return");t.next=11;break;case 11:if(0===e.trade_total)return e.$message.error("资金核销总额不能为0!"),t.abrupt("return");t.next=14;break;case 14:if("2"===e.ruleForm.status&&e.order_total<e.trade_total)return e.$message.error("资金核销总额不得大于确认单核销总额!"),t.abrupt("return");t.next=17;break;case 17:if("3"===e.ruleForm.status&&e.trade_total<e.order_total)return e.$message.error("确认单核销总额不得大于资金核销总额!"),t.abrupt("return");t.next=20;break;case 20:if("4"!==e.ruleForm.status&&"5"!==e.ruleForm.status){t.next=39;break}if(e.invoiceList&&0===e.invoiceList.length)return e.$message.error("请选择发票!"),t.abrupt("return");t.next=24;break;case 24:if(e.capitalList&&0===e.capitalList.length)return e.$message.error("请选择资金!"),t.abrupt("return");t.next=27;break;case 27:if(0===e.inv_total)return e.$message.error("发票核销总额不能为0!"),t.abrupt("return");t.next=30;break;case 30:if(0===e.trade_total)return e.$message.error("资金核销总额不能为0!"),t.abrupt("return");t.next=33;break;case 33:if("4"===e.ruleForm.status&&e.inv_total<e.trade_total)return e.$message.error("资金核销总额不得大于发票核销总额!"),t.abrupt("return");t.next=36;break;case 36:if("5"===e.ruleForm.status&&e.trade_total<e.inv_total)return e.$message.error("发票核销总额不得大于资金核销总额!"),t.abrupt("return");t.next=39;break;case 39:if(e.loading=!0,r=JSON.parse(JSON.stringify(e.ruleForm)),i={},"2"===r.status||"3"===r.status)return o={type:r.status,companyNo:r.companyNo,tradid:"",good:""},e.orderList.forEach((function(e){e.good.forEach((function(e){o.good+=""===o.good?e.sequenceNo:",".concat(e.sequenceNo)}))})),e.capitalList.forEach((function(e){o.tradid+=""===o.tradid?e.id:",".concat(e.id)})),t.next=48,n.a.assoccreate(o);t.next=51;break;case 48:i=t.sent,t.next=57;break;case 51:return s={type:r.status,companyNo:r.companyNo,tradid:"",invid:""},e.capitalList.forEach((function(e){s.tradid+=""===s.tradid?e.id:",".concat(e.id)})),e.invoiceList.forEach((function(e){s.invid+=""===s.invid?e.id:",".concat(e.id)})),t.next=56,n.a.assocadd(s);case 56:i=t.sent;case 57:if(e.loading=!1,!i||0!==i.code){t.next=65;break}l="add"===e.id?"添加成功":"修改成功",e.$notify.success({title:l,message:""}),e.showModelThis=!1,e.$emit("refresh"),t.next=71;break;case 65:if(i&&100<=i.code&&i.code<=104)return t.next=68,e.logout();t.next=70;break;case 68:t.next=71;break;case 70:e.$message.warning(i.message);case 71:t.next=75;break;case 73:return t.abrupt("return",!1);case 75:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()},examSubmitForm: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.examForm.validate(function(){var t=Object(r.a)(regeneratorRuntime.mark((function t(a){var r,i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a)return e.loading=!0,r=JSON.parse(JSON.stringify(e.examForm)),r={id:e.id,status:r.status,remark:r.remark},t.next=6,n.a.exam(r);t.next=21;break;case 6:if(!(i=t.sent)||0!==i.code){t.next=13;break}e.$notify.success({title:"财务审核提交成功!",message:""}),e.showModelThis=!1,e.$emit("refresh"),t.next=19;break;case 13:if(i&&100<=i.code&&i.code<=104)return t.next=16,e.logout();t.next=18;break;case 16:t.next=19;break;case 18:e.$message.warning(i.message);case 19:t.next=23;break;case 21:return t.abrupt("return",!1);case 23:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()}}},a("32c9"),o=a("2877"),s=Object(o.a)(i,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:e.title,center:!0,align:"left",top:"12vh",width:"1224px","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:e.closeModel}},[a("el-card",{staticClass:"add",staticStyle:{"margin-top":"-25px"}},[a("el-row",{attrs:{gutter:10}},[a("el-col",{attrs:{span:24}},[a("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",rules:e.rulesThis,disabled:"003"!==e.isDetail,"label-width":"110px"}},[a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"关联方式",prop:"status"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{clearable:"",disabled:"003"!==e.isDetail,placeholder:"请选择关联方式"},on:{change:e.statusChange},model:{value:e.ruleForm.status,callback:function(t){e.$set(e.ruleForm,"status",t)},expression:"ruleForm.status"}},e._l(e.relationBasisType,(function(e){return a("el-option",{key:e.code,attrs:{label:e.name,value:e.code}})})),1)],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"选择企业",prop:"companyNo"}},[a("el-select",{staticClass:"setWidth",staticStyle:{width:"100%"},attrs:{multiple:"",filterable:"",remote:"",disabled:"003"!==e.isDetail,"multiple-limit":1,"reserve-keyword":"",placeholder:"公司名称搜索","remote-method":e.remoteMethod,loading:e.selectLoading},on:{change:e.selectChange},model:{value:e.code,callback:function(t){e.code=t},expression:"code"}},e._l(e.activeOptions,(function(e){return a("el-option",{key:e.companyNo,attrs:{label:e.companyName,value:e.companyNo}})})),1)],1)],1),e.activeRelation&&0===e.activeRelation.length?a("el-col",{staticClass:"myCard",attrs:{span:24}},[a("div",{staticClass:"excelUploadBox"},[a("i",{staticClass:"el-icon-receiving"}),a("span",{staticClass:"boxM"},[e._v(" 请选择关联方式!")])])]):a("el-col",{attrs:{span:24}},[a("el-row",{attrs:{gutter:20}},e._l(e.activeRelation,(function(t){return a("el-col",{key:t,attrs:{span:12}},[a("div",{staticClass:"myCard"},"order"===t?[a("div",{staticClass:"title tc",staticStyle:{padding:"0 0 5px 0"}},[a("el-badge",{staticClass:"item lan fl"},[e._v("确认单")]),a("el-badge",[e._v("当前核销:"+e._s(e.order_total)+" 元")]),"003"===e.isDetail?a("el-button",{staticClass:"fr",attrs:{type:"primary",size:"mini",plain:""},on:{click:function(t){return e.openModel(1)}}},[e._v("添 加")]):e._e()],1),a("el-table",{ref:"multipleTable",refInFor:!0,staticStyle:{width:"100%"},attrs:{data:e.orderList,stripe:"",border:"",size:"mini","row-key":"id","expand-row-keys":e.expands}},[a("el-table-column",{attrs:{type:"expand"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-table",{staticStyle:{width:"100%"},attrs:{size:"mini",data:t.row.good,stripe:"","max-height":"350",border:""}},[a("el-table-column",{attrs:{label:"产品编号",prop:"goodNo","show-overflow-tooltip":"",width:"125"}}),a("el-table-column",{attrs:{label:"商品名称",prop:"goodname","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{label:"品牌",prop:"brand",width:"80","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{label:"单位",prop:"unit",width:"80","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{label:"数量",prop:"num",width:"65","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{label:"单价",width:"90","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.price)+" ")]}}],null,!0)}),a("el-table-column",{attrs:{label:"总价",width:"105","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.total_fee)+" ")]}}],null,!0)}),a("el-table-column",{attrs:{label:"资金已核销金额",width:"105","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.apay_fee)+" ")]}}],null,!0)}),a("el-table-column",{attrs:{label:"资金待核销金额",width:"105","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.wpay_fee)+" ")]}}],null,!0)}),a("el-table-column",{attrs:{label:"关联资金状态",width:"105","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return["1"===t.row.pay_status?a("el-tag",{attrs:{type:"danger",size:"mini"}},[e._v("未核销")]):"2"===t.row.pay_status?a("el-tag",{attrs:{type:"warning",size:"mini"}},[e._v("部分核销")]):a("el-tag",{attrs:{type:"",size:"mini"}},[e._v("全部核销")])]}}],null,!0)}),a("el-table-column",{attrs:{label:"发票已核销数量",width:"105","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.inv_num)+" ")]}}],null,!0)}),a("el-table-column",{attrs:{label:"发票已核销金额",width:"105","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.ainv_fee)+" ")]}}],null,!0)}),a("el-table-column",{attrs:{label:"发票待核销金额",width:"105","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.winv_fee)+" ")]}}],null,!0)}),a("el-table-column",{attrs:{label:"关联发票状态",width:"105","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return["1"===t.row.inv_status?a("el-tag",{attrs:{type:"danger",size:"mini"}},[e._v("未核销")]):"2"===t.row.inv_status?a("el-tag",{attrs:{type:"warning",size:"mini"}},[e._v("部分核销")]):a("el-tag",{attrs:{type:"",size:"mini"}},[e._v("全部核销")])]}}],null,!0)})],1)]}}],null,!0)}),a("el-table-column",{attrs:{prop:"sequenceNo",label:"确认单号","show-overflow-tooltip":"",width:"140"}}),a("el-table-column",{attrs:{prop:"customer",label:"企业名称","show-overflow-tooltip":"","min-width":"170"}}),a("el-table-column",{attrs:{prop:"total_fee",label:"确认单总金额","show-overflow-tooltip":"","min-width":"110"}}),a("el-table-column",{attrs:{label:"关联资金信息","show-overflow-tooltip":"",align:"center"}},[a("el-table-column",{attrs:{prop:"apay_fee",label:"已核销金额","show-overflow-tooltip":"","min-width":"110"}}),a("el-table-column",{attrs:{prop:"wpay_fee",label:"未核销金额","show-overflow-tooltip":"","min-width":"110"}}),a("el-table-column",{attrs:{label:"核销状态","show-overflow-tooltip":"","min-width":"95"},scopedSlots:e._u([{key:"default",fn:function(t){return["1"===t.row.pay_status?a("el-tag",{attrs:{type:"danger",size:"mini"}},[e._v("未核销")]):"2"===t.row.pay_status?a("el-tag",{attrs:{type:"warning",size:"mini"}},[e._v("部分核销")]):a("el-tag",{attrs:{type:"",size:"mini"}},[e._v("全部核销")])]}}],null,!0)})],1),a("el-table-column",{attrs:{label:"关联发票信息","show-overflow-tooltip":"",align:"center"}},[a("el-table-column",{attrs:{prop:"ainv_fee",label:"已核销金额","show-overflow-tooltip":"","min-width":"110"}}),a("el-table-column",{attrs:{prop:"winv_fee",label:"未核销金额","show-overflow-tooltip":"","min-width":"110"}}),a("el-table-column",{attrs:{label:"核销状态","show-overflow-tooltip":"","min-width":"95"},scopedSlots:e._u([{key:"default",fn:function(t){return["1"===t.row.inv_status?a("el-tag",{attrs:{type:"danger",size:"mini"}},[e._v("未核销")]):"2"===t.row.inv_status?a("el-tag",{attrs:{type:"warning",size:"mini"}},[e._v("部分核销")]):a("el-tag",{attrs:{type:"",size:"mini"}},[e._v("全部核销")])]}}],null,!0)})],1),"003"===e.isDetail?a("el-table-column",{attrs:{fixed:"right",label:"操作",width:"50"},scopedSlots:e._u([{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.deleteRow(t.$index,1)}}})])]}}],null,!0)}):e._e()],1),a("order-change",{attrs:{"show-model":e.showModel1,trade_status:e.order_trade_status,order_status:e.order_order_status,inv_status:e.order_inv_status,onces:e.order_onces,id:e.modelId,isAll:!0},on:{refresh:e.orderListUpdate,cancel:function(t){e.showModel1=!1}}})]:"capital"===t?[a("div",{staticClass:"title tc",staticStyle:{padding:"0 0 5px 0"}},[a("el-badge",{staticClass:"item lan fl"},[e._v("资金")]),a("el-badge",[e._v("当前核销:"+e._s(e.trade_total)+" 元")]),"003"===e.isDetail?a("el-button",{staticClass:"fr",attrs:{type:"primary",plain:"",size:"mini"},on:{click:function(t){return e.openModel(2)}}},[e._v("添 加")]):e._e()],1),a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.capitalList,stripe:"",border:"",size:"mini"}},[a("el-table-column",{attrs:{prop:"traNo",label:"资金编号","show-overflow-tooltip":"",width:"190"}}),a("el-table-column",{attrs:{prop:"customer",label:"企业名称","show-overflow-tooltip":"","min-width":"170"}}),a("el-table-column",{attrs:{prop:"trade_account",label:"付款账号","show-overflow-tooltip":"",width:"170"}}),a("el-table-column",{attrs:{prop:"trade_out",label:"付款方","show-overflow-tooltip":"","min-width":"170"}}),a("el-table-column",{attrs:{prop:"trade_used",label:"付款备注","show-overflow-tooltip":"",width:"270"}}),a("el-table-column",{attrs:{prop:"total_fee",label:"资金总额度","show-overflow-tooltip":"","min-width":"110"}}),a("el-table-column",{attrs:{label:"关联发票信息","show-overflow-tooltip":"",align:"center"}},[a("el-table-column",{attrs:{prop:"inv_fee",label:"已核销金额","show-overflow-tooltip":"","min-width":"110"}}),a("el-table-column",{attrs:{prop:"winv_fee",label:"未核销金额","show-overflow-tooltip":"","min-width":"110"}}),a("el-table-column",{attrs:{label:"核销状态","show-overflow-tooltip":"","min-width":"95"},scopedSlots:e._u([{key:"default",fn:function(t){return["1"===t.row.inv_status?a("el-tag",{attrs:{type:"danger",size:"mini"}},[e._v("未核销")]):"2"===t.row.inv_status?a("el-tag",{attrs:{type:"warning",size:"mini"}},[e._v("部分核销")]):a("el-tag",{attrs:{type:"",size:"mini"}},[e._v("全部核销")])]}}],null,!0)})],1),a("el-table-column",{attrs:{label:"关联确认单信息","show-overflow-tooltip":"",align:"center"}},[a("el-table-column",{attrs:{prop:"order_fee",label:"已核销金额","show-overflow-tooltip":"","min-width":"110"}}),a("el-table-column",{attrs:{prop:"worder_fee",label:"未核销金额","show-overflow-tooltip":"","min-width":"110"}}),a("el-table-column",{attrs:{label:"核销状态","show-overflow-tooltip":"","min-width":"95"},scopedSlots:e._u([{key:"default",fn:function(t){return["1"===t.row.order_status?a("el-tag",{attrs:{type:"danger",size:"mini"}},[e._v("未核销")]):"2"===t.row.order_status?a("el-tag",{attrs:{type:"warning",size:"mini"}},[e._v("部分核销")]):a("el-tag",{attrs:{type:"",size:"mini"}},[e._v("全部核销")])]}}],null,!0)})],1),a("el-table-column",{attrs:{prop:"addtime",label:"创建时间","show-overflow-tooltip":"",width:"150"}}),"003"===e.isDetail?a("el-table-column",{attrs:{fixed:"right",label:"操作",width:"50"},scopedSlots:e._u([{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.deleteRow(t.$index,2)}}})])]}}],null,!0)}):e._e()],1),a("capital-change",{attrs:{"show-model":e.showModel2,id:e.modelId,trade_status:e.trade_trade_status,order_status:e.trade_order_status,inv_status:e.trade_inv_status,onces:e.trade_onces,status:"3"},on:{refresh:e.capitalListUpdate,cancel:function(t){e.showModel2=!1}}})]:[a("div",{staticClass:"title tc",staticStyle:{padding:"0 0 5px 0"}},[a("el-badge",{staticClass:"item lan fl"},[e._v("发票")]),a("el-badge",[e._v("当前核销:"+e._s(e.inv_total)+" 元")]),"003"===e.isDetail?a("el-button",{staticClass:"fr",attrs:{type:"primary",plain:"",size:"mini"},on:{click:function(t){return e.openModel(3)}}},[e._v("添 加")]):e._e()],1),a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.invoiceList,stripe:"",border:"",size:"mini"}},[a("el-table-column",{attrs:{prop:"invNo",label:"发票编号","show-overflow-tooltip":"",width:"250"}}),a("el-table-column",{attrs:{prop:"company",label:"企业名称","show-overflow-tooltip":"","min-width":"170"}}),a("el-table-column",{attrs:{prop:"inv_value",label:"发票额度","show-overflow-tooltip":"","min-width":"110"}}),a("el-table-column",{attrs:{label:"关联资金信息","show-overflow-tooltip":"",align:"center"}},[a("el-table-column",{attrs:{prop:"atrade_fee",label:"已核销金额","show-overflow-tooltip":"","min-width":"110"}}),a("el-table-column",{attrs:{prop:"wtrade_fee",label:"未核销金额","show-overflow-tooltip":"","min-width":"110"}}),a("el-table-column",{attrs:{label:"核销状态","show-overflow-tooltip":"","min-width":"95"},scopedSlots:e._u([{key:"default",fn:function(t){return["1"===t.row.trade_status?a("el-tag",{attrs:{type:"danger",size:"mini"}},[e._v("未核销")]):"2"===t.row.trade_status?a("el-tag",{attrs:{type:"warning",size:"mini"}},[e._v("部分核销")]):a("el-tag",{attrs:{type:"",size:"mini"}},[e._v("全部核销")])]}}],null,!0)})],1),a("el-table-column",{attrs:{label:"关联确认单信息","show-overflow-tooltip":"",align:"center"}},[a("el-table-column",{attrs:{prop:"aorder_fee",label:"已核销金额","show-overflow-tooltip":"","min-width":"110"}}),a("el-table-column",{attrs:{prop:"worder_fee",label:"未核销金额","show-overflow-tooltip":"","min-width":"110"}}),a("el-table-column",{attrs:{label:"核销状态","show-overflow-tooltip":"","min-width":"95"},scopedSlots:e._u([{key:"default",fn:function(t){return["1"===t.row.order_status?a("el-tag",{attrs:{type:"danger",size:"mini"}},[e._v("未核销")]):"2"===t.row.order_status?a("el-tag",{attrs:{type:"warning",size:"mini"}},[e._v("部分核销")]):a("el-tag",{attrs:{type:"",size:"mini"}},[e._v("全部核销")])]}}],null,!0)})],1),a("el-table-column",{attrs:{prop:"addtime",label:"创建时间","show-overflow-tooltip":"",width:"150"}}),"003"===e.isDetail?a("el-table-column",{attrs:{fixed:"right",label:"操作",width:"50"},scopedSlots:e._u([{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.deleteRow(t.$index,3)}}})])]}}],null,!0)},[e._v("> ")]):e._e()],1),a("invoice-change",{attrs:{"show-model":e.showModel3,trade_status:e.inv_trade_status,order_status:e.inv_order_status,inv_status:e.inv_inv_status,onces:e.inv_onces,id:e.modelId},on:{refresh:e.invoiceListUpdate,cancel:function(t){e.showModel3=!1}}})],1)])})),1)],1)],1)],1)],1),"029"===e.isDetail?a("el-col",{staticStyle:{"text-align":"right"},attrs:{span:24}},[a("el-form",{ref:"examForm",staticClass:"demo-examForm",staticStyle:{padding:"20px 0 0 0"},attrs:{model:e.examForm,"status-icon":"",rules:e.examRules,"label-width":"110px"}},[a("el-form-item",{attrs:{label:"审核状态",prop:"status"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择审核状态"},on:{change:e.seChange},model:{value:e.examForm.status,callback:function(t){e.$set(e.examForm,"status",t)},expression:"examForm.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-form-item",{attrs:{label:"审核备注",prop:"remark"}},[a("el-input",{attrs:{type:"textarea",maxlength:"250","show-word-limit":"",autosize:{minRows:6,maxRows:6}},model:{value:e.examForm.remark,callback:function(t){e.$set(e.examForm,"remark",t)},expression:"examForm.remark"}})],1),a("el-form-item",{staticStyle:{"text-align":"right"}},[a("el-button",{attrs:{type:"primary"},on:{click:e.examSubmitForm}},[e._v("保 存 ")])],1)],1)],1):e._e()],1),a("div",{staticClass:"tr",staticStyle:{padding:"10px 0 0 0"}},["003"===e.isDetail?a("el-button",{attrs:{size:"medium",type:"primary"},on:{click:e.submitForm}},[e._v("保 存 ")]):e._e()],1)],1)],1)}),[],!1,null,"49ab5264",null);t.default=s.exports},9406:function(e,t,a){"use strict";a.r(t);var r=a("5530"),n=(a("a9e3"),{name:"PanThumb",props:{image:{type:String,required:!0},zIndex:{type:Number,default:1},width:{type:String,default:"150px"},height:{type:String,default:"150px"}}}),i=(a("fc3d"),a("2877")),o=(n=Object(i.a)(n,(function(){var e=this.$createElement;e=this._self._c||e;return e("div",{staticClass:"pan-item",style:{zIndex:this.zIndex,height:this.height,width:this.width}},[e("div",{staticClass:"pan-info"},[e("div",{staticClass:"pan-info-roles-container"},[this._t("default")],2)]),e("div",{staticClass:"pan-thumb",style:{backgroundImage:"url("+this.image+")"}})])}),[],!1,null,"eb62f1e2",null).exports,a("89ae"),Object(i.a)({},(function(){var e=this.$createElement;e=this._self._c||e;return e("a",{staticClass:"github-corner",attrs:{href:"https://github.com/PanJiaChen/vue-element-admin",target:"_blank","aria-label":"View source on Github"}},[e("svg",{staticStyle:{fill:"#40c9c6",color:"#fff"},attrs:{width:"80",height:"80",viewBox:"0 0 250 250","aria-hidden":"true"}},[e("path",{attrs:{d:"M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"}}),e("path",{staticClass:"octo-arm",staticStyle:{"transform-origin":"130px 106px"},attrs:{d:"M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2",fill:"currentColor"}}),e("path",{staticClass:"octo-body",attrs:{d:"M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z",fill:"currentColor"}})])])}),[],!1,null,"58f3203e",null).exports),s=a("2f62");o={name:"dashboard",components:{GithubCorner:o,PanThumb:n},data:function(){return{emptyGif:a("ff1f")}},computed:Object(r.a)({},Object(s.b)(["avatar"])),created:function(){}},a("b595"),n=Object(i.a)(o,(function(){var e=this.$createElement;e=this._self._c||e;return e("div",{staticClass:"dashboard-container"},[e("div",{staticClass:"dashboard-editor-container"},[e("div",{staticClass:"info-container clearfix"},[e("pan-thumb",{attrs:{image:this.avatar,width:"130px",height:"130px"}}),e("span",{staticClass:"welcome-title"},[this._v("欢迎登录采销平台结算系统")])],1),e("img",{staticStyle:{width:"60%",margin:"-30px auto 0 auto"},attrs:{src:this.emptyGif}})])])}),[],!1,null,"4b941d90",null);t.default=n.exports},9486:function(e,t,a){"use strict";var r=a("1b69"),n="Admin/";t.a={add:function(e,t){return Object(r.a)(n+"shareadd",e,"post",t)},delete:function(e,t){return Object(r.a)(n+"sharedel",e,"post",t)},list:function(e,t){return Object(r.a)(n+"sharelist",e,"post",t)},detail:function(e,t){return Object(r.a)(n+"shareinfo",e,"post",t)},update:function(e,t){return Object(r.a)(n+"sharesave",e,"post",t)},status:function(e,t){return Object(r.a)(n+"sharestatus",e,"post",t)},accountall:function(e,t){return Object(r.a)(n+"userall",e,"post",t)},groupall:function(e,t){return Object(r.a)(n+"groupall",e,"post",t)},actionList:function(e,t){return Object(r.a)(n+"menuactionlist",e,"post",t)}}},"94a4":function(e,t,a){},"94ce":function(e,t,a){},"95c0":function(e,t,a){"use strict";a.r(t);var r=a("1da1"),n=(a("96cf"),a("d3b7"),a("159b"),a("5bcd")),i=a("d0b8"),o=a("6810");n={name:"orderRecord",props:["showModel","id","isDetail","dstatus","payNo","companyNo"],components:{addView:n.default,stepBar:o.default,InvoiceUpload:i.default},data:function(){return{activeNames:"2",newTime:0,activeName:"-1",showView:!0,loading:!1,title:"上传发票",showModelThis:this.showModel}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis:function(e){e||this.$emit("cancel")}},methods:{closeModel:function(){},refreshAll:function(){this.showModelThis=!1,this.$emit("refresh")},setTotal:function(e){if(!(0<e.length))return[];e.forEach((function(e){}))},initForm:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.changea();case 2:case"end":return t.stop()}}),t)})))()},changea:function(){this.newTime=(new Date).valueOf()}}},a("a43b3"),o=a("2877"),i=Object(o.a)(n,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:e.title,center:!0,align:"left",top:"10vh",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:e.closeModel}},[t("el-card",{staticStyle:{"margin-top":"-15px",height:"685px"}},[t("stepBar",{attrs:{id:e.modelId,payNo:e.payNo,dstatus:e.dstatus},on:{refresh:e.searchList}}),t("el-collapse",{attrs:{accordion:""},model:{value:e.activeNames,callback:function(t){e.activeNames=t},expression:"activeNames"}},[t("el-collapse-item",{attrs:{title:"对账详情",name:"1"}},[t("add-view",{attrs:{id:e.id,isDetail:e.isDetail,newTime:e.newTime,payNo:e.payNo},on:{refreshAll:e.refreshAll}})],1),t("el-collapse-item",{attrs:{title:"上传发票",name:"2"}},[t("invoice-upload",{attrs:{id:e.id,newTime:e.newTime,dstatus:e.dstatus,payNo:e.payNo},on:{refreshAll:e.refreshAll}})],1)],1)],1)],1)}),[],!1,null,"fe62d166",null);t.default=i.exports},"96d7":function(e,t,a){"use strict";a("4ac4")},"9b20":function(e,t,a){"use strict";a("0c98")},"9b51":function(e,t,a){},"9d1a":function(e,t,a){},"9dd5":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("99af"),a("3ca3"),a("ddb0"),a("2b3d"),a("9861"),a("3264")),o=a("1b69"),s=function(e,t){return Object(o.a)("Admin/cwlist",e,"post",t)},l=a("7d27"),c=a("f5ed"),u=a("2f62"),d=a("9f53"),p=a("5daa");c={name:"commission",mixins:[c.a,d.a],components:{ExTable:i.default,PeriodDatePicker:l.a},computed:Object(n.a)(Object(n.a)({},Object(u.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"commission"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),data:function(){return{name:"",contector:"",loading:!1,showModel:!1,isDetail:!1,modelId:0,parmValue:{qrd_start:"",qrd_end:"",hk_start:"",hk_end:"",page:1,size:15},tableData:[],table:{stripe:!0,border:!0,_defaultHeader_:["setcol"]},pageInfo:{size:15,curr:1,total:0},columns:[{prop:"supperinfo",label:"公司名称",fixed:"left","min-width":"150"},{prop:"sale_name",label:"销售人员",width:"70"},{prop:"depart",label:"部门",width:"65"},{prop:"qrd_type",label:"订单类型",width:"85"},{prop:"qrdNo",label:"广源订单号码",width:"138"},{prop:"cgdNo",label:"采购单编号",width:"138"},{prop:"khzzxz",label:"客户属性","min-width":"90"},{prop:"khcomp",label:"所属分公司","min-width":"90"},{prop:"companyName",label:"客户名称","min-width":"150"},{prop:"product_name",label:"产品名称","min-width":"140"},{prop:"cat_f",label:"一级分类","min-width":"90"},{prop:"sale_price",label:"销售单价","min-width":"90"},{prop:"order_num",label:"销售数量","min-width":"90"},{prop:"sale_total",label:"销售总额","min-width":"90"},{prop:"ordertime",label:"确认单下单时间",width:"145"},{prop:"addtime",label:"回款日期",width:"145"},{prop:"fund_fee",label:"回款金额","min-width":"140"},{prop:"pay_day",label:"账期","min-width":"90"}]}},mounted:function(){this.searchList()},methods:{timeReturned1: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:""!==e.startTime?t.parmValue.qrd_start=e.startTime:t.parmValue.qrd_start="",""!==e.endTime?t.parmValue.qrd_end=e.endTime:t.parmValue.qrd_end="";case 2:case"end":return a.stop()}}),a)})))()},timeReturned2: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:""!==e.startTime?t.parmValue.hk_start=e.startTime:t.parmValue.hk_start="",""!==e.endTime?t.parmValue.hk_end=e.endTime:t.parmValue.hk_end="";case 2:case"end":return a.stop()}}),a)})))()},restSearch:function(){this.pageInfo={size:15,curr:1,total:0},this.parmValue={qrd_start:"",qrd_end:"",hk_start:"",hk_end:"",page:1,size:15},this.searchList()},timeVerification: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.abrupt("return",new Promise(function(){var t=Object(r.a)(regeneratorRuntime.mark((function t(a,r){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:""===e.parmValue.qrd_start&&""===e.parmValue.qrd_end&&""===e.parmValue.hk_start&&""===e.parmValue.hk_end?a({ok:!1,msg:"请选择时间区间!"}):""===e.parmValue.qrd_start&&""!==e.parmValue.qrd_end||""!==e.parmValue.qrd_start&&""===e.parmValue.qrd_end||""===e.parmValue.hk_start&&""!==e.parmValue.hk_end||""!==e.parmValue.hk_start&&""===e.parmValue.hk_end?a({ok:!1,msg:"确认单下单时间区间不完整!"}):a({ok:!0,msg:"ok"});case 1:case"end":return t.stop()}}),t)})));return function(e,a){return t.apply(this,arguments)}}()));case 1:case"end":return t.stop()}}),t)})))()},searchList:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.loading||e.timeVerification().then(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.ok){t.next=4;break}e.$message.warning(a.msg),t.next=21;break;case 4:return e.loading=!0,t.next=7,s(e.parmValue);case 7:if(!(r=t.sent)||0!==r.code||!r.data){t.next=13;break}e.tableData=r.data.list,e.pageInfo.total=Number(r.data.count),t.next=20;break;case 13:if(r&&100<=r.code&&r.code<=104)return t.next=16,e.logout();t.next=18;break;case 16:t.next=20;break;case 18:e.tableData=[],e.pageInfo.total=0;case 20:e.loading=!1;case 21:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.loading=!1}));case 1:case"end":return t.stop()}}),t)})))()},Export:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.loading||e.timeVerification().then(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:a.ok?(e.loading=!0,r="aplication/zip",n=""!==e.parmValue.qrd_start?"确认单下单时间".concat(e.parmValue.qrd_start,"至").concat(e.parmValue.qrd_end):"",i=""!==e.parmValue.hk_start?"回款时间".concat(e.parmValue.hk_start,"至").concat(e.parmValue.hk_end):"",axios({method:"post",url:p.a.baseURL+"Admin/downreportcw",responseType:"blob",data:e.parmValue,headers:{Accept:r}}).then((function(t){var a,o;t&&200==t.status&&t.data?(a=new Blob([t.data],{type:r}),a=window.URL.createObjectURL(a),(o=document.createElement("a")).style.display="none",o.href=a,o.setAttribute("download","提成数据报表".concat(""!==e.parmValue.qrd_start&&""!==e.parmValue.hk_start?n+"&&"+i:""!==e.parmValue.qrd_start?n:i,".zip")),document.body.appendChild(o),o.click(),document.body.removeChild(o),window.URL.revokeObjectURL(a),e.$message.success(title+"信息导出成功!")):e.$message.error(t.data.message),setTimeout((function(){e.loading=!1}),500)})).catch((function(t){e.loading=!1}))):e.$message.warning(a.msg);case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 1:case"end":return t.stop()}}),t)})))()}}},a("ddb2"),d=a("2877"),i=Object(d.a)(c,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"commission pagePadding"},[e.powers&&0<e.powers.length&&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",[a("el-col",{staticStyle:{padding:"0 0 0 80px"},attrs:{span:24}},[a("el-col",{staticStyle:{width:"600px"},attrs:{span:8}},[a("el-form",{staticClass:"demo-form-inline-search",attrs:{inline:!0,size:e.searchSize,"label-position":"top"}},[a("el-form-item",{attrs:{label:"确认单下单时间区间"}},[a("period-date-picker",{attrs:{start:e.parmValue.qrd_start,end:e.parmValue.qrd_end,type:1,width:"135px",size:e.searchSize},on:{timeReturned:function(t){return e.timeReturned1(t)}}})],1),a("el-form-item",{attrs:{label:"回款时间区间"}},[a("period-date-picker",{attrs:{start:e.parmValue.start,end:e.parmValue.end,type:1,width:"135px",size:e.searchSize},on:{timeReturned:function(t){return e.timeReturned2(t)}}})],1)],1)],1),a("el-col",{staticStyle:{width:"44px"},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}},[e.powers.some((function(e){return"024"==e}))?a("el-button",{staticClass:"fr",attrs:{type:"warning",size:e.searchSize},on:{click:e.restSearch}},[e._v(" 重置 ")]):e._e()],1),e.powers.some((function(e){return"049"==e}))?a("el-col",{staticClass:"fr",staticStyle:{width:"83px"},attrs:{span:4}},[a("el-button",{staticClass:"fr",attrs:{type:"primary",icon:"el-icon-download",size:e.searchSize},on:{click:function(t){return e.Export()}}},[e._v("导出")])],1):e._e(),a("el-col",{staticStyle:{width:"66px",float:"right"},attrs:{span:3}},[e.powers.some((function(e){return"002"==e}))?a("el-button",{staticStyle:{float:"right","margin-left":"5px"},attrs:{size:e.searchSize,type:"primary"},on:{click:e.searchList}},[e._v(" 刷新 ")]):e._e()],1)],1)],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.openModal(r.row.companyNo,r.row.companyName,!0)}}})]):e._e()]}}],null,!1,2250536814)}):a("no-auth")],1)}),[],!1,null,"f7f9dd3c",null);t.default=i.exports},"9e62":function(e,t,a){},"9e7a":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("3264")),o=a("b32b"),s=a("9486"),l=a("0ee5"),c=a("e66a"),u=a("f5ed"),d=a("2f62"),p=a("9f53");u={name:"role",mixins:[u.a,p.a],components:{ExTable:i.default,addEdit:o.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"dataShare"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),data:function(){return{statusList:l.a,roleLevel:c.a,loading:!0,showModel:!1,isDetail:!1,modelId:0,parmValue:{page:1,size:15},statusOptions:[{id:0,label:"禁用"},{id:1,label:"启用"}],authOptions:[{id:"1",label:"管理员"},{id:"2",label:"非管理员"}],tableData:[],table:{stripe:!0,border:!0,_defaultHeader_:["setcol"]},pageInfo:{size:15,curr:1,total:0},columns:[{prop:"actionlist",label:"菜单数据"},{prop:"share_user",label:"数据源用户"},{prop:"to_user",label:"数据共享用户"},{prop:"to_group",label:"数据共享用户组"},{prop:"status",label:"状态",sortable:!0,_slot_:"status"},{prop:"addtime",label:"创建时间",sortable:!0},{prop:"",label:"操作",fixed:"right",_noset_:!0,_slot_:"operation"}]}},mounted:function(){this.searchList()},methods:{restSearch:function(){this.pageInfo={size:15,curr:1,total:0},this.parmValue={page:1,size:15},this.searchList()},openModal:function(e,t){this.showModel=!0,this.modelId=e,this.isDetail=t},changeStatus:function(e,t){var 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)})))()},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)})))()}}},p=a("2877"),i=Object(p.a)(u,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"dataShare pagePadding"},[e.powers&&0<e.powers.length&&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",{attrs:{gutter:10}},[a("el-col",{attrs:{span:24}},[e.powers.some((function(e){return"002"==e}))?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._e(),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,949399669)}):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,"e11997aa",null);t.default=i.exports},"9ed6":function(e,t,a){"use strict";a.r(t);var r=a("1da1"),n=(a("d3b7"),a("b64b"),a("96cf"),a("6a1e")),i=a("9f53"),o=a("61f7"),s=(i={name:"Login",mixins:[i.a],data:function(){return{ver:"",show:!1,loginForm:{username:"",password:""},loginRules:{username:[{required:!0,trigger:"blur",validator:function(e,t,a){""===t?a(new Error("手机号不能为空!")):Object(o.g)(t)?a():a(new Error("请输入正确的手机号"))}}],password:[{required:!0,trigger:"blur",validator:function(e,t,a){""===t?a(new Error("密码不能为空!")):!Object(o.b)(t)||t.length<6||18<t.length?a(new Error("密码为6-18位数字字母组合!")):Object(o.i)(t)?a(new Error("密码不能为纯数字!")):Object(o.o)(t)?a(new Error("密码不能为纯字母!")):a()}}]},passwordType:"password",capsTooltip:!1,loading:!1,showDialog:!1,redirect:void 0,otherQuery:{}}},watch:{$route:{handler:function(e){e=e.query,e&&(this.redirect=e.redirect,this.otherQuery=this.getOtherQuery(e))},immediate:!0}},created:function(){},mounted:function(){this.getversion(),""===this.loginForm.username?this.$refs.username.focus():""===this.loginForm.password&&this.$refs.password.focus()},methods:{getversion: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.version({});case 2:if(!(a=t.sent)||0!==a.code){t.next=8;break}r=a.data,e.ver=r.version,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.$message.warning(a.message);case 14:case"end":return t.stop()}}),t)})))()},setVisible:function(e){this.show=e},handleClick:function(){this.show=!0},handleSuccess:function(){this.show=!1,this.handleLogin()},checkCapslock:function(e){e=e.key,this.capsTooltip=e&&1===e.length&&"A"<=e&&e<="Z"},showPwd:function(){var e=this;"password"===this.passwordType?this.passwordType="":this.passwordType="password",this.$nextTick((function(){e.$refs.password.focus()}))},handleLogin:function(){var e=this;this.$refs.loginForm.validate((function(t){if(!t)return!1;e.loading=!0,e.$store.dispatch("user/login",e.loginForm).then((function(t){0===t.code?e.getMenu():(e.$message.warning(t.message),e.loading=!1)})).catch((function(t){e.loading=!1}))}))},getMenu:function(){var e=this;this.$store.dispatch("user/getMenuList",this).then((function(t){window.vm.$router.push({path:"/welcome",query:e.otherQuery}),e.loading=!1})).catch((function(t){e.loading=!1}))},getOtherQuery:function(e){return Object.keys(e).reduce((function(t,a){return"redirect"!==a&&(t[a]=e[a]),t}),{})}}},a("2017"),a("f4f7"),a("2877"));s=Object(s.a)(i,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("div",{staticClass:"login-container"},[t("div",{staticClass:"login-form-main"},[t("img",{attrs:{src:a("a56b"),alt:""}}),e._m(0),t("el-form",{ref:"loginForm",staticClass:"login-form",attrs:{model:e.loginForm,rules:e.loginRules,autocomplete:"on","label-position":"left"}},[t("div",{staticClass:"title-container"},[t("h3",{staticClass:"title"},[t("div",[e._v("516结算系统")]),t("div",{staticStyle:{padding:"15px 0 0 0"}},[e._v(e._s(e.ver))])])]),t("el-form-item",{attrs:{prop:"username"}},[t("span",{staticClass:"svg-container"},[t("i",{staticClass:"el-icon-user"})]),t("el-input",{ref:"username",attrs:{placeholder:"手机号",name:"username",type:"text",tabindex:"1",autocomplete:"on"},model:{value:e.loginForm.username,callback:function(t){e.$set(e.loginForm,"username",t)},expression:"loginForm.username"}})],1),t("el-tooltip",{attrs:{content:"Caps lock is On",placement:"right",manual:""},model:{value:e.capsTooltip,callback:function(t){e.capsTooltip=t},expression:"capsTooltip"}},[t("el-form-item",{attrs:{prop:"password"}},[t("span",{staticClass:"svg-container"},[t("i",{staticClass:"el-icon-unlock"})]),t("el-input",{key:e.passwordType,ref:"password",attrs:{type:e.passwordType,placeholder:"密码",name:"password",tabindex:"2",autocomplete:"on"},on:{blur:function(t){e.capsTooltip=!1}},nativeOn:{keyup:[function(t){return e.checkCapslock(t)},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleLogin(t)}]},model:{value:e.loginForm.password,callback:function(t){e.$set(e.loginForm,"password",t)},expression:"loginForm.password"}}),t("span",{staticClass:"show-pwd",on:{click:e.showPwd}},[t("svg-icon",{attrs:{"icon-class":"password"===e.passwordType?"eye":"eye-open"}})],1)],1)],1),t("el-button",{staticStyle:{width:"100%","margin-top":"5px"},attrs:{loading:e.loading,disabled:e.loading,type:"primary"},nativeOn:{click:function(t){return t.preventDefault(),e.handleLogin()}}},[e._v("登 录")]),t("div",{staticStyle:{position:"relative",padding:"12px 0 0 0"}},[t("div",{staticClass:"tips",staticStyle:{float:"left"}},[t("el-popover",{attrs:{placement:"top",title:"初始密码:",width:"200",trigger:"click",content:"dingding123"}},[t("i",{staticClass:"el-icon-info",attrs:{slot:"reference"},slot:"reference"})])],1),t("router-link",{attrs:{to:"/forget-password"}},[t("div",{staticClass:"tips",staticStyle:{float:"right"}},[t("span",[e._v("忘记密码")])])])],1)],1)],1),e._m(1)])}),[function(){var e=this.$createElement;e=this._self._c||e;return e("div",{staticClass:"main-title"},[e("h1",[this._v("欢迎登录")]),e("h3",[this._v("516结算系统")])])},function(){var e=this.$createElement;e=this._self._c||e;return e("div",{staticClass:"beian"},[e("span",[this._v("万宇恒通")]),e("a",{attrs:{target:"_blank",href:"https://beian.miit.gov.cn/"}},[this._v("京ICP备2020033956号-1")]),e("span")])}],!1,null,"1a1976f4",null);t.default=s.exports},"9f42":function(e,t,a){"use strict";a.r(t);var r=a("1da1"),n=a("5530"),i=(a("96cf"),a("7db0"),a("d3b7"),a("b0c0"),a("a9e3"),a("3264")),o=a("c94c"),s=a("3c00"),l=a("f5ed"),c=a("2f62"),u=a("9f53");l={name:"supplierPay",mixins:[l.a,u.a],components:{ExTable:i.default,addEdit:o.default},computed:Object(n.a)(Object(n.a)({},Object(c.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"supplierPay"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),data:function(){return{name:"",contector:"",loading:!0,showModel:!1,isDetail:!1,modelId:0,parmValue:{name:"",page:1,size:15},tableData:[],table:{stripe:!0,border:!0,_defaultHeader_:["setcol"]},pageInfo:{size:15,curr:1,total:0},columns:[{prop:"code",label:"供应商编码",width:"150px",fixed:"left"},{prop:"name",label:"公司名称"},{prop:"nature",label:"公司类型",width:"100px"},{prop:"contector",label:"联系人",width:"80px"},{prop:"post",label:"职务",width:"80px"},{prop:"mobile",label:"联系方式",width:"105px"},{prop:"address",label:"地址"},{prop:"addtime",label:"创建时间",sortable:!0,width:"145px"}]}},mounted:function(){this.searchList()},methods:{restSearch:function(){this.pageInfo={size:10,curr:1,total:0},this.parmValue={name:"",page:1,size:10},this.searchList()},openModal:function(e,t,a,r){this.contector=a,this.name=t,this.showModel=!0,this.modelId=e,this.isDetail=r},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(a){i.next=2;break}return i.abrupt("return");case 2:return i.next=4,n.$confirm("确定要改为".concat("1"===t?"禁用":"启用","?"),{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(r.a)(regeneratorRuntime.mark((function a(){var r,i;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return r={roleid:e,status:"1"===t?"0":"1"},a.next=3,s.a.delete(r);case 3:if(!(i=a.sent)||0!==i.code){a.next=9;break}n.$notify.success({title:"状态修改成功",message:""}),n.searchList(),a.next=15;break;case 9:if(i&&100<=i.code&&i.code<=104)return a.next=12,n.logout();a.next=14;break;case 12:a.next=15;break;case 14:n.$message.warning(i.message);case 15:case"end":return a.stop()}}),a)})))).catch((function(){}));case 4:case"end":return i.stop()}}),i)})))()},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)(l,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"supplierPay pagePadding"},[e.powers&&0<e.powers.length&&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 0 80px"}},[a("el-col",{attrs:{span:24}},[a("el-col",{staticStyle:{width:"300px"},attrs:{span:8}},[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),e.powers.some((function(e){return"024"==e}))?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):e._e(),e.powers.some((function(e){return"002"==e}))?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):e._e()],1)],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.openModal(r.row.id,r.row.name,r.row.contector,!0)}}})]):e._e()]}}],null,!1,44139002)}):a("no-auth"),a("add-edit",{attrs:{id:e.modelId,"show-model":e.showModel,"is-detail":e.isDetail,contector:e.contector,name:e.name},on:{refresh:e.searchList,cancel:function(t){e.showModel=!1}}})],1)}),[],!1,null,"4989bed8",null);t.default=i.exports},a140:function(e,t,a){},a19d: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("a15b"),a("159b"),a("3ca3"),a("ddb0"),a("2b3d"),a("9861"),a("a9e3"),a("3264")),o=a("8e23"),s=a("ccd8"),l=a("f5ed"),c=a("7d27"),u=a("2f62"),d=a("9f53"),p=a("5daa"),m=a("61f7");l={name:"orderBatchBilling",mixins:[l.a,d.a],components:{ExTable:i.default,addEdit:o.default,PeriodDatePicker:c.a},computed:Object(n.a)(Object(n.a)({},Object(u.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"orderBatchBilling"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),data:function(){return{showModel:!1,isDetail:!1,selection:[],invNo:"0",status:"0",modelId:0,selectLoading:!1,billType:[{code:"1",name:"确认单开票"},{code:"2",name:"资金开票-资金未认领"},{code:"3",name:"资金开票-资金已认领"}],activeOptions:[],statusOptions:[{id:0,label:"待发起审核"},{id:1,label:"待财务审核"},{id:2,label:"审核驳回"},{id:3,label:"待财务开票"},{id:4,label:"待填写物流"},{id:5,label:"开票已完成"}],name:"",downLoading:!1,code:[],loading:!0,formValue:{company:"",page:1,size:100},fileUrl:p.a.baseURL+"%E5%8F%91%E7%A5%A8%E5%AF%BC%E5%85%A5%E6%A8%A1%E6%9D%BF.xls",parmValue:{companyNo:"",status:"3",type_check:"1",starttime:"",endtime:"",page:1,size:15},tableData:[],table:{stripe:!0,border:!0,_defaultHeader_:["setcol"]},pageInfo:{size:15,curr:1,total:0},columns:[{type:"selection",fixed:"left",_noset_:!0,width:"50"},{prop:"invNo",label:"发票编号",width:"180px",fixed:"left"},{prop:"inv_in",label:"客户企业编码",width:"130px"},{prop:"company",label:"客户企业名称","min-width":"180px"},{prop:"kp_company",label:"销售方开票公司名称","min-width":"180px"},{prop:"inv_value",label:"发票额度",width:"120px"},{prop:"type_check",label:"开票类型",_slot_:"type_check",width:"150px"},{prop:"apply_name",label:"申请人",width:"85px"},{prop:"status",label:"状态",_slot_:"status",width:"120px"},{prop:"addtime",label:"申请时间",sortable:!0,width:"150px"}]}},mounted:function(){this.searchList()},methods:{selectChange: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 a=JSON.parse(JSON.stringify(e.code)),e.parmValue.companyNo=a.join(","),e.parmValue.page=1,t.next=5,e.searchList();case 5:case"end":return t.stop()}}),t)})))()},restSearch:function(){this.pageInfo={size:15,curr:1,total:0},this.parmValue={companyNo:"",status:"3",type_check:"1",starttime:"",endtime:"",page:1,size:15},this.searchList()},timeReturned: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.startTime?t.parmValue.starttime=e.startTime:t.parmValue.starttime="",""!==e.endTime?t.parmValue.endtime=e.endTime:t.parmValue.endtime="",""!==t.parmValue.starttime&&""!==t.parmValue.endtime)return t.parmValue.page=1,a.next=6,t.searchList();a.next=6;break;case 6:case"end":return a.stop()}}),a)})))()},batchExport: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:if(t.downLoading){a.next=10;break}if(e&&0===e.length)return t.$message.warning("至少选择一条数据!"),a.abrupt("return");a.next=4;break;case 4:r=[],e.forEach((function(e){r.push(e.id)})),t.downLoading=!0,n={invid:r.join(",")},i="application/vnd.ms-excel",axios({method:"post",url:p.a.baseURL+"Admin/receiptexport",responseType:"blob",data:n,headers:{Accept:i}}).then((function(e){var a,r;e&&200==e.status&&e.data?(a=new Blob([e.data],{type:i}),a=window.URL.createObjectURL(a),(r=document.createElement("a")).style.display="none",r.href=a,r.setAttribute("download","确认单开票信息导出.xls"),document.body.appendChild(r),r.click(),document.body.removeChild(r),window.URL.revokeObjectURL(a),t.$message.success("确认单开票信息导出成功!")):t.$message.error(e.data.message),setTimeout((function(){t.downLoading=!1}),500)})).catch((function(e){t.downLoading=!1}));case 10: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.starttime&&""===e.parmValue.endtime)return e.$message.error("结束时间不能为空!"),t.abrupt("return");t.next=3;break;case 3:if(""===e.parmValue.starttime&&""!==e.parmValue.endtime)return e.$message.error("开始时间不能为空!"),t.abrupt("return");t.next=6;break;case 6:return e.loading=!0,t.next=9,s.a.list(e.parmValue);case 9:if(!(a=t.sent)||0!==a.code||!a.data){t.next=15;break}e.tableData=a.data.list,e.pageInfo.total=Number(a.data.count),t.next=22;break;case 15:if(a&&100<=a.code&&a.code<=104)return t.next=18,e.logout();t.next=20;break;case 18:t.next=22;break;case 20:e.tableData=[],e.pageInfo.total=0;case 22:e.loading=!1;case 23:case"end":return t.stop()}}),t)})))()},remoteMethod: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.selectLoading=!0,""!==e)return t.activeOptions=[],t.formValue.company=e,a.next=6,s.a.clist(t.formValue);a.next=19;break;case 6:if(!((r=a.sent)&&0===r.code&&r.data&&r.data.list)){a.next=11;break}t.activeOptions=r.data.list,a.next=17;break;case 11:if(r&&100<=r.code&&r.code<=104)return a.next=14,t.logout();a.next=16;break;case 14:a.next=17;break;case 16:t.$message.warning(r.message);case 17:a.next=20;break;case 19:t.activeOptions=[];case 20:t.selectLoading=!1;case 21:case"end":return a.stop()}}),a)})))()},dlTemplate: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:e.downLoading||(e.downLoading=!0,(a=document.createElement("iframe")).src=e.fileUrl+"?time="+Object(m.n)((new Date).valueOf()),a.style.display="none",document.body.appendChild(a),e.$message.success("导入模板下载成功!"),setTimeout((function(){e.downLoading=!1}),500));case 1:case"end":return t.stop()}}),t)})))()}}},d=a("2877"),i=Object(d.a)(l,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"orderBatchBilling pagePadding"},[e.powers&&0<e.powers.length&&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){var r=t.selection;return[a("div",{staticStyle:{width:"100%"}},[a("el-row",{staticStyle:{padding:"0 0 10px 80px"}},[a("el-col",{attrs:{span:24}},[a("el-col",{staticStyle:{width:"296px",padding:"0"},attrs:{span:6}},[a("period-date-picker",{attrs:{start:e.parmValue.starttime,end:e.parmValue.endtime,type:1,width:"135px",size:e.searchSize},on:{timeReturned:function(t){return e.timeReturned(t)}}})],1),e.powers.some((function(e){return"046"==e}))?a("el-col",{staticClass:"fr",staticStyle:{width:"153px"},attrs:{span:4}},[a("el-button",{staticClass:"fr",attrs:{type:"primary",icon:"el-icon-download",size:e.searchSize},on:{click:function(t){return e.batchExport(r)}}},[e._v("批量导出开票信息")])],1):e._e(),a("el-col",{staticClass:"fr",staticStyle:{width:"153px"},attrs:{span:4}},[a("el-button",{staticClass:"fr",attrs:{type:"primary",disabled:e.downLoading,icon:"el-icon-upload2",size:e.searchSize},on:{click:function(t){e.showModel=!0}}},[e._v("批量导入开票信息")])],1),e.powers.some((function(e){return"023"==e}))?a("el-col",{staticClass:"fr",staticStyle:{width:"140px"},attrs:{span:4}},[a("el-button",{staticClass:"fr",attrs:{type:"primary",icon:"el-icon-download",size:e.searchSize,disabled:e.downLoading},on:{click:e.dlTemplate}},[e._v("下载导入模板")])],1):e._e()],1)],1),a("el-row",{staticStyle:{padding:"0"}},[a("el-col",{staticStyle:{width:"460px"},attrs:{span:12}},[a("el-select",{staticStyle:{width:"100%"},attrs:{multiple:"",filterable:"",remote:"","multiple-limit":1,"reserve-keyword":"",size:e.searchSize,placeholder:"公司名称","remote-method":e.remoteMethod,loading:e.selectLoading},on:{change:e.selectChange},model:{value:e.code,callback:function(t){e.code=t},expression:"code"}},e._l(e.activeOptions,(function(e){return a("el-option",{key:e.companyNo,attrs:{label:e.companyName,value:e.companyNo}})})),1)],1),e.powers.some((function(e){return"002"==e}))?a("el-col",{staticClass:"fr",staticStyle:{width:"66px"},attrs:{span:4}},[a("el-button",{staticStyle:{float:"right"},attrs:{size:e.searchSize,type:"primary"},on:{click:e.searchList}},[e._v(" 刷新 ")])],1):e._e(),e.powers.some((function(e){return"024"==e}))?a("el-col",{staticClass:"fr",staticStyle:{width:"66px"},attrs:{span:4}},[a("el-button",{staticClass:"fr",attrs:{type:"warning",size:e.searchSize},on:{click:e.restSearch}},[e._v(" 重置 ")])],1):e._e(),a("el-col",{staticClass:"fr",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)],1)],1)]}},{key:"status",fn:function(t){var r=t.scope;return[a("el-tag",{attrs:{type:"0"==r.row.status?"info":"5"==r.row.status?"success":"2"==r.row.status?"danger":"",size:"mini"},domProps:{textContent:e._s((e.statusOptions.find((function(e){return e.id==r.row.status}))||{}).label||"--")}})]}},{key:"type_check",fn:function(t){var r=t.scope;return[a("el-tag",{attrs:{size:"mini"},domProps:{textContent:e._s((e.billType.find((function(e){return e.code==r.row.type_check}))||{}).name||"--")}})]}}],null,!1,3453119458)}):a("no-auth"),a("add-edit",{attrs:{"show-model":e.showModel},on:{refresh:function(t){return e.searchList()},cancel:function(t){e.showModel=!1}}})],1)}),[],!1,null,"37af88a8",null);t.default=i.exports},a204:function(e,t,a){"use strict";a.r(t);var r=a("1da1"),n=(a("e9c4"),a("96cf"),a("327e")),i={name:"returnTicket",props:["showModel","id","isDetail","dstatus"],mixins:[a("9f53").a],data:function(){return{roleList:[],loading:!1,status:"",title:"添加退票申请",showModelThis:this.showModel,ruleForm:{relaNo:"",backType:"1",type:"2"},rulesThis:this.rules,rules:{relaNo:[{required:!0,message:"请输入原发票编号",trigger:"blur"}],backType:[{required:!0,message:"请选择退款类型",trigger:"change"}]},examForm:{relaNo:"",backType:"1"},examThis:this.examRules,examRules:{backType:[{required:!0,message:"请选择审核状态",trigger:"change"}]}}},watch:{showModel:function(e){(this.showModelThis=e)&&(this.status="",this.initForm())},showModelThis:function(e){e||this.$emit("cancel")}},methods:{closeModel:function(){},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,"003"===e.isDetail)return e.title="添加退票申请",e.rulesThis=e.rules,t.next=7,e.resetForm();t.next=9;break;case 7:t.next=16;break;case 9:return e.rulesThis={},e.examThis=e.examRules,"028"===e.isDetail?e.title="退票业务审核":"029"===e.isDetail?e.title="退票财务审核":e.title="退票财务核销发票",t.next=14,e.resetForm();case 14:return t.next=16,e.initData();case 16:e.status=e.dstatus,e.loading=!1;case 18:case"end":return t.stop()}}),t)})))()},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 t.next=2,n.a.detail({refundNo:e.id});case 2:if(!(a=t.sent)||0!==a.code||!a.data){t.next=8;break}e.ruleForm=a.data,e.ruleForm.backType=e.ruleForm.back_type,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.$message.warning(a.message);case 14: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={relaNo:"",backType:"1",type:"2"}),e.$refs.examForm&&(e.$refs.examForm.resetFields(),e.$refs.examForm.clearValidate(),e.examForm={backType:"1"})}));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;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a)return e.loading=!0,r=JSON.parse(JSON.stringify(e.ruleForm)),r={relaNo:r.relaNo,type:"2",backType:r.backType},t.next=6,n.a.add(r);t.next=23;break;case 6:if(i=t.sent,e.loading=!1,!i||0!==i.code){t.next=15;break}e.$notify.success({title:"添加成功!",message:""}),e.showModelThis=!1,e.$emit("refresh"),t.next=21;break;case 15:if(i&&100<=i.code&&i.code<=104)return t.next=18,e.logout();t.next=20;break;case 18:t.next=21;break;case 20:e.$message.warning(i.message);case 21:t.next=25;break;case 23:return t.abrupt("return",!1);case 25:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()},submitExamForm: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.examForm.validate(function(){var t=Object(r.a)(regeneratorRuntime.mark((function t(a){var r,i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a)return e.loading=!0,JSON.parse(JSON.stringify(e.examForm)),r={refundNo:e.id,status:"028"===e.isDetail?"2":"029"===e.isDetail?"3":"4",remark:""},t.next=6,n.a.status(r);t.next=23;break;case 6:if(i=t.sent,e.loading=!1,!i||0!==i.code){t.next=15;break}e.$notify.success({title:"审核成功!",message:""}),e.showModelThis=!1,e.$emit("refresh"),t.next=21;break;case 15:if(i&&100<=i.code&&i.code<=104)return t.next=18,e.logout();t.next=20;break;case 18:t.next=21;break;case 20:e.$message.warning(i.message);case 21:t.next=25;break;case 23:return t.abrupt("return",!1);case 25:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()}}};a("af0f"),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:"12vh",width:"750px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)"},on:{"update:visible":function(t){e.showModelThis=t},close:e.closeModel}},[t("el-card",{staticStyle:{"margin-top":"-25px"}},[t("el-row",{attrs:{gutter:10}},[t("el-col",{attrs:{span:24}},[t("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",rules:e.rulesThis,"label-width":"110px"}},[t("el-row",[t("el-col",{attrs:{span:24}},[t("el-form-item",{attrs:{label:"原发票编号",prop:"relaNo"}},[t("el-input",{attrs:{placeholder:"如INV0000000000000000",disabled:"003"!==e.isDetail},on:{click:e.openInvoicDialog},model:{value:e.ruleForm.relaNo,callback:function(t){e.$set(e.ruleForm,"relaNo",t)},expression:"ruleForm.relaNo"}})],1)],1),t("el-col",{attrs:{span:24}},[t("el-form-item",{attrs:{label:"退票类型",prop:"backType"}},[t("el-radio-group",{attrs:{disabled:"003"!==e.isDetail},model:{value:e.ruleForm.backType,callback:function(t){e.$set(e.ruleForm,"backType",t)},expression:"ruleForm.backType"}},[t("el-radio",{attrs:{label:"1"}},[e._v("原发票")]),t("el-radio",{attrs:{label:"2"}},[e._v("红冲发票")])],1)],1)],1)],1),"003"!==e.isDetail?t("el-row",[t("el-col",{attrs:{span:24}},[t("el-form-item",{attrs:{size:"mini",label:"原认领企业编号"}},[t("el-input",{attrs:{disabled:""},model:{value:e.ruleForm.customerNo,callback:function(t){e.$set(e.ruleForm,"customerNo",t)},expression:"ruleForm.customerNo"}})],1)],1),t("el-col",{attrs:{span:24}},[t("el-form-item",{attrs:{size:"mini",label:"原认领企业"}},[t("el-input",{attrs:{disabled:""},model:{value:e.ruleForm.companyName,callback:function(t){e.$set(e.ruleForm,"companyName",t)},expression:"ruleForm.companyName"}})],1)],1),t("el-col",{attrs:{span:24}},[t("el-form-item",{attrs:{size:"mini",label:"退票总金额"}},[t("el-input",{attrs:{disabled:""},model:{value:e.ruleForm.refund_fee,callback:function(t){e.$set(e.ruleForm,"refund_fee",t)},expression:"ruleForm.refund_fee"}})],1)],1)],1):e._e()],1)],1),"003"!==e.isDetail?t("el-col",{attrs:{span:24}},[t("el-form",{ref:"examForm",staticClass:"demo-examForm",attrs:{model:e.examForm,"status-icon":"",rules:e.examThis,"label-width":"110px"}},[t("el-form-item",{attrs:{label:"审核状态",prop:"backType"}},[t("el-radio-group",{model:{value:e.examForm.backType,callback:function(t){e.$set(e.examForm,"backType",t)},expression:"examForm.backType"}},[t("el-radio",{attrs:{label:"1",disabled:""}},[e._v("通过")])],1)],1)],1)],1):e._e(),t("el-col",{staticStyle:{"text-align":"right"},attrs:{span:24}},["003"===e.isDetail?t("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("保 存 ")]):t("el-button",{attrs:{type:"primary"},on:{click:e.submitExamForm}},[e._v("保 存 ")]),t("el-button",{on:{click:function(t){e.showModelThis=!1}}},[e._v("关 闭")])],1)],1)],1)],1)}),[],!1,null,"e98c2b24",null);t.default=a.exports},a2c3:function(e,t,a){"use strict";a("742e")},a36b:function(e,t,a){e.exports=a.p+"static/img/404.a57b6f31.png"},a43b3:function(e,t,a){"use strict";a("85a3")},a56b:function(e,t,a){e.exports=a.p+"static/img/loginlan.1ecbd4ab.png"},a717:function(e,t,a){"use strict";a.r(t);var r=a("1da1"),n=(a("96cf"),{name:"fileUpload",props:{accept:String,uploadcondition:{type:Function,default:null}},data:function(){return{}},methods:{handleChange:function(){var e=this.$refs.fileInputer.files;if(0!==e.length){if(!this.uploadcondition(e[0]))return this.$refs.fileInputer.value="",!1;e=e[0],this.$refs.fileInputer.value="",this.$emit("UploadSuccessEvent",{file:e})}}}}),i=(a("60e4"),a("2877")),o=(n=Object(i.a)(n,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("div",{staticClass:"fileBoxInput"},[t("input",{ref:"fileInputer",staticClass:"fileUp",attrs:{accept:e.accept,multiple:!1,type:"file",name:"file"},on:{change:function(t){return e.handleChange(t)}}})])}),[],!1,null,"f9aa9672",null).exports,a("5daa")),s=a("5f87");n={name:"capitalClaim",props:["showModel","id","isDetail","sitem"],components:{excelUpload:n},mixins:[a("9f53").a],data:function(){return{imgAPI:o.a.baseURL,loading:!1,showModelThis:this.showModel,isfile:!1,ruleForm:{execl:""},rules:{execl:[{required:!0,message:"请选择文件",trigger:"change"}]}}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis:function(e){e||this.$emit("cancel")}},methods:{closeModel:function(){},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.isfile=!1,e.loading=!0,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(){e.$refs.ruleForm&&(e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),e.ruleForm={execl:""})}));case 2:case"end":return t.stop()}}),t)})))()},beforeAvatarUpload:function(e){var t=!1;"application/vnd.ms-excel"===e.type&&(t=!0),e=e.size/1024/1024<3;return t||this.$message.error("文件格式不正确!"),e||this.$message.error("文件大小不能超过 3MB!"),this.isfile=!1,t&&e},fileClose:function(){this.isfile=!1,this.ruleForm.execl="",this.$refs.ruleForm.validateField("execl")},UploadErrorEvent:function(){this.isfile=!1,this.$message.error("文件上传失败!"),this.$refs.ruleForm.validateField("execl")},UploadSuccessEvent:function(e){this.isfile=!0,this.ruleForm.execl=e.file,this.$message.success("文件上传成功!"),this.$refs.ruleForm.validateField("execl")},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 n,i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!a){t.next=9;break}e.loading=!0,n=e,(i=new FormData).append("execl",e.ruleForm.execl),i.append("token",Object(s.d)()),axios.post("".concat(n.imgAPI,"Admin/tradecreate"),i).then(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(e.loading=!1,!a||200!==a.status||!a.data){t.next=6;break}0===(r=a.data).code?(e.$notify.success({title:"数据导入成功!",message:""}),e.showModelThis=!1,e.$emit("refresh")):e.$message.error(r.message),t.next=12;break;case 6:if(a&&100<=a.code&&a.code<=104)return t.next=9,e.logout();t.next=11;break;case 9:t.next=12;break;case 11:e.$message.warning(a.message);case 12:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.loading=!1})),t.next=11;break;case 9:return t.abrupt("return",!1);case 11:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()}}},a("768d"),a=Object(i.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:"20vh",width:"700px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)"},on:{"update:visible":function(t){e.showModelThis=t},close:e.closeModel}},[t("el-card",[t("el-row",{attrs:{gutter:10}},[t("el-col",{attrs:{span:24}},[t("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",rules:e.rules,"label-width":"110px"}},[t("el-form-item",{attrs:{label:"表格文件",prop:"execl"}},[t("el-card",{attrs:{shadow:"never","body-style":{padding:"0px"}}},[e.isfile?t("div",{staticClass:"excelUploadRes clear"},[t("i",{staticClass:"el-icon-document fl"}),t("span",{staticClass:"fl"},[e._v(" "+e._s(e.ruleForm.execl.name))]),t("i",{staticClass:"el-icon-close fr",on:{click:e.fileClose}})]):t("div",{staticClass:"excelUploadBox"},[t("i",{staticClass:"el-icon-receiving"}),t("span",{staticClass:"boxM"},[e._v(" 点击此处,上传文件!")]),t("excel-upload",{staticClass:"excelUpload",attrs:{accept:".xls",uploadcondition:e.beforeAvatarUpload},on:{UploadErrorEvent:e.UploadErrorEvent,UploadSuccessEvent:e.UploadSuccessEvent}})],1)])],1)],1)],1),t("el-col",{staticStyle:{"text-align":"right"},attrs:{span:24}},[e.isDetail?e._e():t("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("保 存 ")]),t("el-button",{on:{click:function(t){e.showModelThis=!1}}},[e._v(e._s(e.isDetail?"关 闭":"取 消"))])],1)],1)],1)],1)}),[],!1,null,"2933bf26",null);t.default=a.exports},a775:function(e,t,a){"use strict";a.r(t);var r=a("2909"),n=a("1da1"),i=a("5530"),o=(a("96cf"),a("7db0"),a("d3b7"),a("e9c4"),a("a15b"),a("99af"),a("159b"),a("b0c0"),a("3ca3"),a("ddb0"),a("a9e3"),a("3264")),s=a("c6ef"),l=a("5a3c"),c=a("6f1c"),u=a("6fbb"),d=a("b97c"),p=a("f5ed"),m=a("2f62"),f=a("7d27"),h=a("9f53"),b=a("d20f");p={name:"invoiceApply",mixins:[p.a,h.a],components:{ExTable:o.default,addEdit1:s.default,addEdit2:l.default,addEdit3:c.default,addEdit4:u.default,PeriodDatePicker: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"invoiceApply"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),data:function(){return{showModel1:!1,showModel2:!1,showModel3:!1,showModel4:!1,isDetail:!1,invNo:"0",status:"0",modelId:0,selectLoading:!1,billType:[{code:"1",name:"确认单开票"},{code:"2",name:"资金开票-资金未认领"},{code:"3",name:"资金开票-资金已认领"}],activeOptions:[],statusOptions:[{id:"0",label:"待发起审核"},{id:"1",label:"待财务审核"},{id:"2",label:"审核驳回"},{id:"3",label:"待财务开票"},{id:"4",label:"待填写物流"},{id:"5",label:"开票已完成"}],name:"",code:[],loading:!0,formValue:{company:"",page:1,size:100},parmValue:{companyNo:"",status:"",type_check:"",starttime:"",endtime:"",page:1,size:15},tableData:[],table:{stripe:!0,border:!0,_defaultHeader_:["setcol"]},pageInfo:{size:15,curr:1,total:0},columns:[{type:"selection",fixed:"left",_noset_:!0},{prop:"invNo",label:"发票编号",width:"180px"},{prop:"inv_in",label:"客户企业编码",width:"130px"},{prop:"company",label:"客户企业名称","min-width":"180px"},{prop:"kp_company",label:"销售方开票公司名称","min-width":"180px"},{prop:"inv_value",label:"发票额度",width:"120px"},{prop:"type_check",label:"开票类型",_slot_:"type_check",width:"150px"},{prop:"apply_name",label:"申请人",width:"85px"},{prop:"status",label:"状态",_slot_:"status",width:"120px"},{prop:"addtime",label:"申请时间",width:"145px"},{prop:"post_company",label:"物流公司",width:"100px"},{prop:"post_code",label:"物流编号",width:"150px"},{prop:"",label:"操作",fixed:"right",_noset_:!0,width:"150px",_slot_:"operation"}]}},mounted:function(){this.searchList()},methods:{selectChange:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=JSON.parse(JSON.stringify(e.code)),e.parmValue.companyNo=a.join(","),e.parmValue.page=1,t.next=5,e.searchList();case 5:case"end":return t.stop()}}),t)})))()},batchExport:function(e){var t,n,i=this;this.loading||(0==e.length?this.$message.warning("请至少选择一条数据!"):(this.loading=!0,t=(t=[]).concat.apply(t,Object(r.a)(e)),n=[],t.forEach((function(e){var t=Object.assign({},e);t.type_check=(i.billType.find((function(t){return t.code==e.type_check}))||{}).name||"--",t.status=(i.statusOptions.find((function(t){return t.id==e.status}))||{}).label||"--",n.push(t)})),Promise.all([a.e("chunk-10eafd66"),a.e("chunk-2d0cc0b6")]).then(a.bind(null,"4bf8")).then((function(e){var t=Object(b.a)(["invNo","inv_in","company","kp_company","inv_value","type_check","apply_name","status","addtime","post_company","post_code"],n);e.export_json_to_excel({header:["发票编号","客户企业编码","客户企业名称","销售方开票公司名称","发票额度","开票类型","申请人","状态","申请时间","物流公司","物流编号"],data:t,filename:"".concat("物流信息批量导出")}),i.$message.success("简历批量导出成功!"),setTimeout((function(){i.loading=!1}),500)}))))},restSearch:function(){this.pageInfo={size:15,curr:1,total:0},this.parmValue={companyNo:"",status:"",type_check:"",starttime:"",endtime:"",page:1,size:15},this.searchList()},timeReturned:function(e){var t=this;return Object(n.a)(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(""!==e.startTime?t.parmValue.starttime=e.startTime:t.parmValue.starttime="",""!==e.endTime?t.parmValue.endtime=e.endTime:t.parmValue.endtime="",""!==t.parmValue.starttime&&""!==t.parmValue.endtime)return t.parmValue.page=1,a.next=6,t.searchList();a.next=6;break;case 6:case"end":return a.stop()}}),a)})))()},cancel:function(){this.showModel1=!1,this.showModel2=!1,this.showModel3=!1,this.showModel4=!1},openModal:function(e,t,a,r){this.modelId=e,this.isDetail=t,this.invNo=a,this.status=r,"003"===t||"005"===t||"007"===t?this.showModel1=!0:"029"===t?this.showModel2=!0:"036"===t?this.showModel3=!0:"037"===t&&(this.showModel4=!0)},changeStatus:function(e){var t=this;return Object(n.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(n.a)(regeneratorRuntime.mark((function a(){var r,n;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return r={invNo:e},a.next=3,d.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)})))()},ApplyPay:function(e){var t=this;return Object(n.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(n.a)(regeneratorRuntime.mark((function a(){var r,n;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return r={invNo:e,status:"1"},a.next=3,d.a.status(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(n.a)(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(""!==e.parmValue.starttime&&""===e.parmValue.endtime)return e.$message.error("结束时间不能为空!"),t.abrupt("return");t.next=3;break;case 3:if(""===e.parmValue.starttime&&""!==e.parmValue.endtime)return e.$message.error("开始时间不能为空!"),t.abrupt("return");t.next=6;break;case 6:return e.loading=!0,t.next=9,d.a.list(e.parmValue);case 9:if(!(a=t.sent)||0!==a.code||!a.data){t.next=15;break}e.tableData=a.data.list,e.pageInfo.total=Number(a.data.count),t.next=22;break;case 15:if(a&&100<=a.code&&a.code<=104)return t.next=18,e.logout();t.next=20;break;case 18:t.next=22;break;case 20:e.tableData=[],e.pageInfo.total=0;case 22:e.loading=!1;case 23:case"end":return t.stop()}}),t)})))()},remoteMethod:function(e){var t=this;return Object(n.a)(regeneratorRuntime.mark((function a(){var r;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(t.selectLoading=!0,""!==e)return t.activeOptions=[],t.formValue.company=e,a.next=6,d.a.clist(t.formValue);a.next=19;break;case 6:if(!((r=a.sent)&&0===r.code&&r.data&&r.data.list)){a.next=11;break}t.activeOptions=r.data.list,a.next=17;break;case 11:if(r&&100<=r.code&&r.code<=104)return a.next=14,t.logout();a.next=16;break;case 14:a.next=17;break;case 16:t.$message.warning(r.message);case 17:a.next=20;break;case 19:t.activeOptions=[];case 20:t.selectLoading=!1;case 21:case"end":return a.stop()}}),a)})))()}}},h=a("2877"),o=Object(h.a)(p,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"invoiceApply pagePadding"},[e.powers&&0<e.powers.length&&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){var r=t.selection;return[a("div",{staticStyle:{width:"100%"}},[a("el-row",{staticStyle:{padding:"0 0 10px 80px"}},[a("el-col",{attrs:{span:24}},[a("el-col",{staticStyle:{width:"470px"},attrs:{span:12}},[a("el-select",{staticStyle:{width:"100%"},attrs:{multiple:"",filterable:"",remote:"","multiple-limit":1,"reserve-keyword":"",size:e.searchSize,placeholder:"公司名称","remote-method":e.remoteMethod,loading:e.selectLoading},on:{change:e.selectChange},model:{value:e.code,callback:function(t){e.code=t},expression:"code"}},e._l(e.activeOptions,(function(e){return a("el-option",{key:e.companyNo,attrs:{label:e.companyName,value:e.companyNo}})})),1)],1),e.powers.some((function(e){return"002"==e}))?a("el-col",{staticStyle:{width:"66px",float:"right"},attrs:{span:4}},[a("el-button",{staticStyle:{float:"right"},attrs:{size:e.searchSize,type:"primary"},on:{click:e.searchList}},[e._v(" 刷新 ")])],1):e._e(),e.powers.some((function(e){return"024"==e}))?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):e._e(),e.powers.some((function(e){return"052"==e}))?a("el-col",{staticStyle:{width:"166px",float:"right"},attrs:{span:4}},[a("el-button",{staticClass:"fr",attrs:{type:"primary",size:e.searchSize,disabled:e.loading},on:{click:function(t){return e.batchExport(r)}}},[e._v(" 导出物流信息 ")])],1):e._e()],1)],1),a("el-row",[a("el-col",{attrs:{span:24}},[a("el-col",{staticStyle:{width:"170px"},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.status,callback:function(t){e.$set(e.parmValue,"status",t)},expression:"parmValue.status"}},e._l(e.statusOptions,(function(e){return a("el-option",{key:e.id,attrs:{label:e.label,value:e.id}})})),1)],1),a("el-col",{staticStyle:{width:"200px",padding:"0 0 0 10px"},attrs:{span:7}},[a("el-select",{staticStyle:{width:"100%"},attrs:{size:e.searchSize,clearable:"",placeholder:"开票类型"},on:{change:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.parmValue.type_check,callback:function(t){e.$set(e.parmValue,"type_check",t)},expression:"parmValue.type_check"}},e._l(e.billType,(function(e){return a("el-option",{key:e.code,attrs:{label:e.name,value:e.code}})})),1)],1),a("el-col",{staticStyle:{width:"306px",padding:"0 0 0 10px"},attrs:{span:6}},[a("period-date-picker",{attrs:{start:e.parmValue.starttime,end:e.parmValue.endtime,type:1,width:"135px",size:e.searchSize},on:{timeReturned:function(t){return e.timeReturned(t)}}})],1),a("el-col",{staticStyle:{width:"66px",float:"right"},attrs:{span:3}},[e.powers.some((function(e){return"003"==e}))?a("el-button",{staticStyle:{float:"right"},attrs:{size:e.searchSize,type:"success"},on:{click:function(t){return e.openModal("add","003","0","0")}}},[e._v(" 添加 ")]):e._e()],1),a("el-col",{staticStyle:{width:"54px",float:"right"},attrs:{span:3}},[a("el-button",{staticStyle:{float:"right"},attrs:{size:e.searchSize,type:"primary",icon:"el-icon-search"},on:{click:e.searchList}})],1)],1)],1)],1)]}},{key:"status",fn:function(t){var r=t.scope;return[a("el-tag",{attrs:{type:"0"==r.row.status?"info":"5"==r.row.status?"success":"2"==r.row.status?"danger":"",size:"mini"},domProps:{textContent:e._s((e.statusOptions.find((function(e){return e.id==r.row.status}))||{}).label||"--")}})]}},{key:"type_check",fn:function(t){var r=t.scope;return[a("el-tag",{attrs:{size:"mini"},domProps:{textContent:e._s((e.billType.find((function(e){return e.code==r.row.type_check}))||{}).name||"--")}})]}},{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,"007",r.row.invNo,r.row.status)}}})]):e._e(),e.powers.some((function(e){return"005"==e}))&&"0"===r.row.status||e.powers.some((function(e){return"005"==e}))&&"2"===r.row.status?a("el-tooltip",{attrs:{effect:"dark",content:"修改",placement:"top"}},[a("i",{staticClass:"el-icon-edit tb-icon",on:{click:function(t){return e.openModal(r.row.id,"005",r.row.invNo,r.row.status)}}})]):e._e(),e.powers.some((function(e){return"030"==e}))&&"0"===r.row.status||e.powers.some((function(e){return"030"==e}))&&"2"===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.ApplyPay(r.row.invNo)}}})]):e._e(),e.powers.some((function(e){return"029"==e}))&&"1"===r.row.status?a("el-tooltip",{attrs:{effect:"dark",content:"财务审核",placement:"top"}},[a("i",{staticClass:"el-icon-finished tb-icon",on:{click:function(t){return e.openModal(r.row.id,"029",r.row.invNo,r.row.status)}}})]):e._e(),e.powers.some((function(e){return"036"==e}))&&"3"===r.row.status?a("el-tooltip",{attrs:{effect:"dark",content:"财务开票",placement:"top"}},[a("i",{staticClass:"el-icon-printer tb-icon",on:{click:function(t){return e.openModal(r.row.id,"036",r.row.invNo,r.row.status)}}})]):e._e(),e.powers.some((function(e){return"037"==e}))&&"4"===r.row.status?a("el-tooltip",{attrs:{effect:"dark",content:"填写物流",placement:"top"}},[a("i",{staticClass:"el-icon-truck tb-icon",on:{click:function(t){return e.openModal(r.row.id,"037",r.row.invNo,r.row.status)}}})]):e._e(),e.powers.some((function(e){return"027"==e}))&&"0"===r.row.status||e.powers.some((function(e){return"027"==e}))&&"2"===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.invNo)}}})]):e._e()]}}],null,!1,1981171422)}):a("no-auth"),a("add-edit1",{attrs:{id:e.modelId,"show-model":e.showModel1,"is-detail":e.isDetail,invNo:e.invNo,status:e.status},on:{refresh:e.searchList,cancel:e.cancel}}),a("add-edit2",{attrs:{id:e.modelId,"show-model":e.showModel2,"is-detail":e.isDetail,status:e.status,invNo:e.invNo},on:{refresh:e.searchList,cancel:e.cancel}}),a("add-edit3",{attrs:{id:e.modelId,"show-model":e.showModel3,"is-detail":e.isDetail,status:e.status,invNo:e.invNo},on:{refresh:e.searchList,cancel:e.cancel}}),a("add-edit4",{attrs:{id:e.modelId,"show-model":e.showModel4,"is-detail":e.isDetail,status:e.status,invNo:e.invNo},on:{refresh:e.searchList,cancel:e.cancel}})],1)}),[],!1,null,"39aeab4d",null);t.default=o.exports},a77f:function(e,t,a){"use strict";a("2453")},a838:function(e,t,a){},a95e:function(e,t,a){"use strict";a("431b")},a989:function(e,t,a){"use strict";a("8daf")},a9ad:function(e,t,a){"use strict";a.r(t);var r=a("1da1"),n=(a("96cf"),a("61f7")),i=a("6a1e"),o={name:"Login",mixins:[a("9f53").a],data:function(){var e=this;return{loginForm:{oldPassword:"",newPassword:"",confirmPassword:""},loginRules:{oldPassword:[{required:!0,trigger:"blur",validator:function(e,t,a){""===t?a(new Error("旧密码不能为空!")):!Object(n.b)(t)||t.length<6||18<t.length?a(new Error("旧密码为6-18位数字字母组合!")):Object(n.i)(t)?a(new Error("旧密码不能为纯数字!")):Object(n.o)(t)?a(new Error("旧密码不能为纯字母!")):a()}}],newPassword:[{required:!0,trigger:"blur",validator:function(t,a,r){""===a?r(new Error("新密码不能为空!")):e.loginForm.oldPassword===a?r(new Error("新密码不能与旧密码一致!")):!Object(n.b)(a)||a.length<6||18<a.length?r(new Error("新密码为6-18位数字字母组合!")):Object(n.i)(a)?r(new Error("新密码不能为纯数字!")):Object(n.o)(a)?r(new Error("新密码不能为纯字母!")):r()}}],confirmPassword:[{required:!0,trigger:"blur",validator:function(t,a,r){""===a?r(new Error("确认密码不能为空!")):e.loginForm.newPassword!==a?r(new Error("确认密码与新密码不一致!")):r()}}]},loading:!1,otherQuery:{}}},methods:{handleLogin:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.$refs.loginForm.validate(function(){var t=Object(r.a)(regeneratorRuntime.mark((function t(a){var n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!a){t.next=4;break}e.loading||(e.loading=!0,n={oldpwd:e.loginForm.oldPassword,newpwd:e.loginForm.newPassword},i.a.setpwd(n).then(function(){var t=Object(r.a)(regeneratorRuntime.mark((function t(a){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a&&0===a.code)return e.loading=!1,e.$message.success(a.message),t.next=5,e.logout();t.next=7;break;case 5:t.next=14;break;case 7:if(a&&100<=a.code&&a.code<=104)return t.next=10,e.logout();t.next=12;break;case 10:t.next=14;break;case 12:e.$message.warning(a.message),e.loading=!1;case 14:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())),t.next=6;break;case 4:return t.abrupt("return",!1);case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 1:case"end":return t.stop()}}),t)})))()}}};a("62f7"),a("85db"),a=a("2877"),a=Object(a.a)(o,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("div",{staticClass:"change-password pagePadding"},[t("div",{staticClass:"change"},[t("div",{staticClass:"title"},[e._v(" 设置新登录密码 "),t("el-popover",{attrs:{placement:"top",title:"初始密码:",width:"200",trigger:"click",content:"dingding123"}},[t("i",{staticClass:"el-icon-info",attrs:{slot:"reference"},slot:"reference"})])],1),t("el-form",{ref:"loginForm",staticClass:"login-form",attrs:{model:e.loginForm,rules:e.loginRules,autocomplete:"on","label-position":"right","label-width":"100px"}},[t("el-form-item",{attrs:{prop:"oldPassword",label:"旧密码:"}},[t("el-input",{ref:"oldPassword",attrs:{placeholder:"旧密码",name:"oldPassword",type:"password",tabindex:"1",autocomplete:"on"},model:{value:e.loginForm.oldPassword,callback:function(t){e.$set(e.loginForm,"oldPassword",t)},expression:"loginForm.oldPassword"}})],1),t("el-form-item",{attrs:{prop:"newPassword",label:"新密码:"}},[t("el-input",{ref:"newPassword",attrs:{placeholder:"新密码",name:"newPassword",type:"password",tabindex:"1",autocomplete:"on"},model:{value:e.loginForm.newPassword,callback:function(t){e.$set(e.loginForm,"newPassword",t)},expression:"loginForm.newPassword"}})],1),t("el-form-item",{attrs:{prop:"confirmPassword",label:"确认密码:"}},[t("el-input",{ref:"confirmPassword",attrs:{placeholder:"确认密码",name:"confirmPassword",type:"password",tabindex:"1",autocomplete:"on"},model:{value:e.loginForm.confirmPassword,callback:function(t){e.$set(e.loginForm,"confirmPassword",t)},expression:"loginForm.confirmPassword"}})],1),t("el-button",{staticStyle:{width:"98%",margin:"15px 0 0 5%"},attrs:{loading:e.loading,type:"primary",round:""},nativeOn:{click:function(t){return t.preventDefault(),e.handleLogin(t)}}},[e._v("确认修改")])],1)],1)])}),[],!1,null,"47333433",null);t.default=a.exports},a9b1:function(e,t,a){"use strict";a("41c1")},aadc:function(e,t,a){},ac3e:function(e,t,a){"use strict";var r=a("1b69"),n="Admin/";t.a={list:function(e,t){return Object(r.a)(n+"assoclist",e,"post",t)},clist:function(e,t){return Object(r.a)(n+"customerlist",e,"post",t)},assocadd:function(e,t){return Object(r.a)(n+"assocadd",e,"post",t)},assoccreate:function(e,t){return Object(r.a)(n+"assoccreate",e,"post",t)},exam:function(e,t){return Object(r.a)(n+"assocexam",e,"post",t)},detail:function(e,t){return Object(r.a)(n+"associnfo",e,"post",t)},delete:function(e,t){return Object(r.a)(n+"assocdel",e,"post",t)}}},ad8a:function(e,t,a){"use strict";a("94a4")},ad94:function(e,t,a){"use strict";a("3206")},aea16:function(e,t,a){},aebb:function(e,t,a){"use strict";a("8ca9")},af0f:function(e,t,a){"use strict";a("a140")},af30:function(e,t,a){"use strict";a.r(t);var r=a("1da1"),n=(a("96cf"),a("c740"),{props:["dstatus"],data:function(){return{active:0,status:this.dstatus,dstatusOptions:[{id:"1",label:"待业务审核"},{id:"2",label:"待财务审核"},{id:"3",label:"待财务核销票"},{id:"4",label:"退票已完成"}]}},watch:{dstatus:function(e){this.status=e,""!==this.status&&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:e.active=e.dstatusOptions.findIndex((function(t){return t.id===e.dstatus}));case 1:case"end":return t.stop()}}),t)})))()}}});a=a("2877"),a=Object(a.a)(n,(function(){var e=this.$createElement,t=this._self._c||e;return t("el-steps",{staticStyle:{padding:"12px 0 18px 0"},attrs:{active:this.active,"align-center":"","process-status":"finish"}},this._l(this.dstatusOptions,(function(e,a){return t("el-step",{key:e.name+a,attrs:{title:e.label}})})),1)}),[],!1,null,null,null);t.default=a.exports},b0d1:function(e,t,a){},b0f4:function(e,t,a){"use strict";a("c7e5")},b27c:function(e,t,a){"use strict";a.r(t);var r=a("1da1"),n=a("5530"),i=(a("96cf"),a("7db0"),a("d3b7"),a("f70e")),o=a("f210"),s=a("2f62"),l=a("5daa"),c=a("9f53");o={name:"Account",components:{addEdit:o.default},mixins:[c.a],computed:Object(n.a)(Object(n.a)({},Object(s.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"standBook"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),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.realNewList(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("475b"),c=a("2877"),n=Object(c.a)(o,(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:"申请导出后,文件会在几分钟后生成!",type:"warning"}})],1),e.powers.some((function(e){return"002"==e}))?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):e._e()],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:"updatetime",label:"状态更新时间","min-width":"140"}}),a("el-table-column",{attrs:{prop:"addtime",label:"创建时间","min-width":"140"}}),a("el-table-column",{attrs:{fixed:"right",label:"操作",width:"82"},scopedSlots:e._u([{key:"default",fn:function(t){return[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(a){return e.openModal(t.row)}}})]):e._e(),e.powers.some((function(e){return"049"==e}))&&"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,"72678d1f",null);t.default=n.exports},b32b:function(e,t,a){"use strict";a.r(t);var r=a("1da1"),n=a("ade3"),i=(a("ac1f"),a("1276"),a("4de4"),a("d3b7"),a("e9c4"),a("a15b"),a("96cf"),a("9486")),o={name:"DataShare",props:["showModel","id","isDetail"],mixins:[a("9f53").a],data:function(){var e={loading:!1,title:"添加共享规则",showModelThis:this.showModel,select:"1",activeOptions:[],actionList:[],ruleForm:{collect:[],userid:[],touserid:[],togroupid:[],action:"0"},rulesThis:this.rules,rules:{collect:[{required:!0,message:"请选择共享的菜单",trigger:"change"}],userid:[{required:!0,message:"请选择数据源用户",trigger:"change"}],touserid:[{required:!1,message:"请选择数据共享用户",trigger:"change"}],togroupid:[{required:!1,message:"请选择数据共享用户组",trigger:"change"}],action:[{required:!0,message:"请选择数据权限",trigger:"change"}]},dataForm:{name:"",status:""}};return Object(n.a)(e,"activeOptions",[]),Object(n.a)(e,"groupallList",[]),e},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis:function(e){e||this.$emit("cancel")}},methods:{closeModel:function(){},initForm:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,t.next=3,e.initActionList();case 3:return t.next=5,e.getAllActive();case 5:return t.next=7,e.groupAllActive();case 7:if("add"===e.id)return e.title="添加共享规则",e.rulesThis=e.rules,t.next=12,e.resetForm();t.next=14;break;case 12:t.next=19;break;case 14:return e.isDetail?(e.title="共享规则",e.rulesThis={}):(e.title="修改共享规则",e.rulesThis=e.rules),t.next=17,e.resetForm();case 17:return t.next=19,e.initData();case 19:e.loading=!1;case 20:case"end":return t.stop()}}),t)})))()},initData:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){var a,r,n,o,s,l;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,i.a.detail({id:e.id});case 2:if(!(a=t.sent)||0!==a.code){t.next=21;break}if(l=a.data,r=l.action_collect,n=l.share_user,o=l.to_user,s=l.to_group,l=l.action,e.ruleForm.collect=r.split(","),e.ruleForm.userid=n.split(","),e.ruleForm.touserid=""===o?[]:o.split(","),e.ruleForm.togroupid=""===s?[]:s.split(","),e.ruleForm.action=l,0===e.ruleForm.touserid.length){t.next=14;break}e.select="1",t.next=21;break;case 14:if(a&&100<=a.code&&a.code<=104)return t.next=17,e.logout();t.next=19;break;case 17:t.next=21;break;case 19:e.select="2",e.$message.warning(a.message);case 21:case"end":return t.stop()}}),t)})))()},initActionList: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.actionList({});case 2:if(!(a=t.sent)||0!==a.code){t.next=9;break}r=a.data,r=r.filter((function(e){return e.child&&0<e.child.length})),e.actionList=r,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)})))()},getAllActive: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 t.next=2,i.a.accountall(e.dataForm);case 2:if(!(a=t.sent)||0!==a.code||!a.data){t.next=7;break}e.activeOptions=a.data,t.next=13;break;case 7:if(a&&100<=a.code&&a.code<=104)return t.next=10,e.logout();t.next=12;break;case 10:t.next=13;break;case 12:e.$message.warning(a.message);case 13:case"end":return t.stop()}}),t)})))()},groupAllActive: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 t.next=2,i.a.groupall(e.dataForm);case 2:if(!(a=t.sent)||0!==a.code||!a.data){t.next=7;break}e.groupallList=a.data,t.next=13;break;case 7:if(a&&100<=a.code&&a.code<=104)return t.next=10,e.logout();t.next=12;break;case 10:t.next=13;break;case 12:e.$message.warning(a.message);case 13: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={collect:[],userid:[],touserid:[],togroupid:[],action:"0"})}));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,o,s,l;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!a){t.next=40;break}if(0===e.ruleForm.touserid.length&&"1"===e.select)return e.$message.warning("请选择数据共享用户"),t.abrupt("return");t.next=4;break;case 4:if(0===e.ruleForm.togroupid.length&&"1"!==e.select)return e.$message.warning("请选择数据共享用户组"),t.abrupt("return");t.next=7;break;case 7:if("1"===e.select&&e.ruleForm.userid[0]===e.ruleForm.touserid[0])return e.$message.warning("源用户不能与分享用户一致!"),t.abrupt("return");t.next=10;break;case 10:if(e.loading=!0,n=JSON.parse(JSON.stringify(e.ruleForm)),o=n.collect,s=n.userid,l=n.touserid,r=n.togroupid,n=n.action,o={id:e.id,collect:o.join(),userid:s.join(),touserid:"1"===e.select?l.join():"",togroupid:"1"===e.select?"":r.join(),action:n},s={},"add"===e.id)return delete o.id,t.next=18,i.a.add(o);t.next=21;break;case 18:s=t.sent,t.next=24;break;case 21:return t.next=23,i.a.update(o);case 23:s=t.sent;case 24:if(e.loading=!1,!s||0!==s.code){t.next=32;break}l="add"===e.id?"添加成功":"修改成功",e.$notify.success({title:l,message:""}),e.showModelThis=!1,e.$emit("refresh"),t.next=38;break;case 32:if(s&&100<=s.code&&s.code<=104)return t.next=35,e.logout();t.next=37;break;case 35:t.next=38;break;case 37:e.$message.warning(s.message);case 38:t.next=42;break;case 40:return t.abrupt("return",!1);case 42:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()}}};a("9b20"),a=a("2877"),a=Object(a.a)(o,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:e.title,center:!0,align:"left",top:"18vh",width:"900px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)"},on:{"update:visible":function(t){e.showModelThis=t},close:e.closeModel}},[a("el-card",[a("el-row",{attrs:{gutter:10}},[a("el-col",{attrs:{span:24}},[a("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",rules:e.rulesThis,"label-width":"130px"}},[a("el-form-item",{attrs:{label:"共享的菜单数据",prop:"collect"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{multiple:"",filterable:"",clearable:"",disabled:e.isDetail,placeholder:"请选择菜单数据"},model:{value:e.ruleForm.collect,callback:function(t){e.$set(e.ruleForm,"collect",t)},expression:"ruleForm.collect"}},e._l(e.actionList,(function(t,r){return a("el-option-group",{key:t.menu_name+r,attrs:{label:t.menu_name}},e._l(t.child,(function(e,t){return a("el-option",{key:"item"+e.menu_name+t,attrs:{label:e.menu_name,value:e.id}})})),1)})),1)],1),a("el-form-item",{attrs:{label:"数据源用户",prop:"userid"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{multiple:"",filterable:"",clearable:"","multiple-limit":1,placeholder:"请选择数据源用户",disabled:e.isDetail},model:{value:e.ruleForm.userid,callback:function(t){e.$set(e.ruleForm,"userid",t)},expression:"ruleForm.userid"}},e._l(e.activeOptions,(function(t){return a("el-option",{key:"userid"+t.id,attrs:{label:t.nickname,value:t.id,disabled:"1"!==t.status}},[a("span",{staticStyle:{float:"left"}},[e._v(e._s(t.nickname))]),a("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px",padding:"0 25px 0 0"}},[e._v(e._s(t.role_name))])])})),1)],1),a("el-divider"),a("el-form-item",{attrs:{label:"数据共享对象",required:""}},[a("ul",{staticClass:"dataShare-edit"},[a("li",[a("el-select",{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"}})],1)],1),a("li",["1"===e.select?a("el-select",{staticStyle:{width:"100%"},attrs:{multiple:"",filterable:"","multiple-limit":1,clearable:"",placeholder:"请选择用户",disabled:e.isDetail},model:{value:e.ruleForm.touserid,callback:function(t){e.$set(e.ruleForm,"touserid",t)},expression:"ruleForm.touserid"}},e._l(e.activeOptions,(function(t){return a("el-option",{key:"touserid"+t.id,attrs:{label:t.nickname,value:t.id,disabled:"1"!==t.status}},[a("span",{staticStyle:{float:"left"}},[e._v(e._s(t.nickname))]),a("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px",padding:"0 25px 0 0"}},[e._v(e._s(t.role_name))])])})),1):a("el-select",{staticStyle:{width:"100%"},attrs:{multiple:"",filterable:"","multiple-limit":1,clearable:"",placeholder:"请选择用户组",disabled:e.isDetail},model:{value:e.ruleForm.togroupid,callback:function(t){e.$set(e.ruleForm,"togroupid",t)},expression:"ruleForm.togroupid"}},e._l(e.groupallList,(function(e){return a("el-option",{key:"togroupid"+e.id,attrs:{label:e.group_name,value:e.id,disabled:"1"!==e.status}})})),1)],1)])]),a("el-form-item",{attrs:{label:"共享的数据权限",prop:"action"}},[a("el-radio",{attrs:{label:"0"},model:{value:e.ruleForm.action,callback:function(t){e.$set(e.ruleForm,"action",t)},expression:"ruleForm.action"}},[e._v("只读")]),a("el-radio",{attrs:{label:"1"},model:{value:e.ruleForm.action,callback:function(t){e.$set(e.ruleForm,"action",t)},expression:"ruleForm.action"}},[e._v("读写")])],1)],1)],1),a("el-col",{staticStyle:{"text-align":"right"},attrs:{span:24}},[e.isDetail?e._e():a("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("保 存 ")]),a("el-button",{on:{click:function(t){e.showModelThis=!1}}},[e._v(e._s(e.isDetail?"关 闭":"取 消"))])],1)],1)],1)],1)}),[],!1,null,"635b7fb9",null);t.default=a.exports},b346: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("3264")),o=a("1b69"),s={list:function(e,t){return Object(o.a)("Admin/loglist",e,"post",t)}},l=a("f5ed"),c=a("7d27"),u=a("2f62"),d=a("9f53");l={name:"oplog",mixins:[l.a,d.a],components:{ExTable:i.default,PeriodDatePicker:c.a},computed:Object(n.a)(Object(n.a)({},Object(u.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"oplog"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),data:function(){return{loading:!0,showModel:!1,isDetail:!1,modelId:0,parmValue:{role:"",action:"",event:"",startTime:"",endTime:"",name:"",page:1,size:15},tableData:[],table:{stripe:!0,border:!0,_defaultHeader_:["setcol"]},pageInfo:{size:15,curr:1,total:0},columns:[{prop:"name",label:"账号"},{prop:"rolename",label:"角色"},{prop:"info",label:"模块"},{prop:"url",label:"事件"},{prop:"addtime",label:"操作时间",sortable:!0}]}},mounted:function(){this.searchList()},methods:{restSearch:function(){this.pageInfo={size:15,curr:1,total:0},this.parmValue={role:"",action:"",event:"",startTime:"",endTime:"",name:"",page:1,size:15},this.searchList()},timeReturned:function(e){var t=this;return Object(r.a)(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(""!==e.startTime?t.parmValue.startTime=e.startTime:t.parmValue.startTime="",""!==e.endTime?t.parmValue.endTime=e.endTime:t.parmValue.endTime="",""!==t.parmValue.startTime&&""!==t.parmValue.endTime)return t.parmValue.page=1,a.next=6,t.searchList();a.next=6;break;case 6:case"end":return a.stop()}}),a)})))()},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.delete(n);case 3:if(0!==(i=r.sent).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.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)})))()}}},d=a("2877"),i=Object(d.a)(l,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"oplog pagePadding"},[e.powers&&0<e.powers.length&&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 10px 80px"},attrs:{span:24}},[a("el-col",{staticStyle:{width:"160px"},attrs:{span:3}},[a("el-input",{attrs:{size:e.searchSize,maxlength:40,placeholder:"用户角色"},model:{value:e.parmValue.role,callback:function(t){e.$set(e.parmValue,"role",t)},expression:"parmValue.role"}})],1),a("el-col",{staticStyle:{width:"170px",padding:"0 0 0 10px"},attrs:{span:3}},[a("el-input",{attrs:{maxlength:40,size:e.searchSize,placeholder:"模块名称"},model:{value:e.parmValue.action,callback:function(t){e.$set(e.parmValue,"action",t)},expression:"parmValue.action"}})],1),a("el-col",{staticStyle:{width:"170px",padding:"0 0 0 10px"},attrs:{span:3}},[a("el-input",{attrs:{maxlength:40,size:e.searchSize,placeholder:"操作事件"},model:{value:e.parmValue.event,callback:function(t){e.$set(e.parmValue,"event",t)},expression:"parmValue.event"}})],1),a("el-col",{staticClass:"fr",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)],1),a("el-col",{attrs:{span:24}},[a("el-col",{staticStyle:{width:"322px","padding-right":"0"},attrs:{span:6}},[a("period-date-picker",{attrs:{start:e.parmValue.startTime,end:e.parmValue.endTime,type:1,width:"145px",size:e.searchSize},on:{timeReturned:function(t){return e.timeReturned(t)}}})],1),e.powers.some((function(e){return"002"==e}))?a("el-col",{staticStyle:{width:"66px",float:"right"},attrs:{span:3}},[a("el-button",{staticStyle:{float:"right"},attrs:{size:e.searchSize,type:"primary"},on:{click:e.searchList}},[e._v(" 刷新 ")])],1):e._e(),e.powers.some((function(e){return"024"==e}))?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):e._e()],1)],1)],1)]}}],null,!1,3222546263)}):a("no-auth")],1)}),[],!1,null,"246fcfe4",null);t.default=i.exports},b36d:function(e,t,a){"use strict";a.r(t);var r=a("1da1"),n=(a("96cf"),a("b0c0"),a("21fa")),i=[{code:"001",name:"列表"},{code:"002",name:"刷新"},{code:"003",name:"添加"},{code:"004",name:"启/禁用"},{code:"005",name:"修改"},{code:"006",name:"删除"},{code:"007",name:"详情"},{code:"008",name:"提交"},{code:"009",name:"提交审核"},{code:"010",name:"审核审批"},{code:"011",name:"价格"},{code:"012",name:"复制"},{code:"013",name:"竞标发布"},{code:"014",name:"停止竞标"},{code:"015",name:"发布"},{code:"016",name:"取消发布"},{code:"017",name:"提交新毛利"},{code:"018",name:"上架"},{code:"019",name:"下架"},{code:"020",name:"重置密码"},{code:"021",name:"设为管理员"},{code:"022",name:"取消管理员"},{code:"023",name:"模板下载"},{code:"024",name:"重置"},{code:"025",name:"财务"},{code:"026",name:"上/下架"},{code:"027",name:"取消申请"},{code:"028",name:"业务审核"},{code:"029",name:"财务审核"},{code:"030",name:"发起审核流程"},{code:"031",name:"发票上传"},{code:"032",name:"发票识别结果校对"},{code:"033",name:"财务付款回执"},{code:"034",name:"反馈财务信息"},{code:"035",name:"人工审核发票"},{code:"036",name:"发票回执"},{code:"037",name:"填写物流"},{code:"038",name:"导入数据"},{code:"039",name:"资金认领"},{code:"040",name:"认领审核"},{code:"041",name:"批量设置开票信息"},{code:"042",name:"批量审核开票信息"},{code:"043",name:"付款业务审核"},{code:"044",name:"付款财务审核"},{code:"045",name:"开票业务审核"},{code:"046",name:"批量导出开票信息"},{code:"047",name:"批量导入开票信息"},{code:"048",name:"财务核销发票"},{code:"049",name:"台账导出"},{code:"050",name:"批量设置采购单无需对账状态"},{code:"051",name:"采购单导出"},{code:"052",name:"批量导出物流信息"}],o=a("cdf1"),s=a("9f53");o={components:{iconDialog:o.default},mixins:[s.a],props:["showModel","id","isDetail","parentIds","level","isAdd","type","formData"],data:function(){return{loading:!1,showIconModel:!1,title:"",btnList:i,showModelThis:this.showModel,ruleForm:{},rulesThis:this.rules,rules:{name:[{required:!0,message:"请输入名称",trigger:"blur"},{min:1,max:50,message:"长度在 1 到 50 个字符",trigger:"blur"}],code:[{required:!0,message:"请输入按钮标识编码(用于判断按钮是否显示)",trigger:"blur"},{min:1,max:50,message:"长度在 1 到 50 个字符",trigger:"blur"}],img:[{required:!0,message:"请选择图标",trigger:"blur"}],route:[{required:!0,message:"请输入路由",trigger:"blur"},{min:1,max:50,message:"长度在 1 到 50 个字符",trigger:"blur"}],component:[{required:!0,message:"请输入页面组件路径",trigger:"blur"},{min:1,max:100,message:"长度在 1 到 100 个字符",trigger:"blur"}],weight:[{required:!0,message:"请输入权重,数值越大排名越靠前",trigger:"blur"}],is_show:[{required:!0,message:"请选择状态",trigger:"change"}]}}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis:function(e){e||this.$emit("cancel")}},methods:{closeModel:function(){},codeChange:function(e){for(var t=0;t<this.btnList.length;t++)if(this.btnList[t].code===e){this.ruleForm.name=this.btnList[t].name;break}},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.isAdd)return 1===e.level?e.title="添加一级菜单":2===e.level?e.title="添加二级菜单":e.title="添加按钮",e.loading=!1,e.rulesThis=e.rules,t.next=7,e.resetForm();t.next=9;break;case 7:t.next=13;break;case 9:return e.isDetail?(1===e.level?e.title="一级菜单详情":2===e.level?e.title="二级菜单详情":e.title="按钮详情",e.rulesThis={}):(1===e.level?e.title="修改一级菜单":2===e.level?e.title="修改二级菜单":e.title="修改按钮",e.rulesThis=e.rules),t.next=13,e.initData(e.id);case 13:case"end":return t.stop()}}),t)})))()},initData:function(e){var t=this;return Object(r.a)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.loading=!0,t.isAdd&&0===t.id||t.parentIds,1===t.level?t.ruleForm={parentId:t.id,name:t.formData.menu_name,code:"",img:t.formData.menu_img,route:t.formData.menu_route,component:"",menuCategory:t.level<3?1:2,type:t.type,is_show:t.formData.is_show,weight:parseInt(t.formData.weight)}:2===t.level?t.ruleForm={parentId:t.id,parentIds:t.parentIds,name:t.formData.menu_name,code:"",img:t.formData.menu_img,route:t.formData.menu_route,component:t.formData.menu_url,menuCategory:t.level<3?1:2,type:t.type,is_show:t.formData.is_show,weight:parseInt(t.formData.weight)}:t.ruleForm={parentId:t.id,parentIds:t.formData.menuid,name:t.formData.action_name,code:t.formData.action_code,img:"",route:"",component:"",menuCategory:t.level<3?1:2,type:t.type,is_show:t.formData.status,weight:1},t.loading=!1,e.next=9,t.$nextTick((function(){t.$refs.ruleForm&&t.$refs.ruleForm.clearValidate()}));case 9:case"end":return e.stop()}}),e)})))()},resetForm: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 a="",a=e.isAdd&&0===e.id?"0":e.parentIds,e.ruleForm={parentId:e.id,parentIds:a,name:"",code:"",img:"",route:"",component:"",menuCategory:e.level<3?1:2,type:e.type,is_show:"1",weight:1},t.next=5,e.$nextTick((function(){e.$refs.ruleForm&&e.$refs.ruleForm.clearValidate()}));case 5:case"end":return t.stop()}}),t)})))()},submitForm:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.loading)return t.abrupt("return",!1);t.next=2;break;case 2:return e.loading=!0,t.next=5,e.$refs.ruleForm.validate(function(){var t=Object(r.a)(regeneratorRuntime.mark((function t(a){var r,i,o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!a){t.next=47;break}if(r={},i={},r=1===e.level?{id:e.id,name:e.ruleForm.name,img:e.ruleForm.img,route:e.ruleForm.route,is_show:e.ruleForm.is_show,weight:e.ruleForm.weight}:2===e.level?{id:e.id,pid:e.parentIds,name:e.ruleForm.name,img:e.ruleForm.img,is_show:e.ruleForm.is_show,weight:e.ruleForm.weight,route:e.ruleForm.route,url:e.ruleForm.component}:{id:e.id,menuid:e.parentIds,action_code:e.ruleForm.code,name:e.ruleForm.name,status:e.ruleForm.is_show},e.isAdd&&delete r.id,e.level<3)return t.next=14,n.a.update(r);t.next=17;break;case 14:i=t.sent,t.next=28;break;case 17:if(e.isAdd)return t.next=21,n.a.actionadd(r);t.next=24;break;case 21:i=t.sent,t.next=28;break;case 24:return t.next=27,n.a.actionedit(r);case 27:i=t.sent;case 28:if(e.loading=!1,!i||0!==i.code){t.next=39;break}e.ruleForm={},o=e.isAdd?"添加成功":"修改成功",e.$notify.success({title:o,message:""}),e.showModelThis=!1,o=e.parentIds,0===e.id&&(o="0"),e.$emit("refresh",e.id,o,e.level),t.next=45;break;case 39:if(i&&100<=i.code&&i.code<=104)return t.next=42,e.logout();t.next=44;break;case 42:t.next=45;break;case 44:e.$message.warning(i.message);case 45:t.next=50;break;case 47:return e.loading=!1,t.abrupt("return",!1);case 50:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 5:case"end":return t.stop()}}),t)})))()}}},a("d9b0"),s=a("2877"),a=Object(s.a)(o,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:e.title,center:!0,align:"left",top:"5vh",width:"900px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)","append-to-body":""},on:{"update:visible":function(t){e.showModelThis=t},close:e.closeModel}},[a("el-card",[a("el-row",{attrs:{gutter:10}},[a("el-col",{attrs:{span:24}},[a("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"is_show-icon":"",rules:e.rulesThis,"label-width":"130px"}},[e.level<3?a("el-form-item",{attrs:{label:"名称:",prop:"name"}},[a("el-input",{attrs:{disabled:e.isDetail,placeholder:"例如:用户管理"},model:{value:e.ruleForm.name,callback:function(t){e.$set(e.ruleForm,"name",t)},expression:"ruleForm.name"}})],1):e._e(),3===e.level?a("el-form-item",{attrs:{label:"按钮标识:",prop:"code"}},[a("el-select",{attrs:{placeholder:"请选择按钮标识",clearable:"",filterable:"",disabled:e.isDetail},on:{change:e.codeChange},model:{value:e.ruleForm.code,callback:function(t){e.$set(e.ruleForm,"code",t)},expression:"ruleForm.code"}},e._l(e.btnList,(function(e){return a("el-option",{key:e.code,attrs:{label:e.name,value:e.code}})})),1)],1):e._e(),e.level<3?a("el-form-item",{attrs:{label:"图标:",prop:"img"}},[a("el-row",{attrs:{gutter:10}},[a("el-col",{directives:[{name:"show",rawName:"v-show",value:e.ruleForm.img,expression:"ruleForm.img"}],staticStyle:{width:"45px"},attrs:{span:3}},[a("div",{staticClass:"g-block",on:{click:function(t){e.showIconModel=!0}}},[a("i",{class:e.ruleForm.img})])]),a("el-col",{directives:[{name:"show",rawName:"v-show",value:!e.ruleForm.img,expression:"!ruleForm.img"}],attrs:{span:7}},[a("el-button",{attrs:{type:"warning",size:"mini"},on:{click:function(t){e.showIconModel=!0}}},[e._v(" 选择图标 ")])],1)],1),a("iconDialog",{attrs:{"show-model":e.showIconModel},on:{setVal:function(t){return e.ruleForm.img=t},cancel:function(t){e.showIconModel=!1}}})],1):e._e(),e.level<3?a("el-form-item",{attrs:{label:"路由:",prop:"route"}},[a("el-input",{attrs:{disabled:e.isDetail,placeholder:"例如:user"},model:{value:e.ruleForm.route,callback:function(t){e.$set(e.ruleForm,"route",t)},expression:"ruleForm.route"}})],1):e._e(),2===e.level?a("el-form-item",{attrs:{label:"页面组件路径:",prop:"component"}},[a("el-input",{attrs:{disabled:e.isDetail,placeholder:"例如:park/user"},model:{value:e.ruleForm.component,callback:function(t){e.$set(e.ruleForm,"component",t)},expression:"ruleForm.component"}},[a("template",{slot:"prepend"},[e._v("views/")])],2)],1):e._e(),a("el-form-item",{attrs:{label:"状态:",prop:"is_show"}},[a("el-radio",{attrs:{label:"1",disabled:e.isDetail},model:{value:e.ruleForm.is_show,callback:function(t){e.$set(e.ruleForm,"is_show",t)},expression:"ruleForm.is_show"}},[e._v(" 启用 ")]),a("el-radio",{attrs:{label:"0",disabled:e.isDetail},model:{value:e.ruleForm.is_show,callback:function(t){e.$set(e.ruleForm,"is_show",t)},expression:"ruleForm.is_show"}},[e._v(" 禁用 ")])],1),e.level<3?a("el-form-item",{attrs:{label:"排序权重:",prop:"weight"}},[a("el-row",{attrs:{gutter:10}},[a("el-col",{staticStyle:{padding:"0"},attrs:{span:16}},[a("el-input",{attrs:{type:"number",disabled:e.isDetail},model:{value:e.ruleForm.weight,callback:function(t){e.$set(e.ruleForm,"weight",e._n(t))},expression:"ruleForm.weight"}})],1),a("el-col",{attrs:{span:7}},[a("el-tag",{attrs:{type:"danger"}},[e._v("数值越大排名越靠前")])],1)],1)],1):e._e()],1)],1),a("el-col",{staticStyle:{"text-align":"right"},attrs:{span:24}},[e.isDetail?e._e():a("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v(" 保 存 ")]),a("el-button",{on:{click:function(t){e.showModelThis=!1}}},[e._v(e._s(e.isDetail?"关 闭":"取 消"))])],1)],1)],1)],1)}),[],!1,null,"71b1b102",null);t.default=a.exports},b595:function(e,t,a){"use strict";a("5610")},b8a8:function(e,t,a){"use strict";a("fb1e")},b97c:function(e,t,a){"use strict";var r=a("1b69"),n="Admin/";t.a={list:function(e,t){return Object(r.a)(n+"receiptlist",e,"post",t)},clist:function(e,t){return Object(r.a)(n+"customerlist",e,"post",t)},cwlist:function(e,t){return Object(r.a)(n+"customerinfo",e,"post",t)},qrdlist:function(e,t){return Object(r.a)(n+"qrdlist",e,"post",t)},madd:function(e,t){return Object(r.a)(n+"receiptadd",e,"post",t)},mupdate:function(e,t){return Object(r.a)(n+"receiptedit",e,"post",t)},oadd:function(e,t){return Object(r.a)(n+"receiptcreate",e,"post",t)},oupdate:function(e,t){return Object(r.a)(n+"receiptsave",e,"post",t)},detail:function(e,t){return Object(r.a)(n+"receiptinfo",e,"post",t)},delete:function(e,t){return Object(r.a)(n+"receiptdel",e,"post",t)},status:function(e,t){return Object(r.a)(n+"receiptstatus",e,"post",t)},post:function(e,t){return Object(r.a)(n+"receiptpost",e,"post",t)},invoicelist:function(e,t){return Object(r.a)(n+"invoicelist",e,"post",t)},companylist:function(e,t){return Object(r.a)(n+"companylist",e,"post",t)},receiptbytrade:function(e,t){return Object(r.a)(n+"receiptbytrade",e,"post",t)},editbytrade:function(e,t){return Object(r.a)(n+"editbytrade",e,"post",t)}}},b9e4:function(e,t,a){},ba6c:function(e,t,a){"use strict";var r=a("1b69"),n="Admin/";t.a={list:function(e,t){return Object(r.a)(n+"getreceiptlist",e,"post",t)},clist:function(e,t){return Object(r.a)(n+"customerlist",e,"post",t)},add:function(e,t){return Object(r.a)(n+"tradecreate",e,"post",t)},detail:function(e,t){return Object(r.a)(n+"tradeinfo",e,"post",t)},tradesave:function(e,t){return Object(r.a)(n+"tradesave",e,"post",t)},madd:function(e,t){return Object(r.a)(n+"receiptadd",e,"post",t)},mupdate:function(e,t){return Object(r.a)(n+"receiptedit",e,"post",t)},oadd:function(e,t){return Object(r.a)(n+"receiptcreate",e,"post",t)},oupdate:function(e,t){return Object(r.a)(n+"receiptsave",e,"post",t)},delete:function(e,t){return Object(r.a)(n+"receiptdel",e,"post",t)},status:function(e,t){return Object(r.a)(n+"receiptstatus",e,"post",t)}}},baa6:function(e,t,a){e.exports=a.p+"static/img/developing.750f7ed1.jpg"},bb0a:function(e,t,a){"use strict";a("59fa")},bc68:function(e,t,a){"use strict";a.r(t);var r=a("1da1"),n=a("5530"),i=(a("96cf"),a("7db0"),a("d3b7"),a("b0c0"),a("a9e3"),a("3264")),o=a("203d"),s=a("c3a8"),l=a("f5ed"),c=a("2f62"),u=a("9f53");l={name:"clients",mixins:[l.a,u.a],components:{ExTable:i.default,addEdit:o.default},computed:Object(n.a)(Object(n.a)({},Object(c.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"clients"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),data:function(){return{name:"",contector:"",loading:!0,showModel:!1,isDetail:!1,modelId:0,parmValue:{company:"",page:1,size:15},tableData:[],table:{stripe:!0,border:!0,_defaultHeader_:["setcol"]},pageInfo:{size:15,curr:1,total:0},columns:[{prop:"companyNo",label:"企业客户编码",fixed:"left","min-width":"120"},{prop:"parent",label:"集团"},{prop:"area",label:"大区"},{prop:"companyName",label:"公司名称","min-width":"180"},{prop:"depart",label:"职务"},{prop:"contactor",label:"联系人"},{prop:"mobile",label:"联系方式","min-width":"90"},{prop:"addtime",label:"创建时间","min-width":"140",sortable:!0},{prop:"",label:"操作",fixed:"right",_noset_:!0,_slot_:"operation"}]}},mounted:function(){this.searchList()},methods:{restSearch:function(){this.pageInfo={size:10,curr:1,total:0},this.parmValue={company:"",page:1,size:10},this.searchList()},openModal:function(e,t,a){this.name=t,this.modelId=e,this.isDetail=a,this.showModel=!0},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(a){i.next=2;break}return i.abrupt("return");case 2:return i.next=4,n.$confirm("确定要改为".concat("1"===t?"禁用":"启用","?"),{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(r.a)(regeneratorRuntime.mark((function a(){var r,i;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return r={roleid:e,status:"1"===t?"0":"1"},a.next=3,s.a.delete(r);case 3:if(!(i=a.sent)||0!==i.code){a.next=9;break}n.$notify.success({title:"状态修改成功",message:""}),n.searchList(),a.next=15;break;case 9:if(i&&100<=i.code&&i.code<=104)return a.next=12,n.logout();a.next=14;break;case 12:a.next=15;break;case 14:n.$message.warning(i.message);case 15:case"end":return a.stop()}}),a)})))).catch((function(){}));case 4:case"end":return i.stop()}}),i)})))()},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)(l,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"clients pagePadding"},[e.powers&&0<e.powers.length&&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",[a("el-col",{staticStyle:{padding:"0 0 0 80px"},attrs:{span:24}},[a("el-col",{attrs:{span:8}},[a("el-input",{attrs:{size:e.searchSize,maxlength:40,placeholder:"请输入公司名称/联系人"},model:{value:e.parmValue.company,callback:function(t){e.$set(e.parmValue,"company",t)},expression:"parmValue.company"}})],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}},[e.powers.some((function(e){return"024"==e}))?a("el-button",{staticClass:"fr",attrs:{type:"warning",size:e.searchSize},on:{click:e.restSearch}},[e._v(" 重置 ")]):e._e()],1),a("el-col",{staticStyle:{width:"195px",float:"right"},attrs:{span:3}},[e.powers.some((function(e){return"002"==e}))?a("el-button",{staticStyle:{float:"right","margin-left":"5px"},attrs:{size:e.searchSize,type:"primary"},on:{click:e.searchList}},[e._v(" 刷新 ")]):e._e()],1)],1)],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.openModal(r.row.companyNo,r.row.companyName,!0)}}})]):e._e()]}}],null,!1,1663859808)}):a("no-auth"),a("add-edit",{attrs:{id:e.modelId,"show-model":e.showModel,"is-detail":e.isDetail,name:e.name},on:{refresh:e.searchList,cancel:function(t){e.showModel=!1}}})],1)}),[],!1,null,"55c50e48",null);t.default=i.exports},beb2:function(e,t,a){"use strict";a("584e")},bec2:function(e,t,a){"use strict";a("8b87")},bf2a:function(e,t,a){"use strict";var r=a("1da1"),n=(a("96cf"),a("61f7")),i=a("6a1e"),o=a("9f53");o={props:{mobile:{type:String,default:""}},mixins:[o.a],data:function(){return{num:60,title:"获取验证码",timer:null}},computed:{},methods:{getCode:function(){var e=this;""!==this.mobile&&Object(n.g)(this.mobile)?60===this.num&&i.a.verfiy({mobile:this.mobile}).then(function(){var t=Object(r.a)(regeneratorRuntime.mark((function t(a){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!a||0!==a.code){t.next=4;break}e.timer=setInterval((function(){0!==e.num?(e.title="".concat(e.num,"s后可重发"),e.num--):(clearInterval(e.timer),e.num=60,e.title="获取验证码")}),1e3),t.next=10;break;case 4:if(a&&100<=a.code&&a.code<=104)return t.next=7,e.logout();t.next=9;break;case 7:t.next=10;break;case 9:e.$message.warning(a.message);case 10:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()):this.$emit("mobileErr",!1)}}},a("f36d"),a=a("2877"),a=Object(a.a)(o,(function(){var e=this.$createElement;return(this._self._c||e)("el-button",{staticClass:"send-verification-code",attrs:{type:this.num<60?"info":"primary",plain:this.num<60,disabled:this.num<60},on:{click:this.getCode}},[this._v(this._s(this.title))])}),[],!1,null,"a4e6982a",null);t.a=a.exports},bf96:function(e,t,a){"use strict";a.r(t);var r=a("1da1"),n=a("5530"),i=(a("96cf"),a("7db0"),a("d3b7"),a("f70e")),o=a("f210"),s=a("2f62"),l=a("5daa"),c=a("9f53");o={name:"Account",components:{addEdit:o.default},mixins:[c.a],computed:Object(n.a)(Object(n.a)({},Object(s.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"standBook"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),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("2496"),c=a("2877"),n=Object(c.a)(o,(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),e.powers.some((function(e){return"002"==e}))?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):e._e()],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[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(a){return e.openModal(t.row)}}})]):e._e(),e.powers.some((function(e){return"049"==e}))&&"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},on:{refresh:e.searchList,cancel:function(t){e.showModel=!1}}})],1)}),[],!1,null,"40fae8b6",null);t.default=n.exports},bfb4:function(e,t,a){},bfe0:function(e,t,a){},c026:function(e,t,a){},c090:function(e,t,a){"use strict";a("04c5")},c092:function(e,t,a){"use strict";a.r(t);var r=a("1da1"),n=a("5530"),i=(a("96cf"),a("7db0"),a("d3b7"),a("a15b"),a("159b"),a("a9e3"),a("b680"),a("e9c4"),a("27e6")),o=a("3264"),s=a("f5ed"),l=a("5d51"),c=a("7d27"),u=a("2f62"),d=a("9f53");o={name:"orderEntry",components:{ExTable:o.default,addEdit:l.default,PeriodDatePicker:c.a},mixins:[s.a,d.a],computed:Object(n.a)(Object(n.a)({},Object(u.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"orderEntry"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),data:function(){return{code1:[],code2:[],select:"1",input:"",isDetail:!1,statusOptions:[{id:"0",label:"禁用"},{id:"1",label:"启用"}],pickerOptions:{disabledDate:function(e){var t=(new Date).valueOf();t=864e5*parseInt(t/864e5);return e.getTime()<=t}},showModel:!1,loading:!1,modelId:0,parmValue:{qrdNo:"",cgdNo:"",sale_name:"",cgd_sale:"",endtime:"",starttime:"",khNo:"",supplierNo:"",page:1,size:15},tableData:[],table:{stripe:!0,border:!0,_defaultHeader_:["setcol"]},pageInfo:{size:15,curr:1,total:0},columns:[{type:"expand",label:"",_slot_:"expand"},{prop:"qrdNo",label:"确认单编号",width:"165px"},{prop:"sale_total",label:"销售总额",width:"100px"},{prop:"sale_name",label:"业务员",width:"70px"},{prop:"khNo",label:"企业客户编码",width:"125px"},{prop:"khName",label:"企业客户","min-width":"190px"},{prop:"companyNo",label:"确认单销售公司编码",width:"175px"},{prop:"supperinfo",label:"确认单销售公司","min-width":"190px"},{prop:"cgdNo",label:"采购单号",width:"165px"},{prop:"supplierNo",label:"供应商编号",width:"140px"},{prop:"supplier",label:"供应商","min-width":"190px"},{prop:"ordertime",label:"创建时间",width:"140px"},{prop:"",label:"操作",width:"85px",fixed:"right",_noset_:!0,_slot_:"operation"}]}},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,e.parmValue.qrdNo="1"===e.select?e.input:"",e.parmValue.cgdNo="2"===e.select?e.input:"",e.parmValue.sale_name="3"===e.select?e.input:"",e.parmValue.cgd_sale="4"===e.select?e.input:"",e.parmValue.khNo=e.code1.join(","),e.parmValue.supplierNo=e.code2.join(","),t.next=10,i.a.list(e.parmValue);case 10:if(!(a=t.sent)||0!==a.code||!a.data){t.next=17;break}e.tableData=a.data.list,e.tableData.forEach((function(t){t.apay_fee=e.setnum(t.apay_fee),t.wpay_fee=e.setnum(t.wpay_fee),t.ainv_fee=e.setnum(t.ainv_fee),t.winv_fee=e.setnum(t.winv_fee)})),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)})))()},setnum:function(e){return isNaN(e)||void 0===e||!e&&void 0!==e&&0!=e?"0":parseFloat(e+"").toFixed(2)},searchChange1: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.code1=JSON.parse(JSON.stringify(e)),t.parmValue.page=1,a.next=4,t.searchList();case 4:case"end":return a.stop()}}),a)})))()},searchChange2: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.code2=JSON.parse(JSON.stringify(e)),t.parmValue.page=1,a.next=4,t.searchList();case 4:case"end":return a.stop()}}),a)})))()},timeReturned: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.startTime?t.parmValue.starttime=e.startTime:t.parmValue.starttime="",""!==e.endTime?t.parmValue.endtime=e.endTime:t.parmValue.endtime="",""!==t.parmValue.starttime&&""!==t.parmValue.endtime)return t.parmValue.page=1,a.next=6,t.searchList();a.next=6;break;case 6:case"end":return a.stop()}}),a)})))()},openModal:function(e,t){this.showModel=!0,this.modelId=e,this.isDetail=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,o;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a.loading=!0,n={companyNo:e,status:"1"===t?"0":"1"},r.next=4,i.a.status(n);case 4:if((o=r.sent)&&0===o.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(o&&100<=o.code&&o.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(o.message);case 19:case"end":return r.stop()}}),r)})))).catch((function(){}));case 2:case"end":return n.stop()}}),n)})))()}}},a("d140"),l=a("2877"),c=Object(l.a)(o,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"orderEntry pagePadding"},[e.powers&&0<e.powers.length&&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.parmValue.page=1,e.pageInfo.curr=1,e.searchList()},"screen-submit":function(t){e.parmValue.page=1,e.pageInfo.curr=1,e.searchList()}},scopedSlots:e._u([{key:"table-header",fn:function(t){return[a("div",{staticStyle:{width:"100%"}},[a("el-row",{attrs:{gutter:10}},[a("el-col",{staticStyle:{padding:"0 0 10px 80px"},attrs:{span:24}},[a("el-col",{staticStyle:{width:"306px",padding:"0 0 0 0"},attrs:{span:6}},[a("period-date-picker",{attrs:{start:e.parmValue.starttime,end:e.parmValue.endtime,type:1,width:"140px",size:e.searchSize},on:{timeReturned:function(t){return e.timeReturned(t)}}})],1),a("el-col",{staticStyle:{width:"400px"},attrs:{span:8}},[a("el-input",{attrs:{size:e.searchSize,placeholder:"关键字"},on:{blur:function(t){e.parmValue.page=1,e.pageInfo.curr=1,e.searchList()}},model:{value:e.input,callback:function(t){e.input=t},expression:"input"}},[a("el-select",{staticStyle:{width:"125px"},attrs:{slot:"prepend",placeholder:"请选择"},on:{change:function(t){e.parmValue.page=1,e.pageInfo.curr=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),a("el-button",{attrs:{slot:"append",icon:"el-icon-search"},on:{click:function(t){e.parmValue.page=1,e.pageInfo.curr=1,e.searchList()}},slot:"append"})],1)],1),a("el-col",{staticStyle:{width:"60px",float:"right"},attrs:{span:3}},[e.powers.some((function(e){return"002"==e}))?a("el-button",{staticStyle:{float:"right","margin-left":"10px"},attrs:{size:e.searchSize,type:"primary"},on:{click:e.searchList}},[e._v(" 刷新 ")]):e._e()],1),a("el-col",{staticStyle:{width:"60px",float:"right"},attrs:{span:3}},[e.powers.some((function(e){return"003"==e}))?a("el-button",{staticStyle:{float:"right","margin-left":"10px"},attrs:{size:e.searchSize,type:"success"},on:{click:function(t){return e.openModal("add",!1)}}},[e._v(" 添加 ")]):e._e()],1)],1),a("el-col",{staticStyle:{padding:"0"},attrs:{span:24}},[a("el-col",{staticStyle:{width:"470px"},attrs:{span:8}},[a("search-select",{attrs:{code:e.code1,placeholder:"确认单购买方公司名称",type:"1",size:e.searchSize},on:{end:e.searchChange1}})],1),a("el-col",{staticStyle:{width:"470px"},attrs:{span:8}},[a("search-select",{attrs:{code:e.code2,placeholder:"采购单供应商名称",type:"3",size:e.searchSize},on:{end:e.searchChange2}})],1)],1)],1)],1)]}},{key:"expand",fn:function(t){return t=t.scope,[a("el-form",{staticClass:"demo-table-expand",attrs:{"label-position":"right",size:"mini",inline:"","label-width":"130px"}},[a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{size:"mini",label:"商品名称"}},[a("span",[e._v(e._s(t.row.product_name))])])],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{size:"mini",label:"部门"}},[a("span",[e._v(e._s(t.row.depart))])])],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{size:"mini",label:"单价"}},[a("span",[e._v(e._s(t.row.sale_price))])])],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{size:"mini",label:"数量"}},[a("span",[e._v(e._s(t.row.order_num))])])],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{size:"mini",label:"单据号"}},[a("span",[e._v(e._s(t.row.sequenceNo))])])],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{size:"mini",label:"PO编号"}},[a("span",[e._v(e._s(t.row.poNo))])])],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{size:"mini",label:"税点"}},[a("span",[e._v(e._s(t.row.tax))])])],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{size:"mini",label:"确认单类型"}},[a("span",[e._v(e._s(t.row.qrd_type))])])],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{size:"mini",label:"已回款总金额"}},[a("span",[e._v(e._s(t.row.apay_fee))])])],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{size:"mini",label:"未回款总金额"}},[a("span",[e._v(e._s(t.row.wpay_fee))])])],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{size:"mini",label:"确认单开票金额"}},[a("span",[e._v(e._s(t.row.ainv_fee))])])],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{size:"mini",label:"确认单未开票金额"}},[a("span",[e._v(e._s(t.row.winv_fee))])])],1)],1)],1)]}},{key:"status",fn:function(t){var r=t.scope;return[a("el-tag",{attrs:{type:"0"==r.row.status?"warning":"",size:e.size},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()]}}],null,!1,2842643643)}):a("no-auth"),a("add-edit",{attrs:{id:e.modelId,"show-model":e.showModel,"is-detail":e.isDetail,contector:e.contector,name:e.name},on:{refresh:e.searchList,cancel:function(t){e.showModel=!1}}})],1)}),[],!1,null,"603e8778",null);t.default=c.exports},c1b2:function(e,t,a){"use strict";a("65a7")},c3a8:function(e,t,a){"use strict";var r=a("1b69");t.a={list:function(e,t){return Object(r.a)("Admin/customerlist",e,"post",t)},detail:function(e,t){return Object(r.a)("Admin/customer",e,"post",t)}}},c3b2:function(e,t,a){"use strict";a("6f08")},c420:function(e,t,a){"use strict";a.r(t);var r=a("1da1"),n=a("ade3"),i=a("5530"),o=(a("96cf"),a("7db0"),a("d3b7"),a("a9e3"),a("f5ed")),s=a("1fd2"),l=a("3264"),c=a("6d88"),u=a("1842"),d=a("0ee5"),p=a("2f62"),m=a("9f53");c={name:"Account",components:{addEdit:c.default,ExTable:l.default,resetPassword:u.default},mixins:[o.a,m.a],computed:Object(i.a)(Object(i.a)({},Object(p.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"account"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),data:function(){var e={sitem:null,statusOptions:[{id:"0",label:"禁用"},{id:"1",label:"启用"}],statusList:d.a,loading:!0,showModel:!1,isDetail:!1,modelId:0,parmValue:{name:"",username:"",status:"",page:1,size:15},tableData:[],passwordModel:!1,passwordModelId:0,isPasswordDetail:!1};return Object(n.a)(e,"tableData",[]),Object(n.a)(e,"table",{stripe:!0,border:!0,_defaultHeader_:["setcol"]}),Object(n.a)(e,"pageInfo",{size:15,curr:1,total:0}),Object(n.a)(e,"columns",[{prop:"nickname",label:"真实姓名"},{prop:"role_name",label:"角色名称"},{prop:"mobile",label:"联系电话"},{prop:"email",label:"邮箱"},{prop:"status",label:"状态",_slot_:"status",width:"80px"},{prop:"addtime",label:"创建时间",sortable:!0},{prop:"",label:"操作",fixed:"right",_noset_:!0,_slot_:"operation"}]),e},mounted:function(){this.searchList()},methods:{restSearch:function(){this.parmValue={name:"",username:"",status:"",page:1,size:10},this.searchList()},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},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;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)})))()},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("aebb"),l=a("2877"),u=Object(l.a)(c,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"account pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?a("div",[e.powers&&0<e.powers.length&&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 0 80px"}},[a("el-col",{attrs:{span:24}},[a("el-col",{staticStyle:{width:"120px"},attrs:{span:4}},[a("el-select",{staticStyle:{width:"100%"},attrs:{size:e.searchSize,filterable:"",clearable:"",placeholder:"账号状态"},on:{change:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.parmValue.status,callback:function(t){e.$set(e.parmValue,"status",t)},expression:"parmValue.status"}},e._l(e.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:"150px",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:"160px",padding:"0 0 0 10px"},attrs:{span:4}},[a("el-input",{attrs:{size:e.searchSize,maxlength:40,placeholder:"手机号"},model:{value:e.parmValue.username,callback:function(t){e.$set(e.parmValue,"username",t)},expression:"parmValue.username"}})],1),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),e.powers.some((function(e){return"024"==e}))?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):e._e(),e.powers.some((function(e){return"002"==e}))?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):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"020"==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,2404486374)}):e._e(),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,"5cd1beb5",null);t.default=u.exports},c5b5:function(e,t,a){},c6ef:function(e,t,a){"use strict";a.r(t);var r=a("1da1"),n=(a("96cf"),{name:"invoiceApply",props:["showModel","id","isDetail","status","invNo"],components:{addview:a("8ef8").default},data:function(){return{loading:!1,newTime:0,showModelThis:this.showModel}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis:function(e){e||this.$emit("cancel")}},methods:{closeModel:function(){},initForm:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.newTime=0,e.loading=!0,"003"===e.isDetail?e.title="添加发票申请":"005"===e.isDetail?e.title="修改发票申请":"007"===e.isDetail&&(e.title="发票申请详情"),e.changea(),e.loading=!1;case 5:case"end":return t.stop()}}),t)})))()},refreshAll:function(){this.showModelThis=!1,this.$emit("refresh")},changea:function(){this.newTime=(new Date).valueOf()}}});a("dc7c"),a=a("2877"),a=Object(a.a)(n,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:e.title,center:!0,align:"left",top:"8vh",width:"1024px","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:e.closeModel}},[t("el-card",{staticStyle:{height:"700px","margin-top":"-25px"}},[t("addview",{attrs:{id:e.id,newTime:e.newTime,"show-model":e.showModel,"is-detail":e.isDetail,invNo:e.invNo,status:e.status},on:{refreshAll:e.refreshAll}})],1)],1)}),[],!1,null,"32753832",null);t.default=a.exports},c723:function(e,t,a){"use strict";a("aea16")},c7e5:function(e,t,a){},c7f0:function(e,t,a){"use strict";var r=a("1da1"),n=(a("d3b7"),a("b0c0"),a("99af"),a("96cf"),a("5daa")),i=a("5f87"),o={name:"Upload",props:{accept:String,multiple:{type:Boolean,default:!1},uploadcondition:{type:Function,default:null}},data:function(){return{loading:!1,imgAPI:n.a.baseURL}},methods:{handleChange:function(e){var t=this;return Object(r.a)(regeneratorRuntime.mark((function e(){var a,r,n,i,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=(a=t).$refs.inputer,r=r.files,0===(n=r.length))return e.abrupt("return");e.next=7;break;case 7:a.loading=a.$loading({lock:!0,text:"Loading",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.7)"}),i=0;case 9:if(!(i<=n)){e.next=22;break}if(i!==n){e.next=15;break}t.loading.close(),a.$refs.inputer.value="",e.next=19;break;case 15:return e.next=17,a.httpupLoad(r,i);case 17:"error"===(o=e.sent)?a.$emit("UploadErrorEvent"):a.$emit("UploadSuccessEvent",{url:o});case 19:i++,e.next=9;break;case 22:case"end":return e.stop()}}),e)})))()},httpupLoad:function(e,t){var a=this;return Object(r.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",new Promise((function(r,n){var o,s=a;a.uploadcondition(e[t])?((o=new FormData).append("image",e[t]),o.append("token",Object(i.d)()),axios.post("".concat(s.imgAPI,"Admin/upload"),o).then((function(e){var t;e&&e.data&&200===e.status&&e.data.data?(t=(e=e.data.data[0]).url,e=e.name,r({url:"".concat(s.imgAPI,"storage/").concat(t),name:e})):n()})).catch((function(e){n()}))):r("break")})));case 1:case"end":return r.stop()}}),r)})))()}}};a("e4f0"),a=a("2877"),a=Object(a.a)(o,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("div",[t("input",{ref:"inputer",staticClass:"fileUp",attrs:{accept:e.accept,multiple:e.multiple,type:"file",name:"file"},on:{change:function(t){return e.handleChange(t)}}})])}),[],!1,null,"02b4fcc4",null);t.a=a.exports},c8a8:function(e,t,a){},c93a:function(e,t,a){"use strict";a("94ce")},c94c:function(e,t,a){"use strict";a.r(t);var r=a("1da1"),n=(a("96cf"),a("3c00")),i={name:"supplierPay",props:["showModel","id","isDetail","name","contector"],mixins:[a("9f53").a],data:function(){return{startVal:0,endVal:2017,loading:!1,title:"供应商财务概况",showModelThis:this.showModel,resData:{payment:{already:0,wait:0},invoice:{already:0,wait:0}},surveyList:[{title:"款项概况:",unit:"元",purchaseSupplier:[{title:"",child:[{label:"已付:",num:this.resData&&this.resData.payment&&this.resData.payment.already&&this.resData.payment.already.total?this.resData.payment.already.total:0},{label:"未付:",num:this.resData&&this.resData.payment&&this.resData.payment.wait&&this.resData.payment.wait.total?this.resData.payment.wait.total:0}]}]},{title:"发票概况:",unit:"元",purchaseSupplier:[{title:"",child:[{label:"已核销:",num:this.resData&&this.resData.invoice&&this.resData.invoice.already&&this.resData.invoice.already.total?this.resData.invoice.already.total:0},{label:"未核销:",num:this.resData&&this.resData.invoice&&this.resData.invoice.wait&&this.resData.invoice.wait.total?this.resData.invoice.wait.total:0}]}]},{title:"采购单概况:",unit:"单",purchaseSupplier:[{title:"款项:",child:[{label:"已付:",num:this.resData&&this.resData.payment&&this.resData.payment.already&&this.resData.payment.already.num?this.resData.payment.already.num:0},{label:"未付:",num:this.resData&&this.resData.payment&&this.resData.payment.wait&&this.resData.payment.wait.num?this.resData.payment.wait.num:0}]},{title:"款项:",child:[{label:"已核销:",num:this.resData&&this.resData.invoice&&this.resData.invoice.already&&this.resData.invoice.already.num?this.resData.invoice.already.num:0},{label:"未核销:",num:this.resData&&this.resData.invoice&&this.resData.invoice.wait&&this.resData.invoice.wait.num?this.resData.invoice.wait.num:0}]}]}]}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis:function(e){e||this.$emit("cancel")}},methods:{closeModel:function(){},initForm:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,t.next=3,e.initData();case 3:e.loading=!1;case 4:case"end":return t.stop()}}),t)})))()},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 t.next=3,n.a.detail({id:e.id});case 3:if(!(a=t.sent)||0!==a.code){t.next=16;break}e.resData=a.data,e.surveyList[0].purchaseSupplier[0].child[0].num=e.resData.payment.already.total,e.surveyList[0].purchaseSupplier[0].child[1].num=e.resData.payment.wait.total,e.surveyList[1].purchaseSupplier[0].child[0].num=e.resData.invoice.already.total,e.surveyList[1].purchaseSupplier[0].child[1].num=e.resData.invoice.wait.total,e.surveyList[2].purchaseSupplier[0].child[0].num=e.resData.payment.already.num,e.surveyList[2].purchaseSupplier[1].child[0].num=e.resData.invoice.already.num,e.surveyList[2].purchaseSupplier[0].child[1].num=e.resData.payment.wait.num,e.surveyList[2].purchaseSupplier[1].child[1].num=e.resData.invoice.wait.num,t.next=22;break;case 16:if(a&&100<=a.code&&a.code<=104)return t.next=19,e.logout();t.next=21;break;case 19:t.next=22;break;case 21:e.$message.warning(a.message);case 22:case"end":return t.stop()}}),t)})))()}}};a("d07c"),a=a("2877"),a=Object(a.a)(i,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:e.title,center:!0,align:"left",top:"15vh",width:"900px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)"},on:{"update:visible":function(t){e.showModelThis=t},close:e.closeModel}},[a("el-card",{staticClass:"add"},[a("el-row",{attrs:{gutter:40}},[a("el-col",{staticStyle:{padding:"0 0 12px 0"},attrs:{span:24}},[e.name?a("el-col",{attrs:{span:12}},[a("span",[e._v("公司名称:")]),a("span",[e._v(e._s(e.name))])]):e._e(),e.contector?a("el-col",{attrs:{span:12}},[a("span",[e._v("联系人:")]),a("span",[e._v(e._s(e.contector))])]):e._e()],1),a("el-col",{attrs:{span:24}},[a("el-row",{attrs:{gutter:20}},e._l(e.surveyList,(function(t,r){return a("el-col",{key:t.title+r,style:{marginTop:2===r?"20px":0},attrs:{span:2===r?24:12}},[a("div",{staticClass:"grid-content bg-purple"},[a("div",{staticClass:"survey-title"},[e._v(e._s(t.title))]),e._l(t.purchaseSupplier,(function(n,i){return a("div",{key:n.title+i,staticClass:"survey-main"},[a("el-row",{attrs:{gutter:20}},e._l(n.child,(function(n,i){return a("el-col",{key:n.label+i,staticClass:"lh40 tc",attrs:{span:2===r?12:24}},[a("span",[e._v(e._s(n.label))]),a("span",[e._v(" "+e._s(n.num)+e._s(t.unit))])])})),1)],1)}))],2)])})),1)],1)],1)],1)],1)}),[],!1,null,"5aa1b4e9",null);t.default=a.exports},c9be:function(e,t,a){"use strict";a.r(t);var r={name:"headTemplate",props:["title","dashdIndex","type"],data:function(){return{}},methods:{}};a("ad94"),a=a("2877"),a=Object(a.a)(r,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("div",{staticClass:"relationQueryhead"},[t("el-row",{staticClass:"body"},[t("el-col",{staticClass:"tc",attrs:{span:24}},[t("div",[e._v(e._s(e.title)+"核销")])]),t("el-col",{staticStyle:{width:"200px"},attrs:{span:8}},[t("div",[e._v("编号")])]),1===e.dashdIndex?t("el-col",{staticClass:"setWidth",attrs:{span:8}},[t("div",[e._v("企业名称")])]):e._e(),1===e.dashdIndex?t("el-col",{staticStyle:{width:"110px"},attrs:{span:8}},[t("div",[e._v(" "+e._s("1"===e.type||"2"===e.type?"资金":"确认单")+"总额 ")])]):e._e(),1===e.dashdIndex?t("el-col",{staticStyle:{width:"110px"},attrs:{span:8}},[t("div",[e._v(" "+e._s("1"!==e.type&&"2"===e.type?"确认单":"发票")+"总额 ")])]):e._e(),1!==e.dashdIndex?t("el-col",{staticStyle:{width:"110px"},attrs:{span:8}},[t("div",[e._v(e._s(e.title)+"总额")])]):e._e()],1)],1)}),[],!1,null,"3e4a0dfa",null);t.default=a.exports},c9d2:function(e,t,a){},cafe:function(e,t,a){},cc57:function(e,t,a){},ccd8:function(e,t,a){"use strict";var r=a("1b69"),n="Admin/";t.a={list:function(e,t){return Object(r.a)(n+"receiptlist",e,"post",t)},clist:function(e,t){return Object(r.a)(n+"customerlist",e,"post",t)},receiptexport:function(e,t){return Object(r.a)(n+"receiptexport",e,"post",t)},receiptimport:function(e,t){return Object(r.a)(n+"receiptimport",e,"post",t)}}},cd23:function(e,t,a){"use strict";a("81d5")},cdf1:function(e,t,a){"use strict";a.r(t);var r={props:["showModel"],data:function(){return{loading:!1,icon:"",showModelThis:this.showModel}},watch:{icon:function(e){e&&(this.showModelThis=!1,this.$emit("setVal",e))},showModel:function(e){this.showModelThis=e},showModelThis:function(e){e||this.$emit("cancel")}},methods:{closeModel:function(){}}};a=a("2877"),a=Object(a.a)(r,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:"选择图标",center:!0,align:"left",top:"7vh",width:"840px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)","append-to-body":""},on:{"update:visible":function(t){e.showModelThis=t},close:e.closeModel}},[t("el-card",[t("el-row",{attrs:{gutter:10}},[t("el-col",{attrs:{span:24}},[t("icon-list",{model:{value:e.icon,callback:function(t){e.icon=t},expression:"icon"}})],1),t("el-col",{staticStyle:{"text-align":"right"},attrs:{span:24}},[t("el-button",{on:{click:function(t){e.showModelThis=!1}}},[e._v("取 消")])],1)],1)],1)],1)}),[],!1,null,null,null);t.default=a.exports},cf12:function(e,t,a){"use strict";var r=a("1b69"),n="Admin/";t.a={list:function(e,t){return Object(r.a)(n+"assocall",e,"post",t)},clist:function(e,t){return Object(r.a)(n+"customerlist",e,"post",t)},detail:function(e,t){return Object(r.a)(n+"assocrela",e,"post",t)}}},d07c:function(e,t,a){"use strict";a("60c0")},d0b8:function(e,t,a){"use strict";a.r(t);var r=a("1da1"),n=(a("d3b7"),a("159b"),a("b0c0"),a("ac1f"),a("1276"),a("e9c4"),a("a434"),a("96cf"),a("3ef2")),i=a("c7f0"),o=a("9f53");i={name:"orderRecord",props:["id","newTime","payNo","dstatus","companyNo"],components:{Upload:i.a},mixins:[o.a],data:function(){return{image:[],loading:!1,show:!1,ruleForm:{sid:this.id,image:[]},feedbacksThis:this.feedbacks,feedbacks:{image:[{required:!0,message:"请选择发票照片",trigger:"change"}]}}},watch:{newTime:function(e,t){e!==t&&this.initForm()}},mounted:function(){this.initForm()},methods:{open:function(){this.show=!0},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.feedbacksThis=e.feedbacks,t.next=4,e.resetForm();case 4:return t.next=6,e.initData();case 6:e.loading=!1;case 7:case"end":return t.stop()}}),t)})))()},resetForm:function(){var e=this;return Object(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={sid:e.id,image:[]})}));case 2:case"end":return t.stop()}}),t)})))()},initData:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){var a,r,i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n.a.invoiceinfo({sid:e.id});case 2:if(!((a=t.sent)&&0===a.code&&a.data&&a.data.invoice)){t.next=11;break}r=a.data.invoice||[],i=[],0<r.length&&r.forEach((function(e){e={id:e.id,image:e.image,status:e.status,name:e.name,remark:e.remark?e.remark.split(";"):"",show:!1},i.push(e)})),e.ruleForm={sid:e.id,image:i},e.$refs.ruleForm.clearValidate(),t.next=17;break;case 11:if(a&&100<=a.code&&a.code<=104)return t.next=14,e.logout();t.next=16;break;case 14:t.next=17;break;case 16:e.$message.warning(a.message);case 17:case"end":return t.stop()}}),t)})))()},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,o,s;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!a){t.next=33;break}if(e.loading=!0,r=JSON.parse(JSON.stringify(e.ruleForm)),i=!0,o=[],r.image.forEach((function(e){"3"!==e.status&&"4"!==e.status||(i=!1),""===e.id&&(e={url:e.image,name:e.name},o.push(e))})),i){t.next=10;break}return e.$message.error("存在识别异常或审核失败图片!"),t.abrupt("return");case 10:if(0<o.length)return r.image=o,s={},t.next=15,n.a.invoiceadd(r);t.next=29;break;case 15:if((s=t.sent)&&0===s.code)return t.next=19,e.invoicecheck();t.next=21;break;case 19:t.next=27;break;case 21:if(s&&100<=s.code&&s.code<=104)return t.next=24,e.logout();t.next=26;break;case 24:t.next=27;break;case 26:e.$message.warning(s.message);case 27:t.next=31;break;case 29:return t.next=31,e.invoicecheck();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)})))()},invoicecheck: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 t.next=2,n.a.invoicecheck({sid:e.id,type:1});case 2:if((a=t.sent)&&0===a.code)return t.next=6,e.invoiceSuccess();t.next=8;break;case 6: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.$message.warning(a.message);case 14:e.loading=!1;case 15:case"end":return t.stop()}}),t)})))()},invoiceSuccess:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.$notify.success({title:"发票上传成功!",message:"系统正在努力识别发票,请等待识别结果!"}),e.showModelThis=!1,e.$emit("refreshAll");case 4:case"end":return t.stop()}}),t)})))()},closeImg:function(e,t){var a=this;return Object(r.a)(regeneratorRuntime.mark((function r(){var i;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t)return a.loading=!0,r.next=4,n.a.invoicedel({id:t});r.next=19;break;case 4:if(!(i=r.sent)||0!==i.code){r.next=10;break}a.ruleForm.image.splice(e,1),a.$refs.ruleForm.validateField("image"),r.next=16;break;case 10:if(i&&100<=i.code&&i.code<=104)return r.next=13,a.logout();r.next=15;break;case 13:r.next=16;break;case 15:a.$message.warning(i.message);case 16:a.loading=!1,r.next=21;break;case 19:a.ruleForm.image.splice(e,1),a.$refs.ruleForm.validateField("image");case 21:case"end":return r.stop()}}),r)})))()},UploadErrorEvent:function(){this.$message.error("图片上传失败!"),this.$refs.ruleForm.validateField("image")},UploadSuccessEvent:function(e){var t;e&&e.url&&"break"!==e.url&&(t=(e=e.url).url,e=e.name,this.ruleForm.image.push({id:"",image:t,name:e}),this.$message.success("图片上传成功!"),this.$refs.ruleForm.validateField("image"))},beforeAvatarUpload:function(e){var t=!1,a=!1;return e&&("image/jpg"!==e.type&&"image/png"!==e.type&&"image/bmp"!==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}}},a("399c"),o=a("2877"),a=Object(o.a)(i,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-row",[a("el-col",{attrs:{span:24}},[a("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,rules:e.feedbacksThis,"label-width":"130px"}},[a("el-row",{attrs:{gutter:10}},[a("el-col",{attrs:{span:24}},[a("el-form-item",{staticClass:"activity-upload",attrs:{label:"发票照片",prop:"image"}},[a("div",{directives:[{name:"viewer",rawName:"v-viewer"}],staticClass:"img-list-main clearfix"},[e._l(e.ruleForm.image,(function(t,r){return a("div",{key:t.image+r,staticClass:"img-item",class:{error:"4"===t.status||"2"===t.status},on:{mouseenter:function(e){t.show=!0},mouseout:function(e){t.show=!1}}},[a("img",{staticClass:"avatar",class:{error:"4"===t.status||"2"===t.status},attrs:{src:t.image}}),a("p",{staticClass:"img_name"},[e._v(e._s(t.name))]),a("i",{staticClass:"el-icon-close",on:{click:function(a){return e.closeImg(r,t.id)}}}),"4"===t.status||"2"===t.status?a("ul",{staticClass:"error-m",class:{show:t.show,close:!t.show},on:{mouseenter:function(e){t.show=!0},mouseout:function(e){t.show=!1}}},e._l(t.remark,(function(r){return a("li",{key:r,on:{mouseenter:function(e){t.show=!0},mouseout:function(e){t.show=!1}}},[e._v(" "+e._s(r)+" ")])})),0):e._e()])})),e.ruleForm.image.length<101?a("div",{staticClass:"btnupload",staticStyle:{position:"relative"},on:{click:e.open}},[a("i",{staticClass:"el-icon-plus avatar-uploader-icon"}),a("Upload",{staticClass:"Upload",attrs:{accept:".jpg,.png,.bmp,.jpeg",multiple:!0,uploadcondition:e.beforeAvatarUpload},on:{UploadErrorEvent:e.UploadErrorEvent,UploadSuccessEvent:e.UploadSuccessEvent}})],1):e._e()],2),a("div",{staticClass:"txt-tips fl"},[a("p",[a("span",{attrs:{sty:""}},[e._v("大小:小于1MB;")]),a("span",[e._v("尺寸:250*160;")]),a("span",[e._v("类型:jpg.png.bmp.jpeg")])])])])],1)],1)],1)],1),a("el-col",{staticStyle:{"text-align":"right"},attrs:{span:24}},[a("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("保 存 ")])],1)],1)}),[],!1,null,"968ab5fa",null);t.default=a.exports},d140:function(e,t,a){"use strict";a("2cc4")},d160:function(e,t,a){"use strict";a.r(t);var r=a("5530"),n=(a("7db0"),a("d3b7"),a("9f53")),i=a("5daa"),o=a("8961"),s=a("bf96"),l=a("1c20"),c=a("b27c"),u=a("2f62");n={name:"standBook",mixins:[n.a],components:{realTimeExport:o.default,preExport:s.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"standBook"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),data:function(){return{activeName:"1",loading:!1,fileUrl:i.a.baseURL}},mounted:function(){this.activeName="1"},methods:{}},a("b0f4"),o=a("2877"),s=Object(o.a)(n,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("div",{staticClass:"standBook pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[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")],1),t("el-tab-pane",{attrs:{label:"实时导出-新",name:"2"}},[t("real-time-export-new")],1),t("el-tab-pane",{attrs:{label:"预约导出",name:"3"}},[t("pre-export")],1),t("el-tab-pane",{attrs:{label:"往年数据导出",name:"4"}},[t("history-data")],1)],1)],1):t("no-auth")],1)}),[],!1,null,"30043e27",null);t.default=s.exports},d1ee:function(e,t,a){"use strict";a.r(t);var r=a("1da1"),n=(a("96cf"),a("d3b7"),a("159b"),a("5bcd")),i=a("6810"),o=a("e3ad");n={name:"orderRecord",props:["showModel","id","isDetail","dstatus","payNo","companyNo"],components:{addView:n.default,stepBar:i.default,proofreading:o.default},data:function(){return{activeNames:"2",newTime:0,activeName:"-1",showView:!0,loading:!1,title:"校验识别结果",showModelThis:this.showModel}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis:function(e){e||this.$emit("cancel")}},methods:{closeModel:function(){},refreshAll:function(){this.showModelThis=!1,this.$emit("refresh")},setTotal:function(e){if(!(0<e.length))return[];e.forEach((function(e){}))},initForm:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.activeNames="2",e.changea();case 4:case"end":return t.stop()}}),t)})))()},changea:function(){this.newTime=(new Date).valueOf()},setActiveName:function(){this.loading=!0,this.loading=!1}}},a("a989"),i=a("2877"),o=Object(i.a)(n,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:e.title,center:!0,align:"left",top:"10vh",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:e.closeModel}},[t("el-card",{staticStyle:{"margin-top":"-15px",height:"685px"}},[t("stepBar",{attrs:{id:e.modelId,payNo:e.payNo,dstatus:e.dstatus},on:{refresh:e.searchList}}),t("el-collapse",{attrs:{accordion:""},model:{value:e.activeNames,callback:function(t){e.activeNames=t},expression:"activeNames"}},[t("el-collapse-item",{attrs:{title:"对账详情",name:"1"}},[t("add-view",{attrs:{id:e.id,isDetail:e.isDetail,newTime:e.newTime,payNo:e.payNo,companyNo:e.companyNo},on:{refreshAll:e.refreshAll}})],1),t("el-collapse-item",{attrs:{title:"校验识别结果",name:"2"}},[t("proofreading",{attrs:{id:e.id,newTime:e.newTime,dstatus:e.dstatus,payNo:e.payNo,companyNo:e.companyNo},on:{refreshAll:e.refreshAll}})],1)],1)],1)],1)}),[],!1,null,"11972be2",null);t.default=o.exports},d20f:function(e,t,a){"use strict";function r(e,t){return t.map((function(t){return e.map((function(e){return t[e]}))}))}a.d(t,"a",(function(){return r})),a("d81d")},d313:function(e,t,a){"use strict";a.r(t);var r=a("1da1"),n=(a("96cf"),a("a434"),a("e9c4"),a("d81d"),a("d3b7"),a("159b"),a("c740"),a("ff7e")),i={name:"supplierPay",props:["showModel","tableData"],mixins:[a("9f53").a],data:function(){return{loading:!1,title:"批量设置开票信息",selectLoading:!1,activeOptions:[],code:[],list:[],ruleForm:{status:"",remark:""},rule:{},rules:{status:[{required:!0,message:"请选择审核状态",trigger:"change"}],remark:[{required:!1,message:"请输入审核备注",trigger:"blur"}]},multipleSelection:[],showModelThis:this.showModel}},watch:{showModel:function(e){e&&this.initForm(),this.showModelThis=e},showModelThis:function(e){e||this.$emit("cancel")}},methods:{closeModel:function(){},deleteRow:function(e,t){t.splice(e,1)},handleSelectionChange:function(e){this.multipleSelection=e},radioChange:function(){"3"===this.ruleForm.status?this.rules.remark[0].required=!0:this.rules.remark[0].required=!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:return e.loading=!0,e.multipleSelection=[],e.rule=e.rules,t.next=5,e.resetForm();case 5:e.$nextTick((function(){e.list=[],e.tableData&&0<e.tableData.length&&(e.list=JSON.parse(JSON.stringify(e.tableData)),e.list.map((function(e){return e.companyNo=e.inv_company,e.company_name=e.inv_company_name,e.status="",e.remark="",e})))})),e.loading=!1;case 8:case"end":return t.stop()}}),t)})))()},resetForm:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$nextTick((function(){e.$refs.ruleForm&&(e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),e.ruleForm={status:"2",remark:""})}));case 2:case"end":return t.stop()}}),t)})))()},batchSet:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.ruleForm.validate(function(){var t=Object(r.a)(regeneratorRuntime.mark((function t(a){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!a){t.next=12;break}if(e.multipleSelection&&0===e.multipleSelection.length)return e.$message.warning("请选择采购单!"),t.abrupt("return");t.next=7;break;case 7:e.loading=!0,e.multipleSelection.forEach((function(t){var a=e.list.findIndex((function(e){return e.cgdNO===t.cgdNO}));-1!==a&&(e.list[a].status=e.ruleForm.status,e.list[a].remark="3"===e.ruleForm.status?e.ruleForm.remark:"",e.$set(e.list,a,e.list[a]))})),e.loading=!1;case 10:t.next=14;break;case 12:return t.abrupt("return",!1);case 14:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()},saveSet:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){var a,r,i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a=!0,r={cgdinv:[]},e.list.forEach((function(e){var t={invid:e.sequenceNo,status:e.status,remark:e.remark};""===e.status&&(a=!1),r.cgdinv.push(t)})),a){t.next=9;break}return e.$message.warning("部分采购单未设置审核信息!"),t.abrupt("return");case 9:return e.loading=!0,t.next=12,n.a.exam(r);case 12:if(!(i=t.sent)||0!==i.code||!i.data){t.next=20;break}e.$notify.success({title:"审核提交成功!",message:""}),e.showModelThis=!1,e.$emit("refresh"),t.next=26;break;case 20:if(i&&100<=i.code&&i.code<=104)return t.next=23,e.logout();t.next=25;break;case 23:t.next=26;break;case 25:e.$message.warning(i.message);case 26:e.loading=!1;case 27:case"end":return t.stop()}}),t)})))()}}};a("bb0a"),a=a("2877"),a=Object(a.a)(i,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:e.title,center:!0,align:"left",top:"12vh",width:"1024px","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:e.closeModel}},[a("el-card",{staticClass:"add",staticStyle:{"margin-top":"-25px"}},[a("el-row",[a("el-col",{attrs:{span:18}},[a("el-form",{ref:"ruleForm",attrs:{size:"small",model:e.ruleForm,"status-icon":"",rules:e.rule,"label-width":"100px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{size:"small",label:"审核状态:",prop:"status"}},[a("el-radio-group",{on:{change:e.radioChange},model:{value:e.ruleForm.status,callback:function(t){e.$set(e.ruleForm,"status",t)},expression:"ruleForm.status"}},[a("el-radio",{attrs:{label:"2"}},[e._v("通过")]),a("el-radio",{attrs:{label:"3"}},[e._v("驳回")])],1)],1)],1),a("el-col",{attrs:{span:16}},[a("el-form-item",{attrs:{size:"small",label:"审核备注:",prop:"remark"}},[a("el-input",{attrs:{placeholder:"请输入审核备注"},model:{value:e.ruleForm.remark,callback:function(t){e.$set(e.ruleForm,"remark",t)},expression:"ruleForm.remark"}})],1)],1)],1)],1)],1),a("el-col",{attrs:{span:6}},[a("el-button",{staticClass:"fl",staticStyle:{margin:"0 0 0 10px"},attrs:{type:"primary",size:"small"},on:{click:e.batchSet}},[e._v("批量审核")]),a("el-button",{staticClass:"fr",attrs:{type:"primary",size:"small"},on:{click:e.saveSet}},[e._v("保存审核结果")])],1)],1),e.list&&0<e.list.length?a("el-table",e._g({ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:e.list,stripe:"",border:"","row-key":"cgdNO",size:"mini","max-height":"450px","tooltip-effect":"dark"},on:{"selection-change":e.handleSelectionChange}},e.$listeners),[a("el-table-column",{attrs:{type:"selection",width:"50",fixed:"left",align:"center"}}),a("el-table-column",{attrs:{prop:"cgdNO","show-overflow-tooltip":"",label:"采购单编号",width:"150"}}),a("el-table-column",{attrs:{prop:"name","show-overflow-tooltip":"",label:"供货商",width:"180"}}),a("el-table-column",{attrs:{prop:"contector","show-overflow-tooltip":"",label:"联系人",width:"70"}}),a("el-table-column",{attrs:{label:"开票信息"}},[a("el-table-column",{attrs:{prop:"companyNo","show-overflow-tooltip":"",label:"编码",width:"170"}}),a("el-table-column",{attrs:{prop:"company_name","show-overflow-tooltip":"",label:"公司名称",width:"170"}})],1),a("el-table-column",{attrs:{label:"审核结果"}},[a("el-table-column",{attrs:{label:"状态",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[""!==t.row.status?a("el-tag",{attrs:{size:"mini",type:"2"===t.row.status?"success":"danger"}},[e._v(" "+e._s("2"===t.row.status?"通过":"驳回"))]):e._e()]}}],null,!1,1757734481)}),a("el-table-column",{attrs:{prop:"remark","show-overflow-tooltip":"",label:"备注",width:"170"}})],1),a("el-table-column",{attrs:{label:"操作",fixed:"right",width:"50"},scopedSlots:e._u([{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.deleteRow(t.$index,e.list)}}})])]}}],null,!1,873101551)})],1):e._e()],1)],1)}),[],!1,null,"090e7536",null);t.default=a.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("3264")),o=a("f291"),s=a("88ec"),l=a("0ee5"),c=a("e66a"),u=a("f5ed"),d=a("9f53"),p=a("2f62");u={name:"role",mixins:[u.a,d.a],components:{ExTable:i.default,addEdit:o.default},computed:Object(n.a)(Object(n.a)({},Object(p.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"role"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),data:function(){var e=this;return{statusList:l.a,roleLevel:c.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.delete(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)})))()}}},d=a("2877"),i=Object(d.a)(u,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"role pagePadding"},[e.powers&&0<e.powers.length&&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),e.powers.some((function(e){return"024"==e}))?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):e._e(),e.powers.some((function(e){return"002"==e}))?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._e(),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,3861403570)}):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,"34af5ba4",null);t.default=i.exports},d541:function(e,t,a){"use strict";a.r(t);var r=a("1da1"),n=a("5530"),i=(a("96cf"),a("7db0"),a("d3b7"),a("a15b"),a("a9e3"),a("f5ed")),o=a("1b69"),s={list:function(e,t){return Object(o.a)("Admin/qrdlist",e,"post",t)},clist:function(e,t){return Object(o.a)("Admin/customerlist",e,"post",t)}},l=a("2f62"),c=a("7d27"),u=a("50ec"),d=a("db30"),p=a("9f53");i={name:"sheetOrderPool",mixins:[i.a,p.a],computed:Object(n.a)(Object(n.a)({},Object(l.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"sheetOrderPool"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),data:function(){return{code:[],selectLoading:!1,invoiceType:d.d,capitalType:d.c,platform:d.f,loading:!1,showModel:!1,isDetail:!1,modelId:0,parmValue:{starttime:"",endtime:"",sequenceNo:"",companyNo:"",page:1,size:15,total_low:"",total_up:"",pay_status:"",inv_status:"",platform:"",inv_low:"",inv_up:"",pay_low:"",pay_up:""},count:0,tableData:[]}},mounted:function(){this.searchList()},components:{PeriodDatePicker:c.a,numberRange:u.a},methods:{restSearch:function(){this.parmValue={starttime:"",endtime:"",sequenceNo:"",companyNo:2,page:1,size:15,total_low:"",total_up:"",platform:"",pay_status:"",inv_status:"",inv_low:"",inv_up:"",pay_low:"",pay_up:""},this.searchList()},numReturned:function(e,t){0===t?(this.parmValue.total_low=e.lower,this.parmValue.total_up=e.online):1===t?(this.parmValue.pay_low=e.lower,this.parmValue.pay_up=e.online):(this.parmValue.inv_low=e.lower,this.parmValue.inv_up=e.online)},openModal:function(e,t){this.showModel=!0,this.modelId=e,this.isDetail=t},deleteById: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;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,s.delete({id:e});case 2:if(!(r=a.sent)||0!==r.code){a.next=8;break}t.$notify.success({title:"删除成功",message:""}),t.searchList(),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)})))).catch((function(){}));case 2:case"end":return a.stop()}}),a)})))()},timeReturned: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.startTime?t.parmValue.starttime=e.startTime:t.parmValue.starttime="",""!==e.endTime?t.parmValue.endtime=e.endTime:t.parmValue.endtime="",""!==t.parmValue.starttime&&""!==t.parmValue.endtime)return t.parmValue.page=1,a.next=6,t.searchList();a.next=6;break;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.starttime&&""===e.parmValue.endtime||""===e.parmValue.starttime&&""!==e.parmValue.endtime)return e.$message.warning("时间区间有误!"),t.abrupt("return");t.next=3;break;case 3:if(""!==e.parmValue.total_low&&""===e.parmValue.total_up||""===e.parmValue.total_low&&""!==e.parmValue.total_up)return e.$message.warning("订单总额区间有误!"),t.abrupt("return");t.next=6;break;case 6:if(""!==e.parmValue.pay_low&&""===e.parmValue.pay_up||""===e.parmValue.pay_low&&""!==e.parmValue.pay_up)return e.$message.warning("资金未核销总额区间有误!"),t.abrupt("return");t.next=9;break;case 9:if(""!==e.parmValue.inv_low&&""===e.parmValue.inv_up||""===e.parmValue.inv_low&&""!==e.parmValue.inv_up)return e.$message.warning("发票未核销总额区间有误!"),t.abrupt("return");t.next=12;break;case 12:return e.parmValue.companyNo=e.code.join(","),e.loading=!0,t.next=16,s.list(e.parmValue);case 16:if(!(a=t.sent)||0!==a.code||!a.data){t.next=22;break}e.tableData=a.data.list,e.count=Number(a.data.count),t.next=29;break;case 22:if(a&&100<=a.code&&a.code<=104)return t.next=25,e.logout();t.next=27;break;case 25:t.next=29;break;case 27:e.tableData=[],e.count=0;case 29:e.loading=!1;case 30: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=4,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,s.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 4:case"end":return n.stop()}}),n)})))()},remoteMethod: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.selectLoading=!0,""!==e)return t.activeOptions=[],a.next=5,s.clist({page:1,size:100,company:e});a.next=18;break;case 5:if(!((r=a.sent)&&0===r.code&&r.data&&r.data.list)){a.next=10;break}t.activeOptions=r.data.list,a.next=16;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=16;break;case 15:t.$message.warning(r.message);case 16:a.next=19;break;case 18:t.activeOptions=[];case 19:t.selectLoading=!1;case 20:case"end":return a.stop()}}),a)})))()}}},a("c3b2"),p=a("2877"),n=Object(p.a)(i,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"sheetOrderPool pagePadding"},[a("div",{staticStyle:{padding:"5px 0 10px 0"}},[a("el-row",{staticStyle:{padding:"0 0 10px 0"},attrs:{gutter:10}},[a("el-col",{staticStyle:{width:"170px"},attrs:{span:6}},[a("el-select",{staticStyle:{width:"100%"},attrs:{size:e.searchSize,clearable:"",placeholder:"所属平台"},on:{change:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.parmValue.platform,callback:function(t){e.$set(e.parmValue,"platform",t)},expression:"parmValue.platform"}},e._l(e.platform,(function(e){return a("el-option",{key:e,attrs:{label:e,value:e}})})),1)],1),a("el-col",{staticStyle:{width:"440px"},attrs:{span:6}},[a("el-select",{staticClass:"setWidth",staticStyle:{width:"100%"},attrs:{multiple:"",filterable:"",size:e.searchSize,remote:"","multiple-limit":1,"reserve-keyword":"",placeholder:"公司名称","remote-method":e.remoteMethod,loading:e.selectLoading},model:{value:e.code,callback:function(t){e.code=t},expression:"code"}},e._l(e.activeOptions,(function(e){return a("el-option",{key:e.companyNo,attrs:{label:e.companyName,value:e.companyNo}})})),1)],1),a("el-col",{staticStyle:{width:"240px"},attrs:{span:6}},[a("el-input",{attrs:{size:e.searchSize,placeholder:"确认单编号"},model:{value:e.parmValue.sequenceNo,callback:function(t){e.$set(e.parmValue,"sequenceNo",t)},expression:"parmValue.sequenceNo"}})],1),a("el-col",{staticStyle:{float:"right",width:"66px",padding:"0","text-align":"right"},attrs:{span:6}},[e.powers.some((function(e){return"002"==e}))?a("el-button",{staticStyle:{"margin-left":"10px"},attrs:{size:e.searchSize,type:"primary"},on:{click:e.searchList}},[e._v(" 刷新 ")]):e._e()],1)],1),a("el-row",{staticStyle:{padding:"0 0 10px 0"},attrs:{gutter:10}},[a("el-col",{staticStyle:{width:"340px"},attrs:{span:6}},[a("number-range",{attrs:{start:e.parmValue.total_low,end:e.parmValue.total_up,type:1,width:"154px",title:"订单总额",size:e.searchSize},on:{numReturned:function(t){return e.numReturned(t,0)}}})],1),a("el-col",{staticStyle:{width:"170px"},attrs:{span:7}},[a("el-select",{staticStyle:{width:"100%"},attrs:{size:e.searchSize,clearable:"",placeholder:"关联资金状态"},on:{change:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.parmValue.pay_status,callback:function(t){e.$set(e.parmValue,"pay_status",t)},expression:"parmValue.pay_status"}},e._l(e.capitalType,(function(e){return a("el-option",{key:e.code,attrs:{label:e.name,value:e.code}})})),1)],1),a("el-col",{staticStyle:{width:"340px"},attrs:{span:6}},[a("number-range",{attrs:{start:e.parmValue.online,end:e.parmValue.online,type:1,width:"154px",title:"资金未核销",size:e.searchSize},on:{numReturned:function(t){return e.numReturned(t,1)}}})],1),a("el-col",{staticStyle:{float:"right",width:"66px",padding:"0 0","text-align":"right"},attrs:{span:6}},[e.powers.some((function(e){return"024"==e}))?a("el-button",{attrs:{type:"warning",size:e.searchSize},on:{click:e.restSearch}},[e._v(" 重置 ")]):e._e()],1)],1),a("el-row",{attrs:{gutter:10}},[a("el-col",{staticStyle:{width:"340px"},attrs:{span:6}},[a("period-date-picker",{attrs:{start:e.parmValue.starttime,end:e.parmValue.endtime,type:1,width:"154px",size:e.searchSize},on:{timeReturned:function(t){return e.timeReturned(t)}}})],1),a("el-col",{staticStyle:{width:"170px"},attrs:{span:7}},[a("el-select",{staticStyle:{width:"100%"},attrs:{size:e.searchSize,clearable:"",placeholder:"关联发票状态"},on:{change:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.parmValue.inv_status,callback:function(t){e.$set(e.parmValue,"inv_status",t)},expression:"parmValue.inv_status"}},e._l(e.invoiceType,(function(e){return a("el-option",{key:e.code,attrs:{label:e.name,value:e.code}})})),1)],1),a("el-col",{staticStyle:{width:"340px"},attrs:{span:6}},[a("number-range",{attrs:{start:e.parmValue.inv_low,end:e.parmValue.inv_up,type:1,width:"154px",title:"发票未核销",size:e.searchSize},on:{numReturned:function(t){return e.numReturned(t,2)}}})],1),a("el-col",{staticStyle:{float:"right",width:"54px","text-align":"right",padding:"0"},attrs:{span:6}},[a("el-button",{attrs:{size:e.searchSize,type:"primary",icon:"el-icon-search"},on:{click:e.searchList}})],1)],1)],1),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,"row-key":"id","expand-row-keys":e.expands}},[a("el-table-column",{attrs:{type:"expand"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-table",{staticStyle:{width:"100%"},attrs:{size:"mini",data:t.row.good,stripe:"","max-height":"350",border:""}},[a("el-table-column",{attrs:{label:"产品编号",prop:"goodNo","show-overflow-tooltip":"",width:"125"}}),a("el-table-column",{attrs:{label:"商品名称",prop:"goodname","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{label:"品牌",prop:"brand",width:"80","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{label:"单位",prop:"unit",width:"80","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{label:"数量",width:"65","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.num)+" ")]}}],null,!0)}),a("el-table-column",{attrs:{label:"单价",width:"90","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.price)+" ")]}}],null,!0)}),a("el-table-column",{attrs:{label:"总价",width:"105","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.total_fee)+" ")]}}],null,!0)}),a("el-table-column",{attrs:{label:"资金已核销金额",width:"105",prop:"apay_fee","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"paying_fee",label:"资金处理中的金额","show-overflow-tooltip":"","min-width":"120"}}),a("el-table-column",{attrs:{label:"资金待核销金额",width:"105","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.wpay_fee)+" ")]}}],null,!0)}),a("el-table-column",{attrs:{label:"关联资金状态",width:"105","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return["1"===t.row.pay_status?a("el-tag",{attrs:{type:"danger",size:e.tablebtnSize}},[e._v("未核销")]):"2"===t.row.pay_status?a("el-tag",{attrs:{type:"warning",size:e.tablebtnSize}},[e._v("部分核销")]):a("el-tag",{attrs:{type:"",size:e.tablebtnSize}},[e._v("全部核销")])]}}],null,!0)}),a("el-table-column",{attrs:{label:"发票已核销金额",width:"105","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.ainv_fee)+" ")]}}],null,!0)}),a("el-table-column",{attrs:{prop:"inving_fee",label:"发票处理中的金额","show-overflow-tooltip":"","min-width":"120"}}),a("el-table-column",{attrs:{label:"发票待核销金额",width:"105","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.winv_fee)+" ")]}}],null,!0)}),a("el-table-column",{attrs:{label:"关联发票状态",width:"105","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return["1"===t.row.inv_status?a("el-tag",{attrs:{type:"danger",size:e.tablebtnSize}},[e._v("未核销")]):"2"===t.row.inv_status?a("el-tag",{attrs:{type:"warning",size:e.tablebtnSize}},[e._v("部分核销")]):a("el-tag",{attrs:{type:"",size:e.tablebtnSize}},[e._v("全部核销")])]}}],null,!0)})],1)]}}])}),a("el-table-column",{attrs:{prop:"sequenceNo",label:"确认单号","show-overflow-tooltip":"",width:"140"}}),a("el-table-column",{attrs:{prop:"platform",label:"所属平台","show-overflow-tooltip":"",width:"120"}}),a("el-table-column",{attrs:{prop:"companyNo",label:"企业编码","show-overflow-tooltip":"",width:"130"}}),a("el-table-column",{attrs:{prop:"customer",label:"企业名称","show-overflow-tooltip":"","min-width":"170"}}),a("el-table-column",{attrs:{prop:"contactor",label:"联系人","show-overflow-tooltip":"","min-width":"70"}}),a("el-table-column",{attrs:{prop:"sales_name",label:"业务员","show-overflow-tooltip":"","min-width":"70"}}),a("el-table-column",{attrs:{prop:"total_fee",label:"订单总金额","show-overflow-tooltip":"","min-width":"110"}}),a("el-table-column",{attrs:{label:"关联资金信息","show-overflow-tooltip":"",align:"center"}},[a("el-table-column",{attrs:{prop:"apay_fee",label:"已核销金额","show-overflow-tooltip":"","min-width":"110"}}),a("el-table-column",{attrs:{prop:"pay_fee",label:"处理中的金额","show-overflow-tooltip":"","min-width":"110"}}),a("el-table-column",{attrs:{prop:"wpay_fee",label:"未核销金额","show-overflow-tooltip":"","min-width":"110"}}),a("el-table-column",{attrs:{label:"核销状态","show-overflow-tooltip":"","min-width":"90"},scopedSlots:e._u([{key:"default",fn:function(t){return["1"===t.row.pay_status?a("el-tag",{attrs:{type:"danger",size:e.tablebtnSize}},[e._v("未核销")]):"2"===t.row.pay_status?a("el-tag",{attrs:{type:"warning",size:e.tablebtnSize}},[e._v("部分核销")]):a("el-tag",{attrs:{type:"",size:e.tablebtnSize}},[e._v("全部核销")])]}}])})],1),a("el-table-column",{attrs:{label:"关联发票信息","show-overflow-tooltip":"",align:"center"}},[a("el-table-column",{attrs:{prop:"ainv_fee",label:"已核销金额","show-overflow-tooltip":"","min-width":"110"}}),a("el-table-column",{attrs:{prop:"inv_fee",label:"处理中的金额","show-overflow-tooltip":"","min-width":"110"}}),a("el-table-column",{attrs:{prop:"winv_fee",label:"未核销金额","show-overflow-tooltip":"","min-width":"110"}}),a("el-table-column",{attrs:{label:"核销状态","show-overflow-tooltip":"","min-width":"90"},scopedSlots:e._u([{key:"default",fn:function(t){return["1"===t.row.inv_status?a("el-tag",{attrs:{type:"danger",size:e.tablebtnSize}},[e._v("未核销")]):"2"===t.row.inv_status?a("el-tag",{attrs:{type:"warning",size:e.tablebtnSize}},[e._v("部分核销")]):a("el-tag",{attrs:{type:"",size:e.tablebtnSize}},[e._v("全部核销")])]}}])})],1),a("el-table-column",{attrs:{prop:"createdTime",label:"创建时间","show-overflow-tooltip":"","min-width":"145"}})],1),a("div",{directives:[{name:"show",rawName:"v-show",value:0<e.count,expression:"count > 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)}),[],!1,null,"229082b2",null);t.default=n.exports},d65a:function(e,t,a){},d668:function(e,t,a){"use strict";a.r(t);var r=[function(){var e=this.$createElement;e=this._self._c||e;return e("div",{staticClass:"developing"},[e("img",{attrs:{src:a("baa6"),alt:""}})])}],n={name:"developing"},i=(a("df37"),a("2877"));i=Object(i.a)(n,(function(){this.$createElement;return this._self._c,this._m(0)}),r,!1,null,"71020079",null);t.default=i.exports},d79e:function(e,t,a){"use strict";a.r(t);var r=a("1da1"),n=(a("ac1f"),a("1276"),a("e9c4"),a("a15b"),a("96cf"),a("4022")),i={name:"Group",props:["showModel","id","isDetail"],mixins:[a("9f53").a],data:function(){return{loading:!1,title:"添加用户组",showModelThis:this.showModel,ruleForm:{id:this.id,name:"",group_user:[],group_remark:""},rulesThis:this.rules,rules:{name:[{required:!0,message:"请输入组名称",trigger:"blur"},{min:2,max:30,message:"长度在 2 到 30 个字符",trigger:"blur"}],group_user:[{required:!0,message:"请选择数据共享用户",trigger:"change"}],group_remark:[{required:!0,message:"请输入备注",trigger:"blur"},{min:2,max:300,message:"长度在 2 到 300 个字符",trigger:"blur"}]},dataForm:{name:"",status:""},activeOptions:[]}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis:function(e){e||this.$emit("cancel")}},methods:{closeModel:function(){},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 t.next=2,e.getAllActive();case 2:if(e.loading=!0,"add"===e.id)return e.title="添加用户组",e.rulesThis=e.rules,t.next=8,e.resetForm();t.next=10;break;case 8:t.next=15;break;case 10:return e.isDetail?(e.title="用户组详情",e.rulesThis={}):(e.title="修改用户组",e.rulesThis=e.rules),t.next=13,e.resetForm();case 13:return t.next=15,e.initData();case 15:e.loading=!1;case 16:case"end":return t.stop()}}),t)})))()},initData:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){var a,r,i,o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n.a.detail({id:e.id});case 2:if(!(a=t.sent)||0!==a.code){t.next=9;break}i=a.data,r=i.group_name,o=i.group_user,i=i.group_remark,o=o.split(","),e.ruleForm={id:e.id,name:r,group_user:o,group_remark:i},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:e.id,name:"",group_user:[],group_remark:""})}));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,o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!a){t.next=32;break}if(e.loading=!0,r=JSON.parse(JSON.stringify(e.ruleForm)),i=r.group_user.join(),r.group_user=i,i={},"add"===e.id)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}o="add"===e.id?"添加成功":"修改成功",e.$notify.success({title:o,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)})))()},getAllActive: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 t.next=2,n.a.accountall(e.dataForm);case 2:if(!(a=t.sent)||0!==a.code||!a.data){t.next=7;break}e.activeOptions=a.data,t.next=13;break;case 7:if(a&&100<=a.code&&a.code<=104)return t.next=10,e.logout();t.next=12;break;case 10:t.next=13;break;case 12:e.$message.warning(a.message);case 13:case"end":return t.stop()}}),t)})))()}}};a("a9b1"),a=a("2877"),a=Object(a.a)(i,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:e.title,center:!0,align:"left",top:"5vh",width:"900px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)"},on:{"update:visible":function(t){e.showModelThis=t},close:e.closeModel}},[a("el-card",[a("el-row",{attrs:{gutter:10}},[a("el-col",{attrs:{span:24}},[a("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",rules:e.rulesThis,"label-width":"80px"}},[a("el-form-item",{attrs:{label:"组名称",prop:"name"}},[a("el-input",{attrs:{placeholder:"请输入组名称",disabled:e.isDetail},model:{value:e.ruleForm.name,callback:function(t){e.$set(e.ruleForm,"name",t)},expression:"ruleForm.name"}})],1),a("el-form-item",{attrs:{label:"组成员",prop:"group_user"}},[a("el-select",{staticClass:"setWidth",attrs:{multiple:"",filterable:"",clearable:"",disabled:e.isDetail},model:{value:e.ruleForm.group_user,callback:function(t){e.$set(e.ruleForm,"group_user",t)},expression:"ruleForm.group_user"}},e._l(e.activeOptions,(function(t){return a("el-option",{key:"group_user"+t.id,attrs:{label:t.nickname,value:t.id,disabled:"1"!==t.status}},[a("span",{staticStyle:{float:"left"}},[e._v(e._s(t.nickname))]),a("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px",padding:"0 25px 0 0"}},[e._v(e._s(t.role_name))])])})),1)],1),a("el-form-item",{attrs:{label:"备注",prop:"group_remark"}},[a("el-input",{attrs:{type:"textarea",placeholder:"请输入备注",rows:5,maxlength:"300","show-word-limit":"",disabled:e.isDetail},model:{value:e.ruleForm.group_remark,callback:function(t){e.$set(e.ruleForm,"group_remark",t)},expression:"ruleForm.group_remark"}})],1)],1)],1),a("el-col",{staticStyle:{"text-align":"right"},attrs:{span:24}},[e.isDetail?e._e():a("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("保 存 ")]),a("el-button",{on:{click:function(t){e.showModelThis=!1}}},[e._v(e._s(e.isDetail?"关 闭":"取 消"))])],1)],1)],1)],1)}),[],!1,null,"1ce43f5d",null);t.default=a.exports},d82d:function(e,t,a){},d9b0:function(e,t,a){"use strict";a("9b51")},db30:function(e,t,a){"use strict";a.d(t,"d",(function(){return r})),a.d(t,"c",(function(){return n})),a.d(t,"e",(function(){return i})),a.d(t,"b",(function(){return o})),a.d(t,"j",(function(){return s})),a.d(t,"a",(function(){return c})),a.d(t,"h",(function(){return l})),a.d(t,"i",(function(){return u})),a.d(t,"g",(function(){return d})),a.d(t,"f",(function(){return p}));var r=[{code:"1",name:"发票未核销"},{code:"2",name:"发票部分核销"},{code:"3",name:"发票全部核销"}],n=[{code:"1",name:"资金未核销"},{code:"2",name:"资金部分核销"},{code:"3",name:"资金全部核销"}],i=[{code:"1",name:"确认单未核销"},{code:"2",name:"确认单部分核销"},{code:"3",name:"确认单全部核销"}],o=[{code:"1",name:"未认领"},{code:"2",name:"待审核"},{code:"3",name:"认领完成"},{code:"4",name:"审核驳回"}],s=[{code:"1",name:"待审核"},{code:"2",name:"审核驳回"},{code:"3",name:"关联完成"}],l=[{code:"2",name:"确认单=>资金"},{code:"3",name:"资金=>确认单"}],c=[{code:"1",name:"确认单=>发票"},{code:"2",name:"确认单=>资金"},{code:"3",name:"资金=>确认单"},{code:"4",name:"发票=>资金"},{code:"5",name:"资金=>发票"}],u=[{code:"2",name:"确认单=>资金",active:["order","capital"],orderType:["","4",""],capitalType:["4","",""],invoiceType:["","",""],onces:[!0,!1,!1]},{code:"3",name:"资金=>确认单",active:["capital","order"],orderType:["","4",""],capitalType:["4","",""],invoiceType:["","",""],onces:[!1,!0,!1]},{code:"4",name:"发票=>资金",active:["invoice","capital"],orderType:["","",""],capitalType:["","","4"],invoiceType:["","4",""],onces:[!1,!1,!0]},{code:"5",name:"资金=>发票",active:["capital","invoice"],orderType:["","",""],capitalType:["","","4"],invoiceType:["","4",""],onces:[!1,!0,!1]}],d=[{code:"1",name:"确认单",active:["capital","order","invoice"]},{code:"2",name:"发票",active:["capital","invoice","order"]},{code:"3",name:"资金",active:["order","capital","invoice"]}],p=["优选商城","印刷系统","客服部","泰康小卖部","特殊订单","积分商城","网络部","采购部","销售部","项目部","预付卡"]},dc7c:function(e,t,a){"use strict";a("e390")},dced:function(e,t,a){"use strict";a("76fb")},ddb2:function(e,t,a){"use strict";a("8ced")},df07:function(e,t,a){"use strict";a("e8bd")},df37:function(e,t,a){"use strict";a("30a4")},dfb0:function(e,t,a){},dfb7:function(e,t,a){"use strict";a("d65a")},e06f:function(e,t,a){},e38f:function(e,t,a){"use strict";a("26a9")},e390:function(e,t,a){},e3ad:function(e,t,a){"use strict";a.r(t);var r=a("1da1"),n=(a("e9c4"),a("d3b7"),a("159b"),a("a434"),a("a15b"),a("96cf"),a("3ef2")),i=a("5563"),o=a("9f53");i={name:"orderRecord",props:["id","newTime","payNo","companyNo"],components:{InvoiceHead:i.default},mixins:[o.a],data:function(){return{img:"",show:0,length:0,oldItem:{},newItem:{},oldresList:[],resForm:null,resList:[],options:[{value:"2",label:"通过"}],examForm:{item_list:[],issue_date:"",subtotal_amount:"",subtotal_tax:"",total:""},examsThis:this.exams,activeImg:0,exams:{item_list:[],issue_date:[{required:!0,message:"请输入开票日期",trigger:"blur"}],subtotal_amount:[{required:!0,message:"请输入合计金额",trigger:"blur"}],subtotal_tax:[{required:!0,message:"请输入合计税额",trigger:"blur"}],total:[{required:!0,message:"请输入价税合计",trigger:"blur"}]}}},watch:{newTime:function(e,t){e!==t&&this.initForm()}},mounted:function(){this.initForm()},methods:{initForm:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.show=0,e.loading=!0,e.examsThis=e.exams,t.next=5,e.getData();case 5:return t.next=7,e.initData();case 7:e.loading=!1;case 8:case"end":return t.stop()}}),t)})))()},nextStep: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.resForm=e,t.show=2,a.next=5,t.carouselChange(0);case 5:case"end":return a.stop()}}),a)})))()},resetForm:function(e,t){var a=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,a.$nextTick((function(){a.$refs.examForm&&(a.$refs.examForm.resetFields(),a.$refs.examForm.clearValidate(),a.examForm.item_list=JSON.parse(JSON.stringify(e.goods)),a.examForm.issue_date=JSON.parse(JSON.stringify(e.issue_date)),a.examForm.subtotal_amount=JSON.parse(JSON.stringify(e.subtotal_amount)),a.examForm.subtotal_tax=JSON.parse(JSON.stringify(e.subtotal_tax)),a.examForm.total=JSON.parse(JSON.stringify(e.total)))}));case 2:case"end":return t.stop()}}),t)})))()},addGoods:function(){var e=this;this.examForm.item_list.push({name:"",specification:"",unit:"",quantity:"",unit_price:"",tax_rate:"",tax:"",amount:""}),this.examForm.item_list.forEach((function(t,a){e.$set(e.examForm.item_list,a,t)}))},deleteRow:function(e){this.examForm.item_list.splice(e,1)},getData:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){var a,r,i,o,s,l,c;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n.a.companydetail({companyNo:e.companyNo,sid:e.id});case 2:if(!(a=t.sent)||0!==a.code){t.next=12;break}c=a.data||{},r=c.company_address,i=c.mobile,o=c.bank_name,s=c.bankNo,l=c.company_license,c=c.company_name,e.oldresList=[],e.oldItem.buyer_address=r+i,e.oldItem.buyer_bank=o+s,e.oldItem.buyer_id=l,e.oldItem.buyer_name=c,t.next=18;break;case 12:if(a&&100<=a.code&&a.code<=104)return t.next=15,e.logout();t.next=17;break;case 15:t.next=18;break;case 17:e.$message.warning(a.message);case 18:case"end":return t.stop()}}),t)})))()},initData:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){var a,r,i,o,s;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.resList=[],t.next=3,n.a.invoiceinfo({sid:e.id});case 3:if((a=t.sent)&&0===a.code&&a.data&&a.data.invoice&&0<a.data.invoice.length)return s=a.data||{},r=s.old,i=s.buyer,o=s.seller,s=s.invoice,e.oldItem.seller_address=r.seller_address,e.oldItem.seller_bank=r.seller_bank,e.oldItem.seller_id=r.seller_id,e.oldItem.seller_name=r.seller_name,e.newItem.buyer_address=i.buyer_address,e.newItem.buyer_bank=i.buyer_bank,e.newItem.buyer_id=i.buyer_id,e.newItem.buyer_name=i.buyer_name,e.newItem.seller_address=o.seller_address,e.newItem.seller_bank=o.seller_bank,e.newItem.seller_id=o.seller_id,e.newItem.seller_name=o.seller_name,s.forEach((function(t){var a={bstatus:t.bstatus,id:t.id,image:t.image,issue_date:t.issue_date,status:t.status,payid:t.payid,subtotal_amount:t.subtotal_amount,subtotal_tax:t.subtotal_tax,total:t.total,goods:t.item_list};t={bstatus:t.bstatus,id:t.id,image:t.image,issue_date:t.invoice_info.issue_date,status:t.status,payid:t.payid,subtotal_amount:t.invoice_info.subtotal_amount,subtotal_tax:t.invoice_info.subtotal_tax,total:t.invoice_info.total,goods:t.invoice_info.item_list};e.oldresList.push(t),e.resList.push(a)})),e.length=e.oldresList.length,e.activeImg=0,t.next=23,e.carouselChange(0);t.next=25;break;case 23:t.next=31;break;case 25:if(a&&100<=a.code&&a.code<=104)return t.next=28,e.logout();t.next=30;break;case 28:t.next=31;break;case 30:e.$message.warning(a.message);case 31:case"end":return t.stop()}}),t)})))()},sitDeta:function(e){for(var t in e)Array.isArray(e[t])||(e[t]+="");return e},carouselChange: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(!(0<t.resList.length&&e<t.resList.length)){a.next=9;break}if(r=JSON.parse(JSON.stringify(t.resList[e])),t.img=r.image,0!==t.show){a.next=7;break}t.show=1,a.next=9;break;case 7:return a.next=9,t.resetForm(r,e);case 9:case"end":return a.stop()}}),a)})))()},abnormal: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={sid:e.id,payNo:e.payNo,status:"3"},t.next=4,n.a.again(a);case 4:if(!(r=t.sent)||0!==r.code){t.next=12;break}e.$notify.success({title:"异常已提交,成功返回上一步!",message:""}),e.showModelThis=!1,e.$emit("refreshAll"),t.next=18;break;case 12:if(r&&100<=r.code&&r.code<=104)return t.next=15,e.logout();t.next=17;break;case 15:t.next=18;break;case 17:e.$message.warning(r.message);case 18:e.loading=!1;case 19:case"end":return t.stop()}}),t)})))()},reskeyhas:function(e){var t,a=!0;for(t in e)a=a&&""===e[t];return a},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.examForm.validate(function(){var t=Object(r.a)(regeneratorRuntime.mark((function t(a){var r,i,o,s,l;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!a){t.next=36;break}if(e.loading=!0,r=JSON.parse(JSON.stringify(e.examForm)),i=!0,0===(o=JSON.parse(JSON.stringify(e.examForm.item_list))).length)return e.$message.warning("商品明细不能为空!"),e.loading=!1,t.abrupt("return");t.next=9;break;case 9:if(o.forEach((function(t){e.reskeyhas(t)&&(i=!1)})),i){t.next=14;break}return e.$message.warning("商品明细不能出现整行都为空!"),e.loading=!1,t.abrupt("return");case 14:return t.next=16,e.detectionField(r,e.activeImg);case 16:return s=t.sent,t.next=19,n.a.invoicesave(s);case 19:if(!(l=t.sent)||0!==l.code){t.next=32;break}if(e.activeImg+1==e.length)return t.next=25,e.invoicecheck();t.next=27;break;case 25:t.next=30;break;case 27:return t.next=30,e.carouselChange(++e.activeImg);case 30:t.next=33;break;case 32:e.$message.warning(l.message);case 33:e.loading=!1,t.next=38;break;case 36:return t.abrupt("return",!1);case 38:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()},invoicecheck: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 t.next=2,n.a.invoicecheck({sid:e.id,type:2});case 2:if(!(a=t.sent)||0!==a.code){t.next=12;break}e.$notify.success({title:"发票结果校验成功!",message:""}),e.showModelThis=!1,e.$emit("refreshAll"),t.next=18;break;case 12:if(a&&100<=a.code&&a.code<=104)return t.next=15,e.logout();t.next=17;break;case 15:t.next=18;break;case 17:e.$message.warning(a.message);case 18:e.loading=!1;case 19:case"end":return t.stop()}}),t)})))()},ValidationList:function(e){return Object(r.a)(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=!0,e.forEach((function(e){for(var t in e)""===e[t]&&(a=!1)})),t.abrupt("return",a);case 3:case"end":return t.stop()}}),t)})))()},detectionField:function(e,t){var a=this;return Object(r.a)(regeneratorRuntime.mark((function r(){var n,i,o,s,l,c,u;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:for(o in n=JSON.parse(JSON.stringify(a.resForm)),i={item_list:JSON.parse(JSON.stringify(a.oldresList[t].goods)),issue_date:JSON.parse(JSON.stringify(a.oldresList[t].issue_date)),subtotal_amount:JSON.parse(JSON.stringify(a.oldresList[t].subtotal_amount)),subtotal_tax:JSON.parse(JSON.stringify(a.oldresList[t].subtotal_tax)),total:JSON.parse(JSON.stringify(a.oldresList[t].total))},e)if("item_list"!==o)e[o]!==i[o]&&n.field.push(o);else{for(s=!0,l=0;l<e.item_list.length;l++)for(c in e.item_list[l])i.item_list[l]&&e.item_list[l][c]!==i.item_list[l][c]&&(s=!1);s||n.field.push("item_list")}return u=JSON.parse(JSON.stringify(e)),(u=Object.assign(u,n)).field=u.field.join(","),u.id=JSON.parse(JSON.stringify(a.oldresList[t].id)),r.abrupt("return",u);case 8:case"end":return r.stop()}}),r)})))()},remoteMethod: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.selectLoading=!0,""!==e)return t.activeOptions=[],t.parmValue.contector=e,a.next=6,n.a.supplierlist(t.parmValue);a.next=19;break;case 6:if(!((r=a.sent)&&0===r.code&&r.data&&r.data.list)){a.next=11;break}t.activeOptions=r.data.list,a.next=17;break;case 11:if(r&&100<=r.code&&r.code<=104)return a.next=14,t.logout();a.next=16;break;case 14:a.next=17;break;case 16:t.$message.warning(r.message);case 17:a.next=20;break;case 19:t.options=[];case 20:t.selectLoading=!1;case 21:case"end":return a.stop()}}),a)})))()}}},a("8ecf"),o=a("2877"),a=Object(o.a)(i,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-row",[1===e.show?a("el-col",{attrs:{span:24}},[a("invoice-head",{attrs:{newTime:e.newTime,oldItem:e.oldItem,newItem:e.newItem,isDetail:!1,img:e.img},on:{nextStep:e.nextStep}})],1):2===e.show?a("el-col",{attrs:{span:24}},[a("el-form",{ref:"examForm",staticClass:"demo-examForm-view",attrs:{model:e.examForm,rules:e.examsThis,"label-width":"0px",size:"mini"}},[a("el-row",{attrs:{gutter:10}},[a("el-col",{attrs:{span:24}},[a("el-row",{attrs:{gutter:20}},[a("el-col",{staticStyle:{padding:"0 20px 0 0"},attrs:{span:24}},[a("el-table",{staticStyle:{width:"100%"},attrs:{size:"mini",data:e.examForm.item_list,border:""}},[a("el-table-column",{attrs:{prop:"name",label:"货物或应税劳务、服务名称",width:"200px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input",{attrs:{size:"mini",placeholder:"货物或应税劳务、服务名称"},model:{value:t.row.name,callback:function(a){e.$set(t.row,"name",a)},expression:"scope.row.name"}})]}}])}),a("el-table-column",{attrs:{prop:"specification",label:"规格型号",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input",{attrs:{size:"mini",placeholder:"规格型号"},model:{value:t.row.specification,callback:function(a){e.$set(t.row,"specification",a)},expression:"scope.row.specification"}})]}}])}),a("el-table-column",{attrs:{prop:"unit",width:"70",label:"单位"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input",{attrs:{size:"mini",placeholder:"单位"},model:{value:t.row.unit,callback:function(a){e.$set(t.row,"unit",a)},expression:"scope.row.unit"}})]}}])}),a("el-table-column",{attrs:{prop:"quantity",width:"100",label:"数量"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input",{attrs:{size:"mini",placeholder:"数量"},model:{value:t.row.quantity,callback:function(a){e.$set(t.row,"quantity",a)},expression:"scope.row.quantity"}})]}}])}),a("el-table-column",{attrs:{prop:"unit_price",label:"单价"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input",{attrs:{size:"mini",placeholder:"单价"},model:{value:t.row.unit_price,callback:function(a){e.$set(t.row,"unit_price",a)},expression:"scope.row.unit_price"}})]}}])}),a("el-table-column",{attrs:{prop:"amount",label:"金额"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input",{attrs:{size:"mini",placeholder:"金额"},model:{value:t.row.amount,callback:function(a){e.$set(t.row,"amount",a)},expression:"scope.row.amount"}})]}}])}),a("el-table-column",{attrs:{prop:"tax_rate",width:"80",label:"税率"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input",{attrs:{size:"mini",placeholder:"税率"},model:{value:t.row.tax_rate,callback:function(a){e.$set(t.row,"tax_rate",a)},expression:"scope.row.tax_rate"}})]}}])}),a("el-table-column",{attrs:{prop:"tax",label:"税额"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input",{attrs:{size:"mini",placeholder:"税额"},model:{value:t.row.tax,callback:function(a){e.$set(t.row,"tax",a)},expression:"scope.row.tax"}})]}}])}),a("el-table-column",{attrs:{fixed:"right",width:"50"},scopedSlots:e._u([{key:"header",fn:function(t){return[a("el-link",{attrs:{type:"primary"},on:{click:e.addGoods}},[e._v("新建")])]}},{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.deleteRow(t.$index)}}})])]}}])})],1)],1),a("el-col",{staticStyle:{"padding-top":"18px"},attrs:{span:24}},[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{prop:"issue_date"}},[a("el-input",{attrs:{placeholder:"开票日期"},model:{value:e.examForm.issue_date,callback:function(t){e.$set(e.examForm,"issue_date",t)},expression:"examForm.issue_date"}})],1)],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{prop:"subtotal_amount"}},[a("el-input",{attrs:{placeholder:"合计金额"},model:{value:e.examForm.subtotal_amount,callback:function(t){e.$set(e.examForm,"subtotal_amount",t)},expression:"examForm.subtotal_amount"}})],1)],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{prop:"subtotal_tax"}},[a("el-input",{attrs:{placeholder:"合计税额"},model:{value:e.examForm.subtotal_tax,callback:function(t){e.$set(e.examForm,"subtotal_tax",t)},expression:"examForm.subtotal_tax"}})],1)],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{prop:"total"}},[a("el-input",{attrs:{placeholder:"价税合计"},model:{value:e.examForm.total,callback:function(t){e.$set(e.examForm,"total",t)},expression:"examForm.total"}})],1)],1)],1)],1)],1)],1)],1),a("el-col",{staticStyle:{"text-align":"right"},attrs:{span:24}},[e.oldresList&&e.oldresList&&e.oldresList[e.activeImg]&&e.oldresList[e.activeImg].image?a("img",{directives:[{name:"viewer",rawName:"v-viewer"}],staticClass:"fl",staticStyle:{width:"80px",heigth:"52px"},attrs:{src:e.oldresList[e.activeImg].image,alt:""}}):e._e(),a("el-tag",{staticClass:"fl",staticStyle:{margin:"0 0 0 5px"}},[e._v("共"+e._s(e.length)+"张发票,当前第"+e._s(e.activeImg+1)+"张")]),a("el-button",{attrs:{type:"primary"},on:{click:e.abnormal}},[e._v("已发现发票异常,重新修改发票 ")]),a("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("提交本张发票校验结果 ")])],1)],1):e._e()],1)}),[],!1,null,"024b6114",null);t.default=a.exports},e3cc:function(e,t,a){"use strict";a("0e40")},e4f0:function(e,t,a){"use strict";a("fca6c")},e66a:function(e,t,a){"use strict";t.a=[{name:"管理员",code:"1"},{name:"非管理员",code:"2"}]},e894:function(e,t,a){"use strict";a("44e6")},e8bd:function(e,t,a){},eaa4:function(e,t,a){},eb18:function(e,t,a){},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"),o=a("5f10"),s=a("9f53");o={name:"Parameter",components:{addEdit:o.default},mixins:[s.a],computed:{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"parameter"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}},data:function(){return{pickerOptions:{disabledDate:function(e){var t=(new Date).valueOf();t=864e5*parseInt(t/864e5);return e.getTime()<=t}},showModel:!1,loading:!1,modelId:0,tableData:[]}},mounted:function(){this.getInfor()},methods:{onSubmit:function(e){var t=this;return Object(r.a)(regeneratorRuntime.mark((function a(){var r,o;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((o=a.sent)&&0===o.code)return t.$notify.success({title:o.message,message:""}),a.next=11,t.getInfor();a.next=13;break;case 11:a.next=19;break;case 13:if(o&&100<=o.code&&o.code<=104)return a.next=16,t.logout();a.next=18;break;case 16:a.next=19;break;case 18:t.$message.warning(o.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("96d7"),s=a("2877"),a=Object(s.a)(o,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"parameter pagePadding"},[e.powers&&0<e.powers.length&&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:"请输入"},model:{value:t.row.values,callback:function(a){e.$set(t.row,"values",a)},expression:"scope.row.values"}})]}}],null,!1,931981273)}):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",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,2690856561)}):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,3380244527)})],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,"1981cc25",null);t.default=a.exports},ebdd:function(e,t,a){"use strict";a("7a70")},ebe4:function(e,t,a){"use strict";a.r(t);var r=a("1da1"),n=(a("e9c4"),a("96cf"),a("1c81")),i=a("9f53"),o=a("61f7");i={name:"Account",props:["showModel","id","isDetail"],mixins:[i.a],data:function(){return{company_img:"",roleList:[],loading:!1,title:"添加财务信息",showModelThis:this.showModel,ruleForm:{companyNo:this.id,company_name:"",company_license:"",mobile:"",bank_name:"",bankNo:"",contector:"",company_address:"",company_img:""},rulesThis:this.rules,rules:{company_license:[{required:!0,validator:function(e,t,a){""!==t?Object(o.f)(t)?a():a(new Error("纳税人识别号不正确!")):a(new Error("请输入纳税人识别号!"))},trigger:"blur"}],company_name:[{required:!0,message:"请输入单位名称",trigger:"blur"}],bank_name:[{required:!0,message:"请输入银行名称",trigger:"blur"}],bankNo:[{required:!0,message:"请输入银行卡号",trigger:"blur"}],mobile:[{required:!0,validator:function(e,t,a){""!==t?Object(o.h)(t)||Object(o.g)(t)?a():a(new Error("联系电话格式不正确!")):a(new Error("请输入联系电话!"))},trigger:"blur"}],company_address:[{required:!0,message:"请输入联系地址",trigger:"blur"}]}}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis:function(e){e||this.$emit("cancel")}},methods:{closeModel:function(){},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.title="添加财务信息",e.rulesThis=e.rules,t.next=7,e.resetForm();t.next=9;break;case 7:t.next=14;break;case 9:return e.isDetail?(e.title="财务信息详情",e.rulesThis={}):(e.title="修改财务信息",e.rulesThis=e.rules),t.next=12,e.resetForm();case 12:return t.next=14,e.initData();case 14:e.loading=!1;case 15:case"end":return t.stop()}}),t)})))()},getRole: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 a={level:"",role_name:""},t.next=3,n.a.getRole(a);case 3:if(0!==(r=t.sent).code||!r.data){t.next=8;break}e.roleList=r.data,t.next=14;break;case 8:if(r&&100<=r.code&&r.code<=104)return t.next=11,e.logout();t.next=13;break;case 11:t.next=14;break;case 13:e.$message.warning(r.message);case 14:case"end":return t.stop()}}),t)})))()},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 t.next=2,n.a.detail({companyNo:e.id});case 2:if(!(a=t.sent)||0!==a.code){t.next=8;break}e.ruleForm=a.data,e.ruleForm.companyNo=e.id,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.$message.warning(a.message);case 14: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={companyNo:e.id,company_name:"",company_license:"",mobile:"",bank_name:"",bankNo:"",contector:"",company_address:"",company_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,o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!a){t.next=30;break}if(e.loading=!0,r=JSON.parse(JSON.stringify(e.ruleForm)),i={},"add"===e.id)return delete r.id,t.next=8,n.a.add(r);t.next=11;break;case 8:i=t.sent,t.next=14;break;case 11:return t.next=13,n.a.update(r);case 13:i=t.sent;case 14:if(e.loading=!1,!i||0!==i.code){t.next=22;break}o="add"===e.id?"添加成功":"修改成功",e.$notify.success({title:o,message:""}),e.showModelThis=!1,e.$emit("refresh"),t.next=28;break;case 22:if(i&&100<=i.code&&i.code<=104)return t.next=25,e.logout();t.next=27;break;case 25:t.next=28;break;case 27:e.$message.warning(i.message);case 28:t.next=32;break;case 30:return t.abrupt("return",!1);case 32:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()},UploadErrorEvent:function(){this.$message.error("图片上传失败!"),this.ruleForm.company_img="",this.company_img="",this.$refs.ruleForm.validateField("company_img")},UploadSuccessEvent:function(e){this.company_img=e.url,this.ruleForm.company_img=e.url,this.$message.success("图片上传成功!"),this.$refs.ruleForm.validateField("company_img")},beforeAvatarUpload:function(e){var t=!1;"image/jpg"!==e.type&&"image/png"!==e.type&&"image/bmp"!==e.type&&"image/jpeg"!==e.type&&"image/gif"!==e.type||(t=!0),e=e.size/1024/1024<1;return t||this.$message.error("图片格式不正确!"),e||this.$message.error("图片大小不能超过 1MB!"),t&&e}}},a("4ebf"),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:"5vh",width:"1040px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)"},on:{"update:visible":function(t){e.showModelThis=t},close:e.closeModel}},[t("el-card",[t("el-row",{attrs:{gutter:10}},[t("el-col",{attrs:{span:24}},[t("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",rules:e.rulesThis,"label-width":"110px"}},[t("el-row",{attrs:{gutter:10}},[t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"单位名称",prop:"company_name"}},[t("el-input",{attrs:{disabled:e.isDetail},model:{value:e.ruleForm.company_name,callback:function(t){e.$set(e.ruleForm,"company_name",t)},expression:"ruleForm.company_name"}})],1)],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"纳税人识别号",prop:"company_license"}},[t("el-input",{attrs:{disabled:e.isDetail},model:{value:e.ruleForm.company_license,callback:function(t){e.$set(e.ruleForm,"company_license",t)},expression:"ruleForm.company_license"}})],1)],1)],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"银行名称",prop:"bank_name"}},[t("el-input",{attrs:{disabled:e.isDetail},model:{value:e.ruleForm.bank_name,callback:function(t){e.$set(e.ruleForm,"bank_name",t)},expression:"ruleForm.bank_name"}})],1)],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"银行卡号",prop:"bankNo"}},[t("el-input",{attrs:{disabled:e.isDetail},model:{value:e.ruleForm.bankNo,callback:function(t){e.$set(e.ruleForm,"bankNo",t)},expression:"ruleForm.bankNo"}})],1)],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"联系人",prop:"contector"}},[t("el-input",{attrs:{disabled:e.isDetail},model:{value:e.ruleForm.contector,callback:function(t){e.$set(e.ruleForm,"contector",t)},expression:"ruleForm.contector"}})],1)],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"联系电话",prop:"mobile"}},[t("el-input",{attrs:{disabled:e.isDetail},model:{value:e.ruleForm.mobile,callback:function(t){e.$set(e.ruleForm,"mobile",t)},expression:"ruleForm.mobile"}})],1)],1),t("el-col",{attrs:{span:24}},[t("el-form-item",{attrs:{label:"联系地址",prop:"company_address"}},[t("el-input",{attrs:{type:"textarea",rows:3,disabled:e.isDetail},model:{value:e.ruleForm.company_address,callback:function(t){e.$set(e.ruleForm,"company_address",t)},expression:"ruleForm.company_address"}})],1)],1)],1)],1),t("el-col",{staticStyle:{"text-align":"right"},attrs:{span:24}},[e.isDetail?e._e():t("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("保 存 ")]),t("el-button",{on:{click:function(t){e.showModelThis=!1}}},[e._v(e._s(e.isDetail?"关 闭":"取 消"))])],1)],1)],1)],1)}),[],!1,null,"08fcbb99",null);t.default=a.exports},ec38:function(e,t,a){},ee22:function(e,t,a){"use strict";a.r(t);var r=a("1da1"),n=(a("96cf"),a("5bcd")),i=a("7a5e"),o=a("6810");n={name:"orderRecord",props:["showModel","id","isDetail","dstatus","payNo","companyNo"],components:{addView:n.default,examView:i.default,stepBar:o.default},data:function(){return{activeNames:"2",newTime:0,activeName:"-1",loading:!1,title:"业务审核",showModelThis:this.showModel}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis:function(e){e||this.$emit("cancel")}},methods:{closeModel:function(){},refreshAll:function(){this.showModelThis=!1,this.$emit("refresh")},initForm:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.changea();case 2:case"end":return t.stop()}}),t)})))()},changea:function(){this.newTime=(new Date).valueOf()}}},a("efa9"),i=a("2877"),o=Object(i.a)(n,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:e.title,center:!0,align:"left",top:"10vh",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:e.closeModel}},[t("el-card",{staticStyle:{"margin-top":"-15px",height:"685px"}},[t("stepBar",{attrs:{id:e.modelId,payNo:e.payNo,dstatus:e.dstatus},on:{refresh:e.searchList}}),t("el-collapse",{attrs:{accordion:""},model:{value:e.activeNames,callback:function(t){e.activeNames=t},expression:"activeNames"}},[t("el-collapse-item",{attrs:{title:"对账详情",name:"1"}},[t("add-view",{staticStyle:{margin:"0 0 -28px 0"},attrs:{id:e.id,isDetail:e.isDetail,newTime:e.newTime,payNo:e.payNo},on:{refreshAll:e.refreshAll}})],1),t("el-collapse-item",{attrs:{title:"业务审核",name:"2"}},[t("exam-view",{attrs:{id:e.id,newTime:e.newTime,payNo:e.payNo},on:{refreshAll:e.refreshAll}})],1)],1)],1)],1)}),[],!1,null,"c7065210",null);t.default=o.exports},ef3c:function(e,t,a){"use strict";a.r(t),a("ac1f"),a("5319");var r={created:function(){var e=this.$route,t=e.params;e=e.query,t=t.path;this.$router.replace({path:"/welcome/dashboard"+t,query:e})},render:function(e){return e()}};a=a("2877"),a=Object(a.a)(r,void 0,void 0,!1,null,null,null);t.default=a.exports},ef78:function(e,t,a){},efa9:function(e,t,a){"use strict";a("aadc")},f111:function(e,t,a){"use strict";a("ef78")},f210:function(e,t,a){"use strict";a.r(t);var r=a("1da1"),n=(a("b0c0"),a("e9c4"),a("96cf"),a("f70e")),i=a("9f53"),o=a("7d27");i={name:"standBook",props:["showModel","sitem","type"],mixins:[i.a],components:{PeriodDatePicker:o.a},data:function(){var e=this;return{options:[],loading:!1,title:"添加账号",showModelThis:this.showModel,ruleForm:{start:"",end:"",id:""},rulesThis:this.rules,rules:{start:[{required:!0,validator:function(t,a,r){""===a?r(new Error("数据开始时间不能为空!")):""===e.ruleForm.end?r(new Error("数据结束时间不能为空!")):r()},trigger:"change"}],id:[{required:!0,message:"请选择业务表!",trigger:"change"}]}}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis:function(e){e||this.$emit("cancel")}},methods:{closeModel:function(){},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.options=[],e.rulesThis=e.rules,t.next=5,e.resetForm();case 5:e.loading=!1;case 6:case"end":return t.stop()}}),t)})))()},timeReturned: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:""!==e.startTime?t.ruleForm.start=e.startTime:t.ruleForm.start="",""!==e.endTime?t.ruleForm.end=e.endTime:t.ruleForm.end="";case 2:case"end":return a.stop()}}),a)})))()},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;e.$refs.ruleForm&&(e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),(a=e.sitem).start,a.end,t=a.id,a=a.name,e.options=[{value:t,label:a}],e.ruleForm={start:"",end:"",id:t||""})}));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;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a)return e.loading=!0,r=JSON.parse(JSON.stringify(e.ruleForm)),t.next=5,n.a.add(r);t.next=21;break;case 5:if(i=t.sent,e.loading=!1,!i||0!==i.code){t.next=13;break}e.$notify.success({title:"需求创建成功!",message:""}),e.showModelThis=!1,e.$emit("refresh"),t.next=19;break;case 13:if(i&&100<=i.code&&i.code<=104)return t.next=16,e.logout();t.next=18;break;case 16:t.next=19;break;case 18:e.$message.warning(i.message);case 19:t.next=23;break;case 21:return t.abrupt("return",!1);case 23:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()}}},a("f88a"),o=a("2877"),a=Object(o.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:"25vh",width:"600px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)"},on:{"update:visible":function(t){e.showModelThis=t},close:e.closeModel}},[a("el-card",{staticStyle:{margin:"-20px 0 0 0"}},[a("el-row",{attrs:{gutter:10}},[a("el-col",{attrs:{span:24}},[a("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",rules:e.rulesThis,"label-width":"90px"}},[a("el-form-item",{attrs:{label:"业务表",prop:"id"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{disabled:"",placeholder:"请选择业务表"},model:{value:e.ruleForm.id,callback:function(t){e.$set(e.ruleForm,"id",t)},expression:"ruleForm.id"}},e._l(e.options,(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:"start"}},[a("period-date-picker",{attrs:{start:e.ruleForm.start,end:e.ruleForm.end,type:1,width:"199px",size:e.searchSize},on:{timeReturned:function(t){return e.timeReturned(t)}}})],1)],1)],1),a("el-col",{staticStyle:{"text-align":"right"},attrs:{span:12}},[a("el-alert",{staticStyle:{width:"230px"},attrs:{closable:!1,title:"1"===e.type?"报表会在提交后开始执行!":"报表会在明天01:00开始生成",type:"warning"}})],1),a("el-col",{staticStyle:{"text-align":"right"},attrs:{span:12}},[e.isDetail?e._e():a("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("保 存 ")]),a("el-button",{on:{click:function(t){e.showModelThis=!1}}},[e._v(e._s(e.isDetail?"关 闭":"取 消"))])],1)],1)],1)],1)}),[],!1,null,"15ae2641",null);t.default=a.exports},f291:function(e,t,a){"use strict";a.r(t);var r=a("2909"),n=a("1da1"),i=(a("96cf"),a("4de4"),a("d3b7"),a("c740"),a("159b"),a("a434"),a("e9c4"),a("d81d"),a("88ec")),o=a("e66a"),s=a("61f7"),l={name:"Role",props:["showModel","id","isDetail"],mixins:[a("9f53").a],data:function(){return{loading:!1,title:"添加角色",private_data:[],showModelThis:this.showModel,roleLevel:o.a,ruleForm:{role_name:"",level:"1"},action_data:[],action:[],roleActive:{rules:[]},roleList:[],ruleList:[],dataList:[],actionList:[],rulesThis:this.rules,rules:{role_name:[{required:!0,validator:function(e,t,a){""===t?a(new Error("角色名称不能为空!")):t.lenght<2||10<t.lenght||!Object(s.c)(t)||Object(s.d)(t)?a(new Error("角色名称规则为2~10位汉字!")):a()},trigger:"blur"}],level:[{required:!0,message:"请选择角色等级",trigger:"change"}]}}},computed:{indeterminateCheck:function(){return function(e){var t=e.action.filter((function(t){return-1<e.checkList.findIndex((function(e){return e===t.id}))})).length,a=e.action.filter((function(t){return-1==e.checkList.findIndex((function(e){return e===t.id}))})).length;return 0<t&&0<a}},indeterminateField:function(){return function(e){var t=e.action_data.filter((function(t){return-1<e.fieldList.findIndex((function(e){return e===t.id}))})).length,a=e.action_data.filter((function(t){return-1==e.fieldList.findIndex((function(e){return e===t.id}))})).length;return 0<t&&0<a}}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis:function(e){e||this.$emit("cancel")}},methods:{handleCheckAllChange:function(e,t,a,r){var n=this;this.actionList[t].child[r].checkAll=e,this.$set(this.actionList,t,a),this.actionList[t].child[r].action.forEach((function(a){var i=n.actionList[t].child[r].checkList.findIndex((function(e){return e===a.id}));e&&-1==i?n.actionList[t].child[r].checkList.push(a.id):!e&&-1<i&&n.actionList[t].child[r].checkList.splice(i,1)}))},handleFieldAllChange:function(e,t,a,r){var n=this;this.actionList[t].child[r].fieldAll=e,this.$set(this.actionList,t,a),this.actionList[t].child[r].action_data.forEach((function(a){var i=n.actionList[t].child[r].fieldList.findIndex((function(e){return e===a.id}));e&&-1==i?n.actionList[t].child[r].fieldList.push(a.id):!e&&-1<i&&n.actionList[t].child[r].fieldList.splice(i,1)}))},handleCheckedGroupChange:function(e,t,a,r){var n=this;this.actionList[t].child[r].checkAll=this.actionList[t].child[r].action.every((function(e){return-1<n.actionList[t].child[r].checkList.findIndex((function(t){return t===e.id}))})),this.$set(this.actionList,t,a)},handleFieldGroupChange:function(e,t,a,r){var n=this;this.actionList[t].child[r].fieldAll=this.actionList[t].child[r].action_data.every((function(e){return-1<n.actionList[t].child[r].fieldList.findIndex((function(t){return t===e.id}))})),this.$set(this.actionList,t,a)},handleCheckedChange:function(e,t,a,r,n){e?-1==this.actionList[a].child[r].checkList.indexOf(t)&&this.actionList[a].child[r].checkList.push(t):(-1<(e=this.actionList[a].child[r].checkList.findIndex((function(e){return e==t})))&&this.actionList[a].child[r].checkList.splice(e,1),this.actionList[a].child[r].checkAll=!1),this.$set(this.actionList,a,n)},handleFieldChange:function(e,t,a,r,n){e?-1==this.actionList[a].child[r].fieldList.indexOf(t)&&this.actionList[a].child[r].fieldList.push(t):(-1<(e=this.actionList[a].child[r].fieldList.findIndex((function(e){return e==t})))&&this.actionList[a].child[r].fieldList.splice(e,1),this.actionList[a].child[r].fieldAll=!1),this.$set(this.actionList,a,n)},closeModel:function(){},initForm:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.loading=!0,"add"===e.id)return e.title="添加角色",e.rulesThis=e.rules,t.next=6,e.resetForm();t.next=11;break;case 6:return t.next=8,e.initActionList();case 8:e.loading=!1,t.next=19;break;case 11:return e.isDetail?(e.title="角色",e.rulesThis={}):(e.title="修改角色",e.rulesThis=e.rules),t.next=14,e.resetForm();case 14:return t.next=16,e.initActionList();case 16:return t.next=18,e.initData();case 18:e.loading=!1;case 19:case"end":return t.stop()}}),t)})))()},initData:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){var a,r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,i.a.detail({roleid:e.id});case 2:if(!(a=t.sent)||0!==a.code||!a.data){t.next=15;break}r=a.data,(e.ruleForm=r).action&&0<r.action.length?e.action=r.action:e.action=[],r.action_data&&0<r.action_data.length?e.action_data=r.action_data:e.action_data=[],""===r.private_data&&(r.private_data=[]),r.private_data&&0<r.private_data.length?e.private_data=r.private_data:e.private_data=[],(r=JSON.parse(JSON.stringify(e.actionList))).map((function(t){return t.child&&0<t.child.length&&t.child.map((function(t){var a;return t.action&&0<t.action.length&&(t.action.map((function(a){var r=e.action.findIndex((function(e){return e===a.id}));return-1!==r&&t.checkList.push(e.action[r]),a})),t.action.length===t.checkList.length&&(t.checkAll=!0)),t.action_data&&0<t.action_data.length&&(t.action_data.map((function(a){var r=e.action_data.findIndex((function(e){return e===a.id}));return-1!==r&&t.fieldList.push(e.action_data[r]),a})),t.action_data.length===t.fieldList.length&&(t.fieldAll=!0)),t.private&&2===t.private.length?(a=e.private_data.findIndex((function(e){return e===t.id})),t.is_private_change=-1!==a?"1":"0"):t.is_private_change="0",t})),t})),e.actionList=r,t.next=21;break;case 15:if(a&&100<=a.code&&a.code<=104)return t.next=18,e.logout();t.next=20;break;case 18:t.next=21;break;case 20:e.$message.warning(a.message);case 21:case"end":return t.stop()}}),t)})))()},initActionList:function(){var e=this;return Object(n.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.actionList({});case 2:if(!(a=t.sent)||0!==a.code){t.next=10;break}r=a.data,r=(r=r.filter((function(e){return e.child&&0<e.child.length}))).map((function(e){return e.child.map((function(e){return e.checkAll=!1,e.checkList=[],e.fieldAll=!1,e.fieldList=[],(e.is_private_change="0")===e.is_private?e.private=[]:e.private=[{id:"0",label:"公有数据"},{id:"1",label:"私有数据"}],e})),e})),e.actionList=r,t.next=16;break;case 10:if(a&&100<=a.code&&a.code<=104)return t.next=13,e.logout();t.next=15;break;case 13:t.next=16;break;case 15:e.$message.warning(a.message);case 16:case"end":return t.stop()}}),t)})))()},resetForm:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$nextTick((function(){e.$refs.ruleForm&&(e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),e.ruleForm={role_name:"",level:"1"})}));case 2:case"end":return t.stop()}}),t)})))()},submitForm:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.ruleForm.validate(function(){var t=Object(n.a)(regeneratorRuntime.mark((function t(a){var n,o,s,l;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!a){t.next=38;break}if(e.action_data=[],e.action=[],n=[],e.actionList.forEach((function(t){t.child.forEach((function(t){var a;(a=e.action_data).push.apply(a,Object(r.a)(t.fieldList)),(a=e.action).push.apply(a,Object(r.a)(t.checkList)),"1"===t.is_private_change&&n.push(t.id)}))})),0!==e.action.length){t.next=9;break}e.$message.warning("请选择功能!"),t.next=36;break;case 9:if(e.loading=!0,o={roleid:e.id,role_name:e.ruleForm.role_name,level:e.ruleForm.level,action:e.action,action_data:e.action_data,private_data:n},s={},"add"===e.id)return delete o.roleid,t.next=16,i.a.add(o);t.next=19;break;case 16:s=t.sent,t.next=22;break;case 19:return t.next=21,i.a.update(o);case 21:s=t.sent;case 22:if(e.loading=!1,!s||0!==s.code){t.next=30;break}l="add"===e.id?"添加成功":"修改成功",e.$notify.success({title:l,message:""}),e.showModelThis=!1,e.$emit("refresh"),t.next=36;break;case 30:if(s&&100<=s.code&&s.code<=104)return t.next=33,e.logout();t.next=35;break;case 33:t.next=36;break;case 35:e.$message.warning(s.message);case 36:t.next=40;break;case 38:return t.abrupt("return",!1);case 40:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()}}};a("2c30"),a=a("2877"),a=Object(a.a)(l,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:e.title,center:!0,align:"left",top:"5vh",width:"900px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)"},on:{"update:visible":function(t){e.showModelThis=t},close:e.closeModel}},[a("el-card",[a("el-row",{attrs:{gutter:10}},[a("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",rules:e.rulesThis,"label-width":"80px"}},[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"角色名称",prop:"role_name"}},[a("el-input",{attrs:{disabled:e.isDetail},model:{value:e.ruleForm.role_name,callback:function(t){e.$set(e.ruleForm,"role_name",t)},expression:"ruleForm.role_name"}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"角色等级",prop:"level"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"",disabled:e.isDetail,placeholder:"请选择角色等级"},model:{value:e.ruleForm.level,callback:function(t){e.$set(e.ruleForm,"level",t)},expression:"ruleForm.level"}},e._l(e.roleLevel,(function(e){return a("el-option",{key:"ruleid"+e.code,attrs:{label:e.name,value:e.code}})})),1)],1)],1),a("div",{staticClass:"quanxian-main"},[a("div",{staticClass:"quanxian-title"},[a("span",{staticStyle:{color:"#ff8888"}},[e._v("*")]),a("span",{staticStyle:{"font-size":"14px",color:"#606266","line-height":"40px",padding:"0 12px 0 0","font-weight":"700"}},[e._v("功能权限")])]),a("div",{staticClass:"rule-view"},[a("div",{staticClass:"rule-list"},e._l(e.actionList,(function(t,r){return a("el-row",{key:"menu"+t.id+r},[t.child&&0<t.child.length?a("el-col",{staticClass:"ffff",attrs:{span:24}},[a("div",{staticClass:"ftitle"},[a("span",[e._v(e._s(t.menu_name))])]),a("div",{staticClass:"fbody"},e._l(t.child,(function(n,i){return a("div",{key:"yemian"+n.id+i,staticClass:"fbody-item"},[n.action&&0===n.action.length&&n.action_data&&0===n.action_data.length?e._e():[a("div",{staticClass:"stitle"},[a("span",{staticClass:"_h2"},[e._v(e._s(n.menu_name))]),n&&n.private&&2===n.private.length?a("el-radio-group",{staticStyle:{margin:"0 0 0 20px"},attrs:{size:"mini"},model:{value:n.is_private_change,callback:function(t){e.$set(n,"is_private_change",t)},expression:"subItem.is_private_change"}},e._l(n.private,(function(t,r){return a("el-radio-button",{key:t.label+r,attrs:{label:t.id}},[e._v(e._s(t.label))])})),1):e._e()],1),n.action&&0<n.action.length?a("div",{staticClass:"scheck"},[a("div",{staticClass:"checkAll"},[a("el-checkbox",{attrs:{disabled:e.isDetail,indeterminate:e.indeterminateCheck(n)},on:{change:function(a){return e.handleCheckAllChange(a,r,t,i)}},model:{value:n.checkAll,callback:function(t){e.$set(n,"checkAll",t)},expression:"subItem.checkAll"}},[e._v("功能全选")])],1),a("div",{staticClass:"checkItem"},[a("el-checkbox-group",{attrs:{disabled:e.isDetail},on:{change:function(a){return e.handleCheckedGroupChange(a,r,t,i)}},model:{value:n.checkList,callback:function(t){e.$set(n,"checkList",t)},expression:"subItem.checkList"}},[e._l(n.action,(function(n){return[a("el-checkbox",{key:"checkItem"+n.id,attrs:{disabled:e.isDetail,label:n.id},on:{change:function(a){return e.handleCheckedChange(a,n.id,r,i,t)}}},[e._v(e._s(n.action_name))])]}))],2)],1)]):e._e(),n.action_data&&0<n.action_data.length?a("div",{staticClass:"sfield"},[a("div",{staticClass:"checkAll"},[a("el-checkbox",{attrs:{disabled:e.isDetail,indeterminate:e.indeterminateField(n)},on:{change:function(a){return e.handleFieldAllChange(a,r,t,i)}},model:{value:n.fieldAll,callback:function(t){e.$set(n,"fieldAll",t)},expression:"subItem.fieldAll"}},[e._v("字段全选")])],1),a("div",{staticClass:"checkItem"},[a("el-checkbox-group",{attrs:{disabled:e.isDetail},on:{change:function(a){return e.handleFieldGroupChange(a,r,t,i)}},model:{value:n.fieldList,callback:function(t){e.$set(n,"fieldList",t)},expression:"subItem.fieldList"}},[e._l(n.action_data,(function(n){return[a("el-checkbox",{key:"FieldItem"+n.id,attrs:{label:n.id,disabled:e.isDetail},on:{change:function(a){return e.handleFieldChange(a,n.id,r,i,t)}}},[e._v(e._s(n.field_name))])]}))],2)],1)]):e._e()]],2)})),0)]):e._e()],1)})),1)])])],1),a("el-col",{staticStyle:{"text-align":"right"},attrs:{span:24}},[e.isDetail?e._e():a("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("保 存 ")]),a("el-button",{on:{click:function(t){e.showModelThis=!1}}},[e._v(e._s(e.isDetail?"关 闭":"取 消"))])],1)],1)],1)],1)}),[],!1,null,"ce8bc138",null);t.default=a.exports},f2dc:function(e,t,a){"use strict";a("8238")},f36d:function(e,t,a){"use strict";a("1d63")},f481:function(e,t,a){"use strict";a.r(t);var r=a("1da1"),n=a("ade3"),i=a("5530"),o=(a("96cf"),a("d3b7"),a("3ca3"),a("ddb0"),a("7db0"),a("e9c4"),a("a15b"),a("a9e3"),a("327e")),s=a("f5ed"),l=a("2f62"),c=a("9f53"),u=a("5daa");s={name:"returnTicket",mixins:[s.a,c.a],components:{"add-edit":function(){return Promise.resolve().then(a.bind(null,"a204"))},"ex-table":function(){return Promise.resolve().then(a.bind(null,"3264"))}},computed:Object(i.a)(Object(i.a)({},Object(l.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"returnTicket"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),data:function(){var e={showModel:!1,isDetail:!1,status:"",selection:[],invNo:"0"};return Object(n.a)(e,"status","0"),Object(n.a)(e,"modelId",0),Object(n.a)(e,"selectLoading",!1),Object(n.a)(e,"billType",[{code:"1",name:"确认单开票"},{code:"2",name:"资金开票-资金未认领"},{code:"3",name:"资金开票-资金已认领"}]),Object(n.a)(e,"billType3",[{code:"1",name:"原发票"},{code:"2",name:"红冲发票"}]),Object(n.a)(e,"activeOptions",[]),Object(n.a)(e,"statusOptions",[{code:"1",name:"待业务审核"},{code:"2",name:"待财务审核"},{code:"3",name:"待财务核销票"},{code:"4",name:"退票已完成"}]),Object(n.a)(e,"name",""),Object(n.a)(e,"downLoading",!1),Object(n.a)(e,"code",[]),Object(n.a)(e,"loading",!1),Object(n.a)(e,"formValue",{company:"",page:1,size:100}),Object(n.a)(e,"fileUrl",u.a.baseURL+"%E5%8F%91%E7%A5%A8%E5%AF%BC%E5%85%A5%E6%A8%A1%E6%9D%BF.xls"),Object(n.a)(e,"parmValue",{companyNo:"",type:"2",page:1,size:15,relaNo:"",inv_type:"",back_type:"",refund_status:""}),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:"refundNo",label:"退票编号",width:"180px",fixed:"left"},{prop:"invNo",label:"原发票编号",width:"180px"},{prop:"customerNo",label:"客户企业编码",width:"130px"},{prop:"customer",label:"客户企业名称","min-width":"180px"},{prop:"refund_fee",label:"退票额度",width:"120px"},{prop:"inv_type",label:"开票类型",_slot_:"inv_type",width:"150px"},{prop:"apply_name",label:"申请人",width:"85px"},{prop:"refund_status",label:"退票状态",_slot_:"refund_status",width:"120px"},{prop:"addtime",label:"申请时间",sortable:!0,width:"150px"},{prop:"",label:"操作",fixed:"right",_noset_:!0,width:"110px",_slot_:"operation"}]),e},mounted:function(){this.searchList()},methods:{selectChange: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 a=JSON.parse(JSON.stringify(e.code)),e.parmValue.companyNo=a.join(","),e.parmValue.page=1,t.next=5,e.searchList();case 5:case"end":return t.stop()}}),t)})))()},restSearch:function(){this.pageInfo={size:15,curr:1,total:0},this.parmValue={companyNo:"",type:"2",page:1,size:15,relaNo:"",inv_type:"",back_type:"",refund_status:""},this.searchList()},openModal:function(e,t,a){this.modelId=e,this.dstatus=a||"",this.isDetail=t,this.showModel=!0},changeStatus: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={refundNo:e},a.next=3,o.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:return e.loading=!0,t.next=3,o.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)})))()},remoteMethod: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.selectLoading=!0,""!==e)return t.activeOptions=[],t.formValue.company=e,a.next=6,o.a.clist(t.formValue);a.next=19;break;case 6:if(!((r=a.sent)&&0===r.code&&r.data&&r.data.list)){a.next=11;break}t.activeOptions=r.data.list,a.next=17;break;case 11:if(r&&100<=r.code&&r.code<=104)return a.next=14,t.logout();a.next=16;break;case 14:a.next=17;break;case 16:t.$message.warning(r.message);case 17:a.next=20;break;case 19:t.activeOptions=[];case 20:t.selectLoading=!1;case 21:case"end":return a.stop()}}),a)})))()}}},c=a("2877"),i=Object(c.a)(s,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"returnTicket pagePadding"},[e.powers&&0<e.powers.length&&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",[a("el-col",{staticStyle:{padding:"0 0 10px 80px"},attrs:{span:24}},[a("el-col",{staticStyle:{width:"450px"},attrs:{span:12}},[a("el-select",{staticStyle:{width:"100%"},attrs:{multiple:"",filterable:"",remote:"","multiple-limit":1,"reserve-keyword":"",size:e.searchSize,placeholder:"公司名称","remote-method":e.remoteMethod,loading:e.selectLoading},on:{change:e.selectChange},model:{value:e.code,callback:function(t){e.code=t},expression:"code"}},e._l(e.activeOptions,(function(e){return a("el-option",{key:e.companyNo,attrs:{label:e.companyName,value:e.companyNo}})})),1)],1),a("el-col",{staticStyle:{width:"290px","padding-left":"10px"},attrs:{span:4}},[a("el-input",{staticClass:"input-with-select",attrs:{size:e.searchSize,placeholder:"请输入发票编号"},model:{value:e.parmValue.relaNo,callback:function(t){e.$set(e.parmValue,"relaNo",t)},expression:"parmValue.relaNo"}},[a("el-button",{attrs:{slot:"append",icon:"el-icon-search"},on:{click:e.searchList},slot:"append"})],1)],1),a("el-col",{staticStyle:{width:"66px",float:"right"},attrs:{span:4}},[e.powers.some((function(e){return"002"==e}))?a("el-button",{staticStyle:{float:"right"},attrs:{size:e.searchSize,type:"primary"},on:{click:e.searchList}},[e._v(" 刷新 ")]):e._e()],1),a("el-col",{staticStyle:{width:"66px",float:"right"},attrs:{span:4}},[e.powers.some((function(e){return"024"==e}))?a("el-button",{staticStyle:{float:"right"},attrs:{type:"warning",size:e.searchSize},on:{click:e.restSearch}},[e._v(" 重置 ")]):e._e()],1)],1),a("el-col",{attrs:{span:24}},[a("el-col",{staticStyle:{width:"190px"},attrs:{span:4}},[a("el-select",{staticStyle:{width:"100%"},attrs:{size:e.searchSize,placeholder:"原发票开票类型"},on:{change:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.parmValue.inv_type,callback:function(t){e.$set(e.parmValue,"inv_type",t)},expression:"parmValue.inv_type"}},e._l(e.billType,(function(e){return a("el-option",{key:e.code,attrs:{label:e.name,value:e.code}})})),1)],1),a("el-col",{staticStyle:{width:"190px",padding:"0 0 0 10px"},attrs:{span:4}},[a("el-select",{staticStyle:{width:"100%"},attrs:{size:e.searchSize,placeholder:"退票状态"},on:{change:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.parmValue.refund_status,callback:function(t){e.$set(e.parmValue,"refund_status",t)},expression:"parmValue.refund_status"}},e._l(e.statusOptions,(function(e){return a("el-option",{key:e.code,attrs:{label:e.name,value:e.code}})})),1)],1),a("el-col",{staticStyle:{width:"190px",padding:"0 0 0 10px"},attrs:{span:4}},[a("el-select",{staticStyle:{width:"100%"},attrs:{size:e.searchSize,placeholder:"退票类型"},on:{change:function(t){e.pageInfo.curr=1,e.parmValue.page=1,e.searchList()}},model:{value:e.parmValue.back_type,callback:function(t){e.$set(e.parmValue,"back_type",t)},expression:"parmValue.back_type"}},e._l(e.billType3,(function(e){return a("el-option",{key:e.code,attrs:{label:e.name,value:e.code}})})),1)],1),a("el-col",{staticStyle:{width:"66px",float:"right"},attrs:{span:4}},[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.openModal("add","003")}}},[e._v(" 添加 ")]):e._e()],1)],1)],1)],1)]}},{key:"refund_status",fn:function(t){var r=t.scope;return[a("el-tag",{attrs:{type:"4"==r.row.refund_status?"success":"warning",size:"mini"},domProps:{textContent:e._s((e.statusOptions.find((function(e){return e.code==r.row.refund_status}))||{}).name||"--")}})]}},{key:"inv_type",fn:function(t){var r=t.scope;return[a("el-tag",{attrs:{size:"mini"},domProps:{textContent:e._s((e.billType.find((function(e){return e.code==r.row.inv_type}))||{}).name||"--")}})]}},{key:"operation",fn:function(t){var r=t.scope;return[e.powers.some((function(e){return"028"==e}))&&"1"===r.row.refund_status?a("el-tooltip",{attrs:{effect:"dark",content:"业务审核",placement:"top"}},[a("i",{staticClass:"el-icon-finished tb-icon",on:{click:function(t){return e.openModal(r.row.refundNo,"028",r.row.refund_status)}}})]):e._e(),e.powers.some((function(e){return"029"==e}))&&"2"===r.row.refund_status?a("el-tooltip",{attrs:{effect:"dark",content:"财务审核",placement:"top"}},[a("i",{staticClass:"el-icon-finished tb-icon",on:{click:function(t){return e.openModal(r.row.refundNo,"029",r.row.refund_status)}}})]):e._e(),e.powers.some((function(e){return"048"==e}))&&"3"===r.row.refund_status?a("el-tooltip",{attrs:{effect:"dark",content:"财务核销发票",placement:"top"}},[a("i",{staticClass:"el-icon-finished tb-icon",on:{click:function(t){return e.openModal(r.row.refundNo,"048",r.row.refund_status)}}})]):e._e(),e.powers.some((function(e){return"027"==e}))&&"4"!==r.row.refund_status?a("el-tooltip",{attrs:{effect:"dark",content:"取消申请",placement:"top"}},[a("i",{staticClass:"el-icon-error tb-icon",on:{click:function(t){return e.changeStatus(r.row.refundNo)}}})]):e._e()]}}],null,!1,30118124)}):a("no-auth"),a("add-edit",{attrs:{id:e.modelId,"show-model":e.showModel,"is-detail":e.isDetail,dstatus:e.dstatus},on:{refresh:e.searchList,cancel:function(t){e.showModel=!1}}})],1)}),[],!1,null,"6cd8c81a",null);t.default=i.exports},f4f7:function(e,t,a){"use strict";a("18bc")},f57a:function(e,t,a){"use strict";a.r(t);var r=a("1da1"),n=a("ade3"),i=(a("d3b7"),a("159b"),a("a9e3"),a("d81d"),a("b680"),a("e9c4"),a("96cf"),a("3ef2")),o=a("f5ed"),s=a("9f53");o={name:"orderRecord",props:["showModel","id","isDetail","companyNo","companyNoCode","companyNoName"],mixins:[o.a,s.a],data:function(){var e={loading:!1,title:"选择采购单商品"};return Object(n.a)(e,"loading",!1),Object(n.a)(e,"count",0),Object(n.a)(e,"send_status_list",[{value:"1",label:"未发货"},{value:"2",label:"部分发货"},{value:"3",label:"全部发货"}]),Object(n.a)(e,"parmValue",{name:"",code:"",sequenceNo:"",inv_company:"",inv_status:"2",send_status:"",page:1,size:10}),Object(n.a)(e,"showModelThis",this.showModel),Object(n.a)(e,"tableData",[]),Object(n.a)(e,"activeOptions",[]),Object(n.a)(e,"multipleSelection",[]),e},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis:function(e){e||this.$emit("cancel")}},methods:{objectSpanMethod:function(e){e.row,e.column,e.rowIndex,e.columnIndex},closeModel:function(){},handleSelectionChange:function(e){this.multipleSelection=e},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 t.next=2,e.searchList();case 2:case"end":return t.stop()}}),t)})))()},submitForm: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(0!==e.multipleSelection.length){t.next=4;break}e.$message.warning("请选择商品!"),t.next=12;break;case 4:if(""===e.companyNoCode){t.next=10;break}if(a=!0,e.multipleSelection.forEach((function(t){t.inv_company!==e.companyNoCode&&(a=!1)})),a){t.next=10;break}return e.$message.error("只能选择开票公司为".concat(e.companyNoName,"的采购单!")),t.abrupt("return");case 10:e.showModelThis=!1,e.$emit("refresh",e.multipleSelection);case 12:case"end":return t.stop()}}),t)})))()},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.code=e.id,t.next=4,i.a.paymentcgdlist(e.parmValue);case 4:if(!(a=t.sent)||0!==a.code||!a.data){t.next=11;break}e.tableData=a.data.list,e.count=Number(a.data.count),e.formatGoodList(),t.next=18;break;case 11:if(a&&100<=a.code&&a.code<=104)return t.next=14,e.logout();t.next=16;break;case 14:t.next=18;break;case 16:e.tableData=[],e.count=0;case 18:e.loading=!1;case 20:case"end":return t.stop()}}),t)})))()},formatGoodList:function(){this.tableData.map((function(e){return e.purchasePrice=e.purchasePrice?parseFloat(e.purchasePrice+"").toFixed(2):"-",e.totalPrice=e.totalPrice?parseFloat(e.totalPrice+"").toFixed(2):"-",e.pay_fee=e.pay_fee?parseFloat(e.pay_fee+"").toFixed(2):"-",e.wait_fee=e.wait_fee?parseFloat(e.wait_fee+"").toFixed(2):"-",e.nakedPrice=e.nakedPrice?parseFloat(e.nakedPrice+"").toFixed(2):"-",e.markPrice=e.markPrice?parseFloat(e.markPrice+"").toFixed(2):"-",e.price=e.price?parseFloat(e.price+"").toFixed(2):"-",e.packPrice=e.packPrice?parseFloat(e.packPrice+"").toFixed(2):"-",e.certPrice=e.certPrice?parseFloat(e.certPrice+"").toFixed(2):"-",e.openPrice=e.openPrice?parseFloat(e.openPrice+"").toFixed(2):"-",e.craftPrice=e.certPrice?parseFloat(e.craftPrice+"").toFixed(2):"-",e.postPrice=e.postPrice?parseFloat(e.postPrice+"").toFixed(2):"-",e.weight=e.weight?parseFloat(e.weight+"").toFixed(2):"-",e.diff_fee=e.diff_fee?parseFloat(e.diff_fee+"").toFixed(2):"-",e.price=e.price?parseFloat(e.price+"").toFixed(2):"-",e}))},setdata:function(e,t){return e=JSON.parse(JSON.stringify(e)),e.index=t,e.role_name+=t,delete e.children,e}}},a("e3cc"),s=a("2877"),a=Object(s.a)(o,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:e.title,center:!0,align:"left",top:"6vh",width:"1040px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)","append-to-body":""},on:{"update:visible":function(t){e.showModelThis=t},close:e.closeModel}},[a("el-card",{staticStyle:{"margin-top":"-15px"}},[a("el-row",[a("el-col",{staticStyle:{"padding-bottom":"10px"},attrs:{span:24}},[a("el-select",{staticStyle:{width:"120px"},attrs:{clearable:"",size:e.searchSize,placeholder:"发货状态"},on:{change:function(t){e.parmValue.page=1,e.searchList()}},model:{value:e.parmValue.send_status,callback:function(t){e.$set(e.parmValue,"send_status",t)},expression:"parmValue.send_status"}},e._l(e.send_status_list,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1),a("el-input",{staticStyle:{width:"300px","margin-left":"10px"},attrs:{placeholder:"采购单编号"},model:{value:e.parmValue.sequenceNo,callback:function(t){e.$set(e.parmValue,"sequenceNo",t)},expression:"parmValue.sequenceNo"}},[a("el-button",{attrs:{slot:"append",icon:"el-icon-search"},nativeOn:{click:function(t){e.parmValue.page=1,e.searchList()}},slot:"append"})],1),a("el-button",{staticClass:"fr",attrs:{type:"warning"},nativeOn:{click:function(t){e.parmValue.sequenceNo="",e.parmValue.page=1,e.searchList()}}},[e._v("重置")])],1),a("el-col",{attrs:{span:24}},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"multipleTable",staticStyle:{width:"100%"},attrs:{"tooltip-effect":"dark",data:e.tableData,size:"mini",stripe:"",border:"","row-key":"index",height:"500","span-method":e.objectSpanMethod},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"40",fixed:"left",align:"center"}}),a("el-table-column",{attrs:{label:"采购单信息",align:"center"}},[a("el-table-column",{attrs:{prop:"cgdNO",label:"采购单编号","show-overflow-tooltip":"",width:"135px"}}),a("el-table-column",{attrs:{prop:"purchasePrice",label:"货款","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"inv_company_name",label:"回票公司","show-overflow-tooltip":"",width:"180px"}}),a("el-table-column",{attrs:{prop:"name",label:"供货商","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"contector",label:"联系人",width:"65","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"ownerName",label:"采购员",width:"65","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{label:"发货状态",width:"85"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-tag",{attrs:{size:"mini",type:"3"==t.row.send_info?"success":"2"==t.row.send_info?"warning":"danger"},domProps:{textContent:e._s((e.send_status_list.find((function(e){return e.value==t.row.send_info}))||{}).label||"--")}})]}}])})],1),a("el-table-column",{attrs:{label:"商品基础信息",align:"center"}},[a("el-table-column",{attrs:{label:"商品编号",prop:"goodNo","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{label:"名称",prop:"goodName","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"goodUnit",label:"单位","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"orderNum",label:"数量","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"isDiff",label:"含有工差","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"workDay",label:"工期","show-overflow-tooltip":""}})],1),a("el-table-column",{attrs:{label:"商品费用信息",align:"center"}},[a("el-table-column",{attrs:{prop:"pay_price",label:"成本合计","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"pay_fee",label:"已付款","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"wait_fee",label:"待付款","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"taxPoint",label:"税率","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"nakedPrice",label:"成本裸价","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"markPrice",label:"加标费","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"packPrice",label:"包装费","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"certPrice",label:"证书费","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"openPrice",label:"开模费","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"craftPrice",label:"工艺费","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"postPrice",label:"物流费","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"diff_fee",label:"工差金额","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"diff_info",label:"工差","show-overflow-tooltip":""}})],1),a("el-table-column",{attrs:{label:"商品属性",align:"center"}},[a("el-table-column",{attrs:{label:"类型",prop:"goodType","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{label:"品牌",prop:"goodBank","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{label:"型号",prop:"goodModel","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{label:"材质",prop:"goodMaterial","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{label:"颜色",prop:"goodColor","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"goodDesc",label:"描述","show-overflow-tooltip":""}})],1),a("el-table-column",{attrs:{label:"贵金属属性",align:"center"}},[a("el-table-column",{attrs:{prop:"goodCat",label:"种类","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"weight",label:"重量","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"price",label:"实时价格","show-overflow-tooltip":""}})],1)],1),a("el-row",{attrs:{gutter:10}},[a("el-col",{attrs:{span:18}},[a("div",{staticClass:"Pagination",staticStyle:{"text-align":"center","margin-top":"12px"}},[a("el-pagination",{attrs:{"current-page":e.parmValue.page,"page-sizes":[10,20,30,40,50],"page-size":e.parmValue.size,size:e.searchSize,layout:"total, sizes, prev, pager, next, jumper",total:e.count},on:{"size-change":e.handleSizeChange,"current-change":e.handlePageChange}})],1)]),a("el-col",{staticStyle:{"text-align":"right"},attrs:{span:6}},[a("div",{staticStyle:{"margin-top":"12px"}},[e.isDetail?e._e():a("el-button",{attrs:{type:"primary",size:"medium"},on:{click:e.submitForm}},[e._v("保 存 ")]),a("el-button",{attrs:{size:"medium"},on:{click:function(t){e.showModelThis=!1}}},[e._v(e._s(e.isDetail?"关 闭":"取 消"))])],1)])],1)],1)],1)],1)],1)}),[],!1,null,"576af411",null);t.default=a.exports},f5a7:function(e,t,a){},f5ed:function(e,t,a){"use strict";var r=a("1da1");a("96cf"),t.a={methods:{handlePageChange:function(e){var t=this;return Object(r.a)(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return t.parmValue.page=e,t.pageInfo&&(t.pageInfo.curr=e),a.next=4,t.searchList();case 4:case"end":return a.stop()}}),a)})))()},handleSizeChange:function(e){var t=this;return Object(r.a)(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return t.parmValue.page=1,t.pageInfo&&(t.pageInfo.curr=1,t.pageInfo.size=e),t.parmValue.size=e,a.next=5,t.searchList();case 5:case"end":return a.stop()}}),a)})))()}}}},f70e:function(e,t,a){"use strict";var r=a("1b69"),n=a("1da1"),i=(a("96cf"),a("d3b7"),a("5daa")),o=a("5f87"),s={},l=(window.ajaxTimeout=2e4,Object(n.a)(regeneratorRuntime.mark((function e(){var t,a,r,l,c,u,d,p=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=0<p.length&&void 0!==p[0]?p[0]:"",a=1<p.length&&void 0!==p[1]?p[1]:{},r=2<p.length&&void 0!==p[2]?p[2]:"GET",l=3<p.length&&void 0!==p[3]?p[3]:{},c=4<p.length&&void 0!==p[4]?p[4]:s,u=5<p.length?p[5]:void 0,r=r.toLowerCase(),d={method:r,baseURL:"",url:i.a.testURL+t,data:a,params:l,processData:!0,timeout:window.ajaxTimeout,headers:c,onUploadProgress:u},u&&"function"==typeof u&&(d.onUploadProgress=u),axios.interceptors.request.use((function(e){return e.data.token||(e.data.token=Object(o.d)()),e}),(function(e){return Promise.reject(new Error("服务器异常,请联系管理员!"))})),axios.interceptors.response.use(function(){var e=Object(n.a)(regeneratorRuntime.mark((function e(t){var a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return 200===t.status&&100<=(a=t.data.code)&&a<=104&&(Object(o.g)(),Object(o.f)(),Object(o.e)()),e.abrupt("return",t);case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),(function(e){return Promise.reject(e.response.data)})),e.abrupt("return",new Promise((function(e,t){axios(d).then((function(t){e(t.data)})).catch((function(e){e.response&&e.response.data?t(e.response.data):t(e)}))})));case 12:case"end":return e.stop()}}),e)})))),c="Admin/";t.a={list:function(e,t){return Object(r.a)(c+"receiptlist",e,"post",t)},clist:function(e,t){return Object(r.a)(c+"customerlist",e,"post",t)},receiptexport:function(e,t){return Object(r.a)(c+"receiptexport",e,"post",t)},receiptimport:function(e,t){return Object(r.a)(c+"receiptimport",e,"post",t)},add:function(e,t){return Object(r.a)(c+"execsave",e,"post",t)},exportList:function(e,t){return Object(r.a)(c+"execlist",e,"post",t)},hlist:function(e,t){return l(c+"execnowlist",e,"post",t)},download:function(e,t){return l(c+"execnowdown",e,"post",t)},realNewList:function(e,t){return Object(r.a)(c+"nowlist",e,"post",t)}}},f88a:function(e,t,a){"use strict";a("e06f")},f8b2:function(e,t,a){e.exports=a.p+"static/img/loading.190c78aa.gif"},f8e0:function(e,t,a){"use strict";a("eaa4")},fa0c:function(e,t,a){"use strict";a.r(t);var r=a("1da1"),n=a("ade3"),i=(a("96cf"),a("a434"),a("d81d"),a("e9c4"),a("d3b7"),a("159b"),a("c740"),a("99af"),a("a15b"),a("ac1f"),a("5319"),a("b97c")),o=a("ffe4"),s=a("9f53"),l=a("52a0"),c=a("61f7");o={name:"invoiceApply",props:["showModel","id","isDetail","newTime","invNo","status"],components:{orderChangeDialog:o.a,goodChangeDialog:l.default},mixins:[s.a],data:function(){var e={disableds:!1,financeModel:!1,orderModelId:"",showOrderModel:!1,cwRes:null,tableData:[],activeIndex:0,activeItem:null,showGoodChangeModel:!1,remark:"",exam_remark:"",step:1,selectLoading:!1,loading:!1,title:"添加发票申请",invioceType:[{id:1,name:"增值税专用发票"},{id:2,name:"增值税普通发票"},{id:3,name:"增值税专用发票-电子发票"},{id:4,name:"增值税普通发票-电子发票"}],billType:[{id:1,name:"订单开票"},{id:2,name:"资金开票"}],formValue:{company:"",page:1,size:100},showModelThis:this.showModel,select:"1",activeOptions:[],actionList:[],ruleForm1:{companyNo:[],companyNo2:[],inv_type:"",radio:"1",invoice_title:"",invoice_code:"",invoice_bank:"",invoice_bankNo:"",invoice_addr:"",invoice_mobile:"",type:"",total:0,remark:""},rulesThis:this.rules1,rules1:{companyNo:[{required:!0,message:"请选择申请企业",trigger:"change"}],companyNo2:[{required:!0,message:"请选择申请企业",trigger:"change"}],radio:[{required:!0,message:"请选择开票企业类型",trigger:"change"}],userid:[{required:!0,message:"请选择数据源用户",trigger:"change"}],touserid:[{required:!0,message:"请选择数据共享用户",trigger:"change"}],inv_type:[{required:!0,message:"请选择发票类型",trigger:"change"}],type:[{required:!0,message:"请选择开票类型",trigger:"change"}],invoice_title:[{required:!0,message:"请输入发票抬头",trigger:"blur"}],invoice_code:[{required:!0,validator:function(e,t,a){""!==t?Object(c.f)(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(e,t,a){""!==t?Object(c.h)(t)||Object(c.g)(t)?a():a(new Error("联系电话格式不正确!")):a(new Error("请输入联系电话!"))},trigger:"blur"}],total:[{required:!1,message:"请输入发票总额",trigger:"blur"}],remark:[{required:!1,message:"请输入备注",trigger:"blur"}]},dataForm:{name:"",status:""}};return Object(n.a)(e,"activeOptions",[]),Object(n.a)(e,"groupallList",[]),Object(n.a)(e,"multipleSelection",[]),e},watch:{newTime:function(e,t){e!==t&&this.initForm()}},mounted:function(){this.initForm()},methods:{editRow:function(e){this.activeIndex=e,this.activeItem=this.tableData[e],this.showGoodChangeModel=!0},deleteRow:function(e,t){t.splice(e,1)},radioGroupChange:function(e){this.financeModel="2"===e},goodChangeEnd:function(e){var t,a;e&&(t=e.remark,a=e.total_fee,e=e.good_num,this.tableData[this.activeIndex].remark=t,this.tableData[this.activeIndex].total_fee=a,this.tableData[this.activeIndex].good_num=e)},text_fun:function(e,t,a){var r=e.target.parentElement;this.tableData.map((function(e){return e.remark_type="text",e.good_num_type="text",e.total_fee_type="text",e})),this.tableData[t][a]="input",this.$nextTick((function(e){r&&r.firstElementChild&&r.firstElementChild.firstElementChild&&r.firstElementChild.firstElementChild.focus()}))},input_fun:function(e,t){this.tableData.map((function(e){return e.remark_type="text",e.good_num_type="text",e.total_fee_type="text",e})),this.tableData[e][t]="text"},orderRefresh:function(e){var t=JSON.parse(JSON.stringify(this.tableData));e.forEach((function(e){var a=t.findIndex((function(t){return t.sequenceNo===e.sequenceNo&&t.orderNo===e.orderNo}));-1<a&&t.splice(a,1)})),this.tableData=[].concat(t).concat(e)},openModal:function(){var e=JSON.parse(JSON.stringify(this.ruleForm1.companyNo));this.orderModelId=e.join(","),this.showOrderModel=!0},closeModel:function(){},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.step=1,e.remark="",e.exam_remark="",e.loading=!0,e.cwRes=null,e.disableds="003"!==e.isDetail&&"005"!==e.isDetail,e.tableData=[],"003"===e.isDetail)return e.title="添加发票申请",e.rulesThis=e.rules1,t.next=13,e.resetForm();t.next=15;break;case 13:t.next=20;break;case 15:return"005"==e.isDetail?(e.title="发票申请详情",e.rulesThis={}):"007"===e.isDetail&&(e.title="修改发票申请",e.rulesThis=e.rules1),t.next=18,e.resetForm();case 18:return t.next=20,e.initData();case 20:e.loading=!1;case 21:case"end":return t.stop()}}),t)})))()},selectChange:function(e,t){var a=this;return Object(r.a)(regeneratorRuntime.mark((function e(){var r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=JSON.parse(JSON.stringify(1===t?a.ruleForm1.companyNo:a.ruleForm1.companyNo2)),""!==(r=r.join(","))){e.next=6;break}a.cwRes=null,e.next=8;break;case 6:return e.next=8,a.getCaiwu(r,t);case 8:case"end":return e.stop()}}),e)})))()},getCaiwu:function(e,t){var a=this;return Object(r.a)(regeneratorRuntime.mark((function t(){var r,n,o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,i.a.cwlist({companyNo:e});case 2:if(!(r=t.sent)||0!==r.code||!r.data){t.next=10;break}for(o in n=r.data,a.cwRes={id:"",companyName:"",invoice_title:"",invoice_code:"",invoice_bank:"",invoice_bankNo:"",invoice_addr:"",invoice_mobile:""},a.cwRes)a.cwRes[o]=n[o]?n[o]+"":"",a.ruleForm1[o]=n[o]?n[o]+"":"";t.next=17;break;case 10:if(r&&100<=r.code&&r.code<=104)return t.next=13,a.logout();t.next=15;break;case 13:t.next=17;break;case 15:a.cwRes=null,a.$message.warning(r.message);case 17:case"end":return t.stop()}}),t)})))()},remoteMethod: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(a.selectLoading=!0,""!==e)return a.formValue.company=e,r.next=5,i.a.clist(a.formValue);r.next=18;break;case 5:if(!((n=r.sent)&&0===n.code&&n.data&&n.data.list)){r.next=10;break}1===t?(a.activeOptions=[],a.activeOptions=n.data.list):(a.activeOptions2=[],a.activeOptions2=n.data.list),r.next=16;break;case 10:if(n&&100<=n.code&&n.code<=104)return r.next=13,a.logout();r.next=15;break;case 13:r.next=16;break;case 15:a.$message.warning(n.message);case 16:r.next=19;break;case 18:1===t?a.activeOptions=[]:a.activeOptions2=[];case 19:a.selectLoading=!1;case 20:case"end":return r.stop()}}),r)})))()},initData:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){var a,r,n,o,s;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,i.a.detail({id:e.id});case 2:if(!((a=t.sent)&&0===a.code&&a.data&&a.data.customer&&a.data.customer.companyNo)){t.next=21;break}for(o in r=a.data,n=a.data.customer,e.ruleForm1={companyNo:[n.companyNo],inv_type:r.inv_type?parseInt(r.inv_type):"",type:r.type_check?parseInt(r.type_check):"",total:r.inv_value,remark:r.remark,invoice_title:"",invoice_code:"",invoice_bank:"",invoice_bankNo:"",invoice_addr:"",invoice_mobile:""},e.remark=r.remark,e.exam_remark=r.exam_remark,e.cwRes={id:"",companyName:"",invoice_title:"",invoice_code:"",invoice_bank:"",invoice_bankNo:"",invoice_addr:"",invoice_mobile:""},e.cwRes)e.cwRes[o]=n[o]?n[o]+"":"",e.ruleForm1[o]=n[o]?n[o]+"":"";return e.disableds||e.changetype(e.ruleForm1.type),(s=a.data.order&&a.data.order.good&&0<a.data.order.good.length?JSON.parse(JSON.stringify(a.data.order.good)):[]).map((function(e){return e.sequenceNo=e.goodNo,e.goodname=e.good_name,e.over_num=parseInt(e.num)-parseInt(e.inv_num),e})),e.tableData=s,t.next=19,e.remoteMethod(r.customer.companyName);case 19:t.next=27;break;case 21:if(a&&100<=a.code&&a.code<=104)return t.next=24,e.logout();t.next=26;break;case 24:t.next=27;break;case 26:e.$message.warning(a.message);case 27:case 28:case"end":return t.stop()}}),t)})))()},changetype:function(e){this.rulesThis&&this.rulesThis.total&&this.rulesThis.remark&&(1===e?(this.rulesThis.total[0].required=!1,this.rulesThis.remark[0].required=!1):(this.rulesThis.total[0].required=!0,this.rulesThis.remark[0].required=!0))},resetForm:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$nextTick((function(){e.$refs.ruleForm1&&(e.$refs.ruleForm1.resetFields(),e.$refs.ruleForm1.clearValidate(),e.cwRes=null,e.ruleForm1={companyNo:[],inv_type:"",type:"",total:0,remark:"",radio:"1",invoice_title:"",invoice_code:"",invoice_bank:"",invoice_bankNo:"",invoice_addr:"",invoice_mobile:""})}));case 2:case"end":return t.stop()}}),t)})))()},submitForm1: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.ruleForm1.validate(function(){var t=Object(r.a)(regeneratorRuntime.mark((function t(a){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!a){t.next=9;break}if(2===e.ruleForm1.type)return t.next=4,e.mAddOrUpdate();t.next=6;break;case 4:t.next=7;break;case 6:e.step=2;case 7:t.next=11;break;case 9:return t.abrupt("return",!1);case 11:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t)})))()},mAddOrUpdate: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){t.next=28;break}if(e.loading=!0,a=JSON.parse(JSON.stringify(e.ruleForm1)),a={invNo:e.invNo,companyNo:a.companyNo.join(),inv_type:a.inv_type+"",total:a.total+"",remark:a.remark+"",invoice_title:a.invoice_title,invoice_code:a.invoice_code,invoice_bank:a.invoice_bank,invoice_bankNo:a.invoice_bankNo,invoice_addr:a.invoice_addr,invoice_mobile:a.invoice_mobile},r={},"add"===e.id)return delete a.invNo,t.next=9,i.a.madd(a);t.next=12;break;case 9:r=t.sent,t.next=15;break;case 12:return t.next=14,i.a.mupdate(a);case 14:r=t.sent;case 15:if(e.loading=!1,!r||0!==r.code){t.next=22;break}n="add"===e.id?"添加成功":"修改成功",e.$notify.success({title:n,message:""}),e.$emit("refreshAll"),t.next=28;break;case 22:if(r&&100<=r.code&&r.code<=104)return t.next=25,e.logout();t.next=27;break;case 25:t.next=28;break;case 27:e.$message.warning(r.message);case 28:case"end":return t.stop()}}),t)})))()},submitForm:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){var a,r,n,o,s,l;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.loading){t.next=41;break}if(0===e.tableData.length)return e.$message.warning("请选择确认单商品"),t.abrupt("return");t.next=4;break;case 4:if(l=JSON.parse(JSON.stringify(e.ruleForm1)),a=JSON.parse(JSON.stringify(e.tableData)),n=r=!0,o={invNo:e.invNo,companyNo:l.companyNo.join(),inv_type:l.inv_type+"",invoice_title:l.invoice_title,invoice_code:l.invoice_code,invoice_bank:l.invoice_bank,invoice_bankNo:l.invoice_bankNo,invoice_addr:l.invoice_addr,invoice_mobile:l.invoice_mobile,good:[],remark:e.remark},a.forEach((function(e){0===e.good_num&&(r=!1),0===e.total_fee&&(r=!1);var t=e.remark.replace(/\s*/g,"");""===t&&(n=!1),t={sequenceNo:e.sequenceNo,remark:t,total_fee:e.total_fee,num:e.good_num};o.good.push(t)})),r){t.next=13;break}return e.$message.error("商品数量/商品总额不能为0!"),t.abrupt("return");case 13:if(n){t.next=16;break}return e.$message.error("开票商品名不能为空!"),t.abrupt("return");case 16:if(e.loading=!0,s={},"add"===e.id)return delete o.invNo,t.next=22,i.a.oadd(o);t.next=25;break;case 22:s=t.sent,t.next=28;break;case 25:return t.next=27,i.a.oupdate(o);case 27:s=t.sent;case 28:if(e.loading=!1,!s||0!==s.code){t.next=35;break}l="add"===e.id?"添加成功":"修改成功",e.$notify.success({title:l,message:""}),e.$emit("refreshAll"),t.next=41;break;case 35:if(s&&100<=s.code&&s.code<=104)return t.next=38,e.logout();t.next=40;break;case 38:t.next=41;break;case 40:e.$message.warning(s.message);case 41:case"end":return t.stop()}}),t)})))()}}},a("15a6"),l=a("2877"),s=Object(l.a)(o,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-row",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{gutter:10}},[1===e.step?a("el-col",{attrs:{span:24}},[a("el-form",{ref:"ruleForm1",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm1,"status-icon":"",rules:e.rulesThis,"label-width":"130px"}},[a("el-row",[a("el-col",{attrs:{span:14}},[a("el-form-item",{attrs:{label:"申请企业",prop:"companyNo"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{multiple:"",filterable:"",remote:"",disabled:e.disableds,"multiple-limit":1,"reserve-keyword":"",size:e.searchSize,placeholder:"申请企业","remote-method":e.remoteMethod(e.$event,1),loading:e.selectLoading},on:{change:function(t){return e.selectChange(t,1)}},model:{value:e.ruleForm1.companyNo,callback:function(t){e.$set(e.ruleForm1,"companyNo",t)},expression:"ruleForm1.companyNo"}},e._l(e.activeOptions,(function(e){return a("el-option",{key:e.companyNo,attrs:{label:e.companyName,value:e.companyNo}})})),1)],1)],1),a("el-col",{attrs:{span:10}},[a("el-form-item",{attrs:{label:"开票企业类型",prop:"radio"}},[a("el-radio-group",{on:{change:e.radioGroupChange},model:{value:e.ruleForm1.radio,callback:function(t){e.$set(e.ruleForm1,"radio",t)},expression:"ruleForm1.radio"}},[a("el-radio",{attrs:{label:"1"}},[e._v("使用申请企业")]),a("el-radio",{attrs:{label:"2"}},[e._v("其他企业")])],1)],1)],1),e.financeModel?a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"开票购买方企业",prop:"companyNo2"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{multiple:"",filterable:"",remote:"","multiple-limit":1,"reserve-keyword":"",size:e.searchSize,placeholder:"开票购买方企业","remote-method":e.remoteMethod(e.$event,2),loading:e.selectLoading},on:{change:function(t){return e.selectChange(t,2)}},model:{value:e.ruleForm.companyNo2,callback:function(t){e.$set(e.ruleForm,"companyNo2",t)},expression:"ruleForm.companyNo2"}},e._l(e.activeOptions2,(function(e){return a("el-option",{key:e.companyNo,attrs:{label:e.companyName,value:e.companyNo}})})),1)],1)],1):e._e(),a("el-col",{attrs:{span:24}},[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"发票抬头",prop:"invoice_title"}},[a("el-input",{attrs:{disabled:e.disableds,placeholder:"请输入发票抬头"},model:{value:e.ruleForm1.invoice_title,callback:function(t){e.$set(e.ruleForm1,"invoice_title",t)},expression:"ruleForm1.invoice_title"}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"纳税登记证号",prop:"invoice_code"}},[a("el-input",{attrs:{disabled:e.disableds,placeholder:"请输入纳税登记证号"},model:{value:e.ruleForm1.invoice_code,callback:function(t){e.$set(e.ruleForm1,"invoice_code",t)},expression:"ruleForm1.invoice_code"}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"开户银行名称",prop:"invoice_bank"}},[a("el-input",{attrs:{disabled:e.disableds,placeholder:"请输入开户银行名称"},model:{value:e.ruleForm1.invoice_bank,callback:function(t){e.$set(e.ruleForm1,"invoice_bank",t)},expression:"ruleForm1.invoice_bank"}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"开户银行账号",prop:"invoice_bankNo"}},[a("el-input",{attrs:{disabled:e.disableds,placeholder:"请输入开户银行账号"},model:{value:e.ruleForm1.invoice_bankNo,callback:function(t){e.$set(e.ruleForm1,"invoice_bankNo",t)},expression:"ruleForm1.invoice_bankNo"}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"纳税登记地址",prop:"invoice_addr"}},[a("el-input",{attrs:{disabled:e.disableds,placeholder:"请输入纳税登记地址"},model:{value:e.ruleForm1.invoice_addr,callback:function(t){e.$set(e.ruleForm1,"invoice_addr",t)},expression:"ruleForm1.invoice_addr"}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"联系电话",prop:"invoice_mobile"}},[a("el-input",{attrs:{disabled:e.disableds,placeholder:"请输入联系电话"},model:{value:e.ruleForm1.invoice_mobile,callback:function(t){e.$set(e.ruleForm1,"invoice_mobile",t)},expression:"ruleForm1.invoice_mobile"}})],1)],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"发票类型",prop:"inv_type"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{clearable:"",disabled:e.disableds,placeholder:"请选择发票类型"},model:{value:e.ruleForm1.inv_type,callback:function(t){e.$set(e.ruleForm1,"inv_type",t)},expression:"ruleForm1.inv_type"}},e._l(e.invioceType,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"开票类型",prop:"type"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{disabled:"003"!==e.isDetail,placeholder:"请选择开票类型"},on:{change:e.changetype},model:{value:e.ruleForm1.type,callback:function(t){e.$set(e.ruleForm1,"type",t)},expression:"ruleForm1.type"}},e._l(e.billType,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),2===e.ruleForm1.type?a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"开票总金额(元)",prop:"total"}},[a("el-input-number",{staticStyle:{width:"100%"},attrs:{"step-strictly":"","controls-position":"right",disabled:e.disableds,precision:2,step:.01,min:0,max:1e12},model:{value:e.ruleForm1.total,callback:function(t){e.$set(e.ruleForm1,"total",t)},expression:"ruleForm1.total"}})],1)],1):e._e(),2===e.ruleForm1.type?a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"备注",prop:"remark"}},[a("el-input",{attrs:{disabled:e.disableds,type:"textarea",maxlength:"250","show-word-limit":"",autosize:{minRows:6,maxRows:6},placeholder:"请输入商品明细要求: 商品分类,型号等信息"},model:{value:e.ruleForm1.remark,callback:function(t){e.$set(e.ruleForm1,"remark",t)},expression:"ruleForm1.remark"}})],1)],1):e._e(),a("el-col",{attrs:{span:24}},[a("el-row",["2"===e.status?a("el-col",{attrs:{span:20}},[a("el-alert",{attrs:{title:"财务驳回理由:",type:"error",closable:!1,description:e.exam_remark,"show-icon":""}})],1):e._e(),a("el-col",{staticStyle:{"text-align":"right"},attrs:{span:"2"===e.status?4:24}},[2!==e.ruleForm1.type?a("el-button",{attrs:{type:"primary"},on:{click:e.submitForm1}},[e._v("下一步"),a("i",{staticClass:"el-icon-arrow-right el-icon--right"})]):e._e(),e.disableds||2!==e.ruleForm1.type?e._e():a("el-button",{attrs:{type:"primary"},on:{click:e.submitForm1}},[e._v("保 存 ")])],1)],1)],1)],1)],1)],1):a("el-col",{attrs:{span:24}},[a("el-row",[a("el-col",{staticStyle:{padding:"0 12px 8px 0"},attrs:{span:"003"!==e.isDetail?24:21}},[a("el-alert",{attrs:{title:"特别提示:请注意商品未核销数量/发票未核销金额。若此次核销的数量等于未核销数量,不论此次总金额核销后,发票未核销金额是否为0,都不能再使用该商品核销!发票核销总金额同理。",type:"error",closable:!1,"show-icon":""}})],1),"003"===e.isDetail?a("el-col",{staticClass:"tr",staticStyle:{padding:"11px 0 8px 0"},attrs:{span:3}},[a("el-button",{staticClass:"fr",attrs:{type:"primary",size:"small"},on:{click:e.openModal}},[e._v("添加产品确认单")])],1):e._e(),a("el-col",{attrs:{span:24}},[a("el-table",{staticStyle:{width:"100%"},attrs:{size:"mini",data:e.tableData,stripe:"","highlight-current-row":"","max-height":"380",border:""}},[a("el-table-column",{attrs:{label:"产品编号",prop:"goodNo","show-overflow-tooltip":"",width:"125"}}),a("el-table-column",{attrs:{label:"商品名称",prop:"goodname","show-overflow-tooltip":"","min-width":"120"}}),a("el-table-column",{attrs:{label:"开票商品名",width:"160",prop:"remark","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{label:"品牌",prop:"brand",width:"80","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{label:"单位",prop:"unit",width:"80","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{label:"单价",width:"90",prop:"price"}}),a("el-table-column",{attrs:{label:"数量",align:"center"}},[a("el-table-column",{attrs:{label:"总计",width:"70",prop:"num"}}),a("el-table-column",{attrs:{label:"已核销",width:"70",prop:"inv_num"}}),a("el-table-column",{attrs:{label:"未核销",width:"70",prop:"over_num"}}),a("el-table-column",{attrs:{label:"此次核销",width:"70",prop:"good_num"}})],1),a("el-table-column",{attrs:{label:"总价",width:"105",prop:"total","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{label:"关联发票信息",align:"center"}},[a("el-table-column",{attrs:{label:"已核销金额",width:"100",prop:"ainv_fee","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{label:"未核销金额",width:"100",prop:"winv_fee","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{label:"此次核销金额",width:"100",prop:"total_fee"}})],1),"003"===e.isDetail||"005"===e.isDetail?a("el-table-column",{attrs:{fixed:"right",label:"操作",width:"80"},scopedSlots:e._u([{key:"default",fn:function(t){return["003"===e.isDetail||"005"===e.isDetail?a("el-tooltip",{attrs:{effect:"dark",content:"编辑",placement:"top"}},["003"===e.isDetail||"005"===e.isDetail?a("i",{staticClass:"el-icon-edit tb-icon",on:{click:function(a){return e.editRow(t.$index)}}}):e._e()]):e._e(),"003"===e.isDetail?a("el-tooltip",{attrs:{effect:"dark",content:"删除",placement:"top"}},["003"===e.isDetail?a("i",{staticClass:"el-icon-delete tb-icon",on:{click:function(a){return e.deleteRow(t.$index,e.tableData)}}}):e._e()]):e._e()]}}],null,!1,1227095925)}):e._e()],1)],1),a("el-col",{staticStyle:{padding:"10px 0 0 0"},attrs:{span:24}},[a("el-input",{attrs:{disabled:e.disableds,type:"textarea",maxlength:"250","show-word-limit":"",autosize:{minRows:3,maxRows:3},placeholder:"请输入其他要求"},model:{value:e.remark,callback:function(t){e.remark=t},expression:"remark"}})],1),a("el-col",{staticStyle:{padding:"10px 0 0 0"},attrs:{span:24}},[a("el-row",["2"===e.status?a("el-col",{attrs:{span:19}},[a("el-alert",{attrs:{title:"财务驳回理由:",type:"error",closable:!1,description:e.exam_remark,"show-icon":""}})],1):e._e(),a("el-col",{staticClass:"tr",attrs:{span:"2"===e.status?5:24}},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.step=1}}},[e._v("上一步"),a("i",{staticClass:"el-icon-arrow-right el-icon--right"})]),e.disableds?e._e():a("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("保 存 ")])],1)],1)],1)],1),a("order-change-dialog",{attrs:{id:e.orderModelId,trade_status:"",inv_status:"4","show-model":e.showOrderModel},on:{refresh:e.orderRefresh,cancel:function(t){e.showOrderModel=!1}}}),a("good-change-dialog",{attrs:{"show-model":e.showGoodChangeModel,item:e.activeItem,"is-detail":e.isDetail},on:{refresh:e.goodChangeEnd,cancel:function(t){e.showGoodChangeModel=!1}}})],1)],1)}),[],!1,null,"00e815d0",null);t.default=s.exports},fb1e:function(e,t,a){},fc3d:function(e,t,a){"use strict";a("b0d1")},fca6c:function(e,t,a){},fdb1:function(e,t,a){"use strict";a.r(t);var r=a("1da1"),n=(a("96cf"),a("61f7")),i=a("bf2a"),o=a("6a1e"),s=a("9f53");i={name:"Login",components:{SocialSign:i.a},mixins:[s.a],data:function(){return{loginForm:{mobile:"",code:""},loginRules:{mobile:[{required:!0,trigger:"blur",validator:function(e,t,a){""===t?a(new Error("手机号不能为空!")):Object(n.g)(t)?a():a(new Error("手机号不正确!"))}}],code:[{required:!0,trigger:"blur",validator:function(e,t,a){""===t?a(new Error("验证码不能为空!")):Object(n.i)(t)&&6===t.length?a():a(new Error("验证码应为6位数字!"))}}]},loading:!1,otherQuery:{}}},mounted:function(){""===this.loginForm.mobile&&this.$refs.mobile.focus(),""===this.loginForm.code&&this.$refs.code.focus()},methods:{handleLogin:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.$refs.loginForms.validate(function(){var t=Object(r.a)(regeneratorRuntime.mark((function t(a){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!a){t.next=4;break}e.loading||(e.loading=!0,o.a.resetmobile(e.loginForm).then(function(){var t=Object(r.a)(regeneratorRuntime.mark((function t(a){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a&&0===a.code)return e.loading=!1,e.$message.success(a.message),t.next=5,e.logout();t.next=7;break;case 5:t.next=14;break;case 7:if(a&&100<=a.code&&a.code<=104)return t.next=10,e.logout();t.next=12;break;case 10:t.next=14;break;case 12:e.$message.warning(a.message),e.loading=!1;case 14:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())),t.next=6;break;case 4:return t.abrupt("return",!1);case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 1:case"end":return t.stop()}}),t)})))()}}},a("dced"),a("1db7"),s=a("2877"),a=Object(s.a)(i,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("div",{staticClass:"change-mobile"},[t("div",{staticClass:"change"},[t("div",{staticClass:"title"},[e._v("更换手机号")]),t("el-form",{ref:"loginForms",staticClass:"login-form",attrs:{model:e.loginForm,rules:e.loginRules,autocomplete:"on","label-position":"right","label-width":"100px"}},[t("el-form-item",{attrs:{prop:"mobile",label:"新手机号:"}},[t("el-input",{ref:"mobile",attrs:{placeholder:"手机号",name:"mobile",type:"text",tabindex:"1",autocomplete:"on"},model:{value:e.loginForm.mobile,callback:function(t){e.$set(e.loginForm,"mobile",t)},expression:"loginForm.mobile"}})],1),t("el-form-item",{staticClass:"code-sign",attrs:{prop:"code",label:"验证码:"}},[t("ul",{staticClass:"code-main"},[t("li",[t("el-input",{ref:"code",attrs:{placeholder:"验证码",name:"code",type:"code",tabindex:"1",autocomplete:"on"},model:{value:e.loginForm.code,callback:function(t){e.$set(e.loginForm,"code",t)},expression:"loginForm.code"}})],1),t("li",[t("SocialSign",{attrs:{mobile:e.loginForm.mobile}})],1)])]),t("el-button",{staticStyle:{width:"98%",margin:"15px 0 0 5%"},attrs:{loading:e.loading,type:"primary",round:""},nativeOn:{click:function(t){return t.preventDefault(),e.handleLogin(t)}}},[e._v("确认修改")])],1)],1)])}),[],!1,null,"63dd994c",null);t.default=a.exports},fe57:function(e,t,a){},fe9c:function(e,t,a){"use strict";a.r(t);var r=a("1da1"),n=(a("96cf"),a("a9e3"),a("d81d"),a("79e3")),i=a.n(n);a("7bc1"),i.a.autoDiscover=!1;n={props:{id:{type:String,required:!0},url:{type:String,required:!0},clickable:{type:Boolean,default:!0},defaultMsg:{type:String,default:"上传图片"},acceptedFiles:{type:String,default:""},thumbnailHeight:{type:Number,default:200},thumbnailWidth:{type:Number,default:200},showRemoveLink:{type:Boolean,default:!0},maxFilesize:{type:Number,default:1},maxFiles:{type:Number,default:100},autoProcessQueue:{type:Boolean,default:!0},useCustomDropzoneOptions:{type:Boolean,default:!1},defaultImg:{default:"",type:[String,Array]},couldPaste:{type:Boolean,default:!1}},data:function(){return{dropzone:"",initOnce:!0}},watch:{defaultImg:function(e){0===e.length?this.initOnce=!1:this.initOnce&&(this.initImages(e),this.initOnce=!1)}},mounted:function(){var e=document.getElementById(this.id),t=this;this.dropzone=new i.a(e,{clickable:this.clickable,thumbnailWidth:this.thumbnailWidth,thumbnailHeight:this.thumbnailHeight,maxFiles:this.maxFiles,maxFilesize:this.maxFilesize,dictRemoveFile:"移除",addRemoveLinks:this.showRemoveLink,acceptedFiles:this.acceptedFiles,autoProcessQueue:this.autoProcessQueue,dictDefaultMessage:'<i style="margin:0 0 1em 0;display: inline-block" class="material-icons el-icon-upload">'+this.defaultMsg+"</i><br>将文件放到此处上载",dictMaxFilesExceeded:"最多上传100张",previewTemplate:'<div class="dz-preview dz-file-preview"> <div class="dz-image" style="width:'+this.thumbnailWidth+"px;height:"+this.thumbnailHeight+'px" ><img style="width:'+this.thumbnailWidth+"px;height:"+this.thumbnailHeight+'px" data-dz-thumbnail /></div> <div class="dz-details"><div class="dz-size"><span data-dz-size></span></div> <div class="dz-progress"><span class="dz-upload" data-dz-uploadprogress></span></div> <div class="dz-error-message"><span data-dz-errormessage></span></div> <div class="dz-success-mark"> <i class="material-icons">done</i> </div> <div class="dz-error-mark"><i class="material-icons">error</i></div></div>',init:function(){var e,a=this,r=t.defaultImg;r&&(Array.isArray(r)?0!==r.length&&r.map((function(e,r){return r={name:"name"+r,size:12345,url:e},a.options.addedfile.call(a,r),a.options.thumbnail.call(a,r,e),r.previewElement.classList.add("dz-success"),r.previewElement.classList.add("dz-complete"),!(t.initOnce=!1)})):(this.options.addedfile.call(this,e={name:"name",size:12345,url:r}),this.options.thumbnail.call(this,e,r),e.previewElement.classList.add("dz-success"),e.previewElement.classList.add("dz-complete"),t.initOnce=!1))},accept:function(e,t){t()},sending:function(e,a,r){t.initOnce=!1}}),this.couldPaste&&document.addEventListener("paste",this.pasteImg),this.dropzone.on("success",(function(e){t.$emit("dropzone-success",e,t.dropzone.element)})),this.dropzone.on("addedfile",(function(e){t.$emit("dropzone-fileAdded",e)})),this.dropzone.on("removedfile",(function(e){t.$emit("dropzone-removedFile",e)})),this.dropzone.on("error",(function(e,a,r){t.$emit("dropzone-error",e,a,r)})),this.dropzone.on("successmultiple",(function(e,a,r){t.$emit("dropzone-successmultiple",e,a,r)}))},destroyed:function(){document.removeEventListener("paste",this.pasteImg),this.dropzone.destroy()},methods:{removeAllFiles:function(){this.dropzone.removeAllFiles(!0)},processQueue:function(){this.dropzone.processQueue()},pasteImg:function(e){e=(e.clipboardData||e.originalEvent.clipboardData).items,"file"===e[0].kind&&this.dropzone.addFile(e[0].getAsFile())},initImages:function(e){var t,a=this;e&&(Array.isArray(e)?e.map((function(e,t){return t={name:"name"+t,size:12345,url:e},a.dropzone.options.addedfile.call(a.dropzone,t),a.dropzone.options.thumbnail.call(a.dropzone,t,e),t.previewElement.classList.add("dz-success"),t.previewElement.classList.add("dz-complete"),!0})):(this.dropzone.options.addedfile.call(this.dropzone,t={name:"name",size:12345,url:e}),this.dropzone.options.thumbnail.call(this.dropzone,t,e),t.previewElement.classList.add("dz-success"),t.previewElement.classList.add("dz-complete")))}}};var o=(a("f2dc"),a("2877"));n={name:"batchUploadDialog",props:["showModel"],components:{Dropzone:Object(o.a)(n,(function(){var e=this.$createElement;e=this._self._c||e;return e("div",{ref:this.id,staticClass:"dropzone",attrs:{id:this.id,action:this.url}},[e("input",{attrs:{type:"file",name:"file"}})])}),[],!1,null,"241f4b18",null).exports},data:function(){return{loading:!1,title:"添加图片",showModelThis:this.showModel}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis:function(e){e||this.$emit("cancel")}},methods:{closeModel:function(){},dropzoneS:function(e){this.$message({message:"Upload success",type:"success"})},dropzoneR:function(e){this.$message({message:"Delete success",type:"success"})},refreshAll:function(){this.showModelThis=!1,this.$emit("refresh")},initForm:function(){return Object(r.a)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)})))()}}},a("7078"),a=Object(o.a)(n,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:e.title,center:!0,align:"left",top:"10vh",width:"1040px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)","append-to-body":""},on:{"update:visible":function(t){e.showModelThis=t},close:e.closeModel}},[t("el-card",{staticStyle:{"margin-top":"-15px"}},[t("el-row",[t("el-col",{attrs:{span:24}},[t("div",{staticClass:"editor-container"},[t("dropzone",{staticStyle:{background:"#eef1f6"},attrs:{id:"myVueDropzone",url:"https://httpbin.org/post"},on:{"dropzone-removedFile":e.dropzoneR,"dropzone-success":e.dropzoneS}})],1)]),t("el-col",{staticStyle:{"text-align":"right"},attrs:{span:24}},[t("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("保 存 ")])],1)],1)],1)],1)}),[],!1,null,"ab1deb96",null);t.default=a.exports},feca:function(e,t,a){var r={"./InvoiceSales/capitalClaim/addEdit.vue":"a717","./InvoiceSales/capitalClaim/addEdit1.vue":"3904","./InvoiceSales/capitalClaim/index.vue":"6aa7","./InvoiceSales/capitalPool/index.vue":"2ebb","./InvoiceSales/clients/addEdit.vue":"203d","./InvoiceSales/clients/index.vue":"bc68","./InvoiceSales/invoiceApply/addEdit1.vue":"c6ef","./InvoiceSales/invoiceApply/addEdit2.vue":"5a3c","./InvoiceSales/invoiceApply/addEdit3.vue":"6f1c","./InvoiceSales/invoiceApply/addEdit4.vue":"6fbb","./InvoiceSales/invoiceApply/addview copy.vue":"fa0c","./InvoiceSales/invoiceApply/addview.vue":"8ef8","./InvoiceSales/invoiceApply/appProcess.vue":"6fd3","./InvoiceSales/invoiceApply/goodChangeDialog.vue":"52a0","./InvoiceSales/invoiceApply/index.vue":"a775","./InvoiceSales/invoicePool/index.vue":"41a1","./InvoiceSales/orderBatchBilling/addEdit.vue":"8e23","./InvoiceSales/orderBatchBilling/index.vue":"a19d","./InvoiceSales/refund/addEdit.vue":"1d37","./InvoiceSales/refund/index.vue":"621b","./InvoiceSales/refund/stepBar.vue":"50b8","./InvoiceSales/relation/addView.vue":"9403","./InvoiceSales/relation/index.vue":"1caa","./InvoiceSales/relationQuery/addEdit.vue":"14b9","./InvoiceSales/relationQuery/headTemplate.vue":"c9be","./InvoiceSales/relationQuery/index.vue":"10c0","./InvoiceSales/relationQuery/itemTemplate.vue":"88a9","./InvoiceSales/returnTicket/addEdit.vue":"a204","./InvoiceSales/returnTicket/index.vue":"f481","./InvoiceSales/returnTicket/stepBar.vue":"af30","./InvoiceSales/sheetOrderPool/index.vue":"d541","./dashboard/index.vue":"9406","./developing/index.vue":"d668","./error-page/404.vue":"1db4","./interest/account/addEdit.vue":"6d88","./interest/account/index.vue":"c420","./interest/account/resetPassword.vue":"1842","./interest/action/index.vue":"7914","./interest/dataShare/addEdit.vue":"b32b","./interest/dataShare/index.vue":"9e7a","./interest/group/addEdit.vue":"d79e","./interest/group/index.vue":"2ee3","./interest/role/addEdit.vue":"f291","./interest/role/index.vue":"d4aa","./loadingPage/index.vue":"7e10","./login/forget-password.vue":"43b9","./login/index.vue":"9ed6","./network/orderEntry/addEdit.vue":"5d51","./network/orderEntry/index.vue":"c092","./parameter/finance/addEdit.vue":"ebe4","./parameter/finance/index.vue":"1e63","./person-infor/change-password.vue":"a9ad","./person-infor/change-phone.vue":"fdb1","./person-infor/my-message.vue":"2cc2","./purchase/orderRecord/components/InvoiceHead.vue":"5563","./purchase/orderRecord/components/InvoiceReview.vue":"24a2","./purchase/orderRecord/components/InvoiceUpload.vue":"d0b8","./purchase/orderRecord/components/addEdit1.vue":"4a35","./purchase/orderRecord/components/addEdit2.vue":"ee22","./purchase/orderRecord/components/addEdit21.vue":"5844","./purchase/orderRecord/components/addEdit22.vue":"7970","./purchase/orderRecord/components/addEdit23.vue":"4580","./purchase/orderRecord/components/addEdit3.vue":"0c50","./purchase/orderRecord/components/addEdit4.vue":"95c0","./purchase/orderRecord/components/addEdit5.vue":"d1ee","./purchase/orderRecord/components/addEdit6.vue":"57d4","./purchase/orderRecord/components/addView.vue":"5bcd","./purchase/orderRecord/components/batchUploadDialog.vue":"fe9c","./purchase/orderRecord/components/examView.vue":"7a5e","./purchase/orderRecord/components/feedbackView.vue":"1195","./purchase/orderRecord/components/orderChange.vue":"f57a","./purchase/orderRecord/components/payExamView.vue":"837b","./purchase/orderRecord/components/payStepBar.vue":"9218","./purchase/orderRecord/components/proofreading.vue":"e3ad","./purchase/orderRecord/components/receipt.vue":"08ff","./purchase/orderRecord/components/stepBar.vue":"6810","./purchase/orderRecord/index.vue":"7a88","./purchase/pordeRGoods/index.vue":"4e97","./purchase/porder/examEdit.vue":"d313","./purchase/porder/index.vue":"2b34","./purchase/porder/setEdit.vue":"8eac","./purchase/supplierPay/addEdit.vue":"c94c","./purchase/supplierPay/index.vue":"9f42","./redirect/index.vue":"ef3c","./report/addEdit.vue":"0880","./report/index.vue":"71ff","./search/commission/index.vue":"9dd5","./search/standBook/addEdit.vue":"f210","./search/standBook/history-data.vue":"1c20","./search/standBook/index.vue":"d160","./search/standBook/pre-export.vue":"bf96","./search/standBook/real-time-export-new.vue":"b27c","./search/standBook/real-time-export.vue":"8961","./search/table/index.vue":"1420","./system/menuOperator/addEdit.vue":"b36d","./system/menuOperator/iconDialog.vue":"cdf1","./system/menuOperator/index.vue":"5de4","./system/oplog/index.vue":"b346","./system/parameter/addEdit.vue":"5f10","./system/parameter/index.vue":"eb67","./system/updates/index.vue":"5e53"};function n(e){return e=i(e),a(e)}function i(e){if(a.o(r,e))return r[e];throw(e=new Error("Cannot find module '"+e+"'")).code="MODULE_NOT_FOUND",e}n.keys=function(){return Object.keys(r)},n.resolve=i,(e.exports=n).id="feca"},ff1f:function(e,t,a){e.exports=a.p+"static/img/welcome.6cf0f25b.gif"},ff7e:function(e,t,a){"use strict";var r=a("1b69"),n="Admin/";t.a={list:function(e,t){return Object(r.a)(n+"paymentcgdlist",e,"post",t)},supplierlist:function(e,t){return Object(r.a)(n+"supplierlist",e,"post",t)},companylist:function(e,t){return Object(r.a)(n+"companyall",e,"post",t)},inv:function(e,t){return Object(r.a)(n+"paymentcgdinv",e,"post",t)},exam:function(e,t){return Object(r.a)(n+"paymentcgdexam",e,"post",t)},paymentunpay:function(e,t){return Object(r.a)(n+"paymentunpay",e,"post",t)}}},ffe4:function(e,t,a){"use strict";var r=a("1da1"),n=(a("d3b7"),a("159b"),a("96cf"),a("b97c")),i=a("f5ed"),o=a("9f53"),s=a("db30");i={props:["id","showModel","inv_status","trade_status","order_status","onces","isAll"],mixins:[i.a,o.a],data:function(){return{loading:!1,icon:"",count:0,tableData:[],showModelThis:this.showModel,multipleSelection:[],platform:s.f,parmValue:{starttime:"",endtime:"",sequenceNo:"",platform:"",companyNo:this.id,page:1,size:10,total_low:"",total_up:"",pay_status:"",inv_status:"",inv_low:"",inv_up:"",pay_low:"",pay_up:""}}},watch:{icon:function(e){e&&(this.showModelThis=!1,this.$emit("setVal",e))},showModel:function(e){this.showModelThis=e},showModelThis:function(e){e?(this.parmValue.page=1,this.searchList()):this.$emit("cancel")}},methods:{handleSelectionChange:function(e){this.multipleSelection=e},restSearch:function(){this.parmValue.sequenceNo="",this.parmValue.page=1,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.multipleSelection=[],e.loading){t.next=23;break}return e.loading=!0,e.tableData=[],e.parmValue.companyNo=e.id,e.parmValue.pay_status=e.trade_status,e.parmValue.inv_status=e.inv_status,t.next=9,n.a.qrdlist(e.parmValue);case 9:if(!((a=t.sent)&&0===a.code&&a.data&&a.data.list)){t.next=15;break}e.tableData=a.data.list,e.count=a.data.count,t.next=22;break;case 15:if(a&&100<=a.code&&a.code<=104)return t.next=18,e.logout();t.next=20;break;case 18:t.next=22;break;case 20:e.tableData=[],e.count=0;case 22:e.loading=!1;case 23:case"end":return t.stop()}}),t)})))()},closeModel:function(){},submitForm: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(a=!0,e.multipleSelection.forEach((function(t){"4"===e.inv_status&&0!==parseInt(t.inv_fee)&&(a=!1),"4"===e.trade_status&&0!==parseInt(t.pay_fee)&&(a=!1)})),a){t.next=9;break}if("4"===e.inv_status)return e.$message.warning("部分确认单信息:发票处理中的金额不为零!!"),t.abrupt("return");t.next=6;break;case 6:if("4"===e.trade_status)return e.$message.warning("部分确认单信息:资金处理中的金额不为零!!"),t.abrupt("return");t.next=9;break;case 9:if(e.onces&&1<e.multipleSelection.length)return e.$message.warning("只能选择一条数据!"),t.abrupt("return");t.next=14;break;case 14:!0===e.isAll?(e.showModelThis=!1,e.$emit("refresh",e.multipleSelection)):(r=[],e.multipleSelection.forEach((function(e){e.good.forEach((function(t){t.orderNo=e.sequenceNo,t.good_num=parseInt(t.num)-parseInt(t.inv_num),t.over_num=parseInt(t.num)-parseInt(t.inv_num),t.total=t.total_fee,t.total_fee=t.winv_fee,t.over_total=t.winv_fee,t.remark=t.goodname,r.push(t)}))})),e.showModelThis=!1,e.$emit("refresh",r));case 15:case"end":return t.stop()}}),t)})))()}}},o=a("2877"),a=Object(o.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:"7vh",width:"1024px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)","append-to-body":""},on:{"update:visible":function(t){e.showModelThis=t},close:e.closeModel}},[a("el-card",{staticStyle:{height:"700px","margin-top":"-25px"}},[a("el-row",{attrs:{gutter:10}},[a("el-col",{staticStyle:{padding:"0 0 10px 0"},attrs:{span:24}},[a("el-col",{staticStyle:{width:"200px"},attrs:{span:6}},[a("el-select",{staticStyle:{width:"100%"},attrs:{size:e.searchSize,clearable:"",placeholder:"所属平台"},on:{change:function(t){e.parmValue.page=1,e.searchList()}},model:{value:e.parmValue.platform,callback:function(t){e.$set(e.parmValue,"platform",t)},expression:"parmValue.platform"}},e._l(e.platform,(function(e){return a("el-option",{key:e,attrs:{label:e,value:e}})})),1)],1),a("el-col",{staticStyle:{width:"300px"},attrs:{span:8}},[a("el-input",{attrs:{placeholder:"请输入确认单编号"},model:{value:e.parmValue.sequenceNo,callback:function(t){e.$set(e.parmValue,"sequenceNo",t)},expression:"parmValue.sequenceNo"}},[a("el-button",{attrs:{slot:"append",icon:"el-icon-search"},on:{click:function(t){e.parmValue.page=1,e.searchList()}},slot:"append"})],1)],1),a("el-col",{staticClass:"fr tr",staticStyle:{width:"160px"},attrs:{span:4}},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.parmValue.page=1,e.searchList()}}},[e._v(" 刷新 ")]),a("el-button",{attrs:{type:"warning"},on:{click:e.restSearch}},[e._v(" 重置 ")])],1)],1),a("el-col",{attrs:{span:24}},[a("el-table",{ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:e.tableData,stripe:"",border:"",size:"mini","max-height":"610","row-key":"id","expand-row-keys":e.expands},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"expand"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-table",{staticStyle:{width:"100%"},attrs:{size:"mini",data:t.row.good,stripe:"","max-height":"350",border:""}},[a("el-table-column",{attrs:{label:"产品编号",prop:"goodNo","show-overflow-tooltip":"",width:"125"}}),a("el-table-column",{attrs:{label:"商品名称",prop:"goodname","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{label:"品牌",prop:"brand",width:"80","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{label:"单位",prop:"unit",width:"80","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{label:"数量",width:"65","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.num)+" ")]}}],null,!0)}),a("el-table-column",{attrs:{label:"单价",width:"90","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.price)+" ")]}}],null,!0)}),a("el-table-column",{attrs:{label:"总价",width:"105","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.total_fee)+" ")]}}],null,!0)}),a("el-table-column",{attrs:{label:"资金已核销金额",width:"105","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.apay_fee)+" ")]}}],null,!0)}),a("el-table-column",{attrs:{prop:"paying_fee",label:"资金处理中的金额","show-overflow-tooltip":"","min-width":"120"}}),a("el-table-column",{attrs:{label:"资金待核销金额",width:"105","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.wpay_fee)+" ")]}}],null,!0)}),a("el-table-column",{attrs:{label:"关联资金状态",width:"105","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return["1"===t.row.pay_status?a("el-tag",{attrs:{type:"danger",size:"mini"}},[e._v("未核销")]):"2"===t.row.pay_status?a("el-tag",{attrs:{type:"warning",size:"mini"}},[e._v("部分核销")]):a("el-tag",{attrs:{type:"",size:"mini"}},[e._v("全部核销")])]}}],null,!0)}),a("el-table-column",{attrs:{label:"发票已核销数量",width:"105","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.inv_num)+" ")]}}],null,!0)}),a("el-table-column",{attrs:{label:"发票已核销金额",width:"105","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.ainv_fee)+" ")]}}],null,!0)}),a("el-table-column",{attrs:{prop:"inving_fee",label:"发票处理中的金额","show-overflow-tooltip":"","min-width":"120"}}),a("el-table-column",{attrs:{label:"发票待核销金额",width:"105","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.winv_fee)+" ")]}}],null,!0)}),a("el-table-column",{attrs:{label:"关联发票状态",width:"105","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return["1"===t.row.inv_status?a("el-tag",{attrs:{type:"danger",size:"mini"}},[e._v("未核销")]):"2"===t.row.inv_status?a("el-tag",{attrs:{type:"warning",size:"mini"}},[e._v("部分核销")]):a("el-tag",{attrs:{type:"",size:"mini"}},[e._v("全部核销")])]}}],null,!0)})],1)]}}])}),a("el-table-column",{attrs:{type:"selection",width:"45",fixed:"left",align:"center"}}),a("el-table-column",{attrs:{prop:"sequenceNo",label:"确认单号","show-overflow-tooltip":"",width:"140"}}),a("el-table-column",{attrs:{prop:"platform",label:"所属平台","show-overflow-tooltip":"",width:"120"}}),a("el-table-column",{attrs:{prop:"companyNo",label:"企业编码","show-overflow-tooltip":"",width:"130"}}),a("el-table-column",{attrs:{prop:"customer",label:"企业名称","show-overflow-tooltip":"","min-width":"170"}}),a("el-table-column",{attrs:{prop:"contactor",label:"联系人","show-overflow-tooltip":"","min-width":"70"}}),a("el-table-column",{attrs:{prop:"sales_name",label:"业务员","show-overflow-tooltip":"","min-width":"70"}}),a("el-table-column",{attrs:{prop:"total_fee",label:"订单总金额","show-overflow-tooltip":"","min-width":"110"}}),a("el-table-column",{attrs:{label:"关联资金信息","show-overflow-tooltip":"",align:"center"}},[a("el-table-column",{attrs:{prop:"apay_fee",label:"已核销金额","show-overflow-tooltip":"","min-width":"110"}}),a("el-table-column",{attrs:{prop:"pay_fee",label:"处理中的金额","show-overflow-tooltip":"","min-width":"110"}}),a("el-table-column",{attrs:{prop:"wpay_fee",label:"未核销金额","show-overflow-tooltip":"","min-width":"110"}}),a("el-table-column",{attrs:{label:"核销状态","show-overflow-tooltip":"","min-width":"95"},scopedSlots:e._u([{key:"default",fn:function(t){return["1"===t.row.pay_status?a("el-tag",{attrs:{type:"danger",size:"mini"}},[e._v("未核销")]):"2"===t.row.pay_status?a("el-tag",{attrs:{type:"warning",size:"mini"}},[e._v("部分核销")]):a("el-tag",{attrs:{type:"",size:"mini"}},[e._v("全部核销")])]}}])})],1),a("el-table-column",{attrs:{label:"关联发票信息","show-overflow-tooltip":"",align:"center"}},[a("el-table-column",{attrs:{prop:"ainv_fee",label:"已核销金额","show-overflow-tooltip":"","min-width":"110"}}),a("el-table-column",{attrs:{prop:"inv_fee",label:"处理中的金额","show-overflow-tooltip":"","min-width":"110"}}),a("el-table-column",{attrs:{prop:"winv_fee",label:"未核销金额","show-overflow-tooltip":"","min-width":"110"}}),a("el-table-column",{attrs:{label:"核销状态","show-overflow-tooltip":"","min-width":"95"},scopedSlots:e._u([{key:"default",fn:function(t){return["1"===t.row.inv_status?a("el-tag",{attrs:{type:"danger",size:"mini"}},[e._v("未核销")]):"2"===t.row.inv_status?a("el-tag",{attrs:{type:"warning",size:"mini"}},[e._v("部分核销")]):a("el-tag",{attrs:{type:"",size:"mini"}},[e._v("全部核销")])]}}])})],1)],1)],1),a("el-col",{attrs:{span:24}},[a("el-row",[a("el-col",{attrs:{span:18}},[a("div",{staticClass:"Pagination",staticStyle:{"text-align":"center","margin-top":"12px"}},[a("el-pagination",{attrs:{"current-page":e.parmValue.page,"page-size":e.parmValue.size,size:e.searchSize,layout:"total, prev, pager, next, jumper",total:e.count},on:{"size-change":e.handleSizeChange,"current-change":e.handlePageChange}})],1)]),a("el-col",{staticStyle:{"text-align":"right"},attrs:{span:6}},[a("div",{staticStyle:{"margin-top":"12px"}},[a("el-button",{attrs:{type:"primary",size:"medium"},on:{click:e.submitForm}},[e._v("保 存 ")]),a("el-button",{attrs:{size:"medium"},on:{click:function(t){e.showModelThis=!1}}},[e._v(e._s(e.isDetail?"关 闭":"取 消"))])],1)])],1)],1)],1)],1)],1)}),[],!1,null,null,null);t.a=a.exports}}]);
|