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.

1179 lines
43 KiB

2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
  1. <template>
  2. <div style="display: flex">
  3. <div :style="'margin-left:5px;width:' + (window.pageWidth - 200 - 120 - 85) + 'px;'" @contextmenu.prevent="onContextmenu">
  4. <el-table :data="patientRegister.prList" border :height="window.pageHeight < 600 ? 172:Math.floor((window.pageHeight - 342)*2/3)" highlight-current-row
  5. @row-click="rowick" size="small" @selection-change="handleSelectionChange" @cell-contextmenu="onCellRightClick">
  6. <el-table-column type="selection" width="40">
  7. </el-table-column>
  8. <el-table-column prop="completeFlag" label="体检进度">
  9. <template slot-scope="scope">
  10. <div>{{ ldddw(dict.completeFlag, "id", scope.row.completeFlag, "displayName") }}</div>
  11. </template>
  12. </el-table-column>
  13. <el-table-column prop="guidePrintTimes" label="打印" width="50">
  14. <template slot-scope="scope">
  15. <i class="el-icon-printer" v-if="scope.row.guidePrintTimes > 0" style="font-size: 24px;color: green;"></i>
  16. </template>
  17. </el-table-column>
  18. <el-table-column prop="isLock" label="锁住">
  19. <template slot-scope="scope">
  20. <div>{{ scope.row.isLock == "Y" ? "是" : "否" }}</div>
  21. </template>
  22. </el-table-column>
  23. <el-table-column prop="customerOrgParentName" label="单位" width="180">
  24. <template slot-scope="scope">
  25. <div>{{ scope.row.customerOrgParentName ? scope.row.customerOrgParentName : scope.row.customerOrgName }}</div>
  26. </template>
  27. </el-table-column>
  28. <el-table-column prop="customerOrgName" label="部门" width="180">
  29. <template slot-scope="scope">
  30. <div>{{ scope.row.customerOrgParentName ? scope.row.customerOrgName : "" }}</div>
  31. </template>
  32. </el-table-column>
  33. <el-table-column prop="patientName" label="姓名" />
  34. <el-table-column prop="sexId" label="性别">
  35. <template slot-scope="scope">
  36. <div>{{ ldddw(dict.sex, "id", scope.row.sexId, "displayName") }}</div>
  37. </template>
  38. </el-table-column>
  39. <el-table-column prop="age" label="年龄" />
  40. <el-table-column prop="patientRegisterNo" label="条码号" width="150" />
  41. <el-table-column prop="patientNo" label="档案号" />
  42. <el-table-column prop="medicalTimes" label="体检次数"></el-table-column>
  43. <el-table-column label="分组/套餐" width="150">
  44. <template slot-scope="scope">
  45. <div v-if="scope.row.medicalPackageId !== dict.personOrgId && scope.row.customerOrgId === dict.personOrgId">
  46. {{ ldddw(dict.medicalPackage, "id", scope.row.medicalPackageId, "displayName") }}
  47. </div>
  48. <div v-if="scope.row.medicalPackageId !== dict.personOrgId && scope.row.customerOrgId !== dict.personOrgId">
  49. {{ ldddw(dict.customerOrgGroupAll, "id", scope.row.customerOrgGroupId, "displayName") }}
  50. </div>
  51. </template>
  52. </el-table-column>
  53. <el-table-column prop="nationId" label="民族">
  54. <template slot-scope="scope">
  55. <div>
  56. {{ ldddw(dict.nation, "nationId", scope.row.nationId, "displayName") }}
  57. </div>
  58. </template>
  59. </el-table-column>
  60. <el-table-column prop="idNo" label="身份证" width="150" />
  61. <el-table-column prop="birthDate" label="出生日期" width="100">
  62. <template slot-scope="scope">
  63. <div v-if="scope.row.birthDate">
  64. {{ lmoment(scope.row.birthDate, "yyyy-MM-DD") }}
  65. </div>
  66. </template>
  67. </el-table-column>
  68. <el-table-column prop="email" label="邮箱" width="180" />
  69. <el-table-column prop="mobileTelephone" label="手机" width="100" />
  70. <el-table-column prop="telephone" label="电话" width="100" />
  71. <el-table-column prop="address" label="地址" width="300" />
  72. <el-table-column prop="medicalCardNo" label="体检卡号" />
  73. <el-table-column prop="jobCardNo" label="工卡号" />
  74. <el-table-column prop="maritalStatusId" label="婚姻状况">
  75. <template slot-scope="scope">
  76. <div>
  77. {{ ldddw(dict.maritalStatus, "id", scope.row.maritalStatusId, "displayName") }}
  78. </div>
  79. </template>
  80. </el-table-column>
  81. <el-table-column prop="medicalTypeId" label="体检类别">
  82. <template slot-scope="scope">
  83. <div v-if="scope.row.medicalTypeId !== dict.personOrgId">
  84. {{ ldddw(dict.medicalType, "id", scope.row.medicalTypeId, "displayName") }}
  85. </div>
  86. </template>
  87. </el-table-column>
  88. <el-table-column prop="personnelTypeId" label="人员类别">
  89. <template slot-scope="scope">
  90. <div v-if="scope.row.personnelTypeId !== dict.personOrgId">
  91. {{ ldddw(dict.personnelType, "id", scope.row.personnelTypeId, "displayName") }}
  92. </div>
  93. </template>
  94. </el-table-column>
  95. <el-table-column prop="jobPost" label="职务" />
  96. <el-table-column prop="jobTitle" label="职称" />
  97. <el-table-column prop="salesman" label="介绍人" />
  98. <el-table-column prop="isVip" label="是否VIP">
  99. <template slot-scope="scope">
  100. <div>{{ scope.row.isVip == "Y" ? "是" : "否" }}</div>
  101. </template>
  102. </el-table-column>
  103. <el-table-column prop="creatorName" label="登记人" />
  104. <el-table-column prop="creationTime" label="登记日期" width="100">
  105. <template slot-scope="scope">
  106. <div>{{ lmoment(scope.row.creationTime, "yyyy-MM-DD") }}</div>
  107. </template>
  108. </el-table-column>
  109. <el-table-column prop="isUpload" label="是否上传">
  110. <template slot-scope="scope">
  111. <div>{{ scope.row.isUpload == "Y" ? "是" : "否" }}</div>
  112. </template>
  113. </el-table-column>
  114. <!--
  115. "sexHormoneTermId": "00000000-0000-0000-0000-000000000000",
  116. "interposeMeasure": null,
  117. "medicalConclusionId": "00000000-0000-0000-0000-000000000000",
  118. "reportPrintTimes": 0,
  119. "isMedicalStart": "N",
  120. "medicalStartDate": "6/28/2023",
  121. "isRecoverGuide": "N",
  122. "summaryDate": "",
  123. "summaryDoctor": null,
  124. "isAudit": "N",
  125. "auditDoctor": null,
  126. "auditDate": "",
  127. "isNameHide": "N",
  128. "isPhoneFollow": "N",
  129. "thirdInfo": null,
  130. "guidePrintTimes": null,
  131. "remark": null,
  132. "organizationUnitId": "00000000-0000-0000-0000-000000000000",
  133. "customerOrgRegisterId": "00000000-0000-0000-0000-000000000000",
  134. "lastModifierName": "",
  135. "lastModificationTime": null,
  136. "lastModifierId": null,
  137. "creatorId": null,
  138. "id": "3a0c196d-a6d0-37fe-5c32-4806bdc4530f"
  139. -->
  140. </el-table>
  141. <!-- 给合项目 基本信息 -->
  142. <el-tabs v-model="tabChoosed">
  143. <!-- 给合项目 -->
  144. <el-tab-pane label="已选组合项目" name="1">
  145. <PatientRegisterAsbItem />
  146. </el-tab-pane>
  147. </el-tabs>
  148. </div>
  149. <div style="margin-left: 10px;width:110px;">
  150. <div class="listBtn">
  151. <el-button type="" class="btnClass commonbutton" @click="add">人员登记</el-button>
  152. </div>
  153. <div class="listBtn">
  154. <el-button type="" class="btnClass commonbutton" @click="edit">编辑</el-button>
  155. </div>
  156. <div class="listBtn">
  157. <el-button type="" class="btnClass commonbutton" @click="del">删除</el-button>
  158. </div>
  159. <div class="listBtn">
  160. <el-button type="" class="btnClass commonbutton" @click="openCamera" icon="el-icon-camera">拍照</el-button>
  161. </div>
  162. <div class="listBtn">
  163. <el-button type="" class="btnClass commonbutton">健康档案</el-button>
  164. </div>
  165. <div class="listBtn">
  166. <el-button type="" class="btnClass commonbutton" @click="btnGroupBatch">调整分组</el-button>
  167. </div>
  168. <div class="listBtn">
  169. <el-button type="" class="btnClass commonbutton" @click="asbBatch">调整项目</el-button>
  170. </div>
  171. <div class="listBtn">
  172. <el-button type="" class="btnClass commonbutton" @click="guidePrint('0001', false)">指引单打印</el-button>
  173. </div>
  174. <div class="listBtn">
  175. <el-button type="" class="btnClass commonbutton" @click="guidePrint('0001', true)" >指引单预览</el-button>
  176. </div>
  177. </div>
  178. <!-- 体检人员登记 -->
  179. <el-dialog :title="patientRegister.patientRegisterId ? '体检人员--编辑' : '体检人员--新增'" :visible.sync="dialogVisible"
  180. :close-on-click-modal="false" fullscreen>
  181. <PatientRegisterEdit :formInitData="formInitData" :editTimes="editTimes" />
  182. </el-dialog>
  183. <!-- 拍照 -->
  184. <el-dialog title="拍照" :visible.sync="patientRegister.cameraVisble" width="400" height="800" :show-close="false"
  185. :append-to-body="true" :close-on-click-modal="false">
  186. <Camera :id="patientRegister.patientRegisterId" />
  187. </el-dialog>
  188. <!-- 指引单 -->
  189. <el-dialog title="指引单" :visible.sync="dialogGuide" width="400" height="800" :append-to-body="true"
  190. :close-on-click-modal="false">
  191. <div>{{ guideMsg }}</div>
  192. </el-dialog>
  193. <!-- 批量调整分组 -->
  194. <el-dialog title="批量调整分组" :visible.sync="dialogGroup" width="600px" height="800" :append-to-body="true"
  195. :close-on-click-modal="false">
  196. <div>
  197. <div>
  198. 批量调整分组只针对单位体检有效个人体检将忽略此操作不能调整已收费或已检的项目及已总检的体检人员
  199. </div>
  200. <div>
  201. <br /><span>分组</span>
  202. <el-select v-model="groupBatch.customerOrgGroupId" placeholder="请选择" filterable size="small">
  203. <el-option v-for="item in patientRegister.customerOrgGroup" :key="item.id" :label="item.displayName"
  204. :value="item.id" />
  205. </el-select>
  206. </div>
  207. <div>
  208. <br /><el-radio v-model="groupBatch.payTypeFlag" label="0">个人支付</el-radio>
  209. <br /><el-radio v-model="groupBatch.payTypeFlag" label="1">单位支付</el-radio>
  210. <br /><el-radio v-model="groupBatch.payTypeFlag" label="2">免费</el-radio>
  211. </div>
  212. <div>
  213. <br /><el-checkbox v-model="groupBatch.isReserveAddAsbitem">保留加做项目包括不属于原分组的没有设置分组的</el-checkbox>
  214. </div>
  215. </div>
  216. <span slot="footer" class="dialog-footer">
  217. <el-button type="primary" @click="groupBatchHandle"> </el-button>
  218. <el-button @click="dialogGroup = false"> </el-button>
  219. </span>
  220. </el-dialog>
  221. <!-- 批量调整分组 -->
  222. <el-dialog title="批量调整项目" :visible.sync="dialogAsbitem" width="600px" height="800" :append-to-body="true"
  223. :close-on-click-modal="false">
  224. <div>
  225. <div>
  226. 批量调整分组只针对单位体检有效个人体检将忽略此操作不能调整已收费或已检的项目及已总检的体检人员
  227. </div>
  228. <div>
  229. <br /><el-radio v-model="asbitemBatch.operate" label="add">增加项目</el-radio>
  230. <el-radio v-model="asbitemBatch.operate" label="del">删除项目</el-radio>
  231. </div>
  232. <div>
  233. <br /><el-checkbox v-model="asbitemBatch.isDeleteGroup"
  234. :disabled="asbitemBatch.operate == 'add' ? true : false">如果删除项目属于分组则删除体检记录信息的分组设置</el-checkbox>
  235. </div>
  236. <div>
  237. <br /><span>直接录入</span>
  238. <el-select v-model="asbitemBatch.asbItemId" placeholder="快速选择组合项目" size="small" filterable clearable remote
  239. :remote-method="remoteMethod" @change="quickChoosedAsb" default-first-option
  240. style="width:150px;text-align: left;padding-right: 15px;">
  241. <el-option v-for="item in quickAsb" :key="item.id" :value="item.id" :label="item.displayName" />
  242. </el-select>
  243. </div>
  244. <div style="display: flex;margin-top: 2px;">
  245. <div style="width:480px;">
  246. <el-table :data="asbitemBatch.asbitemsTemp" height="240" width="100%" show-summary @row-dblclick="removeAbs"
  247. size="small" @row-click="rowClickaAbitemCurr" border>
  248. <el-table-column label="组合项目" width="150" prop="asbitemName" />
  249. <el-table-column label="数量" prop="amount" width="60">
  250. <template slot-scope="scope">
  251. <el-input type="number" v-model="scope.row.amount" size="small"
  252. :disabled="asbitemBatch.operate == 'del' ? true : false" />
  253. </template>
  254. </el-table-column>
  255. <el-table-column label="实收价格" prop="chargePrice" width="90">
  256. <template slot-scope="scope">
  257. <el-input type="number" v-model="scope.row.chargePrice" size="small"
  258. :disabled="asbitemBatch.operate == 'del' ? true : false" />
  259. </template>
  260. </el-table-column>
  261. <el-table-column label="支付方式" prop="payTypeFlag" width="120">
  262. <template slot-scope="scope">
  263. <el-select v-model="scope.row.payTypeFlag" size="small"
  264. :disabled="asbitemBatch.operate == 'del' ? true : false">
  265. <el-option v-for="item in dict.payType" :key="item.id" :label="item.displayName" :value="item.id" />
  266. </el-select>
  267. </template>
  268. </el-table-column>
  269. </el-table>
  270. </div>
  271. <div style="display: block; width: 110px; margin-left: 10px;">
  272. <div style="margin-top: 5px;">
  273. <el-button type="danger" @click="asbitemDel(1)" style="width: 100px;">删除</el-button>
  274. </div>
  275. <div style="margin-top: 5px;">
  276. <el-button type="danger" @click="asbitemDel(0)" style="width: 100px;">删除全部</el-button>
  277. </div>
  278. <div style="margin-top: 5px;">
  279. <el-button type="primary" @click="changePayTypeFlag('0')" style="width: 100px;">全个人支付</el-button>
  280. </div>
  281. <div style="margin-top: 5px;">
  282. <el-button type="primary" @click="changePayTypeFlag('1')" style="width: 100px;">全单位支付</el-button>
  283. </div>
  284. <div style="margin-top: 5px;">
  285. <el-button type="primary" @click="changePayTypeFlag('2')" style="width: 100px;">全赠送</el-button>
  286. </div>
  287. </div>
  288. </div>
  289. </div>
  290. <span slot="footer" class="dialog-footer">
  291. <el-button type="primary" @click="asbitemBatchHandle"> </el-button>
  292. <el-button @click="dialogAsbitem = false"> </el-button>
  293. </span>
  294. </el-dialog>
  295. </div>
  296. </template>
  297. <script>
  298. import moment from "moment";
  299. import { mapState, mapActions } from "vuex";
  300. import { getapi, postapi, putapi, deletapi } from "@/api/api";
  301. import { dddw, objCopy, arrayReduce, arrayExistObj,deepCopy } from "@/utlis/proFunc";
  302. import PatientRegisterEdit from "../../components/patientRegister/PatientRegisterEdit.vue";
  303. import Camera from "../../components/patientRegister/Camera.vue";
  304. import PatientRegisterAsbItem from "../../components/patientRegister/patientRegisterAsbItem.vue";
  305. export default {
  306. components: {
  307. PatientRegisterEdit,
  308. Camera,
  309. PatientRegisterAsbItem,
  310. },
  311. data() {
  312. return {
  313. multipleSelection: [], //选中的数据列表
  314. dialogVisible: false,
  315. dialogCamera: false,
  316. dialogGuide: false,
  317. guideMsg: 'guideMsg',
  318. tabChoosed: "1",
  319. formInitData: {}, //体检登记初始表单数据
  320. editTimes: 0,
  321. rClickRow: null, //右击的行
  322. rClickColumn: null, //右击的列(预留)
  323. dialogGroup: false,
  324. groupBatch: {
  325. patientRegisterId: null,
  326. customerOrgGroupId: null,
  327. payTypeFlag: "1", //0:个人付费,1:单位付费 2:免费
  328. isReserveAddAsbitem: true, //是否保留加做项目
  329. },
  330. dialogAsbitem: false,
  331. asbitemBatch: {
  332. operate: 'add',
  333. isDeleteGroup: false,
  334. asbItemId: '',
  335. asbitemsTemp: [], //删除或增加项目临时用
  336. asbitemCurr: {}, //当前选中要删除的项目(批量调整)
  337. },
  338. quickAsb: [], //可供快速选择的组合项目
  339. };
  340. },
  341. created() { },
  342. //挂载完成
  343. mounted() {
  344. this.quickAsb = this.dict.asbItemAll;
  345. },
  346. computed: {
  347. ...mapState(["window", "dict", "patientRegister", "customerOrg"]),
  348. },
  349. methods: {
  350. ...mapActions(["getCustomerOrgGroup", "getPatientRegisterAbs"]),
  351. // 打印指引单(isPreview)
  352. async guidePrint(ReportCode, isPreview) {
  353. let token = localStorage.getItem('token');
  354. let user = localStorage.getItem('user');
  355. let toOutShell = {
  356. ReportCode, token,
  357. preViewCanPrint: 'N',
  358. Parameters: [
  359. { Name: 'printer', Value: user },
  360. { Name: 'hisLog', Value: 'pic/hisLog.jpg' },
  361. ],
  362. };
  363. let lfind = -1;
  364. if (this.multipleSelection.length < 1) {
  365. this.$message.info("请勾选要打印指引单的人员记录!");
  366. return;
  367. }
  368. if (isPreview) {
  369. //
  370. //this.multipleSelection.forEach((item,index) =>{
  371. postapi(`/api/app/printreport/getpatientregisterguidereport?PatientRegisterId=${this.multipleSelection[0].id}`)
  372. .then((res) => {
  373. if (res.code != -1) {
  374. toOutShell.ReportTable = res.data;
  375. console.log('JSON.stringify(toOutShell)', JSON.stringify(toOutShell));
  376. return this.$peisAPI.printPre(JSON.stringify(toOutShell));
  377. }
  378. })
  379. .catch(err => {
  380. this.$message.warning(err);
  381. });
  382. // });
  383. } else {
  384. this.multipleSelection.forEach((item, index) => {
  385. postapi(`/api/app/printreport/getpatientregisterguidereport?PatientRegisterId=${item.id}`)
  386. .then((res) => {
  387. if (res.code != -1) {
  388. toOutShell.ReportTable = res.data;
  389. console.log('JSON.stringify(toOutShell)', JSON.stringify(toOutShell));
  390. return this.$peisAPI.print(JSON.stringify(toOutShell));
  391. }
  392. })
  393. .then(res => {
  394. if (res.toLowerCase() == 'success') {
  395. //更新打印次数
  396. return postapi('api/app/patientregister/updatepatientregisterguideprinttimesmany', [item.id])
  397. }
  398. })
  399. .then(res => {
  400. if (res.code != -1) {
  401. lfind = arrayExistObj(this.patientRegister.prList, 'id', item.id)
  402. if (lfind > -1) {
  403. if (this.patientRegister.prList[lfind].guidePrintTimes) {
  404. this.patientRegister.prList[lfind].guidePrintTimes = Number(this.patientRegister.prList[lfind].guidePrintTimes) + 1;
  405. } else {
  406. this.patientRegister.prList[lfind].guidePrintTimes = 1;
  407. }
  408. }
  409. }
  410. })
  411. .catch(err => {
  412. this.$message.warning(err);
  413. });
  414. });
  415. }
  416. },
  417. handleSelectionChange(val) {
  418. this.multipleSelection = val;
  419. //console.log('this.multipleSelection',this.multipleSelection)
  420. },
  421. //获取单位分组 /api/app/customer-org-group/in-customer-org-id/3a0c0444-d7a0-871f-4074-19faf1655caf
  422. getCustomerOrgGroup(customerOrgld) {
  423. getapi(`/api/app/customer-org-group/in-customer-org-id/${customerOrgld}`)
  424. .then((res) => {
  425. console.log("getCustomerOrgGroup", res.data);
  426. if (res.code == 1) {
  427. this.patientRegister.customerOrgGroup = res.data;
  428. }
  429. });
  430. },
  431. //点击体检次数行
  432. rowick(row) {
  433. this.patientRegister.photo = ""; //清除照片缓存
  434. this.patientRegister.patientRegisterId = row.id;
  435. this.patientRegister.photo = row.photo||'/pic/Photo.jpg';
  436. this.patientRegister.patientRegisterRd = row;
  437. this.patientRegister.query.customerOrgParentId = row.customerOrgParentId;
  438. this.patientRegister.customerOrgGroupChange = 0; //控制体检列表记录切换时,0 无需触发更换分组操作
  439. this.patientRegister.medicalPackageChange = 0; //控制体检列表记录切换时,0 无需触发更换套餐操作
  440. this.getCustomerOrgGroup(row.customerOrgParentId);
  441. this.dict.asbItem = [...this.dict.asbItemAll]
  442. //this.getPatientRegisterAbs(row.id);
  443. },
  444. //体检次数 相关操作
  445. add() {
  446. let customerOrgId = this.patientRegister.query.customerOrgId;
  447. if (!customerOrgId) {
  448. alert("请选择单位或个人");
  449. return;
  450. }
  451. //console.log('customerOrgId',customerOrgId)
  452. this.patientRegister.patientRegisterId = "";
  453. // this.patientRegister.patientRegisterRd.photo = '';
  454. // this.patientRegister.patientRegisterRdInit.id = "";
  455. // this.patientRegister.patientRegisterRdInit.customerOrgId = this.patientRegister.query.customerOrgId;
  456. // this.patientRegister.addTimes++;
  457. // this.patientRegister.patientRegisterTimes++;
  458. this.patientRegister.patientRegisterRdInit.customerOrgId = this.patientRegister.query.customerOrgId;
  459. this.formInitData = deepCopy(this.patientRegister.patientRegisterRdInit );
  460. this.patientRegister.patientRegisterAbs = [];
  461. this.dialogVisible = true;
  462. this.editTimes++; //触发表单窗口,数据更新
  463. this.getPatientRegisterAbs();
  464. },
  465. edit() {
  466. if (!this.patientRegister.patientRegisterRd.id) {
  467. alert("请选择要操作的记录");
  468. return;
  469. }
  470. //this.patientRegister.patientRegisterTimes++;
  471. this.getPatientRegisterAbs(this.patientRegister.patientRegisterRd.id);
  472. this.formInitData = { ...this.patientRegister.patientRegisterRd };
  473. this.dialogVisible = true;
  474. this.editTimes++; //触发表单窗口,数据更新
  475. },
  476. //拍照
  477. openCamera() {
  478. if (!this.patientRegister.patientRegisterId) {
  479. alert("请选择要操作的记录");
  480. return;
  481. }
  482. this.patientRegister.cameraVisble = true;
  483. },
  484. //删除(可批量删除)
  485. // /api/app/patient-register/many?PatientRegisterIds=3a0c2cac-f44c-f407-9504-c1fc5e80a159&PatientRegisterIds=3a0c2cb3-d10c-ed70-db6a-b835e75ce641
  486. del() {
  487. if (this.multipleSelection.length < 1) {
  488. alert("请先勾选要操作的记录");
  489. return;
  490. }
  491. let patientRegisterIds = [];
  492. for (let i = 0; i < this.multipleSelection.length; i++) {
  493. patientRegisterIds.push(this.multipleSelection[i]["id"]);
  494. }
  495. this.$confirm("此操作将永久删除该记录, 是否继续?", "提示", {
  496. confirmButtonText: "确定",
  497. cancelButtonText: "取消",
  498. type: "warning",
  499. })
  500. .then(() => {
  501. //console.log('{patientRegisterIds}',{patientRegisterIds})
  502. return postapi(`/api/app/patient-register/delete-many`, {
  503. patientRegisterIds,
  504. });
  505. })
  506. .then((res) => {
  507. this.$message.success("删除成功");
  508. this.patientRegister.query.times++;
  509. this.patientRegister.patientRegisterId = "";
  510. })
  511. .catch(() => {
  512. this.$message({
  513. type: "info",
  514. message: "已取消删除",
  515. });
  516. });
  517. },
  518. //单个删除方式
  519. delBak() {
  520. if (!this.patientRegister.patientRegisterId) {
  521. alert("请选择要操作的记录");
  522. return;
  523. }
  524. this.$confirm("此操作将永久删除该记录, 是否继续?", "提示", {
  525. confirmButtonText: "确定",
  526. cancelButtonText: "取消",
  527. type: "warning",
  528. })
  529. .then(() => {
  530. //console.log('${this.patientRegister.patientRegisterId}',this.patientRegister.patientRegisterId)
  531. return deletapi(`/api/app/patient-register/${this.patientRegister.patientRegisterId}`);
  532. })
  533. .then((res) => {
  534. this.$message.success("删除成功");
  535. this.patientRegister.query.times++;
  536. this.patientRegister.patientRegisterId = "";
  537. })
  538. .catch(() => {
  539. this.$message({ type: "info", message: "已取消删除", });
  540. });
  541. },
  542. ldddw(arrayData, key, value, display) {
  543. return dddw(arrayData, key, value, display);
  544. },
  545. lmoment(date, forMat) {
  546. return moment(new Date(date)).format(forMat);
  547. },
  548. //查询
  549. async query() {
  550. this.patientRegister.prList = [];
  551. let body = {}
  552. console.log(`this.patientRegister.query`, this.patientRegister.query)
  553. if (this.patientRegister.query.customerOrgFlag) {
  554. if (this.patientRegister.query.CustomerOrgParentId) {
  555. body.customerOrgId = this.patientRegister.query.CustomerOrgParentId
  556. } else {
  557. if (this.patientRegister.query.customerOrgId) body.customerOrgId = this.patientRegister.query.customerOrgId
  558. }
  559. }
  560. if (this.patientRegister.query.sex) body.sexId = this.patientRegister.query.sex
  561. if (this.patientRegister.query.patientName) body.patientName = this.patientRegister.query.patientName
  562. if (this.patientRegister.query.completeFlag) body.completeFlag = this.patientRegister.query.completeFlag
  563. //StartDate EndDate
  564. if (this.patientRegister.query.startDate && this.patientRegister.query.endDate) {
  565. body.startDate = moment(this.patientRegister.query.startDate).format("yyyy-MM-DD")
  566. body.endDate = moment(this.patientRegister.query.endDate).format("yyyy-MM-DD")
  567. if(body.startDate > body.endDate){
  568. this.$message.warning("起始日期不能大于截止日期,数据校验不通过!")
  569. return
  570. }
  571. }
  572. if (this.patientRegister.query.idCardNo) body = { idNo: this.patientRegister.query.idCardNo }
  573. if (this.patientRegister.query.patientNo) body = { patientNo: this.patientRegister.query.patientNo }
  574. if (this.patientRegister.query.patientRegisterNo) body = { patientRegisterNo: this.patientRegister.query.patientRegisterNo }
  575. console.log('/api/app/patientregister/getlistinfilter', body)
  576. const loading = this.$loading({
  577. lock: true,
  578. text: 'Loading',
  579. spinner: 'el-icon-loading',
  580. background: 'rgba(0, 0, 0, 0.7)'
  581. });
  582. postapi('/api/app/patientregister/getlistinfilter', body)
  583. .then((res) => {
  584. if (res.code != -1) {
  585. this.patientRegister.prList = res.data.items;
  586. }
  587. loading.close();
  588. })
  589. .catch((err) => {
  590. loading.close();
  591. });
  592. // try {
  593. // let res =await postapi('/api/app/patientregister/getlistinfilter', body);
  594. // this.patientRegister.prList = res.data;
  595. // } catch (error) {
  596. // console.log("query error",error);
  597. // }
  598. },
  599. //右击菜单
  600. onCellRightClick(row, column) {
  601. this.rClickRow = { ...row }; //右击的行
  602. this.rClickColumn = { ...column }; //右击的列(预留)
  603. console.log(row, column.property);
  604. },
  605. onContextmenu(event) {
  606. //console.log('onContextmenu',event);
  607. if (!this.rClickRow) return false;
  608. let row = { ...this.rClickRow };
  609. this.$contextmenu({
  610. items: [
  611. {
  612. label: "发送检验申请",
  613. onClick: () => {
  614. this.lisRequest(row.id);
  615. }
  616. },
  617. {
  618. label: "预览检验条码",
  619. onClick: () => {
  620. this.lisPrint(row.id, '0002', true);
  621. }
  622. },
  623. {
  624. label: "打印检验条码",
  625. onClick: () => {
  626. this.lisPrint(row.id, '0002', false);
  627. }
  628. },
  629. {
  630. label: "预览Pacs条码",
  631. onClick: () => {
  632. this.pacsPrint(row.id, '0004', true);
  633. }
  634. },
  635. {
  636. label: "打印Pacs条码",
  637. onClick: () => {
  638. this.pacsPrint(row.id, '0004', false);
  639. }
  640. },
  641. ],
  642. event,
  643. //x: event.clientX,
  644. //y: event.clientY,
  645. customClass: "custom-class",
  646. zIndex: 3,
  647. minWidth: 80,
  648. });
  649. this.rClickRow = null;
  650. return false;
  651. },
  652. //批量更新分组按钮
  653. btnGroupBatch() {
  654. let customerOrgId = this.patientRegister.query.customerOrgId;
  655. if (!customerOrgId) {
  656. alert("请选择单位或个人");
  657. return;
  658. }
  659. if (this.multipleSelection.length < 1) {
  660. this.$message.info("请勾选要操作的人员!");
  661. return;
  662. }
  663. this.dialogGroup = true;
  664. },
  665. //批量更新分组处理
  666. async groupBatchHandle() {
  667. let groupBatch = { patientRegisterId: null, ...this.groupBatch };
  668. if (groupBatch.isReserveAddAsbitem) {
  669. groupBatch.isReserveAddAsbitem = 'Y';
  670. } else {
  671. groupBatch.isReserveAddAsbitem = 'N';
  672. }
  673. console.log('groupBatch', groupBatch);
  674. if (!groupBatch.customerOrgGroupId) {
  675. this.$message.warning("请选择分组");
  676. return;
  677. }
  678. for (let i = 0; i < this.multipleSelection.length; i++) {
  679. groupBatch.patientRegisterId = this.multipleSelection[i].id;
  680. try {
  681. await postapi('/api/app/patientregister/updatepatientregistercustomerorggroup', groupBatch);
  682. } catch (error) {
  683. console.log(error);
  684. }
  685. }
  686. this.$message.success("操作成功!");
  687. this.dialogGroup = false;
  688. this.query();
  689. },
  690. //快速查询项目
  691. remoteMethod(keyWords) {
  692. //console.log('remoteMethod',this.dict.asbItemQuick)
  693. if (keyWords) {
  694. this.quickAsb = [];
  695. this.dict.asbItemQuick.forEach(item => {
  696. if (item.displayName.toLowerCase().indexOf(keyWords.toLowerCase()) > - 1
  697. || item.simpleCode.toLowerCase().indexOf(keyWords.toLowerCase()) > - 1
  698. || item.shortName.toLowerCase().indexOf(keyWords.toLowerCase()) > - 1) {
  699. this.quickAsb.push(item);
  700. }
  701. });
  702. } else {
  703. this.quickAsb = [...this.dict.asbItemQuick];
  704. }
  705. },
  706. //快速选择项目
  707. quickChoosedAsb(v) {
  708. //过滤已选的的组合项目
  709. let lfind = -1
  710. if (v) {
  711. lfind = arrayExistObj(this.quickAsb, 'id', v)
  712. if (lfind > -1) {
  713. this.asbitemBatch.asbitemsTemp.push({
  714. asbitemId: v,
  715. asbitemName: this.quickAsb[lfind].displayName, //仅作显示用
  716. patientRegisterId: null,
  717. standardPrice: this.quickAsb[lfind].price,
  718. chargePrice: this.quickAsb[lfind].price,
  719. payTypeFlag: '1',//默认单位支付
  720. isCharge: 'N',
  721. amount: 1,
  722. });
  723. this.quickAsb.splice(lfind, 1);
  724. arrayReduce(this.dict.asbItemQuick, { id: v }, 'id');
  725. }
  726. }
  727. console.log(v, this.asbitemBatch.asbitemsTemp)
  728. },
  729. //删除临时显示的组合项目
  730. removeAbs(row) {
  731. let lfind = arrayExistObj(this.asbitemBatch.asbitemsTemp, 'asbitemId', row.asbitemId);
  732. if (lfind > - 1) this.asbitemBatch.asbitemsTemp.splice(lfind, 1);
  733. },
  734. rowClickaAbitemCurr(row) {
  735. this.asbitemBatch.asbitemCurr = row;
  736. },
  737. btnRemoveAbs() {
  738. if (!this.asbitemBatch.asbitemCurr.asbitemId) {
  739. this.$message.warning("请选择要删除的组合项目!");
  740. return;
  741. }
  742. this.removeAbs(this.asbitemBatch.asbitemCurr);
  743. this.asbitemBatch.asbitemCurr.asbitemId = null;
  744. },
  745. removeAllAbs() {
  746. this.asbitemBatch.asbitemsTemp = [];
  747. },
  748. //批量更新项目
  749. asbBatch() {
  750. let customerOrgId = this.patientRegister.query.customerOrgId;
  751. if (!customerOrgId) {
  752. alert("请选择单位或个人");
  753. return;
  754. }
  755. this.dialogAsbitem = true;
  756. //供快速选择的组合项目
  757. this.dict.asbItemQuick = [...this.dict.asbItemAll];
  758. this.asbitemBatch.asbitemCurr.asbitemId = null;
  759. this.asbitemBatch.asbitemsTemp = [];
  760. },
  761. asbitemDel(type) {
  762. //typ==0 为批量删除
  763. if (Number(type) == 0) {
  764. this.asbitemBatch.asbitemsTemp = [];
  765. } else {
  766. if (!this.asbitemBatch.asbitemCurr.asbitemId) {
  767. this.$message.warning("请选中要删除的项目!");
  768. return;
  769. }
  770. //console.log(this.asbitemBatch.asbitemsTemp,this.asbitemBatch.asbitemCurr)
  771. let lfind = arrayExistObj(this.asbitemBatch.asbitemsTemp, 'asbitemId', this.asbitemBatch.asbitemCurr.asbitemId);
  772. if (lfind > -1) {
  773. this.asbitemBatch.asbitemsTemp.splice(lfind, 1);
  774. this.asbitemBatch.asbitemCurr.asbitemId = null;
  775. }
  776. //console.log(lfind);
  777. }
  778. },
  779. //批量调整支付方式
  780. changePayTypeFlag(flag) {
  781. this.asbitemBatch.asbitemsTemp.forEach(e => {
  782. e.payTypeFlag = flag;
  783. return e;
  784. });
  785. },
  786. async asbitemBatchHandle() {
  787. let msg = '', body = {};
  788. if (this.asbitemBatch.asbitemsTemp.length == 0) {
  789. this.$message.warning("没有选择组合项目,不可执行此操作!");
  790. return;
  791. }
  792. if (this.asbitemBatch.operate == 'add') {
  793. this.asbitemBatch.asbitemsTemp.forEach((e, index) => {
  794. if (!e.amount || !e.chargePrice) {
  795. msg = '第 ' + (index + 1) + " 行,未输入数量或价格!";
  796. }
  797. });
  798. if (msg) {
  799. this.$message.warning(msg);
  800. return;
  801. }
  802. // {
  803. // "organizationUnitId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  804. // "createRegisterAsbitemDtos": [
  805. // {
  806. // "asbitemId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  807. // "patientRegisterId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  808. // "standardPrice": 0,
  809. // "chargePrice": 0,
  810. // "payTypeFlag": "string",
  811. // "isCharge": "string",
  812. // "lisRequestId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  813. // "amount": 0,
  814. // "groupPackageId": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
  815. // }
  816. // ]
  817. // }
  818. let createRegisterAsbitemDtos = [...this.asbitemBatch.asbitemsTemp];
  819. createRegisterAsbitemDtos.forEach(e => {
  820. delete e.asbitemName;
  821. return e;
  822. });
  823. for (let i = 0; i < this.multipleSelection.length; i++) {
  824. createRegisterAsbitemDtos.forEach(e => {
  825. e.patientRegisterId = this.multipleSelection[i].id;
  826. return e;
  827. });
  828. body = {
  829. organizationUnitId:this.multipleSelection[i].organizationUnitId,
  830. createRegisterAsbitemDtos,
  831. }
  832. try {
  833. await postapi('/api/app/registerasbitem/createregisterasbitemincustomerorgmany',body);
  834. } catch (error) {
  835. console.log('批量增加项目错误,原因:',error);
  836. }
  837. }
  838. } else {
  839. // {
  840. // isDeleteGroup: 'N',
  841. // patientRegisterId: null,
  842. // asbitemIds: [],
  843. // }
  844. let asbitemIds = [];
  845. if(this.asbitemBatch.isDeleteGroup){
  846. body.isDeleteGroup = 'Y';
  847. }else{
  848. body.isDeleteGroup = 'N';
  849. }
  850. for (let i = 0; i < this.multipleSelection.length; i++) {
  851. this.asbitemBatch.asbitemsTemp.forEach(e => {
  852. asbitemIds.push(e.asbitemId);
  853. });
  854. body.patientRegisterId = this.multipleSelection[i].id;
  855. body.asbitemIds = asbitemIds
  856. try {
  857. await postapi('/api/app/registerasbitem/deleteregisterasbitemincustomerorgmany',body);
  858. } catch (error) {
  859. console.log('批量删除项目错误,原因:',error);
  860. }
  861. }
  862. }
  863. this.$message.success("操作成功!");
  864. this.dialogAsbitem = false;
  865. this.query();
  866. },
  867. //检验申请
  868. async lisRequest(prId) {
  869. let isPrintLisRequest = false
  870. let res = null
  871. if (prId.length < 1) {
  872. this.$message.info("人员信息尚未保存,不可执行此操作!");
  873. return;
  874. }
  875. try {
  876. res = await postapi(`/api/app/lisrequest/setlisrequest?PatientRegisterId=${prId}`);
  877. console.log(`/api/app/lisrequest/setlisrequest?PatientRegisterId=${prId}`, res)
  878. } catch (error) {
  879. return;
  880. }
  881. if (res.Code != -1) {
  882. this.$message.info("发送检验申请成功!");
  883. isPrintLisRequest = true;
  884. }
  885. //重复申请,重打
  886. if (res.Code == -1 && res.Message.indexOf('已申请') > -1) {
  887. isPrintLisRequest = true;
  888. }
  889. if (!isPrintLisRequest) return;
  890. try {
  891. await this.$confirm("是否打印检验申请单?", "提示", {
  892. confirmButtonText: "是",
  893. cancelButtonText: "否",
  894. type: "info",
  895. showClose: false,
  896. closeOnClickModal: false,
  897. closeOnPressEscape: false,
  898. });
  899. } catch (error) {
  900. return;
  901. }
  902. //打印检验申请单
  903. this.lisPrint(prId, '0003', false);
  904. },
  905. //检验条码打印
  906. lisPrint(prId, ReportCode, isPreview) {
  907. let token = localStorage.getItem('token');
  908. let user = localStorage.getItem('user');
  909. let toOutShell = {
  910. ReportCode, token,
  911. preViewCanPrint: 'N',
  912. Parameters: [
  913. { Name: 'printer', Value: user },
  914. { Name: 'hisLog', Value: 'pic/hisLog.jpg' },
  915. ],
  916. };
  917. if (isPreview) {
  918. //http://140.143.162.39:9529/api/app/printreport/getlisrequestreport?PatientRegisterId=3a0d2e90-da68-3746-6775-bf17e5f9b295
  919. //this.multipleSelection.forEach((item,index) =>{
  920. postapi(`/api/app/printreport/getlisrequestreport?PatientRegisterId=${prId}`)
  921. .then((res) => {
  922. if (res.code != -1) {
  923. toOutShell.ReportTable = { lisRequest: res.data };
  924. console.log('JSON.stringify(toOutShell)', JSON.stringify(toOutShell));
  925. return this.$peisAPI.printPre(JSON.stringify(toOutShell));
  926. }
  927. })
  928. .catch(err => {
  929. this.$message.warning(err);
  930. });
  931. // });
  932. } else {
  933. postapi(`/api/app/printreport/getlisrequestreport?PatientRegisterId=${prId}`)
  934. .then((res) => {
  935. if (res.code != -1) {
  936. toOutShell.ReportTable = { lisRequest: res.data };
  937. console.log('JSON.stringify(toOutShell)', JSON.stringify(toOutShell));
  938. return this.$peisAPI.print(JSON.stringify(toOutShell));
  939. }
  940. })
  941. .then(res => {
  942. console.log('res',res);
  943. if (res && res.toLowerCase() == 'success') {
  944. //更新打印状态 /api/app/lisrequest/updatelisrequestisprint
  945. // {
  946. // "operateType": 0, 操作类型(1.按PatientRegisterId 2.按LisRequestId)
  947. // "patientRegisterId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  948. // "lisRequestId": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
  949. // }
  950. return postapi('/api/app/lisrequest/updatelisrequestisprint', { operateType: 1, patientRegisterId: prId })
  951. }
  952. })
  953. .catch(err => {
  954. this.$message.warning(err);
  955. });
  956. }
  957. },
  958. //pacs条码打印
  959. pacsPrint(prId, ReportCode, isPreview) {
  960. let token = localStorage.getItem('token');
  961. let user = localStorage.getItem('user');
  962. let toOutShell = {
  963. ReportCode, token,
  964. preViewCanPrint: 'Y',
  965. Parameters: [
  966. { Name: 'printer', Value: user },
  967. { Name: 'hisLog', Value: 'pic/hisLog.jpg' },
  968. ],
  969. };
  970. if (isPreview) {
  971. //http://140.143.162.39:9529/api/app/printreport/getpacsnoreport?PatientRegisterId=3a0c990e-5756-2dc0-19d5-69a617fe4048
  972. //this.multipleSelection.forEach((item,index) =>{
  973. postapi(`/api/app/printreport/getpacsnoreport?PatientRegisterId=${prId}`)
  974. .then((res) => {
  975. if (res.code != -1) {
  976. toOutShell.ReportTable = { lisRequest: res.data };
  977. console.log('JSON.stringify(toOutShell)', JSON.stringify(toOutShell));
  978. return this.$peisAPI.printPre(JSON.stringify(toOutShell));
  979. }
  980. })
  981. .catch(err => {
  982. this.$message.warning(err);
  983. });
  984. // });
  985. } else {
  986. postapi(`/api/app/printreport/getpacsnoreport?PatientRegisterId=${prId}`)
  987. .then((res) => {
  988. if (res.code != -1) {
  989. toOutShell.ReportTable = { lisRequest: res.data };
  990. console.log('JSON.stringify(toOutShell)', JSON.stringify(toOutShell));
  991. return this.$peisAPI.print(JSON.stringify(toOutShell));
  992. }
  993. })
  994. .then(res => {
  995. if (res.toLowerCase() == 'success') {
  996. //更新打印状态 /api/app/lisrequest/updatelisrequestisprint
  997. // {
  998. // "operateType": 0, 操作类型(1.按PatientRegisterId 2.按LisRequestId)
  999. // "patientRegisterId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  1000. // "lisRequestId": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
  1001. // }
  1002. return postapi('/api/app/lisrequest/updatelisrequestisprint', { operateType: 1, patientRegisterId: prId })
  1003. }
  1004. })
  1005. .catch(err => {
  1006. this.$message.warning(err);
  1007. });
  1008. }
  1009. },
  1010. },
  1011. //监听事件
  1012. watch: {
  1013. //触发查询事件
  1014. "patientRegister.query.times"(newVal, oldVal) {
  1015. if (newVal != oldVal) {
  1016. //alert('触发查询事件')
  1017. this.query();
  1018. }
  1019. },
  1020. //新增后,触发赋值
  1021. "patientRegister.patientRegisterRd.id"(newVal, oldVal) {
  1022. if (newVal != oldVal) {
  1023. //console.log('patientRegister.patientRegisterRd.customerOrgId',this.patientRegister.patientRegisterRd.customerOrgId)
  1024. objCopy(this.patientRegister.patientRegisterRd, this.form);
  1025. }
  1026. },
  1027. },
  1028. };
  1029. </script>
  1030. <style scoped>
  1031. .box {
  1032. display: flex;
  1033. }
  1034. .listBtn {
  1035. margin-top: 5px;
  1036. text-align: center;
  1037. }
  1038. .btnClass {
  1039. width: 110px;
  1040. }
  1041. ::v-deep .el-input__inner {
  1042. /*text-align: center;*/
  1043. padding-left: 5px;
  1044. padding-right: 1px;
  1045. }
  1046. ::v-deep .el-table th.el-table__cell {
  1047. text-align: center;
  1048. padding-left: 1px;
  1049. padding-right: 1px;
  1050. }
  1051. /* 表格:单元格 行间距*/
  1052. ::v-deep .el-table__cell {
  1053. padding-top: 2px; /* 表格:单元格 行间距,默认 8px */
  1054. padding-bottom: 2px; /* 表格:单元格 行间距,默认 8px */
  1055. }
  1056. ::v-deep .el-table td.el-table__cell {
  1057. padding-left: 1px;
  1058. padding-right: 1px;
  1059. }
  1060. ::v-deep .el-table .cell {
  1061. padding-left: 1px;
  1062. padding-right: 1px;
  1063. }
  1064. ::v-deep input[type="number"]::-webkit-inner-spin-button,
  1065. input[type="number"]::-webkit-outer-spin-button {
  1066. -webkit-appearance: none !important;
  1067. margin: 0 !important;
  1068. }
  1069. ::v-deep .el-table__body tr.current-row>td {
  1070. background-color:#409EFF !important;
  1071. }
  1072. </style>