|
|
@@ -303,20 +303,22 @@
|
|
|
</view>
|
|
|
<view class="app-footer open_btn">
|
|
|
|
|
|
+
|
|
|
+ <button class="admin-button-com blue big" v-if="detailInfo.status == 1" style="margin-right:40upx;" @click="cancelMyOrder()">取消</button>
|
|
|
+
|
|
|
<block v-if="detailInfo.status != 1">
|
|
|
<block v-if="afterSale == 1">
|
|
|
- <button class="admin-button-com blue big" style="margin-right:60upx;" @click="refundOrder()">申请售后</button>
|
|
|
+ <button class="admin-button-com blue big" style="margin-right:40upx;" @click="refundOrder()" v-if="detailInfo.payStatus == 1">申请售后</button>
|
|
|
</block>
|
|
|
</block>
|
|
|
|
|
|
- <button class="admin-button-com blue big" open-type="share" v-if="detailInfo.status!=5 && detailInfo.payStatus != 1"
|
|
|
- style="margin-right:50upx;padding-left:50upx;padding-right:50upx;">邀请付款</button>
|
|
|
+ <button class="admin-button-com blue big" open-type="share" v-if="detailInfo.status!=5 && detailInfo.payStatus != 1" style="margin-right:50upx;padding-left:50upx;padding-right:50upx;">邀请付款</button>
|
|
|
|
|
|
<block v-if="detailInfo.book == 0">
|
|
|
- <button class="admin-button-com blue big" v-if="detailInfo.status== 3 || detailInfo.status== 2" @click="affirmTake()" style="margin-right:50upx;padding-left:50upx;padding-right:50upx;">确认收货</button>
|
|
|
+ <button class="admin-button-com blue big" v-if="detailInfo.status== 3 || detailInfo.status== 2" @click="affirmTake()" style="margin-right:50upx;padding-left:30upx;padding-right:30upx;">确认收货</button>
|
|
|
</block>
|
|
|
<block v-else>
|
|
|
- <button class="admin-button-com blue big" v-if="detailInfo.status== 3" @click="affirmTake()" style="margin-right:50upx;padding-left:50upx;padding-right:50upx;">确认收货</button>
|
|
|
+ <button class="admin-button-com blue big" v-if="detailInfo.status== 3" @click="affirmTake()" style="margin-right:40upx;padding-left:30upx;padding-right:30upx;">确认收货</button>
|
|
|
</block>
|
|
|
|
|
|
<!-- <button class="admin-button-com blue big" v-if="detailInfo.status== 4" @click="affirmTake()" style="margin-right:50upx;padding-left:50upx;padding-right:50upx;">再次改价</button> -->
|
|
|
@@ -335,7 +337,7 @@
|
|
|
<script>
|
|
|
import { mapGetters } from "vuex";
|
|
|
import { getCgExpressTrack } from "@/api/express"
|
|
|
-import { purchaseDetail, purchaseDebtPay,purchaseClearCreateOrder,confirmTake } from "@/api/purchase";
|
|
|
+import { purchaseDetail, purchaseDebtPay,purchaseClearCreateOrder,confirmTake,cancelOrder } from "@/api/purchase";
|
|
|
import TuiListCell from "@/components/plugin/list-cell";
|
|
|
import { getGhsDataApi } from "@/api/ghs";
|
|
|
export default {
|
|
|
@@ -431,6 +433,16 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
+ cancelMyOrder(){
|
|
|
+ this.$util.confirmModal({content:'确认取消?'},() => {
|
|
|
+ cancelOrder({id:this.detailInfo.id}).then(res=>{
|
|
|
+ if(res.code == 1){
|
|
|
+ this.$msg('取消成功')
|
|
|
+ this.beginInit()
|
|
|
+ }
|
|
|
+ })
|
|
|
+ })
|
|
|
+ },
|
|
|
refundOrder(){
|
|
|
if(this.loginStyle == 0){
|
|
|
this.$msg('请先登录')
|