Browse Source

发料管理

hella_online_20240829
zhang_li 4 months ago
parent
commit
eac667a2d4
  1. 14
      src/api/wms/business/inputBlur.ts
  2. 65
      src/views/wms/issueManage/issue/issueRequestMain/issueRequestMain.data.ts
  3. 51
      src/views/wms/issueManage/productionreturn/productionreturnRequestMain/productionreturnRequestMain.data.ts

14
src/api/wms/business/inputBlur.ts

@ -66,7 +66,15 @@ export const tableFormBlurVer = async (headerItem, val, row, index, routeName, f
filters.push({ filters.push({
action: searchCondition[i].action || '==', action: searchCondition[i].action || '==',
column: searchCondition[i].key, column: searchCondition[i].key,
value: formRef.formModel[searchCondition[i].value] value: formRef.formModel[
searchCondition[i].value
]
? formRef.formModel[searchCondition[i].value]
: detailData
? detailData[searchCondition[i].value]
: row
? row[searchCondition[i].value]
: ''
}) })
} else if (searchCondition[i].isTableRowValue) { } else if (searchCondition[i].isTableRowValue) {
if (searchCondition[i].required) { if (searchCondition[i].required) {
@ -828,10 +836,10 @@ export const getListByBottonInput = async (headerItem, val, row, routeName, form
let repeatCode = [] let repeatCode = []
if (tableData.length > 0) { if (tableData.length > 0) {
tableData.forEach((item) => { tableData.forEach((item) => {
const findIndex = arr1.findIndex(valItem => valItem == item[field]) const findIndex = arr1.findIndex(valItem => valItem == item[headerItem.field])
if (findIndex > -1) { if (findIndex > -1) {
arr1.splice(findIndex, 1) arr1.splice(findIndex, 1)
repeatCode.push(item[field]) repeatCode.push(item[headerItem.field])
} }
}) })
} }

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

@ -81,7 +81,15 @@ export const IssueRequestMain = useCrudSchemas(
value: 'TRUE', value: 'TRUE',
isMainValue: false isMainValue: false
} }
] ],
verificationParams: [{
key: 'code',
action: '==',
value: '',
isMainValue: false,
isSearch: true,
isFormModel: true,
}], // 失去焦点校验参数
} }
} }
}, },
@ -95,6 +103,7 @@ export const IssueRequestMain = useCrudSchemas(
isTable: false, isTable: false,
hiddenInMain: true, hiddenInMain: true,
tableForm: { tableForm: {
enterSearch:true,
isInpuFocusShow: true, isInpuFocusShow: true,
searchListPlaceholder: '请选择生产线代码', // 输入框占位文本 searchListPlaceholder: '请选择生产线代码', // 输入框占位文本
searchField: 'code', // 查询弹窗赋值字段 searchField: 'code', // 查询弹窗赋值字段
@ -113,11 +122,20 @@ export const IssueRequestMain = useCrudSchemas(
value: 'TRUE', value: 'TRUE',
isMainValue: false isMainValue: false
} }
] ],
verificationParams: [{
key: 'code',
action: '==',
value: '',
isMainValue: false,
isSearch: true,
isFormModel: true,
}], // 失去焦点校验参数
}, },
form: { form: {
// labelMessage: '信息提示说明!!!', // labelMessage: '信息提示说明!!!',
componentProps: { componentProps: {
enterSearch:true,
isSearchList: true, // 开启查询弹窗 isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择生产线代码', // 输入框占位文本 searchListPlaceholder: '请选择生产线代码', // 输入框占位文本
searchField: 'code', // 查询弹窗赋值字段 searchField: 'code', // 查询弹窗赋值字段
@ -136,7 +154,15 @@ export const IssueRequestMain = useCrudSchemas(
value: 'TRUE', value: 'TRUE',
isMainValue: false isMainValue: false
} }
] ],
verificationParams: [{
key: 'code',
action: '==',
value: '',
isMainValue: false,
isSearch: true,
isFormModel: true,
}], // 失去焦点校验参数
} }
} }
}, },
@ -168,7 +194,15 @@ export const IssueRequestMain = useCrudSchemas(
value: 'TRUE', value: 'TRUE',
isMainValue: false isMainValue: false
} }
] ],
verificationParams: [{
key: 'code',
action: '==',
value: '',
isMainValue: false,
isSearch: true,
isFormModel: true,
}], // 失去焦点校验参数
}, },
form: { form: {
// labelMessage: '信息提示说明!!!', // labelMessage: '信息提示说明!!!',
@ -192,7 +226,15 @@ export const IssueRequestMain = useCrudSchemas(
value: 'TRUE', value: 'TRUE',
isMainValue: false isMainValue: false
} }
] ],
verificationParams: [{
key: 'code',
action: '==',
value: '',
isMainValue: false,
isSearch: true,
isFormModel: true,
}], // 失去焦点校验参数
} }
} }
}, },
@ -792,7 +834,18 @@ export const IssueRequestDetail = useCrudSchemas(
value: 'Issue', value: 'Issue',
isMainValue: false isMainValue: false
} }
] ],
verificationPage: ItembasicApi.getItemListByCodes, // 校验数去焦点输入是否正确的方法
isShowTableFormSearch: true,
verificationParams: [{
key: 'code',
action: '==',
value: '',
isMainValue: false,
isSearch: true,
isFormModel: true,
}], // 失去焦点校验参数
}, },
form: { form: {
// labelMessage: '信息提示说明!!!', // labelMessage: '信息提示说明!!!',

51
src/views/wms/issueManage/productionreturn/productionreturnRequestMain/productionreturnRequestMain.data.ts

@ -90,6 +90,7 @@ export const ProductionreturnRequestMain = useCrudSchemas(reactive<CrudSchema[]>
form: { form: {
// labelMessage: '信息提示说明!!!', // labelMessage: '信息提示说明!!!',
componentProps: { componentProps: {
enterSearch: true,
isSearchList: true, // 开启查询弹窗 isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择车间代码', // 输入框占位文本 searchListPlaceholder: '请选择车间代码', // 输入框占位文本
searchField: 'code', // 查询弹窗赋值字段 searchField: 'code', // 查询弹窗赋值字段
@ -100,7 +101,15 @@ export const ProductionreturnRequestMain = useCrudSchemas(reactive<CrudSchema[]>
key: 'available', key: 'available',
value: 'TRUE', value: 'TRUE',
isMainValue: false isMainValue: false
}] }],
verificationParams: [{
key: 'code',
action: '==',
value: '',
isMainValue: false,
isSearch: true,
isFormModel: true,
}], // 失去焦点校验参数
} }
}, },
}, },
@ -114,6 +123,7 @@ export const ProductionreturnRequestMain = useCrudSchemas(reactive<CrudSchema[]>
form: { form: {
// labelMessage: '信息提示说明!!!', // labelMessage: '信息提示说明!!!',
componentProps: { componentProps: {
enterSearch: true,
isSearchList: true, // 开启查询弹窗 isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择生产线代码', // 输入框占位文本 searchListPlaceholder: '请选择生产线代码', // 输入框占位文本
searchField: 'code', // 查询弹窗赋值字段 searchField: 'code', // 查询弹窗赋值字段
@ -129,7 +139,15 @@ export const ProductionreturnRequestMain = useCrudSchemas(reactive<CrudSchema[]>
value: 'workshopCode', value: 'workshopCode',
message: '请选择车间信息!', // 当前置条件为空时 弹出信息提示 message: '请选择车间信息!', // 当前置条件为空时 弹出信息提示
isMainValue: true isMainValue: true
}] }],
verificationParams: [{
key: 'code',
action: '==',
value: '',
isMainValue: false,
isSearch: true,
isFormModel: true,
}], // 失去焦点校验参数
} }
}, },
tableForm:{ tableForm:{
@ -579,7 +597,9 @@ export const ProductionreturnRequestDetail = useCrudSchemas(reactive<CrudSchema[
value: 'productionLineCode', value: 'productionLineCode',
message: '请选择生产线信息!', message: '请选择生产线信息!',
isMainValue: true isMainValue: true
}] }],
} }
}, },
tableForm:{ tableForm:{
@ -605,7 +625,17 @@ export const ProductionreturnRequestDetail = useCrudSchemas(reactive<CrudSchema[
value: 'productionLineCode', value: 'productionLineCode',
message: '请选择生产线信息!', message: '请选择生产线信息!',
isMainValue: true isMainValue: true
}] }],
verificationPage: WorkstationApi.getWorkstationByCodes, // 校验数去焦点输入是否正确的方法
isShowTableFormSearch: true,
verificationParams: [{
key: 'code',
action: '==',
value: '',
isMainValue: false,
isSearch: true,
isFormModel: true,
}], // 失去焦点校验参数
}, },
}, },
{ {
@ -944,7 +974,8 @@ export const ProductionreturnRequestDetail = useCrudSchemas(reactive<CrudSchema[
}, },
isTable:true, isTable:true,
isTableForm: true, isTableForm: true,
tableForm:{ tableForm: {
enterSearch:true,
isInpuFocusShow: true, isInpuFocusShow: true,
isSearchList: true, // 开启查询弹窗 isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择包装规格', // 输入框占位文本 searchListPlaceholder: '请选择包装规格', // 输入框占位文本
@ -961,7 +992,15 @@ export const ProductionreturnRequestDetail = useCrudSchemas(reactive<CrudSchema[
value: 'itemCode', value: 'itemCode',
message: '请先选择物料代码!', message: '请先选择物料代码!',
isMainValue: true isMainValue: true
}] }],
verificationParams: [{
key: 'packUnit',
action: '==',
value: '',
isMainValue: false,
isSearch: true,
isFormModel: true,
}], // 失去焦点校验参数
}, },
form: { form: {
// labelMessage: '信息提示说明!!!', // labelMessage: '信息提示说明!!!',

Loading…
Cancel
Save