Browse Source

字符长度

master
zhang_li 11 months ago
parent
commit
b66f9d3df2
  1. 12
      src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/purchasereturnRequestMain.data.ts
  2. 7
      src/views/wms/purchasereceiptManage/supplierdeliver/purchaseMain/purchaseMain.data.ts
  3. 51
      src/views/wms/supplierManage/purchaseclaim/purchaseclaimRequestMain/purchaseclaimRequestMain.data.ts
  4. 20
      src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/supplierinvoiceRequestMain.data.ts

12
src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/purchasereturnRequestMain.data.ts

@ -417,6 +417,15 @@ export const PurchasereturnRequestMainRules = reactive({
supplierCode: [ supplierCode: [
{ required: true, message: '请输入供应商代码', trigger: 'blur' } { required: true, message: '请输入供应商代码', trigger: 'blur' }
], ],
carrierCode: [
{ max: 50, message: '不得超过50个字符', trigger: 'blur' },
],
vehiclePlateNumber: [
{ max: 50, message: '不得超过50个字符', trigger: 'blur' },
],
remark: [
{ max: 50, message: '不得超过50个字符', trigger: 'blur' }
],
fromWarehouseCode: [ fromWarehouseCode: [
{ required: true, message: '请输入从仓库代码', trigger: 'blur' } { required: true, message: '请输入从仓库代码', trigger: 'blur' }
], ],
@ -1084,4 +1093,7 @@ export const PurchasereturnRequestDetailRules = reactive({
itemCode: [ itemCode: [
{ required: true, message: '请输入物品代码', trigger: 'blur' } { required: true, message: '请输入物品代码', trigger: 'blur' }
], ],
remark: [
{ max: 50, message: '不得超过50个字符', trigger: 'blur' }
],
}) })

7
src/views/wms/purchasereceiptManage/supplierdeliver/purchaseMain/purchaseMain.data.ts

@ -4,6 +4,7 @@ import * as SupplierApi from '@/api/wms/supplier'
import { Supplier } from '@/views/wms/basicDataManage/supplierManage/supplier/supplier.data' import { Supplier } from '@/views/wms/basicDataManage/supplierManage/supplier/supplier.data'
import * as SupplieritemApi from '@/api/wms/supplieritem' import * as SupplieritemApi from '@/api/wms/supplieritem'
import { Supplieritem } from '@/views/wms/basicDataManage/supplierManage/supplieritem/supplieritem.data' import { Supplieritem } from '@/views/wms/basicDataManage/supplierManage/supplieritem/supplieritem.data'
import {validateHanset,validateEmail} from '@/utils/validator'
const { t } = useI18n() // 国际化 const { t } = useI18n() // 国际化
/** /**
@ -345,10 +346,12 @@ export const PurchaseMainRules = reactive({
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } { max: 50, message: '不得超过50个字符', trigger: 'blur' }
], ],
contactPhone: [ contactPhone: [
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } { max: 50, message: '不得超过50个字符', trigger: 'blur' },
{ validator:validateHanset, message: '请输入正确的手机号', trigger: 'blur'}
], ],
contactEmail: [ contactEmail: [
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } { max: 50, message: '不得超过50个字符', trigger: 'blur' },
{ validator:validateEmail, message: '请输入正确的手机号', trigger: 'blur'}
], ],
remark: [ remark: [
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } { max: 50, message: '不得超过50个字符', trigger: 'blur' }

51
src/views/wms/supplierManage/purchaseclaim/purchaseclaimRequestMain/purchaseclaimRequestMain.data.ts

@ -329,6 +329,9 @@ export const PurchaseclaimRequestMainRules = reactive({
status: [ status: [
{ required: true, message: '请选择状态', trigger: 'change' } { required: true, message: '请选择状态', trigger: 'change' }
], ],
remark: [
{ max: 50, message: '不得超过50个字符', trigger: 'blur' }
],
}) })
/** /**
@ -520,40 +523,44 @@ export const PurchaseclaimRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
// 表单校验 // 表单校验
export const PurchaseclaimRequestDetailRules = reactive({ export const PurchaseclaimRequestDetailRules = reactive({
batch: [
{ required: true, message: '请输入批次', trigger: 'blur' }
],
altBatch: [
{ required: true, message: '请输入替代批次', trigger: 'blur' }
],
poNumber: [ poNumber: [
{ required: true, message: '请输入订单号', trigger: 'change' } { required: true, message: '请输入订单号', trigger: 'change' }
], ],
poLine: [ poLine: [
{ required: true, message: '请输入订单行', trigger: 'change' } { required: true, message: '请输入订单行', trigger: 'change' },
], { max: 50, message: '不得超过50个字符', trigger: 'blur' }
singlePrice: [
{ required: true, message: '请输入单价', trigger: 'change' }
], ],
amount: [ qty: [
{ required: true, message: '请输入金额', trigger: 'change' } { required: true, message: '请输入数量', trigger: 'blur' },
{ max: 50, message: '不得超过50个字符', trigger: 'blur' }
], ],
number: [ uom: [
{ required: true, message: '请输入单据号', trigger: 'change' } { required: true, message: '请输入计量单位', trigger: 'change' }
], ],
itemCode: [ itemCode: [
{ required: true, message: '请输入物品代码', trigger: 'change' } { required: true, message: '请输入物品代码', trigger: 'change' },
{ max: 50, message: '不得超过50个字符', trigger: 'blur' }
], ],
projectCode: [ itemName: [
{ required: true, message: '请输入项目代码', trigger: 'change' } { required: true, message: '请输入物品名称', trigger: 'blur' },
{ max: 50, message: '不得超过50个字符', trigger: 'blur' }
], ],
qty: [ batch: [
{ required: true, message: '请输入数量', trigger: 'change' } { required: true, message: '请输入批次', trigger: 'blur' },
{ max: 50, message: '不得超过50个字符', trigger: 'blur' }
], ],
uom: [
{ required: true, message: '请输入计量单位', trigger: 'change' } singlePrice: [
{ required: true, message: '请输入单价', trigger: 'change' }
],
amount: [
{ required: true, message: '请输入金额', trigger: 'change' }
], ],
reason: [ reason: [
{ required: true, message: '请输入原因', trigger: 'change' } { required: true, message: '请输入原因', trigger: 'change' },
{ max: 50, message: '不得超过50个字符', trigger: 'blur' }
],
remark: [
{ max: 50, message: '不得超过50个字符', trigger: 'blur' }
], ],
}) })

20
src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/supplierinvoiceRequestMain.data.ts

@ -331,7 +331,10 @@ export const SupplierinvoiceRequestMainRules = reactive({
], ],
businessType: [ businessType: [
{ required: true, message: '请输入业务类型', trigger: 'blur' } { required: true, message: '请输入业务类型', trigger: 'blur' }
] ],
remark: [
{ max: 50, message: '不得超过50个字符', trigger: 'blur' }
],
}) })
/** /**
@ -574,7 +577,8 @@ export const SupplierinvoiceRequestDetailRules = reactive({
{ required: true, message: '请输入包装号', trigger: 'blur' } { required: true, message: '请输入包装号', trigger: 'blur' }
], ],
batch: [ batch: [
{ required: true, message: '请输入批次', trigger: 'blur' } { required: true, message: '请输入批次', trigger: 'blur' },
{ max: 50, message: '不得超过50个字符', trigger: 'blur' }
], ],
poNumber: [ poNumber: [
{ required: true, message: '请输入订单号', trigger: 'blur' } { required: true, message: '请输入订单号', trigger: 'blur' }
@ -594,4 +598,16 @@ export const SupplierinvoiceRequestDetailRules = reactive({
itemCode: [ itemCode: [
{ required: true, message: '请输入物品代码', trigger: 'blur' } { required: true, message: '请输入物品代码', trigger: 'blur' }
], ],
ownerCode: [
{ max: 50, message: '不得超过50个字符', trigger: 'blur' }
],
singlePrice: [
{ max: 50, message: '不得超过50个字符', trigger: 'blur' }
],
amount: [
{ max: 50, message: '不得超过50个字符', trigger: 'blur' }
],
remark: [
{ max: 50, message: '不得超过50个字符', trigger: 'blur' }
],
}) })

Loading…
Cancel
Save