Commit 7d8484e0 authored by huangyecong's avatar huangyecong

交互优化

parent 84b25dc8
...@@ -52,8 +52,9 @@ ...@@ -52,8 +52,9 @@
:key="index" :key="index"
:class="index === selectIndex ? 'active' : ''" :class="index === selectIndex ? 'active' : ''"
@click="clickTab(index, item.id)" @click="clickTab(index, item.id)"
>{{ item.supplierName }}-{{ item.id }}</span >{{ item.supplierName }}</span
> >
<!-- -{{ item.id }} -->
</div> </div>
</div> </div>
<!-- 请选择体检地区 --> <!-- 请选择体检地区 -->
...@@ -71,8 +72,9 @@ ...@@ -71,8 +72,9 @@
:class="item.isDisabled ? 'btn disabled' : 'btn'" :class="item.isDisabled ? 'btn disabled' : 'btn'"
@click="openDatePicker(item)" @click="openDatePicker(item)"
> >
选择体检日期-{{ item.supplierId }}-{{ item.id }} 选择体检日期
</button> </button>
<!-- -{{ item.supplierId }}-{{ item.id }} -->
</li> </li>
</ul> </ul>
<div v-else class="hospital_none">暂无可选分院</div> <div v-else class="hospital_none">暂无可选分院</div>
...@@ -334,7 +336,7 @@ export default { ...@@ -334,7 +336,7 @@ export default {
// 提示预约成功,之后跳转到预约详情页面 // 提示预约成功,之后跳转到预约详情页面
setTimeout(() => { setTimeout(() => {
// 需要获取用户id // 需要获取用户id
this.$router.push({ _this.$router.push({
name: 'Detail', name: 'Detail',
query: { query: {
id: _this.id, id: _this.id,
......
...@@ -44,7 +44,9 @@ ...@@ -44,7 +44,9 @@
</div> </div>
<div class="btn"> <div class="btn">
<a-button type="primary" @click="nextStep" v-if="next">下一步</a-button> <a-button type="primary" @click="nextStep" v-if="next">下一步</a-button>
<a-button type="primary" @click="previousStep" v-if="previous">上一步</a-button> <a-button type="primary" @click="previousStep" v-if="previous"
>上一步</a-button
>
</div> </div>
</div> </div>
</template> </template>
...@@ -53,6 +55,7 @@ ...@@ -53,6 +55,7 @@
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'
export default { export default {
name: 'componentName', name: 'componentName',
components: { components: {
...@@ -63,15 +66,15 @@ export default { ...@@ -63,15 +66,15 @@ export default {
data() { data() {
return { return {
next: false, next: false,
previous:false, previous: false,
id: '', //客户id id: '', //客户id
customerInfo: { customerInfo: {
name: '', // name: '',
sex: '', // sex: '',
idNo: '', // idNo: '',
phone: '', // phone: '',
birthDate: '', // birthDate: '',
maritalStatus: '', // maritalStatus: '',
}, //客户信息 }, //客户信息
step1: true, step1: true,
step2: false, step2: false,
...@@ -81,7 +84,6 @@ export default { ...@@ -81,7 +84,6 @@ export default {
const { id } = this.$route.query const { id } = this.$route.query
this.id = id this.id = id
this.getCustomerDetail() //客户信息 this.getCustomerDetail() //客户信息
}, },
methods: { methods: {
nextStep() { nextStep() {
...@@ -91,7 +93,7 @@ export default { ...@@ -91,7 +93,7 @@ export default {
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
...@@ -111,17 +113,27 @@ export default { ...@@ -111,17 +113,27 @@ export default {
}, },
// "立即修改" // "立即修改"
onSubmit() { onSubmit() {
const { name, idType, sex, idNo, phone, birthDate, maritalStatus } =
this.customerInfo
const query = { const query = {
// ...this.form, id: this.id,
name,
idType,
sex,
idNo,
phone,
birthDate,
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.$emit('hideModal') // 刷新列表
// // 刷新列表 this.getCustomerDetail()
// }, 1500) }, 1500)
} else { } else {
this.$message.error(res.returnMsg) this.$message.error(res.returnMsg)
} }
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
>立即预约</a-button >立即预约</a-button
> >
<div class="date"> <div class="date">
有效期至:{{ listType == 1 ? item.validityEnd : item.customerAppDate }} {{ listType == 1 ? (' 有效期至:'+item.validityEnd ): ('预约体检日期:'+item.customerAppDate) }}
</div> </div>
</div> </div>
</div> </div>
......
...@@ -193,7 +193,6 @@ export default { ...@@ -193,7 +193,6 @@ export default {
} }
} }
.point_none{ .point_none{
text-align: center; padding: 26px;
padding: 40px;
} }
</style> </style>
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