|
@@ -586,10 +586,13 @@
|
586
|
586
|
</td>
|
587
|
587
|
<td height="30px" colspan="2" class="advice-name" style="padding:4px 5px;">
|
588
|
588
|
<span v-if="advice.parent_id > 0">---></span>
|
589
|
|
- <span>{{ advice.advice_name }}</span>
|
|
589
|
+
|
|
590
|
+ <span v-if="advice.project&&advice.project.project_name">{{ advice.project.project_name }}</span>
|
|
591
|
+ <span v-else>{{ advice.advice_name }}</span>
|
|
592
|
+ <span v-if="advice.project&&advice.count">{{ advice.count }}{{ advice.unit }}</span>
|
590
|
593
|
<span v-if="advice && advice.advice_desc">({{ advice.advice_desc }}{{ advice.drug_spec_unit }})</span>
|
591
|
594
|
<span v-if="advice.prescribing_number"> {{ advice.prescribing_number }}{{ advice.prescribing_number_unit }}</span>
|
592
|
|
- <span v-if="advice.single_dose != 0">{{ advice.single_dose }}{{ advice.single_dose_unit }}</span>
|
|
595
|
+ <span v-if="advice.single_dose != 0&&!advice.project">{{ advice.single_dose }}{{ advice.single_dose_unit }}</span>
|
593
|
596
|
<span v-if="advice.parent_id == 0">{{ advice.delivery_way }}</span>
|
594
|
597
|
<span v-if="advice.parent_id == 0">{{ advice.execution_frequency }}</span>
|
595
|
598
|
<span v-if="advice.parent_id == 0 && advice.remark.length > 0">({{ advice.remark }})</span>
|
|
@@ -1398,12 +1401,27 @@ export default {
|
1398
|
1401
|
].name
|
1399
|
1402
|
this.AlPanel = this.anticoagulantsConfit[thisALID]
|
1400
|
1403
|
}
|
1401
|
|
-
|
|
1404
|
+ // this.advices = response.data.data.projects
|
1402
|
1405
|
this.advices = response.data.data.advices
|
1403
|
1406
|
console.log("医嘱数据2222222222",this.advices)
|
1404
|
|
-
|
1405
|
|
- var doctorAdevieInfo = JSON.parse(JSON.stringify(response.data.data.advices))
|
|
1407
|
+ let doctorAdevieInfo = []
|
|
1408
|
+ let ad_arr = JSON.parse(JSON.stringify(response.data.data.projects))
|
|
1409
|
+ ad_arr.forEach(el => {
|
|
1410
|
+ if(el.project&&el.project.project_name!=""){
|
|
1411
|
+ doctorAdevieInfo.push(el)
|
|
1412
|
+ }
|
|
1413
|
+ });
|
|
1414
|
+ let ad_arr2= JSON.parse(JSON.stringify(response.data.data.advices))
|
|
1415
|
+ ad_arr2.forEach(el => {
|
|
1416
|
+ doctorAdevieInfo.push(el)
|
|
1417
|
+ });
|
|
1418
|
+ console.log(doctorAdevieInfo,'doctorAdevieInfo')
|
|
1419
|
+ // doctorAdevieInfo.push(JSON.parse(JSON.stringify(response.data.data.advices)))
|
1406
|
1420
|
this.tableAdvice = doctorAdevieInfo;
|
|
1421
|
+ // console.log(this.tableAdvice,'this.tableAdvice')
|
|
1422
|
+ // if(!this.tableAdvice[0].advice_name){
|
|
1423
|
+ // console.log("不存在")
|
|
1424
|
+ // }
|
1407
|
1425
|
if (this.tableAdvice.length < 7) {
|
1408
|
1426
|
var nl = 6 - this.tableAdvice.length;
|
1409
|
1427
|
for (let index = 0; index < nl; index++) {
|
|
@@ -1524,6 +1542,7 @@ export default {
|
1524
|
1542
|
this.doctor_advices[index]['isShow'] = 2
|
1525
|
1543
|
}
|
1526
|
1544
|
|
|
1545
|
+
|
1527
|
1546
|
// if (this.doctor_advices.length > 0) {
|
1528
|
1547
|
// var group = this.newAdviceGroupObject()
|
1529
|
1548
|
// var initGroupBlock = function(group, advice) {
|