yusheng 1 неделя назад
Родитель
Сommit
4dc3c85ce1

+ 7 - 5
pages/pcs/components/workOrderReport.vue

@@ -106,15 +106,16 @@
 
 								</view>
 							</view>
-							<view class="info-item" v-if="pageName == 'QualityInspection'">
-								<view class="info-label" style="display: flex;align-items: center;">车辆照片 <u-button
+							<view class="info-item" v-if="pageName == 'QualityInspection'||pageName=='TransportAsh'||pageName=='HaulSlag'">
+								<view class="info-label" style="display: flex;align-items: center;">{{pageName=='QualityInspection'?'车辆照片':'照片'}} <u-button
 										type="primary" style="width: 150rpx;margin-left: 10px;" size="small" text="拍照上传"
 										v-if="title != '详情'" @click="chooseImage"></u-button>
 								</view>
 
 							</view>
+					
 						</view>
-						<view style="padding-left: 30rpx;" v-if="pageName == 'QualityInspection'">
+						<view style="padding-left: 30rpx;" v-if="pageName == 'QualityInspection'||pageName=='TransportAsh'||pageName=='HaulSlag'">
 
 							<AlbumDeletable :urls="getUrl(form.vehiclePhotoUrl)" :singleSize="170" :multipleSize="170"
 								:deletable="title != '详情'" @delete="handleDeleteImage"></AlbumDeletable>
@@ -236,7 +237,8 @@
         []
       " title="选择" @confirm="executeIdListChange1">
 		</search-select>
-		<orderListDialog ref="orderListDialogRef" @changeParent="orderListDialogSuccess" :radioValue='true'></orderListDialog>
+		<orderListDialog ref="orderListDialogRef" @changeParent="orderListDialogSuccess" :radioValue='true'>
+		</orderListDialog>
 	</u-popup>
 </template>
 
@@ -607,7 +609,7 @@
 				uni.chooseImage({
 					count: 9, //默认9
 					sizeType: ['original', 'compressed'], //可以指定是原图还是压缩图,默认二者都有
-					sourceType: ['camera'], //从相册选择
+					sourceType: ['camera','album'], //从相册选择
 					success: function(res) {
 						uni.showLoading({
 							title: '加载中'

+ 1 - 25
pages/saleManage/contact/components/comment.vue

@@ -127,31 +127,7 @@
 							uni.hideLoading()
 
 						})
-						// tempFilePaths.forEach(item => {
-						// 	uni.uploadFile({
-						// 		url: _this.apiUrl + '/main/file/upload',
-						// 		filePath: item,
-						// 		name: 'multiPartFile',
-						// 		header: {
-						// 			authorization: token
-						// 		},
-
-						// 		success: (uploadFileRes) => {
-						// 			let data = JSON.parse(uploadFileRes.data)
-						// 			if (data?.data) {
-						// 				let fileNames = data?.data.storePath.split('/')
-						// 				let url = _this.apiUrl +
-						// 					'/main/file/getFile?objectName=' + data?.data
-						// 					.storePath +
-						// 					'&fullfilename=' + fileNames[fileNames.length -
-						// 						1]
-						// 				_this.imgs.push(url)
-						// 			}
-						// 			console.log(_this.imgs, '_this.imgs')
-
-						// 		}
-						// 	});
-						// })
+		
 					}
 				});
 			},