Commit 3def804f by LJM

供应链金蝶--新商品归类单--申请人/外部创建人账号(接口)需要显示为实际人以及移动端--理货记录增加筛选

parent 49f647b7
...@@ -61,7 +61,6 @@ ...@@ -61,7 +61,6 @@
} }
} }
.total-text { .total-text {
margin-top: 15rpx;
font-size: 28rpx; font-size: 28rpx;
color: #919399; color: #919399;
text-align: right; text-align: right;
......
...@@ -39,7 +39,18 @@ ...@@ -39,7 +39,18 @@
<text class="iconfont icon-a-juxing111" @click="clearInput()" v-if="input_flag"></text> <text class="iconfont icon-a-juxing111" @click="clearInput()" v-if="input_flag"></text>
</view> </view>
</view> </view>
<view class="total-text" v-if="list.length > 0"><text>{{total}}</text>条数据</view> <view class="row bothSide verCenter" style="padding: 24rpx 0;">
<view class="row verCenter">
<!-- 添加radio选项 -->
<radio-group @change="handleTallyTypeChange" class="row verCenter">
<label class="radio-item" v-for="(item, index) in tallyTypes" :key="index" style="margin-right: 18rpx;">
<radio :value="item.value" :checked="searchParams.tally_type === item.value" color="#1969f9" style="transform:scale(0.7)" />
<text>{{item.label}}</text>
</label>
</radio-group>
</view>
<view class="total-text" v-if="list.length > 0"><text>{{total}}</text>条数据</view>
</view>
<!-- 列表区 --> <!-- 列表区 -->
<view class="list" v-if="list.length > 0"> <view class="list" v-if="list.length > 0">
<view class="box row" v-for="(item, index) in list" :key="index" :class="{ curr: filter_list[index] }"> <view class="box row" v-for="(item, index) in list" :key="index" :class="{ curr: filter_list[index] }">
...@@ -50,7 +61,7 @@ ...@@ -50,7 +61,7 @@
</view> </view>
<view class="row verCenter"> <view class="row verCenter">
<text class="text">{{ item.box_sn }}</text> <text class="text">{{ item.box_sn }}</text>
<text class="text" style="margin-left: 20px">{{ item.tally_status_val }}</text> <text class="text" style="margin-left: 20px" :style="item.tally_status == 1 ? 'color: red' : ''">{{ item.tally_status_val }}</text>
</view> </view>
</view> </view>
<view class="input-box row verCenter bothSide" style="flex: 0 0 100%;"> <view class="input-box row verCenter bothSide" style="flex: 0 0 100%;">
...@@ -161,8 +172,14 @@ ...@@ -161,8 +172,14 @@
searchParams: { searchParams: {
create_time_begin: '', //起始日期 create_time_begin: '', //起始日期
create_time_end: '', //结束日期 create_time_end: '', //结束日期
keyword: '' keyword: '',
} tally_type: '0'
},
tallyTypes: [
{ label: '全部', value: '0' },
{ label: '美产', value: '1' },
{ label: '商检', value: '2' }
]
}; };
}, },
onReachBottom() { onReachBottom() {
...@@ -180,6 +197,14 @@ ...@@ -180,6 +197,14 @@
}, },
methods: { methods: {
/** /**
* 处理类型切换
*/
handleTallyTypeChange(e) {
this.searchParams.tally_type = e.detail.value;
this.resetChange();
this.getData();
},
/**
* 找出false对应的下标 * 找出false对应的下标
* @param {Object} arr * @param {Object} arr
* @param {Object} target * @param {Object} target
......
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