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
16 KiB
1 lines
16 KiB
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-985524ae"],{"1a86":function(e,t,n){"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}}}},3048:function(e,t,n){"use strict";var a=n("b032");n.n(a).a},"7b4b":function(e,t,n){},b032:function(e,t,n){},bb75:function(e,t,n){"use strict";n.d(t,"n",(function(){return r})),n.d(t,"h",(function(){return i})),n.d(t,"C",(function(){return s})),n.d(t,"D",(function(){return u})),n.d(t,"A",(function(){return o})),n.d(t,"e",(function(){return c})),n.d(t,"d",(function(){return l})),n.d(t,"t",(function(){return d})),n.d(t,"c",(function(){return p})),n.d(t,"z",(function(){return m})),n.d(t,"I",(function(){return f})),n.d(t,"s",(function(){return h})),n.d(t,"G",(function(){return b})),n.d(t,"b",(function(){return g})),n.d(t,"F",(function(){return y})),n.d(t,"E",(function(){return T})),n.d(t,"o",(function(){return I})),n.d(t,"x",(function(){return v})),n.d(t,"r",(function(){return w})),n.d(t,"k",(function(){return x})),n.d(t,"u",(function(){return S})),n.d(t,"m",(function(){return N})),n.d(t,"j",(function(){return O})),n.d(t,"g",(function(){return j})),n.d(t,"y",(function(){return E})),n.d(t,"p",(function(){return k})),n.d(t,"v",(function(){return C})),n.d(t,"B",(function(){return q})),n.d(t,"f",(function(){return G})),n.d(t,"a",(function(){return A})),n.d(t,"w",(function(){return _})),n.d(t,"H",(function(){return P})),n.d(t,"l",(function(){return L})),n.d(t,"i",(function(){return D})),n.d(t,"q",(function(){return H}));n("99af");var a=n("284b"),r=function(e){return Object(a.a)({url:"manager/payment/listSupplierHeader",method:"GET",params:e})},i=function(e){return Object(a.a)({url:"manager/payment/getCompOrg?userId=".concat(e),method:"GET"})},s=function(e){return Object(a.a)({url:"manager/payment/getSupplierList",method:"GET",params:e})},u=function(e){return Object(a.a)({url:"manager/payment/getUserList",method:"GET",params:e})},o=function(e){return Object(a.a)({url:"manager/payment/insert",method:"POST",data:e})},c=function(e){return Object(a.a)({url:"manager/payment/update",method:"PUT",data:e})},l=function(e){return Object(a.a)({url:"manager/payment/delete",method:"POST",params:e})},d=function(e){return Object(a.a)({url:"manager/payment/order-list?orderNo=".concat(e),method:"GET"})},p=function(e){var t=e.ids,n=e.orderNo;return Object(a.a)({url:"manager/payment/delete-order?ids=".concat(t,"&orderNo=").concat(n),method:"POST"})},m=function(e){return Object(a.a)({url:"manager/payment/insert-order",method:"POST",data:e})},f=function(e){return Object(a.a)({url:"manager/payment//update-order",method:"POST",data:e})},h=function(e){return Object(a.a)({url:"manager/payment/order-items-list",method:"GET",params:e})},b=function(e){return Object(a.a)({url:"manager/payment/submit-match-list",method:"PUT",data:e})},g=function(e){return Object(a.a)({url:"manager/payment/delete-match",method:"POST",params:e})},y=function(e){return Object(a.a)({url:"manager/payment/submit",method:"POST",params:e})},T=function(e){return Object(a.a)({url:"manager/payment/recall",method:"POST",params:e})},I=function(e){return Object(a.a)({url:"manager/payment/listCompany",method:"GET",params:e})},v=function(){return Object(a.a)({url:"manager/payment/getPayTypeList",method:"GET"})},w=function(e){return Object(a.a)({url:"manager/payment/getMaterialList",method:"GET",params:e})},x=function(e){return Object(a.a)({url:"manager/payment/invoke-contract-list",method:"GET",params:e})},S=function(e){return Object(a.a)({url:"manager/payment/invoke-purchace-list",method:"GET",params:e})},N=function(e){return Object(a.a)({url:"manager/payment/invoke-receive-list",method:"GET",params:e})},O=function(e){return Object(a.a)({url:"manager/payment/invoke-brand-list",method:"GET",params:e})},j=function(){return Object(a.a)({url:"manager/payment/codeList",method:"GET"})},E=function(e){return Object(a.a)({url:"manager/payment/valueSetList",method:"GET",params:e})},k=function(e){return Object(a.a)({url:"manager/payment/listOrg",method:"GET",params:e})},C=function(){return Object(a.a)({url:"manager/payment/getSysConfig",method:"GET",params:{code:"SalaryAdmin"}})},q=function(e){return Object(a.a)({url:"manager/payment/match",method:"POST",params:e})},G=function(e){return Object(a.a)({url:"manager/payment/getBillName",method:"GET",params:e})},A=function(e){return Object(a.a)({url:"manager/payment/getMatchFlag",method:"GET",params:e})},_=function(e){return Object(a.a)({url:"manager/payment/getTransferUser",method:"GET",params:e})},P=function(e){return Object(a.a)({url:"manager/payment/transfer",method:"POST",params:e})},L=function(e){return Object(a.a)({url:"manager/payment/invoke-internal-list",method:"GET",params:e})},D=function(){return Object(a.a)({url:"manager/payment/getFlowType",method:"GET"})},H=function(e){return Object(a.a)({url:"manager/payment/getMatchFinFlag",method:"GET",params:e})}},f6ea:function(e,t,n){"use strict";n.r(t);n("7db0"),n("96cf");var a=n("1da1"),r=n("5530"),i=(n("b0c0"),n("a9e3"),n("1a86")),s=n("bb75"),u=n("2f62"),o=null,c={mixins:[i.a],data:function(){return{queryInfo:{billNumber:"",invoiceType:"",businessType:"",supplierName:"",status:0,pageNo:1,pageSize:10},businessOptions:[{label:"普通付款申请单",id:"普通付款申请单"},{label:"采购付款申请单",id:"采购付款申请单"},{label:"品牌服务&市场推广付款申请单",id:"品牌服务&市场推广付款申请单"}],dialogVisible:!1,businessTypeRadio:"",payTypeList:[]}},computed:Object(r.a)({},Object(u.d)("payApplicant",["isIndex"])),props:{tableData:Array,isShowSaveAndSubmit:Number,isShowNewPayLine:Number},beforeCreate:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=e,t.next=3,Object(s.x)();case 3:n=t.sent,o.payTypeList=n.result;case 5:case"end":return t.stop()}}),t)})))()},created:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:0==e.isIndex||6==e.isIndex?e.isToggleEdit=!1:e.isToggleEdit=!0;case 1:case"end":return t.stop()}}),t)})))()},components:{},methods:{newProcess:function(){this.dialogVisible=!0},chooseBusinessType:function(){this.businessTypeRadio?(this.dialogVisible=!1,this.$router.push({path:"payApplicantAdd",query:{type:"add",isShowSaveAndSubmit:this.isShowSaveAndSubmit,isShowNewPayLine:this.isShowNewPayLine,businessType:this.businessTypeRadio}})):this.$message.warning("请选择业务类型")},edit:function(e){var t=JSON.parse(JSON.stringify(e));this.$router.push({name:"payApplicantAdd",query:{type:"edit",isShowSaveAndSubmit:this.isShowSaveAndSubmit,isShowNewPayLine:this.isShowNewPayLine},params:{row:t}})},deleteMain:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:t.$emit("deleteMain",e);case 1:case"end":return n.stop()}}),n)})))()},businessTypeChoose:function(e){this.dialogVisible=!1,this.$router.push({path:"payApplicantAdd",query:{type:"add",isShowSaveAndSubmit:this.isShowSaveAndSubmit,isShowNewPayLine:this.isShowNewPayLine,businessType:e}})},searchHandle:function(){var e=this.queryInfo;e.status=this.isIndex,this.$emit("searchHandle",e)},reset:function(){this.queryInfo={billNumber:"",invoiceType:"",businessType:"",supplierName:"",status:this.isIndex,pageNo:1,pageSize:10}}},filters:{showPayType:function(e){var t;return null===(t=o.payTypeList.find((function(t){return t.code==e})))||void 0===t?void 0:t.name}}},l=(n("3048"),n("2877")),d=Object(l.a)(c,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"wrapper"},[n("div",{staticClass:"ReimbursementOrder bgfff"},[n("div",{staticClass:"bgc p-left-2"},[n("div",{staticClass:"d-flex a-center m-bottom-1"},[n("FeesInput",{attrs:{santakLabel:"发票类型",fieldName:"invoiceType",field:"queryInfo",width:"200","label-width":"100",defaultValue:e.queryInfo.invoiceType}}),n("FeesInput",{attrs:{santakLabel:"业务类型",fieldName:"businessType",field:"queryInfo",width:"200","label-width":"100",defaultValue:e.queryInfo.businessType}}),n("FeesInput",{attrs:{santakLabel:"供应商名称",fieldName:"supplierName",field:"queryInfo",width:"200",labelWidth:"100",defaultValue:e.queryInfo.supplierName}}),n("FeesInput",{attrs:{santakLabel:"单据编号",fieldName:"billNumber",field:"queryInfo",width:"200",labelWidth:"100",defaultValue:e.queryInfo.billNumber}}),n("div",{staticClass:"d-flex"},[n("FeesButton",{attrs:{text:"搜索",icon:"el-icon-search"},on:{buttonClick:e.searchHandle}}),n("FeesButton",{attrs:{text:"重置",icon:"el-icon-refresh"},on:{buttonClick:e.reset}})],1)],1)]),n("div",{directives:[{name:"show",rawName:"v-show",value:0==e.isIndex,expression:"isIndex == 0"}],staticStyle:{"margin-top":"20px","margin-bottom":"20px"}},[n("FeesButton",{attrs:{text:"新建流程",icon:"el-icon-search"},on:{buttonClick:e.newProcess}})],1),n("div",{staticClass:"d-flex",staticStyle:{"margin-top":"20px"}},[n("el-table",{ref:"ruleForm",staticStyle:{width:"100%"},attrs:{data:e.tableData,border:""}},[n("el-table-column",{attrs:{prop:"costCenter",label:"操作","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-link",{directives:[{name:"show",rawName:"v-show",value:0==e.isIndex||6==e.isIndex,expression:"isIndex == 0 || isIndex == 6"}],attrs:{type:"primary",underline:!1},on:{click:function(n){return e.edit(t.row)}}},[e._v("编辑")]),n("el-link",{directives:[{name:"show",rawName:"v-show",value:0==e.isIndex||6==e.isIndex,expression:"isIndex == 0 || isIndex == 6"}],attrs:{type:"danger",underline:!1},on:{click:function(n){return e.deleteMain(t.row)}}},[e._v("删除")]),n("el-link",{directives:[{name:"show",rawName:"v-show",value:0!=e.isIndex&&6!=e.isIndex,expression:"isIndex != 0 && isIndex != 6"}],attrs:{type:"primary",underline:!1},on:{click:function(n){return e.edit(t.row)}}},[e._v("查看")])]}}])}),0!=e.isIndex?n("el-table-column",{attrs:{label:"单据编号","header-align":"center",width:"180",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("div",[e._v(" "+e._s(t.row.billNumber)+" ")])]}}],null,!1,3341098009)}):e._e(),n("el-table-column",{attrs:{prop:"billName",label:"单据名称","header-align":"center",align:"center"}}),n("el-table-column",{attrs:{prop:"invoiceType",label:"发票类型","header-align":"center",align:"center"}}),n("el-table-column",{attrs:{prop:"businessType",label:"业务类型","header-align":"center",align:"center"}}),n("el-table-column",{attrs:{prop:"currency",label:"币种","header-align":"center",align:"center"}}),n("el-table-column",{attrs:{prop:"payDate",label:"约定/计划付款时间","header-align":"center",align:"center"}}),n("el-table-column",{attrs:{prop:"supplierName",label:"供应商名称","header-align":"center",align:"center"}}),n("el-table-column",{attrs:{prop:"payType",label:"付款方式","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[n("span",[e._v(e._s(e._f("showPayType")(a.payType)))])]}}])}),n("el-table-column",{attrs:{prop:"payAmount",label:"付款金额合计","header-align":"center",align:"center"}}),8==e.isIndex?n("el-table-column",{attrs:{prop:"statusStr",label:"单据状态","header-align":"center",align:"center"}}):e._e()],1)],1)]),n("el-dialog",{attrs:{title:"业务类型",visible:e.dialogVisible,width:"24%"},on:{"update:visible":function(t){e.dialogVisible=t}}},[n("el-radio-group",{on:{input:e.businessTypeChoose},model:{value:e.businessTypeRadio,callback:function(t){e.businessTypeRadio=t},expression:"businessTypeRadio"}},e._l(e.businessOptions,(function(t){return n("el-radio",{key:t.id,attrs:{label:t.label,border:""}},[e._v(e._s(t.id)+" ")])})),1),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"})],1)],1)}),[],!1,null,"54e4f63e",null).exports,p={mixins:[i.a],data:function(){return{sidebarMenu:["草稿箱","上级审批","行业财务主管2","出纳付款","发票匹配","行业财务主管3","驳回","归档","全部"],queryInfo:{owner:localStorage.getItem("userId"),billNumber:"",invoiceType:"",businessType:"",supplierName:"",status:0,pageNo:1,pageSize:10},tableData:[],total:0,isIndex:this.$store.state.payApplicant.isIndex,menuMap:[{index:0,status:0},{index:1,status:2},{index:2,status:4},{index:3,status:6},{index:4,status:8},{index:5,status:10},{index:6,status:99},{index:7,status:12},{index:8,status:""}]}},created:function(){var e=this,t=this.menuMap.find((function(t){return t.index==e.isIndex}));this.queryInfo.status=t.status,this.initTable()},components:{Form:d},computed:{},methods:Object(r.a)(Object(r.a)({},Object(u.c)({CHANGE_INDEX:"payApplicant/CHANGE_INDEX"})),{},{selectionState:function(e,t){switch(this.isIndex=e,0==this.isIndex||6==this.isIndex?this.isToggleEdit=!1:this.isToggleEdit=!0,t){case"草稿箱":this.queryInfo.status=0,this.initTable(),this.CHANGE_INDEX(0);break;case"上级审批":this.queryInfo.status=2,this.initTable(),this.CHANGE_INDEX(1);break;case"行业财务主管2":this.queryInfo.status=4,this.initTable(),this.CHANGE_INDEX(2);break;case"出纳付款":this.queryInfo.status=6,this.initTable(),this.CHANGE_INDEX(3);break;case"发票匹配":this.queryInfo.status=8,this.initTable(),this.CHANGE_INDEX(4);break;case"行业财务主管3":this.queryInfo.status=10,this.initTable(),this.CHANGE_INDEX(5);break;case"驳回":this.queryInfo.status=99,this.initTable(),this.CHANGE_INDEX(6);break;case"归档":this.queryInfo.status=12,this.initTable(),this.CHANGE_INDEX(7);break;case"全部":this.queryInfo.status="",this.initTable(),this.CHANGE_INDEX(8)}},initTable:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(s.n)(e.queryInfo);case 2:n=t.sent,e.tableData=n.result.data,e.queryInfo.pageNo=n.result.pagination.pageNo,e.queryInfo.pageSize=n.result.pagination.pageSize,e.total=n.result.pagination.total;case 7:case"end":return t.stop()}}),t)})))()},deleteMain:function(e){var t=this;this.$confirm("是否删除该流程?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(a.a)(regeneratorRuntime.mark((function n(){var a,r;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return a={billId:e.billId},n.next=3,Object(s.d)(a);case 3:200==(r=n.sent).status?(t.$message.success("删除成功"),t.initTable()):t.$message.warning(r.message);case 5:case"end":return n.stop()}}),n)}))))},searchHandle:function(e){var t=this.menuMap.find((function(t){return t.index==e.status}));e.status=t.status,e.owner=localStorage.getItem("userId"),this.queryInfo=e,this.initTable()},reset:function(){},newProcess:function(){}})},m=(n("f7d1"),Object(l.a)(p,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"payApplicant"},[n("SidebarList",{attrs:{sidebarMenu:e.sidebarMenu,isIndex:e.isIndex},on:{buttonClick:e.selectionState}}),n("div",[n("Form",{attrs:{tableData:e.tableData},on:{deleteMain:e.deleteMain,searchHandle:e.searchHandle}})],1),n("div",{staticClass:"m-top-4 page"},[n("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),n("router-view")],1)}),[],!1,null,"6d860da6",null));t.default=m.exports},f7d1:function(e,t,n){"use strict";var a=n("7b4b");n.n(a).a}}]);
|