Lj 6 days ago
parent
commit
ab49c5486c
5 changed files with 19 additions and 17 deletions
  1. +1
    -1
      config.js
  2. +4
    -1
      pages/manager/order-detail.vue
  3. +3
    -3
      pages/manager/order.vue
  4. +2
    -2
      pages/subcomponent/detail.vue
  5. +9
    -10
      pages/subcomponent/inspection-report.vue

+ 1
- 1
config.js View File

@ -1,5 +1,5 @@
// config.js // config.js
const type = 'prod'
const type = 'local'
const config = { const config = {
local: { local: {


+ 4
- 1
pages/manager/order-detail.vue View File

@ -240,8 +240,11 @@ export default {
{ label: '预约时间', value: data.goTime || data.createTime } { label: '预约时间', value: data.goTime || data.createTime }
] ]
// //
let sum = (data.qualifiedNum || 0) + (data.noQualifiedNum || 0) + (data.unrecyclable || 0)
this.qcInfo = [ this.qcInfo = [
{ label: '质检数量', value: data.num ? data.qualifiedNum + data.noQualifiedNum + data.unrecyclable + ' 件' : '' },
{ label: '质检数量', value: sum ? sum + ' 件' : '' },
{ label: '质检合格', value: data.qualifiedNum ? data.qualifiedNum + ' 件' : '' }, { label: '质检合格', value: data.qualifiedNum ? data.qualifiedNum + ' 件' : '' },
{ label: '质量问题', value: data.noQualifiedNum ? data.noQualifiedNum + ' 件' : '' }, { label: '质量问题', value: data.noQualifiedNum ? data.noQualifiedNum + ' 件' : '' },
{ label: '不可回收', value: data.unrecyclable ? data.unrecyclable + ' 件' : '' } { label: '不可回收', value: data.unrecyclable ? data.unrecyclable + ' 件' : '' }


+ 3
- 3
pages/manager/order.vue View File

@ -203,11 +203,11 @@
if (options && options.userId) { if (options && options.userId) {
this.userId = options.userId; this.userId = options.userId;
} }
this.fetchOrderList()
this.fetchOrderStatusStatistics()
// this.fetchOrderStatusStatistics()
}, },
onShow() { onShow() {
this.fetchOrderStatusStatistics() this.fetchOrderStatusStatistics()
this.fetchOrderList()
}, },
computed: { computed: {
filteredOrders() { filteredOrders() {
@ -703,7 +703,7 @@
.unread-dot { .unread-dot {
position: absolute; position: absolute;
top: -4px; top: -4px;
left: -4px;
left: -24rpx;
width: 12px; width: 12px;
height: 12px; height: 12px;
background: #ff4d4f; background: #ff4d4f;


+ 2
- 2
pages/subcomponent/detail.vue View File

@ -51,9 +51,9 @@
<view v-if="state === 3" class="cancel-tip">期待您下次的支持共同为地球减少碳排放出一份力</view> <view v-if="state === 3" class="cancel-tip">期待您下次的支持共同为地球减少碳排放出一份力</view>
<!-- 物流公司仅status为01时显示且必须有物流信息 --> <!-- 物流公司仅status为01时显示且必须有物流信息 -->
<view class="express-info" v-if="state !== 3||4 && status <= 1 && expressCompany && wuliuNo"> <view class="express-info" v-if="state !== 3||4 && status <= 1 && expressCompany && wuliuNo">
<text class="express-label">物流公司</text>
<text class="express-label">物流</text>
<view class="express-row"> <view class="express-row">
<text class="express-value">{{ expressCompany }}{{ wuliuNo }}</text>
<text class="express-value">{{ wuliuNo }}</text>
<view class="express-actions"> <view class="express-actions">
<text class="express-view" @tap="viewLogistics">查看物流</text> <text class="express-view" @tap="viewLogistics">查看物流</text>
<text class="express-copy" @tap="copyExpressNo">复制</text> <text class="express-copy" @tap="copyExpressNo">复制</text>


+ 9
- 10
pages/subcomponent/inspection-report.vue View File

@ -48,8 +48,8 @@
<!-- <view class="goods-desc">{{item.desc}}</view> --> <!-- <view class="goods-desc">{{item.desc}}</view> -->
<view class="goods-bottom-row"> <view class="goods-bottom-row">
<view class="goods-price-row"> <view class="goods-price-row">
<text class="goods-price">{{item.price}}</text>
<text class="goods-unit">/{{item.unit}}</text>
<text class="goods-price" v-if="item.price">{{(item.price / item.count).toFixed(2)}}</text>
<text class="goods-unit" v-if="item.price && item.unit">/{{item.unit}}</text>
<text class="goods-count">x{{item.count}}</text> <text class="goods-count">x{{item.count}}</text>
</view> </view>
<!-- <view class="goods-total">{{item.total}}</view> --> <!-- <view class="goods-total">{{item.total}}</view> -->
@ -79,8 +79,8 @@
<!-- <view class="goods-desc">{{item.desc}}</view> --> <!-- <view class="goods-desc">{{item.desc}}</view> -->
<view class="goods-bottom-row"> <view class="goods-bottom-row">
<view class="goods-price-row problem-price-row"> <view class="goods-price-row problem-price-row">
<!-- <text class="goods-price">{{item.price}}</text>
<text class="goods-unit">/</text> -->
<text class="goods-price" v-if="item.price">{{(item.price / item.count).toFixed(2)}}</text>
<text class="goods-unit" v-if="item.price">/</text>
<text class="goods-count">x{{item.count}}</text> <text class="goods-count">x{{item.count}}</text>
</view> </view>
<!-- <view class="goods-total">{{item.total}}</view> --> <!-- <view class="goods-total">{{item.total}}</view> -->
@ -110,8 +110,8 @@
<!-- <view class="goods-desc">{{item.desc}}</view> --> <!-- <view class="goods-desc">{{item.desc}}</view> -->
<view class="goods-bottom-row"> <view class="goods-bottom-row">
<view class="goods-price-row problem-price-row"> <view class="goods-price-row problem-price-row">
<!-- <text class="goods-price">{{item.price}}</text>
<text class="goods-unit">/</text> -->
<text class="goods-price" v-if="item.price">{{(item.price / item.count).toFixed(2)}}</text>
<text class="goods-unit" v-if="item.price">/</text>
<text class="goods-count">x{{item.count}}</text> <text class="goods-count">x{{item.count}}</text>
</view> </view>
<!-- <view class="goods-total">{{item.total}}</view> --> <!-- <view class="goods-total">{{item.total}}</view> -->
@ -167,20 +167,19 @@ export default {
return this.goodsList.reduce((sum, item) => sum + item.count, 0) return this.goodsList.reduce((sum, item) => sum + item.count, 0)
}, },
totalAmount() { totalAmount() {
console.log('this.goodsList', this.goodsList)
return this.goodsList.reduce((sum, item) => sum + item.total, 0).toFixed(2)
return this.goodsList.reduce((sum, item) => sum + item.price, 0).toFixed(2)
}, },
problemCount() { problemCount() {
return this.problemList.reduce((sum, item) => sum + item.count, 0) return this.problemList.reduce((sum, item) => sum + item.count, 0)
}, },
problemAmount() { problemAmount() {
return this.problemList.reduce((sum, item) => sum + item.total, 0).toFixed(2)
return this.problemList.reduce((sum, item) => sum + item.price, 0).toFixed(2)
}, },
unrecyclableCount() { unrecyclableCount() {
return this.unrecyclableList.reduce((sum, item) => sum + item.count, 0) return this.unrecyclableList.reduce((sum, item) => sum + item.count, 0)
}, },
unrecyclableAmount() { unrecyclableAmount() {
return this.unrecyclableList.reduce((sum, item) => sum + item.total, 0).toFixed(2)
return this.unrecyclableList.reduce((sum, item) => sum + item.price, 0).toFixed(2)
}, },
fixedHeaderHeight() { fixedHeaderHeight() {
// + + (140rpxpx) // + + (140rpxpx)


Loading…
Cancel
Save