|
@@ -24,7 +24,7 @@
|
|
|
</template>
|
|
|
<script>
|
|
|
import debounce from 'lodash/debounce'
|
|
|
-import { custList } from '@/api/customer'
|
|
|
+import { custList, queryCanCustomer } from '@/api/customer'
|
|
|
export default {
|
|
|
props: {
|
|
|
isValidateEnabled: {
|
|
@@ -62,6 +62,10 @@ export default {
|
|
|
dealerFlag: { // 0不含下级,1 只是下级,all是全部
|
|
|
type: [String, Number],
|
|
|
default: 'all'
|
|
|
+ },
|
|
|
+ pageType: {
|
|
|
+ type: String,
|
|
|
+ default: '0' // 0客户名称 1被合并的客户名称
|
|
|
}
|
|
|
},
|
|
|
data () {
|
|
@@ -92,7 +96,8 @@ export default {
|
|
|
if (this.isEnabled) {
|
|
|
params.enabledFlag = 1
|
|
|
}
|
|
|
- custList(params).then(res => {
|
|
|
+ const ajaxUrl = this.pageType === '0' ? custList : queryCanCustomer
|
|
|
+ ajaxUrl(params).then(res => {
|
|
|
if (fetchId !== this.lastFetchId) {
|
|
|
return
|
|
|
}
|