|
@@ -322,15 +322,6 @@
|
|
|
|
|
|
|
|
<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: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: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> -->
|
|
|
|
|
-
|
|
|
|
|
<block v-if="detailInfo.status == 1">
|
|
<block v-if="detailInfo.status == 1">
|
|
|
<button class="admin-button-com blue big" @click="toPay">去付款</button>
|
|
<button class="admin-button-com blue big" @click="toPay">去付款</button>
|
|
|
</block>
|
|
</block>
|
|
@@ -345,7 +336,7 @@
|
|
|
<script>
|
|
<script>
|
|
|
import { mapGetters } from "vuex";
|
|
import { mapGetters } from "vuex";
|
|
|
import { getCgExpressTrack } from "@/api/express"
|
|
import { getCgExpressTrack } from "@/api/express"
|
|
|
-import { purchaseDetail, purchaseDebtPay,purchaseClearCreateOrder,confirmTake,cancelOrder,ghsDetail } from "@/api/purchase";
|
|
|
|
|
|
|
+import { purchaseDetail, purchaseDebtPay,purchaseClearCreateOrder,cancelOrder,ghsDetail } from "@/api/purchase";
|
|
|
import TuiListCell from "@/components/plugin/list-cell";
|
|
import TuiListCell from "@/components/plugin/list-cell";
|
|
|
import { getGhsDataApi } from "@/api/ghs";
|
|
import { getGhsDataApi } from "@/api/ghs";
|
|
|
import { CURRENT_ENV } from "@/config";
|
|
import { CURRENT_ENV } from "@/config";
|
|
@@ -477,13 +468,6 @@ export default {
|
|
|
methods: {
|
|
methods: {
|
|
|
adError(err) {
|
|
adError(err) {
|
|
|
console.error('原生模板广告加载失败', err)
|
|
console.error('原生模板广告加载失败', err)
|
|
|
- },
|
|
|
|
|
- affirmTake(){
|
|
|
|
|
- if(this.loginStyle == 0){
|
|
|
|
|
- this.$msg('请先登录')
|
|
|
|
|
- return false
|
|
|
|
|
- }
|
|
|
|
|
- this.pageTo({url: '/pagesPurchase/confirmTake?id='+this.detailInfo.id})
|
|
|
|
|
},
|
|
},
|
|
|
copyWl(val){
|
|
copyWl(val){
|
|
|
const self = this;
|
|
const self = this;
|
|
@@ -504,6 +488,9 @@ export default {
|
|
|
})
|
|
})
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 申请售后:直接进售后页;提交申请时若未完成,后端自动「仅入库不改价」再创建售后
|
|
|
|
|
+ */
|
|
|
refundOrder(){
|
|
refundOrder(){
|
|
|
if(this.loginStyle == 0){
|
|
if(this.loginStyle == 0){
|
|
|
this.$msg('请先登录')
|
|
this.$msg('请先登录')
|
|
@@ -517,31 +504,12 @@ export default {
|
|
|
return false
|
|
return false
|
|
|
}
|
|
}
|
|
|
if(this.detailInfo.status == 1){
|
|
if(this.detailInfo.status == 1){
|
|
|
- let that = this
|
|
|
|
|
that.$util.confirmModal({content:'订单未付款'},() => {
|
|
that.$util.confirmModal({content:'订单未付款'},() => {
|
|
|
that.beginInit()
|
|
that.beginInit()
|
|
|
})
|
|
})
|
|
|
return false
|
|
return false
|
|
|
}
|
|
}
|
|
|
- if(this.detailInfo.status == 4){
|
|
|
|
|
- that.pageTo({url: '/pagesPurchase/refund?id='+this.detailInfo.id})
|
|
|
|
|
- }else{
|
|
|
|
|
- if(this.detailInfo.pfShopId && this.detailInfo.pfShopId>0){
|
|
|
|
|
- that.$util.confirmModal({content:'请先确认收货'},() => {
|
|
|
|
|
- that.affirmTake()
|
|
|
|
|
- })
|
|
|
|
|
- }else{
|
|
|
|
|
- that.$util.confirmModal({content:'确认已收货?'},() => {
|
|
|
|
|
- uni.showLoading({mask:true})
|
|
|
|
|
- confirmTake({id:that.detailInfo.id}).then(res=>{
|
|
|
|
|
- uni.hideLoading()
|
|
|
|
|
- if(res.code == 1){
|
|
|
|
|
- that.pageTo({url: '/pagesPurchase/refund?id='+this.detailInfo.id})
|
|
|
|
|
- }
|
|
|
|
|
- })
|
|
|
|
|
- })
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ that.pageTo({url: '/pagesPurchase/refund?id='+this.detailInfo.id})
|
|
|
},
|
|
},
|
|
|
clearOrder(){
|
|
clearOrder(){
|
|
|
|
|
|