Commit 7754a2bf authored by youjie's avatar youjie

取消包车订单

parent 7654060e
......@@ -78,8 +78,12 @@
</view>
</view>
</view>
<cancelPrompt v-if="showModal" :showModal="showModal" @cancel="cancelModal" @success="cancelSuccess" type="1"
:orderNo="currentData.orderNo"></cancelPrompt>
<cancelPrompt v-if="showModal"
:showModal="showModal"
@cancel="cancelModal"
@success="cancelSuccess" type="1"
:orderNo="currentData.orderNo"
:CancelPolicy="CancelPolicy"></cancelPrompt>
</view>
</template>
<script>
......@@ -98,6 +102,7 @@
showModal: false,
currentData: null,
b2b_user: null,
CancelPolicy: null,
}
},
watch: {
......@@ -414,6 +419,11 @@
//直客订单取消
goCancelZK(item) {
if (item.orderStatus == 2) {
if(item.goodsType==12||item.goodsType==13||item.goodsType==14){
this.initData(item.goodsId)
}else{
this.CancelPolicy = null
}
this.currentData = item
return this.showModal = true
}
......@@ -451,6 +461,17 @@
}
})
},
initData(ProductId) {
this.apipost(
"CarSingle_post_GetTYCarSingleProductInfo",{
ProductId: ProductId,
},
res => {
if (res.resultCode == 1) {
this.CancelPolicy = res.data.CancelPolicy!=''?res.data.CancelPolicy:'暂无'
}
});
},
}
}
</script>
......
......@@ -681,7 +681,6 @@
res => {
if (res.resultCode == 1) {
this.CancelPolicy = res.data.CancelPolicy!=''?res.data.CancelPolicy:'暂无'
console.log(this.CancelPolicy,'==========')
}
});
},
......
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