|
@@ -193,7 +193,7 @@
|
193
|
193
|
v-for="(item, i) in way_arr"
|
194
|
194
|
class="under_line"
|
195
|
195
|
v-if="record.receive_assessment.way == item.id"
|
196
|
|
- style="width: 180px; text-align: left"
|
|
196
|
+ style="width: 130px; text-align: left"
|
197
|
197
|
>
|
198
|
198
|
{{ item.name }}
|
199
|
199
|
</div>
|
|
@@ -1821,48 +1821,65 @@
|
1821
|
1821
|
</span>
|
1822
|
1822
|
</td>
|
1823
|
1823
|
|
1824
|
|
- <td
|
1825
|
|
- height="26px"
|
|
1824
|
+ <td height="26px"
|
1826
|
1825
|
colspan="2"
|
1827
|
1826
|
class="advice-name"
|
1828
|
1827
|
style="padding-left: 7px"
|
1829
|
|
- >
|
1830
|
|
- <span v-if="advice[0].parent_id > 0">---></span>
|
1831
|
|
- <span>{{ advice[0].advice_name }}</span>
|
1832
|
|
-
|
1833
|
|
- <span
|
1834
|
|
- v-if="
|
1835
|
|
- advice[0] &&
|
1836
|
|
- advice[0].advice_desc != undefined
|
1837
|
|
- "
|
1838
|
|
- >
|
1839
|
|
- <!-- ({{ advice[0].advice_desc
|
1840
|
|
- }}{{ advice[0].drug_spec_unit }} ) -->
|
1841
|
|
- </span>
|
1842
|
|
-
|
1843
|
|
- <span v-if="advice[0].prescribing_number"
|
1844
|
|
- > {{ advice[0].prescribing_number
|
1845
|
|
- }}{{ advice[0].prescribing_number_unit }}</span
|
1846
|
|
- >
|
1847
|
|
- <span v-if="advice[0].single_dose != 0">
|
|
1828
|
+ >
|
|
1829
|
+ <div v-if="org_id==10551 || org_id ==0">
|
|
1830
|
+ <div :rowspan="advice[0].prescriptionChild.length" v-for="(it,key) in advice[0].prescriptionChild" style="border: none;">
|
|
1831
|
+ <div style="border: none;">
|
|
1832
|
+ <span>{{ it.advice_name }}</span>
|
|
1833
|
+ <span v-if="it && it.advice_desc"
|
|
1834
|
+ >({{ it.advice_desc
|
|
1835
|
+ }}{{ it.drug_spec_unit }})</span
|
|
1836
|
+ >
|
|
1837
|
+ <span v-if="it.prescribing_number"
|
|
1838
|
+ > {{ it.prescribing_number
|
|
1839
|
+ }}{{ it.prescribing_number_unit }}</span
|
|
1840
|
+ >
|
|
1841
|
+ <span v-if="it.single_dose != 0"
|
|
1842
|
+ >{{ it.single_dose
|
|
1843
|
+ }}{{ it.single_dose_unit }}</span
|
|
1844
|
+ >
|
|
1845
|
+ <span>{{ it.delivery_way}}</span>
|
|
1846
|
+ <span>{{
|
|
1847
|
+ it.execution_frequency
|
|
1848
|
+ }}</span>
|
|
1849
|
+ <span v-if="it.remark !=''"
|
|
1850
|
+ >({{ it.remark }})</span
|
|
1851
|
+ >
|
|
1852
|
+ </div>
|
|
1853
|
+ </div>
|
|
1854
|
+ </div>
|
|
1855
|
+ <div v-else>
|
|
1856
|
+ <span v-if="advice[0].parent_id > 0"></span>
|
|
1857
|
+ <span>{{ advice[0].advice_name }}</span>
|
|
1858
|
+
|
|
1859
|
+ <span v-if="advice[0].prescribing_number"
|
|
1860
|
+ > {{ advice[0].prescribing_number
|
|
1861
|
+ }}{{ advice[0].prescribing_number_unit }}</span
|
|
1862
|
+ >
|
|
1863
|
+ <span v-if="advice[0].single_dose != 0">
|
1848
|
1864
|
|
1849
|
|
- <span v-if="advice[0].advice_name!='血液透析滤过'&& advice[0].advice_name!='血液透析' && advice[0].advice_name!='电脑血糖监测'"> {{ advice[0].single_dose}}{{ advice[0].single_dose_unit }}</span>
|
1850
|
|
- </span
|
1851
|
|
- >
|
|
1865
|
+ <span v-if="advice[0].advice_name!='血液透析滤过'&& advice[0].advice_name!='血液透析' && advice[0].advice_name!='电脑血糖监测'"> {{ advice[0].single_dose}}{{ advice[0].single_dose_unit }}</span>
|
|
1866
|
+ </span
|
|
1867
|
+ >
|
1852
|
1868
|
|
1853
|
|
- <span v-if="advice[0].parent_id == 0">{{
|
1854
|
|
- advice[0].delivery_way
|
1855
|
|
- }}</span>
|
1856
|
|
- <span v-if="advice[0].parent_id == 0">{{
|
1857
|
|
- advice[0].execution_frequency
|
1858
|
|
- }}</span>
|
1859
|
|
- <span
|
1860
|
|
- v-if="
|
1861
|
|
- advice[0].parent_id == 0 &&
|
1862
|
|
- advice[0].remark.length > 0
|
1863
|
|
- "
|
1864
|
|
- >({{ advice[0].remark }})</span
|
1865
|
|
- >
|
|
1869
|
+ <span v-if="advice[0].parent_id == 0">{{
|
|
1870
|
+ advice[0].delivery_way
|
|
1871
|
+ }}</span>
|
|
1872
|
+ <span v-if="advice[0].parent_id == 0">{{
|
|
1873
|
+ advice[0].execution_frequency
|
|
1874
|
+ }}</span>
|
|
1875
|
+ <span
|
|
1876
|
+ v-if="
|
|
1877
|
+ advice[0].parent_id == 0 &&
|
|
1878
|
+ advice[0].remark.length > 0
|
|
1879
|
+ "
|
|
1880
|
+ >({{ advice[0].remark }})</span
|
|
1881
|
+ >
|
|
1882
|
+ </div>
|
1866
|
1883
|
</td>
|
1867
|
1884
|
|
1868
|
1885
|
<td height="35px">
|
|
@@ -3264,6 +3281,8 @@ export default {
|
3264
|
3281
|
} else {
|
3265
|
3282
|
dlegh = 0;
|
3266
|
3283
|
}
|
|
3284
|
+
|
|
3285
|
+
|
3267
|
3286
|
if (dlegh > 0) {
|
3268
|
3287
|
if (
|
3269
|
3288
|
typeof this.records[recordIndex].monitor_records ===
|
|
@@ -3276,7 +3295,6 @@ export default {
|
3276
|
3295
|
this.records[recordIndex].monitor_records.push([]);
|
3277
|
3296
|
}
|
3278
|
3297
|
}
|
3279
|
|
-
|
3280
|
3298
|
this.records[recordIndex].isShowZero = false;
|
3281
|
3299
|
if (this.records[recordIndex].patient.user_org_id == 9535) {
|
3282
|
3300
|
this.records[recordIndex].isShowZero = true;
|
|
@@ -3300,9 +3318,12 @@ export default {
|
3300
|
3318
|
this.records[recordIndex].advices.push([]);
|
3301
|
3319
|
}
|
3302
|
3320
|
}
|
3303
|
|
-
|
|
3321
|
+ console.log('22222222',this.records[recordIndex].advices);
|
|
3322
|
+
|
3304
|
3323
|
var childMap = {};
|
3305
|
3324
|
for (const index in this.records[recordIndex].advices) {
|
|
3325
|
+
|
|
3326
|
+ this.records[recordIndex].advices[index].prescriptionChild = []
|
3306
|
3327
|
if (this.records[recordIndex].advices[index].parent_id == 0) {
|
3307
|
3328
|
continue;
|
3308
|
3329
|
}
|
|
@@ -3320,6 +3341,7 @@ export default {
|
3320
|
3341
|
}
|
3321
|
3342
|
|
3322
|
3343
|
var advices = [];
|
|
3344
|
+ // var advices2 = []
|
3323
|
3345
|
for (const index in this.records[recordIndex].advices) {
|
3324
|
3346
|
if (this.records[recordIndex].advices[index].parent_id > 0) {
|
3325
|
3347
|
continue;
|
|
@@ -3329,10 +3351,25 @@ export default {
|
3329
|
3351
|
item.children = childMap[item.id];
|
3330
|
3352
|
} else {
|
3331
|
3353
|
item.children = [];
|
|
3354
|
+ this.records[recordIndex].advices[index].prescriptionChild.push(item)
|
3332
|
3355
|
}
|
3333
|
3356
|
advices.push(item);
|
|
3357
|
+
|
3334
|
3358
|
}
|
3335
|
|
-
|
|
3359
|
+ var arr = []
|
|
3360
|
+ for(let i=0;i<advices.length;i++){
|
|
3361
|
+ for(let j=i+1;j<advices.length;j++){
|
|
3362
|
+ if(advices[i].id !=undefined){
|
|
3363
|
+ if(advices[i].groupno == advices[j].groupno){
|
|
3364
|
+ arr.push(advices[j])
|
|
3365
|
+ advices[i].prescriptionChild.push(advices[j])
|
|
3366
|
+ advices.splice(j,1)
|
|
3367
|
+ }
|
|
3368
|
+ }
|
|
3369
|
+ }
|
|
3370
|
+ }
|
|
3371
|
+ console.log('3333333333',advices,arr);
|
|
3372
|
+
|
3336
|
3373
|
var leftAdvice = [];
|
3337
|
3374
|
var rightAdvice = [];
|
3338
|
3375
|
var adlen = advices.length;
|