From 289123df80a71837e224908f468aacbe1c6afce9 Mon Sep 17 00:00:00 2001 From: jishenghua <752718920@qq.com> Date: Fri, 26 Sep 2025 23:48:54 +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=BE=9B=E5=BA=94=E5=95=86=E5=92=8C=E5=AE=A2=E6=88=B7=E7=9A=84?= =?UTF-8?q?=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 --- jshERP-web/src/views/report/BuyInReport.vue | 27 +++++++++++++++++-- .../src/views/report/RetailOutReport.vue | 27 +++++++++++++++++-- jshERP-web/src/views/report/SaleOutReport.vue | 27 +++++++++++++++++-- 3 files changed, 75 insertions(+), 6 deletions(-) diff --git a/jshERP-web/src/views/report/BuyInReport.vue b/jshERP-web/src/views/report/BuyInReport.vue index 3b742c41..31364dc9 100644 --- a/jshERP-web/src/views/report/BuyInReport.vue +++ b/jshERP-web/src/views/report/BuyInReport.vue @@ -45,7 +45,12 @@ + :dropdownMatchSelectWidth="false" showSearch allow-clear optionFilterProp="children" @search="handleSearchSupplier"> +
+ + + +
{{ item.supplier }} @@ -160,7 +165,11 @@ name: "BuyInReport", mixins:[JeecgListMixin], components: { - JEllipsis + JEllipsis, + VNodes: { + functional: true, + render: (h, ctx) => ctx.props.vnodes, + } }, data () { return { @@ -190,6 +199,7 @@ orgaTree: [], categoryTree:[], realityPriceTotal: '', + setTimeFlag: null, tabKey: "1", pageName: 'buyInReport', // 默认索引 @@ -279,6 +289,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) + }, getDepotData() { getAction('/depot/findDepotByCurrentUser').then((res)=>{ if(res.code === 200){ diff --git a/jshERP-web/src/views/report/RetailOutReport.vue b/jshERP-web/src/views/report/RetailOutReport.vue index 1760f8c1..d2292c6c 100644 --- a/jshERP-web/src/views/report/RetailOutReport.vue +++ b/jshERP-web/src/views/report/RetailOutReport.vue @@ -45,7 +45,12 @@ + :dropdownMatchSelectWidth="false" showSearch allow-clear optionFilterProp="children" @search="handleSearchRetail"> +
+ + + +
{{ item.supplier }} @@ -160,7 +165,11 @@ name: "RetailOutReport", mixins:[JeecgListMixin], components: { - JEllipsis + JEllipsis, + VNodes: { + functional: true, + render: (h, ctx) => ctx.props.vnodes, + } }, data () { return { @@ -192,6 +201,7 @@ orgaTree: [], categoryTree:[], realityPriceTotal: '', + setTimeFlag: null, tabKey: "1", pageName: 'retailOutReport', // 默认索引 @@ -281,6 +291,19 @@ } }); }, + handleSearchRetail(value) { + let that = this + if(this.setTimeFlag != null){ + clearTimeout(this.setTimeFlag); + } + this.setTimeFlag = setTimeout(()=>{ + findBySelectRetail({key: value}).then((res) => { + if(res) { + that.supList = res; + } + }) + },500) + }, getDepotData() { getAction('/depot/findDepotByCurrentUser').then((res)=>{ if(res.code === 200){ diff --git a/jshERP-web/src/views/report/SaleOutReport.vue b/jshERP-web/src/views/report/SaleOutReport.vue index b59088b1..dd45f5b1 100644 --- a/jshERP-web/src/views/report/SaleOutReport.vue +++ b/jshERP-web/src/views/report/SaleOutReport.vue @@ -45,7 +45,12 @@ + :dropdownMatchSelectWidth="false" showSearch allow-clear optionFilterProp="children" @search="handleSearchCustomer"> +
+ + + +
{{ item.supplier }} @@ -160,7 +165,11 @@ name: "SaleOutReport", mixins:[JeecgListMixin], components: { - JEllipsis + JEllipsis, + VNodes: { + functional: true, + render: (h, ctx) => ctx.props.vnodes, + } }, data () { return { @@ -190,6 +199,7 @@ orgaTree: [], categoryTree:[], realityPriceTotal: '', + setTimeFlag: null, tabKey: "1", pageName: 'saleOutReport', // 默认索引 @@ -281,6 +291,19 @@ } }); }, + handleSearchCustomer(value) { + let that = this + if(this.setTimeFlag != null){ + clearTimeout(this.setTimeFlag); + } + this.setTimeFlag = setTimeout(()=>{ + findBySelectCus({key: value}).then((res) => { + if(res) { + that.supList = res; + } + }) + },500) + }, getDepotData() { getAction('/depot/findDepotByCurrentUser').then((res)=>{ if(res.code === 200){