Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zhichan
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
蒋勇
zhichan
Commits
4fd9169c
Commit
4fd9169c
authored
Mar 05, 2020
by
王昆
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gsb
parent
5fb170bc
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
773 additions
and
1 deletions
+773
-1
bpo-admin/app/base/db/metadata/apps/platform.js
+35
-1
bpo-admin/app/base/db/metadata/bizs/wx76a324c5d201d1a4/channelmanager.js
+0
-0
bpo-admin/app/base/db/metadata/bizs/wx76a324c5d201d1a4/channelmerchantmanager.js
+0
-0
bpo-admin/app/front/vues/pages/channelmanager/channelmanager.html
+139
-0
bpo-admin/app/front/vues/pages/channelmanager/channelmanager.js
+230
-0
bpo-admin/app/front/vues/pages/channelmerchantmanager/channelmerchantmanager.html
+139
-0
bpo-admin/app/front/vues/pages/channelmerchantmanager/channelmerchantmanager.js
+230
-0
No files found.
bpo-admin/app/base/db/metadata/apps/platform.js
View file @
4fd9169c
...
@@ -1020,6 +1020,38 @@ module.exports = {
...
@@ -1020,6 +1020,38 @@ module.exports = {
],
],
},
},
{
{
"code"
:
"zc_channel_center"
,
"isGroup"
:
true
,
"icon"
:
"fa fa-user-circle"
,
"label"
:
"渠道中心 "
,
"children"
:
[
{
"code"
:
"zc_channel_manager"
,
"label"
:
"渠道管理"
,
"isMenu"
:
true
,
"bizCode"
:
"channelmanager"
,
"bizConfig"
:
null
,
"path"
:
""
},
{
"code"
:
"zc_channel_merchant_manager"
,
"label"
:
"商户管理"
,
"isMenu"
:
true
,
"bizCode"
:
"channelmerchantmanager"
,
"bizConfig"
:
null
,
"path"
:
""
},
],
},
{
"code"
:
"qd_ecompany"
,
"isGroup"
:
true
,
"icon"
:
"fa fa-user-circle"
,
"label"
:
"客户管理 "
,
"children"
:
[
{
"code"
:
"zc_eintentionall"
,
"label"
:
"意向分配"
,
"isMenu"
:
true
,
"bizCode"
:
"eintentionall"
,
"bizConfig"
:
null
,
"path"
:
""
},
],
},
{
"code"
:
"qd_ecompany"
,
"isGroup"
:
true
,
"icon"
:
"fa fa-user-circle"
,
"label"
:
"客户管理 "
,
"children"
:
[
"code"
:
"qd_ecompany"
,
"isGroup"
:
true
,
"icon"
:
"fa fa-user-circle"
,
"label"
:
"客户管理 "
,
"children"
:
[
{
{
"code"
:
"zc_eintentionall"
,
"code"
:
"zc_eintentionall"
,
...
@@ -1502,7 +1534,9 @@ module.exports = {
...
@@ -1502,7 +1534,9 @@ module.exports = {
"ecompanywork"
:
{
"title"
:
"工作量确认单"
,
"config"
:
null
,
"path"
:
"/ecompanywork"
,
"comname"
:
"ecompanywork"
},
"ecompanywork"
:
{
"title"
:
"工作量确认单"
,
"config"
:
null
,
"path"
:
"/ecompanywork"
,
"comname"
:
"ecompanywork"
},
"ecompanyworkzc"
:
{
"title"
:
"工作量确认单"
,
"config"
:
null
,
"path"
:
"/ecompanyworkzc"
,
"comname"
:
"ecompanyworkzc"
},
"ecompanyworkzc"
:
{
"title"
:
"工作量确认单"
,
"config"
:
null
,
"path"
:
"/ecompanyworkzc"
,
"comname"
:
"ecompanyworkzc"
},
"channelmanager"
:
{
"title"
:
"工作量确认单"
,
"config"
:
null
,
"path"
:
"/channelmanager"
,
"comname"
:
"channelmanager"
},
"channelmerchantmanager"
:
{
"title"
:
"工作量确认单"
,
"config"
:
null
,
"path"
:
"/channelmerchantmanager"
,
"comname"
:
"channelmerchantmanager"
},
// 需求管理
// 需求管理
"ejobmanager"
:
{
"title"
:
"需求管理"
,
"config"
:
null
,
"path"
:
"/ejobmanager"
,
"comname"
:
"ejobmanager"
},
"ejobmanager"
:
{
"title"
:
"需求管理"
,
"config"
:
null
,
"path"
:
"/ejobmanager"
,
"comname"
:
"ejobmanager"
},
"ejobapplys"
:
{
"title"
:
"需求零工"
,
"config"
:
null
,
"path"
:
"/ejobapplys"
,
"comname"
:
"ejobapplys"
},
"ejobapplys"
:
{
"title"
:
"需求零工"
,
"config"
:
null
,
"path"
:
"/ejobapplys"
,
"comname"
:
"ejobapplys"
},
...
...
bpo-admin/app/base/db/metadata/bizs/wx76a324c5d201d1a4/channelmanager.js
0 → 100644
View file @
4fd9169c
bpo-admin/app/base/db/metadata/bizs/wx76a324c5d201d1a4/channelmerchantmanager.js
0 → 100644
View file @
4fd9169c
bpo-admin/app/front/vues/pages/channelmanager/channelmanager.html
0 → 100644
View file @
4fd9169c
<gsb-pcpage>
<style>
::el-radio-button__inner
{
border-color
:
#D9D9D9
;
}
</style>
<div
style=
"padding:20px;"
>
<div
style=
"height: auto;min-width: 1000px; max-width: 1500px;"
>
<el-card
style=
"background-color: #FFFFFF;padding:10px 10px 30px 10px;margin-top: 20px;"
>
<div
style=
"width:100%;line-height: 40px;"
>
<div
style=
"float:left;width: 300px;"
>
<span
style=
"color:2F2F2F;font-size: 14px;"
>
企业名称:
</span>
<el-input
v-model=
"search.name"
placeholder=
"请输入企业名称"
maxlength=
"100"
clearable
style=
"max-width:200px;height: 36px;"
></el-input>
</div>
<div
style=
"float:left;margin-top:5px;"
>
<el-button
@
click=
"resetSearch()"
style=
"float:right;width:68px;height:36px;background-color: #54C4A7;color: #FFFFFF;font-size: 14px;padding-top:10px;"
>
重置
</el-button>
<el-button
@
click=
"opSearch"
style=
"float:right;width:68px;height:36px;background-color: #54C4A7;color: #FFFFFF;font-size: 14px;padding-top:10px;margin-right: 10px;"
>
搜索
</el-button>
</div>
</div>
</el-card>
<el-card
style=
"background-color: #FFFFFF;padding:10px 10px 30px 10px;margin-top: 20px;"
>
<div>
<div
style=
"line-height: 36px;padding-bottom: 20px;"
>
<span
style=
"float:left;color:#2F2F2F;font-size: 14px;"
>
共{{search.total}}条记录
</span>
<el-button
@
click=
"openEdit()"
style=
"float:right;width:100px;height:36px;color: #FFFFFF;font-weight: 400;border-radius: 4px;font-size: 14px;background-color: #59C1A6;padding-top:11px"
>
新增企业
</el-button>
</div>
<div>
<el-table
stripe
fix=
"true"
:data=
"search.list"
tooltip-effect=
"light"
style=
"min-width: 1000px;max-width: 1500px;margin-top: 23px;min-height: 500px;"
empty-text=
"暂无需求"
header-cell-style=
"background-color: #F5F5F5;color: #2F2F2F;font-size: 14px;font-weight:400;"
row-style=
"height:50px;"
>
<el-table-column
prop=
"id"
label=
"序号"
:formatter=
"onColFormater"
width=
"80"
align=
"center"
></el-table-column>
<el-table-column
prop=
"name"
label=
"企业名称"
:formatter=
"onColFormater"
align=
"center"
show-overflow-tooltip
></el-table-column>
<el-table-column
prop=
"legal"
label=
"法人"
:formatter=
"onColFormater"
align=
"center"
></el-table-column>
<el-table-column
prop=
"phone"
label=
"电话"
:formatter=
"onColFormater"
align=
"center"
></el-table-column>
<el-table-column
prop=
"owner.nickName"
label=
"所属人"
:formatter=
"onColFormater"
align=
"center"
></el-table-column>
<el-table-column
prop=
"addr"
label=
"联系地址"
:formatter=
"onColFormater"
align=
"center"
></el-table-column>
<el-table-column
prop=
"sealId"
label=
"公章id"
:formatter=
"onColFormater"
align=
"center"
show-overflow-tooltip
></el-table-column>
<!-- <el-table-column label="公章图片" >
<template slot-scope="scope" align="center">
<a :href="scope.row.sealUrl" target="_blank" style="float:left;text-decoration: none;color:#59C1A6;font-size: 14px;margin-left: 10px;">查看公章</a>
</template>
</el-table-column> -->
<el-table-column
prop=
"addr"
label=
"联系地址"
:formatter=
"onColFormater"
align=
"center"
show-overflow-tooltip
></el-table-column>
<el-table-column
prop=
"created_at"
label=
"创建日期"
:formatter=
"onColFormater"
align=
"center"
></el-table-column>
<el-table-column
label=
"操作"
align=
"center"
>
<template
slot-scope=
"scope"
>
<a
href=
"javascript:;"
@
click=
"openEdit(scope.row.id)"
style=
"text-decoration: none;color:#59C1A6;font-size: 14px;"
>
修改
</a>
</template>
</el-table-column>
</el-table>
<div
style=
"width:100%;text-align: center;margin-top: 20px"
>
<el-pagination
@
size-change=
"handleSizeChange"
@
current-change=
"handleCurrentChange"
:current-page=
"search.currentPage"
:page-sizes=
"[10, 20, 50, 100]"
:page-size=
"search.pageSize"
layout=
"total, sizes, prev, pager, next, jumper"
:total=
"search.total"
>
</el-pagination>
</div>
</div>
</div>
</el-card>
<el-dialog
width=
"862px"
:visible
.
sync=
"showEdit"
>
<div
slot=
"title"
>
<span
style=
"margin-left:9px;margin-top:-3px;;width:72px; height:25px; font-size:18px; font-family:PingFangSC-Regular; font-weight:400; color:rgba(51,51,51,1); line-height:25px;"
>
{{editTitle}}企业
</span>
<div
style=
"width: 862px; height: 1px;background-color: #E3E3E3;margin: 17px 20px 0px -20px"
></div>
</div>
<el-form
:model=
"dkcompany"
:rules=
"rules"
ref=
"dkcompany"
label-width=
"100px"
label=
"right"
style=
"padding:0px 100px;"
>
<div
style=
"0px 10px; line-height: 15px;padding-bottom:40px;"
>
<div
style=
"width:2px;height:15px;float: left;background-color: #54C4A7"
>
</div>
<span
style=
"font-size:15px;color: #333333;float: left;font-weight:bold;margin-left: 7px;"
>
企业信息
</span>
</div>
<el-form-item
label=
"企业名称:"
prop=
"name"
>
<el-input
v-model=
"dkcompany.name"
placeholder=
"请输入企业名称"
maxlength=
"100"
style=
"width:468px;"
clearable
></el-input>
</el-form-item>
<el-form-item
label=
"法人姓名:"
prop=
"legal"
>
<el-input
v-model=
"dkcompany.legal"
placeholder=
"请输入法人姓名"
maxlength=
"30"
style=
"width:468px;"
clearable
></el-input>
</el-form-item>
<el-form-item
label=
"联系电话:"
prop=
"phone"
>
<el-input
v-model=
"dkcompany.phone"
placeholder=
"请输入联系电话"
maxlength=
"200"
style=
"width:468px;"
clearable
></el-input>
</el-form-item>
<el-form-item
label=
"联系地址:"
prop=
"addr"
>
<el-input
v-model=
"dkcompany.addr"
placeholder=
"请输入联系地址"
maxlength=
"200"
style=
"width:468px;"
clearable
></el-input>
</el-form-item>
<el-form-item
label=
"公章名称:"
prop=
"addr"
>
<el-input
v-model=
"dkcompany.sealName"
placeholder=
"请输入公章名称"
maxlength=
"100"
style=
"width:468px;"
clearable
></el-input>
</el-form-item>
<el-form-item
label=
"归属人员:"
prop=
"owner_id"
>
<el-select
v-model=
"dkcompany.owner_id"
filterable
remote
clearable
reserve-keyword
style=
"float:left;width:255px;"
placeholder=
"请输入姓名或手机号"
@
change=
"ownerChange"
:remote-method=
"getOwnerList"
:loading=
"ownerLoading"
>
<el-option
v-for=
"item in ownerList"
:key=
"item.id"
:label=
"item.nickName"
:value=
"item.id"
>
<span
style=
"float: left;width:150px;"
>
{{ item.userName }}
</span>
<span
style=
"float: left;width:150px;"
>
{{ item.nickName }}
</span>
</el-option>
</el-select>
</el-form-item>
<!-- <el-form-item label="企业公章:" prop="sealUrl" >
<gsb-upload2 ref="upload3" v-model="dkcompany.sealUrl" ></gsb-upload3>
</el-form-item> -->
</el-form>
<div
style=
"margin-left: 200px;"
>
<el-button
:loading=
"saveLoading"
@
click=
"saveCompany"
style=
"width:120px;height:36px; background:#54C4A7; border-radius:4px;color: #FFFFFF;font-size: 16px;padding-top: 10px;"
>
保存
</el-button>
</div>
</el-dialog>
</div>
</gsb-pcpage>
\ No newline at end of file
bpo-admin/app/front/vues/pages/channelmanager/channelmanager.js
0 → 100644
View file @
4fd9169c
{
template
:
'${tmpl}'
,
data
:
function
()
{
var
validMethod
=
(
rule
,
value
,
callback
)
=>
{
return
this
.
validfileds
(
rule
,
value
,
callback
);
};
return
{
dkcompany
:
{},
editTitle
:
"新增"
,
showEdit
:
false
,
saveLoading
:
false
,
ownerList
:[],
ownerMap
:[],
ownerLoading
:
false
,
owner_id
:
""
,
search
:
{
list
:
[],
currentPage
:
1
,
pageSize
:
20
,
total
:
0
,
name
:
''
,
},
rules
:
{
name
:
[
{
required
:
true
,
message
:
'请输入企业名称'
,
trigger
:
'blur'
},
{
validator
:
validMethod
,
trigger
:
'blur'
}
],
legal
:
[
{
required
:
true
,
message
:
'请输入法人姓名'
,
trigger
:
'blur'
},
{
validator
:
validMethod
,
trigger
:
'blur'
}
],
addr
:
[
{
required
:
true
,
message
:
'请输入联系地址'
,
trigger
:
'blur'
},
{
validator
:
validMethod
,
trigger
:
'blur'
}
],
phone
:
[
{
required
:
true
,
message
:
'请输入联系电话'
,
trigger
:
'blur'
},
{
validator
:
validMethod
,
trigger
:
'blur'
}
],
sealName
:
[
{
required
:
true
,
message
:
'请输入公章名称'
,
trigger
:
'blur'
},
{
validator
:
validMethod
,
trigger
:
'blur'
}
],
/*
sealUrl : [
{ required: true, message: '请上传企业公章', trigger: 'blur' },
{ validator: validMethod, trigger: 'blur' }
],*/
owner_id
:
[
{
required
:
true
,
message
:
'请选择客户归属人员'
,
trigger
:
'blur'
},
{
validator
:
validMethod
,
trigger
:
'blur'
}
],
a
:
[],
},
}
},
mounted
:
function
()
{
this
.
resetSearch
(
true
);
},
created
:
function
()
{},
methods
:
{
getEmptySearch
()
{
return
{
list
:
[],
currentPage
:
1
,
pageSize
:
20
,
total
:
0
,
name
:
''
,
}
},
resetSearch
()
{
this
.
search
=
this
.
getEmptySearch
();
this
.
getList
();
},
tableHeaderColor
({
row
,
column
,
rowIndex
,
columnIndex
})
{
if
(
rowIndex
===
0
)
{
return
'background-color: #F5F5F5;color: #2F2F2F;font-size: 14px;font-weight:400;'
}
},
opSearch
()
{
this
.
search
.
currentPage
=
1
;
this
.
search
.
total
=
0
;
this
.
getList
();
},
getList
()
{
var
self
=
this
;
var
params
=
this
.
getParams
();
this
.
$root
.
postReq
(
"/web/dkcompanyCtl/signList"
,
{
search
:
params
}).
then
(
function
(
d
)
{
if
(
d
.
status
==
0
)
{
self
.
search
.
list
=
d
.
data
.
rows
||
[];
self
.
search
.
total
=
d
.
data
.
count
||
0
;
}
else
{
}
});
},
getParams
()
{
var
params
=
{};
for
(
var
f
in
this
.
search
)
{
if
(
f
==
"list"
)
{
continue
;
}
params
[
f
]
=
this
.
search
[
f
];
}
return
params
;
},
onColFormater
(
row
,
column
,
cellValue
,
index
)
{
return
cellValue
||
"---"
;
},
getDKcompany
(
id
)
{
var
self
=
this
;
self
.
$root
.
postReq
(
"/web/dkcompanyCtl/info"
,
{
id
:
id
,
}).
then
(
function
(
d
)
{
if
(
d
.
status
==
0
)
{
if
(
d
.
data
)
{
d
.
data
.
isEnabled
=
d
.
data
.
isEnabled
?
true
:
false
;
}
self
.
dkcompany
=
d
.
data
;
self
.
dkcompany
.
owner_id
=
self
.
dkcompany
.
owner_id
||
""
;
self
.
owner_id
=
(
d
.
data
.
owner
||
{}).
id
||
""
;
if
(
d
.
data
.
owner
)
{
self
.
ownerList
=
[
d
.
data
.
owner
];
self
.
ownerMap
[
"id_"
+
d
.
data
.
owner
.
id
]
=
d
.
data
.
owner
;
}
else
{
self
.
ownerList
=
null
;
}
}
else
{
self
.
$message
.
warning
(
d
.
msg
||
`您的网络不稳定, 请稍后重试`
);
}
});
},
toDetail
(
id
)
{
},
openEdit
(
id
)
{
this
.
ownerLoading
=
false
;
this
.
saveLoading
=
false
;
this
.
owner_id
=
null
;
if
(
this
.
$refs
.
dkcompany
)
{
this
.
$refs
.
dkcompany
.
resetFields
();
}
if
(
id
)
{
this
.
getDKcompany
(
id
);
this
.
editTitle
=
"修改"
;
}
else
{
this
.
ownerList
=
[];
this
.
editTitle
=
"新增"
;
this
.
dkcompany
=
{
isEnabled
:
true
};
}
this
.
showEdit
=
true
;
},
handleSizeChange
(
val
)
{
this
.
search
.
pageSize
=
val
;
this
.
resetSearch
();
},
handleCurrentChange
(
val
)
{
this
.
search
.
currentPage
=
val
;
this
.
getList
();
},
validfileds
(
rule
,
value
,
callback
)
{
var
self
=
this
;
if
(
rule
.
field
==
'owner_id'
)
{
if
(
!
self
.
dkcompany
.
owner_id
)
{
return
callback
(
new
Error
(
"请选择归属人员"
));
}
else
{
return
callback
();
}
}
else
{
return
callback
();
}
},
ownerChange
(
val
)
{
console
.
log
(
val
,
);
this
.
dkcompany
.
owner_id
=
val
||
0
;
this
.
owner
=
this
.
ownerMap
[
"id_"
+
val
];
console
.
log
(
this
.
owner
);
},
getOwnerList
(
query
)
{
var
self
=
this
;
self
.
ownerLoading
=
true
;
self
.
$root
.
postReq
(
"/web/userCtl/rolesSuggest"
,
{
name
:
query
,
roleCodes
:
[
"zczy"
,
"zcgl"
,
"qdzy"
,
"qdgl"
,
"ptzy"
,
"ptgl"
,
"dkhzy"
,
"dkhgl"
,
"ziying"
,
"tzgl"
,
"tzzy"
]
}).
then
(
function
(
d
)
{
self
.
ownerLoading
=
false
;
self
.
ownerList
=
d
.
data
||
[];
self
.
ownerMap
=
[];
for
(
var
o
of
self
.
ownerList
)
{
self
.
ownerMap
[
"id_"
+
o
.
id
]
=
o
;
}
});
setTimeout
(()
=>
{
self
.
ownerLoading
=
false
;
},
15000
);
},
saveCompany
()
{
var
self
=
this
;
self
.
saveLoading
=
true
;
self
.
$refs
.
dkcompany
.
validate
((
valid
)
=>
{
if
(
valid
)
{
self
.
$root
.
postReq
(
"/web/dkcompanyCtl/signSave"
,
self
.
dkcompany
).
then
(
function
(
d
)
{
if
(
d
.
status
==
0
)
{
self
.
$message
.
success
(
`保存成功`
);
self
.
showEdit
=
false
;
self
.
getList
();
}
else
{
self
.
$alert
(
d
.
msg
||
'保存失败'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
callback
:
action
=>
{}
});
}
self
.
saveLoading
=
false
;
});
}
else
{
self
.
saveLoading
=
false
;
return
false
;
}
});
setTimeout
(()
=>
{
self
.
saveLoading
=
false
;
},
5000
);
},
},
vname
:
"gsb-dkcompanyadmin"
}
\ No newline at end of file
bpo-admin/app/front/vues/pages/channelmerchantmanager/channelmerchantmanager.html
0 → 100644
View file @
4fd9169c
<gsb-pcpage>
<style>
::el-radio-button__inner
{
border-color
:
#D9D9D9
;
}
</style>
<div
style=
"padding:20px;"
>
<div
style=
"height: auto;min-width: 1000px; max-width: 1500px;"
>
<el-card
style=
"background-color: #FFFFFF;padding:10px 10px 30px 10px;margin-top: 20px;"
>
<div
style=
"width:100%;line-height: 40px;"
>
<div
style=
"float:left;width: 300px;"
>
<span
style=
"color:2F2F2F;font-size: 14px;"
>
企业名称:
</span>
<el-input
v-model=
"search.name"
placeholder=
"请输入企业名称"
maxlength=
"100"
clearable
style=
"max-width:200px;height: 36px;"
></el-input>
</div>
<div
style=
"float:left;margin-top:5px;"
>
<el-button
@
click=
"resetSearch()"
style=
"float:right;width:68px;height:36px;background-color: #54C4A7;color: #FFFFFF;font-size: 14px;padding-top:10px;"
>
重置
</el-button>
<el-button
@
click=
"opSearch"
style=
"float:right;width:68px;height:36px;background-color: #54C4A7;color: #FFFFFF;font-size: 14px;padding-top:10px;margin-right: 10px;"
>
搜索
</el-button>
</div>
</div>
</el-card>
<el-card
style=
"background-color: #FFFFFF;padding:10px 10px 30px 10px;margin-top: 20px;"
>
<div>
<div
style=
"line-height: 36px;padding-bottom: 20px;"
>
<span
style=
"float:left;color:#2F2F2F;font-size: 14px;"
>
共{{search.total}}条记录
</span>
<el-button
@
click=
"openEdit()"
style=
"float:right;width:100px;height:36px;color: #FFFFFF;font-weight: 400;border-radius: 4px;font-size: 14px;background-color: #59C1A6;padding-top:11px"
>
新增企业
</el-button>
</div>
<div>
<el-table
stripe
fix=
"true"
:data=
"search.list"
tooltip-effect=
"light"
style=
"min-width: 1000px;max-width: 1500px;margin-top: 23px;min-height: 500px;"
empty-text=
"暂无需求"
header-cell-style=
"background-color: #F5F5F5;color: #2F2F2F;font-size: 14px;font-weight:400;"
row-style=
"height:50px;"
>
<el-table-column
prop=
"id"
label=
"序号"
:formatter=
"onColFormater"
width=
"80"
align=
"center"
></el-table-column>
<el-table-column
prop=
"name"
label=
"企业名称"
:formatter=
"onColFormater"
align=
"center"
show-overflow-tooltip
></el-table-column>
<el-table-column
prop=
"legal"
label=
"法人"
:formatter=
"onColFormater"
align=
"center"
></el-table-column>
<el-table-column
prop=
"phone"
label=
"电话"
:formatter=
"onColFormater"
align=
"center"
></el-table-column>
<el-table-column
prop=
"owner.nickName"
label=
"所属人"
:formatter=
"onColFormater"
align=
"center"
></el-table-column>
<el-table-column
prop=
"addr"
label=
"联系地址"
:formatter=
"onColFormater"
align=
"center"
></el-table-column>
<el-table-column
prop=
"sealId"
label=
"公章id"
:formatter=
"onColFormater"
align=
"center"
show-overflow-tooltip
></el-table-column>
<!-- <el-table-column label="公章图片" >
<template slot-scope="scope" align="center">
<a :href="scope.row.sealUrl" target="_blank" style="float:left;text-decoration: none;color:#59C1A6;font-size: 14px;margin-left: 10px;">查看公章</a>
</template>
</el-table-column> -->
<el-table-column
prop=
"addr"
label=
"联系地址"
:formatter=
"onColFormater"
align=
"center"
show-overflow-tooltip
></el-table-column>
<el-table-column
prop=
"created_at"
label=
"创建日期"
:formatter=
"onColFormater"
align=
"center"
></el-table-column>
<el-table-column
label=
"操作"
align=
"center"
>
<template
slot-scope=
"scope"
>
<a
href=
"javascript:;"
@
click=
"openEdit(scope.row.id)"
style=
"text-decoration: none;color:#59C1A6;font-size: 14px;"
>
修改
</a>
</template>
</el-table-column>
</el-table>
<div
style=
"width:100%;text-align: center;margin-top: 20px"
>
<el-pagination
@
size-change=
"handleSizeChange"
@
current-change=
"handleCurrentChange"
:current-page=
"search.currentPage"
:page-sizes=
"[10, 20, 50, 100]"
:page-size=
"search.pageSize"
layout=
"total, sizes, prev, pager, next, jumper"
:total=
"search.total"
>
</el-pagination>
</div>
</div>
</div>
</el-card>
<el-dialog
width=
"862px"
:visible
.
sync=
"showEdit"
>
<div
slot=
"title"
>
<span
style=
"margin-left:9px;margin-top:-3px;;width:72px; height:25px; font-size:18px; font-family:PingFangSC-Regular; font-weight:400; color:rgba(51,51,51,1); line-height:25px;"
>
{{editTitle}}企业
</span>
<div
style=
"width: 862px; height: 1px;background-color: #E3E3E3;margin: 17px 20px 0px -20px"
></div>
</div>
<el-form
:model=
"dkcompany"
:rules=
"rules"
ref=
"dkcompany"
label-width=
"100px"
label=
"right"
style=
"padding:0px 100px;"
>
<div
style=
"0px 10px; line-height: 15px;padding-bottom:40px;"
>
<div
style=
"width:2px;height:15px;float: left;background-color: #54C4A7"
>
</div>
<span
style=
"font-size:15px;color: #333333;float: left;font-weight:bold;margin-left: 7px;"
>
企业信息
</span>
</div>
<el-form-item
label=
"企业名称:"
prop=
"name"
>
<el-input
v-model=
"dkcompany.name"
placeholder=
"请输入企业名称"
maxlength=
"100"
style=
"width:468px;"
clearable
></el-input>
</el-form-item>
<el-form-item
label=
"法人姓名:"
prop=
"legal"
>
<el-input
v-model=
"dkcompany.legal"
placeholder=
"请输入法人姓名"
maxlength=
"30"
style=
"width:468px;"
clearable
></el-input>
</el-form-item>
<el-form-item
label=
"联系电话:"
prop=
"phone"
>
<el-input
v-model=
"dkcompany.phone"
placeholder=
"请输入联系电话"
maxlength=
"200"
style=
"width:468px;"
clearable
></el-input>
</el-form-item>
<el-form-item
label=
"联系地址:"
prop=
"addr"
>
<el-input
v-model=
"dkcompany.addr"
placeholder=
"请输入联系地址"
maxlength=
"200"
style=
"width:468px;"
clearable
></el-input>
</el-form-item>
<el-form-item
label=
"公章名称:"
prop=
"addr"
>
<el-input
v-model=
"dkcompany.sealName"
placeholder=
"请输入公章名称"
maxlength=
"100"
style=
"width:468px;"
clearable
></el-input>
</el-form-item>
<el-form-item
label=
"归属人员:"
prop=
"owner_id"
>
<el-select
v-model=
"dkcompany.owner_id"
filterable
remote
clearable
reserve-keyword
style=
"float:left;width:255px;"
placeholder=
"请输入姓名或手机号"
@
change=
"ownerChange"
:remote-method=
"getOwnerList"
:loading=
"ownerLoading"
>
<el-option
v-for=
"item in ownerList"
:key=
"item.id"
:label=
"item.nickName"
:value=
"item.id"
>
<span
style=
"float: left;width:150px;"
>
{{ item.userName }}
</span>
<span
style=
"float: left;width:150px;"
>
{{ item.nickName }}
</span>
</el-option>
</el-select>
</el-form-item>
<!-- <el-form-item label="企业公章:" prop="sealUrl" >
<gsb-upload2 ref="upload3" v-model="dkcompany.sealUrl" ></gsb-upload3>
</el-form-item> -->
</el-form>
<div
style=
"margin-left: 200px;"
>
<el-button
:loading=
"saveLoading"
@
click=
"saveCompany"
style=
"width:120px;height:36px; background:#54C4A7; border-radius:4px;color: #FFFFFF;font-size: 16px;padding-top: 10px;"
>
保存
</el-button>
</div>
</el-dialog>
</div>
</gsb-pcpage>
\ No newline at end of file
bpo-admin/app/front/vues/pages/channelmerchantmanager/channelmerchantmanager.js
0 → 100644
View file @
4fd9169c
{
template
:
'${tmpl}'
,
data
:
function
()
{
var
validMethod
=
(
rule
,
value
,
callback
)
=>
{
return
this
.
validfileds
(
rule
,
value
,
callback
);
};
return
{
dkcompany
:
{},
editTitle
:
"新增"
,
showEdit
:
false
,
saveLoading
:
false
,
ownerList
:[],
ownerMap
:[],
ownerLoading
:
false
,
owner_id
:
""
,
search
:
{
list
:
[],
currentPage
:
1
,
pageSize
:
20
,
total
:
0
,
name
:
''
,
},
rules
:
{
name
:
[
{
required
:
true
,
message
:
'请输入企业名称'
,
trigger
:
'blur'
},
{
validator
:
validMethod
,
trigger
:
'blur'
}
],
legal
:
[
{
required
:
true
,
message
:
'请输入法人姓名'
,
trigger
:
'blur'
},
{
validator
:
validMethod
,
trigger
:
'blur'
}
],
addr
:
[
{
required
:
true
,
message
:
'请输入联系地址'
,
trigger
:
'blur'
},
{
validator
:
validMethod
,
trigger
:
'blur'
}
],
phone
:
[
{
required
:
true
,
message
:
'请输入联系电话'
,
trigger
:
'blur'
},
{
validator
:
validMethod
,
trigger
:
'blur'
}
],
sealName
:
[
{
required
:
true
,
message
:
'请输入公章名称'
,
trigger
:
'blur'
},
{
validator
:
validMethod
,
trigger
:
'blur'
}
],
/*
sealUrl : [
{ required: true, message: '请上传企业公章', trigger: 'blur' },
{ validator: validMethod, trigger: 'blur' }
],*/
owner_id
:
[
{
required
:
true
,
message
:
'请选择客户归属人员'
,
trigger
:
'blur'
},
{
validator
:
validMethod
,
trigger
:
'blur'
}
],
a
:
[],
},
}
},
mounted
:
function
()
{
this
.
resetSearch
(
true
);
},
created
:
function
()
{},
methods
:
{
getEmptySearch
()
{
return
{
list
:
[],
currentPage
:
1
,
pageSize
:
20
,
total
:
0
,
name
:
''
,
}
},
resetSearch
()
{
this
.
search
=
this
.
getEmptySearch
();
this
.
getList
();
},
tableHeaderColor
({
row
,
column
,
rowIndex
,
columnIndex
})
{
if
(
rowIndex
===
0
)
{
return
'background-color: #F5F5F5;color: #2F2F2F;font-size: 14px;font-weight:400;'
}
},
opSearch
()
{
this
.
search
.
currentPage
=
1
;
this
.
search
.
total
=
0
;
this
.
getList
();
},
getList
()
{
var
self
=
this
;
var
params
=
this
.
getParams
();
this
.
$root
.
postReq
(
"/web/dkcompanyCtl/signList"
,
{
search
:
params
}).
then
(
function
(
d
)
{
if
(
d
.
status
==
0
)
{
self
.
search
.
list
=
d
.
data
.
rows
||
[];
self
.
search
.
total
=
d
.
data
.
count
||
0
;
}
else
{
}
});
},
getParams
()
{
var
params
=
{};
for
(
var
f
in
this
.
search
)
{
if
(
f
==
"list"
)
{
continue
;
}
params
[
f
]
=
this
.
search
[
f
];
}
return
params
;
},
onColFormater
(
row
,
column
,
cellValue
,
index
)
{
return
cellValue
||
"---"
;
},
getDKcompany
(
id
)
{
var
self
=
this
;
self
.
$root
.
postReq
(
"/web/dkcompanyCtl/info"
,
{
id
:
id
,
}).
then
(
function
(
d
)
{
if
(
d
.
status
==
0
)
{
if
(
d
.
data
)
{
d
.
data
.
isEnabled
=
d
.
data
.
isEnabled
?
true
:
false
;
}
self
.
dkcompany
=
d
.
data
;
self
.
dkcompany
.
owner_id
=
self
.
dkcompany
.
owner_id
||
""
;
self
.
owner_id
=
(
d
.
data
.
owner
||
{}).
id
||
""
;
if
(
d
.
data
.
owner
)
{
self
.
ownerList
=
[
d
.
data
.
owner
];
self
.
ownerMap
[
"id_"
+
d
.
data
.
owner
.
id
]
=
d
.
data
.
owner
;
}
else
{
self
.
ownerList
=
null
;
}
}
else
{
self
.
$message
.
warning
(
d
.
msg
||
`您的网络不稳定, 请稍后重试`
);
}
});
},
toDetail
(
id
)
{
},
openEdit
(
id
)
{
this
.
ownerLoading
=
false
;
this
.
saveLoading
=
false
;
this
.
owner_id
=
null
;
if
(
this
.
$refs
.
dkcompany
)
{
this
.
$refs
.
dkcompany
.
resetFields
();
}
if
(
id
)
{
this
.
getDKcompany
(
id
);
this
.
editTitle
=
"修改"
;
}
else
{
this
.
ownerList
=
[];
this
.
editTitle
=
"新增"
;
this
.
dkcompany
=
{
isEnabled
:
true
};
}
this
.
showEdit
=
true
;
},
handleSizeChange
(
val
)
{
this
.
search
.
pageSize
=
val
;
this
.
resetSearch
();
},
handleCurrentChange
(
val
)
{
this
.
search
.
currentPage
=
val
;
this
.
getList
();
},
validfileds
(
rule
,
value
,
callback
)
{
var
self
=
this
;
if
(
rule
.
field
==
'owner_id'
)
{
if
(
!
self
.
dkcompany
.
owner_id
)
{
return
callback
(
new
Error
(
"请选择归属人员"
));
}
else
{
return
callback
();
}
}
else
{
return
callback
();
}
},
ownerChange
(
val
)
{
console
.
log
(
val
,
);
this
.
dkcompany
.
owner_id
=
val
||
0
;
this
.
owner
=
this
.
ownerMap
[
"id_"
+
val
];
console
.
log
(
this
.
owner
);
},
getOwnerList
(
query
)
{
var
self
=
this
;
self
.
ownerLoading
=
true
;
self
.
$root
.
postReq
(
"/web/userCtl/rolesSuggest"
,
{
name
:
query
,
roleCodes
:
[
"zczy"
,
"zcgl"
,
"qdzy"
,
"qdgl"
,
"ptzy"
,
"ptgl"
,
"dkhzy"
,
"dkhgl"
,
"ziying"
,
"tzgl"
,
"tzzy"
]
}).
then
(
function
(
d
)
{
self
.
ownerLoading
=
false
;
self
.
ownerList
=
d
.
data
||
[];
self
.
ownerMap
=
[];
for
(
var
o
of
self
.
ownerList
)
{
self
.
ownerMap
[
"id_"
+
o
.
id
]
=
o
;
}
});
setTimeout
(()
=>
{
self
.
ownerLoading
=
false
;
},
15000
);
},
saveCompany
()
{
var
self
=
this
;
self
.
saveLoading
=
true
;
self
.
$refs
.
dkcompany
.
validate
((
valid
)
=>
{
if
(
valid
)
{
self
.
$root
.
postReq
(
"/web/dkcompanyCtl/signSave"
,
self
.
dkcompany
).
then
(
function
(
d
)
{
if
(
d
.
status
==
0
)
{
self
.
$message
.
success
(
`保存成功`
);
self
.
showEdit
=
false
;
self
.
getList
();
}
else
{
self
.
$alert
(
d
.
msg
||
'保存失败'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
callback
:
action
=>
{}
});
}
self
.
saveLoading
=
false
;
});
}
else
{
self
.
saveLoading
=
false
;
return
false
;
}
});
setTimeout
(()
=>
{
self
.
saveLoading
=
false
;
},
5000
);
},
},
vname
:
"gsb-dkcompanyadmin"
}
\ No newline at end of file
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