|
@@ -206,6 +206,16 @@
|
|
|
<el-form-item label="地址" prop="companyAddress">
|
|
|
<el-input v-model="form.companyAddress" placeholder="请输入地址" />
|
|
|
</el-form-item>
|
|
|
+ <el-form-item label="套餐包分类" prop="packageCateIds">
|
|
|
+ <el-select v-model="form.packageCateIds" multiple filterable placeholder="请选择套餐包分类" style="width: 300px;">
|
|
|
+ <el-option
|
|
|
+ v-for="item in cateList"
|
|
|
+ :key="item.dictValue"
|
|
|
+ :label="item.dictLabel"
|
|
|
+ :value="item.dictValue"
|
|
|
+ ></el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
<el-form-item label="随访医生" prop="followDoctorIds">
|
|
|
<el-select v-model="form.followDoctorIds" multiple filterable placeholder="请选择随访医生" style="width: 300px;">
|
|
|
<el-option
|
|
@@ -334,6 +344,7 @@ import {getFollowDoctorList} from "@/api/his/doctor";
|
|
|
import {docList} from "@/api/his/doctor";
|
|
|
import {getVoiceApiList } from "@/api/company/companyVoiceApi";
|
|
|
import {getCitysArea} from "../../../api/company/company";
|
|
|
+import {cateList} from "@/api/his/packageCate";
|
|
|
export default {
|
|
|
name: "Company",
|
|
|
data() {
|
|
@@ -388,6 +399,7 @@ export default {
|
|
|
money:0,
|
|
|
},
|
|
|
followDoctorList:[],
|
|
|
+ cateList:[],
|
|
|
// 表单参数
|
|
|
form: {
|
|
|
restartTime: '13:10',
|
|
@@ -438,6 +450,9 @@ export default {
|
|
|
// followDoctorIds: [
|
|
|
// { required: true, message: "不能为空", trigger: "blur" }
|
|
|
// ],
|
|
|
+ packageCateIds: [
|
|
|
+ { required: true, message: "套餐包分类不能为空", trigger: "blur" }
|
|
|
+ ],
|
|
|
},
|
|
|
// 表单校验
|
|
|
deductRules: {
|
|
@@ -469,6 +484,9 @@ export default {
|
|
|
});
|
|
|
getFollowDoctorList().then((response) => {
|
|
|
this.followDoctorList = response.rows;
|
|
|
+ });
|
|
|
+ cateList().then((response) => {
|
|
|
+ this.cateList = response.rows;
|
|
|
});
|
|
|
docList().then(response => {
|
|
|
this.doctor=response.rows;
|
|
@@ -611,12 +629,15 @@ export default {
|
|
|
if(this.form.status!=null){
|
|
|
this.form.status = String(this.form.status)
|
|
|
}
|
|
|
- if(this.form.doctorIds!=null){
|
|
|
- this.doctorIds = ((this.form.doctorIds).split(",")).map(Number);
|
|
|
- }
|
|
|
+ if(this.form.doctorIds!=null){
|
|
|
+ this.doctorIds = ((this.form.doctorIds).split(",")).map(Number);
|
|
|
+ }
|
|
|
if(this.form.followDoctorIds!=null){
|
|
|
this.form.followDoctorIds= JSON.parse(this.form.followDoctorIds)
|
|
|
}
|
|
|
+ if(this.form.packageCateIds!=null){
|
|
|
+ this.form.packageCateIds= JSON.parse(this.form.packageCateIds)
|
|
|
+ }
|
|
|
if(this.form.companyType!=null){
|
|
|
this.form.companyType = String(this.form.companyType)
|
|
|
}
|
|
@@ -629,9 +650,15 @@ export default {
|
|
|
if(this.form.followDoctorIds!=null){
|
|
|
this.form.followDoctorIds= JSON.stringify(this.form.followDoctorIds)
|
|
|
}
|
|
|
- if(this.doctorIds!=null){
|
|
|
- this.form.doctorIds= (this.doctorIds).toString()
|
|
|
- }
|
|
|
+ if(this.form.packageCateIds!=null){
|
|
|
+ this.form.packageCateIds= JSON.stringify(this.form.packageCateIds)
|
|
|
+ }
|
|
|
+ if(this.doctorIds!=null){
|
|
|
+ this.form.doctorIds= (this.doctorIds).toString()
|
|
|
+ }
|
|
|
+ if(this.doctorIds!=null){
|
|
|
+ this.form.doctorIds= (this.doctorIds).toString()
|
|
|
+ }
|
|
|
if (this.form.companyId != null) {
|
|
|
updateCompany(this.form).then(response => {
|
|
|
this.msgSuccess("修改成功");
|