Commit 858ac8c6 by 胡悦

合并

2 parents daf1384a 11db8732
......@@ -24,7 +24,8 @@ const SPECIALSHOP_API = {
SHOP_SEARCH: '/trialdrive/specialshop/search',
GET_FENCE_DETAIL: '/trialdrive/specialshop/info',
SAVE_FENCE: '/trialdrive/specialshop/add',
UPDATE_FENCE: '/trialdrive/specialshop/edit'
UPDATE_FENCE: '/trialdrive/specialshop/edit',
EXPORT_TABLE: '/trialdrive/specialshop/export'
}
// 试驾报表
const REPORT_API = {
......
......@@ -61,7 +61,7 @@ export default {
label: '关键字:',
type: 'input',
inputType: 'text',
prop: 'keyWord',
prop: 'keywords',
placeholder: '特约店编码|店名称 | 设备号 | 车型',
},
{
......@@ -149,7 +149,7 @@ export default {
this.searchDataForm.startTime = this.searchForm.daterange[0]
this.searchDataForm.endTime = this.searchForm.daterange[1]
}
if (this.searchForm.keyWord) this.searchDataForm.keyWord = this.searchForm.keyWord
if (this.searchForm.keywords) this.searchDataForm.keywords = this.searchForm.keywords
resolve()
})
},
......
......@@ -57,7 +57,7 @@ export default {
{
type: 'input',
inputType: 'text',
prop: 'keyWord',
prop: 'keywords',
placeholder: '特约店编码|店名称',
},
{
......@@ -126,7 +126,7 @@ export default {
this.searchDataForm.year = this.searchForm.date.split('-')[0]
this.searchDataForm.month = this.searchForm.date.split('-')[1]
}
if (this.searchForm.keyWord) this.searchDataForm.keyWord = this.searchForm.keyWord
if (this.searchForm.keywords) this.searchDataForm.keywords = this.searchForm.keywords
resolve()
})
},
......
......@@ -424,18 +424,18 @@ export default {
//params.endTime = form.endTime;
// params.shopName = form.specialShopName;
params.specialShopId = form.specialShopId;
params.shopLevel = form.shopLevel;
params.shapeType = form.shapeType;
params.shopLevel = form.shopLevel;
// params.shapeType = form.shapeType;
// params.des = form.des;
// params.timeType = form.timeType;
if(params.shapeType == 4){
if(form.shapeType == 4){
params.areaCode = form.areaCode;
params.areaString = form.areaString;
}else if(params.shapeType == 1){
}else if(form.shapeType == 1){
params.lnglat = `${form.lng},${form.lat}`;
params.radius = form.radius;
params.address = form.analysisAddress;
}else if(params.shapeType == 3){
}else if(form.shapeType == 3){
params.lnglat = this.polygonPath.join('|')
}
// params.bizFenceType = form.bizFenceType
......
......@@ -111,6 +111,8 @@
<script>
import { getList } from 'services/specialshop'
import { getSimpleRoot, getSimpleList } from 'services/common'
import { SPECIALSHOP_API } from '@/config/config'
import store from '@/store'
export default {
data() {
return {
......@@ -184,15 +186,15 @@ export default {
type: 'primary',
pType: 'create'
},
{
id: 2,
name: '批量删除',
type: 'default',
pType: 'delete'
},
// {
// id: 2,
// name: '批量删除',
// type: 'default',
// pType: 'delete'
// },
{
id: 3,
name: '导出',
name: '导出Excel',
type: 'default',
pType: 'export'
}
......@@ -213,12 +215,20 @@ export default {
this.searchForm = {}
},
btnClick(pType, scope) {
console.log(scope)
const { shopId } = scope;
if(scope) {
const { shopId } = scope;
}
switch (pType) {
case 'create':
this.$router.push({ name: 'addShop' })
break
case 'export':
this.$Common.exportExcel({
url: `${store.state.baseURL}${SPECIALSHOP_API.EXPORT_TABLE}`,
method: 'GET',
data: this.searchForm
})
break
case 'edit':
this.$router.push({
name: 'addShop',
......
......@@ -54,7 +54,17 @@
@click="btnClick(j.pType, scope.scope)"
>{{j.name}}</el-button>
</template>
<template v-if="(j.pType !== 'pass' && j.pType !== 'reject') && scope.scope.approvalStatus != 1">
<template v-if="(j.pType !== 'pass' && j.pType !== 'reject') && scope.scope.approvalStatus != 1 && scope.scope.isAdd == 2">
<el-button
:key="idx"
:type="j.type || 'text'"
size="mini"
plain
@click="btnClick(j.pType, scope.scope)"
>{{j.name}}</el-button>
</template>
<!-- isAdd => 1: 只展示查看原围栏 2: 展示查看原围栏和修改后的围栏 -->
<template v-if="(j.remark == 'viewOrigin') && scope.scope.approvalStatus != 1 && scope.scope.isAdd == 1">
<el-button
:key="idx"
:type="j.type || 'text'"
......@@ -134,6 +144,9 @@ export default {
}, {
label: '审核结果',
prop: 'approvalResult'
}, {
label: '审核结果备注',
prop: 'remark'
}
],
tableOption: {
......@@ -142,18 +155,22 @@ export default {
{
name: '查看原围栏',
pType: 'view',
remark: 'viewOrigin'
},
{
name: '查看修改后围栏',
pType: 'view',
remark: 'viewUpdated'
},
{
name: '通过',
pType: 'pass',
remark: ''
},
{
name: '驳回',
pType: 'reject',
remark: ''
}
]
}
......
......@@ -84,7 +84,7 @@ export default {
label: '关键字:',
type: 'input',
inputType: 'text',
prop: 'keyword',
prop: 'keywords',
placeholder: '特约店编码|店名称|围栏名称',
},
{
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!