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.

617 lines
24 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
  1. <template>
  2. <div style="margin-left: 10px;">
  3. <div>
  4. <el-button type="primary" class="btnClass" @click="prList">人员列表</el-button>
  5. </div>
  6. <div>
  7. <el-button type="primary" class="btnClass" @click="dialogVisibleSetStartDate = true">体检日期</el-button>
  8. </div>
  9. <div>
  10. <el-button type="primary" class="btnClass" @click="btnAddPr">增加人员</el-button>
  11. </div>
  12. <div>
  13. <el-button type="primary" class="btnClass" @click="btnEditPr">编辑人员</el-button>
  14. </div>
  15. <div>
  16. <el-button type="primary" class="btnClass" @click="btnDelPr">删除人员</el-button>
  17. </div>
  18. <div>
  19. <el-button type="primary" class="btnClass" @click="btnPrev">上一人</el-button>
  20. </div>
  21. <div>
  22. <el-button type="primary" class="btnClass" @click="btnNext">下一人</el-button>
  23. </div>
  24. <!--
  25. <div>
  26. <el-button type="primary" class="btnClass" @click="save">保存结果</el-button>
  27. </div>
  28. -->
  29. <div>
  30. <el-button type="primary" class="btnClass" @click="edit">修改结果</el-button>
  31. </div>
  32. <div>
  33. <el-button type="primary" class="btnClass" @click="del">删除结果</el-button>
  34. </div>
  35. <div>
  36. <el-button type="primary" class="btnClass" @click="refuseItem" style="font-size:11px;">放弃明细项目检查</el-button>
  37. </div>
  38. <div>
  39. <el-button type="primary" class="btnClass" @click="delItem">删除明细项目</el-button>
  40. </div>
  41. <div>
  42. <el-button type="primary" class="btnClass" @click="unAudit">取消审核</el-button>
  43. </div>
  44. <div>
  45. <el-button type="primary" class="btnClass" @click="btnCheckHistory">历次结果</el-button>
  46. </div>
  47. <div>
  48. <el-button type="primary" class="btnClass" @click="report">体检报告</el-button>
  49. </div>
  50. <div>
  51. <el-button type="primary" class="btnClass" @click="toSumDoctorCheck">总检</el-button>
  52. </div>
  53. <!--
  54. <div>
  55. <el-button type="primary" class="btnClass" @click="btnMakeDiagnosis">生成小结</el-button>
  56. </div>
  57. <div>
  58. <el-button type="primary" class="btnClass" @click="addSummary">新增小结</el-button>
  59. </div>
  60. <div>
  61. <el-button type="primary" class="btnClass" @click="audit">审核</el-button>
  62. </div>
  63. <div>
  64. <el-button type="primary" class="btnClass">排队</el-button>
  65. </div>
  66. -->
  67. <div v-show="doctorCheck.doctorCheckDialogVisible"
  68. :style="`z-index:2;border-radius: 10px;border: 1px solid #000;background-color:#FFF; position: absolute;top:70px;right:10px;width:300px;height: ${window.pageHeight - 42 - 5 - 30}px;opacity:1;`">
  69. <PatientRegisterList win="doctorCheck" :winAbsolute="true"/>
  70. </div>
  71. <!-- 抽屉方式遮罩层不能操作
  72. <el-drawer title="体检人员列表" :visible.sync="doctorCheck.doctorCheckDialogVisible" direction="rtl"
  73. :wrapperClosable="false" :modal="false" :size="300">
  74. <PatientRegisterList win="doctorCheck" />
  75. </el-drawer>
  76. -->
  77. <!-- 体检人员登记 -->
  78. <el-dialog
  79. :title="doctorCheck.prBase.id ? '体检人员--编辑' : '体检人员--新增'"
  80. :visible.sync="dialogVisible"
  81. :close-on-click-modal="false"
  82. fullscreen
  83. >
  84. <!-- :formInitData="formData" -->
  85. <PatientRegisterEdit style="z-index:30001;"
  86. :patientRegisterId = "doctorCheck.prBase.id"
  87. :editTimes="editTimes"
  88. :refreshRegister="refreshRegister"
  89. />
  90. </el-dialog>
  91. <el-dialog
  92. title="设置体检日期" style="z-index:30002;"
  93. :visible.sync="dialogVisibleSetStartDate"
  94. :close-on-click-modal="false" :show-close="false"
  95. width="300px"
  96. >
  97. <div style="padding: 0 20px;">
  98. <span style="margin-right:5px ;">体检日期</span>
  99. <el-date-picker v-model="medicalStartDateTemp" type="date" format="yyyy-MM-dd" value-format="yyyy-MM-dd" placeholder="出生日期"
  100. prefix-icon="" size="small" style="width:150px;"/>
  101. </div>
  102. <span slot="footer" class="dialog-footer">
  103. <el-button @click="dialogVisibleSetStartDate = false"> </el-button>
  104. <el-button type="primary" @click="btnSetStartDate"> </el-button>
  105. </span>
  106. </el-dialog>
  107. <el-dialog
  108. title="历次结果"
  109. :visible.sync="dialogVisibleCheckHistory"
  110. :close-on-click-modal="false"
  111. width="800px"
  112. >
  113. <div style="padding: 0 20px;">
  114. <el-tabs v-model="tabChoosed">
  115. <el-tab-pane label="明细结果" name="2">
  116. <CheckDetails :patientRegisterId="doctorCheck.prBase.id" />
  117. </el-tab-pane>
  118. <el-tab-pane label="项目对比" name="4">
  119. <SumItemsType :patientId="doctorCheck.prBase.patientId" />
  120. </el-tab-pane>
  121. <el-tab-pane label="横向对比" name="5">
  122. <SumItems :patientId="doctorCheck.prBase.patientId" />
  123. </el-tab-pane>
  124. <el-tab-pane label="历次综述" name="6">
  125. <SumHistory :patientId="doctorCheck.prBase.patientId" />
  126. </el-tab-pane>
  127. </el-tabs>
  128. </div>
  129. </el-dialog>
  130. </div>
  131. </template>
  132. <script>
  133. import { mapState, mapActions, mapMutations} from "vuex";
  134. import { getapi, postapi, putapi, deletapi } from "@/api/api";
  135. import { arrayExistObj,objCopy } from "../../utlis/proFunc";
  136. import PatientRegisterEdit from "../../components/patientRegister/PatientRegisterEdit.vue";
  137. import PatientRegisterList from "./PatientRegisterList.vue";
  138. import CheckDetails from "../../components/sumDoctorCheck/CheckDetails.vue";
  139. import SumItemsType from "../../components/sumDoctorCheck/SumItemsType.vue";
  140. import SumItems from "../../components/sumDoctorCheck/SumItems.vue";
  141. import SumHistory from "../../components/sumDoctorCheck/SumHistory.vue";
  142. import moment from 'moment';
  143. export default {
  144. components: {
  145. PatientRegisterEdit,
  146. PatientRegisterList,
  147. CheckDetails,
  148. SumItemsType,
  149. SumItems,
  150. SumHistory
  151. },
  152. props:["optGrant","addSummary","btnMakeDiagnosis","save","audit","unAudit"],
  153. data() {
  154. return {
  155. medicalStartDate:'', //设置体检日期
  156. medicalStartDateTemp:'', //设置体检日期 临时体检日期
  157. medicalStartDateDatas:[], // 设置体检日期 的人员信息登记信息,按登记日期排序 (用于上一人,下一人)
  158. dialogVisibleSetStartDate:false, //设置体检日期窗口
  159. editTimes:0,
  160. nextTodialogVisible:false, //设置完体检日期是否显示 体检人员登记窗口
  161. dialogVisible:false, //体检人员登记窗口
  162. formData:{
  163. registerManType:'doctor', //登记人员类型,客服:customer 医生:doctor 支持在医生诊台处理登记人员
  164. id: "", //id
  165. photo:'', //照片
  166. patientId: "00000000-0000-0000-0000-000000000000", //档案号ID 选择了档案就传档案号,未选就传00000-0000...
  167. patientNo: "", //档案号
  168. customerOrgId: ["00000000-0000-0000-0000-000000000000"], //单位编号 默认个人
  169. customerOrgGroupId: null, //分组
  170. medicalPackageId: null, //套餐
  171. patientName: "", //姓名
  172. birthDate: null, //日期型
  173. sexId: "U", //性别 默认未知U
  174. age: null, //年龄
  175. jobCardNo: "", //工卡号
  176. medicalCardNo: "", //体检卡号
  177. maritalStatusId: "9", //婚姻状况 默认未知
  178. medicalTypeId: null, //体检类别
  179. personnelTypeId: null, //人员类别
  180. jobPost: "", //职务
  181. jobTitle: "", //职称
  182. salesman: "", //介绍人
  183. sexHormoneTermId: null, //性激素期限
  184. isNameHide: "N", //隐藏姓名
  185. isPhoneFollow: "N", //电话随访
  186. isVip: "N", //vip客户
  187. remark: "", //
  188. isLock: "N", //是否锁住
  189. completeFlag: "1", //完成标志 0:预登记,1:未检,2:部份已检,3:已总检 【创建编辑时不操作】
  190. isMedicalStart: "N", //体检开始标志 【创建编辑时不操作】
  191. patientRegisterNo: "", //条码号 【创建编辑时不操作】
  192. medicalTimes: 1, //条码号 【创建编辑时不操作】
  193. organizationUnitId: null, //体检中心
  194. address: "", //地址
  195. email: "", //email
  196. idNo: "", //身份证号
  197. telephone: "", //电话
  198. mobileTelephone: "", //手机号
  199. nationId: null, //民族编号
  200. birthPlaceId: null, //籍惯(出生地)
  201. postalCode: "", //邮编
  202. creatorId: null,
  203. creationTime: "",
  204. lastModificationTime: "",
  205. lastModifierId: null,
  206. isVipBox: false, //vip客户
  207. isNameHideBox: false, //隐藏姓名
  208. isPhoneFollowBox: false, //电话随访
  209. isLockBox: false, //是否锁住
  210. customerOrgRegisterId: null,
  211. isMaxMedicalTimes: 'N',
  212. medicalStartDate:null,
  213. }, //单位 记录 目前新增与更新是一致
  214. formInitData:{},
  215. medicalStartDateLoadOpts:{ //按体检日期 查询参数
  216. totalCount:0,
  217. skipCount:0,
  218. maxResultCount:50000,
  219. },
  220. displayPrList:false, //是否显示人员列表
  221. dialogVisibleCheckHistory:false, //历次结果
  222. tabChoosed:'2',
  223. };
  224. },
  225. created() {
  226. this.formInitData = Object.assign({},this.formData)
  227. this.medicalStartDateTemp = new Date()
  228. },
  229. //挂载完成
  230. mounted() {
  231. },
  232. computed: {
  233. ...mapState(["window", "dict", "patientRegister", "doctorCheck","sumDoctorCheck"]),
  234. },
  235. methods: {
  236. ...mapActions(["getCustomerOrgGroup"]),
  237. ...mapMutations(['doctorCheckPrBaseInit']),
  238. prList() {
  239. // console.log('this.doctorCheck.doctorCheckDialogVisible', this.doctorCheck.doctorCheckDialogVisible)
  240. this.doctorCheck.doctorCheckDialogVisible = true
  241. // console.log('this.doctorCheck.doctorCheckDialogVisible2', this.doctorCheck.doctorCheckDialogVisible)
  242. },
  243. //设置体检日期
  244. btnSetStartDate(){
  245. this.medicalStartDate = this.medicalStartDateTemp
  246. this.dialogVisibleSetStartDate = false
  247. if(this.nextTodialogVisible) this.btnAddPr()
  248. },
  249. //人员登记
  250. btnAddPr(){
  251. // debugger
  252. if(this.medicalStartDate){
  253. //this.formData = Object.assign({},this.formInitData,{medicalStartDate:moment(this.medicalStartDate).format('yyyy-MM-DD')})
  254. this.doctorCheck.prBase.id = ''
  255. this.dialogVisible = true
  256. this.patientRegister.photo = ''
  257. setTimeout(() =>{
  258. this.editTimes++
  259. },100)
  260. }else{
  261. this.nextTodialogVisible = true
  262. this.dialogVisibleSetStartDate = true
  263. }
  264. },
  265. //人员删除
  266. btnDelPr(){
  267. if(!this.doctorCheck.prBase.id){
  268. this.$message.warning("未选中要删除的人员记录")
  269. return
  270. }
  271. let id = this.doctorCheck.prBase.id
  272. this.$confirm("此操作将永久删除该记录, 是否继续?", "提示", {
  273. confirmButtonText: "是",
  274. cancelButtonText: "否",
  275. type: "warning",
  276. }).then(() => {
  277. //console.log('{patientRegisterIds}',{patientRegisterIds})
  278. return postapi(`/api/app/patient-register/delete-many`, {patientRegisterIds:[id]})
  279. }).then((res) => {
  280. if(res.code != -1){
  281. console.log("操作成功!")
  282. this.doctorCheckPrBaseInit();
  283. let lfind = arrayExistObj(this.medicalStartDateDatas,'id',id)
  284. if(lfind > -1) this.medicalStartDateDatas.splice(lfind,1)
  285. }
  286. }).catch((err) => {
  287. if (err == "cancel") {
  288. // this.$message.info("已取消删除");
  289. console.log('已取消删除')
  290. }
  291. });
  292. },
  293. //人员编辑
  294. btnEditPr() {
  295. if(!this.doctorCheck.prBase.id){
  296. this.$message.warning("未选中要编辑的人员记录")
  297. return
  298. }
  299. // this.patientRegister.patientRegisterRd = Object.assign({},this.doctorCheck.prBase)
  300. // this.formData = Object.assign({},this.doctorCheck.prBase)
  301. //console.log(this.patientRegister.patientRegisterRd,this.patientRegister.prList)
  302. this.dialogVisible = true;
  303. this.editTimes++; //触发表单窗口,数据更新
  304. },
  305. // 上一人
  306. btnPrev(){
  307. if(!this.medicalStartDate){
  308. this.$message.warning("请先设置体检日期")
  309. return
  310. }
  311. if(this.medicalStartDateDatas.length == 0) {
  312. this.$message.warning("当前设置的体检日期,无体检人员信息")
  313. return
  314. }
  315. let lfind = -1
  316. if(this.doctorCheck.prBase.id){
  317. lfind = arrayExistObj(this.medicalStartDateDatas,'id',this.doctorCheck.prBase.id)
  318. if(lfind == 0){
  319. this.$message.warning("已是第一个人")
  320. return
  321. }
  322. if(lfind > - 1) lfind--
  323. }
  324. // 未选中,未找到,显示第一人
  325. if(lfind < 0){
  326. if(this.medicalStartDateDatas && this.medicalStartDateDatas.length > 0){
  327. this.findPR(this.medicalStartDateDatas[0])
  328. }
  329. }else{
  330. if(this.medicalStartDateDatas && this.medicalStartDateDatas.length > 0){
  331. this.findPR(this.medicalStartDateDatas[lfind])
  332. }
  333. }
  334. },
  335. // 下一人
  336. btnNext(){
  337. if(!this.medicalStartDate){
  338. this.$message.warning("请先设置体检日期")
  339. return
  340. }
  341. if(this.medicalStartDateDatas.length == 0) {
  342. this.$message.warning("当前设置的体检日期,无体检人员信息")
  343. return
  344. }
  345. let lfind = 0
  346. if(this.doctorCheck.prBase.id){
  347. lfind = arrayExistObj(this.medicalStartDateDatas,'id',this.doctorCheck.prBase.id)
  348. lfind++
  349. }
  350. // 未选中,未找到,显示第一人
  351. if(this.medicalStartDateDatas.length > lfind){
  352. this.findPR(this.medicalStartDateDatas[lfind])
  353. }else{
  354. this.$message.warning("已是最后一人")
  355. }
  356. },
  357. //查询找到相关信息处理
  358. findPR(rd){
  359. this.doctorCheck.prBase = Object.assign({},this.doctorCheck.prBase,rd)
  360. this.patientRegister.photo = rd.photo
  361. },
  362. //刷新或添加列表数据
  363. refreshRegister(patientRegister){
  364. console.log('编辑/新增的 form :',patientRegister)
  365. this.doctorCheck.prBase = Object.assign({},patientRegister)
  366. this.patientRegister.photo = patientRegister.photo
  367. },
  368. //修改结果
  369. edit() {
  370. let ret = this.optGrant('edit')
  371. if (ret) {
  372. this.$message.warning(ret)
  373. return
  374. }
  375. this.doctorCheck.RegisterCheckEdit.completeFlag = '0'
  376. },
  377. //删除结果
  378. del() {
  379. let ret = this.optGrant('del')
  380. if (ret) {
  381. this.$message.warning(ret)
  382. return
  383. }
  384. postapi('/api/app/registercheck/updatecompletemany', [{ registerCheckId: this.doctorCheck.RegisterCheckEdit.id, completeFlag: '0' }])
  385. .then((res) => {
  386. console.log("del", res.data);
  387. if (res.code != -1) {
  388. this.doctorCheck.RegisterCheckEdit.completeFlag = '0';
  389. let lfind = arrayExistObj(this.doctorCheck.RegisterCheckList,'id',this.doctorCheck.RegisterCheckEdit.id)
  390. if(lfind > -1) this.doctorCheck.RegisterCheckList[lfind].completeFlag = '0'
  391. console.log("操作成功!");
  392. }
  393. });
  394. },
  395. //放弃明细项目检查
  396. refuseItem() {
  397. let ret = this.optGrant('refuseItem')
  398. if (ret) {
  399. this.$message.warning(ret)
  400. return
  401. }
  402. // console.log('this.doctorCheck.checkItem',this.doctorCheck.checkItem)
  403. if(!this.doctorCheck.checkItem){
  404. this.$message.warning("请选择要操作的明细项目")
  405. return
  406. }
  407. if(!this.doctorCheck.checkItem.itemId){
  408. this.$message.warning("请选择要操作的明细项目")
  409. return
  410. }
  411. let lfind = arrayExistObj(this.doctorCheck.checkItemList, 'itemId', this.doctorCheck.checkItem.itemId)
  412. if (lfind == -1) {
  413. this.$message.warning("请选择要操作的明细项目")
  414. return
  415. }
  416. this.doctorCheck.checkItemList[lfind].result = "放弃检查"
  417. },
  418. //删除明细项目
  419. delItem() {
  420. let ret = this.optGrant('delItem')
  421. if (ret) {
  422. this.$message.warning(ret)
  423. return
  424. }
  425. if(!this.doctorCheck.checkItem){
  426. this.$message.warning("请选择要删除的明细项目")
  427. return
  428. }
  429. if(!this.doctorCheck.checkItem.itemId){
  430. this.$message.warning("请选择要删除的明细项目")
  431. return
  432. }
  433. let lfind = arrayExistObj(this.doctorCheck.checkItemList, 'itemId', this.doctorCheck.checkItem.itemId)
  434. if (lfind == -1) {
  435. this.$message.warning("请选择要删除的明细项目")
  436. return
  437. }
  438. this.$confirm("此操作将永久删除该记录, 是否继续?", "提示", {
  439. confirmButtonText: "是",
  440. cancelButtonText: "否",
  441. type: "warning",
  442. }).then(() => {
  443. return postapi(`/api/app/registercheckitem/deleteregistercheckitem?RegisterCheckId=${this.doctorCheck.checkItem.registerCheckId}&ItemId=${this.doctorCheck.checkItem.itemId}`)
  444. }).then(res => {
  445. if (res.code != -1) {
  446. this.doctorCheck.checkItemList.splice(lfind, 1);
  447. this.doctorCheck.checkItem.itemId = ''
  448. }
  449. }).catch((err) => {
  450. if (err == "cancel") {
  451. this.$message.info("已取消");
  452. }else{
  453. this.$message({ type: "error", message: `项目明细删除失败,原因:${err}` });
  454. }
  455. });
  456. },
  457. // 历次结果
  458. btnCheckHistory() {
  459. if(!this.doctorCheck.prBase.id) return;
  460. this.dialogVisibleCheckHistory = true;
  461. },
  462. //体检报告
  463. report() {
  464. if(!this.$peisAPI) {
  465. this.$message.info("此功能,需要在壳客户端才可运行!")
  466. return
  467. }
  468. ///3a0c990e-5756-2dc0-19d5-69a617fe4048
  469. let ReportCode = '0005';
  470. let token = window.sessionStorage.getItem('token');
  471. let user = window.sessionStorage.getItem('user');
  472. let toOutShell = {
  473. ReportCode, token,
  474. preViewCanPrint: this.doctorCheck.prBase.isAudit, //this.sumDoctorCheck.sumPREdit.isAudit
  475. Parameters: [
  476. { Name: 'printer', Value: user },
  477. { Name: 'LTS', Value: 'Y' }, //Y、N N只看不能打印
  478. { Name: 'hisLog', Value: 'pic/hisLog.jpg' },
  479. { Name: "peisReportFirstPage", Value: "pic/peisReportFirstPage.jpg" },
  480. { Name: "peisReportPageHeader", Value: "pic/peisReportPageHeader.jpg" },
  481. { Name: "peisReportPageFooter", Value: "pic/peisReportPageFooter.jpg" }
  482. ],
  483. };
  484. postapi(`/api/app/printreport/getpeisreport?PatientRegisterId=${this.doctorCheck.prBase.id}`)
  485. .then((res) => {
  486. if (res.code != -1) {
  487. toOutShell.ReportTable = res.data;
  488. console.log('JSON.stringify(toOutShell)', JSON.stringify(toOutShell));
  489. return this.$peisAPI.printPre(JSON.stringify(toOutShell));
  490. }
  491. })
  492. .catch(err => {
  493. this.$message.warning(err);
  494. });
  495. },
  496. //总检
  497. toSumDoctorCheck() {
  498. this.sumDoctorCheck.sumPREdit = Object.assign({},this.doctorCheck.prBase)
  499. this.$router.push({ path: "/sumDoctorCheck" });
  500. },
  501. },
  502. //监听事件()
  503. watch: {
  504. //1级单位值改变,分组改变
  505. "patientRegister.query.CustomerOrgParentId"(newVal, oldVal) {
  506. console.log(
  507. "watch patientRegister.query.CustomerOrgParentId newVal:",
  508. newVal,
  509. " oldVal:",
  510. oldVal
  511. );
  512. if (newVal != oldVal && newVal !== this.dict.personOrgId) {
  513. this.getCustomerOrgGroup(newVal);
  514. }
  515. },
  516. // 设置体检日期
  517. "medicalStartDate":{
  518. immediate:true,
  519. handler(newVal,oldVal){
  520. if(newVal){
  521. let body = {
  522. customerOrgs: [
  523. {
  524. startDate: moment(this.medicalStartDate).format('yyyy-MM-DD'),
  525. endDate: moment(this.medicalStartDate).format('yyyy-MM-DD'),
  526. dateType: '2' //体检日期
  527. }
  528. ],
  529. maxResultCount: 1000
  530. }
  531. postapi('/api/patientregister/getpeisrecordlist',body).then(res => {
  532. if(res.code != -1) this.medicalStartDateDatas = res.data.items
  533. })
  534. }else{
  535. this.medicalStartDateDatas = []
  536. }
  537. }
  538. },
  539. },
  540. };
  541. </script>
  542. <style scoped>
  543. @import '../../assets/css/global_button.css';
  544. .btnClass {
  545. margin-top: 1px;
  546. width: 100px;
  547. height: 26px;
  548. padding: 5px 5px; /*原始 默认值 10px 10px */
  549. }
  550. </style>