Browse Source

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

csx 4 years ago
parent
commit
02ecc8ba6d

+ 1 - 0
src/api/dialysis.js View File

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

+ 6 - 6
src/xt_pages/data/printTemplate.vue View File

47
             style="margin-left: 100px;margin-right: 100px;text-align: center"
47
             style="margin-left: 100px;margin-right: 100px;text-align: center"
48
           >
48
           >
49
             <div
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
               <el-tooltip
53
               <el-tooltip
74
             >
74
             >
75
           </el-col>
75
           </el-col>
76
           <el-col :span="6" style="text-align: center">
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
               <el-tooltip
78
               <el-tooltip
79
                 class="item"
79
                 class="item"
80
                 effect="dark"
80
                 effect="dark"
100
             >
100
             >
101
           </el-col>
101
           </el-col>
102
           <el-col :span="6" style="text-align: center">
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
               <el-tooltip
104
               <el-tooltip
105
                 class="item"
105
                 class="item"
106
                 effect="dark"
106
                 effect="dark"
127
         </el-row>
127
         </el-row>
128
         <el-row :gutter="20" type="flex">
128
         <el-row :gutter="20" type="flex">
129
           <el-col :span="6" style="text-align: center">
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
               <el-tooltip
131
               <el-tooltip
132
                 class="item"
132
                 class="item"
133
                 effect="dark"
133
                 effect="dark"
156
             >
156
             >
157
           </el-col>
157
           </el-col>
158
           <el-col :span="6" style="text-align: center">
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
               <el-tooltip
160
               <el-tooltip
161
                 class="item"
161
                 class="item"
162
                 effect="dark"
162
                 effect="dark"
285
               // 同步
285
               // 同步
286
               // console.log(response.data.data.fileds)
286
               // console.log(response.data.data.fileds)
287
               this.loading = false;
287
               this.loading = false;
288
-               store.dispatch("updateAllFiledConfigList", response.data.data.fileds).then(() => {});
288
+              // store.dispatch("updateAllFiledConfigList", response.data.data.fileds).then(() => {});
289
               this.$message({
289
               this.$message({
290
                 type: "success",
290
                 type: "success",
291
                 message: "切换成功"
291
                 message: "切换成功"

+ 34 - 7
src/xt_pages/dialysis/details/acceptsAssessment.vue View File

146
           '1': '正常',
146
           '1': '正常',
147
           '2': '异常'
147
           '2': '异常'
148
         },
148
         },
149
-        precautions:[]
149
+        precautions:[],
150
       }
150
       }
151
     },
151
     },
152
     props: {
152
     props: {
263
         } else {
263
         } else {
264
           return this.psychological_assessment[this.record.psychological_assessment] == undefined ? '' : this.psychological_assessment[this.record.psychological_assessment] + ''
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
           return ''
270
           return ''
269
         } else {
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
           // return this.precautions[this.record.precaution] == undefined ? '' : this.precautions[this.record.precaution] + ''
301
           // return this.precautions[this.record.precaution] == undefined ? '' : this.precautions[this.record.precaution] + ''
277
         }
302
         }
278
       }
303
       }
289
       }
314
       }
290
     },
315
     },
291
     created(){
316
     created(){
317
+      console.log("records",this.record)
292
       this.ways = getDataConfig('hemodialysis', 'way')
318
       this.ways = getDataConfig('hemodialysis', 'way')
293
       this.consciousnesses = getDataConfig('hemodialysis', 'consciousness')
319
       this.consciousnesses = getDataConfig('hemodialysis', 'consciousness')
294
       this.appetites = getDataConfig('hemodialysis', 'appetite')
320
       this.appetites = getDataConfig('hemodialysis', 'appetite')
295
       this.postures = getDataConfig('hemodialysis', 'posture')
321
       this.postures = getDataConfig('hemodialysis', 'posture')
296
       this.sick_condition = getDataConfig('hemodialysis', 'sick_condition')
322
       this.sick_condition = getDataConfig('hemodialysis', 'sick_condition')
297
       this.precautions = getDataConfig('hemodialysis', 'precaution')
323
       this.precautions = getDataConfig('hemodialysis', 'precaution')
324
+      console.log("跌倒预防措施",this.precautions)
298
       this.intake = getDataConfig('hemodialysis', 'intake')
325
       this.intake = getDataConfig('hemodialysis', 'intake')
299
       this.nutrition = getDataConfig('hemodialysis', 'nutrition')
326
       this.nutrition = getDataConfig('hemodialysis', 'nutrition')
300
       console.log(this.ways)
327
       console.log(this.ways)

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

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

+ 76 - 24
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue View File

1360
             return;
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
           ParamsQuery["patient"] = this.patient.id;
1379
           ParamsQuery["patient"] = this.patient.id;
1365
           ParamsQuery["record_date"] = this.record_date;
1380
           ParamsQuery["record_date"] = this.record_date;
1366
 
1381
 
1435
             this.loading = false;
1450
             this.loading = false;
1436
             return;
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
           ParamsQuery["patient"] = this.patient.id;
1470
           ParamsQuery["patient"] = this.patient.id;
1441
           ParamsQuery["record_date"] = this.record_date;
1471
           ParamsQuery["record_date"] = this.record_date;
1511
             return;
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
           ParamsQuery["patient"] = this.patient.id;
1561
           ParamsQuery["patient"] = this.patient.id;
1516
           ParamsQuery["record_date"] = this.record_date;
1562
           ParamsQuery["record_date"] = this.record_date;
1517
           console.log(this.prescription);
1563
           console.log(this.prescription);
1550
             this.loading = false;
1596
             this.loading = false;
1551
             return;
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
           ParamsQuery["patient"] = this.patient.id;
1615
           ParamsQuery["patient"] = this.patient.id;
1555
           ParamsQuery["record_date"] = this.record_date;
1616
           ParamsQuery["record_date"] = this.record_date;
1556
           ParamsQuery["mode"] = 1;
1617
           ParamsQuery["mode"] = 1;
1721
           console.log("arr", arr);
1782
           console.log("arr", arr);
1722
           for (let i = 0; i < this.dialyzerPerfusionApparatus.length; i++) {
1783
           for (let i = 0; i < this.dialyzerPerfusionApparatus.length; i++) {
1723
             if (
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
           ParamsQuery["patient"] = this.patient.id;
1792
           ParamsQuery["patient"] = this.patient.id;
1736
           ParamsQuery["record_date"] = this.record_date;
1793
           ParamsQuery["record_date"] = this.record_date;
1737
           ParamsQuery["mode"] = "1";
1794
           ParamsQuery["mode"] = "1";
1738
-
1795
+          
1739
           postPrescription(ParamsQuery).then(response => {
1796
           postPrescription(ParamsQuery).then(response => {
1740
             if (response.data.state == 0) {
1797
             if (response.data.state == 0) {
1741
               this.$message.error(response.data.msg);
1798
               this.$message.error(response.data.msg);
1907
             var arr = this.dialysisPrescription;
1964
             var arr = this.dialysisPrescription;
1908
             console.log("arr", arr);
1965
             console.log("arr", arr);
1909
             for (let i = 0; i < this.dialyzerPerfusionApparatus.length; i++) {
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
             const ParamsQuery = arr;
1971
             const ParamsQuery = arr;
1921
             console.log("paramsqueryfour", ParamsQuery);
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
             ParamsQuery["patient"] = this.patient.id;
1979
             ParamsQuery["patient"] = this.patient.id;
1928
             ParamsQuery["record_date"] = this.record_date;
1980
             ParamsQuery["record_date"] = this.record_date;
1929
             // console.log(this.prescription);
1981
             // console.log(this.prescription);

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

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

+ 10 - 11
src/xt_pages/dialysis/template/DialysisPrintOrderEight.vue View File

218
           <td style="text-align:left;" colspan="2">
218
           <td style="text-align:left;" colspan="2">
219
             <span style="display:inline-block;margin-left:15px;">
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
             </span>
229
             </span>
231
           </td>
230
           </td>
232
           <td style="text-align:left;" colspan="1">
231
           <td style="text-align:left;" colspan="1">
945
               透析中进食:
944
               透析中进食:
946
               <label-box
945
               <label-box
947
                 showValue="无"
946
                 showValue="无"
948
-                :isChecked="afterdialysis.dialysis_intakes == 0 ? true : false"
947
+                :isChecked="afterdialysis.is_eat == 2 ? true : false"
949
               ></label-box>
948
               ></label-box>
950
               <label-box
949
               <label-box
951
                 showValue="有"
950
                 showValue="有"
952
-                :isChecked="afterdialysis.dialysis_intakes > 0 ? true : false"
951
+                :isChecked="afterdialysis.is_eat == 1 ? true : false"
953
               ></label-box>
952
               ></label-box>
954
             </span>&nbsp;&nbsp;
953
             </span>&nbsp;&nbsp;
955
             <span>
954
             <span>

+ 0 - 10
src/xt_pages/workforce/template.vue View File

70
                  size="small" icon="el-icon-setting" type="primary" @click="import_file()">导出模版
70
                  size="small" icon="el-icon-setting" type="primary" @click="import_file()">导出模版
71
       </el-button>
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
       <el-button size="small" icon="el-icon-setting" type="primary" @click="setScheduleTemplateAction">设置模板</el-button>
75
       <el-button size="small" icon="el-icon-setting" type="primary" @click="setScheduleTemplateAction">设置模板</el-button>
86
       <!-- </el-col> -->
76
       <!-- </el-col> -->