mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 11:05:18 +08:00
小程序查询订单详情接口,增加收费明细
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user