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
af1cafa9
Commit
af1cafa9
authored
Mar 09, 2022
by
袁成
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' of
ssh://nvwa.jiuqi.com.cn:2222/GFP/RBC/rbc-frontend
into develop-yuancheng
parents
77c59273
ac52a9fb
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
48 additions
and
39 deletions
+48
-39
deleteBill.js
develop/@gms/gms-plugin-billexpand/src/actions/deleteBill.js
+6
-7
pageType.js
develop/@gms/gms-plugin-billexpand/src/actions/pageType.js
+18
-23
saveAction.js
develop/@gms/gms-plugin-billexpand/src/actions/saveAction.js
+2
-2
typesBill.vue
...ms-plugin-billexpand/src/components-control/typesBill.vue
+7
-2
printBill.vue
develop/@gms/gms-plugin-billexpand/src/control/printBill.vue
+10
-1
package.json
develop/@rbc/runner-bill-form/package.json
+1
-1
bill-form-runner.vue
develop/@rbc/runner-bill-form/src/views/bill-form-runner.vue
+2
-1
about.vue
develop/@rbc/welcome-page/src/views/about.vue
+2
-2
No files found.
develop/@gms/gms-plugin-billexpand/src/actions/deleteBill.js
View file @
af1cafa9
...
@@ -11,13 +11,12 @@ export default {
...
@@ -11,13 +11,12 @@ export default {
})
})
},
},
billDeleted
(
bill
,
param
)
{
billDeleted
(
bill
,
param
)
{
GMS
.
$http
.
post
(
let
postData
=
{
'/rbc/bill/action/deleteExpenceAccount'
,
{
data
:
bill
.
getBuillData
()
billDefine
:
bill
.
getBillDefine
(),
};
billId
:
bill
.
getMasterData
().
getValue
(
'id'
),
let
id
=
bill
.
getMasterData
().
getValue
(
'id'
);
subTableNames
:
param
.
subTableNames
?
param
.
subTableNames
:
'BXMXZB'
let
url
=
`/rbc/bill/action/executed/
${
bill
.
getBillDefine
()}
/bill.Basic.delete?currentDataId=
${
id
}
`
;
}
GMS
.
$http
.
post
(
url
,
JSON
.
stringify
(
postData
)).
then
((
data
)
=>
{
).
then
((
data
)
=>
{
if
(
data
.
status
==
200
&&
data
.
data
.
code
==
0
)
{
if
(
data
.
status
==
200
&&
data
.
data
.
code
==
0
)
{
GMS
.
$hideContainer
.
$Modal
.
remove
();
GMS
.
$hideContainer
.
$Modal
.
remove
();
GMS
.
$hideContainer
.
$Message
.
success
(
'删除成功'
);
GMS
.
$hideContainer
.
$Message
.
success
(
'删除成功'
);
...
...
develop/@gms/gms-plugin-billexpand/src/actions/pageType.js
View file @
af1cafa9
...
@@ -6,28 +6,23 @@ export default {
...
@@ -6,28 +6,23 @@ export default {
if
(
param
.
name
.
split
(
'_action_gams'
))
{
if
(
param
.
name
.
split
(
'_action_gams'
))
{
actionName
=
param
.
name
.
split
(
'_action_gams'
)[
1
];
actionName
=
param
.
name
.
split
(
'_action_gams'
)[
1
];
}
}
let
flag
=
let
flag
=
compareData
(
GMS
.
oldBillData
,
bill
.
getBuillData
());
GMS
.
queryObject
&&
GMS
.
queryObject
.
isReadOnly
if
(
flag
)
{
?
true
this
.
getOtherPage
(
actionName
);
:
compareData
(
GMS
.
oldBillData
,
bill
.
getBuillData
());
}
else
{
if
(
flag
)
{
GMS
.
$hideContainer
.
$Modal
.
confirm
({
this
.
getOtherPage
(
actionName
);
title
:
"信息提示"
,
}
else
{
content
:
"信息发生变化,确认切换?"
,
GMS
.
$hideContainer
.
$Modal
.
confirm
({
onOk
:
()
=>
{
title
:
"信息提示"
,
this
.
getOtherPage
(
actionName
);
content
:
"信息发生变化,确认切换?"
,
},
onOk
:
()
=>
{
onCancel
:
()
=>
{
if
(
Object
.
keys
(
param
.
param
).
length
>
0
)
{
GMS
.
$hideContainer
.
$Message
[
"info"
]({
this
.
getOtherPage
(
actionName
);
content
:
"已取消"
,
}
});
},
},
onCancel
:
()
=>
{
});
GMS
.
$hideContainer
.
$Message
[
"info"
]({
}
content
:
"已取消"
,
});
},
});
}
},
},
async
getOtherPage
(
action
)
{
async
getOtherPage
(
action
)
{
let
page
=
GMS
.
queryObject
.
currentDataQueryConditionSet
.
page
;
let
page
=
GMS
.
queryObject
.
currentDataQueryConditionSet
.
page
;
...
@@ -56,7 +51,7 @@ export default {
...
@@ -56,7 +51,7 @@ export default {
}
else
if
(
action
==
"last"
)
{
}
else
if
(
action
==
"last"
)
{
GMS
.
queryObject
.
index
=
data
.
data
.
count
-
1
;
GMS
.
queryObject
.
index
=
data
.
data
.
count
-
1
;
}
}
let
state
=
GMS
.
queryObject
.
isReadOnly
?
'readOnly'
:
'
'
;
let
state
=
'readOnly
'
;
if
(
if
(
window
.
osConfig
.
appOpenMode
&&
window
.
osConfig
.
appOpenMode
&&
window
.
osConfig
.
appOpenMode
==
"apploader"
window
.
osConfig
.
appOpenMode
==
"apploader"
...
...
develop/@gms/gms-plugin-billexpand/src/actions/saveAction.js
View file @
af1cafa9
...
@@ -91,8 +91,8 @@ export default {
...
@@ -91,8 +91,8 @@ export default {
data
:
buidData
,
data
:
buidData
,
detailData
:
detailData
,
detailData
:
detailData
,
};
};
//executed/bill.CCSPD/bill.Basic.save?transmission=total
let
url
=
`/rbc/bill/action/executed/
${
param
.
define
}
/bill.Basic.save?transmission=total`
;
let
url
=
`/rbc/bill/action/rbcbillsave/
${
param
.
define
}
/bill.Basic.save?transmission=total`
;
//
let url = `/rbc/bill/action/rbcbillsave/${param.define}/bill.Basic.save?transmission=total`;
GMS
.
$http
GMS
.
$http
.
post
(
url
,
JSON
.
stringify
(
postData
),
{
.
post
(
url
,
JSON
.
stringify
(
postData
),
{
headers
:
{
headers
:
{
...
...
develop/@gms/gms-plugin-billexpand/src/components-control/typesBill.vue
View file @
af1cafa9
...
@@ -70,8 +70,13 @@ export default {
...
@@ -70,8 +70,13 @@ export default {
loadFinishFun
(
bill
)
{
loadFinishFun
(
bill
)
{
console
.
log
(
'billState'
,
bill
.
getMasterData
().
getValue
(
'billState'
))
console
.
log
(
'billState'
,
bill
.
getMasterData
().
getValue
(
'billState'
))
const
workflowState
=
bill
.
getMasterData
().
getValue
(
'billState'
)
const
workflowState
=
bill
.
getMasterData
().
getValue
(
'billState'
)
if
([
90
,
92
].
includes
(
workflowState
))
{
let
readArr
=
this
.
templateName
.
endsWith
(
'_A'
)?[
92
]:[
90
,
92
];
//如果是审批界面话,90能编辑
this
.
state
=
'readOnly'
if
(
this
.
state
!=
'readOnly'
&&
readArr
.
includes
(
workflowState
))
{
this
.
state
=
'readOnly'
;
this
.
init
=
false
;
this
.
$nextTick
(()
=>
{
this
.
init
=
true
;
});
}
}
let
that
=
this
;
let
that
=
this
;
setTimeout
(()
=>
{
setTimeout
(()
=>
{
...
...
develop/@gms/gms-plugin-billexpand/src/control/printBill.vue
View file @
af1cafa9
<
template
>
<
template
>
<div>
<div>
<Modal
v-model=
"modalShow"
title=
"打印"
@
on-ok=
"printAsync"
>
<Modal
v-model=
"modalShow"
title=
"打印"
>
<span>
打印模板
</span>
<span>
打印模板
</span>
<Select
v-model=
"printTemplate"
clearable
>
<Select
v-model=
"printTemplate"
clearable
>
<Option
<Option
...
@@ -10,6 +10,10 @@
...
@@ -10,6 +10,10 @@
>
{{
item
.
title
}}
</Option
>
{{
item
.
title
}}
</Option
>
>
</Select>
</Select>
<div
slot=
"footer"
>
<Button
@
click=
"modalShow = false"
>
取消
</Button>
<Button
@
click=
"printAsync"
type=
"primary"
>
确定
</Button>
</div>
</Modal>
</Modal>
</div>
</div>
</
template
>
</
template
>
...
@@ -41,6 +45,10 @@ export default {
...
@@ -41,6 +45,10 @@ export default {
},
},
methods
:
{
methods
:
{
printAsync
()
{
printAsync
()
{
if
(
!
this
.
printTemplate
){
GMS
.
$hideContainer
.
$Message
.
info
(
'请选择打印模板'
);
return
;
}
//打印接口
//打印接口
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
// let url=`/gms/bill/print/${this.billDefineName}/${this.billId}/${this.printTemplate}`;
// let url=`/gms/bill/print/${this.billDefineName}/${this.billId}/${this.printTemplate}`;
...
@@ -61,6 +69,7 @@ export default {
...
@@ -61,6 +69,7 @@ export default {
let
href
=
window
.
URL
.
createObjectURL
(
blob
);
//创建下载的链接
let
href
=
window
.
URL
.
createObjectURL
(
blob
);
//创建下载的链接
downloadElement
.
href
=
href
;
downloadElement
.
href
=
href
;
window
.
open
(
href
)
window
.
open
(
href
)
this
.
modalShow
=
false
;
// let routeData = GMS.routerManager.getRouter().resolve({
// let routeData = GMS.routerManager.getRouter().resolve({
// path: "/showPrint",
// path: "/showPrint",
// query: { src: href },
// query: { src: href },
...
...
develop/@rbc/runner-bill-form/package.json
View file @
af1cafa9
{
{
"name"
:
"@rbc/runner-bill-form"
,
"name"
:
"@rbc/runner-bill-form"
,
"version"
:
"0.0.
1
"
,
"version"
:
"0.0.
2
"
,
"scripts"
:
{
"scripts"
:
{
"build"
:
"vue-cli-service build"
,
"build"
:
"vue-cli-service build"
,
"build-dev"
:
"vue-cli-service build --mode development"
,
"build-dev"
:
"vue-cli-service build --mode development"
,
...
...
develop/@rbc/runner-bill-form/src/views/bill-form-runner.vue
View file @
af1cafa9
...
@@ -97,7 +97,8 @@ export default {
...
@@ -97,7 +97,8 @@ export default {
loadFinishFun
(
bill
)
{
loadFinishFun
(
bill
)
{
this
.
curBill
=
bill
;
this
.
curBill
=
bill
;
const
billState
=
bill
.
getMasterData
().
getValue
(
'billState'
)
const
billState
=
bill
.
getMasterData
().
getValue
(
'billState'
)
if
(
this
.
state
!=
'readOnly'
&&
[
90
,
92
].
includes
(
billState
))
{
let
readArr
=
this
.
templateName
.
endsWith
(
'_A'
)?[
92
]:[
90
,
92
];
//如果是审批界面话,90能编辑
if
(
this
.
state
!=
'readOnly'
&&
readArr
.
includes
(
billState
))
{
this
.
state
=
'readOnly'
;
this
.
state
=
'readOnly'
;
this
.
init
=
false
;
this
.
init
=
false
;
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
...
...
develop/@rbc/welcome-page/src/views/about.vue
View file @
af1cafa9
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
version
:
''
,
version
:
'
财务信息化网上报销子系统版本:机密 V1.0.1
'
,
}
}
},
},
mounted
()
{
mounted
()
{
...
@@ -16,7 +16,7 @@ export default {
...
@@ -16,7 +16,7 @@ export default {
let
times
=
new
Date
().
getTime
()
let
times
=
new
Date
().
getTime
()
appStoreServer
.
get
(
`
${
window
.
NROS_PREFIX
||
'/'
}
version.json?times=`
+
times
).
then
((
res
)
=>
{
appStoreServer
.
get
(
`
${
window
.
NROS_PREFIX
||
'/'
}
version.json?times=`
+
times
).
then
((
res
)
=>
{
console
.
log
(
res
)
console
.
log
(
res
)
this
.
version
=
res
&&
res
.
data
&&
res
.
data
.
rbcVersion
this
.
version
=
res
&&
res
.
data
&&
res
.
data
.
rbcVersion
||
this
.
version
})
})
}
}
}
}
...
...
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