Commit 29727715 by 前端

Merge branch 'SAAS+V4.51.0-0331' into 'master'

上线合并

See merge request !85
2 parents c2d0a72a d910fd6f
Showing 41 changed files with 1587 additions and 151 deletions
......@@ -2003,6 +2003,51 @@
"integrity": "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==",
"dev": true
},
"ansi-styles": {
"version": "4.3.0",
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
"integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
"dev": true,
"optional": true,
"requires": {
"color-convert": "^2.0.1"
}
},
"chalk": {
"version": "4.1.2",
"resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",
"integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",
"dev": true,
"optional": true,
"requires": {
"ansi-styles": "^4.1.0",
"supports-color": "^7.1.0"
}
},
"color-convert": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
"integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
"dev": true,
"optional": true,
"requires": {
"color-name": "~1.1.4"
}
},
"color-name": {
"version": "1.1.4",
"resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
"integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
"dev": true,
"optional": true
},
"has-flag": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
"integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
"dev": true,
"optional": true
},
"ssri": {
"version": "8.0.1",
"resolved": "https://registry.npmjs.org/ssri/-/ssri-8.0.1.tgz",
......@@ -2011,6 +2056,28 @@
"requires": {
"minipass": "^3.1.1"
}
},
"supports-color": {
"version": "7.2.0",
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
"integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
"dev": true,
"optional": true,
"requires": {
"has-flag": "^4.0.0"
}
},
"vue-loader-v16": {
"version": "npm:vue-loader@16.8.3",
"resolved": "https://registry.npmjs.org/vue-loader/-/vue-loader-16.8.3.tgz",
"integrity": "sha512-7vKN45IxsKxe5GcVCbc2qFU5aWzyiLrYJyUuMz4BQLKctCj/fmCa0w6fGiiQ2cLFetNcek1ppGJQDCup0c1hpA==",
"dev": true,
"optional": true,
"requires": {
"chalk": "^4.1.0",
"hash-sum": "^2.0.0",
"loader-utils": "^2.0.0"
}
}
}
},
......@@ -11000,6 +11067,11 @@
"integrity": "sha512-kV/CThkXo6xyFEZUugw/+pIOywXcDbFYgSct5cT3gqlbkBE1SJdwy6UQoZvodiWF/ckQLZyDE/Bu1M6gVu5lVw==",
"dev": true
},
"qrcodejs2": {
"version": "0.0.2",
"resolved": "https://registry.npmjs.org/qrcodejs2/-/qrcodejs2-0.0.2.tgz",
"integrity": "sha512-+Y4HA+cb6qUzdgvI3KML8GYpMFwB24dFwzMkS/yXq6hwtUGNUnZQdUnksrV1XGMc2mid5ROw5SAuY9XhI3ValA=="
},
"qs": {
"version": "6.11.2",
"resolved": "https://registry.npmjs.org/qs/-/qs-6.11.2.tgz",
......@@ -11564,6 +11636,11 @@
"integrity": "sha512-9LkiTwjUh6rT555DtE9rTX+BKByPfrMzEAtnlEtdEwr3Nkffwiihqe2bWADg+OQRjt9gl6ICdmB/ZFDCGAtSow==",
"dev": true
},
"rfdc": {
"version": "1.4.1",
"resolved": "https://registry.npmjs.org/rfdc/-/rfdc-1.4.1.tgz",
"integrity": "sha512-q1b3N5QkRUWUl7iyylaaj3kOpIT0N2i9MqIEQXP73GVsN9cw3fdx8X63cEmWhJGi2PPCF23Ijp7ktmd39rawIA=="
},
"rgb-regex": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/rgb-regex/-/rgb-regex-1.0.1.tgz",
......@@ -13840,75 +13917,6 @@
}
}
},
"vue-loader-v16": {
"version": "npm:vue-loader@16.8.3",
"resolved": "https://registry.npmjs.org/vue-loader/-/vue-loader-16.8.3.tgz",
"integrity": "sha512-7vKN45IxsKxe5GcVCbc2qFU5aWzyiLrYJyUuMz4BQLKctCj/fmCa0w6fGiiQ2cLFetNcek1ppGJQDCup0c1hpA==",
"dev": true,
"optional": true,
"requires": {
"chalk": "^4.1.0",
"hash-sum": "^2.0.0",
"loader-utils": "^2.0.0"
},
"dependencies": {
"ansi-styles": {
"version": "4.3.0",
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
"integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
"dev": true,
"optional": true,
"requires": {
"color-convert": "^2.0.1"
}
},
"chalk": {
"version": "4.1.2",
"resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",
"integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",
"dev": true,
"optional": true,
"requires": {
"ansi-styles": "^4.1.0",
"supports-color": "^7.1.0"
}
},
"color-convert": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
"integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
"dev": true,
"optional": true,
"requires": {
"color-name": "~1.1.4"
}
},
"color-name": {
"version": "1.1.4",
"resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
"integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
"dev": true,
"optional": true
},
"has-flag": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
"integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
"dev": true,
"optional": true
},
"supports-color": {
"version": "7.2.0",
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
"integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
"dev": true,
"optional": true,
"requires": {
"has-flag": "^4.0.0"
}
}
}
},
"vue-quill-editor": {
"version": "3.0.6",
"resolved": "https://registry.npmjs.org/vue-quill-editor/-/vue-quill-editor-3.0.6.tgz",
......
......@@ -17,6 +17,7 @@
"glsx-common": "^2.1.0",
"glsx-components": "^1.5.7",
"lodash": "^4.17.21",
"qrcodejs2": "0.0.2",
"rfdc": "^1.4.1",
"vue": "^2.6.10",
"vue-router": "^3.1.3",
......
......@@ -479,5 +479,107 @@ const exportErrorDataApi = params => {
sign: true
})
}
export default { getOrdersummary, getChannelTypeApi, getSummaryPackage, getSummaryExportApi, getUserInfoApi, getCountNoDataApi, getListApi, getMerchantApi, getExportApi, getPriteApi, getCarBrandListApi, getCarChildListApi, getCarTypeListApi, getCarSeriesListApi, getHotlineApi, getDefaultCarbrandApi, updateHotlineApi, updateCarBrandApi, getProListApi, getPackageListApi, getNewPackageListApi, getEquityApi, updateEquityApi, createCodeApi, getOrderAttrApi, getAllOrderValueApi, verifyOrderApi, checkOrderApi, updateOrderApi, uploadImgApi, backOrderApi, aduitOrderApi, judgeSetting, spaAgressData, merchantInfo, dateBycarNo, activeCodeList, updateActiveCode, getUpdateRecordApi, getBatchTaskListApi, getTaskDetailListApi, createBatchTaskApi, exportErrorDataApi}
const getCityList = params => {
params.method = 'scrm.api.equity.service.claims.area'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
})
}
//获取核赔详情
const getClaimsDetail = params => {
params.method = `scrm.api.equity.service.claims.gl.get.claims.detail`
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
// 查询权益订单其他信息
const getOrderOtherInfo = params => {
params.method = `scrm.api.equity.service.claims.get.other.package.info`
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
// 定损提单
const newSaveWriteOff = params => {
params.method = `scrm.api.equity.service.claims.gl.save.lossAssessment`
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
// 上传图片
const uploadImageApi = params => {
params.method = 'scrm.api.carlife.common.uploadImg'
return http({
url: '/rop-scrm-carlife/router',
method: 'POST',
data: params,
sign: true,
returnAll: true,
noSignAttr: ['file']
})
}
export default {
uploadImageApi,
newSaveWriteOff,
getOrderOtherInfo,
getClaimsDetail,
getCityList,
getOrdersummary,
getChannelTypeApi,
getSummaryPackage,
getSummaryExportApi,
getUserInfoApi,
getCountNoDataApi,
getListApi,
getMerchantApi,
getExportApi,
getPriteApi,
getCarBrandListApi,
getCarChildListApi,
getCarTypeListApi,
getCarSeriesListApi,
getHotlineApi,
getDefaultCarbrandApi,
updateHotlineApi,
updateCarBrandApi,
getProListApi,
getPackageListApi,
getNewPackageListApi,
getEquityApi,
updateEquityApi,
createCodeApi,
getOrderAttrApi,
getAllOrderValueApi,
verifyOrderApi,
checkOrderApi,
updateOrderApi,
uploadImgApi,
backOrderApi,
aduitOrderApi,
judgeSetting,
spaAgressData,
merchantInfo,
dateBycarNo,
activeCodeList,
updateActiveCode,
getUpdateRecordApi,
getBatchTaskListApi,
getTaskDetailListApi,
createBatchTaskApi,
exportErrorDataApi
}
<!-- 弹窗 -->
<template>
<div v-if="showTip" class="table-top-tips">
<div>
<span class="el-icon-warning"></span>
<div>
<slot>{{ content }}</slot>
</div>
</div>
<span class="el-icon-close" @click="showTip = false"></span>
</div>
</template>
<script>
export default {
name: 'title-tip',
data() {
return {}
},
props: {
showTip: {
type: Boolean,
default: true
},
content: {
type: String,
default: '--'
}
},
methods: {}
}
</script>
<style lang="scss" scoped>
.table-top-tips {
box-sizing: border-box;
margin-bottom: 16px;
width: 100%;
min-height: 40px;
line-height: 30px;
font-size: 14px;
background-color: #fdf0bb;
border: 1px solid #f9ca78;
padding: 0 16px;
border-radius: 4px;
color: rgba(0, 0, 0, 0.65);
display: flex;
align-items: center;
justify-content: space-between;
&>div{
display: flex;
align-items: center;
}
.el-icon-warning {
color: #f77315;
margin-right: 8px;
}
.el-icon-close {
margin-left: 30px;
color: #666;
cursor: pointer;
}
}
</style>
......@@ -48,6 +48,14 @@ const staticRoutes = Object.freeze([
meta: {}
},
{
name: 'addDamage',
path: '/beforeSale/writeOff/addDamage/:id',
component: resolve => require([`@/views/beforeSale/writeOff/addDamage.vue`], resolve),
meta: {
toPage: 'toWriteOffList'
}
},
{
name: 'equitySummary',
path: '/beforeSale/equitySummary',
component: resolve => require([`@/views/beforeSale/equitySummary.vue`], resolve),
......@@ -124,6 +132,6 @@ const staticRoutes = Object.freeze([
path: '/GH/Renew/detail/:id',
component: resolve => require([`@/views/GH/Renew/detail.vue`], resolve),
meta: {}
},
}
])
export default staticRoutes
......@@ -1900,7 +1900,7 @@ export default {
let _list = []
this.copyCustomProductList.forEach(item => {
// 套餐商品不做过滤
if (item.parentId || !item.carHighestPrice || (item.carHighestPrice && _price <= NP.divide(item.carHighestPrice || 0, 100) && _price >= NP.divide(item.carLowestPrice || 0, 100))) {
if (item.parentId || !item.carHighestPrice || (item.carHighestPrice && _price < NP.divide(item.carHighestPrice || 0, 100) && _price >= NP.divide(item.carLowestPrice || 0, 100))) {
_list.push(item)
} else {
if (this.autoPackageCodeList.includes(item.packageCode)) {
......
<template>
<div>
<damage :isDetailPage="false" :disabled="curRouteInfo.pageType == 1" :curRouteInfo="curRouteInfo"></damage>
</div>
</template>
<script type="text/ecmascript-6">
import damage from './damage'
export default {
name: 'addDamege',
data() {
return {
activeName: 'writeOff',
curRouteInfo: {}
}
},
components: {
damage
},
created() {
const params = this.$route.params
this.curRouteInfo = JSON.parse(decodeURIComponent(params.id))
console.log(' this.curRouteInfo', this.curRouteInfo)
},
mounted() {
},
methods: {
}
}
</script>
<style lang="scss" scoped></style>
<template>
<div>
<el-tabs class="tabs" v-model="activeName">
<el-tab-pane v-for="item in tabs" :key="item.id" :label="item.name" :name="item.id">
</el-tab-pane>
</el-tabs>
<div v-show="activeName=='damage'">
<damage :curRouteInfo="curRouteInfo" disabled></damage>
</div>
<div v-show="activeName=='writeOff'">
<write-off :curRouteInfo="curRouteInfo" :disabled="curRouteInfo.pageType==1"></write-off>
</div>
</div>
</template>
<script type="text/ecmascript-6">
import damage from './damage'
import writeOff from './writeOff'
export default {
name: 'valuationPricing',
data() {
return {
activeName: 'writeOff',
curRouteInfo:{},
tabs:[
{
id:'writeOff',
name: '核赔信息'
},{
id:'damage',
name: '定损信息'
}
]
}
},
components:{
damage,
writeOff
},
created() {
const params= this.$route.params
this.curRouteInfo = JSON.parse(decodeURIComponent(params.id))
},
methods: {
}
}
</script>
<style lang="scss" scoped>
/deep/ .el-tabs {
.el-tabs__nav-wrap::after {
height: 1px;
background-color: #e5e5e5;
}
.el-tabs__item {
height: 22px !important;
line-height: 10px !important;
font-weight: 400;
font-size: 16px;
}
}
</style>
<template>
<div :style="{ 'margin-top': +marginTop + 'px' }" class="box">
<div v-if="title" class="header" :style="{ cursor: openBtn ? 'pointer' : 'unset' }" @click.stop="showBody()">
<i v-if="openBtn" class="el-icon-caret-right" :class="{ trans: open }"></i>
{{ title }}
<div style="float:right">
<slot name="right"></slot>
</div>
</div>
<div v-if="!openBtn || open" class="main-wrap">
<slot></slot>
</div>
</div>
</template>
<script type="text/ecmascript-6">
export default {
name: 'card',
data() {
return {
open: false
}
},
props: {
title: {
type: String,
default: ''
},
openBtn: {
type: Boolean,
default: false
},
marginTop:{
tyep: Number|String,
default: 16
}
},
mounted() {},
methods:{
showBody(){
if(!this.openBtn) return
this.open = !this.open
}
}
}
</script>
<style lang="scss" scoped>
.box {
background-color: #fff;
.header {
height: 58px;
background-color: #fff;
line-height: 58px;
padding: 0 20px;
box-sizing: border-box;
font-family: inherit;
font-size: 16px;
color: #333333;
font-weight: 600;
}
.main-wrap {
border-top: 1px solid #e5e5e5;
padding: 20px;
height: 100%;
}
}
.header .trans {
transform: rotate(90deg);
}
.header .el-icon-caret-right {
transition: transform 0.3s ease 0s;
}
</style>
<template>
<div>
<Card title="案件补充说明">
<div class="explanation">
<div class="explanation-list" v-for="(item, idx) in supplementList" :key="idx">
<div class="explanation-item">
<label class="label" for="">{{ `说明${idx + 1}:` }}</label>
<el-input :disabled="disabled || item.operation == 1" :placeholder="`请输入说明${idx + 1}`" v-model="item.content" type="textarea" maxlength="200" :rows="3"></el-input>
<i class="el-icon-delete del" v-if="!disabled && supplementList.length > 1 && item.operation != 1" @click="handleDel(idx)"></i>
</div>
<div v-if="item.operation == 1" class="operate-wrap">
<span></span>
<span>操作时间:{{ item.operationTime | formatTime(item.operationTime) }}</span>
</div>
</div>
</div>
<div class="add-explanation" v-if="!disabled" @click="addExplanation">
<i class="el-icon-circle-plus-outline"></i>
<span>新增说明</span>
</div>
</Card>
</div>
</template>
<script type="text/ecmascript-6">
import Card from './card.vue'
import util from '@/util/util'
export default {
name: 'explanation',
data() {
return {}
},
components: {
Card
},
filters: {
formatTime(time) {
return time ? util.dateFormat(time, 'YYYY-MM-DD HH:mm:ss') : '--'
}
},
props: {
supplementList: {
type: Array,
default: function () {
return [{ content: '' }]
}
},
disabled: {
type: Boolean,
default: false
}
},
mounted() {},
methods: {
handleDel(idx) {
this.$delete(this.supplementList, idx)
},
addExplanation() {
const idx = this.supplementList.length
const newObj = { claimsId: this.supplementList[idx - 1].claimsId, content: '' }
this.$set(this.supplementList, idx, newObj)
}
}
}
</script>
<style lang="scss" scoped>
.explanation {
.explanation-list {
margin-bottom: 20px;
&:last-child {
margin-bottom: 10px;
}
}
.operate-wrap {
display: flex;
margin-left: 154px;
width: 580px;
justify-content: space-between;
font-weight: 400;
font-size: 12px;
height: 17px;
line-height: 17px;
margin-top: 4px;
color: #666666;
}
.explanation-item {
display: flex;
// align-items: center;
/deep/ .el-textarea {
width: 580px;
}
.label {
width: 154px;
font-size: 14px;
font-weight: 400;
line-height: 32px;
color: #333;
text-align: right;
flex-shrink: 0;
}
}
.del {
color: #c6c6c6;
font-size: 16px;
margin-left: 10px;
cursor: pointer;
margin-top: 28px;
}
}
.add-explanation {
color: #5850ff;
display: flex;
align-items: center;
margin-left: 154px;
cursor: pointer;
.el-icon-circle-plus-outline {
font-size: 20px;
margin-right: 6px;
}
span {
font-size: 12px;
}
}
</style>
<template>
<div class="help-service">
<div class="service-code">
<img class="service-img" src="../../image/code.png" />
<p class="title">定损及核赔服务咨询</p>
<!-- <p>在线客服随时咨询</p> -->
<p class="service-phone">189 3890 7441</p>
</div>
<div class="service-hotline">
<img class="service-img" src="../../image/icon-phone.png" />
<p>服 务 热 线</p>
</div>
</div>
</template>
<script type="text/ecmascript-6">
export default {
name: 'helpService',
data() {
return {
open: false
}
},
props: {
},
mounted() {},
methods:{
}
}
</script>
<style lang="scss" scoped>
.help-service {
position: fixed;
z-index: 9999;
font-size: 14px;
color: #333333;
top: 10%;
right: 10px;
justify-content: space-between;
width: 200px;
display: flex;
height: 200px;
background: #f3f3f4;
text-align: center;
border: 1px solid rgba(220, 223, 230, 0.5);
box-shadow: 0px 3px 6px -4px rgba(0, 0, 0, 0.12);
border-radius: 4px;
}
.service-code {
width: 144px;
display: flex;
flex-direction: column;
background: #fff;
border-radius: 4px 0 0 4px;
.service-img {
width: 124px;
height: 124px;
margin: 10px;
}
p {
margin: 0;
font-size: 14px;
line-height: 20px;
font-weight: 500;
color: #333333;
}
}
.help-service .service-hotline {
border-radius: 0 4px 4px 0;
height: 200px;
background: #00a77b;
width: 50px;
color: #fff;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
img {
width: 24px;
height: 24px;
}
p {
writing-mode: vertical-lr;
margin-top: 8px;
}
}
</style>
<template>
<Card title="其他信息" class="" openBtn>
<div class="other-info" v-for="(item,idx) in form" :key="idx">
<span class="title">{{item.parentTitle}}</span>
<div class="info-wrap">
<li v-for="sonItem in item.li" :key="sonItem.key">
<label class="label" for="">{{sonItem.label}}</label>
<span class="content">{{otherInfoData[sonItem.key] || '--'}}</span>
</li>
</div>
</div>
</Card>
</template>
<script type="text/ecmascript-6">
import Card from './card.vue'
export default {
name: 'otherInfo',
props:{
otherInfoData:Object
},
data() {
return {
form:[
{
parentTitle:'店面信息',
li:[
{
key:'merchantName',
label:'店面名称:'
},
{
key:'merchantPhone',
label:'店面联系方式:'
},
{
key:'merchantAddr',
label:'店面地址:'
},
]
},
{
parentTitle:'产品详情',
li:[
{
key:'packageName',
label:'产品名称:'
},
{
key:'contractNo',
label:'合同编号:'
},
{
key:'effectiveDate',
label:'生效时间:'
},
{
key:'servicePeriod',
label:'服务期限/年:'
},
{
key:'expirationDate',
label:'起止时间:'
},
]
},
{
parentTitle:'客户信息',
li:[
{
key:'customerName',
label:'客户姓名:'
},
{
key:'customerPhone',
label:'电话号码:'
},
{
key:'customerAddr',
label:'联系地址:'
},
]
},
{
parentTitle:'车辆信息',
li:[
{
key:'vin',
label:'车架号:'
},
{
key:'brandAndShape',
label:'品牌车型:'
},
{
key:'billingDate',
label:'新车开票日期:'
},
{
key:'invoicePrice',
label:'车辆购置价/元:'
},
]
},
]
}
},
components: {
Card
},
mounted() {},
methods:{
}
}
</script>
<style lang="scss" scoped>
.other-info {
list-style: none;
font-size: 14px;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
line-height: 22px;
color: #333333;
margin-bottom: 16px;
.info-wrap {
background: #f9f9f9;
padding: 20px;
li {
display: inline-block;
line-height: 22px;
padding: 10px 0;
text-align: center;
width: 500px;
.label {
color: #666666;
}
}
}
}
</style>
<template>
<div class="dask" @click="showPreImg = false" v-if="showPreImg">
<div class="img-wrap">
<el-image class="img" :src="url" fit="contain"></el-image>
<i class="el-icon-circle-close"></i>
</div>
</div>
</template>
<script type="text/ecmascript-6">
export default {
name: 'pre-img',
data() {
return {
showPreImg: false,
url:'http://qcimg01.glsx.com.cn:7060/group1/M00/02/3E/wKgD3mMtcAqAYYpJAABtFzfpAMg215.png'
}
},
mounted() {},
methods:{
preImage(url){
this.url = url
this.showPreImg = true
}
}
}
</script>
<style lang="scss" scoped>
.dask {
position: fixed;
top: 0;
right: 0;
left: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.5);
z-index: 200;
display: flex;
justify-content: center;
padding: 50px;
.img-wrap {
position: relative;
width: 100%;
height: 800px;
.img {
width: 100%;
height: 100%;
}
}
}
</style>
<template>
<el-dialog :visible.sync="showDialog" :close-on-click-modal="false" class="my-dialog" top="100px" width="720px" title="温馨提示">
<div class="notice">
<span>订单列表有主管已经审核通过的订单,为不影响核赔,需获得客户的电子签名授权的补偿申请书。</span>
<span>请通知客户在收到系统通知后,及时处理</span>
</div>
<span class="title">操作方法</span>
<div class="wrap">
<div class="desc-itme" v-for="(item, idx) in descList" :key="idx">
<span class="serial">{{ idx + 1 }}</span>
<span class="desc">{{ item }}</span>
<span class="line" v-if="idx != descList.length - 1"></span>
</div>
</div>
<!-- <img class="example" src="http://qcimg01.glsx.com.cn:7060/group1/M00/02/2F/wKgD3mMhQOyADlRGAAaTge2Z02k318.png" alt="" /> -->
</el-dialog>
</template>
<script type="text/ecmascript-6">
export default {
name: 'process-tip',
data() {
return {
descList:['登录小程序','会员权益','选择正在核赔的权益','签名授权'],
showDialog: false
}
},
mounted() {},
methods:{
openTipDialog(val){
this.showDialog = val || false
}
}
}
</script>
<style lang="scss" scoped>
.example {
width: 346px;
height: 688px;
}
.notice {
span {
display: block;
color: #666;
line-height: 20px;
}
}
.title {
color: #333;
font-size: 16px;
margin: 12px 0;
display: block;
}
.wrap {
display: flex;
padding: 30px 0;
background: #f9f9f9;
.desc-itme {
width: 170px;
display: flex;
flex-direction: column;
align-items: center;
height: 68px;
justify-content: space-between;
position: relative;
.serial {
display: inline-block;
color: #fff;
width: 32px;
height: 32px;
border-radius: 50%;
background-color: #00a77b;
text-align: center;
line-height: 32px;
}
.desc {
color: #333;
font-size: 14px;
}
.line {
height: 1px;
width: 110px;
background: #e5e5e5;
position: absolute;
top: 16px;
left: calc(50% + 32px);
}
}
}
</style>
<template>
<div>
<el-dialog :visible.sync="showDialog" class="my-dialog" width="720px" title="寄件详情">
<div class="sendCard">
<span class="title">邮寄地址</span>
<div class="content">
<p>收件人:权益服务组</p>
<p>联系电话:18938907441</p>
<p>收件地址:广东省深圳市南山区留仙大道3370号南山智园崇文园1号楼14楼</p>
</div>
</div>
<div class="card">
<span class="title">寄件详情(发票右下角备注栏备注客户名+合同号)</span>
<div class="content">
<p>名称: 国任财产保险股份有限公司深圳分公司</p>
<p>纳税人识别号: 914403005503071468</p>
<p>税务登记公司地址: 深圳市罗湖区笋岗街道红岭路与梅园路交汇处招商开元中心一期03地块第一栋B单元24层02-06A</p>
<p>联系电话:0755-88379089</p>
<p>开户行及银行账号: 中国建设银行股份有限公司深圳田背支行 44201618500052507158</p>
</div>
</div>
</el-dialog>
</div>
</template>
<script type="text/ecmascript-6">
export default {
name: 'send-detail',
data() {
return {
}
},
props: {
showDialog:{
type:Boolean,
default:false
}
},
mounted() {},
methods:{
}
}
</script>
<style lang="scss" scoped>
.sendCard {
background: #f9f9f9;
padding: 16px 20px;
&:first-child {
margin-bottom: 16px;
}
.title {
font-size: 16px;
color: #333;
}
.content {
margin-top: 8px;
p {
margin: 0;
line-height: 22px;
font-size: 14px;
color: #666;
}
}
}
</style>
<template>
<div>
<el-tabs class="tabs" v-model="activeName" @tab-click="handleClick">
<el-tab-pane v-for="item in tabs" :key="item.name" :label="item.label" :name="item.name">
<span slot="label" :class="[{noPassTab:noPass(item.name,'tab')}]"><span v-if="item.isRequire==1" class="required">*</span>{{item.label}}</span>
<div v-if="curCode && activeName=='detail'" class="second-tabs">
<template v-for="ele in detailImgList">
<span :class="[{ active: curCode == ele.serviceItemCode },{'noPass':noPass(ele)}]" :key="ele.serviceItemCode" v-if="ele.checked" @click="changeSecondTab(ele)">{{ ele.serviceItemName }}</span>
</template>
</div>
<span v-if="isWriteOff && curCode =='SC0002' && activeName=='detail'">无附件资料待上传</span>
<img-list :isWriteOff="isWriteOff" :isCustomerCommit="isCustomerCommit" :curLossType="curLossType" :disabled="disabled" :id="id" :curRouteInfo="curRouteInfo" :curKey="activeName" :curCode="curCode" :list="attachmentList"></img-list>
</el-tab-pane>
</el-tabs>
</div>
</template>
<script type="text/ecmascript-6">
import cameraUrl from '@/assets/camera.png'
import write_off from '@/assets/logo.png'
import url from '../../image/code.png'
import imgList from './imgList'
// import Card from './card.vue'
export default {
name: 'uploadMaterial',
props:{
tabs:{
type: Array
},
detailImgList:{
type: Array
},
id: {
type: Number
},
attachmentList:{
type: Array
},
curCodefromParent:{
type: String,
default: ''
},
curRouteInfo: Object,
disabled:{
type: Boolean,
default: false
},
curLossType:{
type: Array,
default:function(){
return []
}
},
isCustomerCommit:{
type: Boolean,
default: false
},
isWriteOff:{
type: Boolean,
default: false
}
},
computed:{
noPass(){
return function(val, type){
const target = this.attachmentList.find(item =>{
if(type=='tab'){
return (val == item.key && item?.imgObj?.auditStatus===0)
}else{
return (item.serviceItemCode == val.serviceItemCode && item?.imgObj?.auditStatus===0 && val.checked)
}
})
return !!target
}
}
},
data() {
return {
url,
cameraUrl,
curCode: '',
write_off,
activeName: 'base'
}
},
components: {
imgList,
// Card
},
mounted() {
const target = this.detailImgList.find(item => item.checked)
this.curCode = target?.serviceItemCode || ''
},
methods: {
handleClick(){
this.$emit('handleClick',this.activeName)
},
setTab(val){
this.activeName = val
},
changeSecondTab(item){
if(item) this.curCode = item.serviceItemCode
},
setActiveTab(){
const target = this.detailImgList.find(item => item.checked)
this.curCode = target?.serviceItemCode || ''
}
}
}
</script>
<style lang="scss" scoped>
/deep/ .el-tabs {
.el-tabs__nav-wrap::after {
height: 1px;
background-color: #e5e5e5;
}
.el-tabs__item {
height: 45px;
font-size: 16px;
font-weight: 500;
}
}
.second-tabs {
height: 36px;
background: #f8f8f8;
border-radius: 4px;
display: flex;
position: relative;
align-items: center;
padding: 2px;
margin-bottom: 16px;
span {
height: 100%;
display: flex;
align-items: center;
padding: 0 16px;
font-size: 14px;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500;
color: #00a77b;
}
.active {
background-color: #fff;
}
}
.transport-pic {
font-size: 14px;
color: #00a479;
cursor: pointer;
}
.noPass,.noPassTab{
position: relative;
&::before{
content: '';
height: 6px;
width: 6px;
position: absolute;
right: 11px;
background-color: red;
border-radius: 50%;
top: 8px;
}
}
.noPassTab{
&::before{
right: -6px;
top: 0;
}
}
.required {
color: #f56c6c;
margin-right: 4px;
}
</style>
<template>
<div class="writeOff">
<div class="box">
<div class="header title" style="height: 53px; line-height: 53px">
<span style="height: 53px; cursor: pointer; display: flex; align-items: center" @click="back">
<i class="el-icon-arrow-left" style="font-size: 18px"></i>
返回
</span>
</div>
<div class="custom-info">
<p class="title" style="margin-bottom: 20px">报案信息(客户提交)</p>
<div class="info">
<span class="item" v-for="(val, key) in customObj" :key="key">
<span class="label">{{ val ? val + ':' : '' }}</span>
{{ info[key] }}
</span>
</div>
</div>
</div>
<div class="box" style="margin-top: 10px">
<div class="header title">报案信息(店面补充)</div>
<div class="handler-info">
<span class="item" v-for="(val, key) in handlerObj" :key="key">
<span class="label">{{ val ? val + ':' : '' }}</span>
{{ info[key] }}
</span>
<div class="item service">
<span class="label">申请核赔服务:</span>
<div class="sevice-box">
<div v-for="(item, index) in info.serviceItemsList" :key="index" class="service-item">
{{ item.serviceItemName }}
</div>
</div>
</div>
</div>
</div>
</div>
</template>
<script type="text/ecmascript-6">
import util from '@/util/util'
export default {
name: 'writeOffDetail',
data() {
return {
info: {},
customObj: {
writeOffCode: '核销码',
nullval: '',
reporterName: '报案人',
reporterPhone: '报案人联系号码',
reporterDate: '报案日期',
reimbursementDate: '出险日期'
},
handlerObj: {
handlerName: '经办人',
handlerPhone: '经办人联系号码'
}
}
},
mounted() {
this.getDetail(this.$route.params)
},
methods: {
getDetail({ id }) {
this.$apis.beforeSale.getWriteOffDetail({ writeOffCode: id }).then(res => {
if (res.code == '0') {
this.info = res.data
}
})
},
back() {
this.$router.push({
path: '/beforeSale/index'
})
}
}
}
</script>
<style lang="scss" scoped>
.writeOff {
.box {
background-color: #fff;
}
p {
margin: 0;
}
.item {
width: 350px;
padding: 15px 0;
font-size: 12px;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #6c6f71;
line-height: 17px;
display: inline-block;
margin-right: 120px;
.label {
width: 140px;
text-align: right;
display: inline-block;
}
}
.service {
margin-right: 0 !important;
display: flex;
width: 100%;
.label {
height: 36px;
line-height: 36px;
white-space: nowrap;
}
.sevice-box {
width: 800px;
.service-item {
width: 240px;
height: 36px;
background: #f7f7f7;
border: 1px solid #e9e9e9;
display: inline-flex;
align-items: center;
font-size: 12px;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #6c6f71;
line-height: 17px;
padding: 0 12px;
box-sizing: border-box;
margin: 0 20px 20px 0;
}
}
}
.title {
font-family: PingFangSC-Medium;
font-size: 14px;
color: #333333;
font-weight: 700;
}
.header {
border-bottom: 1px solid #eeeeee;
height: 60px;
background-color: #fff;
line-height: 60px;
padding: 0 20px;
}
.custom-info {
height: 220px;
padding: 20px;
box-sizing: border-box;
.info {
width: 950px;
}
}
.handler-info {
padding: 20px;
}
}
</style>
......@@ -3,7 +3,9 @@
<div class="widget">
<div class="title">报案信息(客户提交)</div>
<div class="content">
<glsxCombiForm :formDisable="isDisabled" :isInline="false" :regionData="regionData" class="edit-form-container" ref="editFormRefReport" labelWidth="154px" defaultWidth="432px" :formObj="repotData" :formData="editFormData"></glsxCombiForm>
<glsxCombiForm :formDisable="isDisabled" :isInline="false" :regionData="regionData" class="edit-form-container"
ref="editFormRefReport" labelWidth="154px" defaultWidth="432px" :formObj="repotData" :formData="editFormData">
</glsxCombiForm>
</div>
</div>
......@@ -11,7 +13,8 @@
<div>
<Card title="报案信息(店面补充)" class="handler-info gl-form-page">
<glsx-combi-form :formDisable="isDisabled" ref="handlerRef" :isInline="false" labelWidth="154px" defaultWidth="432px" :formObj="repotData" :formData="handlerForm">
<glsx-combi-form :formDisable="isDisabled" ref="handlerRef" :isInline="false" labelWidth="154px"
defaultWidth="432px" :formObj="repotData" :formData="handlerForm">
<div slot="approveAmountSlot" class="amount-wrap">
<div v-for="(item, index) in itemList" :key="index">
<el-checkbox @change="selectService" v-model="item.checked">{{ item.serviceItemName }}</el-checkbox>
......@@ -27,14 +30,20 @@
<el-checkbox label="4">车牌重置</el-checkbox>
</el-checkbox-group>
</div>
<div class="unit-price" :class="[{ nopt20: item.serviceItemCode == 'SC0006' || item.serviceItemCode == 'SC0003' }]">
<div class="unit-price"
:class="[{ nopt20: item.serviceItemCode == 'SC0006' || item.serviceItemCode == 'SC0003' }]">
<div>
<label class="required" for="">预估损失金额/元:</label>
<el-input maxlength="10" @input="validPrice($event, index, 'applyAmount')" @blur="changePrice($event, index, 'applyAmount')" placeholder="请输入预估损失金额" v-model="item.applyAmount"></el-input>
<el-input maxlength="10" @input="validPrice($event, index, 'applyAmount')"
@blur="changePrice($event, index, 'applyAmount')" placeholder="请输入预估损失金额"
v-model="item.applyAmount"></el-input>
</div>
<div v-if="item.lossAssessmentFlag" style="margin-top: 10px;">
<label class="required" for="">保险公司定损金额/元:</label>
<el-input :disabled="!item.applyAmount" maxlength="10" @input="validPrice($event, index, 'lossAssessmentAmount')" @blur="changePrice($event, index, 'lossAssessmentAmount')" placeholder="请输入保险定损金额" v-model="item.lossAssessmentAmount"></el-input>
<el-input :disabled="!item.applyAmount" maxlength="10"
@input="validPrice($event, index, 'lossAssessmentAmount')"
@blur="changePrice($event, index, 'lossAssessmentAmount')" placeholder="请输入保险定损金额"
v-model="item.lossAssessmentAmount"></el-input>
</div>
</div>
</div>
......@@ -54,19 +63,22 @@
<!-- 上传资料 -->
<div>
<upload-material :lossTypeList.sync="lossTypeList" :isDisabled="isDisabled" :insuranceAttachmentConfigs.sync="insuranceAttachmentConfigs"></upload-material>
<upload-material :lossTypeList.sync="lossTypeList" :isDisabled="isDisabled"
:insuranceAttachmentConfigs.sync="insuranceAttachmentConfigs"></upload-material>
</div>
<!-- 案件补充说明 -->
<div>
<explanation :isDisabled="isDisabled" :supplementList="repotData.supplementList1" :operatorName="repotData.updatedBy" :id="repotData.id"></explanation>
<explanation :isDisabled="isDisabled" :supplementList="repotData.supplementList1"
:operatorName="repotData.updatedBy" :id="repotData.id"></explanation>
</div>
<!-- 待定损和待核赔的时候才显示案件通融说明 -->
<Card v-if="repotData.exceptionImgUrl && (repotData.status == 6 || repotData.status == 12)" title="案件通融说明">
<div class="tr-wrap">
<label class="label" for="">通融说明:</label>
<el-image class="img" :preview-src-list="[repotData.exceptionImgUrl]" :src="repotData.exceptionImgUrl"></el-image>
<el-image class="img" :preview-src-list="[repotData.exceptionImgUrl]"
:src="repotData.exceptionImgUrl"></el-image>
</div>
</Card>
......@@ -232,8 +244,8 @@ export default {
insuranceAttachmentConfigs: Array,
itemList: Array,
otherInfoData: Object,
isDisabled:Boolean,
lossTypeList:Array
isDisabled: Boolean,
lossTypeList: Array
},
watch: {
'editForm.reportDate'(newVal, oldVal) {
......@@ -297,7 +309,7 @@ export default {
this.$set(this.itemList[id], key, 1)
}
let maxPrice = 200000
if(key == 'lossAssessmentAmount') {
if (key == 'lossAssessmentAmount') {
maxPrice = 2000000
}
if (Number(e.target.value) > maxPrice) {
......@@ -315,7 +327,7 @@ export default {
}, 0)
this.repotData.applyAmount = (total / 100).toFixed(2)
},
changeType(e){
changeType(e) {
// if(!e.length){
// this.$message({
// message: '至少选一个服务类型',
......@@ -324,7 +336,7 @@ export default {
// return
// }
this.lossTypeList = e
this.$emit('getCurrentLoosType',e)
this.$emit('getCurrentLoosType', e)
}
}
}
......@@ -333,19 +345,23 @@ export default {
.edit-form-container {
padding: 32px 0 12px;
}
.handler-info {
/deep/ #serviceCodes {
display: block;
margin-bottom: 0;
}
}
.amount-wrap {
font-family: PingFangSC-Regular, PingFang SC;
width: fit-content;
color: #333333;
.loss_wrap {
background: #f9f9f9;
padding: 20px;
.required {
width: 154px;
text-align: right;
......@@ -353,12 +369,14 @@ export default {
font-size: 14px;
}
}
.unit-price {
background: #f9f9f9;
padding: 20px;
// display: flex;
flex-wrap: nowrap;
margin-bottom: 10px;
.required {
width: 154px;
display: inline-block;
......@@ -366,26 +384,32 @@ export default {
font-weight: 400;
font-size: 14px;
}
.el-input {
width: 432px;
margin-right: 60px;
}
}
.nopt20 {
padding: 0 20px;
}
.dialog-unit {
background: #f9f9f9;
padding: 20px;
list-style: none;
margin-bottom: 10px;
li {
margin-bottom: 20px;
display: flex;
align-items: center;
&:last-child {
margin-bottom: 0;
}
label {
width: 154px;
flex-shrink: 0;
......@@ -394,6 +418,7 @@ export default {
}
}
}
.lump-sum {
background: #f9f9f9;
font-size: 14px;
......@@ -403,16 +428,19 @@ export default {
display: flex;
justify-content: space-between;
align-items: center;
.sign {
font-size: 16px;
color: #ff6d00;
}
.price {
color: #ff6d00;
font-size: 18px;
}
}
}
.tr-wrap {
.label {
width: 154px;
......@@ -425,6 +453,7 @@ export default {
line-height: 20px;
margin-top: 6px;
}
.img {
width: 104px;
height: 104px;
......
......@@ -2,7 +2,8 @@
<div class="report-components gl-form-page">
<div class="title">报案信息(客户提交)</div>
<template v-if="[1, 3, 4, 5, 6].includes(pageType) && !renewDisable">
<glsxCombiForm :regionData="regionData" class="edit-form-container" ref="editFormRefReport" labelWidth="154px" defaultWidth="432px" :formObj="editForm" :formData="editFormData" :formRules="editRule">
<glsxCombiForm :regionData="regionData" class="edit-form-container" ref="editFormRefReport" labelWidth="154px"
defaultWidth="432px" :formObj="editForm" :formData="editFormData" :formRules="editRule">
<div v-if="pageType == 1" style="display: inline-block" slot="syncBtn">
<el-button style="margin: 0 12px" type="primary" @click="toSearchOrderDetail">同步</el-button>
<span style="font-weight: 400; color: #666">{{ `同步${isGH ? '核销码关联合同中的' : '合同中'}以下信息,同步后的信息可手动编辑` }}</span>
......@@ -403,6 +404,7 @@ export default {
<style lang="scss" scoped>
.report-components {
background: white;
.title {
padding: 0 20px;
font-size: 16px;
......@@ -413,17 +415,21 @@ export default {
margin: 0 0;
color: #333;
}
.edit-form-container {
padding: 32px 0 12px;
}
/deep/ .el-form-item {
display: flex;
.el-textarea {
textarea {
font-family: auto;
}
}
}
/deep/ #reportDate,
/deep/ #internalReimbursementDate,
/deep/ #reimbursementDate {
......@@ -431,6 +437,7 @@ export default {
.el-input__inner {
padding-left: 15px;
}
.el-input__prefix {
right: 5px;
text-align: right;
......@@ -439,26 +446,33 @@ export default {
}
}
}
.detail_pannel {
padding: 20px;
.top_line {
padding: 8px 20px;
background: #f9f9f9;
margin-bottom: 20px;
}
.wrap {
flex-wrap: wrap;
}
.line_widget {
margin-bottom: 20px;
.label {
width: 154px;
text-align: right;
.required {
color: #eb4e4e;
font-size: 6px;
margin-right: 4px;
}
.text {
font-size: 14px;
font-weight: 400;
......@@ -466,6 +480,7 @@ export default {
line-height: 20px;
}
}
.value {
width: 348px;
font-size: 14px;
......
......@@ -360,12 +360,12 @@ export default {
activeNameTabs: 'first',
srcList: [],
allinjureList: [
{name: '购置税', key: 'purchaseTax'},
{name: '折旧费', key: 'depreciation'},
{name: '商业险保费', key: 'commercialInsurance'},
{name: '登记费', key: 'registrationFee'},
{name: '加改装件费用', key: 'retrofits'},
{name: '代步车费用', key: 'scooterFare'}
{ name: '购置税', key: 'purchaseTax' },
{ name: '折旧费', key: 'depreciation' },
{ name: '商业险保费', key: 'commercialInsurance' },
{ name: '登记费', key: 'registrationFee' },
{ name: '加改装件费用', key: 'retrofits' },
{ name: '代步车费用', key: 'scooterFare' }
]
}
},
......
......@@ -126,6 +126,10 @@ const statusList = [
{
confId: 39,
confName: '资金红冲'
},
{
confId: 40,
confName: '已失效'
}
]
export default {
......@@ -156,7 +160,7 @@ export default {
return '去处理'
},
condition: row => {
return [0, 19].includes(row.scope.status) || ([22, 25].includes(row.scope.status) && row.scope.source != 3)
return [0, 19].includes(row.scope.status) || ([22, 25].includes(row.scope.status) && row.scope.source != 3 && row.scope.source != 4)
},
attrs: {
type: 'text',
......@@ -174,7 +178,7 @@ export default {
condition: row => {
const { status, source } = row.scope
if (status == 2) {
return source != 3
return source != 3 && source != 4
}
return ![19, 33].includes(status)
},
......@@ -187,6 +191,24 @@ export default {
}
},
{
type: 'el-button',
name: row => {
return '上传资料'
},
condition: row => {
// return true;
const { status, source } = row.scope
return [32].includes(status) && source == 4
},
attrs: {
type: 'text',
fn: '上传资料'
},
listeners: {
click: row => this.handleView(row.scope, 2)
}
},
{
type: 'GLButton',
name: row => {
return '重新提交'
......@@ -277,7 +299,7 @@ export default {
mutiSelectName: 'djIndex',
mutiSelectUniqueKey: 'id',
checkSelectable: row => {
return row.source != 3
return row.source != 3 && row.source != 4
},
tableColumns: [
{
......@@ -328,10 +350,10 @@ export default {
},
{
label: '门店提交时间',
prop: 'commitTime',
prop: 'merchantCommitDate',
width: 180,
formatter: cellValue => {
return cellValue.commitTime ? dayjs(cellValue.commitTime).format('YYYY-MM-DD HH:mm:ss') : '-'
return cellValue.merchantCommitDate ? dayjs(cellValue.merchantCommitDate).format('YYYY-MM-DD HH:mm:ss') : '-'
}
},
{
......@@ -531,6 +553,10 @@ export default {
39: {
name: '资金红冲',
color: '#EB4E4E'
},
40: {
name: '已失效',
color: '#C6C6C6'
}
},
isFollowSync: false
......@@ -596,10 +622,34 @@ export default {
handleClose() {
this.isFollowSync = false
},
handleView(item, type) {
// type 1-查看 2-上传资料 3-重新提交 4-去审核 5-签名 6-新增
let urlParam = {
pageType: type,
status: item.status
}
if (type != 6) {
urlParam.writeOffCode = item.writeOffCode
urlParam.id = item.id
}
const params = encodeURIComponent(JSON.stringify(urlParam))
// if ((item.preStatus == 6 && item.status == 31) || item.status == 5 || item.status == 6 || item.status == 7 || item.status == 29 || item.status == 30 || item.status == 999) {
this.$router.push({ path: `/beforeSale/writeOff/addDamage/${params}/` })
// console.log(22222)
// this.$router.push({ path: '/djClaims/djOrder/' })
// this.$router.push({ path: '/claims/order/' + temp, query: { $title: title } })
// } else if (item.status == 11) {
// this.$refs.preImgRef.preImage(signed)
// } else {
// this.$router.push(`/beforeSale/writeOff/addWriteOff/${params}/`)
// }
},
// 1.新增 2.查看 3.重新提交 4.去处理 5.运营经理审核 6 核赔审核
handleEdit(editNo, row) {
const title = this.jumpTitle(editNo)
if (row && row.source == 3) {
if (row && (row.source == 3 || row.source == 4)) {
const params = {
editNo,
isGH: true,
......@@ -735,11 +785,13 @@ export default {
border: 1px solid #5850ff;
padding: 0 16px;
border-radius: 4px;
.el-icon-warning {
font-size: 16px;
color: #5850ff;
margin-right: 8px;
}
.count_num {
font-size: 14px;
color: #5850ff;
......@@ -748,27 +800,33 @@ export default {
margin: 0 8px;
}
}
.search_container {
background: #ffffff;
padding: 20px 20px 0;
}
.table_widget {
padding: 0px 20px 20px;
background: #ffffff;
// box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1);
}
.table_point {
width: 6px;
height: 6px;
border-radius: 50%;
margin-right: 8px;
}
.table_top_line {
margin-bottom: 10px;
}
.el-button + .el-button {
margin-left: 8px;
}
/deep/ .el-form {
.el-form-item {
// margin-right: 12px !important;
......
......@@ -32,7 +32,7 @@
<label class="required" for="">预估损失金额/元:</label>
<el-input maxlength="10" @input="validPrice($event, index, 'applyAmount')" @blur="changePrice($event, index, 'applyAmount')" placeholder="请输入预估损失金额" v-model="item.applyAmount"></el-input>
</div>
<div v-if="item.lossAssessmentFlag" style="margin-top: 10px;">
<div v-if="item.lossAssessmentFlag" style="margin-top: 10px">
<label class="required" for="">保险公司定损金额/元:</label>
<el-input :disabled="!item.applyAmount" maxlength="10" @input="validPrice($event, index, 'lossAssessmentAmount')" @blur="changePrice($event, index, 'lossAssessmentAmount')" placeholder="请输入保险定损金额" v-model="item.lossAssessmentAmount"></el-input>
</div>
......@@ -232,10 +232,31 @@ export default {
insuranceAttachmentConfigs: Array,
itemList: Array,
otherInfoData: Object,
isDisabled:Boolean,
lossTypeList:Array
isDisabled: Boolean,
lossTypeList: Array
},
watch: {
repotData(newVal, oldVal) {
console.log('repotData', newVal)
if (newVal.source == 4) {
let itemIndex = this.editFormData.findIndex(item => item.name === 'contractNo')
console.log(itemIndex)
this.editFormData[itemIndex] = {
label: '核销码',
name: 'writeOffCode',
type: 'input',
maxlength: 8,
isDisabled: true
}
// this.$set(this.editFormData[itemIndex], {
// label: '核销码',
// name: 'writeOffCode',
// type: 'input',
// maxlength: 8,
// isDisabled: true
// })
}
},
'editForm.reportDate'(newVal, oldVal) {
if (newVal) {
this.updateTimeLimit(newVal, 'reportDate')
......@@ -266,6 +287,7 @@ export default {
limitTime = '00:00:00 - 23:59:59'
}
const Item = this.editFormData.find(item => item.name === key)
this.$set(Item.customPickerOptions, 'selectableRange', limitTime)
},
validPrice(e, id, key) {
......@@ -297,7 +319,7 @@ export default {
this.$set(this.itemList[id], key, 1)
}
let maxPrice = 200000
if(key == 'lossAssessmentAmount') {
if (key == 'lossAssessmentAmount') {
maxPrice = 2000000
}
if (Number(e.target.value) > maxPrice) {
......@@ -315,7 +337,7 @@ export default {
}, 0)
this.repotData.applyAmount = (total / 100).toFixed(2)
},
changeType(e){
changeType(e) {
// if(!e.length){
// this.$message({
// message: '至少选一个服务类型',
......@@ -324,7 +346,7 @@ export default {
// return
// }
this.lossTypeList = e
this.$emit('getCurrentLoosType',e)
this.$emit('getCurrentLoosType', e)
}
}
}
......@@ -333,19 +355,23 @@ export default {
.edit-form-container {
padding: 32px 0 12px;
}
.handler-info {
/deep/ #serviceCodes {
display: block;
margin-bottom: 0;
}
}
.amount-wrap {
font-family: PingFangSC-Regular, PingFang SC;
width: fit-content;
color: #333333;
.loss_wrap {
background: #f9f9f9;
padding: 20px;
.required {
width: 154px;
text-align: right;
......@@ -353,12 +379,14 @@ export default {
font-size: 14px;
}
}
.unit-price {
background: #f9f9f9;
padding: 20px;
// display: flex;
flex-wrap: nowrap;
margin-bottom: 10px;
.required {
width: 154px;
display: inline-block;
......@@ -366,26 +394,32 @@ export default {
font-weight: 400;
font-size: 14px;
}
.el-input {
width: 432px;
margin-right: 60px;
}
}
.nopt20 {
padding: 0 20px;
}
.dialog-unit {
background: #f9f9f9;
padding: 20px;
list-style: none;
margin-bottom: 10px;
li {
margin-bottom: 20px;
display: flex;
align-items: center;
&:last-child {
margin-bottom: 0;
}
label {
width: 154px;
flex-shrink: 0;
......@@ -394,6 +428,7 @@ export default {
}
}
}
.lump-sum {
background: #f9f9f9;
font-size: 14px;
......@@ -403,16 +438,19 @@ export default {
display: flex;
justify-content: space-between;
align-items: center;
.sign {
font-size: 16px;
color: #ff6d00;
}
.price {
color: #ff6d00;
font-size: 18px;
}
}
}
.tr-wrap {
.label {
width: 154px;
......@@ -425,6 +463,7 @@ export default {
line-height: 20px;
margin-top: 6px;
}
.img {
width: 104px;
height: 104px;
......
......@@ -381,6 +381,7 @@ export default {
<style lang="scss" scoped>
.report-components {
background: white;
.title {
padding: 0 20px;
font-size: 16px;
......@@ -391,17 +392,21 @@ export default {
margin: 0 0;
color: #333;
}
.edit-form-container {
padding: 32px 0 12px;
}
/deep/ .el-form-item {
display: flex;
.el-textarea {
textarea {
font-family: auto;
}
}
}
/deep/ #reportDate,
/deep/ #internalReimbursementDate,
/deep/ #reimbursementDate {
......@@ -409,6 +414,7 @@ export default {
.el-input__inner {
padding-left: 15px;
}
.el-input__prefix {
right: 5px;
text-align: right;
......@@ -417,26 +423,33 @@ export default {
}
}
}
.detail_pannel {
padding: 20px;
.top_line {
padding: 8px 20px;
background: #f9f9f9;
margin-bottom: 20px;
}
.wrap {
flex-wrap: wrap;
}
.line_widget {
margin-bottom: 20px;
.label {
width: 154px;
text-align: right;
.required {
color: #eb4e4e;
font-size: 6px;
margin-right: 4px;
}
.text {
font-size: 14px;
font-weight: 400;
......@@ -444,6 +457,7 @@ export default {
line-height: 20px;
}
}
.value {
width: 348px;
font-size: 14px;
......
......@@ -200,7 +200,8 @@
<div class="widget">
<div class="title">报案信息(客户提交)</div>
<div class="content pad20">
<div class="code text_14_4_333">核销码:{{ repotData.writeOffCode }}</div>
<div class="code text_14_4_333" v-if="repotData.source == 4">核销码:{{ repotData.writeOffCode }}</div>
<div class="code text_14_4_333" v-if="repotData.source == 3">合同号:{{ repotData.contractNo }}</div>
<div class="pannel flex_wrap">
<div v-for="(item, index) in watchData" :key="index" class="line flex_sc">
<div class="label text_14_4_666">
......@@ -360,12 +361,12 @@ export default {
activeNameTabs: 'first',
srcList: [],
allinjureList: [
{name: '购置税', key: 'purchaseTax'},
{name: '折旧费', key: 'depreciation'},
{name: '商业险保费', key: 'commercialInsurance'},
{name: '登记费', key: 'registrationFee'},
{name: '加改装件费用', key: 'retrofits'},
{name: '代步车费用', key: 'scooterFare'}
{ name: '购置税', key: 'purchaseTax' },
{ name: '折旧费', key: 'depreciation' },
{ name: '商业险保费', key: 'commercialInsurance' },
{ name: '登记费', key: 'registrationFee' },
{ name: '加改装件费用', key: 'retrofits' },
{ name: '代步车费用', key: 'scooterFare' }
]
}
},
......
......@@ -169,6 +169,7 @@ export default {
// 5 审核+定损 审核+核赔
const urlParam = this.$route.params
const urlQuery = JSON.parse(decodeURIComponent(urlParam.id))
console.log(urlQuery)
this.pageType = urlQuery.editNo
this.routeInfo = urlQuery
if (this.routeInfo.orderId) {
......@@ -222,10 +223,12 @@ export default {
attachments3: res.attachments3,
claimsAttachmentConfigs2: res.claimsAttachmentConfigs2,
updatedBy: res.updatedBy,
expressName:res.expressName,
expressNo:res.expressNo,
expressName: res.expressName,
expressNo: res.expressNo,
exceptionImgUrl: res.exceptionImgUrl,
preStatus: res.preStatus
preStatus: res.preStatus,
writeOffCode: res.writeOffCode,
source: res.source
}
// 图片list
......@@ -289,7 +292,7 @@ export default {
item[eleKey] = item[eleKey] ? Number((item[eleKey] / 100).toFixed(2)) : item[eleKey]
})
item.lossTypeList = []
if(item.serviceItemType == 2) {
if (item.serviceItemType == 2) {
item.damageType = item?.damageType ? item.damageType.split(',').map(ele => Number(ele)) : []
}
if (item.serviceItemType == 4 && item.lossType) {
......@@ -418,17 +421,17 @@ export default {
toPassOrder() {
this.isSave = false
const _target = this.itemList?.find(item => item.applyAmount && item.lossAssessmentFlag && !item.lossAssessmentAmount)
if(_target) return this.$message.error(`请输入${_target.serviceItemName}的保险公司定损金额`)
if (_target) return this.$message.error(`请输入${_target.serviceItemName}的保险公司定损金额`)
// applyAmount 预估损失金额 approveAmount 定损批准金额
if (this.orderMsg.status == 23 || this.orderMsg.status == 2) {
// const checkList = ['purchaseTax','depreciation','commercialInsurance','registrationFee','retrofits', 'scooterFare']
// 购置税+折旧费+商业险保费+登记费+加改装件费用+代步车费用 至少一个必填
const priceTarget = this.itemList?.find(item => item.serviceItemType == 1 && item.approveAmount > 0 && !item.purchaseTax && !item.depreciation && !item.commercialInsurance && !item.registrationFee && !item.retrofits && !item.scooterFare)
if(priceTarget) return this.$message.error(`${priceTarget.serviceItemName}的购置税、折旧费、商业险保费、登记费、加改装件费用、代步车费用,至少输入一个`)
if (priceTarget) return this.$message.error(`${priceTarget.serviceItemName}的购置税、折旧费、商业险保费、登记费、加改装件费用、代步车费用,至少输入一个`)
// 最少选择一个损伤类型
const injureTarget = this.itemList?.find(item => item.serviceItemType == 2 && item.approveAmount > 0 && !item?.damageType?.length)
if(injureTarget) return this.$message.error(`至少选择一个${injureTarget.serviceItemName}的损伤类型`)
if (injureTarget) return this.$message.error(`至少选择一个${injureTarget.serviceItemName}的损伤类型`)
const isPass = this.verifyImages(this.claimsAttachmentConfigs)
if (!isPass) {
......@@ -546,7 +549,7 @@ export default {
}
})
},
endCaseFn(){
endCaseFn() {
this.$confirm('确定结束此案件吗', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
......@@ -803,7 +806,7 @@ export default {
[scooterFare]: this.handlePrice(item.scooterFare),
[claimsId]: this.orderMsg.id,
[lossType]: item.serviceItemType == 4 ? item.lossTypeList.join(',') : item.lossType,
[damageType] : item.serviceItemType == 2 && item?.damageType?.length ? item.damageType.join(',') : ''
[damageType]: item.serviceItemType == 2 && item?.damageType?.length ? item.damageType.join(',') : ''
}
Object.assign(itemObj, temp)
})
......@@ -858,15 +861,17 @@ export default {
let para = this.savePara()
const name = this.orderMsg.status == 23 || this.orderMsg.status == 2 ? 'saveClaimsCG' : 'saveCG'
let loading = this.createLoading()
this.$apis.claims[name](para).then(res => {
if(res){
this.$apis.claims[name](para)
.then(res => {
if (res) {
this.$message({
message: '保存成功',
type: 'success'
})
this.toBackList()
}
}).finally(end => {
})
.finally(end => {
loading.close()
})
},
......@@ -898,7 +903,7 @@ export default {
if (lastStr === '.') {
this.$set(this.itemList[id], type, e.target.value.substr(0, len - 1))
}
if(type == 'applyAmount'){
if (type == 'applyAmount') {
const minPrice = 1
if (Number(e.target.value) < minPrice) {
this.$set(this.itemList[id], type, 1)
......@@ -934,32 +939,40 @@ export default {
.passed-wrap {
font-family: PingFangSC-Regular, PingFang SC;
color: #333333;
.passed-item {
margin-bottom: 20px;
&:last-child {
margin-bottom: 0;
}
.name {
font-size: 14px;
}
.set-price {
background: #f9f9f9;
padding: 20px;
list-style: none;
margin-top: 10px;
li {
margin-bottom: 20px;
display: flex;
align-items: center;
&:last-child {
margin-bottom: 0;
}
label {
width: 154px;
display: inline-block;
text-align: right;
}
}
.el-input {
width: 284px;
margin-right: 60px;
......@@ -967,6 +980,7 @@ export default {
}
}
}
.btn-box {
display: flex;
justify-content: center;
......@@ -978,11 +992,13 @@ export default {
border-color: #f56c6c;
color: #f56c6c;
}
.danger-btn:hover {
background: #f56c6c;
border-color: #f56c6c;
color: #fff;
}
.danger-btn:focus {
background: #dd6161;
border-color: #dd6161;
......
......@@ -3,30 +3,37 @@
<div class="info">
<div class="global-title">{{ routeInfo.type == 1 ? '新增' : routeInfo.type == 2 ? '查看' : '编辑' }}延保项目</div>
<div class="main-wrap">
<glsx-combi-form ref="serviceForm" labelWidth="154px" defaultWidth="432px" :isInline="false" :formObj.sync="formObj" :formData="formData" :formRules="myRule">
<glsx-combi-form ref="serviceForm" labelWidth="154px" defaultWidth="432px" :isInline="false"
:formObj.sync="formObj" :formData="formData" :formRules="myRule">
<div slot="powerType">
<el-radio-group :disabled="routeInfo.type == 2" v-model="formObj.powerType">
<el-radio v-for="(item, index) in powerTypeList" :label="index" :key="index">{{ item }}</el-radio>
</el-radio-group>
<el-form-item prop="powerTypeOther" style="margin-bottom: 0px" v-if="formObj.powerType == powerTypeList.length - 1">
<el-input class="wid_432" v-model.trim="formObj.powerTypeOther" :disabled="routeInfo.type == 2" placeholder="请输入自定义动力类型" maxlength="50"></el-input>
<el-form-item prop="powerTypeOther" style="margin-bottom: 0px"
v-if="formObj.powerType == powerTypeList.length - 1">
<el-input class="wid_432" v-model.trim="formObj.powerTypeOther" :disabled="routeInfo.type == 2"
placeholder="请输入自定义动力类型" maxlength="50"></el-input>
</el-form-item>
</div>
<div slot="supportPosition">
<el-radio-group :disabled="routeInfo.type == 2" v-model="formObj.supportPosition">
<el-radio v-for="(item, index) in supportPositionList" :label="index" :key="index">{{ item }}</el-radio>
</el-radio-group>
<el-form-item prop="supportPositionOther" style="margin-bottom: 0px" v-if="formObj.supportPosition == supportPositionList.length - 1">
<el-input class="wid_432" v-model="formObj.supportPositionOther" :disabled="routeInfo.type == 2" placeholder="请输入自定义保障部件" maxlength="50"></el-input>
<el-form-item prop="supportPositionOther" style="margin-bottom: 0px"
v-if="formObj.supportPosition == supportPositionList.length - 1">
<el-input class="wid_432" v-model="formObj.supportPositionOther" :disabled="routeInfo.type == 2"
placeholder="请输入自定义保障部件" maxlength="50"></el-input>
</el-form-item>
</div>
<div slot="contractList">
<el-button icon="el-icon-plus" :disabled="routeInfo.type == 2" @click="addContract">选中合同</el-button>
<div class="table-wrap">
<GLTable :hasPage="false" :hasNum="false" :tableData="formObj.contractList" :tableParams="contractTableParams">
<GLTable :hasPage="false" :hasNum="false" :tableData="formObj.contractList"
:tableParams="contractTableParams">
<div class="table-btns" slot="table-btns" slot-scope="scope">
<el-button type="text" size="small" @click="handlePreview(scope.scope)">预览</el-button>
<el-button type="text" size="small" :disabled="routeInfo.type == 2" @click="handleDelete(scope.scope, scope.index)">删除</el-button>
<el-button type="text" size="small" :disabled="routeInfo.type == 2"
@click="handleDelete(scope.scope, scope.index)">删除</el-button>
</div>
</GLTable>
</div>
......@@ -37,7 +44,8 @@
<el-button v-if="routeInfo.type != 2" type="text" @click="handleSKuEdit">规格组合管理</el-button>
</div>
<div class="speci-box" id="specificationDetailList">
<multipleSpecificationForm ref="multipleSpecificationFormRef" :route-info="routeInfo"></multipleSpecificationForm>
<multipleSpecificationForm ref="multipleSpecificationFormRef" :route-info="routeInfo">
</multipleSpecificationForm>
</div>
</div>
</glsx-combi-form>
......@@ -47,7 +55,8 @@
<el-button @click="jumpListPage">取消</el-button>
<el-button v-if="routeInfo.type != 2" type="primary" @click="commit">提交</el-button>
</div>
<contract-dialog v-if="contractObj.visible" @closeDialog="closeContractDialog" @confirm="confirmContractDialog" :contractObj="contractObj"></contract-dialog>
<contract-dialog v-if="contractObj.visible" @closeDialog="closeContractDialog" @confirm="confirmContractDialog"
:contractObj="contractObj"></contract-dialog>
<pdf-dialog :isVisible="isPdfVisible" title="合同" :pdfUrl="pdfUrl" @closeDialog="handlePdfClose"></pdf-dialog>
</div>
</template>
......@@ -469,7 +478,7 @@ export default {
goodsSpecificationList: goodsSpecificationList
}
console.log(params, 'params')
if (params?.goodsSpecificationList?.length > 75) {
if (params?.goodsSpecificationList?.length > 200) {
return this.$message({
type: 'warning',
message: '商品数量过多,无法操作,请确认后重新保存'
......@@ -530,48 +539,61 @@ export default {
<style lang="scss" scoped>
.info {
background: #ffffff;
.main-wrap {
padding: 32px 20px;
.wid_432 {
width: 432px;
display: block;
}
.services-table {
margin-top: 20px;
&:first-child {
margin-top: 0;
}
}
.add-btn {
display: inline-block;
color: #5850ff;
cursor: pointer;
i {
font-size: 20px;
vertical-align: middle;
}
}
.table-wrap {
width: 591px;
margin-top: 10px;
.table-btns {
display: flex;
/deep/ .el-button {
padding: 0;
}
/deep/ .el-button + .el-button {
/deep/ .el-button+.el-button {
margin-left: 10px;
}
}
}
/deep/ .el-radio-group {
line-height: 32px;
.el-radio {
vertical-align: middle;
}
}
}
}
.skuContent {
.add-btns {
display: flex;
......@@ -615,10 +637,12 @@ export default {
}
}
}
.footer-btn {
text-align: center;
margin-top: 16px;
}
/deep/ .el-radio__original {
display: none !important;
}
......
......@@ -88,7 +88,7 @@
<el-input class="cost-input" placeholder="请输入每月投保成本" @input="changePrice($event, gradeFormObj, 'monthlyInsuranceCost')" :disabled="disabled" v-model="gradeFormObj.monthlyInsuranceCost"></el-input>
</div>
<div slot="specConfigSlot">
<ServicesTable :disabled="disabled" class="services-table" v-for="item in gradeList" :key="item.serviceGrade" :tableData="item"></ServicesTable>
<ServicesTable :disabled="disabled" class="services-table" v-for="item in gradeList" :routeInfo="routeInfo" :key="item.serviceGrade" :tableData="item"></ServicesTable>
<div v-if="!disabled" class="add-btn" @click="handleAddGrade">
<i class="el-icon-circle-plus-outline"></i>
新增规格
......@@ -410,6 +410,7 @@ export default {
this.gradeList.forEach(item => {
const { id, serviceGrade, serviceOverview, serviceDetail, salePeriodData, gradeConfigList } = item
let _gradeConfigList = []
if (!gradeConfigList?.length) throw new Error(`请配置规格${serviceGrade}的价格区间`)
gradeConfigList.forEach((ele, eleIdx) => {
let { priceCoefficient, minPrice, maxPrice, childSalePeriodData, computeFlag } = ele
if (this.isEmpty(minPrice) || this.isEmpty(maxPrice) || (this.isEmpty(priceCoefficient) && computeFlag == 0)) {
......
......@@ -38,9 +38,9 @@
</tr>
<tr v-for="(item, index) in tableData.gradeConfigList" :key="index">
<td class="price">
<el-input :placeholder="placeholder" @input="changePrice($event, item, 'minPrice')" :disabled="disabled" v-model="item.minPrice"></el-input>
<el-input :placeholder="placeholder" @input="changePrice($event, item, 'minPrice')" :disabled="disabled || (routeInfo.id && !item.addFlag)" v-model="item.minPrice"></el-input>
<span class="sign">-</span>
<el-input :placeholder="placeholder" @input="changePrice($event, item, 'maxPrice')" :disabled="disabled" v-model="item.maxPrice"></el-input>
<el-input :placeholder="placeholder" @input="changePrice($event, item, 'maxPrice')" :disabled="disabled || (routeInfo.id && !item.addFlag)" v-model="item.maxPrice"></el-input>
</td>
<td><el-switch v-model="item.computeFlag" :active-value="0" @change="changeComputeFlag($event, item, index)" :inactive-value="1" :disabled="disabled"></el-switch></td>
<td>
......@@ -57,7 +57,7 @@
<td :key="eIdx"><el-input v-model="item.childSalePeriodData[eIdx].salesCost" :placeholder="placeholder" @input="changePrice($event, item.childSalePeriodData[eIdx], 'salesCost')" :disabled="disabled"></el-input></td>
</template>
</template>
<td class="del-btn"><span v-if="index > 2 && !disabled" class="btn" @click="delSection(index)">删除</span></td>
<td class="del-btn"><span v-if="!disabled" class="btn" @click="delSection(index)">删除</span></td>
</tr>
<tr>
<td class="add-btn" :colspan="tableData.salePeriodData.length * 2 + 4"><span v-if="!disabled" class="btn" @click="addSection">新增价格区间</span></td>
......@@ -111,6 +111,12 @@ export default {
key: {
type: String,
default: ''
},
routeInfo: {
type: Object,
default: () => {
return {}
}
}
},
data() {
......@@ -188,7 +194,7 @@ export default {
},
addSection() {
// 获取最后一个的最大价格赋值到新增的最小价格
const minPrice = this.tableData.gradeConfigList[this.tableData.gradeConfigList.length - 1].maxPrice
const minPrice = this.tableData.gradeConfigList[this.tableData.gradeConfigList.length - 1]?.maxPrice || ''
const arr = this.tableData.salePeriodData.map(item => {
return { servicePeriod: item.servicePeriod, standardShelfCost: '', standardSalesCost: '', shelfCost: '', salesCost: '' }
})
......@@ -200,16 +206,17 @@ export default {
priceCoefficient: '',
standardShelfCost: '',
standardSalesCost: '',
childSalePeriodData: arr
childSalePeriodData: arr,
addFlag: true
}
this.tableData.gradeConfigList.push(sectionItem)
},
delSection(idx) {
const minPrice = this.tableData.gradeConfigList[idx - 1].maxPrice
// const minPrice = this.tableData.gradeConfigList[idx - 1]?.maxPrice
this.tableData.gradeConfigList.splice(idx, 1)
if (this.tableData.gradeConfigList.length > idx) {
this.$set(this.tableData.gradeConfigList[idx], 'minPrice', minPrice)
}
// if (this.tableData.gradeConfigList.length > idx) {
// this.$set(this.tableData.gradeConfigList[idx], 'minPrice', minPrice)
// }
}
}
}
......@@ -270,6 +277,7 @@ export default {
.desc-wrap {
height: 88px;
.desc-td {
height: auto;
padding: 12px 16px;
}
.desc {
......
......@@ -107,7 +107,7 @@ export default {
// from输入框change事件
handleInputChangeFrom(value) {
this.userInputForm = value.replace(/[^0-9.]/g, '').replace(/^(100|[1-9]?\d)(\.\d{0,2})?.*$/, '$1$2')
this.userInputForm = value.replace(/[^0-9.]/g, '').replace(/^(199|1\d{2}|[1-9]?\d)(\.\d{0,2})?.*$/, '$1$2');
},
handleInputChangeFromChange() {
......@@ -122,7 +122,7 @@ export default {
// to输入框change事件
handleInputChangeTo(value) {
this.userInputTo = value.replace(/[^0-9.]/g, '').replace(/^(100|[1-9]?\d)(\.\d{0,2})?.*$/, '$1$2')
this.userInputTo = value.replace(/[^0-9.]/g, '').replace(/^(199|1\d{2}|[1-9]?\d)(\.\d{0,2})?.*$/, '$1$2');
},
handleInputChangeToChange() {
// 看一下this.userInputForm 是否有值,如果有应该比它大
......
......@@ -309,15 +309,15 @@ export default {
// val.content = ''
let childContent = ''
if (val.recordType == 1) {
val.content = `【${val.recordType == 1 ? '删除' : '修改'}】状态:${val.useStatus ? '禁用' : '启用'},投保成本${val.insuranceCost}元,上架成本${val.shelfCost}元,嘀加成本${val.salesCost}元,`
val.content = `【${val.recordType == 1 ? '删除' : '修改'}】状态:${val.useStatus ? '禁用' : '启用'},投保成本${val.insuranceCost || '-'}元,上架成本${val.shelfCost || '-'}元,嘀加成本${val.salesCost || '-'}元,`
val?.deleteList?.forEach((v, index) => {
childContent = `${v.fieldName}${v.beforeValue}${v.valueUnit || ''}${index < val?.deleteList?.length - 1 ? ',' : ''}`
childContent = `${v.fieldName}${v.beforeValue || '-'}${v.valueUnit || ''}${index < val?.deleteList?.length - 1 ? ',' : ''}`
val.content += childContent
})
} else {
val.content = `【${val.recordType == 1 ? '删除' : '修改'}】`
val?.detailList?.forEach((v, index) => {
childContent = `${v.fieldName}由${v.beforeValue}${v.valueUnit || ''}变为${v.afterValue}${v.valueUnit || ''}${index < val?.detailList?.length - 1 ? ',' : ''}`
childContent = `${v.fieldName}由${v.beforeValue || '-'}${v.valueUnit || ''}变为${v.afterValue || '-'}${v.valueUnit || ''}${index < val?.detailList?.length - 1 ? ',' : ''}`
val.content += childContent
})
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!