|
@@ -1,5 +1,5 @@
|
1
|
1
|
<template>
|
2
|
|
- <view class="pharmacyDetails">
|
|
2
|
+ <scroll-view scroll-y class="pharmacyDetails">
|
3
|
3
|
<view class="page_item footerOtherMargin">
|
4
|
4
|
<view class="page_header" v-for="(item, index) in resultList" :key="item.bindId">
|
5
|
5
|
<view class="page_header_item" v-if="item.modifyReason">
|
|
@@ -63,7 +63,7 @@
|
63
|
63
|
<view class="foot_btn2 footerPadding">
|
64
|
64
|
<view class="btn2" @click="goBack">返回</view>
|
65
|
65
|
</view>
|
66
|
|
- </view>
|
|
66
|
+ </scroll-view>
|
67
|
67
|
</template>
|
68
|
68
|
<script>
|
69
|
69
|
import {
|
|
@@ -97,20 +97,17 @@
|
97
|
97
|
deptId: this.queryObj.endDeptId,
|
98
|
98
|
gdId: this.queryObj.workOrderId,
|
99
|
99
|
};
|
100
|
|
- post(`/api/getStartDeptSpecimensNum`, postData).then((res) => {
|
|
100
|
+ post(`/api/getStartDeptSpecimensNum`, postData).then(async (res) => {
|
101
|
101
|
if (res.status == 200) {
|
102
|
102
|
for (let i = 0; i < res.data.length; i++) {
|
103
|
|
- get(
|
104
|
|
- `/common/common/listAttachment/specimenPhotos/${res.data[i].bindId}`
|
105
|
|
- ).then((result) => {
|
106
|
|
- if (result.status == 200) {
|
107
|
|
- res.data[i].imgs = result.data.map((v) => v.previewUrl);
|
108
|
|
- } else {
|
109
|
|
- res.data[i].imgs = [];
|
110
|
|
- }
|
111
|
|
- this.resultList = res.data;
|
112
|
|
- });
|
|
103
|
+ let result = await get(`/common/common/listAttachment/specimenPhotos/${res.data[i].bindId}`);
|
|
104
|
+ if (result.status == 200) {
|
|
105
|
+ res.data[i].imgs = result.data.map((v) => v.previewUrl);
|
|
106
|
+ } else {
|
|
107
|
+ res.data[i].imgs = [];
|
|
108
|
+ }
|
113
|
109
|
}
|
|
110
|
+ this.resultList = res.data;
|
114
|
111
|
}
|
115
|
112
|
});
|
116
|
113
|
},
|