Commit 067af916 authored by jiangqihao's avatar jiangqihao

附件

parent 2b4f7141
...@@ -24,28 +24,28 @@ const customersRouter = { ...@@ -24,28 +24,28 @@ const customersRouter = {
path: '/customersAdd', path: '/customersAdd',
component: () => import('@/views/customers/customers-add'), component: () => import('@/views/customers/customers-add'),
name: 'CustomersOverviewAdd', name: 'CustomersOverviewAdd',
meta: {title: '代理商新增'}, meta: {title: '总代注册'},
hidden: true, hidden: true,
}, },
{ {
path: '/CustomersOverview-detail', path: '/CustomersOverview-detail',
component: () => import('@/views/customers/customers-details/index.vue'), component: () => import('@/views/customers/customers-details/index.vue'),
name: 'CustomersOverviewDetail', name: 'CustomersOverviewDetail',
meta: {title: '总代理商详情'}, meta: {title: '总代详情'},
hidden: true, hidden: true,
}, },
{ {
path: '/CustomersProvince-detail', path: '/CustomersProvince-detail',
component: () => import('@/views/customers/customers-details/province.vue'), component: () => import('@/views/customers/customers-details/province.vue'),
name: 'CustomersProvinceDetail', name: 'CustomersProvinceDetail',
meta: {title: '省代理商详情'}, meta: {title: 'RSP信息详情'},
hidden: true, hidden: true,
}, },
{ {
path: '/CustomersCity-detail', path: '/CustomersCity-detail',
component: () => import('@/views/customers/customers-details/area.vue'), component: () => import('@/views/customers/customers-details/area.vue'),
name: 'CustomersCityDetail', name: 'CustomersCityDetail',
meta: {title: '城市代理商详情'}, meta: {title: 'CCP信息详情'},
hidden: true, hidden: true,
}, },
{ {
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
</el-button> </el-button>
</div> </div>
<div> <div>
<PersonalInFo :addBtnStart='addBtnStart' :dedeleBtnStart="dedeleBtnStart" :type-code="typeCode" :isShowBtn='isShowBtn' :isShowEditBtn="isShowEditBtn" @showAuthentication="showStart"/> <PersonalInFo :addBtnStart='addBtnStart' :dedeleBtnStart="dedeleBtnStart" :type-code="typeCode" :isShowBtn='isShowBtn' :isShowEditBtn="isShowEditBtn" @showAuthentication="showStart" :searchUrl="searchUrl"/>
</div> </div>
<!-- <PersonalInFo :addBtnStart='addBtnStart' :dedeleBtnStart="dedeleBtnStart" :type-code="typeCode" :isShowEditBtn='btn'/> --> <!-- <PersonalInFo :addBtnStart='addBtnStart' :dedeleBtnStart="dedeleBtnStart" :type-code="typeCode" :isShowEditBtn='btn'/> -->
</div> </div>
...@@ -52,9 +52,10 @@ export default { ...@@ -52,9 +52,10 @@ export default {
data () { data () {
return { return {
loading: false, loading: false,
searchUrl: '',
btnLoading: false, btnLoading: false,
typeCode: uploadCode.customer, typeCode: uploadCode.customer,
title: '城市代理商详情', title: 'CCP信息详情',
addBtnStart: true, addBtnStart: true,
dedeleBtnStart: true, dedeleBtnStart: true,
isShowBtn:true, isShowBtn:true,
...@@ -251,52 +252,52 @@ export default { ...@@ -251,52 +252,52 @@ export default {
}, },
} }
}, },
{ // {
title: "签约信息", // title: "签约信息",
formDesc: { // formDesc: {
ExtChannelType_SDKText: { // ExtChannelType_SDKText: {
type: 'input', // type: 'input',
label: '签约渠道类型', // label: '签约渠道类型',
layout: 12, // layout: 12,
disabled: true // disabled: true
}, // },
ExtLockRsp_SDK: { // ExtLockRsp_SDK: {
type: 'input', // type: 'input',
label: '签约渠道类型', // label: '签约渠道类型',
layout: 12, // layout: 12,
disabled: true // disabled: true
}, // },
ExtLockCity_SDK: { // ExtLockCity_SDK: {
type: 'input', // type: 'input',
label: '城市范围覆盖', // label: '城市范围覆盖',
layout: 12, // layout: 12,
disabled: true // disabled: true
}, // },
} // }
}, // },
{ // {
title: "合作日期", // title: "合作日期",
formDesc: { // formDesc: {
ExtStartDate_SDK: { // ExtStartDate_SDK: {
type: 'input', // type: 'input',
label: '初始合作开始时间', // label: '初始合作开始时间',
layout: 12, // layout: 12,
disabled: true // disabled: true
}, // },
ExtAuthenticationDate_SDK: { // ExtAuthenticationDate_SDK: {
type: 'input', // type: 'input',
label: '高级认证日期', // label: '高级认证日期',
layout: 12, // layout: 12,
disabled: true // disabled: true
}, // },
ExtEndDate_SDK: { // ExtEndDate_SDK: {
type: 'input', // type: 'input',
label: '合作终止日期', // label: '合作终止日期',
layout: 12, // layout: 12,
disabled: true // disabled: true
}, // },
} // }
} // }
], ],
rules: {} rules: {}
} }
...@@ -339,6 +340,7 @@ export default { ...@@ -339,6 +340,7 @@ export default {
}, },
getOneData() { getOneData() {
this.loading = true this.loading = true
this.searchUrl = '/file/search'
const dataId = this.$route.query.objectID const dataId = this.$route.query.objectID
customerGetOne({ objectID: dataId }).then(res => { customerGetOne({ objectID: dataId }).then(res => {
this.loading = false this.loading = false
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
@request-success="handleSuccess" @request-success="handleSuccess"
/> />
</div> </div>
<PersonalInFo :addBtnStart='addBtnStart' :dedeleBtnStart="dedeleBtnStart" :type-code="typeCode"/> <PersonalInFo :addBtnStart='addBtnStart' :dedeleBtnStart="dedeleBtnStart" :type-code="typeCode" :searchUrl="searchUrl"/>
</div> </div>
</template> </template>
...@@ -36,9 +36,10 @@ export default { ...@@ -36,9 +36,10 @@ export default {
}, },
data () { data () {
return { return {
searchUrl: '',
loading: false, loading: false,
typeCode: uploadCode.customer, typeCode: uploadCode.customer,
title: '总代理商详情', title: '总代详情',
addBtnStart: true, addBtnStart: true,
dedeleBtnStart: true, dedeleBtnStart: true,
objectID: '', objectID: '',
...@@ -239,17 +240,18 @@ export default { ...@@ -239,17 +240,18 @@ export default {
type: 'input', type: 'input',
label: '签约渠道类型', label: '签约渠道类型',
layout: 12, layout: 12,
disabled: true disabled: true,
// value: 'ExtChannelType_SDKText'
}, },
ExtLockRsp_SDK: { ExtProductGroup_SDK: {
type: 'input', type: 'input',
label: '签约渠道类型', label: '签约产品组',
layout: 12, layout: 12,
disabled: true disabled: true
}, },
ExtLockCity_SDK: { ExtTotalAgent_SDK: {
type: 'input', type: 'input',
label: '城市范围覆盖', label: '签约总代',
layout: 12, layout: 12,
disabled: true disabled: true
}, },
...@@ -315,6 +317,7 @@ export default { ...@@ -315,6 +317,7 @@ export default {
}, },
getOneData() { getOneData() {
this.loading = true this.loading = true
this.searchUrl = '/file/search'
const dataId = this.$route.query.objectID const dataId = this.$route.query.objectID
customerGetOne({ objectID: dataId }).then(res => { customerGetOne({ objectID: dataId }).then(res => {
this.formData = res.results[0] this.formData = res.results[0]
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
@request-success="handleSuccess" @request-success="handleSuccess"
/> />
</div> </div>
<PersonalInFo :addBtnStart='addBtnStart' :dedeleBtnStart="dedeleBtnStart" :type-code="typeCode"/> <PersonalInFo :addBtnStart='addBtnStart' :dedeleBtnStart="dedeleBtnStart" :type-code="typeCode" :searchUrl="searchUrl"/>
</div> </div>
</template> </template>
...@@ -36,9 +36,10 @@ export default { ...@@ -36,9 +36,10 @@ export default {
}, },
data () { data () {
return { return {
searchUrl: '',
loading: false, loading: false,
typeCode: uploadCode.customer, typeCode: uploadCode.customer,
title: '省代理商详情', title: 'RSP信息详情',
addBtnStart: true, addBtnStart: true,
dedeleBtnStart: true, dedeleBtnStart: true,
objectID: '', objectID: '',
...@@ -242,43 +243,20 @@ export default { ...@@ -242,43 +243,20 @@ export default {
disabled: true, disabled: true,
// value: 'ExtChannelType_SDKText' // value: 'ExtChannelType_SDKText'
}, },
ExtLockRsp_SDK: { ExtProductGroup_SDK: {
type: 'input', type: 'input',
label: '签约渠道类型', label: '签约产品组',
layout: 12, layout: 12,
disabled: true disabled: true
}, },
ExtLockCity_SDK: { ExtTotalAgent_SDK: {
type: 'input', type: 'input',
label: '城市范围覆盖', label: '签约总代',
layout: 12, layout: 12,
disabled: true disabled: true
}, },
} }
}, },
{
title: "合作日期",
formDesc: {
ExtStartDate_SDK: {
type: 'input',
label: '初始合作开始时间',
layout: 12,
disabled: true
},
ExtAuthenticationDate_SDK: {
type: 'input',
label: '高级认证日期',
layout: 12,
disabled: true
},
ExtEndDate_SDK: {
type: 'input',
label: '合作终止日期',
layout: 12,
disabled: true
},
}
}
], ],
rules: {} rules: {}
} }
...@@ -316,6 +294,7 @@ export default { ...@@ -316,6 +294,7 @@ export default {
}, },
getOneData() { getOneData() {
this.loading = true this.loading = true
this.searchUrl = '/file/search'
const dataId = this.$route.query.objectID const dataId = this.$route.query.objectID
customerGetOne({ objectID: dataId }).then(res => { customerGetOne({ objectID: dataId }).then(res => {
this.loading = false this.loading = false
...@@ -323,6 +302,32 @@ export default { ...@@ -323,6 +302,32 @@ export default {
if(res.results[0].ExtCustomerType_SDK === '111') { if(res.results[0].ExtCustomerType_SDK === '111') {
this.btnStart = false this.btnStart = false
} }
if(res.results[0].ExtProcessStatus_SDK === '131') {
const time = {
title: "合作日期",
formDesc: {
ExtStartDate_SDK: {
type: 'input',
label: '初始合作开始时间',
layout: 12,
disabled: true
},
ExtAuthenticationDate_SDK: {
type: 'input',
label: '高级认证日期',
layout: 12,
disabled: true
},
ExtEndDate_SDK: {
type: 'input',
label: '合作终止日期',
layout: 12,
disabled: true
},
}
}
this.sections.push(time)
}
}).catch(() => { }).catch(() => {
this.loading = false this.loading = false
this.$$message.error("数据获取失败") this.$$message.error("数据获取失败")
......
...@@ -100,6 +100,10 @@ export default { ...@@ -100,6 +100,10 @@ export default {
isShowBtn: { isShowBtn: {
type: Boolean, type: Boolean,
default: true, default: true,
},
searchUrl: {
type: String,
default: ''
} }
}, },
data() { data() {
...@@ -141,9 +145,16 @@ export default { ...@@ -141,9 +145,16 @@ export default {
handler(val){}, handler(val){},
deep: true, deep: true,
immediate: true, immediate: true,
},
searchUrl: {
handler(val){},
deep: true,
immediate: true,
} }
}, },
created() { created() {
this.tableConfig.url = this.searchUrl
// console.log(this.tableConfig.url)
this.tableConfig.columns.handle.vif = this.isShowBtn this.tableConfig.columns.handle.vif = this.isShowBtn
constant.tableConfig.initialParams = { constant.tableConfig.initialParams = {
BusinessObjectID: this.objectID || this.$route.query.objectID, BusinessObjectID: this.objectID || this.$route.query.objectID,
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
@request-success="handleSuccess" @request-success="handleSuccess"
/> />
</div> </div>
<PersonalInFo :addBtnStart='addBtnStart' :dedeleBtnStart="dedeleBtnStart" :type-code="typeCode"/> <PersonalInFo :addBtnStart='addBtnStart' :dedeleBtnStart="dedeleBtnStart" :type-code="typeCode" :searchUrl="searchUrl"/>
</div> </div>
</template> </template>
...@@ -37,8 +37,9 @@ export default { ...@@ -37,8 +37,9 @@ export default {
data () { data () {
return { return {
loading: false, loading: false,
searchUrl: '',
typeCode: uploadCode.customer, typeCode: uploadCode.customer,
title: '代理商详情', title: '注册详情',
dedeleBtnStart: true, dedeleBtnStart: true,
objectID: '', objectID: '',
addBtnStart: true, addBtnStart: true,
...@@ -236,17 +237,17 @@ export default { ...@@ -236,17 +237,17 @@ export default {
type: 'input', type: 'input',
label: '签约渠道类型', label: '签约渠道类型',
layout: 12, layout: 12,
disabled: true disabled: true,
}, },
ExtLockRsp_SDK: { extProductGroup_SDK: {
type: 'input', type: 'input',
label: '签约渠道类型', label: '签约产品组',
layout: 12, layout: 12,
disabled: true disabled: true
}, },
ExtLockCity_SDK: { extTotalAgent_SDK: {
type: 'input', type: 'input',
label: '城市范围覆盖', label: '签约总代',
layout: 12, layout: 12,
disabled: true disabled: true
}, },
...@@ -312,7 +313,10 @@ export default { ...@@ -312,7 +313,10 @@ export default {
}, },
async getOneData() { async getOneData() {
this.loading = true this.loading = true
if (JSON.parse(localStorage.getItem('USERINFO')).ExtCustomerObjectID_SDK !== '') {
this.searchUrl = '/file/search'
customerGetOne({ objectID: JSON.parse(localStorage.getItem('USERINFO')).ExtCustomerObjectID_SDK }).then(res => { customerGetOne({ objectID: JSON.parse(localStorage.getItem('USERINFO')).ExtCustomerObjectID_SDK }).then(res => {
// this.searchUrl = '/file/search'
this.formData = res.results[0] this.formData = res.results[0]
this.addBtnStart = false this.addBtnStart = false
this.loading = false this.loading = false
...@@ -325,6 +329,11 @@ export default { ...@@ -325,6 +329,11 @@ export default {
this.loading = false this.loading = false
this.$$message.error("数据获取失败") this.$$message.error("数据获取失败")
}) })
} else {
this.searchUrl = ''
this.loading = false
this.$message.error('数据有误,请联系管理员')
}
} }
} }
} }
......
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