Browse Source

制品上架申请 数量限制

master
陈薪名 11 months ago
parent
commit
c17273bda6
  1. 5
      src/views/wms/productionManage/productputaway/productputawayRequestMain/index.vue
  2. 4
      src/views/wms/productionManage/productputaway/productputawayRequestMain/productputawayRequestMain.data.ts

5
src/views/wms/productionManage/productputaway/productputawayRequestMain/index.vue

@ -321,6 +321,11 @@ const handleDeleteTable = (item, index) => {
// //
const submitForm = async (formType, data) => { const submitForm = async (formType, data) => {
data.subList = tableData.value // data.subList = tableData.value //
if(data.subList.find(item => (item.qty <= 0))) {
message.warning('数量必须大于0')
formRef.value.formLoading = false
return
}
try { try {
if (formType === 'create') { if (formType === 'create') {
await ProductputawayRequestMainApi.createProductputawayRequestMain(data) await ProductputawayRequestMainApi.createProductputawayRequestMain(data)

4
src/views/wms/productionManage/productputaway/productputawayRequestMain/productputawayRequestMain.data.ts

@ -611,13 +611,13 @@ export const ProductputawayRequestDetail = 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