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-20367f96"],{"3fad":function(e,t,i){},"4d0b":function(e,t,i){"use strict";var s=i("3fad");i.n(s).a},"59c8":function(e,t,i){},"5dfc":function(e,t,i){"use strict";var s=i("59c8");i.n(s).a},6680:function(e,t,i){"use strict";i.r(t);i("a4d3"),i("e01a"),i("99af"),i("4de4"),i("4160"),i("a630"),i("caad"),i("c975"),i("d81d"),i("d3b7"),i("ac1f"),i("2532"),i("3ca3"),i("1276"),i("159b"),i("ddb0"),i("e260"),i("cca6"),i("e6cf");var s,n=i("ade3"),a=i("2909"),r=(i("96cf"),i("1da1")),o=i("5530"),l=i("dd85"),c=i("a86b"),u=[{key:"ticketCode",keyCn:"发票种类",type:"select",options:[{label:"收据",id:"30101"},{label:"形式发票",id:"30100"},{label:"增值税电子普通发票 ",id:"10102"},{label:"增值税专用发票",id:"10100"},{label:"增值税普通发票",id:"10101"},{label:"增值税专用发票电子发票",id:"10107"},{label:"航空运输电子客票行程单",id:10506}],labelKey:"label",labelValue:"id",isAdd:!0},{key:"date",keyCn:"发票日期",type:"date",isRequired:!0},{key:"pretaxAmount",keyCn:"发票金额",type:"input"},{key:"tax",keyCn:"税额",type:"input"},{key:"total",keyCn:"总金额",type:"input"},{key:"currency",keyCn:"币种",type:"select",options:[{label:"AUD",id:"AUD"},{label:"BND",id:"BND"},{label:"CAD",id:"CAD"},{label:"CHF",id:"CHF"},{label:"CNY",id:"CNY"},{label:"DKK",id:"DKK"},{label:"EUR",id:"EUR"},{label:"GBP",id:"GBP"},{label:"HKD",id:"HKD"},{label:"IDR",id:"IDR"},{label:"INR",id:"INR"},{label:"JPY",id:"JPY"},{label:"KHR",id:"KHR"},{label:"KRW",id:"KRW"},{label:"LKR",id:"LKR"},{label:"MMK",id:"MMK"},{label:"MYR",id:"MYR"},{label:"NZD",id:"NZD"},{label:"PHP",id:"PHP"},{label:"SEK",id:"SEK"},{label:"SGD",id:"SGD"},{label:"THB",id:"THB"},{label:"TWD",id:"TWD"},{label:"USD",id:"USD"},{label:"VND",id:"VND"}],labelKey:"label",labelValue:"id"},{key:"kind",keyCn:"消费类型",type:"input"},{key:"buyer",keyCn:"购买方",type:"input"},{key:"buyerNo",keyCn:"购买方税号",type:"input"},{key:"code",keyCn:"发票代码",type:"input"},{key:"number",keyCn:"发票号码",type:"input"},{key:"verifiedCode",keyCn:"校验码",type:"input"},{key:"details",keyCn:"发票内容",type:"input"},{key:"seller",keyCn:"供应商",type:"input"},{key:"sellerNo",keyCn:"供应商税号",type:"input"},{key:"remark",keyCn:"发票备注",type:"input"},{key:"po",keyCn:"PO号码",type:"input"},{key:"desc",keyCn:"备注",type:"input"},{key:"ext05",keyCn:"Sales Order No",type:"input"},{key:"ext06",keyCn:"Delivery No",type:"input"},{key:"ext07",keyCn:"Payment Term",type:"input"},{key:"status",keyCn:"状态",type:"select",default:0,options:[{label:"未处理",id:0},{label:"已处理",id:1},{label:"异常",id:2},{label:"退票",id:4},{label:"暂挂",id:5}],labelKey:"label",labelValue:"id"},{key:"orgId",keyCn:"组织",type:"select",options:[],labelKey:"name",labelValue:"id",isAdd:!0},{key:"invoiceType",keyCn:"发票类型",type:"select",options:[],labelKey:"name",labelValue:"id",isAdd:!0},{key:"ownerName",keyCn:"所有人",type:"blur",options:[],labelKey:"name",labelValue:"id"},{key:"ext10",keyCn:"预制发票号",type:"input"}],d=[{key:"debitAccount1",keyCn:"借方1",disabled:!0,type:"input"},{key:"creditSubject1",keyCn:"贷方1",disabled:!0,type:"input"},{key:"total",keyCn:"金额",disabled:!0,type:"input"},{key:"debitAccount2",keyCn:"借方2",disabled:!0,type:"input"},{key:"creditSubject2",keyCn:"贷方2",disabled:!0,type:"input"},{key:"tax",keyCn:"金额",disabled:!0,type:"input"}],p=[{key:"postingDate",keyCn:"入账日期",type:"date"},{key:"deductStatus",keyCn:"抵扣状态",type:"input",options:[{label:"未抵扣",id:"未抵扣"},{label:"发送抵扣",id:"发送抵扣"},{label:"确认抵扣",id:"确认抵扣"},{label:"抵扣失败",id:"抵扣失败"}]},{key:"deductTime",keyCn:"抵扣时间",type:"date"}],h=[{key:"isSend1",keyCn:"发送状态",type:"input"}],b=i("7eb6"),m=i("2f62"),f=i("c163"),v=i("7872"),g={name:"ElectronicInvoice",components:{imgPreview:b.a,formComponent:c.a},data:function(){return{popoverVisible:!1,filterText:"",defaultProps:{children:"children",label:"label"},currentLivingId:"",subjectList:[],orderField:{imgPath:""},subjectFields:{creditSubject1:"",debitAccount1:"",creditSubject2:"",debitAccount2:"",total:"",tax:"",subject:"",period:"",ext09:""},periodOptions:[],imgList:[],dialogImageUrl:"",isHidden:!1,dialogVisible:!1,options:[],formGroup:[],type:"",uploadOption:{invoiceId:null,files:[],type:"",description:""},subject:d,deduct:p,interfaceStatus:h,uploadDialog:!1,tableData:[],invoiceDetailTableData:[],rate:0,subjectOptions:[],activeName:"1",isRequest:!1,statusStr:this.$route.query.statusStr||"",statusPending:this.$route.query.statusPending||"",statusWhiteList:["未处理","已处理"],statusWhiteList1:["退票","暂挂"],statusWhiteList2:["异常","退票","暂挂","未处理","已处理"],orgList:[]}},watch:{activeName:function(e){var t=this;2!=e||this.isRequest||(this.isRequest=!0,this.getAllSubjects(),this.getAllPeriodOptions(),this.querySubjectDetail(),this.getOrgList()),6==e&&Object(l.p)({itemId:this.id}).then((function(e){200==e.status&&(t.invoiceDetailTableData=e.result)}))},filterText:function(e){this.$refs.tree.filter(e)}},computed:{isButtonShow:function(){var e=this.statusStr;return!this.statusWhiteList.includes(e)},isRCButtonShow:function(){var e=this.statusStr;return console.warn(!this.statusWhiteList1.includes(e)),!this.statusWhiteList1.includes(e)},checkBtn:function(){var e=this.statusStr;return!this.statusWhiteList2.includes(e)}},created:function(){this.statusStr=this.$route.query.statusStr||"",this.statusPending=this.$route.query.statusPending||"",this.invoice_type_list={10101:"增值税普通发票",10100:"增值税专用发票",10102:"增值税电子普通发票",30100:"形式发票",30101:"收据",10506:"航空运输电子客票行程单"},this.attOptions=[{label:"销货清单",value:"销货清单"},{label:"合同",value:"合同"},{label:"订单",value:"订单"},{label:"验收单",value:"验收单"},{label:"其他",value:"其他"}]},mounted:function(){this.statusStr=this.$route.query.statusStr||"",this.statusPending=this.$route.query.statusPending||"",this.id=this.$route.query.id,this.type=this.$route.query.type,this.initOrgAndInvoiceOptions(),"image"==this.type?this.getImageElectronicInvoice(this.id):this.initOrderField(this.id),this.getAtta(),this.getAllSubjectsTreeNode()},methods:Object(o.a)(Object(o.a)({},Object(m.b)({getAttachmentList:"supplier/getAttachmentList",deleteAttachmentList:"supplier/deleteAttachmentList",queryORG:"supplier/queryORG",queryInvoiceList:"supplier/queryInvoiceList",queryOwners:"supplier/queryOwners",revokeInvoice:"supplier/revokeInvoice"})),{},(s={getAllSubjectsTreeNode:function(){var e=this;Object(l.m)().then((function(t){e.subjectList=t.result}))},filterNode:function(e,t){return!e||-1!==t.filterPath.indexOf(e)},renderContent:function(e,t){var i=t.node,s=t.data;t.store;return s.children&&s.children.length>0?e("span",{class:"parent-node",on:{click:function(e){e.stopPropagation()}}},i.label):e("span",{class:"child-node"},i.label)},handleTree:function(e){e.children&&e.children.length>0||(this.subjectFields.subject=e.id,this.handleSelect(this.subjectFields.subject))},handleTabClick:function(e){},getLastMonth:function(){var e=new Date,t=e.getFullYear(),i=e.getMonth()+1;return t+"/"+(i=i<10?"0"+i:i)},handleSelect:function(e){var t=this;return Object(r.a)(regeneratorRuntime.mark((function i(){return regeneratorRuntime.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,Object(l.Q)({id:t.orderField.id,subject:e});case 2:200==i.sent.status&&t.querySubjectDetail();case 4:case"end":return i.stop()}}),i)})))()},querySubjectDetail:function(){var e=this;Object(l.R)({invoiceId:this.id}).then((function(t){Object.assign(e.subjectFields,t.result),e.subjectFields.subject=e.subjectFields.id,e.$refs.tree.setCurrentKey(e.subjectFields.subject),e.filterText=t.result.type}))},getAllSubjects:function(){var e=this;Object(l.l)().then((function(t){e.subjectOptions=t.result}))},getOrgList:function(){var e=this,t=localStorage.getItem("userId");Object(l.A)(t).then((function(t){200==t.status&&(e.orgList=t.result)}))},getAllPeriodOptions:function(){var e=this;Object(l.k)().then((function(t){var i={id:null,period:e.getLastMonth()},s=t.result.filter((function(e){return e.period!=i.period}));e.periodOptions=[i].concat(Object(a.a)(s))}))},hSelect:function(e){var t=this;return Object(r.a)(regeneratorRuntime.mark((function i(){return regeneratorRuntime.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,Object(l.hb)({id:t.id,period:e});case 2:i.sent.status;case 4:case"end":return i.stop()}}),i)})))()},oSelect:function(e){var t=this;return Object(r.a)(regeneratorRuntime.mark((function i(){return regeneratorRuntime.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,Object(l.hb)({id:t.id,ext09:e});case 2:i.sent.status;case 4:case"end":return i.stop()}}),i)})))()},handleRemoteSearch:function(e){var t=this;this.queryOwners(e).then((function(e){t.formGroup[t.formGroup.length-1].options=e.result}))},initOrgAndInvoiceOptions:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){var i,s,n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=[e.queryORG(),e.queryInvoiceList()].map((function(e){return e.catch((function(e){}))})),t.next=3,Promise.all(i);case 3:s=t.sent,n=u.length,u[n-4].options=s[1].result,u[n-3].options=s[0].result;case 7:case"end":return t.stop()}}),t)})))()},deleteAtta:function(e){var t=this;this.deleteAttachmentList(e.row.id).then((function(e){t.getAtta()})).catch((function(e){t.$message.error(e.message)}))},previewAtta:function(e){var t=e.row.uri;window.open(t,"_blank")},getAtta:function(){var e=this;this.getAttachmentList(this.id).then((function(t){e.tableData=t.result}))},delInvoice:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){var i,s;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=e.orderField.id,t.prev=1,t.next=4,Object(l.i)(i);case 4:200==(s=t.sent).status?e.handleSuccess(s):e.$message.error(s.message),t.next=11;break;case 8:t.prev=8,t.t0=t.catch(1),e.$message.error(t.t0.message);case 11:case"end":return t.stop()}}),t,null,[[1,8]])})))()},backToPendingInvoince:function(){var e=this;this.revokeInvoice(this.orderField.id).then((function(t){e.handleSuccess(t)})).catch((function(t){e.$message.error(res.message)}))},backInvoince:function(){var e=this,t=Object.assign({},this.orderField);t.status=4,Object(l.j)(t).then((function(t){200==t.status?e.handleSuccess(t):e.$message.error(t.message)})).catch((function(t){e.$message.error(t.message)}))},tempInvoince:function(){var e=this,t=Object.assign({},this.orderField);t.status=5,Object(l.j)(t).then((function(t){200==t.status?e.handleSuccess(t):e.$message.error(t.message)})).catch((function(t){e.$message.error(t.message)}))},send:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){var i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(l.db)(e.id);case 2:200==(i=t.sent).status?e.$message.success("发送成功"):e.$message.warning(i.message);case 4:case"end":return t.stop()}}),t)})))()},recover:function(){var e=this,t=Object.assign({},this.orderField);t.status=0,Object(l.j)(t).then((function(t){200==t.status?e.handleSuccess(t):e.$message.error(t.message)})).catch((function(t){e.$message.error(t.message)}))},initFormGroup:function(e){1==e.status?this.formGroup=u.map((function(e){return e.disabled=!0,e})):10102==e.ticketCode||1==e.checked?this.formGroup=u.map((function(e){return"po"==e.key||"desc"==e.key?e.disabled=!1:e.disabled=!0,e})):this.formGroup=u.map((function(e){return e.disabled=!1,e}))},getImageElectronicInvoice:function(e){var t=this;Object(l.s)(e).then((function(e){200==e.status?(e.result=Object(v.a)(e.result),e.result.isSend1=e.result.isSend?"已发送":"未发送",t.orderField=e.result,t.subjectFields.total=t.orderField.total,t.subjectFields.tax=t.orderField.tax,t.orderField.imgPath=e.result.imgUri,t.initFormGroup(e.result)):t.$message.warning("获取数据失败!")})).catch((function(e){t.$message.warning("获取数据失败!")}))},initOrderField:function(e){var t=this;Object(l.S)(e).then((function(e){200==e.status?(e.result=Object(v.a)(e.result),e.result.isSend1=e.result.isSend?"已发送":"未发送",e.result.invoiceType=parseInt(e.result.invoiceType),t.orderField=e.result,t.subjectFields.total=t.orderField.total,t.subjectFields.tax="10100"!==t.orderField.ticketCode&&"10106"!==t.orderField.ticketCode&&"10107"!==t.orderField.ticketCode?0:t.orderField.tax,t.initFormGroup(e.result),t.subjectFields.period=e.result.period,""===t.subjectFields.period&&(t.subjectFields.period=t.getLastMonth())):t.$message.warning(e.message)})).catch((function(e){t.$message.error(e.message)}))},handleSuccess:function(e){this.$message.success(e.message),this.goBack()},saveInvoice:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){var i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(l.hb)({id:e.id,period:e.subjectFields.period});case 2:i=Object.assign({},e.orderField),Object(l.j)(i).then((function(t){200==t.status?e.handleSuccess(t):e.$message.error(t.message)})).catch((function(t){e.$message.error(t.message)}));case 4:case"end":return t.stop()}}),t)})))()},checkInvoice:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){var i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(l.hb)({id:e.id,period:e.subjectFields.period});case 2:200==(i=t.sent).status?Object(l.e)(e.id).then((function(t){200==t.status?e.handleSuccess(t):e.$message.error(t.message)})).catch((function(t){e.$message.error(t.message)})):e.$message.warning(i.message);case 4:case"end":return t.stop()}}),t)})))()},goBack:function(){Object(f.a)()},handleBeforeUpload:function(){return this.$message.error("所选文件类型不一致"),!1},handleOnExceed:function(){this.$message.error("单次上传已经超出最大长度!")},handleProgress:function(e){this.rate=Math.floor(e.loaded/e.total*100)},uploadAvater:function(e){var t=this,i=Object.assign({},this.uploadOption),s=i.type,n=i.description,a=new FormData;Array.from(e).forEach((function(e){a.append("files",e)})),a.append("invoiceId",this.id),a.append("type",s),a.append("description",n),this.$file.uploadFile(a,"api/manager/supplier/invoice-attachment",this.handleProgress).then((function(e){200==e.status&&(t.$message.success("导入文件成功!"),t.rate=0,t.uploadDialog=!1,t.getAtta())})).catch((function(e){t.$message.error(e.message)}))},uploadAvater1:function(e){var t=this,i=e.target.files,s=new FormData;Array.from(i).forEach((function(e){s.append("file",e)})),this.$file.uploadFile(s,"api/manager/corInvoice/dataUpload").then((function(i){200==i.status&&(e.target.value=[],t.$message.success("导入文件成功!"),t.fileuploadDialg=!1,t.initTable())})).catch((function(e){t.$message.error(e.message)}))},download:function(e){var t=e.originalFilePath,i=t.indexOf("api"),s=t.substring(i),n=t.split("/"),a=n[n.length-1];this.$file.downloadFile(s,{},a)},returnTicket:function(){var e=this;Object(l.Z)(this.id).then((function(t){200==t.status?e.$message.success("退票成功!"):e.$message.error(t.message)}))}},Object(n.a)(s,"handleProgress",(function(e){var t=Math.round(e.loaded/e.total*100);this.rate=t})),Object(n.a)(s,"download1",(function(){var e={id:this.id};this.$file.downloadFile("api/manager/supplier/invoice-attachment/download",e,"invoceDetail.xlsx")})),s))},y=(i("4d0b"),i("2877")),k=Object(y.a)(g,(function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"ElectronicInvoice p2"},[i("div",{staticClass:"w100 j-sb d-flex m-bottom-2 a-center p-relative"},[i("div",{staticClass:"f20 f-weight"},[e._v(" 发票详情 "),i("span",{staticClass:"c-red"},[e._v(e._s(e.orderField.total))])]),i("div",{staticClass:"d-flex"},["已处理"==e.statusStr?i("FeesButton",{attrs:{text:"退票",icon:"el-icon-back"},on:{buttonClick:e.returnTicket}}):e._e(),i("FeesButton",{attrs:{text:"放弃返回",icon:"el-icon-back"},on:{buttonClick:e.goBack}}),i("FeesButton",{attrs:{text:"下载",icon:"el-icon-delete"},on:{buttonClick:e.download1}}),i("FeesButton",{directives:[{name:"show",rawName:"v-show",value:e.isButtonShow,expression:"isButtonShow"}],attrs:{text:"删除",icon:"el-icon-delete"},on:{buttonClick:e.delInvoice}}),i("FeesButton",{directives:[{name:"show",rawName:"v-show",value:e.isButtonShow?e.isRCButtonShow:e.isButtonShow,expression:"isButtonShow ? isRCButtonShow : isButtonShow"}],attrs:{text:"保存发票"},on:{buttonClick:e.saveInvoice}}),"已处理"==e.statusStr||"退票"==e.statusStr?i("FeesButton",{directives:[{name:"permission",rawName:"v-permission",value:"RefundButton",expression:"'RefundButton'"}],attrs:{text:"撤回",icon:"el-icon-search"},on:{buttonClick:e.backToPendingInvoince}}):e._e(),i("FeesButton",{directives:[{name:"show",rawName:"v-show",value:e.isButtonShow?e.isRCButtonShow:e.isButtonShow,expression:"isButtonShow ? isRCButtonShow : isButtonShow"},{name:"debounce",rawName:"v-debounce",value:{time:500,methods:e.backInvoince},expression:"{ time: 500, methods: backInvoince }"}],attrs:{text:"退票"}}),i("FeesButton",{directives:[{name:"show",rawName:"v-show",value:e.isButtonShow?e.isRCButtonShow:e.isButtonShow,expression:"isButtonShow ? isRCButtonShow : isButtonShow"},{name:"debounce",rawName:"v-debounce",value:{time:500,methods:e.tempInvoince},expression:"{ time: 500, methods: tempInvoince }"}],attrs:{text:"暂挂"}}),i("FeesButton",{directives:[{name:"show",rawName:"v-show",value:e.isButtonShow?e.isRCButtonShow:e.isButtonShow,expression:"isButtonShow ? isRCButtonShow : isButtonShow"},{name:"debounce",rawName:"v-debounce",value:{time:500,methods:e.send},expression:"{ time: 500, methods: send }"}],attrs:{text:"发送"}}),i("input",{ref:"export",staticStyle:{display:"none"},attrs:{type:"file",name:"",multiple:""},on:{change:function(t){return e.uploadAvater1(t)}}}),"image"!=e.type?i("FeesButton",{directives:[{name:"show",rawName:"v-show",value:!e.isRCButtonShow,expression:"!isRCButtonShow"},{name:"debounce",rawName:"v-debounce",value:{time:500,methods:e.recover},expression:"{ time: 500, methods: recover }"}],attrs:{text:"恢复"}}):e._e(),"image"!=e.type?i("FeesButton",{directives:[{name:"show",rawName:"v-show",value:e.checkBtn,expression:"checkBtn"},{name:"permission",rawName:"v-permission",value:"CompleteCheck",expression:"'CompleteCheck'"},{name:"debounce",rawName:"v-debounce",value:{time:500,methods:e.checkInvoice},expression:"{ time: 500, methods: checkInvoice }"}],attrs:{text:"检查完成",icon:"el-icon-folder-checked"}}):e._e()],1)]),i("el-tabs",{on:{"tab-click":e.handleTabClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[i("el-tab-pane",{attrs:{label:"发票信息",name:"1"}},[i("div",{staticClass:"d-flex"},[i("div",{staticClass:"flex-4"},[""!=e.orderField.showTitle&&"image"!=e.type?i("el-alert",{attrs:{title:e.orderField.showTitle,type:"warning",closable:!1,"show-icon":""}}):e._e(),i("h1",{staticClass:"m-top-1",staticStyle:{"font-size":"24px","font-weight":"bold"}},[e._v(" "+e._s(e.invoice_type_list[e.orderField.ticketCode])+" ")]),i("div",{staticClass:"m-top-2 d-flex",class:{col4:e.isHidden},staticStyle:{"flex-wrap":"wrap"}},[i("formComponent",{attrs:{statusPending:e.statusPending,statusStr:e.statusStr,formGroup:e.formGroup,orderField:e.orderField},on:{blurSearch:e.handleRemoteSearch}})],1)],1),i("div",{staticClass:"m-right-2 splitLine"}),i("div",{staticClass:"flex-2",staticStyle:{"max-height":"650px",background:"#c0c2c4"}},[i("div",{staticClass:"m-right-2 h100 w100 d-flex a-center j-center flex-direction"},[i("imgPreview",{staticClass:"w100 h100",staticStyle:{margin:"0 !important"},attrs:{imgItem:{}},scopedSlots:e._u([{key:"title",fn:function(){return[e._v(" "+e._s(e.invoice_type_list[e.orderField.ticketCode])+" ")]},proxy:!0},{key:"image",fn:function(){return[i("el-image",{attrs:{src:e.orderField.imgPath,"preview-src-list":[e.orderField.imgPath]}})]},proxy:!0},{key:"date",fn:function(){return[e._v(" 已上载:"+e._s(e.orderField.date)+" ")]},proxy:!0},{key:"footer",fn:function(){return[i("span",{on:{click:function(t){return e.download(e.orderField)}}},[e._v(e._s(e.orderField.fileName))])]},proxy:!0}])})],1)])])]),i("el-tab-pane",{attrs:{label:"发票明细",name:"6"}},[i("div",{staticClass:"table"},[i("el-table",{staticClass:"pTable",attrs:{data:e.invoiceDetailTableData,"row-key":"id"}},[i("el-table-column",{attrs:{label:"产品名称",align:"center",prop:"name",width:"400","show-overflow-tooltip":""}}),i("el-table-column",{attrs:{label:"规格",align:"center",prop:"specification","show-overflow-tooltip":""}}),i("el-table-column",{attrs:{label:"单位",align:"center",prop:"unit"}}),i("el-table-column",{attrs:{label:"数量",align:"center",prop:"quantity"}}),i("el-table-column",{attrs:{label:"单价",align:"center",prop:"price"}}),i("el-table-column",{attrs:{label:"发票金额",align:"center",prop:"total"}}),i("el-table-column",{attrs:{label:"税率",align:"center",prop:"taxRate"}}),i("el-table-column",{attrs:{label:"税额",align:"center",prop:"tax"}}),i("el-table-column",{attrs:{label:"折扣金额",align:"center",prop:"deductionAmount"}}),i("el-table-column",{attrs:{label:"折扣税额",align:"center",prop:"deductionTax"}}),i("el-table-column",{attrs:{label:"Item No",align:"center",prop:"itemNo"}})],1)],1)]),i("el-tab-pane",{attrs:{label:"科目",name:"2"}},[i("div",{staticClass:"flex-5"},[i("div",{staticClass:"subject-choose"},[i("div",{staticClass:"m-bottom-1"},[e._v(" 科目选择 "),i("el-popconfirm",{staticClass:"m-left-1",attrs:{"confirm-button-text":"确定","cancel-button-text":"取消",icon:"el-icon-info","icon-color":"red",title:"确定删除吗?"}},[i("i",{staticClass:"c-red el-icon-delete cursor f-700",attrs:{slot:"reference"},slot:"reference"})])],1),i("el-input",{staticStyle:{width:"80% !important"},attrs:{placeholder:"输入关键字进行过滤"},on:{focus:function(t){e.popoverVisible=!0},blur:function(t){e.popoverVisible=!1}},model:{value:e.filterText,callback:function(t){e.filterText=t},expression:"filterText"}}),i("el-popover",{model:{value:e.popoverVisible,callback:function(t){e.popoverVisible=t},expression:"popoverVisible"}},[i("el-tree",{ref:"tree",staticClass:"filter-tree",staticStyle:{width:"100% !important"},attrs:{data:e.subjectList,"highlight-current":"","node-key":"id","default-expand-all":"","render-content":e.renderContent,"filter-node-method":e.filterNode},on:{"node-click":e.handleTree}})],1)],1),i("div",{staticClass:"subject-choose"},[i("span",{staticClass:"date-choose"},[e._v("财务期间")]),i("el-select",{staticStyle:{width:"26.7% !important"},attrs:{disabled:!e.isButtonShow||!e.isRCButtonShow,placeholder:"请选择日期"},on:{change:e.hSelect},model:{value:e.subjectFields.period,callback:function(t){e.$set(e.subjectFields,"period",t)},expression:"subjectFields.period"}},e._l(e.periodOptions,(function(e,t){return i("el-option",{key:t,attrs:{label:e.period,value:e.period}})})),1)],1),i("div",{staticClass:"boxa"},[i("span",{staticClass:"date-choose"},[e._v("成本中心")]),i("el-select",{staticStyle:{width:"80% !important"},attrs:{placeholder:"请选择"},on:{change:e.oSelect},model:{value:e.subjectFields.ext09,callback:function(t){e.$set(e.subjectFields,"ext09",t)},expression:"subjectFields.ext09"}},e._l(e.orgList,(function(e,t){return i("el-option",{key:t,attrs:{label:e.orgName,value:e.id}})})),1)],1)]),i("formComponent",{attrs:{statusStr:e.statusStr,formGroup:e.subject,orderField:e.subjectFields}})],1),i("el-tab-pane",{attrs:{label:"抵扣信息",name:"3"}},[i("formComponent",{attrs:{statusStr:e.statusStr,formGroup:e.deduct,orderField:e.orderField}})],1),i("el-tab-pane",{attrs:{label:"附件",name:"4"}},[i("FeesButton",{staticClass:"m-bottom-2",attrs:{text:"上传附件",icon:"el-icon-upload2"},on:{buttonClick:function(t){e.uploadDialog=!e.uploadDialog}}}),i("el-table",{staticStyle:{width:"60%"},attrs:{data:e.tableData,border:""}},[i("el-table-column",{attrs:{prop:"date",label:"Actions",width:"180",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",{staticClass:"text-color cursor",on:{click:function(i){return e.previewAtta(t)}}},[e._v("预览/下载")]),i("span",{staticClass:"c-red m-left-2 cursor",on:{click:function(i){return e.deleteAtta(t)}}},[e._v("删除")])]}}])}),i("el-table-column",{attrs:{prop:"type",label:"附件类型",align:"center"}}),i("el-table-column",{attrs:{prop:"description",label:"说明",align:"center"}}),i("el-table-column",{attrs:{prop:"uploadTime",label:"上传日期",align:"center"}}),i("el-table-column",{attrs:{prop:"uploadUserName",label:"上传人",align:"center"}})],1)],1),i("el-tab-pane",{attrs:{label:"接口日志",name:"5"}},[i("formComponent",{attrs:{statusStr:e.statusStr,formGroup:e.interfaceStatus,orderField:e.orderField}})],1)],1),i("el-dialog",{attrs:{visible:e.dialogVisible},on:{"update:visible":function(t){e.dialogVisible=t}}},[i("img",{attrs:{width:"100%",src:e.dialogImageUrl,alt:""}})]),i("el-dialog",{attrs:{visible:e.uploadDialog,title:"上传附件"},on:{"update:visible":function(t){e.uploadDialog=t}}},[i("div",{staticClass:"d-flex a-center m-bottom-2"},[i("div",{staticStyle:{width:"100px","text-align":"right"}},[e._v("附件类型:")]),i("el-select",{attrs:{placeholder:"请选择"},model:{value:e.uploadOption.type,callback:function(t){e.$set(e.uploadOption,"type",t)},expression:"uploadOption.type"}},e._l(e.attOptions,(function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),i("div",{staticClass:"d-flex a-center m-bottom-2"},[i("div",{staticStyle:{width:"100px","text-align":"right"}},[e._v("附件说明:")]),i("el-input",{attrs:{type:"textarea"},model:{value:e.uploadOption.description,callback:function(t){e.$set(e.uploadOption,"description",t)},expression:"uploadOption.description"}})],1),i("Upload",{attrs:{title:"导入",multiple:"",accept:""},on:{change:e.uploadAvater}}),i("el-progress",{attrs:{percentage:e.rate}})],1)],1)}),[],!1,null,"60ece1e2",null);t.default=k.exports},7872:function(e,t,i){"use strict";t.a=function(e){return 0==e.status?e.status1="未处理":1==e.status?e.status1="已处理":2==e.status?e.status1="异常":3==e.status&&(e.status1="pending"),e}},"7eb6":function(e,t,i){"use strict";var s={name:"img-preview",props:{imgItem:{type:Object}},created:function(){},data:function(){return{}}},n=(i("5dfc"),i("2877")),a=Object(n.a)(s,(function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"img-preview"},[t("div",{staticClass:"ticketAllocate-right d-flex flex-direction"},[t("div",{staticClass:"cursor c-fff w100 d-flex a-center j-center img-title"},[this._t("title")],2),t("div",{staticClass:"flex-1 d-flex a-center j-fe img-container"},[this._t("image")],2),t("div",{staticClass:"cursor img-tips c-fff w100 d-flex a-center j-fe p-right-2"},[this._t("date")],2),t("div",{staticClass:" img-footer mainColor cursor c-fff w100 d-flex a-center j-center downloadYU"},[this._t("footer")],2)])])}),[],!1,null,"66fde0f3",null);t.a=a.exports},c163:function(e,t,i){"use strict";i.d(t,"a",(function(){return n}));var s=i("a18c");function n(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;s.a.go(e)}}}]);
|