Browse Source

Merge branch '20230223_pc_vue_new_branch' of http://git.shengws.com/csx/Vue_New into 20230223_pc_vue_new_branch

陈少旭 1 year ago
parent
commit
49faf01a02

+ 9 - 0
src/api/datastore.js View File

17
     data: params
17
     data: params
18
   })
18
   })
19
 }
19
 }
20
+
21
+export function getManageConfigList(params){
22
+  
23
+  return request({
24
+    url:"/api/dictionary/getmanageconfiglist",
25
+    method:"get",
26
+    data:params,
27
+  })
28
+}

+ 1 - 1
src/api/patient.js View File

255
 }
255
 }
256
 
256
 
257
 export function PostSearch(keyword) {
257
 export function PostSearch(keyword) {
258
-  console.log('keyword2222222', keyword)
258
+  
259
   return request({
259
   return request({
260
     url: '/api/patients/search?keyword=' + keyword,
260
     url: '/api/patients/search?keyword=' + keyword,
261
     method: 'post'
261
     method: 'post'

+ 18 - 0
src/api/role/admin.js View File

282
     method:"Post",
282
     method:"Post",
283
     data:data,
283
     data:data,
284
   })
284
   })
285
+}
286
+
287
+export function CreateQianshuUserName(data){
288
+  
289
+  return request({
290
+    url:"/api/device/createqianshuusername",
291
+    method:"Post",
292
+    data:data,
293
+  })
294
+}
295
+
296
+export function CreateSKDSendInformation(data){
297
+  
298
+  return request({
299
+    url:"/api/device/createskdsendinformation",
300
+    method:"Post",
301
+    data:data,
302
+  })
285
 }
303
 }

+ 9 - 9
src/router/modules/workforce.js View File

56
       noCache: true
56
       noCache: true
57
     }
57
     }
58
   },
58
   },
59
-  // {//患者调班
60
-  //   path: '/workforce/Patientshift',
61
-  //   component: () => import('@/xt_pages/workforce/Patientshift'),
62
-  //   name: '患者调班',
63
-  //   meta: {
64
-  //     title: '患者调班',
65
-  //     noCache: true
66
-  //   }
67
-  // },
59
+  {//患者调班
60
+    path: '/workforce/Patientshift',
61
+    component: () => import('@/xt_pages/workforce/Patientshift'),
62
+    name: '患者调班',
63
+    meta: {
64
+      title: '患者调班',
65
+      noCache: true
66
+    }
67
+  },
68
   {
68
   {
69
     path: '/workforce/schedule/printone',
69
     path: '/workforce/schedule/printone',
70
     component: () => import('@/xt_pages/workforce/printOne'),
70
     component: () => import('@/xt_pages/workforce/printOne'),

+ 1 - 0
src/store/getters.js View File

20
   configlist: state => state.data.configlist,
20
   configlist: state => state.data.configlist,
21
 
21
 
22
   dictionary_configlist: state => state.data.dictionary_configlist,
22
   dictionary_configlist: state => state.data.dictionary_configlist,
23
+  manage_configlist:state => state.data.manage_configlist,
23
   pagedata:state => state.pagedata,
24
   pagedata:state => state.pagedata,
24
 
25
 
25
   xt_permission: state => state.xt_permission,
26
   xt_permission: state => state.xt_permission,

+ 30 - 5
src/store/modules/data.js View File

1
-import { getConfigList,getDictionaryConfigList } from '@/api/datastore'
2
-import { getDataConfigList, setDataConfigList,getDataDictionaryConfigList,setDataDictionaryConfigList } from '@/utils/data_config' // getConfigList from sessionStorage
1
+import { getConfigList,getDictionaryConfigList,getManageConfigList } from '@/api/datastore'
2
+import { getDataConfigList, setDataConfigList,getDataDictionaryConfigList,setDataDictionaryConfigList,setDataManageConfigList } from '@/utils/data_config' // getConfigList from sessionStorage
3
 
3
 
4
 const data = {
4
 const data = {
5
   state: {
5
   state: {
6
     configlist: '',
6
     configlist: '',
7
     dictionary_configlist:'',
7
     dictionary_configlist:'',
8
+    manage_configlist:''
8
   },
9
   },
9
 
10
 
10
   mutations: {
11
   mutations: {
11
     SET_CONFIGLIST: (state, configlist) => {
12
     SET_CONFIGLIST: (state, configlist) => {
12
       state.configlist = configlist
13
       state.configlist = configlist
13
-    }, SET_DICTIONARY_CONFIGLIST: (state, configlist) => {
14
+    }, 
15
+    SET_DICTIONARY_CONFIGLIST: (state, configlist) => {
14
       state.dictionary_configlist = configlist
16
       state.dictionary_configlist = configlist
15
-    }
16
-
17
+    },
18
+    SET_Manage_CONFIGLIST: (state, configlist) => {
19
+      state.manage_configlist = configlist
20
+    },
17
   },
21
   },
18
 
22
 
19
   actions: {
23
   actions: {
57
           reject(error)
61
           reject(error)
58
         })
62
         })
59
 
63
 
64
+
65
+        getManageConfigList().then(response => {
66
+          if (!response.data) { // 由于mockjs 不支持自定义状态码只能这样hack
67
+            reject('error')
68
+          }
69
+          const list = response.data.data
70
+         
71
+          console.log('请求返回的数据:', list)
72
+          if (list) { // 验证返回的configlist是否是一个非空数组
73
+            // console.log('转换的configlist为:', list.configlist)
74
+            commit('SET_Manage_CONFIGLIST', list.configlist)
75
+            setDataManageConfigList(JSON.stringify(list.configlist))
76
+            resolve()
77
+          } else {
78
+            reject('getInfo: configlist must be a non-null array !')
79
+          }
80
+        }).catch(error => {
81
+          reject(error)
82
+        })
83
+
60
       })
84
       })
61
     },
85
     },
62
     updateConfigList({ commit }, configArr) {
86
     updateConfigList({ commit }, configArr) {
162
         }
186
         }
163
         infoJSON[module].push(configArr)
187
         infoJSON[module].push(configArr)
164
         commit('SET_DICTIONARY_CONFIGLIST', infoJSON)
188
         commit('SET_DICTIONARY_CONFIGLIST', infoJSON)
189
+
165
         setDataDictionaryConfigList(JSON.stringify(infoJSON))
190
         setDataDictionaryConfigList(JSON.stringify(infoJSON))
166
         resolve()
191
         resolve()
167
       })
192
       })

+ 41 - 0
src/utils/data.js View File

73
     }
73
     }
74
   }
74
   }
75
 }
75
 }
76
+
77
+
78
+export function getManageMentDataConfig(module, field) {
79
+  var storeConfigList = store.getters.manage_configlist
80
+  console.log("storeConfigListwwowowowowwo",storeConfigList)
81
+  var moduleConfig = storeConfigList[module]
82
+  if (moduleConfig == undefined) {
83
+    return false
84
+  }
85
+  if (module === 'summary') {
86
+    console.log("哈哈哈hhhwowowowoo")
87
+    var Aresult = []
88
+    for (var j = 0; j < moduleConfig.length; j++) {
89
+      var Atemp = []
90
+      var Aconfig = moduleConfig[j]
91
+      Atemp['id'] = Aconfig.value
92
+      Atemp['value'] = Aconfig.content
93
+      Atemp['text'] = Aconfig.title
94
+      Aresult.push(Atemp)
95
+    }
96
+    // console.log("Aresultwoowowowowow",Aresult)
97
+    return Aresult
98
+  } else {
99
+    for (var i = 0; i < moduleConfig.length; i++) {
100
+      var newConfig = moduleConfig[i]
101
+      if (newConfig.field_name === field) {
102
+        var result = []
103
+        if (newConfig.childs != null) {
104
+          for (var j = 0; j < newConfig.childs.length; j++) {
105
+            var tempconfig = newConfig.childs[j]
106
+            var temp = []
107
+            temp['id'] = tempconfig.value
108
+            temp['name'] = tempconfig.name
109
+            result.push(temp)
110
+          }
111
+        }
112
+        return result
113
+      }
114
+    }
115
+  }
116
+}

+ 17 - 0
src/utils/data_config.js View File

5
 const dataDictionaryConfigKey = 'data_dictionary_config_list'
5
 const dataDictionaryConfigKey = 'data_dictionary_config_list'
6
 
6
 
7
 
7
 
8
+const manageDictionaryConfigKey ="manage_dictionary_config_list"
9
+
10
+
8
 
11
 
9
 
12
 
10
 export function getDataConfigList() {
13
 export function getDataConfigList() {
15
   window.sessionStorage.setItem(dataConfigKey, infoJSONStr)
18
   window.sessionStorage.setItem(dataConfigKey, infoJSONStr)
16
 }
19
 }
17
 
20
 
21
+
22
+
18
 export function removeDataConfigList() {
23
 export function removeDataConfigList() {
19
   window.sessionStorage.removeItem(dataConfigKey)
24
   window.sessionStorage.removeItem(dataConfigKey)
20
 }
25
 }
48
   window.sessionStorage.removeItem(dataDictionaryConfigKey)
53
   window.sessionStorage.removeItem(dataDictionaryConfigKey)
49
 }
54
 }
50
 
55
 
56
+
57
+export function getDataManageConfigList() {
58
+  return window.sessionStorage.getItem(manageDictionaryConfigKey)
59
+}
60
+
61
+export function setDataManageConfigList(infoJSONStr){
62
+  window.sessionStorage.setItem(manageDictionaryConfigKey, infoJSONStr)
63
+}
64
+
65
+export function removeManageConfigList() {
66
+  window.sessionStorage.removeItem(manageDictionaryConfigKey)
67
+}

+ 4 - 1
src/xt_pages/device/airDisinfect.vue View File

298
 
298
 
299
 <script>
299
 <script>
300
   import BreadCrumb from '@/xt_pages/components/bread-crumb'
300
   import BreadCrumb from '@/xt_pages/components/bread-crumb'
301
+  import { getManageMentDataConfig } from '@/utils/data'
301
   import { getAllDoctorList,saveAirDisinfect,getAirList,getAirDisinfectDetail,updateAirDisinfect,deleteAirDisinfect } from "@/api/device"
302
   import { getAllDoctorList,saveAirDisinfect,getAirList,getAirDisinfectDetail,updateAirDisinfect,deleteAirDisinfect } from "@/api/device"
302
   import { uParseTime } from '@/utils/tools'
303
   import { uParseTime } from '@/utils/tools'
303
   const moment = require('moment')
304
   const moment = require('moment')
356
       }
357
       }
357
     },
358
     },
358
     created(){
359
     created(){
360
+      this.disinfection_fluid = getManageMentDataConfig('management', 'disinfection_fluid')
361
+      console.log("disinfection_fluid",this.disinfection_fluid)
359
       this.getlist()
362
       this.getlist()
360
       this.getAirList()
363
       this.getAirList()
361
     },
364
     },
387
                    check_out:parseInt(this.form.check_out),
390
                    check_out:parseInt(this.form.check_out),
388
                    modifications:parseInt(this.form.modifications),
391
                    modifications:parseInt(this.form.modifications),
389
                  }
392
                  }
390
-                //  console.log("params",params)
393
+              console.log("params",params)
391
                 
394
                 
392
                saveAirDisinfect(params).then(response=>{
395
                saveAirDisinfect(params).then(response=>{
393
                   if(response.data.state == 1){
396
                   if(response.data.state == 1){

+ 30 - 17
src/xt_pages/device/airDisinfectTwo.vue View File

843
     import { getAllDoctorList,saveNewAirDisinfect,getNewAirDisinfectList,getNewAirDisinfectByIdList,updateNewAirDisinfect,deleteNewAirDisInfect,getAirDisinfectLongTime} from "@/api/device"
843
     import { getAllDoctorList,saveNewAirDisinfect,getNewAirDisinfectList,getNewAirDisinfectByIdList,updateNewAirDisinfect,deleteNewAirDisInfect,getAirDisinfectLongTime} from "@/api/device"
844
     import { uParseTime } from '@/utils/tools'
844
     import { uParseTime } from '@/utils/tools'
845
     const moment = require('moment')
845
     const moment = require('moment')
846
+    import { getManageMentDataConfig } from '@/utils/data'
846
     export default {
847
     export default {
847
       name: 'airDisinfect',
848
       name: 'airDisinfect',
848
       components: {
849
       components: {
915
          total:0,
916
          total:0,
916
          tableData: [],
917
          tableData: [],
917
          hiddenShow:false,
918
          hiddenShow:false,
918
-         disInfectionWaterList:[
919
-         { id: 1, name: "0.22%季铵盐" },
920
-         { id: 2, name: "500mg/l含氯消毒剂" },
921
-         { id: 3, name: "1000mg/l含氯消毒剂" },
922
-         { id: 4, name: "1500mg/l含氯消毒剂" },
923
-         { id: 5, name: "消毒湿巾" },
924
-         { id:6, name:"75%酒精"}
925
-         ],
926
-         DisinfectionMode: [
927
-            { id: 1, name: "紫外线" },
928
-            { id: 2, name: "等离子" },
929
-            { id: 3, name: "臭氧" },
930
-            {id:4,name:"含氯剂喷洒500mg/L"},
931
-            {id:5,name:"含氯剂喷洒1000mg/L"},
932
-            {id:6,name:"通风"}
933
-         ],
919
+        //  disInfectionWaterList:[
920
+        //  { id: 1, name: "0.22%季铵盐" },
921
+        //  { id: 2, name: "500mg/l含氯消毒剂" },
922
+        //  { id: 3, name: "1000mg/l含氯消毒剂" },
923
+        //  { id: 4, name: "1500mg/l含氯消毒剂" },
924
+        //  { id: 5, name: "消毒湿巾" },
925
+        //  { id:6, name:"75%酒精"}
926
+        //  ],
927
+        disInfectionWaterList:[],
928
+        //  DisinfectionMode: [
929
+        //     { id: 1, name: "紫外线" },
930
+        //     { id: 2, name: "等离子" },
931
+        //     { id: 3, name: "臭氧" },
932
+        //     {id:4,name:"含氯剂喷洒500mg/L"},
933
+        //     {id:5,name:"含氯剂喷洒1000mg/L"},
934
+        //     {id:6,name:"通风"}
935
+        //  ],
936
+         DisinfectionMode:[],
934
          operators: [],
937
          operators: [],
935
          operatorMaps:{},
938
          operatorMaps:{},
936
          firststart:'',
939
          firststart:'',
943
         }
946
         }
944
       },
947
       },
945
       created(){
948
       created(){
946
-       
949
+        var  disinfection_fluid = getManageMentDataConfig('management', 'disinfection_fluid')
950
+        console.log("disinfection_fluid",disinfection_fluid)
951
+        for(let i=0;i<disinfection_fluid.length;i++){
952
+          this.disInfectionWaterList.push(disinfection_fluid[i])
953
+        }
954
+
955
+        var  disinfection_methods = getManageMentDataConfig('management', 'disinfection_methods')
956
+        console.log("disinfection_methods",disinfection_methods)
957
+        for(let i=0;i<disinfection_methods.length;i++){
958
+          this.DisinfectionMode.push(disinfection_methods[i])
959
+        }
947
         this.getAllDoctorList()
960
         this.getAllDoctorList()
948
         this.getNewAirDisinfectList()
961
         this.getNewAirDisinfectList()
949
         var time=moment(this.form.first_start_time).format("HH:mm");
962
         var time=moment(this.form.first_start_time).format("HH:mm");

+ 21 - 9
src/xt_pages/device/objectTableDisinfectTwo.vue View File

1069
         updateObjectTableDisinfect, 
1069
         updateObjectTableDisinfect, 
1070
         deleteObjectTableDisinfect
1070
         deleteObjectTableDisinfect
1071
     } from "@/api/device"
1071
     } from "@/api/device"
1072
+    import { getManageMentDataConfig } from '@/utils/data'
1072
     import { uParseTime } from '@/utils/tools'
1073
     import { uParseTime } from '@/utils/tools'
1073
     const moment = require('moment')
1074
     const moment = require('moment')
1074
     export default {
1075
     export default {
1158
          tableData: [],
1159
          tableData: [],
1159
          hiddenShow:false,
1160
          hiddenShow:false,
1160
          disInfectionWaterList:[
1161
          disInfectionWaterList:[
1161
-         { id: 1, name: "0.22%季铵盐" },
1162
-         { id: 2, name: "500mg/l含氯消毒剂" },
1163
-         { id: 3, name: "1000mg/l含氯消毒剂" },
1164
-         { id: 4, name: "1500mg/l含氯消毒剂" },
1165
-         { id: 5, name: "消毒湿巾" },
1166
-         {  id:6, name:"75%酒精"}
1162
+        //  { id: 1, name: "0.22%季铵盐" },
1163
+        //  { id: 2, name: "500mg/l含氯消毒剂" },
1164
+        //  { id: 3, name: "1000mg/l含氯消毒剂" },
1165
+        //  { id: 4, name: "1500mg/l含氯消毒剂" },
1166
+        //  { id: 5, name: "消毒湿巾" },
1167
+        //  {  id:6, name:"75%酒精"}
1167
          ],
1168
          ],
1168
          DisinfectionMode: [
1169
          DisinfectionMode: [
1169
-            { id: 1, name: "擦拭" },
1170
-            { id: 2, name: "浸泡" },
1171
-            { id: 3, name: "喷洒" }
1170
+            // { id: 1, name: "擦拭" },
1171
+            // { id: 2, name: "浸泡" },
1172
+            // { id: 3, name: "喷洒" }
1172
          ],
1173
          ],
1173
          operators: [],
1174
          operators: [],
1174
          operatorMaps:{},
1175
          operatorMaps:{},
1176
         }
1177
         }
1177
       },
1178
       },
1178
       created(){
1179
       created(){
1180
+        var  disinfection_fluid = getManageMentDataConfig('management', 'disinfection_fluid')
1181
+        console.log("disinfection_fluid",disinfection_fluid)
1182
+        for(let i=0;i<disinfection_fluid.length;i++){
1183
+          this.disInfectionWaterList.push(disinfection_fluid[i])
1184
+        }
1185
+
1186
+        var  disinfection_methods = getManageMentDataConfig('management', 'disinfection_methods')
1187
+        console.log("disinfection_methods",disinfection_methods)
1188
+        for(let i=0;i<disinfection_methods.length;i++){
1189
+          this.DisinfectionMode.push(disinfection_methods[i])
1190
+        }
1179
         this.getAllDoctorList()
1191
         this.getAllDoctorList()
1180
         this.getObjectTableDisInfectList()
1192
         this.getObjectTableDisInfectList()
1181
       },
1193
       },

+ 6 - 6
src/xt_pages/dialysis/batch_print/batch_print_order_six.vue View File

87
                 {{ record.device_zone.name}}
87
                 {{ record.device_zone.name}}
88
               </div>
88
               </div>
89
             </div>
89
             </div>
90
-            <div class="inline_block" v-if="org_id!=10510">
90
+            <div class="inline_block" v-if="org_id!=10510 && org_id!=10460">
91
               床号:
91
               床号:
92
               <div class="under_line" style="width: 50px; text-align: center">
92
               <div class="under_line" style="width: 50px; text-align: center">
93
                 {{ record.device_number.number }}
93
                 {{ record.device_number.number }}
99
                 {{ record.patient.dialysis_no }}
99
                 {{ record.patient.dialysis_no }}
100
               </div>
100
               </div>
101
             </div>
101
             </div>
102
-            <div class="inline_block" style="margin-left: 5px">
102
+            <div class="inline_block" style="margin-left: 5px" v-if="org_id!=10460">
103
               住院号/门诊号:
103
               住院号/门诊号:
104
               <div
104
               <div
105
                 class="under_line"
105
                 class="under_line"
129
                 {{ item.name }}
129
                 {{ item.name }}
130
               </div>
130
               </div>
131
             </div>
131
             </div>
132
-            <div class="inline_block" style="margin-left: 10px">
132
+            <div class="inline_block" style="margin-left: 10px" v-if="org_id!=10460">
133
               诊断:
133
               诊断:
134
               <div
134
               <div
135
                 class="under_line"
135
                 class="under_line"
2137
                   {{ "/" }}
2137
                   {{ "/" }}
2138
                 </div>
2138
                 </div>
2139
               </div>
2139
               </div>
2140
-              <div class="inline_block">
2140
+              <div class="inline_block" v-if="org_id!=10460">
2141
                 床号:
2141
                 床号:
2142
                 <div class="under_line" style="width: 50px; text-align: center">
2142
                 <div class="under_line" style="width: 50px; text-align: center">
2143
                   {{ "/" }}
2143
                   {{ "/" }}
2149
                   {{ record.patient.dialysis_no }}
2149
                   {{ record.patient.dialysis_no }}
2150
                 </div>
2150
                 </div>
2151
               </div>
2151
               </div>
2152
-              <div class="inline_block" style="margin-left: 5px">
2152
+              <div class="inline_block" style="margin-left: 5px" v-if="org_id!=10460">
2153
                 住院号/门诊号:
2153
                 住院号/门诊号:
2154
                 <div
2154
                 <div
2155
                   class="under_line"
2155
                   class="under_line"
2181
                   {{ item.name }}
2181
                   {{ item.name }}
2182
                 </div>
2182
                 </div>
2183
               </div>
2183
               </div>
2184
-              <div class="inline_block" style="margin-left: 10px">
2184
+              <div class="inline_block" style="margin-left: 10px" v-if="org_id!=10460">
2185
                 诊断:
2185
                 诊断:
2186
                 <div
2186
                 <div
2187
                   class="under_line"
2187
                   class="under_line"

+ 2 - 2
src/xt_pages/dialysis/batch_print/batch_print_order_sixtyseven.vue View File

560
                 <td>
560
                 <td>
561
                   <span style="width: 14%;">实际置换量:
561
                   <span style="width: 14%;">实际置换量:
562
                     {{
562
                     {{
563
-                      record.assessment_after_dislysis.actual_ultrafiltration
564
-                        ? record.assessment_after_dislysis.actual_ultrafiltration
563
+                      record.assessment_after_dislysis.actual_displacement
564
+                        ? record.assessment_after_dislysis.actual_displacement
565
                         : ""
565
                         : ""
566
                      }}L
566
                      }}L
567
 
567
 

+ 1 - 1
src/xt_pages/dialysis/details/DialysisPrescription.vue View File

29
         <li v-if="isShow('置换速度') && this.$store.getters.xt_user.template_info.org_id == 10375">
29
         <li v-if="isShow('置换速度') && this.$store.getters.xt_user.template_info.org_id == 10375">
30
           <label>置换速度 : </label>
30
           <label>置换速度 : </label>
31
           <span class="content">{{displace_speed }}</span>
31
           <span class="content">{{displace_speed }}</span>
32
-            <span class="unit">ml/L</span>
32
+            <span class="unit">L/h</span>
33
         </li>
33
         </li>
34
 
34
 
35
 
35
 

+ 12 - 15
src/xt_pages/dialysis/details/dialog/acceptsTreatmentDialog.vue View File

477
       }
477
       }
478
       this.accepts = accepts;
478
       this.accepts = accepts;
479
      console.log("accepts", accepts);
479
      console.log("accepts", accepts);
480
-      // var arr = [];
481
-      // if (this.accepts.precaution) {
482
-      //   var precaution = this.accepts.precaution.split(",");
483
-      //   // console.log("precaution", precaution);
484
-      //   // console.log("hhh", this.precaution_arr);
485
-      //   for (let i = 0; i < precaution.length; i++) {
486
-      //     for (let j = 0; j < this.precaution_arr.length; j++) {
487
-      //       if (parseInt(precaution[i]) == this.precaution_arr[j].id) {
488
-      //         // console.log("aaaa");
489
-      //         this.arr.push(this.precaution_arr[j].name);
490
-      //       }
491
-      //     }
492
-      //   }
493
-      //   this.precautionTwo = this.arr;
494
-      // }
480
+      var arr = [];
481
+      if (this.accepts.precaution) {
482
+        var precaution = this.accepts.precaution.split(",");
483
+        for (let i = 0; i < precaution.length; i++) {
484
+          for (let j = 0; j < this.precaution_arr.length; j++) {
485
+            if (parseInt(precaution[i]) == this.precaution_arr[j].id) {
486
+              this.arr.push(this.precaution_arr[j].name);
487
+            }
488
+          }
489
+        }
490
+        this.precautionTwo = this.arr;
491
+      }
495
 
492
 
496
       this.getPermission();
493
       this.getPermission();
497
       for (var index in this.receiveTreatmentAsses) {
494
       for (var index in this.receiveTreatmentAsses) {

+ 3 - 2
src/xt_pages/dialysis/dialysisPrintOrder.vue View File

2144
       } else if (
2144
       } else if (
2145
         this.org_template_info.template_id == 2 ||
2145
         this.org_template_info.template_id == 2 ||
2146
         this.org_template_info.template_id == 5 ||
2146
         this.org_template_info.template_id == 5 ||
2147
+        this.org_template_info.template_id == 6 ||
2147
         this.org_template_info.template_id == 22 ||
2148
         this.org_template_info.template_id == 22 ||
2148
         this.org_template_info.template_id == 33
2149
         this.org_template_info.template_id == 33
2149
       ) {
2150
       ) {
2181
           style: style,
2182
           style: style,
2182
           scanStyles: false,
2183
           scanStyles: false,
2183
         });
2184
         });
2184
-      } else if (this.org_template_info.template_id == 53) {
2185
+      } else if (this.org_template_info.template_id == 53 ) {
2185
         console.log("进来233232323232")
2186
         console.log("进来233232323232")
2186
         printJS({
2187
         printJS({
2187
           printable: "dialysis-print-box-1-2",
2188
           printable: "dialysis-print-box-1-2",
2897
     },
2898
     },
2898
   },
2899
   },
2899
   created() {
2900
   created() {
2900
-    console.log("hhahahhahahahah=======",this.org_template_info.template_id)
2901
+    // console.log("hhahahhahahahah=======",this.org_template_info.template_id)
2901
     console.log("this.$store.getters.xt_user.org.id",this.$store.getters.xt_user.org.id)
2902
     console.log("this.$store.getters.xt_user.org.id",this.$store.getters.xt_user.org.id)
2902
     var schedule_type_selected = this.$store.getters.schedule_type_selected;
2903
     var schedule_type_selected = this.$store.getters.schedule_type_selected;
2903
     var zone_selected = this.$store.getters.zone_selected;
2904
     var zone_selected = this.$store.getters.zone_selected;

+ 191 - 6
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue View File

89
               <span v-else>{{ "/" }}</span>
89
               <span v-else>{{ "/" }}</span>
90
             </div>
90
             </div>
91
           </div>
91
           </div>
92
-          <div class="inline_block">
92
+          <div class="inline_block" v-if="org_id!=10460">
93
             床号:
93
             床号:
94
             <div class="under_line" style="width: 50px; text-align: center">
94
             <div class="under_line" style="width: 50px; text-align: center">
95
               <span v-if="org_id == 10121||org_id == 10414 || org_id == 10447 || org_id == 9675 || org_id == 0 || org_id ==10460">{{
95
               <span v-if="org_id == 10121||org_id == 10414 || org_id == 10447 || org_id == 9675 || org_id == 0 || org_id ==10460">{{
108
               {{ patientInfo.dialysis_no }}
108
               {{ patientInfo.dialysis_no }}
109
             </div>
109
             </div>
110
           </div>
110
           </div>
111
-          <div class="inline_block" style="margin-left: 5px;" v-if="org_id!=9675 && org_id!=10447">
111
+          <div class="inline_block" style="margin-left: 5px;" v-if="org_id!=9675 && org_id!=10447&&org_id!=10460">
112
             住院号/门诊号:
112
             住院号/门诊号:
113
             <div class="under_line" style="width: 70px;text-align: left" v-if="receiverTreatmentAccess.admission_number">
113
             <div class="under_line" style="width: 70px;text-align: left" v-if="receiverTreatmentAccess.admission_number">
114
               {{ receiverTreatmentAccess.admission_number }}
114
               {{ receiverTreatmentAccess.admission_number }}
162
             <!--</div>-->
162
             <!--</div>-->
163
           </div>
163
           </div>
164
 
164
 
165
-          <div class="inline_block" style="margin-left: 10px">
165
+          <div class="inline_block" style="margin-left: 10px" v-if="org_id!=10460">
166
             诊断:
166
             诊断:
167
             <div
167
             <div
168
               class="under_line"
168
               class="under_line"
1923
               <span v-else>{{ "/" }}</span>
1923
               <span v-else>{{ "/" }}</span>
1924
             </div>
1924
             </div>
1925
             </div>
1925
             </div>
1926
-            <div class="inline_block" v-if="org_id!=10510" >
1926
+            <div class="inline_block" v-if="org_id!=10510 && org_id!=10460" >
1927
               床号:
1927
               床号:
1928
               <div class="under_line" style="width: 50px; text-align: center">
1928
               <div class="under_line" style="width: 50px; text-align: center">
1929
               <span v-if="org_id == 10121 || org_id == 9675 || org_id == 10447 || org_id == 0 ||org_id == 10460">{{
1929
               <span v-if="org_id == 10121 || org_id == 9675 || org_id == 10447 || org_id == 0 ||org_id == 10460">{{
1943
               </div>
1943
               </div>
1944
             </div>
1944
             </div>
1945
             <div class="inline_block" style="margin-left: 5px"
1945
             <div class="inline_block" style="margin-left: 5px"
1946
-            v-if="org_id!=9675 && org_id!=10447">
1946
+            v-if="org_id!=9675 && org_id!=10447 && org_id!=10460">
1947
             住院号/门诊号:
1947
             住院号/门诊号:
1948
             <div
1948
             <div
1949
               class="under_line"
1949
               class="under_line"
2007
               <!--平车-->
2007
               <!--平车-->
2008
               <!--</div>-->
2008
               <!--</div>-->
2009
             </div>
2009
             </div>
2010
-            <div class="inline_block" style="margin-left: 10px">
2010
+            <div class="inline_block" style="margin-left: 10px" v-if="org_id!=10460">
2011
               诊断:
2011
               诊断:
2012
               <div
2012
               <div
2013
                 class="under_line"
2013
                 class="under_line"
2624
                     </div>
2624
                     </div>
2625
                   </div>
2625
                   </div>
2626
                   <div
2626
                   <div
2627
+                    v-if="org_id!=10460"
2627
                     class="row"
2628
                     class="row"
2628
                     style="padding: 2px 0; line-height: 23px; display: flex"
2629
                     style="padding: 2px 0; line-height: 23px; display: flex"
2629
                   >
2630
                   >
3104
           <!-- <div  class="print-yema">1</div> -->
3105
           <!-- <div  class="print-yema">1</div> -->
3105
         </div>
3106
         </div>
3106
       </div>
3107
       </div>
3108
+    </div>
3109
+
3110
+
3111
+
3112
+    <div id="dialysis-print-box-1-2" class="dialysis-print-order print-template-two print_page_main_content" style="position: relative;">
3113
+      <div class="order-yy-name">{{ orgname }}</div>
3114
+      <div class="order_title">血液净化科医嘱及执行单</div>
3115
+      <div class="row" style="margin-top: 15px">
3116
+        <div class="inline_block">
3117
+          科室:
3118
+          <check-box text="门诊透析" :checked="patientInfo_source_1"></check-box>
3119
+          &nbsp;
3120
+          <check-box text="住院" :checked="patientInfo_source_2"></check-box>
3121
+        </div>
3122
+        <div class="inline_block" style="margin-left: 5px;">
3123
+          住院号:
3124
+          <div class="under_line" style="width: 70px;text-align: left" v-if="patientInfo.admission_number">
3125
+            {{ patientInfo.admission_number }}
3126
+          </div>
3127
+          <div class="under_line" style="width: 70px;text-align: left" v-else>
3128
+            {{ "/" }}
3129
+          </div>
3130
+        </div>
3131
+        <div class="inline_block" style="margin-left:10px;">
3132
+          姓名:
3133
+          <div class="under_line" style="width: 50px;text-align: left">
3134
+            {{ patientInfo.name }}
3135
+          </div>
3136
+        </div>
3137
+        <div class="inline_block" style="margin-left: 10px;">
3138
+          性别:
3139
+          <check-box text="男" :checked="patientInfo_gender_1"></check-box>
3140
+          &nbsp;
3141
+          <check-box text="女" :checked="patientInfo_gender_2"></check-box>
3142
+        </div>
3143
+        <div class="inline_block" style="margin-left: 10px;">
3144
+          年龄:
3145
+          <div class="under_line" style="width: 30px;text-align: left">
3146
+            {{ getAge(patientInfo) }}
3147
+          </div>
3148
+          岁
3149
+        </div>
3150
+        <div class="inline_block" style="margin-left: 10px;">
3151
+          诊断:
3152
+          <div class="under_line" style="width:180px;text-align: left">
3153
+            {{ patientInfo.diagnose }}
3154
+          </div>
3155
+        </div>
3156
+      </div>
3157
+
3158
+      <table class="print-table-no">
3159
+                    <tbody>
3160
+                      <tr style="line-height: 35px; padding: 8px 5px">
3161
+                        <td
3162
+                          colspan="7"
3163
+                          style="
3164
+                            letter-spacing: 5px;
3165
+                            text-align: center;
3166
+                            font-weight: 520;
3167
+                            font-size: 16px;
3168
+                            padding: 6px 8px;
3169
+                            line-height: 30px;
3170
+                          "
3171
+                        >
3172
+                          医嘱内容
3173
+                        </td>
3174
+                      </tr>
3175
+                      <tr style="line-height: 35px; padding: 8px 5px">
3176
+                        <td style="font-size: 16px" width="10%">时间</td>
3177
+                        <td style="font-size: 16px" colspan="2" width="45%">
3178
+                          医嘱内容
3179
+                        </td>
3180
+                        <td style="font-size: 16px" width="10%">医生签名</td>
3181
+                        <!-- <td style="font-size: 16px" width="10%">核对人签名</td> -->
3182
+                        <td style="font-size: 16px" width="10%">执行人签名</td>
3183
+                        <td style="font-size: 16px" width="10%">时间</td>
3184
+                        <td
3185
+                          style="font-size: 16px"
3186
+                          width="10%"
3187
+                          v-if="org_id == 10223 || org_id == 9538 || org_id == 0 || org_id ==10375"
3188
+                        >
3189
+                          核对护士
3190
+                        </td>
3191
+                      </tr>
3192
+                     
3193
+
3194
+                      <tr
3195
+                        v-for="(advice, advice_index) in doctor_advices"
3196
+                        :key="advice_index"
3197
+                      >
3198
+                        <td height="32px">
3199
+                          <span v-if="advice.start_time">
3200
+                            {{ getTime(advice.start_time, "{h}:{i}") }}
3201
+                          </span>
3202
+                          
3203
+                        </td>
3204
+                        <td
3205
+                          height="32px"
3206
+                          colspan="2"
3207
+                          class="advice-name"
3208
+                          style="padding-left: 7px"
3209
+                        >
3210
+                          <span v-if="advice.parent_id > 0">---></span>
3211
+                          <span>{{ advice.advice_name }}</span>
3212
+                          <span v-if="advice && advice.advice_desc"
3213
+                            >({{ advice.advice_desc
3214
+                            }}{{ advice.drug_spec_unit }})</span
3215
+                          >
3216
+                          <span v-if="advice.prescribing_number"
3217
+                            >&nbsp;&nbsp; {{ advice.prescribing_number
3218
+                            }}{{ advice.prescribing_number_unit }}</span
3219
+                          >
3220
+                          <span v-if="advice.single_dose != 0"
3221
+                            >{{ advice.single_dose
3222
+                            }}{{ advice.single_dose_unit }}</span
3223
+                          >
3224
+                          <span v-if="advice.parent_id == 0">{{
3225
+                            advice.delivery_way
3226
+                          }}</span>
3227
+                          <span v-if="advice.parent_id == 0">{{
3228
+                            advice.execution_frequency
3229
+                          }}</span>
3230
+                          <span
3231
+                            v-if="
3232
+                              advice.parent_id == 0 && advice.remark.length > 0
3233
+                            "
3234
+                            >({{ advice.remark }})</span
3235
+                          >
3236
+                        </td>
3237
+                    
3238
+                        <td height="32px">
3239
+                          <span
3240
+                            v-if="setAdminUserES(advice.advice_doctor) == ''"
3241
+                            >{{ getAdminUser(advice.advice_doctor) }}</span
3242
+                          >
3243
+                          <img
3244
+                            style="height: 30px"
3245
+                            :src="setAdminUserES(advice.advice_doctor)"
3246
+                            alt=""
3247
+                            srcset=""
3248
+                            v-else
3249
+                          />
3250
+                        </td>
3251
+                      
3252
+                        <td height="32px">
3253
+                          <span
3254
+                            v-if="setAdminUserES(advice.execution_staff) == ''"
3255
+                            >{{ getAdminUser(advice.execution_staff) }}</span
3256
+                          >
3257
+                          <img
3258
+                            style="height: 30px"
3259
+                            :src="setAdminUserES(advice.execution_staff)"
3260
+                            alt=""
3261
+                            srcset=""
3262
+                            v-else
3263
+                          />
3264
+                        </td>
3265
+                        <td height="32px">
3266
+                          <span v-if="advice.execution_time">{{
3267
+                            getTime(advice.execution_time, "{h}:{i}")
3268
+                          }}</span>
3269
+                        </td>
3270
+                        <td height="32px" v-if="org_id == 10223 || org_id == 9538 || org_id == 0 || org_id ==10375">
3271
+                          <span v-if="setAdminUserES(advice.checker) == ''">{{
3272
+                            getAdminUser(advice.checker)
3273
+                          }}</span>
3274
+                          <img
3275
+                            style="height: 30px"
3276
+                            :src="setAdminUserES(advice.checker)"
3277
+                            alt=""
3278
+                            srcset=""
3279
+                            v-else
3280
+                          />
3281
+                        </td>
3282
+                      </tr>
3283
+                     
3284
+                    </tbody>
3285
+     </table>
3286
+
3287
+
3288
+    
3289
+     
3290
+
3291
+     
3107
     </div>
3292
     </div>
3108
   </div>
3293
   </div>
3109
 </template>
3294
 </template>

+ 41 - 9
src/xt_pages/dialysis/template/DialysisPrintOrderSixtyfour.vue View File

797
     }
797
     }
798
   },
798
   },
799
   methods: {
799
   methods: {
800
+    unique(arr) { // 根据唯一标识id来对数组进行过滤
801
+      const res = new Map();//定义常量 res,值为一个Map对象实例
802
+      //返回arr数组过滤后的结果,结果为一个数组   过滤条件是,如果res中没有某个键,就设置这个键的值为1
803
+      return arr.filter((arr) => !res.has(arr.advice_name) && res.set(arr.advice_name, 1))
804
+    },
800
     getDialysisRecord() {
805
     getDialysisRecord() {
801
       this.loading = true;
806
       this.loading = true;
802
       this.queryParams.patient_id = parseInt(this.$route.query.patient_id)
807
       this.queryParams.patient_id = parseInt(this.$route.query.patient_id)
1020
         console.log("this.projects", this.projects);
1025
         console.log("this.projects", this.projects);
1021
 
1026
 
1022
         // var objProject = {advice_name:"",start_time:"",single_dose:"",single_dose_unit:"",}
1027
         // var objProject = {advice_name:"",start_time:"",single_dose:"",single_dose_unit:"",}
1028
+      
1023
         if(this.projects!=null && this.projects.length >0){
1029
         if(this.projects!=null && this.projects.length >0){
1024
            for(let i=0;i<this.projects.length;i++){
1030
            for(let i=0;i<this.projects.length;i++){
1025
              if(this.projects[i].type== 2){
1031
              if(this.projects[i].type== 2){
1026
-              this.projects[i].advice_name = this.projects[i].project.project_name
1027
-              this.projects[i].start_time = this.projects[i].start_time
1028
-              this.projects[i].single_dose = this.projects[i].single_dose
1029
-              this.projects[i].single_dose_unit = this.projects[i].unit
1030
-              this.projects[i].execution_time = this.projects[i].execution_time
1031
-              this.projects[i].execution_staff= this.projects[i].execution_staff 
1032
-              this.advices.push(this.projects[i])
1032
+            
1033
+              this.projects[i].project_team_name = ""
1034
+              this.projects[i].project_team_id = 0
1035
+              console.log("this.projects[i].project.team",this.projects[i].project.team)
1036
+              if(this.projects[i].team!= "undefined" && this.projects[i].team.id >0){
1037
+                this.projects[i].project_team = this.projects[i].team.project_team
1038
+                this.projects[i].project_team_id = this.projects[i].team.id
1039
+                this.projects[i].start_time = this.projects[i].start_time
1040
+                this.projects[i].single_dose = this.projects[i].single_dose
1041
+                this.projects[i].single_dose_unit = this.projects[i].unit
1042
+                this.projects[i].execution_time = this.projects[i].execution_time
1043
+                this.projects[i].execution_staff= this.projects[i].execution_staff 
1044
+                this.projects[i].advice_name =  this.projects[i].team.project_team
1045
+              
1046
+               
1047
+                this.advices.push(this.projects[i])
1048
+              }else{
1049
+                this.projects[i].project_team = this.projects[i].project.project_name
1050
+                this.projects[i].advice_name = this.projects[i].project.project_name
1051
+                this.projects[i].start_time = this.projects[i].start_time
1052
+                this.projects[i].single_dose = this.projects[i].single_dose
1053
+                this.projects[i].single_dose_unit = this.projects[i].unit
1054
+                this.projects[i].execution_time = this.projects[i].execution_time
1055
+                this.projects[i].execution_staff= this.projects[i].execution_staff 
1056
+                this.advices.push(this.projects[i])
1057
+              }
1058
+             
1033
              }
1059
              }
1034
              
1060
              
1035
            }
1061
            }
1036
         }
1062
         }
1037
-        
1038
-
1063
+       
1064
+       
1065
+      
1039
         var tableAdvice = this.advices;
1066
         var tableAdvice = this.advices;
1040
 
1067
 
1041
 
1068
 
1115
           this.advices = tableAdvice;
1142
           this.advices = tableAdvice;
1116
         }
1143
         }
1117
 
1144
 
1145
+        var arr = [] 
1146
+        arr = this.unique(this.advices)
1147
+        this.advices = []
1148
+        this.advices= arr
1149
+        console.log("wowoowowowo",arr)
1118
         console.log("advices-----------------",this.advices)
1150
         console.log("advices-----------------",this.advices)
1119
 
1151
 
1120
  
1152
  

+ 1 - 1
src/xt_pages/dialysis/template/DialysisPrintOrderThirteen.vue View File

211
           抗凝药物
211
           抗凝药物
212
           <div class="inline_block under_line" style="width:92%;text-align: left;">
212
           <div class="inline_block under_line" style="width:92%;text-align: left;">
213
             <label-box :isChecked="prescription.anticoagulant == '普通肝素' ? true : false" showValue="普通肝素"></label-box>&nbsp;
213
             <label-box :isChecked="prescription.anticoagulant == '普通肝素' ? true : false" showValue="普通肝素"></label-box>&nbsp;
214
-            <label-box :isChecked="prescription.anticoagulant == '低分子肝素钙' ? true : prescription.anticoagulant == '低分子肝素钠' ? true : false" showValue="低分子肝素"></label-box>
214
+            <label-box :isChecked="prescription.anticoagulant == '低分子肝素钙' ? true : prescription.anticoagulant == '低分子肝素钠' ? true : prescription.anticoagulant == '低分子肝素' ? true : false" showValue="低分子肝素"></label-box>
215
             (<label-box :isChecked="prescription.anticoagulant == '低分子肝素钙' ? true : false" showValue="钙"></label-box>
215
             (<label-box :isChecked="prescription.anticoagulant == '低分子肝素钙' ? true : false" showValue="钙"></label-box>
216
               <label-box :isChecked="prescription.anticoagulant == '低分子肝素钠' ? true : false" showValue="钠"></label-box>)
216
               <label-box :isChecked="prescription.anticoagulant == '低分子肝素钠' ? true : false" showValue="钠"></label-box>)
217
             <div class="inline_block">
217
             <div class="inline_block">

+ 2 - 2
src/xt_pages/dialysis/template/DialysisPrintOrdersixtySeven.vue View File

478
                   <span>实际置换量:
478
                   <span>实际置换量:
479
                    
479
                    
480
                     {{
480
                     {{
481
-                      afterdialysis.actual_ultrafiltration
482
-                        ? afterdialysis.actual_ultrafiltration
481
+                      afterdialysis.actual_displacement
482
+                        ? afterdialysis.actual_displacement
483
                         : ""
483
                         : ""
484
                      }}L
484
                      }}L
485
 
485
 

+ 5 - 5
src/xt_pages/log/index.vue View File

77
               <el-pagination
77
               <el-pagination
78
                 @size-change="handleSizeChange"
78
                 @size-change="handleSizeChange"
79
                 @current-change="handleCurrentChange"
79
                 @current-change="handleCurrentChange"
80
-                :page-size="10"
80
+                :page-sizes="[10, 50, 100,500]"
81
                 background
81
                 background
82
                 style="margin-top:20px;float: right"
82
                 style="margin-top:20px;float: right"
83
                 :total="total"
83
                 :total="total"
157
               <el-pagination
157
               <el-pagination
158
                 @size-change="handleSizeChangeOne"
158
                 @size-change="handleSizeChangeOne"
159
                 @current-change="handleCurrentChangeOne"
159
                 @current-change="handleCurrentChangeOne"
160
-                :page-size="10"
160
+                :page-sizes="[10, 50, 100,500]"
161
                 background
161
                 background
162
                 style="margin-top:20px;float: right"
162
                 style="margin-top:20px;float: right"
163
                 :total="total"
163
                 :total="total"
244
               <el-pagination
244
               <el-pagination
245
                 @size-change="handleSizeChangeTwo"
245
                 @size-change="handleSizeChangeTwo"
246
                 @current-change="handleCurrentChangeTwo"
246
                 @current-change="handleCurrentChangeTwo"
247
-                :page-size="10"
247
+                :page-sizes="[10, 50, 100,500]"
248
                 background
248
                 background
249
                 style="margin-top:20px;float: right"
249
                 style="margin-top:20px;float: right"
250
                 :total="total"
250
                 :total="total"
331
               <el-pagination
331
               <el-pagination
332
                 @size-change="handleSizeChangeThree"
332
                 @size-change="handleSizeChangeThree"
333
                 @current-change="handleCurrentChangeThree"
333
                 @current-change="handleCurrentChangeThree"
334
-                :page-size="10"
334
+                :page-sizes="[10, 50, 100,500]"
335
                 background
335
                 background
336
                 style="margin-top:20px;float: right"
336
                 style="margin-top:20px;float: right"
337
                 :total="total"
337
                 :total="total"
410
               <el-pagination
410
               <el-pagination
411
                 @size-change="handleSizeChangeFour"
411
                 @size-change="handleSizeChangeFour"
412
                 @current-change="handleCurrentChangeFour"
412
                 @current-change="handleCurrentChangeFour"
413
-                :page-size="10"
413
+                :page-sizes="[10, 50, 100,500]"
414
                 background
414
                 background
415
                 style="margin-top:20px;float: right"
415
                 style="margin-top:20px;float: right"
416
                 :total="total"
416
                 :total="total"

+ 1 - 1
src/xt_pages/outpatientDoctorStation/template/prinSeven.vue View File

129
 
129
 
130
                   <div style="margin-left: 70px">
130
                   <div style="margin-left: 70px">
131
                     用法:
131
                     用法:
132
-                    <span v-if="(item.arr.length>0 && item.arr[0][0].groupno!=it.groupno)||arr.length<0">{{ it.single_dose }}{{ it.single_dose_unit }}</span>
132
+                    <span v-if="(item.arr.length>0 && item.arr[0][0].groupno!=it.groupno)||item.arr.length==0">{{ it.single_dose }}{{ it.single_dose_unit }}</span>
133
                     &nbsp;&nbsp;<span>
133
                     &nbsp;&nbsp;<span>
134
                       {{ it.execution_frequency }}&nbsp;{{
134
                       {{ it.execution_frequency }}&nbsp;{{
135
                         it.delivery_way
135
                         it.delivery_way

+ 15 - 3
src/xt_pages/qcd/basicInformationAnalysis.vue View File

174
                     <p>HDF+HP:{{item.count}}次({{(item.count/total*100).toFixed(2)}}%)</p>
174
                     <p>HDF+HP:{{item.count}}次({{(item.count/total*100).toFixed(2)}}%)</p>
175
                     <el-progress :percentage="(item.count/total*100).toFixed(2)"></el-progress>
175
                     <el-progress :percentage="(item.count/total*100).toFixed(2)"></el-progress>
176
                   </span>
176
                   </span>
177
-                  <span v-if="item.mode_id == 'HFHD+HP'">
178
-                      <p>HFHD+HP:{{item.count}}次({{(item.count/total*100).toFixed(2)}}%)</p>
177
+                  <!-- <span v-if="item.mode_id == 'HFHD+HD'">
178
+                      <p>HFHD+HD:{{item.count}}次({{(item.count/total*100).toFixed(2)}}%)</p>
179
                       <el-progress :percentage="(item.count/total*100).toFixed(2)"></el-progress>
179
                       <el-progress :percentage="(item.count/total*100).toFixed(2)"></el-progress>
180
-                  </span>
180
+                  </span> -->
181
                    <span v-if="item.mode_id == '腹水回输'">
181
                    <span v-if="item.mode_id == '腹水回输'">
182
                       <p>腹水回输:{{item.count}}次({{(item.count/total*100).toFixed(2)}}%)</p>
182
                       <p>腹水回输:{{item.count}}次({{(item.count/total*100).toFixed(2)}}%)</p>
183
                       <el-progress :percentage="(item.count/total*100).toFixed(2)"></el-progress>
183
                       <el-progress :percentage="(item.count/total*100).toFixed(2)"></el-progress>
1032
             if(modedate[i].mode_id == 28){
1032
             if(modedate[i].mode_id == 28){
1033
               modedate[i].mode_id = "CVVHDF"
1033
               modedate[i].mode_id = "CVVHDF"
1034
             }
1034
             }
1035
+            if(modedate[i].mode_id == 29){
1036
+              modedate[i].mode_id = "PE"
1037
+            }
1038
+            if(modedate[i].mode_id == 30){
1039
+              modedate[i].mode_id = "血浆胆红素吸附+HP"
1040
+            }
1041
+            if(modedate[i].mode_id == 31){
1042
+              modedate[i].mode_id = "HPD"
1043
+            }
1044
+            if(modedate[i].mode_id == 32){
1045
+              modedate[i].mode_id = "HDP"
1046
+            }
1035
             this.modetype = modedate
1047
             this.modetype = modedate
1036
 
1048
 
1037
             // this.modesData.xAxis.push(modedate[i].mode_id)
1049
             // this.modesData.xAxis.push(modedate[i].mode_id)

+ 3 - 2
src/xt_pages/role/admin.vue View File

177
           style="float:left"
177
           style="float:left"
178
           @click="toEnd">结束签署</el-button> -->
178
           @click="toEnd">结束签署</el-button> -->
179
            
179
            
180
-         
180
+       
181
           
181
           
182
      </div>
182
      </div>
183
     
183
     
1013
           this.$message.success("保存成功")
1013
           this.$message.success("保存成功")
1014
         }
1014
         }
1015
       })
1015
       })
1016
-    }
1016
+    },
1017
+   
1017
   },
1018
   },
1018
   watch: {
1019
   watch: {
1019
     should_update_admins(should_change) {
1020
     should_update_admins(should_change) {

+ 308 - 190
src/xt_pages/user/Sitemap.vue View File

3
     <div class='content_top' style="width: 100%;margin-bottom: 20px;border-bottom:1px solid #DCDFE6;padding-bottom:10px">
3
     <div class='content_top' style="width: 100%;margin-bottom: 20px;border-bottom:1px solid #DCDFE6;padding-bottom:10px">
4
       <div style="font-size: 20px;">血管通路位点标记</div>
4
       <div style="font-size: 20px;">血管通路位点标记</div>
5
       <div>
5
       <div>
6
-        <el-button type="primary">操作说明</el-button>
6
+        <!-- <el-button type="primary">操作说明</el-button> -->
7
       </div>
7
       </div>
8
     </div>
8
     </div>
9
 
9
 
18
         </div>
18
         </div>
19
       </div>
19
       </div>
20
       <div style="margin-top:6px;display:flex;flex-wrap: wrap;position:relative;min-height:480px;">
20
       <div style="margin-top:6px;display:flex;flex-wrap: wrap;position:relative;min-height:480px;">
21
-        <div style="width:47%;border:1px solid #ddd;padding: 5px;" id="print_mark_img" ref="imageWrapper">
22
-          <div id="point_mark_img_wrap1" class="print_main_content" style="width: 100%;padding: 0;border: 0;" >
21
+        <div style="width:47%;border:1px solid #ddd;padding: 5px;" id="print_mark_img" >
22
+          <div id="point_mark_img_wrap1" class="print_main_content" style="width: 100%;padding: 0;border: 0;" ref="imageWrapper">
23
 
23
 
24
-            <img v-if="fileList.length==0" id="ossPointMarkImg" src="@/assets/evaluate/xgtl_default.png" alt="" srcset="">
25
-            <img v-if="fileList.length>0" id="ossPointMarkImg" :src="fileList[0].img_url" alt="" srcset="">
24
+            <img v-if="fileList[0].img_url==0" id="ossPointMarkImg" src="@/assets/evaluate/xgtl_default.png" alt="" srcset="">
25
+            <img v-if="fileList[0].img_url!=''" id="ossPointMarkImg" :src="fileList[0].img_url" alt="" srcset="">
26
 
26
 
27
             <!-- A端/V端 v-if="a_num==2" -->
27
             <!-- A端/V端 v-if="a_num==2" -->
28
             <!-- <div v-for="(item,index) in A_arr" :key="index">
28
             <!-- <div v-for="(item,index) in A_arr" :key="index">
57
             </div> -->
57
             </div> -->
58
 
58
 
59
 
59
 
60
-            <!-- 穿刺文字 active  @mousedown="startDrag"   @mousedown="A_mousedow($event)" @mouseup="A_moouseup($event)" left:text_left+'px',top:text_top+'px',-->
61
-            <!-- <div  >@mousedown.self="A_mousedow($event)" @mouseup.self="A_moouseup($event)" -->
60
+            <!-- 穿刺文字 @mousedown="mousedown($event)"   active  @mousedown="startDrag"   @mousedown="A_mousedow($event)" @mouseup="A_moouseup($event)" left:text_left+'px',top:text_top+'px',-->
61
+            <!-- <div
62
+            >  width:(item.width + 10)+'px',-->
62
               <div v-for="(item,index) in text_arr" :key="index" class="add-mark-text-wrap active text" id="text" @mousedown="mousedown($event)"
63
               <div v-for="(item,index) in text_arr" :key="index" class="add-mark-text-wrap active text" id="text" @mousedown="mousedown($event)"
63
-              :style="{width:(item.width + 10)+'px',left:item.left+'px',top:item.top+'px','font-size':14+'px', position: 'absolute'}"
64
+              :style="{width: 'fit-content',left:item.left+'px',top:item.top+'px','font-size':14+'px', position: 'absolute'}"
64
               >
65
               >
65
-                <!-- <div  style="width:82px;left:62.17%;top:39.00%;display: inline-block;" @mousedown="A_mousedow($event)" @mouseup="A_moouseup($event)">position: 'absolute',top: 36+'%',left: 48+'%' -->
66
-                  <!-- {{ item }} @mousedown.self="A_mousedow($event)" @mouseup.self="A_moouseup($event)"-->
67
-                  <el-input v-text="item.text" size="mini" :style="{width:item.width+'px', border: 1+'px solid transparent', cursor: 'default'}"></el-input>
68
-                  <!-- <input id="inpu" type="text" :value="item" data-width="82" style="width: 82px; border: 1px solid transparent; cursor: default;" class="mark-text-ipt"> -->
69
-                <!-- </div> -->
66
+              <!-- <el-input v-model="item.text" class="inputStyle">
67
+                <template slot="prefix">
68
+                  {{ item.text }}
69
+                </template>
70
+              </el-input> -->
71
+
72
+                  <!-- <el-input v-model:value="item.text" size="mini" :style="{width:item.width+'px', border: 1+'px solid transparent', cursor: 'default'}"></el-input> -->
73
+                  <!-- <input id="inpu" type="text" :value="item.text" data-width="82" :style="{width:item.width+'px', border: 1+'px solid transparent', cursor: 'default',outline: 'none'}" class="mark-text-ipt"> -->
74
+                  <input id="inpu" type="text" @input="changewidth" v-model="item.text" data-width="82" :style="{width:'fit-content', border: 1+'px solid transparent', cursor: 'default',outline: 'none'}" class="mark-text-ipt">
75
+                  <!-- <input v-if="value!=''" id="inpu" type="text" v-model="value" data-width="82" :style="{width:item.width+'px', border: 1+'px solid transparent', cursor: 'default',outline: 'none'}" class="mark-text-ipt"> -->
76
+                  <!-- </div> -->
70
                 <span class="remove-mark-text" @click="input_deldte($event,item)">×</span>
77
                 <span class="remove-mark-text" @click="input_deldte($event,item)">×</span>
71
                  <span class="mark-text-line" style="transform: rotate(45deg);" data-rotate="45"></span>
78
                  <span class="mark-text-line" style="transform: rotate(45deg);" data-rotate="45"></span>
72
               </div>
79
               </div>
169
       </div>
176
       </div>
170
     </div>
177
     </div>
171
 
178
 
172
-    <div style="width:50%; margin-top:20px">
179
+    <!-- <div style="width:50%; margin-top:20px">
173
       <div class='content_top' style="width: 100%;margin-bottom: 20px;border-bottom:1px solid #DCDFE6;padding-bottom:10px">
180
       <div class='content_top' style="width: 100%;margin-bottom: 20px;border-bottom:1px solid #DCDFE6;padding-bottom:10px">
174
         <div style="font-size: 20px;">位点记录列表</div>
181
         <div style="font-size: 20px;">位点记录列表</div>
175
         <div>
182
         <div>
187
           </thead>
194
           </thead>
188
         </table>
195
         </table>
189
       </div>
196
       </div>
190
-    </div>
197
+    </div> -->
191
     <!-- 保存按钮的隐藏 -->
198
     <!-- 保存按钮的隐藏 -->
192
     <el-dialog
199
     <el-dialog
193
       title="提示"
200
       title="提示"
238
         <el-button type="primary" @click="centerDialogVisible = false">确 定</el-button>
245
         <el-button type="primary" @click="centerDialogVisible = false">确 定</el-button>
239
       </span> -->
246
       </span> -->
240
     </el-dialog>
247
     </el-dialog>
248
+    <!-- 打印 -->
249
+    <el-dialog
250
+      title="打印"
251
+      :visible.sync="dayinDialogVisible"
252
+      width="50%"
253
+      center>
254
+      <div>
255
+        <div @click="dayin">
256
+          <el-button type="primary" @click="dayin">打印</el-button>
257
+        </div>
258
+        <div id="print_img">
259
+          <div class="parint_content">
260
+            <!-- <div> -->
261
+              <div style="text-align: center;font-size:17;margin-bottom: 10px;">血液透析位点图</div>
262
+              <div style="display: flex;border-bottom: 1px solid black;padding: 5px;">
263
+                <div style="width: 200px;">患者姓名:{{ patients.name }}</div>
264
+                <div style="width: 200px;">透析号:{{ patients.dialysis_no }}</div>
265
+                <div style="width: 200px;">住院(门诊)号:{{ patients.admission_number }}</div>
266
+                <div style="width: 200px;">打印时间:{{date}}</div>
267
+              </div>
268
+
269
+              <div style="width: 530px;margin: 20px auto;">
270
+                <img :src="imgUrls" alt="" srcset="">
271
+
272
+              </div>
273
+            <!-- </div> -->
274
+          </div>
275
+        </div>
276
+      </div>
277
+      <!-- <span slot="footer" class="dialog-footer">
278
+        <el-button @click="dayinDialogVisible = false">取 消</el-button>
279
+        <el-button type="primary" @click="dayin">确 定</el-button>
280
+      </span> -->
281
+    </el-dialog>
241
   </div>
282
   </div>
242
 </template>
283
 </template>
243
 <script>
284
 <script>
245
 import { getFileExtension} from '@/utils/tools'
286
 import { getFileExtension} from '@/utils/tools'
246
 import { saveSitemap,getPatientSitemap,updateSiteMap } from "@/api/patient";
287
 import { saveSitemap,getPatientSitemap,updateSiteMap } from "@/api/patient";
247
 import { getToken } from '@/api/qiniu'
288
 import { getToken } from '@/api/qiniu'
289
+const moment = require('moment')
290
+import html2canvas from "html2canvas"
248
 export default{
291
 export default{
249
   components:{
292
   components:{
250
     // quillEditor
293
     // quillEditor
251
   },
294
   },
252
   data(){
295
   data(){
253
     return{
296
     return{
297
+      hidd:false,
254
       append:false,//控制是否编辑
298
       append:false,//控制是否编辑
255
       centerDialogVisible: false,
299
       centerDialogVisible: false,
256
       imgDialogVisible:false,
300
       imgDialogVisible:false,
257
       shiyituDialogVisible:false,
301
       shiyituDialogVisible:false,
302
+      dayinDialogVisible:false,
258
       imgUrl:[],
303
       imgUrl:[],
259
-      
304
+
260
       fangxiangA:[{markNum:'',left:'',top:''}],//a端进针方向的数组
305
       fangxiangA:[{markNum:'',left:'',top:''}],//a端进针方向的数组
261
       fangxiangA_num:1,//控制a端进针方向是否显示
306
       fangxiangA_num:1,//控制a端进针方向是否显示
262
       fangxiangA_left:400,//A端进针方向X
307
       fangxiangA_left:400,//A端进针方向X
267
       fangxiangV_left:100,//v端进针方向X
312
       fangxiangV_left:100,//v端进针方向X
268
       fangxiangV_top:78,//v端进针方向Y
313
       fangxiangV_top:78,//v端进针方向Y
269
 
314
 
270
-      
315
+
271
       fuzhuA:[{a_markNum:0,a_left:0,a_top:0}],//助辅工具a的数组
316
       fuzhuA:[{a_markNum:0,a_left:0,a_top:0}],//助辅工具a的数组
272
       fuzhuA_num:1,//控制a端辅助工具是否显示
317
       fuzhuA_num:1,//控制a端辅助工具是否显示
273
       xuanzhuan_a:0,//点击旋转角度a
318
       xuanzhuan_a:0,//点击旋转角度a
287
       obj_a:{a_markNum:'',a_left:'',a_top:''},//助辅工具a的对象
332
       obj_a:{a_markNum:'',a_left:'',a_top:''},//助辅工具a的对象
288
       obj_v:{v_markNum:'',v_left:'',v_top:''},//助辅工具v的对象
333
       obj_v:{v_markNum:'',v_left:'',v_top:''},//助辅工具v的对象
289
 
334
 
290
-      A_left:390,//A端X
291
-      A_top:180,//A端Y
292
       a_num:1,//控制a端是否显示和高亮
335
       a_num:1,//控制a端是否显示和高亮
293
 
336
 
294
-      V_left:184,//V端X
295
-      V_top:180,//V端Y
296
       v_num:1,//控制v端是否显示和高亮
337
       v_num:1,//控制v端是否显示和高亮
297
 
338
 
298
       text_arr:[],//文本框
339
       text_arr:[],//文本框
302
 
343
 
303
       av_bkx:0,
344
       av_bkx:0,
304
       av_bky:0,
345
       av_bky:0,
305
-      
306
-      fileList:[],
346
+
347
+      fileList:[{img_url:"",desc:"",id:0}],
307
       uploadData: { token: '', key: '' },
348
       uploadData: { token: '', key: '' },
308
       qiniuDomain: 'https://images.shengws.com/',
349
       qiniuDomain: 'https://images.shengws.com/',
309
       puncture_text:[{text:'穿刺角度',width:70},{text:'卡夫距导管出口距离cm',width:158},{text:'动脉端向心穿刺',width:116},{text:'动脉端离心穿刺',width:116},
350
       puncture_text:[{text:'穿刺角度',width:70},{text:'卡夫距导管出口距离cm',width:158},{text:'动脉端向心穿刺',width:116},{text:'动脉端离心穿刺',width:116},
330
       patientID:0,
371
       patientID:0,
331
       id:0,
372
       id:0,
332
       texts:null,
373
       texts:null,
374
+      imgUrls:'',
375
+      patients:{},
376
+      date:moment(new Date()).format("YYYY-MM-DD"),
377
+      widthtext:null,
333
     }
378
     }
334
   },
379
   },
335
   created(){
380
   created(){
381
+
336
     const id = this.$route.params && this.$route.params.id;
382
     const id = this.$route.params && this.$route.params.id;
337
     this.patientID = parseInt(id);
383
     this.patientID = parseInt(id);
338
 
384
 
339
     // this.getPatientSitemap(this.patientID)
385
     // this.getPatientSitemap(this.patientID)
340
   },
386
   },
341
   mounted(){
387
   mounted(){
388
+    console.log('asdfdfgfd',this.value);
389
+    console.log('333333',this.date);
390
+    console.log('asfdazxsdfdfdsdfsadfs',this.fileList);
342
   },
391
   },
343
   methods:{
392
   methods:{
344
     add(){
393
     add(){
360
     open(){
409
     open(){
361
       this.imgDialogVisible = true
410
       this.imgDialogVisible = true
362
     },
411
     },
363
-    // a_item(e,val){
364
-    //   const A_div =document.getElementsByClassName('point-mark-a-item')
365
-    //   console.log('aaaa',val,this.A_left);
366
-    //   for (let i=1;i<=A_div.length;i++){
367
-    //     if(val== i){
368
-    //       if(e.target.className.indexOf('not-allow')==-1){
369
-    //         A_div[i-1].classList.add('not-allow')
370
-    //          this.classname='not-allow'
371
-    //         console.log('eqwrqqweadsf',this.classname);
372
-    //         this.a_num=2
373
-    //         var obj ={markNum:'',left:'',top:''}
374
-    //         obj.markNum = val
375
-    //         obj.left= this.A_left
376
-    //         obj.top=(this.A_top + (i-1)*30)
377
-    //         this.A_arr.push(obj)
378
-    //         console.log('asdf',this.A_arr);
379
-    //       }else{
380
-    //         A_div[i-1].classList.remove('not-allow')
381
-    //         for(let y=0;y<this.A_arr.length;y++){
382
-    //           if(val==this.A_arr[y].markNum){
383
-    //             this.A_arr.splice(y,1)
384
-    //           }
385
-    //         }
386
-    //       }
387
-
388
-    //     }
389
-    //   }
390
-    //   // console.log('333',this.A_arr)
391
-    // },
392
 
412
 
393
     a_item(e,val){
413
     a_item(e,val){
414
+      console.log('asdfasdf222',this.Aarr);
394
      for(let i=0;i<this.Aarr.length;i++){
415
      for(let i=0;i<this.Aarr.length;i++){
416
+      console.log('asdfasdf222');
395
       // if(this.A_left[i].a_num=1){
417
       // if(this.A_left[i].a_num=1){
396
       if(this.Aarr[i].markNum==val){
418
       if(this.Aarr[i].markNum==val){
397
         if(this.A_right[i].a_num==1){
419
         if(this.A_right[i].a_num==1){
429
       // }
451
       // }
430
      }
452
      }
431
     },
453
     },
432
-    // v_item(e,val){
433
-    //   const V_div =document.getElementsByClassName('point-mark-v-item')
434
-    //   console.log('1111',val,e.target.className);
435
-    //   for (let i=1;i<=V_div.length;i++){
436
-    //     if(val== i){
437
-    //       if(e.target.className.indexOf('not-allow')==-1){
438
-    //         V_div[i-1].classList.add('not-allow')
439
-    //         this.v_num=2
440
-    //         var obj ={markNum:'',left:'',top:''}
441
-    //         obj.markNum = val
442
-    //         obj.left= this.V_left
443
-    //         obj.top=(this.V_top + (i-1)*30)
444
-    //         this.V_arr.push(obj)
445
-    //         console.log('GFSDGDSD',this.V_arr);
446
-    //       }else{
447
-    //         V_div[i-1].classList.remove('not-allow')
448
-    //         // this.V_ite=val
449
-    //         for(let y=0;y<this.V_arr.length;y++){
450
-    //           if(val==this.V_arr[y].markNum){
451
-    //             this.V_arr.splice(y,1)
452
-    //           }
453
-    //         }
454
-    //       }
455
-
456
-    //     }
457
-    //   }
458
-    // },
454
+
459
     A_mousedow(e){
455
     A_mousedow(e){
460
       console.log('7777',e);
456
       console.log('7777',e);
461
       // console.log('8888',val);
457
       // console.log('8888',val);
469
       var Alen=this.A_arr
465
       var Alen=this.A_arr
470
       // var Vlen=this.V_arr
466
       // var Vlen=this.V_arr
471
       // var textlen=this.text_arr
467
       // var textlen=this.text_arr
468
+
472
       var fx_alen=this.fangxiangA
469
       var fx_alen=this.fangxiangA
473
       var fx_vlen=this.fangxiangV
470
       var fx_vlen=this.fangxiangV
474
-      // var FZ_alen=this.fuzhuA
475
-      // var FZ_vlen=this.fuzhuV
476
       var aleng=this.Aarr
471
       var aleng=this.Aarr
477
       var vleng=this.Varr
472
       var vleng=this.Varr
478
       if(e.preventDefault){
473
       if(e.preventDefault){
555
           }
550
           }
556
         }
551
         }
557
       }
552
       }
558
-      console.log('x',Alen,'12341234',this.A_top);
553
+      // console.log('x',Alen,'12341234',this.A_top);
559
     },
554
     },
560
     A_moouseup(e){
555
     A_moouseup(e){
561
-      // console.log('9999',e);
562
-      // console.log('0000',val);
563
       document.onmousemove =null
556
       document.onmousemove =null
564
     },
557
     },
565
     mousedown(e){
558
     mousedown(e){
566
-      // this.texts = document.getElementsByClassName('text')[0]
567
       const tet=document.getElementsByClassName('text')
559
       const tet=document.getElementsByClassName('text')
568
-      const evetext=e.target.innerText.split('\n')[0]
569
       var textlen=this.text_arr
560
       var textlen=this.text_arr
570
-      console.log('ZXCBVCB',textlen);
561
+      console.log('ZXCBVCB',textlen,'33333',this.value);
562
+      const even= e.target.value
563
+      // console.log('zxcvbnvxcz',even);
571
       for(let i=0;i<tet.length;i++){
564
       for(let i=0;i<tet.length;i++){
572
-        const textsle = tet[i].innerText.split('\n')[0]
573
-        if(evetext == textsle){
565
+        const textsle= tet[i].firstChild.value
566
+        // console.log('5234254',textsle);
567
+        if(even == textsle){
574
           const disX = e.clientX - tet[i].offsetLeft;
568
           const disX = e.clientX - tet[i].offsetLeft;
575
           const disY = e.clientY - tet[i].offsetTop;
569
           const disY = e.clientY - tet[i].offsetTop;
576
           const isdow=true
570
           const isdow=true
584
             tet[i].style.top = moveY + "px";
578
             tet[i].style.top = moveY + "px";
585
             for(let i=0;i<textlen.length;i++){
579
             for(let i=0;i<textlen.length;i++){
586
               // const textsle=e.target.innerText.split('\n')[0]
580
               // const textsle=e.target.innerText.split('\n')[0]
587
-              if(textlen[i].text == textsle){
581
+              if(textlen[i].text == e.target.value){
588
                 console.log('3333');
582
                 console.log('3333');
589
                 textlen[i].left=moveX
583
                 textlen[i].left=moveX
590
                 textlen[i].top=moveY
584
                 textlen[i].top=moveY
650
       }
644
       }
651
     },
645
     },
652
     punctureclick(e,val){
646
     punctureclick(e,val){
653
-      console.log('event',e,'value',val);
647
+      console.log('event',e,'value',this.value);
654
       const text=e.target
648
       const text=e.target
655
       const textlen=this.text_arr.length
649
       const textlen=this.text_arr.length
656
-
657
       if(text.innerText == val.text){
650
       if(text.innerText == val.text){
658
         this.text_num=2
651
         this.text_num=2
659
        const obj={text:'',left:'',top:'',width:''}
652
        const obj={text:'',left:'',top:'',width:''}
662
        obj.left=this.text_left
655
        obj.left=this.text_left
663
        obj.top=this.text_top+(textlen*30)
656
        obj.top=this.text_top+(textlen*30)
664
        obj.width=e.target.offsetWidth
657
        obj.width=e.target.offsetWidth
658
+      // obj.width= this.widthtext
665
         this.text_arr.push(obj)
659
         this.text_arr.push(obj)
666
       }
660
       }
667
 
661
 
677
       }
671
       }
678
     },
672
     },
679
     fangxiang_A(e){
673
     fangxiang_A(e){
674
+      // if(this.fangxiangA[0].fangxiangA_num==1){
675
+      //   this.fangxiangA[0].fangxiangA_num=2
676
+      // }else{
677
+      //   this.fangxiangA[0].fangxiangA_num=1
678
+      // }
680
       if(this.fangxiangA_num == 1){
679
       if(this.fangxiangA_num == 1){
681
         console.log('1111',e);
680
         console.log('1111',e);
682
         var obj ={markNum:'',left:'',top:''}
681
         var obj ={markNum:'',left:'',top:''}
684
         obj.left= this.fangxiangA_left
683
         obj.left= this.fangxiangA_left
685
         obj.top=this.fangxiangA_top
684
         obj.top=this.fangxiangA_top
686
         this.fangxiangA.push(obj)
685
         this.fangxiangA.push(obj)
686
+        this.fangxiangA.shift()
687
         console.log('asdfdfgfd',this.fangxiangA);
687
         console.log('asdfdfgfd',this.fangxiangA);
688
         return this.fangxiangA_num = 2
688
         return this.fangxiangA_num = 2
689
       }else{
689
       }else{
690
+        // this.fangxiangA.shift()
690
         console.log('2222');
691
         console.log('2222');
691
         return this.fangxiangA_num = 1
692
         return this.fangxiangA_num = 1
692
       }
693
       }
699
         obj.left= this.fangxiangV_left
700
         obj.left= this.fangxiangV_left
700
         obj.top=this.fangxiangV_top
701
         obj.top=this.fangxiangV_top
701
         this.fangxiangV.push(obj)
702
         this.fangxiangV.push(obj)
703
+        this.fangxiangV.shift()
702
         console.log('asdfdfgfd',this.fangxiangV);
704
         console.log('asdfdfgfd',this.fangxiangV);
703
         return this.fangxiangV_num = 2
705
         return this.fangxiangV_num = 2
704
       }else{
706
       }else{
707
+        // this.fangxiangV.shift()
705
         console.log('2222');
708
         console.log('2222');
706
         return this.fangxiangV_num = 1
709
         return this.fangxiangV_num = 1
707
       }
710
       }
713
         this.obj_a.a_left= this.fuzhuA_left
716
         this.obj_a.a_left= this.fuzhuA_left
714
         this.obj_a.a_top=this.fuzhuA_top
717
         this.obj_a.a_top=this.fuzhuA_top
715
         this.fuzhuA.push(this.obj_a)
718
         this.fuzhuA.push(this.obj_a)
719
+        this.fuzhuA.shift()
716
         console.log('asdfdfgfd',this.fuzhuA);
720
         console.log('asdfdfgfd',this.fuzhuA);
717
         return this.fuzhuA_num = 2
721
         return this.fuzhuA_num = 2
718
       }else{
722
       }else{
719
-        this.fuzhuA.shift()
723
+        // this.fuzhuA.shift()
720
         console.log('辅助工具a2222');
724
         console.log('辅助工具a2222');
721
         return this.fuzhuA_num = 1
725
         return this.fuzhuA_num = 1
722
       }
726
       }
728
         this.obj_v.v_left= this.fuzhuV_left
732
         this.obj_v.v_left= this.fuzhuV_left
729
         this.obj_v.v_top=this.fuzhuV_top
733
         this.obj_v.v_top=this.fuzhuV_top
730
         this.fuzhuV.push(this.obj_v)
734
         this.fuzhuV.push(this.obj_v)
735
+        this.fuzhuV.shift()
731
         console.log('辅助工具v1111',this.fuzhuV);
736
         console.log('辅助工具v1111',this.fuzhuV);
732
         return this.fuzhuV_num = 2
737
         return this.fuzhuV_num = 2
733
       }else{
738
       }else{
734
-        this.fuzhuV.shift()
739
+        // this.fuzhuV.shift()
735
         console.log('辅助工具v2222');
740
         console.log('辅助工具v2222');
736
         return this.fuzhuV_num = 1
741
         return this.fuzhuV_num = 1
737
       }
742
       }
759
       }
764
       }
760
     },
765
     },
761
     printtup(){
766
     printtup(){
762
-      const style='@media print{.print_main_content{#ossPointMarkImg {width: 100%;min-height: 600px;height: auto;border-radius: 2px;pointer-events: none;} #point_mark_img_wrap1 {-webkit-user-select: none;-moz-user-select: none;-ms-user-select: none;user-select: none;position: relative;padding: 4px;width: 600px;background-color: #fff;border: 1px solid #ddd;border-radius: 4px;} .mark-target-a{background: #E73535;top: 40px; left: 40px;} .mark-line{background: #E73535;} .mark-target-v{background: rgb(53,162,231);.mark-line{background: #35A2E7;}}  .mark-target-a,.mark-target-v {position: absolute;z-index: 1001;width: 26px;border-radius: 13px;height: 26px;text-align: center;line-height: 26px;font-size: 18px;cursor: move;color: rgb(255,255,255);.mark-line {transform: rotate(160deg);transform-origin: left bottom;}.mark-line {display: inline-block;position: absolute;left: 50%;top: 50%;width: 86px;height: 1px;cursor: default;z-index: -1;} div.add-mark-text-wrap {position: absolute;top: 36%;left: 48%;border-radius: 4px;width: 60px;height: 24px;line-height: 24px;z-index: 1005;display: inline-block;} .remove-mark-text{overflow: hidden;} b.xtgl-ccz-arrow-a {border-left-color: #E73535;border-top-color: #E73535;} b.xtgl-ccz-arrow-v {border-left-color: #35a2e7;border-top-color: #35a2e7;} b.xtgl-ccz-arrow {position: absolute;width: 7px;height: 7px;border-left-width: 2px;border-left-style: solid;border-top-width: 2px;border-top-style: solid;top: -3px;right: 0;transform: rotate(138deg);} b.xtgl-ccz-arrow-v {border-left-color: #35a2e7;border-top-color: #35a2e7;}div.frame-image {position: absolute;overflow: hidden;top: 0px;left: 0px;width: 100%;height: 100%;background-image: url('+'../../assets/evaluate/tool-a.png'+');background-position: center center;background-size: 100%; background-repeat: no-repeat;}}}'
763
-      // const style='@media print{.print_main_content{#ossPointMarkImg {width: 100%;min-height: 600px;height: auto;border-radius: 2px;pointer-events: none;} #point_mark_img_wrap1 {-webkit-user-select: none;-moz-user-select: none;-ms-user-select: none;user-select: none;position: relative;padding: 4px;width: 600px;background-color: #fff;border: 1px solid #ddd;border-radius: 4px;}  b.xtgl-ccz-arrow-a {border-left-color: #E73535;border-top-color: #E73535;}
764
-      // b.xtgl-ccz-arrow {position: absolute;width: 7px;height: 7px;border-left-width: 2px;border-left-style: solid;border-top-width: 2px;border-top-style: solid;top: -3px;right: 0;transform: rotate(138deg);} b.xtgl-ccz-arrow-v {border-left-color: #35a2e7;border-top-color: #35a2e7;}
765
-      // .mark-target-a{background: #E73535;top: 40px;left: 40px;} .mark-line{background: #E73535;}}}'
766
-      // const style='@media print{.print_main_content{#ossPointMarkImg {width: 100%;min-height: 600px;height: auto;border-radius: 2px;pointer-events: none;} #point_mark_img_wrap1 {-webkit-user-select: none;-moz-user-select: none;-ms-user-select: none;user-select: none;position: relative;padding: 4px;width: 600px;background-color: #fff;border: 1px solid #ddd;border-radius: 4px;} .mark-target-a{background: #E73535;top: 40px; left: 40px;} .mark-line{background: #E73535;} .mark-target-v{background: rgb(53,162,231);.mark-line{background: #35A2E7;}}  .mark-target-a,.mark-target-v {position: absolute;z-index: 1001;width: 26px;border-radius: 13px;height: 26px;text-align: center;line-height: 26px;font-size: 18px;cursor: move;color: rgb(255,255,255);.mark-line {transform: rotate(160deg);transform-origin: left bottom;}.mark-line {display: inline-block;position: absolute;left: 50%;top: 50%;width: 86px;height: 1px;cursor: default;z-index: -1;} div.add-mark-text-wrap {position: absolute;top: 36%;left: 48%;border-radius: 4px;width: 60px;height: 24px;line-height: 24px;z-index: 1005;display: inline-block;} input {width: 100px;width: 60px;max-width: 400px;border: 1px solid transparent;padding: 4px;color: #333;height: 24px;cursor: pointer;background-color: #fcfcfc;position: absolute;left: 0;top: 0;font-size: 13px;z-index: 1002;border-radius: 2px !important;outline: none;}.mark-text-ipt {cursor: default;}}}}'
767
+      console.log('先发给对方v不合格',this.fileList[0].img_url);
768
+      this.dayinDialogVisible = true
769
+      html2canvas(this.$refs.imageWrapper,{backgroundColor: null,allowTaint: true,useCORS: true,scrollY: 0,scrollX: 0,}).then(canvas => {
770
+        // 转成图片,生成图片地址
771
+        this.imgUrls = canvas.toDataURL("image/png");
772
+        console.log('123424534',this.imgUrls)
773
+      });
767
 
774
 
775
+
776
+    },
777
+    // 打印
778
+    dayin(){
779
+
780
+      const style='@media print{.parint_content{width:960px;} #ossPointMarkImg {width: 520px;min-height: 600px;height: auto;border-radius: 2px;pointer-events: none;} .mark-target-a{background: #E73535;top: 40px; left: 40px;} .mark-line{background: #E73535;} .mark-target-v{background: rgb(53,162,231);.mark-line{background: #35A2E7;}}  .mark-target-a,.mark-target-v {position: absolute;z-index: 1001;width: 26px;border-radius: 13px;height: 26px;text-align: center;line-height: 26px;font-size: 18px;cursor: move;color: rgb(255,255,255);.mark-line {transform: rotate(160deg);transform-origin: left bottom;}.mark-line {display: inline-block;position: absolute;left: 50%;top: 50%;width: 86px;height: 1px;cursor: default;z-index: -1;}}'
768
       printJS({
781
       printJS({
769
-        printable: "print_mark_img",
782
+        printable: "print_img",
770
         type: "html",
783
         type: "html",
771
         style: style,
784
         style: style,
772
         scanStyles: false
785
         scanStyles: false
773
       });
786
       });
787
+      this.dayinDialogVisible = false
774
     },
788
     },
775
     imgv_click(){
789
     imgv_click(){
776
       if(this.img_v==false){
790
       if(this.img_v==false){
874
       console.log('111',err);
888
       console.log('111',err);
875
       this.$message.error(err)
889
       this.$message.error(err)
876
       this.loading.close()
890
       this.loading.close()
891
+      this.imgDialogVisible=false
877
       return false
892
       return false
878
     },
893
     },
879
     handleAvatarSuccess(res, file) {
894
     handleAvatarSuccess(res, file) {
880
       console.log("RESPOWOWOWOWO",res)
895
       console.log("RESPOWOWOWOWO",res)
881
       console.log("wowowowow",file)
896
       console.log("wowowowow",file)
897
+      this.fileList.shift()
882
       this.fileList.push({
898
       this.fileList.push({
883
         img_url: this.qiniuDomain + res.url + '?imageView2/2/w/500/h/500/q/90',
899
         img_url: this.qiniuDomain + res.url + '?imageView2/2/w/500/h/500/q/90',
884
         desc: '',
900
         desc: '',
983
        if(this.V_right!=null && this.V_right.length>0){
999
        if(this.V_right!=null && this.V_right.length>0){
984
 
1000
 
985
          for(let i=0;i<this.V_right.length;i++){
1001
          for(let i=0;i<this.V_right.length;i++){
986
-            this.V_right[i].markNum = parseInt(this.V_right[i].markNum)?parseInt(this.V_right[i].markNum):0
1002
+            this.V_right[i].mark_num = parseInt(this.V_right[i].markNum)?parseInt(this.V_right[i].markNum):0
987
             this.V_right[i].v_num = parseInt(this.V_right[i].v_num)?parseInt(this.V_right[i].v_num):0
1003
             this.V_right[i].v_num = parseInt(this.V_right[i].v_num)?parseInt(this.V_right[i].v_num):0
988
          }
1004
          }
989
        }
1005
        }
990
 
1006
 
991
-   
992
 
1007
 
1008
+      if(this.Aarr!=null && this.Aarr.length>0){
1009
+        console.log('asdfa',this.Aarr);
1010
+        for(let i=0;i<this.Aarr.length;i++){
1011
+            this.Aarr[i].mark_num = parseInt(this.Aarr[i].markNum)?parseInt(this.Aarr[i].markNum):0
1012
+            this.Aarr[i].is_status = parseInt(this.Aarr[i].status)?parseInt(this.Aarr[i].status):0
1013
+            this.Aarr[i].left = parseInt(this.Aarr[i].left)?parseInt(this.Aarr[i].left):0
1014
+            this.Aarr[i].top = parseInt(this.Aarr[i].top)?parseInt(this.Aarr[i].top):0
1015
+        }
1016
+      }
1017
+
1018
+      if(this.Varr!=null && this.Varr.length>0){
1019
+
1020
+        for(let i=0;i<this.Varr.length;i++){
1021
+            this.Varr[i].mark_num = parseInt(this.Varr[i].markNum)?parseInt(this.Varr[i].markNum):0
1022
+            this.Varr[i].is_status = parseInt(this.Varr[i].status)?parseInt(this.Varr[i].status):0
1023
+            this.Varr[i].left = parseInt(this.Varr[i].left)?parseInt(this.Varr[i].left):0
1024
+            this.Varr[i].top = parseInt(this.Varr[i].top)?parseInt(this.Varr[i].top):0
1025
+        }
1026
+      }
1027
+
1028
+
1029
+       var img_url = ""
1030
+       if(this.fileList!=null && this.fileList.length>0){
1031
+          img_url = this.fileList[0].img_url
1032
+       }
993
        var params = {
1033
        var params = {
994
          id:this.id,
1034
          id:this.id,
995
          is_append:is_append,
1035
          is_append:is_append,
998
          v_num:this.v_num?this.v_num:0,
1038
          v_num:this.v_num?this.v_num:0,
999
          text_num:this.text_num?this.text_num:0,
1039
          text_num:this.text_num?this.text_num:0,
1000
          fangxiang_a:this.fangxiangA,
1040
          fangxiang_a:this.fangxiangA,
1001
-         fangxiang_a_num:this.fangxiangA_num,
1002
-         fangxiang_v_num:this.fangxiangV_num,
1041
+         fangxiang_a_num:this.fangxiangA_num?this.fangxiangA_num:0,
1042
+         fangxiang_v_num:this.fangxiangV_num?this.fangxiangV_num:0,
1003
          fangxiang_a_left:this.fangxiangA_left,
1043
          fangxiang_a_left:this.fangxiangA_left,
1004
          fangxiang_a_top:this.fangxiangA_top,
1044
          fangxiang_a_top:this.fangxiangA_top,
1005
          fangxiang_v:this.fangxiangV,
1045
          fangxiang_v:this.fangxiangV,
1006
          fangxiang_v_left:this.fangxiangV_left,
1046
          fangxiang_v_left:this.fangxiangV_left,
1007
          fangxiang_v_top:this.fangxiangV_top,
1047
          fangxiang_v_top:this.fangxiangV_top,
1008
-         fuzhu_a_num:this.fuzhuA_num,
1009
-         fuzhu_v_num:this.fuzhuV_num,
1010
-         xuanzhuan_a:this.xuanzhuan_a,
1011
-         xuanzhuan_v:this.xuanzhuan_v,
1048
+         fuzhu_a_num:this.fuzhuA_num?this.fuzhuA_num:0,
1049
+         fuzhu_v_num:this.fuzhuV_num?this.fuzhuV_num:0,
1050
+         xuanzhuan_a:this.xuanzhuan_a?this.xuanzhuan_a:0,
1051
+         xuanzhuan_v:this.xuanzhuan_v?this.xuanzhuan_v:0,
1012
          fuzhu_a:this.fuzhuA,
1052
          fuzhu_a:this.fuzhuA,
1013
          fuzhu_a_top:this.fuzhuA_top,
1053
          fuzhu_a_top:this.fuzhuA_top,
1014
          fuzhu_a_left:this.fuzhuA_left,
1054
          fuzhu_a_left:this.fuzhuA_left,
1016
          fuzhu_v_top:this.fuzhuV_top,
1056
          fuzhu_v_top:this.fuzhuV_top,
1017
          fuzhu_v_left:this.fuzhuV_left,
1057
          fuzhu_v_left:this.fuzhuV_left,
1018
          a_left:this.A_right,
1058
          a_left:this.A_right,
1019
-         a_top:this.A_top,
1059
+         a_top:0,
1020
          v_left:this.V_right,
1060
          v_left:this.V_right,
1021
-         v_top:this.V_top,
1061
+         v_top:0,
1022
          text_arr:this.text_arr,
1062
          text_arr:this.text_arr,
1023
          text_left:this.text_left,
1063
          text_left:this.text_left,
1024
          text_top:this.text_top,
1064
          text_top:this.text_top,
1025
-         av_bkx:this.av_bkx,
1026
-         av_bky:this.av_bky,
1027
-         scalev_num:this.scalev_num,
1028
-         scalea_num:this.scalea_num,
1065
+         av_bkx:this.av_bkx?this.av_bkx:0,
1066
+         av_bky:this.av_bky?this.av_bky:0,
1067
+         scalev_num:this.scalev_num?this.scalev_num:0,
1068
+         scalea_num:this.scalea_num?this.scalea_num:0,
1029
          patient_id:this.patientID,
1069
          patient_id:this.patientID,
1030
-         left_a:this.A_left,
1031
-         left_v:this.V_left,
1070
+         left_a:0,
1071
+         left_v:0,
1072
+         aarr:this.Aarr,
1073
+         varr:this.Varr,
1074
+         img_url:img_url,
1032
        }
1075
        }
1033
        console.log("paramswowwo",params)
1076
        console.log("paramswowwo",params)
1034
 
1077
 
1036
           if(response.data.state == 1){
1079
           if(response.data.state == 1){
1037
             var deviceValsualMap =  response.data.data.deviceValsualMap
1080
             var deviceValsualMap =  response.data.data.deviceValsualMap
1038
             this.$message.success("保存成功!")
1081
             this.$message.success("保存成功!")
1039
-            
1082
+
1040
             this.append =false
1083
             this.append =false
1041
             this.getPatientSitemap(this.patientID)
1084
             this.getPatientSitemap(this.patientID)
1042
           }
1085
           }
1047
          if(response.data.state == 1){
1090
          if(response.data.state == 1){
1048
             var sitemap = response.data.data.sitemap
1091
             var sitemap = response.data.data.sitemap
1049
             console.log('idzhesdfasd',sitemap);
1092
             console.log('idzhesdfasd',sitemap);
1093
+            var patients = response.data.data.patients
1094
+            this.patients=patients
1095
+            console.log("患者信息",this.patients.name)
1050
             if(sitemap.id>0){
1096
             if(sitemap.id>0){
1051
               if(sitemap.is_append == 1){
1097
               if(sitemap.is_append == 1){
1052
               this.is_append =true
1098
               this.is_append =true
1067
             }
1113
             }
1068
 
1114
 
1069
             this.id = sitemap.id
1115
             this.id = sitemap.id
1070
-
1071
-            this.A_top = sitemap.a_top
1072
-            this.av_bkx = sitemap.av_bkx
1073
-            this.av_bky = sitemap.av_bky
1074
-            this.fangxiangA_top = sitemap.fangxiang_a_left
1075
-            this.fangxiangA_num = sitemap.fangxiang_a_num
1076
-            this.fangxiangA_num = sitemap.fangxiang_a_top
1077
-            this.fangxiangV_left = sitemap.fangxiang_v_left
1078
-            this.fangxiangV_num =sitemap.fangxiang_v_num
1079
-            this.fangxiangV_top = sitemap.fangxiang_v_top
1080
-            this.fuzhuA_left= sitemap.fuzhu_a_left
1081
-            this.fuzhuA_num = sitemap.fuzhu_a_num
1082
-            this.fuzhuA_top =sitemap.fuzhu_a_top
1083
-            this.fuzhuV_left =sitemap.fuzhu_v_left
1116
+            this.av_bkx = sitemap.av_bkx?sitemap.av_bkx:0
1117
+            this.av_bky = sitemap.av_bky?sitemap.av_bky:0
1118
+            this.fangxiangA_left = sitemap.fangxiang_a_left?sitemap.fangxiang_a_left:0
1119
+            this.fangxiangA_num = sitemap.fangxiang_a_num?sitemap.fangxiang_a_num:0
1120
+            this.fangxiangA_top = sitemap.fangxiang_a_top?sitemap.fangxiang_a_top:0
1121
+            this.fangxiangV_left = sitemap.fangxiang_v_left?sitemap.fangxiang_v_left:0
1122
+            this.fangxiangV_num =sitemap.fangxiang_v_num?sitemap.fangxiang_v_num:0
1123
+            this.fangxiangV_top = sitemap.fangxiang_v_top?sitemap.fangxiang_v_top:0
1124
+            this.fuzhuA_left= sitemap.fuzhu_a_left?sitemap.fuzhu_a_left:0
1125
+            this.fuzhuA_num = sitemap.fuzhu_a_num?sitemap.fuzhu_a_num:0
1126
+            this.fuzhuA_top =sitemap.fuzhu_a_top?sitemap.fuzhu_a_top:0
1127
+            this.fuzhuV_left =sitemap.fuzhu_v_left?sitemap.fuzhu_v_left:0
1084
             this.fuzhuV_num = sitemap.fuzhu_v_num
1128
             this.fuzhuV_num = sitemap.fuzhu_v_num
1085
             this.fuzhuV_top =sitemap.fuzhu_v_top
1129
             this.fuzhuV_top =sitemap.fuzhu_v_top
1086
             this.patientID = sitemap.patient_id
1130
             this.patientID = sitemap.patient_id
1090
             this.text_num =sitemap.text_num
1134
             this.text_num =sitemap.text_num
1091
             this.text_top = sitemap.text_top
1135
             this.text_top = sitemap.text_top
1092
             this.v_num =sitemap.v_num
1136
             this.v_num =sitemap.v_num
1093
-            this.V_top = sitemap.v_top
1137
+
1094
             this.xuanzhuan_a = sitemap.xuanzhuan_a
1138
             this.xuanzhuan_a = sitemap.xuanzhuan_a
1095
             this.xuanzhuan_v = sitemap.xuanzhuan_v
1139
             this.xuanzhuan_v = sitemap.xuanzhuan_v
1096
-            this.A_left = sitemap.a_left
1097
-            this.V_left = sitemap.v_left
1140
+
1141
+
1142
+            console.log("wowowowowowowowowoowow",sitemap.img_url)
1143
+            this.fileList[0].img_url =  sitemap.img_url
1144
+
1098
             this.A_right = []
1145
             this.A_right = []
1099
-            
1100
-            for(let i=0;i<sitemap.DeviceValsualALeft.length;i++){
1101
-             
1102
-              sitemap.DeviceValsualALeft[i].markNum =  sitemap.DeviceValsualALeft[i].mark_num
1103
 
1146
 
1104
-              this.A_right.push(sitemap.DeviceValsualALeft[i])
1105
-            }
1147
+            if(sitemap.DeviceValsualALeft!=null && sitemap.DeviceValsualALeft.length>0){
1148
+              for(let i=0;i<sitemap.DeviceValsualALeft.length;i++){
1106
 
1149
 
1150
+                sitemap.DeviceValsualALeft[i].markNum =  sitemap.DeviceValsualALeft[i].mark_num
1151
+
1152
+                this.A_right.push(sitemap.DeviceValsualALeft[i])
1153
+             }
1154
+            }
1155
+            console.log('阿斯顿发生v微软',this.A_right);
1107
             this.V_right = []
1156
             this.V_right = []
1108
-            
1109
-            for(let i=0;i<sitemap.DeviceValsualALeft.length;i++){
1110
-             
1111
-              sitemap.XtDeviceValsualVLeft[i].markNum =  sitemap.XtDeviceValsualVLeft[i].mark_num
1157
+            if(sitemap.DeviceValsualALeft!=null && sitemap.DeviceValsualALeft.length>0){
1158
+              for(let i=0;i<sitemap.DeviceValsualALeft.length;i++){
1112
 
1159
 
1113
-              this.V_right.push(sitemap.XtDeviceValsualVLeft[i])
1160
+                sitemap.XtDeviceValsualVLeft[i].markNum =  sitemap.XtDeviceValsualVLeft[i].mark_num
1161
+
1162
+                this.V_right.push(sitemap.XtDeviceValsualVLeft[i])
1163
+              }
1114
             }
1164
             }
1115
-           
1165
+
1116
             this.fuzhuA = []
1166
             this.fuzhuA = []
1117
-            for(let i=0;i<sitemap.DeviceValsualFuzhuA.length;i++){
1167
+            if(sitemap.DeviceValsualFuzhuA!=null && sitemap.DeviceValsualFuzhuA.length>0){
1168
+              for(let i=0;i<sitemap.DeviceValsualFuzhuA.length;i++){
1118
                sitemap.DeviceValsualFuzhuA[i].a_markNum = sitemap.DeviceValsualFuzhuA[i].a_mark_num
1169
                sitemap.DeviceValsualFuzhuA[i].a_markNum = sitemap.DeviceValsualFuzhuA[i].a_mark_num
1119
               this.fuzhuA.push( sitemap.DeviceValsualFuzhuA[i])
1170
               this.fuzhuA.push( sitemap.DeviceValsualFuzhuA[i])
1120
             }
1171
             }
1121
-           
1172
+            }
1173
+
1122
             this.fuzhuV = []
1174
             this.fuzhuV = []
1123
-           for(let i=0;i<sitemap.DeviceValsualFuzhuV.length;i++){
1124
-             sitemap.DeviceValsualFuzhuV[i].v_markNum = sitemap.DeviceValsualFuzhuV[i].a_mark_num
1125
-             this.fuzhuV.push( sitemap.DeviceValsualFuzhuV[i])
1126
-           }
1127
-         
1175
+            if(sitemap.DeviceValsualFuzhuV!=null && sitemap.DeviceValsualFuzhuV.length>0){
1176
+              for(let i=0;i<sitemap.DeviceValsualFuzhuV.length;i++){
1177
+              sitemap.DeviceValsualFuzhuV[i].v_markNum = sitemap.DeviceValsualFuzhuV[i].a_mark_num
1178
+              this.fuzhuV.push( sitemap.DeviceValsualFuzhuV[i])
1179
+             }
1180
+            }
1181
+
1128
              this.fangxiangA = []
1182
              this.fangxiangA = []
1129
-             for(let i=0;i<sitemap.DeviceValsualMapFangxiangA.length;i++){
1130
-               sitemap.DeviceValsualMapFangxiangA[i].markNum = sitemap.DeviceValsualMapFangxiangA[i].mark_n
1131
-               this.fangxiangA.push(sitemap.DeviceValsualMapFangxiangA[i])
1183
+             if(sitemap.DeviceValsualMapFangxiangA!=null && sitemap.DeviceValsualMapFangxiangA.length>0){
1184
+               for(let i=0;i<sitemap.DeviceValsualMapFangxiangA.length;i++){
1185
+                sitemap.DeviceValsualMapFangxiangA[i].markNum = sitemap.DeviceValsualMapFangxiangA[i].mark_num
1186
+                this.fangxiangA.push(sitemap.DeviceValsualMapFangxiangA[i])
1187
+               }
1132
              }
1188
              }
1133
-             
1134
-             
1189
+             console.log('11111111111',this.fangxiangA);
1190
+
1135
              this.fangxiangV = []
1191
              this.fangxiangV = []
1136
-             for(let i=0;i<sitemap.DeviceValsualMapFangxiangV.length;i++){
1137
-               sitemap.DeviceValsualMapFangxiangV[i].markNum = sitemap.DeviceValsualMapFangxiangV[i].mark_num
1138
-               this.fangxiangV.push(sitemap.DeviceValsualMapFangxiangV[i])
1192
+             if(sitemap.DeviceValsualMapFangxiangV!=null && sitemap.DeviceValsualMapFangxiangV.length>0){
1193
+                for(let i=0;i<sitemap.DeviceValsualMapFangxiangV.length;i++){
1194
+                sitemap.DeviceValsualMapFangxiangV[i].markNum = sitemap.DeviceValsualMapFangxiangV[i].mark_num
1195
+                this.fangxiangV.push(sitemap.DeviceValsualMapFangxiangV[i])
1196
+              }
1139
              }
1197
              }
1140
-             
1198
+             console.log('222222222222',this.fangxiangV);
1199
+
1141
              this.text_arr = []
1200
              this.text_arr = []
1142
-             for(let i=0;i<sitemap.DeviceValsualTextArr.length;i++){
1201
+             if(sitemap.DeviceValsualTextArr!=null && sitemap.DeviceValsualTextArr.length>0){
1202
+              for(let i=0;i<sitemap.DeviceValsualTextArr.length;i++){
1143
                this.text_arr.push(sitemap.DeviceValsualTextArr[i])
1203
                this.text_arr.push(sitemap.DeviceValsualTextArr[i])
1204
+              }
1144
              }
1205
              }
1145
-             
1206
+
1207
+
1208
+             this.Aarr = []
1209
+             if(sitemap.DeviceValusalMapArr!=null && sitemap.DeviceValusalMapArr.length>0){
1210
+              for(let i=0;i<sitemap.DeviceValusalMapArr.length;i++){
1211
+                sitemap.DeviceValusalMapArr[i].markNum = sitemap.DeviceValusalMapArr[i].mark_num
1212
+                sitemap.DeviceValusalMapArr[i].status = sitemap.DeviceValusalMapArr[i].is_status
1213
+                this.Aarr.push(sitemap.DeviceValusalMapArr[i])
1214
+              }
1215
+             }
1216
+
1217
+
1218
+             this.Varr = []
1219
+             if(sitemap.DeviceValusalMapVrr!=null && sitemap.DeviceValusalMapVrr.length>0){
1220
+              for(let i=0;i<sitemap.DeviceValusalMapVrr.length;i++){
1221
+               sitemap.DeviceValusalMapVrr[i].markNum = sitemap.DeviceValusalMapVrr[i].mark_num
1222
+               sitemap.DeviceValusalMapVrr[i].status = sitemap.DeviceValusalMapVrr[i].is_status
1223
+               this.Varr.push(sitemap.DeviceValusalMapVrr[i])
1224
+              }
1225
+             }
1226
+            //  this.fileList.push({
1227
+            //     img_url: sitemap.img_url,
1228
+            //     desc: '',
1229
+            //     id: 0
1230
+            //   })
1231
+            //  this.fileList[0].img_url = sitemap.img_url
1232
+             console.log('图片啊手动阀手动阀',this.fileList);
1146
             }
1233
             }
1147
 
1234
 
1148
          }
1235
          }
1149
       })
1236
       })
1150
     },
1237
     },
1151
-    
1238
+
1152
     chakan(){
1239
     chakan(){
1153
       console.log('22222',);
1240
       console.log('22222',);
1154
       this.shiyituDialogVisible=true
1241
       this.shiyituDialogVisible=true
1163
         u8arr[n] = bstr.charCodeAt(n);
1250
         u8arr[n] = bstr.charCodeAt(n);
1164
       }
1251
       }
1165
       return new Blob([u8arr], { type: mime });
1252
       return new Blob([u8arr], { type: mime });
1253
+    },
1254
+    changewidth(){
1255
+      // let input = document.getElementById("inpu");
1256
+      // const l = input.value.length;
1257
+      // this.widthtext=(l+1) * 15 + "px"
1258
+      // input.style.width = (l+1) * 15 + "px";
1166
     }
1259
     }
1167
   },
1260
   },
1168
   created(){
1261
   created(){
1169
-    // console.log('chu','chu',);
1170
     const id = this.$route.params && this.$route.params.id;
1262
     const id = this.$route.params && this.$route.params.id;
1171
     this.patientID = parseInt(id);
1263
     this.patientID = parseInt(id);
1172
 
1264
 
1404
   line-height: 24px;
1496
   line-height: 24px;
1405
   z-index: 1005;
1497
   z-index: 1005;
1406
   display: inline-block;
1498
   display: inline-block;
1407
-  .el-input {
1408
-    /* position: relative; */
1409
-    font-size: 14px;
1410
-    display: inline-block;
1411
-    width: 100%;
1412
-  }
1499
+  // .el-input {
1500
+  //   /* position: relative; */
1501
+  //   font-size: 14px;
1502
+  //   display: inline-block;
1503
+  //   width: 100%;
1504
+  // }
1505
+  .input{
1506
+  width: 224px;
1507
+  height: 40px;
1508
+  line-height: 40px;
1509
+  background: #F3F6FB;
1510
+  border-radius: 4px;
1511
+  padding:0  12px;
1512
+  margin-right: 20px;
1513
+}
1514
+.input ::v-deep .el-input__inner {
1515
+  width: 100%;
1516
+  border: none;
1517
+  outline: none;
1518
+  font-size: 14px;
1519
+  background: #F3F6FB;
1520
+}
1521
+
1413
 }
1522
 }
1414
 div.add-mark-text-wrap input.mark-text-ipt {
1523
 div.add-mark-text-wrap input.mark-text-ipt {
1415
     cursor: default;
1524
     cursor: default;
1416
 }
1525
 }
1417
-// div.add-mark-text-wrap input {
1418
-//     width: 100px;
1419
-//     width: 60px;
1420
-//     max-width: 400px;
1421
-//     border: 1px solid transparent;
1422
-//     padding: 4px;
1423
-//     color: #333;
1424
-//     height: 24px;
1425
-//     cursor: pointer;
1426
-//     background-color: #fcfcfc;
1427
-//     // position: absolute;
1428
-//     // left: 0;
1429
-//     // top: 0;
1430
-//     font-size: 13px;
1431
-//     z-index: 1002;
1432
-//     border-radius: 2px !important;
1433
-//     outline: none;
1434
-// }
1526
+
1435
 input, button, textarea, select, optgroup, option {
1527
 input, button, textarea, select, optgroup, option {
1436
     font-family: inherit;
1528
     font-family: inherit;
1437
     font-size: inherit;
1529
     font-size: inherit;
1557
     opacity: 0;
1649
     opacity: 0;
1558
     z-index: -1;
1650
     z-index: -1;
1559
 }
1651
 }
1652
+// .inputStyle {
1653
+//   margin-top: 30px;
1654
+//   text-align: start;    // 这里一样要设置,否则不是对齐的居中状态
1655
+//   min-width: 160px;   //这里给一个最小宽度
1656
+// }
1657
+// .el-input {
1658
+//    width: auto;  // 这里一定要设置为auto 否则由于input是默认width :100%的
1659
+// }
1660
+// .inputStyle >>> .el-input__prefix {
1661
+//   display: inline-block;
1662
+//   position: relative;
1663
+//   border: 1px solid #dcdfe6;
1664
+//   box-sizing: border-box;
1665
+//   color: #606266;
1666
+//   font-size: inherit;
1667
+//   height: 40px;
1668
+//   line-height: 40px;
1669
+//   padding: 0 30px;
1670
+//   transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
1671
+//   padding-left: 30px;
1672
+//   left: 0;
1673
+//   visibility: hidden;
1674
+// }
1675
+// .inputStyle >>> .el-input__inner {
1676
+//   position: absolute;
1677
+// }
1560
 </style>
1678
 </style>
1561
 <style lang="scss">
1679
 <style lang="scss">
1562
 .ql-snow .ql-tooltip[data-mode="link"]::before {
1680
 .ql-snow .ql-tooltip[data-mode="link"]::before {

+ 4 - 3
src/xt_pages/user/patients.vue View File

528
           <el-form-item label="转归(死亡)时间 :" prop="lapseto_time" required v-if="lapsetoForm.lapseto_type == 2 || lapsetoForm.lapseto_type == 3"> 
528
           <el-form-item label="转归(死亡)时间 :" prop="lapseto_time" required v-if="lapsetoForm.lapseto_type == 2 || lapsetoForm.lapseto_type == 3"> 
529
             <el-date-picker
529
             <el-date-picker
530
               v-model="lapsetoForm.lapseto_time"
530
               v-model="lapsetoForm.lapseto_time"
531
-              type="datetime"
532
-              format="yyyy-MM-dd HH:mm:ss"
533
-              value-format="yyyy-MM-dd HH:mm:ss"
531
+              type="date"
532
+              format="yyyy-MM-dd"
533
+              value-format="yyyy-MM-dd"
534
               placeholder="选择日期时间"
534
               placeholder="选择日期时间"
535
               default-time="12:00:00"
535
               default-time="12:00:00"
536
             >
536
             >
1347
         //   this.lapsetoForm.lapseto_type = 3
1347
         //   this.lapsetoForm.lapseto_type = 3
1348
         //  }
1348
         //  }
1349
         console.log("22222",this.lapsetoForm)
1349
         console.log("22222",this.lapsetoForm)
1350
+       
1350
         EditLapseto(this.lapsetoForm.patient_id, this.lapsetoForm,this.form.patient_start_time,this.form.patient_end_time,this.form.patient_address).then(
1351
         EditLapseto(this.lapsetoForm.patient_id, this.lapsetoForm,this.form.patient_start_time,this.form.patient_end_time,this.form.patient_address).then(
1351
           response => {
1352
           response => {
1352
             if (response.data.state === 1) {
1353
             if (response.data.state === 1) {

File diff suppressed because it is too large
+ 1155 - 0
src/xt_pages/workforce/Patientshift.vue