Commit 77cf6d50 by 杨明

fixed

1 parent 70ccb9fd
......@@ -8738,6 +8738,11 @@
"integrity": "sha512-4jbtZXNAsfZbAHiiqjLPBiCl16dES1zI4Hpzzxw61Tk+loF+sBDBKx1ICKKKwIqQ7M0mFn1TmkN7euSncWgHiQ==",
"dev": true
},
"number-precision": {
"version": "1.6.0",
"resolved": "https://registry.npmjs.org/number-precision/-/number-precision-1.6.0.tgz",
"integrity": "sha512-05OLPgbgmnixJw+VvEh18yNPUo3iyp4BEWJcrLu4X9W05KmMifN7Mu5exYvQXqxxeNWhvIF+j3Rij+HmddM/hQ=="
},
"oauth-sign": {
"version": "0.9.0",
"resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.9.0.tgz",
......
<!--
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-05-28 09:34:05
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-05-30 21:17:21
* @FilePath: \scrm-micro-presale\src\views\GH\Renew\components\ClaimsNote\index.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template>
<div>
<div class="caseDesc-components">
<div class="title">定损记录</div>
<div class="list-wrap">
<el-timeline>
<el-timeline-item v-for="(activity, index) in activities" :key="index" :color="activity.color" :timestamp="activity.timestamp">
<el-timeline-item v-for="(activity, index) in recordList" :key="index" :color="activity.color" :timestamp="activity.createdDate">
<div class="inline">
<div class="content">{{ activity.content }}</div>
<div v-if="activity.extra" class="tip">{{ activity.extra }}</div>
<div v-if="activity.operation" class="tip">{{ activity.operation }}</div>
</div>
</el-timeline-item>
</el-timeline>
......@@ -19,7 +27,9 @@
<script type="text/ecmascript-6">
export default {
name: 'claimsNote',
props: {},
props: {
recordList:Array
},
components: {},
data() {
return {
......@@ -77,7 +87,7 @@ export default {
.content {
font-weight: 400;
font-size: 14px;
color: #1D2129;
color: #1d2129;
}
.tip {
display: inline;
......
......@@ -5,7 +5,7 @@
<repair ref="repairRef" @changeObjectType="changeObjectType" :isGH="routeInfo.isGH" :pageType="pageType" :serviceItemsList.sync="serviceItemsList" :totalPrice.sync="totalPrice" :accountForm.sync="accountForm"></repair>
<material ref="materialRef" :pageType="pageType" :materialForm.sync="materialForm"></material>
<caseDesc :supplementList="supplementList"></caseDesc>
<claimsNote></claimsNote>
<claimsNote :recordList="recordList"></claimsNote>
<div class="page-btm-btn" v-if="pageType == 0">
<el-button type="primary" @click="confirmSubmit(1)">提交</el-button>
<el-button type="primary" plain @click="confirmSubmit(2)">草稿</el-button>
......@@ -16,12 +16,12 @@
</div>
<GLDialog class="gl-form-page gl-form-min" title="定损通过" mode="mid" :visible.sync="showPassedDialog" @onOk="comfirmPass" @onCancel="canclePass">
<div class="passed-wrap">
<div v-for="(item,index) in serviceItemsList" :key="index" class="set-price">
<div v-for="(item, index) in serviceItemsList" :key="index" class="set-price">
<li>
<label for="">批准金额/元:</label>
<el-input size="small" maxlength="10" placeholder="请输入定损批准金额" v-model="approveAmountsInput[index]"></el-input>
</li>
<div class="tips">门店申请金额:{{item.applyAmount || 0}}元</div>
<div class="tips">门店申请金额:{{ item.applyAmount || 0 }}元</div>
</div>
</div>
</GLDialog>
......@@ -125,10 +125,11 @@ export default {
maxlength: 200
}
],
supplementList:[],
approveAmountsInput:{
0:'',
1:''
supplementList: [],
recordList: [],
approveAmountsInput: {
0: '',
1: ''
}
}
},
......@@ -172,7 +173,7 @@ export default {
},
//详情
getDetailById() {
this.$apis.claims.getClaimsDetail({ id: this.routeInfo.orderId,needDetail:true }).then(res => {
this.$apis.claims.getClaimsDetail({ id: this.routeInfo.orderId, needDetail: true }).then(res => {
// 以下是report数据
for (let key in this.editForm) {
this.editForm[key] = res[key]
......@@ -195,7 +196,7 @@ export default {
res.files.forEach(item => {
let obj = { url: item.fileUrl, fileType: item.fileType, name: item.fileName, progress: 100 }
if (item.fileCode == '1') {
if ( this.materialForm.idCard.length === 0) {
if (this.materialForm.idCard.length === 0) {
this.materialForm.idCard.push(obj)
} else {
this.materialForm.idCardBack.push(obj)
......@@ -206,10 +207,15 @@ export default {
this.materialForm.otherInfo.push(obj)
}
})
res.supplementList.forEach(el=>{
res.supplementList.forEach(el => {
el.createdDate = util.dateFormat(el.createdDate, 'YYYY-MM-DD HH:mm:ss')
})
this.supplementList = res.supplementList || []
const obj_o = ['', '提交至待核赔', '草稿', '提交至待定损', '定损通过', '定损不通过', '上传发票']
this.recordList = (res.recordList || []).forEach(item => {
item.operation = obj_o[item.operation]
})
})
},
// 新增的时候,输入合同号,带出信息
......@@ -379,21 +385,27 @@ export default {
for (let i = 0; i < this.serviceItemsList.length; i++) {
sc_obg[this.serviceItemsList[i].serviceItemCode] = this.approveAmounts
}
this.$apis.claims.renewalAudit({ ...this.editForm, operation: 4, id: this.routeInfo.orderId, ...this.accountForm, approveAmounts: JSON.stringify(sc_obg) }).then(res => {})
this.renewalAudit({ approveAmounts: JSON.stringify(sc_obg) }, 4)
this.toBackList()
},
renewalAudit(params, operation) {
this.$apis.claims.renewalAudit({ ...this.editForm, operation, id: this.routeInfo.orderId, ...this.accountForm, ...params }).then(res => {})
},
canclePass() {
this.showPassedDialog = false
},
//定损不通过
comfirmNoPass() {},
comfirmNoPass() {
this.renewalAudit({ ...this.noPassObj }, 5)
this.cancleNoPass()
},
cancleNoPass() {
this.showNoPassDialog = false
},
// 返回上一页
toBackList() {
this.$router.push({ path: '/GH/Renew/renew'})
},
this.$router.push({ path: '/GH/Renew/renew' })
}
}
}
</script>
......@@ -434,7 +446,7 @@ export default {
margin-right: 60px;
}
}
.tips{
.tips {
font-weight: 400;
font-size: 14px;
color: #999999;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!