小程序查询订单详情接口,增加收费明细

This commit is contained in:
2023-03-08 15:56:46 +08:00
parent 5d8b3a29b6
commit e458b845e9
4 changed files with 66 additions and 82 deletions

View File

@@ -183,7 +183,7 @@ import {
queryStationBillingTemplateList,
queryPublicBillingTemplateList,
stationImportBillingTemplate,
publishBillingTemplate,
publishBillingTemplate, getTemplate,
} from "@/api/billing/template.js";
import AddBilling from "../../../billing/template/components/addBilling.vue";
@@ -227,7 +227,7 @@ export default {
},
methods: {
// 新增计费模板
clickaAdditional() {
clickAdditional() {
// 打开弹窗
this.amendDialog = true;
console.log("新增计费模板按钮");
@@ -252,9 +252,10 @@ export default {
},
// 发布按钮
issue(id) {
this.dialogVisible = true;
console.log("发布", id);
this.publishTemplateId = id;
this.queryInfo();
this.dialogVisible = true;
},
// 立即发布按钮
clickPublish() {
@@ -296,7 +297,23 @@ export default {
this.publicBillingTemplate = response.rows;
});
},
// 查计费模板详情
queryInfo() {
getTemplate(this.publishTemplateId).then((response) => {
console.log("点击发布按钮 查询计费模板详情", response);
// this.form = response.data;
// console.log("timeArray", this.form.timeArray);
// const selectStartTimeArr = [];
// this.form.timeArray.forEach(x => {
// const startTime = {
// startTime: x.startTime,
// type: x.type
// };
// selectStartTimeArr.push(startTime);
// })
// this.selectStartTime = selectStartTimeArr;
});
},
// 通过站点id查询计费模板
getStationBillingTemplateList() {
// console.log("通过站点id查询计费模板", this.stationId)