|
|
@@ -1,11 +1,11 @@
|
|
|
<template>
|
|
|
<div v-loading="loading">
|
|
|
<div class="white-box" style="padding: 0 25px; margin-top: 25px;">
|
|
|
- <div class="noList">
|
|
|
- <el-select ref="select" @change="countriesChange" v-model="countries" filterable placeholder="请选择">
|
|
|
- <el-option v-for="(item, index) in countriesList" :key="item.ID" :label="item.NAME" :value="item.ID" />
|
|
|
- </el-select>
|
|
|
- </div>
|
|
|
+<!-- <div class="noList">-->
|
|
|
+<!-- <el-select ref="select" @change="countriesChange" v-model="countries" filterable placeholder="">-->
|
|
|
+<!-- <el-option v-for="(item, index) in countriesList" :key="item.ID" :label="item.NAME" :value="item.ID" />-->
|
|
|
+<!-- </el-select>-->
|
|
|
+<!-- </div>-->
|
|
|
<el-row :gutter="20">
|
|
|
<el-col :xs="24" :sm="24" :lg="14">
|
|
|
|
|
|
@@ -17,8 +17,18 @@
|
|
|
<!-- </el-radio-group>-->
|
|
|
<!-- </el-form-item>-->
|
|
|
<el-divider content-position="left">{{ $t('user.accountInformation') }}</el-divider>
|
|
|
+ <el-form-item :label="$t('shop.country')">
|
|
|
+ <el-select ref="select" @change="countriesChange" v-model="form.countryId" filterable :placeholder="$t('user.selectCountry')" style="width: 100%;">
|
|
|
+ <el-option v-for="(item, index) in countriesList" :key="item.ID" :label="item.NAME" :value="item.ID" />
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item :label="$t('common.language')">
|
|
|
+ <el-select ref="select" v-model="form.languageId" filterable :placeholder="$t('user.selectLanguage')" style="width: 100%;">
|
|
|
+ <el-option v-for="(item, index) in languageList" :key="item.ID" :label="item.NAME" :value="item.ID" />
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
<el-form-item :label="$t('user.newMemberCode')">
|
|
|
- <el-input v-model="form.insertUserName" :readonly="userReadOnly" @blur="checkBaUser" />
|
|
|
+ <el-input v-model="form.insertUserName" :readonly="userReadOnly" @blur="checkBaUser" :placeholder="$t('user.enterMemberCode')" />
|
|
|
</el-form-item>
|
|
|
<el-form-item :label="$t('user.entryLevel')">
|
|
|
<el-select v-model="form.decLv" :placeholder="$t('user.selectEntryLevel')" style="width: 100%;">
|
|
|
@@ -49,8 +59,10 @@
|
|
|
<div style="text-align: left; line-height: 25px;">
|
|
|
<span style="font-weight: bold; cursor: pointer;" @click="handleProduct(row)">{{ row.GOODS_NAME }}</span><br>
|
|
|
<span>{{ row.GOODS_NO }}</span><br>
|
|
|
- <span style="color: tomato;">{{ $t('shop.productPrice') }}:{{ $t('currency.sign') }} {{ row.SELL_PRICE | toThousandFilter }}</span><br>
|
|
|
+ <span style="color: tomato;">{{ $t('shop.salesPrice') }}:{{row.CODE}} {{ row.SELL_PRICE | toThousandFilter }}</span><br>
|
|
|
<span>{{ $t('shop.productBV') }}:{{ row.PRICE_PV | toThousandFilter }}</span><br>
|
|
|
+ <span>{{ $t('shop.marketPrice') }}:{{row.CODE}} {{ row.MARKET_PRICE | toThousandFilter }}</span><br>
|
|
|
+
|
|
|
<span style="display: inline-block; float: right; ">
|
|
|
<el-input-number v-model="storeNums[$index]" size="mini" :min="1" :max="Number(row.STORE_NUMS)" @change="handleInputNumber($event, row)" />
|
|
|
</span>
|
|
|
@@ -66,9 +78,9 @@
|
|
|
|
|
|
<div class="white-box-footer">
|
|
|
<div class="flex data" style="float: right; display: inline-block; line-height: 30px; font-size: 14px; margin-top: 15px; margin-bottom: 10px; border: 1px solid #dcdfe6; border-radius: 4px; padding: 0 5px;">
|
|
|
- <div style="margin-right: 1rem; display: inline-block;">{{ $t('shop.productPrice') }}:{{ $t('currency.sign') }} {{ sellPriceSum | toThousandFilter }}</div>
|
|
|
+ <div style="margin-right: 1rem; display: inline-block;">{{ $t('shop.productPrice') }}: {{currencyUnitCode}} {{ sellPriceSum | toThousandFilter }}</div>
|
|
|
<div style="margin-right: 1rem; display: inline-block;">{{ $t('shop.productBV') }}:{{ pricePvSum | toThousandFilter }}</div>
|
|
|
- <div style="display: inline-block;">{{ $t('shop.taxAmount') }}:{{ $t('currency.sign') }} {{ taxSum }}</div>
|
|
|
+ <div style="display: inline-block;">{{ $t('shop.taxAmount') }}:{{currencyUnitCode}} {{ taxSum }}</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</el-tab-pane>
|
|
|
@@ -76,34 +88,34 @@
|
|
|
</el-form-item>
|
|
|
|
|
|
<el-divider content-position="left">{{ $t('atlas.networkInformation') }}</el-divider>
|
|
|
- <el-form-item :label="$t('shop.sponsorCode')">
|
|
|
+ <el-form-item :label="$t('user.recommenderName')">
|
|
|
<el-input v-model="form.recUserName" :readonly="recReadOnly" @change="handleChkRecUser" />
|
|
|
</el-form-item>
|
|
|
<el-form-item>
|
|
|
<el-input v-model="recRealName" :disabled="true" />
|
|
|
</el-form-item>
|
|
|
- <el-form-item :label="$t('atlas.placementCode')">
|
|
|
- <el-input v-model="form.conUserName" @change="handleChkConUser" />
|
|
|
+ <el-form-item :label="$t('user.recommenderActualName')">
|
|
|
+ <el-input v-model="form.conUserName" @change="handleChkRecommenderActualName" />
|
|
|
</el-form-item>
|
|
|
<el-form-item>
|
|
|
<el-input v-model="conRealName" type="textarea" :rows="2" :disabled="true" />
|
|
|
</el-form-item>
|
|
|
- <el-form-item :label="$t('atlas.placementTree')">
|
|
|
- <el-radio-group v-model="form.location" border>
|
|
|
- <el-radio :label="1">{{ $t('atlas.left') }}</el-radio>
|
|
|
- <el-radio :label="2">{{ $t('atlas.right') }}</el-radio>
|
|
|
- </el-radio-group>
|
|
|
- </el-form-item>
|
|
|
- <el-form-item><!--自动安置区位-->
|
|
|
- <el-row :gutter="5">
|
|
|
- <el-col :xs="24" :sm="12" :lg="12">
|
|
|
- <el-button size="small" type="primary" @click="setAutoPlace('left')">{{ $t('atlas.placementAutoLeft') }}</el-button>
|
|
|
- </el-col>
|
|
|
- <el-col :xs="24" :sm="12" :lg="12">
|
|
|
- <el-button size="small" type="primary" @click="setAutoPlace('right')">{{ $t('atlas.placementAutoRight') }}</el-button>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
- </el-form-item>
|
|
|
+<!-- <el-form-item :label="$t('atlas.placementTree')">-->
|
|
|
+<!-- <el-radio-group v-model="form.location" border>-->
|
|
|
+<!-- <el-radio :label="1">{{ $t('atlas.left') }}</el-radio>-->
|
|
|
+<!-- <el-radio :label="2">{{ $t('atlas.right') }}</el-radio>-->
|
|
|
+<!-- </el-radio-group>-->
|
|
|
+<!-- </el-form-item>-->
|
|
|
+<!-- <el-form-item><!–自动安置区位–>-->
|
|
|
+<!-- <el-row :gutter="5">-->
|
|
|
+<!-- <el-col :xs="24" :sm="12" :lg="12">-->
|
|
|
+<!-- <el-button size="small" type="primary" @click="setAutoPlace('left')">{{ $t('atlas.placementAutoLeft') }}</el-button>-->
|
|
|
+<!-- </el-col>-->
|
|
|
+<!-- <el-col :xs="24" :sm="12" :lg="12">-->
|
|
|
+<!-- <el-button size="small" type="primary" @click="setAutoPlace('right')">{{ $t('atlas.placementAutoRight') }}</el-button>-->
|
|
|
+<!-- </el-col>-->
|
|
|
+<!-- </el-row>-->
|
|
|
+<!-- </el-form-item>-->
|
|
|
|
|
|
<el-divider content-position="left">{{ $t('profile.personalInformation') }}</el-divider>
|
|
|
<el-form-item :label="$t('shop.memberName')">
|
|
|
@@ -163,7 +175,7 @@
|
|
|
<el-form-item :label="$t('shop.paymentMethod')" required>
|
|
|
<el-radio-group v-model="form.payType" @change="chosePayType">
|
|
|
<el-radio v-for="(item, index) in payList" :key="index" border :label="item.label" style="margin: 5px;">
|
|
|
- {{ item.name }}<span v-if="item.label === 'cash'" style="color: tomato;">({{ $t('currency.sign') }} {{ userBalance.cash }})</span>
|
|
|
+ {{ item.name }}<span v-if="item.label === 'cash'" style="color: tomato;">( {{currencyUnitCode}} {{ userBalance.cash }})</span>
|
|
|
</el-radio>
|
|
|
</el-radio-group>
|
|
|
</el-form-item>
|
|
|
@@ -227,10 +239,10 @@
|
|
|
<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: 15px;">{{ $t('shop.productCode') }}:{{ product.GOODS_NO }}</span><br>
|
|
|
- <span style="color: tomato;">{{ $t('shop.productPrice') }}:{{ $t('currency.sign') }} {{ product.SELL_PRICE }}</span><br>
|
|
|
+ <span style="color: tomato;">{{ $t('shop.productPrice') }}:{{currencyUnitCode}} {{ product.SELL_PRICE }}</span><br>
|
|
|
<span>{{ $t('shop.productBV') }}:{{ product.PRICE_PV }}</span><br>
|
|
|
<span>{{ $t('shop.taxRate') }}:{{ product.TAX_RATE / 100 }}</span><br>
|
|
|
- <span>{{ $t('shop.taxAmount') }}:{{ $t('currency.sign') }} {{ product.taxAmount }}</span><br>
|
|
|
+ <span>{{ $t('shop.taxAmount') }}:{{currencyUnitCode}} {{ product.taxAmount }}</span><br>
|
|
|
<span>{{ $t('shop.inventory') }}:{{ product.STORE_NUMS }}</span>
|
|
|
</div>
|
|
|
</el-col>
|
|
|
@@ -241,7 +253,14 @@
|
|
|
|
|
|
<script>
|
|
|
import { deleteApproachOrder } from '@/api/shop'
|
|
|
-import { createWelcomePack, fetchAutoPlace, fetchBrandAmbassadorInfo, fetchFullInfo, fetchWelcomePack } from '@/api/user'
|
|
|
+import {
|
|
|
+ createWelcomePack,
|
|
|
+ fetchAutoPlace,
|
|
|
+ fetchBrandAmbassadorInfo,
|
|
|
+ fetchFullInfo,
|
|
|
+ fetchInspectNetwork,
|
|
|
+ fetchWelcomePack
|
|
|
+} from '@/api/user'
|
|
|
import Pagination from '@/components/Pagination'
|
|
|
import waves from '@/directive/waves'
|
|
|
import region from '@/store/modules/region'
|
|
|
@@ -364,7 +383,7 @@ export default {
|
|
|
imageStyle: 'margin-top: -50px;',
|
|
|
|
|
|
decWay: '2',
|
|
|
- regionData: region.regionInfo.regionData,
|
|
|
+ regionData: [],
|
|
|
form: {
|
|
|
decType: 'normal',
|
|
|
realName: '',
|
|
|
@@ -414,7 +433,8 @@ export default {
|
|
|
activeName: 'product',
|
|
|
isDec:null,
|
|
|
|
|
|
- countries: null
|
|
|
+ countries: null,
|
|
|
+ currencyUnitCode: ""
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
|
@@ -430,6 +450,9 @@ export default {
|
|
|
countriesList() {
|
|
|
return this.$store.getters.getCountriesList
|
|
|
},
|
|
|
+ languageList() {
|
|
|
+ return this.$store.getters.languageList
|
|
|
+ },
|
|
|
language() {
|
|
|
return this.$store.getters.language
|
|
|
},
|
|
|
@@ -450,6 +473,7 @@ export default {
|
|
|
this.getCountries()
|
|
|
},
|
|
|
methods: {
|
|
|
+
|
|
|
countriesChange(e){
|
|
|
this.fetchWelcomePack()
|
|
|
},
|
|
|
@@ -460,13 +484,17 @@ export default {
|
|
|
// 会员报单/BA升级
|
|
|
fetchWelcomePack() {
|
|
|
this.loading = true
|
|
|
- fetchWelcomePack({countryId: this.countries}).then(response => {
|
|
|
+ fetchWelcomePack({countryId: this.form.countryId}).then(response => {
|
|
|
this.form.insertUserName = response.data.userName
|
|
|
this.allOpenBank = response.data.allOpenBank
|
|
|
this.allDecPackage = response.data.allDecPackage
|
|
|
this.allGoods = response.data.allGoods
|
|
|
this.userBalance = response.data.userBalance
|
|
|
+ this.regionData = response.data.region
|
|
|
this.categoryType = 1
|
|
|
+ if(response.data.allGoods && response.data.allGoods.length > 0){
|
|
|
+ this.currencyUnitCode = response.data.allGoods[0].CODE
|
|
|
+ }
|
|
|
//是否是报单中心
|
|
|
this.isDec = response.data.isDec
|
|
|
const settingObj = this.allGoods
|
|
|
@@ -702,11 +730,11 @@ export default {
|
|
|
packageId: this.form.packageId,
|
|
|
goodsId: this.form.goodsId,
|
|
|
goodsNum: this.form.goodsNum,
|
|
|
- location: this.form.location,
|
|
|
+ location: 1, //自动安置
|
|
|
decWay: this.decWay,
|
|
|
payType: this.form.payType,
|
|
|
- countryId: this.countries,
|
|
|
- languageId: this.languageId
|
|
|
+ countryId: this.form.countryId,
|
|
|
+ languageId: this.form.languageId
|
|
|
}
|
|
|
createWelcomePack(params).then(response => {
|
|
|
if (this.form.payType !== 'pay_stack') {
|
|
|
@@ -789,6 +817,19 @@ export default {
|
|
|
})
|
|
|
}
|
|
|
},
|
|
|
+ // 查询安置人
|
|
|
+ handleChkRecommenderActualName() {
|
|
|
+ if (this.form.conUserName) {
|
|
|
+ this.loading = true
|
|
|
+ fetchInspectNetwork({ recommenderName: this.form.recUserName, recommenderActualName: this.form.conUserName }).then(response => {
|
|
|
+ this.conRealName = response.data.REAL_NAME
|
|
|
+ this.loading = false
|
|
|
+ }).catch(() => {
|
|
|
+ this.conRealName = '-'
|
|
|
+ this.loading = false
|
|
|
+ })
|
|
|
+ }
|
|
|
+ },
|
|
|
// 自动设置区位
|
|
|
setAutoPlace(side) {
|
|
|
if (this.recRealName !== '-') {
|