Browse Source

完善交车准备

master
yunuo970428 2 years ago
parent
commit
60cc1548b1
  1. 16
      anrui-buscenter/anrui-buscenter-ui/src/views/xiaoshouguanli/jiaochezhunbei/readyfordeliveryAdd.vue
  2. 23
      anrui-buscenter/anrui-buscenter-ui/src/views/xiaoshouguanli/jiaochezhunbei/readyfordeliveryInfo.vue

16
anrui-buscenter/anrui-buscenter-ui/src/views/xiaoshouguanli/jiaochezhunbei/readyfordeliveryAdd.vue

@ -42,13 +42,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>
@ -60,7 +60,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>
@ -118,7 +118,10 @@ export default {
sid: '',
useOrgName: '',
useOrgSid: '',
userSid: ''
userSid: '',
onBoardDataStateStr: '',
certificateStateStr: '',
invoicingStateStr: ''
},
rules: {}
}
@ -197,7 +200,10 @@ export default {
sid: '',
useOrgName: '',
useOrgSid: '',
userSid: ''
userSid: '',
onBoardDataStateStr: '',
certificateStateStr: '',
invoicingStateStr: ''
}
this.submitdisabled = false
this.$refs['form_obj'].resetFields()

23
anrui-buscenter/anrui-buscenter-ui/src/views/xiaoshouguanli/jiaochezhunbei/readyfordeliveryInfo.vue

@ -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: '',

Loading…
Cancel
Save