Commit 490993ad by liangjianmin

feat(arrivalRegister): 添加筛选功能以优化商品搜索体验

- 在到货登记页面中添加了筛选器,允许用户根据不同类型的收据进行筛选
- 增加了状态提示,提醒用户处理含美产货物的包裹
- 统一了样式和布局,提升了页面的可用性和美观性
parent d07a92d4
......@@ -38,6 +38,7 @@
font-size: 23rpx;
color: #1969f9;
}
.search-box {
height: 60rpx;
.search-box-wrap {
......
......@@ -40,8 +40,25 @@
</view>
<view class="print-btn" @click="print()">打印入仓号</view>
</view>
<view class="row bothSide verCente" style="margin: 15rpx 0;">
<view style="color: red;font-size: 16rpx;" v-show="contains_american_products">该包裹含有美产货物,请优先处理! </view>
<view class="row bothSide verCenter" style="margin: 15rpx 0;">
<view class="row verCenter">
<view style="color: red;font-size: 16rpx;max-width: 138rpx;" v-show="contains_american_products">该包裹含有美产货物,请优先处理! </view>
<!-- 筛选器 - radio-group -->
<radio-group @change="receiptTypeChange" class="row verCenter" v-if="searchParams.shipment_number || searchParams.goods_name">
<label class="radio row verCenter" style="margin-right: 20rpx;">
<radio value="0" :checked="receipt_sn_type === 0" style="transform:scale(0.7)" color="#1969F9" />
<text class="tt" style="font-size: 16rpx; color: #484b59; margin-left: 5rpx;">全部</text>
</label>
<label class="radio row verCenter" style="margin-right: 20rpx;">
<radio value="1" :checked="receipt_sn_type === 1" style="transform:scale(0.7)" color="#1969F9" />
<text class="tt" style="font-size: 16rpx; color: #484b59; margin-left: 5rpx;">含A单</text>
</label>
<label class="radio row verCenter">
<radio value="2" :checked="receipt_sn_type === 2" style="transform:scale(0.7)" color="#1969F9" />
<text class="tt" style="font-size: 16rpx; color: #484b59; margin-left: 5rpx;">含B单</text>
</label>
</radio-group>
</view>
<view class="total-text row" v-if="list.length > 0">
<view class="row"><text>{{ total }}</text>条数据</view>
<view class="row" style="margin-left: 15rpx;"><text>{{ erp_order_sn_num }}</text>个入仓号</view>
......@@ -270,8 +287,10 @@
},
searchParams: {
shipment_number: '', //物流单号
goods_name: ''
}
goods_name: '',
receipt_sn_type: 0 //0全部,1含A单,2含B单
},
receipt_sn_type: 0 //当前选中的筛选类型
};
},
onNavigationBarButtonTap(e) {
......@@ -381,6 +400,16 @@
this.filter_id = filter_arr.map(i => this.list[i].warehouse_receipt_sn);
},
/**
* 筛选类型切换
*/
receiptTypeChange(e) {
var type = Number(e.detail.value);
this.receipt_sn_type = type;
this.searchParams.receipt_sn_type = type;
this.resetChange();
this.getData();
},
/**
* 全选
*/
allChnage() {
......
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 sign in to comment