|
@@ -63,7 +63,18 @@
|
|
:scroll="{ y: tableHeight }"
|
|
:scroll="{ y: tableHeight }"
|
|
:defaultLoadData="false"
|
|
:defaultLoadData="false"
|
|
bordered>
|
|
bordered>
|
|
|
|
+ <!-- 操作 -->
|
|
|
|
+ <template slot="action" slot-scope="text, record">
|
|
|
|
+ <a-button
|
|
|
|
+ size="small"
|
|
|
|
+ type="link"
|
|
|
|
+ class="button-primary"
|
|
|
|
+ @click="handleDetail(record)"
|
|
|
|
+ >销售记录</a-button>
|
|
|
|
+ </template>
|
|
</s-table>
|
|
</s-table>
|
|
|
|
+ <!-- 销售记录 -->
|
|
|
|
+ <product-salesRecord-modal ref="salseRecord" :openModal="openModal" @close="openModal = false" />
|
|
</a-card>
|
|
</a-card>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -74,13 +85,15 @@ import ProductType from '../../common/productType.js'
|
|
import ProductBrand from '../../common/productBrand.js'
|
|
import ProductBrand from '../../common/productBrand.js'
|
|
import { getCurrentDealer } from '@/api/product'
|
|
import { getCurrentDealer } from '@/api/product'
|
|
import { dealerProductPriceList } from '@/api/dealerProduct'
|
|
import { dealerProductPriceList } from '@/api/dealerProduct'
|
|
|
|
+import productSalesRecordModal from './productSalesRecordModal.vue'
|
|
export default {
|
|
export default {
|
|
name: 'DealerProductPriceList',
|
|
name: 'DealerProductPriceList',
|
|
- components: { STable, VSelect, ProductType, ProductBrand },
|
|
|
|
|
|
+ components: { STable, VSelect, ProductType, ProductBrand, productSalesRecordModal },
|
|
mixins: [commonMixin],
|
|
mixins: [commonMixin],
|
|
data () {
|
|
data () {
|
|
return {
|
|
return {
|
|
tableHeight: 0,
|
|
tableHeight: 0,
|
|
|
|
+ openModal: false,
|
|
advanced: true, // 高级搜索 展开/关闭
|
|
advanced: true, // 高级搜索 展开/关闭
|
|
queryParam: { // 查询条件
|
|
queryParam: { // 查询条件
|
|
name: '',
|
|
name: '',
|
|
@@ -131,7 +144,8 @@ export default {
|
|
// { title: '市级价', dataIndex: 'cityPrice', width: '8%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
// { title: '市级价', dataIndex: 'cityPrice', width: '8%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
// { title: '特约价', dataIndex: 'specialPrice', width: '8%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
// { title: '特约价', dataIndex: 'specialPrice', width: '8%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
// { title: '终端会员价', dataIndex: 'terminalPrice', width: '8%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
// { title: '终端会员价', dataIndex: 'terminalPrice', width: '8%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
- { title: '车主价', dataIndex: 'carOwnersPrice', width: '6%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } }
|
|
|
|
|
|
+ { title: '车主价', dataIndex: 'carOwnersPrice', width: '6%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
|
|
+ { title: '操作', scopedSlots: { customRender: 'action' }, width: '6%', align: 'center' }
|
|
]
|
|
]
|
|
if (this.isCostPrice) {
|
|
if (this.isCostPrice) {
|
|
arr.splice(6, 0, { title: '成本价', dataIndex: 'offerCost', width: '6%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } })
|
|
arr.splice(6, 0, { title: '成本价', dataIndex: 'offerCost', width: '6%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } })
|
|
@@ -176,6 +190,11 @@ export default {
|
|
this.queryParam.productTypeSn2 = val[1] ? val[1] : ''
|
|
this.queryParam.productTypeSn2 = val[1] ? val[1] : ''
|
|
this.queryParam.productTypeSn3 = val[2] ? val[2] : ''
|
|
this.queryParam.productTypeSn3 = val[2] ? val[2] : ''
|
|
},
|
|
},
|
|
|
|
+ // 销售记录
|
|
|
|
+ handleDetail (row) {
|
|
|
|
+ this.openModal = true
|
|
|
|
+ this.$refs.salseRecord.getDetail(row)
|
|
|
|
+ },
|
|
pageInit () {
|
|
pageInit () {
|
|
const _this = this
|
|
const _this = this
|
|
this.$nextTick(() => { // 页面渲染完成后的回调
|
|
this.$nextTick(() => { // 页面渲染完成后的回调
|