Browse Source

发料申请 数量校验

master
陈薪名 10 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) => {
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

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

@ -679,10 +679,17 @@ export const IssueRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 150
},
tableForm:{
tableForm: {
type: 'InputNumber',
min: 1,
min: 0,
precision: 6
},
form: {
component: 'InputNumber',
componentProps: {
min: 0,
precision: 6
}
}
},
{

Loading…
Cancel
Save