(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-10a67b28"],{5217:function(t,e,s){"use strict";s.d(e,"e",(function(){return i})),s.d(e,"a",(function(){return a})),s.d(e,"d",(function(){return o})),s.d(e,"g",(function(){return c})),s.d(e,"h",(function(){return r})),s.d(e,"f",(function(){return l})),s.d(e,"c",(function(){return u})),s.d(e,"b",(function(){return d})),s.d(e,"i",(function(){return h}));var n=s("8e44");const i=t=>Object(n["e"])("/customer/list",t).then(t=>t),a=t=>Object(n["e"])("/customer/checkUniqueCode",t).then(t=>t),o=t=>Object(n["f"])("/voucher/insertVouCustomer",t).then(t=>t),c=t=>Object(n["f"])("/vou/customer/sync").then(t=>t),r=t=>Object(n["g"])("/customer",t).then(t=>t),l=t=>Object(n["f"])("/vou/customer/push",t).then(t=>t),u=t=>Object(n["c"])("/customer/exportCustomerExcel",t).then(t=>t),d=t=>Object(n["b"])("/customer/batchDelete/"+t).then(t=>t),h=t=>Object(n["f"])("/customer/upload",t,{headers:{"Content-Type":"multipart/form-data"}}).then(t=>t)},"56c1":function(t,e,s){},"5b93":function(t,e,s){"use strict";s("9a45")},"73db":function(t,e,s){},"7e23":function(t,e,s){"use strict";s.d(e,"n",(function(){return i})),s.d(e,"E",(function(){return a})),s.d(e,"J",(function(){return o})),s.d(e,"L",(function(){return c})),s.d(e,"c",(function(){return r})),s.d(e,"d",(function(){return l})),s.d(e,"x",(function(){return u})),s.d(e,"w",(function(){return d})),s.d(e,"o",(function(){return h})),s.d(e,"a",(function(){return p})),s.d(e,"f",(function(){return m})),s.d(e,"s",(function(){return _})),s.d(e,"B",(function(){return v})),s.d(e,"z",(function(){return b})),s.d(e,"F",(function(){return f})),s.d(e,"i",(function(){return y})),s.d(e,"A",(function(){return g})),s.d(e,"M",(function(){return C})),s.d(e,"k",(function(){return j})),s.d(e,"u",(function(){return O})),s.d(e,"D",(function(){return k})),s.d(e,"t",(function(){return x})),s.d(e,"I",(function(){return w})),s.d(e,"l",(function(){return I})),s.d(e,"r",(function(){return S})),s.d(e,"h",(function(){return A})),s.d(e,"q",(function(){return q})),s.d(e,"p",(function(){return P})),s.d(e,"K",(function(){return D})),s.d(e,"j",(function(){return z})),s.d(e,"e",(function(){return N})),s.d(e,"b",(function(){return T})),s.d(e,"y",(function(){return $})),s.d(e,"g",(function(){return L})),s.d(e,"H",(function(){return V})),s.d(e,"G",(function(){return B})),s.d(e,"v",(function(){return J})),s.d(e,"m",(function(){return E})),s.d(e,"C",(function(){return Y}));var n=s("8e44");const i=t=>Object(n["f"])("/invoice/center/page",t).then(t=>t),a=t=>Object(n["e"])("/invoice/details/"+t).then(t=>t),o=t=>Object(n["g"])("/invoice",t).then(t=>t),c=t=>Object(n["g"])("/invoice/settlement/status/"+t.invoiceIds+"/"+t.settlementStatus).then(t=>t),r=t=>Object(n["e"])("/invoice/batchGeneratePdf/"+t.invoiceIds).then(t=>t),l=t=>Object(n["e"])("/invoice/batchGeneratePdfPreQuery/"+t.invoiceIds).then(t=>t),u=t=>Object(n["f"])("/image/invoice/import",t,{headers:{"Content-Type":"multipart/form-data"}}).then(t=>t),d=t=>Object(n["g"])("/invoice/explain/"+t.ids,t.data).then(t=>t),h=t=>Object(n["e"])("/invoice/image/list/"+t).then(t=>t),p=t=>Object(n["e"])("/invoice/again/push/"+t).then(t=>t),m=t=>Object(n["f"])("/image/invoice/pdf/change/image",t).then(t=>t),_=()=>Object(n["e"])("/image/invoice/recognize/batch/no",{}).then(t=>t),v=t=>Object(n["f"])("/image/invoice/picture/recognize",t,{timeout:18e4}).then(t=>t),b=t=>Object(n["f"])("/image/invoice/ofdRecognize",t,{timeout:18e4}).then(t=>t),f=t=>Object(n["f"])("/image/invoice/submit",t).then(t=>t),y=t=>Object(n["f"])("/invoice/batch/delete",t).then(t=>t),g=t=>Object(n["f"])("/invoice/batch/push",t).then(t=>t),C=t=>Object(n["f"])("/image/invoice/ofdUpload",t,{headers:{"Content-Type":"multipart/form-data"}}).then(t=>t.data),j=t=>Object(n["c"])("/invoice/downOriginalFile/",t).then(t=>t),O=t=>Object(n["c"])("invoice/export/",t).then(t=>t),k=t=>Object(n["f"])("/scanning/gun",t).then(t=>t),x=t=>Object(n["e"])("/image/invoice/recognize/failure/record",t).then(t=>t),w=t=>Object(n["g"])("/image/invoice",t).then(t=>t),I=t=>Object(n["e"])("/image/invoice/getImageInvoice/"+t).then(t=>t),S=t=>Object(n["e"])("/image/invoice/image/"+t).then(t=>t),A=t=>Object(n["b"])("/image/invoice/"+t).then(t=>t),q=t=>Object(n["e"])("/invoice/list/"+t).then(t=>t),P=t=>Object(n["e"])("/invoice/list/image/"+t).then(t=>t),D=t=>Object(n["g"])("/invoice/list",t).then(t=>t),z=t=>Object(n["b"])("/invoice/list/"+t).then(t=>t),N=t=>Object(n["g"])("/invoice/buyer/audit/"+t).then(t=>t),T=t=>Object(n["f"])("/image/invoice/again/recognize",t).then(t=>t),$=t=>Object(n["f"])("/invoice/manual/input",t).then(t=>t),L=t=>Object(n["e"])("/image/invoice/gun/collect",t).then(t=>t),V=t=>Object(n["e"])("/image/invoice/recognize/unqueried/image",t).then(t=>t),B=t=>Object(n["f"])("/invoice/organization",t).then(t=>t),J=t=>Object(n["c"])("/invoice/download",t).then(t=>t),E=t=>Object(n["f"])("/invoice/generate/pdf",t).then(t=>t),Y=t=>Object(n["e"])("/col/attachment/by-col-invoice-id/"+t).then(t=>t)},9678:function(t,e,s){"use strict";s("73db")},"9a45":function(t,e,s){},bc29:function(t,e,s){"use strict";s.r(e);var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"voucher_list_view"},[t.isShowGuide?n(t.curCmps,{tag:"component",attrs:{curInfo:t.curInfo},on:{onBackToList:function(e){t.isShowGuide=!1}}}):[n("div",{staticClass:"content-select"},[n("div",{staticClass:"search_box"},[n("el-form",{ref:"filterForm",attrs:{model:t.queryParams,inline:"","label-width":"80px"}},[n("el-row",{staticClass:"row-first"},[n("el-form-item",{staticClass:"mb",attrs:{label:"会计期间",prop:"periodNo"}},[n("el-date-picker",{attrs:{type:"month","value-format":"yyyyMM",clearable:"",placeholder:"选择期间"},model:{value:t.queryParams.periodNo,callback:function(e){t.$set(t.queryParams,"periodNo",e)},expression:"queryParams.periodNo"}})],1),n("el-form-item",{staticClass:"mb",attrs:{label:"凭证编号",prop:"voucherNo"}},[n("el-input",{attrs:{placeholder:"请输入凭证编号",clearable:""},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.handleQuery.apply(null,arguments)}},model:{value:t.queryParams.voucherNo,callback:function(e){t.$set(t.queryParams,"voucherNo",e)},expression:"queryParams.voucherNo"}})],1),n("el-form-item",{staticClass:"mb",attrs:{label:"凭证状态",prop:"voucherStatus"}},[n("el-select",{attrs:{clearable:"",placeholder:"请选择凭证状态"},model:{value:t.queryParams.voucherStatus,callback:function(e){t.$set(t.queryParams,"voucherStatus",e)},expression:"queryParams.voucherStatus"}},t._l(t.options,(function(t){return n("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1),n("el-form-item",{staticClass:"mb",attrs:{label:"业务类型",prop:"bizType"}},[n("el-select",{attrs:{clearable:"",placeholder:"请选择业务类型"},model:{value:t.queryParams.bizType,callback:function(e){t.$set(t.queryParams,"bizType",e)},expression:"queryParams.bizType"}},t._l(t.types,(function(t){return n("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1),n("el-form-item",[n("el-button",{attrs:{type:"primary"},on:{click:t.handleQuery}},[t._v("查询")]),n("el-button",{attrs:{type:"default"},on:{click:t.resetQuery}},[t._v("重置")])],1)],1)],1)],1)]),n("div",{staticClass:"content-main"},[n("el-row",{attrs:{type:"flex",justify:"space-between"}},[n("el-col",{attrs:{span:12}},[n("div",{staticClass:"btn_box"},[n("el-button",{attrs:{type:"primary",disabled:t.isDisableBtn},on:{click:function(e){return t.handleBatch("push")}}},[t._v("推送")]),n("el-button",{attrs:{disabled:t.isDisableBtn},on:{click:function(e){return t.handleBatch("update")}}},[t._v("更新")]),n("el-button",{attrs:{disabled:t.isDisableBtn},on:{click:function(e){return t.handleBatch("del")}}},[t._v("删除")])],1)]),n("el-col",{attrs:{span:6,offset:6,align:"right"}},[n("div",{staticClass:"btn_box",staticStyle:{"font-size":"14px"}},[n("el-link",{attrs:{type:"primary",underline:!1},on:{click:function(e){return t.changeCmps("Guide")}}},[n("i",{staticClass:"el-icon-s-promotion"}),t._v(" 使用引导    ")]),n("span",[t._v(" 排序："),n("el-dropdown",{on:{command:t.handleCommand}},[n("span",{staticClass:"el-dropdown-link"},[t._v(t._s(t.curCon)),n("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),n("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},t._l(t.commandList,(function(e,s){return n("el-dropdown-item",{key:s,attrs:{command:JSON.stringify(e)}},[t._v(t._s(e.label))])})),1)],1)],1)],1)])],1),n("div",{staticClass:"cus_vo_table"},[n("el-row",{staticClass:"cus_t_header",attrs:{type:"flex"}},[n("el-col",{staticClass:"cus_t_header_item",attrs:{span:1}},[n("el-checkbox",{attrs:{disabled:!t.records.length},on:{change:t.handleChooseAll},model:{value:t.isCheckedAll,callback:function(e){t.isCheckedAll=e},expression:"isCheckedAll"}})],1),n("el-col",{staticClass:"cus_t_header_item",attrs:{span:6}},[t._v("摘要")]),n("el-col",{staticClass:"cus_t_header_item",attrs:{span:9}},[t._v("科目")]),n("el-col",{staticClass:"cus_t_header_item",attrs:{span:4}},[t._v("借方金额")]),n("el-col",{staticClass:"cus_t_header_item",attrs:{span:4}},[t._v("贷方金额")])],1),t._l(t.records,(function(e,s){return n("el-row",{key:e.id,staticClass:"cus_t_body_box",staticStyle:{cursor:"pointer"}},[n("div",{staticClass:"sta_icon",class:"YTS"==e.voucherStatus?"":"no"},[t._v(t._s("YTS"==e.voucherStatus?"已推送":"未推送"))]),n("el-row",{staticClass:"cus_t_body",attrs:{type:"flex"}},[n("el-col",{staticClass:"cus_t_body_item lh_30",attrs:{span:1}},[n("el-checkbox",{on:{change:t.handleItemCheked},model:{value:e.isChecked,callback:function(s){t.$set(e,"isChecked",s)},expression:"item.isChecked"}})],1),n("el-col",{staticClass:"cus_t_body_item lh_30",attrs:{span:6}},[t._v("会计期间："+t._s(e.periodNo)+"    凭证编号："+t._s(e.voucherNo?"记-"+e.voucherNo:""))]),n("el-col",{staticClass:"cus_t_body_item lh_30",attrs:{span:9}},[t._v("制单人："+t._s(e.creatorName)+"     日期："+t._s(t.$moment(e.voucherDate).format("YYYY-MM-DD"))+"    对应发票："),e.invoiceCount>0?n("el-button",{attrs:{type:"text"},on:{click:function(s){return t.handleTogo(e)}}},[t._v(t._s(e.invoiceCount||0)+"张")]):n("span",[t._v("--")])],1),n("el-col",{staticClass:"cus_t_body_item",attrs:{span:4}},[t._v(" ")]),n("el-col",{staticClass:"cus_t_body_item",attrs:{span:4}},[n("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(n){return t.changeCmps("Detail",e,s)}}},[t._v("查看凭证")]),n("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(s){return t.handleItem(e,"push")}}},[t._v("推送")]),n("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(s){return t.handleItem(e,"update")}}},[t._v("更新")]),n("el-popover",{attrs:{placement:"top",offset:"40",trigger:"manual"},model:{value:e.popVisible,callback:function(s){t.$set(e,"popVisible",s)},expression:"item.popVisible"}},[n("p",[t._v("确定删除该凭证？")]),n("div",{staticStyle:{"text-align":"right",margin:"0"}},[n("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(t){e.popVisible=!1}}},[t._v("取消")]),n("el-button",{attrs:{size:"mini",type:"primary"},on:{click:function(s){return t.handleItem(e,"del")}}},[t._v("确定")])],1),n("el-button",{attrs:{slot:"reference",size:"mini",type:"text"},on:{click:function(t){e.popVisible=!e.popVisible}},slot:"reference"},[t._v("  删除")])],1)],1)],1),t._l(e["items"],(function(e){return n("el-row",{key:e.id,staticClass:"cus_t_body_con",attrs:{type:"flex"}},[n("el-col",{staticClass:"cus_t_body_item",attrs:{span:1}},[t._v(" ")]),n("el-col",{staticClass:"cus_t_body_item",attrs:{span:6}},[t._v(t._s(e.resume))]),n("el-col",{staticClass:"cus_t_body_item",attrs:{span:9}},[t._v(t._s(e.account))]),n("el-col",{staticClass:"cus_t_body_item",attrs:{span:4}},[t._v(t._s(e.debitAmount))]),n("el-col",{staticClass:"cus_t_body_item",attrs:{span:4}},[t._v(" "+t._s(e.creditAmount))])],1)})),n("el-row",{staticClass:"cus_t_body_con",attrs:{type:"flex"}},[n("el-col",{staticClass:"cus_t_body_item",attrs:{span:1}},[t._v(" ")]),n("el-col",{staticClass:"cus_t_body_item",attrs:{span:15}},[t._v("合计："+t._s(t.handleSmallToCapitalize(e.totalAmount)))]),n("el-col",{staticClass:"cus_t_body_item total",attrs:{span:4}},[t._v(t._s(e.totalDAmount))]),n("el-col",{staticClass:"cus_t_body_item",attrs:{span:4}},[t._v(" "+t._s(e.totalCAmount)+" ")])],1),e.operateMessage?n("el-row",{staticClass:"cus_t_body_con",attrs:{type:"flex"}},[n("el-col",{staticClass:"cus_t_body_item",attrs:{span:1}},[t._v(" ")]),n("el-col",{staticClass:"cus_t_body_item",attrs:{span:23}},[t._v("原因："+t._s(e.operateMessage)+" 编号："+t._s(e.operateBatchNo))])],1):t._e()],2)}))],2),n("div",{directives:[{name:"show",rawName:"v-show",value:t.records.length>0,expression:"records.length > 0"}],staticClass:"content-page"},[n("el-pagination",{attrs:{background:"","page-sizes":[15,30,50,100],"page-size":t.queryParams.size,layout:"total, sizes, prev, pager, next",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1),t.records.length?t._e():n("div",{staticClass:"table_no_data"},[n("img",{staticStyle:{width:"104px",height:"98px"},attrs:{src:s("c1a9"),alt:""}}),n("p",[t._v("暂无凭证列表数据！")]),n("div",[n("el-button",{on:{click:function(e){return t.$router.push("/pool/income")}}},[t._v("去记账")]),n("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.changeCmps("Guide")}}},[t._v("使用引导")])],1)])],1),n("el-dialog",{attrs:{width:"30%","append-to-body":"",visible:t.visiable,title:"导入"},on:{"update:visible":function(e){t.visiable=e}}},[n("div",{staticStyle:{margin:"10px 20px"}},[t._v("导入")]),n("div",{staticClass:"button-footer",staticStyle:{"text-align":"center"},attrs:{slot:"footer"},slot:"footer"},[n("el-button",{staticClass:"button-left",attrs:{type:"default"},on:{click:function(e){t.visiable=!1}}},[t._v("取消")]),n("el-button",{attrs:{type:"primary"},on:{click:t.handleDialog}},[t._v("确认")])],1)]),n("el-dialog",{attrs:{width:"30%","append-to-body":"",visible:t.delVisiable,title:"提示"},on:{"update:visible":function(e){t.delVisiable=e}}},[n("div",{staticStyle:{margin:"10px 20px"}},[t._v("确定要删除吗？")]),n("div",{staticClass:"button-footer",staticStyle:{"text-align":"center"},attrs:{slot:"footer"},slot:"footer"},[n("el-button",{staticClass:"button-left",attrs:{type:"default"},on:{click:function(e){t.delVisiable=!1}}},[t._v("取消")]),n("el-button",{attrs:{type:"primary"},on:{click:t.handleDelDialog}},[t._v("确认")])],1)])]],2)},i=[],a=(s("13d5"),s("cf6b")),o=s("7e23"),c=s("1ce7"),r=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"vouche_guide_cmps"},[s("div",{staticClass:"tit"},[t._v("使用引导")]),s("el-row",{attrs:{type:"flex",align:"middle"}},[s("el-col",{staticClass:"card_box"},[s("h5",[t._v("1、完善基础档案")]),s("ul",{staticClass:"base_info_list"},[s("li",{staticClass:"base_info_item"},[s("span",[t._v("同步往来单位")]),1==t.customDataStatus?s("i",{staticClass:"el-icon-time",on:{click:function(e){return t.handleSysnc(1)}}},[t._v("  开始同步")]):t._e(),3==t.customDataStatus?s("i",{staticClass:"el-icon-success"},[t._v("  已同步")]):t._e(),4==t.customDataStatus?s("i",{staticClass:"el-icon-question"},[t._v("  同步失败")]):t._e()]),s("li",{staticClass:"base_info_item"},[s("span",[t._v("同步项目")]),1==t.projectDataStatus?s("i",{staticClass:"el-icon-time",on:{click:function(e){return t.handleSysnc(2)}}},[t._v("  开始同步")]):t._e(),3==t.projectDataStatus?s("i",{staticClass:"el-icon-success"},[t._v("  已同步")]):t._e(),4==t.projectDataStatus?s("i",{staticClass:"el-icon-question"},[t._v("  同步失败")]):t._e()]),s("li",{staticClass:"base_info_item"},[s("span",[t._v("同步会计科目")]),1==t.accountsDataStatus?s("i",{staticClass:"el-icon-time",on:{click:function(e){return t.handleSysnc(3)}}},[t._v("  开始同步")]):t._e(),3==t.accountsDataStatus?s("i",{staticClass:"el-icon-success"},[t._v("  已同步")]):t._e(),4==t.accountsDataStatus?s("i",{staticClass:"el-icon-question"},[t._v("  同步失败")]):t._e()])])]),s("el-col",{staticClass:"icon_right_box",attrs:{span:1}},[s("i",{staticClass:"el-icon-arrow-right"})]),s("el-col",{staticClass:"card_box"},[s("h5",[t._v("2、设置凭证规则")]),s("p",[t._v("设置常用凭证模板。")]),s("el-button",{staticClass:"btn",attrs:{type:"primary",size:"mini"},on:{click:function(e){return t.$router.push("/voucher/template")}}},[t._v("去添加")])],1),s("el-col",{staticClass:"icon_right_box",attrs:{span:1}},[s("i",{staticClass:"el-icon-arrow-right"})]),s("el-col",{staticClass:"card_box"},[s("h5",[t._v("3、自动生成凭证")]),s("p",[t._v("勾选发票，点击生成凭证，选择模版后自动生成凭证。")]),s("el-button",{staticClass:"btn",attrs:{type:"primary",size:"mini"},on:{click:function(e){return t.$router.push("/pool/income")}}},[t._v("去记账")])],1)],1)],1)},l=[],u=s("5217");var d={components:{},data(){return{timerC:null,timerA:null,timerP:null,timeCCount:0,timeACount:0,timePCount:0,customDataStatus:1,projectDataStatus:1,accountsDataStatus:1}},created(){},mounted(){},methods:{handleSysnc(t){switch(t){case 1:this._syncCustom();break;case 2:this._projectSync();break;case 3:this._syncAccounts();break;default:break}},async _syncCustom(){const{success:t}=await Object(u["g"])();this.customDataStatus=t?3:4},_loopCustom(){this._stopLoopCustom(),this.timerC=setInterval(()=>{this._syncCustom()},1e4)},_stopLoopCustom(){this.timerC&&(clearInterval(this.timerC),this.timerC=null)},async _syncAccounts(){this._stopLoopAccounts();const{success:t}=await Object(a["p"])();this.accountsDataStatus=t?3:4},_loopAccounts(){this.timerA=setInterval(()=>{this._syncAccounts()},1e4)},_stopLoopAccounts(){this.timerA&&(clearInterval(this.timerA),this.timerA=null)},async _projectSync(){this._stopLoopProject();const{success:t}=await Object(a["n"])();this.projectDataStatus=t?3:4},_loopProject(){setInterval(()=>{this._projectSync()},1e4)},_stopLoopProject(){this.timerP&&(clearInterval(this.timerP),this.timerP=null)}},destroyed(){this._stopLoopCustom(),this._stopLoopAccounts(),this._stopLoopProject()}},h=d,p=(s("c703"),s("2877")),m=Object(p["a"])(h,r,l,!1,null,"12391269",null),_=m.exports,v=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"voucher_detail_cmps"},[s("div",{staticClass:"cus_tally_box"},[s("el-row",{attrs:{type:"flex"}},[s("el-col",{attrs:{span:8}},[t._v(" ")]),s("el-col",{staticClass:"tit",attrs:{span:8,align:"center"}},[t._v("记账凭证")]),s("el-col",{staticClass:"right_btn",attrs:{span:8,align:"right"}},[s("el-link",{attrs:{icon:"el-icon-position",type:"primary",underline:!1},on:{click:function(e){return t.$emit("onBackToList")}}},[s("i"),t._v(" 返回列表    ")]),s("el-link",{attrs:{icon:"el-icon-arrow-left",type:"primary",underline:!1},on:{click:function(e){return t.handleFindItem("prev")}}},[t._v("上一张    ")]),s("el-link",{attrs:{icon:"el-icon-arrow-right",type:"primary",underline:!1},on:{click:function(e){return t.handleFindItem("next")}}},[t._v("下一张")])],1)],1),s("el-row",{staticStyle:{padding:"0 10px"},attrs:{type:"flex",align:"middle"}},[s("el-col",{attrs:{span:12}},[t._v(t._s(t.$moment(t.detailInfo.voucherDate).format("YYYY-MM-DD"))+"   "+t._s(t.detailInfo.voucherNo?"记-"+t.detailInfo.voucherNo+"号":""))]),t.detailInfo.invoiceCount>0?s("el-col",{attrs:{span:12,align:"right"}},[t._v(" 对应发票："),s("el-button",{staticStyle:{padding:"0"},attrs:{underline:!1,type:"text"},on:{click:function(e){return t.handleTogo(t.detailInfo)}}},[t._v(t._s(t.detailInfo.invoiceCount||0)+"张")])],1):t._e()],1),s("table",{attrs:{border:""}},[s("tbody",[t._m(0),t._m(1),t._l(t.detailInfo["items"],(function(e){return s("tr",{key:e.id},[s("td",[t._v(t._s(e.resume))]),s("td",{staticClass:"td_account"},[t._v(t._s(e.account))]),t._l(e["debitAmount"],(function(e,n){return s("td",{key:n+"de"},[t._v(t._s(e))])})),t._l(e["creditAmount"],(function(e,n){return s("td",{key:n+"cr"},[t._v(t._s(e))])}))],2)})),s("tr",[s("td",{attrs:{colspan:"2"}},[t._v("合计：￥"+t._s(t.handleSmallToCapitalize(t.detailInfo.totalAmount)))]),t._l(t.detailInfo["tmpTotalAmount"],(function(e,n){return s("td",{key:n+"tmp_1"},[t._v(t._s(e))])})),t._l(t.detailInfo["tmpTotalAmount"],(function(e,n){return s("td",{key:n+"tmp_2"},[t._v(t._s(e))])}))],2)],2)]),s("el-row",{staticClass:"footer_info",attrs:{type:"flex",gutter:20}},[s("el-col",{attrs:{span:4}},[t._v("制单人："+t._s(t.detailInfo.creatorName))]),s("el-col",{attrs:{span:4}},[t._v("审核人：xxx")])],1)],1)])},b=[function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("tr",[s("th",{attrs:{rowspan:"2",width:"220"}},[t._v("摘要")]),s("th",{attrs:{rowspan:"2"}},[t._v("会计科目")]),s("th",{attrs:{colspan:"13"}},[t._v("借方金额")]),s("th",{attrs:{colspan:"13"}},[t._v("贷方金额")])])},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("tr",[s("td",[t._v("百")]),s("td",[t._v("十")]),s("td",[t._v("亿")]),s("td",[t._v("千")]),s("td",[t._v("百")]),s("td",[t._v("十")]),s("td",[t._v("万")]),s("td",[t._v("千")]),s("td",[t._v("百")]),s("td",[t._v("十")]),s("td",[t._v("元")]),s("td",[t._v("角")]),s("td",[t._v("分")]),s("td",[t._v("百")]),s("td",[t._v("十")]),s("td",[t._v("亿")]),s("td",[t._v("千")]),s("td",[t._v("百")]),s("td",[t._v("十")]),s("td",[t._v("万")]),s("td",[t._v("千")]),s("td",[t._v("百")]),s("td",[t._v("十")]),s("td",[t._v("元")]),s("td",[t._v("角")]),s("td",[t._v("分")])])}],f={mixins:[c["a"]],data(){return{detailInfo:{},records:[],curIdx:0,total:0}},props:{curInfo:Object},watch:{curInfo:{handler(t){let{item:e,idx:s,total:n,records:i}=t;this.total=n,this.curIdx=s,i.forEach(t=>{this._translateTableData(t)}),this.records=JSON.parse(JSON.stringify(i)),this.detailInfo=this.records[this.curIdx]},immediate:!0}},created(){},mounted(){},methods:{handleTogo(t){let{id:e}=t;Object(o["n"])({voucherId:e}).then(t=>{const{data:{records:s=[]}}=t;let n="";const i=s[0].isIncInvoice,a=s[0].isVatInvoice,o=s[0].isSalInvoice;console.log(i,a,o),n=a?o?this.$router.resolve({path:"/pool/sales",query:{voucherId:e}}):this.$router.resolve({path:"/pool/income",query:{voucherId:e,type:"vat"}}):this.$router.resolve({path:"/pool/income",query:{voucherId:e,type:"other"}}),window.open(n.href,"_blank")})},handleFindItem(t){if("prev"==t){if(0==this.curIdx)return this.toast("已经是第一张了！","warning");this.curIdx--}if("next"==t){if(this.curIdx==this.total)return this.toast("已经是最后一张了！","warning");this.curIdx++}this.detailInfo=this.records[this.curIdx]},_translateTableData(t){let e=JSON.parse(JSON.stringify(t["items"]));e.forEach(t=>{if(null==t.debitAmount)t.debitAmount=["","","","","","","","","","","","",""];else{t.debitAmount=t.debitAmount.toFixed(2).toString();let e=t.debitAmount.split("");e=e.filter(t=>"."!=t);let s=[];for(let t=0;t<13-e.length;t++)s=["",...s];t.debitAmount=[...s,...e]}if(null==t.creditAmount)t.creditAmount=["","","","","","","","","","","","",""];else{t.creditAmount=t.creditAmount.toFixed(2).toString();let e=t.creditAmount.split("");e=e.filter(t=>"."!=t);let s=[];for(let t=0;t<13-e.length;t++)s=["",...s];t.creditAmount=[...s,...e]}});let s=t.totalAmount;if(null!=s){s=s.toFixed(2).toString(),s=s.split(""),s=s.filter(t=>"."!=t);let e=[];for(let t=0;t<13-s.length;t++)e=["",...e];s=[...e,...s],t.tmpTotalAmount=s}t.items=e}}},y=f,g=(s("9678"),Object(p["a"])(y,v,b,!1,null,"79f59848",null)),C=g.exports,j={name:"logs",mixins:[c["g"],c["a"]],components:{Guide:_,Detail:C},data(){return{delVisiable:!1,isNeed:!1,curInfo:{},curCmps:"Detail",isShowGuide:!1,curCon:"按凭证日期倒序",commandList:[{value:0,label:"按凭证日期正序"},{value:1,label:"按凭证日期倒序"},{value:2,label:"按凭证编码正序"},{value:3,label:"按凭证编码倒序"}],queryParams:{page:1,size:15,bizType:"",periodNo:"",voucherNo:"",voucherStatus:"",ids:"",sort:1},records:[],total:0,paging:{total:0,size:15,current:1},pageSizes:[15,30,50,100],visiable:!1,options:[{value:"YTS",label:"已推送"},{value:"WTS",label:"未推送"}],types:[{value:"SI",label:"销项"},{value:"II",label:"进项"}],isCheckedAll:!1}},computed:{isDisableBtn(){return!this.records.some(t=>t.isChecked)}},created(){this.getList()},methods:{handleDelDialog(){Object(a["r"])(this.queryParams).then(t=>{t.success&&(this.delVisiable=!1,this.$message({message:"操作成功",type:"success"}),this.queryParams.ids="",this.getList())})},changeCmps(t){let e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";this.isShowGuide=!0,this.curCmps=t,"Detail"==t&&(this.curInfo={item:JSON.parse(JSON.stringify(this.records[e])),records:JSON.parse(JSON.stringify(this.records)),idx:e,total:this.records.length-1})},handleCommand(t){const{value:e,label:s}=JSON.parse(t);this.curCon=s,this.queryParams.sort=e,this.getList()},handleTogo(t){let{id:e}=t;Object(o["n"])({voucherId:e}).then(t=>{const{data:{records:s=[]}}=t;let n="";const i=s[0].isIncInvoice,a=s[0].isVatInvoice,o=s[0].isSalInvoice;console.log(i,a,o),n=a?o?this.$router.resolve({path:"/pool/sales",query:{voucherId:e}}):this.$router.resolve({path:"/pool/income",query:{voucherId:e,type:"vat"}}):this.$router.resolve({path:"/pool/income",query:{voucherId:e,type:"other"}}),window.open(n.href,"_blank")})},handleBatch(t){let e=this.records.map(t=>t.isChecked?t.id:"");switch(e=e.filter(t=>""!=t),this.queryParams.ids=e,t){case"push":Object(a["v"])(this.queryParams).then(t=>{if(-1==t.code)return this.toast(t.message,"warning");t.success&&(this.$message({message:"操作成功",type:"success"}),this.queryParams.ids="",this.getList())});break;case"update":Object(a["w"])(this.queryParams).then(t=>{t.success&&(this.$message({message:"操作成功",type:"success"}),this.queryParams.ids="",this.getList())});break;case"del":this.delVisiable=!0;break;default:break}},handleItem(t,e){switch(this.queryParams.ids=[t.id],e){case"push":Object(a["v"])(this.queryParams).then(t=>{if(-1==t.code)return this.toast(t.message,"warning");t.success&&(this.$message({message:"操作成功",type:"success"}),this.queryParams.ids="",this.getList())});break;case"update":Object(a["w"])(this.queryParams).then(t=>{t.success&&this.$message({message:"操作成功",type:"success"}),this.queryParams.ids="",this.getList()});break;case"del":this.records.forEach(t=>t.popVisible=!1),Object(a["t"])(t.id).then(t=>{t.success&&(this.toast("操作成功"),this.queryParams.ids="",this.getList())});break;default:break}},handleChooseAll(t){this.isCheckedAll=t,this.records=this.isCheckedAll?this.records.map(t=>(t.isChecked=!0,t)):this.records.map(t=>(t.isChecked=!1,t))},handleItemCheked(){this.isCheckedAll=this.records.every(t=>t.isChecked)},getList(){this.isCheckedAll=!1,Object(a["u"])(this.queryParams).then(t=>{let{success:e,data:s}=t;const{total:n,records:i}=s;e&&(i.forEach(t=>{if(t.isChecked=!1,t.popVisible=!1,t["items"]){const e=t["items"];t.totalDAmount=e.reduce((t,e)=>t+e.debitAmount,0),t.totalCAmount=e.reduce((t,e)=>t+e.creditAmount,0),t.totalAmount=t.totalDAmount}}),this.records=i,this.total=n)})},handleQuery(){this.queryParams.page=1,this.getList()},resetQuery(){this.queryParams={page:1,size:15,bizType:"",periodNo:"",voucherNo:"",voucherStatus:"",sort:1},this.curCon="按凭证日期倒序",this.getList()},handleImport(){this.$message({message:"恭喜你，这是一条成功消息",type:"success"})},handleUpdate(){this.$message.error("错了哦，这是一条错误消息")},handleTableOpt(t,e){console.log(t,e)},handleSizeChange(t){this.queryParams.page=1,this.queryParams.size=t,this.getList()},handleCurrentChange(t){this.queryParams.page=t,this.getList()},handleDialog(){this.$confirm("哈哈哈哈","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{}).catch(()=>{this.toast("取消清空","warning")})}}},O=j,k=(s("5b93"),Object(p["a"])(O,n,i,!1,null,"1aabe640",null));e["default"]=k.exports},c1a9:function(t,e,s){t.exports=s.p+"static/img/nodata@2x.60ba468e.png"},c703:function(t,e,s){"use strict";s("56c1")},cf6b:function(t,e,s){"use strict";s.d(e,"a",(function(){return i})),s.d(e,"b",(function(){return a})),s.d(e,"c",(function(){return o})),s.d(e,"u",(function(){return c})),s.d(e,"v",(function(){return r})),s.d(e,"w",(function(){return l})),s.d(e,"t",(function(){return u})),s.d(e,"r",(function(){return d})),s.d(e,"x",(function(){return h})),s.d(e,"A",(function(){return p})),s.d(e,"z",(function(){return m})),s.d(e,"q",(function(){return _})),s.d(e,"e",(function(){return v})),s.d(e,"d",(function(){return b})),s.d(e,"k",(function(){return f})),s.d(e,"g",(function(){return y})),s.d(e,"j",(function(){return g})),s.d(e,"m",(function(){return C})),s.d(e,"f",(function(){return j})),s.d(e,"i",(function(){return O})),s.d(e,"o",(function(){return k})),s.d(e,"h",(function(){return x})),s.d(e,"n",(function(){return w})),s.d(e,"y",(function(){return I})),s.d(e,"p",(function(){return S})),s.d(e,"s",(function(){return A})),s.d(e,"l",(function(){return q}));var n=s("8e44");const i=t=>Object(n["e"])("/vou/config/get",t).then(t=>t),a=t=>Object(n["f"])("/vou/config/save",t).then(t=>t),o=t=>Object(n["f"])("/voucher/accounts/page",t).then(t=>t),c=t=>Object(n["e"])("/vou/voucher/list",t).then(t=>t),r=t=>Object(n["f"])("/vou/voucher/push",t).then(t=>t),l=t=>Object(n["f"])("/vou/voucher/sync",t).then(t=>t),u=t=>Object(n["b"])("/vou/voucher/"+t).then(t=>t),d=t=>Object(n["b"])("/vou/voucher/batch",t).then(t=>t),h=t=>Object(n["e"])("/voucher/tmpl/list",t).then(t=>t),p=t=>Object(n["e"])("/voucher/tmpl/all",t).then(t=>t),m=t=>Object(n["f"])("/voucher/tmpl/voucherTmplItemUpdate",t).then(t=>t),_=t=>Object(n["f"])("/voucher/tmpl/voucherTmplAdd",t).then(t=>t),v=t=>Object(n["f"])("/voucher/accounts/getVoucherAccounts",t).then(t=>t),b=t=>Object(n["e"])("/project/tree",t).then(t=>t),f=t=>Object(n["e"])("/project/query",t).then(t=>t),y=t=>Object(n["e"])("/project/all",t).then(t=>t),g=t=>Object(n["f"])("/project/import",t).then(t=>t),C=t=>Object(n["f"])("/project/push",t).then(t=>t),j=t=>Object(n["f"])("/project/add",t).then(t=>t),O=t=>Object(n["g"])("/project/update",t).then(t=>t),k=t=>Object(n["e"])("/project/selectProject/"+t).then(t=>t),x=t=>Object(n["b"])("/project/delete/"+t).then(t=>t),w=()=>Object(n["f"])("/vou/project/sync").then(t=>t),I=t=>Object(n["b"])("/voucher/tmpl/voucherTmplDel?id="+t).then(t=>t),S=()=>Object(n["f"])("/voucher/accounts/syncAccounts").then(t=>t),A=t=>Object(n["f"])("/voucher/build",t).then(t=>t),q=t=>Object(n["f"])("/invoice/project",t).then(t=>t)}}]);
//# sourceMappingURL=chunk-10a67b28.f934cdb6.js.map