瀏覽代碼

打印单

XMLWAN 4 年之前
父節點
當前提交
26afbb7344

+ 1 - 0
src/api/dialysis.js 查看文件

@@ -145,6 +145,7 @@ export function getDialysisRecord(params) {
145 145
 }
146 146
 
147 147
 export function postPrescription(params) {
148
+  console.log('params是----', params)
148 149
   return request({
149 150
     url: '/api/dialysis/prescription',
150 151
     method: 'Post',

+ 74 - 16
src/xt_pages/data/printTemplate.vue 查看文件

@@ -15,7 +15,9 @@
15 15
         </p>
16 16
         <el-row :gutter="20" type="flex" justify="center">
17 17
           <el-col :span="6" style="text-align: center">
18
-            <div>
18
+            <div
19
+              @click="imgClick('https://images.shengws.com/fangji.jpg')"
20
+            >
19 21
               <el-tooltip
20 22
                 class="item"
21 23
                 effect="dark"
@@ -23,11 +25,17 @@
23 25
                 content="点击查看大图"
24 26
                 placement="top-start"
25 27
               >
28
+                <!--<el-image-->
29
+                  <!--style="width: 200px; height: 200px"-->
30
+                  <!--:src="require('@/assets/home/1.jpg')"-->
31
+                  <!--:preview-src-list="imgs_one"-->
32
+                <!--&gt;</el-image>-->
33
+
26 34
                 <el-image
27 35
                   style="width: 200px; height: 200px"
28 36
                   :src="require('@/assets/home/1.jpg')"
29
-                  :preview-src-list="imgs_one"
30 37
                 ></el-image>
38
+
31 39
               </el-tooltip>
32 40
             </div>
33 41
             <el-radio v-model="radio" label="1" @change="change"
@@ -38,7 +46,10 @@
38 46
             :span="6"
39 47
             style="margin-left: 100px;margin-right: 100px;text-align: center"
40 48
           >
41
-            <div>
49
+            <div
50
+              @click="imgClick('https://images.shengws.com/template_two.jpg')"
51
+
52
+            >
42 53
               <el-tooltip
43 54
                 class="item"
44 55
                 effect="dark"
@@ -46,10 +57,15 @@
46 57
                 placement="top-start"
47 58
                 :hide-after="2000"
48 59
               >
60
+                <!--<el-image-->
61
+                  <!--style="width: 200px; height: 200px"-->
62
+                  <!--:src="require('@/assets/home/2.jpg')"-->
63
+                  <!--:preview-src-list="imgs_two"-->
64
+                <!--&gt;</el-image>-->
65
+
49 66
                 <el-image
50 67
                   style="width: 200px; height: 200px"
51 68
                   :src="require('@/assets/home/2.jpg')"
52
-                  :preview-src-list="imgs_two"
53 69
                 ></el-image>
54 70
               </el-tooltip>
55 71
             </div>
@@ -58,7 +74,7 @@
58 74
             >
59 75
           </el-col>
60 76
           <el-col :span="6" style="text-align: center">
61
-            <div class="demo-image__preview">
77
+            <div class="demo-image__preview"  @click="imgClick('https://images.shengws.com/template_five.jpg')">
62 78
               <el-tooltip
63 79
                 class="item"
64 80
                 effect="dark"
@@ -66,11 +82,17 @@
66 82
                 placement="top-start"
67 83
                 :hide-after="2000"
68 84
               >
85
+                <!--<el-image-->
86
+                  <!--style="width: 200px; height: 200px"-->
87
+                  <!--:src="require('@/assets/home/5.jpg')"-->
88
+                  <!--:preview-src-list="imgs_five"-->
89
+                <!--&gt;</el-image>-->
90
+
69 91
                 <el-image
70 92
                   style="width: 200px; height: 200px"
71 93
                   :src="require('@/assets/home/5.jpg')"
72
-                  :preview-src-list="imgs_five"
73 94
                 ></el-image>
95
+
74 96
               </el-tooltip>
75 97
             </div>
76 98
             <el-radio v-model="radio" label="5" @change="change"
@@ -78,7 +100,7 @@
78 100
             >
79 101
           </el-col>
80 102
           <el-col :span="6" style="text-align: center">
81
-            <div class="demo-image__preview">
103
+            <div class="demo-image__preview"  @click="imgClick('https://images.shengws.com/serven.png')">
82 104
               <el-tooltip
83 105
                 class="item"
84 106
                 effect="dark"
@@ -86,10 +108,15 @@
86 108
                 placement="top-start"
87 109
                 :hide-after="2000"
88 110
               >
111
+                <!--<el-image-->
112
+                  <!--style="width: 200px; height: 200px"-->
113
+                  <!--:src="require('@/assets/home/serven.png')"-->
114
+                  <!--:preview-src-list="imgs_seven"-->
115
+                <!--&gt;</el-image>-->
116
+
89 117
                 <el-image
90 118
                   style="width: 200px; height: 200px"
91 119
                   :src="require('@/assets/home/serven.png')"
92
-                  :preview-src-list="imgs_seven"
93 120
                 ></el-image>
94 121
               </el-tooltip>
95 122
             </div>
@@ -100,7 +127,7 @@
100 127
         </el-row>
101 128
         <el-row :gutter="20" type="flex">
102 129
           <el-col :span="6" style="text-align: center">
103
-            <div class="demo-image__preview">
130
+            <div class="demo-image__preview" @click="imgClick('https://images.shengws.com/eight.png')">
104 131
               <el-tooltip
105 132
                 class="item"
106 133
                 effect="dark"
@@ -108,10 +135,15 @@
108 135
                 placement="top-start"
109 136
                 :hide-after="2000"
110 137
               >
138
+                <!--<el-image-->
139
+                  <!--style="width: 200px; height: 200px;margin-left:-60px"-->
140
+                  <!--:src="require('@/assets/home/eight.png')"-->
141
+                  <!--:preview-src-list="imgs_six"-->
142
+                <!--&gt;</el-image>-->
143
+
111 144
                 <el-image
112 145
                   style="width: 200px; height: 200px;margin-left:-60px"
113 146
                   :src="require('@/assets/home/eight.png')"
114
-                  :preview-src-list="imgs_six"
115 147
                 ></el-image>
116 148
               </el-tooltip>
117 149
             </div>
@@ -124,7 +156,7 @@
124 156
             >
125 157
           </el-col>
126 158
           <el-col :span="6" style="text-align: center">
127
-            <div class="demo-image__preview">
159
+            <div class="demo-image__preview" @click="imgClick('https://images.shengws.com/template_six.png')">
128 160
               <el-tooltip
129 161
                 class="item"
130 162
                 effect="dark"
@@ -132,10 +164,15 @@
132 164
                 placement="top-start"
133 165
                 :hide-after="2000"
134 166
               >
167
+                <!--<el-image-->
168
+                  <!--style="width: 200px; height: 200px;margin-left:30px"-->
169
+                  <!--:src="require('@/assets/home/template_six.png')"-->
170
+                  <!--:preview-src-list="imgs_eight"-->
171
+                <!--&gt;</el-image>-->
172
+
135 173
                 <el-image
136 174
                   style="width: 200px; height: 200px;margin-left:30px"
137 175
                   :src="require('@/assets/home/template_six.png')"
138
-                  :preview-src-list="imgs_eight"
139 176
                 ></el-image>
140 177
               </el-tooltip>
141 178
             </div>
@@ -166,20 +203,30 @@
166 203
           <!--</el-col>-->
167 204
         </el-row>
168 205
       </div>
206
+
207
+
208
+      <el-image-viewer
209
+        v-if="showViewer"
210
+        :on-close="closeViewer"
211
+        :url-list="imgs"
212
+      ></el-image-viewer>
213
+
169 214
     </div>
170 215
   </div>
171 216
 </template>
172 217
 
173 218
 <script>
174 219
 import BreadCrumb from "@/xt_pages/components/bread-crumb";
220
+import ElImageViewer from 'element-ui/packages/image/src/image-viewer'
175 221
 import { getPrintTemplate, postPrintTemplate } from "@/api/data";
176 222
 import store from "@/store";
177 223
 
178 224
 export default {
179 225
   name: "printTemplate",
180
-  components: { BreadCrumb },
226
+  components: { ElImageViewer, BreadCrumb },
181 227
   data() {
182 228
     return {
229
+      showViewer:false,
183 230
       crumbs: [
184 231
         { path: false, name: "管理中心" },
185 232
         { path: "data/print", name: "打印模版" }
@@ -188,14 +235,16 @@ export default {
188 235
       imgUrl_Two: require("@/assets/home/2.jpg"),
189 236
       imgUrl_Five: require("@/assets/home/5.jpg"),
190 237
 
238
+      imgs:[],
239
+
191 240
       imgs_one: [
192 241
         // 'https://images.shengws.com/template_one.jpg'
193 242
         "https://images.shengws.com/fangji.jpg"
194 243
       ],
195 244
       imgs_two: ["https://images.shengws.com/template_two.jpg"],
196 245
       imgs_five: ["https://images.shengws.com/template_five.jpg"],
197
-      imgs_seven: ["http://images.shengws.com/serven.png"],
198
-      imgs_six: ["http://images.shengws.com/eight.png"],
246
+      imgs_seven: ["https://images.shengws.com/serven.png"],
247
+      imgs_six: ["https://images.shengws.com/eight.png"],
199 248
       imgs_eight: ["https://images.shengws.com/template_six.png"],
200 249
       imgs_ten: ["https://kuyi.shengws.com/template_ten.jpg"],
201 250
 
@@ -206,6 +255,15 @@ export default {
206 255
     };
207 256
   },
208 257
   methods: {
258
+    imgClick(val){
259
+      this.imgs = []
260
+      this.imgs.push(val)
261
+      this.showViewer = true
262
+
263
+    },
264
+    closeViewer() {
265
+      this.showViewer = false
266
+    },
209 267
     change: function(val) {
210 268
       console.log("val是什么", val);
211 269
       this.$confirm(
@@ -227,7 +285,7 @@ export default {
227 285
               // 同步
228 286
               // console.log(response.data.data.fileds)
229 287
               this.loading = false;
230
-               store.dispatch("updateAllFiledConfigList", response.data.data.fileds).then(() => {});
288
+              // store.dispatch("updateAllFiledConfigList", response.data.data.fileds).then(() => {});
231 289
               this.$message({
232 290
                 type: "success",
233 291
                 message: "切换成功"

+ 34 - 7
src/xt_pages/dialysis/details/acceptsAssessment.vue 查看文件

@@ -146,7 +146,7 @@
146 146
           '1': '正常',
147 147
           '2': '异常'
148 148
         },
149
-        precautions:[]
149
+        precautions:[],
150 150
       }
151 151
     },
152 152
     props: {
@@ -263,16 +263,41 @@
263 263
         } else {
264 264
           return this.psychological_assessment[this.record.psychological_assessment] == undefined ? '' : this.psychological_assessment[this.record.psychological_assessment] + ''
265 265
         }
266
-      }, precaution: function() {
267
-        if (this.record.id == 0) {
266
+      }, 
267
+      precaution: function() {
268
+        if (this.record.id == 0 || this.record == null ) {
269
+          console.log("id--------")
268 270
           return ''
269 271
         } else {
270
-          for (let i = 0; i < this.precautions.length; i++){
271
-            if (this.record.precaution == this.precautions[i].id){
272
-              return this.precautions[i].name
273
-
272
+          //console.log("-----",this.record.precaution)
273
+          var obj = this.record.precaution
274
+            console.log("obj--",obj)
275
+          if(obj == null){
276
+            return ""
277
+          }
278
+          if(obj !=null){
279
+             var arr = obj.split(",")
280
+          // console.log("arr----",arr)
281
+            var arrtwo = []
282
+            for(let i=0;i<arr.length;i++){
283
+              for(let j=0;j<this.precautions.length;j++){
284
+                if(parseInt(arr[i]) == this.precautions[j].id){
285
+                  arrtwo.push(this.precautions[j].name)
286
+                }
287
+              }
274 288
             }
289
+               // console.log("arrtwo",arrtwo)
290
+              var objtwo = arrtwo.join(",")
291
+            // console.log("objtwo",objtwo)
292
+              return objtwo
275 293
           }
294
+         // for (let i = 0; i < this.precautions.length; i++){
295
+
296
+           // if (this.record.precaution == this.precautions[i].id){
297
+           //   return this.precautions[i].name
298
+           //
299
+           // }
300
+          // }
276 301
           // return this.precautions[this.record.precaution] == undefined ? '' : this.precautions[this.record.precaution] + ''
277 302
         }
278 303
       }
@@ -289,12 +314,14 @@
289 314
       }
290 315
     },
291 316
     created(){
317
+      console.log("records",this.record)
292 318
       this.ways = getDataConfig('hemodialysis', 'way')
293 319
       this.consciousnesses = getDataConfig('hemodialysis', 'consciousness')
294 320
       this.appetites = getDataConfig('hemodialysis', 'appetite')
295 321
       this.postures = getDataConfig('hemodialysis', 'posture')
296 322
       this.sick_condition = getDataConfig('hemodialysis', 'sick_condition')
297 323
       this.precautions = getDataConfig('hemodialysis', 'precaution')
324
+      console.log("跌倒预防措施",this.precautions)
298 325
       this.intake = getDataConfig('hemodialysis', 'intake')
299 326
       this.nutrition = getDataConfig('hemodialysis', 'nutrition')
300 327
       console.log(this.ways)

+ 1 - 0
src/xt_pages/dialysis/details/assessmentBefore.vue 查看文件

@@ -391,6 +391,7 @@ export default {
391 391
         return "-";
392 392
       }
393 393
       return this.record.internal_fistula;
394
+     
394 395
     },
395 396
 
396 397
     internal_fistula_skin: function() {

+ 76 - 24
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue 查看文件

@@ -1360,7 +1360,22 @@ export default {
1360 1360
             return;
1361 1361
           }
1362 1362
 
1363
-          const ParamsQuery = this.dialysisPrescription;
1363
+           var arr = this.dialysisPrescription;
1364
+            console.log("arr", arr);
1365
+            for (let i = 0; i < this.dialyzerPerfusionApparatus.length; i++) {
1366
+              if (
1367
+                parseInt(arr.dialyzer_perfusion_apparatus) ==
1368
+                this.dialyzerPerfusionApparatus[i].id
1369
+              ) {
1370
+                arr.dialyzer_perfusion_apparatus = this.dialyzerPerfusionApparatus[
1371
+                  i
1372
+                ].name;
1373
+              }
1374
+            }
1375
+
1376
+            const ParamsQuery = arr;
1377
+            console.log("医嘱推送2", ParamsQuery);
1378
+
1364 1379
           ParamsQuery["patient"] = this.patient.id;
1365 1380
           ParamsQuery["record_date"] = this.record_date;
1366 1381
 
@@ -1435,7 +1450,22 @@ export default {
1435 1450
             this.loading = false;
1436 1451
             return;
1437 1452
           }
1438
-          const ParamsQuery = this.dialysisPrescription;
1453
+           var arr = this.dialysisPrescription;
1454
+            console.log("arr", arr);
1455
+            for (let i = 0; i < this.dialyzerPerfusionApparatus.length; i++) {
1456
+              if (
1457
+                parseInt(arr.dialyzer_perfusion_apparatus) ==
1458
+                this.dialyzerPerfusionApparatus[i].id
1459
+              ) {
1460
+                arr.dialyzer_perfusion_apparatus = this.dialyzerPerfusionApparatus[
1461
+                  i
1462
+                ].name;
1463
+              }
1464
+            }
1465
+
1466
+            const ParamsQuery = arr;
1467
+            console.log("医嘱推送3", ParamsQuery);
1468
+
1439 1469
 
1440 1470
           ParamsQuery["patient"] = this.patient.id;
1441 1471
           ParamsQuery["record_date"] = this.record_date;
@@ -1511,7 +1541,23 @@ export default {
1511 1541
             return;
1512 1542
           }
1513 1543
 
1514
-          const ParamsQuery = this.dialysisPrescription;
1544
+            var arr = this.dialysisPrescription;
1545
+            console.log("arr", arr);
1546
+            for (let i = 0; i < this.dialyzerPerfusionApparatus.length; i++) {
1547
+              if (
1548
+                parseInt(arr.dialyzer_perfusion_apparatus) ==
1549
+                this.dialyzerPerfusionApparatus[i].id
1550
+              ) {
1551
+                arr.dialyzer_perfusion_apparatus = this.dialyzerPerfusionApparatus[
1552
+                  i
1553
+                ].name;
1554
+              }
1555
+            }
1556
+
1557
+            const ParamsQuery = arr;
1558
+            console.log("医嘱推送4", ParamsQuery);
1559
+
1560
+
1515 1561
           ParamsQuery["patient"] = this.patient.id;
1516 1562
           ParamsQuery["record_date"] = this.record_date;
1517 1563
           console.log(this.prescription);
@@ -1550,7 +1596,22 @@ export default {
1550 1596
             this.loading = false;
1551 1597
             return;
1552 1598
           }
1553
-          const ParamsQuery = this.dialysisPrescription;
1599
+           var arr = this.dialysisPrescription;
1600
+            console.log("arr", arr);
1601
+            for (let i = 0; i < this.dialyzerPerfusionApparatus.length; i++) {
1602
+              if (
1603
+                parseInt(arr.dialyzer_perfusion_apparatus) ==
1604
+                this.dialyzerPerfusionApparatus[i].id
1605
+              ) {
1606
+                arr.dialyzer_perfusion_apparatus = this.dialyzerPerfusionApparatus[
1607
+                  i
1608
+                ].name;
1609
+              }
1610
+            }
1611
+
1612
+            const ParamsQuery = arr;
1613
+            console.log("医嘱推送5", ParamsQuery);
1614
+
1554 1615
           ParamsQuery["patient"] = this.patient.id;
1555 1616
           ParamsQuery["record_date"] = this.record_date;
1556 1617
           ParamsQuery["mode"] = 1;
@@ -1721,12 +1782,8 @@ export default {
1721 1782
           console.log("arr", arr);
1722 1783
           for (let i = 0; i < this.dialyzerPerfusionApparatus.length; i++) {
1723 1784
             if (
1724
-              parseInt(arr.dialyzer_perfusion_apparatus) ==
1725
-              this.dialyzerPerfusionApparatus[i].id
1726
-            ) {
1727
-              arr.dialyzer_perfusion_apparatus = this.dialyzerPerfusionApparatus[
1728
-                i
1729
-              ].name;
1785
+              parseInt(arr.dialyzer_perfusion_apparatus) == this.dialyzerPerfusionApparatus[i].id) {
1786
+              arr.dialyzer_perfusion_apparatus = this.dialyzerPerfusionApparatus[i].name;
1730 1787
             }
1731 1788
           }
1732 1789
 
@@ -1735,7 +1792,7 @@ export default {
1735 1792
           ParamsQuery["patient"] = this.patient.id;
1736 1793
           ParamsQuery["record_date"] = this.record_date;
1737 1794
           ParamsQuery["mode"] = "1";
1738
-
1795
+          
1739 1796
           postPrescription(ParamsQuery).then(response => {
1740 1797
             if (response.data.state == 0) {
1741 1798
               this.$message.error(response.data.msg);
@@ -1907,23 +1964,18 @@ export default {
1907 1964
             var arr = this.dialysisPrescription;
1908 1965
             console.log("arr", arr);
1909 1966
             for (let i = 0; i < this.dialyzerPerfusionApparatus.length; i++) {
1910
-              if (
1911
-                parseInt(arr.dialyzer_perfusion_apparatus) ==
1912
-                this.dialyzerPerfusionApparatus[i].id
1913
-              ) {
1914
-                arr.dialyzer_perfusion_apparatus = this.dialyzerPerfusionApparatus[
1915
-                  i
1916
-                ].name;
1967
+              if ( parseInt(arr.dialyzer_perfusion_apparatus) == this.dialyzerPerfusionApparatus[i].id) {
1968
+                arr.dialyzer_perfusion_apparatus = this.dialyzerPerfusionApparatus[i].name;
1917 1969
               }
1918 1970
             }
1919
-
1920 1971
             const ParamsQuery = arr;
1921 1972
             console.log("paramsqueryfour", ParamsQuery);
1922
-            if (this.prescription.creater <= 0) {
1923
-              mode = 1;
1924
-            } else {
1925
-              mode = 2;
1926
-            }
1973
+            console.log("创建者",this.prescription.creater)
1974
+            //if (this.prescription.creater <= 0) {
1975
+            //  mode = 1;
1976
+            //} else {
1977
+            //  mode = 2;
1978
+            //}
1927 1979
             ParamsQuery["patient"] = this.patient.id;
1928 1980
             ParamsQuery["record_date"] = this.record_date;
1929 1981
             // console.log(this.prescription);

+ 1 - 0
src/xt_pages/dialysis/details/index.vue 查看文件

@@ -548,6 +548,7 @@ export default {
548 548
           console.log("透析处方",prescription)
549 549
           var solution = resp.data.solution; // 透析方案
550 550
           var receiver_treatment_access = resp.data.receiver_treatment_access; // 接诊评估
551
+          console.log("receiver_treatment_access",receiver_treatment_access)
551 552
           var predialysis_evaluation = resp.data.predialysis_evaluation; // 透前评估
552 553
           console.log("透前评估",predialysis_evaluation)
553 554
            if(predialysis_evaluation !=null){

+ 0 - 10
src/xt_pages/workforce/template.vue 查看文件

@@ -70,17 +70,7 @@
70 70
                  size="small" icon="el-icon-setting" type="primary" @click="import_file()">导出模版
71 71
       </el-button>
72 72
 
73
-      <el-button
74
-        @click="generateLog()"
75
-        class="filter-item"
76
-        type="primary"
77
-        size="small"
78
-      >下载错误日志
79
-      </el-button>
80 73
 
81
-      <!--<upload-excel style="float:right;" :on-success='handleSuccess' :before-upload="beforeUpload"></upload-excel>-->
82
-      <schedule-template-upload-excel style="float:right;" :on-success='handleSuccess'
83
-                                      :before-upload="beforeUpload"></schedule-template-upload-excel>
84 74
 
85 75
       <el-button size="small" icon="el-icon-setting" type="primary" @click="setScheduleTemplateAction">设置模板</el-button>
86 76
       <!-- </el-col> -->