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
aba12c2c
Commit
aba12c2c
authored
Mar 25, 2022
by
fengjiansheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
format(@gms/gms-plugin-billexpand): function格式调整
parent
97a292db
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
17 additions
and
17 deletions
+17
-17
emcon.js
develop/@gms/gms-plugin-billexpand/src/emcon.js
+7
-7
AmountComp.js
develop/@gms/gms-plugin-billexpand/src/formula/AmountComp.js
+1
-1
CheckAmount.js
...lop/@gms/gms-plugin-billexpand/src/formula/CheckAmount.js
+3
-2
CheckInvoiceNumber.js
...s/gms-plugin-billexpand/src/formula/CheckInvoiceNumber.js
+1
-2
CheckJdhdAmount.js
...@gms/gms-plugin-billexpand/src/formula/CheckJdhdAmount.js
+2
-1
CheckRoleAuthentication.js
...-plugin-billexpand/src/formula/CheckRoleAuthentication.js
+1
-2
CheckYwjdSave.js
...p/@gms/gms-plugin-billexpand/src/formula/CheckYwjdSave.js
+2
-2
No files found.
develop/@gms/gms-plugin-billexpand/src/emcon.js
View file @
aba12c2c
...
...
@@ -3646,12 +3646,12 @@ export default {
"info"
:
{
"param"
:
[],
"name"
:
"CheckAmount"
,
"description"
:
"
校验公式:校验主子表金额是否相等
"
,
"description"
:
"
上海YSYB项目专用公式,用于比较主子表金额是否一致,只支持主子表金额对比。CheckAmount(DJD_H.JE,FPXX_I.JE,YQXX_I.JE)
"
,
"title"
:
"校验公式:校验主子表金额是否相等"
,
"return"
:
0
}
},
"description"
:
"
校验公式:校验主子表金额是否相等
"
,
"description"
:
""
,
"title"
:
"校验公式:校验主子表金额是否相等"
,
"value"
:
"CheckAmount"
},
...
...
@@ -3815,12 +3815,12 @@ export default {
"info"
:
{
"param"
:
[],
"name"
:
"CheckJdhdAmount"
,
"description"
:
"
校验公式:接待活动登记单主子表金额是否相等
"
,
"description"
:
"
上海YSYB项目专用公式,只支持接待活动登记单的主子表金额对比。CheckJdhdAmount(DJD_H.JE,FPXX_I.JE,YQXX_I.JE)
"
,
"title"
:
"校验公式:接待活动登记单主子表金额是否相等"
,
"return"
:
0
}
},
"description"
:
"
校验公式:接待活动登记单主子表金额是否相等
"
,
"description"
:
""
,
"title"
:
"校验公式:接待活动登记单主子表金额是否相等"
,
"value"
:
"CheckJdhdAmount"
},
...
...
@@ -4099,13 +4099,13 @@ export default {
"info"
:
{
"param"
:
[],
"name"
:
"AmountComp"
,
"description"
:
"
金额比较公式 e.g. AmountComp(BXD_H.BXJEXX,BXD_H.BXJEX1
)"
,
"title"
:
"
金额
比较公式"
,
"description"
:
"
数值比较公式,参数可嵌套公式使用。AmountComp(BXD_H.BXJEXX,GetAmount(BXD_I1.JE)
)"
,
"title"
:
"
数值
比较公式"
,
"return"
:
1
}
},
"description"
:
""
,
"title"
:
"
金额
比较公式"
,
"title"
:
"
数值
比较公式"
,
"value"
:
"AmountComp"
},
{
...
...
develop/@gms/gms-plugin-billexpand/src/formula/AmountComp.js
View file @
aba12c2c
import
_
from
"./FormulaConstants"
;
import
currency
from
'currency.js/dist/currency.js'
/**
*
金额
比较公式
*
数值
比较公式
* 比较左右两个操作数是否相等 参数可以是返回值类型为number的公式
* @author fengjiansheng
* @date 2022-02-07
...
...
develop/@gms/gms-plugin-billexpand/src/formula/CheckAmount.js
View file @
aba12c2c
...
...
@@ -2,14 +2,15 @@ import _ from 'lodash'
import
util
from
'./FormulaConstants'
/**
* 上海YSYB项目专用公式
* 金额校验 校验业务登记单主子表金额是否相等
* @author fengjiansheng
* @date 2021-08-29
*/
export
default
{
formulaName
:
"CheckAmount"
,
execute
:
function
()
{
console
.
log
(
"s1 CheckAmount"
)
if
(
arguments
&&
arguments
[
0
]
&&
arguments
[
0
].
length
>
1
&&
arguments
[
1
])
{
if
(
arguments
&&
arguments
[
0
]
&&
arguments
[
0
].
length
>
1
&&
arguments
[
1
])
{
let
context
=
arguments
[
1
]
let
masterField
=
arguments
[
0
][
0
]
let
masterTableObject
=
context
.
getTableType
(
masterField
.
FieldTableCode
)
...
...
develop/@gms/gms-plugin-billexpand/src/formula/CheckInvoiceNumber.js
View file @
aba12c2c
...
...
@@ -7,8 +7,7 @@ import _ from 'lodash'
*/
export
default
{
execute
:
function
()
{
console
.
log
(
"s1 CheckInvoiceNumber"
)
if
(
arguments
&&
arguments
[
0
]
&&
arguments
[
0
].
length
>
1
&&
arguments
[
1
])
{
if
(
arguments
&&
arguments
[
0
]
&&
arguments
[
0
].
length
>
1
&&
arguments
[
1
])
{
let
context
=
arguments
[
1
]
let
subField
=
arguments
[
0
][
1
]
let
tempSubTableObject
=
context
.
getTableType
(
subField
.
FieldTableCode
)
...
...
develop/@gms/gms-plugin-billexpand/src/formula/CheckJdhdAmount.js
View file @
aba12c2c
...
...
@@ -2,14 +2,15 @@ import _ from 'lodash'
import
util
from
'./FormulaConstants'
/**
* 上海YSYB项目专用公式
* 金额校验 校验接待活动登记单主子表金额是否相等
* 公式说明 本公式仅适用接待活动单据主子表金额校验
* @author fengjiansheng
* @date 2021-09-04
*/
export
default
{
formulaName
:
"CheckJdhdAmount"
,
execute
:
function
()
{
console
.
log
(
"s1 CheckJdhdAmount"
)
if
(
arguments
&&
arguments
[
0
]
&&
arguments
[
0
].
length
>
1
&&
arguments
[
1
])
{
let
context
=
arguments
[
1
]
let
masterField
=
arguments
[
0
][
0
]
...
...
develop/@gms/gms-plugin-billexpand/src/formula/CheckRoleAuthentication.js
View file @
aba12c2c
...
...
@@ -16,8 +16,7 @@ import _ from "lodash";
*/
export
default
{
execute
:
function
()
{
console
.
log
(
"s1 CheckRoleAuthentication"
)
if
(
arguments
&&
arguments
[
0
]
&&
arguments
[
0
].
length
>
1
&&
arguments
[
1
])
{
if
(
arguments
&&
arguments
[
0
]
&&
arguments
[
0
].
length
>
1
&&
arguments
[
1
])
{
// TODO 入参校验
let
context
=
arguments
[
1
]
let
controlName
=
arguments
[
0
][
0
].
StaticValue
...
...
develop/@gms/gms-plugin-billexpand/src/formula/CheckYwjdSave.js
View file @
aba12c2c
/**
* HB报销专用公式
* 是否业务接待校验 当差旅费业务接待=true时 需填写接待登记单
* @author fengjiansheng
* @date 2021-11-30
*/
export
default
{
execute
:
function
()
{
console
.
log
(
"s1 CheckYwjdSave"
)
if
(
arguments
&&
arguments
[
0
]
&&
arguments
[
0
].
length
>
0
&&
arguments
[
1
])
{
if
(
arguments
&&
arguments
[
0
]
&&
arguments
[
0
].
length
>
0
&&
arguments
[
1
])
{
let
context
=
arguments
[
1
]
let
sfjdField
=
arguments
[
0
][
0
]
let
subBillNameField
=
arguments
[
0
][
1
]
...
...
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