| | |
| | | :data="userList" |
| | | :border="true" |
| | | @selection-change="handleSelectionChange" |
| | | @row-click="handleRowClick" |
| | | @expand-change="handleRowClick" |
| | | :row-key="getRowKey" |
| | | :expand-row-keys="expands" |
| | | > |
| | |
| | | <el-table-column |
| | | label="满意度题目总量" |
| | | align="center" |
| | | key="manual" |
| | | prop="manual" |
| | | key="joyAllCount" |
| | | prop="joyAllCount" |
| | | > |
| | | </el-table-column> |
| | | <el-table-column |
| | | label="满意度填报量" |
| | | align="center" |
| | | key="sms" |
| | | prop="sms" |
| | | key="joyCount" |
| | | prop="joyCount" |
| | | > |
| | | </el-table-column> |
| | | <el-table-column |
| | | label="完成比率" |
| | | align="center" |
| | | key="rate" |
| | | prop="rate" |
| | | key="joyTotal" |
| | | prop="joyTotal" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <span class="button-zx" |
| | | >{{ |
| | | (Number(scope.row.joyTotal) * 100).toFixed(2) |
| | | }}%</span |
| | | > |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | label="操作" |
| | | align="center" |
| | | fixed="right" |
| | | width="300" |
| | | class-name="small-padding fixed-width" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <el-button |
| | | size="medium" |
| | | type="text" |
| | | @click="Seedetails(scope.row)" |
| | | @click="getinfo(scope.row)" |
| | | ><span class="button-zx" |
| | | >{{ (Number(scope.row.rate) * 100).toFixed(2) }}%</span |
| | | ><i class="el-icon-s-order"></i>查看详情</span |
| | | ></el-button |
| | | > |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | label="操作" |
| | | align="center" |
| | | fixed="right" |
| | | width="300" |
| | | class-name="small-padding fixed-width" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <el-button size="medium" type="text" @click="Seedetails(scope.row)" |
| | | ><span class="button-zx" |
| | | ><i class="el-icon-s-order"></i>查看详情</span |
| | | ></el-button |
| | | > |
| | | |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | |
| | | <!-- <pagination |
| | |
| | | </div> |
| | | </div> |
| | | </el-dialog> |
| | | <!-- 单科室统计详情 --> |
| | | <el-dialog :visible.sync="topicVisible" width="45%"> |
| | | <div class="topicdia"> |
| | | <div class="top-text">{{ topicvalue.name }}</div> |
| | | <div class="top-mintext">随访完成数{{ topicvalue.number }}</div> |
| | | <div style="overflow-x: hidden; overflow-y: auto; max-height: 65vh"> |
| | | <div class="ttaabbcc" v-for="item in topiclist" :key="item.name"> |
| | | <div class="describe"> |
| | | 第{{ item.number }}题: {{ item.name }}?<span |
| | | >[{{ item.type == 1 ? "单选题" : "多选题" }}]</span |
| | | > |
| | | </div> |
| | | <div> |
| | | <el-table :data="tableData" style="width: 100%"> |
| | | <el-table-column prop="date" label="问题选项"> |
| | | </el-table-column> |
| | | <el-table-column prop="name" label="选择人数"> |
| | | </el-table-column> |
| | | <el-table-column prop="address" label="比例"> </el-table-column> |
| | | </el-table> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <span slot="footer" class="dialog-footer"> |
| | | <el-button @click="topicVisible = false">关 闭</el-button> |
| | | </span> |
| | | </el-dialog> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | changetagcategory, |
| | | } from "@/api/system/label"; |
| | | import store from "@/store"; |
| | | import { getSfStatistics, selectTimelyRate } from "@/api/system/user"; |
| | | import { |
| | | getSfStatisticsJoydetails, |
| | | getSfStatisticsJoy, |
| | | selectTimelyRate, |
| | | } from "@/api/system/user"; |
| | | |
| | | import Treeselect from "@riophae/vue-treeselect"; |
| | | import "@riophae/vue-treeselect/dist/vue-treeselect.css"; |
| | |
| | | pn: 1, |
| | | ps: 10, |
| | | }, |
| | | topiclist: [ |
| | | { |
| | | name: "您的身体康复情况如何", |
| | | number: 1, |
| | | type: 1, |
| | | }, |
| | | { |
| | | name: "您的饮食情况如何", |
| | | number: 2, |
| | | type: 2, |
| | | }, |
| | | { |
| | | name: "您的恢复情况如何", |
| | | number: 3, |
| | | type: 1, |
| | | }, |
| | | ], |
| | | tableData: [ |
| | | { |
| | | date: "好", |
| | | name: 12, |
| | | address: "50%", |
| | | }, |
| | | { |
| | | date: "一般", |
| | | name: 2, |
| | | address: "6.2%", |
| | | }, |
| | | { |
| | | date: "差", |
| | | name: 0, |
| | | address: "0%", |
| | | }, |
| | | ], |
| | | amendtag: false, //是否修改类别 |
| | | lstamendtag: false, //是否修改标签 |
| | | scavisible: false, //删除弹框 |
| | |
| | | dialogFormVisible: false, //添加、修改类别弹框 |
| | | lstamendtagVisible: false, //添加、修改标签弹框 |
| | | goQRCodeVisible: false, //二维码弹框 |
| | | topicVisible: false, //控制单题弹框 |
| | | topicvalue: { |
| | | name: "骨科随访模板", |
| | | number: 222, |
| | | }, |
| | | sidecolumnval: "", //类别搜索 |
| | | propss: { multiple: true }, |
| | | SeedetailsVisible: false, |
| | |
| | | // 移除可能存在的"all"值 |
| | | delete params.leavehospitaldistrictcodes.all; |
| | | delete params.deptcodes.all; |
| | | getSfStatistics(params).then((response) => { |
| | | getSfStatisticsJoy(params).then((response) => { |
| | | console.log(response); |
| | | // this.total = response.total; |
| | | this.userList = response.data; |
| | |
| | | return row.statisticaltype === 1 |
| | | ? row.leavehospitaldistrictcode |
| | | : row.deptcode; |
| | | }, |
| | | |
| | | // 处理行点击展开 |
| | | handleRowClick(row) { |
| | | console.log(row, "row"); |
| | | |
| | | // 如果已经展开则收起 |
| | | if (this.expands.includes(this.getRowKey(row))) { |
| | | this.expands = []; |
| | | return; |
| | | } |
| | | // 处理查询参数 |
| | | const params = { |
| | | ...this.queryParams, |
| | | // 如果选择了"全部",则传所有病区/科室代码 |
| | | leavehospitaldistrictcodes: [row.leavehospitaldistrictcode], |
| | | drcode: "1", |
| | | }; |
| | | // 如果该行还没有加载医生数据,则加载 |
| | | if (!row.doctorStats) { |
| | | this.loading = true; |
| | | getSfStatistics(params).then((res) => { |
| | | this.$set(row, "doctorStats", res.data); |
| | | this.expands = [this.getRowKey(row)]; |
| | | this.loading = false; |
| | | }); |
| | | } else { |
| | | this.expands = [this.getRowKey(row)]; |
| | | } |
| | | }, |
| | | /** 修改标签 */ |
| | | handleUpdate(row) { |
| | |
| | | }); |
| | | }, 300); |
| | | }, |
| | | // 调起详情 |
| | | getinfo(row) { |
| | | this.topicVisible = true; |
| | | |
| | | }, |
| | | // 添加/修改标签 |
| | | Maintenancetag() { |
| | | if (this.lstamendtag) { |