XMLWAN 2 lat temu
rodzic
commit
caae5658c5

+ 82 - 21
src/xt_pages/data/components/dialysisAfter.vue Wyświetl plik

22
           <span>{{ scope.row.filed_name }}</span>
22
           <span>{{ scope.row.filed_name }}</span>
23
         </template>
23
         </template>
24
       </el-table-column>
24
       </el-table-column>
25
-
25
+    
26
       <el-table-column align="center" label="是否显示">
26
       <el-table-column align="center" label="是否显示">
27
         <template slot-scope="scope">
27
         <template slot-scope="scope">
28
           <span v-if="scope.row.is_show == 1">是</span>
28
           <span v-if="scope.row.is_show == 1">是</span>
29
           <span v-if="scope.row.is_show == 2">否</span>
29
           <span v-if="scope.row.is_show == 2">否</span>
30
         </template>
30
         </template>
31
       </el-table-column>
31
       </el-table-column>
32
+    
33
+     <el-table-column align="center" label="是否必填">
34
+        <template slot-scope="scope">
35
+          <span v-if="scope.row.is_write!=undefined &&scope.row.is_write == 1">是</span>
36
+          <span v-if="scope.row.is_write!=undefined &&scope.row.is_write == 0">否</span>
37
+        </template>
38
+      </el-table-column>
32
 
39
 
33
-      <el-table-column label="操作" align="center">
40
+
41
+       <el-table-column label="操作" align="center">
34
         <template slot-scope="scope">
42
         <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
             <el-button
44
+              v-if="scope.row.is_show == 1"
43
               size="small"
45
               size="small"
44
               type="danger"
46
               type="danger"
45
               icon="el-icon-remove-outline"
47
               icon="el-icon-remove-outline"
46
               @click="handleHide(scope.$index, scope.row)"
48
               @click="handleHide(scope.$index, scope.row)"
47
             >
49
             >
48
             </el-button>
50
             </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
51
             <el-button
52
+              v-if="scope.row.is_write!=undefined&&scope.row.is_write == 1"
53
+              size="small"
54
+              type="danger"
55
+              icon="el-icon-remove-outline"
56
+              @click="handleHideOne(scope.$index, scope.row)"
57
+            >
58
+            </el-button>
59
+
60
+             <el-button
61
+              v-if="scope.row.is_show == 2"
59
               size="small"
62
               size="small"
60
               type="primary"
63
               type="primary"
61
               icon="el-icon-view"
64
               icon="el-icon-view"
62
               @click="handleShow(scope.$index, scope.row)"
65
               @click="handleShow(scope.$index, scope.row)"
63
             >
66
             >
64
             </el-button>
67
             </el-button>
65
-          </el-tooltip>
68
+            <el-button
69
+              v-if="scope.row.is_write!=undefined&&scope.row.is_write == 0"
70
+              size="small"
71
+              type="primary"
72
+              icon="el-icon-view"
73
+              @click="handleShowOne(scope.$index, scope.row)"
74
+            >
75
+            </el-button>
66
         </template>
76
         </template>
67
       </el-table-column>
77
       </el-table-column>
68
     </el-table>
78
     </el-table>
89
         type: "warning"
99
         type: "warning"
90
       })
100
       })
91
         .then(() => {
101
         .then(() => {
92
-          updateFieldIsShow(row.id, 2,0).then(response => {
102
+          updateFieldIsShow(row.id, 2,row.is_write).then(response => {
93
             if (response.data.state == 1) {
103
             if (response.data.state == 1) {
94
               let params = {
104
               let params = {
95
                 id: response.data.data.id,
105
                 id: response.data.data.id,
113
         type: "warning"
123
         type: "warning"
114
       })
124
       })
115
         .then(() => {
125
         .then(() => {
116
-          updateFieldIsShow(row.id, 1,1).then(response => {
126
+          updateFieldIsShow(row.id, 1,row.is_write).then(response => {
117
             if (response.data.state == 1) {
127
             if (response.data.state == 1) {
118
               let params = {
128
               let params = {
119
                 id: response.data.data.id,
129
                 id: response.data.data.id,
129
           });
139
           });
130
         })
140
         })
131
         .catch(() => {});
141
         .catch(() => {});
142
+    },
143
+
144
+    handleHideOne: function(index, row) {
145
+      this.$confirm("是否将该字段设为不必填?", "提示", {
146
+        confirmButtonText: "确 定",
147
+        cancelButtonText: "取 消",
148
+        type: "warning"
149
+      }).then(() => {
150
+          updateFieldIsShow(row.id,row.is_show,0).then(response => {
151
+          
152
+            if (response.data.state == 1) {
153
+              this.is_write = response.data.data.is_write
154
+              let params = {
155
+                id: response.data.data.id,
156
+                is_show: response.data.data.is_show,
157
+                is_write:response.data.data.is_write,
158
+              };
159
+              store.dispatch("updateFiledConfigList", params).then(() => {});
160
+              this.$emit("change", params);
161
+            }
162
+          });
163
+          this.$message({
164
+            type: "success",
165
+            message: "设置成功!"
166
+          });
167
+        }).catch(() => {});
168
+    },
169
+  
170
+    handleShowOne: function(index, row) {
171
+      this.$confirm("是否将该字段设为必填?", "提示", {
172
+        confirmButtonText: "确 定",
173
+        cancelButtonText: "取 消",
174
+        type: "warning"
175
+      }).then(() => {
176
+          updateFieldIsShow(row.id,row.is_show,1).then(response => {
177
+            if (response.data.state == 1) {
178
+              this.is_write = response.data.data.is_write
179
+              let params = {
180
+                id: response.data.data.id,
181
+                is_show: response.data.data.is_show,
182
+                is_write:response.data.data.is_write,
183
+              };
184
+              store.dispatch("updateFiledConfigList", params).then(() => {});
185
+              this.$emit("change", params);
186
+            }
187
+          });
188
+          this.$message({
189
+            type: "success",
190
+            message: "设置成功!"
191
+          });
192
+        }).catch(() => {});
132
     }
193
     }
133
   }
194
   }
134
 };
195
 };

+ 88 - 11
src/xt_pages/data/components/dialysisBefore.vue Wyświetl plik

30
         </template>
30
         </template>
31
       </el-table-column>
31
       </el-table-column>
32
 
32
 
33
-      <el-table-column label="操作" align="center">
33
+      <el-table-column align="center" label="是否必填">
34
+        <template slot-scope="scope">
35
+          <span v-if="scope.row.is_write!=undefined &&scope.row.is_write == 1">是</span>
36
+          <span v-if="scope.row.is_write!=undefined &&scope.row.is_write == 0">否</span>
37
+        </template>
38
+      </el-table-column>
39
+
40
+
41
+       <el-table-column label="操作" align="center">
34
         <template slot-scope="scope">
42
         <template slot-scope="scope">
35
-          <el-tooltip class="item" effect="dark" content="不展示" placement="top" v-if="scope.row.is_show == 1">
36
             <el-button
43
             <el-button
44
+              v-if="scope.row.is_show == 1"
37
               size="small"
45
               size="small"
38
               type="danger"
46
               type="danger"
39
               icon="el-icon-remove-outline"
47
               icon="el-icon-remove-outline"
40
-              @click="handleHide(scope.$index, scope.row)">
48
+              @click="handleHide(scope.$index, scope.row)"
49
+            >
50
+            </el-button>
51
+            <el-button
52
+              v-if="scope.row.is_write!=undefined&&scope.row.is_write == 1"
53
+              size="small"
54
+              type="danger"
55
+              icon="el-icon-remove-outline"
56
+              @click="handleHideOne(scope.$index, scope.row)"
57
+            >
41
             </el-button>
58
             </el-button>
42
-          </el-tooltip>
43
 
59
 
44
-          <el-tooltip class="item" effect="dark" content="展示" placement="top"  v-if="scope.row.is_show == 2">
60
+             <el-button
61
+              v-if="scope.row.is_show == 2"
62
+              size="small"
63
+              type="primary"
64
+              icon="el-icon-view"
65
+              @click="handleShow(scope.$index, scope.row)"
66
+            >
67
+            </el-button>
45
             <el-button
68
             <el-button
69
+              v-if="scope.row.is_write!=undefined&&scope.row.is_write == 0"
46
               size="small"
70
               size="small"
47
               type="primary"
71
               type="primary"
48
               icon="el-icon-view"
72
               icon="el-icon-view"
49
-              @click="handleShow(scope.$index, scope.row)">
73
+              @click="handleShowOne(scope.$index, scope.row)"
74
+            >
50
             </el-button>
75
             </el-button>
51
-          </el-tooltip>
52
-
53
         </template>
76
         </template>
54
       </el-table-column>
77
       </el-table-column>
55
     </el-table>
78
     </el-table>
77
           cancelButtonText: '取 消',
100
           cancelButtonText: '取 消',
78
           type: 'warning'
101
           type: 'warning'
79
         }).then(() => {
102
         }).then(() => {
80
-          updateFieldIsShow(row.id, 2,0).then(response => {
103
+          updateFieldIsShow(row.id, 2,row.is_write).then(response => {
81
             if (response.data.state == 1) {
104
             if (response.data.state == 1) {
82
               const params = {
105
               const params = {
83
                 id: response.data.data.id,
106
                 id: response.data.data.id,
103
           cancelButtonText: '取 消',
126
           cancelButtonText: '取 消',
104
           type: 'warning'
127
           type: 'warning'
105
         }).then(() => {
128
         }).then(() => {
106
-          updateFieldIsShow(row.id, 1,1).then(response => {
129
+          updateFieldIsShow(row.id, 1,row.is_write).then(response => {
107
             if (response.data.state == 1) {
130
             if (response.data.state == 1) {
108
               const params = {
131
               const params = {
109
                 id: response.data.data.id,
132
                 id: response.data.data.id,
122
         }).catch(() => {
145
         }).catch(() => {
123
 
146
 
124
         })
147
         })
125
-      }
148
+      },
149
+
150
+     handleHideOne: function(index, row) {
151
+      this.$confirm("是否将该字段设为不必填?", "提示", {
152
+        confirmButtonText: "确 定",
153
+        cancelButtonText: "取 消",
154
+        type: "warning"
155
+      })
156
+        .then(() => {
157
+          updateFieldIsShow(row.id,row.is_show,0).then(response => {
158
+          
159
+            if (response.data.state == 1) {
160
+              this.is_write = response.data.data.is_write
161
+              let params = {
162
+                id: response.data.data.id,
163
+                is_show: response.data.data.is_show,
164
+                is_write:response.data.data.is_write,
165
+              };
166
+              store.dispatch("updateFiledConfigList", params).then(() => {});
167
+              this.$emit("change", params);
168
+            }
169
+          });
170
+          this.$message({
171
+            type: "success",
172
+            message: "设置成功!"
173
+          });
174
+        })
175
+        .catch(() => {});
176
+    },
177
+  
178
+    handleShowOne: function(index, row) {
179
+      this.$confirm("是否将该字段设为必填?", "提示", {
180
+        confirmButtonText: "确 定",
181
+        cancelButtonText: "取 消",
182
+        type: "warning"
183
+      }).then(() => {
184
+         
185
+          updateFieldIsShow(row.id,row.is_show,1).then(response => {
186
+            if (response.data.state == 1) {
187
+              this.is_write = response.data.data.is_write
188
+              let params = {
189
+                id: response.data.data.id,
190
+                is_show: response.data.data.is_show,
191
+                is_write:response.data.data.is_write,
192
+              };
193
+              store.dispatch("updateFiledConfigList", params).then(() => {});
194
+              this.$emit("change", params);
195
+            }
196
+          });
197
+          this.$message({
198
+            type: "success",
199
+            message: "设置成功!"
200
+          });
201
+        }).catch(() => {});
202
+    }
126
 
203
 
127
     },
204
     },
128
     created() {
205
     created() {

+ 82 - 21
src/xt_pages/data/components/dialysisComputer.vue Wyświetl plik

32
 
32
 
33
    
33
    
34
 
34
 
35
-      <el-table-column label="操作" align="center">
35
+       <el-table-column align="center" label="是否必填">
36
+        <template slot-scope="scope">
37
+          <span v-if="scope.row.is_write!=undefined &&scope.row.is_write == 1">是</span>
38
+          <span v-if="scope.row.is_write!=undefined &&scope.row.is_write == 0">否</span>
39
+        </template>
40
+      </el-table-column>
41
+
42
+
43
+       <el-table-column label="操作" align="center">
36
         <template slot-scope="scope">
44
         <template slot-scope="scope">
37
-          <el-tooltip
38
-            class="item"
39
-            effect="dark"
40
-            content="不展示"
41
-            placement="top"
42
-            v-if="scope.row.is_show == 1"
43
-          >
44
             <el-button
45
             <el-button
46
+              v-if="scope.row.is_show == 1"
45
               size="small"
47
               size="small"
46
               type="danger"
48
               type="danger"
47
               icon="el-icon-remove-outline"
49
               icon="el-icon-remove-outline"
48
               @click="handleHide(scope.$index, scope.row)"
50
               @click="handleHide(scope.$index, scope.row)"
49
             >
51
             >
50
             </el-button>
52
             </el-button>
51
-          </el-tooltip>
52
-
53
-          <el-tooltip
54
-            class="item"
55
-            effect="dark"
56
-            content="展示"
57
-            placement="top"
58
-            v-if="scope.row.is_show == 2"
59
-          >
60
             <el-button
53
             <el-button
54
+              v-if="scope.row.is_write!=undefined&&scope.row.is_write == 1"
55
+              size="small"
56
+              type="danger"
57
+              icon="el-icon-remove-outline"
58
+              @click="handleHideOne(scope.$index, scope.row)"
59
+            >
60
+            </el-button>
61
+
62
+             <el-button
63
+              v-if="scope.row.is_show == 2"
61
               size="small"
64
               size="small"
62
               type="primary"
65
               type="primary"
63
               icon="el-icon-view"
66
               icon="el-icon-view"
64
               @click="handleShow(scope.$index, scope.row)"
67
               @click="handleShow(scope.$index, scope.row)"
65
             >
68
             >
66
             </el-button>
69
             </el-button>
67
-          </el-tooltip>
70
+            <el-button
71
+              v-if="scope.row.is_write!=undefined&&scope.row.is_write == 0"
72
+              size="small"
73
+              type="primary"
74
+              icon="el-icon-view"
75
+              @click="handleShowOne(scope.$index, scope.row)"
76
+            >
77
+            </el-button>
68
         </template>
78
         </template>
69
       </el-table-column>
79
       </el-table-column>
70
     </el-table>
80
     </el-table>
91
           type: "warning"
101
           type: "warning"
92
         })
102
         })
93
           .then(() => {
103
           .then(() => {
94
-            updateFieldIsShow(row.id, 2,0).then(response => {
104
+            updateFieldIsShow(row.id, 2,row.is_write).then(response => {
95
               if (response.data.state == 1) {
105
               if (response.data.state == 1) {
96
                 let params = {
106
                 let params = {
97
                   id: response.data.data.id,
107
                   id: response.data.data.id,
115
           type: "warning"
125
           type: "warning"
116
         })
126
         })
117
           .then(() => {
127
           .then(() => {
118
-            updateFieldIsShow(row.id, 1,1).then(response => {
128
+            updateFieldIsShow(row.id, 1,row.is_write).then(response => {
119
               if (response.data.state == 1) {
129
               if (response.data.state == 1) {
120
                 let params = {
130
                 let params = {
121
                   id: response.data.data.id,
131
                   id: response.data.data.id,
131
             });
141
             });
132
           })
142
           })
133
           .catch(() => {});
143
           .catch(() => {});
134
-      }
144
+      },
145
+
146
+     handleHideOne: function(index, row) {
147
+      this.$confirm("是否将该字段设为不必填?", "提示", {
148
+        confirmButtonText: "确 定",
149
+        cancelButtonText: "取 消",
150
+        type: "warning"
151
+      }).then(() => {
152
+          updateFieldIsShow(row.id,row.is_show,0).then(response => {
153
+          
154
+            if (response.data.state == 1) {
155
+              this.is_write = response.data.data.is_write
156
+              let params = {
157
+                id: response.data.data.id,
158
+                is_show: response.data.data.is_show,
159
+                is_write:response.data.data.is_write,
160
+              };
161
+              store.dispatch("updateFiledConfigList", params).then(() => {});
162
+              this.$emit("change", params);
163
+            }
164
+          });
165
+          this.$message({
166
+            type: "success",
167
+            message: "设置成功!"
168
+          });
169
+        }).catch(() => {});
170
+    },
171
+  
172
+    handleShowOne: function(index, row) {
173
+      this.$confirm("是否将该字段设为必填?", "提示", {
174
+        confirmButtonText: "确 定",
175
+        cancelButtonText: "取 消",
176
+        type: "warning"
177
+      }).then(() => {
178
+          updateFieldIsShow(row.id,row.is_show,1).then(response => {
179
+            if (response.data.state == 1) {
180
+              this.is_write = response.data.data.is_write
181
+              let params = {
182
+                id: response.data.data.id,
183
+                is_show: response.data.data.is_show,
184
+                is_write:response.data.data.is_write,
185
+              };
186
+              store.dispatch("updateFiledConfigList", params).then(() => {});
187
+              this.$emit("change", params);
188
+            }
189
+          });
190
+          this.$message({
191
+            type: "success",
192
+            message: "设置成功!"
193
+          });
194
+        }).catch(() => {});
195
+    }
135
     },
196
     },
136
     watch: {
197
     watch: {
137
 
198
 

+ 81 - 20
src/xt_pages/data/components/dialysisMonitor.vue Wyświetl plik

30
         </template>
30
         </template>
31
       </el-table-column>
31
       </el-table-column>
32
 
32
 
33
-      <el-table-column label="操作" align="center">
33
+     <el-table-column align="center" label="是否必填">
34
+        <template slot-scope="scope">
35
+          <span v-if="scope.row.is_write!=undefined &&scope.row.is_write == 1">是</span>
36
+          <span v-if="scope.row.is_write!=undefined &&scope.row.is_write == 0">否</span>
37
+        </template>
38
+      </el-table-column>
39
+
40
+
41
+       <el-table-column label="操作" align="center">
34
         <template slot-scope="scope">
42
         <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
             <el-button
44
+              v-if="scope.row.is_show == 1"
43
               size="small"
45
               size="small"
44
               type="danger"
46
               type="danger"
45
               icon="el-icon-remove-outline"
47
               icon="el-icon-remove-outline"
46
               @click="handleHide(scope.$index, scope.row)"
48
               @click="handleHide(scope.$index, scope.row)"
47
             >
49
             >
48
             </el-button>
50
             </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
51
             <el-button
52
+              v-if="scope.row.is_write!=undefined&&scope.row.is_write == 1"
53
+              size="small"
54
+              type="danger"
55
+              icon="el-icon-remove-outline"
56
+              @click="handleHideOne(scope.$index, scope.row)"
57
+            >
58
+            </el-button>
59
+
60
+             <el-button
61
+              v-if="scope.row.is_show == 2"
59
               size="small"
62
               size="small"
60
               type="primary"
63
               type="primary"
61
               icon="el-icon-view"
64
               icon="el-icon-view"
62
               @click="handleShow(scope.$index, scope.row)"
65
               @click="handleShow(scope.$index, scope.row)"
63
             >
66
             >
64
             </el-button>
67
             </el-button>
65
-          </el-tooltip>
68
+            <el-button
69
+              v-if="scope.row.is_write!=undefined&&scope.row.is_write == 0"
70
+              size="small"
71
+              type="primary"
72
+              icon="el-icon-view"
73
+              @click="handleShowOne(scope.$index, scope.row)"
74
+            >
75
+            </el-button>
66
         </template>
76
         </template>
67
       </el-table-column>
77
       </el-table-column>
68
     </el-table>
78
     </el-table>
89
         type: "warning"
99
         type: "warning"
90
       })
100
       })
91
         .then(() => {
101
         .then(() => {
92
-          updateFieldIsShow(row.id, 2,0).then(response => {
102
+          updateFieldIsShow(row.id, 2,row.is_write).then(response => {
93
             if (response.data.state == 1) {
103
             if (response.data.state == 1) {
94
               let params = {
104
               let params = {
95
                 id: response.data.data.id,
105
                 id: response.data.data.id,
113
         type: "warning"
123
         type: "warning"
114
       })
124
       })
115
         .then(() => {
125
         .then(() => {
116
-          updateFieldIsShow(row.id, 1,1).then(response => {
126
+          updateFieldIsShow(row.id, 1,row.is_write).then(response => {
117
             if (response.data.state == 1) {
127
             if (response.data.state == 1) {
118
               let params = {
128
               let params = {
119
                 id: response.data.data.id,
129
                 id: response.data.data.id,
129
           });
139
           });
130
         })
140
         })
131
         .catch(() => {});
141
         .catch(() => {});
142
+    },
143
+
144
+    handleHideOne: function(index, row) {
145
+      this.$confirm("是否将该字段设为不必填?", "提示", {
146
+        confirmButtonText: "确 定",
147
+        cancelButtonText: "取 消",
148
+        type: "warning"
149
+      }).then(() => {
150
+          updateFieldIsShow(row.id,row.is_show,0).then(response => {
151
+          
152
+            if (response.data.state == 1) {
153
+              this.is_write = response.data.data.is_write
154
+              let params = {
155
+                id: response.data.data.id,
156
+                is_show: response.data.data.is_show,
157
+                is_write:response.data.data.is_write,
158
+              };
159
+              store.dispatch("updateFiledConfigList", params).then(() => {});
160
+              this.$emit("change", params);
161
+            }
162
+          });
163
+          this.$message({
164
+            type: "success",
165
+            message: "设置成功!"
166
+          });
167
+        }).catch(() => {});
168
+    },
169
+  
170
+    handleShowOne: function(index, row) {
171
+      this.$confirm("是否将该字段设为必填?", "提示", {
172
+        confirmButtonText: "确 定",
173
+        cancelButtonText: "取 消",
174
+        type: "warning"
175
+      }).then(() => {
176
+          updateFieldIsShow(row.id,row.is_show,1).then(response => {
177
+            if (response.data.state == 1) {
178
+              this.is_write = response.data.data.is_write
179
+              let params = {
180
+                id: response.data.data.id,
181
+                is_show: response.data.data.is_show,
182
+                is_write:response.data.data.is_write,
183
+              };
184
+              store.dispatch("updateFiledConfigList", params).then(() => {});
185
+              this.$emit("change", params);
186
+            }
187
+          });
188
+          this.$message({
189
+            type: "success",
190
+            message: "设置成功!"
191
+          });
192
+        }).catch(() => {});
132
     }
193
     }
133
   }
194
   }
134
 };
195
 };

+ 0 - 65
src/xt_pages/data/components/dialysisOff.vue Wyświetl plik

72
               @click="handleShowOne(scope.$index, scope.row)"
72
               @click="handleShowOne(scope.$index, scope.row)"
73
             >
73
             >
74
             </el-button>
74
             </el-button>
75
-          <!-- <el-tooltip
76
-            class="item"
77
-            effect="dark"
78
-            content="不展示"
79
-            placement="top"
80
-            v-if="scope.row.is_show == 1"
81
-          >
82
-            <el-button
83
-              size="small"
84
-              type="danger"
85
-              icon="el-icon-remove-outline"
86
-              @click="handleHide(scope.$index, scope.row)"
87
-            >
88
-            </el-button>
89
-          </el-tooltip>
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
-
107
-          <el-tooltip
108
-            class="item"
109
-            effect="dark"
110
-            content="展示"
111
-            placement="top"
112
-            v-if="scope.row.is_show == 2"
113
-          >
114
-            <el-button
115
-              size="small"
116
-              type="primary"
117
-              icon="el-icon-view"
118
-              @click="handleShow(scope.$index, scope.row)"
119
-            >
120
-            </el-button>
121
-           
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> -->
140
         </template>
75
         </template>
141
       </el-table-column>
76
       </el-table-column>
142
     </el-table>
77
     </el-table>

+ 86 - 19
src/xt_pages/data/components/dialysisPrescription.vue Wyświetl plik

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!=undefined &&scope.row.is_write == 1">是</span>
36
+          <span v-if="scope.row.is_write!=undefined &&scope.row.is_write == 0">否</span>
37
+        </template>
38
+      </el-table-column>
39
+
40
+    
33
       <el-table-column label="操作" align="center">
41
       <el-table-column label="操作" align="center">
34
         <template slot-scope="scope">
42
         <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
             <el-button
44
+              v-if="scope.row.is_show == 1"
43
               size="small"
45
               size="small"
44
               type="danger"
46
               type="danger"
45
               icon="el-icon-remove-outline"
47
               icon="el-icon-remove-outline"
46
               @click="handleHide(scope.$index, scope.row)"
48
               @click="handleHide(scope.$index, scope.row)"
47
             >
49
             >
48
             </el-button>
50
             </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
51
             <el-button
52
+              v-if="scope.row.is_write!=undefined&&scope.row.is_write == 1"
53
+              size="small"
54
+              type="danger"
55
+              icon="el-icon-remove-outline"
56
+              @click="handleHideOne(scope.$index, scope.row)"
57
+            >
58
+            </el-button>
59
+
60
+             <el-button
61
+              v-if="scope.row.is_show == 2"
59
               size="small"
62
               size="small"
60
               type="primary"
63
               type="primary"
61
               icon="el-icon-view"
64
               icon="el-icon-view"
62
               @click="handleShow(scope.$index, scope.row)"
65
               @click="handleShow(scope.$index, scope.row)"
63
             >
66
             >
64
             </el-button>
67
             </el-button>
65
-          </el-tooltip>
68
+            <el-button
69
+              v-if="scope.row.is_write!=undefined&&scope.row.is_write == 0"
70
+              size="small"
71
+              type="primary"
72
+              icon="el-icon-view"
73
+              @click="handleShowOne(scope.$index, scope.row)"
74
+            >
75
+            </el-button>
66
         </template>
76
         </template>
67
       </el-table-column>
77
       </el-table-column>
68
     </el-table>
78
     </el-table>
89
         type: "warning"
99
         type: "warning"
90
       })
100
       })
91
         .then(() => {
101
         .then(() => {
92
-          updateFieldIsShow(row.id, 2,0).then(response => {
102
+          updateFieldIsShow(row.id, 2,row.is_write).then(response => {
93
             if (response.data.state == 1) {
103
             if (response.data.state == 1) {
94
               let params = {
104
               let params = {
95
                 id: response.data.data.id,
105
                 id: response.data.data.id,
113
         type: "warning"
123
         type: "warning"
114
       })
124
       })
115
         .then(() => {
125
         .then(() => {
116
-          updateFieldIsShow(row.id, 1,1).then(response => {
126
+          updateFieldIsShow(row.id, 1,row.is_write).then(response => {
117
             if (response.data.state == 1) {
127
             if (response.data.state == 1) {
118
               let params = {
128
               let params = {
119
                 id: response.data.data.id,
129
                 id: response.data.data.id,
129
           });
139
           });
130
         })
140
         })
131
         .catch(() => {});
141
         .catch(() => {});
142
+    },
143
+    handleHideOne: function(index, row) {
144
+      this.$confirm("是否将该字段设为不必填?", "提示", {
145
+        confirmButtonText: "确 定",
146
+        cancelButtonText: "取 消",
147
+        type: "warning"
148
+      })
149
+        .then(() => {
150
+          updateFieldIsShow(row.id,row.is_show,0).then(response => {
151
+          
152
+            if (response.data.state == 1) {
153
+              this.is_write = response.data.data.is_write
154
+              let params = {
155
+                id: response.data.data.id,
156
+                is_show: response.data.data.is_show,
157
+                is_write:response.data.data.is_write,
158
+              };
159
+              store.dispatch("updateFiledConfigList", params).then(() => {});
160
+              this.$emit("change", params);
161
+            }
162
+          });
163
+          this.$message({
164
+            type: "success",
165
+            message: "设置成功!"
166
+          });
167
+        })
168
+        .catch(() => {});
169
+    },
170
+  
171
+    handleShowOne: function(index, row) {
172
+      this.$confirm("是否将该字段设为必填?", "提示", {
173
+        confirmButtonText: "确 定",
174
+        cancelButtonText: "取 消",
175
+        type: "warning"
176
+      }).then(() => {
177
+         
178
+          updateFieldIsShow(row.id,row.is_show,1).then(response => {
179
+            if (response.data.state == 1) {
180
+              this.is_write = response.data.data.is_write
181
+              let params = {
182
+                id: response.data.data.id,
183
+                is_show: response.data.data.is_show,
184
+                is_write:response.data.data.is_write,
185
+              };
186
+              store.dispatch("updateFiledConfigList", params).then(() => {});
187
+              this.$emit("change", params);
188
+            }
189
+          });
190
+          this.$message({
191
+            type: "success",
192
+            message: "设置成功!"
193
+          });
194
+        })
195
+        .catch(() => {});
132
     }
196
     }
197
+  },
198
+ created(){
199
+    console.log("dialysis_prescription_data",this.dialysis_prescription_data)
133
   }
200
   }
134
 };
201
 };
135
 </script>
202
 </script>

+ 81 - 19
src/xt_pages/data/components/dialysisSummary.vue Wyświetl plik

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!=undefined &&scope.row.is_write == 1">是</span>
36
+          <span v-if="scope.row.is_write!=undefined &&scope.row.is_write == 0">否</span>
37
+        </template>
38
+      </el-table-column>
39
+
40
+
33
       <el-table-column label="操作" align="center">
41
       <el-table-column label="操作" align="center">
34
         <template slot-scope="scope">
42
         <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
             <el-button
44
+              v-if="scope.row.is_show == 1"
43
               size="small"
45
               size="small"
44
               type="danger"
46
               type="danger"
45
               icon="el-icon-remove-outline"
47
               icon="el-icon-remove-outline"
46
               @click="handleHide(scope.$index, scope.row)"
48
               @click="handleHide(scope.$index, scope.row)"
47
             >
49
             >
48
             </el-button>
50
             </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
51
             <el-button
52
+              v-if="scope.row.is_write!=undefined&&scope.row.is_write == 1"
53
+              size="small"
54
+              type="danger"
55
+              icon="el-icon-remove-outline"
56
+              @click="handleHideOne(scope.$index, scope.row)"
57
+            >
58
+            </el-button>
59
+
60
+             <el-button
61
+              v-if="scope.row.is_show == 2"
59
               size="small"
62
               size="small"
60
               type="primary"
63
               type="primary"
61
               icon="el-icon-view"
64
               icon="el-icon-view"
62
               @click="handleShow(scope.$index, scope.row)"
65
               @click="handleShow(scope.$index, scope.row)"
63
             >
66
             >
64
             </el-button>
67
             </el-button>
65
-          </el-tooltip>
68
+            <el-button
69
+              v-if="scope.row.is_write!=undefined&&scope.row.is_write == 0"
70
+              size="small"
71
+              type="primary"
72
+              icon="el-icon-view"
73
+              @click="handleShowOne(scope.$index, scope.row)"
74
+            >
75
+            </el-button>
66
         </template>
76
         </template>
67
       </el-table-column>
77
       </el-table-column>
68
     </el-table>
78
     </el-table>
89
         type: "warning"
99
         type: "warning"
90
       })
100
       })
91
         .then(() => {
101
         .then(() => {
92
-          updateFieldIsShow(row.id, 2,0).then(response => {
102
+          updateFieldIsShow(row.id, 2,row.is_write).then(response => {
93
             if (response.data.state == 1) {
103
             if (response.data.state == 1) {
94
               let params = {
104
               let params = {
95
                 id: response.data.data.id,
105
                 id: response.data.data.id,
113
         type: "warning"
123
         type: "warning"
114
       })
124
       })
115
         .then(() => {
125
         .then(() => {
116
-          updateFieldIsShow(row.id, 1,1).then(response => {
126
+          updateFieldIsShow(row.id, 1,row.is_write).then(response => {
117
             if (response.data.state == 1) {
127
             if (response.data.state == 1) {
118
               let params = {
128
               let params = {
119
                 id: response.data.data.id,
129
                 id: response.data.data.id,
129
           });
139
           });
130
         })
140
         })
131
         .catch(() => {});
141
         .catch(() => {});
142
+    },
143
+
144
+
145
+    handleHideOne: function(index, row) {
146
+      this.$confirm("是否将该字段设为不必填?", "提示", {
147
+        confirmButtonText: "确 定",
148
+        cancelButtonText: "取 消",
149
+        type: "warning"
150
+      }).then(() => {
151
+          updateFieldIsShow(row.id,row.is_show,0).then(response => {
152
+          
153
+            if (response.data.state == 1) {
154
+              this.is_write = response.data.data.is_write
155
+              let params = {
156
+                id: response.data.data.id,
157
+                is_show: response.data.data.is_show,
158
+                is_write:response.data.data.is_write,
159
+              };
160
+              store.dispatch("updateFiledConfigList", params).then(() => {});
161
+              this.$emit("change", params);
162
+            }
163
+          });
164
+          this.$message({
165
+            type: "success",
166
+            message: "设置成功!"
167
+          });
168
+        }).catch(() => {});
169
+    },
170
+  
171
+    handleShowOne: function(index, row) {
172
+      this.$confirm("是否将该字段设为必填?", "提示", {
173
+        confirmButtonText: "确 定",
174
+        cancelButtonText: "取 消",
175
+        type: "warning"
176
+      }).then(() => {
177
+          updateFieldIsShow(row.id,row.is_show,1).then(response => {
178
+            if (response.data.state == 1) {
179
+              this.is_write = response.data.data.is_write
180
+              let params = {
181
+                id: response.data.data.id,
182
+                is_show: response.data.data.is_show,
183
+                is_write:response.data.data.is_write,
184
+              };
185
+              store.dispatch("updateFiledConfigList", params).then(() => {});
186
+              this.$emit("change", params);
187
+            }
188
+          });
189
+          this.$message({
190
+            type: "success",
191
+            message: "设置成功!"
192
+          });
193
+        }).catch(() => {});
132
     }
194
     }
133
   },
195
   },
134
     watch: {
196
     watch: {

+ 84 - 24
src/xt_pages/data/components/doubleCheck.vue Wyświetl plik

30
         </template>
30
         </template>
31
       </el-table-column>
31
       </el-table-column>
32
 
32
 
33
-      <el-table-column label="操作" align="center">
33
+      <el-table-column align="center" label="是否必填">
34
+        <template slot-scope="scope">
35
+          <span v-if="scope.row.is_write!=undefined &&scope.row.is_write == 1">是</span>
36
+          <span v-if="scope.row.is_write!=undefined &&scope.row.is_write == 0">否</span>
37
+        </template>
38
+      </el-table-column>
39
+
40
+
41
+       <el-table-column label="操作" align="center">
34
         <template slot-scope="scope">
42
         <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
             <el-button
44
+              v-if="scope.row.is_show == 1"
43
               size="small"
45
               size="small"
44
               type="danger"
46
               type="danger"
45
               icon="el-icon-remove-outline"
47
               icon="el-icon-remove-outline"
46
               @click="handleHide(scope.$index, scope.row)"
48
               @click="handleHide(scope.$index, scope.row)"
47
             >
49
             >
48
             </el-button>
50
             </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
51
             <el-button
52
+              v-if="scope.row.is_write!=undefined&&scope.row.is_write == 1"
53
+              size="small"
54
+              type="danger"
55
+              icon="el-icon-remove-outline"
56
+              @click="handleHideOne(scope.$index, scope.row)"
57
+            >
58
+            </el-button>
59
+
60
+             <el-button
61
+              v-if="scope.row.is_show == 2"
59
               size="small"
62
               size="small"
60
               type="primary"
63
               type="primary"
61
               icon="el-icon-view"
64
               icon="el-icon-view"
62
               @click="handleShow(scope.$index, scope.row)"
65
               @click="handleShow(scope.$index, scope.row)"
63
             >
66
             >
64
             </el-button>
67
             </el-button>
65
-          </el-tooltip>
68
+            <el-button
69
+              v-if="scope.row.is_write!=undefined&&scope.row.is_write == 0"
70
+              size="small"
71
+              type="primary"
72
+              icon="el-icon-view"
73
+              @click="handleShowOne(scope.$index, scope.row)"
74
+            >
75
+            </el-button>
66
         </template>
76
         </template>
67
       </el-table-column>
77
       </el-table-column>
68
     </el-table>
78
     </el-table>
89
         type: "warning"
99
         type: "warning"
90
       })
100
       })
91
         .then(() => {
101
         .then(() => {
92
-          updateFieldIsShow(row.id, 2,0).then(response => {
102
+          updateFieldIsShow(row.id, 2,row.is_write).then(response => {
93
             if (response.data.state == 1) {
103
             if (response.data.state == 1) {
94
               let params = {
104
               let params = {
95
                 id: response.data.data.id,
105
                 id: response.data.data.id,
103
             type: "success",
113
             type: "success",
104
             message: "设置成功!"
114
             message: "设置成功!"
105
           });
115
           });
106
-        })
107
-        .catch(() => {});
116
+        }).catch(() => {});
108
     },
117
     },
109
     handleShow: function(index, row) {
118
     handleShow: function(index, row) {
110
       this.$confirm("是否将该字段设为可见?", "提示", {
119
       this.$confirm("是否将该字段设为可见?", "提示", {
112
         cancelButtonText: "取 消",
121
         cancelButtonText: "取 消",
113
         type: "warning"
122
         type: "warning"
114
       }).then(() => {
123
       }).then(() => {
115
-          updateFieldIsShow(row.id, 1,1).then(response => {
124
+          updateFieldIsShow(row.id, 1,row.is_write).then(response => {
116
             if (response.data.state == 1) {
125
             if (response.data.state == 1) {
117
               let params = {
126
               let params = {
118
                 id: response.data.data.id,
127
                 id: response.data.data.id,
126
             type: "success",
135
             type: "success",
127
             message: "设置成功!"
136
             message: "设置成功!"
128
           });
137
           });
129
-        })
130
-        .catch(() => {});
138
+        }).catch(() => {});
139
+    },
140
+
141
+
142
+    handleHideOne: function(index, row) {
143
+      this.$confirm("是否将该字段设为不必填?", "提示", {
144
+        confirmButtonText: "确 定",
145
+        cancelButtonText: "取 消",
146
+        type: "warning"
147
+      }).then(() => {
148
+          updateFieldIsShow(row.id,row.is_show,0).then(response => {
149
+          
150
+            if (response.data.state == 1) {
151
+              this.is_write = response.data.data.is_write
152
+              let params = {
153
+                id: response.data.data.id,
154
+                is_show: response.data.data.is_show,
155
+                is_write:response.data.data.is_write,
156
+              };
157
+              store.dispatch("updateFiledConfigList", params).then(() => {});
158
+              this.$emit("change", params);
159
+            }
160
+          });
161
+          this.$message({
162
+            type: "success",
163
+            message: "设置成功!"
164
+          });
165
+        }).catch(() => {});
166
+    },
167
+  
168
+    handleShowOne: function(index, row) {
169
+      this.$confirm("是否将该字段设为必填?", "提示", {
170
+        confirmButtonText: "确 定",
171
+        cancelButtonText: "取 消",
172
+        type: "warning"
173
+      }).then(() => {
174
+          updateFieldIsShow(row.id,row.is_show,1).then(response => {
175
+            if (response.data.state == 1) {
176
+              this.is_write = response.data.data.is_write
177
+              let params = {
178
+                id: response.data.data.id,
179
+                is_show: response.data.data.is_show,
180
+                is_write:response.data.data.is_write,
181
+              };
182
+              store.dispatch("updateFiledConfigList", params).then(() => {});
183
+              this.$emit("change", params);
184
+            }
185
+          });
186
+          this.$message({
187
+            type: "success",
188
+            message: "设置成功!"
189
+          });
190
+        }).catch(() => {});
131
     }
191
     }
132
   },
192
   },
133
  
193
  

+ 85 - 20
src/xt_pages/data/components/receiveTreatmentAsses.vue Wyświetl plik

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!=undefined &&scope.row.is_write == 1">是</span>
36
+          <span v-if="scope.row.is_write!=undefined &&scope.row.is_write == 0">否</span>
37
+        </template>
38
+      </el-table-column>
39
+
40
+        
33
       <el-table-column label="操作" align="center">
41
       <el-table-column label="操作" align="center">
34
         <template slot-scope="scope">
42
         <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
             <el-button
44
+              v-if="scope.row.is_show == 1"
43
               size="small"
45
               size="small"
44
               type="danger"
46
               type="danger"
45
               icon="el-icon-remove-outline"
47
               icon="el-icon-remove-outline"
46
               @click="handleHide(scope.$index, scope.row)"
48
               @click="handleHide(scope.$index, scope.row)"
47
             >
49
             >
48
             </el-button>
50
             </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
51
             <el-button
52
+              v-if="scope.row.is_write!=undefined&&scope.row.is_write == 1"
53
+              size="small"
54
+              type="danger"
55
+              icon="el-icon-remove-outline"
56
+              @click="handleHideOne(scope.$index, scope.row)"
57
+            >
58
+            </el-button>
59
+
60
+             <el-button
61
+              v-if="scope.row.is_show == 2"
59
               size="small"
62
               size="small"
60
               type="primary"
63
               type="primary"
61
-              icon="el-icon-edit-outline"
64
+              icon="el-icon-view"
62
               @click="handleShow(scope.$index, scope.row)"
65
               @click="handleShow(scope.$index, scope.row)"
63
             >
66
             >
64
             </el-button>
67
             </el-button>
65
-          </el-tooltip>
68
+            <el-button
69
+              v-if="scope.row.is_write!=undefined&&scope.row.is_write == 0"
70
+              size="small"
71
+              type="primary"
72
+              icon="el-icon-view"
73
+              @click="handleShowOne(scope.$index, scope.row)"
74
+            >
75
+            </el-button>
66
         </template>
76
         </template>
67
       </el-table-column>
77
       </el-table-column>
68
     </el-table>
78
     </el-table>
88
         type: "warning"
98
         type: "warning"
89
       })
99
       })
90
         .then(() => {
100
         .then(() => {
91
-          updateFieldIsShow(row.id, 2,0).then(response => {
101
+          updateFieldIsShow(row.id, 2,row.is_write).then(response => {
92
             if (response.data.state == 1) {
102
             if (response.data.state == 1) {
93
               let params = {
103
               let params = {
94
                 id: response.data.data.id,
104
                 id: response.data.data.id,
112
         type: "warning"
122
         type: "warning"
113
       })
123
       })
114
         .then(() => {
124
         .then(() => {
115
-          updateFieldIsShow(row.id, 1,1).then(response => {
125
+          updateFieldIsShow(row.id, 1,row.is_write).then(response => {
116
             if (response.data.state == 1) {
126
             if (response.data.state == 1) {
117
               let params = {
127
               let params = {
118
                 id: response.data.data.id,
128
                 id: response.data.data.id,
128
           });
138
           });
129
         })
139
         })
130
         .catch(() => {});
140
         .catch(() => {});
141
+    },
142
+
143
+    handleHideOne: function(index, row) {
144
+      this.$confirm("是否将该字段设为不必填?", "提示", {
145
+        confirmButtonText: "确 定",
146
+        cancelButtonText: "取 消",
147
+        type: "warning"
148
+      })
149
+        .then(() => {
150
+          updateFieldIsShow(row.id,row.is_show,0).then(response => {
151
+          
152
+            if (response.data.state == 1) {
153
+              this.is_write = response.data.data.is_write
154
+              let params = {
155
+                id: response.data.data.id,
156
+                is_show: response.data.data.is_show,
157
+                is_write:response.data.data.is_write,
158
+              };
159
+              store.dispatch("updateFiledConfigList", params).then(() => {});
160
+              this.$emit("change", params);
161
+            }
162
+          });
163
+          this.$message({
164
+            type: "success",
165
+            message: "设置成功!"
166
+          });
167
+        })
168
+        .catch(() => {});
169
+    },
170
+  
171
+    handleShowOne: function(index, row) {
172
+      this.$confirm("是否将该字段设为必填?", "提示", {
173
+        confirmButtonText: "确 定",
174
+        cancelButtonText: "取 消",
175
+        type: "warning"
176
+      }).then(() => {
177
+         
178
+          updateFieldIsShow(row.id,row.is_show,1).then(response => {
179
+            if (response.data.state == 1) {
180
+              this.is_write = response.data.data.is_write
181
+              let params = {
182
+                id: response.data.data.id,
183
+                is_show: response.data.data.is_show,
184
+                is_write:response.data.data.is_write,
185
+              };
186
+              store.dispatch("updateFiledConfigList", params).then(() => {});
187
+              this.$emit("change", params);
188
+            }
189
+          });
190
+          this.$message({
191
+            type: "success",
192
+            message: "设置成功!"
193
+          });
194
+        })
195
+        .catch(() => {});
131
     }
196
     }
132
   }
197
   }
133
 };
198
 };

+ 25 - 1
src/xt_pages/data/showConfig.vue Wyświetl plik

122
       for (let i = 0; i < this.dialysis_prescription_data.length; i++) {
122
       for (let i = 0; i < this.dialysis_prescription_data.length; i++) {
123
         if (this.dialysis_prescription_data[i].id == object.id) {
123
         if (this.dialysis_prescription_data[i].id == object.id) {
124
           this.dialysis_prescription_data[i].is_show = object.is_show;
124
           this.dialysis_prescription_data[i].is_show = object.is_show;
125
+           if(object.is_write!=undefined){
126
+           this.dialysis_prescription_data[i].is_write = object.is_write
127
+          }
125
         }
128
         }
126
       }
129
       }
127
     },
130
     },
129
       for (let i = 0; i < this.receive_treatment_asses_data.length; i++) {
132
       for (let i = 0; i < this.receive_treatment_asses_data.length; i++) {
130
         if (this.receive_treatment_asses_data[i].id == object.id) {
133
         if (this.receive_treatment_asses_data[i].id == object.id) {
131
           this.receive_treatment_asses_data[i].is_show = object.is_show;
134
           this.receive_treatment_asses_data[i].is_show = object.is_show;
135
+           if(object.is_write!=undefined){
136
+           this.receive_treatment_asses_data[i].is_write = object.is_write
137
+          }
132
         }
138
         }
133
       }
139
       }
134
     },
140
     },
136
       for (let i = 0; i < this.dialysis_before_data.length; i++) {
142
       for (let i = 0; i < this.dialysis_before_data.length; i++) {
137
         if (this.dialysis_before_data[i].id == object.id) {
143
         if (this.dialysis_before_data[i].id == object.id) {
138
           this.dialysis_before_data[i].is_show = object.is_show;
144
           this.dialysis_before_data[i].is_show = object.is_show;
145
+           if(object.is_write!=undefined){
146
+           this.dialysis_before_data[i].is_write = object.is_write
147
+          }
139
         }
148
         }
140
       }
149
       }
141
     },changeComputerData:function(object){
150
     },changeComputerData:function(object){
142
       for (let i = 0; i < this.dialysis_computer_data.length; i++) {
151
       for (let i = 0; i < this.dialysis_computer_data.length; i++) {
143
         if (this.dialysis_computer_data[i].id == object.id) {
152
         if (this.dialysis_computer_data[i].id == object.id) {
144
           this.dialysis_computer_data[i].is_show = object.is_show;
153
           this.dialysis_computer_data[i].is_show = object.is_show;
154
+           if(object.is_write!=undefined){
155
+           this.dialysis_computer_data[i].is_write = object.is_write
156
+          }
145
         }
157
         }
146
       }
158
       }
147
     },
159
     },
149
       for (let i = 0; i < this.dialysis_monitor_data.length; i++) {
161
       for (let i = 0; i < this.dialysis_monitor_data.length; i++) {
150
         if (this.dialysis_monitor_data[i].id == object.id) {
162
         if (this.dialysis_monitor_data[i].id == object.id) {
151
           this.dialysis_monitor_data[i].is_show = object.is_show;
163
           this.dialysis_monitor_data[i].is_show = object.is_show;
164
+           if(object.is_write!=undefined){
165
+           this.dialysis_monitor_data[i].is_write = object.is_write
166
+          }
152
         }
167
         }
153
       }
168
       }
154
     },
169
     },
156
       for (let i = 0; i < this.dialysis_after_data.length; i++) {
171
       for (let i = 0; i < this.dialysis_after_data.length; i++) {
157
         if (this.dialysis_after_data[i].id == object.id) {
172
         if (this.dialysis_after_data[i].id == object.id) {
158
           this.dialysis_after_data[i].is_show = object.is_show;
173
           this.dialysis_after_data[i].is_show = object.is_show;
174
+           if(object.is_write!=undefined){
175
+           this.dialysis_after_data[i].is_write = object.is_write
176
+          }
159
         }
177
         }
160
       }
178
       }
161
     },
179
     },
163
       for (let i = 0; i < this.dialysis_summary_data.length; i++) {
181
       for (let i = 0; i < this.dialysis_summary_data.length; i++) {
164
         if (this.dialysis_summary_data[i].id == object.id) {
182
         if (this.dialysis_summary_data[i].id == object.id) {
165
           this.dialysis_summary_data[i].is_show = object.is_show;
183
           this.dialysis_summary_data[i].is_show = object.is_show;
184
+           if(object.is_write!=undefined){
185
+           this.dialysis_summary_data[i].is_write = object.is_write
186
+          }
166
         }
187
         }
167
       }
188
       }
168
     },
189
     },
171
      for (let i = 0; i < this.double_check_date.length; i++) {
192
      for (let i = 0; i < this.double_check_date.length; i++) {
172
         if (this.double_check_date[i].id == object.id) {
193
         if (this.double_check_date[i].id == object.id) {
173
           this.double_check_date[i].is_show = object.is_show;
194
           this.double_check_date[i].is_show = object.is_show;
195
+          if(object.is_write!=undefined){
196
+           this.double_check_date[i].is_write = object.is_write
197
+          }
174
         }
198
         }
175
       }
199
       }
176
     },
200
     },
179
      for (let i = 0; i < this.dialysis_off_data.length; i++) {
203
      for (let i = 0; i < this.dialysis_off_data.length; i++) {
180
         if (this.dialysis_off_data[i].id == object.id) {
204
         if (this.dialysis_off_data[i].id == object.id) {
181
           this.dialysis_off_data[i].is_show = object.is_show;
205
           this.dialysis_off_data[i].is_show = object.is_show;
182
-          if(obj.is_write!=undefined){
206
+          if(object.is_write!=undefined){
183
            this.dialysis_off_data[i].is_write = object.is_write
207
            this.dialysis_off_data[i].is_write = object.is_write
184
           }
208
           }
185
           
209
           

+ 11 - 1
src/xt_pages/stock/stockOutOrder.vue Wyświetl plik

387
                </tr>
387
                </tr>
388
             </template>
388
             </template>
389
           </el-table-column>
389
           </el-table-column>
390
-          <el-table-column label="备注" align="center">
390
+         <el-table-column label="备注" align="center" v-if="is_sys == 1">
391
             <template slot-scope="scope">
391
             <template slot-scope="scope">
392
                 <tr style="background: none" v-for="(item,index) in scope.row.childOne" :key="index">
392
                 <tr style="background: none" v-for="(item,index) in scope.row.childOne" :key="index">
393
                   <td style="border-right: none; border-inline-end: none;text-align: center">
393
                   <td style="border-right: none; border-inline-end: none;text-align: center">
395
                   </td>
395
                   </td>
396
                </tr>
396
                </tr>
397
              
397
              
398
+            </template>
399
+          </el-table-column>
400
+          <el-table-column label="备注" align="center" v-if="is_sys == 0">
401
+            <template slot-scope="scope">
402
+               
403
+                  
404
+                   {{scope.row.remark}}
405
+                
406
+              
407
+             
398
             </template>
408
             </template>
399
           </el-table-column>
409
           </el-table-column>
400
           <el-table-column label="操作" align="center">
410
           <el-table-column label="操作" align="center">