Commit 6de175ef by 王志慧

Merge branch 'wangzh_dev_v4.17.0' into 'wangql_dev_v4.17.0'

Wangzh dev v4.17.0

See merge request !93
2 parents d8e9a956 2580c671
import request from "./request2"
import requestCommon from "./request3"
const defaultPath = 'scrm.api.shopmall.'
const getListApi = data => {
data.method = `${defaultPath}order.noSessionPage`
return request(data)
}
const getCountApi = data => {
data.method = `${defaultPath}order.noSessionCount`
return request(data)
}
const getOrderDetailApi = data => {
data.method = `${defaultPath}order.noSessionDetail`
return request(data)
}
/**营销状态设为已完结 */
const finishOrderStatus = data => {
data.method = 'scrm.api.shopmall.weapp.order.status.finish.nosession'
return request(data)
}
const orderExportApi = data => {
data.method = `${defaultPath}order.export`
return request(data)
}
const pictureUpload = data => {
data.method = 'glsx.accounts.biz.common.pictureUpload'
return requestCommon(data)
}
// 导入对账单
const orderEndExportApi = data => {
console.log(data, 'data')
data.method = `${defaultPath}order.orderEndExport`
return request(data)
}
/**获取众筹活动名称&门店 */
const getCrowdfundingParams = data => {
data.method = 'scrm.api.shopmall.crowdfunding.activity.parameter.list'
/**1秒杀 2直播间活动 3众筹 4膨胀金 */
data.marketingType = 3
return request(data)
}
export default { pictureUpload, getCrowdfundingParams, orderEndExportApi, getListApi, getCountApi, getOrderDetailApi, orderExportApi, finishOrderStatus }
/*
* @Author: limin
* @Date: 2019-08-26 18:02:41
* @Last Modified by: chenwq
* @Last Modified time: 2021-06-30 14:30:41
*/
import axios from '@/plugin/axios'
import sign from './sign'
import RequestMethods from './request.methods'
import util from '@/libs/util.js'
import { baseConfig } from '@/main'
const request = (
params = {},
method = RequestMethods.GET,
noSignAttr = [],
options
) => {
// console.log(baseConfig)
// params.source = 'glsx'
// params.appKey = 'd7ffc3346fc9a45bccaaa35300d59022'
params.appKey = baseConfig?.axios2?.appkey
// clg
// console.log(params.appKey)
// params.appKey = window.location.href.includes('dj.glsx.com.cn')
// ? 'd7ffc3346fc9a45bccaaa35300d59022'
// : '48e5e13229b82c1b4e6e8c96151f0637'
params.timestamp = new Date().getTime()
params.v = '1.0.0'
params.format = 'json'
params.locale = 'zh_CN'
// if (params.method !== 'dj.api.user.login') {
// params.sessionId = util.cookies.get('token')
// }
/**
* mock - url = params.method
* 调后端接口 - url = ''
*/
const url = params.method
// console.log(url)
/**
* 调后端接口,请使用以下代码。
*/
//
var reqData =
// baseURL: process.env.VUE_APP_API + '?method=' + params.method,
method === RequestMethods.POST
? { baseURL: '/', data: sign(params, noSignAttr) }
: { params: sign(params, noSignAttr) }
reqData = reqData = Object.assign(reqData, options, {})
return axios({
url,
method,
...reqData,
isPoint:true
})
/**
* mock,请使用以下代码。
*/
// return axios({
// url,
// method,
// params: sign(params, noSignAttr)
// })
}
export default request
/*
* @Author: limin
* @Date: 2019-08-26 18:02:41
* @Last Modified by: chenwq
* @Last Modified time: 2021-06-30 14:30:41
*/
import axios from '@/plugin/axios'
import sign from './sign'
import RequestMethods from './request.methods'
import util from '@/libs/util.js'
import { baseConfig } from '@/main'
const request = (
params = {},
method = RequestMethods.POST,
noSignAttr = ['file'],
options
) => {
// console.log(baseConfig)
// params.source = 'glsx'
// params.appKey = 'd7ffc3346fc9a45bccaaa35300d59022'
params.appKey = baseConfig?.common?.appkey
// clg
// console.log(params.appKey)
// params.appKey = window.location.href.includes('dj.glsx.com.cn')
// ? 'd7ffc3346fc9a45bccaaa35300d59022'
// : '48e5e13229b82c1b4e6e8c96151f0637'
params.timestamp = new Date().getTime()
params.v = '1.0.0'
params.format = 'json'
params.locale = 'zh_CN'
// if (params.method !== 'dj.api.user.login') {
// params.sessionId = util.cookies.get('token')
// }
/**
* mock - url = params.method
* 调后端接口 - url = ''
*/
const url = params.method
// console.log(url)
/**
* 调后端接口,请使用以下代码。
*/
//
var reqData =
// baseURL: process.env.VUE_APP_API + '?method=' + params.method,
method === RequestMethods.POST
? { baseURL: '/', data: sign(params, noSignAttr) }
: { params: sign(params, noSignAttr) }
reqData = reqData = Object.assign(reqData, options, {})
return axios({
url,
method,
...reqData,
isCommon: true
})
/**
* mock,请使用以下代码。
*/
// return axios({
// url,
// method,
// params: sign(params, noSignAttr)
// })
}
export default request
import request from './request'
const path = 'dj.api.smartcarlife.'
// 车损权益规则分页列表
export function getList(data) {
data.method = `${path}vdrule.page`
return request(data)
}
// 车损权益规则新增/编辑
export function insertorUpdate(data) {
data.method = `${path}vdrule.insertorupdate`
return request(data)
}
// 车损权益规则查看
export function quotationDetail(data) {
data.method = `${path}vdrule.detail`
return request(data)
}
// 车损权益规则导出
export function vdruleExport(data) {
data.method = `${path}vdrule.export`
return request(data)
}
import request from './request'
const path = 'dj.api.quotation.smartcarlife.'
// 分页列表
export function getList(data) {
data.method = `${path}quotation.page`
return request(data)
}
// 详情
export function quotationDetail(data) {
data.method = `${path}quotation.detail`
return request(data)
}
// 打印,返回报价单图片url
export function quotationPrint(data) {
data.method = `${path}quotation.print`
return request(data)
}
// 打印,返回报价单图片url
export function quotationExport(data) {
data.method = `${path}quotation.export`
return request(data)
}
\ No newline at end of file
......@@ -238,6 +238,54 @@ ul li {
margin: 0;
list-style: none;
}
.flex-align {
display: flex;
align-items: center;
justify-content: center;
}
.img-36 {
width: 36px;
height: 36px;
}
.pointer {
cursor: pointer;
}
.img-circle {
border-radius: 50%;
}
.m-b-20 {
margin-bottom: 20px;
}
.p-l-40 {
padding-left: 40px;
}
.img-60 {
width: 60px;
height: 60px;
}
.grey {
background-color: #999999;
}
.txt-green {
color: #61cc43;
}
.txt-orange {
color: #fb8f28;
}
.txt-blue {
color: #5850ff;
}
.txt-grey {
color: #999999;
}
.text-e8 {
color: #eb4e4e !important;
}
/* 以下两个修改箭头颜色 */
// .el-tooltip__popper[x-placement^='top'] .popper__arrow {
// border-top-color: #505050;
......
<!-- 弹窗 -->
<template>
<div>
<el-dialog :title="title"
:visible.sync="isVisible"
:show-close="showClose"
:before-close="handleClose"
:close-on-click-modal="false"
:width="width">
<el-dialog
:title="title"
:visible.sync="isVisible"
:show-close="showClose"
:before-close="handleClose"
:close-on-click-modal="false"
:width="width"
>
<span slot="title">
{{ title }}
<span class="dialog-sub-title">
......@@ -16,15 +18,15 @@
<slot />
<div slot="footer">
<slot name="btn-start" />
<el-button type="primary"
@click="handleConfirm"
:loading="$store.state.d2admin.loading.value">
<el-button
type="primary"
v-if="isShowFooter"
@click="handleConfirm"
:loading="$store.state.d2admin.loading.value"
>
{{ btnOkLabel }}
</el-button>
<el-button v-if="!noCancel"
@click="handleClose">
取消
</el-button>
<el-button v-if="!noCancel" @click="handleClose"> 取消 </el-button>
<slot name="btn-middle" />
</div>
</el-dialog>
......@@ -33,15 +35,14 @@
<script>
export default {
name: 'D2Dialog',
name: "D2Dialog",
data() {
return {
}
return {}
},
props: {
title: {
type: String,
default: ''
default: ""
},
isVisible: {
type: Boolean,
......@@ -53,7 +54,7 @@ export default {
},
btnOkLabel: {
type: String,
default: '确定'
default: "确定"
},
noCancel: {
type: Boolean,
......@@ -61,20 +62,23 @@ export default {
},
width: {
type: String,
default: '580px'
default: "580px"
},
isShowFooter: {
type: Boolean,
default: true
}
},
methods: {
handleClose() {
this.$emit('closeDialog')
this.$emit("closeDialog")
},
handleConfirm() {
this.$emit('confirmDialog')
this.$emit("confirmDialog")
}
}
}
</script>
<style scoped>
.dialog-sub-title {
......
......@@ -71,7 +71,7 @@ service.interceptors.request.use(
// config.url = baseConfig.axios.baseURL + config.url
// console.log(config.data.method.includes('dj.api.common.uploadImg'))
// console.log(config)
// console.log(config, 'config')
// console.log(Object.prototype.toString.call(config.data))
// console.log(config.data.method)
if (process.env.NODE_ENV == "development") {
......@@ -88,7 +88,14 @@ service.interceptors.request.use(
) {
config.url = "http://dj.test.glsx.com.cn/rop-dj-smartcarlife/router"
} else {
config.url = baseConfig.axios.baseURL
if (config.isPoint) {
config.url = baseConfig.axios2.baseURL
} else if(config.isCommon){
config.url = baseConfig.common.baseURL
}else {
config.url = baseConfig.axios.baseURL
}
}
} else {
config.url = baseConfig.axios.baseURL
......
......@@ -18,8 +18,8 @@
</div>
<div class="d2-container-content">
<d2-table-header>
<!-- <span slot="left">累计订单金额:¥{{ totalCount }}元</span> -->
<!-- <el-button
<span slot="left">累计订单金额:¥{{ totalCount }}元</span>
<el-button
type="primary"
size="mini"
class="orderTips"
......@@ -29,13 +29,13 @@
>
待补录订单
<span class="tipsNum" v-show="waitOrderNum">{{ waitOrderNum }}</span>
</el-button> -->
</el-button>
<!-- @click="downloadAccount" -->
<!-- <auth-button category="Button"></auth-button> -->
<!-- <auth-button :showBtnIds="['9040104']"
class="p-r-20"
category="Button"></auth-button> -->
<!-- <auth-button :show-btn-ids="['9040101']" category="Button" /> -->
<auth-button :show-btn-ids="['9040101', '9040104']" category="Button" />
</d2-table-header>
<el-table
:data="tableData"
......@@ -81,6 +81,59 @@
prop="paySuccessDate"
/>
<el-table-column label="客户姓名" align="center" prop="customerName" />
<el-table-column label="客户性别" align="center" prop="customerSex">
<template slot-scope="scope">
<span>{{ scope.row.customerSex == 1 ? "男" : "女" }}</span>
</template>
</el-table-column>
<!-- <el-table-column label="客户手机号"
align="center"
width="150"
prop="customerPhone" /> -->
<el-table-column
label="客户车型"
align="center"
width="200"
prop="carTypeName"
>
<template slot-scope="scope">
<span v-show="scope.row.carBrand">{{ scope.row.carBrand }}</span>
<span v-show="scope.row.carChildsBrandName"
>-{{ scope.row.carChildsBrandName }}</span
>
<span v-show="scope.row.carSeriesName"
>-{{ scope.row.carSeriesName }}</span
>
</template>
</el-table-column>
<el-table-column
label="客户车牌号"
align="center"
width="110"
prop="plateNumber"
/>
<!-- <el-table-column label="客户车架号"
align="center"
width="150"
prop="standNo" /> -->
<el-table-column label="升级状态" align="center" prop="upgradeFlag">
<template slot-scope="scope">
<span>{{
scope.row.upgradeFlag
? upgradeOpts[scope.row.upgradeFlag]
: "待升级"
}}</span>
</template>
</el-table-column>
<el-table-column label="施工状态" align="center" prop="upgradeFlag">
<template slot-scope="scope">
<span>{{
scope.row.constructionFlag
? constructioOpts[scope.row.constructionFlag]
: "未施工"
}}</span>
</template>
</el-table-column>
<el-table-column label="订单状态" align="center" prop="status">
<template slot-scope="scope">
<span>{{ statusOpts[scope.row.status] }}</span>
......@@ -100,11 +153,7 @@
</span>
</template>
</el-table-column>
<el-table-column
label="建议销售价/元"
align="center"
prop="subOrderList"
>
<el-table-column label="商品单价" align="center" prop="subOrderList">
<template slot-scope="scope">
<span v-for="(item, index) in scope.row.subOrderList" :key="index">
<p v-if="item.upgradeGoodsId">¥ {{ item.totalPrice }}</p>
......@@ -113,16 +162,86 @@
</span>
</template>
</el-table-column>
<el-table-column label="实际销售价/元" align="center" prop="totalPrice">
<el-table-column label="总价" align="center" prop="totalPrice">
<template slot-scope="scope">
<span>¥ {{ scope.row.totalPrice }}</span>
</template>
</el-table-column>
<el-table-column
prop="upgradeWarrantyPeriod"
align="center"
label="质保年限"
>
<template slot-scope="scope">
<span v-for="(item, index) in scope.row.subOrderList" :key="index">
<p>
{{
item.upgradeWarrantyPeriod
? item.upgradeWarrantyPeriod + "年"
: "无"
}}
</p>
</span>
</template>
</el-table-column>
<!-- <el-table-column label="4s店"
align="center"
width="170"
prop="merchantName" /> -->
<el-table-column
label="流量方"
align="center"
width="170"
prop="merchantName"
/>
<el-table-column
label="二级流量方"
align="center"
width="170"
prop="merchantName"
>
<template slot-scope="scope">
<span>{{ scope.row.subShopMerchantName || "-" }}</span>
</template>
</el-table-column>
<!-- <el-table-column label="园区店" -->
<el-table-column
label="服务对接"
align="center"
width="170"
prop="sellerMerchantName"
/>
<el-table-column
label="安装服务商"
align="center"
width="170"
prop="installMerchantName"
/>
<el-table-column
label="营销服务商"
align="center"
width="170"
prop="marketingMerchantName"
/>
<el-table-column label="销售顾问" align="center" prop="employeeName" />
<el-table-column label="转化人员" align="center" prop="sellerName" />
<el-table-column label="推荐人员" align="center" prop="sellerName" />
<el-table-column
v-if="!specialAccout"
label="订单来源"
align="center"
prop="source"
>
<template slot-scope="scope">
<span>{{ scope.row.source == 7 ? "系统导入" : "小程序订单" }}</span>
</template>
</el-table-column>
<el-table-column label="操作" align="center" fixed="right">
<template slot-scope="scope">
<auth-button :data="scope" />
<auth-button
slot="auth-button"
:show-btn-ids="['9040102']"
:data="scope.row"
/>
</template>
</el-table-column>
</el-table>
......@@ -379,6 +498,7 @@ export default {
}
],
searchForm: {
sceneType: 0,
status: "",
upgradeFinishFlag: "",
customerName: "",
......@@ -642,6 +762,7 @@ export default {
},
handleReset() {
this.searchForm = {
sceneType: 1,
status: "",
upgradeFinishFlag: "",
customerName: "",
......
......@@ -237,9 +237,11 @@
</el-table-column>
<el-table-column label="操作" align="center" fixed="right">
<template slot-scope="scope">
<auth-button slot="auth-button"
:show-btn-ids="['9040102']"
:data="scope.row" />
<auth-button
slot="auth-button"
:show-btn-ids="['9040102']"
:data="scope.row"
/>
</template>
</el-table-column>
</el-table>
......@@ -496,6 +498,7 @@ export default {
}
],
searchForm: {
sceneType: 1,
status: "",
upgradeFinishFlag: "",
customerName: "",
......@@ -723,7 +726,6 @@ export default {
file: this.fileInfo
}
orderImport(params).then((res) => {
// console.log(res)
if (res) {
// 异步处理文件上传 把id传入处理轮询
const list = [
......@@ -759,6 +761,7 @@ export default {
},
handleReset() {
this.searchForm = {
sceneType: 1,
status: "",
upgradeFinishFlag: "",
customerName: "",
......@@ -983,8 +986,8 @@ export default {
.p-r-20 {
margin-right: 20px;
}
.m-t-40{
margin-top:40px;
.m-t-40 {
margin-top: 40px;
}
.order-list .m-l-md {
margin-left: 20px;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!