Commit b9f7a48c by wangql

Merge branch 'wangql_dev_v4.19.0' into dev_v4.19.0

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