Commit 067af916 authored by jiangqihao's avatar jiangqihao

附件

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