|
@@ -85,7 +85,16 @@ export default {
|
|
mixins: [commonMixin],
|
|
mixins: [commonMixin],
|
|
components: { STable, VSelect, subarea, AreaList, dealerType },
|
|
components: { STable, VSelect, subarea, AreaList, dealerType },
|
|
props: {
|
|
props: {
|
|
-
|
|
|
|
|
|
+ openModal: { // 弹框显示状态
|
|
|
|
+ type: Boolean,
|
|
|
|
+ default: false
|
|
|
|
+ },
|
|
|
|
+ chooseInfo: {// 已选经销商列表
|
|
|
|
+ type: Array,
|
|
|
|
+ default: () => {
|
|
|
|
+ return []
|
|
|
|
+ }
|
|
|
|
+ }
|
|
},
|
|
},
|
|
data () {
|
|
data () {
|
|
return {
|
|
return {
|
|
@@ -106,7 +115,6 @@ export default {
|
|
subareaAreaSn: undefined // 分区
|
|
subareaAreaSn: undefined // 分区
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- chooseInfo: [], // 已选经销商列表
|
|
|
|
selectedRowKeys: [], // 已选活动数据
|
|
selectedRowKeys: [], // 已选活动数据
|
|
dealerList: [], // 经销商列表数据
|
|
dealerList: [], // 经销商列表数据
|
|
rowSelectionInfo: null,
|
|
rowSelectionInfo: null,
|
|
@@ -151,7 +159,6 @@ export default {
|
|
loadData () {
|
|
loadData () {
|
|
this.spinning = true
|
|
this.spinning = true
|
|
const params = { pageSize: 20, pageNo: 1, ...this.pagination }
|
|
const params = { pageSize: 20, pageNo: 1, ...this.pagination }
|
|
- this.queryParam.notDealerSn = this.itemSn ? this.itemSn : undefined
|
|
|
|
dealerQueryList(Object.assign(params, this.queryParam)).then(res => {
|
|
dealerQueryList(Object.assign(params, this.queryParam)).then(res => {
|
|
let data
|
|
let data
|
|
if (res.status == 200) {
|
|
if (res.status == 200) {
|
|
@@ -188,7 +195,6 @@ export default {
|
|
// 查询
|
|
// 查询
|
|
searchForm () {
|
|
searchForm () {
|
|
this.loadData()
|
|
this.loadData()
|
|
- this.spinning = false
|
|
|
|
},
|
|
},
|
|
// 区域分区
|
|
// 区域分区
|
|
subareaChange (val) {
|
|
subareaChange (val) {
|
|
@@ -228,27 +234,10 @@ export default {
|
|
_this.$message.warning('请在列表勾选后再进行批量操作!')
|
|
_this.$message.warning('请在列表勾选后再进行批量操作!')
|
|
return
|
|
return
|
|
}
|
|
}
|
|
|
|
+ this.spinning = true
|
|
const dealerInfoList = await getDealerListInfo({ dealerSnList: _this.selectedRowKeys })
|
|
const dealerInfoList = await getDealerListInfo({ dealerSnList: _this.selectedRowKeys })
|
|
this.spinning = false
|
|
this.spinning = false
|
|
- this.$emit('plAdd', dealerInfoList.data)
|
|
|
|
- },
|
|
|
|
- // 确定
|
|
|
|
- handleAdd (row) {
|
|
|
|
- if (row.subareaArea) {
|
|
|
|
- const _this = this
|
|
|
|
- this.$confirm({
|
|
|
|
- title: '提示',
|
|
|
|
- content: '当前经销商已被其他区域分区绑定,确定要更新绑定关系吗?',
|
|
|
|
- centered: true,
|
|
|
|
- onOk () {
|
|
|
|
- _this.spinning = true
|
|
|
|
- _this.$emit('add', row)
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
- } else {
|
|
|
|
- this.spinning = true
|
|
|
|
- this.$emit('add', row)
|
|
|
|
- }
|
|
|
|
|
|
+ this.$emit('ok', dealerInfoList.data)
|
|
}
|
|
}
|
|
},
|
|
},
|
|
watch: {
|
|
watch: {
|