|
@@ -20,8 +20,8 @@
|
|
|
<el-col :xs="24" :sm="24" :lg="5">
|
|
<el-col :xs="24" :sm="24" :lg="5">
|
|
|
<span style="font-size: 13px;">
|
|
<span style="font-size: 13px;">
|
|
|
<span style="font-weight: bold; color: tomato;">
|
|
<span style="font-weight: bold; color: tomato;">
|
|
|
- {{ $t('currency.sign') }} {{ row.SELL_PRICE | amountFilter }}
|
|
|
|
|
- <span style="font-weight:normal; color: #606266;">({{ row.PRICE_PV | amountFilter }}{{ $t('shop.productBV') }})</span>
|
|
|
|
|
|
|
+ {{ $t('currency.sign') }} {{ row.SELL_PRICE | toThousandFilter }}
|
|
|
|
|
+ <span style="font-weight:normal; color: #606266;">({{ row.PRICE_PV | toThousandFilter }}{{ $t('shop.productBV') }})</span>
|
|
|
</span>
|
|
</span>
|
|
|
</span>
|
|
</span>
|
|
|
</el-col>
|
|
</el-col>
|
|
@@ -45,9 +45,9 @@
|
|
|
<el-button type="primary" size="small" @click="settlement()" style="float: left;">{{ $t('shop.checkOut') }}</el-button>
|
|
<el-button type="primary" size="small" @click="settlement()" style="float: left;">{{ $t('shop.checkOut') }}</el-button>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="flex data" style="float: right; display: inline-block; line-height: 28px; font-size: 14px; margin-top: 10px; border: 1px solid #dcdfe6; border-radius: 4px; padding: 0 5px;">
|
|
<div class="flex data" style="float: right; display: inline-block; line-height: 28px; font-size: 14px; margin-top: 10px; border: 1px solid #dcdfe6; border-radius: 4px; padding: 0 5px;">
|
|
|
- <div style="margin-right: 2rem; display: inline-block;">{{ $t('shop.productPrice') }}:{{ $t('currency.sign') }} {{ sellPriceSum | amountFilter }}</div>
|
|
|
|
|
- <div style="margin-right: 2rem; display: inline-block;">{{ $t('shop.productBV') }}:{{ pricePvSum | amountFilter }}</div>
|
|
|
|
|
- <div style="display: inline-block;">{{ $t('shop.taxAmount') }}:{{ $t('currency.sign') }} {{ taxSum | amountFilter }}</div>
|
|
|
|
|
|
|
+ <div style="margin-right: 2rem; display: inline-block;">{{ $t('shop.productPrice') }}:{{ $t('currency.sign') }} {{ sellPriceSum | toThousandFilter }}</div>
|
|
|
|
|
+ <div style="margin-right: 2rem; display: inline-block;">{{ $t('shop.productBV') }}:{{ pricePvSum | toThousandFilter }}</div>
|
|
|
|
|
+ <div style="display: inline-block;">{{ $t('shop.taxAmount') }}:{{ $t('currency.sign') }} {{ taxSum | toThousandFilter }}</div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
@@ -71,13 +71,13 @@
|
|
|
<span style="color: #9c9c9c; cursor: pointer;">{{ row.GOODS_NO }}</span>
|
|
<span style="color: #9c9c9c; cursor: pointer;">{{ row.GOODS_NO }}</span>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col :xs="16" :sm="4" :lg="4">
|
|
<el-col :xs="16" :sm="4" :lg="4">
|
|
|
- <span style="font-weight: bold;">{{ $t('currency.sign') }} {{ row.member_price | amountFilter }}</span>
|
|
|
|
|
|
|
+ <span style="font-weight: bold;">{{ $t('currency.sign') }} {{ row.member_price | toThousandFilter }}</span>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col :xs="8" :sm="3" :lg="3">
|
|
<el-col :xs="8" :sm="3" :lg="3">
|
|
|
<span style="">x {{ row.chose_num }}</span>
|
|
<span style="">x {{ row.chose_num }}</span>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col :xs="24" :sm="5" :lg="5">
|
|
<el-col :xs="24" :sm="5" :lg="5">
|
|
|
- <span style="color: tomato; font-weight: bold;">{{ $t('currency.sign') }} {{ row.member_price_plus | amountFilter }}</span>
|
|
|
|
|
|
|
+ <span style="color: tomato; font-weight: bold;">{{ $t('currency.sign') }} {{ row.member_price_plus | toThousandFilter }}</span>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
</el-row>
|
|
</el-row>
|
|
|
</el-main>
|
|
</el-main>
|
|
@@ -94,7 +94,7 @@
|
|
|
<span style="font-weight: bold; word-break: normal; white-space: normal; line-height: 28px;">{{ $t('shop.totalOrders') }}:</span>
|
|
<span style="font-weight: bold; word-break: normal; white-space: normal; line-height: 28px;">{{ $t('shop.totalOrders') }}:</span>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col :xs="24" :sm="16" :md="14" :lg="14" :xl="14" style="word-break: normal; white-space: nowrap; line-height: 28px;">
|
|
<el-col :xs="24" :sm="16" :md="14" :lg="14" :xl="14" style="word-break: normal; white-space: nowrap; line-height: 28px;">
|
|
|
- <span>{{ $t('shop.total') }}:{{ $t('currency.sign') }} {{ parseFloat(cashSum) | amountFilter }}</span>
|
|
|
|
|
|
|
+ <span>{{ $t('shop.total') }}:{{ $t('currency.sign') }} {{ parseFloat(cashSum) | toThousandFilter }}</span>
|
|
|
<span style="margin-left: 15px;">{{ $t('shop.freight') }}:{{ $t('currency.sign') }} {{ pointFreight }}</span>
|
|
<span style="margin-left: 15px;">{{ $t('shop.freight') }}:{{ $t('currency.sign') }} {{ pointFreight }}</span>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
</el-row>
|
|
</el-row>
|
|
@@ -109,7 +109,7 @@
|
|
|
<el-radio-group v-model="payType" @change='chosePayType'>
|
|
<el-radio-group v-model="payType" @change='chosePayType'>
|
|
|
<div v-for="(item, index) in payList" :key='index' class="address">
|
|
<div v-for="(item, index) in payList" :key='index' class="address">
|
|
|
<el-radio :label="item.label" border>
|
|
<el-radio :label="item.label" border>
|
|
|
- {{ item.name }}<span v-if="item.label === 'cash'" style="color: tomato;">({{ $t('currency.sign') }} {{ userBalance.cash | amountFilter }})</span>
|
|
|
|
|
|
|
+ {{ item.name }}<span v-if="item.label === 'cash'" style="color: tomato;">({{ $t('currency.sign') }} {{ userBalance.cash | toThousandFilter }})</span>
|
|
|
</el-radio>
|
|
</el-radio>
|
|
|
</div>
|
|
</div>
|
|
|
</el-radio-group>
|
|
</el-radio-group>
|
|
@@ -120,10 +120,10 @@
|
|
|
<!-- 收货地址 -->
|
|
<!-- 收货地址 -->
|
|
|
<div class="box address_box" style="margin: 15px 0;">
|
|
<div class="box address_box" style="margin: 15px 0;">
|
|
|
<el-row :gutter="20" type="flex" style="flex-wrap: wrap;">
|
|
<el-row :gutter="20" type="flex" style="flex-wrap: wrap;">
|
|
|
- <el-col :xs="24" :sm="24" :md="4" :lg="4" :xl="4">
|
|
|
|
|
|
|
+ <el-col :xs="24" :sm="24" :md="16" :lg="16" :xl="16">
|
|
|
<span style="font-weight: bold; word-break: normal; white-space: normal; line-height: 28px;">{{ $t('shop.selectAddress') }}:</span>
|
|
<span style="font-weight: bold; word-break: normal; white-space: normal; line-height: 28px;">{{ $t('shop.selectAddress') }}:</span>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
- <el-col :xs="24" :sm="24" :md="20" :lg="20" :xl="20" style="word-break: normal; white-space: nowrap;">
|
|
|
|
|
|
|
+ <el-col :xs="24" :sm="24" :md="8" :lg="8" :xl="8" style="word-break: normal; white-space: nowrap;">
|
|
|
<el-radio-group v-model="addressId" @change='choseAddress'>
|
|
<el-radio-group v-model="addressId" @change='choseAddress'>
|
|
|
<div class="address">
|
|
<div class="address">
|
|
|
<el-radio :label="selfPickUpAddressId">{{ $t('shop.selfPickUp') }}</el-radio>
|
|
<el-radio :label="selfPickUpAddressId">{{ $t('shop.selfPickUp') }}</el-radio>
|
|
@@ -206,10 +206,10 @@
|
|
|
<div style="text-align: left; line-height: 50px; font-size: 16px;">
|
|
<div style="text-align: left; line-height: 50px; font-size: 16px;">
|
|
|
<span style="font-weight: bold; font-size: 20px;">{{ product.GOODS_NAME }}</span><br />
|
|
<span style="font-weight: bold; font-size: 20px;">{{ product.GOODS_NAME }}</span><br />
|
|
|
<span style="font-weight: bold; font-size: 15px;">{{ $t('shop.productCode') }}:{{ product.GOODS_NO }}</span><br />
|
|
<span style="font-weight: bold; font-size: 15px;">{{ $t('shop.productCode') }}:{{ product.GOODS_NO }}</span><br />
|
|
|
- <span style="color: tomato;">{{ $t('shop.productPrice') }}:{{ $t('currency.sign') }} {{ product.SELL_PRICE | amountFilter }}</span><br />
|
|
|
|
|
- <span>{{ $t('shop.productBV') }}:{{ product.PRICE_PV | amountFilter }}</span><br />
|
|
|
|
|
|
|
+ <span style="color: tomato;">{{ $t('shop.productPrice') }}:{{ $t('currency.sign') }} {{ product.SELL_PRICE | toThousandFilter }}</span><br />
|
|
|
|
|
+ <span>{{ $t('shop.productBV') }}:{{ product.PRICE_PV | toThousandFilter }}</span><br />
|
|
|
<span>{{ $t('shop.taxRate') }}:{{ product.TAX_RATE / 100 }}</span><br />
|
|
<span>{{ $t('shop.taxRate') }}:{{ product.TAX_RATE / 100 }}</span><br />
|
|
|
- <span>{{ $t('shop.taxAmount') }}:{{ $t('currency.sign') }} {{ product.taxAmount | amountFilter }}</span><br />
|
|
|
|
|
|
|
+ <span>{{ $t('shop.taxAmount') }}:{{ $t('currency.sign') }} {{ product.taxAmount | toThousandFilter }}</span><br />
|
|
|
<span>{{ $t('shop.inventory') }}:{{ product.STORE_NUMS }}</span>
|
|
<span>{{ $t('shop.inventory') }}:{{ product.STORE_NUMS }}</span>
|
|
|
</div>
|
|
</div>
|
|
|
</el-col>
|
|
</el-col>
|
|
@@ -245,9 +245,6 @@
|
|
|
}
|
|
}
|
|
|
return statusMap[status]
|
|
return statusMap[status]
|
|
|
},
|
|
},
|
|
|
- amountFilter(amount) {
|
|
|
|
|
- return formatAmount(amount)
|
|
|
|
|
- },
|
|
|
|
|
},
|
|
},
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
@@ -530,13 +527,13 @@
|
|
|
let amountBalance = this.userBalance[this.payType]
|
|
let amountBalance = this.userBalance[this.payType]
|
|
|
// 账户类型提示信息
|
|
// 账户类型提示信息
|
|
|
let accountType = this.currency[this.payType].name
|
|
let accountType = this.currency[this.payType].name
|
|
|
- if (amountBalance < 0 || !accountType) {
|
|
|
|
|
- this.$message({
|
|
|
|
|
- message: this.$t('shop.paymentError'),
|
|
|
|
|
- type: 'error'
|
|
|
|
|
- })
|
|
|
|
|
- return false
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ // if (amountBalance < 0 || !accountType) {
|
|
|
|
|
+ // this.$message({
|
|
|
|
|
+ // message: this.$t('shop.paymentError'),
|
|
|
|
|
+ // type: 'error'
|
|
|
|
|
+ // })
|
|
|
|
|
+ // return false
|
|
|
|
|
+ // }
|
|
|
// 支付方式处理
|
|
// 支付方式处理
|
|
|
if (['cash', 'pay_stack'].includes(this.payType)) {
|
|
if (['cash', 'pay_stack'].includes(this.payType)) {
|
|
|
let payObj = this.payList.find((item) => {
|
|
let payObj = this.payList.find((item) => {
|
|
@@ -604,6 +601,7 @@
|
|
|
})
|
|
})
|
|
|
this.$router.push({path: `/shop/order-list`})
|
|
this.$router.push({path: `/shop/order-list`})
|
|
|
}).catch(err => {
|
|
}).catch(err => {
|
|
|
|
|
+ console.log('standardError', err)
|
|
|
this.$message({
|
|
this.$message({
|
|
|
message: err,
|
|
message: err,
|
|
|
type: 'error',
|
|
type: 'error',
|