Browse Source

预生产计划

hella_online_20240829
zhang_li 4 months ago
parent
commit
aad0d55193
  1. 7
      src/api/wms/business/inputBlur.ts
  2. 4
      src/api/wms/productionlineitem/index.ts
  3. 56
      src/views/wms/productionManage/productionplan/productionMain/productionMain.data.ts

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

@ -815,10 +815,9 @@ export const getListByBottonInput = async (headerItem, val, row, routeName, form
console.log(999, verificationParams) console.log(999, verificationParams)
if (verificationParams && verificationParams.length > 0) { if (verificationParams && verificationParams.length > 0) {
for (let i = 0; i < verificationParams.length; i++) { for (let i = 0; i < verificationParams.length; i++) {
if (verificationParams[i].key == 'code') { console.log(54565, verificationParams[i].key)
verificationParams[i].key = 'codes' verificationParams[i].key1 = verificationParams[i].key +'s'
} params.value[verificationParams[i].key1] = val
params.value[verificationParams[i].key] = val
} }
} }
await tableFormSchemaObj.verificationPage(params.value).then(async (res) => { await tableFormSchemaObj.verificationPage(params.value).then(async (res) => {

4
src/api/wms/productionlineitem/index.ts

@ -69,6 +69,6 @@ export const importTemplate = () => {
} }
export const getProductionLineCodelistByCodes = (data) => { export const getProductionLineCodelistByCodes = async (params) => {
return request.get({ url: `/wms/productionlineitem/listByCodes?productionLineCode=`+data.productionLineCode +'&itemCodes='+data.itemCodes}) return await request.get({ url: `/wms/productionlineitem/listByCodes`, params })
} }

56
src/views/wms/productionManage/productionplan/productionMain/productionMain.data.ts

@ -104,6 +104,7 @@ export const ProductionMain = useCrudSchemas(reactive<CrudSchema[]>([
form: { form: {
// labelMessage: '信息提示说明!!!', // labelMessage: '信息提示说明!!!',
componentProps: { componentProps: {
enterSearch: true,
isSearchList: true, isSearchList: true,
searchListPlaceholder: '请选择车间', searchListPlaceholder: '请选择车间',
searchField: 'code', searchField: 'code',
@ -114,7 +115,15 @@ export const ProductionMain = 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,
}], // 失去焦点校验参数
} }
} }
}, },
@ -129,6 +138,7 @@ export const ProductionMain = useCrudSchemas(reactive<CrudSchema[]>([
form: { form: {
// labelMessage: '信息提示说明!!!', // labelMessage: '信息提示说明!!!',
componentProps: { componentProps: {
enterSearch:true,
isSearchList: true, isSearchList: true,
searchListPlaceholder: '请选择生产线', searchListPlaceholder: '请选择生产线',
searchField: 'code', searchField: 'code',
@ -144,7 +154,15 @@ export const ProductionMain = useCrudSchemas(reactive<CrudSchema[]>([
value: 'workshop', value: 'workshop',
message: '请填写车间代码!', message: '请填写车间代码!',
isMainValue: true isMainValue: true
}] }],
verificationParams: [{
key: 'code',
action: '==',
value: '',
isMainValue: false,
isSearch: true,
isFormModel: true,
}], // 失去焦点校验参数
} }
} }
}, },
@ -158,6 +176,7 @@ export const ProductionMain = useCrudSchemas(reactive<CrudSchema[]>([
form: { form: {
// labelMessage: '信息提示说明!!!', // labelMessage: '信息提示说明!!!',
componentProps: { componentProps: {
enterSearch: true,
isSearchList: true, isSearchList: true,
searchListPlaceholder: '请选择班组', searchListPlaceholder: '请选择班组',
searchField: 'code', searchField: 'code',
@ -168,7 +187,15 @@ export const ProductionMain = 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,
}], // 失去焦点校验参数
} }
} }
}, },
@ -182,6 +209,7 @@ export const ProductionMain = useCrudSchemas(reactive<CrudSchema[]>([
form: { form: {
// labelMessage: '信息提示说明!!!', // labelMessage: '信息提示说明!!!',
componentProps: { componentProps: {
enterSearch: true,
isSearchList: true, isSearchList: true,
searchListPlaceholder: '请选择班次', searchListPlaceholder: '请选择班次',
searchField: 'code', searchField: 'code',
@ -192,7 +220,15 @@ export const ProductionMain = 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,
}], // 失去焦点校验参数
} }
} }
}, },
@ -652,6 +688,7 @@ export const ProductionDetail = useCrudSchemas(reactive<CrudSchema[]>([
value: 'TRUE', value: 'TRUE',
isMainValue: false isMainValue: false
}], }],
} }
}, },
tableForm:{ tableForm:{
@ -673,6 +710,17 @@ export const ProductionDetail = useCrudSchemas(reactive<CrudSchema[]>([
value: 'TRUE', value: 'TRUE',
isMainValue: false isMainValue: false
}], }],
verificationPage: ProductionlineitemApi.getProductionLineCodelistByCodes, // 校验数去焦点输入是否正确的方法
isShowTableFormSearch: true,
verificationParams: [{
key: 'itemCode',
action: '==',
value: '',
isMainValue: false,
isSearch: true,
isFormModel: true,
}], // 失去焦点校验参数
}, },
}, },
{ {

Loading…
Cancel
Save