From 80a3aa28c4e66df31c6032e3098aeb376198f2d7 Mon Sep 17 00:00:00 2001
From: qingyiay <2386314947@qq.com>
Date: 星期五, 30 六月 2023 16:51:39 +0800
Subject: [PATCH] 验质功能增加逻辑修复错误
---
pages/customer-page/customer-index/customer-index.vue | 50 +++++++++++++++++++++++++++++++++++++++-----------
1 files changed, 39 insertions(+), 11 deletions(-)
diff --git a/pages/customer-page/customer-index/customer-index.vue b/pages/customer-page/customer-index/customer-index.vue
index d4837a0..9c4f17e 100644
--- a/pages/customer-page/customer-index/customer-index.vue
+++ b/pages/customer-page/customer-index/customer-index.vue
@@ -22,10 +22,11 @@
<view class="dispatch-receive">
<view class="dispatch">{{ item.filedName||'' }}</view>
</view>
- <!-- <view class="point-number">
+ <view class="point-number"
+ v-if="roleType == 1">
<text class="residue">{{ item.cars2||'' }}</text>
<text>/{{ item.carNum ||''}}</text>
- </view> -->
+ </view>
</view>
<view class="second-line">
<view class="coal-name">
@@ -38,18 +39,33 @@
<view class="third-line">
<view class="time-icon">
<view
+ style="width: 24rpx;height: 24rpx;li ne-height: 24rpx;background: url('https://mx.jzeg.cn:9095/appimg/image/banner/carNO.png') no-repeat;background-size: cover">
+ </view>
+ </view>
+ <view class="car-num">{{ item.carNos||''}}</view>
+ </view>
+ <view class="third-line">
+ <view class="time-icon">
+ <view
style="width: 24rpx;height: 24rpx;li ne-height: 24rpx;background: url('https://mx.jzeg.cn:9095/appimg/image/banner/clock.png') no-repeat;background-size: cover">
</view>
</view>
<view class="send-date">{{ item.sendDate }}</view>
</view>
<view class="fourth-line">
- <!-- <view class="receive"
- @click.stop="receiveClick(item)">
- <view class="button-image">楠岃川</view>
- </view> -->
+ <view class="receive"
+ @click.stop="receiveClick(item)"
+ v-if="item.orderType!=='澶栬喘'">
+ <view class="button-image">棰嗗彇</view>
+ </view>
<view class="forward"
- @click.stop="forwardClick(index)">
+ @click.stop="forwardClick(item)"
+ v-if="item.orderType!=='澶栬喘'">
+ <view class="button-image">杞彂</view>
+ </view>
+ <view class="forward"
+ @click.stop="validateClick(index)"
+ v-if='roleType===4'>
<view class="button-image">楠岃川</view>
</view>
</view>
@@ -322,10 +338,16 @@
});
},
// 杞彂
- forwardClick(index) {
+ forwardClick(obj) {
+ if (obj.cars2 == 0) return this.$u.toast('璇峰厛棰嗗彇鍚庡啀杞彂');
uni
- .navigateTo({ url: `/pages/driver-page/driver-index/bill-of-lading-details/weighDetail/weighDetail?index=${index}` });
- }
+ .navigateTo({ url: `/pages/public-page/forward/forward?orderPlanId=${obj.id}&carNumSurplus1=${obj.carNumSurplus1}&carNum=${obj.carNum}&cars2=${obj.cars2}` });
+ },
+ // 楠岃川
+ validateClick(index) {
+ uni
+ .navigateTo({ url: `/pages/driver-page/driver-index/bill-of-lading-details/selectOrderPlan/selectOrderPlan?index=${index}` });
+ },
}
};
</script>
@@ -551,7 +573,7 @@
}
.third-line {
- width: 40%;
+ width: 80%;
height: vww(30);
margin-left: vww(15);
display: flex;
@@ -567,6 +589,12 @@
font-weight: 300;
color: #515151;
}
+
+ .car-num {
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ }
}
.fourth-line {
--
Gitblit v1.9.1