update 优化订单金额展示

This commit is contained in:
2023-05-12 15:03:29 +08:00
parent 93f48823ab
commit 8713d82961
15 changed files with 238 additions and 102 deletions

View File

@@ -49,10 +49,15 @@
</div>
</template>
<script>
import {getInvoice} from "@/api/order/invoice";
export default {
name: "",
data() {
return {
// 申请开票 id
invoiceRecordId: null,
// 列表数据
tableData: [{
id: '12987122',
amount1: '234',
@@ -78,14 +83,23 @@ export default {
amount1: '539',
amount2: '4.1',
amount3: 15
}]
}],
};
},
created() {
const id = this.$route.params.id;
console.log("发票详情:", this.$route.params);//打印结果为{user:'david'}
this.invoiceRecordId = this.$route.params.id;
console.log("发票详情:", this.invoiceRecordId);//打印结果为{user:'david'}
this.selectInvoiceRecord();
},
methods: {
// 查询申请开票信息详情
selectInvoiceRecord() {
getInvoice(this.invoiceRecordId).then(response => {
console.log("查询申请开票信息详情结果", response);
});
},
// 合计
getSummaries(param) {
const { columns, data } = param;
const sums = [];