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
d82e3daa
"src/main/vscode:/vscode.git/clone" did not exist on "2eb223f7ba82fafea14009d342400dc03189ce7f"
Commit
d82e3daa
authored
Oct 11, 2017
by
季圣华
Browse files
修改商品信息的显示样式
parent
4fe50cf5
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/webapp/pages/materials/material.jsp
View file @
d82e3daa
...
@@ -59,116 +59,133 @@
...
@@ -59,116 +59,133 @@
<table
id=
"tableData"
style=
"top:300px;border-bottom-color:#FFFFFF"
></table>
<table
id=
"tableData"
style=
"top:300px;border-bottom-color:#FFFFFF"
></table>
</div>
</div>
<div
id=
"materialDlg"
class=
"easyui-dialog"
style=
"width:8
8
0px;padding:10px 20px"
<div
id=
"materialDlg"
class=
"easyui-dialog"
style=
"width:8
60px;height:40
0px;padding:10px 20px"
closed=
"true"
buttons=
"#dlg-buttons"
modal=
"true"
collapsible=
"false"
closable=
"true"
>
closed=
"true"
buttons=
"#dlg-buttons"
modal=
"true"
collapsible=
"false"
closable=
"true"
>
<form
id=
"materialFM"
method=
"post"
novalidate
>
<form
id=
"materialFM"
method=
"post"
novalidate
>
<table
height=
"360px"
>
<div
id=
"tt"
class=
"easyui-tabs"
style=
"width:800px;height:300px;"
>
<tr>
<div
title=
"基本信息"
style=
"padding:20px;"
>
<td
style=
"width:80px; height:30px;"
>
品名
</td>
<table>
<td
style=
"padding:5px;width:180px;"
>
<input
name=
"Name"
id=
"Name"
class=
"easyui-validatebox"
data-options=
"required:true,validType:'length[2,30]'"
style=
"width: 180px;height: 20px"
/>
</td>
<td
style=
"width:80px;"
>
型号
</td>
<td
style=
"padding:5px;width:180px;"
>
<input
name=
"Model"
id=
"Model"
class=
"easyui-validatebox"
data-options=
"required:true,validType:'length[1,30]'"
style=
"width: 180px;height: 20px"
/>
</td>
<td
style=
"width:200px;"
></td>
</tr>
<tr>
<td
style=
"height:30px;"
>
类别
</td>
<td
style=
"padding:5px"
colspan=
"3"
>
<select
name=
"CategoryId_f"
id=
"CategoryId_f"
style=
"width:152px;height: 20px"
></select>
<select
name=
"CategoryId_s"
id=
"CategoryId_s"
style=
"width:152px;height: 20px"
></select>
<select
name=
"CategoryId_t"
id=
"CategoryId_t"
style=
"width:152px;height: 20px"
></select>
<label
id=
"mTypeName"
></label>
<a
href=
"#"
id=
"mTypeChange"
>
修改
</a>
</td>
<td></td>
</tr>
<tr>
<td
style=
"height:30px;"
>
颜色
</td>
<td
style=
"padding:5px"
>
<input
name=
"Color"
id=
"Color"
class=
"easyui-validatebox"
data-options=
"validType:'length[1,30]'"
style=
"width: 180px;height: 20px"
/>
</td>
<td>
规格
</td>
<td
style=
"padding:5px"
><input
name=
"Standard"
id=
"Standard"
class=
"easyui-validatebox"
data-options=
"validType:'length[1,30]'"
style=
"width: 180px;height: 20px"
/></td>
<td></td>
</tr>
<tr>
<td
style=
"height:30px;"
>
安全存量
</td>
<td
style=
"padding:5px"
>
<input
name=
"SafetyStock"
id=
"SafetyStock"
class=
"easyui-validatebox"
data-options=
"validType:'length[1,30]'"
style=
"width: 180px;height: 20px"
/>
</td>
<td>
单位
</td>
<td
style=
"padding:5px"
>
<input
name=
"Unit"
id=
"Unit"
class=
"easyui-validatebox"
data-options=
"validType:'length[1,30]'"
style=
"width: 180px;height: 20px; "
/>
<select
name=
"manyUnit"
id=
"manyUnit"
style=
"width:180px;height: 20px;display: none"
></select>
</td>
<td>
<input
id=
"manyUnitCheck"
type=
"checkbox"
/>
多单位
</td>
</tr>
<tr
class=
"first-select-unit"
>
<td
style=
"height:30px;"
>
首选出库单位
</td>
<td
style=
"padding:5px"
>
<select
name=
"FirstOutUnit"
id=
"FirstOutUnit"
style=
"width:180px;height: 20px"
></select>
</td>
<td>
首选入库单位
</td>
<td
style=
"padding:5px"
>
<select
name=
"FirstInUnit"
id=
"FirstInUnit"
style=
"width:180px;height: 20px"
></select>
</td>
<td></td>
</tr>
<tr
class=
"price-list"
>
<td
colspan=
"5"
style=
"height:30px;"
>
<table
width=
"700px"
>
<tr>
<tr>
<td
width=
"150px"
height=
"25px"
><b>
价格列表
</b></td>
<td
style=
"width:60px; height:30px;"
>
品名
</td>
<td
width=
"150px"
>
计量单位
</td>
<td
style=
"padding:5px;width:180px;"
>
<td
width=
"18%"
>
零售价
</td>
<input
name=
"Name"
id=
"Name"
class=
"easyui-validatebox"
data-options=
"required:true,validType:'length[2,30]'"
style=
"width: 180px;height: 20px"
/>
<td
width=
"18%"
>
最低售价
</td>
</td>
<td
width=
"18%"
>
预计采购价
</td>
<td
style=
"width:80px;"
>
型号
</td>
<td
width=
"18%"
>
批发价
</td>
<td
style=
"padding:5px;width:180px;"
>
<input
name=
"Model"
id=
"Model"
class=
"easyui-validatebox"
data-options=
"required:true,validType:'length[1,30]'"
style=
"width: 180px;height: 20px"
/>
</td>
<td
style=
"width:200px;"
></td>
</tr>
</tr>
<tr>
<tr>
<td>
基本单位
</td>
<td
style=
"height:30px;"
>
类别
</td>
<td
style=
"border: 1px solid #aaa;"
><span
id=
"basicUnit"
></span></td>
<td
style=
"padding:5px"
colspan=
"3"
>
<td><input
id=
"basicRetailPrice"
/></td>
<select
name=
"CategoryId_f"
id=
"CategoryId_f"
style=
"width:152px;height: 20px"
></select>
<td><input
id=
"basicLowPrice"
/></td>
<select
name=
"CategoryId_s"
id=
"CategoryId_s"
style=
"width:152px;height: 20px"
></select>
<td><input
id=
"basicPresetPriceOne"
/></td>
<select
name=
"CategoryId_t"
id=
"CategoryId_t"
style=
"width:152px;height: 20px"
></select>
<td><input
id=
"basicPresetPriceTwo"
/></td>
<label
id=
"mTypeName"
></label>
<a
href=
"#"
id=
"mTypeChange"
>
修改
</a>
</td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
副单位
</td>
<td
style=
"height:30px;"
>
备注
</td>
<td
style=
"border: 1px solid #aaa;"
><span
id=
"otherUnit"
></span></td>
<td
style=
"padding:5px"
colspan=
"3"
>
<td><input
id=
"otherRetailPrice"
/></td>
<textarea
name=
"Remark"
id=
"Remark"
rows=
"2"
cols=
"2"
placeholder=
"暂无备注信息"
style=
"width: 468px; height:40px;"
></textarea>
<td><input
id=
"otherLowPrice"
/></td>
</td>
<td><input
id=
"otherPresetPriceOne"
/></td>
<td></td>
<td><input
id=
"otherPresetPriceTwo"
/></td>
</tr>
</tr>
</table>
</table>
</td>
</div>
</tr>
<div
title=
"价格信息"
style=
"padding:20px;"
>
<tr
class=
"price-one"
>
<table>
<td
style=
"height:30px;"
>
零售价
</td>
<tr>
<td
style=
"padding:5px"
><input
name=
"RetailPrice"
id=
"RetailPrice"
class=
"easyui-validatebox"
data-options=
"validType:'length[1,30]'"
style=
"width: 180px;height: 20px"
/></td>
<td
style=
"height:30px;"
>
安全存量
</td>
<td>
最低售价
</td>
<td
style=
"padding:5px"
>
<td
style=
"padding:5px"
><input
name=
"LowPrice"
id=
"LowPrice"
class=
"easyui-validatebox"
data-options=
"validType:'length[1,30]'"
style=
"width: 180px;height: 20px"
/></td>
<input
name=
"SafetyStock"
id=
"SafetyStock"
class=
"easyui-validatebox"
data-options=
"validType:'length[1,30]'"
style=
"width: 180px;height: 20px"
/>
<td></td>
</td>
</tr>
<td>
单位
</td>
<tr
class=
"price-two"
>
<td
style=
"padding:5px"
>
<td
style=
"height:30px;"
>
预计采购价
</td>
<input
name=
"Unit"
id=
"Unit"
class=
"easyui-validatebox"
data-options=
"validType:'length[1,30]'"
style=
"width: 180px;height: 20px; "
/>
<td
style=
"padding:5px"
><input
name=
"PresetPriceOne"
id=
"PresetPriceOne"
class=
"easyui-validatebox"
data-options=
"validType:'length[1,30]'"
style=
"width: 180px;height: 20px"
/></td>
<select
name=
"manyUnit"
id=
"manyUnit"
style=
"width:180px;height: 20px;display: none"
></select>
<td>
批发价
</td>
</td>
<td
style=
"padding:5px"
><input
name=
"PresetPriceTwo"
id=
"PresetPriceTwo"
class=
"easyui-validatebox"
data-options=
"validType:'length[1,30]'"
style=
"width: 180px;height: 20px"
/></td>
<td>
<td></td>
<input
id=
"manyUnitCheck"
type=
"checkbox"
/>
多单位
</tr>
</td>
<tr>
</tr>
<td
style=
"height:30px;"
>
备注
</td>
<tr
class=
"first-select-unit"
>
<td
style=
"padding:5px"
colspan=
"3"
><input
name=
"Remark"
id=
"Remark"
style=
"width: 468px;height: 20px"
/></td>
<td
style=
"height:30px;"
>
首选出库单位
</td>
<td></td>
<td
style=
"padding:5px"
>
</tr>
<select
name=
"FirstOutUnit"
id=
"FirstOutUnit"
style=
"width:180px;height: 20px"
></select>
</table>
</td>
<td>
首选入库单位
</td>
<td
style=
"padding:5px"
>
<select
name=
"FirstInUnit"
id=
"FirstInUnit"
style=
"width:180px;height: 20px"
></select>
</td>
<td></td>
</tr>
<tr
class=
"price-list"
>
<td
colspan=
"5"
style=
"height:30px;"
>
<table
width=
"700px"
>
<tr>
<td
width=
"150px"
height=
"25px"
><b>
价格列表
</b></td>
<td
width=
"150px"
>
计量单位
</td>
<td
width=
"18%"
>
零售价
</td>
<td
width=
"18%"
>
最低售价
</td>
<td
width=
"18%"
>
预计采购价
</td>
<td
width=
"18%"
>
批发价
</td>
</tr>
<tr>
<td>
基本单位
</td>
<td
style=
"border: 1px solid #aaa;"
><span
id=
"basicUnit"
></span></td>
<td><input
id=
"basicRetailPrice"
/></td>
<td><input
id=
"basicLowPrice"
/></td>
<td><input
id=
"basicPresetPriceOne"
/></td>
<td><input
id=
"basicPresetPriceTwo"
/></td>
</tr>
<tr>
<td>
副单位
</td>
<td
style=
"border: 1px solid #aaa;"
><span
id=
"otherUnit"
></span></td>
<td><input
id=
"otherRetailPrice"
/></td>
<td><input
id=
"otherLowPrice"
/></td>
<td><input
id=
"otherPresetPriceOne"
/></td>
<td><input
id=
"otherPresetPriceTwo"
/></td>
</tr>
</table>
</td>
</tr>
<tr
class=
"price-one"
>
<td
style=
"height:30px;"
>
零售价
</td>
<td
style=
"padding:5px"
><input
name=
"RetailPrice"
id=
"RetailPrice"
class=
"easyui-validatebox"
data-options=
"validType:'length[1,30]'"
style=
"width: 180px;height: 20px"
/></td>
<td>
最低售价
</td>
<td
style=
"padding:5px"
><input
name=
"LowPrice"
id=
"LowPrice"
class=
"easyui-validatebox"
data-options=
"validType:'length[1,30]'"
style=
"width: 180px;height: 20px"
/></td>
<td></td>
</tr>
<tr
class=
"price-two"
>
<td
style=
"height:30px;"
>
预计采购价
</td>
<td
style=
"padding:5px"
><input
name=
"PresetPriceOne"
id=
"PresetPriceOne"
class=
"easyui-validatebox"
data-options=
"validType:'length[1,30]'"
style=
"width: 180px;height: 20px"
/></td>
<td>
批发价
</td>
<td
style=
"padding:5px"
><input
name=
"PresetPriceTwo"
id=
"PresetPriceTwo"
class=
"easyui-validatebox"
data-options=
"validType:'length[1,30]'"
style=
"width: 180px;height: 20px"
/></td>
<td></td>
</tr>
</table>
</div>
<div
title=
"扩展信息"
style=
"padding:20px;"
>
<table>
<tr>
<td
style=
"width:60px; height:30px;"
>
颜色
</td>
<td
style=
"padding:5px"
>
<input
name=
"Color"
id=
"Color"
class=
"easyui-validatebox"
data-options=
"validType:'length[1,30]'"
style=
"width: 250px;height: 20px"
/>
</td>
</tr>
<tr>
<td>
规格
</td>
<td
style=
"padding:5px"
>
<input
name=
"Standard"
id=
"Standard"
class=
"easyui-validatebox"
data-options=
"validType:'length[1,30]'"
style=
"width: 250px;height: 20px"
/>
</td>
</tr>
</table>
</div>
</div>
<input
type=
"hidden"
name=
"clientIp"
id=
"clientIp"
value=
"
<%=
clientIp
%>
"
/>
<input
type=
"hidden"
name=
"clientIp"
id=
"clientIp"
value=
"
<%=
clientIp
%>
"
/>
</form>
</form>
</div>
</div>
...
@@ -899,6 +916,8 @@
...
@@ -899,6 +916,8 @@
$
(
"
.price-list
"
).
hide
();
$
(
"
.price-list
"
).
hide
();
$
(
"
.price-one
"
).
show
();
$
(
"
.price-one
"
).
show
();
$
(
"
.price-two
"
).
show
();
$
(
"
.price-two
"
).
show
();
//选中基本资料tab
$
(
"
#materialFM #tt .tabs li
"
).
first
().
click
();
oldName
=
""
;
oldName
=
""
;
oldModel
=
""
;
oldModel
=
""
;
oldColor
=
""
;
oldColor
=
""
;
...
@@ -1199,6 +1218,8 @@
...
@@ -1199,6 +1218,8 @@
materialID
=
materialInfo
[
0
];
materialID
=
materialInfo
[
0
];
//焦点在名称输入框==定焦在输入文字后面
//焦点在名称输入框==定焦在输入文字后面
$
(
"
#Name
"
).
val
(
""
).
focus
().
val
(
materialInfo
[
1
]);
$
(
"
#Name
"
).
val
(
""
).
focus
().
val
(
materialInfo
[
1
]);
//选中基本资料tab
$
(
"
#materialFM #tt .tabs li
"
).
first
().
click
();
url
=
'
<%=
path
%>
/material/update.action?materialID=
'
+
materialInfo
[
0
];
url
=
'
<%=
path
%>
/material/update.action?materialID=
'
+
materialInfo
[
0
];
}
}
...
...
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