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){