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
31a133f4
Commit
31a133f4
authored
Mar 25, 2022
by
qiaoyanqi
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' of
http://nvwa.jiuqi.com.cn/gitlab/GFP/RBC/rbc-frontend
into develop
parents
fffad5ef
bc9d95c9
Hide whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
215 additions
and
24 deletions
+215
-24
imageView.js
develop/@gms/gms-plugin-billexpand/src/actions/imageView.js
+3
-1
lincaoAddView.js
...p/@gms/gms-plugin-billexpand/src/actions/lincaoAddView.js
+15
-0
relateInvoiceAction.js
.../gms-plugin-billexpand/src/actions/relateInvoiceAction.js
+3
-1
updateStateLincaoAction.js
...-plugin-billexpand/src/actions/updateStateLincaoAction.js
+0
-1
updateStateLincaoActionExtend.js
...n-billexpand/src/actions/updateStateLincaoActionExtend.js
+64
-0
invoice-modal.vue
...lugin-billexpand/src/components-control/invoice-modal.vue
+2
-0
typesBill.vue
...ms-plugin-billexpand/src/components-control/typesBill.vue
+8
-2
lincaoView.vue
...lop/@gms/gms-plugin-billexpand/src/control/lincaoView.vue
+37
-0
emcon.js
develop/@gms/gms-plugin-billexpand/src/emcon.js
+63
-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
mcon.js
develop/@gms/gms-plugin-billexpand/src/mcon.js
+5
-1
viewImage.js
...gin-billexpand/src/query-actions/imagemanage/viewImage.js
+3
-1
image-view-modal.vue
...oice/src/components/image-view-modal/image-view-modal.vue
+2
-0
No files found.
develop/@gms/gms-plugin-billexpand/src/actions/imageView.js
View file @
31a133f4
...
...
@@ -2,9 +2,10 @@ import ImageViewModal from '../../../../@rbc/invoice/src/components/image-view-m
export
default
{
execute
:
function
(
bill
,
param
)
{
const
curbill
=
bill
.
dom
||
bill
GMS
.
$hideContainer
.
addComponent
(
ImageViewModal
,
{},
function
(
c
)
{
const
name
=
GMS
.
$hideContainer
.
addComponent
(
ImageViewModal
,
{},
function
(
c
)
{
c
.
imageTableName
=
param
.
param
.
tableName
c
.
bill
=
curbill
c
.
componentName
=
name
})
}
}
\ No newline at end of file
develop/@gms/gms-plugin-billexpand/src/actions/lincaoAddView.js
0 → 100644
View file @
31a133f4
import
lincaoView
from
'../control/lincaoView.vue'
export
default
{
execute
:
function
(
bill
,
param
)
{
// if (param.param.ipAddress && param.param.layerIds && bill.dom.billdata.JBR) {
GMS
.
$hideContainer
.
addComponent
(
lincaoView
,
{},
function
(
c
)
{
debugger
c
.
url
=
`http://
${
param
.
param
.
ipAddress
}
/jq/addAssociateDatas.do?unitCode=
${
nros
.
getUser
().
loginUnit
}
&layerIds=
${
param
.
param
.
layerIds
}
&projectNum=
${
bill
.
dom
.
billdata
.
JBR
}
`
c
.
modalShow
=
true
;
})
// } else {
// GAMS.Common.messagePrompt('缺少参数')
// }
}
}
\ No newline at end of file
develop/@gms/gms-plugin-billexpand/src/actions/relateInvoiceAction.js
View file @
31a133f4
...
...
@@ -2,9 +2,10 @@
import
InvoiceModal
from
'../components-control/invoice-modal.vue'
export
default
{
execute
:
function
(
bill
,
param
)
{
GMS
.
$hideContainer
.
addComponent
(
InvoiceModal
,
{},
function
(
c
)
{
const
name
=
GMS
.
$hideContainer
.
addComponent
(
InvoiceModal
,
{},
function
(
c
)
{
c
.
bill
=
bill
.
dom
c
.
invoiceName
=
param
.
param
.
invoiceName
c
.
componentName
=
name
})
}
}
\ No newline at end of file
develop/@gms/gms-plugin-billexpand/src/actions/updateStateLincaoAction.js
View file @
31a133f4
...
...
@@ -24,7 +24,6 @@ export default {
});
},
updateFieldAction
(
bill
,
param
)
{
debugger
let
_actions
=
param
.
param
.
actions
;
let
define
=
param
.
define
;
let
postData
=
{
...
...
develop/@gms/gms-plugin-billexpand/src/actions/updateStateLincaoActionExtend.js
0 → 100644
View file @
31a133f4
/*
* @Author: rao JiaGuan
* @Date: 2022年3月24日11:15:52
* @LastEditors: rao JiaGuan
* @Description: 林草项目状态修改扩展
*/
export
default
{
execute
:
function
(
bill
,
param
)
{
let
msg
;
if
(
param
.
param
.
clickMessage
){
msg
=
param
.
param
.
clickMessage
}
GMS
.
$hideContainer
.
$Modal
.
confirm
({
title
:
"信息提示"
,
content
:
msg
,
onOk
:
()
=>
{
this
.
updateFieldAction
(
bill
,
param
);
},
onCancel
:
()
=>
{
GMS
.
$hideContainer
.
$Message
[
"error"
]({
content
:
"已取消"
,
});
},
});
},
updateFieldAction
(
bill
,
param
)
{
let
_actions
=
param
.
param
.
actions
;
let
define
=
param
.
define
;
let
postData
=
{
data
:
bill
.
getBuillData
(),
};
let
url
=
`/gms/bill/executed/
${
define
}
/
${
_actions
}
?transmission=total`
;
GMS
.
$http
.
post
(
url
,
postData
,
{
headers
:
{
post
:
{
"Content-Type"
:
"application/json"
,
},
},
})
.
then
((
res
)
=>
{
if
(
res
.
status
==
200
&&
res
.
data
.
code
==
0
)
{
const
masterName
=
bill
.
billdata
.
billTable
.
masterName
;
let
successMessage
;
if
(
param
.
param
.
successMessage
){
successMessage
=
param
.
param
.
successMessage
}
GMS
.
vbus
.
$Message
.
success
(
successMessage
);
// 刷新页面
GMS
.
vbus
.
$emit
(
"custom-query-refresh"
);
GMS
.
vbus
.
$emit
(
"tab-count-refresh"
);
GMS
.
vbus
.
$emit
(
"submitSuccess"
);
}
else
if
(
res
.
data
.
code
==
-
1
&&
res
.
data
.
message
)
{
let
stringOne
=
res
.
data
.
message
.
split
(
":"
)[
1
];
let
stringResult
=
stringOne
.
split
(
";"
)[
0
];
GMS
.
vbus
.
$Message
.
error
(
stringResult
);
}
else
{
res
.
data
.
message
&&
GMS
.
vbus
.
$Message
.
error
(
res
.
data
.
message
);
}
});
},
};
\ No newline at end of file
develop/@gms/gms-plugin-billexpand/src/components-control/invoice-modal.vue
View file @
31a133f4
...
...
@@ -16,6 +16,7 @@ export default {
modalVisible
:
true
,
bill
:
null
,
invoiceName
:
''
,
componentName
:
null
,
}
},
methods
:
{
...
...
@@ -54,6 +55,7 @@ export default {
}
this
.
bill
.
refreshSubDataRow
(
subBillName
)
})
this
.
componentName
&&
GMS
.
$hideContainer
.
remove
(
this
.
componentName
)
})
}
...
...
develop/@gms/gms-plugin-billexpand/src/components-control/typesBill.vue
View file @
31a133f4
...
...
@@ -81,8 +81,14 @@ export default {
this
.
init
=
true
;
});
},
loadFinishFun
(
bill
)
{
console
.
log
(
'billState'
,
bill
.
getMasterData
().
getValue
(
'billState'
))
loadFinishFun
(
bill
,
err
)
{
if
(
err
)
{
this
.
$Message
.
error
(
err
)
setTimeout
(()
=>
{
this
.
close
()
},
0
);
return
}
const
workflowState
=
bill
.
getMasterData
().
getValue
(
'billState'
)
let
readArr
=
this
.
templateName
.
endsWith
(
'_A'
)?[
92
]:[
90
,
92
];
//如果是审批界面话,90能编辑
if
(
this
.
state
!=
'readOnly'
&&
readArr
.
includes
(
workflowState
))
{
...
...
develop/@gms/gms-plugin-billexpand/src/control/lincaoView.vue
0 → 100644
View file @
31a133f4
<
template
>
<div>
<el-dialog
:visible
.
sync=
"dialogVisible"
width=
"80%"
v-dialogDrag
:close-on-click-modal=
"false"
:close-on-press-escape=
"false"
>
<iframe
:src=
"url"
></iframe>
</el-dialog>
</div>
</
template
>
<
script
>
export
default
{
props
:
{},
data
()
{
return
{
dialogVisible
:
true
,
url
:
""
,
};
},
watch
:
{
},
methods
:
{
eventListener
(
message
){
}
},
mounted
()
{
windows
.
addEventListener
(
'message'
,
eventListener
)
},
};
</
script
>
<
style
scoped
lang=
"less"
></
style
>
develop/@gms/gms-plugin-billexpand/src/emcon.js
View file @
31a133f4
...
...
@@ -1312,6 +1312,41 @@ export default {
},
{
"discard"
:
false
,
"path"
:
"一体化/通用"
,
"extends"
:
{
"param"
:
[
{
"icon"
:
"#iconbianji"
,
"selectType"
:
"card"
,
"componentName"
:
"successMessage"
,
"type"
:
"string"
,
"title"
:
"成功后提醒语"
,
"key"
:
"successMessage"
},
{
"icon"
:
"#iconbianji"
,
"selectType"
:
"card"
,
"componentName"
:
"clickMessage"
,
"type"
:
"string"
,
"title"
:
"点击后提示语"
,
"key"
:
"clickMessage"
},
{
"ref"
:
"gams2.bill"
,
"type"
:
"select"
,
"title"
:
"执行动作"
,
"key"
:
"actions"
,
"innerRef"
:
"actions"
},
]
},
"description"
:
""
,
"title"
:
"修改状态通用扩展[updateStateLincaoActionExtend]"
,
"value"
:
"updateStateLincaoActionExtend"
,
"btnDisable"
:
"false"
},
{
"discard"
:
false
,
"path"
:
"资产/通用"
,
"extends"
:
{
"param"
:
[{
...
...
@@ -1515,6 +1550,27 @@ export default {
},
{
"discard"
:
false
,
"path"
:
"林草报销/专用"
,
"extends"
:
{
"param"
:
[{
"isRequired"
:
false
,
"title"
:
"请求路径ip地址"
,
"key"
:
"ipAddress"
,
"type"
:
"String"
,
},{
"isRequired"
:
false
,
"title"
:
"layerIds"
,
"key"
:
"layerIds"
,
"type"
:
"String"
,
}]
},
"description"
:
""
,
"title"
:
"林草新增视图关联[lincaoAddView]"
,
"value"
:
"lincaoAddView"
,
"alwaysUse"
:
true
},
{
"discard"
:
false
,
"path"
:
"资产/通用"
,
"extends"
:
{
"param"
:
[{
...
...
@@ -3646,12 +3702,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 +3871,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 +4155,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 @
31a133f4
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 @
31a133f4
...
...
@@ -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 @
31a133f4
...
...
@@ -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 @
31a133f4
...
...
@@ -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 @
31a133f4
...
...
@@ -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 @
31a133f4
/**
* 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
]
...
...
develop/@gms/gms-plugin-billexpand/src/mcon.js
View file @
31a133f4
...
...
@@ -10,6 +10,7 @@ import showDetailSPAction from './actions/showDetailSPAction';
import
editAction
from
'./actions/editAction'
;
import
updatebillStateAction
from
'./actions/updatebillStateAction'
;
import
updateStateLincaoAction
from
'./actions/updateStateLincaoAction'
;
import
updateStateLincaoActionExtend
from
'./actions/updateStateLincaoActionExtend'
;
import
draftSearchAction
from
'./actions/draftSearchAction'
;
import
draftSaveAction
from
'./actions/draftSaveAction'
;
import
copyBillAction
from
'./actions/copyBillAction'
;
...
...
@@ -38,6 +39,7 @@ import CW_imageView from './actions/imageView'
import
relateInvoiceAction
from
'./actions/relateInvoiceAction.js'
import
deleteInvoiceAction
from
'./actions/deleteInvoiceAction.js'
import
saveActionBXD
from
'./actions/saveActionBXD'
;
import
lincaoAddView
from
'./actions/lincaoAddView'
;
//queryAction
import
leafletGenerationAction
from
'./query-actions/leafletGenerationAction.js'
import
leafletGenerationTYAction
from
'./query-actions/leafletGenerationTYAction.js'
...
...
@@ -220,7 +222,8 @@ export default {
throughQuery
,
deleteInvoiceAction
,
simpleAdvanceDeleteAction
,
queryDeleteBill
queryDeleteBill
,
lincaoAddView
},
billAction
:
{
printMultiAction
,
...
...
@@ -235,6 +238,7 @@ export default {
editAction
,
updatebillStateAction
,
updateStateLincaoAction
,
updateStateLincaoActionExtend
,
draftSearchAction
,
draftSaveAction
,
draftFixBugAction
,
...
...
develop/@gms/gms-plugin-billexpand/src/query-actions/imagemanage/viewImage.js
View file @
31a133f4
...
...
@@ -8,9 +8,10 @@ export default {
const
imageId
=
context
.
selects
[
0
][
param
.
imageId
]
const
yearFlag
=
context
.
selects
[
0
][
param
.
yearFlag
]
GMS
.
$hideContainer
.
addComponent
(
ImageViewModal
,
{},
function
(
c
)
{
const
name
=
GMS
.
$hideContainer
.
addComponent
(
ImageViewModal
,
{},
function
(
c
)
{
c
.
yearFlag
=
yearFlag
c
.
imageId
=
imageId
c
.
componentName
=
name
})
}
}
\ No newline at end of file
develop/@rbc/invoice/src/components/image-view-modal/image-view-modal.vue
View file @
31a133f4
...
...
@@ -52,6 +52,7 @@ export default {
currentImgIndex
:
0
,
imgUrlSet
:
new
Set
(),
imageTableName
:
null
,
componentName
:
null
,
};
},
watch
:
{
...
...
@@ -64,6 +65,7 @@ export default {
this
.
bill
=
null
this
.
imageId
=
null
this
.
yearFlags
=
[]
this
.
componentName
&&
GMS
.
$hideContainer
.
remove
(
this
.
componentName
)
}
},
imageId
(
id
)
{
...
...
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