Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Skyeye云
Skyeye
提交
3db12c4c
S
Skyeye
项目概览
Skyeye云
/
Skyeye
通知
1429
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看板
提交
3db12c4c
编写于
9月 25, 2022
作者:
Skyeye云
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
加工单模块整改
上级
1611858a
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
25 addition
and
27 deletion
+25
-27
erp-produce/src/main/resources/template/js/erpMachin/erpMachinAdd.js
.../src/main/resources/template/js/erpMachin/erpMachinAdd.js
+7
-7
erp-produce/src/main/resources/template/js/erpMachin/erpMachinEdit.js
...src/main/resources/template/js/erpMachin/erpMachinEdit.js
+14
-14
erp-produce/src/main/resources/template/js/erpWorkProcedure/erpWorkProcedureChoose.js
...es/template/js/erpWorkProcedure/erpWorkProcedureChoose.js
+0
-2
erp-produce/src/main/resources/template/tpl/erpMachin/erpMachinAdd.html
...c/main/resources/template/tpl/erpMachin/erpMachinAdd.html
+1
-1
erp-produce/src/main/resources/template/tpl/erpMachin/erpMachinDetails.html
...in/resources/template/tpl/erpMachin/erpMachinDetails.html
+1
-1
erp-produce/src/main/resources/template/tpl/erpMachin/erpMachinEdit.html
.../main/resources/template/tpl/erpMachin/erpMachinEdit.html
+1
-1
erp-produce/src/main/resources/template/tpl/erpMachin/erpMachinExamine.html
...in/resources/template/tpl/erpMachin/erpMachinExamine.html
+1
-1
未找到文件。
erp-produce/src/main/resources/template/js/erpMachin/erpMachinAdd.js
浏览文件 @
3db12c4c
...
...
@@ -50,7 +50,7 @@ layui.config({
//商品规格加载变化事件
form
.
on
(
'
select(selectUnitProperty)
'
,
function
(
data
)
{
var
thisRowValue
=
data
.
value
;
var
thisRowNum
=
data
.
elem
.
id
.
replace
(
"
u
nitId
"
,
""
);
//获取当前行
var
thisRowNum
=
data
.
elem
.
id
.
replace
(
"
mU
nitId
"
,
""
);
//获取当前行
//当前当前行选中的商品信息
if
(
!
isNull
(
thisRowValue
)
&&
thisRowValue
!=
'
请选择
'
)
{
var
product
=
allChooseProduct
[
"
tr
"
+
thisRowNum
.
toString
()];
...
...
@@ -104,14 +104,14 @@ layui.config({
}
// 商品对象
var
product
=
allChooseProduct
[
"
tr
"
+
rowNum
.
toString
()];
if
(
inTableDataArrayByAssetarId
(
product
.
productId
,
$
(
"
#
u
nitId
"
+
rowNum
).
val
(),
tableData
))
{
if
(
inTableDataArrayByAssetarId
(
product
.
productId
,
$
(
"
#
mU
nitId
"
+
rowNum
).
val
(),
tableData
))
{
winui
.
window
.
msg
(
'
一张单中不允许出现相同单位的商品信息.
'
,
{
icon
:
2
,
time
:
2000
});
noError
=
true
;
return
false
;
}
var
row
=
{
materialId
:
product
.
productId
,
mUnitId
:
$
(
"
#
u
nitId
"
+
rowNum
).
val
(),
mUnitId
:
$
(
"
#
mU
nitId
"
+
rowNum
).
val
(),
rkNum
:
rkNum
.
val
(),
unitPrice
:
$
(
"
#unitPrice
"
+
rowNum
).
val
()
};
...
...
@@ -209,7 +209,7 @@ layui.config({
id
:
"
row
"
+
rowNum
.
toString
(),
//checkbox的id
trId
:
"
tr
"
+
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
productionNum
:
"
productionNum
"
+
rowNum
.
toString
(),
//所需总数量id
machinNum
:
"
machinNum
"
+
rowNum
.
toString
(),
//待分配数量id
...
...
@@ -251,7 +251,7 @@ layui.config({
//表格商品名称赋值
$
(
"
#materialId
"
+
thisRowNum
.
toString
()).
val
(
allChooseProduct
[
trId
].
productName
+
"
(
"
+
allChooseProduct
[
trId
].
productModel
+
"
)
"
);
//表格单位赋值
$
(
"
#
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
'
);
//计算价格
calculatedTotalPrice
();
...
...
@@ -306,8 +306,8 @@ layui.config({
//将规格所属的商品信息加入到对象中存储
allChooseProduct
[
"
tr
"
+
(
rowNum
-
1
)]
=
item
.
product
;
//单位回显
$
(
"
#
u
nitId
"
+
(
rowNum
-
1
)).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
item
.
product
.
unitList
}));
$
(
"
#
u
nitId
"
+
(
rowNum
-
1
)).
val
(
item
.
normsId
);
$
(
"
#
mU
nitId
"
+
(
rowNum
-
1
)).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
item
.
product
.
unitList
}));
$
(
"
#
mU
nitId
"
+
(
rowNum
-
1
)).
val
(
item
.
normsId
);
//商品回显
$
(
"
#materialId
"
+
(
rowNum
-
1
)).
val
(
item
.
product
.
productName
+
"
(
"
+
item
.
product
.
productModel
+
"
)
"
);
$
(
"
#currentTock
"
+
(
rowNum
-
1
)).
html
(
item
.
currentTock
);
//库存回显
...
...
erp-produce/src/main/resources/template/js/erpMachin/erpMachinEdit.js
浏览文件 @
3db12c4c
...
...
@@ -48,9 +48,9 @@ layui.config({
loadData
();
function
loadData
(){
AjaxPostUtil
.
request
({
url
:
flowableBasePath
+
"
erpmachin003
"
,
params
:
{
rowId
:
parent
.
rowId
},
type
:
'
json
'
,
method
:
'
POS
T
'
,
callback
:
function
(
json
)
{
AjaxPostUtil
.
request
({
url
:
flowableBasePath
+
"
erpmachin003
"
,
params
:
{
id
:
parent
.
rowId
},
type
:
'
json
'
,
method
:
'
GE
T
'
,
callback
:
function
(
json
)
{
var
data
=
json
.
bean
;
if
(
!
isNull
(
data
.
productionId
)){
if
(
!
isNull
(
data
.
productionId
))
{
$
(
"
#productionOrder
"
).
val
(
data
.
productionNumber
);
$
(
"
#procedureChoose
"
).
hide
();
productionMation
=
{
...
...
@@ -61,7 +61,7 @@ layui.config({
machinPro
=
{
productId
:
data
.
materialId
,
productName
:
data
.
materialName
,
productModel
:
data
.
product
Model
,
productModel
:
data
.
material
Model
,
unitList
:
data
.
unitList
};
$
(
"
#productName
"
).
val
(
machinPro
.
productName
);
...
...
@@ -84,15 +84,15 @@ layui.config({
$
(
"
#endTime
"
).
val
(
data
.
endTime
);
$
(
"
#remark
"
).
val
(
data
.
remark
);
$
.
each
(
data
.
materi
e
l
,
function
(
i
,
item
)
{
$
.
each
(
data
.
materi
a
l
,
function
(
i
,
item
)
{
addRow
();
//将规格所属的商品信息加入到对象中存储
allChooseProduct
[
"
tr
"
+
(
rowNum
-
1
)]
=
item
;
//单位回显
$
(
"
#
u
nitId
"
+
(
rowNum
-
1
)).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
item
.
unitList
}));
$
(
"
#
u
nitId
"
+
(
rowNum
-
1
)).
val
(
item
.
normsId
);
$
(
"
#
mU
nitId
"
+
(
rowNum
-
1
)).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
item
.
unitList
}));
$
(
"
#
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
);
//库存回显
$
.
each
(
data
.
referToMation
,
function
(
j
,
bean
){
if
(
bean
.
normsId
==
item
.
normsId
){
...
...
@@ -118,7 +118,7 @@ layui.config({
//商品规格加载变化事件
form
.
on
(
'
select(selectUnitProperty)
'
,
function
(
data
)
{
var
thisRowValue
=
data
.
value
;
var
thisRowNum
=
data
.
elem
.
id
.
replace
(
"
u
nitId
"
,
""
);
//获取当前行
var
thisRowNum
=
data
.
elem
.
id
.
replace
(
"
mU
nitId
"
,
""
);
//获取当前行
//当前当前行选中的商品信息
if
(
!
isNull
(
thisRowValue
)
&&
thisRowValue
!=
'
请选择
'
)
{
var
product
=
allChooseProduct
[
"
tr
"
+
thisRowNum
.
toString
()];
...
...
@@ -171,14 +171,14 @@ layui.config({
}
//商品对象
var
product
=
allChooseProduct
[
"
tr
"
+
rowNum
.
toString
()];
if
(
inTableDataArrayByAssetarId
(
product
.
productId
,
$
(
"
#
u
nitId
"
+
rowNum
).
val
(),
tableData
))
{
if
(
inTableDataArrayByAssetarId
(
product
.
productId
,
$
(
"
#
mU
nitId
"
+
rowNum
).
val
(),
tableData
))
{
winui
.
window
.
msg
(
'
一张单中不允许出现相同单位的商品信息.
'
,
{
icon
:
2
,
time
:
2000
});
noError
=
true
;
return
false
;
}
var
row
=
{
materialId
:
product
.
productId
,
mUnitId
:
$
(
"
#
u
nitId
"
+
rowNum
).
val
(),
mUnitId
:
$
(
"
#
mU
nitId
"
+
rowNum
).
val
(),
rkNum
:
rkNum
.
val
(),
unitPrice
:
$
(
"
#unitPrice
"
+
rowNum
).
val
()
};
...
...
@@ -277,7 +277,7 @@ layui.config({
id
:
"
row
"
+
rowNum
.
toString
(),
//checkbox的id
trId
:
"
tr
"
+
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
productionNum
:
"
productionNum
"
+
rowNum
.
toString
(),
//所需总数量id
machinNum
:
"
machinNum
"
+
rowNum
.
toString
(),
//待分配数量id
...
...
@@ -319,7 +319,7 @@ layui.config({
//表格商品名称赋值
$
(
"
#materialId
"
+
thisRowNum
.
toString
()).
val
(
allChooseProduct
[
trId
].
productName
+
"
(
"
+
allChooseProduct
[
trId
].
productModel
+
"
)
"
);
//表格单位赋值
$
(
"
#
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
'
);
//计算价格
calculatedTotalPrice
();
...
...
@@ -374,8 +374,8 @@ layui.config({
//将规格所属的商品信息加入到对象中存储
allChooseProduct
[
"
tr
"
+
(
rowNum
-
1
)]
=
item
.
product
;
//单位回显
$
(
"
#
u
nitId
"
+
(
rowNum
-
1
)).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
item
.
product
.
unitList
}));
$
(
"
#
u
nitId
"
+
(
rowNum
-
1
)).
val
(
item
.
normsId
);
$
(
"
#
mU
nitId
"
+
(
rowNum
-
1
)).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
item
.
product
.
unitList
}));
$
(
"
#
mU
nitId
"
+
(
rowNum
-
1
)).
val
(
item
.
normsId
);
//商品回显
$
(
"
#materialId
"
+
(
rowNum
-
1
)).
val
(
item
.
product
.
productName
+
"
(
"
+
item
.
product
.
productModel
+
"
)
"
);
$
(
"
#currentTock
"
+
(
rowNum
-
1
)).
html
(
item
.
currentTock
);
//库存回显
...
...
erp-produce/src/main/resources/template/js/erpWorkProcedure/erpWorkProcedureChoose.js
浏览文件 @
3db12c4c
...
...
@@ -5,10 +5,8 @@ layui.config({
}).
extend
({
window
:
'
js/winui.window
'
}).
define
([
'
window
'
,
'
table
'
,
'
jquery
'
,
'
winui
'
,
'
form
'
,
'
tableCheckBoxUtil
'
],
function
(
exports
)
{
winui
.
renderColor
();
var
index
=
parent
.
layer
.
getFrameIndex
(
window
.
name
);
var
$
=
layui
.
$
,
form
=
layui
.
form
,
table
=
layui
.
table
,
...
...
erp-produce/src/main/resources/template/tpl/erpMachin/erpMachinAdd.html
浏览文件 @
3db12c4c
...
...
@@ -149,7 +149,7 @@
<
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
>
<
/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
=
"
{{productionNum}}
"
style
=
"
text-align:center;
"
>-<
/td
>
<
td
id
=
"
{{machinNum}}
"
style
=
"
text-align:center;
"
>-<
/td
>
...
...
erp-produce/src/main/resources/template/tpl/erpMachin/erpMachinDetails.html
浏览文件 @
3db12c4c
...
...
@@ -64,7 +64,7 @@
<
div
class
=
"
layui-form-item layui-col-xs6
"
>
<
label
class
=
"
layui-form-label
"
>
商品型号
:
<
/label
>
<
div
class
=
"
layui-input-block ver-center
"
>
{{
product
Model
}}
{{
material
Model
}}
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item layui-col-xs6
"
>
...
...
erp-produce/src/main/resources/template/tpl/erpMachin/erpMachinEdit.html
浏览文件 @
3db12c4c
...
...
@@ -149,7 +149,7 @@
<
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
>
<
/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
=
"
{{productionNum}}
"
style
=
"
text-align:center;
"
>-<
/td
>
<
td
id
=
"
{{machinNum}}
"
style
=
"
text-align:center;
"
>-<
/td
>
...
...
erp-produce/src/main/resources/template/tpl/erpMachin/erpMachinExamine.html
浏览文件 @
3db12c4c
...
...
@@ -46,7 +46,7 @@
<
div
class
=
"
layui-form-item layui-col-xs6
"
>
<
label
class
=
"
layui-form-label
"
>
商品型号
:
<
/label
>
<
div
class
=
"
layui-input-block ver-center
"
>
{{
product
Model
}}
{{
material
Model
}}
<
/div
>
<
/div
>
<
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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录