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
6.1 KiB

(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-08645bba"],{"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}}}},bad6:function(e,t,a){"use strict";a.r(t);a("cca6"),a("96cf");var n=a("1da1"),i=a("5530"),r=a("2f62"),s=a("1a86"),l=a("d554"),o={name:"ReimbursementOrder",mixins:[s.a],data:function(){return{sidebarMenu:["待处理","异常","已处理","全部"],isIndex:0,showBadge:!1,showFlag:!0,abnormalTotal:"",queryInfo:{name:"",vendor:"",submitName:"",checker:"",status:"",startNo:1,length:10},type:null,tableData:[],dialogFormVisible:!1,formLabelWidth:120,formField:{orgUnit1:"",reportName:"",userLoginId:"",status:"0"},selectDataList:[]}},computed:Object(i.a)({},Object(r.d)({statusList:function(e){return e.common.statusList}})),methods:{selectionState:function(e){this.isIndex=e;var t=this.isIndex;2==this.isIndex?t=9:3==this.isIndex&&(t=""),this.queryInfo.status=t,this.initTable()},exportFile:function(){},initTable:function(){var e=this,t=Object.assign({},this.queryInfo);Object(l.f)(t).then((function(t){e.tableData=t.result.data,e.total=t.result.pagination.total}))},getAbnormalTotal:function(){var e=this;this.status=1;var t=Object.assign({},this.queryInfo);Object(l.f)(t).then((function(t){e.abnormalTotal=t.result.pagination.total}))},handleSizeChange:function(e){this.queryInfo.length=e,this.initTable()},handleCurrentChange:function(e){this.queryInfo.startNo=e,this.initTable()},reset:function(){var e=this.queryInfo,t=e.length,a=e.startNo;this.queryInfo={name:"",vendor:"",submitName:"",checker:"",status:"",startNo:a,length:t}},goFeeLine:function(e){this.$router.push({name:"payLine",query:{id:e.id}})},automaticCheck:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=3,Object(l.a)(e.isIndex);case 3:200===(a=t.sent).status?e.$message.success(a.message):e.$message.error(a.message);case 5:case"end":return t.stop()}}),t)})))()}},mounted:function(){var e=this;this.getAbnormalTotal(),setTimeout((function(){e.initTable()}),50)}},u=(a("e764"),a("2877")),c=Object(u.a)(o,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"payFormMain"},[a("SidebarList",{attrs:{sidebarMenu:e.sidebarMenu,isIndex:e.isIndex,showBadge:e.showBadge,showFlag:e.showFlag,abnormalTotal:e.abnormalTotal},on:{buttonClick:e.selectionState}}),a("div",{staticClass:"ReimbursementOrder 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:"name",field:"queryInfo",width:"200","label-width":"100",defaultValue:e.queryInfo.name}}),a("FeesInput",{attrs:{santakLabel:"供应商",fieldName:"vendor",field:"queryInfo",width:"200","label-width":"100",defaultValue:e.queryInfo.vendor}}),a("FeesInput",{attrs:{santakLabel:"提交人",fieldName:"submitName",field:"queryInfo",width:"200",labelWidth:"100",defaultValue:e.queryInfo.submitName}}),a("div",{staticClass:"d-flex"},[a("FeesButton",{attrs:{text:"搜索",icon:"el-icon-search"},on:{buttonClick:e.initTable}}),a("FeesButton",{attrs:{text:"重置",icon:"el-icon-refresh"},on:{buttonClick:e.reset}})],1)],1)]),a("div",{staticClass:"d-flex",staticStyle:{"margin-top":"20px"}},[a("FeesButton",{directives:[{name:"show",rawName:"v-show",value:0==e.isIndex||1==e.isIndex,expression:"isIndex == 0 || isIndex == 1"}],attrs:{text:"自动审核",icon:"el-icon-search"},on:{buttonClick:e.automaticCheck}})],1),a("div",{staticClass:"bg-fff p-left-2",staticStyle:{"min-height":"500px"}},[a("div",{staticClass:"m-bottom-2 p-top-1 d-flex"}),a("div",{},[a("el-table",{ref:"ruleForm",staticStyle:{width:"100%"},attrs:{data:e.tableData,border:""}},[a("el-table-column",{attrs:{prop:"businessCompany",label:"业务公司","header-align":"center",width:"180",align:"center"}}),a("el-table-column",{attrs:{label:"单据编号","header-align":"center",width:"180",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"cursor c-red",staticStyle:{"text-decoration":"underline"},on:{click:function(a){return e.goFeeLine(t.row)}}},[e._v(" "+e._s(t.row.requestId)+" ")])]}}])}),a("el-table-column",{attrs:{prop:"name",label:"单据名称",width:"100","header-align":"center",align:"center"}}),a("el-table-column",{attrs:{prop:"vendor",label:"供应商",width:"220","header-align":"center",align:"center"}}),a("el-table-column",{attrs:{prop:"type",label:"类型","header-align":"center",width:"200",align:"center"}}),a("el-table-column",{attrs:{prop:"currency",label:"币种",width:"100","header-align":"center",align:"center"}}),a("el-table-column",{attrs:{prop:"amount",label:"金额",width:"150","header-align":"center",align:"center"}}),a("el-table-column",{attrs:{prop:"submitName",label:"提交人",width:"80","header-align":"center",align:"center"}}),a("el-table-column",{attrs:{prop:"submitDate",label:"提交日期",width:"140","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(e._f("timeFormat")(t.row.submitDate))+" ")]}}])}),a("el-table-column",{attrs:{prop:"status",label:"处理状态",width:"120","header-align":"center",align:"center"}})],1)],1),a("div",{staticClass:"m-top-4"},[a("el-pagination",{attrs:{background:"","current-page":e.queryInfo.startNo,"page-size":e.queryInfo.length,"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,"startNo",t)},"update:current-page":function(t){return e.$set(e.queryInfo,"startNo",t)}}})],1)])])],1)}),[],!1,null,"3d45ced7",null);t.default=c.exports},dee5:function(e,t,a){},e764:function(e,t,a){"use strict";var n=a("dee5");a.n(n).a}}]);