Commit 7302149c authored by hailiang.sun's avatar hailiang.sun

修改状态吗

parent 4b754e36
......@@ -69,16 +69,20 @@
</div>
<div class="btns">
<a-button type="primary" disabled>{{
item.status === "88" ||
item.status === "99" ||
item.status === "1"
item.status === "88" || item.status === "99"
? "预约失败"
: item.status === "1"
? "预约中..."
: item.status === "2"
? "已预约"
: item.status === "3"
? "取消中..."
: item.status === "7"
? "改约中..."
: item.status === "4"
? "已经取消"
? "已取消"
: item.status === "5" || item.status === "6"
? "已完成"
: "状态异常"
}}</a-button>
<a-button type="primary" @click="goIndexPage"> 回首页 </a-button>
......@@ -115,8 +119,12 @@ export default {
},
created() {
const { id, appointmentId } = this.$route.query;
console.log("对象带过来没?", this.$route);
this.item = this.$route.params;
if (this.$route.params.status) {
localStorage.setItem("item", JSON.stringify(this.$route.params));
}
this.item = this.$route.params.status
? this.$route.params
: JSON.parse(localStorage.getItem("item"));
this.id = id;
this.getCustomerDetail(); //获取客户信息
// 新增新增预约
......
......@@ -93,6 +93,7 @@ export default {
data() {
return {
logo: "",
templateId: "1002", // 默认测试模版
left: require("../../assets/imgs/login/left-bg.png"),
downImg: "",
isSub: true,
......@@ -106,10 +107,11 @@ export default {
this.form = this.$form.createForm(this, { name: "normal_login" });
},
created() {
// let url = location.href;
// let splitParmsArr = url.split("/");
// let idParms = splitParmsArr.slice(-1)[0];
// 生产环境
if (window.origin == "https://health.medilink-global.com.cn") {
console.log("生产环境id", window.origin);
this.templateId = "1009";
}
this.getLoginConfigFn();
},
methods: {
......@@ -130,7 +132,7 @@ export default {
},
getLoginConfigFn() {
const query = {
id: "1002", //暂时写死的
id: this.templateId, //暂时写死的
};
api.getLoginConfig(query).then((res) => {
if (res.returnCode == "0000") {
......@@ -158,7 +160,7 @@ export default {
if (!err) {
console.log("登陆values=", values);
const query = {
id: "1002", //使用"体检卡口令"登陆,id必须是'1002',目前只有一种登陆方式,是写死的,后边会使用配置
id: this.templateId, //使用"体检卡口令"登陆,目前只有一种登陆方式,是写死的,后边会使用配置
fields: [
{
fieldName: this.fields[0].remark,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment