|
@ -13,7 +13,7 @@ import * as PurchaseMainApi from '@/api/wms/purchaseMain' |
|
|
import * as PurchaseDetailApi from '@/api/wms/purchaseDetail' |
|
|
import * as PurchaseDetailApi from '@/api/wms/purchaseDetail' |
|
|
import { PurchaseDetail, PurchaseMain } from '../purchaseMain/purchaseMain.data' |
|
|
import { PurchaseDetail, PurchaseMain } from '../purchaseMain/purchaseMain.data' |
|
|
import { PurchasePlanDetail, PurchasePlanMain } from '../purchasePlanMain/purchasePlanMain.data' |
|
|
import { PurchasePlanDetail, PurchasePlanMain } from '../purchasePlanMain/purchasePlanMain.data' |
|
|
import {validateHanset,validateEmail} from '@/utils/validator' |
|
|
import { validateHanset, validateEmail } from '@/utils/validator' |
|
|
|
|
|
|
|
|
// 获取自动提交自动通过自动执行,跳过任务直接删生成记录的默认值
|
|
|
// 获取自动提交自动通过自动执行,跳过任务直接删生成记录的默认值
|
|
|
const queryParams = { |
|
|
const queryParams = { |
|
@ -476,30 +476,30 @@ export const SupplierdeliverRequestMainRules = reactive({ |
|
|
ppNumber: [ |
|
|
ppNumber: [ |
|
|
{ required: true, message: '请输入要货计划单号', trigger: 'blur' } |
|
|
{ required: true, message: '请输入要货计划单号', trigger: 'blur' } |
|
|
], |
|
|
], |
|
|
asnNumber: [ |
|
|
asnNumber: [ |
|
|
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } |
|
|
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } |
|
|
], |
|
|
], |
|
|
contactName: [ |
|
|
contactName: [ |
|
|
{ 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'} |
|
|
{ validator: validateHanset, message: '请输入正确的手机号', trigger: 'blur' } |
|
|
], |
|
|
], |
|
|
contactEmail: [ |
|
|
contactEmail: [ |
|
|
{ max: 50, message: '不得超过50个字符', trigger: 'blur' }, |
|
|
{ max: 50, message: '不得超过50个字符', trigger: 'blur' }, |
|
|
{ validator:validateEmail, message: '请输入正确的手机号', trigger: 'blur'} |
|
|
{ validator: validateEmail, message: '请输入正确的手机号', trigger: 'blur' } |
|
|
], |
|
|
], |
|
|
carrierCode: [ |
|
|
carrierCode: [ |
|
|
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } |
|
|
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } |
|
|
], |
|
|
], |
|
|
transferMode: [ |
|
|
transferMode: [ |
|
|
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } |
|
|
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } |
|
|
], |
|
|
], |
|
|
vehiclePlateNumber: [ |
|
|
vehiclePlateNumber: [ |
|
|
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } |
|
|
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } |
|
|
], |
|
|
], |
|
|
remark: [ |
|
|
remark: [ |
|
|
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } |
|
|
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } |
|
|
], |
|
|
], |
|
|
planArriveTime: [ |
|
|
planArriveTime: [ |
|
@ -646,7 +646,14 @@ export const SupplierdeliverRequestDetail = useCrudSchemas(reactive<CrudSchema[] |
|
|
key: 'number', |
|
|
key: 'number', |
|
|
value: 'ppNumber', |
|
|
value: 'ppNumber', |
|
|
isMainValue: true |
|
|
isMainValue: true |
|
|
}] |
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
key: 'available', |
|
|
|
|
|
value: 'TRUE', |
|
|
|
|
|
isMainValue: false |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
] |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
tableForm: { |
|
|
tableForm: { |
|
@ -661,6 +668,11 @@ export const SupplierdeliverRequestDetail = useCrudSchemas(reactive<CrudSchema[] |
|
|
key: 'number', |
|
|
key: 'number', |
|
|
value: 'ppNumber', |
|
|
value: 'ppNumber', |
|
|
isMainValue: true |
|
|
isMainValue: true |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
key: 'available', |
|
|
|
|
|
value: 'TRUE', |
|
|
|
|
|
isMainValue: false |
|
|
}] |
|
|
}] |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
@ -808,21 +820,21 @@ export const SupplierdeliverRequestDetail = useCrudSchemas(reactive<CrudSchema[] |
|
|
disabled: true |
|
|
disabled: true |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '计量单位', |
|
|
label: '计量单位', |
|
|
field: 'uom', |
|
|
field: 'uom', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
dictType: DICT_TYPE.UOM, |
|
|
dictType: DICT_TYPE.UOM, |
|
|
dictClass: 'string', |
|
|
dictClass: 'string', |
|
|
isSearch: true, |
|
|
isSearch: true, |
|
|
isTable: true, |
|
|
isTable: true, |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
tableForm: { |
|
|
tableForm: { |
|
|
type: 'Select' |
|
|
type: 'Select' |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
{ |
|
|
{ |
|
|
label: '数量', |
|
|
label: '数量', |
|
@ -998,8 +1010,8 @@ export const SupplierdeliverRequestDetailRules = 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' }, |
|
|
{ max: 50, message: '不得超过50个字符', trigger: 'blur' }, |
|
|
], |
|
|
], |
|
|
produceDate: [ |
|
|
produceDate: [ |
|
|
{ required: true, message: '请输入生产日期', trigger: 'blur' } |
|
|
{ required: true, message: '请输入生产日期', trigger: 'blur' } |
|
@ -1025,7 +1037,7 @@ export const SupplierdeliverRequestDetailRules = reactive({ |
|
|
itemCode: [ |
|
|
itemCode: [ |
|
|
{ required: true, message: '请选择物品代码', trigger: 'change' } |
|
|
{ required: true, message: '请选择物品代码', trigger: 'change' } |
|
|
], |
|
|
], |
|
|
remark: [ |
|
|
remark: [ |
|
|
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } |
|
|
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } |
|
|
], |
|
|
], |
|
|
}) |
|
|
}) |
|
|