Commit a4556505 by 前端

Merge branch 'master' of http://192.168.3.233:8090/saas/scrm-micro-discover into xuyl_v3.13.1_backup

2 parents 9691e78b db4ca2ce
<!-- 搜索 -->
<template>
<div :class="['glsx-combi-form', isEdit ? 'gl-form-page' : '']">
<el-form :ref="formRef" :inline="isInline" :model="formObj" :rules="formRules" size="small" class="glsx-combi-form-block">
<el-form @submit.native.prevent :ref="formRef" :inline="isInline" :model="formObj" :rules="formRules" size="small" class="glsx-combi-form-block">
<template v-for="(item, index) in formData">
<el-form-item v-if="!item.isHide" :key="index" :id="item.name" :labelWidth="isEdit ? '154px' : labelWidth" :class="[{ 'no-label': !item.label, isBlock: isBlock }, { textBox: item.type == 'textBox' }]" :style="{ 'margin-bottom': isEdit ? '24px' : '', 'margin-right': isEdit ? '0px' : '30px', ...item.style }" :label="item.label" :prop="item.name">
<span v-if="!item.isHide && item.tips" class="tips-block" slot="label">
......
......@@ -17,8 +17,8 @@ export const fetchConfig = function (isEnv = true) {
// Object.assign(request, { timeout })
// return Promise.resolve(cfg)
// }
return new Http().get('https://oss-config.dev.glsx.com.cn/mock/63b39b3e606e962c5e174afb/discover/config')
// return new Http().get('https://oss-config.glsx.com.cn/mock/63c12a6b28a427953783403e/discover/config')
// return new Http().get('https://oss-config.dev.glsx.com.cn/mock/63b39b3e606e962c5e174afb/discover/config')
return new Http().get('https://oss-config.glsx.com.cn/mock/63c12a6b28a427953783403e/discover/config')
}
export const config = {
......
......@@ -8,11 +8,11 @@
<div class="text-tip" style="margin: 0;">建议尺寸:272*364</div>
</div>
<div slot="selectBrandSlot">
<el-radio-group v-model="formObj.brandType">
<el-radio :label="1">全部品牌</el-radio>
<el-radio :label="2">部分品牌</el-radio>
<el-radio-group v-model="formObj.applyBrandType">
<el-radio :label="0">全部品牌</el-radio>
<el-radio :label="1">部分品牌</el-radio>
</el-radio-group>
<div v-if="formObj.brandType == 2">
<div v-if="formObj.applyBrandType == 1">
<el-button class="el-icon-plus" size="small" @click="openBrandDialog">选择品牌</el-button>
<div class="brand-wrap" v-if="brandList && brandList.length">
<div class="brand-item" v-for="item in brandList" :key="item.id">{{ item.name }}</div>
......@@ -47,7 +47,7 @@ export default {
caseName: '',
coverUrl: '',
introduction: '',
brandType: 1,
applyBrandType: 0,
videoCoverArr: []
},
brandList: [],
......@@ -69,7 +69,7 @@ export default {
}, trigger: 'change' }],
introduction: [{ required: true, message: '请输入宣传文案', trigger: 'change' }],
brand: [{ required: true, validator: (rule, value, callback) => {
if(this.formObj.brandType==2 && !this.brandList?.length) {
if(this.formObj.applyBrandType==1 && !this.brandList?.length) {
callback(new Error(`请选择品牌`))
}else{
callback()
......@@ -152,13 +152,12 @@ export default {
if(valid){
let params = JSON.parse(JSON.stringify(this.formObj))
params.coverUrl = this.formObj.videoCoverArr[0]
if(params.brandType == 2){
if(params.applyBrandType == 1){
params.brandList = this.brandList.map(item => {
return { brandId: item.id , brandName: item.name}
})
}
delete params.videoCoverArr
delete params.brandType
if(!params.id) delete params.id
this.$apis.case.addCaseApi(params).then(res => {
console.log(res)
......@@ -182,12 +181,11 @@ export default {
this.$apis.case.getCaseDetailApi({id: this.$route.query.id}).then(res => {
console.log(res)
if(res){
const attrList = ['id', 'mediaId', 'caseName', 'introduction']
const attrList = ['id', 'mediaId', 'caseName', 'introduction', 'applyBrandType']
attrList.forEach(key =>{
this.formObj[key] = res[key]
})
this.formObj.videoCoverArr = [res.coverUrl]
this.formObj.brandType = res.brandList?.length > 0 ? 2 : 1
this.brandList = res.brandList.map(item => ({id: item.brandId, name: item.brandName})) || []
}
})
......
......@@ -6,8 +6,13 @@
:close-on-click-modal="false"
@onOk="handleConfirm"
@onCancel="handleClose">
<div class="search-wrap">
<el-input size="small" placeholder="请输入搜索关键字" v-model="curbrandName">
<i slot="suffix" class="el-input__icon el-icon-search"></i>
</el-input>
</div>
<el-checkbox-group v-model="checkedList">
<el-checkbox v-for="item in carSeriesList" :key="item.id" :label="item.id">{{item.name}}</el-checkbox>
<el-checkbox v-for="item in filterBrandList" :key="item.id" :label="item.id">{{item.name}}</el-checkbox>
</el-checkbox-group>
</GLDialog>
</template>
......@@ -16,8 +21,10 @@ export default {
name: 'selectCarSeriesDialog',
data() {
return {
curbrandName: '',
checkedList:[],
carSeriesList: []
carSeriesList: [],
filterBrandList: []
}
},
props: {
......@@ -29,6 +36,14 @@ export default {
type: Array
}
},
watch:{
curbrandName:{
handler(nVal, oVal){
this.filterBrandList = this.carSeriesList.filter(item => item.name.indexOf(nVal)>-1)
},
deep: true
}
},
created(){
this.checkedList = this?.listData.map(item => item.id)
this.getCarSeriesList()
......@@ -40,7 +55,7 @@ export default {
getCarSeriesList(){
this.$apis.case.getCarSeriesApi({}).then(res => {
if(res?.length){
console.log(res)
this.filterBrandList= res
this.carSeriesList = res
}
})
......@@ -64,4 +79,13 @@ export default {
height: 32px;
line-height: 32px;
}
.search-wrap{
margin-bottom: 12px;
/deep/ .el-input {
&, .el-input__inner{
height: 36px;
width: 432px;
}
}
}
</style>
\ No newline at end of file
......@@ -26,7 +26,7 @@
</el-popover>
</template>
<template v-else>
<span v-if="!scope.scope.brandList || !scope.scope.brandList.length">--</span>
<span v-if="!scope.scope.brandList || !scope.scope.brandList.length">{{ scope.scope.applyBrandType==1? '--' : '全部' }}</span>
<span v-else>{{ filterBrand(scope.scope).join('、') }}</span>
</template>
</div>
......@@ -213,6 +213,7 @@
this.$apis.case.delCaseApi({id}).then(res => {
if(res){
this.$message.success('删除成功')
this.handleSearch()
}
})
}
......
......@@ -5,10 +5,10 @@
<div class="channel-content gl-form-page">
<el-form ref="ruleForm1" :model="channelForm" label-width="154px" size="small" :rules="rules">
<el-form-item label="频道名称:" prop="channelName">
<el-input v-model="channelForm.channelName" maxlength="20" show-word-limit></el-input>
<el-input v-model="channelForm.channelName" maxlength="6" show-word-limit></el-input>
</el-form-item>
<el-form-item label="频道子名称:" prop="channelChildName">
<el-input v-model="channelForm.channelChildName" maxlength="20" show-word-limit></el-input>
<el-input v-model="channelForm.channelChildName" maxlength="12" show-word-limit></el-input>
</el-form-item>
<span v-if="channelForm.channelType == 1">
<el-form-item label="频道主题:" prop="channelStyle">
......
......@@ -51,7 +51,7 @@
</div>
</div>
<div slot="categorySlot">
<brandCascader :disabled="disabled" @clickItem="selectCategory" class="category-class"></brandCascader>
<brandCascader :curInfo="curCategoryInfo" :disabled="disabled" @clickItem="selectCategory" class="category-class"></brandCascader>
</div>
</glsx-combi-form>
</div>
......@@ -60,7 +60,7 @@
<el-button v-if="!disabled" type="primary" @click="handleSave">确定</el-button>
</GLFooter>
<selectCarDialog v-if="carDialogVisible" :echoData="vehicleSeriesRequestList" @handleClose="handleCarSeriesClose" @handleConfirm="handleConfirm" :dialogVisible="carDialogVisible"></selectCarDialog>
<selectGoods v-if="goodsVisible" :dialogVisible="goodsVisible" :goodsInfo="formObj" @handleGoodsConfirm="handleGoodsConfirm" @handleGoodsClose="handleGoodsClose"></selectGoods>
<selectGoods v-if="goodsVisible" :routeInfo="routeInfo" :dialogVisible="goodsVisible" @handleGoodsConfirm="handleGoodsConfirm" @handleGoodsClose="handleGoodsClose"></selectGoods>
<selectMerchantDialog @confirmDialog="confirmDialog" @closeDialog="closeDialog" :goodsId="formObj.smartcarlifeInfoId" :selectedList="merchantRequestList" v-if="merchantDialogVisible" :isVisible="merchantDialogVisible"></selectMerchantDialog>
</div>
</template>
......@@ -125,10 +125,12 @@ export default {
merchantDialogVisible: false,
disabled: false,
goodsInfo: {},
routeInfo: {},
defaultProps:{
children: 'categoryName',
label: 'childs'
},
curCategoryInfo:{},
posterOptions: {
width: '104px',
height: '104px',
......@@ -210,6 +212,7 @@ export default {
}else{
callback()
}
this.validateField('saleStore')
},
trigger: 'change'
}],
......@@ -217,11 +220,19 @@ export default {
required: true,
validator: (rule, value, callback) => {
const target = this.merchantRequestList.find(item => !item.activityPrice)
const hasNegTarget = this.merchantRequestList.find(item => {
let activityPrice = item.activityPrice || 0
let depositPrice = this.formObj.depositPrice || 0
return +activityPrice < +depositPrice
})
if(!this.merchantRequestList.length){
callback(new Error('请选择门店'))
}else if(target){
callback(new Error('请输入门店活动价'))
}else if(this.formObj.paymentType == 2 && hasNegTarget){
callback(new Error('活动价不能小于定金'))
}else{
console.log(this.formObj.paymentType , hasNegTarget)
callback()
}
},
......@@ -312,6 +323,15 @@ export default {
}
},
methods:{
validateField(field){
if(Array.isArray(field)){
field.forEach(item => {
this.$refs.baseInfoRef.$refs.formRef.validateField(item)
})
}else{
this.$refs.baseInfoRef.$refs.formRef.validateField(field)
}
},
retainagePriceFn(price){
let depositPrice = this.formObj.paymentType==1 ? 0 : this.formObj.depositPrice
if(this.formObj.paymentType==1) return '--'
......@@ -335,6 +355,7 @@ export default {
retailPrice = retailPrice ? Number(Number(retailPrice/100).toFixed(2)) : 0
this.formObj = {...this.formObj, smartcarlifeInfoId, goodsName, goodsImage, coverList: [goodsImage], minSellPrice, retailPrice}
this.handleGoodsClose()
this.validateField(['selectGoodsName','goodsInfoName'])
},
handleCarSeriesClose(){
this.carDialogVisible = !this.carDialogVisible
......@@ -358,10 +379,12 @@ export default {
}
})
this.handleCarSeriesClose()
this.validateField('carSeriesName')
},
confirmDialog(e){
this.merchantRequestList = e || []
this.closeDialog()
this.validateField('saleStore')
},
closeDialog(){
if(!this.merchantDialogVisible && !this.formObj.smartcarlifeInfoId){
......@@ -372,11 +395,11 @@ export default {
handleDel(row) {
const idx = this.merchantRequestList.findIndex(item => item.id == row.id)
this.merchantRequestList.splice(idx, 1)
// this.validateGoods()
},
selectCategory(e){
this.formObj.associationClassifyFirstId = e?.parent?.id
this.formObj.associationClassifySecondId = e?.data?.id
this.validateField('categoryName')
},
getParams(){
let obj = JSON.parse(JSON.stringify(this.formObj))
......
......@@ -76,6 +76,7 @@ export default {
'curInfo.id':{
handler(nVal, oVal){
if(this.curBrand.id==nVal) return
this.curBrand = this.curInfo
},
deep: true
......@@ -116,6 +117,7 @@ export default {
},
// 显示隐藏
switchBrand() {
if(this.disabled) return
let distance = 0
try {
distance = window.innerHeight - this.$refs.cascaderRef.getBoundingClientRect().y -this.$refs.cascaderRef.getBoundingClientRect().height
......
......@@ -7,7 +7,7 @@
:close-on-click-modal="false"
@onOk="handleConfirm"
@onCancel="handleClose">
<!-- <glsx-combi-form ref="showSearch"
<glsx-combi-form ref="showSearch"
labelWidth="105px"
:formObj="searchForm"
:formData="searchFormData">
......@@ -16,15 +16,14 @@
type="primary"
@click="resetTable">查询</el-button>
</span>
</glsx-combi-form> -->
<GLTable ref="storeRef"
</glsx-combi-form>
<GLTable ref="goodsRef"
:noDataImg="url"
:tableTotal="total"
:searchForm="searchForm"
:tableParams="tableParams"
:pageConf="pageConf"
@refreshTable="getList"
:tableData="storeList"
:getListApi="getListApi"
:hasNum="false"
:setTableFinishFun="setTableFinishFun">
<div slot="radioHtml"
......@@ -53,36 +52,30 @@ export default {
return {
url: url,
searchForm: {
goodsName: '',
configurationUpgradeGoodsId: ''
},
// getListApi: this.$apis.common.getMerchantList,
total: 0,
storeList: [],
heightBox: 200,
curInfo: {},
// 搜索
// searchFormData: [
// {
// label: '商户名称',
// name: 'merchantName',
// type: 'input',
// placeholder: '请输入商户名称',
// width: '300px',
// labelWidth: '10px'
// },
// {
// label: '商户ID',
// name: 'merchantId',
// type: 'input',
// inputType: 'number',
// placeholder: '请输入商户ID',
// width: '300px',
// labelWidth: '10px'
// }
// ],
searchFormData: [
{
label: '商品名称',
name: 'goodsName',
type: 'input',
placeholder: '请输入商品名称',
width: '300px',
labelWidth: '10px',
isClear: true
}
],
pageConfig: {
pageSize: 10,
currentPage: 1
pageNum: 1
},
getListApi: this.$apis.goods.getCarlifeGoodsApi,
tableParams: {
listName: 'list',
tableColumns: [
......@@ -108,7 +101,7 @@ export default {
}
]
},
pageConf: { pageSize: 'pageSize', pageNum: 'currentPage', totalCount: 'total' },
pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'total' },
baseData: {}
}
},
......@@ -118,6 +111,10 @@ export default {
type: Boolean,
default: false
},
routeInfo: {
type: Object,
default: ()=> {}
},
storeSearchForm: {
type: Object
},
......@@ -127,47 +124,28 @@ export default {
}
},
created() {
let { smartcarlifeInfoId, goodsName, coverList, goodsImage, minSellPrice, retailPrice } = this.goodsInfo || {}
this.curInfo = {
id: smartcarlifeInfoId,
goodsName,
goodsImage: coverList?.[0] || '',
minSellPrice: minSellPrice ? Number(Number(minSellPrice*10*10).toFixed(0)) : 0,
retailPrice: retailPrice ? Number(Number(retailPrice*10*10).toFixed(0)) : 0,
}
// let { smartcarlifeInfoId, goodsName, coverList, goodsImage, minSellPrice, retailPrice } = this.goodsInfo || {}
// this.curInfo = {
// id: smartcarlifeInfoId,
// goodsName,
// goodsImage: coverList?.[0] || '',
// 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 : ''
},
mounted() {
let clientHeight = document.documentElement.clientHeight
this.heightBox = clientHeight - 0.15 * clientHeight - 425
this.getList()
},
methods: {
getList(pageCon) {
pageCon && (this.pageConfig = pageCon)
var params = {
merchantId: this.merchantId,
...this.searchForm,
...this.pageConfig
// merchantId: '44209390',
}
this.$apis.goods.getCarlifeGoodsApi(params).then(res => {
this.storeList = res.list
this.total = res.total
let nowIndex = this.pageConfig.pageSize * (this.pageConfig.currentPage - 1)
this.storeList.forEach((item, index) => {
item.idx = index + 1 + nowIndex
})
})
},
resetTable() {
this.$refs.storeRef.page.currentPage = 1
this.getList()
this.$refs.goodsRef.refreshTable()
},
setTableFinishFun() {
this.$refs.staffRef.tableHeightValues = '460px'
this.$refs.goodsRef.tableHeightValues = '460px'
},
handleClick(item) {
......@@ -185,7 +163,15 @@ export default {
}
</script>
<style lang="scss">
<style lang="scss" scoped>
/deep/.glsx-combi-form .el-form{
.el-form-item{
margin-right: 12px!important;
}
.el-button {
margin-top: 1px;
}
}
.select-store {
.storeDailog {
width: 500px;
......
......@@ -175,6 +175,7 @@
tableColumns: [
{
label: '商品名称',
width: 150,
prop: 'goodsName'
},
{
......@@ -183,12 +184,14 @@
},
{
label: '收款方式',
width: 120,
formatter: cellValue => {
return cellValue.paymentType==1 ? '全款' : '定金+尾款'
}
},
{
label: '定金(元)',
width: 120,
formatter: cellValue => {
return cellValue.depositPrice ? Number((Number(cellValue.depositPrice)/100).toFixed(2)) : '--'
}
......@@ -200,6 +203,7 @@
},
{
label: '分类',
width: 150,
formatter: cellValue => {
return `${cellValue.associationClassifyFirstName||''}-${cellValue.associationClassifySecondName||''}`
}
......@@ -220,6 +224,7 @@
},
{
label: '操作人',
width: 120,
prop: 'operator',
},
]
......@@ -284,8 +289,8 @@
getParams() {
var params = JSON.parse(JSON.stringify(this.tableSearchForm))
if (this.tableSearchForm.createDate.length) {
params.createdDateStrat = new Date(this.tableSearchForm.createDate[0]).toLocaleDateString().replace(/\//g, '-') + ' 00:00:00'
params.createdDateEnd = new Date(this.tableSearchForm.createDate[1]).toLocaleDateString().replace(/\//g, '-') + ' 23:59:59'
params.startCreatedDate = new Date(this.tableSearchForm.createDate[0]).toLocaleDateString().replace(/\//g, '-') + ' 00:00:00'
params.endCreatedDate = new Date(this.tableSearchForm.createDate[1]).toLocaleDateString().replace(/\//g, '-') + ' 23:59:59'
}
return params
},
......
......@@ -66,7 +66,8 @@ export default {
{
label: '主营品牌车系',
name: 'carId',
addHtml: 'carSeriesHtml'
addHtml: 'carSeriesHtml',
isHide: true
},
],
selectedList: [],
......@@ -146,6 +147,10 @@ export default {
this.editForm.channelIds = []
res.forEach(item => {
this.editForm.channelIds.push(item.channelId)
if(item.channelId==5) {
const _target = this.editFormData.find(item => item.name == 'carId')
_target.isHide = false
}
})
})
},
......@@ -163,7 +168,7 @@ export default {
merchantId: this.editForm.merchantId,
merchantName: this.editForm.merchantName,
channelIds: this.editForm.channelIds,
vehicleSeriesRequests: this.editForm.vehicleSeriesRequests
vehicleSeriesRequests: this.editForm?.channelIds?.includes(5) ? this.editForm.vehicleSeriesRequests : []
}
this.loading = true
this.$apis.store.configMerchant(params).then(res => {
......@@ -181,7 +186,13 @@ export default {
})
},
handleCheckedChannelChange(val) {
// console.log(this.editForm.channelIds)
const _target = this.editFormData.find(item => item.name == 'carId')
if(val?.includes(5)){
_target.isHide = false
}else{
_target.isHide = true
this.editForm.vehicleSeriesRequests = []
}
},
//选择车系
handleCarSeriesClose(){
......
......@@ -6,12 +6,17 @@
:close-on-click-modal="false"
@onOk="handleConfirm"
@onCancel="handleClose">
<div class="search-wrap">
<el-input size="small" placeholder="请输入搜索关键字" v-model="curbrandName">
<i slot="suffix" class="el-input__icon el-icon-search"></i>
</el-input>
</div>
<div v-if="loading" class="loading-wrap">
<img class="loading-img" :src="url" alt="">
</div>
<div class="car-container" v-else>
<div class="wrap">
<div class="item son-brand-wrap" v-for="(item, index) in carSeriesData" :key="item.id">
<div class="item son-brand-wrap" v-for="(item, index) in filterBrandList" :key="item.id">
<el-checkbox v-if="!singleChoice" :disabled="!(item.childs && item.childs.length)" :indeterminate="isIndeterminate(item, 1)" :value="isChecked(item, 1)" @change="changeBrandStatus($event, item, index)"></el-checkbox>
<span :class="['son-brand-label', {'curItem' : curBrandInfo.id==item.id}]" @click="showSonBrandList(item)">
{{ item.name }}
......@@ -43,7 +48,9 @@
return {
url,
loading: true,
curbrandName: '',
carSeriesData: [],
filterBrandList: [],
sonBrandList: [],
carSeriesList: [],
selectdData: {},
......@@ -55,7 +62,7 @@
id: '',
name: ''
},
isClearData: true
isClearData: true //品牌为单选的时候,是否需要清空数据
}
},
computed:{
......@@ -74,6 +81,16 @@
default: ()=>[]
},
},
watch:{
curbrandName:{
handler(nVal, oVal){
this.sonBrandList = []
this.carSeriesList = []
this.filterBrandList = this.carSeriesData.filter(item => item.name.indexOf(nVal)>-1)
},
deep: true
}
},
created(){
this.echoDataFn()
},
......@@ -102,6 +119,16 @@
this.selectdData = obj
},
changeBrandStatus(e, row, idx){
this.curBrandInfo = {
id: row.id,
name: row.name
}
this.sonBrandList = row?.childs || []
this.curSonBrandInfo = {
id: row?.childs?.[0]?.id,
name: row?.childs?.[0]?.name
}
this.carSeriesList = row?.childs?.[0]?.childs || []
const { id: rootId, name: rootName } = row
if(this.selectdData[rootId]){
this.$delete(this.selectdData, rootId)
......@@ -123,6 +150,11 @@
this.selectdData = {}
this.isClearData = false
}
this.curSonBrandInfo = {
id: row.id,
name: row.name
}
this.carSeriesList = row?.childs
const {id:rootId, name: rootName} = this.curBrandInfo
if(this.selectdData[rootId]){
if(this.selectdData[rootId][row.id]){
......@@ -173,8 +205,12 @@
id: row.id,
name: row.name
}
this.curSonBrandInfo = {
id: row?.childs?.[0]?.id,
name: row?.childs?.[0]?.name
}
this.sonBrandList = row?.childs || []
this.carSeriesList = []
this.carSeriesList = row?.childs?.[0]?.childs || []
},
showCarSeriesList(row){
if(row.id == this.curSonBrandInfo.id) return
......@@ -215,6 +251,7 @@
this.$apis.case.getCarSeriesApi({needCarSeries:true}).then(res => {
if(res?.length){
this.carSeriesData = res
this.filterBrandList = res
}
}).finally(end =>{
this.loading = false
......@@ -231,8 +268,16 @@
}
</script>
<style lang="scss">
<style lang="scss" scoped>
.search-wrap{
margin-bottom: 12px;
.el-input {
&, .el-input__inner{
height: 36px;
width: 432px;
}
}
}
.loading-wrap{
height: 200px;
width: 100%;
......
......@@ -29,24 +29,6 @@
<span :class="['status', scope.scope.goodsStatus==1 ? 'success-status': 'error-status']"></span>
<span>{{scope.scope.goodsStatus==1 ? '上架' : '下架' }}</span>
</div>
<div slot="merchantPriceSlot" slot-scope="scope">
<template v-if="scope.scope.merchantList && scope.scope.merchantList.length > 1">
<span>{{ filterData(scope.scope).slice(0, 1).join('、') }}</span>
<el-popover
placement="top"
width="400"
trigger="hover">
<div v-for="(item,index) in filterData(scope.scope)" :key="index">
{{item}}
</div>
<span class="more-info" slot="reference">...[{{ scope.scope.merchantList.length }}]</span>
</el-popover>
</template>
<template v-else>
<span v-if="!scope.scope.merchantList || !scope.scope.merchantList.length">--</span>
<span v-else>{{ filterData(scope.scope).join('、') }}</span>
</template>
</div>
<template slot="activityLink" slot-scope="scope">
<span class="relink">{{ scope.scope.activityName }}</span>
</template>
......@@ -148,12 +130,6 @@ export default {
filter: '1,2,3,4,5'
},
{
label: '商户名称',
name: 'merchantName',
type: 'input',
filter: '5'
},
{
label: '商品分类',
name: 'goodsCategory',
addHtml: 'categorySlot',
......@@ -234,6 +210,7 @@ export default {
},
{
label: '商品名称',
width: 200,
prop: 'goodsName',
filter: '5'
},
......@@ -244,6 +221,7 @@ export default {
},
{
label: '收款方式',
width: 120,
formatter: cellValue => {
return cellValue.paymentType==1 ? '全款' : '定金+尾款'
},
......@@ -251,6 +229,7 @@ export default {
},
{
label: '定金(元)',
width: 120,
formatter: cellValue => {
return cellValue.depositPrice ? Number((Number(cellValue.depositPrice)/100).toFixed(2)) : '--'
},
......@@ -258,12 +237,16 @@ export default {
},
{
label: '门店活动价(元)',
width: 200,
addHtml: 'merchantPriceSlot',
width: 150,
formatter: cellValue => {
let item = cellValue.merchantList && cellValue.merchantList[0] ? cellValue.merchantList[0] : {}
return item.activityPrice ? Number((Number(item.activityPrice)/100).toFixed(2)) : 0
},
filter: '5'
},
{
label: '分类',
width: 150,
formatter: cellValue => {
return `${cellValue.associationClassifyFirstName||''}-${cellValue.associationClassifySecondName||''}`
},
......@@ -301,6 +284,7 @@ export default {
},
{
label: '操作人',
width: 120,
prop: 'operator',
filter: '5'
},
......@@ -374,6 +358,9 @@ export default {
const {associationClassifyFirstId, associationClassifySecondId} = this.ClassifyInfo
this.searchForm.associationClassifyFirstId = associationClassifyFirstId
this.searchForm.associationClassifySecondId = associationClassifySecondId
this.searchForm.startCreatedDate = this.searchForm.createdDate ? this.searchForm.createdDate + ' 00:00:00' : ''
this.searchForm.endCreatedDate = this.searchForm.createdDate ? this.searchForm.createdDate + ' 23:59:59' : ''
delete this.searchForm.createdDate
}
// delete this.searchForm.createDate
resolve()
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!