Commit f7f13e18 by 匡雅琴

关联企微bug修复

1 parent db2e9746
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
<template v-for="item in searchList"> <template v-for="item in searchList">
<li :key="item.id" class="el-cascader__suggestion-item" :class="item.departmentName == searchKey.departmentName" v-if="!item.childrenNums" @click="selectMerchantItem(item)"> <li :key="item.id" class="el-cascader__suggestion-item" :class="item.departmentName == searchKey.departmentName" v-if="!item.childrenNums" @click="selectMerchantItem(item)">
<div>{{ item.merchantName }}</div> <div>{{ item.merchantName }}</div>
<div class="parent-merchant">{{ item.parentMerchant }}</div> <div class="parent-merchant">{{ item.parentMerchantName }}</div>
</li> </li>
</template> </template>
</template> </template>
...@@ -132,7 +132,6 @@ export default { ...@@ -132,7 +132,6 @@ export default {
// supRangeMerchantNo-商户ID // supRangeMerchantNo-商户ID
params.parentMerchantNo = this.$globalState.session.merchantId params.parentMerchantNo = this.$globalState.session.merchantId
this.$apis.baseInfo.findMerchantTreeList(params).then(res => { this.$apis.baseInfo.findMerchantTreeList(params).then(res => {
console.log(res)
if (res.data.length) { if (res.data.length) {
this.count = res.count this.count = res.count
if (res.pageNum == 1) { if (res.pageNum == 1) {
...@@ -140,7 +139,6 @@ export default { ...@@ -140,7 +139,6 @@ export default {
} else { } else {
this.searchList = this.searchList.concat(res.data) this.searchList = this.searchList.concat(res.data)
} }
console.log(this.searchList)
} }
}) })
this.visible = true this.visible = true
...@@ -166,7 +164,6 @@ export default { ...@@ -166,7 +164,6 @@ export default {
}, },
// 选择商户账户 // 选择商户账户
selectMerchant(val) { selectMerchant(val) {
console.log(val)
this.searchKey.id = val.first.merchantNo + '' this.searchKey.id = val.first.merchantNo + ''
this.searchKey.departmentName = val.first.merchantName this.searchKey.departmentName = val.first.merchantName
this.$emit('getCurMerchant', val.first) this.$emit('getCurMerchant', val.first)
......
...@@ -116,7 +116,6 @@ export default { ...@@ -116,7 +116,6 @@ export default {
}, },
// 获取当前选择的商户 // 获取当前选择的商户
getCurMerchant(val) { getCurMerchant(val) {
console.log(val)
this.curTempMerchant = { this.curTempMerchant = {
merchantId: val.merchantNo, merchantId: val.merchantNo,
merchantName: val.merchantName merchantName: val.merchantName
...@@ -149,7 +148,6 @@ export default { ...@@ -149,7 +148,6 @@ export default {
...this.curTempMerchant, ...this.curTempMerchant,
...this.tempDepart ...this.tempDepart
} }
console.log(this.curGLData)
let flag = false let flag = false
this.dataList.forEach(item => { this.dataList.forEach(item => {
if (item.departmentId == this.curGLData.departmentId || item.merchantId == this.curGLData.merchantId) { if (item.departmentId == this.curGLData.departmentId || item.merchantId == this.curGLData.merchantId) {
...@@ -212,7 +210,6 @@ export default { ...@@ -212,7 +210,6 @@ export default {
}) })
let all = [...arrpara1, ...arrpara2, ...arrpara3] let all = [...arrpara1, ...arrpara2, ...arrpara3]
let para = Object.assign({}, ...all) let para = Object.assign({}, ...all)
console.log(para)
this.$confirm(' 请确认是否关联当前信息?', '提示', { this.$confirm(' 请确认是否关联当前信息?', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!