Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Skyeye云
Skyeye
提交
9cc540bd
S
Skyeye
项目概览
Skyeye云
/
Skyeye
通知
1432
Star
162
Fork
130
代码
文件
提交
分支
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看板
提交
9cc540bd
编写于
10月 02, 2022
作者:
Skyeye云
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ERP商品名称属性修改
上级
e6bf3556
变更
51
隐藏空白更改
内联
并排
Showing
51 changed file
with
263 addition
and
263 deletion
+263
-263
erp-produce/src/main/resources/template/js/erpBom/erpBomAdd.js
...roduce/src/main/resources/template/js/erpBom/erpBomAdd.js
+3
-3
erp-produce/src/main/resources/template/js/erpBom/erpBomEdit.js
...oduce/src/main/resources/template/js/erpBom/erpBomEdit.js
+7
-8
erp-produce/src/main/resources/template/js/erpMachin/erpMachinAdd.js
.../src/main/resources/template/js/erpMachin/erpMachinAdd.js
+14
-14
erp-produce/src/main/resources/template/js/erpMachin/erpMachinEdit.js
...src/main/resources/template/js/erpMachin/erpMachinEdit.js
+18
-18
erp-produce/src/main/resources/template/js/erpPick/erpPatchAdd.js
...uce/src/main/resources/template/js/erpPick/erpPatchAdd.js
+4
-4
erp-produce/src/main/resources/template/js/erpPick/erpPatchEdit.js
...ce/src/main/resources/template/js/erpPick/erpPatchEdit.js
+4
-4
erp-produce/src/main/resources/template/js/erpPick/erpRequisitionAdd.js
...c/main/resources/template/js/erpPick/erpRequisitionAdd.js
+4
-4
erp-produce/src/main/resources/template/js/erpPick/erpRequisitionEdit.js
.../main/resources/template/js/erpPick/erpRequisitionEdit.js
+5
-5
erp-produce/src/main/resources/template/js/erpPick/erpReturnAdd.js
...ce/src/main/resources/template/js/erpPick/erpReturnAdd.js
+4
-4
erp-produce/src/main/resources/template/js/erpPick/erpReturnEdit.js
...e/src/main/resources/template/js/erpPick/erpReturnEdit.js
+4
-4
erp-produce/src/main/resources/template/js/erpProduction/erpProductionAdd.js
...n/resources/template/js/erpProduction/erpProductionAdd.js
+12
-12
erp-produce/src/main/resources/template/js/erpProduction/erpProductionEdit.js
.../resources/template/js/erpProduction/erpProductionEdit.js
+17
-17
erp-produce/src/main/resources/template/tpl/erpProduction/erpProductionEdit.html
...sources/template/tpl/erpProduction/erpProductionEdit.html
+5
-5
erp/src/main/resources/template/js/allocation/allocationadd.js
...rc/main/resources/template/js/allocation/allocationadd.js
+3
-3
erp/src/main/resources/template/js/allocation/allocationedit.js
...c/main/resources/template/js/allocation/allocationedit.js
+4
-4
erp/src/main/resources/template/js/assemblysheet/assemblysheetadd.js
...n/resources/template/js/assemblysheet/assemblysheetadd.js
+3
-3
erp/src/main/resources/template/js/assemblysheet/assemblysheetedit.js
.../resources/template/js/assemblysheet/assemblysheetedit.js
+4
-4
erp/src/main/resources/template/js/erpcommon/loadStock.js
erp/src/main/resources/template/js/erpcommon/loadStock.js
+1
-1
erp/src/main/resources/template/js/material/materialChoose.js
...src/main/resources/template/js/material/materialChoose.js
+8
-8
erp/src/main/resources/template/js/otheroutlets/otheroutletsadd.js
...ain/resources/template/js/otheroutlets/otheroutletsadd.js
+3
-3
erp/src/main/resources/template/js/otheroutlets/otheroutletsedit.js
...in/resources/template/js/otheroutlets/otheroutletsedit.js
+4
-4
erp/src/main/resources/template/js/otherwarehous/otherwarehousadd.js
...n/resources/template/js/otherwarehous/otherwarehousadd.js
+3
-3
erp/src/main/resources/template/js/otherwarehous/otherwarehousedit.js
.../resources/template/js/otherwarehous/otherwarehousedit.js
+4
-4
erp/src/main/resources/template/js/purchaseorder/purchaseorderadd.js
...n/resources/template/js/purchaseorder/purchaseorderadd.js
+4
-4
erp/src/main/resources/template/js/purchaseorder/purchaseorderedit.js
.../resources/template/js/purchaseorder/purchaseorderedit.js
+5
-5
erp/src/main/resources/template/js/purchaseorder/purchaseorderpurchase.js
...ources/template/js/purchaseorder/purchaseorderpurchase.js
+4
-4
erp/src/main/resources/template/js/purchaseput/purchaseputadd.js
.../main/resources/template/js/purchaseput/purchaseputadd.js
+3
-3
erp/src/main/resources/template/js/purchaseput/purchaseputedit.js
...main/resources/template/js/purchaseput/purchaseputedit.js
+4
-4
erp/src/main/resources/template/js/purchasereturns/purchasereturnsadd.js
...sources/template/js/purchasereturns/purchasereturnsadd.js
+3
-3
erp/src/main/resources/template/js/purchasereturns/purchasereturnsedit.js
...ources/template/js/purchasereturns/purchasereturnsedit.js
+4
-4
erp/src/main/resources/template/js/retailoutlet/retailoutletadd.js
...ain/resources/template/js/retailoutlet/retailoutletadd.js
+3
-3
erp/src/main/resources/template/js/retailoutlet/retailoutletedit.js
...in/resources/template/js/retailoutlet/retailoutletedit.js
+4
-4
erp/src/main/resources/template/js/retailreturns/retailreturnsadd.js
...n/resources/template/js/retailreturns/retailreturnsadd.js
+3
-3
erp/src/main/resources/template/js/retailreturns/retailreturnsedit.js
.../resources/template/js/retailreturns/retailreturnsedit.js
+4
-4
erp/src/main/resources/template/js/salesorder/salesorderadd.js
...rc/main/resources/template/js/salesorder/salesorderadd.js
+3
-3
erp/src/main/resources/template/js/salesorder/salesorderedit.js
...c/main/resources/template/js/salesorder/salesorderedit.js
+4
-4
erp/src/main/resources/template/js/salesorder/salesorderpurchase.js
...in/resources/template/js/salesorder/salesorderpurchase.js
+3
-3
erp/src/main/resources/template/js/salesoutlet/salesoutletadd.js
.../main/resources/template/js/salesoutlet/salesoutletadd.js
+3
-3
erp/src/main/resources/template/js/salesoutlet/salesoutletedit.js
...main/resources/template/js/salesoutlet/salesoutletedit.js
+4
-4
erp/src/main/resources/template/js/salesreturns/salesreturnsadd.js
...ain/resources/template/js/salesreturns/salesreturnsadd.js
+3
-3
erp/src/main/resources/template/js/salesreturns/salesreturnsedit.js
...in/resources/template/js/salesreturns/salesreturnsedit.js
+4
-4
erp/src/main/resources/template/js/splitlist/splitlistadd.js
erp/src/main/resources/template/js/splitlist/splitlistadd.js
+3
-3
erp/src/main/resources/template/js/splitlist/splitlistedit.js
...src/main/resources/template/js/splitlist/splitlistedit.js
+4
-4
seal-service/src/main/resources/template/js/partsclaim/partsclaimadd.js
...rc/main/resources/template/js/partsclaim/partsclaimadd.js
+12
-12
seal-service/src/main/resources/template/js/partsclaim/partsclaimedit.js
...c/main/resources/template/js/partsclaim/partsclaimedit.js
+20
-19
seal-service/src/main/resources/template/js/sealseservice/sealseserviceadd.js
...n/resources/template/js/sealseservice/sealseserviceadd.js
+3
-3
seal-service/src/main/resources/template/js/sealseservice/sealseserviceedit.js
.../resources/template/js/sealseservice/sealseserviceedit.js
+4
-4
seal-service/src/main/resources/template/js/stateisstayfinishedpro/stateisstayfinished.js
...template/js/stateisstayfinishedpro/stateisstayfinished.js
+10
-10
seal-service/src/main/resources/template/tpl/partsclaim/partsclaimadd.html
...main/resources/template/tpl/partsclaim/partsclaimadd.html
+1
-1
seal-service/src/main/resources/template/tpl/partsclaim/partsclaimedit.html
...ain/resources/template/tpl/partsclaim/partsclaimedit.html
+1
-1
seal-service/src/main/resources/template/tpl/sealseservice/sealseserviceeditTemplate.tpl
.../template/tpl/sealseservice/sealseserviceeditTemplate.tpl
+2
-2
未找到文件。
erp-produce/src/main/resources/template/js/erpBom/erpBomAdd.js
浏览文件 @
9cc540bd
...
@@ -57,7 +57,7 @@ layui.config({
...
@@ -57,7 +57,7 @@ layui.config({
var
params
=
{
var
params
=
{
bomTitle
:
$
(
"
#bomTitle
"
).
val
(),
bomTitle
:
$
(
"
#bomTitle
"
).
val
(),
materialId
:
isNull
(
erpOrderUtil
.
chooseProductMation
.
productId
)
?
''
:
erpOrderUtil
.
chooseProductMation
.
product
Id
,
//商品id
materialId
:
isNull
(
erpOrderUtil
.
chooseProductMation
.
materialId
)
?
''
:
erpOrderUtil
.
chooseProductMation
.
material
Id
,
//商品id
normsId
:
$
(
"
#unitList
"
).
val
(),
normsId
:
$
(
"
#unitList
"
).
val
(),
remark
:
$
(
"
#remark
"
).
val
(),
remark
:
$
(
"
#remark
"
).
val
(),
sealPrice
:
getSealPrice
(
erpOrderUtil
.
chooseProductMation
.
unitList
,
$
(
"
#unitList
"
).
val
()),
sealPrice
:
getSealPrice
(
erpOrderUtil
.
chooseProductMation
.
unitList
,
$
(
"
#unitList
"
).
val
()),
...
@@ -316,8 +316,8 @@ layui.config({
...
@@ -316,8 +316,8 @@ layui.config({
// 商品选择
// 商品选择
$
(
"
body
"
).
on
(
"
click
"
,
"
#productNameSel
"
,
function
(
e
)
{
$
(
"
body
"
).
on
(
"
click
"
,
"
#productNameSel
"
,
function
(
e
)
{
erpOrderUtil
.
openMaterialChooseChoosePage
(
function
(
chooseProductMation
)
{
erpOrderUtil
.
openMaterialChooseChoosePage
(
function
(
chooseProductMation
)
{
$
(
"
#productName
"
).
val
(
chooseProductMation
.
product
Name
);
$
(
"
#productName
"
).
val
(
chooseProductMation
.
material
Name
);
$
(
"
#productModel
"
).
val
(
chooseProductMation
.
product
Model
);
$
(
"
#productModel
"
).
val
(
chooseProductMation
.
material
Model
);
$
(
"
#unitList
"
).
html
(
getDataUseHandlebars
(
selTemplate
,
{
rows
:
chooseProductMation
.
unitList
}));
$
(
"
#unitList
"
).
html
(
getDataUseHandlebars
(
selTemplate
,
{
rows
:
chooseProductMation
.
unitList
}));
form
.
render
(
"
select
"
);
form
.
render
(
"
select
"
);
});
});
...
...
erp-produce/src/main/resources/template/js/erpBom/erpBomEdit.js
浏览文件 @
9cc540bd
...
@@ -20,18 +20,17 @@ layui.config({
...
@@ -20,18 +20,17 @@ layui.config({
var
ztreeNode
=
new
Array
();
var
ztreeNode
=
new
Array
();
//下拉框模板
var
selTemplate
=
getFileContent
(
'
tpl/template/select-option-must.tpl
'
);
var
selTemplate
=
getFileContent
(
'
tpl/template/select-option-must.tpl
'
);
AjaxPostUtil
.
request
({
url
:
flowableBasePath
+
"
erpbom005
"
,
params
:
{
rowId
:
parent
.
rowId
},
type
:
'
json
'
,
method
:
"
GET
"
,
callback
:
function
(
json
)
{
AjaxPostUtil
.
request
({
url
:
flowableBasePath
+
"
erpbom005
"
,
params
:
{
rowId
:
parent
.
rowId
},
type
:
'
json
'
,
method
:
"
GET
"
,
callback
:
function
(
json
)
{
$
(
"
#showForm
"
).
html
(
getDataUseHandlebars
(
$
(
"
#mainHtml
"
).
html
(),
json
));
$
(
"
#showForm
"
).
html
(
getDataUseHandlebars
(
$
(
"
#mainHtml
"
).
html
(),
json
));
textool
.
init
({
eleId
:
'
remark
'
,
maxlength
:
200
});
textool
.
init
({
eleId
:
'
remark
'
,
maxlength
:
200
});
//初始化父件商品信息
//
初始化父件商品信息
erpOrderUtil
.
chooseProductMation
=
{
erpOrderUtil
.
chooseProductMation
=
{
product
Id
:
json
.
bean
.
productId
,
material
Id
:
json
.
bean
.
productId
,
product
Name
:
json
.
bean
.
productName
,
material
Name
:
json
.
bean
.
productName
,
product
Model
:
json
.
bean
.
productModel
,
material
Model
:
json
.
bean
.
productModel
,
unitList
:
json
.
bean
.
unitList
unitList
:
json
.
bean
.
unitList
};
};
...
@@ -79,7 +78,7 @@ layui.config({
...
@@ -79,7 +78,7 @@ layui.config({
var
params
=
{
var
params
=
{
bomTitle
:
$
(
"
#bomTitle
"
).
val
(),
bomTitle
:
$
(
"
#bomTitle
"
).
val
(),
materialId
:
isNull
(
erpOrderUtil
.
chooseProductMation
.
productId
)
?
''
:
erpOrderUtil
.
chooseProductMation
.
product
Id
,
//商品id
materialId
:
isNull
(
erpOrderUtil
.
chooseProductMation
.
materialId
)
?
''
:
erpOrderUtil
.
chooseProductMation
.
material
Id
,
//商品id
normsId
:
$
(
"
#unitList
"
).
val
(),
normsId
:
$
(
"
#unitList
"
).
val
(),
remark
:
$
(
"
#remark
"
).
val
(),
remark
:
$
(
"
#remark
"
).
val
(),
sealPrice
:
getSealPrice
(
erpOrderUtil
.
chooseProductMation
.
unitList
,
$
(
"
#unitList
"
).
val
()),
sealPrice
:
getSealPrice
(
erpOrderUtil
.
chooseProductMation
.
unitList
,
$
(
"
#unitList
"
).
val
()),
...
@@ -335,8 +334,8 @@ layui.config({
...
@@ -335,8 +334,8 @@ layui.config({
// 商品选择
// 商品选择
$
(
"
body
"
).
on
(
"
click
"
,
"
#productNameSel
"
,
function
(
e
)
{
$
(
"
body
"
).
on
(
"
click
"
,
"
#productNameSel
"
,
function
(
e
)
{
erpOrderUtil
.
openMaterialChooseChoosePage
(
function
(
chooseProductMation
)
{
erpOrderUtil
.
openMaterialChooseChoosePage
(
function
(
chooseProductMation
)
{
$
(
"
#productName
"
).
val
(
chooseProductMation
.
product
Name
);
$
(
"
#productName
"
).
val
(
chooseProductMation
.
material
Name
);
$
(
"
#productModel
"
).
val
(
chooseProductMation
.
product
Model
);
$
(
"
#productModel
"
).
val
(
chooseProductMation
.
material
Model
);
$
(
"
#unitList
"
).
html
(
getDataUseHandlebars
(
selTemplate
,
{
rows
:
chooseProductMation
.
unitList
}));
$
(
"
#unitList
"
).
html
(
getDataUseHandlebars
(
selTemplate
,
{
rows
:
chooseProductMation
.
unitList
}));
form
.
render
(
"
select
"
);
form
.
render
(
"
select
"
);
});
});
...
...
erp-produce/src/main/resources/template/js/erpMachin/erpMachinAdd.js
浏览文件 @
9cc540bd
...
@@ -103,14 +103,14 @@ layui.config({
...
@@ -103,14 +103,14 @@ layui.config({
return
false
;
return
false
;
}
}
// 商品对象
// 商品对象
var
product
=
allChooseProduct
[
"
tr
"
+
rowNum
.
toString
()];
var
material
=
allChooseProduct
[
"
tr
"
+
rowNum
.
toString
()];
if
(
inTableDataArrayByAssetarId
(
product
.
product
Id
,
$
(
"
#mUnitId
"
+
rowNum
).
val
(),
tableData
))
{
if
(
inTableDataArrayByAssetarId
(
material
.
material
Id
,
$
(
"
#mUnitId
"
+
rowNum
).
val
(),
tableData
))
{
winui
.
window
.
msg
(
'
一张单中不允许出现相同单位的商品信息.
'
,
{
icon
:
2
,
time
:
2000
});
winui
.
window
.
msg
(
'
一张单中不允许出现相同单位的商品信息.
'
,
{
icon
:
2
,
time
:
2000
});
noError
=
true
;
noError
=
true
;
return
false
;
return
false
;
}
}
var
row
=
{
var
row
=
{
materialId
:
product
.
product
Id
,
materialId
:
material
.
material
Id
,
mUnitId
:
$
(
"
#mUnitId
"
+
rowNum
).
val
(),
mUnitId
:
$
(
"
#mUnitId
"
+
rowNum
).
val
(),
rkNum
:
rkNum
.
val
(),
rkNum
:
rkNum
.
val
(),
unitPrice
:
$
(
"
#unitPrice
"
+
rowNum
).
val
()
unitPrice
:
$
(
"
#unitPrice
"
+
rowNum
).
val
()
...
@@ -123,7 +123,7 @@ layui.config({
...
@@ -123,7 +123,7 @@ layui.config({
var
params
=
{
var
params
=
{
orderId
:
isNull
(
productionMation
.
id
)
?
''
:
productionMation
.
id
,
orderId
:
isNull
(
productionMation
.
id
)
?
''
:
productionMation
.
id
,
materialId
:
machinPro
.
product
Id
,
materialId
:
machinPro
.
material
Id
,
normsId
:
$
(
"
#unitList
"
).
val
(),
normsId
:
$
(
"
#unitList
"
).
val
(),
departmentId
:
$
(
"
#departmentId
"
).
val
(),
departmentId
:
$
(
"
#departmentId
"
).
val
(),
number
:
$
(
"
#number
"
).
val
(),
number
:
$
(
"
#number
"
).
val
(),
...
@@ -166,8 +166,8 @@ layui.config({
...
@@ -166,8 +166,8 @@ layui.config({
procedureMationList
=
[];
procedureMationList
=
[];
$
(
"
#procedureBody
"
).
html
(
""
);
$
(
"
#procedureBody
"
).
html
(
""
);
//重置成品信息
//重置成品信息
$
(
"
#productName
"
).
val
(
machinPro
.
product
Name
);
$
(
"
#productName
"
).
val
(
machinPro
.
material
Name
);
$
(
"
#productModel
"
).
val
(
machinPro
.
product
Model
);
$
(
"
#productModel
"
).
val
(
machinPro
.
material
Model
);
$
(
"
#unitList
"
).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
machinPro
.
unitList
}));
$
(
"
#unitList
"
).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
machinPro
.
unitList
}));
$
(
"
#number
"
).
val
(
1
);
$
(
"
#number
"
).
val
(
1
);
//重置单据信息
//重置单据信息
...
@@ -249,7 +249,7 @@ layui.config({
...
@@ -249,7 +249,7 @@ layui.config({
//商品赋值
//商品赋值
allChooseProduct
[
trId
]
=
chooseProductMation
;
allChooseProduct
[
trId
]
=
chooseProductMation
;
//表格商品名称赋值
//表格商品名称赋值
$
(
"
#materialId
"
+
thisRowNum
.
toString
()).
val
(
allChooseProduct
[
trId
].
productName
+
"
(
"
+
allChooseProduct
[
trId
].
product
Model
+
"
)
"
);
$
(
"
#materialId
"
+
thisRowNum
.
toString
()).
val
(
allChooseProduct
[
trId
].
materialName
+
"
(
"
+
allChooseProduct
[
trId
].
material
Model
+
"
)
"
);
//表格单位赋值
//表格单位赋值
$
(
"
#mUnitId
"
+
thisRowNum
.
toString
()).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
allChooseProduct
[
trId
].
unitList
}));
$
(
"
#mUnitId
"
+
thisRowNum
.
toString
()).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
allChooseProduct
[
trId
].
unitList
}));
form
.
render
(
'
select
'
);
form
.
render
(
'
select
'
);
...
@@ -267,15 +267,15 @@ layui.config({
...
@@ -267,15 +267,15 @@ layui.config({
area
:
[
'
90vw
'
,
'
90vh
'
],
area
:
[
'
90vw
'
,
'
90vh
'
],
callBack
:
function
(
refreshCode
)
{
callBack
:
function
(
refreshCode
)
{
$
(
"
#productionOrder
"
).
val
(
productionMation
.
defaultNumber
);
$
(
"
#productionOrder
"
).
val
(
productionMation
.
defaultNumber
);
//加工产品信息
//
加工产品信息
machinPro
=
{
machinPro
=
{
product
Id
:
productionMation
.
materialId
,
material
Id
:
productionMation
.
materialId
,
product
Name
:
productionMation
.
materialName
,
material
Name
:
productionMation
.
materialName
,
product
Model
:
productionMation
.
materialModel
,
material
Model
:
productionMation
.
materialModel
,
unitList
:
productionMation
.
unitList
unitList
:
productionMation
.
unitList
};
};
$
(
"
#productName
"
).
val
(
machinPro
.
product
Name
);
$
(
"
#productName
"
).
val
(
machinPro
.
material
Name
);
$
(
"
#productModel
"
).
val
(
machinPro
.
product
Model
);
$
(
"
#productModel
"
).
val
(
machinPro
.
material
Model
);
$
(
"
#unitList
"
).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
machinPro
.
unitList
}));
$
(
"
#unitList
"
).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
machinPro
.
unitList
}));
$
(
"
#unitList
"
).
val
(
productionMation
.
normsId
);
$
(
"
#unitList
"
).
val
(
productionMation
.
normsId
);
$
(
"
#number
"
).
val
(
productionMation
.
number
);
$
(
"
#number
"
).
val
(
productionMation
.
number
);
...
@@ -309,7 +309,7 @@ layui.config({
...
@@ -309,7 +309,7 @@ layui.config({
$
(
"
#mUnitId
"
+
(
rowNum
-
1
)).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
item
.
product
.
unitList
}));
$
(
"
#mUnitId
"
+
(
rowNum
-
1
)).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
item
.
product
.
unitList
}));
$
(
"
#mUnitId
"
+
(
rowNum
-
1
)).
val
(
item
.
normsId
);
$
(
"
#mUnitId
"
+
(
rowNum
-
1
)).
val
(
item
.
normsId
);
//商品回显
//商品回显
$
(
"
#materialId
"
+
(
rowNum
-
1
)).
val
(
item
.
product
.
productName
+
"
(
"
+
item
.
product
.
product
Model
+
"
)
"
);
$
(
"
#materialId
"
+
(
rowNum
-
1
)).
val
(
item
.
product
.
materialName
+
"
(
"
+
item
.
product
.
material
Model
+
"
)
"
);
$
(
"
#currentTock
"
+
(
rowNum
-
1
)).
html
(
item
.
currentTock
);
//库存回显
$
(
"
#currentTock
"
+
(
rowNum
-
1
)).
html
(
item
.
currentTock
);
//库存回显
//所需总数量
//所需总数量
$
(
"
#productionNum
"
+
(
rowNum
-
1
)).
html
(
item
.
productionNum
);
$
(
"
#productionNum
"
+
(
rowNum
-
1
)).
html
(
item
.
productionNum
);
...
...
erp-produce/src/main/resources/template/js/erpMachin/erpMachinEdit.js
浏览文件 @
9cc540bd
...
@@ -59,13 +59,13 @@ layui.config({
...
@@ -59,13 +59,13 @@ layui.config({
}
}
//加工产品信息
//加工产品信息
machinPro
=
{
machinPro
=
{
product
Id
:
data
.
materialId
,
material
Id
:
data
.
materialId
,
product
Name
:
data
.
materialName
,
material
Name
:
data
.
materialName
,
product
Model
:
data
.
materialModel
,
material
Model
:
data
.
materialModel
,
unitList
:
data
.
unitList
unitList
:
data
.
unitList
};
};
$
(
"
#productName
"
).
val
(
machinPro
.
product
Name
);
$
(
"
#productName
"
).
val
(
machinPro
.
material
Name
);
$
(
"
#productModel
"
).
val
(
machinPro
.
product
Model
);
$
(
"
#productModel
"
).
val
(
machinPro
.
material
Model
);
$
(
"
#unitList
"
).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
machinPro
.
unitList
}));
$
(
"
#unitList
"
).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
machinPro
.
unitList
}));
$
(
"
#unitList
"
).
val
(
data
.
normsId
);
$
(
"
#unitList
"
).
val
(
data
.
normsId
);
$
(
"
#number
"
).
val
(
data
.
needNum
);
$
(
"
#number
"
).
val
(
data
.
needNum
);
...
@@ -170,14 +170,14 @@ layui.config({
...
@@ -170,14 +170,14 @@ layui.config({
return
false
;
return
false
;
}
}
//商品对象
//商品对象
var
product
=
allChooseProduct
[
"
tr
"
+
rowNum
.
toString
()];
var
material
=
allChooseProduct
[
"
tr
"
+
rowNum
.
toString
()];
if
(
inTableDataArrayByAssetarId
(
product
.
product
Id
,
$
(
"
#mUnitId
"
+
rowNum
).
val
(),
tableData
))
{
if
(
inTableDataArrayByAssetarId
(
material
.
material
Id
,
$
(
"
#mUnitId
"
+
rowNum
).
val
(),
tableData
))
{
winui
.
window
.
msg
(
'
一张单中不允许出现相同单位的商品信息.
'
,
{
icon
:
2
,
time
:
2000
});
winui
.
window
.
msg
(
'
一张单中不允许出现相同单位的商品信息.
'
,
{
icon
:
2
,
time
:
2000
});
noError
=
true
;
noError
=
true
;
return
false
;
return
false
;
}
}
var
row
=
{
var
row
=
{
materialId
:
product
.
product
Id
,
materialId
:
material
.
material
Id
,
mUnitId
:
$
(
"
#mUnitId
"
+
rowNum
).
val
(),
mUnitId
:
$
(
"
#mUnitId
"
+
rowNum
).
val
(),
rkNum
:
rkNum
.
val
(),
rkNum
:
rkNum
.
val
(),
unitPrice
:
$
(
"
#unitPrice
"
+
rowNum
).
val
()
unitPrice
:
$
(
"
#unitPrice
"
+
rowNum
).
val
()
...
@@ -190,7 +190,7 @@ layui.config({
...
@@ -190,7 +190,7 @@ layui.config({
var
params
=
{
var
params
=
{
orderId
:
isNull
(
productionMation
.
id
)
?
''
:
productionMation
.
id
,
orderId
:
isNull
(
productionMation
.
id
)
?
''
:
productionMation
.
id
,
materialId
:
machinPro
.
product
Id
,
materialId
:
machinPro
.
material
Id
,
normsId
:
$
(
"
#unitList
"
).
val
(),
normsId
:
$
(
"
#unitList
"
).
val
(),
departmentId
:
$
(
"
#departmentId
"
).
val
(),
departmentId
:
$
(
"
#departmentId
"
).
val
(),
number
:
$
(
"
#number
"
).
val
(),
number
:
$
(
"
#number
"
).
val
(),
...
@@ -234,8 +234,8 @@ layui.config({
...
@@ -234,8 +234,8 @@ layui.config({
procedureMationList
=
[];
procedureMationList
=
[];
$
(
"
#procedureBody
"
).
html
(
""
);
$
(
"
#procedureBody
"
).
html
(
""
);
//重置成品信息
//重置成品信息
$
(
"
#productName
"
).
val
(
machinPro
.
product
Name
);
$
(
"
#productName
"
).
val
(
machinPro
.
material
Name
);
$
(
"
#productModel
"
).
val
(
machinPro
.
product
Model
);
$
(
"
#productModel
"
).
val
(
machinPro
.
material
Model
);
$
(
"
#unitList
"
).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
machinPro
.
unitList
}));
$
(
"
#unitList
"
).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
machinPro
.
unitList
}));
$
(
"
#number
"
).
val
(
1
);
$
(
"
#number
"
).
val
(
1
);
//重置单据信息
//重置单据信息
...
@@ -317,7 +317,7 @@ layui.config({
...
@@ -317,7 +317,7 @@ layui.config({
//商品赋值
//商品赋值
allChooseProduct
[
trId
]
=
chooseProductMation
;
allChooseProduct
[
trId
]
=
chooseProductMation
;
//表格商品名称赋值
//表格商品名称赋值
$
(
"
#materialId
"
+
thisRowNum
.
toString
()).
val
(
allChooseProduct
[
trId
].
productName
+
"
(
"
+
allChooseProduct
[
trId
].
product
Model
+
"
)
"
);
$
(
"
#materialId
"
+
thisRowNum
.
toString
()).
val
(
allChooseProduct
[
trId
].
materialName
+
"
(
"
+
allChooseProduct
[
trId
].
material
Model
+
"
)
"
);
//表格单位赋值
//表格单位赋值
$
(
"
#mUnitId
"
+
thisRowNum
.
toString
()).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
allChooseProduct
[
trId
].
unitList
}));
$
(
"
#mUnitId
"
+
thisRowNum
.
toString
()).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
allChooseProduct
[
trId
].
unitList
}));
form
.
render
(
'
select
'
);
form
.
render
(
'
select
'
);
...
@@ -337,13 +337,13 @@ layui.config({
...
@@ -337,13 +337,13 @@ layui.config({
$
(
"
#productionOrder
"
).
val
(
productionMation
.
defaultNumber
);
$
(
"
#productionOrder
"
).
val
(
productionMation
.
defaultNumber
);
//加工产品信息
//加工产品信息
machinPro
=
{
machinPro
=
{
product
Id
:
productionMation
.
materialId
,
material
Id
:
productionMation
.
materialId
,
product
Name
:
productionMation
.
materialName
,
material
Name
:
productionMation
.
materialName
,
product
Model
:
productionMation
.
materialModel
,
material
Model
:
productionMation
.
materialModel
,
unitList
:
productionMation
.
unitList
unitList
:
productionMation
.
unitList
};
};
$
(
"
#productName
"
).
val
(
machinPro
.
product
Name
);
$
(
"
#productName
"
).
val
(
machinPro
.
material
Name
);
$
(
"
#productModel
"
).
val
(
machinPro
.
product
Model
);
$
(
"
#productModel
"
).
val
(
machinPro
.
material
Model
);
$
(
"
#unitList
"
).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
machinPro
.
unitList
}));
$
(
"
#unitList
"
).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
machinPro
.
unitList
}));
$
(
"
#unitList
"
).
val
(
productionMation
.
normsId
);
$
(
"
#unitList
"
).
val
(
productionMation
.
normsId
);
$
(
"
#number
"
).
val
(
productionMation
.
number
);
$
(
"
#number
"
).
val
(
productionMation
.
number
);
...
@@ -377,7 +377,7 @@ layui.config({
...
@@ -377,7 +377,7 @@ layui.config({
$
(
"
#mUnitId
"
+
(
rowNum
-
1
)).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
item
.
product
.
unitList
}));
$
(
"
#mUnitId
"
+
(
rowNum
-
1
)).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
item
.
product
.
unitList
}));
$
(
"
#mUnitId
"
+
(
rowNum
-
1
)).
val
(
item
.
normsId
);
$
(
"
#mUnitId
"
+
(
rowNum
-
1
)).
val
(
item
.
normsId
);
//商品回显
//商品回显
$
(
"
#materialId
"
+
(
rowNum
-
1
)).
val
(
item
.
product
.
productName
+
"
(
"
+
item
.
product
.
product
Model
+
"
)
"
);
$
(
"
#materialId
"
+
(
rowNum
-
1
)).
val
(
item
.
product
.
materialName
+
"
(
"
+
item
.
product
.
material
Model
+
"
)
"
);
$
(
"
#currentTock
"
+
(
rowNum
-
1
)).
html
(
item
.
currentTock
);
//库存回显
$
(
"
#currentTock
"
+
(
rowNum
-
1
)).
html
(
item
.
currentTock
);
//库存回显
//所需总数量
//所需总数量
$
(
"
#productionNum
"
+
(
rowNum
-
1
)).
html
(
item
.
productionNum
);
$
(
"
#productionNum
"
+
(
rowNum
-
1
)).
html
(
item
.
productionNum
);
...
...
erp-produce/src/main/resources/template/js/erpPick/erpPatchAdd.js
浏览文件 @
9cc540bd
...
@@ -90,14 +90,14 @@ layui.config({
...
@@ -90,14 +90,14 @@ layui.config({
return
false
;
return
false
;
}
}
//商品对象
//商品对象
var
product
=
allChooseProduct
[
"
tr
"
+
rowNum
.
toString
()];
var
material
=
allChooseProduct
[
"
tr
"
+
rowNum
.
toString
()];
if
(
inTableDataArrayByAssetarId
(
product
.
product
Id
,
$
(
"
#unitId
"
+
rowNum
).
val
(),
tableData
))
{
if
(
inTableDataArrayByAssetarId
(
material
.
material
Id
,
$
(
"
#unitId
"
+
rowNum
).
val
(),
tableData
))
{
winui
.
window
.
msg
(
'
一张单中不允许出现相同单位的商品信息.
'
,
{
icon
:
2
,
time
:
2000
});
winui
.
window
.
msg
(
'
一张单中不允许出现相同单位的商品信息.
'
,
{
icon
:
2
,
time
:
2000
});
noError
=
true
;
noError
=
true
;
return
false
;
return
false
;
}
}
var
row
=
{
var
row
=
{
materialId
:
product
.
product
Id
,
materialId
:
material
.
material
Id
,
mUnitId
:
$
(
"
#unitId
"
+
rowNum
).
val
(),
mUnitId
:
$
(
"
#unitId
"
+
rowNum
).
val
(),
rkNum
:
rkNum
.
val
(),
rkNum
:
rkNum
.
val
(),
unitPrice
:
$
(
"
#unitPrice
"
+
rowNum
).
val
()
unitPrice
:
$
(
"
#unitPrice
"
+
rowNum
).
val
()
...
@@ -180,7 +180,7 @@ layui.config({
...
@@ -180,7 +180,7 @@ layui.config({
//商品赋值
//商品赋值
allChooseProduct
[
trId
]
=
chooseProductMation
;
allChooseProduct
[
trId
]
=
chooseProductMation
;
//表格商品名称赋值
//表格商品名称赋值
$
(
"
#materialId
"
+
thisRowNum
.
toString
()).
val
(
allChooseProduct
[
trId
].
productName
+
"
(
"
+
allChooseProduct
[
trId
].
product
Model
+
"
)
"
);
$
(
"
#materialId
"
+
thisRowNum
.
toString
()).
val
(
allChooseProduct
[
trId
].
materialName
+
"
(
"
+
allChooseProduct
[
trId
].
material
Model
+
"
)
"
);
//表格单位赋值
//表格单位赋值
$
(
"
#unitId
"
+
thisRowNum
.
toString
()).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
allChooseProduct
[
trId
].
unitList
}));
$
(
"
#unitId
"
+
thisRowNum
.
toString
()).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
allChooseProduct
[
trId
].
unitList
}));
form
.
render
(
'
select
'
);
form
.
render
(
'
select
'
);
...
...
erp-produce/src/main/resources/template/js/erpPick/erpPatchEdit.js
浏览文件 @
9cc540bd
...
@@ -124,14 +124,14 @@ layui.config({
...
@@ -124,14 +124,14 @@ layui.config({
return
false
;
return
false
;
}
}
//商品对象
//商品对象
var
product
=
allChooseProduct
[
"
tr
"
+
rowNum
.
toString
()];
var
material
=
allChooseProduct
[
"
tr
"
+
rowNum
.
toString
()];
if
(
inTableDataArrayByAssetarId
(
product
.
product
Id
,
$
(
"
#unitId
"
+
rowNum
).
val
(),
tableData
))
{
if
(
inTableDataArrayByAssetarId
(
material
.
material
Id
,
$
(
"
#unitId
"
+
rowNum
).
val
(),
tableData
))
{
winui
.
window
.
msg
(
'
一张单中不允许出现相同单位的商品信息.
'
,
{
icon
:
2
,
time
:
2000
});
winui
.
window
.
msg
(
'
一张单中不允许出现相同单位的商品信息.
'
,
{
icon
:
2
,
time
:
2000
});
noError
=
true
;
noError
=
true
;
return
false
;
return
false
;
}
}
var
row
=
{
var
row
=
{
materialId
:
product
.
product
Id
,
materialId
:
material
.
material
Id
,
mUnitId
:
$
(
"
#unitId
"
+
rowNum
).
val
(),
mUnitId
:
$
(
"
#unitId
"
+
rowNum
).
val
(),
rkNum
:
rkNum
.
val
(),
rkNum
:
rkNum
.
val
(),
unitPrice
:
$
(
"
#unitPrice
"
+
rowNum
).
val
()
unitPrice
:
$
(
"
#unitPrice
"
+
rowNum
).
val
()
...
@@ -215,7 +215,7 @@ layui.config({
...
@@ -215,7 +215,7 @@ layui.config({
//商品赋值
//商品赋值
allChooseProduct
[
trId
]
=
chooseProductMation
;
allChooseProduct
[
trId
]
=
chooseProductMation
;
//表格商品名称赋值
//表格商品名称赋值
$
(
"
#materialId
"
+
thisRowNum
.
toString
()).
val
(
allChooseProduct
[
trId
].
productName
+
"
(
"
+
allChooseProduct
[
trId
].
product
Model
+
"
)
"
);
$
(
"
#materialId
"
+
thisRowNum
.
toString
()).
val
(
allChooseProduct
[
trId
].
materialName
+
"
(
"
+
allChooseProduct
[
trId
].
material
Model
+
"
)
"
);
//表格单位赋值
//表格单位赋值
$
(
"
#unitId
"
+
thisRowNum
.
toString
()).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
allChooseProduct
[
trId
].
unitList
}));
$
(
"
#unitId
"
+
thisRowNum
.
toString
()).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
allChooseProduct
[
trId
].
unitList
}));
form
.
render
(
'
select
'
);
form
.
render
(
'
select
'
);
...
...
erp-produce/src/main/resources/template/js/erpPick/erpRequisitionAdd.js
浏览文件 @
9cc540bd
...
@@ -90,14 +90,14 @@ layui.config({
...
@@ -90,14 +90,14 @@ layui.config({
return
false
;
return
false
;
}
}
//商品对象
//商品对象
var
product
=
allChooseProduct
[
"
tr
"
+
rowNum
.
toString
()];
var
material
=
allChooseProduct
[
"
tr
"
+
rowNum
.
toString
()];
if
(
inTableDataArrayByAssetarId
(
product
.
product
Id
,
$
(
"
#unitId
"
+
rowNum
).
val
(),
tableData
))
{
if
(
inTableDataArrayByAssetarId
(
material
.
material
Id
,
$
(
"
#unitId
"
+
rowNum
).
val
(),
tableData
))
{
winui
.
window
.
msg
(
'
一张单中不允许出现相同单位的商品信息.
'
,
{
icon
:
2
,
time
:
2000
});
winui
.
window
.
msg
(
'
一张单中不允许出现相同单位的商品信息.
'
,
{
icon
:
2
,
time
:
2000
});
noError
=
true
;
noError
=
true
;
return
false
;
return
false
;
}
}
var
row
=
{
var
row
=
{
materialId
:
product
.
product
Id
,
materialId
:
material
.
material
Id
,
mUnitId
:
$
(
"
#unitId
"
+
rowNum
).
val
(),
mUnitId
:
$
(
"
#unitId
"
+
rowNum
).
val
(),
rkNum
:
rkNum
.
val
(),
rkNum
:
rkNum
.
val
(),
unitPrice
:
$
(
"
#unitPrice
"
+
rowNum
).
val
()
unitPrice
:
$
(
"
#unitPrice
"
+
rowNum
).
val
()
...
@@ -182,7 +182,7 @@ layui.config({
...
@@ -182,7 +182,7 @@ layui.config({
//商品赋值
//商品赋值
allChooseProduct
[
trId
]
=
chooseProductMation
;
allChooseProduct
[
trId
]
=
chooseProductMation
;
//表格商品名称赋值
//表格商品名称赋值
$
(
"
#materialId
"
+
thisRowNum
.
toString
()).
val
(
allChooseProduct
[
trId
].
productName
+
"
(
"
+
allChooseProduct
[
trId
].
product
Model
+
"
)
"
);
$
(
"
#materialId
"
+
thisRowNum
.
toString
()).
val
(
allChooseProduct
[
trId
].
materialName
+
"
(
"
+
allChooseProduct
[
trId
].
material
Model
+
"
)
"
);
//表格单位赋值
//表格单位赋值
$
(
"
#unitId
"
+
thisRowNum
.
toString
()).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
allChooseProduct
[
trId
].
unitList
}));
$
(
"
#unitId
"
+
thisRowNum
.
toString
()).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
allChooseProduct
[
trId
].
unitList
}));
form
.
render
(
'
select
'
);
form
.
render
(
'
select
'
);
...
...
erp-produce/src/main/resources/template/js/erpPick/erpRequisitionEdit.js
浏览文件 @
9cc540bd
...
@@ -39,7 +39,7 @@ layui.config({
...
@@ -39,7 +39,7 @@ layui.config({
});
});
function
loadData
(){
function
loadData
(){
AjaxPostUtil
.
request
({
url
:
flowableBasePath
+
"
erppick007
"
,
params
:
{
id
:
parent
.
rowId
},
type
:
'
json
'
,
method
:
'
GET
'
,
callback
:
function
(
json
)
{
AjaxPostUtil
.
request
({
url
:
flowableBasePath
+
"
erppick007
"
,
params
:
{
id
:
parent
.
rowId
},
type
:
'
json
'
,
method
:
'
GET
'
,
callback
:
function
(
json
)
{
var
data
=
json
.
bean
;
var
data
=
json
.
bean
;
if
(
!
isNull
(
data
.
machinId
)){
if
(
!
isNull
(
data
.
machinId
)){
$
(
"
#machinOrder
"
).
val
(
data
.
machinNum
);
$
(
"
#machinOrder
"
).
val
(
data
.
machinNum
);
...
@@ -134,14 +134,14 @@ layui.config({
...
@@ -134,14 +134,14 @@ layui.config({
return
false
;
return
false
;
}
}
//商品对象
//商品对象
var
product
=
allChooseProduct
[
"
tr
"
+
rowNum
.
toString
()];
var
material
=
allChooseProduct
[
"
tr
"
+
rowNum
.
toString
()];
if
(
inTableDataArrayByAssetarId
(
product
.
product
Id
,
$
(
"
#unitId
"
+
rowNum
).
val
(),
tableData
))
{
if
(
inTableDataArrayByAssetarId
(
material
.
material
Id
,
$
(
"
#unitId
"
+
rowNum
).
val
(),
tableData
))
{
winui
.
window
.
msg
(
'
一张单中不允许出现相同单位的商品信息.
'
,
{
icon
:
2
,
time
:
2000
});
winui
.
window
.
msg
(
'
一张单中不允许出现相同单位的商品信息.
'
,
{
icon
:
2
,
time
:
2000
});
noError
=
true
;
noError
=
true
;
return
false
;
return
false
;
}
}
var
row
=
{
var
row
=
{
materialId
:
product
.
product
Id
,
materialId
:
material
.
material
Id
,
mUnitId
:
$
(
"
#unitId
"
+
rowNum
).
val
(),
mUnitId
:
$
(
"
#unitId
"
+
rowNum
).
val
(),
rkNum
:
rkNum
.
val
(),
rkNum
:
rkNum
.
val
(),
unitPrice
:
$
(
"
#unitPrice
"
+
rowNum
).
val
()
unitPrice
:
$
(
"
#unitPrice
"
+
rowNum
).
val
()
...
@@ -227,7 +227,7 @@ layui.config({
...
@@ -227,7 +227,7 @@ layui.config({
//商品赋值
//商品赋值
allChooseProduct
[
trId
]
=
chooseProductMation
;
allChooseProduct
[
trId
]
=
chooseProductMation
;
//表格商品名称赋值
//表格商品名称赋值
$
(
"
#materialId
"
+
thisRowNum
.
toString
()).
val
(
allChooseProduct
[
trId
].
productName
+
"
(
"
+
allChooseProduct
[
trId
].
product
Model
+
"
)
"
);
$
(
"
#materialId
"
+
thisRowNum
.
toString
()).
val
(
allChooseProduct
[
trId
].
materialName
+
"
(
"
+
allChooseProduct
[
trId
].
material
Model
+
"
)
"
);
//表格单位赋值
//表格单位赋值
$
(
"
#unitId
"
+
thisRowNum
.
toString
()).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
allChooseProduct
[
trId
].
unitList
}));
$
(
"
#unitId
"
+
thisRowNum
.
toString
()).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
allChooseProduct
[
trId
].
unitList
}));
form
.
render
(
'
select
'
);
form
.
render
(
'
select
'
);
...
...
erp-produce/src/main/resources/template/js/erpPick/erpReturnAdd.js
浏览文件 @
9cc540bd
...
@@ -86,14 +86,14 @@ layui.config({
...
@@ -86,14 +86,14 @@ layui.config({
return
false
;
return
false
;
}
}
//商品对象
//商品对象
var
product
=
allChooseProduct
[
"
tr
"
+
rowNum
.
toString
()];
var
material
=
allChooseProduct
[
"
tr
"
+
rowNum
.
toString
()];
if
(
inTableDataArrayByAssetarId
(
product
.
product
Id
,
$
(
"
#unitId
"
+
rowNum
).
val
(),
tableData
))
{
if
(
inTableDataArrayByAssetarId
(
material
.
material
Id
,
$
(
"
#unitId
"
+
rowNum
).
val
(),
tableData
))
{
winui
.
window
.
msg
(
'
一张单中不允许出现相同单位的商品信息.
'
,
{
icon
:
2
,
time
:
2000
});
winui
.
window
.
msg
(
'
一张单中不允许出现相同单位的商品信息.
'
,
{
icon
:
2
,
time
:
2000
});
noError
=
true
;
noError
=
true
;
return
false
;
return
false
;
}
}
var
row
=
{
var
row
=
{
materialId
:
product
.
product
Id
,
materialId
:
material
.
material
Id
,
mUnitId
:
$
(
"
#unitId
"
+
rowNum
).
val
(),
mUnitId
:
$
(
"
#unitId
"
+
rowNum
).
val
(),
rkNum
:
rkNum
.
val
(),
rkNum
:
rkNum
.
val
(),
unitPrice
:
$
(
"
#unitPrice
"
+
rowNum
).
val
()
unitPrice
:
$
(
"
#unitPrice
"
+
rowNum
).
val
()
...
@@ -174,7 +174,7 @@ layui.config({
...
@@ -174,7 +174,7 @@ layui.config({
//商品赋值
//商品赋值
allChooseProduct
[
trId
]
=
chooseProductMation
;
allChooseProduct
[
trId
]
=
chooseProductMation
;
//表格商品名称赋值
//表格商品名称赋值
$
(
"
#materialId
"
+
thisRowNum
.
toString
()).
val
(
allChooseProduct
[
trId
].
productName
+
"
(
"
+
allChooseProduct
[
trId
].
product
Model
+
"
)
"
);
$
(
"
#materialId
"
+
thisRowNum
.
toString
()).
val
(
allChooseProduct
[
trId
].
materialName
+
"
(
"
+
allChooseProduct
[
trId
].
material
Model
+
"
)
"
);
//表格单位赋值
//表格单位赋值
$
(
"
#unitId
"
+
thisRowNum
.
toString
()).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
allChooseProduct
[
trId
].
unitList
}));
$
(
"
#unitId
"
+
thisRowNum
.
toString
()).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
allChooseProduct
[
trId
].
unitList
}));
form
.
render
(
'
select
'
);
form
.
render
(
'
select
'
);
...
...
erp-produce/src/main/resources/template/js/erpPick/erpReturnEdit.js
浏览文件 @
9cc540bd
...
@@ -115,14 +115,14 @@ layui.config({
...
@@ -115,14 +115,14 @@ layui.config({
return
false
;
return
false
;
}
}
//商品对象
//商品对象
var
product
=
allChooseProduct
[
"
tr
"
+
rowNum
.
toString
()];
var
material
=
allChooseProduct
[
"
tr
"
+
rowNum
.
toString
()];
if
(
inTableDataArrayByAssetarId
(
product
.
product
Id
,
$
(
"
#unitId
"
+
rowNum
).
val
(),
tableData
))
{
if
(
inTableDataArrayByAssetarId
(
material
.
material
Id
,
$
(
"
#unitId
"
+
rowNum
).
val
(),
tableData
))
{
winui
.
window
.
msg
(
'
一张单中不允许出现相同单位的商品信息.
'
,
{
icon
:
2
,
time
:
2000
});
winui
.
window
.
msg
(
'
一张单中不允许出现相同单位的商品信息.
'
,
{
icon
:
2
,
time
:
2000
});
noError
=
true
;
noError
=
true
;
return
false
;
return
false
;
}
}
var
row
=
{
var
row
=
{
materialId
:
product
.
product
Id
,
materialId
:
material
.
material
Id
,
mUnitId
:
$
(
"
#unitId
"
+
rowNum
).
val
(),
mUnitId
:
$
(
"
#unitId
"
+
rowNum
).
val
(),
rkNum
:
rkNum
.
val
(),
rkNum
:
rkNum
.
val
(),
unitPrice
:
$
(
"
#unitPrice
"
+
rowNum
).
val
()
unitPrice
:
$
(
"
#unitPrice
"
+
rowNum
).
val
()
...
@@ -204,7 +204,7 @@ layui.config({
...
@@ -204,7 +204,7 @@ layui.config({
//商品赋值
//商品赋值
allChooseProduct
[
trId
]
=
chooseProductMation
;
allChooseProduct
[
trId
]
=
chooseProductMation
;
//表格商品名称赋值
//表格商品名称赋值
$
(
"
#materialId
"
+
thisRowNum
.
toString
()).
val
(
allChooseProduct
[
trId
].
productName
+
"
(
"
+
allChooseProduct
[
trId
].
product
Model
+
"
)
"
);
$
(
"
#materialId
"
+
thisRowNum
.
toString
()).
val
(
allChooseProduct
[
trId
].
materialName
+
"
(
"
+
allChooseProduct
[
trId
].
material
Model
+
"
)
"
);
//表格单位赋值
//表格单位赋值
$
(
"
#unitId
"
+
thisRowNum
.
toString
()).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
allChooseProduct
[
trId
].
unitList
}));
$
(
"
#unitId
"
+
thisRowNum
.
toString
()).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
allChooseProduct
[
trId
].
unitList
}));
form
.
render
(
'
select
'
);
form
.
render
(
'
select
'
);
...
...
erp-produce/src/main/resources/template/js/erpProduction/erpProductionAdd.js
浏览文件 @
9cc540bd
...
@@ -96,9 +96,9 @@ layui.config({
...
@@ -96,9 +96,9 @@ layui.config({
$
.
each
(
childProList
,
function
(
i
,
item
)
{
$
.
each
(
childProList
,
function
(
i
,
item
)
{
//单位所需数量*生产数量-库存抵扣数量
//单位所需数量*生产数量-库存抵扣数量
var
proposal
=
number
*
parseInt
(
item
.
needNum
)
-
parseInt
(
item
.
currentTock
);
var
proposal
=
number
*
parseInt
(
item
.
needNum
)
-
parseInt
(
item
.
currentTock
);
$
(
"
#proposal
"
+
item
.
product
Id
).
val
(
proposal
<
0
?
0
:
proposal
);
$
(
"
#proposal
"
+
item
.
material
Id
).
val
(
proposal
<
0
?
0
:
proposal
);
//需求数量=单位所需数量*生产数量
//需求数量=单位所需数量*生产数量
$
(
"
#needNum
"
+
item
.
product
Id
).
html
(
number
*
parseInt
(
item
.
needNum
));
$
(
"
#needNum
"
+
item
.
material
Id
).
html
(
number
*
parseInt
(
item
.
needNum
));
});
});
}
}
...
@@ -116,7 +116,7 @@ layui.config({
...
@@ -116,7 +116,7 @@ layui.config({
}
}
var
params
=
{
var
params
=
{
orderId
:
isNull
(
salesOrder
.
orderHeaderId
)
?
''
:
salesOrder
.
orderHeaderId
,
orderId
:
isNull
(
salesOrder
.
orderHeaderId
)
?
''
:
salesOrder
.
orderHeaderId
,
materialId
:
erpOrderUtil
.
chooseProductMation
.
product
Id
,
materialId
:
erpOrderUtil
.
chooseProductMation
.
material
Id
,
normsId
:
$
(
"
#unitList
"
).
val
(),
normsId
:
$
(
"
#unitList
"
).
val
(),
number
:
$
(
"
#number
"
).
val
(),
number
:
$
(
"
#number
"
).
val
(),
planStartDate
:
$
(
"
#planStartDate
"
).
val
(),
planStartDate
:
$
(
"
#planStartDate
"
).
val
(),
...
@@ -132,9 +132,9 @@ layui.config({
...
@@ -132,9 +132,9 @@ layui.config({
var
childList
=
[];
var
childList
=
[];
$
.
each
(
childProList
,
function
(
i
,
item
)
{
$
.
each
(
childProList
,
function
(
i
,
item
)
{
childList
.
push
({
childList
.
push
({
materialId
:
item
.
product
Id
,
materialId
:
item
.
material
Id
,
normsId
:
item
.
normsId
,
normsId
:
item
.
normsId
,
number
:
$
(
"
#proposal
"
+
item
.
product
Id
).
val
(),
number
:
$
(
"
#proposal
"
+
item
.
material
Id
).
val
(),
unitNumber
:
item
.
needNum
,
unitNumber
:
item
.
needNum
,
unitPrice
:
item
.
unitPrice
unitPrice
:
item
.
unitPrice
});
});
...
@@ -190,8 +190,8 @@ layui.config({
...
@@ -190,8 +190,8 @@ layui.config({
// 商品选择
// 商品选择
$
(
"
body
"
).
on
(
"
click
"
,
"
#productNameSel
"
,
function
(
e
)
{
$
(
"
body
"
).
on
(
"
click
"
,
"
#productNameSel
"
,
function
(
e
)
{
erpOrderUtil
.
openMaterialChooseChoosePage
(
function
(
chooseProductMation
)
{
erpOrderUtil
.
openMaterialChooseChoosePage
(
function
(
chooseProductMation
)
{
$
(
"
#materialName
"
).
val
(
chooseProductMation
.
product
Name
);
$
(
"
#materialName
"
).
val
(
chooseProductMation
.
material
Name
);
$
(
"
#materialModel
"
).
val
(
chooseProductMation
.
product
Model
);
$
(
"
#materialModel
"
).
val
(
chooseProductMation
.
material
Model
);
$
(
"
#unitList
"
).
html
(
getDataUseHandlebars
(
selTemplate
,
{
rows
:
chooseProductMation
.
unitList
}));
$
(
"
#unitList
"
).
html
(
getDataUseHandlebars
(
selTemplate
,
{
rows
:
chooseProductMation
.
unitList
}));
//重置单据信息
//重置单据信息
salesOrder
=
{};
salesOrder
=
{};
...
@@ -211,12 +211,12 @@ layui.config({
...
@@ -211,12 +211,12 @@ layui.config({
area
:
[
'
90vw
'
,
'
90vh
'
],
area
:
[
'
90vw
'
,
'
90vh
'
],
callBack
:
function
(
refreshCode
)
{
callBack
:
function
(
refreshCode
)
{
erpOrderUtil
.
chooseProductMation
=
{
erpOrderUtil
.
chooseProductMation
=
{
product
Name
:
salesOrder
.
materialName
,
material
Name
:
salesOrder
.
materialName
,
product
Model
:
salesOrder
.
materialModel
,
material
Model
:
salesOrder
.
materialModel
,
product
Id
:
salesOrder
.
materialId
material
Id
:
salesOrder
.
materialId
};
};
$
(
"
#materialName
"
).
val
(
erpOrderUtil
.
chooseProductMation
.
product
Name
);
$
(
"
#materialName
"
).
val
(
erpOrderUtil
.
chooseProductMation
.
material
Name
);
$
(
"
#materialModel
"
).
val
(
erpOrderUtil
.
chooseProductMation
.
product
Model
);
$
(
"
#materialModel
"
).
val
(
erpOrderUtil
.
chooseProductMation
.
material
Model
);
//加载数量
//加载数量
$
(
"
#number
"
).
val
(
salesOrder
.
operNum
);
$
(
"
#number
"
).
val
(
salesOrder
.
operNum
);
//单号
//单号
...
...
erp-produce/src/main/resources/template/js/erpProduction/erpProductionEdit.js
浏览文件 @
9cc540bd
...
@@ -43,9 +43,9 @@ layui.config({
...
@@ -43,9 +43,9 @@ layui.config({
AjaxPostUtil
.
request
({
url
:
flowableBasePath
+
"
erpproduction003
"
,
params
:
{
id
:
parent
.
rowId
},
type
:
'
json
'
,
method
:
"
GET
"
,
callback
:
function
(
json
)
{
AjaxPostUtil
.
request
({
url
:
flowableBasePath
+
"
erpproduction003
"
,
params
:
{
id
:
parent
.
rowId
},
type
:
'
json
'
,
method
:
"
GET
"
,
callback
:
function
(
json
)
{
// 商品信息
// 商品信息
erpOrderUtil
.
chooseProductMation
=
{
erpOrderUtil
.
chooseProductMation
=
{
productId
:
json
.
bean
.
product
Id
,
materialId
:
json
.
bean
.
material
Id
,
product
Name
:
json
.
bean
.
materialName
,
material
Name
:
json
.
bean
.
materialName
,
product
Model
:
json
.
bean
.
materialModel
material
Model
:
json
.
bean
.
materialModel
};
};
$
(
"
#materialName
"
).
val
(
json
.
bean
.
materialName
);
$
(
"
#materialName
"
).
val
(
json
.
bean
.
materialName
);
$
(
"
#materialModel
"
).
val
(
json
.
bean
.
materialModel
);
$
(
"
#materialModel
"
).
val
(
json
.
bean
.
materialModel
);
...
@@ -80,9 +80,9 @@ layui.config({
...
@@ -80,9 +80,9 @@ layui.config({
childProList
=
[].
concat
(
json
.
bean
.
childList
);
childProList
=
[].
concat
(
json
.
bean
.
childList
);
$
(
"
#tBody
"
).
html
(
getDataUseHandlebars
(
$
(
"
#tableBody
"
).
html
(),
{
rows
:
childProList
}));
$
(
"
#tBody
"
).
html
(
getDataUseHandlebars
(
$
(
"
#tableBody
"
).
html
(),
{
rows
:
childProList
}));
$
.
each
(
childProList
,
function
(
i
,
item
)
{
$
.
each
(
childProList
,
function
(
i
,
item
)
{
$
(
"
#proposal
"
+
item
.
product
Id
).
val
(
item
.
number
);
$
(
"
#proposal
"
+
item
.
material
Id
).
val
(
item
.
number
);
//需求数量=生产数量*单位所需数量
//需求数量=生产数量*单位所需数量
$
(
"
#needNum
"
+
item
.
product
Id
).
html
(
parseInt
(
json
.
bean
.
number
)
*
parseInt
(
item
.
needNum
));
$
(
"
#needNum
"
+
item
.
material
Id
).
html
(
parseInt
(
json
.
bean
.
number
)
*
parseInt
(
item
.
needNum
));
});
});
// 工艺路线赋值
// 工艺路线赋值
wayProcedureMation
.
id
=
json
.
bean
.
wayProcedureId
;
wayProcedureMation
.
id
=
json
.
bean
.
wayProcedureId
;
...
@@ -147,9 +147,9 @@ layui.config({
...
@@ -147,9 +147,9 @@ layui.config({
$
.
each
(
childProList
,
function
(
i
,
item
)
{
$
.
each
(
childProList
,
function
(
i
,
item
)
{
//单位所需数量*生产数量-库存抵扣数量
//单位所需数量*生产数量-库存抵扣数量
var
proposal
=
number
*
parseInt
(
item
.
needNum
)
-
parseInt
(
item
.
currentTock
);
var
proposal
=
number
*
parseInt
(
item
.
needNum
)
-
parseInt
(
item
.
currentTock
);
$
(
"
#proposal
"
+
item
.
product
Id
).
val
(
proposal
<
0
?
0
:
proposal
);
$
(
"
#proposal
"
+
item
.
material
Id
).
val
(
proposal
<
0
?
0
:
proposal
);
//需求数量=单位所需数量*生产数量
//需求数量=单位所需数量*生产数量
$
(
"
#needNum
"
+
item
.
product
Id
).
html
(
number
*
parseInt
(
item
.
needNum
));
$
(
"
#needNum
"
+
item
.
material
Id
).
html
(
number
*
parseInt
(
item
.
needNum
));
});
});
}
}
...
@@ -165,7 +165,7 @@ layui.config({
...
@@ -165,7 +165,7 @@ layui.config({
}
}
var
params
=
{
var
params
=
{
orderId
:
isNull
(
salesOrder
.
orderHeaderId
)
?
''
:
salesOrder
.
orderHeaderId
,
orderId
:
isNull
(
salesOrder
.
orderHeaderId
)
?
''
:
salesOrder
.
orderHeaderId
,
materialId
:
erpOrderUtil
.
chooseProductMation
.
product
Id
,
materialId
:
erpOrderUtil
.
chooseProductMation
.
material
Id
,
normsId
:
$
(
"
#unitList
"
).
val
(),
normsId
:
$
(
"
#unitList
"
).
val
(),
number
:
$
(
"
#number
"
).
val
(),
number
:
$
(
"
#number
"
).
val
(),
planStartDate
:
$
(
"
#planStartDate
"
).
val
(),
planStartDate
:
$
(
"
#planStartDate
"
).
val
(),
...
@@ -182,9 +182,9 @@ layui.config({
...
@@ -182,9 +182,9 @@ layui.config({
var
childList
=
[];
var
childList
=
[];
$
.
each
(
childProList
,
function
(
i
,
item
)
{
$
.
each
(
childProList
,
function
(
i
,
item
)
{
childList
.
push
({
childList
.
push
({
materialId
:
item
.
product
Id
,
materialId
:
item
.
material
Id
,
normsId
:
item
.
normsId
,
normsId
:
item
.
normsId
,
number
:
$
(
"
#proposal
"
+
item
.
product
Id
).
val
(),
number
:
$
(
"
#proposal
"
+
item
.
material
Id
).
val
(),
unitNumber
:
item
.
needNum
,
unitNumber
:
item
.
needNum
,
unitPrice
:
item
.
normsPurchasePrice
unitPrice
:
item
.
normsPurchasePrice
});
});
...
@@ -240,8 +240,8 @@ layui.config({
...
@@ -240,8 +240,8 @@ layui.config({
//商品选择
//商品选择
$
(
"
body
"
).
on
(
"
click
"
,
"
#productNameSel
"
,
function
(
e
)
{
$
(
"
body
"
).
on
(
"
click
"
,
"
#productNameSel
"
,
function
(
e
)
{
erpOrderUtil
.
openMaterialChooseChoosePage
(
function
(
chooseProductMation
)
{
erpOrderUtil
.
openMaterialChooseChoosePage
(
function
(
chooseProductMation
)
{
$
(
"
#materialName
"
).
val
(
chooseProductMation
.
product
Name
);
$
(
"
#materialName
"
).
val
(
chooseProductMation
.
material
Name
);
$
(
"
#materialModel
"
).
val
(
chooseProductMation
.
product
Model
);
$
(
"
#materialModel
"
).
val
(
chooseProductMation
.
material
Model
);
$
(
"
#unitList
"
).
html
(
getDataUseHandlebars
(
selTemplate
,
{
rows
:
chooseProductMation
.
unitList
}));
$
(
"
#unitList
"
).
html
(
getDataUseHandlebars
(
selTemplate
,
{
rows
:
chooseProductMation
.
unitList
}));
//重置单据信息
//重置单据信息
salesOrder
=
{};
salesOrder
=
{};
...
@@ -261,12 +261,12 @@ layui.config({
...
@@ -261,12 +261,12 @@ layui.config({
area
:
[
'
90vw
'
,
'
90vh
'
],
area
:
[
'
90vw
'
,
'
90vh
'
],
callBack
:
function
(
refreshCode
)
{
callBack
:
function
(
refreshCode
)
{
erpOrderUtil
.
chooseProductMation
=
{
erpOrderUtil
.
chooseProductMation
=
{
product
Name
:
salesOrder
.
materialName
,
material
Name
:
salesOrder
.
materialName
,
product
Model
:
salesOrder
.
materialModel
,
material
Model
:
salesOrder
.
materialModel
,
product
Id
:
salesOrder
.
materialId
material
Id
:
salesOrder
.
materialId
};
};
$
(
"
#materialName
"
).
val
(
erpOrderUtil
.
chooseProductMation
.
product
Name
);
$
(
"
#materialName
"
).
val
(
erpOrderUtil
.
chooseProductMation
.
material
Name
);
$
(
"
#materialModel
"
).
val
(
erpOrderUtil
.
chooseProductMation
.
product
Model
);
$
(
"
#materialModel
"
).
val
(
erpOrderUtil
.
chooseProductMation
.
material
Model
);
//加载数量
//加载数量
$
(
"
#number
"
).
val
(
salesOrder
.
operNum
);
$
(
"
#number
"
).
val
(
salesOrder
.
operNum
);
//单号
//单号
...
...
erp-produce/src/main/resources/template/tpl/erpProduction/erpProductionEdit.html
浏览文件 @
9cc540bd
...
@@ -141,9 +141,9 @@
...
@@ -141,9 +141,9 @@
<script
type=
"text/html"
id=
"tableBody"
>
<script
type=
"text/html"
id=
"tableBody"
>
{{
#
each
rows
}}
{{
#
each
rows
}}
<
tr
rowid
=
"
{{
product
Id}}
"
>
<
tr
rowid
=
"
{{
material
Id}}
"
>
<
td
id
=
"
name{{
product
Id}}
"
>
{{
materialName
}}
<
/td
>
<
td
id
=
"
name{{
material
Id}}
"
>
{{
materialName
}}
<
/td
>
<
td
id
=
"
model{{
product
Id}}
"
>
{{
materialModel
}}
<
/td
>
<
td
id
=
"
model{{
material
Id}}
"
>
{{
materialModel
}}
<
/td
>
<
td
>
{{
categoryName
}}
<
/td
>
<
td
>
{{
categoryName
}}
<
/td
>
<
td
>
{{
typeName
}}
<
/td
>
<
td
>
{{
typeName
}}
<
/td
>
<
td
>
<
td
>
...
@@ -152,11 +152,11 @@
...
@@ -152,11 +152,11 @@
{{
/
each
}}
{{
/
each
}}
<
/td
>
<
/td
>
<
td
style
=
"
text-align: center;
"
>
{{
needNum
}}{{
unitName
}}
<
/td
>
<
td
style
=
"
text-align: center;
"
>
{{
needNum
}}{{
unitName
}}
<
/td
>
<
td
style
=
"
text-align: center;
"
id
=
"
needNum{{
product
Id}}
"
>
{{
needNum
}}
<
/td
>
<
td
style
=
"
text-align: center;
"
id
=
"
needNum{{
material
Id}}
"
>
{{
needNum
}}
<
/td
>
<
td
>
{{
currentTock
}}
<
/td
>
<
td
>
{{
currentTock
}}
<
/td
>
<
td
>
{{
beWarehousedNum
}}
<
/td
>
<
td
>
{{
beWarehousedNum
}}
<
/td
>
<
td
>
<
td
>
<
input
type
=
"
text
"
id
=
"
proposal{{
productId}}
"
name
=
"
proposal{{product
Id}}
"
win
-
verify
=
"
required|number
"
placeholder
=
"
请输入采购或生产数量
"
class
=
"
layui-input
"
/>
<
input
type
=
"
text
"
id
=
"
proposal{{
materialId}}
"
name
=
"
proposal{{material
Id}}
"
win
-
verify
=
"
required|number
"
placeholder
=
"
请输入采购或生产数量
"
class
=
"
layui-input
"
/>
<
/td
>
<
/td
>
<
/tr
>
<
/tr
>
{{
/
each
}}
{{
/
each
}}
...
...
erp/src/main/resources/template/js/allocation/allocationadd.js
浏览文件 @
9cc540bd
...
@@ -129,13 +129,13 @@ layui.config({
...
@@ -129,13 +129,13 @@ layui.config({
return
false
;
return
false
;
}
}
//商品对象
//商品对象
var
product
=
allChooseProduct
[
"
tr
"
+
thisRowKey
];
var
material
=
allChooseProduct
[
"
tr
"
+
thisRowKey
];
if
(
inTableDataArrayByAssetarId
(
product
.
product
Id
,
item
.
mUnitId
,
tableData
))
{
if
(
inTableDataArrayByAssetarId
(
material
.
material
Id
,
item
.
mUnitId
,
tableData
))
{
winui
.
window
.
msg
(
'
一张单中不允许出现相同单位的商品信息.
'
,
{
icon
:
2
,
time
:
2000
});
winui
.
window
.
msg
(
'
一张单中不允许出现相同单位的商品信息.
'
,
{
icon
:
2
,
time
:
2000
});
noError
=
true
;
noError
=
true
;
return
false
;
return
false
;
}
}
item
[
"
materialId
"
]
=
product
.
product
Id
;
item
[
"
materialId
"
]
=
material
.
material
Id
;
item
[
"
depotId
"
]
=
$
(
"
#depotId
"
).
val
();
item
[
"
depotId
"
]
=
$
(
"
#depotId
"
).
val
();
item
[
"
anotherDepotId
"
]
=
$
(
"
#inDepotId
"
).
val
(),
item
[
"
anotherDepotId
"
]
=
$
(
"
#inDepotId
"
).
val
(),
tableData
.
push
(
item
);
tableData
.
push
(
item
);
...
...
erp/src/main/resources/template/js/allocation/allocationedit.js
浏览文件 @
9cc540bd
...
@@ -59,7 +59,7 @@ layui.config({
...
@@ -59,7 +59,7 @@ layui.config({
"
materialType
"
:
{
"
materialType
"
:
{
"
value
"
:
item
.
mType
"
value
"
:
item
.
mType
},
},
"
materialId
"
:
item
.
product
.
productName
+
"
(
"
+
item
.
product
.
product
Model
+
"
)
"
,
"
materialId
"
:
item
.
product
.
materialName
+
"
(
"
+
item
.
product
.
material
Model
+
"
)
"
,
"
mUnitId
"
:
{
"
mUnitId
"
:
{
"
html
"
:
getDataUseHandlebars
(
selOption
,
{
rows
:
item
.
product
.
unitList
}),
"
html
"
:
getDataUseHandlebars
(
selOption
,
{
rows
:
item
.
product
.
unitList
}),
"
value
"
:
item
.
mUnitId
"
value
"
:
item
.
mUnitId
...
@@ -181,13 +181,13 @@ layui.config({
...
@@ -181,13 +181,13 @@ layui.config({
return
false
;
return
false
;
}
}
//商品对象
//商品对象
var
product
=
allChooseProduct
[
"
tr
"
+
thisRowKey
];
var
material
=
allChooseProduct
[
"
tr
"
+
thisRowKey
];
if
(
inTableDataArrayByAssetarId
(
product
.
product
Id
,
item
.
mUnitId
,
tableData
))
{
if
(
inTableDataArrayByAssetarId
(
material
.
material
Id
,
item
.
mUnitId
,
tableData
))
{
winui
.
window
.
msg
(
'
一张单中不允许出现相同单位的商品信息.
'
,
{
icon
:
2
,
time
:
2000
});
winui
.
window
.
msg
(
'
一张单中不允许出现相同单位的商品信息.
'
,
{
icon
:
2
,
time
:
2000
});
noError
=
true
;
noError
=
true
;
return
false
;
return
false
;
}
}
item
[
"
materialId
"
]
=
product
.
product
Id
;
item
[
"
materialId
"
]
=
material
.
material
Id
;
item
[
"
depotId
"
]
=
$
(
"
#depotId
"
).
val
();
item
[
"
depotId
"
]
=
$
(
"
#depotId
"
).
val
();
item
[
"
anotherDepotId
"
]
=
$
(
"
#inDepotId
"
).
val
(),
item
[
"
anotherDepotId
"
]
=
$
(
"
#inDepotId
"
).
val
(),
tableData
.
push
(
item
);
tableData
.
push
(
item
);
...
...
erp/src/main/resources/template/js/assemblysheet/assemblysheetadd.js
浏览文件 @
9cc540bd
...
@@ -146,13 +146,13 @@ layui.config({
...
@@ -146,13 +146,13 @@ layui.config({
hasSplit
=
true
;
hasSplit
=
true
;
}
}
//商品对象
//商品对象
var
product
=
allChooseProduct
[
"
tr
"
+
thisRowKey
];
var
material
=
allChooseProduct
[
"
tr
"
+
thisRowKey
];
if
(
inTableDataArrayByAssetarId
(
product
.
product
Id
,
item
.
mUnitId
,
tableData
))
{
if
(
inTableDataArrayByAssetarId
(
material
.
material
Id
,
item
.
mUnitId
,
tableData
))
{
winui
.
window
.
msg
(
'
一张单中不允许出现相同单位的商品信息.
'
,
{
icon
:
2
,
time
:
2000
});
winui
.
window
.
msg
(
'
一张单中不允许出现相同单位的商品信息.
'
,
{
icon
:
2
,
time
:
2000
});
noError
=
true
;
noError
=
true
;
return
false
;
return
false
;
}
}
item
[
"
materialId
"
]
=
product
.
product
Id
;
item
[
"
materialId
"
]
=
material
.
material
Id
;
item
[
"
depotId
"
]
=
$
(
"
#depotId
"
).
val
();
item
[
"
depotId
"
]
=
$
(
"
#depotId
"
).
val
();
tableData
.
push
(
item
);
tableData
.
push
(
item
);
});
});
...
...
erp/src/main/resources/template/js/assemblysheet/assemblysheetedit.js
浏览文件 @
9cc540bd
...
@@ -57,7 +57,7 @@ layui.config({
...
@@ -57,7 +57,7 @@ layui.config({
"
materialType
"
:
{
"
materialType
"
:
{
"
value
"
:
item
.
mType
"
value
"
:
item
.
mType
},
},
"
materialId
"
:
item
.
product
.
productName
+
"
(
"
+
item
.
product
.
product
Model
+
"
)
"
,
"
materialId
"
:
item
.
product
.
materialName
+
"
(
"
+
item
.
product
.
material
Model
+
"
)
"
,
"
mUnitId
"
:
{
"
mUnitId
"
:
{
"
html
"
:
getDataUseHandlebars
(
selOption
,
{
rows
:
item
.
product
.
unitList
}),
"
html
"
:
getDataUseHandlebars
(
selOption
,
{
rows
:
item
.
product
.
unitList
}),
"
value
"
:
item
.
mUnitId
"
value
"
:
item
.
mUnitId
...
@@ -199,13 +199,13 @@ layui.config({
...
@@ -199,13 +199,13 @@ layui.config({
hasSplit
=
true
;
hasSplit
=
true
;
}
}
//商品对象
//商品对象
var
product
=
allChooseProduct
[
"
tr
"
+
thisRowKey
];
var
material
=
allChooseProduct
[
"
tr
"
+
thisRowKey
];
if
(
inTableDataArrayByAssetarId
(
product
.
product
Id
,
item
.
mUnitId
,
tableData
))
{
if
(
inTableDataArrayByAssetarId
(
material
.
material
Id
,
item
.
mUnitId
,
tableData
))
{
winui
.
window
.
msg
(
'
一张单中不允许出现相同单位的商品信息.
'
,
{
icon
:
2
,
time
:
2000
});
winui
.
window
.
msg
(
'
一张单中不允许出现相同单位的商品信息.
'
,
{
icon
:
2
,
time
:
2000
});
noError
=
true
;
noError
=
true
;
return
false
;
return
false
;
}
}
item
[
"
materialId
"
]
=
product
.
product
Id
;
item
[
"
materialId
"
]
=
material
.
material
Id
;
item
[
"
depotId
"
]
=
$
(
"
#depotId
"
).
val
();
item
[
"
depotId
"
]
=
$
(
"
#depotId
"
).
val
();
tableData
.
push
(
item
);
tableData
.
push
(
item
);
});
});
...
...
erp/src/main/resources/template/js/erpcommon/loadStock.js
浏览文件 @
9cc540bd
...
@@ -136,7 +136,7 @@ function initChooseProductBtnEnent (form, callback, calcPriceCallback) {
...
@@ -136,7 +136,7 @@ function initChooseProductBtnEnent (form, callback, calcPriceCallback) {
// 获取表格行号
// 获取表格行号
var
thisRowKey
=
trId
.
replace
(
"
tr
"
,
""
);
var
thisRowKey
=
trId
.
replace
(
"
tr
"
,
""
);
// 表格商品名称赋值
// 表格商品名称赋值
$
(
"
#materialId
"
+
thisRowKey
.
toString
()).
val
(
chooseProductMation
.
productName
+
"
(
"
+
chooseProductMation
.
product
Model
+
"
)
"
);
$
(
"
#materialId
"
+
thisRowKey
.
toString
()).
val
(
chooseProductMation
.
materialName
+
"
(
"
+
chooseProductMation
.
material
Model
+
"
)
"
);
// 表格单位赋值
// 表格单位赋值
$
(
"
#mUnitId
"
+
thisRowKey
.
toString
()).
html
(
getDataUseHandlebars
(
selOptionHtml
,
{
rows
:
chooseProductMation
.
unitList
}));
$
(
"
#mUnitId
"
+
thisRowKey
.
toString
()).
html
(
getDataUseHandlebars
(
selOptionHtml
,
{
rows
:
chooseProductMation
.
unitList
}));
form
.
render
(
'
select
'
);
form
.
render
(
'
select
'
);
...
...
erp/src/main/resources/template/js/material/materialChoose.js
浏览文件 @
9cc540bd
...
@@ -86,17 +86,17 @@ layui.config({
...
@@ -86,17 +86,17 @@ layui.config({
//初始化值
//初始化值
var
ids
=
[];
var
ids
=
[];
$
.
each
(
parent
.
erpOrderUtil
.
chooseProductMation
,
function
(
i
,
item
)
{
$
.
each
(
parent
.
erpOrderUtil
.
chooseProductMation
,
function
(
i
,
item
)
{
ids
.
push
(
item
.
product
Id
);
ids
.
push
(
item
.
material
Id
);
});
});
tableCheckBoxUtil
.
setIds
({
tableCheckBoxUtil
.
setIds
({
gridId
:
'
messageTable
'
,
gridId
:
'
messageTable
'
,
fieldName
:
'
product
Id
'
,
fieldName
:
'
material
Id
'
,
ids
:
ids
ids
:
ids
});
});
tableCheckBoxUtil
.
init
({
tableCheckBoxUtil
.
init
({
gridId
:
'
messageTable
'
,
gridId
:
'
messageTable
'
,
filterId
:
'
messageTable
'
,
filterId
:
'
messageTable
'
,
fieldName
:
'
product
Id
'
fieldName
:
'
material
Id
'
});
});
}
}
...
@@ -113,10 +113,10 @@ layui.config({
...
@@ -113,10 +113,10 @@ layui.config({
cols
:
[[
cols
:
[[
{
type
:
checkType
==
'
1
'
?
'
radio
'
:
'
checkbox
'
},
{
type
:
checkType
==
'
1
'
?
'
radio
'
:
'
checkbox
'
},
{
title
:
systemLanguage
[
"
com.skyeye.serialNumber
"
][
languageType
],
type
:
'
numbers
'
},
{
title
:
systemLanguage
[
"
com.skyeye.serialNumber
"
][
languageType
],
type
:
'
numbers
'
},
{
field
:
'
product
Name
'
,
title
:
'
商品名称
'
,
align
:
'
left
'
,
width
:
150
,
templet
:
function
(
d
)
{
{
field
:
'
material
Name
'
,
title
:
'
商品名称
'
,
align
:
'
left
'
,
width
:
150
,
templet
:
function
(
d
)
{
return
'
<a lay-event="details" class="notice-title-click">
'
+
d
.
product
Name
+
'
</a>
'
;
return
'
<a lay-event="details" class="notice-title-click">
'
+
d
.
material
Name
+
'
</a>
'
;
}},
}},
{
field
:
'
product
Model
'
,
title
:
'
型号
'
,
align
:
'
left
'
,
width
:
150
},
{
field
:
'
material
Model
'
,
title
:
'
型号
'
,
align
:
'
left
'
,
width
:
150
},
{
field
:
'
categoryName
'
,
title
:
'
所属类型
'
,
align
:
'
left
'
,
width
:
100
},
{
field
:
'
categoryName
'
,
title
:
'
所属类型
'
,
align
:
'
left
'
,
width
:
100
},
{
field
:
'
typeName
'
,
title
:
'
商品来源
'
,
align
:
'
left
'
,
width
:
100
},
{
field
:
'
typeName
'
,
title
:
'
商品来源
'
,
align
:
'
left
'
,
width
:
100
},
{
field
:
'
createTime
'
,
title
:
systemLanguage
[
"
com.skyeye.createTime
"
][
languageType
],
align
:
'
center
'
,
width
:
150
}
{
field
:
'
createTime
'
,
title
:
systemLanguage
[
"
com.skyeye.createTime
"
][
languageType
],
align
:
'
center
'
,
width
:
150
}
...
@@ -145,7 +145,7 @@ layui.config({
...
@@ -145,7 +145,7 @@ layui.config({
// 多选,设置选中
// 多选,设置选中
tableCheckBoxUtil
.
checkedDefault
({
tableCheckBoxUtil
.
checkedDefault
({
gridId
:
'
messageTable
'
,
gridId
:
'
messageTable
'
,
fieldName
:
'
product
Id
'
fieldName
:
'
material
Id
'
});
});
}
}
...
@@ -169,7 +169,7 @@ layui.config({
...
@@ -169,7 +169,7 @@ layui.config({
// 详情
// 详情
function
details
(
data
)
{
function
details
(
data
)
{
rowId
=
data
.
product
Id
;
rowId
=
data
.
material
Id
;
_openNewWindows
({
_openNewWindows
({
url
:
"
../../tpl/material/materialdetails.html
"
,
url
:
"
../../tpl/material/materialdetails.html
"
,
title
:
systemLanguage
[
"
com.skyeye.detailsPageTitle
"
][
languageType
],
title
:
systemLanguage
[
"
com.skyeye.detailsPageTitle
"
][
languageType
],
...
...
erp/src/main/resources/template/js/otheroutlets/otheroutletsadd.js
浏览文件 @
9cc540bd
...
@@ -137,13 +137,13 @@ layui.config({
...
@@ -137,13 +137,13 @@ layui.config({
return
false
;
return
false
;
}
}
//商品对象
//商品对象
var
product
=
allChooseProduct
[
"
tr
"
+
thisRowKey
];
var
material
=
allChooseProduct
[
"
tr
"
+
thisRowKey
];
if
(
inTableDataArrayByAssetarId
(
product
.
product
Id
,
item
.
mUnitId
,
tableData
))
{
if
(
inTableDataArrayByAssetarId
(
material
.
material
Id
,
item
.
mUnitId
,
tableData
))
{
winui
.
window
.
msg
(
'
一张单中不允许出现相同单位的商品信息.
'
,
{
icon
:
2
,
time
:
2000
});
winui
.
window
.
msg
(
'
一张单中不允许出现相同单位的商品信息.
'
,
{
icon
:
2
,
time
:
2000
});
noError
=
true
;
noError
=
true
;
return
false
;
return
false
;
}
}
item
[
"
materialId
"
]
=
product
.
product
Id
;
item
[
"
materialId
"
]
=
material
.
material
Id
;
item
[
"
depotId
"
]
=
$
(
"
#depotId
"
).
val
();
item
[
"
depotId
"
]
=
$
(
"
#depotId
"
).
val
();
tableData
.
push
(
item
);
tableData
.
push
(
item
);
});
});
...
...
erp/src/main/resources/template/js/otheroutlets/otheroutletsedit.js
浏览文件 @
9cc540bd
...
@@ -78,7 +78,7 @@ layui.config({
...
@@ -78,7 +78,7 @@ layui.config({
$
(
"
#depotId
"
).
val
(
item
.
depotId
);
$
(
"
#depotId
"
).
val
(
item
.
depotId
);
}
}
var
params
=
{
var
params
=
{
"
materialId
"
:
item
.
product
.
productName
+
"
(
"
+
item
.
product
.
product
Model
+
"
)
"
,
"
materialId
"
:
item
.
product
.
materialName
+
"
(
"
+
item
.
product
.
material
Model
+
"
)
"
,
"
mUnitId
"
:
{
"
mUnitId
"
:
{
"
html
"
:
getDataUseHandlebars
(
selOption
,
{
rows
:
item
.
product
.
unitList
}),
"
html
"
:
getDataUseHandlebars
(
selOption
,
{
rows
:
item
.
product
.
unitList
}),
"
value
"
:
item
.
mUnitId
"
value
"
:
item
.
mUnitId
...
@@ -209,13 +209,13 @@ layui.config({
...
@@ -209,13 +209,13 @@ layui.config({
return
false
;
return
false
;
}
}
//商品对象
//商品对象
var
product
=
allChooseProduct
[
"
tr
"
+
thisRowKey
];
var
material
=
allChooseProduct
[
"
tr
"
+
thisRowKey
];
if
(
inTableDataArrayByAssetarId
(
product
.
product
Id
,
item
.
mUnitId
,
tableData
))
{
if
(
inTableDataArrayByAssetarId
(
material
.
material
Id
,
item
.
mUnitId
,
tableData
))
{
winui
.
window
.
msg
(
'
一张单中不允许出现相同单位的商品信息.
'
,
{
icon
:
2
,
time
:
2000
});
winui
.
window
.
msg
(
'
一张单中不允许出现相同单位的商品信息.
'
,
{
icon
:
2
,
time
:
2000
});
noError
=
true
;
noError
=
true
;
return
false
;
return
false
;
}
}
item
[
"
materialId
"
]
=
product
.
product
Id
;
item
[
"
materialId
"
]
=
material
.
material
Id
;
item
[
"
depotId
"
]
=
$
(
"
#depotId
"
).
val
();
item
[
"
depotId
"
]
=
$
(
"
#depotId
"
).
val
();
tableData
.
push
(
item
);
tableData
.
push
(
item
);
});
});
...
...
erp/src/main/resources/template/js/otherwarehous/otherwarehousadd.js
浏览文件 @
9cc540bd
...
@@ -130,13 +130,13 @@ layui.config({
...
@@ -130,13 +130,13 @@ layui.config({
return
false
;
return
false
;
}
}
//商品对象
//商品对象
var
product
=
allChooseProduct
[
"
tr
"
+
thisRowKey
];
var
material
=
allChooseProduct
[
"
tr
"
+
thisRowKey
];
if
(
inTableDataArrayByAssetarId
(
product
.
product
Id
,
item
.
mUnitId
,
tableData
))
{
if
(
inTableDataArrayByAssetarId
(
material
.
material
Id
,
item
.
mUnitId
,
tableData
))
{
winui
.
window
.
msg
(
'
一张单中不允许出现相同单位的商品信息.
'
,
{
icon
:
2
,
time
:
2000
});
winui
.
window
.
msg
(
'
一张单中不允许出现相同单位的商品信息.
'
,
{
icon
:
2
,
time
:
2000
});
noError
=
true
;
noError
=
true
;
return
false
;
return
false
;
}
}
item
[
"
materialId
"
]
=
product
.
product
Id
;
item
[
"
materialId
"
]
=
material
.
material
Id
;
item
[
"
depotId
"
]
=
$
(
"
#depotId
"
).
val
();
item
[
"
depotId
"
]
=
$
(
"
#depotId
"
).
val
();
tableData
.
push
(
item
);
tableData
.
push
(
item
);
});
});
...
...
erp/src/main/resources/template/js/otherwarehous/otherwarehousedit.js
浏览文件 @
9cc540bd
...
@@ -77,7 +77,7 @@ layui.config({
...
@@ -77,7 +77,7 @@ layui.config({
$
(
"
#depotId
"
).
val
(
item
.
depotId
);
$
(
"
#depotId
"
).
val
(
item
.
depotId
);
}
}
var
params
=
{
var
params
=
{
"
materialId
"
:
item
.
product
.
productName
+
"
(
"
+
item
.
product
.
product
Model
+
"
)
"
,
"
materialId
"
:
item
.
product
.
materialName
+
"
(
"
+
item
.
product
.
material
Model
+
"
)
"
,
"
mUnitId
"
:
{
"
mUnitId
"
:
{
"
html
"
:
getDataUseHandlebars
(
selOption
,
{
rows
:
item
.
product
.
unitList
}),
"
html
"
:
getDataUseHandlebars
(
selOption
,
{
rows
:
item
.
product
.
unitList
}),
"
value
"
:
item
.
mUnitId
"
value
"
:
item
.
mUnitId
...
@@ -201,13 +201,13 @@ layui.config({
...
@@ -201,13 +201,13 @@ layui.config({
return
false
;
return
false
;
}
}
//商品对象
//商品对象
var
product
=
allChooseProduct
[
"
tr
"
+
thisRowKey
];
var
material
=
allChooseProduct
[
"
tr
"
+
thisRowKey
];
if
(
inTableDataArrayByAssetarId
(
product
.
product
Id
,
item
.
mUnitId
,
tableData
))
{
if
(
inTableDataArrayByAssetarId
(
material
.
material
Id
,
item
.
mUnitId
,
tableData
))
{
winui
.
window
.
msg
(
'
一张单中不允许出现相同单位的商品信息.
'
,
{
icon
:
2
,
time
:
2000
});
winui
.
window
.
msg
(
'
一张单中不允许出现相同单位的商品信息.
'
,
{
icon
:
2
,
time
:
2000
});
noError
=
true
;
noError
=
true
;
return
false
;
return
false
;
}
}
item
[
"
materialId
"
]
=
product
.
product
Id
;
item
[
"
materialId
"
]
=
material
.
material
Id
;
item
[
"
depotId
"
]
=
$
(
"
#depotId
"
).
val
();
item
[
"
depotId
"
]
=
$
(
"
#depotId
"
).
val
();
tableData
.
push
(
item
);
tableData
.
push
(
item
);
});
});
...
...
erp/src/main/resources/template/js/purchaseorder/purchaseorderadd.js
浏览文件 @
9cc540bd
...
@@ -124,13 +124,13 @@ layui.config({
...
@@ -124,13 +124,13 @@ layui.config({
return
false
;
return
false
;
}
}
//商品对象
//商品对象
var
product
=
allChooseProduct
[
"
tr
"
+
thisRowKey
];
var
material
=
allChooseProduct
[
"
tr
"
+
thisRowKey
];
if
(
inTableDataArrayByAssetarId
(
product
.
product
Id
,
item
.
mUnitId
,
tableData
))
{
if
(
inTableDataArrayByAssetarId
(
material
.
material
Id
,
item
.
mUnitId
,
tableData
))
{
winui
.
window
.
msg
(
'
一张单中不允许出现相同单位的商品信息.
'
,
{
icon
:
2
,
time
:
2000
});
winui
.
window
.
msg
(
'
一张单中不允许出现相同单位的商品信息.
'
,
{
icon
:
2
,
time
:
2000
});
noError
=
true
;
noError
=
true
;
return
false
;
return
false
;
}
}
item
[
"
materialId
"
]
=
product
.
product
Id
;
item
[
"
materialId
"
]
=
material
.
material
Id
;
tableData
.
push
(
item
);
tableData
.
push
(
item
);
});
});
if
(
noError
)
{
if
(
noError
)
{
...
@@ -184,7 +184,7 @@ layui.config({
...
@@ -184,7 +184,7 @@ layui.config({
initTableChooseUtil
.
deleteAllRow
(
'
productList
'
);
initTableChooseUtil
.
deleteAllRow
(
'
productList
'
);
$
.
each
(
productionMation
.
norms
,
function
(
i
,
item
)
{
$
.
each
(
productionMation
.
norms
,
function
(
i
,
item
)
{
var
params
=
{
var
params
=
{
"
materialId
"
:
item
.
product
.
productName
+
"
(
"
+
item
.
product
.
product
Model
+
"
)
"
,
"
materialId
"
:
item
.
product
.
materialName
+
"
(
"
+
item
.
product
.
material
Model
+
"
)
"
,
"
mUnitId
"
:
{
"
mUnitId
"
:
{
"
html
"
:
getDataUseHandlebars
(
selOption
,
{
rows
:
item
.
product
.
unitList
}),
"
html
"
:
getDataUseHandlebars
(
selOption
,
{
rows
:
item
.
product
.
unitList
}),
"
value
"
:
item
.
normsId
"
value
"
:
item
.
normsId
...
...
erp/src/main/resources/template/js/purchaseorder/purchaseorderedit.js
浏览文件 @
9cc540bd
...
@@ -80,7 +80,7 @@ layui.config({
...
@@ -80,7 +80,7 @@ layui.config({
initTableChooseUtil
.
deleteAllRow
(
'
productList
'
);
initTableChooseUtil
.
deleteAllRow
(
'
productList
'
);
$
.
each
(
json
.
bean
.
norms
,
function
(
i
,
item
)
{
$
.
each
(
json
.
bean
.
norms
,
function
(
i
,
item
)
{
var
params
=
{
var
params
=
{
"
materialId
"
:
item
.
product
.
productName
+
"
(
"
+
item
.
product
.
product
Model
+
"
)
"
,
"
materialId
"
:
item
.
product
.
materialName
+
"
(
"
+
item
.
product
.
material
Model
+
"
)
"
,
"
mUnitId
"
:
{
"
mUnitId
"
:
{
"
html
"
:
getDataUseHandlebars
(
selOption
,
{
rows
:
item
.
product
.
unitList
}),
"
html
"
:
getDataUseHandlebars
(
selOption
,
{
rows
:
item
.
product
.
unitList
}),
"
value
"
:
item
.
mUnitId
"
value
"
:
item
.
mUnitId
...
@@ -197,13 +197,13 @@ layui.config({
...
@@ -197,13 +197,13 @@ layui.config({
return
false
;
return
false
;
}
}
//商品对象
//商品对象
var
product
=
allChooseProduct
[
"
tr
"
+
thisRowKey
];
var
material
=
allChooseProduct
[
"
tr
"
+
thisRowKey
];
if
(
inTableDataArrayByAssetarId
(
product
.
product
Id
,
item
.
mUnitId
,
tableData
))
{
if
(
inTableDataArrayByAssetarId
(
material
.
material
Id
,
item
.
mUnitId
,
tableData
))
{
winui
.
window
.
msg
(
'
一张单中不允许出现相同单位的商品信息.
'
,
{
icon
:
2
,
time
:
2000
});
winui
.
window
.
msg
(
'
一张单中不允许出现相同单位的商品信息.
'
,
{
icon
:
2
,
time
:
2000
});
noError
=
true
;
noError
=
true
;
return
false
;
return
false
;
}
}
item
[
"
materialId
"
]
=
product
.
product
Id
;
item
[
"
materialId
"
]
=
material
.
material
Id
;
tableData
.
push
(
item
);
tableData
.
push
(
item
);
});
});
if
(
noError
)
{
if
(
noError
)
{
...
@@ -258,7 +258,7 @@ layui.config({
...
@@ -258,7 +258,7 @@ layui.config({
initTableChooseUtil
.
deleteAllRow
(
'
productList
'
);
initTableChooseUtil
.
deleteAllRow
(
'
productList
'
);
$
.
each
(
productionMation
.
norms
,
function
(
i
,
item
)
{
$
.
each
(
productionMation
.
norms
,
function
(
i
,
item
)
{
var
params
=
{
var
params
=
{
"
materialId
"
:
item
.
product
.
productName
+
"
(
"
+
item
.
product
.
product
Model
+
"
)
"
,
"
materialId
"
:
item
.
product
.
materialName
+
"
(
"
+
item
.
product
.
material
Model
+
"
)
"
,
"
mUnitId
"
:
{
"
mUnitId
"
:
{
"
html
"
:
getDataUseHandlebars
(
selOption
,
{
rows
:
item
.
product
.
unitList
}),
"
html
"
:
getDataUseHandlebars
(
selOption
,
{
rows
:
item
.
product
.
unitList
}),
"
value
"
:
item
.
normsId
"
value
"
:
item
.
normsId
...
...
erp/src/main/resources/template/js/purchaseorder/purchaseorderpurchase.js
浏览文件 @
9cc540bd
...
@@ -93,7 +93,7 @@ layui.config({
...
@@ -93,7 +93,7 @@ layui.config({
initTableChooseUtil
.
deleteAllRow
(
'
productList
'
);
initTableChooseUtil
.
deleteAllRow
(
'
productList
'
);
$
.
each
(
json
.
bean
.
items
,
function
(
i
,
item
)
{
$
.
each
(
json
.
bean
.
items
,
function
(
i
,
item
)
{
var
params
=
{
var
params
=
{
"
materialId
"
:
item
.
product
.
productName
+
"
(
"
+
item
.
product
.
product
Model
+
"
)
"
,
"
materialId
"
:
item
.
product
.
materialName
+
"
(
"
+
item
.
product
.
material
Model
+
"
)
"
,
"
mUnitId
"
:
{
"
mUnitId
"
:
{
"
html
"
:
getDataUseHandlebars
(
selOption
,
{
rows
:
item
.
product
.
unitList
}),
"
html
"
:
getDataUseHandlebars
(
selOption
,
{
rows
:
item
.
product
.
unitList
}),
"
value
"
:
item
.
mUnitId
"
value
"
:
item
.
mUnitId
...
@@ -239,13 +239,13 @@ layui.config({
...
@@ -239,13 +239,13 @@ layui.config({
}
}
//商品对象
//商品对象
var
product
=
allChooseProduct
[
"
tr
"
+
thisRowKey
];
var
material
=
allChooseProduct
[
"
tr
"
+
thisRowKey
];
if
(
inTableDataArrayByAssetarId
(
product
.
product
Id
,
item
.
mUnitId
,
tableData
))
{
if
(
inTableDataArrayByAssetarId
(
material
.
material
Id
,
item
.
mUnitId
,
tableData
))
{
winui
.
window
.
msg
(
'
一张单中不允许出现相同单位的商品信息.
'
,
{
icon
:
2
,
time
:
2000
});
winui
.
window
.
msg
(
'
一张单中不允许出现相同单位的商品信息.
'
,
{
icon
:
2
,
time
:
2000
});
noError
=
true
;
noError
=
true
;
return
false
;
return
false
;
}
}
item
[
"
materialId
"
]
=
product
.
product
Id
;
item
[
"
materialId
"
]
=
material
.
material
Id
;
item
[
"
depotId
"
]
=
$
(
"
#depotId
"
).
val
();
item
[
"
depotId
"
]
=
$
(
"
#depotId
"
).
val
();
tableData
.
push
(
item
);
tableData
.
push
(
item
);
});
});
...
...
erp/src/main/resources/template/js/purchaseput/purchaseputadd.js
浏览文件 @
9cc540bd
...
@@ -151,13 +151,13 @@ layui.config({
...
@@ -151,13 +151,13 @@ layui.config({
return
false
;
return
false
;
}
}
//商品对象
//商品对象
var
product
=
allChooseProduct
[
"
tr
"
+
thisRowKey
];
var
material
=
allChooseProduct
[
"
tr
"
+
thisRowKey
];
if
(
inTableDataArrayByAssetarId
(
product
.
product
Id
,
item
.
mUnitId
,
tableData
))
{
if
(
inTableDataArrayByAssetarId
(
material
.
material
Id
,
item
.
mUnitId
,
tableData
))
{
winui
.
window
.
msg
(
'
一张单中不允许出现相同单位的商品信息.
'
,
{
icon
:
2
,
time
:
2000
});
winui
.
window
.
msg
(
'
一张单中不允许出现相同单位的商品信息.
'
,
{
icon
:
2
,
time
:
2000
});
noError
=
true
;
noError
=
true
;
return
false
;
return
false
;
}
}
item
[
"
materialId
"
]
=
product
.
product
Id
;
item
[
"
materialId
"
]
=
material
.
material
Id
;
item
[
"
depotId
"
]
=
$
(
"
#depotId
"
).
val
();
item
[
"
depotId
"
]
=
$
(
"
#depotId
"
).
val
();
tableData
.
push
(
item
);
tableData
.
push
(
item
);
});
});
...
...
erp/src/main/resources/template/js/purchaseput/purchaseputedit.js
浏览文件 @
9cc540bd
...
@@ -82,7 +82,7 @@ layui.config({
...
@@ -82,7 +82,7 @@ layui.config({
$
(
"
#depotId
"
).
val
(
item
.
depotId
);
$
(
"
#depotId
"
).
val
(
item
.
depotId
);
}
}
var
params
=
{
var
params
=
{
"
materialId
"
:
item
.
product
.
productName
+
"
(
"
+
item
.
product
.
product
Model
+
"
)
"
,
"
materialId
"
:
item
.
product
.
materialName
+
"
(
"
+
item
.
product
.
material
Model
+
"
)
"
,
"
mUnitId
"
:
{
"
mUnitId
"
:
{
"
html
"
:
getDataUseHandlebars
(
selOption
,
{
rows
:
item
.
product
.
unitList
}),
"
html
"
:
getDataUseHandlebars
(
selOption
,
{
rows
:
item
.
product
.
unitList
}),
"
value
"
:
item
.
mUnitId
"
value
"
:
item
.
mUnitId
...
@@ -234,13 +234,13 @@ layui.config({
...
@@ -234,13 +234,13 @@ layui.config({
return
false
;
return
false
;
}
}
//商品对象
//商品对象
var
product
=
allChooseProduct
[
"
tr
"
+
thisRowKey
];
var
material
=
allChooseProduct
[
"
tr
"
+
thisRowKey
];
if
(
inTableDataArrayByAssetarId
(
product
.
product
Id
,
item
.
mUnitId
,
tableData
))
{
if
(
inTableDataArrayByAssetarId
(
material
.
material
Id
,
item
.
mUnitId
,
tableData
))
{
winui
.
window
.
msg
(
'
一张单中不允许出现相同单位的商品信息.
'
,
{
icon
:
2
,
time
:
2000
});
winui
.
window
.
msg
(
'
一张单中不允许出现相同单位的商品信息.
'
,
{
icon
:
2
,
time
:
2000
});
noError
=
true
;
noError
=
true
;
return
false
;
return
false
;
}
}
item
[
"
materialId
"
]
=
product
.
product
Id
;
item
[
"
materialId
"
]
=
material
.
material
Id
;
item
[
"
depotId
"
]
=
$
(
"
#depotId
"
).
val
();
item
[
"
depotId
"
]
=
$
(
"
#depotId
"
).
val
();
tableData
.
push
(
item
);
tableData
.
push
(
item
);
});
});
...
...
erp/src/main/resources/template/js/purchasereturns/purchasereturnsadd.js
浏览文件 @
9cc540bd
...
@@ -155,13 +155,13 @@ layui.config({
...
@@ -155,13 +155,13 @@ layui.config({
return
false
;
return
false
;
}
}
//商品对象
//商品对象
var
product
=
allChooseProduct
[
"
tr
"
+
thisRowKey
];
var
material
=
allChooseProduct
[
"
tr
"
+
thisRowKey
];
if
(
inTableDataArrayByAssetarId
(
product
.
product
Id
,
item
.
mUnitId
,
tableData
))
{
if
(
inTableDataArrayByAssetarId
(
material
.
material
Id
,
item
.
mUnitId
,
tableData
))
{
winui
.
window
.
msg
(
'
一张单中不允许出现相同单位的商品信息.
'
,
{
icon
:
2
,
time
:
2000
});
winui
.
window
.
msg
(
'
一张单中不允许出现相同单位的商品信息.
'
,
{
icon
:
2
,
time
:
2000
});
noError
=
true
;
noError
=
true
;
return
false
;
return
false
;
}
}
item
[
"
materialId
"
]
=
product
.
product
Id
;
item
[
"
materialId
"
]
=
material
.
material
Id
;
item
[
"
depotId
"
]
=
$
(
"
#depotId
"
).
val
();
item
[
"
depotId
"
]
=
$
(
"
#depotId
"
).
val
();
tableData
.
push
(
item
);
tableData
.
push
(
item
);
});
});
...
...
erp/src/main/resources/template/js/purchasereturns/purchasereturnsedit.js
浏览文件 @
9cc540bd
...
@@ -87,7 +87,7 @@ layui.config({
...
@@ -87,7 +87,7 @@ layui.config({
$
(
"
#depotId
"
).
val
(
item
.
depotId
);
$
(
"
#depotId
"
).
val
(
item
.
depotId
);
}
}
var
params
=
{
var
params
=
{
"
materialId
"
:
item
.
product
.
productName
+
"
(
"
+
item
.
product
.
product
Model
+
"
)
"
,
"
materialId
"
:
item
.
product
.
materialName
+
"
(
"
+
item
.
product
.
material
Model
+
"
)
"
,
"
mUnitId
"
:
{
"
mUnitId
"
:
{
"
html
"
:
getDataUseHandlebars
(
selOption
,
{
rows
:
item
.
product
.
unitList
}),
"
html
"
:
getDataUseHandlebars
(
selOption
,
{
rows
:
item
.
product
.
unitList
}),
"
value
"
:
item
.
mUnitId
"
value
"
:
item
.
mUnitId
...
@@ -239,13 +239,13 @@ layui.config({
...
@@ -239,13 +239,13 @@ layui.config({
return
false
;
return
false
;
}
}
//商品对象
//商品对象
var
product
=
allChooseProduct
[
"
tr
"
+
thisRowKey
];
var
material
=
allChooseProduct
[
"
tr
"
+
thisRowKey
];
if
(
inTableDataArrayByAssetarId
(
product
.
product
Id
,
item
.
mUnitId
,
tableData
))
{
if
(
inTableDataArrayByAssetarId
(
material
.
material
Id
,
item
.
mUnitId
,
tableData
))
{
winui
.
window
.
msg
(
'
一张单中不允许出现相同单位的商品信息.
'
,
{
icon
:
2
,
time
:
2000
});
winui
.
window
.
msg
(
'
一张单中不允许出现相同单位的商品信息.
'
,
{
icon
:
2
,
time
:
2000
});
noError
=
true
;
noError
=
true
;
return
false
;
return
false
;
}
}
item
[
"
materialId
"
]
=
product
.
product
Id
;
item
[
"
materialId
"
]
=
material
.
material
Id
;
item
[
"
depotId
"
]
=
$
(
"
#depotId
"
).
val
();
item
[
"
depotId
"
]
=
$
(
"
#depotId
"
).
val
();
tableData
.
push
(
item
);
tableData
.
push
(
item
);
});
});
...
...
erp/src/main/resources/template/js/retailoutlet/retailoutletadd.js
浏览文件 @
9cc540bd
...
@@ -179,13 +179,13 @@ layui.config({
...
@@ -179,13 +179,13 @@ layui.config({
return
false
;
return
false
;
}
}
//商品对象
//商品对象
var
product
=
allChooseProduct
[
"
tr
"
+
thisRowKey
];
var
material
=
allChooseProduct
[
"
tr
"
+
thisRowKey
];
if
(
inTableDataArrayByAssetarId
(
product
.
product
Id
,
item
.
mUnitId
,
tableData
))
{
if
(
inTableDataArrayByAssetarId
(
material
.
material
Id
,
item
.
mUnitId
,
tableData
))
{
winui
.
window
.
msg
(
'
一张单中不允许出现相同单位的商品信息.
'
,
{
icon
:
2
,
time
:
2000
});
winui
.
window
.
msg
(
'
一张单中不允许出现相同单位的商品信息.
'
,
{
icon
:
2
,
time
:
2000
});
noError
=
true
;
noError
=
true
;
return
false
;
return
false
;
}
}
item
[
"
materialId
"
]
=
product
.
product
Id
;
item
[
"
materialId
"
]
=
material
.
material
Id
;
item
[
"
depotId
"
]
=
$
(
"
#depotId
"
).
val
();
item
[
"
depotId
"
]
=
$
(
"
#depotId
"
).
val
();
tableData
.
push
(
item
);
tableData
.
push
(
item
);
});
});
...
...
erp/src/main/resources/template/js/retailoutlet/retailoutletedit.js
浏览文件 @
9cc540bd
...
@@ -79,7 +79,7 @@ layui.config({
...
@@ -79,7 +79,7 @@ layui.config({
$
(
"
#depotId
"
).
val
(
item
.
depotId
);
$
(
"
#depotId
"
).
val
(
item
.
depotId
);
}
}
var
params
=
{
var
params
=
{
"
materialId
"
:
item
.
product
.
productName
+
"
(
"
+
item
.
product
.
product
Model
+
"
)
"
,
"
materialId
"
:
item
.
product
.
materialName
+
"
(
"
+
item
.
product
.
material
Model
+
"
)
"
,
"
mUnitId
"
:
{
"
mUnitId
"
:
{
"
html
"
:
getDataUseHandlebars
(
selOption
,
{
rows
:
item
.
product
.
unitList
}),
"
html
"
:
getDataUseHandlebars
(
selOption
,
{
rows
:
item
.
product
.
unitList
}),
"
value
"
:
item
.
mUnitId
"
value
"
:
item
.
mUnitId
...
@@ -254,13 +254,13 @@ layui.config({
...
@@ -254,13 +254,13 @@ layui.config({
return
false
;
return
false
;
}
}
//商品对象
//商品对象
var
product
=
allChooseProduct
[
"
tr
"
+
thisRowKey
];
var
material
=
allChooseProduct
[
"
tr
"
+
thisRowKey
];
if
(
inTableDataArrayByAssetarId
(
product
.
product
Id
,
item
.
mUnitId
,
tableData
))
{
if
(
inTableDataArrayByAssetarId
(
material
.
material
Id
,
item
.
mUnitId
,
tableData
))
{
winui
.
window
.
msg
(
'
一张单中不允许出现相同单位的商品信息.
'
,
{
icon
:
2
,
time
:
2000
});
winui
.
window
.
msg
(
'
一张单中不允许出现相同单位的商品信息.
'
,
{
icon
:
2
,
time
:
2000
});
noError
=
true
;
noError
=
true
;
return
false
;
return
false
;
}
}
item
[
"
materialId
"
]
=
product
.
product
Id
;
item
[
"
materialId
"
]
=
material
.
material
Id
;
item
[
"
depotId
"
]
=
$
(
"
#depotId
"
).
val
();
item
[
"
depotId
"
]
=
$
(
"
#depotId
"
).
val
();
tableData
.
push
(
item
);
tableData
.
push
(
item
);
});
});
...
...
erp/src/main/resources/template/js/retailreturns/retailreturnsadd.js
浏览文件 @
9cc540bd
...
@@ -179,13 +179,13 @@ layui.config({
...
@@ -179,13 +179,13 @@ layui.config({
return
false
;
return
false
;
}
}
//商品对象
//商品对象
var
product
=
allChooseProduct
[
"
tr
"
+
thisRowKey
];
var
material
=
allChooseProduct
[
"
tr
"
+
thisRowKey
];
if
(
inTableDataArrayByAssetarId
(
product
.
product
Id
,
item
.
mUnitId
,
tableData
))
{
if
(
inTableDataArrayByAssetarId
(
material
.
material
Id
,
item
.
mUnitId
,
tableData
))
{
winui
.
window
.
msg
(
'
一张单中不允许出现相同单位的商品信息.
'
,
{
icon
:
2
,
time
:
2000
});
winui
.
window
.
msg
(
'
一张单中不允许出现相同单位的商品信息.
'
,
{
icon
:
2
,
time
:
2000
});
noError
=
true
;
noError
=
true
;
return
false
;
return
false
;
}
}
item
[
"
materialId
"
]
=
product
.
product
Id
;
item
[
"
materialId
"
]
=
material
.
material
Id
;
item
[
"
depotId
"
]
=
$
(
"
#depotId
"
).
val
();
item
[
"
depotId
"
]
=
$
(
"
#depotId
"
).
val
();
tableData
.
push
(
item
);
tableData
.
push
(
item
);
});
});
...
...
erp/src/main/resources/template/js/retailreturns/retailreturnsedit.js
浏览文件 @
9cc540bd
...
@@ -79,7 +79,7 @@ layui.config({
...
@@ -79,7 +79,7 @@ layui.config({
$
(
"
#depotId
"
).
val
(
item
.
depotId
);
$
(
"
#depotId
"
).
val
(
item
.
depotId
);
}
}
var
params
=
{
var
params
=
{
"
materialId
"
:
item
.
product
.
productName
+
"
(
"
+
item
.
product
.
product
Model
+
"
)
"
,
"
materialId
"
:
item
.
product
.
materialName
+
"
(
"
+
item
.
product
.
material
Model
+
"
)
"
,
"
mUnitId
"
:
{
"
mUnitId
"
:
{
"
html
"
:
getDataUseHandlebars
(
selOption
,
{
rows
:
item
.
product
.
unitList
}),
"
html
"
:
getDataUseHandlebars
(
selOption
,
{
rows
:
item
.
product
.
unitList
}),
"
value
"
:
item
.
mUnitId
"
value
"
:
item
.
mUnitId
...
@@ -254,13 +254,13 @@ layui.config({
...
@@ -254,13 +254,13 @@ layui.config({
return
false
;
return
false
;
}
}
//商品对象
//商品对象
var
product
=
allChooseProduct
[
"
tr
"
+
thisRowKey
];
var
material
=
allChooseProduct
[
"
tr
"
+
thisRowKey
];
if
(
inTableDataArrayByAssetarId
(
product
.
product
Id
,
item
.
mUnitId
,
tableData
))
{
if
(
inTableDataArrayByAssetarId
(
material
.
material
Id
,
item
.
mUnitId
,
tableData
))
{
winui
.
window
.
msg
(
'
一张单中不允许出现相同单位的商品信息.
'
,
{
icon
:
2
,
time
:
2000
});
winui
.
window
.
msg
(
'
一张单中不允许出现相同单位的商品信息.
'
,
{
icon
:
2
,
time
:
2000
});
noError
=
true
;
noError
=
true
;
return
false
;
return
false
;
}
}
item
[
"
materialId
"
]
=
product
.
product
Id
;
item
[
"
materialId
"
]
=
material
.
material
Id
;
item
[
"
depotId
"
]
=
$
(
"
#depotId
"
).
val
();
item
[
"
depotId
"
]
=
$
(
"
#depotId
"
).
val
();
tableData
.
push
(
item
);
tableData
.
push
(
item
);
});
});
...
...
erp/src/main/resources/template/js/salesorder/salesorderadd.js
浏览文件 @
9cc540bd
...
@@ -148,13 +148,13 @@ layui.config({
...
@@ -148,13 +148,13 @@ layui.config({
return
false
;
return
false
;
}
}
//商品对象
//商品对象
var
product
=
allChooseProduct
[
"
tr
"
+
thisRowKey
];
var
material
=
allChooseProduct
[
"
tr
"
+
thisRowKey
];
if
(
inTableDataArrayByAssetarId
(
product
.
product
Id
,
item
.
mUnitId
,
tableData
))
{
if
(
inTableDataArrayByAssetarId
(
material
.
material
Id
,
item
.
mUnitId
,
tableData
))
{
winui
.
window
.
msg
(
'
一张单中不允许出现相同单位的商品信息.
'
,
{
icon
:
2
,
time
:
2000
});
winui
.
window
.
msg
(
'
一张单中不允许出现相同单位的商品信息.
'
,
{
icon
:
2
,
time
:
2000
});
noError
=
true
;
noError
=
true
;
return
false
;
return
false
;
}
}
item
[
"
materialId
"
]
=
product
.
product
Id
;
item
[
"
materialId
"
]
=
material
.
material
Id
;
tableData
.
push
(
item
);
tableData
.
push
(
item
);
});
});
if
(
noError
)
{
if
(
noError
)
{
...
...
erp/src/main/resources/template/js/salesorder/salesorderedit.js
浏览文件 @
9cc540bd
...
@@ -85,7 +85,7 @@ layui.config({
...
@@ -85,7 +85,7 @@ layui.config({
$
(
"
#depotId
"
).
val
(
item
.
depotId
);
$
(
"
#depotId
"
).
val
(
item
.
depotId
);
}
}
var
params
=
{
var
params
=
{
"
materialId
"
:
item
.
product
.
productName
+
"
(
"
+
item
.
product
.
product
Model
+
"
)
"
,
"
materialId
"
:
item
.
product
.
materialName
+
"
(
"
+
item
.
product
.
material
Model
+
"
)
"
,
"
mUnitId
"
:
{
"
mUnitId
"
:
{
"
html
"
:
getDataUseHandlebars
(
selOption
,
{
rows
:
item
.
product
.
unitList
}),
"
html
"
:
getDataUseHandlebars
(
selOption
,
{
rows
:
item
.
product
.
unitList
}),
"
value
"
:
item
.
mUnitId
"
value
"
:
item
.
mUnitId
...
@@ -246,13 +246,13 @@ layui.config({
...
@@ -246,13 +246,13 @@ layui.config({
return
false
;
return
false
;
}
}
//商品对象
//商品对象
var
product
=
allChooseProduct
[
"
tr
"
+
thisRowKey
];
var
material
=
allChooseProduct
[
"
tr
"
+
thisRowKey
];
if
(
inTableDataArrayByAssetarId
(
product
.
product
Id
,
item
.
mUnitId
,
tableData
))
{
if
(
inTableDataArrayByAssetarId
(
material
.
material
Id
,
item
.
mUnitId
,
tableData
))
{
winui
.
window
.
msg
(
'
一张单中不允许出现相同单位的商品信息.
'
,
{
icon
:
2
,
time
:
2000
});
winui
.
window
.
msg
(
'
一张单中不允许出现相同单位的商品信息.
'
,
{
icon
:
2
,
time
:
2000
});
noError
=
true
;
noError
=
true
;
return
false
;
return
false
;
}
}
item
[
"
materialId
"
]
=
product
.
product
Id
;
item
[
"
materialId
"
]
=
material
.
material
Id
;
tableData
.
push
(
item
);
tableData
.
push
(
item
);
});
});
if
(
noError
)
{
if
(
noError
)
{
...
...
erp/src/main/resources/template/js/salesorder/salesorderpurchase.js
浏览文件 @
9cc540bd
...
@@ -259,13 +259,13 @@ layui.config({
...
@@ -259,13 +259,13 @@ layui.config({
}
}
//商品对象
//商品对象
var
product
=
allChooseProduct
[
"
tr
"
+
thisRowKey
];
var
material
=
allChooseProduct
[
"
tr
"
+
thisRowKey
];
if
(
inTableDataArrayByAssetarId
(
product
.
product
Id
,
item
.
mUnitId
,
tableData
))
{
if
(
inTableDataArrayByAssetarId
(
material
.
material
Id
,
item
.
mUnitId
,
tableData
))
{
winui
.
window
.
msg
(
'
一张单中不允许出现相同单位的商品信息.
'
,
{
icon
:
2
,
time
:
2000
});
winui
.
window
.
msg
(
'
一张单中不允许出现相同单位的商品信息.
'
,
{
icon
:
2
,
time
:
2000
});
noError
=
true
;
noError
=
true
;
return
false
;
return
false
;
}
}
item
[
"
materialId
"
]
=
product
.
product
Id
;
item
[
"
materialId
"
]
=
material
.
material
Id
;
item
[
"
depotId
"
]
=
$
(
"
#depotId
"
).
val
();
item
[
"
depotId
"
]
=
$
(
"
#depotId
"
).
val
();
tableData
.
push
(
item
);
tableData
.
push
(
item
);
});
});
...
...
erp/src/main/resources/template/js/salesoutlet/salesoutletadd.js
浏览文件 @
9cc540bd
...
@@ -159,13 +159,13 @@ layui.config({
...
@@ -159,13 +159,13 @@ layui.config({
return
false
;
return
false
;
}
}
//商品对象
//商品对象
var
product
=
allChooseProduct
[
"
tr
"
+
thisRowKey
];
var
material
=
allChooseProduct
[
"
tr
"
+
thisRowKey
];
if
(
inTableDataArrayByAssetarId
(
product
.
product
Id
,
item
.
mUnitId
,
tableData
))
{
if
(
inTableDataArrayByAssetarId
(
material
.
material
Id
,
item
.
mUnitId
,
tableData
))
{
winui
.
window
.
msg
(
'
一张单中不允许出现相同单位的商品信息.
'
,
{
icon
:
2
,
time
:
2000
});
winui
.
window
.
msg
(
'
一张单中不允许出现相同单位的商品信息.
'
,
{
icon
:
2
,
time
:
2000
});
noError
=
true
;
noError
=
true
;
return
false
;
return
false
;
}
}
item
[
"
materialId
"
]
=
product
.
product
Id
;
item
[
"
materialId
"
]
=
material
.
material
Id
;
item
[
"
depotId
"
]
=
$
(
"
#depotId
"
).
val
();
item
[
"
depotId
"
]
=
$
(
"
#depotId
"
).
val
();
tableData
.
push
(
item
);
tableData
.
push
(
item
);
});
});
...
...
erp/src/main/resources/template/js/salesoutlet/salesoutletedit.js
浏览文件 @
9cc540bd
...
@@ -89,7 +89,7 @@ layui.config({
...
@@ -89,7 +89,7 @@ layui.config({
$
(
"
#depotId
"
).
val
(
item
.
depotId
);
$
(
"
#depotId
"
).
val
(
item
.
depotId
);
}
}
var
params
=
{
var
params
=
{
"
materialId
"
:
item
.
product
.
productName
+
"
(
"
+
item
.
product
.
product
Model
+
"
)
"
,
"
materialId
"
:
item
.
product
.
materialName
+
"
(
"
+
item
.
product
.
material
Model
+
"
)
"
,
"
mUnitId
"
:
{
"
mUnitId
"
:
{
"
html
"
:
getDataUseHandlebars
(
selOption
,
{
rows
:
item
.
product
.
unitList
}),
"
html
"
:
getDataUseHandlebars
(
selOption
,
{
rows
:
item
.
product
.
unitList
}),
"
value
"
:
item
.
mUnitId
"
value
"
:
item
.
mUnitId
...
@@ -255,13 +255,13 @@ layui.config({
...
@@ -255,13 +255,13 @@ layui.config({
return
false
;
return
false
;
}
}
//商品对象
//商品对象
var
product
=
allChooseProduct
[
"
tr
"
+
thisRowKey
];
var
material
=
allChooseProduct
[
"
tr
"
+
thisRowKey
];
if
(
inTableDataArrayByAssetarId
(
product
.
product
Id
,
item
.
mUnitId
,
tableData
))
{
if
(
inTableDataArrayByAssetarId
(
material
.
material
Id
,
item
.
mUnitId
,
tableData
))
{
winui
.
window
.
msg
(
'
一张单中不允许出现相同单位的商品信息.
'
,
{
icon
:
2
,
time
:
2000
});
winui
.
window
.
msg
(
'
一张单中不允许出现相同单位的商品信息.
'
,
{
icon
:
2
,
time
:
2000
});
noError
=
true
;
noError
=
true
;
return
false
;
return
false
;
}
}
item
[
"
materialId
"
]
=
product
.
product
Id
;
item
[
"
materialId
"
]
=
material
.
material
Id
;
item
[
"
depotId
"
]
=
$
(
"
#depotId
"
).
val
();
item
[
"
depotId
"
]
=
$
(
"
#depotId
"
).
val
();
tableData
.
push
(
item
);
tableData
.
push
(
item
);
});
});
...
...
erp/src/main/resources/template/js/salesreturns/salesreturnsadd.js
浏览文件 @
9cc540bd
...
@@ -161,13 +161,13 @@ layui.config({
...
@@ -161,13 +161,13 @@ layui.config({
return
false
;
return
false
;
}
}
//商品对象
//商品对象
var
product
=
allChooseProduct
[
"
tr
"
+
thisRowKey
];
var
material
=
allChooseProduct
[
"
tr
"
+
thisRowKey
];
if
(
inTableDataArrayByAssetarId
(
product
.
product
Id
,
item
.
mUnitId
,
tableData
))
{
if
(
inTableDataArrayByAssetarId
(
material
.
material
Id
,
item
.
mUnitId
,
tableData
))
{
winui
.
window
.
msg
(
'
一张单中不允许出现相同单位的商品信息.
'
,
{
icon
:
2
,
time
:
2000
});
winui
.
window
.
msg
(
'
一张单中不允许出现相同单位的商品信息.
'
,
{
icon
:
2
,
time
:
2000
});
noError
=
true
;
noError
=
true
;
return
false
;
return
false
;
}
}
item
[
"
materialId
"
]
=
product
.
product
Id
;
item
[
"
materialId
"
]
=
material
.
material
Id
;
item
[
"
depotId
"
]
=
$
(
"
#depotId
"
).
val
();
item
[
"
depotId
"
]
=
$
(
"
#depotId
"
).
val
();
tableData
.
push
(
item
);
tableData
.
push
(
item
);
});
});
...
...
erp/src/main/resources/template/js/salesreturns/salesreturnsedit.js
浏览文件 @
9cc540bd
...
@@ -89,7 +89,7 @@ layui.config({
...
@@ -89,7 +89,7 @@ layui.config({
$
(
"
#depotId
"
).
val
(
item
.
depotId
);
$
(
"
#depotId
"
).
val
(
item
.
depotId
);
}
}
var
params
=
{
var
params
=
{
"
materialId
"
:
item
.
product
.
productName
+
"
(
"
+
item
.
product
.
product
Model
+
"
)
"
,
"
materialId
"
:
item
.
product
.
materialName
+
"
(
"
+
item
.
product
.
material
Model
+
"
)
"
,
"
mUnitId
"
:
{
"
mUnitId
"
:
{
"
html
"
:
getDataUseHandlebars
(
selOption
,
{
rows
:
item
.
product
.
unitList
}),
"
html
"
:
getDataUseHandlebars
(
selOption
,
{
rows
:
item
.
product
.
unitList
}),
"
value
"
:
item
.
mUnitId
"
value
"
:
item
.
mUnitId
...
@@ -256,13 +256,13 @@ layui.config({
...
@@ -256,13 +256,13 @@ layui.config({
return
false
;
return
false
;
}
}
//商品对象
//商品对象
var
product
=
allChooseProduct
[
"
tr
"
+
thisRowKey
];
var
material
=
allChooseProduct
[
"
tr
"
+
thisRowKey
];
if
(
inTableDataArrayByAssetarId
(
product
.
product
Id
,
item
.
mUnitId
,
tableData
))
{
if
(
inTableDataArrayByAssetarId
(
material
.
material
Id
,
item
.
mUnitId
,
tableData
))
{
winui
.
window
.
msg
(
'
一张单中不允许出现相同单位的商品信息.
'
,
{
icon
:
2
,
time
:
2000
});
winui
.
window
.
msg
(
'
一张单中不允许出现相同单位的商品信息.
'
,
{
icon
:
2
,
time
:
2000
});
noError
=
true
;
noError
=
true
;
return
false
;
return
false
;
}
}
item
[
"
materialId
"
]
=
product
.
product
Id
;
item
[
"
materialId
"
]
=
material
.
material
Id
;
item
[
"
depotId
"
]
=
$
(
"
#depotId
"
).
val
();
item
[
"
depotId
"
]
=
$
(
"
#depotId
"
).
val
();
tableData
.
push
(
item
);
tableData
.
push
(
item
);
});
});
...
...
erp/src/main/resources/template/js/splitlist/splitlistadd.js
浏览文件 @
9cc540bd
...
@@ -146,13 +146,13 @@ layui.config({
...
@@ -146,13 +146,13 @@ layui.config({
hasSplit
=
true
;
hasSplit
=
true
;
}
}
//商品对象
//商品对象
var
product
=
allChooseProduct
[
"
tr
"
+
thisRowKey
];
var
material
=
allChooseProduct
[
"
tr
"
+
thisRowKey
];
if
(
inTableDataArrayByAssetarId
(
product
.
product
Id
,
item
.
mUnitId
,
tableData
))
{
if
(
inTableDataArrayByAssetarId
(
material
.
material
Id
,
item
.
mUnitId
,
tableData
))
{
winui
.
window
.
msg
(
'
一张单中不允许出现相同单位的商品信息.
'
,
{
icon
:
2
,
time
:
2000
});
winui
.
window
.
msg
(
'
一张单中不允许出现相同单位的商品信息.
'
,
{
icon
:
2
,
time
:
2000
});
noError
=
true
;
noError
=
true
;
return
false
;
return
false
;
}
}
item
[
"
materialId
"
]
=
product
.
product
Id
;
item
[
"
materialId
"
]
=
material
.
material
Id
;
item
[
"
depotId
"
]
=
$
(
"
#depotId
"
).
val
();
item
[
"
depotId
"
]
=
$
(
"
#depotId
"
).
val
();
tableData
.
push
(
item
);
tableData
.
push
(
item
);
});
});
...
...
erp/src/main/resources/template/js/splitlist/splitlistedit.js
浏览文件 @
9cc540bd
...
@@ -58,7 +58,7 @@ layui.config({
...
@@ -58,7 +58,7 @@ layui.config({
"
materialType
"
:
{
"
materialType
"
:
{
"
value
"
:
item
.
mType
"
value
"
:
item
.
mType
},
},
"
materialId
"
:
item
.
product
.
productName
+
"
(
"
+
item
.
product
.
product
Model
+
"
)
"
,
"
materialId
"
:
item
.
product
.
materialName
+
"
(
"
+
item
.
product
.
material
Model
+
"
)
"
,
"
mUnitId
"
:
{
"
mUnitId
"
:
{
"
html
"
:
getDataUseHandlebars
(
selOption
,
{
rows
:
item
.
product
.
unitList
}),
"
html
"
:
getDataUseHandlebars
(
selOption
,
{
rows
:
item
.
product
.
unitList
}),
"
value
"
:
item
.
mUnitId
"
value
"
:
item
.
mUnitId
...
@@ -200,13 +200,13 @@ layui.config({
...
@@ -200,13 +200,13 @@ layui.config({
hasSplit
=
true
;
hasSplit
=
true
;
}
}
//商品对象
//商品对象
var
product
=
allChooseProduct
[
"
tr
"
+
thisRowKey
];
var
material
=
allChooseProduct
[
"
tr
"
+
thisRowKey
];
if
(
inTableDataArrayByAssetarId
(
product
.
product
Id
,
item
.
mUnitId
,
tableData
))
{
if
(
inTableDataArrayByAssetarId
(
material
.
material
Id
,
item
.
mUnitId
,
tableData
))
{
winui
.
window
.
msg
(
'
一张单中不允许出现相同单位的商品信息.
'
,
{
icon
:
2
,
time
:
2000
});
winui
.
window
.
msg
(
'
一张单中不允许出现相同单位的商品信息.
'
,
{
icon
:
2
,
time
:
2000
});
noError
=
true
;
noError
=
true
;
return
false
;
return
false
;
}
}
item
[
"
materialId
"
]
=
product
.
product
Id
;
item
[
"
materialId
"
]
=
material
.
material
Id
;
item
[
"
depotId
"
]
=
$
(
"
#depotId
"
).
val
();
item
[
"
depotId
"
]
=
$
(
"
#depotId
"
).
val
();
tableData
.
push
(
item
);
tableData
.
push
(
item
);
});
});
...
...
seal-service/src/main/resources/template/js/partsclaim/partsclaimadd.js
浏览文件 @
9cc540bd
...
@@ -45,11 +45,11 @@ layui.config({
...
@@ -45,11 +45,11 @@ layui.config({
// 备件规格加载变化事件
// 备件规格加载变化事件
form
.
on
(
'
select(selectUnitProperty)
'
,
function
(
data
)
{
form
.
on
(
'
select(selectUnitProperty)
'
,
function
(
data
)
{
var
thisRowValue
=
data
.
value
;
var
thisRowValue
=
data
.
value
;
var
thisRowNum
=
data
.
elem
.
id
.
replace
(
"
unitId
"
,
""
);
// 获取当前行
var
thisRowNum
=
data
.
elem
.
id
.
replace
(
"
mUnitId
"
,
""
);
// 当前当前行选中的商品信息
// 当前当前行选中的商品信息
if
(
!
isNull
(
thisRowValue
)
&&
thisRowValue
!=
'
请选择
'
)
{
if
(
!
isNull
(
thisRowValue
)
&&
thisRowValue
!=
'
请选择
'
)
{
var
product
=
allChooseProduct
[
"
tr
"
+
thisRowNum
.
toString
()];
var
material
=
allChooseProduct
[
"
tr
"
+
thisRowNum
.
toString
()];
$
.
each
(
product
.
unitList
,
function
(
j
,
bean
)
{
$
.
each
(
material
.
unitList
,
function
(
j
,
bean
)
{
if
(
thisRowValue
==
bean
.
id
){
// 获取规格
if
(
thisRowValue
==
bean
.
id
){
// 获取规格
// 获取当前行数量
// 获取当前行数量
var
rkNum
=
parseInt
(
$
(
"
#rkNum
"
+
thisRowNum
).
val
());
var
rkNum
=
parseInt
(
$
(
"
#rkNum
"
+
thisRowNum
).
val
());
...
@@ -132,16 +132,16 @@ layui.config({
...
@@ -132,16 +132,16 @@ layui.config({
return
false
;
return
false
;
}
}
// 商品对象
// 商品对象
var
product
=
allChooseProduct
[
"
tr
"
+
rowNum
.
toString
()];
var
material
=
allChooseProduct
[
"
tr
"
+
rowNum
.
toString
()];
if
(
inTableDataArrayByAssetarId
(
product
.
productId
,
$
(
"
#u
nitId
"
+
rowNum
).
val
(),
tableData
))
{
if
(
inTableDataArrayByAssetarId
(
material
.
materialId
,
$
(
"
#mU
nitId
"
+
rowNum
).
val
(),
tableData
))
{
winui
.
window
.
msg
(
'
一张单中不允许出现相同单位的配件信息.
'
,
{
icon
:
2
,
time
:
2000
});
winui
.
window
.
msg
(
'
一张单中不允许出现相同单位的配件信息.
'
,
{
icon
:
2
,
time
:
2000
});
noError
=
true
;
noError
=
true
;
return
false
;
return
false
;
}
}
var
row
=
{
var
row
=
{
depotId
:
$
(
"
#depotId
"
).
val
(),
depotId
:
$
(
"
#depotId
"
).
val
(),
materialId
:
product
.
product
Id
,
materialId
:
material
.
material
Id
,
mUnitId
:
$
(
"
#
u
nitId
"
+
rowNum
).
val
(),
mUnitId
:
$
(
"
#
mU
nitId
"
+
rowNum
).
val
(),
rkNum
:
rkNum
.
val
(),
rkNum
:
rkNum
.
val
(),
remark
:
$
(
"
#remark
"
+
rowNum
).
val
()
remark
:
$
(
"
#remark
"
+
rowNum
).
val
()
};
};
...
@@ -168,10 +168,10 @@ layui.config({
...
@@ -168,10 +168,10 @@ layui.config({
});
});
// 判断选中的备件是否也在数组中
// 判断选中的备件是否也在数组中
function
inTableDataArrayByAssetarId
(
materialId
,
u
nitId
,
array
)
{
function
inTableDataArrayByAssetarId
(
materialId
,
mU
nitId
,
array
)
{
var
isIn
=
false
;
var
isIn
=
false
;
$
.
each
(
array
,
function
(
i
,
item
)
{
$
.
each
(
array
,
function
(
i
,
item
)
{
if
(
item
.
mUnitId
===
u
nitId
&&
item
.
materialId
===
materialId
)
{
if
(
item
.
mUnitId
===
mU
nitId
&&
item
.
materialId
===
materialId
)
{
isIn
=
true
;
isIn
=
true
;
return
false
;
return
false
;
}
}
...
@@ -209,7 +209,7 @@ layui.config({
...
@@ -209,7 +209,7 @@ layui.config({
id
:
"
row
"
+
rowNum
.
toString
(),
// checkbox的id
id
:
"
row
"
+
rowNum
.
toString
(),
// checkbox的id
trId
:
"
tr
"
+
rowNum
.
toString
(),
// 行的id
trId
:
"
tr
"
+
rowNum
.
toString
(),
// 行的id
materialId
:
"
materialId
"
+
rowNum
.
toString
(),
// 商品id
materialId
:
"
materialId
"
+
rowNum
.
toString
(),
// 商品id
unitId
:
"
u
nitId
"
+
rowNum
.
toString
(),
// 规格id
mUnitId
:
"
mU
nitId
"
+
rowNum
.
toString
(),
// 规格id
currentTock
:
"
currentTock
"
+
rowNum
.
toString
(),
// 库存id
currentTock
:
"
currentTock
"
+
rowNum
.
toString
(),
// 库存id
rkNum
:
"
rkNum
"
+
rowNum
.
toString
(),
// 数量id
rkNum
:
"
rkNum
"
+
rowNum
.
toString
(),
// 数量id
unitPrice
:
"
unitPrice
"
+
rowNum
.
toString
(),
// 单价id
unitPrice
:
"
unitPrice
"
+
rowNum
.
toString
(),
// 单价id
...
@@ -258,9 +258,9 @@ layui.config({
...
@@ -258,9 +258,9 @@ layui.config({
//商品赋值
//商品赋值
allChooseProduct
[
trId
]
=
chooseProductMation
;
allChooseProduct
[
trId
]
=
chooseProductMation
;
//表格商品名称赋值
//表格商品名称赋值
$
(
"
#materialId
"
+
thisRowNum
.
toString
()).
val
(
allChooseProduct
[
trId
].
productName
+
"
(
"
+
allChooseProduct
[
trId
].
product
Model
+
"
)
"
);
$
(
"
#materialId
"
+
thisRowNum
.
toString
()).
val
(
allChooseProduct
[
trId
].
materialName
+
"
(
"
+
allChooseProduct
[
trId
].
material
Model
+
"
)
"
);
//表格单位赋值
//表格单位赋值
$
(
"
#
u
nitId
"
+
thisRowNum
.
toString
()).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
allChooseProduct
[
trId
].
unitList
}));
$
(
"
#
mU
nitId
"
+
thisRowNum
.
toString
()).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
allChooseProduct
[
trId
].
unitList
}));
form
.
render
(
'
select
'
);
form
.
render
(
'
select
'
);
//计算价格
//计算价格
calculatedTotalPrice
();
calculatedTotalPrice
();
...
...
seal-service/src/main/resources/template/js/partsclaim/partsclaimedit.js
浏览文件 @
9cc540bd
...
@@ -33,7 +33,8 @@ layui.config({
...
@@ -33,7 +33,8 @@ layui.config({
showGrid
({
showGrid
({
id
:
"
showForm
"
,
id
:
"
showForm
"
,
url
:
flowableBasePath
+
"
sealseservice026
"
,
url
:
flowableBasePath
+
"
sealseservice026
"
,
params
:
{
rowId
:
parent
.
rowId
},
params
:
{
id
:
parent
.
rowId
},
method
:
'
GET
'
,
pagination
:
false
,
pagination
:
false
,
template
:
beanTemplate
,
template
:
beanTemplate
,
ajaxSendAfter
:
function
(
json
)
{
ajaxSendAfter
:
function
(
json
)
{
...
@@ -73,8 +74,8 @@ layui.config({
...
@@ -73,8 +74,8 @@ layui.config({
$
(
"
#serviceId
"
).
val
(
orderObject
.
bean
.
orderNum
);
//工单单号
$
(
"
#serviceId
"
).
val
(
orderObject
.
bean
.
orderNum
);
//工单单号
$
(
"
#remark
"
).
val
(
orderObject
.
bean
.
remark
);
//备注
$
(
"
#remark
"
).
val
(
orderObject
.
bean
.
remark
);
//备注
$
(
"
#allPrice
"
).
html
(
orderObject
.
bean
.
allPrice
.
toFixed
(
2
));
//总金额
$
(
"
#allPrice
"
).
html
(
orderObject
.
bean
.
allPrice
.
toFixed
(
2
));
//总金额
//渲染列表项
//
渲染列表项
$
.
each
(
orderObject
.
bean
.
material
s
,
function
(
i
,
item
)
{
$
.
each
(
orderObject
.
bean
.
material
List
,
function
(
i
,
item
)
{
addRow
();
addRow
();
if
(
i
==
0
){
if
(
i
==
0
){
$
(
"
#depotId
"
).
val
(
item
.
depotId
);
$
(
"
#depotId
"
).
val
(
item
.
depotId
);
...
@@ -82,10 +83,10 @@ layui.config({
...
@@ -82,10 +83,10 @@ layui.config({
//将规格所属的商品信息加入到对象中存储
//将规格所属的商品信息加入到对象中存储
allChooseProduct
[
"
tr
"
+
(
rowNum
-
1
)]
=
item
;
allChooseProduct
[
"
tr
"
+
(
rowNum
-
1
)]
=
item
;
// 单位回显
// 单位回显
$
(
"
#
u
nitId
"
+
(
rowNum
-
1
)).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
item
.
unitList
}));
$
(
"
#
mU
nitId
"
+
(
rowNum
-
1
)).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
item
.
unitList
}));
$
(
"
#
u
nitId
"
+
(
rowNum
-
1
)).
val
(
item
.
normsId
);
$
(
"
#
mU
nitId
"
+
(
rowNum
-
1
)).
val
(
item
.
normsId
);
// 商品回显
// 商品回显
$
(
"
#materialId
"
+
(
rowNum
-
1
)).
val
(
item
.
productName
+
"
(
"
+
item
.
product
Model
+
"
)
"
);
$
(
"
#materialId
"
+
(
rowNum
-
1
)).
val
(
item
.
materialName
+
"
(
"
+
item
.
material
Model
+
"
)
"
);
$
(
"
#currentTock
"
+
(
rowNum
-
1
)).
html
(
item
.
currentTock
);
//库存回显
$
(
"
#currentTock
"
+
(
rowNum
-
1
)).
html
(
item
.
currentTock
);
//库存回显
$
(
"
#rkNum
"
+
(
rowNum
-
1
)).
val
(
item
.
operNum
);
//数量回显
$
(
"
#rkNum
"
+
(
rowNum
-
1
)).
val
(
item
.
operNum
);
//数量回显
$
(
"
#unitPrice
"
+
(
rowNum
-
1
)).
html
(
item
.
unitPrice
.
toFixed
(
2
));
//单价回显
$
(
"
#unitPrice
"
+
(
rowNum
-
1
)).
html
(
item
.
unitPrice
.
toFixed
(
2
));
//单价回显
...
@@ -95,7 +96,7 @@ layui.config({
...
@@ -95,7 +96,7 @@ layui.config({
$
(
"
tr[trcusid='tr
"
+
(
rowNum
-
1
)
+
"
']
"
).
attr
(
"
thisid
"
,
item
.
id
);
$
(
"
tr[trcusid='tr
"
+
(
rowNum
-
1
)
+
"
']
"
).
attr
(
"
thisid
"
,
item
.
id
);
});
});
// 附件回显
// 附件回显
skyeyeEnclosure
.
initTypeISData
({
'
enclosureUpload
'
:
json
.
bean
.
enclosureInfo
});
skyeyeEnclosure
.
initTypeISData
({
'
enclosureUpload
'
:
orderObject
.
bean
.
enclosureInfo
});
//渲染
//渲染
form
.
render
();
form
.
render
();
}
}
...
@@ -103,11 +104,11 @@ layui.config({
...
@@ -103,11 +104,11 @@ layui.config({
// 备件规格加载变化事件
// 备件规格加载变化事件
form
.
on
(
'
select(selectUnitProperty)
'
,
function
(
data
)
{
form
.
on
(
'
select(selectUnitProperty)
'
,
function
(
data
)
{
var
thisRowValue
=
data
.
value
;
var
thisRowValue
=
data
.
value
;
var
thisRowNum
=
data
.
elem
.
id
.
replace
(
"
unitId
"
,
""
);
// 获取当前行
var
thisRowNum
=
data
.
elem
.
id
.
replace
(
"
mUnitId
"
,
""
);
// 当前当前行选中的商品信息
// 当前当前行选中的商品信息
if
(
!
isNull
(
thisRowValue
)
&&
thisRowValue
!=
'
请选择
'
)
{
if
(
!
isNull
(
thisRowValue
)
&&
thisRowValue
!=
'
请选择
'
)
{
var
product
=
allChooseProduct
[
"
tr
"
+
thisRowNum
.
toString
()];
var
material
=
allChooseProduct
[
"
tr
"
+
thisRowNum
.
toString
()];
$
.
each
(
product
.
unitList
,
function
(
j
,
bean
)
{
$
.
each
(
material
.
unitList
,
function
(
j
,
bean
)
{
if
(
thisRowValue
==
bean
.
id
){
// 获取规格
if
(
thisRowValue
==
bean
.
id
){
// 获取规格
// 获取当前行数量
// 获取当前行数量
var
rkNum
=
parseInt
(
$
(
"
#rkNum
"
+
thisRowNum
).
val
());
var
rkNum
=
parseInt
(
$
(
"
#rkNum
"
+
thisRowNum
).
val
());
...
@@ -189,16 +190,16 @@ layui.config({
...
@@ -189,16 +190,16 @@ layui.config({
return
false
;
return
false
;
}
}
// 商品对象
// 商品对象
var
product
=
allChooseProduct
[
"
tr
"
+
rowNum
.
toString
()];
var
material
=
allChooseProduct
[
"
tr
"
+
rowNum
.
toString
()];
if
(
inTableDataArrayByAssetarId
(
product
.
productId
,
$
(
"
#u
nitId
"
+
rowNum
).
val
(),
tableData
))
{
if
(
inTableDataArrayByAssetarId
(
material
.
materialId
,
$
(
"
#mU
nitId
"
+
rowNum
).
val
(),
tableData
))
{
winui
.
window
.
msg
(
'
一张单中不允许出现相同单位的配件信息.
'
,
{
icon
:
2
,
time
:
2000
});
winui
.
window
.
msg
(
'
一张单中不允许出现相同单位的配件信息.
'
,
{
icon
:
2
,
time
:
2000
});
noError
=
true
;
noError
=
true
;
return
false
;
return
false
;
}
}
var
row
=
{
var
row
=
{
depotId
:
$
(
"
#depotId
"
).
val
(),
depotId
:
$
(
"
#depotId
"
).
val
(),
materialId
:
product
.
product
Id
,
materialId
:
material
.
material
Id
,
mUnitId
:
$
(
"
#
u
nitId
"
+
rowNum
).
val
(),
mUnitId
:
$
(
"
#
mU
nitId
"
+
rowNum
).
val
(),
rkNum
:
rkNum
.
val
(),
rkNum
:
rkNum
.
val
(),
remark
:
$
(
"
#remark
"
+
rowNum
).
val
()
remark
:
$
(
"
#remark
"
+
rowNum
).
val
()
};
};
...
@@ -226,10 +227,10 @@ layui.config({
...
@@ -226,10 +227,10 @@ layui.config({
});
});
// 判断选中的备件是否也在数组中
// 判断选中的备件是否也在数组中
function
inTableDataArrayByAssetarId
(
materialId
,
u
nitId
,
array
)
{
function
inTableDataArrayByAssetarId
(
materialId
,
mU
nitId
,
array
)
{
var
isIn
=
false
;
var
isIn
=
false
;
$
.
each
(
array
,
function
(
i
,
item
)
{
$
.
each
(
array
,
function
(
i
,
item
)
{
if
(
item
.
mUnitId
===
u
nitId
&&
item
.
materialId
===
materialId
)
{
if
(
item
.
mUnitId
===
mU
nitId
&&
item
.
materialId
===
materialId
)
{
isIn
=
true
;
isIn
=
true
;
return
false
;
return
false
;
}
}
...
@@ -267,7 +268,7 @@ layui.config({
...
@@ -267,7 +268,7 @@ layui.config({
id
:
"
row
"
+
rowNum
.
toString
(),
// checkbox的id
id
:
"
row
"
+
rowNum
.
toString
(),
// checkbox的id
trId
:
"
tr
"
+
rowNum
.
toString
(),
// 行的id
trId
:
"
tr
"
+
rowNum
.
toString
(),
// 行的id
materialId
:
"
materialId
"
+
rowNum
.
toString
(),
//商品id
materialId
:
"
materialId
"
+
rowNum
.
toString
(),
//商品id
unitId
:
"
u
nitId
"
+
rowNum
.
toString
(),
// 规格id
mUnitId
:
"
mU
nitId
"
+
rowNum
.
toString
(),
// 规格id
currentTock
:
"
currentTock
"
+
rowNum
.
toString
(),
// 库存id
currentTock
:
"
currentTock
"
+
rowNum
.
toString
(),
// 库存id
rkNum
:
"
rkNum
"
+
rowNum
.
toString
(),
// 数量id
rkNum
:
"
rkNum
"
+
rowNum
.
toString
(),
// 数量id
unitPrice
:
"
unitPrice
"
+
rowNum
.
toString
(),
// 单价id
unitPrice
:
"
unitPrice
"
+
rowNum
.
toString
(),
// 单价id
...
@@ -316,9 +317,9 @@ layui.config({
...
@@ -316,9 +317,9 @@ layui.config({
//商品赋值
//商品赋值
allChooseProduct
[
trId
]
=
chooseProductMation
;
allChooseProduct
[
trId
]
=
chooseProductMation
;
//表格商品名称赋值
//表格商品名称赋值
$
(
"
#materialId
"
+
thisRowNum
.
toString
()).
val
(
allChooseProduct
[
trId
].
productName
+
"
(
"
+
allChooseProduct
[
trId
].
product
Model
+
"
)
"
);
$
(
"
#materialId
"
+
thisRowNum
.
toString
()).
val
(
allChooseProduct
[
trId
].
materialName
+
"
(
"
+
allChooseProduct
[
trId
].
material
Model
+
"
)
"
);
//表格单位赋值
//表格单位赋值
$
(
"
#
u
nitId
"
+
thisRowNum
.
toString
()).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
allChooseProduct
[
trId
].
unitList
}));
$
(
"
#
mU
nitId
"
+
thisRowNum
.
toString
()).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
allChooseProduct
[
trId
].
unitList
}));
form
.
render
(
'
select
'
);
form
.
render
(
'
select
'
);
//计算价格
//计算价格
calculatedTotalPrice
();
calculatedTotalPrice
();
...
...
seal-service/src/main/resources/template/js/sealseservice/sealseserviceadd.js
浏览文件 @
9cc540bd
...
@@ -81,7 +81,7 @@ layui.config({
...
@@ -81,7 +81,7 @@ layui.config({
areaId
:
areaId
,
//区县,可为空
areaId
:
areaId
,
//区县,可为空
townshipId
:
townshipId
,
//乡镇,可为空
townshipId
:
townshipId
,
//乡镇,可为空
addressDetailed
:
$
(
"
#addressDetailed
"
).
val
(),
//详细地址,不可为空
addressDetailed
:
$
(
"
#addressDetailed
"
).
val
(),
//详细地址,不可为空
productId
:
isNull
(
erpOrderUtil
.
chooseProductMation
.
productId
)
?
''
:
erpOrderUtil
.
chooseProductMation
.
product
Id
,
//产品id,可为空
productId
:
isNull
(
erpOrderUtil
.
chooseProductMation
.
materialId
)
?
''
:
erpOrderUtil
.
chooseProductMation
.
material
Id
,
//产品id,可为空
productName
:
$
(
"
#productName
"
).
val
(),
//产品名称,可为空
productName
:
$
(
"
#productName
"
).
val
(),
//产品名称,可为空
productNorms
:
$
(
"
#productNorms
"
).
val
(),
//规格型号,可为空
productNorms
:
$
(
"
#productNorms
"
).
val
(),
//规格型号,可为空
productSerialNum
:
$
(
"
#productSerialNum
"
).
val
(),
//序列号,可为空
productSerialNum
:
$
(
"
#productSerialNum
"
).
val
(),
//序列号,可为空
...
@@ -214,8 +214,8 @@ layui.config({
...
@@ -214,8 +214,8 @@ layui.config({
//产品选择
//产品选择
$
(
"
body
"
).
on
(
"
click
"
,
"
#productNameSel
"
,
function
(
e
)
{
$
(
"
body
"
).
on
(
"
click
"
,
"
#productNameSel
"
,
function
(
e
)
{
erpOrderUtil
.
openMaterialChooseChoosePage
(
function
(
chooseProductMation
)
{
erpOrderUtil
.
openMaterialChooseChoosePage
(
function
(
chooseProductMation
)
{
$
(
"
#productName
"
).
val
(
chooseProductMation
.
product
Name
);
$
(
"
#productName
"
).
val
(
chooseProductMation
.
material
Name
);
$
(
"
#productNorms
"
).
val
(
chooseProductMation
.
product
Model
);
$
(
"
#productNorms
"
).
val
(
chooseProductMation
.
material
Model
);
});
});
});
});
...
...
seal-service/src/main/resources/template/js/sealseservice/sealseserviceedit.js
浏览文件 @
9cc540bd
...
@@ -30,7 +30,7 @@ layui.config({
...
@@ -30,7 +30,7 @@ layui.config({
ajaxSendLoadBefore
:
function
(
hdb
)
{
ajaxSendLoadBefore
:
function
(
hdb
)
{
},
},
ajaxSendAfter
:
function
(
json
)
{
ajaxSendAfter
:
function
(
json
)
{
erpOrderUtil
.
chooseProductMation
.
productId
=
json
.
bean
.
product
Id
;
erpOrderUtil
.
chooseProductMation
.
materialId
=
json
.
bean
.
material
Id
;
textool
.
init
({
eleId
:
'
content
'
,
maxlength
:
200
});
textool
.
init
({
eleId
:
'
content
'
,
maxlength
:
200
});
// 报单时间
// 报单时间
...
@@ -125,7 +125,7 @@ layui.config({
...
@@ -125,7 +125,7 @@ layui.config({
areaId
:
areaId
,
//区县,可为空
areaId
:
areaId
,
//区县,可为空
townshipId
:
townshipId
,
//乡镇,可为空
townshipId
:
townshipId
,
//乡镇,可为空
addressDetailed
:
$
(
"
#addressDetailed
"
).
val
(),
//详细地址,不可为空
addressDetailed
:
$
(
"
#addressDetailed
"
).
val
(),
//详细地址,不可为空
productId
:
isNull
(
erpOrderUtil
.
chooseProductMation
.
productId
)
?
''
:
erpOrderUtil
.
chooseProductMation
.
product
Id
,
//产品id,可为空
productId
:
isNull
(
erpOrderUtil
.
chooseProductMation
.
materialId
)
?
''
:
erpOrderUtil
.
chooseProductMation
.
material
Id
,
//产品id,可为空
productName
:
$
(
"
#productName
"
).
val
(),
//产品名称,可为空
productName
:
$
(
"
#productName
"
).
val
(),
//产品名称,可为空
productNorms
:
$
(
"
#productNorms
"
).
val
(),
//规格型号,可为空
productNorms
:
$
(
"
#productNorms
"
).
val
(),
//规格型号,可为空
productSerialNum
:
$
(
"
#productSerialNum
"
).
val
(),
//序列号,可为空
productSerialNum
:
$
(
"
#productSerialNum
"
).
val
(),
//序列号,可为空
...
@@ -318,8 +318,8 @@ layui.config({
...
@@ -318,8 +318,8 @@ layui.config({
//产品选择
//产品选择
$
(
"
body
"
).
on
(
"
click
"
,
"
#productNameSel
"
,
function
(
e
)
{
$
(
"
body
"
).
on
(
"
click
"
,
"
#productNameSel
"
,
function
(
e
)
{
erpOrderUtil
.
openMaterialChooseChoosePage
(
function
(
chooseProductMation
)
{
erpOrderUtil
.
openMaterialChooseChoosePage
(
function
(
chooseProductMation
)
{
$
(
"
#productName
"
).
val
(
chooseProductMation
.
product
Name
);
$
(
"
#productName
"
).
val
(
chooseProductMation
.
material
Name
);
$
(
"
#productNorms
"
).
val
(
chooseProductMation
.
product
Model
);
$
(
"
#productNorms
"
).
val
(
chooseProductMation
.
material
Model
);
});
});
});
});
...
...
seal-service/src/main/resources/template/js/stateisstayfinishedpro/stateisstayfinished.js
浏览文件 @
9cc540bd
...
@@ -43,10 +43,10 @@ layui.config({
...
@@ -43,10 +43,10 @@ layui.config({
// 故障关键组件
// 故障关键组件
if
(
!
isNull
(
json
.
bean
.
faultKeyPartsId
)){
if
(
!
isNull
(
json
.
bean
.
faultKeyPartsId
)){
faultKeyParts
=
{
faultKeyParts
=
{
product
Id
:
json
.
bean
.
faultKeyPartsId
,
material
Id
:
json
.
bean
.
faultKeyPartsId
,
product
Name
:
json
.
bean
.
faultKeyPartsName
material
Name
:
json
.
bean
.
faultKeyPartsName
};
};
$
(
"
#faultKeyPartsId
"
).
val
(
faultKeyParts
.
product
Name
);
$
(
"
#faultKeyPartsId
"
).
val
(
faultKeyParts
.
material
Name
);
}
}
// 加载配件使用明细
// 加载配件使用明细
...
@@ -128,14 +128,14 @@ layui.config({
...
@@ -128,14 +128,14 @@ layui.config({
return
false
;
return
false
;
}
}
// 商品对象
// 商品对象
var
product
=
allChooseProduct
[
"
tr
"
+
rowNum
.
toString
()];
var
material
=
allChooseProduct
[
"
tr
"
+
rowNum
.
toString
()];
if
(
inTableDataArrayByAssetarId
(
product
.
product
Id
,
$
(
"
#unitId
"
+
rowNum
).
val
(),
tableData
))
{
if
(
inTableDataArrayByAssetarId
(
material
.
material
Id
,
$
(
"
#unitId
"
+
rowNum
).
val
(),
tableData
))
{
winui
.
window
.
msg
(
'
一张单中不允许出现相同单位的配件信息.
'
,
{
icon
:
2
,
time
:
2000
});
winui
.
window
.
msg
(
'
一张单中不允许出现相同单位的配件信息.
'
,
{
icon
:
2
,
time
:
2000
});
noError
=
true
;
noError
=
true
;
return
false
;
return
false
;
}
}
var
row
=
{
var
row
=
{
materialId
:
product
.
product
Id
,
materialId
:
material
.
material
Id
,
mUnitId
:
$
(
"
#unitId
"
+
rowNum
).
val
(),
mUnitId
:
$
(
"
#unitId
"
+
rowNum
).
val
(),
rkNum
:
rkNum
.
val
(),
rkNum
:
rkNum
.
val
(),
remark
:
$
(
"
#remark
"
+
rowNum
).
val
()
remark
:
$
(
"
#remark
"
+
rowNum
).
val
()
...
@@ -158,7 +158,7 @@ layui.config({
...
@@ -158,7 +158,7 @@ layui.config({
coverCost
:
$
(
"
#coverCost
"
).
val
(),
coverCost
:
$
(
"
#coverCost
"
).
val
(),
otherCost
:
$
(
"
#otherCost
"
).
val
(),
otherCost
:
$
(
"
#otherCost
"
).
val
(),
comStarTime
:
$
(
"
#comStarTime
"
).
val
(),
comStarTime
:
$
(
"
#comStarTime
"
).
val
(),
faultKeyPartsId
:
isNull
(
faultKeyParts
.
productId
)
?
""
:
faultKeyParts
.
product
Id
,
faultKeyPartsId
:
isNull
(
faultKeyParts
.
materialId
)
?
""
:
faultKeyParts
.
material
Id
,
actualFailure
:
$
(
"
#actualFailure
"
).
val
(),
actualFailure
:
$
(
"
#actualFailure
"
).
val
(),
solution
:
$
(
"
#solution
"
).
val
(),
solution
:
$
(
"
#solution
"
).
val
(),
useStr
:
JSON
.
stringify
(
tableData
),
useStr
:
JSON
.
stringify
(
tableData
),
...
@@ -194,7 +194,7 @@ layui.config({
...
@@ -194,7 +194,7 @@ layui.config({
$
(
"
#unitId
"
+
(
rowNum
-
1
)).
val
(
item
.
normsId
);
$
(
"
#unitId
"
+
(
rowNum
-
1
)).
val
(
item
.
normsId
);
// 商品回显
// 商品回显
$
(
"
#materialId
"
+
(
rowNum
-
1
)).
val
(
item
.
productName
+
"
(
"
+
item
.
product
Model
+
"
)
"
);
$
(
"
#materialId
"
+
(
rowNum
-
1
)).
val
(
item
.
materialName
+
"
(
"
+
item
.
material
Model
+
"
)
"
);
$
(
"
#currentTock
"
+
(
rowNum
-
1
)).
html
(
item
.
currentTock
);
//库存回显
$
(
"
#currentTock
"
+
(
rowNum
-
1
)).
html
(
item
.
currentTock
);
//库存回显
$
(
"
#rkNum
"
+
(
rowNum
-
1
)).
val
(
item
.
operNumber
);
//数量回显
$
(
"
#rkNum
"
+
(
rowNum
-
1
)).
val
(
item
.
operNumber
);
//数量回显
$
(
"
#unitPrice
"
+
(
rowNum
-
1
)).
html
(
item
.
unitPrice
.
toFixed
(
2
));
//单价回显
$
(
"
#unitPrice
"
+
(
rowNum
-
1
)).
html
(
item
.
unitPrice
.
toFixed
(
2
));
//单价回显
...
@@ -307,7 +307,7 @@ layui.config({
...
@@ -307,7 +307,7 @@ layui.config({
erpOrderUtil
.
openMaterialChooseChoosePage
(
function
(
chooseProductMation
)
{
erpOrderUtil
.
openMaterialChooseChoosePage
(
function
(
chooseProductMation
)
{
faultKeyParts
=
chooseProductMation
;
faultKeyParts
=
chooseProductMation
;
// 重置故障组件信息
// 重置故障组件信息
$
(
"
#faultKeyPartsId
"
).
val
(
faultKeyParts
.
product
Name
);
$
(
"
#faultKeyPartsId
"
).
val
(
faultKeyParts
.
material
Name
);
form
.
render
();
form
.
render
();
});
});
...
@@ -322,7 +322,7 @@ layui.config({
...
@@ -322,7 +322,7 @@ layui.config({
// 商品赋值
// 商品赋值
allChooseProduct
[
trId
]
=
chooseProductMation
;
allChooseProduct
[
trId
]
=
chooseProductMation
;
// 表格商品名称赋值
// 表格商品名称赋值
$
(
"
#materialId
"
+
thisRowNum
.
toString
()).
val
(
allChooseProduct
[
trId
].
productName
+
"
(
"
+
allChooseProduct
[
trId
].
product
Model
+
"
)
"
);
$
(
"
#materialId
"
+
thisRowNum
.
toString
()).
val
(
allChooseProduct
[
trId
].
materialName
+
"
(
"
+
allChooseProduct
[
trId
].
material
Model
+
"
)
"
);
// 表格单位赋值
// 表格单位赋值
$
(
"
#unitId
"
+
thisRowNum
.
toString
()).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
allChooseProduct
[
trId
].
unitList
}));
$
(
"
#unitId
"
+
thisRowNum
.
toString
()).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
allChooseProduct
[
trId
].
unitList
}));
form
.
render
(
'
select
'
);
form
.
render
(
'
select
'
);
...
...
seal-service/src/main/resources/template/tpl/partsclaim/partsclaimadd.html
浏览文件 @
9cc540bd
...
@@ -97,7 +97,7 @@
...
@@ -97,7 +97,7 @@
<
input
type
=
"
text
"
id
=
"
{{materialId}}
"
name
=
"
{{materialId}}
"
placeholder
=
"
请选择商品
"
class
=
"
layui-input
"
readonly
=
"
readonly
"
/>
<
input
type
=
"
text
"
id
=
"
{{materialId}}
"
name
=
"
{{materialId}}
"
placeholder
=
"
请选择商品
"
class
=
"
layui-input
"
readonly
=
"
readonly
"
/>
<
i
class
=
"
fa fa-plus-circle input-icon chooseProductBtn
"
style
=
"
top: 12px;
"
><
/i
>
<
i
class
=
"
fa fa-plus-circle input-icon chooseProductBtn
"
style
=
"
top: 12px;
"
><
/i
>
<
/td
>
<
/td
>
<
td
><
select
id
=
"
{{
u
nitId}}
"
lay
-
filter
=
"
selectUnitProperty
"
lay
-
search
win
-
verify
=
"
required
"
><
/select></
td
>
<
td
><
select
id
=
"
{{
mU
nitId}}
"
lay
-
filter
=
"
selectUnitProperty
"
lay
-
search
win
-
verify
=
"
required
"
><
/select></
td
>
<
td
id
=
"
{{currentTock}}
"
><
/td
>
<
td
id
=
"
{{currentTock}}
"
><
/td
>
<
td
><
input
type
=
"
text
"
class
=
"
layui-input rkNum
"
value
=
"
1
"
id
=
"
{{rkNum}}
"
win
-
verify
=
"
required|number
"
/><
/td
>
<
td
><
input
type
=
"
text
"
class
=
"
layui-input rkNum
"
value
=
"
1
"
id
=
"
{{rkNum}}
"
win
-
verify
=
"
required|number
"
/><
/td
>
<
td
id
=
"
{{unitPrice}}
"
><
/td
>
<
td
id
=
"
{{unitPrice}}
"
><
/td
>
...
...
seal-service/src/main/resources/template/tpl/partsclaim/partsclaimedit.html
浏览文件 @
9cc540bd
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
<
input
type
=
"
text
"
id
=
"
{{materialId}}
"
name
=
"
{{materialId}}
"
placeholder
=
"
请选择商品
"
class
=
"
layui-input
"
readonly
=
"
readonly
"
/>
<
input
type
=
"
text
"
id
=
"
{{materialId}}
"
name
=
"
{{materialId}}
"
placeholder
=
"
请选择商品
"
class
=
"
layui-input
"
readonly
=
"
readonly
"
/>
<
i
class
=
"
fa fa-plus-circle input-icon chooseProductBtn
"
style
=
"
top: 12px;
"
><
/i
>
<
i
class
=
"
fa fa-plus-circle input-icon chooseProductBtn
"
style
=
"
top: 12px;
"
><
/i
>
<
/td
>
<
/td
>
<
td
><
select
id
=
"
{{
u
nitId}}
"
lay
-
filter
=
"
selectUnitProperty
"
lay
-
search
win
-
verify
=
"
required
"
><
/select></
td
>
<
td
><
select
id
=
"
{{
mU
nitId}}
"
lay
-
filter
=
"
selectUnitProperty
"
lay
-
search
win
-
verify
=
"
required
"
><
/select></
td
>
<
td
id
=
"
{{currentTock}}
"
><
/td
>
<
td
id
=
"
{{currentTock}}
"
><
/td
>
<
td
><
input
type
=
"
text
"
class
=
"
layui-input rkNum
"
value
=
"
1
"
id
=
"
{{rkNum}}
"
win
-
verify
=
"
required|number
"
/><
/td
>
<
td
><
input
type
=
"
text
"
class
=
"
layui-input rkNum
"
value
=
"
1
"
id
=
"
{{rkNum}}
"
win
-
verify
=
"
required|number
"
/><
/td
>
<
td
id
=
"
{{unitPrice}}
"
><
/td
>
<
td
id
=
"
{{unitPrice}}
"
><
/td
>
...
...
seal-service/src/main/resources/template/tpl/sealseservice/sealseserviceeditTemplate.tpl
浏览文件 @
9cc540bd
...
@@ -65,14 +65,14 @@
...
@@ -65,14 +65,14 @@
<div
class=
"layui-form-item layui-col-xs6"
>
<div
class=
"layui-form-item layui-col-xs6"
>
<label
class=
"layui-form-label"
>
产品名称
</label>
<label
class=
"layui-form-label"
>
产品名称
</label>
<div
class=
"layui-input-block"
>
<div
class=
"layui-input-block"
>
<input
type=
"text"
id=
"productName"
name=
"productName"
placeholder=
"请输入产品名称"
class=
"layui-input"
maxlength=
"50"
value=
"{
{
product
Name
}
}"
readonly=
"readonly"
/>
<input
type=
"text"
id=
"productName"
name=
"productName"
placeholder=
"请输入产品名称"
class=
"layui-input"
maxlength=
"50"
value=
"{
{
material
Name
}
}"
readonly=
"readonly"
/>
<i
class=
"fa fa-plus-circle input-icon"
id=
"productNameSel"
></i>
<i
class=
"fa fa-plus-circle input-icon"
id=
"productNameSel"
></i>
</div>
</div>
</div>
</div>
<div
class=
"layui-form-item layui-col-xs6"
>
<div
class=
"layui-form-item layui-col-xs6"
>
<label
class=
"layui-form-label"
>
规格型号
</label>
<label
class=
"layui-form-label"
>
规格型号
</label>
<div
class=
"layui-input-block"
>
<div
class=
"layui-input-block"
>
<input
type=
"text"
id=
"productNorms"
name=
"productNorms"
placeholder=
"请输入规格型号"
class=
"layui-input"
maxlength=
"50"
value=
"{
{
productNorms
}
}"
/>
<input
type=
"text"
id=
"productNorms"
name=
"productNorms"
placeholder=
"请输入规格型号"
class=
"layui-input"
maxlength=
"50"
value=
"{
{
materialModel
}
}"
/>
</div>
</div>
</div>
</div>
<div
class=
"layui-form-item layui-col-xs6"
>
<div
class=
"layui-form-item layui-col-xs6"
>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录