|
@@ -433,16 +433,6 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
-import {
|
|
|
|
- listManage,
|
|
|
|
- getManage,
|
|
|
|
- delManage,
|
|
|
|
- addManage,
|
|
|
|
- updateManage,
|
|
|
|
- exportManage,
|
|
|
|
- changeManageStatus,
|
|
|
|
-} from "@/api/station/manage";
|
|
|
|
-import { listGun } from "@/api/station/gun";
|
|
|
|
import { listPrice } from "@/api/station/price";
|
|
import { listPrice } from "@/api/station/price";
|
|
import SelectDay from "@/components/SelectDay";
|
|
import SelectDay from "@/components/SelectDay";
|
|
|
|
|
|
@@ -464,7 +454,7 @@ export default {
|
|
couponDetails: "",
|
|
couponDetails: "",
|
|
couponThresholdAmt: 0,
|
|
couponThresholdAmt: 0,
|
|
couponType: "1",
|
|
couponType: "1",
|
|
- couponAmt: 0,
|
|
|
|
|
|
+ couponAmt: '',
|
|
oilNameList: [],
|
|
oilNameList: [],
|
|
effectiveTimeType: "", //有效时间类型: 1,固定时间;2,领取后x天内有效
|
|
effectiveTimeType: "", //有效时间类型: 1,固定时间;2,领取后x天内有效
|
|
effectiveTime: [],
|
|
effectiveTime: [],
|
|
@@ -626,10 +616,7 @@ export default {
|
|
});
|
|
});
|
|
},
|
|
},
|
|
getCoupon() {
|
|
getCoupon() {
|
|
- listInfo({
|
|
|
|
- pageNum: 1,
|
|
|
|
- pageSize: 10,
|
|
|
|
- })
|
|
|
|
|
|
+ listInfo(this.queryForm)
|
|
.then((res) => {
|
|
.then((res) => {
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
console.log(res);
|
|
console.log(res);
|
|
@@ -745,9 +732,9 @@ export default {
|
|
couponDetails: "",
|
|
couponDetails: "",
|
|
couponThresholdAmt: 0,
|
|
couponThresholdAmt: 0,
|
|
couponType: "1",
|
|
couponType: "1",
|
|
- couponAmt: 0,
|
|
|
|
|
|
+ couponAmt: '',
|
|
oilNameList: [],
|
|
oilNameList: [],
|
|
- effectiveTimeType: "",
|
|
|
|
|
|
+ effectiveTimeType: "", //有效时间类型: 1,固定时间;2,领取后x天内有效
|
|
effectiveTime: [],
|
|
effectiveTime: [],
|
|
effectiveDayNum: 30,
|
|
effectiveDayNum: 30,
|
|
couponHoldNum: 1,
|
|
couponHoldNum: 1,
|
|
@@ -758,6 +745,9 @@ export default {
|
|
isCardFlag: "1",
|
|
isCardFlag: "1",
|
|
isGradeFlag: "1",
|
|
isGradeFlag: "1",
|
|
isMarketFlag: "1",
|
|
isMarketFlag: "1",
|
|
|
|
+ availableControl:"0",
|
|
|
|
+ appointedDaysList:[],
|
|
|
|
+ cycleDaysList:[],
|
|
}
|
|
}
|
|
this.open = true;
|
|
this.open = true;
|
|
},
|
|
},
|
|
@@ -804,19 +794,19 @@ export default {
|
|
},
|
|
},
|
|
/** 删除按钮操作 */
|
|
/** 删除按钮操作 */
|
|
handleDelete(row) {
|
|
handleDelete(row) {
|
|
- const deviceIds = row.deviceId;
|
|
|
|
- this.$confirm("是否确认删除油站设备管理", "警告", {
|
|
|
|
- confirmButtonText: "确定",
|
|
|
|
- cancelButtonText: "取消",
|
|
|
|
- type: "warning",
|
|
|
|
- })
|
|
|
|
- .then(function () {
|
|
|
|
- return delManage(deviceIds);
|
|
|
|
- })
|
|
|
|
- .then(() => {
|
|
|
|
- this.getList();
|
|
|
|
- this.msgSuccess("删除成功");
|
|
|
|
- });
|
|
|
|
|
|
+ // const deviceIds = row.deviceId;
|
|
|
|
+ // this.$confirm("是否确认删除油站设备管理", "警告", {
|
|
|
|
+ // confirmButtonText: "确定",
|
|
|
|
+ // cancelButtonText: "取消",
|
|
|
|
+ // type: "warning",
|
|
|
|
+ // })
|
|
|
|
+ // .then(function () {
|
|
|
|
+ // return delManage(deviceIds);
|
|
|
|
+ // })
|
|
|
|
+ // .then(() => {
|
|
|
|
+ // this.getList();
|
|
|
|
+ // this.msgSuccess("删除成功");
|
|
|
|
+ // });
|
|
},
|
|
},
|
|
},
|
|
},
|
|
};
|
|
};
|