From d038d411901e563c56efca515f06634000f50ccc Mon Sep 17 00:00:00 2001 From: jishenghua <752718920@qq.com> Date: Sat, 27 Sep 2025 22:39:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BC=9A=E5=91=98=E3=80=81?= =?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 --- .../src/views/bill/dialog/HistoryBillList.vue | 36 +++++++++++++++++- .../views/financial/dialog/WaitNeedList.vue | 37 ++++++++++++++++++- 2 files changed, 70 insertions(+), 3 deletions(-) diff --git a/jshERP-web/src/views/bill/dialog/HistoryBillList.vue b/jshERP-web/src/views/bill/dialog/HistoryBillList.vue index a887f9a4..24f77832 100644 --- a/jshERP-web/src/views/bill/dialog/HistoryBillList.vue +++ b/jshERP-web/src/views/bill/dialog/HistoryBillList.vue @@ -22,7 +22,12 @@ - + +
+ + + +
{{ item.supplier }} @@ -104,6 +109,10 @@ mixins:[JeecgListMixin, mixinDevice], components: { BillDetail, + VNodes: { + functional: true, + render: (h, ctx) => ctx.props.vnodes, + } }, data () { return { @@ -113,7 +122,7 @@ organLabel: '', supplierList: [], queryParam: { - organId: "", + organId: undefined, number: "", materialParam: "", type: "", @@ -225,6 +234,29 @@ }) } }, + handleSearchSupplier(value) { + let that = this + if(this.setTimeFlag != null){ + clearTimeout(this.setTimeFlag); + } + if(this.organLabel === '供应商') { + this.setTimeFlag = setTimeout(() => { + findBySelectSup({ key: value }).then((res) => { + if (res) { + that.supplierList = res; + } + }) + }, 500) + } else if(this.organLabel === '客户') { + this.setTimeFlag = setTimeout(() => { + findBySelectCus({ key: value }).then((res) => { + if (res) { + that.supplierList = res; + } + }) + }, 500) + } + }, close () { this.$emit('close'); this.visible = false; diff --git a/jshERP-web/src/views/financial/dialog/WaitNeedList.vue b/jshERP-web/src/views/financial/dialog/WaitNeedList.vue index 04f2df02..92052937 100644 --- a/jshERP-web/src/views/financial/dialog/WaitNeedList.vue +++ b/jshERP-web/src/views/financial/dialog/WaitNeedList.vue @@ -23,7 +23,12 @@ + :dropdownMatchSelectWidth="false" showSearch allow-clear optionFilterProp="children" @search="handleSearchSupplier"> +
+ + + +
{{ item.supplier }} @@ -68,6 +73,12 @@ export default { name: 'WaitNeedList', mixins:[JeecgListMixin], + components: { + VNodes: { + functional: true, + render: (h, ctx) => ctx.props.vnodes, + } + }, data () { return { title: "操作", @@ -75,6 +86,7 @@ disableMixinCreated: true, organType: '', actionType: '', + setTimeFlag: null, supList: [], selectBillRows: [], queryParam: { @@ -152,6 +164,29 @@ }) } }, + handleSearchSupplier(value) { + let that = this + if(this.setTimeFlag != null){ + clearTimeout(this.setTimeFlag); + } + if(this.organType === '客户') { + this.setTimeFlag = setTimeout(() => { + findBySelectCus({ key: value }).then((res) => { + if (res) { + that.supList = res + } + }) + }, 500) + } else if(this.organType === '供应商') { + this.setTimeFlag = setTimeout(() => { + findBySelectSup({ key: value }).then((res) => { + if (res) { + that.supList = res; + } + }) + }, 500) + } + }, //选择供应商进行付款,选择客户进行收款 handleAction(record) { let type = ''