Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hg-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
hg-smart
Commits
55530798
Commit
55530798
authored
Nov 21, 2024
by
liuyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整工序单价单位显示
parent
37d89ea1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
5 deletions
+13
-5
HGSJ003.js
src/main/webapp/HG/SJ/HGSJ003.js
+13
-5
No files found.
src/main/webapp/HG/SJ/HGSJ003.js
View file @
55530798
...
@@ -75,7 +75,7 @@ $(function (){
...
@@ -75,7 +75,7 @@ $(function (){
})
})
}
}
},
},
template
:
function
(
dataItem
)
{
/*
template: function (dataItem) {
for (let i = 0; i < processCodes.length; i++) {
for (let i = 0; i < processCodes.length; i++) {
if (processCodes[i]['valueField'] === dataItem['processCode']) {
if (processCodes[i]['valueField'] === dataItem['processCode']) {
dataItem['processName'] = processCodes[i]['textField'].split("]")[1];
dataItem['processName'] = processCodes[i]['textField'].split("]")[1];
...
@@ -84,7 +84,7 @@ $(function (){
...
@@ -84,7 +84,7 @@ $(function (){
}
}
}
}
return dataItem['processCode'];
return dataItem['processCode'];
},
},
*/
editor
:
function
(
container
,
options
)
{
editor
:
function
(
container
,
options
)
{
this
.
filter
(
options
);
this
.
filter
(
options
);
}
}
...
@@ -123,11 +123,19 @@ $(function (){
...
@@ -123,11 +123,19 @@ $(function (){
if
(
e
.
field
==
"factoryCode"
)
{
if
(
e
.
field
==
"factoryCode"
)
{
loadChange
(
grid
,
e
,
"processCode"
);
loadChange
(
grid
,
e
,
"processCode"
);
}
else
if
(
e
.
field
==
"processCode"
)
{
}
else
if
(
e
.
field
==
"processCode"
)
{
let
dataItem
=
e
.
items
[
0
];
for
(
let
i
=
0
;
i
<
processCodes
.
length
;
i
++
)
{
if
(
processCodes
[
i
][
'valueField'
]
===
dataItem
[
'processCode'
])
{
resultGrid
.
setCellValue
(
dataItem
,
"unit"
,
processCodes
[
i
][
'param3Field'
]);
resultGrid
.
setCellValue
(
dataItem
,
"processName"
,
processCodes
[
i
][
'textField'
].
split
(
"]"
)[
1
])
break
;
}
}
if
(
e
.
items
[
0
].
factoryCode
.
length
===
0
){
if
(
e
.
items
[
0
].
factoryCode
.
length
===
0
){
loadChange
(
grid
,
e
,
"factoryCode"
);
loadChange
(
grid
,
e
,
"factoryCode"
);
}
}
else
{
loadChange
(
grid
,
e
,
"unit"
);
loadChange
(
grid
,
e
,
"unit"
);
loadChange
(
grid
,
e
,
"processClass"
);
}
}
}
});
});
},
},
...
@@ -173,7 +181,7 @@ $(function (){
...
@@ -173,7 +181,7 @@ $(function (){
exportGrid
:
{
exportGrid
:
{
exportFileName
:
function
(
gridInstance
)
{
exportFileName
:
function
(
gridInstance
)
{
// 导出的文件名包含时间戳 yyyy-MM-dd HH:mm:ss
// 导出的文件名包含时间戳 yyyy-MM-dd HH:mm:ss
return
"工
艺流程
_"
+
kendo
.
toString
(
new
Date
(),
IPLAT
.
FORMAT
.
DATE_14_PR
);
return
"工
序单价
_"
+
kendo
.
toString
(
new
Date
(),
IPLAT
.
FORMAT
.
DATE_14_PR
);
},
},
exportFileType
:
"xls"
,
exportFileType
:
"xls"
,
exportBlockId
:
"result"
,
exportBlockId
:
"result"
,
...
...
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