|
|
@@ -9,16 +9,16 @@
|
|
|
<uni-card>
|
|
|
<view class="demo-layout">
|
|
|
<view>
|
|
|
- <text class="tag-con">支付状态</text>
|
|
|
+ <text v-if="item.itemOrderChargeState==0" class="tag-con">未收</text>
|
|
|
+ <text v-else style="color: #5ac725 !important;" class="tag-con">已收</text>
|
|
|
<span>{{ item.shipmentPackageCount }}</span>{{ item.shipmentUnit }} 代收金额:<span>{{ item.shipmentMoney }}</span>
|
|
|
</view>
|
|
|
<view>{{ item.erpOrderCode }}</view>
|
|
|
- <view>{{ item.clientName }}</view>
|
|
|
<view>{{ item.shipmentName }}&{{item.productName}}</view>
|
|
|
<view style="font-size: 28rpx">{{ item.receiveAddress }}</view>
|
|
|
</view>
|
|
|
<view slot="actions" class="card-actions">
|
|
|
- <view class="card-actions-item" @click="viewDetail(item)">
|
|
|
+ <view class="card-actions-item" @click="updateBillBtn(item)">
|
|
|
<uni-icons type="info-filled" size="18" color="#999"></uni-icons>
|
|
|
<text class="card-actions-item-text">货款代收</text>
|
|
|
</view>
|
|
|
@@ -37,6 +37,28 @@
|
|
|
<uni-fab style="bottom: 100rpx;" ref="fab" :pattern="fabPattern" icon="color" :popMenu="false" horizontal="right"
|
|
|
vertical="bottom"
|
|
|
@fabClick="scanFabClick"/>
|
|
|
+ <u-loading-page :loading="loading"></u-loading-page>
|
|
|
+ <view>
|
|
|
+ <u-popup :show="show" @close="close" :closeable="true" mode="center" @open="open">
|
|
|
+ <view class="popup-con">
|
|
|
+ <div v-if="qrCodeInfo" class="qrCodeInfo">
|
|
|
+ {{erpOrderCode}} 代收金额:<span>{{qrCodeInfo}}</span>
|
|
|
+ </div>
|
|
|
+ <div style="margin: auto;width: 600rpx">
|
|
|
+ <u--image :showLoading="true" :src="src" width="600rpx" height="600rpx"></u--image>
|
|
|
+ </div>
|
|
|
+ <div style="text-align: center;line-height: 60rpx;margin-left: 180rpx;padding-top: 10px">
|
|
|
+ <span style="float: left">请使用</span>
|
|
|
+ <u-icon style="float: left" name="zhifubao-circle-fill" color="#2979ff" size="28"></u-icon>
|
|
|
+
|
|
|
+ <u-icon style="float: left" name="weixin-circle-fill" color="#53c21d" size="28"></u-icon>
|
|
|
+ <span style="float: left">支付</span>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ </view>
|
|
|
+ </u-popup>
|
|
|
+ <u-button @click="show = true">打开</u-button>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
|
@@ -46,6 +68,11 @@ import request from '@/common/libs/request.js';
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
|
+ src:"",
|
|
|
+ qrCodeInfo:"",
|
|
|
+ erpOrderCode:"",
|
|
|
+ show:false,
|
|
|
+ loading:false,
|
|
|
signVisible:false,
|
|
|
fabPattern: {
|
|
|
color: '#7A7E83',
|
|
|
@@ -74,6 +101,10 @@ export default {
|
|
|
this.getSignBillList();
|
|
|
},
|
|
|
methods: {
|
|
|
+ close(){
|
|
|
+ this.show=false;
|
|
|
+ },
|
|
|
+ open(){},
|
|
|
handelEvent(data){
|
|
|
this.billList.splice(data, 1)
|
|
|
},
|
|
|
@@ -103,25 +134,31 @@ export default {
|
|
|
},
|
|
|
truckUpOrder(idOrder){
|
|
|
let _that = this;
|
|
|
+ _that.billList = [];
|
|
|
let parms = {
|
|
|
idOrder: idOrder
|
|
|
}
|
|
|
request.httpPost("/dnyDriver/signInScanSendOrder", parms, true).then(res => {
|
|
|
- console.log('res444',res);
|
|
|
+ _that.signVisible = true;
|
|
|
+ _that.billList = res.data
|
|
|
})
|
|
|
},
|
|
|
getShipDetails(orderCode){
|
|
|
let _that = this;
|
|
|
+ _that.billList = [];
|
|
|
let parms = {
|
|
|
orderCode: orderCode
|
|
|
}
|
|
|
request.httpPost("/dnyDriver/signInScanERPOrder", parms, true).then(res => {
|
|
|
_that.signVisible = true;
|
|
|
+ _that.billList = res.data
|
|
|
|
|
|
})
|
|
|
},
|
|
|
getSignBillList: function () {
|
|
|
let _that = this;
|
|
|
+ _that.loading = true;
|
|
|
+ _that.signVisible = false;
|
|
|
var info = {
|
|
|
ltItemState: 10
|
|
|
}
|
|
|
@@ -130,6 +167,7 @@ export default {
|
|
|
page: JSON.stringify(_that.page)
|
|
|
}
|
|
|
request.httpPost("/dnyDriver/driverQuerySignInItem", listData, true).then(res => {
|
|
|
+ _that.loading = false;
|
|
|
// console.log("res1111", res);
|
|
|
uni.stopPullDownRefresh();
|
|
|
if (!res.data || res.data.length == 0) {
|
|
|
@@ -150,11 +188,30 @@ export default {
|
|
|
this.getSignBillList();
|
|
|
}, 100);
|
|
|
},
|
|
|
- viewDetail: function (item) {
|
|
|
- // console.log(item.id);
|
|
|
- uni.navigateTo({
|
|
|
- url: "./detail?id=" + item.id + "&billCode=" + item.billCode,
|
|
|
- animationType: 'pop-in'
|
|
|
+ updateBillBtn: function (item) {
|
|
|
+ let _that = this;
|
|
|
+ _that.loading = true;
|
|
|
+ let parms = {
|
|
|
+ idOrder: item.idOrder
|
|
|
+ }
|
|
|
+ request.httpPost("/dnyDriver/orderPayRequest3", parms, true).then(res => {
|
|
|
+ console.log("res333",res);
|
|
|
+ _that.loading = false;
|
|
|
+ if (res.httpCode == 200) {
|
|
|
+ _that.show = true;
|
|
|
+ _that.erpOrderCode = item.erpOrderCode
|
|
|
+ _that.qrCodeInfo = res.data.qrCodeInfo
|
|
|
+ _that.src = res.data.qrCodeImageUrl.substring(1).replace('apis', 'http://192.168.1.24:51106');
|
|
|
+ console.log(_that.src);
|
|
|
+ // _that.src = res.data.qrCodeImageUrl
|
|
|
+ }else {
|
|
|
+ uni.showToast({
|
|
|
+ title: res.msg,
|
|
|
+ icon: 'none',
|
|
|
+ mask: true,
|
|
|
+ duration: 1000,
|
|
|
+ })
|
|
|
+ }
|
|
|
})
|
|
|
},
|
|
|
parseBillState: function (item) {
|
|
|
@@ -177,6 +234,22 @@ export default {
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
+.qrCodeInfo{
|
|
|
+ font-size: 30rpx;
|
|
|
+
|
|
|
+}
|
|
|
+.qrCodeInfo span{
|
|
|
+ color: #e4493c !important;
|
|
|
+ font-size: 30rpx;
|
|
|
+ font-weight: bold;
|
|
|
+}
|
|
|
+.popup-con{
|
|
|
+ min-height: 800rpx;
|
|
|
+ padding: 40rpx;
|
|
|
+ width: 700rpx;
|
|
|
+ margin: auto;
|
|
|
+ box-sizing: border-box;
|
|
|
+}
|
|
|
.tag-con {
|
|
|
color: #e4493c;
|
|
|
margin-right: 20rpx;
|