huangyw 2 lat temu
rodzic
commit
60c8b04c36

+ 346 - 300
src/xt_pages/outpatientDoctorStation/batch_delete.vue Wyświetl plik

6
         <div class="banner_left">
6
         <div class="banner_left">
7
           <div>
7
           <div>
8
             透析模式:
8
             透析模式:
9
-            <el-select
10
-              v-model="modeOptions_value"
11
-              placeholder="请选择"
12
-            >
9
+            <el-select v-model="modeOptions_value" placeholder="请选择">
13
               <el-option
10
               <el-option
14
                 v-for="item in modeOptions"
11
                 v-for="item in modeOptions"
15
                 :key="item.id"
12
                 :key="item.id"
21
           </div>
18
           </div>
22
           <div>
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
               <el-option
26
               <el-option
26
                 v-for="item in options"
27
                 v-for="item in options"
27
                 :key="item.id"
28
                 :key="item.id"
67
           </div>
68
           </div>
68
         </div>
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
       </div>
73
       </div>
73
 
74
 
74
       <el-container>
75
       <el-container>
89
           >
90
           >
90
             <el-table-column type="selection" width="55"> </el-table-column>
91
             <el-table-column type="selection" width="55"> </el-table-column>
91
             <el-table-column label="患者姓名" width="155">
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
             </el-table-column>
94
             </el-table-column>
94
           </el-table>
95
           </el-table>
95
         </div>
96
         </div>
96
 
97
 
97
         <el-tabs type="border-card" v-if="isshow == 1 && list.length > 0">
98
         <el-tabs type="border-card" v-if="isshow == 1 && list.length > 0">
98
           <el-tab-pane
99
           <el-tab-pane
99
-            v-for="(item,index) in list"
100
+            v-for="(item, index) in list"
100
             :key="index"
101
             :key="index"
101
-            :label="'处方'+(index+1)"
102
+            :label="'处方' + (index + 1)"
102
             :name="index"
103
             :name="index"
103
           >
104
           >
104
             <el-table
105
             <el-table
109
               border
110
               border
110
               :row-style="{ color: '#303133' }"
111
               :row-style="{ color: '#303133' }"
111
               :header-cell-style="{
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
               <el-table-column fixed label="药品名称" width="230">
117
               <el-table-column fixed label="药品名称" width="230">
117
                 <template slot-scope="scope">
118
                 <template slot-scope="scope">
118
-                  {{scope.row.advice_name}}
119
+                  {{ scope.row.advice_name }}
119
                 </template>
120
                 </template>
120
               </el-table-column>
121
               </el-table-column>
121
               <el-table-column label="单次用量" width="200">
122
               <el-table-column label="单次用量" width="200">
122
                 <template slot-scope="scope">
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
                 </template>
125
                 </template>
125
               </el-table-column>
126
               </el-table-column>
126
               <el-table-column label="用法" width="120">
127
               <el-table-column label="用法" width="120">
127
                 <template slot-scope="scope">
128
                 <template slot-scope="scope">
128
-                  {{scope.row.delivery_way}}
129
+                  {{ scope.row.delivery_way }}
129
                 </template>
130
                 </template>
130
               </el-table-column>
131
               </el-table-column>
131
               <el-table-column label="频率" width="120">
132
               <el-table-column label="频率" width="120">
132
                 <template slot-scope="scope">
133
                 <template slot-scope="scope">
133
-                  {{scope.row.execution_frequency}}
134
+                  {{ scope.row.execution_frequency }}
134
                 </template>
135
                 </template>
135
               </el-table-column>
136
               </el-table-column>
136
               <el-table-column label="天数" width="110">
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
               </el-table-column>
139
               </el-table-column>
141
               <el-table-column label="总量" width="200">
140
               <el-table-column label="总量" width="200">
142
                 <template slot-scope="scope">
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
                 </template>
144
                 </template>
145
               </el-table-column>
145
               </el-table-column>
146
               <el-table-column label="单价" width="120">
146
               <el-table-column label="单价" width="120">
147
                 <template slot-scope="scope">
147
                 <template slot-scope="scope">
148
-                  {{scope.row.price}}元
148
+                  {{ scope.row.price }}元
149
                 </template>
149
                 </template>
150
               </el-table-column>
150
               </el-table-column>
151
               <el-table-column label="备注" width="120">
151
               <el-table-column label="备注" width="120">
152
                 <template slot-scope="scope">
152
                 <template slot-scope="scope">
153
-                  {{scope.row.remark}}
153
+                  {{ scope.row.remark }}
154
                 </template>
154
                 </template>
155
               </el-table-column>
155
               </el-table-column>
156
               <el-table-column label="操作" width="120">
156
               <el-table-column label="操作" width="120">
157
                 <template slot-scope="scope">
157
                 <template slot-scope="scope">
158
                   <el-button
158
                   <el-button
159
-                    @click.native.prevent="delects(scope.$index,scope,item)"
159
+                    @click.native.prevent="delects(scope.$index, scope, item)"
160
                     type="text"
160
                     type="text"
161
-                    size="small">
161
+                    size="small"
162
+                  >
162
                     删除
163
                     删除
163
                   </el-button>
164
                   </el-button>
164
                 </template>
165
                 </template>
173
               border
174
               border
174
               :row-style="{ color: '#303133' }"
175
               :row-style="{ color: '#303133' }"
175
               :header-cell-style="{
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
               <el-table-column fixed label="项目名称" width="230">
181
               <el-table-column fixed label="项目名称" width="230">
181
                 <template slot-scope="scope">
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
                 </template>
189
                 </template>
185
               </el-table-column>
190
               </el-table-column>
186
               <el-table-column label="组" width="120">
191
               <el-table-column label="组" width="120">
187
                 <template slot-scope="scope">
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
                 </template>
199
                 </template>
191
               </el-table-column>
200
               </el-table-column>
192
               <el-table-column label="单次用量" width="120">
201
               <el-table-column label="单次用量" width="120">
193
                 <template slot-scope="scope">
202
                 <template slot-scope="scope">
194
-                  {{scope.row.single_dose}}
203
+                  {{ scope.row.single_dose }}
195
                   {{ scope.row.unit }}
204
                   {{ scope.row.unit }}
196
                 </template>
205
                 </template>
197
               </el-table-column>
206
               </el-table-column>
198
               <el-table-column label="用法" width="120">
207
               <el-table-column label="用法" width="120">
199
                 <template slot-scope="scope">
208
                 <template slot-scope="scope">
200
-                  {{scope.row.delivery_way}}
209
+                  {{ scope.row.delivery_way }}
201
                 </template>
210
                 </template>
202
               </el-table-column>
211
               </el-table-column>
203
               <el-table-column label="频率" width="120">
212
               <el-table-column label="频率" width="120">
204
                 <template slot-scope="scope">
213
                 <template slot-scope="scope">
205
-                  {{scope.row.execution_frequency}}
214
+                  {{ scope.row.execution_frequency }}
206
                 </template>
215
                 </template>
207
               </el-table-column>
216
               </el-table-column>
208
               <el-table-column label="天数" width="110">
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
               </el-table-column>
219
               </el-table-column>
213
               <el-table-column label="总量" width="100">
220
               <el-table-column label="总量" width="100">
214
                 <template slot-scope="scope">
221
                 <template slot-scope="scope">
215
-                  {{scope.row.count}}
222
+                  {{ scope.row.count }}
216
                   {{ scope.row.unit }}
223
                   {{ scope.row.unit }}
217
                 </template>
224
                 </template>
218
               </el-table-column>
225
               </el-table-column>
219
               <el-table-column label="单价" width="120">
226
               <el-table-column label="单价" width="120">
220
                 <template slot-scope="scope">
227
                 <template slot-scope="scope">
221
-                  {{scope.row.price}}元
228
+                  {{ scope.row.price }}元
222
                 </template>
229
                 </template>
223
               </el-table-column>
230
               </el-table-column>
224
               <el-table-column label="备注" width="120">
231
               <el-table-column label="备注" width="120">
225
                 <template slot-scope="scope">
232
                 <template slot-scope="scope">
226
-                  {{scope.row.remark}}
233
+                  {{ scope.row.remark }}
227
                 </template>
234
                 </template>
228
               </el-table-column>
235
               </el-table-column>
229
               <el-table-column label="推送频率" width="120">
236
               <el-table-column label="推送频率" width="120">
230
                 <template slot-scope="scope">
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
                 </template>
247
                 </template>
235
               </el-table-column>
248
               </el-table-column>
236
               <el-table-column fixed="right" label="操作" width="102">
249
               <el-table-column fixed="right" label="操作" width="102">
237
                 <template slot-scope="scope">
250
                 <template slot-scope="scope">
238
                   <el-button
251
                   <el-button
239
-                    @click.native.prevent="delects(scope.$index,scope,item)"
252
+                    @click.native.prevent="delects(scope.$index, scope, item)"
240
                     type="text"
253
                     type="text"
241
-                    size="small">
254
+                    size="small"
255
+                  >
242
                     删除
256
                     删除
243
                   </el-button>
257
                   </el-button>
244
                 </template>
258
                 </template>
246
             </el-table>
260
             </el-table>
247
           </el-tab-pane>
261
           </el-tab-pane>
248
         </el-tabs>
262
         </el-tabs>
249
-
250
-
251
-
252
       </el-container>
263
       </el-container>
253
     </div>
264
     </div>
254
   </div>
265
   </div>
263
   batchdeleteitems,
274
   batchdeleteitems,
264
   getmodeconfigs,
275
   getmodeconfigs,
265
   ptemplateinformation,
276
   ptemplateinformation,
266
-  deleteone
277
+  deleteone,
267
 } from "@/api/batch/batch";
278
 } from "@/api/batch/batch";
268
 
279
 
269
 export default {
280
 export default {
273
       tableList: [],
284
       tableList: [],
274
       editableTabsValue: "1",
285
       editableTabsValue: "1",
275
       modeOptions: {},
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
       tabIndex: 2,
320
       tabIndex: 2,
306
       modeOptions_value: 1, //透析模式
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
   created() {
375
   created() {
334
     // console.log("this.$store.getters.treatment_mode",this.$store.getters.treatment_mode)
376
     // console.log("this.$store.getters.treatment_mode",this.$store.getters.treatment_mode)
335
     for (let key in this.$store.getters.treatment_mode) {
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
     // console.log("this.modeOptions",this.modeOptions)
380
     // console.log("this.modeOptions",this.modeOptions)
339
     this.getdrugconfigs();
381
     this.getdrugconfigs();
340
-    this.isshow = 0
382
+    this.isshow = 0;
341
     this.tmpid = 0;
383
     this.tmpid = 0;
342
   },
384
   },
343
   methods: {
385
   methods: {
344
     save() {
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
       this.$confirm(
403
       this.$confirm(
362
-        "注:该操作将会把所选患者的"+tmp+"透析模式中的"+tmp2+"进行删除,请确定是否删除?",
404
+        "注:该操作将会把所选患者的" +
405
+          tmp +
406
+          "透析模式中的" +
407
+          tmp2 +
408
+          "进行删除,请确定是否删除?",
363
         "",
409
         "",
364
         {
410
         {
365
           confirmButtonText: "确 定",
411
           confirmButtonText: "确 定",
367
           type: "warning",
413
           type: "warning",
368
         }
414
         }
369
       ).then(() => {
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
         let params = {
425
         let params = {
380
-          mode_id:this.modeOptions_value,
426
+          mode_id: this.modeOptions_value,
381
           patient_id: st,
427
           patient_id: st,
382
-          type:this.new_type,
428
+          type: this.new_type,
383
           replaced: this.id,
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
       var params = {
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
     lili() {
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
       // console.log("this.mode",this.modeOptions_value)
469
       // console.log("this.mode",this.modeOptions_value)
424
       // console.log("this.projectlist2",this.projectlist2)
470
       // console.log("this.projectlist2",this.projectlist2)
425
       // console.log("patient_value",this.patient_value)
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
       var params2 = {
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
       var params = {
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
           this.tableDatas[0].single_dose = res.data.data.list[0].single_dose;
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
           this.tableDatas[0].delivery_way = res.data.data.list[0].delivery_way;
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
           this.tableDatas[0].day = res.data.data.list[0].drug_day;
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
           this.tableDatas[0].price = res.data.data.list[0].retail_price;
521
           this.tableDatas[0].price = res.data.data.list[0].retail_price;
474
           this.tableDatas[0].remark = res.data.data.list[0].remark;
522
           this.tableDatas[0].remark = res.data.data.list[0].remark;
475
         }
523
         }
476
-      })
524
+      });
477
     },
525
     },
478
     handleSelectionChange(val) {
526
     handleSelectionChange(val) {
479
       this.multipleSelection = val;
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
       var params = {
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
           this.project[0].single_dose = res.data.data.list[0].single_dose;
537
           this.project[0].single_dose = res.data.data.list[0].single_dose;
490
           this.project[0].translate = res.data.data.list[0].translate;
538
           this.project[0].translate = res.data.data.list[0].translate;
491
           this.project[0].delivery_way = res.data.data.list[0].delivery_way;
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
           this.project[0].day = res.data.data.list[0].day;
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
           this.project[0].unit = res.data.data.list[0].unit;
545
           this.project[0].unit = res.data.data.list[0].unit;
496
           this.project[0].price = res.data.data.list[0].retail_price;
546
           this.project[0].price = res.data.data.list[0].retail_price;
497
           this.project[0].remark = res.data.data.list[0].remark;
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
       var params = {
568
       var params = {
519
         id: this.id,
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
     handleClose(done) {
578
     handleClose(done) {
529
-      this.$confirm('确认关闭?')
530
-        .then(_ => {
579
+      this.$confirm("确认关闭?")
580
+        .then((_) => {
531
           done();
581
           done();
532
         })
582
         })
533
-        .catch(_ => {});
534
-    }
535
-  }
536
-
537
-}
583
+        .catch((_) => {});
584
+    },
585
+  },
586
+};
538
 </script>
587
 </script>
539
 
588
 
540
 
589
 
544
   margin-bottom: 10px;
593
   margin-bottom: 10px;
545
   display: flex;
594
   display: flex;
546
   justify-content: space-between;
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
 .zone {
607
 .zone {
557
-//  margin-left: 30px;
558
-//  text-align: left;
608
+  //  margin-left: 30px;
609
+  //  text-align: left;
559
   width: 70px;
610
   width: 70px;
560
   display: inline-block;
611
   display: inline-block;
561
   color: #606266;
612
   color: #606266;
562
 }
613
 }
563
 .disinfect {
614
 .disinfect {
564
   position: relative;
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
 .disinfectOne {
625
 .disinfectOne {
575
   position: relative;
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
 .but {
634
 .but {
584
   width: 200px;
635
   width: 200px;
585
   height: 50px;
636
   height: 50px;
586
-// border: solid 1px red;
637
+  // border: solid 1px red;
587
   margin-left: 77%;
638
   margin-left: 77%;
588
 }
639
 }
589
 .clearn {
640
 .clearn {
590
   width: 460px;
641
   width: 460px;
591
   height: 50px;
642
   height: 50px;
592
-// border:solid 1px red;
643
+  // border:solid 1px red;
593
   margin-left: 650px;
644
   margin-left: 650px;
594
 }
645
 }
595
 
646
 
596
 .zClass {
647
 .zClass {
597
   width: 200px;
648
   width: 200px;
598
   height: 200px;
649
   height: 200px;
599
-// border:solid 1px red;
650
+  // border:solid 1px red;
600
   margin-left: 450px;
651
   margin-left: 450px;
601
   margin-top: 200px;
652
   margin-top: 200px;
602
 }
653
 }
620
 }
671
 }
621
 
672
 
622
 .b {
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
 .stoppage {
680
 .stoppage {
630
-.el-form-item__label {
631
-  width: 190px;
632
-}
681
+  .el-form-item__label {
682
+    width: 190px;
683
+  }
633
 }
684
 }
634
 .st {
685
 .st {
635
-.el-form-item__label {
636
-  width: -10px;
637
-}
686
+  .el-form-item__label {
687
+    width: -10px;
688
+  }
638
 }
689
 }
639
 .main {
690
 .main {
640
   position: relative;
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
 .elbutton {
699
 .elbutton {
649
-// border: solid 1px red;
700
+  // border: solid 1px red;
650
   height: 50px;
701
   height: 50px;
651
   width: 400px;
702
   width: 400px;
652
   margin-left: 650px;
703
   margin-left: 650px;
653
 }
704
 }
654
 // .el-form-item__label {
705
 // .el-form-item__label {
655
-   //   width: 130px;
656
-   //   font-size: 14px;
657
-   // }
706
+//   width: 130px;
707
+//   font-size: 14px;
708
+// }
658
 .el-form-item__error {
709
 .el-form-item__error {
659
   margin-left: 130px;
710
   margin-left: 130px;
660
 }
711
 }
673
   padding-top: 0px;
724
   padding-top: 0px;
674
 }
725
 }
675
 .newMain {
726
 .newMain {
676
-.el-form-item__label {
677
-  width: 104px;
678
-}
727
+  .el-form-item__label {
728
+    width: 104px;
729
+  }
679
 }
730
 }
680
 .newDisinfectOne {
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
 .stoppage {
736
 .stoppage {
686
-.el-form-item__label {
687
-  width: 18%;
688
-}
737
+  .el-form-item__label {
738
+    width: 18%;
739
+  }
689
 }
740
 }
690
 .newItem {
741
 .newItem {
691
-.el-form-item__label {
692
-  width: 130px;
693
-}
742
+  .el-form-item__label {
743
+    width: 130px;
744
+  }
694
 }
745
 }
695
 .formItem {
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
 .newname {
752
 .newname {
702
-.el-form-item__label {
703
-  width: 60px;
704
-}
753
+  .el-form-item__label {
754
+    width: 60px;
755
+  }
705
 }
756
 }
706
 ::-webkit-scrollbar {
757
 ::-webkit-scrollbar {
707
   height: 20px;
758
   height: 20px;
708
 }
759
 }
709
 
760
 
710
-.el-button {
711
-  color: #fff;
712
-  background-color: #409eff;
713
-  border-color: #409eff;
714
-}
715
 .el-table td .cell {
761
 .el-table td .cell {
716
   padding: 0 10px;
762
   padding: 0 10px;
717
 }
763
 }

+ 96 - 68
src/xt_pages/outpatientDoctorStation/batch_mode_template.vue Wyświetl plik

55
         </div>
55
         </div>
56
 
56
 
57
         <button @click="lili">调试</button>
57
         <button @click="lili">调试</button>
58
-        <el-button @click="save">保存</el-button>
58
+        <el-button type="primary" @click="save">保存</el-button>
59
       </div>
59
       </div>
60
 
60
 
61
       <el-container>
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
           <el-table
63
           <el-table
64
             border
64
             border
65
             height="550"
65
             height="550"
74
               color: '#606266',
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
               <template slot-scope="scope">{{ scope.row.name }}</template>
79
               <template slot-scope="scope">{{ scope.row.name }}</template>
80
             </el-table-column>
80
             </el-table-column>
81
           </el-table>
81
           </el-table>
85
           <el-tabs
85
           <el-tabs
86
             v-model="editableTabsValue"
86
             v-model="editableTabsValue"
87
             type="border-card"
87
             type="border-card"
88
+            style="min-height: 530px;"
88
             editable
89
             editable
89
             @tab-click="dian"
90
             @tab-click="dian"
90
             @edit="handleTabsEdit"
91
             @edit="handleTabsEdit"
122
                   color: '#606266',
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
                   <template slot-scope="scope">
127
                   <template slot-scope="scope">
127
                     <el-select
128
                     <el-select
128
                       filterable
129
                       filterable
141
                     </el-select>
142
                     </el-select>
142
                   </template>
143
                   </template>
143
                 </el-table-column>
144
                 </el-table-column>
144
-                <el-table-column label="单次用量" width="200">
145
+                <el-table-column label="单次用量" width="190">
145
                   <template slot-scope="scope">
146
                   <template slot-scope="scope">
146
                     <el-input
147
                     <el-input
147
                       v-model="scope.row.single_dose"
148
                       v-model="scope.row.single_dose"
163
                     </el-select>
164
                     </el-select>
164
                   </template>
165
                   </template>
165
                 </el-table-column>
166
                 </el-table-column>
166
-                <el-table-column label="用法" width="125">
167
+                <el-table-column label="用法" width="130" align="center"> 
167
                   <template slot-scope="scope">
168
                   <template slot-scope="scope">
168
                     <el-select
169
                     <el-select
169
                       v-model="scope.row.delivery_way"
170
                       v-model="scope.row.delivery_way"
179
                     </el-select>
180
                     </el-select>
180
                   </template>
181
                   </template>
181
                 </el-table-column>
182
                 </el-table-column>
182
-                <el-table-column label="频率" width="120">
183
+                <el-table-column label="频率" width="130" align="center">
183
                   <template slot-scope="scope">
184
                   <template slot-scope="scope">
184
                     <el-select
185
                     <el-select
185
                       v-model="scope.row.execution_frequency"
186
                       v-model="scope.row.execution_frequency"
200
                     <el-input
201
                     <el-input
201
                       v-model="scope.row.day"
202
                       v-model="scope.row.day"
202
                       placeholder="请输入"
203
                       placeholder="请输入"
203
-                      style="width: 75px"
204
+                      style="width: 85px"
204
                     ></el-input
205
                     ></el-input
205
                     >天
206
                     >天
206
                   </template>
207
                   </template>
207
                 </el-table-column>
208
                 </el-table-column>
208
-                <el-table-column label="总量" width="200">
209
+                <el-table-column label="总量" width="185" align="center">
209
                   <template slot-scope="scope">
210
                   <template slot-scope="scope">
210
                     <el-input
211
                     <el-input
211
                       v-model="scope.row.prescribing_number"
212
                       v-model="scope.row.prescribing_number"
227
                     </el-select>
228
                     </el-select>
228
                   </template>
229
                   </template>
229
                 </el-table-column>
230
                 </el-table-column>
230
-                <el-table-column label="单价" width="120">
231
+                <el-table-column label="单价" width="125" align="center">
231
                   <template slot-scope="scope">
232
                   <template slot-scope="scope">
232
                     <el-input
233
                     <el-input
233
                       v-model="scope.row.price"
234
                       v-model="scope.row.price"
236
                     >元
237
                     >元
237
                   </template>
238
                   </template>
238
                 </el-table-column>
239
                 </el-table-column>
239
-                <el-table-column label="备注" width="120">
240
+                <el-table-column label="备注" width="129">
240
                   <template slot-scope="scope">
241
                   <template slot-scope="scope">
241
                     <el-input
242
                     <el-input
242
                       v-model="scope.row.remark"
243
                       v-model="scope.row.remark"
244
                     ></el-input>
245
                     ></el-input>
245
                   </template>
246
                   </template>
246
                 </el-table-column>
247
                 </el-table-column>
247
-                <el-table-column label="操作" width="120">
248
+                <el-table-column label="操作" width="150" align="center">
248
                   <template slot-scope="scope">
249
                   <template slot-scope="scope">
249
                     <el-button
250
                     <el-button
250
                       @click.native.prevent="
251
                       @click.native.prevent="
251
                         addRow(scope.$index, item.tableDatas)
252
                         addRow(scope.$index, item.tableDatas)
252
                       "
253
                       "
253
-                      type="text"
254
+                      type="primary"
254
                       size="small"
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
                     </el-button>
258
                     </el-button>
259
                     <el-button
259
                     <el-button
260
-                      style="width: 30px; height: 30px"
261
                       @click.native.prevent="
260
                       @click.native.prevent="
262
                         deleteRow(scope.$index, item.tableDatas)
261
                         deleteRow(scope.$index, item.tableDatas)
263
                       "
262
                       "
264
-                      type="text"
263
+                      type="danger"
265
                       size="small"
264
                       size="small"
266
-                    >移除
267
-<!--                      <i class="el-icon-remove-outline"></i>-->
265
+                      >移除
266
+                      <!--                      <i class="el-icon-remove-outline"></i>-->
268
                     </el-button>
267
                     </el-button>
269
                   </template>
268
                   </template>
270
                 </el-table-column>
269
                 </el-table-column>
282
                   color: '#606266',
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
                   <template slot-scope="scope">
285
                   <template slot-scope="scope">
287
                     <el-select
286
                     <el-select
288
                       filterable
287
                       filterable
301
                     </el-select>
300
                     </el-select>
302
                   </template>
301
                   </template>
303
                 </el-table-column>
302
                 </el-table-column>
304
-                <el-table-column label="组" width="120">
303
+                <el-table-column label="组" width="100" align="center">
305
                   <template slot-scope="scope">
304
                   <template slot-scope="scope">
306
                     {{ scope.row.translate }}
305
                     {{ scope.row.translate }}
307
                   </template>
306
                   </template>
308
                 </el-table-column>
307
                 </el-table-column>
309
-                <el-table-column label="单次用量" width="200">
308
+                <el-table-column label="单次用量" width="120" align="center">
310
                   <template slot-scope="scope">
309
                   <template slot-scope="scope">
311
                     <el-input
310
                     <el-input
312
                       v-model="scope.row.single_dose"
311
                       v-model="scope.row.single_dose"
315
                     {{ scope.row.unit }}
314
                     {{ scope.row.unit }}
316
                   </template>
315
                   </template>
317
                 </el-table-column>
316
                 </el-table-column>
318
-                <el-table-column label="用法" width="120">
317
+                <el-table-column label="用法" width="120" align="center">
319
                   <template slot-scope="scope">
318
                   <template slot-scope="scope">
320
                     <el-select
319
                     <el-select
321
                       v-model="scope.row.delivery_way"
320
                       v-model="scope.row.delivery_way"
331
                     </el-select>
330
                     </el-select>
332
                   </template>
331
                   </template>
333
                 </el-table-column>
332
                 </el-table-column>
334
-                <el-table-column label="频率" width="120">
333
+                <el-table-column label="频率" width="120" align="center">
335
                   <template slot-scope="scope">
334
                   <template slot-scope="scope">
336
                     <el-select
335
                     <el-select
337
                       v-model="scope.row.execution_frequency"
336
                       v-model="scope.row.execution_frequency"
347
                     </el-select>
346
                     </el-select>
348
                   </template>
347
                   </template>
349
                 </el-table-column>
348
                 </el-table-column>
350
-                <el-table-column label="天数" width="110">
349
+                <el-table-column label="天数" width="114" align="center">
351
                   <template slot-scope="scope">
350
                   <template slot-scope="scope">
352
                     <el-input
351
                     <el-input
353
                       v-model="scope.row.day"
352
                       v-model="scope.row.day"
357
                     >天
356
                     >天
358
                   </template>
357
                   </template>
359
                 </el-table-column>
358
                 </el-table-column>
360
-                <el-table-column label="总量" width="200">
359
+                <el-table-column label="总量" width="110" align="center">
361
                   <template slot-scope="scope">
360
                   <template slot-scope="scope">
362
                     <el-input
361
                     <el-input
363
                       v-model="scope.row.prescribing_number"
362
                       v-model="scope.row.prescribing_number"
367
                     {{ scope.row.unit }}
366
                     {{ scope.row.unit }}
368
                   </template>
367
                   </template>
369
                 </el-table-column>
368
                 </el-table-column>
370
-                <el-table-column label="单价" width="120">
369
+                <el-table-column label="单价" width="120" align="center">
371
                   <template slot-scope="scope">
370
                   <template slot-scope="scope">
372
                     <el-input
371
                     <el-input
373
                       v-model="scope.row.price"
372
                       v-model="scope.row.price"
376
                     >元
375
                     >元
377
                   </template>
376
                   </template>
378
                 </el-table-column>
377
                 </el-table-column>
379
-                <el-table-column label="备注" width="120">
378
+                <el-table-column label="备注" width="110" align="center">
380
                   <template slot-scope="scope">
379
                   <template slot-scope="scope">
381
                     <el-input
380
                     <el-input
382
                       v-model="scope.row.remark"
381
                       v-model="scope.row.remark"
384
                     ></el-input>
383
                     ></el-input>
385
                   </template>
384
                   </template>
386
                 </el-table-column>
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
                   <template slot-scope="scope">
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
                     </div>
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
                       {{ scope.row.day_count }}天/次
400
                       {{ scope.row.day_count }}天/次
394
                     </div>
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
                       {{ scope.row.week_days }}
407
                       {{ scope.row.week_days }}
397
                     </div>
408
                     </div>
398
                   </template>
409
                   </template>
399
                 </el-table-column>
410
                 </el-table-column>
400
-                <el-table-column fixed="right" label="操作" width="102">
411
+                <el-table-column label="操作" width="150" align="center">
401
                   <template slot-scope="scope">
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
                     <el-button
419
                     <el-button
409
                       @click.native.prevent="
420
                       @click.native.prevent="
410
                         addRow2(scope.$index, item.project)
421
                         addRow2(scope.$index, item.project)
411
                       "
422
                       "
412
-                      type="text"
423
+                      type="primary"
413
                       size="small"
424
                       size="small"
414
                     >
425
                     >
415
                       添加
426
                       添加
418
                       @click.native.prevent="
429
                       @click.native.prevent="
419
                         deleteRow(scope.$index, item.project)
430
                         deleteRow(scope.$index, item.project)
420
                       "
431
                       "
421
-                      type="text"
432
+                      type="danger"
422
                       size="small"
433
                       size="small"
423
                     >
434
                     >
424
                       移除
435
                       移除
561
               <!--                </el-table-column>-->
572
               <!--                </el-table-column>-->
562
               <!--              </el-table>-->
573
               <!--              </el-table>-->
563
             </el-tab-pane>
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
           </el-tabs>
580
           </el-tabs>
569
         </el-main>
581
         </el-main>
570
       </el-container>
582
       </el-container>
1007
       }
1019
       }
1008
     },
1020
     },
1009
     deleteRow(index, rows) {
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
       rows.splice(index, 1);
1028
       rows.splice(index, 1);
1017
     },
1029
     },
1090
     handleSelectionChange(val) {
1102
     handleSelectionChange(val) {
1091
       this.multipleSelection = val;
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
       if (action === "add") {
1108
       if (action === "add") {
1097
         let newTabName = ++this.tabIndex + "";
1109
         let newTabName = ++this.tabIndex + "";
1098
         let tmp = this.editableTabs.length + 1;
1110
         let tmp = this.editableTabs.length + 1;
1136
         this.editableTabsValue = newTabName;
1148
         this.editableTabsValue = newTabName;
1137
       }
1149
       }
1138
       if (action === "remove") {
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
         let tabs = this.editableTabs;
1155
         let tabs = this.editableTabs;
1144
         let activeName = this.editableTabsValue;
1156
         let activeName = this.editableTabsValue;
1180
 
1192
 
1181
 
1193
 
1182
 <style lang="scss" scoped>
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
 .app-container {
1202
 .app-container {
1203
+  padding: 10px;
1184
   background: #f6f8f9;
1204
   background: #f6f8f9;
1185
   .el-container {
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
 ::v-deep .el-table__body-wrapper {
1208
 ::v-deep .el-table__body-wrapper {
1196
   display: flex;
1214
   display: flex;
1197
   justify-content: space-between;
1215
   justify-content: space-between;
1198
   .banner_left {
1216
   .banner_left {
1199
-    width: 1000px;
1217
+    width: 960px;
1200
     display: flex;
1218
     display: flex;
1201
     justify-content: space-around;
1219
     justify-content: space-around;
1202
     div {
1220
     div {
1206
     }
1224
     }
1207
   }
1225
   }
1208
 }
1226
 }
1227
+.frequence {
1228
+  text-align: center;
1229
+}
1230
+/deep/ .el-button--small {
1231
+  padding: 9px 6px;
1232
+}
1209
 .zone {
1233
 .zone {
1210
   //  margin-left: 30px;
1234
   //  margin-left: 30px;
1211
   //  text-align: left;
1235
   //  text-align: left;
1324
 }
1348
 }
1325
 .el-main {
1349
 .el-main {
1326
   padding-top: 0px;
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
 .newMain {
1360
 .newMain {
1329
   .el-form-item__label {
1361
   .el-form-item__label {
1330
     width: 104px;
1362
     width: 104px;
1332
 }
1364
 }
1333
 .newDisinfectOne {
1365
 .newDisinfectOne {
1334
   .el-input--prefix .el-input__inner {
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
 .stoppage {
1371
 .stoppage {
1360
   height: 20px;
1393
   height: 20px;
1361
 }
1394
 }
1362
 
1395
 
1363
-.el-button {
1364
-  color: #fff;
1365
-  background-color: #409eff;
1366
-  border-color: #409eff;
1367
-}
1368
 .el-table td .cell {
1396
 .el-table td .cell {
1369
-  padding: 0 10px;
1397
+  padding: 0 5px !important;
1370
 }
1398
 }
1371
 </style>
1399
 </style>

+ 1 - 6
src/xt_pages/outpatientDoctorStation/batch_replacement.vue Wyświetl plik

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

+ 4 - 4
src/xt_pages/outpatientDoctorStation/components/prescriptionTemplateTable.vue Wyświetl plik

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