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

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

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

Loading…
Cancel
Save