|
|
@@ -51,16 +51,16 @@
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
|
- <el-form-item label="接诊状态" prop="workStatus">
|
|
|
- <el-select v-model="queryParams.workStatus" placeholder="接诊状态" clearable size="small">
|
|
|
- <el-option
|
|
|
- v-for="dict in statusOptions"
|
|
|
- :key="dict.dictValue"
|
|
|
- :label="dict.dictLabel"
|
|
|
- :value="dict.dictValue"
|
|
|
- />
|
|
|
- </el-select>
|
|
|
- </el-form-item>
|
|
|
+<!-- <el-form-item label="接诊状态" prop="workStatus">-->
|
|
|
+<!-- <el-select v-model="queryParams.workStatus" placeholder="接诊状态" clearable size="small">-->
|
|
|
+<!-- <el-option-->
|
|
|
+<!-- v-for="dict in statusOptions"-->
|
|
|
+<!-- :key="dict.dictValue"-->
|
|
|
+<!-- :label="dict.dictLabel"-->
|
|
|
+<!-- :value="dict.dictValue"-->
|
|
|
+<!-- />-->
|
|
|
+<!-- </el-select>-->
|
|
|
+<!-- </el-form-item>-->
|
|
|
<el-form-item>
|
|
|
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
|
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
|
|
@@ -155,11 +155,11 @@
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
|
|
|
- <el-table-column label="接诊状态" align="center" prop="workStatus" >
|
|
|
- <template slot-scope="scope">
|
|
|
- <dict-tag :options="statusOptions" :value="scope.row.workStatus"/>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
+<!-- <el-table-column label="接诊状态" align="center" prop="workStatus" >-->
|
|
|
+<!-- <template slot-scope="scope">-->
|
|
|
+<!-- <dict-tag :options="statusOptions" :value="scope.row.workStatus"/>-->
|
|
|
+<!-- </template>-->
|
|
|
+<!-- </el-table-column>-->
|
|
|
<el-table-column label="审核状态" align="center" prop="isAudit" >
|
|
|
<template slot-scope="scope">
|
|
|
<dict-tag :options="isauditOptions" :value="scope.row.isAudit"/>
|
|
|
@@ -220,9 +220,8 @@
|
|
|
/>
|
|
|
|
|
|
<!-- 添加或修改医生管理对话框 -->
|
|
|
- <el-dialog :title="title" :visible.sync="open" width="900px" append-to-body >
|
|
|
+ <el-dialog :title="title" :visible.sync="open" width="900px" :before-close="handleClose" append-to-body >
|
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="100px">
|
|
|
-
|
|
|
<el-row>
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="药师姓名" prop="doctorName">
|
|
|
@@ -281,15 +280,8 @@
|
|
|
|
|
|
<el-row>
|
|
|
<el-col :span="12">
|
|
|
- <el-form-item label="所属用户" prop="userId">
|
|
|
- <el-select v-model="form.userId" filterable placeholder="请选择" :filter-method="remoteMethod">
|
|
|
- <el-option
|
|
|
- v-for="item in userList"
|
|
|
- :key="item.name"
|
|
|
- :label="item.name"
|
|
|
- :value="item.id">
|
|
|
- </el-option>
|
|
|
- </el-select>
|
|
|
+ <el-form-item label="手机号" prop="mobile">
|
|
|
+ <el-input v-model="form.mobile" placeholder="请输入手机号" />
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="12">
|
|
|
@@ -322,47 +314,43 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
- <el-row>
|
|
|
- <el-col :span="12">
|
|
|
- <el-form-item label="标签" prop="tags">
|
|
|
- <el-input v-model="form.tags" placeholder="请输入标签" />
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="12">
|
|
|
- <el-form-item label="手机号" prop="mobile">
|
|
|
- <el-input v-model="form.mobile" placeholder="请输入手机号" />
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
+<!-- <el-row>-->
|
|
|
+<!--<!– <el-col :span="12">–>-->
|
|
|
+<!--<!– <el-form-item label="标签" prop="tags">–>-->
|
|
|
+<!--<!– <el-input v-model="form.tags" placeholder="请输入标签" />–>-->
|
|
|
+<!--<!– </el-form-item>–>-->
|
|
|
+<!--<!– </el-col>–>-->
|
|
|
|
|
|
+<!-- </el-row>-->
|
|
|
|
|
|
- <el-form-item label="简介" prop="introduction">
|
|
|
- <el-input type="textarea" :rows="4" v-model="form.introduction" placeholder="请输入简介" maxlength="200"/>
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="擅长领域" prop="speciality">
|
|
|
- <el-input type="textarea" :rows="4" v-model="form.speciality" placeholder="请输入擅长领域" maxlength="400" />
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="备注" prop="remark" >
|
|
|
- <el-input type="textarea" :rows="4" v-model="form.remark" placeholder="请输入备注" />
|
|
|
- </el-form-item>
|
|
|
- <el-row>
|
|
|
- <el-col :span="12">
|
|
|
- <el-form-item label="资格证编号" prop="certificateCode" >
|
|
|
- <el-input v-model="form.certificateCode" placeholder="请输入资格证编号" maxlength="200"/>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="12">
|
|
|
- <el-form-item label="执业证编号" prop="practiseCode" >
|
|
|
- <el-input v-model="form.practiseCode" placeholder="请输入资格证编号" maxlength="200"/>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
- <el-form-item label="资格证" prop="certificateImages">
|
|
|
- <ImageUpload v-model="form.certificateImages" type="image" :num="10" :width="150" :height="150" />
|
|
|
- </el-form-item>
|
|
|
+
|
|
|
+<!-- <el-form-item label="简介" prop="introduction">-->
|
|
|
+<!-- <el-input type="textarea" :rows="4" v-model="form.introduction" placeholder="请输入简介" maxlength="200"/>-->
|
|
|
+<!-- </el-form-item>-->
|
|
|
+<!-- <el-form-item label="擅长领域" prop="speciality">-->
|
|
|
+<!-- <el-input type="textarea" :rows="4" v-model="form.speciality" placeholder="请输入擅长领域" maxlength="400" />-->
|
|
|
+<!-- </el-form-item>-->
|
|
|
+<!-- <el-form-item label="备注" prop="remark" >-->
|
|
|
+<!-- <el-input type="textarea" :rows="4" v-model="form.remark" placeholder="请输入备注" />-->
|
|
|
+<!-- </el-form-item>-->
|
|
|
+<!-- <el-form-item label="资格证" prop="certificateImages">-->
|
|
|
+<!-- <ImageUpload v-model="form.certificateImages" type="image" :num="10" :width="150" :height="150" />-->
|
|
|
+<!-- </el-form-item>-->
|
|
|
<el-form-item label="执业证" prop="practiseImages">
|
|
|
<ImageUpload v-model="form.practiseImages" type="image" :num="10" :width="150" :height="150" />
|
|
|
</el-form-item>
|
|
|
+ <el-row>
|
|
|
+ <el-col :span="24">
|
|
|
+ <el-form-item label="执业证编号" prop="practiseCode" >
|
|
|
+ <el-input v-model="form.practiseCode" placeholder="请输入资格证编号" maxlength="200"/>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <!-- <el-col :span="12">-->
|
|
|
+ <!-- <el-form-item label="执业证" prop="practiseCode" >-->
|
|
|
+ <!-- <el-input v-model="form.practiseCode" placeholder="请输入资格证编号" maxlength="200"/>-->
|
|
|
+ <!-- </el-form-item>-->
|
|
|
+ <!-- </el-col>-->
|
|
|
+ </el-row>
|
|
|
<el-row>
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="身份证号" prop="idCard">
|
|
|
@@ -430,35 +418,36 @@
|
|
|
</el-radio-group>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <el-col :span="12">
|
|
|
- <el-form-item label="接诊状态" prop="workStatus">
|
|
|
- <el-radio-group v-model="form.workStatus">
|
|
|
- <el-radio :label="item.dictValue" v-for="item in statusOptions" >{{item.dictLabel}}</el-radio>
|
|
|
- </el-radio-group>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="是否推荐" prop="isTui">
|
|
|
+ <el-radio-group v-model="form.isTui">
|
|
|
+ <el-radio :label="item.dictValue" v-for="item in orOptions" >{{item.dictLabel}}</el-radio>
|
|
|
+ </el-radio-group>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+<!-- <el-col :span="12">-->
|
|
|
+<!-- <el-form-item label="接诊状态" prop="workStatus">-->
|
|
|
+<!-- <el-radio-group v-model="form.workStatus">-->
|
|
|
+<!-- <el-radio :label="item.dictValue" v-for="item in statusOptions" >{{item.dictLabel}}</el-radio>-->
|
|
|
+<!-- </el-radio-group>-->
|
|
|
+<!-- </el-form-item>-->
|
|
|
+<!-- </el-col>-->
|
|
|
</el-row>
|
|
|
- <el-row>
|
|
|
- <el-col :span="12">
|
|
|
- <el-form-item label="是否推荐" prop="isTui">
|
|
|
- <el-radio-group v-model="form.isTui">
|
|
|
- <el-radio :label="item.dictValue" v-for="item in orOptions" >{{item.dictLabel}}</el-radio>
|
|
|
- </el-radio-group>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="12">
|
|
|
- <el-form-item label="药师类型" prop="auditType">
|
|
|
- <el-select v-model="form.auditType" multiple placeholder="药师类型" style="width: 300px;">
|
|
|
- <el-option
|
|
|
- v-for="item in auditTypeOptions"
|
|
|
- :key="item.dictValue"
|
|
|
- :label="item.dictLabel"
|
|
|
- :value="parseInt(item.dictValue)"
|
|
|
- ></el-option>
|
|
|
- </el-select>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
+<!-- <el-row>-->
|
|
|
+
|
|
|
+<!-- <el-col :span="12">-->
|
|
|
+<!-- <el-form-item label="药师类型" prop="auditType">-->
|
|
|
+<!-- <el-select v-model="form.auditType" multiple placeholder="药师类型" style="width: 300px;">-->
|
|
|
+<!-- <el-option-->
|
|
|
+<!-- v-for="item in auditTypeOptions"-->
|
|
|
+<!-- :key="item.dictValue"-->
|
|
|
+<!-- :label="item.dictLabel"-->
|
|
|
+<!-- :value="parseInt(item.dictValue)"-->
|
|
|
+<!-- ></el-option>-->
|
|
|
+<!-- </el-select>-->
|
|
|
+<!-- </el-form-item>-->
|
|
|
+<!-- </el-col>-->
|
|
|
+<!-- </el-row>-->
|
|
|
<el-row>
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="登录账号" prop="account" v-if="form.doctorId==null||form.doctorId==''">
|
|
|
@@ -472,7 +461,7 @@
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
</el-form>
|
|
|
- <div slot="footer" class="dialog-footer">
|
|
|
+ <div slot="footer" class="dialog-footer" v-if="checkDetails">
|
|
|
<el-button type="primary" @click="submitForm">确 定</el-button>
|
|
|
<el-button @click="cancel">取 消</el-button>
|
|
|
</div>
|
|
|
@@ -557,6 +546,7 @@ export default {
|
|
|
depList:[],
|
|
|
userName: {name:"1"},
|
|
|
userList:[],
|
|
|
+ checkDetails:false,
|
|
|
// auditTypeOptions:[{
|
|
|
// dictValue: '1',
|
|
|
// dictLabel: '西药'
|
|
|
@@ -750,12 +740,40 @@ export default {
|
|
|
},
|
|
|
|
|
|
handledetai(row){
|
|
|
- this.show.open=true;
|
|
|
-
|
|
|
- setTimeout(() => {
|
|
|
- this.$refs.pharmacistDetails.getDetails(row.doctorId);
|
|
|
- }, 1);
|
|
|
-
|
|
|
+ // this.show.open=true;
|
|
|
+ // setTimeout(() => {
|
|
|
+ // this.$refs.pharmacistDetails.getDetails(row.doctorId);
|
|
|
+ // }, 1);
|
|
|
+ this.reset();
|
|
|
+ const doctorId = row.doctorId || this.ids
|
|
|
+ getDoctor(doctorId).then(response => {
|
|
|
+ this.form = response.data;
|
|
|
+ this.open = true;
|
|
|
+ this.title = "药师详情";
|
|
|
+ if(this.form.auditType!=null){
|
|
|
+ this.form.auditType= ((this.form.auditType).split(",")).map(Number)
|
|
|
+ console.log(this.form.auditType)
|
|
|
+ }
|
|
|
+ if(this.form.workStatus!=null){
|
|
|
+ this.form.workStatus = String(this.form.workStatus)
|
|
|
+ }
|
|
|
+ if(this.form.isExpert!=null){
|
|
|
+ this.form.isExpert = String(this.form.isExpert)
|
|
|
+ }
|
|
|
+ if(this.form.isTui!=null){
|
|
|
+ this.form.isTui = String(this.form.isTui)
|
|
|
+ }
|
|
|
+ if(this.form.sex!=null){
|
|
|
+ this.form.sex = String(this.form.sex)
|
|
|
+ }
|
|
|
+ if(this.form.status!=null){
|
|
|
+ this.form.status = String(this.form.status)
|
|
|
+ }
|
|
|
+ if(this.form.isAudit!=null){
|
|
|
+ this.form.isAudit = String(this.form.isAudit)
|
|
|
+ }
|
|
|
+ this.form.cityIds=((this.form.cityIds).split(",")).map(Number)
|
|
|
+ });
|
|
|
},
|
|
|
|
|
|
getCitys(){
|
|
|
@@ -870,6 +888,7 @@ export default {
|
|
|
isAudit:1,
|
|
|
remark:null,
|
|
|
};
|
|
|
+ this.checkDetails=false;
|
|
|
},
|
|
|
reset2() {
|
|
|
this.form2={
|
|
|
@@ -951,6 +970,7 @@ export default {
|
|
|
handleAdd() {
|
|
|
this.reset();
|
|
|
this.open = true;
|
|
|
+ this.checkDetails;
|
|
|
this.title = "添加药师";
|
|
|
},
|
|
|
|
|
|
@@ -1003,6 +1023,7 @@ export default {
|
|
|
}
|
|
|
this.form.cityIds=((this.form.cityIds).split(",")).map(Number)
|
|
|
});
|
|
|
+ this.checkDetails=true;
|
|
|
},
|
|
|
|
|
|
docetrUpdate(row){
|
|
|
@@ -1043,6 +1064,7 @@ export default {
|
|
|
this.getList();
|
|
|
});
|
|
|
}
|
|
|
+ this.checkDetails=false;
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
@@ -1114,6 +1136,10 @@ export default {
|
|
|
formatStoreName(row) {
|
|
|
const store = this.storeOptions.find(option => option.storeId === row.storeId);
|
|
|
return store ? store.storeName : '';
|
|
|
+ },
|
|
|
+ handleClose(){
|
|
|
+ this.open=false;
|
|
|
+ this.checkDetails=false;
|
|
|
}
|
|
|
}
|
|
|
};
|