diff --git a/src/views/wms/basicDataManage/itemManage/relegate/relegateRequest/index.vue b/src/views/wms/basicDataManage/itemManage/relegate/relegateRequest/index.vue index 22a888445..ce621fe3f 100644 --- a/src/views/wms/basicDataManage/itemManage/relegate/relegateRequest/index.vue +++ b/src/views/wms/basicDataManage/itemManage/relegate/relegateRequest/index.vue @@ -110,7 +110,12 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row) => }) } else if (formField == 'downItemCode') { - row['downItemCode'] = val[0]['spareItemCode'] + if(row['itemCode'] == val[0]['spareItemCode']){ + row['downItemCode'] = val[0]['productionItemCode'] //量产件 + }else{ + row['downItemCode'] = val[0]['spareItemCode'] //备件 + + } console.log(row['itemCode']); // ItembasicApi.getItemListByCodes(row['itemCode'])