Browse Source

补料申请 数量校验

master
陈薪名 11 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) => { const submitForm = async (formType, data) => {
data.subList = tableData.value // data.subList = tableData.value //
if(tableData.value.find(item => (item.qty <= 0))) {
message.warning('数量必须大于0')
formRef.value.formLoading = false
return
}
try { try {
if (formType === 'create') { if (formType === 'create') {
await RepleinshRequestMainApi.createRepleinshRequestMain(data) 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: { form: {
component: 'InputNumber', component: 'InputNumber',
componentProps: { componentProps: {
min: 1, min: 0,
precision: 6 precision: 6
} }
}, },
tableForm: { tableForm: {
type: 'InputNumber', type: 'InputNumber',
min: 1, min: 0,
precision: 6 precision: 6
} }
}, },

Loading…
Cancel
Save