Browse Source

BUG修改

master
yejiaxing 10 months ago
parent
commit
053670c0b0
  1. 2
      .env.development
  2. 2
      src/utils/dict.ts
  3. 23
      src/views/eam/item/itemApplyMain/itemApplyMain.data.ts

2
.env.development

@ -5,7 +5,7 @@ VITE_DEV=false
# 请求路径 # 请求路径
# VITE_BASE_URL='http://localhost:12080' # VITE_BASE_URL='http://localhost:12080'
VITE_BASE_URL='http://192.168.0.165:12080' VITE_BASE_URL='http://localhost:12080'
# 上传路径 # 上传路径
VITE_UPLOAD_URL='http://localhost:12080/admin-api/infra/file/upload' VITE_UPLOAD_URL='http://localhost:12080/admin-api/infra/file/upload'

2
src/utils/dict.ts

@ -289,6 +289,8 @@ export enum DICT_TYPE {
MOLD_EXECUTION_CYCLE = 'mold_execution_cycle', //模具保养周期 MOLD_EXECUTION_CYCLE = 'mold_execution_cycle', //模具保养周期
GET_ORDER_STATUS = 'get_order_status', //模具保养周期 GET_ORDER_STATUS = 'get_order_status', //模具保养周期
IS_OPEN = 'is_open', //是否打开 IS_OPEN = 'is_open', //是否打开
ITEM_APPLY_STATUS = 'item_apply_status',//备件申领状态
} }

23
src/views/eam/item/itemApplyMain/itemApplyMain.data.ts

@ -6,7 +6,7 @@ import { validateHanset, validateEmail } from '@/utils/validator'
const { t } = useI18n() // 国际化 const { t } = useI18n() // 国际化
/** /**
* @returns {Array} * @returns {Array}
*/ */
export const ItemApplyMain = useCrudSchemas(reactive<CrudSchema[]>([ export const ItemApplyMain = useCrudSchemas(reactive<CrudSchema[]>([
{ {
@ -47,31 +47,22 @@ export const ItemApplyMain = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom', sort: 'custom',
}, },
{ {
label: '是否可用', label: '状态',
field: 'available', field: 'status',
dictType: DICT_TYPE.TRUE_FALSE, sort: 'custom',
dictType: DICT_TYPE.ITEM_APPLY_STATUS,
dictClass: 'string', dictClass: 'string',
isSearch: false, isSearch: true,
isTable: true, isTable: true,
sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
tableForm: { tableForm: {
type: 'Select', type: 'Select',
inactiveValue: 'FALSE',
disabled: true disabled: true
},
form: {
component: 'Switch',
value: 'TRUE',
componentProps: {
inactiveValue: 'FALSE',
activeValue: 'TRUE'
}
} }
}, },
{ {
label: '操作', label: '操作',
field: 'action', field: 'action',
isDetail: false, isDetail: false,

Loading…
Cancel
Save