Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SuperMan
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
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
罗超
SuperMan
Commits
9853f2c9
Commit
9853f2c9
authored
Oct 25, 2023
by
吴春
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
1962421a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
115 additions
and
16 deletions
+115
-16
PlatformAccount.vue
src/components/FinancialModule/PlatformAccount.vue
+115
-16
No files found.
src/components/FinancialModule/PlatformAccount.vue
View file @
9853f2c9
...
...
@@ -379,11 +379,11 @@
<el-input
v-model=
"addMsg.Bond"
maxlength=
"20"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"4"
:gutter=
"35"
>
<
!-- <
el-col :span="4" :gutter="35">
<el-form-item :label="$t('fnc.qyxianlu')">
<el-input v-model="addMsg.SigningLine" class></el-input>
</el-form-item>
</el-col>
</el-col>
-->
<el-col
:span=
"4"
:gutter=
"35"
>
<el-form-item
:label=
"$t('fnc.hetong')"
>
<el-select
filterable
v-model=
"addMsg.HaveContract"
class
>
...
...
@@ -468,11 +468,10 @@
</el-form-item>
</el-col>
<el-col
:span=
"4"
:gutter=
"35"
>
<el-form-item
label=
"所属线路
"
>
<el-form-item
:label=
"$t('fnc.qyxianlu')
"
>
<el-select
filterable
multiple
v-model=
"LineId"
collapse-tags
@
change=
"getLineId"
>
<el-option
:label=
"$t('pub.unlimitedSel')"
value=
"-1"
:disabled=
"LineIDdisabled"
></el-option>
<el-option
v-for=
"item in LineList"
:label=
"item.LineName"
:value=
"item.LineID"
:key=
"item.LineID"
...
...
@@ -579,6 +578,21 @@
</el-row>
</el-form>
</div>
<el-dialog
title=
"审核"
:visible
.
sync=
"examineLoading"
width=
"600px"
height=
"40%"
>
<div
>
<span
style=
"width: 15%; display: inline-block"
>
审核状态
</span>
<el-radio-group
v-model=
"ExamineMsg.AccountState"
>
<el-radio
v-model=
"ExamineMsg.AccountState"
label=
"1"
>
通过
</el-radio>
<el-radio
v-model=
"ExamineMsg.AccountState"
label=
"2"
>
拒绝
</el-radio>
</el-radio-group>
</div>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
@
click=
"examineLoading = false"
>
取 消
</el-button>
<el-button
style=
"margin-right: 24px"
type=
"primary"
@
click=
"examineInstitutions"
>
确 定
</el-button>
</span>
</el-dialog>
</div>
</template>
<
script
>
...
...
@@ -596,6 +610,11 @@
loading
:
true
,
CompanySelect
:
[],
ContractUrl
:
""
,
examineLoading
:
false
,
ExamineMsg
:{
ID
:
0
,
AccountState
:
0
},
msg
:
{
pageIndex
:
1
,
pageSize
:
15
,
...
...
@@ -609,7 +628,7 @@
SigningLine
:
""
,
Accountholder
:
""
},
LineId
:
[
'-1'
],
LineId
:
[
-
1
],
SettlementType
:
[
'1'
],
addMsg
:
{
ID
:
0
,
...
...
@@ -807,11 +826,12 @@
},
methods
:
{
getLineId
(){
console
.
log
(
"this.LineId11"
,
this
.
LineId
);
let
data
=
this
.
LineId
.
join
(
','
)
this
.
addMsg
.
SigningLine
=
data
if
(
this
.
LineId
.
length
>
1
&&
data
.
indexOf
(
'-1'
)
!=-
1
){
this
.
LineId
.
forEach
((
x
,
index
)
=>
{
if
(
x
==
'-1'
){
if
(
x
==
-
1
){
this
.
LineId
.
splice
(
index
,
1
)
}
})
...
...
@@ -829,6 +849,10 @@
},
(
res
)
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
LineList
=
res
.
data
.
data
;
this
.
LineList
.
unshift
({
LineID
:
-
1
,
LineName
:
'不限'
})
let
arr
=
function
(
list
){
list
.
forEach
(
x
=>
{
x
.
disabled
=
true
...
...
@@ -876,6 +900,8 @@
this
.
text
=
this
.
$t
(
'pub.updateMsg'
)
this
.
addShow
=
true
this
.
addCuren
=
true
}
else
if
(
params
.
type
===
'examine'
)
{
this
.
financeinfoExamine
(
params
.
id
,
params
.
alias
)
}
},
initColums
()
{
...
...
@@ -951,9 +977,19 @@
width
:
80
,
formatter
:
function
(
rowData
,
rowIndex
,
pagingIndex
,
field
)
{
let
text
=
that
.
$t
(
'hotel.hotel_people'
)
return
rowData
.
SettlementType
==
1
?
rowData
.
Commission
.
toFixed
(
2
)
+
"%"
:
rowData
.
Commission
+
"/"
+
text
;
let
commissionStr
=
""
;
if
(
rowData
.
SettlementType
==
"1"
)
{
commissionStr
=
rowData
.
Commission
.
toFixed
(
2
)
+
"%"
;
}
else
if
(
rowData
.
SettlementType
==
"2"
)
{
commissionStr
=
rowData
.
Commission
+
"/"
+
text
;
}
else
{
commissionStr
=
rowData
.
Commission
.
toFixed
(
2
)
+
"%"
+
' '
+
rowData
.
Commission
+
"/"
+
text
;
}
return
commissionStr
;
// return rowData.SettlementType == 1 ?
// rowData.Commission.toFixed(2) + "%" :
// rowData.Commission + "/" + text;
},
filterMultiple
:
true
,
result
:
[],
...
...
@@ -1012,7 +1048,7 @@
type
:
"check"
};
let
signingLine
=
{
field
:
"
SigningLine
"
,
field
:
"
LineList
"
,
title
:
that
.
$t
(
'fnc.qyluxian'
),
titleAlign
:
"left"
,
columnAlign
:
"left"
,
...
...
@@ -1031,6 +1067,22 @@
isResize
:
true
,
width
:
80
};
let
accountState
=
{
field
:
"AccountState"
,
title
:
"状态"
,
titleAlign
:
"left"
,
columnAlign
:
"left"
,
isResize
:
true
,
width
:
40
,
formatter
:
function
(
rowData
,
rowIndex
,
pagingIndex
,
field
)
{
let
accountStateStr
=
""
;
if
(
rowData
.
AccountState
==
0
){
accountStateStr
=
"待审核"
}
else
if
(
rowData
.
AccountState
==
1
){
accountStateStr
=
"正常"
}
else
if
(
rowData
.
AccountState
==
2
){
accountStateStr
=
"已驳回"
}
else
{
accountStateStr
=
""
}
return
accountStateStr
;
},
};
let
remark
=
{
field
:
"Remark"
,
title
:
that
.
$t
(
'hotel.hotel_remark'
),
...
...
@@ -1046,7 +1098,7 @@
title
:
that
.
$t
(
'hotel.table_operat'
),
titleAlign
:
"left"
,
columnAlign
:
"left"
,
width
:
8
0
,
width
:
12
0
,
isResize
:
false
,
componentName
:
'table-operation'
};
...
...
@@ -1060,6 +1112,7 @@
this
.
columns
.
push
(
contract
);
this
.
columns
.
push
(
signingLine
);
this
.
columns
.
push
(
bindBank
);
this
.
columns
.
push
(
accountState
);
this
.
columns
.
push
(
remark
);
this
.
columns
.
push
(
opera
);
this
.
isReady
=
true
;
...
...
@@ -1269,9 +1322,23 @@
this
.
remoteMethod
(
data
.
InemName
);
this
.
remoteMethod2
(
data
.
OutemName
);
this
.
addMsg
=
data
;
let
SigningLine
=
this
.
addMsg
.
SigningLine
.
slice
(
','
)
this
.
LineId
=
SigningLine
.
length
==
1
&&
SigningLine
[
0
]
==
'0'
?[
'-1'
]:
SigningLine
this
.
SettlementType
=
this
.
addMsg
.
SettlementType
.
slice
(
','
)
this
.
LineId
=
[];
let
SigningLine
=
this
.
addMsg
.
SigningLine
.
split
(
','
)
if
(
SigningLine
.
length
==
1
&&
SigningLine
[
0
]
==
'0'
){
this
.
LineId
=
[
-
1
];
}
else
{
SigningLine
.
forEach
(
item
=>
{
this
.
LineId
.
push
(
Number
(
item
));
});
}
//this.LineId = SigningLine.length==1&&SigningLine[0]=='0'?['-1']:SigningLine
console
.
log
(
"SigningLine"
,
SigningLine
);
console
.
log
(
"this.LineId"
,
this
.
LineId
);
this
.
SettlementType
=
this
.
addMsg
.
SettlementType
.
split
(
','
)
Vue
.
set
(
this
.
addMsg
,
'ContractStartDateInfo'
,
[])
this
.
addMsg
.
ContractStartDateInfo
.
push
(
data
.
ContractStartDateStr
)
...
...
@@ -1319,6 +1386,8 @@
SettlementDate
:
""
,
SettlementInfo
:
""
};
this
.
LineId
=
[
-
1
],
this
.
SettlementType
=
'-1'
,
this
.
SetProfitLossMsg
=
{
ID
:
0
,
EndRate
:
""
,
...
...
@@ -1489,6 +1558,28 @@
err
=>
{}
);
},
financeinfoExamine
(
id
,
text
)
{
this
.
remoteLoading
=
false
;
this
.
ExamineMsg
=
{
ID
:
id
,
AccountState
:
0
};
this
.
examineLoading
=
true
;
},
examineInstitutions
()
{
this
.
apipost
(
"BankAccount_get_ExaminePlatform"
,
this
.
ExamineMsg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
innerVisible
=
false
;
this
.
$message
.
success
(
res
.
data
.
message
);
}
else
{
this
.
$message
.
error
(
res
.
data
.
message
);
}
this
.
ExamineMsg
=
{
ID
:
0
,
AccountState
:
0
};
this
.
examineLoading
=
false
;
this
.
getList
();
},
err
=>
{}
);
},
initAddMsg
()
{
//初始化添加、修改数据
let
newMsg
=
{
...
...
@@ -1607,7 +1698,7 @@
},
created
()
{
Vue
.
component
(
'table-operation'
,
{
template
:
`<div style='width:
80px;height:40px;background:#fff;text-align:center;position: relative;left:-5px;padding-top: 6px;padding-top:6px;'><el-button type="primary" size='mini' icon="el-icon-edit" circle @click="update(rowData,index)"></el-button><el-button type="danger" size='mini' icon="el-icon-delete" circle @click="delet
eRow(rowData,index)"></el-button></div>`
,
template
:
`<div style='width:
120px;height:40px;background:#fff;text-align:center;position: relative;left:-5px;padding-top: 6px;padding-top:6px;'><el-button type="primary" size='mini' icon="el-icon-edit" circle @click="update(rowData,index)"></el-button><el-button type="danger" size='mini' icon="el-icon-delete" circle @click="deleteRow(rowData,index)"></el-button><el-button v-if="rowData.AccountState==0" type="examine" size='mini' icon="el-icon-check avatar-uploader-icon" circle @click="examin
eRow(rowData,index)"></el-button></div>`
,
props
:
{
rowData
:
{
type
:
Object
...
...
@@ -1634,6 +1725,14 @@
alias
:
this
.
rowData
.
Alias
};
this
.
$emit
(
'on-custom-comp'
,
params
);
},
examineRow
()
{
let
params
=
{
type
:
'examine'
,
id
:
this
.
rowData
.
ID
,
alias
:
this
.
rowData
.
Alias
};
this
.
$emit
(
'on-custom-comp'
,
params
);
}
}
})
...
...
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