You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
27 KiB
1 lines
27 KiB
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-1c4d0654"],{"0c19":function(e,t,a){},"1a86":function(e,t,a){"use strict";t.a={data:function(){return{isSearch:!1,total:null}},created:function(){},methods:{handleSizeChange:function(e){this.queryInfo.pageSize=e,this.initTable()},handleCurrentChange:function(e){this.queryInfo.pageNum=e,this.initTable()},searchClick:function(){this.isSearch=!this.isSearch}}}},"307d":function(e,t,a){"use strict";(function(t){function a(e){return(e+"===".slice((e.length+3)%4)).replace(/-/g,"+").replace(/_/g,"/")}function n(e){return e.replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}e.exports={unescape:a,escape:n,encode:function(e,a){return n(t.from(e,a||"utf8").toString("base64"))},decode:function(e,n){return t.from(a(e),"base64").toString(n||"utf8")}}}).call(this,a("b639").Buffer)},4089:function(e,t,a){"use strict";a.r(t);a("7db0"),a("4160"),a("a630"),a("a434"),a("b0c0"),a("3ca3"),a("159b"),a("cca6");var n=a("5530"),l=(a("96cf"),a("1da1")),i=a("dd85"),o=a("fa7d"),r=a("1a86"),c=a("307d"),s=a.n(c),u=a("2f62"),d={chooseBillDialog:!1,chooseMatchDialog:!1,moreSearchDialog:!1,matchFields:{invoiceType:2,seller:"",number:"",buyer:"",matchMode:1},currentStep:1,billData:[],matchTable:[],chooseItem:{},numberS:"",numberE:""},p={handleRemove:function(e){this.matchTable.splice(e.$index,1)},handleMatch:function(){var e=this,t={numberS:this.numberS,numberE:this.numberE,invoiceType:this.matchFields.invoiceType};Object(i.I)(t).then((function(t){e.matchTable=t.result}))},nextStep:function(){if(this.hasChoose.length>1)return this.$message.warning("只可以选择一个哦!");this.chooseItem=this.hasChoose[0],this.currentStep=2},handleSelectionChange:function(e){this.hasChoose=e},getExpenseList:function(){var e=this;this.supplierExpenseList().then((function(t){e.fileOptions=t.result,e.fileOptions.forEach((function(e){e.label=e.name,e.value=e.id}))}))},confirmAndSend:function(){var e=this;return Object(l.a)(regeneratorRuntime.mark((function t(){var a,n,l;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return(a=Object.assign({},e.matchFields)).matchMode=1,n=e.chooseItem.id,t.next=5,Object(i.J)({items:e.matchTable,orderId:n});case 5:200==(l=t.sent).status?(e.chooseItem={},e.matchTable=[],e.currentStep=1,e.chooseBillDialog=!1,e.$router.push({name:"InvoiceMatch",query:{matchInfo:s.a.encode(JSON.stringify(a))}})):e.$message.error(l.message);case 7:case"end":return t.stop()}}),t)})))()},closeBillDialog:function(){this.currentStep=1,this.chooseBillDialog=!1,this.numberE="",this.numberS=""},invoiceMatch:function(){this.chooseMatchDialog=!0},closeMatchDialog:function(){this.chooseMatchDialog=!1,this.moreSearchDialog=!1},moreSearch:function(){this.moreSearchDialog=!0},confirmMatchInvoice:function(){var e=this,t=Object.assign({},this.matchFields);this.$refs.invoiceForm.validate((function(a){if(!a)return e.$message.error("请检查是否存在未填项!");if(1==t.matchMode)e.chooseMatchDialog=!1,e.$router.push({name:"InvoiceMatch",query:{matchInfo:s.a.encode(JSON.stringify(t))}});else{e.chooseMatchDialog=!1;var n=Object.assign({length:10,startNo:1,matchStatus:2},e.matchFields);e.getLeftInvoiceList(n).then((function(t){e.billData=t.result})),clearTimeout(e.timeId),e.timeId=setTimeout((function(){e.chooseBillDialog=!0}),600)}}))}},h={name:"SupplierInvoice",mixins:[r.a],data:function(){return Object(n.a)(Object(n.a)({},d),{},{queryInfo:{buyer:"",buyerNo:"",code:"",number:"",seller:"",sellerNo:"",kind:"",operator:"",dataStart:"",dataEnd:"",ticketCode:"",po:"",pageSize:10,pageNo:1,status:5,supplierExpenseType:"",supplierOrg:""},com:"",fileuploadDialg:!1,dataUpdateDialog:!0,companyList:[],tableData:[],type:"",fileOptions:[]})},filters:{ticketCodeStr:function(e,t){var a=(t||[]).find((function(t){return t.id===parseInt(e)}));return a?a.label:e}},provide:function(){return{SUPPLIER:this}},created:function(){this.colorArr=["#909399","#67c23a","#f56c6c","#e6a23c","#e6a23c","#e6a23c"],this.statusList=[{label:"未处理",id:0},{label:"已处理",id:1},{label:"异常",id:2},{label:"退票",id:4},{label:"暂挂",id:5},{label:"全部",id:""}],this.invoiceTypeList=[{label:"增值税普通发票 ",id:10101},{label:" 增值税专用发票 ",id:10100},{label:"增值税电子普通发票 ",id:10102},{label:"增值税电子专用发票",id:10106},{label:"增值税专用发票电子发票",id:10107},{label:"增值税普通发票电子发票",id:10108},{label:"形式发票",id:30100},{label:"收据",id:30101},{label:"航空运输电子客票行程单",id:10506}],this.rules={ticketCode:[{required:!0,message:"请选择发票类型",trigger:"blur"}],matchMode:[{required:!0,message:"请选择匹配类型",trigger:"blur"}]}},methods:Object(n.a)(Object(n.a)(Object(n.a)({},Object(u.b)({supplierExpenseList:"supplier/supplierExpenseList",getLeftInvoiceList:"supplier/getLeftInvoiceList"})),p),{},{mutiDownLoad:function(){var e=Object.assign({},this.queryInfo);this.$file.downloadFile("api/manager/corInvoice/multiDownload",e,"images.zip")},exportSearch:function(){var e=Object.assign({},this.queryInfo);this.$file.downloadFile("api/manager/corInvoice/export",e,"export")},chooseFile1:function(){this.$refs.export1.click()},updateStatus:function(){var e=this;Object(i.fb)().then((function(t){200==t.status?e.$message.success(t.message):e.$message.warning(t.message)})).catch((function(t){e.$message.error(t.message)}))},uploadAvater1:function(e){var t=this,a=e.target.files,n=new FormData;Array.from(a).forEach((function(e){n.append("file",e)})),this.$file.uploadFile(n,"api/manager/corInvoice/dataUpload").then((function(a){200==a.status&&(e.target.value=[],t.$message.success("导入文件成功!"),t.fileuploadDialg=!1,t.initTable())})).catch((function(e){t.$message.error(e.message)}))},chooseFile:function(){""!=this.com?this.$refs.export.click():this.$message.error("请选择公司")},uploadAvater:function(e){var t=this,a=e.target.files,n=new FormData;Array.from(a).forEach((function(e){n.append("files",e)})),n.append("type",this.type),n.append("com",this.com),this.$file.uploadFile(n,"api/manager/corInvoice/upload").then((function(a){200==a.status&&(e.target.value=[],t.$message.success("导入文件成功!"),t.fileuploadDialg=!1,t.initTable())})).catch((function(e){t.$message.error(e.message)}))},initTable:function(){var e=this,t=Object.assign({},this.queryInfo);t.dataStart=Object(o.c)(t.dataStart,!0),t.dataEnd=Object(o.c)(t.dataEnd,!0),t.invoiceStart=Object(o.c)(t.invoiceStart,!0),t.invoiceEnd=Object(o.c)(t.invoiceEnd,!0),Object(i.D)(t).then((function(t){200==t.status&&(e.tableData=t.result.data,e.total=t.result.pagination.total)})).catch((function(t){e.$message.error(t.message)}))},deleteById:function(e){var t=this;return Object(l.a)(regeneratorRuntime.mark((function a(){var n;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,a.next=3,t.$confirm("是否删除当前发票","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"});case 3:if("confirm"!=a.sent){a.next=16;break}return a.prev=5,a.next=8,Object(i.i)(e.id);case 8:200==(n=a.sent).status?(t.$message.success(n.message),t.initTable()):t.$message.error(n.message),a.next=16;break;case 12:a.prev=12,a.t0=a.catch(5),t.$message.error(a.t0.message);case 16:a.next=21;break;case 18:a.prev=18,a.t1=a.catch(0);case 21:case"end":return a.stop()}}),a,null,[[0,18],[5,12]])})))()},searchByQueryInfo:function(){this.initTable(),this.moreSearchDialog=!1},AddElectronicInvoice:function(){this.$router.push({name:"AddElectronicInvoice",query:{id:(new Date).getTime()}})},goElectronicInvoice:function(e){this.$router.push({name:"ElectronicInvoice",query:{id:e.id,statusStr:e.statusStr}})},reset:function(){var e=this.queryInfo,t=e.pageSize,a=e.pageNo;this.queryInfo={buyer:"",buyerNo:"",code:"",pageSize:t,pageNo:a,number:"",seller:"",sellerNo:"",kind:"",operator:"",dataStart:"",dataEnd:""}},handleSizeChange:function(e){this.queryInfo.pageSize=e,this.initTable()},handleCurrentChange:function(e){this.queryInfo.pageNo=e,this.initTable()}}),beforeDestroy:function(){clearTimeout(this.timeId)},mounted:function(){var e=this;Object(i.o)().then((function(t){e.companyList=t.result,e.companyList.forEach((function(e){e.label=e.name,e.value=e.id}))})),this.initTable(),this.getExpenseList()}},f=(a("e697"),a("2877")),m=Object(f.a)(h,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"h100"},[a("div",{staticClass:"SupplierInvoice h100 bgfff"},[a("div",{directives:[{name:"show",rawName:"v-show",value:e.isSearch=!0,expression:"(isSearch = true)"}],staticClass:"bgc p-left-2"},[a("div",{staticClass:"d-flex a-center m-bottom-1"},[a("FeesInput",{attrs:{santakLabel:"发票号码",fieldName:"number",field:"queryInfo",width:"200","label-width":"100",defaultValue:e.queryInfo.number}}),a("FeesInput",{attrs:{santakLabel:"供应商名称",fieldName:"seller",field:"queryInfo",width:"200",labelWidth:"100",defaultValue:e.queryInfo.seller}}),a("FeesInput",{attrs:{santakLabel:"供应商税号",fieldName:"sellerNo",field:"queryInfo",width:"200",labelWidth:"100",defaultValue:e.queryInfo.sellerNo}}),a("OptionsSelect",{attrs:{defaultValue:e.queryInfo.supplierExpenseType,fieldName:"supplierExpenseType",field:"queryInfo",labelValue:"费用类别",options:e.fileOptions,width:"200","label-width":"100"}})],1),a("div",{staticClass:"d-flex a-center m-bottom-1"},[a("FeesInput",{attrs:{santakLabel:"管理人",fieldName:"operator",field:"queryInfo",width:"200","label-width":"100",defaultValue:e.queryInfo.operator}}),a("FeesInput",{attrs:{santakLabel:"订单号",fieldName:"po",field:"queryInfo",width:"200","label-width":"100",defaultValue:e.queryInfo.po}}),a("OptionsSelect",{attrs:{defaultValue:e.queryInfo.supplierOrg,fieldName:"supplierOrg",field:"queryInfo",labelValue:"组织",options:e.companyList,width:"200","label-width":"100"}}),a("div",{staticClass:"d-flex"},[a("FeesButton",{attrs:{text:"搜索",icon:"el-icon-search"},on:{buttonClick:e.searchByQueryInfo}}),a("FeesButton",{attrs:{text:"重置",icon:"el-icon-refresh"},on:{buttonClick:e.reset}}),a("FeesButton",{attrs:{text:"更多搜索",icon:"el-icon-search"},on:{buttonClick:e.moreSearch}})],1)],1)]),a("el-dialog",{staticClass:"more-dialog",attrs:{visible:e.moreSearchDialog},on:{"update:visible":function(t){e.moreSearchDialog=t}}},[a("FeesInput",{staticStyle:{width:"260px","margin-bottom":"10px"},attrs:{santakLabel:"购买方名称",fieldName:"buyer",field:"queryInfo",width:"200",labelWidth:"100",defaultValue:e.queryInfo.buyer,level:1}}),a("FeesInput",{staticStyle:{width:"260px","margin-bottom":"10px"},attrs:{santakLabel:"购买方税号",fieldName:"buyerNo",field:"queryInfo",width:"200",labelWidth:"100",defaultValue:e.queryInfo.buyerNo,level:1}}),a("div",{staticClass:"more-dialog-item"},[a("span",{staticClass:"p-right-1 h100",staticStyle:{display:"inline-block"}},[e._v(" 提交日期起 ")]),a("el-date-picker",{staticStyle:{width:"12.5rem !important"},attrs:{"value-format":"yyyy-MM-dd",type:"date",placeholder:"选择日期"},model:{value:e.queryInfo.dataStart,callback:function(t){e.$set(e.queryInfo,"dataStart",t)},expression:"queryInfo.dataStart"}})],1),a("div",{staticClass:"more-dialog-item"},[a("span",{staticClass:"p-right-1 h100",staticStyle:{display:"inline-block"}},[e._v(" 提交日期止 ")]),a("el-date-picker",{staticStyle:{width:"12.5rem !important"},attrs:{type:"date","value-format":"yyyy-MM-dd",clearable:!1,placeholder:"选择日期"},model:{value:e.queryInfo.dataEnd,callback:function(t){e.$set(e.queryInfo,"dataEnd",t)},expression:"queryInfo.dataEnd"}})],1),a("OptionsSelect",{staticStyle:{width:"300px","margin-bottom":"10px"},attrs:{defaultValue:e.queryInfo.ticketCode,fieldName:"ticketCode",field:"queryInfo",labelValue:"发票类型",options:e.invoiceTypeList,width:"200","label-width":"100",level:1}}),a("div",{staticClass:"more-dialog-item"},[a("span",{staticClass:"p-right-1 h100",staticStyle:{display:"inline-block"}},[e._v("发票日期起 ")]),a("el-date-picker",{staticStyle:{width:"12.5rem !important"},attrs:{type:"date",placeholder:"选择日期"},model:{value:e.queryInfo.invoiceStart,callback:function(t){e.$set(e.queryInfo,"invoiceStart",t)},expression:"queryInfo.invoiceStart"}})],1),a("div",{staticClass:"more-dialog-item"},[a("span",{staticClass:"p-right-1 h100",staticStyle:{display:"inline-block"}},[e._v("发票日期止 ")]),a("el-date-picker",{staticStyle:{width:"12.5rem !important"},attrs:{type:"date",clearable:!1,placeholder:"选择日期"},model:{value:e.queryInfo.invoiceEnd,callback:function(t){e.$set(e.queryInfo,"invoiceEnd",t)},expression:"queryInfo.invoiceEnd"}})],1),a("div",{staticClass:"more-dialog-btn"},[a("FeesButton",{attrs:{text:"取消",icon:"el-icon-circle-close"},on:{buttonClick:e.closeMatchDialog}}),a("FeesButton",{attrs:{text:"确定",icon:"el-icon-circle-check"},on:{buttonClick:e.searchByQueryInfo}})],1)],1),a("div",{staticClass:"bg-fff p-left-2 h100",class:[e.isSearch?"a":"b"],staticStyle:{"min-height":"500px"}},[a("div",{staticClass:"m-bottom-2 p-top-1 d-flex"},[a("FeesButton",{attrs:{text:"新增",icon:"el-icon-circle-plus-outline"},on:{buttonClick:e.AddElectronicInvoice}}),a("FeesButton",{attrs:{text:"发票导入",icon:"el-icon-upload2",dataUpdateDialog:""},on:{buttonClick:function(t){e.fileuploadDialg=!e.fileuploadDialg}}}),a("FeesButton",{attrs:{text:"导出搜索",icon:"el-icon-download"},on:{buttonClick:e.exportSearch}}),a("FeesButton",{attrs:{text:"批量下载图片",icon:"el-icon-download"},on:{buttonClick:e.mutiDownLoad}}),a("FeesButton",{attrs:{text:"数据更新",icon:"el-icon-magic-stick"},on:{buttonClick:e.chooseFile1}}),a("FeesButton",{attrs:{icon:"el-icon-magic-stick",text:"抵扣状态更新"},on:{buttonClick:e.updateStatus}}),a("FeesButton",{directives:[{name:"permission",rawName:"v-permission",value:"InvoiceMatching",expression:"'InvoiceMatching'"}],attrs:{text:"发票匹配",isActive:!0,color:"#fff"},on:{buttonClick:e.invoiceMatch}})],1),a("div",{staticClass:"table"},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData,stripe:"",border:""}},[a("el-table-column",{attrs:{type:"selection",width:"36"}}),a("el-table-column",{attrs:{label:"操作",fixed:"",width:"140","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",{staticClass:"text-color cursor",on:{click:function(a){return e.goElectronicInvoice(t.row)}}},[e._v(" 编辑 ")]),a("span",{staticClass:"link-text-color m-left-1 cursor c-red",on:{click:function(a){return e.deleteById(t.row)}}},[e._v(" 删除 ")])]}}])}),a("el-table-column",{attrs:{prop:"buyer",label:"公司名称","header-align":"center",width:"200",align:"center"}}),a("el-table-column",{attrs:{prop:"ticketCode",label:"发票类型",width:"160",align:"center","header-align":"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(e._f("ticketCodeStr")(t.row.ticketCode,e.invoiceTypeList))+" ")]}}])}),a("el-table-column",{attrs:{prop:"seller",label:"销售方",width:"240","header-align":"center",align:"center"}}),a("el-table-column",{attrs:{prop:"code",label:"发票代码",width:"120",align:"center"}}),a("el-table-column",{attrs:{prop:"number",label:"发票号码",width:"100",align:"center"}}),a("el-table-column",{attrs:{prop:"date",label:"发票日期",align:"center","header-align":"center",width:"140"}}),a("el-table-column",{attrs:{prop:"pretaxAmount",label:"金额",width:"120","header-align":"center",align:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.pretaxAmount)+" ")]}}])}),a("el-table-column",{attrs:{prop:"tax",label:"税额",width:"100","header-align":"center",align:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.tax)+" ")]}}])}),a("el-table-column",{attrs:{prop:"total",label:"总金额",width:"120","header-align":"center",align:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.total)+" ")]}}])}),a("el-table-column",{attrs:{prop:"status",label:"状态",width:"80",align:"center","header-align":"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{style:{color:e.colorArr[t.row.status]}},[e._v(" "+e._s(t.row.statusStr)+" ")])]}}])}),a("el-table-column",{attrs:{prop:"isSend",label:"发送状态",width:"80",align:"center","header-align":"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[0==t.row.isSend?a("div",{staticStyle:{color:"#909399"}},[e._v(" 未发送 ")]):1==t.row.isSend?a("div",{staticStyle:{color:"#67c23a"}},[e._v(" 已发送 ")]):e._e()]}}])}),a("el-table-column",{attrs:{prop:"details",label:"发票内容",width:"180","header-align":"center"}}),a("el-table-column",{attrs:{prop:"remark",label:"发票备注",width:"180","header-align":"left","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"po",label:"NPO",width:"180","header-align":"left"}}),a("el-table-column",{attrs:{prop:"postingDate",label:"入账日期",width:"140","header-align":"left"}}),a("el-table-column",{attrs:{prop:"deductTime",label:"抵扣时间",width:"140",align:"center","header-align":"center"}}),a("el-table-column",{attrs:{prop:"deductStatus",label:"抵扣状态",width:"80",align:"center","header-align":"center"}}),a("el-table-column",{attrs:{prop:"updateDate",label:"更新日期",width:"140",align:"center","header-align":"center"}}),a("el-table-column",{attrs:{prop:"createDate",label:"创建日期",align:"center","header-align":"center",width:"160"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:t.row.createDate,placement:"top-start"}},[a("div",[e._v(e._s(t.row.createDate))])])]}}])},[e._v(" Tooltip ")]),a("el-table-column",{attrs:{prop:"fileName",label:"文件名称",width:"200"}}),a("el-table-column",{attrs:{prop:"operator",label:"操作人"}}),a("el-table-column",{attrs:{prop:"ownerName",label:"归属人"}})],1)],1),a("div",{staticClass:"m-y-1"},[a("el-pagination",{attrs:{background:"","current-page":e.queryInfo.pageNo,"page-size":e.queryInfo.pageSize,"page-sizes":[10,20,30,50],layout:" prev, pager, next,total, sizes, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange,"update:currentPage":function(t){return e.$set(e.queryInfo,"pageNo",t)},"update:current-page":function(t){return e.$set(e.queryInfo,"pageNo",t)}}})],1),a("el-dialog",{attrs:{title:"选择匹配信息",visible:e.chooseMatchDialog,width:"30vw"},on:{"update:visible":function(t){e.chooseMatchDialog=t}}},[a("el-form",{ref:"invoiceForm",attrs:{model:e.matchFields,"label-width":"120px",rules:e.rules}},[a("el-form-item",{attrs:{label:"发票类型",prop:"invoiceType"}},[a("el-select",{staticClass:"w100",attrs:{placeholder:"请选择发票类型"},model:{value:e.matchFields.invoiceType,callback:function(t){e.$set(e.matchFields,"invoiceType",t)},expression:"matchFields.invoiceType"}},e._l(e.fileOptions,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1),a("el-form-item",{attrs:{label:"匹配类型",prop:"matchMode"}},[a("el-select",{staticClass:"w100",attrs:{placeholder:"请选择匹配类型"},model:{value:e.matchFields.matchMode,callback:function(t){e.$set(e.matchFields,"matchMode",t)},expression:"matchFields.matchMode"}},[a("el-option",{attrs:{label:"单张发票匹配",value:1}}),2!=e.matchFields.invoiceType?a("el-option",{attrs:{label:"批量匹配发票",value:2}}):e._e()],1)],1),a("el-form-item",{attrs:{label:"供应商名称"}},[a("el-input",{model:{value:e.matchFields.seller,callback:function(t){e.$set(e.matchFields,"seller",t)},expression:"matchFields.seller"}})],1),a("el-form-item",{attrs:{label:"发票号码"}},[a("el-input",{attrs:{disabled:2==e.matchFields.matchMode},model:{value:e.matchFields.number,callback:function(t){e.$set(e.matchFields,"number",t)},expression:"matchFields.number"}})],1),a("el-form-item",{attrs:{label:"购买方名称"}},[a("el-input",{model:{value:e.matchFields.buyer,callback:function(t){e.$set(e.matchFields,"buyer",t)},expression:"matchFields.buyer"}})],1)],1),a("div",{staticClass:"dialog-footer d-flex j-fe",attrs:{slot:"footer"},slot:"footer"},[a("FeesButton",{attrs:{text:"取 消",icon:"el-icon-circle-close"},on:{buttonClick:e.closeMatchDialog}}),a("FeesButton",{directives:[{name:"debounce",rawName:"v-debounce",value:{time:500,methods:e.confirmMatchInvoice},expression:"{ time: 500, methods: confirmMatchInvoice }"}],attrs:{text:"确 定",icon:"el-icon-circle-check"}})],1)],1),a("el-dialog",{attrs:{title:1==e.currentStep?"选择单据":"单据匹配发票",visible:e.chooseBillDialog,"before-close":e.closeBillDialog,width:"70vw"},on:{"update:visible":function(t){e.chooseBillDialog=t}}},[a("div",{directives:[{name:"show",rawName:"v-show",value:1==e.currentStep,expression:"currentStep == 1"}]},[a("el-table",{staticStyle:{width:"100%","margin-bottom":"20px"},attrs:{data:e.billData,border:"",height:"400"},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"40",label:"序号"}}),a("el-table-column",{attrs:{prop:"orderNo",align:"center",label:"单据号"}}),a("el-table-column",{attrs:{prop:"supplierCode",align:"center",label:"供应商"},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.row;return[a("span",{staticClass:"text-color"},[e._v(e._s(n.supplierCode))])]}}])}),a("el-table-column",{attrs:{prop:"orderDate",align:"center",label:"单据日期"}}),a("el-table-column",{attrs:{prop:"goods",align:"center",label:"内容"}}),a("el-table-column",{attrs:{prop:"amount",align:"center",label:"金额"}}),a("el-table-column",{attrs:{prop:"unUsedAmount",align:"center",label:"未配金额"}}),a("el-table-column",{attrs:{prop:"uom",align:"center",label:"单位",width:"60"}}),a("el-table-column",{attrs:{prop:"goodsNum",align:"center",label:"匹配数量",width:"100"}})],1)],1),a("div",{directives:[{name:"show",rawName:"v-show",value:2==e.currentStep,expression:"currentStep == 2"}]},[a("div",{staticClass:" m-bottom-1 p-x-2 billTitle"},[e._v(" 单据号:"+e._s(e.chooseItem.orderNo||"")+" 物料号: "+e._s(e.chooseItem.goods||"")+" 金额:"+e._s(e.chooseItem.unUsedAmount||"")+" ")]),a("div",{staticClass:"d-flex a-center m-bottom-1"},[a("div",{staticClass:"d-flex a-center"},[a("div",{staticClass:"m-right-1"},[e._v("发票号码始")]),a("el-input",{staticClass:"flex-1",model:{value:e.numberS,callback:function(t){e.numberS=t},expression:"numberS"}})],1),a("div",{staticClass:"d-flex a-center"},[a("div",{staticClass:"m-x-1"},[e._v("发票号码止")]),a("el-input",{staticClass:"flex-1",model:{value:e.numberE,callback:function(t){e.numberE=t},expression:"numberE"}})],1),a("FeesButton",{staticClass:"m-left-1",attrs:{text:"匹配"},on:{buttonClick:e.handleMatch}})],1),a("el-table",{staticStyle:{width:"100%","margin-bottom":"20px"},attrs:{data:e.matchTable,border:""}},[a("el-table-column",{attrs:{align:"center",prop:"supplier",label:"供应商"},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.row;return[a("span",{staticClass:"text-color"},[e._v(e._s(n.supplier))])]}}])}),a("el-table-column",{attrs:{align:"center",prop:"number",label:"发票号码"}}),a("el-table-column",{attrs:{"header-align":"center",align:"right",prop:"invoiceMoney",label:"发票金额"}}),a("el-table-column",{attrs:{"header-align":"center",align:"right",prop:"usedMoney",label:"已匹配金额"}}),a("el-table-column",{attrs:{"header-align":"center",align:"right",prop:"matchedAmount",label:"匹配金额"},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.row;return[a("input",{directives:[{name:"model",rawName:"v-model",value:n.matchedAmount,expression:"row.matchedAmount"}],staticClass:"w100",staticStyle:{border:"1px solid #eee"},attrs:{type:"text"},domProps:{value:n.matchedAmount},on:{input:function(t){t.target.composing||e.$set(n,"matchedAmount",t.target.value)}}})]}}])}),a("el-table-column",{attrs:{"header-align":"center",align:"right",prop:"unUsedMoney",label:"未配金额"}}),a("el-table-column",{attrs:{prop:"name",label:"Actions",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",{staticClass:"text-color cursor m-left-1",on:{click:function(a){return e.handleRemove(t)}}},[e._v("移除")])]}}])})],1)],1),1==e.currentStep?a("div",{staticClass:"dialog-footer d-flex j-fe",attrs:{slot:"footer"},slot:"footer"},[a("FeesButton",{attrs:{text:"取 消",icon:"el-icon-circle-close"},on:{buttonClick:e.closeBillDialog}}),a("FeesButton",{attrs:{text:"下一步"},on:{buttonClick:e.nextStep}})],1):e._e(),2==e.currentStep?a("div",{staticClass:"dialog-footer d-flex j-fe",attrs:{slot:"footer"},slot:"footer"},[a("FeesButton",{attrs:{text:"重新选择单据",icon:"el-icon-refresh"},on:{buttonClick:function(t){e.currentStep=1}}}),a("FeesButton",{attrs:{text:"确定并发送"},on:{buttonClick:e.confirmAndSend}})],1):e._e()]),a("el-dialog",{attrs:{title:"发票导入",visible:e.fileuploadDialg,width:"400px"},on:{"update:visible":function(t){e.fileuploadDialg=t}}},[a("div",{staticClass:"d-flex a-center"},[a("div",{staticStyle:{width:"100px","text-align":"right"}},[e._v("费用类别:")]),a("el-select",{attrs:{placeholder:"请选择"},model:{value:e.type,callback:function(t){e.type=t},expression:"type"}},e._l(e.fileOptions,(function(e){return a("el-option",{key:e.code,attrs:{label:e.name,value:e.code}})})),1)],1),a("div",{staticClass:"d-flex a-center m-top-2"},[a("div",{staticStyle:{width:"100px","text-align":"right"}},[e._v("组织:")]),a("el-select",{attrs:{placeholder:"请选择"},model:{value:e.com,callback:function(t){e.com=t},expression:"com"}},e._l(e.companyList,(function(e){return a("el-option",{key:e.value,attrs:{label:e.name,value:e.code}})})),1)],1),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("div",{staticClass:"upload",on:{click:e.chooseFile}},[a("i",{staticClass:"el-icon-upload"}),a("div",[e._v("只能上传pdf和ofd格式的文件哦!")])]),a("input",{ref:"export",staticStyle:{display:"none"},attrs:{type:"file",name:"",multiple:""},on:{change:function(t){return e.uploadAvater(t)}}}),a("input",{ref:"export1",staticStyle:{display:"none"},attrs:{type:"file",name:"",accept:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",multiple:""},on:{change:function(t){return e.uploadAvater1(t)}}})])])],1)],1)])}),[],!1,null,"5dad856b",null);t.default=m.exports},e3db:function(e,t){var a={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==a.call(e)}},e697:function(e,t,a){"use strict";var n=a("0c19");a.n(n).a},fa7d:function(e,t,a){"use strict";a.d(t,"c",(function(){return n})),a.d(t,"a",(function(){return l})),a.d(t,"b",(function(){return i}));a("99af"),a("ac1f"),a("4d90"),a("5319");function n(e,t){if(""==e||!e)return"";var a=new Date(e),n=a.getFullYear(),l=a.getMonth()+1+"";l=l.padStart(2,0);var i=a.getDate()+"";i=i.padStart(2,0);var o=a.getHours()+"";o=o.padStart(2,0);var r=a.getMinutes()+"",c=a.getSeconds()+"";return r=r.padStart(2,0),c=c.padStart(2,0),"nyrsf"==t?"".concat(n,"-").concat(l,"-").concat(i," ").concat(o,":").concat(r):"month"==t?"".concat(n,"-").concat(l):"nowtime"==t?"".concat(n,"-").concat(l,"-").concat(i," ").concat(o,":").concat(r,":").concat(c):t?"".concat(n,"-").concat(l,"-").concat(i):"".concat(n,"年-").concat(l,"月-").concat(i,"日 ").concat(o,":").concat(r,":").concat(c)}function l(e){var t=new Date(e),a=t.getFullYear(),n=String(t.getMonth()+1).padStart(2,"0"),l=String(t.getDate()).padStart(2,"0");return"".concat(a,"年").concat(n,"月").concat(l,"日")}function i(e){return e.replace(/(\d{4})年(\d{1,2})月(\d{1,2})日/,(function(e,t,a,n){return"".concat(t,"-").concat(a.padStart(2,"0"),"-").concat(n.padStart(2,"0"))}))}}}]);
|