Browse Source

物料库区配置管理

master_hella_20240701
yufei0306 6 months ago
parent
commit
7b0f23f631
  1. 1
      README.md
  2. 2
      src/views/wms/basicDataManage/itemManage/itemarea/index.vue

1
README.md

@ -28,6 +28,7 @@ form: {
} }
**tableForm明细列表查询弹窗配置** **tableForm明细列表查询弹窗配置**
tableForm:{ tableForm:{
hidden:false,//控制列是否展示
isInpuFocusShow: true, // 开启查询弹窗 【**与form表单中唯一不同属性**】 isInpuFocusShow: true, // 开启查询弹窗 【**与form表单中唯一不同属性**】
searchListPlaceholder: '请选择从仓库代码', // 输入框占位文本 searchListPlaceholder: '请选择从仓库代码', // 输入框占位文本
searchField: 'code', // 查询弹窗赋值字段 searchField: 'code', // 查询弹窗赋值字段

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

@ -45,6 +45,7 @@
@success="getList" @success="getList"
:rules="ItemareaRules" :rules="ItemareaRules"
:isOpenSearchTable="true" :isOpenSearchTable="true"
fieldTableColumn="locationCode"
:formAllSchemas="Itemarea.allSchemas" :formAllSchemas="Itemarea.allSchemas"
:tableAllSchemas="ItemareaDetail.allSchemas" :tableAllSchemas="ItemareaDetail.allSchemas"
:tableFormRules="ItemareaDetailRules" :tableFormRules="ItemareaDetailRules"
@ -122,6 +123,7 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
val.forEach(item=>{ val.forEach(item=>{
const newRow = {...row} const newRow = {...row}
if(formField == 'locationCode') { if(formField == 'locationCode') {
if(tableData.value.find(item1=>item1['locationCode'] == item['code'])) return
newRow['locationCode'] = item['code'] newRow['locationCode'] = item['code']
}else{ }else{
newRow[formField] = item[searchField] newRow[formField] = item[searchField]

Loading…
Cancel
Save