Browse Source

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

master_hella_20240701
chenfang 8 months ago
parent
commit
eeb3b5bb16
  1. 18
      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

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

@ -115,18 +115,22 @@ const updataTableColumns = (val) => {
const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => {
nextTick(() => {
if (type == 'tableForm') {
if(formField == 'locationGroupCode') {
row['locationGroupCode'] = val[0]['code']
}else if(formField == 'locationCode') {
if(formField == 'locationCode') {
row['locationCode'] = val[0]['code']
}else{
row[formField] = val[0][searchField]
}
}else{
const setV = {}
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)
}
const setV = {}
setV[formField] = val[0][searchField]
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: '入库包装规格',
field: 'inPackUnit',

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

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

Loading…
Cancel
Save