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.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
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
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
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
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
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
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
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="'display: flex; flex-wrap: wrap; height:100px;width:' + (window.pageWidth - (orgEnable=='Y' ? 0:200) - 120 - 80) + 'px;'">
  4. <div class="query">
  5. <span>登记日期</span>
  6. <el-date-picker v-model="patientRegister.query.startDate" type="date" placeholder="起始日期" size="small" style="width:90px;"/>
  7. <span></span>
  8. <el-date-picker v-model="patientRegister.query.endDate" type="date" placeholder="截止日期" size="small" style="width:90px;"/>
  9. </div>
  10. <div class="query">
  11. <span>条码号</span>
  12. <el-input placeholder="条码号" v-model="patientRegister.query.patientRegisterNo" size="small" clearable
  13. style="width: 150px" />
  14. </div>
  15. <div class="query">
  16. <span>档案号</span>
  17. <el-input placeholder="档案号" v-model="patientRegister.query.patientNo" size="small" clearable
  18. style="width: 135px" />
  19. </div>
  20. <div class="query">
  21. <span>姓名</span>
  22. <el-input placeholder="姓名" v-model="patientRegister.query.patientName" size="small" clearable
  23. style="width: 100px" />
  24. </div>
  25. <div class="query">
  26. <span>性别</span>
  27. <el-select v-model="patientRegister.query.sex" placeholder="请选择" style="width: 80px" size="small">
  28. <el-option v-for="item in dict.forSex" :key="item.id" :label="item.displayName" :value="item.id">
  29. </el-option>
  30. </el-select>
  31. </div>
  32. <div class="query">
  33. <span>手机号</span>
  34. <el-input placeholder="手机号/电话" v-model="patientRegister.query.phone" size="small" clearable
  35. style="width: 110px" />
  36. </div>
  37. <div class="query">
  38. <span>身份证号</span>
  39. <el-input placeholder="身份证号" v-model="patientRegister.query.idCardNo" size="small" clearable
  40. style="width: 160px" />
  41. </div>
  42. <div class="query">
  43. <el-cascader v-model="patientRegister.query.customerOrgId" :options="patientRegister.customerOrgTreeAll"
  44. :props="{checkStrictly: true,expandTrigger: 'hover',...customerOrg.treeprops,}" placeholder="请选择单位"
  45. :show-all-levels="false" clearable :disabled="orgEnable == 'Y' ? false : true" size="small">
  46. </el-cascader>
  47. <el-checkbox v-model="patientRegister.query.customerOrgFlag">单位作为查询条件</el-checkbox>
  48. </div>
  49. <div class="query">
  50. <span>状态</span>
  51. <el-select v-model="patientRegister.query.completeFlag" placeholder="请选择" clearable style="width: 80px"
  52. size="small">
  53. <el-option v-for="item in dict.completeFlag" :key="item.id" :label="item.displayName" :value="item.id">
  54. </el-option>
  55. </el-select>
  56. </div>
  57. </div>
  58. <!-- 按钮区域 -->
  59. <div style="margin-left: 10px; width: 110px">
  60. <div class="listBtn">
  61. <el-button type="primary" class="btnClass" @click="btnQuery">查询</el-button>
  62. </div>
  63. <div class="listBtn">
  64. <el-button type="danger" class="btnClass" @click="readIdCard">读身份证</el-button>
  65. </div>
  66. </div>
  67. </div>
  68. </template>
  69. <script>
  70. import { mapState } from "vuex";
  71. import { getapi, postapi, putapi, deletapi } from "@/api/api";
  72. export default {
  73. components: {},
  74. props: ["orgEnable"],
  75. data() {
  76. return {
  77. dialogVisible: false,
  78. };
  79. },
  80. created() {
  81. let ldate = new Date();
  82. this.patientRegister.query.startDate = ldate;
  83. this.patientRegister.query.endDate = ldate;
  84. },
  85. //挂载完成
  86. mounted() { },
  87. computed: {
  88. ...mapState(["window", "dict", "patientRegister", "customerOrg"]),
  89. },
  90. methods: {
  91. //查询
  92. btnQuery() {
  93. this.patientRegister.query.times++;
  94. console.log("this.patientRegister.query", this.patientRegister.query);
  95. },
  96. //读身份证
  97. readIdCard() {
  98. alert("读身份证");
  99. },
  100. },
  101. };
  102. </script>
  103. <style scoped>
  104. ::v-deep .el-input__inner {
  105. /*text-align: center;*/
  106. padding-left: 2px; /* 控件默认 15 */
  107. padding-right: 15px; /* 控件默认 25 */
  108. }
  109. ::v-deep .el-icon-date:before {
  110. content: ""; /* 去掉日期控件前面的图标 */
  111. }
  112. ::v-deep .el-input__icon{
  113. width: 15px; /* 输入框下拉箭头或清除图标 默认 25 */
  114. }
  115. .query {
  116. margin-left: 10px;
  117. }
  118. .listBtn {
  119. margin-top: 5px;
  120. text-align: center;
  121. }
  122. .btnClass {
  123. /* position: absolute; */
  124. /* left: 0;
  125. top: 0; */
  126. width: 110px;
  127. }
  128. </style>