Browse Source

发料申请 数量校验

master
陈薪名 11 months ago
parent
commit
9d0ba4ac69
  1. 5
      src/views/wms/issueManage/issue/issueRequestMain/index.vue
  2. 11
      src/views/wms/issueManage/issue/issueRequestMain/issueRequestMain.data.ts

5
src/views/wms/issueManage/issue/issueRequestMain/index.vue

@ -327,6 +327,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
}
// 线 // 线
// if (tableData.value.length > 0) { // if (tableData.value.length > 0) {
// let productionLineCode = tableData.value[0].productionLineCode // let productionLineCode = tableData.value[0].productionLineCode

11
src/views/wms/issueManage/issue/issueRequestMain/issueRequestMain.data.ts

@ -679,11 +679,18 @@ export const IssueRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 150 width: 150
}, },
tableForm:{ tableForm: {
type: 'InputNumber', type: 'InputNumber',
min: 1, min: 0,
precision: 6
},
form: {
component: 'InputNumber',
componentProps: {
min: 0,
precision: 6 precision: 6
} }
}
}, },
{ {
label: '计量单位', label: '计量单位',

Loading…
Cancel
Save