Browse Source

时间

master
李达明 1 month ago
parent
commit
6907260532
  1. 4
      src/api/battery/cellDevice/index.ts
  2. 2
      src/api/battery/monomer/index.ts
  3. 1
      src/utils/dict.ts
  4. 15
      src/views/battery/monomer/monomer.data.ts

4
src/api/battery/cellDevice/index.ts

@ -11,7 +11,9 @@ export interface CellDeviceVO {
oneInjectCpk: number
finalInjectRetenCpk: number
}
export const getCellDeviceMonomerList = async (id: number) => {
return await request.get({ url: `/battery/cellDevice/monomerList?id=` + id })
}
// 查询battery_cell_device列表
export const getCellDevicePage = async (params) => {
if (params.isSearch) {

2
src/api/battery/monomer/index.ts

@ -2,7 +2,7 @@ import request from '@/config/axios'
export interface MonomerVO {
id: number
release:String
sending:String
version: String
date: String
name: String

1
src/utils/dict.ts

@ -188,6 +188,7 @@ export enum DICT_TYPE {
UOM = 'uom', // 计量单位
REWORK = 'rework', // 返工品
BATTERY_TYPE = 'battery_type', // 返工品
BATTERY_SENDING = 'battery_sending', // 返工品
IN_BOUND_RST = 'inBoundRst', // 返工品
IN_BOUND_FINSH = 'inBoundFinsh', // 返工品
ABC_CLASS = 'abc_class', // ABC类

15
src/views/battery/monomer/monomer.data.ts

@ -50,6 +50,7 @@ export const Monomer = useCrudSchemas(reactive<CrudSchema[]>([
field: 'date',
sort: 'custom',
isSearch: false,
formatter: dateFormatter,
form: {
component: 'DatePicker',
componentProps: {
@ -63,6 +64,7 @@ export const Monomer = useCrudSchemas(reactive<CrudSchema[]>([
field: 'timeStamp',
sort: 'custom',
isSearch: false,
formatter: dateFormatter,
form: {
component: 'DatePicker',
componentProps: {
@ -82,6 +84,7 @@ export const Monomer = useCrudSchemas(reactive<CrudSchema[]>([
field: 'endTime',
sort: 'custom',
isSearch: false,
formatter: dateFormatter,
form: {
component: 'DatePicker',
componentProps: {
@ -132,6 +135,18 @@ export const Monomer = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom',
isSearch: false,
},
{
label: '发布',
field: 'sending',
sort: 'custom',
isSearch: false,
dictType: DICT_TYPE.BATTERY_SENDING,
dictClass: 'string',
isTable: true,
tableForm: {
type: 'Select'
}
},
// {
// label: '一次注液',
// field: 'oneInjectPreCpk',

Loading…
Cancel
Save