分润配置

This commit is contained in:
BOOL\25024
2025-01-03 10:37:16 +08:00
parent deb3a05f6d
commit ef0d47e542
3 changed files with 36 additions and 20 deletions

View File

@@ -221,7 +221,7 @@
</el-tab-pane>
<el-tab-pane label="分润配置" name="Config">
<Config :stationId="stationId" :merchantId="merchantId"></Config>
<Config ref="Config" :stationId="stationId" :merchantId="merchantId"></Config>
</el-tab-pane>
</el-tabs>
@@ -306,7 +306,7 @@ export default {
parkingDisableFlag: true,
exchange: [],
firstList: [], //第一次复选框的默认值
merchantId: this.$route.params.merchantId, //运营商id
merchantId: "", //运营商id
};
},
created() {
@@ -350,16 +350,19 @@ export default {
this.$refs.order.dataLoading();
} else if (name === "orderReport") {
this.$refs.orderReport.getList();
} else if (name === "Config") {
this.queryStationInfo();
this.$refs.Config.getList();
}
},
queryStationInfo() {
async queryStationInfo() {
console.log("stationId", this.stationId);
getStationInfo(this.stationId).then((res) => {
// console.log(res);
await getStationInfo(this.stationId).then((res) => {
this.stationDetail = res.data;
this.stationLat = res.data.stationLat;
this.stationLng = res.data.stationLng;
console.log(this.stationLat, this.stationLng, "父组件里面的经纬度");
this.merchantId = res.data.merchantId;
console.log(this.merchantId, "父组件里面的运营商id");
console.log("res.data", res.data);
if (res.data.parkingId != null) {
this.getParkingInfo(parseInt(res.data.parkingId));