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.

3697 lines
143 KiB

3 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 year ago
1 year ago
1 year ago
1 year ago
2 years ago
2 years ago
1 year 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
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
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
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 year ago
2 years ago
1 year ago
2 years ago
1 year ago
1 year ago
2 years ago
2 years ago
1 year 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
2 years ago
1 month ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
1 month ago
1 month ago
1 month ago
1 month 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 year ago
1 year ago
2 years ago
2 years ago
1 year ago
1 year 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 year ago
1 month ago
1 month ago
1 month ago
2 years ago
3 years ago
2 years ago
2 years ago
2 years ago
3 years ago
2 years ago
2 years ago
2 years ago
1 year ago
2 years ago
1 year 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 year ago
2 years ago
1 year ago
2 years ago
3 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 year ago
1 year ago
3 years ago
2 years ago
2 years ago
3 years ago
2 years ago
2 years ago
2 years ago
2 months ago
2 years ago
2 years ago
2 years ago
2 years ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
2 years ago
2 years ago
2 years ago
3 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 year ago
1 year ago
7 months 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
3 years ago
3 years ago
3 years ago
2 years ago
2 years ago
3 years ago
2 years ago
3 years ago
2 years ago
3 years ago
7 months ago
3 years ago
3 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 year ago
1 year ago
1 year ago
1 month ago
3 weeks ago
3 years ago
7 months ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
7 months ago
2 years ago
3 years ago
2 years ago
2 years ago
2 years ago
3 years ago
3 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
3 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
7 months ago
3 weeks ago
2 years ago
7 months ago
2 months ago
7 months ago
2 months ago
2 years ago
3 weeks ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 weeks 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 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
2 years ago
2 years ago
7 months ago
4 weeks ago
7 months ago
2 years ago
4 weeks ago
4 weeks ago
4 weeks ago
4 weeks ago
3 weeks ago
4 weeks ago
3 weeks ago
4 weeks ago
4 weeks ago
4 weeks ago
2 years ago
7 months ago
2 years ago
7 months ago
2 years ago
7 months ago
2 years ago
7 months ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
7 months ago
2 years ago
7 months ago
2 years ago
7 months ago
2 years ago
7 months ago
2 years ago
7 months ago
4 weeks ago
2 years ago
7 months ago
2 years ago
7 months ago
1 month ago
7 months ago
1 month ago
7 months ago
1 month ago
7 months ago
2 years ago
7 months ago
2 years ago
7 months ago
2 years ago
7 months ago
2 years ago
7 months 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
3 years ago
1 year ago
1 year ago
1 year 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
3 years ago
2 years ago
2 years ago
3 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
3 years ago
2 years ago
2 years ago
3 years ago
2 years ago
3 years ago
2 years ago
3 years ago
2 years ago
2 years ago
3 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 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
3 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
3 years ago
2 years ago
4 weeks ago
3 weeks ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 weeks ago
4 weeks 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
3 years ago
4 weeks ago
2 years ago
4 weeks 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 year ago
1 year 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 year 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
3 weeks ago
2 years ago
3 years ago
3 years ago
4 weeks ago
3 weeks ago
4 weeks ago
3 weeks ago
4 weeks ago
3 weeks ago
4 weeks ago
2 years ago
1 year ago
7 months ago
2 years ago
7 months ago
7 months ago
7 months ago
2 years ago
7 months 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
3 weeks ago
2 years ago
2 years ago
2 years ago
1 month ago
2 years ago
2 years ago
1 month ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
1 year ago
2 years ago
2 years ago
2 years ago
1 year 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
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 year ago
2 years ago
1 year ago
2 months ago
1 year ago
1 year ago
2 months ago
1 year ago
1 year ago
2 years ago
2 years ago
1 year ago
1 year ago
1 year 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 month ago
2 years ago
1 month ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
1 month ago
2 years ago
2 years ago
1 month 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 month ago
2 years ago
1 month ago
2 years ago
2 years ago
1 month ago
2 years ago
1 month ago
2 years ago
1 month 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 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
1 year ago
2 years ago
1 month ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
1 year ago
2 years ago
2 years ago
1 month ago
2 years ago
1 year ago
7 months ago
1 year ago
1 year ago
1 year ago
1 year ago
7 months ago
1 year ago
7 months ago
1 year ago
7 months ago
7 months ago
1 year ago
2 years ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
4 weeks ago
1 month 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
3 years ago
3 years ago
2 years ago
2 years ago
2 years ago
2 years ago
7 months ago
2 years ago
7 months ago
3 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
3 years ago
3 years ago
2 years ago
2 years ago
1 year ago
3 years ago
2 years ago
3 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>
  3. <!--组件主体-->
  4. <div style="display: flex">
  5. <div :style="'width:' + (window.pageWidth - 110 - 20) + 'px;'">
  6. <!--查询条件-->
  7. <div style="position: absolute;top:28px;left:140px;display: flex;">
  8. <div v-show="checkPagePriv(pagePriv.privs, '查找')">
  9. <PatientRegisterEditQuery />
  10. </div>
  11. <div style="display: flex;margin-left: 5px;">
  12. <div v-show="checkPagePriv(pagePriv.privs, '职业病')">
  13. <el-button @click="btnOcc" class="commonbutton" style="width:60px;">职业病</el-button>
  14. </div>
  15. <div style="margin-left: 5px;" v-show="checkPagePriv(pagePriv.privs, '读身份证')">
  16. <el-button @click="peopleIcCard" class="commonbutton" style="width:70px;">读身份证</el-button>
  17. </div>
  18. <div style="margin-left: 5px;" v-show="checkPagePriv(pagePriv.privs, '拍照')">
  19. <el-button type="primary" class="commonbutton" @click="photoGrah" style="width:60px;">拍照</el-button>
  20. </div>
  21. <div style="margin-left: 5px;" v-show="checkPagePriv(pagePriv.privs, '个人预约')">
  22. <el-button type="primary" class="commonbutton" @click="btnWebBooking" style="width:70px;">个人预约</el-button>
  23. </div>
  24. <div style="margin-left: 5px;">
  25. <el-button type="primary" class="commonbutton" @click="btnWebBookingMzak"
  26. style="width:70px;">人寿预约</el-button>
  27. </div>
  28. <div style="margin-left: 5px;" v-show="checkPagePriv(pagePriv.privs, '同步团检预约')">
  29. <el-button type="primary" class="commonbutton" @click="btnDownOrg"
  30. :disabled="(form.customerOrgId == dict.personOrgId) || !form.id">同步团检预约</el-button>
  31. </div>
  32. <div style="margin-left: 5px;" v-show="checkPagePriv(pagePriv.privs, '分诊排队')">
  33. <el-button type="primary" class="commonbutton" @click="fnQueue(form)"
  34. :disabled="!form.id">分诊排队</el-button>
  35. </div>
  36. </div>
  37. </div>
  38. <div>
  39. <el-form ref="form" :model="form" label-width="80px" :rules="rules" size="medium">
  40. <el-row>
  41. <el-col :span="5">
  42. <el-form-item label="单位名称" prop="customerOrgName">
  43. <el-input placeholder="请选择单位" v-model="form.customerOrgName" size="small" disabled>
  44. <el-button slot="append" icon="el-icon-search" @click="dialogOrg = true" style="font-size: 20px;"
  45. :disabled="(form.completeFlag == '3' || isDoctor != '1') ? true : false"></el-button>
  46. </el-input>
  47. </el-form-item>
  48. </el-col>
  49. <el-col :span="5">
  50. <el-form-item label="条码号" prop="patientRegisterNo">
  51. <el-input v-model="form.patientRegisterNo" disabled size="small"></el-input>
  52. </el-form-item>
  53. </el-col>
  54. <el-col :span="5">
  55. <el-form-item label="档案号" prop="patientNo">
  56. <el-input v-model="form.patientNo" disabled size="small"></el-input>
  57. </el-form-item>
  58. </el-col>
  59. <el-col :span="3">
  60. <el-form-item label="体检次数" prop="medicalTimes">
  61. <el-input v-model="form.medicalTimes" disabled size="small"></el-input>
  62. </el-form-item>
  63. </el-col>
  64. <el-col :span="3">
  65. <el-form-item label="性别" prop="sexId" label-width="50px">
  66. <el-select v-model="form.sexId" placeholder="请选择" size="small" filterable
  67. :style="'width:' + Math.floor((window.pageWidth - 630) / 8) + 'px;'">
  68. <el-option v-for="item in dict.sex" :key="item.id" :label="item.displayName" :value="item.id">
  69. </el-option>
  70. </el-select>
  71. </el-form-item>
  72. </el-col>
  73. <el-col :span="3">
  74. </el-col>
  75. </el-row>
  76. <el-row>
  77. <el-col :span="5">
  78. <el-form-item label="姓名" prop="patientName">
  79. <el-input id="patientName" v-model="form.patientName" @change="changePatientName" size="small"
  80. autocomplete="off"></el-input>
  81. </el-form-item>
  82. </el-col>
  83. <el-col :span="5">
  84. <el-form-item label="身份证号" prop="idNo">
  85. <el-input v-model="form.idNo" placeholder="身份证号" @change="changeIdNo" size="small"></el-input>
  86. </el-form-item>
  87. </el-col>
  88. <el-col :span="5">
  89. <el-form-item label="出生日期" prop="birthDate">
  90. <!--
  91. <input type="date" v-model="form.birthDate" size="small"
  92. :style="'border-radius: 4px;border: 1px solid #DCDFE6;height: 32px;line-height: 32px;padding-left: 2px;width:' + Math.floor((window.pageWidth - 510) / 4.8) + 'px;'"/>
  93. -->
  94. <el-date-picker v-model="form.birthDate" type="date" format="yyyy-MM-dd" value-format="yyyy-MM-dd"
  95. placeholder="出生日期" :style="'width:' + Math.floor((window.pageWidth - 510) / 4.8) + 'px;'"
  96. @change="changeBirthDate" prefix-icon="" size="small" />
  97. </el-form-item>
  98. </el-col>
  99. <el-col :span="3">
  100. <el-form-item label="年龄" prop="age">
  101. <el-input v-model="form.age" size="small" @change="changeAge"></el-input>
  102. </el-form-item>
  103. </el-col>
  104. <el-col :span="3">
  105. <el-form-item label="婚姻" prop="maritalStatusId" label-width="50px">
  106. <el-select v-model="form.maritalStatusId" placeholder="请选择" size="small" filterable
  107. :style="'width:' + Math.floor((window.pageWidth - 630) / 8) + 'px;'">
  108. <el-option v-for="item in dict.maritalStatus" :key="item.id" :label="item.displayName"
  109. :value="item.id">
  110. </el-option>
  111. </el-select>
  112. </el-form-item>
  113. </el-col>
  114. <el-col :span="3" />
  115. </el-row>
  116. <el-row>
  117. <el-col :span="5">
  118. <el-form-item label="手机号" prop="mobileTelephone">
  119. <el-input v-model="form.mobileTelephone" size="small"></el-input>
  120. </el-form-item>
  121. </el-col>
  122. <el-col :span="5">
  123. <el-form-item label="电话" prop="telephone">
  124. <el-input v-model="form.telephone" size="small"></el-input>
  125. </el-form-item>
  126. </el-col>
  127. <el-col :span="5">
  128. <el-form-item label="邮箱" prop="email">
  129. <el-input v-model="form.email" size="small"></el-input>
  130. </el-form-item>
  131. </el-col>
  132. <el-col :span="3">
  133. <el-form-item label="邮编" prop="postalCode">
  134. <el-input v-model="form.postalCode" size="small"></el-input>
  135. </el-form-item>
  136. </el-col>
  137. <el-col :span="3">
  138. <el-form-item label="籍贯" prop="birthPlaceId" label-width="50px">
  139. <el-select v-model="form.birthPlaceId" placeholder="请选择" filterable clearable
  140. :style="'width:' + Math.floor((window.pageWidth - 630) / 8) + 'px;'" size="small">
  141. <el-option v-for="item in dict.birthPlace" :key="item.id" :label="item.displayName"
  142. :value="item.id" />
  143. </el-select>
  144. </el-form-item>
  145. </el-col>
  146. <el-col :span="3" />
  147. </el-row>
  148. <el-row>
  149. <el-col :span="10">
  150. <el-form-item label="地址" prop="address">
  151. <el-input v-model="form.address" size="small"></el-input>
  152. </el-form-item>
  153. </el-col>
  154. <el-col :span="5">
  155. <el-form-item label="人员类别" prop="personnelTypeId">
  156. <el-select v-model="form.personnelTypeId" placeholder="请选择" filterable clearable
  157. :style="'width:' + Math.floor((window.pageWidth - 510) / 4.8) + 'px;'" size="small">
  158. <el-option v-for="item in dict.personnelType" :key="item.id" :label="item.displayName"
  159. :value="item.id" />
  160. </el-select>
  161. </el-form-item>
  162. </el-col>
  163. <el-col :span="3">
  164. <el-form-item label="性激素期" prop="sexHormoneTermId">
  165. <el-select v-model="form.sexHormoneTermId" placeholder="请选择" filterable clearable size="small"
  166. :disabled="isComplete">
  167. <el-option v-for="item in dict.sexHormoneTerm" :key="item.id" :label="item.displayName"
  168. :value="item.id">
  169. </el-option>
  170. </el-select>
  171. </el-form-item>
  172. </el-col>
  173. <el-col :span="3">
  174. <el-form-item label="民族" prop="nationId" label-width="50px">
  175. <el-select v-model="form.nationId" placeholder="请选择" filterable clearable default-first-option
  176. :filter-method="filterMethod" :style="'width:' + Math.floor((window.pageWidth - 630) / 8) + 'px;'"
  177. size="small">
  178. <el-option v-for="item in nation" :key="item.id" :label="item.displayName" :value="item.id" />
  179. </el-select>
  180. </el-form-item>
  181. </el-col>
  182. <el-col :span="3" />
  183. </el-row>
  184. <el-row>
  185. <el-col :span="5">
  186. <el-form-item label="体检类别" prop="medicalTypeId">
  187. <el-select v-model="form.medicalTypeId" placeholder="请选择" filterable clearable
  188. :style="'width:' + Math.floor((window.pageWidth - 510) / 4.8) + 'px;'" size="small"
  189. @change="changeMedicalTypeId">
  190. <el-option v-for="item in dict.medicalType" :key="item.id" :label="item.displayName"
  191. :value="item.id" />
  192. </el-select>
  193. </el-form-item>
  194. </el-col>
  195. <el-col :span="5">
  196. <el-form-item label="工卡号" prop="jobCardNo">
  197. <el-input v-model="form.jobCardNo" size="small"></el-input>
  198. </el-form-item>
  199. </el-col>
  200. <el-col :span="5">
  201. <el-form-item label="体检卡号" prop="medicalCardNo">
  202. <el-input v-model="form.medicalCardNo" size="small"></el-input>
  203. </el-form-item>
  204. </el-col>
  205. <el-col :span="3">
  206. <el-form-item label="职务" prop="jobPost">
  207. <el-input v-model="form.jobPost" size="small"></el-input>
  208. </el-form-item>
  209. </el-col>
  210. <el-col :span="3">
  211. <el-form-item label="职称" prop="jobTitle" label-width="50px">
  212. <el-input v-model="form.jobTitle" size="small"
  213. :style="'width:' + Math.floor((window.pageWidth - 630) / 8) + 'px;'" />
  214. </el-form-item>
  215. </el-col>
  216. <el-col :span="3">
  217. <el-form-item label="介绍人" prop="salesman">
  218. <el-input v-model="form.salesman" size="small"></el-input>
  219. </el-form-item>
  220. </el-col>
  221. </el-row>
  222. <el-row>
  223. <el-col :span="5">
  224. <el-form-item label="体检中心" prop="medicalCenterId">
  225. <el-select v-model="form.medicalCenterId" placeholder="请选择" filterable
  226. :disabled="peisid ? true : false" size="small"
  227. :style="'width:' + Math.floor((window.pageWidth - 510) / 4.8) + 'px;'">
  228. <el-option v-for="item in dict.organization" :key="item.id" :label="item.displayName"
  229. :value="item.id">
  230. </el-option>
  231. </el-select>
  232. </el-form-item>
  233. </el-col>
  234. <el-col :span="4">
  235. <el-form-item label="单位体检次数" prop="isVip" label-width="110px">
  236. <el-select :class="form.customerOrgId == dict.personOrgId ? '' : 'enterToTab'"
  237. v-model="form.customerOrgRegisterId" placeholder="次数" size="small"
  238. :disabled="form.customerOrgId == dict.personOrgId || form.completeFlag == '3'"
  239. :style="'width:' + Math.floor((window.pageWidth - 654) / 6) + 'px;'" @change="changeMedicalTimes"
  240. value-key="id">
  241. <el-option v-for="item in customerOrgRegisterList" :key="item.id" :label="item.medicalTimes"
  242. :value="item.id" :disabled="item.isComplete == 'Y'" />
  243. </el-select>
  244. </el-form-item>
  245. </el-col>
  246. <el-col :span="4">
  247. <el-form-item label="门诊号" prop="hisPatientId">
  248. <el-input v-model="form.hisPatientId" size="small" disabled />
  249. </el-form-item>
  250. </el-col>
  251. <el-col :span="2">
  252. <el-form-item label="电话随访" prop="isPhoneFollow">
  253. <!--
  254. <el-radio v-model="form.isPhoneFollow" label="Y"></el-radio>
  255. <el-radio v-model="form.isPhoneFollow" label="N"></el-radio>
  256. -->
  257. <el-checkbox v-model="form.isPhoneFollow" true-label="Y" false-label="N" />
  258. </el-form-item>
  259. </el-col>
  260. <el-col :span="2">
  261. <el-form-item label="VIP" prop="isVip" label-width="50px">
  262. <!--
  263. <el-radio v-model="form.isVip" label="Y"></el-radio>
  264. <el-radio v-model="form.isVip" label="N"></el-radio>
  265. -->
  266. <el-checkbox v-model="form.isVip" true-label="Y" false-label="N" />
  267. </el-form-item>
  268. </el-col>
  269. <el-col :span="2">
  270. <el-form-item label="隐藏姓名" prop="isNameHide">
  271. <!--
  272. <el-radio v-model="form.isNameHide" label="Y"></el-radio>
  273. <el-radio v-model="form.isNameHide" label="N"></el-radio>
  274. -->
  275. <el-checkbox v-model="form.isNameHide" true-label="Y" false-label="N" />
  276. </el-form-item>
  277. </el-col>
  278. <el-col :span="2">
  279. <el-form-item label="锁住" prop="isLock" label-width="50px">
  280. <!--
  281. <el-radio v-model="form.isLock" label="Y"></el-radio>
  282. <el-radio v-model="form.isLock" label="N"></el-radio>
  283. -->
  284. <el-checkbox v-model="form.isLock" true-label="Y" false-label="N" />
  285. </el-form-item>
  286. </el-col>
  287. <el-col :span="3">
  288. <el-form-item label="体检开始" prop="isMedicalStart">
  289. <el-select v-model="form.isMedicalStart" placeholder="请选择" disabled size="small">
  290. <el-option label="是" value="Y" />
  291. <el-option label="否" value="N" />
  292. </el-select>
  293. </el-form-item>
  294. </el-col>
  295. </el-row>
  296. <el-row>
  297. <el-col :span="5">
  298. <el-form-item label="分组" prop="customerOrgGroupId">
  299. <el-select v-model="form.customerOrgGroupId" placeholder="请选择" filterable clearable
  300. @change="changeCustomerOrgGroupId" :disabled="displayGroup"
  301. :style="'width:' + Math.floor((window.pageWidth - 510) / 4.8) + 'px;'" size="small">
  302. <el-option v-for="item in patientRegister.customerOrgGroup" :key="item.id" :label="item.displayName"
  303. :value="item.id" />
  304. </el-select>
  305. </el-form-item>
  306. </el-col>
  307. <el-col :span="5">
  308. <el-form-item label="套餐" prop="medicalPackageId">
  309. <el-select v-model="form.medicalPackageId" placeholder="请选择" filterable clearable
  310. @change="changeMedicalPackageId" :disabled="displayPackage"
  311. :style="'width:' + Math.floor((window.pageWidth - 510) / 4.8) + 'px;'" size="small">
  312. <el-option v-for="item in dict.medicalPackage" :key="item.id" :label="item.displayName"
  313. :value="item.id" />
  314. </el-select>
  315. </el-form-item>
  316. </el-col>
  317. <el-col :span="11">
  318. <el-form-item label="备注" prop="remark">
  319. <el-input v-model="form.remark" type="textarea" :rows="1" placeholder="请输入备注" size="small"></el-input>
  320. </el-form-item>
  321. </el-col>
  322. <el-col :span="3">
  323. <el-form-item label="状态" prop="completeFlag" label-width="50px">
  324. <el-select v-model="form.completeFlag" placeholder="请选择"
  325. :disabled="(form.completeFlag == '2' || form.completeFlag == '3') ? true : false" size="small">
  326. <div v-if="form.completeFlag == '2' || form.completeFlag == '3'">
  327. <el-option v-for="item in dict.completeFlag" :key="item.id" :label="item.displayName"
  328. :value="item.id">
  329. </el-option>
  330. </div>
  331. <div v-else>
  332. <el-option label="预登记" value="0" />
  333. <el-option label="正式登记" value="1" />
  334. </div>
  335. </el-select>
  336. </el-form-item>
  337. </el-col>
  338. </el-row>
  339. <!--青藏公司 start-->
  340. <el-row v-if="LocalConfig.patientRegister.edit == 'qztl'">
  341. <el-col :span="4">
  342. <el-form-item label="高原/健康">
  343. <el-select v-model="form.qztlType" placeholder="请选择" disabled>
  344. <el-option v-for="item in dict.qztlType" :key="item.id" :label="item.displayName"
  345. :value="item.id" />
  346. </el-select>
  347. </el-form-item>
  348. </el-col>
  349. <el-col :span="2">
  350. <el-form-item label="普速">
  351. <el-checkbox v-model="form.qztlIsCw" true-label="Y" false-label="N" disabled />
  352. </el-form-item>
  353. </el-col>
  354. <el-col :span="2">
  355. <el-form-item label="从业">
  356. <el-checkbox v-model="form.qztlIsCy" true-label="Y" false-label="N" disabled />
  357. </el-form-item>
  358. </el-col>
  359. <el-col :span="2">
  360. <el-form-item label="高铁">
  361. <el-checkbox v-model="form.qztlIsGt" true-label="Y" false-label="N" disabled />
  362. </el-form-item>
  363. </el-col>
  364. <el-col :span="2">
  365. <el-form-item label="行车">
  366. <el-checkbox v-model="form.qztlIsMain" true-label="Y" false-label="N" disabled />
  367. </el-form-item>
  368. </el-col>
  369. <el-col :span="2">
  370. <el-form-item label="职害">
  371. <el-checkbox v-model="form.qztlIsWh" true-label="Y" false-label="N" disabled />
  372. </el-form-item>
  373. </el-col>
  374. <el-col :span="2">
  375. <el-form-item label="复检">
  376. <el-checkbox v-model="form.qztlIsFj" true-label="Y" false-label="N" disabled />
  377. </el-form-item>
  378. </el-col>
  379. <el-col :span="2">
  380. <el-form-item label="导入">
  381. <el-checkbox v-model="form.isQztlImport" true-label="Y" false-label="N" disabled />
  382. </el-form-item>
  383. </el-col>
  384. <el-col :span="2">
  385. <el-form-item label="上传">
  386. <el-checkbox v-model="form.uploadQztlFlag" true-label="Y" false-label="N" disabled />
  387. </el-form-item>
  388. </el-col>
  389. <el-col :span="4">
  390. <el-form-item label="计划" prop="planuserid">
  391. <el-input v-model="form.planuserid" size="small" disabled />
  392. </el-form-item>
  393. </el-col>
  394. </el-row>
  395. <!--青藏公司 end-->
  396. <!--职业病 start-->
  397. <el-row v-if="form.isPatientOccupationalDisease == 'Y'">
  398. <el-col :span="4">
  399. <el-form-item prop="ocCheckTypeId" label="检查类别">
  400. <el-select v-model="form.ocCheckTypeId" size="small" @change="changeOccPosionOrCheckType">
  401. <el-option v-for="item in dict.occCheckType" :key="item.value" :label="item.displayName"
  402. :value="item.id" />
  403. </el-select>
  404. </el-form-item>
  405. </el-col>
  406. <el-col :span="3">
  407. <el-form-item label="工种" label-width="40px">
  408. <el-input v-model="form.jobType" clearable size="small"></el-input>
  409. </el-form-item>
  410. </el-col>
  411. <el-col :span="14">
  412. <el-form-item label="接害因素" label-width="65px">
  413. <el-select v-model="form.poisonIds" size="small"
  414. :style="`width:${Math.floor((window.pageWidth - 242) / 1.714)}px;`" clearable filterable
  415. :filter-method="filterMethodPoison" value-key="id" multiple @change="changeOccPosionOrCheckType"
  416. :disabled="form.completeFlag == '3' ? true : false">
  417. <el-option-group v-for="group in poison" :key="group.poisonTypeName" :label="group.poisonTypeName">
  418. <el-option v-for="item in group.poisonDtos" :key="item.id" :label="item.displayName"
  419. :value="item.id" />
  420. </el-option-group>
  421. </el-select>
  422. </el-form-item>
  423. </el-col>
  424. <el-col :span="3">
  425. <el-form-item label="申请号" prop="occupationalDiseaseNumber" label-width="50px">
  426. <el-input v-model="form.occupationalDiseaseNumber" clearable size="small"></el-input>
  427. </el-form-item>
  428. </el-col>
  429. </el-row>
  430. <!--职业病 end -->
  431. <el-row>
  432. <el-col :span="6">
  433. <el-form-item label="创建人员">
  434. <el-input v-model="form.creatorName" disabled size="small"></el-input>
  435. </el-form-item>
  436. </el-col>
  437. <el-col :span="6">
  438. <el-form-item label="创建时间">
  439. <el-input :value="form.creationTime
  440. ? moment(form.creationTime).format('yyyy-MM-DD')
  441. : ''
  442. " disabled size="small"></el-input>
  443. </el-form-item>
  444. </el-col>
  445. <el-col :span="6">
  446. <el-form-item label="修改人员">
  447. <el-input v-model="form.lastModifierName" disabled size="small"></el-input>
  448. </el-form-item>
  449. </el-col>
  450. <el-col :span="6">
  451. <el-form-item label="修改时间">
  452. <el-input :value="form.lastModificationTime
  453. ? moment(form.lastModificationTime).format('yyyy-MM-DD')
  454. : ''
  455. " disabled size="small"></el-input>
  456. </el-form-item>
  457. </el-col>
  458. </el-row>
  459. </el-form>
  460. <el-image
  461. :style="'position: absolute;top:70px;right:' + (100 + Math.floor((window.pageWidth - 680) / 24)) + 'px; width: 130px; height: 140px;'"
  462. :src="peoplePhoto">
  463. <div slot="placeholder" class="image-slot">
  464. 加载中<span class="dot">...</span>
  465. </div>
  466. </el-image>
  467. </div>
  468. <!--人员登记组合项目明细 register_check_asbitem-->
  469. <div>
  470. <PatientRegisterItem :prForm="form" :prAsbOpraOpts="prAsbOpraOpts" :refreshFormId="refreshFormId" />
  471. </div>
  472. </div>
  473. <div style="margin-left: 10px;">
  474. <div v-show="checkPagePriv(pagePriv.privs, '新增')">
  475. <el-button type="primary" class="commonbutton" @click="btnAdd">新增</el-button>
  476. </div>
  477. <div v-show="checkPagePriv(pagePriv.privs, '复制新增')" class="btn">
  478. <el-button type="primary" class="commonbutton" @click="rdCopy">复制新增</el-button>
  479. </div>
  480. <div v-show="checkPagePriv(pagePriv.privs, '保存')" class="btn">
  481. <el-button type="success" class="commonbutton" @click="btnSubmit('form', true)">保存</el-button>
  482. </div>
  483. <div v-show="checkPagePriv(pagePriv.privs, '检验单申请')" class="btn">
  484. <el-button type="primary" class="commonbutton" @click="lisRequest">检验单申请</el-button>
  485. </div>
  486. <div v-show="checkPagePriv(pagePriv.privs, '条码打印')" class="btn">
  487. <el-button type="primary" class="commonbutton" @click="labelPrint(false)"
  488. :disabled="printing">条码打印</el-button>
  489. </div>
  490. <div v-show="checkPagePriv(pagePriv.privs, '条码补打')" class="btn">
  491. <el-button type="danger" class="commonbutton" @click="btnLabel">条码补打</el-button>
  492. </div>
  493. <div v-show="checkPagePriv(pagePriv.privs, '指引单打印')" class="btn">
  494. <el-button type="primary" class="commonbutton" @click="guidePrint('0001', false)"
  495. :disabled="printing">指引单打印</el-button>
  496. </div>
  497. <!--
  498. <div v-show="checkPagePriv(pagePriv.privs, '指引单预览')" class="btn">
  499. <el-button type="primary" class="commonbutton" @click="guidePrint('0001', true)">指引单预览</el-button>
  500. </div>
  501. -->
  502. <div v-show="checkPagePriv(pagePriv.privs, '条码合并')" class="btn">
  503. <el-button type="danger" class="commonbutton" @click="reLisRequest">条码合并</el-button>
  504. </div>
  505. <div v-show="checkPagePriv(pagePriv.privs, '手动合并项目')" class="btn">
  506. <el-button type="danger" class="commonbutton" @click="reMergeAsbitem">手动合并项目</el-button>
  507. </div>
  508. <div v-show="checkPagePriv(pagePriv.privs, '全个人支付')" style="margin-top: 30px;">
  509. <el-button type="primary" class="commonbutton" @click="btnPayTypeFlag('0')">全个人支付</el-button>
  510. </div>
  511. <div v-show="checkPagePriv(pagePriv.privs, '全单位支付')" class="btn">
  512. <el-button type="primary" class="commonbutton" @click="btnPayTypeFlag('1')">全单位支付</el-button>
  513. </div>
  514. <div v-show="checkPagePriv(pagePriv.privs, '全赠送')" class="btn">
  515. <el-button type="primary" class="commonbutton" @click="btnPayTypeFlag('2')">全赠送</el-button>
  516. </div>
  517. <div v-show="checkPagePriv(pagePriv.privs, '收费')" class="btn">
  518. <el-button type="success" class="commonbutton" @click="toCharge(form)" :disabled="!form.id">收费</el-button>
  519. </div>
  520. <div v-show="checkPagePriv(pagePriv.privs, '收费申请')" class="btn">
  521. <el-button type="success" class="commonbutton" @click="chargeRequest(form)"
  522. :disabled="!form.id">收费申请</el-button>
  523. </div>
  524. <div v-show="checkPagePriv(pagePriv.privs, '复制分组')" class="btn">
  525. <el-button class="commonbutton" @click="btnCopyGroup"
  526. :disabled="form.isLock == 'Y' || form.completeFlag == '3' ? true : false">复制分组</el-button>
  527. </div>
  528. <div v-show="checkPagePriv(pagePriv.privs, '复制套餐')" class="btn">
  529. <el-button class="commonbutton" @click="btnCopyMedicalPackage"
  530. :disabled="form.isLock == 'Y' || form.completeFlag == '3' ? true : false">复制套餐</el-button>
  531. </div>
  532. </div>
  533. </div>
  534. <!--组件弹窗-->
  535. <div>
  536. <!-- 人员档案列表 -->
  537. <el-dialog title="人员档案列表" :visible.sync="dialogVisible" width="800px" :show-close="false"
  538. :close-on-click-modal="false" :append-to-body="true">
  539. <el-table :data="patientList" border width="800" height="480" row-key="id" size="small"
  540. class="el-table__body-wrapper tbody" highlight-current-row @row-click="rowick" @row-dblclick="patientDblclick"
  541. ref="patientList">
  542. <el-table-column type="index" width="30" />
  543. <el-table-column prop="patientNo" label="档案号" />
  544. <el-table-column prop="lastTime" label="末次体检" width="100">
  545. <template slot-scope="scope">
  546. <div v-if="scope.row.lastTime">
  547. {{ moment(scope.row.lastTime).format("yyyy-MM-DD") }}
  548. </div>
  549. </template>
  550. </el-table-column>
  551. <el-table-column prop="medicalTimes" label="体检次数" />
  552. <el-table-column prop="displayName" label="姓名" />
  553. <el-table-column prop="sexId" label="性别">
  554. <template slot-scope="scope">
  555. <div>
  556. {{ dddw(dict.sex, "id", scope.row.sexId, "displayName") }}
  557. </div>
  558. </template>
  559. </el-table-column>
  560. <el-table-column prop="maritalStatusId" label="婚姻">
  561. <template slot-scope="scope">
  562. <div>
  563. {{ dddw(dict.maritalStatus, "id", scope.row.maritalStatusId, "displayName") }}
  564. </div>
  565. </template>
  566. </el-table-column>
  567. <el-table-column prop="birthDate" label="出生日期" width="100">
  568. <template slot-scope="scope">
  569. <div v-if="scope.row.birthDate">
  570. {{ moment(scope.row.birthDate).format("yyyy-MM-DD") }}
  571. </div>
  572. </template>
  573. </el-table-column>
  574. <el-table-column prop="nationId" label="民族">
  575. <template slot-scope="scope">
  576. <div>
  577. {{ dddw(dict.nation, "id", scope.row.nationId, "displayName") }}
  578. </div>
  579. </template>
  580. </el-table-column>
  581. <el-table-column prop="idNo" label="身份证号" />
  582. <el-table-column prop="telephone" label="电话" />
  583. <el-table-column prop="mobileTelephone" label="手机号" />
  584. </el-table>
  585. <span slot="footer" class="dialog-footer">
  586. <el-button class="commonbutton" @click="dialogVisible = false" style="width:90px;">取消</el-button>
  587. <el-button class="commonbutton" type="primary" @click="choosePatient" style="width:90px;">确定</el-button>
  588. </span>
  589. </el-dialog>
  590. <el-dialog title="职业病" :visible.sync="dialogWin.OccDisease" width="800px" :close-on-click-modal="false"
  591. :append-to-body="true">
  592. <OccDisease />
  593. </el-dialog>
  594. <el-dialog title="网上预约" :visible.sync="dialogWin.WebBooking" width="800px" :close-on-click-modal="false"
  595. :append-to-body="true" :show-close="false" @close="close_dialogWin_WebBooking">
  596. <WebBooking />
  597. </el-dialog>
  598. <el-dialog title="网上预约--人寿" :visible.sync="dialogWin.WebBookingMzak" width="800px" :close-on-click-modal="false"
  599. :append-to-body="true" :show-close="false" @close="close_dialogWin_WebBookingMzak">
  600. <WebBookingMzak />
  601. </el-dialog>
  602. <!-- checkStrictly: true, expandTrigger: 'hover', -->
  603. <el-dialog title="选择单位" :visible.sync="dialogOrg" width="800px" :close-on-click-modal="false"
  604. :append-to-body="true">
  605. <div style="height: 320px;">
  606. <el-cascader v-model="form.customerOrgId" :options="patientRegister.customerOrgTreeAll" style="width:400px;"
  607. filterable popper-class="example" :show-all-levels="false" @change="changeChooseOrgId"
  608. :props="{ checkStrictly: true, expandTrigger: 'click', ...customerOrg.treeprops, lazyLoad: lazyLoad, lazy: true, leaf: 'isLeaf' }"
  609. size="small">
  610. </el-cascader>
  611. </div>
  612. <span slot="footer" class="dialog-footer">
  613. <el-button type="primary" @click="btnOkOrg">确定</el-button>
  614. <el-button @click="dialogOrg = false">关闭</el-button>
  615. </span>
  616. </el-dialog>
  617. <!-- 拍照openCamera 网页模式已废弃
  618. <el-dialog title="拍照" :visible.sync="patientRegister.cameraVisble" width="400" height="600"
  619. :close-on-click-modal="false" :append-to-body="true">
  620. <Camera :id="form.id" />
  621. </el-dialog>
  622. -->
  623. <!-- 合并条码 -->
  624. <el-dialog title="合并条码" :visible.sync="patientRegister.lisRequestVisble" width="600px" height="400"
  625. :show-close="false" :close-on-click-modal="false" :append-to-body="true">
  626. <LisRequest :id="form.id" :brushTimes="brushTimes" />
  627. </el-dialog>
  628. <!-- 条码补打 -->
  629. <el-dialog title="条码补打" :visible.sync="dialogWin.Label" width="800px" height="400" :close-on-click-modal="false"
  630. :append-to-body="true">
  631. <el-tabs v-model="tabChoosed" style="height:320px;margin-top: -22px;">
  632. <!-- 组合项目 -->
  633. <el-tab-pane label="检验条码" name="1">
  634. <PatientLisRequest :isDialog="true" />
  635. </el-tab-pane>
  636. <el-tab-pane label="检查条码" name="2">
  637. <PatientPacsRequest :isDialog="true" />
  638. </el-tab-pane>
  639. </el-tabs>
  640. </el-dialog>
  641. <!-- 手动合并项目 -->
  642. <el-dialog title="手动合并项目" :visible.sync="patientRegister.mergeAsbitemVisble" width="600px" height="400"
  643. :show-close="false" :close-on-click-modal="false" :append-to-body="true">
  644. <MergeAsbitem :id="form.id" :medicalCenterId="form.medicalCenterId" :brushTimes="brushTimes" />
  645. </el-dialog>
  646. <!-- 收费 -->
  647. <el-dialog title="" :visible.sync="dialogWin.charge" :close-on-click-modal="false" :append-to-body="true"
  648. fullscreen @close="closeDialogCharge">
  649. <div style="margin-top: -30px;">
  650. <Charge :patientRegisterNo="chargePatientRegisterNo" />
  651. </div>
  652. </el-dialog>
  653. <!-- 收费申请 -->
  654. <el-dialog title="收费申请" :visible.sync="dialogWin.AsbChargeRequest" width="800px" :show-close="false"
  655. :close-on-click-modal="false" :append-to-body="true" @close="closeDialogCharge">
  656. <AsbChargeRequest :patientRegister="form" />
  657. </el-dialog>
  658. <!-- 分诊排队 -->
  659. <el-dialog title="分诊排队" :visible.sync="dialogWin.queue" width="800px" :append-to-body="true"
  660. :close-on-click-modal="false">
  661. <Queue :refParams="queueParams" />
  662. </el-dialog>
  663. <!--复制套餐-->
  664. <el-dialog title="复制体检套餐" :visible.sync="medicalPackageVisble" width="800px" height="500" :show-close="false"
  665. :close-on-click-modal="false" :append-to-body="true">
  666. <el-table :data="dict.medicalPackage" border height="350" row-key="id" size="small" highlight-current-row
  667. @row-click="packageRowClick" @row-dblclick="rowDblclick" ref="patientList">
  668. <!-- "displayName": "健康体检套餐",
  669. "price": 20.00,
  670. "forSexId": "0",
  671. "isActive": "Y",
  672. "remark": "2",
  673. "displayOrder": 1,
  674. "simpleCode": "JKTJTC",
  675. "creatorName": "admin",
  676. "lastModifierName": "users",
  677. "lastModificationTime": "2023-08-04T16:34:02.94408",
  678. "lastModifierId": "3a0ca83b-3116-da05-3916-dfd4c0c548cb",
  679. "creationTime": "2023-07-10T19:53:30.210553",
  680. "creatorId": "3a0c4180-107c-0c89-b25b-0bd34666dcec",
  681. "id": "3a0c51d3-2345-38df-ba0b-1862a3c3606f" -->
  682. <el-table-column type="index" width="50" />
  683. <el-table-column prop="displayName" label="套餐名称" width="180" />
  684. <el-table-column prop="price" label="价格" width="80" />
  685. <el-table-column prop="forSexId" label="适用性别" width="80">
  686. <template slot-scope="scope">
  687. <div>
  688. {{ dddw(dict.forSex, "id", scope.row.forSexId, "displayName") }}
  689. </div>
  690. </template>
  691. </el-table-column>
  692. <el-table-column prop="remark" label="备注" width="100" />
  693. <el-table-column prop="creatorName" label="创建人员" width="80" />
  694. <el-table-column prop="creationTime" label="创建日期" width="100">
  695. <template slot-scope="scope">
  696. <div v-if="scope.row.creationTime">
  697. {{ moment(scope.row.creationTime).format("yyyy-MM-DD") }}
  698. </div>
  699. </template>
  700. </el-table-column>
  701. <el-table-column prop="lastModifierName" label="修改人员" width="80" />
  702. <el-table-column prop="lastModificationTime" label="修改日期" width="100">
  703. <template slot-scope="scope">
  704. <div v-if="scope.row.lastModificationTime">
  705. {{ moment(scope.row.lastModificationTime).format("yyyy-MM-DD") }}
  706. </div>
  707. </template>
  708. </el-table-column>
  709. </el-table>
  710. <span slot="footer" class="dialog-footer">
  711. <el-button class="commonbutton" type="primary" @click="copyMedicalPackage" style="width:90px;">确定</el-button>
  712. <el-button class="commonbutton" @click="medicalPackageVisble = false" style="width:90px;">取消</el-button>
  713. </span>
  714. </el-dialog>
  715. <!--复制分组-->
  716. <el-dialog title="复制单位分组" :visible.sync="groupVisble" width="800px" height="500" :show-close="false"
  717. :close-on-click-modal="false" :append-to-body="true">
  718. <div>
  719. <div style="display: flex">
  720. <div>
  721. <span>体检单位</span>
  722. <el-select v-model="customerOrgId" placeholder="请选择体检单位" :filter-method="filterMethodOrg"
  723. default-first-option clearable filterable @clear="customerOrgDisp = deepCopy(customerOrgAll)"
  724. style="margin-left: 10px" @change="changeCustomerOrg" size="small">
  725. <el-option v-for="item in customerOrgDisp" :key="item.id" :label="item.displayName" :value="item.id">
  726. {{ item.displayName }}
  727. </el-option>
  728. </el-select>
  729. </div>
  730. <div style="margin-left: 20px">
  731. <span>单位体检次数</span>
  732. <el-select v-model="customerOrgRegister" placeholder="次数" style="width: 60px; margin-left: 10px"
  733. size="small" @change="changeTimes" value-key="id">
  734. <el-option v-for="item in customerOrgRegisterList" :key="item.id" :label="item.medicalTimes"
  735. :value="item" />
  736. </el-select>
  737. </div>
  738. </div>
  739. <el-table :data="customerOrgGroups" ref="customerOrgGroups" style="margin-top: 2px" row-key="id" border
  740. height="450px" size="small" highlight-current-row :row-class-name="handleRowClassName"
  741. @row-click="groupRowClick" @row-dblclick="groupRowDblclick">
  742. >
  743. <el-table-column type="index" label="序号" min-width="50" align="center" />
  744. <el-table-column prop="displayName" label="名称" min-width="150" />
  745. <el-table-column prop="price" label="价格" min-width="60" align="center" />
  746. <el-table-column prop="forSexId" label="适用性别" min-width="60" align="center">
  747. <template slot-scope="scope">
  748. {{ dddw(dict.forSex, "id", scope.row.forSexId, "displayName") }}
  749. </template>
  750. </el-table-column>
  751. <el-table-column prop="maritalStatusId" label="适用婚姻状况" min-width="80" align="center">
  752. <template slot-scope="scope">
  753. {{
  754. dddw(
  755. dict.forMaritalStatus,
  756. "id",
  757. scope.row.maritalStatusId,
  758. "displayName"
  759. )
  760. }}
  761. </template>
  762. </el-table-column>
  763. <el-table-column prop="creatorName" label="创建者" min-width="60" align="center" />
  764. <el-table-column label="创建时间" min-width="150" align="center">
  765. <template slot-scope="scope">
  766. {{
  767. scope.row.creationTime
  768. ? moment(scope.row.creationTime).format("yyyy-MM-DD HH:mm:ss")
  769. : ""
  770. }}
  771. </template>
  772. </el-table-column>
  773. </el-table>
  774. <div style="display: flex;justify-content: space-between;margin-top: 10px;">
  775. <div></div>
  776. <span slot="footer" class="dialog-footer">
  777. <el-button class="commonbutton" type="primary" @click="copyGroup" style="width:90px;">确定</el-button>
  778. <el-button class="commonbutton" @click="groupVisble = false" style="width:90px;">取消</el-button>
  779. </span>
  780. </div>
  781. </div>
  782. </el-dialog>
  783. </div>
  784. </div>
  785. </template>
  786. <script>
  787. import moment from "moment";
  788. import { mapState, mapActions } from "vuex";
  789. import { getapi, postapi, putapi, deletapi } from "@/api/api";
  790. import { getTreeNode } from "../../utlis/tree"
  791. import {
  792. getPagePriv, checkPagePriv, objCopy, setNull, dddw, checkIDCode, parseID,
  793. birthdayToAge, ageToBirthday, deepCopy, arrayFilter, arrayReduce, parsIcCardtoLocal,
  794. reMadeOrgTree, arrayExistObj, isValidMobileNumber
  795. } from "../../utlis/proFunc";
  796. import { getTreePids, madeTree } from "../../utlis/tree";
  797. import { photoParse, savePeoplePhoto, } from "../../utlis/proApi";
  798. import Camera from "./Camera.vue";
  799. import PatientRegisterItem from "./PatientRegisterItem.vue";
  800. import LisRequest from "./LisRequest.vue";
  801. import MergeAsbitem from "./MergeAsbitem.vue";
  802. import AsbChargeRequest from "./AsbChargeRequest.vue";
  803. import Charge from "../../views/charge/charge.vue";
  804. import PatientRegisterEditQuery from "../../components/patientRegister/PatientRegisterEditQuery.vue";
  805. import OccDisease from "../../components/occDisease/OccDisease.vue"
  806. import WebBooking from "../../components/webBooking/WebBooking.vue"
  807. import WebBookingMzak from "../../components/webBooking/WebBookingMzak.vue"
  808. import PatientLisRequest from "../../components/patientRegister/PatientLisRequest.vue";
  809. import PatientPacsRequest from "../../components/patientRegister/PatientPacsRequest.vue";
  810. import Queue from "../../components/queue/Queue.vue";
  811. export default {
  812. components: {
  813. Camera,
  814. LisRequest,
  815. MergeAsbitem,
  816. PatientRegisterItem,
  817. Charge,
  818. AsbChargeRequest,
  819. PatientRegisterEditQuery,
  820. OccDisease,
  821. PatientLisRequest,
  822. PatientPacsRequest,
  823. WebBooking, WebBookingMzak,
  824. Queue
  825. },
  826. // isDoctor: '0:标准人员登记/1:医生诊台登记(可修改单位)'
  827. props: ['isDoctor', 'patientRegisterId', 'editTimes', 'refreshRegister', 'refFuncSetData'],
  828. data() {
  829. return {
  830. pagePriv: {
  831. routeUrlorPageName: 'PatientRegisterEdit', //当前页面归属路由或归属页面权限名称
  832. privs: [] // 页面权限
  833. },
  834. patient_register_occ_check_id: '', // 属于职业病体检类别的ID
  835. merge_lis_pacs_label: "0", //默认0 检验检查条码合并 0:不合并,1:合并
  836. LocalConfig: {
  837. patientRegister: {
  838. editMode: 'standard', //standard/qztl 人员登记组件版本
  839. editHeight: 0, // 相较与标准版,选组合项目组件,减少高度
  840. immediateToHisCharge: true, // 人员登记保存后,立即发送收费申请
  841. findPatientByName: true, // 人员登记,启有人名查询
  842. printGuideLabel: ["guide", "pacs", "lis"], // 保存后打印指引单与条码
  843. dispCustomerOrgCode: 'N', // 人员登记列表--单位树是否显示 customerOrgCode
  844. },
  845. },
  846. brushTimes: 0,
  847. peisid: null,
  848. peoplePhoto: '',
  849. preCustomerOrgId: '', // 上一个人的体检单位,只是在本组件点新增时才用到
  850. form: {
  851. registerManType: 'customer', //登记人员类型,客服:customer 医生:doctor 支持在医生诊台处理登记人员
  852. id: "", //id
  853. photo: '', //照片
  854. patientId: "00000000-0000-0000-0000-000000000000", //档案号ID 选择了档案就传档案号,未选就传00000-0000...
  855. patientNo: "", //档案号
  856. customerOrgId: ["00000000-0000-0000-0000-000000000001"], //单位编号 默认个人
  857. customerOrgParentId: "00000000-0000-0000-0000-000000000001",
  858. customerOrgName: "个人体检",
  859. customerOrgRegisterId: "00000000-0000-0000-0000-000000000001", //默认单位体检次数
  860. customerOrgGroupId: null, //分组
  861. medicalPackageId: null, //套餐
  862. patientName: "", //姓名
  863. birthDate: null, //日期型
  864. sexId: "U", //性别 默认未知U
  865. age: null, //年龄
  866. jobCardNo: "", //工卡号
  867. medicalCardNo: "", //体检卡号
  868. maritalStatusId: "9", //婚姻状况 默认未知
  869. medicalTypeId: null, //体检类别
  870. personnelTypeId: null, //人员类别
  871. jobPost: "", //职务
  872. jobTitle: "", //职称
  873. salesman: "", //介绍人
  874. sexHormoneTermId: null, //性激素期限
  875. isNameHide: "N", //隐藏姓名
  876. isPhoneFollow: "N", //电话随访
  877. isVip: "N", //vip客户
  878. remark: "", //
  879. isLock: "N", //是否锁住
  880. completeFlag: "1", //完成标志 0:预登记,1:正式登记(未检),2:部份已检,3:已总检 【创建编辑时不操作】
  881. isMedicalStart: "N", //体检开始标志 【创建编辑时不操作】
  882. patientRegisterNo: "", //条码号 【创建编辑时不操作】
  883. medicalTimes: 1, //条码号 【创建编辑时不操作】
  884. medicalCenterId: null, //体检中心
  885. address: "", //地址
  886. email: "", //email
  887. idNo: "", //身份证号
  888. telephone: "", //电话
  889. mobileTelephone: "", //手机号
  890. nationId: null, //民族编号
  891. birthPlaceId: null, //籍惯(出生地)
  892. postalCode: "", //邮编
  893. creatorId: null,
  894. creationTime: "",
  895. lastModificationTime: "",
  896. lastModifierId: null,
  897. isMaxMedicalTimes: 'N',
  898. medicalStartDate: null,
  899. hisPatientId: '', //对接 hisid
  900. registerCheckAsbitems: [], //所选组合项目明细
  901. // 青藏公司 数据
  902. qztlType: '0', // 高原/健康
  903. qztlIsCw: 'N', // 普速
  904. qztlIsCy: 'N', // 从业
  905. qztlIsGt: 'N', // 高铁
  906. qztlIsMain: 'N', // 行车
  907. qztlIsWh: 'N', // 职害
  908. qztlIsFj: 'N', // 复检
  909. isQztlImport: 'N', // 导入
  910. uploadQztlFlag: 'N', // 上传
  911. planuserid: '', // 计划人
  912. // 职业病
  913. ocCheckTypeId: null, //检查类别
  914. jobType: '', //工种
  915. poisonIds: [], // 接害因素IDs(主表不保存此项数据)
  916. isPatientOccupationalDisease: 'Y', // 是否职业病检查(主表不保存此项数据)
  917. appointPatientRegisterId: "",
  918. thirdBookingId: "",
  919. occupationalDiseaseNumber: "",
  920. }, //单位 记录 目前新增与更新是一致
  921. formInit: {}, //表单初始化
  922. customerOrgRegisterList: [], //单位体检次数列表
  923. defaultNull: [
  924. "customerOrgId",
  925. "customerOrgGroupId",
  926. "medicalPackageId",
  927. "birthDate",
  928. "age",
  929. "maritalStatusId",
  930. "medicalTypeId",
  931. "personnelTypeId",
  932. "sexHormoneTermId",
  933. "medicalCenterId",
  934. "nationId",
  935. "birthPlaceId",
  936. ], //一般uuid字段为空时,需设置为null值
  937. rules: {
  938. customerOrgId: [
  939. { required: true, message: "请填写单位", trigger: "blur" },
  940. ],
  941. patientName: [
  942. { required: true, message: "请填写姓名", trigger: "blur" },
  943. ],
  944. medicalCenterId: [
  945. { required: true, message: "请填写体检中心", trigger: "blur" },
  946. ],
  947. // mobileTelephone: [
  948. // { required: true, message: "请填写手机号", trigger: "blur" },
  949. // { validator: validateMobileTelephone, trigger: 'blur' }
  950. // ],
  951. },
  952. dialogVisible: false,
  953. patientList: [], //人员列表(用于判断人员多次体检)
  954. patientChoosed: {}, //查重选中的人员
  955. registerVisible: false,
  956. patientRegisters: [],
  957. registerChoosed: {},
  958. dialogCamera: false, //拍照组件
  959. chargePatientRegisterNo: '', //对哪个条码客户收费
  960. //人员登记,组合项目明细操作相关参数
  961. prAsbOpraOpts: {
  962. formId: '', //form.id为空时,明细保存取此formId
  963. copyNew: 0, //触发复制新增
  964. payTypeFlag: '', //触发调整支付方式
  965. prAsbSave: 0, //触发组合项目明细保存
  966. prAsbQuery: 0,//触发组合项目明细查询,比如收费后,刷新收费状态
  967. prAsbGroup: 0, //触发分组更换
  968. prAsbPackage: 0, //触发套餐更换
  969. },
  970. nation: [], //
  971. dialogOrg: false,
  972. printing: false, // 是否打印中,控制一次只能有一个任务
  973. completeFlag: '0', // 默认预登记,首次正式登记或者预登记转正式登记,提示打印条码与指引单
  974. tabChoosed: "1",
  975. poison: [],
  976. poisonList: [],
  977. thirdInterfaceId: '', // 网上预约用到
  978. queueParams: {}, // 分诊排队参数
  979. //**复制分组与套餐相关数据
  980. //控制 复制套餐与分组页面 显示
  981. medicalPackageVisble: false,
  982. groupVisble: false,
  983. customerOrgGroups: [],
  984. //选中套餐与分组所包含的组合项目
  985. curPackageId: '',
  986. curGroupId: '',
  987. packageAsbitems: [],
  988. groupAsbitems: [],
  989. customerOrgId: '',
  990. customerOrgDisp: [],
  991. customerOrgAll: [],
  992. customerOrgRegisterList: [], //当前体检次数集合
  993. customerOrgRegister: {}, // 当前选择体检次数
  994. hc_warn_mode: '1', //0-仅提醒;1-提醒并决择;2-有互斥项目时不允许保存
  995. };
  996. },
  997. created() {
  998. //获取用户当前页面的权限
  999. let userPriv = window.sessionStorage.getItem('userPriv')
  1000. if (userPriv) this.pagePriv.privs = deepCopy(getPagePriv(this.pagePriv.routeUrlorPageName))
  1001. try {
  1002. let LocalConfig = JSON.parse(window.localStorage.getItem('LocalConfig'))
  1003. if (LocalConfig && LocalConfig.patientRegister) {
  1004. if (LocalConfig.patientRegister.edit) this.LocalConfig.patientRegister.edit = LocalConfig.patientRegister.edit
  1005. if (LocalConfig.patientRegister.editHeight) this.LocalConfig.patientRegister.editHeight = LocalConfig.patientRegister.editHeight
  1006. if (LocalConfig.patientRegister.immediateToHisCharge) {
  1007. this.LocalConfig.patientRegister.immediateToHisCharge = true
  1008. } else {
  1009. this.LocalConfig.patientRegister.immediateToHisCharge = false
  1010. }
  1011. if (LocalConfig.patientRegister.findPatientByName) {
  1012. this.LocalConfig.patientRegister.findPatientByName = true
  1013. } else {
  1014. this.LocalConfig.patientRegister.findPatientByName = false
  1015. }
  1016. if (LocalConfig.patientRegister.printGuideLabel) this.LocalConfig.patientRegister.printGuideLabel = deepCopy(LocalConfig.patientRegister.printGuideLabel)
  1017. if (LocalConfig.patientRegister.dispCustomerOrgCode) this.LocalConfig.patientRegister.dispCustomerOrgCode = LocalConfig.patientRegister.dispCustomerOrgCode
  1018. }
  1019. } catch (error) {
  1020. console.log("window.localStorage.getItem('LocalConfig')", error)
  1021. }
  1022. this.formInit = deepCopy(this.form)
  1023. // 初始化字典数据
  1024. this.dictInit()
  1025. },
  1026. //挂载完成
  1027. mounted() {
  1028. this.initFormData(this.dataTransOpts.tableS.patient_register.id)
  1029. // 表单中 回车 代替 tab
  1030. this.enterToTab();
  1031. },
  1032. computed: {
  1033. ...mapState(["window", "dialogWin", "dataTransOpts", "dict", "patientRegister", "customerOrg", "projPriv"]),
  1034. //是否总检(已总检则不允许修改套餐与分组)
  1035. isComplete() {
  1036. return this.form.completeFlag == '3' ? true : false;
  1037. },
  1038. // 套餐 disabled 如完成体检亦不允许编辑
  1039. displayPackage() {
  1040. let isPersonOrgId = true
  1041. if (!this.isComplete) {
  1042. if (!this.form.customerOrgId) return false
  1043. if (typeof this.form.customerOrgId == 'string') {
  1044. if (this.form.customerOrgId == this.dict.personOrgId) isPersonOrgId = false
  1045. } else {
  1046. if (this.form.customerOrgId[this.form.customerOrgId.length - 1] == this.dict.personOrgId) isPersonOrgId = false
  1047. }
  1048. }
  1049. return isPersonOrgId
  1050. },
  1051. // 分组 disabled 如完成体检亦不允许编辑
  1052. displayGroup() {
  1053. let isPersonOrgId = true
  1054. if (!this.isComplete) {
  1055. if (!this.form.customerOrgId) return isPersonOrgId
  1056. if (typeof this.form.customerOrgId == 'string') {
  1057. if (this.form.customerOrgId != this.dict.personOrgId) isPersonOrgId = false
  1058. } else {
  1059. if (this.form.customerOrgId[this.form.customerOrgId.length - 1] != this.dict.personOrgId) isPersonOrgId = false
  1060. }
  1061. }
  1062. return isPersonOrgId
  1063. },
  1064. },
  1065. methods: {
  1066. ...mapActions(['getPatientRegisterAbs']),
  1067. dddw, moment, checkPagePriv,
  1068. btnTest() {
  1069. // console.log('form', this.form)
  1070. },
  1071. validateMobileTelephone(rule, value, callback) {
  1072. if (value) {
  1073. if (!isValidMobileNumber(value)) {
  1074. callback(new Error('请填写正确的手机号!'));
  1075. } else {
  1076. callback();
  1077. }
  1078. } else {
  1079. callback();
  1080. }
  1081. },
  1082. //数据初始化
  1083. dictInit() {
  1084. // 获取系统参数 -- 职业病 体检类别编号
  1085. let sysParmId = "patient_register_occ_check_id"
  1086. postapi('/api/app/SysParmValue/GetSysParmValueBySysParmId', { sysParmId })
  1087. .then(res => {
  1088. if (res.code > -1) this.patient_register_occ_check_id = res.data
  1089. })
  1090. // 获取系统参数 -- 合并检验检查条码
  1091. postapi('/api/app/SysParmValue/GetSysParmValueBySysParmId', { sysParmId: 'merge_lis_pacs_label' })
  1092. .then(res => {
  1093. if (res.code > -1) {
  1094. this.merge_lis_pacs_label = res.data || "0"
  1095. }
  1096. })
  1097. // 获取系统参数 -- 人员登记必填列
  1098. postapi('/api/app/SysParmValue/GetSysParmValueBySysParmId', { sysParmId: 'patient_register_required_field' })
  1099. .then(res => {
  1100. if (res.code > -1) {
  1101. try {
  1102. let masterCols = JSON.parse(res.data)
  1103. let cols = Object.keys(masterCols)
  1104. cols.forEach(key => {
  1105. if (!this.rules[key]) {
  1106. this.rules[key] = [{
  1107. required: true, message: `请填写${masterCols[key]}`, trigger: "blur"
  1108. }]
  1109. }
  1110. });
  1111. } catch (error) {
  1112. console.error(error)
  1113. }
  1114. }
  1115. })
  1116. //性别(仅档案用)
  1117. getapi("/api/app/sex").then((res) => {
  1118. if (res.code == 1) {
  1119. this.dict.sex = res.data;
  1120. }
  1121. });
  1122. //适用性别
  1123. getapi("/api/app/for-sex").then((res) => {
  1124. if (res.code == 1) {
  1125. this.dict.forSex = res.data;
  1126. }
  1127. });
  1128. //体检中心
  1129. getapi("/api/app/organization-units/organization-unit-by-is-peis").then(
  1130. (res) => {
  1131. if (res.code == 1) {
  1132. this.dict.organization = res.data;
  1133. }
  1134. }
  1135. );
  1136. //体检单位
  1137. // getapi("/api/app/customer-org/in-filter").then((res) => {
  1138. // if (res.code == 1) {
  1139. // this.dict.customerOrg = res.data;
  1140. // }
  1141. // });
  1142. //体检类别
  1143. getapi("/api/app/medical-type/in-filter").then((res) => {
  1144. if (res.code > -1) {
  1145. this.dict.medicalType = res.data;
  1146. }
  1147. });
  1148. //人员类别
  1149. getapi("/api/app/personnel-type/in-filter").then((res) => {
  1150. if (res.code > -1) {
  1151. this.dict.personnelType = res.data;
  1152. }
  1153. });
  1154. //婚姻状况
  1155. getapi("/api/app/MaritalStatus/GetMaritalStatusList").then((res) => {
  1156. if (res.code == 1) {
  1157. this.dict.maritalStatus = res.data;
  1158. }
  1159. });
  1160. //性激素期
  1161. getapi("/api/app/sex-hormone-term/in-filter").then((res) => {
  1162. if (res.code == 1) {
  1163. this.dict.sexHormoneTerm = res.data;
  1164. }
  1165. });
  1166. //民族
  1167. getapi("/api/app/nation/in-filter").then((res) => {
  1168. if (res.code != -1) {
  1169. this.dict.nation = res.data;
  1170. this.nation = deepCopy(res.data)
  1171. }
  1172. });
  1173. //籍惯 ,出生地
  1174. getapi("/api/app/birth-place/in-filter").then((res) => {
  1175. if (res.code == 1) {
  1176. this.dict.birthPlace = res.data;
  1177. }
  1178. });
  1179. //套餐
  1180. postapi("/api/app/medicalpackage/GetBasicList", {}).then((res) => {
  1181. if (res.code == 1) {
  1182. this.dict.medicalPackage = res.data;
  1183. }
  1184. });
  1185. //支付方式
  1186. getapi("/api/app/pay-mode").then((res) => {
  1187. if (res.code == 1) {
  1188. this.dict.payMode = res.data;
  1189. }
  1190. });
  1191. //职业病检查类别
  1192. postapi("/api/app/OcCheckType/GetList").then((res) => {
  1193. if (res.code > -1) {
  1194. this.dict.occCheckType = res.data;
  1195. }
  1196. });
  1197. //接害因素
  1198. postapi("/api/app/Poison/GetPoisonWithTypeList").then(res => {
  1199. if (res.code > -1) {
  1200. this.poison = res.data;
  1201. this.poisonList = []
  1202. this.poison.forEach(e => {
  1203. e.poisonDtos.forEach(e2 => {
  1204. this.poisonList.push({
  1205. poisonTypeName: e.poisonTypeName,
  1206. id: e2.id,
  1207. displayName: e2.displayName,
  1208. simpleCode: e2.simpleCode
  1209. })
  1210. });
  1211. });
  1212. }
  1213. })
  1214. //项目类别 树结构
  1215. // getapi("/api/app/item-type/by-code-all").then((res) => {
  1216. // if (res.code != -1) {
  1217. // this.dict.itemTypeTree = res.data;
  1218. // tcdate(this.dict.itemTypeTree);
  1219. // }
  1220. // });
  1221. // postapi("/api/app/asbitem/GetBasicList",{isFilterActive:'Y'}).then((res) => {
  1222. // if (res.code != -1) {
  1223. // this.dict.asbItemAll = res.data;
  1224. // }
  1225. // });
  1226. // // console.log("dict", this.dict);
  1227. },
  1228. changeMedicalTypeId(v) {
  1229. if (this.patient_register_occ_check_id && this.patient_register_occ_check_id == v) {
  1230. this.form.isPatientOccupationalDisease = 'Y'
  1231. } else {
  1232. this.form.isPatientOccupationalDisease = 'N'
  1233. }
  1234. },
  1235. changeChooseOrgId(v) {
  1236. let parentId = null
  1237. if (v) {
  1238. parentId = v[v.length - 1]
  1239. // 已经查询过或无叶子节点的无需再查询
  1240. let lfind = arrayExistObj(this.patientRegister.customerOrgs, 'parentId', parentId)
  1241. if (lfind > -1) return
  1242. lfind = arrayExistObj(this.patientRegister.customerOrgs, 'id', parentId)
  1243. if (lfind > -1 && this.patientRegister.customerOrgs[lfind].isChild == 'N') return
  1244. } else {
  1245. return
  1246. }
  1247. this.getCustomerOrgChild(parentId)
  1248. },
  1249. getCustomerOrgChild(parentId) {
  1250. return new Promise((resolve, reject) => {
  1251. postapi('/api/app/CustomerOrg/GetCustomerOrgByParentId', { parentId })
  1252. .then(res => {
  1253. if (res.code > -1) {
  1254. res.data.forEach(e => {
  1255. e.isLeaf = e.isChild == 'Y' ? false : true
  1256. });
  1257. // console.log('this.patientRegister.customerOrgs', this.patientRegister.customerOrgs)
  1258. let treeData = reMadeOrgTree(deepCopy(res.data), this.LocalConfig.patientRegister.dispCustomerOrgCode);
  1259. treeData.forEach(e => {
  1260. if (arrayExistObj(this.patientRegister.customerOrgs, 'id', e.id) == -1) {
  1261. this.patientRegister.customerOrgs.push(e)
  1262. }
  1263. });
  1264. this.patientRegister.customerOrgTreeAll = madeTree(this.patientRegister.customerOrgs, 'treeChildren', 'parentId', 'id', null)
  1265. // console.log('this.patientRegister.customerOrgTreeAll', this.patientRegister.customerOrgTreeAll)
  1266. resolve(treeData)
  1267. }
  1268. })
  1269. .catch(err => {
  1270. reject(err)
  1271. })
  1272. })
  1273. },
  1274. lazyLoad(node, resolve) {
  1275. if (node && node.data && node.data.id) {
  1276. this.getCustomerOrgChild(node.data.id).then(res => {
  1277. resolve(res)
  1278. }).catch(err => {
  1279. resolve([])
  1280. })
  1281. }
  1282. },
  1283. // 确定选中企业
  1284. btnOkOrg() {
  1285. let customerOrgId = ''
  1286. this.changeCustomerOrgId(this.form.customerOrgId)
  1287. if (Array.isArray(this.form.customerOrgId)) {
  1288. this.form.customerOrgParentId = this.form.customerOrgId[0]
  1289. customerOrgId = this.form.customerOrgId[this.form.customerOrgId.length - 1]
  1290. } else {
  1291. this.form.customerOrgParentId = this.form.customerOrgId
  1292. customerOrgId = this.form.customerOrgId
  1293. }
  1294. let node = getTreeNode(this.patientRegister.customerOrgTreeAll, "treeChildren", "id", customerOrgId)
  1295. if (node) this.form.customerOrgName = node.displayName
  1296. this.dialogOrg = false
  1297. },
  1298. // 获取登记信息 初始form表单数据
  1299. initFormData(patientRegisterId) {
  1300. return new Promise((resolve, reject) => {
  1301. this.peisid = window.sessionStorage.getItem('peisid');
  1302. let customerOrgId, customerOrgName, customerOrgParentId
  1303. if (this.patientRegister.query.customerOrgId) {
  1304. customerOrgParentId = this.patientRegister.query.CustomerOrgParentId
  1305. customerOrgId = this.patientRegister.query.customerOrgId
  1306. customerOrgName = this.patientRegister.query.customerOrgName
  1307. } else {
  1308. customerOrgParentId = this.form.customerOrgParentId
  1309. customerOrgId = this.form.customerOrgId
  1310. customerOrgName = this.form.customerOrgName
  1311. }
  1312. this.preCustomerOrgId = this.patientRegister.query.customerOrgId
  1313. if (!patientRegisterId) { //添加
  1314. this.peoplePhoto = '' // 清掉照片
  1315. this.form = Object.assign({}, this.form, this.formInit)
  1316. this.form.registerCheckAsbitems = []
  1317. this.form.medicalCenterId = this.peisid; //体检中收
  1318. this.form.customerOrgId = customerOrgId //体检单位
  1319. this.form.customerOrgParentId = customerOrgParentId //体检父单位
  1320. this.form.customerOrgName = customerOrgName
  1321. // 登记时继承单位的体检类别
  1322. this.getMedicalTypeByOrg(customerOrgId)
  1323. this.completeFlag = '0'
  1324. this.handleFormData().then(() => {
  1325. resolve()
  1326. })
  1327. } else {
  1328. // let res = await getapi(`/api/app/patient-register/${patientRegisterId}`)
  1329. postapi('/api/app/patientregister/getinfoorpatient', { patientRegisterId })
  1330. .then(res => {
  1331. if (res.code > -1) {
  1332. // this.form = res.data 这种方式,会造成 checkbox 值变化不响应,故取消
  1333. this.form = Object.assign({}, this.form, res.data)
  1334. this.completeFlag = this.form.completeFlag
  1335. this.handleFormData().then(() => resolve())
  1336. }
  1337. })
  1338. .catch(() => resolve())
  1339. }
  1340. })
  1341. },
  1342. // 根据体检单位ID,获取体检类别
  1343. getMedicalTypeByOrg(customerOrgId) {
  1344. return new Promise((resolve, reject) => {
  1345. postapi('/api/app/Customerorg/GetMedicalTypeIdByCustomerOrgId', { customerOrgId })
  1346. .then(res => {
  1347. if (res.code > -1) {
  1348. this.form.medicalTypeId = res.data.medicalTypeId
  1349. this.form.personnelTypeId = res.data.personnelTypeId
  1350. }
  1351. })
  1352. })
  1353. },
  1354. handleFormData() {
  1355. return new Promise((resolve, reject) => {
  1356. // 判断是否职业健康检查
  1357. this.changeMedicalTypeId(this.form.medicalTypeId)
  1358. if (this.form.isPatientOccupationalDisease == 'Y') {
  1359. this.getOccDiseaseData()
  1360. }
  1361. // 处理照片
  1362. this.getPeoplePhoto(this.form.photo)
  1363. // this.dataTransOpts.refresh.register_check_asbitem.D++ //触发所选组合项目刷新 (取消这种触发,减少交互)
  1364. this.dataTransOpts.tableM.register_check_asbitem = this.form.registerCheckAsbitems
  1365. this.dataTransOpts.tableM.register_check_asbitem.forEach(e => {
  1366. e.standTotal = e.amount * e.standardPrice
  1367. e.total = e.amount * e.chargePrice
  1368. });
  1369. // 单位/个人 的分组与套餐处理
  1370. this.changeCustomerOrgId(this.form.customerOrgId)
  1371. .then(() => {
  1372. // 刷新明细项目(已登记)
  1373. this.dataTransOpts.refresh.register_check_asbitem.OnlyRefreshAsbitem++
  1374. })
  1375. .finally(() => {
  1376. resolve()
  1377. })
  1378. })
  1379. },
  1380. //快速选择组合项目时,调整可按拼间简码及简称查找
  1381. filterMethod(keyWords) {
  1382. //// console.log('filterMethod',this.asbItemQuick)
  1383. if (keyWords) {
  1384. this.nation = [];
  1385. this.dict.nation.forEach(item => {
  1386. if (item.displayName.toLowerCase().indexOf(keyWords.toLowerCase()) > - 1
  1387. || item.simpleCode.toLowerCase().indexOf(keyWords.toLowerCase()) > - 1) {
  1388. this.nation.push(item);
  1389. }
  1390. });
  1391. } else {
  1392. this.nation = deepCopy(this.dict.nation);
  1393. }
  1394. },
  1395. //选择单位,并返回顶级单位
  1396. changeCustomerOrgId(v) {
  1397. // 始终返回 reslove ,主要用于流程控制
  1398. return new Promise((resolve, reject) => {
  1399. console.log('changeCustomerOrgId', v, this.form.customerOrgParentId)
  1400. let customerOrgId = "", customerOrgParentId = ""
  1401. if (Array.isArray(v) && v.length > 0) {
  1402. customerOrgId = v[v.length - 1]
  1403. } else {
  1404. customerOrgId = v // 后台顶级单位ID未获取正确(再获取一次)
  1405. }
  1406. // 保留之前预选的单位 if (!this.preCustomerOrgId)
  1407. this.preCustomerOrgId = customerOrgId
  1408. this.getParentCustomerOrgId(v)
  1409. .then(res => {
  1410. if (res) {
  1411. customerOrgParentId = res
  1412. // 获取并设置体检次数(个人的固定 "00000000-0000-0000-0000-000000000001" ),单位刷新分组字典
  1413. this.getCustomerOrgRegisterList(customerOrgParentId)
  1414. .then(() => {
  1415. // 需要触发 修改 分组/套餐 顶级ID 没有变时,不改变套餐与分组
  1416. if (customerOrgParentId != this.form.customerOrgParentId) {
  1417. this.form.customerOrgGroupId = null
  1418. this.form.medicalPackageId = null
  1419. // 清除套餐分组标识
  1420. this.dataTransOpts.tableM.register_check_asbitem.forEach(e => {
  1421. e.isBelongGroupPackage = 'N'
  1422. });
  1423. // 如果是个人,则清除分组字典
  1424. if (customerOrgParentId == this.dict.personOrgId) {
  1425. this.patientRegister.customerOrgGroup = []
  1426. }
  1427. if (this.form.customerOrgParentId == this.dict.personOrgId) {
  1428. this.changeMedicalPackageId()
  1429. } else {
  1430. this.changeCustomerOrgGroupId()
  1431. }
  1432. }
  1433. return resolve(customerOrgParentId)
  1434. })
  1435. } else {
  1436. resolve(customerOrgParentId)
  1437. }
  1438. })
  1439. .catch(() => {
  1440. resolve(customerOrgParentId)
  1441. })
  1442. })
  1443. },
  1444. // 获取顶级单位ID
  1445. getParentCustomerOrgId(v) {
  1446. return new Promise((resolve, reject) => {
  1447. let customerOrgParentId = null
  1448. if (Array.isArray(v) && v.length > 0) {
  1449. customerOrgParentId = v[0]
  1450. return resolve(customerOrgParentId)
  1451. } else {
  1452. if (!v) {
  1453. return resolve(customerOrgParentId)
  1454. } else {
  1455. if (v == this.dict.personOrgId) {
  1456. return resolve(v) // 等于个人体检时,则直接返回
  1457. } else {
  1458. getapi(`/api/app/customer-org/parent/${v}`)
  1459. .then(res => {
  1460. if (res.code > -1) customerOrgParentId = res.data
  1461. })
  1462. .finally(() => {
  1463. return resolve(customerOrgParentId)
  1464. })
  1465. }
  1466. }
  1467. }
  1468. })
  1469. },
  1470. //获取并设置体检次数(个人的固定 "00000000-0000-0000-0000-000000000001" ),单位刷新分组字典
  1471. getCustomerOrgRegisterList(customerOrgParentId) {
  1472. return new Promise((resolve, reject) => {
  1473. if (customerOrgParentId == this.dict.personOrgId) {
  1474. // 个人体检则 固定单位体检次数
  1475. this.form.customerOrgRegisterId = "00000000-0000-0000-0000-000000000001"
  1476. return resolve()
  1477. } else {
  1478. //获取单位体检次数信息
  1479. getapi(`/api/app/customerorgregister/getlistincustomerorgid?CustomerOrgId=${customerOrgParentId}`)
  1480. .then(res => {
  1481. if (res.code > - 1) {
  1482. // console.log('获取单位体检次数', this.form.customerOrgRegisterId, res.data)
  1483. this.customerOrgRegisterList = res.data
  1484. if (!this.form.customerOrgRegisterId || this.form.customerOrgRegisterId == "00000000-0000-0000-0000-000000000001") {
  1485. let customerOrgRegisterList = arrayFilter(res.data, 'isComplete', 'N') //不显示已完成的体检次数
  1486. if (customerOrgRegisterList.length > 0) {
  1487. this.form.customerOrgRegisterId = customerOrgRegisterList[customerOrgRegisterList.length - 1].id
  1488. }
  1489. }
  1490. // /api/app/customerorggroup/getlistinfilter?CustomerOrgRegisterId=${this.form.customerOrgRegisterId}
  1491. this.patientRegister.customerOrgGroup = []
  1492. if (this.form.customerOrgRegisterId && this.form.customerOrgRegisterId != '00000000-0000-0000-0000-000000000001') {
  1493. //获取单位分组
  1494. postapi('/api/app/CustomerOrgGroup/GetListForPatentRegisterByFilter', { customerOrgRegisterId: this.form.customerOrgRegisterId })
  1495. .then(res2 => {
  1496. if (res2 && res2.code != -1) {
  1497. this.patientRegister.customerOrgGroup = res2.data;
  1498. }
  1499. })
  1500. } return
  1501. }
  1502. })
  1503. .finally(() => {
  1504. resolve()
  1505. })
  1506. }
  1507. })
  1508. },
  1509. //读取身份证信息
  1510. peopleIcCard() {
  1511. if (!this.$peisAPI) {
  1512. this.$message.info({ showClose: true, message: "此功能,需要在壳客户端才可运行!" })
  1513. return
  1514. }
  1515. this.$peisAPI.peopleIcCard().then(res => {
  1516. // console.log('peopleIcCard', res)
  1517. let lres = JSON.parse(res)
  1518. if (lres.code >= -1) {
  1519. let idNos = parsIcCardtoLocal(lres.data, this.dict.sex, this.dict.nation)
  1520. this.form.patientName = idNos.Name
  1521. this.form.birthDate = idNos.birthDate
  1522. this.form.sexId = idNos.sexId
  1523. this.form.age = idNos.age
  1524. this.form.nationId = idNos.nationId
  1525. this.form.idNo = idNos.IDCode
  1526. this.form.address = idNos.Address
  1527. this.peoplePhoto = 'data:image/bmp;base64,' + idNos.Photo
  1528. // this.patientRegister.photo = 'data:image/bmp;base64,' + idNos.Photo
  1529. this.changeIdNo() // 触发身份证查询档案号
  1530. } else {
  1531. this.$message.error({ showClose: true, message: `${lres.message}` })
  1532. }
  1533. })
  1534. },
  1535. // 分诊排队
  1536. fnQueue(row) {
  1537. this.queueParams = {
  1538. patientRegisterId: row.id
  1539. }
  1540. this.dialogWin.queue = true
  1541. this.dataTransOpts.plus.queue++
  1542. },
  1543. //修改单位体检次数
  1544. changeMedicalTimes() {
  1545. this.form.customerOrgGroupId = null
  1546. this.changeCustomerOrgGroupId()
  1547. //获取体检次数下的分组
  1548. this.getCustomerOrgGroup(this.form.customerOrgRegisterId)
  1549. },
  1550. //移除旧分组或套餐的组合项目
  1551. removeGroupPackageAsb() {
  1552. let body = { registerAsbitemIds: [] }
  1553. let registerAsbitemIds = []
  1554. let chargeComplete = ''
  1555. //体检基本信息未保存时,删除所有所选项目
  1556. if (!this.form.id) {
  1557. this.patientRegister.patientRegisterAbs = [];
  1558. return body;
  1559. }
  1560. //删除已选 分组或套餐的组合项目 ,如已收费或 已检时,将 groupPackageId 置为null
  1561. for (let i = 0; i < this.patientRegister.patientRegisterAbs.length; i++) {
  1562. if (!this.patientRegister.patientRegisterAbs[i].id) {
  1563. this.patientRegister.patientRegisterAbs.splice(i, 1)
  1564. i--
  1565. continue
  1566. }
  1567. if (this.patientRegister.patientRegisterAbs[i].isCharge == 'Y' || this.patientRegister.patientRegisterAbs[i].checkCompleteFlag != '0') {
  1568. chargeComplete += this.patientRegister.patientRegisterAbs[i].asbitemName + ','
  1569. this.patientRegister.patientRegisterAbs[i].groupPackageId = null
  1570. } else {
  1571. //数据库有,才添加到待删除的数组中
  1572. if (this.patientRegister.patientRegisterAbs[i].id) {
  1573. registerAsbitemIds.push(this.patientRegister.patientRegisterAbs[i].id)
  1574. }
  1575. this.patientRegister.patientRegisterAbs.splice(i, 1)
  1576. i--
  1577. }
  1578. }
  1579. if (chargeComplete) {
  1580. this.$message.info({ showClose: true, message: `所选项目:${chargeComplete}已收费或已检,不可删除!` });
  1581. }
  1582. body = { registerAsbitemIds };
  1583. return body;
  1584. },
  1585. //添加新套餐/分组的组合项目
  1586. addGroupPackageAsb(groupPackageAsb, typeFlag, groupPackageId) {
  1587. let payTypeFlag = '0'; //默认个人支付
  1588. let lfind = -1
  1589. if (this.form.customerOrgId != this.dict.personOrgId) payTypeFlag = '1' //单位支付
  1590. for (let i = 0; i < groupPackageAsb.length; i++) {
  1591. lfind = arrayExistObj(this.patientRegister.patientRegisterAbs, 'asbitemId', groupPackageAsb[i].id)
  1592. if (lfind > - 1) {
  1593. this.patientRegister.patientRegisterAbs[lfind].groupPackageId = groupPackageId
  1594. //editCount++
  1595. continue
  1596. }
  1597. let pojo = {
  1598. asbitemId: groupPackageAsb[i].id,
  1599. asbitemName: groupPackageAsb[i].displayName,
  1600. patientRegisterId: this.form.id,
  1601. standardPrice: groupPackageAsb[i].price,
  1602. chargePrice: typeFlag == 'group' ? groupPackageAsb[i].customerOrgGroupDetailPrice : groupPackageAsb[i].price,
  1603. payTypeFlag,
  1604. discount: typeFlag == 'group' ? groupPackageAsb[i].discount : 100,
  1605. isCharge: "N",
  1606. amount: typeFlag == 'group' ? groupPackageAsb[i].customerOrgGroupDetailAmount : 1,
  1607. groupPackageId: groupPackageId
  1608. }
  1609. this.patientRegister.patientRegisterAbs.push(pojo)
  1610. }
  1611. },
  1612. //获取体检次数下的分组
  1613. getCustomerOrgGroup(customerOrgRegisterId) {
  1614. this.patientRegister.customerOrgGroup = []
  1615. // /api/app/customerorggroup/getlistinfilter?CustomerOrgRegisterId=${customerOrgRegisterId}`
  1616. postapi('/api/app/CustomerOrgGroup/GetListForPatentRegisterByFilter', { customerOrgRegisterId }).then(res => {
  1617. if (res.code != - 1) {
  1618. this.patientRegister.customerOrgGroup = res.data;
  1619. }
  1620. })
  1621. },
  1622. //修改出生日期
  1623. changeBirthDate() {
  1624. this.form.age = birthdayToAge(this.form.birthDate)
  1625. },
  1626. //修改出生日期
  1627. changeAge() {
  1628. this.form.birthDate = ageToBirthday(this.form.age)
  1629. },
  1630. //修改身份证,生成年龄、出生、性别
  1631. changeIdNo() {
  1632. if (!this.form.idNo) return
  1633. this.Query(this.form.idNo)
  1634. let ret = parseID(this.form.idNo)
  1635. // console.log('changeIdNo',ret)
  1636. if (ret.age != -1) {
  1637. this.form.birthDate = new Date(ret.birthday)
  1638. this.form.age = ret.age
  1639. this.form.sexId = ret.sex
  1640. }
  1641. },
  1642. // 输入名字时,查重
  1643. changePatientName() {
  1644. console.log('this.LocalConfig.patientRegister.findPatientByName', this.LocalConfig.patientRegister.findPatientByName)
  1645. if (this.LocalConfig.patientRegister.findPatientByName) {
  1646. this.Query(this.form.patientName)
  1647. }
  1648. },
  1649. // //分组改变时触发
  1650. changeCustomerOrgGroupId() {
  1651. this.prAsbOpraOpts.prAsbGroup++
  1652. },
  1653. // //套餐改变时触发
  1654. changeMedicalPackageId() {
  1655. this.prAsbOpraOpts.prAsbPackage++
  1656. },
  1657. //根据姓名,身份证号 查询档案信息,用于判断人员多次体检
  1658. Query(param) {
  1659. this.patientChoosed = { id: '' } // 清空之前的选择
  1660. //编辑的时候不查重
  1661. if (this.form.id || !param) return;
  1662. //// console.log(`/api/app/patient/in-filter?Filter=${param}`)
  1663. let body = {
  1664. filter: param,
  1665. maxResultCount: 500
  1666. }
  1667. this.patientList = []
  1668. postapi('/api/app/patient/getlistinfilter', body).then((res) => {
  1669. if (res.code > -1) {
  1670. // console.log("查重 ", res); //有数据才显示
  1671. if (res.data && res.data.length > 0) {
  1672. this.patientList = res.data;
  1673. this.dialogVisible = true;
  1674. }
  1675. }
  1676. });
  1677. },
  1678. //列表选中
  1679. rowick(row) {
  1680. this.patientChoosed = row;
  1681. },
  1682. patientDblclick(row) {
  1683. this.patientChoosed = row;
  1684. this.choosePatient()
  1685. },
  1686. //确定选择人员
  1687. choosePatient() {
  1688. if (!this.patientChoosed.id) {
  1689. this.$message.warning({ showClose: true, message: '请选择人员档案信息' })
  1690. return;
  1691. }
  1692. this.dialogVisible = false;
  1693. this.form.patientId = this.patientChoosed.id;
  1694. this.form.patientNo = this.patientChoosed.patientNo;
  1695. this.form.medicalTimes = this.patientChoosed.medicalTimes + 1;
  1696. // 考滤录入有值,档案却无值
  1697. if (this.patientChoosed.displayName) this.form.patientName = this.patientChoosed.displayName;
  1698. if (this.patientChoosed.sexId) this.form.sexId = this.patientChoosed.sexId;
  1699. if (this.patientChoosed.birthDate) this.form.birthDate = new Date(this.patientChoosed.birthDate);
  1700. if (this.patientChoosed.nationId) this.form.nationId = this.patientChoosed.nationId;
  1701. if (this.patientChoosed.idNo) this.form.idNo = this.patientChoosed.idNo;
  1702. if (!this.form.maritalStatusId) this.form.maritalStatusId = this.patientChoosed.maritalStatusId;
  1703. if (!this.form.telephone) this.form.telephone = this.patientChoosed.telephone;
  1704. if (!this.form.mobileTelephone) this.form.mobileTelephone = this.patientChoosed.mobileTelephone;
  1705. if (this.form.birthDate) {
  1706. this.form.age = birthdayToAge(this.form.birthDate)
  1707. }
  1708. if (this.form.idNo) {
  1709. let ret = parseID(this.form.idNo)
  1710. this.form.birthDate = new Date(ret.birthday)
  1711. this.form.age = ret.age
  1712. this.form.sexId = ret.sex
  1713. }
  1714. },
  1715. registerRowClick(row) {
  1716. this.registerChoosed = row;
  1717. },
  1718. registerRowDblclick(row) {
  1719. this.registerChoosed = row;
  1720. this.chooseRegister()
  1721. },
  1722. chooseRegister() {
  1723. if (!this.registerChoosed) {
  1724. alert("请选中人员登记信息");
  1725. return;
  1726. }
  1727. objCopy(this.registerChoosed, this.form)
  1728. // this.patientRegister.patientRegisterId = this.registerChoosed.id
  1729. // this.patientRegister.photo = this.registerChoosed.photo
  1730. // this.getPatientRegisterAbs(this.registerChoosed.id)
  1731. this.dataTransOpts.tableS.patient_register.id = this.registerChoosed.id
  1732. setTimeout(() => {
  1733. this.dataTransOpts.refresh.register_check_asbitem.M++
  1734. }, 20);
  1735. this.registerVisible = false
  1736. },
  1737. // 组装基本信息保存的参数体
  1738. madePrBody() {
  1739. //赋值
  1740. let body = deepCopy(this.form);
  1741. // // console.log('this.form',this.form)
  1742. console.log('body', this.form, body)
  1743. if (this.form.birthDate) {
  1744. try {
  1745. body.birthDate = moment(new Date(this.form.birthDate)).format("yyyy-MM-DD")
  1746. } catch (error) {
  1747. // this.form.birthDate != "Invalid date"
  1748. body.birthDate = null
  1749. }
  1750. } else {
  1751. body.birthDate = null
  1752. }
  1753. if (body.birthDate == "Invalid date") body.birthDate = null
  1754. if (isNaN(body.age)) {
  1755. body.age = null
  1756. } else {
  1757. body.age = Number(body.age)
  1758. }
  1759. // // console.log('body',body)
  1760. // Invalid date
  1761. delete body.registerManType;
  1762. delete body.patientRegisterNo;
  1763. delete body.medicalTimes;
  1764. // delete body.completeFlag;
  1765. delete body.isMedicalStart;
  1766. delete body.patientNo;
  1767. delete body.creatorId;
  1768. delete body.creationTime;
  1769. delete body.lastModificationTime;
  1770. delete body.lastModifierId;
  1771. delete body.isVipBox;
  1772. delete body.isNameHideBox;
  1773. delete body.isPhoneFollowBox;
  1774. delete body.isLockBox;
  1775. delete body.photo;
  1776. // if(this.form.registerManType == 'customer') delete body.medicalStartDate;
  1777. if (this.form.id) delete body.medicalStartDate;
  1778. setNull(body, this.defaultNull);
  1779. if (typeof this.form.customerOrgId == 'object') {
  1780. if (this.form.customerOrgId.length > 0) body.customerOrgId = this.form.customerOrgId[this.form.customerOrgId.length - 1]
  1781. }
  1782. //日期转换 日期控件增加格式
  1783. // // console.log("body.birthDate", body.birthDate);
  1784. // if (body.birthDate) {
  1785. // body.birthDate = moment(new Date(body.birthDate)).format(
  1786. // "yyyy-MM-DD"
  1787. // );
  1788. // }
  1789. return body
  1790. },
  1791. // 验证职业病数据合法性
  1792. validateOccData() {
  1793. let err = ''
  1794. if (!this.form.idNo) return "职业健康检查必须填写 身份证号!"
  1795. if (this.form.maritalStatusId == '9') return "职业健康检查 婚姻不允许填未知!"
  1796. if (this.form.sexId == 'U') return "职业健康检查 性别不允许填未知!"
  1797. if (!this.form.ocCheckTypeId) return "职业健康检查必须填写 检查类别!"
  1798. if (!this.form.jobType) return "职业健康检查必须填写 工种!"
  1799. if (this.form.poisonIds == null || this.form.poisonIds.length == 0) return "职业健康检查必须填写 接害因素!"
  1800. return err
  1801. },
  1802. //提交
  1803. btnSubmit(formName, msgTip) {
  1804. //console.log('btnSubmit,formName,form', formName, JSON.stringify(this.form))
  1805. console.log('this.rules', this.rules)
  1806. this.$refs[formName].validate((valid, fields) => {
  1807. // console.log('fields', fields)
  1808. if (!valid) {
  1809. this.$message.warning({ showClose: true, message: fields[Object.keys(fields)[0]][0].message });
  1810. return false
  1811. }
  1812. // 手机号必填时,再验证手机号是否合法
  1813. if (this.rules['mobileTelephone']) {
  1814. if (!isValidMobileNumber(this.form['mobileTelephone'])) {
  1815. this.$message.warning({ showClose: true, message: '请填写正确的手机号!' });
  1816. return false
  1817. }
  1818. }
  1819. //console.log('btnSubmit1', formName)
  1820. if (this.form.customerOrgId != this.dict.personOrgId) {
  1821. if (!this.form.customerOrgRegisterId) {
  1822. this.$message.warning({ showClose: true, message: "请填写单位体检次数!" });
  1823. return false
  1824. }
  1825. }
  1826. if (this.form.idNo && checkIDCode(this.form.idNo) == false) {
  1827. this.$message.warning({ showClose: true, message: "身份证号填写不合法!" });
  1828. return false
  1829. }
  1830. // 如果是职业病,数据验证
  1831. if (this.form.isPatientOccupationalDisease == 'Y') {
  1832. let message = this.validateOccData()
  1833. if (message) {
  1834. this.$message.warning({ showClose: true, message });
  1835. return false
  1836. }
  1837. }
  1838. // console.log('btnSubmit2', formName)
  1839. let body = this.madePrBody()
  1840. // console.log('madePrBody',body)
  1841. body.registerCheckAsbitems = deepCopy(this.dataTransOpts.tableM.register_check_asbitem)
  1842. if (this.form.id) {
  1843. // 更新时,先保存明细,再更新主表
  1844. // this.prAsbOpraOpts.prAsbSave++ //触发组合项目保存
  1845. body.patientRegisterId = body.id;
  1846. } else {
  1847. delete body.id;
  1848. }
  1849. //console.log('btnSubmit3', formName)
  1850. // // console.log(`/api/patientregister/createreturninfo`, body);
  1851. // 保存前,判断是否有互斥项目
  1852. this.checkAsbItemHC()
  1853. .then(() => {
  1854. return postapi(`/api/PatientRegister/CreatePatientRegister`, body)
  1855. })
  1856. .then(async (res) => {
  1857. if (res.code > -1) {
  1858. // 因为 res.data 返回的 isPatientOccupationalDisease 是错误的(因为职业病尚未保存,所以以form里的值为准)
  1859. let isPatientOccupationalDisease = this.form.isPatientOccupationalDisease
  1860. this.form = Object.assign({}, this.form, res.data, { isPatientOccupationalDisease })
  1861. this.dataTransOpts.tableS.patient_register = deepCopy(res.data)
  1862. delete this.dataTransOpts.tableS.patient_register.registerCheckAsbitems
  1863. // 保存成功赋 id 值等
  1864. this.dataTransOpts.tableM.register_check_asbitem = res.data.registerCheckAsbitems
  1865. this.dataTransOpts.tableM.register_check_asbitem.forEach(e => {
  1866. e.total = e.amount * e.chargePrice
  1867. });
  1868. //一般读身份证照片时,会出现这种情况
  1869. if (this.peoplePhoto && this.peoplePhoto.indexOf("data:image") > -1) await savePeoplePhoto(res.data.id, this.peoplePhoto);
  1870. // 如果是职业病,则保存职业病相关信息
  1871. // console.log('this.form.isPatientOccupationalDisease', this.form.isPatientOccupationalDisease)
  1872. if (this.form.isPatientOccupationalDisease == 'Y') {
  1873. await this.occUpdate()
  1874. }
  1875. // 保存即发送收费申请 正式登记的才发送申请
  1876. if (this.form.completeFlag != '0' && this.LocalConfig.patientRegister.immediateToHisCharge) {
  1877. await this.immediateToHisCharge(this.form.id)
  1878. }
  1879. // 首次正式登记或者预登记转正式登记,提示打印条码与指引单
  1880. if (this.completeFlag == '0' && this.form.completeFlag != '0') {
  1881. if (Array.isArray(this.LocalConfig.patientRegister.printGuideLabel) && this.LocalConfig.patientRegister.printGuideLabel.length > 0) {
  1882. this.$confirm("是否打印 指引单、人员条码、检验条码及 Pacs 条码?", "提示", {
  1883. confirmButtonText: "是",
  1884. cancelButtonText: "否",
  1885. type: "warning",
  1886. })
  1887. .then(() => {
  1888. return this.labelPrint(false)
  1889. })
  1890. .then(res => {
  1891. return this.guidePrint('0001', false)
  1892. })
  1893. .catch((err) => {
  1894. if (err != "cancel") {
  1895. console.log(err)
  1896. this.$message.error({ showClose: true, message: err })
  1897. }
  1898. })
  1899. .finally(() => {
  1900. this.completeFlag = this.form.completeFlag
  1901. });
  1902. }
  1903. }
  1904. }
  1905. }
  1906. )
  1907. .catch(err => {
  1908. console.error(err)
  1909. })
  1910. ;
  1911. });
  1912. },
  1913. // 检查项目互斥
  1914. checkAsbItemHC() {
  1915. return new Promise((resolve, reject) => {
  1916. let asbitemIds = []
  1917. //console.log('this.dataTransOpts.tableM.register_check_asbitem',this.dataTransOpts.tableM.register_check_asbitem)
  1918. this.dataTransOpts.tableM.register_check_asbitem.forEach(e => {
  1919. asbitemIds.push(e.asbitemId)
  1920. });
  1921. let message = ''
  1922. if (asbitemIds.length == 0) {
  1923. resolve()
  1924. } else {
  1925. postapi('/api/app/AsbitemMutualExclusion/GetAsbitemIsMutualExclusion', { asbitemIds })
  1926. .then(res => {
  1927. if (res.code > -1) {
  1928. if (res?.data?.message) message = res.data.message
  1929. }
  1930. })
  1931. .finally(() => {
  1932. if (message) {
  1933. switch (this.hc_warn_mode) {
  1934. case '1':''
  1935. this.$confirm(`${message} 是否继续?`, "提示", {
  1936. confirmButtonText: "是",
  1937. cancelButtonText: " 否 ",
  1938. type: "warning",
  1939. })
  1940. .then(() => {
  1941. resolve()
  1942. })
  1943. .catch((err) => {
  1944. reject(message)
  1945. // if (err == "cancel") {
  1946. // console.log("已取消删除");
  1947. // }
  1948. });
  1949. break;
  1950. case '2':
  1951. this.$message.error({ showClose: true, message })
  1952. reject(message)
  1953. break;
  1954. default:
  1955. this.$message.warning({ showClose: true, message })
  1956. resolve()
  1957. break;
  1958. }
  1959. } else {
  1960. resolve()
  1961. }
  1962. })
  1963. }
  1964. })
  1965. },
  1966. // 保存职业病信息
  1967. async occUpdate() {
  1968. // 职业病基本信息
  1969. let lriskFactors = []
  1970. this.form.poisonIds.forEach(e => {
  1971. lriskFactors.push(dddw(this.poisonList, 'id', e, 'displayName'))
  1972. });
  1973. let diseaseBase = {
  1974. patientRegisterId: this.form.id,
  1975. ocCheckTypeId: this.form.ocCheckTypeId,
  1976. jobType: this.form.jobType,
  1977. riskFactors: `${lriskFactors}`,
  1978. occupationalDiseaseNumber: this.form.occupationalDiseaseNumber
  1979. }
  1980. // 职业病接害因素
  1981. let poisons = this.dataTransOpts.tableM.patient_poison.filter(e => {
  1982. return this.form.poisonIds.indexOf(e.poisonId) > - 1
  1983. })
  1984. this.form.poisonIds.forEach(e => {
  1985. if (arrayExistObj(poisons, 'poisonId', e) == -1) {
  1986. poisons.push({
  1987. patientRegisterId: this.form.id,
  1988. poisonId: e,
  1989. occupationalAbnormalId: null
  1990. })
  1991. }
  1992. });
  1993. let patientOccupationalDisease = Object.assign({}, this.dataTransOpts.tableS.patient_occupational_disease || {}, diseaseBase)
  1994. let body = {
  1995. patientRegisterId: this.form.id,
  1996. patientOccupationalDisease,
  1997. patientPoisons: poisons,
  1998. isPatientOccupationalDiseaseUpdate: "Y", //基本信息
  1999. isPatientPoisonsUpdate: "Y", //接害因素
  2000. isPatientPastMedicalHistorysUpdate: "N", // 既往病史
  2001. isPatientOccupationalMedicalHistorysUpdate: "N", // 职业病史
  2002. isPatientOccupationalHistorysUpdate: "N", // 职业史
  2003. isPatientSymptomsUpdate: "N", // 症状
  2004. }
  2005. try {
  2006. await postapi('/api/app/OccupationalDisease/CreateOccupationalDiseaseWithDetail', body)
  2007. this.getOccDiseaseData()
  2008. } catch (error) {
  2009. console.log('occUpdate error', error)
  2010. }
  2011. },
  2012. // 获取职业病信息
  2013. getOccDiseaseData() {
  2014. return new Promise((resolve, reject) => {
  2015. let patientRegisterId = this.form.id
  2016. postapi('/api/app/OccupationalDisease/GetOccupationalDiseaseWithDetailByPatientRegisterId', { patientRegisterId })
  2017. .then(res => {
  2018. if (res.code > -1) {
  2019. if (res.data['patientOccupationalDisease'] == null) {
  2020. this.dataTransOpts.tableS.patient_occupational_disease = { patientRegisterId }
  2021. } else {
  2022. this.dataTransOpts.tableS.patient_occupational_disease = deepCopy(res.data['patientOccupationalDisease'])
  2023. }
  2024. this.dataTransOpts.tableM.patient_poison = deepCopy(res.data['patientPoisonDtos'])
  2025. this.form.ocCheckTypeId = this.dataTransOpts.tableS.patient_occupational_disease.ocCheckTypeId
  2026. this.form.jobType = this.dataTransOpts.tableS.patient_occupational_disease.jobType
  2027. this.form.occupationalDiseaseNumber = this.dataTransOpts.tableS.patient_occupational_disease.occupationalDiseaseNumber
  2028. let poisonIds = [] // 接害因素IDs
  2029. this.dataTransOpts.tableM.patient_poison.forEach(e => {
  2030. poisonIds.push(e.poisonId)
  2031. });
  2032. this.form.poisonIds = poisonIds
  2033. resolve('')
  2034. } else {
  2035. reject(res.message)
  2036. }
  2037. })
  2038. .catch(error => {
  2039. reject(error)
  2040. })
  2041. })
  2042. },
  2043. // 列表数据生成 分组 select
  2044. madeSelectGroup(poisonList) {
  2045. let poison = []
  2046. poisonList.forEach(e => {
  2047. let lfind = arrayExistObj(poison, "poisonTypeName", e.poisonTypeName)
  2048. if (lfind == -1) {
  2049. poison.push({ poisonTypeName: e.poisonTypeName, poisonDtos: [{ id: e.id, displayName: e.displayName, simpleCode: e.simpleCode }] })
  2050. } else {
  2051. poison[lfind]['poisonDtos'].push({ id: e.id, displayName: e.displayName, simpleCode: e.simpleCode })
  2052. }
  2053. });
  2054. return poison
  2055. },
  2056. filterMethodPoison(v) {
  2057. // console.log('this.poisonList',v,this.poisonList)
  2058. if (v) {
  2059. let lv = v.toUpperCase()
  2060. let poisonList = this.poisonList.filter(e => {
  2061. return e.poisonTypeName.indexOf(lv) > -1 || e.displayName.indexOf(lv) > -1 || e.simpleCode.indexOf(lv) > -1
  2062. })
  2063. this.poison = this.madeSelectGroup(poisonList)
  2064. } else {
  2065. this.poison = this.madeSelectGroup(this.poisonList)
  2066. }
  2067. console.log('filterMethod', this.poison)
  2068. },
  2069. // 人员新增
  2070. btnAdd() {
  2071. this.dataTransOpts.tableS.patient_register.id = ''
  2072. this.dataTransOpts.refresh.patient_register.S++
  2073. },
  2074. //将现有的数据,复制并展现,但未保存
  2075. rdCopy() {
  2076. if (!this.form.id) {
  2077. this.$message.info({ showClose: true, message: "该信息尚未保存,不可执行此操作!" });
  2078. return;
  2079. }
  2080. this.dataTransOpts.tableS.patient_register.id = ''
  2081. this.peoplePhoto = '/pic/Photo.jpg'
  2082. this.patientRegister.patientRegisterId = '';
  2083. this.form.id = '';
  2084. this.form.patientId = '00000000-0000-0000-0000-000000000000';
  2085. this.form.patientRegisterNo = '';
  2086. this.form.patientNo = '';
  2087. this.form.medicalTimes = 1;
  2088. this.form.patientName = '';
  2089. this.form.photo = '';
  2090. this.form.completeFlag = '1'; //
  2091. this.form.planuserid = '' //清除青藏公司的计划ID
  2092. // this.patientRegister.patientRegisterAbs.forEach(e => {
  2093. // e.id = '';
  2094. // e.patientRegisterId = '';
  2095. // e.isCharge = 'N';
  2096. // e.checkCompleteFlag = '0'
  2097. // e.isLock = 'N'
  2098. // });
  2099. // 触发明细项目复制
  2100. // setTimeout(() => {
  2101. // this.prAsbOpraOpts.copyNew++
  2102. // }, 10);
  2103. this.dataTransOpts.tableM.register_check_asbitem.forEach(e => {
  2104. delete e.id
  2105. e.patientRegisterId = ''
  2106. e.isCharge = 'N'
  2107. e.isLock = 'N'
  2108. e.checkCompleteFlag = '0'
  2109. });
  2110. // // console.log('this.patientRegister.patientRegisterAbs',this.patientRegister.patientRegisterAbs)
  2111. this.$message.warning({ showClose: true, message: "操作成功,请记得点保存" });
  2112. },
  2113. //删除
  2114. del() {
  2115. deletapi(
  2116. `/api/app/customer-org/${this.customerOrg.customerOrgRd.id}`
  2117. ).then((res) => {
  2118. // console.log("删除 操作成功");
  2119. this.setData({ key: "customerOrg.customerOrgRd", value: { id: "" } });
  2120. this.getCustomerOrgTree();
  2121. });
  2122. },
  2123. // 同步团检人员网上添加项目信息
  2124. btnDownOrg() {
  2125. postapi("/api/app/ThirdInterface/GetListByThirdInterfaceTypeAsync", { thirdInterfaceType: "07" })
  2126. .then(res => {
  2127. if (res.code > -1 && res.data && Array.isArray(res.data) && res.data.length > 0) {
  2128. this.thirdInterfaceId = res.data[0].id
  2129. return postapi('/api/app/AppointPatientRegister/GetByPatientRegisterId', { thirdInterfaceId: this.thirdInterfaceId, appointPatientRegisterId: '1', patientRegisterId: this.form.id })
  2130. }
  2131. })
  2132. .then(res => {
  2133. if (res && res.code > -1) {
  2134. this.form.appointPatientRegisterId = res.data.appointPatientRegisterId
  2135. return postapi('/api/app/AppointPatientRegister/GetAppointRegisterAsbitemListById', {
  2136. thirdInterFaceId: this.thirdInterfaceId,
  2137. appointPatientRegisterId: res.data.appointPatientRegisterId
  2138. })
  2139. }
  2140. })
  2141. .then(res => {
  2142. if (res && res.code > -1) {
  2143. res.data.forEach(e => {
  2144. e.discount = e.standardPrice == 0 ? 100 : Math.floor(e.chargePrice * 10000 / e.standardPrice) / 100
  2145. if (!e.isBelongGroupPackage) {
  2146. e.isBelongGroupPackage = e.isInMedicalPackage
  2147. }
  2148. // e.standTotal = e.amount * e.standardPrice
  2149. e.total = e.amount * e.chargePrice
  2150. });
  2151. this.dataTransOpts.tableM.register_check_asbitem = deepCopy(res.data)
  2152. this.$message.success({ showClose: true, message: '操作成功!' })
  2153. }
  2154. })
  2155. },
  2156. //拍照(已废弃)
  2157. // openCamera() {
  2158. // if (!this.form.id) {
  2159. // alert("请先保存人员信息");
  2160. // return;
  2161. // }
  2162. // this.patientRegister.cameraVisble = true;
  2163. // },
  2164. //拍照(调壳程序)
  2165. photoGrah() {
  2166. if (!this.form.id) {
  2167. alert("请先保存人员信息");
  2168. return;
  2169. }
  2170. if (!this.$peisAPI) {
  2171. this.$message.info({ showClose: true, message: "此功能,需要在壳客户端才可运行!" })
  2172. return
  2173. }
  2174. this.$peisAPI.photoGrah()
  2175. .then(res => {
  2176. // console.log('this.$peisAPI.photoGrah 原始返回结果', res)
  2177. let lres = JSON.parse(res)
  2178. if (lres.code > -1) {
  2179. let uploadPhoto = {
  2180. patientRegisterId: this.form.id,
  2181. photo: lres.data.Photo,
  2182. };
  2183. this.peoplePhoto = `data:image/${lres.data.PhotoFormat == 'jpg' ? 'jpeg' : lres.data.PhotoFormat};base64,${lres.data.Photo}`
  2184. // this.patientRegister.photo = `data:image/${lres.data.PhotoFormat == 'jpg' ? 'jpeg' : lres.data.PhotoFormat};base64,${lres.data.Photo}`
  2185. return postapi(`/api/app/patient-register/up-load-img`, uploadPhoto)
  2186. } else {
  2187. this.$message.error({ showClose: true, message: "上传照片错误" + lres.code })
  2188. }
  2189. }).then(res => {
  2190. if (res && res.code > -1) {
  2191. let body = {
  2192. patientRegisterId: this.form.id,
  2193. photo: res.data,
  2194. };
  2195. // console.log(body);
  2196. return postapi(`/api/app/patient-register/update-photo`, body);
  2197. }
  2198. }).then(res => {
  2199. if (res && res.code > -1) {
  2200. //// console.log('拍照',res.data)
  2201. this.patientRegister.patientRegisterRd.photo = res.data.photo
  2202. // console.log("操作成功");
  2203. }
  2204. }).catch(err => {
  2205. // console.log('this.$peisAPI.photoGrah', err)
  2206. this.$message.error({ showClose: true, message: `照片操作错误 ${err}` })
  2207. })
  2208. },
  2209. getPeoplePhoto(photo) {
  2210. this.peoplePhoto = photoParse(photo)
  2211. },
  2212. // 打印指引单(isPreview)
  2213. guidePrint(ReportCode, isPreview) {
  2214. return new Promise((resolve, reject) => {
  2215. if (!this.form.id) {
  2216. reject("人员信息尚未保存,不可执行此操作!")
  2217. }
  2218. if (this.form.completeFlag == '0') {
  2219. reject("预登记人员,不可执行此操作!")
  2220. }
  2221. if (!this.$peisAPI) {
  2222. reject("此功能,需要在壳客户端才可运行!")
  2223. }
  2224. let token = window.sessionStorage.getItem('token');
  2225. let user = window.sessionStorage.getItem('user');
  2226. let toOutShell = {
  2227. ReportCode, token,
  2228. isBuildImage: 'N',
  2229. IsUploadPdf: 'N',
  2230. preViewCanPrint: 'N',
  2231. BusinessCode: this.form.id,
  2232. Parameters: [
  2233. { Name: 'printer', Value: user },
  2234. { Name: 'hisLog', Value: 'pic/hisLog.jpg' },
  2235. { Name: 'pageFooter', Value: 'pic/peisQrCode.jpg' },
  2236. ],
  2237. };
  2238. console.log('this.$peisAPI.print', JSON.stringify(toOutShell))
  2239. this.printing = true
  2240. if (isPreview) {
  2241. this.$peisAPI.printPre(JSON.stringify(toOutShell))
  2242. .then(res => {
  2243. if (JSON.parse(res).code < 0) {
  2244. reject(JSON.parse(res).message)
  2245. } else {
  2246. resolve(res)
  2247. }
  2248. })
  2249. .catch(err => {
  2250. reject(err)
  2251. })
  2252. .finally(() => {
  2253. this.printing = false
  2254. })
  2255. } else {
  2256. this.$peisAPI.print(JSON.stringify(toOutShell))
  2257. .then(res => {
  2258. if (JSON.parse(res).code < 0) {
  2259. reject(JSON.parse(res).message)
  2260. } else {
  2261. return postapi('/api/app/patientregister/updatepatientregisterguideprinttimesmany', [this.form.id])
  2262. }
  2263. })
  2264. .then(res => {
  2265. if (res && res.code > -1) {
  2266. let lfind = arrayExistObj(this.patientRegister.prList, 'id', this.form.id)
  2267. if (lfind > -1) {
  2268. if (this.patientRegister.prList[lfind].guidePrintTimes) {
  2269. this.patientRegister.prList[lfind].guidePrintTimes = Number(this.patientRegister.prList[lfind].guidePrintTimes) + 1;
  2270. } else {
  2271. this.patientRegister.prList[lfind].guidePrintTimes = 1;
  2272. }
  2273. }
  2274. resolve(res)
  2275. } else {
  2276. reject("更新指引单打印错误")
  2277. }
  2278. })
  2279. .catch(err => {
  2280. reject(err)
  2281. })
  2282. .finally(() => {
  2283. this.printing = false
  2284. })
  2285. }
  2286. })
  2287. },
  2288. //检验申请
  2289. async lisRequest() {
  2290. this.$message.warning({ showClose: true, message: '此功能已合并到条码打印' });
  2291. /*
  2292. let isPrintLisRequest = false
  2293. let res = null
  2294. if (this.form.id.length < 1) {
  2295. this.$message.info({ showClose: true, message: "人员信息尚未保存,不可执行此操作!"});
  2296. return;
  2297. }
  2298. try {
  2299. res = await postapi(`/api/app/lisrequest/setlisrequest?PatientRegisterId=${this.form.id}`);
  2300. // console.log(`/api/app/lisrequest/setlisrequest?PatientRegisterId=${this.form.id}`, res)
  2301. } catch (error) {
  2302. return;
  2303. }
  2304. if (res.code > -1) {
  2305. // this.$message.info("发送检验申请成功!");
  2306. isPrintLisRequest = true;
  2307. }
  2308. //重复申请,重打
  2309. if (res.code == -1 && res.message.indexOf('已申请') > -1) {
  2310. isPrintLisRequest = true;
  2311. }
  2312. if (!isPrintLisRequest) return;
  2313. try {
  2314. await this.$confirm("是否打印检验申请单?", "提示", {
  2315. confirmButtonText: "是",
  2316. cancelButtonText: "否",
  2317. type: "info",
  2318. showClose: false,
  2319. closeOnClickModal: false,
  2320. closeOnPressEscape: false,
  2321. });
  2322. } catch (error) {
  2323. return;
  2324. }
  2325. //打印检验申请单
  2326. this.lisPrint('0003', false);
  2327. */
  2328. },
  2329. //条码打印(lis + pacs)
  2330. labelPrint(isPreview) {
  2331. return new Promise((resolve, reject) => {
  2332. if (!this.form.id) {
  2333. reject("人员信息尚未保存,不可执行此操作!");
  2334. }
  2335. if (this.form.completeFlag == '0') {
  2336. reject("预登记人员,不可执行此操作!");
  2337. }
  2338. if (!this.$peisAPI) {
  2339. reject("此功能,需要在壳客户端才可运行!");
  2340. }
  2341. let token = window.sessionStorage.getItem('token');
  2342. let user = window.sessionStorage.getItem('user');
  2343. let toOutShell = {
  2344. token, // ReportCode,
  2345. IsMoreLabel: 'Y',
  2346. isBuildImage: 'N',
  2347. IsUploadPdf: 'N',
  2348. BusinessCode: this.form.id,
  2349. Parameters: [
  2350. { Name: 'printer', Value: user },
  2351. { Name: 'hisLog', Value: 'pic/hisLog.jpg' },
  2352. { Name: 'pageFooter', Value: 'pic/peisQrCode.jpg' }
  2353. ],
  2354. };
  2355. this.printing = true
  2356. if (this.LocalConfig.patientRegister.printGuideLabel.indexOf('patient') > -1 && this.LocalConfig.patientRegister.printGuideLabel.indexOf('lis') > -1 && this.LocalConfig.patientRegister.printGuideLabel.indexOf('pacs') > -1) {
  2357. if (this.merge_lis_pacs_label == '1') {
  2358. this.guidePrintEasy('0008', isPreview, toOutShell)
  2359. .then(res => {
  2360. return this.lisPrint('0002', isPreview, toOutShell)
  2361. })
  2362. // .then(res => {
  2363. // return this.pacsPrint('0004', isPreview, toOutShell)
  2364. // })
  2365. .then(res => {
  2366. resolve(res)
  2367. })
  2368. .catch(err => {
  2369. reject(err)
  2370. })
  2371. .finally(() => {
  2372. this.printing = false
  2373. })
  2374. } else {
  2375. this.guidePrintEasy('0008', isPreview, toOutShell)
  2376. .then(res => {
  2377. return this.lisPrint('0002', isPreview, toOutShell)
  2378. })
  2379. .then(res => {
  2380. return this.pacsPrint('0004', isPreview, toOutShell)
  2381. })
  2382. .then(res => {
  2383. resolve(res)
  2384. })
  2385. .catch(err => {
  2386. reject(err)
  2387. })
  2388. .finally(() => {
  2389. this.printing = false
  2390. })
  2391. }
  2392. } else if (this.LocalConfig.patientRegister.printGuideLabel.indexOf('patient') > -1 && this.LocalConfig.patientRegister.printGuideLabel.indexOf('lis') > -1) {
  2393. this.guidePrintEasy('0008', isPreview, toOutShell)
  2394. .then(res => {
  2395. return this.lisPrint('0002', isPreview, toOutShell)
  2396. })
  2397. .then(res => {
  2398. resolve(res)
  2399. })
  2400. .catch(err => {
  2401. reject(err)
  2402. })
  2403. .finally(() => {
  2404. this.printing = false
  2405. })
  2406. } else if (this.LocalConfig.patientRegister.printGuideLabel.indexOf('patient') > -1 && this.LocalConfig.patientRegister.printGuideLabel.indexOf('pacs') > -1) {
  2407. this.guidePrintEasy('0008', isPreview, toOutShell)
  2408. .then(res => {
  2409. return this.pacsPrint('0004', isPreview, toOutShell)
  2410. })
  2411. .then(res => {
  2412. resolve(res)
  2413. })
  2414. .catch(err => {
  2415. reject(err)
  2416. })
  2417. .finally(() => {
  2418. this.printing = false
  2419. })
  2420. } else if (this.LocalConfig.patientRegister.printGuideLabel.indexOf('lis') > -1 && this.LocalConfig.patientRegister.printGuideLabel.indexOf('pacs') > -1) {
  2421. if (this.merge_lis_pacs_label == '1') {
  2422. this.lisPrint('0002', isPreview, toOutShell)
  2423. // .then(res => {
  2424. // return this.pacsPrint('0004', isPreview, toOutShell)
  2425. // })
  2426. .then(res => {
  2427. resolve(res)
  2428. })
  2429. .catch(err => {
  2430. reject(err)
  2431. })
  2432. .finally(() => {
  2433. this.printing = false
  2434. })
  2435. } else {
  2436. this.lisPrint('0002', isPreview, toOutShell)
  2437. .then(res => {
  2438. return this.pacsPrint('0004', isPreview, toOutShell)
  2439. })
  2440. .then(res => {
  2441. resolve(res)
  2442. })
  2443. .catch(err => {
  2444. reject(err)
  2445. })
  2446. .finally(() => {
  2447. this.printing = false
  2448. })
  2449. }
  2450. } else if (this.LocalConfig.patientRegister.printGuideLabel.indexOf('patient') > -1) {
  2451. this.guidePrintEasy('0008', isPreview, toOutShell)
  2452. .then(res => {
  2453. resolve(res)
  2454. })
  2455. .catch(err => {
  2456. reject(err)
  2457. })
  2458. .finally(() => {
  2459. this.printing = false
  2460. })
  2461. } else if (this.LocalConfig.patientRegister.printGuideLabel.indexOf('lis') > -1) {
  2462. this.lisPrint('0002', isPreview, toOutShell)
  2463. .then(res => {
  2464. resolve(res)
  2465. })
  2466. .catch(err => {
  2467. reject(err)
  2468. })
  2469. .finally(() => {
  2470. this.printing = false
  2471. })
  2472. } else if (this.LocalConfig.patientRegister.printGuideLabel.indexOf('pacs') > -1) {
  2473. this.pacsPrint('0004', isPreview, toOutShell)
  2474. .then(res => {
  2475. resolve(res)
  2476. })
  2477. .catch(err => {
  2478. reject(err)
  2479. })
  2480. .finally(() => {
  2481. this.printing = false
  2482. })
  2483. } else {
  2484. this.printing = false
  2485. resolve("success")
  2486. }
  2487. })
  2488. },
  2489. // lis条码打印
  2490. guidePrintEasy(ReportCode, isPreview, toOutShell) {
  2491. return new Promise((resolve, reject) => {
  2492. toOutShell.ReportCode = ReportCode
  2493. console.log('this.$peisAPI.print', JSON.stringify(toOutShell))
  2494. if (isPreview) {
  2495. this.$peisAPI.printPre(JSON.stringify(toOutShell))
  2496. .then(res => {
  2497. if (JSON.parse(res).code < 0) {
  2498. // this.$message.warning({ showClose: true, message: JSON.parse(lres).message });
  2499. reject(JSON.parse(res).message)
  2500. } else {
  2501. resolve(res)
  2502. }
  2503. })
  2504. .catch(err => {
  2505. reject(err)
  2506. })
  2507. } else {
  2508. this.$peisAPI.print(JSON.stringify(toOutShell))
  2509. .then(res => {
  2510. if (JSON.parse(res).code < 0) {
  2511. reject(JSON.parse(res).message)
  2512. } else {
  2513. return postapi('/api/app/patientregister/updatepatientregisterguideprinttimesmany', [this.form.id])
  2514. }
  2515. })
  2516. .then(res => {
  2517. if (res && res.code > -1) {
  2518. let lfind = arrayExistObj(this.patientRegister.prList, 'id', this.form.id)
  2519. if (lfind > -1) {
  2520. if (this.patientRegister.prList[lfind].guidePrintTimes) {
  2521. this.patientRegister.prList[lfind].guidePrintTimes = Number(this.patientRegister.prList[lfind].guidePrintTimes) + 1;
  2522. } else {
  2523. this.patientRegister.prList[lfind].guidePrintTimes = 1;
  2524. }
  2525. }
  2526. resolve(res)
  2527. } else {
  2528. reject(res.message)
  2529. }
  2530. })
  2531. .catch(err => {
  2532. reject(err)
  2533. })
  2534. }
  2535. })
  2536. },
  2537. // lis条码打印
  2538. lisPrint(ReportCode, isPreview, toOutShell) {
  2539. return new Promise((resolve, reject) => {
  2540. toOutShell.ReportCode = ReportCode
  2541. console.log('this.$peisAPI.print', JSON.stringify(toOutShell))
  2542. if (isPreview) {
  2543. this.$peisAPI.printPre(JSON.stringify(toOutShell))
  2544. .then(res => {
  2545. if (JSON.parse(res).code < 0) {
  2546. // this.$message.warning({ showClose: true, message: JSON.parse(lres).message });
  2547. reject(JSON.parse(res).message)
  2548. } else {
  2549. resolve(res)
  2550. }
  2551. })
  2552. .catch(err => {
  2553. reject(err)
  2554. })
  2555. } else {
  2556. this.$peisAPI.print(JSON.stringify(toOutShell))
  2557. .then(res => {
  2558. if (JSON.parse(res).code < 0) {
  2559. reject(JSON.parse(res).message)
  2560. } else {
  2561. return postapi('/api/app/lisrequest/updatelisrequestisprint', { operateType: 1, patientRegisterId: this.form.id })
  2562. }
  2563. })
  2564. .then(res => {
  2565. if (res && res.code < 0) {
  2566. reject(res.message)
  2567. } else {
  2568. resolve(res)
  2569. }
  2570. })
  2571. .catch(err => {
  2572. reject(err)
  2573. })
  2574. }
  2575. })
  2576. },
  2577. //pacs条码打印
  2578. pacsPrint(ReportCode, isPreview, toOutShell) {
  2579. return new Promise((resolve, reject) => {
  2580. toOutShell.ReportCode = ReportCode
  2581. console.log('this.$peisAPI.print', JSON.stringify(toOutShell))
  2582. if (isPreview) {
  2583. this.$peisAPI.printPre(JSON.stringify(toOutShell))
  2584. .then(res => {
  2585. if (JSON.parse(res).code < 0) {
  2586. // this.$message.warning({ showClose: true, message: JSON.parse(res).message });
  2587. reject(JSON.parse(res).message)
  2588. } else {
  2589. resolve(res)
  2590. }
  2591. })
  2592. .catch((err) => {
  2593. // console.log('打印pacs条码错误', err)
  2594. this.$message.warning({ showClose: true, message: `${err}` });
  2595. reject(err)
  2596. });
  2597. } else {
  2598. this.$peisAPI.print(JSON.stringify(toOutShell))
  2599. .then(res => {
  2600. if (JSON.parse(res).code < 0) {
  2601. // this.$message.warning({ showClose: true, message: JSON.parse(res).message });
  2602. reject(JSON.parse(res).message)
  2603. } else {
  2604. return postapi("/api/app/lisrequest/updatelisrequestisprint", {
  2605. operateType: 1,
  2606. patientRegisterId: this.form.id,
  2607. });
  2608. }
  2609. })
  2610. .then(res => {
  2611. if (res && res.code < 0) {
  2612. // this.$message.error({ showClose: true, message: `${res.message}` });
  2613. reject(res.message)
  2614. } else {
  2615. resolve(res)
  2616. }
  2617. })
  2618. .catch((err) => {
  2619. // console.log('打印pacs条码错误', err)
  2620. // this.$message.error({ showClose: true, message: `${err}` });
  2621. reject(err)
  2622. });
  2623. }
  2624. });
  2625. },
  2626. //补打条码
  2627. reLisRequest() {
  2628. if (!this.form.id) {
  2629. this.$message.info({ showClose: true, message: "人员信息尚未保存,不可执行此操作!" });
  2630. return;
  2631. }
  2632. if (this.form.completeFlag == '0') {
  2633. this.$message.info({ showClose: true, message: "预登记人员,不可执行此操作!" });
  2634. return;
  2635. }
  2636. this.brushTimes++;
  2637. this.patientRegister.lisRequestVisble = true;
  2638. },
  2639. //手动合并项目
  2640. reMergeAsbitem() {
  2641. if (this.form.id.length < 1) {
  2642. this.$message.info({ showClose: true, message: "人员信息尚未保存,不可执行此操作!" });
  2643. return;
  2644. }
  2645. this.brushTimes++;
  2646. this.patientRegister.mergeAsbitemVisble = true;
  2647. },
  2648. btnPayTypeFlag(payTypeFlag) {
  2649. this.dataTransOpts.tableM.register_check_asbitem.forEach(e => {
  2650. if (e.isCharge == 'N') e.payTypeFlag = payTypeFlag
  2651. });
  2652. },
  2653. // 刷新登记的检查项目
  2654. getAsb(id) {
  2655. return new Promise((resolve, reject) => {
  2656. getapi(`/api/app/registerasbitem/getlistinpatientregisterid?PatientRegisterId=${id}`)
  2657. .then(res => {
  2658. if (res.code > - 1) {
  2659. this.dataTransOpts.tableM.register_check_asbitem = res.data
  2660. resolve()
  2661. } else {
  2662. reject(res.message)
  2663. }
  2664. })
  2665. .catch(err => {
  2666. reject(err.message)
  2667. })
  2668. })
  2669. },
  2670. // 跳至收费页面
  2671. toCharge(form) {
  2672. if (!form.patientRegisterNo) {
  2673. this.$message.warning({ showClose: true, message: "请先保存人员信息!" })
  2674. return
  2675. }
  2676. if (form.completeFlag == '0') {
  2677. this.$message.warning({ showClose: true, message: "预登记的人员不可执行此操作!" })
  2678. return
  2679. }
  2680. this.getAsb(form.id)
  2681. .then(() => {
  2682. let chargeMoney = Number(0)
  2683. //支付方式,比如是0自费、2免费、1单位支付
  2684. this.dataTransOpts.tableM.register_check_asbitem.forEach(e => {
  2685. if (e.payTypeFlag == '0') chargeMoney += Number(e.total)
  2686. });
  2687. if (chargeMoney == 0) {
  2688. this.$message.warning({ showClose: true, message: '没有可收费或退费的记录!' })
  2689. } else {
  2690. //多次重复点击时,刷新处理
  2691. this.chargePatientRegisterNo = form.patientRegisterNo
  2692. //this.dataTransOpts.refresh.charge.S++
  2693. this.dialogWin.charge = true
  2694. this.dataTransOpts.refresh.charge.S++
  2695. }
  2696. })
  2697. .catch(err => {
  2698. this.$message.error(err.message)
  2699. })
  2700. },
  2701. // 收费申请
  2702. chargeRequest(form) {
  2703. if (!form.id) {
  2704. this.$message.warning({ showClose: true, message: "请先保存人员信息!" })
  2705. return
  2706. }
  2707. if (form.completeFlag == '0') {
  2708. this.$message.warning({ showClose: true, message: "预登记的人员不可执行此操作!" })
  2709. return
  2710. }
  2711. this.getAsb(form.id)
  2712. .then(() => {
  2713. let chargeMoney = Number(0)
  2714. //支付方式,比如是0自费、2免费、1单位支付
  2715. this.dataTransOpts.tableM.register_check_asbitem.forEach(e => {
  2716. if (e.payTypeFlag == '0') chargeMoney += Number(e.total)
  2717. });
  2718. if (chargeMoney == 0) {
  2719. this.$message.warning({ showClose: true, message: '没有可收费或退费的记录!' })
  2720. } else {
  2721. // 显示
  2722. this.dataTransOpts.refresh.charge.S++
  2723. this.dialogWin.AsbChargeRequest = true
  2724. }
  2725. })
  2726. .catch(err => {
  2727. this.$message.error(err.message)
  2728. })
  2729. },
  2730. // 保存立即发送收费申请
  2731. immediateToHisCharge(patientRegisterId) {
  2732. postapi('/api/app/registerasbitem/GetCanChargeAsbitemsByPatientRegisterId', { patientRegisterId })
  2733. .then(res => {
  2734. if (res.code > -1 && res.data.length > 0) {
  2735. let body = {
  2736. patientRegisterId,
  2737. registerCheckAsbitems: []
  2738. }
  2739. res.data.forEach(e => {
  2740. body.registerCheckAsbitems.push({ registerCheckAsbitemId: e.registerCheckAsbitemId })
  2741. });
  2742. // 向 His 或 其他第三方 推送收费申请
  2743. postapi("/api/app/ChargeRequest/Create", body)
  2744. .then(resCharge => {
  2745. if (resCharge.code > -1) {
  2746. this.dataTransOpts.refresh.patient_register.S++
  2747. }
  2748. })
  2749. }
  2750. })
  2751. .catch(error => {
  2752. this.$message.error({ showClose: true, message: error.message })
  2753. })
  2754. },
  2755. //关闭收费窗口时,刷新收费状态信息
  2756. closeDialogCharge() {
  2757. // this.prAsbOpraOpts.prAsbQuery++
  2758. this.dataTransOpts.refresh.patient_register.S++
  2759. // this.dataTransOpts.refresh.register_check_asbitem.D++
  2760. },
  2761. // 新增保存基本信息产生新的ID,等明细保存后,再更新表单form.id
  2762. refreshFormId() {
  2763. // console.log('refreshFormId', this.prAsbOpraOpts.formId)
  2764. this.form.id = this.prAsbOpraOpts.formId
  2765. this.prAsbOpraOpts.formId = '' //清空
  2766. /**/
  2767. // this.patientRegister.prList.push(res.data); //列表添加记录
  2768. this.patientRegister.patientRegisterId = this.form.id;
  2769. objCopy(this.form, this.patientRegister.patientRegisterRd);
  2770. //this.patientRegister.query.times++; 不在触发列表查询(换成局部刷新)放在窗口关闭事件中去
  2771. // let curRow = deepCopy(this.patientRegister.patientRegisterRd)
  2772. // curRow.index = this.patientRegister.prList.length
  2773. // this.patientRegister.prList.push(curRow)
  2774. },
  2775. // 显示职业病
  2776. btnOcc() {
  2777. if (!this.form.id) {
  2778. this.$message.warning({ showClose: true, message: '人员信息尚未保存!' })
  2779. return
  2780. }
  2781. this.dataTransOpts.plus.OccDisease++
  2782. this.dialogWin.OccDisease = true
  2783. },
  2784. // 获取接害因素 + 检查类别 的组合项目 后,刷新当前组合项目
  2785. changeOccPosionOrCheckType() {
  2786. this.getOccAsbitems().then(res => {
  2787. let lfind = 0
  2788. for (let i = this.dataTransOpts.tableM.register_check_asbitem.length - 1; i >= 0; i--) {
  2789. let e = this.dataTransOpts.tableM.register_check_asbitem[i];
  2790. if (e.isCharge == 'Y' || e.checkCompleteFlag != '0') {
  2791. continue
  2792. } else {
  2793. // 已登记的项目 在 this.occAsbitems 中,则不删除 (如果删除的话,条码会变)
  2794. lfind = arrayExistObj(this.occAsbitems, 'id', e.asbitemId)
  2795. if (lfind == -1) this.dataTransOpts.tableM.register_check_asbitem.splice(i, 1)
  2796. }
  2797. }
  2798. lfind = 0
  2799. let payTypeFlag = '1'; //职业病 默认单位支付
  2800. if (this.form.customerOrgId == this.dict.personOrgId) payTypeFlag = '0' //个人支付
  2801. this.occAsbitems.forEach(e => {
  2802. lfind = arrayExistObj(this.dataTransOpts.tableM.register_check_asbitem, 'asbitemId', e.id)
  2803. if (lfind == -1) {
  2804. this.dataTransOpts.tableM.register_check_asbitem.push({
  2805. asbitemId: e.id,
  2806. asbitemName: e.displayName,
  2807. patientRegisterId: this.form.id,
  2808. standardPrice: e.price,
  2809. chargePrice: e.ocCheckTypeDetailPrice,
  2810. payTypeFlag,
  2811. isCharge: "N",
  2812. checkCompleteFlag: '0',
  2813. discount: e.price == 0 ? 100 : Math.floor(10000 * e.ocCheckTypeDetailPrice / e.price) / 100,
  2814. amount: e.ocCheckTypeDetailAmount,
  2815. total: e.ocCheckTypeDetailAmount * e.ocCheckTypeDetailPrice,
  2816. standTotal: e.ocCheckTypeDetailAmount * e.price
  2817. })
  2818. }
  2819. });
  2820. })
  2821. },
  2822. // 获取接害因素 + 检查类别 的组合项目
  2823. getOccAsbitems() {
  2824. return new Promise((resolve, reject) => {
  2825. if (!this.form.ocCheckTypeId || this.form.poisonIds.length == 0) {
  2826. this.occAsbitems = []
  2827. resolve(this.occAsbitems)
  2828. } else {
  2829. let body = {
  2830. ocCheckTypeId: this.form.ocCheckTypeId,
  2831. poisonIds: this.form.poisonIds
  2832. }
  2833. postapi('/api/app/OcCheckTypeDetail/GetOcCheckTypeDetailByOcCheckTypeIdAndPoisonId', body).then(res => {
  2834. if (res.code > -1) {
  2835. this.occAsbitems = res.data
  2836. resolve(this.occAsbitems)
  2837. } else {
  2838. reject(res.message)
  2839. }
  2840. })
  2841. .catch(err => {
  2842. reject(err)
  2843. })
  2844. }
  2845. })
  2846. },
  2847. // 显示预约
  2848. btnWebBooking() {
  2849. this.dataTransOpts.tableS.appoint_patient_register = {}
  2850. this.dataTransOpts.tableM.appoint_register_asbitem = []
  2851. this.dataTransOpts.tableS.appoint_patient_register = {}
  2852. this.dataTransOpts.tableM.appoint_register_asbitem = []
  2853. this.dataTransOpts.plus.WebBooking++
  2854. this.dialogWin.WebBooking = true
  2855. },
  2856. // 显示预约
  2857. btnWebBookingMzak() {
  2858. this.dataTransOpts.tableS.appoint_patient_register = {}
  2859. this.dataTransOpts.tableM.appoint_register_asbitem = []
  2860. this.dataTransOpts.tableS.appoint_patient_register = {}
  2861. this.dataTransOpts.tableM.appoint_register_asbitem = []
  2862. this.dataTransOpts.plus.WebBookingMzak++
  2863. this.dialogWin.WebBookingMzak = true
  2864. },
  2865. // 关闭预约窗口
  2866. close_dialogWin_WebBooking() {
  2867. // console.log('this.dataTransOpts.tableS.appoint_patient_register',this.dataTransOpts.tableS.appoint_patient_register)
  2868. // console.log('this.dataTransOpts.tableM.appoint_register_asbitem',this.dataTransOpts.tableM.appoint_register_asbitem)
  2869. // 没有选中网上预约记录,直接返回,不做任何处理
  2870. let appoint_patient_register = this.dataTransOpts.tableS.appoint_patient_register
  2871. if (!appoint_patient_register.appointPatientRegisterId) return
  2872. // 新增 (个人预约只登记个人的)
  2873. this.dataTransOpts.tableS.patient_register.id = ''
  2874. this.preCustomerOrgId = this.dict.personOrgId
  2875. this.patientRegister.query.customerOrgId = this.dict.personOrgId
  2876. this.patientRegister.query.CustomerOrgParentId = this.dict.personOrgId
  2877. this.form.customerOrgId = [this.dict.personOrgId] //单位编号 默认个人
  2878. this.form.customerOrgParentId = this.dict.personOrgId
  2879. this.form.customerOrgRegisterId = "00000000-0000-0000-0000-000000000001" //默认单位体检次数
  2880. // "appointPatientRegisterId": "string",
  2881. // "personId": "string",
  2882. // "personName": "string",
  2883. // "idNo": "string",
  2884. // "sexId": "string",
  2885. // "sexName": "string",
  2886. // "maritalStatusId": "string",
  2887. // "maritalStatusName": "string",
  2888. // "customerOrgId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  2889. // "customerOrgName": "string",
  2890. // "childCustomerOrgName": "string",
  2891. // "customerOrgGroupId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  2892. // "customerOrgGroupName": "string",
  2893. // "medicalPackageId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  2894. // "medicalPackageName": "string",
  2895. // "completeFlag": "string",
  2896. // "appointDate": "2024-06-09T11:46:34.962Z",
  2897. // "remark": "string",
  2898. // "medicalCenterId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  2899. // "customerOrgRegisterId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  2900. // "pregnantFlag": "string",
  2901. // "pregnantFlagName": "string",
  2902. // "height": 0,
  2903. // "weight": 0
  2904. this.initFormData(this.dataTransOpts.tableS.patient_register.id)
  2905. .then(() => {
  2906. delete appoint_patient_register.medicalCenterId
  2907. Object.assign(this.form, appoint_patient_register,
  2908. {
  2909. patientName: appoint_patient_register.personName,
  2910. completeFlag: '1',
  2911. }
  2912. )
  2913. console.log('this.form', JSON.stringify(this.form))
  2914. // 明细必填项
  2915. // "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  2916. // "asbitemId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  2917. // "standardPrice": 0,
  2918. // "chargePrice": 0,
  2919. // "payTypeFlag": "string",
  2920. // "isCharge": "string",
  2921. // "amount": 0
  2922. // 预约明细数据
  2923. // "appointRegisterAsbitemId": "00000000-0000-0000-0000-000000000000",
  2924. // "asbitemId": "3a126b34-f6f0-56a1-e899-a092874acde7",
  2925. // "asbitemName": "腹部平片(立位)",
  2926. // "itemTypeId": "3a126ac6-2fbf-ca50-82a4-73dcc5a5028b",
  2927. // "itemTypeName": "放射科",
  2928. // "appointPatientRegisterId": "3a12ebf4-565a-dbc4-4f2d-d72cd3050cab",
  2929. // "standardPrice": 45.00,
  2930. // "chargePrice": 30.50,
  2931. // "payTypeFlag": "\u0000",
  2932. // "isCharge": "N",
  2933. // "amount": 1,
  2934. // "isInMedicalPackage": "N",
  2935. // "itemTypeDisplayOrder": 28,
  2936. // "displayOrder": 1
  2937. this.dataTransOpts.tableM.register_check_asbitem = deepCopy(this.dataTransOpts.tableM.appoint_register_asbitem)
  2938. this.changeIdNo() // 触发身份证查询档案号
  2939. })
  2940. },
  2941. // 关闭预约窗口--人寿 (团检、个人都可以)
  2942. close_dialogWin_WebBookingMzak() {
  2943. // console.log('this.dataTransOpts.tableS.appoint_patient_register',this.dataTransOpts.tableS.appoint_patient_register)
  2944. // console.log('this.dataTransOpts.tableM.appoint_register_asbitem',this.dataTransOpts.tableM.appoint_register_asbitem)
  2945. // 没有选中网上预约记录,直接返回,不做任何处理
  2946. let appoint_patient_register = this.dataTransOpts.tableS.appoint_patient_register
  2947. if (!appoint_patient_register.thirdBookingId) return
  2948. this.dataTransOpts.tableS.patient_register.id = ''
  2949. // this.preCustomerOrgId = this.dict.personOrgId
  2950. this.patientRegister.query.customerOrgId = appoint_patient_register.customerOrgId
  2951. this.patientRegister.query.CustomerOrgParentId = appoint_patient_register.customerOrgId
  2952. this.form.customerOrgId = [appoint_patient_register.customerOrgId] //单位编号 默认个人
  2953. let customerOrgParentId = ''
  2954. this.getParentCustomerOrgId(appoint_patient_register.customerOrgId)
  2955. .then(res => {
  2956. customerOrgParentId = res
  2957. this.form.customerOrgParentId = customerOrgParentId
  2958. return this.initFormData(this.dataTransOpts.tableS.patient_register.id)
  2959. })
  2960. .then(() => {
  2961. // this.form.customerOrgName = customerOrgParentId
  2962. // "appointPatientRegisterId": "string",
  2963. // "personId": "string",
  2964. // "personName": "string",
  2965. // "idNo": "string",
  2966. // "sexId": "string",
  2967. // "sexName": "string",
  2968. // "maritalStatusId": "string",
  2969. // "maritalStatusName": "string",
  2970. // "customerOrgId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  2971. // "customerOrgName": "string",
  2972. // "childCustomerOrgName": "string",
  2973. // "customerOrgGroupId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  2974. // "customerOrgGroupName": "string",
  2975. // "medicalPackageId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  2976. // "medicalPackageName": "string",
  2977. // "completeFlag": "string",
  2978. // "appointDate": "2024-06-09T11:46:34.962Z",
  2979. // "remark": "string",
  2980. // "medicalCenterId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  2981. // "customerOrgRegisterId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  2982. // "pregnantFlag": "string",
  2983. // "pregnantFlagName": "string",
  2984. // "height": 0,
  2985. // "weight": 0
  2986. delete appoint_patient_register.medicalCenterId
  2987. Object.assign(this.form, appoint_patient_register,
  2988. {
  2989. patientName: appoint_patient_register.personName,
  2990. completeFlag: '1',
  2991. }
  2992. )
  2993. // 人寿接口,甲方需求:岗位数据导入人员类别
  2994. // personnelTypeId --> positionName
  2995. // dict.personnelType" :key="item.id" :label="item.displayName"
  2996. let lfind = arrayExistObj(this.dict.personnelType, 'displayName', appoint_patient_register.positionName)
  2997. if (lfind > -1) this.form.personnelTypeId = this.dict.personnelType[lfind].id
  2998. console.log('this.form', JSON.stringify(this.form))
  2999. // 明细必填项
  3000. // "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  3001. // "asbitemId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  3002. // "standardPrice": 0,
  3003. // "chargePrice": 0,
  3004. // "payTypeFlag": "string",
  3005. // "isCharge": "string",
  3006. // "amount": 0
  3007. // 预约明细数据
  3008. // "appointRegisterAsbitemId": "00000000-0000-0000-0000-000000000000",
  3009. // "asbitemId": "3a126b34-f6f0-56a1-e899-a092874acde7",
  3010. // "asbitemName": "腹部平片(立位)",
  3011. // "itemTypeId": "3a126ac6-2fbf-ca50-82a4-73dcc5a5028b",
  3012. // "itemTypeName": "放射科",
  3013. // "appointPatientRegisterId": "3a12ebf4-565a-dbc4-4f2d-d72cd3050cab",
  3014. // "standardPrice": 45.00,
  3015. // "chargePrice": 30.50,
  3016. // "payTypeFlag": "\u0000",
  3017. // "isCharge": "N",
  3018. // "amount": 1,
  3019. // "isInMedicalPackage": "N",
  3020. // "itemTypeDisplayOrder": 28,
  3021. // "displayOrder": 1
  3022. this.dataTransOpts.tableM.register_check_asbitem = deepCopy(this.dataTransOpts.tableM.appoint_register_asbitem)
  3023. // 触发分组 项目
  3024. if (this.form.customerOrgGroupId) this.changeCustomerOrgGroupId()
  3025. this.changeIdNo() // 触发身份证查询档案号
  3026. })
  3027. },
  3028. btnLabel() {
  3029. if (!this.form.id) {
  3030. this.$message.warning({ showClose: true, message: '人员信息尚未保存!' })
  3031. return
  3032. }
  3033. this.dataTransOpts.refresh.lis_request.M++ //触发检验条码刷新
  3034. this.dataTransOpts.refresh.register_check.M++ //触发检查条码刷新
  3035. this.dialogWin.Label = true
  3036. },
  3037. // 复制分组时,设置当前顶级单位及体检次数
  3038. setCurParentOrgId() {
  3039. // 获取顶级单位
  3040. console.log('setCurParentOrgId_this.form.customerOrgId', this.form.customerOrgId)
  3041. this.getParentCustomerOrgId(this.form.customerOrgId)
  3042. .then(res => {
  3043. if (res) {
  3044. if (res != this.dict.personOrgId) {
  3045. this.customerOrgId = res
  3046. // 获取体检次数
  3047. getapi(`/api/app/customerorgregister/getlistincustomerorgid?CustomerOrgId=${res}`)
  3048. .then(res => {
  3049. if (res.code > -1) {
  3050. this.customerOrgRegisterList = res.data
  3051. if (res.data.length > 0) {
  3052. this.customerOrgRegister = res.data[res.data.length - 1]
  3053. this.getCustomerOrgGroupCopy(this.customerOrgRegister.id)
  3054. }
  3055. }
  3056. })
  3057. }
  3058. }
  3059. })
  3060. },
  3061. //复制分组
  3062. btnCopyGroup() {
  3063. console.log('this.customerOrgGroup', this.customerOrgGroup)
  3064. this.customerOrgRegisterList = [];
  3065. this.customerOrgRegister = {};
  3066. this.customerOrgGroups = [];
  3067. // 首次打开 复制分组 页面时,需获取顶级单位信息
  3068. if (this.customerOrgAll.length == 0) {
  3069. getapi("/api/app/customer-org/parent-all")
  3070. .then(res => {
  3071. if (res.code > -1) {
  3072. this.customerOrgAll = res.data
  3073. this.customerOrgDisp = res.data
  3074. this.groupVisble = true
  3075. // 复制分组时,设置当前顶级单位及体检次数
  3076. this.setCurParentOrgId()
  3077. }
  3078. })
  3079. } else {
  3080. // 复制分组时,设置当前顶级单位及体检次数
  3081. this.setCurParentOrgId()
  3082. this.groupVisble = true
  3083. }
  3084. },
  3085. //选中分组
  3086. async groupRowClick(row) {
  3087. this.curGroupId = row.id
  3088. this.groupAsbitems = []
  3089. try {
  3090. let res = await getapi(`/api/app/customerorggroupdetail/getcustomerorggroupdetailinasbitem?CustomerOrgGroupId=${row.id}`)
  3091. if (res.code != -1) this.groupAsbitems = res.data
  3092. } catch (error) {
  3093. console.log(error)
  3094. }
  3095. },
  3096. //双击选分组,并确认复制
  3097. async groupRowDblclick(row) {
  3098. await this.groupRowClick(row)
  3099. this.copyGroup()
  3100. },
  3101. //复制分组(确认选中分组)
  3102. copyGroup() {
  3103. if (!this.curGroupId) {
  3104. this.$message.warning({ showClose: true, message: "请先选择要复制的套餐!" })
  3105. return
  3106. }
  3107. console.log('this.packageAsbitems', this.groupAsbitems)
  3108. this.addAbs(deepCopy(this.groupAsbitems))
  3109. this.groupVisble = false
  3110. },
  3111. //复制套餐
  3112. btnCopyMedicalPackage() {
  3113. this.medicalPackageVisble = true
  3114. },
  3115. //选中套餐
  3116. packageRowClick(row) {
  3117. return new Promise((resolve, reject) => {
  3118. this.curPackageId = row.id
  3119. this.packageAsbitems = []
  3120. postapi('/api/app/medicalpackagedetail/getmedicalpackageinasbitem', { medicalPackageId: row.id })
  3121. .then(res => {
  3122. if (res.code > -1) {
  3123. this.packageAsbitems = res.data
  3124. resolve()
  3125. } else {
  3126. reject(res.message)
  3127. }
  3128. })
  3129. .catch(err => {
  3130. reject(err.message)
  3131. })
  3132. })
  3133. },
  3134. //双击选套餐,并确认复制
  3135. rowDblclick(row) {
  3136. this.packageRowClick(row)
  3137. .then(res => {
  3138. this.copyMedicalPackage()
  3139. })
  3140. },
  3141. //复制套餐(确认选中套餐)
  3142. copyMedicalPackage() {
  3143. if (!this.curPackageId) {
  3144. this.$message.warning({ showClose: true, message: "请先选择要复制的套餐!" })
  3145. return
  3146. }
  3147. console.log('this.packageAsbitems', this.packageAsbitems)
  3148. this.addAbs(deepCopy(this.packageAsbitems))
  3149. this.medicalPackageVisble = false
  3150. },
  3151. // 过滤体检单位
  3152. filterMethodOrg(keyWords) {
  3153. if (keyWords) {
  3154. this.customerOrgDisp = [];
  3155. this.customerOrgAll.forEach((item) => {
  3156. if (
  3157. item.displayName.toLowerCase().indexOf(keyWords.toLowerCase()) > -1 ||
  3158. item.simpleCode.toLowerCase().indexOf(keyWords.toLowerCase()) > -1
  3159. // || item.shortName.toLowerCase().indexOf(keyWords.toLowerCase()) > - 1
  3160. ) {
  3161. this.customerOrgDisp.push(item);
  3162. }
  3163. });
  3164. } else {
  3165. this.customerOrgDisp = deepCopy(this.customerOrgAll);
  3166. }
  3167. },
  3168. //选择单位
  3169. changeCustomerOrg(v) {
  3170. if (!v) {
  3171. this.customerOrgRegisterList = [];
  3172. this.customerOrgRegister = {};
  3173. this.customerOrgGroups = [];
  3174. } else {
  3175. getapi(
  3176. `/api/app/customerorgregister/getlistincustomerorgid?CustomerOrgId=${v}`
  3177. ).then((res) => {
  3178. if (res.code != -1) {
  3179. this.customerOrgRegisterList = res.data;
  3180. if (res.data.length > 0) {
  3181. this.customerOrgRegister = res.data[res.data.length - 1];
  3182. this.getCustomerOrgGroupCopy(this.customerOrgRegister.id);
  3183. }
  3184. }
  3185. });
  3186. }
  3187. },
  3188. //选择体检次数
  3189. changeTimes(v) {
  3190. this.getCustomerOrgGroup(v.id);
  3191. },
  3192. //获取体检次数下的分组
  3193. getCustomerOrgGroupCopy(customerOrgRegisterId) {
  3194. // this.isDrag = false;
  3195. // objCopy(this.formInit, this.form);
  3196. // this.form.customerOrgRegisterId = customerOrgRegisterId;
  3197. this.customerOrgGroups = [];
  3198. getapi(
  3199. `/api/app/customerorggroup/getlistinfilter?CustomerOrgRegisterId=${customerOrgRegisterId}`
  3200. ).then((res) => {
  3201. if (res.code != -1) {
  3202. this.customerOrgGroups = res.data;
  3203. this.customerOrgGroups.forEach((e) => {
  3204. e.customerOrgRegisterId = customerOrgRegisterId;
  3205. });
  3206. }
  3207. });
  3208. },
  3209. handleRowClassName({ row, rowIndex }) {
  3210. // highLightBg 为 'selected'的高亮
  3211. //console.log(rowIndex, row)
  3212. //return row.highLightBg == 'selected' ? 'high-light-bg' : '';
  3213. if (row.choosed) {
  3214. return 'current-row';
  3215. } else {
  3216. return '';
  3217. }
  3218. },
  3219. // 添加组合项目
  3220. ///api/app/register-asbitem/many/3fa85f64-5717-4562-b3fc-2c963f66afa6'
  3221. addAbs(asbItemChoosed) {
  3222. if (asbItemChoosed.length < 1) {
  3223. this.$message.warning({ showClose: true, message: "该套餐或分组下无可复制的组合项目" })
  3224. return
  3225. }
  3226. //性别、年龄判断
  3227. // "displayName": "身高体重",
  3228. // "shortName": "哈f哈",
  3229. // "forSexId": "F",
  3230. // "itemTypeId": "3a0b16de-75b9-c910-c61b-844709a88940",
  3231. // "price": 0,
  3232. console.log('asbItemChoosed.length', asbItemChoosed.length)
  3233. let unChecks = [] //不适配项目名称
  3234. for (let i = 0; i < asbItemChoosed.length; i++) {
  3235. if (this.form.sexId == 'U') break //未选性别时,无需判断组合项目性别限制
  3236. if (asbItemChoosed[i].forSexId == 'A') continue
  3237. if (asbItemChoosed[i].forSexId != this.form.sexId) {
  3238. unChecks.push(asbItemChoosed[i].displayName)
  3239. asbItemChoosed[i].unCheck = true
  3240. }
  3241. }
  3242. if (unChecks.length > 0) {
  3243. this.$message.warning({ showClose: true, message: `所选项目:${unChecks.toString()},不适合当前人员性别` })
  3244. if (asbItemChoosed.length == unChecks.length) return
  3245. }
  3246. let payTypeFlag = '0' // 0: 个人,1:单位,2:免费
  3247. if (this.form.customerOrgId != this.dict.personOrgId) payTypeFlag = '1'
  3248. asbItemChoosed.forEach(e => {
  3249. if (!e.unCheck) {
  3250. // 未在已选列表中,才选择添加
  3251. let lfind = arrayExistObj(this.dataTransOpts.tableM.register_check_asbitem, 'asbitemId', e.id)
  3252. if (lfind < 0) {
  3253. let pojo = {
  3254. asbitemId: e.id,
  3255. asbitemName: e.displayName,
  3256. patientRegisterId: this.form.id,
  3257. standardPrice: e.price,
  3258. chargePrice: e.price,
  3259. payTypeFlag,
  3260. isCharge: "N",
  3261. checkCompleteFlag: '0',
  3262. discount: 100,
  3263. amount: 1,
  3264. total: e.price,
  3265. }
  3266. this.dataTransOpts.tableM.register_check_asbitem.push(pojo)
  3267. }
  3268. }
  3269. });
  3270. // 刷新左侧待选组合项目
  3271. this.changeItemType(deepCopy(this.dataTransOpts.copyGroup.itemTypeIds))
  3272. },
  3273. //项目类别过滤 组合项目,未过滤已选择的组合项目
  3274. changeItemType(data) {
  3275. //console.log('getAsbItemByItemType', typeof this.itemTypeIds, this.itemTypeIds)
  3276. this.dataTransOpts.copyGroup.itemTypeIds = data
  3277. let asbItemAll = deepCopy(this.dataTransOpts.copyGroup.asbItemAll)
  3278. let lv = "";
  3279. if (typeof this.dataTransOpts.copyGroup.itemTypeIds == "object") {
  3280. if (this.dataTransOpts.copyGroup.itemTypeIds.length > 0) lv = this.dataTransOpts.copyGroup.itemTypeIds[this.dataTransOpts.copyGroup.itemTypeIds.length - 1];
  3281. }
  3282. if (lv) {
  3283. this.dataTransOpts.copyGroup.asbItem = arrayFilter(asbItemAll, "itemTypeId", lv);
  3284. } else {
  3285. this.dataTransOpts.copyGroup.asbItem = deepCopy(asbItemAll);
  3286. }
  3287. arrayReduce(this.dataTransOpts.copyGroup.asbItem, this.dataTransOpts.tableM.register_check_asbitem, "id=asbitemId");
  3288. //console.log('this.dataTransOpts.copyGroup.asbItem',this.dataTransOpts.copyGroup.asbItem,this.dataTransOpts.tableM.register_check_asbitem)
  3289. },
  3290. //回车替代tab键
  3291. enterToTab() {
  3292. this.$nextTick(() => {
  3293. let inputs = document.querySelectorAll("form input"); //用数组可以读取多个标签的元素 //.inline-input
  3294. //// console.log('inputs',inputs);
  3295. // 为每个输入框添加键盘事件监听器
  3296. inputs.forEach((input, i) => {
  3297. input.addEventListener('keydown', (event) => {
  3298. // 如果按下的是回车键
  3299. // // console.log('data-ismultiline',input.getAttribute('data-ismultiline'));
  3300. if (event.keyCode === 13) {
  3301. // 阻止回车键的默认行为(换行)
  3302. event.preventDefault();
  3303. // 如果是身份证,则计算出生与年龄
  3304. let placeholder = input.getAttribute('placeholder')
  3305. if (placeholder == '身份证号') this.changeIdNo()
  3306. // 跳至下一个输入框
  3307. for (let j = i + 1; j < inputs.length; j++) {
  3308. if (inputs[j].getAttribute('disabled') != "disabled") {
  3309. inputs[j].focus();
  3310. break;
  3311. }
  3312. }
  3313. }
  3314. });
  3315. });
  3316. });
  3317. },
  3318. },
  3319. //监听事件
  3320. watch: {
  3321. //人员ID未切换换时 也可以强制刷新数据
  3322. "dataTransOpts.refresh.patient_register.S": {
  3323. // immediate: true,
  3324. handler(newVal, oldVal) {
  3325. // console.log(`watch 人员登记 newVal:${newVal} oldVal:${oldVal} registerCheckId: ${this.dataTransOpts.tableS.patient_register.id}`);
  3326. if (newVal != oldVal) this.initFormData(this.dataTransOpts.tableS.patient_register.id)
  3327. }
  3328. },
  3329. //拍照触发
  3330. // "form.photo"(newVal, oldVal) {
  3331. // //// console.log('patientRegister.patientRegisterRd.id newVal:',newVal,' oldVal:',oldVal)
  3332. // if (newVal != oldVal) {
  3333. // this.getPeoplePhoto(newVal)
  3334. // }
  3335. // },
  3336. //修改单位触发
  3337. // "form.customerOrgId": {
  3338. // // immediate:true,
  3339. // // // deep:true,
  3340. // handler(newVal, oldVal) {
  3341. // //// console.log('patientRegister.patientRegisterRd.id newVal:',newVal,' oldVal:',oldVal)
  3342. // if (newVal != oldVal) {
  3343. // this.changeCustomerOrgId(newVal)
  3344. // }
  3345. // }
  3346. // },
  3347. // 从体检人员登记列表 点登记,触发
  3348. // 清空查询条件
  3349. "dataTransOpts.plus.clearPatientRegisterQuery": {
  3350. // immediate: true,
  3351. handler(newVal, oldVal) {
  3352. // console.log('从体检人员登记列表 点登记,触发', newVal, oldVal)
  3353. if (newVal != oldVal) {
  3354. this.preCustomerOrgId = this.patientRegister.query.customerOrgId
  3355. // console.log('this.preCustomerOrgId', this.preCustomerOrgId)
  3356. }
  3357. }
  3358. },
  3359. },
  3360. };
  3361. </script>
  3362. <style scoped>
  3363. ::v-deep .el-icon-search:before {
  3364. color: #00F;
  3365. }
  3366. ::v-deep .el-select-group__title {
  3367. font-size: 15px;
  3368. background-color: #EEEEEE;
  3369. color: black;
  3370. font-weight: 700;
  3371. }
  3372. .btn {
  3373. margin-top: 5px;
  3374. }
  3375. .commonbutton {
  3376. width: 100px;
  3377. }
  3378. .query {
  3379. margin-left: 10px;
  3380. }
  3381. .querySpan {
  3382. margin-right: 2px;
  3383. }
  3384. </style>