调整 基础数据、运力、车船务
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user