Commit b9f7a48c by wangql

Merge branch 'wangql_dev_v4.19.0' into dev_v4.19.0

2 parents 1bfd99f5 3836c0f6
......@@ -3510,7 +3510,7 @@
"dependencies": {
"@vue/vue-loader-v15": {
"version": "npm:vue-loader@15.10.1",
"resolved": "https://registry.npmmirror.com/vue-loader/-/vue-loader-15.10.1.tgz",
"resolved": "https://registry.npmjs.org/vue-loader/-/vue-loader-15.10.1.tgz",
"integrity": "sha512-SaPHK1A01VrNthlix6h1hq4uJu7S/z0kdLUb6klubo738NeQoLbS6V9/d8Pv19tU0XdQKju3D1HSKuI8wJ5wMA==",
"dev": true,
"requires": {
......@@ -3523,7 +3523,7 @@
"dependencies": {
"hash-sum": {
"version": "1.0.2",
"resolved": "https://registry.npmmirror.com/hash-sum/-/hash-sum-1.0.2.tgz",
"resolved": "https://registry.npmjs.org/hash-sum/-/hash-sum-1.0.2.tgz",
"integrity": "sha512-fUs4B4L+mlt8/XAtSOGMUO1TXmAelItBPtJG7CyHJfYTdDjwisntGO2JQz7oUsatOY9o68+57eziUVNw/mRHmA==",
"dev": true
}
......@@ -5824,7 +5824,7 @@
},
"cross-spawn": {
"version": "6.0.5",
"resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz",
"resolved": "https://registry.npmmirror.com/cross-spawn/-/cross-spawn-6.0.5.tgz",
"integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==",
"dev": true,
"requires": {
......@@ -7020,7 +7020,7 @@
},
"ignore": {
"version": "4.0.6",
"resolved": "https://registry.npmjs.org/ignore/-/ignore-4.0.6.tgz",
"resolved": "https://registry.npmmirror.com/ignore/-/ignore-4.0.6.tgz",
"integrity": "sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg==",
"dev": true
},
......@@ -8749,7 +8749,7 @@
"dependencies": {
"big.js": {
"version": "3.2.0",
"resolved": "https://registry.npmjs.org/big.js/-/big.js-3.2.0.tgz",
"resolved": "https://registry.npmmirror.com/big.js/-/big.js-3.2.0.tgz",
"integrity": "sha512-+hN/Zh2D08Mx65pZ/4g5bsmNiZUuChDiQfTUQ7qJr4/kuopCr88xZsAXv6mBoZEsUI4OuGHlX59qE94K2mMW8Q=="
},
"json5": {
......@@ -13366,7 +13366,7 @@
},
"p-try": {
"version": "2.2.0",
"resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz",
"resolved": "https://registry.npmmirror.com/p-try/-/p-try-2.2.0.tgz",
"integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==",
"dev": true
},
......@@ -16497,7 +16497,7 @@
},
"type-fest": {
"version": "0.6.0",
"resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.6.0.tgz",
"resolved": "https://registry.npmmirror.com/type-fest/-/type-fest-0.6.0.tgz",
"integrity": "sha512-q+MB8nYR1KDLrgr4G5yemftpMC7/QLqVndBmEEdqzmNj5dcFOO4Oo8qlwZE3ULT3+Zim1F8Kq4cBnikNhlCMlg==",
"dev": true
},
......@@ -17687,7 +17687,7 @@
},
"yarn": {
"version": "1.22.19",
"resolved": "https://registry.npmmirror.com/yarn/-/yarn-1.22.19.tgz",
"resolved": "https://registry.npmjs.org/yarn/-/yarn-1.22.19.tgz",
"integrity": "sha512-/0V5q0WbslqnwP91tirOvldvYISzaqhClxzyUKXYxs07yUILIs5jx/k6CFe8bvKSkds5w+eiOqta39Wk3WxdcQ=="
},
"yorkie": {
......
......@@ -126,7 +126,12 @@ export function getDivisionRecordById(data) {
}
//根据园区店商户号获取4s列表
export function getServiceStore(data) {
data.method = 'dj.api.scenemerchantref.query4SRefByYqShop'
data.method = "dj.api.scenemerchantref.query4SRefByYqShop"
return request(data, "post")
}
// 订单分账记录
export function getDivisionRecordByOrderCode(data) {
data.method = `${path2}getDivisionRecordByOrderCode`
return request(data, "post")
}
import request from './request'
import request from "./request"
const path = 'dj.smartcarlife.api.'
const path = "dj.smartcarlife.api."
// 分页查询园区店服务商列表
export function getList(data) {
data.method = `${path}partnerMerchant.serviceRef.page`
return request(data, 'post')
// data.method = `${path}partnerMerchant.serviceRef.page`
data.method = `${path}yqPartnerMerchant.ref.page`
return request(data, "post")
}
// 获取商户列表(园区店和服务商)
export function getMerchantList(data) {
data.method = `${path}merchant.list`
return request(data, 'post')
return request(data, "post")
}
// 给园区店添加服务商
export function addParentMerchant(data) {
data.method = `${path}partnerMerchant.serviceRef.add`
return request(data, 'post')
return request(data, "post")
}
// 保存园区店服务商关联
export function saveParentMerchant(data) {
data.method = `${path}partnerMerchant.serviceRef.save`
return request(data, 'post')
return request(data, "post")
}
// 删除关联服务商
export function deleteParentMerchant(data) {
data.method = `${path}partnerMerchant.serviceRef.delete`
return request(data, 'post')
return request(data, "post")
}
// 获取园区店列表
export function getYqMerchantConfig(data) {
data.method = `dj.api.smarcarlife.yqMerchantConfig.page`
return request(data, 'GET')
return request(data, "GET")
}
// 获取园区店列表-获取园区店配置项
export function GETYQMERCHANTCONFIGDETAIL(data) {
data.method = `dj.api.smarcarlife.yqMerchantConfig.detail`
return request(data, 'GET')
return request(data, "GET")
}
// 获取园区店列表-修改园区店配置项
export function UPDATEYQMERCHANTCONFIG(data) {
data.method = `dj.api.smarcarlife.yqMerchantConfig.modify`
return request(data, 'post')
return request(data, "post")
}
// 生成小程序码
export function createWeappQrcode(data) {
data.method = `dj.api.smartcarlife.common.createWeappQrcode.new`
return request(data, 'post')
return request(data, "post")
}
// 获取园区店支付宝页面二维码
export function alipayQrcode(data) {
data.method = `dj.api.smarcarlife.yqMerchantConfig.alipay.qrcode`
return request(data, 'post')
return request(data, "post")
}
// 获取园区店配置项
export function yqMerchantConfigDetail(data) {
data.method = `dj.api.smarcarlife.yqMerchantConfig.detail`
return request(data, 'post')
return request(data, "post")
}
// 关联园区店加企微二维码
export function serviceMerchantRelateQrcode(data) {
data.method = `dj.api.smartcarlife.serviceMerchant.relate.qrcode`
return request(data, 'post')
return request(data, "post")
}
// 获取园区店配置的场景入口
export function getYqMerchantSceneConfigAPI(data) {
data.method = `dj.api.smartcarlife.select.openScene.info`
return request(data, 'post')
return request(data, "post")
}
// 配置园区店场景入口
export function settingYqMerchantSceneAPI(data) {
data.method = `dj.api.smartcarlife.update.openScene.info`
return request(data, 'post')
return request(data, "post")
}
import request from './request'
const path = 'dj.api.quotation.smartcarlife.'
import request from "./request"
const path = "dj.api.quotation.smartcarlife."
// 分页列表
export function getList(data) {
......@@ -22,15 +20,21 @@ export function quotationPrint(data) {
return request(data)
}
// 打印,返回报价单图片url
export function quotationExport(data) {
data.method = `${path}quotation.export`
return request(data)
data.method = `${path}quotation.export`
return request(data)
}
// 打印 返回权益合同PDF文件Url
export function contractExport(data) {
data.method = `dj.api.smartcarlife.vd.equity.order.print`
data.method = `${path}quotation.export`
return request(data)
}
// 查询报价单基本录入信息
export function quotationFindById(data) {
data.method = `dj.api.quotation.smartcarlife.quotation.detail`
return request(data)
}
......@@ -176,36 +176,37 @@ export const routerName = {
component: _import("orderManage/carDamageDetail")
},
90406: {
// 91101: {
path: "/vehicleDamageList",
name: "vehicleDamageList",
meta: {
title: "车损报价单",
authId: "90406",
// authId: "91101",
parentId: "904",
cache: false
},
auth: [
{
authId: "9040601",
// authId: "9110101",
// authId: "9110101",
parentId: "90406",
label: "查看",
handle: "handleDetail"
},
// {
// authId: "9110102",
// parentId: "91101",
// label: "编辑",
// handle: "handleEdit"
// },
{
authId: "9040602",
parentId: "90406",
label: "详情",
handle: "handleView",
addRoutePath: [
{
authId: "9040604",
name: "查看详情",
parentId: "90406"
}
]
},
{
authId: "9040603",
// authId: "9110103",
parentId: "90406",
// parentId: "91101",
label: "打印",
handle: "handlePrint"
},
......@@ -217,5 +218,17 @@ export const routerName = {
}
],
component: _import("vehicleDamage/vehicleDamageList")
},
9040604: {
path: "/vehicleDamageDetail",
name: "vehicleDamageDetail",
meta: {
title: "报价单详情",
authId: "9040604",
parentId: "90406",
cache: false,
activePath: "/vehicleDamageList"
},
component: _import("vehicleDamage/vehicleDamageDetail")
}
}
......@@ -26,12 +26,12 @@ export const routerName = {
label: "查看",
handle: "handleDetail"
},
// {
// authId: "9110102",
// parentId: "91101",
// label: "编辑",
// handle: "handleEdit"
// },
{
authId: "9110102",
parentId: "91101",
label: "详情",
handle: "handleDetail"
},
{
authId: "9110103",
parentId: "91101",
......
......@@ -152,7 +152,7 @@
</td>
<td>{{ $$(detail.goodsOrder,'employeeName') }}</td>
</tr>
<tr v-if="detail.sceneType == 1 || detail.sceneType == 2">
<tr v-if="detail.sceneType == 1 || detail.sceneType == 2 || detail.sceneType == 3">
<td class="lb">
<!-- 园区店 -->
服务对接
......
......@@ -89,6 +89,9 @@
<el-form-item label="推荐人:">
{{ detail.employeeName }}
</el-form-item>
<el-form-item label="技师:">
{{ detail.technicianName }}
</el-form-item>
<div>
<!-- <el-form-item label="园区店:"> -->
<el-form-item label="服务对接:">
......@@ -297,11 +300,11 @@ export default {
mounted() {
this.detail = this.$route.params.detail
this.signRefundFlag = this.$route.params.signRefundFlag
console.log(this.signRefundFlag,this.detail.source,1111111111111111)
console.log(this.signRefundFlag, this.detail.source, 1111111111111111)
if (this.detail.source == 7) {
this.detail.createdDate = dayjs(this.detail.createdDate).format('YYYY-MM-DD HH:mm:ss')
}
console.log(1111111111111)
console.log(1111111111111)
this.getGoodsOrderDetail()
console.log(this.detail)
},
......
......@@ -4,63 +4,91 @@
<!-- class="order-detail" -->
<d2-container>
<!-- <div class="offline-account"> -->
<div class="header" slot="header" style="padding: 10px 20px;">
<d2-search ref="showSearch" class="show-search" :search-form="searchForm" :search-select-obj="searchSelectObj"
:form-data="showFormData" />
<div class="header"
slot="header"
style="padding: 10px 20px;">
<d2-search ref="showSearch"
class="show-search"
:search-form="searchForm"
:search-select-obj="searchSelectObj"
:form-data="showFormData" />
<div class="up-btns">
<el-button @click="handleSearch" size="small" type="primary">
<el-button @click="handleSearch"
size="small"
type="primary">
查询
</el-button>
<el-button size="small" @click="handleReset">
<el-button size="small"
@click="handleReset">
重置
</el-button>
<el-button size="small" @click="handleRecord">
<el-button size="small"
@click="handleRecord">
返回
</el-button>
</div>
</div>
<!-- </d2-container>
<!-- </d2-container>
<d2-container> -->
<div class="d2-container-content">
<d2-table-header :left-span="13">
<span slot="left" class="leftSpan">共<span class="count-txt">{{ countObj.totalCount }}</span>条交易记录,总金额<span
class="count-txt">{{ countObj.totalAmount }}</span>元,已补录<span class="count-txt">{{ countObj.inputtedCount
}}</span>条,未补录<span class="count-txt">{{ countObj.waitInputCount }}</span>条,未关联<span class="count-txt">{{
<span slot="left"
class="leftSpan">共<span
class="count-txt">{{ countObj.totalCount }}</span>条交易记录,总金额<span
class="count-txt">{{ countObj.totalAmount }}</span>元,已补录<span class="count-txt">{{ countObj.inputtedCount
}}</span>条,未补录<span class="count-txt">{{ countObj.waitInputCount }}</span>条,未关联<span
class="count-txt">{{
countObj.notAssociatedCount }}</span>条,无需补录<span class="count-txt">{{ countObj.needNoSupplementCount
}}</span>条,待确认补录<span class="count-txt">{{ countObj.waitConfirmInputCount }}</span>条。</span>
<el-button type="primary" @click="batchRecord">
<!-- <el-button type="primary" @click="batchRecord">
批量确认补录
</el-button>
<el-button type="primary" @click="batchUpdateYqMerchant">
</el-button> -->
<el-button type="primary"
@click="batchUpdateYqMerchant">
<!-- 批量修改所属园区店 -->
批量修改所属服务对接
</el-button>
<el-button type="primary" @click="batchMarkAsNoUse">
<el-button type="primary"
@click="batchMarkAsNoUse">
批量标记为无需补录
</el-button>
<el-button type="primary" @click="handleExport">
<el-button type="primary"
@click="handleExport">
导出
</el-button>
</d2-table-header>
<!-- :beforeSearchFn="beforeSearchFn" -->
<d2-table ref="recordTable" :get-list-api="getListApi" :search-form="searchFormSearch" :table-params="tableParams"
:before-search-fn="beforeSearchFn" :selectable-fn="selectableFn">
<template slot="auth-button" slot-scope="scope">
<d2-table ref="recordTable"
:get-list-api="getListApi"
:search-form="searchFormSearch"
:table-params="tableParams"
:before-search-fn="beforeSearchFn"
:selectable-fn="selectableFn">
<template slot="auth-button"
slot-scope="scope">
<!-- 已分帐无可操作内容 -->
<div v-if="scope.scope.inputStatus !== '6'">
<el-button type="text" v-if="scope.scope.inputStatus == '1'" @click="orderDetail(scope.scope)">
<el-button type="text"
v-if="scope.scope.inputStatus == '1'"
@click="orderDetail(scope.scope)">
订单详情
</el-button>
<el-button type="text" v-if="scope.scope.inputStatus == '0'" @click="relatActivityOrder(scope.scope)">
<!-- <el-button type="text"
v-if="scope.scope.inputStatus == '0'"
@click="relatActivityOrder(scope.scope)">
关联活动订单
</el-button>
<el-button type="text" v-if="scope.scope.inputStatus == '4'" @click="record(scope.scope)">
<el-button type="text"
v-if="scope.scope.inputStatus == '4'"
@click="record(scope.scope)">
确认补录
</el-button>
<el-button type="text" v-if="scope.scope.inputStatus == '4'" @click="cancelRelat(scope.scope)">
<el-button type="text"
v-if="scope.scope.inputStatus == '4'"
@click="cancelRelat(scope.scope)">
取消关联
</el-button>
<!-- <el-button type="text"
</el-button> -->
<!-- <el-button type="text"
v-if="scope.scope.inputStatus == '5'"
@click="chooseRule(scope.scope)">
发起分账
......@@ -76,17 +104,25 @@
</div>
</d2-container>
<!-- 批量修改所属园区店 -->
<update-yqMerchant-dialog :merchant-visible="merchantDialogVisible" :id-list="ids" v-if="merchantDialogVisible"
@dialogClose="dialogClose" />
<update-yqMerchant-dialog :merchant-visible="merchantDialogVisible"
:id-list="ids"
v-if="merchantDialogVisible"
@dialogClose="dialogClose" />
<!-- 关联活动订单 -->
<relat-activity-order-dialog :relat-activity-visible="relatActivityVisible" :order-id="orderId"
v-if="relatActivityVisible" @dialogClose="relatDialogClose" />
<relat-activity-order-dialog :relat-activity-visible="relatActivityVisible"
:order-id="orderId"
v-if="relatActivityVisible"
@dialogClose="relatDialogClose" />
<!-- 选择分账规则 -->
<choose-rule-dialog :rule-visible="ruleVisible" :record-info="recordInfo" v-if="ruleVisible"
@dialogClose="ruleDialogClose" />
<choose-rule-dialog :rule-visible="ruleVisible"
:record-info="recordInfo"
v-if="ruleVisible"
@dialogClose="ruleDialogClose" />
<!-- 选择分账规则 -->
<rule-info-dialog :rule-info-visible="ruleInfoVisible" :record-info="recordInfo" v-if="ruleInfoVisible"
@dialogClose="ruleInfoDialogClose" />
<rule-info-dialog :rule-info-visible="ruleInfoVisible"
:record-info="recordInfo"
v-if="ruleInfoVisible"
@dialogClose="ruleInfoDialogClose" />
</div>
</template>
......
......@@ -70,11 +70,11 @@
:inline="true">
<el-form-item class="d2-drawer-item"
label="分账操作人:">
<span>{{ recordInfo.wioUpdatedBy }}</span>
<span>{{ ruleInfo.divisionOperBy }}</span>
</el-form-item>
<el-form-item class="d2-drawer-item"
label="分账操作时间:">
<span>{{ recordInfo.wioUpdatedDate }}</span>
<span>{{ ruleInfo.divisionOperDate }}</span>
</el-form-item>
</el-form>
</d2-dialog>
......@@ -83,7 +83,7 @@
<script>
import dayjs from "dayjs"
import { Util, deepClone } from '@/common/util'
import { getDivisionRecordById } from '@api/order'
import { getDivisionRecordByOrderCode } from '@api/order'
export default {
name: "RuleInfoDialog",
props: {
......@@ -112,14 +112,14 @@ export default {
console.log(this.recordInfo);
// this.recordInfo.accountDate = this.recordInfo.accountDate ? Util.dateFormate(this.recordInfo.accountDate, 'YYYY-MM-DD HH:mm:ss') : ''
this.recordInfo.wioUpdatedDate = this.recordInfo.wioUpdatedDate ? Util.dateFormate(this.recordInfo.wioUpdatedDate, 'YYYY-MM-DD HH:mm:ss') : ''
// this.recordInfo.wioUpdatedDate = this.recordInfo.wioUpdatedDate ? Util.dateFormate(this.recordInfo.wioUpdatedDate, 'YYYY-MM-DD HH:mm:ss') : ''
this.getRuleInfo()
},
methods: {
// 获取分账记录
getRuleInfo() {
getDivisionRecordById({ id: this.recordInfo.wioEffectRuleId }).then(res => {
getDivisionRecordByOrderCode({ orderCode: this.recordInfo.orderCode }).then(res => {
this.ruleInfo = res
const format = "YYYY/MM/DD HH:mm"
this.ruleInfo.formatEffectEndDate = this.ruleInfo.effectEndDate
......@@ -129,6 +129,7 @@ export default {
? dayjs(this.ruleInfo.effectStartDate).format(format)
: ""
this.ruleInfo.formatUpdatedDate = dayjs(this.ruleInfo.updatedDate).format(format)
this.ruleInfo.divisionOperDate = this.ruleInfo.divisionOperDate ? Util.dateFormate(this.ruleInfo.divisionOperDate, 'YYYY-MM-DD HH:mm:ss') : ''
this.ruleInfo.show = false
})
},
......
......@@ -130,11 +130,11 @@ export default {
methods: {
changeScene(value) {
if (value == 1 || value == 0) {
this.yqStoreVisible = true
} else if (value == 3) {
this.yqStoreVisible = false
}
// if (value == 1 || value == 0) {
// this.yqStoreVisible = true
// } else if (value == 3) {
// this.yqStoreVisible = false
// }
this.$refs.store4sTb.clearSelect()
// this.$refs.yqStoreTb.clearSelect()
this.$refs.serviceStoreTb.clearSelect()
......@@ -164,26 +164,42 @@ export default {
handleRelateConfirm() {
const params = this.getParams()
if (params.scene == 1 || params.scene == 0) {
if (this.choose4sData.length == 0) {
this.notice.warningTips('请选择4s店')
return
}
if (this.chooseyqData.length == 0) {
this.notice.warningTips('请选择园区店')
return
}
} else if (params.scene == 3) {
if (this.choose4sData.length == 0) {
this.notice.warningTips('请选择4s店')
return
}
if (this.chooseServiceData.length == 0) {
this.notice.warningTips('请选择服务商')
return
}
delete params.yqMerchant
// if (params.scene == 1 || params.scene == 0) {
// if (this.choose4sData.length == 0) {
// this.notice.warningTips('请选择4s店')
// return
// }
// if (this.chooseyqData.length == 0) {
// this.notice.warningTips('请选择园区店')
// return
// }
// } else if (params.scene == 3) {
// if (this.choose4sData.length == 0) {
// this.notice.warningTips('请选择4s店')
// return
// }
// if (this.chooseServiceData.length == 0) {
// this.notice.warningTips('请选择服务商')
// return
// }
// delete params.yqMerchant
// }
if (this.choose4sData.length == 0) {
this.notice.warningTips('请选择4s店')
return
}
if (this.chooseyqData.length == 0) {
this.notice.warningTips('请选择园区店')
return
}
if (this.chooseServiceData.length == 0) {
this.notice.warningTips('请选择服务商')
return
}
// if (params.scene == 3) {
// delete params.yqMerchant
// }
addOrUpdateSceneMerchantRef(params).then(res => {
this.notice.okTips()
......
......@@ -22,16 +22,16 @@
<div class="d2-container-content">
<d2-table-header>
<span slot="left">园区店服务商关联列表</span>
<auth-button category="Button" />
<!-- <auth-button category="Button" /> -->
</d2-table-header>
<d2-table ref="serviceStoreTable"
:search-form="searchForm"
:table-params="tableParams"
:get-list-api="getListApi"
:before-search-fn="beforeSearchFn">
<auth-button slot="auth-button"
<!-- <auth-button slot="auth-button"
slot-scope="scope"
:data="scope.scope" />
:data="scope.scope" /> -->
</d2-table>
</div>
<!-- 新增服务商 -->
......@@ -146,7 +146,7 @@ export default {
tableParams: {
btnId: new Date().getTime() + parseInt(Math.random() * 1000),
listName: 'list',
tableOption: true,
// tableOption: true,
tableColumns: [{
label: '园区店名称',
prop: 'yqMerchantName'
......@@ -160,11 +160,10 @@ export default {
width: '200',
html: true,
formatter: (cellValue) => {
// return cellValue.yqMerchant ? cellValue.yqMerchant.accountName : ''
var html = ''
var list = []
if (cellValue.merchants && cellValue.merchants.length > 0) {
cellValue.merchants.map(item => {
if (cellValue.partnerMerchantList && cellValue.partnerMerchantList.length > 0) {
cellValue.partnerMerchantList.map(item => {
list.push(item.accountName)
})
html = list.join('<br>')
......@@ -177,11 +176,10 @@ export default {
width: '200',
html: true,
formatter: (cellValue) => {
// return cellValue.yqMerchant ? cellValue.yqMerchant.accountName : ''
var html = ''
var list = []
if (cellValue.merchants && cellValue.merchants.length > 0) {
cellValue.merchants.map(item => {
if (cellValue.partnerMerchantList && cellValue.partnerMerchantList.length > 0) {
cellValue.partnerMerchantList.map(item => {
list.push(item.merchantName)
})
html = list.join('<br>')
......@@ -194,11 +192,10 @@ export default {
width: '200',
html: true,
formatter: (cellValue) => {
// return cellValue.yqMerchant ? cellValue.yqMerchant.accountName : ''
var html = ''
var list = []
if (cellValue.merchants && cellValue.merchants.length > 0) {
cellValue.merchants.map(item => {
if (cellValue.partnerMerchantList && cellValue.partnerMerchantList.length > 0) {
cellValue.partnerMerchantList.map(item => {
list.push(item.merchantId)
})
html = list.join('<br>')
......
<!-- 报价单详情 -->
<template>
<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>
import { mapActions } from 'vuex'
import { deepClone } from '@/common/util'
import { payType } from '@/common/constants.js'
import dayjs from 'dayjs'
import { quotationFindById } from "@api/vehicleDamage"
export default {
name: 'VehicleDamageDetail',
components: {
},
data() {
return {
userInfo: this.$store.state.d2admin.user.info,
imgVisible: false,
detail: {},
commerceInsureList: [],//商业险
compulsoryInsure: {},//交强险
vehicleInsure: {},//车船税
}
},
computed: {
},
mounted() {
this.detail = this.$route.params.detail
this.quotationFindById()
},
methods: {
...mapActions({ close: 'd2admin/page/close' }),
handleEnlargeImg() {
this.imgVisible = !this.imgVisible
},
handleClose() {
this.$router.push({ name: 'vehicleDamageList' })
this.close({ tagName: '/vehicleDamageDetail' })
},
quotationFindById() {
quotationFindById({ 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;
// }
.edit-sub-title {
font-weight: bold;
margin-bottom: 10px;
}
.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>
......@@ -2,52 +2,50 @@
<template>
<div>
<d2-container>
<div class="header" slot="header" style="padding: 10px 20px">
<d2-search
ref="showSearch"
class="show-search"
:search-form="searchForm"
:form-data="showFormData"
/>
<div class="header"
slot="header"
style="padding: 10px 20px">
<d2-search ref="showSearch"
class="show-search"
:search-form="searchForm"
:form-data="showFormData" />
<div class="up-btns">
<el-button @click="handleSearch" size="small" type="primary">
<el-button @click="handleSearch"
size="small"
type="primary">
查询
</el-button>
<el-button size="small" @click="handleReset"> 重置 </el-button>
<el-button size="small"
@click="handleReset"> 重置 </el-button>
</div>
</div>
<div class="d2-container-content">
<d2-table-header>
<el-button
class="default-blue-btn"
plain
@click="handleExport"
size="small"
>导出</el-button
>
<el-button class="default-blue-btn"
plain
@click="handleExport"
size="small">导出</el-button>
</d2-table-header>
<d2-table
ref="damageTable"
:get-list-api="getListApi"
:search-form="searchFormSearch"
:table-params="tableParams"
:before-search-fn="beforeSearchFn"
>
<div
slot-scope="scope"
slot="auth-button"
class="btnClass"
>
<!-- scope.scope.orderStatus == 1 ||
scope.scope.orderStatus == 2 ||
scope.scope.orderStatus == 3 ||
scope.scope.orderStatus == -1 -->
<d2-table ref="damageTable"
:get-list-api="getListApi"
:search-form="searchFormSearch"
:table-params="tableParams"
:before-search-fn="beforeSearchFn">
<div slot-scope="scope"
slot="auth-button"
class="btnClass">
<!-- 查看 -->
<auth-button v-if="[1, 2, 3, -1].includes(scope.scope.orderStatus) || [2].includes(scope.scope.equityOrderStatus)" :show-btn-ids="['9040601']" :data="scope.scope" />
<auth-button v-if="[1, 2, 3, -1].includes(scope.scope.orderStatus) || [2].includes(scope.scope.equityOrderStatus)"
:show-btn-ids="['9040601']"
:data="scope.scope" />
<!-- 打印报价单 -->
<auth-button v-if="[1, 2, 3, -1].includes(scope.scope.orderStatus) || [2].includes(scope.scope.equityOrderStatus)" :show-btn-ids="['9040603']" :data="scope.scope" />
<auth-button v-if="[1, 2, 3, -1].includes(scope.scope.orderStatus) || [2].includes(scope.scope.equityOrderStatus)"
:show-btn-ids="['9040603']"
:data="scope.scope" />
<!-- 打印合同 -->
<auth-button v-if="[2].includes(scope.scope.equityOrderStatus) && [3, 5].includes(scope.scope.orderStatus)" :show-btn-ids="['9040604']" :data="scope.scope" />
<auth-button v-if="[2].includes(scope.scope.equityOrderStatus) && [3, 5].includes(scope.scope.orderStatus)"
:show-btn-ids="['9040604']"
:data="scope.scope" />
</div>
</d2-table>
</div>
......@@ -157,8 +155,8 @@ export default {
.map((item) => item.severType)
.includes(cellValue.orderStatus)
? this.baseData.severTypeList.find(
(item) => item.severType === cellValue.orderStatus
).severName
(item) => item.severType === cellValue.orderStatus
).severName
: "-"
}
}
......@@ -283,7 +281,7 @@ export default {
if (
this.baseData[item.optionsName].length &&
this.baseData[item.optionsName][0][
this.showFormData[index].optionLabel
this.showFormData[index].optionLabel
] !== "全部"
) {
const temp = {}
......@@ -331,7 +329,18 @@ export default {
// if (flag) {
// this.$refs.recordTable.refreshTable()
// }
}
},
// 查看详情
handleView(row) {
this.close({ tagName: "/vehicleDamageDetail" })
this.$router.push({
name: 'vehicleDamageDetail',
params: {
detail: row
}
})
},
}
}
</script>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!