|
|
@ -13,6 +13,7 @@ import * as PurchaseMainApi from '@/api/wms/purchaseMain' |
|
|
|
import * as PurchaseDetailApi from '@/api/wms/purchaseDetail' |
|
|
|
import { PurchaseDetail, PurchaseMain } from '../purchaseMain/purchaseMain.data' |
|
|
|
import { PurchasePlanDetail, PurchasePlanMain } from '../purchasePlanMain/purchasePlanMain.data' |
|
|
|
import {validateHanset,validateEmail} from '@/utils/validator' |
|
|
|
|
|
|
|
// 获取自动提交自动通过自动执行,跳过任务直接删生成记录的默认值
|
|
|
|
const queryParams = { |
|
|
@ -475,15 +476,32 @@ export const SupplierdeliverRequestMainRules = reactive({ |
|
|
|
ppNumber: [ |
|
|
|
{ required: true, message: '请输入要货计划单号', trigger: 'blur' } |
|
|
|
], |
|
|
|
// fromWarehouseCode: [
|
|
|
|
// { required: true, message: '请输入从仓库代码', trigger: 'blur' }
|
|
|
|
// ],
|
|
|
|
// toWarehouseCode: [
|
|
|
|
// { required: true, message: '请输入到仓库代码', trigger: 'blur' }
|
|
|
|
// ],
|
|
|
|
// toDockCode: [
|
|
|
|
// { required: true, message: '请输入到月台代码', trigger: 'change' }
|
|
|
|
// ],
|
|
|
|
asnNumber: [ |
|
|
|
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } |
|
|
|
], |
|
|
|
contactName: [ |
|
|
|
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } |
|
|
|
], |
|
|
|
contactPhone: [ |
|
|
|
{ max: 50, message: '不得超过50个字符', trigger: 'blur' }, |
|
|
|
{ validator:validateHanset, message: '请输入正确的手机号', trigger: 'blur'} |
|
|
|
], |
|
|
|
contactEmail: [ |
|
|
|
{ max: 50, message: '不得超过50个字符', trigger: 'blur' }, |
|
|
|
{ validator:validateEmail, message: '请输入正确的手机号', trigger: 'blur'} |
|
|
|
], |
|
|
|
carrierCode: [ |
|
|
|
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } |
|
|
|
], |
|
|
|
transferMode: [ |
|
|
|
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } |
|
|
|
], |
|
|
|
vehiclePlateNumber: [ |
|
|
|
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } |
|
|
|
], |
|
|
|
remark: [ |
|
|
|
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } |
|
|
|
], |
|
|
|
planArriveTime: [ |
|
|
|
{ required: true, message: '请输入计划到货时间', trigger: 'blur' } |
|
|
|
], |
|
|
@ -1001,7 +1019,8 @@ export const SupplierdeliverRequestDetailRules = reactive({ |
|
|
|
// { required: true, message: '请输入包装号', trigger: 'blur' }
|
|
|
|
// ],
|
|
|
|
batch: [ |
|
|
|
{ required: true, message: '请输入批次', trigger: 'blur' } |
|
|
|
{ required: true, message: '请输入批次', trigger: 'blur' }, |
|
|
|
{ max: 50, message: '不得超过50个字符', trigger: 'blur' }, |
|
|
|
], |
|
|
|
produceDate: [ |
|
|
|
{ required: true, message: '请输入生产日期', trigger: 'blur' } |
|
|
@ -1027,4 +1046,7 @@ export const SupplierdeliverRequestDetailRules = reactive({ |
|
|
|
itemCode: [ |
|
|
|
{ required: true, message: '请选择物品代码', trigger: 'change' } |
|
|
|
], |
|
|
|
remark: [ |
|
|
|
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } |
|
|
|
], |
|
|
|
}) |
|
|
|