|
@@ -47,7 +47,7 @@
|
47
|
47
|
<view class="column top">
|
48
|
48
|
<view class="name">留存照片:</view>
|
49
|
49
|
<view class="value flex1">
|
50
|
|
- <uni-file-picker ref="handlerImgRef" v-model="imgList" limit="1" @success="handlerImgSuccess" @fail="handlerImgFail" @select="handlerImgSelect" @delete="handlerImgDelete"></uni-file-picker>
|
|
50
|
+ <uni-file-picker ref="handlerImgRef" file-mediatype="image" v-model="imgList" limit="1" @success="handlerImgSuccess" @fail="handlerImgFail" @select="handlerImgSelect" @delete="handlerImgDelete"></uni-file-picker>
|
51
|
51
|
<text class="imgTips">(支持JPG/PNG格式图片,单张大小10M以内)</text>
|
52
|
52
|
</view>
|
53
|
53
|
</view>
|
|
@@ -154,14 +154,14 @@
|
154
|
154
|
v.url = v.path;
|
155
|
155
|
})
|
156
|
156
|
console.log(this.imgList);
|
157
|
|
-
|
|
157
|
+
|
158
|
158
|
let handlerOrder$ = this.handlerOrder();
|
159
|
159
|
let requestList = [handlerOrder$];
|
160
|
160
|
this.imgList.forEach(v => {
|
161
|
161
|
let handlerOrderImg$ = this.handlerOrderImg(v);
|
162
|
162
|
requestList.push(handlerOrderImg$);
|
163
|
163
|
})
|
164
|
|
-
|
|
164
|
+
|
165
|
165
|
Promise.all(requestList).then(resList => {
|
166
|
166
|
uni.hideLoading();
|
167
|
167
|
console.log(resList);
|
|
@@ -188,7 +188,7 @@
|
188
|
188
|
}
|
189
|
189
|
})
|
190
|
190
|
},
|
191
|
|
-
|
|
191
|
+
|
192
|
192
|
// 上传报修图片失败
|
193
|
193
|
handlerImgFail(e){
|
194
|
194
|
this.imgList.forEach(v => {
|
|
@@ -212,7 +212,7 @@
|
212
|
212
|
title: "加载中",
|
213
|
213
|
mask: true,
|
214
|
214
|
});
|
215
|
|
-
|
|
215
|
+
|
216
|
216
|
let info$ = post(`/transflow/extra`, {type: this.queryObj.drugsBagType, extraType: 'orderInfo', orderId: +this.queryObj.orderId});
|
217
|
217
|
let config$ = post(`/simple/data/fetchDataList/taskTypeConfig`, {
|
218
|
218
|
"idx": 0,
|
|
@@ -229,11 +229,11 @@
|
229
|
229
|
}
|
230
|
230
|
}
|
231
|
231
|
});
|
232
|
|
-
|
|
232
|
+
|
233
|
233
|
Promise.all([info$, config$]).then(result => {
|
234
|
234
|
uni.hideLoading();
|
235
|
235
|
let [info, config] = result || [];
|
236
|
|
-
|
|
236
|
+
|
237
|
237
|
if(info.state == 200){
|
238
|
238
|
if(info.data){
|
239
|
239
|
this.drugsBagList = info.data.drugsBagList || [];
|
|
@@ -248,7 +248,7 @@
|
248
|
248
|
title: info.msg || "接口获取数据失败!",
|
249
|
249
|
});
|
250
|
250
|
}
|
251
|
|
-
|
|
251
|
+
|
252
|
252
|
if(config.status == 200){
|
253
|
253
|
let list = config.list || [];
|
254
|
254
|
this.config = list.length ? list[0] : {};
|
|
@@ -345,7 +345,7 @@
|
345
|
345
|
align-items: center;
|
346
|
346
|
gap: 24rpx;
|
347
|
347
|
font-weight: bold;
|
348
|
|
-
|
|
348
|
+
|
349
|
349
|
.column{
|
350
|
350
|
width: 100%;
|
351
|
351
|
height: 78rpx;
|
|
@@ -353,7 +353,7 @@
|
353
|
353
|
align-items: center;
|
354
|
354
|
justify-content: space-between;
|
355
|
355
|
gap: 24rpx;
|
356
|
|
-
|
|
356
|
+
|
357
|
357
|
.btn {
|
358
|
358
|
height: 100%;
|
359
|
359
|
flex: 1;
|