From fb0ec7cb813d74d62f57e880f3b2ba1cf6770530 Mon Sep 17 00:00:00 2001 From: binbin_pan Date: Mon, 17 Jun 2024 18:02:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=90=9C=E7=B4=A2=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sgzb-ui/src/components/FormModel/index.vue | 1 + .../claimAndRefund/return/returnApplyByCq.vue | 3 ++- .../src/views/claimAndRefund/return/tree.vue | 9 ++++++++- .../secondStore/outStoreBook.vue | 2 ++ .../cost/csotSettlement/costApplyList.vue | 3 +-- .../src/views/cost/csotSettlement/costList.vue | 1 - sgzb-ui/src/views/repairTest/repair/tree.vue | 18 +++++++++++++----- sgzb-ui/src/views/store/tools/accessory.vue | 2 +- .../warehouseManage/machinery/parts/index.vue | 1 + 9 files changed, 29 insertions(+), 11 deletions(-) diff --git a/sgzb-ui/src/components/FormModel/index.vue b/sgzb-ui/src/components/FormModel/index.vue index 742b699c..00621f8f 100644 --- a/sgzb-ui/src/components/FormModel/index.vue +++ b/sgzb-ui/src/components/FormModel/index.vue @@ -44,6 +44,7 @@ :show-all-levels="false" @change="casCadeChange" clearable + filterable style="width: 240px" /> diff --git a/sgzb-ui/src/views/claimAndRefund/return/tree.vue b/sgzb-ui/src/views/claimAndRefund/return/tree.vue index 1d40b846..7f9f7ab4 100644 --- a/sgzb-ui/src/views/claimAndRefund/return/tree.vue +++ b/sgzb-ui/src/views/claimAndRefund/return/tree.vue @@ -19,6 +19,7 @@ highlight-current @node-click="handleNodeClick" :props="defaultProps" + :filter-node-method="filterNode" > @@ -47,7 +48,9 @@ export default { } }, watch: { - + inputValue(val) { + this.$refs.tree.filter(val); + } }, data() { return { @@ -85,6 +88,10 @@ export default { this.inputValue = e.label this.$emit('changeId', e.id) this.ishowTree = false + }, + filterNode(value, data) { + if (!value) return true; + return data.label.indexOf(value) !== -1; } } diff --git a/sgzb-ui/src/views/claimAndRefund/secondStore/outStoreBook.vue b/sgzb-ui/src/views/claimAndRefund/secondStore/outStoreBook.vue index 65d6f151..6c5b20b6 100644 --- a/sgzb-ui/src/views/claimAndRefund/secondStore/outStoreBook.vue +++ b/sgzb-ui/src/views/claimAndRefund/secondStore/outStoreBook.vue @@ -235,6 +235,8 @@ export default { typeId: undefined, keyword: '', }, + typeList: [], + equipmentTypeList: [], } }, created() { diff --git a/sgzb-ui/src/views/cost/csotSettlement/costApplyList.vue b/sgzb-ui/src/views/cost/csotSettlement/costApplyList.vue index 180138a0..64920045 100644 --- a/sgzb-ui/src/views/cost/csotSettlement/costApplyList.vue +++ b/sgzb-ui/src/views/cost/csotSettlement/costApplyList.vue @@ -202,7 +202,6 @@ export default { // 工程数据 projectList: [], statusList: [ - { id: '0', name: '请选择' }, { id: '1', name: '未结算' }, { id: '2', name: '已结算' }, { id: '3', name: '待审核' }, @@ -220,7 +219,7 @@ export default { pageNum: 1, pageSize: 10, keyWord: undefined, - sltStatus: '0', + sltStatus: '', unitId: '', projectId: '', }, diff --git a/sgzb-ui/src/views/cost/csotSettlement/costList.vue b/sgzb-ui/src/views/cost/csotSettlement/costList.vue index b1f677e7..fa731d5e 100644 --- a/sgzb-ui/src/views/cost/csotSettlement/costList.vue +++ b/sgzb-ui/src/views/cost/csotSettlement/costList.vue @@ -196,7 +196,6 @@ export default { // 工程数据 projectList: [], statusList: [ - { id: '', name: '请选择' }, { id: '0', name: '待审核' }, { id: '1', name: '审核通过' }, { id: '2', name: '审核驳回' }, diff --git a/sgzb-ui/src/views/repairTest/repair/tree.vue b/sgzb-ui/src/views/repairTest/repair/tree.vue index 1d40b846..2824ea06 100644 --- a/sgzb-ui/src/views/repairTest/repair/tree.vue +++ b/sgzb-ui/src/views/repairTest/repair/tree.vue @@ -19,6 +19,7 @@ highlight-current @node-click="handleNodeClick" :props="defaultProps" + :filter-node-method="filterNode" > @@ -63,11 +64,14 @@ export default { }, mounted() { }, - // watch: { - // name: function () { - // this.inputValue = this.name - // } - // }, + watch: { + // name: function () { + // this.inputValue = this.name + // } + inputValue(val) { + this.$refs.tree.filter(val); + } + }, methods: { inputFocus() { if (this.ishowTree == true) { @@ -85,6 +89,10 @@ export default { this.inputValue = e.label this.$emit('changeId', e.id) this.ishowTree = false + }, + filterNode(value, data) { + if (!value) return true; + return data.label.indexOf(value) !== -1; } } diff --git a/sgzb-ui/src/views/store/tools/accessory.vue b/sgzb-ui/src/views/store/tools/accessory.vue index 502a8437..2de062d4 100644 --- a/sgzb-ui/src/views/store/tools/accessory.vue +++ b/sgzb-ui/src/views/store/tools/accessory.vue @@ -61,7 +61,7 @@ - diff --git a/sgzb-ui/src/views/warehouseManage/machinery/parts/index.vue b/sgzb-ui/src/views/warehouseManage/machinery/parts/index.vue index 10a525f8..d7aff3e8 100644 --- a/sgzb-ui/src/views/warehouseManage/machinery/parts/index.vue +++ b/sgzb-ui/src/views/warehouseManage/machinery/parts/index.vue @@ -156,6 +156,7 @@ v-model="form.currentId" :options="deptOptions" :disabled="isEdit" + filterable :props="{ expandTrigger: 'hover', label: 'label',