Browse Source

Merge branch 'master_hella' of http://dev.ccwin-in.com:3000/sfms3.0/sfms3.0-ui into master_hella

hella_online_20240829
zhaoxuebing 2 months ago
parent
commit
36a23a2c7c
  1. 3
      README.md
  2. 67
      src/api/wms/business/inputBlur.ts
  3. 9
      src/api/wms/supplierApbalanceMain/index.ts
  4. 14
      src/views/qms/inspectionScheme/addForm.vue
  5. 12
      src/views/qms/inspectionTemplate/addForm.vue
  6. 2
      src/views/wms/basicDataManage/labelManage/callmaterials/callmaterials.data.ts
  7. 138
      src/views/wms/inventoryjobManage/inventoryinitial/inventoryinitRequestMain/inventoryinitRequestMain.data.ts
  8. 1
      src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRequestMain/index.vue
  9. 1
      src/views/wms/issueManage/productionreturn/productionreturnRequestMain/productionreturnRequestMain.data.ts
  10. 1
      src/views/wms/issueManage/productionreturn/productionreturnRequestMainNo/productionreturnRequestMainNo.data.ts

3
README.md

@ -48,6 +48,7 @@ form: {
isMainValue: false // 表示查询条件不是主表的字段的值 isMainValue: false // 表示查询条件不是主表的字段的值
} }
], ],
isRepeat: true,//是否可以重复添加该条数据
// 失去焦点校验参数 // 失去焦点校验参数
verificationParams: [{ verificationParams: [{
key: 'code', key: 'code',
@ -55,7 +56,7 @@ form: {
value: '', value: '',
isMainValue: false, isMainValue: false,
isSearch: 'true', isSearch: 'true',
isFormModel: true isFormModel: true,
}] }]
} }
} }

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

@ -742,15 +742,14 @@ export const FormBlur = async (field, val, routeName, formRef, detailData, formS
// 根据下方输入框失去焦点校验信息 // 根据下方输入框失去焦点校验信息
export const getListByBottonInput = async (headerItem, val, row, routeName, formRef, detailData, tableData, callback) => { export const getListByBottonInput = async (headerItem, val, row, routeName, formRef, detailData, tableData, callback) => {
let tableFormSchemaObj = headerItem?.tableForm const tableFormSchemaObj = headerItem?.tableForm
console.log(333, tableFormSchemaObj) console.log(333, tableFormSchemaObj)
if (tableFormSchemaObj.searchPage && tableFormSchemaObj.verificationParams) { if (tableFormSchemaObj.searchPage && tableFormSchemaObj.verificationParams) {
if (!val) return; if (!val) return;
let params = ref({}) const params = ref({})
let list = ref([]) const list = ref([])
console.log(3344) const searchCondition1 = headerItem.tableForm.searchCondition //获取data.ts参数信息
let searchCondition1 = headerItem.tableForm.searchCondition //获取data.ts参数信息 const verificationParams = headerItem.tableForm.verificationParams //获取data.ts参数信息
let verificationParams = headerItem.tableForm.verificationParams //获取data.ts参数信息
// 循环参数设置参数为key:value格式 // 循环参数设置参数为key:value格式
if (searchCondition1 && searchCondition1.length > 0) { if (searchCondition1 && searchCondition1.length > 0) {
for (let i = 0; i < searchCondition1.length; i++) { for (let i = 0; i < searchCondition1.length; i++) {
@ -813,7 +812,6 @@ export const getListByBottonInput = async (headerItem, val, row, routeName, form
} }
} }
} }
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++) {
console.log(54565, verificationParams[i].key) console.log(54565, verificationParams[i].key)
@ -821,23 +819,10 @@ export const getListByBottonInput = async (headerItem, val, row, routeName, form
params.value[verificationParams[i].key1] = val params.value[verificationParams[i].key1] = val
} }
} }
await tableFormSchemaObj.verificationPage(params.value).then(async (res) => { const arr1 = val.split(',').map(item => item.trim())
list.value = res ? res : [] // 判断代码是否存在
let arr1 = val.split(',').map(item => item.trim()) if (!headerItem?.tableForm.isRepeat) {
if (arr1.length != res.length) { const repeatCode = []
let arr2 = res.map((item) => item[headerItem.tableForm.searchField])
let str = [
...arr1.filter((item) => !arr2.includes(item)),
...arr2.filter((item) => !arr1.includes(item))
].join(',')
console.log(arr1.filter((item) => arr2.includes(item)))
console.log(22, str)
if (str) {
message.alert('代码' + str + '没有找到对应数据')
return
}
}
let repeatCode = []
if (tableData.length > 0) { if (tableData.length > 0) {
tableData.forEach((item) => { tableData.forEach((item) => {
const findIndex = arr1.findIndex(valItem => valItem == item[headerItem.field]) const findIndex = arr1.findIndex(valItem => valItem == item[headerItem.field])
@ -851,15 +836,31 @@ export const getListByBottonInput = async (headerItem, val, row, routeName, form
message.warning(`${t('ts.代码')}${repeatCode.join(',')}${t('ts.已经存在')}`); message.warning(`${t('ts.代码')}${repeatCode.join(',')}${t('ts.已经存在')}`);
return; return;
} }
console.log(list.value) }
await tableFormSchemaObj.verificationPage(params.value).then(async (res) => {
list.value = res ? res : []
if (arr1.length != res.length) {
const arr2 = res.map((item) => item[headerItem.tableForm.searchField])
const str = [
...arr1.filter((item) => !arr2.includes(item)),
...arr2.filter((item) => !arr1.includes(item))
].join(',')
console.log(arr1.filter((item) => arr2.includes(item)))
console.log(22, str)
if (str) {
message.alert('代码' + str + '没有找到对应数据')
return
}
}
callback(list.value) callback(list.value)
}) })
return return
} else { } else {
let pageApi = ref() const pageApi = ref()
let params = ref({}) const params = ref({})
let list = ref([]) const list = ref([])
let field = 'itemCode' const field = 'itemCode'
// scp采购订单 // scp采购订单
if (!val) return; if (!val) return;
@ -904,17 +905,17 @@ export const getListByBottonInput = async (headerItem, val, row, routeName, form
await pageApi.value(params.value).then(async (res) => { await pageApi.value(params.value).then(async (res) => {
list.value = res ? res : [] list.value = res ? res : []
let arr1 = val.split(',').map(item => item.trim()) const arr1 = val.split(',').map(item => item.trim())
if (arr1.length != res.length) { if (arr1.length != res.length) {
let arr2 = res.map((item) => item[field]) const arr2 = res.map((item) => item[field])
let str = [ const str = [
...arr1.filter((item) => !arr2.includes(item)), ...arr1.filter((item) => !arr2.includes(item)),
...arr2.filter((item) => !arr1.includes(item)) ...arr2.filter((item) => !arr1.includes(item))
].join(',') ].join(',')
message.alert('代码' + str + '没有找到对应数据') message.alert('代码' + str + '没有找到对应数据')
return return
} else { } else {
let repeatCode = [] const 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[field])

9
src/api/wms/supplierApbalanceMain/index.ts

@ -58,10 +58,15 @@ export const deleteSupplierApbalanceMain = async (id: number) => {
// 导出供应商余额明细主 Excel // 导出供应商余额明细主 Excel
export const exportSupplierApbalanceMain = async (params) => { export const exportSupplierApbalanceMain = async (params) => {
return await request.download({ url: `/wms/supplier-apbalance-main/export-excel`, params }) if (params.isSearch) {
const data = {...params}
return await request.downloadPost({ url: `/wms/supplier-apbalance-main/export-excel-senior`, data })
} else {
return await request.download({ url: `/wms/supplier-apbalance-main/export-excel`, params })
}
} }
// 下载用户导入模板 // 下载用户导入模板
export const importTemplate = () => { export const importTemplate = () => {
return request.download({ url: '/wms/supplier-apbalance-main/get-import-template' }) return request.download({ url: '/wms/supplier-apbalance-main/get-import-template' })
} }

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

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

2
src/views/wms/basicDataManage/labelManage/callmaterials/callmaterials.data.ts

@ -38,7 +38,7 @@ export const CallmaterialsRules = reactive({
workStationCode: [required], workStationCode: [required],
uom: [required], uom: [required],
callmaterialQty: [required], callmaterialQty: [required],
project: [{ max: 64, message: '最多50字符', trigger: 'blur'}] project: [{ max: 50, message: '最多50字符', trigger: 'blur'}]
}) })
export const Callmaterials = useCrudSchemas(reactive<CrudSchema[]>([ export const Callmaterials = useCrudSchemas(reactive<CrudSchema[]>([

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

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

1
src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRequestMain/index.vue

@ -207,6 +207,7 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
if(newVal.length<val.length){ if(newVal.length<val.length){
message.warning('不能同时选择可制造和可采购的物料') message.warning('不能同时选择可制造和可采购的物料')
} }
newVal = newVal.filter(item=>!tableData.value.find(item1=>item1['itemCode']==item['code']))
newVal.forEach(item=>{ newVal.forEach(item=>{
let tfk = JSON.parse(JSON.stringify(tableFormKeys)) let tfk = JSON.parse(JSON.stringify(tableFormKeys))
tfk.batch = formatTime(new Date(), 'yyyyMMdd') tfk.batch = formatTime(new Date(), 'yyyyMMdd')

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

@ -628,6 +628,7 @@ export const ProductionreturnRequestDetail = useCrudSchemas(reactive<CrudSchema[
}], }],
verificationPage: WorkstationApi.getWorkstationByCodes, // 校验数去焦点输入是否正确的方法 verificationPage: WorkstationApi.getWorkstationByCodes, // 校验数去焦点输入是否正确的方法
isShowTableFormSearch: true, isShowTableFormSearch: true,
isRepeat: true,//是否可以重复添加该条数据
verificationParams: [{ verificationParams: [{
key: 'code', key: 'code',
action: '==', action: '==',

1
src/views/wms/issueManage/productionreturn/productionreturnRequestMainNo/productionreturnRequestMainNo.data.ts

@ -130,6 +130,7 @@ export const ProductionreturnRequestDetail = useCrudSchemas(reactive<CrudSchema[
}], }],
verificationPage: WorkstationApi.getWorkstationByCodes, // 校验数去焦点输入是否正确的方法 verificationPage: WorkstationApi.getWorkstationByCodes, // 校验数去焦点输入是否正确的方法
isShowTableFormSearch: true, isShowTableFormSearch: true,
isRepeat: true,//是否可以重复添加该条数据
verificationParams: [{ verificationParams: [{
key: 'code', key: 'code',
action: '==', action: '==',

Loading…
Cancel
Save