提交 74d1bf3a 编写于 作者: 张磊's avatar 张磊

Merge branch 'feature/jq' into 'release'

Feature/jq

See merge request !131
...@@ -38,4 +38,4 @@ module.exports = { ...@@ -38,4 +38,4 @@ module.exports = {
proxypath: 'http://localhost:9000', proxypath: 'http://localhost:9000',
cssSourceMap: true cssSourceMap: true
} }
} }
\ No newline at end of file
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
<!-- <el-input v-model="formData.doctorName" placeholder="请选择接诊医生" class="set-width" disabled></el-input>--> <!-- <el-input v-model="formData.doctorName" placeholder="请选择接诊医生" class="set-width" disabled></el-input>-->
<el-col :span="15"> <el-col :span="15">
<el-select @change="doctorChanged($event)" filterable v-model="formData.receptionId" placeholder="请选择接诊医生" class="set-width" style="width: 100%;"> <el-select @change="doctorChanged($event)" filterable v-model="formData.receptionId" placeholder="请选择接诊医生" class="set-width" style="width: 100%;">
<el-option v-for="item of doctorList" :key="item.doctorId" :label="item.doctorName" :value="item.doctorId"></el-option> <el-option v-for="item of doctorList" :key="item.doctorId" :label="item.doctorReceptionName" :value="item.doctorId"></el-option>
</el-select> </el-select>
</el-col> </el-col>
</el-form-item> </el-form-item>
...@@ -78,6 +78,7 @@ ...@@ -78,6 +78,7 @@
</el-form> </el-form>
<!-- </el-row>--> <!-- </el-row>-->
<span slot="footer" class="dialog-footer" style="text-align: center;"> <span slot="footer" class="dialog-footer" style="text-align: center;">
<el-button type="primary" @click="refreshData">刷新数据</el-button>
<el-button @click="cancel">取 消</el-button> <el-button @click="cancel">取 消</el-button>
<el-button type="primary" @click="confirm" :disabled="isClick">确定</el-button> <el-button type="primary" @click="confirm" :disabled="isClick">确定</el-button>
</span> </span>
...@@ -182,7 +183,11 @@ export default { ...@@ -182,7 +183,11 @@ export default {
diagnoseChannel:1, diagnoseChannel:1,
}, },
doctorList:[], doctorList:[],
sessionDoctorList:[],
inNewTime:'',
inNewTimeObj:{},
rangeTime:'', rangeTime:'',
listKey:'',
addRules:{ addRules:{
receptionId: [ receptionId: [
{required: true, message: "请选择接诊医生", trigger: 'change'} {required: true, message: "请选择接诊医生", trigger: 'change'}
...@@ -288,6 +293,11 @@ export default { ...@@ -288,6 +293,11 @@ export default {
} }
}) })
}, },
refreshData(){
let key= "sessionDoctorList" + this.diagnoseType;
localStorage.removeItem(key);
this.getDoctorList();
},
cancel(){ cancel(){
this.doctorId = ""; this.doctorId = "";
this.formData.outsideDoctor = ''; this.formData.outsideDoctor = '';
...@@ -320,20 +330,27 @@ export default { ...@@ -320,20 +330,27 @@ export default {
}, },
getDoctorList() { getDoctorList() {
this.loading = true this.loading = true
let url = `/diagnose/doctorService/doctorList?diagnoseType=${this.diagnoseType}` this.listKey = "sessionDoctorList" + this.diagnoseType;
this.GET(url).then(res => { let sessionList = localStorage.getItem(this.listKey);
this.loading = false this.sessionDoctorList = JSON.parse(sessionList);
if (res.code == '000000') { if (sessionList){
this.doctorList = res.data this.doctorList = this.sessionDoctorList
this.doctorChanged(this.formData.receptionId) }else {
} else { let url = `/diagnose/doctorService/doctorList?diagnoseType=${this.diagnoseType}`
this.GET(url).then(res => {
this.loading = false
if (res.code == '000000') {
this.doctorList = res.data
localStorage.setItem(this.listKey, JSON.stringify(res.data))
this.doctorChanged(this.formData.receptionId)
} else {
this.$message.info('请稍后重试')
}
}).catch(() => {
this.loading = false
this.$message.info('请稍后重试') this.$message.info('请稍后重试')
} });
}
}).catch(() => {
this.loading = false
this.$message.info('请稍后重试')
});
}, },
openDiagnosisStartTimeDialog (){ openDiagnosisStartTimeDialog (){
this.diagnosisStartTimeDialog = true; this.diagnosisStartTimeDialog = true;
......
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
placeholder="请输入备注信息" placeholder="请输入备注信息"
></el-input> --> ></el-input> -->
<el-select style="width: 135%" size="small" v-model="model.statusRemark" placeholder="请选择备注信息"> <el-select style="width: 135%" allow-create filterable default-first-option size="small" v-model="model.statusRemark" placeholder="请选择备注信息">
<el-option <el-option
v-for="item in rematchingOptions" v-for="item in rematchingOptions"
:key="item" :key="item"
......
...@@ -508,7 +508,7 @@ export const TABLE_COLUMN = [ ...@@ -508,7 +508,7 @@ export const TABLE_COLUMN = [
}, },
{ {
prop: "receptionBeginTime", prop: "receptionBeginTime",
label: "接诊医生意向时间", label: "接诊医生意向时间",
showtooltip: false, showtooltip: false,
}, },
{ {
......
...@@ -751,6 +751,7 @@ export default { ...@@ -751,6 +751,7 @@ export default {
appointEndTime: "", appointEndTime: "",
doneTimeBegin: "", doneTimeBegin: "",
doneTimeEnd: "", doneTimeEnd: "",
inNewTimeObj:{}
}); });
}, },
...@@ -907,7 +908,7 @@ export default { ...@@ -907,7 +908,7 @@ export default {
//重新匹配医生 //重新匹配医生
reMatchDot(row, type) { reMatchDot(row, type) {
if(type==10){ if(type==10){
this.rematchingOptions=["接诊医生爽约"] this.rematchingOptions=["接诊医生爽约",'上级医生日程改变,提前取消','操作失误,重新匹配医生']
} }
else{ else{
this.rematchingOptions=["助诊医生爽约"] this.rematchingOptions=["助诊医生爽约"]
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册