|
|
@ -8,7 +8,7 @@ |
|
|
|
<view class="ph-type-text">订场支付金额</view> |
|
|
|
<view class="ph-price"><text>¥</text>{{ payAmount || 0 }}</view> |
|
|
|
<view class="ph-discount-tip"> |
|
|
|
<block v-if="payMethodsID == 3&&selectedCard&&selectedCard.discount"> |
|
|
|
<block v-if="payMethodsID == 3&&selectedCard&&selectedCard.discount&&selectedCard.discount<10"> |
|
|
|
<text>原价:¥{{ optionsQuery.amount || 0 }},</text>折扣金额¥{{ discountAmount || 0 }} |
|
|
|
</block> |
|
|
|
</view> |
|
|
@ -31,7 +31,7 @@ |
|
|
|
<view class="pr-content" v-if="e.id == 3&&selectedCard&&selectedCard.card_no"> |
|
|
|
<view class="pc-line"> |
|
|
|
<view class="pl-txt">储值卡卡号:{{ selectedCard.card_no || '-' }}</view> |
|
|
|
<view class="pl-tag" v-if="selectedCard.discount">使用会员卡支付{{ selectedCard.discount || '-' }}折</view> |
|
|
|
<view class="pl-tag" v-if="selectedCard.discount&&selectedCard.discount<10">使用会员卡支付{{ selectedCard.discount || '-' }}折</view> |
|
|
|
</view> |
|
|
|
<view class="pc-line"> |
|
|
|
<view class="pl-txt">微信昵称:{{ selectedCard.nickname || '-' }}</view> |
|
|
@ -43,7 +43,7 @@ |
|
|
|
<view class="pl-txt">卡名称:{{ selectedCard.card_name || '-' }}</view> |
|
|
|
</view> |
|
|
|
<view class="pc-line"> |
|
|
|
<view class="pl-txt">卡余额:¥{{ selectedCard.amount || '0' }}</view> |
|
|
|
<view class="pl-txt">卡余额:¥{{ selectedCard.balance || '0' }}</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
@ -73,7 +73,6 @@ import server from '../js/server.js'; |
|
|
|
import API from '../js/api.js'; |
|
|
|
import util from '../../../utils/util.js'; |
|
|
|
import cardSearch from '../components/card_search'; |
|
|
|
import numeral from 'numeral'; |
|
|
|
export default { |
|
|
|
components: { |
|
|
|
'card-search': cardSearch |
|
|
@ -159,10 +158,10 @@ export default { |
|
|
|
let { optionsQuery, payMethodsID, otherTypeRemark, selectedCard } = this; |
|
|
|
let _data = { |
|
|
|
brand_id: optionsQuery.brand_id || '', |
|
|
|
amount: optionsQuery.amount || '', |
|
|
|
amount: +optionsQuery.amount || '', |
|
|
|
reason: optionsQuery?.exQuery?.reason || '', |
|
|
|
order_no: optionsQuery?.exQuery?.order_no || '', |
|
|
|
take_up_pay_type: payMethodsID |
|
|
|
take_up_pay_type: this.getPayMethodsName(payMethodsID) |
|
|
|
} |
|
|
|
if(payMethodsID === 4)_data['remark'] = otherTypeRemark || '其它'; |
|
|
|
if(payMethodsID === 3&&selectedCard?.card_no)_data['card_no'] = selectedCard.card_no || ''; |
|
|
@ -184,7 +183,7 @@ export default { |
|
|
|
let { exQuery, payMethodsID, otherTypeRemark, selectedCard } = this; |
|
|
|
let _data = { |
|
|
|
...exQuery, |
|
|
|
take_up_pay_type: payMethodsID || '' |
|
|
|
take_up_pay_type: this.getPayMethodsName(payMethodsID) || '' |
|
|
|
} |
|
|
|
if(payMethodsID === 4)_data['remark'] = otherTypeRemark || '其它'; |
|
|
|
if(payMethodsID === 3&&selectedCard?.card_no)_data['card_no'] = selectedCard.card_no || ''; |
|
|
@ -206,6 +205,9 @@ export default { |
|
|
|
} |
|
|
|
}) |
|
|
|
.catch(util.hideLoad) |
|
|
|
}, |
|
|
|
getPayMethodsName(payMethodsID){ |
|
|
|
return this.getPayMethodsLs().find(item=>item.id == payMethodsID)?.name || ''; |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|