|
@@ -191,7 +191,8 @@
|
|
|
<view class="item-info uni-row"> <text class="label">检查员:</text>
|
|
|
<text class="label right ">{{ item['nickName'] }}</text>
|
|
|
</view>
|
|
|
- <view v-if="item.processInspectionDetails && item.processInspectionDetails.length>0" v-for="(info, index) in item.processInspectionDetails" :key="index">
|
|
|
+ <view v-if="item.processInspectionDetails && item.processInspectionDetails.length>0"
|
|
|
+ v-for="(info, index) in item.processInspectionDetails" :key="index">
|
|
|
<view class="item-info uni-row">
|
|
|
<text class="label">检测项目:</text>
|
|
|
<text class="label right">{{ info['checkStandard']}}</text>
|
|
@@ -206,13 +207,16 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
<!-- 拍照上传部分 -->
|
|
|
- <view v-if="item.processInspectionPictureList && item.processInspectionPictureList.length>0" class="item-info uni-row">
|
|
|
- <text class="label">拍照上传:</text>
|
|
|
- <text class=" label right" >
|
|
|
- <uni-file-picker v-model="item.processInspectionPictureList" :readonly="true" return-type="array" :image-styles="imageStyles" file-mediatype="image" class="my-files" ></uni-file-picker>
|
|
|
- </text>
|
|
|
- </view>
|
|
|
-
|
|
|
+ <view v-if="item.processInspectionPictureList && item.processInspectionPictureList.length>0"
|
|
|
+ class="item-info uni-row">
|
|
|
+ <text class="label">拍照上传:</text>
|
|
|
+ <text class=" label right">
|
|
|
+ <uni-file-picker v-model="item.processInspectionPictureList" :readonly="true"
|
|
|
+ return-type="array" :image-styles="imageStyles" file-mediatype="image"
|
|
|
+ class="my-files"></uni-file-picker>
|
|
|
+ </text>
|
|
|
+ </view>
|
|
|
+
|
|
|
<view v-for="(data, index) in item.dayworkItemConsults" :key="index">
|
|
|
<view class="item-info uni-row">
|
|
|
<text class="label">咨询信息:</text>
|
|
@@ -356,9 +360,9 @@
|
|
|
const urlList = JSON.parse(uni.getStorageSync('baseUrl'))
|
|
|
const webHost = ref(urlList.baseUrl)
|
|
|
const imageStyles = {
|
|
|
- width:50,
|
|
|
- height:50
|
|
|
- }
|
|
|
+ width: 50,
|
|
|
+ height: 50
|
|
|
+ }
|
|
|
// 查询主对象
|
|
|
let query = null
|
|
|
// 定义tab2的【SelectorQuery】对象
|
|
@@ -447,7 +451,7 @@
|
|
|
} else {
|
|
|
// 测试时用
|
|
|
getDayworkCarrierByCarrierCode({
|
|
|
- carrierCode: '000605'
|
|
|
+ carrierCode: '000267'
|
|
|
}).then(res => {
|
|
|
if (res.code == 200) {
|
|
|
if (res.data.length > 0) {
|
|
@@ -512,9 +516,10 @@
|
|
|
dayworkId: dayworkId.value
|
|
|
}).then(response => {
|
|
|
if (response.code == 200) {
|
|
|
- response.data.forEach(item =>{
|
|
|
- if(item.processInspectionPictureList && item.processInspectionPictureList.length>0){
|
|
|
- item.processInspectionPictureList.forEach(i=>{
|
|
|
+ response.data.forEach(item => {
|
|
|
+ if (item.processInspectionPictureList && item.processInspectionPictureList.length >
|
|
|
+ 0) {
|
|
|
+ item.processInspectionPictureList.forEach(i => {
|
|
|
i.url = webHost.value + i.url
|
|
|
})
|
|
|
}
|
|
@@ -724,13 +729,14 @@
|
|
|
background-color: #1684fc;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
.my-files {
|
|
|
display: flex;
|
|
|
justify-content: center;
|
|
|
-
|
|
|
+
|
|
|
:deep(.uni-file-picker__container) {
|
|
|
- flex-direction: row;
|
|
|
-
|
|
|
+ flex-direction: row;
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
</style>
|