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.

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