Browse Source

去掉资产台账的3个必填字段

master
ljlong_2630 3 months ago
parent
commit
4e8f595c5f
  1. 22
      src/views/eam/basic/assetsAccount/assetsAccount.data.ts

22
src/views/eam/basic/assetsAccount/assetsAccount.data.ts

@ -13,9 +13,9 @@ const admin = checkPermi(['gdzc_admin']);
// 表单校验 // 表单校验
export const AssetsAccountRules = reactive({ export const AssetsAccountRules = reactive({
number: [ // number: [
required, // required,
], // ],
name: [ name: [
required, required,
{ max: 50, message: '不得超过50个字符', trigger: 'blur' }, { max: 50, message: '不得超过50个字符', trigger: 'blur' },
@ -26,17 +26,17 @@ export const AssetsAccountRules = reactive({
specifications: [ specifications: [
{ max: 50, message: '不得超过20个字符', trigger: 'blur' }, { max: 50, message: '不得超过20个字符', trigger: 'blur' },
], ],
locationNumber: [ // locationNumber: [
required, // required,
{ max: 20, message: '不得超过20个字符', trigger: 'blur' }, // { max: 20, message: '不得超过20个字符', trigger: 'blur' },
], // ],
purchaseDept: [ purchaseDept: [
{ max: 50, message: '不得超过20个字符', trigger: 'blur' }, { max: 50, message: '不得超过20个字符', trigger: 'blur' },
], ],
supplierNumber: [ // supplierNumber: [
required, // required,
{ max: 20, message: '不得超过20个字符', trigger: 'blur' }, // { max: 20, message: '不得超过20个字符', trigger: 'blur' },
], // ],
purchasePrice: [ purchasePrice: [
required, required,
{ validator:validateNumDot, message: '请输入数字格式', trigger: 'blur'} { validator:validateNumDot, message: '请输入数字格式', trigger: 'blur'}

Loading…
Cancel
Save