调整 合同、运力、基础配置、客商

This commit is contained in:
2026-09-14 23:43:20 +08:00
parent f1e2313e4c
commit 79aa4f9fae
33 changed files with 1490 additions and 395 deletions
@@ -7179,7 +7179,9 @@ export default {
waybillAmountWithCurrency(row = {}, prop) {
const value = this.formatDetailValue(row, prop);
if (value === '-') return { value: '-' };
return { value: `${this.waybillCurrencyRemark(row)}${value}` };
const number = Number(value);
const display = Number.isFinite(number) ? number.toFixed(2) : value;
return { value: `${this.waybillCurrencyRemark(row)}${display}` };
},
normalizeTransportPlanWaybillRow(row = {}, index = 0) {
const status = row.businessStatus || row.status || row.waybillStatus || '';
@@ -4378,7 +4378,9 @@ export default {
waybillAmountWithCurrency(row = {}, prop) {
const value = this.formatDetailValue(row, prop);
if (value === '-') return { value: '-' };
return { value: `${this.waybillCurrencyRemark(row)}${value}` };
const number = Number(value);
const display = Number.isFinite(number) ? number.toFixed(2) : value;
return { value: `${this.waybillCurrencyRemark(row)}${display}` };
},
openDetail(row) {
if (!this.isStandaloneWaybillDetailPage) {
+7 -3
View File
@@ -1840,10 +1840,14 @@ export default {
submitEdit() {
if (this.submitAction || !this.validateBase('edit')) return;
this.submitAction = 'edit';
this.api
.submit(this.normalizeSubmit())
const isChangeRejected = this.form.approvalStatus === 'change_rejected';
const payload = this.normalizeSubmit();
const request = isChangeRejected
? this.api.submitChange(payload)
: this.api.submit(payload);
request
.then(() => {
this.$message.success('修改成功');
this.$message.success(isChangeRejected ? '已重新提交变更审批' : '修改成功');
this.closeForm();
})
.finally(() => {