调整 基础数据、运力、车船务

This commit is contained in:
2026-09-14 01:49:23 +08:00
parent dbeb174ae2
commit acbc9d3322
12 changed files with 1157 additions and 15 deletions
@@ -4796,6 +4796,13 @@ export default {
},
normalizeRow(row, saveAsDraft = false) {
const submitRow = { ...row };
const isAddMode =
this.crudDialogType === 'add' ||
(this.isStandaloneWaybillFormPage && this.$route.query.mode === 'add');
if (isAddMode) {
delete submitRow.id;
delete submitRow.waybillNo;
}
const skipValidation = saveAsDraft && this.config.skipDraftValidation === true;
if (
!skipValidation &&
@@ -5166,6 +5173,7 @@ export default {
//
delete sourceData.id;
delete sourceData.code;
delete sourceData.waybillNo;
delete sourceData.waybillStatus;
delete sourceData.createTime;
delete sourceData.updateTime;
@@ -5236,6 +5244,10 @@ export default {
['quantity', 'mileage', 'unitPrice'].forEach(prop => {
if (Number(this.form[prop]) === -1) this.form[prop] = '';
});
if ([this.form.planId, this.form.planName].some(value => Number(value) === -1)) {
this.form.planId = '';
this.form.planName = '';
}
this.form.mileage = this.normalizeMileageValue(this.form.mileage);
this.$nextTick(() => {
this.suppressTransportTypeClear = false;