Browse Source

备件管理增加采购方式(OA采购、电商采购),物料类型字段

master
叶佳兴 2 weeks ago
parent
commit
0a7a2407f6
  1. 2
      src/utils/dict.ts
  2. 21
      src/views/eam/basic/item/item.data.ts
  3. 6
      src/views/eam/basic/location/location.data.ts
  4. 28
      src/views/eam/item/itemInLocation/itemInLocation.data.ts
  5. 19
      src/views/eam/item/itemOutLocation/itemOutLocation.data.ts

2
src/utils/dict.ts

@ -313,5 +313,7 @@ export enum DICT_TYPE {
ITEM_OUT_IN_TYPE = 'item_out_in_type',//备件出入库类型
PUSH_STATUS = 'push_status',//推送状态
MOLD_TIME_SYNC_STATUS = 'mold_time_sync_status',//模具时间同步状态
PURCHASE_WAY = 'purchase_way',//模具时间同步状态
}

21
src/views/eam/basic/item/item.data.ts

@ -142,6 +142,27 @@ export const Item = useCrudSchemas(reactive<CrudSchema[]>([
type: 'Select'
}
},
{
label: '采购方式',
field: 'purchaseWay',
sort: 'custom',
dictType: DICT_TYPE.PURCHASE_WAY,
dictClass: 'string',
isSearch: false,
isTable: true,
tableForm: {
type: 'Select'
}
},
{
label: '物料类型',
field: 'itemType',
sort: 'custom',
isSearch: true,
table: {
width: 110,
},
},
{
label: '单价',
field: 'singlePrice',

6
src/views/eam/basic/location/location.data.ts

@ -38,6 +38,12 @@ export const Location = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom',
isSearch: true,
},
{
label: '备件编号',
field: 'itemNumber',
sort: 'custom',
isSearch: true,
},
{
label: '库区编号',
field: 'areaNumber',

28
src/views/eam/item/itemInLocation/itemInLocation.data.ts

@ -16,45 +16,30 @@ export const ItemInLocation = useCrudSchemas(reactive<CrudSchema[]>([
field: 'number',
sort: 'custom',
isSearch: true,
table: {
width: 150
},
},
{
label: '备件编号',
field: 'itemNumber',
sort: 'custom',
isSearch: true,
table: {
width: 150
},
},
{
label: '备件名称',
field: 'name',
sort: 'custom',
isSearch: true,
table: {
width: 180,
},
},
{
label: '库位编号',
field: 'locationNumber',
sort: 'custom',
isSearch: true,
table: {
width: 150
},
},
{
label: '规格型号',
field: 'specifications',
sort: 'custom',
isTable: true,
table: {
width: 150
},
},
{
label: '类型',
@ -63,9 +48,6 @@ export const ItemInLocation = useCrudSchemas(reactive<CrudSchema[]>([
isSearch: false,
dictType: DICT_TYPE.ITEM_OUT_IN_TYPE,
dictClass: 'string',
table: {
width: 150
},
form: {
component: 'Select'
},
@ -75,9 +57,6 @@ export const ItemInLocation = useCrudSchemas(reactive<CrudSchema[]>([
field: 'qty',
sort: 'custom',
isSearch: false,
table: {
width: 150
},
},
{
label: '创建人',
@ -87,9 +66,6 @@ export const ItemInLocation = useCrudSchemas(reactive<CrudSchema[]>([
formatter: (_: Recordable, __: TableColumn, cellValue: number) => {
return userListAll.find((account) => account.id == cellValue)?.nickname
},
table: {
width: 150
},
},
{
label: '创建时间',
@ -97,9 +73,6 @@ export const ItemInLocation = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom',
formatter: dateFormatter,
isSearch: true,
table: {
width: 150
},
search: {
component: 'DatePicker',
componentProps: {
@ -115,7 +88,6 @@ export const ItemInLocation = useCrudSchemas(reactive<CrudSchema[]>([
field: 'action',
isForm: false,
table: {
width: 150,
fixed: 'right'
}
}

19
src/views/eam/item/itemOutLocation/itemOutLocation.data.ts

@ -14,27 +14,18 @@ export const ItemOutLocation = useCrudSchemas(reactive<CrudSchema[]>([
field: 'number',
sort: 'custom',
isSearch: true,
table: {
width: 180,
},
},
{
label: '备件名称',
field: 'name',
sort: 'custom',
isSearch: true,
table: {
width: 180,
},
},
{
label: '库位编号',
field: 'locationNumber',
sort: 'custom',
isSearch: true,
table: {
width: 180,
},
},
{
label: '类型',
@ -46,18 +37,12 @@ export const ItemOutLocation = useCrudSchemas(reactive<CrudSchema[]>([
form: {
component: 'Select'
},
table: {
width: 180,
},
},
{
label: '数量',
field: 'qty',
sort: 'custom',
isSearch: false,
table: {
width: 180,
},
},
{
@ -66,9 +51,6 @@ export const ItemOutLocation = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom',
formatter: dateFormatter,
isTable: true,
table: {
width: 180,
},
isForm: false
},
{
@ -76,7 +58,6 @@ export const ItemOutLocation = useCrudSchemas(reactive<CrudSchema[]>([
field: 'action',
isForm: false,
table: {
width: 150,
fixed: 'right'
}
}

Loading…
Cancel
Save