|
@@ -11,16 +11,18 @@
|
|
|
<!-- 表头工具栏 -->
|
|
<!-- 表头工具栏 -->
|
|
|
<template v-slot:toolbar>
|
|
<template v-slot:toolbar>
|
|
|
<div class="headbox">
|
|
<div class="headbox">
|
|
|
- <el-button
|
|
|
|
|
- size="small"
|
|
|
|
|
- type="primary"
|
|
|
|
|
- icon="el-icon-plus"
|
|
|
|
|
- class="ele-btn-icon"
|
|
|
|
|
- @click="handlAdd"
|
|
|
|
|
- v-if="showAddBtn"
|
|
|
|
|
- >
|
|
|
|
|
- 新增
|
|
|
|
|
- </el-button>
|
|
|
|
|
|
|
+ <div>
|
|
|
|
|
+ <el-button
|
|
|
|
|
+ size="small"
|
|
|
|
|
+ type="primary"
|
|
|
|
|
+ icon="el-icon-plus"
|
|
|
|
|
+ class="ele-btn-icon"
|
|
|
|
|
+ @click="handlAdd"
|
|
|
|
|
+ v-if="showAddBtn"
|
|
|
|
|
+ >
|
|
|
|
|
+ 新增
|
|
|
|
|
+ </el-button>
|
|
|
|
|
+ </div>
|
|
|
|
|
|
|
|
<div class="pricebox">
|
|
<div class="pricebox">
|
|
|
<span class="amount">比例合计:{{ allRatio }}%</span>
|
|
<span class="amount">比例合计:{{ allRatio }}%</span>
|
|
@@ -364,13 +366,11 @@
|
|
|
info: {
|
|
info: {
|
|
|
handler(newval) {
|
|
handler(newval) {
|
|
|
if (newval && newval.receiptPaymentList) {
|
|
if (newval && newval.receiptPaymentList) {
|
|
|
- // Directly assign API data to table without calculation
|
|
|
|
|
this.isLoadingFromApi = true;
|
|
this.isLoadingFromApi = true;
|
|
|
this.form.datasource = newval.receiptPaymentList;
|
|
this.form.datasource = newval.receiptPaymentList;
|
|
|
if (newval.payAmount) {
|
|
if (newval.payAmount) {
|
|
|
this.discountAmount = newval.payAmount;
|
|
this.discountAmount = newval.payAmount;
|
|
|
}
|
|
}
|
|
|
- // Reset flag after a short delay to avoid affecting subsequent user changes
|
|
|
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
|
this.isLoadingFromApi = false;
|
|
this.isLoadingFromApi = false;
|
|
|
}, 100);
|
|
}, 100);
|