|
|
@@ -60,10 +60,17 @@
|
|
|
<text v-else style="color:red;">此单线下付款,提交后钱不会原路退回,请线下转账给客户</text>
|
|
|
</block>
|
|
|
</view>
|
|
|
- <view class="flex-center btn-box" style="margin-bottom:50upx;margin-top:20upx;padding-bottom:40upx;">
|
|
|
+ <view class="flex-center btn-box" style="margin-bottom:50upx;margin-top:20upx;padding-bottom:10upx;">
|
|
|
<view class="flex-center btn" @tap="cancelRefund">取消</view>
|
|
|
<view class="flex-center btn active" @tap="confirmRefund" style="margin-left: 80upx">确定</view>
|
|
|
</view>
|
|
|
+
|
|
|
+ <view style="font-size:32upx;z-index:9999;color:red;text-align:center;font-weight:bold;margin-bottom:30upx;"
|
|
|
+ v-if="!$util.isEmpty(unClear)" @click="goClear(unClear)">
|
|
|
+ <text>已有一个待结账单 ¥{{unClear.actPrice?parseFloat(unClear.actPrice):0}}</text>
|
|
|
+ <text style="font-weight:bold;margin-left:15upx;">查看</text>
|
|
|
+ </view>
|
|
|
+
|
|
|
</view>
|
|
|
</template>
|
|
|
<script>
|
|
|
@@ -71,6 +78,7 @@ import stepStatus from "./components/stepStatus";
|
|
|
import TuiListCell from "@/components/plugin/list-cell";
|
|
|
import { getDetail,refund } from "@/api/order/index";
|
|
|
import { ORDER_STATUS } from "@/utils/declare";
|
|
|
+import { getUnClear } from "@/api/clear"
|
|
|
export default {
|
|
|
name: "orderDetail",
|
|
|
components: {
|
|
|
@@ -85,7 +93,8 @@ export default {
|
|
|
refundType:1,
|
|
|
remark:'',
|
|
|
orderInfo:{},
|
|
|
- couldRefundPrice:0
|
|
|
+ couldRefundPrice:0,
|
|
|
+ unClear:[]
|
|
|
};
|
|
|
},
|
|
|
onShow() {
|
|
|
@@ -176,7 +185,20 @@ export default {
|
|
|
this.product = res.data.product.map(ele=>{
|
|
|
return {...ele,refundCount:null}
|
|
|
})
|
|
|
- }
|
|
|
+
|
|
|
+ let customId = res.data.customId ? res.data.customId : 0
|
|
|
+ if(Number(customId)>0){
|
|
|
+ getUnClear({customId:customId}).then(res=>{
|
|
|
+ if(res.code == 1){
|
|
|
+ this.unClear = res.data.info
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
+ },
|
|
|
+ goClear(item){
|
|
|
+ this.$util.pageTo({url:'/admin/clear/customInfo?id='+item.id})
|
|
|
+ },
|
|
|
}
|
|
|
};
|
|
|
</script>
|