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.

1159 lines
42 KiB

3 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
2 years ago
3 years ago
2 years ago
2 years ago
2 years ago
3 years ago
2 years ago
3 years ago
3 years ago
3 years ago
2 years ago
3 years ago
3 years ago
2 years ago
3 years ago
3 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
2 years ago
3 years 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
3 years ago
2 years ago
3 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
3 years ago
2 years ago
2 years ago
2 years ago
3 years ago
2 years ago
3 years ago
3 years ago
2 years ago
3 years 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
2 years ago
3 years ago
2 years ago
2 years ago
3 years ago
3 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
2 years ago
2 years ago
2 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
3 years ago
2 years ago
2 years ago
3 years ago
3 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
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
2 years 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
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
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
3 years ago
2 years 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
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
2 years ago
3 years ago
3 years ago
2 years ago
3 years ago
2 years ago
3 years ago
2 years ago
3 years ago
2 years ago
3 years ago
2 years ago
3 years ago
2 years ago
3 years ago
2 years ago
3 years ago
2 years ago
3 years ago
3 years ago
2 years 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
3 years ago
2 years 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
2 years ago
2 years ago
2 years ago
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
3 years ago
3 years ago
2 years ago
3 years ago
3 years ago
2 years ago
3 years ago
2 years ago
2 years ago
3 years 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
3 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="success" class="btnClass" @click="add">人员登记</el-button>
  152. </div>
  153. <div class="listBtn">
  154. <el-button type="primary" class="btnClass" @click="edit">编辑</el-button>
  155. </div>
  156. <div class="listBtn">
  157. <el-button type="danger" class="btnClass" @click="del">删除</el-button>
  158. </div>
  159. <div class="listBtn">
  160. <el-button type="primary" class="btnClass" @click="openCamera" icon="el-icon-camera">拍照</el-button>
  161. </div>
  162. <div class="listBtn">
  163. <el-button type="primary" class="btnClass">健康档案</el-button>
  164. </div>
  165. <div class="listBtn">
  166. <el-button type="primary" class="btnClass" @click="btnGroupBatch">调整分组</el-button>
  167. </div>
  168. <div class="listBtn">
  169. <el-button type="primary" class="btnClass" @click="asbBatch">调整项目</el-button>
  170. </div>
  171. <div class="listBtn">
  172. <el-button type="primary" class="btnClass" @click="guidePrint('0001', false)">指引单打印</el-button>
  173. </div>
  174. <div class="listBtn">
  175. <el-button type="primary" class="btnClass" @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.patientRegisterRd = row;
  436. this.patientRegister.query.customerOrgParentId = row.customerOrgParentId;
  437. this.patientRegister.customerOrgGroupChange = 0; //控制体检列表记录切换时,0 无需触发更换分组操作
  438. this.patientRegister.medicalPackageChange = 0; //控制体检列表记录切换时,0 无需触发更换套餐操作
  439. this.getCustomerOrgGroup(row.customerOrgParentId);
  440. this.dict.asbItem = [...this.dict.asbItemAll]
  441. this.getPatientRegisterAbs(row.id);
  442. },
  443. //体检次数 相关操作
  444. add() {
  445. let customerOrgId = this.patientRegister.query.customerOrgId;
  446. if (!customerOrgId) {
  447. alert("请选择单位或个人");
  448. return;
  449. }
  450. //console.log('customerOrgId',customerOrgId)
  451. this.patientRegister.patientRegisterId = "";
  452. // this.patientRegister.patientRegisterRd.photo = '';
  453. // this.patientRegister.patientRegisterRdInit.id = "";
  454. // this.patientRegister.patientRegisterRdInit.customerOrgId = this.patientRegister.query.customerOrgId;
  455. // this.patientRegister.addTimes++;
  456. // this.patientRegister.patientRegisterTimes++;
  457. this.patientRegister.patientRegisterRdInit.customerOrgId = this.patientRegister.query.customerOrgId;
  458. this.formInitData = deepCopy(this.patientRegister.patientRegisterRdInit );
  459. this.patientRegister.patientRegisterAbs = [];
  460. this.dialogVisible = true;
  461. this.editTimes++; //触发表单窗口,数据更新
  462. this.getPatientRegisterAbs();
  463. },
  464. edit() {
  465. if (!this.patientRegister.patientRegisterRd.id) {
  466. alert("请选择要操作的记录");
  467. return;
  468. }
  469. //this.patientRegister.patientRegisterTimes++;
  470. this.getPatientRegisterAbs(this.patientRegister.patientRegisterRd.id);
  471. this.formInitData = { ...this.patientRegister.patientRegisterRd };
  472. this.dialogVisible = true;
  473. this.editTimes++; //触发表单窗口,数据更新
  474. },
  475. //拍照
  476. openCamera() {
  477. if (!this.patientRegister.patientRegisterId) {
  478. alert("请选择要操作的记录");
  479. return;
  480. }
  481. this.patientRegister.cameraVisble = true;
  482. },
  483. //删除(可批量删除)
  484. // /api/app/patient-register/many?PatientRegisterIds=3a0c2cac-f44c-f407-9504-c1fc5e80a159&PatientRegisterIds=3a0c2cb3-d10c-ed70-db6a-b835e75ce641
  485. del() {
  486. if (this.multipleSelection.length < 1) {
  487. alert("请先勾选要操作的记录");
  488. return;
  489. }
  490. let patientRegisterIds = [];
  491. for (let i = 0; i < this.multipleSelection.length; i++) {
  492. patientRegisterIds.push(this.multipleSelection[i]["id"]);
  493. }
  494. this.$confirm("此操作将永久删除该记录, 是否继续?", "提示", {
  495. confirmButtonText: "确定",
  496. cancelButtonText: "取消",
  497. type: "warning",
  498. })
  499. .then(() => {
  500. //console.log('{patientRegisterIds}',{patientRegisterIds})
  501. return postapi(`/api/app/patient-register/delete-many`, {
  502. patientRegisterIds,
  503. });
  504. })
  505. .then((res) => {
  506. this.$message.success("删除成功");
  507. this.patientRegister.query.times++;
  508. this.patientRegister.patientRegisterId = "";
  509. })
  510. .catch(() => {
  511. this.$message({
  512. type: "info",
  513. message: "已取消删除",
  514. });
  515. });
  516. },
  517. //单个删除方式
  518. delBak() {
  519. if (!this.patientRegister.patientRegisterId) {
  520. alert("请选择要操作的记录");
  521. return;
  522. }
  523. this.$confirm("此操作将永久删除该记录, 是否继续?", "提示", {
  524. confirmButtonText: "确定",
  525. cancelButtonText: "取消",
  526. type: "warning",
  527. })
  528. .then(() => {
  529. //console.log('${this.patientRegister.patientRegisterId}',this.patientRegister.patientRegisterId)
  530. return deletapi(`/api/app/patient-register/${this.patientRegister.patientRegisterId}`);
  531. })
  532. .then((res) => {
  533. this.$message.success("删除成功");
  534. this.patientRegister.query.times++;
  535. this.patientRegister.patientRegisterId = "";
  536. })
  537. .catch(() => {
  538. this.$message({ type: "info", message: "已取消删除", });
  539. });
  540. },
  541. ldddw(arrayData, key, value, display) {
  542. return dddw(arrayData, key, value, display);
  543. },
  544. lmoment(date, forMat) {
  545. return moment(new Date(date)).format(forMat);
  546. },
  547. //查询
  548. async query() {
  549. this.patientRegister.prList = [];
  550. const loading = this.$loading({
  551. lock: true,
  552. text: 'Loading',
  553. spinner: 'el-icon-loading',
  554. background: 'rgba(0, 0, 0, 0.7)'
  555. });
  556. let body = {}
  557. console.log(`this.patientRegister.query`, this.patientRegister.query)
  558. if (this.patientRegister.query.customerOrgFlag) {
  559. if (this.patientRegister.query.CustomerOrgParentId) {
  560. body.customerOrgId = this.patientRegister.query.CustomerOrgParentId
  561. } else {
  562. if (this.patientRegister.query.customerOrgId) body.customerOrgId = this.patientRegister.query.customerOrgId
  563. }
  564. }
  565. if (this.patientRegister.query.sex) body.sexId = this.patientRegister.query.sex
  566. if (this.patientRegister.query.patientName) body.patientName = this.patientRegister.query.patientName
  567. if (this.patientRegister.query.completeFlag) body.completeFlag = this.patientRegister.query.completeFlag
  568. //StartDate EndDate
  569. if (this.patientRegister.query.dateRange) {
  570. body.startDate = moment(new Date(this.patientRegister.query.dateRange[0])).format("yyyy-MM-DD")
  571. body.endDate = moment(new Date(this.patientRegister.query.dateRange[1])).format("yyyy-MM-DD")
  572. }
  573. if (this.patientRegister.query.idCardNo) body = { idNo: this.patientRegister.query.idCardNo }
  574. if (this.patientRegister.query.patientNo) body = { patientNo: this.patientRegister.query.patientNo }
  575. if (this.patientRegister.query.patientRegisterNo) body = { patientRegisterNo: this.patientRegister.query.patientRegisterNo }
  576. console.log('/api/app/patientregister/getlistinfilter', body)
  577. postapi('/api/app/patientregister/getlistinfilter', body)
  578. .then((res) => {
  579. if (res.code != -1) {
  580. this.patientRegister.prList = res.data.items;
  581. }
  582. loading.close();
  583. })
  584. .catch((err) => {
  585. loading.close();
  586. });
  587. // try {
  588. // let res =await postapi('/api/app/patientregister/getlistinfilter', body);
  589. // this.patientRegister.prList = res.data;
  590. // } catch (error) {
  591. // console.log("query error",error);
  592. // }
  593. },
  594. //右击菜单
  595. onCellRightClick(row, column) {
  596. this.rClickRow = { ...row }; //右击的行
  597. this.rClickColumn = { ...column }; //右击的列(预留)
  598. console.log(row, column.property);
  599. },
  600. onContextmenu(event) {
  601. //console.log('onContextmenu',event);
  602. if (!this.rClickRow) return false;
  603. let row = { ...this.rClickRow };
  604. this.$contextmenu({
  605. items: [
  606. {
  607. label: "发送检验申请",
  608. onClick: () => {
  609. this.lisRequest(row.id);
  610. }
  611. },
  612. {
  613. label: "预览检验条码",
  614. onClick: () => {
  615. this.lisPrint(row.id, '0002', true);
  616. }
  617. },
  618. {
  619. label: "打印检验条码",
  620. onClick: () => {
  621. this.lisPrint(row.id, '0002', false);
  622. }
  623. },
  624. {
  625. label: "预览Pacs条码",
  626. onClick: () => {
  627. this.pacsPrint(row.id, '0004', true);
  628. }
  629. },
  630. {
  631. label: "打印Pacs条码",
  632. onClick: () => {
  633. this.pacsPrint(row.id, '0004', false);
  634. }
  635. },
  636. ],
  637. event,
  638. //x: event.clientX,
  639. //y: event.clientY,
  640. customClass: "custom-class",
  641. zIndex: 3,
  642. minWidth: 80,
  643. });
  644. this.rClickRow = null;
  645. return false;
  646. },
  647. //批量更新分组按钮
  648. btnGroupBatch() {
  649. let customerOrgId = this.patientRegister.query.customerOrgId;
  650. if (!customerOrgId) {
  651. alert("请选择单位或个人");
  652. return;
  653. }
  654. if (this.multipleSelection.length < 1) {
  655. this.$message.info("请勾选要操作的人员!");
  656. return;
  657. }
  658. this.dialogGroup = true;
  659. },
  660. //批量更新分组处理
  661. async groupBatchHandle() {
  662. let groupBatch = { patientRegisterId: null, ...this.groupBatch };
  663. if (groupBatch.isReserveAddAsbitem) {
  664. groupBatch.isReserveAddAsbitem = 'Y';
  665. } else {
  666. groupBatch.isReserveAddAsbitem = 'N';
  667. }
  668. console.log('groupBatch', groupBatch);
  669. if (!groupBatch.customerOrgGroupId) {
  670. this.$message.warning("请选择分组");
  671. return;
  672. }
  673. for (let i = 0; i < this.multipleSelection.length; i++) {
  674. groupBatch.patientRegisterId = this.multipleSelection[i].id;
  675. try {
  676. await postapi('/api/app/patientregister/updatepatientregistercustomerorggroup', groupBatch);
  677. } catch (error) {
  678. console.log(error);
  679. }
  680. }
  681. this.$message.success("操作成功!");
  682. this.dialogGroup = false;
  683. this.query();
  684. },
  685. //快速查询项目
  686. remoteMethod(keyWords) {
  687. //console.log('remoteMethod',this.dict.asbItemQuick)
  688. if (keyWords) {
  689. this.quickAsb = [];
  690. this.dict.asbItemQuick.forEach(item => {
  691. if (item.displayName.toLowerCase().indexOf(keyWords.toLowerCase()) > - 1
  692. || item.simpleCode.toLowerCase().indexOf(keyWords.toLowerCase()) > - 1
  693. || item.shortName.toLowerCase().indexOf(keyWords.toLowerCase()) > - 1) {
  694. this.quickAsb.push(item);
  695. }
  696. });
  697. } else {
  698. this.quickAsb = [...this.dict.asbItemQuick];
  699. }
  700. },
  701. //快速选择项目
  702. quickChoosedAsb(v) {
  703. //过滤已选的的组合项目
  704. let lfind = -1
  705. if (v) {
  706. lfind = arrayExistObj(this.quickAsb, 'id', v)
  707. if (lfind > -1) {
  708. this.asbitemBatch.asbitemsTemp.push({
  709. asbitemId: v,
  710. asbitemName: this.quickAsb[lfind].displayName, //仅作显示用
  711. patientRegisterId: null,
  712. standardPrice: this.quickAsb[lfind].price,
  713. chargePrice: this.quickAsb[lfind].price,
  714. payTypeFlag: '1',//默认单位支付
  715. isCharge: 'N',
  716. amount: 1,
  717. });
  718. this.quickAsb.splice(lfind, 1);
  719. arrayReduce(this.dict.asbItemQuick, { id: v }, 'id');
  720. }
  721. }
  722. console.log(v, this.asbitemBatch.asbitemsTemp)
  723. },
  724. //删除临时显示的组合项目
  725. removeAbs(row) {
  726. let lfind = arrayExistObj(this.asbitemBatch.asbitemsTemp, 'asbitemId', row.asbitemId);
  727. if (lfind > - 1) this.asbitemBatch.asbitemsTemp.splice(lfind, 1);
  728. },
  729. rowClickaAbitemCurr(row) {
  730. this.asbitemBatch.asbitemCurr = row;
  731. },
  732. btnRemoveAbs() {
  733. if (!this.asbitemBatch.asbitemCurr.asbitemId) {
  734. this.$message.warning("请选择要删除的组合项目!");
  735. return;
  736. }
  737. this.removeAbs(this.asbitemBatch.asbitemCurr);
  738. this.asbitemBatch.asbitemCurr.asbitemId = null;
  739. },
  740. removeAllAbs() {
  741. this.asbitemBatch.asbitemsTemp = [];
  742. },
  743. //批量更新项目
  744. asbBatch() {
  745. let customerOrgId = this.patientRegister.query.customerOrgId;
  746. if (!customerOrgId) {
  747. alert("请选择单位或个人");
  748. return;
  749. }
  750. this.dialogAsbitem = true;
  751. //供快速选择的组合项目
  752. this.dict.asbItemQuick = [...this.dict.asbItemAll];
  753. this.asbitemBatch.asbitemCurr.asbitemId = null;
  754. this.asbitemBatch.asbitemsTemp = [];
  755. },
  756. asbitemDel(type) {
  757. //typ==0 为批量删除
  758. if (Number(type) == 0) {
  759. this.asbitemBatch.asbitemsTemp = [];
  760. } else {
  761. if (!this.asbitemBatch.asbitemCurr.asbitemId) {
  762. this.$message.warning("请选中要删除的项目!");
  763. return;
  764. }
  765. //console.log(this.asbitemBatch.asbitemsTemp,this.asbitemBatch.asbitemCurr)
  766. let lfind = arrayExistObj(this.asbitemBatch.asbitemsTemp, 'asbitemId', this.asbitemBatch.asbitemCurr.asbitemId);
  767. if (lfind > -1) {
  768. this.asbitemBatch.asbitemsTemp.splice(lfind, 1);
  769. this.asbitemBatch.asbitemCurr.asbitemId = null;
  770. }
  771. //console.log(lfind);
  772. }
  773. },
  774. //批量调整支付方式
  775. changePayTypeFlag(flag) {
  776. this.asbitemBatch.asbitemsTemp.forEach(e => {
  777. e.payTypeFlag = flag;
  778. return e;
  779. });
  780. },
  781. async asbitemBatchHandle() {
  782. let msg = '', body = {};
  783. if (this.asbitemBatch.asbitemsTemp.length == 0) {
  784. this.$message.warning("没有选择组合项目,不可执行此操作!");
  785. return;
  786. }
  787. if (this.asbitemBatch.operate == 'add') {
  788. this.asbitemBatch.asbitemsTemp.forEach((e, index) => {
  789. if (!e.amount || !e.chargePrice) {
  790. msg = '第 ' + (index + 1) + " 行,未输入数量或价格!";
  791. }
  792. });
  793. if (msg) {
  794. this.$message.warning(msg);
  795. return;
  796. }
  797. // {
  798. // "organizationUnitId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  799. // "createRegisterAsbitemDtos": [
  800. // {
  801. // "asbitemId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  802. // "patientRegisterId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  803. // "standardPrice": 0,
  804. // "chargePrice": 0,
  805. // "payTypeFlag": "string",
  806. // "isCharge": "string",
  807. // "lisRequestId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  808. // "amount": 0,
  809. // "groupPackageId": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
  810. // }
  811. // ]
  812. // }
  813. let createRegisterAsbitemDtos = [...this.asbitemBatch.asbitemsTemp];
  814. createRegisterAsbitemDtos.forEach(e => {
  815. delete e.asbitemName;
  816. return e;
  817. });
  818. for (let i = 0; i < this.multipleSelection.length; i++) {
  819. createRegisterAsbitemDtos.forEach(e => {
  820. e.patientRegisterId = this.multipleSelection[i].id;
  821. return e;
  822. });
  823. body = {
  824. organizationUnitId:this.multipleSelection[i].organizationUnitId,
  825. createRegisterAsbitemDtos,
  826. }
  827. try {
  828. await postapi('/api/app/registerasbitem/createregisterasbitemincustomerorgmany',body);
  829. } catch (error) {
  830. console.log('批量增加项目错误,原因:',error);
  831. }
  832. }
  833. } else {
  834. // {
  835. // isDeleteGroup: 'N',
  836. // patientRegisterId: null,
  837. // asbitemIds: [],
  838. // }
  839. let asbitemIds = [];
  840. if(this.asbitemBatch.isDeleteGroup){
  841. body.isDeleteGroup = 'Y';
  842. }else{
  843. body.isDeleteGroup = 'N';
  844. }
  845. for (let i = 0; i < this.multipleSelection.length; i++) {
  846. this.asbitemBatch.asbitemsTemp.forEach(e => {
  847. asbitemIds.push(e.asbitemId);
  848. });
  849. body.patientRegisterId = this.multipleSelection[i].id;
  850. body.asbitemIds = asbitemIds
  851. try {
  852. await postapi('/api/app/registerasbitem/deleteregisterasbitemincustomerorgmany',body);
  853. } catch (error) {
  854. console.log('批量删除项目错误,原因:',error);
  855. }
  856. }
  857. }
  858. this.$message.success("操作成功!");
  859. this.dialogAsbitem = false;
  860. this.query();
  861. },
  862. //检验申请
  863. async lisRequest(prId) {
  864. let isPrintLisRequest = false
  865. let res = null
  866. if (prId.length < 1) {
  867. this.$message.info("人员信息尚未保存,不可执行此操作!");
  868. return;
  869. }
  870. try {
  871. res = await postapi(`/api/app/lisrequest/setlisrequest?PatientRegisterId=${prId}`);
  872. console.log(`/api/app/lisrequest/setlisrequest?PatientRegisterId=${prId}`, res)
  873. } catch (error) {
  874. return;
  875. }
  876. if (res.Code != -1) {
  877. this.$message.info("发送检验申请成功!");
  878. isPrintLisRequest = true;
  879. }
  880. //重复申请,重打
  881. if (res.Code == -1 && res.Message.indexOf('已申请') > -1) {
  882. isPrintLisRequest = true;
  883. }
  884. if (!isPrintLisRequest) return;
  885. try {
  886. await this.$confirm("是否打印检验申请单?", "提示", {
  887. confirmButtonText: "是",
  888. cancelButtonText: "否",
  889. type: "info",
  890. showClose: false,
  891. closeOnClickModal: false,
  892. closeOnPressEscape: false,
  893. });
  894. } catch (error) {
  895. return;
  896. }
  897. //打印检验申请单
  898. this.lisPrint(prId, '0003', false);
  899. },
  900. //检验条码打印
  901. lisPrint(prId, ReportCode, isPreview) {
  902. let token = localStorage.getItem('token');
  903. let user = localStorage.getItem('user');
  904. let toOutShell = {
  905. ReportCode, token,
  906. preViewCanPrint: 'N',
  907. Parameters: [
  908. { Name: 'printer', Value: user },
  909. { Name: 'hisLog', Value: 'pic/hisLog.jpg' },
  910. ],
  911. };
  912. if (isPreview) {
  913. //http://140.143.162.39:9529/api/app/printreport/getlisrequestreport?PatientRegisterId=3a0d2e90-da68-3746-6775-bf17e5f9b295
  914. //this.multipleSelection.forEach((item,index) =>{
  915. postapi(`/api/app/printreport/getlisrequestreport?PatientRegisterId=${prId}`)
  916. .then((res) => {
  917. if (res.code != -1) {
  918. toOutShell.ReportTable = { lisRequest: res.data };
  919. console.log('JSON.stringify(toOutShell)', JSON.stringify(toOutShell));
  920. return this.$peisAPI.printPre(JSON.stringify(toOutShell));
  921. }
  922. })
  923. .catch(err => {
  924. this.$message.warning(err);
  925. });
  926. // });
  927. } else {
  928. postapi(`/api/app/printreport/getlisrequestreport?PatientRegisterId=${prId}`)
  929. .then((res) => {
  930. if (res.code != -1) {
  931. toOutShell.ReportTable = { lisRequest: res.data };
  932. console.log('JSON.stringify(toOutShell)', JSON.stringify(toOutShell));
  933. return this.$peisAPI.print(JSON.stringify(toOutShell));
  934. }
  935. })
  936. .then(res => {
  937. console.log('res',res);
  938. if (res && res.toLowerCase() == 'success') {
  939. //更新打印状态 /api/app/lisrequest/updatelisrequestisprint
  940. // {
  941. // "operateType": 0, 操作类型(1.按PatientRegisterId 2.按LisRequestId)
  942. // "patientRegisterId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  943. // "lisRequestId": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
  944. // }
  945. return postapi('/api/app/lisrequest/updatelisrequestisprint', { operateType: 1, patientRegisterId: prId })
  946. }
  947. })
  948. .catch(err => {
  949. this.$message.warning(err);
  950. });
  951. }
  952. },
  953. //pacs条码打印
  954. pacsPrint(prId, ReportCode, isPreview) {
  955. let token = localStorage.getItem('token');
  956. let user = localStorage.getItem('user');
  957. let toOutShell = {
  958. ReportCode, token,
  959. preViewCanPrint: 'Y',
  960. Parameters: [
  961. { Name: 'printer', Value: user },
  962. { Name: 'hisLog', Value: 'pic/hisLog.jpg' },
  963. ],
  964. };
  965. if (isPreview) {
  966. //http://140.143.162.39:9529/api/app/printreport/getpacsnoreport?PatientRegisterId=3a0c990e-5756-2dc0-19d5-69a617fe4048
  967. //this.multipleSelection.forEach((item,index) =>{
  968. postapi(`/api/app/printreport/getpacsnoreport?PatientRegisterId=${prId}`)
  969. .then((res) => {
  970. if (res.code != -1) {
  971. toOutShell.ReportTable = { lisRequest: res.data };
  972. console.log('JSON.stringify(toOutShell)', JSON.stringify(toOutShell));
  973. return this.$peisAPI.printPre(JSON.stringify(toOutShell));
  974. }
  975. })
  976. .catch(err => {
  977. this.$message.warning(err);
  978. });
  979. // });
  980. } else {
  981. postapi(`/api/app/printreport/getpacsnoreport?PatientRegisterId=${prId}`)
  982. .then((res) => {
  983. if (res.code != -1) {
  984. toOutShell.ReportTable = { lisRequest: res.data };
  985. console.log('JSON.stringify(toOutShell)', JSON.stringify(toOutShell));
  986. return this.$peisAPI.print(JSON.stringify(toOutShell));
  987. }
  988. })
  989. .then(res => {
  990. if (res.toLowerCase() == 'success') {
  991. //更新打印状态 /api/app/lisrequest/updatelisrequestisprint
  992. // {
  993. // "operateType": 0, 操作类型(1.按PatientRegisterId 2.按LisRequestId)
  994. // "patientRegisterId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  995. // "lisRequestId": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
  996. // }
  997. return postapi('/api/app/lisrequest/updatelisrequestisprint', { operateType: 1, patientRegisterId: prId })
  998. }
  999. })
  1000. .catch(err => {
  1001. this.$message.warning(err);
  1002. });
  1003. }
  1004. },
  1005. },
  1006. //监听事件
  1007. watch: {
  1008. //触发查询事件
  1009. "patientRegister.query.times"(newVal, oldVal) {
  1010. if (newVal != oldVal) {
  1011. //alert('触发查询事件')
  1012. this.query();
  1013. }
  1014. },
  1015. //新增后,触发赋值
  1016. "patientRegister.patientRegisterRd.id"(newVal, oldVal) {
  1017. if (newVal != oldVal) {
  1018. //console.log('patientRegister.patientRegisterRd.customerOrgId',this.patientRegister.patientRegisterRd.customerOrgId)
  1019. objCopy(this.patientRegister.patientRegisterRd, this.form);
  1020. }
  1021. },
  1022. },
  1023. };
  1024. </script>
  1025. <style scoped>
  1026. .box {
  1027. display: flex;
  1028. }
  1029. .listBtn {
  1030. margin-top: 5px;
  1031. text-align: center;
  1032. }
  1033. .btnClass {
  1034. width: 110px;
  1035. }
  1036. ::v-deep .el-input__inner {
  1037. /*text-align: center;*/
  1038. padding-left: 5px;
  1039. padding-right: 1px;
  1040. }
  1041. ::v-deep .el-table th.el-table__cell {
  1042. text-align: center;
  1043. padding-left: 1px;
  1044. padding-right: 1px;
  1045. }
  1046. ::v-deep .el-table td.el-table__cell {
  1047. padding-left: 1px;
  1048. padding-right: 1px;
  1049. }
  1050. ::v-deep .el-table .cell {
  1051. padding-left: 1px;
  1052. padding-right: 1px;
  1053. }
  1054. ::v-deep input[type="number"]::-webkit-inner-spin-button,
  1055. input[type="number"]::-webkit-outer-spin-button {
  1056. -webkit-appearance: none !important;
  1057. margin: 0 !important;
  1058. }</style>