diff --git a/src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/index.vue b/src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/index.vue index db8d9d37d..ba9fdea29 100644 --- a/src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/index.vue +++ b/src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/index.vue @@ -603,6 +603,11 @@ const buttonTableClick = async (val, row) => { /** 添加/修改操作 */ const formRef = ref() const openForm =async (type: string, row?: number) => { + InventorymoveRequestDetail.allSchemas.tableFormColumns.forEach(item=>{ + if(item.field == 'qty'){ + item.tableForm.disabled = routeName.value == "HoldtookRequestMain" + } + }) tableData.value = [] // 重置明细数据 formRef.value.open(type, row) } @@ -611,6 +616,11 @@ const openForm =async (type: string, row?: number) => { * 详情 新增/编辑事件 */ const detailOpenForm = (type, row) => { + InventorymoveRequestDetail.allSchemas.formSchema.forEach(item=>{ + if(item.field == 'qty'){ + item.componentProps.disabled = routeName.value == "HoldtookRequestMain" + } + }) if(InventorymoveRequestDetail.allSchemas.formSchema.find(item => (item.field == 'fromPackingNumber'))?.componentProps?.searchCondition.find(item => (item.key == 'warehouseCode')) == undefined){ InventorymoveRequestDetail.allSchemas.formSchema.find(item => (item.field == 'fromPackingNumber'))?.componentProps?.searchCondition.push({ key: 'warehouseCode', diff --git a/src/views/wms/moveManage/inventorymove/inventorymoveRequestMainOKHOLD/inventorymoveRequestMain.data.ts b/src/views/wms/moveManage/inventorymove/inventorymoveRequestMainOKHOLD/inventorymoveRequestMain.data.ts index 965d0e9e8..6e97682d3 100644 --- a/src/views/wms/moveManage/inventorymove/inventorymoveRequestMainOKHOLD/inventorymoveRequestMain.data.ts +++ b/src/views/wms/moveManage/inventorymove/inventorymoveRequestMainOKHOLD/inventorymoveRequestMain.data.ts @@ -1197,11 +1197,13 @@ export const InventorymoveRequestDetail = useCrudSchemas(reactive( form: { component: 'InputNumber', componentProps: { + disabled:true, min: 0, precision: 6 } }, tableForm: { + disabled:true, type: 'InputNumber', min: 0, precision: 6