Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
K
kwell-mes
Project
Project
Details
Activity
Releases
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
gavelinfo
kwell-mes
Commits
4aa34ba3
Commit
4aa34ba3
authored
Mar 28, 2022
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
排产计划
parent
224e8594
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
15 deletions
+19
-15
edit.html
gavel/src/main/resources/templates/views/wo/pcjhk/edit.html
+19
-15
No files found.
gavel/src/main/resources/templates/views/wo/pcjhk/edit.html
View file @
4aa34ba3
...
...
@@ -16,7 +16,7 @@
</div>
</div>
<div
class=
"gui-col-sm3"
>
<label
class=
"gui-form-label"
>
选择时间:
</label>
<label
class=
"gui-form-label"
data-options=
"required:true"
>
选择时间:
</label>
<div
class=
"gui-input-block"
>
<input
type=
"text"
name=
"xzny"
>
</div>
...
...
@@ -107,6 +107,8 @@
var
$xzny
=
$div
.
find
(
'input[name="xzny"]'
);
var
$xzzc
=
$div
.
find
(
'input[name="xzzc"]'
);
var
$tag
=
$div
.
closest
(
'form'
).
attr
(
"tag"
);
var
woksrq
=
""
var
wojsrq
=
""
gas
.
load
(
paramInit
,
pageInit
,
dataInit
,
run
);
function
paramInit
(
ops
){
...
...
@@ -117,14 +119,13 @@
var
columns
=
[
{
title
:
"序号"
,
field
:
"xh"
,
fieldType
:
"ftString"
,
width
:
70
},
{
title
:
"生产单号"
,
field
:
"woDjid"
,
fieldType
:
"ftString"
,
width
:
120
},
// {title: "计划日期", field: "ksrq", fieldType: "date", editor: {
// type: 'datebox', required: true
// }
// },
// {title: "结束日期", field: "jsrq", fieldType: "date", editor: {
// type: 'datebox', required: true
{
title
:
"开始日期"
,
field
:
"ksrq"
,
fieldType
:
"date"
},
{
title
:
"结束日期"
,
field
:
"jsrq"
,
fieldType
:
"date"
// , editor: {
// type: 'datebox', required: true,disabled:true
// }
//
},
},
{
title
:
"物料ID"
,
field
:
"wlid"
,
hidden
:
true
},
{
title
:
"物料编码"
,
field
:
"wlxxCode"
,
width
:
120
},
{
title
:
"物料名称"
,
field
:
"wlxxName"
,
width
:
140
},
...
...
@@ -147,10 +148,16 @@
let
weekStart
=
data
.
weekStart
let
weekEnd
=
data
.
weekEnd
$xzzc
.
combobox
(
'setValue'
,
nowWeek
);
woksrq
=
weekStart
wojsrq
=
weekEnd
$datksrq
.
datebox
(
'setValue'
,
new
Date
(
weekStart
))
$datjsrq
.
datebox
(
'setValue'
,
new
Date
(
weekEnd
))
console
.
log
(
weekEnd
)
let
nowdata
=
$datagrid
.
datagrid
(
'getData'
).
rows
nowdata
.
forEach
(
function
(
e
){
e
.
ksrq
=
woksrq
e
.
jsrq
=
wojsrq
})
$datagrid
.
datagrid
(
"loadData"
,
nowdata
);
}})
$xzzc
.
iCombobox
({
valueField
:
'zcv'
,
textField
:
'zc'
,
data
:[{
zcv
:
0
,
zc
:
""
},{
zcv
:
1
,
zc
:
"第一周"
},{
zcv
:
0
,
zc
:
"第二周"
},{
zcv
:
0
,
zc
:
"第三周"
},{
zcv
:
0
,
zc
:
"第四周"
},{
zcv
:
0
,
zc
:
"第五周"
},{
zcv
:
0
,
zc
:
"第六周"
}]
...
...
@@ -177,11 +184,8 @@
item
[
'woid'
]
=
item
[
'id'
];
item
[
'woDjid'
]
=
item
[
'djid'
];
item
[
'jhsl'
]
=
item
[
'xqsl'
];
if
(
!
ksrq
){
item
[
"ksrq"
]
=
''
}
else
{
item
[
'ksrq'
]
=
ksrq
;
}
item
[
'ksrq'
]
=
woksrq
item
[
'jsrq'
]
=
wojsrq
item
[
'xh'
]
=
xh
+
1
;
delete
item
[
"id"
];
delete
item
[
"bz"
];
...
...
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