|
|
@ -261,6 +261,7 @@ import { getDockList } from '@/api/wms/dock' |
|
|
|
import { getLocationList } from '@/api/wms/location' |
|
|
|
import * as RuleApi from '@/api/wms/rule' |
|
|
|
import { isString } from '@/utils/is' |
|
|
|
import {validateHanset} from '@/utils/validator' |
|
|
|
|
|
|
|
const { t } = useI18n() // 国际化 |
|
|
|
const message = useMessage() // 消息弹窗 |
|
|
@ -312,7 +313,9 @@ const rules = ref({ |
|
|
|
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' }] |
|
|
|
priority: [{ required: true, message: '请输入优先级', trigger: 'blur' }], |
|
|
|
PhoneNumber: [{ max: 11, message: '不得超过11个字符', trigger: 'blur' }, |
|
|
|
{message: '请输入联系电话', trigger: 'blur' ,validator:validateHanset}] |
|
|
|
}) |
|
|
|
|
|
|
|
// 所有的范围类型 |
|
|
|