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