diff --git a/src/page-subspecialty/views/modules/optometryManagement/dioptric/patient-add-or-update.vue b/src/page-subspecialty/views/modules/optometryManagement/dioptric/patient-add-or-update.vue
index 0db0d6d..56e7d11 100644
--- a/src/page-subspecialty/views/modules/optometryManagement/dioptric/patient-add-or-update.vue
+++ b/src/page-subspecialty/views/modules/optometryManagement/dioptric/patient-add-or-update.vue
@@ -67,7 +67,7 @@
-
+
{
- // if (value && !isIDNumber(value)) {
- // return callback(new Error('您输入的身份证格式不正确'))
- // } else if (!value) {
- // return callback(new Error('请输入身份证号'))
- // }
- // callback()
- // }
return {
patientId: [
{ required: true, message: '请输入登记号', trigger: 'blur' }
@@ -167,7 +158,6 @@ export default {
this.getProject()
this.$nextTick(() => {
this.$refs.dataForm.resetFields() // 重置表单
- // this.getVisitList() // 获取随访列表
if (this.params.patientId && this.dataForm.title !== 'HIS引入') {
this.dataForm = {
title: this.dataForm.title,
@@ -191,33 +181,11 @@ export default {
this.projectList = data.data.data
})
},
- // 获取信息
- getInfo() {
- this.$http.get(`/patient/manage/${this.params.patientCentreId}/${this.params.patientIdNumber}`).then(({ data: res }) => {
- if (res.code !== 0) {
- return this.$message.error(res.msg)
- }
- this.dataForm = {
- ...this.dataForm,
- ...res.data
- }
- }).catch(() => {})
- },
// 获取His信息
getHisInfo() {
this.dataForm = { ...this.dataForm, ...this.params }
this.dataForm.revisitCycles = this.dataForm.revisitCycles ? this.dataForm.revisitCycles : '1'
this.dataForm.revisitCyclesUnit = this.dataForm.revisitCyclesUnit ? this.dataForm.revisitCyclesUnit : '3'
- console.log(this.dataForm)
- },
- // 获取随访列表
- async getVisitList() {
- const { data: res } = await this.$http.get('/visit/getList')
- if (res.code === 0) {
- this.visitList = res.data
- } else {
- this.$message.error(res.msg)
- }
},
// 表单提交
dataFormSubmitHandle: debounce(function() {
@@ -225,6 +193,7 @@ export default {
if (!valid) {
return false
}
+ this.dataForm.zlProjectCode = this.dataForm.zlProjectCode.join(',')
this.$http[!this.dataForm.id ? 'post' : 'put']('/patient/savePatient', this.dataForm).then(({ data: res }) => {
if (res.code !== 0) {
return this.$message.error(res.msg)
diff --git a/src/page-subspecialty/views/modules/outpatientManagement/call/patient-add-or-update.vue b/src/page-subspecialty/views/modules/outpatientManagement/call/patient-add-or-update.vue
index 0403cf5..f4dffff 100644
--- a/src/page-subspecialty/views/modules/outpatientManagement/call/patient-add-or-update.vue
+++ b/src/page-subspecialty/views/modules/outpatientManagement/call/patient-add-or-update.vue
@@ -67,7 +67,7 @@
-
+
-
-
-
-
-
@@ -118,9 +113,8 @@ export default {
patientBirthday: '',
mzDoctorId: '', // 门诊医师
sgDoctorId: '', // 视光医师
- zlProjectCode: '',
- zlEye: '',
- visitId: '',
+ zlProjectCode: [],
+ zlEye: 'ou',
remark: ''
},
zlEyeList: [
@@ -129,7 +123,6 @@ export default {
{ name: '双眼', value: 'ou' }
],
params: {},
- visitList: [],
doctorList: [],
projectList: []
}
@@ -174,7 +167,6 @@ export default {
this.$nextTick(() => {
this.$refs.dataForm.resetFields() // 重置表单
if (this.params.patientId && this.dataForm.title !== 'HIS引入') {
- // this.getInfo()
this.dataForm = {
title: this.dataForm.title,
...this.params
@@ -197,18 +189,6 @@ export default {
this.projectList = data.data.data
})
},
- // 获取信息
- getInfo() {
- this.$http.get(`/patient/manage/${this.params.patientCentreId}/${this.params.patientIdNumber}`).then(({ data: res }) => {
- if (res.code !== 0) {
- return this.$message.error(res.msg)
- }
- this.dataForm = {
- ...this.dataForm,
- ...res.data
- }
- }).catch(() => {})
- },
// 获取His信息
getHisInfo() {
this.dataForm = { ...this.dataForm, ...this.params }
@@ -216,21 +196,13 @@ export default {
this.dataForm.revisitCyclesUnit = this.dataForm.revisitCyclesUnit ? this.dataForm.revisitCyclesUnit : '3'
console.log(this.dataForm)
},
- // 获取随访列表
- async getVisitList() {
- const { data: res } = await this.$http.get('/visit/getList')
- if (res.code === 0) {
- this.visitList = res.data
- } else {
- this.$message.error(res.msg)
- }
- },
// 表单提交
dataFormSubmitHandle: debounce(function() {
this.$refs.dataForm.validate((valid) => {
if (!valid) {
return false
}
+ this.dataForm.zlProjectCode = this.dataForm.zlProjectCode.join(',')
this.$http[!this.dataForm.id ? 'post' : 'put']('/patient/savePatient', this.dataForm).then(({ data: res }) => {
if (res.code !== 0) {
return this.$message.error(res.msg)
@@ -276,6 +248,9 @@ export default {
.el-dialog__body {
padding-right: 30px;
}
+ .el-select{
+ width: 100%;
+ }
.formItemOne .el-form-item__content {
display: flex;
}
diff --git a/src/page-subspecialty/views/modules/outpatientManagement/treat/patient-add-or-update.vue b/src/page-subspecialty/views/modules/outpatientManagement/treat/patient-add-or-update.vue
index 4e4f61c..a4fd6a0 100644
--- a/src/page-subspecialty/views/modules/outpatientManagement/treat/patient-add-or-update.vue
+++ b/src/page-subspecialty/views/modules/outpatientManagement/treat/patient-add-or-update.vue
@@ -65,7 +65,7 @@
-
+
-
-
-
-
-
@@ -114,8 +109,8 @@ export default {
patientBirthday: '',
mzDoctorId: '', // 门诊医师
sgDoctorId: '', // 视光医师
- zlEye: '',
- zlProjectCode: '',
+ zlEye: 'ou',
+ zlProjectCode: [],
remark: ''
},
zlEyeList: [
@@ -124,7 +119,6 @@ export default {
{ name: '双眼', value: 'ou' }
],
params: {},
- visitList: [],
doctorList: [],
projectList: []
}
@@ -137,14 +131,6 @@ export default {
}
callback()
}
- // var validataIDNumber = (rule, value, callback) => {
- // if (value && !isIDNumber(value)) {
- // return callback(new Error('您输入的身份证格式不正确'))
- // } else if (!value) {
- // return callback(new Error('请输入身份证号'))
- // }
- // callback()
- // }
return {
patientId: [
{ required: true, message: '请输入登记号', trigger: 'blur' }
@@ -197,21 +183,13 @@ export default {
this.dataForm.revisitCycles = this.dataForm.revisitCycles ? this.dataForm.revisitCycles : '1'
this.dataForm.revisitCyclesUnit = this.dataForm.revisitCyclesUnit ? this.dataForm.revisitCyclesUnit : '3'
},
- // 获取随访列表
- async getVisitList() {
- const { data: res } = await this.$http.get('/visit/getList')
- if (res.code === 0) {
- this.visitList = res.data
- } else {
- this.$message.error(res.msg)
- }
- },
// 表单提交
dataFormSubmitHandle: debounce(function() {
this.$refs.dataForm.validate((valid) => {
if (!valid) {
return false
}
+ this.dataForm.zlProjectCode = this.dataForm.zlProjectCode.join(',')
this.$http[!this.dataForm.id ? 'post' : 'put']('/patient/savePatient', this.dataForm).then(({ data: res }) => {
if (res.code !== 0) {
return this.$message.error(res.msg)