|
@@ -315,7 +315,7 @@
|
|
|
<el-row>
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="科室" prop="deptId">
|
|
|
- <el-select v-model="form.deptId" multiple placeholder="请选择所属科室">
|
|
|
+ <el-select v-model="form.deptId" placeholder="请选择所属科室">
|
|
|
<el-option
|
|
|
v-for="dict in depList"
|
|
|
:key="dict.dictValue"
|
|
@@ -950,9 +950,9 @@ export default {
|
|
|
this.sexOptions = response.data;
|
|
|
});
|
|
|
this.getdeplist();
|
|
|
- listStore().then(response => {
|
|
|
- this.storeOPtions = response.rows;
|
|
|
- });
|
|
|
+ listStore().then(response => {
|
|
|
+ this.storeOPtions = response.rows;
|
|
|
+ });
|
|
|
this.getHospitaldeplist();
|
|
|
getAllFollowDoctorList().then(response => {
|
|
|
|
|
@@ -1298,9 +1298,9 @@ export default {
|
|
|
if(this.form.packageIds!=null){
|
|
|
this.form.packageIds= ((this.form.packageIds).split(",")).map(Number)
|
|
|
}
|
|
|
- if(this.form.storeIds!=null){
|
|
|
- this.form.storeIds= ((this.form.storeIds).split(",")).map(Number)
|
|
|
- }
|
|
|
+ if(this.form.storeIds!=null){
|
|
|
+ this.form.storeIds= ((this.form.storeIds).split(",")).map(Number)
|
|
|
+ }
|
|
|
if(this.form.isSelf!=null){
|
|
|
this.form.isSelf = String(this.form.isSelf)
|
|
|
}
|
|
@@ -1316,7 +1316,10 @@ export default {
|
|
|
if(this.form.isPrescribeDoctor!=null){
|
|
|
this.form.isPrescribeDoctor = String(this.form.isPrescribeDoctor)
|
|
|
}
|
|
|
- this.form.cityIds=((this.form.cityIds).split(",")).map(Number)
|
|
|
+ if(this.form.cityIds){
|
|
|
+ this.form.cityIds=((this.form.cityIds).split(",")).map(Number)
|
|
|
+ }
|
|
|
+
|
|
|
if(this.form.prescribeDoctorName!=null){
|
|
|
this.doctorName.name=this.form.prescribeDoctorName;
|
|
|
this.getlistdocuser();
|
|
@@ -1366,6 +1369,9 @@ export default {
|
|
|
},
|
|
|
/** 提交按钮 */
|
|
|
submitForm() {
|
|
|
+ if(this.form.isPrescribeDoctor!=null){
|
|
|
+ this.form.isPrescribeDoctor = String(this.form.isPrescribeDoctor)
|
|
|
+ }
|
|
|
this.$refs["form"].validate(valid => {
|
|
|
if (valid) {
|
|
|
if(this.form.packageIds!=null){
|
|
@@ -1374,10 +1380,6 @@ export default {
|
|
|
if(this.form.storeIds!=null){
|
|
|
this.form.storeIds=(this.form.storeIds).toString()
|
|
|
}
|
|
|
- if(this.form.deptId!=null){
|
|
|
- this.form.deptId=this.form.deptId.join(",");
|
|
|
- console.log(this.form.deptId)
|
|
|
- }
|
|
|
this.form.cityIds=(this.form.cityIds).toString()
|
|
|
if (this.form.doctorId != null) {
|
|
|
this.form.doctorType=1;
|