Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-app-operator-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
lanbaoming
jiedao-app-operator-master
Commits
bac454a6
Commit
bac454a6
authored
Sep 21, 2022
by
dcy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
费用申请界面下,存在两条费用记录,第一行费用记录修改不成功,无论怎么改,提交审核的总是下一行
parent
c7c928e4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
46 additions
and
44 deletions
+46
-44
feeApplication.vue
src/views/ecw/order/feeApplication.vue
+46
-44
No files found.
src/views/ecw/order/feeApplication.vue
View file @
bac454a6
...
...
@@ -15,48 +15,48 @@
<el-form-item>
<el-button
@
click=
"addCost"
>
添加申请
</el-button></el-form-item>
</el-form>
<el-table
:data=
"list"
>
<el-table-column
label=
"序号"
type=
"index"
></el-table-column>
<el-table-column
label=
"费用类型"
>
<template
v-slot:default =
"scope"
>
<dict-selector
:disabled=
"isModify[forbidden(scope.row)]"
:type=
"DICT_TYPE.FEE_TYPE"
v-model=
"scope.row.feeType"
/>
</
template
>
</el-table-column>
<el-table-column
label=
"金额"
>
<
template
v-slot:default =
'scope'
>
<el-input
:disabled=
"isModify[forbidden(scope.row)]"
v-model=
"scope.row.applicationFee"
></el-input>
</
template
>
</el-table-column>
<el-table-column
label=
"货币类型"
>
<
template
v-slot:default =
'scope'
>
<dict-selector
:disabled=
"isModify[forbidden(scope.row)]"
:type=
"DICT_TYPE.COMMISSION_CURRENCY_TYPE"
v-model=
"scope.row.applicationFeeCurrency"
/>
</
template
>
</el-table-column>
<el-table-column
label=
"付款类型"
>
<
template
v-slot =
{row}
>
<dict-selector
:disabled=
"isModify[forbidden(row)]"
:type=
"DICT_TYPE.PAYMENT_TYPE"
v-model=
"row.payType"
/>
</
template
>
</el-table-column>
<el-table-column
label=
"备注"
>
<
template
v-slot:default=
"scope"
>
<el-input
:disabled=
"isModify[forbidden(scope.row)]"
v-model=
"scope.row.remarks"
type=
"textarea"
></el-input>
</
template
>
</el-table-column>
<el-table-column
label=
"确认收款"
>
<
template
v-slot:default =
"scope"
>
<dict-tag
:type=
"DICT_TYPE.RECEIVE_FLAG"
:value=
"scope.row.receiveFlag"
/>
</
template
>
</el-table-column>
<el-table-column
label=
"申请人"
>
<
template
v-slot:default =
"scope"
>
{{
scope
.
row
.
status
===
0
?
'
未提交
'
:
scope
.
row
.
applicationAuthor
}}
</
template
>
</el-table-column>
<el-table-column
label=
"操作"
>
<
template
v-slot:default =
'scope'
>
<el-button
type=
"text"
v-if=
"scope.row.status !== 0"
>
{{
STATUS
[
scope
.
row
.
status
]
}}
</el-button>
<el-button
type=
"text"
v-if=
"scope.row.status === 2"
@
click=
"modify(scope.row)"
>
修改
</el-button>
</
template
>
</el-table-column>
<el-table-column
label=
"序号"
type=
"index"
></el-table-column>
<el-table-column
label=
"费用类型"
>
<template
v-slot:default =
"scope"
>
<dict-selector
:disabled=
"isModify[forbidden(scope.row)]"
:type=
"DICT_TYPE.FEE_TYPE"
v-model=
"scope.row.feeType"
/>
</
template
>
</el-table-column>
<el-table-column
label=
"金额"
>
<
template
v-slot:default =
'scope'
>
<el-input
:disabled=
"isModify[forbidden(scope.row)]"
v-model=
"scope.row.applicationFee"
></el-input>
</
template
>
</el-table-column>
<el-table-column
label=
"货币类型"
>
<
template
v-slot:default =
'scope'
>
<dict-selector
:disabled=
"isModify[forbidden(scope.row)]"
:type=
"DICT_TYPE.COMMISSION_CURRENCY_TYPE"
v-model=
"scope.row.applicationFeeCurrency"
/>
</
template
>
</el-table-column>
<el-table-column
label=
"付款类型"
>
<
template
v-slot =
{row}
>
<dict-selector
:disabled=
"isModify[forbidden(row)]"
:type=
"DICT_TYPE.PAYMENT_TYPE"
v-model=
"row.payType"
/>
</
template
>
</el-table-column>
<el-table-column
label=
"备注"
>
<
template
v-slot:default=
"scope"
>
<el-input
:disabled=
"isModify[forbidden(scope.row)]"
v-model=
"scope.row.remarks"
type=
"textarea"
></el-input>
</
template
>
</el-table-column>
<el-table-column
label=
"确认收款"
>
<
template
v-slot:default =
"scope"
>
<dict-tag
:type=
"DICT_TYPE.RECEIVE_FLAG"
:value=
"scope.row.receiveFlag"
/>
</
template
>
</el-table-column>
<el-table-column
label=
"申请人"
>
<
template
v-slot:default =
"scope"
>
{{
scope
.
row
.
status
===
0
?
'
未提交
'
:
scope
.
row
.
applicationAuthor
}}
</
template
>
</el-table-column>
<el-table-column
label=
"操作"
>
<
template
v-slot:default =
'scope'
>
<el-button
type=
"text"
v-if=
"scope.row.status !== 0"
>
{{
STATUS
[
scope
.
row
.
status
]
}}
</el-button>
<el-button
type=
"text"
v-if=
"scope.row.status === 2"
@
click=
"modify(scope.row)"
>
修改
</el-button>
</
template
>
</el-table-column>
</el-table>
<div
style=
"padding: 20px"
>
<work-flow
xmlkey=
"free_apply"
v-model=
"selectedUsers"
/>
...
...
@@ -114,7 +114,7 @@ export default {
computed
:{
forbidden
(){
return
(
row
)
=>
{
return
this
.
list
.
findIndex
(
e
=>
e
.
id
=
row
.
id
)
return
this
.
list
.
findIndex
(
e
=>
e
.
id
=
==
row
.
id
)
}
},
IsExamine
(){
...
...
@@ -173,8 +173,9 @@ export default {
})
},
modify
(
row
){
if
(
this
.
list
.
some
(
i
=>
i
.
status
===
0
||
i
.
status
===
1
))
return
this
.
$message
.
warning
(
'
当前有未提交的数据或审核中的数据不能修改
'
)
this
.
isModifyIf
=
true
;
this
.
$set
(
this
.
isModify
,
this
.
list
.
findIndex
(
e
=>
e
.
id
=
row
.
id
),
false
)
this
.
$set
(
this
.
isModify
,
this
.
list
.
findIndex
(
e
=>
e
.
id
=
==
row
.
id
),
false
)
},
examineFn
(){
let
item
=
this
.
list
.
find
(
e
=>
e
.
status
===
1
);
...
...
@@ -200,6 +201,7 @@ export default {
watch
:{
dialogVisible
(
val
){
if
(
val
){
this
.
isModify
=
[]
this
.
getOrderList
()
getOrder
(
this
.
orderId
).
then
(
r
=>
{
if
(
r
.
code
===
0
){
...
...
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