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