From 3c155cbfdbb1f908096251c65e7c908b38a7b1d0 Mon Sep 17 00:00:00 2001 From: zhang_li <2235006734@qqq.com> Date: Tue, 2 Jan 2024 14:03:22 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A0=E5=AD=97=E7=AC=A6=E9=95=BF=E5=BA=A6?= =?UTF-8?q?=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../enterprise/enterprise.data.ts | 24 ++++++++++++++++--- .../factoryModeling/location/location.data.ts | 2 +- .../arrivalInspectionStrategy/AddForm.vue | 6 ++--- .../strategy/batchStrategy/AddForm.vue | 6 ++--- .../strategy/downShelfStrategy/AddForm.vue | 6 ++--- .../strategy/inspectStrategy/AddForm.vue | 6 ++--- .../manageAccuracyStrategy/AddForm.vue | 6 ++--- .../purchaseReceiptStrategy/AddForm.vue | 6 ++--- .../repairMaterialStrategy/AddForm.vue | 6 ++--- .../storageCapacityStrategy/AddForm.vue | 6 ++--- .../supplieDeliveryStrategy/AddForm.vue | 6 ++--- .../strategy/upShelfStrategy/AddForm.vue | 6 ++--- .../utensilCapacityStrategy/AddForm.vue | 6 ++--- .../warehouseStorageStrategy/AddForm.vue | 6 ++--- .../accountcalendar/accountcalendar.data.ts | 6 +++++ .../currencyexchange/currencyexchange.data.ts | 3 +++ .../systemcalendar/systemcalendar.data.ts | 6 ++++- 17 files changed, 72 insertions(+), 41 deletions(-) diff --git a/src/views/wms/basicDataManage/factoryModeling/enterprise/enterprise.data.ts b/src/views/wms/basicDataManage/factoryModeling/enterprise/enterprise.data.ts index 69683a76f..40d976f8d 100644 --- a/src/views/wms/basicDataManage/factoryModeling/enterprise/enterprise.data.ts +++ b/src/views/wms/basicDataManage/factoryModeling/enterprise/enterprise.data.ts @@ -3,9 +3,27 @@ import { dateFormatter } from '@/utils/formatTime' // 表单校验 export const EnterpriseRules = reactive({ - code: [required], - shortName: [required], - available: [required], + code: [ + { required: true, message: '请输入代码', trigger: 'blur' }, + { max: 50, message: '不得超过50个字符', trigger: 'blur' } + ], + name: [ + { max: 50, message: '不得超过50个字符', trigger: 'blur' } + ], + shortName: [ + { required: true, message: '请输入简称', trigger: 'blur' }, + { max: 50, message: '不得超过50个字符', trigger: 'blur' } + ], + available: [ + { required: true, message: '请输入代码', trigger: 'blur' }, + { max: 50, message: '不得超过50个字符', trigger: 'blur' } + ], + address: [ + { max: 50, message: '不得超过50个字符', trigger: 'blur' } + ], + remark: [ + { max: 50, message: '不得超过50个字符', trigger: 'blur' } + ], }) export const Enterprise = useCrudSchemas(reactive([ diff --git a/src/views/wms/basicDataManage/factoryModeling/location/location.data.ts b/src/views/wms/basicDataManage/factoryModeling/location/location.data.ts index 34ac8f654..3b4665a48 100644 --- a/src/views/wms/basicDataManage/factoryModeling/location/location.data.ts +++ b/src/views/wms/basicDataManage/factoryModeling/location/location.data.ts @@ -400,7 +400,7 @@ export const LocationRules = reactive({ { required: true, message: '请输入库位组代码', trigger: 'change' } ], erpLocationCode: [ - { required: true, message: '请选择ERP库位代码', trigger: 'change' } + { required: true, message: '请选择ERP库位类型', trigger: 'change' } ], type: [ { required: true, message: '请选择类型', trigger: 'change' } diff --git a/src/views/wms/basicDataManage/strategySetting/strategy/arrivalInspectionStrategy/AddForm.vue b/src/views/wms/basicDataManage/strategySetting/strategy/arrivalInspectionStrategy/AddForm.vue index c3e5e0037..1998ec241 100644 --- a/src/views/wms/basicDataManage/strategySetting/strategy/arrivalInspectionStrategy/AddForm.vue +++ b/src/views/wms/basicDataManage/strategySetting/strategy/arrivalInspectionStrategy/AddForm.vue @@ -189,9 +189,9 @@ const formData = ref({ // 验证规则 const rules = ref({ - strategyCode: [{ required: true, message: '请输入代码', trigger: 'blur' }], - name: [{ required: true, message: '请输入名字', trigger: 'blur' }], - description: [{ required: true, message: '请输入描述', trigger: 'blur' }], + strategyCode: [{ required: true, message: '请输入代码', trigger: 'blur' },{ max: 50, message: '不得超过50个字符', trigger: 'blur' }], + name: [{ required: true, message: '请输入名字', trigger: 'blur' },{ max: 50, message: '不得超过50个字符', trigger: 'blur' }], + description: [{ required: true, message: '请输入描述', trigger: 'blur' },{ max: 50, message: '不得超过50个字符', trigger: 'blur' }], priority: [{ required: true, message: '请输入优先级', trigger: 'blur' }] }) diff --git a/src/views/wms/basicDataManage/strategySetting/strategy/batchStrategy/AddForm.vue b/src/views/wms/basicDataManage/strategySetting/strategy/batchStrategy/AddForm.vue index b75b1e6cb..d620567e3 100644 --- a/src/views/wms/basicDataManage/strategySetting/strategy/batchStrategy/AddForm.vue +++ b/src/views/wms/basicDataManage/strategySetting/strategy/batchStrategy/AddForm.vue @@ -305,9 +305,9 @@ const formData = ref({ }) // 验证规则 const rules = ref({ - strategyCode: [{ required: true, message: '请输入代码', trigger: 'blur' }], - name: [{ required: true, message: '请输入名字', trigger: 'blur' }], - description: [{ required: true, message: '请输入描述', trigger: 'blur' }], + strategyCode: [{ required: true, message: '请输入代码', trigger: 'blur' },{ max: 50, message: '不得超过50个字符', trigger: 'blur' }], + name: [{ required: true, message: '请输入名字', trigger: 'blur' },{ max: 50, message: '不得超过50个字符', trigger: 'blur' }], + description: [{ required: true, message: '请输入描述', trigger: 'blur' },{ max: 50, message: '不得超过50个字符', trigger: 'blur' }], priority: [{ required: true, message: '请输入优先级', trigger: 'blur' }], configurationRules: [{ required: true, message: '规则配置请填写完全', trigger: 'blur' }] }) diff --git a/src/views/wms/basicDataManage/strategySetting/strategy/downShelfStrategy/AddForm.vue b/src/views/wms/basicDataManage/strategySetting/strategy/downShelfStrategy/AddForm.vue index 37de27bff..805736a57 100644 --- a/src/views/wms/basicDataManage/strategySetting/strategy/downShelfStrategy/AddForm.vue +++ b/src/views/wms/basicDataManage/strategySetting/strategy/downShelfStrategy/AddForm.vue @@ -635,9 +635,9 @@ const formData = ref({ }) // 验证规则 const rules = ref({ - strategyCode: [{ required: true, message: '请输入代码', trigger: 'blur' }], - name: [{ required: true, message: '请输入名字', trigger: 'blur' }], - description: [{ required: true, message: '请输入描述', trigger: 'blur' }], + strategyCode: [{ required: true, message: '请输入代码', trigger: 'blur' },{ max: 50, message: '不得超过50个字符', trigger: 'blur' }], + name: [{ required: true, message: '请输入名字', trigger: 'blur' },{ max: 50, message: '不得超过50个字符', trigger: 'blur' }], + description: [{ required: true, message: '请输入描述', trigger: 'blur' },{ max: 50, message: '不得超过50个字符', trigger: 'blur' }], priority: [{ required: true, message: '请输入优先级', trigger: 'blur' }] }) diff --git a/src/views/wms/basicDataManage/strategySetting/strategy/inspectStrategy/AddForm.vue b/src/views/wms/basicDataManage/strategySetting/strategy/inspectStrategy/AddForm.vue index de41e509a..56fb59ebe 100644 --- a/src/views/wms/basicDataManage/strategySetting/strategy/inspectStrategy/AddForm.vue +++ b/src/views/wms/basicDataManage/strategySetting/strategy/inspectStrategy/AddForm.vue @@ -292,9 +292,9 @@ const formData = ref({ // 验证规则 const rules = ref({ - strategyCode: [{ required: true, message: '请输入代码', trigger: 'blur' }], - name: [{ required: true, message: '请输入名字', trigger: 'blur' }], - description: [{ required: true, message: '请输入描述', trigger: 'blur' }], + strategyCode: [{ required: true, message: '请输入代码', trigger: 'blur' },{ max: 50, message: '不得超过50个字符', trigger: 'blur' }], + name: [{ required: true, message: '请输入名字', trigger: 'blur' },{ max: 50, message: '不得超过50个字符', trigger: 'blur' }], + description: [{ required: true, message: '请输入描述', trigger: 'blur' },{ max: 50, message: '不得超过50个字符', trigger: 'blur' }], priority: [{ required: true, message: '请输入优先级', trigger: 'blur' }], configurationRules: [{ required: true, message: '抽奖规则请填写完全', trigger: 'blur' }] }) diff --git a/src/views/wms/basicDataManage/strategySetting/strategy/manageAccuracyStrategy/AddForm.vue b/src/views/wms/basicDataManage/strategySetting/strategy/manageAccuracyStrategy/AddForm.vue index e33f74b7d..104ef8fc6 100644 --- a/src/views/wms/basicDataManage/strategySetting/strategy/manageAccuracyStrategy/AddForm.vue +++ b/src/views/wms/basicDataManage/strategySetting/strategy/manageAccuracyStrategy/AddForm.vue @@ -358,9 +358,9 @@ const formData = ref({ }) // 验证规则 const rules = ref({ - strategyCode: [{ required: true, message: '请输入代码', trigger: 'blur' }], - name: [{ required: true, message: '请输入名字', trigger: 'blur' }], - description: [{ required: true, message: '请输入描述', trigger: 'blur' }], + strategyCode: [{ required: true, message: '请输入代码', trigger: 'blur' },{ max: 50, message: '不得超过50个字符', trigger: 'blur' }], + name: [{ required: true, message: '请输入名字', trigger: 'blur' },{ max: 50, message: '不得超过50个字符', trigger: 'blur' }], + description: [{ required: true, message: '请输入描述', trigger: 'blur' },{ max: 50, message: '不得超过50个字符', trigger: 'blur' }], priority: [{ required: true, message: '请输入优先级', trigger: 'blur' }] }) diff --git a/src/views/wms/basicDataManage/strategySetting/strategy/purchaseReceiptStrategy/AddForm.vue b/src/views/wms/basicDataManage/strategySetting/strategy/purchaseReceiptStrategy/AddForm.vue index 38ddd263e..b506b0325 100644 --- a/src/views/wms/basicDataManage/strategySetting/strategy/purchaseReceiptStrategy/AddForm.vue +++ b/src/views/wms/basicDataManage/strategySetting/strategy/purchaseReceiptStrategy/AddForm.vue @@ -201,9 +201,9 @@ const formData = ref({ // 验证规则 const rules = ref({ - strategyCode: [{ required: true, message: '请输入代码', trigger: 'blur' }], - name: [{ required: true, message: '请输入名字', trigger: 'blur' }], - description: [{ required: true, message: '请输入描述', trigger: 'blur' }], + strategyCode: [{ required: true, message: '请输入代码', trigger: 'blur' },{ max: 50, message: '不得超过50个字符', trigger: 'blur' }], + name: [{ required: true, message: '请输入名字', trigger: 'blur' },{ max: 50, message: '不得超过50个字符', trigger: 'blur' }], + description: [{ required: true, message: '请输入描述', trigger: 'blur' },{ max: 50, message: '不得超过50个字符', trigger: 'blur' }], priority: [{ required: true, message: '请输入优先级', trigger: 'blur' }] }) diff --git a/src/views/wms/basicDataManage/strategySetting/strategy/repairMaterialStrategy/AddForm.vue b/src/views/wms/basicDataManage/strategySetting/strategy/repairMaterialStrategy/AddForm.vue index 213d6c827..5f5979439 100644 --- a/src/views/wms/basicDataManage/strategySetting/strategy/repairMaterialStrategy/AddForm.vue +++ b/src/views/wms/basicDataManage/strategySetting/strategy/repairMaterialStrategy/AddForm.vue @@ -328,9 +328,9 @@ const formData = ref({ // 验证规则 const rules = ref({ - strategyCode: [{ required: true, message: '请输入代码', trigger: 'blur' }], - name: [{ required: true, message: '请输入名字', trigger: 'blur' }], - description: [{ required: true, message: '请输入描述', trigger: 'blur' }], + strategyCode: [{ required: true, message: '请输入代码', trigger: 'blur' },{ max: 50, message: '不得超过50个字符', trigger: 'blur' }], + name: [{ required: true, message: '请输入名字', trigger: 'blur' },{ max: 50, message: '不得超过50个字符', trigger: 'blur' }], + description: [{ required: true, message: '请输入描述', trigger: 'blur' },{ max: 50, message: '不得超过50个字符', trigger: 'blur' }], priority: [{ required: true, message: '请输入优先级', trigger: 'blur' }] }) diff --git a/src/views/wms/basicDataManage/strategySetting/strategy/storageCapacityStrategy/AddForm.vue b/src/views/wms/basicDataManage/strategySetting/strategy/storageCapacityStrategy/AddForm.vue index da1fe5725..000aa8bb3 100644 --- a/src/views/wms/basicDataManage/strategySetting/strategy/storageCapacityStrategy/AddForm.vue +++ b/src/views/wms/basicDataManage/strategySetting/strategy/storageCapacityStrategy/AddForm.vue @@ -329,9 +329,9 @@ const formData = ref({ }) // 验证规则 const rules = ref({ - strategyCode: [{ required: true, message: '请输入代码', trigger: 'blur' }], - name: [{ required: true, message: '请输入名字', trigger: 'blur' }], - description: [{ required: true, message: '请输入描述', trigger: 'blur' }], + strategyCode: [{ required: true, message: '请输入代码', trigger: 'blur' },{ max: 50, message: '不得超过50个字符', trigger: 'blur' }], + name: [{ required: true, message: '请输入名字', trigger: 'blur' },{ max: 50, message: '不得超过50个字符', trigger: 'blur' }], + description: [{ required: true, message: '请输入描述', trigger: 'blur' },{ max: 50, message: '不得超过50个字符', trigger: 'blur' }], priority: [{ required: true, message: '请输入优先级', trigger: 'blur' }] }) diff --git a/src/views/wms/basicDataManage/strategySetting/strategy/supplieDeliveryStrategy/AddForm.vue b/src/views/wms/basicDataManage/strategySetting/strategy/supplieDeliveryStrategy/AddForm.vue index 67fdf4fd3..d4e869471 100644 --- a/src/views/wms/basicDataManage/strategySetting/strategy/supplieDeliveryStrategy/AddForm.vue +++ b/src/views/wms/basicDataManage/strategySetting/strategy/supplieDeliveryStrategy/AddForm.vue @@ -297,9 +297,9 @@ const formData = ref({ // 验证规则 const rules = ref({ - strategyCode: [{ required: true, message: '请输入代码', trigger: 'blur' }], - name: [{ required: true, message: '请输入名字', trigger: 'blur' }], - description: [{ required: true, message: '请输入描述', trigger: 'blur' }], + strategyCode: [{ required: true, message: '请输入代码', trigger: 'blur' },{ max: 50, message: '不得超过50个字符', trigger: 'blur' }], + name: [{ required: true, message: '请输入名字', trigger: 'blur' },{ max: 50, message: '不得超过50个字符', trigger: 'blur' }], + description: [{ required: true, message: '请输入描述', trigger: 'blur' },{ max: 50, message: '不得超过50个字符', trigger: 'blur' }], priority: [{ required: true, message: '请输入优先级', trigger: 'blur' }] }) diff --git a/src/views/wms/basicDataManage/strategySetting/strategy/upShelfStrategy/AddForm.vue b/src/views/wms/basicDataManage/strategySetting/strategy/upShelfStrategy/AddForm.vue index cf7f2a5f6..646b4d61c 100644 --- a/src/views/wms/basicDataManage/strategySetting/strategy/upShelfStrategy/AddForm.vue +++ b/src/views/wms/basicDataManage/strategySetting/strategy/upShelfStrategy/AddForm.vue @@ -578,9 +578,9 @@ const formData = ref({ }) // 验证规则 const rules = ref({ - strategyCode: [{ required: true, message: '请输入代码', trigger: 'blur' }], - name: [{ required: true, message: '请输入名字', trigger: 'blur' }], - description: [{ required: true, message: '请输入描述', trigger: 'blur' }], + strategyCode: [{ required: true, message: '请输入代码', trigger: 'blur' },{ max: 50, message: '不得超过50个字符', trigger: 'blur' }], + name: [{ required: true, message: '请输入名字', trigger: 'blur' },{ max: 50, message: '不得超过50个字符', trigger: 'blur' }], + description: [{ required: true, message: '请输入描述', trigger: 'blur' },{ max: 50, message: '不得超过50个字符', trigger: 'blur' }], priority: [{ required: true, message: '请输入优先级', trigger: 'blur' }] }) diff --git a/src/views/wms/basicDataManage/strategySetting/strategy/utensilCapacityStrategy/AddForm.vue b/src/views/wms/basicDataManage/strategySetting/strategy/utensilCapacityStrategy/AddForm.vue index 76745dc4e..3a4ea9627 100644 --- a/src/views/wms/basicDataManage/strategySetting/strategy/utensilCapacityStrategy/AddForm.vue +++ b/src/views/wms/basicDataManage/strategySetting/strategy/utensilCapacityStrategy/AddForm.vue @@ -244,9 +244,9 @@ const formData = ref({ }) // 验证规则 const rules = ref({ - strategyCode: [{ required: true, message: '请输入代码', trigger: 'blur' }], - name: [{ required: true, message: '请输入名字', trigger: 'blur' }], - description: [{ required: true, message: '请输入描述', trigger: 'blur' }], + strategyCode: [{ required: true, message: '请输入代码', trigger: 'blur' },{ max: 50, message: '不得超过50个字符', trigger: 'blur' }], + name: [{ required: true, message: '请输入名字', trigger: 'blur' },{ max: 50, message: '不得超过50个字符', trigger: 'blur' }], + description: [{ required: true, message: '请输入描述', trigger: 'blur' },{ max: 50, message: '不得超过50个字符', trigger: 'blur' }], priority: [{ required: true, message: '请输入优先级', trigger: 'blur' }] }) diff --git a/src/views/wms/basicDataManage/strategySetting/strategy/warehouseStorageStrategy/AddForm.vue b/src/views/wms/basicDataManage/strategySetting/strategy/warehouseStorageStrategy/AddForm.vue index a958ddc40..e6d430267 100644 --- a/src/views/wms/basicDataManage/strategySetting/strategy/warehouseStorageStrategy/AddForm.vue +++ b/src/views/wms/basicDataManage/strategySetting/strategy/warehouseStorageStrategy/AddForm.vue @@ -282,9 +282,9 @@ const formData = ref({ }) // 验证规则 const rules = ref({ - strategyCode: [{ required: true, message: '请输入代码', trigger: 'blur' }], - name: [{ required: true, message: '请输入名字', trigger: 'blur' }], - description: [{ required: true, message: '请输入描述', trigger: 'blur' }], + strategyCode: [{ required: true, message: '请输入代码', trigger: 'blur' },{ max: 50, message: '不得超过50个字符', trigger: 'blur' }], + name: [{ required: true, message: '请输入名字', trigger: 'blur' },{ max: 50, message: '不得超过50个字符', trigger: 'blur' }], + description: [{ required: true, message: '请输入描述', trigger: 'blur' },{ max: 50, message: '不得超过50个字符', trigger: 'blur' }], priority: [{ required: true, message: '请输入优先级', trigger: 'blur' }] }) diff --git a/src/views/wms/basicDataManage/systemSetting/accountcalendar/accountcalendar.data.ts b/src/views/wms/basicDataManage/systemSetting/accountcalendar/accountcalendar.data.ts index da0482d2d..38b2b2720 100644 --- a/src/views/wms/basicDataManage/systemSetting/accountcalendar/accountcalendar.data.ts +++ b/src/views/wms/basicDataManage/systemSetting/accountcalendar/accountcalendar.data.ts @@ -271,6 +271,12 @@ export const AccountcalendarRules = reactive({ month: [ { required: true, message: '请输入月', trigger: 'blur' } ], + descriiption: [ + { max: 50, message: '不得超过50个字符', trigger: 'blur' } + ], + remark: [ + { max: 50, message: '不得超过50个字符', trigger: 'blur' } + ], beginTime: [ { required: true, message: '请输入开始时间', trigger: 'blur' } ], diff --git a/src/views/wms/basicDataManage/systemSetting/currencyexchange/currencyexchange.data.ts b/src/views/wms/basicDataManage/systemSetting/currencyexchange/currencyexchange.data.ts index 2db86fdb9..3be3297ed 100644 --- a/src/views/wms/basicDataManage/systemSetting/currencyexchange/currencyexchange.data.ts +++ b/src/views/wms/basicDataManage/systemSetting/currencyexchange/currencyexchange.data.ts @@ -186,4 +186,7 @@ export const CurrencyexchangeRules = reactive({ available: [ { required: true, message: '请选择是否可用', trigger: 'change' } ], + remark: [ + { max: 50, message: '不得超过50个字符', trigger: 'blur' } + ], }) \ No newline at end of file diff --git a/src/views/wms/basicDataManage/systemSetting/systemcalendar/systemcalendar.data.ts b/src/views/wms/basicDataManage/systemSetting/systemcalendar/systemcalendar.data.ts index 05dbc82b6..ff2b24dda 100644 --- a/src/views/wms/basicDataManage/systemSetting/systemcalendar/systemcalendar.data.ts +++ b/src/views/wms/basicDataManage/systemSetting/systemcalendar/systemcalendar.data.ts @@ -199,9 +199,13 @@ export const Systemcalendar = useCrudSchemas(reactive([ //表单校验 export const SystemcalendarRules = reactive({ module: [ - { required: true, message: '请输入模块', trigger: 'blur' } + { required: true, message: '请输入模块', trigger: 'blur' }, + { max: 50, message: '不得超过50个字符', trigger: 'blur' }, ], available: [ { required: true, message: '请选择是否可用', trigger: 'change' } ], + remark: [ + { max: 50, message: '不得超过50个字符', trigger: 'blur' } + ], }) \ No newline at end of file