Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
JSH ERP
Commits
5635cb35
Commit
5635cb35
authored
Aug 07, 2020
by
季圣华
Browse files
解决商品和日志的bug
parent
5eed8a68
Changes
2
Hide whitespace changes
Inline
Side-by-side
erp_web/pages/materials/material.html
View file @
5635cb35
...
...
@@ -424,7 +424,7 @@
}
}
},
{
title
:
'
安全存量
'
,
field
:
'
safety
s
tock
'
,
width
:
70
},
{
title
:
'
安全存量
'
,
field
:
'
safety
S
tock
'
,
width
:
70
},
{
title
:
'
库存
'
,
field
:
'
stock
'
,
width
:
70
,
formatter
:
function
(
value
,
rec
)
{
var
str
=
''
;
...
...
@@ -442,7 +442,7 @@
}
},
{
title
:
'
序列号
'
,
field
:
'
enable
s
erial
n
umber
'
,
width
:
70
,
align
:
"
center
"
,
formatter
:
function
(
value
)
{
title
:
'
序列号
'
,
field
:
'
enable
S
erial
N
umber
'
,
width
:
70
,
align
:
"
center
"
,
formatter
:
function
(
value
)
{
return
value
==
'
1
'
?
"
<span style='color:green'>有</span>
"
:
"
无
"
;
}
}
...
...
@@ -1219,42 +1219,29 @@
var
rowsdata
=
$
(
"
#tableData
"
).
datagrid
(
"
getRows
"
)[
index
];
bindMProperty
();
//根据商品属性绑定
$
(
"
#Name
"
).
focus
().
textbox
(
"
setValue
"
,
rowsdata
.
name
);
$
(
"
#EnableSerialNumber
"
).
val
(
rowsdata
.
enable
s
erial
n
umber
==
'
1
'
?
'
1
'
:
'
0
'
);
$
(
"
#EnableSerialNumber
"
).
val
(
rowsdata
.
enable
S
erial
N
umber
==
'
1
'
?
'
1
'
:
'
0
'
);
//商品类别id
$
(
"
#parentId
"
).
val
(
rowsdata
.
category
i
d
);
$
(
"
#parentId
"
).
val
(
rowsdata
.
category
I
d
);
//商品类别名称
$
(
"
#parentName
"
).
textbox
(
"
setValue
"
,
rowsdata
.
categoryName
);
mId
=
rowsdata
.
category
i
d
;
mId
=
rowsdata
.
category
I
d
;
mName
=
rowsdata
.
categoryName
;
$
(
"
#SafetyStock
"
).
textbox
(
"
setValue
"
,
rowsdata
.
safety
s
tock
);
$
(
"
#SafetyStock
"
).
textbox
(
"
setValue
"
,
rowsdata
.
safety
S
tock
);
$
(
"
#Model
"
).
textbox
(
"
setValue
"
,
rowsdata
.
model
);
$
(
"
#Standard
"
).
val
(
rowsdata
.
standard
);
$
(
"
#Color
"
).
val
(
rowsdata
.
color
);
$
(
"
#Mfrs
"
).
val
(
rowsdata
.
mfrs
);
$
(
"
#OtherField1
"
).
val
(
rowsdata
.
other
f
ield1
);
$
(
"
#OtherField2
"
).
val
(
rowsdata
.
other
f
ield2
);
$
(
"
#OtherField3
"
).
val
(
rowsdata
.
other
f
ield3
);
$
(
"
#OtherField1
"
).
val
(
rowsdata
.
other
F
ield1
);
$
(
"
#OtherField2
"
).
val
(
rowsdata
.
other
F
ield2
);
$
(
"
#OtherField3
"
).
val
(
rowsdata
.
other
F
ield3
);
$
(
"
#Unit
"
).
val
(
rowsdata
.
unit
);
$
(
"
#Remark
"
).
textbox
(
"
setValue
"
,
rowsdata
.
remark
);
$
(
"
#manyUnit
"
).
val
(
rowsdata
.
unit
i
d
);
if
(
rowsdata
.
unit
i
d
)
{
$
(
"
#manyUnit
"
).
val
(
rowsdata
.
unit
I
d
);
if
(
rowsdata
.
unit
I
d
)
{
$
(
"
#manyUnitCheck
"
).
prop
(
"
checked
"
,
true
);
//当前为选中状态
$
(
"
#Unit
"
).
hide
();
$
(
"
#manyUnit
"
).
show
();
var
selectItem
=
$
(
"
#manyUnit
"
).
children
(
'
option:selected
'
).
text
();
if
(
selectItem
!==
"
(空)
"
)
{
var
firstOutUnitOptions
=
selectItem
.
substring
(
0
,
selectItem
.
indexOf
(
"
(
"
));
var
firstOptions
=
""
;
var
arr
=
firstOutUnitOptions
.
split
(
"
,
"
);
var
basic
=
'
<option value="
'
+
arr
[
0
]
+
'
">
'
+
arr
[
0
]
+
'
</option>
'
;
var
other
=
'
<option value="
'
+
arr
[
1
]
+
'
">
'
+
arr
[
1
]
+
'
</option>
'
;
firstOptions
=
firstOptions
+
basic
+
other
;
$
(
"
#FirstOutUnit
"
).
empty
().
append
(
'
<option value="">(空)</option>
'
).
append
(
firstOptions
);
//首选销售单位
$
(
"
#FirstInUnit
"
).
empty
().
append
(
'
<option value="">(空)</option>
'
).
append
(
firstOptions
);
//首选采购单位
$
(
"
#FirstOutUnit
"
).
val
(
rowsdata
.
firstoutunit
);
//首选销售单位
$
(
"
#FirstInUnit
"
).
val
(
rowsdata
.
firstinunit
);
//首选采购单位
}
}
else
{
$
(
"
#manyUnitCheck
"
).
prop
(
"
checked
"
,
false
);
...
...
@@ -1268,11 +1255,11 @@
oldColor
=
rowsdata
.
color
;
oldStandard
=
rowsdata
.
standard
;
oldMfrs
=
rowsdata
.
mfrs
;
oldOtherField1
=
rowsdata
.
other
f
ield1
;
oldOtherField2
=
rowsdata
.
other
f
ield2
;
oldOtherField3
=
rowsdata
.
other
f
ield3
;
oldOtherField1
=
rowsdata
.
other
F
ield1
;
oldOtherField2
=
rowsdata
.
other
F
ield2
;
oldOtherField3
=
rowsdata
.
other
F
ield3
;
oldUnit
=
rowsdata
.
unit
;
oldManyUnit
=
rowsdata
.
unit
i
d
;
oldManyUnit
=
rowsdata
.
unit
I
d
;
$
(
'
#materialDlg
'
).
dialog
(
'
open
'
).
dialog
(
'
setTitle
'
,
'
<img src="/js/easyui/themes/icons/pencil.png"/> 编辑商品信息
'
);
$
(
"
.window-mask
"
).
css
({
width
:
webW
,
height
:
webH
});
materialID
=
rowsdata
.
id
;
...
...
src/main/resources/mapper_xml/LogMapperEx.xml
View file @
5635cb35
...
...
@@ -38,20 +38,21 @@
</select>
<select
id=
"countsByLog"
resultType=
"java.lang.Long"
>
SELECT
COUNT(id)
FROM jsh_log
COUNT(1)
FROM jsh_log l
left join jsh_user u on l.user_id = u.id and ifnull(u.status,'0') not in('1','2')
WHERE 1=1
<if
test=
"operation != null"
>
and operation like '%${operation}%'
and
l.
operation like '%${operation}%'
</if>
<if
test=
"userId != null"
>
and user_id=${userId}
and
l.
user_id=${userId}
</if>
<if
test=
"clientIp != null"
>
and client_ip like '%${clientIp}%'
and
l.
client_ip like '%${clientIp}%'
</if>
<if
test=
"status != null"
>
and status = ${status}
and
l.
status = ${status}
</if>
<if
test=
"beginTime != null"
>
and l.create_time
>
= '${beginTime}'
...
...
@@ -60,7 +61,7 @@
and l.create_time
<
= '${endTime}'
</if>
<if
test=
"content != null"
>
and content like '%${content}%'
and
l.
content like '%${content}%'
</if>
</select>
</mapper>
\ No newline at end of file
Write
Preview
Supports
Markdown
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