huangyw 2 years ago
parent
commit
7e28593e48

+ 1 - 1
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue View File

2083
                           white-space: normal;
2083
                           white-space: normal;
2084
                         "
2084
                         "
2085
                       >
2085
                       >
2086
-                        <!-- {{ afterdialysis.cruor ? afterdialysis.cruor : "/" }} -->
2086
+                        {{ afterdialysis.accumulated_blood_volume ? afterdialysis.accumulated_blood_volume : "/" }}
2087
                       </div>
2087
                       </div>
2088
                     </div>
2088
                     </div>
2089
                   </div>
2089
                   </div>

+ 282 - 224
src/xt_pages/outpatientDoctorStation/batch_delete.vue View File

22
           </div>
22
           </div>
23
           <div>
23
           <div>
24
             删除类型:
24
             删除类型:
25
-            <el-select v-model="new_type" placeholder="请选择" @change="changetype">
25
+            <el-select
26
+              v-model="new_type"
27
+              placeholder="请选择"
28
+              @change="changetype"
29
+            >
26
               <el-option
30
               <el-option
27
                 v-for="item in options"
31
                 v-for="item in options"
28
                 :key="item.id"
32
                 :key="item.id"
68
           </div>
72
           </div>
69
         </div>
73
         </div>
70
 
74
 
71
-<!--        <button @click="lili">调试</button>-->
75
+        <!--        <button @click="lili">调试</button>-->
72
         <el-button type="primary" @click="save">保存</el-button>
76
         <el-button type="primary" @click="save">保存</el-button>
73
       </div>
77
       </div>
74
 
78
 
75
       <el-container>
79
       <el-container>
76
-        <div style="width: 211px">
80
+        <div
81
+          style="
82
+            width: 211px;
83
+            margin-right: 20px;
84
+            box-shadow: 0 2px 4px 0 rgb(0 0 0 / 12%), 0 0 6px 0 rgb(0 0 0 / 4%);
85
+          "
86
+        >
77
           <el-table
87
           <el-table
78
             border
88
             border
79
             ref="multipleTable"
89
             ref="multipleTable"
90
           >
100
           >
91
             <el-table-column type="selection" width="55"> </el-table-column>
101
             <el-table-column type="selection" width="55"> </el-table-column>
92
             <el-table-column label="患者姓名" width="155">
102
             <el-table-column label="患者姓名" width="155">
93
-              <template slot-scope="scope" >{{ scope.row.name }}</template>
103
+              <template slot-scope="scope">{{ scope.row.name }}</template>
94
             </el-table-column>
104
             </el-table-column>
95
           </el-table>
105
           </el-table>
96
         </div>
106
         </div>
97
-
98
         <el-tabs type="border-card" v-if="isshow == 1 && list.length > 0">
107
         <el-tabs type="border-card" v-if="isshow == 1 && list.length > 0">
99
           <el-tab-pane
108
           <el-tab-pane
100
-            v-for="(item,index) in list"
109
+            v-for="(item, index) in list"
101
             :key="index"
110
             :key="index"
102
-            :label="'处方'+(index+1)"
111
+            :label="'处方' + (index + 1)"
103
             :name="index"
112
             :name="index"
104
           >
113
           >
105
             <el-table
114
             <el-table
116
             >
125
             >
117
               <el-table-column fixed label="药品名称" width="230">
126
               <el-table-column fixed label="药品名称" width="230">
118
                 <template slot-scope="scope">
127
                 <template slot-scope="scope">
119
-                  {{scope.row.advice_name}}
128
+                  {{ scope.row.advice_name }}
120
                 </template>
129
                 </template>
121
               </el-table-column>
130
               </el-table-column>
122
               <el-table-column label="单次用量" width="200">
131
               <el-table-column label="单次用量" width="200">
123
                 <template slot-scope="scope">
132
                 <template slot-scope="scope">
124
-                  {{scope.row.single_dose}}{{scope.row.single_dose_unit}}
133
+                  {{ scope.row.single_dose }}{{ scope.row.single_dose_unit }}
125
                 </template>
134
                 </template>
126
               </el-table-column>
135
               </el-table-column>
127
               <el-table-column label="用法" width="120">
136
               <el-table-column label="用法" width="120">
128
                 <template slot-scope="scope">
137
                 <template slot-scope="scope">
129
-                  {{scope.row.delivery_way}}
138
+                  {{ scope.row.delivery_way }}
130
                 </template>
139
                 </template>
131
               </el-table-column>
140
               </el-table-column>
132
               <el-table-column label="频率" width="120">
141
               <el-table-column label="频率" width="120">
133
                 <template slot-scope="scope">
142
                 <template slot-scope="scope">
134
-                  {{scope.row.execution_frequency}}
143
+                  {{ scope.row.execution_frequency }}
135
                 </template>
144
                 </template>
136
               </el-table-column>
145
               </el-table-column>
137
               <el-table-column label="天数" width="110">
146
               <el-table-column label="天数" width="110">
138
-                <template slot-scope="scope">
139
-                  {{scope.row.day}}天
140
-                </template>
147
+                <template slot-scope="scope"> {{ scope.row.day }}天 </template>
141
               </el-table-column>
148
               </el-table-column>
142
               <el-table-column label="总量" width="200">
149
               <el-table-column label="总量" width="200">
143
                 <template slot-scope="scope">
150
                 <template slot-scope="scope">
144
-                  {{scope.row.prescribing_number}}{{scope.row.prescribing_number_unit}}
151
+                  {{ scope.row.prescribing_number
152
+                  }}{{ scope.row.prescribing_number_unit }}
145
                 </template>
153
                 </template>
146
               </el-table-column>
154
               </el-table-column>
147
               <el-table-column label="单价" width="120">
155
               <el-table-column label="单价" width="120">
157
               <el-table-column label="操作" width="120">
165
               <el-table-column label="操作" width="120">
158
                 <template slot-scope="scope">
166
                 <template slot-scope="scope">
159
                   <el-button
167
                   <el-button
160
-                    @click.native.prevent="delects(scope.$index,scope,item)"
168
+                    @click.native.prevent="delects(scope.$index, scope, item)"
161
                     type="text"
169
                     type="text"
162
-                    size="small">
170
+                    size="small"
171
+                  >
163
                     删除
172
                     删除
164
                   </el-button>
173
                   </el-button>
165
                 </template>
174
                 </template>
180
             >
189
             >
181
               <el-table-column fixed label="项目名称" width="230">
190
               <el-table-column fixed label="项目名称" width="230">
182
                 <template slot-scope="scope">
191
                 <template slot-scope="scope">
183
-                  <div v-if="scope.row.type == 2">{{scope.row.project.project_name}}</div>
184
-                  <div v-if="scope.row.type == 3">{{scope.row.good_info.good_name}}</div>
192
+                  <div v-if="scope.row.type == 2">
193
+                    {{ scope.row.project.project_name }}
194
+                  </div>
195
+                  <div v-if="scope.row.type == 3">
196
+                    {{ scope.row.good_info.good_name }}
197
+                  </div>
185
                 </template>
198
                 </template>
186
               </el-table-column>
199
               </el-table-column>
187
               <el-table-column label="组" width="120">
200
               <el-table-column label="组" width="120">
188
                 <template slot-scope="scope">
201
                 <template slot-scope="scope">
189
-                  <div v-if="scope.row.type == 2">{{scope.row.project.translate}}</div>
190
-                  <div v-if="scope.row.type == 3">{{scope.row.good_info.translate}}</div>
202
+                  <div v-if="scope.row.type == 2">
203
+                    {{ scope.row.project.translate }}
204
+                  </div>
205
+                  <div v-if="scope.row.type == 3">
206
+                    {{ scope.row.good_info.translate }}
207
+                  </div>
191
                 </template>
208
                 </template>
192
               </el-table-column>
209
               </el-table-column>
193
               <el-table-column label="单次用量" width="120">
210
               <el-table-column label="单次用量" width="120">
194
                 <template slot-scope="scope">
211
                 <template slot-scope="scope">
195
-                  {{scope.row.single_dose}}
212
+                  {{ scope.row.single_dose }}
196
                   {{ scope.row.unit }}
213
                   {{ scope.row.unit }}
197
                 </template>
214
                 </template>
198
               </el-table-column>
215
               </el-table-column>
199
               <el-table-column label="用法" width="120">
216
               <el-table-column label="用法" width="120">
200
                 <template slot-scope="scope">
217
                 <template slot-scope="scope">
201
-                  {{scope.row.delivery_way}}
218
+                  {{ scope.row.delivery_way }}
202
                 </template>
219
                 </template>
203
               </el-table-column>
220
               </el-table-column>
204
               <el-table-column label="频率" width="120">
221
               <el-table-column label="频率" width="120">
205
                 <template slot-scope="scope">
222
                 <template slot-scope="scope">
206
-                  {{scope.row.execution_frequency}}
223
+                  {{ scope.row.execution_frequency }}
207
                 </template>
224
                 </template>
208
               </el-table-column>
225
               </el-table-column>
209
               <el-table-column label="天数" width="110">
226
               <el-table-column label="天数" width="110">
210
-                <template slot-scope="scope">
211
-                  {{scope.row.day}}天
212
-                </template>
227
+                <template slot-scope="scope"> {{ scope.row.day }}天 </template>
213
               </el-table-column>
228
               </el-table-column>
214
               <el-table-column label="总量" width="100">
229
               <el-table-column label="总量" width="100">
215
                 <template slot-scope="scope">
230
                 <template slot-scope="scope">
216
-                  {{scope.row.count}}
231
+                  {{ scope.row.count }}
217
                   {{ scope.row.unit }}
232
                   {{ scope.row.unit }}
218
                 </template>
233
                 </template>
219
               </el-table-column>
234
               </el-table-column>
220
               <el-table-column label="单价" width="120">
235
               <el-table-column label="单价" width="120">
221
                 <template slot-scope="scope">
236
                 <template slot-scope="scope">
222
-                  {{scope.row.price}}元
237
+                  {{ scope.row.price }}元
223
                 </template>
238
                 </template>
224
               </el-table-column>
239
               </el-table-column>
225
               <el-table-column label="备注" width="120">
240
               <el-table-column label="备注" width="120">
226
                 <template slot-scope="scope">
241
                 <template slot-scope="scope">
227
-                  {{scope.row.remark}}
242
+                  {{ scope.row.remark }}
228
                 </template>
243
                 </template>
229
               </el-table-column>
244
               </el-table-column>
230
               <el-table-column label="推送频率" width="120">
245
               <el-table-column label="推送频率" width="120">
231
                 <template slot-scope="scope">
246
                 <template slot-scope="scope">
232
-                  <div v-if="scope.row.frequency_type == 1">{{'每次必推'}}</div>
233
-                  <div v-if="scope.row.frequency_type == 2">{{scope.row.day_count}}天/次</div>
234
-                  <div v-if="scope.row.frequency_type == 3">{{scope.row.week_days}}</div>
247
+                  <div v-if="scope.row.frequency_type == 1">
248
+                    {{ "每次必推" }}
249
+                  </div>
250
+                  <div v-if="scope.row.frequency_type == 2">
251
+                    {{ scope.row.day_count }}天/次
252
+                  </div>
253
+                  <div v-if="scope.row.frequency_type == 3">
254
+                    {{ scope.row.week_days }}
255
+                  </div>
235
                 </template>
256
                 </template>
236
               </el-table-column>
257
               </el-table-column>
237
               <el-table-column fixed="right" label="操作" width="102">
258
               <el-table-column fixed="right" label="操作" width="102">
238
                 <template slot-scope="scope">
259
                 <template slot-scope="scope">
239
                   <el-button
260
                   <el-button
240
-                    @click.native.prevent="delects(scope.$index,scope,item)"
261
+                    @click.native.prevent="delects(scope.$index, scope, item)"
241
                     type="text"
262
                     type="text"
242
-                    size="small">
263
+                    size="small"
264
+                  >
243
                     删除
265
                     删除
244
                   </el-button>
266
                   </el-button>
245
                 </template>
267
                 </template>
271
       tableList: [],
293
       tableList: [],
272
       editableTabsValue: "1",
294
       editableTabsValue: "1",
273
       modeOptions: {},
295
       modeOptions: {},
274
-      tableDatas:[{
275
-        id: "",
276
-        drug_name: "",
277
-        single_dose: "",
278
-        single_dose_unit: "",
279
-        delivery_way: "",
280
-        execution_frequency: "",
281
-        day: "",
282
-        prescribing_number: "",
283
-        prescribing_number_unit: "",
284
-        price: "",
285
-        remark: "",
286
-      },],//药品
287
-      project:[ {
288
-        id: "",
289
-        drug_name: "",
290
-        translate:"",
291
-        single_dose: "",
292
-        unit: "",
293
-        delivery_way: "",
294
-        execution_frequency: "",
295
-        day: "",
296
-        prescribing_number: "",
297
-        price: "",
298
-        remark: "",
299
-        frequency_type:1,
300
-        day_count:"",
301
-        week_days:"",
302
-      },],//项目
296
+      tableDatas: [
297
+        {
298
+          id: "",
299
+          drug_name: "",
300
+          single_dose: "",
301
+          single_dose_unit: "",
302
+          delivery_way: "",
303
+          execution_frequency: "",
304
+          day: "",
305
+          prescribing_number: "",
306
+          prescribing_number_unit: "",
307
+          price: "",
308
+          remark: "",
309
+        },
310
+      ], //药品
311
+      project: [
312
+        {
313
+          id: "",
314
+          drug_name: "",
315
+          translate: "",
316
+          single_dose: "",
317
+          unit: "",
318
+          delivery_way: "",
319
+          execution_frequency: "",
320
+          day: "",
321
+          prescribing_number: "",
322
+          price: "",
323
+          remark: "",
324
+          frequency_type: 1,
325
+          day_count: "",
326
+          week_days: "",
327
+        },
328
+      ], //项目
303
       tabIndex: 2,
329
       tabIndex: 2,
304
       modeOptions_value: 1, //透析模式
330
       modeOptions_value: 1, //透析模式
305
-      multipleSelection: [],//选中的患者
306
-      tableData:[],
307
-      options:[{id:1,name:"药品"},{id:2,name:"项目"}],
308
-      options_patient:[{id:1,name:"是"},{id:2,name:"否"}],
309
-      options_2:[{id:1,name:"普通门诊"},{id:2,name:"门诊特殊病"}],
310
-      new_type:1,//新增类型
311
-      druglist:[],//药品列表
312
-      projectlist:[],//项目列表
313
-      id:"",//药品、项目、耗材
314
-      tmplist:[],//临时
315
-      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:"粒"},
316
-        {id:8,name:"片"},{id:9,name:"支"},{id:10,name:"μg"},{id:11,name:"iu"},{id:12,name:"包"},{id:13,name:"袋"},{id:14,name:"万"},
317
-        {id:15,name:"万iu"},{id:16,name:"丸"},{id:17,name:"盒"},{id:18,name:"瓶"},{id:19,name:"瓶(袋)"},{id:20,name:"次"}],
318
-      usage:[],//用法
319
-      frequency:[],//频率
320
-      frequency_type:"",//周期提醒
321
-      day_count:"",//周期提醒天
322
-      week_days:[],//周期提醒星期
323
-      tabhang:0,//tab的下标
324
-      hang:0,//行数
325
-      list:[],
326
-      isshow:0,//是否显示处方
327
-      tmpid:0,
328
-
329
-    }
331
+      multipleSelection: [], //选中的患者
332
+      tableData: [],
333
+      options: [
334
+        { id: 1, name: "药品" },
335
+        { id: 2, name: "项目" },
336
+      ],
337
+      options_patient: [
338
+        { id: 1, name: "是" },
339
+        { id: 2, name: "否" },
340
+      ],
341
+      options_2: [
342
+        { id: 1, name: "普通门诊" },
343
+        { id: 2, name: "门诊特殊病" },
344
+      ],
345
+      new_type: 1, //新增类型
346
+      druglist: [], //药品列表
347
+      projectlist: [], //项目列表
348
+      id: "", //药品、项目、耗材
349
+      tmplist: [], //临时
350
+      unit: [
351
+        { id: 1, name: "g" },
352
+        { id: 2, name: "mg" },
353
+        { id: 3, name: "u" },
354
+        { id: 4, name: "ml" },
355
+        { id: 5, name: "万U" },
356
+        { id: 6, name: "枚" },
357
+        { id: 7, name: "粒" },
358
+        { id: 8, name: "片" },
359
+        { id: 9, name: "支" },
360
+        { id: 10, name: "μg" },
361
+        { id: 11, name: "iu" },
362
+        { id: 12, name: "包" },
363
+        { id: 13, name: "袋" },
364
+        { id: 14, name: "万" },
365
+        { id: 15, name: "万iu" },
366
+        { id: 16, name: "丸" },
367
+        { id: 17, name: "盒" },
368
+        { id: 18, name: "瓶" },
369
+        { id: 19, name: "瓶(袋)" },
370
+        { id: 20, name: "次" },
371
+      ],
372
+      usage: [], //用法
373
+      frequency: [], //频率
374
+      frequency_type: "", //周期提醒
375
+      day_count: "", //周期提醒天
376
+      week_days: [], //周期提醒星期
377
+      tabhang: 0, //tab的下标
378
+      hang: 0, //行数
379
+      list: [],
380
+      isshow: 0, //是否显示处方
381
+      tmpid: 0,
382
+    };
330
   },
383
   },
331
   created() {
384
   created() {
332
     // console.log("this.$store.getters.treatment_mode",this.$store.getters.treatment_mode)
385
     // console.log("this.$store.getters.treatment_mode",this.$store.getters.treatment_mode)
333
     for (let key in this.$store.getters.treatment_mode) {
386
     for (let key in this.$store.getters.treatment_mode) {
334
-      this.modeOptions[key] = this.$store.getters.treatment_mode[key]
387
+      this.modeOptions[key] = this.$store.getters.treatment_mode[key];
335
     }
388
     }
336
     // console.log("this.modeOptions",this.modeOptions)
389
     // console.log("this.modeOptions",this.modeOptions)
337
     this.getdrugconfigs();
390
     this.getdrugconfigs();
338
-    this.isshow = 0
391
+    this.isshow = 0;
339
     this.tmpid = 0;
392
     this.tmpid = 0;
340
   },
393
   },
341
   methods: {
394
   methods: {
342
     save() {
395
     save() {
343
-      var tmp = this.modeOptions[this.modeOptions_value].name
344
-      var tmp2 = ""
345
-      if (this.druglist != null){
346
-        for(let i = 0;i < this.druglist.length;i++){
347
-          if (this.id == this.druglist[i].id){
348
-            tmp2 = this.druglist[i].name
396
+      var tmp = this.modeOptions[this.modeOptions_value].name;
397
+      var tmp2 = "";
398
+      if (this.druglist != null) {
399
+        for (let i = 0; i < this.druglist.length; i++) {
400
+          if (this.id == this.druglist[i].id) {
401
+            tmp2 = this.druglist[i].name;
349
           }
402
           }
350
         }
403
         }
351
       }
404
       }
352
-      if(this.projectlist != null){
353
-        for (let j = 0;j < this.projectlist.length;j++){
354
-          if (this.id == this.projectlist[j].id){
355
-            tmp2 = this.projectlist[j].name
405
+      if (this.projectlist != null) {
406
+        for (let j = 0; j < this.projectlist.length; j++) {
407
+          if (this.id == this.projectlist[j].id) {
408
+            tmp2 = this.projectlist[j].name;
356
           }
409
           }
357
         }
410
         }
358
       }
411
       }
359
       this.$confirm(
412
       this.$confirm(
360
-        "请确定是否删除?",//注:该操作将会把所选患者的"+tmp+"透析模式中的"+tmp2+"进行删除,
413
+        "请确定是否删除?", //注:该操作将会把所选患者的"+tmp+"透析模式中的"+tmp2+"进行删除,
361
         "",
414
         "",
362
         {
415
         {
363
           confirmButtonText: "确 定",
416
           confirmButtonText: "确 定",
365
           type: "warning",
418
           type: "warning",
366
         }
419
         }
367
       ).then(() => {
420
       ).then(() => {
368
-        if (this.multipleSelection.length == 0){
369
-          this.$message.error('没有选中有效信息')
370
-          return
421
+        if (this.multipleSelection.length == 0) {
422
+          this.$message.error("没有选中有效信息");
423
+          return;
371
         }
424
         }
372
-        let st = ""
373
-        for (let i = 0;i < this.multipleSelection.length;i++){
374
-          st = st + this.multipleSelection[i].id + ","
425
+        let st = "";
426
+        for (let i = 0; i < this.multipleSelection.length; i++) {
427
+          st = st + this.multipleSelection[i].id + ",";
375
         }
428
         }
376
-        console.log("string",st)
429
+        console.log("string", st);
377
         let params = {
430
         let params = {
378
-          mode_id:this.modeOptions_value,
431
+          mode_id: this.modeOptions_value,
379
           patient_id: st,
432
           patient_id: st,
380
-          type:this.new_type,
433
+          type: this.new_type,
381
           replaced: this.id,
434
           replaced: this.id,
382
-        }
383
-        if (this.new_type == 1){
384
-          deletedrugsbatch(params).then((res) =>{
385
-            if (res.data.state == 1){
386
-              this.$message.success('删除成功')
387
-              this.getUsername()
388
-            }else{
389
-              this.$message.error(res.data.msg)
435
+        };
436
+        if (this.new_type == 1) {
437
+          deletedrugsbatch(params).then((res) => {
438
+            if (res.data.state == 1) {
439
+              this.$message.success("删除成功");
440
+              this.getUsername();
441
+            } else {
442
+              this.$message.error(res.data.msg);
390
             }
443
             }
391
-          })
392
-        }else{
393
-          batchdeleteitems(params).then((res) =>{
394
-            if (res.data.state == 1){
395
-              this.$message.success('删除成功')
396
-              this.getUsername()
397
-            }else{
398
-              this.$message.error(res.data.msg)
444
+          });
445
+        } else {
446
+          batchdeleteitems(params).then((res) => {
447
+            if (res.data.state == 1) {
448
+              this.$message.success("删除成功");
449
+              this.getUsername();
450
+            } else {
451
+              this.$message.error(res.data.msg);
399
             }
452
             }
400
-          })
453
+          });
401
         }
454
         }
402
       });
455
       });
403
     },
456
     },
404
-    test(val){
405
-      console.log("val?:",val);
406
-      this.tmpid = val.id
457
+    test(val) {
458
+      console.log("val?:", val);
459
+      this.tmpid = val.id;
407
       var params = {
460
       var params = {
408
-        mode_id:this.modeOptions_value,
409
-        patient_id:val.id,
410
-      }
411
-      ptemplateinformation(params).then((res) =>{
412
-        if (res.data.state == 1){
413
-          this.list = res.data.data.list
414
-          this.isshow = 1
461
+        mode_id: this.modeOptions_value,
462
+        patient_id: val.id,
463
+      };
464
+      ptemplateinformation(params).then((res) => {
465
+        if (res.data.state == 1) {
466
+          this.list = res.data.data.list;
467
+          this.isshow = 1;
415
         }
468
         }
416
-      })
469
+      });
417
     },
470
     },
418
     lili() {
471
     lili() {
419
-      console.log("this.list",this.list);
420
-      console.log("this.multipleSelection",this.multipleSelection)
472
+      console.log("this.list", this.list);
473
+      console.log("this.multipleSelection", this.multipleSelection);
421
       // console.log("this.mode",this.modeOptions_value)
474
       // console.log("this.mode",this.modeOptions_value)
422
       // console.log("this.projectlist2",this.projectlist2)
475
       // console.log("this.projectlist2",this.projectlist2)
423
       // console.log("patient_value",this.patient_value)
476
       // console.log("patient_value",this.patient_value)
424
     },
477
     },
425
-    delects(hang,sc,item){
426
-      this.$confirm('删除后不可恢复,是否确认删除?', '删除', {
427
-        confirmButtonText: '确定',
428
-        cancelButtonText: '取消',
429
-        type: 'warning'
430
-      }).then(() => {
431
-        var params ={
432
-          type:item.type,//1药品2项目
433
-          id:sc.row.id,
434
-        }
435
-        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
446
-              }
447
-            })
448
-          }
478
+    delects(hang, sc, item) {
479
+      this.$confirm("删除后不可恢复,是否确认删除?", "删除", {
480
+        confirmButtonText: "确定",
481
+        cancelButtonText: "取消",
482
+        type: "warning",
483
+      })
484
+        .then(() => {
485
+          var params = {
486
+            type: item.type, //1药品2项目
487
+            id: sc.row.id,
488
+          };
489
+          var params2 = {
490
+            mode_id: this.modeOptions_value,
491
+            patient_id: this.tmpid,
492
+          };
493
+          deleteone(params).then((res) => {
494
+            if (res.data.state == 1) {
495
+              this.$message.success("删除成功");
496
+              ptemplateinformation(params2).then((res) => {
497
+                if (res.data.state == 1) {
498
+                  this.list = res.data.data.list;
499
+                  this.isshow = 1;
500
+                }
501
+              });
502
+            }
503
+          });
449
         })
504
         })
450
-      }).catch(() => {
451
-        this.$message({
452
-          type: 'info',
453
-          message: '已取消删除'
505
+        .catch(() => {
506
+          this.$message({
507
+            type: "info",
508
+            message: "已取消删除",
509
+          });
454
         });
510
         });
455
-      });
456
       // console.log("hang",hang)
511
       // console.log("hang",hang)
457
       // console.log("sc",sc)
512
       // console.log("sc",sc)
458
       // console.log("item",item)
513
       // console.log("item",item)
459
-
460
-
461
     },
514
     },
462
-    changetype(){
463
-      console.log(">>>>>>>",this.new_type)
464
-      this.id = ""
465
-      this.tableData = []
515
+    changetype() {
516
+      console.log(">>>>>>>", this.new_type);
517
+      this.id = "";
518
+      this.tableData = [];
466
     },
519
     },
467
-    changeid(item,index){
468
-      item.id = item.drug_name
520
+    changeid(item, index) {
521
+      item.id = item.drug_name;
469
       var params = {
522
       var params = {
470
-        id:item.id
471
-      }
472
-      getdrugsinformation(params).then((res) =>{
473
-        if (res.data.state == 1){
474
-          console.log("res??",res)
523
+        id: item.id,
524
+      };
525
+      getdrugsinformation(params).then((res) => {
526
+        if (res.data.state == 1) {
527
+          console.log("res??", res);
475
           this.tableDatas[0].single_dose = res.data.data.list[0].single_dose;
528
           this.tableDatas[0].single_dose = res.data.data.list[0].single_dose;
476
-          this.tableDatas[0].single_dose_unit = res.data.data.list[0].single_dose_unit;
529
+          this.tableDatas[0].single_dose_unit =
530
+            res.data.data.list[0].single_dose_unit;
477
           this.tableDatas[0].delivery_way = res.data.data.list[0].delivery_way;
531
           this.tableDatas[0].delivery_way = res.data.data.list[0].delivery_way;
478
-          this.tableDatas[0].execution_frequency = res.data.data.list[0].execution_frequency;
532
+          this.tableDatas[0].execution_frequency =
533
+            res.data.data.list[0].execution_frequency;
479
           this.tableDatas[0].day = res.data.data.list[0].drug_day;
534
           this.tableDatas[0].day = res.data.data.list[0].drug_day;
480
-          this.tableDatas[0].prescribing_number = res.data.data.list[0].prescribing_number;
481
-          this.tableDatas[0].prescribing_number_unit = res.data.data.list[0].prescribing_number_unit;
535
+          this.tableDatas[0].prescribing_number =
536
+            res.data.data.list[0].prescribing_number;
537
+          this.tableDatas[0].prescribing_number_unit =
538
+            res.data.data.list[0].prescribing_number_unit;
482
           this.tableDatas[0].price = res.data.data.list[0].retail_price;
539
           this.tableDatas[0].price = res.data.data.list[0].retail_price;
483
           this.tableDatas[0].remark = res.data.data.list[0].remark;
540
           this.tableDatas[0].remark = res.data.data.list[0].remark;
484
         }
541
         }
487
     handleSelectionChange(val) {
544
     handleSelectionChange(val) {
488
       this.multipleSelection = val;
545
       this.multipleSelection = val;
489
     },
546
     },
490
-    changeid2(item,index){
491
-      item.id = item.drug_name
547
+    changeid2(item, index) {
548
+      item.id = item.drug_name;
492
       var params = {
549
       var params = {
493
-        id:item.id
494
-      }
495
-      getdrugsinformation(params).then((res) =>{
496
-        if (res.data.state == 1){
497
-          console.log("res??",res)
550
+        id: item.id,
551
+      };
552
+      getdrugsinformation(params).then((res) => {
553
+        if (res.data.state == 1) {
554
+          console.log("res??", res);
498
           this.project[0].single_dose = res.data.data.list[0].single_dose;
555
           this.project[0].single_dose = res.data.data.list[0].single_dose;
499
           this.project[0].translate = res.data.data.list[0].translate;
556
           this.project[0].translate = res.data.data.list[0].translate;
500
           this.project[0].delivery_way = res.data.data.list[0].delivery_way;
557
           this.project[0].delivery_way = res.data.data.list[0].delivery_way;
501
-          this.project[0].execution_frequency = res.data.data.list[0].execution_frequency;
558
+          this.project[0].execution_frequency =
559
+            res.data.data.list[0].execution_frequency;
502
           this.project[0].day = res.data.data.list[0].day;
560
           this.project[0].day = res.data.data.list[0].day;
503
-          this.project[0].prescribing_number = res.data.data.list[0].prescribing_number;
561
+          this.project[0].prescribing_number =
562
+            res.data.data.list[0].prescribing_number;
504
           this.project[0].unit = res.data.data.list[0].unit;
563
           this.project[0].unit = res.data.data.list[0].unit;
505
           this.project[0].price = res.data.data.list[0].retail_price;
564
           this.project[0].price = res.data.data.list[0].retail_price;
506
           this.project[0].remark = res.data.data.list[0].remark;
565
           this.project[0].remark = res.data.data.list[0].remark;
508
       });
567
       });
509
     },
568
     },
510
     //获取配置
569
     //获取配置
511
-    getdrugconfigs(){
512
-      var params = {}
513
-      replaceconfig(params).then((res) =>{
514
-        if (res.data.state == 1){
515
-          this.druglist = res.data.data.list
516
-          this.projectlist = res.data.data.list2
570
+    getdrugconfigs() {
571
+      var params = {};
572
+      replaceconfig(params).then((res) => {
573
+        if (res.data.state == 1) {
574
+          this.druglist = res.data.data.list;
575
+          this.projectlist = res.data.data.list2;
517
         }
576
         }
518
-      })
519
-      getmodeconfigs(params).then((res) =>{
520
-        if (res.data.state == 1){
521
-          this.frequency = res.data.data.efs
522
-          this.usage = res.data.data.drugways
577
+      });
578
+      getmodeconfigs(params).then((res) => {
579
+        if (res.data.state == 1) {
580
+          this.frequency = res.data.data.efs;
581
+          this.usage = res.data.data.drugways;
523
         }
582
         }
524
-      })
583
+      });
525
     },
584
     },
526
-    getUsername(){
585
+    getUsername() {
527
       var params = {
586
       var params = {
528
         id: this.id,
587
         id: this.id,
529
-        mode: this.modeOptions_value
530
-      }
531
-      replacepeoplename(params).then((res) =>{
532
-        if (res.data.state == 1){
533
-          this.tableData = res.data.data.list
588
+        mode: this.modeOptions_value,
589
+      };
590
+      replacepeoplename(params).then((res) => {
591
+        if (res.data.state == 1) {
592
+          this.tableData = res.data.data.list;
534
         }
593
         }
535
-      })
594
+      });
536
     },
595
     },
537
     handleClose(done) {
596
     handleClose(done) {
538
-      this.$confirm('确认关闭?')
539
-        .then(_ => {
597
+      this.$confirm("确认关闭?")
598
+        .then((_) => {
540
           done();
599
           done();
541
         })
600
         })
542
-        .catch(_ => {});
543
-    }
544
-  }
545
-
546
-}
601
+        .catch((_) => {});
602
+    },
603
+  },
604
+};
547
 </script>
605
 </script>
548
 
606
 
549
 
607
 
565
   }
623
   }
566
 }
624
 }
567
 .zone {
625
 .zone {
568
-//  margin-left: 30px;
569
-//  text-align: left;
626
+  //  margin-left: 30px;
627
+  //  text-align: left;
570
   width: 70px;
628
   width: 70px;
571
   display: inline-block;
629
   display: inline-block;
572
   color: #606266;
630
   color: #606266;