Browse Source

库位移动列表显示ID

库存事务展示操作人
master
zengqinyuan 4 weeks ago
parent
commit
35100bb6a1
  1. 5
      src/views/eam/item/itemLocationReplace/itemLocationReplace.data.ts
  2. 14
      src/views/eam/item/transaction/transaction.data.ts

5
src/views/eam/item/itemLocationReplace/itemLocationReplace.data.ts

@ -18,6 +18,11 @@ export const ItemLocationReplaceRules = reactive({
})
export const ItemLocationReplace = useCrudSchemas(reactive<CrudSchema[]>([
{
label: '主键',
field: 'id',
isForm: false,
},
{
label: '变更后库位编号',
field: 'locationNumber',

14
src/views/eam/item/transaction/transaction.data.ts

@ -1,5 +1,7 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import {dateFormatter} from "@/utils/formatTime";
import * as UserApi from "@/api/system/user";
const userListAll = await UserApi.getSimpleUserList()
// 表单校验
export const Rules = reactive({
@ -102,6 +104,18 @@ export const Transaction = useCrudSchemas(reactive<CrudSchema[]>([
width: 170
},
},
{
label: '操作人',
field: 'creator',
sort: 'custom',
isForm: false,
formatter: (_: Recordable, __: TableColumn, cellValue: number) => {
return userListAll.find((account) => account.id == cellValue)?.nickname
},
table: {
width: 170
},
},
// {
// label: '操作',
// field: 'action',

Loading…
Cancel
Save