Browse Source

到库存状态只显示合格和隔离

intex_onlin20250418
张立 2 weeks ago
parent
commit
98d1ed901b
  1. 13
      src/views/wms/moveManage/inventorymove/inventorymoveRequestMainOkTOHOLD/inventorymoveRequestMain.data.ts

13
src/views/wms/moveManage/inventorymove/inventorymoveRequestMainOkTOHOLD/inventorymoveRequestMain.data.ts

@ -30,6 +30,9 @@ const queryParams = {
// id 转str 否则form回显匹配不到 // id 转str 否则form回显匹配不到
userDept.id = userDept.id.toString() userDept.id = userDept.id.toString()
const userDeptArray: any = [userDept] const userDeptArray: any = [userDept]
import { DICT_TYPE, getStrDictOptions } from '@/utils/dict'
const option = getStrDictOptions(DICT_TYPE.INVENTORY_STATUS).filter(item => item.value == 'HOLD' || item.value == 'OK')
console.log(option)
/** /**
* @returns {Array} * @returns {Array}
@ -88,7 +91,7 @@ export const InventorymoveRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
searchCondition: [ searchCondition: [
{ {
key: 'businessType', key: 'businessType',
value: 'OkToHold', value: 'HoldToOk',
isMainValue: false isMainValue: false
},{ },{
key: 'isIn', key: 'isIn',
@ -885,7 +888,8 @@ export const InventorymoveRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
}, },
tableForm: { tableForm: {
disabled: true, disabled: true,
type: 'Select' type: 'Select',
}, },
form: { form: {
componentProps: { componentProps: {
@ -896,7 +900,7 @@ export const InventorymoveRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
{ {
label: '到库存状态', label: '到库存状态',
field: 'toInventoryStatus', field: 'toInventoryStatus',
dictType: DICT_TYPE.INVENTORY_STATUS, // dictType: DICT_TYPE.INVENTORY_STATUS,
dictClass: 'string', dictClass: 'string',
isTable: true, isTable: true,
sort: 'custom', sort: 'custom',
@ -905,7 +909,8 @@ export const InventorymoveRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
}, },
tableForm: { tableForm: {
// disabled: true, // disabled: true,
type: 'Select' type: 'Select',
initOptions: option
}, },
form: { form: {
componentProps: { componentProps: {

Loading…
Cancel
Save