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.

142 lines
4.0 KiB

2 years ago
  1. <template>
  2. <div style="padding: 0 5px;">
  3. <div>
  4. <el-select v-model="asbItemId" placeholder="快速选择诊断疾病" size="small" filterable clearable remote automatic-dropdown
  5. :remote-method="remoteMethod" @change="quickChoosedAsb" default-first-option ref="asbItemId"
  6. style="width:250px;text-align: left;padding-right: 15px;">
  7. <el-option v-for="item in quickAsb" :key="item.id" :value="item.id" :label="item.displayName" />
  8. </el-select>
  9. </div>
  10. <div>
  11. <el-table :data="report.dataAsbitemOCX" :height="window.pageHeight - 110 " width="100%" @row-dblclick="removeAbs"
  12. @selection-change="selecteditems" size="small">
  13. <!-- temporaryselection personnelUnit.nogroupselected-->
  14. <el-table-column type="index" label="序号" align="center" width="60" />
  15. <el-table-column label="诊断疾病" width="160" prop="displayName" />
  16. <el-table-column fixed="right" label="操作" width="60">
  17. <template slot-scope="scope">
  18. <i class="el-icon-delete" @click="deleteRow(scope.$index)"
  19. style="font-size: 24px;color: red;cursor:pointer;"></i>
  20. </template>
  21. </el-table-column>
  22. </el-table>
  23. </div>
  24. </div>
  25. </template>
  26. <script>
  27. import moment from "moment";
  28. import { mapState, mapMutations } from "vuex";
  29. import { getapi, postapi, putapi, deletapi } from "@/api/api";
  30. import { dddw, objCopy, arrayReduce } from "@/utlis/proFunc";
  31. import PatientRegisterEdit from "../../components/patientRegister/PatientRegisterEdit.vue";
  32. import Camera from "../../components/patientRegister/Camera.vue";
  33. import CusOrgOCX from "../../components/report/CusOrgOCX.vue"
  34. export default {
  35. components: {
  36. PatientRegisterEdit,
  37. Camera,
  38. CusOrgOCX,
  39. },
  40. props: ['win'],
  41. data() {
  42. return {
  43. dataList: [], //列表数据
  44. multipleSelection: [], //选中的数据列表
  45. dialogVisible: false,
  46. dialogCamera: false,
  47. };
  48. },
  49. created() { },
  50. //挂载完成
  51. mounted() { },
  52. computed: {
  53. ...mapState(["window", "dict", "patientRegister", "customerOrg", "doctorCheck", "sumDoctorCheck","report"]),
  54. },
  55. methods: {
  56. //查询
  57. query() {
  58. let body = {}
  59. console.log(`this.patientRegister.query`, this.patientRegister.query)
  60. if (this.patientRegister.query.customerOrgFlag) {
  61. if (this.patientRegister.query.customerOrgId) body.customerOrgId = this.patientRegister.query.customerOrgId[0]
  62. }
  63. if (this.patientRegister.query.sex) body.sexId = this.patientRegister.query.sex
  64. if (this.patientRegister.query.patientName) body.patientName = this.patientRegister.query.patientName
  65. if (this.patientRegister.query.completeFlag) body.completeFlag = this.patientRegister.query.completeFlag
  66. //StartDate EndDate
  67. if (this.patientRegister.query.dateRange) {
  68. body.startDate = moment(new Date(this.patientRegister.query.dateRange[0])).format("yyyy-MM-DD")
  69. body.endDate = moment(new Date(this.patientRegister.query.dateRange[1])).format("yyyy-MM-DD")
  70. }
  71. if (this.patientRegister.query.idCardNo) body = { idNo: this.patientRegister.query.idCardNo }
  72. if (this.patientRegister.query.patientNo) body = { patientNo: this.patientRegister.query.patientNo }
  73. if (this.patientRegister.query.patientRegisterNo) body = { patientRegisterNo: this.patientRegister.query.patientRegisterNo }
  74. console.log('/api/app/patientregister/getlistinfilter', body)
  75. postapi('/api/app/patientregister/getlistinfilter', body)
  76. .then((res) => {
  77. this.dataList = res.data;
  78. });
  79. },
  80. deleteRow(index){
  81. },
  82. },
  83. //监听事件
  84. watch: {
  85. },
  86. };
  87. </script>
  88. <style scoped>
  89. /* 输入框相关设置*/
  90. ::v-deep .el-input__inner {
  91. padding-left: 2px;
  92. padding-right: 15px;
  93. }
  94. ::v-deep .el-input__icon{
  95. width: 15px; /* 输入框下拉箭头或清除图标 默认 25 */
  96. }
  97. ::v-deep .el-input-group__append{
  98. padding: 0 5px; /* 控件默认 0 20px;*/
  99. }
  100. .box {
  101. display: flex;
  102. }
  103. .query {
  104. margin-left: 5px;
  105. margin-bottom: 2px;
  106. }
  107. .listBtn {
  108. margin-top: 10px;
  109. }
  110. </style>