Browse Source

物料库区配置 添加库区类型字段

master_hella_20240701
chenfang 9 months ago
parent
commit
eeb3b5bb16
  1. 16
      src/views/wms/basicDataManage/itemManage/itemarea/index.vue
  2. 17
      src/views/wms/basicDataManage/itemManage/itemarea/itemarea.data.ts
  3. 2
      src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/index.vue

16
src/views/wms/basicDataManage/itemManage/itemarea/index.vue

@ -115,18 +115,22 @@ const updataTableColumns = (val) => {
const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => { const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => {
nextTick(() => { nextTick(() => {
if (type == 'tableForm') { if (type == 'tableForm') {
if(formField == 'locationGroupCode') { if(formField == 'locationCode') {
row['locationGroupCode'] = val[0]['code']
}else if(formField == 'locationCode') {
row['locationCode'] = val[0]['code'] row['locationCode'] = val[0]['code']
}else{ }else{
row[formField] = val[0][searchField] row[formField] = val[0][searchField]
} }
} }else{
const setV = {} const setV = {}
setV[formField] = val[0][searchField] if(formField == 'areaCode') {
console.log(val[0]);
setV['areaCode'] = val[0]['code']
setV['areaType'] = val[0]['type']
}else{
setV[formField] = setV[0][searchField]
}
formRef.setValues(setV) formRef.setValues(setV)
}
}) })
} }
// //

17
src/views/wms/basicDataManage/itemManage/itemarea/itemarea.data.ts

@ -68,6 +68,23 @@ export const Itemarea = useCrudSchemas(reactive<CrudSchema[]>([
} }
} }
}, },
{
label: '库区类型',
field: 'areaType',
dictType: DICT_TYPE.AREA_TYPE,
dictClass: 'string',
isSearch: true,
isTable: true,
sort: 'custom',
table: {
width: 150
},
form: {
componentProps: {
disabled: true
}
}
},
{ {
label: '入库包装规格', label: '入库包装规格',
field: 'inPackUnit', field: 'inPackUnit',

2
src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/index.vue

@ -597,6 +597,8 @@ const submitForm = async (formType, data) => {
let isExist = false let isExist = false
tableData.value.forEach(item => { tableData.value.forEach(item => {
let rs = tableData.value.filter(filterItem => (filterItem.packingNumber == item.packingNumber)) let rs = tableData.value.filter(filterItem => (filterItem.packingNumber == item.packingNumber))
console.log(rs);
if(rs.length > 1) isExist = true if(rs.length > 1) isExist = true
}) })
if (isExist) { if (isExist) {

Loading…
Cancel
Save