浏览代码

设备管理

xiaoming_global 5 年前
父节点
当前提交
7af93c06d6

+ 43 - 162
src/xt_pages/management/components/MultipleForm.vue 查看文件

@@ -1,11 +1,6 @@
1 1
 <template>
2 2
   <div>
3
-    <el-dialog
4
-      title="综合查询"
5
-      :visible.sync="dialogVisible"
6
-      width="95%"
7
-      center
8
-    >
3
+    <el-dialog title="综合查询" :visible.sync="dialogVisible" width="95%" center>
9 4
       <el-form>
10 5
         <el-row :gutter="20">
11 6
           <el-col :span="6">
@@ -72,7 +67,9 @@
72 67
           </el-col>
73 68
           <el-col :span="7">
74 69
             <div class="cell clearfix">
75
-              <label class="title"><span class="name">日期查询</span> : </label>
70
+              <label class="title">
71
+                <span class="name">日期查询</span> :
72
+              </label>
76 73
               <el-date-picker
77 74
                 size="small"
78 75
                 clearable
@@ -85,9 +82,8 @@
85 82
                 align="right"
86 83
                 format="yyyy-MM-dd"
87 84
                 value-format="yyyy-MM-dd"
88
-              >
89
-              </el-date-picker>
90
-              <span class="cellLine"> - </span>
85
+              ></el-date-picker>
86
+              <span class="cellLine">-</span>
91 87
               <el-date-picker
92 88
                 size="small"
93 89
                 clearable
@@ -100,190 +96,78 @@
100 96
                 align="right"
101 97
                 format="yyyy-MM-dd"
102 98
                 value-format="yyyy-MM-dd"
103
-              >
104
-              </el-date-picker>
99
+              ></el-date-picker>
105 100
             </div>
106 101
           </el-col>
107 102
           <el-col :span="5">
108 103
             <el-form-item label="合计:">
109 104
               故障次数
110
-              <span>{{ failure_times }}</span
111
-              >次
105
+              <span>{{ failure_times }}</span>次
112 106
               <!-- <el-input style="width:90px"></el-input> -->
113 107
             </el-form-item>
114 108
           </el-col>
115 109
           <el-col :span="4">
116
-            <el-button type="primary" size="medium" @click="getComprehensive()"
117
-              >查询</el-button
118
-            >
110
+            <el-button type="primary" size="medium" @click="getComprehensive()">查询</el-button>
119 111
           </el-col>
120 112
         </el-row>
121 113
         <el-row>
122
-          <el-table :data="tableData" border style="width: 100%">
123
-            <el-table-column
124
-              prop="date"
125
-              label="序号"
126
-              width="60"
127
-              align="center"
128
-              type="index"
129
-            >
114
+          <el-table :data="tableData" border style="width:1000">
115
+            <el-table-column prop="date" label="序号" width="60" align="center" type="index">
130 116
               <!-- <template slot-scope="scope">
131 117
                 {{ scope.row.id }}
132
-              </template> -->
118
+              </template>-->
133 119
             </el-table-column>
134 120
             <el-table-column prop="name" label="分区" width="60" align="center">
135
-              <template slot-scope="scope">
136
-                {{ scope.row.name }}
137
-              </template>
121
+              <template slot-scope="scope">{{ scope.row.name }}</template>
138 122
             </el-table-column>
139
-            <el-table-column
140
-              prop="address"
141
-              label="序列号"
142
-              width="80"
143
-              align="center"
144
-            >
145
-              <template slot-scope="scope">
146
-                {{ scope.row.serial_number }}
147
-              </template>
123
+            <el-table-column prop="address" label="序列号" width="80" align="center">
124
+              <template slot-scope="scope">{{ scope.row.serial_number }}</template>
148 125
             </el-table-column>
149
-            <el-table-column
150
-              prop="address"
151
-              label="设备类型"
152
-              width="100"
153
-              align="center"
154
-            >
155
-              <template slot-scope="scope">
156
-                {{ scope.row.device_type }}
157
-              </template>
126
+            <el-table-column prop="address" label="设备类型" width="100" align="center">
127
+              <template slot-scope="scope">{{ scope.row.device_type }}</template>
158 128
             </el-table-column>
159
-            <el-table-column
160
-              prop="address"
161
-              label="机号"
162
-              width="80"
163
-              align="center"
164
-            >
165
-              <template slot-scope="scope">
166
-                {{ scope.row.bed_number }}
167
-              </template>
129
+            <el-table-column prop="address" label="机号" width="80" align="center">
130
+              <template slot-scope="scope">{{ scope.row.bed_number }}</template>
168 131
             </el-table-column>
169
-            <el-table-column
170
-              prop="address"
171
-              label="设备名称"
172
-              width="100"
173
-              align="center"
174
-            >
175
-              <template slot-scope="scope">
176
-                {{ scope.row.device_name }}
177
-              </template>
132
+            <el-table-column prop="address" label="设备名称" width="100" align="center">
133
+              <template slot-scope="scope">{{ scope.row.device_name }}</template>
178 134
             </el-table-column>
179
-            <el-table-column
180
-              prop="address"
181
-              label="设备型号"
182
-              width="100"
183
-              align="center"
184
-            >
185
-              <template slot-scope="scope">
186
-                {{ scope.row.device_type }}
187
-              </template>
135
+            <el-table-column prop="address" label="设备型号" width="100" align="center">
136
+              <template slot-scope="scope">{{ scope.row.device_type }}</template>
188 137
             </el-table-column>
189
-            <el-table-column
190
-              prop="address"
191
-              label="启用日期"
192
-              width="100"
193
-              align="center"
194
-            >
195
-              <template slot-scope="scope">
196
-                {{ getTime(scope.row.start_date) }}
197
-              </template>
138
+            <el-table-column prop="address" label="启用日期" width="100" align="center">
139
+              <template slot-scope="scope">{{ getTime(scope.row.start_date) }}</template>
198 140
             </el-table-column>
199
-            <el-table-column
200
-              prop="address"
201
-              label="保修期限"
202
-              width="100"
203
-              align="center"
204
-            >
205
-              <template slot-scope="scope">
206
-                {{ scope.row.guarantee_date }}
207
-              </template>
141
+            <el-table-column prop="address" label="保修期限" width="100" align="center">
142
+              <template slot-scope="scope">{{ scope.row.guarantee_date }}</template>
208 143
             </el-table-column>
209
-            <el-table-column
210
-              prop="address"
211
-              label="机器状态"
212
-              width="100"
213
-              align="center"
214
-            >
215
-              <template slot-scope="scope">
216
-                {{ scope.row.machine_status }}
217
-              </template>
144
+            <el-table-column prop="address" label="机器状态" width="100" align="center">
145
+              <template slot-scope="scope">{{ scope.row.machine_status }}</template>
218 146
             </el-table-column>
219
-            <el-table-column
220
-              prop="address"
221
-              label="报废日期"
222
-              width="100"
223
-              align="center"
224
-            >
225
-              <template slot-scope="scope">
226
-                {{ getTime(scope.row.rubbish_date) }}
227
-              </template>
147
+            <el-table-column prop="address" label="报废日期" width="100" align="center">
148
+              <template slot-scope="scope">{{ getTime(scope.row.rubbish_date) }}</template>
228 149
             </el-table-column>
229
-            <el-table-column
230
-              prop="address"
231
-              label="报废原因"
232
-              width="100"
233
-              align="center"
234
-            >
235
-              <template slot-scope="scope">
236
-                {{ scope.row.rubbish_reason }}
237
-              </template>
150
+            <el-table-column prop="address" label="报废原因" width="100" align="center">
151
+              <template slot-scope="scope">{{ scope.row.rubbish_reason }}</template>
238 152
             </el-table-column>
239
-            <el-table-column
240
-              prop="address"
241
-              label="使用年限"
242
-              width="100"
243
-              align="center"
244
-            >
245
-              <template slot-scope="scope">
246
-                {{ scope.row.user_year }}
247
-              </template>
153
+            <el-table-column prop="address" label="使用年限" width="100" align="center">
154
+              <template slot-scope="scope">{{ scope.row.user_year }}</template>
248 155
             </el-table-column>
249
-            <el-table-column
250
-              prop="address"
251
-              label="工作时长"
252
-              width="100"
253
-              align="center"
254
-            >
255
-              <template slot-scope="scope">
256
-                {{ scope.row.work_time }}
257
-              </template>
156
+            <el-table-column prop="address" label="工作时长" width="100" align="center">
157
+              <template slot-scope="scope">{{ scope.row.work_time }}</template>
258 158
             </el-table-column>
259
-            <el-table-column
260
-              prop="address"
261
-              label="使用次数"
262
-              width="100"
263
-              align="center"
264
-            >
265
-              <template slot-scope="scope">
266
-                {{ scope.row.user_total }}
267
-              </template>
159
+            <el-table-column prop="address" label="使用次数" width="100" align="center">
160
+              <template slot-scope="scope">{{ scope.row.user_total }}</template>
268 161
             </el-table-column>
269
-            <el-table-column
270
-              prop="address"
271
-              label="故障次数"
272
-              width="100"
273
-              align="center"
274
-            >
275
-              <template slot-scope="scope">
276
-                {{ failure_times }}
277
-              </template>
162
+            <el-table-column prop="address" label="故障次数" width="100" align="center">
163
+              <template slot-scope="scope">{{ failure_times }}</template>
278 164
             </el-table-column>
279 165
           </el-table>
280 166
         </el-row>
281 167
       </el-form>
282 168
       <span slot="footer" class="dialog-footer">
283 169
         <el-button @click="dialogVisible = false">取 消</el-button>
284
-        <el-button type="primary" @click="dialogVisible = false"
285
-          >确 定</el-button
286
-        >
170
+        <el-button type="primary" @click="dialogVisible = false">确 定</el-button>
287 171
       </span>
288 172
     </el-dialog>
289 173
   </div>
@@ -330,10 +214,7 @@ export default {
330 214
       DeviceType: [{ id: 0, name: "不限" }],
331 215
       Numbers: [{ id: 0, number: "不限" }],
332 216
       EquitmentName: [{ id: 0, equitment_name: "全部" }],
333
-      runOptions: [
334
-        { value: "1", label: "正常" },
335
-        { value: "2", label: "故障" }
336
-      ]
217
+      runOptions: [{ value: "1", label: "正常" }, { value: "2", label: "故障" }]
337 218
     };
338 219
   },
339 220
   methods: {

+ 74 - 74
src/xt_pages/management/components/PlanForm.vue 查看文件

@@ -126,9 +126,9 @@
126 126
 </template>
127 127
 
128 128
 <script>
129
-import { getAllEquimentName, savePlan, getAllEquitType } from '@/api/manage'
129
+import { getAllEquimentName, savePlan, getAllEquitType } from "@/api/manage";
130 130
 export default {
131
-  name: 'PlanForm',
131
+  name: "PlanForm",
132 132
   props: {
133 133
     equimentid: Number
134 134
   },
@@ -136,8 +136,8 @@ export default {
136 136
     return {
137 137
       dialogVisible: false,
138 138
       form: {
139
-        device_type: '',
140
-        disinfec_time: '',
139
+        device_type: "",
140
+        disinfec_time: "",
141 141
         time: [],
142 142
         class_time: [],
143 143
         way: 0,
@@ -147,120 +147,120 @@ export default {
147 147
       },
148 148
       value: [],
149 149
       timeType: [
150
-        { id: 1, name: '周一' },
151
-        { id: 2, name: '周二' },
152
-        { id: 3, name: '周三' },
153
-        { id: 4, name: '周四' },
154
-        { id: 5, name: '周五' },
155
-        { id: 6, name: '周六' },
156
-        { id: 7, name: '周日' }
150
+        { id: 1, name: "周一" },
151
+        { id: 2, name: "周二" },
152
+        { id: 3, name: "周三" },
153
+        { id: 4, name: "周四" },
154
+        { id: 5, name: "周五" },
155
+        { id: 6, name: "周六" },
156
+        { id: 7, name: "周日" }
157 157
       ],
158 158
       classType: [
159
-        { id: 1, name: '上午' },
160
-        { id: 2, name: '下午' },
161
-        { id: 3, name: '晚上' }
159
+        { id: 1, name: "上午" },
160
+        { id: 2, name: "下午" },
161
+        { id: 3, name: "晚上" }
162 162
       ],
163 163
       // 机表消毒方式
164 164
       disinfectType: [
165
-        { id: 0, name: '/' },
166
-        { id: 1, name: '擦拭' },
167
-        { id: 2, name: '化学消毒' }
165
+        { id: 0, name: "/" },
166
+        { id: 1, name: "擦拭" },
167
+        { id: 2, name: "化学消毒" }
168 168
       ],
169 169
       // 基表消毒液
170 170
       disinfectantType: [
171
-        { id: 0, name: '/' },
172
-        { id: 1, name: '0.22%季铵盐' },
173
-        { id: 2, name: '500mg/l含氯消毒剂' },
174
-        { id: 3, name: '1000mg/l含氯消毒剂' },
175
-        { id: 4, name: '1500mg/l含氯消毒剂' }
171
+        { id: 0, name: "/" },
172
+        { id: 1, name: "0.22%季铵盐" },
173
+        { id: 2, name: "500mg/l含氯消毒剂" },
174
+        { id: 3, name: "1000mg/l含氯消毒剂" },
175
+        { id: 4, name: "1500mg/l含氯消毒剂" }
176 176
       ],
177 177
       // 夜路消毒方式
178 178
       sterilizeType: [
179
-        { id: 0, name: '/' },
180
-        { id: 1, name: '热化学消毒' },
181
-        { id: 2, name: '化学消毒 + 除钙' },
182
-        { id: 3, name: '热化学消毒 + 除钙' },
183
-        { id: 4, name: '热消毒' },
184
-        { id: 5, name: '化学消毒' },
185
-        { id: 6, name: '除钙' },
186
-        { id: 7, name: '清洗' }
179
+        { id: 0, name: "/" },
180
+        { id: 1, name: "热化学消毒" },
181
+        { id: 2, name: "化学消毒 + 除钙" },
182
+        { id: 3, name: "热化学消毒 + 除钙" },
183
+        { id: 4, name: "热消毒" },
184
+        { id: 5, name: "化学消毒" },
185
+        { id: 6, name: "除钙" },
186
+        { id: 7, name: "清洗" }
187 187
       ],
188 188
       // 夜路消毒液
189 189
       fluidPathType: [
190
-        { id: 0, name: '/' },
191
-        { id: 1, name: '20%柠檬酸' },
192
-        { id: 2, name: '25%柠檬酸' },
193
-        { id: 3, name: '50%柠檬酸' },
194
-        { id: 4, name: '50%柠檬酸 + 5%次氯酸钠' },
195
-        { id: 5, name: '20%柠檬酸 + 10%冰醋酸' },
196
-        { id: 6, name: '0.2%过氧化乙酸' },
197
-        { id: 7, name: '10%冰醋酸' },
198
-        { id: 8, name: '50%冰醋酸' },
199
-        { id: 9, name: '5%次氯酸钠' }
190
+        { id: 0, name: "/" },
191
+        { id: 1, name: "20%柠檬酸" },
192
+        { id: 2, name: "25%柠檬酸" },
193
+        { id: 3, name: "50%柠檬酸" },
194
+        { id: 4, name: "50%柠檬酸 + 5%次氯酸钠" },
195
+        { id: 5, name: "20%柠檬酸 + 10%冰醋酸" },
196
+        { id: 6, name: "0.2%过氧化乙酸" },
197
+        { id: 7, name: "10%冰醋酸" },
198
+        { id: 8, name: "50%冰醋酸" },
199
+        { id: 9, name: "5%次氯酸钠" }
200 200
       ],
201 201
       DeviceType: [],
202 202
       planid: 0
203
-    }
203
+    };
204 204
   },
205 205
   methods: {
206 206
     open: function() {
207
-      this.dialogVisible = true
207
+      this.dialogVisible = true;
208 208
     },
209 209
     getAllEquimentName() {
210 210
       getAllEquimentName().then(response => {
211 211
         if (response.data.state === 1) {
212
-          var equit = response.data.data.equit
213
-          console.log('equit', equit)
212
+          var equit = response.data.data.equit;
213
+          console.log("equit", equit);
214 214
           // this.DeviceType = equit;
215 215
         }
216
-      })
216
+      });
217 217
     },
218 218
     savePlan(formName) {
219
-      var equimentid = this.equimentid
220
-      console.log('equimentid', equimentid)
221
-      var devicetype = this.form.device_type
222
-      var devicetypes = parseInt(devicetype)
223
-      this.form.device_type = devicetypes
219
+      var equimentid = this.equimentid;
220
+      console.log("equimentid", equimentid);
221
+      var devicetype = this.form.device_type;
222
+      var devicetypes = parseInt(devicetype);
223
+      this.form.device_type = devicetypes;
224 224
 
225
-      var ways = this.form.way
226
-      var way = parseInt(ways)
227
-      this.form.way = way
225
+      var ways = this.form.way;
226
+      var way = parseInt(ways);
227
+      this.form.way = way;
228 228
 
229
-      var machinedisinfectant = this.form.machine_disinfectant
230
-      var machinedisinfectants = parseInt(machinedisinfectant)
231
-      this.form.machine_disinfectant = machinedisinfectants
229
+      var machinedisinfectant = this.form.machine_disinfectant;
230
+      var machinedisinfectants = parseInt(machinedisinfectant);
231
+      this.form.machine_disinfectant = machinedisinfectants;
232 232
 
233
-      var disinfectantways = this.form.disinfectant_way
234
-      var disinfectantway = parseInt(disinfectantways)
235
-      this.form.disinfectant_way = disinfectantway
233
+      var disinfectantways = this.form.disinfectant_way;
234
+      var disinfectantway = parseInt(disinfectantways);
235
+      this.form.disinfectant_way = disinfectantway;
236 236
 
237
-      var disinfectants = this.form.disinfectant
238
-      var disinfectant = parseInt(disinfectants)
239
-      this.form.disinfectant = disinfectant
237
+      var disinfectants = this.form.disinfectant;
238
+      var disinfectant = parseInt(disinfectants);
239
+      this.form.disinfectant = disinfectant;
240 240
       savePlan(this.form, this.equimentid).then(response => {
241 241
         if (response.data.state == 1) {
242
-          var msg = response.data.data.msg
243
-          this.$message.success('保存成功')
244
-          this.dialogVisible = false
245
-          this.$emit('getAllPlan')
246
-          this.$emit('getAllPlanDetail')
242
+          var msg = response.data.data.msg;
243
+          this.$message.success("保存成功");
244
+          this.dialogVisible = false;
245
+          this.$emit("getAllPlan");
246
+          this.$emit("getAllPlanDetail");
247 247
         }
248
-      })
248
+      });
249 249
     },
250 250
     getAllEquitType() {
251 251
       getAllEquitType().then(response => {
252 252
         if (response.data.state === 1) {
253
-          var addmacher = response.data.data.addmacher
254
-          this.DeviceType = addmacher
253
+          var addmacher = response.data.data.addmacher;
254
+          this.DeviceType = addmacher;
255 255
         }
256
-      })
256
+      });
257 257
     }
258 258
   },
259 259
   created() {
260
-    this.getAllEquimentName()
261
-    this.getAllEquitType()
260
+    this.getAllEquimentName();
261
+    this.getAllEquitType();
262 262
   }
263
-}
263
+};
264 264
 </script>
265 265
 
266 266
 <style scoped></style>

+ 318 - 318
src/xt_pages/management/components/QualityForm.vue 查看文件

@@ -56,7 +56,7 @@
56 56
       </el-col>
57 57
       <!-- <el-col :span="2">
58 58
         <el-button>打印</el-button>
59
-      </el-col> -->
59
+      </el-col>-->
60 60
     </el-row>
61 61
 
62 62
     <el-row>
@@ -640,20 +640,20 @@ import {
640 640
   UpdateIon,
641 641
   DeleteIon,
642 642
   queryTable
643
-} from '@/api/manage'
644
-import { uParseTime } from '@/utils/tools'
643
+} from "@/api/manage";
644
+import { uParseTime } from "@/utils/tools";
645 645
 export default {
646
-  name: 'QualityForm',
646
+  name: "QualityForm",
647 647
   data() {
648 648
     return {
649 649
       isIndeterminate: false,
650 650
       checkAllStatus: false,
651 651
       beds: [],
652 652
       forms: {
653
-        bed: '',
653
+        bed: "",
654 654
         sename: 1,
655
-        start_time: '',
656
-        end_time: ''
655
+        start_time: "",
656
+        end_time: ""
657 657
       },
658 658
       tableData: [],
659 659
       table: [],
@@ -663,9 +663,9 @@ export default {
663 663
       showTwo: false,
664 664
       bedNumber: [],
665 665
       tableTypes: [
666
-        { id: 1, name: '细菌培养' },
667
-        { id: 2, name: '内霉素检测' },
668
-        { id: 3, name: '透析液离子浓度检测' }
666
+        { id: 1, name: "细菌培养" },
667
+        { id: 2, name: "内霉素检测" },
668
+        { id: 3, name: "透析液离子浓度检测" }
669 669
       ],
670 670
       dialogVisible: false,
671 671
       dialogVisibleTwo: false,
@@ -673,350 +673,350 @@ export default {
673 673
       disable: true,
674 674
       diableTwo: true,
675 675
       form: {
676
-        id: '',
677
-        date: '',
678
-        specimen: '',
679
-        concentrate_noa: '',
680
-        concentrate_nob: '',
681
-        sampling_locationa: '',
682
-        detection_unit: '',
683
-        sampler: '',
684
-        reporting_date: '',
685
-        detection_result: ''
676
+        id: "",
677
+        date: "",
678
+        specimen: "",
679
+        concentrate_noa: "",
680
+        concentrate_nob: "",
681
+        sampling_locationa: "",
682
+        detection_unit: "",
683
+        sampler: "",
684
+        reporting_date: "",
685
+        detection_result: ""
686 686
       },
687 687
       diaForm: {
688
-        id: '',
689
-        sampling_date: '',
690
-        specimenb: '',
691
-        concentrate_noc: '',
692
-        concentrateb_nod: '',
693
-        sampling_locationb: '',
694
-        detection_unit: '',
695
-        samplerb: '',
696
-        reporting_dateb: '',
697
-        detection_resultb: ''
688
+        id: "",
689
+        sampling_date: "",
690
+        specimenb: "",
691
+        concentrate_noc: "",
692
+        concentrateb_nod: "",
693
+        sampling_locationb: "",
694
+        detection_unit: "",
695
+        samplerb: "",
696
+        reporting_dateb: "",
697
+        detection_resultb: ""
698 698
       },
699 699
       sampling: [],
700 700
       samplingSpecimen: [
701
-        { id: 0, name: '请选择' },
702
-        { id: 1, name: '透析液' },
703
-        { id: 2, name: 'A浓缩液' },
704
-        { id: 3, name: 'B浓缩液' },
705
-        { id: 4, name: '置换液' },
706
-        { id: 5, name: '透析用水' }
701
+        { id: 0, name: "请选择" },
702
+        { id: 1, name: "透析液" },
703
+        { id: 2, name: "A浓缩液" },
704
+        { id: 3, name: "B浓缩液" },
705
+        { id: 4, name: "置换液" },
706
+        { id: 5, name: "透析用水" }
707 707
       ],
708 708
       samplingLocation: [
709
-        { id: 0, name: '请选择' },
710
-        { id: 1, name: '透析液入口' },
711
-        { id: 2, name: '透析液取样口' },
712
-        { id: 3, name: '置换液出口' },
713
-        { id: 4, name: '透析机反渗水入口' }
709
+        { id: 0, name: "请选择" },
710
+        { id: 1, name: "透析液入口" },
711
+        { id: 2, name: "透析液取样口" },
712
+        { id: 3, name: "置换液出口" },
713
+        { id: 4, name: "透析机反渗水入口" }
714 714
       ],
715 715
       rules: {
716
-        detection_unit: [{ required: true, message: '请填写检测单位' }],
717
-        sampler: [{ required: true, message: '请填写取样者' }]
716
+        detection_unit: [{ required: true, message: "请填写检测单位" }],
717
+        sampler: [{ required: true, message: "请填写取样者" }]
718 718
       },
719 719
       diaRules: {
720
-        detection_unit: [{ required: true, message: '请填写检测单位' }],
721
-        samplerb: [{ required: true, message: '请填写取样者' }]
720
+        detection_unit: [{ required: true, message: "请填写检测单位" }],
721
+        samplerb: [{ required: true, message: "请填写取样者" }]
722 722
       },
723 723
       ionrule: {
724
-        detection_unit: [{ required: true, message: '请填写检测单位' }],
725
-        samplerc: [{ required: true, message: '请填写取样者' }]
724
+        detection_unit: [{ required: true, message: "请填写检测单位" }],
725
+        samplerc: [{ required: true, message: "请填写取样者" }]
726 726
       },
727 727
       selectCulture: [],
728 728
       ionForm: {
729
-        dateb: '',
730
-        samplerc: '',
731
-        detection_unit: '',
732
-        concentrate_nof: '',
733
-        concentrate_nog: '',
734
-        date_reportc: '',
735
-        actual_na: '',
736
-        actual_pna: '',
737
-        actual_k: '',
738
-        actual_ca: '',
739
-        actual_ci: '',
740
-        actual_hco: '',
741
-        actual_mg: '',
742
-        actual_ph: ''
729
+        dateb: "",
730
+        samplerc: "",
731
+        detection_unit: "",
732
+        concentrate_nof: "",
733
+        concentrate_nog: "",
734
+        date_reportc: "",
735
+        actual_na: "",
736
+        actual_pna: "",
737
+        actual_k: "",
738
+        actual_ca: "",
739
+        actual_ci: "",
740
+        actual_hco: "",
741
+        actual_mg: "",
742
+        actual_ph: ""
743 743
       }
744
-    }
744
+    };
745 745
   },
746 746
   methods: {
747 747
     changeCheck() {
748
-      this.$refs.multipleTable.clearSelection()
748
+      this.$refs.multipleTable.clearSelection();
749 749
       if (this.checkAllStatus) {
750
-        this.$refs.multipleTable.toggleAllSelection()
750
+        this.$refs.multipleTable.toggleAllSelection();
751 751
       }
752 752
 
753
-      this.$refs.multipleTableOne.clearSelection()
753
+      this.$refs.multipleTableOne.clearSelection();
754 754
       if (this.checkAllStatus) {
755
-        this.$refs.multipleTableOne.toggleAllSelection()
755
+        this.$refs.multipleTableOne.toggleAllSelection();
756 756
       }
757 757
 
758
-      this.$refs.multipleTableTwo.clearSelection()
758
+      this.$refs.multipleTableTwo.clearSelection();
759 759
       if (this.checkAllStatus) {
760
-        this.$refs.multipleTableTwo.toggleAllSelection()
760
+        this.$refs.multipleTableTwo.toggleAllSelection();
761 761
       }
762 762
     },
763 763
     handleSelectionChange(val) {
764
-      this.selectCulture = val
764
+      this.selectCulture = val;
765 765
     },
766 766
     handleSelectionChangeOne(val) {
767
-      this.selectCulture = val
767
+      this.selectCulture = val;
768 768
     },
769 769
     handleSelectionChangeTwo(val) {
770
-      this.selectCulture = val
770
+      this.selectCulture = val;
771 771
     },
772 772
     getAllSubregion() {
773 773
       getAllSubregion().then(response => {
774
-        var zones = response.data.data.zones
775
-        var numbers = response.data.data.numbers
776
-        var number = [{ id: 0, number: '全部' }]
774
+        var zones = response.data.data.zones;
775
+        var numbers = response.data.data.numbers;
776
+        var number = [{ id: 0, number: "全部" }];
777 777
         for (let index = 0; index < numbers.length; index++) {
778
-          const item = numbers[index]
779
-          number.push({ id: item.id, number: item.number })
778
+          const item = numbers[index];
779
+          number.push({ id: item.id, number: item.number });
780 780
         }
781
-        this.bedNumber = number
782
-      })
781
+        this.bedNumber = number;
782
+      });
783 783
     },
784 784
     getAllQulityInfo() {
785 785
       getAllQulityInfo().then(response => {
786 786
         if (response.data.state === 1) {
787
-          var cultures = response.data.data.cultures
788
-          console.log('cultures', cultures)
787
+          var cultures = response.data.data.cultures;
788
+          console.log("cultures", cultures);
789 789
 
790 790
           for (let index = 0; index < cultures.length; index++) {
791 791
             if (cultures[index].specimen === 0) {
792
-              cultures[index].specimen = ''
792
+              cultures[index].specimen = "";
793 793
             }
794 794
             if (cultures[index].specimen === 1) {
795
-              cultures[index].specimen = '透析液'
795
+              cultures[index].specimen = "透析液";
796 796
             }
797 797
             if (cultures[index].specimen === 2) {
798
-              cultures[index].specimen = 'A浓缩液'
798
+              cultures[index].specimen = "A浓缩液";
799 799
             }
800 800
             if (cultures[index].specimen === 3) {
801
-              cultures[index].specimen = 'B浓缩液'
801
+              cultures[index].specimen = "B浓缩液";
802 802
             }
803 803
             if (cultures[index].specimen === 4) {
804
-              cultures[index].specimen = '置换液'
804
+              cultures[index].specimen = "置换液";
805 805
             }
806 806
             if (cultures[index].specimen === 5) {
807
-              cultures[index].specimen = '透析用水'
807
+              cultures[index].specimen = "透析用水";
808 808
             }
809 809
 
810 810
             if (cultures[index].sampling_locationa === 0) {
811
-              cultures[index].sampling_locationa = ''
811
+              cultures[index].sampling_locationa = "";
812 812
             }
813 813
 
814 814
             if (cultures[index].sampling_locationa === 1) {
815
-              cultures[index].sampling_locationa = '透析液入口'
815
+              cultures[index].sampling_locationa = "透析液入口";
816 816
             }
817 817
             if (cultures[index].sampling_locationa === 2) {
818
-              cultures[index].sampling_locationa = '透析液取样口'
818
+              cultures[index].sampling_locationa = "透析液取样口";
819 819
             }
820 820
             if (cultures[index].sampling_locationa === 3) {
821
-              cultures[index].sampling_locationa = '置换液出口'
821
+              cultures[index].sampling_locationa = "置换液出口";
822 822
             }
823 823
             if (cultures[index].sampling_locationa === 4) {
824
-              cultures[index].sampling_locationa = '透析机反渗水入口'
824
+              cultures[index].sampling_locationa = "透析机反渗水入口";
825 825
             }
826 826
           }
827
-          this.tableData = cultures
828
-          var dialyste = response.data.data.dialysate
829
-          console.log('dialyste', dialyste)
827
+          this.tableData = cultures;
828
+          var dialyste = response.data.data.dialysate;
829
+          console.log("dialyste", dialyste);
830 830
           for (let index = 0; index < dialyste.length; index++) {
831 831
             if (dialyste[index].specimenb === 0) {
832
-              dialyste[index].specimenb = ''
832
+              dialyste[index].specimenb = "";
833 833
             }
834 834
             if (dialyste[index].specimenb === 1) {
835
-              dialyste[index].specimenb = '透析液'
835
+              dialyste[index].specimenb = "透析液";
836 836
             }
837 837
             if (dialyste[index].specimenb === 2) {
838
-              dialyste[index].specimenb = 'A浓缩液'
838
+              dialyste[index].specimenb = "A浓缩液";
839 839
             }
840 840
             if (dialyste[index].specimenb === 3) {
841
-              dialyste[index].specimenb = 'B浓缩液'
841
+              dialyste[index].specimenb = "B浓缩液";
842 842
             }
843 843
             if (dialyste[index].specimenb === 4) {
844
-              dialyste[index].specimenb = '置换液'
844
+              dialyste[index].specimenb = "置换液";
845 845
             }
846 846
             if (dialyste[index].specimenb === 5) {
847
-              dialyste[index].specimenb = '透析用水'
847
+              dialyste[index].specimenb = "透析用水";
848 848
             }
849 849
 
850 850
             if (dialyste[index].sampling_locationb === 0) {
851
-              dialyste[index].sampling_locationb = ''
851
+              dialyste[index].sampling_locationb = "";
852 852
             }
853 853
 
854 854
             if (dialyste[index].sampling_locationb === 1) {
855
-              dialyste[index].sampling_locationb = '透析液入口'
855
+              dialyste[index].sampling_locationb = "透析液入口";
856 856
             }
857 857
             if (dialyste[index].sampling_locationb === 2) {
858
-              dialyste[index].sampling_locationb = '透析液取样口'
858
+              dialyste[index].sampling_locationb = "透析液取样口";
859 859
             }
860 860
             if (dialyste[index].sampling_locationb === 3) {
861
-              dialyste[index].sampling_locationb = '置换液出口'
861
+              dialyste[index].sampling_locationb = "置换液出口";
862 862
             }
863 863
             if (dialyste[index].sampling_locationb === 4) {
864
-              dialyste[index].sampling_locationb = '透析机反渗水入口'
864
+              dialyste[index].sampling_locationb = "透析机反渗水入口";
865 865
             }
866 866
           }
867
-          this.table = dialyste
868
-          var ions = response.data.data.ions
869
-          console.log('ions', ions)
870
-          this.tableDatas = ions
867
+          this.table = dialyste;
868
+          var ions = response.data.data.ions;
869
+          console.log("ions", ions);
870
+          this.tableDatas = ions;
871 871
         }
872
-      })
872
+      });
873 873
     },
874 874
     changeSpecimen(val) {
875 875
       if (val === 0) {
876
-        this.disable = false
877
-        this.diableTwo = false
876
+        this.disable = false;
877
+        this.diableTwo = false;
878 878
       }
879 879
       if (val === 1) {
880
-        this.diableTwo = false
881
-        this.disable = false
880
+        this.diableTwo = false;
881
+        this.disable = false;
882 882
       }
883 883
       if (val === 2) {
884
-        this.diableTwo = true
885
-        this.disable = false
884
+        this.diableTwo = true;
885
+        this.disable = false;
886 886
       }
887 887
       if (val === 3) {
888
-        this.disable = true
889
-        this.diableTwo = false
888
+        this.disable = true;
889
+        this.diableTwo = false;
890 890
       }
891 891
       if (val === 4) {
892
-        this.disable = false
893
-        this.diableTwo = false
892
+        this.disable = false;
893
+        this.diableTwo = false;
894 894
       }
895 895
       if (val === 5) {
896
-        this.disable = false
897
-        this.diableTwo = false
896
+        this.disable = false;
897
+        this.diableTwo = false;
898 898
       }
899 899
     },
900 900
     changeSpeciment(val) {
901 901
       if (val === 0) {
902
-        this.disable = false
903
-        this.diableTwo = false
902
+        this.disable = false;
903
+        this.diableTwo = false;
904 904
       }
905 905
       if (val === 1) {
906
-        this.disable = false
907
-        this.diableTwo = false
906
+        this.disable = false;
907
+        this.diableTwo = false;
908 908
       }
909 909
       if (val === 2) {
910
-        this.diableTwo = true
911
-        this.disable = false
910
+        this.diableTwo = true;
911
+        this.disable = false;
912 912
       }
913 913
       if (val === 3) {
914
-        this.disable = true
915
-        this.diableTwo = false
914
+        this.disable = true;
915
+        this.diableTwo = false;
916 916
       }
917 917
       if (val === 4) {
918
-        this.disable = false
919
-        this.diableTwo = false
918
+        this.disable = false;
919
+        this.diableTwo = false;
920 920
       }
921 921
       if (val === 5) {
922
-        this.disable = false
923
-        this.diableTwo = false
922
+        this.disable = false;
923
+        this.diableTwo = false;
924 924
       }
925 925
     },
926 926
     changeTable(val) {
927 927
       if (val === 1) {
928
-        this.showOne = false
929
-        this.showTwo = false
930
-        this.show = true
928
+        this.showOne = false;
929
+        this.showTwo = false;
930
+        this.show = true;
931 931
       }
932 932
       if (val === 2) {
933
-        this.showOne = true
934
-        this.show = false
935
-        this.showTwo = false
933
+        this.showOne = true;
934
+        this.show = false;
935
+        this.showTwo = false;
936 936
       }
937 937
       if (val === 3) {
938
-        this.showTwo = true
939
-        this.show = false
940
-        this.showOne = false
938
+        this.showTwo = true;
939
+        this.show = false;
940
+        this.showOne = false;
941 941
       }
942 942
     },
943 943
     getTime(time) {
944
-      return uParseTime(time, '{y}-{m}-{d}')
944
+      return uParseTime(time, "{y}-{m}-{d}");
945 945
     },
946 946
     getAllOrganization() {
947 947
       getAllOrganization().then(response => {
948 948
         if (response.data.state === 1) {
949
-          var approle = response.data.data.approle
950
-          this.sampling = approle
949
+          var approle = response.data.data.approle;
950
+          this.sampling = approle;
951 951
         }
952
-      })
952
+      });
953 953
     },
954 954
     EditCulture(id, userid) {
955
-      this.dialogVisible = true
955
+      this.dialogVisible = true;
956 956
 
957
-      if (this.form.specimen === '') {
958
-        this.form.specimen = 0
957
+      if (this.form.specimen === "") {
958
+        this.form.specimen = 0;
959 959
       }
960
-      var specimens = this.form.specimen
961
-      var specimen = parseInt(specimens)
962
-      this.form.specimen = specimen
960
+      var specimens = this.form.specimen;
961
+      var specimen = parseInt(specimens);
962
+      this.form.specimen = specimen;
963 963
 
964
-      if (this.form.locationa === '') {
965
-        this.form.specimen = 0
964
+      if (this.form.locationa === "") {
965
+        this.form.specimen = 0;
966 966
       }
967
-      var locationa = this.form.sampling_locationa
968
-      var location = parseInt(locationa)
969
-      this.form.locationa = location
967
+      var locationa = this.form.sampling_locationa;
968
+      var location = parseInt(locationa);
969
+      this.form.locationa = location;
970 970
       EditCulture(id, userid).then(response => {
971 971
         if (response.data.state === 1) {
972
-          var culture = response.data.data.culture
973
-          console.log('禁用', culture)
974
-          var role = response.data.data.role
975
-          console.log('role', role)
976
-          this.form.id = culture.id
977
-          this.form.date = uParseTime(culture.speling_date, '{y}-{m}-{d}')
978
-          this.form.specimen = culture.specimen
972
+          var culture = response.data.data.culture;
973
+          console.log("禁用", culture);
974
+          var role = response.data.data.role;
975
+          console.log("role", role);
976
+          this.form.id = culture.id;
977
+          this.form.date = uParseTime(culture.speling_date, "{y}-{m}-{d}");
978
+          this.form.specimen = culture.specimen;
979 979
 
980 980
           if (this.form.specimen === 0) {
981
-            this.disable = false
982
-            this.diableTwo = false
981
+            this.disable = false;
982
+            this.diableTwo = false;
983 983
           }
984 984
 
985 985
           if (this.form.specimen === 1) {
986
-            this.disable = false
987
-            this.diableTwo = false
986
+            this.disable = false;
987
+            this.diableTwo = false;
988 988
           }
989 989
 
990 990
           if (this.form.specimen === 2) {
991
-            this.disable = false
992
-            this.diableTwo = true
991
+            this.disable = false;
992
+            this.diableTwo = true;
993 993
           }
994 994
           if (this.form.specimen === 3) {
995
-            this.diableTwo = false
996
-            this.disable = true
995
+            this.diableTwo = false;
996
+            this.disable = true;
997 997
           }
998 998
 
999 999
           if (this.form.specimen === 4) {
1000
-            this.disable = false
1001
-            this.diableTwo = false
1000
+            this.disable = false;
1001
+            this.diableTwo = false;
1002 1002
           }
1003 1003
           if (this.form.specimen === 5) {
1004
-            this.disable = false
1005
-            this.diableTwo = false
1004
+            this.disable = false;
1005
+            this.diableTwo = false;
1006 1006
           }
1007 1007
 
1008
-          this.form.concentrate_noa = culture.concentrate_noa
1009
-          this.form.concentrate_nob = culture.concentrate_nob
1010
-          this.form.sampling_locationa = culture.sampling_locationa
1011
-          this.form.detection_unit = culture.detection_unit
1012
-          this.form.sampler = culture.sampler
1008
+          this.form.concentrate_noa = culture.concentrate_noa;
1009
+          this.form.concentrate_nob = culture.concentrate_nob;
1010
+          this.form.sampling_locationa = culture.sampling_locationa;
1011
+          this.form.detection_unit = culture.detection_unit;
1012
+          this.form.sampler = culture.sampler;
1013 1013
           this.form.reporting_date = uParseTime(
1014 1014
             culture.reporting_date,
1015
-            '{y}-{m}-{d}'
1016
-          )
1017
-          this.form.detection_result = culture.detection_result
1015
+            "{y}-{m}-{d}"
1016
+          );
1017
+          this.form.detection_result = culture.detection_result;
1018 1018
         }
1019
-      })
1019
+      });
1020 1020
     },
1021 1021
 
1022 1022
     UpdateCulture(formName) {
@@ -1024,230 +1024,230 @@ export default {
1024 1024
         if (valid) {
1025 1025
           UpdateCulture(this.form).then(response => {
1026 1026
             if (response.data.state === 1) {
1027
-              var culture = response.data.data.culture
1028
-              this.$message.success('修改成功')
1029
-              this.dialogVisible = false
1030
-              this.getAllQulityInfo()
1027
+              var culture = response.data.data.culture;
1028
+              this.$message.success("修改成功");
1029
+              this.dialogVisible = false;
1030
+              this.getAllQulityInfo();
1031 1031
             }
1032
-          })
1032
+          });
1033 1033
         }
1034
-      })
1034
+      });
1035 1035
     },
1036 1036
     BatchDelete() {
1037 1037
       if (this.selectCulture.length == 0) {
1038
-        this.$message.error('请选择要删除的信息')
1039
-        return false
1038
+        this.$message.error("请选择要删除的信息");
1039
+        return false;
1040 1040
       }
1041 1041
       this.$confirm(
1042
-        '确认要删除所选记录吗? <br>删除后,人员信息将无法恢复',
1043
-        '删除提示',
1042
+        "确认要删除所选记录吗? <br>删除后,该信息将无法恢复",
1043
+        "删除提示",
1044 1044
         {
1045 1045
           dangerouslyUseHTMLString: true,
1046
-          confirmButtonText: '确定',
1047
-          cancelButtonText: '取消',
1048
-          type: 'warning'
1046
+          confirmButtonText: "确定",
1047
+          cancelButtonText: "取消",
1048
+          type: "warning"
1049 1049
         }
1050 1050
       ).then(() => {
1051
-        var ids = []
1052
-        var idMap = {}
1051
+        var ids = [];
1052
+        var idMap = {};
1053 1053
         for (const index in this.selectCulture) {
1054
-          ids.push(this.selectCulture[index].id)
1055
-          idMap[this.selectCulture[index].id] = this.selectCulture[index].id
1054
+          ids.push(this.selectCulture[index].id);
1055
+          idMap[this.selectCulture[index].id] = this.selectCulture[index].id;
1056 1056
         }
1057 1057
         DeleteCultrue({ ids: ids }).then(response => {
1058 1058
           if (response.data.state === 1) {
1059
-            var msg = response.data.data.msg
1060
-            var planDataLength = this.tableData.length
1059
+            var msg = response.data.data.msg;
1060
+            var planDataLength = this.tableData.length;
1061 1061
             for (let index = planDataLength - 1; index >= 0; index--) {
1062 1062
               if (this.tableData[index].id in idMap) {
1063
-                this.tableData.splice(index, 1)
1063
+                this.tableData.splice(index, 1);
1064 1064
               }
1065 1065
             }
1066
-            this.$message.success('删除成功')
1066
+            this.$message.success("删除成功");
1067 1067
           }
1068
-        })
1069
-      })
1068
+        });
1069
+      });
1070 1070
     },
1071 1071
     EditDialyState(id) {
1072
-      this.dialogVisibleTwo = true
1072
+      this.dialogVisibleTwo = true;
1073 1073
       EditDialyState(id).then(response => {
1074 1074
         if (response.data.state === 1) {
1075
-          var dialysate = response.data.data.dialysate
1076
-          console.log('dialysate', dialysate)
1077
-          this.diaForm.id = dialysate.id
1075
+          var dialysate = response.data.data.dialysate;
1076
+          console.log("dialysate", dialysate);
1077
+          this.diaForm.id = dialysate.id;
1078 1078
           this.diaForm.sampling_date = uParseTime(
1079 1079
             dialysate.sampling_date,
1080
-            '{y}-{m}-{d}'
1081
-          )
1082
-          this.diaForm.specimenb = dialysate.specimenb
1080
+            "{y}-{m}-{d}"
1081
+          );
1082
+          this.diaForm.specimenb = dialysate.specimenb;
1083 1083
           if (this.diaForm.specimenb === 0) {
1084
-            this.disable = false
1085
-            this.diableTwo = false
1084
+            this.disable = false;
1085
+            this.diableTwo = false;
1086 1086
           }
1087 1087
 
1088 1088
           if (this.diaForm.specimenb === 1) {
1089
-            this.disable = false
1090
-            this.diableTwo = false
1089
+            this.disable = false;
1090
+            this.diableTwo = false;
1091 1091
           }
1092 1092
 
1093 1093
           if (this.diaForm.specimenb === 2) {
1094
-            this.disable = false
1095
-            this.diableTwo = true
1094
+            this.disable = false;
1095
+            this.diableTwo = true;
1096 1096
           }
1097 1097
           if (this.diaForm.specimenb === 3) {
1098
-            this.diableTwo = false
1099
-            this.disable = true
1098
+            this.diableTwo = false;
1099
+            this.disable = true;
1100 1100
           }
1101 1101
 
1102 1102
           if (this.diaForm.specimenb === 4) {
1103
-            this.disable = false
1104
-            this.diableTwo = false
1103
+            this.disable = false;
1104
+            this.diableTwo = false;
1105 1105
           }
1106 1106
           if (this.diaForm.specimenb === 5) {
1107
-            this.disable = false
1108
-            this.diableTwo = false
1107
+            this.disable = false;
1108
+            this.diableTwo = false;
1109 1109
           }
1110
-          this.diaForm.concentrate_noc = dialysate.concentrate_noc
1111
-          this.diaForm.concentrateb_nod = dialysate.concentrateb_nod
1112
-          this.diaForm.sampling_locationb = dialysate.sampling_locationb
1113
-          this.diaForm.detection_unit = dialysate.detection_unit
1114
-          this.diaForm.samplerb = dialysate.samplerb
1110
+          this.diaForm.concentrate_noc = dialysate.concentrate_noc;
1111
+          this.diaForm.concentrateb_nod = dialysate.concentrateb_nod;
1112
+          this.diaForm.sampling_locationb = dialysate.sampling_locationb;
1113
+          this.diaForm.detection_unit = dialysate.detection_unit;
1114
+          this.diaForm.samplerb = dialysate.samplerb;
1115 1115
           this.diaForm.reporting_dateb = uParseTime(
1116 1116
             dialysate.reporting_dateb,
1117
-            '{y}-{m}-{d}'
1118
-          )
1119
-          this.diaForm.detection_resultb = dialysate.detection_resultb
1117
+            "{y}-{m}-{d}"
1118
+          );
1119
+          this.diaForm.detection_resultb = dialysate.detection_resultb;
1120 1120
         }
1121
-      })
1121
+      });
1122 1122
     },
1123 1123
     UpdateDialyState(formName) {
1124 1124
       this.$refs[formName].validate(valid => {
1125 1125
         if (valid) {
1126 1126
           UpdateDialyState(this.diaForm).then(response => {
1127 1127
             if (response.data.state === 1) {
1128
-              var dialyste = response.data.data.dialysate
1129
-              console.log('dialyste', dialyste)
1130
-              this.dialogVisibleTwo = false
1131
-              this.$message.success('修改成功')
1132
-              this.getAllQulityInfo()
1128
+              var dialyste = response.data.data.dialysate;
1129
+              console.log("dialyste", dialyste);
1130
+              this.dialogVisibleTwo = false;
1131
+              this.$message.success("修改成功");
1132
+              this.getAllQulityInfo();
1133 1133
             }
1134
-          })
1134
+          });
1135 1135
         }
1136
-      })
1136
+      });
1137 1137
     },
1138 1138
     BatchDeleteOne() {
1139 1139
       if (this.selectCulture.length == 0) {
1140
-        this.$message.error('请选择要删除的信息')
1141
-        return false
1140
+        this.$message.error("请选择要删除的信息");
1141
+        return false;
1142 1142
       }
1143 1143
       this.$confirm(
1144
-        '确认要删除所选的吗? <br>删除后,人员信息将无法恢复',
1145
-        '删除提示',
1144
+        "确认要删除所选记录吗? <br>删除后,该信息将无法恢复",
1145
+        "删除提示",
1146 1146
         {
1147 1147
           dangerouslyUseHTMLString: true,
1148
-          confirmButtonText: '确定',
1149
-          cancelButtonText: '取消',
1150
-          type: 'warning'
1148
+          confirmButtonText: "确定",
1149
+          cancelButtonText: "取消",
1150
+          type: "warning"
1151 1151
         }
1152 1152
       ).then(() => {
1153
-        var ids = []
1154
-        var idMap = {}
1153
+        var ids = [];
1154
+        var idMap = {};
1155 1155
         for (const index in this.selectCulture) {
1156
-          ids.push(this.selectCulture[index].id)
1157
-          idMap[this.selectCulture[index].id] = this.selectCulture[index].id
1156
+          ids.push(this.selectCulture[index].id);
1157
+          idMap[this.selectCulture[index].id] = this.selectCulture[index].id;
1158 1158
         }
1159 1159
         DeleteDialystate({ ids: ids }).then(response => {
1160 1160
           if (response.data.state === 1) {
1161
-            var msg = response.data.data.msg
1162
-            var planDataLength = this.table.length
1161
+            var msg = response.data.data.msg;
1162
+            var planDataLength = this.table.length;
1163 1163
             for (let index = planDataLength - 1; index >= 0; index--) {
1164 1164
               if (this.table[index].id in idMap) {
1165
-                this.table.splice(index, 1)
1165
+                this.table.splice(index, 1);
1166 1166
               }
1167 1167
             }
1168
-            this.$message.success('删除成功')
1168
+            this.$message.success("删除成功");
1169 1169
           }
1170
-        })
1171
-      })
1170
+        });
1171
+      });
1172 1172
     },
1173 1173
     EditIon(id) {
1174
-      this.dialogVisibleThree = true
1174
+      this.dialogVisibleThree = true;
1175 1175
       EditIon(id).then(response => {
1176 1176
         if (response.data.state === 1) {
1177
-          var ion = response.data.data.ion
1178
-          console.log('ion', ion)
1179
-          this.ionForm.dateb = uParseTime(ion.sampling_date, '{y}-{m}-{d}')
1180
-          this.ionForm.samplerc = ion.samplerc
1181
-          this.ionForm.detection_unit = ion.detection_unit
1182
-          this.ionForm.samplerc = ion.samplerc
1183
-          this.ionForm.concentrate_nof = ion.concentrate_nof
1184
-          this.ionForm.concentrate_nog = ion.concentrate_nog
1177
+          var ion = response.data.data.ion;
1178
+          console.log("ion", ion);
1179
+          this.ionForm.dateb = uParseTime(ion.sampling_date, "{y}-{m}-{d}");
1180
+          this.ionForm.samplerc = ion.samplerc;
1181
+          this.ionForm.detection_unit = ion.detection_unit;
1182
+          this.ionForm.samplerc = ion.samplerc;
1183
+          this.ionForm.concentrate_nof = ion.concentrate_nof;
1184
+          this.ionForm.concentrate_nog = ion.concentrate_nog;
1185 1185
           this.ionForm.date_reportc = uParseTime(
1186 1186
             ion.date_reportc,
1187
-            '{y}-{m}-{d}'
1188
-          )
1189
-          this.ionForm.id = ion.id
1190
-          this.ionForm.actual_na = ion.actual_na
1191
-          this.ionForm.actual_pna = ion.actual_pna
1192
-          this.ionForm.actual_k = ion.actual_k
1193
-          this.ionForm.actual_ca = ion.actual_ca
1194
-          this.ionForm.actual_ci = ion.actual_ci
1195
-          this.ionForm.actual_hco = ion.actual_hco
1196
-          this.ionForm.actual_mg = ion.actual_mg
1197
-          this.ionForm.actual_ph = ion.actual_ph
1198
-          this.ionForm.remakes = ion.remakes
1187
+            "{y}-{m}-{d}"
1188
+          );
1189
+          this.ionForm.id = ion.id;
1190
+          this.ionForm.actual_na = ion.actual_na;
1191
+          this.ionForm.actual_pna = ion.actual_pna;
1192
+          this.ionForm.actual_k = ion.actual_k;
1193
+          this.ionForm.actual_ca = ion.actual_ca;
1194
+          this.ionForm.actual_ci = ion.actual_ci;
1195
+          this.ionForm.actual_hco = ion.actual_hco;
1196
+          this.ionForm.actual_mg = ion.actual_mg;
1197
+          this.ionForm.actual_ph = ion.actual_ph;
1198
+          this.ionForm.remakes = ion.remakes;
1199 1199
         }
1200
-      })
1200
+      });
1201 1201
     },
1202 1202
     UpdateIon(formName) {
1203 1203
       this.$refs[formName].validate(valid => {
1204 1204
         if (valid) {
1205 1205
           UpdateIon(this.ionForm).then(response => {
1206 1206
             if (response.data.state === 1) {
1207
-              var ion = response.data.data.ion
1208
-              console.log('ion', ion)
1209
-              this.dialogVisibleThree = false
1210
-              this.$message.success('修改成功')
1211
-              this.getAllQulityInfo()
1207
+              var ion = response.data.data.ion;
1208
+              console.log("ion", ion);
1209
+              this.dialogVisibleThree = false;
1210
+              this.$message.success("修改成功");
1211
+              this.getAllQulityInfo();
1212 1212
             }
1213
-          })
1213
+          });
1214 1214
         }
1215
-      })
1215
+      });
1216 1216
     },
1217 1217
     BatchDeleteTwo() {
1218 1218
       if (this.selectCulture.length == 0) {
1219
-        this.$message.error('请选择要删除的信息')
1220
-        return false
1219
+        this.$message.error("请选择要删除的信息");
1220
+        return false;
1221 1221
       }
1222 1222
       this.$confirm(
1223
-        '确认要删除所选的吗? <br>删除后,信息将无法恢复',
1224
-        '删除提示',
1223
+        "确认要删除所选的吗? <br>删除后,信息将无法恢复",
1224
+        "删除提示",
1225 1225
         {
1226 1226
           dangerouslyUseHTMLString: true,
1227
-          confirmButtonText: '确定',
1228
-          cancelButtonText: '取消',
1229
-          type: 'warning'
1227
+          confirmButtonText: "确定",
1228
+          cancelButtonText: "取消",
1229
+          type: "warning"
1230 1230
         }
1231 1231
       ).then(() => {
1232
-        var ids = []
1233
-        var idMap = {}
1232
+        var ids = [];
1233
+        var idMap = {};
1234 1234
         for (const index in this.selectCulture) {
1235
-          ids.push(this.selectCulture[index].id)
1236
-          idMap[this.selectCulture[index].id] = this.selectCulture[index].id
1235
+          ids.push(this.selectCulture[index].id);
1236
+          idMap[this.selectCulture[index].id] = this.selectCulture[index].id;
1237 1237
         }
1238 1238
         DeleteIon({ ids: ids }).then(response => {
1239 1239
           if (response.data.state === 1) {
1240
-            var msg = response.data.data.msg
1241
-            var planDataLength = this.tableDatas.length
1240
+            var msg = response.data.data.msg;
1241
+            var planDataLength = this.tableDatas.length;
1242 1242
             for (let index = planDataLength - 1; index >= 0; index--) {
1243 1243
               if (this.tableDatas[index].id in idMap) {
1244
-                this.tableDatas.splice(index, 1)
1244
+                this.tableDatas.splice(index, 1);
1245 1245
               }
1246 1246
             }
1247
-            this.$message.success('删除成功')
1247
+            this.$message.success("删除成功");
1248 1248
           }
1249
-        })
1250
-      })
1249
+        });
1250
+      });
1251 1251
     },
1252 1252
     queryTable() {
1253 1253
       queryTable(
@@ -1256,22 +1256,22 @@ export default {
1256 1256
         this.forms.end_time
1257 1257
       ).then(response => {
1258 1258
         if (response.data.state === 1) {
1259
-          var cultures = response.data.data.cultures
1260
-          this.tableData = cultures
1261
-          var dialysate = response.data.data.dialysate
1262
-          this.table = dialysate
1263
-          var ions = response.data.data.ions
1264
-          this.tableDatas = ions
1259
+          var cultures = response.data.data.cultures;
1260
+          this.tableData = cultures;
1261
+          var dialysate = response.data.data.dialysate;
1262
+          this.table = dialysate;
1263
+          var ions = response.data.data.ions;
1264
+          this.tableDatas = ions;
1265 1265
         }
1266
-      })
1266
+      });
1267 1267
     }
1268 1268
   },
1269 1269
   created() {
1270
-    this.getAllSubregion()
1271
-    this.getAllQulityInfo()
1272
-    this.getAllOrganization()
1270
+    this.getAllSubregion();
1271
+    this.getAllQulityInfo();
1272
+    this.getAllOrganization();
1273 1273
   }
1274
-}
1274
+};
1275 1275
 </script>
1276 1276
 
1277 1277
 <style scoped>

文件差异内容过多而无法显示
+ 631 - 452
src/xt_pages/management/components/UserForm.vue


+ 14 - 11
src/xt_pages/management/home.vue 查看文件

@@ -454,7 +454,7 @@
454 454
                                  </el-form-item>
455 455
                                 </el-col>
456 456
                                  <el-col :span="7">
457
-                                   <el-form-item label="工作时长:">
457
+                                   <el-form-item label="工作时长(时):">
458 458
                                        <el-input style="width:150px" v-model="form.work_time"></el-input>
459 459
                                    </el-form-item>
460 460
                                 </el-col>
@@ -783,7 +783,7 @@
783 783
                                         <el-table-column align="center" type="selection" width="55"></el-table-column>
784 784
                                         <el-table-column label="型号" align="center" min-width="70px">
785 785
                                                 <template slot-scope="scope">
786
-                                                    {{scope.row.equitment_name}}
786
+                                                    {{scope.row.unit_type}}
787 787
                                                  </template>
788 788
                                         </el-table-column>
789 789
                                          <el-table-column label="时间" align="center" min-width="70px" >
@@ -2738,6 +2738,8 @@ export default {
2738 2738
         })
2739 2739
       },
2740 2740
       cleanMainchine(){
2741
+        this.confirmShow = false
2742
+        this.cancelShow = false
2741 2743
         this.form.manufacture_factory = ""
2742 2744
         this.form.service_manufacturer= ""
2743 2745
         this.form.use_section= ""
@@ -3219,15 +3221,15 @@ export default {
3219 3221
             return false
3220 3222
           })
3221 3223
       },
3222
-      // getAllEquimentName() {
3223
-      //   getAllEquimentName().then(response => {
3224
-      //     if (response.data.state === 1) {
3225
-      //       var equit = response.data.data.equit
3226
-      //       console.log('equit', equit)
3227
-      //       this.DeviceType = equit
3228
-      //     }
3229
-      //   })
3230
-      // },
3224
+      getAllEquimentName() {
3225
+        getAllEquimentName().then(response => {
3226
+          if (response.data.state === 1) {
3227
+            var equit = response.data.data.equit
3228
+            console.log('equit', equit)
3229
+            // this.DeviceType = equit
3230
+          }
3231
+        })
3232
+      },
3231 3233
       clickQuery() {
3232 3234
         this.$refs.multipleform.open()
3233 3235
       },
@@ -3867,6 +3869,7 @@ export default {
3867 3869
       getAllEquitType().then(response => {
3868 3870
         if (response.data.state === 1) {
3869 3871
           var addmacher = response.data.data.addmacher;
3872
+          console.log("aaaaaaaaaaa",addmacher)
3870 3873
           this.DeviceType = addmacher;
3871 3874
         }
3872 3875
       });