|
|
@@ -5,13 +5,10 @@
|
|
|
<view class="title">
|
|
|
客户
|
|
|
</view>
|
|
|
- <view class="address-des_bx content-box"
|
|
|
- @click='pageTo({url:"/pagesClient/member/detail",query: {id: detailInfo.customId}})'>
|
|
|
+ <view class="address-des_bx content-box" @click='pageTo({url:"/pagesArrears/details",query: {id: detailInfo.customId}})'>
|
|
|
<view>
|
|
|
<view> {{ detailInfo.customName }} {{ detailInfo.customMobile }} </view>
|
|
|
- <view class="">
|
|
|
- {{ detailInfo.customAddress}}
|
|
|
- </view>
|
|
|
+ <view>{{ detailInfo.customAddress}}</view>
|
|
|
</view>
|
|
|
<view>
|
|
|
<i @click.stop="callUp(detailInfo.customMobile)" class="iconfont icondianhua1"></i>
|
|
|
@@ -23,19 +20,14 @@
|
|
|
</view>
|
|
|
<view class="bills-info_box content-box">
|
|
|
<view class="order-info_box">
|
|
|
- <view>日期:</view>
|
|
|
+ <view>订单日期:</view>
|
|
|
<view>{{ detailInfo.addTime }}</view>
|
|
|
</view>
|
|
|
<view class="order-info_box">
|
|
|
<view>单号编码:</view>
|
|
|
<view>{{ detailInfo.orderSn }}</view>
|
|
|
<view class="price">
|
|
|
- <button
|
|
|
- @click="copy(detailInfo.orderSn)"
|
|
|
- class="admin-button-com default"
|
|
|
- >
|
|
|
- 复制
|
|
|
- </button>
|
|
|
+ <button @click="copy(detailInfo.orderSn)" class="admin-button-com default">复制</button>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="order-info_box">
|
|
|
@@ -44,29 +36,23 @@
|
|
|
</view>
|
|
|
<view class="order-info_box">
|
|
|
<view>出货时间:</view>
|
|
|
- <view v-if="detailInfo.outTime == '0000-00-00 00:00:00'">-</view>
|
|
|
+ <view v-if="detailInfo.outTime == '0000-00-00 00:00:00'">--</view>
|
|
|
<view v-else>{{ detailInfo.outTime }}</view>
|
|
|
</view>
|
|
|
<view class="order-info_box">
|
|
|
<view>客户下单:</view>
|
|
|
- <view v-if="detailInfo.customShopAdminId == 0">-</view>
|
|
|
- <view v-else>✔</view>
|
|
|
- </view>
|
|
|
- <view class="order-info_box">
|
|
|
- <view>欠款:</view>
|
|
|
- <view v-if="detailInfo.debt==1">是</view>
|
|
|
+ <view v-if="detailInfo.customShopAdminId == 0">--</view>
|
|
|
<view v-else>
|
|
|
- <view v-if="detailInfo.clearId > 0">已结清 <span style="color:blue;margin-left:10rpx;" @click="pageTo({url: '/admin/clear/customInfo',query: {id: detailInfo.clearId}})">结账单</span></view>
|
|
|
- <view v-else>-</view>
|
|
|
+ <i class="iconfont icondagou" style="font-size:35rpx;"></i>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="order-info_box">
|
|
|
<view>支付方式:</view>
|
|
|
- <view>{{ detailInfo.payWay==0?'微信':detailInfo.payWay==1?'支付宝':detailInfo.payWay==4?'现金':detailInfo.payWay==5?'银行卡':'未知' }}</view>
|
|
|
+ <view>{{ detailInfo.payWay==0?'微信':detailInfo.payWay==1?'支付宝':detailInfo.payWay==4?'现金':detailInfo.payWay==5?'银行卡':'--' }}</view>
|
|
|
</view>
|
|
|
<view class="order-info_box">
|
|
|
<view>配送方式:</view>
|
|
|
- <view>{{ detailInfo.sendType==1?'待确认':detailInfo.sendType==2?'自取':detailInfo.sendType==3?'本店送':detailInfo.sendType==4?'快递配送':'未知' }}</view>
|
|
|
+ <view>{{ detailInfo.sendType==1?'待确认':detailInfo.sendType==2?'自取':detailInfo.sendType==3?'本店送':detailInfo.sendType==4?'快递配送':'--' }}</view>
|
|
|
</view>
|
|
|
<view class="order-info_box">
|
|
|
<view>订单状态:</view>
|
|
|
@@ -84,8 +70,27 @@
|
|
|
<view>退款方式:</view>
|
|
|
<view style="color:red;font-weight:bold;font-size:30rpx;">{{detailInfo.tkExplain||''}}</view>
|
|
|
</view>
|
|
|
+ </view>
|
|
|
|
|
|
+ <view class="bills-info_box content-box" style="margin-top:25rpx;">
|
|
|
+ <view class="order-info_box" v-if="detailInfo.debt == 1">
|
|
|
+ <view>欠款状态:</view>
|
|
|
+ <view>是</view>
|
|
|
+ <view class="price">
|
|
|
+ <text v-if="detailInfo.debtAmount > 0" @click='pageTo({url:"/pagesArrears/details",query: {id: detailInfo.customId}})' style="margin-right:38rpx;color:#3385FF;font-size:26rpx;">全部欠款</text>
|
|
|
+ <button @click="settleOrder(detailInfo)" class="admin-button-com">结清</button>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="order-info_box" v-else>
|
|
|
+ <view>欠款状态:</view>
|
|
|
+ <view v-if="detailInfo.clearId > 0">已结帐</view>
|
|
|
+ <view class="price" v-if="detailInfo.clearId > 0">
|
|
|
+ <button @click="pageTo({url: '/admin/clear/customInfo',query: {id: detailInfo.clearId}})" class="admin-button-com">查看帐单</button>
|
|
|
+ </view>
|
|
|
+ <view v-if="detailInfo.clearId == 0">--</view>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
+
|
|
|
<view class="content-box shipping-address" v-if="detailInfo.expressProgress!=''">
|
|
|
<view> 配送进展:<text>{{ detailInfo.expressProgress.progressName }}</text> </view>
|
|
|
<i class="iconfont iconqishouyinying"></i>
|
|
|
@@ -93,8 +98,8 @@
|
|
|
<view class="flex-space title">
|
|
|
商品信息
|
|
|
<view class="flex" style="color: #3385ff;font-weight: 400" v-if="detailInfo.status == 4">
|
|
|
- <navigator v-if="detailInfo.refund==2" :url="`/pagesOrder/refundMsg?orderSn=${detailInfo.orderSn}`">有退款</navigator>
|
|
|
- <navigator v-if="detailInfo.refund==1" :url="`/pagesOrder/refund?id=${option.id}`" style="margin-left: 20rpx;">发起退款</navigator>
|
|
|
+ <navigator v-if="detailInfo.refund==2" :url="`/pagesOrder/refundMsg?orderSn=${detailInfo.orderSn}`">有退款</navigator>
|
|
|
+ <navigator v-if="detailInfo.refund==1" :url="`/pagesOrder/refund?id=${option.id}`" style="margin-left: 20rpx;">发起退款</navigator>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="module-com content-box">
|
|
|
@@ -197,6 +202,7 @@ import stepStatus from "./components/stepStatus";
|
|
|
import TuiListCell from "@/components/plugin/list-cell";
|
|
|
import { getDetail,debtPay,hasPay, freeShipping,confirmFinish,cancel } from "@/api/order/index";
|
|
|
import { getOrderProduct } from "@/api/order-item/index";
|
|
|
+import { clearOrderApi } from "@/api/arrears/index";
|
|
|
import productMins from "@/mixins/product";
|
|
|
import { ORDER_STATUS } from "@/utils/declare";
|
|
|
import BLE from "@/mixins/BLE";
|
|
|
@@ -233,6 +239,51 @@ export default {
|
|
|
this.init();
|
|
|
},
|
|
|
methods: {
|
|
|
+ //结帐(单个结帐没有优惠)
|
|
|
+ settleOrder(item) {
|
|
|
+ let id = item.id
|
|
|
+ let customId = item.customId
|
|
|
+ let actPrice = item.actPrice
|
|
|
+ let that = this
|
|
|
+ let payWay = 0
|
|
|
+ uni.showActionSheet({
|
|
|
+ itemList: ['请选择收款方式:', '微信', '支付宝','现金','银行卡'],
|
|
|
+ success: function (respond) {
|
|
|
+ let currentIndex = respond.tapIndex
|
|
|
+ let inWay = [{name:"未选择",id:-1},{name:"微信",id:0},{name:"支付宝",id:1},{name:"现金",id:4},{name:"银行卡",id:5}]
|
|
|
+ if(currentIndex > 0){
|
|
|
+
|
|
|
+ payWay = inWay[currentIndex].id
|
|
|
+ let params = {
|
|
|
+ id:JSON.stringify([{id:id}]),
|
|
|
+ customId:customId,
|
|
|
+ payWay:payWay,
|
|
|
+ modifyPrice:actPrice
|
|
|
+ }
|
|
|
+
|
|
|
+ uni.showModal({
|
|
|
+ title: "提示",
|
|
|
+ content: "确认结清欠款?",
|
|
|
+ confirmText: "确认",
|
|
|
+ success: function (res) {
|
|
|
+ if (res.confirm) {
|
|
|
+ clearOrderApi(params).then(res => {
|
|
|
+ if(res.code == 1) {
|
|
|
+ that.pageTo({url:'/common/pageSuccess?title=操作成功', type: 2});
|
|
|
+ }
|
|
|
+ }).catch(err => {
|
|
|
+ console.log('err', err)
|
|
|
+ })
|
|
|
+ }
|
|
|
+ },
|
|
|
+ });
|
|
|
+
|
|
|
+ }else{
|
|
|
+ this.$msg("请选择收款方式");
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
navigate(latitude, longitude, address) {
|
|
|
// 将经纬度转换成Number
|
|
|
let latituded = Number(latitude);
|