See999 4 年前
父节点
当前提交
f22ee8c84c

+ 19 - 4
src/xt_pages/dialysis/PatientBox.vue 查看文件

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>
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
         </div>
49
         </div>
50
       </div>
50
       </div>
51
-      <div class="function" :class="functionColor(schedule)">
51
+      <div class="function" :class="functionColor(schedule)" :id="modeColor(schedule.mode_id)">
52
         <ul>
52
         <ul>
53
           <li>
53
           <li>
54
-            <span class="iconfont">&#xe6f5;</span>班次 :
54
+            <span class="iconfont" :id="modeColor(schedule.mode_id)">&#xe6f5;</span>班次 :
55
             {{ timeTypeText(schedule) }}
55
             {{ timeTypeText(schedule) }}
56
           </li>
56
           </li>
57
           <li>
57
           <li>
58
-            <span class="iconfont">&#xe6de;</span>床位号 :
58
+            <span class="iconfont" :id="modeColor(schedule.mode_id)">&#xe6de;</span>床位号 :
59
             {{ schedule.device_number.number }}
59
             {{ schedule.device_number.number }}
60
           </li>
60
           </li>
61
           <li>
61
           <li>
62
-            <span class="iconfont">&#xe6f6;</span>透析模式 :
62
+            <span class="iconfont" :id="modeColor(schedule.mode_id)">&#xe6f6;</span>透析模式 :
63
             {{
63
             {{
64
               schedule.mode_id &&
64
               schedule.mode_id &&
65
               $store.getters.treatment_mode[schedule.mode_id]
65
               $store.getters.treatment_mode[schedule.mode_id]
618
       
618
       
619
       let strDate = h  + ':' + m;
619
       let strDate = h  + ':' + m;
620
       return strDate;
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
 .red {
780
 .red {
772
   border: 1px #ff7979 solid;
781
   border: 1px #ff7979 solid;
773
 }
782
 }
783
+#modeRed{
784
+  color:#ed5555;
785
+}
786
+#modePurple{
787
+  color: #53b86e;
788
+}
774
 </style>
789
 </style>

+ 4 - 0
src/xt_pages/dialysis/details/DialysisPrescription.vue 查看文件

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

+ 41 - 63
src/xt_pages/upload/fast/FastCountry.vue 查看文件

1
 <template>
1
 <template>
2
   <div class="patient-container">
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
     <el-container>
4
     <el-container>
10
       <div style="width:170px">
5
       <div style="width:170px">
11
-        <el-form :inline="true" :model="listQuery">
6
+        <el-form :inline="true" @submit.native.prevent>
12
           <el-form-item label style="margin-bottom:0;">
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
             <el-button type="primary" style="padding: 10px 6px;" @click="onSearch">搜索</el-button>
9
             <el-button type="primary" style="padding: 10px 6px;" @click="onSearch">搜索</el-button>
15
           </el-form-item>
10
           </el-form-item>
16
         </el-form>
11
         </el-form>
17
         <div style="width:170px">
12
         <div style="width:170px">
18
           <div class="tableTitle">患者列表</div>
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
           </el-table>
21
           </el-table>
23
         </div>
22
         </div>
24
       </div>
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
       <div style="margin-left:20px;flex:1;" >
31
       <div style="margin-left:20px;flex:1;" >
27
         <div class="cell clearfix">
32
         <div class="cell clearfix">
36
             </ul>
41
             </ul>
37
           </div>
42
           </div>
38
         </div>
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
       </div>
46
       </div>
42
     </el-container>
47
     </el-container>
43
   </div>
48
   </div>
68
           id: 0
73
           id: 0
69
         },
74
         },
70
         isShow: 1,
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
         searchVal:'',
76
         searchVal:'',
122
         way: [
77
         way: [
123
             { value: 0, label: "基本信息", state: 0 },
78
             { value: 0, label: "基本信息", state: 0 },
124
             { value: 1, label: "检验检查", state: 1 },
79
             { value: 1, label: "检验检查", state: 1 },
125
         ],
80
         ],
126
         wayType: 0,
81
         wayType: 0,
82
+        patientsList:[],
83
+        patientData:[]
127
       }
84
       }
128
     },
85
     },
129
     created() {
86
     created() {
144
         fetchAllList().then(response => {
101
         fetchAllList().then(response => {
145
           if (response.data.state == 1) {
102
           if (response.data.state == 1) {
146
             this.patientsList = response.data.data.patients
103
             this.patientsList = response.data.data.patients
104
+            this.patientData = response.data.data.patients
147
             if (type == 1) {
105
             if (type == 1) {
148
               this.patientID = this.patientsList[0].id
106
               this.patientID = this.patientsList[0].id
149
 
107
 
233
         var monthEndDate = new Date(nowYear, myMonth + 1, 1)
191
         var monthEndDate = new Date(nowYear, myMonth + 1, 1)
234
         var days = (monthEndDate - monthStartDate) / (1000 * 60 * 60 * 24)
192
         var days = (monthEndDate - monthStartDate) / (1000 * 60 * 60 * 24)
235
         return days
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 查看文件

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

+ 17 - 7
src/xt_pages/upload/fast/Two.vue 查看文件

894
 export default {
894
 export default {
895
   name: "Two",
895
   name: "Two",
896
   components: {},
896
   components: {},
897
+  props:{
898
+    id:Number
899
+  },
897
 
900
 
898
   data() {
901
   data() {
899
     return {
902
     return {
976
     };
979
     };
977
   },
980
   },
978
   created() {
981
   created() {
982
+    
979
     var start_time = new Date(
983
     var start_time = new Date(
980
       this.getQuarterStartDate().replace(/-/g, "/")
984
       this.getQuarterStartDate().replace(/-/g, "/")
981
     ).getTime();
985
     ).getTime();
1302
     },
1306
     },
1303
     xcgChange(val) {
1307
     xcgChange(val) {
1304
       this.GetUploadInspections(
1308
       this.GetUploadInspections(
1305
-        this.patient_id,
1309
+        this.patient_id != 0 ? this.patient_id : parseInt(this.$route.query.id),
1306
         val[0] / 1000,
1310
         val[0] / 1000,
1307
         val[1] / 1000,
1311
         val[1] / 1000,
1308
         1,
1312
         1,
1311
     },
1315
     },
1312
     gkwzChange(val) {
1316
     gkwzChange(val) {
1313
       this.GetUploadInspections(
1317
       this.GetUploadInspections(
1314
-        this.patient_id,
1318
+        this.patient_id != 0 ? this.patient_id : parseInt(this.$route.query.id),
1315
         val[0] / 1000,
1319
         val[0] / 1000,
1316
         val[1] / 1000,
1320
         val[1] / 1000,
1317
         2,
1321
         2,
1320
     },
1324
     },
1321
     tdxChange(val) {
1325
     tdxChange(val) {
1322
       this.GetUploadInspections(
1326
       this.GetUploadInspections(
1323
-        this.patient_id,
1327
+        this.patient_id != 0 ? this.patient_id : parseInt(this.$route.query.id),
1324
         val[0] / 1000,
1328
         val[0] / 1000,
1325
         val[1] / 1000,
1329
         val[1] / 1000,
1326
         3,
1330
         3,
1329
     },
1333
     },
1330
     shjcChange(val) {
1334
     shjcChange(val) {
1331
       this.GetUploadInspections(
1335
       this.GetUploadInspections(
1332
-        this.patient_id,
1336
+        this.patient_id != 0 ? this.patient_id : parseInt(this.$route.query.id),
1333
         val[0] / 1000,
1337
         val[0] / 1000,
1334
         val[1] / 1000,
1338
         val[1] / 1000,
1335
         4,
1339
         4,
1338
     },
1342
     },
1339
     yyyyzChange(val) {
1343
     yyyyzChange(val) {
1340
       this.GetUploadInspections(
1344
       this.GetUploadInspections(
1341
-        this.patient_id,
1345
+        this.patient_id != 0 ? this.patient_id : parseInt(this.$route.query.id),
1342
         val[0] / 1000,
1346
         val[0] / 1000,
1343
         val[1] / 1000,
1347
         val[1] / 1000,
1344
         5,
1348
         5,
1347
     },
1351
     },
1348
     crbxzbChange(val) {
1352
     crbxzbChange(val) {
1349
       this.GetUploadInspections(
1353
       this.GetUploadInspections(
1350
-        this.patient_id,
1354
+        this.patient_id != 0 ? this.patient_id : parseInt(this.$route.query.id),
1351
         val[0] / 1000,
1355
         val[0] / 1000,
1352
         val[1] / 1000,
1356
         val[1] / 1000,
1353
         6,
1357
         6,
1356
     },
1360
     },
1357
     jhChange(val) {
1361
     jhChange(val) {
1358
       this.GetUploadInspections(
1362
       this.GetUploadInspections(
1359
-        this.patient_id,
1363
+        this.patient_id != 0 ? this.patient_id : parseInt(this.$route.query.id),
1360
         val[0] / 1000,
1364
         val[0] / 1000,
1361
         val[1] / 1000,
1365
         val[1] / 1000,
1362
         7,
1366
         7,
1424
       var days = (monthEndDate - monthStartDate) / (1000 * 60 * 60 * 24);
1428
       var days = (monthEndDate - monthStartDate) / (1000 * 60 * 60 * 24);
1425
       return days;
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
 </script>
1439
 </script>

+ 3 - 3
src/xt_pages/upload/fast_upload.vue 查看文件

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