去掉终版 车架号 必须都填写才能提交的限制
This commit is contained in:
@@ -805,11 +805,11 @@ export function useStockingForm(isFinal = false, stockingId?: string | number) {
|
||||
// 提交校验:最终提交且为提交动作时(type=1),必须填写 VIN
|
||||
const isFinalFlag = isfinal === '1' || (isfinal as any) === true
|
||||
if (isFinalFlag && type === 1) {
|
||||
const hasEmptyVin = (items.value || []).some((it) => !it.vin || String(it.vin).trim() === '')
|
||||
if (hasEmptyVin) {
|
||||
ElMessage.error('存在未填写车架号(VIN)的明细,请补全后再提交')
|
||||
return
|
||||
}
|
||||
// const hasEmptyVin = (items.value || []).some((it) => !it.vin || String(it.vin).trim() === '')
|
||||
// if (hasEmptyVin) {
|
||||
// ElMessage.error('存在未填写车架号(VIN)的明细,请补全后再提交')
|
||||
// return
|
||||
// }
|
||||
}
|
||||
const mappedItems = items.value.map((it) => ({
|
||||
sku_id: it.sku_id,
|
||||
|
||||
Reference in New Issue
Block a user