Browse Source

物料变更前端修改

hella_online_20240829
chenfang 4 months ago
parent
commit
cfed6c102c
  1. 4
      src/views/wms/basicDataManage/itemManage/relegate/relegateRequest/index.vue
  2. 6
      src/views/wms/basicDataManage/itemManage/relegate/relegateRequest/relegateRequestMain.data.ts

4
src/views/wms/basicDataManage/itemManage/relegate/relegateRequest/index.vue

@ -138,13 +138,13 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row) =>
console.log('过滤之后的物料代码',itemCodes) console.log('过滤之后的物料代码',itemCodes)
itemCodes.forEach(async (item)=>{ itemCodes.forEach(async (item)=>{
let res = await ProductionitemcodeSpareitemcodeApi.getProductionitemcodeSpareitemcodeRelation({ let res = await ProductionitemcodeSpareitemcodeApi.getProductionitemcodeSpareitemcodeRelation({
code:item, changeBeforeCode:item,
available: 'TRUE', available: 'TRUE',
pageSize: 20, pageSize: 20,
pageNo: 1, pageNo: 1,
by: 'ASC' by: 'ASC'
}) })
if(res.list&&res.list.length>0){ if(res.list&&res.list.length==1){
tableData.value.forEach(item1=>{ tableData.value.forEach(item1=>{
if(item1['itemCode']==item){ if(item1['itemCode']==item){
item1['downItemCode'] = res.list[0]['code'] item1['downItemCode'] = res.list[0]['code']

6
src/views/wms/basicDataManage/itemManage/relegate/relegateRequest/relegateRequestMain.data.ts

@ -368,13 +368,13 @@ export const RelegateRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
value: 'TRUE', value: 'TRUE',
isMainValue: false isMainValue: false
},{ },{
key: 'code', key: 'changeBeforeCode',
value: 'itemCode', value: 'itemCode',
isTableRowValue: true, isTableRowValue: true,
isMainValue:false isMainValue:false
}], }],
verificationParams: [{ verificationParams: [{
key: 'code', key: 'changeBeforeCode',
action: '==', action: '==',
value: '', value: '',
isMainValue: false, isMainValue: false,
@ -396,7 +396,7 @@ export const RelegateRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
value: 'TRUE', value: 'TRUE',
isMainValue: false isMainValue: false
},{ },{
key: 'code', key: 'changeBeforeCode',
value: 'itemCode', value: 'itemCode',
isTableRowValue: true, isTableRowValue: true,
isMainValue:false isMainValue:false

Loading…
Cancel
Save