Browse Source

YT-496业务类型:可用物料状态范围全选,点击保存,保存失败

intex_online20241111
zhang_li 4 weeks ago
parent
commit
6e07ca1a2c
  1. 1
      src/views/wms/basicDataManage/documentSetting/businesstype/businesstype.data.ts
  2. 2
      src/views/wms/basicDataManage/documentSetting/businesstype/index.vue

1
src/views/wms/basicDataManage/documentSetting/businesstype/businesstype.data.ts

@ -67,6 +67,7 @@ export const Businesstype = useCrudSchemas(reactive<CrudSchema[]>([
field: 'itemStatuses', field: 'itemStatuses',
dictType: DICT_TYPE.ITEM_STATUS, dictType: DICT_TYPE.ITEM_STATUS,
dictClass: 'string', dictClass: 'string',
dictAllValue: '全选',
dictAllOption:true,// 全选按钮 dictAllOption:true,// 全选按钮
isTable: true, isTable: true,
sort: 'custom', sort: 'custom',

2
src/views/wms/basicDataManage/documentSetting/businesstype/index.vue

@ -322,7 +322,7 @@ const formsSuccess = async (formType, submitData) => {
const onChange = (field, value)=>{ const onChange = (field, value)=>{
console.log('onChange',field,value) console.log('onChange',field,value)
if(field=='outAreaTypes'||field=='inAreaTypes'||field=='itemTypes'||field=='outInventoryStatuses'||field=='inInventoryStatuses'){ if(field=='outAreaTypes'||field=='inAreaTypes'||field=='itemTypes'||field=='itemStatuses'||field=='outInventoryStatuses'||field=='inInventoryStatuses'){
// //
if(value.length>0){ if(value.length>0){
if(value[value.length-1]=='全选'){ if(value[value.length-1]=='全选'){

Loading…
Cancel
Save