(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7a62edc4"],{"16f6":function(t,e,i){"use strict";i("32df")},"32df":function(t,e,i){},"3e00":function(t,e,i){"use strict";i("663e")},"663e":function(t,e,i){},"6b53":function(t,e,i){"use strict";i.r(e);var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"divBox"},[i("el-card",{staticClass:"box-card"},[i("div",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["platform:finance:merchant:closing:page:list"],expression:"['platform:finance:merchant:closing:page:list']"}],staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[i("div",{staticClass:"container"},[i("el-form",{attrs:{size:"small",inline:"","label-width":"100px"}},[i("el-form-item",{attrs:{label:"时间选择:"}},[i("el-date-picker",{staticStyle:{width:"250px"},attrs:{"value-format":"yyyy-MM-dd",format:"yyyy-MM-dd",size:"small",type:"daterange",placement:"bottom-end",placeholder:"自定义时间"},on:{change:t.onchangeTime},model:{value:t.timeVal,callback:function(e){t.timeVal=e},expression:"timeVal"}})],1),t._v(" "),i("el-form-item",{attrs:{label:"关键字:"}},[i("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入订单号/申请单号/发票号码",size:"small"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.searchList(e)}},model:{value:t.searchInfo.keyword,callback:function(e){t.$set(t.searchInfo,"keyword","string"===typeof e?e.trim():e)},expression:"searchInfo.keyword"}},[i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["platform:finance:merchant:closing:page:list"],expression:"['platform:finance:merchant:closing:page:list']"}],staticClass:"el-button-solt",attrs:{slot:"append",icon:"el-icon-search",size:"small"},on:{click:function(e){return t.getList(1)}},slot:"append"})],1)],1),t._v(" "),i("el-form-item",{staticClass:"width100",staticStyle:{display:"block"},attrs:{label:"开票状态:"}},[i("el-select",{attrs:{placeholder:"请选择"},on:{change:t.searchList},model:{value:t.searchInfo.fapiaoStatus,callback:function(e){t.$set(t.searchInfo,"fapiaoStatus",e)},expression:"searchInfo.fapiaoStatus"}},[i("el-option",{attrs:{label:"全部",value:-1}}),t._v(" "),i("el-option",{attrs:{label:"未开票",value:0}}),t._v(" "),i("el-option",{attrs:{label:"已开票",value:1}})],1)],1)],1)],1),t._v(" "),i("el-button",{attrs:{size:"small",type:"primary"},on:{click:t.importInvoice}},[t._v(" 导入 ")]),t._v(" "),i("el-button",{attrs:{size:"small",type:"primary"},on:{click:t.exportInvoice}},[t._v(" 导出 ")])],1),t._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],ref:"elTable",staticClass:"table",staticStyle:{width:"100%"},attrs:{"tooltip-effect":"dark",data:t.invoiceList,"row-key":"id"},on:{"selection-change":t.handleSelectionChange}},[i("el-table-column",{attrs:{type:"selection","reserve-selection":!0,width:"55"}}),t._v(" "),i("el-table-column",{attrs:{prop:"applyNo",label:"流水号","min-width":"220"}}),t._v(" "),i("el-table-column",{attrs:{prop:"userName",label:"用户昵称","min-width":"120",align:"center"}}),t._v(" "),i("el-table-column",{attrs:{prop:"bizType",label:"商品类型","min-width":"260",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("span",[t._v(t._s(t.bizTypeList[e.row.bizType]))])]}}])}),t._v(" "),i("el-table-column",{attrs:{prop:"productInfo",label:"商品信息","min-width":"180",align:"center"}}),t._v(" "),i("el-table-column",{attrs:{prop:"amount",label:"发票金额","min-width":"120",align:"center"}}),t._v(" "),i("el-table-column",{attrs:{prop:"fapiaoNo",label:"发票单号","min-width":"120",align:"center"}}),t._v(" "),i("el-table-column",{attrs:{prop:"amount",label:"发票类型","min-width":"80",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("span",[t._v(t._s(0===e.row.fapiaoType?"普通发票":"专用发票"))])]}}])}),t._v(" "),i("el-table-column",{attrs:{prop:"taxNo",label:"企业税号","min-width":"120",align:"center"}}),t._v(" "),i("el-table-column",{attrs:{prop:"bankName",label:"开户银行","min-width":"120",align:"center"}}),t._v(" "),i("el-table-column",{attrs:{prop:"bankAccount",label:"银行账号","min-width":"120",align:"center"}}),t._v(" "),i("el-table-column",{attrs:{prop:"address",label:"企业地址","min-width":"120",align:"center"}}),t._v(" "),i("el-table-column",{attrs:{prop:"phone",label:"企业电话","min-width":"120",align:"center"}}),t._v(" "),i("el-table-column",{attrs:{prop:"amount",label:"发票抬头","min-width":"80",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("span",[t._v(t._s(0===e.row.titleType?"个人":"企业"))])]}}])}),t._v(" "),i("el-table-column",{attrs:{prop:"title",label:"发票联系人","min-width":"120",align:"center"}}),t._v(" "),i("el-table-column",{attrs:{prop:"email",label:"发票联系信息","min-width":"170",align:"center"}}),t._v(" "),i("el-table-column",{attrs:{prop:"amount",label:"开票状态","min-width":"80",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("span",[t._v(t._s(0===e.row.fapiaoStatus?"未开票":"已开票"))])]}}])}),t._v(" "),i("el-table-column",{attrs:{prop:"remark",label:"发票备注","min-width":"120",align:"center"}}),t._v(" "),i("el-table-column",{attrs:{label:"操作","min-width":"100",fixed:"right",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["platform:finance:merchant:closing:detail"],expression:"['platform:finance:merchant:closing:detail']"}],attrs:{type:"text",size:"small"},on:{click:function(i){return t.openInvoiceDetailDialog(e.row)}}},[t._v("详情")]),t._v(" "),i("el-button",{attrs:{type:"text",size:"small",disabled:1===e.row.fapiaoStatus},on:{click:function(i){return t.openInvoiceDetailDialog(e.row,"edit")}}},[t._v("编辑")])]}}])})],1),t._v(" "),i("div",{staticClass:"block"},[i("el-pagination",{attrs:{"page-sizes":[20,40,60,80],"page-size":t.limit,"current-page":t.page,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)],1),t._v(" "),i("invoiceDetailDialog",{attrs:{showInvoiceDetailDialog:t.showInvoiceDetailDialog,invoiceDetailInfo:t.invoiceDetailInfo,type:t.type,ids:t.ids},on:{closeInvoiceDetailDialog:t.closeInvoiceDetailDialog}}),t._v(" "),i("mergeInvoiceDialog",{attrs:{showMergeInvoiceDialog:t.showMergeInvoiceDialog,ids:t.ids},on:{closeMergeInvoiceDialog:t.closeMergeInvoiceDialog}}),t._v(" "),i("importInvoiceDialog",{ref:"importdialog",on:{closeImportInvoiceDialog:t.closeImportInvoiceDialog}})],1)},s=[],o=i("cd05"),l=i("e350"),n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"invoice-detail"},[i("el-dialog",{attrs:{title:"发票详情",visible:t.showInvoiceDetailDialog},on:{"update:visible":function(e){t.showInvoiceDetailDialog=e},close:t.onClose}},[i("div",[i("div",[i("span",{staticClass:"bold"},[t._v("流水号:")]),t._v(" "),i("span",[t._v(t._s(t.invoiceDetailInfo.applyNo))])])]),t._v(" "),i("div",{staticStyle:{"margin-top":"20px"}},[i("div",{staticClass:"bold title"},[t._v("发票信息")]),t._v(" "),i("div",{staticClass:"item"},[i("div",{staticClass:"sub-item"},[i("span",{staticClass:"bold"},[t._v("发票抬头:")]),t._v(" "),i("span",[t._v(t._s(t.invoiceDetailInfo.title))])]),t._v(" "),i("div",{staticClass:"sub-item"},[i("span",{staticClass:"bold"},[t._v("发票类型:")]),t._v(" "),i("span",[t._v(t._s(0===t.invoiceDetailInfo.fapiaoType?"普通发票":"专用发票"))])])]),t._v(" "),i("div",{staticClass:"item"},[i("div",{staticClass:"sub-item"},[i("span",{staticClass:"bold"},[t._v("发票抬头类型:")]),t._v(" "),i("span",[t._v(t._s(0===t.invoiceDetailInfo.titleType?"个人":"企业"))])]),t._v(" "),i("div",{staticClass:"sub-item"},[i("span",{staticClass:"bold"},[t._v("发票金额:")]),t._v(" "),i("span",[t._v("¥ "+t._s(t.invoiceDetailInfo.amount))])])]),t._v(" "),i("div",{staticClass:"item"},[t.invoiceDetailInfo.taxNo?i("div",{staticClass:"sub-item"},[i("span",{staticClass:"bold"},[t._v("企业税号:")]),t._v(" "),i("span",[t._v(t._s(t.invoiceDetailInfo.taxNo))])]):t._e(),t._v(" "),t.invoiceDetailInfo.bankName?i("div",{staticClass:"sub-item"},[i("span",{staticClass:"bold"},[t._v("开户银行:")]),t._v(" "),i("span",[t._v(t._s(t.invoiceDetailInfo.bankName))])]):t._e()]),t._v(" "),i("div",{staticClass:"item"},[t.invoiceDetailInfo.bankAccount?i("div",{staticClass:"sub-item"},[i("span",{staticClass:"bold"},[t._v("银行账号:")]),t._v(" "),i("span",[t._v(t._s(t.invoiceDetailInfo.bankAccount))])]):t._e(),t._v(" "),t.invoiceDetailInfo.address?i("div",{staticClass:"sub-item"},[i("span",{staticClass:"bold"},[t._v("企业地址:")]),t._v(" "),i("span",[t._v(t._s(t.invoiceDetailInfo.address))])]):t._e()]),t._v(" "),i("div",{staticClass:"item"},[t.invoiceDetailInfo.phone?i("div",{staticClass:"sub-item"},[i("span",{staticClass:"bold"},[t._v("企业电话:")]),t._v(" "),i("span",[t._v(t._s(t.invoiceDetailInfo.phone))])]):t._e()])]),t._v(" "),i("div",{staticStyle:{"margin-top":"20px"}},[i("div",{staticClass:"bold title"},[t._v("联系信息")]),t._v(" "),i("div",{staticClass:"item"},[i("div",{staticClass:"sub-item"},[i("span",{staticClass:"bold"},[t._v("联系邮箱:")]),t._v(" "),i("span",[t._v(t._s(t.invoiceDetailInfo.email))])])])]),t._v(" "),i("div",{staticStyle:{"margin-top":"20px"}},[i("div",{staticClass:"item"},[i("div",{staticClass:"sub-item"},[i("span",{staticClass:"bold"},[t._v("开票状态:")]),t._v(" "),i("span",[t._v(t._s(0===t.invoiceDetailInfo.fapiaoStatus?"未开票":"已开票"))])])])]),t._v(" "),"edit"===t.type?i("div",{staticStyle:{"margin-top":"20px"}},[i("div",{staticClass:"bold"},[t._v("发票号码")]),t._v(" "),i("el-input",{staticStyle:{"margin-top":"15px"},attrs:{placeholder:"请输入发票号码"},model:{value:t.invoiceDetailInfo.fapiaoNo,callback:function(e){t.$set(t.invoiceDetailInfo,"fapiaoNo",e)},expression:"invoiceDetailInfo.fapiaoNo"}})],1):i("div",{staticStyle:{"margin-top":"20px"}},[i("div",{staticClass:"item"},[i("div",{staticClass:"sub-item"},[i("span",{staticClass:"bold"},[t._v("发票号码:")]),t._v(" "),i("span",[t._v(t._s(t.invoiceDetailInfo.fapiaoNo))]),t._v(" "),i("div",{staticClass:"sub-item"})])])]),t._v(" "),"edit"===t.type?i("div",{staticStyle:{"margin-top":"20px"}},[i("div",{staticClass:"bold"},[t._v("发票备注")]),t._v(" "),i("el-input",{staticStyle:{"margin-top":"15px"},attrs:{placeholder:"请输入发票备注",type:"textarea",autosize:{minRows:3},"show-word-limit":!0},model:{value:t.invoiceDetailInfo.remark,callback:function(e){t.$set(t.invoiceDetailInfo,"remark",e)},expression:"invoiceDetailInfo.remark"}})],1):i("div",{staticStyle:{"margin-top":"20px"}},[i("div",{staticClass:"item"},[i("div",{staticClass:"sub-item"},[i("span",{staticClass:"bold"},[t._v("发票备注:")]),t._v(" "),i("span",[t._v(t._s(t.invoiceDetailInfo.remark))])])])]),t._v(" "),"edit"===t.type?i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:t.onClose}},[t._v("取 消")]),t._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:t.confirmInvoice}},[t._v("确 定")])],1):t._e()])],1)},c=[],r={props:["showInvoiceDetailDialog","invoiceDetailInfo","type","ids"],data:function(){return{fapiaoNo:"",remark:""}},methods:{onClose:function(){this.$emit("closeInvoiceDetailDialog")},confirmInvoice:function(){var t=this,e={fapiaoNo:this.invoiceDetailInfo.fapiaoNo,remark:this.invoiceDetailInfo.remark,applyNo:this.invoiceDetailInfo.applyNo};e.fapiaoNo?Object(o["h"])(e).then((function(){t.$message({message:"开票成功",type:"success",showClose:!0}),t.onClose()})):this.$message({message:"发票号码不能为空",type:"warning",showClose:!0})}}},p=r,v=(i("952e"),i("2877")),m=Object(v["a"])(p,n,c,!1,null,"7f438b87",null),f=m.exports,d=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"invoice-detail"},[i("el-dialog",{attrs:{title:"合并发票",visible:t.showMergeInvoiceDialog},on:{"update:visible":function(e){t.showMergeInvoiceDialog=e},close:t.onClose}},[i("div",{staticClass:"bold title"},[t._v("已选择"+t._s(t.ids.length)+"个订单")]),t._v(" "),i("div",{staticStyle:{"margin-top":"20px"}},[i("div",{staticClass:"bold"},[t._v("发票号码")]),t._v(" "),i("el-input",{staticStyle:{"margin-top":"15px"},attrs:{placeholder:"请输入发票号码"},model:{value:t.fapiaoNo,callback:function(e){t.fapiaoNo=e},expression:"fapiaoNo"}})],1),t._v(" "),i("div",{staticStyle:{"margin-top":"20px"}},[i("div",{staticClass:"bold"},[t._v("发票备注")]),t._v(" "),i("el-input",{staticStyle:{"margin-top":"15px"},attrs:{placeholder:"请输入发票备注",type:"textarea",autosize:{minRows:3},"show-word-limit":!0},model:{value:t.remark,callback:function(e){t.remark=e},expression:"remark"}})],1),t._v(" "),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:t.onClose}},[t._v("取 消")]),t._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:t.confirmInvoice}},[t._v("确 定")])],1)])],1)},h=[],u={props:["showMergeInvoiceDialog","ids"],data:function(){return{fapiaoNo:"",remark:""}},methods:{onClose:function(){this.$emit("closeMergeInvoiceDialog")},confirmInvoice:function(){var t=this,e={fapiaoNo:this.fapiaoNo,remark:this.remark,ids:this.ids};e.fapiaoNo?Object(o["h"])(e).then((function(e){t.$message({message:"开票成功",type:"success",showClose:!0}),t.onClose()})):this.$message({message:"发票号码不能为空",type:"warning",showClose:!0})}}},g=u,_=(i("3e00"),Object(v["a"])(g,d,h,!1,null,"38037ac8",null)),b=_.exports,y=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"import-invoice"},[i("el-dialog",{attrs:{title:t.errorList.length?"提示":"导入",visible:t.show},on:{close:t.onClose}},[i("el-button",{staticClass:"download-btn",attrs:{type:"primary",size:"small"},on:{click:t.downloadXls}},[t._v("下载模板")]),t._v(" "),t.errorList.length?[i("div",{staticClass:"error-tip"},[i("span",[t._v(" 导入 ")]),t._v(" "),t._l(t.errorList,(function(e,a){return i("p",{key:a,staticClass:"error-list"},[[t._v("\n "+t._s(" 第"+e.rowIndex+"行,")+"\n "),i("span",{staticClass:"error-apply"},[t._v("\n "+t._s(e.applyNo||"")+"\n ")]),t._v(" "),i("span",[t._v(" "+t._s(" "+(e.msg||"导入成功")+"。")+" ")]),t._v(" "),i("br")]],2)}))],2),t._v(" "),i("div",{staticClass:"dialog-footer footer-btn",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{type:"primary"},on:{click:t.closeImportInvoiceDialog}},[t._v("我知道了")])],1)]:[i("el-form",{attrs:{size:"small","label-width":"100px"}},[i("el-form-item",{attrs:{label:"导入:"}},[i("uploadFileV2",{ref:"uploadfile",on:{onSuccess:t.uploadSuccess}}),t._v(" "),i("div",{staticClass:"upload-content"},[i("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[t._v("注:导入格式为excel,csv格式,最多可导入1个文件")])])],1)],1),t._v(" "),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:t.onClose}},[t._v("取 消")]),t._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:t.confirmUpload}},[t._v("确 定")])],1)]],2)],1)},I=[],w=i("6c9f"),C={components:{uploadFileV2:w["default"]},data:function(){return{fapiaoNo:"",remark:"",message:"",resList:[],errorList:[],fileList:[],show:!1}},methods:{onClose:function(){this.show=!1,this.resList=[],this.errorList=[]},closeImportInvoiceDialog:function(){this.show=!1,this.resList=[],this.errorList=[],this.$emit("closeImportInvoiceDialog")},uploadSuccess:function(t){this.resList=t||[]},open:function(){this.show=!0},confirmUpload:function(){this.errorList=this.resList,this.$refs.uploadfile.clear()},downloadXls:function(){var t=this.$router.resolve({path:"/static/file/导入发票申请单模板.xlsx"}),e=t.href;window.open(e,"_blank")}}},k=C,D=(i("95aa"),Object(v["a"])(k,y,I,!1,null,"53e65536",null)),L=D.exports;function x(t,e){return z(t)||$(t,e)||N(t,e)||S()}function S(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function N(t,e){if(t){if("string"===typeof t)return T(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?T(t,e):void 0}}function T(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,a=new Array(e);i=0&&(e.fapiaoStatus=this.searchInfo.fapiaoStatus),Object(o["j"])(e).then((function(e){var i=e.limit,a=e.list,s=e.page,o=e.total,l=e.totalPage;t.limit=i,t.invoiceList=a,t.page=s,t.total=o,t.totalPage=l,t.listLoading=!1})).catch((function(){t.listLoading=!1}))},selectChange:function(t){this.timeVal=[],this.page=1,this.getList()},onchangeTime:function(t){if(this.page=1,this.timeVal=t,!this.timeVal)return this.searchInfo.timeFrom="",this.searchInfo.timeTo="",void this.getList();var e=x(this.timeVal,2);this.searchInfo.timeFrom=e[0],this.searchInfo.timeTo=e[1],this.getList()},searchList:function(){this.page=1,this.getList()},importInvoice:function(){this.$refs.importdialog.open()},exportInvoice:function(){var t=this,e=this.searchInfo,i=e.keyword,a=e.timeFrom,s=e.timeTo,l=e.fapiaoStatus,n={keyword:i||"",timeFrom:a||"",timeTo:s||"",fapiaoStatus:l,fapiaoIds:[]},c=[];this.selectList&&this.selectList.length&&this.selectList.forEach((function(t){c.push(t.id)})),n.fapiaoIds=c,Object(o["i"])(n).then((function(e){var i=new Blob([e],{type:"application/vnd.ms-excel;charset=utf-8"}),a=document.createElement("a"),s=window.URL.createObjectURL(i);a.href=s,a.download=localStorage.getItem("filename"),localStorage.removeItem("filename"),document.body.appendChild(a),a.click(),document.body.removeChild(a),window.URL.revokeObjectURL(s),t.$refs.elTable.clearSelection()}))},mergeInvoice:function(){var t=this;if(this.ids=[],0!==this.selectList.length)if(this.selectList.some((function(t){return 1===t.fapiaoStatus})))this.$message({message:"不能包含已开票记录",type:"warning",showClose:!0});else{var e=!0;if(this.selectList.length>1)for(var i=1;i