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
f7591079
Commit
f7591079
authored
Dec 04, 2020
by
季圣华
Browse files
给单据增加扫码功能
parent
0bb674db
Changes
14
Show whitespace changes
Inline
Side-by-side
erp_web/js/pages/bill/in_out.js
View file @
f7591079
...
@@ -1222,6 +1222,28 @@
...
@@ -1222,6 +1222,28 @@
$
(
'
#depotFM
'
).
form
(
'
clear
'
);
$
(
'
#depotFM
'
).
form
(
'
clear
'
);
bindDepotEvent
();
bindDepotEvent
();
},
},
//扫码
switchToBarCode
:
function
()
{
if
(
$
(
'
#sweepBarCode
'
).
css
(
'
display
'
)
==
"
none
"
)
{
$
(
"
#sweepBarCode
"
).
show
().
val
(
""
);
$
(
"
#sweepBarCode
"
).
off
(
"
keyup
"
).
on
(
"
keyup
"
,
function
(
e
){
var
evt
=
window
.
event
||
e
;
if
(
evt
.
keyCode
==
13
)
{
var
meId
=
inOutService
.
getInfoByBarCode
(
$
(
"
#sweepBarCode
"
).
val
());
var
rec
=
{};
rec
.
Id
=
meId
;
var
body
=
$
(
"
#depotHeadFM .datagrid-view2 .datagrid-body
"
);
var
rowDom
=
body
.
find
(
"
.datagrid-row
"
).
eq
(
editIndex
);
var
materialName
=
rowDom
.
find
(
"
[field='name']
"
).
find
(
"
input[type=text]
"
).
val
();
if
(
materialName
){
inOutService
.
append
();
//新增行
}
inOutService
.
materialSelect
(
rec
,
getNowFormatMonth
());
}
});
}
else
{
$
(
"
#sweepBarCode
"
).
hide
();
}
},
//新增商品
//新增商品
appendMaterial
:
function
()
{
appendMaterial
:
function
()
{
js
.
addTabPage
(
null
,
"
商品信息
"
,
"
/pages/materials/material.html
"
);
js
.
addTabPage
(
null
,
"
商品信息
"
,
"
/pages/materials/material.html
"
);
...
@@ -1350,6 +1372,9 @@
...
@@ -1350,6 +1372,9 @@
pageSize
:
initPageSize
pageSize
:
initPageSize
});
});
});
});
$
(
"
#appendMaterial
"
).
off
(
"
click
"
).
on
(
"
click
"
,
function
(){
js
.
addTabPage
(
null
,
"
商品信息
"
,
"
/pages/materials/material.html
"
);
});
$
(
"
#checkMaterial
"
).
off
(
"
click
"
).
on
(
"
click
"
,
function
(){
$
(
"
#checkMaterial
"
).
off
(
"
click
"
).
on
(
"
click
"
,
function
(){
var
rowData
=
$
(
"
#materialSelectData
"
).
datagrid
(
'
getChecked
'
)[
0
];
var
rowData
=
$
(
"
#materialSelectData
"
).
datagrid
(
'
getChecked
'
)[
0
];
$
(
'
#materialSelectDlg
'
).
dialog
(
'
close
'
);
$
(
'
#materialSelectDlg
'
).
dialog
(
'
close
'
);
...
@@ -1427,7 +1452,12 @@
...
@@ -1427,7 +1452,12 @@
detailPrice
=
0
;
detailPrice
=
0
;
}
}
var
operNumber
=
1
;
var
operNumber
=
1
;
currentRowDom
.
find
(
"
[field='OperNumber']
"
).
find
(
input
).
val
(
operNumber
).
focus
().
select
();
//数量初始化
currentRowDom
.
find
(
"
[field='OperNumber']
"
).
find
(
input
).
val
(
operNumber
);
//数量初始化
if
(
$
(
'
#sweepBarCode
'
).
css
(
'
display
'
)
==
"
none
"
)
{
currentRowDom
.
find
(
"
[field='OperNumber']
"
).
find
(
input
).
focus
().
select
();
}
else
{
$
(
"
#sweepBarCode
"
).
val
(
""
).
focus
().
select
();
}
currentRowDom
.
find
(
"
[field='UnitPrice']
"
).
find
(
input
).
val
(
detailPrice
);
currentRowDom
.
find
(
"
[field='UnitPrice']
"
).
find
(
input
).
val
(
detailPrice
);
currentRowDom
.
find
(
"
[field='AllPrice']
"
).
find
(
input
).
val
(
detailPrice
);
currentRowDom
.
find
(
"
[field='AllPrice']
"
).
find
(
input
).
val
(
detailPrice
);
var
taxRate
=
currentRowDom
.
find
(
"
[field='TaxRate']
"
).
find
(
input
).
val
()
-
0
;
//获取税率
var
taxRate
=
currentRowDom
.
find
(
"
[field='TaxRate']
"
).
find
(
input
).
val
()
-
0
;
//获取税率
...
...
erp_web/pages/bill/allocation_out_list.html
View file @
f7591079
...
@@ -146,6 +146,9 @@
...
@@ -146,6 +146,9 @@
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<a
href=
"javascript:void(0)"
class=
"easyui-linkbutton"
iconCls=
"icon-search"
id=
"searchMaterialBtn"
>
查询
</a>
<a
href=
"javascript:void(0)"
class=
"easyui-linkbutton"
iconCls=
"icon-search"
id=
"searchMaterialBtn"
>
查询
</a>
</div>
</div>
<div
class=
"form-group"
>
<a
href=
"javascript:void(0)"
class=
"easyui-linkbutton"
iconCls=
"icon-add"
id=
"appendMaterial"
>
新增商品
</a>
</div>
</div>
</div>
<table
id=
"materialSelectData"
style=
"top:100px;border-bottom-color:#FFFFFF"
></table>
<table
id=
"materialSelectData"
style=
"top:100px;border-bottom-color:#FFFFFF"
></table>
</div>
</div>
...
@@ -572,11 +575,11 @@
...
@@ -572,11 +575,11 @@
}
}
},
},
{
{
id
:
'
appendMaterial
'
,
id
:
'
switchToBarCode
'
,
text
:
'
新增商品
'
,
text
:
'
扫码
'
,
iconCls
:
'
icon-
add
'
,
iconCls
:
'
icon-
search
'
,
handler
:
function
()
{
handler
:
function
()
{
js
.
addTabPage
(
null
,
"
商品信息
"
,
"
/pages/materials/material.html
"
);
inOutService
.
switchToBarCode
();
//扫码
}
}
}
}
],
],
...
@@ -585,6 +588,8 @@
...
@@ -585,6 +588,8 @@
return
;
return
;
}
}
});
});
var
sweepBarCodeHtml
=
'
<td><input id="sweepBarCode" type="text" placeholder="输入条码并敲回车键" class="radius-ui" style="width:150px;display:none;"/></td>
'
;
$
(
'
#depotHeadFM .datagrid-toolbar tr
'
).
append
(
sweepBarCodeHtml
);
$
.
ajax
({
$
.
ajax
({
type
:
"
get
"
,
type
:
"
get
"
,
url
:
'
/depotItem/getDetailList
'
,
url
:
'
/depotItem/getDetailList
'
,
...
...
erp_web/pages/bill/assemble_list.html
View file @
f7591079
...
@@ -145,6 +145,9 @@
...
@@ -145,6 +145,9 @@
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<a
href=
"javascript:void(0)"
class=
"easyui-linkbutton"
iconCls=
"icon-search"
id=
"searchMaterialBtn"
>
查询
</a>
<a
href=
"javascript:void(0)"
class=
"easyui-linkbutton"
iconCls=
"icon-search"
id=
"searchMaterialBtn"
>
查询
</a>
</div>
</div>
<div
class=
"form-group"
>
<a
href=
"javascript:void(0)"
class=
"easyui-linkbutton"
iconCls=
"icon-add"
id=
"appendMaterial"
>
新增商品
</a>
</div>
</div>
</div>
<table
id=
"materialSelectData"
style=
"top:100px;border-bottom-color:#FFFFFF"
></table>
<table
id=
"materialSelectData"
style=
"top:100px;border-bottom-color:#FFFFFF"
></table>
</div>
</div>
...
@@ -556,11 +559,11 @@
...
@@ -556,11 +559,11 @@
}
}
},
},
{
{
id
:
'
appendMaterial
'
,
id
:
'
switchToBarCode
'
,
text
:
'
新增商品
'
,
text
:
'
扫码
'
,
iconCls
:
'
icon-
add
'
,
iconCls
:
'
icon-
search
'
,
handler
:
function
()
{
handler
:
function
()
{
js
.
addTabPage
(
null
,
"
商品信息
"
,
"
/pages/materials/material.html
"
);
inOutService
.
switchToBarCode
();
//扫码
}
}
}
}
],
],
...
@@ -569,6 +572,8 @@
...
@@ -569,6 +572,8 @@
return
;
return
;
}
}
});
});
var
sweepBarCodeHtml
=
'
<td><input id="sweepBarCode" type="text" placeholder="输入条码并敲回车键" class="radius-ui" style="width:150px;display:none;"/></td>
'
;
$
(
'
#depotHeadFM .datagrid-toolbar tr
'
).
append
(
sweepBarCodeHtml
);
$
.
ajax
({
$
.
ajax
({
type
:
"
get
"
,
type
:
"
get
"
,
url
:
'
/depotItem/getDetailList
'
,
url
:
'
/depotItem/getDetailList
'
,
...
...
erp_web/pages/bill/disassemble_list.html
View file @
f7591079
...
@@ -145,6 +145,9 @@
...
@@ -145,6 +145,9 @@
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<a
href=
"javascript:void(0)"
class=
"easyui-linkbutton"
iconCls=
"icon-search"
id=
"searchMaterialBtn"
>
查询
</a>
<a
href=
"javascript:void(0)"
class=
"easyui-linkbutton"
iconCls=
"icon-search"
id=
"searchMaterialBtn"
>
查询
</a>
</div>
</div>
<div
class=
"form-group"
>
<a
href=
"javascript:void(0)"
class=
"easyui-linkbutton"
iconCls=
"icon-add"
id=
"appendMaterial"
>
新增商品
</a>
</div>
</div>
</div>
<table
id=
"materialSelectData"
style=
"top:100px;border-bottom-color:#FFFFFF"
></table>
<table
id=
"materialSelectData"
style=
"top:100px;border-bottom-color:#FFFFFF"
></table>
</div>
</div>
...
@@ -557,11 +560,11 @@
...
@@ -557,11 +560,11 @@
}
}
},
},
{
{
id
:
'
appendMaterial
'
,
id
:
'
switchToBarCode
'
,
text
:
'
新增商品
'
,
text
:
'
扫码
'
,
iconCls
:
'
icon-
add
'
,
iconCls
:
'
icon-
search
'
,
handler
:
function
()
{
handler
:
function
()
{
js
.
addTabPage
(
null
,
"
商品信息
"
,
"
/pages/materials/material.html
"
);
inOutService
.
switchToBarCode
();
//扫码
}
}
}
}
],
],
...
@@ -570,6 +573,8 @@
...
@@ -570,6 +573,8 @@
return
;
return
;
}
}
});
});
var
sweepBarCodeHtml
=
'
<td><input id="sweepBarCode" type="text" placeholder="输入条码并敲回车键" class="radius-ui" style="width:150px;display:none;"/></td>
'
;
$
(
'
#depotHeadFM .datagrid-toolbar tr
'
).
append
(
sweepBarCodeHtml
);
$
.
ajax
({
$
.
ajax
({
type
:
"
get
"
,
type
:
"
get
"
,
url
:
'
/depotItem/getDetailList
'
,
url
:
'
/depotItem/getDetailList
'
,
...
...
erp_web/pages/bill/other_in_list.html
View file @
f7591079
...
@@ -160,6 +160,9 @@
...
@@ -160,6 +160,9 @@
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<a
href=
"javascript:void(0)"
class=
"easyui-linkbutton"
iconCls=
"icon-search"
id=
"searchMaterialBtn"
>
查询
</a>
<a
href=
"javascript:void(0)"
class=
"easyui-linkbutton"
iconCls=
"icon-search"
id=
"searchMaterialBtn"
>
查询
</a>
</div>
</div>
<div
class=
"form-group"
>
<a
href=
"javascript:void(0)"
class=
"easyui-linkbutton"
iconCls=
"icon-add"
id=
"appendMaterial"
>
新增商品
</a>
</div>
</div>
</div>
<table
id=
"materialSelectData"
style=
"top:100px;border-bottom-color:#FFFFFF"
></table>
<table
id=
"materialSelectData"
style=
"top:100px;border-bottom-color:#FFFFFF"
></table>
</div>
</div>
...
@@ -573,11 +576,11 @@
...
@@ -573,11 +576,11 @@
}
}
},
},
{
{
id
:
'
appendMaterial
'
,
id
:
'
switchToBarCode
'
,
text
:
'
新增商品
'
,
text
:
'
扫码
'
,
iconCls
:
'
icon-
add
'
,
iconCls
:
'
icon-
search
'
,
handler
:
function
()
{
handler
:
function
()
{
js
.
addTabPage
(
null
,
"
商品信息
"
,
"
/pages/materials/material.html
"
);
inOutService
.
switchToBarCode
();
//扫码
}
}
}
}
],
],
...
@@ -586,6 +589,8 @@
...
@@ -586,6 +589,8 @@
return
;
return
;
}
}
});
});
var
sweepBarCodeHtml
=
'
<td><input id="sweepBarCode" type="text" placeholder="输入条码并敲回车键" class="radius-ui" style="width:150px;display:none;"/></td>
'
;
$
(
'
#depotHeadFM .datagrid-toolbar tr
'
).
append
(
sweepBarCodeHtml
);
$
.
ajax
({
$
.
ajax
({
type
:
"
get
"
,
type
:
"
get
"
,
url
:
'
/depotItem/getDetailList
'
,
url
:
'
/depotItem/getDetailList
'
,
...
...
erp_web/pages/bill/other_out_list.html
View file @
f7591079
...
@@ -154,6 +154,9 @@
...
@@ -154,6 +154,9 @@
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<a
href=
"javascript:void(0)"
class=
"easyui-linkbutton"
iconCls=
"icon-search"
id=
"searchMaterialBtn"
>
查询
</a>
<a
href=
"javascript:void(0)"
class=
"easyui-linkbutton"
iconCls=
"icon-search"
id=
"searchMaterialBtn"
>
查询
</a>
</div>
</div>
<div
class=
"form-group"
>
<a
href=
"javascript:void(0)"
class=
"easyui-linkbutton"
iconCls=
"icon-add"
id=
"appendMaterial"
>
新增商品
</a>
</div>
</div>
</div>
<table
id=
"materialSelectData"
style=
"top:100px;border-bottom-color:#FFFFFF"
></table>
<table
id=
"materialSelectData"
style=
"top:100px;border-bottom-color:#FFFFFF"
></table>
</div>
</div>
...
@@ -566,11 +569,11 @@
...
@@ -566,11 +569,11 @@
}
}
},
},
{
{
id
:
'
appendMaterial
'
,
id
:
'
switchToBarCode
'
,
text
:
'
新增商品
'
,
text
:
'
扫码
'
,
iconCls
:
'
icon-
add
'
,
iconCls
:
'
icon-
search
'
,
handler
:
function
()
{
handler
:
function
()
{
js
.
addTabPage
(
null
,
"
商品信息
"
,
"
/pages/materials/material.html
"
);
inOutService
.
switchToBarCode
();
//扫码
}
}
}
}
],
],
...
@@ -579,6 +582,8 @@
...
@@ -579,6 +582,8 @@
return
;
return
;
}
}
});
});
var
sweepBarCodeHtml
=
'
<td><input id="sweepBarCode" type="text" placeholder="输入条码并敲回车键" class="radius-ui" style="width:150px;display:none;"/></td>
'
;
$
(
'
#depotHeadFM .datagrid-toolbar tr
'
).
append
(
sweepBarCodeHtml
);
$
.
ajax
({
$
.
ajax
({
type
:
"
get
"
,
type
:
"
get
"
,
url
:
'
/depotItem/getDetailList
'
,
url
:
'
/depotItem/getDetailList
'
,
...
...
erp_web/pages/bill/purchase_back_list.html
View file @
f7591079
...
@@ -282,6 +282,9 @@
...
@@ -282,6 +282,9 @@
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<a
href=
"javascript:void(0)"
class=
"easyui-linkbutton"
iconCls=
"icon-search"
id=
"searchMaterialBtn"
>
查询
</a>
<a
href=
"javascript:void(0)"
class=
"easyui-linkbutton"
iconCls=
"icon-search"
id=
"searchMaterialBtn"
>
查询
</a>
</div>
</div>
<div
class=
"form-group"
>
<a
href=
"javascript:void(0)"
class=
"easyui-linkbutton"
iconCls=
"icon-add"
id=
"appendMaterial"
>
新增商品
</a>
</div>
</div>
</div>
<table
id=
"materialSelectData"
style=
"top:100px;border-bottom-color:#FFFFFF"
></table>
<table
id=
"materialSelectData"
style=
"top:100px;border-bottom-color:#FFFFFF"
></table>
</div>
</div>
...
@@ -703,11 +706,11 @@
...
@@ -703,11 +706,11 @@
}
}
},
},
{
{
id
:
'
appendMaterial
'
,
id
:
'
switchToBarCode
'
,
text
:
'
新增商品
'
,
text
:
'
扫码
'
,
iconCls
:
'
icon-
add
'
,
iconCls
:
'
icon-
search
'
,
handler
:
function
()
{
handler
:
function
()
{
js
.
addTabPage
(
null
,
"
商品信息
"
,
"
/pages/materials/material.html
"
);
inOutService
.
switchToBarCode
();
//扫码
}
}
}
}
],
],
...
@@ -716,6 +719,8 @@
...
@@ -716,6 +719,8 @@
return
;
return
;
}
}
});
});
var
sweepBarCodeHtml
=
'
<td><input id="sweepBarCode" type="text" placeholder="输入条码并敲回车键" class="radius-ui" style="width:150px;display:none;"/></td>
'
;
$
(
'
#depotHeadFM .datagrid-toolbar tr
'
).
append
(
sweepBarCodeHtml
);
$
.
ajax
({
$
.
ajax
({
type
:
"
get
"
,
type
:
"
get
"
,
url
:
'
/depotItem/getDetailList
'
,
url
:
'
/depotItem/getDetailList
'
,
...
...
erp_web/pages/bill/purchase_in_list.html
View file @
f7591079
...
@@ -307,6 +307,9 @@
...
@@ -307,6 +307,9 @@
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<a
href=
"javascript:void(0)"
class=
"easyui-linkbutton"
iconCls=
"icon-search"
id=
"searchMaterialBtn"
>
查询
</a>
<a
href=
"javascript:void(0)"
class=
"easyui-linkbutton"
iconCls=
"icon-search"
id=
"searchMaterialBtn"
>
查询
</a>
</div>
</div>
<div
class=
"form-group"
>
<a
href=
"javascript:void(0)"
class=
"easyui-linkbutton"
iconCls=
"icon-add"
id=
"appendMaterial"
>
新增商品
</a>
</div>
</div>
</div>
<table
id=
"materialSelectData"
style=
"top:100px;border-bottom-color:#FFFFFF"
></table>
<table
id=
"materialSelectData"
style=
"top:100px;border-bottom-color:#FFFFFF"
></table>
</div>
</div>
...
@@ -828,11 +831,11 @@
...
@@ -828,11 +831,11 @@
}
}
},
},
{
{
id
:
'
appendMaterial
'
,
id
:
'
switchToBarCode
'
,
text
:
'
新增商品
'
,
text
:
'
扫码
'
,
iconCls
:
'
icon-
add
'
,
iconCls
:
'
icon-
search
'
,
handler
:
function
()
{
handler
:
function
()
{
js
.
addTabPage
(
null
,
"
商品信息
"
,
"
/pages/materials/material.html
"
);
inOutService
.
switchToBarCode
();
//扫码
}
}
}
}
],
],
...
@@ -841,6 +844,8 @@
...
@@ -841,6 +844,8 @@
return
;
return
;
}
}
});
});
var
sweepBarCodeHtml
=
'
<td><input id="sweepBarCode" type="text" placeholder="输入条码并敲回车键" class="radius-ui" style="width:150px;display:none;"/></td>
'
;
$
(
'
#depotHeadFM .datagrid-toolbar tr
'
).
append
(
sweepBarCodeHtml
);
$
.
ajax
({
$
.
ajax
({
type
:
"
get
"
,
type
:
"
get
"
,
url
:
'
/depotItem/getDetailList
'
,
url
:
'
/depotItem/getDetailList
'
,
...
...
erp_web/pages/bill/purchase_orders_list.html
View file @
f7591079
...
@@ -209,6 +209,9 @@
...
@@ -209,6 +209,9 @@
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<a
href=
"javascript:void(0)"
class=
"easyui-linkbutton"
iconCls=
"icon-search"
id=
"searchMaterialBtn"
>
查询
</a>
<a
href=
"javascript:void(0)"
class=
"easyui-linkbutton"
iconCls=
"icon-search"
id=
"searchMaterialBtn"
>
查询
</a>
</div>
</div>
<div
class=
"form-group"
>
<a
href=
"javascript:void(0)"
class=
"easyui-linkbutton"
iconCls=
"icon-add"
id=
"appendMaterial"
>
新增商品
</a>
</div>
</div>
</div>
<table
id=
"materialSelectData"
style=
"top:100px;border-bottom-color:#FFFFFF"
></table>
<table
id=
"materialSelectData"
style=
"top:100px;border-bottom-color:#FFFFFF"
></table>
</div>
</div>
...
@@ -658,11 +661,11 @@
...
@@ -658,11 +661,11 @@
}
}
},
},
{
{
id
:
'
appendMaterial
'
,
id
:
'
switchToBarCode
'
,
text
:
'
新增商品
'
,
text
:
'
扫码
'
,
iconCls
:
'
icon-
add
'
,
iconCls
:
'
icon-
search
'
,
handler
:
function
()
{
handler
:
function
()
{
js
.
addTabPage
(
null
,
"
商品信息
"
,
"
/pages/materials/material.html
"
);
inOutService
.
switchToBarCode
();
//扫码
}
}
}
}
],
],
...
@@ -671,6 +674,8 @@
...
@@ -671,6 +674,8 @@
return
;
return
;
}
}
});
});
var
sweepBarCodeHtml
=
'
<td><input id="sweepBarCode" type="text" placeholder="输入条码并敲回车键" class="radius-ui" style="width:150px;display:none;"/></td>
'
;
$
(
'
#depotHeadFM .datagrid-toolbar tr
'
).
append
(
sweepBarCodeHtml
);
$
.
ajax
({
$
.
ajax
({
type
:
"
get
"
,
type
:
"
get
"
,
url
:
'
/depotItem/getDetailList
'
,
url
:
'
/depotItem/getDetailList
'
,
...
...
erp_web/pages/bill/retail_back_list.html
View file @
f7591079
...
@@ -222,6 +222,9 @@
...
@@ -222,6 +222,9 @@
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<a
href=
"javascript:void(0)"
class=
"easyui-linkbutton"
iconCls=
"icon-search"
id=
"searchMaterialBtn"
>
查询
</a>
<a
href=
"javascript:void(0)"
class=
"easyui-linkbutton"
iconCls=
"icon-search"
id=
"searchMaterialBtn"
>
查询
</a>
</div>
</div>
<div
class=
"form-group"
>
<a
href=
"javascript:void(0)"
class=
"easyui-linkbutton"
iconCls=
"icon-add"
id=
"appendMaterial"
>
新增商品
</a>
</div>
</div>
</div>
<table
id=
"materialSelectData"
style=
"top:100px;border-bottom-color:#FFFFFF"
></table>
<table
id=
"materialSelectData"
style=
"top:100px;border-bottom-color:#FFFFFF"
></table>
</div>
</div>
...
@@ -718,11 +721,11 @@
...
@@ -718,11 +721,11 @@
}
}
},
},
{
{
id
:
'
appendMaterial
'
,
id
:
'
switchToBarCode
'
,
text
:
'
新增商品
'
,
text
:
'
扫码
'
,
iconCls
:
'
icon-
add
'
,
iconCls
:
'
icon-
search
'
,
handler
:
function
()
{
handler
:
function
()
{
js
.
addTabPage
(
null
,
"
商品信息
"
,
"
/pages/materials/material.html
"
);
inOutService
.
switchToBarCode
();
//扫码
}
}
}
}
],
],
...
@@ -731,6 +734,8 @@
...
@@ -731,6 +734,8 @@
return
;
return
;
}
}
});
});
var
sweepBarCodeHtml
=
'
<td><input id="sweepBarCode" type="text" placeholder="输入条码并敲回车键" class="radius-ui" style="width:150px;display:none;"/></td>
'
;
$
(
'
#depotHeadFM .datagrid-toolbar tr
'
).
append
(
sweepBarCodeHtml
);
$
.
ajax
({
$
.
ajax
({
type
:
"
get
"
,
type
:
"
get
"
,
url
:
'
/depotItem/getDetailList
'
,
url
:
'
/depotItem/getDetailList
'
,
...
...
erp_web/pages/bill/retail_out_list.html
View file @
f7591079
...
@@ -259,6 +259,9 @@
...
@@ -259,6 +259,9 @@
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<a
href=
"javascript:void(0)"
class=
"easyui-linkbutton"
iconCls=
"icon-search"
id=
"searchMaterialBtn"
>
查询
</a>
<a
href=
"javascript:void(0)"
class=
"easyui-linkbutton"
iconCls=
"icon-search"
id=
"searchMaterialBtn"
>
查询
</a>
</div>
</div>
<div
class=
"form-group"
>
<a
href=
"javascript:void(0)"
class=
"easyui-linkbutton"
iconCls=
"icon-add"
id=
"appendMaterial"
>
新增商品
</a>
</div>
</div>
</div>
<table
id=
"materialSelectData"
style=
"top:100px;border-bottom-color:#FFFFFF"
></table>
<table
id=
"materialSelectData"
style=
"top:100px;border-bottom-color:#FFFFFF"
></table>
</div>
</div>
...
@@ -754,11 +757,11 @@
...
@@ -754,11 +757,11 @@
}
}
},
},
{
{
id
:
'
appendMaterial
'
,
id
:
'
switchToBarCode
'
,
text
:
'
新增商品
'
,
text
:
'
扫码
'
,
iconCls
:
'
icon-
add
'
,
iconCls
:
'
icon-
search
'
,
handler
:
function
()
{
handler
:
function
()
{
js
.
addTabPage
(
null
,
"
商品信息
"
,
"
/pages/materials/material.html
"
);
inOutService
.
switchToBarCode
();
//扫码
}
}
}
}
],
],
...
@@ -767,6 +770,8 @@
...
@@ -767,6 +770,8 @@
return
;
return
;
}
}
});
});
var
sweepBarCodeHtml
=
'
<td><input id="sweepBarCode" type="text" placeholder="输入条码并敲回车键" class="radius-ui" style="width:150px;display:none;"/></td>
'
;
$
(
'
#depotHeadFM .datagrid-toolbar tr
'
).
append
(
sweepBarCodeHtml
);
$
.
ajax
({
$
.
ajax
({
type
:
"
get
"
,
type
:
"
get
"
,
url
:
'
/depotItem/getDetailList
'
,
url
:
'
/depotItem/getDetailList
'
,
...
...
erp_web/pages/bill/sale_back_list.html
View file @
f7591079
...
@@ -282,6 +282,9 @@
...
@@ -282,6 +282,9 @@
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<a
href=
"javascript:void(0)"
class=
"easyui-linkbutton"
iconCls=
"icon-search"
id=
"searchMaterialBtn"
>
查询
</a>
<a
href=
"javascript:void(0)"
class=
"easyui-linkbutton"
iconCls=
"icon-search"
id=
"searchMaterialBtn"
>
查询
</a>
</div>
</div>
<div
class=
"form-group"
>
<a
href=
"javascript:void(0)"
class=
"easyui-linkbutton"
iconCls=
"icon-add"
id=
"appendMaterial"
>
新增商品
</a>
</div>
</div>
</div>
<table
id=
"materialSelectData"
style=
"top:100px;border-bottom-color:#FFFFFF"
></table>
<table
id=
"materialSelectData"
style=
"top:100px;border-bottom-color:#FFFFFF"
></table>
</div>
</div>
...
@@ -744,11 +747,11 @@
...
@@ -744,11 +747,11 @@
}
}
},
},
{
{
id
:
'
appendMaterial
'
,
id
:
'
switchToBarCode
'
,
text
:
'
新增商品
'
,
text
:
'
扫码
'
,
iconCls
:
'
icon-
add
'
,
iconCls
:
'
icon-
search
'
,
handler
:
function
()
{
handler
:
function
()
{
js
.
addTabPage
(
null
,
"
商品信息
"
,
"
/pages/materials/material.html
"
);
inOutService
.
switchToBarCode
();
//扫码
}
}
}
}
],
],
...
@@ -757,6 +760,8 @@
...
@@ -757,6 +760,8 @@
return
;
return
;
}
}
});
});
var
sweepBarCodeHtml
=
'
<td><input id="sweepBarCode" type="text" placeholder="输入条码并敲回车键" class="radius-ui" style="width:150px;display:none;"/></td>
'
;
$
(
'
#depotHeadFM .datagrid-toolbar tr
'
).
append
(
sweepBarCodeHtml
);
$
.
ajax
({
$
.
ajax
({
type
:
"
get
"
,
type
:
"
get
"
,
url
:
'
/depotItem/getDetailList
'
,
url
:
'
/depotItem/getDetailList
'
,
...
...
erp_web/pages/bill/sale_orders_list.html
View file @
f7591079
...
@@ -211,6 +211,9 @@
...
@@ -211,6 +211,9 @@
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<a
href=
"javascript:void(0)"
class=
"easyui-linkbutton"
iconCls=
"icon-search"
id=
"searchMaterialBtn"
>
查询
</a>
<a
href=
"javascript:void(0)"
class=
"easyui-linkbutton"
iconCls=
"icon-search"
id=
"searchMaterialBtn"
>
查询
</a>
</div>
</div>
<div
class=
"form-group"
>
<a
href=
"javascript:void(0)"
class=
"easyui-linkbutton"
iconCls=
"icon-add"
id=
"appendMaterial"
>
新增商品
</a>
</div>
</div>
</div>
<table
id=
"materialSelectData"
style=
"top:100px;border-bottom-color:#FFFFFF"
></table>
<table
id=
"materialSelectData"
style=
"top:100px;border-bottom-color:#FFFFFF"
></table>
</div>
</div>
...
@@ -702,11 +705,11 @@
...
@@ -702,11 +705,11 @@
}
}
},
},
{
{
id
:
'
appendMaterial
'
,
id
:
'
switchToBarCode
'
,
text
:
'
新增商品
'
,
text
:
'
扫码
'
,
iconCls
:
'
icon-
add
'
,
iconCls
:
'
icon-
search
'
,
handler
:
function
()
{
handler
:
function
()
{
js
.
addTabPage
(
null
,
"
商品信息
"
,
"
/pages/materials/material.html
"
);
inOutService
.
switchToBarCode
();
//扫码
}
}
}
}
],
],
...
@@ -715,6 +718,8 @@
...
@@ -715,6 +718,8 @@
return
;
return
;
}
}
});
});
var
sweepBarCodeHtml
=
'
<td><input id="sweepBarCode" type="text" placeholder="输入条码并敲回车键" class="radius-ui" style="width:150px;display:none;"/></td>
'
;
$
(
'
#depotHeadFM .datagrid-toolbar tr
'
).
append
(
sweepBarCodeHtml
);
$
.
ajax
({
$
.
ajax
({
type
:
"
get
"
,
type
:
"
get
"
,
url
:
'
/depotItem/getDetailList
'
,
url
:
'
/depotItem/getDetailList
'
,
...
...
erp_web/pages/bill/sale_out_list.html
View file @
f7591079
...
@@ -309,6 +309,9 @@
...
@@ -309,6 +309,9 @@
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<a
href=
"javascript:void(0)"
class=
"easyui-linkbutton"
iconCls=
"icon-search"
id=
"searchMaterialBtn"
>
查询
</a>
<a
href=
"javascript:void(0)"
class=
"easyui-linkbutton"
iconCls=
"icon-search"
id=
"searchMaterialBtn"
>
查询
</a>
</div>
</div>
<div
class=
"form-group"
>
<a
href=
"javascript:void(0)"
class=
"easyui-linkbutton"
iconCls=
"icon-add"
id=
"appendMaterial"
>
新增商品
</a>
</div>
</div>
</div>
<table
id=
"materialSelectData"
style=
"top:100px;border-bottom-color:#FFFFFF"
></table>
<table
id=
"materialSelectData"
style=
"top:100px;border-bottom-color:#FFFFFF"
></table>
</div>
</div>
...
@@ -897,11 +900,11 @@
...
@@ -897,11 +900,11 @@
}
}
},
},
{
{
id
:
'
appendMaterial
'
,
id
:
'
switchToBarCode
'
,
text
:
'
新增商品
'
,
text
:
'
扫码
'
,
iconCls
:
'
icon-
add
'
,
iconCls
:
'
icon-
search
'
,
handler
:
function
()
{
handler
:
function
()
{
js
.
addTabPage
(
null
,
"
商品信息
"
,
"
/pages/materials/material.html
"
);
inOutService
.
switchToBarCode
();
//扫码
}
}
}
}
],
],
...
@@ -910,6 +913,8 @@
...
@@ -910,6 +913,8 @@
return
;
return
;
}
}
});
});
var
sweepBarCodeHtml
=
'
<td><input id="sweepBarCode" type="text" placeholder="输入条码并敲回车键" class="radius-ui" style="width:150px;display:none;"/></td>
'
;
$
(
'
#depotHeadFM .datagrid-toolbar tr
'
).
append
(
sweepBarCodeHtml
);
$
.
ajax
({
$
.
ajax
({
type
:
"
get
"
,
type
:
"
get
"
,
url
:
'
/depotItem/getDetailList
'
,
url
:
'
/depotItem/getDetailList
'
,
...
...
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