二手车交易,返回按钮路径

This commit is contained in:
2025-03-14 14:18:15 +08:00
parent b349671004
commit 3ea4168b87
3 changed files with 27 additions and 7 deletions

View File

@ -12,7 +12,10 @@
<span><img class="noAudit" src="@/assets/secondHandCar/noAudit.png" />审核不通过</span>
<span>{{auditRemark}}</span>
</div>
<div class="audit supplierInfo" v-if="type==2">
<div><span>供应商名称</span><span>{{supplierName}}</span></div>
<div><span>供应商编号</span><span>{{supplierCode}}</span></div>
</div>
</div>
<div class="contentWrap" :class="[type==1 ? 'noContentAudit': 'hasContentAudit']">
<div class="oneContent content">
@ -132,6 +135,8 @@ export default {
auditReason:'',
auditRemark:'',
status:'',
supplierName:'',
supplierCode:'',
homePage:false,
}
},
@ -140,6 +145,7 @@ export default {
this.type=this.$route.query.type || urlParams.get('type');
this.id=this.$route.query.id || urlParams.get('id');
this.queryType=this.$route.query.queryType || urlParams.get('queryType');
this.homePage=this.$route.query.homePage
if( this.id){
let res = await carInfoDetail({
id:this.id,
@ -150,6 +156,8 @@ export default {
this.form.emissionStandard=res.data.emissionStandard?.code
this.auditRemark=res.data?.auditRemark
this.status=res.data?.status?.code
this.supplierName=res.data?.supplierName
this.supplierCode=res.data?.supplierCode
}
if(this.$route.params.form){
this.form={...this.$route.params.form}
@ -180,7 +188,7 @@ export default {
// url = 'http://localhost:8080'
}
let urls=url + '/h5/supplier/dispatch/res/privacy.html'
this.$router.push({ name: "privacyComponent", query: {url:urls,type:2},params: { form: this.form,radio:this.radio } })
this.$router.push({ name: "privacyComponent", query: {url:urls,type:2,homePage:this.homePage},params: { form: this.form,radio:this.radio } })
},
closeParentDialog() {
if (window.parent) {