Commit 3ba1a0f8 authored by denghr's avatar denghr

111

parent df6147c0
...@@ -105,7 +105,7 @@ ...@@ -105,7 +105,7 @@
<span style="color: #13CE66;cursor: pointer;" @click="handleOrderDetail(scope.row)">订单详情</span> <span style="color: #13CE66;cursor: pointer;" @click="handleOrderDetail(scope.row)">订单详情</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column align="center" label="操作" width="150" fixed="right"> <el-table-column align="center" label="操作" width="300" fixed="right">
<template scope="scope"> <template scope="scope">
<el-button size="small" v-if="scope.row.status >=4" class="el-button el-button--text el-button--small" @click="handleHandoverOrderVehicle(scope.row)">交车记录</el-button> <el-button size="small" v-if="scope.row.status >=4" class="el-button el-button--text el-button--small" @click="handleHandoverOrderVehicle(scope.row)">交车记录</el-button>
<el-button size="small" v-if="scope.row.status == 6" class="el-button el-button--text el-button--small" @click="handleReturnOrderVehicle(scope.row)">还车记录</el-button> <el-button size="small" v-if="scope.row.status == 6" class="el-button el-button--text el-button--small" @click="handleReturnOrderVehicle(scope.row)">还车记录</el-button>
...@@ -208,7 +208,7 @@ ...@@ -208,7 +208,7 @@
<p class="detailTitle" v-if="dedDetail.length>0 && item.status==5" style="margin-top: 15px">定损总罚款{{dedTotal}}元</p> <p class="detailTitle" v-if="dedDetail.length>0 && item.status==5" style="margin-top: 15px">定损总罚款{{dedTotal}}元</p>
<p class="detailTitle" v-if="dedDetail.length>0 && item.status==5">明细</p> <p class="detailTitle" v-if="dedDetail.length>0 && item.status==5">明细</p>
<div v-if="dedDetail.length>0 && item.status==5" v-for="(itm,idx) in dedDetail" :key="idx"> <div v-if="dedDetail.length>0 && item.status==5" v-for="(itm,idx) in dedDetail" :key="idx">
<p class="detailTitle">{{itm.id}}、{{itm.statusName}}</p> <p class="detailTitle">{{itm.id}}、{{itm.statusName}}扣{{itm.cost}}元</p>
<div class="picBox"> <div class="picBox">
<img class="picItem" :src="it" alt="" v-for = "(it,ix) in itm.picList" :key="ix"> <img class="picItem" :src="it" alt="" v-for = "(it,ix) in itm.picList" :key="ix">
</div> </div>
...@@ -645,20 +645,21 @@ ...@@ -645,20 +645,21 @@
that.pictureList=[]; that.pictureList=[];
that.dedDetail=[]; that.dedDetail=[];
that.depositRefundRecord=[]; that.depositRefundRecord=[];
that.dedTotal=''; that.dedTotal=0;
that.Tel=''; that.Tel='';
getStep(row.no).then(response =>{ getStep(row.no).then(response =>{
response.data.forEach(function(item) { response.data.forEach(function(item) {
if(item.type!=1){ if(item.type!=1){
that.Tel = item.customerPhone
that.type = item.type that.type = item.type
if(item.dedDetail){ if(item.dedDetail){
var dedTotal = '' var dedTotal = 0
var dedDetail = JSON.parse(item.dedDetail); var dedDetail = JSON.parse(item.dedDetail);
that.dedDetail = dedDetail; that.dedDetail = dedDetail;
dedDetail.forEach(function(item){ dedDetail.forEach(function(item){
dedTotal += item.cost dedTotal += Number(item.cost)
}) })
that.dedTotal = dedTotal; that.dedTotal = dedTotal.toFixed(2);
} }
item.depositRefundRecord.forEach(function(itm){ item.depositRefundRecord.forEach(function(itm){
itm.updTimeStr = timestamp2Date(itm.updTime); itm.updTimeStr = timestamp2Date(itm.updTime);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment