|
|
|
@ -24,8 +24,14 @@ |
|
|
|
<view class="flex-row-center-space header"> |
|
|
|
<text style="font-size: 32rpx; font-weight: 600">{{ supplierOrder.supplierEnterpriseName }}</text> |
|
|
|
<view> |
|
|
|
<!-- 微信支付待付款 --> |
|
|
|
<view v-if="supplierOrder.status == supplierOrderStatusEnum.WAIT_CLIENT_PAY" class="button-item" @click="confirmWxPay(supplierOrder.mallSupplierId)"> |
|
|
|
去付款 |
|
|
|
</view> |
|
|
|
<!-- 待收货展示 --> |
|
|
|
<view v-if="supplierOrder.status == supplierOrderStatusEnum.WAIT_RECEIVE" class="button-item" @click="confirmReceive(supplierOrder)">确认收货</view> |
|
|
|
<view v-else-if="supplierOrder.status == supplierOrderStatusEnum.WAIT_RECEIVE" class="button-item" @click="confirmReceive(supplierOrder)"> |
|
|
|
确认收货 |
|
|
|
</view> |
|
|
|
<!-- 待借款展示 --> |
|
|
|
<view v-else-if="supplierOrder.status == supplierOrderStatusEnum.WAIT_CLIENT_LOAN" class="button-item" @click="goFsPage()">去借款</view> |
|
|
|
<!-- 飞算支付且待还款状态 --> |
|
|
|
@ -144,7 +150,7 @@ |
|
|
|
|
|
|
|
<script> |
|
|
|
import { go2, back, uploadImage } from '@/utils/hook.js' |
|
|
|
import { getClientOrderInfo, clientUploadVoucher, clientDeleteVoucher, clientConfirmOrder } from '@/apis/orderApi.js' |
|
|
|
import { getClientOrderInfo, clientUploadVoucher, clientDeleteVoucher, clientConfirmOrder, getReciptCode } from '@/apis/orderApi.js' |
|
|
|
import { transformFileToImg, getFeisuanUrl } from '@/apis/commonApi.js' |
|
|
|
import { orderStatusEnum, supplierOrderStatusMap, supplierOrderStatusEnum, paymentMethodMap, paymentMethodEnum } from '@/enums/index.js' |
|
|
|
const statusImg = { |
|
|
|
@ -327,6 +333,22 @@ export default { |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
// 调起供应商二维码微信支付 |
|
|
|
confirmWxPay(mallSupplierId) { |
|
|
|
getReciptCode({ mallSupplierId }).then((res) => { |
|
|
|
if (res.payeeCodeUrl) { |
|
|
|
uni.previewImage({ |
|
|
|
urls: [res.payeeCodeUrl], |
|
|
|
current: res.payeeCodeUrl |
|
|
|
}) |
|
|
|
} else { |
|
|
|
uni.showToast({ |
|
|
|
title: '暂无二维码,请联系供应商', |
|
|
|
icon: 'error' |
|
|
|
}) |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
clip(content) { |
|
|
|
uni.setClipboardData({ |
|
|
|
data: content, |
|
|
|
|