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)
if (verificationParams && verificationParams.length > 0) {
for (let i = 0; i < verificationParams.length; i++) {
if (verificationParams[i].key == 'code') {
verificationParams[i].key = 'codes'
}
params.value[verificationParams[i].key] = val
console.log(54565, verificationParams[i].key)
verificationParams[i].key1 = verificationParams[i].key +'s'
params.value[verificationParams[i].key1] = val
}
}
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) => {
return request.get({ url: `/wms/productionlineitem/listByCodes?productionLineCode=`+data.productionLineCode +'&itemCodes='+data.itemCodes})
export const getProductionLineCodelistByCodes = async (params) => {
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: {
// labelMessage: '信息提示说明!!!',
componentProps: {
enterSearch: true,
isSearchList: true,
searchListPlaceholder: '请选择车间',
searchField: 'code',
@ -114,7 +115,15 @@ export const ProductionMain = useCrudSchemas(reactive<CrudSchema[]>([
key: 'available',
value: 'TRUE',
isMainValue: false
}]
}],
verificationParams: [{
key: 'code',
action: '==',
value: '',
isMainValue: false,
isSearch: true,
isFormModel: true,
}], // 失去焦点校验参数
}
}
},
@ -129,6 +138,7 @@ export const ProductionMain = useCrudSchemas(reactive<CrudSchema[]>([
form: {
// labelMessage: '信息提示说明!!!',
componentProps: {
enterSearch:true,
isSearchList: true,
searchListPlaceholder: '请选择生产线',
searchField: 'code',
@ -144,7 +154,15 @@ export const ProductionMain = useCrudSchemas(reactive<CrudSchema[]>([
value: 'workshop',
message: '请填写车间代码!',
isMainValue: true
}]
}],
verificationParams: [{
key: 'code',
action: '==',
value: '',
isMainValue: false,
isSearch: true,
isFormModel: true,
}], // 失去焦点校验参数
}
}
},
@ -158,6 +176,7 @@ export const ProductionMain = useCrudSchemas(reactive<CrudSchema[]>([
form: {
// labelMessage: '信息提示说明!!!',
componentProps: {
enterSearch: true,
isSearchList: true,
searchListPlaceholder: '请选择班组',
searchField: 'code',
@ -168,7 +187,15 @@ export const ProductionMain = useCrudSchemas(reactive<CrudSchema[]>([
key: 'available',
value: 'TRUE',
isMainValue: false
}]
}],
verificationParams: [{
key: 'code',
action: '==',
value: '',
isMainValue: false,
isSearch: true,
isFormModel: true,
}], // 失去焦点校验参数
}
}
},
@ -182,6 +209,7 @@ export const ProductionMain = useCrudSchemas(reactive<CrudSchema[]>([
form: {
// labelMessage: '信息提示说明!!!',
componentProps: {
enterSearch: true,
isSearchList: true,
searchListPlaceholder: '请选择班次',
searchField: 'code',
@ -192,7 +220,15 @@ export const ProductionMain = useCrudSchemas(reactive<CrudSchema[]>([
key: 'available',
value: 'TRUE',
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',
isMainValue: false
}],
}
},
tableForm:{
@ -673,6 +710,17 @@ export const ProductionDetail = useCrudSchemas(reactive<CrudSchema[]>([
value: 'TRUE',
isMainValue: false
}],
verificationPage: ProductionlineitemApi.getProductionLineCodelistByCodes, // 校验数去焦点输入是否正确的方法
isShowTableFormSearch: true,
verificationParams: [{
key: 'itemCode',
action: '==',
value: '',
isMainValue: false,
isSearch: true,
isFormModel: true,
}], // 失去焦点校验参数
},
},
{

Loading…
Cancel
Save