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)
itemCodes.forEach(async (item)=>{
let res = await ProductionitemcodeSpareitemcodeApi.getProductionitemcodeSpareitemcodeRelation({
code:item,
changeBeforeCode:item,
available: 'TRUE',
pageSize: 20,
pageNo: 1,
by: 'ASC'
})
if(res.list&&res.list.length>0){
if(res.list&&res.list.length==1){
tableData.value.forEach(item1=>{
if(item1['itemCode']==item){
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',
isMainValue: false
},{
key: 'code',
key: 'changeBeforeCode',
value: 'itemCode',
isTableRowValue: true,
isMainValue:false
}],
verificationParams: [{
key: 'code',
key: 'changeBeforeCode',
action: '==',
value: '',
isMainValue: false,
@ -396,7 +396,7 @@ export const RelegateRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
value: 'TRUE',
isMainValue: false
},{
key: 'code',
key: 'changeBeforeCode',
value: 'itemCode',
isTableRowValue: true,
isMainValue:false

Loading…
Cancel
Save