|
@@ -14,7 +14,7 @@
|
|
confirm-type="search"
|
|
confirm-type="search"
|
|
v-model="listQuery.keyWord"
|
|
v-model="listQuery.keyWord"
|
|
@input="onShowClose"
|
|
@input="onShowClose"
|
|
- @confirm="initclubList()"
|
|
|
|
|
|
+ @confirm="userClubReportList()"
|
|
placeholder="搜索商品名称 / 报备关键词"
|
|
placeholder="搜索商品名称 / 报备关键词"
|
|
maxlength="16"
|
|
maxlength="16"
|
|
/>
|
|
/>
|
|
@@ -27,7 +27,7 @@
|
|
v-for="(report, index) in dataList"
|
|
v-for="(report, index) in dataList"
|
|
:key="index"
|
|
:key="index"
|
|
class="list clearfix"
|
|
class="list clearfix"
|
|
- @click.stop="checkedCoupon(index)"
|
|
|
|
|
|
+ @click.stop="details(report.reportId)"
|
|
>
|
|
>
|
|
<view
|
|
<view
|
|
class="list-cell-icon"
|
|
class="list-cell-icon"
|
|
@@ -44,7 +44,11 @@
|
|
<view class="list-cell-p"> {{ report.addTime }} </view>
|
|
<view class="list-cell-p"> {{ report.addTime }} </view>
|
|
</view>
|
|
</view>
|
|
<view class="list-cell-content clearfix">
|
|
<view class="list-cell-content clearfix">
|
|
- <view class="tui-remarks-text" v-if="!report.productId"> {{ report.reportText }} </view>
|
|
|
|
|
|
+ <view class="tui-remarks-text" v-if="!report.productId">
|
|
|
|
+ <view class="text">
|
|
|
|
+ {{ report.reportText }}
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
<view class="tui-remarks-goods" v-else>
|
|
<view class="tui-remarks-goods" v-else>
|
|
<view class="goods-image">
|
|
<view class="goods-image">
|
|
<image :src="report.mainImage" mode=""></image>
|
|
<image :src="report.mainImage" mode=""></image>
|
|
@@ -55,7 +59,7 @@
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
|
|
- <view class="list-cell-btn">
|
|
|
|
|
|
+ <view class="list-cell-btn" @click.stop="checkedCoupon(index)">
|
|
<view
|
|
<view
|
|
class="checkbox iconfont"
|
|
class="checkbox iconfont"
|
|
:class="[report.ischecked ? 'icon-yixuanze' : 'icon-weixuanze']"
|
|
:class="[report.ischecked ? 'icon-yixuanze' : 'icon-weixuanze']"
|
|
@@ -73,7 +77,7 @@
|
|
</view>
|
|
</view>
|
|
</template>
|
|
</template>
|
|
<view class="tui-right-flex tui-popup-btn" :style="{ paddingBottom: isIphoneX ? '68rpx' : '34rpx' }">
|
|
<view class="tui-right-flex tui-popup-btn" :style="{ paddingBottom: isIphoneX ? '68rpx' : '34rpx' }">
|
|
- <view class="tui-flex-1"> <view class="tui-button" @click="hidePopup">确定</view> </view>
|
|
|
|
|
|
+ <view class="tui-flex-1"> <view class="tui-button" @click="confirmPopup">确定</view> </view>
|
|
<view class="tui-flex-1">
|
|
<view class="tui-flex-1">
|
|
<view class="tui-button-text" @click="handleAddReport">新建报备 ></view>
|
|
<view class="tui-button-text" @click="handleAddReport">新建报备 ></view>
|
|
</view>
|
|
</view>
|
|
@@ -167,6 +171,9 @@ export default {
|
|
this.$util.msg(error.msg, 2000)
|
|
this.$util.msg(error.msg, 2000)
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
+ details(reportId) {
|
|
|
|
+ this.$api.navigateTo(`/pages/seller/remarks/report-details?reportId=${reportId}`)
|
|
|
|
+ },
|
|
checkedCoupon(idx) {
|
|
checkedCoupon(idx) {
|
|
// 选择商品
|
|
// 选择商品
|
|
this.checkedIndex = idx
|
|
this.checkedIndex = idx
|
|
@@ -196,7 +203,10 @@ export default {
|
|
this.listQuery.name = ''
|
|
this.listQuery.name = ''
|
|
this.isShowClose = false
|
|
this.isShowClose = false
|
|
},
|
|
},
|
|
- hidePopup() {
|
|
|
|
|
|
+ hidePopup(){// 隐藏弹窗
|
|
|
|
+ this.$parent.isReportpopup = false
|
|
|
|
+ },
|
|
|
|
+ confirmPopup() {// 确认选择
|
|
let report = null
|
|
let report = null
|
|
let checkedData = false
|
|
let checkedData = false
|
|
this.dataList.forEach((el, index) => {
|
|
this.dataList.forEach((el, index) => {
|
|
@@ -205,9 +215,11 @@ export default {
|
|
checkedData = true
|
|
checkedData = true
|
|
}
|
|
}
|
|
})
|
|
})
|
|
- if (checkedData) {
|
|
|
|
- this.$emit('handleChoiceaReport', report)
|
|
|
|
|
|
+ if(!checkedData){
|
|
|
|
+ this.$util.msg('请选择报备~', 2000)
|
|
|
|
+ return
|
|
}
|
|
}
|
|
|
|
+ this.$emit('handleChoiceaReport', report)
|
|
this.$parent.isReportpopup = false
|
|
this.$parent.isReportpopup = false
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -390,15 +402,20 @@ export default {
|
|
box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
padding: 20rpx 20rpx 20rpx 0;
|
|
padding: 20rpx 20rpx 20rpx 0;
|
|
border-radius: 6rpx;
|
|
border-radius: 6rpx;
|
|
- line-height: 42rpx;
|
|
|
|
- color: #999999;
|
|
|
|
- text-overflow: ellipsis;
|
|
|
|
- overflow: hidden;
|
|
|
|
- display: -webkit-box;
|
|
|
|
- -webkit-line-clamp: 3;
|
|
|
|
- line-clamp: 3;
|
|
|
|
- -webkit-box-orient: vertical;
|
|
|
|
- font-size: 26rpx;
|
|
|
|
|
|
+ .text{
|
|
|
|
+ width: 100%;
|
|
|
|
+ height: 100%;
|
|
|
|
+ box-sizing: border-box;
|
|
|
|
+ line-height: 42rpx;
|
|
|
|
+ color: #333333;
|
|
|
|
+ text-overflow: ellipsis;
|
|
|
|
+ overflow: hidden;
|
|
|
|
+ display: -webkit-box;
|
|
|
|
+ -webkit-line-clamp: 3;
|
|
|
|
+ line-clamp: 3;
|
|
|
|
+ -webkit-box-orient: vertical;
|
|
|
|
+ font-size: 26rpx;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
.tui-remarks-goods {
|
|
.tui-remarks-goods {
|
|
width: 646rpx;
|
|
width: 646rpx;
|