Commit 7754a2bf authored by youjie's avatar youjie

取消包车订单

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