Browse Source

修改

master_hella_20240701
zhaoxuebing 10 months ago
parent
commit
7f38cd3797
  1. 146
      src/views/wms/basicDataManage/itemManage/itemarea/itemarea.data.ts
  2. 33
      src/views/wms/basicDataManage/itemManage/itemwarehouse/itemwarehouse.data.ts

146
src/views/wms/basicDataManage/itemManage/itemarea/itemarea.data.ts

@ -14,7 +14,7 @@ export const Itemarea = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
table: { table: {
width: 120, width: 150,
fixed: 'left' fixed: 'left'
}, },
form: { form: {
@ -42,8 +42,7 @@ export const Itemarea = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
table: { table: {
width: 120, width: 150
fixed: 'left'
}, },
form: { form: {
// labelMessage: '信息提示说明!!!', // labelMessage: '信息提示说明!!!',
@ -70,7 +69,7 @@ export const Itemarea = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
table: { table: {
width: 140 width: 150
}, },
form: { form: {
// labelMessage: '信息提示说明!!!', // labelMessage: '信息提示说明!!!',
@ -97,7 +96,7 @@ export const Itemarea = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
table: { table: {
width: 140 width: 150
}, },
form: { form: {
// labelMessage: '信息提示说明!!!', // labelMessage: '信息提示说明!!!',
@ -123,7 +122,7 @@ export const Itemarea = useCrudSchemas(reactive<CrudSchema[]>([
field: 'maxQty', field: 'maxQty',
sort: 'custom', sort: 'custom',
table: { table: {
width: 140 width: 150
}, },
form: { form: {
component: 'InputNumber', component: 'InputNumber',
@ -138,7 +137,7 @@ export const Itemarea = useCrudSchemas(reactive<CrudSchema[]>([
field: 'minQty', field: 'minQty',
sort: 'custom', sort: 'custom',
table: { table: {
width: 140 width: 150
}, },
form: { form: {
component: 'InputNumber', component: 'InputNumber',
@ -189,7 +188,7 @@ export const Itemarea = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
table: { table: {
width: 140 width: 150
}, },
form: { form: {
// labelMessage: '信息提示说明!!!', // labelMessage: '信息提示说明!!!',
@ -215,7 +214,7 @@ export const Itemarea = useCrudSchemas(reactive<CrudSchema[]>([
field: 'repleinshQty', field: 'repleinshQty',
sort: 'custom', sort: 'custom',
table: { table: {
width: 120 width: 150
}, },
form: { form: {
component: 'InputNumber', component: 'InputNumber',
@ -225,6 +224,59 @@ export const Itemarea = useCrudSchemas(reactive<CrudSchema[]>([
} }
}, },
}, },
{
label: '管理精度',
field: 'manageMode',
sort: 'custom',
isSearch: true,
dictType: DICT_TYPE.MANAGEMENT_MODE,
dictClass: 'string',
// colorType: 'danger',
isTable: true,
table: {
width: 150
},
},
{
label: '入库自动转为出库包装规格',
field: 'newlyToOutpackunit',
sort: 'custom',
dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string',
// colorType: 'danger',
isTable: true,
table: {
width: 150
},
form: {
component: 'Switch',
value: 'TRUE',
componentProps: {
inactiveValue: 'FALSE',
activeValue: 'TRUE'
}
},
},
{
label: '出库自动转为出库包装规格',
field: 'surplusToOutpackunit',
sort: 'custom',
dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string',
// colorType: 'danger',
isTable: true,
table: {
width: 150
},
form: {
component: 'Switch',
value: 'TRUE',
componentProps: {
inactiveValue: 'FALSE',
activeValue: 'TRUE'
}
},
},
{ {
label: '需要接收确认', label: '需要接收确认',
field: 'needReceive', field: 'needReceive',
@ -234,7 +286,7 @@ export const Itemarea = useCrudSchemas(reactive<CrudSchema[]>([
// colorType: 'danger', // colorType: 'danger',
isTable: true, isTable: true,
table: { table: {
width: 140 width: 150
}, },
form: { form: {
component: 'Switch', component: 'Switch',
@ -255,7 +307,7 @@ export const Itemarea = useCrudSchemas(reactive<CrudSchema[]>([
// colorType: 'danger', // colorType: 'danger',
isTable: true, isTable: true,
table: { table: {
width: 120 width: 150
}, },
form: { form: {
component: 'Switch', component: 'Switch',
@ -275,7 +327,7 @@ export const Itemarea = useCrudSchemas(reactive<CrudSchema[]>([
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD HH:mm:ss'
}, },
table: { table: {
width: 180 width: 150
} , } ,
form: { form: {
component: 'DatePicker', component: 'DatePicker',
@ -294,7 +346,7 @@ export const Itemarea = useCrudSchemas(reactive<CrudSchema[]>([
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD HH:mm:ss'
}, },
table: { table: {
width: 180 width: 150
} , } ,
form: { form: {
component: 'DatePicker', component: 'DatePicker',
@ -304,14 +356,6 @@ export const Itemarea = useCrudSchemas(reactive<CrudSchema[]>([
} }
}, },
}, },
{
label: '备注',
field: 'remark',
sort: 'custom',
table: {
width: 120
} ,
},
{ {
label: '创建时间', label: '创建时间',
field: 'createTime', field: 'createTime',
@ -330,8 +374,9 @@ export const Itemarea = useCrudSchemas(reactive<CrudSchema[]>([
field: 'creator', field: 'creator',
sort: 'custom', sort: 'custom',
isForm: false, isForm: false,
isTable: false,
table: { table: {
width: 120 width: 150
}, },
}, },
{ {
@ -340,11 +385,12 @@ export const Itemarea = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom', sort: 'custom',
formatter: dateFormatter, formatter: dateFormatter,
isForm: false, isForm: false,
isTable: false,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD HH:mm:ss'
}, },
table: { table: {
width: 180 width: 150
}, },
}, },
{ {
@ -352,62 +398,18 @@ export const Itemarea = useCrudSchemas(reactive<CrudSchema[]>([
field: 'updater', field: 'updater',
sort: 'custom', sort: 'custom',
isForm: false, isForm: false,
isTable: false,
table: { table: {
width: 120 width: 150
},
},
{
label: '管理精度',
field: 'manageMode',
sort: 'custom',
isSearch: true,
dictType: DICT_TYPE.MANAGEMENT_MODE,
dictClass: 'string',
// colorType: 'danger',
isTable: true,
table: {
width: 120
},
},
{
label: '入库自动转为出库包装规格',
field: 'newlyToOutpackunit',
sort: 'custom',
dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string',
// colorType: 'danger',
isTable: true,
table: {
width: 120
},
form: {
component: 'Switch',
value: 'TRUE',
componentProps: {
inactiveValue: 'FALSE',
activeValue: 'TRUE'
}
}, },
}, },
{ {
label: '出库自动转为出库包装规格', label: '备注',
field: 'surplusToOutpackunit', field: 'remark',
sort: 'custom', sort: 'custom',
dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string',
// colorType: 'danger',
isTable: true,
table: { table: {
width: 120 width: 120
}, } ,
form: {
component: 'Switch',
value: 'TRUE',
componentProps: {
inactiveValue: 'FALSE',
activeValue: 'TRUE'
}
},
}, },
{ {
label: '操作', label: '操作',

33
src/views/wms/basicDataManage/itemManage/itemwarehouse/itemwarehouse.data.ts

@ -7,15 +7,6 @@ import { Area } from '../../factoryModeling/areabasic/areabasic.data'
import * as PackageunitApi from '@/api/wms/packageunit' import * as PackageunitApi from '@/api/wms/packageunit'
import { Packageunit } from '../packageunit/packageunit.data' import { Packageunit } from '../packageunit/packageunit.data'
// 表单校验
export const ItemwarehouseRules = reactive({
itemCode: [required],
warehouseCode: [required],
manageMode: [required],
packUnit: [required],
available: [required],
})
export const Itemwarehouse = useCrudSchemas(reactive<CrudSchema[]>([ export const Itemwarehouse = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '物品代码', label: '物品代码',
@ -113,6 +104,21 @@ export const Itemwarehouse = useCrudSchemas(reactive<CrudSchema[]>([
label: '是否可用', label: '是否可用',
field: 'available', field: 'available',
sort: 'custom', sort: 'custom',
dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string',
// colorType: 'danger',
isTable: true,
table: {
width: 120
},
form: {
component: 'Switch',
value: 'TRUE',
componentProps: {
inactiveValue: 'FALSE',
activeValue: 'TRUE'
}
}
}, },
{ {
label: '生效时间', label: '生效时间',
@ -198,3 +204,12 @@ export const Itemwarehouse = useCrudSchemas(reactive<CrudSchema[]>([
} }
} }
])) ]))
// 表单校验
export const ItemwarehouseRules = reactive({
itemCode: [required],
warehouseCode: [required],
manageMode: [required],
packUnit: [required],
available: [required],
})

Loading…
Cancel
Save