1 line
5.8 KiB
JavaScript
1 line
5.8 KiB
JavaScript
webpackJsonp([443],{"9Qzm":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=a("ysqt"),n=a("iGlD"),s=(a("GKmE"),{components:{btnInput:i.a,DialogChooseSingleClientr:n.a},data:function(){return{total:0,pageSizes:[10,20,50],search_data:{pageno:1,pagesize:10,clientName:"",clientId:"",startTime:"",endTime:""},time:"",pictLoading:!1,btnDelDisabled:!0,btnOtherDisabled:!0,rowIds:[],tableData:[],chooseUserVisible:!1,bankList:[],organizationList:[],depOptions:[],selectDeptId:"",chooseClientrVisible:!1,producePlan:{},producePlanVisible:!1}},created:function(){var e=this;document.onkeydown=function(t){"Enter"===t.key&&e.search()}},watch:{time:function(e){e?(this.search_data.startTime=e[0],this.search_data.endTime=e[1]):(this.search_data.startTime="",this.search_data.endTime="")}},mounted:function(){},methods:{exportExcel:function(){delete this.search_data.pagesize,delete this.search_data.pageno,this.$api.initializationAPI.exportCustomerExcel(this.search_data).then(function(e){})},getClientr:function(e){this.search_data.clientName=e.client_name,this.search_data.clientId=e.id},getList:function(){var e=this;this.pictLoading=!0,this.$api.initializationAPI.customerReconciliationForBill(this.search_data).then(function(t){e.pictLoading=!1,t.data?(e.total=t.data.totalRows,e.tableData=t.data.datas?t.data.datas:[],e.tableData.forEach(function(e){e.date=/\d{4}-\d{1,2}-\d{1,2}/g.exec(e.date),e.paymentDate=/\d{4}-\d{1,2}-\d{1,2}/g.exec(e.paymentDate)})):(e.total=0,e.tableData=[])}).catch(function(t){e.pictLoading=!1,console.log(t)})},search:function(){this.search_data.startTime&&this.search_data.endTime&&this.search_data.clientId?(this.search_data.pageno=1,this.search_data.pagesize=10,this.getList()):this.$message({message:"查询时必须选择客户及时间范围",type:"warning"})},handleCurrentChange:function(e){this.search_data.pageno=e,this.getList()},handleSizeChange:function(e){this.search_data.pagesize=e,this.getList()}}}),o={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"sys-task sys-box"},[a("div",{staticClass:"sys-operate"},[a("el-button",{directives:[{name:"has",rawName:"v-has",value:"finance:customerReconciliationForBill:exportExcel",expression:"'finance:customerReconciliationForBill:exportExcel'"}],attrs:{type:"primary",disabled:!(this.search_data.startTime&&this.search_data.endTime&&this.search_data.clientId)},on:{click:function(t){return e.exportExcel()}}},[e._v("导出")])],1),e._v(" "),a("div",{staticClass:"sys-search"},[a("el-form",{staticClass:"form_item_search_out",attrs:{inline:""}},[a("div",{staticClass:"form_item_input_out"},[a("el-form-item",{staticClass:"form_item-inline is-required",staticStyle:{width:"33%"},attrs:{label:"客户"}},[a("btn-input",{attrs:{valueText:e.search_data.clientName,valueId:e.search_data.clientId,chooseVisible:e.chooseClientrVisible},on:{"update:valueText":function(t){return e.$set(e.search_data,"clientName",t)},"update:value-text":function(t){return e.$set(e.search_data,"clientName",t)},"update:valueId":function(t){return e.$set(e.search_data,"clientId",t)},"update:value-id":function(t){return e.$set(e.search_data,"clientId",t)},"update:chooseVisible":function(t){e.chooseClientrVisible=t},"update:choose-visible":function(t){e.chooseClientrVisible=t}}})],1),e._v(" "),a("el-form-item",{staticClass:"form_item-inline is-required",staticStyle:{width:"33%"},attrs:{label:"日期"}},[a("el-date-picker",{attrs:{type:"daterange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd HH:mm:ss","range-separator":"—","start-placeholder":"开始时间","end-placeholder":"结束时间"},model:{value:e.time,callback:function(t){e.time=t},expression:"time"}})],1)],1),e._v(" "),a("div",{staticClass:"form_item_btn_out"},[a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.search()}}},[e._v("查询")])],1)],1)])],1),e._v(" "),a("div",{staticClass:"sys-table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.pictLoading,expression:"pictLoading"}],ref:"tb",attrs:{border:"",data:e.tableData,"header-cell-style":{fontWeight:"normal",textAlign:"center",backgroundColor:"#eceff4",color:"#222"}}},[a("el-table-column",{attrs:{prop:"date",align:"center",label:"单据日期","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{prop:"code",align:"center",label:"单据编号","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{prop:"clientName",align:"center",label:"客户名称","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{prop:"typeName",align:"center",label:"单据类型","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{prop:"paymentDate",align:"center",label:"应付日期","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{prop:"expirationDays",align:"center",label:"超期天数","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{prop:"oughtAmount",align:"center",label:"应收金额(元)","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{prop:"receivedAmount",align:"center",label:"收款金额(元)","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{prop:"remainingAmount",align:"center",label:"余额(元)","show-overflow-tooltip":""}})],1)],1),e._v(" "),a("div",{staticClass:"sys-pagination"},[a("el-pagination",{attrs:{"current-page":e.search_data.pageno,"page-sizes":e.pageSizes,"page-size":e.search_data.pagesize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1),e._v(" "),a("DialogChooseSingleClientr",{attrs:{visible:e.chooseClientrVisible},on:{"update:visible":function(t){e.chooseClientrVisible=t},change:e.getClientr}})],1)},staticRenderFns:[]};var l=a("VU/8")(s,o,!1,function(e){a("dq9H")},null,null);t.default=l.exports},dq9H:function(e,t){}}); |