mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 11:05:18 +08:00
update 优化订单金额展示
This commit is contained in:
@@ -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 = [];
|
||||
|
||||
Reference in New Issue
Block a user