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
a64ba496
Commit
a64ba496
authored
Mar 30, 2024
by
鲁鑫
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
质量信息记录调整
parent
0bdac9e0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
53 additions
and
25 deletions
+53
-25
qualityInfoRecordDetail.js
...z/topsun/sap/qualityInfoRecord/qualityInfoRecordDetail.js
+53
-25
No files found.
topsun-xt/src/main/webapp/biz/topsun/sap/qualityInfoRecord/qualityInfoRecordDetail.js
View file @
a64ba496
...
...
@@ -31,7 +31,7 @@ function initItemGrid() {
dataAction
:
'server'
,
url
:
web_app
.
name
+
'/sapQualityInfoRecordItem/querySapQualityInfoRecordItems.ajax'
,
parms
:{
sapQualityInfoRecordId
:
Public
.
isNotBlank
(
getId
())?
getId
():
$
(
"#tempId"
).
val
()},
height
:
'9
8
%'
,
height
:
'9
5
%'
,
heightDiff
:
-
4
,
sortName
:
'id'
,
sortOrder
:
'asc'
,
...
...
@@ -44,10 +44,18 @@ function initItemGrid() {
//autoApplyNextEditor:false,
toolbar
:
toolbarOptions
,
onBeforeEdit
:
function
(
editParma
)
{
if
(
Public
.
isBlank
(
editParma
.
record
.
grsrq
)
&&
(
editParma
.
column
.
name
==
'grscertnr'
||
editParma
.
column
.
name
==
'grscertdatai'
)){
//输入物料号敲回车后,品名描述和无老祖自动带出,而且这两个字段将成为灰色,不允许修改
if
(
Public
.
isNotBlank
(
editParma
.
record
.
matnr
)
&&
editParma
.
column
.
name
==
'matklName'
){
return
false
;
}
if
(
Public
.
isBlank
(
editParma
.
record
.
fscrq
)
&&
(
editParma
.
column
.
name
==
'fsccertnr'
||
editParma
.
column
.
name
==
'fsccertdatai'
)){
//不输入物料号而只输入物料组。这种情况下,物料编码和品名描述字段就是灰色,而物料组可以写操作
if
(
Public
.
isNotBlank
(
editParma
.
record
.
matklName
)
&&
Public
.
isBlank
(
editParma
.
record
.
matnr
)
&&
editParma
.
column
.
name
==
'matnr'
){
return
false
;
}
if
(
"0"
===
editParma
.
record
.
grsrq
&&
(
editParma
.
column
.
name
==
'grscertnr'
||
editParma
.
column
.
name
==
'grscertdatai'
)){
return
false
;
}
if
(
"0"
===
editParma
.
record
.
fscrq
&&
(
editParma
.
column
.
name
==
'fsccertnr'
||
editParma
.
column
.
name
==
'fsccertdatai'
)){
return
false
;
}
...
...
@@ -101,7 +109,7 @@ function getGridColumns() {
},
{
display
:
"物料编码"
,
name
:
"matnr"
,
width
:
"200"
,
align
:
"left"
,
type
:
"string"
,
editor
:
{
required
:
tru
e
,
type
:
"select"
,
required
:
fals
e
,
type
:
"select"
,
data
:
{
type
:
'system'
,
name
:
"sapMaterialSelect"
,
...
...
@@ -120,11 +128,11 @@ function getGridColumns() {
}
},
{
display
:
"物料描述"
,
name
:
"maktx"
,
width
:
"300"
,
align
:
"left"
,
type
:
"string"
,
editor
:
{
required
:
true
,
type
:
"text"
}
//
editor: {required: true, type: "text"}
},
{
display
:
"物料组"
,
name
:
"matklName"
,
width
:
"200"
,
align
:
"left"
,
type
:
"string"
,
editor
:
{
required
:
tru
e
,
type
:
"select"
,
required
:
fals
e
,
type
:
"select"
,
data
:
{
type
:
'system'
,
name
:
"dictionary"
,
...
...
@@ -168,7 +176,7 @@ function getGridColumns() {
{
display
:
"打样单号码"
,
name
:
"zspaufnr"
,
width
:
"200"
,
align
:
"left"
,
type
:
"string"
,
editor
:
{
type
:
"text"
,
required
:
false
,}
},
{
display
:
"GRSRQ"
,
name
:
"grsrq"
,
width
:
"100"
,
align
:
"left"
,
type
:
"string"
,
{
display
:
"GRSRQ"
,
name
:
"grsrq
TextView
"
,
width
:
"100"
,
align
:
"left"
,
type
:
"string"
,
editor
:
{
type
:
'dictionary'
,
data
:
{
name
:
'grsrq'
},
...
...
@@ -186,10 +194,10 @@ function getGridColumns() {
{
display
:
"GRS证书到期日"
,
name
:
"grscertdatai"
,
width
:
"150"
,
align
:
"left"
,
type
:
"date"
,
editor
:
{
type
:
'date'
}
},
{
display
:
"FSC认证要求"
,
name
:
"fscrq"
,
width
:
"200"
,
align
:
"left"
,
type
:
"string"
,
{
display
:
"FSC认证要求"
,
name
:
"fscrq
TextView
"
,
width
:
"200"
,
align
:
"left"
,
type
:
"string"
,
editor
:
{
type
:
'dictionary'
,
data
:
{
name
:
'
grs
rq'
},
data
:
{
name
:
'
fsc
rq'
},
textField
:
'fscrqTextView'
,
valueField
:
'fscrq'
,
required
:
true
,
...
...
@@ -239,35 +247,55 @@ function getExtendedData(processAction) {
if
(
!
datas
)
{
return
false
;
}
if
(
Public
.
isNotBlank
(
$
(
"#tempId"
).
val
())){
var
checked1
=
false
;
var
checked2
=
false
;
var
checked3
=
false
;
var
checked4
=
false
;
//if (Public.isNotBlank($("#tempId").val())){
datas
.
forEach
(
data
=>
{
data
.
id
=
""
;
data
.
sapQualityInfoRecordId
=
""
data
.
zqinfno
=
""
data
.
type
=
""
data
.
message
=
""
if
(
Public
.
isNotBlank
(
data
.
grsrq
)
){
//
data.id = "";
//
data.sapQualityInfoRecordId=""
//
data.zqinfno=""
//
data.type=""
//
data.message=""
if
(
"X"
===
data
.
grsrq
){
if
(
Public
.
isBlank
(
data
.
grscertnr
)){
Public
.
tip
(
"GRS证书号不能为空"
)
return
false
checked1
=
true
;
}
if
(
Public
.
isBlank
(
data
.
grscertdatai
)){
Public
.
tip
(
"GRS证书到期日不能为空"
)
return
false
checked2
=
true
;
}
}
if
(
Public
.
isNotBlank
(
data
.
fscrq
)
){
if
(
"X"
===
data
.
fscrq
){
if
(
Public
.
isBlank
(
data
.
fsccertnr
)){
Public
.
tip
(
"FSC证书号不能为空"
)
return
false
checked3
=
true
;
}
if
(
Public
.
isBlank
(
data
.
fsccertdatai
)){
Public
.
tip
(
"FSC证书到期日不能为空"
)
return
false
checked4
=
true
;
}
}
})
if
(
checked1
){
Public
.
tip
(
"GRS证书号不能为空"
)
return
false
}
if
(
checked2
){
Public
.
tip
(
"GRS证书到期日不能为空"
)
return
false
}
if
(
checked3
){
Public
.
tip
(
"FSC证书号不能为空"
)
return
false
}
if
(
checked4
){
Public
.
tip
(
"FSC证书到期日不能为空"
)
return
false
}
//}
extendedData
.
items
=
Public
.
encodeJSONURI
(
datas
);
}
return
extendedData
;
...
...
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