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