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
3aab5d92
Commit
3aab5d92
authored
May 09, 2019
by
qiankunpingtai
Browse files
修改零售退货列表,去掉多余js
parent
68dc8bd3
Changes
9
Expand all
Hide whitespace changes
Inline
Side-by-side
erp_web/js/pages/materials/allocation_out_list.js
View file @
3aab5d92
...
...
@@ -2090,7 +2090,51 @@ function autoReckon() {
return
;
}
else
{
return
;
$
.
ajax
({
url
:
"
/material/findById
"
,
type
:
"
get
"
,
dataType
:
"
json
"
,
data
:
{
id
:
mValue
-
0
},
success
:
function
(
res
){
if
(
res
&&
res
.
rows
&&
res
.
rows
[
0
])
{
var
retailPrice
=
res
.
rows
[
0
].
RetailPrice
;
var
presetPriceOne
=
res
.
rows
[
0
].
PresetPriceOne
;
var
presetPriceTwo
=
res
.
rows
[
0
].
PresetPriceTwo
;
//定义模版
var
temp
=
"
<div class='price-list'>
"
;
temp
+=
"
<ul>
"
;
temp
+=
"
<li>批发价:
"
+
presetPriceTwo
+
"
</li>
"
;
temp
+=
"
<li>零售价:
"
+
retailPrice
+
"
</li>
"
;
temp
+=
"
</ul>
"
;
temp
+=
"
</div>
"
;
if
(
$
(
'
.price-list
'
).
length
){
$
(
'
.price-list
'
).
remove
();
//如果存在价格列表先移除
}
else
{
if
(
presetPriceTwo
!=
undefined
){
//多单位的商品
$
(
self
).
after
(
temp
);
//加载列表信息
}
}
$
(
'
.price-list ul li
'
).
off
(
"
click
"
).
on
(
"
click
"
,
function
(){
var
price
=
$
(
this
).
text
();
price
=
price
.
substring
(
price
.
indexOf
(
"
:
"
)
+
1
);
$
(
self
).
val
(
price
);
$
(
self
).
keyup
();
//模拟键盘操作
$
(
'
.price-list
'
).
remove
();
//移除价格列表
});
//点击空白处移除价格列表
$
(
"
.datagrid-body
"
).
off
(
"
click
"
).
on
(
"
click
"
,
function
(){
$
(
'
.price-list
'
).
remove
();
//移除价格列表
});
}
},
error
:
function
(){
$
.
messager
.
alert
(
'
错误提示
'
,
'
查询商品信息异常,请稍后再试!
'
,
'
error
'
);
return
;
}
});
}
});
//修改含税单价,自动计算单价、金额、税额、价税合计和合计
...
...
erp_web/js/pages/materials/assemble_list.js
View file @
3aab5d92
...
...
@@ -2090,51 +2090,7 @@ function autoReckon() {
return
;
}
else
{
$
.
ajax
({
url
:
"
/material/findById
"
,
type
:
"
get
"
,
dataType
:
"
json
"
,
data
:
{
id
:
mValue
-
0
},
success
:
function
(
res
){
if
(
res
&&
res
.
rows
&&
res
.
rows
[
0
])
{
var
retailPrice
=
res
.
rows
[
0
].
RetailPrice
;
var
presetPriceOne
=
res
.
rows
[
0
].
PresetPriceOne
;
var
presetPriceTwo
=
res
.
rows
[
0
].
PresetPriceTwo
;
//定义模版
var
temp
=
"
<div class='price-list'>
"
;
temp
+=
"
<ul>
"
;
temp
+=
"
<li>批发价:
"
+
presetPriceTwo
+
"
</li>
"
;
temp
+=
"
<li>零售价:
"
+
retailPrice
+
"
</li>
"
;
temp
+=
"
</ul>
"
;
temp
+=
"
</div>
"
;
if
(
$
(
'
.price-list
'
).
length
){
$
(
'
.price-list
'
).
remove
();
//如果存在价格列表先移除
}
else
{
if
(
presetPriceTwo
!=
undefined
){
//多单位的商品
$
(
self
).
after
(
temp
);
//加载列表信息
}
}
$
(
'
.price-list ul li
'
).
off
(
"
click
"
).
on
(
"
click
"
,
function
(){
var
price
=
$
(
this
).
text
();
price
=
price
.
substring
(
price
.
indexOf
(
"
:
"
)
+
1
);
$
(
self
).
val
(
price
);
$
(
self
).
keyup
();
//模拟键盘操作
$
(
'
.price-list
'
).
remove
();
//移除价格列表
});
//点击空白处移除价格列表
$
(
"
.datagrid-body
"
).
off
(
"
click
"
).
on
(
"
click
"
,
function
(){
$
(
'
.price-list
'
).
remove
();
//移除价格列表
});
}
},
error
:
function
(){
$
.
messager
.
alert
(
'
错误提示
'
,
'
查询商品信息异常,请稍后再试!
'
,
'
error
'
);
return
;
}
});
return
;
}
});
//修改含税单价,自动计算单价、金额、税额、价税合计和合计
...
...
erp_web/js/pages/materials/disassemble_list.js
View file @
3aab5d92
...
...
@@ -2094,51 +2094,7 @@ function autoReckon() {
return
;
}
else
{
$
.
ajax
({
url
:
"
/material/findById
"
,
type
:
"
get
"
,
dataType
:
"
json
"
,
data
:
{
id
:
mValue
-
0
},
success
:
function
(
res
){
if
(
res
&&
res
.
rows
&&
res
.
rows
[
0
])
{
var
retailPrice
=
res
.
rows
[
0
].
RetailPrice
;
var
presetPriceOne
=
res
.
rows
[
0
].
PresetPriceOne
;
var
presetPriceTwo
=
res
.
rows
[
0
].
PresetPriceTwo
;
//定义模版
var
temp
=
"
<div class='price-list'>
"
;
temp
+=
"
<ul>
"
;
temp
+=
"
<li>批发价:
"
+
presetPriceTwo
+
"
</li>
"
;
temp
+=
"
<li>零售价:
"
+
retailPrice
+
"
</li>
"
;
temp
+=
"
</ul>
"
;
temp
+=
"
</div>
"
;
if
(
$
(
'
.price-list
'
).
length
){
$
(
'
.price-list
'
).
remove
();
//如果存在价格列表先移除
}
else
{
if
(
presetPriceTwo
!=
undefined
){
//多单位的商品
$
(
self
).
after
(
temp
);
//加载列表信息
}
}
$
(
'
.price-list ul li
'
).
off
(
"
click
"
).
on
(
"
click
"
,
function
(){
var
price
=
$
(
this
).
text
();
price
=
price
.
substring
(
price
.
indexOf
(
"
:
"
)
+
1
);
$
(
self
).
val
(
price
);
$
(
self
).
keyup
();
//模拟键盘操作
$
(
'
.price-list
'
).
remove
();
//移除价格列表
});
//点击空白处移除价格列表
$
(
"
.datagrid-body
"
).
off
(
"
click
"
).
on
(
"
click
"
,
function
(){
$
(
'
.price-list
'
).
remove
();
//移除价格列表
});
}
},
error
:
function
(){
$
.
messager
.
alert
(
'
错误提示
'
,
'
查询商品信息异常,请稍后再试!
'
,
'
error
'
);
return
;
}
});
return
;
}
});
//修改含税单价,自动计算单价、金额、税额、价税合计和合计
...
...
erp_web/js/pages/materials/other_in_list.js
View file @
3aab5d92
...
...
@@ -2176,51 +2176,7 @@ function autoReckon() {
return
;
}
else
{
$
.
ajax
({
url
:
"
/material/findById
"
,
type
:
"
get
"
,
dataType
:
"
json
"
,
data
:
{
id
:
mValue
-
0
},
success
:
function
(
res
){
if
(
res
&&
res
.
rows
&&
res
.
rows
[
0
])
{
var
retailPrice
=
res
.
rows
[
0
].
RetailPrice
;
var
presetPriceOne
=
res
.
rows
[
0
].
PresetPriceOne
;
var
presetPriceTwo
=
res
.
rows
[
0
].
PresetPriceTwo
;
//定义模版
var
temp
=
"
<div class='price-list'>
"
;
temp
+=
"
<ul>
"
;
temp
+=
"
<li>批发价:
"
+
presetPriceTwo
+
"
</li>
"
;
temp
+=
"
<li>零售价:
"
+
retailPrice
+
"
</li>
"
;
temp
+=
"
</ul>
"
;
temp
+=
"
</div>
"
;
if
(
$
(
'
.price-list
'
).
length
){
$
(
'
.price-list
'
).
remove
();
//如果存在价格列表先移除
}
else
{
if
(
presetPriceTwo
!=
undefined
){
//多单位的商品
$
(
self
).
after
(
temp
);
//加载列表信息
}
}
$
(
'
.price-list ul li
'
).
off
(
"
click
"
).
on
(
"
click
"
,
function
(){
var
price
=
$
(
this
).
text
();
price
=
price
.
substring
(
price
.
indexOf
(
"
:
"
)
+
1
);
$
(
self
).
val
(
price
);
$
(
self
).
keyup
();
//模拟键盘操作
$
(
'
.price-list
'
).
remove
();
//移除价格列表
});
//点击空白处移除价格列表
$
(
"
.datagrid-body
"
).
off
(
"
click
"
).
on
(
"
click
"
,
function
(){
$
(
'
.price-list
'
).
remove
();
//移除价格列表
});
}
},
error
:
function
(){
$
.
messager
.
alert
(
'
错误提示
'
,
'
查询商品信息异常,请稍后再试!
'
,
'
error
'
);
return
;
}
});
return
;
}
});
//修改含税单价,自动计算单价、金额、税额、价税合计和合计
...
...
erp_web/js/pages/materials/other_out_list.js
View file @
3aab5d92
...
...
@@ -2087,7 +2087,51 @@ function autoReckon() {
return
;
}
else
{
return
;
$
.
ajax
({
url
:
"
/material/findById
"
,
type
:
"
get
"
,
dataType
:
"
json
"
,
data
:
{
id
:
mValue
-
0
},
success
:
function
(
res
){
if
(
res
&&
res
.
rows
&&
res
.
rows
[
0
])
{
var
retailPrice
=
res
.
rows
[
0
].
RetailPrice
;
var
presetPriceOne
=
res
.
rows
[
0
].
PresetPriceOne
;
var
presetPriceTwo
=
res
.
rows
[
0
].
PresetPriceTwo
;
//定义模版
var
temp
=
"
<div class='price-list'>
"
;
temp
+=
"
<ul>
"
;
temp
+=
"
<li>批发价:
"
+
presetPriceTwo
+
"
</li>
"
;
temp
+=
"
<li>零售价:
"
+
retailPrice
+
"
</li>
"
;
temp
+=
"
</ul>
"
;
temp
+=
"
</div>
"
;
if
(
$
(
'
.price-list
'
).
length
){
$
(
'
.price-list
'
).
remove
();
//如果存在价格列表先移除
}
else
{
if
(
presetPriceTwo
!=
undefined
){
//多单位的商品
$
(
self
).
after
(
temp
);
//加载列表信息
}
}
$
(
'
.price-list ul li
'
).
off
(
"
click
"
).
on
(
"
click
"
,
function
(){
var
price
=
$
(
this
).
text
();
price
=
price
.
substring
(
price
.
indexOf
(
"
:
"
)
+
1
);
$
(
self
).
val
(
price
);
$
(
self
).
keyup
();
//模拟键盘操作
$
(
'
.price-list
'
).
remove
();
//移除价格列表
});
//点击空白处移除价格列表
$
(
"
.datagrid-body
"
).
off
(
"
click
"
).
on
(
"
click
"
,
function
(){
$
(
'
.price-list
'
).
remove
();
//移除价格列表
});
}
},
error
:
function
(){
$
.
messager
.
alert
(
'
错误提示
'
,
'
查询商品信息异常,请稍后再试!
'
,
'
error
'
);
return
;
}
});
}
});
//修改含税单价,自动计算单价、金额、税额、价税合计和合计
...
...
erp_web/js/pages/materials/purchase_back_list.js
View file @
3aab5d92
...
...
@@ -2124,7 +2124,51 @@ function autoReckon() {
return
;
}
else
{
return
;
$
.
ajax
({
url
:
"
/material/findById
"
,
type
:
"
get
"
,
dataType
:
"
json
"
,
data
:
{
id
:
mValue
-
0
},
success
:
function
(
res
){
if
(
res
&&
res
.
rows
&&
res
.
rows
[
0
])
{
var
retailPrice
=
res
.
rows
[
0
].
RetailPrice
;
var
presetPriceOne
=
res
.
rows
[
0
].
PresetPriceOne
;
var
presetPriceTwo
=
res
.
rows
[
0
].
PresetPriceTwo
;
//定义模版
var
temp
=
"
<div class='price-list'>
"
;
temp
+=
"
<ul>
"
;
temp
+=
"
<li>批发价:
"
+
presetPriceTwo
+
"
</li>
"
;
temp
+=
"
<li>零售价:
"
+
retailPrice
+
"
</li>
"
;
temp
+=
"
</ul>
"
;
temp
+=
"
</div>
"
;
if
(
$
(
'
.price-list
'
).
length
){
$
(
'
.price-list
'
).
remove
();
//如果存在价格列表先移除
}
else
{
if
(
presetPriceTwo
!=
undefined
){
//多单位的商品
$
(
self
).
after
(
temp
);
//加载列表信息
}
}
$
(
'
.price-list ul li
'
).
off
(
"
click
"
).
on
(
"
click
"
,
function
(){
var
price
=
$
(
this
).
text
();
price
=
price
.
substring
(
price
.
indexOf
(
"
:
"
)
+
1
);
$
(
self
).
val
(
price
);
$
(
self
).
keyup
();
//模拟键盘操作
$
(
'
.price-list
'
).
remove
();
//移除价格列表
});
//点击空白处移除价格列表
$
(
"
.datagrid-body
"
).
off
(
"
click
"
).
on
(
"
click
"
,
function
(){
$
(
'
.price-list
'
).
remove
();
//移除价格列表
});
}
},
error
:
function
(){
$
.
messager
.
alert
(
'
错误提示
'
,
'
查询商品信息异常,请稍后再试!
'
,
'
error
'
);
return
;
}
});
}
});
//修改含税单价,自动计算单价、金额、税额、价税合计和合计
...
...
erp_web/js/pages/materials/purchase_in_list.js
View file @
3aab5d92
...
...
@@ -2201,51 +2201,7 @@ function autoReckon() {
return
;
}
else
{
$
.
ajax
({
url
:
"
/material/findById
"
,
type
:
"
get
"
,
dataType
:
"
json
"
,
data
:
{
id
:
mValue
-
0
},
success
:
function
(
res
){
if
(
res
&&
res
.
rows
&&
res
.
rows
[
0
])
{
var
retailPrice
=
res
.
rows
[
0
].
RetailPrice
;
var
presetPriceOne
=
res
.
rows
[
0
].
PresetPriceOne
;
var
presetPriceTwo
=
res
.
rows
[
0
].
PresetPriceTwo
;
//定义模版
var
temp
=
"
<div class='price-list'>
"
;
temp
+=
"
<ul>
"
;
temp
+=
"
<li>批发价:
"
+
presetPriceTwo
+
"
</li>
"
;
temp
+=
"
<li>零售价:
"
+
retailPrice
+
"
</li>
"
;
temp
+=
"
</ul>
"
;
temp
+=
"
</div>
"
;
if
(
$
(
'
.price-list
'
).
length
){
$
(
'
.price-list
'
).
remove
();
//如果存在价格列表先移除
}
else
{
if
(
presetPriceTwo
!=
undefined
){
//多单位的商品
$
(
self
).
after
(
temp
);
//加载列表信息
}
}
$
(
'
.price-list ul li
'
).
off
(
"
click
"
).
on
(
"
click
"
,
function
(){
var
price
=
$
(
this
).
text
();
price
=
price
.
substring
(
price
.
indexOf
(
"
:
"
)
+
1
);
$
(
self
).
val
(
price
);
$
(
self
).
keyup
();
//模拟键盘操作
$
(
'
.price-list
'
).
remove
();
//移除价格列表
});
//点击空白处移除价格列表
$
(
"
.datagrid-body
"
).
off
(
"
click
"
).
on
(
"
click
"
,
function
(){
$
(
'
.price-list
'
).
remove
();
//移除价格列表
});
}
},
error
:
function
(){
$
.
messager
.
alert
(
'
错误提示
'
,
'
查询商品信息异常,请稍后再试!
'
,
'
error
'
);
return
;
}
});
return
;
}
});
//修改含税单价,自动计算单价、金额、税额、价税合计和合计
...
...
erp_web/js/pages/materials/purchase_orders_list.js
View file @
3aab5d92
...
...
@@ -2196,51 +2196,7 @@ function autoReckon() {
return
;
}
else
{
$
.
ajax
({
url
:
"
/material/findById
"
,
type
:
"
get
"
,
dataType
:
"
json
"
,
data
:
{
id
:
mValue
-
0
},
success
:
function
(
res
){
if
(
res
&&
res
.
rows
&&
res
.
rows
[
0
])
{
var
retailPrice
=
res
.
rows
[
0
].
RetailPrice
;
var
presetPriceOne
=
res
.
rows
[
0
].
PresetPriceOne
;
var
presetPriceTwo
=
res
.
rows
[
0
].
PresetPriceTwo
;
//定义模版
var
temp
=
"
<div class='price-list'>
"
;
temp
+=
"
<ul>
"
;
temp
+=
"
<li>批发价:
"
+
presetPriceTwo
+
"
</li>
"
;
temp
+=
"
<li>零售价:
"
+
retailPrice
+
"
</li>
"
;
temp
+=
"
</ul>
"
;
temp
+=
"
</div>
"
;
if
(
$
(
'
.price-list
'
).
length
){
$
(
'
.price-list
'
).
remove
();
//如果存在价格列表先移除
}
else
{
if
(
presetPriceTwo
!=
undefined
){
//多单位的商品
$
(
self
).
after
(
temp
);
//加载列表信息
}
}
$
(
'
.price-list ul li
'
).
off
(
"
click
"
).
on
(
"
click
"
,
function
(){
var
price
=
$
(
this
).
text
();
price
=
price
.
substring
(
price
.
indexOf
(
"
:
"
)
+
1
);
$
(
self
).
val
(
price
);
$
(
self
).
keyup
();
//模拟键盘操作
$
(
'
.price-list
'
).
remove
();
//移除价格列表
});
//点击空白处移除价格列表
$
(
"
.datagrid-body
"
).
off
(
"
click
"
).
on
(
"
click
"
,
function
(){
$
(
'
.price-list
'
).
remove
();
//移除价格列表
});
}
},
error
:
function
(){
$
.
messager
.
alert
(
'
错误提示
'
,
'
查询商品信息异常,请稍后再试!
'
,
'
error
'
);
return
;
}
});
return
;
}
});
//修改含税单价,自动计算单价、金额、税额、价税合计和合计
...
...
erp_web/js/pages/materials/retail_back_list.js
View file @
3aab5d92
This diff is collapsed.
Click to expand it.
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