From dbfa630021b25516dee45ae71b4277bcf4aa6aa4 Mon Sep 17 00:00:00 2001 From: zhaowei <zhaowei> Date: 星期二, 22 七月 2025 20:42:48 +0800 Subject: [PATCH] 1、技术状态鉴定申请功能及流程 2、技术鉴定工单审批中检查明细展示限制条件调整 --- src/views/eam/equipment/modules/LxSearchEquipmentSelect.vue | 27 +++++++++++++++++++++++---- 1 files changed, 23 insertions(+), 4 deletions(-) diff --git a/src/views/eam/equipment/modules/LxSearchEquipmentSelect.vue b/src/views/eam/equipment/modules/LxSearchEquipmentSelect.vue index f8ccb7e..ec840e2 100644 --- a/src/views/eam/equipment/modules/LxSearchEquipmentSelect.vue +++ b/src/views/eam/equipment/modules/LxSearchEquipmentSelect.vue @@ -11,7 +11,7 @@ style="width: 100%" :filterOption="false" @change="handleAsyncChange" - allowClear + :allowClear="allowClear" :notFoundContent="loading ? undefined : null" mode="default" > @@ -43,6 +43,16 @@ default: 20, required: false }, + allowClear:{ + type:Boolean, + default:()=>true, + required:false + }, + factoryOrgCode:{ + type:String, + default:'', + required:false + } }, data() { this.loadData = debounce(this.loadData, 800)//娑堟姈 @@ -69,13 +79,20 @@ this.initSelectValue() } } + }, + factoryOrgCode:{ + handler(val){ + if(val){ + this.loadData() + } + } } }, methods: { initSelectValue() { if(!this.selectedAsyncValue || !this.selectedAsyncValue.key || this.selectedAsyncValue.key!=this.value){ console.log("杩欐墠璇锋眰鍚庡彴") - getAction(`/eam/equipment/asyncLoadEquipment`, { id: this.value }).then(res=>{ + getAction(`/eam/equipment/asyncLoadEquipment`, { id: this.value,factoryOrgCode:this.factoryOrgCode }).then(res=>{ if(res.success){ if(res.result && res.result.length > 0){ let obj = { @@ -96,7 +113,7 @@ this.options = [] this.loading = true // 瀛楀吀code鏍煎紡锛歵able,text,code - getAction(`/eam/equipment/asyncLoadEquipment`, { keyword: value, pageSize: this.pageSize }).then(res => { + getAction(`/eam/equipment/asyncLoadEquipment`, { keyword: value, pageSize: this.pageSize,factoryOrgCode:this.factoryOrgCode }).then(res => { this.loading = false if (res.success) { if (currentLoad != this.lastLoad) { @@ -114,7 +131,7 @@ initDictData() { //寮傛涓�寮�濮嬩篃鍔犺浇涓�鐐规暟鎹� this.loading = true - getAction(`/eam/equipment/asyncLoadEquipment`, { pageSize: this.pageSize, keyword: '' }).then(res => { + getAction(`/eam/equipment/asyncLoadEquipment`, { pageSize: this.pageSize, keyword: '' ,factoryOrgCode:this.factoryOrgCode}).then(res => { this.loading = false if (res.success) { this.options = [...res.result] @@ -132,12 +149,14 @@ this.selectedAsyncValue = selectedObj //update-begin---author:wangshuai ---date:20221115 for锛歔issues/4213]JSearchSelectTag鏀归�犳敮鎸佸閫�------------ this.selectedValue = selectedObj.key + this.$emit('autocompleteForm', this.options.find(item => item.equipmentId === selectedObj.value)) //update-end---author:wangshuai ---date:20221115 for锛歔issues/4213]JSearchSelectTag鏀归�犳敮鎸佸閫�------------ } else { this.selectedAsyncValue = undefined this.selectedValue = undefined this.options = [] this.loadData('') + this.$emit('autocompleteForm', {}) } this.callback() //update-end-author:scott date:20201222 for:銆愭悳绱€�戞悳绱㈡煡璇㈢粍浠讹紝鍒犻櫎鏉′欢锛岄粯璁や笅鎷夎繕鏄笂娆$殑缂撳瓨鏁版嵁锛屼笉濂� JT-191 -- Gitblit v1.9.3