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
a65f6dc3
Commit
a65f6dc3
authored
Jan 25, 2024
by
wuwenlong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
生产入库bugfix
parent
8daa05c3
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
37 additions
and
45 deletions
+37
-45
HPKC003.xml
src/main/java/com/baosight/hpjx/hp/kc/sql/HPKC003.xml
+2
-2
HPKC003.js
src/main/webapp/HP/KC/HPKC003.js
+27
-29
HPKC003.jsp
src/main/webapp/HP/KC/HPKC003.jsp
+3
-7
HPKC099.js
src/main/webapp/HP/KC/HPKC099.js
+4
-3
HPKC099.jsp
src/main/webapp/HP/KC/HPKC099.jsp
+1
-4
No files found.
src/main/java/com/baosight/hpjx/hp/kc/sql/HPKC003.xml
View file @
a65f6dc3
...
...
@@ -53,8 +53,8 @@
<isNotEmpty
prepend=
" AND "
property=
"inventName"
>
INVENT_NAME = #inventName#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"companCode"
>
COMPANY_CODE = #companCode#
<isNotEmpty
prepend=
" AND "
property=
"compan
y
Code"
>
COMPANY_CODE = #compan
y
Code#
</isNotEmpty>
</sql>
...
...
src/main/webapp/HP/KC/HPKC003.js
View file @
a65f6dc3
let
inventNameGlobalData
=
[];
let
whNameGlobalData
=
[];
$
(
function
()
{
$
(
"#QUERY"
).
on
(
"click"
,
query
);
...
...
@@ -11,42 +13,29 @@ $(function () {
pageSizes
:
[
10
,
20
,
30
,
50
,
100
,
200
],
},
columns
:
[{
field
:
"
invent
Code"
,
field
:
"
wh
Code"
,
template
:
function
(
dataItem
)
{
for
(
let
i
=
0
;
i
<
invent
NameGlobalData
.
length
;
i
++
)
{
if
(
inventNameGlobalData
[
i
][
'valueField'
]
===
dataItem
[
'invent
Code'
])
{
return
invent
NameGlobalData
[
i
][
'textField'
];
for
(
let
i
=
0
;
i
<
wh
NameGlobalData
.
length
;
i
++
)
{
if
(
whNameGlobalData
[
i
][
'valueField'
]
===
dataItem
[
'wh
Code'
])
{
return
wh
NameGlobalData
[
i
][
'textField'
];
}
}
return
""
;
},
editor
:
function
(
container
,
options
)
{
var
grid
=
container
.
closest
(
".k-grid"
).
data
(
"kendoGrid"
);
var
cellIndex
=
grid
.
cellIndex
(
container
);
var
input
=
$
(
'<input />'
);
input
.
attr
(
"name"
,
options
.
field
);
input
.
attr
(
"id"
,
options
.
field
);
input
.
appendTo
(
container
);
let
eiInfo
=
new
EiInfo
();
eiInfo
.
set
(
"inventType"
,
options
.
model
[
"inventType"
]);
var
dataSource
;
EiCommunicator
.
send
(
"HPPZ004"
,
"queryComboBox"
,
eiInfo
,
{
onSuccess
:
function
(
ei
)
{
dataSource
=
ei
.
getBlock
(
"invent_name_block_id"
).
getMappedRows
();
inventNameGlobalData
=
dataSource
;
},
onFail
:
function
(
ei
)
{
let
inInfo
=
new
EiInfo
();
inInfo
.
set
(
"inqu_status-0-inventTypes"
,
[
3
,
4
]);
inInfo
.
set
(
"inqu_status-0-whType"
,
options
.
model
[
"inventType"
]);
inInfo
.
set
(
"serviceName"
,
"HPPZ007"
);
inInfo
.
set
(
"methodName"
,
"queryComboBox"
);
inInfo
.
set
(
"blockId"
,
"wh_record_block_id"
);
inInfo
.
set
(
"field"
,
options
.
field
);
refreshSelect
(
container
,
inInfo
);
}
},
{
async
:
false
});
input
.
kendoDropDownList
({
valuePrimitive
:
true
,
dataTextField
:
"textField"
,
dataValueField
:
"valueField"
,
dataSource
:
dataSource
,
template
:
"#=textField#"
});
}],
loadComplete
:
function
(
grid
)
{
// 此grid对象
}
}]
}
});
...
...
@@ -55,8 +44,17 @@ $(function () {
* 页面加载时执行
*/
$
(
window
).
load
(
function
()
{
//
存货
名称
//
仓库
名称
let
inInfo
=
new
EiInfo
();
inInfo
.
set
(
"inqu_status-0-inventTypes"
,
[
3
,
4
]);
EiCommunicator
.
send
(
"HPPZ007"
,
"queryComboBox"
,
inInfo
,
{
onSuccess
:
function
(
ei
)
{
whNameGlobalData
=
ei
.
getBlock
(
"wh_record_block_id"
).
getMappedRows
();
},
onFail
:
function
(
ei
)
{
}
},
{
async
:
false
});
// 存货名称
EiCommunicator
.
send
(
"HPPZ004"
,
"queryComboBox"
,
inInfo
,
{
onSuccess
:
function
(
ei
)
{
inventNameGlobalData
=
ei
.
getBlock
(
"invent_name_block_id"
).
getMappedRows
();
...
...
src/main/webapp/HP/KC/HPKC003.jsp
View file @
a65f6dc3
...
...
@@ -29,14 +29,10 @@
<EF:EFColumn
ename=
"productionOrderNo"
cname=
"生产订单号"
enable=
"false"
width=
"130"
align=
"center"
/>
<EF:EFColumn
ename=
"documentDate"
cname=
"单据日期"
width=
"100"
align=
"center"
editType=
"date"
readonly=
"true"
dateFormat=
"yyyy-MM-dd"
parseFormats=
"['yyyyMMdd']"
required=
"true"
/>
<EF:EFComboColumn
cname=
"仓库名称"
ename=
"whCode"
columnTemplate=
"#=textField#"
itemTemplate=
"#=textField#"
blockName=
"wh_record_block_id"
textField=
"textField"
valueField=
"valueField"
readonly=
"true"
align=
"center"
filter=
"contains"
width=
"100"
>
</EF:EFComboColumn>
<EF:EFColumn
cname=
"数量"
ename=
"amount"
width=
"100"
align=
"right"
format=
"{0:N3}"
enable=
"false"
<EF:EFColumn
ename=
"whCode"
cname=
"仓库名称"
width=
"120"
align=
"center"
required=
"true"
readonly=
"true"
/>
<EF:EFColumn
cname=
"数量"
ename=
"amount"
width=
"100"
align=
"right"
format=
"{0:N3}"
sumType=
"all"
readonly=
"true"
/>
<EF:EFColumn
cname=
"重量"
ename=
"weight"
width=
"100"
align=
"right"
format=
"{0:N3}"
enable=
"false"
<EF:EFColumn
cname=
"重量"
ename=
"weight"
width=
"100"
align=
"right"
format=
"{0:N3}"
sumType=
"all"
readonly=
"true"
/>
<EF:EFComboColumn
cname=
"存货类型"
ename=
"inventType"
width=
"90"
align=
"center"
enable=
"false"
>
<EF:EFCodeOption
codeName=
"hpjx.hpkc.inventType"
/>
...
...
src/main/webapp/HP/KC/HPKC099.js
View file @
a65f6dc3
...
...
@@ -26,20 +26,20 @@ $(function () {
/**
* 生产入库单
*/
let
generateRK
=
function
()
{
generateRK
=
function
()
{
let
rows
=
resultGrid
.
getCheckedRows
();
if
(
rows
.
length
<
1
)
{
message
(
"请选择数据"
);
return
;
}
JSUtils
.
confirm
(
"确定对勾选中的["
+
rows
.
length
+
"]条数据
做
\"
取消
\"
操作
? "
,
{
JSUtils
.
confirm
(
"确定对勾选中的["
+
rows
.
length
+
"]条数据
生成
\"
入库
\"
单
? "
,
{
ok
:
function
()
{
parent
.
JSColorbox
.
setValueCallback
(
rows
);
}
});
}
let
getOrgCallback
=
function
(
orgId
)
{
getOrgCallback
=
function
(
orgId
)
{
$
(
"#inqu_status-0-orgNo"
).
val
(
orgId
);
JSColorbox
.
close
();
}
\ No newline at end of file
src/main/webapp/HP/KC/HPKC099.jsp
View file @
a65f6dc3
...
...
@@ -21,10 +21,7 @@
<EF:EFInput
blockId=
"inqu_status"
ename=
"productionOrderNo"
cname=
"生产订单号:"
row=
"0"
/>
<EF:EFDatePicker
blockId=
"inqu_status"
ename=
"planCompletionDate"
cname=
"计划完成日期:"
row=
"0"
format=
"yyyy-MM-dd"
/>
<EF:EFInput
blockId=
"inqu_status"
ename=
"orgNo"
cname=
"生产组:"
row=
"0"
/>
<EF:EFSelect
cname=
"状态:"
optionLabel=
"全部"
blockId=
"inqu_status"
ename=
"status"
row=
"0"
defaultValue=
""
>
<EF:EFOption
label=
"未派工"
value=
"0"
/>
<EF:EFOption
label=
"已派工"
value=
"1"
/>
</EF:EFSelect>
<EF:EFInput
blockId=
"inqu_status"
ename=
"status"
row=
"0"
value=
"1"
hidden=
"true"
/>
</div>
<
%
--
<
EF:EFButton
ename=
"QUERY"
cname=
"查询"
row=
"1"
class=
"btn-align-right"
></EF:EFButton>
--%>
</EF:EFRegion>
...
...
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