Browse Source

YT-1186发货记录,可编辑的只有 “发货类型” 字段,其余皆不可修改,如图(需求)

intex
zhang_li 5 days ago
parent
commit
ac99424471
  1. 15
      src/views/wms/deliversettlementManage/ftSuppliesRecordMain/deliverRecordMain/index.vue
  2. 15
      src/views/wms/deliversettlementManage/ssSuppliesRecordMain/deliverRecordMain/index.vue
  3. 15
      src/views/wms/deliversettlementManage/tjdtSuppliesRecordMain/deliverRecordMain/index.vue

15
src/views/wms/deliversettlementManage/ftSuppliesRecordMain/deliverRecordMain/index.vue

@ -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>

15
src/views/wms/deliversettlementManage/ssSuppliesRecordMain/deliverRecordMain/index.vue

@ -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)
} }
@ -312,4 +317,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>

15
src/views/wms/deliversettlementManage/tjdtSuppliesRecordMain/deliverRecordMain/index.vue

@ -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>
Loading…
Cancel
Save