You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

87 lines
2.4 KiB

2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
  1. <template>
  2. <div style="display: flex;">
  3. <div style="width:50%;">
  4. <el-table :data="doctorCheck.checkSummaryList" width="100%" height="350" border
  5. @row-click="rowClick">
  6. <el-table-column prop="summary" label="小结" width="380" />
  7. <el-table-column label="排序" width="80">
  8. <template>
  9. <el-tag class="move" style="cursor: move; margin-left: 15px" draggable="true" >
  10. <i class="el-icon-d-caret" style="width: 1rem; height: 1rem"></i>
  11. </el-tag>
  12. </template>
  13. </el-table-column>
  14. </el-table>
  15. </div>
  16. <div style="width:50%;">
  17. <el-table :data="doctorCheck.checkSuggestionList" width="100%" height="350" border
  18. @row-click="rowClick">
  19. <el-table-column prop="suggestion" label="建议" width="380" />
  20. <el-table-column label="排序" width="80">
  21. <template>
  22. <el-tag class="move" style="cursor: move; margin-left: 15px" draggable="true" >
  23. <i class="el-icon-d-caret" style="width: 1rem; height: 1rem"></i>
  24. </el-tag>
  25. </template>
  26. </el-table-column>
  27. </el-table>
  28. </div>
  29. </div>
  30. </template>
  31. <script>
  32. import { mapState } from 'vuex';
  33. export default {
  34. components: {},
  35. data() {
  36. return {
  37. };
  38. },
  39. created() {},
  40. //挂载完成
  41. mounted() {},
  42. computed:{
  43. ...mapState(['dict','doctorCheck']),
  44. },
  45. methods: {
  46. tableRowClassName({row, rowIndex}) {
  47. if (row.completeFlag === '0') {
  48. return 'warning-row'; //未检
  49. } else if (row.completeFlag === '2') {
  50. return 'refuse-row'; //弃检
  51. }
  52. return '';
  53. },
  54. //选择组合项目
  55. rowClick(row){
  56. //registerCheckId
  57. getapi(`/api/app/customer-org-group/in-customer-org-id/${customerOrgld}`)
  58. .then((res) => {
  59. console.log("getCustomerOrgGroup", res.data);
  60. if (res.code == 1) {
  61. this.doctorCheck.checkItemList = res.data;
  62. }
  63. })
  64. .catch((err) => {
  65. this.$message({type: "error",message: `操作失败,原因:${err}`});
  66. });
  67. },
  68. },
  69. };
  70. </script>
  71. <style scoped>
  72. .el-table .warning-row {
  73. background: rgb(240, 125, 125);
  74. }
  75. .el-table .refuse-row {
  76. background: rgb(192, 192, 192);
  77. }
  78. </style>