From 7bc55dd9fa5a4af538fc083e05db28bf927695dc Mon Sep 17 00:00:00 2001 From: jishenghua <752718920@qq.com> Date: Sat, 27 Sep 2025 15:41:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=8A=A5=E8=A1=A8=E4=B8=AD?= =?UTF-8?q?=E4=BC=9A=E5=91=98=E3=80=81=E4=BE=9B=E5=BA=94=E5=95=86=E5=92=8C?= =?UTF-8?q?=E5=AE=A2=E6=88=B7=E7=9A=84=E5=8A=A0=E8=BD=BD=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/report/CustomerAccount.vue | 37 +++++++++++++++---- jshERP-web/src/views/report/InDetail.vue | 31 ++++++++++++++-- .../src/views/report/InMaterialCount.vue | 31 ++++++++++++++-- jshERP-web/src/views/report/OutDetail.vue | 31 ++++++++++++++-- .../src/views/report/OutMaterialCount.vue | 31 ++++++++++++++-- jshERP-web/src/views/report/VendorAccount.vue | 27 +++++++++++++- 6 files changed, 163 insertions(+), 25 deletions(-) diff --git a/jshERP-web/src/views/report/CustomerAccount.vue b/jshERP-web/src/views/report/CustomerAccount.vue index 151f9f01..fcb68e4e 100644 --- a/jshERP-web/src/views/report/CustomerAccount.vue +++ b/jshERP-web/src/views/report/CustomerAccount.vue @@ -10,8 +10,13 @@ - + :dropdownMatchSelectWidth="false" showSearch allow-clear optionFilterProp="children" @search="handleSearchCustomer"> +
+ + + +
+ {{ item.supplier }}
@@ -148,7 +153,11 @@ mixins:[JeecgListMixin], components: { DebtAccountList, - JEllipsis + JEllipsis, + VNodes: { + functional: true, + render: (h, ctx) => ctx.props.vnodes, + } }, data () { return { @@ -172,9 +181,10 @@ pageSize: 11, pageSizeOptions: ['11', '21', '31', '101', '201'] }, - supList: [], + cusList: [], firstTotal: '', lastTotal: '', + setTimeFlag: null, tabKey: "1", pageName: 'customerAccount', // 默认索引 @@ -208,7 +218,7 @@ } }, created () { - this.initSupplier() + this.initCustomer() this.initColumnsSetting() }, methods: { @@ -219,14 +229,27 @@ param.pageSize = this.ipagination.pageSize-1; return param; }, - initSupplier() { + initCustomer() { let that = this; findBySelectCus({}).then((res)=>{ if(res) { - that.supList = res; + that.cusList = res; } }); }, + handleSearchCustomer(value) { + let that = this + if(this.setTimeFlag != null){ + clearTimeout(this.setTimeFlag); + } + this.setTimeFlag = setTimeout(()=>{ + findBySelectCus({key: value}).then((res) => { + if(res) { + that.cusList = res; + } + }) + },500) + }, onDateChange: function (value, dateString) { this.queryParam.beginTime=dateString[0] this.queryParam.endTime=dateString[1] diff --git a/jshERP-web/src/views/report/InDetail.vue b/jshERP-web/src/views/report/InDetail.vue index d591a822..5b50ae0d 100644 --- a/jshERP-web/src/views/report/InDetail.vue +++ b/jshERP-web/src/views/report/InDetail.vue @@ -50,7 +50,12 @@ + :dropdownMatchSelectWidth="false" showSearch allow-clear optionFilterProp="children" @search="handleSearchOrgan"> +
+ + + +
{{ item.supplier }} @@ -186,7 +191,11 @@ mixins:[JeecgListMixin], components: { BillDetail, - JEllipsis + JEllipsis, + VNodes: { + functional: true, + render: (h, ctx) => ctx.props.vnodes, + } }, data () { return { @@ -222,6 +231,7 @@ categoryTree:[], operNumberTotalStr: '0', allPriceTotalStr: '0', + setTimeFlag: null, tabKey: "1", pageName: 'inDetail', // 默认索引 @@ -265,7 +275,7 @@ }, created () { this.getDepotData() - this.initSupplier() + this.initOrgan() this.initUser() this.loadAllOrgaData() this.loadCategoryTreeData() @@ -308,7 +318,7 @@ this.loading = false; }) }, - initSupplier() { + initOrgan() { let that = this; findBySelectOrgan({}).then((res)=>{ if(res) { @@ -316,6 +326,19 @@ } }); }, + handleSearchOrgan(value) { + let that = this + if(this.setTimeFlag != null){ + clearTimeout(this.setTimeFlag); + } + this.setTimeFlag = setTimeout(()=>{ + findBySelectOrgan({key: value}).then((res) => { + if(res) { + that.organList = res; + } + }) + },500) + }, getDepotData() { getAction('/depot/findDepotByCurrentUser').then((res)=>{ if(res.code === 200){ diff --git a/jshERP-web/src/views/report/InMaterialCount.vue b/jshERP-web/src/views/report/InMaterialCount.vue index 45898886..b11f1875 100644 --- a/jshERP-web/src/views/report/InMaterialCount.vue +++ b/jshERP-web/src/views/report/InMaterialCount.vue @@ -45,7 +45,12 @@ + :dropdownMatchSelectWidth="false" showSearch allow-clear optionFilterProp="children" @search="handleSearchOrgan"> +
+ + + +
{{ item.supplier }} @@ -159,7 +164,11 @@ name: "InMaterialCount", mixins:[JeecgListMixin], components: { - JEllipsis + JEllipsis, + VNodes: { + functional: true, + render: (h, ctx) => ctx.props.vnodes, + } }, data () { return { @@ -191,6 +200,7 @@ categoryTree:[], numSumTotalStr: '0', priceSumTotalStr: '0', + setTimeFlag: null, tabKey: "1", pageName: 'inMaterialCount', // 默认索引 @@ -222,7 +232,7 @@ }, created () { this.getDepotData() - this.initSupplier() + this.initOrgan() this.loadAllOrgaData() this.loadCategoryTreeData() this.initColumnsSetting() @@ -264,7 +274,7 @@ this.loading = false; }) }, - initSupplier() { + initOrgan() { let that = this; findBySelectOrgan({}).then((res)=>{ if(res) { @@ -272,6 +282,19 @@ } }); }, + handleSearchOrgan(value) { + let that = this + if(this.setTimeFlag != null){ + clearTimeout(this.setTimeFlag); + } + this.setTimeFlag = setTimeout(()=>{ + findBySelectOrgan({key: value}).then((res) => { + if(res) { + that.organList = res; + } + }) + },500) + }, getDepotData() { getAction('/depot/findDepotByCurrentUser').then((res)=>{ if(res.code === 200){ diff --git a/jshERP-web/src/views/report/OutDetail.vue b/jshERP-web/src/views/report/OutDetail.vue index d3d7a83c..8239f4a0 100644 --- a/jshERP-web/src/views/report/OutDetail.vue +++ b/jshERP-web/src/views/report/OutDetail.vue @@ -50,7 +50,12 @@ + :dropdownMatchSelectWidth="false" showSearch allow-clear optionFilterProp="children" @search="handleSearchOrgan"> +
+ + + +
{{ item.supplier }} @@ -186,7 +191,11 @@ mixins:[JeecgListMixin], components: { BillDetail, - JEllipsis + JEllipsis, + VNodes: { + functional: true, + render: (h, ctx) => ctx.props.vnodes, + } }, data () { return { @@ -222,6 +231,7 @@ categoryTree:[], operNumberTotalStr: '0', allPriceTotalStr: '0', + setTimeFlag: null, tabKey: "1", pageName: 'outDetail', // 默认索引 @@ -265,7 +275,7 @@ }, created () { this.getDepotData() - this.initSupplier() + this.initOrgan() this.initUser() this.loadAllOrgaData() this.loadCategoryTreeData() @@ -308,7 +318,7 @@ this.loading = false; }) }, - initSupplier() { + initOrgan() { let that = this; findBySelectOrgan({}).then((res)=>{ if(res) { @@ -316,6 +326,19 @@ } }); }, + handleSearchOrgan(value) { + let that = this + if(this.setTimeFlag != null){ + clearTimeout(this.setTimeFlag); + } + this.setTimeFlag = setTimeout(()=>{ + findBySelectOrgan({key: value}).then((res) => { + if(res) { + that.organList = res; + } + }) + },500) + }, getDepotData() { getAction('/depot/findDepotByCurrentUser').then((res)=>{ if(res.code === 200){ diff --git a/jshERP-web/src/views/report/OutMaterialCount.vue b/jshERP-web/src/views/report/OutMaterialCount.vue index 412f567d..fa5ff495 100644 --- a/jshERP-web/src/views/report/OutMaterialCount.vue +++ b/jshERP-web/src/views/report/OutMaterialCount.vue @@ -45,7 +45,12 @@ + :dropdownMatchSelectWidth="false" showSearch allow-clear optionFilterProp="children" @search="handleSearchOrgan"> +
+ + + +
{{ item.supplier }} @@ -159,7 +164,11 @@ name: "OutMaterialCount", mixins:[JeecgListMixin], components: { - JEllipsis + JEllipsis, + VNodes: { + functional: true, + render: (h, ctx) => ctx.props.vnodes, + } }, data () { return { @@ -191,6 +200,7 @@ categoryTree:[], numSumTotalStr: '0', priceSumTotalStr: '0', + setTimeFlag: null, tabKey: "1", pageName: 'outMaterialCount', // 默认索引 @@ -222,7 +232,7 @@ }, created () { this.getDepotData() - this.initSupplier() + this.initOrgan() this.loadAllOrgaData() this.loadCategoryTreeData() this.initColumnsSetting() @@ -264,7 +274,7 @@ this.loading = false; }) }, - initSupplier() { + initOrgan() { let that = this; findBySelectOrgan({}).then((res)=>{ if(res) { @@ -272,6 +282,19 @@ } }); }, + handleSearchOrgan(value) { + let that = this + if(this.setTimeFlag != null){ + clearTimeout(this.setTimeFlag); + } + this.setTimeFlag = setTimeout(()=>{ + findBySelectOrgan({key: value}).then((res) => { + if(res) { + that.organList = res; + } + }) + },500) + }, getDepotData() { getAction('/depot/findDepotByCurrentUser').then((res)=>{ if(res.code === 200){ diff --git a/jshERP-web/src/views/report/VendorAccount.vue b/jshERP-web/src/views/report/VendorAccount.vue index 0a6da524..7d14a573 100644 --- a/jshERP-web/src/views/report/VendorAccount.vue +++ b/jshERP-web/src/views/report/VendorAccount.vue @@ -10,7 +10,12 @@ + :dropdownMatchSelectWidth="false" showSearch allow-clear optionFilterProp="children" @search="handleSearchSupplier"> +
+ + + +
{{ item.supplier }} @@ -148,7 +153,11 @@ mixins:[JeecgListMixin], components: { DebtAccountList, - JEllipsis + JEllipsis, + VNodes: { + functional: true, + render: (h, ctx) => ctx.props.vnodes, + } }, data () { return { @@ -175,6 +184,7 @@ supList: [], firstTotal: '', lastTotal: '', + setTimeFlag: null, tabKey: "1", pageName: 'vendorAccount', // 默认索引 @@ -227,6 +237,19 @@ } }); }, + handleSearchSupplier(value) { + let that = this + if(this.setTimeFlag != null){ + clearTimeout(this.setTimeFlag); + } + this.setTimeFlag = setTimeout(()=>{ + findBySelectSup({key: value}).then((res) => { + if(res) { + that.supList = res; + } + }) + },500) + }, onDateChange: function (value, dateString) { this.queryParam.beginTime=dateString[0] this.queryParam.endTime=dateString[1]