Commit 3ab6a554 by 前端

20.0代码提交

1 parent 22b4247b
......@@ -73,16 +73,6 @@ const getServiceStore = params => {
}
//众筹订单列表
// const getListApi = params => {
// params.method = `${path2}order.noSessionPage`
// params.routerMethod = `${path2}order.noSessionPage`
// return http({
// url: 'rop-scrm-boutiquecoupon/router',
// method: 'POST',
// data: params,
// sign: true
// })
// }
const getListApi = params => {
params.method = `${path2}order.noSessionPage`
return http({
......@@ -137,5 +127,28 @@ const getOrderDetailApi = params => {
})
}
//车损订单
const getQuotationPageApi = params => {
params.method = `scrm.api.boutiquecoupon.rop.router.twoCityTale`
params.routerMethod = `dj.api.quotation.smartcarlife.quotation.page`
return http({
url: 'rop-scrm-boutiquecoupon/router',
method: 'POST',
data: params,
sign: true
})
}
// 查询报价单基本录入信息
const quotationFindByIdApi = params => {
params.method = `scrm.api.boutiquecoupon.rop.router.twoCityTale`
params.routerMethod = `dj.api.quotation.smartcarlife.quotation.detail`
return http({
url: 'rop-scrm-boutiquecoupon/router',
method: 'POST',
data: params,
sign: true
})
}
export default { getList, getOrderDetail, getOrderCount, shopmallOrderList, goodsOrderDetail, getServiceStore, getListApi, getCrowdfundingParams, getCountApi, orderExportApi, getOrderDetailApi }
export default { getList, getOrderDetail, getOrderCount, shopmallOrderList, goodsOrderDetail, getServiceStore, getListApi, getCrowdfundingParams, getCountApi, orderExportApi, getOrderDetailApi, getQuotationPageApi, quotationFindByIdApi }
......@@ -183,11 +183,11 @@ function getExplorer() {
}
// 园区店模式/经营模式
export const manageTypeList = [
{ confId: 0, confLabel: "园区店" },
{ confId: 1, confLabel: "驻店" }
{ confId: 0, confLabel: '园区店' },
{ confId: 1, confLabel: '驻店' }
]
function exportFn(url) {
export const exportFn = url => {
let browserType = getExplorer()
if (browserType == 'QQ') {
window.open(url)
......
......@@ -18,6 +18,26 @@ const staticRoutes = Object.freeze([
component: resolve => require([`@/views/orderManage/orderDetail.vue`], resolve),
meta: {}
},
//众筹订单详情
{
name: 'orderDetail',
path: '/orderManage/crowdDetail',
component: resolve => require([`@/views/orderManage/crowdDetail.vue`], resolve),
meta: {}
},
//车损订单详情
{
name: 'carDamageDetail',
path: '/orderManage/carDamageDetail',
component: resolve => require([`@/views/orderManage/carDamageDetail.vue`], resolve),
meta: {}
}
])
export default staticRoutes
<!-- 报价单详情 -->
<template>
<div>
恒河猴
</div>
<d2-container class="order-detail">
<div class="d2-container-content">
<!-- <p class="edit-title">
报价单详情
</p> -->
<div class="form_gp">
<p class="edit-sub-title">
车辆信息
</p>
<el-form class="edit-sub-block"
:inline="true">
<el-form-item label="车架号:">
{{ $$(detail.ownerDTO,'carVin') }}
</el-form-item>
<el-form-item label="座位数:">
{{ $$(detail.ownerDTO,'seat') }}
</el-form-item>
<el-form-item label="车辆发票价/元:">
{{ $$(detail.ownerDTO,'price') / 100 }}
</el-form-item>
</el-form>
</div>
<div class="form_gp">
<p class="edit-sub-title">
车主信息
</p>
<el-form class="edit-sub-block"
:inline="true">
<el-form-item label="姓名:">
{{ $$(detail.ownerDTO,'owner') }}
</el-form-item>
<el-form-item label="手机号:">
{{ $$(detail.ownerDTO,'phone') }}
</el-form-item>
<el-form-item label="证件号:">
{{ $$(detail.ownerDTO,'certificateNo') }}
</el-form-item>
</el-form>
</div>
<div class="form_table_gp">
<p class="edit-sub-title">
商业险信息
</p>
<el-table :data="commerceInsureList"
border
:header-cell-style="{'text-align':'center','background-color':'#fafafa'}"
style="width: 100%">
<el-table-column prop="company"
align="center"
label="保险公司" />
<el-table-column prop="base"
align="center"
label="基础车损险">
<template slot-scope="scope">
{{ scope.row.base / 100 }}元
</template>
</el-table-column>
<el-table-column prop="three"
align="center"
label="第三方责任险" />
<el-table-column prop="threePremium"
align="center"
label="保费">
<template slot-scope="scope">
{{ scope.row.threePremium / 100 }}元
</template>
</el-table-column>
<el-table-column prop="driver"
align="center"
label="车上人员责任险(司机)" />
<el-table-column prop="carInsidePremium"
align="center"
label="保费">
<template slot-scope="scope">
{{ scope.row.carInsidePremium / 100 }}元
</template>
</el-table-column>
<el-table-column prop="passenger"
align="center"
label="车上人员责任险(乘客)" />
<el-table-column prop="passengerPremium"
align="center"
label="保费">
<template slot-scope="scope">
{{ scope.row.passengerPremium / 100 }}元
</template>
</el-table-column>
</el-table>
</div>
<div class="form_gp">
<p class="edit-sub-title">
交强和车船税
</p>
<el-form class="edit-sub-block"
:inline="true">
<el-form-item label="交强险:">
{{ $$(compulsoryInsure,'compensation') }} /
保费:{{ $$(compulsoryInsure,'payPrice') / 100 }}元
</el-form-item>
<el-form-item label="车船税:">
{{ $$(vehicleInsure,'compensation') }}年 /
保费:{{ $$(compulsoryInsure,'payPrice') / 100 }}元
</el-form-item>
</el-form>
</div>
<div class="form_gp">
<p class="edit-sub-title">
增值车损险服务
</p>
<el-form class="edit-sub-block"
:inline="true">
<el-form-item label="商品:">
<!-- <img v-if="$$(detail.quotationGoodsInfo,'titlePictureUrl')"
class="order-img"
:src="$$(detail.quotationGoodsInfo,'titlePictureUrl')"
@click="handleEnlargeImg">
{{ $$(detail.quotationGoodsInfo,'goodsName') }} -->
</el-form-item>
<el-form-item label="增值权益价格/元:">
{{ detail.quotedPriceUpdate / 100 }}
</el-form-item>
</el-form>
</div>
<p style="text-align:left; padding-left: 30px; margin: 0 0 16px 0;">
<el-button type="primary"
@click="handleClose">
返回
</el-button>
</p>
</div>
<el-dialog :visible="imgVisible"
:before-close="handleEnlargeImg">
<!-- <img width="100%"
:src="$$(detail.quotationGoodsInfo,'titlePictureUrl')"
alt="图片"> -->
</el-dialog>
</d2-container>
</template>
<script type='text/ecmascript-6'>
export default {
name: 'carDamageDetail',
data () {
return {
}
<script>
import { deepClone } from '@/common/util'
import { payType } from '@/common/constant.js'
import dayjs from 'dayjs'
// import { quotationFindById } from "@api/vehicleDamage"
export default {
name: 'VehicleDamageDetail',
components: {
},
data() {
return {
imgVisible: false,
detail: {},
commerceInsureList: [],//商业险
compulsoryInsure: {},//交强险
vehicleInsure: {},//车船税
}
},
computed: {
},
mounted() {
this.detail = this.$route.query
this.quotationFindById()
},
methods: {
handleEnlargeImg() {
this.imgVisible = !this.imgVisible
},
mounted () {
const params = this.$route
console.log(params)
handleClose() {
this.$router.push({ name: 'vehicleDamageList' })
this.close({ tagName: '/vehicleDamageDetail' })
},
methods: {
quotationFindById() {
this.$apis.order.quotationFindByIdApi({ id: this.detail.id }).then(res => {
this.detail = res
if (this.detail.insureDTOList && this.detail.insureDTOList.length > 0) {
this.detail.insureDTOList.forEach(item => {
//保险类型(0-商业,1-交强,2-车船,3-增值车损,4-other)
if (item.type == 0) {
this.commerceInsureList.push(item)
} else if (item.type == 1) {
this.compulsoryInsure = item
} else if (item.type == 2) {
this.vehicleInsure = item
}
});
}
})
}
}
}
</script>
<style lang="scss">
.order-detail {
.d2-container-content {
margin-top: 0 !important;
}
.edit-title {
// padding-left: 0;
}
.form_gp {
color: #333333;
padding: 20px 30px;
border-bottom: 1px solid #eee;
// h4{
// margin: 0 0 10px;
// }
<style scoped lang='scss'>
.edit-sub-title {
font-weight: bold;
margin-bottom: 10px;
}
</style>
\ No newline at end of file
.edit-sub-block {
padding: 0 16px;
}
.el-form-item {
width: 300px;
margin-bottom: 0px;
}
.order-img {
width: 80px;
height: 80px;
cursor: pointer;
}
}
.form_table_gp {
padding: 20px 30px;
margin-bottom: 20px;
}
}
.signRefundBtn {
margin-left: 10px;
.signRefundIcon {
width: 12px;
margin-right: 5px;
}
span {
display: flex;
align-items: center;
justify-content: center;
}
}
</style>
......@@ -87,7 +87,7 @@
import * as dayjs from 'dayjs'
import url from '@/assets/empty.png'
import { Util } from '@/common/util'
import { orderStatusList, upgradeList, constructionList, profitAllocationStatusList, sourceList, manageTypeList } from '@/common/constant.js'
import { orderStatusList, upgradeList, constructionList, profitAllocationStatusList, sourceList, manageTypeList, exportFn } from '@/common/constant.js'
export default {
name: 'Order',
components: {
......@@ -580,9 +580,10 @@ export default {
},
exportExcel() {
var params = this.getParams()
this.$apis.purchaseShopping.exportExcel(params).then(res => {
window.location.href = res
})
// this.$apis.finance.exportExcel(params).then(res => {
// // window.location.href = res
// exportFn(res)
// })
},
handleSearch() {
this.$refs.orderRef.refreshTable()
......
......@@ -75,7 +75,7 @@ export default {
name: "1"
},
{
label: "众筹",
label: "售后众筹",
name: "2"
},
{
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!