Commit 259197d5 by 吴娟华

'1.2.1'

1 parent eb307a59
...@@ -1730,16 +1730,6 @@ ...@@ -1730,16 +1730,6 @@
"integrity": "sha1-/q7SVZc9LndVW4PbwIhRpsY1IPo=", "integrity": "sha1-/q7SVZc9LndVW4PbwIhRpsY1IPo=",
"dev": true "dev": true
}, },
"ansi-styles": {
"version": "4.3.0",
"resolved": "https://registry.nlark.com/ansi-styles/download/ansi-styles-4.3.0.tgz",
"integrity": "sha1-7dgDYornHATIWuegkG7a00tkiTc=",
"dev": true,
"optional": true,
"requires": {
"color-convert": "^2.0.1"
}
},
"cacache": { "cacache": {
"version": "13.0.1", "version": "13.0.1",
"resolved": "https://registry.npm.taobao.org/cacache/download/cacache-13.0.1.tgz?cache=0&sync_timestamp=1594429684526&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fcacache%2Fdownload%2Fcacache-13.0.1.tgz", "resolved": "https://registry.npm.taobao.org/cacache/download/cacache-13.0.1.tgz?cache=0&sync_timestamp=1594429684526&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fcacache%2Fdownload%2Fcacache-13.0.1.tgz",
...@@ -1766,34 +1756,6 @@ ...@@ -1766,34 +1756,6 @@
"unique-filename": "^1.1.1" "unique-filename": "^1.1.1"
} }
}, },
"chalk": {
"version": "4.1.1",
"resolved": "https://registry.nlark.com/chalk/download/chalk-4.1.1.tgz?cache=0&sync_timestamp=1618995367379&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fchalk%2Fdownload%2Fchalk-4.1.1.tgz",
"integrity": "sha1-yAs/qyi/Y3HmhjMl7uZ+YYt35q0=",
"dev": true,
"optional": true,
"requires": {
"ansi-styles": "^4.1.0",
"supports-color": "^7.1.0"
}
},
"color-convert": {
"version": "2.0.1",
"resolved": "https://registry.npm.taobao.org/color-convert/download/color-convert-2.0.1.tgz",
"integrity": "sha1-ctOmjVmMm9s68q0ehPIdiWq9TeM=",
"dev": true,
"optional": true,
"requires": {
"color-name": "~1.1.4"
}
},
"color-name": {
"version": "1.1.4",
"resolved": "https://registry.nlark.com/color-name/download/color-name-1.1.4.tgz",
"integrity": "sha1-wqCah6y95pVD3m9j+jmVyCbFNqI=",
"dev": true,
"optional": true
},
"find-cache-dir": { "find-cache-dir": {
"version": "3.3.1", "version": "3.3.1",
"resolved": "https://registry.npm.taobao.org/find-cache-dir/download/find-cache-dir-3.3.1.tgz", "resolved": "https://registry.npm.taobao.org/find-cache-dir/download/find-cache-dir-3.3.1.tgz",
...@@ -1815,25 +1777,6 @@ ...@@ -1815,25 +1777,6 @@
"path-exists": "^4.0.0" "path-exists": "^4.0.0"
} }
}, },
"has-flag": {
"version": "4.0.0",
"resolved": "https://registry.npm.taobao.org/has-flag/download/has-flag-4.0.0.tgz",
"integrity": "sha1-lEdx/ZyByBJlxNaUGGDaBrtZR5s=",
"dev": true,
"optional": true
},
"loader-utils": {
"version": "2.0.0",
"resolved": "https://registry.nlark.com/loader-utils/download/loader-utils-2.0.0.tgz?cache=0&sync_timestamp=1618846812625&other_urls=https%3A%2F%2Fregistry.nlark.com%2Floader-utils%2Fdownload%2Floader-utils-2.0.0.tgz",
"integrity": "sha1-5MrOW4FtQloWa18JfhDNErNgZLA=",
"dev": true,
"optional": true,
"requires": {
"big.js": "^5.2.2",
"emojis-list": "^3.0.0",
"json5": "^2.1.2"
}
},
"locate-path": { "locate-path": {
"version": "5.0.0", "version": "5.0.0",
"resolved": "https://registry.npm.taobao.org/locate-path/download/locate-path-5.0.0.tgz", "resolved": "https://registry.npm.taobao.org/locate-path/download/locate-path-5.0.0.tgz",
...@@ -1898,16 +1841,6 @@ ...@@ -1898,16 +1841,6 @@
"minipass": "^3.1.1" "minipass": "^3.1.1"
} }
}, },
"supports-color": {
"version": "7.2.0",
"resolved": "https://registry.npm.taobao.org/supports-color/download/supports-color-7.2.0.tgz?cache=0&sync_timestamp=1618560983872&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fsupports-color%2Fdownload%2Fsupports-color-7.2.0.tgz",
"integrity": "sha1-G33NyzK4E4gBs+R4umpRyqiWSNo=",
"dev": true,
"optional": true,
"requires": {
"has-flag": "^4.0.0"
}
},
"terser-webpack-plugin": { "terser-webpack-plugin": {
"version": "2.3.8", "version": "2.3.8",
"resolved": "https://registry.npm.taobao.org/terser-webpack-plugin/download/terser-webpack-plugin-2.3.8.tgz?cache=0&sync_timestamp=1602701885709&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fterser-webpack-plugin%2Fdownload%2Fterser-webpack-plugin-2.3.8.tgz", "resolved": "https://registry.npm.taobao.org/terser-webpack-plugin/download/terser-webpack-plugin-2.3.8.tgz?cache=0&sync_timestamp=1602701885709&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fterser-webpack-plugin%2Fdownload%2Fterser-webpack-plugin-2.3.8.tgz",
...@@ -1924,18 +1857,6 @@ ...@@ -1924,18 +1857,6 @@
"terser": "^4.6.12", "terser": "^4.6.12",
"webpack-sources": "^1.4.3" "webpack-sources": "^1.4.3"
} }
},
"vue-loader-v16": {
"version": "npm:vue-loader@16.2.0",
"resolved": "https://registry.nlark.com/vue-loader/download/vue-loader-16.2.0.tgz",
"integrity": "sha1-BGpTMI3Ufljv4g3ewe3sAnzjtG4=",
"dev": true,
"optional": true,
"requires": {
"chalk": "^4.1.0",
"hash-sum": "^2.0.0",
"loader-utils": "^2.0.0"
}
} }
} }
}, },
...@@ -7781,6 +7702,11 @@ ...@@ -7781,6 +7702,11 @@
"minimist": "^1.2.5" "minimist": "^1.2.5"
} }
}, },
"moment": {
"version": "2.29.1",
"resolved": "https://registry.npm.taobao.org/moment/download/moment-2.29.1.tgz",
"integrity": "sha1-sr52n6MZQL6e7qZGnAdeNQBvo9M="
},
"move-concurrently": { "move-concurrently": {
"version": "1.0.1", "version": "1.0.1",
"resolved": "https://registry.npm.taobao.org/move-concurrently/download/move-concurrently-1.0.1.tgz", "resolved": "https://registry.npm.taobao.org/move-concurrently/download/move-concurrently-1.0.1.tgz",
...@@ -11938,6 +11864,11 @@ ...@@ -11938,6 +11864,11 @@
"integrity": "sha1-UylVzB6yCKPZkLOp+acFdGV+CPI=", "integrity": "sha1-UylVzB6yCKPZkLOp+acFdGV+CPI=",
"dev": true "dev": true
}, },
"vue-infinite-loading": {
"version": "2.4.5",
"resolved": "https://registry.nlark.com/vue-infinite-loading/download/vue-infinite-loading-2.4.5.tgz?cache=0&sync_timestamp=1625030403493&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fvue-infinite-loading%2Fdownload%2Fvue-infinite-loading-2.4.5.tgz",
"integrity": "sha1-zCD9QK9/IBiABkQ8mbYEcM8d4bM="
},
"vue-loader": { "vue-loader": {
"version": "15.9.3", "version": "15.9.3",
"resolved": "https://registry.npm.taobao.org/vue-loader/download/vue-loader-15.9.3.tgz?cache=0&sync_timestamp=1600850354305&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fvue-loader%2Fdownload%2Fvue-loader-15.9.3.tgz", "resolved": "https://registry.npm.taobao.org/vue-loader/download/vue-loader-15.9.3.tgz?cache=0&sync_timestamp=1600850354305&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fvue-loader%2Fdownload%2Fvue-loader-15.9.3.tgz",
...@@ -11959,6 +11890,87 @@ ...@@ -11959,6 +11890,87 @@
} }
} }
}, },
"vue-loader-v16": {
"version": "npm:vue-loader@16.5.0",
"resolved": "https://registry.nlark.com/vue-loader/download/vue-loader-16.5.0.tgz?cache=0&sync_timestamp=1628666753201&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fvue-loader%2Fdownload%2Fvue-loader-16.5.0.tgz",
"integrity": "sha1-CcTgcSRmiZ40uZpoZSTxkWX7KJI=",
"dev": true,
"optional": true,
"requires": {
"chalk": "^4.1.0",
"hash-sum": "^2.0.0",
"loader-utils": "^2.0.0"
},
"dependencies": {
"ansi-styles": {
"version": "4.3.0",
"resolved": "https://registry.nlark.com/ansi-styles/download/ansi-styles-4.3.0.tgz",
"integrity": "sha1-7dgDYornHATIWuegkG7a00tkiTc=",
"dev": true,
"optional": true,
"requires": {
"color-convert": "^2.0.1"
}
},
"chalk": {
"version": "4.1.2",
"resolved": "https://registry.nlark.com/chalk/download/chalk-4.1.2.tgz?cache=0&sync_timestamp=1627646697260&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fchalk%2Fdownload%2Fchalk-4.1.2.tgz",
"integrity": "sha1-qsTit3NKdAhnrrFr8CqtVWoeegE=",
"dev": true,
"optional": true,
"requires": {
"ansi-styles": "^4.1.0",
"supports-color": "^7.1.0"
}
},
"color-convert": {
"version": "2.0.1",
"resolved": "https://registry.npm.taobao.org/color-convert/download/color-convert-2.0.1.tgz",
"integrity": "sha1-ctOmjVmMm9s68q0ehPIdiWq9TeM=",
"dev": true,
"optional": true,
"requires": {
"color-name": "~1.1.4"
}
},
"color-name": {
"version": "1.1.4",
"resolved": "https://registry.nlark.com/color-name/download/color-name-1.1.4.tgz",
"integrity": "sha1-wqCah6y95pVD3m9j+jmVyCbFNqI=",
"dev": true,
"optional": true
},
"has-flag": {
"version": "4.0.0",
"resolved": "https://registry.nlark.com/has-flag/download/has-flag-4.0.0.tgz",
"integrity": "sha1-lEdx/ZyByBJlxNaUGGDaBrtZR5s=",
"dev": true,
"optional": true
},
"loader-utils": {
"version": "2.0.0",
"resolved": "https://registry.nlark.com/loader-utils/download/loader-utils-2.0.0.tgz?cache=0&sync_timestamp=1618846812625&other_urls=https%3A%2F%2Fregistry.nlark.com%2Floader-utils%2Fdownload%2Floader-utils-2.0.0.tgz",
"integrity": "sha1-5MrOW4FtQloWa18JfhDNErNgZLA=",
"dev": true,
"optional": true,
"requires": {
"big.js": "^5.2.2",
"emojis-list": "^3.0.0",
"json5": "^2.1.2"
}
},
"supports-color": {
"version": "7.2.0",
"resolved": "https://registry.nlark.com/supports-color/download/supports-color-7.2.0.tgz?cache=0&sync_timestamp=1626703414084&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fsupports-color%2Fdownload%2Fsupports-color-7.2.0.tgz",
"integrity": "sha1-G33NyzK4E4gBs+R4umpRyqiWSNo=",
"dev": true,
"optional": true,
"requires": {
"has-flag": "^4.0.0"
}
}
}
},
"vue-router": { "vue-router": {
"version": "3.4.6", "version": "3.4.6",
"resolved": "https://registry.npmjs.org/vue-router/-/vue-router-3.4.6.tgz", "resolved": "https://registry.npmjs.org/vue-router/-/vue-router-3.4.6.tgz",
......
...@@ -13,12 +13,14 @@ ...@@ -13,12 +13,14 @@
"clipboard": "^2.0.4", "clipboard": "^2.0.4",
"core-js": "^3.6.5", "core-js": "^3.6.5",
"element-ui": "^2.13.2", "element-ui": "^2.13.2",
"js-md5": "^0.7.3",
"lodash": "^4.17.10",
"moment": "^2.29.1",
"qs": "^6.10.0",
"vue": "^2.6.11", "vue": "^2.6.11",
"vue-infinite-loading": "^2.4.5",
"vue-router": "^3.4.6", "vue-router": "^3.4.6",
"vuex": "^3.5.1", "vuex": "^3.5.1"
"lodash": "^4.17.10",
"js-md5": "^0.7.3",
"qs": "^6.10.0"
}, },
"devDependencies": { "devDependencies": {
"@vue/cli-plugin-babel": "~4.5.0", "@vue/cli-plugin-babel": "~4.5.0",
......
...@@ -7,6 +7,8 @@ ...@@ -7,6 +7,8 @@
:close-on-click-modal="false" :close-on-click-modal="false"
:width="width" :width="width"
class="app-dialog" class="app-dialog"
:append-to-body="true"
:tabindex="1"
> >
<div class="container"> <div class="container">
<slot></slot> <slot></slot>
......
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
</template> </template>
<template v-else-if="item.type === 'daterange'"> <template v-else-if="item.type === 'daterange'">
<el-date-picker <el-date-picker
style="width: 100%;" :style="item.selectStyle || 'width: 100%;'"
v-model="formModel[item.prop]" v-model="formModel[item.prop]"
type="daterange" type="daterange"
range-separator="至" range-separator="至"
......
...@@ -11,6 +11,9 @@ import './core/public-path'; ...@@ -11,6 +11,9 @@ import './core/public-path';
import { Common } from '@/utils/common.js' import { Common } from '@/utils/common.js'
import Constants from '@/utils/constants.js' import Constants from '@/utils/constants.js'
import actions from '@/core/actions'; import actions from '@/core/actions';
import moment from 'moment'
window.moment = moment
// import axios from 'axios' // import axios from 'axios'
Vue.prototype.btn_size = 'mini' Vue.prototype.btn_size = 'mini'
Vue.prototype.$Common = Common Vue.prototype.$Common = Common
......
...@@ -42,6 +42,15 @@ const routes = [ ...@@ -42,6 +42,15 @@ const routes = [
} }
}, },
{ {
path: '/vehicleManage/vehicleList',
name: 'vehicleManage',
component: () => import('../views/vehicleManage/vehicleList.vue'),
meta: {
title: '列表',
keepAlive: true
}
},
{
path: '/vehicleSubmit', path: '/vehicleSubmit',
name: 'vehicleSubmit', name: 'vehicleSubmit',
component: () => import('../views/vehicleSubmit/index.vue'), component: () => import('../views/vehicleSubmit/index.vue'),
...@@ -79,6 +88,15 @@ const routes = [ ...@@ -79,6 +88,15 @@ const routes = [
} }
}, },
{ {
path: '/reportManage/outStore',
name: 'outStore',
component: () => import('../views/reportManage/outStore.vue'),
meta: {
title: '无在店统计',
keepAlive: true
}
},
{
path: '/specialShop', path: '/specialShop',
name: 'specialShop', name: 'specialShop',
component: () => import('../views/specialShop/index.vue'), component: () => import('../views/specialShop/index.vue'),
......
...@@ -25,4 +25,8 @@ function getSimpleList (params) { ...@@ -25,4 +25,8 @@ function getSimpleList (params) {
return request(params, url) return request(params, url)
} }
export { getProvinceList, dictInfo, getSimpleRoot, getSimpleList } function getOrgTree(params) {
return request(params, '/usercenter/organization/orgtree')
}
export { getProvinceList, dictInfo, getSimpleRoot, getSimpleList, getOrgTree }
...@@ -13,4 +13,8 @@ function getYears (params) { ...@@ -13,4 +13,8 @@ function getYears (params) {
return request(params, url) return request(params, url)
} }
export { getList, getYears } function getOutStoreList (params) {
return request(params, '/trialdrive/notinstorereport/search')
}
export { getList, getYears, getOutStoreList }
import { VEHICLE_API } from '@/config/config' import { VEHICLE_API } from "@/config/config";
import request from '@/services/request' import request from "@/services/request";
// 获取车辆列表 // 获取车辆列表
function getList (params) { function getList(params) {
const url = VEHICLE_API.VEHICLE_SEARCH const url = VEHICLE_API.VEHICLE_SEARCH;
return request(params, url) return request(params, url);
} }
/*特约店列表*/ /*特约店列表*/
function getSpecialShopList (params) { function getSpecialShopList(params) {
const url = VEHICLE_API.SPECIAL_SHOP_LIST const url = VEHICLE_API.SPECIAL_SHOP_LIST;
return request(params, url) return request(params, url);
} }
// 新增车辆 // 新增车辆
function addVehicle (params) { function addVehicle(params) {
const url = VEHICLE_API.VEHICLE_ADD const url = VEHICLE_API.VEHICLE_ADD;
return request(params, url, 'post') return request(params, url, "post");
} }
// 编辑车辆 // 编辑车辆
function editVehicle (params) { function editVehicle(params) {
const url = VEHICLE_API.VEHICLE_EDIT const url = VEHICLE_API.VEHICLE_EDIT;
return request(params, url, 'post') return request(params, url, "post");
} }
// 解绑车辆 // 解绑车辆
function infoVehicle (params) { function infoVehicle(params) {
const url = VEHICLE_API.VEHICLE_INFO const url = VEHICLE_API.VEHICLE_INFO;
return request(params, url) return request(params, url);
} }
// 批量删除车辆 // 批量删除车辆
function deleteVehicle (params) { function deleteVehicle(params) {
const url = VEHICLE_API.VEHICLE_DELETE const url = VEHICLE_API.VEHICLE_DELETE;
return request(params, url) return request(params, url);
} }
// 解绑车辆 // 解绑车辆
function unbindVehicle (params) { function unbindVehicle(params) {
const url = VEHICLE_API.VEHICLE_UNBIND const url = VEHICLE_API.VEHICLE_UNBIND;
return request(params, url) return request(params, url);
} }
// 下载模板 // 下载模板
function downloadtemplate (params) { function downloadtemplate(params) {
const url = VEHICLE_API.DOWNLOAD_TEMPLATE const url = VEHICLE_API.DOWNLOAD_TEMPLATE;
return request(params, url) return request(params, url);
} }
// 导入车辆 // 导入车辆
function importVehicle (params) { function importVehicle(params) {
const url = VEHICLE_API.VEHICLE_IMPORT const url = VEHICLE_API.VEHICLE_IMPORT;
return request(params, url, 'post') return request(params, url, "post");
} }
// 导出车辆 // 导出车辆
function exportVehicle (params) { function exportVehicle(params) {
const url = VEHICLE_API.VEHICLE_EXPORT const url = VEHICLE_API.VEHICLE_EXPORT;
return request(params, url) return request(params, url);
} }
// 获取车型数据 // 获取车型数据
function GETVEHICLETREE (params) { function GETVEHICLETREE(params) {
const url = VEHICLE_API.VEHICLE_TREE const url = VEHICLE_API.VEHICLE_TREE;
return request(params, url) return request(params, url);
} }
export { getList, getSpecialShopList, addVehicle, downloadtemplate, editVehicle, deleteVehicle, unbindVehicle, importVehicle, exportVehicle, infoVehicle,GETVEHICLETREE } function getVehicleList(params) {
return request(params, '/trialdrive/vehicle/vehicleinfo/search');
}
function checkSn(params) {
return request(params, '/trialdrive/vehicle/vehicleinfo/getclassifynamebysn');
}
function verifydevice(params) {
return request(params, '/trialdrive/vehicle/vehicleinfo/verifydevice');
}
function addNewVehicle(params) {
return request(params, '/trialdrive/vehicle/vehicleinfo/save', "post");
}
function updateNewVehicle(params) {
return request(params, '/trialdrive/vehicle/vehicleinfo/update', "post");
}
function getVehicleInfo(params) {
return request(params, '/trialdrive/vehicle/vehicleinfo/findone');
}
function deleteNewVehicle(params) {
return request(params, '/trialdrive/vehicle/vehicleinfo/delete');
}
function adjFreq(params) {
return request(params, '/trialdrive/vehicle/adjFreq', "post");
}
function listtestdrive(params) {
return request(params, '/trialdrive/vehicle/drivevehicle/listtestdrive');
}
function addtestdrive(params) {
return request(params, '/trialdrive/vehicle/drivevehicle/addtestdrive', "post");
}
export {
getList,
getSpecialShopList,
addVehicle,
downloadtemplate,
editVehicle,
deleteVehicle,
unbindVehicle,
importVehicle,
exportVehicle,
infoVehicle,
GETVEHICLETREE,
getVehicleList,
checkSn,
verifydevice,
addNewVehicle,
getVehicleInfo,
adjFreq,
listtestdrive,
addtestdrive,
deleteNewVehicle,
updateNewVehicle,
};
<template>
<div class="system-container">
<div class="container">
<h1>无在店统计</h1>
<div class="m-b-md">统计车辆在店情况,以自然日为时间单位判断车辆在店情况,统计报表中有数值代表车辆不在店</div>
<search-form
class="searchTop border-shadow"
:formModel="searchForm"
:formList="reportFormList"
>
<span
class="inline-b"
slot="form-slot"
>
<el-button
type="primary"
:size="btn_size"
icon="el-icon-search"
:id="reportTableParams.btnId"
>搜索</el-button>
<el-button
type="primary"
:size="btn_size"
icon="el-icon-refresh"
@click="refresh"
>重置</el-button>
</span>
</search-form>
<h3>
无在店信息
<el-button
class="pull-right"
type="primary"
:size="btn_size"
@click="btnClick('export')"
>导出Excel</el-button>
</h3>
<basic-table
ref="reportTable"
:tableParams="reportTableParams"
:beforeSearchFn="beforeSearchFn"
:searchForm="searchDataForm"
:getListApi="getListApi"
:hasNum="false"
>
</basic-table>
</div>
</div>
</template>
<script>
import { REPORT_API } from '@/config/config'
import store from '@/store'
import { getOutStoreList, getYears } from 'services/report'
export default {
data() {
const _this = this
return {
searchDataForm: {},
searchForm: {},
reportFormList: [
{
type: 'input',
inputType: 'text',
prop: 'keywords',
placeholder: '特约店编码|店名称|车架号|车型',
},
{
type: 'singleDate',
dateType: 'month',
prop: 'date',
placeholder: '请选择年月',
pickerOptions: {
disabledDate(time) {
return time.getTime() < new Date(_this.date).getTime()
}
}
}
],
reportTableParams: {
btnId: new Date().getTime() + parseInt(Math.random() * 1000),
listName: 'list',
tableOption: false,
tableColumns: [
{
label: '特约店编码',
prop: 'shopCode'
}, {
label: '特约店名称',
prop: 'shopName'
}, {
label: '车型',
prop: 'modelName'
}, {
label: '车架号VIN码',
prop: 'vin',
width: 120
}, {
label: '时间',
prop: 'statDate'
}
]
},
getListApi: getOutStoreList,
date: ''
}
},
mounted() {
getYears({}).then(res => {
console.log(res.data[0])
this.date = `${res.data[0]}-01-01`
})
for (let i = 1; i <= 31; i++) {
this.reportTableParams.tableColumns.push({
label: `${i}日`,
prop: `dayNum${i}`
})
if (i == 31) {
this.reportTableParams.tableColumns.push({
label: '总计',
prop: 'summation'
})
}
}
},
methods: {
refresh() {
this.searchForm = {}
this.searchDataForm = {}
this.$refs.reportTable.refreshTable()
},
beforeSearchFn() {
return new Promise((resolve, reject) => {
console.log(this.searchForm.date)
if (this.searchForm.date) {
this.searchDataForm.year = this.searchForm.date.split('-')[0]
this.searchDataForm.month = this.searchForm.date.split('-')[1]
} else {
this.searchDataForm.year = ''
this.searchDataForm.month = ''
}
this.searchDataForm.keywords = this.searchForm.keywords
resolve()
})
},
btnClick(type, scope) {
this.$Common.exportExcel({
url: `${store.state.baseURL}${REPORT_API.REPORT_EXPORT}`,
method: 'GET',
data: this.searchDataForm,
fileName: '导出报表Excel'
})
}
},
}
</script>
<style>
</style>
\ No newline at end of file \ No newline at end of file
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
<basic-table ref="vehicleForm" :tableParams="vehicleTableParams" :getListApi="getListApi" :searchForm="searchForm" @dataFinished="tableDataFinished" :hasNum="false"> <basic-table ref="vehicleForm" :tableParams="vehicleTableParams" :getListApi="getListApi" :searchForm="searchForm" @dataFinished="tableDataFinished" :hasNum="false">
<span slot="table-button" slot-scope="scope"> <span slot="table-button" slot-scope="scope">
<el-button v-for="(j, idx) in vehicleTableParams.tableOption.btnList" :key="idx" :type="j.type || 'text'" size="mini" plain @click="btnClick(j.pType, scope.scope)">{{j.name}}</el-button> <el-button v-for="(j, idx) in vehicleTableParams.tableOption.btnList" :key="idx" :type="j.type || 'text'" size="mini" plain @click="btnClick(j.pType, scope.scope)">{{j.name}}</el-button>
<el-button v-if="scope.scope.sns" type="text" size="mini" @click="btnClick('unbind', scope.scope)">解绑</el-button> <!-- <el-button v-if="scope.scope.sns" type="text" size="mini" @click="btnClick('unbind', scope.scope)">解绑</el-button> -->
</span> </span>
</basic-table> </basic-table>
<basic-dialog :title="vehicleTitle" :isVisible="vehicleVisible" :hasOk="vehicleHasOk" @confirmDialog="handleConfirm('create')" @closeDialog="handleClose('create')"> <basic-dialog :title="vehicleTitle" :isVisible="vehicleVisible" :hasOk="vehicleHasOk" @confirmDialog="handleConfirm('create')" @closeDialog="handleClose('create')">
...@@ -58,6 +58,14 @@ ...@@ -58,6 +58,14 @@
</div> </div>
</slot> </slot>
</basic-dialog> </basic-dialog>
<user-list
:userData="userArr"
@onUpdateUserData="updateUserData"
:userListModalVisible="userListModalVisible"
@onUserListModalChange="userListModalChange"
ref="userList">
</user-list>
</div> </div>
</div> </div>
</template> </template>
...@@ -68,6 +76,7 @@ import axios from "axios"; ...@@ -68,6 +76,7 @@ import axios from "axios";
import { dictInfo } from "services/common"; import { dictInfo } from "services/common";
import { VEHICLE_API } from "@/config/config"; import { VEHICLE_API } from "@/config/config";
import store from "@/store"; import store from "@/store";
import userList from './userList'
import { import {
getList, getList,
getSpecialShopList, getSpecialShopList,
...@@ -80,6 +89,8 @@ import { ...@@ -80,6 +89,8 @@ import {
exportVehicle, exportVehicle,
infoVehicle, infoVehicle,
GETVEHICLETREE, GETVEHICLETREE,
listtestdrive,
addtestdrive,
} from "services/vehicle"; } from "services/vehicle";
export default { export default {
data() { data() {
...@@ -97,7 +108,7 @@ export default { ...@@ -97,7 +108,7 @@ export default {
type: "input", type: "input",
inputType: "text", inputType: "text",
prop: "searchKey", prop: "searchKey",
placeholder: "特约店编码|店名称|车架号|设备号|车系", placeholder: "特约店编码|店名称|车架号|设备号|车型",
}, },
], ],
vehicleTableParams: { vehicleTableParams: {
...@@ -192,22 +203,23 @@ export default { ...@@ -192,22 +203,23 @@ export default {
authList: [ authList: [
{ {
id: 1, id: 1,
name: "新增车辆", name: "选择试驾车辆",
type: "primary", type: "primary",
pType: "create", pType: "chooseVehicle",
}, },
{ /* {
id: 2, id: 2,
name: "车辆导入", name: "车辆导入",
type: "default", type: "default",
pType: "import", pType: "import",
}, }, */
{ {
id: 3, id: 3,
name: "导出Excel", name: "导出Excel",
type: "default", type: "default",
pType: "export", pType: "export",
}, },
], ],
// 弹窗 // 弹窗
vehicleHasOk: true, vehicleHasOk: true,
...@@ -388,6 +400,9 @@ export default { ...@@ -388,6 +400,9 @@ export default {
// 新增车辆-车型数据 // 新增车辆-车型数据
vehicleList: [], vehicleList: [],
loading: false, loading: false,
userArr:[],
userData:[],
userListModalVisible: false,
}; };
}, },
watch: { watch: {
...@@ -409,9 +424,28 @@ export default { ...@@ -409,9 +424,28 @@ export default {
// this.vehicleDefalutData.find((item) => item.prop == "configId").options = // this.vehicleDefalutData.find((item) => item.prop == "configId").options =
// res.data; // res.data;
}); });
listtestdrive().then((res)=>{})
}, },
methods: { methods: {
updateUserData(data){
//this.userArr = data;
//this.tableData = data;
console.log(data)
addtestdrive({testDriveData: data.map((item)=>{
return {
id: item.id,
sn: item.sns.join(',')
}
})}).then((res)=>{
})
},
userListModalChange(isOpen){
this.userListModalVisible = isOpen;
},
tableDataFinished() { tableDataFinished() {
this.$nextTick(() => { this.$nextTick(() => {
this.$root.parentCommon.setAuthBtn(); this.$root.parentCommon.setAuthBtn();
...@@ -561,6 +595,10 @@ export default { ...@@ -561,6 +595,10 @@ export default {
data: this.searchForm, data: this.searchForm,
}); });
break; break;
case "chooseVehicle":
this.userListModalVisible = true
break;
} }
}, },
handleConfirm(type) { handleConfirm(type) {
...@@ -869,5 +907,8 @@ export default { ...@@ -869,5 +907,8 @@ export default {
} }
}, },
components: {
userList
}
}; };
</script> </script>
\ No newline at end of file \ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!