zhang_li 11 months ago
parent
commit
ed734ca4fd
  1. 52
      src/views/wms/basicDataManage/itemManage/itembasic/itembasic.data.ts
  2. 20
      src/views/wms/inventoryManage/balance/balance.data.ts

52
src/views/wms/basicDataManage/itemManage/itembasic/itembasic.data.ts

@ -437,76 +437,80 @@ export const rules = reactive({
{ validator:validateYS, message: '请输入正确的代码', trigger: 'blur'} { validator:validateYS, message: '请输入正确的代码', trigger: 'blur'}
], ],
name: [ name: [
{ required: true, message: '请输入名称', trigger: 'blur' } { required: true, message: '请输入名称', trigger: 'blur' },
{ max: 50, message: '不得超过50个字符', trigger: 'blur' },
], ],
desc1: [ desc1: [
{ required: true, message: '请输入描述1', trigger: 'blur' } { required: true, message: '请输入描述1', trigger: 'blur' },
{ max: 50, message: '不得超过50个字符', trigger: 'blur' },
], ],
desc2: [ desc2: [
{ required: true, message: '请输入描述2', trigger: 'blur' } { required: true, message: '请输入描述2', trigger: 'blur' },
{ max: 50, message: '不得超过50个字符', trigger: 'blur' },
], ],
status: [ status: [
{ required: true, message: '请选择状态', trigger: 'change' } { required: true, message: '请选择状态', trigger: 'change' },
], ],
uom: [ uom: [
{ required: true, message: '请选择计量单位', trigger: 'change' } { required: true, message: '请选择计量单位', trigger: 'change' },
], ],
altUom: [ altUom: [
{ required: true, message: '请选择替代计量单位', trigger: 'change' } { required: true, message: '请选择替代计量单位', trigger: 'change' },
], ],
isStdPack: [ isStdPack: [
{ required: true, message: '请选择是否标包', trigger: 'change' } { required: true, message: '请选择是否标包', trigger: 'change' },
], ],
enableBuy: [ enableBuy: [
{ required: true, message: '请选择是否可采购', trigger: 'change' } { required: true, message: '请选择是否可采购', trigger: 'change' },
], ],
enableMake: [ enableMake: [
{ required: true, message: '请选择是否可制造', trigger: 'change' } { required: true, message: '请选择是否可制造', trigger: 'change' },
], ],
enableOutsourcing: [ enableOutsourcing: [
{ required: true, message: '请选择是否可委外加工', trigger: 'change' } { required: true, message: '请选择是否可委外加工', trigger: 'change' },
], ],
isRecycled: [ isRecycled: [
{ required: true, message: '请选择回收件', trigger: 'change' } { required: true, message: '请选择回收件', trigger: 'change' },
], ],
isPhantom: [ isPhantom: [
{ required: true, message: '请选择虚零件', trigger: 'change' } { required: true, message: '请选择虚零件', trigger: 'change' },
], ],
abcClass: [ abcClass: [
{ required: true, message: '请选择ABC类', trigger: 'change' } { required: true, message: '请选择ABC类', trigger: 'change' },
], ],
type: [ type: [
{ required: true, message: '请选择类型', trigger: 'change' } { required: true, message: '请选择类型', trigger: 'change' },
], ],
category: [ category: [
{ required: true, message: '请选择种类', trigger: 'change' } { required: true, message: '请选择种类', trigger: 'change' },
], ],
itemGroup: [ itemGroup: [
{ required: true, message: '请选择分组', trigger: 'change' } { required: true, message: '请选择分组', trigger: 'change' },
], ],
color: [ color: [
{ required: true, message: '请选择颜色', trigger: 'change' } { required: true, message: '请选择颜色', trigger: 'change' },
], ],
configuration: [ configuration: [
{ required: true, message: '请选择配置', trigger: 'change' } { required: true, message: '请选择配置', trigger: 'change' },
], ],
project: [ project: [
{ required: true, message: '请输入项目', trigger: 'blur' } { required: true, message: '请输入项目', trigger: 'blur' },
{ max: 50, message: '不得超过50个字符', trigger: 'blur' },
], ],
eqLevel: [ eqLevel: [
{ required: true, message: '请选择质量等级', trigger: 'change' } { required: true, message: '请选择质量等级', trigger: 'change' },
], ],
validityDays: [ validityDays: [
{ required: true, message: '请输入有效天数', trigger: 'change' } { required: true, message: '请输入有效天数', trigger: 'change' },
], ],
available: [ available: [
{ required: true, message: '请选择是否可用', trigger: 'change' } { required: true, message: '请选择是否可用', trigger: 'change' },
], ],
activeTime: [ activeTime: [
{ required: true, message: '请输入生效时间', trigger: 'change' } { required: true, message: '请输入生效时间', trigger: 'change' },
], ],
expireTime: [ expireTime: [
{ required: true, message: '请输入失效时间', trigger: 'change' } { required: true, message: '请输入失效时间', trigger: 'change' },
], ],
}) })
console.log(Itembasic) console.log(Itembasic)

20
src/views/wms/inventoryManage/balance/balance.data.ts

@ -54,8 +54,8 @@ export const Balance = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '计量单位', label: '计量单位',
field: 'uom', field: 'uom',
dictType: DICT_TYPE.UOM, // dictType: DICT_TYPE.UOM,
dictClass: 'string', // dictClass: 'string',
isTable: true, isTable: true,
sort: 'custom', sort: 'custom',
table: { table: {
@ -82,8 +82,8 @@ export const Balance = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '库存状态', label: '库存状态',
field: 'inventoryStatus', field: 'inventoryStatus',
dictType: DICT_TYPE.INVENTORY_STATUS, // dictType: DICT_TYPE.INVENTORY_STATUS,
dictClass: 'string', // dictClass: 'string',
isTable: true, isTable: true,
sort: 'custom', sort: 'custom',
table: { table: {
@ -109,8 +109,8 @@ export const Balance = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: 'ERP库位代码', label: 'ERP库位代码',
field: 'erpLocationCode', field: 'erpLocationCode',
dictType: DICT_TYPE.ERP_LOCATION, // dictType: DICT_TYPE.ERP_LOCATION,
dictClass: 'string', // dictClass: 'string',
isTable: true, isTable: true,
sort: 'custom', sort: 'custom',
table: { table: {
@ -256,8 +256,8 @@ export const Balance = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '是否冻结', label: '是否冻结',
field: 'frozen', field: 'frozen',
dictType: DICT_TYPE.TRUE_FALSE, // dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string', // dictClass: 'string',
isTable: true, isTable: true,
sort: 'custom', sort: 'custom',
table: { table: {
@ -275,8 +275,8 @@ export const Balance = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '冻结原因', label: '冻结原因',
field: 'frozenReason', field: 'frozenReason',
dictType: DICT_TYPE.FROZEN_REASON, // dictType: DICT_TYPE.FROZEN_REASON,
dictClass: 'string', // dictClass: 'string',
isTable: true, isTable: true,
sort: 'custom', sort: 'custom',
table: { table: {

Loading…
Cancel
Save