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',//备件出入库类型 ITEM_OUT_IN_TYPE = 'item_out_in_type',//备件出入库类型
PUSH_STATUS = 'push_status',//推送状态 PUSH_STATUS = 'push_status',//推送状态
MOLD_TIME_SYNC_STATUS = 'mold_time_sync_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' 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: '单价', label: '单价',
field: 'singlePrice', field: 'singlePrice',

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

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

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

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

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

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

Loading…
Cancel
Save