feat(contract): 启用产品内容组件并优化合同相关功能
- 在合同页面启用ProductContent组件替代注释代码 - 优化ProductContent组件数值计算和空值处理 - 修改ContractList组件从productContent字段获取数据 - 在OrderDetail组件添加"写入合同"功能 - 优化ReceiveTable组件未收款金额计算逻辑
This commit is contained in:
@@ -162,7 +162,6 @@ export default {
|
||||
return this.receivableList.reduce((total, item) => total + parseFloat(item.amount), 0);
|
||||
},
|
||||
unreceivedAmount() {
|
||||
// return this.order ? this.order.totalAmount - this.order.receivedAmount : 0;
|
||||
return this.order ? this.order.orderAmount - this.receivedAmount : 0;
|
||||
},
|
||||
},
|
||||
@@ -232,14 +231,6 @@ export default {
|
||||
this.receivableList = response.rows;
|
||||
this.total = response.total;
|
||||
this.loading = false;
|
||||
if (this.isFirst) {
|
||||
this.isFirst = false;
|
||||
return;
|
||||
}
|
||||
updateOrder({
|
||||
orderId: this.orderId,
|
||||
unpaidAmount: this.unreceivedAmount,
|
||||
})
|
||||
});
|
||||
},
|
||||
// 取消按钮
|
||||
|
||||
Reference in New Issue
Block a user