Commit 6dfbfaf2 by zhangquan

自测bug修复

1 parent 06a1f751
...@@ -69,7 +69,7 @@ export default { ...@@ -69,7 +69,7 @@ export default {
}, trigger: 'change' }], }, trigger: 'change' }],
introduction: [{ required: true, message: '请输入宣传文案', trigger: 'change' }], introduction: [{ required: true, message: '请输入宣传文案', trigger: 'change' }],
brand: [{ required: true, validator: (rule, value, callback) => { brand: [{ required: true, validator: (rule, value, callback) => {
if(this.brandType!=1 && !this.brandList?.length) { if(this.formObj.brandType==2 && !this.brandList?.length) {
callback(new Error(`请选择品牌`)) callback(new Error(`请选择品牌`))
}else{ }else{
callback() callback()
......
...@@ -412,14 +412,14 @@ export default { ...@@ -412,14 +412,14 @@ export default {
id: res.associationClassifySecondId id: res.associationClassifySecondId
} }
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
return {...item, activityPrice} return {...item, activityPrice}
}) }) || []
this.vehicleSeriesRequestList = res.vehicleSeriesList.map(item => { this.vehicleSeriesRequestList = res?.vehicleSeriesList?.map(item => {
const {brandId, brandName, childBrandId,childBrandName , vehicleSeriesId, vehicleSeriesName } = item const {brandId, brandName, childBrandId,childBrandName , vehicleSeriesId, vehicleSeriesName } = item
return {brandId, brandName, childBrandId,childBrandName , vehicleSeriesId, vehicleSeriesName } return {brandId, brandName, childBrandId,childBrandName , vehicleSeriesId, vehicleSeriesName }
}) }) || []
} }
}) })
} }
......
<template> <template>
<div class="select-store"> <div class="select-store">
<GLDialog bigTitle="选择门店" <GLDialog bigTitle="选择商品"
mode="big" mode="big"
:visible.sync="dialogVisible" :visible.sync="dialogVisible"
:before-close="handleClose" :before-close="handleClose"
......
<template> <template>
<GLDialog bigTitle="选择商品优惠券" mode="big" :visible.sync="isVisible" :show-close="true" :before-close="handleClose" :close-on-click-modal="false" @onOk="onOk" @onCancel="handleClose"> <GLDialog bigTitle="选择门店" mode="big" :visible.sync="isVisible" :show-close="true" :before-close="handleClose" :close-on-click-modal="false" @onOk="onOk" @onCancel="handleClose">
<div class="dialog_body"> <div class="dialog_body">
<!-- <GLCombiForm :rowNumber="1" class="dialog_search" ref="searchRef" :formObj="dialogSearchForm" :formData="dialogFormData" @handleOk="handleOk" @handleRest="handleRest"></GLCombiForm> --> <!-- <GLCombiForm :rowNumber="1" class="dialog_search" ref="searchRef" :formObj="dialogSearchForm" :formData="dialogFormData" @handleOk="handleOk" @handleRest="handleRest"></GLCombiForm> -->
<div class="dialog_table"> <div class="dialog_table">
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
<div> <div>
<el-button type="primary" size="small" @click="handleEdit">频道设置</el-button> <el-button type="primary" size="small" @click="handleEdit">频道设置</el-button>
<el-button type="primary" size="small" @click="handleAdd">编辑频道</el-button> <el-button type="primary" size="small" @click="handleAdd">编辑频道</el-button>
<el-button type="primary" plain size="small" @click="handleAddContent()">新增内容</el-button> <el-button v-if="activeName!=5" type="primary" plain size="small" @click="handleAddContent()">新增内容</el-button>
</div> </div>
</div> </div>
<GLTable ref="editRef" :getListApi="getListApi" :noDataImg="url" :searchForm="searchForm" :beforeSearchFn="beforeSearchFn" :tableParams="tableParams" :pageConf="pageConf" @setTableFinishFun="setTableFinishFun"> <GLTable ref="editRef" :getListApi="getListApi" :noDataImg="url" :searchForm="searchForm" :beforeSearchFn="beforeSearchFn" :tableParams="tableParams" :pageConf="pageConf" @setTableFinishFun="setTableFinishFun">
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!