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
83fc3a21
Commit
83fc3a21
authored
Sep 04, 2023
by
dragondean@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
费用申请修改
parent
15e60742
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
52 additions
and
23 deletions
+52
-23
feeApplication.vue
src/views/ecw/order/feeApplication.vue
+52
-23
No files found.
src/views/ecw/order/feeApplication.vue
View file @
83fc3a21
...
@@ -12,35 +12,35 @@
...
@@ -12,35 +12,35 @@
</div></el-form-item>
</div></el-form-item>
<el-form-item
:label=
"$t('发货人')+':'"
><div
class=
"content"
>
{{
orderDetails
.
consignorVO
?
orderDetails
.
consignorVO
.
name
:
''
}}
</div></el-form-item>
<el-form-item
:label=
"$t('发货人')+':'"
><div
class=
"content"
>
{{
orderDetails
.
consignorVO
?
orderDetails
.
consignorVO
.
name
:
''
}}
</div></el-form-item>
<el-form-item
:label=
"$t('唛头')"
><div
class=
"content"
>
{{
orderDetails
.
marks
}}
</div></el-form-item>
<el-form-item
:label=
"$t('唛头')"
><div
class=
"content"
>
{{
orderDetails
.
marks
}}
</div></el-form-item>
<el-form-item>
<el-button
:disabled=
"!!processInstanceId"
@
click=
"addCost"
>
{{
$t
(
'
添加申请
'
)
}}
</el-button></el-form-item>
<el-form-item>
<el-button
:disabled=
"!!processInstanceId
|| editMode
"
@
click=
"addCost"
>
{{
$t
(
'
添加申请
'
)
}}
</el-button></el-form-item>
</el-form>
</el-form>
<el-table
:data=
"list"
>
<el-table
:data=
"list"
>
<el-table-column
:label=
"$t('序号')"
type=
"index"
></el-table-column>
<el-table-column
:label=
"$t('序号')"
type=
"index"
></el-table-column>
<el-table-column
:label=
"$t('费用类型')"
>
<el-table-column
:label=
"$t('费用类型')"
>
<template
v-slot:default =
"scope"
>
<template
v-slot:default =
"scope"
>
<dict-selector
:disabled=
"!!scope.row.status"
:type=
"DICT_TYPE.FEE_TYPE"
v-model=
"scope.row.feeType"
/>
<dict-selector
:disabled=
"!
scope.row.editMode && !
!scope.row.status"
:type=
"DICT_TYPE.FEE_TYPE"
v-model=
"scope.row.feeType"
/>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
:label=
"$t('金额')"
>
<el-table-column
:label=
"$t('金额')"
>
<
template
v-slot:default =
'scope'
>
<
template
v-slot:default =
'scope'
>
<el-input
:disabled=
"!!scope.row.status"
v-model.number=
"scope.row.applicationFee"
></el-input>
<el-input
:disabled=
"!
scope.row.editMode && !
!scope.row.status"
v-model.number=
"scope.row.applicationFee"
></el-input>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
:label=
"$t('货币类型')"
>
<el-table-column
:label=
"$t('货币类型')"
>
<
template
v-slot:default =
'scope'
>
<
template
v-slot:default =
'scope'
>
<el-select
:disabled=
"!!scope.row.status"
v-model=
"scope.row.applicationFeeCurrency"
>
<el-select
:disabled=
"!
scope.row.editMode && !
!scope.row.status"
v-model=
"scope.row.applicationFeeCurrency"
>
<el-option
v-for=
"item in JSON.parse(currencys)"
:key=
"item.id"
:label=
"item.titleZh"
:value=
"item.id"
/>
<el-option
v-for=
"item in JSON.parse(currencys)"
:key=
"item.id"
:label=
"item.titleZh"
:value=
"item.id"
/>
</el-select>
</el-select>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
:label=
"$t('付款类型')"
>
<el-table-column
:label=
"$t('付款类型')"
>
<
template
v-slot =
{row}
>
<
template
v-slot =
{row}
>
<dict-selector
:disabled=
"row.status"
:type=
"DICT_TYPE.PAYMENT_TYPE"
v-model=
"row.payType"
/>
<dict-selector
:disabled=
"
!row.editMode && !!
row.status"
:type=
"DICT_TYPE.PAYMENT_TYPE"
v-model=
"row.payType"
/>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
:label=
"$t('备注')"
>
<el-table-column
:label=
"$t('备注')"
>
<
template
v-slot:default=
"scope"
>
<
template
v-slot:default=
"scope"
>
<el-input
:disabled=
"!!scope.row.status"
v-model=
"scope.row.remarks"
type=
"textarea"
></el-input>
<el-input
:disabled=
"!
scope.row.editMode && !
!scope.row.status"
v-model=
"scope.row.remarks"
type=
"textarea"
></el-input>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
:label=
"$t('确认收款')"
>
<el-table-column
:label=
"$t('确认收款')"
>
...
@@ -55,9 +55,9 @@
...
@@ -55,9 +55,9 @@
</el-table-column>
</el-table-column>
<el-table-column
:label=
"$t('操作')"
>
<el-table-column
:label=
"$t('操作')"
>
<
template
v-slot:default =
'scope'
>
<
template
v-slot:default =
'scope'
>
<el-
button
type=
"text"
v-if=
"scope.row.status !== 0&&scope.row.status !== 1"
>
{{
STATUS
[
scope
.
row
.
status
]
}}
</el-button
>
<el-
tag
v-if=
"scope.row.status !== 0 && !scope.row.editMode"
>
{{
STATUS
[
scope
.
row
.
status
]
}}
</el-tag
>
<!--el-button type="text" v-if="scope.row.status == 1" @click="examineFn">
{{
$t
(
'
审核中
'
)
}}
</el-button>
<!--el-button type="text" v-if="scope.row.status == 1" @click="examineFn">
{{
$t
(
'
审核中
'
)
}}
</el-button
--
>
<el-button
type=
"text"
v-if=
"
scope.row.status === 2"
@
click=
"modify(scope.row)"
>
{{
$t
(
'
修改
'
)
}}
</el-button>
--
>
<el-button
type=
"text"
v-if=
"
modifable(scope.$index)"
@
click=
"modify(scope.row)"
>
{{
$t
(
'
修改
'
)
}}
</el-button
>
<el-button
type=
"text"
v-if=
"scope.row.status === 0"
@
click=
"del(scope.$index)"
>
删除
</el-button>
<el-button
type=
"text"
v-if=
"scope.row.status === 0"
@
click=
"del(scope.$index)"
>
删除
</el-button>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
...
@@ -66,7 +66,7 @@
...
@@ -66,7 +66,7 @@
<work-flow
xmlkey=
"free_apply"
v-model=
"selectedUsers"
/>
<work-flow
xmlkey=
"free_apply"
v-model=
"selectedUsers"
/>
</div>
</div>
<div
style=
"text-align: center;margin-top: 20px;"
>
<div
style=
"text-align: center;margin-top: 20px;"
>
<el-button
type=
"primary"
v-if=
"!processInstanceId"
style=
"margin-right: 30px;"
:disabled=
"!feeList.length"
@
click=
"submit"
>
{{$t('提交')}}
</el-button>
<el-button
type=
"primary"
v-if=
"!processInstanceId"
style=
"margin-right: 30px;"
:disabled=
"!feeList.length
&& !editMode
"
@
click=
"submit"
>
{{$t('提交')}}
</el-button>
<el-button
type=
"primary"
v-if=
"processInstanceId"
style=
"margin-right: 30px;"
@
click=
"goProcessDetail"
>
{{$t('审核中')}}
</el-button>
<el-button
type=
"primary"
v-if=
"processInstanceId"
style=
"margin-right: 30px;"
@
click=
"goProcessDetail"
>
{{$t('审核中')}}
</el-button>
<el-button
type=
"primary"
v-if=
"processInstanceId"
style=
"margin-right: 30px;"
@
click=
"cancel"
>
{{$t('取消审核')}}
</el-button>
<el-button
type=
"primary"
v-if=
"processInstanceId"
style=
"margin-right: 30px;"
@
click=
"cancel"
>
{{$t('取消审核')}}
</el-button>
<el-button
@
click=
"$emit('update:dialogVisible',false)"
>
{{$t('返回')}}
</el-button>
<el-button
@
click=
"$emit('update:dialogVisible',false)"
>
{{$t('返回')}}
</el-button>
...
@@ -112,14 +112,31 @@ export default {
...
@@ -112,14 +112,31 @@ export default {
DICT_TYPE
,
DICT_TYPE
,
getDictDatas
,
getDictDatas
,
STATUS
:{},
STATUS
:{},
isModify
:[],
isModifyIf
:
false
,
selectedUsers
:[]
selectedUsers
:[]
}
}
},
},
computed
:{
computed
:{
feeList
(){
feeList
(){
return
this
.
list
.
filter
(
item
=>
item
.
status
===
0
)
return
this
.
list
.
filter
(
item
=>
item
.
status
===
0
)
},
// 正在编辑的费用申请
currentItem
(){
return
this
.
list
.
find
(
item
=>
item
.
editMode
)
},
// 是否修改模式
editMode
(){
return
!!
this
.
currentItem
},
modifable
(){
return
(
index
)
=>
{
// 审核中不允许修改
if
(
this
.
processInstanceId
)
return
false
// 有未提交的不允许修改
if
(
this
.
feeList
.
length
)
return
false
// 有修改中的不允许修改
if
(
this
.
list
.
findIndex
(
item
=>
item
.
editMode
)
>
-
1
)
return
false
return
true
}
}
}
},
},
created
()
{
created
()
{
...
@@ -152,6 +169,10 @@ export default {
...
@@ -152,6 +169,10 @@ export default {
this
.
list
.
splice
(
index
,
1
)
this
.
list
.
splice
(
index
,
1
)
})
})
},
},
// 修改
modify
(
item
){
this
.
$set
(
item
,
'
editMode
'
,
true
)
},
addCost
(){
addCost
(){
this
.
list
.
push
({
this
.
list
.
push
({
orderId
:
this
.
orderId
,
orderId
:
this
.
orderId
,
...
@@ -172,17 +193,26 @@ export default {
...
@@ -172,17 +193,26 @@ export default {
if
(
errList
.
length
){
if
(
errList
.
length
){
return
this
.
$message
.
error
(
'
请填写完整费用申请信息
'
)
return
this
.
$message
.
error
(
'
请填写完整费用申请信息
'
)
}
}
feeApplicationCreateBatch
(
{
if
(
this
.
editMode
){
orderFeeApplicationCreateReqVOList
:
this
.
feeList
,
// 要提交status=1,否则保持原状态
copyUserId
:
this
.
selectedUsers
,
const
data
=
{...
this
.
currentItem
,
status
:
1
,
copyUserId
:
this
.
selectedUsers
}
orderId
:
this
.
orderId
return
applicationUpdate
(
data
).
then
(
r
=>
{
}).
then
(
r
=>
{
this
.
$message
.
success
(
this
.
$t
(
'
修改成功
'
));
if
(
r
.
code
===
0
){
this
.
$emit
(
'
update:dialogVisible
'
,
false
)
this
.
$emit
(
'
update:dialogVisible
'
,
false
)
})
this
.
$message
.
success
(
this
.
$t
(
'
添加成功
'
));
this
.
selectedUsers
=
[];
}
}
})
feeApplicationCreateBatch
(
{
orderFeeApplicationCreateReqVOList
:
this
.
feeList
,
copyUserId
:
this
.
selectedUsers
,
orderId
:
this
.
orderId
}).
then
(
r
=>
{
if
(
r
.
code
===
0
){
this
.
$emit
(
'
update:dialogVisible
'
,
false
)
this
.
$message
.
success
(
this
.
$t
(
'
添加成功
'
));
this
.
selectedUsers
=
[];
}
})
},
},
goProcessDetail
(){
goProcessDetail
(){
this
.
$emit
(
'
update:dialogVisible
'
,
false
)
this
.
$emit
(
'
update:dialogVisible
'
,
false
)
...
@@ -208,7 +238,6 @@ export default {
...
@@ -208,7 +238,6 @@ export default {
watch
:{
watch
:{
dialogVisible
(
val
){
dialogVisible
(
val
){
if
(
val
){
if
(
val
){
this
.
isModify
=
[]
this
.
getOrderList
()
this
.
getOrderList
()
getOrder
(
this
.
orderId
).
then
(
r
=>
{
getOrder
(
this
.
orderId
).
then
(
r
=>
{
if
(
r
.
code
===
0
){
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