Commit a5d0122b authored by huangyecong's avatar huangyecong

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

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