Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
T
topsun-bpm
Project
Project
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
鲁鑫
topsun-bpm
Commits
0e305d37
Commit
0e305d37
authored
Apr 11, 2024
by
刘学辉
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
物料主数据状态切换的调整
parent
2efa6cf6
Hide whitespace changes
Inline
Side-by-side
Showing
30 changed files
with
239 additions
and
187 deletions
+239
-187
nonProdApplyCost.js
...in/webapp/biz/topsun/sap/nonProdApply/nonProdApplyCost.js
+2
-4
nonProdApplyCost.jsp
...n/webapp/biz/topsun/sap/nonProdApply/nonProdApplyCost.jsp
+1
-3
nonProdApplyDetail.js
.../webapp/biz/topsun/sap/nonProdApply/nonProdApplyDetail.js
+10
-0
nonProdApplyDetail.jsp
...webapp/biz/topsun/sap/nonProdApply/nonProdApplyDetail.jsp
+5
-1
nonProdApplyFinancial.js
...bapp/biz/topsun/sap/nonProdApply/nonProdApplyFinancial.js
+2
-4
nonProdApplyFinancial.jsp
...app/biz/topsun/sap/nonProdApply/nonProdApplyFinancial.jsp
+1
-3
nonProdApplyList.js
...in/webapp/biz/topsun/sap/nonProdApply/nonProdApplyList.js
+24
-4
nonProdApplyMRP.js
...ain/webapp/biz/topsun/sap/nonProdApply/nonProdApplyMRP.js
+2
-4
nonProdApplyMRP.jsp
...in/webapp/biz/topsun/sap/nonProdApply/nonProdApplyMRP.jsp
+0
-3
nonProdApplyMass.js
...in/webapp/biz/topsun/sap/nonProdApply/nonProdApplyMass.js
+2
-4
nonProdApplyMass.jsp
...n/webapp/biz/topsun/sap/nonProdApply/nonProdApplyMass.jsp
+0
-3
nonProdApplyNext.js
...in/webapp/biz/topsun/sap/nonProdApply/nonProdApplyNext.js
+65
-69
nonProdApplyNext.jsp
...n/webapp/biz/topsun/sap/nonProdApply/nonProdApplyNext.jsp
+27
-20
nonProdApplyProduce.js
...webapp/biz/topsun/sap/nonProdApply/nonProdApplyProduce.js
+2
-4
nonProdApplyProduce.jsp
...ebapp/biz/topsun/sap/nonProdApply/nonProdApplyProduce.jsp
+3
-3
nonProdApplyPurchase.js
...ebapp/biz/topsun/sap/nonProdApply/nonProdApplyPurchase.js
+3
-6
nonProdApplyPurchase.jsp
...bapp/biz/topsun/sap/nonProdApply/nonProdApplyPurchase.jsp
+0
-3
nonProdApplySale.js
...in/webapp/biz/topsun/sap/nonProdApply/nonProdApplySale.js
+3
-5
nonProdApplySale.jsp
...n/webapp/biz/topsun/sap/nonProdApply/nonProdApplySale.jsp
+0
-3
nonProdApplyStore.js
...n/webapp/biz/topsun/sap/nonProdApply/nonProdApplyStore.js
+3
-5
nonProdApplyStore.jsp
.../webapp/biz/topsun/sap/nonProdApply/nonProdApplyStore.jsp
+0
-3
nonProdApplyWarehouse.js
...bapp/biz/topsun/sap/nonProdApply/nonProdApplyWarehouse.js
+13
-7
nonProdApplyWarehouse.jsp
...app/biz/topsun/sap/nonProdApply/nonProdApplyWarehouse.jsp
+5
-8
suppliersDataDetail.js
...in/webapp/biz/topsun/sap/suppliers/suppliersDataDetail.js
+22
-4
suppliersDataDetail.jsp
...n/webapp/biz/topsun/sap/suppliers/suppliersDataDetail.jsp
+7
-4
NonProdApplyApplicationImpl.java
...odApply/application/impl/NonProdApplyApplicationImpl.java
+4
-0
NonProdApplyDeptApplicationImpl.java
...ply/application/impl/NonProdApplyDeptApplicationImpl.java
+12
-5
NonProdApplyController.java
...n/sap/nonProdApply/controller/NonProdApplyController.java
+2
-1
NonProdApplyNextController.java
...p/nonProdApply/controller/NonProdApplyNextController.java
+14
-3
NonProdApplyBaseInfo.java
.../topsun/sap/nonProdApply/domain/NonProdApplyBaseInfo.java
+5
-1
No files found.
topsun-xt/src/main/webapp/biz/topsun/sap/nonProdApply/nonProdApplyCost.js
View file @
0e305d37
...
@@ -24,7 +24,6 @@ function initializate() {
...
@@ -24,7 +24,6 @@ function initializate() {
$
(
"#auditForm"
).
show
();
$
(
"#auditForm"
).
show
();
}
else
{
}
else
{
$
(
"#buttonBox"
).
show
();
$
(
"#buttonBox"
).
show
();
$
(
"#showChart"
).
remove
();
}
}
break
;
break
;
case
'1'
:
//完成/审核
case
'1'
:
//完成/审核
...
@@ -36,7 +35,6 @@ function initializate() {
...
@@ -36,7 +35,6 @@ function initializate() {
case
'3'
:
//被驳回
case
'3'
:
//被驳回
showRejectCauseBox
();
showRejectCauseBox
();
$
(
"#buttonBox"
).
show
();
$
(
"#buttonBox"
).
show
();
$
(
"#showChart"
).
remove
();
break
;
break
;
default
:
//其他/详情
default
:
//其他/详情
$
(
"#buttonBox"
).
show
();
$
(
"#buttonBox"
).
show
();
...
@@ -175,13 +173,13 @@ function loadGrid() {
...
@@ -175,13 +173,13 @@ function loadGrid() {
* @returns {boolean}
* @returns {boolean}
*/
*/
function
saveForm
(
status
)
{
function
saveForm
(
status
)
{
$
(
"#active"
).
val
(
status
)
//
$("#active").val(status)
//alert($("#businessCode").val());
//alert($("#businessCode").val());
let
extendedData
=
getExtendedData
();
let
extendedData
=
getExtendedData
();
if
(
!
extendedData
)
return
false
;
if
(
!
extendedData
)
return
false
;
var
_self
=
this
;
var
_self
=
this
;
$
(
'#submitForm'
).
ajaxSubmit
({
$
(
'#submitForm'
).
ajaxSubmit
({
url
:
web_app
.
name
+
'/sapNonProdApplyNext/saveSapNonProdApplyDept.ajax
'
,
url
:
web_app
.
name
+
'/sapNonProdApplyNext/saveSapNonProdApplyDept.ajax
?opstatus='
+
status
,
param
:
extendedData
,
param
:
extendedData
,
success
:
function
(
data
)
{
success
:
function
(
data
)
{
$
(
"#applyDeptId"
).
val
(
data
.
applyDeptId
);
$
(
"#applyDeptId"
).
val
(
data
.
applyDeptId
);
...
...
topsun-xt/src/main/webapp/biz/topsun/sap/nonProdApply/nonProdApplyCost.jsp
View file @
0e305d37
...
@@ -26,9 +26,7 @@
...
@@ -26,9 +26,7 @@
<button
id=
"back"
title=
""
type=
"button"
onclick=
"clearForm()"
class=
"btn btn-gray"
><i
<button
id=
"back"
title=
""
type=
"button"
onclick=
"clearForm()"
class=
"btn btn-gray"
><i
class=
"fa fa-reply"
></i>
撤销
class=
"fa fa-reply"
></i>
撤销
</button>
</button>
<button
id=
"showChart"
title=
""
type=
"button"
onclick=
"distributeForm()"
class=
"btn btn-gray"
><i
class=
"fa fa-sitemap"
></i>
分发
</button>
</div>
</div>
<br/>
<br/>
...
...
topsun-xt/src/main/webapp/biz/topsun/sap/nonProdApply/nonProdApplyDetail.js
View file @
0e305d37
...
@@ -5,6 +5,13 @@ $(document).ready(function () {
...
@@ -5,6 +5,13 @@ $(document).ready(function () {
bindEvent
();
bindEvent
();
});
});
function
initialize
(){
function
initialize
(){
var
mainFileTable
=
$
(
'#nonProApplyInfoList'
).
fileList
();
mainFileTable
.
find
(
'table'
).
css
({
borderTopWidth
:
0
});
$
(
'#nonProApplyInfoList'
).
fileList
({
bizId
:
$
(
"#attbizId"
).
val
()
});
let
isDetailPage
=
(
$
(
"#isDetailPage"
).
val
()
===
"true"
);
let
isDetailPage
=
(
$
(
"#isDetailPage"
).
val
()
===
"true"
);
if
(
isDetailPage
)
{
if
(
isDetailPage
)
{
$
(
"#jobPageTop"
).
hide
();
$
(
"#jobPageTop"
).
hide
();
...
@@ -43,6 +50,9 @@ function initialize(){
...
@@ -43,6 +50,9 @@ function initialize(){
*/
*/
function
setId
(
id
)
{
function
setId
(
id
)
{
$
(
"#id"
).
val
(
id
);
$
(
"#id"
).
val
(
id
);
$
(
'#nonProApplyInfoList'
).
fileList
({
bizId
:
id
});
}
}
/**
/**
...
...
topsun-xt/src/main/webapp/biz/topsun/sap/nonProdApply/nonProdApplyDetail.jsp
View file @
0e305d37
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
<script
type=
"text/javascript"
>
<script
type=
"text/javascript"
>
var
applyType
=
"${applyType}"
;
var
applyType
=
"${applyType}"
;
</script>
</script>
<x:base
include=
"layout,dialog,grid,tree,combox,commonTree,date"
/>
<x:base
include=
"layout,dialog,grid,tree,combox,commonTree,date
,attachment
"
/>
<x:script
src=
'/biz/topsun/sap/nonProdApply/nonProdApplyDetail.js'
/>
<x:script
src=
'/biz/topsun/sap/nonProdApply/nonProdApplyDetail.js'
/>
</head>
</head>
<body>
<body>
...
@@ -24,6 +24,7 @@
...
@@ -24,6 +24,7 @@
<x:hidden
name=
"id"
/>
<x:hidden
name=
"id"
/>
<%-- <x:hidden name="billCode"/>--%>
<%-- <x:hidden name="billCode"/>--%>
<%-- <x:hidden name="fillinDate" type="datetime"/>--%>
<%-- <x:hidden name="fillinDate" type="datetime"/>--%>
<x:hidden
name=
"attbizId"
/>
<x:hidden
name=
"sourceId"
/>
<x:hidden
name=
"sourceId"
/>
<x:hidden
name=
"kind"
/>
<x:hidden
name=
"kind"
/>
<x:hidden
name=
"applyType"
/>
<x:hidden
name=
"applyType"
/>
...
@@ -88,6 +89,9 @@
...
@@ -88,6 +89,9 @@
<div
class=
"hg-form-row"
>
<div
class=
"hg-form-row"
>
<x:textareaC
rows=
"3"
name=
"textDescription"
label=
"文本说明"
labelCol=
"1"
fieldCol=
"11"
/>
<x:textareaC
rows=
"3"
name=
"textDescription"
label=
"文本说明"
labelCol=
"1"
fieldCol=
"11"
/>
</div>
</div>
<div
style=
"padding-top: 15px;"
>
<x:fileList
bizCode=
"nonProApplyInfo"
bizId=
"attbizId"
id=
"nonProApplyInfoList"
title=
"上传附件"
/>
</div>
</div>
</div>
...
...
topsun-xt/src/main/webapp/biz/topsun/sap/nonProdApply/nonProdApplyFinancial.js
View file @
0e305d37
...
@@ -28,7 +28,6 @@ function initializate() {
...
@@ -28,7 +28,6 @@ function initializate() {
$
(
"#auditForm"
).
show
();
$
(
"#auditForm"
).
show
();
}
else
{
}
else
{
$
(
"#buttonBox"
).
show
();
$
(
"#buttonBox"
).
show
();
$
(
"#showChart"
).
remove
();
}
}
break
;
break
;
case
'1'
:
//完成/审核
case
'1'
:
//完成/审核
...
@@ -40,7 +39,6 @@ function initializate() {
...
@@ -40,7 +39,6 @@ function initializate() {
case
'3'
:
//被驳回
case
'3'
:
//被驳回
showRejectCauseBox
();
showRejectCauseBox
();
$
(
"#buttonBox"
).
show
();
$
(
"#buttonBox"
).
show
();
$
(
"#showChart"
).
remove
();
break
;
break
;
default
:
//其他/详情
default
:
//其他/详情
$
(
"#buttonBox"
).
show
();
$
(
"#buttonBox"
).
show
();
...
@@ -191,13 +189,13 @@ function bindEvent(){
...
@@ -191,13 +189,13 @@ function bindEvent(){
* @returns {boolean}
* @returns {boolean}
*/
*/
function
saveForm
(
status
)
{
function
saveForm
(
status
)
{
$
(
"#active"
).
val
(
status
)
//
$("#active").val(status)
// alert($("#businessCode").val());
// alert($("#businessCode").val());
let
extendedData
=
getExtendedData
();
let
extendedData
=
getExtendedData
();
if
(
!
extendedData
)
return
false
;
if
(
!
extendedData
)
return
false
;
var
_self
=
this
;
var
_self
=
this
;
$
(
'#submitForm'
).
ajaxSubmit
({
$
(
'#submitForm'
).
ajaxSubmit
({
url
:
web_app
.
name
+
'/sapNonProdApplyNext/saveSapNonProdApplyDept.ajax
'
,
url
:
web_app
.
name
+
'/sapNonProdApplyNext/saveSapNonProdApplyDept.ajax
?opstatus='
+
status
,
param
:
extendedData
,
param
:
extendedData
,
success
:
function
(
data
)
{
success
:
function
(
data
)
{
$
(
"#applyDeptId"
).
val
(
data
.
applyDeptId
);
$
(
"#applyDeptId"
).
val
(
data
.
applyDeptId
);
...
...
topsun-xt/src/main/webapp/biz/topsun/sap/nonProdApply/nonProdApplyFinancial.jsp
View file @
0e305d37
...
@@ -26,9 +26,7 @@
...
@@ -26,9 +26,7 @@
<button
id=
"back"
title=
""
type=
"button"
onclick=
"clearForm()"
class=
"btn btn-gray"
><i
<button
id=
"back"
title=
""
type=
"button"
onclick=
"clearForm()"
class=
"btn btn-gray"
><i
class=
"fa fa-reply"
></i>
撤销
class=
"fa fa-reply"
></i>
撤销
</button>
</button>
<button
id=
"showChart"
title=
""
type=
"button"
onclick=
"distributeForm()"
class=
"btn btn-gray"
><i
class=
"fa fa-sitemap"
></i>
分发
</button>
</div>
</div>
<br/>
<br/>
...
...
topsun-xt/src/main/webapp/biz/topsun/sap/nonProdApply/nonProdApplyList.js
View file @
0e305d37
...
@@ -87,7 +87,21 @@ function loadNonProdApplyListGrid() {
...
@@ -87,7 +87,21 @@ function loadNonProdApplyListGrid() {
}
}
},
},
{
display
:
"物料/产品编码"
,
name
:
"matnr"
,
width
:
120
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"物料/产品编码"
,
name
:
"matnr"
,
width
:
120
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"维护类型"
,
name
:
"maintenanceTypeTextView"
,
width
:
100
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"维护类型"
,
name
:
"maintenanceTypeTextView"
,
width
:
130
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
,
render
:
function
(
item
){
var
result
=
item
.
maintenanceTypeTextView
+
"-待处理基本信息"
;
if
(
item
.
distribute
==
"1"
){
result
=
item
.
maintenanceTypeTextView
+
"-待分发"
;
}
if
(
item
.
distribute
==
"2"
){
result
=
item
.
maintenanceTypeTextView
+
"-待业务处理"
;
}
if
(
item
.
distribute
==
"3"
){
result
=
item
.
maintenanceTypeTextView
+
"-已办结"
;
}
return
result
;
}
},
{
display
:
"批准人"
,
name
:
"approver"
,
width
:
100
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"批准人"
,
name
:
"approver"
,
width
:
100
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"批准日期"
,
name
:
"approvalDate"
,
width
:
140
,
minWidth
:
60
,
type
:
"date"
,
align
:
"left"
},
{
display
:
"批准日期"
,
name
:
"approvalDate"
,
width
:
140
,
minWidth
:
60
,
type
:
"date"
,
align
:
"left"
},
{
display
:
"通用品名"
,
name
:
"genericName"
,
width
:
200
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"通用品名"
,
name
:
"genericName"
,
width
:
200
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
...
@@ -102,15 +116,21 @@ function loadNonProdApplyListGrid() {
...
@@ -102,15 +116,21 @@ function loadNonProdApplyListGrid() {
{
display
:
"物品属性"
,
name
:
"itemAttributesTextView"
,
width
:
140
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"物品属性"
,
name
:
"itemAttributesTextView"
,
width
:
140
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"业务用途"
,
name
:
"businessUsageTextView"
,
width
:
300
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"业务用途"
,
name
:
"businessUsageTextView"
,
width
:
300
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"文本说明"
,
name
:
"textDescription"
,
width
:
140
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"文本说明"
,
name
:
"textDescription"
,
width
:
140
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
},
{
display
:
"是否分发"
,
name
:
"distribute"
,
width
:
80
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
,
/*
{display: "是否分发", name: "distribute", width: 80, minWidth: 60, type: "string", align: "left",
render:function(item){
render:function(item){
var
result
=
"
未分发
"
;
var result = "
待处理
";
if (item.distribute == "1"){
if (item.distribute == "1"){
result="待分发";
}
if (item.distribute == "2"){
result="已分发";
result="已分发";
}
}
if (item.distribute == "3"){
result="已办结";
}
return result;
return result;
}
}
},
},
*/
],
],
dataAction
:
"server"
,
dataAction
:
"server"
,
url
:
web_app
.
name
+
'/sapNonProdApply/slicedNonProdApplyList.ajax'
,
url
:
web_app
.
name
+
'/sapNonProdApply/slicedNonProdApplyList.ajax'
,
...
...
topsun-xt/src/main/webapp/biz/topsun/sap/nonProdApply/nonProdApplyMRP.js
View file @
0e305d37
...
@@ -23,7 +23,6 @@ function initializate() {
...
@@ -23,7 +23,6 @@ function initializate() {
$
(
"#auditForm"
).
show
();
$
(
"#auditForm"
).
show
();
}
else
{
}
else
{
$
(
"#buttonBox"
).
show
();
$
(
"#buttonBox"
).
show
();
$
(
"#showChart"
).
remove
();
}
}
break
;
break
;
case
'1'
:
//完成/审核
case
'1'
:
//完成/审核
...
@@ -35,7 +34,6 @@ function initializate() {
...
@@ -35,7 +34,6 @@ function initializate() {
case
'3'
:
//被驳回
case
'3'
:
//被驳回
showRejectCauseBox
();
showRejectCauseBox
();
$
(
"#buttonBox"
).
show
();
$
(
"#buttonBox"
).
show
();
$
(
"#showChart"
).
remove
();
break
;
break
;
default
:
//其他/详情
default
:
//其他/详情
$
(
"#buttonBox"
).
show
();
$
(
"#buttonBox"
).
show
();
...
@@ -228,12 +226,12 @@ function bindEvent(){
...
@@ -228,12 +226,12 @@ function bindEvent(){
*/
*/
function
saveForm
(
status
)
{
function
saveForm
(
status
)
{
// alert($("#businessCode").val());
// alert($("#businessCode").val());
$
(
"#active"
).
val
(
status
)
//
$("#active").val(status)
let
extendedData
=
getExtendedData
();
let
extendedData
=
getExtendedData
();
if
(
!
extendedData
)
return
false
;
if
(
!
extendedData
)
return
false
;
var
_self
=
this
;
var
_self
=
this
;
$
(
'#submitForm'
).
ajaxSubmit
({
$
(
'#submitForm'
).
ajaxSubmit
({
url
:
web_app
.
name
+
'/sapNonProdApplyNext/saveSapNonProdApplyDept.ajax
'
,
url
:
web_app
.
name
+
'/sapNonProdApplyNext/saveSapNonProdApplyDept.ajax
?opstatus='
+
status
,
param
:
extendedData
,
param
:
extendedData
,
success
:
function
(
data
)
{
success
:
function
(
data
)
{
$
(
"#applyDeptId"
).
val
(
data
.
applyDeptId
);
$
(
"#applyDeptId"
).
val
(
data
.
applyDeptId
);
...
...
topsun-xt/src/main/webapp/biz/topsun/sap/nonProdApply/nonProdApplyMRP.jsp
View file @
0e305d37
...
@@ -27,9 +27,6 @@
...
@@ -27,9 +27,6 @@
<button
id=
"back"
title=
""
type=
"button"
onclick=
"clearForm()"
class=
"btn btn-gray"
><i
<button
id=
"back"
title=
""
type=
"button"
onclick=
"clearForm()"
class=
"btn btn-gray"
><i
class=
"fa fa-reply"
></i>
撤销
class=
"fa fa-reply"
></i>
撤销
</button>
</button>
<button
id=
"showChart"
title=
""
type=
"button"
onclick=
"distributeForm()"
class=
"btn btn-gray"
><i
class=
"fa fa-sitemap"
></i>
分发
</button>
</div>
</div>
<br/>
<br/>
...
...
topsun-xt/src/main/webapp/biz/topsun/sap/nonProdApply/nonProdApplyMass.js
View file @
0e305d37
...
@@ -23,7 +23,6 @@ function initializate() {
...
@@ -23,7 +23,6 @@ function initializate() {
$
(
"#auditForm"
).
show
();
$
(
"#auditForm"
).
show
();
}
else
{
}
else
{
$
(
"#buttonBox"
).
show
();
$
(
"#buttonBox"
).
show
();
$
(
"#showChart"
).
remove
();
}
}
break
;
break
;
case
'1'
:
//完成/审核
case
'1'
:
//完成/审核
...
@@ -35,7 +34,6 @@ function initializate() {
...
@@ -35,7 +34,6 @@ function initializate() {
case
'3'
:
//被驳回
case
'3'
:
//被驳回
showRejectCauseBox
();
showRejectCauseBox
();
$
(
"#buttonBox"
).
show
();
$
(
"#buttonBox"
).
show
();
$
(
"#showChart"
).
remove
();
break
;
break
;
default
:
//其他/详情
default
:
//其他/详情
$
(
"#buttonBox"
).
show
();
$
(
"#buttonBox"
).
show
();
...
@@ -173,13 +171,13 @@ function loadGrid() {
...
@@ -173,13 +171,13 @@ function loadGrid() {
* @returns {boolean}
* @returns {boolean}
*/
*/
function
saveForm
(
status
)
{
function
saveForm
(
status
)
{
$
(
"#active"
).
val
(
status
)
//
$("#active").val(status)
//alert($("#businessCode").val());
//alert($("#businessCode").val());
let
extendedData
=
getExtendedData
();
let
extendedData
=
getExtendedData
();
if
(
!
extendedData
)
return
false
;
if
(
!
extendedData
)
return
false
;
var
_self
=
this
;
var
_self
=
this
;
$
(
'#submitForm'
).
ajaxSubmit
({
$
(
'#submitForm'
).
ajaxSubmit
({
url
:
web_app
.
name
+
'/sapNonProdApplyNext/saveSapNonProdApplyDept.ajax
'
,
url
:
web_app
.
name
+
'/sapNonProdApplyNext/saveSapNonProdApplyDept.ajax
?opstatus='
+
status
,
param
:
extendedData
,
param
:
extendedData
,
success
:
function
(
data
)
{
success
:
function
(
data
)
{
$
(
"#applyDeptId"
).
val
(
data
.
applyDeptId
);
$
(
"#applyDeptId"
).
val
(
data
.
applyDeptId
);
...
...
topsun-xt/src/main/webapp/biz/topsun/sap/nonProdApply/nonProdApplyMass.jsp
View file @
0e305d37
...
@@ -27,9 +27,6 @@
...
@@ -27,9 +27,6 @@
<button
id=
"back"
title=
""
type=
"button"
onclick=
"clearForm()"
class=
"btn btn-gray"
><i
<button
id=
"back"
title=
""
type=
"button"
onclick=
"clearForm()"
class=
"btn btn-gray"
><i
class=
"fa fa-reply"
></i>
撤销
class=
"fa fa-reply"
></i>
撤销
</button>
</button>
<button
id=
"showChart"
title=
""
type=
"button"
onclick=
"distributeForm()"
class=
"btn btn-gray"
><i
class=
"fa fa-sitemap"
></i>
分发
</button>
</div>
</div>
<br/>
<br/>
...
...
topsun-xt/src/main/webapp/biz/topsun/sap/nonProdApply/nonProdApplyNext.js
View file @
0e305d37
...
@@ -23,89 +23,65 @@ function initializate() {
...
@@ -23,89 +23,65 @@ function initializate() {
UICtrl
.
enable
(
$
(
"#businessUsage"
));
UICtrl
.
enable
(
$
(
"#businessUsage"
));
UICtrl
.
enable
(
$
(
"#matklName"
));
UICtrl
.
enable
(
$
(
"#matklName"
));
switch
(
$
(
"#active"
).
val
())
{
switch
(
$
(
"#active"
).
val
())
{
case
'0'
:
//
已分发未完成
case
'0'
:
//
待处理
$
(
"#businessUsageDiv"
).
hide
();
// alert($("#deptCode").val())
$
(
"#businessUsageDiv"
).
hide
();
if
(
$
(
"#deptCode"
).
val
()
===
"system"
)
{
if
(
$
(
"#deptCode"
).
val
()
===
"system"
)
{
$
(
"#auditForm"
).
show
();
$
(
"#auditForm"
).
show
();
}
else
{
}
else
{
$
(
"#buttonBox"
).
show
();
$
(
"#buttonBox"
).
show
();
// $("#showChart").remove(); //去掉 lxh
$
(
"#showChart"
).
remove
();
$
(
"#distributeDiv"
).
hide
()
$
(
"#businessPersonnelListGrid"
).
hide
()
// $("#werksName").removeAttribute("required");
// UICtrl.setDisable("#distributeDiv");
}
}
break
;
break
;
case
'1'
:
//已分发
case
'1'
:
//待分发 从首页进入填写基本数据
$
(
"#buttonBox"
).
show
();
//alert();
$
(
"#submit"
).
remove
();
$
(
"#save"
).
remove
();
$
(
"#back"
).
remove
();
UICtrl
.
setDisable
(
"#basicInfoDiv"
);
$
(
"#distributeDiv"
).
show
();
break
;
case
'2'
:
//已分发
// $("#auditForm").show();
// $("#auditForm").show();
$
(
"#buttonBox"
).
remove
();
$
(
"#buttonBox"
).
remove
();
// UICtrl.setDisable("#basicInfoDiv")
UICtrl
.
setDisable
(
"#basicInfoDiv"
);
UICtrl
.
setDisable
(
"#distributeDiv"
);
break
;
break
;
case
'2'
:
//已分发 从首页进入填写基本数据
case
'3'
:
//已办结
$
(
"#buttonBox"
).
show
();
//alert();
// showRejectCauseBox();
$
(
"#showChart"
).
remove
();
$
(
"#buttonBox"
).
remove
();
// UICtrl.setEnable("#basicInfoDiv")
break
;
case
'3'
:
//被驳回
showRejectCauseBox
();
$
(
"#buttonBox"
).
show
();
$
(
"#showChart"
).
remove
();
break
;
break
;
default
:
//其他/详情
default
:
//其他/详情
$
(
"#buttonBox"
).
show
();
$
(
"#buttonBox"
).
show
();
break
;
break
;
}
}
// let isInitiator = ($("#isInitiator").val() === "true");
// if (isInitiator) {
// //创建或审核人
$
(
'input[name="isAll"]'
).
change
(
function
()
{
// $("#buttonBox").remove();
//alert($(this).is(':checked'));
// }else{
if
(
$
(
this
).
is
(
':checked'
))
{
alert
(
1
);
// //审核人
$
(
"input[name='businessUsage']"
).
each
(
function
(){
// $("#auditForm").remove();
$
(
this
).
attr
(
"checked"
,
true
);
// }
})
}
else
{
alert
(
2
);
// $('input[name="maintenanceType"]').change(function () {
$
(
"input[name='businessUsage']"
).
each
(
function
(){
// if ($(this).is(':checked')) {
$
(
this
).
attr
(
"checked"
,
false
);
// console.log($(this).val()); // 输出选中的值
})
// switch ($(this).val()) {
}
// case 'new':
});
// if ($("#mtart").val() == "ZMPN") {
// UICtrl.enable($("#matnr"));
// } else {
// UICtrl.disable($("#matnr"));
// }
// UICtrl.disable($("#lvorm"));
// UICtrl.enable($("#mtart"));
// UICtrl.enable($("#matkl"));
// UICtrl.enable($("#spart"));
// break;
// case 'modify':
// UICtrl.enable($("#lvorm"))
// UICtrl.disable($("#mtart"));
// UICtrl.disable($("#matkl"));
// UICtrl.disable($("#spart"));
// break;
// case 'extend':
// UICtrl.enable($("#lvorm"))
// UICtrl.disable($("#mtart"));
// UICtrl.disable($("#matkl"));
// UICtrl.disable($("#spart"));
// break;
// }
// }
// });
//
// $('input[name="businessUsage"]').change(function () {
// if ($(this).is(":checked")) {
// console.log($(this).val()); // 输出选中的值
// }
// });
var
dictUsage
=
dictUsages
.
split
(
";"
);
var
dictUsage
=
dictUsages
.
split
(
";"
);
$
(
'input[name="businessUsage"]'
).
change
(
function
()
{
$
(
'input[name="businessUsage"]'
).
change
(
function
()
{
//alert($(this).is(':checked'));
//alert($(this).is(':checked'));
if
(
$
(
this
).
is
(
':checked'
))
{
if
(
$
(
this
).
is
(
':checked'
))
{
console
.
log
(
$
(
this
).
val
());
// 输出选中的值
//
console.log($(this).val()); // 输出选中的值
debugger
//
debugger
var
name
=
""
,
deptCode
=
""
;
var
name
=
""
,
deptCode
=
""
;
for
(
var
u
=
0
;
u
<
dictUsage
.
length
;
u
++
){
for
(
var
u
=
0
;
u
<
dictUsage
.
length
;
u
++
){
if
(
$
(
this
).
val
()
==
dictUsage
[
u
].
split
(
","
)[
0
]){
if
(
$
(
this
).
val
()
==
dictUsage
[
u
].
split
(
","
)[
0
]){
...
@@ -191,11 +167,11 @@ function loadGrid() {
...
@@ -191,11 +167,11 @@ function loadGrid() {
enabledEdit
:
true
,
enabledEdit
:
true
,
width
:
"100%"
,
width
:
"100%"
,
height
:
coRowNum
*
37.5
,
height
:
coRowNum
*
37.5
,
heightDiff
:
-
8
,
heightDiff
:
-
2
,
fixedCellHeight
:
true
,
fixedCellHeight
:
true
,
onBeforeEdit
:
function
(
editParm
)
{
onBeforeEdit
:
function
(
editParm
)
{
var
cols
=
editParm
.
column
,
data
=
editParm
.
record
;
var
cols
=
editParm
.
column
,
data
=
editParm
.
record
;
if
(
$
(
"#active"
).
val
()
==
1
){
if
(
$
(
"#active"
).
val
()
==
2
){
return
false
;
return
false
;
}
}
},
},
...
@@ -211,7 +187,7 @@ function loadGrid() {
...
@@ -211,7 +187,7 @@ function loadGrid() {
*/
*/
function
saveForm
(
status
)
{
function
saveForm
(
status
)
{
// alert($("#businessCode").val());
// alert($("#businessCode").val());
$
(
"#active"
).
val
(
status
)
$
(
"#active"
).
val
(
status
)
;
let
extendedData
=
getExtendedData
();
let
extendedData
=
getExtendedData
();
if
(
!
extendedData
)
return
false
;
if
(
!
extendedData
)
return
false
;
var
_self
=
this
;
var
_self
=
this
;
...
@@ -268,15 +244,35 @@ function clearForm() {
...
@@ -268,15 +244,35 @@ function clearForm() {
* 分发表单到各个部门
* 分发表单到各个部门
*/
*/
function
distributeForm
()
{
function
distributeForm
()
{
$
(
"#status"
).
val
(
1
)
$
(
"#status"
).
val
(
2
);
if
(
control
.
isDistribute
)
{
if
(
control
.
isDistribute
)
{
Public
.
successTip
(
"已分发"
);
Public
.
successTip
(
"已分发"
);
return
false
;
return
false
;
}
}
if
(
$
(
"#werks"
).
val
()
==
""
){
Public
.
tip
(
"工厂必输!"
);
return
false
;
}
if
(
$
(
"#lgort"
).
val
()
==
""
){
Public
.
tip
(
"库存地点必输!"
);
return
false
;
}
if
(
$
(
"#vkorg"
).
val
()
==
""
){
Public
.
tip
(
"销售组织必输!"
);
return
false
;
}
if
(
$
(
"#vtweg"
).
val
()
==
""
){
Public
.
tip
(
"分销渠道必输!"
);
return
false
;
}
if
(
$
(
"#lgnum"
).
val
()
==
""
){
Public
.
tip
(
"仓库号必输!"
);
return
false
;
}
let
extendedData
=
getExtendedData
();
let
extendedData
=
getExtendedData
();
if
(
!
extendedData
)
return
false
;
if
(
!
extendedData
)
return
false
;
$
(
'#submitForm'
).
ajaxSubmit
({
$
(
'#submitForm'
).
ajaxSubmit
({
url
:
web_app
.
name
+
'/sapNonProdApplyNext/distributeSapNonProdApplyDept.ajax?distribute=
1
'
,
url
:
web_app
.
name
+
'/sapNonProdApplyNext/distributeSapNonProdApplyDept.ajax?distribute=
2
'
,
param
:
extendedData
,
param
:
extendedData
,
success
:
function
(
data
)
{
success
:
function
(
data
)
{
Public
.
successTip
(
"分发成功!"
);
Public
.
successTip
(
"分发成功!"
);
...
@@ -398,7 +394,7 @@ function bindEvent() {
...
@@ -398,7 +394,7 @@ function bindEvent() {
function
getExtendedData
()
{
function
getExtendedData
()
{
let
msg
=
"["
;
let
msg
=
"["
;
let
isUndefined
=
false
let
isUndefined
=
false
;
/* let deptStaffResult = DataUtil.getGridData({
/* let deptStaffResult = DataUtil.getGridData({
gridManager: gridManager,
gridManager: gridManager,
isAllData: true,
isAllData: true,
...
...
topsun-xt/src/main/webapp/biz/topsun/sap/nonProdApply/nonProdApplyNext.jsp
View file @
0e305d37
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
<x:hidden
name=
"deptCode"
value=
"false"
/>
<!--是否是详情页-->
<x:hidden
name=
"deptCode"
value=
"false"
/>
<!--是否是详情页-->
<div
class=
"container-fluid"
style=
"padding: 10px;"
>
<div
class=
"container-fluid"
style=
"padding: 10px;"
>
<c:if
test=
"
${
applyType
==
0
}
"
>
<c:if
test=
"
${
applyType
==
0
||
applyType
==
3
}
"
>
<x:billTitle
title=
"非产品/非本成品类物料基本信息维护"
needStatus=
"false"
needPerson=
"true"
/>
<x:billTitle
title=
"非产品/非本成品类物料基本信息维护"
needStatus=
"false"
needPerson=
"true"
/>
</c:if>
</c:if>
<c:if
test=
"
${
applyType
==
1
}
"
>
<c:if
test=
"
${
applyType
==
1
}
"
>
...
@@ -34,18 +34,20 @@
...
@@ -34,18 +34,20 @@
<button
id=
"save"
title=
""
type=
"button"
onclick=
"saveForm(0)"
class=
"btn btn-gray"
><i
<button
id=
"save"
title=
""
type=
"button"
onclick=
"saveForm(0)"
class=
"btn btn-gray"
><i
class=
"fa fa-save"
></i>
保存
class=
"fa fa-save"
></i>
保存
</button>
</button>
<c:if
test=
"
${
active
==
2
}
"
>
<button
id=
"submit"
hidden=
"true"
title=
""
type=
"button"
onclick=
"saveForm(1)"
class=
"btn btn-gray"
><i
<button
id=
"submit"
hidden=
"true"
title=
""
type=
"button"
onclick=
"saveForm(1)"
class=
"btn btn-gray"
><i
class=
"fa fa-check-circle-o"
></i>
提交
class=
"fa fa-check-circle-o"
></i>
提交
</button>
</button>
</c:if>
<button
id=
"back"
title=
""
type=
"button"
onclick=
"clearForm()"
class=
"btn btn-gray"
><i
<button
id=
"back"
title=
""
type=
"button"
onclick=
"clearForm()"
class=
"btn btn-gray"
><i
class=
"fa fa-reply"
></i>
撤销
class=
"fa fa-reply"
></i>
撤销
</button>
</button>
<c:if
test=
"
${
active
==
1
}
"
>
<button
id=
"showChart"
title=
""
type=
"button"
onclick=
"distributeForm()"
class=
"btn btn-gray"
><i
<button
id=
"showChart"
title=
""
type=
"button"
onclick=
"distributeForm()"
class=
"btn btn-gray"
><i
class=
"fa fa-sitemap"
></i>
分发
class=
"fa fa-sitemap"
></i>
分发
</button>
</button>
</c:if>
</div>
</div>
<br/>
<br/>
...
@@ -121,26 +123,30 @@
...
@@ -121,26 +123,30 @@
<x:inputC
name=
"mhdrz"
label=
"最小货架寿命"
labelCol=
"1"
fieldCol=
"2"
/>
<x:inputC
name=
"mhdrz"
label=
"最小货架寿命"
labelCol=
"1"
fieldCol=
"2"
/>
<x:inputC
name=
"normt"
label=
"适用标准"
labelCol=
"1"
fieldCol=
"2"
/>
<x:inputC
name=
"normt"
label=
"适用标准"
labelCol=
"1"
fieldCol=
"2"
/>
<div
class=
"hg-form-row"
>
<x:inputC
name=
"werksName"
label=
"工厂"
required=
"true"
labelCol=
"1"
fieldCol=
"2"
wrapper=
"select"
/>
<x:hidden
name=
"werks"
/>
<x:inputC
name=
"lgortName"
label=
"库存地点"
required=
"true"
labelCol=
"1"
fieldCol=
"2"
wrapper=
"select"
/>
<x:hidden
name=
"lgort"
/>
<x:inputC
name=
"vkorgName"
required=
"true"
label=
"销售组织"
labelCol=
"1"
wrapper=
"select"
fieldCol=
"2"
/>
<x:hidden
name=
"vkorg"
/>
<x:inputC
name=
"vtwegName"
required=
"true"
label=
"分销渠道"
labelCol=
"1"
wrapper=
"select"
fieldCol=
"2"
/>
<x:hidden
name=
"vtweg"
/>
<x:inputC
name=
"lgnumName"
label=
"仓库号"
required=
"true"
labelCol=
"1"
fieldCol=
"2"
wrapper=
"select"
/>
<x:hidden
name=
"lgnum"
/>
<x:inputC
name=
"lgtypName"
label=
"存储类型"
labelCol=
"1"
fieldCol=
"2"
wrapper=
"select"
/>
<x:hidden
name=
"lgtyp"
/>
</div>
<div
class=
"hg-form-row"
>
<div
class=
"hg-form-row"
>
<x:inputC
name=
"klart"
label=
"类型"
labelCol=
"1"
fieldCol=
"2"
readonly=
"true"
/>
<x:inputC
name=
"klart"
label=
"类型"
labelCol=
"1"
fieldCol=
"2"
readonly=
"true"
/>
<x:inputC
name=
"classify"
label=
"分类"
labelCol=
"1"
fieldCol=
"2"
readonly=
"true"
/>
<x:inputC
name=
"classify"
label=
"分类"
labelCol=
"1"
fieldCol=
"2"
readonly=
"true"
/>
</div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"hg-form-cols"
id=
"distributeDiv"
>
<div
class=
"hg-form-row"
>
<x:inputC
name=
"werksName"
label=
"*工厂"
required=
"false"
labelCol=
"1"
fieldCol=
"2"
wrapper=
"select"
/>
<x:hidden
name=
"werks"
/>
<x:inputC
name=
"lgortName"
label=
"*库存地点"
required=
"false"
labelCol=
"1"
fieldCol=
"2"
wrapper=
"select"
/>
<x:hidden
name=
"lgort"
/>
<x:inputC
name=
"vkorgName"
label=
"*销售组织"
required=
"false"
labelCol=
"1"
wrapper=
"select"
fieldCol=
"2"
/>
<x:hidden
name=
"vkorg"
/>
<x:inputC
name=
"vtwegName"
label=
"*分销渠道"
required=
"false"
labelCol=
"1"
wrapper=
"select"
fieldCol=
"2"
/>
<x:hidden
name=
"vtweg"
/>
<x:inputC
name=
"lgnumName"
label=
"*仓库号"
required=
"false"
labelCol=
"1"
fieldCol=
"2"
wrapper=
"select"
/>
<x:hidden
name=
"lgnum"
/>
<x:inputC
name=
"lgtypName"
label=
"存储类型"
labelCol=
"1"
fieldCol=
"2"
wrapper=
"select"
/>
<x:hidden
name=
"lgtyp"
/>
</div>
</div>
<div
class=
"hg-form-cols"
>
<div
class=
"hg-form-cols"
>
<!--x:checkboxListC name="businessUsageSeled" label="扩展前业务用途" list="businessUsageSeledList" labelCol="1"
<!--x:checkboxListC name="businessUsageSeled" label="扩展前业务用途" list="businessUsageSeledList" labelCol="1"
...
@@ -153,16 +159,17 @@
...
@@ -153,16 +159,17 @@
fieldCol=
"11"
/>
fieldCol=
"11"
/>
</div>
</div>
</c:if>
</c:if>
<c:if
test=
"
${
applyType
==
1
||
active
==
1
||
active
==
2
}
"
>
<c:if
test=
"
${
applyType
==
1
||
active
==
2
}
"
>
<div
class=
"hg-form-row"
>
<div
class=
"hg-form-row"
>
<x:checkboxListC
name=
"businessUsage"
label=
"业务用途"
dictionary=
"serviceusage"
labelCol=
"1"
<x:checkboxListC
name=
"businessUsage"
label=
"业务用途"
dictionary=
"serviceusage"
labelCol=
"1"
fieldCol=
"11"
disabled=
"true"
/>
fieldCol=
"11"
disabled=
"true"
/>
</div>
</div>
</c:if>
</c:if>
<c:if
test=
"
${
applyType
==
0
&&
active
!
=
1
}
"
>
<c:if
test=
"
${
applyType
==
0
&&
active
=
=
1
}
"
>
<div
class=
"hg-form-row"
>
<div
class=
"hg-form-row"
>
<x:checkbox
name=
"isAll"
label=
"是否全选"
/>
<x:checkboxListC
name=
"businessUsage"
label=
"业务用途"
dictionary=
"serviceusage"
labelCol=
"1"
<x:checkboxListC
name=
"businessUsage"
label=
"业务用途"
dictionary=
"serviceusage"
labelCol=
"1"
fieldCol=
"
11
"
/>
fieldCol=
"
8
"
/>
</div>
</div>
</c:if>
</c:if>
...
...
topsun-xt/src/main/webapp/biz/topsun/sap/nonProdApply/nonProdApplyProduce.js
View file @
0e305d37
...
@@ -24,7 +24,6 @@ function initializate() {
...
@@ -24,7 +24,6 @@ function initializate() {
$
(
"#auditForm"
).
show
();
$
(
"#auditForm"
).
show
();
}
else
{
}
else
{
$
(
"#buttonBox"
).
show
();
$
(
"#buttonBox"
).
show
();
$
(
"#showChart"
).
remove
();
}
}
break
;
break
;
case
'1'
:
//完成/审核
case
'1'
:
//完成/审核
...
@@ -36,7 +35,6 @@ function initializate() {
...
@@ -36,7 +35,6 @@ function initializate() {
case
'3'
:
//被驳回
case
'3'
:
//被驳回
showRejectCauseBox
();
showRejectCauseBox
();
$
(
"#buttonBox"
).
show
();
$
(
"#buttonBox"
).
show
();
$
(
"#showChart"
).
remove
();
break
;
break
;
default
:
//其他/详情
default
:
//其他/详情
$
(
"#buttonBox"
).
show
();
$
(
"#buttonBox"
).
show
();
...
@@ -185,14 +183,14 @@ function bindEvent(){
...
@@ -185,14 +183,14 @@ function bindEvent(){
* @returns {boolean}
* @returns {boolean}
*/
*/
function
saveForm
(
status
)
{
function
saveForm
(
status
)
{
$
(
"#active"
).
val
(
status
)
//
$("#active").val(status)
//alert($("#businessCode").val());
//alert($("#businessCode").val());
let
extendedData
=
getExtendedData
();
let
extendedData
=
getExtendedData
();
if
(
!
extendedData
)
return
false
;
if
(
!
extendedData
)
return
false
;
var
_self
=
this
;
var
_self
=
this
;
$
(
'#submitForm'
).
ajaxSubmit
({
$
(
'#submitForm'
).
ajaxSubmit
({
url
:
web_app
.
name
+
'/sapNonProdApplyNext/saveSapNonProdApplyDept.ajax
'
,
url
:
web_app
.
name
+
'/sapNonProdApplyNext/saveSapNonProdApplyDept.ajax
?opstatus='
+
status
,
param
:
extendedData
,
param
:
extendedData
,
success
:
function
(
data
)
{
success
:
function
(
data
)
{
$
(
"#applyDeptId"
).
val
(
data
.
applyDeptId
);
$
(
"#applyDeptId"
).
val
(
data
.
applyDeptId
);
...
...
topsun-xt/src/main/webapp/biz/topsun/sap/nonProdApply/nonProdApplyProduce.jsp
View file @
0e305d37
...
@@ -76,9 +76,9 @@
...
@@ -76,9 +76,9 @@
<div
class=
"hg-form-row"
>
<div
class=
"hg-form-row"
>
<x:inputC
name=
"ausmeName"
label=
"投料计量单位"
labelCol=
"1"
fieldCol=
"2"
wrapper=
"select"
/>
<x:inputC
name=
"ausmeName"
label=
"投料计量单位"
labelCol=
"1"
fieldCol=
"2"
wrapper=
"select"
/>
<x:hidden
name=
"ausme"
/>
<x:hidden
name=
"ausme"
/>
<x:inputC
name=
"umrenProd"
label=
"转换分母"
labelCol=
"1"
fieldCol=
"
2
"
/>
<x:inputC
name=
"umrenProd"
label=
"转换分母"
labelCol=
"1"
fieldCol=
"
3
"
/>
<x:inputC
name=
"umrezProd"
label=
"转换分子"
labelCol=
"1"
fieldCol=
"
2
"
/>
<x:inputC
name=
"umrezProd"
label=
"转换分子"
labelCol=
"1"
fieldCol=
"
3
"
/>
<x:selectC
name=
"sfcpf"
label=
"生产计划参数文件"
labelCol=
"
1
"
fieldCol=
"2"
dictionary=
"sfcpf"
/>
<x:selectC
name=
"sfcpf"
label=
"生产计划参数文件"
labelCol=
"
2
"
fieldCol=
"2"
dictionary=
"sfcpf"
/>
<x:selectC
name=
"insmk"
label=
"过账到质检"
labelCol=
"1"
fieldCol=
"2"
dictionary=
"insmk"
/>
<x:selectC
name=
"insmk"
label=
"过账到质检"
labelCol=
"1"
fieldCol=
"2"
dictionary=
"insmk"
/>
</div>
</div>
...
...
topsun-xt/src/main/webapp/biz/topsun/sap/nonProdApply/nonProdApplyPurchase.js
View file @
0e305d37
...
@@ -23,7 +23,6 @@ function initializate() {
...
@@ -23,7 +23,6 @@ function initializate() {
$
(
"#auditForm"
).
show
();
$
(
"#auditForm"
).
show
();
}
else
{
}
else
{
$
(
"#buttonBox"
).
show
();
$
(
"#buttonBox"
).
show
();
$
(
"#showChart"
).
remove
();
}
}
break
;
break
;
case
'1'
:
//完成/审核
case
'1'
:
//完成/审核
...
@@ -35,7 +34,6 @@ function initializate() {
...
@@ -35,7 +34,6 @@ function initializate() {
case
'3'
:
//被驳回
case
'3'
:
//被驳回
showRejectCauseBox
();
showRejectCauseBox
();
$
(
"#buttonBox"
).
show
();
$
(
"#buttonBox"
).
show
();
$
(
"#showChart"
).
remove
();
break
;
break
;
default
:
//其他/详情
default
:
//其他/详情
$
(
"#buttonBox"
).
show
();
$
(
"#buttonBox"
).
show
();
...
@@ -175,18 +173,17 @@ function loadGrid() {
...
@@ -175,18 +173,17 @@ function loadGrid() {
* @returns {boolean}
* @returns {boolean}
*/
*/
function
saveForm
(
status
)
{
function
saveForm
(
status
)
{
if
(
$
(
"#baseUnit"
).
val
()
==
$
(
"#bstme"
).
val
()){
if
(
$
(
"#b
stme"
).
val
()
!=
""
&&
$
(
"#b
aseUnit"
).
val
()
==
$
(
"#bstme"
).
val
()){
Public
.
tip
(
"采购计量单位不能和基本计量单位一致!"
);
Public
.
tip
(
"采购计量单位不能和基本计量单位一致!"
);
return
false
;
return
false
;
}
}
// $("#active").val(status)
$
(
"#active"
).
val
(
status
)
// alert($("#businessCode").val());
// alert($("#businessCode").val());
let
extendedData
=
getExtendedData
();
let
extendedData
=
getExtendedData
();
if
(
!
extendedData
)
return
false
;
if
(
!
extendedData
)
return
false
;
var
_self
=
this
;
var
_self
=
this
;
$
(
'#submitForm'
).
ajaxSubmit
({
$
(
'#submitForm'
).
ajaxSubmit
({
url
:
web_app
.
name
+
'/sapNonProdApplyNext/saveSapNonProdApplyDept.ajax
'
,
url
:
web_app
.
name
+
'/sapNonProdApplyNext/saveSapNonProdApplyDept.ajax
?opstatus='
+
status
,
param
:
extendedData
,
param
:
extendedData
,
success
:
function
(
data
)
{
success
:
function
(
data
)
{
$
(
"#applyDeptId"
).
val
(
data
.
applyDeptId
);
$
(
"#applyDeptId"
).
val
(
data
.
applyDeptId
);
...
...
topsun-xt/src/main/webapp/biz/topsun/sap/nonProdApply/nonProdApplyPurchase.jsp
View file @
0e305d37
...
@@ -27,9 +27,6 @@
...
@@ -27,9 +27,6 @@
<button
id=
"back"
title=
""
type=
"button"
onclick=
"clearForm()"
class=
"btn btn-gray"
><i
<button
id=
"back"
title=
""
type=
"button"
onclick=
"clearForm()"
class=
"btn btn-gray"
><i
class=
"fa fa-reply"
></i>
撤销
class=
"fa fa-reply"
></i>
撤销
</button>
</button>
<button
id=
"showChart"
title=
""
type=
"button"
onclick=
"distributeForm()"
class=
"btn btn-gray"
><i
class=
"fa fa-sitemap"
></i>
分发
</button>
</div>
</div>
<br/>
<br/>
...
...
topsun-xt/src/main/webapp/biz/topsun/sap/nonProdApply/nonProdApplySale.js
View file @
0e305d37
...
@@ -24,14 +24,12 @@ function initializate() {
...
@@ -24,14 +24,12 @@ function initializate() {
$
(
"#auditForm"
).
show
();
$
(
"#auditForm"
).
show
();
}
else
{
}
else
{
$
(
"#buttonBox"
).
show
();
$
(
"#buttonBox"
).
show
();
$
(
"#showChart"
).
remove
();
}
}
break
;
break
;
case
'1'
:
//已分发
case
'1'
:
//已分发
// $("#auditForm").show();
// $("#auditForm").show();
// alert($("#deptCode").val());
// alert($("#deptCode").val());
$
(
"#buttonBox"
).
show
();
$
(
"#buttonBox"
).
show
();
$
(
"#showChart"
).
remove
();
break
;
break
;
case
'2'
:
//保存未分发
case
'2'
:
//保存未分发
$
(
"#buttonBox"
).
show
();
$
(
"#buttonBox"
).
show
();
...
@@ -39,7 +37,7 @@ function initializate() {
...
@@ -39,7 +37,7 @@ function initializate() {
case
'3'
:
//被驳回
case
'3'
:
//被驳回
showRejectCauseBox
();
showRejectCauseBox
();
$
(
"#buttonBox"
).
show
();
$
(
"#buttonBox"
).
show
();
$
(
"#showChart"
).
remove
();
break
;
break
;
default
:
//其他/详情
default
:
//其他/详情
$
(
"#buttonBox"
).
show
();
$
(
"#buttonBox"
).
show
();
...
@@ -205,13 +203,13 @@ function clearForm(){
...
@@ -205,13 +203,13 @@ function clearForm(){
* @returns {boolean}
* @returns {boolean}
*/
*/
function
saveForm
(
status
)
{
function
saveForm
(
status
)
{
$
(
"#active"
).
val
(
status
)
//
$("#active").val(status)
//alert($("#businessCode").val());
//alert($("#businessCode").val());
let
extendedData
=
getExtendedData
();
let
extendedData
=
getExtendedData
();
if
(
!
extendedData
)
return
false
;
if
(
!
extendedData
)
return
false
;
var
_self
=
this
;
var
_self
=
this
;
$
(
'#submitForm'
).
ajaxSubmit
({
$
(
'#submitForm'
).
ajaxSubmit
({
url
:
web_app
.
name
+
'/sapNonProdApplyNext/saveSapNonProdApplyDept.ajax
'
,
url
:
web_app
.
name
+
'/sapNonProdApplyNext/saveSapNonProdApplyDept.ajax
?opstatus='
+
status
,
param
:
extendedData
,
param
:
extendedData
,
success
:
function
(
data
)
{
success
:
function
(
data
)
{
$
(
"#applyDeptId"
).
val
(
data
.
applyDeptId
);
$
(
"#applyDeptId"
).
val
(
data
.
applyDeptId
);
...
...
topsun-xt/src/main/webapp/biz/topsun/sap/nonProdApply/nonProdApplySale.jsp
View file @
0e305d37
...
@@ -28,9 +28,6 @@
...
@@ -28,9 +28,6 @@
<button
id=
"back"
title=
""
type=
"button"
onclick=
"clearForm()"
class=
"btn btn-gray"
><i
<button
id=
"back"
title=
""
type=
"button"
onclick=
"clearForm()"
class=
"btn btn-gray"
><i
class=
"fa fa-reply"
></i>
撤销
class=
"fa fa-reply"
></i>
撤销
</button>
</button>
<button
id=
"showChart"
title=
""
type=
"button"
onclick=
"distributeForm()"
class=
"btn btn-gray"
><i
class=
"fa fa-sitemap"
></i>
分发
</button>
</div>
</div>
<br/>
<br/>
...
...
topsun-xt/src/main/webapp/biz/topsun/sap/nonProdApply/nonProdApplyStore.js
View file @
0e305d37
...
@@ -24,8 +24,7 @@ function initializate() {
...
@@ -24,8 +24,7 @@ function initializate() {
$
(
"#auditForm"
).
show
();
$
(
"#auditForm"
).
show
();
}
else
{
}
else
{
$
(
"#buttonBox"
).
show
();
$
(
"#buttonBox"
).
show
();
$
(
"#showChart"
).
remove
();
}
}
break
;
break
;
case
'1'
:
//完成/审核
case
'1'
:
//完成/审核
// $("#auditForm").show();
// $("#auditForm").show();
...
@@ -36,7 +35,6 @@ function initializate() {
...
@@ -36,7 +35,6 @@ function initializate() {
case
'3'
:
//被驳回
case
'3'
:
//被驳回
showRejectCauseBox
();
showRejectCauseBox
();
$
(
"#buttonBox"
).
show
();
$
(
"#buttonBox"
).
show
();
$
(
"#showChart"
).
remove
();
break
;
break
;
default
:
//其他/详情
default
:
//其他/详情
$
(
"#buttonBox"
).
show
();
$
(
"#buttonBox"
).
show
();
...
@@ -201,12 +199,12 @@ function bindEvent(){
...
@@ -201,12 +199,12 @@ function bindEvent(){
*/
*/
function
saveForm
(
status
)
{
function
saveForm
(
status
)
{
// alert($("#businessCode").val());
// alert($("#businessCode").val());
$
(
"#active"
).
val
(
status
)
//
$("#active").val(status)
let
extendedData
=
getExtendedData
();
let
extendedData
=
getExtendedData
();
if
(
!
extendedData
)
return
false
;
if
(
!
extendedData
)
return
false
;
var
_self
=
this
;
var
_self
=
this
;
$
(
'#submitForm'
).
ajaxSubmit
({
$
(
'#submitForm'
).
ajaxSubmit
({
url
:
web_app
.
name
+
'/sapNonProdApplyNext/saveSapNonProdApplyDept.ajax
'
,
url
:
web_app
.
name
+
'/sapNonProdApplyNext/saveSapNonProdApplyDept.ajax
?opstatus='
+
status
,
param
:
extendedData
,
param
:
extendedData
,
success
:
function
(
data
)
{
success
:
function
(
data
)
{
$
(
"#applyDeptId"
).
val
(
data
.
applyDeptId
);
$
(
"#applyDeptId"
).
val
(
data
.
applyDeptId
);
...
...
topsun-xt/src/main/webapp/biz/topsun/sap/nonProdApply/nonProdApplyStore.jsp
View file @
0e305d37
...
@@ -27,9 +27,6 @@
...
@@ -27,9 +27,6 @@
<button
id=
"back"
title=
""
type=
"button"
onclick=
"clearForm()"
class=
"btn btn-gray"
><i
<button
id=
"back"
title=
""
type=
"button"
onclick=
"clearForm()"
class=
"btn btn-gray"
><i
class=
"fa fa-reply"
></i>
撤销
class=
"fa fa-reply"
></i>
撤销
</button>
</button>
<button
id=
"showChart"
title=
""
type=
"button"
onclick=
"distributeForm()"
class=
"btn btn-gray"
><i
class=
"fa fa-sitemap"
></i>
分发
</button>
</div>
</div>
<br/>
<br/>
...
...
topsun-xt/src/main/webapp/biz/topsun/sap/nonProdApply/nonProdApplyWarehouse.js
View file @
0e305d37
...
@@ -24,8 +24,7 @@ function initializate() {
...
@@ -24,8 +24,7 @@ function initializate() {
$
(
"#auditForm"
).
show
();
$
(
"#auditForm"
).
show
();
}
else
{
}
else
{
$
(
"#buttonBox"
).
show
();
$
(
"#buttonBox"
).
show
();
$
(
"#showChart"
).
remove
();
}
}
break
;
break
;
case
'1'
:
//完成/审核
case
'1'
:
//完成/审核
// $("#auditForm").show();
// $("#auditForm").show();
...
@@ -36,8 +35,7 @@ function initializate() {
...
@@ -36,8 +35,7 @@ function initializate() {
case
'3'
:
//被驳回
case
'3'
:
//被驳回
showRejectCauseBox
();
showRejectCauseBox
();
$
(
"#buttonBox"
).
show
();
$
(
"#buttonBox"
).
show
();
$
(
"#showChart"
).
remove
();
break
;
break
;
default
:
//其他/详情
default
:
//其他/详情
$
(
"#buttonBox"
).
show
();
$
(
"#buttonBox"
).
show
();
break
;
break
;
...
@@ -108,6 +106,7 @@ function loadGrid() {
...
@@ -108,6 +106,7 @@ function loadGrid() {
$
(
"#specifications"
).
attr
(
"disabled"
,
true
);
$
(
"#specifications"
).
attr
(
"disabled"
,
true
);
$
(
"#materialUsage"
).
attr
(
"disabled"
,
true
);
$
(
"#materialUsage"
).
attr
(
"disabled"
,
true
);
$
(
"#lety1"
).
val
(
"TP"
);
//UICtrl.disable($("#werks"));
//UICtrl.disable($("#werks"));
UICtrl
.
disable
(
$
(
"#lgort"
));
UICtrl
.
disable
(
$
(
"#lgort"
));
//UICtrl.disable($("#lgnum"));
//UICtrl.disable($("#lgnum"));
...
@@ -180,12 +179,12 @@ function loadGrid() {
...
@@ -180,12 +179,12 @@ function loadGrid() {
*/
*/
function
saveForm
(
status
)
{
function
saveForm
(
status
)
{
//alert($("#businessCode").val());
//alert($("#businessCode").val());
$
(
"#active"
).
val
(
status
)
//
$("#active").val(status)
let
extendedData
=
getExtendedData
();
let
extendedData
=
getExtendedData
();
if
(
!
extendedData
)
return
false
;
if
(
!
extendedData
)
return
false
;
var
_self
=
this
;
var
_self
=
this
;
$
(
'#submitForm'
).
ajaxSubmit
({
$
(
'#submitForm'
).
ajaxSubmit
({
url
:
web_app
.
name
+
'/sapNonProdApplyNext/saveSapNonProdApplyDept.ajax
'
,
url
:
web_app
.
name
+
'/sapNonProdApplyNext/saveSapNonProdApplyDept.ajax
?opstatus='
+
status
,
param
:
extendedData
,
param
:
extendedData
,
success
:
function
(
data
)
{
success
:
function
(
data
)
{
$
(
"#applyDeptId"
).
val
(
data
.
applyDeptId
);
$
(
"#applyDeptId"
).
val
(
data
.
applyDeptId
);
...
@@ -210,6 +209,7 @@ function bindEvent(){
...
@@ -210,6 +209,7 @@ function bindEvent(){
$
(
'#werksName'
).
val
(
data
.
NAME1
);
$
(
'#werksName'
).
val
(
data
.
NAME1
);
}
}
});
});
//库存地点
$
(
'#lgortName'
).
searchbox
({
$
(
'#lgortName'
).
searchbox
({
type
:
"system"
,
name
:
"dictionary"
,
type
:
"system"
,
name
:
"dictionary"
,
getParam
:
function
(
item
)
{
getParam
:
function
(
item
)
{
...
@@ -218,14 +218,17 @@ function bindEvent(){
...
@@ -218,14 +218,17 @@ function bindEvent(){
onChange
:
function
(
value
,
data
)
{
onChange
:
function
(
value
,
data
)
{
$
(
'#lgort'
).
val
(
data
.
LGORT
);
$
(
'#lgort'
).
val
(
data
.
LGORT
);
$
(
'#lgortName'
).
val
(
data
.
LGOBE
);
$
(
'#lgortName'
).
val
(
data
.
LGOBE
);
// $('#ltkza').val("001");
// $('#ltkzaName').val("高架仓库");
}
}
});
});
//存储类型
$
(
'#lgtypName'
).
searchbox
({
$
(
'#lgtypName'
).
searchbox
({
type
:
"system"
,
name
:
"dictionary"
,
type
:
"system"
,
name
:
"dictionary"
,
getParam
:
function
(
item
)
{
getParam
:
function
(
item
)
{
return
{
return
{
fieldName
:
"LGTYP"
,
fieldName
:
"LGTYP"
,
filterValue
:
$
(
'#lgnum'
).
val
()
filterValue
:
$
(
'#lgnum'
).
val
()
,
}
}
},
},
onChange
:
function
(
value
,
data
)
{
onChange
:
function
(
value
,
data
)
{
...
@@ -233,6 +236,7 @@ function bindEvent(){
...
@@ -233,6 +236,7 @@ function bindEvent(){
$
(
'#lgtypName'
).
val
(
data
.
LTYPT
);
$
(
'#lgtypName'
).
val
(
data
.
LTYPT
);
}
}
});
});
//存货下架存储类型
$
(
'#ltkzaName'
).
searchbox
({
$
(
'#ltkzaName'
).
searchbox
({
type
:
"system"
,
name
:
"dictionary"
,
type
:
"system"
,
name
:
"dictionary"
,
getParam
:
function
(
item
)
{
getParam
:
function
(
item
)
{
...
@@ -246,6 +250,7 @@ function bindEvent(){
...
@@ -246,6 +250,7 @@ function bindEvent(){
$
(
'#ltkzaName'
).
val
(
data
.
LTYPT
);
$
(
'#ltkzaName'
).
val
(
data
.
LTYPT
);
}
}
});
});
//存货上架存储类型
$
(
'#ltkzeName'
).
searchbox
({
$
(
'#ltkzeName'
).
searchbox
({
type
:
"system"
,
name
:
"dictionary"
,
type
:
"system"
,
name
:
"dictionary"
,
getParam
:
function
(
item
)
{
getParam
:
function
(
item
)
{
...
@@ -259,6 +264,7 @@ function bindEvent(){
...
@@ -259,6 +264,7 @@ function bindEvent(){
$
(
'#ltkzeName'
).
val
(
data
.
LTYPT
);
$
(
'#ltkzeName'
).
val
(
data
.
LTYPT
);
}
}
});
});
//存储分区标识
$
(
'#lgbkzName'
).
searchbox
({
$
(
'#lgbkzName'
).
searchbox
({
type
:
"system"
,
name
:
"dictionary"
,
type
:
"system"
,
name
:
"dictionary"
,
getParam
:
function
(
item
)
{
getParam
:
function
(
item
)
{
...
...
topsun-xt/src/main/webapp/biz/topsun/sap/nonProdApply/nonProdApplyWarehouse.jsp
View file @
0e305d37
...
@@ -27,9 +27,6 @@
...
@@ -27,9 +27,6 @@
<button
id=
"back"
title=
""
type=
"button"
onclick=
"clearForm()"
class=
"btn btn-gray"
><i
<button
id=
"back"
title=
""
type=
"button"
onclick=
"clearForm()"
class=
"btn btn-gray"
><i
class=
"fa fa-reply"
></i>
撤销
class=
"fa fa-reply"
></i>
撤销
</button>
</button>
<button
id=
"showChart"
title=
""
type=
"button"
onclick=
"distributeForm()"
class=
"btn btn-gray"
><i
class=
"fa fa-sitemap"
></i>
分发
</button>
</div>
</div>
<br/>
<br/>
...
@@ -85,16 +82,16 @@
...
@@ -85,16 +82,16 @@
<x:selectC
name=
"lgnum"
label=
"仓库号"
labelCol=
"1"
fieldCol=
"2"
dictionary=
"lgnum"
/>
<x:selectC
name=
"lgnum"
label=
"仓库号"
labelCol=
"1"
fieldCol=
"2"
dictionary=
"lgnum"
/>
<x:inputC
name=
"lgtypName"
label=
"存储类型"
labelCol=
"1"
fieldCol=
"2"
wrapper=
"select"
/>
<x:inputC
name=
"lgtypName"
label=
"存储类型"
labelCol=
"1"
fieldCol=
"2"
wrapper=
"select"
/>
<x:hidden
name=
"lgtyp"
/>
<x:hidden
name=
"lgtyp"
/>
<x:inputC
name=
"ltkzaName"
label=
"存货下架存储类型"
labelCol=
"
1
"
fieldCol=
"2"
required=
"true"
wrapper=
"select"
/>
<x:inputC
name=
"ltkzaName"
label=
"存货下架存储类型"
labelCol=
"
2
"
fieldCol=
"2"
required=
"true"
wrapper=
"select"
/>
<x:hidden
name=
"ltkza"
/>
<x:hidden
name=
"ltkza"
/>
<x:inputC
name=
"ltkzeName"
label=
"存货上架存储类型"
labelCol=
"
1
"
fieldCol=
"2"
required=
"true"
wrapper=
"select"
/>
<x:inputC
name=
"ltkzeName"
label=
"存货上架存储类型"
labelCol=
"
2
"
fieldCol=
"2"
required=
"true"
wrapper=
"select"
/>
<x:hidden
name=
"ltkze"
/>
<x:hidden
name=
"ltkze"
/>
<x:inputC
name=
"lgbkzName"
label=
"存储分区标识"
labelCol=
"1"
fieldCol=
"2"
required=
"true"
wrapper=
"select"
/>
<x:inputC
name=
"lgbkzName"
label=
"存储分区标识"
labelCol=
"1"
fieldCol=
"2"
required=
"true"
wrapper=
"select"
/>
<x:hidden
name=
"lgbkz"
/>
<x:hidden
name=
"lgbkz"
/>
<x:inputC
name=
"lhmg1"
label=
"仓库设施1存储数量"
labelCol=
"
1
"
fieldCol=
"2"
required=
"false"
/>
<x:inputC
name=
"lhmg1"
label=
"仓库设施1存储数量"
labelCol=
"
2
"
fieldCol=
"2"
required=
"false"
/>
<x:inputC
name=
"lhme1Name"
label=
"仓库设施1存储单位"
labelCol=
"
1
"
fieldCol=
"2"
required=
"false"
wrapper=
"select"
/>
<x:inputC
name=
"lhme1Name"
label=
"仓库设施1存储单位"
labelCol=
"
2
"
fieldCol=
"2"
required=
"false"
wrapper=
"select"
/>
<x:hidden
name=
"lhme1"
/>
<x:hidden
name=
"lhme1"
/>
<x:inputC
name=
"lety1"
label=
"仓库设施1类型"
labelCol=
"1"
fieldCol=
"2"
required=
"false"
/>
<x:inputC
name=
"lety1"
label=
"仓库设施1类型"
labelCol=
"1"
fieldCol=
"2"
required=
"false"
readonly=
"true"
/>
</div>
</div>
</div>
</div>
...
...
topsun-xt/src/main/webapp/biz/topsun/sap/suppliers/suppliersDataDetail.js
View file @
0e305d37
...
@@ -166,12 +166,30 @@ function loadSuppliersPayListGrid() {
...
@@ -166,12 +166,30 @@ function loadSuppliersPayListGrid() {
//editor: {type: 'text', required: true}
//editor: {type: 'text', required: true}
},
},
{
{
display
:
"中心记帐冻结"
,
name
:
"sperr"
,
width
:
100
,
minWidth
:
60
,
type
:
"String"
,
align
:
"left"
,
display
:
"中心记帐冻结"
,
name
:
"sperrTextView"
,
width
:
100
,
minWidth
:
60
,
type
:
"String"
,
align
:
"left"
,
editor
:
{
type
:
'text'
,
required
:
false
}
editor
:
{
type
:
'dictionary'
,
data
:
{
name
:
'insmk'
},
textField
:
'sperrTextView'
,
valueField
:
'sperr'
,
required
:
false
,
render
:
function
(
item
)
{
return
item
.
sperrTextView
;
}
}
},
},
{
{
display
:
"对公司代码过帐冻结"
,
name
:
"sperrB"
,
width
:
140
,
minWidth
:
60
,
type
:
"String"
,
align
:
"left"
,
display
:
"对公司代码过帐冻结"
,
name
:
"sperrBTextView"
,
width
:
140
,
minWidth
:
60
,
type
:
"String"
,
align
:
"left"
,
editor
:
{
type
:
'text'
,
required
:
false
}
editor
:
{
type
:
'dictionary'
,
data
:
{
name
:
'insmk'
},
textField
:
'insmkTextView'
,
valueField
:
'sperrB'
,
required
:
false
,
render
:
function
(
item
)
{
return
item
.
sperrBTextView
;
}
}
},
},
],
],
...
...
topsun-xt/src/main/webapp/biz/topsun/sap/suppliers/suppliersDataDetail.jsp
View file @
0e305d37
...
@@ -83,11 +83,14 @@
...
@@ -83,11 +83,14 @@
<x:inputC
name=
"faxNumber"
label=
"传真"
labelCol=
"1"
fieldCol=
"2"
/>
<x:inputC
name=
"faxNumber"
label=
"传真"
labelCol=
"1"
fieldCol=
"2"
/>
<%--<x:inputC name="faxExtens" label="第一个传真号分机号" labelCol="1" fieldCol="2"/>--%>
<%--<x:inputC name="faxExtens" label="第一个传真号分机号" labelCol="1" fieldCol="2"/>--%>
<x:selectC
name=
"ktokk"
label=
"供应商帐户组"
labelCol=
"1"
fieldCol=
"2"
required=
"true"
dictionary=
"buGroup"
/>
<x:selectC
name=
"ktokk"
label=
"供应商帐户组"
labelCol=
"1"
fieldCol=
"2"
required=
"true"
dictionary=
"buGroup"
/>
<x:inputC
name=
"sperm"
label=
"集中设置的采购冻结"
labelCol=
"1"
fieldCol=
"2"
/>
<x:inputC
name=
"sperr"
label=
"中心记帐冻结"
labelCol=
"1"
fieldCol=
"2"
/>
<x:inputC
name=
"vbund"
label=
"贸易伙伴"
labelCol=
"1"
fieldCol=
"2"
/>
<x:inputC
name=
"kunnr"
label=
"客户编号"
labelCol=
"1"
fieldCol=
"2"
/>
<x:inputC
name=
"kunnr"
label=
"客户编号"
labelCol=
"1"
fieldCol=
"2"
/>
<x:inputC
name=
"stenr"
label=
"责任税务部门的税收编号"
labelCol=
"1"
fieldCol=
"2"
required=
"true"
/>
<x:inputC
name=
"vbund"
label=
"贸易伙伴"
labelCol=
"1"
fieldCol=
"2"
/>
<x:inputC
name=
"stenr"
label=
"责任税务部门的税收编号"
labelCol=
"2"
fieldCol=
"2"
required=
"true"
/>
<x:selectC
name=
"sperr"
label=
"中心记帐冻结"
labelCol=
"1"
fieldCol=
"1"
dictionary=
"insmk"
/>
<x:selectC
name=
"sperm"
label=
"集中设置的采购冻结"
labelCol=
"2"
fieldCol=
"1"
dictionary=
"insmk"
/>
</div>
</div>
...
...
topsun/src/main/java/com/huigou/topsun/sap/nonProdApply/application/impl/NonProdApplyApplicationImpl.java
View file @
0e305d37
...
@@ -329,6 +329,10 @@ public class NonProdApplyApplicationImpl extends FlowBroker implements NonProdA
...
@@ -329,6 +329,10 @@ public class NonProdApplyApplicationImpl extends FlowBroker implements NonProdA
@Override
@Override
@Transactional
(
propagation
=
Propagation
.
REQUIRES_NEW
)
@Transactional
(
propagation
=
Propagation
.
REQUIRES_NEW
)
public
void
deleteNonProdApplyBaseInfoById
(
String
id
)
{
public
void
deleteNonProdApplyBaseInfoById
(
String
id
)
{
NonProdApplyBaseInfo
baseInfo
=
this
.
nonProdApplyBaseInfoRepository
.
findOne
(
id
);
if
(
baseInfo
.
getStatusId
()!=
0
){
throw
new
RuntimeException
(
"审批中和已完成状态的,不能删除!"
);
}
nonProdApplyBaseInfoRepository
.
delete
(
id
);
nonProdApplyBaseInfoRepository
.
delete
(
id
);
}
}
...
...
topsun/src/main/java/com/huigou/topsun/sap/nonProdApply/application/impl/NonProdApplyDeptApplicationImpl.java
View file @
0e305d37
...
@@ -60,11 +60,14 @@ public class NonProdApplyDeptApplicationImpl extends BaseApplication implements
...
@@ -60,11 +60,14 @@ public class NonProdApplyDeptApplicationImpl extends BaseApplication implements
String
genericName
=
sdo
.
getString
(
"genericName"
);
String
genericName
=
sdo
.
getString
(
"genericName"
);
Integer
active
=
sdo
.
getInteger
(
"active"
);
Integer
active
=
sdo
.
getInteger
(
"active"
);
String
meId
=
sdo
.
getString
(
"meId"
);
String
meId
=
sdo
.
getString
(
"meId"
);
String
opstatus
=
sdo
.
getString
(
"opstatus"
);
//操作状态
NonProdApplyBaseInfo
nonProdApplyBaseInfo
=
nonProdApplyBaseInfoRepository
.
findOne
(
sdo
.
getString
(
"id"
));
NonProdApplyBaseInfo
nonProdApplyBaseInfo
=
nonProdApplyBaseInfoRepository
.
findOne
(
sdo
.
getString
(
"id"
));
nonProdApplyBaseInfo
.
setBusinessUsage
(
sdo
.
getString
(
"businessUsage"
));
nonProdApplyBaseInfo
.
setBusinessUsage
(
sdo
.
getString
(
"businessUsage"
));
if
(
StringUtil
.
isNotBlank
(
sdo
.
getString
(
"distribute"
))){
//是否已分发
if
(
StringUtil
.
isNotBlank
(
sdo
.
getString
(
"distribute"
))){
//是否已分发
nonProdApplyBaseInfo
.
setDistribute
(
1
);
nonProdApplyBaseInfo
.
setDistribute
(
2
);
}
else
{
nonProdApplyBaseInfo
.
setDistribute
(
sdo
.
getInteger
(
"active"
));
}
}
if
(
"K"
.
equals
(
businessCode
)){
//首页进入的基本信息维护
if
(
"K"
.
equals
(
businessCode
)){
//首页进入的基本信息维护
nonProdApplyBaseInfo
.
setGenericName
(
sdo
.
getString
(
"genericName"
));
nonProdApplyBaseInfo
.
setGenericName
(
sdo
.
getString
(
"genericName"
));
...
@@ -131,7 +134,7 @@ public class NonProdApplyDeptApplicationImpl extends BaseApplication implements
...
@@ -131,7 +134,7 @@ public class NonProdApplyDeptApplicationImpl extends BaseApplication implements
nonProdApplyDept
=
this
.
save
(
nonProdApplyDept
);
nonProdApplyDept
=
this
.
save
(
nonProdApplyDept
);
String
applyDeptId
=
sdo
.
getString
(
"applyDeptId"
);
String
applyDeptId
=
sdo
.
getString
(
"applyDeptId"
);
if
(
StringUtil
.
isBlank
(
businessCode
))
{
//业务类型为空 ,表示是基本信息进入的 才保存分发信息
if
(
(
StringUtil
.
isBlank
(
businessCode
)||
"INIT_DPT"
.
equals
(
businessCode
))&&
"2"
.
equals
(
sdo
.
getString
(
"distribute"
)
))
{
//业务类型为空 ,表示是基本信息进入的 才保存分发信息
//保存部门分发任务
//保存部门分发任务
//获取分发的部门与人员信息
//获取分发的部门与人员信息
ObjectMapper
objectMapper
=
new
ObjectMapper
();
ObjectMapper
objectMapper
=
new
ObjectMapper
();
...
@@ -148,7 +151,7 @@ public class NonProdApplyDeptApplicationImpl extends BaseApplication implements
...
@@ -148,7 +151,7 @@ public class NonProdApplyDeptApplicationImpl extends BaseApplication implements
}
}
saveDeptStaff
(
deptStaffList
,
nonProdApplyDept
.
getApplyDeptId
(),
genericName
);
saveDeptStaff
(
deptStaffList
,
nonProdApplyDept
.
getApplyDeptId
(),
genericName
);
}
}
if
(
active
!=
null
&&
active
==
1
){
//各部门
提交后,隐藏消息
if
(
active
!=
null
&&
active
==
2
&&
opstatus
.
equals
(
"1"
)){
//各部门都
提交后,隐藏消息
bsnMessageApplication
.
submitTask
(
meId
);
bsnMessageApplication
.
submitTask
(
meId
);
//如果所有的业务部门处理完 ,则推送SAP
//如果所有的业务部门处理完 ,则推送SAP
BsnMessageSponsor
bsnMessageSponsor
=
bsnMessageSponsorRepository
.
findByBusinessId
(
nonProdApplyDept
.
getApplyDeptId
());
BsnMessageSponsor
bsnMessageSponsor
=
bsnMessageSponsorRepository
.
findByBusinessId
(
nonProdApplyDept
.
getApplyDeptId
());
...
@@ -245,7 +248,9 @@ public class NonProdApplyDeptApplicationImpl extends BaseApplication implements
...
@@ -245,7 +248,9 @@ public class NonProdApplyDeptApplicationImpl extends BaseApplication implements
}
}
@Override
@Override
public
void
deleteSapNonProdApplyDept
(
SapNonProdApplyDept
sapNonProdApplyDept
){
public
void
deleteSapNonProdApplyDept
(
SapNonProdApplyDept
sapNonProdApplyDept
){
nonProdApplyDeptRepository
.
delete
(
sapNonProdApplyDept
);
if
(
sapNonProdApplyDept
!=
null
){
nonProdApplyDeptRepository
.
delete
(
sapNonProdApplyDept
);
}
}
}
@Override
@Override
...
@@ -313,9 +318,11 @@ public class NonProdApplyDeptApplicationImpl extends BaseApplication implements
...
@@ -313,9 +318,11 @@ public class NonProdApplyDeptApplicationImpl extends BaseApplication implements
applyDept
.
setMatnr
((
String
)
backMap
.
get
(
"MESSAGE_V1"
));
applyDept
.
setMatnr
((
String
)
backMap
.
get
(
"MESSAGE_V1"
));
}
}
this
.
nonProdApplyDeptRepository
.
save
(
applyDept
);
this
.
nonProdApplyDeptRepository
.
save
(
applyDept
);
baseInfo
.
setDistribute
(
3
);
nonProdApplyBaseInfoRepository
.
save
(
baseInfo
);
}
else
{
}
else
{
//更改分发状态
//更改分发状态
baseInfo
.
setDistribute
(
0
);
baseInfo
.
setDistribute
(
1
);
nonProdApplyBaseInfoRepository
.
save
(
baseInfo
);
nonProdApplyBaseInfoRepository
.
save
(
baseInfo
);
throw
new
RuntimeException
(
"数据传输失败,请稍后手动重试!"
+
backMap
.
get
(
"MESSAGE"
));
throw
new
RuntimeException
(
"数据传输失败,请稍后手动重试!"
+
backMap
.
get
(
"MESSAGE"
));
}
}
...
...
topsun/src/main/java/com/huigou/topsun/sap/nonProdApply/controller/NonProdApplyController.java
View file @
0e305d37
...
@@ -19,6 +19,7 @@ import com.huigou.uasp.annotation.ControllerMapping;
...
@@ -19,6 +19,7 @@ import com.huigou.uasp.annotation.ControllerMapping;
import
com.huigou.uasp.annotation.SkipAuth
;
import
com.huigou.uasp.annotation.SkipAuth
;
import
com.huigou.uasp.bmp.common.BizBillStatus
;
import
com.huigou.uasp.bmp.common.BizBillStatus
;
import
com.huigou.uasp.client.CommonController
;
import
com.huigou.uasp.client.CommonController
;
import
com.huigou.util.CommonUtil
;
import
com.huigou.util.SDO
;
import
com.huigou.util.SDO
;
import
com.huigou.util.StringUtil
;
import
com.huigou.util.StringUtil
;
import
org.slf4j.Logger
;
import
org.slf4j.Logger
;
...
@@ -144,7 +145,7 @@ public class NonProdApplyController extends CommonController {
...
@@ -144,7 +145,7 @@ public class NonProdApplyController extends CommonController {
this
.
putAttribute
(
"id"
,
""
);
this
.
putAttribute
(
"id"
,
""
);
}
}
}
}
nonProdApplyBaseInfo
.
setAttbizId
(
CommonUtil
.
createGUID
());
// 自动生成附件id
nonProdApplyBaseInfo
.
setStatusId
(
BizBillStatus
.
APPLYING
.
getId
());
nonProdApplyBaseInfo
.
setStatusId
(
BizBillStatus
.
APPLYING
.
getId
());
Operator
operator
=
getOperator
();
//获取当前操作员的详情信息
Operator
operator
=
getOperator
();
//获取当前操作员的详情信息
nonProdApplyBaseInfo
.
setDefaultValues
(
new
OrgUnit
(
operator
.
getFullId
(),
operator
.
getFullName
()));
nonProdApplyBaseInfo
.
setDefaultValues
(
new
OrgUnit
(
operator
.
getFullId
(),
operator
.
getFullName
()));
...
...
topsun/src/main/java/com/huigou/topsun/sap/nonProdApply/controller/NonProdApplyNextController.java
View file @
0e305d37
...
@@ -126,8 +126,10 @@ public class NonProdApplyNextController extends CommonController {
...
@@ -126,8 +126,10 @@ public class NonProdApplyNextController extends CommonController {
this
.
putAttribute
(
"busiLens"
,
slen
);
this
.
putAttribute
(
"busiLens"
,
slen
);
if
(
nonProdApplyDept
!=
null
)
{
if
(
nonProdApplyDept
!=
null
)
{
getBaseInfoAttrs
(
nonProdApplyBaseInfo
,
nonProdApplyDept
);
getBaseInfoAttrs
(
nonProdApplyBaseInfo
,
nonProdApplyDept
);
if
(
nonProdApplyBaseInfo
.
getDistribute
()!=
null
&&
nonProdApplyBaseInfo
.
getDistribute
()==
1
){
if
(
nonProdApplyBaseInfo
.
getDistribute
()!=
null
){
this
.
putAttribute
(
"active"
,
1
);
this
.
putAttribute
(
"active"
,
nonProdApplyBaseInfo
.
getDistribute
());
}
else
{
// 未分发
this
.
putAttribute
(
"active"
,
0
);
}
}
if
(
"product"
.
equals
(
nonProdApplyDept
.
getKind
())){
if
(
"product"
.
equals
(
nonProdApplyDept
.
getKind
())){
this
.
putAttribute
(
"kind"
,
"product"
);
this
.
putAttribute
(
"kind"
,
"product"
);
...
@@ -235,6 +237,7 @@ public class NonProdApplyNextController extends CommonController {
...
@@ -235,6 +237,7 @@ public class NonProdApplyNextController extends CommonController {
slen
=
baseInfo
.
getBusinessUsage
().
split
(
","
).
length
+
1
;
slen
=
baseInfo
.
getBusinessUsage
().
split
(
","
).
length
+
1
;
}
}
this
.
putAttribute
(
"busiLens"
,
slen
);
this
.
putAttribute
(
"busiLens"
,
slen
);
this
.
putAttribute
(
"active"
,
baseInfo
.
getDistribute
());
String
businessCode
=
circulate
.
get
(
"deptCode"
).
toString
();
String
businessCode
=
circulate
.
get
(
"deptCode"
).
toString
();
switch
(
businessCode
)
{
switch
(
businessCode
)
{
case
"INIT_DPT"
:
//推送SAP错误 产生的待办消息
case
"INIT_DPT"
:
//推送SAP错误 产生的待办消息
...
@@ -245,10 +248,18 @@ public class NonProdApplyNextController extends CommonController {
...
@@ -245,10 +248,18 @@ public class NonProdApplyNextController extends CommonController {
baseInfo
.
setApplyType
(
"2"
);
baseInfo
.
setApplyType
(
"2"
);
}
}
this
.
putAttribute
(
"applyType"
,
baseInfo
.
getApplyType
());
this
.
putAttribute
(
"applyType"
,
baseInfo
.
getApplyType
());
this
.
putAttribute
(
"active"
,
0
);
this
.
putAttribute
(
"active"
,
baseInfo
.
getDistribute
());
Map
<
String
,
String
>
dictMapUsage
=
DictUtil
.
getDictionary
(
"serviceusage"
);
String
dictMapUsages
=
""
;
for
(
Map
.
Entry
<
String
,
String
>
entry:
dictMapUsage
.
entrySet
())
{
// String key = entry.getKey().toUpperCase();
dictMapUsages
+=
entry
.
getKey
().
toUpperCase
()+
","
+
entry
.
getValue
()+
";"
;
}
this
.
putAttribute
(
"dictUsages"
,
dictMapUsages
);
return
forward
(
"nonProdApplyNext"
,
nonProdApplyDept
);
return
forward
(
"nonProdApplyNext"
,
nonProdApplyDept
);
case
"K"
:
case
"K"
:
this
.
putAttribute
(
"active"
,
2
);
//已经分发的 填写基本数据
this
.
putAttribute
(
"active"
,
2
);
//已经分发的 填写基本数据
this
.
putAttribute
(
"applyType"
,
3
);
return
forward
(
"nonProdApplyNext"
,
nonProdApplyDept
);
return
forward
(
"nonProdApplyNext"
,
nonProdApplyDept
);
case
"C"
:
case
"C"
:
return
forward
(
"nonProdApplyClass"
,
nonProdApplyDept
);
return
forward
(
"nonProdApplyClass"
,
nonProdApplyDept
);
...
...
topsun/src/main/java/com/huigou/topsun/sap/nonProdApply/domain/NonProdApplyBaseInfo.java
View file @
0e305d37
...
@@ -120,10 +120,14 @@ public class NonProdApplyBaseInfo extends FlowBillAbstractEntity {
...
@@ -120,10 +120,14 @@ public class NonProdApplyBaseInfo extends FlowBillAbstractEntity {
@Column
(
name
=
"kind"
)
@Column
(
name
=
"kind"
)
private
String
kind
;
private
String
kind
;
//
是否分发 1表示已分发
//
处理状态: 0 待分发 1 基本信息填写 2 已分发 3 已办结
@Column
(
name
=
"distribute"
)
@Column
(
name
=
"distribute"
)
private
Integer
distribute
;
private
Integer
distribute
;
@Column
(
name
=
"attbiz_id"
)
private
String
attbizId
;
@Transient
@Transient
private
String
applyType
;
private
String
applyType
;
...
...
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