XMLWAN 2 years ago
parent
commit
c692bba89c

+ 2 - 2
src/api/data.js View File

43
   })
43
   })
44
 }
44
 }
45
 
45
 
46
-export function updateFieldIsShow(id, is_show) {
46
+export function updateFieldIsShow(id, is_show, is_write) {
47
   return request({
47
   return request({
48
-    url: '/api/filed/show?id=' + id + '&is_show=' + is_show,
48
+    url: '/api/filed/show?id=' + id + '&is_show=' + is_show + '&is_write=' + is_write,
49
     method: 'post'
49
     method: 'post'
50
   })
50
   })
51
 }
51
 }

+ 9 - 7
src/store/modules/xt_user.js View File

11
     zone_selected: 0,
11
     zone_selected: 0,
12
     patient_state_selected: 0,
12
     patient_state_selected: 0,
13
     treat_state_selected: 0,
13
     treat_state_selected: 0,
14
-    selected_date:new Date(),
14
+    selected_date: new Date(),
15
     app_id: 0,
15
     app_id: 0,
16
     user: {
16
     user: {
17
       id: 0,
17
       id: 0,
55
     urlfors: [],
55
     urlfors: [],
56
     fileds: [],
56
     fileds: [],
57
 
57
 
58
-    //监测的搜索状态
58
+    // 监测的搜索状态
59
     search_mode: 1,
59
     search_mode: 1,
60
-    //监测的搜索值
61
-    search_value:''
60
+    // 监测的搜索值
61
+    search_value: ''
62
   },
62
   },
63
 
63
 
64
   mutations: {
64
   mutations: {
65
-    SET_SEARCH_VALUE:(state, search_value) => {
65
+    SET_SEARCH_VALUE: (state, search_value) => {
66
       state.search_value = search_value
66
       state.search_value = search_value
67
     },
67
     },
68
-    SET_SEARCH_MODE:(state, search_mode) => {
68
+    SET_SEARCH_MODE: (state, search_mode) => {
69
       state.search_mode = search_mode
69
       state.search_mode = search_mode
70
     },
70
     },
71
     SET_SCHEDULE_TYPE_SELECTED: (state, schedule_type_selected) => {
71
     SET_SCHEDULE_TYPE_SELECTED: (state, schedule_type_selected) => {
380
     }) {
380
     }) {
381
       commit('CLEAR_USER_INFO')
381
       commit('CLEAR_USER_INFO')
382
       removeAdminUserInfoCache()
382
       removeAdminUserInfoCache()
383
-    }, updateFiledConfigList({ commit }, object) {
383
+    },
384
+    updateFiledConfigList({ commit }, object) {
384
       var oldFiledList = getFiledConfigList()
385
       var oldFiledList = getFiledConfigList()
385
       console.log('oldFiledList', oldFiledList)
386
       console.log('oldFiledList', oldFiledList)
386
       var infoJSON = JSON.parse(oldFiledList)
387
       var infoJSON = JSON.parse(oldFiledList)
389
         for (let i = 0; i < infoJSON.length; i++) {
390
         for (let i = 0; i < infoJSON.length; i++) {
390
           if (infoJSON[i].id == object.id) {
391
           if (infoJSON[i].id == object.id) {
391
             infoJSON[i].is_show = object.is_show
392
             infoJSON[i].is_show = object.is_show
393
+            infoJSON[i].is_write = object.is_write
392
           }
394
           }
393
         }
395
         }
394
 
396
 

+ 2 - 2
src/xt_pages/data/components/dialysisAfter.vue View File

89
         type: "warning"
89
         type: "warning"
90
       })
90
       })
91
         .then(() => {
91
         .then(() => {
92
-          updateFieldIsShow(row.id, 2).then(response => {
92
+          updateFieldIsShow(row.id, 2,0).then(response => {
93
             if (response.data.state == 1) {
93
             if (response.data.state == 1) {
94
               let params = {
94
               let params = {
95
                 id: response.data.data.id,
95
                 id: response.data.data.id,
113
         type: "warning"
113
         type: "warning"
114
       })
114
       })
115
         .then(() => {
115
         .then(() => {
116
-          updateFieldIsShow(row.id, 1).then(response => {
116
+          updateFieldIsShow(row.id, 1,1).then(response => {
117
             if (response.data.state == 1) {
117
             if (response.data.state == 1) {
118
               let params = {
118
               let params = {
119
                 id: response.data.data.id,
119
                 id: response.data.data.id,

+ 2 - 2
src/xt_pages/data/components/dialysisBefore.vue View File

77
           cancelButtonText: '取 消',
77
           cancelButtonText: '取 消',
78
           type: 'warning'
78
           type: 'warning'
79
         }).then(() => {
79
         }).then(() => {
80
-          updateFieldIsShow(row.id, 2).then(response => {
80
+          updateFieldIsShow(row.id, 2,0).then(response => {
81
             if (response.data.state == 1) {
81
             if (response.data.state == 1) {
82
               const params = {
82
               const params = {
83
                 id: response.data.data.id,
83
                 id: response.data.data.id,
103
           cancelButtonText: '取 消',
103
           cancelButtonText: '取 消',
104
           type: 'warning'
104
           type: 'warning'
105
         }).then(() => {
105
         }).then(() => {
106
-          updateFieldIsShow(row.id, 1).then(response => {
106
+          updateFieldIsShow(row.id, 1,1).then(response => {
107
             if (response.data.state == 1) {
107
             if (response.data.state == 1) {
108
               const params = {
108
               const params = {
109
                 id: response.data.data.id,
109
                 id: response.data.data.id,

+ 4 - 2
src/xt_pages/data/components/dialysisComputer.vue View File

30
         </template>
30
         </template>
31
       </el-table-column>
31
       </el-table-column>
32
 
32
 
33
+   
34
+
33
       <el-table-column label="操作" align="center">
35
       <el-table-column label="操作" align="center">
34
         <template slot-scope="scope">
36
         <template slot-scope="scope">
35
           <el-tooltip
37
           <el-tooltip
89
           type: "warning"
91
           type: "warning"
90
         })
92
         })
91
           .then(() => {
93
           .then(() => {
92
-            updateFieldIsShow(row.id, 2).then(response => {
94
+            updateFieldIsShow(row.id, 2,0).then(response => {
93
               if (response.data.state == 1) {
95
               if (response.data.state == 1) {
94
                 let params = {
96
                 let params = {
95
                   id: response.data.data.id,
97
                   id: response.data.data.id,
113
           type: "warning"
115
           type: "warning"
114
         })
116
         })
115
           .then(() => {
117
           .then(() => {
116
-            updateFieldIsShow(row.id, 1).then(response => {
118
+            updateFieldIsShow(row.id, 1,1).then(response => {
117
               if (response.data.state == 1) {
119
               if (response.data.state == 1) {
118
                 let params = {
120
                 let params = {
119
                   id: response.data.data.id,
121
                   id: response.data.data.id,

+ 2 - 2
src/xt_pages/data/components/dialysisMonitor.vue View File

89
         type: "warning"
89
         type: "warning"
90
       })
90
       })
91
         .then(() => {
91
         .then(() => {
92
-          updateFieldIsShow(row.id, 2).then(response => {
92
+          updateFieldIsShow(row.id, 2,0).then(response => {
93
             if (response.data.state == 1) {
93
             if (response.data.state == 1) {
94
               let params = {
94
               let params = {
95
                 id: response.data.data.id,
95
                 id: response.data.data.id,
113
         type: "warning"
113
         type: "warning"
114
       })
114
       })
115
         .then(() => {
115
         .then(() => {
116
-          updateFieldIsShow(row.id, 1).then(response => {
116
+          updateFieldIsShow(row.id, 1,1).then(response => {
117
             if (response.data.state == 1) {
117
             if (response.data.state == 1) {
118
               let params = {
118
               let params = {
119
                 id: response.data.data.id,
119
                 id: response.data.data.id,

+ 142 - 5
src/xt_pages/data/components/dialysisOff.vue View File

30
         </template>
30
         </template>
31
       </el-table-column>
31
       </el-table-column>
32
 
32
 
33
+      <el-table-column align="center" label="是否必填">
34
+        <template slot-scope="scope">
35
+          <span v-if="scope.row.is_write == 1">是</span>
36
+          <span v-if="scope.row.is_write == 0">否</span>
37
+        </template>
38
+      </el-table-column>
39
+
33
       <el-table-column label="操作" align="center">
40
       <el-table-column label="操作" align="center">
34
         <template slot-scope="scope">
41
         <template slot-scope="scope">
35
-          <el-tooltip
42
+            <el-button
43
+              v-if="scope.row.is_show == 1"
44
+              size="small"
45
+              type="danger"
46
+              icon="el-icon-remove-outline"
47
+              @click="handleHide(scope.$index, scope.row)"
48
+            >
49
+            </el-button>
50
+            <el-button
51
+              v-if="scope.row.is_write == 1"
52
+              size="small"
53
+              type="danger"
54
+              icon="el-icon-remove-outline"
55
+              @click="handleHideOne(scope.$index, scope.row)"
56
+            >
57
+            </el-button>
58
+
59
+             <el-button
60
+              v-if="scope.row.is_show == 2"
61
+              size="small"
62
+              type="primary"
63
+              icon="el-icon-view"
64
+              @click="handleShow(scope.$index, scope.row)"
65
+            >
66
+            </el-button>
67
+            <el-button
68
+              v-if="scope.row.is_write == 0"
69
+              size="small"
70
+              type="primary"
71
+              icon="el-icon-view"
72
+              @click="handleShowOne(scope.$index, scope.row)"
73
+            >
74
+            </el-button>
75
+          <!-- <el-tooltip
36
             class="item"
76
             class="item"
37
             effect="dark"
77
             effect="dark"
38
             content="不展示"
78
             content="不展示"
48
             </el-button>
88
             </el-button>
49
           </el-tooltip>
89
           </el-tooltip>
50
 
90
 
91
+           <el-tooltip
92
+            class="item"
93
+            effect="dark"
94
+            content="不必填"
95
+            placement="top"
96
+            v-if="scope.row.is_write == 1"
97
+          >
98
+            <el-button
99
+              size="small"
100
+              type="danger"
101
+              icon="el-icon-remove-outline"
102
+              @click="handleHideOne(scope.$index, scope.row)"
103
+            >
104
+            </el-button>
105
+          </el-tooltip>
106
+
51
           <el-tooltip
107
           <el-tooltip
52
             class="item"
108
             class="item"
53
             effect="dark"
109
             effect="dark"
62
               @click="handleShow(scope.$index, scope.row)"
118
               @click="handleShow(scope.$index, scope.row)"
63
             >
119
             >
64
             </el-button>
120
             </el-button>
121
+           
65
           </el-tooltip>
122
           </el-tooltip>
123
+
124
+           <el-tooltip
125
+            class="item"
126
+            effect="dark"
127
+            content="必填"
128
+            placement="top"
129
+            v-if="scope.row.is_write == 2"
130
+          >
131
+            <el-button
132
+              size="small"
133
+              type="primary"
134
+              icon="el-icon-view"
135
+              @click="handleShowOne(scope.$index, scope.row)"
136
+            >
137
+            </el-button>
138
+           
139
+          </el-tooltip> -->
66
         </template>
140
         </template>
67
       </el-table-column>
141
       </el-table-column>
68
     </el-table>
142
     </el-table>
81
       type: Array
155
       type: Array
82
     }
156
     }
83
   },
157
   },
158
+  data(){
159
+    return {
160
+    is_show:2,
161
+    is_write:0,
162
+   }
163
+  },
84
   methods: {
164
   methods: {
85
     handleHide: function(index, row) {
165
     handleHide: function(index, row) {
86
       this.$confirm("是否将该字段设为不可见?", "提示", {
166
       this.$confirm("是否将该字段设为不可见?", "提示", {
89
         type: "warning"
169
         type: "warning"
90
       })
170
       })
91
         .then(() => {
171
         .then(() => {
92
-          updateFieldIsShow(row.id, 2).then(response => {
172
+          updateFieldIsShow(row.id, 2,row.is_write).then(response => {
93
             if (response.data.state == 1) {
173
             if (response.data.state == 1) {
174
+              this.is_show = response.data.data.is_show
94
               let params = {
175
               let params = {
95
                 id: response.data.data.id,
176
                 id: response.data.data.id,
96
-                is_show: response.data.data.is_show
177
+                is_show: response.data.data.is_show,
178
+                is_write:response.data.data.is_write,
179
+              };
180
+              store.dispatch("updateFiledConfigList", params).then(() => {});
181
+              this.$emit("change", params);
182
+            }
183
+          });
184
+          this.$message({
185
+            type: "success",
186
+            message: "设置成功!"
187
+          });
188
+        })
189
+        .catch(() => {});
190
+    },
191
+    handleHideOne: function(index, row) {
192
+      this.$confirm("是否将该字段设为不必填?", "提示", {
193
+        confirmButtonText: "确 定",
194
+        cancelButtonText: "取 消",
195
+        type: "warning"
196
+      })
197
+        .then(() => {
198
+          updateFieldIsShow(row.id,row.is_show,0).then(response => {
199
+          
200
+            if (response.data.state == 1) {
201
+              this.is_write = response.data.data.is_write
202
+              let params = {
203
+                id: response.data.data.id,
204
+                is_show: response.data.data.is_show,
205
+                is_write:response.data.data.is_write,
97
               };
206
               };
98
               store.dispatch("updateFiledConfigList", params).then(() => {});
207
               store.dispatch("updateFiledConfigList", params).then(() => {});
99
               this.$emit("change", params);
208
               this.$emit("change", params);
112
         cancelButtonText: "取 消",
221
         cancelButtonText: "取 消",
113
         type: "warning"
222
         type: "warning"
114
       }).then(() => {
223
       }).then(() => {
115
-          updateFieldIsShow(row.id, 1).then(response => {
224
+          updateFieldIsShow(row.id, 1,row.is_write).then(response => {
225
+            if (response.data.state == 1) {
226
+              this.is_show = response.data.data.is_show
227
+              let params = {
228
+                id: response.data.data.id,
229
+                is_show: response.data.data.is_show,
230
+                is_write:response.data.data.is_write,
231
+              };
232
+              store.dispatch("updateFiledConfigList", params).then(() => {});
233
+              this.$emit("change", params);
234
+            }
235
+          });
236
+          this.$message({
237
+            type: "success",
238
+            message: "设置成功!"
239
+          });
240
+        })
241
+        .catch(() => {});
242
+    },
243
+    handleShowOne: function(index, row) {
244
+      this.$confirm("是否将该字段设为必填?", "提示", {
245
+        confirmButtonText: "确 定",
246
+        cancelButtonText: "取 消",
247
+        type: "warning"
248
+      }).then(() => {
249
+         
250
+          updateFieldIsShow(row.id,row.is_show,1).then(response => {
116
             if (response.data.state == 1) {
251
             if (response.data.state == 1) {
252
+              this.is_write = response.data.data.is_write
117
               let params = {
253
               let params = {
118
                 id: response.data.data.id,
254
                 id: response.data.data.id,
119
-                is_show: response.data.data.is_show
255
+                is_show: response.data.data.is_show,
256
+                is_write:response.data.data.is_write,
120
               };
257
               };
121
               store.dispatch("updateFiledConfigList", params).then(() => {});
258
               store.dispatch("updateFiledConfigList", params).then(() => {});
122
               this.$emit("change", params);
259
               this.$emit("change", params);

+ 2 - 2
src/xt_pages/data/components/dialysisPrescription.vue View File

89
         type: "warning"
89
         type: "warning"
90
       })
90
       })
91
         .then(() => {
91
         .then(() => {
92
-          updateFieldIsShow(row.id, 2).then(response => {
92
+          updateFieldIsShow(row.id, 2,0).then(response => {
93
             if (response.data.state == 1) {
93
             if (response.data.state == 1) {
94
               let params = {
94
               let params = {
95
                 id: response.data.data.id,
95
                 id: response.data.data.id,
113
         type: "warning"
113
         type: "warning"
114
       })
114
       })
115
         .then(() => {
115
         .then(() => {
116
-          updateFieldIsShow(row.id, 1).then(response => {
116
+          updateFieldIsShow(row.id, 1,1).then(response => {
117
             if (response.data.state == 1) {
117
             if (response.data.state == 1) {
118
               let params = {
118
               let params = {
119
                 id: response.data.data.id,
119
                 id: response.data.data.id,

+ 2 - 2
src/xt_pages/data/components/dialysisSummary.vue View File

89
         type: "warning"
89
         type: "warning"
90
       })
90
       })
91
         .then(() => {
91
         .then(() => {
92
-          updateFieldIsShow(row.id, 2).then(response => {
92
+          updateFieldIsShow(row.id, 2,0).then(response => {
93
             if (response.data.state == 1) {
93
             if (response.data.state == 1) {
94
               let params = {
94
               let params = {
95
                 id: response.data.data.id,
95
                 id: response.data.data.id,
113
         type: "warning"
113
         type: "warning"
114
       })
114
       })
115
         .then(() => {
115
         .then(() => {
116
-          updateFieldIsShow(row.id, 1).then(response => {
116
+          updateFieldIsShow(row.id, 1,1).then(response => {
117
             if (response.data.state == 1) {
117
             if (response.data.state == 1) {
118
               let params = {
118
               let params = {
119
                 id: response.data.data.id,
119
                 id: response.data.data.id,

+ 2 - 2
src/xt_pages/data/components/doubleCheck.vue View File

89
         type: "warning"
89
         type: "warning"
90
       })
90
       })
91
         .then(() => {
91
         .then(() => {
92
-          updateFieldIsShow(row.id, 2).then(response => {
92
+          updateFieldIsShow(row.id, 2,0).then(response => {
93
             if (response.data.state == 1) {
93
             if (response.data.state == 1) {
94
               let params = {
94
               let params = {
95
                 id: response.data.data.id,
95
                 id: response.data.data.id,
112
         cancelButtonText: "取 消",
112
         cancelButtonText: "取 消",
113
         type: "warning"
113
         type: "warning"
114
       }).then(() => {
114
       }).then(() => {
115
-          updateFieldIsShow(row.id, 1).then(response => {
115
+          updateFieldIsShow(row.id, 1,1).then(response => {
116
             if (response.data.state == 1) {
116
             if (response.data.state == 1) {
117
               let params = {
117
               let params = {
118
                 id: response.data.data.id,
118
                 id: response.data.data.id,

+ 2 - 2
src/xt_pages/data/components/receiveTreatmentAsses.vue View File

88
         type: "warning"
88
         type: "warning"
89
       })
89
       })
90
         .then(() => {
90
         .then(() => {
91
-          updateFieldIsShow(row.id, 2).then(response => {
91
+          updateFieldIsShow(row.id, 2,0).then(response => {
92
             if (response.data.state == 1) {
92
             if (response.data.state == 1) {
93
               let params = {
93
               let params = {
94
                 id: response.data.data.id,
94
                 id: response.data.data.id,
112
         type: "warning"
112
         type: "warning"
113
       })
113
       })
114
         .then(() => {
114
         .then(() => {
115
-          updateFieldIsShow(row.id, 1).then(response => {
115
+          updateFieldIsShow(row.id, 1,1).then(response => {
116
             if (response.data.state == 1) {
116
             if (response.data.state == 1) {
117
               let params = {
117
               let params = {
118
                 id: response.data.data.id,
118
                 id: response.data.data.id,

+ 3 - 2
src/xt_pages/data/showConfig.vue View File

175
       }
175
       }
176
     },
176
     },
177
     changeDialysisOffData:function(object){
177
     changeDialysisOffData:function(object){
178
-
178
+    
179
      for (let i = 0; i < this.dialysis_off_data.length; i++) {
179
      for (let i = 0; i < this.dialysis_off_data.length; i++) {
180
         if (this.dialysis_off_data[i].id == object.id) {
180
         if (this.dialysis_off_data[i].id == object.id) {
181
           this.dialysis_off_data[i].is_show = object.is_show;
181
           this.dialysis_off_data[i].is_show = object.is_show;
182
+          this.dialysis_off_data[i].is_write = object.is_write
182
         }
183
         }
183
       }
184
       }
184
     }
185
     }
186
   },
187
   },
187
   created() {
188
   created() {
188
     var filedList = store.getters.xt_user.fileds;
189
     var filedList = store.getters.xt_user.fileds;
189
-    
190
+    console.log("地址32323232232332322我噢",filedList)
190
   
191
   
191
     for (let i = 0; i < filedList.length; i++) {
192
     for (let i = 0; i < filedList.length; i++) {
192
       switch (filedList[i].module) {
193
       switch (filedList[i].module) {

+ 9 - 2
src/xt_pages/dialysis/details/assessmentBefore.vue View File

5
     </h2>
5
     </h2>
6
     <div class="plate ">
6
     <div class="plate ">
7
       <ul>
7
       <ul>
8
-        <li v-if="isShow('透前重')">
9
-          <label>透前重 : </label>
8
+        <li v-if="isShow('透前重')">
9
+          <label>透前重 : </label>
10
           <span class="content" v-if="weight_before != '0'">{{
10
           <span class="content" v-if="weight_before != '0'">{{
11
             weight_before
11
             weight_before
12
           }}</span>
12
           }}</span>
13
           <span class="unit" v-if="weight_before != '0'">kg</span>
13
           <span class="unit" v-if="weight_before != '0'">kg</span>
14
         </li>
14
         </li>
15
 
15
 
16
+        <li v-if="isShow('透前体重备注')">
17
+          <label>透前体重备注 : </label>
18
+          <span class="content">
19
+            {{this.record.weight_befor_remake}}
20
+          </span>
21
+        </li>
22
+
16
         <li v-if="isShow('干体重')">
23
         <li v-if="isShow('干体重')">
17
           <label>干体重 : </label>
24
           <label>干体重 : </label>
18
           <span class="content" v-if="dry_weight != '0'">{{ dry_weight }}</span>
25
           <span class="content" v-if="dry_weight != '0'">{{ dry_weight }}</span>

+ 9 - 0
src/xt_pages/dialysis/details/dialog/assessmentBeforeDislysisDialog.vue View File

29
             </el-form-item>
29
             </el-form-item>
30
           </el-col>
30
           </el-col>
31
 
31
 
32
+          <el-col :span="8">
33
+            <el-form-item label="透前体重备注:" v-if="isShow('透前体重备注')">
34
+              <el-input v-model="assessmentBeforeDislysis.weight_befor_remake"></el-input>
35
+            </el-form-item>
36
+          </el-col>
37
+
32
           <el-col :span="8">
38
           <el-col :span="8">
33
             <el-form-item label="干体重(kg):"
39
             <el-form-item label="干体重(kg):"
34
                           v-if="isShow('干体重')">
40
                           v-if="isShow('干体重')">
553
               <el-input v-model="assessmentBeforeDislysis.suction" @focus="showInnerDialog('20')"></el-input>
559
               <el-input v-model="assessmentBeforeDislysis.suction" @focus="showInnerDialog('20')"></el-input>
554
             </el-form-item>
560
             </el-form-item>
555
           </el-col>
561
           </el-col>
562
+
563
+ 
556
          
564
          
557
           <el-col :span="24">
565
           <el-col :span="24">
558
             <el-form-item label="备注: ">
566
             <el-form-item label="备注: ">
725
           blood_pressure_during_dialysis:"",
733
           blood_pressure_during_dialysis:"",
726
           urea_befor:"",
734
           urea_befor:"",
727
           suction:"",
735
           suction:"",
736
+          weight_befor_remake:"",
728
         },
737
         },
729
 
738
 
730
         InnerDialogProps: {
739
         InnerDialogProps: {

+ 5 - 4
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue View File

2204
                 return
2204
                 return
2205
               }
2205
               }
2206
             }
2206
             }
2207
-            if(this.dialysisPrescription.mode_id!=2 && this.dialysisPrescription.mode_id!=5 && this.dialysisPrescription.mode_id!=12){
2208
-                this.dialysisPrescription.displace_liqui_part = 0
2209
-                this.dialysisPrescription.displace_liqui_value = 0
2210
-            } 
2207
+            
2211
           }
2208
           }
2209
+          if(this.dialysisPrescription.mode_id!=2 && this.dialysisPrescription.mode_id!=5 && this.dialysisPrescription.mode_id!=12){
2210
+            this.dialysisPrescription.displace_liqui_part = 0
2211
+            this.dialysisPrescription.displace_liqui_value = 0
2212
+          } 
2212
 
2213
 
2213
           this.is_pre = 1
2214
           this.is_pre = 1
2214
 
2215
 

+ 99 - 50
src/xt_pages/dialysis/details/dialog/finish_dialog.vue View File

4
       <!-- <div class="txsj">
4
       <!-- <div class="txsj">
5
       </div> -->
5
       </div> -->
6
       <div class="warnTxt" v-if="showTxt != ''">{{ showTxt }}</div>
6
       <div class="warnTxt" v-if="showTxt != ''">{{ showTxt }}</div>
7
-      <el-form :model="form" label-width="100px">
7
+      <el-form :model="form" label-width="100px"  :rules="drugdicRules"  ref="form">
8
         <el-form-item label="下机护士">
8
         <el-form-item label="下机护士">
9
           <el-select v-model="form.nurse_id" :disabled="!(dialysis_order.id != 0)">
9
           <el-select v-model="form.nurse_id" :disabled="!(dialysis_order.id != 0)">
10
             <el-option v-for="(admin, index) in admins" :key="index" :value="admin.id" :label="admin.name"></el-option>
10
             <el-option v-for="(admin, index) in admins" :key="index" :value="admin.id" :label="admin.name"></el-option>
48
        </el-form-item>
48
        </el-form-item>
49
 
49
 
50
         <el-form-item>
50
         <el-form-item>
51
-          <el-button v-if="(dialysis_order.id != 0 && dialysis_order.stage == 1)" @click="submit" :loading="loading"
51
+          <el-button v-if="(dialysis_order.id != 0 && dialysis_order.stage == 1)" @click="submit('form')" :loading="loading"
52
                      type="primary">执行下机
52
                      type="primary">执行下机
53
           </el-button>
53
           </el-button>
54
           <el-button
54
           <el-button
55
             v-if="dialysis_order.stage == 2 "
55
             v-if="dialysis_order.stage == 2 "
56
-            type="primary" @click="modifyFinish">修改下机
56
+            type="primary" @click="modifyFinish('form')">修改下机
57
           </el-button>
57
           </el-button>
58
         </el-form-item>
58
         </el-form-item>
59
 
59
 
114
         },
114
         },
115
         catheter: [],
115
         catheter: [],
116
         cruorOptions: [],
116
         cruorOptions: [],
117
+        drugdicRules: {
118
+         internal_fistula: [{ required: true, message: "请选择内瘘" }]
119
+        },
120
+        required:false,
117
       }
121
       }
118
     },
122
     },
119
     props: {
123
     props: {
165
     methods: {
169
     methods: {
166
        isShowFiled(name) {
170
        isShowFiled(name) {
167
         var filedList = store.getters.xt_user.fileds
171
         var filedList = store.getters.xt_user.fileds
168
-
169
         for (let i = 0; i < filedList.length; i++) {
172
         for (let i = 0; i < filedList.length; i++) {
170
           if (filedList[i].module == 9 && filedList[i].filed_name_cn == name && filedList[i].is_show == 1) {
173
           if (filedList[i].module == 9 && filedList[i].filed_name_cn == name && filedList[i].is_show == 1) {
171
             return true
174
             return true
172
           }
175
           }
176
+          if (filedList[i].module == 9 && filedList[i].filed_name_cn == name && filedList[i].is_write == 1) {
177
+             this.required = true
178
+          }
173
         }
179
         }
180
+        this.required = false
181
+        return false
182
+      },
183
+      isWrite(name){
184
+        var filedList = store.getters.xt_user.fileds
185
+        for (let i = 0; i < filedList.length; i++) {
186
+          if (filedList[i].module == 9 && filedList[i].filed_name_cn == name && filedList[i].is_write == 1) {
187
+            return true
188
+          }
189
+        }
190
+        
174
         return false
191
         return false
175
       },
192
       },
176
       show: function(record) {
193
       show: function(record) {
250
       hide: function() {
267
       hide: function() {
251
         this.visible = false
268
         this.visible = false
252
       },
269
       },
253
-      modifyFinish:function(){
254
-        let ParamsQuery = {};
255
-        ParamsQuery["id"] = this.dialysis_order.id;
256
-        ParamsQuery["nurse"] = this.form.nurse_id;
257
-        ParamsQuery["end_time"] = this.end_time;
258
-        ParamsQuery["mode"] = "2"
259
-        ParamsQuery["puncture_point_haematoma"] = parseInt(this.form.puncture_point_haematoma)
260
-        ParamsQuery["internal_fistula"] = this.form.internal_fistula
261
-        ParamsQuery["catheter"] = this.form.catheter
262
-        ParamsQuery["cruor"] = this.form.cruor
263
-        if(this.dialysis_order.finish_creator  != this.$store.getters.xt_user.user.id){
264
-          ParamsQuery["mode"] = "3"
265
-        }
266
-        PostModifyFinishDialysis(ParamsQuery).then(response => {
267
-          if (response.data.state == 0) {
268
-            this.$message.error(response.data.msg)
269
-
270
-            return false;
271
-          } else {
272
-            this.$message.success("修改成功")
273
-            var record = this.dialysis_order;
274
-            for (const key in response.data.data.dialysis_order) {
275
-              this.$set(record, key, response.data.data.dialysis_order[key]);
270
+      modifyFinish:function(formName){
271
+        this.$refs[formName].validate(valid=>{
272
+          if(valid){
273
+            if(this.isWrite("内瘘") == true && this.form.internal_fistula == ""){
274
+              this.$message.error("请选择内瘘")
275
+              return
276
+             }
277
+            if(this.isWrite("导管") == true && this.form.catheter == ""){
278
+              this.$message.error("请选择导管")
279
+              return
280
+             }
281
+            if(this.isWrite("透析器凝血") == true && this.form.cruor == ""){
282
+              this.$message.error("请选择透析器凝血")
283
+              return
284
+             }
285
+            let ParamsQuery = {};
286
+            ParamsQuery["id"] = this.dialysis_order.id;
287
+            ParamsQuery["nurse"] = this.form.nurse_id;
288
+            ParamsQuery["end_time"] = this.end_time;
289
+            ParamsQuery["mode"] = "2"
290
+            ParamsQuery["puncture_point_haematoma"] = parseInt(this.form.puncture_point_haematoma)
291
+            ParamsQuery["internal_fistula"] = this.form.internal_fistula
292
+            ParamsQuery["catheter"] = this.form.catheter
293
+            ParamsQuery["cruor"] = this.form.cruor
294
+            if(this.dialysis_order.finish_creator  != this.$store.getters.xt_user.user.id){
295
+              ParamsQuery["mode"] = "3"
276
             }
296
             }
277
-            console.log(response.data.data.after)
278
-            this.$emit('assessmentAfterDislysis', response.data.data.after)
297
+            PostModifyFinishDialysis(ParamsQuery).then(response => {
298
+              if (response.data.state == 0) {
299
+                this.$message.error(response.data.msg)
300
+
301
+                return false;
302
+              } else {
303
+                this.$message.success("修改成功")
304
+                var record = this.dialysis_order;
305
+                for (const key in response.data.data.dialysis_order) {
306
+                  this.$set(record, key, response.data.data.dialysis_order[key]);
307
+                }
308
+                console.log(response.data.data.after)
309
+                this.$emit('assessmentAfterDislysis', response.data.data.after)
310
+              }
311
+            });
279
           }
312
           }
280
-        });
281
-
282
-
313
+        })
283
       },
314
       },
284
-      submit: function() {
285
-        this.loading = true
286
-        let mode = "1"
287
-        finishDialysis(this.patient_id,this.schedule_date ? parseTime(this.schedule_date, '{y}-{m}-{d}') : parseTime(new Date(), '{y}-{m}-{d}'), this.end_time, this.form.nurse_id,mode,parseInt(this.form.puncture_point_haematoma),this.form.internal_fistula,this.form.catheter,this.form.cruor).then(rs => {
288
-          this.loading = false
289
-          var resp = rs.data
290
-          if (resp.state == 1) {
291
-            var dialysis_order = resp.data.dialysis_order
292
-            var this_order = this.dialysis_order
293
-            for (const key in dialysis_order) {
294
-              this.$set(this_order, key, dialysis_order[key])
295
-            }
296
-            let orgId = parseInt(sessionStorage.getItem("org_id"));
297
-            this.hide()
298
-            this.$emit('assessmentAfterDislysis', resp.data.assessmentAfterDislysis)
299
-
300
-          } else {
301
-            this.$message.error(resp.msg)
315
+      submit: function(formName) {
316
+        
317
+        this.$refs[formName].validate(valid=>{
318
+          if(valid){
319
+             if(this.isWrite("内瘘") == true && this.form.internal_fistula == ""){
320
+              this.$message.error("请选择内瘘")
321
+              return
322
+             }
323
+            if(this.isWrite("导管") == true && this.form.catheter == ""){
324
+              this.$message.error("请选择导管")
325
+              return
326
+             }
327
+            if(this.isWrite("透析器凝血") == true && this.form.cruor == ""){
328
+              this.$message.error("请选择透析器凝血")
329
+              return
330
+             }
331
+             this.loading = true
332
+             let mode = "1"
333
+            finishDialysis(this.patient_id,this.schedule_date ? parseTime(this.schedule_date, '{y}-{m}-{d}') : parseTime(new Date(), '{y}-{m}-{d}'), this.end_time, this.form.nurse_id,mode,parseInt(this.form.puncture_point_haematoma),this.form.internal_fistula,this.form.catheter,this.form.cruor).then(rs => {
334
+              this.loading = false
335
+              var resp = rs.data
336
+              if (resp.state == 1) {
337
+                var dialysis_order = resp.data.dialysis_order
338
+                var this_order = this.dialysis_order
339
+                for (const key in dialysis_order) {
340
+                  this.$set(this_order, key, dialysis_order[key])
341
+                }
342
+                let orgId = parseInt(sessionStorage.getItem("org_id"));
343
+                this.hide()
344
+                this.$emit('assessmentAfterDislysis', resp.data.assessmentAfterDislysis)
345
+
346
+              } else {
347
+                this.$message.error(resp.msg)
348
+              }
349
+            })
302
           }
350
           }
303
         })
351
         })
352
+    
304
       }, getTime(value, temp) {
353
       }, getTime(value, temp) {
305
         if (value != undefined) {
354
         if (value != undefined) {
306
           return parseTime(value, temp)
355
           return parseTime(value, temp)

+ 4 - 4
src/xt_pages/dialysis/details/dialog/monitor_dialog.vue View File

707
             align="center"
707
             align="center"
708
             label="累计血容量(ml)"
708
             label="累计血容量(ml)"
709
             width="100"
709
             width="100"
710
-            v-if="isShow('累计血容量') && template_id != 41"
710
+            v-if="isShow('累计血容量') && template_id != 41 && org_id != 9538 && org_id != 9671"
711
           >
711
           >
712
              <template slot-scope="scope">
712
              <template slot-scope="scope">
713
               {{ scope.row.accumulated_blood_volume }}
713
               {{ scope.row.accumulated_blood_volume }}
718
             align="center"
718
             align="center"
719
             label="累计血容量(L)"
719
             label="累计血容量(L)"
720
             width="100"
720
             width="100"
721
-            v-if="isShow('累计血容量') && template_id == 41"
721
+            v-if="isShow('累计血容量') && (template_id == 41  || org_id == 9538 || org_id == 9671)"
722
           >
722
           >
723
             <template slot-scope="scope">
723
             <template slot-scope="scope">
724
               {{ scope.row.accumulated_blood_volume }}
724
               {{ scope.row.accumulated_blood_volume }}
1384
             </el-form-item>
1384
             </el-form-item>
1385
           </el-col>
1385
           </el-col>
1386
 
1386
 
1387
-          <el-col :span="8" v-if="isShow('累计血容量') && template_id == 41">
1387
+          <el-col :span="8" v-if="isShow('累计血容量') && (template_id == 41 || org_id == 9671 || org_id == 9538)">
1388
             <el-form-item label="累计血容量(L):">
1388
             <el-form-item label="累计血容量(L):">
1389
               <el-input v-model="form.accumulated_blood_volume"></el-input>
1389
               <el-input v-model="form.accumulated_blood_volume"></el-input>
1390
             </el-form-item>
1390
             </el-form-item>
1391
           </el-col>
1391
           </el-col>
1392
 
1392
 
1393
-          <el-col :span="8" v-if="isShow('累计血容量') && template_id  != 41">
1393
+          <el-col :span="8" v-if="isShow('累计血容量') && (template_id  != 41 && template_id !=9671 && template_id!=9538)">
1394
             <el-form-item label="累计血容量(ml):">
1394
             <el-form-item label="累计血容量(ml):">
1395
               <el-input v-model="form.accumulated_blood_volume"></el-input>
1395
               <el-input v-model="form.accumulated_blood_volume"></el-input>
1396
             </el-form-item>
1396
             </el-form-item>

+ 2 - 2
src/xt_pages/dialysis/details/dialysisMonitoring.vue View File

33
           <th v-if="isShow('肝素用量余量')" width="92px">肝素用量余量(ml)</th>
33
           <th v-if="isShow('肝素用量余量')" width="92px">肝素用量余量(ml)</th>
34
           <th v-if="isShow('抗凝剂')" width="92px">抗凝剂</th>
34
           <th v-if="isShow('抗凝剂')" width="92px">抗凝剂</th>
35
           <th v-if="isShow('累计血容量')" width="92px">累计血容量 
35
           <th v-if="isShow('累计血容量')" width="92px">累计血容量 
36
-            <span v-if="template_id !=41">(ml)</span>
37
-            <span v-if="template_id == 41">(L)</span>
36
+            <span v-if="template_id !=41 && org_id!=9671 && org_id!=9538">(ml)</span>
37
+            <span v-if="template_id == 41 || org_id == 9671 || org_id == 9538">(L)</span>
38
           </th>
38
           </th>
39
           <th v-if="isShow('血容量')" width="92px">血容量(L)</th>
39
           <th v-if="isShow('血容量')" width="92px">血容量(L)</th>
40
           <th v-if="isShow('血温监测')" width="92px">血温监测</th>
40
           <th v-if="isShow('血温监测')" width="92px">血温监测</th>

+ 1 - 1
src/xt_pages/dialysis/template/DialysisPrintOrderFiftyOne.vue View File

573
                           {{ monitor.systolic_blood_pressure ? monitor.systolic_blood_pressure + "/" : "" }}
573
                           {{ monitor.systolic_blood_pressure ? monitor.systolic_blood_pressure + "/" : "" }}
574
                           {{ monitor.diastolic_blood_pressure ? monitor.diastolic_blood_pressure : "" }}
574
                           {{ monitor.diastolic_blood_pressure ? monitor.diastolic_blood_pressure : "" }}
575
                         </td>
575
                         </td>
576
-                        <td>{{ monitor.monitor_temperature ? monitor.monitor_temperature : "" }}</td>
576
+                        <td>{{ monitor.temperature ? monitor.temperature : "" }}</td>
577
                         <td>{{ monitor.pulse_frequency ? monitor.pulse_frequency : "" }}</td>
577
                         <td>{{ monitor.pulse_frequency ? monitor.pulse_frequency : "" }}</td>
578
                         <td>{{ monitor.breathing_rate ? monitor.breathing_rate : "" }}</td>
578
                         <td>{{ monitor.breathing_rate ? monitor.breathing_rate : "" }}</td>
579
                         <td>{{ monitor.blood_flow_volume ? monitor.blood_flow_volume : "" }}
579
                         <td>{{ monitor.blood_flow_volume ? monitor.blood_flow_volume : "" }}

+ 3 - 1
src/xt_pages/dialysis/template/DialysisPrintOrderFiftyThree.vue View File

385
                             border-right: 1px solid;
385
                             border-right: 1px solid;
386
                           "
386
                           "
387
                         >
387
                         >
388
-                          透析机:{{
388
+                          透析机:
389
+                         <span v-if="dialysisOrder!=null">{{
389
                             dialysisOrder &&
390
                             dialysisOrder &&
390
                             dialysisOrder.DeviceNumber &&
391
                             dialysisOrder.DeviceNumber &&
391
                             dialysisOrder.DeviceNumber.number.length > 0
392
                             dialysisOrder.DeviceNumber.number.length > 0
393
                               : patientInfo.DialysisSchedule.device_number
394
                               : patientInfo.DialysisSchedule.device_number
394
                                   .number
395
                                   .number
395
                           }}
396
                           }}
397
+                          </span> 
396
                         </div>
398
                         </div>
397
                         <div
399
                         <div
398
                           style="
400
                           style="

+ 2 - 2
src/xt_pages/dialysis/template/DialysisPrintOrderFortyOne.vue View File

425
                     <div class="inline_block" style="flex:1;">
425
                     <div class="inline_block" style="flex:1;">
426
                       置换方式:
426
                       置换方式:
427
                       <div class="under_line" style="width: 60px;text-align: center">
427
                       <div class="under_line" style="width: 60px;text-align: center">
428
-                        {{ getDisplaceLiquiPart(prescription.displace_liqui_part) }}
428
+                        <span v-if="prescription.mode_id != 2 && prescription.mode_id!=5 && prescription.mode_id!=12"> {{ getDisplaceLiquiPart(prescription.displace_liqui_part) }} </span>
429
                       </div>
429
                       </div>
430
                     </div>
430
                     </div>
431
                     <div class="inline_block" style="flex:1;">
431
                     <div class="inline_block" style="flex:1;">
432
                       置换总量:
432
                       置换总量:
433
                       <div class="under_line" style="width: 50px;text-align: center">
433
                       <div class="under_line" style="width: 50px;text-align: center">
434
-                        {{ prescription.displace_liqui_value ? prescription.displace_liqui_value : "/" }}
434
+                         <span v-if="prescription.mode_id != 2 && prescription.mode_id!=5 && prescription.mode_id!=12"> {{ prescription.displace_liqui_value ? prescription.displace_liqui_value : "/" }}</span>
435
                       </div>
435
                       </div>
436
                       L
436
                       L
437
                     </div>
437
                     </div>

+ 2 - 8
src/xt_pages/dialysis/template/DialysisPrintOrderFortySeven.vue View File

674
                         class="under_line"
674
                         class="under_line"
675
                         style="width: 100px; text-align: center"
675
                         style="width: 100px; text-align: center"
676
                       >
676
                       >
677
-                        {{
678
-                          getDisplaceLiquiPart(prescription.displace_liqui_part)
679
-                        }}
677
+                       <span v-if="prescription.mode_id == 2 || prescription.mode_id == 5 || prescription.mode_id == 12">{{getDisplaceLiquiPart(prescription.displace_liqui_part)}}</span> 
680
                       </div>
678
                       </div>
681
                     </div>
679
                     </div>
682
                     <div
680
                     <div
688
                         class="under_line"
686
                         class="under_line"
689
                         style="width: 70px; text-align: center"
687
                         style="width: 70px; text-align: center"
690
                       >
688
                       >
691
-                        {{
692
-                          prescription.displace_liqui_value
693
-                            ? prescription.displace_liqui_value
694
-                            : "/"
695
-                        }}
689
+                       <span v-if="prescription.mode_id == 2 || prescription.mode_id == 5 || prescription.mode_id == 12">{{ prescription.displace_liqui_value ? prescription.displace_liqui_value: "/"}} </span> 
696
                       </div>
690
                       </div>
697
                       L
691
                       L
698
                     </div>
692
                     </div>

+ 8 - 1
src/xt_pages/user/dialysisSolution.vue View File

1486
           this.addPlan.dialysis_dialyszers = this.dialysis_dialyszers
1486
           this.addPlan.dialysis_dialyszers = this.dialysis_dialyszers
1487
           this.addPlan.dialysis_irrigation = this.dialysis_irrigation
1487
           this.addPlan.dialysis_irrigation = this.dialysis_irrigation
1488
           this.addPlan.mode_id = parseInt(this.addPlan.mode_id)
1488
           this.addPlan.mode_id = parseInt(this.addPlan.mode_id)
1489
+          if(this.addPlan.mode_id!=2 && this.addPlan.mode_id!=5&&this.addPlan.mode_id!=12){
1490
+            this.addPlan.displace_liqui_part = 0
1491
+            this.addPlan.displace_liqui_value = 0
1492
+          }
1489
           editPatientDialysisSolution(this.patientID,this.addPlan.id,this.addPlan, mode).then(response => {
1493
           editPatientDialysisSolution(this.patientID,this.addPlan.id,this.addPlan, mode).then(response => {
1490
             if (response.data.state == 0) {
1494
             if (response.data.state == 0) {
1491
               this.$message.error(response.data.msg)
1495
               this.$message.error(response.data.msg)
1519
       })
1523
       })
1520
     },
1524
     },
1521
     submitNewSolution(formName) {
1525
     submitNewSolution(formName) {
1522
-
1526
+       if(this.addPlan.mode_id!=2 && this.addPlan.mode_id!=5&&this.addPlan.mode_id!=12){
1527
+          this.addPlan.displace_liqui_part = 0
1528
+          this.addPlan.displace_liqui_value = 0
1529
+       }
1523
       this.addPlan.anticoagulant_zongliang = this.addPlan.anticoagulant_zongliang.toString()
1530
       this.addPlan.anticoagulant_zongliang = this.addPlan.anticoagulant_zongliang.toString()
1524
       this.$refs[formName].validate(valid => {
1531
       this.$refs[formName].validate(valid => {
1525
         if (valid) {
1532
         if (valid) {