Commit 8d755754 authored by jiangqihao's avatar jiangqihao

省,市列表

parent a1f4c886
...@@ -181,22 +181,25 @@ export default { ...@@ -181,22 +181,25 @@ export default {
Status: { Status: {
label: '状态', label: '状态',
type: 'input', type: 'input',
layout: 12 layout: 12,
vif: false,
}, },
Name: { Name: {
label: '公司名称', label: '公司名称',
type: 'input', type: 'input',
layout: 12 layout: 14
}, },
OperName: { OperName: {
label: '法人', label: '法人',
type: 'input', type: 'input',
layout: 12 layout: 12,
vif: false,
}, },
CreditCode: { CreditCode: {
label: '社会统一信用代码', label: '社会统一信用代码',
type: 'input', type: 'input',
layout: 12 layout: 12,
vif: false,
}, },
} }
} }
......
...@@ -48,12 +48,17 @@ const customersRouter = { ...@@ -48,12 +48,17 @@ const customersRouter = {
hidden: true, hidden: true,
}, },
{ {
path: '/regular', path: '/Provincial-agentList',
component: () => import('@/views/customers/regular-customers'), component: () => import('@/views/customers/provincial-agentList'),
name: 'RegularCustomers', name: 'ProvincialAgentList',
meta: { title: 'regularCustomers' } meta: { title: '省级代理商' }
},
{
path: '/Municipal-agentList',
component: () => import('@/views/customers/municipal-agentList'),
name: 'MunicipalAgentList',
meta: { title: '市级代理商' }
}, },
// { // {
// path: 'resource', // path: 'resource',
// meta: { title: '资源池管理' }, // meta: { title: '资源池管理' },
......
...@@ -229,7 +229,6 @@ export default { ...@@ -229,7 +229,6 @@ export default {
'formData.ExtSocialUnifiedCreditCode_SDK': { 'formData.ExtSocialUnifiedCreditCode_SDK': {
handler(newValue) { handler(newValue) {
console.log("单个属性监听", newValue) console.log("单个属性监听", newValue)
this.sections[0].formDesc.ExtRegisteredCapital_SDK.default =
qccGetOne({searchKey: newValue}).then(res =>{ qccGetOne({searchKey: newValue}).then(res =>{
this.sections[0].formDesc.ExtRegisteredCapital_SDK.default = res.results.Result.RegistCapi this.sections[0].formDesc.ExtRegisteredCapital_SDK.default = res.results.Result.RegistCapi
}) })
......
...@@ -57,7 +57,8 @@ export default { ...@@ -57,7 +57,8 @@ export default {
// 添加 // 添加
handleAdd() { handleAdd() {
this.$router.push({ path: '/customersAdd' }) this.$router.push({ path: '/customersAdd' })
} },
handleSelectionChange() {}
} }
} }
</script> </script>
......
import i18n from '@/lang'
import { customer } from '@/api/customers'
const tableConfig = {
url: customer.searchUrl,
defaultColumns: {
minWidth: 120,
showOverflowTooltip: true,
align: 'center'
},
columns: {
ExtCustomerID_SDK: {
label: '代理商编码',
type: 'input'
},
Name: {
label: '公司名称',
type: 'input',
showInSearch: true,
},
ExtCorporateName_SDK: {
label: '法定人代表',
type: 'input'
},
ExtSocialUnifiedCreditCode_SDK: {
label: '统一社会信用代码',
type: 'input'
},
CreationOn: {
label: '注册时间',
type: 'input'
},
// Ext_QuoteOppotunity_KUT: {
// type: 'input',
// label: '代理商类型',
// showInSearch: true
// },
handle: {
label: '操作',
fixed: 'right',
minWidth: 100,
hideInFilter: true,
renderItem: (h, scope, listeners) => {
return h('div', [
h('el-button', {
on: {
click: (e) => listeners.handleEdit(scope.row, 'edit')
},
props: {
icon: 'el-icon-edit-outline',
type: 'text'
}
}, i18n.t('table.edit')),
// h('el-button', {
// on: {
// click: (e) => listeners.handleTakeEffect(scope.row, 'takeEffect')
// },
// props: {
// icon: 'el-icon-circle-check',
// type: 'text'
// }
// }, i18n.t('table.takeEffect')),
// h('el-button', {
// on: {
// click: (e) => listeners.handleInvalid(scope.row, 'invalid')
// },
// props: {
// icon: 'el-icon-circle-check',
// type: 'text'
// }
// }, i18n.t('table.invalid'))
])
}
}
}
}
export default tableConfig
<template>
<div class="app-container">
<ele-search
:columns="tableConfig.columns"
@handleSearch="handleSearch"
@handleReset="handleReset"
@handleFilter="handleFilter"
/>
<div class="table-container">
<ele-table
ref="eleTable"
v-bind="tableConfig"
:expand-params="expandParams"
:listeners="tableListeners"
:initialParams="initialParams"
@handleSelectionChange="handleSelectionChange"
/>
</div>
</div>
</template>
<script>
import constant from './constant'
import tableMixin from '@/mixins/table'
export default {
mixins: [tableMixin],
inject: ['reload'],
data() {
return {
expandParams: {}, // 筛选条件
tableListeners: {}, // 事件监听对象,供ele-table内部调用
tableConfig: constant,
initialParams: {
extCustomerType_SDK: '111'
}
}
},
created() {
this.tableListeners = {
// handleDetails: this.handleDetails, // 添加
// handleTakeEffect: this.handleTakeEffect, // 生效
handleEdit: this.handleEdit, // 编辑
// handleInvalid: this.handleInvalid // 失效
}
},
methods: {
// 编辑
handleEdit() {
console.log("编辑")
},
// 添加
handleAdd() {
this.$router.push({ path: '/customersAdd' })
},
handleSelectionChange() {
}
}
}
</script>
<style>
</style>
import i18n from '@/lang'
import { customer } from '@/api/customers'
const tableConfig = {
url: customer.searchUrl,
defaultColumns: {
minWidth: 120,
showOverflowTooltip: true,
align: 'center'
},
columns: {
ExtCustomerID_SDK: {
label: '代理商编码',
type: 'input'
},
Name: {
label: '公司名称',
type: 'input',
showInSearch: true,
},
ExtCorporateName_SDK: {
label: '法定人代表',
type: 'input'
},
ExtSocialUnifiedCreditCode_SDK: {
label: '统一社会信用代码',
type: 'input'
},
CreationOn: {
label: '注册时间',
type: 'input'
},
// Ext_QuoteOppotunity_KUT: {
// type: 'input',
// label: '代理商类型',
// showInSearch: true
// },
handle: {
label: '操作',
fixed: 'right',
minWidth: 100,
hideInFilter: true,
renderItem: (h, scope, listeners) => {
return h('div', [
h('el-button', {
on: {
click: (e) => listeners.handleEdit(scope.row, 'edit')
},
props: {
icon: 'el-icon-edit-outline',
type: 'text'
}
}, i18n.t('table.edit')),
// h('el-button', {
// on: {
// click: (e) => listeners.handleTakeEffect(scope.row, 'takeEffect')
// },
// props: {
// icon: 'el-icon-circle-check',
// type: 'text'
// }
// }, i18n.t('table.takeEffect')),
// h('el-button', {
// on: {
// click: (e) => listeners.handleInvalid(scope.row, 'invalid')
// },
// props: {
// icon: 'el-icon-circle-check',
// type: 'text'
// }
// }, i18n.t('table.invalid'))
])
}
}
}
}
export default tableConfig
<template>
<div class="app-container">
<ele-search
:columns="tableConfig.columns"
@handleSearch="handleSearch"
@handleReset="handleReset"
@handleFilter="handleFilter"
/>
<div class="table-container">
<ele-table
ref="eleTable"
v-bind="tableConfig"
:expand-params="expandParams"
:listeners="tableListeners"
:initialParams="initialParams"
@handleSelectionChange="handleSelectionChange"
/>
</div>
</div>
</template>
<script>
import constant from './constant'
import tableMixin from '@/mixins/table'
export default {
mixins: [tableMixin],
inject: ['reload'],
data() {
return {
expandParams: {}, // 筛选条件
tableListeners: {}, // 事件监听对象,供ele-table内部调用
tableConfig: constant,
initialParams: {
extCustomerType_SDK: '101'
}
}
},
created() {
this.tableListeners = {
// handleDetails: this.handleDetails, // 添加
// handleTakeEffect: this.handleTakeEffect, // 生效
handleEdit: this.handleEdit, // 编辑
// handleInvalid: this.handleInvalid // 失效
}
},
methods: {
// 编辑
handleEdit() {
console.log("编辑")
},
// 添加
handleAdd() {
this.$router.push({ path: '/customersAdd' })
},
handleSelectionChange() {
}
}
}
</script>
<style>
</style>
...@@ -180,9 +180,10 @@ export default { ...@@ -180,9 +180,10 @@ export default {
extPassword_SDK: this.loginForm.password extPassword_SDK: this.loginForm.password
} }
this.$store.dispatch('user/login', params) this.$store.dispatch('user/login', params)
.then(() => { .then(res => {
this.$router.push({ path: this.redirect || '/', query: this.otherQuery }) this.$router.push({ path: this.redirect || '/', query: this.otherQuery })
this.loading = false this.loading = false
console.log(res)
}) })
.catch(() => { .catch(() => {
this.loading = false this.loading = false
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment