Commit 17759ee2 by 前端

Merge branch 'SAAS+V4.52.0-0429' into 'master'

上线合并

See merge request !87
2 parents f9e0add3 b74c9667
import NP from 'number-precision'
const gradeObj = {
gradeConfigList: [
{
servicePeriod: '',
maxPrice: '15',
minPrice: '0',
computeFlag: 0,
priceCoefficient: '',
standardShelfCost: '',
standardSalesCost: '',
shelfCost: '',
salesCost: '',
childSalePeriodData: []
},
{
servicePeriod: '',
maxPrice: '30',
minPrice: '15',
computeFlag: 0,
priceCoefficient: '',
standardShelfCost: '',
standardSalesCost: '',
shelfCost: '',
salesCost: '',
childSalePeriodData: []
},
{
servicePeriod: '',
maxPrice: '200',
minPrice: '30',
computeFlag: 0,
priceCoefficient: '',
standardShelfCost: '',
standardSalesCost: '',
shelfCost: '',
salesCost: '',
childSalePeriodData: []
}
// {
// servicePeriod: '',
// maxPrice: '15',
// minPrice: '0',
// computeFlag: 0,
// priceCoefficient: '',
// standardShelfCost: '',
// standardSalesCost: '',
// shelfCost: '',
// salesCost: '',
// childSalePeriodData: []
// },
// {
// servicePeriod: '',
// maxPrice: '30',
// minPrice: '15',
// computeFlag: 0,
// priceCoefficient: '',
// standardShelfCost: '',
// standardSalesCost: '',
// shelfCost: '',
// salesCost: '',
// childSalePeriodData: []
// },
// {
// servicePeriod: '',
// maxPrice: '',
// minPrice: '',
// computeFlag: 0,
// priceCoefficient: '',
// standardShelfCost: '',
// standardSalesCost: '',
// shelfCost: '',
// salesCost: '',
// childSalePeriodData: [],
// }
],
salePeriodData: [],
serviceGrade: 'A',
......@@ -132,5 +132,6 @@ export const handleGradeData = (dataFromApi, salePeriodList = []) => {
})
arr.push(_gradeObj)
})
console.log(arr, '===')
return arr
}
......@@ -3,7 +3,7 @@
<template>
<div class="tab_wrap">
<el-tabs v-model="activeNameTabs">
<el-tab-pane v-if="[1, 12, 13, 14, 2, 3, 4, 0, 10, 11, 8, 9, 7, 26, 27, 28].includes(repotData.status) || (repotData.status == 31 && repotData.preStatus != 6)" class="bg" label="核赔信息" name="second">
<el-tab-pane v-if="[1, 12, 13, 14, 2, 3, 4, 0, 10, 11, 8, 9, 7, 26, 27, 28, 36, 37, 38, 39].includes(repotData.status) || (repotData.status == 31 && repotData.preStatus != 6)" class="bg" label="核赔信息" name="second">
<div class="widget">
<div class="title">维修信息</div>
<div class="content pad20">
......
......@@ -245,7 +245,7 @@ const followList = [
const tableStatus = ['待提交国任', '待支付', '校验不通过', '支付成功', '支付失败', '待受理', '待定损', '定损不通过', '定损通过', '待主管审核', '主管审核不通过', '待客户签字授权', '待核赔', '核赔不通过', '核赔通过', '', '', '', '', '', '', '', '', '', '', '', '待运营经理审核', '运营经理审核通过', '运营经理审核不通过', '已失效', '已删除', '已结束案件', '', '', '', '', '待发送资金', '已发资金', '资金退票', '资金红冲'] // 36:"待发送资金" 37:"已发资金" 38:"资金退票" 39:"资金红冲"
const colors = ['#FDB757', '#FDB757', '#EB4E4E', ' #2CCA74', '#EB4E4E', '#FDB757', '#FDB757', '#EB4E4E', ' #2CCA74', '#FDB757', '#EB4E4E', '#FDB757', '#FDB757', '#EB4E4E', '#2CCA74', '', '', '', '', '', '', '', '', '', '', '', '#FDB757', '#2CCA74', '#EB4E4E', '#999', '#999', '#999', '', '', '', '', '#FDB757', '#2CCA74', '#C6C6C6', '#EB4E4E']
// 操作对应状态
const WATCH = [5, 7, 13, 8, 9, 10, 11, 12, 14, 1, 3, 4, 26, 27, 28, 29, 30, 31] // 查看
const WATCH = [5, 7, 13, 8, 9, 10, 11, 12, 14, 1, 3, 4, 26, 27, 28, 29, 30, 31, 36, 37, 38, 39] // 查看
const FOLLOW_HISTORY = [5, 6, 12, 7, 13, 8, 9, 10, 11, 2, 1, 3] //跟进记录和历史赔付
const CHECK = [6] // 定损审核
const CHECK_HP = [12] // 核赔审核
......
......@@ -3,7 +3,7 @@
<template>
<div class="tab_wrap">
<el-tabs v-model="activeNameTabs">
<el-tab-pane v-if="[19, 21, 22, 23, 25, 1, 3].includes(repotData.status)" class="bg" label="核赔信息" name="second">
<el-tab-pane v-if="[19, 21, 22, 23, 25, 1, 3, 36, 37, 38, 39].includes(repotData.status)" class="bg" label="核赔信息" name="second">
<div class="widget">
<div class="title">维修信息</div>
<div class="content pad20">
......
......@@ -147,6 +147,7 @@ export default {
methods: {
changePrice(value, item, key) {
const decimal = ['standardShelfCost', 'standardSalesCost', 'minPrice', 'maxPrice'].includes(key) ? 2 : 16
const maxNum = ['minPrice', 'maxPrice'].includes(key) ? 200 : null
item[key] = value
? value
.replace(/^0\d/g, '0')
......@@ -158,6 +159,15 @@ export default {
.replace(/\./g, '')
.replace('$#$', '.')
.replace(new RegExp(`^(\\-)*(\\d+)\\.(\\d{${decimal}}).*`, 'g'), '$1$2.$3')
.replace(new RegExp(`^(-?\\d+(?:\\.\\d{0,${decimal}})?).*`), (match) => {
if (maxNum !== null) {
const num = parseFloat(match)
if (num > maxNum) {
return maxNum.toString()
}
}
return match
})
: ''
},
changeComputeFlag(e, item) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!