|
@@ -33,11 +33,27 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="card_sign_in" v-else>
|
|
|
- <view class="details_title">签收图片 <span class="line_title">*</span></view>
|
|
|
- <view>
|
|
|
- <u-upload :fileList="fileList1" name="1" multiple :maxCount="10" @afterRead="afterRead"
|
|
|
- @delete="deletePic"></u-upload>
|
|
|
+ <view v-else>
|
|
|
+ <view class="card_sign_in">
|
|
|
+ <view class="details_title1">运单签收图片 <span class="line_title">*</span></view>
|
|
|
+ <view>
|
|
|
+ <u-upload :fileList="fileList1" name="1" :maxCount="1" @afterRead="afterRead"
|
|
|
+ @delete="deletePic"></u-upload>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="card_sign_in">
|
|
|
+ <view class="details_title1">随货通行单图片 <span class="line_title">*</span></view>
|
|
|
+ <view>
|
|
|
+ <u-upload :fileList="fileList2" name="2" :maxCount="1" @afterRead="afterRead"
|
|
|
+ @delete="deletePic"></u-upload>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="card_sign_in">
|
|
|
+ <view class="details_title1">冷链交接单图片 <span class="line_title">*</span></view>
|
|
|
+ <view>
|
|
|
+ <u-upload :fileList="fileList3" name="3" :maxCount="1" @afterRead="afterRead"
|
|
|
+ @delete="deletePic"></u-upload>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view style="width: 100%;height: 120rpx;"></view>
|
|
@@ -63,6 +79,8 @@
|
|
|
start: Date.now() - 10 * 24 * 3600000,
|
|
|
end: Date.now() + 10 * 24 * 3600000,
|
|
|
fileList1: [],
|
|
|
+ fileList2: [],
|
|
|
+ fileList3: [],
|
|
|
}
|
|
|
},
|
|
|
onLoad(receive) {
|
|
@@ -90,11 +108,11 @@
|
|
|
// 扫码下车
|
|
|
this.scanCodes('/api/waybill/car-out')
|
|
|
} else if (this.selectiveType == 'signfor') {
|
|
|
- if (this.fileList1.length > 0) {
|
|
|
+ if (this.fileList1.length > 0 && this.fileList2.length > 0 && this.fileList3.length > 0) {
|
|
|
// 扫码签收
|
|
|
this.scanCodesSignFor('/api/waybill/receipt')
|
|
|
} else {
|
|
|
- uni.$u.toast('请上传签收图片')
|
|
|
+ uni.$u.toast('请完善表单')
|
|
|
}
|
|
|
}
|
|
|
} else {
|
|
@@ -131,14 +149,17 @@
|
|
|
},
|
|
|
// 提交扫码签收列表
|
|
|
scanCodesSignFor(url) {
|
|
|
+ const signUrl = this.fileList1[0].url + ',' + this.fileList2[0].url + ',' + this.fileList3[0].url
|
|
|
this.$api.post(url, {
|
|
|
startTime: this.valueTime,
|
|
|
waybillNo: this.frequencyCoding,
|
|
|
- receiptImg: this.fileList1[0].url,
|
|
|
+ receiptImg: signUrl,
|
|
|
}).then(res => {
|
|
|
if (res.code == 200) {
|
|
|
this.frequencyCoding = ''
|
|
|
this.fileList1 = []
|
|
|
+ this.fileList2 = []
|
|
|
+ this.fileList3 = []
|
|
|
this.list = []
|
|
|
uni.$u.toast(res.msg)
|
|
|
} else {
|
|
@@ -212,10 +233,15 @@
|
|
|
this.fileList1.forEach(item1 => {
|
|
|
arr.push(item1.url)
|
|
|
})
|
|
|
- } else {
|
|
|
+ } else if (event.name == '2') {
|
|
|
var arr1 = []
|
|
|
this.fileList2.forEach(item2 => {
|
|
|
- arr.push(item2.url)
|
|
|
+ arr1.push(item2.url)
|
|
|
+ })
|
|
|
+ } else if (event.name == '3') {
|
|
|
+ var arr2 = []
|
|
|
+ this.fileList3.forEach(item3 => {
|
|
|
+ arr2.push(item3.url)
|
|
|
})
|
|
|
}
|
|
|
},
|
|
@@ -241,7 +267,7 @@
|
|
|
if (state.code == 200) {
|
|
|
resolve(state.data)
|
|
|
}
|
|
|
- }, 1000)
|
|
|
+ })
|
|
|
}
|
|
|
});
|
|
|
})
|
|
@@ -293,6 +319,17 @@
|
|
|
margin-right: 15rpx;
|
|
|
}
|
|
|
|
|
|
+ .details_title1 {
|
|
|
+ width: 140rpx;
|
|
|
+ text-align: center;
|
|
|
+ flex: none;
|
|
|
+ color: #333;
|
|
|
+ font-size: 32rpx;
|
|
|
+ font-weight: 500;
|
|
|
+ margin-bottom: 10rpx;
|
|
|
+ margin-right: 15rpx;
|
|
|
+ }
|
|
|
+
|
|
|
.card_time {
|
|
|
width: 100%;
|
|
|
border: 1rpx solid #dadbde;
|