Commit 95c2e5fb authored by hailiang.sun's avatar hailiang.sun

同步代码

parent e13b0b6c
...@@ -15,12 +15,14 @@ npm serve ...@@ -15,12 +15,14 @@ npm serve
``` ```
### 测试环境 2021/11/17 更新 ### 测试环境 2021/11/17 更新
- 运行命令: npm run build - 运行命令: npm run build
- 测试地址:http://lnh.run4wd.com/pc/ - 测试地址:http://lnh.run4wd.com/pc/
- 发布服务器: 114.55.4.202 - 发布服务器: 114.55.4.202
- 发布目录: /datavg/lnh/pc/ - 发布目录: /datavg/lnh/pc/
### 测试账号 ### 测试账号
-800000056417 -1831 -800000056417 -1831
-800000056418 -3193 -800000056418 -3193
-800000056419 -9472 -800000056419 -9472
...@@ -30,4 +32,4 @@ npm serve ...@@ -30,4 +32,4 @@ npm serve
-800000056423 -6046 -800000056423 -6046
-800000056424 -7922 -800000056424 -7922
-800000056425 -2468 -800000056425 -2468
-800000056426 -5577 -800000056426 -5577 -- 有可约数据-没套餐
\ No newline at end of file
<template> <template>
<div class="combo"> <div class="combo">
<div class="title"><span class="point" v-if="reservedInfo"></span>{{reservedInfo.chooseName}}</div> <div class="title">
<!-- v-if="combos.type === '1'" --> <span class="point" v-if="reservedInfo"></span
<a-radio-group >{{ reservedInfo.chooseName }}
class="items-radios" </div>
v-model="chooseId" <!-- v-if="combos.type === '1'" -->
@change="onChange" <a-radio-group class="items-radios" v-model="chooseId" @change="onChange">
>
<ul class="items"> <ul class="items">
<li class="item" v-for="item in chooseList" :key="item.id" <li
@click.stop="item.show=!item.show"> class="item"
<a-radio :value="item.id" @focus="item.show=!item.show"> v-for="item in chooseList"
:key="item.id"
@click.stop="item.show = !item.show"
>
<a-radio :value="item.id" @focus="item.show = !item.show">
<span>{{ item.servicecententName }}</span> <span>{{ item.servicecententName }}</span>
</a-radio> </a-radio>
<div class="desc-div" v-if="item.articleList&&item.show"> <div class="desc-div" v-if="item.articleList && item.show">
<div class="flex li" v-for="(ite,i) in item.articleList" :key='ite.id'> <div
<div class="title">{{i+1}}. 标题:{{ite.title}}</div> class="flex li"
<div class="content">内容:{{ite.content}}</div> v-for="(ite, i) in item.articleList"
</div> :key="ite.id"
</div> >
<div class="title">{{ i + 1 }}. 标题:{{ ite.title }}</div>
<div class="content">内容:{{ ite.content }}</div>
</div>
</div>
</li> </li>
</ul> </ul>
</a-radio-group> </a-radio-group>
...@@ -42,15 +48,15 @@ export default { ...@@ -42,15 +48,15 @@ export default {
name: "componentName", name: "componentName",
components: {}, components: {},
props: { props: {
id:{ id: {
type:String | Number, type: String | Number,
default:'' default: "",
} },
}, },
data() { data() {
return { return {
chooseId: '', chooseId: "",
chooseList: [], chooseList: [],
// chkvalue: [], // chkvalue: [],
// combos: { // combos: {
// type: "2", // type: "2",
...@@ -94,45 +100,45 @@ export default { ...@@ -94,45 +100,45 @@ export default {
// }, // },
// ], // ],
// }, // },
reservedInfo:[]//可选择的体检套餐 reservedInfo: [], //可选择的体检套餐
}; };
}, },
created(){ created() {
//获取产品信息-可选体检套餐 //获取产品信息-可选体检套餐
this.reservedInfo = JSON.parse(window.localStorage.getItem('reservedInfo')) this.reservedInfo = JSON.parse(window.localStorage.getItem("reservedInfo"));
let chooseList = JSON.parse(window.localStorage.getItem('chooseList')); let chooseList = JSON.parse(window.localStorage.getItem("chooseList"));
this.chooseId = chooseList.id console.log("????", chooseList, this.reservedInfo);
this.chooseList = this.reservedInfo.chooseList.map((item)=>{ this.chooseId = chooseList.id;
return { this.chooseList = this.reservedInfo.chooseList.map((item) => {
...item, return {
show: false ...item,
} show: false,
}) };
console.log(this.chooseList) });
console.log(this.chooseList);
}, },
methods: { methods: {
onChange(checkedValues) { onChange(checkedValues) {
const chooseList = [] const chooseList = [];
chooseList.push({ chooseList.push({
id:this.chooseId id: this.chooseId,
}) });
// 本地存储数据-选择的体检套餐 // 本地存储数据-选择的体检套餐
window.localStorage.setItem('chooseList',JSON.stringify(chooseList)) window.localStorage.setItem("chooseList", JSON.stringify(chooseList));
console.log("选择体检套餐chooseId===",this.chooseId) console.log("选择体检套餐chooseId===", this.chooseId);
// 显示"下一步" // 显示"下一步"
this.$parent.next = true this.$parent.next = true;
}, },
}, },
}; };
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
.desc-div{ .desc-div {
box-sizing: border-box; box-sizing: border-box;
padding: 10px; padding: 10px;
border-radius: 6px; border-radius: 6px;
background: #f8f8f8; background: #f8f8f8;
} }
.combo { .combo {
.items-radios { .items-radios {
......
...@@ -31,9 +31,9 @@ ...@@ -31,9 +31,9 @@
<span class="label">出生日期:</span> <span class="label">出生日期:</span>
<a-input :value="customerInfo.birthDate" disabled /> <a-input :value="customerInfo.birthDate" disabled />
</div> </div>
<div class="item tip"> <div class="item tip">
【温馨提醒:女士请注意婚姻状况的选择,未婚代表不做妇科项目,需要做妇科项目检测请选择已婚,谢谢理解!】 【温馨提醒:女士请注意婚姻状况的选择,未婚代表不做妇科项目,需要做妇科项目检测请选择已婚,谢谢理解!】
</div> </div>
</div> </div>
<div class="reset"> <div class="reset">
<a-button type="primary" @click="onSubmit">点击修改</a-button> <a-button type="primary" @click="onSubmit">点击修改</a-button>
...@@ -55,12 +55,12 @@ ...@@ -55,12 +55,12 @@
</template> </template>
<script> <script>
import SelectInstitution from './components/selectInstitution.vue' import SelectInstitution from "./components/selectInstitution.vue";
import Combos from './components/combo.vue' import Combos from "./components/combo.vue";
import api from '@/api/customer' import api from "@/api/customer";
import { log } from 'util' import { log } from "util";
export default { export default {
name: 'componentName', name: "componentName",
components: { components: {
Combos, Combos,
SelectInstitution, SelectInstitution,
...@@ -70,7 +70,7 @@ export default { ...@@ -70,7 +70,7 @@ export default {
return { return {
next: false, next: false,
previous: false, previous: false,
id: '', //客户id id: "", //客户id
customerInfo: { customerInfo: {
// name: '', // name: '',
// sex: '', // sex: '',
...@@ -81,43 +81,46 @@ export default { ...@@ -81,43 +81,46 @@ export default {
}, //客户信息 }, //客户信息
step1: true, step1: true,
step2: false, step2: false,
} };
}, },
created() { created() {
const { id } = this.$route.query const { id } = this.$route.query;
this.id = id this.id = id;
this.getCustomerDetail() //客户信息 this.getCustomerDetail(); //客户信息
console.log("xxxxx");
}, },
methods: { methods: {
nextStep() { nextStep() {
this.previous = true this.previous = true;
this.next = false this.next = false;
this.step1 = false this.step1 = false;
this.step2 = true this.step2 = true;
}, },
previousStep() { previousStep() {
this.next = true this.next = true;
this.previous = false this.previous = false;
this.step1 = true this.step1 = true;
this.step2 = false this.step2 = false;
}, },
// 获取客户信息 // 获取客户信息
getCustomerDetail() { getCustomerDetail() {
console.log("ssss");
api.getCustomerDetail({ id: parseInt(this.id) }).then((res) => { api.getCustomerDetail({ id: parseInt(this.id) }).then((res) => {
if (res.returnCode == '0000') { console.log("sdadad", res.content);
this.customerInfo = res.content if (res.returnCode == "0000") {
console.table('客户信息customerInfo=', this.customerInfo) this.customerInfo = res.content;
console.table("客户信息customerInfo=", this.customerInfo);
} else { } else {
this.$message.error(res.returnMsg) this.$message.error(res.returnMsg);
} }
}) });
}, },
// "立即修改" // "立即修改"
onSubmit() { onSubmit() {
const { name, idType, sex, idNo, phone, birthDate, maritalStatus } = const { name, idType, sex, idNo, phone, birthDate, maritalStatus } =
this.customerInfo this.customerInfo;
const query = { const query = {
id: this.id, id: this.id,
...@@ -128,28 +131,28 @@ export default { ...@@ -128,28 +131,28 @@ export default {
phone, phone,
birthDate, birthDate,
maritalStatus, maritalStatus,
} };
api.improveInformation(query).then((res) => { api.improveInformation(query).then((res) => {
if (res.returnCode == '0000') { if (res.returnCode == "0000") {
// 提交成功之后,提示成功信息,关闭"个人信息填写弹窗",并刷新当前页面 // 提交成功之后,提示成功信息,关闭"个人信息填写弹窗",并刷新当前页面
this.$message.success('修改信息成功') this.$message.success("修改信息成功");
setTimeout(() => { setTimeout(() => {
// 刷新列表 // 刷新列表
this.getCustomerDetail() this.getCustomerDetail();
}, 1500) }, 1500);
} else { } else {
this.$message.error(res.returnMsg) this.$message.error(res.returnMsg);
} }
}) });
}, },
}, },
} };
</script> </script>
<style lang="less"> <style lang="less">
.footbar_{ .footbar_ {
position: initial !important; position: initial !important;
} }
</style> </style>
<style lang="less" scoped> <style lang="less" scoped>
.flow { .flow {
...@@ -191,10 +194,10 @@ export default { ...@@ -191,10 +194,10 @@ export default {
.item { .item {
display: flex; display: flex;
margin-top: 14px; margin-top: 14px;
&.tip{ &.tip {
font-size: 12px; font-size: 12px;
color: #999; color: #999;
} }
.label { .label {
display: inline-block; display: inline-block;
width: 120px; width: 120px;
......
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