Browse Source

补料申请 数量校验

master
陈薪名 10 months ago
parent
commit
3d14bf4182
  1. 5
      src/views/wms/issueManage/repleinsh/repleinshRequestMain/index.vue
  2. 4
      src/views/wms/issueManage/repleinsh/repleinshRequestMain/repleinshRequestMain.data.ts

5
src/views/wms/issueManage/repleinsh/repleinshRequestMain/index.vue

@ -316,6 +316,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
}
try {
if (formType === 'create') {
await RepleinshRequestMainApi.createRepleinshRequestMain(data)

4
src/views/wms/issueManage/repleinsh/repleinshRequestMain/repleinshRequestMain.data.ts

@ -572,13 +572,13 @@ export const RepleinshRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
form: {
component: 'InputNumber',
componentProps: {
min: 1,
min: 0,
precision: 6
}
},
tableForm: {
type: 'InputNumber',
min: 1,
min: 0,
precision: 6
}
},

Loading…
Cancel
Save