Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cyyy
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
zhangfeng
cyyy
Commits
04b621ca
Commit
04b621ca
authored
May 17, 2021
by
zhangfeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
问题
parent
d1d1bcfa
Hide whitespace changes
Inline
Side-by-side
Showing
32 changed files
with
281 additions
and
37 deletions
+281
-37
upload_df3b66ec_0344_4f72_9c79_4d64508efc64_00000003.tmp
.../upload_df3b66ec_0344_4f72_9c79_4d64508efc64_00000003.tmp
+0
-0
upload_df3b66ec_0344_4f72_9c79_4d64508efc64_00000018.tmp
.../upload_df3b66ec_0344_4f72_9c79_4d64508efc64_00000018.tmp
+0
-0
upload_df3b66ec_0344_4f72_9c79_4d64508efc64_00000019.tmp
.../upload_df3b66ec_0344_4f72_9c79_4d64508efc64_00000019.tmp
+0
-0
upload_df3b66ec_0344_4f72_9c79_4d64508efc64_00000020.tmp
.../upload_df3b66ec_0344_4f72_9c79_4d64508efc64_00000020.tmp
+0
-0
BudgetDeclaratio.java
...in/java/com/corp/cyyy/dubget/entity/BudgetDeclaratio.java
+2
-2
BudgetDeclaratioController.java
.../com/corp/cyyy/dubget/web/BudgetDeclaratioController.java
+1
-1
BudgetDeclaratioQueryKS.java
...m/corp/cyyy/dubget/web/query/BudgetDeclaratioQueryKS.java
+88
-0
PoDeptService.java
src/main/java/com/corp/cyyy/po/service/PoDeptService.java
+72
-11
budget_declaratio.xml
src/main/resources/excelTemplates/po/budget_declaratio.xml
+1
-0
budget_verification.xml
src/main/resources/excelTemplates/po/budget_verification.xml
+1
-0
执行导入模板.xlsx
src/main/resources/excelTemplates/po/执行导入模板.xlsx
+0
-0
预算申报导入模板.xls
src/main/resources/excelTemplates/po/预算申报导入模板.xls
+0
-0
hxindex.js
src/main/resources/static/js/dubget/budget/hxindex.js
+8
-0
index.js
src/main/resources/static/js/dubget/budget/index.js
+9
-1
cwcindex.js
...n/resources/static/js/dubget/budgetDeclaratio/cwcindex.js
+6
-2
index.js
...main/resources/static/js/dubget/budgetDeclaratio/index.js
+6
-2
indexZJ.js
...in/resources/static/js/dubget/budgetDeclaratio/indexZJ.js
+6
-2
tjindex.js
...in/resources/static/js/dubget/budgetDeclaratio/tjindex.js
+4
-0
xgedit.js
...ain/resources/static/js/dubget/budgetDeclaratio/xgedit.js
+4
-0
xgindex.js
...in/resources/static/js/dubget/budgetDeclaratio/xgindex.js
+10
-5
yldindex.js
...n/resources/static/js/dubget/budgetDeclaratio/yldindex.js
+4
-0
audit.js
...in/resources/static/js/dubget/budgetVerification/audit.js
+1
-1
index.js
...in/resources/static/js/dubget/budgetVerification/index.js
+8
-0
tjindex.js
.../resources/static/js/dubget/budgetVerification/tjindex.js
+12
-0
viewindex.js
...esources/static/js/dubget/budgetVerification/viewindex.js
+8
-0
yldindex.js
...resources/static/js/dubget/budgetVerification/yldindex.js
+8
-0
index.js
src/main/resources/static/js/re/record/index.js
+1
-1
add.html
...main/resources/templates/dubget/budgetDeclaratio/add.html
+9
-3
addZJ.html
...in/resources/templates/dubget/budgetDeclaratio/addZJ.html
+6
-3
edit.html
...ain/resources/templates/dubget/budgetDeclaratio/edit.html
+1
-1
add.html
...in/resources/templates/dubget/budgetVerification/add.html
+3
-1
edit.html
...n/resources/templates/dubget/budgetVerification/edit.html
+2
-1
No files found.
data/tmp/upload_df3b66ec_0344_4f72_9c79_4d64508efc64_00000003.tmp
0 → 100644
View file @
04b621ca
File added
data/tmp/upload_df3b66ec_0344_4f72_9c79_4d64508efc64_00000018.tmp
0 → 100644
View file @
04b621ca
File added
data/tmp/upload_df3b66ec_0344_4f72_9c79_4d64508efc64_00000019.tmp
0 → 100644
View file @
04b621ca
File added
data/tmp/upload_df3b66ec_0344_4f72_9c79_4d64508efc64_00000020.tmp
0 → 100644
View file @
04b621ca
File added
src/main/java/com/corp/cyyy/dubget/entity/BudgetDeclaratio.java
View file @
04b621ca
...
@@ -334,13 +334,13 @@ public class BudgetDeclaratio extends BaseEntity{
...
@@ -334,13 +334,13 @@ public class BudgetDeclaratio extends BaseEntity{
this
.
estimate
=
estimate
;
this
.
estimate
=
estimate
;
}
}
/**
数量
/**
联系电话
*@return
*@return
*/
*/
public
String
getQuantity
(){
public
String
getQuantity
(){
return
quantity
;
return
quantity
;
}
}
/**
数量
/**
联系电话
*@param quantity
*@param quantity
*/
*/
public
void
setQuantity
(
String
quantity
){
public
void
setQuantity
(
String
quantity
){
...
...
src/main/java/com/corp/cyyy/dubget/web/BudgetDeclaratioController.java
View file @
04b621ca
...
@@ -111,7 +111,7 @@ public class BudgetDeclaratioController{
...
@@ -111,7 +111,7 @@ public class BudgetDeclaratioController{
}
else
if
(
dtype
.
equals
(
"2"
))
{
}
else
if
(
dtype
.
equals
(
"2"
))
{
view
=
new
ModelAndView
(
"/dubget/budgetDeclaratio/indexZJ.html"
)
;
view
=
new
ModelAndView
(
"/dubget/budgetDeclaratio/indexZJ.html"
)
;
}
}
view
.
addObject
(
"search"
,
BudgetDeclaratioQuery
.
class
.
getName
());
view
.
addObject
(
"search"
,
BudgetDeclaratioQuery
KS
.
class
.
getName
());
return
view
;
return
view
;
}
}
@GetMapping
(
MODEL
+
"/xgindex.do"
)
@GetMapping
(
MODEL
+
"/xgindex.do"
)
...
...
src/main/java/com/corp/cyyy/dubget/web/query/BudgetDeclaratioQueryKS.java
0 → 100644
View file @
04b621ca
package
com
.
corp
.
cyyy
.
dubget
.
web
.
query
;
import
com.spk.admin.core.annotation.Query
;
import
com.spk.admin.core.util.enums.CoreDictType
;
import
com.spk.admin.core.web.query.PageParam
;
import
java.util.Date
;
/**
*BudgetDeclaratio查询
*/
public
class
BudgetDeclaratioQueryKS
extends
PageParam
{
//@Query(name = "科室名称", display = true)
private
String
deptName
;
@Query
(
name
=
"预算类型"
,
display
=
true
)
private
String
type
;
@Query
(
name
=
"预算编号"
,
display
=
true
)
private
String
number
;
@Query
(
name
=
"申报人员"
,
display
=
true
)
private
String
user
;
@Query
(
name
=
"年度"
,
display
=
true
)
private
String
year
;
private
String
examine
;
private
String
typeState
;
private
String
orgId
;
private
String
state
;
private
String
dtype
;
public
String
getDtype
()
{
return
dtype
;
}
public
void
setDtype
(
String
dtype
)
{
this
.
dtype
=
dtype
;
}
public
String
getState
()
{
return
state
;
}
public
void
setState
(
String
state
)
{
this
.
state
=
state
;
}
public
String
getOrgId
()
{
return
orgId
;
}
public
void
setOrgId
(
String
orgId
)
{
this
.
orgId
=
orgId
;
}
public
String
getTypeState
()
{
return
typeState
;
}
public
void
setTypeState
(
String
typeState
)
{
this
.
typeState
=
typeState
;
}
public
String
getExamine
()
{
return
examine
;
}
public
void
setExamine
(
String
examine
)
{
this
.
examine
=
examine
;
}
public
String
getDeptName
(){
return
deptName
;
}
public
void
setDeptName
(
String
deptName
){
this
.
deptName
=
deptName
;
}
public
String
getType
(){
return
type
;
}
public
void
setType
(
String
type
){
this
.
type
=
type
;
}
public
String
getNumber
(){
return
number
;
}
public
void
setNumber
(
String
number
){
this
.
number
=
number
;
}
public
String
getUser
(){
return
user
;
}
public
void
setUser
(
String
user
){
this
.
user
=
user
;
}
public
String
getYear
(){
return
year
;
}
public
void
setYear
(
String
year
){
this
.
year
=
year
;
}
}
src/main/java/com/corp/cyyy/po/service/PoDeptService.java
View file @
04b621ca
...
@@ -212,7 +212,7 @@ public class PoDeptService extends BaseService<PoDept>{
...
@@ -212,7 +212,7 @@ public class PoDeptService extends BaseService<PoDept>{
}
}
public
void
savaListBudgetDeclaratio
(
List
<
BudgetDeclaratio
>
agents
)
{
public
void
savaListBudgetDeclaratio
(
List
<
BudgetDeclaratio
>
agents
)
throws
BadHanyuPinyinOutputFormatCombination
{
for
(
BudgetDeclaratio
budgetDeclaratio
:
agents
)
{
for
(
BudgetDeclaratio
budgetDeclaratio
:
agents
)
{
CoreOrg
t
=
new
CoreOrg
();
CoreOrg
t
=
new
CoreOrg
();
t
.
setCode
(
budgetDeclaratio
.
getDeptId
());
t
.
setCode
(
budgetDeclaratio
.
getDeptId
());
...
@@ -223,15 +223,61 @@ public class PoDeptService extends BaseService<PoDept>{
...
@@ -223,15 +223,61 @@ public class PoDeptService extends BaseService<PoDept>{
BudgtBase
ba
=
new
BudgtBase
();
BudgtBase
ba
=
new
BudgtBase
();
ba
.
setName
(
budgetDeclaratio
.
getName
());
ba
.
setName
(
budgetDeclaratio
.
getName
());
BudgtBase
bas
=
sqlManager
.
templateOne
(
ba
);
BudgtBase
bas
=
sqlManager
.
templateOne
(
ba
);
Pinyin4jUtils
pinyin
=
new
Pinyin4jUtils
();
if
(
bas
!=
null
)
{
if
(
bas
!=
null
)
{
budgetDeclaratio
.
setType
(
bas
.
getTypeId
().
toString
());
budgetDeclaratio
.
setType
(
bas
.
getTypeId
().
toString
());
}
else
{
}
else
{
budgetDeclaratio
.
setType
(
""
);
String
type
=
budgetDeclaratio
.
getType
();
/*if (condition) {
}*/
System
.
out
.
println
(
type
);
if
(
type
.
equals
(
"未指定类型"
))
{
budgetDeclaratio
.
setType
(
""
);
budgetDeclaratio
.
setState
(
"2"
);
}
else
{
BudgtType
by
=
new
BudgtType
();
by
.
setName
(
type
);
BudgtType
tt
=
sqlManager
.
templateOne
(
by
);
//插入项目名称
if
(
tt
==
null
)
{
tt
=
new
BudgtType
();
tt
.
setName
(
type
);
tt
.
setCode
(
UUIDUtil
.
uuid
());
tt
.
setOrgId
(
org
.
getId
().
toString
());
tt
.
setOrgName
(
org
.
getName
());
tt
.
setCreateTime
(
new
Date
());
sqlManager
.
insert
(
BudgtType
.
class
,
tt
,
true
);
bas
=
new
BudgtBase
();
bas
.
setName
(
budgetDeclaratio
.
getName
());
bas
.
setOrgId
(
org
.
getId
().
toString
());
bas
.
setOrgName
(
org
.
getName
());
bas
.
setTypeId
(
tt
.
getId
());
bas
.
setPinyin
(
pinyin
.
toPinYinLowercase
(
budgetDeclaratio
.
getName
()));
bas
.
setRange
(
budgetDeclaratio
.
getQuantity
());
bas
.
setCreateTime
(
new
Date
());
sqlManager
.
insert
(
BudgtBase
.
class
,
bas
,
true
);
budgetDeclaratio
.
setType
(
tt
.
getId
().
toString
());
}
else
{
bas
=
new
BudgtBase
();
bas
.
setName
(
budgetDeclaratio
.
getName
());
bas
.
setOrgId
(
org
.
getId
().
toString
());
bas
.
setOrgName
(
org
.
getName
());
bas
.
setTypeId
(
tt
.
getId
());
bas
.
setPinyin
(
pinyin
.
toPinYinLowercase
(
budgetDeclaratio
.
getName
()));
bas
.
setRange
(
budgetDeclaratio
.
getQuantity
());
bas
.
setCreateTime
(
new
Date
());
sqlManager
.
insert
(
BudgtBase
.
class
,
bas
,
true
);
budgetDeclaratio
.
setType
(
tt
.
getId
().
toString
());
}
budgetDeclaratio
.
setState
(
"3"
);
//budgetDeclaratio.setType("");
}
}
}
String
year
=
budgetDeclaratio
.
getYear
().
substring
(
0
,
4
);
String
year
=
budgetDeclaratio
.
getYear
().
substring
(
0
,
4
);
budgetDeclaratio
.
setYear
(
year
);
budgetDeclaratio
.
setYear
(
year
);
budgetDeclaratio
.
setState
(
"3"
);
budgetDeclaratio
.
setDtype
(
"1"
);
budgetDeclaratio
.
setDtype
(
"1"
);
if
(
budgetDeclaratio
.
getNumber
().
contains
(
"_加"
))
{
if
(
budgetDeclaratio
.
getNumber
().
contains
(
"_加"
))
{
...
@@ -253,12 +299,13 @@ public class PoDeptService extends BaseService<PoDept>{
...
@@ -253,12 +299,13 @@ public class PoDeptService extends BaseService<PoDept>{
}
}
budgetDeclaratio
.
setPhone
(
null
);
budgetDeclaratio
.
setPhone
(
null
);
sqlManager
.
insert
(
BudgetDeclaratio
.
class
,
budgetDeclaratio
);
sqlManager
.
insert
(
BudgetDeclaratio
.
class
,
budgetDeclaratio
);
//BudgtType ty = budgtTypeService.queryById(budget.getType());
//BudgtType ty = budgtTypeService.queryById(budget.getType());
//bu.setReplyQuota(budget.getBudget());
//bu.setReplyQuota(budget.getBudget());
if
(
bas
!=
null
)
{
if
(
bas
!=
null
)
{
//根据项目类型和名称获取项目信息
//根据项目类型和名称获取项目信息
BudgtBase
budgtBase
=
budgtBaseService
.
getBase
(
bas
.
getTypeId
(),
budgetDeclaratio
.
getName
());
//
BudgtBase budgtBase=budgtBaseService.getBase(bas.getTypeId(),budgetDeclaratio.getName());
bu
.
setRange
(
b
udgtBase
.
getRange
());
//这个是把项目的预算范围放入预算种
bu
.
setRange
(
b
as
.
getRange
());
//这个是把项目的预算范围放入预算种
// bu.setRange(ty.getOrgName());//这个是预算类型的预算范围放入预算种后期儿童的用这个
// bu.setRange(ty.getOrgName());//这个是预算类型的预算范围放入预算种后期儿童的用这个
bu
.
setTypeId
(
bas
.
getTypeId
());
bu
.
setTypeId
(
bas
.
getTypeId
());
...
@@ -284,6 +331,17 @@ public class PoDeptService extends BaseService<PoDept>{
...
@@ -284,6 +331,17 @@ public class PoDeptService extends BaseService<PoDept>{
budgetVerification
.
setImplementTime
(
new
Date
());
budgetVerification
.
setImplementTime
(
new
Date
());
budgetVerification
.
setUserId
(
user
.
getId
().
intValue
());
budgetVerification
.
setUserId
(
user
.
getId
().
intValue
());
budgetVerification
.
setUserName
(
user
.
getName
());
budgetVerification
.
setUserName
(
user
.
getName
());
BudgtType
type
=
new
BudgtType
();
type
.
setName
(
budgetVerification
.
getType
());
BudgtType
ty
=
sqlManager
.
templateOne
(
type
);
budgetVerification
.
setType
(
ty
.
getId
().
toString
());
if
(
budgetVerification
.
getChargeOff
()==
null
)
{
budgetVerification
.
setChargeOff
(
new
BigDecimal
(
"0"
));
}
if
(
budgetVerification
.
getExecute
()==
null
)
{
budgetVerification
.
setExecute
(
new
BigDecimal
(
"0"
));
}
// CoreOrg org = recordService.getOrg(user.getOrgId());
// CoreOrg org = recordService.getOrg(user.getOrgId());
CoreOrg
t
=
new
CoreOrg
();
CoreOrg
t
=
new
CoreOrg
();
t
.
setCode
(
budgetVerification
.
getDeptId
());
t
.
setCode
(
budgetVerification
.
getDeptId
());
...
@@ -293,27 +351,30 @@ public class PoDeptService extends BaseService<PoDept>{
...
@@ -293,27 +351,30 @@ public class PoDeptService extends BaseService<PoDept>{
Budget
bu
=
sqlManager
.
templateOne
(
budget
);
Budget
bu
=
sqlManager
.
templateOne
(
budget
);
if
(
bu
!=
null
)
{
if
(
bu
!=
null
)
{
budgetVerification
.
setBudgetId
(
bu
.
getId
());
budgetVerification
.
setBudgetId
(
bu
.
getId
());
budgetVerification
.
setType
(
bu
.
getTypeId
().
toString
());
}
else
{
continue
;
}
}
//budgetDeclaratio.setDeptName(org.getName());
//budgetDeclaratio.setDeptName(org.getName());
budgetVerification
.
setDeptId
(
org
.
getId
().
toString
());
budgetVerification
.
setDeptId
(
org
.
getId
().
toString
());
budgetVerification
.
setDeptName
(
org
.
getName
());
budgetVerification
.
setDeptName
(
org
.
getName
());
budgetVerification
.
setType
(
"1"
);
budgetVerification
.
setType
(
"1"
);
budgetVerification
.
setState
(
"3"
);
budgetVerification
.
setState
(
"3"
);
sqlManager
.
insert
(
BudgetVerification
.
class
,
budgetVerification
);
// budgetVerificationService.save(budgetVerification);
// budgetVerificationService.save(budgetVerification);
// Budget budget = budgetService.queryById(budgetVerification.getBudgetId());
// Budget budget = budgetService.queryById(budgetVerification.getBudgetId());
if
(
bu
!=
null
)
{
/*
if (bu!=null) {
BigDecimal replyQuota=bu.getReplyQuota();
BigDecimal replyQuota=bu.getReplyQuota();
if (budgetVerification.getChargeOff()!=null) {
if (budgetVerification.getChargeOff()!=null) {
replyQuota=replyQuota.subtract(budgetVerification.getChargeOff());
replyQuota=replyQuota.subtract(budgetVerification.getChargeOff());
budget
.
setReplyQuota
(
replyQuota
);
bu
.setReplyQuota(replyQuota);
sqlManager
.
updateTemplateById
(
Budget
.
class
,
bu
dget
);
sqlManager.updateTemplateById(Budget.class, bu);
}
}
}
}
*/
sqlManager
.
insert
(
BudgetVerification
.
class
,
budgetVerification
);
}
}
}
}
...
...
src/main/resources/excelTemplates/po/budget_declaratio.xml
View file @
04b621ca
...
@@ -15,6 +15,7 @@
...
@@ -15,6 +15,7 @@
<mapping
row=
"3"
col=
"6"
>
info.createTime
</mapping>
<mapping
row=
"3"
col=
"6"
>
info.createTime
</mapping>
<mapping
row=
"3"
col=
"7"
>
info.year
</mapping>
<mapping
row=
"3"
col=
"7"
>
info.year
</mapping>
<mapping
row=
"3"
col=
"8"
>
info.type
</mapping>
<mapping
row=
"3"
col=
"8"
>
info.type
</mapping>
<mapping
row=
"3"
col=
"9"
>
info.quantity
</mapping>
</section>
</section>
<loopbreakcondition>
<loopbreakcondition>
<rowcheck
offset=
"0"
>
<rowcheck
offset=
"0"
>
...
...
src/main/resources/excelTemplates/po/budget_verification.xml
View file @
04b621ca
...
@@ -14,6 +14,7 @@
...
@@ -14,6 +14,7 @@
<mapping
row=
"3"
col=
"5"
>
info.auditTime
</mapping>
<mapping
row=
"3"
col=
"5"
>
info.auditTime
</mapping>
<mapping
row=
"3"
col=
"6"
>
info.remaks
</mapping>
<mapping
row=
"3"
col=
"6"
>
info.remaks
</mapping>
<mapping
row=
"3"
col=
"7"
>
info.implementMatter
</mapping>
<mapping
row=
"3"
col=
"7"
>
info.implementMatter
</mapping>
<mapping
row=
"3"
col=
"7"
>
info.state
</mapping>
</section>
</section>
<loopbreakcondition>
<loopbreakcondition>
<rowcheck
offset=
"0"
>
<rowcheck
offset=
"0"
>
...
...
src/main/resources/excelTemplates/po/执行导入模板.xlsx
View file @
04b621ca
No preview for this file type
src/main/resources/excelTemplates/po/预算申报导入模板.xls
View file @
04b621ca
No preview for this file type
src/main/resources/static/js/dubget/budget/hxindex.js
View file @
04b621ca
...
@@ -46,11 +46,19 @@ layui.define([ 'form', 'laydate', 'table' ], function(exports) {
...
@@ -46,11 +46,19 @@ layui.define([ 'form', 'laydate', 'table' ], function(exports) {
field
:
'budget'
,
field
:
'budget'
,
title
:
'预算金额'
,
title
:
'预算金额'
,
templet
:
function
(
d
){
var
a
=
parseInt
(
d
.
budget
);
return
a
.
toLocaleString
();
},
},
},
{
{
field
:
'replyQuota'
,
field
:
'replyQuota'
,
title
:
'可执行额度'
,
title
:
'可执行额度'
,
templet
:
function
(
d
){
var
a
=
parseInt
(
d
.
replyQuota
);
return
a
.
toLocaleString
();
},
},
},
{
{
...
...
src/main/resources/static/js/dubget/budget/index.js
View file @
04b621ca
...
@@ -42,11 +42,19 @@ layui.define([ 'form', 'laydate', 'table' ], function(exports) {
...
@@ -42,11 +42,19 @@ layui.define([ 'form', 'laydate', 'table' ], function(exports) {
field
:
'budget'
,
field
:
'budget'
,
title
:
'预算金额'
,
title
:
'预算金额'
,
templet
:
function
(
d
){
var
a
=
parseInt
(
d
.
budget
);
return
a
.
toLocaleString
();
},
},
},
{
{
field
:
'replyQuota'
,
field
:
'replyQuota'
,
title
:
'可行额度'
,
title
:
'可行额度'
,
templet
:
function
(
d
){
var
a
=
parseInt
(
d
.
replyQuota
);
return
a
.
toLocaleString
();
},
},
},
{
{
...
@@ -54,7 +62,7 @@ layui.define([ 'form', 'laydate', 'table' ], function(exports) {
...
@@ -54,7 +62,7 @@ layui.define([ 'form', 'laydate', 'table' ], function(exports) {
title
:
'已执行额度'
,
title
:
'已执行额度'
,
templet
:
function
(
d
)
{
templet
:
function
(
d
)
{
return
d
.
budget
-
d
.
replyQuota
return
(
d
.
budget
-
d
.
replyQuota
).
toLocaleString
();
}
}
},
},
...
...
src/main/resources/static/js/dubget/budgetDeclaratio/cwcindex.js
View file @
04b621ca
...
@@ -51,6 +51,10 @@ layui.define([ 'form', 'laydate', 'table' ], function(exports) {
...
@@ -51,6 +51,10 @@ layui.define([ 'form', 'laydate', 'table' ], function(exports) {
field
:
'budget'
,
field
:
'budget'
,
title
:
'预算金额'
,
title
:
'预算金额'
,
templet
:
function
(
d
){
var
a
=
parseInt
(
d
.
budget
);
return
a
.
toLocaleString
();
},
},
},
{
{
...
@@ -120,14 +124,14 @@ layui.define([ 'form', 'laydate', 'table' ], function(exports) {
...
@@ -120,14 +124,14 @@ layui.define([ 'form', 'laydate', 'table' ], function(exports) {
if
(
obj
.
event
===
'view'
){
if
(
obj
.
event
===
'view'
){
var
url
=
"/dubget/budgetDeclaratio/view.do?id="
+
data
.
id
;
var
url
=
"/dubget/budgetDeclaratio/view.do?id="
+
data
.
id
;
Common
.
openDlg
(
url
,
"预算>"
+
data
.
type
+
">查看"
);
Common
.
openDlg
(
url
,
"预算>"
+
data
.
number
+
">查看"
);
}
else
if
(
obj
.
event
===
'edit'
){
}
else
if
(
obj
.
event
===
'edit'
){
var
url
=
"/dubget/budgetDeclaratio/reply.do?type=2&id="
+
data
.
id
;
var
url
=
"/dubget/budgetDeclaratio/reply.do?type=2&id="
+
data
.
id
;
if
(
data
.
type
==
""
)
{
if
(
data
.
type
==
""
)
{
alert
(
"无预算类型"
)
alert
(
"无预算类型"
)
}
else
{
}
else
{
Common
.
openDlg
(
url
,
"预算>"
+
data
.
type
+
">批复"
);
Common
.
openDlg
(
url
,
"预算>"
+
data
.
number
+
">批复"
);
}
}
...
...
src/main/resources/static/js/dubget/budgetDeclaratio/index.js
View file @
04b621ca
...
@@ -47,6 +47,10 @@ layui.define([ 'form', 'laydate', 'table' ], function(exports) {
...
@@ -47,6 +47,10 @@ layui.define([ 'form', 'laydate', 'table' ], function(exports) {
field
:
'budget'
,
field
:
'budget'
,
title
:
'预算金额'
,
title
:
'预算金额'
,
templet
:
function
(
d
){
var
a
=
parseInt
(
d
.
budget
);
return
a
.
toLocaleString
();
},
},
},
...
@@ -124,10 +128,10 @@ layui.define([ 'form', 'laydate', 'table' ], function(exports) {
...
@@ -124,10 +128,10 @@ layui.define([ 'form', 'laydate', 'table' ], function(exports) {
if
(
obj
.
event
===
'dit'
){
if
(
obj
.
event
===
'dit'
){
var
url
=
"/dubget/budgetDeclaratio/edit.do?id="
+
data
.
id
;
var
url
=
"/dubget/budgetDeclaratio/edit.do?id="
+
data
.
id
;
Common
.
openDlg
(
url
,
"预算>"
+
data
.
type
+
">编辑"
);
Common
.
openDlg
(
url
,
"预算>"
+
data
.
number
+
">编辑"
);
}
else
if
(
obj
.
event
===
'view'
)
{
}
else
if
(
obj
.
event
===
'view'
)
{
var
url
=
"/dubget/budgetDeclaratio/view.do?id="
+
data
.
id
;
var
url
=
"/dubget/budgetDeclaratio/view.do?id="
+
data
.
id
;
Common
.
openDlg
(
url
,
"预算>"
+
data
.
type
+
">查看"
);
Common
.
openDlg
(
url
,
"预算>"
+
data
.
number
+
">查看"
);
}
else
if
(
obj
.
event
===
'instList'
){
}
else
if
(
obj
.
event
===
'instList'
){
layer
.
open
({
layer
.
open
({
type
:
2
,
type
:
2
,
...
...
src/main/resources/static/js/dubget/budgetDeclaratio/indexZJ.js
View file @
04b621ca
...
@@ -47,6 +47,10 @@ layui.define([ 'form', 'laydate', 'table' ], function(exports) {
...
@@ -47,6 +47,10 @@ layui.define([ 'form', 'laydate', 'table' ], function(exports) {
field
:
'budget'
,
field
:
'budget'
,
title
:
'预算金额'
,
title
:
'预算金额'
,
templet
:
function
(
d
){
var
a
=
parseInt
(
d
.
budget
);
return
a
.
toLocaleString
();
},
},
},
...
@@ -125,11 +129,11 @@ layui.define([ 'form', 'laydate', 'table' ], function(exports) {
...
@@ -125,11 +129,11 @@ layui.define([ 'form', 'laydate', 'table' ], function(exports) {
if
(
obj
.
event
===
'dit'
){
if
(
obj
.
event
===
'dit'
){
var
url
=
"/dubget/budgetDeclaratio/edit.do?id="
+
data
.
id
;
var
url
=
"/dubget/budgetDeclaratio/edit.do?id="
+
data
.
id
;
Common
.
openDlg
(
url
,
"预算>"
+
data
.
type
+
">编辑"
);
Common
.
openDlg
(
url
,
"预算>"
+
data
.
number
+
">编辑"
);
}
else
if
(
obj
.
event
===
'view'
)
{
}
else
if
(
obj
.
event
===
'view'
)
{
var
url
=
"/dubget/budgetDeclaratio/view.do?id="
+
data
.
id
;
var
url
=
"/dubget/budgetDeclaratio/view.do?id="
+
data
.
id
;
Common
.
openDlg
(
url
,
"预算>"
+
data
.
type
+
">查看"
);
Common
.
openDlg
(
url
,
"预算>"
+
data
.
number
+
">查看"
);
}
else
if
(
obj
.
event
===
'instList'
){
}
else
if
(
obj
.
event
===
'instList'
){
layer
.
open
({
layer
.
open
({
type
:
2
,
type
:
2
,
...
...
src/main/resources/static/js/dubget/budgetDeclaratio/tjindex.js
View file @
04b621ca
...
@@ -90,6 +90,10 @@ layui.define([ 'form', 'laydate', 'table' ], function(exports) {
...
@@ -90,6 +90,10 @@ layui.define([ 'form', 'laydate', 'table' ], function(exports) {
{
{
field
:
'budget'
,
field
:
'budget'
,
title
:
'预算金额'
,
title
:
'预算金额'
,
templet
:
function
(
d
){
var
a
=
parseInt
(
d
.
budget
);
return
a
.
toLocaleString
();
},
},
},
{
{
field
:
'estimate'
,
field
:
'estimate'
,
...
...
src/main/resources/static/js/dubget/budgetDeclaratio/xgedit.js
View file @
04b621ca
...
@@ -11,6 +11,10 @@ layui.define([ 'form', 'laydate', 'table','budgetDeclaratioApi'], function(expor
...
@@ -11,6 +11,10 @@ layui.define([ 'form', 'laydate', 'table','budgetDeclaratioApi'], function(expor
//编辑修改按钮
//编辑修改按钮
$
(
"#updateButton"
).
click
(
function
(){
$
(
"#updateButton"
).
click
(
function
(){
$
(
this
).
attr
(
'disabled'
,
true
).
addClass
(
'layui-btn-disabled'
);
$
(
this
).
attr
(
'disabled'
,
true
).
addClass
(
'layui-btn-disabled'
);
debugger
;
if
(
!
$
(
"#range"
).
val
())
{
return
alert
(
"请选择预算范围"
)
}
$
.
post
(
"/dubget/budgetDeclaratio/xgupdate.json"
,{
id
:
$
(
"#id"
).
val
(),
type
:
$
(
"#type"
).
val
(),
range
:
$
(
"#range"
).
val
()},
function
(
result
){
$
.
post
(
"/dubget/budgetDeclaratio/xgupdate.json"
,{
id
:
$
(
"#id"
).
val
(),
type
:
$
(
"#type"
).
val
(),
range
:
$
(
"#range"
).
val
()},
function
(
result
){
//debugger;
//debugger;
Common
.
info
(
result
.
data
);
Common
.
info
(
result
.
data
);
...
...
src/main/resources/static/js/dubget/budgetDeclaratio/xgindex.js
View file @
04b621ca
...
@@ -29,6 +29,11 @@ layui.define([ 'form', 'laydate', 'table' ], function(exports) {
...
@@ -29,6 +29,11 @@ layui.define([ 'form', 'laydate', 'table' ], function(exports) {
},
},
{
{
field
:
'deptName'
,
title
:
'科室名称'
,
},
{
field
:
'number'
,
field
:
'number'
,
title
:
'预算编号'
,
title
:
'预算编号'
,
},
},
...
@@ -37,11 +42,7 @@ layui.define([ 'form', 'laydate', 'table' ], function(exports) {
...
@@ -37,11 +42,7 @@ layui.define([ 'form', 'laydate', 'table' ], function(exports) {
field
:
'typename'
,
field
:
'typename'
,
title
:
'预算类型'
,
title
:
'预算类型'
,
},
},
{
field
:
'deptName'
,
title
:
'科室名称'
,
},
{
{
field
:
'name'
,
field
:
'name'
,
...
@@ -51,6 +52,10 @@ layui.define([ 'form', 'laydate', 'table' ], function(exports) {
...
@@ -51,6 +52,10 @@ layui.define([ 'form', 'laydate', 'table' ], function(exports) {
field
:
'budget'
,
field
:
'budget'
,
title
:
'预算金额'
,
title
:
'预算金额'
,
templet
:
function
(
d
){
var
a
=
parseInt
(
d
.
budget
);
return
a
.
toLocaleString
();
},
},
},
{
{
...
...
src/main/resources/static/js/dubget/budgetDeclaratio/yldindex.js
View file @
04b621ca
...
@@ -51,6 +51,10 @@ layui.define([ 'form', 'laydate', 'table' ], function(exports) {
...
@@ -51,6 +51,10 @@ layui.define([ 'form', 'laydate', 'table' ], function(exports) {
field
:
'budget'
,
field
:
'budget'
,
title
:
'预算金额'
,
title
:
'预算金额'
,
templet
:
function
(
d
){
var
a
=
parseInt
(
d
.
budget
);
return
a
.
toLocaleString
();
},
},
},
{
{
...
...
src/main/resources/static/js/dubget/budgetVerification/audit.js
View file @
04b621ca
...
@@ -28,7 +28,7 @@ layui.define([ 'form', 'laydate', 'table','budgetVerificationApi'], function(exp
...
@@ -28,7 +28,7 @@ layui.define([ 'form', 'laydate', 'table','budgetVerificationApi'], function(exp
$
(
this
).
attr
(
'disabled'
,
true
).
addClass
(
'layui-btn-disabled'
);
$
(
this
).
attr
(
'disabled'
,
true
).
addClass
(
'layui-btn-disabled'
);
budgetVerificationApi
.
hxupdateBudgetVerification
(
$
(
'#updateForm'
),
function
(){
budgetVerificationApi
.
hxupdateBudgetVerification
(
$
(
'#updateForm'
),
function
(){
parent
.
window
.
dataReload
();
parent
.
window
.
dataReload
();
Common
.
info
(
"
核销
成功"
);
Common
.
info
(
"
退回
成功"
);
Lib
.
closeFrame
();
Lib
.
closeFrame
();
});
});
});
});
...
...
src/main/resources/static/js/dubget/budgetVerification/index.js
View file @
04b621ca
...
@@ -46,11 +46,19 @@ layui.define([ 'form', 'laydate', 'table' ], function(exports) {
...
@@ -46,11 +46,19 @@ layui.define([ 'form', 'laydate', 'table' ], function(exports) {
field
:
'execute'
,
field
:
'execute'
,
title
:
'执行金额'
,
title
:
'执行金额'
,
templet
:
function
(
d
){
var
a
=
parseInt
(
d
.
execute
);
return
a
.
toLocaleString
();
},
},
},
{
{
field
:
'chargeOff'
,
field
:
'chargeOff'
,
title
:
'核销金额'
,
title
:
'核销金额'
,
templet
:
function
(
d
){
var
a
=
parseInt
(
d
.
chargeOff
);
return
a
.
toLocaleString
();
},
},
},
{
{
...
...
src/main/resources/static/js/dubget/budgetVerification/tjindex.js
View file @
04b621ca
...
@@ -45,16 +45,28 @@ layui.define([ 'form', 'laydate', 'table' ], function(exports) {
...
@@ -45,16 +45,28 @@ layui.define([ 'form', 'laydate', 'table' ], function(exports) {
field
:
'execute'
,
field
:
'execute'
,
title
:
'执行金额'
,
title
:
'执行金额'
,
templet
:
function
(
d
){
var
a
=
parseInt
(
d
.
execute
);
return
a
.
toLocaleString
();
},
},
},
{
{
field
:
'chargeOff'
,
field
:
'chargeOff'
,
title
:
'核销金额'
,
title
:
'核销金额'
,
templet
:
function
(
d
){
var
a
=
parseInt
(
d
.
chargeOff
);
return
a
.
toLocaleString
();
},
},
},
{
{
field
:
'replyQuota'
,
field
:
'replyQuota'
,
title
:
'剩余可执行金额'
,
title
:
'剩余可执行金额'
,
templet
:
function
(
d
){
var
a
=
parseInt
(
d
.
replyQuota
);
return
a
.
toLocaleString
();
},
},
},
{
{
...
...
src/main/resources/static/js/dubget/budgetVerification/viewindex.js
View file @
04b621ca
...
@@ -45,11 +45,19 @@ layui.define([ 'form', 'laydate', 'table' ], function(exports) {
...
@@ -45,11 +45,19 @@ layui.define([ 'form', 'laydate', 'table' ], function(exports) {
field
:
'execute'
,
field
:
'execute'
,
title
:
'执行金额'
,
title
:
'执行金额'
,
templet
:
function
(
d
){
var
a
=
parseInt
(
d
.
execute
);
return
a
.
toLocaleString
();
},
},
},
{
{
field
:
'chargeOff'
,
field
:
'chargeOff'
,
title
:
'核销金额'
,
title
:
'核销金额'
,
templet
:
function
(
d
){
var
a
=
parseInt
(
d
.
chargeOff
);
return
a
.
toLocaleString
();
},
},
},
{
{
...
...
src/main/resources/static/js/dubget/budgetVerification/yldindex.js
View file @
04b621ca
...
@@ -45,11 +45,19 @@ layui.define([ 'form', 'laydate', 'table' ], function(exports) {
...
@@ -45,11 +45,19 @@ layui.define([ 'form', 'laydate', 'table' ], function(exports) {
field
:
'execute'
,
field
:
'execute'
,
title
:
'执行金额'
,
title
:
'执行金额'
,
templet
:
function
(
d
){
var
a
=
parseInt
(
d
.
execute
);
return
a
.
toLocaleString
();
},
},
},
{
{
field
:
'chargeOff'
,
field
:
'chargeOff'
,
title
:
'核销金额'
,
title
:
'核销金额'
,
templet
:
function
(
d
){
var
a
=
parseInt
(
d
.
chargeOff
);
return
a
.
toLocaleString
();
},
},
},
{
{
...
...
src/main/resources/static/js/re/record/index.js
View file @
04b621ca
...
@@ -93,7 +93,7 @@ layui.define([ 'form', 'laydate', 'table' ], function(exports) {
...
@@ -93,7 +93,7 @@ layui.define([ 'form', 'laydate', 'table' ], function(exports) {
if
(
obj
.
event
===
'view'
){
if
(
obj
.
event
===
'view'
){
debugger
;
debugger
;
var
url
=
data
.
url
+
"?record="
+
data
.
id
;
var
url
=
data
.
url
+
"?record="
+
data
.
id
;
Common
.
openDlg
(
url
,
"记录>
"
+
data
.
type
+
"
>查看"
);
Common
.
openDlg
(
url
,
"记录>
操作记录
>查看"
);
}
}
})
})
},
},
...
...
src/main/resources/templates/dubget/budgetDeclaratio/add.html
View file @
04b621ca
...
@@ -62,7 +62,7 @@
...
@@ -62,7 +62,7 @@
<div
class=
"layui-inline"
>
<div
class=
"layui-inline"
>
<label
class=
"layui-form-label"
>
年度
</label>
<label
class=
"layui-form-label"
>
年度
</label>
<div
class=
"layui-input-inline"
>
<div
class=
"layui-input-inline"
>
<input
type=
"text"
id=
"year"
name=
"year"
class=
"layui-input"
>
<input
type=
"text"
id=
"year"
name=
"year"
class=
"layui-input"
readonly=
"readonly"
>
</div>
</div>
</div>
</div>
<div
class=
"layui-inline"
>
<div
class=
"layui-inline"
>
...
@@ -92,11 +92,14 @@ layui.use(['add','laydate'], function(){
...
@@ -92,11 +92,14 @@ layui.use(['add','laydate'], function(){
var
laydate
=
layui
.
laydate
;
var
laydate
=
layui
.
laydate
;
//执行一个laydate实例
//执行一个laydate实例
laydate
.
render
({
/*
laydate.render({
elem: '#year' //指定元素
elem: '#year' //指定元素
,type:'year'
,type:'year'
,trigger: 'click' //采用click弹出
,trigger: 'click' //采用click弹出
});
}); */
var
date
=
new
Date
();
var
year
=
date
.
getFullYear
();
$
(
"#year"
).
val
(
year
+
1
)
var
oTxt
=
document
.
getElementById
(
'graduateCollege'
);
var
oTxt
=
document
.
getElementById
(
'graduateCollege'
);
var
oList
=
document
.
getElementById
(
'list'
);
var
oList
=
document
.
getElementById
(
'list'
);
...
@@ -203,5 +206,8 @@ layui.use(['add','laydate'], function(){
...
@@ -203,5 +206,8 @@ layui.use(['add','laydate'], function(){
var
budgetDeclaratioAdd
=
layui
.
add
var
budgetDeclaratioAdd
=
layui
.
add
budgetDeclaratioAdd
.
init
();
budgetDeclaratioAdd
.
init
();
});
});
</script>
</script>
src/main/resources/templates/dubget/budgetDeclaratio/addZJ.html
View file @
04b621ca
...
@@ -63,7 +63,7 @@
...
@@ -63,7 +63,7 @@
<label
class=
"layui-form-label"
>
年度
</label>
<label
class=
"layui-form-label"
>
年度
</label>
<div
class=
"layui-input-inline"
>
<div
class=
"layui-input-inline"
>
<input
type=
"text"
id=
"year"
name=
"year"
class=
"layui-input"
>
<input
type=
"text"
id=
"year"
name=
"year"
class=
"layui-input"
readonly=
"readonly"
>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -86,11 +86,14 @@ layui.use(['addZJ','laydate'], function(){
...
@@ -86,11 +86,14 @@ layui.use(['addZJ','laydate'], function(){
var
laydate
=
layui
.
laydate
;
var
laydate
=
layui
.
laydate
;
//执行一个laydate实例
//执行一个laydate实例
laydate
.
render
({
/*
laydate.render({
elem: '#year' //指定元素
elem: '#year' //指定元素
,type:'year'
,type:'year'
,trigger: 'click' //采用click弹出
,trigger: 'click' //采用click弹出
});
}); */
var
date
=
new
Date
();
var
year
=
date
.
getFullYear
();
$
(
"#year"
).
val
(
year
)
var
oTxt
=
document
.
getElementById
(
'graduateCollege'
);
var
oTxt
=
document
.
getElementById
(
'graduateCollege'
);
var
oList
=
document
.
getElementById
(
'list'
);
var
oList
=
document
.
getElementById
(
'list'
);
...
...
src/main/resources/templates/dubget/budgetDeclaratio/edit.html
View file @
04b621ca
...
@@ -51,7 +51,7 @@
...
@@ -51,7 +51,7 @@
<div
class=
"layui-inline"
>
<div
class=
"layui-inline"
>
<label
class=
"layui-form-label"
>
年度
</label>
<label
class=
"layui-form-label"
>
年度
</label>
<div
class=
"layui-input-inline"
>
<div
class=
"layui-input-inline"
>
<input
type=
"text"
id=
"year"
name=
"year"
value=
"${budgetDeclaratio.year}"
class=
"layui-input
"
>
<input
type=
"text"
id=
"year"
name=
"year"
value=
"${budgetDeclaratio.year}"
readonly=
"readonly
"
>
</div>
</div>
</div>
</div>
</div>
</div>
...
...
src/main/resources/templates/dubget/budgetVerification/add.html
View file @
04b621ca
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
<input
type=
"text"
id=
"execute"
name=
"execute"
class=
"layui-input"
>
<input
type=
"text"
id=
"execute"
name=
"execute"
class=
"layui-input"
>
</div>
</div>
<div
class=
"layui-inline"
>
<div
class=
"layui-inline"
>
<input
autocomplete=
"off"
class=
"layui-input"
value=
"不超过${budget.replyQuota}
"
style=
"border: 0;color: red; "
>
<input
autocomplete=
"off"
id=
"aa"
class=
"layui-input"
value=
"
"
style=
"border: 0;color: red; "
>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -54,6 +54,8 @@ layui.use(['add'], function(){
...
@@ -54,6 +54,8 @@ layui.use(['add'], function(){
var
budgetVerificationAdd
=
layui
.
add
var
budgetVerificationAdd
=
layui
.
add
budgetVerificationAdd
.
init
();
budgetVerificationAdd
.
init
();
$
(
"#aa"
).
val
(
"不超过"
+
parseInt
(
"${budget.replyQuota}"
).
toLocaleString
());
//输入框的值改变时触发
//输入框的值改变时触发
$
(
"#execute"
).
on
(
"input"
,
function
(
e
){
$
(
"#execute"
).
on
(
"input"
,
function
(
e
){
if
(
parseInt
(
e
.
delegateTarget
.
value
)
>
parseInt
(
"${budget.replyQuota}"
)){
if
(
parseInt
(
e
.
delegateTarget
.
value
)
>
parseInt
(
"${budget.replyQuota}"
)){
...
...
src/main/resources/templates/dubget/budgetVerification/edit.html
View file @
04b621ca
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
<input
type=
"text"
id=
"execute"
name=
"execute"
value=
"${budgetVerification.execute}"
class=
"layui-input"
>
<input
type=
"text"
id=
"execute"
name=
"execute"
value=
"${budgetVerification.execute}"
class=
"layui-input"
>
</div>
</div>
<div
class=
"layui-inline"
>
<div
class=
"layui-inline"
>
<input
autocomplete=
"off"
class=
"layui-input"
value=
"不超过${budget.replyQuota+budgetVerification.execute}
"
style=
"border: 0;color: red; "
>
<input
autocomplete=
"off"
id=
"aa"
class=
"layui-input"
value=
"
"
style=
"border: 0;color: red; "
>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -46,6 +46,7 @@
...
@@ -46,6 +46,7 @@
<script>
<script>
layui
.
use
([
'edit'
],
function
(){
layui
.
use
([
'edit'
],
function
(){
var
budgetVerificationEdit
=
layui
.
edit
var
budgetVerificationEdit
=
layui
.
edit
$
(
"#aa"
).
val
(
"不超过"
+
parseInt
(
"${budget.replyQuota+budgetVerification.execute}"
).
toLocaleString
());
budgetVerificationEdit
.
init
();
budgetVerificationEdit
.
init
();
});
});
</script>
</script>
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