项目卡包添加可用金额字段
parent
97852140a9
commit
4308095e50
@ -1,94 +1,96 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<el-collapse style="width: 100%" v-model="recColl" accordion>
|
<el-collapse style="width: 100%" v-model="recColl" accordion>
|
||||||
<el-collapse-item title="项目:" :name="1">
|
<el-collapse-item title="项目:" :name="1">
|
||||||
<el-table :data="list" max-height="350" @row-dblclick="rowClick" stripe>
|
<el-table :data="list" max-height="350" @row-dblclick="rowClick" stripe>
|
||||||
<el-table-column show-overflow-tooltip min-width="140" align="left" prop="courseProjectName" label="项目名称"></el-table-column>
|
<el-table-column show-overflow-tooltip min-width="120" align="left" prop="courseProjectName" label="项目名称"></el-table-column>
|
||||||
<el-table-column show-overflow-tooltip min-width="80" align="center" prop="price" label="项目单价"></el-table-column>
|
<el-table-column show-overflow-tooltip min-width="75" align="center" prop="price" label="项目单价"></el-table-column>
|
||||||
<el-table-column show-overflow-tooltip min-width="80" align="center" prop="courseRestCount" label="剩余次数"></el-table-column>
|
<el-table-column show-overflow-tooltip min-width="75" align="center" prop="courseRestCount" label="剩余次数"></el-table-column>
|
||||||
<el-table-column show-overflow-tooltip min-width="80" align="center" prop="courseRestPrice" label="剩余金额"></el-table-column>
|
<el-table-column show-overflow-tooltip min-width="75" align="center" prop="courseRestPrice" label="剩余金额"></el-table-column>
|
||||||
<el-table-column show-overflow-tooltip min-width="80" align="center" prop="courseConsumeCount" label="可用次数"></el-table-column>
|
<el-table-column show-overflow-tooltip min-width="75" align="center" prop="courseConsumeCount" label="可用次数"></el-table-column>
|
||||||
<el-table-column show-overflow-tooltip min-width="105" align="center" prop="endTime" label="到期日期"></el-table-column>
|
<el-table-column show-overflow-tooltip min-width="75" align="center" prop="courseConsumePrice" label="可用金额"></el-table-column>
|
||||||
<el-table-column show-overflow-tooltip min-width="80" align="center" prop="storeName" label="所属门店"></el-table-column>
|
<el-table-column show-overflow-tooltip min-width="105" align="center" prop="endTime" label="到期日期"></el-table-column>
|
||||||
</el-table>
|
<el-table-column show-overflow-tooltip min-width="75" align="center" prop="storeName" label="所属门店"></el-table-column>
|
||||||
</el-collapse-item>
|
</el-table>
|
||||||
<el-collapse-item title="不可用项目:" :name="2">
|
</el-collapse-item>
|
||||||
<el-table :data="lists" max-height="350" stripe>
|
<el-collapse-item title="不可用项目:" :name="2">
|
||||||
<el-table-column show-overflow-tooltip min-width="140" align="left" prop="courseProjectName" label="项目名称"></el-table-column>
|
<el-table :data="lists" max-height="350" stripe>
|
||||||
<el-table-column show-overflow-tooltip min-width="80" align="center" prop="price" label="项目单价"></el-table-column>
|
<el-table-column show-overflow-tooltip min-width="120" align="left" prop="courseProjectName" label="项目名称"></el-table-column>
|
||||||
<el-table-column show-overflow-tooltip min-width="80" align="center" prop="courseRestCount" label="剩余次数"></el-table-column>
|
<el-table-column show-overflow-tooltip min-width="75" align="center" prop="price" label="项目单价"></el-table-column>
|
||||||
<el-table-column show-overflow-tooltip min-width="80" align="center" prop="courseRestPrice" label="剩余金额"></el-table-column>
|
<el-table-column show-overflow-tooltip min-width="75" align="center" prop="courseRestCount" label="剩余次数"></el-table-column>
|
||||||
<el-table-column show-overflow-tooltip min-width="80" align="center" prop="courseConsumeCount" label="可用次数"></el-table-column>
|
<el-table-column show-overflow-tooltip min-width="75" align="center" prop="courseRestPrice" label="剩余金额"></el-table-column>
|
||||||
<el-table-column show-overflow-tooltip min-width="105" align="center" prop="endTime" label="到期日期"></el-table-column>
|
<el-table-column show-overflow-tooltip min-width="75" align="center" prop="courseConsumeCount" label="可用次数"></el-table-column>
|
||||||
<el-table-column show-overflow-tooltip min-width="80" align="center" prop="storeName" label="所属门店"></el-table-column>
|
<el-table-column show-overflow-tooltip min-width="75" align="center" prop="courseConsumePrice" label="可用金额"></el-table-column>
|
||||||
</el-table>
|
<el-table-column show-overflow-tooltip min-width="105" align="center" prop="endTime" label="到期日期"></el-table-column>
|
||||||
</el-collapse-item>
|
<el-table-column show-overflow-tooltip min-width="75" align="center" prop="storeName" label="所属门店"></el-table-column>
|
||||||
</el-collapse>
|
</el-table>
|
||||||
</div>
|
</el-collapse-item>
|
||||||
</template>
|
</el-collapse>
|
||||||
|
</div>
|
||||||
<script>
|
</template>
|
||||||
import { couAccountList, couAccountListDisable } from "@/api/eashier.js";
|
|
||||||
export default {
|
<script>
|
||||||
data() {
|
import { couAccountList, couAccountListDisable } from "@/api/eashier.js";
|
||||||
return {
|
export default {
|
||||||
recColl: 1,
|
data() {
|
||||||
list: [], //主数组
|
return {
|
||||||
lists: [],
|
recColl: 1,
|
||||||
form: {}, //主对象
|
list: [], //主数组
|
||||||
};
|
lists: [],
|
||||||
},
|
form: {}, //主对象
|
||||||
methods: {
|
};
|
||||||
//点击选中
|
},
|
||||||
rowClick(row) {
|
methods: {
|
||||||
console.log(row);
|
//点击选中
|
||||||
row.courseAccountId = row.id;
|
rowClick(row) {
|
||||||
this.$emit("courseData", row);
|
console.log(row);
|
||||||
},
|
row.courseAccountId = row.id;
|
||||||
//组件传值
|
this.$emit("courseData", row);
|
||||||
show(form) {
|
},
|
||||||
console.log(form);
|
//组件传值
|
||||||
if (form) {
|
show(form) {
|
||||||
this.form = { ...form };
|
console.log(form);
|
||||||
this.getData();
|
if (form) {
|
||||||
} else {
|
this.form = { ...form };
|
||||||
this.list = [];
|
this.getData();
|
||||||
}
|
} else {
|
||||||
},
|
this.list = [];
|
||||||
//获取数据
|
}
|
||||||
async getData() {
|
},
|
||||||
var ids = {
|
//获取数据
|
||||||
memberId: this.form.id,
|
async getData() {
|
||||||
};
|
var ids = {
|
||||||
couAccountList(ids).then((res) => {
|
memberId: this.form.id,
|
||||||
if (res.code == "000000") {
|
};
|
||||||
this.list = res.rows;
|
couAccountList(ids).then((res) => {
|
||||||
} else {
|
if (res.code == "000000") {
|
||||||
this.$alert(res.message, "查询会员疗程", {
|
this.list = res.rows;
|
||||||
confirmButtonText: "确定",
|
} else {
|
||||||
confirmButtonClass: "confirmbtnFalses",
|
this.$alert(res.message, "查询会员疗程", {
|
||||||
type: "warning",
|
confirmButtonText: "确定",
|
||||||
center: true,
|
confirmButtonClass: "confirmbtnFalses",
|
||||||
callback: (action) => {},
|
type: "warning",
|
||||||
});
|
center: true,
|
||||||
}
|
callback: (action) => {},
|
||||||
});
|
});
|
||||||
couAccountListDisable(ids).then((res) => {
|
}
|
||||||
if (res.code == "000000") {
|
});
|
||||||
this.lists = res.rows;
|
couAccountListDisable(ids).then((res) => {
|
||||||
} else {
|
if (res.code == "000000") {
|
||||||
this.$alert(res.message, "查询会员疗程", {
|
this.lists = res.rows;
|
||||||
confirmButtonText: "确定",
|
} else {
|
||||||
confirmButtonClass: "confirmbtnFalses",
|
this.$alert(res.message, "查询会员疗程", {
|
||||||
type: "warning",
|
confirmButtonText: "确定",
|
||||||
center: true,
|
confirmButtonClass: "confirmbtnFalses",
|
||||||
callback: (action) => {},
|
type: "warning",
|
||||||
});
|
center: true,
|
||||||
}
|
callback: (action) => {},
|
||||||
});
|
});
|
||||||
},
|
}
|
||||||
},
|
});
|
||||||
};
|
},
|
||||||
</script>
|
},
|
||||||
|
};
|
||||||
<style></style>
|
</script>
|
||||||
|
|
||||||
|
<style></style>
|
||||||
|
|||||||
Loading…
Reference in New Issue