Commit 2276a148 by 前端

Merge branch 'sass+v4.25.1' of http://192.168.3.233:8090/saas/scrm-micro-discove…

…r into xuyl_v3.13.1_backup
2 parents afc29df7 fa2846ba
......@@ -10,6 +10,9 @@
<el-form-item label="频道子名称:" prop="channelChildName">
<el-input v-model="channelForm.channelChildName" maxlength="12" show-word-limit></el-input>
</el-form-item>
<el-form-item label="频道顺序:" prop="sort">
<el-input v-model="channelForm.sort" maxlength="12" show-word-limit></el-input>
</el-form-item>
<span v-if="channelForm.channelType == 1">
<el-form-item label="频道主题:" prop="channelStyle">
<el-col :span="11" class="theme"></el-col>
......@@ -71,6 +74,7 @@ export default {
publicityImg: '',
channelImg: '',
channelChildName: '',
sort: '',
channelImgArr: []
},
channelImgbgArr: ['banner1', 'banner2'],
......@@ -101,6 +105,7 @@ export default {
channelImg: [{ required: true, message: '请上传频道banner', trigger: 'change' }],
promotion: [{ required: true, message: '请输入频道分享文案', trigger: 'blur' }],
channelChildName: [{ required: true, message: '请输入频道子名称', trigger: 'change' }],
sort: [{ required: true, message: '请输入频道顺序', trigger: 'change' }],
}
}
},
......@@ -157,6 +162,7 @@ export default {
let params = {
channelName: this.channelForm.channelName,
channelChildName: this.channelForm.channelChildName,
sort: this.channelForm.sort,
channelType: this.channelForm.channelType,
channelStyle: this.channelForm.channelStyle,
channelImg: this.channelForm.channelImg,
......
......@@ -79,6 +79,11 @@ export default {
prop: 'channelChildName'
},
{
label: '频道顺序',
width: 100,
prop: 'sort'
},
{
label: '频道宣传语',
prop: 'promotion',
width: 300,
......
......@@ -165,6 +165,7 @@ export default {
formObj:{
smartcarlifeInfoId: '',
goodsName: '',
goodsType: '1',
goodsImage: '',
minSellPrice: '',
retailPrice: '',
......@@ -466,6 +467,7 @@ export default {
categoryName: res.associationClassifySecondName,
id: res.associationClassifySecondId
}
this.formObj.goodsType = '1'
this.formObj.coverList = [res.goodsImage]
this.merchantRequestList = res.merchantList?.map(item => {
let activityPrice = item.activityPrice ? Number(Number(item.activityPrice/100).toFixed(2)) : 0
......
......@@ -94,7 +94,7 @@ export default {
methods: {
getCategory(){
const params = {
pageSize: 1000,
pageSize: 10000,
pageNum: 1,
categoryType: 1
}
......
......@@ -53,7 +53,8 @@ export default {
url: url,
searchForm: {
goodsName: '',
configurationUpgradeGoodsId: ''
discoverGoodsId: '',
goodsType: ''
},
total: 0,
storeList: [],
......@@ -132,7 +133,8 @@ export default {
// minSellPrice: minSellPrice ? Number(Number(minSellPrice*10*10).toFixed(0)) : 0,
// retailPrice: retailPrice ? Number(Number(retailPrice*10*10).toFixed(0)) : 0,
// }
this.searchForm.configurationUpgradeGoodsId = this.routeInfo.type == 2 ? this.routeInfo.id : ''
this.searchForm.discoverGoodsId = this.routeInfo.type == 2 ? this.routeInfo.id : ''
this.searchForm.goodsType = this.routeInfo.goodsType
},
mounted() {
......
<template>
<div class="goods-list-cntr">
<!-- <GLTabs v-model="activeName" :tabPaneList="tabPaneList" @tab-click="handleClick"></GLTabs> -->
<div class="table-wrap">
<GLTabs v-model="activeName" :tabPaneList="tabPaneList" @tab-click="handleClick"></GLTabs>
<preferList v-if="activeName == '2'"></preferList>
<div v-else class="table-wrap">
<GLCombiForm ref="showSearch" class="search-wrap" :rowNumber="1" :formObj="tableSearchForm" :formData="searchFormData" @handleOk="handleSearch" @handleRest="handleReset">
<div slot="categorySlot">
<brandCascader ref="cascaderRef" @clickItem="selectCategory" class="category-slot-class"></brandCascader>
......@@ -23,7 +24,7 @@
<span>{{scope.scope.goodsStatus==1 ? '上架' : '下架' }}</span>
</div>
<div slot="merchantPriceSlot" slot-scope="scope">
<template v-if="scope.scope.merchantList && scope.scope.merchantList.length > 1">
<template v-if="scope.scope.saleMerchantList && scope.scope.saleMerchantList.length > 1">
<span>{{ filterData(scope.scope).slice(0, 1).join('、') }}</span>
<el-popover
placement="top"
......@@ -32,11 +33,11 @@
<div v-for="(item,index) in filterData(scope.scope)" :key="index">
{{item}}
</div>
<span class="more-info" slot="reference">...[{{ scope.scope.merchantList.length }}]</span>
<span class="more-info" slot="reference">...[{{ scope.scope.saleMerchantList.length }}]</span>
</el-popover>
</template>
<template v-else>
<span v-if="!scope.scope.merchantList || !scope.scope.merchantList.length">--</span>
<span v-if="!scope.scope.saleMerchantList || !scope.scope.saleMerchantList.length">--</span>
<span v-else>{{ filterData(scope.scope).join('、') }}</span>
</template>
</div>
......@@ -51,21 +52,24 @@
<script>
import url from '@/assets/empty.png'
import brandCascader from './components/brandCascader'
import preferList from './preferList'
export default {
name: 'App',
components: {
brandCascader,
preferList
},
data() {
return {
tableSearchForm: {
channelName: '',
goodsType: '1',
createDate: [],
associationClassifyFirstId: '',
associationClassifySecondId: '',
merchantName: ''
},
tabPaneList: [{name: 'sa', label: '配置升级'}, {name: 'sa', label: '车主优选'}],
activeName: '1',
tabPaneList: [{name: '1', label: '配置升级'}, {name: '2', label: '车主优选'}],
buttonList: [
{
type: 'el-button',
......@@ -225,7 +229,7 @@
{
label: '操作人',
width: 120,
prop: 'operator',
prop: 'updatedBy',
},
]
},
......@@ -280,7 +284,7 @@
}
})
},
filterData({merchantList: list}){
filterData({saleMerchantList: list}){
return list?.map(item => {
let activityPrice = item.activityPrice ? Number((Number(item.activityPrice)/100).toFixed(2)) : 0
return `${item.merchantName || '--'}:${activityPrice || '0'}`
......@@ -306,7 +310,7 @@
},
handleReset() {
this.tableSearchForm = {
channelName: '',
goodsType: '1',
createDate: [],
associationClassifyFirstId: '',
associationClassifySecondId: '',
......@@ -321,7 +325,9 @@
this.$refs.channelRef.data.length ? (this.$refs.channelRef.tableHeightValues = '') : this.$refs.channelRef.setTableHeightFun()
},
handleAdd(row={},type){
const params = {}
const params = {
goodsType: this.activeName
}
let title = '新增商品'
if(type){
params.id = row.id
......
......@@ -257,6 +257,12 @@
this.loading = false
})
},
flatData(list){
// let
// list.forEach(item =>{
// })
},
handleConfirm(){
console.log(this.selectdData)
this.$emit('handleConfirm', this.selectdData)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!