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
0db23098
Commit
0db23098
authored
Sep 25, 2024
by
刘学辉
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
品质异常单按需求调整js
parent
208856da
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
8 deletions
+37
-8
exceptionReportDetail.js
...p/biz/topsun/sap/exceptionReport/exceptionReportDetail.js
+33
-4
exceptionReportDetail.jsp
.../biz/topsun/sap/exceptionReport/exceptionReportDetail.jsp
+4
-4
No files found.
topsun-xt/src/main/webapp/biz/topsun/sap/exceptionReport/exceptionReportDetail.js
View file @
0db23098
var
itemGridManager
,
purchaseGridManager
,
dutyPersonGridManager
=
null
var
itemGridManager
,
purchaseGridManager
,
dutyPersonGridManager
=
null
var
colRowNum
=
2
;
//var purchaseToolbarOptions=null
;
$
(
function
()
{
$
(
function
()
{
initialize
();
initialize
();
initProduceGrid
();
initProduceGrid
();
...
@@ -59,6 +59,9 @@ function initialize() {
...
@@ -59,6 +59,9 @@ function initialize() {
}
}
function
showProduceDiv
()
{
function
showProduceDiv
()
{
// purchaseToolbarOptions={items: []};
// purchaseToolbarOptions={};
$
(
"#purchaseDiv"
).
hide
();
$
(
"#purchaseDiv"
).
hide
();
$
(
"#produceDiv"
).
show
();
$
(
"#produceDiv"
).
show
();
// $("#customerNo").val("");
// $("#customerNo").val("");
...
@@ -70,7 +73,12 @@ function showProduceDiv() {
...
@@ -70,7 +73,12 @@ function showProduceDiv() {
function
showPurchaseDiv
()
{
function
showPurchaseDiv
()
{
$
(
"#produceDiv"
).
hide
();
$
(
"#produceDiv"
).
hide
();
purchaseGridManager
.
loadData
();
// purchaseToolbarOptions={};
// purchaseGridManager=null;
$
(
"#purchaseDiv"
).
show
();
$
(
"#purchaseDiv"
).
show
();
// initPurchaseGrid();
// $("#customerNo").val("");
// $("#customerNo").val("");
// $("#customerNamePur").val("");
// $("#customerNamePur").val("");
// $("#customerOrderNoPur").val("");
// $("#customerOrderNoPur").val("");
...
@@ -327,9 +335,29 @@ function initDutyPersonGridGrid() {
...
@@ -327,9 +335,29 @@ function initDutyPersonGridGrid() {
UICtrl
.
setSearchAreaToggle
(
dutyPersonGridManager
);
UICtrl
.
setSearchAreaToggle
(
dutyPersonGridManager
);
}
}
function
initPurchaseGrid
()
{
function
initPurchaseToolBar
(){
purchaseToolbarOptions
=
UICtrl
.
getDefaultToolbarOptions
({
addHandler
:
function
()
{
UICtrl
.
addGridRow
(
purchaseGridManager
);
},
deleteHandler
:
function
()
{
var
_grid
=
UICtrl
.
getGridManager
(
'#purchasegrid'
);
DataUtil
.
delSelectedRows
({
action
:
'exceptionReport/deleteExceptionReport.ajax'
,
param
:
{},
gridManager
:
_grid
,
idFieldName
:
'id'
,
onSuccess
:
function
()
{
countSum
(
purchaseGridManager
.
rows
);
reloadGrid
();
}
});
},
});
}
var
purchaseToolbarOptions
=
UICtrl
.
getDefaultToolbarOptions
({
function
initPurchaseGrid
()
{
var
purchaseToolbarOptions
=
UICtrl
.
getDefaultToolbarOptions
({
addHandler
:
function
()
{
addHandler
:
function
()
{
UICtrl
.
addGridRow
(
purchaseGridManager
);
UICtrl
.
addGridRow
(
purchaseGridManager
);
},
},
...
@@ -347,13 +375,14 @@ function initPurchaseGrid() {
...
@@ -347,13 +375,14 @@ function initPurchaseGrid() {
});
});
},
},
});
});
purchaseGridManager
=
UICtrl
.
grid
(
'#purchasegrid'
,
{
purchaseGridManager
=
UICtrl
.
grid
(
'#purchasegrid'
,
{
columns
:
getPurchaseGridColumns
(),
columns
:
getPurchaseGridColumns
(),
dataAction
:
'server'
,
dataAction
:
'server'
,
url
:
web_app
.
name
+
'/exceptionReport/slicedExceptionReportItemList.ajax'
,
url
:
web_app
.
name
+
'/exceptionReport/slicedExceptionReportItemList.ajax'
,
parms
:
{
exceptionReportId
:
getId
()},
parms
:
{
exceptionReportId
:
getId
()},
height
:
'auto'
,
height
:
'auto'
,
heightDiff
:
-
4
,
heightDiff
:
-
2
,
sortName
:
'id'
,
sortName
:
'id'
,
sortOrder
:
'asc'
,
sortOrder
:
'asc'
,
checkbox
:
true
,
checkbox
:
true
,
...
...
topsun-xt/src/main/webapp/biz/topsun/sap/exceptionReport/exceptionReportDetail.jsp
View file @
0db23098
...
@@ -60,16 +60,16 @@
...
@@ -60,16 +60,16 @@
<x:checkbox
name=
"needImproveReport"
id=
"needImproveReport"
cssStyle=
"margin-left:10px;"
label=
"客户是否需要改善报告"
/>
<x:checkbox
name=
"needImproveReport"
id=
"needImproveReport"
cssStyle=
"margin-left:10px;"
label=
"客户是否需要改善报告"
/>
<x:checkbox
name=
"needGuarantee"
id=
"needGuarantee"
cssStyle=
"margin-left:10px;"
label=
"客户是否需要保证书"
/>
<x:checkbox
name=
"needGuarantee"
id=
"needGuarantee"
cssStyle=
"margin-left:10px;"
label=
"客户是否需要保证书"
/>
</div>
</div>
<div
id=
"purchasegrid"
></div>
<div
id=
"purchasegrid"
></div>
</div>
</div>
<div
class=
"hg-form-cols"
id=
"produceDiv"
>
<div
class=
"hg-form-cols"
id=
"produceDiv"
>
<div
class=
"hg-form-row"
>
<div
class=
"hg-form-row"
>
<x:inputC
name=
"customerNo"
label=
"客户编号"
labelCol=
"1"
fieldCol=
"2"
required=
"false"
/>
<x:inputC
name=
"customerNo"
label=
"客户编号"
labelCol=
"1"
fieldCol=
"2"
required=
"false"
/>
<x:inputC
name=
"customerOrderNo"
label=
"生产订单号"
labelCol=
"1"
fieldCol=
"2"
wrapper=
"select"
required=
"false"
/>
<x:inputC
name=
"customerOrderNo"
label=
"生产订单号"
labelCol=
"1"
fieldCol=
"2"
wrapper=
"select"
required=
"false"
/>
<x:inputC
name=
"customerName"
label=
"客户名称"
labelCol=
"1"
fieldCol=
"2"
required=
"false"
readonly=
"true"
/>
<x:inputC
name=
"customerName"
label=
"客户名称"
labelCol=
"1"
fieldCol=
"2"
required=
"false"
readonly=
"true"
/>
</div>
</div>
<x:title
title=
"单号信息"
name=
"group"
hideTable=
"#info"
/>
<x:title
title=
"单号信息"
name=
"group"
hideTable=
"#info"
/>
<div
id=
"maingrid"
></div>
<div
id=
"maingrid"
></div>
</div>
</div>
<div
class=
"hg-form-cols"
>
<div
class=
"hg-form-cols"
>
...
...
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