Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform-ui
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
youjj
cloud-platform-ui
Commits
946b66bd
Commit
946b66bd
authored
Aug 26, 2019
by
lixy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
分公司信息
parent
d579834e
Changes
6
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
1486 additions
and
3 deletions
+1486
-3
index.js
src/api/base_info/branch_company/index.js
+97
-1
companyInfoModal.vue
src/views/baseInfo/branchCompany/companyInfoModal.vue
+808
-0
info.vue
src/views/baseInfo/branchCompany/info.vue
+364
-0
stockRightModal.vue
src/views/baseInfo/branchCompany/stockRightModal.vue
+212
-0
oneTourModal.vue
src/views/tourManage/modal/oneTourModal.vue
+0
-1
ueditor.css
static/utf8-jsp/themes/default/css/ueditor.css
+5
-1
No files found.
src/api/base_info/branch_company/index.js
View file @
946b66bd
...
...
@@ -2,7 +2,7 @@ import store from "../../../store";
import
XEUtils
from
'xe-utils'
;
//加入常用工具类
import
fetch
from
'utils/fetch'
;
export
function
page
(
query
)
{
export
function
page
Old
(
query
)
{
return
fetch
({
url
:
'/vehicle/branchCompany/page'
,
method
:
'get'
,
...
...
@@ -10,6 +10,102 @@ export function page(query) {
});
}
/**
* 分公司列表
* @param query
*/
export
function
page
(
query
)
{
return
fetch
({
url
:
'/vehicle/company/base/list'
,
method
:
'get'
,
params
:
query
});
}
/**
* 设置基础信息
* @param query
*/
export
function
updCompany
(
query
)
{
return
fetch
({
url
:
'/vehicle/company/base/updCompany'
,
method
:
'post'
,
data
:
query
});
}
/**
* 设置股权信息
* @param query
*/
export
function
updStockInfo
(
query
)
{
return
fetch
({
url
:
'/vehicle/company/base/updStockInfo'
,
method
:
'post'
,
data
:
query
});
}
/**
* 设置详情
* @param query
*/
export
function
updCompanyDetail
(
query
)
{
return
fetch
({
url
:
'/vehicle/company/base/updCompanyDetail'
,
method
:
'post'
,
data
:
query
});
}
/**
* 删除
* @param query
*/
export
function
deleteOne
(
params
)
{
return
fetch
({
url
:
'/vehicle/company/base/del'
,
method
:
'post'
,
data
:
params
});
}
/**
* 获取详情
* @param query
*/
export
function
getCompanyDetail
(
query
)
{
return
fetch
({
url
:
'/vehicle/company/base/getCompanyDetail'
,
method
:
'get'
,
params
:
query
});
}
/**
* 添加分公司
* @param query
*/
export
function
addCompany
(
query
)
{
return
fetch
({
url
:
'/vehicle/company/base/addCompany'
,
method
:
'post'
,
data
:
query
});
}
/**
* 获取片区名称
* @param query
*/
export
function
zoneName
(
id
)
{
return
fetch
({
url
:
'/vehicle/area/'
+
id
,
method
:
'get'
});
}
export
function
allPage
(
query
)
{
return
fetch
({
url
:
'/vehicle/branchCompany/app/unauth/companys'
,
...
...
src/views/baseInfo/branchCompany/companyInfoModal.vue
0 → 100644
View file @
946b66bd
This diff is collapsed.
Click to expand it.
src/views/baseInfo/branchCompany/info.vue
0 → 100644
View file @
946b66bd
This diff is collapsed.
Click to expand it.
src/views/baseInfo/branchCompany/stockRightModal.vue
0 → 100644
View file @
946b66bd
<
template
>
<el-dialog
title=
"股权信息设置"
:visible
.
sync=
"dialogVisible"
class=
"stock-right"
>
<el-form
:model=
"form"
:rules=
"rules"
ref=
"form"
label-width=
"80px"
>
<el-form-item
label=
"状态"
>
<!--(-1:下架,0:筹备中,1:筹备完成,2:上架)-->
<el-radio-group
v-model=
"form.stockState"
>
<el-radio-button
style=
"margin-bottom: 10px;"
label=
"-1"
>
暂不募股
</el-radio-button>
<el-radio-button
style=
"margin-bottom: 10px;"
label=
"2"
>
募股中
</el-radio-button>
</el-radio-group>
</el-form-item>
<el-form-item
label=
"总份额"
prop=
"total"
>
<el-input
v-model=
"form.total"
placeholder=
"请输入总份额"
></el-input>
</el-form-item>
<el-form-item
label=
"剩余份额"
prop=
"balance"
>
<el-input
v-model=
"form.balance"
placeholder=
"请输入剩余份额"
></el-input>
</el-form-item>
<el-form-item
label=
"股权单价"
prop=
"price"
>
<el-select
class=
"filter-item"
v-model=
"form.type"
style=
"width: 100px;"
>
<el-option
:key=
"1"
label=
"¥"
:value=
"1"
></el-option>
<el-option
:key=
"2"
label=
"HK$"
:value=
"2"
></el-option>
</el-select>
<el-input
style=
"width: 200px;margin: 0 20px;"
v-model=
"form.price"
placeholder=
"请输入股权单价"
></el-input>
万
</el-form-item>
<el-form-item
label=
"排序"
prop=
"title"
>
<el-input
v-model=
"form.rank"
placeholder=
"请输入1,2,3……"
></el-input>
</el-form-item>
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
@
click=
"cancel('form')"
>
取 消
</el-button>
<el-button
type=
"primary"
@
click=
"updateStock('form')"
>
确 定
</el-button>
<!--
<el-button
type=
"primary"
@
click=
"update('dialogFrom')"
>
上 架
</el-button>
-->
</div>
</el-dialog>
</
template
>
<
style
>
.stock-right
.el-form-item__content
{
display
:
flex
;
margin-left
:
0
;
}
</
style
>
<
script
>
import
{
mapGetters
}
from
'vuex'
;
import
ElRow
from
"element-ui/packages/row/src/row"
;
import
ElCol
from
"element-ui/packages/col/src/col"
;
import
ElFormItem
from
"../../../../node_modules/element-ui/packages/form/src/form-item.vue"
;
import
{
updStockInfo
,
getCompanyDetail
}
from
'api/base_info/branch_company'
;
export
default
{
components
:
{
ElFormItem
,
ElCol
,
ElRow
},
props
:
[
"row"
],
name
:
'stockRightModal'
,
data
()
{
return
{
form
:{
stockState
:
-
1
,
type
:
1
//("股价类型:1-万/股;2-港万/股")
},
dialogVisible
:
false
,
rules
:
{
total
:
[
{
validator
:
(
rule
,
value
,
callback
)
=>
{
if
(
!
value
)
{
return
callback
(
new
Error
(
'请输入总份额'
));
}
else
{
const
reg
=
/^
[
1-9
]\d
*$/
;
console
.
log
(
reg
.
test
(
value
));
if
(
reg
.
test
(
value
))
{
callback
();
}
else
{
return
callback
(
new
Error
(
'请输入大于零整数'
));
}
}
},
trigger
:
'blur'
}
],
price
:
[
{
validator
:
(
rule
,
value
,
callback
)
=>
{
if
(
!
value
)
{
return
callback
(
new
Error
(
'请输入股权单价'
));
}
else
{
const
reg
=
/^
[
1-9
]\d
*$/
;
console
.
log
(
reg
.
test
(
value
));
if
(
reg
.
test
(
value
))
{
callback
();
}
else
{
return
callback
(
new
Error
(
'请输入大于零整数'
));
}
}
},
trigger
:
'blur'
}
],
balance
:[
{
validator
:
(
rule
,
value
,
callback
)
=>
{
if
(
!
value
)
{
return
callback
(
new
Error
(
'请输入剩余份额'
));
}
else
{
const
reg
=
/^
[
1-9
]\d
*$/
;
console
.
log
(
reg
.
test
(
value
));
if
(
reg
.
test
(
value
))
{
callback
();
}
else
{
return
callback
(
new
Error
(
'请输入大于零整数'
));
}
}
},
trigger
:
'blur'
}
],
}
}
},
created
()
{
if
(
this
.
row
.
stockId
){
this
.
form
.
stockId
=
this
.
row
.
stockId
;
this
.
getInfo
();
}
else
{
this
.
form
.
id
=
this
.
row
.
id
;
}
this
.
bookRecord_btn_unbook
=
this
.
elements
[
'bookRecord:btn_unbook'
];
},
computed
:
{
...
mapGetters
([
'elements'
,
]),
},
watch
:
{
dialogVisible
(
newValue
,
oldValue
){
if
(
!
newValue
){
this
.
$emit
(
"stockRightDialogEvent"
,
false
);
}
},
},
mounted
()
{
this
.
dialogVisible
=
true
;
},
methods
:
{
/**
* 根据id获取分公司对应信息
* */
getInfo
()
{
let
t
=
this
;
this
.
listLoading
=
true
;
getCompanyDetail
(
this
.
row
)
.
then
(
response
=>
{
if
(
response
.
status
==
200
){
let
info
=
response
.
data
;
info
.
price
=
info
.
price
?
info
.
price
/
10000
:
undefined
;
t
.
form
=
info
;
t
.
form
.
total
=
info
.
total
;
}
else
{
this
.
$notify
({
title
:
'失败'
,
message
:
res
.
message
,
type
:
'error'
,
duration
:
2000
});
}
})
},
/**
* 设置股权-保存
* */
updateStock
(
formName
){
const
set
=
this
.
$refs
;
set
[
formName
].
validate
(
valid
=>
{
if
(
valid
)
{
this
.
form
.
price
=
this
.
form
.
price
*
10000
;
updStockInfo
(
this
.
form
)
.
then
(
res
=>
{
if
(
res
.
status
==
200
){
this
.
$notify
({
title
:
'成功'
,
message
:
'设置成功'
,
type
:
'success'
,
duration
:
2000
});
this
.
$emit
(
"stockRightDialogEvent"
,
true
);
}
else
{
this
.
$notify
({
title
:
'失败'
,
message
:
res
.
message
,
type
:
'error'
,
duration
:
2000
});
}
})
}
else
{
return
;
}
});
},
/*
* 弹框-取消
* */
cancel
()
{
this
.
$emit
(
"stockRightDialogEvent"
,
false
);
}
}
}
</
script
>
src/views/tourManage/modal/oneTourModal.vue
View file @
946b66bd
...
...
@@ -196,7 +196,6 @@
<!--
<Editor
v-if=
"activeName2=='third'"
@
input=
"handelExplainIncrease"
:value=
"form.explain"
:myQuillEditor=
"'myQuillEditorExplain'"
:activeName2=
"activeName2"
></Editor>
-->
</el-tab-pane>
</el-tabs>
<el-form-item></el-form-item>
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
@
click=
"cancelTour"
>
取 消
</el-button>
...
...
static/utf8-jsp/themes/default/css/ueditor.css
View file @
946b66bd
/*基础UI构建
*/
.edui-default
{
z-index
:
3000
!important
;
}
/* common layer */
.edui-default
.edui-box
{
border
:
none
;
...
...
@@ -1168,7 +1171,8 @@ div.edui-box {
}
/* 弹出对话框按钮和对话框大小 */
.edui-default
.edui-dialog
{
z-index
:
2000
;
z-index
:
3000
!important
;
visibility
:
visible
;
position
:
absolute
;
}
...
...
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