wanglaoye 1 anno fa
parent
commit
6f11b505e3

+ 1 - 1
package.json

@@ -37,6 +37,7 @@
     "electron-log": "^4.4.8",
     "electron-updater": "^4.3.9",
     "element-ui": "^2.15.13",
+    "vue": "^2.6.12",
     "js-cookie": "^3.0.5",
     "lodash": "^4.17.21",
     "moment": "^2.29.4",
@@ -53,7 +54,6 @@
     "unused-filename": "^4.0.1",
     "url": "^0.11.0",
     "uuid": "^3.3.2",
-    "vue": "^2.6.12",
     "vue-demi": "^0.14.0",
     "vue-electron": "^1.0.6",
     "vue-infinite-loading": "^2.4.5",

+ 1 - 1
src/main/windows/tray.js

@@ -49,7 +49,7 @@ export default async function tray({ type, menu }) {
   }
   // console.log(JSON.stringify(menu))
   let n = Menu.buildFromTemplate(trayMenu)
-  ntray.setToolTip('星空路人医生端')
+  ntray.setToolTip('星空路人-患者签到')
   ntray.setContextMenu(n)
 
 

+ 13 - 32
src/renderer/components/print/index.vue

@@ -7,11 +7,13 @@
         <div class="text-center font-bold" style="font-size: 18px;">随访单</div>
         <div class="mt-2" style="display: flex;">
           <div><span style="font-size: 11px;">姓名 : </span><span class="font-bold">{{ obj.username }}</span></div>
-          <div style="margin: auto;"><span style="font-size: 11px;">性别 : </span><span class="font-bold"> {{ obj.sex }}</span></div>
+          <div style="margin: auto;"><span style="font-size: 11px;">性别 : </span><span class="font-bold"> {{ obj.sex
+          }}</span></div>
           <div><span style="font-size: 11px;">年龄 : </span><span class="font-bold">{{ obj.age }}</span></div>
         </div>
         <div class="mt" style="display: flex;">
-          <div><span style="font-size: 11px;">慢病类型 : </span><span class="font-bold">{{ obj.chronicDiseaseType == '合并症' ? '糖尿病 / 高血压' : obj.chronicDiseaseType
+          <div><span style="font-size: 11px;">慢病类型 : </span><span class="font-bold">{{ obj.chronicDiseaseType == '合并症' ?
+            '糖尿病 / 高血压' : obj.chronicDiseaseType
           }}</span>
           </div>
         </div>
@@ -96,21 +98,8 @@
 <script>
 
 import { timeTrans } from '@/utils/common'
-import { mapActions, mapGetters } from 'vuex'
-import { ipcRenderer } from 'electron'
-// import config from "@/utils/config";
+import { mapActions } from 'vuex'
 import path from 'path'
-let fullPath = '', ipc;
-// if (config.type != "loc") {
-//   const { ipcRenderer } = require("electron");
-//   ipc = ipcRenderer;
-//   fullPath = './index.html';
-//   // fullPath = path.join(__static, 'print.html');
-// } else {
-//   fullPath = "./index.html";
-// }
-ipc = ipcRenderer;
-fullPath = path.join(__static, 'pm.html');
 export default {
   name: 'Pinter',
   props: {
@@ -129,7 +118,7 @@ export default {
   },
   data() {
     return {
-      fullPath: fullPath,
+      fullPath: path.join(__static, 'pm.html'),
       codemsg: {}, time: '', obj: {}, timeTrans
     }
   },
@@ -138,30 +127,23 @@ export default {
       this.sethtml(this.printerData)
     },
     printerData(newValue, oldValue) {
-      // this.sethtml(this.printerData)
     },
   },
   mounted() {
     let t = this
     const webview = this.$refs.printWebview;
-    // webview.addEventListener('console-message', e => {
-    //可以打印出webview中所需要打印的内容
-    // console.log('webview: ' + JSON.stringify(e.message));
-    // });
-   
     webview.addEventListener('ipc-message', (event) => {
-      console.log(event)
+      // console.log(event)
       if (event.channel === 'webview-print-do') {
         webview.print({
           silent: true,
           printBackground: true,
           deviceName: t.printerObj.displayName
-        }).then((res, r) => {
-          console.log(res, r)
+        }).then((res) => {
+          console.log(res)
         }).catch((err) => {
           console.log(err)
         }).finally(() => {
-          console.log(1)
           t.$notify({
             title: '打印完成',
             message: '请取走你的小票',
@@ -180,8 +162,7 @@ export default {
       setloadingState: 'global/setloadingState',
     }),
     sethtml(obj) {
-      let t= this
-      // t.setloadingState(true)
+      let t = this
       let codemsg = {
         0: '您近期需要随访',
         1: '您近期需要随访,系统中未登记',
@@ -202,11 +183,11 @@ export default {
       this.obj = obj;
       this.time = time
       this.codemsg = codemsg
-      let html1 =''
-      setTimeout(()=>{
+      let html1 = ''
+      setTimeout(() => {
         html1 = document.getElementsByClassName('printWebview1')[0].innerHTML
         t.printRender(html1);
-      },500)
+      }, 500)
     },
     printRender(html) {
       let t = this

+ 0 - 611
src/renderer/components/userinfo/visit_tips.vue

@@ -1,611 +0,0 @@
-<template>
-  <div>
-    <el-dialog top="20px" :close-on-click-modal="false" :show-close="false" :visible.sync="dialogshow" width="850px"
-      :before-close="close">
-      <div slot="title">
-        <div class="centerd">
-          <span class="fs-26 font-bold">随访查询</span>
-          <div class="ml-auto">
-            <el-button v-if="pdata.code == 0 ||
-              pdata.code == 2 ||
-              pdata.code == 3 ||
-              pdata.code == 4
-              " @click="$emit('kanzhen', pdata.info)" type="primary" icon="el-icon-edit" plain>
-              看诊
-            </el-button>
-            <el-button @click="close" type="warning" icon="el-icon-close" plain>
-              关闭
-            </el-button>
-          </div>
-        </div>
-      </div>
-      <div style="margin: -10px 0px;">
-        <el-card v-if="pdata.info">
-          <div class="">
-            <div class="title fs-20 mb-1">患者信息</div>
-            <el-descriptions title="" :column="3" border size="medium">
-              <el-descriptions-item label="姓名">
-                <span class="font-bold fs-18 text-dark">
-                  {{ pdata.info.username }}
-                </span>
-              </el-descriptions-item>
-
-              <el-descriptions-item label="性别">
-                <el-tag size="small" :type="getIDCardInfo(pdata.info.idCard).sex == 1 ? '' : 'danger'
-                  ">
-                  <span :class="getIDCardInfo(pdata.info.idCard).sex == 1
-                    ? 'el-icon-male'
-                    : 'el-icon-female'
-                    "></span>
-                </el-tag>
-              </el-descriptions-item>
-
-              <el-descriptions-item label="手机号" v-if="pdata.info.phone">
-                {{ pdata.info.phone }}
-              </el-descriptions-item>
-              <el-descriptions-item label="慢病类型" v-if="pdata.info.chronicDiseaseType">
-                <span class="font-bold fs-18 text-dark">
-                  {{
-                    CHRONIC_DISEASE_TYPE[pdata.info.chronicDiseaseType - 1]
-                      .label
-                  }}
-                </span>
-              </el-descriptions-item>
-              <el-descriptions-item label="年龄">
-                {{ getIDCardInfo(pdata.info.idCard).age }}
-              </el-descriptions-item>
-              <el-descriptions-item label="身份证号" v-if="pdata.info.idCard">
-                {{ pdata.info.idCard }}
-              </el-descriptions-item>
-              <el-descriptions-item label="糖尿病病龄" v-if="pdata.info.chronicDiseaseType == 2 ||
-                pdata.info.chronicDiseaseType == 3
-                ">
-                {{
-                  (
-                    (new Date().getTime() -
-                      new Date(pdata.info.tnbIllTime || new Date()).getTime()) /
-                    31536000000
-                  ).toFixed(0)
-                }}年
-              </el-descriptions-item>
-              <el-descriptions-item label="高血压病龄" v-if="pdata.info.chronicDiseaseType == 1 ||
-                  pdata.info.chronicDiseaseType == 3
-                  ">
-                {{
-                  (
-                    (new Date().getTime() -
-                      new Date(pdata.info.gxyIllTime || new Date()).getTime()) /
-                    31536000000
-                  ).toFixed(0)
-                }}年
-              </el-descriptions-item>
-              <!-- <el-descriptions-item label="医保类型">
-                <span class="font-bold fs-18 text-dark">
-                  {{
-                    MEDICAL_INSURANCE_TYPE[pdata.info.medicalInsuranceType - 1]
-                      .label
-                  }}
-                </span>
-              </el-descriptions-item>
-              <el-descriptions-item label="社保卡号">
-                {{ pdata.info.socialInsurance }}
-              </el-descriptions-item>
-             
-              <el-descriptions-item label="健康指数">
-                {{
-                  pdata.info.healthIndex
-                    ? 1000 - pdata.info.healthIndex
-                    : '未计算'
-                }}
-              </el-descriptions-item> -->
-              <el-descriptions-item label="联系地址" v-if="pdata.info.town">
-                {{ pdata.info.town }}{{ pdata.info.village
-                }}{{ pdata.info.addressDetail }}
-              </el-descriptions-item>
-            </el-descriptions>
-          </div>
-        </el-card>
-        <el-row :gutter="16">
-          <el-col :span="24">
-            <el-card class="" :body-style="{ height: '200px' }">
-              <div class="mb-1 fs-20 font-bold text-dark d-flex">
-                <span>随访查询结果</span>
-              </div>
-              <!-- 0需要随访 -->
-              <div v-if="pdata.code == 0" style="margin-top: -80px">
-                <el-result icon="warning">
-                  <template slot="title">
-                    <span class="fs-20">
-                      该患者
-                      <span class="text-error fs-24 font-bold">需要随访</span>
-                    </span>
-                  </template>
-                  <template slot="extra">
-                    <el-button type="primary" size="medium" class="mt-n2" @click="$emit('kanzhen', pdata.info)">
-                      去看诊
-                    </el-button>
-                  </template>
-                </el-result>
-              </div>
-              <!-- 1 需要随访 未登记 -->
-              <div v-if="pdata.code == 1" style="margin-top: -80px">
-                <el-result icon="warning">
-                  <template slot="title">
-                    <span class="fs-20">
-                      该患者近期需要随访,但在本系统中
-                      <span class="text-error fs-24 font-bold">未登记</span>
-                    </span>
-                  </template>
-                  <template slot="extra">
-                    <el-button type="primary" size="medium" class="mt-n2" @click="$emit('dengji')">
-                      去登记
-                    </el-button>
-                  </template>
-                </el-result>
-              </div>
-              <!--  2不需要随访 -->
-              <div v-if="pdata.code == 2" style="margin-top: -50px">
-                <el-result icon="success">
-                  <template slot="title">
-                    <span class="fs-20">
-                      该患者近期
-                      <span class="text-green fs-24 font-bold">已完成随访</span>
-                      ,下次随访时间
-                      <span class="text-green fs-24 font-bold">
-                        {{ resdate }}
-                      </span>
-                    </span>
-                  </template>
-                </el-result>
-              </div>
-              <!-- 3患者需要随访未在电子健康档案建档 -->
-              <div v-if="pdata.code == 3" style="margin-top: -50px">
-                <el-result icon="error">
-                  <template slot="title">
-                    <span class="fs-20">
-                      近期
-                      <span class="text-error fs-24 font-bold">需要随访</span>
-                      ,电子健康档案
-                      <span class="text-error fs-24 font-bold">未建档</span>
-                      !
-                    </span>
-                  </template>
-                </el-result>
-              </div>
-              <!-- 4近期不需要随访,未在电子健康档案建档 -->
-              <div v-if="pdata.code == 4" style="margin-top: -50px">
-                <el-result icon="success">
-                  <template slot="title">
-                    <span class="fs-20">
-                      近期
-                      <span class="text-green fs-24 font-bold">不需要随访</span>
-                      , 下次随访时间
-                      <span class="text-green fs-24 font-bold">
-                        {{ resdate }}
-                      </span>
-                      , 电子健康档案
-                      <span class="text-error fs-24 font-bold">未建档</span>
-                      !
-                    </span>
-                  </template>
-                </el-result>
-              </div>
-              <!-- 5未登记且未建档 -->
-              <div v-if="pdata.code == 5" style="margin-top: -50px">
-                <el-result icon="error">
-                  <template slot="title">
-                    <span class="fs-20">
-                      患者在系统中
-                      <span class="text-error fs-24 font-bold">未登记</span>
-                      ,电子健康档案
-                      <span class="text-error fs-24 font-bold">未建档</span>
-                      !
-                    </span>
-                  </template>
-                </el-result>
-              </div>
-              <!-- 6不需要随访 未登记 -->
-              <div v-if="pdata.code == 6" style="margin-top: -50px">
-                <el-result icon="error">
-                  <template slot="title">
-                    <span class="fs-20">
-                      患者不需要随访,下次随访 <span class="text-error fs-24 font-bold">{{ resdate }}</span>,在系统中
-                      <span class="text-error fs-24 font-bold">未登记</span>
-                      !
-                    </span>
-                  </template>
-                </el-result>
-              </div>
-              <!-- 7 不是电子健康档案中不是两慢病 -->
-              <div v-if="pdata.code == 7" style="margin-top: -50px">
-                <el-result icon="error">
-                  <template slot="title">
-                    <span class="fs-20">
-                      该患者在电子健康档案中
-                      <span class="text-error fs-24 font-bold">不是两慢病</span>
-                      患者,请跟患者确认!
-                    </span>
-                  </template>
-                </el-result>
-              </div>
-              <!-- 8 不是该患者在本系统中不是两慢病 -->
-              <div v-if="pdata.code == 8" style="margin-top: -50px">
-                <el-result icon="error">
-                  <template slot="title">
-                    <span class="fs-20">
-                      该患者在本系统中
-                      <span class="text-error fs-24 font-bold">不是两慢病</span>
-                      患者,请跟患者确认!
-                    </span>
-                  </template>
-                </el-result>
-              </div>
-              <div v-if="pdata.code > 8 || pdata.code < 0">
-                <el-result icon="warning" style="margin-top: -50px">
-                  <template slot="title">
-                    <span class="fs-20">
-                      该患者
-                      <span class="text-error fs-24 font-bold">查询出错</span>
-                    </span>
-                  </template>
-                </el-result>
-              </div>
-            </el-card>
-          </el-col>
-          <el-col :span="12" v-if="hospitalinfo.province + hospitalinfo.city + hospitalinfo.area ==
-            '浙江省杭州市桐庐县' || hospitalinfo.province + hospitalinfo.city + hospitalinfo.area ==
-            '浙江省宁波市慈溪市'
-            ">
-            <el-card :body-style="{ height: '190px' }">
-              <div class="title fs-20">体检检查</div>
-              <div v-if="Number(pdata.istj)" style="margin-top: -50px">
-                <el-result icon="success">
-                  <template slot="title">
-                    <span class="fs-20">
-                      该患者
-                      <span class="text-green fs-24 font-bold">已完成</span>
-                      体检
-                    </span>
-                  </template>
-                </el-result>
-              </div>
-              <div v-if="!Number(pdata.istj)" style="margin-top: -50px">
-                <el-result icon="warning">
-                  <template slot="title">
-                    <span class="fs-20">
-                      该患者今年
-                      <span class="text-error fs-24 font-bold">未体检</span>
-                      ,请提醒患者去体检!
-                    </span>
-                  </template>
-                </el-result>
-              </div>
-            </el-card>
-          </el-col>
-          <el-col :span="12" v-if="hospitalinfo.province + hospitalinfo.city + hospitalinfo.area ==
-            '浙江省杭州市桐庐县' || hospitalinfo.province + hospitalinfo.city + hospitalinfo.area ==
-            '浙江省宁波市慈溪市'
-            ">
-            <el-card class="" :body-style="{ height: '190px' }">
-              <div class="fs-20 font-bold text-dark d-flex" style="margin-bottom: 10px">
-                <span>患者签约</span>
-                <div class="ml-auto centerY" v-if="pdata.tlSign && pdata.tlSign.qyysid">
-                  <span class="text-green">已签约</span>
-                </div>
-              </div>
-              <div v-if="pdata.tlSign" style="position: relative; height: 80%">
-                <div style="font-size: 100px; z-index: 0; opacity: 0.4" class="position-50 text-green el-icon-success">
-                </div>
-                <div style="z-index: 999; position: absolute; width: 100%">
-                  <div class="centerY">
-                    <div class="centerY w-50" style="margin-top: 15px">
-                      <div class="w-40">签约医生:</div>
-                      <div class="w-60 font-bold fs-18 text-dark">
-                        {{ pdata.tlSign.qyysxm }}
-                      </div>
-                    </div>
-                    <div class="centerY w-50" v-if="pdata.tlSign.qyysid" style="margin-top: 15px">
-                      <div class="w-40">医生ID:</div>
-                      <div class="w-60 font-bold fs-18 text-dark">
-                        {{ pdata.tlSign.qyysid }}
-                      </div>
-                    </div>
-                  </div>
-                  <div class="centerY" v-if="pdata.tlSign.qytdmc" style="margin-top: 15px">
-                    <div class="w-20">签约团队:</div>
-                    <div class="w-80 font-bold fs-18 text-dark">
-                      {{ pdata.tlSign.qytdmc }}
-                    </div>
-                  </div>
-                  <div class="centerY" v-if="pdata.tlSign.jgmc" style="margin-top: 15px">
-                    <div class="w-20">签约机构:</div>
-                    <el-tooltip class="item" effect="dark" :content="pdata.tlSign.jgmc" placement="top">
-                      <div class="w-80 font-bold fs-18 text-dark text-view1">
-                        {{ pdata.tlSign.jgmc }}
-                      </div>
-                    </el-tooltip>
-                  </div>
-                  <div class="centerY" v-if="pdata.tlSign.qyrq" style="margin-top: 15px">
-                    <div class="w-20">签约时间:</div>
-                    <div class="w-80 font-bold fs-18 text-dark">
-                      {{ pdata.tlSign.qyrq }}
-                    </div>
-                  </div>
-                  <div class="centerY" v-if="pdata.tlSign.sfyx" style="margin-top: 15px">
-                    <div class="w-20">是否有效:</div>
-                    <div class="w-80 font-bold fs-18 text-dark">
-                      {{ pdata.tlSign.sfyx }}
-                    </div>
-                  </div>
-                </div>
-              </div>
-              <div v-else style="margin-top: -50px">
-                <el-result icon="warning">
-                  <template slot="title">
-                    <span class="fs-20">
-                      该患者
-                      <span class="text-error fs-24 font-bold">未签约</span>
-                      !
-                    </span>
-                  </template>
-                </el-result>
-              </div>
-            </el-card>
-          </el-col>
-        </el-row>
-      </div>
-    </el-dialog>
-  </div>
-</template>
-// switch (res.code) {
-  //   case 0:
-  //     // 需要随访
-  //     this.$notify({
-  //       title: '需随访',
-  //       message: res.msg,
-  //       type: 'warning',
-  //     })
-  //     this.elementValue.patientQueryForm.patientType = 'all'
-  //     this.elementValue.patientList = [res.data]
-  //     break
-  //   case 1:
-  //     // 需要随访 未登记
-  //     this.$notify({
-  //       title: '未登记',
-  //       message: res.msg,
-  //       type: 'error',
-  //     })
-  //     this.openPatientModal('add')
-  //     break
-  //   case 2:
-  //     //不需要随访
-  //     this.$notify({
-  //       title: '消息',
-  //       message: res.msg,
-  //       type: 'success',
-  //     })
-  //     break
-  //   case 3:
-  //     //患者需要随访未在电子健康档案建档
-  //     this.$notify({
-  //       title: '需随访',
-  //       message: res.msg,
-  //       type: 'error',
-  //     })
-  //     this.elementValue.patientQueryForm.patientType = 'all'
-  //     this.elementValue.patientList = [res.data]
-  //     break
-  //   case 4:
-  //     //近期不需要随访,未在电子健康档案建档
-  //     this.$notify({
-  //       title: '不需要随访',
-  //       message: res.msg,
-  //       type: 'success',
-  //     })
-  //     break
-  //   case 5:
-  //     //未登记且未建档
-  //     this.$notify({
-  //       title: '未登记',
-  //       message: res.msg,
-  //       type: 'error',
-  //     })
-  //     // this.openPatientModal(0)
-  //     break
-  //   case 6:
-  //     // 不需要随访 未登记
-  //     this.$notify({
-  //       title: '未登记',
-  //       message: res.msg,
-  //       type: 'error',
-  //     })
-  //     // this.openPatientModal(0)
-  //     break
-  //   default:
-  //     this.$notify({
-  //       title: '错误',
-  //       message: res.msg,
-  //       type: 'error',
-  //     })
-  //     break
-  // }
-<script>
-
-// let res = {
-//   code: 6,
-//   msg: '该患者近期不需要随访,[高血压随访时间:2022-12-08 00:00:00]请确认是否在本系统登记',
-//   data: null,
-//   data2: {
-//     istj: '',
-//     tlSign: '',
-//   },
-// }
-// let res = {
-//   code:6,
-//   msg: '该患者近期不需要随访,[高血压随访时间:2022-12-08 00:00:00]请确认是否在本系统登记',
-//   data: {
-//     id: 898,
-//     username: '汤思退',
-//     birthday: '1934-06-15',
-//     age: 89,
-//     sex: 2,
-//     idCard: '330222193406153149',
-//     socialInsurance: '334569875214695235',
-//     phone: '15724268705',
-//     nation: '汉族',
-//     culture: '高中',
-//     occupation: '自由职业',
-//     marriage: '已婚',
-//     address: '["330000","330200","330282"]',
-//     addressDetail: '4组',
-//     province: '浙江省',
-//     city: '宁波市',
-//     area: '慈溪市',
-//     town: '附海镇',
-//     village: '四界村',
-//     healthIndex: 200,
-//     complication: '[]',
-//     acutecomplications: null,
-//     medicalInsuranceType: 1,
-//     chronicDiseaseType: 3,
-//     gxyIllTime: null,
-//     tnbIllTime: '2021-09-26 00:00:00',
-//     diseaseHistory: null,
-//     familyHistory: null,
-//     saltiness: '',
-//     hospitalId: 103,
-//     registUserId: 87,
-//     nextVisitTime: null,
-//     newVisitDate: null,
-//     disability: null,
-//     povertySituation: null,
-//     healthImportance: null,
-//     lvhTime: null,
-//     lvh: null,
-//     carotidPlaque: null,
-//     carotidPlaqueTime: null,
-//     hyperhomocysteinemia: null,
-//     mentalIllness: null,
-//     acuteDisease: null,
-//     chronicDisease: null,
-//     chronicConfirmedTime: null,
-//     acuteConfirmedTime: null,
-//     hospitalTime: null,
-//     acuteRiskLevel: null,
-//     chronicRiskLevel: null,
-//     andComplication: '[]',
-//     project: [],
-//     isSend: '0',
-//     createTime: '2022-09-26 19:21:30',
-//     updateTime: '2022-09-26T19:21:30',
-//     isDelete: 0,
-//   },
-//   data2: {
-//     istj: '0',
-//     tlSign: {
-//       sfzh: '患者身份证',
-//       jmmc: '患者姓名',
-//       lxdh: '患者联系方式',
-//       sxrq: '0',
-//       qyzt: '2',
-//       qytdmc: '附海镇慢病团队1',
-//       jgmc: '慈溪市附海镇卫生服务中心',
-//       qyysxm: '岑方妮',
-//       qyysid: '543628',
-//       yssfzh: '签约医生身份证号',
-//     },
-//   },
-// }
-import { mapGetters } from 'vuex'
-import { getIDCardInfo, getAge } from '@/utils/common'
-import { CHRONIC_DISEASE_TYPE, MEDICAL_INSURANCE_TYPE } from '@/utils/const'
-import moment from 'moment'
-export default {
-  name: 'VisitTips',
-  components: {},
-  props: {
-    dialogshow: {
-      type: Boolean,
-      default() {
-        return false
-      },
-    },
-    pdata: {
-      type: Object,
-      default() {
-        return null
-      },
-    },
-  },
-  computed: {
-    ...mapGetters({
-      userinfo: 'user/userinfo',
-      hospitalinfo: 'user/hospitalinfo',
-      visitedRoutes: 'tabs/visitedRoutes',
-    }),
-  },
-  watch: {
-    dialogshow: {
-      handler(val) {
-        if (val) {
-          // let d = this.pdata && this.pdata.msg && this.pdata.msg.split('[')[1]
-          // d = d.split(']')[0]
-          // this.resdate = d
-          //   this.getData()
-          //   this.tiemset1('最近一周')
-          //   this.tiemset2('最近一周')
-        }
-      },
-    },
-    pdata: {
-      handler(val) {
-        if (val) {
-          if (this.pdata) {
-            let d = this.pdata.msg.split('[')
-              ? this.pdata.msg.split('[')[1]
-              : ''
-            d = d && d.split(']') ? d.split(']')[0] : ''
-            this.resdate = d
-          }
-        }
-      },
-    },
-  },
-  data() {
-    return {
-      getAge,
-      moment,
-      getIDCardInfo,
-      CHRONIC_DISEASE_TYPE,
-      MEDICAL_INSURANCE_TYPE,
-      resdate: '',
-    }
-  },
-  created() { },
-  methods: {
-    close() {
-      this.$emit('close', 'visit_tips')
-    },
-  },
-}
-</script>
-  
-<style scoped>
-.title2 {
-  font-size: 14px;
-  margin-top: 10px;
-}
-
-.el-col {
-  margin-bottom: 0;
-}
-
-.el-card__body {
-  padding-bottom: 0;
-}
-
-.el-descriptions-item__content {
-  font-size: 16px !important;
-}
-</style>
-  

+ 2 - 3
src/renderer/utils/card_reading.js

@@ -1,7 +1,6 @@
 import axios from 'axios';
 const edge = require('electron-edge-js');
 import { ipcRenderer } from "electron";
-const path = require('path')
 const dll_url =  process.env.NODE_ENV == "development"
     ? "./resources/dll/XKLRLibrary.dll"
     : process.resourcesPath + '/dll/XKLRLibrary.dll'//`C:/Users/15432/AppData/Local/Programs/PatientSign/resources/dll/XKLRLibrary.dll`;
@@ -73,7 +72,7 @@ const config = {
 export function medical_dll(url,cb,err){
   try {
     url =url|| config.electronic_medical.url
-    console.log(url)
+    // console.log(url)
     const NationEcTrans = edge.func({
       assemblyFile: dll_url,
       typeName: "XKLRLibrary.XKLRNationECCode",
@@ -81,7 +80,7 @@ export function medical_dll(url,cb,err){
     })
     // console.log(13)
     NationEcTrans(url, (error, value) => {
-      console.log(error, value)
+      // console.log(error, value)
       const res= JSON.parse(value);
       if(value.length>0){
         cb(res)