See999 4 gadus atpakaļ
vecāks
revīzija
f22ee8c84c

+ 19 - 4
src/xt_pages/dialysis/PatientBox.vue Parādīt failu

@@ -48,18 +48,18 @@
48 48
           <div style="margin-top:13px;font-size:12px;color:#34495e;margin-right: 5px;" v-if="schedule.assessment_before_dislysis && patientStateVal == 1">签到时间:{{ getTime(schedule.assessment_before_dislysis.created_time) }}</div>
49 49
         </div>
50 50
       </div>
51
-      <div class="function" :class="functionColor(schedule)">
51
+      <div class="function" :class="functionColor(schedule)" :id="modeColor(schedule.mode_id)">
52 52
         <ul>
53 53
           <li>
54
-            <span class="iconfont">&#xe6f5;</span>班次 :
54
+            <span class="iconfont" :id="modeColor(schedule.mode_id)">&#xe6f5;</span>班次 :
55 55
             {{ timeTypeText(schedule) }}
56 56
           </li>
57 57
           <li>
58
-            <span class="iconfont">&#xe6de;</span>床位号 :
58
+            <span class="iconfont" :id="modeColor(schedule.mode_id)">&#xe6de;</span>床位号 :
59 59
             {{ schedule.device_number.number }}
60 60
           </li>
61 61
           <li>
62
-            <span class="iconfont">&#xe6f6;</span>透析模式 :
62
+            <span class="iconfont" :id="modeColor(schedule.mode_id)">&#xe6f6;</span>透析模式 :
63 63
             {{
64 64
               schedule.mode_id &&
65 65
               $store.getters.treatment_mode[schedule.mode_id]
@@ -618,6 +618,15 @@ export default {
618 618
       
619 619
       let strDate = h  + ':' + m;
620 620
       return strDate;
621
+    },
622
+    modeColor (id) {
623
+      if (id == 1) {
624
+
625
+      } else if (id == 2) {
626
+        return 'modeRed'
627
+      } else if (id == 3) {
628
+        return 'modePurple'
629
+      }
621 630
     }
622 631
   },
623 632
 };
@@ -771,4 +780,10 @@ export default {
771 780
 .red {
772 781
   border: 1px #ff7979 solid;
773 782
 }
783
+#modeRed{
784
+  color:#ed5555;
785
+}
786
+#modePurple{
787
+  color: #53b86e;
788
+}
774 789
 </style>

+ 4 - 0
src/xt_pages/dialysis/details/DialysisPrescription.vue Parādīt failu

@@ -291,6 +291,7 @@
291 291
 
292 292
       </ul>
293 293
     </div>
294
+    <div style="color:#34495e;margin: 12px 100px 0 100px;">备注: <span style="color:#409eff;">{{ note }}</span></div>
294 295
   </div>
295 296
 </template>
296 297
 
@@ -321,6 +322,9 @@ export default {
321 322
     }
322 323
   },
323 324
   computed: {
325
+    note: function () {
326
+      return this.getValueStr('remark', 'remark')
327
+    },
324 328
     target_ultrafiltration: function() {
325 329
       var v = this.getValueStr(
326 330
         'target_ultrafiltration',

+ 41 - 63
src/xt_pages/upload/fast/FastCountry.vue Parādīt failu

@@ -1,27 +1,32 @@
1 1
 <template>
2 2
   <div class="patient-container">
3
-    <!-- <fast-patients-sidebar
4
-      :id="patientID"
5
-      v-on:patient="patientInfoClick()"
6
-      v-on:inspection="inspectionClick()"
7
-    ></fast-patients-sidebar> -->
8
-    <!-- <fast-upload-detail v-if="isShow == 1"  :id="patientID"  :is-edit='true' :class='panelClass'></fast-upload-detail> -->
3
+    
9 4
     <el-container>
10 5
       <div style="width:170px">
11
-        <el-form :inline="true" :model="listQuery">
6
+        <el-form :inline="true" @submit.native.prevent>
12 7
           <el-form-item label style="margin-bottom:0;">
13
-            <el-input v-model.trim="searchVal" placeholder="姓名/透析号" style="width:70%"></el-input>
8
+            <el-input v-model.trim="searchVal" @keyup.enter.native='onSearch' placeholder="姓名/透析号" style="width:70%"></el-input>
14 9
             <el-button type="primary" style="padding: 10px 6px;" @click="onSearch">搜索</el-button>
15 10
           </el-form-item>
16 11
         </el-form>
17 12
         <div style="width:170px">
18 13
           <div class="tableTitle">患者列表</div>
19
-          <el-table :data="tableData" border style="width: 100%;" height="500">
20
-            <el-table-column prop="date" label="日期" width="80"></el-table-column>
21
-            <el-table-column prop="name" label="姓名" width="90"></el-table-column>
14
+          <el-table :data="patientData" border style="width: 100%;" height="500" @row-click='handleSelect'>
15
+            <el-table-column prop="date" label="透析号" width="80" align="center">
16
+              <template slot-scope="scope">
17
+                {{ scope.row.dialysis_no }}
18
+              </template>
19
+            </el-table-column>
20
+            <el-table-column prop="name" label="姓名" width="90" align="center"></el-table-column>
22 21
           </el-table>
23 22
         </div>
24 23
       </div>
24
+      <!-- <fast-patients-sidebar
25
+      :id="patientID"
26
+      v-on:patient="patientInfoClick()"
27
+      v-on:inspection="inspectionClick()"
28
+    ></fast-patients-sidebar> -->
29
+    <!-- <fast-upload-detail v-if="isShow == 1"  :id="patientID"  :is-edit='true' :class='panelClass'></fast-upload-detail> -->
25 30
       
26 31
       <div style="margin-left:20px;flex:1;" >
27 32
         <div class="cell clearfix">
@@ -36,8 +41,8 @@
36 41
             </ul>
37 42
           </div>
38 43
         </div>
39
-        <one ref="one" v-if="wayType == 0" :patientID="patientID" :is-edit='true' style="margin-top:28px;" @></one>
40
-        <two ref="two" v-if="wayType == 1" :id="patientID" :is-edit="true" style="margin-top:28px;"></two>
44
+        <one ref="one" v-show="wayType == 0" :patientID="patientID" :is-edit='true' style="margin-top:28px;" @></one>
45
+        <two ref="two" v-show="wayType == 1 && patientID != 0" :id="patientID" :is-edit="true" style="margin-top:28px;"></two>
41 46
       </div>
42 47
     </el-container>
43 48
   </div>
@@ -68,62 +73,14 @@
68 73
           id: 0
69 74
         },
70 75
         isShow: 1,
71
-        tableData: [
72
-          {
73
-              date: "2016",
74
-              name: "王小虎"
75
-          },
76
-          {
77
-              date: "2016",
78
-              name: "王小虎"
79
-          },
80
-          {
81
-              date: "2016",
82
-              name: "王小虎"
83
-          },
84
-          {
85
-              date: "2016",
86
-              name: "王小虎"
87
-          },
88
-          {
89
-              date: "2016",
90
-              name: "王小虎"
91
-          },
92
-          {
93
-              date: "2016",
94
-              name: "王小虎"
95
-          },
96
-          {
97
-              date: "2016",
98
-              name: "王小虎"
99
-          },
100
-          {
101
-              date: "2016",
102
-              name: "王小虎"
103
-          },
104
-          {
105
-              date: "2016",
106
-              name: "王小虎"
107
-          },
108
-          {
109
-              date: "2016",
110
-              name: "王小虎"
111
-          },
112
-          {
113
-              date: "2016",
114
-              name: "王小虎"
115
-          },
116
-          {
117
-              date: "2016",
118
-              name: "王小虎"
119
-          }
120
-        ],
121 76
         searchVal:'',
122 77
         way: [
123 78
             { value: 0, label: "基本信息", state: 0 },
124 79
             { value: 1, label: "检验检查", state: 1 },
125 80
         ],
126 81
         wayType: 0,
82
+        patientsList:[],
83
+        patientData:[]
127 84
       }
128 85
     },
129 86
     created() {
@@ -144,6 +101,7 @@
144 101
         fetchAllList().then(response => {
145 102
           if (response.data.state == 1) {
146 103
             this.patientsList = response.data.data.patients
104
+            this.patientData = response.data.data.patients
147 105
             if (type == 1) {
148 106
               this.patientID = this.patientsList[0].id
149 107
 
@@ -233,6 +191,26 @@
233 191
         var monthEndDate = new Date(nowYear, myMonth + 1, 1)
234 192
         var days = (monthEndDate - monthStartDate) / (1000 * 60 * 60 * 24)
235 193
         return days
194
+      },
195
+      handleSelect(val) {
196
+        this.$router.push("/upload/fast?id=" + val.id);
197
+      },
198
+      onSearch(){
199
+        if(this.searchVal != ''){
200
+          let arr = []
201
+          this.patientsList.map(item => {
202
+          
203
+            if(item.name.includes(this.searchVal)){
204
+              console.log('hhhh')
205
+              arr.push(item)
206
+            }
207
+          })
208
+          console.log(arr)
209
+          this.patientData = arr
210
+        }else if(this.searchVal == ''){
211
+          this.patientData = this.patientsList
212
+        }
213
+        
236 214
       }
237 215
 
238 216
     }

+ 2 - 2
src/xt_pages/upload/fast/FastPatientsSidebar.vue Parādīt failu

@@ -1,7 +1,7 @@
1 1
 <template>
2 2
   <!-- <div> -->
3 3
   <div class="patient-menu">
4
-    <!-- <el-autocomplete
4
+    <el-autocomplete
5 5
       style="margin:16px 5px"
6 6
       popper-class="my-autocomplete"
7 7
       v-model.trim="value"
@@ -29,7 +29,7 @@
29 29
       >
30 30
       </el-option>
31 31
     </el-select>
32
-    <el-tree
32
+    <!-- <el-tree
33 33
       :data="treeData"
34 34
       accordion
35 35
       node-key="name"

+ 17 - 7
src/xt_pages/upload/fast/Two.vue Parādīt failu

@@ -894,6 +894,9 @@ import { GetUploadInspections, GetInitInspections } from "@/api/inspection";
894 894
 export default {
895 895
   name: "Two",
896 896
   components: {},
897
+  props:{
898
+    id:Number
899
+  },
897 900
 
898 901
   data() {
899 902
     return {
@@ -976,6 +979,7 @@ export default {
976 979
     };
977 980
   },
978 981
   created() {
982
+    
979 983
     var start_time = new Date(
980 984
       this.getQuarterStartDate().replace(/-/g, "/")
981 985
     ).getTime();
@@ -1302,7 +1306,7 @@ export default {
1302 1306
     },
1303 1307
     xcgChange(val) {
1304 1308
       this.GetUploadInspections(
1305
-        this.patient_id,
1309
+        this.patient_id != 0 ? this.patient_id : parseInt(this.$route.query.id),
1306 1310
         val[0] / 1000,
1307 1311
         val[1] / 1000,
1308 1312
         1,
@@ -1311,7 +1315,7 @@ export default {
1311 1315
     },
1312 1316
     gkwzChange(val) {
1313 1317
       this.GetUploadInspections(
1314
-        this.patient_id,
1318
+        this.patient_id != 0 ? this.patient_id : parseInt(this.$route.query.id),
1315 1319
         val[0] / 1000,
1316 1320
         val[1] / 1000,
1317 1321
         2,
@@ -1320,7 +1324,7 @@ export default {
1320 1324
     },
1321 1325
     tdxChange(val) {
1322 1326
       this.GetUploadInspections(
1323
-        this.patient_id,
1327
+        this.patient_id != 0 ? this.patient_id : parseInt(this.$route.query.id),
1324 1328
         val[0] / 1000,
1325 1329
         val[1] / 1000,
1326 1330
         3,
@@ -1329,7 +1333,7 @@ export default {
1329 1333
     },
1330 1334
     shjcChange(val) {
1331 1335
       this.GetUploadInspections(
1332
-        this.patient_id,
1336
+        this.patient_id != 0 ? this.patient_id : parseInt(this.$route.query.id),
1333 1337
         val[0] / 1000,
1334 1338
         val[1] / 1000,
1335 1339
         4,
@@ -1338,7 +1342,7 @@ export default {
1338 1342
     },
1339 1343
     yyyyzChange(val) {
1340 1344
       this.GetUploadInspections(
1341
-        this.patient_id,
1345
+        this.patient_id != 0 ? this.patient_id : parseInt(this.$route.query.id),
1342 1346
         val[0] / 1000,
1343 1347
         val[1] / 1000,
1344 1348
         5,
@@ -1347,7 +1351,7 @@ export default {
1347 1351
     },
1348 1352
     crbxzbChange(val) {
1349 1353
       this.GetUploadInspections(
1350
-        this.patient_id,
1354
+        this.patient_id != 0 ? this.patient_id : parseInt(this.$route.query.id),
1351 1355
         val[0] / 1000,
1352 1356
         val[1] / 1000,
1353 1357
         6,
@@ -1356,7 +1360,7 @@ export default {
1356 1360
     },
1357 1361
     jhChange(val) {
1358 1362
       this.GetUploadInspections(
1359
-        this.patient_id,
1363
+        this.patient_id != 0 ? this.patient_id : parseInt(this.$route.query.id),
1360 1364
         val[0] / 1000,
1361 1365
         val[1] / 1000,
1362 1366
         7,
@@ -1424,6 +1428,12 @@ export default {
1424 1428
       var days = (monthEndDate - monthStartDate) / (1000 * 60 * 60 * 24);
1425 1429
       return days;
1426 1430
     }
1431
+  },
1432
+  watch:{
1433
+    id(newVal, oldVal){//对引用类型的值无效
1434
+      console.info('value changed 1', newVal)
1435
+      this.patient_id = newVal
1436
+    },
1427 1437
   }
1428 1438
 };
1429 1439
 </script>

+ 3 - 3
src/xt_pages/upload/fast_upload.vue Parādīt failu

@@ -6,10 +6,10 @@
6 6
     <div class="app-container">
7 7
       <div class="service-box">
8 8
         <el-tabs v-model="activeName">
9
-          <!-- <el-tab-pane label="国家质控平台" name="first">
9
+          <el-tab-pane label="国家质控平台" name="first">
10 10
            <fast-country></fast-country>
11
-          </el-tab-pane> -->
12
-          <el-tab-pane label="省级质控平台" name="first">
11
+          </el-tab-pane>
12
+          <el-tab-pane label="省级质控平台">
13 13
             <fast-province></fast-province>
14 14
           </el-tab-pane>
15 15
           <el-tab-pane label="市级质控平台">