Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
doc_wei
Skyeye
提交
b4c86e75
S
Skyeye
项目概览
doc_wei
/
Skyeye
通知
1171
Star
154
Fork
127
代码
文件
提交
分支
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看板
提交
b4c86e75
编写于
9月 25, 2022
作者:
doc_wei
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
生产计划单整改,获取当前库存以及商品规格信息方式修改
上级
b114f314
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
34 addition
and
33 deletion
+34
-33
erp-produce/src/main/resources/template/js/erpProduction/erpProductionAdd.js
...n/resources/template/js/erpProduction/erpProductionAdd.js
+7
-7
erp-produce/src/main/resources/template/js/erpProduction/erpProductionEdit.js
.../resources/template/js/erpProduction/erpProductionEdit.js
+17
-16
erp-produce/src/main/resources/template/tpl/erpProduction/erpProductionAdd.html
...esources/template/tpl/erpProduction/erpProductionAdd.html
+5
-5
erp-produce/src/main/resources/template/tpl/erpProduction/erpProductionEdit.html
...sources/template/tpl/erpProduction/erpProductionEdit.html
+5
-5
未找到文件。
erp-produce/src/main/resources/template/js/erpProduction/erpProductionAdd.js
浏览文件 @
b4c86e75
...
...
@@ -68,7 +68,7 @@ layui.config({
//加载bom方案下的子件列表
function
loadBomChildProList
(
bomId
){
AjaxPostUtil
.
request
({
url
:
flowableBasePath
+
"
erpbom008
"
,
params
:
{
bomId
:
bomId
},
type
:
'
json
'
,
callback
:
function
(
json
)
{
AjaxPostUtil
.
request
({
url
:
flowableBasePath
+
"
erpbom008
"
,
params
:
{
id
:
bomId
},
type
:
'
json
'
,
method
:
'
GET
'
,
callback
:
function
(
json
)
{
childProList
=
[].
concat
(
json
.
rows
);
$
(
"
#tBody
"
).
html
(
getDataUseHandlebars
(
$
(
"
#tableBody
"
).
html
(),
{
rows
:
childProList
}));
//加载建议采购数量
...
...
@@ -90,12 +90,12 @@ layui.config({
function
loadChildProPosal
(){
//计划生产数量
var
number
=
parseInt
(
isNull
(
$
(
"
#number
"
).
val
())
?
'
0
'
:
$
(
"
#number
"
).
val
());
if
(
isNaN
(
number
))
{
if
(
isNaN
(
number
))
{
number
=
0
;
}
$
.
each
(
childProList
,
function
(
i
,
item
)
{
//单位所需数量*生产数量-库存抵扣数量
var
proposal
=
number
*
parseInt
(
item
.
needNum
)
-
parseInt
(
item
.
deportAll
Tock
);
var
proposal
=
number
*
parseInt
(
item
.
needNum
)
-
parseInt
(
item
.
current
Tock
);
$
(
"
#proposal
"
+
item
.
productId
).
val
(
proposal
<
0
?
0
:
proposal
);
//需求数量=单位所需数量*生产数量
$
(
"
#needNum
"
+
item
.
productId
).
html
(
number
*
parseInt
(
item
.
needNum
));
...
...
@@ -190,8 +190,8 @@ layui.config({
// 商品选择
$
(
"
body
"
).
on
(
"
click
"
,
"
#productNameSel
"
,
function
(
e
)
{
erpOrderUtil
.
openMaterialChooseChoosePage
(
function
(
chooseProductMation
)
{
$
(
"
#
product
Name
"
).
val
(
chooseProductMation
.
productName
);
$
(
"
#
product
Model
"
).
val
(
chooseProductMation
.
productModel
);
$
(
"
#
material
Name
"
).
val
(
chooseProductMation
.
productName
);
$
(
"
#
material
Model
"
).
val
(
chooseProductMation
.
productModel
);
$
(
"
#unitList
"
).
html
(
getDataUseHandlebars
(
selTemplate
,
{
rows
:
chooseProductMation
.
unitList
}));
//重置单据信息
salesOrder
=
{};
...
...
@@ -215,8 +215,8 @@ layui.config({
productModel
:
salesOrder
.
materialModel
,
productId
:
salesOrder
.
materialId
};
$
(
"
#
product
Name
"
).
val
(
erpOrderUtil
.
chooseProductMation
.
productName
);
$
(
"
#
product
Model
"
).
val
(
erpOrderUtil
.
chooseProductMation
.
productModel
);
$
(
"
#
material
Name
"
).
val
(
erpOrderUtil
.
chooseProductMation
.
productName
);
$
(
"
#
material
Model
"
).
val
(
erpOrderUtil
.
chooseProductMation
.
productModel
);
//加载数量
$
(
"
#number
"
).
val
(
salesOrder
.
operNum
);
//单号
...
...
erp-produce/src/main/resources/template/js/erpProduction/erpProductionEdit.js
浏览文件 @
b4c86e75
...
...
@@ -41,23 +41,23 @@ layui.config({
textool
.
init
({
eleId
:
'
remark
'
,
maxlength
:
200
});
//回显数据
AjaxPostUtil
.
request
({
url
:
flowableBasePath
+
"
erpproduction003
"
,
params
:
{
orderI
d
:
parent
.
rowId
},
type
:
'
json
'
,
method
:
"
GET
"
,
callback
:
function
(
json
)
{
//商品信息
AjaxPostUtil
.
request
({
url
:
flowableBasePath
+
"
erpproduction003
"
,
params
:
{
i
d
:
parent
.
rowId
},
type
:
'
json
'
,
method
:
"
GET
"
,
callback
:
function
(
json
)
{
//
商品信息
erpOrderUtil
.
chooseProductMation
=
{
productId
:
json
.
bean
.
productId
,
productName
:
json
.
bean
.
materialName
,
productModel
:
json
.
bean
.
materialModel
};
$
(
"
#
product
Name
"
).
val
(
json
.
bean
.
materialName
);
$
(
"
#
product
Model
"
).
val
(
json
.
bean
.
materialModel
);
//订单信息
$
(
"
#
material
Name
"
).
val
(
json
.
bean
.
materialName
);
$
(
"
#
material
Model
"
).
val
(
json
.
bean
.
materialModel
);
//
订单信息
if
(
!
isNull
(
json
.
bean
.
orderId
)){
salesOrder
=
{
orderHeaderId
:
json
.
bean
.
orderId
};
$
(
"
#salesOrder
"
).
val
(
json
.
bean
.
defaultNumber
);
}
//规格
//
规格
$
(
"
#unitList
"
).
html
(
getDataUseHandlebars
(
selTemplate
,
{
rows
:
json
.
bean
.
unitList
}));
$
(
"
#unitList
"
).
val
(
json
.
bean
.
normsId
);
$
(
"
#number
"
).
val
(
json
.
bean
.
number
);
...
...
@@ -65,10 +65,11 @@ layui.config({
$
(
"
#planComplateDate
"
).
val
(
json
.
bean
.
planComplateDate
);
$
(
"
#operTime
"
).
val
(
json
.
bean
.
operTime
);
$
(
"
#remark
"
).
val
(
json
.
bean
.
remark
);
//生产方案
// 生产方案
$
(
"
#bomList
"
).
html
(
getDataUseHandlebars
(
selTemplate
,
{
rows
:
json
.
bean
.
bomList
}));
$
(
"
#bomList
"
).
val
(
json
.
bean
.
bomId
);
//工序
//初始化工序
procedureMationList
=
[].
concat
(
json
.
bean
.
procedureMationList
);
var
str
=
""
;
...
...
@@ -76,7 +77,7 @@ layui.config({
str
+=
'
<tr><td>
'
+
item
.
number
+
'
</td><td>
'
+
item
.
procedureName
+
'
</td><td>
'
+
item
.
departmentName
+
'
</td></tr>
'
;
});
$
(
"
#procedureBody
"
).
html
(
str
);
//子件清单
//
子件清单
childProList
=
[].
concat
(
json
.
bean
.
childList
);
$
(
"
#tBody
"
).
html
(
getDataUseHandlebars
(
$
(
"
#tableBody
"
).
html
(),
{
rows
:
childProList
}));
$
.
each
(
childProList
,
function
(
i
,
item
)
{
...
...
@@ -119,7 +120,7 @@ layui.config({
//加载bom方案下的子件列表
function
loadBomChildProList
(
bomId
){
AjaxPostUtil
.
request
({
url
:
flowableBasePath
+
"
erpbom008
"
,
params
:
{
bomId
:
bomId
},
type
:
'
json
'
,
callback
:
function
(
json
)
{
AjaxPostUtil
.
request
({
url
:
flowableBasePath
+
"
erpbom008
"
,
params
:
{
id
:
bomId
},
type
:
'
json
'
,
method
:
'
GET
'
,
callback
:
function
(
json
)
{
childProList
=
[].
concat
(
json
.
rows
);
$
(
"
#tBody
"
).
html
(
getDataUseHandlebars
(
$
(
"
#tableBody
"
).
html
(),
{
rows
:
childProList
}));
//加载建议采购数量
...
...
@@ -146,7 +147,7 @@ layui.config({
}
$
.
each
(
childProList
,
function
(
i
,
item
)
{
//单位所需数量*生产数量-库存抵扣数量
var
proposal
=
number
*
parseInt
(
item
.
needNum
)
-
parseInt
(
item
.
deportAll
Tock
);
var
proposal
=
number
*
parseInt
(
item
.
needNum
)
-
parseInt
(
item
.
current
Tock
);
$
(
"
#proposal
"
+
item
.
productId
).
val
(
proposal
<
0
?
0
:
proposal
);
//需求数量=单位所需数量*生产数量
$
(
"
#needNum
"
+
item
.
productId
).
html
(
number
*
parseInt
(
item
.
needNum
));
...
...
@@ -186,7 +187,7 @@ layui.config({
normsId
:
item
.
normsId
,
number
:
$
(
"
#proposal
"
+
item
.
productId
).
val
(),
unitNumber
:
item
.
needNum
,
unitPrice
:
item
.
unit
Price
unitPrice
:
item
.
normsPurchase
Price
});
});
//子件清单信息
...
...
@@ -240,8 +241,8 @@ layui.config({
//商品选择
$
(
"
body
"
).
on
(
"
click
"
,
"
#productNameSel
"
,
function
(
e
)
{
erpOrderUtil
.
openMaterialChooseChoosePage
(
function
(
chooseProductMation
)
{
$
(
"
#
product
Name
"
).
val
(
chooseProductMation
.
productName
);
$
(
"
#
product
Model
"
).
val
(
chooseProductMation
.
productModel
);
$
(
"
#
material
Name
"
).
val
(
chooseProductMation
.
productName
);
$
(
"
#
material
Model
"
).
val
(
chooseProductMation
.
productModel
);
$
(
"
#unitList
"
).
html
(
getDataUseHandlebars
(
selTemplate
,
{
rows
:
chooseProductMation
.
unitList
}));
//重置单据信息
salesOrder
=
{};
...
...
@@ -265,8 +266,8 @@ layui.config({
productModel
:
salesOrder
.
materialModel
,
productId
:
salesOrder
.
materialId
};
$
(
"
#
product
Name
"
).
val
(
erpOrderUtil
.
chooseProductMation
.
productName
);
$
(
"
#
product
Model
"
).
val
(
erpOrderUtil
.
chooseProductMation
.
productModel
);
$
(
"
#
material
Name
"
).
val
(
erpOrderUtil
.
chooseProductMation
.
productName
);
$
(
"
#
material
Model
"
).
val
(
erpOrderUtil
.
chooseProductMation
.
productModel
);
//加载数量
$
(
"
#number
"
).
val
(
salesOrder
.
operNum
);
//单号
...
...
erp-produce/src/main/resources/template/tpl/erpProduction/erpProductionAdd.html
浏览文件 @
b4c86e75
...
...
@@ -15,7 +15,7 @@
<div
class=
"layui-form-item layui-col-xs6"
>
<label
class=
"layui-form-label"
>
商品名称
<i
class=
"red"
>
*
</i></label>
<div
class=
"layui-input-block"
>
<input
type=
"text"
id=
"
productName"
name=
"product
Name"
win-verify=
"required"
placeholder=
"请选择商品"
class=
"layui-input"
readonly=
"readonly"
/>
<input
type=
"text"
id=
"
materialName"
name=
"material
Name"
win-verify=
"required"
placeholder=
"请选择商品"
class=
"layui-input"
readonly=
"readonly"
/>
<i
class=
"fa fa-plus-circle input-icon"
id=
"productNameSel"
></i>
</div>
</div>
...
...
@@ -29,7 +29,7 @@
<div
class=
"layui-form-item layui-col-xs6"
>
<label
class=
"layui-form-label"
>
商品型号
</label>
<div
class=
"layui-input-block"
>
<input
type=
"text"
id=
"
productModel"
name=
"product
Model"
placeholder=
"请选择商品"
class=
"layui-input"
readonly=
"readonly"
/>
<input
type=
"text"
id=
"
materialModel"
name=
"material
Model"
placeholder=
"请选择商品"
class=
"layui-input"
readonly=
"readonly"
/>
</div>
</div>
<div
class=
"layui-form-item layui-col-xs6"
>
...
...
@@ -142,8 +142,8 @@
<script
type=
"text/html"
id=
"tableBody"
>
{{
#
each
rows
}}
<
tr
rowid
=
"
{{productId}}
"
>
<
td
id
=
"
name{{productId}}
"
>
{{
product
Name
}}
<
/td
>
<
td
id
=
"
model{{productId}}
"
>
{{
product
Model
}}
<
/td
>
<
td
id
=
"
name{{productId}}
"
>
{{
material
Name
}}
<
/td
>
<
td
id
=
"
model{{productId}}
"
>
{{
material
Model
}}
<
/td
>
<
td
>
{{
categoryName
}}
<
/td
>
<
td
>
{{
typeName
}}
<
/td
>
<
td
>
...
...
@@ -153,7 +153,7 @@
<
/td
>
<
td
style
=
"
text-align: center;
"
>
{{
needNum
}}{{
unitName
}}
<
/td
>
<
td
style
=
"
text-align: center;
"
id
=
"
needNum{{productId}}
"
>
{{
needNum
}}
<
/td
>
<
td
>
{{
deportAll
Tock
}}
<
/td
>
<
td
>
{{
current
Tock
}}
<
/td
>
<
td
>
{{
beWarehousedNum
}}
<
/td
>
<
td
>
<
input
type
=
"
text
"
id
=
"
proposal{{productId}}
"
name
=
"
proposal{{productId}}
"
win
-
verify
=
"
required|number
"
placeholder
=
"
请输入采购或生产数量
"
class
=
"
layui-input
"
/>
...
...
erp-produce/src/main/resources/template/tpl/erpProduction/erpProductionEdit.html
浏览文件 @
b4c86e75
...
...
@@ -15,7 +15,7 @@
<div
class=
"layui-form-item layui-col-xs6"
>
<label
class=
"layui-form-label"
>
商品名称
<i
class=
"red"
>
*
</i></label>
<div
class=
"layui-input-block"
>
<input
type=
"text"
id=
"
productName"
name=
"product
Name"
win-verify=
"required"
placeholder=
"请选择商品"
class=
"layui-input"
readonly=
"readonly"
/>
<input
type=
"text"
id=
"
materialName"
name=
"material
Name"
win-verify=
"required"
placeholder=
"请选择商品"
class=
"layui-input"
readonly=
"readonly"
/>
<i
class=
"fa fa-plus-circle input-icon"
id=
"productNameSel"
></i>
</div>
</div>
...
...
@@ -29,7 +29,7 @@
<div
class=
"layui-form-item layui-col-xs6"
>
<label
class=
"layui-form-label"
>
商品型号
</label>
<div
class=
"layui-input-block"
>
<input
type=
"text"
id=
"
productModel"
name=
"product
Model"
placeholder=
"请选择商品"
class=
"layui-input"
readonly=
"readonly"
/>
<input
type=
"text"
id=
"
materialModel"
name=
"material
Model"
placeholder=
"请选择商品"
class=
"layui-input"
readonly=
"readonly"
/>
</div>
</div>
<div
class=
"layui-form-item layui-col-xs6"
>
...
...
@@ -142,8 +142,8 @@
<script
type=
"text/html"
id=
"tableBody"
>
{{
#
each
rows
}}
<
tr
rowid
=
"
{{productId}}
"
>
<
td
id
=
"
name{{productId}}
"
>
{{
product
Name
}}
<
/td
>
<
td
id
=
"
model{{productId}}
"
>
{{
product
Model
}}
<
/td
>
<
td
id
=
"
name{{productId}}
"
>
{{
material
Name
}}
<
/td
>
<
td
id
=
"
model{{productId}}
"
>
{{
material
Model
}}
<
/td
>
<
td
>
{{
categoryName
}}
<
/td
>
<
td
>
{{
typeName
}}
<
/td
>
<
td
>
...
...
@@ -153,7 +153,7 @@
<
/td
>
<
td
style
=
"
text-align: center;
"
>
{{
needNum
}}{{
unitName
}}
<
/td
>
<
td
style
=
"
text-align: center;
"
id
=
"
needNum{{productId}}
"
>
{{
needNum
}}
<
/td
>
<
td
>
{{
deportAll
Tock
}}
<
/td
>
<
td
>
{{
current
Tock
}}
<
/td
>
<
td
>
{{
beWarehousedNum
}}
<
/td
>
<
td
>
<
input
type
=
"
text
"
id
=
"
proposal{{productId}}
"
name
=
"
proposal{{productId}}
"
win
-
verify
=
"
required|number
"
placeholder
=
"
请输入采购或生产数量
"
class
=
"
layui-input
"
/>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录