提交 5863f54b 编写于 作者: xiaoping.di's avatar xiaoping.di

Merge branch 'feature/jq1213' into 'release'

Feature/jq1213

See merge request com.pica.cloud.education.frontend/pica-admin-consultation!254
......@@ -310,3 +310,10 @@ export const updateDepartmentId = async (data) => {
method: 'post',
});
};
export const savePCDayCount = async (data) => {
return request({
url: '/diagnose/doctor/work/savePCDayCount',
data: data,
method: 'post',
});
};
\ No newline at end of file
......@@ -68,6 +68,12 @@
:filters="createList"
:filter-method="getLevel"
/>
<el-table-column
prop="preNum"
label="接诊上限/小时"
width="150"
align="center"
/>
<el-table-column
prop="workStatus"
label="排班状态"
......@@ -121,7 +127,7 @@
label="操作"
fixed="right"
align="center"
min-width="200"
min-width="270"
>
<template slot-scope="scope">
<div
......@@ -148,6 +154,12 @@
>
查看
</div>
<div
class="download-btn"
@click="setMaxNumValue(scope.row)"
>
接诊上限
</div>
</div>
</template>
</el-table-column>
......@@ -225,6 +237,7 @@
text: '未开通',
},
],
// maxNumValue: '',
};
},
computed: {},
......@@ -254,6 +267,10 @@
addSchedule(value, val) {
this.$emit('addSchedule', value, val);
},
// 点击接诊上限按钮弹框打开
setMaxNumValue(value) {
this.$emit('setMaxNumValue', value);
},
// 分页
handleSizeChange(value) {
this.$emit('handleSizeChange', value);
......
......@@ -138,6 +138,7 @@
:total-rows="searchParam.totalRows"
:loading="loading"
:create-list="newCreateList"
:center-dialog-visible="centerDialogVisible"
@sortfunc="sortfunc"
@getServiceOpen="getServiceOpen"
@getWorkStatus="getWorkStatus"
......@@ -145,6 +146,7 @@
@handleSizeChange="handleSizeChange"
@handleCurrentChange="handleCurrentChange"
@addSchedule="addSchedule"
@setMaxNumValue="setMaxNumValue"
/>
</div>
</div>
......@@ -155,6 +157,36 @@
href=""
target="_blank"
/>
<el-dialog
:visible.sync="centerDialogVisible"
width="30%"
center
class="el-dialog-show"
>
<div class="set-agment-maxNum">
<div class="num-max">
<span class="hour-num-title">每小时接诊上限人数</span>
<div class="num-input-show">
<el-input-number
v-model="maxNumValue"
:min="0"
:max="20"
@change="getMaxNumValue"
/>
</div>
</div>
</div>
<span
slot="footer"
class="dialog-footer"
>
<el-button @click="centerDialogVisible = false">取 消</el-button>
<el-button
type="primary"
@click="submitSetData"
>确 定</el-button>
</span>
</el-dialog>
</div>
</template>
......@@ -165,7 +197,7 @@
workInStep,
getLevel,
} from '@/api/serviceSchedule';
import { departmentAll } from '@/api/diagnosis';
import { departmentAll, savePCDayCount} from '@/api/diagnosis';
import TableServiceSchedule from '@/components/list/table-serviceSchedule';
export default {
components: {
......@@ -227,6 +259,9 @@
newCreateList: [],
allTilst: [],
allList: {},
centerDialogVisible:false,
doctorInfo:{},
maxNumValue:''
};
},
watch: {},
......@@ -403,20 +438,33 @@
this.search();
},
addSchedule(value, val) {
// this.ScheduleListShow = false;
// this.schedulingType = val;
const target = this.$refs.target;
const { origin } = window.location;
const u = `${origin}/consultation/pica-admin-consultation/addEditSchedule?type=${val}&doctorId=${value.doctorId}&id=${value.id}`;
target.setAttribute('href', u);
target.click();
},
// goBack(flag) {
// this.ScheduleListShow = true;
// if (flag) {
// this.search();
// }
// },
setMaxNumValue(value) {
this.doctorInfo = value;
this.maxNumValue = value.preNum;
this.centerDialogVisible = true;
},
// 每小时接诊上限人数
getMaxNumValue(value) {
this.maxNumValue = value;
},
submitSetData() {
const params = {
doctorId:this.doctorInfo.doctorId,
preNum:this.maxNumValue
};
savePCDayCount(params).then(res => {
if (res.code == '000000') {
this.centerDialogVisible = false;
this.search();
}
});
}
},
};
</script>
......@@ -541,6 +589,29 @@
}
}
}
.el-dialog-show {
.set-agment-maxNum {
.num-max {
text-align: center;
.hour-num-title {
font-size: 16px;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #02120f;
}
.num-input-show {
padding-top: 10px;
.el-input {
width: 50%;
/deep/.el-input__inner {
border-radius: 20px;
text-align: center;
}
}
}
}
}
}
}
</style>
<style lang="scss">
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册