Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hp-smart
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
platform
hp-smart
Commits
48db1503
Commit
48db1503
authored
Nov 17, 2024
by
liuyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
工序质检单
parent
3fb1220f
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
117 additions
and
74 deletions
+117
-74
HPZL003.java
src/main/java/com/baosight/hpjx/hp/zl/domain/HPZL003.java
+9
-9
ServiceHPZL003.java
.../java/com/baosight/hpjx/hp/zl/service/ServiceHPZL003.java
+2
-6
HPZL003.xml
src/main/java/com/baosight/hpjx/hp/zl/sql/HPZL003.xml
+1
-1
HPZL003.js
src/main/webapp/HP/ZL/HPZL003.js
+81
-44
HPZL003.jsp
src/main/webapp/HP/ZL/HPZL003.jsp
+24
-14
No files found.
src/main/java/com/baosight/hpjx/hp/zl/domain/HPZL003.java
View file @
48db1503
...
@@ -143,14 +143,14 @@ public class HPZL003 extends DaoEPBase {
...
@@ -143,14 +143,14 @@ public class HPZL003 extends DaoEPBase {
private
String
processName
=
" "
;
/* 工序名称*/
private
String
processName
=
" "
;
/* 工序名称*/
private
String
workCode
=
" "
;
/* 报工单编码*/
private
String
workCode
=
" "
;
/* 报工单编码*/
private
String
checkCode
=
" "
;
/* 质检单编码*/
private
String
checkCode
=
" "
;
/* 质检单编码*/
private
Boolean
prdtType
;
/* 产品类型*/
private
Integer
prdtType
=
new
Integer
(
0
)
;
/* 产品类型*/
private
String
prdtCode
=
" "
;
/* 产品编码*/
private
String
prdtCode
=
" "
;
/* 产品编码*/
private
String
prdtName
=
" "
;
/* 产品名称*/
private
String
prdtName
=
" "
;
/* 产品名称*/
private
BigDecimal
prdtLength
=
new
BigDecimal
(
"0"
);
/* 产品-长*/
private
BigDecimal
prdtLength
=
new
BigDecimal
(
"0"
);
/* 产品-长*/
private
BigDecimal
prdtWidth
=
new
BigDecimal
(
"0"
);
/* 产品-宽*/
private
BigDecimal
prdtWidth
=
new
BigDecimal
(
"0"
);
/* 产品-宽*/
private
BigDecimal
prdtThick
=
new
BigDecimal
(
"0"
);
/* 产品-厚*/
private
BigDecimal
prdtThick
=
new
BigDecimal
(
"0"
);
/* 产品-厚*/
private
String
prdtSpec
=
" "
;
/* 产品规格*/
private
String
prdtSpec
=
" "
;
/* 产品规格*/
private
Boolean
partType
;
/* 零件类型*/
private
Integer
partType
=
new
Integer
(
0
)
;
/* 零件类型*/
private
String
partCode
=
" "
;
/* 零件编码*/
private
String
partCode
=
" "
;
/* 零件编码*/
private
String
partName
=
" "
;
/* 零件名称*/
private
String
partName
=
" "
;
/* 零件名称*/
private
BigDecimal
partLength
=
new
BigDecimal
(
"0"
);
/* 零件-长*/
private
BigDecimal
partLength
=
new
BigDecimal
(
"0"
);
/* 零件-长*/
...
@@ -738,7 +738,7 @@ public class HPZL003 extends DaoEPBase {
...
@@ -738,7 +738,7 @@ public class HPZL003 extends DaoEPBase {
* get the prdtType - 产品类型.
* get the prdtType - 产品类型.
* @return the prdtType
* @return the prdtType
*/
*/
public
Boolean
getPrdtType
()
{
public
Integer
getPrdtType
()
{
return
this
.
prdtType
;
return
this
.
prdtType
;
}
}
...
@@ -747,7 +747,7 @@ public class HPZL003 extends DaoEPBase {
...
@@ -747,7 +747,7 @@ public class HPZL003 extends DaoEPBase {
*
*
* @param prdtType - 产品类型
* @param prdtType - 产品类型
*/
*/
public
void
setPrdtType
(
Boolean
prdtType
)
{
public
void
setPrdtType
(
Integer
prdtType
)
{
this
.
prdtType
=
prdtType
;
this
.
prdtType
=
prdtType
;
}
}
/**
/**
...
@@ -850,7 +850,7 @@ public class HPZL003 extends DaoEPBase {
...
@@ -850,7 +850,7 @@ public class HPZL003 extends DaoEPBase {
* get the partType - 零件类型.
* get the partType - 零件类型.
* @return the partType
* @return the partType
*/
*/
public
Boolean
getPartType
()
{
public
Integer
getPartType
()
{
return
this
.
partType
;
return
this
.
partType
;
}
}
...
@@ -859,7 +859,7 @@ public class HPZL003 extends DaoEPBase {
...
@@ -859,7 +859,7 @@ public class HPZL003 extends DaoEPBase {
*
*
* @param partType - 零件类型
* @param partType - 零件类型
*/
*/
public
void
setPartType
(
Boolean
partType
)
{
public
void
setPartType
(
Integer
partType
)
{
this
.
partType
=
partType
;
this
.
partType
=
partType
;
}
}
/**
/**
...
@@ -1147,14 +1147,14 @@ public class HPZL003 extends DaoEPBase {
...
@@ -1147,14 +1147,14 @@ public class HPZL003 extends DaoEPBase {
setProcessName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_process_name
)),
processName
));
setProcessName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_process_name
)),
processName
));
setWorkCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_work_code
)),
workCode
));
setWorkCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_work_code
)),
workCode
));
setCheckCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_check_code
)),
checkCode
));
setCheckCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_check_code
)),
checkCode
));
setPrdtType
(
NumberUtils
.
to
Boolean
(
StringUtils
.
toString
(
map
.
get
(
FIELD_prdt_type
)),
prdtType
));
setPrdtType
(
NumberUtils
.
to
Integer
(
StringUtils
.
toString
(
map
.
get
(
FIELD_prdt_type
)),
prdtType
));
setPrdtCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_prdt_code
)),
prdtCode
));
setPrdtCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_prdt_code
)),
prdtCode
));
setPrdtName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_prdt_name
)),
prdtName
));
setPrdtName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_prdt_name
)),
prdtName
));
setPrdtLength
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_prdt_length
)),
prdtLength
));
setPrdtLength
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_prdt_length
)),
prdtLength
));
setPrdtWidth
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_prdt_width
)),
prdtWidth
));
setPrdtWidth
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_prdt_width
)),
prdtWidth
));
setPrdtThick
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_prdt_thick
)),
prdtThick
));
setPrdtThick
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_prdt_thick
)),
prdtThick
));
setPrdtSpec
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_prdt_spec
)),
prdtSpec
));
setPrdtSpec
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_prdt_spec
)),
prdtSpec
));
setPartType
(
NumberUtils
.
to
Boolean
(
StringUtils
.
toString
(
map
.
get
(
FIELD_part_type
)),
partType
));
setPartType
(
NumberUtils
.
to
Integer
(
StringUtils
.
toString
(
map
.
get
(
FIELD_part_type
)),
partType
));
setPartCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_part_code
)),
partCode
));
setPartCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_part_code
)),
partCode
));
setPartName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_part_name
)),
partName
));
setPartName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_part_name
)),
partName
));
setPartLength
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_part_length
)),
partLength
));
setPartLength
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_part_length
)),
partLength
));
...
@@ -1170,7 +1170,7 @@ public class HPZL003 extends DaoEPBase {
...
@@ -1170,7 +1170,7 @@ public class HPZL003 extends DaoEPBase {
setCheckName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_check_name
)),
checkName
));
setCheckName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_check_name
)),
checkName
));
setCheckDate
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
DateUtils
.
formatShort
(
map
.
get
(
FIELD_check_date
))),
checkDate
));
setCheckDate
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
DateUtils
.
formatShort
(
map
.
get
(
FIELD_check_date
))),
checkDate
));
setCheckStatus
(
NumberUtils
.
toInteger
(
StringUtils
.
toString
(
map
.
get
(
FIELD_check_status
)),
checkStatus
));
setCheckStatus
(
NumberUtils
.
toInteger
(
StringUtils
.
toString
(
map
.
get
(
FIELD_check_status
)),
checkStatus
));
setRegisterDate
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_register_date
)),
registerDate
));
setRegisterDate
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
DateUtils
.
formatShort
(
map
.
get
(
FIELD_register_date
)
)),
registerDate
));
}
}
/**
/**
...
...
src/main/java/com/baosight/hpjx/hp/zl/service/ServiceHPZL003.java
View file @
48db1503
...
@@ -38,14 +38,10 @@ public class ServiceHPZL003 extends ServiceEPBase {
...
@@ -38,14 +38,10 @@ public class ServiceHPZL003 extends ServiceEPBase {
DdynamicEnum
.
PROJ_RECORD_BLOCK_ID
,
DdynamicEnum
.
PROJ_RECORD_BLOCK_ID
,
DdynamicEnum
.
FACTORY_CODE_BOX_BLOCK_ID
,
DdynamicEnum
.
FACTORY_CODE_BOX_BLOCK_ID
,
DdynamicEnum
.
GROUP_RECORD_BLOCK_ID
,
DdynamicEnum
.
GROUP_RECORD_BLOCK_ID
,
DdynamicEnum
.
USER_ID_BOX_BLOCK_ID
),
DdynamicEnum
.
USER_ID_BOX_BLOCK_ID
,
DdynamicEnum
.
INVENT_SPEC_ALL_BLOCK_ID
),
new
HashMap
<
String
,
Object
>(){}
new
HashMap
<
String
,
Object
>(){}
);
);
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
map
.
put
(
"itemCode"
,
"ITEM_CODE in ('2','3','4')"
);
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
INVENT_NAME_BLOCK_ID
),
map
,
false
);
inInfo
.
addBlock
(
EiConstant
.
resultBlock
).
addBlockMeta
(
new
HPZL003
().
eiMetadata
);
inInfo
.
addBlock
(
EiConstant
.
resultBlock
).
addBlockMeta
(
new
HPZL003
().
eiMetadata
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"初始化失败"
);
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"初始化失败"
);
...
...
src/main/java/com/baosight/hpjx/hp/zl/sql/HPZL003.xml
View file @
48db1503
...
@@ -160,7 +160,7 @@
...
@@ -160,7 +160,7 @@
process_name = #processName#
process_name = #processName#
</isNotEmpty>
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"workCode"
>
<isNotEmpty
prepend=
" AND "
property=
"workCode"
>
work_code
= #workCode#
work_code
like concat('%',#workCode#,'%')
</isNotEmpty>
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"checkCode"
>
<isNotEmpty
prepend=
" AND "
property=
"checkCode"
>
check_code like concat('%',#checkCode#,'%')
check_code like concat('%',#checkCode#,'%')
...
...
src/main/webapp/HP/ZL/HPZL003.js
View file @
48db1503
...
@@ -3,7 +3,7 @@ $(function () {
...
@@ -3,7 +3,7 @@ $(function () {
var
projRecordBox
=
__eiInfo
.
getBlock
(
"proj_record_block_id"
).
getMappedRows
();
var
projRecordBox
=
__eiInfo
.
getBlock
(
"proj_record_block_id"
).
getMappedRows
();
var
factoryCodeBox_block_id
=
__eiInfo
.
getBlock
(
"factoryCodeBox_block_id"
).
getMappedRows
();
var
factoryCodeBox_block_id
=
__eiInfo
.
getBlock
(
"factoryCodeBox_block_id"
).
getMappedRows
();
var
groupRecordBox
=
__eiInfo
.
getBlock
(
"group_record_block_id"
).
getMappedRows
();
var
groupRecordBox
=
__eiInfo
.
getBlock
(
"group_record_block_id"
).
getMappedRows
();
var
inventNameBox
=
__eiInfo
.
getBlock
(
"invent_
name
_block_id"
).
getMappedRows
();
var
inventNameBox
=
__eiInfo
.
getBlock
(
"invent_
spec_all
_block_id"
).
getMappedRows
();
var
userIdBox
=
__eiInfo
.
getBlock
(
"userIdBox_block_id"
).
getMappedRows
();
var
userIdBox
=
__eiInfo
.
getBlock
(
"userIdBox_block_id"
).
getMappedRows
();
IPLATUI
.
EFGrid
=
{
IPLATUI
.
EFGrid
=
{
...
@@ -16,6 +16,18 @@ $(function () {
...
@@ -16,6 +16,18 @@ $(function () {
},
},
columns
:
[
columns
:
[
{
{
field
:
"operator"
,
template
:
function
(
item
)
{
let
factoryCode
=
item
.
factoryName
;
let
template
=
''
;
if
(
factoryCode
)
{
template
+=
'<a style="cursor: pointer;display: inline-flex;justify-content: center;margin:auto 5px" '
+
'onclick="showFile(
\'
'
+
item
.
checkCode
+
'
\'
)" >附件清单</a>'
;
}
return
template
;
}
},{
field
:
"orgNo"
,
field
:
"orgNo"
,
filter
:
function
(
options
)
{
filter
:
function
(
options
)
{
var
province
=
options
.
model
[
'factoryCode'
];
var
province
=
options
.
model
[
'factoryCode'
];
...
@@ -40,22 +52,20 @@ $(function () {
...
@@ -40,22 +52,20 @@ $(function () {
template
:
function
(
dataItem
)
{
template
:
function
(
dataItem
)
{
for
(
let
i
=
0
;
i
<
inventNameBox
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
inventNameBox
.
length
;
i
++
)
{
if
(
inventNameBox
[
i
][
'valueField'
]
===
dataItem
[
'prdtCode'
])
{
if
(
inventNameBox
[
i
][
'valueField'
]
===
dataItem
[
'prdtCode'
])
{
return
inventNameBox
[
i
][
'
text
Field'
]
return
inventNameBox
[
i
][
'
param1
Field'
]
}
}
}
}
return
dataItem
[
"prdtCode"
];
return
dataItem
[
"prdtCode"
];
},
}
editor
:
function
(
container
,
options
)
{
},
{
let
inInfo
=
new
EiInfo
();
field
:
"partCode"
,
inInfo
.
set
(
"inqu_status-0-factoryCode"
,
options
.
model
[
"factoryCode"
]);
template
:
function
(
dataItem
)
{
inInfo
.
set
(
"inqu_status-0-orgNo"
,
options
.
model
[
"orgNo"
]);
for
(
let
i
=
0
;
i
<
inventNameBox
.
length
;
i
++
)
{
inInfo
.
set
(
"inqu_status-0-projCode"
,
options
.
model
[
"projCode"
]);
if
(
inventNameBox
[
i
][
'valueField'
]
===
dataItem
[
'partCode'
])
{
inInfo
.
set
(
"inqu_status-0-isSplicingSymbol"
,
false
);
return
inventNameBox
[
i
][
'param1Field'
]
inInfo
.
set
(
"serviceName"
,
"HPSC005B"
);
}
inInfo
.
set
(
"methodName"
,
"queryComboBox"
);
}
inInfo
.
set
(
"blockId"
,
"prdtCode_block_id"
);
return
dataItem
[
"partCode"
];
inInfo
.
set
(
"field"
,
options
.
field
);
prdtNameGlobalData
=
refreshSelect
(
container
,
inInfo
);
}
}
},
{
},
{
field
:
"checkDate"
,
field
:
"checkDate"
,
...
@@ -77,7 +87,7 @@ $(function () {
...
@@ -77,7 +87,7 @@ $(function () {
// 此 grid 对象
// 此 grid 对象
grid
.
dataSource
.
bind
(
"change"
,
function
(
e
)
{
grid
.
dataSource
.
bind
(
"change"
,
function
(
e
)
{
// 判断父级节点是否发生变化
// 判断父级节点是否发生变化
/*
if (e.field == "unpassQuantity") {
if
(
e
.
field
==
"unpassQuantity"
)
{
// loadChange(grid,e,"passQuantity");
// loadChange(grid,e,"passQuantity");
var
passQuantity
=
parseFloat
(
e
.
items
[
0
][
'quantity'
])
var
passQuantity
=
parseFloat
(
e
.
items
[
0
][
'quantity'
])
-
parseFloat
(
e
.
items
[
0
][
'unpassQuantity'
]);
-
parseFloat
(
e
.
items
[
0
][
'unpassQuantity'
]);
...
@@ -88,27 +98,17 @@ $(function () {
...
@@ -88,27 +98,17 @@ $(function () {
var
unpassQuantity
=
parseFloat
(
e
.
items
[
0
][
'quantity'
])
var
unpassQuantity
=
parseFloat
(
e
.
items
[
0
][
'quantity'
])
-
parseFloat
(
e
.
items
[
0
][
'passQuantity'
]);
-
parseFloat
(
e
.
items
[
0
][
'passQuantity'
]);
resultGrid
.
setCellValue
(
e
.
items
[
0
],
"unpassQuantity"
,
unpassQuantity
);
resultGrid
.
setCellValue
(
e
.
items
[
0
],
"unpassQuantity"
,
unpassQuantity
);
}*/
/*if (e.field == "prdtCode"){
var item = e.items[0];
for (let i = 0; i < prdtNameGlobalData.length; i++) {
if (prdtNameGlobalData[i]['valueField'] === item["prdtCode"]) {
resultGrid.setCellValue(item, "prdtName", prdtNameGlobalData[i]['textField'].split(']')[1]);
resultGrid.setCellValue(item, "workCode", prdtNameGlobalData[i]['param1Field']);
resultGrid.setCellValue(item, "prdtSpec", prdtNameGlobalData[i]['param2Field']);
resultGrid.setCellValue(item, "partCode", prdtNameGlobalData[i]['param3Field']);
resultGrid.setCellValue(item, "partName", prdtNameGlobalData[i]['param4Field']);
resultGrid.setCellValue(item, "partSpec", prdtNameGlobalData[i]['param5Field']);
resultGrid.setCellValue(item, "registerDate", prdtNameGlobalData[i]['param6Field']);
resultGrid.setCellValue(item, "quantity", prdtNameGlobalData[i]['param7Field']);
resultGrid.setCellValue(item, "unitWt", prdtNameGlobalData[i]['param8Field']);
resultGrid.setCellValue(item, "childId", prdtNameGlobalData[i]['param9Field']);
break
}
}
}
}*/
var
item
=
e
.
items
[
0
];
var
item
=
e
.
items
[
0
];
if
(
e
.
field
==
"projCode"
){
if
(
e
.
field
==
"prdtCode"
){
let
prdtNameRow
=
prdtNameGlobalData
.
filter
(
row
=>
row
.
valueField
===
item
[
'prdtCode'
])
resultGrid
.
setCellValue
(
item
,
"prdtName"
,
prdtNameRow
[
'param1Field'
]);
resultGrid
.
setCellValue
(
item
,
"prdtSpec"
,
prdtNameRow
[
'param2Field'
]);
}
else
if
(
e
.
field
==
"partCode"
){
let
prdtNameRow
=
prdtNameGlobalData
.
filter
(
row
=>
row
.
valueField
===
item
[
'partCode'
])
resultGrid
.
setCellValue
(
item
,
"partName"
,
prdtNameRow
[
'param1Field'
]);
resultGrid
.
setCellValue
(
item
,
"partSpec"
,
prdtNameRow
[
'param2Field'
]);
}
else
if
(
e
.
field
==
"projCode"
){
for
(
let
i
=
0
;
i
<
projRecordBox
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
projRecordBox
.
length
;
i
++
)
{
if
(
projRecordBox
[
i
][
'valueField'
]
===
item
[
'projCode'
])
{
if
(
projRecordBox
[
i
][
'valueField'
]
===
item
[
'projCode'
])
{
resultGrid
.
setCellValue
(
item
,
"projName"
,
projRecordBox
[
i
][
'textField'
]);
resultGrid
.
setCellValue
(
item
,
"projName"
,
projRecordBox
[
i
][
'textField'
]);
...
@@ -171,31 +171,59 @@ let save = function () {
...
@@ -171,31 +171,59 @@ let save = function () {
return
;
return
;
}
}
for
(
let
i
=
0
;
i
<
rows
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
rows
.
length
;
i
++
)
{
let
factoryCode
=
rows
[
i
][
'factoryCode'
];
let
orgNo
=
rows
[
i
][
'orgNo'
];
let
projCode
=
rows
[
i
][
'projCode'
];
let
passQuantity
=
rows
[
i
][
'passQuantity'
];
let
passQuantity
=
rows
[
i
][
'passQuantity'
];
let
unpassQuantity
=
rows
[
i
][
'unpassQuantity'
];
let
unpassQuantity
=
rows
[
i
][
'unpassQuantity'
];
let
quantity
=
rows
[
i
][
'quantity'
];
let
quantity
=
rows
[
i
][
'quantity'
];
let
checkBy
=
rows
[
i
][
'checkBy'
];
let
checkBy
=
rows
[
i
][
'checkBy'
];
let
checkCode
=
rows
[
i
][
'checkCode'
];
let
checkCode
=
rows
[
i
][
'checkCode'
];
let
checkStatus
=
rows
[
i
][
'checkStatus'
];
let
checkStatus
=
rows
[
i
][
'checkStatus'
];
let
workCode
=
rows
[
i
][
'workCode'
];
if
(
!
isNumber
(
passQuantity
)
||!
isNumber
(
unpassQuantity
))
{
let
registerDate
=
rows
[
i
][
'registerDate'
];
message
(
"质检单号["
+
checkCode
+
"]合格数量与不合格数量必须是大于等于0的数字!"
);
if
(
isBlank
(
factoryCode
))
{
message
(
"生产任务单号["
+
workCode
+
"]工厂不能为空!"
);
return
;
}
if
(
isBlank
(
orgNo
))
{
message
(
"生产任务单号["
+
workCode
+
"]部门不能为空!"
);
return
;
return
;
}
}
/*if (passQuantity > quantity
) {
if
(
isBlank
(
projCode
)
)
{
message("
质检单号[" + checkCode + "]合格数量不能大于报工数量
!");
message
(
"
生产任务单号["
+
workCode
+
"]项目不能为空
!"
);
return
;
return
;
}
}
if (
unpassQuantity > quantity
) {
if
(
isBlank
(
workCode
)
)
{
message("
质检单号[" + checkCode + "]不合格数量不能大于报工数量
!");
message
(
"
生产任务单号["
+
workCode
+
"]不能为空
!"
);
return
;
return
;
}*/
}
if
(
!
isNumber
(
quantity
))
{
message
(
"生产任务单号["
+
workCode
+
"]派工数量必须是大于等于0的数字!"
);
return
;
}
if
(
isBlank
(
registerDate
))
{
message
(
"生产任务单号["
+
workCode
+
"]派工日期不能为空!"
);
return
;
}
if
(
!
isNumber
(
passQuantity
)
||
!
isNumber
(
unpassQuantity
))
{
message
(
"生产任务单号["
+
workCode
+
"]合格数量与不合格数量必须是大于等于0的数字!"
);
return
;
}
if
(
parseFloat
(
quantity
)
<
parseFloat
(
passQuantity
)
)
{
message
(
"生产任务单号["
+
workCode
+
"]合格数量不能大于报工数量!"
);
return
;
}
if
(
parseFloat
(
quantity
)
<
parseFloat
(
unpassQuantity
))
{
message
(
"生产任务单号["
+
workCode
+
"]不合格数量不能大于报工数量!"
);
return
;
}
if
(
!
checkBy
||
checkBy
===
' '
){
if
(
!
checkBy
||
checkBy
===
' '
){
message
(
"
质检单号["
+
chec
kCode
+
"]质检人员不能为空!"
);
message
(
"
生产任务单号["
+
wor
kCode
+
"]质检人员不能为空!"
);
return
;
return
;
}
}
if
(
checkStatus
===
'1'
){
if
(
checkStatus
===
'1'
){
message
(
"
质检单号["
+
chec
kCode
+
"]已经质检完成不能修改!"
);
message
(
"
生产任务单号["
+
wor
kCode
+
"]已经质检完成不能修改!"
);
return
;
return
;
}
}
}
}
...
@@ -233,4 +261,13 @@ function updateStatus() {
...
@@ -233,4 +261,13 @@ function updateStatus() {
});
});
}
}
/**
* 附件清单
*
* @param bizId
*/
function
showFile
(
bizId
)
{
CommonUtils
.
showFile
(
"ZL03"
,
bizId
);
}
src/main/webapp/HP/ZL/HPZL003.jsp
View file @
48db1503
...
@@ -27,7 +27,11 @@
...
@@ -27,7 +27,11 @@
<EF:EFInput blockId="inqu_status" row="0" ename="checkName" cname="质检员" placeholder="模糊查询" colWidth="3"/>
<EF:EFInput blockId="inqu_status" row="0" ename="checkName" cname="质检员" placeholder="模糊查询" colWidth="3"/>
</div>
</div>
<div class="row">
<div class="row">
<EF:EFInput blockId="inqu_status" row="0" ename="factoryName" cname="工厂名称" placeholder="模糊查询" colWidth="3"/>
<EF:EFSelect cname="工厂名称" ename="factoryCode" blockId="inqu_status" row="0" colWidth="3">
<EF:EFOption label="全部" value=""/>
<EF:EFOptions blockId="factoryCodeBox_block_id" textField="textField" valueField="valueField"/>
</EF:EFSelect>
<EF:EFInput blockId="inqu_status" row="0" ename="workCode" cname="生产任务单号" placeholder="模糊查询" colWidth="3"/>
<EF:EFSelect cname="质检状态" ename="checkStatus" blockId="inqu_status" row="0" colWidth="3">
<EF:EFSelect cname="质检状态" ename="checkStatus" blockId="inqu_status" row="0" colWidth="3">
<EF:EFOption label="全部" value=""/>
<EF:EFOption label="全部" value=""/>
<EF:EFOption label="质检中" value="0"/>
<EF:EFOption label="质检中" value="0"/>
...
@@ -39,6 +43,7 @@
...
@@ -39,6 +43,7 @@
<EF:EFRegion id="result" title="明细信息">
<EF:EFRegion id="result" title="明细信息">
<EF:EFGrid blockId="result" autoDraw="override" isFloat="true" checkMode="row">
<EF:EFGrid blockId="result" autoDraw="override" isFloat="true" checkMode="row">
<EF:EFColumn ename="id" cname="内码" hidden="true"/>
<EF:EFColumn ename="id" cname="内码" hidden="true"/>
<EF:EFColumn ename="operator" cname="操作" locked="true" enable="false" width="120" align="center"/>
<EF:EFColumn ename="companyCode" cname="企业编码" hidden="true"/>
<EF:EFColumn ename="companyCode" cname="企业编码" hidden="true"/>
<EF:EFComboColumn ename="factoryCode" cname="工厂"
<EF:EFComboColumn ename="factoryCode" cname="工厂"
columnTemplate="#=textField#" itemTemplate="#=textField#"
columnTemplate="#=textField#" itemTemplate="#=textField#"
...
@@ -64,27 +69,32 @@
...
@@ -64,27 +69,32 @@
<EF:EFOptions blockId="proj_record_block_id" textField="textField" valueField="valueField"/>
<EF:EFOptions blockId="proj_record_block_id" textField="textField" valueField="valueField"/>
</EF:EFComboColumn>
</EF:EFComboColumn>
<EF:EFColumn ename="projName" cname="项目名称" hidden="true"/>
<EF:EFColumn ename="projName" cname="项目名称" hidden="true"/>
<EF:EFColumn ename="workCode" cname="生产任务单号" width="130"
hidden="true
"/>
<EF:EFColumn ename="workCode" cname="生产任务单号" width="130"
enable="true" required="true" readonly="true" align="center
"/>
<EF:EFColumn ename="checkCode" cname="质检单号" width="130" enable="false" readonly="true" align="center"/>
<EF:EFColumn ename="checkCode" cname="质检单号" width="130" enable="false" readonly="true" align="center"/>
<EF:EFColumn ename="processName" cname="工序" width="100" hidden="true"/>
<EF:EFColumn ename="processName" cname="工序" width="100" hidden="true"/>
<EF:EFComboColumn ename="prdtCode" cname="产品名称"
<EF:EFComboColumn ename="prdtCode" cname="部件名称"
columnTemplate="#=textField#" itemTemplate="#=textField#"
textField="textField" valueField="valueField"
maxLength="16" readonly="true" width="120" required="true"
align="center" filter="contains" sort="true">
<EF:EFOptions blockId="invent_spec_all_block_id" textField="textField" valueField="valueField"/>
</EF:EFComboColumn>
<EF:EFColumn ename="prdtName" cname="产品名称" hidden="true"/>
<EF:EFColumn ename="prdtSpec" cname="产品规格" enable="true" width="120" align="center" hidden="true"/>
<EF:EFComboColumn ename="partCode" cname="零件名称"
columnTemplate="#=textField#" itemTemplate="#=textField#"
columnTemplate="#=textField#" itemTemplate="#=textField#"
textField="textField" valueField="valueField"
textField="textField" valueField="valueField"
maxLength="16" readonly="true" width="120" required="true"
maxLength="16" readonly="true" width="120" required="true"
align="center" filter="contains" sort="true">
align="center" filter="contains" sort="true">
<EF:EFOptions blockId="invent_
name
_block_id" textField="textField" valueField="valueField"/>
<EF:EFOptions blockId="invent_
spec_all
_block_id" textField="textField" valueField="valueField"/>
</EF:EFComboColumn>
</EF:EFComboColumn>
<EF:EFColumn ename="prdtName" cname="产品名称" width="100" hidden="true"/>
<EF:EFColumn ename="partName" cname="零件名称" hidden="true"/>
<EF:EFColumn ename="prdtSpec" cname="产品规格" enable="false" width="120" align="center" hidden="true"/>
<EF:EFColumn ename="partSpec" cname="零件规格" hidden="true"/>
<EF:EFColumn ename="partCode" cname="零件名称" enable="false" width="120" align="center" hidden="true"/>
<EF:EFColumn ename="registerDate" cname="派工日期" width="120" enable="true" align="center" editType="date"
<EF:EFColumn ename="partName" cname="零件名称" enable="false" width="120" align="center" hidden="true"/>
<EF:EFColumn ename="partSpec" cname="零件规格" enable="false" width="120" align="center" hidden="true"/>
<EF:EFColumn ename="quantity" cname="派工数量" width="90" enable="false" readonly="true" align="center" hidden="true"/>
<EF:EFColumn ename="registerDate" cname="派工日期" width="120" enable="true" align="center" editType="date" hidden="true"
dateFormat="yyyy-MM-dd" parseFormats="['yyyyMMdd']" required="true"/>
dateFormat="yyyy-MM-dd" parseFormats="['yyyyMMdd']" required="true"/>
<EF:EFColumn ename="
passQuantity" cname="合格数量" format="{0:0.0}" width="90" align="center" required="true
"/>
<EF:EFColumn ename="
quantity" cname="派工数量" width="100" enable="true" required="true" readonly="true" align="center" format="{0:N0}
"/>
<EF:EFColumn ename="
unpassQuantity" cname="不合格数量" format="{0:0.0}" width="100" align="center"
<EF:EFColumn ename="
passQuantity" cname="合格数量" width="100" align="center" required="true" format="{0:N0}"/>
required="true
"/>
<EF:EFColumn ename="unpassQuantity" cname="不合格数量" width="100" align="center" required="true" format="{0:N0}
"/>
<EF:EFColumn ename="checkDate" cname="质检日期" width="120" enable="true" align="center" editType="date"
<EF:EFColumn ename="checkDate" cname="质检日期" width="120" enable="true" align="center" editType="date"
dateFormat="yyyy-MM-dd" parseFormats="['yyyyMMdd']" required="true"/>
dateFormat="yyyy-MM-dd" parseFormats="['yyyyMMdd']" required="true"/>
<EF:EFComboColumn ename="checkBy" cname="质检员" columnTemplate="#=textField#" itemTemplate="#=textField#"
<EF:EFComboColumn ename="checkBy" cname="质检员" columnTemplate="#=textField#" itemTemplate="#=textField#"
...
...
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