XMLWAN 2 年 前
コミット
caae5658c5

+ 82 - 21
src/xt_pages/data/components/dialysisAfter.vue ファイルの表示

@@ -22,47 +22,57 @@
22 22
           <span>{{ scope.row.filed_name }}</span>
23 23
         </template>
24 24
       </el-table-column>
25
-
25
+    
26 26
       <el-table-column align="center" label="是否显示">
27 27
         <template slot-scope="scope">
28 28
           <span v-if="scope.row.is_show == 1">是</span>
29 29
           <span v-if="scope.row.is_show == 2">否</span>
30 30
         </template>
31 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 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 43
             <el-button
44
+              v-if="scope.row.is_show == 1"
43 45
               size="small"
44 46
               type="danger"
45 47
               icon="el-icon-remove-outline"
46 48
               @click="handleHide(scope.$index, scope.row)"
47 49
             >
48 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 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 62
               size="small"
60 63
               type="primary"
61 64
               icon="el-icon-view"
62 65
               @click="handleShow(scope.$index, scope.row)"
63 66
             >
64 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 76
         </template>
67 77
       </el-table-column>
68 78
     </el-table>
@@ -89,7 +99,7 @@ export default {
89 99
         type: "warning"
90 100
       })
91 101
         .then(() => {
92
-          updateFieldIsShow(row.id, 2,0).then(response => {
102
+          updateFieldIsShow(row.id, 2,row.is_write).then(response => {
93 103
             if (response.data.state == 1) {
94 104
               let params = {
95 105
                 id: response.data.data.id,
@@ -113,7 +123,7 @@ export default {
113 123
         type: "warning"
114 124
       })
115 125
         .then(() => {
116
-          updateFieldIsShow(row.id, 1,1).then(response => {
126
+          updateFieldIsShow(row.id, 1,row.is_write).then(response => {
117 127
             if (response.data.state == 1) {
118 128
               let params = {
119 129
                 id: response.data.data.id,
@@ -129,6 +139,57 @@ export default {
129 139
           });
130 140
         })
131 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 ファイルの表示

@@ -30,26 +30,49 @@
30 30
         </template>
31 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 42
         <template slot-scope="scope">
35
-          <el-tooltip class="item" effect="dark" content="不展示" placement="top" v-if="scope.row.is_show == 1">
36 43
             <el-button
44
+              v-if="scope.row.is_show == 1"
37 45
               size="small"
38 46
               type="danger"
39 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 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 68
             <el-button
69
+              v-if="scope.row.is_write!=undefined&&scope.row.is_write == 0"
46 70
               size="small"
47 71
               type="primary"
48 72
               icon="el-icon-view"
49
-              @click="handleShow(scope.$index, scope.row)">
73
+              @click="handleShowOne(scope.$index, scope.row)"
74
+            >
50 75
             </el-button>
51
-          </el-tooltip>
52
-
53 76
         </template>
54 77
       </el-table-column>
55 78
     </el-table>
@@ -77,7 +100,7 @@
77 100
           cancelButtonText: '取 消',
78 101
           type: 'warning'
79 102
         }).then(() => {
80
-          updateFieldIsShow(row.id, 2,0).then(response => {
103
+          updateFieldIsShow(row.id, 2,row.is_write).then(response => {
81 104
             if (response.data.state == 1) {
82 105
               const params = {
83 106
                 id: response.data.data.id,
@@ -103,7 +126,7 @@
103 126
           cancelButtonText: '取 消',
104 127
           type: 'warning'
105 128
         }).then(() => {
106
-          updateFieldIsShow(row.id, 1,1).then(response => {
129
+          updateFieldIsShow(row.id, 1,row.is_write).then(response => {
107 130
             if (response.data.state == 1) {
108 131
               const params = {
109 132
                 id: response.data.data.id,
@@ -122,7 +145,61 @@
122 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 205
     created() {

+ 82 - 21
src/xt_pages/data/components/dialysisComputer.vue ファイルの表示

@@ -32,39 +32,49 @@
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 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 45
             <el-button
46
+              v-if="scope.row.is_show == 1"
45 47
               size="small"
46 48
               type="danger"
47 49
               icon="el-icon-remove-outline"
48 50
               @click="handleHide(scope.$index, scope.row)"
49 51
             >
50 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 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 64
               size="small"
62 65
               type="primary"
63 66
               icon="el-icon-view"
64 67
               @click="handleShow(scope.$index, scope.row)"
65 68
             >
66 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 78
         </template>
69 79
       </el-table-column>
70 80
     </el-table>
@@ -91,7 +101,7 @@
91 101
           type: "warning"
92 102
         })
93 103
           .then(() => {
94
-            updateFieldIsShow(row.id, 2,0).then(response => {
104
+            updateFieldIsShow(row.id, 2,row.is_write).then(response => {
95 105
               if (response.data.state == 1) {
96 106
                 let params = {
97 107
                   id: response.data.data.id,
@@ -115,7 +125,7 @@
115 125
           type: "warning"
116 126
         })
117 127
           .then(() => {
118
-            updateFieldIsShow(row.id, 1,1).then(response => {
128
+            updateFieldIsShow(row.id, 1,row.is_write).then(response => {
119 129
               if (response.data.state == 1) {
120 130
                 let params = {
121 131
                   id: response.data.data.id,
@@ -131,7 +141,58 @@
131 141
             });
132 142
           })
133 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 197
     watch: {
137 198
 

+ 81 - 20
src/xt_pages/data/components/dialysisMonitor.vue ファイルの表示

@@ -30,39 +30,49 @@
30 30
         </template>
31 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 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 43
             <el-button
44
+              v-if="scope.row.is_show == 1"
43 45
               size="small"
44 46
               type="danger"
45 47
               icon="el-icon-remove-outline"
46 48
               @click="handleHide(scope.$index, scope.row)"
47 49
             >
48 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 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 62
               size="small"
60 63
               type="primary"
61 64
               icon="el-icon-view"
62 65
               @click="handleShow(scope.$index, scope.row)"
63 66
             >
64 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 76
         </template>
67 77
       </el-table-column>
68 78
     </el-table>
@@ -89,7 +99,7 @@ export default {
89 99
         type: "warning"
90 100
       })
91 101
         .then(() => {
92
-          updateFieldIsShow(row.id, 2,0).then(response => {
102
+          updateFieldIsShow(row.id, 2,row.is_write).then(response => {
93 103
             if (response.data.state == 1) {
94 104
               let params = {
95 105
                 id: response.data.data.id,
@@ -113,7 +123,7 @@ export default {
113 123
         type: "warning"
114 124
       })
115 125
         .then(() => {
116
-          updateFieldIsShow(row.id, 1,1).then(response => {
126
+          updateFieldIsShow(row.id, 1,row.is_write).then(response => {
117 127
             if (response.data.state == 1) {
118 128
               let params = {
119 129
                 id: response.data.data.id,
@@ -129,6 +139,57 @@ export default {
129 139
           });
130 140
         })
131 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 ファイルの表示

@@ -72,71 +72,6 @@
72 72
               @click="handleShowOne(scope.$index, scope.row)"
73 73
             >
74 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 75
         </template>
141 76
       </el-table-column>
142 77
     </el-table>

+ 86 - 19
src/xt_pages/data/components/dialysisPrescription.vue ファイルの表示

@@ -30,39 +30,49 @@
30 30
         </template>
31 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 41
       <el-table-column label="操作" align="center">
34 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 43
             <el-button
44
+              v-if="scope.row.is_show == 1"
43 45
               size="small"
44 46
               type="danger"
45 47
               icon="el-icon-remove-outline"
46 48
               @click="handleHide(scope.$index, scope.row)"
47 49
             >
48 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 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 62
               size="small"
60 63
               type="primary"
61 64
               icon="el-icon-view"
62 65
               @click="handleShow(scope.$index, scope.row)"
63 66
             >
64 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 76
         </template>
67 77
       </el-table-column>
68 78
     </el-table>
@@ -89,7 +99,7 @@ export default {
89 99
         type: "warning"
90 100
       })
91 101
         .then(() => {
92
-          updateFieldIsShow(row.id, 2,0).then(response => {
102
+          updateFieldIsShow(row.id, 2,row.is_write).then(response => {
93 103
             if (response.data.state == 1) {
94 104
               let params = {
95 105
                 id: response.data.data.id,
@@ -113,7 +123,7 @@ export default {
113 123
         type: "warning"
114 124
       })
115 125
         .then(() => {
116
-          updateFieldIsShow(row.id, 1,1).then(response => {
126
+          updateFieldIsShow(row.id, 1,row.is_write).then(response => {
117 127
             if (response.data.state == 1) {
118 128
               let params = {
119 129
                 id: response.data.data.id,
@@ -129,7 +139,64 @@ export default {
129 139
           });
130 140
         })
131 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 202
 </script>

+ 81 - 19
src/xt_pages/data/components/dialysisSummary.vue ファイルの表示

@@ -30,39 +30,49 @@
30 30
         </template>
31 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 41
       <el-table-column label="操作" align="center">
34 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 43
             <el-button
44
+              v-if="scope.row.is_show == 1"
43 45
               size="small"
44 46
               type="danger"
45 47
               icon="el-icon-remove-outline"
46 48
               @click="handleHide(scope.$index, scope.row)"
47 49
             >
48 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 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 62
               size="small"
60 63
               type="primary"
61 64
               icon="el-icon-view"
62 65
               @click="handleShow(scope.$index, scope.row)"
63 66
             >
64 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 76
         </template>
67 77
       </el-table-column>
68 78
     </el-table>
@@ -89,7 +99,7 @@ export default {
89 99
         type: "warning"
90 100
       })
91 101
         .then(() => {
92
-          updateFieldIsShow(row.id, 2,0).then(response => {
102
+          updateFieldIsShow(row.id, 2,row.is_write).then(response => {
93 103
             if (response.data.state == 1) {
94 104
               let params = {
95 105
                 id: response.data.data.id,
@@ -113,7 +123,7 @@ export default {
113 123
         type: "warning"
114 124
       })
115 125
         .then(() => {
116
-          updateFieldIsShow(row.id, 1,1).then(response => {
126
+          updateFieldIsShow(row.id, 1,row.is_write).then(response => {
117 127
             if (response.data.state == 1) {
118 128
               let params = {
119 129
                 id: response.data.data.id,
@@ -129,6 +139,58 @@ export default {
129 139
           });
130 140
         })
131 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 196
     watch: {

+ 84 - 24
src/xt_pages/data/components/doubleCheck.vue ファイルの表示

@@ -30,39 +30,49 @@
30 30
         </template>
31 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 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 43
             <el-button
44
+              v-if="scope.row.is_show == 1"
43 45
               size="small"
44 46
               type="danger"
45 47
               icon="el-icon-remove-outline"
46 48
               @click="handleHide(scope.$index, scope.row)"
47 49
             >
48 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 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 62
               size="small"
60 63
               type="primary"
61 64
               icon="el-icon-view"
62 65
               @click="handleShow(scope.$index, scope.row)"
63 66
             >
64 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 76
         </template>
67 77
       </el-table-column>
68 78
     </el-table>
@@ -89,7 +99,7 @@ export default {
89 99
         type: "warning"
90 100
       })
91 101
         .then(() => {
92
-          updateFieldIsShow(row.id, 2,0).then(response => {
102
+          updateFieldIsShow(row.id, 2,row.is_write).then(response => {
93 103
             if (response.data.state == 1) {
94 104
               let params = {
95 105
                 id: response.data.data.id,
@@ -103,8 +113,7 @@ export default {
103 113
             type: "success",
104 114
             message: "设置成功!"
105 115
           });
106
-        })
107
-        .catch(() => {});
116
+        }).catch(() => {});
108 117
     },
109 118
     handleShow: function(index, row) {
110 119
       this.$confirm("是否将该字段设为可见?", "提示", {
@@ -112,7 +121,7 @@ export default {
112 121
         cancelButtonText: "取 消",
113 122
         type: "warning"
114 123
       }).then(() => {
115
-          updateFieldIsShow(row.id, 1,1).then(response => {
124
+          updateFieldIsShow(row.id, 1,row.is_write).then(response => {
116 125
             if (response.data.state == 1) {
117 126
               let params = {
118 127
                 id: response.data.data.id,
@@ -126,8 +135,59 @@ export default {
126 135
             type: "success",
127 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 ファイルの表示

@@ -30,39 +30,49 @@
30 30
         </template>
31 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 41
       <el-table-column label="操作" align="center">
34 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 43
             <el-button
44
+              v-if="scope.row.is_show == 1"
43 45
               size="small"
44 46
               type="danger"
45 47
               icon="el-icon-remove-outline"
46 48
               @click="handleHide(scope.$index, scope.row)"
47 49
             >
48 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 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 62
               size="small"
60 63
               type="primary"
61
-              icon="el-icon-edit-outline"
64
+              icon="el-icon-view"
62 65
               @click="handleShow(scope.$index, scope.row)"
63 66
             >
64 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 76
         </template>
67 77
       </el-table-column>
68 78
     </el-table>
@@ -88,7 +98,7 @@ export default {
88 98
         type: "warning"
89 99
       })
90 100
         .then(() => {
91
-          updateFieldIsShow(row.id, 2,0).then(response => {
101
+          updateFieldIsShow(row.id, 2,row.is_write).then(response => {
92 102
             if (response.data.state == 1) {
93 103
               let params = {
94 104
                 id: response.data.data.id,
@@ -112,7 +122,7 @@ export default {
112 122
         type: "warning"
113 123
       })
114 124
         .then(() => {
115
-          updateFieldIsShow(row.id, 1,1).then(response => {
125
+          updateFieldIsShow(row.id, 1,row.is_write).then(response => {
116 126
             if (response.data.state == 1) {
117 127
               let params = {
118 128
                 id: response.data.data.id,
@@ -128,6 +138,61 @@ export default {
128 138
           });
129 139
         })
130 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 ファイルの表示

@@ -122,6 +122,9 @@ export default {
122 122
       for (let i = 0; i < this.dialysis_prescription_data.length; i++) {
123 123
         if (this.dialysis_prescription_data[i].id == object.id) {
124 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,6 +132,9 @@ export default {
129 132
       for (let i = 0; i < this.receive_treatment_asses_data.length; i++) {
130 133
         if (this.receive_treatment_asses_data[i].id == object.id) {
131 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,12 +142,18 @@ export default {
136 142
       for (let i = 0; i < this.dialysis_before_data.length; i++) {
137 143
         if (this.dialysis_before_data[i].id == object.id) {
138 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 150
     },changeComputerData:function(object){
142 151
       for (let i = 0; i < this.dialysis_computer_data.length; i++) {
143 152
         if (this.dialysis_computer_data[i].id == object.id) {
144 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,6 +161,9 @@ export default {
149 161
       for (let i = 0; i < this.dialysis_monitor_data.length; i++) {
150 162
         if (this.dialysis_monitor_data[i].id == object.id) {
151 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,6 +171,9 @@ export default {
156 171
       for (let i = 0; i < this.dialysis_after_data.length; i++) {
157 172
         if (this.dialysis_after_data[i].id == object.id) {
158 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,6 +181,9 @@ export default {
163 181
       for (let i = 0; i < this.dialysis_summary_data.length; i++) {
164 182
         if (this.dialysis_summary_data[i].id == object.id) {
165 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,6 +192,9 @@ export default {
171 192
      for (let i = 0; i < this.double_check_date.length; i++) {
172 193
         if (this.double_check_date[i].id == object.id) {
173 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,7 +203,7 @@ export default {
179 203
      for (let i = 0; i < this.dialysis_off_data.length; i++) {
180 204
         if (this.dialysis_off_data[i].id == object.id) {
181 205
           this.dialysis_off_data[i].is_show = object.is_show;
182
-          if(obj.is_write!=undefined){
206
+          if(object.is_write!=undefined){
183 207
            this.dialysis_off_data[i].is_write = object.is_write
184 208
           }
185 209
           

+ 11 - 1
src/xt_pages/stock/stockOutOrder.vue ファイルの表示

@@ -387,7 +387,7 @@
387 387
                </tr>
388 388
             </template>
389 389
           </el-table-column>
390
-          <el-table-column label="备注" align="center">
390
+         <el-table-column label="备注" align="center" v-if="is_sys == 1">
391 391
             <template slot-scope="scope">
392 392
                 <tr style="background: none" v-for="(item,index) in scope.row.childOne" :key="index">
393 393
                   <td style="border-right: none; border-inline-end: none;text-align: center">
@@ -395,6 +395,16 @@
395 395
                   </td>
396 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 408
             </template>
399 409
           </el-table-column>
400 410
           <el-table-column label="操作" align="center">