Commit 43fe558e by cen

fix: 修复上传凭证时没有带支付时间

1 parent def20146

2.65 MB | W: | H:

2.65 MB | W: | H:

assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -477,7 +477,7 @@ export default { ...@@ -477,7 +477,7 @@ export default {
} }
} else { } else {
if (!this.successDate && !this.isErrorOrder && this.orderInfo.selectPayType != 0) return uni.showToast({ title: this.orderInfo.selectPayType == 2 ? '请选择4S店收款时间' : '请选择嘀加收款时间' }) if (!this.successDate && !this.isErrorOrder && this.orderInfo.selectPayType != 0) return uni.showToast({ title: this.orderInfo.selectPayType == 2 ? '请选择4S店收款时间' : '请选择嘀加收款时间' })
this.$emit('jump', 'UploadProofOfPayment', { orderCode: this.orderInfo.orderCode, payType: this.orderInfo.selectPayType, payeeType: this.orderInfo.payeeType }) this.$emit('jump', 'UploadProofOfPayment', { orderCode: this.orderInfo.orderCode, payType: this.orderInfo.selectPayType, payeeType: this.orderInfo.payeeType, successDate: this.successDate })
} }
}, },
confirmTips() { confirmTips() {
...@@ -505,7 +505,7 @@ export default { ...@@ -505,7 +505,7 @@ export default {
} }
// 支付方式 2:门店收款 5:嘀加收款 6:对公转账 7:其它收款 // 支付方式 2:门店收款 5:嘀加收款 6:对公转账 7:其它收款
if ([2, 5, 6, 7].includes(Number(selectPayType)) && !isErrorOrder) { if ([2, 5, 6, 7].includes(Number(selectPayType)) && !isErrorOrder) {
obj.successDate = new Date(successDate).format('yyyy-MM-dd hh:mm:ss') obj.successDate = successDate
} }
if (payVoucherList?.length && outTradeNo) { if (payVoucherList?.length && outTradeNo) {
obj.payVoucherList = payVoucherList.map(v => { obj.payVoucherList = payVoucherList.map(v => {
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<view class="common-title">{{ orderInfo.constructionFlag == 'Y' && orderInfo.status != 10 ? '完成施工' : '工单详情' }}</view> <view class="common-title">{{ orderInfo.constructionFlag == 'Y' && orderInfo.status != 10 ? '完成施工' : '工单详情' }}</view>
<view v-if="isShow" class="px-48 scroll-y" :class="{ 'construction-flag-y': !isMake }"> <view v-if="isShow" class="px-48 scroll-y" :class="{ 'construction-flag-y': !isMake }">
<view class="top-tips flex align-center" v-if="orderInfo.status != 10 && orderInfo.status != 9 && orderInfo.constructionFlag !== 'Y'"> <view class="top-tips flex align-center" v-if="orderInfo.status != 10 && orderInfo.status != 9 && orderInfo.constructionFlag !== 'Y'">
<uni-icons class="checkbox-filled" type="checkbox-filled" color="#4ac18e"></uni-icons> <view class="sprite-icon icon-successIcon checkbox-filled"></view>
<view> <view>
<view class="fs-34 fw-5">客户已付款</view> <view class="fs-34 fw-5">客户已付款</view>
<view class="fs-26 mt-12 cl-gray">技师施工完毕后可通知车主前来取车</view> <view class="fs-26 mt-12 cl-gray">技师施工完毕后可通知车主前来取车</view>
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
<!-- <view class="tips">客户支付超过24小时,系统自动关闭订单</view> --> <!-- <view class="tips">客户支付超过24小时,系统自动关闭订单</view> -->
</view> </view>
<view class="top-tips flex align-center" v-if="orderInfo.constructionFlag == 'Y'"> <view class="top-tips flex align-center" v-if="orderInfo.constructionFlag == 'Y'">
<uni-icons class="checkbox-filled" type="checkbox-filled" color="#4ac18e"></uni-icons> <view class="sprite-icon icon-successIcon checkbox-filled"></view>
<view> <view>
<view class="fs-34 fw-5">客户{{ orderInfo.customer.customerName }}</view> <view class="fs-34 fw-5">客户{{ orderInfo.customer.customerName }}</view>
<view class="fs-26">完成施工,如客户有新的需要,可点击再次下单。</view> <view class="fs-26">完成施工,如客户有新的需要,可点击再次下单。</view>
...@@ -132,24 +132,26 @@ ...@@ -132,24 +132,26 @@
<view class="order-info pt-16"> <view class="order-info pt-16">
<view class="flex align-center pt-20" v-for="(item, index) in customerObj" :key="index"> <view class="flex align-center pt-20" v-for="(item, index) in customerObj" :key="index">
<view class="label">{{ item.label }}</view> <view class="label">{{ item.label }}</view>
<view class="value" :style="{ color: item.color || '#333' }"> <view class="flex flex-1">
<view v-if="item.arr"> <view class="value" :style="{ color: item.color || '#333' }">
<view v-if="orderInfo[item.arr[1]]" class="flex"> <view v-if="item.arr">
<view v-for="(i, ind) in item.arr" :key="ind"> <view v-if="orderInfo[item.arr[1]]" class="flex">
<view class="value-item text-hide"> <view v-for="(i, ind) in item.arr" :key="ind">
<text v-if="ind == 1" class="lineText">|</text> <view class="value-item text-hide">
{{ orderInfo[i] }} <text v-if="ind == 1" class="lineText">|</text>
{{ orderInfo[i] }}
</view>
</view> </view>
</view> </view>
</view> </view>
<view v-else>
{{ item.enum ? item.enum[orderInfo[item.key]] : orderInfo[item.key] || '' }}
</view>
</view> </view>
<view v-else> <view v-if="item.copy" class="copy-btn" @click="setCopyData(orderInfo[item.key])">
{{ item.enum ? item.enum[orderInfo[item.key]] : orderInfo[item.key] || '' }} <view class="sprite-icon icon-icon-copy copy"></view>
</view> </view>
</view> </view>
<view v-if="item.copy" class="copy-btn" @click="setCopyData(orderInfo[item.key])">
<view class="sprite-icon icon-icon-copy copy"></view>
</view>
</view> </view>
</view> </view>
<view v-if="orderInfo.selectPayType == 0" class="order-info"> <view v-if="orderInfo.selectPayType == 0" class="order-info">
...@@ -720,6 +722,7 @@ export default { ...@@ -720,6 +722,7 @@ export default {
border-radius: 12px; border-radius: 12px;
background: #f4f5f7; background: #f4f5f7;
height: toRpx(216); height: toRpx(216);
width: 100%;
margin-bottom: toRpx(24); margin-bottom: toRpx(24);
padding: toRpx(32) toRpx(32) toRpx(32) toRpx(32); padding: toRpx(32) toRpx(32) toRpx(32) toRpx(32);
.uni-textarea-placeholder { .uni-textarea-placeholder {
...@@ -827,6 +830,9 @@ export default { ...@@ -827,6 +830,9 @@ export default {
.cl-gray { .cl-gray {
color: #666666; color: #666666;
} }
.flex-1 {
flex: 1;
}
.date-box { .date-box {
display: flex; display: flex;
align-items: center; align-items: center;
...@@ -879,7 +885,6 @@ export default { ...@@ -879,7 +885,6 @@ export default {
padding: 0 toRpx(32); padding: 0 toRpx(32);
position: relative; position: relative;
.checkbox-filled { .checkbox-filled {
font-size: toRpx(56) !important;
margin-right: toRpx(24); margin-right: toRpx(24);
} }
.topTipsRightIcon { .topTipsRightIcon {
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
交易流水号 交易流水号
<text class="required">*</text> <text class="required">*</text>
</view> </view>
<input v-model="outTradeNo" type="text" @input="outTradeNoInput" @blur="outTradeNoBlur" class="uni-input" maxlength="150" placeholder="请输入" /> <input v-model="outTradeNo" type="text" @input="outTradeNoInput" class="uni-input" maxlength="150" placeholder="请输入" />
</view> </view>
<view class="payment"> <view class="payment">
<view class="payment-label"> <view class="payment-label">
...@@ -91,16 +91,15 @@ export default { ...@@ -91,16 +91,15 @@ export default {
this.payVoucherList.splice(index, 1) this.payVoucherList.splice(index, 1)
}, },
createPayOrder() { createPayOrder() {
const { orderCode, payType, payeeType } = this.transmissionOfData const { orderCode, payType, payeeType, successDate } = this.transmissionOfData
let obj = { let obj = {
orderCode, orderCode,
payType: payType, payType: payType,
payeeType: payeeType payeeType: payeeType,
successDate
} }
if (this.payVoucherList?.length && this.outTradeNo) { if (this.payVoucherList?.length && this.outTradeNo) {
obj.payVoucherList = this.payVoucherList.map(v => { obj.payVoucherList = this.payVoucherList
return v?.url
})
obj.outTradeNo = this.outTradeNo obj.outTradeNo = this.outTradeNo
} }
uni.showLoading({ uni.showLoading({
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!