huangyw 2 years ago
parent
commit
60c8b04c36

+ 346 - 300
src/xt_pages/outpatientDoctorStation/batch_delete.vue View File

@@ -6,10 +6,7 @@
6 6
         <div class="banner_left">
7 7
           <div>
8 8
             透析模式:
9
-            <el-select
10
-              v-model="modeOptions_value"
11
-              placeholder="请选择"
12
-            >
9
+            <el-select v-model="modeOptions_value" placeholder="请选择">
13 10
               <el-option
14 11
                 v-for="item in modeOptions"
15 12
                 :key="item.id"
@@ -21,7 +18,11 @@
21 18
           </div>
22 19
           <div>
23 20
             删除类型:
24
-            <el-select v-model="new_type" placeholder="请选择" @change="changetype">
21
+            <el-select
22
+              v-model="new_type"
23
+              placeholder="请选择"
24
+              @change="changetype"
25
+            >
25 26
               <el-option
26 27
                 v-for="item in options"
27 28
                 :key="item.id"
@@ -67,8 +68,8 @@
67 68
           </div>
68 69
         </div>
69 70
 
70
-<!--        <button @click="lili">调试</button>-->
71
-        <el-button @click="save">保存</el-button>
71
+        <!--        <button @click="lili">调试</button>-->
72
+        <el-button type="primary" @click="save">保存</el-button>
72 73
       </div>
73 74
 
74 75
       <el-container>
@@ -89,16 +90,16 @@
89 90
           >
90 91
             <el-table-column type="selection" width="55"> </el-table-column>
91 92
             <el-table-column label="患者姓名" width="155">
92
-              <template slot-scope="scope" >{{ scope.row.name }}</template>
93
+              <template slot-scope="scope">{{ scope.row.name }}</template>
93 94
             </el-table-column>
94 95
           </el-table>
95 96
         </div>
96 97
 
97 98
         <el-tabs type="border-card" v-if="isshow == 1 && list.length > 0">
98 99
           <el-tab-pane
99
-            v-for="(item,index) in list"
100
+            v-for="(item, index) in list"
100 101
             :key="index"
101
-            :label="'处方'+(index+1)"
102
+            :label="'处方' + (index + 1)"
102 103
             :name="index"
103 104
           >
104 105
             <el-table
@@ -109,56 +110,56 @@
109 110
               border
110 111
               :row-style="{ color: '#303133' }"
111 112
               :header-cell-style="{
112
-                  backgroundColor: 'rgb(245, 247, 250)',
113
-                  color: '#606266',
114
-                }"
113
+                backgroundColor: 'rgb(245, 247, 250)',
114
+                color: '#606266',
115
+              }"
115 116
             >
116 117
               <el-table-column fixed label="药品名称" width="230">
117 118
                 <template slot-scope="scope">
118
-                  {{scope.row.advice_name}}
119
+                  {{ scope.row.advice_name }}
119 120
                 </template>
120 121
               </el-table-column>
121 122
               <el-table-column label="单次用量" width="200">
122 123
                 <template slot-scope="scope">
123
-                  {{scope.row.single_dose}}{{scope.row.single_dose_unit}}
124
+                  {{ scope.row.single_dose }}{{ scope.row.single_dose_unit }}
124 125
                 </template>
125 126
               </el-table-column>
126 127
               <el-table-column label="用法" width="120">
127 128
                 <template slot-scope="scope">
128
-                  {{scope.row.delivery_way}}
129
+                  {{ scope.row.delivery_way }}
129 130
                 </template>
130 131
               </el-table-column>
131 132
               <el-table-column label="频率" width="120">
132 133
                 <template slot-scope="scope">
133
-                  {{scope.row.execution_frequency}}
134
+                  {{ scope.row.execution_frequency }}
134 135
                 </template>
135 136
               </el-table-column>
136 137
               <el-table-column label="天数" width="110">
137
-                <template slot-scope="scope">
138
-                  {{scope.row.day}}天
139
-                </template>
138
+                <template slot-scope="scope"> {{ scope.row.day }}天 </template>
140 139
               </el-table-column>
141 140
               <el-table-column label="总量" width="200">
142 141
                 <template slot-scope="scope">
143
-                  {{scope.row.prescribing_number}}{{scope.row.prescribing_number_unit}}
142
+                  {{ scope.row.prescribing_number
143
+                  }}{{ scope.row.prescribing_number_unit }}
144 144
                 </template>
145 145
               </el-table-column>
146 146
               <el-table-column label="单价" width="120">
147 147
                 <template slot-scope="scope">
148
-                  {{scope.row.price}}元
148
+                  {{ scope.row.price }}元
149 149
                 </template>
150 150
               </el-table-column>
151 151
               <el-table-column label="备注" width="120">
152 152
                 <template slot-scope="scope">
153
-                  {{scope.row.remark}}
153
+                  {{ scope.row.remark }}
154 154
                 </template>
155 155
               </el-table-column>
156 156
               <el-table-column label="操作" width="120">
157 157
                 <template slot-scope="scope">
158 158
                   <el-button
159
-                    @click.native.prevent="delects(scope.$index,scope,item)"
159
+                    @click.native.prevent="delects(scope.$index, scope, item)"
160 160
                     type="text"
161
-                    size="small">
161
+                    size="small"
162
+                  >
162 163
                     删除
163 164
                   </el-button>
164 165
                 </template>
@@ -173,72 +174,85 @@
173 174
               border
174 175
               :row-style="{ color: '#303133' }"
175 176
               :header-cell-style="{
176
-                  backgroundColor: 'rgb(245, 247, 250)',
177
-                  color: '#606266',
178
-                }"
177
+                backgroundColor: 'rgb(245, 247, 250)',
178
+                color: '#606266',
179
+              }"
179 180
             >
180 181
               <el-table-column fixed label="项目名称" width="230">
181 182
                 <template slot-scope="scope">
182
-                  <div v-if="scope.row.type == 2">{{scope.row.project.project_name}}</div>
183
-                  <div v-if="scope.row.type == 3">{{scope.row.good_info.good_name}}</div>
183
+                  <div v-if="scope.row.type == 2">
184
+                    {{ scope.row.project.project_name }}
185
+                  </div>
186
+                  <div v-if="scope.row.type == 3">
187
+                    {{ scope.row.good_info.good_name }}
188
+                  </div>
184 189
                 </template>
185 190
               </el-table-column>
186 191
               <el-table-column label="组" width="120">
187 192
                 <template slot-scope="scope">
188
-                  <div v-if="scope.row.type == 2">{{scope.row.project.translate}}</div>
189
-                  <div v-if="scope.row.type == 3">{{scope.row.good_info.translate}}</div>
193
+                  <div v-if="scope.row.type == 2">
194
+                    {{ scope.row.project.translate }}
195
+                  </div>
196
+                  <div v-if="scope.row.type == 3">
197
+                    {{ scope.row.good_info.translate }}
198
+                  </div>
190 199
                 </template>
191 200
               </el-table-column>
192 201
               <el-table-column label="单次用量" width="120">
193 202
                 <template slot-scope="scope">
194
-                  {{scope.row.single_dose}}
203
+                  {{ scope.row.single_dose }}
195 204
                   {{ scope.row.unit }}
196 205
                 </template>
197 206
               </el-table-column>
198 207
               <el-table-column label="用法" width="120">
199 208
                 <template slot-scope="scope">
200
-                  {{scope.row.delivery_way}}
209
+                  {{ scope.row.delivery_way }}
201 210
                 </template>
202 211
               </el-table-column>
203 212
               <el-table-column label="频率" width="120">
204 213
                 <template slot-scope="scope">
205
-                  {{scope.row.execution_frequency}}
214
+                  {{ scope.row.execution_frequency }}
206 215
                 </template>
207 216
               </el-table-column>
208 217
               <el-table-column label="天数" width="110">
209
-                <template slot-scope="scope">
210
-                  {{scope.row.day}}天
211
-                </template>
218
+                <template slot-scope="scope"> {{ scope.row.day }}天 </template>
212 219
               </el-table-column>
213 220
               <el-table-column label="总量" width="100">
214 221
                 <template slot-scope="scope">
215
-                  {{scope.row.count}}
222
+                  {{ scope.row.count }}
216 223
                   {{ scope.row.unit }}
217 224
                 </template>
218 225
               </el-table-column>
219 226
               <el-table-column label="单价" width="120">
220 227
                 <template slot-scope="scope">
221
-                  {{scope.row.price}}元
228
+                  {{ scope.row.price }}元
222 229
                 </template>
223 230
               </el-table-column>
224 231
               <el-table-column label="备注" width="120">
225 232
                 <template slot-scope="scope">
226
-                  {{scope.row.remark}}
233
+                  {{ scope.row.remark }}
227 234
                 </template>
228 235
               </el-table-column>
229 236
               <el-table-column label="推送频率" width="120">
230 237
                 <template slot-scope="scope">
231
-                  <div v-if="scope.row.frequency_type == 1">{{'每次必推'}}</div>
232
-                  <div v-if="scope.row.frequency_type == 2">{{scope.row.day_count}}天/次</div>
233
-                  <div v-if="scope.row.frequency_type == 3">{{scope.row.week_days}}</div>
238
+                  <div v-if="scope.row.frequency_type == 1">
239
+                    {{ "每次必推" }}
240
+                  </div>
241
+                  <div v-if="scope.row.frequency_type == 2">
242
+                    {{ scope.row.day_count }}天/次
243
+                  </div>
244
+                  <div v-if="scope.row.frequency_type == 3">
245
+                    {{ scope.row.week_days }}
246
+                  </div>
234 247
                 </template>
235 248
               </el-table-column>
236 249
               <el-table-column fixed="right" label="操作" width="102">
237 250
                 <template slot-scope="scope">
238 251
                   <el-button
239
-                    @click.native.prevent="delects(scope.$index,scope,item)"
252
+                    @click.native.prevent="delects(scope.$index, scope, item)"
240 253
                     type="text"
241
-                    size="small">
254
+                    size="small"
255
+                  >
242 256
                     删除
243 257
                   </el-button>
244 258
                 </template>
@@ -246,9 +260,6 @@
246 260
             </el-table>
247 261
           </el-tab-pane>
248 262
         </el-tabs>
249
-
250
-
251
-
252 263
       </el-container>
253 264
     </div>
254 265
   </div>
@@ -263,7 +274,7 @@ import {
263 274
   batchdeleteitems,
264 275
   getmodeconfigs,
265 276
   ptemplateinformation,
266
-  deleteone
277
+  deleteone,
267 278
 } from "@/api/batch/batch";
268 279
 
269 280
 export default {
@@ -273,93 +284,128 @@ export default {
273 284
       tableList: [],
274 285
       editableTabsValue: "1",
275 286
       modeOptions: {},
276
-      tableDatas:[{
277
-        id: "",
278
-        drug_name: "",
279
-        single_dose: "",
280
-        single_dose_unit: "",
281
-        delivery_way: "",
282
-        execution_frequency: "",
283
-        day: "",
284
-        prescribing_number: "",
285
-        prescribing_number_unit: "",
286
-        price: "",
287
-        remark: "",
288
-      },],//药品
289
-      project:[ {
290
-        id: "",
291
-        drug_name: "",
292
-        translate:"",
293
-        single_dose: "",
294
-        unit: "",
295
-        delivery_way: "",
296
-        execution_frequency: "",
297
-        day: "",
298
-        prescribing_number: "",
299
-        price: "",
300
-        remark: "",
301
-        frequency_type:1,
302
-        day_count:"",
303
-        week_days:"",
304
-      },],//项目
287
+      tableDatas: [
288
+        {
289
+          id: "",
290
+          drug_name: "",
291
+          single_dose: "",
292
+          single_dose_unit: "",
293
+          delivery_way: "",
294
+          execution_frequency: "",
295
+          day: "",
296
+          prescribing_number: "",
297
+          prescribing_number_unit: "",
298
+          price: "",
299
+          remark: "",
300
+        },
301
+      ], //药品
302
+      project: [
303
+        {
304
+          id: "",
305
+          drug_name: "",
306
+          translate: "",
307
+          single_dose: "",
308
+          unit: "",
309
+          delivery_way: "",
310
+          execution_frequency: "",
311
+          day: "",
312
+          prescribing_number: "",
313
+          price: "",
314
+          remark: "",
315
+          frequency_type: 1,
316
+          day_count: "",
317
+          week_days: "",
318
+        },
319
+      ], //项目
305 320
       tabIndex: 2,
306 321
       modeOptions_value: 1, //透析模式
307
-      multipleSelection: [],//选中的患者
308
-      tableData:[],
309
-      options:[{id:1,name:"药品"},{id:2,name:"项目"}],
310
-      options_patient:[{id:1,name:"是"},{id:2,name:"否"}],
311
-      options_2:[{id:1,name:"普通门诊"},{id:2,name:"门诊特殊病"}],
312
-      new_type:1,//新增类型
313
-      druglist:[],//药品列表
314
-      projectlist:[],//项目列表
315
-      id:"",//药品、项目、耗材
316
-      tmplist:[],//临时
317
-      unit:[{id:1,name:"g"},{id:2,name:"mg"},{id:3,name:"u"},{id:4,name:"ml"},{id:5,name:"万U"},{id:6,name:"枚"},{id:7,name:"粒"},
318
-        {id:8,name:"片"},{id:9,name:"支"},{id:10,name:"μg"},{id:11,name:"iu"},{id:12,name:"包"},{id:13,name:"袋"},{id:14,name:"万"},
319
-        {id:15,name:"万iu"},{id:16,name:"丸"},{id:17,name:"盒"},{id:18,name:"瓶"},{id:19,name:"瓶(袋)"},{id:20,name:"次"}],
320
-      usage:[],//用法
321
-      frequency:[],//频率
322
-      frequency_type:"",//周期提醒
323
-      day_count:"",//周期提醒天
324
-      week_days:[],//周期提醒星期
325
-      tabhang:0,//tab的下标
326
-      hang:0,//行数
327
-      list:[],
328
-      isshow:0,//是否显示处方
329
-      tmpid:0,
330
-
331
-    }
322
+      multipleSelection: [], //选中的患者
323
+      tableData: [],
324
+      options: [
325
+        { id: 1, name: "药品" },
326
+        { id: 2, name: "项目" },
327
+      ],
328
+      options_patient: [
329
+        { id: 1, name: "是" },
330
+        { id: 2, name: "否" },
331
+      ],
332
+      options_2: [
333
+        { id: 1, name: "普通门诊" },
334
+        { id: 2, name: "门诊特殊病" },
335
+      ],
336
+      new_type: 1, //新增类型
337
+      druglist: [], //药品列表
338
+      projectlist: [], //项目列表
339
+      id: "", //药品、项目、耗材
340
+      tmplist: [], //临时
341
+      unit: [
342
+        { id: 1, name: "g" },
343
+        { id: 2, name: "mg" },
344
+        { id: 3, name: "u" },
345
+        { id: 4, name: "ml" },
346
+        { id: 5, name: "万U" },
347
+        { id: 6, name: "枚" },
348
+        { id: 7, name: "粒" },
349
+        { id: 8, name: "片" },
350
+        { id: 9, name: "支" },
351
+        { id: 10, name: "μg" },
352
+        { id: 11, name: "iu" },
353
+        { id: 12, name: "包" },
354
+        { id: 13, name: "袋" },
355
+        { id: 14, name: "万" },
356
+        { id: 15, name: "万iu" },
357
+        { id: 16, name: "丸" },
358
+        { id: 17, name: "盒" },
359
+        { id: 18, name: "瓶" },
360
+        { id: 19, name: "瓶(袋)" },
361
+        { id: 20, name: "次" },
362
+      ],
363
+      usage: [], //用法
364
+      frequency: [], //频率
365
+      frequency_type: "", //周期提醒
366
+      day_count: "", //周期提醒天
367
+      week_days: [], //周期提醒星期
368
+      tabhang: 0, //tab的下标
369
+      hang: 0, //行数
370
+      list: [],
371
+      isshow: 0, //是否显示处方
372
+      tmpid: 0,
373
+    };
332 374
   },
333 375
   created() {
334 376
     // console.log("this.$store.getters.treatment_mode",this.$store.getters.treatment_mode)
335 377
     for (let key in this.$store.getters.treatment_mode) {
336
-      this.modeOptions[key] = this.$store.getters.treatment_mode[key]
378
+      this.modeOptions[key] = this.$store.getters.treatment_mode[key];
337 379
     }
338 380
     // console.log("this.modeOptions",this.modeOptions)
339 381
     this.getdrugconfigs();
340
-    this.isshow = 0
382
+    this.isshow = 0;
341 383
     this.tmpid = 0;
342 384
   },
343 385
   methods: {
344 386
     save() {
345
-      var tmp = this.modeOptions[this.modeOptions_value].name
346
-      var tmp2 = ""
347
-      if (this.druglist != null){
348
-        for(let i = 0;i < this.druglist.length;i++){
349
-          if (this.id == this.druglist[i].id){
350
-            tmp2 = this.druglist[i].name
387
+      var tmp = this.modeOptions[this.modeOptions_value].name;
388
+      var tmp2 = "";
389
+      if (this.druglist != null) {
390
+        for (let i = 0; i < this.druglist.length; i++) {
391
+          if (this.id == this.druglist[i].id) {
392
+            tmp2 = this.druglist[i].name;
351 393
           }
352 394
         }
353 395
       }
354
-      if(this.projectlist != null){
355
-        for (let j = 0;j < this.projectlist.length;j++){
356
-          if (this.id == this.projectlist[j].id){
357
-            tmp2 = this.projectlist[j].name
396
+      if (this.projectlist != null) {
397
+        for (let j = 0; j < this.projectlist.length; j++) {
398
+          if (this.id == this.projectlist[j].id) {
399
+            tmp2 = this.projectlist[j].name;
358 400
           }
359 401
         }
360 402
       }
361 403
       this.$confirm(
362
-        "注:该操作将会把所选患者的"+tmp+"透析模式中的"+tmp2+"进行删除,请确定是否删除?",
404
+        "注:该操作将会把所选患者的" +
405
+          tmp +
406
+          "透析模式中的" +
407
+          tmp2 +
408
+          "进行删除,请确定是否删除?",
363 409
         "",
364 410
         {
365 411
           confirmButtonText: "确 定",
@@ -367,174 +413,177 @@ export default {
367 413
           type: "warning",
368 414
         }
369 415
       ).then(() => {
370
-        if (this.multipleSelection.length == 0){
371
-          this.$message.error('没有选中有效信息')
372
-          return
416
+        if (this.multipleSelection.length == 0) {
417
+          this.$message.error("没有选中有效信息");
418
+          return;
373 419
         }
374
-        let st = ""
375
-        for (let i = 0;i < this.multipleSelection.length;i++){
376
-          st = st + this.multipleSelection[i].id + ","
420
+        let st = "";
421
+        for (let i = 0; i < this.multipleSelection.length; i++) {
422
+          st = st + this.multipleSelection[i].id + ",";
377 423
         }
378
-        console.log("string",st)
424
+        console.log("string", st);
379 425
         let params = {
380
-          mode_id:this.modeOptions_value,
426
+          mode_id: this.modeOptions_value,
381 427
           patient_id: st,
382
-          type:this.new_type,
428
+          type: this.new_type,
383 429
           replaced: this.id,
384
-        }
385
-        if (this.new_type == 1){
386
-          deletedrugsbatch(params).then((res) =>{
387
-            if (res.data.state == 1){
388
-              this.$message.success('删除成功')
389
-              this.getUsername()
390
-            }else{
391
-              this.$message.error(res.data.msg)
430
+        };
431
+        if (this.new_type == 1) {
432
+          deletedrugsbatch(params).then((res) => {
433
+            if (res.data.state == 1) {
434
+              this.$message.success("删除成功");
435
+              this.getUsername();
436
+            } else {
437
+              this.$message.error(res.data.msg);
392 438
             }
393
-          })
394
-        }else{
395
-          batchdeleteitems(params).then((res) =>{
396
-            if (res.data.state == 1){
397
-              this.$message.success('删除成功')
398
-              this.getUsername()
399
-            }else{
400
-              this.$message.error(res.data.msg)
439
+          });
440
+        } else {
441
+          batchdeleteitems(params).then((res) => {
442
+            if (res.data.state == 1) {
443
+              this.$message.success("删除成功");
444
+              this.getUsername();
445
+            } else {
446
+              this.$message.error(res.data.msg);
401 447
             }
402
-          })
448
+          });
403 449
         }
404 450
       });
405 451
     },
406
-    test(val){
407
-      console.log("val?:",val);
408
-      this.tmpid = val.id
452
+    test(val) {
453
+      console.log("val?:", val);
454
+      this.tmpid = val.id;
409 455
       var params = {
410
-        mode_id:this.modeOptions_value,
411
-        patient_id:val.id,
412
-      }
413
-      ptemplateinformation(params).then((res) =>{
414
-        if (res.data.state == 1){
415
-          this.list = res.data.data.list
416
-          this.isshow = 1
456
+        mode_id: this.modeOptions_value,
457
+        patient_id: val.id,
458
+      };
459
+      ptemplateinformation(params).then((res) => {
460
+        if (res.data.state == 1) {
461
+          this.list = res.data.data.list;
462
+          this.isshow = 1;
417 463
         }
418
-      })
464
+      });
419 465
     },
420 466
     lili() {
421
-      console.log("this.list",this.list);
422
-      console.log("this.multipleSelection",this.multipleSelection)
467
+      console.log("this.list", this.list);
468
+      console.log("this.multipleSelection", this.multipleSelection);
423 469
       // console.log("this.mode",this.modeOptions_value)
424 470
       // console.log("this.projectlist2",this.projectlist2)
425 471
       // console.log("patient_value",this.patient_value)
426 472
     },
427
-    delects(hang,sc,item){
428
-      console.log("hang",hang)
429
-      console.log("sc",sc)
430
-      console.log("item",item)
431
-      var params ={
432
-        type:item.type,//1药品2项目
433
-        id:sc.row.id,
434
-      }
473
+    delects(hang, sc, item) {
474
+      console.log("hang", hang);
475
+      console.log("sc", sc);
476
+      console.log("item", item);
477
+      var params = {
478
+        type: item.type, //1药品2项目
479
+        id: sc.row.id,
480
+      };
435 481
       var params2 = {
436
-        mode_id:this.modeOptions_value,
437
-        patient_id:this.tmpid,
438
-      }
439
-      deleteone(params).then((res) =>{
440
-        if (res.data.state == 1){
441
-          this.$message.success('删除成功')
442
-          ptemplateinformation(params2).then((res) =>{
443
-            if (res.data.state == 1){
444
-              this.list = res.data.data.list
445
-              this.isshow = 1
482
+        mode_id: this.modeOptions_value,
483
+        patient_id: this.tmpid,
484
+      };
485
+      deleteone(params).then((res) => {
486
+        if (res.data.state == 1) {
487
+          this.$message.success("删除成功");
488
+          ptemplateinformation(params2).then((res) => {
489
+            if (res.data.state == 1) {
490
+              this.list = res.data.data.list;
491
+              this.isshow = 1;
446 492
             }
447
-          })
493
+          });
448 494
         }
449
-      })
450
-
451
-
495
+      });
452 496
     },
453
-    changetype(){
454
-      console.log(">>>>>>>",this.new_type)
455
-      this.id = ""
456
-      this.tableData = []
497
+    changetype() {
498
+      console.log(">>>>>>>", this.new_type);
499
+      this.id = "";
500
+      this.tableData = [];
457 501
     },
458
-    changeid(item,index){
459
-      item.id = item.drug_name
502
+    changeid(item, index) {
503
+      item.id = item.drug_name;
460 504
       var params = {
461
-        id:item.id
462
-      }
463
-      getdrugsinformation(params).then((res) =>{
464
-        if (res.data.state == 1){
465
-          console.log("res??",res)
505
+        id: item.id,
506
+      };
507
+      getdrugsinformation(params).then((res) => {
508
+        if (res.data.state == 1) {
509
+          console.log("res??", res);
466 510
           this.tableDatas[0].single_dose = res.data.data.list[0].single_dose;
467
-          this.tableDatas[0].single_dose_unit = res.data.data.list[0].single_dose_unit;
511
+          this.tableDatas[0].single_dose_unit =
512
+            res.data.data.list[0].single_dose_unit;
468 513
           this.tableDatas[0].delivery_way = res.data.data.list[0].delivery_way;
469
-          this.tableDatas[0].execution_frequency = res.data.data.list[0].execution_frequency;
514
+          this.tableDatas[0].execution_frequency =
515
+            res.data.data.list[0].execution_frequency;
470 516
           this.tableDatas[0].day = res.data.data.list[0].drug_day;
471
-          this.tableDatas[0].prescribing_number = res.data.data.list[0].prescribing_number;
472
-          this.tableDatas[0].prescribing_number_unit = res.data.data.list[0].prescribing_number_unit;
517
+          this.tableDatas[0].prescribing_number =
518
+            res.data.data.list[0].prescribing_number;
519
+          this.tableDatas[0].prescribing_number_unit =
520
+            res.data.data.list[0].prescribing_number_unit;
473 521
           this.tableDatas[0].price = res.data.data.list[0].retail_price;
474 522
           this.tableDatas[0].remark = res.data.data.list[0].remark;
475 523
         }
476
-      })
524
+      });
477 525
     },
478 526
     handleSelectionChange(val) {
479 527
       this.multipleSelection = val;
480 528
     },
481
-    changeid2(item,index){
482
-      item.id = item.drug_name
529
+    changeid2(item, index) {
530
+      item.id = item.drug_name;
483 531
       var params = {
484
-        id:item.id
485
-      }
486
-      getdrugsinformation(params).then((res) =>{
487
-        if (res.data.state == 1){
488
-          console.log("res??",res)
532
+        id: item.id,
533
+      };
534
+      getdrugsinformation(params).then((res) => {
535
+        if (res.data.state == 1) {
536
+          console.log("res??", res);
489 537
           this.project[0].single_dose = res.data.data.list[0].single_dose;
490 538
           this.project[0].translate = res.data.data.list[0].translate;
491 539
           this.project[0].delivery_way = res.data.data.list[0].delivery_way;
492
-          this.project[0].execution_frequency = res.data.data.list[0].execution_frequency;
540
+          this.project[0].execution_frequency =
541
+            res.data.data.list[0].execution_frequency;
493 542
           this.project[0].day = res.data.data.list[0].day;
494
-          this.project[0].prescribing_number = res.data.data.list[0].prescribing_number;
543
+          this.project[0].prescribing_number =
544
+            res.data.data.list[0].prescribing_number;
495 545
           this.project[0].unit = res.data.data.list[0].unit;
496 546
           this.project[0].price = res.data.data.list[0].retail_price;
497 547
           this.project[0].remark = res.data.data.list[0].remark;
498 548
         }
499
-      })
549
+      });
500 550
     },
501 551
     //获取配置
502
-    getdrugconfigs(){
503
-      var params = {}
504
-      replaceconfig(params).then((res) =>{
505
-        if (res.data.state == 1){
506
-          this.druglist = res.data.data.list
507
-          this.projectlist = res.data.data.list2
552
+    getdrugconfigs() {
553
+      var params = {};
554
+      replaceconfig(params).then((res) => {
555
+        if (res.data.state == 1) {
556
+          this.druglist = res.data.data.list;
557
+          this.projectlist = res.data.data.list2;
508 558
         }
509
-      })
510
-      getmodeconfigs(params).then((res) =>{
511
-        if (res.data.state == 1){
512
-          this.frequency = res.data.data.efs
513
-          this.usage = res.data.data.drugways
559
+      });
560
+      getmodeconfigs(params).then((res) => {
561
+        if (res.data.state == 1) {
562
+          this.frequency = res.data.data.efs;
563
+          this.usage = res.data.data.drugways;
514 564
         }
515
-      })
565
+      });
516 566
     },
517
-    getUsername(){
567
+    getUsername() {
518 568
       var params = {
519 569
         id: this.id,
520
-        mode: this.modeOptions_value
521
-      }
522
-      replacepeoplename(params).then((res) =>{
523
-        if (res.data.state == 1){
524
-          this.tableData = res.data.data.list
570
+        mode: this.modeOptions_value,
571
+      };
572
+      replacepeoplename(params).then((res) => {
573
+        if (res.data.state == 1) {
574
+          this.tableData = res.data.data.list;
525 575
         }
526
-      })
576
+      });
527 577
     },
528 578
     handleClose(done) {
529
-      this.$confirm('确认关闭?')
530
-        .then(_ => {
579
+      this.$confirm("确认关闭?")
580
+        .then((_) => {
531 581
           done();
532 582
         })
533
-        .catch(_ => {});
534
-    }
535
-  }
536
-
537
-}
583
+        .catch((_) => {});
584
+    },
585
+  },
586
+};
538 587
 </script>
539 588
 
540 589
 
@@ -544,59 +593,61 @@ export default {
544 593
   margin-bottom: 10px;
545 594
   display: flex;
546 595
   justify-content: space-between;
547
-.banner_left {
548
-  width: 1000px;
549
-  display: flex;
550
-  justify-content: space-around;
551
-div {
552
-  white-space: nowrap;
553
-}
554
-}
596
+  .banner_left {
597
+    width: 1000px;
598
+    display: flex;
599
+    justify-content: space-around;
600
+    div {
601
+      font-size: 14px;
602
+      color: #606266;
603
+      white-space: nowrap;
604
+    }
605
+  }
555 606
 }
556 607
 .zone {
557
-//  margin-left: 30px;
558
-//  text-align: left;
608
+  //  margin-left: 30px;
609
+  //  text-align: left;
559 610
   width: 70px;
560 611
   display: inline-block;
561 612
   color: #606266;
562 613
 }
563 614
 .disinfect {
564 615
   position: relative;
565
-.newButton {
566
-// position: absolute;
567
-// right: 2%;
568
-// top:4px;
569
-// z-index: 9;
570
-  margin-bottom: 10px;
571
-  margin-left: 90%;
572
-}
616
+  .newButton {
617
+    // position: absolute;
618
+    // right: 2%;
619
+    // top:4px;
620
+    // z-index: 9;
621
+    margin-bottom: 10px;
622
+    margin-left: 90%;
623
+  }
573 624
 }
574 625
 .disinfectOne {
575 626
   position: relative;
576
-.newButtonOne {
577
-  position: absolute;
578
-  right: 0;
579
-  top: -10;
580
-  z-index: 18;
581
-}
627
+  .newButtonOne {
628
+    position: absolute;
629
+    right: 0;
630
+    top: -10;
631
+    z-index: 18;
632
+  }
582 633
 }
583 634
 .but {
584 635
   width: 200px;
585 636
   height: 50px;
586
-// border: solid 1px red;
637
+  // border: solid 1px red;
587 638
   margin-left: 77%;
588 639
 }
589 640
 .clearn {
590 641
   width: 460px;
591 642
   height: 50px;
592
-// border:solid 1px red;
643
+  // border:solid 1px red;
593 644
   margin-left: 650px;
594 645
 }
595 646
 
596 647
 .zClass {
597 648
   width: 200px;
598 649
   height: 200px;
599
-// border:solid 1px red;
650
+  // border:solid 1px red;
600 651
   margin-left: 450px;
601 652
   margin-top: 200px;
602 653
 }
@@ -620,41 +671,41 @@ div {
620 671
 }
621 672
 
622 673
 .b {
623
-.el-button {
624
-  margin-left: 90%;
625
-  margin-bottom: 10px;
626
-}
674
+  .el-button {
675
+    margin-left: 90%;
676
+    margin-bottom: 10px;
677
+  }
627 678
 }
628 679
 
629 680
 .stoppage {
630
-.el-form-item__label {
631
-  width: 190px;
632
-}
681
+  .el-form-item__label {
682
+    width: 190px;
683
+  }
633 684
 }
634 685
 .st {
635
-.el-form-item__label {
636
-  width: -10px;
637
-}
686
+  .el-form-item__label {
687
+    width: -10px;
688
+  }
638 689
 }
639 690
 .main {
640 691
   position: relative;
641
-.newButtonOne {
642
-  position: absolute;
643
-  right: 0;
644
-  z-index: 2;
645
-}
692
+  .newButtonOne {
693
+    position: absolute;
694
+    right: 0;
695
+    z-index: 2;
696
+  }
646 697
 }
647 698
 
648 699
 .elbutton {
649
-// border: solid 1px red;
700
+  // border: solid 1px red;
650 701
   height: 50px;
651 702
   width: 400px;
652 703
   margin-left: 650px;
653 704
 }
654 705
 // .el-form-item__label {
655
-   //   width: 130px;
656
-   //   font-size: 14px;
657
-   // }
706
+//   width: 130px;
707
+//   font-size: 14px;
708
+// }
658 709
 .el-form-item__error {
659 710
   margin-left: 130px;
660 711
 }
@@ -673,45 +724,40 @@ div {
673 724
   padding-top: 0px;
674 725
 }
675 726
 .newMain {
676
-.el-form-item__label {
677
-  width: 104px;
678
-}
727
+  .el-form-item__label {
728
+    width: 104px;
729
+  }
679 730
 }
680 731
 .newDisinfectOne {
681
-.el-input--prefix .el-input__inner {
682
-  padding-left: 15px;
683
-}
732
+  .el-input--prefix .el-input__inner {
733
+    padding-left: 15px;
734
+  }
684 735
 }
685 736
 .stoppage {
686
-.el-form-item__label {
687
-  width: 18%;
688
-}
737
+  .el-form-item__label {
738
+    width: 18%;
739
+  }
689 740
 }
690 741
 .newItem {
691
-.el-form-item__label {
692
-  width: 130px;
693
-}
742
+  .el-form-item__label {
743
+    width: 130px;
744
+  }
694 745
 }
695 746
 .formItem {
696
-.el-form-item__label {
697
-  width: 104px;
698
-  line-height: 30px;
699
-}
747
+  .el-form-item__label {
748
+    width: 104px;
749
+    line-height: 30px;
750
+  }
700 751
 }
701 752
 .newname {
702
-.el-form-item__label {
703
-  width: 60px;
704
-}
753
+  .el-form-item__label {
754
+    width: 60px;
755
+  }
705 756
 }
706 757
 ::-webkit-scrollbar {
707 758
   height: 20px;
708 759
 }
709 760
 
710
-.el-button {
711
-  color: #fff;
712
-  background-color: #409eff;
713
-  border-color: #409eff;
714
-}
715 761
 .el-table td .cell {
716 762
   padding: 0 10px;
717 763
 }

+ 96 - 68
src/xt_pages/outpatientDoctorStation/batch_mode_template.vue View File

@@ -55,11 +55,11 @@
55 55
         </div>
56 56
 
57 57
         <button @click="lili">调试</button>
58
-        <el-button @click="save">保存</el-button>
58
+        <el-button type="primary" @click="save">保存</el-button>
59 59
       </div>
60 60
 
61 61
       <el-container>
62
-        <div style="width: 211px">
62
+        <div style="width: 211px;border: 1px solid #DCDFE6;box-shadow: 0 2px 4px 0 rgb(0 0 0 / 12%), 0 0 6px 0 rgb(0 0 0 / 4%);">
63 63
           <el-table
64 64
             border
65 65
             height="550"
@@ -74,8 +74,8 @@
74 74
               color: '#606266',
75 75
             }"
76 76
           >
77
-            <el-table-column type="selection" width="55"> </el-table-column>
78
-            <el-table-column label="患者姓名" width="155">
77
+            <el-table-column type="selection" width="55" align="center"> </el-table-column>
78
+            <el-table-column label="患者姓名" width="152" align="center">
79 79
               <template slot-scope="scope">{{ scope.row.name }}</template>
80 80
             </el-table-column>
81 81
           </el-table>
@@ -85,6 +85,7 @@
85 85
           <el-tabs
86 86
             v-model="editableTabsValue"
87 87
             type="border-card"
88
+            style="min-height: 530px;"
88 89
             editable
89 90
             @tab-click="dian"
90 91
             @edit="handleTabsEdit"
@@ -122,7 +123,7 @@
122 123
                   color: '#606266',
123 124
                 }"
124 125
               >
125
-                <el-table-column fixed label="新增药品名称" width="230">
126
+                <el-table-column fixed label="新增药品名称" width="240" align="center">
126 127
                   <template slot-scope="scope">
127 128
                     <el-select
128 129
                       filterable
@@ -141,7 +142,7 @@
141 142
                     </el-select>
142 143
                   </template>
143 144
                 </el-table-column>
144
-                <el-table-column label="单次用量" width="200">
145
+                <el-table-column label="单次用量" width="190">
145 146
                   <template slot-scope="scope">
146 147
                     <el-input
147 148
                       v-model="scope.row.single_dose"
@@ -163,7 +164,7 @@
163 164
                     </el-select>
164 165
                   </template>
165 166
                 </el-table-column>
166
-                <el-table-column label="用法" width="125">
167
+                <el-table-column label="用法" width="130" align="center"> 
167 168
                   <template slot-scope="scope">
168 169
                     <el-select
169 170
                       v-model="scope.row.delivery_way"
@@ -179,7 +180,7 @@
179 180
                     </el-select>
180 181
                   </template>
181 182
                 </el-table-column>
182
-                <el-table-column label="频率" width="120">
183
+                <el-table-column label="频率" width="130" align="center">
183 184
                   <template slot-scope="scope">
184 185
                     <el-select
185 186
                       v-model="scope.row.execution_frequency"
@@ -200,12 +201,12 @@
200 201
                     <el-input
201 202
                       v-model="scope.row.day"
202 203
                       placeholder="请输入"
203
-                      style="width: 75px"
204
+                      style="width: 85px"
204 205
                     ></el-input
205 206
                     >天
206 207
                   </template>
207 208
                 </el-table-column>
208
-                <el-table-column label="总量" width="200">
209
+                <el-table-column label="总量" width="185" align="center">
209 210
                   <template slot-scope="scope">
210 211
                     <el-input
211 212
                       v-model="scope.row.prescribing_number"
@@ -227,7 +228,7 @@
227 228
                     </el-select>
228 229
                   </template>
229 230
                 </el-table-column>
230
-                <el-table-column label="单价" width="120">
231
+                <el-table-column label="单价" width="125" align="center">
231 232
                   <template slot-scope="scope">
232 233
                     <el-input
233 234
                       v-model="scope.row.price"
@@ -236,7 +237,7 @@
236 237
                     >元
237 238
                   </template>
238 239
                 </el-table-column>
239
-                <el-table-column label="备注" width="120">
240
+                <el-table-column label="备注" width="129">
240 241
                   <template slot-scope="scope">
241 242
                     <el-input
242 243
                       v-model="scope.row.remark"
@@ -244,27 +245,25 @@
244 245
                     ></el-input>
245 246
                   </template>
246 247
                 </el-table-column>
247
-                <el-table-column label="操作" width="120">
248
+                <el-table-column label="操作" width="150" align="center">
248 249
                   <template slot-scope="scope">
249 250
                     <el-button
250 251
                       @click.native.prevent="
251 252
                         addRow(scope.$index, item.tableDatas)
252 253
                       "
253
-                      type="text"
254
+                      type="primary"
254 255
                       size="small"
255
-                      style="width: 30px; height: 30px"
256
-                    >添加
257
-<!--                      <i class="el-icon-circle-plus-outline"></i>-->
256
+                      >添加
257
+                      <!--                      <i class="el-icon-circle-plus-outline"></i>-->
258 258
                     </el-button>
259 259
                     <el-button
260
-                      style="width: 30px; height: 30px"
261 260
                       @click.native.prevent="
262 261
                         deleteRow(scope.$index, item.tableDatas)
263 262
                       "
264
-                      type="text"
263
+                      type="danger"
265 264
                       size="small"
266
-                    >移除
267
-<!--                      <i class="el-icon-remove-outline"></i>-->
265
+                      >移除
266
+                      <!--                      <i class="el-icon-remove-outline"></i>-->
268 267
                     </el-button>
269 268
                   </template>
270 269
                 </el-table-column>
@@ -282,7 +281,7 @@
282 281
                   color: '#606266',
283 282
                 }"
284 283
               >
285
-                <el-table-column fixed label="新增项目名称" width="230">
284
+                <el-table-column fixed label="新增项目名称" width="230" align="center">
286 285
                   <template slot-scope="scope">
287 286
                     <el-select
288 287
                       filterable
@@ -301,12 +300,12 @@
301 300
                     </el-select>
302 301
                   </template>
303 302
                 </el-table-column>
304
-                <el-table-column label="组" width="120">
303
+                <el-table-column label="组" width="100" align="center">
305 304
                   <template slot-scope="scope">
306 305
                     {{ scope.row.translate }}
307 306
                   </template>
308 307
                 </el-table-column>
309
-                <el-table-column label="单次用量" width="200">
308
+                <el-table-column label="单次用量" width="120" align="center">
310 309
                   <template slot-scope="scope">
311 310
                     <el-input
312 311
                       v-model="scope.row.single_dose"
@@ -315,7 +314,7 @@
315 314
                     {{ scope.row.unit }}
316 315
                   </template>
317 316
                 </el-table-column>
318
-                <el-table-column label="用法" width="120">
317
+                <el-table-column label="用法" width="120" align="center">
319 318
                   <template slot-scope="scope">
320 319
                     <el-select
321 320
                       v-model="scope.row.delivery_way"
@@ -331,7 +330,7 @@
331 330
                     </el-select>
332 331
                   </template>
333 332
                 </el-table-column>
334
-                <el-table-column label="频率" width="120">
333
+                <el-table-column label="频率" width="120" align="center">
335 334
                   <template slot-scope="scope">
336 335
                     <el-select
337 336
                       v-model="scope.row.execution_frequency"
@@ -347,7 +346,7 @@
347 346
                     </el-select>
348 347
                   </template>
349 348
                 </el-table-column>
350
-                <el-table-column label="天数" width="110">
349
+                <el-table-column label="天数" width="114" align="center">
351 350
                   <template slot-scope="scope">
352 351
                     <el-input
353 352
                       v-model="scope.row.day"
@@ -357,7 +356,7 @@
357 356
                     >天
358 357
                   </template>
359 358
                 </el-table-column>
360
-                <el-table-column label="总量" width="200">
359
+                <el-table-column label="总量" width="110" align="center">
361 360
                   <template slot-scope="scope">
362 361
                     <el-input
363 362
                       v-model="scope.row.prescribing_number"
@@ -367,7 +366,7 @@
367 366
                     {{ scope.row.unit }}
368 367
                   </template>
369 368
                 </el-table-column>
370
-                <el-table-column label="单价" width="120">
369
+                <el-table-column label="单价" width="120" align="center">
371 370
                   <template slot-scope="scope">
372 371
                     <el-input
373 372
                       v-model="scope.row.price"
@@ -376,7 +375,7 @@
376 375
                     >元
377 376
                   </template>
378 377
                 </el-table-column>
379
-                <el-table-column label="备注" width="120">
378
+                <el-table-column label="备注" width="110" align="center">
380 379
                   <template slot-scope="scope">
381 380
                     <el-input
382 381
                       v-model="scope.row.remark"
@@ -384,32 +383,44 @@
384 383
                     ></el-input>
385 384
                   </template>
386 385
                 </el-table-column>
387
-                <el-table-column label="推送频率" width="120" v-if="1==2">
386
+                <el-table-column label="推送频率" width="100" align="center">
388 387
                   <template slot-scope="scope">
389
-                    <div v-if="scope.row.frequency_type == 1">
388
+                    <div
389
+                      v-if="scope.row.frequency_type == 1"
390
+                      class="frequence"
391
+                      style="text-align: center"
392
+                    >
390 393
                       {{ "每次必推" }}
391 394
                     </div>
392
-                    <div v-if="scope.row.frequency_type == 2">
395
+                    <div
396
+                      v-if="scope.row.frequency_type == 2"
397
+                      class="frequence"
398
+                      style="text-align: center"
399
+                    >
393 400
                       {{ scope.row.day_count }}天/次
394 401
                     </div>
395
-                    <div v-if="scope.row.frequency_type == 3">
402
+                    <div
403
+                      v-if="scope.row.frequency_type == 3"
404
+                      class="frequence"
405
+                      style="text-align: center"
406
+                    >
396 407
                       {{ scope.row.week_days }}
397 408
                     </div>
398 409
                   </template>
399 410
                 </el-table-column>
400
-                <el-table-column fixed="right" label="操作" width="102">
411
+                <el-table-column label="操作" width="150" align="center">
401 412
                   <template slot-scope="scope">
402
-<!--                    <el-button-->
403
-<!--                      @click.native.prevent="addopen(scope.$index)"-->
404
-<!--                      type="text"-->
405
-<!--                      size="small">-->
406
-<!--                      推送-->
407
-<!--                    </el-button>-->
413
+                    <!--                    <el-button-->
414
+                    <!--                      @click.native.prevent="addopen(scope.$index)"-->
415
+                    <!--                      type="text"-->
416
+                    <!--                      size="small">-->
417
+                    <!--                      推送-->
418
+                    <!--                    </el-button>-->
408 419
                     <el-button
409 420
                       @click.native.prevent="
410 421
                         addRow2(scope.$index, item.project)
411 422
                       "
412
-                      type="text"
423
+                      type="primary"
413 424
                       size="small"
414 425
                     >
415 426
                       添加
@@ -418,7 +429,7 @@
418 429
                       @click.native.prevent="
419 430
                         deleteRow(scope.$index, item.project)
420 431
                       "
421
-                      type="text"
432
+                      type="danger"
422 433
                       size="small"
423 434
                     >
424 435
                       移除
@@ -561,10 +572,11 @@
561 572
               <!--                </el-table-column>-->
562 573
               <!--              </el-table>-->
563 574
             </el-tab-pane>
564
-            <el-tab-pane name="more" closable v-if="dayorMonth == 'day'"><span slot="label"><i
565
-                                class="el-icon-plus"
566
-                                @click="addTab"></i></span>
567
-                        </el-tab-pane>
575
+            <el-tab-pane name="more" closable v-if="dayorMonth == 'day'"
576
+              ><span slot="label"
577
+                ><i class="el-icon-plus" @click="addTab"></i
578
+              ></span>
579
+            </el-tab-pane>
568 580
           </el-tabs>
569 581
         </el-main>
570 582
       </el-container>
@@ -1007,11 +1019,11 @@ export default {
1007 1019
       }
1008 1020
     },
1009 1021
     deleteRow(index, rows) {
1010
-      console.log("index",index)
1011
-      console.log("rows",rows)
1012
-      if(rows.length == 1){
1013
-        this.$message.error("最后一条处方,不能删除")
1014
-        return
1022
+      console.log("index", index);
1023
+      console.log("rows", rows);
1024
+      if (rows.length == 1) {
1025
+        this.$message.error("最后一条处方,不能删除");
1026
+        return;
1015 1027
       }
1016 1028
       rows.splice(index, 1);
1017 1029
     },
@@ -1090,9 +1102,9 @@ export default {
1090 1102
     handleSelectionChange(val) {
1091 1103
       this.multipleSelection = val;
1092 1104
     },
1093
-    handleTabsEdit(targetName, action,tab) {
1094
-      this.tabhang = this.editableTabs.length
1095
-      console.log("this.tabhang3",this.tabhang)
1105
+    handleTabsEdit(targetName, action, tab) {
1106
+      this.tabhang = this.editableTabs.length;
1107
+      console.log("this.tabhang3", this.tabhang);
1096 1108
       if (action === "add") {
1097 1109
         let newTabName = ++this.tabIndex + "";
1098 1110
         let tmp = this.editableTabs.length + 1;
@@ -1136,9 +1148,9 @@ export default {
1136 1148
         this.editableTabsValue = newTabName;
1137 1149
       }
1138 1150
       if (action === "remove") {
1139
-        if(this.editableTabs.length == 1){
1140
-          this.$message.error("最后一条处方,不能删除")
1141
-          return
1151
+        if (this.editableTabs.length == 1) {
1152
+          this.$message.error("最后一条处方,不能删除");
1153
+          return;
1142 1154
         }
1143 1155
         let tabs = this.editableTabs;
1144 1156
         let activeName = this.editableTabsValue;
@@ -1180,11 +1192,17 @@ export default {
1180 1192
 
1181 1193
 
1182 1194
 <style lang="scss" scoped>
1195
+::v-deep .el-tabs__content {
1196
+  padding: 8px;
1197
+}
1198
+
1199
+/deep/ .el-table__fixed {
1200
+  // bottom: 20px !important;
1201
+}
1183 1202
 .app-container {
1203
+  padding: 10px;
1184 1204
   background: #f6f8f9;
1185 1205
   .el-container {
1186
-    -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27),
1187
-      0 0 60px rgba(0, 0, 0, 0.06) inset;
1188 1206
   }
1189 1207
 }
1190 1208
 ::v-deep .el-table__body-wrapper {
@@ -1196,7 +1214,7 @@ export default {
1196 1214
   display: flex;
1197 1215
   justify-content: space-between;
1198 1216
   .banner_left {
1199
-    width: 1000px;
1217
+    width: 960px;
1200 1218
     display: flex;
1201 1219
     justify-content: space-around;
1202 1220
     div {
@@ -1206,6 +1224,12 @@ export default {
1206 1224
     }
1207 1225
   }
1208 1226
 }
1227
+.frequence {
1228
+  text-align: center;
1229
+}
1230
+/deep/ .el-button--small {
1231
+  padding: 9px 6px;
1232
+}
1209 1233
 .zone {
1210 1234
   //  margin-left: 30px;
1211 1235
   //  text-align: left;
@@ -1324,7 +1348,15 @@ export default {
1324 1348
 }
1325 1349
 .el-main {
1326 1350
   padding-top: 0px;
1351
+  padding-left: 27px;
1352
+  padding-right: 0px;
1353
+  .el-tabs{
1354
+    .el-tabs__content{
1355
+      padding: 12px;
1356
+    }
1357
+  }
1327 1358
 }
1359
+
1328 1360
 .newMain {
1329 1361
   .el-form-item__label {
1330 1362
     width: 104px;
@@ -1332,7 +1364,8 @@ export default {
1332 1364
 }
1333 1365
 .newDisinfectOne {
1334 1366
   .el-input--prefix .el-input__inner {
1335
-    padding-left: 15px;
1367
+    // padding-left: 15px;
1368
+    padding-right: 0px !important;
1336 1369
   }
1337 1370
 }
1338 1371
 .stoppage {
@@ -1360,12 +1393,7 @@ export default {
1360 1393
   height: 20px;
1361 1394
 }
1362 1395
 
1363
-.el-button {
1364
-  color: #fff;
1365
-  background-color: #409eff;
1366
-  border-color: #409eff;
1367
-}
1368 1396
 .el-table td .cell {
1369
-  padding: 0 10px;
1397
+  padding: 0 5px !important;
1370 1398
 }
1371 1399
 </style>

+ 1 - 6
src/xt_pages/outpatientDoctorStation/batch_replacement.vue View File

@@ -69,7 +69,7 @@
69 69
         </div>
70 70
 
71 71
         <button @click="lili">调试</button>
72
-        <el-button @click="save">保存</el-button>
72
+        <el-button type="primary" @click="save">保存</el-button>
73 73
       </div>
74 74
 
75 75
       <el-container>
@@ -990,11 +990,6 @@ export default {
990 990
   height: 20px;
991 991
 }
992 992
 
993
-.el-button {
994
-  color: #fff;
995
-  background-color: #409eff;
996
-  border-color: #409eff;
997
-}
998 993
 .el-table td .cell {
999 994
   padding: 0 10px;
1000 995
 }

+ 4 - 4
src/xt_pages/outpatientDoctorStation/components/prescriptionTemplateTable.vue View File

@@ -4,14 +4,14 @@
4 4
         <el-table v-if="prescription.advices && prescription.advices.length > 0" :data="prescription.advices" border
5 5
                   style="width: 99%;" :row-style="{ color: '#303133' }"
6 6
                   :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" highlight-current-row>
7
-            <el-table-column align="center" width="70" label="序号">
7
+            <el-table-column align="center" width="50" label="序号">
8 8
                 <template slot-scope="scope">
9 9
                     <div style="display:flex;align-items:center;">
10 10
                         <el-input v-model="scope.row.groupno" placeholder=""></el-input>
11 11
                     </div>
12 12
                 </template>
13 13
             </el-table-column>
14
-            <el-table-column align="center" prop="drug_name" label="名称">
14
+            <el-table-column align="center" prop="drug_name" label="名称"  width="447" >
15 15
                 <template slot-scope="scope"><span :title="scope.row.drug_name">{{ scope.row.drug_name }}</span>
16 16
                 </template>
17 17
             </el-table-column>
@@ -98,7 +98,7 @@
98 98
                 </template>
99 99
             </el-table-column>
100 100
 
101
-            <el-table-column align="center" prop="remark" width="50" label="推送频率">
101
+            <el-table-column align="center" prop="remark" width="70" label="推送频率">
102 102
                 <template slot-scope="scope">
103 103
                     <div v-if="scope.row.frequency_type == 1">{{'每次必推'}}</div>
104 104
                     <div v-if="scope.row.frequency_type == 2">{{scope.row.day_count}}天/次</div>
@@ -108,7 +108,7 @@
108 108
             </el-table-column>
109 109
 
110 110
 
111
-            <el-table-column align="center" width="100" prop="name" label="操作">
111
+            <el-table-column align="center" width="140" prop="name" label="操作">
112 112
                 <template slot-scope="scope">
113 113
                     <!--<i class="el-icon-delete" @click="deleteDrug(scope.$index, scope.row)"></i>-->
114 114
                     <el-button size="mini" type="primary" @click="handleEdit(scope.row,scope.$index)">推送</el-button>