|
|
@ -40,13 +40,13 @@ |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="发票" align="center"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<span class="bluezi" v-if="!scope.row.invoicingState" @click="handleAffirm(scope.row.sid, '01', '发票交接确认', scope.row.invoicingState)">确认</span> |
|
|
|
<span class="bluezi" v-if="!scope.row.invoicingState" @click="handleAffirm(scope.row.sid, '01', '发票交接确认', scope.row.invoicingState)">{{ formobj.invoicingStateStr }}</span> |
|
|
|
<span class="bluezi" v-else @click="handleAffirm(scope.row.sid, '01', '发票交接确认', scope.row.invoicingState)">查看</span> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="合格证" align="center"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<span class="bluezi" v-if="!scope.row.certificateState" @click="handleAffirm(scope.row.sid, '02', '合格证交接确认', scope.row.certificateState)">确认</span> |
|
|
|
<span class="bluezi" v-if="!scope.row.certificateState" @click="handleAffirm(scope.row.sid, '02', '合格证交接确认', scope.row.certificateState)">{{ formobj.certificateStateStr }}</span> |
|
|
|
<span class="bluezi" v-else @click="handleAffirm(scope.row.sid, '02', '合格证交接确认', scope.row.certificateState)">查看</span> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
@ -58,7 +58,7 @@ |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="随车资料" align="center"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<span class="bluezi" v-if="!scope.row.onBoardDataState" @click="handleAffirm(scope.row.sid, '04', '随车资料交接确认', scope.row.onBoardDataState)">确认</span> |
|
|
|
<span class="bluezi" v-if="!scope.row.onBoardDataState" @click="handleAffirm(scope.row.sid, '04', '随车资料交接确认', scope.row.onBoardDataState)">{{ formobj.onBoardDataStateStr }}</span> |
|
|
|
<span class="bluezi" v-else @click="handleAffirm(scope.row.sid, '04', '随车资料交接确认', scope.row.onBoardDataState)">查看</span> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
@ -136,6 +136,23 @@ export default { |
|
|
|
resetState() { |
|
|
|
this.viewState = 1 |
|
|
|
}, |
|
|
|
updateState(index, sid) { |
|
|
|
for (var i = 0; i < this.formobj.carDataList.length; i++) { |
|
|
|
if (this.formobj.carDataList[i].sid === sid) { |
|
|
|
if (index == '01') { |
|
|
|
this.formobj.carDataList[i].invoicingState = true |
|
|
|
} else if (index == '02') { |
|
|
|
this.formobj.carDataList[i].certificateState = true |
|
|
|
} else if (index == '03') { |
|
|
|
this.formobj.carDataList[i].policyState = true |
|
|
|
} else if (index == '04') { |
|
|
|
this.formobj.carDataList[i].onBoardDataState = true |
|
|
|
} else if (index == '05') { |
|
|
|
this.formobj.carDataList[i].otherDataState = true |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
handleReturn() { |
|
|
|
this.formobj = { |
|
|
|
brandName: '', |
|
|
|