Parcourir la source

需求和bug修改

XMLWAN il y a 4 ans
Parent
révision
0ed68c22e7

+ 150 - 0
src/xt_pages/data/components/dialysisSummary.vue Voir le fichier

@@ -0,0 +1,150 @@
1
+<template>
2
+  <div class="">
3
+    <el-table
4
+      :row-style="{ color: '#303133' }"
5
+      :header-cell-style="{
6
+        backgroundColor: 'rgb(245, 247, 250)',
7
+        color: '#606266'
8
+      }"
9
+      :data="dialysis_summary_data"
10
+      border
11
+      fit
12
+      highlight-current-row
13
+      style="width: 100%;min-height:500px;"
14
+    >
15
+      <el-table-column align="center" label="字段名">
16
+        <template slot-scope="scope">
17
+          <span>{{ scope.row.filed_name_cn }}</span>
18
+        </template>
19
+      </el-table-column>
20
+      <el-table-column align="center" label="字段">
21
+        <template slot-scope="scope">
22
+          <span>{{ scope.row.filed_name }}</span>
23
+        </template>
24
+      </el-table-column>
25
+
26
+      <el-table-column align="center" label="是否显示">
27
+        <template slot-scope="scope">
28
+          <span v-if="scope.row.is_show == 1">是</span>
29
+          <span v-if="scope.row.is_show == 2">否</span>
30
+        </template>
31
+      </el-table-column>
32
+
33
+      <el-table-column label="操作" align="center">
34
+        <template slot-scope="scope">
35
+          <el-tooltip
36
+            class="item"
37
+            effect="dark"
38
+            content="不展示"
39
+            placement="top"
40
+            v-if="scope.row.is_show == 1"
41
+          >
42
+            <el-button
43
+              size="small"
44
+              type="danger"
45
+              icon="el-icon-remove-outline"
46
+              @click="handleHide(scope.$index, scope.row)"
47
+            >
48
+            </el-button>
49
+          </el-tooltip>
50
+
51
+          <el-tooltip
52
+            class="item"
53
+            effect="dark"
54
+            content="展示"
55
+            placement="top"
56
+            v-if="scope.row.is_show == 2"
57
+          >
58
+            <el-button
59
+              size="small"
60
+              type="primary"
61
+              icon="el-icon-view"
62
+              @click="handleShow(scope.$index, scope.row)"
63
+            >
64
+            </el-button>
65
+          </el-tooltip>
66
+        </template>
67
+      </el-table-column>
68
+    </el-table>
69
+  </div>
70
+</template>
71
+
72
+<script>
73
+import { updateFieldIsShow } from "@/api/data";
74
+import store from "@/store";
75
+
76
+export default {
77
+  name: "dialysisSummary",
78
+
79
+  props: {
80
+    dialysis_summary_data: {
81
+      type: Array
82
+    }
83
+  },
84
+  methods: {
85
+    handleHide: function(index, row) {
86
+      this.$confirm("是否将该字段设为不可见?", "提示", {
87
+        confirmButtonText: "确 定",
88
+        cancelButtonText: "取 消",
89
+        type: "warning"
90
+      })
91
+        .then(() => {
92
+          updateFieldIsShow(row.id, 2).then(response => {
93
+            if (response.data.state == 1) {
94
+              let params = {
95
+                id: response.data.data.id,
96
+                is_show: response.data.data.is_show
97
+              };
98
+              store.dispatch("updateFiledConfigList", params).then(() => {});
99
+              this.$emit("change", params);
100
+            }
101
+          });
102
+          this.$message({
103
+            type: "success",
104
+            message: "设置成功!"
105
+          });
106
+        })
107
+        .catch(() => {});
108
+    },
109
+    handleShow: function(index, row) {
110
+      this.$confirm("是否将该字段设为可见?", "提示", {
111
+        confirmButtonText: "确 定",
112
+        cancelButtonText: "取 消",
113
+        type: "warning"
114
+      })
115
+        .then(() => {
116
+          updateFieldIsShow(row.id, 1).then(response => {
117
+            if (response.data.state == 1) {
118
+              let params = {
119
+                id: response.data.data.id,
120
+                is_show: response.data.data.is_show
121
+              };
122
+              store.dispatch("updateFiledConfigList", params).then(() => {});
123
+              this.$emit("change", params);
124
+            }
125
+          });
126
+          this.$message({
127
+            type: "success",
128
+            message: "设置成功!"
129
+          });
130
+        })
131
+        .catch(() => {});
132
+    }
133
+  }
134
+};
135
+</script>
136
+
137
+<style scoped></style>
138
+<style>
139
+.el-table td,
140
+.el-table th.is-leaf,
141
+.el-table--border,
142
+.el-table--group {
143
+  border-color: #d0d3da;
144
+}
145
+.el-table--border::after,
146
+.el-table--group::after,
147
+.el-table::before {
148
+  background-color: #d0d3da;
149
+}
150
+</style>

+ 20 - 3
src/xt_pages/data/prescription.vue Voir le fichier

@@ -192,7 +192,14 @@
192 192
                     ></el-input>
193 193
                   </el-form-item>
194 194
                 </el-col>
195
-                <el-col :span="8">
195
+                <el-col
196
+                  :span="8"
197
+                  v-if="
198
+                    current_select == 2 ||
199
+                      current_select == 5 ||
200
+                      current_select == 12
201
+                  "
202
+                >
196 203
                   <el-form-item label="置换量(L) : " prop="replacement_total">
197 204
                     <el-input
198 205
                       v-model="addPlan.replacement_total"
@@ -310,7 +317,9 @@
310 317
                   <el-form-item
311 318
                     label="置换液:"
312 319
                     v-if="
313
-                      current_select == 2 &&
320
+                      (current_select == 2 ||
321
+                        current_select == 5 ||
322
+                        current_select == 12) &&
314 323
                         this.$store.getters.xt_user.template_info.template_id !=
315 324
                           6
316 325
                     "
@@ -352,7 +361,14 @@
352 361
                   </el-form-item>
353 362
                 </el-col>
354 363
 
355
-                <el-col :span="8" v-if="current_select == 2">
364
+                <el-col
365
+                  :span="8"
366
+                  v-if="
367
+                    current_select == 2 ||
368
+                      current_select == 5 ||
369
+                      current_select == 12
370
+                  "
371
+                >
356 372
                   <el-form-item label="置换液总量(L)">
357 373
                     <el-input v-model="addPlan.displace_liqui_value"></el-input>
358 374
                   </el-form-item>
@@ -797,6 +813,7 @@ export default {
797 813
       row.index = rowIndex;
798 814
     },
799 815
     onRowClicks(row, event, column) {
816
+      console.log("row------", row.id);
800 817
       this.current_select = row.id;
801 818
       this.mode_name = row.name;
802 819
       this.isEdit = false;

+ 1 - 1
src/xt_pages/dialysis/batch_print/batch_print_order_eight.vue Voir le fichier

@@ -1146,7 +1146,7 @@
1146 1146
                               style="height: 20px;"
1147 1147
                             />
1148 1148
                    </td>
1149
-          <td>{{getTime(advice.start_time,'{y}-{m}-{d} {h}:{i}')}}</td>
1149
+          <td>{{getTime(advice.execution_time,'{y}-{m}-{d} {h}:{i}')}}</td>
1150 1150
           <td>
1151 1151
               <span
1152 1152
                v-if="setAdminUserES(advice[0], 'checker') == ''"

+ 1 - 1
src/xt_pages/dialysis/template/DialysisPrintOrderEight.vue Voir le fichier

@@ -1125,7 +1125,7 @@
1125 1125
               v-else
1126 1126
             />
1127 1127
           </td>
1128
-          <td>{{ getTime(advice.start_time, "{y}-{m}-{d} {h}:{i}") }}</td>
1128
+          <td>{{ getTime(advice.execution_time, "{y}-{m}-{d} {h}:{i}") }}</td>
1129 1129
           <td>
1130 1130
             <span v-if="setAdminUserES(advice.checker) == ''">{{
1131 1131
               getAdminUser(advice.checker)

+ 9 - 2
src/xt_pages/qcd/dialysisTotal.vue Voir le fichier

@@ -298,8 +298,15 @@ export default {
298 298
         }
299 299
       });
300 300
     },
301
-    changeTime() {
302
-      this.getList();
301
+    changeTime(val) {
302
+      var time =
303
+        this.getTimestamp(val) - this.getTimestamp(this.listQuery.end_time);
304
+      if (time > 0) {
305
+        this.$message.error("结束时间不能小于开始时间");
306
+        this.listQuery.start_time = "";
307
+      } else {
308
+        this.getList();
309
+      }
303 310
     },
304 311
     changeEndTime(val) {
305 312
       var time =

+ 9 - 2
src/xt_pages/qcd/outcomeIndicators/control.vue Voir le fichier

@@ -373,8 +373,15 @@ export default {
373 373
         }
374 374
       });
375 375
     },
376
-    changeTime() {
377
-      this.getList();
376
+    changeTime(val) {
377
+      var time =
378
+        this.getTimestamp(val) - this.getTimestamp(this.listQuery.end_time);
379
+      if (time > 0) {
380
+        this.$message.error("结束时间不能小于开始时间");
381
+        this.listQuery.start_time = "";
382
+      } else {
383
+        this.getList();
384
+      }
378 385
     },
379 386
     changeEndTime(val) {
380 387
       var time =

+ 9 - 2
src/xt_pages/qcd/patientAnalysis/total.vue Voir le fichier

@@ -280,8 +280,15 @@ export default {
280 280
         }
281 281
       });
282 282
     },
283
-    changeTime() {
284
-      this.getList();
283
+    changeTime(val) {
284
+      var time =
285
+        this.getTimestamp(val) - this.getTimestamp(this.listQuery.end_time);
286
+      if (time > 0) {
287
+        this.$message.error("结束时间不能小于开始时间");
288
+        this.listQuery.start_time = "";
289
+      } else {
290
+        this.getList();
291
+      }
285 292
     },
286 293
     changeEndTime(val) {
287 294
       var time =

+ 9 - 2
src/xt_pages/qcd/processIndicators.vue Voir le fichier

@@ -318,8 +318,15 @@ export default {
318 318
         }
319 319
       });
320 320
     },
321
-    changeTime() {
322
-      this.getList();
321
+    changeTime(val) {
322
+      var time =
323
+        this.getTimestamp(val) - this.getTimestamp(this.listQuery.end_time);
324
+      if (time > 0) {
325
+        this.$message.error("结束时间不能小于开始时间");
326
+        this.listQuery.start_time = "";
327
+      } else {
328
+        this.getList();
329
+      }
323 330
     },
324 331
     changeEndTime(val) {
325 332
       var time =