Commit 20dbb36b authored by Damon's avatar Damon

Merge branch 'dev-1.5.4' of git.banshouhui.com:lijundan/self-support into dev-1.5.4

parents 1d0b53ae c6dc0333
...@@ -258,7 +258,7 @@ ...@@ -258,7 +258,7 @@
overflow-x: auto; overflow-x: auto;
display: flex; display: flex;
width: 100%; width: 100%;
border-right: 2rpx solid #F4F5F7; // border-right: 2rpx solid #F4F5F7;
.image-view { .image-view {
width: 120rpx; width: 120rpx;
height: 120rpx; height: 120rpx;
......
...@@ -26,8 +26,8 @@ ...@@ -26,8 +26,8 @@
<view class="bottom-view"> <view class="bottom-view">
<view class="total-view"> <view class="total-view">
<text>合计:</text> <text>合计:</text>
<text class="amount-view">x{{total}}</text> <text class="amount-view">x{{info.items.length}}</text>
<text></text> <text></text>
</view> </view>
</view> </view>
</view> </view>
...@@ -63,13 +63,13 @@ ...@@ -63,13 +63,13 @@
} }
return this.info.finished ? '退件完成' : text return this.info.finished ? '退件完成' : text
}, },
total() { // 合计 // total() { // 合计
var i = 0 // var i = 0
for (var item of this.info.items) { // for (var item of this.info.items) {
i += item.quantity // i += item.quantity
} // }
return i // return i
}, // },
}, },
methods: { methods: {
handleLongpress() { // 长按复制单号 handleLongpress() { // 长按复制单号
......
...@@ -4,17 +4,20 @@ ...@@ -4,17 +4,20 @@
<u-checkbox v-if="showChecked" icon-size="28" size="40" v-model="check" @change="handleChange" <u-checkbox v-if="showChecked" icon-size="28" size="40" v-model="check" @change="handleChange"
shape="circle" /> shape="circle" />
<image class="image-view" :src="imageUrl"></image> <image class="image-view" :src="imageUrl"></image>
</view>
<view class="info-view"> <view class="info-view">
<view class="name-text">{{item.name}}</view> <view class="name-text">{{item.name}}</view>
<view class="info-bottom">
<view>{{remarkText}}</view> <view>{{remarkText}}</view>
</view>
</view>
<view class="count-view"> <view class="count-view">
<view v-if="showChecked"> <view v-if="showChecked">
<u-number-box v-model="value" :min="item.min || 0" :max="item.max || item[type]" @minus="numChange" <u-number-box v-model="value" :min="item.min || 0" :max="item.max || item[type]" @minus="numChange"
@plus="numChange" @blur="numChange"></u-number-box> @plus="numChange" @blur="numChange"></u-number-box>
</view> </view>
<text v-else>x{{item[type]|| 0}}</text> <text v-else>x{{item[type]|| 0}}</text>
<text class="unit-text" v-if="item.unit">{{item.unit}}</text>
</view>
</view>
</view> </view>
</view> </view>
</template> </template>
...@@ -93,8 +96,7 @@ ...@@ -93,8 +96,7 @@
<style lang="scss" scoped> <style lang="scss" scoped>
.spare-item { .spare-item {
display: flex; display: flex;
justify-content: space-between; align-items: center;
align-items: flex-end;
.left-view { .left-view {
display: flex; display: flex;
...@@ -106,24 +108,33 @@ ...@@ -106,24 +108,33 @@
margin-right: 20rpx; margin-right: 20rpx;
flex-shrink: 0; flex-shrink: 0;
} }
}
.info-view { .info-view {
font-size: 24rpx; font-size: 24rpx;
color: #333333; color: #333333;
width: 100%;
.name-text { .name-text {
font-size: 32rpx; font-size: 32rpx;
font-weight: bold; font-weight: bold;
color: #333333; color: #333333;
margin-bottom: 30rpx; margin-bottom: 30rpx;
} }
} .info-bottom {
} display: flex;
justify-content: space-between;
align-items: center;
.count-view { .count-view {
font-size: 28rpx; font-size: 28rpx;
color: #333333; color: #333333;
display: flex;
justify-content: flex-end;
align-items: center;
.unit-text {
padding-left: 10rpx;
}
}
}
} }
} }
</style> </style>
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
<view class="num"> <view class="num">
<u-number-box v-if="!disabled" v-model="info.quantity" :min="info.min || 0" :max="info.max || 9999" @change="numChange" @minus="minusValue" @blur="minusValue"></u-number-box> <u-number-box v-if="!disabled" v-model="info.quantity" :min="info.min || 0" :max="info.max || 9999" @change="numChange" @minus="minusValue" @blur="minusValue"></u-number-box>
<text class="nums" v-else>x{{ info.quantity || 1 }}</text> <text class="nums" v-else>x{{ info.quantity || 1 }}</text>
<text v-if="info.unit" class="unit-text">{{info.unit || ''}}</text>
</view> </view>
</view> </view>
</view> </view>
...@@ -54,9 +55,15 @@ ...@@ -54,9 +55,15 @@
.num { .num {
width: 200rpx; width: 200rpx;
text-align: center; text-align: center;
display: flex;
justify-content: flex-end;
align-items: center;
.nums { .nums {
//color: #F59A23; //color: #F59A23;
} }
.unit-text {
padding-left: 10rpx;
}
} }
} }
} }
......
...@@ -12,10 +12,11 @@ ...@@ -12,10 +12,11 @@
<view class="right-content-desc u-line-2">{{ info.remark }}</view> <view class="right-content-desc u-line-2">{{ info.remark }}</view>
<view class="u-flex right-content-opera"> <view class="u-flex right-content-opera">
<view class="no" v-if="maxShow"> <view class="no" v-if="maxShow">
可用{{ info.max }} 可用{{ info.max + (info.unit || '')}}
</view> </view>
<view class="num"> <view class="num">
<u-number-box v-show="!info.disabled" v-model="info.quantity" :min="info.min || 0" :max="info.max || info.quantity" @change="numChange"></u-number-box> <u-number-box v-show="!info.disabled" v-model="info.quantity" :min="info.min || 0" :max="info.max || info.quantity" @change="numChange"></u-number-box>
<text v-show="!maxShow && !info.disabled && info.unit" class="unit-text">{{info.unit}}</text>
<u-button v-show="info.disabled" type="primary" size="mini" shape="circle" @click="addApply">加入申请</u-button> <u-button v-show="info.disabled" type="primary" size="mini" shape="circle" @click="addApply">加入申请</u-button>
</view> </view>
</view> </view>
...@@ -121,6 +122,12 @@ ...@@ -121,6 +122,12 @@
.num { .num {
flex: 1; flex: 1;
text-align: right; text-align: right;
display: flex;
justify-content: flex-end;
align-items: center;
.unit-text {
padding-left: 10rpx;
}
} }
} }
} }
......
...@@ -6,8 +6,7 @@ ...@@ -6,8 +6,7 @@
<view class="left-list">全选</view> <view class="left-list">全选</view>
</view> </view>
<view class="u-flex bottom-center"> <view class="u-flex bottom-center">
<view class="center-list">已选择 {{ partNum }}</view> <view class="center-list">共:<text class="num"> {{ partNum }} </text></view>
<view class="center-list">共:<text class="num"> {{ num }} </text></view>
</view> </view>
</view> </view>
<view class="u-flex select-num" v-if="!showChecked"> <view class="u-flex select-num" v-if="!showChecked">
...@@ -15,7 +14,7 @@ ...@@ -15,7 +14,7 @@
<u-badge type="error" :show-zero="true" :count="partNum" :offset="[0, 0]"></u-badge> <u-badge type="error" :show-zero="true" :count="partNum" :offset="[0, 0]"></u-badge>
<u-image width="72rpx" height="72rpx" :lazy-load="false" :src="partsImage"></u-image> <u-image width="72rpx" height="72rpx" :lazy-load="false" :src="partsImage"></u-image>
</view> </view>
<view class="num-right">共:<text class="num"> {{ num }} </text></view> <view class="num-right">共:<text class="num"> {{ partNum }} </text></view>
</view> </view>
<view class="u-flex bottom-right"> <view class="u-flex bottom-right">
<button :class="['btn', btnActive]" @click="submit">{{ submitTxt }}</button> <button :class="['btn', btnActive]" @click="submit">{{ submitTxt }}</button>
...@@ -143,14 +142,14 @@ ...@@ -143,14 +142,14 @@
align-items: flex-start; align-items: flex-start;
margin-right: 20rpx; margin-right: 20rpx;
.center-list { .center-list {
// &:nth-of-type(1) {
// color: #666;
// font-size: 26rpx;
// }
&:nth-of-type(1) { &:nth-of-type(1) {
color: #666;
font-size: 26rpx;
}
&:nth-of-type(2) {
color: #333; color: #333;
font-size: 32rpx; font-size: 32rpx;
margin-top: 8rpx; // margin-top: 8rpx;
font-weight: bold; font-weight: bold;
.num { .num {
color: #2272FF; color: #2272FF;
......
...@@ -20,8 +20,7 @@ ...@@ -20,8 +20,7 @@
<view class="tab-view"> <view class="tab-view">
<scroll-view scroll-y style="height: 100%;width: 100%;" @scrolltolower="reachBottom" scroll-anchoring <scroll-view scroll-y style="height: 100%;width: 100%;" @scrolltolower="reachBottom" scroll-anchoring
refresher-enabled="true" :refresher-triggered="triggered" :refresher-threshold="100" @scroll="scroll" refresher-enabled="true" :refresher-triggered="triggered" :refresher-threshold="100" @scroll="scroll"
:scroll-top="scrollTop" refresher-background="#F4F5F7" refresher-background="#F4F5F7" @refresherrefresh="onRefresh" @refresherrestore="onRestore" enable-back-to-top>
@refresherrefresh="onRefresh" @refresherrestore="onRestore" enable-back-to-top>
<!-- 加载中 && 没有下拉:显示加载中 --> <!-- 加载中 && 没有下拉:显示加载中 -->
<view class="loading-view" v-if="!loaded && _freshing"> <view class="loading-view" v-if="!loaded && _freshing">
<u-loading mode="flower"></u-loading> <u-loading mode="flower"></u-loading>
...@@ -35,7 +34,7 @@ ...@@ -35,7 +34,7 @@
<AppliedCell @operate="handleOperate" :info="item" @action="handleClickCell" @express="handleClickExpress"></AppliedCell> <AppliedCell @operate="handleOperate" :info="item" @action="handleClickCell" @express="handleClickExpress"></AppliedCell>
</view> </view>
<!-- 底部加载状态 --> <!-- 底部加载状态 -->
<view class="load-more-view" v-if="(pageNumber == 1 && loaded) || pageNumber > 1"> <view class="load-more-view" v-show="(pageNumber == 1 && loaded) || pageNumber > 1">
<u-loadmore :status="loadStatus" <u-loadmore :status="loadStatus"
bgColor="#F4F5F7"></u-loadmore> bgColor="#F4F5F7"></u-loadmore>
</view> </view>
...@@ -99,7 +98,7 @@ ...@@ -99,7 +98,7 @@
{ {
'name': '全部', 'name': '全部',
'status': null 'status': null
} },
] ]
}, },
// 当下tab // 当下tab
......
...@@ -11,17 +11,16 @@ ...@@ -11,17 +11,16 @@
</view> </view>
<NoOrder v-if="noParts" imageName="wupeijianxinxi.png" text="当前暂无返件信息" :customStyle="noPartsCustomStyle" /> <NoOrder v-if="noParts" imageName="wupeijianxinxi.png" text="当前暂无返件信息" :customStyle="noPartsCustomStyle" />
<view v-else class="tab-view"> <view v-else class="tab-view">
<scroll-view scroll-y style="height: 100%;width: 100%;" scroll-anchoring enable-back-to-top> <scroll-view scroll-y style="height: 100%;width: 100%;" @scrolltolower="reachBottom" scroll-anchoring enable-back-to-top>
<view class="loading-view" v-if="!loaded"> <view class="loading-view" v-if="!loaded">
<u-loading mode="flower"></u-loading> <u-loading mode="flower"></u-loading>
</view> </view>
<template v-else> <template v-else>
<view v-for="(item, index) in partsList" :key="item.id"> <view v-for="item in partsList" :key="item.id">
<ReturnCell :info="item"></ReturnCell> <ReturnCell :info="item"></ReturnCell>
</view> </view>
<view class="load-more-view"> <view class="load-more-view" v-if="(pageNumber == 1 && loaded) || pageNumber > 1">
<u-loadmore v-show="(pageNumber == 1 && loaded) || pageNumber > 1" :status="loadStatus" <u-loadmore :status="loadStatus" bgColor="#F4F5F7"></u-loadmore>
bgColor="#F4F5F7"></u-loadmore>
</view> </view>
</template> </template>
</scroll-view> </scroll-view>
......
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
</view> </view>
<!-- 物料列表 --> <!-- 物料列表 -->
<view class="tab-view"> <view class="tab-view">
<scroll-view scroll-y style="height: 100%;width: 100%;" scroll-anchoring enable-back-to-top @scroll="scroll"> <scroll-view scroll-y style="height: 100%;width: 100%;" @scrolltolower="reachBottom" scroll-anchoring enable-back-to-top>
<!-- 加载转圈页面 --> <!-- 加载转圈页面 -->
<view class="loading-view" v-if="!loaded"> <view class="loading-view" v-if="!loaded">
<u-loading mode="flower"></u-loading> <u-loading mode="flower"></u-loading>
...@@ -37,9 +37,8 @@ ...@@ -37,9 +37,8 @@
@change="handleChange($event, index)"@numChange="handleNumChange($event, index)" /> @change="handleChange($event, index)"@numChange="handleNumChange($event, index)" />
</view> </view>
<!-- 底部加载状态 --> <!-- 底部加载状态 -->
<view class="load-more-view"> <view class="load-more-view" v-if="partsList.length > 0">
<u-loadmore v-show="partsList.length > 0" status="nomore" bgColor="#F4F5F7"> <u-loadmore status="nomore" bgColor="#F4F5F7"></u-loadmore>
</u-loadmore>
</view> </view>
</template> </template>
</scroll-view> </scroll-view>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment