Browse Source

Merge branch '20201109_pc_vue_new_branch' of http://git.shengws.com/csx/Vue_New into 20201109_pc_vue_new_branch

XMLWAN 4 years ago
parent
commit
ba9c2f3738

+ 6 - 4
src/api/advice.js View File

43
   });
43
   });
44
 }
44
 }
45
 
45
 
46
-export function ExecDoctorAdvice(patient, id, time, mode) {
46
+export function ExecDoctorAdvice(patient, id, time, mode,origin) {
47
 
47
 
48
   var params = {
48
   var params = {
49
     id: id,
49
     id: id,
50
     patient: patient,
50
     patient: patient,
51
     execution_time: time,
51
     execution_time: time,
52
-    mode: mode
52
+    mode: mode,
53
+    origin:origin,
53
   };
54
   };
54
   console.log("paras------",params)
55
   console.log("paras------",params)
55
   return request({
56
   return request({
61
     }
62
     }
62
   });
63
   });
63
 }
64
 }
64
-export function CheckDoctorAdvice(patient, id, mode) {
65
+export function  CheckDoctorAdvice(patient, id, mode,origin) {
65
   var params = {
66
   var params = {
66
     id: id,
67
     id: id,
67
     patient: patient,
68
     patient: patient,
68
-    mode: mode
69
+    mode: mode,
70
+    origin:origin,
69
     // execution_time: time,
71
     // execution_time: time,
70
   };
72
   };
71
   return request({
73
   return request({

+ 9 - 0
src/api/his/his.js View File

258
 
258
 
259
 
259
 
260
 
260
 
261
+export function getNextOrLastHisPrescription (params) {
262
+  return request({
263
+    url: '/api/hisprescription/get',
264
+    method: 'get',
265
+    params:params,
266
+  })
267
+}
268
+
269
+
261
 
270
 
262
 
271
 
263
 
272
 

+ 8 - 2
src/xt_pages/dialysis/details/NavIgation.vue View File

129
       :patient="patient"
129
       :patient="patient"
130
       :admin_users="admin_users"
130
       :admin_users="admin_users"
131
       :dialysis_order="dialysis_order"
131
       :dialysis_order="dialysis_order"
132
+      :his_is_open="his_is_open"
132
     ></doctor-advice-dialog>
133
     ></doctor-advice-dialog>
133
 
134
 
134
     <computer-dialog
135
     <computer-dialog
225
       default: () => {
226
       default: () => {
226
         return 0;
227
         return 0;
227
       }
228
       }
229
+    },his_is_open:{
230
+      type: Number,
231
+      default: () => {
232
+        return 0;
233
+      }
228
     },
234
     },
229
     patient: {
235
     patient: {
230
       // 患者信息
236
       // 患者信息
575
       this.$refs.assessment_after_dislysis.show(this.assessment_after_dislysis,this.last_assessment_after_dislysis);
581
       this.$refs.assessment_after_dislysis.show(this.assessment_after_dislysis,this.last_assessment_after_dislysis);
576
     },
582
     },
577
     showDoctorAdviceDialog: function() {
583
     showDoctorAdviceDialog: function() {
578
-      this.$refs.doctor_advice.show();
584
+      this.$refs.doctor_advice.show(this.his_is_open);
579
     },
585
     },
580
     showComputerDialog: function() {
586
     showComputerDialog: function() {
581
       this.$refs.computer_dialog.show(this.dialysis_order);
587
       this.$refs.computer_dialog.show(this.dialysis_order);
584
       this.$refs.finish_dialog.show(this.dialysis_order);
590
       this.$refs.finish_dialog.show(this.dialysis_order);
585
     },
591
     },
586
     showPrescription: function() {
592
     showPrescription: function() {
587
-      this.$refs.prescription.show(this.prescription,this.schedual,this.last_dialysis_prescribe);
593
+      this.$refs.prescription.show(this.prescription,this.schedual,this.last_dialysis_prescribe,this.his_is_open);
588
     },
594
     },
589
     showAccepts: function() {
595
     showAccepts: function() {
590
       this.$refs.accepts.show(this.receiver_treatment_access);
596
       this.$refs.accepts.show(this.receiver_treatment_access);

+ 140 - 35
src/xt_pages/dialysis/details/dialog/DoctorAdviceDialog.vue View File

11
       <div class="txsj">
11
       <div class="txsj">
12
         <el-button
12
         <el-button
13
           round
13
           round
14
+
14
           @click="openLast(3)"
15
           @click="openLast(3)"
15
         >上一方
16
         >上一方
16
         </el-button>
17
         </el-button>
161
       <div class="txsj">
162
       <div class="txsj">
162
         <el-button
163
         <el-button
163
           round
164
           round
165
+          v-if="his_is_open != 1"
164
           @click="openLast(1)"
166
           @click="openLast(1)"
165
         >上一方
167
         >上一方
166
         </el-button>
168
         </el-button>
167
 
169
 
168
         <el-button
170
         <el-button
169
           round
171
           round
172
+          v-if="his_is_open != 1"
170
           @click="openNext(2)"
173
           @click="openNext(2)"
171
         >下一方
174
         >下一方
172
         </el-button>
175
         </el-button>
177
           round
180
           round
178
           @click="openGroupFrom"
181
           @click="openGroupFrom"
179
           :loading="deleLoading"
182
           :loading="deleLoading"
183
+          v-if="his_is_open != 1"
180
           :disabled="!is_has_create"
184
           :disabled="!is_has_create"
181
         >新增医嘱
185
         >新增医嘱
182
         </el-button>
186
         </el-button>
187
           :disabled="!is_has_exce"
191
           :disabled="!is_has_exce"
188
           @click="execAdvice"
192
           @click="execAdvice"
189
           :loading="deleLoading"
193
           :loading="deleLoading"
194
+
190
         >执行医嘱
195
         >执行医嘱
191
         </el-button>
196
         </el-button>
192
         <el-button v-else disabled round @click="execAdvice" :loading="deleLoading">执行医嘱</el-button>
197
         <el-button v-else disabled round @click="execAdvice" :loading="deleLoading">执行医嘱</el-button>
202
         <el-button v-else disabled round @click="checkAdvice" :loading="deleLoading">医嘱核对</el-button>
207
         <el-button v-else disabled round @click="checkAdvice" :loading="deleLoading">医嘱核对</el-button>
203
 
208
 
204
         <el-button
209
         <el-button
205
-          v-if="groupSelectRow != null"
210
+
211
+          v-if="groupSelectRow != null || his_is_open != 1"
206
           :disabled="!is_has_modify && !is_has_modify_other"
212
           :disabled="!is_has_modify && !is_has_modify_other"
207
           round
213
           round
208
           @click="openEditGroupAdvice"
214
           @click="openEditGroupAdvice"
212
         <el-button v-else disabled round @click="openEditGroupAdvice" :loading="deleLoading">修改医嘱</el-button>
218
         <el-button v-else disabled round @click="openEditGroupAdvice" :loading="deleLoading">修改医嘱</el-button>
213
 
219
 
214
         <el-button
220
         <el-button
215
-          v-if="groupSelectRow != null"
221
+          v-if="groupSelectRow != null ||  his_is_open != 1"
216
           :disabled="!is_has_del && !is_has_del_other"
222
           :disabled="!is_has_del && !is_has_del_other"
217
           round
223
           round
218
           @click="openDeleteGroupAdvice"
224
           @click="openDeleteGroupAdvice"
227
       <!--   @row-click="cellMouseEnter" -->
233
       <!--   @row-click="cellMouseEnter" -->
228
       <!--&lt;!&ndash;:header-cell-style="{ backgroundColor: 'rgb(64, 158, 255)', color: 'white'}"&ndash;&gt;@current-change="selectRow"-->
234
       <!--&lt;!&ndash;:header-cell-style="{ backgroundColor: 'rgb(64, 158, 255)', color: 'white'}"&ndash;&gt;@current-change="selectRow"-->
229
       <el-table
235
       <el-table
236
+        v-if="his_is_open == 0"
230
         :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }"
237
         :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }"
231
         :data="doctor_advices"
238
         :data="doctor_advices"
232
         border
239
         border
260
                 <i class="el-icon-arrow-down el-icon--right"></i>
267
                 <i class="el-icon-arrow-down el-icon--right"></i>
261
               </span>
268
               </span>
262
               <el-dropdown-menu slot="dropdown">
269
               <el-dropdown-menu slot="dropdown">
263
-                <el-dropdown-item @click.native="openEdit(scope.$index, scope.row)">修改医嘱</el-dropdown-item>
264
-                <el-dropdown-item @click.native="openDelete(scope.$index, scope.row)">删除医嘱</el-dropdown-item>
265
-                <el-dropdown-item @click.native="openNewChildTwo(scope.$index, scope.row)">新增子药</el-dropdown-item>
270
+                <el-dropdown-item v-if=" his_is_open != 1" @click.native="openEdit(scope.$index, scope.row)">修改医嘱</el-dropdown-item>
271
+                <el-dropdown-item v-if=" his_is_open != 1" @click.native="openDelete(scope.$index, scope.row)">删除医嘱</el-dropdown-item>
272
+                <el-dropdown-item v-if=" his_is_open != 1" @click.native="openNewChildTwo(scope.$index, scope.row)">新增子药</el-dropdown-item>
266
               </el-dropdown-menu>
273
               </el-dropdown-menu>
267
             </el-dropdown>
274
             </el-dropdown>
268
 
275
 
272
                 <i class="el-icon-arrow-down el-icon--right"></i>
279
                 <i class="el-icon-arrow-down el-icon--right"></i>
273
               </span>
280
               </span>
274
               <el-dropdown-menu slot="dropdown">
281
               <el-dropdown-menu slot="dropdown">
275
-                <el-dropdown-item @click.native="openEdit(scope.$index, scope.row)">修改子药</el-dropdown-item>
276
-                <el-dropdown-item @click.native="openDelete(scope.$index, scope.row)">删除子药</el-dropdown-item>
282
+                <el-dropdown-item v-if=" his_is_open != 1" @click.native="openEdit(scope.$index, scope.row)">修改子药</el-dropdown-item>
283
+                <el-dropdown-item v-if=" his_is_open != 1" @click.native="openDelete(scope.$index, scope.row)">删除子药</el-dropdown-item>
277
               </el-dropdown-menu>
284
               </el-dropdown-menu>
278
             </el-dropdown>
285
             </el-dropdown>
279
           </template>
286
           </template>
316
           </template>
323
           </template>
317
         </el-table-column>
324
         </el-table-column>
318
       </el-table>
325
       </el-table>
326
+      <el-table
327
+        v-else
328
+        :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }"
329
+        :data="doctor_advices"
330
+        border
331
+        style="width: 100%"
332
+        v-show="showAdvicePanel"
333
+        ref="advices_list"
334
+        @row-click="cellMouseEnter"
335
+        :row-class-name="tableRowClassName"
336
+        :cell-class-name="adviceNameShow"
337
+        :modal-append-to-body="false"
338
+        highlight-current-row
339
+      >
340
+        <el-table-column prop="date" label="开嘱医生" align="center" min-width="26px">
341
+          <template slot-scope="scope">
342
+            <span>{{ getXuserName(scope.row.advice_doctor) }}</span>
343
+          </template>
344
+        </el-table-column>
345
+        <el-table-column prop="start_time" label="开始时间" align="center" min-width="35px">
346
+          <template slot-scope="scope">
347
+            <span>
348
+              {{scope.row.start_time | parseTime('{y}-{m}-{d} {h}:{i}')}}
349
+            </span>
350
+          </template>
351
+        </el-table-column>
352
+        <el-table-column prop="advice_name" min-width="50px" label="医嘱内容" align="center">
353
+          <template slot-scope="scope">
354
+            <el-dropdown trigger="click" v-if="scope.row.parent_id == 0">
355
+              <span class="el-dropdown-link">
356
+                {{ getAdviceContent(scope.row, 1)}}
357
+                <i class="el-icon-arrow-down el-icon--right"></i>
358
+              </span>
359
+              <el-dropdown-menu slot="dropdown">
360
+                <el-dropdown-item v-if=" his_is_open != 1" @click.native="openEdit(scope.$index, scope.row)">修改医嘱</el-dropdown-item>
361
+                <el-dropdown-item v-if=" his_is_open != 1" @click.native="openDelete(scope.$index, scope.row)">删除医嘱</el-dropdown-item>
362
+                <el-dropdown-item v-if=" his_is_open != 1" @click.native="openNewChildTwo(scope.$index, scope.row)">新增子药</el-dropdown-item>
363
+              </el-dropdown-menu>
364
+            </el-dropdown>
365
+
366
+            <el-dropdown trigger="click" v-if="scope.row.parent_id > 0">
367
+              <span class="el-dropdown-link">
368
+                &emsp;{{ getAdviceContent(scope.row, 2)}}
369
+                <i class="el-icon-arrow-down el-icon--right"></i>
370
+              </span>
371
+              <el-dropdown-menu slot="dropdown">
372
+                <el-dropdown-item v-if=" his_is_open != 1" @click.native="openEdit(scope.$index, scope.row)">修改子药</el-dropdown-item>
373
+                <el-dropdown-item v-if=" his_is_open != 1" @click.native="openDelete(scope.$index, scope.row)">删除子药</el-dropdown-item>
374
+              </el-dropdown-menu>
375
+            </el-dropdown>
376
+          </template>
377
+        </el-table-column>
378
+
379
+        <el-table-column
380
+          prop="execution_time"
381
+          align="center"
382
+          min-width="30px"
383
+          label="执行时间"
384
+          sortable
385
+        >
386
+          <template slot-scope="scope">
387
+            <span v-if="scope.row.execution_time != 0">
388
+              {{scope.row.start_time | parseTime('{m}-{d} {h}:{i}')}}
389
+            </span>
390
+            <span v-else></span>
391
+          </template>
392
+        </el-table-column>
393
+        <el-table-column prop="execution_staff" align="center" min-width="30px" label="执行护士">
394
+          <template slot-scope="scope">
395
+            <span v-if="scope.row.parent_id == 0">
396
+              {{getXuserName(scope.row.execution_staff)}}
397
+            </span>
398
+            <span v-else></span>
399
+          </template>
400
+        </el-table-column>
401
+        <el-table-column
402
+          v-if="template_id != 6"
403
+          prop="checker"
404
+          min-width="30px"
405
+          align="center"
406
+          label="核对人员"
407
+        >
408
+          <template slot-scope="scope">
409
+            <span v-if="scope.row.parent_id == 0">
410
+              {{getXuserName(scope.row.checker)}}
411
+            </span>
412
+            <span v-else></span>
413
+          </template>
414
+        </el-table-column>
415
+      </el-table>
416
+
319
       <!-- 医嘱列表 end -->
417
       <!-- 医嘱列表 end -->
320
 
418
 
321
       <!-- 新医嘱列表 -->
419
       <!-- 新医嘱列表 -->
432
           </el-col>
530
           </el-col>
433
 
531
 
434
           <el-col :span="8">
532
           <el-col :span="8">
435
-            <el-form-item label="药品规格:">        
533
+            <el-form-item label="药品规格:">
436
                 <el-autocomplete
534
                 <el-autocomplete
437
                   style="width:100px;"
535
                   style="width:100px;"
438
                   class="inline-input"
536
                   class="inline-input"
441
                   placeholder="请输入内容"
539
                   placeholder="请输入内容"
442
                   @input="changeDrugDesc"
540
                   @input="changeDrugDesc"
443
                 ></el-autocomplete>
541
                 ></el-autocomplete>
444
-                 
542
+
445
                 <el-select
543
                 <el-select
446
                   v-model="form.drug_spec_unit"
544
                   v-model="form.drug_spec_unit"
447
                   style="width: 100px;"
545
                   style="width: 100px;"
681
         current_group_index: -1,
779
         current_group_index: -1,
682
         title: '临时医嘱',
780
         title: '临时医嘱',
683
         add_title: '新增医嘱',
781
         add_title: '新增医嘱',
684
-
782
+        his_is_open:0,
685
         showAdviceForm: false,
783
         showAdviceForm: false,
686
         showAdvicePanel: true,
784
         showAdvicePanel: true,
687
         showNameForm: false,
785
         showNameForm: false,
772
         this.form['dialysis_order_id'] = this.dialysis_order.id
870
         this.form['dialysis_order_id'] = this.dialysis_order.id
773
       },
871
       },
774
       doctor_advices: function() {
872
       doctor_advices: function() {
775
-        this.handleSpanTempArr()
776
-        this.hoverOrderArr = []
777
-        this.handleStyle()
873
+        // this.handleSpanTempArr()
874
+        // this.hoverOrderArr = []
875
+        // this.handleStyle()
778
       }
876
       }
779
     },
877
     },
780
     methods: {
878
     methods: {
849
               remark: ''
947
               remark: ''
850
             }
948
             }
851
             console.log("2223333",submitForm)
949
             console.log("2223333",submitForm)
852
-           
950
+
853
             let mode = '1'
951
             let mode = '1'
854
             CreateGroupAdvice(this.patientid, 0, submitForm, mode).then(
952
             CreateGroupAdvice(this.patientid, 0, submitForm, mode).then(
855
               response => {
953
               response => {
1178
       }
1276
       }
1179
       ,
1277
       ,
1180
       submitExce() {
1278
       submitExce() {
1181
-        
1279
+        console.log(this.currentRow.origin)
1182
         if (this.currentRow == null) {
1280
         if (this.currentRow == null) {
1183
           this.$message.error('请先选择要执行的医嘱!')
1281
           this.$message.error('请先选择要执行的医嘱!')
1184
           return false
1282
           return false
1195
         }
1293
         }
1196
         this.exceLoading = true
1294
         this.exceLoading = true
1197
         let mode = '6'
1295
         let mode = '6'
1198
-        
1199
-         console.log("222222",this.currentRow.id)
1200
-        
1201
-        ExecDoctorAdvice(this.patient.id, this.currentRow.id, this.execTime, mode).then(response => {
1296
+
1297
+
1298
+        ExecDoctorAdvice(this.patient.id, this.currentRow.id, this.execTime, mode,this.currentRow.origin).then(response => {
1202
             if (response.data.state == 0) {
1299
             if (response.data.state == 0) {
1203
               this.$message.error(response.data.msg)
1300
               this.$message.error(response.data.msg)
1204
               this.exceLoading = false
1301
               this.exceLoading = false
1262
           return false
1359
           return false
1263
         }
1360
         }
1264
         let mode = '1'
1361
         let mode = '1'
1265
-        
1362
+
1266
        if(this.src_type == ""){
1363
        if(this.src_type == ""){
1267
           this.form.way = 0
1364
           this.form.way = 0
1268
           this.form.drug_id = 0
1365
           this.form.drug_id = 0
1275
        }
1372
        }
1276
 
1373
 
1277
         console.log("新增医嘱子药",this.form)
1374
         console.log("新增医嘱子药",this.form)
1278
-       
1375
+
1279
         CreateDoctorAdvice(this.patient.id, this.form, mode)
1376
         CreateDoctorAdvice(this.patient.id, this.form, mode)
1280
           .then(response => {
1377
           .then(response => {
1281
             this.loading = false
1378
             this.loading = false
1501
       }
1598
       }
1502
       ,
1599
       ,
1503
       checkAdvice() {
1600
       checkAdvice() {
1601
+        console.log(this.currentRow)
1504
         // console.log(this.$store.getters.xt_user)
1602
         // console.log(this.$store.getters.xt_user)
1505
         if (this.currentRow == null) {
1603
         if (this.currentRow == null) {
1506
           this.$message.error('请先选择要核对的医嘱!')
1604
           this.$message.error('请先选择要核对的医嘱!')
1530
             this.deleLoading = true
1628
             this.deleLoading = true
1531
             let mode = '7'
1629
             let mode = '7'
1532
 
1630
 
1533
-            CheckDoctorAdvice(this.patient.id, this.currentRow.id, mode).then(
1631
+            CheckDoctorAdvice(this.patient.id, this.currentRow.id, mode,this.currentRow.origin).then(
1534
               response => {
1632
               response => {
1535
                 if (response.data.state == 0) {
1633
                 if (response.data.state == 0) {
1536
                   this.$message.error(response.data.msg)
1634
                   this.$message.error(response.data.msg)
1583
       }
1681
       }
1584
       ,
1682
       ,
1585
       execAdvice() {
1683
       execAdvice() {
1586
-        
1684
+
1587
         if (this.is_has_exce == false) {
1685
         if (this.is_has_exce == false) {
1588
           this.$message.error('你没有执行医嘱的权限')
1686
           this.$message.error('你没有执行医嘱的权限')
1589
           return false
1687
           return false
1724
           })
1822
           })
1725
           .catch(() => {
1823
           .catch(() => {
1726
           })
1824
           })
1727
-        this.handleSpanTempArr()
1825
+        // this.handleSpanTempArr()
1728
       }
1826
       }
1729
       ,
1827
       ,
1730
       openDelete(index, row) {
1828
       openDelete(index, row) {
1902
           }
2000
           }
1903
         })
2001
         })
1904
 
2002
 
1905
-        this.handleSpanTempArr()
1906
-        this.handleStyle()
2003
+        // this.handleSpanTempArr()
2004
+        // this.handleStyle()
1907
       }
2005
       }
1908
       ,
2006
       ,
1909
       getXuserName(id) {
2007
       getXuserName(id) {
1934
         this.$refs.addGroupForm.open()
2032
         this.$refs.addGroupForm.open()
1935
       }
2033
       }
1936
       ,
2034
       ,
1937
-      show() {
2035
+      show(his_is_open) {
2036
+        this.his_is_open = his_is_open
2037
+        console.log(this.his_is_open)
1938
         this.isVisibility = true
2038
         this.isVisibility = true
1939
         this.getPermission()
2039
         this.getPermission()
1940
       }
2040
       }
2025
           } else {
2125
           } else {
2026
             // 判断当前元素与上一个元素是否相同
2126
             // 判断当前元素与上一个元素是否相同
2027
             if (
2127
             if (
2028
-              this.doctor_advices[i].groupno ===
2029
-              this.doctor_advices[i - 1].groupno
2128
+              this.doctor_advices[i].created_time ===
2129
+              this.doctor_advices[i - 1].created_time
2030
             ) {
2130
             ) {
2031
               this.tempArr[this.pos] += 1
2131
               this.tempArr[this.pos] += 1
2032
               this.tempArr.push(0)
2132
               this.tempArr.push(0)
2036
             }
2136
             }
2037
           }
2137
           }
2038
         }
2138
         }
2039
-      }
2040
-      ,
2139
+      },
2041
       cellMouseEnter: function(row, column, event) {
2140
       cellMouseEnter: function(row, column, event) {
2042
         console.log("数据是",row)
2141
         console.log("数据是",row)
2043
         this.currentRow = row
2142
         this.currentRow = row
2062
           if (index === 0) {
2161
           if (index === 0) {
2063
             sameRowArr.push([index])
2162
             sameRowArr.push([index])
2064
           } else {
2163
           } else {
2065
-            if (item.groupno === this.doctor_advices[index - 1].groupno) {
2164
+            if (item.created_time === this.doctor_advices[index - 1].created_time) {
2066
               sameRowArr[sIdx].push(index)
2165
               sameRowArr[sIdx].push(index)
2067
             } else {
2166
             } else {
2068
               sIdx = sIdx + 1
2167
               sIdx = sIdx + 1
2175
         // });
2274
         // });
2176
       },
2275
       },
2177
       objectSpanMethod({ row, column, rowIndex, columnIndex }) {
2276
       objectSpanMethod({ row, column, rowIndex, columnIndex }) {
2178
-     
2277
+
2179
         if (columnIndex === 0) {
2278
         if (columnIndex === 0) {
2180
           if (rowIndex % 2 === 0) {
2279
           if (rowIndex % 2 === 0) {
2181
             return {
2280
             return {
2211
 
2310
 
2212
             var doctor_advices = response.data.data.advices
2311
             var doctor_advices = response.data.data.advices
2213
             console.log("doctor_advices",doctor_advices)
2312
             console.log("doctor_advices",doctor_advices)
2214
-           
2313
+
2215
             this.other_doctor_advices = doctor_advices
2314
             this.other_doctor_advices = doctor_advices
2216
             this.request_record_date = uParseTime(this.other_doctor_advices[0].record_date, '{y}-{m}-{d}')
2315
             this.request_record_date = uParseTime(this.other_doctor_advices[0].record_date, '{y}-{m}-{d}')
2217
             this.sch = response.data.data.schedule
2316
             this.sch = response.data.data.schedule
2405
             }else{
2504
             }else{
2406
               this.form.drug_name_id = 0
2505
               this.form.drug_name_id = 0
2407
             }
2506
             }
2408
-           
2507
+
2409
           }
2508
           }
2410
         }
2509
         }
2411
       },
2510
       },
2460
       this.getDialysisScheduleDetail()
2559
       this.getDialysisScheduleDetail()
2461
        //获取自备药
2560
        //获取自备药
2462
       this.getSelfMedicalList()
2561
       this.getSelfMedicalList()
2562
+    },mounted(){
2563
+      console.log("~~~~~")
2564
+      console.log(this.his_is_open)
2565
+      console.log("~~~~~")
2566
+
2567
+
2463
     },
2568
     },
2464
     components: {
2569
     components: {
2465
       AddGroupAdvice,
2570
       AddGroupAdvice,

+ 13 - 10
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue View File

517
 
517
 
518
               <el-input v-model="dialysisPrescription.blood" @focus="showInnerDialog('6')"></el-input>
518
               <el-input v-model="dialysisPrescription.blood" @focus="showInnerDialog('6')"></el-input>
519
 
519
 
520
-              
520
+
521
             </el-form-item>
521
             </el-form-item>
522
           </el-col>
522
           </el-col>
523
 
523
 
791
             <!--</el-form-item>-->
791
             <!--</el-form-item>-->
792
           <!--</el-col>-->
792
           <!--</el-col>-->
793
 
793
 
794
-           
794
+
795
 
795
 
796
 
796
 
797
 
797
 
1358
             //     this.InnerDialogProps.selected = arrtwo
1358
             //     this.InnerDialogProps.selected = arrtwo
1359
             //     this.InnerDialogProps.isShowTextArea = false
1359
             //     this.InnerDialogProps.isShowTextArea = false
1360
             //     break
1360
             //     break
1361
-            // }  
1361
+            // }
1362
         }
1362
         }
1363
-      }, 
1363
+      },
1364
       innerDialogComfirm: function(val) {
1364
       innerDialogComfirm: function(val) {
1365
         this.InnerDialogProps.visibility = false
1365
         this.InnerDialogProps.visibility = false
1366
         switch (val.type) {
1366
         switch (val.type) {
1819
       getTime(val) {
1819
       getTime(val) {
1820
         return uParseTime(val, '{y}-{m}-{d} {h}:{i}')
1820
         return uParseTime(val, '{y}-{m}-{d} {h}:{i}')
1821
       },
1821
       },
1822
-      show(pre,schedual,last) {
1822
+      show(pre,schedual,last,his_is_open) {
1823
+        if(his_is_open == 1){
1824
+          this.is_open = 0
1825
+        }
1823
         var date = new Date()
1826
         var date = new Date()
1824
         var year = date.getFullYear()
1827
         var year = date.getFullYear()
1825
         var month = date.getMonth() + 1
1828
         var month = date.getMonth() + 1
1892
 
1895
 
1893
         if (this.predialysis == null || this.predialysis.id == 0) {
1896
         if (this.predialysis == null || this.predialysis.id == 0) {
1894
           if(last != null) {
1897
           if(last != null) {
1895
-          
1898
+
1896
             this.dialysisPrescription.niprocart = last.niprocart
1899
             this.dialysisPrescription.niprocart = last.niprocart
1897
             this.dialysisPrescription.jms = last.jms
1900
             this.dialysisPrescription.jms = last.jms
1898
             this.dialysisPrescription.fistula_needle_set = last.fistula_needle_set
1901
             this.dialysisPrescription.fistula_needle_set = last.fistula_needle_set
2000
             ParamsQuery['patient'] = this.patient.id
2003
             ParamsQuery['patient'] = this.patient.id
2001
             ParamsQuery['record_date'] = this.record_date
2004
             ParamsQuery['record_date'] = this.record_date
2002
             ParamsQuery['mode'] = '1'
2005
             ParamsQuery['mode'] = '1'
2003
-    
2006
+
2004
             console.log("第一")
2007
             console.log("第一")
2005
             postPrescription(ParamsQuery).then(response => {
2008
             postPrescription(ParamsQuery).then(response => {
2006
               if (response.data.state == 0) {
2009
               if (response.data.state == 0) {
2092
               ParamsQuery['record_date'] = this.record_date
2095
               ParamsQuery['record_date'] = this.record_date
2093
               ParamsQuery['mode'] = '1'
2096
               ParamsQuery['mode'] = '1'
2094
               console.log("第三")
2097
               console.log("第三")
2095
-              
2098
+
2096
               postPrescription(ParamsQuery).then(response => {
2099
               postPrescription(ParamsQuery).then(response => {
2097
                 if (response.data.state == 0) {
2100
                 if (response.data.state == 0) {
2098
                   this.$message.error(response.data.msg)
2101
                   this.$message.error(response.data.msg)
2175
                     type: 'success',
2178
                     type: 'success',
2176
                     duration: 2000
2179
                     duration: 2000
2177
                   })
2180
                   })
2178
- 
2181
+
2179
                   const prescription_resp = response.data.data.prescription
2182
                   const prescription_resp = response.data.data.prescription
2180
                   // console.log("aaaaaaa", prescription_resp);
2183
                   // console.log("aaaaaaa", prescription_resp);
2181
                   var prescription = this.prescription
2184
                   var prescription = this.prescription
2817
                       duration: 2000
2820
                       duration: 2000
2818
                     })
2821
                     })
2819
                     const params = {
2822
                     const params = {
2820
-                   
2823
+
2821
                       advices: this.waitUploadAdvices,
2824
                       advices: this.waitUploadAdvices,
2822
                       advice_date: uParseTime(
2825
                       advice_date: uParseTime(
2823
                         this.$route.query.date,
2826
                         this.$route.query.date,

+ 24 - 0
src/xt_pages/dialysis/details/index.vue View File

264
         :special_premission="headNurses"
264
         :special_premission="headNurses"
265
         @assessmentAfterDislysis="assessmentAfterDislysisFunc"
265
         @assessmentAfterDislysis="assessmentAfterDislysisFunc"
266
         :system_prescribe="system_prescribe"
266
         :system_prescribe="system_prescribe"
267
+        :his_is_open="his_is_open"
267
       >
268
       >
268
       </nav-igation>
269
       </nav-igation>
269
 
270
 
623
       aliquid_info: [],
624
       aliquid_info: [],
624
       config: {},
625
       config: {},
625
 
626
 
627
+      his_is_open:0,
628
+
626
       lastPredialysisEvaluation: { id: 0 },
629
       lastPredialysisEvaluation: { id: 0 },
627
       lastMonitorRecord: { id: 0 },
630
       lastMonitorRecord: { id: 0 },
628
       lastAssessmentAfterDislysis: { id: 0 },
631
       lastAssessmentAfterDislysis: { id: 0 },
930
               }
933
               }
931
 
934
 
932
               this.is_open = resp.data.is_open_remind
935
               this.is_open = resp.data.is_open_remind
936
+              if(this.his_is_open == 1){
937
+                this.is_open = 0
938
+              }
933
               this.longAdvices = totalAdvice
939
               this.longAdvices = totalAdvice
934
               this.waitUploadAdvices = waitUploadAdvices
940
               this.waitUploadAdvices = waitUploadAdvices
935
               break
941
               break
1111
           this.devices = resp.data.devices
1117
           this.devices = resp.data.devices
1112
           this.device_numbers = resp.data.device_numbers
1118
           this.device_numbers = resp.data.device_numbers
1113
 
1119
 
1120
+          var his_doctor_advices = resp.data.his_advices
1121
+          this.his_is_open = resp.data.is_open_config.is_open
1122
+          console.log(this.his_is_open)
1123
+
1124
+
1125
+          for (let i = 0; i <  this.doctor_advices.length; i++){
1126
+            this.doctor_advices[i]['origin'] = 1
1127
+          }
1128
+
1129
+          if (his_doctor_advices != null) {
1130
+            for (let i = 0; i < his_doctor_advices.length; i++) {
1131
+              his_doctor_advices[i]['origin'] = 2
1132
+              his_doctor_advices[i]['way'] = 1
1133
+              this.doctor_advices.push(his_doctor_advices[i])
1134
+            }
1135
+          }
1136
+
1137
+
1114
           var device_map = {}
1138
           var device_map = {}
1115
           for (let index = 0; index < this.devices.length; index++) {
1139
           for (let index = 0; index < this.devices.length; index++) {
1116
             const device = this.devices[index]
1140
             const device = this.devices[index]

+ 136 - 1
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue View File

85
             <el-tab-pane name="more" closable><span slot="label"><i class="el-icon-plus" @click="addTab"></i></span>
85
             <el-tab-pane name="more" closable><span slot="label"><i class="el-icon-plus" @click="addTab"></i></span>
86
             </el-tab-pane>
86
             </el-tab-pane>
87
             <div class="RP">Rp</div>
87
             <div class="RP">Rp</div>
88
+
89
+            <div style="float: right">
90
+            <el-button
91
+              round
92
+              @click="openLast(3)"
93
+            >上一方
94
+            </el-button>
95
+
96
+            <el-button
97
+              round
98
+              @click="openNext(4)"
99
+            >下一方
100
+            </el-button>
101
+            </div>
102
+
88
             <prescription-table ref="prescription_tables" :prescription="curPrescriptions" :preDrugs="preDrugs"
103
             <prescription-table ref="prescription_tables" :prescription="curPrescriptions" :preDrugs="preDrugs"
89
                                 :activeType="customTabIndex"></prescription-table>
104
                                 :activeType="customTabIndex"></prescription-table>
90
           </el-tabs>
105
           </el-tabs>
286
                        :patientInfo="patientInfo" :additions="additions" ></additionalCharges>
301
                        :patientInfo="patientInfo" :additions="additions" ></additionalCharges>
287
     <select-template ref='selectTemplate'></select-template>
302
     <select-template ref='selectTemplate'></select-template>
288
     <save-template ref='saveTemplate'></save-template>
303
     <save-template ref='saveTemplate'></save-template>
304
+    <next-or-last-prescription></next-or-last-prescription>
305
+
289
   </div>
306
   </div>
290
 </template>
307
 </template>
291
 
308
 
296
     delHisPrescription,
313
     delHisPrescription,
297
     getInitData,
314
     getInitData,
298
     getPatientInfo,
315
     getPatientInfo,
299
-    getSchedulePatientList
316
+    getSchedulePatientList,
317
+    getNextOrLastHisPrescription
300
   } from '@/api/his/his'
318
   } from '@/api/his/his'
301
   import { getDictionaryDataConfig } from '@/utils/data'
319
   import { getDictionaryDataConfig } from '@/utils/data'
302
   import prescriptionTable from './prescriptionTable'
320
   import prescriptionTable from './prescriptionTable'
304
   import saveTemplate from './saveTemplate'
322
   import saveTemplate from './saveTemplate'
305
   import additionalCharges from './additionalCharges'
323
   import additionalCharges from './additionalCharges'
306
   import { addProjectTeam, getAllProjectTeam, getHisProject, getPojectListById } from '@/api/project/project'
324
   import { addProjectTeam, getAllProjectTeam, getHisProject, getPojectListById } from '@/api/project/project'
325
+  import { uParseTime } from '@/utils/tools'
326
+  import NextOrLastPrescription from "./nextOrLastPrescription";
307
 
327
 
308
   export default {
328
   export default {
309
     props: {
329
     props: {
323
       },
343
       },
324
     },
344
     },
325
     components: {
345
     components: {
346
+      NextOrLastPrescription,
326
       selectTemplate,
347
       selectTemplate,
327
       saveTemplate,
348
       saveTemplate,
328
       prescriptionTable,
349
       prescriptionTable,
340
           {value: 7,label: "其他"},
361
           {value: 7,label: "其他"},
341
 
362
 
342
         ],
363
         ],
364
+        isLastOrNextVisible:false,
343
         multipleTableHeight:'',
365
         multipleTableHeight:'',
344
         register_type: '',
366
         register_type: '',
345
         value: '0',
367
         value: '0',
369
         departmentValue: '',
391
         departmentValue: '',
370
         total: 0,
392
         total: 0,
371
         state1: '',
393
         state1: '',
394
+        request_record_date:'',
372
         state2: '',
395
         state2: '',
373
         customTabIndex: 1,
396
         customTabIndex: 1,
374
         options: [],
397
         options: [],
399
       }
422
       }
400
     },
423
     },
401
     methods: {
424
     methods: {
425
+      GetNextOrLastHisPrescription(params){
426
+        getNextOrLastHisPrescription(params).then(response => {
427
+          if (response.data.state == 1) {
428
+
429
+            // this.request_record_date = uParseTime(this.other_doctor_advices[0].record_date, '{y}-{m}-{d}')
430
+          } else {
431
+            this.$message.error(response.data.msg)
432
+
433
+          }
434
+        })
435
+
436
+
437
+      },
438
+      openLast(val) {
439
+        if (val == 1) {
440
+          this.isLastOrNextVisible = true
441
+          this.isVisibility = false
442
+          this.request_record_date = this.record_date
443
+
444
+          let params = {
445
+            patient_id: this.patientid,
446
+            record_time: this.request_record_date,
447
+            type: 1
448
+          }
449
+
450
+          this.GetNextOrLastHisPrescription(params)
451
+        } else if (val == 3) {
452
+
453
+          let params = {
454
+            patient_id: this.patientid,
455
+            record_time: this.request_record_date,
456
+            type: 1
457
+          }
458
+
459
+          this.GetNextOrLastHisPrescription(params)
460
+
461
+        }
462
+      },
463
+      openNext(val) {
464
+        if (val == 2) {
465
+          this.isLastOrNextVisible = true
466
+          this.isVisibility = false
467
+          this.request_record_date = this.record_date
468
+
469
+          let params = {
470
+            patient_id: this.patientid,
471
+            record_time: this.request_record_date,
472
+            type: 2
473
+          }
474
+
475
+          this.GetNextOrLastHisPrescription(params)
476
+        } else if (val == 4) {
477
+          let params = {
478
+            patient_id: this.patientid,
479
+            record_time: this.request_record_date,
480
+            type: 2
481
+          }
482
+          this.GetNextOrLastHisPrescription(params)
483
+
484
+        }
485
+      },
486
+
402
       selectTemplate(selection, row){
487
       selectTemplate(selection, row){
403
         this.tempDrugs = selection
488
         this.tempDrugs = selection
404
 
489
 
1095
             }
1180
             }
1096
           }
1181
           }
1097
         }
1182
         }
1183
+        let templateDrugs=[]
1184
+
1185
+        for (let i = 0; i< this.tempDrugs.length;i++){
1186
+          for (let a = 0; a < this.tempDrugs[i].advices.length; a++ ){
1187
+            templateDrugs.push(this.tempDrugs[i].advices[a])
1188
+          }
1189
+        }
1190
+
1191
+        // for (let i = 0; i < templateDrugs.length; i++) {
1192
+        //   for (let a = 0; a < this.curPrescriptions.advices.length; a++) {
1193
+        //     if (this.templateDrugs[i].drug_id == this.curPrescriptions.advices[i].id) {
1194
+        //       this.$message.error('改处方存在相同的药品,无法添加相同的药品')
1195
+        //       return
1196
+        //
1197
+        //     }
1198
+        //   }
1199
+        // }
1200
+
1098
 
1201
 
1099
         for (let i = 0; i < this.prescriptions.length; i++) {
1202
         for (let i = 0; i < this.prescriptions.length; i++) {
1100
           if (this.prescriptions[i].name == this.editableTabsValue) {
1203
           if (this.prescriptions[i].name == this.editableTabsValue) {
1101
             var temp = this.deepClone(this.curDrugs)
1204
             var temp = this.deepClone(this.curDrugs)
1102
             var temp2 = this.deepClone(this.teamList)
1205
             var temp2 = this.deepClone(this.teamList)
1206
+
1207
+            var temp3 = this.deepClone(templateDrugs)
1208
+
1209
+            if (temp3.length > 0) {
1210
+              for (let b = 0; b < temp3.length; b++) {
1211
+                let obj = {
1212
+                  advice_id: 0,
1213
+                  id: temp3[b].id,
1214
+                  drug_name: temp3[b].advice_name,
1215
+                  single_dose: temp3[b].single_dose,
1216
+                  delivery_way: temp3[b].delivery_way,
1217
+                  execution_frequency: temp3[b].execution_frequency,
1218
+                  retail_price: temp3[b].drug.retail_price.toString(),
1219
+                  remark: '',
1220
+                  day:1,
1221
+                  prescribing_number: temp3[b].prescribing_number,
1222
+                  single_dose_unit: temp3[b].drug.min_unit,
1223
+                  prescribing_number_unit: temp3[b].drug.max_unit,
1224
+                  medical_insurance_number: temp3[b].drug.medical_insurance_number
1225
+                }
1226
+
1227
+                if(obj.prescribing_number == 0 || obj.prescribing_number.length  == 0){
1228
+                  obj.prescribing_number = 1
1229
+                }
1230
+                this.prescriptions[i].advices.push(obj)
1231
+              }
1232
+              this.curStatus = 1
1233
+            }
1234
+
1235
+
1236
+
1103
             if (temp.length > 0) {
1237
             if (temp.length > 0) {
1104
               for (let b = 0; b < temp.length; b++) {
1238
               for (let b = 0; b < temp.length; b++) {
1105
                 let obj = {
1239
                 let obj = {
1247
         }
1381
         }
1248
       }
1382
       }
1249
     },mounted(){
1383
     },mounted(){
1384
+      this.request_record_date = this.record_date
1250
       this.getInitData()
1385
       this.getInitData()
1251
       //获取所有项目
1386
       //获取所有项目
1252
       this.getlist()
1387
       this.getlist()

+ 353 - 0
src/xt_pages/outpatientDoctorStation/components/nextOrLastPrescription.vue View File

1
+<template>
2
+  <el-dialog
3
+    title="1111"
4
+    :visible.sync="isLastOrNextVisible"
5
+    width="1010px"
6
+    @close="resetDialog"
7
+    :modal-append-to-body="false"
8
+  >
9
+    <div class="txsj">
10
+      <el-button
11
+        round
12
+
13
+        @click="openLast(1)"
14
+      >上一方
15
+      </el-button>
16
+
17
+      <el-button
18
+        round
19
+        @click="openNext(2)"
20
+      >下一方
21
+      </el-button>
22
+    </div>
23
+
24
+    <div  v-for="(item,index) in allPrescription" :key="index">
25
+      <div>{{item.title}}</div>
26
+      <el-checkbox-group v-model="item.check_group">
27
+        <div v-for="(subItem,index2) in item.prescriptions" :key="index2" >
28
+          <el-checkbox :label="subItem.id" :name='index2'>123{{ index2 }}</el-checkbox>
29
+          <el-table v-if="subItem.type  == 1" :data="subItem.advices" border style="width: 99%;" :row-style="{ color: '#303133' }"
30
+                      :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" highlight-current-row>
31
+              <el-table-column align="center" type="index" width="40" label="序号"></el-table-column>
32
+              <el-table-column align="center" prop="drug_name" label="名称">
33
+                <template slot-scope="scope"><span :title="scope.row.drug_name">{{ scope.row.drug_name }}</span></template>
34
+              </el-table-column>
35
+
36
+              <el-table-column align="center" prop="single_dose" width="90" label="单次用量">
37
+                <template slot-scope="scope">
38
+                  <div style="display:flex;align-items:center;">
39
+                    <el-input v-model="scope.row.single_dose" style="width:65%;"></el-input>
40
+                    <div>{{scope.row.single_dose_unit}}</div>
41
+                  </div>
42
+                </template>
43
+              </el-table-column>
44
+              <el-table-column align="center" prop="delivery_way" width="100" label="用法">
45
+                <template slot-scope="scope">
46
+                  {{scope.row.delivery_way}}
47
+                </template>
48
+              </el-table-column>
49
+              <el-table-column align="center" prop="execution_frequency" width="100" label="频率">
50
+                <template slot-scope="scope">
51
+                  {{scope.row.execution_frequency}}
52
+                </template>
53
+              </el-table-column>
54
+
55
+
56
+              <el-table-column align="center" prop="day" width="50" label="天数">
57
+                <template slot-scope="scope">
58
+                  <el-input v-model="scope.row.day" placeholder=""></el-input>
59
+                </template>
60
+              </el-table-column>
61
+
62
+              <el-table-column align="center" prop="prescribing_number" width="80" label="总量">
63
+                <template slot-scope="scope">
64
+                  <div style="display:flex;align-items:center;">
65
+                    <el-input v-model="scope.row.prescribing_number" style="width:60%" placeholder=""></el-input>
66
+                    <div> {{scope.row.prescribing_number_unit}}</div>
67
+                  </div>
68
+                </template>
69
+              </el-table-column>
70
+              <el-table-column align="center" prop="retail_price" width="60" label="单价">
71
+                <template slot-scope="scope">
72
+                  <el-input v-model="scope.row.retail_price" placeholder="" readonly></el-input>
73
+                </template>
74
+              </el-table-column>
75
+              <el-table-column align="center" prop="remark" width="50" label="备注">
76
+                <template slot-scope="scope">
77
+                  <el-input v-model="scope.row.remark" :title="scope.row.remark" placeholder=""></el-input>
78
+                </template>
79
+              </el-table-column>
80
+            </el-table>
81
+
82
+            <el-table v-if="subItem.type == 2" :data="subItem.project" border style="width: 99%;" :row-style="{ color: '#303133' }"
83
+                      :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" highlight-current-row>
84
+              <el-table-column align="center" type="index" width="40" label="序号"></el-table-column>
85
+              <el-table-column align="center" prop="project_name" label="名称">
86
+                <template slot-scope="scope"><span :title="scope.row.project_name">{{ scope.row.project_name }}</span></template>
87
+              </el-table-column>
88
+              <el-table-column align="center" prop="statistical_classification" width="100" label="组">
89
+                <template slot-scope="scope">{{getGroup(scope.row.statistical_classification)}}</template>
90
+              </el-table-column>
91
+              <el-table-column align="center" prop="single_dose" width="80" label="单次用量">
92
+                <template slot-scope="scope">
93
+                  <el-input v-model="scope.row.single_dose" placeholder=""></el-input>
94
+                </template>
95
+              </el-table-column>
96
+              <el-table-column align="center" prop="delivery_way" width="80" label="用法">
97
+                <template slot-scope="scope">
98
+                  <el-input v-model="scope.row.delivery_way" placeholder=""></el-input>
99
+                </template>
100
+              </el-table-column>
101
+              <el-table-column align="center" prop="execution_frequency" width="80" label="频率">
102
+                <template slot-scope="scope">
103
+                  <el-input v-model="scope.row.execution_frequency" placeholder=""></el-input>
104
+                </template>
105
+              </el-table-column>
106
+              <el-table-column align="center" prop="number_days" width="50" label="天数">
107
+                <template slot-scope="scope">
108
+                  <el-input v-model="scope.row.number_days" placeholder=""></el-input>
109
+                </template>
110
+              </el-table-column>
111
+              <el-table-column align="center" prop="total" width="70" label="总量">
112
+                <template slot-scope="scope">
113
+                  <div style="display:flex;align-items:center;">
114
+                    <el-input v-model="scope.row.total" style="width:60%" placeholder=""></el-input>
115
+                    <div>{{scope.row.unit}}</div>
116
+                  </div>
117
+                </template>
118
+              </el-table-column>
119
+              <el-table-column align="center" prop="name" width="50" label="单价">
120
+                <template slot-scope="scope">
121
+                  <el-input v-model="scope.row.price" placeholder="" readonly></el-input>
122
+                </template>
123
+              </el-table-column>
124
+              <el-table-column align="center" prop="name" width="50" label="备注">
125
+                <template slot-scope="scope">
126
+                  <el-input v-model="scope.row.remark" :title="scope.row.remark"></el-input>
127
+                </template>
128
+              </el-table-column>
129
+            </el-table>
130
+          </div>
131
+      </el-checkbox-group>
132
+
133
+    </div>
134
+
135
+
136
+    <!--<el-table v-if="activeType  == 1" :data="prescription.advices" border style="width: 99%;" :row-style="{ color: '#303133' }"-->
137
+    <!--:header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" highlight-current-row>-->
138
+    <!--<el-table-column align="center" type="index" width="40" label="序号"></el-table-column>-->
139
+    <!--<el-table-column align="center" prop="drug_name" label="名称">-->
140
+    <!--<template slot-scope="scope"><span :title="scope.row.drug_name">{{ scope.row.drug_name }}</span></template>-->
141
+    <!--</el-table-column>-->
142
+
143
+    <!--<el-table-column align="center" prop="single_dose" width="90" label="单次用量">-->
144
+    <!--<template slot-scope="scope">-->
145
+    <!--<div style="display:flex;align-items:center;">-->
146
+    <!--<el-input v-model="scope.row.single_dose" style="width:65%;"></el-input>-->
147
+    <!--<div>{{scope.row.single_dose_unit}}</div>-->
148
+    <!--</div>-->
149
+    <!--</template>-->
150
+    <!--</el-table-column>-->
151
+    <!--<el-table-column align="center" prop="delivery_way" width="100" label="用法">-->
152
+    <!--<template slot-scope="scope">-->
153
+    <!--<el-select v-model="scope.row.delivery_way" placeholder="请选择">-->
154
+    <!--<el-option-->
155
+    <!--v-for="(item,index) in drugways"-->
156
+    <!--:key="index"-->
157
+    <!--:label="item.name"-->
158
+    <!--:value="item.name">-->
159
+    <!--</el-option>-->
160
+    <!--</el-select>-->
161
+    <!--</template>-->
162
+    <!--</el-table-column>-->
163
+    <!--<el-table-column align="center" prop="execution_frequency" width="100" label="频率">-->
164
+    <!--<template slot-scope="scope">-->
165
+    <!--<el-select v-model="scope.row.execution_frequency" placehold er="请选择">-->
166
+    <!--<el-option-->
167
+    <!--v-for="item,index in efs"-->
168
+    <!--:key="index"-->
169
+    <!--:label="item.name"-->
170
+    <!--:value="item.name">-->
171
+    <!--</el-option>-->
172
+    <!--</el-select>-->
173
+    <!--</template>-->
174
+    <!--</el-table-column>-->
175
+
176
+
177
+    <!--<el-table-column align="center" prop="day" width="50" label="天数">-->
178
+    <!--<template slot-scope="scope">-->
179
+    <!--<el-input v-model="scope.row.day" placeholder=""></el-input>-->
180
+    <!--</template>-->
181
+    <!--</el-table-column>-->
182
+
183
+    <!--<el-table-column align="center" prop="prescribing_number" width="80" label="总量">-->
184
+    <!--<template slot-scope="scope">-->
185
+    <!--<div style="display:flex;align-items:center;">-->
186
+    <!--<el-input v-model="scope.row.prescribing_number" style="width:60%" placeholder=""></el-input>-->
187
+    <!--<div> {{scope.row.prescribing_number_unit}}</div>-->
188
+    <!--</div>-->
189
+    <!--</template>-->
190
+    <!--</el-table-column>-->
191
+    <!--<el-table-column align="center" prop="retail_price" width="60" label="单价">-->
192
+    <!--<template slot-scope="scope">-->
193
+    <!--<el-input v-model="scope.row.retail_price" placeholder="" readonly></el-input>-->
194
+    <!--</template>-->
195
+    <!--</el-table-column>-->
196
+    <!--<el-table-column align="center" prop="remark" width="50" label="备注">-->
197
+    <!--<template slot-scope="scope">-->
198
+    <!--<el-input v-model="scope.row.remark" :title="scope.row.remark" placeholder=""></el-input>-->
199
+    <!--</template>-->
200
+    <!--</el-table-column>-->
201
+    <!--<el-table-column align="center" width="40" prop="name" label="操作">-->
202
+    <!--<template slot-scope="scope">-->
203
+    <!--<i class="el-icon-delete" @click="deleteDrug(scope.$index, scope.row)"></i>-->
204
+    <!--</template>-->
205
+    <!--</el-table-column>-->
206
+    <!--</el-table>-->
207
+
208
+    <!--<el-table v-if="activeType == 2" :data="prescription.project" border style="width: 99%;" :row-style="{ color: '#303133' }"-->
209
+    <!--:header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" highlight-current-row>-->
210
+    <!--<el-table-column align="center" type="index" width="40" label="序号"></el-table-column>-->
211
+    <!--<el-table-column align="center" prop="project_name" label="名称">-->
212
+    <!--<template slot-scope="scope"><span :title="scope.row.project_name">{{ scope.row.project_name }}</span></template>-->
213
+    <!--</el-table-column>-->
214
+    <!--<el-table-column align="center" prop="statistical_classification" width="100" label="组">-->
215
+    <!--<template slot-scope="scope">{{getGroup(scope.row.statistical_classification)}}</template>-->
216
+    <!--</el-table-column>-->
217
+    <!--<el-table-column align="center" prop="single_dose" width="80" label="单次用量">-->
218
+    <!--<template slot-scope="scope">-->
219
+    <!--<el-input v-model="scope.row.single_dose" placeholder=""></el-input>-->
220
+    <!--</template>-->
221
+    <!--</el-table-column>-->
222
+    <!--<el-table-column align="center" prop="delivery_way" width="80" label="用法">-->
223
+    <!--<template slot-scope="scope">-->
224
+    <!--<el-input v-model="scope.row.delivery_way" placeholder=""></el-input>-->
225
+    <!--</template>-->
226
+    <!--</el-table-column>-->
227
+    <!--<el-table-column align="center" prop="execution_frequency" width="80" label="频率">-->
228
+    <!--<template slot-scope="scope">-->
229
+    <!--<el-input v-model="scope.row.execution_frequency" placeholder=""></el-input>-->
230
+    <!--</template>-->
231
+    <!--</el-table-column>-->
232
+    <!--<el-table-column align="center" prop="number_days" width="50" label="天数">-->
233
+    <!--<template slot-scope="scope">-->
234
+    <!--<el-input v-model="scope.row.number_days" placeholder=""></el-input>-->
235
+    <!--</template>-->
236
+    <!--</el-table-column>-->
237
+    <!--<el-table-column align="center" prop="total" width="70" label="总量">-->
238
+    <!--<template slot-scope="scope">-->
239
+    <!--<div style="display:flex;align-items:center;">-->
240
+    <!--<el-input v-model="scope.row.total" style="width:60%" placeholder=""></el-input>-->
241
+    <!--<div>{{scope.row.unit}}</div>-->
242
+
243
+    <!--</div>-->
244
+    <!--</template>-->
245
+    <!--</el-table-column>-->
246
+    <!--<el-table-column align="center" prop="name" width="50" label="单价">-->
247
+    <!--<template slot-scope="scope">-->
248
+    <!--<el-input v-model="scope.row.price" placeholder="" readonly></el-input>-->
249
+    <!--</template>-->
250
+    <!--</el-table-column>-->
251
+    <!--<el-table-column align="center" prop="name" width="50" label="备注">-->
252
+    <!--<template slot-scope="scope">-->
253
+    <!--<el-input v-model="scope.row.remark" :title="scope.row.remark"></el-input>-->
254
+    <!--</template>-->
255
+    <!--</el-table-column>-->
256
+    <!--<el-table-column align="center" width="40" prop="name" label="操作">-->
257
+    <!--<template slot-scope="scope">-->
258
+    <!--<i class="el-icon-delete" @click="deleteProject(scope.row,scope.$index)"></i>-->
259
+    <!--</template>-->
260
+    <!--</el-table-column>-->
261
+    <!--</el-table>-->
262
+
263
+
264
+    <div slot="footer" class="dialog-footer">
265
+      <el-button @click="isLastOrNextVisible = false">取 消</el-button>
266
+      <el-button type="primary" @click="AddNewAdvice('adForm')">保存</el-button>
267
+    </div>
268
+  </el-dialog>
269
+
270
+
271
+</template>
272
+
273
+<script>
274
+  export default {
275
+    name: "nextOrLastPrescription",
276
+    data() {
277
+      return {
278
+        allPrescription:[
279
+          {
280
+            title:"12333",
281
+            check_group:[],
282
+            prescriptions:[
283
+              {
284
+                id:5,
285
+
286
+                type:1,
287
+                doctor_advice:[],
288
+                project:[],
289
+              },
290
+              {
291
+                id:8,
292
+                type:1,
293
+                doctor_advice:[],
294
+                project:[],
295
+              },
296
+              {
297
+                id:6,
298
+
299
+                type:2,
300
+                doctor_advice:[],
301
+                project:[],
302
+              },
303
+              {
304
+                id:7,
305
+                type:2,
306
+                doctor_advice:[],
307
+                project:[],
308
+              },
309
+            ],
310
+          }, {
311
+            title:"4567",
312
+            check_group:[],
313
+            prescriptions:[
314
+              {
315
+                id:1,
316
+                type:2,
317
+                doctor_advice:[],
318
+                project:[],
319
+              },
320
+              {
321
+                id:2,
322
+                type:2,
323
+                doctor_advice:[],
324
+                project:[],
325
+              },
326
+              {
327
+                id:3,
328
+
329
+                type:1,
330
+                doctor_advice:[],
331
+                project:[],
332
+              },
333
+              {
334
+                id:4,
335
+
336
+                type:1,
337
+                doctor_advice:[],
338
+                project:[],
339
+              },
340
+            ],
341
+          }
342
+        ],
343
+
344
+        isLastOrNextVisible: true,
345
+
346
+      }
347
+    }
348
+  }
349
+</script>
350
+
351
+<style scoped>
352
+
353
+</style>