From ac994244719505660226ef7dd59042015d94541a Mon Sep 17 00:00:00 2001 From: zhang_li <2235006734@qqq.com> Date: Fri, 22 Nov 2024 14:28:48 +0800 Subject: [PATCH] =?UTF-8?q?YT-1186=E5=8F=91=E8=B4=A7=E8=AE=B0=E5=BD=95?= =?UTF-8?q?=EF=BC=8C=E5=8F=AF=E7=BC=96=E8=BE=91=E7=9A=84=E5=8F=AA=E6=9C=89?= =?UTF-8?q?=20=E2=80=9C=E5=8F=91=E8=B4=A7=E7=B1=BB=E5=9E=8B=E2=80=9D=20?= =?UTF-8?q?=E5=AD=97=E6=AE=B5=EF=BC=8C=E5=85=B6=E4=BD=99=E7=9A=86=E4=B8=8D?= =?UTF-8?q?=E5=8F=AF=E4=BF=AE=E6=94=B9=EF=BC=8C=E5=A6=82=E5=9B=BE=EF=BC=88?= =?UTF-8?q?=E9=9C=80=E6=B1=82=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../deliverRecordMain/index.vue | 15 +++++++++++++++ .../deliverRecordMain/index.vue | 15 +++++++++++++++ .../deliverRecordMain/index.vue | 15 +++++++++++++++ 3 files changed, 45 insertions(+) diff --git a/src/views/wms/deliversettlementManage/ftSuppliesRecordMain/deliverRecordMain/index.vue b/src/views/wms/deliversettlementManage/ftSuppliesRecordMain/deliverRecordMain/index.vue index 60259da7b..4017621c6 100644 --- a/src/views/wms/deliversettlementManage/ftSuppliesRecordMain/deliverRecordMain/index.vue +++ b/src/views/wms/deliversettlementManage/ftSuppliesRecordMain/deliverRecordMain/index.vue @@ -182,6 +182,11 @@ const basicFormRef = ref() const tableData = ref([]) const openForm = (type: string, row?: any) => { tableData.value = [] + DeliverRecordMain.allSchemas.formSchema.forEach(item=>{ + if (item.field == 'businessType'){ + item.componentProps.options = item.componentProps.options.filter(cur=>cur.value == 'SSProduct'||cur.value == 'ToyotaSupplies'||cur.value == 'SkylightCarpet') + } + }) basicFormRef.value.open(type, row) } // 获取部门 用于详情 部门回显 @@ -309,4 +314,14 @@ onMounted(async () => { } getList() }) +onActivated(() => { + if (routeName.value == 'ToyotaSupplies') { + tableObject.params.businessType = 'ToyotaSupplies' + } else if (routeName.value == 'SSProduct') { + tableObject.params.businessType = 'SSProduct' + } else if (routeName.value == 'SkylightCarpet') { + tableObject.params.businessType = 'SkylightCarpet' + } + getList() +}) \ No newline at end of file diff --git a/src/views/wms/deliversettlementManage/ssSuppliesRecordMain/deliverRecordMain/index.vue b/src/views/wms/deliversettlementManage/ssSuppliesRecordMain/deliverRecordMain/index.vue index 4faea3df5..726229bd0 100644 --- a/src/views/wms/deliversettlementManage/ssSuppliesRecordMain/deliverRecordMain/index.vue +++ b/src/views/wms/deliversettlementManage/ssSuppliesRecordMain/deliverRecordMain/index.vue @@ -182,6 +182,11 @@ const basicFormRef = ref() const tableData = ref([]) const openForm = (type: string, row?: any) => { tableData.value = [] + DeliverRecordMain.allSchemas.formSchema.forEach(item=>{ + if (item.field == 'businessType'){ + item.componentProps.options = item.componentProps.options.filter(cur=>cur.value == 'SSProduct'||cur.value == 'ToyotaSupplies'||cur.value == 'SkylightCarpet') + } + }) basicFormRef.value.open(type, row) } @@ -312,4 +317,14 @@ onMounted(async () => { } getList() }) +onActivated(() => { + if (routeName.value == 'ToyotaSupplies') { + tableObject.params.businessType = 'ToyotaSupplies' + } else if (routeName.value == 'SSProduct') { + tableObject.params.businessType = 'SSProduct' + } else if (routeName.value == 'SkylightCarpet') { + tableObject.params.businessType = 'SkylightCarpet' + } + getList() +}) \ No newline at end of file diff --git a/src/views/wms/deliversettlementManage/tjdtSuppliesRecordMain/deliverRecordMain/index.vue b/src/views/wms/deliversettlementManage/tjdtSuppliesRecordMain/deliverRecordMain/index.vue index dc771cf91..3fc3dd5e0 100644 --- a/src/views/wms/deliversettlementManage/tjdtSuppliesRecordMain/deliverRecordMain/index.vue +++ b/src/views/wms/deliversettlementManage/tjdtSuppliesRecordMain/deliverRecordMain/index.vue @@ -182,6 +182,11 @@ const basicFormRef = ref() const tableData = ref([]) const openForm = (type: string, row?: any) => { tableData.value = [] + DeliverRecordMain.allSchemas.formSchema.forEach(item=>{ + if (item.field == 'businessType'){ + item.componentProps.options = item.componentProps.options.filter(cur=>cur.value == 'SSProduct'||cur.value == 'ToyotaSupplies'||cur.value == 'SkylightCarpet') + } + }) basicFormRef.value.open(type, row) } // 获取部门 用于详情 部门回显 @@ -309,4 +314,14 @@ onMounted(async () => { } getList() }) +onActivated(() => { + if (routeName.value == 'ToyotaSupplies') { + tableObject.params.businessType = 'ToyotaSupplies' + } else if (routeName.value == 'SSProduct') { + tableObject.params.businessType = 'SSProduct' + } else if (routeName.value == 'SkylightCarpet') { + tableObject.params.businessType = 'SkylightCarpet' + } + getList() +}) \ No newline at end of file