Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
rbc-demo
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王衍超
rbc-demo
Commits
1b611e3c
Commit
1b611e3c
authored
Mar 10, 2022
by
qiaoyanqi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
查询列表的删除
parent
aadaa0d6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
60 additions
and
1 deletions
+60
-1
emcon.js
develop/@gms/gms-plugin-billexpand/src/emcon.js
+25
-0
mcon.js
develop/@gms/gms-plugin-billexpand/src/mcon.js
+3
-1
queryDeleteBill.js
...ms-plugin-billexpand/src/query-actions/queryDeleteBill.js
+32
-0
No files found.
develop/@gms/gms-plugin-billexpand/src/emcon.js
View file @
1b611e3c
...
...
@@ -281,6 +281,31 @@ export default {
],
queryAction
:
[
{
"value"
:
"queryDeleteBill"
,
"discard"
:
false
,
"path"
:
"云报销"
,
"extends"
:
{
"paramDes"
:
[
{
"isRequired"
:
true
,
"ref"
:
"bill"
,
"type"
:
"metaData"
,
"title"
:
"单据billDefine"
,
"key"
:
"billDefine"
},
{
"isRequired"
:
true
,
"ref"
:
"columnField"
,
"type"
:
"field"
,
"title"
:
"单据id"
,
"key"
:
"billId"
}
]
},
"description"
:
"通过指定单据id与单据定义,进行列表数据的删除(云报销专用)"
,
"title"
:
"删除"
},
{
"discard"
:
false
,
"path"
:
"云报销"
,
"extends"
:
{
...
...
develop/@gms/gms-plugin-billexpand/src/mcon.js
View file @
1b611e3c
...
...
@@ -60,7 +60,8 @@ import batchPayment from "./query-actions/payments/batchPayment";
import
offlinePayment
from
"./query-actions/payments/offlinePayment"
;
import
queryAccount
from
"./query-actions/payments/queryAccount"
;
import
refreshTransactionStatus
from
"./query-actions/payments/refreshTransactionStatus"
;
import
throughQuery
from
"./query-actions/throughQuery"
;
import
throughQuery
from
"./query-actions/throughQuery"
;
import
queryDeleteBill
from
"./query-actions/queryDeleteBill"
;
//control
import
applyDetail
from
'./control/applyDetail'
;
import
linkShowDetail
from
'./control/linkShowDetail'
;
...
...
@@ -213,6 +214,7 @@ export default {
throughQuery
,
deleteInvoiceAction
,
simpleAdvanceDeleteAction
,
queryDeleteBill
},
billAction
:
{
printMultiAction
,
...
...
develop/@gms/gms-plugin-billexpand/src/query-actions/queryDeleteBill.js
0 → 100644
View file @
1b611e3c
export
default
{
execute
(
context
,
param
)
{
if
(
!
param
.
billDefine
||
!
param
.
billId
){
GMS
.
$hideContainer
.
$Message
.
info
(
"请配置按钮指定参数"
);
return
;
}
GMS
.
$hideContainer
.
$Modal
.
confirm
({
title
:
"提示"
,
content
:
"确认删除吗?"
,
loading
:
true
,
onOk
:
()
=>
{
this
.
billDeleted
(
context
,
param
);
}
})
},
billDeleted
(
context
,
param
)
{
GMS
.
$http
.
post
(
`/rbc/bill/action/deleted/
${
param
.
billDefine
}
/
${
context
.
selects
[
0
][
param
.
billId
]}
`
).
then
((
data
)
=>
{
if
(
data
.
status
==
200
&&
data
.
data
.
code
==
0
)
{
GMS
.
$hideContainer
.
$Modal
.
remove
();
GMS
.
$hideContainer
.
$Message
.
success
(
'删除成功'
);
GMS
.
vbus
.
$emit
(
'custom-query-refresh'
);
GMS
.
vbus
.
$emit
(
'tab-count-refresh'
);
}
else
{
GMS
.
$hideContainer
.
$Modal
.
remove
();
GMS
.
$hideContainer
.
$Message
.
error
(
data
.
data
.
message
);
}
})
}
}
\ 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