Browse Source

HL-4929 物料变更到库位自动赋值从库位代码

linshi20240813
chenfang 3 months ago
parent
commit
706edff5a9
  1. 5
      src/views/wms/basicDataManage/itemManage/relegate/relegateRequest/index.vue
  2. 25
      src/views/wms/basicDataManage/itemManage/relegate/relegateRequest/relegateRequestMain.data.ts

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

@ -187,6 +187,7 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row) =>
newRow['fromPackingNumber'] = item['packingNumber'] newRow['fromPackingNumber'] = item['packingNumber']
newRow['toBatch'] = item['batch'] newRow['toBatch'] = item['batch']
newRow['fromLocationCode'] = item['locationCode'] newRow['fromLocationCode'] = item['locationCode']
newRow['toLocationCode'] = item['locationCode']
newRow['inventoryStatus'] = item['inventoryStatus'] newRow['inventoryStatus'] = item['inventoryStatus']
newRow['packUnit'] = item['packUnit'] newRow['packUnit'] = item['packUnit']
newRow['packQty'] = item['packQty'] newRow['packQty'] = item['packQty']
@ -227,9 +228,7 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row) =>
// console.log(row['itemCode']); // console.log(row['itemCode']);
// ItembasicApi.getItemListByCodes(row['itemCode']) // ItembasicApi.getItemListByCodes(row['itemCode'])
row['downItemCode'] = val[0]['code'] row['downItemCode'] = val[0]['code']
} else if (formField == 'toLocationCode') { } else {
row['toLocationCode'] = val[0]['code']
} else {
row[formField] = val[0][searchField] row[formField] = val[0][searchField]
} }
} else { } else {

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

@ -491,28 +491,17 @@ export const RelegateRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
label: '库位代码', label: '库位代码',
field: 'toLocationCode', field: 'toLocationCode',
sort: 'custom', sort: 'custom',
tableForm:{ table: {
isInpuFocusShow: true, // 开启查询弹窗 width: 100
searchListPlaceholder: '请选择到库位代码', },
searchField: 'code', tableForm: {
searchTitle: '库位信息', disabled: true
searchAllSchemas: Location.allSchemas,
searchPage: LocationApi.selectBusinessTypeToLocation,
}, },
form: { form: {
// labelMessage: '信息提示说明!!!',
componentProps: { componentProps: {
isSearchList: true, // 开启查询弹窗 disabled: true
searchListPlaceholder: '请选择到库位代码',
searchField: 'code',
searchTitle: '库位信息',
searchAllSchemas: Location.allSchemas,
searchPage: LocationApi.selectBusinessTypeToLocation,
} }
}, }
table: {
width: 120
},
}, },
{ {
label: '到包装号', label: '到包装号',

Loading…
Cancel
Save