Commit 61e9a9df by 王志慧

权益配置 车损报价单开发

1 parent b310467e
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 \ No newline at end of file
...@@ -238,6 +238,54 @@ ul li { ...@@ -238,6 +238,54 @@ ul li {
margin: 0; margin: 0;
list-style: none; 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 { // .el-tooltip__popper[x-placement^='top'] .popper__arrow {
// border-top-color: #505050; // border-top-color: #505050;
......
<!-- 弹窗 --> <!-- 弹窗 -->
<template> <template>
<div> <div>
<el-dialog :title="title" <el-dialog
:title="title"
:visible.sync="isVisible" :visible.sync="isVisible"
:show-close="showClose" :show-close="showClose"
:before-close="handleClose" :before-close="handleClose"
:close-on-click-modal="false" :close-on-click-modal="false"
:width="width"> :width="width"
>
<span slot="title"> <span slot="title">
{{ title }} {{ title }}
<span class="dialog-sub-title"> <span class="dialog-sub-title">
...@@ -16,15 +18,15 @@ ...@@ -16,15 +18,15 @@
<slot /> <slot />
<div slot="footer"> <div slot="footer">
<slot name="btn-start" /> <slot name="btn-start" />
<el-button type="primary" <el-button
type="primary"
v-if="isShowFooter"
@click="handleConfirm" @click="handleConfirm"
:loading="$store.state.d2admin.loading.value"> :loading="$store.state.d2admin.loading.value"
>
{{ btnOkLabel }} {{ btnOkLabel }}
</el-button> </el-button>
<el-button v-if="!noCancel" <el-button v-if="!noCancel" @click="handleClose"> 取消 </el-button>
@click="handleClose">
取消
</el-button>
<slot name="btn-middle" /> <slot name="btn-middle" />
</div> </div>
</el-dialog> </el-dialog>
...@@ -33,15 +35,14 @@ ...@@ -33,15 +35,14 @@
<script> <script>
export default { export default {
name: 'D2Dialog', name: "D2Dialog",
data() { data() {
return { return {}
}
}, },
props: { props: {
title: { title: {
type: String, type: String,
default: '' default: ""
}, },
isVisible: { isVisible: {
type: Boolean, type: Boolean,
...@@ -53,7 +54,7 @@ export default { ...@@ -53,7 +54,7 @@ export default {
}, },
btnOkLabel: { btnOkLabel: {
type: String, type: String,
default: '确定' default: "确定"
}, },
noCancel: { noCancel: {
type: Boolean, type: Boolean,
...@@ -61,20 +62,23 @@ export default { ...@@ -61,20 +62,23 @@ export default {
}, },
width: { width: {
type: String, type: String,
default: '580px' default: "580px"
},
isShowFooter: {
type: Boolean,
default: true
} }
}, },
methods: { methods: {
handleClose() { handleClose() {
this.$emit('closeDialog') this.$emit("closeDialog")
}, },
handleConfirm() { handleConfirm() {
this.$emit('confirmDialog') this.$emit("confirmDialog")
} }
} }
} }
</script> </script>
<style scoped> <style scoped>
.dialog-sub-title { .dialog-sub-title {
......
...@@ -71,7 +71,7 @@ service.interceptors.request.use( ...@@ -71,7 +71,7 @@ service.interceptors.request.use(
// config.url = baseConfig.axios.baseURL + config.url // config.url = baseConfig.axios.baseURL + config.url
// console.log(config.data.method.includes('dj.api.common.uploadImg')) // 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(Object.prototype.toString.call(config.data))
// console.log(config.data.method) // console.log(config.data.method)
if (process.env.NODE_ENV == "development") { if (process.env.NODE_ENV == "development") {
...@@ -88,8 +88,15 @@ service.interceptors.request.use( ...@@ -88,8 +88,15 @@ service.interceptors.request.use(
) { ) {
config.url = "http://dj.test.glsx.com.cn/rop-dj-smartcarlife/router" config.url = "http://dj.test.glsx.com.cn/rop-dj-smartcarlife/router"
} else { } else {
if (config.isPoint) {
config.url = baseConfig.axios2.baseURL
} else if(config.isCommon){
config.url = baseConfig.common.baseURL
}else {
config.url = baseConfig.axios.baseURL config.url = baseConfig.axios.baseURL
} }
}
} else { } else {
config.url = baseConfig.axios.baseURL config.url = baseConfig.axios.baseURL
} }
......
...@@ -237,9 +237,11 @@ ...@@ -237,9 +237,11 @@
</el-table-column> </el-table-column>
<el-table-column label="操作" align="center" fixed="right"> <el-table-column label="操作" align="center" fixed="right">
<template slot-scope="scope"> <template slot-scope="scope">
<auth-button slot="auth-button" <auth-button
slot="auth-button"
:show-btn-ids="['9040102']" :show-btn-ids="['9040102']"
:data="scope.row" /> :data="scope.row"
/>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
...@@ -496,6 +498,7 @@ export default { ...@@ -496,6 +498,7 @@ export default {
} }
], ],
searchForm: { searchForm: {
sceneType: 1,
status: "", status: "",
upgradeFinishFlag: "", upgradeFinishFlag: "",
customerName: "", customerName: "",
...@@ -723,7 +726,6 @@ export default { ...@@ -723,7 +726,6 @@ export default {
file: this.fileInfo file: this.fileInfo
} }
orderImport(params).then((res) => { orderImport(params).then((res) => {
// console.log(res)
if (res) { if (res) {
// 异步处理文件上传 把id传入处理轮询 // 异步处理文件上传 把id传入处理轮询
const list = [ const list = [
...@@ -759,6 +761,7 @@ export default { ...@@ -759,6 +761,7 @@ export default {
}, },
handleReset() { handleReset() {
this.searchForm = { this.searchForm = {
sceneType: 1,
status: "", status: "",
upgradeFinishFlag: "", upgradeFinishFlag: "",
customerName: "", customerName: "",
...@@ -983,8 +986,8 @@ export default { ...@@ -983,8 +986,8 @@ export default {
.p-r-20 { .p-r-20 {
margin-right: 20px; margin-right: 20px;
} }
.m-t-40{ .m-t-40 {
margin-top:40px; margin-top: 40px;
} }
.order-list .m-l-md { .order-list .m-l-md {
margin-left: 20px; margin-left: 20px;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!