|
@@ -5,26 +5,29 @@
|
|
|
<scroll-view class="product-list-con" scroll-y @scrolltolower="onreachBottom">
|
|
|
<view class="product-list-item flex align_center justify_between" v-for="(item, index) in listData" :key="item.id">
|
|
|
<view class="product-item-main font_13 flex_1" @click="handleEdit(item)">
|
|
|
+ <view class="product-item-name">{{item.productName || '--'}}</view>
|
|
|
<view class="flex align_center justify_between">
|
|
|
<view>{{item.productCode || '--'}}</view>
|
|
|
<view class="color_6" style="font-size: 24upx;" v-if="item.warehouseEntity&&item.warehouseEntity.name || item.warehouseLocationEntity&&item.warehouseLocationEntity.name">{{item.warehouseEntity&&item.warehouseEntity.name}} > {{item.warehouseLocationEntity&&item.warehouseLocationEntity.name}}</view>
|
|
|
<u-tag v-if="item.oosFlag==1" text="急件" type="error" mode="light" shape="circle" size="mini" style="vertical-align: text-top;" />
|
|
|
</view>
|
|
|
- <view class="product-item-name">{{item.productName || '--'}}</view>
|
|
|
<view class="product-item-priceInfo">
|
|
|
<view :style="{color: $config('errorColor'), display: 'inline-block'}">¥<text style="font-size: 30upx;">{{toThousands(item.price||0, 2)}}</text></view>
|
|
|
- <text style="display: inline-block;margin: 0 10upx;">*</text>
|
|
|
+ <text style="display: inline-block;margin: 0 10upx;">X</text>
|
|
|
<text style="font-size: 30upx;">{{toThousands(item.qty||0)}}</text>
|
|
|
{{item.productUnit}}
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="btn-box">
|
|
|
- <u-icon @click="handleDel(item, index)" name="trash-fill" :color="$config('errorColor')" size="34"></u-icon>
|
|
|
+ <u-icon @click="handleDel(item, index)" name="trash" :color="$config('errorColor')" size="34"></u-icon>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view v-if="listData && listData.length == 0">
|
|
|
<u-empty :text="noDataText" mode="list" :img-width="200" :margin-top="30"></u-empty>
|
|
|
</view>
|
|
|
+ <view style="padding: 20upx;">
|
|
|
+ <u-loadmore v-if="totalNum>listData.length || status=='loading'" :status="status" />
|
|
|
+ </view>
|
|
|
</scroll-view>
|
|
|
<!-- 合计 -->
|
|
|
<view ref="productTotal" class="selected-box flex align_center justify_between">
|
|
@@ -66,6 +69,7 @@
|
|
|
pageSize: 6,
|
|
|
totalNum: 0,
|
|
|
noDataText: '暂无数据',
|
|
|
+ status: 'loadmore',
|
|
|
toThousands,
|
|
|
theme: '',
|
|
|
commonModal: false,
|
|
@@ -88,6 +92,7 @@
|
|
|
pageSize: this.pageSize,
|
|
|
salesBillSn: this.nowData && this.nowData.salesBillSn
|
|
|
}
|
|
|
+ this.status = "loading"
|
|
|
salesDetailList(params).then(res => {
|
|
|
if (res.status == 200) {
|
|
|
if(res.data && res.data.list){
|
|
@@ -110,6 +115,7 @@
|
|
|
this.totalNum = 0
|
|
|
this.noDataText = res.message
|
|
|
}
|
|
|
+ this.status = "loadmore"
|
|
|
})
|
|
|
},
|
|
|
// scroll-view到底部加载更多
|
|
@@ -179,7 +185,7 @@
|
|
|
box-sizing: border-box;
|
|
|
.product-list-item{
|
|
|
border-bottom: 1px solid #e4e7ed;
|
|
|
- padding: 10upx 0;
|
|
|
+ padding: 20upx 0;
|
|
|
.product-item-main{
|
|
|
.product-item-name{
|
|
|
padding: 6upx 0;
|
|
@@ -189,6 +195,7 @@
|
|
|
-webkit-line-clamp: 1;
|
|
|
line-clamp: 1;
|
|
|
-webkit-box-orient: vertical;
|
|
|
+ font-weight: bold;
|
|
|
}
|
|
|
}
|
|
|
.btn-box{
|