1 line
4.8 KiB
JavaScript
1 line
4.8 KiB
JavaScript
webpackJsonp([330],{Tb8G:function(t,e){},lpxz:function(t,e,a){"use strict";Object.defineProperty(e,"__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:""},time:"",pictLoading:!1,btnDelDisabled:!0,btnOtherDisabled:!0,rowIds:[],tableData:[],chooseUserVisible:!1,bankList:[],organizationList:[],depOptions:[],selectDeptId:"",chooseClientrVisible:!1,producePlan:{},producePlanVisible:!1}},created:function(){var t=this;document.onkeydown=function(e){"Enter"===e.key&&t.search()}},watch:{time:function(t){t?(this.search_data.startTime=t[0],this.search_data.endTime=t[1]):(this.search_data.startTime="",this.search_data.endTime="")}},mounted:function(){},methods:{getClientr:function(t){this.search_data.clientName=t.client_name,this.search_data.clientId=t.id},getList:function(){var t=this;this.pictLoading=!0,this.$api.initializationAPI.customerReconciliation(this.search_data).then(function(e){t.pictLoading=!1,e.data?(t.total=e.data.totalRows,t.tableData=e.data.datas?e.data.datas:[],t.tableData.forEach(function(t){t.date=/\d{4}-\d{1,2}-\d{1,2}/g.exec(t.date)})):(t.total=0,t.tableData=[])}).catch(function(e){t.pictLoading=!1,console.log(e)})},search:function(){this.search_data.startTime&&this.search_data.endTime&&this.search_data.clientId?(this.search_data.pageno=1,this.getList()):this.$message({message:"查询时必须选择客户及时间范围",type:"warning"})},handleCurrentChange:function(t){this.search_data.pageno=t,this.getList()},handleSizeChange:function(t){this.search_data.pagesize=t,this.getList()}}}),l={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"sys-task sys-box"},[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:t.search_data.clientName,valueId:t.search_data.clientId,chooseVisible:t.chooseClientrVisible},on:{"update:valueText":function(e){return t.$set(t.search_data,"clientName",e)},"update:value-text":function(e){return t.$set(t.search_data,"clientName",e)},"update:valueId":function(e){return t.$set(t.search_data,"clientId",e)},"update:value-id":function(e){return t.$set(t.search_data,"clientId",e)},"update:chooseVisible":function(e){t.chooseClientrVisible=e},"update:choose-visible":function(e){t.chooseClientrVisible=e}}})],1),t._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:t.time,callback:function(e){t.time=e},expression:"time"}})],1)],1),t._v(" "),a("div",{staticClass:"form_item_btn_out"},[a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.search()}}},[t._v("查询")])],1)],1)])],1),t._v(" "),a("div",{staticClass:"sys-table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.pictLoading,expression:"pictLoading"}],ref:"tb",attrs:{border:"",data:t.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":""}}),t._v(" "),a("el-table-column",{attrs:{prop:"code",align:"center",label:"单据编号","show-overflow-tooltip":""}}),t._v(" "),a("el-table-column",{attrs:{prop:"clientName",align:"center",label:"客户名称","show-overflow-tooltip":""}}),t._v(" "),a("el-table-column",{attrs:{prop:"typeName",align:"center",label:"单据类型","show-overflow-tooltip":""}}),t._v(" "),a("el-table-column",{attrs:{prop:"oughtAmount",align:"center",label:"应收金额(元)","show-overflow-tooltip":""}}),t._v(" "),a("el-table-column",{attrs:{prop:"receivedAmount",align:"center",label:"收款金额(元)","show-overflow-tooltip":""}}),t._v(" "),a("el-table-column",{attrs:{prop:"remainingAmount",align:"center",label:"余额(元)","show-overflow-tooltip":""}})],1)],1),t._v(" "),a("div",{staticClass:"sys-pagination"},[a("el-pagination",{attrs:{"current-page":t.search_data.pageno,"page-sizes":t.pageSizes,"page-size":t.search_data.pagesize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1),t._v(" "),a("DialogChooseSingleClientr",{attrs:{visible:t.chooseClientrVisible},on:{"update:visible":function(e){t.chooseClientrVisible=e},change:t.getClientr}})],1)},staticRenderFns:[]};var o=a("VU/8")(s,l,!1,function(t){a("Tb8G")},null,null);e.default=o.exports}}); |