Commit a5d0122b authored by huangyecong's avatar huangyecong

添加个人信息弹窗显示条件

parent ab6fc434
...@@ -151,17 +151,16 @@ export default { ...@@ -151,17 +151,16 @@ export default {
onSubmit() { onSubmit() {
this.$refs.ruleForm.validate((valid) => { this.$refs.ruleForm.validate((valid) => {
if (valid) { if (valid) {
console.log('立即预约submit', this.form)
const query = { const query = {
...this.form, ...this.form,
} }
api.improveInformation(query).then((res) => { api.improveInformation(query).then((res) => {
console.log('提交用户信息res', res)
if (res.returnCode == '0000') { if (res.returnCode == '0000') {
// 提交成功之后,提示成功信息,关闭"个人信息填写弹窗",并刷新当前页面
this.$message.success('个人信息提交成功') this.$message.success('个人信息提交成功')
// 提交成功之后,关闭"个人信息填写弹窗",并刷新当前页面
setTimeout(() => { setTimeout(() => {
this.$emit('hideModal') this.$emit('hideModal')
// 刷新列表
}, 1500) }, 1500)
} else { } else {
this.$message.error(res.returnMsg) this.$message.error(res.returnMsg)
...@@ -180,7 +179,6 @@ export default { ...@@ -180,7 +179,6 @@ export default {
// 选择生日 // 选择生日
onChange(date, dateString) { onChange(date, dateString) {
this.form.birthDate = dateString this.form.birthDate = dateString
console.log(date, dateString)
}, },
}, },
} }
......
...@@ -33,7 +33,7 @@ export default { ...@@ -33,7 +33,7 @@ export default {
data() { data() {
return { return {
id:'', id:'',
visible: true, //是否显示"个人基本信息填写"弹窗 visible: false, //是否显示"个人基本信息填写"弹窗
items: [ items: [
{ {
name: '体检套餐名称-某某单位-某某套餐', name: '体检套餐名称-某某单位-某某套餐',
...@@ -103,14 +103,12 @@ export default { ...@@ -103,14 +103,12 @@ export default {
}, },
// 获取客户详情 // 获取客户详情
getCustomerDetail() { getCustomerDetail() {
console.log('this.id=',this.id,typeof(this.id),typeof(parseInt(this.id)));
api.getCustomerDetail({ id: parseInt(this.id) }).then((res) => { api.getCustomerDetail({ id: parseInt(this.id) }).then((res) => {
if (res.returnCode == '0000') { if (res.returnCode == '0000') {
// 根据information是否显示'个人基本信息填写'弹窗(01:完善 02:不完善) // 根据information是否显示'个人基本信息填写'弹窗(01:完善 02:不完善)
console.log('获取客户详情information',res.content.information ) res.content.information == '02'
// res.content.information == '02' ? (this.visible = true)
// ? (this.visible = true) : (this.visible = false)
// : (this.visible = false)
} else { } else {
this.$message.error(res.returnMsg) this.$message.error(res.returnMsg)
} }
......
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