Browse Source

QMS检验方案与检验申请,点击复制按钮后。默认从第一个检验工序进行修改

hella_online_20240829
zhang_li 4 months ago
parent
commit
c467943dc3
  1. 14
      src/views/qms/inspectionScheme/addForm.vue
  2. 12
      src/views/qms/inspectionTemplate/addForm.vue
  3. 138
      src/views/wms/inventoryjobManage/inventoryinitial/inventoryinitRequestMain/inventoryinitRequestMain.data.ts

14
src/views/qms/inspectionScheme/addForm.vue

@ -831,18 +831,15 @@ const open = async (type: string, row?: any, masterParmas?: any, titleName?: any
} else {
list = await InspectionProcessPageApi.getListByTempleteCode(row.programmeTemplateCode)
}
editableTabsValue.value = '1'
let arr = []
list.forEach((item, index) => {
// editableTabsValue.value = index + 1
item.name = index + 1
console.log(item.inspectionCharacteristicsBaseVO)
let obj = {
inspectionCode:item.inspectionCode,
description:item.description,
inspectionCharCode:item.inspectionCharCode,
sequenceCode:item.sequenceCode,
name : index + 1,
name :String(index + 1),
inspectionCharacteristicsBaseVO:{
description:item.inspectionCharacteristicsBaseVO.description,
featureType:item.inspectionCharacteristicsBaseVO.featureType,
@ -886,7 +883,6 @@ const open = async (type: string, row?: any, masterParmas?: any, titleName?: any
}
arr.push(obj)
})
editableTabsValue.value = 1
data.value.process = arr
console.log(111, data.value)
}else{
@ -899,10 +895,9 @@ const open = async (type: string, row?: any, masterParmas?: any, titleName?: any
rules.value['inspectionCharacteristicsBaseVO.quantifyCapping'][0].required = false
rules.value['inspectionCharacteristicsBaseVO.quantifyLowlimit'][0].required = false
rules.value['inspectionCharacteristicsBaseVO.quantifyTarget'][0].required = false
editableTabsValue.value = '1'
list.forEach((item, index) => {
// editableTabsValue.value = index + 1
item.name = index + 1
// rules.value['inspectionCharacteristicsBaseVO.quantifyCapping'][0].required = true
item.name = String(index + 1)
//
if (
item.inspectionCharacteristicsBaseVO.featureType == 0 &&
@ -920,7 +915,6 @@ const open = async (type: string, row?: any, masterParmas?: any, titleName?: any
isShowField.value += 1 //isShowField > 0aql
}
})
editableTabsValue.value = 1
// aql
if (isShowField.value > 0) {
rules.value.aql[0].required = true

12
src/views/qms/inspectionTemplate/addForm.vue

@ -587,18 +587,15 @@ const open = async (type: string, row?: any, masterParmas?: any, titleName?: any
process: []
}
let list = await InspectionProcessPageApi.getListByTempleteCode(row.code)
editableTabsValue.value = '1'
let arr = []
list.forEach((item, index) => {
editableTabsValue.value = index + 1
item.name = index + 1
console.log(item.inspectionCharacteristicsBaseVO)
let obj = {
description:item.description,
inspectionCharCode:item.inspectionCharCode,
inspectionCode:item.inspectionCode,
sequenceCode:item.sequenceCode,
name : index + 1,
name :String(index + 1),
inspectionCharacteristicsBaseVO:{
description:item.inspectionCharacteristicsBaseVO.description,
featureType:item.inspectionCharacteristicsBaseVO.featureType,
@ -641,13 +638,14 @@ const open = async (type: string, row?: any, masterParmas?: any, titleName?: any
arr.push(obj)
})
data.value.process = arr
}else{
data.value = JSON.parse(JSON.stringify(row))
data.value.version = String(data.value.version)
let list = await InspectionProcessPageApi.getListByTempleteCode(row.code)
editableTabsValue.value = '1'
list.forEach((item, index) => {
editableTabsValue.value = index + 1
item.name = index + 1
item.name = String(index + 1)
//
if (item.inspectionCharacteristicsBaseVO.quantifyIsCapping) {
rules.value['inspectionCharacteristicsBaseVO.quantifyCapping'][0].required = true

138
src/views/wms/inventoryjobManage/inventoryinitial/inventoryinitRequestMain/inventoryinitRequestMain.data.ts

@ -76,6 +76,7 @@ export const InventoryinitRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
form: {
// labelMessage: '信息提示说明!!!',
componentProps: {
enterSearch: true,
isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择仓库代码', // 输入框占位文本
searchField: 'code', // 查询弹窗赋值字段
@ -86,7 +87,15 @@ export const InventoryinitRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
key: 'available',
value: 'TRUE',
isMainValue: false
}]
}],
verificationParams: [{
key: 'code',
action: '==',
value: '',
isMainValue: false,
isSearch: true,
isFormModel: true,
}], // 失去焦点校验参数
}
}
},
@ -395,7 +404,6 @@ export const InventoryinitRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
},
tableForm:{
multiple:true,
enterSearch:true,
isInpuFocusShow: true, // 开启查询弹窗
searchListPlaceholder: '请选择物料代码',
searchField: 'code',
@ -406,7 +414,17 @@ export const InventoryinitRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
key: 'available',
value: 'TRUE',
isMainValue: false
}]
}],
verificationPage: ItembasicApi.getItemListByCodes, // 失去焦点校验输入框的数据内容存在
isShowTableFormSearch: true,
verificationParams: [{
key: 'code',
action: '==',
value: '',
isMainValue: false,
isSearch: 'true',
isFormModel: true
}], // 失去焦点校验参数
},
form: {
// labelMessage: '信息提示说明!!!',
@ -574,7 +592,8 @@ export const InventoryinitRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
table: {
width: 150
},
tableForm:{
tableForm: {
enterSearch:true,
isInpuFocusShow: true, // 开启查询弹窗
searchListPlaceholder: '请选择库位代码',
searchField: 'code',
@ -585,11 +604,20 @@ export const InventoryinitRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
key: 'available',
value: 'TRUE',
isMainValue: false
}]
}],
verificationParams: [{
key: 'code',
action: '==',
value: '',
isMainValue: false,
isSearch: 'true',
isFormModel: true
}], // 失去焦点校验参数
},
form: {
// labelMessage: '信息提示说明!!!',
componentProps: {
enterSearch: true,
isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择库位代码',
searchField: 'code',
@ -600,7 +628,15 @@ export const InventoryinitRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
key: 'available',
value: 'TRUE',
isMainValue: false
}]
}],
verificationParams: [{
key: 'code',
action: '==',
value: '',
isMainValue: false,
isSearch: 'true',
isFormModel: true
}], // 失去焦点校验参数
}
}
},
@ -631,7 +667,8 @@ export const InventoryinitRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
table: {
width: 150
},
tableForm:{
tableForm: {
enterSearch: true,
isInpuFocusShow: true, // 开启查询弹窗
searchListPlaceholder: '请选择货主代码',
searchField: 'code',
@ -642,11 +679,20 @@ export const InventoryinitRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
key: 'available',
value: 'TRUE',
isMainValue: false
}]
}],
verificationParams: [{
key: 'code',
action: '==',
value: '',
isMainValue: false,
isSearch: 'true',
isFormModel: true
}], // 失去焦点校验参数
},
form: {
// labelMessage: '信息提示说明!!!',
componentProps: {
enterSearch: true,
isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择货主代码',
searchField: 'code',
@ -657,7 +703,15 @@ export const InventoryinitRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
key: 'available',
value: 'TRUE',
isMainValue: false
}]
}],
verificationParams: [{
key: 'code',
action: '==',
value: '',
isMainValue: false,
isSearch: 'true',
isFormModel: true
}], // 失去焦点校验参数
}
}
},
@ -764,6 +818,7 @@ export const InventoryinitRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
sort: 'custom',
form: {
componentProps: {
enterSearch: true,
disabled: true,
isSearchList: true,
searchListPlaceholder: '请选择包装',
@ -783,11 +838,20 @@ export const InventoryinitRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
value: 'TRUE',
isMainValue: false
}
]
],
verificationParams: [{
key: 'packUnit',
action: '==',
value: '',
isMainValue: false,
isSearch: true,
isFormModel: true,
}], // 失去焦点校验参数
}
},
tableForm: {
enterSearch: true,
disabled: true,
isInpuFocusShow: true,
searchListPlaceholder: '请选择包装',
@ -807,7 +871,15 @@ export const InventoryinitRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
key: 'available',
value: 'TRUE',
isMainValue: false
}]
}],
verificationParams: [{
key: 'packUnit',
action: '==',
value: '',
isMainValue: false,
isSearch: true,
isFormModel: true,
}], // 失去焦点校验参数
}
},
{
@ -831,6 +903,7 @@ export const InventoryinitRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
sort: 'custom',
form: {
componentProps: {
enterSearch: true,
disabled: true,
isSearchList: true,
searchListPlaceholder: '请选择包装',
@ -850,11 +923,20 @@ export const InventoryinitRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
value: 'TRUE',
isMainValue: false
}
]
],
verificationParams: [{
key: 'packUnit',
action: '==',
value: '',
isMainValue: false,
isSearch: true,
isFormModel: true,
}], // 失去焦点校验参数
}
},
tableForm: {
enterSearch: true,
clearable: true,
disabled: true,
isInpuFocusShow: true,
@ -875,7 +957,15 @@ export const InventoryinitRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
key: 'available',
value: 'TRUE',
isMainValue: false
}]
}],
verificationParams: [{
key: 'packUnit',
action: '==',
value: '',
isMainValue: false,
isSearch: true,
isFormModel: true,
}], // 失去焦点校验参数
}
},
{
@ -899,6 +989,7 @@ export const InventoryinitRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
form: {
width: 150,
componentProps: {
enterSearch: true,
disabled: true,
isSearchList: true,
searchListPlaceholder: '请选择包装',
@ -918,11 +1009,20 @@ export const InventoryinitRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
value: 'TRUE',
isMainValue: false
}
]
],
verificationParams: [{
key: 'packUnit',
action: '==',
value: '',
isMainValue: false,
isSearch: true,
isFormModel: true,
}], // 失去焦点校验参数
}
},
tableForm: {
enterSearch: true,
disabled: true,
isInpuFocusShow: true,
searchListPlaceholder: '请选择包装',
@ -942,7 +1042,15 @@ export const InventoryinitRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
key: 'available',
value: 'TRUE',
isMainValue: false
}]
}],
verificationParams: [{
key: 'packUnit',
action: '==',
value: '',
isMainValue: false,
isSearch: true,
isFormModel: true,
}], // 失去焦点校验参数
}
},
{

Loading…
Cancel
Save