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

修改状态吗

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