Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Skyeye云
Skyeye
提交
4056ec42
S
Skyeye
项目概览
Skyeye云
/
Skyeye
通知
1279
Star
158
Fork
129
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
Skyeye
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
4056ec42
编写于
2年前
作者:
W
weizhiqiang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
【ERP】 产品选择修改
上级
96a39275
company_server
无相关合并请求
变更
47
隐藏空白更改
内联
并排
Showing
47 changed file
with
670 addition
and
1203 deletion
+670
-1203
erp-produce/src/main/resources/template/js/erpBom/erpBomAdd.js
...roduce/src/main/resources/template/js/erpBom/erpBomAdd.js
+10
-23
erp-produce/src/main/resources/template/js/erpBom/erpBomEdit.js
...oduce/src/main/resources/template/js/erpBom/erpBomEdit.js
+11
-23
erp-produce/src/main/resources/template/js/erpMachin/erpMachinAdd.js
.../src/main/resources/template/js/erpMachin/erpMachinAdd.js
+43
-65
erp-produce/src/main/resources/template/js/erpMachin/erpMachinEdit.js
...src/main/resources/template/js/erpMachin/erpMachinEdit.js
+47
-69
erp-produce/src/main/resources/template/js/erpPick/erpPatchAdd.js
...uce/src/main/resources/template/js/erpPick/erpPatchAdd.js
+13
-25
erp-produce/src/main/resources/template/js/erpPick/erpPatchEdit.js
...ce/src/main/resources/template/js/erpPick/erpPatchEdit.js
+13
-25
erp-produce/src/main/resources/template/js/erpPick/erpRequisitionAdd.js
...c/main/resources/template/js/erpPick/erpRequisitionAdd.js
+13
-25
erp-produce/src/main/resources/template/js/erpPick/erpRequisitionEdit.js
.../main/resources/template/js/erpPick/erpRequisitionEdit.js
+13
-25
erp-produce/src/main/resources/template/js/erpPick/erpReturnAdd.js
...ce/src/main/resources/template/js/erpPick/erpReturnAdd.js
+13
-25
erp-produce/src/main/resources/template/js/erpPick/erpReturnEdit.js
...e/src/main/resources/template/js/erpPick/erpReturnEdit.js
+13
-25
erp-produce/src/main/resources/template/js/erpProduction/erpProductionAdd.js
...n/resources/template/js/erpProduction/erpProductionAdd.js
+15
-27
erp-produce/src/main/resources/template/js/erpProduction/erpProductionEdit.js
.../resources/template/js/erpProduction/erpProductionEdit.js
+16
-28
erp/src/main/resources/template/js/allocation/allocationadd.js
...rc/main/resources/template/js/allocation/allocationadd.js
+13
-24
erp/src/main/resources/template/js/allocation/allocationedit.js
...c/main/resources/template/js/allocation/allocationedit.js
+13
-24
erp/src/main/resources/template/js/assemblysheet/assemblysheetadd.js
...n/resources/template/js/assemblysheet/assemblysheetadd.js
+13
-24
erp/src/main/resources/template/js/assemblysheet/assemblysheetedit.js
.../resources/template/js/assemblysheet/assemblysheetedit.js
+13
-25
erp/src/main/resources/template/js/material/materialChoose.js
...src/main/resources/template/js/material/materialChoose.js
+7
-8
erp/src/main/resources/template/js/otheroutlets/otheroutletsadd.js
...ain/resources/template/js/otheroutlets/otheroutletsadd.js
+13
-25
erp/src/main/resources/template/js/otheroutlets/otheroutletsedit.js
...in/resources/template/js/otheroutlets/otheroutletsedit.js
+13
-25
erp/src/main/resources/template/js/otherwarehous/otherwarehousadd.js
...n/resources/template/js/otherwarehous/otherwarehousadd.js
+12
-27
erp/src/main/resources/template/js/otherwarehous/otherwarehousedit.js
.../resources/template/js/otherwarehous/otherwarehousedit.js
+13
-24
erp/src/main/resources/template/js/purchaseorder/purchaseorderadd.js
...n/resources/template/js/purchaseorder/purchaseorderadd.js
+13
-24
erp/src/main/resources/template/js/purchaseorder/purchaseorderedit.js
.../resources/template/js/purchaseorder/purchaseorderedit.js
+13
-24
erp/src/main/resources/template/js/purchaseorder/purchaseorderpurchase.js
...ources/template/js/purchaseorder/purchaseorderpurchase.js
+13
-24
erp/src/main/resources/template/js/purchaseput/purchaseputadd.js
.../main/resources/template/js/purchaseput/purchaseputadd.js
+13
-24
erp/src/main/resources/template/js/purchaseput/purchaseputedit.js
...main/resources/template/js/purchaseput/purchaseputedit.js
+13
-24
erp/src/main/resources/template/js/purchasereturns/purchasereturnsadd.js
...sources/template/js/purchasereturns/purchasereturnsadd.js
+13
-24
erp/src/main/resources/template/js/purchasereturns/purchasereturnsedit.js
...ources/template/js/purchasereturns/purchasereturnsedit.js
+13
-24
erp/src/main/resources/template/js/retailoutlet/retailoutletadd.js
...ain/resources/template/js/retailoutlet/retailoutletadd.js
+13
-24
erp/src/main/resources/template/js/retailoutlet/retailoutletedit.js
...in/resources/template/js/retailoutlet/retailoutletedit.js
+13
-24
erp/src/main/resources/template/js/retailreturns/retailreturnsadd.js
...n/resources/template/js/retailreturns/retailreturnsadd.js
+13
-24
erp/src/main/resources/template/js/retailreturns/retailreturnsedit.js
.../resources/template/js/retailreturns/retailreturnsedit.js
+13
-24
erp/src/main/resources/template/js/salesorder/salesorderadd.js
...rc/main/resources/template/js/salesorder/salesorderadd.js
+13
-25
erp/src/main/resources/template/js/salesorder/salesorderedit.js
...c/main/resources/template/js/salesorder/salesorderedit.js
+13
-25
erp/src/main/resources/template/js/salesorder/salesorderpurchase.js
...in/resources/template/js/salesorder/salesorderpurchase.js
+13
-25
erp/src/main/resources/template/js/salesoutlet/salesoutletadd.js
.../main/resources/template/js/salesoutlet/salesoutletadd.js
+13
-25
erp/src/main/resources/template/js/salesoutlet/salesoutletedit.js
...main/resources/template/js/salesoutlet/salesoutletedit.js
+13
-25
erp/src/main/resources/template/js/salesreturns/salesreturnsadd.js
...ain/resources/template/js/salesreturns/salesreturnsadd.js
+13
-25
erp/src/main/resources/template/js/salesreturns/salesreturnsedit.js
...in/resources/template/js/salesreturns/salesreturnsedit.js
+13
-25
erp/src/main/resources/template/js/splitlist/splitlistadd.js
erp/src/main/resources/template/js/splitlist/splitlistadd.js
+13
-24
erp/src/main/resources/template/js/splitlist/splitlistedit.js
...src/main/resources/template/js/splitlist/splitlistedit.js
+13
-24
seal-service/src/main/resources/template/js/partsclaim/partsclaimadd.js
...rc/main/resources/template/js/partsclaim/partsclaimadd.js
+13
-25
seal-service/src/main/resources/template/js/partsclaim/partsclaimedit.js
...c/main/resources/template/js/partsclaim/partsclaimedit.js
+13
-25
seal-service/src/main/resources/template/js/sealseservice/sealseserviceadd.js
...n/resources/template/js/sealseservice/sealseserviceadd.js
+5
-16
seal-service/src/main/resources/template/js/sealseservice/sealseserviceedit.js
.../resources/template/js/sealseservice/sealseserviceedit.js
+6
-17
seal-service/src/main/resources/template/js/stateisstayfinishedpro/stateisstayfinished.js
...template/js/stateisstayfinishedpro/stateisstayfinished.js
+20
-42
web/src/main/resources/template/assets/lib/layui/customer/erpOrderUtil.js
...ources/template/assets/lib/layui/customer/erpOrderUtil.js
+23
-0
未找到文件。
erp-produce/src/main/resources/template/js/erpBom/erpBomAdd.js
浏览文件 @
4056ec42
//商品信息
var
productMation
=
{};
//bom表商品选择必备参数
var
productMationList
=
[];
//选择的商品列表
...
...
@@ -33,7 +30,6 @@ layui.config({
matchingLanguage
();
form
.
render
();
form
.
on
(
'
submit(formAddBean)
'
,
function
(
data
)
{
if
(
winui
.
verifyForm
(
data
.
elem
))
{
if
(
ztreeNode
.
length
==
0
){
winui
.
window
.
msg
(
'
请选择子件清单。
'
,
{
icon
:
2
,
time
:
2000
});
...
...
@@ -47,7 +43,7 @@ layui.config({
item
.
wastagePrice
=
$
(
"
#wastage
"
+
item
.
productId
).
val
();
item
.
remark
=
$
(
"
#remark
"
+
item
.
productId
).
val
();
childObject
.
push
(
item
);
if
(
item
.
productId
==
p
roductMation
.
productId
){
if
(
item
.
productId
==
erpOrderUtil
.
chooseP
roductMation
.
productId
){
winui
.
window
.
msg
(
'
子件清单中不能包含父件信息。
'
,
{
icon
:
2
,
time
:
2000
});
wheatherError
=
true
;
return
false
;
...
...
@@ -65,10 +61,10 @@ layui.config({
var
params
=
{
bomTitle
:
$
(
"
#bomTitle
"
).
val
(),
materialId
:
isNull
(
productMation
.
productId
)
?
''
:
p
roductMation
.
productId
,
//商品id
materialId
:
isNull
(
erpOrderUtil
.
chooseProductMation
.
productId
)
?
''
:
erpOrderUtil
.
chooseP
roductMation
.
productId
,
//商品id
normsId
:
$
(
"
#unitList
"
).
val
(),
remark
:
$
(
"
#remark
"
).
val
(),
sealPrice
:
getSealPrice
(
p
roductMation
.
unitList
,
$
(
"
#unitList
"
).
val
()),
sealPrice
:
getSealPrice
(
erpOrderUtil
.
chooseP
roductMation
.
unitList
,
$
(
"
#unitList
"
).
val
()),
childStr
:
JSON
.
stringify
(
childObject
)
};
...
...
@@ -333,23 +329,14 @@ layui.config({
}
});
//商品选择
//
商品选择
$
(
"
body
"
).
on
(
"
click
"
,
"
#productNameSel
"
,
function
(
e
){
_openNewWindows
({
url
:
"
../../tpl/material/materialChoose.html
"
,
title
:
"
选择商品
"
,
pageId
:
"
productlist
"
,
area
:
[
'
90vw
'
,
'
90vh
'
],
callBack
:
function
(
refreshCode
){
if
(
refreshCode
==
'
0
'
)
{
$
(
"
#productName
"
).
val
(
productMation
.
productName
);
$
(
"
#productModel
"
).
val
(
productMation
.
productModel
);
$
(
"
#unitList
"
).
html
(
getDataUseHandlebars
(
selTemplate
,
{
rows
:
productMation
.
unitList
}));
form
.
render
(
"
select
"
);
}
else
if
(
refreshCode
==
'
-9999
'
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.operationFailed
"
][
languageType
],
{
icon
:
2
,
time
:
2000
});
}
}});
erpOrderUtil
.
openMaterialChooseChoosePage
(
function
(
chooseProductMation
)
{
$
(
"
#productName
"
).
val
(
chooseProductMation
.
productName
);
$
(
"
#productModel
"
).
val
(
chooseProductMation
.
productModel
);
$
(
"
#unitList
"
).
html
(
getDataUseHandlebars
(
selTemplate
,
{
rows
:
chooseProductMation
.
unitList
}));
form
.
render
(
"
select
"
);
});
});
/**
...
...
This diff is collapsed.
Click to expand it.
erp-produce/src/main/resources/template/js/erpBom/erpBomEdit.js
浏览文件 @
4056ec42
//商品信息
var
productMation
=
{};
//bom表商品选择必备参数
var
productMationList
=
[];
//选择的商品列表
...
...
@@ -36,7 +33,7 @@ layui.config({
});
//初始化父件商品信息
p
roductMation
=
{
erpOrderUtil
.
chooseP
roductMation
=
{
productId
:
json
.
bean
.
productId
,
productName
:
json
.
bean
.
productName
,
productModel
:
json
.
bean
.
productModel
,
...
...
@@ -72,7 +69,7 @@ layui.config({
item
.
wastagePrice
=
$
(
"
#wastage
"
+
item
.
productId
).
val
();
item
.
remark
=
$
(
"
#remark
"
+
item
.
productId
).
val
();
childObject
.
push
(
item
);
if
(
item
.
productId
==
p
roductMation
.
productId
){
if
(
item
.
productId
==
erpOrderUtil
.
chooseP
roductMation
.
productId
){
winui
.
window
.
msg
(
'
子件清单中不能包含父件信息。
'
,
{
icon
:
2
,
time
:
2000
});
wheatherError
=
true
;
return
false
;
...
...
@@ -90,10 +87,10 @@ layui.config({
var
params
=
{
bomTitle
:
$
(
"
#bomTitle
"
).
val
(),
materialId
:
isNull
(
productMation
.
productId
)
?
''
:
p
roductMation
.
productId
,
//商品id
materialId
:
isNull
(
erpOrderUtil
.
chooseProductMation
.
productId
)
?
''
:
erpOrderUtil
.
chooseP
roductMation
.
productId
,
//商品id
normsId
:
$
(
"
#unitList
"
).
val
(),
remark
:
$
(
"
#remark
"
).
val
(),
sealPrice
:
getSealPrice
(
p
roductMation
.
unitList
,
$
(
"
#unitList
"
).
val
()),
sealPrice
:
getSealPrice
(
erpOrderUtil
.
chooseP
roductMation
.
unitList
,
$
(
"
#unitList
"
).
val
()),
childStr
:
JSON
.
stringify
(
childObject
),
rowId
:
parent
.
rowId
};
...
...
@@ -355,23 +352,14 @@ layui.config({
}
});
//商品选择
//
商品选择
$
(
"
body
"
).
on
(
"
click
"
,
"
#productNameSel
"
,
function
(
e
){
_openNewWindows
({
url
:
"
../../tpl/material/materialChoose.html
"
,
title
:
"
选择商品
"
,
pageId
:
"
productlist
"
,
area
:
[
'
90vw
'
,
'
90vh
'
],
callBack
:
function
(
refreshCode
){
if
(
refreshCode
==
'
0
'
)
{
$
(
"
#productName
"
).
val
(
productMation
.
productName
);
$
(
"
#productModel
"
).
val
(
productMation
.
productModel
);
$
(
"
#unitList
"
).
html
(
getDataUseHandlebars
(
selTemplate
,
{
rows
:
productMation
.
unitList
}));
form
.
render
(
"
select
"
);
}
else
if
(
refreshCode
==
'
-9999
'
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.operationFailed
"
][
languageType
],
{
icon
:
2
,
time
:
2000
});
}
}});
erpOrderUtil
.
openMaterialChooseChoosePage
(
function
(
chooseProductMation
)
{
$
(
"
#productName
"
).
val
(
chooseProductMation
.
productName
);
$
(
"
#productModel
"
).
val
(
chooseProductMation
.
productModel
);
$
(
"
#unitList
"
).
html
(
getDataUseHandlebars
(
selTemplate
,
{
rows
:
chooseProductMation
.
unitList
}));
form
.
render
(
"
select
"
);
});
});
/**
...
...
This diff is collapsed.
Click to expand it.
erp-produce/src/main/resources/template/js/erpMachin/erpMachinAdd.js
浏览文件 @
4056ec42
//商品信息
var
productMation
=
{};
//工序选择必备参数
var
procedureCheckType
=
2
;
//工序选择类型:1.单选procedureMation;2.多选procedureMationList
var
procedureMationList
=
new
Array
();
...
...
@@ -184,46 +181,36 @@ layui.config({
// 加工成品选择
$
(
"
body
"
).
on
(
"
click
"
,
"
#productNameSel
"
,
function
(
e
){
productMation
=
machinPro
;
_openNewWindows
({
url
:
"
../../tpl/material/materialChoose.html
"
,
title
:
"
选择商品
"
,
pageId
:
"
productlist
"
,
area
:
[
'
90vw
'
,
'
90vh
'
],
callBack
:
function
(
refreshCode
){
if
(
refreshCode
==
'
0
'
)
{
machinPro
=
productMation
;
//工序重置
$
(
"
#procedureChoose
"
).
show
();
procedureMationList
=
[];
$
(
"
#procedureBody
"
).
html
(
""
);
//重置成品信息
$
(
"
#productName
"
).
val
(
machinPro
.
productName
);
$
(
"
#productModel
"
).
val
(
machinPro
.
productModel
);
$
(
"
#unitList
"
).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
machinPro
.
unitList
}));
$
(
"
#number
"
).
val
(
1
);
//重置单据信息
productionMation
=
{};
$
(
"
#productionOrder
"
).
val
(
""
);
//部门
$
(
"
#departmentId
"
).
val
(
""
);
//移除之前填写的所有行
var
checkRow
=
$
(
"
#useTable input[type='checkbox'][name='tableCheckRow']
"
);
$
.
each
(
checkRow
,
function
(
i
,
item
)
{
//删除allChooseProduct已选择的商品信息
var
trId
=
$
(
item
).
parent
().
parent
().
attr
(
"
trcusid
"
);
allChooseProduct
[
trId
]
=
undefined
;
//移除界面上的信息
$
(
item
).
parent
().
parent
().
remove
();
});
form
.
render
();
}
else
if
(
refreshCode
==
'
-9999
'
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.operationFailed
"
][
languageType
],
{
icon
:
2
,
time
:
2000
});
}
}});
erpOrderUtil
.
openMaterialChooseChoosePage
(
function
(
chooseProductMation
)
{
machinPro
=
chooseProductMation
;
//工序重置
$
(
"
#procedureChoose
"
).
show
();
procedureMationList
=
[];
$
(
"
#procedureBody
"
).
html
(
""
);
//重置成品信息
$
(
"
#productName
"
).
val
(
machinPro
.
productName
);
$
(
"
#productModel
"
).
val
(
machinPro
.
productModel
);
$
(
"
#unitList
"
).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
machinPro
.
unitList
}));
$
(
"
#number
"
).
val
(
1
);
//重置单据信息
productionMation
=
{};
$
(
"
#productionOrder
"
).
val
(
""
);
//部门
$
(
"
#departmentId
"
).
val
(
""
);
//移除之前填写的所有行
var
checkRow
=
$
(
"
#useTable input[type='checkbox'][name='tableCheckRow']
"
);
$
.
each
(
checkRow
,
function
(
i
,
item
)
{
//删除allChooseProduct已选择的商品信息
var
trId
=
$
(
item
).
parent
().
parent
().
attr
(
"
trcusid
"
);
allChooseProduct
[
trId
]
=
undefined
;
//移除界面上的信息
$
(
item
).
parent
().
parent
().
remove
();
});
form
.
render
();
});
});
//新增行
...
...
@@ -278,28 +265,19 @@ layui.config({
//商品选择
$
(
"
body
"
).
on
(
"
click
"
,
"
.chooseProductBtn
"
,
function
(
e
){
var
trId
=
$
(
this
).
parent
().
parent
().
attr
(
"
trcusid
"
);
_openNewWindows
({
url
:
"
../../tpl/material/materialChoose.html
"
,
title
:
"
选择商品
"
,
pageId
:
"
productlist
"
,
area
:
[
'
90vw
'
,
'
90vh
'
],
callBack
:
function
(
refreshCode
){
if
(
refreshCode
==
'
0
'
)
{
//获取表格行号
var
thisRowNum
=
trId
.
replace
(
"
tr
"
,
""
);
//商品赋值
allChooseProduct
[
trId
]
=
productMation
;
//表格商品名称赋值
$
(
"
#materialId
"
+
thisRowNum
.
toString
()).
val
(
allChooseProduct
[
trId
].
productName
+
"
(
"
+
allChooseProduct
[
trId
].
productModel
+
"
)
"
);
//表格单位赋值
$
(
"
#unitId
"
+
thisRowNum
.
toString
()).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
allChooseProduct
[
trId
].
unitList
}));
form
.
render
(
'
select
'
);
//计算价格
calculatedTotalPrice
();
}
else
if
(
refreshCode
==
'
-9999
'
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.operationFailed
"
][
languageType
],
{
icon
:
2
,
time
:
2000
});
}
}});
erpOrderUtil
.
openMaterialChooseChoosePage
(
function
(
chooseProductMation
)
{
// 获取表格行号
var
thisRowNum
=
trId
.
replace
(
"
tr
"
,
""
);
//商品赋值
allChooseProduct
[
trId
]
=
chooseProductMation
;
//表格商品名称赋值
$
(
"
#materialId
"
+
thisRowNum
.
toString
()).
val
(
allChooseProduct
[
trId
].
productName
+
"
(
"
+
allChooseProduct
[
trId
].
productModel
+
"
)
"
);
//表格单位赋值
$
(
"
#unitId
"
+
thisRowNum
.
toString
()).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
allChooseProduct
[
trId
].
unitList
}));
form
.
render
(
'
select
'
);
//计算价格
calculatedTotalPrice
();
});
});
//计划加工单选择
...
...
This diff is collapsed.
Click to expand it.
erp-produce/src/main/resources/template/js/erpMachin/erpMachinEdit.js
浏览文件 @
4056ec42
//商品信息
var
productMation
=
{};
//工序选择必备参数
var
procedureCheckType
=
2
;
//工序选择类型:1.单选procedureMation;2.多选procedureMationList
var
procedureMationList
=
new
Array
();
...
...
@@ -256,46 +253,36 @@ layui.config({
//加工成品选择
$
(
"
body
"
).
on
(
"
click
"
,
"
#productNameSel
"
,
function
(
e
){
productMation
=
machinPro
;
_openNewWindows
({
url
:
"
../../tpl/material/materialChoose.html
"
,
title
:
"
选择商品
"
,
pageId
:
"
productlist
"
,
area
:
[
'
90vw
'
,
'
90vh
'
],
callBack
:
function
(
refreshCode
){
if
(
refreshCode
==
'
0
'
)
{
machinPro
=
productMation
;
//工序重置
$
(
"
#procedureChoose
"
).
show
();
procedureMationList
=
[];
$
(
"
#procedureBody
"
).
html
(
""
);
//重置成品信息
$
(
"
#productName
"
).
val
(
machinPro
.
productName
);
$
(
"
#productModel
"
).
val
(
machinPro
.
productModel
);
$
(
"
#unitList
"
).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
machinPro
.
unitList
}));
$
(
"
#number
"
).
val
(
1
);
//重置单据信息
productionMation
=
{};
$
(
"
#productionOrder
"
).
val
(
""
);
//部门
$
(
"
#departmentId
"
).
val
(
""
);
//移除之前填写的所有行
var
checkRow
=
$
(
"
#useTable input[type='checkbox'][name='tableCheckRow']
"
);
$
.
each
(
checkRow
,
function
(
i
,
item
)
{
//删除allChooseProduct已选择的商品信息
var
trId
=
$
(
item
).
parent
().
parent
().
attr
(
"
trcusid
"
);
allChooseProduct
[
trId
]
=
undefined
;
//移除界面上的信息
$
(
item
).
parent
().
parent
().
remove
();
});
form
.
render
();
}
else
if
(
refreshCode
==
'
-9999
'
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.operationFailed
"
][
languageType
],
{
icon
:
2
,
time
:
2000
});
}
}});
erpOrderUtil
.
openMaterialChooseChoosePage
(
function
(
chooseProductMation
)
{
machinPro
=
chooseProductMation
;
//工序重置
$
(
"
#procedureChoose
"
).
show
();
procedureMationList
=
[];
$
(
"
#procedureBody
"
).
html
(
""
);
//重置成品信息
$
(
"
#productName
"
).
val
(
machinPro
.
productName
);
$
(
"
#productModel
"
).
val
(
machinPro
.
productModel
);
$
(
"
#unitList
"
).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
machinPro
.
unitList
}));
$
(
"
#number
"
).
val
(
1
);
//重置单据信息
productionMation
=
{};
$
(
"
#productionOrder
"
).
val
(
""
);
//部门
$
(
"
#departmentId
"
).
val
(
""
);
//移除之前填写的所有行
var
checkRow
=
$
(
"
#useTable input[type='checkbox'][name='tableCheckRow']
"
);
$
.
each
(
checkRow
,
function
(
i
,
item
)
{
//删除allChooseProduct已选择的商品信息
var
trId
=
$
(
item
).
parent
().
parent
().
attr
(
"
trcusid
"
);
allChooseProduct
[
trId
]
=
undefined
;
//移除界面上的信息
$
(
item
).
parent
().
parent
().
remove
();
});
form
.
render
();
});
});
//新增行
...
...
@@ -346,33 +333,24 @@ layui.config({
winui
.
window
.
msg
(
'
请选择要删除的行
'
,
{
icon
:
2
,
time
:
2000
});
}
}
//商品选择
$
(
"
body
"
).
on
(
"
click
"
,
"
.chooseProductBtn
"
,
function
(
e
){
var
trId
=
$
(
this
).
parent
().
parent
().
attr
(
"
trcusid
"
);
_openNewWindows
({
url
:
"
../../tpl/material/materialChoose.html
"
,
title
:
"
选择商品
"
,
pageId
:
"
productlist
"
,
area
:
[
'
90vw
'
,
'
90vh
'
],
callBack
:
function
(
refreshCode
){
if
(
refreshCode
==
'
0
'
)
{
//获取表格行号
var
thisRowNum
=
trId
.
replace
(
"
tr
"
,
""
);
//商品赋值
allChooseProduct
[
trId
]
=
productMation
;
//表格商品名称赋值
$
(
"
#materialId
"
+
thisRowNum
.
toString
()).
val
(
allChooseProduct
[
trId
].
productName
+
"
(
"
+
allChooseProduct
[
trId
].
productModel
+
"
)
"
);
//表格单位赋值
$
(
"
#unitId
"
+
thisRowNum
.
toString
()).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
allChooseProduct
[
trId
].
unitList
}));
form
.
render
(
'
select
'
);
//计算价格
calculatedTotalPrice
();
}
else
if
(
refreshCode
==
'
-9999
'
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.operationFailed
"
][
languageType
],
{
icon
:
2
,
time
:
2000
});
}
}});
});
$
(
"
body
"
).
on
(
"
click
"
,
"
.chooseProductBtn
"
,
function
(
e
)
{
var
trId
=
$
(
this
).
parent
().
parent
().
attr
(
"
trcusid
"
);
erpOrderUtil
.
openMaterialChooseChoosePage
(
function
(
chooseProductMation
)
{
// 获取表格行号
var
thisRowNum
=
trId
.
replace
(
"
tr
"
,
""
);
//商品赋值
allChooseProduct
[
trId
]
=
chooseProductMation
;
//表格商品名称赋值
$
(
"
#materialId
"
+
thisRowNum
.
toString
()).
val
(
allChooseProduct
[
trId
].
productName
+
"
(
"
+
allChooseProduct
[
trId
].
productModel
+
"
)
"
);
//表格单位赋值
$
(
"
#unitId
"
+
thisRowNum
.
toString
()).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
allChooseProduct
[
trId
].
unitList
}));
form
.
render
(
'
select
'
);
//计算价格
calculatedTotalPrice
();
});
});
//计划加工单选择
$
(
"
body
"
).
on
(
"
click
"
,
"
#productionOrderSel
"
,
function
(
e
){
...
...
This diff is collapsed.
Click to expand it.
erp-produce/src/main/resources/template/js/erpPick/erpPatchAdd.js
浏览文件 @
4056ec42
//商品信息
var
productMation
=
{};
//加工单信息
var
machinMation
=
{};
...
...
@@ -190,28 +187,19 @@ layui.config({
//商品选择
$
(
"
body
"
).
on
(
"
click
"
,
"
.chooseProductBtn
"
,
function
(
e
){
var
trId
=
$
(
this
).
parent
().
parent
().
attr
(
"
trcusid
"
);
_openNewWindows
({
url
:
"
../../tpl/material/materialChoose.html
"
,
title
:
"
选择商品
"
,
pageId
:
"
productlist
"
,
area
:
[
'
90vw
'
,
'
90vh
'
],
callBack
:
function
(
refreshCode
){
if
(
refreshCode
==
'
0
'
)
{
//获取表格行号
var
thisRowNum
=
trId
.
replace
(
"
tr
"
,
""
);
//商品赋值
allChooseProduct
[
trId
]
=
productMation
;
//表格商品名称赋值
$
(
"
#materialId
"
+
thisRowNum
.
toString
()).
val
(
allChooseProduct
[
trId
].
productName
+
"
(
"
+
allChooseProduct
[
trId
].
productModel
+
"
)
"
);
//表格单位赋值
$
(
"
#unitId
"
+
thisRowNum
.
toString
()).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
allChooseProduct
[
trId
].
unitList
}));
form
.
render
(
'
select
'
);
//计算价格
calculatedTotalPrice
();
}
else
if
(
refreshCode
==
'
-9999
'
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.operationFailed
"
][
languageType
],
{
icon
:
2
,
time
:
2000
});
}
}});
erpOrderUtil
.
openMaterialChooseChoosePage
(
function
(
chooseProductMation
)
{
// 获取表格行号
var
thisRowNum
=
trId
.
replace
(
"
tr
"
,
""
);
//商品赋值
allChooseProduct
[
trId
]
=
chooseProductMation
;
//表格商品名称赋值
$
(
"
#materialId
"
+
thisRowNum
.
toString
()).
val
(
allChooseProduct
[
trId
].
productName
+
"
(
"
+
allChooseProduct
[
trId
].
productModel
+
"
)
"
);
//表格单位赋值
$
(
"
#unitId
"
+
thisRowNum
.
toString
()).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
allChooseProduct
[
trId
].
unitList
}));
form
.
render
(
'
select
'
);
//计算价格
calculatedTotalPrice
();
});
});
// 加工单选择
...
...
This diff is collapsed.
Click to expand it.
erp-produce/src/main/resources/template/js/erpPick/erpPatchEdit.js
浏览文件 @
4056ec42
//商品信息
var
productMation
=
{};
//加工单信息
var
machinMation
=
{};
...
...
@@ -229,28 +226,19 @@ layui.config({
//商品选择
$
(
"
body
"
).
on
(
"
click
"
,
"
.chooseProductBtn
"
,
function
(
e
){
var
trId
=
$
(
this
).
parent
().
parent
().
attr
(
"
trcusid
"
);
_openNewWindows
({
url
:
"
../../tpl/material/materialChoose.html
"
,
title
:
"
选择商品
"
,
pageId
:
"
productlist
"
,
area
:
[
'
90vw
'
,
'
90vh
'
],
callBack
:
function
(
refreshCode
){
if
(
refreshCode
==
'
0
'
)
{
//获取表格行号
var
thisRowNum
=
trId
.
replace
(
"
tr
"
,
""
);
//商品赋值
allChooseProduct
[
trId
]
=
productMation
;
//表格商品名称赋值
$
(
"
#materialId
"
+
thisRowNum
.
toString
()).
val
(
allChooseProduct
[
trId
].
productName
+
"
(
"
+
allChooseProduct
[
trId
].
productModel
+
"
)
"
);
//表格单位赋值
$
(
"
#unitId
"
+
thisRowNum
.
toString
()).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
allChooseProduct
[
trId
].
unitList
}));
form
.
render
(
'
select
'
);
//计算价格
calculatedTotalPrice
();
}
else
if
(
refreshCode
==
'
-9999
'
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.operationFailed
"
][
languageType
],
{
icon
:
2
,
time
:
2000
});
}
}});
erpOrderUtil
.
openMaterialChooseChoosePage
(
function
(
chooseProductMation
)
{
// 获取表格行号
var
thisRowNum
=
trId
.
replace
(
"
tr
"
,
""
);
//商品赋值
allChooseProduct
[
trId
]
=
chooseProductMation
;
//表格商品名称赋值
$
(
"
#materialId
"
+
thisRowNum
.
toString
()).
val
(
allChooseProduct
[
trId
].
productName
+
"
(
"
+
allChooseProduct
[
trId
].
productModel
+
"
)
"
);
//表格单位赋值
$
(
"
#unitId
"
+
thisRowNum
.
toString
()).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
allChooseProduct
[
trId
].
unitList
}));
form
.
render
(
'
select
'
);
//计算价格
calculatedTotalPrice
();
});
});
// 加工单选择
...
...
This diff is collapsed.
Click to expand it.
erp-produce/src/main/resources/template/js/erpPick/erpRequisitionAdd.js
浏览文件 @
4056ec42
//商品信息
var
productMation
=
{};
//加工单信息
var
machinMation
=
{};
...
...
@@ -192,28 +189,19 @@ layui.config({
//商品选择
$
(
"
body
"
).
on
(
"
click
"
,
"
.chooseProductBtn
"
,
function
(
e
){
var
trId
=
$
(
this
).
parent
().
parent
().
attr
(
"
trcusid
"
);
_openNewWindows
({
url
:
"
../../tpl/material/materialChoose.html
"
,
title
:
"
选择商品
"
,
pageId
:
"
productlist
"
,
area
:
[
'
90vw
'
,
'
90vh
'
],
callBack
:
function
(
refreshCode
){
if
(
refreshCode
==
'
0
'
)
{
//获取表格行号
var
thisRowNum
=
trId
.
replace
(
"
tr
"
,
""
);
//商品赋值
allChooseProduct
[
trId
]
=
productMation
;
//表格商品名称赋值
$
(
"
#materialId
"
+
thisRowNum
.
toString
()).
val
(
allChooseProduct
[
trId
].
productName
+
"
(
"
+
allChooseProduct
[
trId
].
productModel
+
"
)
"
);
//表格单位赋值
$
(
"
#unitId
"
+
thisRowNum
.
toString
()).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
allChooseProduct
[
trId
].
unitList
}));
form
.
render
(
'
select
'
);
//计算价格
calculatedTotalPrice
();
}
else
if
(
refreshCode
==
'
-9999
'
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.operationFailed
"
][
languageType
],
{
icon
:
2
,
time
:
2000
});
}
}});
erpOrderUtil
.
openMaterialChooseChoosePage
(
function
(
chooseProductMation
)
{
//获取表格行号
var
thisRowNum
=
trId
.
replace
(
"
tr
"
,
""
);
//商品赋值
allChooseProduct
[
trId
]
=
chooseProductMation
;
//表格商品名称赋值
$
(
"
#materialId
"
+
thisRowNum
.
toString
()).
val
(
allChooseProduct
[
trId
].
productName
+
"
(
"
+
allChooseProduct
[
trId
].
productModel
+
"
)
"
);
//表格单位赋值
$
(
"
#unitId
"
+
thisRowNum
.
toString
()).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
allChooseProduct
[
trId
].
unitList
}));
form
.
render
(
'
select
'
);
//计算价格
calculatedTotalPrice
();
});
});
// 加工单选择
...
...
This diff is collapsed.
Click to expand it.
erp-produce/src/main/resources/template/js/erpPick/erpRequisitionEdit.js
浏览文件 @
4056ec42
//商品信息
var
productMation
=
{};
//加工单信息
var
machinMation
=
{};
...
...
@@ -241,28 +238,19 @@ layui.config({
//商品选择
$
(
"
body
"
).
on
(
"
click
"
,
"
.chooseProductBtn
"
,
function
(
e
){
var
trId
=
$
(
this
).
parent
().
parent
().
attr
(
"
trcusid
"
);
_openNewWindows
({
url
:
"
../../tpl/material/materialChoose.html
"
,
title
:
"
选择商品
"
,
pageId
:
"
productlist
"
,
area
:
[
'
90vw
'
,
'
90vh
'
],
callBack
:
function
(
refreshCode
){
if
(
refreshCode
==
'
0
'
)
{
//获取表格行号
var
thisRowNum
=
trId
.
replace
(
"
tr
"
,
""
);
//商品赋值
allChooseProduct
[
trId
]
=
productMation
;
//表格商品名称赋值
$
(
"
#materialId
"
+
thisRowNum
.
toString
()).
val
(
allChooseProduct
[
trId
].
productName
+
"
(
"
+
allChooseProduct
[
trId
].
productModel
+
"
)
"
);
//表格单位赋值
$
(
"
#unitId
"
+
thisRowNum
.
toString
()).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
allChooseProduct
[
trId
].
unitList
}));
form
.
render
(
'
select
'
);
//计算价格
calculatedTotalPrice
();
}
else
if
(
refreshCode
==
'
-9999
'
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.operationFailed
"
][
languageType
],
{
icon
:
2
,
time
:
2000
});
}
}});
erpOrderUtil
.
openMaterialChooseChoosePage
(
function
(
chooseProductMation
)
{
// 获取表格行号
var
thisRowNum
=
trId
.
replace
(
"
tr
"
,
""
);
//商品赋值
allChooseProduct
[
trId
]
=
chooseProductMation
;
//表格商品名称赋值
$
(
"
#materialId
"
+
thisRowNum
.
toString
()).
val
(
allChooseProduct
[
trId
].
productName
+
"
(
"
+
allChooseProduct
[
trId
].
productModel
+
"
)
"
);
//表格单位赋值
$
(
"
#unitId
"
+
thisRowNum
.
toString
()).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
allChooseProduct
[
trId
].
unitList
}));
form
.
render
(
'
select
'
);
//计算价格
calculatedTotalPrice
();
});
});
// 加工单选择
...
...
This diff is collapsed.
Click to expand it.
erp-produce/src/main/resources/template/js/erpPick/erpReturnAdd.js
浏览文件 @
4056ec42
//商品信息
var
productMation
=
{};
//根据那一列的值进行变化,默认根据数量
var
showTdByEdit
=
'
rkNum
'
;
//表格的序号
...
...
@@ -184,28 +181,19 @@ layui.config({
//商品选择
$
(
"
body
"
).
on
(
"
click
"
,
"
.chooseProductBtn
"
,
function
(
e
){
var
trId
=
$
(
this
).
parent
().
parent
().
attr
(
"
trcusid
"
);
_openNewWindows
({
url
:
"
../../tpl/material/materialChoose.html
"
,
title
:
"
选择商品
"
,
pageId
:
"
productlist
"
,
area
:
[
'
90vw
'
,
'
90vh
'
],
callBack
:
function
(
refreshCode
){
if
(
refreshCode
==
'
0
'
)
{
//获取表格行号
var
thisRowNum
=
trId
.
replace
(
"
tr
"
,
""
);
//商品赋值
allChooseProduct
[
trId
]
=
productMation
;
//表格商品名称赋值
$
(
"
#materialId
"
+
thisRowNum
.
toString
()).
val
(
allChooseProduct
[
trId
].
productName
+
"
(
"
+
allChooseProduct
[
trId
].
productModel
+
"
)
"
);
//表格单位赋值
$
(
"
#unitId
"
+
thisRowNum
.
toString
()).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
allChooseProduct
[
trId
].
unitList
}));
form
.
render
(
'
select
'
);
//计算价格
calculatedTotalPrice
();
}
else
if
(
refreshCode
==
'
-9999
'
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.operationFailed
"
][
languageType
],
{
icon
:
2
,
time
:
2000
});
}
}});
erpOrderUtil
.
openMaterialChooseChoosePage
(
function
(
chooseProductMation
)
{
//获取表格行号
var
thisRowNum
=
trId
.
replace
(
"
tr
"
,
""
);
//商品赋值
allChooseProduct
[
trId
]
=
chooseProductMation
;
//表格商品名称赋值
$
(
"
#materialId
"
+
thisRowNum
.
toString
()).
val
(
allChooseProduct
[
trId
].
productName
+
"
(
"
+
allChooseProduct
[
trId
].
productModel
+
"
)
"
);
//表格单位赋值
$
(
"
#unitId
"
+
thisRowNum
.
toString
()).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
allChooseProduct
[
trId
].
unitList
}));
form
.
render
(
'
select
'
);
//计算价格
calculatedTotalPrice
();
});
});
//取消
...
...
This diff is collapsed.
Click to expand it.
erp-produce/src/main/resources/template/js/erpPick/erpReturnEdit.js
浏览文件 @
4056ec42
//商品信息
var
productMation
=
{};
//根据那一列的值进行变化,默认根据数量
var
showTdByEdit
=
'
rkNum
'
;
//表格的序号
...
...
@@ -218,28 +215,19 @@ layui.config({
//商品选择
$
(
"
body
"
).
on
(
"
click
"
,
"
.chooseProductBtn
"
,
function
(
e
){
var
trId
=
$
(
this
).
parent
().
parent
().
attr
(
"
trcusid
"
);
_openNewWindows
({
url
:
"
../../tpl/material/materialChoose.html
"
,
title
:
"
选择商品
"
,
pageId
:
"
productlist
"
,
area
:
[
'
90vw
'
,
'
90vh
'
],
callBack
:
function
(
refreshCode
){
if
(
refreshCode
==
'
0
'
)
{
//获取表格行号
var
thisRowNum
=
trId
.
replace
(
"
tr
"
,
""
);
//商品赋值
allChooseProduct
[
trId
]
=
productMation
;
//表格商品名称赋值
$
(
"
#materialId
"
+
thisRowNum
.
toString
()).
val
(
allChooseProduct
[
trId
].
productName
+
"
(
"
+
allChooseProduct
[
trId
].
productModel
+
"
)
"
);
//表格单位赋值
$
(
"
#unitId
"
+
thisRowNum
.
toString
()).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
allChooseProduct
[
trId
].
unitList
}));
form
.
render
(
'
select
'
);
//计算价格
calculatedTotalPrice
();
}
else
if
(
refreshCode
==
'
-9999
'
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.operationFailed
"
][
languageType
],
{
icon
:
2
,
time
:
2000
});
}
}});
erpOrderUtil
.
openMaterialChooseChoosePage
(
function
(
chooseProductMation
)
{
//获取表格行号
var
thisRowNum
=
trId
.
replace
(
"
tr
"
,
""
);
//商品赋值
allChooseProduct
[
trId
]
=
chooseProductMation
;
//表格商品名称赋值
$
(
"
#materialId
"
+
thisRowNum
.
toString
()).
val
(
allChooseProduct
[
trId
].
productName
+
"
(
"
+
allChooseProduct
[
trId
].
productModel
+
"
)
"
);
//表格单位赋值
$
(
"
#unitId
"
+
thisRowNum
.
toString
()).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
allChooseProduct
[
trId
].
unitList
}));
form
.
render
(
'
select
'
);
//计算价格
calculatedTotalPrice
();
});
});
//取消
...
...
This diff is collapsed.
Click to expand it.
erp-produce/src/main/resources/template/js/erpProduction/erpProductionAdd.js
浏览文件 @
4056ec42
//商品信息
var
productMation
=
{};
//工序选择必备参数
var
procedureCheckType
=
2
;
//工序选择类型:1.单选procedureMation;2.多选procedureMationList
var
procedureMationList
=
new
Array
();
...
...
@@ -146,7 +143,7 @@ layui.config({
}
var
params
=
{
orderId
:
isNull
(
salesOrder
.
orderHeaderId
)
?
''
:
salesOrder
.
orderHeaderId
,
materialId
:
p
roductMation
.
productId
,
materialId
:
erpOrderUtil
.
chooseP
roductMation
.
productId
,
normsId
:
$
(
"
#unitList
"
).
val
(),
number
:
$
(
"
#number
"
).
val
(),
planStartDate
:
$
(
"
#planStartDate
"
).
val
(),
...
...
@@ -235,26 +232,17 @@ layui.config({
// 商品选择
$
(
"
body
"
).
on
(
"
click
"
,
"
#productNameSel
"
,
function
(
e
){
_openNewWindows
({
url
:
"
../../tpl/material/materialChoose.html
"
,
title
:
"
选择商品
"
,
pageId
:
"
productlist
"
,
area
:
[
'
90vw
'
,
'
90vh
'
],
callBack
:
function
(
refreshCode
){
if
(
refreshCode
==
'
0
'
)
{
$
(
"
#productName
"
).
val
(
productMation
.
productName
);
$
(
"
#productModel
"
).
val
(
productMation
.
productModel
);
$
(
"
#unitList
"
).
html
(
getDataUseHandlebars
(
selTemplate
,
{
rows
:
productMation
.
unitList
}));
//重置单据信息
salesOrder
=
{};
$
(
"
#salesOrder
"
).
val
(
""
);
//加载bom方案列表
loadBomList
(
productMation
.
unitList
[
0
].
id
);
form
.
render
(
"
select
"
);
}
else
if
(
refreshCode
==
'
-9999
'
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.operationFailed
"
][
languageType
],
{
icon
:
2
,
time
:
2000
});
}
}});
erpOrderUtil
.
openMaterialChooseChoosePage
(
function
(
chooseProductMation
)
{
$
(
"
#productName
"
).
val
(
chooseProductMation
.
productName
);
$
(
"
#productModel
"
).
val
(
chooseProductMation
.
productModel
);
$
(
"
#unitList
"
).
html
(
getDataUseHandlebars
(
selTemplate
,
{
rows
:
chooseProductMation
.
unitList
}));
//重置单据信息
salesOrder
=
{};
$
(
"
#salesOrder
"
).
val
(
""
);
//加载bom方案列表
loadBomList
(
chooseProductMation
.
unitList
[
0
].
id
);
form
.
render
(
"
select
"
);
});
});
//销售单选择
...
...
@@ -266,13 +254,13 @@ layui.config({
area
:
[
'
90vw
'
,
'
90vh
'
],
callBack
:
function
(
refreshCode
){
if
(
refreshCode
==
'
0
'
)
{
p
roductMation
=
{
erpOrderUtil
.
chooseP
roductMation
=
{
productName
:
salesOrder
.
materialName
,
productModel
:
salesOrder
.
materialModel
,
productId
:
salesOrder
.
materialId
};
$
(
"
#productName
"
).
val
(
p
roductMation
.
productName
);
$
(
"
#productModel
"
).
val
(
p
roductMation
.
productModel
);
$
(
"
#productName
"
).
val
(
erpOrderUtil
.
chooseP
roductMation
.
productName
);
$
(
"
#productModel
"
).
val
(
erpOrderUtil
.
chooseP
roductMation
.
productModel
);
//加载数量
$
(
"
#number
"
).
val
(
salesOrder
.
operNum
);
//单号
...
...
This diff is collapsed.
Click to expand it.
erp-produce/src/main/resources/template/js/erpProduction/erpProductionEdit.js
浏览文件 @
4056ec42
//商品信息
var
productMation
=
{};
//工序选择必备参数
var
procedureCheckType
=
2
;
//工序选择类型:1.单选procedureMation;2.多选procedureMationList
var
procedureMationList
=
new
Array
();
...
...
@@ -66,7 +63,7 @@ layui.config({
AjaxPostUtil
.
request
({
url
:
flowableBasePath
+
"
erpproduction003
"
,
params
:
{
orderId
:
parent
.
rowId
},
type
:
'
json
'
,
method
:
"
GET
"
,
callback
:
function
(
json
){
if
(
json
.
returnCode
==
0
){
//商品信息
p
roductMation
=
{
erpOrderUtil
.
chooseP
roductMation
=
{
productId
:
json
.
bean
.
productId
,
productName
:
json
.
bean
.
materialName
,
productModel
:
json
.
bean
.
materialModel
...
...
@@ -199,7 +196,7 @@ layui.config({
}
var
params
=
{
orderId
:
isNull
(
salesOrder
.
orderHeaderId
)
?
''
:
salesOrder
.
orderHeaderId
,
materialId
:
p
roductMation
.
productId
,
materialId
:
erpOrderUtil
.
chooseP
roductMation
.
productId
,
normsId
:
$
(
"
#unitList
"
).
val
(),
number
:
$
(
"
#number
"
).
val
(),
planStartDate
:
$
(
"
#planStartDate
"
).
val
(),
...
...
@@ -289,26 +286,17 @@ layui.config({
//商品选择
$
(
"
body
"
).
on
(
"
click
"
,
"
#productNameSel
"
,
function
(
e
){
_openNewWindows
({
url
:
"
../../tpl/material/materialChoose.html
"
,
title
:
"
选择商品
"
,
pageId
:
"
productlist
"
,
area
:
[
'
90vw
'
,
'
90vh
'
],
callBack
:
function
(
refreshCode
){
if
(
refreshCode
==
'
0
'
)
{
$
(
"
#productName
"
).
val
(
productMation
.
productName
);
$
(
"
#productModel
"
).
val
(
productMation
.
productModel
);
$
(
"
#unitList
"
).
html
(
getDataUseHandlebars
(
selTemplate
,
{
rows
:
productMation
.
unitList
}));
//重置单据信息
salesOrder
=
{};
$
(
"
#salesOrder
"
).
val
(
""
);
//加载bom方案列表
loadBomList
(
productMation
.
unitList
[
0
].
id
);
form
.
render
(
"
select
"
);
}
else
if
(
refreshCode
==
'
-9999
'
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.operationFailed
"
][
languageType
],
{
icon
:
2
,
time
:
2000
});
}
}});
erpOrderUtil
.
openMaterialChooseChoosePage
(
function
(
chooseProductMation
)
{
$
(
"
#productName
"
).
val
(
chooseProductMation
.
productName
);
$
(
"
#productModel
"
).
val
(
chooseProductMation
.
productModel
);
$
(
"
#unitList
"
).
html
(
getDataUseHandlebars
(
selTemplate
,
{
rows
:
chooseProductMation
.
unitList
}));
//重置单据信息
salesOrder
=
{};
$
(
"
#salesOrder
"
).
val
(
""
);
//加载bom方案列表
loadBomList
(
chooseProductMation
.
unitList
[
0
].
id
);
form
.
render
(
"
select
"
);
});
});
//销售单选择
...
...
@@ -320,13 +308,13 @@ layui.config({
area
:
[
'
90vw
'
,
'
90vh
'
],
callBack
:
function
(
refreshCode
){
if
(
refreshCode
==
'
0
'
)
{
p
roductMation
=
{
erpOrderUtil
.
chooseP
roductMation
=
{
productName
:
salesOrder
.
materialName
,
productModel
:
salesOrder
.
materialModel
,
productId
:
salesOrder
.
materialId
};
$
(
"
#productName
"
).
val
(
p
roductMation
.
productName
);
$
(
"
#productModel
"
).
val
(
p
roductMation
.
productModel
);
$
(
"
#productName
"
).
val
(
erpOrderUtil
.
chooseP
roductMation
.
productName
);
$
(
"
#productModel
"
).
val
(
erpOrderUtil
.
chooseP
roductMation
.
productModel
);
//加载数量
$
(
"
#number
"
).
val
(
salesOrder
.
operNum
);
//单号
...
...
This diff is collapsed.
Click to expand it.
erp/src/main/resources/template/js/allocation/allocationadd.js
浏览文件 @
4056ec42
//商品信息
var
productMation
=
{};
// 调拨单
layui
.
config
({
...
...
@@ -254,28 +252,19 @@ layui.config({
//商品选择
$
(
"
body
"
).
on
(
"
click
"
,
"
.chooseProductBtn
"
,
function
(
e
){
var
trId
=
$
(
this
).
parent
().
parent
().
attr
(
"
trcusid
"
);
_openNewWindows
({
url
:
"
../../tpl/material/materialChoose.html
"
,
title
:
"
选择商品
"
,
pageId
:
"
productlist
"
,
area
:
[
'
90vw
'
,
'
90vh
'
],
callBack
:
function
(
refreshCode
){
if
(
refreshCode
==
'
0
'
)
{
//获取表格行号
var
thisRowNum
=
trId
.
replace
(
"
tr
"
,
""
);
//商品赋值
allChooseProduct
[
trId
]
=
productMation
;
//表格商品名称赋值
$
(
"
#materialId
"
+
thisRowNum
.
toString
()).
val
(
allChooseProduct
[
trId
].
productName
+
"
(
"
+
allChooseProduct
[
trId
].
productModel
+
"
)
"
);
//表格单位赋值
$
(
"
#unitId
"
+
thisRowNum
.
toString
()).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
allChooseProduct
[
trId
].
unitList
}));
form
.
render
(
'
select
'
);
//计算价格
calculatedTotalPrice
();
}
else
if
(
refreshCode
==
'
-9999
'
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.operationFailed
"
][
languageType
],
{
icon
:
2
,
time
:
2000
});
}
}});
erpOrderUtil
.
openMaterialChooseChoosePage
(
function
(
chooseProductMation
)
{
//获取表格行号
var
thisRowNum
=
trId
.
replace
(
"
tr
"
,
""
);
//商品赋值
allChooseProduct
[
trId
]
=
chooseProductMation
;
//表格商品名称赋值
$
(
"
#materialId
"
+
thisRowNum
.
toString
()).
val
(
allChooseProduct
[
trId
].
productName
+
"
(
"
+
allChooseProduct
[
trId
].
productModel
+
"
)
"
);
//表格单位赋值
$
(
"
#unitId
"
+
thisRowNum
.
toString
()).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
allChooseProduct
[
trId
].
unitList
}));
form
.
render
(
'
select
'
);
//计算价格
calculatedTotalPrice
();
});
});
$
(
"
body
"
).
on
(
"
click
"
,
"
#cancle
"
,
function
()
{
...
...
This diff is collapsed.
Click to expand it.
erp/src/main/resources/template/js/allocation/allocationedit.js
浏览文件 @
4056ec42
//商品信息
var
productMation
=
{};
// 调拨单
layui
.
config
({
...
...
@@ -298,28 +296,19 @@ layui.config({
//商品选择
$
(
"
body
"
).
on
(
"
click
"
,
"
.chooseProductBtn
"
,
function
(
e
){
var
trId
=
$
(
this
).
parent
().
parent
().
attr
(
"
trcusid
"
);
_openNewWindows
({
url
:
"
../../tpl/material/materialChoose.html
"
,
title
:
"
选择商品
"
,
pageId
:
"
productlist
"
,
area
:
[
'
90vw
'
,
'
90vh
'
],
callBack
:
function
(
refreshCode
){
if
(
refreshCode
==
'
0
'
)
{
//获取表格行号
var
thisRowNum
=
trId
.
replace
(
"
tr
"
,
""
);
//商品赋值
allChooseProduct
[
trId
]
=
productMation
;
//表格商品名称赋值
$
(
"
#materialId
"
+
thisRowNum
.
toString
()).
val
(
allChooseProduct
[
trId
].
productName
+
"
(
"
+
allChooseProduct
[
trId
].
productModel
+
"
)
"
);
//表格单位赋值
$
(
"
#unitId
"
+
thisRowNum
.
toString
()).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
allChooseProduct
[
trId
].
unitList
}));
form
.
render
(
'
select
'
);
//计算价格
calculatedTotalPrice
();
}
else
if
(
refreshCode
==
'
-9999
'
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.operationFailed
"
][
languageType
],
{
icon
:
2
,
time
:
2000
});
}
}});
erpOrderUtil
.
openMaterialChooseChoosePage
(
function
(
chooseProductMation
)
{
//获取表格行号
var
thisRowNum
=
trId
.
replace
(
"
tr
"
,
""
);
//商品赋值
allChooseProduct
[
trId
]
=
chooseProductMation
;
//表格商品名称赋值
$
(
"
#materialId
"
+
thisRowNum
.
toString
()).
val
(
allChooseProduct
[
trId
].
productName
+
"
(
"
+
allChooseProduct
[
trId
].
productModel
+
"
)
"
);
//表格单位赋值
$
(
"
#unitId
"
+
thisRowNum
.
toString
()).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
allChooseProduct
[
trId
].
unitList
}));
form
.
render
(
'
select
'
);
//计算价格
calculatedTotalPrice
();
});
});
$
(
"
body
"
).
on
(
"
click
"
,
"
#cancle
"
,
function
()
{
...
...
This diff is collapsed.
Click to expand it.
erp/src/main/resources/template/js/assemblysheet/assemblysheetadd.js
浏览文件 @
4056ec42
//商品信息
var
productMation
=
{};
// 组装单
layui
.
config
({
...
...
@@ -274,28 +272,19 @@ layui.config({
//商品选择
$
(
"
body
"
).
on
(
"
click
"
,
"
.chooseProductBtn
"
,
function
(
e
){
var
trId
=
$
(
this
).
parent
().
parent
().
attr
(
"
trcusid
"
);
_openNewWindows
({
url
:
"
../../tpl/material/materialChoose.html
"
,
title
:
"
选择商品
"
,
pageId
:
"
productlist
"
,
area
:
[
'
90vw
'
,
'
90vh
'
],
callBack
:
function
(
refreshCode
){
if
(
refreshCode
==
'
0
'
)
{
//获取表格行号
var
thisRowNum
=
trId
.
replace
(
"
tr
"
,
""
);
//商品赋值
allChooseProduct
[
trId
]
=
productMation
;
//表格商品名称赋值
$
(
"
#materialId
"
+
thisRowNum
.
toString
()).
val
(
allChooseProduct
[
trId
].
productName
+
"
(
"
+
allChooseProduct
[
trId
].
productModel
+
"
)
"
);
//表格单位赋值
$
(
"
#unitId
"
+
thisRowNum
.
toString
()).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
allChooseProduct
[
trId
].
unitList
}));
form
.
render
(
'
select
'
);
//计算价格
calculatedTotalPrice
();
}
else
if
(
refreshCode
==
'
-9999
'
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.operationFailed
"
][
languageType
],
{
icon
:
2
,
time
:
2000
});
}
}});
erpOrderUtil
.
openMaterialChooseChoosePage
(
function
(
chooseProductMation
)
{
//获取表格行号
var
thisRowNum
=
trId
.
replace
(
"
tr
"
,
""
);
//商品赋值
allChooseProduct
[
trId
]
=
chooseProductMation
;
//表格商品名称赋值
$
(
"
#materialId
"
+
thisRowNum
.
toString
()).
val
(
allChooseProduct
[
trId
].
productName
+
"
(
"
+
allChooseProduct
[
trId
].
productModel
+
"
)
"
);
//表格单位赋值
$
(
"
#unitId
"
+
thisRowNum
.
toString
()).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
allChooseProduct
[
trId
].
unitList
}));
form
.
render
(
'
select
'
);
//计算价格
calculatedTotalPrice
();
});
});
$
(
"
body
"
).
on
(
"
click
"
,
"
#cancle
"
,
function
()
{
...
...
This diff is collapsed.
Click to expand it.
erp/src/main/resources/template/js/assemblysheet/assemblysheetedit.js
浏览文件 @
4056ec42
//商品信息
var
productMation
=
{};
// 组装单
layui
.
config
({
base
:
basePath
,
...
...
@@ -319,28 +316,19 @@ layui.config({
//商品选择
$
(
"
body
"
).
on
(
"
click
"
,
"
.chooseProductBtn
"
,
function
(
e
){
var
trId
=
$
(
this
).
parent
().
parent
().
attr
(
"
trcusid
"
);
_openNewWindows
({
url
:
"
../../tpl/material/materialChoose.html
"
,
title
:
"
选择商品
"
,
pageId
:
"
productlist
"
,
area
:
[
'
90vw
'
,
'
90vh
'
],
callBack
:
function
(
refreshCode
){
if
(
refreshCode
==
'
0
'
)
{
//获取表格行号
var
thisRowNum
=
trId
.
replace
(
"
tr
"
,
""
);
//商品赋值
allChooseProduct
[
trId
]
=
productMation
;
//表格商品名称赋值
$
(
"
#materialId
"
+
thisRowNum
.
toString
()).
val
(
allChooseProduct
[
trId
].
productName
+
"
(
"
+
allChooseProduct
[
trId
].
productModel
+
"
)
"
);
//表格单位赋值
$
(
"
#unitId
"
+
thisRowNum
.
toString
()).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
allChooseProduct
[
trId
].
unitList
}));
form
.
render
(
'
select
'
);
//计算价格
calculatedTotalPrice
();
}
else
if
(
refreshCode
==
'
-9999
'
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.operationFailed
"
][
languageType
],
{
icon
:
2
,
time
:
2000
});
}
}});
erpOrderUtil
.
openMaterialChooseChoosePage
(
function
(
chooseProductMation
)
{
//获取表格行号
var
thisRowNum
=
trId
.
replace
(
"
tr
"
,
""
);
//商品赋值
allChooseProduct
[
trId
]
=
chooseProductMation
;
//表格商品名称赋值
$
(
"
#materialId
"
+
thisRowNum
.
toString
()).
val
(
allChooseProduct
[
trId
].
productName
+
"
(
"
+
allChooseProduct
[
trId
].
productModel
+
"
)
"
);
//表格单位赋值
$
(
"
#unitId
"
+
thisRowNum
.
toString
()).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
allChooseProduct
[
trId
].
unitList
}));
form
.
render
(
'
select
'
);
//计算价格
calculatedTotalPrice
();
});
});
$
(
"
body
"
).
on
(
"
click
"
,
"
#cancle
"
,
function
()
{
...
...
This diff is collapsed.
Click to expand it.
erp/src/main/resources/template/js/material/materialChoose.js
浏览文件 @
4056ec42
...
...
@@ -14,11 +14,11 @@ layui.config({
fsTree
=
layui
.
fsTree
,
fsCommon
=
layui
.
fsCommon
,
tableCheckBoxUtil
=
layui
.
tableCheckBoxUtil
;
var
checkType
=
'
1
'
;
//商品选择类型:1.单选;2.多选
if
(
!
isNull
(
parent
.
productCheckType
)){
checkType
=
parent
.
productCheckType
;
if
(
!
isNull
(
parent
.
erpOrderUtil
.
productCheckType
)){
checkType
=
parent
.
erpOrderUtil
.
productCheckType
;
}
//设置提示信息
...
...
@@ -85,7 +85,7 @@ layui.config({
if
(
checkType
==
'
2
'
){
//初始化值
var
ids
=
[];
$
.
each
(
parent
.
productMationList
,
function
(
i
,
item
){
$
.
each
(
parent
.
erpOrderUtil
.
chooseProductMation
,
function
(
i
,
item
){
ids
.
push
(
item
.
productId
);
});
tableCheckBoxUtil
.
setIds
({
...
...
@@ -130,7 +130,7 @@ layui.config({
form
.
render
();
var
chooseIndex
=
JSON
.
stringify
(
dubClick
.
data
(
'
index
'
));
var
obj
=
res
.
rows
[
chooseIndex
];
parent
.
p
roductMation
=
obj
;
parent
.
erpOrderUtil
.
chooseP
roductMation
=
obj
;
parent
.
refreshCode
=
'
0
'
;
parent
.
layer
.
close
(
index
);
...
...
@@ -142,8 +142,7 @@ layui.config({
form
.
render
();
})
}
else
{
//多选
//设置选中
// 多选,设置选中
tableCheckBoxUtil
.
checkedDefault
({
gridId
:
'
messageTable
'
,
fieldName
:
'
productId
'
...
...
@@ -182,7 +181,7 @@ layui.config({
});
AjaxPostUtil
.
request
({
url
:
flowableBasePath
+
"
material013
"
,
params
:
{
ids
:
selectedData
.
toString
()},
type
:
'
json
'
,
callback
:
function
(
json
){
if
(
json
.
returnCode
==
0
){
parent
.
productMationList
=
[].
concat
(
json
.
rows
);
parent
.
erpOrderUtil
.
chooseProductMation
=
[].
concat
(
json
.
rows
);
parent
.
layer
.
close
(
index
);
parent
.
refreshCode
=
'
0
'
;
}
else
{
...
...
This diff is collapsed.
Click to expand it.
erp/src/main/resources/template/js/otheroutlets/otheroutletsadd.js
浏览文件 @
4056ec42
//已经选择的客户信息
var
customerMation
=
{};
//商品信息
var
productMation
=
{};
//根据那一列的值进行变化,默认根据数量
var
showTdByEdit
=
'
rkNum
'
;
//表格的序号
...
...
@@ -273,28 +270,19 @@ layui.config({
//商品选择
$
(
"
body
"
).
on
(
"
click
"
,
"
.chooseProductBtn
"
,
function
(
e
){
var
trId
=
$
(
this
).
parent
().
parent
().
attr
(
"
trcusid
"
);
_openNewWindows
({
url
:
"
../../tpl/material/materialChoose.html
"
,
title
:
"
选择商品
"
,
pageId
:
"
productlist
"
,
area
:
[
'
90vw
'
,
'
90vh
'
],
callBack
:
function
(
refreshCode
){
if
(
refreshCode
==
'
0
'
)
{
//获取表格行号
var
thisRowNum
=
trId
.
replace
(
"
tr
"
,
""
);
//商品赋值
allChooseProduct
[
trId
]
=
productMation
;
//表格商品名称赋值
$
(
"
#materialId
"
+
thisRowNum
.
toString
()).
val
(
allChooseProduct
[
trId
].
productName
+
"
(
"
+
allChooseProduct
[
trId
].
productModel
+
"
)
"
);
//表格单位赋值
$
(
"
#unitId
"
+
thisRowNum
.
toString
()).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
allChooseProduct
[
trId
].
unitList
}));
form
.
render
(
'
select
'
);
//计算价格
calculatedTotalPrice
();
}
else
if
(
refreshCode
==
'
-9999
'
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.operationFailed
"
][
languageType
],
{
icon
:
2
,
time
:
2000
});
}
}});
erpOrderUtil
.
openMaterialChooseChoosePage
(
function
(
chooseProductMation
)
{
//获取表格行号
var
thisRowNum
=
trId
.
replace
(
"
tr
"
,
""
);
//商品赋值
allChooseProduct
[
trId
]
=
chooseProductMation
;
//表格商品名称赋值
$
(
"
#materialId
"
+
thisRowNum
.
toString
()).
val
(
allChooseProduct
[
trId
].
productName
+
"
(
"
+
allChooseProduct
[
trId
].
productModel
+
"
)
"
);
//表格单位赋值
$
(
"
#unitId
"
+
thisRowNum
.
toString
()).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
allChooseProduct
[
trId
].
unitList
}));
form
.
render
(
'
select
'
);
//计算价格
calculatedTotalPrice
();
});
});
$
(
"
body
"
).
on
(
"
click
"
,
"
#cancle
"
,
function
()
{
...
...
This diff is collapsed.
Click to expand it.
erp/src/main/resources/template/js/otheroutlets/otheroutletsedit.js
浏览文件 @
4056ec42
//已经选择的客户信息
var
customerMation
=
{};
//商品信息
var
productMation
=
{};
//根据那一列的值进行变化,默认根据数量
var
showTdByEdit
=
'
rkNum
'
;
//表格的序号
...
...
@@ -344,28 +341,19 @@ layui.config({
//商品选择
$
(
"
body
"
).
on
(
"
click
"
,
"
.chooseProductBtn
"
,
function
(
e
){
var
trId
=
$
(
this
).
parent
().
parent
().
attr
(
"
trcusid
"
);
_openNewWindows
({
url
:
"
../../tpl/material/materialChoose.html
"
,
title
:
"
选择商品
"
,
pageId
:
"
productlist
"
,
area
:
[
'
90vw
'
,
'
90vh
'
],
callBack
:
function
(
refreshCode
){
if
(
refreshCode
==
'
0
'
)
{
//获取表格行号
var
thisRowNum
=
trId
.
replace
(
"
tr
"
,
""
);
//商品赋值
allChooseProduct
[
trId
]
=
productMation
;
//表格商品名称赋值
$
(
"
#materialId
"
+
thisRowNum
.
toString
()).
val
(
allChooseProduct
[
trId
].
productName
+
"
(
"
+
allChooseProduct
[
trId
].
productModel
+
"
)
"
);
//表格单位赋值
$
(
"
#unitId
"
+
thisRowNum
.
toString
()).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
allChooseProduct
[
trId
].
unitList
}));
form
.
render
(
'
select
'
);
//计算价格
calculatedTotalPrice
();
}
else
if
(
refreshCode
==
'
-9999
'
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.operationFailed
"
][
languageType
],
{
icon
:
2
,
time
:
2000
});
}
}});
erpOrderUtil
.
openMaterialChooseChoosePage
(
function
(
chooseProductMation
)
{
//获取表格行号
var
thisRowNum
=
trId
.
replace
(
"
tr
"
,
""
);
//商品赋值
allChooseProduct
[
trId
]
=
chooseProductMation
;
//表格商品名称赋值
$
(
"
#materialId
"
+
thisRowNum
.
toString
()).
val
(
allChooseProduct
[
trId
].
productName
+
"
(
"
+
allChooseProduct
[
trId
].
productModel
+
"
)
"
);
//表格单位赋值
$
(
"
#unitId
"
+
thisRowNum
.
toString
()).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
allChooseProduct
[
trId
].
unitList
}));
form
.
render
(
'
select
'
);
//计算价格
calculatedTotalPrice
();
});
});
$
(
"
body
"
).
on
(
"
click
"
,
"
#cancle
"
,
function
()
{
...
...
This diff is collapsed.
Click to expand it.
erp/src/main/resources/template/js/otherwarehous/otherwarehousadd.js
浏览文件 @
4056ec42
//商品信息
var
productMation
=
{};
//根据那一列的值进行变化,默认根据数量
var
showTdByEdit
=
'
rkNum
'
;
...
...
@@ -250,31 +248,18 @@ layui.config({
//商品选择
$
(
"
body
"
).
on
(
"
click
"
,
"
.chooseProductBtn
"
,
function
(
e
)
{
var
trId
=
$
(
this
).
parent
().
parent
().
attr
(
"
trcusid
"
);
_openNewWindows
({
url
:
"
../../tpl/material/materialChoose.html
"
,
title
:
"
选择商品
"
,
pageId
:
"
productlist
"
,
area
:
[
'
90vw
'
,
'
90vh
'
],
callBack
:
function
(
refreshCode
)
{
if
(
refreshCode
==
'
0
'
)
{
//获取表格行号
var
thisRowNum
=
trId
.
replace
(
"
tr
"
,
""
);
//商品赋值
allChooseProduct
[
trId
]
=
productMation
;
//表格商品名称赋值
$
(
"
#materialId
"
+
thisRowNum
.
toString
()).
val
(
allChooseProduct
[
trId
].
productName
+
"
(
"
+
allChooseProduct
[
trId
].
productModel
+
"
)
"
);
//表格单位赋值
$
(
"
#unitId
"
+
thisRowNum
.
toString
()).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
allChooseProduct
[
trId
].
unitList
}));
form
.
render
(
'
select
'
);
//计算价格
calculatedTotalPrice
();
}
else
if
(
refreshCode
==
'
-9999
'
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.operationFailed
"
][
languageType
],
{
icon
:
2
,
time
:
2000
});
}
}
erpOrderUtil
.
openMaterialChooseChoosePage
(
function
(
chooseProductMation
)
{
//获取表格行号
var
thisRowNum
=
trId
.
replace
(
"
tr
"
,
""
);
//商品赋值
allChooseProduct
[
trId
]
=
chooseProductMation
;
//表格商品名称赋值
$
(
"
#materialId
"
+
thisRowNum
.
toString
()).
val
(
allChooseProduct
[
trId
].
productName
+
"
(
"
+
allChooseProduct
[
trId
].
productModel
+
"
)
"
);
//表格单位赋值
$
(
"
#unitId
"
+
thisRowNum
.
toString
()).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
allChooseProduct
[
trId
].
unitList
}));
form
.
render
(
'
select
'
);
//计算价格
calculatedTotalPrice
();
});
});
...
...
This diff is collapsed.
Click to expand it.
erp/src/main/resources/template/js/otherwarehous/otherwarehousedit.js
浏览文件 @
4056ec42
//商品信息
var
productMation
=
{};
//根据那一列的值进行变化,默认根据数量
var
showTdByEdit
=
'
rkNum
'
;
...
...
@@ -320,28 +318,19 @@ layui.config({
//商品选择
$
(
"
body
"
).
on
(
"
click
"
,
"
.chooseProductBtn
"
,
function
(
e
){
var
trId
=
$
(
this
).
parent
().
parent
().
attr
(
"
trcusid
"
);
_openNewWindows
({
url
:
"
../../tpl/material/materialChoose.html
"
,
title
:
"
选择商品
"
,
pageId
:
"
productlist
"
,
area
:
[
'
90vw
'
,
'
90vh
'
],
callBack
:
function
(
refreshCode
){
if
(
refreshCode
==
'
0
'
)
{
//获取表格行号
var
thisRowNum
=
trId
.
replace
(
"
tr
"
,
""
);
//商品赋值
allChooseProduct
[
trId
]
=
productMation
;
//表格商品名称赋值
$
(
"
#materialId
"
+
thisRowNum
.
toString
()).
val
(
allChooseProduct
[
trId
].
productName
+
"
(
"
+
allChooseProduct
[
trId
].
productModel
+
"
)
"
);
//表格单位赋值
$
(
"
#unitId
"
+
thisRowNum
.
toString
()).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
allChooseProduct
[
trId
].
unitList
}));
form
.
render
(
'
select
'
);
//计算价格
calculatedTotalPrice
();
}
else
if
(
refreshCode
==
'
-9999
'
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.operationFailed
"
][
languageType
],
{
icon
:
2
,
time
:
2000
});
}
}});
erpOrderUtil
.
openMaterialChooseChoosePage
(
function
(
chooseProductMation
)
{
//获取表格行号
var
thisRowNum
=
trId
.
replace
(
"
tr
"
,
""
);
//商品赋值
allChooseProduct
[
trId
]
=
chooseProductMation
;
//表格商品名称赋值
$
(
"
#materialId
"
+
thisRowNum
.
toString
()).
val
(
allChooseProduct
[
trId
].
productName
+
"
(
"
+
allChooseProduct
[
trId
].
productModel
+
"
)
"
);
//表格单位赋值
$
(
"
#unitId
"
+
thisRowNum
.
toString
()).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
allChooseProduct
[
trId
].
unitList
}));
form
.
render
(
'
select
'
);
//计算价格
calculatedTotalPrice
();
});
});
$
(
"
body
"
).
on
(
"
click
"
,
"
#cancle
"
,
function
()
{
...
...
This diff is collapsed.
Click to expand it.
erp/src/main/resources/template/js/purchaseorder/purchaseorderadd.js
浏览文件 @
4056ec42
// 商品信息
var
productMation
=
{};
// 生产订单信息
var
productionMation
=
{};
...
...
@@ -255,28 +253,19 @@ layui.config({
//商品选择
$
(
"
body
"
).
on
(
"
click
"
,
"
.chooseProductBtn
"
,
function
(
e
){
var
trId
=
$
(
this
).
parent
().
parent
().
attr
(
"
trcusid
"
);
_openNewWindows
({
url
:
"
../../tpl/material/materialChoose.html
"
,
title
:
"
选择商品
"
,
pageId
:
"
productlist
"
,
area
:
[
'
90vw
'
,
'
90vh
'
],
callBack
:
function
(
refreshCode
){
if
(
refreshCode
==
'
0
'
)
{
//获取表格行号
var
thisRowNum
=
trId
.
replace
(
"
tr
"
,
""
);
//商品赋值
allChooseProduct
[
trId
]
=
productMation
;
//表格商品名称赋值
$
(
"
#materialId
"
+
thisRowNum
.
toString
()).
val
(
allChooseProduct
[
trId
].
productName
+
"
(
"
+
allChooseProduct
[
trId
].
productModel
+
"
)
"
);
//表格单位赋值
$
(
"
#unitId
"
+
thisRowNum
.
toString
()).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
allChooseProduct
[
trId
].
unitList
}));
form
.
render
(
'
select
'
);
//计算价格
calculatedTotalPrice
();
}
else
if
(
refreshCode
==
'
-9999
'
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.operationFailed
"
][
languageType
],
{
icon
:
2
,
time
:
2000
});
}
}});
erpOrderUtil
.
openMaterialChooseChoosePage
(
function
(
chooseProductMation
)
{
//获取表格行号
var
thisRowNum
=
trId
.
replace
(
"
tr
"
,
""
);
//商品赋值
allChooseProduct
[
trId
]
=
chooseProductMation
;
//表格商品名称赋值
$
(
"
#materialId
"
+
thisRowNum
.
toString
()).
val
(
allChooseProduct
[
trId
].
productName
+
"
(
"
+
allChooseProduct
[
trId
].
productModel
+
"
)
"
);
//表格单位赋值
$
(
"
#unitId
"
+
thisRowNum
.
toString
()).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
allChooseProduct
[
trId
].
unitList
}));
form
.
render
(
'
select
'
);
//计算价格
calculatedTotalPrice
();
});
});
//生产计划单选择
...
...
This diff is collapsed.
Click to expand it.
erp/src/main/resources/template/js/purchaseorder/purchaseorderedit.js
浏览文件 @
4056ec42
//商品信息
var
productMation
=
{};
//生产订单信息
var
productionMation
=
{};
...
...
@@ -328,28 +326,19 @@ layui.config({
//商品选择
$
(
"
body
"
).
on
(
"
click
"
,
"
.chooseProductBtn
"
,
function
(
e
){
var
trId
=
$
(
this
).
parent
().
parent
().
attr
(
"
trcusid
"
);
_openNewWindows
({
url
:
"
../../tpl/material/materialChoose.html
"
,
title
:
"
选择商品
"
,
pageId
:
"
productlist
"
,
area
:
[
'
90vw
'
,
'
90vh
'
],
callBack
:
function
(
refreshCode
){
if
(
refreshCode
==
'
0
'
)
{
//获取表格行号
var
thisRowNum
=
trId
.
replace
(
"
tr
"
,
""
);
//商品赋值
allChooseProduct
[
trId
]
=
productMation
;
//表格商品名称赋值
$
(
"
#materialId
"
+
thisRowNum
.
toString
()).
val
(
allChooseProduct
[
trId
].
productName
+
"
(
"
+
allChooseProduct
[
trId
].
productModel
+
"
)
"
);
//表格单位赋值
$
(
"
#unitId
"
+
thisRowNum
.
toString
()).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
allChooseProduct
[
trId
].
unitList
}));
form
.
render
(
'
select
'
);
//计算价格
calculatedTotalPrice
();
}
else
if
(
refreshCode
==
'
-9999
'
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.operationFailed
"
][
languageType
],
{
icon
:
2
,
time
:
2000
});
}
}});
erpOrderUtil
.
openMaterialChooseChoosePage
(
function
(
chooseProductMation
)
{
//获取表格行号
var
thisRowNum
=
trId
.
replace
(
"
tr
"
,
""
);
//商品赋值
allChooseProduct
[
trId
]
=
chooseProductMation
;
//表格商品名称赋值
$
(
"
#materialId
"
+
thisRowNum
.
toString
()).
val
(
allChooseProduct
[
trId
].
productName
+
"
(
"
+
allChooseProduct
[
trId
].
productModel
+
"
)
"
);
//表格单位赋值
$
(
"
#unitId
"
+
thisRowNum
.
toString
()).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
allChooseProduct
[
trId
].
unitList
}));
form
.
render
(
'
select
'
);
//计算价格
calculatedTotalPrice
();
});
});
//生产计划单选择
...
...
This diff is collapsed.
Click to expand it.
erp/src/main/resources/template/js/purchaseorder/purchaseorderpurchase.js
浏览文件 @
4056ec42
//商品信息
var
productMation
=
{};
//根据那一列的值进行变化,默认根据数量
var
showTdByEdit
=
'
rkNum
'
;
...
...
@@ -362,28 +360,19 @@ layui.config({
//商品选择
$
(
"
body
"
).
on
(
"
click
"
,
"
.chooseProductBtn
"
,
function
(
e
){
var
trId
=
$
(
this
).
parent
().
parent
().
attr
(
"
trcusid
"
);
_openNewWindows
({
url
:
"
../../tpl/material/materialChoose.html
"
,
title
:
"
选择商品
"
,
pageId
:
"
productlist
"
,
area
:
[
'
90vw
'
,
'
90vh
'
],
callBack
:
function
(
refreshCode
){
if
(
refreshCode
==
'
0
'
)
{
//获取表格行号
var
thisRowNum
=
trId
.
replace
(
"
tr
"
,
""
);
//商品赋值
allChooseProduct
[
trId
]
=
productMation
;
//表格商品名称赋值
$
(
"
#materialId
"
+
thisRowNum
.
toString
()).
val
(
allChooseProduct
[
trId
].
productName
+
"
(
"
+
allChooseProduct
[
trId
].
productModel
+
"
)
"
);
//表格单位赋值
$
(
"
#unitId
"
+
thisRowNum
.
toString
()).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
allChooseProduct
[
trId
].
unitList
}));
form
.
render
(
'
select
'
);
//计算价格
calculatedTotalPrice
();
}
else
if
(
refreshCode
==
'
-9999
'
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.operationFailed
"
][
languageType
],
{
icon
:
2
,
time
:
2000
});
}
}});
erpOrderUtil
.
openMaterialChooseChoosePage
(
function
(
chooseProductMation
)
{
//获取表格行号
var
thisRowNum
=
trId
.
replace
(
"
tr
"
,
""
);
//商品赋值
allChooseProduct
[
trId
]
=
chooseProductMation
;
//表格商品名称赋值
$
(
"
#materialId
"
+
thisRowNum
.
toString
()).
val
(
allChooseProduct
[
trId
].
productName
+
"
(
"
+
allChooseProduct
[
trId
].
productModel
+
"
)
"
);
//表格单位赋值
$
(
"
#unitId
"
+
thisRowNum
.
toString
()).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
allChooseProduct
[
trId
].
unitList
}));
form
.
render
(
'
select
'
);
//计算价格
calculatedTotalPrice
();
});
});
/*********************** 商品表格操作 end ****************************/
...
...
This diff is collapsed.
Click to expand it.
erp/src/main/resources/template/js/purchaseput/purchaseputadd.js
浏览文件 @
4056ec42
//商品信息
var
productMation
=
{};
//根据那一列的值进行变化,默认根据数量
var
showTdByEdit
=
'
rkNum
'
;
...
...
@@ -279,28 +277,19 @@ layui.config({
//商品选择
$
(
"
body
"
).
on
(
"
click
"
,
"
.chooseProductBtn
"
,
function
(
e
){
var
trId
=
$
(
this
).
parent
().
parent
().
attr
(
"
trcusid
"
);
_openNewWindows
({
url
:
"
../../tpl/material/materialChoose.html
"
,
title
:
"
选择商品
"
,
pageId
:
"
productlist
"
,
area
:
[
'
90vw
'
,
'
90vh
'
],
callBack
:
function
(
refreshCode
){
if
(
refreshCode
==
'
0
'
)
{
//获取表格行号
var
thisRowNum
=
trId
.
replace
(
"
tr
"
,
""
);
//商品赋值
allChooseProduct
[
trId
]
=
productMation
;
//表格商品名称赋值
$
(
"
#materialId
"
+
thisRowNum
.
toString
()).
val
(
allChooseProduct
[
trId
].
productName
+
"
(
"
+
allChooseProduct
[
trId
].
productModel
+
"
)
"
);
//表格单位赋值
$
(
"
#unitId
"
+
thisRowNum
.
toString
()).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
allChooseProduct
[
trId
].
unitList
}));
form
.
render
(
'
select
'
);
//计算价格
calculatedTotalPrice
();
}
else
if
(
refreshCode
==
'
-9999
'
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.operationFailed
"
][
languageType
],
{
icon
:
2
,
time
:
2000
});
}
}});
erpOrderUtil
.
openMaterialChooseChoosePage
(
function
(
chooseProductMation
)
{
//获取表格行号
var
thisRowNum
=
trId
.
replace
(
"
tr
"
,
""
);
//商品赋值
allChooseProduct
[
trId
]
=
chooseProductMation
;
//表格商品名称赋值
$
(
"
#materialId
"
+
thisRowNum
.
toString
()).
val
(
allChooseProduct
[
trId
].
productName
+
"
(
"
+
allChooseProduct
[
trId
].
productModel
+
"
)
"
);
//表格单位赋值
$
(
"
#unitId
"
+
thisRowNum
.
toString
()).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
allChooseProduct
[
trId
].
unitList
}));
form
.
render
(
'
select
'
);
//计算价格
calculatedTotalPrice
();
});
});
/*********************** 商品表格操作 end ****************************/
...
...
This diff is collapsed.
Click to expand it.
erp/src/main/resources/template/js/purchaseput/purchaseputedit.js
浏览文件 @
4056ec42
//商品信息
var
productMation
=
{};
//根据那一列的值进行变化,默认根据数量
var
showTdByEdit
=
'
rkNum
'
;
...
...
@@ -362,28 +360,19 @@ layui.config({
//商品选择
$
(
"
body
"
).
on
(
"
click
"
,
"
.chooseProductBtn
"
,
function
(
e
){
var
trId
=
$
(
this
).
parent
().
parent
().
attr
(
"
trcusid
"
);
_openNewWindows
({
url
:
"
../../tpl/material/materialChoose.html
"
,
title
:
"
选择商品
"
,
pageId
:
"
productlist
"
,
area
:
[
'
90vw
'
,
'
90vh
'
],
callBack
:
function
(
refreshCode
){
if
(
refreshCode
==
'
0
'
)
{
//获取表格行号
var
thisRowNum
=
trId
.
replace
(
"
tr
"
,
""
);
//商品赋值
allChooseProduct
[
trId
]
=
productMation
;
//表格商品名称赋值
$
(
"
#materialId
"
+
thisRowNum
.
toString
()).
val
(
allChooseProduct
[
trId
].
productName
+
"
(
"
+
allChooseProduct
[
trId
].
productModel
+
"
)
"
);
//表格单位赋值
$
(
"
#unitId
"
+
thisRowNum
.
toString
()).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
allChooseProduct
[
trId
].
unitList
}));
form
.
render
(
'
select
'
);
//计算价格
calculatedTotalPrice
();
}
else
if
(
refreshCode
==
'
-9999
'
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.operationFailed
"
][
languageType
],
{
icon
:
2
,
time
:
2000
});
}
}});
erpOrderUtil
.
openMaterialChooseChoosePage
(
function
(
chooseProductMation
)
{
//获取表格行号
var
thisRowNum
=
trId
.
replace
(
"
tr
"
,
""
);
//商品赋值
allChooseProduct
[
trId
]
=
chooseProductMation
;
//表格商品名称赋值
$
(
"
#materialId
"
+
thisRowNum
.
toString
()).
val
(
allChooseProduct
[
trId
].
productName
+
"
(
"
+
allChooseProduct
[
trId
].
productModel
+
"
)
"
);
//表格单位赋值
$
(
"
#unitId
"
+
thisRowNum
.
toString
()).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
allChooseProduct
[
trId
].
unitList
}));
form
.
render
(
'
select
'
);
//计算价格
calculatedTotalPrice
();
});
});
/*********************** 商品表格操作 end ****************************/
...
...
This diff is collapsed.
Click to expand it.
erp/src/main/resources/template/js/purchasereturns/purchasereturnsadd.js
浏览文件 @
4056ec42
//商品信息
var
productMation
=
{};
//根据那一列的值进行变化,默认根据数量
var
showTdByEdit
=
'
rkNum
'
;
...
...
@@ -281,28 +279,19 @@ layui.config({
//商品选择
$
(
"
body
"
).
on
(
"
click
"
,
"
.chooseProductBtn
"
,
function
(
e
){
var
trId
=
$
(
this
).
parent
().
parent
().
attr
(
"
trcusid
"
);
_openNewWindows
({
url
:
"
../../tpl/material/materialChoose.html
"
,
title
:
"
选择商品
"
,
pageId
:
"
productlist
"
,
area
:
[
'
90vw
'
,
'
90vh
'
],
callBack
:
function
(
refreshCode
){
if
(
refreshCode
==
'
0
'
)
{
//获取表格行号
var
thisRowNum
=
trId
.
replace
(
"
tr
"
,
""
);
//商品赋值
allChooseProduct
[
trId
]
=
productMation
;
//表格商品名称赋值
$
(
"
#materialId
"
+
thisRowNum
.
toString
()).
val
(
allChooseProduct
[
trId
].
productName
+
"
(
"
+
allChooseProduct
[
trId
].
productModel
+
"
)
"
);
//表格单位赋值
$
(
"
#unitId
"
+
thisRowNum
.
toString
()).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
allChooseProduct
[
trId
].
unitList
}));
form
.
render
(
'
select
'
);
//计算价格
calculatedTotalPrice
();
}
else
if
(
refreshCode
==
'
-9999
'
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.operationFailed
"
][
languageType
],
{
icon
:
2
,
time
:
2000
});
}
}});
erpOrderUtil
.
openMaterialChooseChoosePage
(
function
(
chooseProductMation
)
{
//获取表格行号
var
thisRowNum
=
trId
.
replace
(
"
tr
"
,
""
);
//商品赋值
allChooseProduct
[
trId
]
=
chooseProductMation
;
//表格商品名称赋值
$
(
"
#materialId
"
+
thisRowNum
.
toString
()).
val
(
allChooseProduct
[
trId
].
productName
+
"
(
"
+
allChooseProduct
[
trId
].
productModel
+
"
)
"
);
//表格单位赋值
$
(
"
#unitId
"
+
thisRowNum
.
toString
()).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
allChooseProduct
[
trId
].
unitList
}));
form
.
render
(
'
select
'
);
//计算价格
calculatedTotalPrice
();
});
});
/*********************** 商品表格操作 end ****************************/
...
...
This diff is collapsed.
Click to expand it.
erp/src/main/resources/template/js/purchasereturns/purchasereturnsedit.js
浏览文件 @
4056ec42
//商品信息
var
productMation
=
{};
//根据那一列的值进行变化,默认根据数量
var
showTdByEdit
=
'
rkNum
'
;
...
...
@@ -357,28 +355,19 @@ layui.config({
//商品选择
$
(
"
body
"
).
on
(
"
click
"
,
"
.chooseProductBtn
"
,
function
(
e
){
var
trId
=
$
(
this
).
parent
().
parent
().
attr
(
"
trcusid
"
);
_openNewWindows
({
url
:
"
../../tpl/material/materialChoose.html
"
,
title
:
"
选择商品
"
,
pageId
:
"
productlist
"
,
area
:
[
'
90vw
'
,
'
90vh
'
],
callBack
:
function
(
refreshCode
){
if
(
refreshCode
==
'
0
'
)
{
//获取表格行号
var
thisRowNum
=
trId
.
replace
(
"
tr
"
,
""
);
//商品赋值
allChooseProduct
[
trId
]
=
productMation
;
//表格商品名称赋值
$
(
"
#materialId
"
+
thisRowNum
.
toString
()).
val
(
allChooseProduct
[
trId
].
productName
+
"
(
"
+
allChooseProduct
[
trId
].
productModel
+
"
)
"
);
//表格单位赋值
$
(
"
#unitId
"
+
thisRowNum
.
toString
()).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
allChooseProduct
[
trId
].
unitList
}));
form
.
render
(
'
select
'
);
//计算价格
calculatedTotalPrice
();
}
else
if
(
refreshCode
==
'
-9999
'
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.operationFailed
"
][
languageType
],
{
icon
:
2
,
time
:
2000
});
}
}});
erpOrderUtil
.
openMaterialChooseChoosePage
(
function
(
chooseProductMation
)
{
//获取表格行号
var
thisRowNum
=
trId
.
replace
(
"
tr
"
,
""
);
//商品赋值
allChooseProduct
[
trId
]
=
chooseProductMation
;
//表格商品名称赋值
$
(
"
#materialId
"
+
thisRowNum
.
toString
()).
val
(
allChooseProduct
[
trId
].
productName
+
"
(
"
+
allChooseProduct
[
trId
].
productModel
+
"
)
"
);
//表格单位赋值
$
(
"
#unitId
"
+
thisRowNum
.
toString
()).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
allChooseProduct
[
trId
].
unitList
}));
form
.
render
(
'
select
'
);
//计算价格
calculatedTotalPrice
();
});
});
/*********************** 商品表格操作 end ****************************/
...
...
This diff is collapsed.
Click to expand it.
erp/src/main/resources/template/js/retailoutlet/retailoutletadd.js
浏览文件 @
4056ec42
//商品信息
var
productMation
=
{};
// 兼容动态表单
var
layedit
,
form
;
...
...
@@ -307,28 +305,19 @@ layui.config({
// 商品选择
$
(
"
body
"
).
on
(
"
click
"
,
"
.chooseProductBtn
"
,
function
(
e
){
var
trId
=
$
(
this
).
parent
().
parent
().
attr
(
"
trcusid
"
);
_openNewWindows
({
url
:
"
../../tpl/material/materialChoose.html
"
,
title
:
"
选择商品
"
,
pageId
:
"
productlist
"
,
area
:
[
'
90vw
'
,
'
90vh
'
],
callBack
:
function
(
refreshCode
){
if
(
refreshCode
==
'
0
'
)
{
//获取表格行号
var
thisRowNum
=
trId
.
replace
(
"
tr
"
,
""
);
//商品赋值
allChooseProduct
[
trId
]
=
productMation
;
//表格商品名称赋值
$
(
"
#materialId
"
+
thisRowNum
.
toString
()).
val
(
allChooseProduct
[
trId
].
productName
+
"
(
"
+
allChooseProduct
[
trId
].
productModel
+
"
)
"
);
//表格单位赋值
$
(
"
#unitId
"
+
thisRowNum
.
toString
()).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
allChooseProduct
[
trId
].
unitList
}));
form
.
render
(
'
select
'
);
//计算价格
calculatedTotalPrice
();
}
else
if
(
refreshCode
==
'
-9999
'
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.operationFailed
"
][
languageType
],
{
icon
:
2
,
time
:
2000
});
}
}});
erpOrderUtil
.
openMaterialChooseChoosePage
(
function
(
chooseProductMation
)
{
//获取表格行号
var
thisRowNum
=
trId
.
replace
(
"
tr
"
,
""
);
//商品赋值
allChooseProduct
[
trId
]
=
chooseProductMation
;
//表格商品名称赋值
$
(
"
#materialId
"
+
thisRowNum
.
toString
()).
val
(
allChooseProduct
[
trId
].
productName
+
"
(
"
+
allChooseProduct
[
trId
].
productModel
+
"
)
"
);
//表格单位赋值
$
(
"
#unitId
"
+
thisRowNum
.
toString
()).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
allChooseProduct
[
trId
].
unitList
}));
form
.
render
(
'
select
'
);
//计算价格
calculatedTotalPrice
();
});
});
// 会员选择
...
...
This diff is collapsed.
Click to expand it.
erp/src/main/resources/template/js/retailoutlet/retailoutletedit.js
浏览文件 @
4056ec42
// 商品信息
var
productMation
=
{};
// 兼容动态表单
var
layedit
,
form
;
...
...
@@ -368,28 +366,19 @@ layui.config({
// 商品选择
$
(
"
body
"
).
on
(
"
click
"
,
"
.chooseProductBtn
"
,
function
(
e
){
var
trId
=
$
(
this
).
parent
().
parent
().
attr
(
"
trcusid
"
);
_openNewWindows
({
url
:
"
../../tpl/material/materialChoose.html
"
,
title
:
"
选择商品
"
,
pageId
:
"
productlist
"
,
area
:
[
'
90vw
'
,
'
90vh
'
],
callBack
:
function
(
refreshCode
){
if
(
refreshCode
==
'
0
'
)
{
//获取表格行号
var
thisRowNum
=
trId
.
replace
(
"
tr
"
,
""
);
//商品赋值
allChooseProduct
[
trId
]
=
productMation
;
//表格商品名称赋值
$
(
"
#materialId
"
+
thisRowNum
.
toString
()).
val
(
allChooseProduct
[
trId
].
productName
+
"
(
"
+
allChooseProduct
[
trId
].
productModel
+
"
)
"
);
//表格单位赋值
$
(
"
#unitId
"
+
thisRowNum
.
toString
()).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
allChooseProduct
[
trId
].
unitList
}));
form
.
render
(
'
select
'
);
//计算价格
calculatedTotalPrice
();
}
else
if
(
refreshCode
==
'
-9999
'
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.operationFailed
"
][
languageType
],
{
icon
:
2
,
time
:
2000
});
}
}});
erpOrderUtil
.
openMaterialChooseChoosePage
(
function
(
chooseProductMation
)
{
//获取表格行号
var
thisRowNum
=
trId
.
replace
(
"
tr
"
,
""
);
//商品赋值
allChooseProduct
[
trId
]
=
chooseProductMation
;
//表格商品名称赋值
$
(
"
#materialId
"
+
thisRowNum
.
toString
()).
val
(
allChooseProduct
[
trId
].
productName
+
"
(
"
+
allChooseProduct
[
trId
].
productModel
+
"
)
"
);
//表格单位赋值
$
(
"
#unitId
"
+
thisRowNum
.
toString
()).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
allChooseProduct
[
trId
].
unitList
}));
form
.
render
(
'
select
'
);
//计算价格
calculatedTotalPrice
();
});
});
// 会员选择
...
...
This diff is collapsed.
Click to expand it.
erp/src/main/resources/template/js/retailreturns/retailreturnsadd.js
浏览文件 @
4056ec42
//商品信息
var
productMation
=
{};
// 兼容动态表单
var
layedit
,
form
;
...
...
@@ -305,28 +303,19 @@ layui.config({
// 商品选择
$
(
"
body
"
).
on
(
"
click
"
,
"
.chooseProductBtn
"
,
function
(
e
){
var
trId
=
$
(
this
).
parent
().
parent
().
attr
(
"
trcusid
"
);
_openNewWindows
({
url
:
"
../../tpl/material/materialChoose.html
"
,
title
:
"
选择商品
"
,
pageId
:
"
productlist
"
,
area
:
[
'
90vw
'
,
'
90vh
'
],
callBack
:
function
(
refreshCode
){
if
(
refreshCode
==
'
0
'
)
{
//获取表格行号
var
thisRowNum
=
trId
.
replace
(
"
tr
"
,
""
);
//商品赋值
allChooseProduct
[
trId
]
=
productMation
;
//表格商品名称赋值
$
(
"
#materialId
"
+
thisRowNum
.
toString
()).
val
(
allChooseProduct
[
trId
].
productName
+
"
(
"
+
allChooseProduct
[
trId
].
productModel
+
"
)
"
);
//表格单位赋值
$
(
"
#unitId
"
+
thisRowNum
.
toString
()).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
allChooseProduct
[
trId
].
unitList
}));
form
.
render
(
'
select
'
);
//计算价格
calculatedTotalPrice
();
}
else
if
(
refreshCode
==
'
-9999
'
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.operationFailed
"
][
languageType
],
{
icon
:
2
,
time
:
2000
});
}
}});
erpOrderUtil
.
openMaterialChooseChoosePage
(
function
(
chooseProductMation
)
{
//获取表格行号
var
thisRowNum
=
trId
.
replace
(
"
tr
"
,
""
);
//商品赋值
allChooseProduct
[
trId
]
=
chooseProductMation
;
//表格商品名称赋值
$
(
"
#materialId
"
+
thisRowNum
.
toString
()).
val
(
allChooseProduct
[
trId
].
productName
+
"
(
"
+
allChooseProduct
[
trId
].
productModel
+
"
)
"
);
//表格单位赋值
$
(
"
#unitId
"
+
thisRowNum
.
toString
()).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
allChooseProduct
[
trId
].
unitList
}));
form
.
render
(
'
select
'
);
//计算价格
calculatedTotalPrice
();
});
});
// 会员选择
...
...
This diff is collapsed.
Click to expand it.
erp/src/main/resources/template/js/retailreturns/retailreturnsedit.js
浏览文件 @
4056ec42
//商品信息
var
productMation
=
{};
// 兼容动态表单
var
layedit
,
form
;
...
...
@@ -366,28 +364,19 @@ layui.config({
// 商品选择
$
(
"
body
"
).
on
(
"
click
"
,
"
.chooseProductBtn
"
,
function
(
e
){
var
trId
=
$
(
this
).
parent
().
parent
().
attr
(
"
trcusid
"
);
_openNewWindows
({
url
:
"
../../tpl/material/materialChoose.html
"
,
title
:
"
选择商品
"
,
pageId
:
"
productlist
"
,
area
:
[
'
90vw
'
,
'
90vh
'
],
callBack
:
function
(
refreshCode
){
if
(
refreshCode
==
'
0
'
)
{
//获取表格行号
var
thisRowNum
=
trId
.
replace
(
"
tr
"
,
""
);
//商品赋值
allChooseProduct
[
trId
]
=
productMation
;
//表格商品名称赋值
$
(
"
#materialId
"
+
thisRowNum
.
toString
()).
val
(
allChooseProduct
[
trId
].
productName
+
"
(
"
+
allChooseProduct
[
trId
].
productModel
+
"
)
"
);
//表格单位赋值
$
(
"
#unitId
"
+
thisRowNum
.
toString
()).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
allChooseProduct
[
trId
].
unitList
}));
form
.
render
(
'
select
'
);
//计算价格
calculatedTotalPrice
();
}
else
if
(
refreshCode
==
'
-9999
'
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.operationFailed
"
][
languageType
],
{
icon
:
2
,
time
:
2000
});
}
}});
erpOrderUtil
.
openMaterialChooseChoosePage
(
function
(
chooseProductMation
)
{
//获取表格行号
var
thisRowNum
=
trId
.
replace
(
"
tr
"
,
""
);
//商品赋值
allChooseProduct
[
trId
]
=
chooseProductMation
;
//表格商品名称赋值
$
(
"
#materialId
"
+
thisRowNum
.
toString
()).
val
(
allChooseProduct
[
trId
].
productName
+
"
(
"
+
allChooseProduct
[
trId
].
productModel
+
"
)
"
);
//表格单位赋值
$
(
"
#unitId
"
+
thisRowNum
.
toString
()).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
allChooseProduct
[
trId
].
unitList
}));
form
.
render
(
'
select
'
);
//计算价格
calculatedTotalPrice
();
});
});
// 会员选择
...
...
This diff is collapsed.
Click to expand it.
erp/src/main/resources/template/js/salesorder/salesorderadd.js
浏览文件 @
4056ec42
...
...
@@ -6,9 +6,6 @@ var checkType = "1";//人员选择类型,1.多选;其他。单选
// 已经选择的客户信息
var
customerMation
=
{};
// 商品信息
var
productMation
=
{};
// 根据那一列的值进行变化,默认根据数量
var
showTdByEdit
=
'
rkNum
'
;
// 表格的序号
...
...
@@ -341,28 +338,19 @@ layui.config({
// 商品选择
$
(
"
body
"
).
on
(
"
click
"
,
"
.chooseProductBtn
"
,
function
(
e
){
var
trId
=
$
(
this
).
parent
().
parent
().
attr
(
"
trcusid
"
);
_openNewWindows
({
url
:
"
../../tpl/material/materialChoose.html
"
,
title
:
"
选择商品
"
,
pageId
:
"
productlist
"
,
area
:
[
'
90vw
'
,
'
90vh
'
],
callBack
:
function
(
refreshCode
){
if
(
refreshCode
==
'
0
'
)
{
// 获取表格行号
var
thisRowNum
=
trId
.
replace
(
"
tr
"
,
""
);
// 商品赋值
allChooseProduct
[
trId
]
=
productMation
;
//表格商品名称赋值
$
(
"
#materialId
"
+
thisRowNum
.
toString
()).
val
(
allChooseProduct
[
trId
].
productName
+
"
(
"
+
allChooseProduct
[
trId
].
productModel
+
"
)
"
);
//表格单位赋值
$
(
"
#unitId
"
+
thisRowNum
.
toString
()).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
allChooseProduct
[
trId
].
unitList
}));
form
.
render
(
'
select
'
);
//计算价格
calculatedTotalPrice
();
}
else
if
(
refreshCode
==
'
-9999
'
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.operationFailed
"
][
languageType
],
{
icon
:
2
,
time
:
2000
});
}
}});
erpOrderUtil
.
openMaterialChooseChoosePage
(
function
(
chooseProductMation
)
{
// 获取表格行号
var
thisRowNum
=
trId
.
replace
(
"
tr
"
,
""
);
// 商品赋值
allChooseProduct
[
trId
]
=
chooseProductMation
;
//表格商品名称赋值
$
(
"
#materialId
"
+
thisRowNum
.
toString
()).
val
(
allChooseProduct
[
trId
].
productName
+
"
(
"
+
allChooseProduct
[
trId
].
productModel
+
"
)
"
);
//表格单位赋值
$
(
"
#unitId
"
+
thisRowNum
.
toString
()).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
allChooseProduct
[
trId
].
unitList
}));
form
.
render
(
'
select
'
);
//计算价格
calculatedTotalPrice
();
});
});
/*********************** 其他费用表格操作 start ****************************/
...
...
This diff is collapsed.
Click to expand it.
erp/src/main/resources/template/js/salesorder/salesorderedit.js
浏览文件 @
4056ec42
...
...
@@ -6,9 +6,6 @@ var checkType = "1";//人员选择类型,1.多选;其他。单选
// 已经选择的客户信息
var
customerMation
=
{};
//商品信息
var
productMation
=
{};
//根据那一列的值进行变化,默认根据数量
var
showTdByEdit
=
'
rkNum
'
;
//表格的序号
...
...
@@ -422,28 +419,19 @@ layui.config({
//商品选择
$
(
"
body
"
).
on
(
"
click
"
,
"
.chooseProductBtn
"
,
function
(
e
){
var
trId
=
$
(
this
).
parent
().
parent
().
attr
(
"
trcusid
"
);
_openNewWindows
({
url
:
"
../../tpl/material/materialChoose.html
"
,
title
:
"
选择商品
"
,
pageId
:
"
productlist
"
,
area
:
[
'
90vw
'
,
'
90vh
'
],
callBack
:
function
(
refreshCode
){
if
(
refreshCode
==
'
0
'
)
{
//获取表格行号
var
thisRowNum
=
trId
.
replace
(
"
tr
"
,
""
);
//商品赋值
allChooseProduct
[
trId
]
=
productMation
;
//表格商品名称赋值
$
(
"
#materialId
"
+
thisRowNum
.
toString
()).
val
(
allChooseProduct
[
trId
].
productName
+
"
(
"
+
allChooseProduct
[
trId
].
productModel
+
"
)
"
);
//表格单位赋值
$
(
"
#unitId
"
+
thisRowNum
.
toString
()).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
allChooseProduct
[
trId
].
unitList
}));
form
.
render
(
'
select
'
);
//计算价格
calculatedTotalPrice
();
}
else
if
(
refreshCode
==
'
-9999
'
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.operationFailed
"
][
languageType
],
{
icon
:
2
,
time
:
2000
});
}
}});
erpOrderUtil
.
openMaterialChooseChoosePage
(
function
(
chooseProductMation
)
{
//获取表格行号
var
thisRowNum
=
trId
.
replace
(
"
tr
"
,
""
);
//商品赋值
allChooseProduct
[
trId
]
=
chooseProductMation
;
//表格商品名称赋值
$
(
"
#materialId
"
+
thisRowNum
.
toString
()).
val
(
allChooseProduct
[
trId
].
productName
+
"
(
"
+
allChooseProduct
[
trId
].
productModel
+
"
)
"
);
//表格单位赋值
$
(
"
#unitId
"
+
thisRowNum
.
toString
()).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
allChooseProduct
[
trId
].
unitList
}));
form
.
render
(
'
select
'
);
//计算价格
calculatedTotalPrice
();
});
});
/*********************** 其他费用表格操作 start ****************************/
...
...
This diff is collapsed.
Click to expand it.
erp/src/main/resources/template/js/salesorder/salesorderpurchase.js
浏览文件 @
4056ec42
...
...
@@ -6,9 +6,6 @@ var checkType = "1";//人员选择类型,1.多选;其他。单选
//已经选择的客户信息
var
customerMation
=
{};
//商品信息
var
productMation
=
{};
//根据那一列的值进行变化,默认根据数量
var
showTdByEdit
=
'
rkNum
'
;
//表格的序号
...
...
@@ -443,28 +440,19 @@ layui.config({
//商品选择
$
(
"
body
"
).
on
(
"
click
"
,
"
.chooseProductBtn
"
,
function
(
e
){
var
trId
=
$
(
this
).
parent
().
parent
().
attr
(
"
trcusid
"
);
_openNewWindows
({
url
:
"
../../tpl/material/materialChoose.html
"
,
title
:
"
选择商品
"
,
pageId
:
"
productlist
"
,
area
:
[
'
90vw
'
,
'
90vh
'
],
callBack
:
function
(
refreshCode
){
if
(
refreshCode
==
'
0
'
)
{
//获取表格行号
var
thisRowNum
=
trId
.
replace
(
"
tr
"
,
""
);
//商品赋值
allChooseProduct
[
trId
]
=
productMation
;
//表格商品名称赋值
$
(
"
#materialId
"
+
thisRowNum
.
toString
()).
val
(
allChooseProduct
[
trId
].
productName
+
"
(
"
+
allChooseProduct
[
trId
].
productModel
+
"
)
"
);
//表格单位赋值
$
(
"
#unitId
"
+
thisRowNum
.
toString
()).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
allChooseProduct
[
trId
].
unitList
}));
form
.
render
(
'
select
'
);
//计算价格
calculatedTotalPrice
();
}
else
if
(
refreshCode
==
'
-9999
'
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.operationFailed
"
][
languageType
],
{
icon
:
2
,
time
:
2000
});
}
}});
erpOrderUtil
.
openMaterialChooseChoosePage
(
function
(
chooseProductMation
)
{
//获取表格行号
var
thisRowNum
=
trId
.
replace
(
"
tr
"
,
""
);
//商品赋值
allChooseProduct
[
trId
]
=
chooseProductMation
;
//表格商品名称赋值
$
(
"
#materialId
"
+
thisRowNum
.
toString
()).
val
(
allChooseProduct
[
trId
].
productName
+
"
(
"
+
allChooseProduct
[
trId
].
productModel
+
"
)
"
);
//表格单位赋值
$
(
"
#unitId
"
+
thisRowNum
.
toString
()).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
allChooseProduct
[
trId
].
unitList
}));
form
.
render
(
'
select
'
);
//计算价格
calculatedTotalPrice
();
});
});
/*********************** 商品表格操作 end ****************************/
...
...
This diff is collapsed.
Click to expand it.
erp/src/main/resources/template/js/salesoutlet/salesoutletadd.js
浏览文件 @
4056ec42
...
...
@@ -6,9 +6,6 @@ var checkType = "1";//人员选择类型,1.多选;其他。单选
//已经选择的客户信息
var
customerMation
=
{};
//商品信息
var
productMation
=
{};
//根据那一列的值进行变化,默认根据数量
var
showTdByEdit
=
'
rkNum
'
;
//表格的序号
...
...
@@ -350,28 +347,19 @@ layui.config({
//商品选择
$
(
"
body
"
).
on
(
"
click
"
,
"
.chooseProductBtn
"
,
function
(
e
){
var
trId
=
$
(
this
).
parent
().
parent
().
attr
(
"
trcusid
"
);
_openNewWindows
({
url
:
"
../../tpl/material/materialChoose.html
"
,
title
:
"
选择商品
"
,
pageId
:
"
productlist
"
,
area
:
[
'
90vw
'
,
'
90vh
'
],
callBack
:
function
(
refreshCode
){
if
(
refreshCode
==
'
0
'
)
{
//获取表格行号
var
thisRowNum
=
trId
.
replace
(
"
tr
"
,
""
);
//商品赋值
allChooseProduct
[
trId
]
=
productMation
;
//表格商品名称赋值
$
(
"
#materialId
"
+
thisRowNum
.
toString
()).
val
(
allChooseProduct
[
trId
].
productName
+
"
(
"
+
allChooseProduct
[
trId
].
productModel
+
"
)
"
);
//表格单位赋值
$
(
"
#unitId
"
+
thisRowNum
.
toString
()).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
allChooseProduct
[
trId
].
unitList
}));
form
.
render
(
'
select
'
);
//计算价格
calculatedTotalPrice
();
}
else
if
(
refreshCode
==
'
-9999
'
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.operationFailed
"
][
languageType
],
{
icon
:
2
,
time
:
2000
});
}
}});
erpOrderUtil
.
openMaterialChooseChoosePage
(
function
(
chooseProductMation
)
{
//获取表格行号
var
thisRowNum
=
trId
.
replace
(
"
tr
"
,
""
);
//商品赋值
allChooseProduct
[
trId
]
=
chooseProductMation
;
//表格商品名称赋值
$
(
"
#materialId
"
+
thisRowNum
.
toString
()).
val
(
allChooseProduct
[
trId
].
productName
+
"
(
"
+
allChooseProduct
[
trId
].
productModel
+
"
)
"
);
//表格单位赋值
$
(
"
#unitId
"
+
thisRowNum
.
toString
()).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
allChooseProduct
[
trId
].
unitList
}));
form
.
render
(
'
select
'
);
//计算价格
calculatedTotalPrice
();
});
});
/*********************** 商品表格操作 end ****************************/
...
...
This diff is collapsed.
Click to expand it.
erp/src/main/resources/template/js/salesoutlet/salesoutletedit.js
浏览文件 @
4056ec42
...
...
@@ -6,9 +6,6 @@ var checkType = "1";//人员选择类型,1.多选;其他。单选
//已经选择的客户信息
var
customerMation
=
{};
//商品信息
var
productMation
=
{};
//根据那一列的值进行变化,默认根据数量
var
showTdByEdit
=
'
rkNum
'
;
//表格的序号
...
...
@@ -434,28 +431,19 @@ layui.config({
//商品选择
$
(
"
body
"
).
on
(
"
click
"
,
"
.chooseProductBtn
"
,
function
(
e
){
var
trId
=
$
(
this
).
parent
().
parent
().
attr
(
"
trcusid
"
);
_openNewWindows
({
url
:
"
../../tpl/material/materialChoose.html
"
,
title
:
"
选择商品
"
,
pageId
:
"
productlist
"
,
area
:
[
'
90vw
'
,
'
90vh
'
],
callBack
:
function
(
refreshCode
){
if
(
refreshCode
==
'
0
'
)
{
//获取表格行号
var
thisRowNum
=
trId
.
replace
(
"
tr
"
,
""
);
//商品赋值
allChooseProduct
[
trId
]
=
productMation
;
//表格商品名称赋值
$
(
"
#materialId
"
+
thisRowNum
.
toString
()).
val
(
allChooseProduct
[
trId
].
productName
+
"
(
"
+
allChooseProduct
[
trId
].
productModel
+
"
)
"
);
//表格单位赋值
$
(
"
#unitId
"
+
thisRowNum
.
toString
()).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
allChooseProduct
[
trId
].
unitList
}));
form
.
render
(
'
select
'
);
//计算价格
calculatedTotalPrice
();
}
else
if
(
refreshCode
==
'
-9999
'
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.operationFailed
"
][
languageType
],
{
icon
:
2
,
time
:
2000
});
}
}});
erpOrderUtil
.
openMaterialChooseChoosePage
(
function
(
chooseProductMation
)
{
//获取表格行号
var
thisRowNum
=
trId
.
replace
(
"
tr
"
,
""
);
//商品赋值
allChooseProduct
[
trId
]
=
chooseProductMation
;
//表格商品名称赋值
$
(
"
#materialId
"
+
thisRowNum
.
toString
()).
val
(
allChooseProduct
[
trId
].
productName
+
"
(
"
+
allChooseProduct
[
trId
].
productModel
+
"
)
"
);
//表格单位赋值
$
(
"
#unitId
"
+
thisRowNum
.
toString
()).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
allChooseProduct
[
trId
].
unitList
}));
form
.
render
(
'
select
'
);
//计算价格
calculatedTotalPrice
();
});
});
/*********************** 商品表格操作 end ****************************/
...
...
This diff is collapsed.
Click to expand it.
erp/src/main/resources/template/js/salesreturns/salesreturnsadd.js
浏览文件 @
4056ec42
...
...
@@ -6,9 +6,6 @@ var checkType = "1";//人员选择类型,1.多选;其他。单选
//已经选择的客户信息
var
customerMation
=
{};
//商品信息
var
productMation
=
{};
//根据那一列的值进行变化,默认根据数量
var
showTdByEdit
=
'
rkNum
'
;
//表格的序号
...
...
@@ -352,28 +349,19 @@ layui.config({
//商品选择
$
(
"
body
"
).
on
(
"
click
"
,
"
.chooseProductBtn
"
,
function
(
e
){
var
trId
=
$
(
this
).
parent
().
parent
().
attr
(
"
trcusid
"
);
_openNewWindows
({
url
:
"
../../tpl/material/materialChoose.html
"
,
title
:
"
选择商品
"
,
pageId
:
"
productlist
"
,
area
:
[
'
90vw
'
,
'
90vh
'
],
callBack
:
function
(
refreshCode
){
if
(
refreshCode
==
'
0
'
)
{
//获取表格行号
var
thisRowNum
=
trId
.
replace
(
"
tr
"
,
""
);
//商品赋值
allChooseProduct
[
trId
]
=
productMation
;
//表格商品名称赋值
$
(
"
#materialId
"
+
thisRowNum
.
toString
()).
val
(
allChooseProduct
[
trId
].
productName
+
"
(
"
+
allChooseProduct
[
trId
].
productModel
+
"
)
"
);
//表格单位赋值
$
(
"
#unitId
"
+
thisRowNum
.
toString
()).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
allChooseProduct
[
trId
].
unitList
}));
form
.
render
(
'
select
'
);
//计算价格
calculatedTotalPrice
();
}
else
if
(
refreshCode
==
'
-9999
'
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.operationFailed
"
][
languageType
],
{
icon
:
2
,
time
:
2000
});
}
}});
erpOrderUtil
.
openMaterialChooseChoosePage
(
function
(
chooseProductMation
)
{
//获取表格行号
var
thisRowNum
=
trId
.
replace
(
"
tr
"
,
""
);
//商品赋值
allChooseProduct
[
trId
]
=
chooseProductMation
;
//表格商品名称赋值
$
(
"
#materialId
"
+
thisRowNum
.
toString
()).
val
(
allChooseProduct
[
trId
].
productName
+
"
(
"
+
allChooseProduct
[
trId
].
productModel
+
"
)
"
);
//表格单位赋值
$
(
"
#unitId
"
+
thisRowNum
.
toString
()).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
allChooseProduct
[
trId
].
unitList
}));
form
.
render
(
'
select
'
);
//计算价格
calculatedTotalPrice
();
});
});
/*********************** 商品表格操作 end ****************************/
...
...
This diff is collapsed.
Click to expand it.
erp/src/main/resources/template/js/salesreturns/salesreturnsedit.js
浏览文件 @
4056ec42
...
...
@@ -6,9 +6,6 @@ var checkType = "1";//人员选择类型,1.多选;其他。单选
//已经选择的客户信息
var
customerMation
=
{};
//商品信息
var
productMation
=
{};
//根据那一列的值进行变化,默认根据数量
var
showTdByEdit
=
'
rkNum
'
;
//表格的序号
...
...
@@ -434,28 +431,19 @@ layui.config({
//商品选择
$
(
"
body
"
).
on
(
"
click
"
,
"
.chooseProductBtn
"
,
function
(
e
){
var
trId
=
$
(
this
).
parent
().
parent
().
attr
(
"
trcusid
"
);
_openNewWindows
({
url
:
"
../../tpl/material/materialChoose.html
"
,
title
:
"
选择商品
"
,
pageId
:
"
productlist
"
,
area
:
[
'
90vw
'
,
'
90vh
'
],
callBack
:
function
(
refreshCode
){
if
(
refreshCode
==
'
0
'
)
{
//获取表格行号
var
thisRowNum
=
trId
.
replace
(
"
tr
"
,
""
);
//商品赋值
allChooseProduct
[
trId
]
=
productMation
;
//表格商品名称赋值
$
(
"
#materialId
"
+
thisRowNum
.
toString
()).
val
(
allChooseProduct
[
trId
].
productName
+
"
(
"
+
allChooseProduct
[
trId
].
productModel
+
"
)
"
);
//表格单位赋值
$
(
"
#unitId
"
+
thisRowNum
.
toString
()).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
allChooseProduct
[
trId
].
unitList
}));
form
.
render
(
'
select
'
);
//计算价格
calculatedTotalPrice
();
}
else
if
(
refreshCode
==
'
-9999
'
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.operationFailed
"
][
languageType
],
{
icon
:
2
,
time
:
2000
});
}
}});
erpOrderUtil
.
openMaterialChooseChoosePage
(
function
(
chooseProductMation
)
{
//获取表格行号
var
thisRowNum
=
trId
.
replace
(
"
tr
"
,
""
);
//商品赋值
allChooseProduct
[
trId
]
=
chooseProductMation
;
//表格商品名称赋值
$
(
"
#materialId
"
+
thisRowNum
.
toString
()).
val
(
allChooseProduct
[
trId
].
productName
+
"
(
"
+
allChooseProduct
[
trId
].
productModel
+
"
)
"
);
//表格单位赋值
$
(
"
#unitId
"
+
thisRowNum
.
toString
()).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
allChooseProduct
[
trId
].
unitList
}));
form
.
render
(
'
select
'
);
//计算价格
calculatedTotalPrice
();
});
});
/*********************** 商品表格操作 end ****************************/
...
...
This diff is collapsed.
Click to expand it.
erp/src/main/resources/template/js/splitlist/splitlistadd.js
浏览文件 @
4056ec42
//商品信息
var
productMation
=
{};
// 拆分单
layui
.
config
({
...
...
@@ -274,28 +272,19 @@ layui.config({
//商品选择
$
(
"
body
"
).
on
(
"
click
"
,
"
.chooseProductBtn
"
,
function
(
e
){
var
trId
=
$
(
this
).
parent
().
parent
().
attr
(
"
trcusid
"
);
_openNewWindows
({
url
:
"
../../tpl/material/materialChoose.html
"
,
title
:
"
选择商品
"
,
pageId
:
"
productlist
"
,
area
:
[
'
90vw
'
,
'
90vh
'
],
callBack
:
function
(
refreshCode
){
if
(
refreshCode
==
'
0
'
)
{
//获取表格行号
var
thisRowNum
=
trId
.
replace
(
"
tr
"
,
""
);
//商品赋值
allChooseProduct
[
trId
]
=
productMation
;
//表格商品名称赋值
$
(
"
#materialId
"
+
thisRowNum
.
toString
()).
val
(
allChooseProduct
[
trId
].
productName
+
"
(
"
+
allChooseProduct
[
trId
].
productModel
+
"
)
"
);
//表格单位赋值
$
(
"
#unitId
"
+
thisRowNum
.
toString
()).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
allChooseProduct
[
trId
].
unitList
}));
form
.
render
(
'
select
'
);
//计算价格
calculatedTotalPrice
();
}
else
if
(
refreshCode
==
'
-9999
'
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.operationFailed
"
][
languageType
],
{
icon
:
2
,
time
:
2000
});
}
}});
erpOrderUtil
.
openMaterialChooseChoosePage
(
function
(
chooseProductMation
)
{
//获取表格行号
var
thisRowNum
=
trId
.
replace
(
"
tr
"
,
""
);
//商品赋值
allChooseProduct
[
trId
]
=
chooseProductMation
;
//表格商品名称赋值
$
(
"
#materialId
"
+
thisRowNum
.
toString
()).
val
(
allChooseProduct
[
trId
].
productName
+
"
(
"
+
allChooseProduct
[
trId
].
productModel
+
"
)
"
);
//表格单位赋值
$
(
"
#unitId
"
+
thisRowNum
.
toString
()).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
allChooseProduct
[
trId
].
unitList
}));
form
.
render
(
'
select
'
);
//计算价格
calculatedTotalPrice
();
});
});
$
(
"
body
"
).
on
(
"
click
"
,
"
#cancle
"
,
function
()
{
...
...
This diff is collapsed.
Click to expand it.
erp/src/main/resources/template/js/splitlist/splitlistedit.js
浏览文件 @
4056ec42
//商品信息
var
productMation
=
{};
// 拆分单
layui
.
config
({
...
...
@@ -320,28 +318,19 @@ layui.config({
//商品选择
$
(
"
body
"
).
on
(
"
click
"
,
"
.chooseProductBtn
"
,
function
(
e
){
var
trId
=
$
(
this
).
parent
().
parent
().
attr
(
"
trcusid
"
);
_openNewWindows
({
url
:
"
../../tpl/material/materialChoose.html
"
,
title
:
"
选择商品
"
,
pageId
:
"
productlist
"
,
area
:
[
'
90vw
'
,
'
90vh
'
],
callBack
:
function
(
refreshCode
){
if
(
refreshCode
==
'
0
'
)
{
//获取表格行号
var
thisRowNum
=
trId
.
replace
(
"
tr
"
,
""
);
//商品赋值
allChooseProduct
[
trId
]
=
productMation
;
//表格商品名称赋值
$
(
"
#materialId
"
+
thisRowNum
.
toString
()).
val
(
allChooseProduct
[
trId
].
productName
+
"
(
"
+
allChooseProduct
[
trId
].
productModel
+
"
)
"
);
//表格单位赋值
$
(
"
#unitId
"
+
thisRowNum
.
toString
()).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
allChooseProduct
[
trId
].
unitList
}));
form
.
render
(
'
select
'
);
//计算价格
calculatedTotalPrice
();
}
else
if
(
refreshCode
==
'
-9999
'
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.operationFailed
"
][
languageType
],
{
icon
:
2
,
time
:
2000
});
}
}});
erpOrderUtil
.
openMaterialChooseChoosePage
(
function
(
chooseProductMation
)
{
//获取表格行号
var
thisRowNum
=
trId
.
replace
(
"
tr
"
,
""
);
//商品赋值
allChooseProduct
[
trId
]
=
chooseProductMation
;
//表格商品名称赋值
$
(
"
#materialId
"
+
thisRowNum
.
toString
()).
val
(
allChooseProduct
[
trId
].
productName
+
"
(
"
+
allChooseProduct
[
trId
].
productModel
+
"
)
"
);
//表格单位赋值
$
(
"
#unitId
"
+
thisRowNum
.
toString
()).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
allChooseProduct
[
trId
].
unitList
}));
form
.
render
(
'
select
'
);
//计算价格
calculatedTotalPrice
();
});
});
$
(
"
body
"
).
on
(
"
click
"
,
"
#cancle
"
,
function
()
{
...
...
This diff is collapsed.
Click to expand it.
seal-service/src/main/resources/template/js/partsclaim/partsclaimadd.js
浏览文件 @
4056ec42
...
...
@@ -6,9 +6,6 @@ var chooseOrderId = "";
// 已经选择的客户信息
var
customerMation
=
{};
// 商品信息
var
productMation
=
{};
// 配件申领单
layui
.
config
({
base
:
basePath
,
...
...
@@ -276,28 +273,19 @@ layui.config({
// 商品选择
$
(
"
body
"
).
on
(
"
click
"
,
"
.chooseProductBtn
"
,
function
(
e
){
var
trId
=
$
(
this
).
parent
().
parent
().
attr
(
"
trcusid
"
);
_openNewWindows
({
url
:
"
../../tpl/material/materialChoose.html
"
,
title
:
"
选择商品
"
,
pageId
:
"
productlist
"
,
area
:
[
'
90vw
'
,
'
90vh
'
],
callBack
:
function
(
refreshCode
){
if
(
refreshCode
==
'
0
'
)
{
//获取表格行号
var
thisRowNum
=
trId
.
replace
(
"
tr
"
,
""
);
//商品赋值
allChooseProduct
[
trId
]
=
productMation
;
//表格商品名称赋值
$
(
"
#materialId
"
+
thisRowNum
.
toString
()).
val
(
allChooseProduct
[
trId
].
productName
+
"
(
"
+
allChooseProduct
[
trId
].
productModel
+
"
)
"
);
//表格单位赋值
$
(
"
#unitId
"
+
thisRowNum
.
toString
()).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
allChooseProduct
[
trId
].
unitList
}));
form
.
render
(
'
select
'
);
//计算价格
calculatedTotalPrice
();
}
else
if
(
refreshCode
==
'
-9999
'
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.operationFailed
"
][
languageType
],
{
icon
:
2
,
time
:
2000
});
}
}});
erpOrderUtil
.
openMaterialChooseChoosePage
(
function
(
chooseProductMation
)
{
//获取表格行号
var
thisRowNum
=
trId
.
replace
(
"
tr
"
,
""
);
//商品赋值
allChooseProduct
[
trId
]
=
chooseProductMation
;
//表格商品名称赋值
$
(
"
#materialId
"
+
thisRowNum
.
toString
()).
val
(
allChooseProduct
[
trId
].
productName
+
"
(
"
+
allChooseProduct
[
trId
].
productModel
+
"
)
"
);
//表格单位赋值
$
(
"
#unitId
"
+
thisRowNum
.
toString
()).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
allChooseProduct
[
trId
].
unitList
}));
form
.
render
(
'
select
'
);
//计算价格
calculatedTotalPrice
();
});
});
$
(
"
body
"
).
on
(
"
click
"
,
"
#cancle
"
,
function
()
{
...
...
This diff is collapsed.
Click to expand it.
seal-service/src/main/resources/template/js/partsclaim/partsclaimedit.js
浏览文件 @
4056ec42
...
...
@@ -6,9 +6,6 @@ var chooseOrderId = "";
// 已经选择的客户信息
var
customerMation
=
{};
// 商品信息
var
productMation
=
{};
// 配件申领单
layui
.
config
({
base
:
basePath
,
...
...
@@ -334,28 +331,19 @@ layui.config({
// 商品选择
$
(
"
body
"
).
on
(
"
click
"
,
"
.chooseProductBtn
"
,
function
(
e
){
var
trId
=
$
(
this
).
parent
().
parent
().
attr
(
"
trcusid
"
);
_openNewWindows
({
url
:
"
../../tpl/material/materialChoose.html
"
,
title
:
"
选择商品
"
,
pageId
:
"
productlist
"
,
area
:
[
'
90vw
'
,
'
90vh
'
],
callBack
:
function
(
refreshCode
){
if
(
refreshCode
==
'
0
'
)
{
//获取表格行号
var
thisRowNum
=
trId
.
replace
(
"
tr
"
,
""
);
//商品赋值
allChooseProduct
[
trId
]
=
productMation
;
//表格商品名称赋值
$
(
"
#materialId
"
+
thisRowNum
.
toString
()).
val
(
allChooseProduct
[
trId
].
productName
+
"
(
"
+
allChooseProduct
[
trId
].
productModel
+
"
)
"
);
//表格单位赋值
$
(
"
#unitId
"
+
thisRowNum
.
toString
()).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
allChooseProduct
[
trId
].
unitList
}));
form
.
render
(
'
select
'
);
//计算价格
calculatedTotalPrice
();
}
else
if
(
refreshCode
==
'
-9999
'
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.operationFailed
"
][
languageType
],
{
icon
:
2
,
time
:
2000
});
}
}});
erpOrderUtil
.
openMaterialChooseChoosePage
(
function
(
chooseProductMation
)
{
//获取表格行号
var
thisRowNum
=
trId
.
replace
(
"
tr
"
,
""
);
//商品赋值
allChooseProduct
[
trId
]
=
chooseProductMation
;
//表格商品名称赋值
$
(
"
#materialId
"
+
thisRowNum
.
toString
()).
val
(
allChooseProduct
[
trId
].
productName
+
"
(
"
+
allChooseProduct
[
trId
].
productModel
+
"
)
"
);
//表格单位赋值
$
(
"
#unitId
"
+
thisRowNum
.
toString
()).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
allChooseProduct
[
trId
].
unitList
}));
form
.
render
(
'
select
'
);
//计算价格
calculatedTotalPrice
();
});
});
$
(
"
body
"
).
on
(
"
click
"
,
"
#cancle
"
,
function
()
{
...
...
This diff is collapsed.
Click to expand it.
seal-service/src/main/resources/template/js/sealseservice/sealseserviceadd.js
浏览文件 @
4056ec42
...
...
@@ -4,8 +4,6 @@ var chooseOrNotMy = "1";//人员列表中是否包含自己--1.包含;其他
var
chooseOrNotEmail
=
"
2
"
;
//人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
var
checkType
=
"
1
"
;
//人员选择类型,1.多选;其他。单选
var
productMation
=
{};
//产品信息
//工单接收人信息
var
serviceUser
=
{};
...
...
@@ -148,7 +146,7 @@ layui.config({
areaId
:
areaId
,
//区县,可为空
townshipId
:
townshipId
,
//乡镇,可为空
addressDetailed
:
$
(
"
#addressDetailed
"
).
val
(),
//详细地址,不可为空
productId
:
isNull
(
productMation
.
productId
)
?
''
:
p
roductMation
.
productId
,
//产品id,可为空
productId
:
isNull
(
erpOrderUtil
.
chooseProductMation
.
productId
)
?
''
:
erpOrderUtil
.
chooseP
roductMation
.
productId
,
//产品id,可为空
productName
:
$
(
"
#productName
"
).
val
(),
//产品名称,可为空
productNorms
:
$
(
"
#productNorms
"
).
val
(),
//规格型号,可为空
productSerialNum
:
$
(
"
#productSerialNum
"
).
val
(),
//序列号,可为空
...
...
@@ -338,19 +336,10 @@ layui.config({
//产品选择
$
(
"
body
"
).
on
(
"
click
"
,
"
#productNameSel
"
,
function
(
e
){
_openNewWindows
({
url
:
"
../../tpl/material/materialChoose.html
"
,
title
:
"
选择商品
"
,
pageId
:
"
productlist
"
,
area
:
[
'
90vw
'
,
'
90vh
'
],
callBack
:
function
(
refreshCode
){
if
(
refreshCode
==
'
0
'
)
{
$
(
"
#productName
"
).
val
(
productMation
.
productName
);
$
(
"
#productNorms
"
).
val
(
productMation
.
productModel
);
}
else
if
(
refreshCode
==
'
-9999
'
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.operationFailed
"
][
languageType
],
{
icon
:
2
,
time
:
2000
});
}
}});
erpOrderUtil
.
openMaterialChooseChoosePage
(
function
(
chooseProductMation
)
{
$
(
"
#productName
"
).
val
(
chooseProductMation
.
productName
);
$
(
"
#productNorms
"
).
val
(
chooseProductMation
.
productModel
);
});
});
//客户选择
...
...
This diff is collapsed.
Click to expand it.
seal-service/src/main/resources/template/js/sealseservice/sealseserviceedit.js
浏览文件 @
4056ec42
...
...
@@ -3,8 +3,6 @@ var chooseOrNotMy = "1";//人员列表中是否包含自己--1.包含;其他
var
chooseOrNotEmail
=
"
2
"
;
//人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
var
checkType
=
"
1
"
;
//人员选择类型,1.多选;其他。单选
var
productMation
=
{};
//产品信息
//工单接收人信息
var
serviceUser
=
{};
...
...
@@ -36,7 +34,7 @@ layui.config({
ajaxSendLoadBefore
:
function
(
hdb
){
},
ajaxSendAfter
:
function
(
json
){
p
roductMation
.
productId
=
json
.
bean
.
productId
;
erpOrderUtil
.
chooseP
roductMation
.
productId
=
json
.
bean
.
productId
;
textool
.
init
({
eleId
:
'
content
'
,
...
...
@@ -151,7 +149,7 @@ layui.config({
areaId
:
areaId
,
//区县,可为空
townshipId
:
townshipId
,
//乡镇,可为空
addressDetailed
:
$
(
"
#addressDetailed
"
).
val
(),
//详细地址,不可为空
productId
:
isNull
(
productMation
.
productId
)
?
''
:
p
roductMation
.
productId
,
//产品id,可为空
productId
:
isNull
(
erpOrderUtil
.
chooseProductMation
.
productId
)
?
''
:
erpOrderUtil
.
chooseP
roductMation
.
productId
,
//产品id,可为空
productName
:
$
(
"
#productName
"
).
val
(),
//产品名称,可为空
productNorms
:
$
(
"
#productNorms
"
).
val
(),
//规格型号,可为空
productSerialNum
:
$
(
"
#productSerialNum
"
).
val
(),
//序列号,可为空
...
...
@@ -461,19 +459,10 @@ layui.config({
//产品选择
$
(
"
body
"
).
on
(
"
click
"
,
"
#productNameSel
"
,
function
(
e
){
_openNewWindows
({
url
:
"
../../tpl/material/materialChoose.html
"
,
title
:
"
选择商品
"
,
pageId
:
"
productlist
"
,
area
:
[
'
90vw
'
,
'
90vh
'
],
callBack
:
function
(
refreshCode
){
if
(
refreshCode
==
'
0
'
)
{
$
(
"
#productName
"
).
val
(
productMation
.
productName
);
$
(
"
#productNorms
"
).
val
(
productMation
.
productModel
);
}
else
if
(
refreshCode
==
'
-9999
'
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.operationFailed
"
][
languageType
],
{
icon
:
2
,
time
:
2000
});
}
}});
erpOrderUtil
.
openMaterialChooseChoosePage
(
function
(
chooseProductMation
)
{
$
(
"
#productName
"
).
val
(
chooseProductMation
.
productName
);
$
(
"
#productNorms
"
).
val
(
chooseProductMation
.
productModel
);
});
});
//客户选择
...
...
This diff is collapsed.
Click to expand it.
seal-service/src/main/resources/template/js/stateisstayfinishedpro/stateisstayfinished.js
浏览文件 @
4056ec42
//商品信息
var
productMation
=
{};
// 工单完工
layui
.
config
({
base
:
basePath
,
...
...
@@ -346,50 +343,31 @@ layui.config({
// 故障组件选择
$
(
"
body
"
).
on
(
"
click
"
,
"
#faultKeyPartsIdSel
"
,
function
(
e
){
productMation
=
faultKeyParts
;
_openNewWindows
({
url
:
"
../../tpl/material/materialChoose.html
"
,
title
:
"
选择商品
"
,
pageId
:
"
productlist
"
,
area
:
[
'
90vw
'
,
'
90vh
'
],
callBack
:
function
(
refreshCode
){
if
(
refreshCode
==
'
0
'
)
{
faultKeyParts
=
productMation
;
// 重置故障组件信息
$
(
"
#faultKeyPartsId
"
).
val
(
faultKeyParts
.
productName
);
form
.
render
();
}
else
if
(
refreshCode
==
'
-9999
'
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.operationFailed
"
][
languageType
],
{
icon
:
2
,
time
:
2000
});
}
}});
erpOrderUtil
.
openMaterialChooseChoosePage
(
function
(
chooseProductMation
)
{
faultKeyParts
=
chooseProductMation
;
// 重置故障组件信息
$
(
"
#faultKeyPartsId
"
).
val
(
faultKeyParts
.
productName
);
form
.
render
();
});
});
// 商品选择
$
(
"
body
"
).
on
(
"
click
"
,
"
.chooseProductBtn
"
,
function
(
e
){
var
trId
=
$
(
this
).
parent
().
parent
().
attr
(
"
trcusid
"
);
_openNewWindows
({
url
:
"
../../tpl/material/materialChoose.html
"
,
title
:
"
选择商品
"
,
pageId
:
"
productlist
"
,
area
:
[
'
90vw
'
,
'
90vh
'
],
callBack
:
function
(
refreshCode
){
if
(
refreshCode
==
'
0
'
)
{
// 获取表格行号
var
thisRowNum
=
trId
.
replace
(
"
tr
"
,
""
);
// 商品赋值
allChooseProduct
[
trId
]
=
productMation
;
// 表格商品名称赋值
$
(
"
#materialId
"
+
thisRowNum
.
toString
()).
val
(
allChooseProduct
[
trId
].
productName
+
"
(
"
+
allChooseProduct
[
trId
].
productModel
+
"
)
"
);
// 表格单位赋值
$
(
"
#unitId
"
+
thisRowNum
.
toString
()).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
allChooseProduct
[
trId
].
unitList
}));
form
.
render
(
'
select
'
);
// 计算价格
calculatedTotalPrice
();
}
else
if
(
refreshCode
==
'
-9999
'
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.operationFailed
"
][
languageType
],
{
icon
:
2
,
time
:
2000
});
}
}});
erpOrderUtil
.
openMaterialChooseChoosePage
(
function
(
chooseProductMation
)
{
// 获取表格行号
var
thisRowNum
=
trId
.
replace
(
"
tr
"
,
""
);
// 商品赋值
allChooseProduct
[
trId
]
=
chooseProductMation
;
// 表格商品名称赋值
$
(
"
#materialId
"
+
thisRowNum
.
toString
()).
val
(
allChooseProduct
[
trId
].
productName
+
"
(
"
+
allChooseProduct
[
trId
].
productModel
+
"
)
"
);
// 表格单位赋值
$
(
"
#unitId
"
+
thisRowNum
.
toString
()).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
allChooseProduct
[
trId
].
unitList
}));
form
.
render
(
'
select
'
);
// 计算价格
calculatedTotalPrice
();
});
});
$
(
"
body
"
).
on
(
"
click
"
,
"
#cancle
"
,
function
(){
...
...
This diff is collapsed.
Click to expand it.
web/src/main/resources/template/assets/lib/layui/customer/erpOrderUtil.js
浏览文件 @
4056ec42
...
...
@@ -222,4 +222,27 @@ var erpOrderUtil = {
},
async
:
false
});
},
/**
* ERP商品选择对象以及工具函数
*/
productCheckType
:
1
,
// 商品选择类型:1.单选;2.多选
chooseProductMation
:
{},
// 如果productCheckType=1,则为对象;如果productCheckType=2,则为集合
openMaterialChooseChoosePage
:
function
(
callback
)
{
_openNewWindows
({
url
:
"
../../tpl/material/materialChoose.html
"
,
title
:
"
选择商品
"
,
pageId
:
"
productlist
"
,
area
:
[
'
90vw
'
,
'
90vh
'
],
callBack
:
function
(
refreshCode
)
{
if
(
refreshCode
==
'
0
'
)
{
if
(
typeof
(
callback
)
==
"
function
"
)
{
callback
(
erpOrderUtil
.
chooseProductMation
);
}
}
else
if
(
refreshCode
==
'
-9999
'
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.operationFailed
"
][
languageType
],
{
icon
:
2
,
time
:
2000
});
}
}
});
},
};
\ No newline at end of file
This diff is collapsed.
Click to expand it.
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录
新手
引导
客服
返回
顶部