|
|
@ -30,6 +30,9 @@ const queryParams = { |
|
|
|
// id 转str 否则form回显匹配不到
|
|
|
|
userDept.id = userDept.id.toString() |
|
|
|
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} 库存转移申请主表 |
|
|
@ -88,7 +91,7 @@ export const InventorymoveRequestMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
searchCondition: [ |
|
|
|
{ |
|
|
|
key: 'businessType', |
|
|
|
value: 'OkToHold', |
|
|
|
value: 'HoldToOk', |
|
|
|
isMainValue: false |
|
|
|
},{ |
|
|
|
key: 'isIn', |
|
|
@ -885,7 +888,8 @@ export const InventorymoveRequestDetail = useCrudSchemas(reactive<CrudSchema[]>( |
|
|
|
}, |
|
|
|
tableForm: { |
|
|
|
disabled: true, |
|
|
|
type: 'Select' |
|
|
|
type: 'Select', |
|
|
|
|
|
|
|
}, |
|
|
|
form: { |
|
|
|
componentProps: { |
|
|
@ -896,7 +900,7 @@ export const InventorymoveRequestDetail = useCrudSchemas(reactive<CrudSchema[]>( |
|
|
|
{ |
|
|
|
label: '到库存状态', |
|
|
|
field: 'toInventoryStatus', |
|
|
|
dictType: DICT_TYPE.INVENTORY_STATUS, |
|
|
|
// dictType: DICT_TYPE.INVENTORY_STATUS,
|
|
|
|
dictClass: 'string', |
|
|
|
isTable: true, |
|
|
|
sort: 'custom', |
|
|
@ -905,7 +909,8 @@ export const InventorymoveRequestDetail = useCrudSchemas(reactive<CrudSchema[]>( |
|
|
|
}, |
|
|
|
tableForm: { |
|
|
|
// disabled: true,
|
|
|
|
type: 'Select' |
|
|
|
type: 'Select', |
|
|
|
initOptions: option |
|
|
|
}, |
|
|
|
form: { |
|
|
|
componentProps: { |
|
|
|