diff --git a/src/views/wms/deliversettlementManage/deliver/deliverRequestMain/index.vue b/src/views/wms/deliversettlementManage/deliver/deliverRequestMain/index.vue index e0345b511..3a6f4ac74 100644 --- a/src/views/wms/deliversettlementManage/deliver/deliverRequestMain/index.vue +++ b/src/views/wms/deliversettlementManage/deliver/deliverRequestMain/index.vue @@ -123,9 +123,8 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => DeliverRequestDetail.allSchemas.tableFormColumns.forEach(item => { tableFormKeys[item.field] = item.default ? item.default : '' }) - console.log('tableData.value',tableData.value) val.forEach(item=>{ - if(tableData.value.find(item1=>item1['id'] == item['id'])) return + if(tableData.value.find(item1=>item1['itemCode'] == item['itemCode'])) return const newRow = JSON.parse(JSON.stringify({...tableFormKeys,...item})) newRow['uom'] = item['customerUom'] tableData.value.push(newRow) diff --git a/src/views/wms/deliversettlementManage/deliverplan/deliverPlanMain/index.vue b/src/views/wms/deliversettlementManage/deliverplan/deliverPlanMain/index.vue index d280216c7..9708efed8 100644 --- a/src/views/wms/deliversettlementManage/deliverplan/deliverPlanMain/index.vue +++ b/src/views/wms/deliversettlementManage/deliverplan/deliverPlanMain/index.vue @@ -127,7 +127,7 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => if (type == 'tableForm') { if(formField == 'itemCode') { val.forEach(item=>{ - if(tableData.value.find(item1=>item1['id'] == item['id'])) return + if(tableData.value.find(item1=>item1['itemCode'] == item['itemCode'])) return const newRow = JSON.parse(JSON.stringify({...tableFormKeys,...item})) newRow['uom'] = item['customerUom'] tableData.value.push(newRow) diff --git a/src/views/wms/deliversettlementManage/stockup/stockupMainRequest/index.vue b/src/views/wms/deliversettlementManage/stockup/stockupMainRequest/index.vue index 0797f4453..a62a60b87 100644 --- a/src/views/wms/deliversettlementManage/stockup/stockupMainRequest/index.vue +++ b/src/views/wms/deliversettlementManage/stockup/stockupMainRequest/index.vue @@ -127,7 +127,7 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => // } if(formField == 'itemCode') { val.forEach(item=>{ - if(tableData.value.find(item1=>item1['id'] == item['id'])) return + if(tableData.value.find(item1=>item1['itemCode'] == item['code'])) return const newRow = JSON.parse(JSON.stringify({...tableFormKeys,...item})) newRow['uom'] = item['uom'] newRow['itemCode'] = item['code'] diff --git a/src/views/wms/productionManage/productputaway/productputawayRequestMain/index.vue b/src/views/wms/productionManage/productputaway/productputawayRequestMain/index.vue index 9aa2e429b..42db6d925 100644 --- a/src/views/wms/productionManage/productputaway/productputawayRequestMain/index.vue +++ b/src/views/wms/productionManage/productputaway/productputawayRequestMain/index.vue @@ -108,11 +108,11 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => nextTick(() => { if (type == 'tableForm') { // 明细查询页赋值 - if(tableData.value.find(item1=>item1['id'] == item['id'])) return val.forEach(item=>{ + if(tableData.value.find(item1=>item1['itemCode'] == item['itemCode']&&item1['batch'] == item['batch']&&item1['packingNumber'] == item['packingNumber']&&item1['fromLocationCode'] == item['locationCode']&&item1['inventoryStatus'] == item['inventoryStatus'])) return const newRow = JSON.parse(JSON.stringify({...tableFormKeys,...item})) newRow[formField] = item[searchField] - newRow['poLine'] = item['itemCode'] + newRow['itemCode'] = item['itemCode'] newRow['packingNumber'] = item['packingNumber'] newRow['containerNumber'] = item['containerNumber'] newRow['batch'] = item['batch'] diff --git a/src/views/wms/productionManage/productputaway/productputawayRequestMain/productputawayRequestMain.data.ts b/src/views/wms/productionManage/productputaway/productputawayRequestMain/productputawayRequestMain.data.ts index 0638e6352..f03928c9f 100644 --- a/src/views/wms/productionManage/productputaway/productputawayRequestMain/productputawayRequestMain.data.ts +++ b/src/views/wms/productionManage/productputaway/productputawayRequestMain/productputawayRequestMain.data.ts @@ -462,7 +462,7 @@ export const ProductputawayRequestDetail = useCrudSchemas(reactive searchField: 'itemCode', // 查询弹窗赋值字段 searchTitle: '库存余额信息', // 查询弹窗标题 searchAllSchemas: Balance.allSchemas, // 查询弹窗所需类 - searchPage: BalanceApi.getBalancePageByBusinessType, // 查询弹窗所需分页方法 + searchPage: BalanceApi.getBalancePageByBusinessTypeByItemType, // 查询弹窗所需分页方法 searchCondition: [{ key: 'businessType', value: businessTypeData.code, @@ -476,7 +476,7 @@ export const ProductputawayRequestDetail = useCrudSchemas(reactive searchField: 'itemCode', // 查询弹窗赋值字段 searchTitle: '库存余额信息', // 查询弹窗标题 searchAllSchemas: Balance.allSchemas, // 查询弹窗所需类 - searchPage: BalanceApi.getBalancePageByBusinessType, // 查询弹窗所需分页方法 + searchPage: BalanceApi.getBalancePageByBusinessTypeByItemType, // 查询弹窗所需分页方法 searchCondition: [{ key: 'businessType', value: businessTypeData.code, @@ -533,6 +533,9 @@ export const ProductputawayRequestDetail = useCrudSchemas(reactive table: { width: 150 }, + tableForm: { + disabled: true + } }, { label: '包装数量', @@ -541,6 +544,9 @@ export const ProductputawayRequestDetail = useCrudSchemas(reactive table: { width: 150 }, + tableForm: { + disabled: true + } }, { label: '计量单位', diff --git a/src/views/wms/productionManage/productredress/productredressRequestMain/index.vue b/src/views/wms/productionManage/productredress/productredressRequestMain/index.vue index 6e88e7416..9d1383041 100644 --- a/src/views/wms/productionManage/productredress/productredressRequestMain/index.vue +++ b/src/views/wms/productionManage/productredress/productredressRequestMain/index.vue @@ -128,8 +128,8 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => // 明细查询页赋值 row[formField] = val[0][searchField] if (formField == 'itemCode') { - if(tableData.value.find(item1=>item1['id'] == item['id'])) return val.forEach(item=>{ + if(tableData.value.find(item1=>item1['itemCode'] == item['itemCode']&&item1['batch'] == item['batch']&&item1['packingNumber'] == item['packingNumber']&&item1['toLocationCode'] == item['locationCode']&&item1['inventoryStatus'] == item['inventoryStatus'])) return const newRow = JSON.parse(JSON.stringify({...tableFormKeys,...item})) newRow['itemCode'] = item['itemCode'] newRow['qty'] = item['qty'] diff --git a/src/views/wms/productionManage/productredress/productredressRequestMain/productredressRequestMain.data.ts b/src/views/wms/productionManage/productredress/productredressRequestMain/productredressRequestMain.data.ts index 4afaf03c7..ffa292018 100644 --- a/src/views/wms/productionManage/productredress/productredressRequestMain/productredressRequestMain.data.ts +++ b/src/views/wms/productionManage/productredress/productredressRequestMain/productredressRequestMain.data.ts @@ -309,7 +309,7 @@ export const ProductredressRequestDetail = useCrudSchemas(reactive // }, { - label: '物料代码', + label: '物料代码1', field: 'itemCode', sort: 'custom', table: { @@ -317,31 +317,32 @@ export const ProductredressRequestDetail = useCrudSchemas(reactive }, form: { // labelMessage: '信息提示说明!!!', - componentProps: { - isSearchList: true, // 开启查询弹窗 - searchListPlaceholder: '请选择物料代码', // 输入框占位文本 - searchField: 'itemCode', // 查询弹窗赋值字段 - searchTitle: '库存余额信息', // 查询弹窗标题 - searchAllSchemas: Balance.allSchemas, // 查询弹窗所需类 - searchPage: BalanceApi.getBalancePageByBusinessTypeByItemType, // 查询弹窗所需分页方法 - searchCondition: [{ - key: 'businessType', - value: businessTypeData.code, - action: '==', // 查询拼接条件 - isSearch: true, // 使用自定义拼接条件 - isMainValue: false // 拼接条件必须要 false 同时不能与 isMainValue: true 同用 - },{ - key: 'packingNumber', // 查询列表中字段 - value: '', // 指查询具体值 - action: 'isNotStr', // 查询拼接条件 - isSearch: true, // 使用自定义拼接条件 - isMainValue: false // 拼接条件必须要 false 同时不能与 isMainValue: true 同用 - }] - } + // componentProps: { + // isSearchList: true, // 开启查询弹窗 + // searchListPlaceholder: '请选择物料代码', // 输入框占位文本 + // searchField: 'itemCode', // 查询弹窗赋值字段 + // searchTitle: '库存余额信息', // 查询弹窗标题 + // searchAllSchemas: Balance.allSchemas, // 查询弹窗所需类 + // searchPage: BalanceApi.getBalancePageByBusinessTypeByItemType, // 查询弹窗所需分页方法 + // searchCondition: [{ + // key: 'businessType', + // value: businessTypeData.code, + // action: '==', // 查询拼接条件 + // isSearch: true, // 使用自定义拼接条件 + // isMainValue: false // 拼接条件必须要 false 同时不能与 isMainValue: true 同用 + // },{ + // key: 'packingNumber', // 查询列表中字段 + // value: '', // 指查询具体值 + // action: 'isNotStr', // 查询拼接条件 + // isSearch: true, // 使用自定义拼接条件 + // isMainValue: false // 拼接条件必须要 false 同时不能与 isMainValue: true 同用 + // }] + // } }, tableForm:{ + disabled: true, multiple:true, - isInpuFocusShow: true, + // isInpuFocusShow: true, searchListPlaceholder: '请选择物料代码', // 输入框占位文本 searchField: 'itemCode', // 查询弹窗赋值字段 searchTitle: '库存余额信息', // 查询弹窗标题 diff --git a/src/views/wms/purchasereceiptManage/sparereceipt/sparereceiptRequestMain/index.vue b/src/views/wms/purchasereceiptManage/sparereceipt/sparereceiptRequestMain/index.vue index a607fca8c..fc4993200 100644 --- a/src/views/wms/purchasereceiptManage/sparereceipt/sparereceiptRequestMain/index.vue +++ b/src/views/wms/purchasereceiptManage/sparereceipt/sparereceiptRequestMain/index.vue @@ -112,6 +112,7 @@