Bladeren bron

Merge branch 'master' of http://git.shengws.com/csx/Vue_New

csx 4 jaren geleden
bovenliggende
commit
02ecc8ba6d

+ 1 - 0
src/api/dialysis.js Bestand weergeven

@@ -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',

+ 6 - 6
src/xt_pages/data/printTemplate.vue Bestand weergeven

@@ -47,7 +47,7 @@
47 47
             style="margin-left: 100px;margin-right: 100px;text-align: center"
48 48
           >
49 49
             <div
50
-              @click="imgClick('https://images.shengws.com/fangji.jpg')"
50
+              @click="imgClick('https://images.shengws.com/template_two.jpg')"
51 51
 
52 52
             >
53 53
               <el-tooltip
@@ -74,7 +74,7 @@
74 74
             >
75 75
           </el-col>
76 76
           <el-col :span="6" style="text-align: center">
77
-            <div class="demo-image__preview">
77
+            <div class="demo-image__preview"  @click="imgClick('https://images.shengws.com/template_five.jpg')">
78 78
               <el-tooltip
79 79
                 class="item"
80 80
                 effect="dark"
@@ -100,7 +100,7 @@
100 100
             >
101 101
           </el-col>
102 102
           <el-col :span="6" style="text-align: center">
103
-            <div class="demo-image__preview">
103
+            <div class="demo-image__preview"  @click="imgClick('https://images.shengws.com/serven.png')">
104 104
               <el-tooltip
105 105
                 class="item"
106 106
                 effect="dark"
@@ -127,7 +127,7 @@
127 127
         </el-row>
128 128
         <el-row :gutter="20" type="flex">
129 129
           <el-col :span="6" style="text-align: center">
130
-            <div class="demo-image__preview">
130
+            <div class="demo-image__preview" @click="imgClick('https://images.shengws.com/eight.png')">
131 131
               <el-tooltip
132 132
                 class="item"
133 133
                 effect="dark"
@@ -156,7 +156,7 @@
156 156
             >
157 157
           </el-col>
158 158
           <el-col :span="6" style="text-align: center">
159
-            <div class="demo-image__preview">
159
+            <div class="demo-image__preview" @click="imgClick('https://images.shengws.com/template_six.png')">
160 160
               <el-tooltip
161 161
                 class="item"
162 162
                 effect="dark"
@@ -285,7 +285,7 @@ export default {
285 285
               // 同步
286 286
               // console.log(response.data.data.fileds)
287 287
               this.loading = false;
288
-               store.dispatch("updateAllFiledConfigList", response.data.data.fileds).then(() => {});
288
+              // store.dispatch("updateAllFiledConfigList", response.data.data.fileds).then(() => {});
289 289
               this.$message({
290 290
                 type: "success",
291 291
                 message: "切换成功"

+ 34 - 7
src/xt_pages/dialysis/details/acceptsAssessment.vue Bestand weergeven

@@ -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 Bestand weergeven

@@ -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 Bestand weergeven

@@ -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 Bestand weergeven

@@ -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){

+ 10 - 11
src/xt_pages/dialysis/template/DialysisPrintOrderEight.vue Bestand weergeven

@@ -218,15 +218,14 @@
218 218
           <td style="text-align:left;" colspan="2">
219 219
             <span style="display:inline-block;margin-left:15px;">
220 220
               透析时间:
221
-              {{
222
-              afterdialysis.actual_treatment_hour
223
-              ? afterdialysis.actual_treatment_hour
224
-              : "0"
225
-              }}小时{{
226
-              afterdialysis.actual_treatment_minute
227
-              ? afterdialysis.actual_treatment_minute
228
-              : "0"
229
-              }}分钟
221
+              {{ prescription.dialysis_duration_hour
222
+                 ? prescription.dialysis_duration_hour
223
+                 : "0"
224
+                 }}小时{{
225
+                 prescription.dialysis_duration_minute
226
+                        ? prescription.dialysis_duration_minute
227
+                        : "0"
228
+                    }}分钟
230 229
             </span>
231 230
           </td>
232 231
           <td style="text-align:left;" colspan="1">
@@ -945,11 +944,11 @@
945 944
               透析中进食:
946 945
               <label-box
947 946
                 showValue="无"
948
-                :isChecked="afterdialysis.dialysis_intakes == 0 ? true : false"
947
+                :isChecked="afterdialysis.is_eat == 2 ? true : false"
949 948
               ></label-box>
950 949
               <label-box
951 950
                 showValue="有"
952
-                :isChecked="afterdialysis.dialysis_intakes > 0 ? true : false"
951
+                :isChecked="afterdialysis.is_eat == 1 ? true : false"
953 952
               ></label-box>
954 953
             </span>&nbsp;&nbsp;
955 954
             <span>

+ 0 - 10
src/xt_pages/workforce/template.vue Bestand weergeven

@@ -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> -->