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
ee17bd40
Commit
ee17bd40
authored
Oct 18, 2024
by
宋祥
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.销售库存数量过滤与校验,增加规格ID字段
parent
869a34f3
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
26 additions
and
110 deletions
+26
-110
HGYX001A.xml
src/main/java/com/baosight/hggp/hg/yx/sql/HGYX001A.xml
+8
-94
HGYX001A.js
src/main/webapp/HG/YX/HGYX001A.js
+11
-10
HGYX001A.jsp
src/main/webapp/HG/YX/HGYX001A.jsp
+1
-1
HGYX001C.jsp
src/main/webapp/HG/YX/HGYX001C.jsp
+1
-1
HGYX002A.js
src/main/webapp/HG/YX/HGYX002A.js
+3
-2
HGYX002A.jsp
src/main/webapp/HG/YX/HGYX002A.jsp
+1
-1
HGYX002C.jsp
src/main/webapp/HG/YX/HGYX002C.jsp
+1
-1
No files found.
src/main/java/com/baosight/hggp/hg/yx/sql/HGYX001A.xml
View file @
ee17bd40
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE sqlMap PUBLIC "-//ibatis.apache.org//DTD SQL Map 2.0//EN" "http://ibatis.apache.org/dtd/sql-map-2.dtd">
<!-- table information
<!DOCTYPE sqlMap PUBLIC "-//iBATIS.com//DTD SQL Map 2.0//EN" "http://www.ibatis.com/dtd/sql-map-2.dtd">
Generate time : 2024-06-04 9:20:26
Version : 1.0
schema : hggp
tableName : HGYX001A
ID BIGINT NOT NULL primarykey,
ACCOUNT_CODE VARCHAR,
DEP_CODE VARCHAR,
CREATED_BY VARCHAR,
CREATED_NAME VARCHAR,
CREATED_TIME VARCHAR,
UPDATED_BY VARCHAR,
UPDATED_NAME VARCHAR,
UPDATED_TIME VARCHAR,
DELETE_FLAG TINYINT,
INVENT_RECORD_ID BIGINT,
INVENT_TYPE VARCHAR,
INVENT_CODE VARCHAR NOT NULL,
INVENT_NAME VARCHAR NOT NULL,
SPEC VARCHAR,
LENGTH DECIMAL,
WIDTH DECIMAL,
THICK DECIMAL,
QUANTITY DECIMAL,
WEIGHT DECIMAL,
PARENT_ID BIGINT
-->
<sqlMap
namespace=
"HGYX001A"
>
<sqlMap
namespace=
"HGYX001A"
>
<typeAlias
alias=
"HGYX001A"
type=
"com.baosight.hggp.hg.yx.domain.HGYX001A"
/>
<typeAlias
alias=
"HGYX001A"
type=
"com.baosight.hggp.hg.yx.domain.HGYX001A"
/>
...
@@ -44,6 +18,7 @@
...
@@ -44,6 +18,7 @@
INVENT_TYPE as "inventType",
<!-- 存货类型 -->
INVENT_TYPE as "inventType",
<!-- 存货类型 -->
INVENT_CODE as "inventCode",
<!-- 存货编码 -->
INVENT_CODE as "inventCode",
<!-- 存货编码 -->
INVENT_NAME as "inventName",
<!-- 存货名称 -->
INVENT_NAME as "inventName",
<!-- 存货名称 -->
SPEC_ID as "specId",
<!-- 规格ID -->
SPEC as "spec",
<!-- 规格 -->
SPEC as "spec",
<!-- 规格 -->
LENGTH as "length",
<!-- 长 -->
LENGTH as "length",
<!-- 长 -->
WIDTH as "width",
<!-- 宽 -->
WIDTH as "width",
<!-- 宽 -->
...
@@ -54,6 +29,7 @@
...
@@ -54,6 +29,7 @@
PARENT_ID as "parentId",
<!-- 销售发货ID -->
PARENT_ID as "parentId",
<!-- 销售发货ID -->
INVENT_TYPE_DETAIL as "inventTypeDetail"
INVENT_TYPE_DETAIL as "inventTypeDetail"
</sql>
</sql>
<sql
id=
"condition"
>
<sql
id=
"condition"
>
<include
refid=
"HGXSDataAuth.authCondition"
/>
<include
refid=
"HGXSDataAuth.authCondition"
/>
<isNotEmpty
prepend=
" AND "
property=
"id"
>
<isNotEmpty
prepend=
" AND "
property=
"id"
>
...
@@ -148,72 +124,6 @@
...
@@ -148,72 +124,6 @@
<include
refid=
"condition"
/>
<include
refid=
"condition"
/>
</select>
</select>
<!--
<isNotEmpty prepend=" AND " property="id">
ID = #id#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="accountCode">
ACCOUNT_CODE = #accountCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="depCode">
DEP_CODE = #depCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="createdBy">
CREATED_BY = #createdBy#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="createdName">
CREATED_NAME = #createdName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="createdTime">
CREATED_TIME = #createdTime#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="updatedBy">
UPDATED_BY = #updatedBy#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="updatedName">
UPDATED_NAME = #updatedName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="updatedTime">
UPDATED_TIME = #updatedTime#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="deleteFlag">
DELETE_FLAG = #deleteFlag#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="inventRecordId">
INVENT_RECORD_ID = #inventRecordId#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="inventType">
INVENT_TYPE = #inventType#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="inventCode">
INVENT_CODE = #inventCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="inventName">
INVENT_NAME = #inventName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="spec">
SPEC = #spec#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="length">
LENGTH = #length#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="width">
WIDTH = #width#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="thick">
THICK = #thick#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="quantity">
QUANTITY = #quantity#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="weight">
WEIGHT = #weight#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="parentId">
PARENT_ID = #parentId#
</isNotEmpty>
-->
<insert
id=
"insert"
>
<insert
id=
"insert"
>
INSERT INTO ${hggpSchema}.HGYX001A (ID,
<!-- ID -->
INSERT INTO ${hggpSchema}.HGYX001A (ID,
<!-- ID -->
ACCOUNT_CODE,
<!-- 企业编码 -->
ACCOUNT_CODE,
<!-- 企业编码 -->
...
@@ -229,6 +139,7 @@
...
@@ -229,6 +139,7 @@
INVENT_TYPE,
<!-- 存货类型 -->
INVENT_TYPE,
<!-- 存货类型 -->
INVENT_CODE,
<!-- 存货编码 -->
INVENT_CODE,
<!-- 存货编码 -->
INVENT_NAME,
<!-- 存货名称 -->
INVENT_NAME,
<!-- 存货名称 -->
SPEC_ID,
<!-- 规格ID -->
SPEC,
<!-- 规格 -->
SPEC,
<!-- 规格 -->
LENGTH,
<!-- 长 -->
LENGTH,
<!-- 长 -->
WIDTH,
<!-- 宽 -->
WIDTH,
<!-- 宽 -->
...
@@ -239,7 +150,10 @@
...
@@ -239,7 +150,10 @@
PARENT_ID,
<!-- 销售发货ID -->
PARENT_ID,
<!-- 销售发货ID -->
INVENT_TYPE_DETAIL
INVENT_TYPE_DETAIL
)
)
VALUES (#id#, #accountCode#, #depCode#, #createdBy#, #createdName#, #createdTime#, #updatedBy#, #updatedName#, #updatedTime#, #deleteFlag#, #inventRecordId#, #inventType#, #inventCode#, #inventName#, #spec#, #length#, #width#, #thick#, #quantity#, #unitWeight#, #weight#, #parentId#,#inventTypeDetail#)
VALUES (#id#, #accountCode#, #depCode#, #createdBy#, #createdName#, #createdTime#, #updatedBy#,
#updatedName#, #updatedTime#, #deleteFlag#, #inventRecordId#, #inventType#, #inventCode#,
#inventName#, #specId#, #spec#, #length#, #width#, #thick#, #quantity#, #unitWeight#,
#weight#, #parentId#,#inventTypeDetail#)
</insert>
</insert>
<delete
id=
"delete"
>
<delete
id=
"delete"
>
...
...
src/main/webapp/HG/YX/HGYX001A.js
View file @
ee17bd40
...
@@ -23,7 +23,7 @@ $(function() {
...
@@ -23,7 +23,7 @@ $(function() {
columns
:
[{
columns
:
[{
field
:
"inventType"
,
field
:
"inventType"
,
filter
:
function
(
options
)
{
filter
:
function
(
options
)
{
return
_
.
filter
(
inventTypeBox
,
function
(
item
)
{
return
_
.
filter
(
INVENT_TYPE_BOX
,
function
(
item
)
{
return
item
[
"param1Field"
]
==
"true"
;
return
item
[
"param1Field"
]
==
"true"
;
})
})
},
},
...
@@ -36,18 +36,18 @@ $(function() {
...
@@ -36,18 +36,18 @@ $(function() {
filter
:
function
(
options
)
{
filter
:
function
(
options
)
{
let
inventType
=
options
.
model
[
"inventType"
];
let
inventType
=
options
.
model
[
"inventType"
];
if
(
inventType
){
if
(
inventType
){
return
_
.
filter
(
inventCodedBox
,
function
(
item
)
{
return
_
.
filter
(
INVENT_CODE_BOX
,
function
(
item
)
{
return
item
[
"param1Field"
]
===
inventType
;
return
item
[
"param1Field"
]
===
inventType
;
})
})
}
}
return
options
.
values
;
return
options
.
values
;
},
},
template
:
function
(
dataItem
)
{
template
:
function
(
dataItem
)
{
for
(
let
i
=
0
;
i
<
inventCodedBox
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
INVENT_CODE_BOX
.
length
;
i
++
)
{
if
(
inventCodedBox
[
i
][
'valueField'
]
===
dataItem
[
'inventCode'
]){
if
(
INVENT_CODE_BOX
[
i
][
'valueField'
]
===
dataItem
[
'inventCode'
]){
dataItem
[
'inventName'
]
=
inventCodedBox
[
i
][
'textField'
]
dataItem
[
'inventName'
]
=
INVENT_CODE_BOX
[
i
][
'textField'
]
dataItem
[
'inventRecordId'
]
=
inventCodedBox
[
i
][
'param2Field'
];
dataItem
[
'inventRecordId'
]
=
INVENT_CODE_BOX
[
i
][
'param2Field'
];
return
inventCodedBox
[
i
][
'textField'
];
return
INVENT_CODE_BOX
[
i
][
'textField'
];
}
}
}
}
return
dataItem
[
"inventCode"
];
return
dataItem
[
"inventCode"
];
...
@@ -57,7 +57,7 @@ $(function() {
...
@@ -57,7 +57,7 @@ $(function() {
filter
:
function
(
options
)
{
filter
:
function
(
options
)
{
let
specId
=
options
.
model
[
"inventRecordId"
];
let
specId
=
options
.
model
[
"inventRecordId"
];
if
(
specId
){
if
(
specId
){
return
_
.
filter
(
specIdBox
,
function
(
item
)
{
return
_
.
filter
(
SPEC_BOX
,
function
(
item
)
{
return
item
[
"param7Field"
]
===
specId
;
return
item
[
"param7Field"
]
===
specId
;
})
})
}
}
...
@@ -409,8 +409,9 @@ function detailCallback(result) {
...
@@ -409,8 +409,9 @@ function detailCallback(result) {
let
rows
=
resultGrid
.
getDataItems
();
let
rows
=
resultGrid
.
getDataItems
();
if
(
result
.
length
>
0
)
{
if
(
result
.
length
>
0
)
{
for
(
let
i
=
0
;
i
<
result
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
result
.
length
;
i
++
)
{
let
specId
=
rows
.
filter
(
row
=>
row
.
inventRecordId
==
result
[
i
].
specId
)
let
filters
=
rows
.
filter
(
row
=>
row
.
inventCode
==
result
[
i
].
inventCode
if
(
specId
.
length
>
0
){
&&
row
.
spec
==
result
[
i
].
spec
);
if
(
filters
.
length
>
0
){
message
(
"无法重复添加!"
);
message
(
"无法重复添加!"
);
return
false
;
return
false
;
}
}
...
...
src/main/webapp/HG/YX/HGYX001A.jsp
View file @
ee17bd40
...
@@ -86,7 +86,7 @@
...
@@ -86,7 +86,7 @@
columnTemplate=
"#=textField#"
itemTemplate=
"#=textField#"
readonly=
"false"
columnTemplate=
"#=textField#"
itemTemplate=
"#=textField#"
readonly=
"false"
filter=
"contains"
>
filter=
"contains"
>
</EF:EFComboColumn>
</EF:EFComboColumn>
<EF:EFColumn
ename=
"
inventRecord
Id"
cname=
"规格ID"
width=
"120"
enable=
"true"
readonly=
"true"
align=
"center"
hidden=
"true"
maxLength=
"50"
/>
<EF:EFColumn
ename=
"
spec
Id"
cname=
"规格ID"
width=
"120"
enable=
"true"
readonly=
"true"
align=
"center"
hidden=
"true"
maxLength=
"50"
/>
<EF:EFColumn
ename=
"length"
cname=
"长度(MM)"
enable=
"false"
readonly=
"false"
width=
"100"
align=
"right"
format=
"{0:N3}"
maxLength=
"10"
/>
<EF:EFColumn
ename=
"length"
cname=
"长度(MM)"
enable=
"false"
readonly=
"false"
width=
"100"
align=
"right"
format=
"{0:N3}"
maxLength=
"10"
/>
<EF:EFColumn
ename=
"width"
cname=
"宽度(MM)"
enable=
"false"
readonly=
"false"
width=
"100"
align=
"right"
format=
"{0:N3}"
maxLength=
"10"
/>
<EF:EFColumn
ename=
"width"
cname=
"宽度(MM)"
enable=
"false"
readonly=
"false"
width=
"100"
align=
"right"
format=
"{0:N3}"
maxLength=
"10"
/>
<EF:EFColumn
ename=
"thick"
cname=
"厚度(MM)"
enable=
"false"
readonly=
"false"
width=
"100"
align=
"right"
format=
"{0:N3}"
maxLength=
"10"
/>
<EF:EFColumn
ename=
"thick"
cname=
"厚度(MM)"
enable=
"false"
readonly=
"false"
width=
"100"
align=
"right"
format=
"{0:N3}"
maxLength=
"10"
/>
...
...
src/main/webapp/HG/YX/HGYX001C.jsp
View file @
ee17bd40
...
@@ -44,7 +44,7 @@
...
@@ -44,7 +44,7 @@
columnTemplate="#=textField#" itemTemplate="#=textField#" readonly="true"
columnTemplate="#=textField#" itemTemplate="#=textField#" readonly="true"
filter="contains">
filter="contains">
</EF:EFComboColumn>
</EF:EFComboColumn>
<EF:EFColumn ename="
inventRecord
Id" cname="规格ID" width="120" enable="true" readonly="true" align="center" hidden="true" maxLength="50"/>
<EF:EFColumn ename="
spec
Id" cname="规格ID" width="120" enable="true" readonly="true" align="center" hidden="true" maxLength="50"/>
<EF:EFColumn ename="length" cname="长度(MM)" enable="true" readonly="true" width="100" align="right" format="{0:N3}" maxLength="10"/>
<EF:EFColumn ename="length" cname="长度(MM)" enable="true" readonly="true" width="100" align="right" format="{0:N3}" maxLength="10"/>
<EF:EFColumn ename="width" cname="宽度(MM)" enable="true" readonly="true" width="100" align="right" format="{0:N3}" maxLength="10"/>
<EF:EFColumn ename="width" cname="宽度(MM)" enable="true" readonly="true" width="100" align="right" format="{0:N3}" maxLength="10"/>
<EF:EFColumn ename="thick" cname="厚度(MM)" enable="true" readonly="true" width="100" align="right" format="{0:N3}" maxLength="10"/>
<EF:EFColumn ename="thick" cname="厚度(MM)" enable="true" readonly="true" width="100" align="right" format="{0:N3}" maxLength="10"/>
...
...
src/main/webapp/HG/YX/HGYX002A.js
View file @
ee17bd40
...
@@ -433,8 +433,9 @@ function detailCallback(result) {
...
@@ -433,8 +433,9 @@ function detailCallback(result) {
let
rows
=
resultGrid
.
getDataItems
();
let
rows
=
resultGrid
.
getDataItems
();
if
(
result
.
length
>
0
)
{
if
(
result
.
length
>
0
)
{
for
(
let
i
=
0
;
i
<
result
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
result
.
length
;
i
++
)
{
let
specId
=
rows
.
filter
(
row
=>
row
.
inventRecordId
==
result
[
i
].
inventRecordId
)
let
filters
=
rows
.
filter
(
row
=>
row
.
inventCode
==
result
[
i
].
inventCode
if
(
specId
.
length
>
0
){
&&
row
.
spec
==
result
[
i
].
spec
);
if
(
filters
.
length
>
0
){
message
(
"无法重复添加!"
);
message
(
"无法重复添加!"
);
return
false
;
return
false
;
}
}
...
...
src/main/webapp/HG/YX/HGYX002A.jsp
View file @
ee17bd40
...
@@ -85,7 +85,7 @@
...
@@ -85,7 +85,7 @@
columnTemplate="#=textField#" itemTemplate="#=textField#" readonly="false"
columnTemplate="#=textField#" itemTemplate="#=textField#" readonly="false"
filter="contains">
filter="contains">
</EF:EFComboColumn>
</EF:EFComboColumn>
<EF:EFColumn ename="
inventRecord
Id" cname="规格ID" width="120" enable="true" readonly="true" align="center" hidden="true" maxLength="50"/>
<EF:EFColumn ename="
spec
Id" cname="规格ID" width="120" enable="true" readonly="true" align="center" hidden="true" maxLength="50"/>
<EF:EFColumn ename="length" cname="长度(MM)" enable="false" readonly="true" width="100" align="right" format="{0:N3}" maxLength="10"/>
<EF:EFColumn ename="length" cname="长度(MM)" enable="false" readonly="true" width="100" align="right" format="{0:N3}" maxLength="10"/>
<EF:EFColumn ename="width" cname="宽度(MM)" enable="false" readonly="true" width="100" align="right" format="{0:N3}" maxLength="10"/>
<EF:EFColumn ename="width" cname="宽度(MM)" enable="false" readonly="true" width="100" align="right" format="{0:N3}" maxLength="10"/>
<EF:EFColumn ename="thick" cname="厚度(MM)" enable="false" readonly="true" width="100" align="right" format="{0:N3}" maxLength="10"/>
<EF:EFColumn ename="thick" cname="厚度(MM)" enable="false" readonly="true" width="100" align="right" format="{0:N3}" maxLength="10"/>
...
...
src/main/webapp/HG/YX/HGYX002C.jsp
View file @
ee17bd40
...
@@ -44,7 +44,7 @@
...
@@ -44,7 +44,7 @@
columnTemplate="#=textField#" itemTemplate="#=textField#"
columnTemplate="#=textField#" itemTemplate="#=textField#"
filter="contains">
filter="contains">
</EF:EFComboColumn>
</EF:EFComboColumn>
<EF:EFColumn ename="
inventRecord
Id" cname="规格ID" width="120" enable="true" readonly="true" align="center" hidden="true" maxLength="50"/>
<EF:EFColumn ename="
spec
Id" cname="规格ID" width="120" enable="true" readonly="true" align="center" hidden="true" maxLength="50"/>
<EF:EFColumn ename="length" cname="长度(MM)" enable="true" readonly="true" width="100" align="right" format="{0:N3}" maxLength="10"/>
<EF:EFColumn ename="length" cname="长度(MM)" enable="true" readonly="true" width="100" align="right" format="{0:N3}" maxLength="10"/>
<EF:EFColumn ename="width" cname="宽度(MM)" enable="true" readonly="true" width="100" align="right" format="{0:N3}" maxLength="10"/>
<EF:EFColumn ename="width" cname="宽度(MM)" enable="true" readonly="true" width="100" align="right" format="{0:N3}" maxLength="10"/>
<EF:EFColumn ename="thick" cname="厚度(MM)" enable="true" readonly="true" width="100" align="right" format="{0:N3}" maxLength="10"/>
<EF:EFColumn ename="thick" cname="厚度(MM)" enable="true" readonly="true" width="100" align="right" format="{0:N3}" maxLength="10"/>
...
...
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