Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
portalhtml
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
rex
portalhtml
Commits
84f8de39
Commit
84f8de39
authored
Oct 15, 2021
by
jiangqihao
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
http://120.25.63.219:6088/rex/portalhtml
into dev
parents
618fc58a
06c249ad
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
993 additions
and
33 deletions
+993
-33
permission.js
src/permission.js
+1
-1
index.js
src/router/index.js
+10
-0
index.vue
src/views/login/city-progress/index.vue
+451
-0
index.vue
src/views/login/city-register/index.vue
+8
-14
index.vue
src/views/login/prov-progress/index.vue
+484
-0
index.vue
src/views/login/prov-register/index.vue
+39
-18
No files found.
src/permission.js
View file @
84f8de39
...
...
@@ -14,7 +14,7 @@ import getPageTitle from '@/utils/get-page-title'
NProgress
.
configure
({
showSpinner
:
false
})
// NProgress Configuration
const
whiteList
=
[
'/prov-register'
,
'/city-register'
,
'/login'
,
'/auth-redirect'
]
// no redirect whitelist
const
whiteList
=
[
'/prov-register'
,
'/city-register'
,
'/prov-progress'
,
'/city-progress'
,
'/login'
,
'/auth-redirect'
]
// no redirect whitelist
router
.
beforeEach
(
async
(
to
,
from
,
next
)
=>
{
// start progress bar
...
...
src/router/index.js
View file @
84f8de39
...
...
@@ -80,6 +80,16 @@ export const constantRoutes = [
component
:
()
=>
import
(
'@/views/login/city-register/index'
),
hidden
:
true
},
{
path
:
'/prov-progress'
,
component
:
()
=>
import
(
'@/views/login/prov-progress/index'
),
hidden
:
true
},
{
path
:
'/city-progress'
,
component
:
()
=>
import
(
'@/views/login/city-progress/index'
),
hidden
:
true
},
{
path
:
'/auth-redirect'
,
component
:
()
=>
import
(
'@/views/login/auth-redirect'
),
...
...
src/views/login/city-progress/index.vue
0 → 100644
View file @
84f8de39
<
template
>
<div
class=
"form-container"
>
<Title
:title=
"title"
>
</Title>
<div
style=
"height:50px;display: flex;align-items: center;float: right;
margin-right: 90px;"
>
<div
class=
"parallelogram2"
></div>
<div
style=
"margin-right:15px"
>
已审批
</div>
<div
class=
"parallelogram3"
></div>
<div
style=
"margin-right:15px"
>
未审批
</div>
</div>
<div
style=
"height:150px;display: flex;margin: 20px 290px;"
>
<div
class=
"div_list"
>
<div
id=
"parallelogram"
:class=
"
{'bgcolor':formData.ExtProcessNode_SDK==1}">
<div
class=
"div_txt"
>
提交
</div>
</div>
<div
class=
"parallelogram1"
></div>
<div
class=
"triangle_right"
></div>
</div>
<div
class=
"div_list"
>
<div
id=
"parallelogram"
:class=
"
{'bgcolor':formData.ExtProcessNode_SDK==2}">
<div
class=
"div_txt2"
>
审批_1区域渠道经理
</div>
</div>
<div
class=
"parallelogram1"
></div>
<div
class=
"triangle_right"
></div>
</div>
<div
class=
"div_list"
>
<div
id=
"parallelogram"
:class=
"
{'bgcolor':formData.ExtProcessNode_SDK==3}">
<div
class=
"div_txt2"
>
审批_2渠道销售总监
</div>
</div>
<div
class=
"parallelogram1"
></div>
<div
class=
"triangle_right"
></div>
</div>
<div
class=
"div_list"
>
<div
id=
"parallelogram"
:class=
"
{'bgcolor':formData.ExtProcessNode_SDK==4}">
<div
class=
"div_txt2"
>
审批_3渠道管理部
</div>
</div>
</div>
</div>
<div
class=
"basic-info"
>
<ele-form-section
v-model=
"formData"
:rules=
"rules"
:sections=
"sections"
>
<template
v-slot:ExtLockRsp_SDK=
"
{ formData }">
<!-- 插槽内容有el-form-item组件包裹 -->
<el-select
v-model=
"formData.ExtLockRsp_SDK"
:disabled=
"!formData.ExtProcessNode_SDK==2"
style=
"width: 91%"
multiple
filterable
placeholder=
"请选择"
no-match-text=
"无匹配数据"
>
<el-option
v-for=
"item in province"
:key=
"item.AccountID"
:label=
"item.Name"
:value=
"item.ExtSocialUnifiedCreditCode_SDK"
/>
</el-select>
</
template
>
<
template
v-slot:ExtLockCity_SDK=
"{ formData }"
>
<!-- 插槽内容有el-form-item组件包裹 -->
<el-select
v-model=
"formData.ExtLockCity_SDK"
:disabled=
"!formData.ExtProcessNode_SDK==2"
style=
"width: 91%"
multiple
filterable
placeholder=
"请选择"
no-match-text=
"无匹配数据"
>
<el-option
v-for=
"item in apptions"
:key=
"item.Code"
:label=
"item.Name"
:value=
"item.Code"
/>
</el-select>
</
template
>
<
template
v-slot:ExtChannelType_SDK=
"{ formData }"
>
<!-- 插槽内容有el-form-item组件包裹 -->
<el-select
v-model=
"formData.ExtChannelType_SDK"
:disabled=
"!formData.ExtProcessNode_SDK==2"
style=
"width: 91%"
filterable
placeholder=
"请选择"
no-match-text=
"无匹配数据"
>
<el-option
v-for=
"item in cOptions"
:key=
"item.id"
:label=
"item.content"
:value=
"item.keyword"
/>
</el-select>
</
template
>
</ele-form-section>
<div
class=
"table-contain"
>
<div
class=
"form-container"
>
审批意见
</div>
<!-- <div class="btn">
<el-button type="primary" @click="approve">审批</el-button>
<el-button type="" @click="reject">退回</el-button>
</div> -->
<el-table
:data=
"tableData"
border
style=
"width: 100%"
>
<el-table-column
prop=
"Node"
label=
"审批节点"
>
</el-table-column>
<el-table-column
prop=
"CreateName_SDK"
label=
"审批人"
>
</el-table-column>
<el-table-column
prop=
"Result"
label=
"审批结果"
>
</el-table-column>
<el-table-column
prop=
"CreateOn_SDK"
label=
"审批时间"
>
</el-table-column>
<el-table-column
prop=
"Note"
label=
"备注"
>
</el-table-column>
</el-table>
<pagination
v-show=
"TotalRecords>0"
:total=
"TotalRecords"
:page
.
sync=
"page.currentPage"
:limit
.
sync=
"page.pageSize"
@
pagination=
"getList"
/>
</div>
<!-- <el-dialog title="审批意见" :visible.sync="dialogFormVisible">
<el-form :model="form">
<el-form-item label-width=500>
<el-input v-model="form.note" autocomplete="off"></el-input>
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button @click="dialogFormVisible = false">取 消</el-button>
<el-button type="primary" :loading="loading" @click="approveClick">确 定</el-button>
</div>
</el-dialog> -->
</div>
</div>
</template>
<
script
>
import
Title
from
'@/components/Title'
import
{
getCustomer
,
typeSearch
,
lockRsp
,
ProcessApproval
,
processHistory
}
from
'@/api/customers'
;
import
Pagination
from
'@/components/Pagination'
import
{
Country
}
from
'@/api/qcc'
export
default
{
components
:
{
Pagination
,
Title
,
},
data
()
{
return
{
form
:{},
dialogFormVisible
:
false
,
title
:
'城市代理商审批进度查询'
,
addBtnStart
:
false
,
objectId
:
''
,
id
:
''
,
status
:
0
,
loading
:
false
,
formData
:
{},
province
:
[],
sections
:
[
{
title
:
'基本信息'
,
formDesc
:
{
Name
:
{
type
:
'input'
,
label
:
'公司全称'
,
layout
:
24
,
code
:
'qcc'
,
disabled
:
true
,
returnFn
:
function
(
row
)
{
return
{
Name
:
row
.
Name
,
ExtSocialUnifiedCreditCode_SDK
:
row
.
CreditCode
,
ExtCorporateName_SDK
:
row
.
OperName
}
},
},
ExtSecondName_SDK
:
{
type
:
'input'
,
label
:
'公司全称曾用名'
,
layout
:
12
,
disabled
:
true
,
},
ExtSocialUnifiedCreditCode_SDK
:
{
type
:
'input'
,
label
:
'社会统一信用代码'
,
disabled
:
true
,
layout
:
12
},
ExtRegisteredCapital_SDK
:
{
type
:
'input'
,
label
:
'注册资本(万元)'
,
disabled
:
true
,
layout
:
12
,
},
ExtCorporateName_SDK
:
{
type
:
'input'
,
label
:
'法人'
,
disabled
:
true
,
layout
:
12
,
},
// Ext_QuoteOppotunity_KUT: {
// type: 'input',
// label: '税务登记编号',
// layout: 12
// },
}
},
{
title
:
'地址信息'
,
formDesc
:
{
ExtProvince_SDK
:
{
type
:
'input'
,
label
:
'省份'
,
layout
:
12
,
disabled
:
true
,
},
ExtCity_SDK
:
{
type
:
'input'
,
label
:
'城市'
,
layout
:
12
,
isOptions
:
true
,
disabled
:
true
,
},
ExtDistrict_SDK
:
{
type
:
'input'
,
label
:
'县市'
,
layout
:
12
,
isOptions
:
true
,
disabled
:
true
,
},
ExtAddressDetail_SDK
:
{
type
:
'input'
,
label
:
'详细经营地址'
,
layout
:
12
,
disabled
:
true
,
},
}
},
{
title
:
'联系信息'
,
formDesc
:
{
ExtLeader_SDK
:
{
type
:
'input'
,
label
:
'公司负责人姓名'
,
disabled
:
true
,
layout
:
12
},
ExtLeaderPhone_SDK
:
{
type
:
'input'
,
label
:
'公司负责人联系方式'
,
disabled
:
true
,
layout
:
12
},
ExtLeaderEmail_SDK
:
{
type
:
'input'
,
label
:
'公司负责人邮箱'
,
disabled
:
true
,
layout
:
12
},
ExtUnis_SDK
:
{
type
:
'input'
,
layout
:
12
,
disabled
:
true
,
label
:
'Unis业务负责人姓名'
},
ExtUnisPhone_SDK
:
{
type
:
'input'
,
layout
:
12
,
disabled
:
true
,
label
:
'Unis业务负责人联系方式'
},
ExtUnisEmail_SDK
:
{
type
:
'input'
,
disabled
:
true
,
label
:
'Unis业务负责人邮箱'
,
layout
:
12
},
// ExtBusiness_SDK: {
// type: 'input',
// layout: 12,
// disabled:true,
// label: '商务负责人姓名'
// },
// ExtBusinessPhone_SDK: {
// type: 'input',
// layout: 12,
// disabled:true,
// label: '商务负责人联系方式'
// },
// ExtBusinessEmail_SDK: {
// type: 'input',
// disabled:true,
// label: '商务负责人邮箱',
// layout: 12
// },
}
},
],
tableData
:[],
TotalRecords
:
0
,
page
:{},
apptions
:[],
cOptions
:[],
// 同 vue-ele-form
rules
:
{
ExtChannelType_SDK
:
{
required
:
true
,
message
:
'请选择签约渠道类型'
},
ExtLockRsp_SDK
:
{
required
:
true
,
message
:
'请选择锁定RSP'
},
ExtLockCity_SDK
:
{
required
:
true
,
message
:
'请选择城市覆盖范围'
},
}
}
},
watch
:{
},
created
(){
this
.
id
=
this
.
$route
.
query
.
objectId
this
.
getList
()
this
.
getHistoryList
()
this
.
getChannelType
()
},
methods
:
{
getList
(){
getCustomer
({
objectID
:
this
.
id
}).
then
((
resp
)
=>
{
this
.
formData
=
resp
.
results
[
0
]
lockRsp
({
extProvince_SDK
:
resp
.
results
[
0
].
ExtProvince_SDK
}).
then
((
resp
)
=>
{
this
.
province
=
resp
.
results
})
const
app
=
{
provinceCode
:
resp
.
results
[
0
].
ExtProvince_SDK
}
this
.
$request
(
Country
.
searchCity
,
app
).
then
((
resp
)
=>
{
this
.
apptions
=
resp
.
results
})
})
},
getChannelType
(){
typeSearch
({
code
:
'ExtChannelType_SDK'
,
module
:
'Customer'
,
content
:
'CCP'
}).
then
((
resp
)
=>
{
this
.
cOptions
=
resp
})
},
getHistoryList
(){
processHistory
({
businessObjectID
:
this
.
id
}).
then
((
resp
)
=>
{
this
.
tableData
=
resp
.
results
})
},
handleSuccess
()
{
// this.$message.success('创建成功')
},
// 对象格式转化为键值对
paramsToFormData
(
obj
)
{
const
formData
=
new
FormData
();
Object
.
keys
(
obj
).
forEach
((
key
)
=>
{
if
(
obj
[
key
]
instanceof
Array
)
{
obj
[
key
].
forEach
((
item
)
=>
{
formData
.
append
(
key
,
item
);
});
return
;
}
formData
.
append
(
key
,
obj
[
key
]);
});
return
formData
;
},
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
::v-deep
.el-row--flex
{
display
:
-
webkit-box
;
.el-col-14
{
width
:
90%
;
}
}
.basic-info
{
::v-deep
.ele-form-btns
{
.el-form-item__content
{
display
:
none
;
}
}
}
.btn
{
margin-left
:
45%
;
margin-bottom
:
8px
;
}
.table-contain
{
padding
:
0
80px
0
20px
;
margin-left
:
65px
;
background
:
#fff
;
border-radius
:
2px
;
}
.div_list
{
display
:
flex
;
margin-right
:
10px
;
justify-content
:
center
;
align-items
:
center
;
}
.div_txt
{
text-align
:
center
;
line-height
:
75px
;
}
.div_txt2
{
height
:
80px
;
margin-top
:
12px
;
}
.triangle_right
{
width
:
0
;
height
:
0
;
border-top
:
20px
solid
transparent
;
border-left
:
20px
solid
#a22796
;
border-bottom
:
20px
solid
transparent
;
}
.bgcolor
{
background
:
#a22796
!
important
;
}
#parallelogram
{
width
:
115px
;
height
:
75px
;
background
:
#fff
;
margin-right
:
10px
;
border
:
2px
solid
#a22796
;
-webkit-transform
:
skew
(
0deg
);
-moz-transform
:
skew
(
0deg
);
-o-transform
:
skew
(
0deg
);
transform
:
skew
(
0deg
);
}
.parallelogram1
{
width
:
45px
;
height
:
20px
;
background
:
#a22796
;
border
:
2px
solid
#a22796
;
-webkit-transform
:
skew
(
0deg
);
-moz-transform
:
skew
(
0deg
);
-o-transform
:
skew
(
0deg
);
transform
:
skew
(
0deg
);
}
.parallelogram2
{
width
:
80px
;
height
:
30px
;
margin-right
:
10px
;
background
:
#a22796
;
border
:
2px
solid
#a22796
;
-webkit-transform
:
skew
(
0deg
);
-moz-transform
:
skew
(
0deg
);
-o-transform
:
skew
(
0deg
);
transform
:
skew
(
0deg
);
}
.parallelogram3
{
width
:
80px
;
height
:
30px
;
margin-right
:
10px
;
background
:
#fff
;
border
:
2px
solid
#a22796
;
-webkit-transform
:
skew
(
0deg
);
-moz-transform
:
skew
(
0deg
);
-o-transform
:
skew
(
0deg
);
transform
:
skew
(
0deg
);
}
</
style
>
src/views/login/city-register/index.vue
View file @
84f8de39
...
...
@@ -19,7 +19,7 @@
<el-form-item
label=
"公司全称:"
label-width=
"150px"
>
<el-input
v-model=
"formData.
N
ame"
<el-input
v-model=
"formData.
n
ame"
readonly
placeholder=
'请选择公司'
style=
"width: 100%"
>
...
...
@@ -283,7 +283,7 @@
</el-row>
<el-row>
<el-col
align=
"center"
>
<el-button
type=
"primary"
:loading=
"loading"
@
click=
"handleApprove"
>
提交
</el-button>
<el-button
type=
"primary"
:loading=
"
btn
loading"
@
click=
"handleApprove"
>
提交
</el-button>
</el-col>
</el-row>
</el-form>
...
...
@@ -350,7 +350,7 @@ export default {
inputEnter
:
false
,
countryArea
:
''
,
title
:
'城市代理商注册'
,
loading
:
false
,
btn
loading
:
false
,
formInline
:
{},
recordList
:
[],
tableData
:
[],
...
...
@@ -425,7 +425,7 @@ export default {
this
.
$request
(
Qcc
.
detailUrl
,
this
.
page
).
then
((
resp
)
=>
{
this
.
formData
.
extCorporateName_SDK
=
row
.
OperName
this
.
formData
.
extSocialUnifiedCreditCode_SDK
=
row
.
CreditCode
this
.
formData
.
N
ame
=
row
.
Name
this
.
formData
.
n
ame
=
row
.
Name
this
.
formData
.
extRegisteredCapital_SDK
=
resp
.
results
.
Result
.
RegistCapi
this
.
dialogTableVisible
=
false
})
...
...
@@ -443,20 +443,14 @@ export default {
// this.formData.extDistrictName_SDK=el[this.formData.extDistrict_SDK]
// })
this
.
formData
.
ExtCustomerType_SDK
=
111
this
.
loading
=
true
this
.
btn
loading
=
true
this
.
$request
(
Customer
.
searchUrl
,
this
.
paramsToFormData
(
this
.
formData
)).
then
((
resp
)
=>
{
this
.
loading
=
false
// console.log(resp)
if
(
resp
.
results
.
length
<
40
){
this
.
btnloading
=
false
this
.
$message
.
success
(
'提交成功!'
)
this
.
handleClickGoBack
()
}
else
{
this
.
loading
=
false
this
.
$message
.
error
(
'提交失败!'
)
}
this
.
$router
.
back
()
})
}
else
{
this
.
loading
=
false
this
.
btn
loading
=
false
this
.
$message
.
warning
(
'请输入必填信息!'
)
}
});
...
...
src/views/login/prov-progress/index.vue
0 → 100644
View file @
84f8de39
<
template
>
<div
class=
"form-container"
>
<Title
:title=
"title"
>
</Title>
<div
style=
"height:50px;display: flex;align-items: center;float: right;
margin-right: 90px;"
>
<div
class=
"parallelogram2"
></div>
<div
style=
"margin-right:15px"
>
已审批
</div>
<div
class=
"parallelogram3"
></div>
<div
style=
"margin-right:15px"
>
未审批
</div>
</div>
<div
style=
"height:150px;display: flex;margin: 20px 290px;"
>
<div
class=
"div_list"
>
<div
id=
"parallelogram"
:class=
"
{'bgcolor':formData.ExtProcessNode_SDK==1}">
<div
class=
"div_txt"
>
提交
</div>
</div>
<div
class=
"parallelogram1"
></div>
<div
class=
"triangle_right"
></div>
</div>
<div
class=
"div_list"
>
<div
id=
"parallelogram"
:class=
"
{'bgcolor':formData.ExtProcessNode_SDK==2}">
<div
class=
"div_txt2"
>
审批_1区域渠道经理
</div>
</div>
<div
class=
"parallelogram1"
></div>
<div
class=
"triangle_right"
></div>
</div>
<div
class=
"div_list"
>
<div
id=
"parallelogram"
:class=
"
{'bgcolor':formData.ExtProcessNode_SDK==3}">
<div
class=
"div_txt2"
>
审批_2渠道销售部大区负责人
</div>
</div>
<div
class=
"parallelogram1"
></div>
<div
class=
"triangle_right"
></div>
</div>
<div
class=
"div_list"
>
<div
id=
"parallelogram"
:class=
"
{'bgcolor':formData.ExtProcessNode_SDK==4}">
<div
class=
"div_txt2"
>
审批_3渠道销售总监
</div>
</div>
<div
class=
"parallelogram1"
></div>
<div
class=
"triangle_right"
></div>
</div>
<div
class=
"div_list"
>
<div
id=
"parallelogram"
:class=
"
{'bgcolor':formData.ExtProcessNode_SDK==5}">
<div
class=
"div_txt2"
>
审批_4渠道管理部
</div>
</div>
</div>
</div>
<div
class=
"basic-info"
>
<ele-form-section
v-model=
"formData"
:sections=
"sections"
>
</ele-form-section>
<div
class=
"table-contain"
>
<div
class=
"form-container"
>
审批意见
</div>
<!--
<div
class=
"btn"
>
<el-button
type=
"primary"
@
click=
"approve"
>
审批
</el-button>
<el-button
type=
""
@
click=
"reject"
>
退回
</el-button>
</div>
-->
<el-table
:data=
"tableData"
border
style=
"width: 100%"
>
<el-table-column
prop=
"Node"
label=
"审批节点"
>
</el-table-column>
<el-table-column
prop=
"CreateName_SDK"
label=
"审批人"
>
</el-table-column>
<el-table-column
prop=
"Result"
label=
"审批结果"
>
</el-table-column>
<el-table-column
prop=
"CreateOn_SDK"
label=
"审批时间"
>
</el-table-column>
<el-table-column
prop=
"Note"
label=
"备注"
>
</el-table-column>
</el-table>
<pagination
v-show=
"TotalRecords>0"
:total=
"TotalRecords"
:page
.
sync=
"page.currentPage"
:limit
.
sync=
"page.pageSize"
@
pagination=
"getList"
/>
</div>
<!--
<el-dialog
title=
"审批意见"
:visible
.
sync=
"dialogFormVisible"
>
<el-form
:model=
"form"
>
<el-form-item
label-width=
500
>
<el-input
v-model=
"form.note"
autocomplete=
"off"
></el-input>
</el-form-item>
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
@
click=
"dialogFormVisible = false"
>
取 消
</el-button>
<el-button
type=
"primary"
:loading=
"loading"
@
click=
"approveClick"
>
确 定
</el-button>
</div>
</el-dialog>
-->
</div>
</div>
</
template
>
<
script
>
import
Title
from
'@/components/Title'
import
{
getCustomer
,
typeSearch
,
lockRsp
,
ProcessApproval
,
processHistory
,
province
}
from
'@/api/customers'
;
import
{
Country
}
from
'@/api/qcc'
import
Pagination
from
'@/components/Pagination'
export
default
{
components
:
{
Pagination
,
Title
,
},
data
()
{
return
{
form
:{},
dialogFormVisible
:
false
,
title
:
'省级代理商审批进度查询'
,
addBtnStart
:
false
,
objectId
:
''
,
id
:
''
,
status
:
0
,
loading
:
false
,
formData
:
{},
province
:
[],
sections
:
[
{
title
:
'基本信息'
,
formDesc
:
{
Name
:
{
type
:
'input'
,
label
:
'公司全称'
,
layout
:
24
,
code
:
'qcc'
,
disabled
:
true
,
returnFn
:
function
(
row
)
{
return
{
Name
:
row
.
Name
,
ExtSocialUnifiedCreditCode_SDK
:
row
.
CreditCode
,
ExtCorporateName_SDK
:
row
.
OperName
}
},
},
ExtSecondName_SDK
:
{
type
:
'input'
,
label
:
'公司全称曾用名'
,
layout
:
12
,
disabled
:
true
,
},
ExtSocialUnifiedCreditCode_SDK
:
{
type
:
'input'
,
label
:
'社会统一信用代码'
,
disabled
:
true
,
layout
:
12
},
ExtRegisteredCapital_SDK
:
{
type
:
'input'
,
label
:
'注册资本(万元)'
,
disabled
:
true
,
layout
:
12
,
},
ExtCorporateName_SDK
:
{
type
:
'input'
,
label
:
'法人'
,
disabled
:
true
,
layout
:
12
,
},
// Ext_QuoteOppotunity_KUT: {
// type: 'input',
// label: '税务登记编号',
// layout: 12
// },
}
},
{
title
:
'地址信息'
,
formDesc
:
{
ExtProvince_SDK
:
{
type
:
'input'
,
label
:
'省份'
,
layout
:
12
,
disabled
:
true
,
},
ExtCity_SDK
:
{
type
:
'input'
,
label
:
'城市'
,
layout
:
12
,
isOptions
:
true
,
disabled
:
true
,
},
ExtDistrict_SDK
:
{
type
:
'input'
,
label
:
'县市'
,
layout
:
12
,
isOptions
:
true
,
disabled
:
true
,
},
ExtAddressDetail_SDK
:
{
type
:
'input'
,
label
:
'详细经营地址'
,
layout
:
12
,
disabled
:
true
,
},
}
},
{
title
:
'联系信息'
,
formDesc
:
{
ExtLeader_SDK
:
{
type
:
'input'
,
label
:
'公司负责人姓名'
,
disabled
:
true
,
layout
:
12
},
ExtLeaderPhone_SDK
:
{
type
:
'input'
,
label
:
'公司负责人联系方式'
,
disabled
:
true
,
layout
:
12
},
ExtLeaderEmail_SDK
:
{
type
:
'input'
,
label
:
'公司负责人邮箱'
,
disabled
:
true
,
layout
:
12
},
ExtUnis_SDK
:
{
type
:
'input'
,
layout
:
12
,
disabled
:
true
,
label
:
'Unis业务负责人姓名'
},
ExtUnisPhone_SDK
:
{
type
:
'input'
,
layout
:
12
,
disabled
:
true
,
label
:
'Unis业务负责人联系方式'
},
ExtUnisEmail_SDK
:
{
type
:
'input'
,
disabled
:
true
,
label
:
'Unis业务负责人邮箱'
,
layout
:
12
},
ExtBusiness_SDK
:
{
type
:
'input'
,
layout
:
12
,
disabled
:
true
,
label
:
'商务负责人姓名'
},
ExtBusinessPhone_SDK
:
{
type
:
'input'
,
layout
:
12
,
disabled
:
true
,
label
:
'商务负责人联系方式'
},
ExtBusinessEmail_SDK
:
{
type
:
'input'
,
disabled
:
true
,
label
:
'商务负责人邮箱'
,
layout
:
12
},
}
},
{
title
:
'签约信息'
,
formDesc
:
{
ExtChannelType_SDK
:
{
type
:
'input'
,
label
:
'签约渠道类型'
,
layout
:
12
,
disabled
:
true
},
ExtLockRsp_KUT
:
{
type
:
'input'
,
label
:
'签约产品组'
,
layout
:
12
,
disabled
:
true
},
ExtTotalAgent_KUT
:
{
type
:
'input'
,
label
:
'签约总代'
,
layout
:
12
,
disabled
:
true
},
ExtLockCity_SDK
:
{
type
:
'input'
,
label
:
'覆盖范围(城市)'
,
layout
:
12
,
disabled
:
true
},
}
},
],
tableData
:[],
TotalRecords
:
0
,
page
:{},
// 同 vue-ele-form
// rules: {
// ExtLockCity_SDK: {required: true, message: '请选择覆盖城市范围'},
// }
}
},
watch
:{
// province:{
// handler(newVal,oldVal){
// this.province=newVal
// },
// deep:true
// }
},
created
(){
this
.
id
=
this
.
$route
.
query
.
objectId
this
.
getList
()
this
.
getHistoryList
()
},
methods
:
{
getList
(){
getCustomer
({
objectID
:
this
.
id
}).
then
((
resp
)
=>
{
this
.
formData
=
resp
.
results
[
0
]
const
app
=
{
provinceCode
:
resp
.
results
[
0
].
ExtProvince_SDK
}
this
.
$request
(
Country
.
searchCity
,
app
).
then
((
resp
)
=>
{
this
.
province
=
resp
.
results
})
})
},
getHistoryList
(){
processHistory
({
businessObjectID
:
this
.
id
}).
then
((
resp
)
=>
{
this
.
tableData
=
resp
.
results
})
},
handleSuccess
()
{
// this.$message.success('创建成功')
},
approve
(){
this
.
dialogFormVisible
=
true
this
.
status
=
1
},
reject
(){
this
.
dialogFormVisible
=
true
this
.
status
=
2
},
approveClick
(){
const
ExtLockCity_SDK
=
this
.
formData
.
ExtLockCity_SDK
.
toString
()
const
cc
=
{
extProcessNode_SDK
:
this
.
formData
.
ExtProcessNode_SDK
,
extCustomerType_SDK
:
this
.
formData
.
ExtCustomerType_SDK
,
extProvince_SDK
:
this
.
formData
.
ExtProvince_SDK
,
objectID
:
this
.
formData
.
ObjectID
,
extLockRsp_SDK
:
this
.
formData
.
extLockRsp_SDK
,
extLockCity_SDK
:
ExtLockCity_SDK
,
extChannelType_SDK
:
this
.
formData
.
ExtChannelType_SDK
}
if
(
this
.
status
==
1
){
const
add
=
{
customerDTO
:
cc
,
note
:
this
.
form
.
note
,
result
:
"approve"
}
this
.
loading
=
true
ProcessApproval
(
add
).
then
((
resp
)
=>
{
this
.
loading
=
false
this
.
$message
.
success
(
"审批成功!"
)
this
.
dialogFormVisible
=
false
this
.
$router
.
back
()
})
}
else
{
this
.
loading
=
true
const
bdd
=
{
customerDTO
:
cc
,
note
:
this
.
form
.
note
,
result
:
"reject"
}
ProcessApproval
(
bdd
).
then
((
resp
)
=>
{
this
.
loading
=
false
this
.
$message
.
success
(
"退回成功!"
)
this
.
dialogFormVisible
=
false
this
.
$router
.
back
()
})
}
},
// 对象格式转化为键值对
paramsToFormData
(
obj
)
{
const
formData
=
new
FormData
();
Object
.
keys
(
obj
).
forEach
((
key
)
=>
{
if
(
obj
[
key
]
instanceof
Array
)
{
obj
[
key
].
forEach
((
item
)
=>
{
formData
.
append
(
key
,
item
);
});
return
;
}
formData
.
append
(
key
,
obj
[
key
]);
});
return
formData
;
},
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
::v-deep
.el-row--flex
{
display
:
-
webkit-box
;
.el-col-14
{
width
:
90%
;
}
}
.basic-info
{
::v-deep
.ele-form-btns
{
.el-form-item__content
{
display
:
none
;
}
}
}
.btn
{
margin-left
:
45%
;
margin-bottom
:
8px
;
}
.table-contain
{
padding
:
0
80px
0
20px
;
margin-left
:
65px
;
background
:
#fff
;
border-radius
:
2px
;
}
.div_list
{
display
:
flex
;
margin-right
:
10px
;
justify-content
:
center
;
align-items
:
center
;
}
.div_txt
{
text-align
:
center
;
line-height
:
75px
;
}
.div_txt2
{
height
:
80px
;
margin-top
:
12px
;
}
.triangle_right
{
width
:
0
;
height
:
0
;
border-top
:
20px
solid
transparent
;
border-left
:
20px
solid
#a22796
;
border-bottom
:
20px
solid
transparent
;
}
.bgcolor
{
background
:
#a22796
!
important
;
}
#parallelogram
{
width
:
115px
;
height
:
90px
;
background
:
#fff
;
margin-right
:
10px
;
border
:
2px
solid
#a22796
;
-webkit-transform
:
skew
(
0deg
);
-moz-transform
:
skew
(
0deg
);
-o-transform
:
skew
(
0deg
);
transform
:
skew
(
0deg
);
}
.parallelogram1
{
width
:
45px
;
height
:
20px
;
background
:
#a22796
;
border
:
2px
solid
#a22796
;
-webkit-transform
:
skew
(
0deg
);
-moz-transform
:
skew
(
0deg
);
-o-transform
:
skew
(
0deg
);
transform
:
skew
(
0deg
);
}
.parallelogram2
{
width
:
80px
;
height
:
30px
;
margin-right
:
10px
;
background
:
#a22796
;
border
:
2px
solid
#a22796
;
-webkit-transform
:
skew
(
0deg
);
-moz-transform
:
skew
(
0deg
);
-o-transform
:
skew
(
0deg
);
transform
:
skew
(
0deg
);
}
.parallelogram3
{
width
:
80px
;
height
:
30px
;
margin-right
:
10px
;
background
:
#fff
;
border
:
2px
solid
#a22796
;
-webkit-transform
:
skew
(
0deg
);
-moz-transform
:
skew
(
0deg
);
-o-transform
:
skew
(
0deg
);
transform
:
skew
(
0deg
);
}
</
style
>
src/views/login/prov-register/index.vue
View file @
84f8de39
...
...
@@ -19,7 +19,7 @@
<el-form-item
label=
"公司全称:"
label-width=
"150px"
>
<el-input
v-model=
"formData.
N
ame"
<el-input
v-model=
"formData.
n
ame"
readonly
placeholder=
'请选择公司'
style=
"width: 100%"
>
...
...
@@ -103,7 +103,7 @@
prop=
"extProvince_SDK"
label-width=
"80px"
>
<el-select
v-model=
"formData.extProvince_SDK"
style=
"width: 91%"
filterable
placeholder=
"请选择省份"
no-match-text=
"无匹配数据"
@
change=
"handleSelect"
>
<el-select
v-model=
"formData.extProvince_SDK"
style=
"width: 91%"
filterable
placeholder=
"请选择省份"
no-match-text=
"无匹配数据"
@
change=
"handleSelect
($event)
"
>
<el-option
v-for=
"item in countryOptions"
:key=
"item.Code"
...
...
@@ -135,7 +135,7 @@
prop=
"extDistrict_SDK"
label-width=
"80px"
>
<el-select
v-model=
"formData.extDistrict_SDK"
style=
"width: 91%"
filterable
placeholder=
"请选择区"
no-match-text=
"无匹配数据"
>
<el-select
v-model=
"formData.extDistrict_SDK"
style=
"width: 91%"
filterable
placeholder=
"请选择区"
no-match-text=
"无匹配数据"
@
change=
"handleSelectDis"
>
<el-option
v-for=
"item in disOptions"
:key=
"item.Code"
...
...
@@ -275,8 +275,8 @@
<el-form-item
label=
"签约信息"
/>
</el-col>
<el-col
:span=
"11"
:offset=
"1"
class=
"padding-bottom"
>
<el-form-item
label=
"签约渠道类型:"
prop=
"
E
xtChannelType_SDK"
label-width=
"120px"
>
<el-select
v-model=
"formData.
E
xtChannelType_SDK"
style=
"width: 91%"
filterable
placeholder=
"请选择"
no-match-text=
"无匹配数据"
>
<el-form-item
label=
"签约渠道类型:"
prop=
"
e
xtChannelType_SDK"
label-width=
"120px"
>
<el-select
v-model=
"formData.
e
xtChannelType_SDK"
style=
"width: 91%"
filterable
placeholder=
"请选择"
no-match-text=
"无匹配数据"
>
<el-option
v-for=
"item in aOptions"
:key=
"item.id"
...
...
@@ -287,8 +287,8 @@
</el-form-item>
</el-col>
<el-col
:span=
"12"
class=
"padding-bottom"
>
<el-form-item
label=
"签约产品组:"
prop=
"
E
xtProductGroup_KUT"
label-width=
"120px"
>
<el-select
v-model=
"formData.
E
xtProductGroup_KUT"
style=
"width: 91%"
multiple
filterable
placeholder=
"请选择"
no-match-text=
"无匹配数据"
>
<el-form-item
label=
"签约产品组:"
prop=
"
e
xtProductGroup_KUT"
label-width=
"120px"
>
<el-select
v-model=
"formData.
e
xtProductGroup_KUT"
style=
"width: 91%"
multiple
filterable
placeholder=
"请选择"
no-match-text=
"无匹配数据"
>
<el-option
v-for=
"item in bOptions"
:key=
"item.id"
...
...
@@ -299,8 +299,8 @@
</el-form-item>
</el-col>
<el-col
:span=
"11"
:offset=
"1"
class=
"padding-bottom"
>
<el-form-item
label=
"签约总代:"
prop=
"
E
xtTotalAgent_KUT"
label-width=
"100px"
>
<el-select
v-model=
"formData.
E
xtTotalAgent_KUT"
style=
"width: 91%"
multiple
filterable
placeholder=
"请选择"
no-match-text=
"无匹配数据"
>
<el-form-item
label=
"签约总代:"
prop=
"
e
xtTotalAgent_KUT"
label-width=
"100px"
>
<el-select
v-model=
"formData.
e
xtTotalAgent_KUT"
style=
"width: 91%"
multiple
filterable
placeholder=
"请选择"
no-match-text=
"无匹配数据"
>
<el-option
v-for=
"item in cOptions"
:key=
"item.id"
...
...
@@ -435,9 +435,9 @@ export default {
extBusinessPhone_SDK
:
[{
required
:
true
,
message
:
'请输入商务负责人电话'
,
trigger
:
'blur'
}],
extBusinessEmail_SDK
:
[{
required
:
true
,
message
:
'请输入商务负责人邮箱'
,
trigger
:
'blur'
},
{
type
:
'email'
,
message
:
'请输入正确的邮箱地址'
,
trigger
:
[
'blur'
,
'change'
]
}],
E
xtChannelType_SDK
:
[{
required
:
true
,
message
:
'请选择签约渠道类型'
,
trigger
:
'blur'
}],
E
xtProductGroup_KUT
:
[{
required
:
true
,
message
:
'请选择签约产品组'
,
trigger
:
'blur'
}],
E
xtTotalAgent_KUT
:
[{
required
:
true
,
message
:
'请选择签约总代'
,
trigger
:
'blur'
}],
e
xtChannelType_SDK
:
[{
required
:
true
,
message
:
'请选择签约渠道类型'
,
trigger
:
'blur'
}],
e
xtProductGroup_KUT
:
[{
required
:
true
,
message
:
'请选择签约产品组'
,
trigger
:
'blur'
}],
e
xtTotalAgent_KUT
:
[{
required
:
true
,
message
:
'请选择签约总代'
,
trigger
:
'blur'
}],
},
dialogTableVisible
:
false
,
TotalRecords
:
0
,
...
...
@@ -493,12 +493,33 @@ export default {
this
.
$request
(
Country
.
searchCity
,
app
).
then
((
resp
)
=>
{
this
.
cityOptions
=
resp
.
results
})
let
obj
=
{};
obj
=
this
.
countryOptions
.
find
((
item
)
=>
{
//这里的userList就是上面遍历的数据源
return
item
.
Code
===
value
;
//筛选出匹配数据
});
this
.
formData
.
extProvinceName_SDK
=
obj
.
Name
//获取的 name
this
.
formData
.
extProvince_SDK
=
value
//获取的 id
},
handleSelectCity
(
value
){
const
app
=
{
cityCode
:
value
}
this
.
$request
(
Country
.
searchDis
,
app
).
then
((
resp
)
=>
{
this
.
disOptions
=
resp
.
results
})
let
obj
=
{};
obj
=
this
.
cityOptions
.
find
((
item
)
=>
{
//这里的userList就是上面遍历的数据源
return
item
.
Code
===
value
;
//筛选出匹配数据
});
this
.
formData
.
extCityName_SDK
=
obj
.
Name
//获取的 name
this
.
formData
.
extCity_SDK
=
value
//获取的 id
},
handleSelectDis
(
value
){
let
obj
=
{};
obj
=
this
.
disOptions
.
find
((
item
)
=>
{
//这里的userList就是上面遍历的数据源
return
item
.
Code
===
value
;
//筛选出匹配数据
});
this
.
formData
.
extDistrictName_SDK
=
obj
.
Name
//获取的 name
this
.
formData
.
extDistrict_SDK
=
value
//获取的 id
},
createLovTable
()
{
this
.
dialogTableVisible
=
true
...
...
@@ -508,7 +529,7 @@ export default {
this
.
$request
(
Qcc
.
detailUrl
,
this
.
page
).
then
((
resp
)
=>
{
this
.
formData
.
extCorporateName_SDK
=
row
.
OperName
this
.
formData
.
extSocialUnifiedCreditCode_SDK
=
row
.
CreditCode
this
.
formData
.
N
ame
=
row
.
Name
this
.
formData
.
n
ame
=
row
.
Name
this
.
formData
.
extRegisteredCapital_SDK
=
resp
.
results
.
Result
.
RegistCapi
this
.
dialogTableVisible
=
false
})
...
...
@@ -525,11 +546,11 @@ export default {
// this.cOptions.forEach(el=>{
// this.formData.extDistrictName_SDK=el[this.formData.extDistrict_SDK]
// })
this
.
formData
.
E
xtCustomerType_SDK
=
101
const
ExtProductGroup_KUT
=
this
.
formData
.
E
xtProductGroup_KUT
.
toString
()
const
ExtTotalAgent_KUT
=
this
.
formData
.
E
xtTotalAgent_KUT
.
toString
()
this
.
formData
.
E
xtProductGroup_KUT
=
ExtProductGroup_KUT
this
.
formData
.
E
xtTotalAgent_KUT
=
ExtTotalAgent_KUT
this
.
formData
.
e
xtCustomerType_SDK
=
101
const
ExtProductGroup_KUT
=
this
.
formData
.
e
xtProductGroup_KUT
.
toString
()
const
ExtTotalAgent_KUT
=
this
.
formData
.
e
xtTotalAgent_KUT
.
toString
()
this
.
formData
.
e
xtProductGroup_KUT
=
ExtProductGroup_KUT
this
.
formData
.
e
xtTotalAgent_KUT
=
ExtTotalAgent_KUT
this
.
loading
=
true
this
.
$request
(
Customer
.
searchUrl
,
this
.
paramsToFormData
(
this
.
formData
)).
then
((
resp
)
=>
{
this
.
loading
=
false
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment