|
|
@@ -239,7 +239,8 @@
|
|
|
<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') }}:{{currencyUnitCode}} {{ product.SELL_PRICE }}</span><br>
|
|
|
+ <span style="color: tomato;">{{ $t('shop.salesPrice') }}:{{currencyUnitCode}} {{ product.SELL_PRICE }}</span><br>
|
|
|
+ <span>{{ $t('shop.marketPrice') }}:{{currencyUnitCode}} {{ product.MARKET_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') }}:{{currencyUnitCode}} {{ product.taxAmount }}</span><br>
|
|
|
@@ -302,7 +303,7 @@ export default {
|
|
|
categoryType: '',
|
|
|
sellType: [],
|
|
|
payList: [],
|
|
|
- screenWidth: getScreenWidth() > 600 ? '500px' : getScreenWidth() + 'px',
|
|
|
+ screenWidth: getScreenWidth() > 600 ? '50%' : getScreenWidth() + 'px',
|
|
|
labelPosition: getScreenWidth() > 600 ? 'right' : 'top',
|
|
|
payStackScreenWidth: getScreenWidth() > 500 ? '450px' : getScreenWidth() + 'px',
|
|
|
|
|
|
@@ -380,7 +381,7 @@ export default {
|
|
|
TAX_RATE: 0,
|
|
|
taxAmount: 0
|
|
|
},
|
|
|
- imageStyle: 'margin-top: -50px;',
|
|
|
+ imageStyle: 'margin-top: 0px;',
|
|
|
|
|
|
decWay: '2',
|
|
|
regionData: [],
|
|
|
@@ -427,7 +428,7 @@ export default {
|
|
|
|
|
|
userReadOnly: true,
|
|
|
recReadOnly: false,
|
|
|
- allDecLevel: usersInfo.getBaseInfo().decLevels,
|
|
|
+ allDecLevel: [],
|
|
|
allOpenBank: [],
|
|
|
|
|
|
activeName: 'product',
|
|
|
@@ -491,6 +492,7 @@ export default {
|
|
|
this.allGoods = response.data.allGoods
|
|
|
this.userBalance = response.data.userBalance
|
|
|
this.regionData = response.data.region
|
|
|
+ this.allDecLevel = response.data.decLevel
|
|
|
this.categoryType = 1
|
|
|
if(response.data.allGoods && response.data.allGoods.length > 0){
|
|
|
this.currencyUnitCode = response.data.allGoods[0].CODE
|
|
|
@@ -533,7 +535,7 @@ export default {
|
|
|
// 商品详情
|
|
|
handleProduct(row) {
|
|
|
this.product = row
|
|
|
- this.product.taxAmount = tool.calculateTax(row.SELL_PRICE, row.TAX_RATE)
|
|
|
+ this.product.taxAmount = tool.calculateTax(row.MARKET_PRICE, row.TAX_RATE)
|
|
|
this.visibleProduct = true
|
|
|
},
|
|
|
// 选择商品计数
|
|
|
@@ -557,9 +559,9 @@ export default {
|
|
|
if (this.multipleSelection.length > 0) {
|
|
|
let accumulatorSellPrice = 0; let accumulatorPricePv = 0; let accumulatorTax = 0
|
|
|
this.multipleSelection.forEach(accumulator => {
|
|
|
- accumulatorSellPrice += accumulator.SELL_PRICE * accumulator.goodsNum
|
|
|
+ accumulatorSellPrice += accumulator.MARKET_PRICE * accumulator.goodsNum
|
|
|
accumulatorPricePv += Number(accumulator.PRICE_PV) * Number(accumulator.goodsNum)
|
|
|
- accumulatorTax += tool.calculateTax(Number(accumulator.SELL_PRICE), Number(accumulator.TAX_RATE), Number(accumulator.goodsNum))
|
|
|
+ accumulatorTax += tool.calculateTax(Number(accumulator.MARKET_PRICE), Number(accumulator.TAX_RATE), Number(accumulator.goodsNum))
|
|
|
})
|
|
|
|
|
|
this.sellPriceSum = tool.formatPrice(accumulatorSellPrice)
|
|
|
@@ -773,7 +775,7 @@ export default {
|
|
|
this.multipleSelection.map((item) => {
|
|
|
this.form.goodsId.push(item.ID)
|
|
|
this.form.goodsNum.push(item.goodsNum)
|
|
|
- this.payAmount += item.goodsNum * item.SELL_PRICE
|
|
|
+ this.payAmount += item.goodsNum * item.MARKET_PRICE
|
|
|
})
|
|
|
},
|
|
|
// 报单方式
|