|
@@ -58,9 +58,9 @@
|
|
<div style="padding: 10px 0;text-align: right;">
|
|
<div style="padding: 10px 0;text-align: right;">
|
|
<a-checkbox v-model="isCostPrice" v-if="$hasPermissions('M_ShowAllCost')"><span style="display: inline-block;">参考成本价</span></a-checkbox>
|
|
<a-checkbox v-model="isCostPrice" v-if="$hasPermissions('M_ShowAllCost')"><span style="display: inline-block;">参考成本价</span></a-checkbox>
|
|
<!-- 特约加盟商不可见市级价 -->
|
|
<!-- 特约加盟商不可见市级价 -->
|
|
- <a-checkbox v-model="isCityPrice" v-if="dealerData && dealerData.dealerLevel != 'SPECIAL'&&$hasPermissions('M_ShowAllCityPrice')"><span style="display: inline-block;">市级价</span></a-checkbox>
|
|
|
|
|
|
+ <a-checkbox v-model="isCityPrice" v-if="$store.state.user.dealerLevel != 'SPECIAL'&&$hasPermissions('M_ShowAllCityPrice')"><span style="display: inline-block;">市级价</span></a-checkbox>
|
|
<!-- 是否展示特约价 -->
|
|
<!-- 是否展示特约价 -->
|
|
- <a-checkbox v-model="isSpecialPrice" v-if="dealerData && dealerData.isShowSpecialPrice == '1'"><span style="display: inline-block;">特约价</span></a-checkbox>
|
|
|
|
|
|
+ <a-checkbox v-model="isSpecialPrice" v-if="$store.state.user.isShowSpecialPrice==1"><span style="display: inline-block;">特约价</span></a-checkbox>
|
|
<a-checkbox v-model="isTerminalPrice"><span style="display: inline-block;">终端价/自定义终端价</span></a-checkbox>
|
|
<a-checkbox v-model="isTerminalPrice"><span style="display: inline-block;">终端价/自定义终端价</span></a-checkbox>
|
|
</div>
|
|
</div>
|
|
<!-- 列表 -->
|
|
<!-- 列表 -->
|
|
@@ -103,7 +103,6 @@ import { commonMixin } from '@/utils/mixin'
|
|
import { STable, VSelect } from '@/components'
|
|
import { STable, VSelect } from '@/components'
|
|
import ProductType from '../../common/productType.js'
|
|
import ProductType from '../../common/productType.js'
|
|
import ProductBrand from '../../common/productBrand.js'
|
|
import ProductBrand from '../../common/productBrand.js'
|
|
-import { getCurrentDealer } from '@/api/product'
|
|
|
|
import { dealerProductPriceList } from '@/api/dealerProduct'
|
|
import { dealerProductPriceList } from '@/api/dealerProduct'
|
|
import productSalesRecordModal from './productSalesRecordModal.vue'
|
|
import productSalesRecordModal from './productSalesRecordModal.vue'
|
|
export default {
|
|
export default {
|
|
@@ -151,8 +150,7 @@ export default {
|
|
isCostPrice: false,
|
|
isCostPrice: false,
|
|
isCityPrice: false,
|
|
isCityPrice: false,
|
|
isSpecialPrice: false,
|
|
isSpecialPrice: false,
|
|
- isTerminalPrice: false,
|
|
|
|
- dealerData: null
|
|
|
|
|
|
+ isTerminalPrice: false
|
|
}
|
|
}
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
@@ -224,14 +222,6 @@ export default {
|
|
this.$nextTick(() => { // 页面渲染完成后的回调
|
|
this.$nextTick(() => { // 页面渲染完成后的回调
|
|
_this.setTableH()
|
|
_this.setTableH()
|
|
})
|
|
})
|
|
- // 获取当前登录用户经销商等级
|
|
|
|
- getCurrentDealer().then(res => {
|
|
|
|
- if (res.status == 200) {
|
|
|
|
- this.dealerData = res.data
|
|
|
|
- } else {
|
|
|
|
- this.dealerData = null
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
},
|
|
},
|
|
setTableH () {
|
|
setTableH () {
|
|
const tableSearchH = this.$refs.tableSearch.offsetHeight
|
|
const tableSearchH = this.$refs.tableSearch.offsetHeight
|