|
@@ -38,7 +38,7 @@
|
|
|
<view class="tui-goods-price">¥{{item.price | NumFormat}}</view>
|
|
|
</view>
|
|
|
<view class="tui-goods-pip">市场价:¥{{item.normalPrice | NumFormat}}</view>
|
|
|
- <view class="tui-goods-pip">新品展示: <text class="red">{{ item.newvalidFlag | newvalidFlagFilters }}</text> </view>
|
|
|
+ <view class="tui-goods-pip">新品展示: <text class="red">{{ item.showFlag | newvalidFlagFilters }}</text> </view>
|
|
|
<view class="tui-goods-pip">分类:{{ item.typeName ? item.typeName : '无' }}</view>
|
|
|
</view>
|
|
|
<view class="tui-goods-status">
|
|
@@ -61,65 +61,67 @@
|
|
|
<!--右抽屉-->
|
|
|
<tui-drawer mode="right" :visible="rightDrawer" @close="closeDrawer">
|
|
|
<view class="d-container clearfix" :style="{paddingTop:CustomBar+10+'px'}">
|
|
|
- <view class="d-label">商品名称:</view>
|
|
|
- <view class="d-input">
|
|
|
- <input class="input" type="text" value="" v-model="listQuery.name" placeholder="输入商品名称"/>
|
|
|
- </view>
|
|
|
- <view class="d-label">商品货号:</view>
|
|
|
- <view class="d-input">
|
|
|
- <input class="input" type="text" value="" v-model="listQuery.productCode" placeholder="输入商品货号"/>
|
|
|
- </view>
|
|
|
- <view class="d-label">状态:</view>
|
|
|
- <view class="d-input">
|
|
|
- <picker @change="bindPickerChange(1,$event)" :value="index" :range="statusActions" range-key="name">
|
|
|
- <input class="input" type="text" disabled="false" v-model="validFlagText" value="" placeholder="请选择审核状态"/>
|
|
|
- <text class="iconfont icon-xiangyou"></text>
|
|
|
- </picker>
|
|
|
- </view>
|
|
|
- <view class="d-label">主推商品:</view>
|
|
|
- <view class="d-input">
|
|
|
- <picker @change="bindPickerChange(2,$event)" :value="index" :range="recommendActions" range-key="name">
|
|
|
- <input class="input" type="text" disabled="false" v-model="featuredFlagText" value="" placeholder="请选择"/>
|
|
|
- <text class="iconfont icon-xiangyou"></text>
|
|
|
- </picker>
|
|
|
- </view>
|
|
|
- <view class="d-label">商品属性:</view>
|
|
|
- <view class="d-input">
|
|
|
- <picker @change="bindPickerChange(0,$event)" :value="index" :range="commodityTypeActons" range-key="name">
|
|
|
- <input class="input" type="text" disabled="false" v-model="commodityTypeText" value="" placeholder="请选择"/>
|
|
|
- <text class="iconfont icon-xiangyou"></text>
|
|
|
- </picker>
|
|
|
- </view>
|
|
|
- <view class="d-label">商品分类:</view>
|
|
|
- <view class="d-input">
|
|
|
- <picker @change="bindPickerChange(3,$event)" :value="index" :range="classificationFirstList" range-key="name">
|
|
|
- <input class="input" type="text" disabled="false" v-model="firstClassificationText" value="" placeholder="请选择一分类"/>
|
|
|
- <text class="iconfont icon-xiangyou"></text>
|
|
|
- </picker>
|
|
|
- </view>
|
|
|
- <view class="d-input">
|
|
|
- <picker @change="bindPickerChange(4,$event)" :value="index" :range="classificationTwoList" range-key="name">
|
|
|
- <input class="input" type="text" disabled="false" v-model="twoClassificationText" value="" placeholder="请选择二级分类"/>
|
|
|
- <text class="iconfont icon-xiangyou"></text>
|
|
|
- </picker>
|
|
|
- </view>
|
|
|
- <view class="d-input">
|
|
|
- <picker @change="bindPickerChange(5,$event)" :value="index" :range="classificationThreeList" range-key="name">
|
|
|
- <input class="input" type="text" disabled="false" v-model="threeClassificationText" value="" placeholder="请选择三级分类"/>
|
|
|
- <text class="iconfont icon-xiangyou"></text>
|
|
|
- </picker>
|
|
|
- </view>
|
|
|
- <view class="d-label">新品展示:</view>
|
|
|
- <view class="d-input">
|
|
|
- <picker @change="bindPickerChange(6,$event)" :value="index" :range="newFlagActions" range-key="name">
|
|
|
- <input class="input" type="text" disabled="false" v-model="newvalidFlagText" value="" placeholder="请选择"/>
|
|
|
- <text class="iconfont icon-xiangyou"></text>
|
|
|
- </picker>
|
|
|
- </view>
|
|
|
- <view class="d-input btn">
|
|
|
- <view class="d-btn comfrim" @click="handSearchList">确定</view>
|
|
|
- <view class="d-btn clear" @click="handSearchClear">重置</view>
|
|
|
- </view>
|
|
|
+ <scroll-view class="tui-popup-scroll" scroll-y="true">
|
|
|
+ <view class="d-label">商品名称:</view>
|
|
|
+ <view class="d-input">
|
|
|
+ <input class="input" type="text" value="" v-model="listQuery.name" placeholder="输入商品名称"/>
|
|
|
+ </view>
|
|
|
+ <view class="d-label">商品货号:</view>
|
|
|
+ <view class="d-input">
|
|
|
+ <input class="input" type="text" value="" v-model="listQuery.productCode" placeholder="输入商品货号"/>
|
|
|
+ </view>
|
|
|
+ <view class="d-label">状态:</view>
|
|
|
+ <view class="d-input">
|
|
|
+ <picker @change="bindPickerChange(1,$event)" :value="index" :range="statusActions" range-key="name">
|
|
|
+ <input class="input" type="text" disabled="false" v-model="validFlagText" value="" placeholder="请选择审核状态"/>
|
|
|
+ <text class="iconfont icon-xiangyou"></text>
|
|
|
+ </picker>
|
|
|
+ </view>
|
|
|
+ <view class="d-label">主推商品:</view>
|
|
|
+ <view class="d-input">
|
|
|
+ <picker @change="bindPickerChange(2,$event)" :value="index" :range="recommendActions" range-key="name">
|
|
|
+ <input class="input" type="text" disabled="false" v-model="featuredFlagText" value="" placeholder="请选择"/>
|
|
|
+ <text class="iconfont icon-xiangyou"></text>
|
|
|
+ </picker>
|
|
|
+ </view>
|
|
|
+ <view class="d-label">商品属性:</view>
|
|
|
+ <view class="d-input">
|
|
|
+ <picker @change="bindPickerChange(0,$event)" :value="index" :range="commodityTypeActons" range-key="name">
|
|
|
+ <input class="input" type="text" disabled="false" v-model="commodityTypeText" value="" placeholder="请选择"/>
|
|
|
+ <text class="iconfont icon-xiangyou"></text>
|
|
|
+ </picker>
|
|
|
+ </view>
|
|
|
+ <view class="d-label">商品分类:</view>
|
|
|
+ <view class="d-input">
|
|
|
+ <picker @change="bindPickerChange(3,$event)" :value="index" :range="classificationFirstList" range-key="name">
|
|
|
+ <input class="input" type="text" disabled="false" v-model="firstClassificationText" value="" placeholder="请选择一分类"/>
|
|
|
+ <text class="iconfont icon-xiangyou"></text>
|
|
|
+ </picker>
|
|
|
+ </view>
|
|
|
+ <view class="d-input">
|
|
|
+ <picker @change="bindPickerChange(4,$event)" :value="index" :range="classificationTwoList" range-key="name">
|
|
|
+ <input class="input" type="text" disabled="false" v-model="twoClassificationText" value="" placeholder="请选择二级分类"/>
|
|
|
+ <text class="iconfont icon-xiangyou"></text>
|
|
|
+ </picker>
|
|
|
+ </view>
|
|
|
+ <view class="d-input">
|
|
|
+ <picker @change="bindPickerChange(5,$event)" :value="index" :range="classificationThreeList" range-key="name">
|
|
|
+ <input class="input" type="text" disabled="false" v-model="threeClassificationText" value="" placeholder="请选择三级分类"/>
|
|
|
+ <text class="iconfont icon-xiangyou"></text>
|
|
|
+ </picker>
|
|
|
+ </view>
|
|
|
+ <view class="d-label">新品展示:</view>
|
|
|
+ <view class="d-input">
|
|
|
+ <picker @change="bindPickerChange(6,$event)" :value="index" :range="newFlagActions" range-key="name">
|
|
|
+ <input class="input" type="text" disabled="false" v-model="newvalidFlagText" value="" placeholder="请选择"/>
|
|
|
+ <text class="iconfont icon-xiangyou"></text>
|
|
|
+ </picker>
|
|
|
+ </view>
|
|
|
+ <view class="d-input btn">
|
|
|
+ <view class="d-btn comfrim" @click="handSearchList">确定</view>
|
|
|
+ <view class="d-btn clear" @click="handSearchClear">重置</view>
|
|
|
+ </view>
|
|
|
+ </scroll-view>
|
|
|
</view>
|
|
|
</tui-drawer>
|
|
|
<!-- 批量操作 -->
|
|
@@ -174,11 +176,12 @@
|
|
|
commodityTypeActons: [{name:'产品',value:1},{name: '仪器',value:2}],
|
|
|
newFlagActions: [
|
|
|
{name:'全部',value:''},
|
|
|
- {name:'参与',value:0},
|
|
|
+ {name: '待审核',value:0},
|
|
|
{name: '已展示',value:1},
|
|
|
- {name: '未参与',value:2},
|
|
|
- {name: '审核未通过',value:3},
|
|
|
- {name: '已下线',value:4}
|
|
|
+ {name: '展示过期',value:2},
|
|
|
+ {name: '未展示',value:3},
|
|
|
+ {name: '审核未通过',value:4},
|
|
|
+ {name: '已下线',value:5}
|
|
|
],
|
|
|
statusActions: [
|
|
|
{name:'全部',value:''},
|
|
@@ -265,11 +268,12 @@
|
|
|
newvalidFlagFilters(value) {
|
|
|
//新品展示状态
|
|
|
const map = {
|
|
|
- 0: '参与',
|
|
|
+ 0: '待审核',
|
|
|
1: '已展示',
|
|
|
- 2: '未参与',
|
|
|
- 3: '审核未通过',
|
|
|
- 4: '已下线'
|
|
|
+ 2: '展示过期',
|
|
|
+ 3: '未展示',
|
|
|
+ 4: '审核未通过',
|
|
|
+ 5: '已下线'
|
|
|
}
|
|
|
return map[value]
|
|
|
}
|
|
@@ -763,6 +767,10 @@
|
|
|
.d-container {
|
|
|
width: 560rpx;
|
|
|
padding: 80rpx 30rpx;
|
|
|
+ .tui-popup-scroll{
|
|
|
+ width: 100%;
|
|
|
+ height: auto;
|
|
|
+ }
|
|
|
.d-title{
|
|
|
width: 100%;
|
|
|
height:80rpx;
|