Browse Source

发料申请 数量校验

master
陈薪名 11 months ago
parent
commit
9d0ba4ac69
  1. 5
      src/views/wms/issueManage/issue/issueRequestMain/index.vue
  2. 9
      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) => {
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

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

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

Loading…
Cancel
Save