diff --git a/src/views/wms/issueManage/issue/issueRequestMain/index.vue b/src/views/wms/issueManage/issue/issueRequestMain/index.vue index 6238b215f..690f9bb0b 100644 --- a/src/views/wms/issueManage/issue/issueRequestMain/index.vue +++ b/src/views/wms/issueManage/issue/issueRequestMain/index.vue @@ -327,6 +327,11 @@ const handleDeleteTable = (item, index) => { // 主子数据 提交 const submitForm = async (formType, data) => { data.subList = tableData.value // 拼接子表数据参数 + if(tableData.value.find(item => (item.qty <= 0))) { + message.warning('数量必须大于0') + formRef.value.formLoading = false + return + } // 判断子表中,是否有不同的生产线和工位 // if (tableData.value.length > 0) { // let productionLineCode = tableData.value[0].productionLineCode diff --git a/src/views/wms/issueManage/issue/issueRequestMain/issueRequestMain.data.ts b/src/views/wms/issueManage/issue/issueRequestMain/issueRequestMain.data.ts index 4f007d401..c02076603 100644 --- a/src/views/wms/issueManage/issue/issueRequestMain/issueRequestMain.data.ts +++ b/src/views/wms/issueManage/issue/issueRequestMain/issueRequestMain.data.ts @@ -679,10 +679,17 @@ export const IssueRequestDetail = useCrudSchemas(reactive([ table: { width: 150 }, - tableForm:{ + tableForm: { type: 'InputNumber', - min: 1, + min: 0, precision: 6 + }, + form: { + component: 'InputNumber', + componentProps: { + min: 0, + precision: 6 + } } }, {