|
@ -182,6 +182,11 @@ const basicFormRef = ref() |
|
|
const tableData = ref([]) |
|
|
const tableData = ref([]) |
|
|
const openForm = (type: string, row?: any) => { |
|
|
const openForm = (type: string, row?: any) => { |
|
|
tableData.value = [] |
|
|
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) |
|
|
basicFormRef.value.open(type, row) |
|
|
} |
|
|
} |
|
|
// 获取部门 用于详情 部门回显 |
|
|
// 获取部门 用于详情 部门回显 |
|
@ -309,4 +314,14 @@ onMounted(async () => { |
|
|
} |
|
|
} |
|
|
getList() |
|
|
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() |
|
|
|
|
|
}) |
|
|
</script> |
|
|
</script> |