Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
doc_wei
Skyeye
提交
f35c18a3
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看板
提交
f35c18a3
编写于
7月 19, 2024
作者:
L
LAPTOP-UV1MNL38\18023
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat:销售订单转预生产计划
上级
4ac704d2
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
112 addition
and
1 deletion
+112
-1
erp/src/main/resources/template/js/materialCode/materialCodeReportList.js
...ources/template/js/materialCode/materialCodeReportList.js
+3
-0
erp/src/main/resources/template/js/salesOrder/salesOrderList.js
...c/main/resources/template/js/salesOrder/salesOrderList.js
+16
-1
erp/src/main/resources/template/js/salesOrder/salesOrderToOutlet.js
...in/resources/template/js/salesOrder/salesOrderToOutlet.js
+6
-0
erp/src/main/resources/template/js/salesOrder/salesOrderToPreProductionPlan.js
...s/template/js/salesOrder/salesOrderToPreProductionPlan.js
+45
-0
erp/src/main/resources/template/js/salesOrder/salesOrderToReturns.js
...n/resources/template/js/salesOrder/salesOrderToReturns.js
+7
-0
erp/src/main/resources/template/tpl/salesOrder/salesOrderList.html
...ain/resources/template/tpl/salesOrder/salesOrderList.html
+5
-0
erp/src/main/resources/template/tpl/salesOrder/salesOrderToPreProductionPlan.html
...emplate/tpl/salesOrder/salesOrderToPreProductionPlan.html
+29
-0
web/src/main/resources/template/json/skyeyeClassEnum.json
web/src/main/resources/template/json/skyeyeClassEnum.json
+1
-0
未找到文件。
erp/src/main/resources/template/js/materialCode/materialCodeReportList.js
浏览文件 @
f35c18a3
...
...
@@ -47,6 +47,9 @@ layui.config({
{
field
:
'
barCodeMation
'
,
title
:
'
条形码
'
,
align
:
'
center
'
,
width
:
150
,
templet
:
function
(
d
)
{
return
'
<img src="
'
+
systemCommonUtil
.
getFilePath
(
d
.
barCodeMation
.
imagePath
)
+
'
" class="photo-img" lay-event="barCode" style="width: 100px">
'
;
}},
{
field
:
'
type
'
,
title
:
'
类型
'
,
align
:
'
center
'
,
width
:
100
,
templet
:
function
(
d
)
{
return
skyeyeClassEnumUtil
.
getEnumDataNameByCodeAndKey
(
"
materialNormsCodeType
"
,
'
id
'
,
d
.
type
,
'
name
'
);
}},
{
field
:
'
inDepot
'
,
title
:
'
状态
'
,
align
:
'
center
'
,
width
:
100
,
templet
:
function
(
d
)
{
return
skyeyeClassEnumUtil
.
getEnumDataNameByCodeAndKey
(
"
materialNormsCodeInDepot
"
,
'
id
'
,
d
.
inDepot
,
'
name
'
);
}},
...
...
erp/src/main/resources/template/js/salesOrder/salesOrderList.js
浏览文件 @
f35c18a3
...
...
@@ -43,7 +43,7 @@ layui.config({
{
field
:
'
createTime
'
,
title
:
systemLanguage
[
"
com.skyeye.createTime
"
][
languageType
],
rowspan
:
'
2
'
,
align
:
'
center
'
,
width
:
150
},
{
field
:
'
lastUpdateName
'
,
title
:
systemLanguage
[
"
com.skyeye.lastUpdateName
"
][
languageType
],
rowspan
:
'
2
'
,
align
:
'
left
'
,
width
:
120
},
{
field
:
'
lastUpdateTime
'
,
title
:
systemLanguage
[
"
com.skyeye.lastUpdateTime
"
][
languageType
],
rowspan
:
'
2
'
,
align
:
'
center
'
,
width
:
150
},
{
title
:
systemLanguage
[
"
com.skyeye.operation
"
][
languageType
],
rowspan
:
'
2
'
,
fixed
:
'
right
'
,
align
:
'
center
'
,
width
:
2
00
,
toolbar
:
'
#tableBar
'
}
{
title
:
systemLanguage
[
"
com.skyeye.operation
"
][
languageType
],
rowspan
:
'
2
'
,
fixed
:
'
right
'
,
align
:
'
center
'
,
width
:
3
00
,
toolbar
:
'
#tableBar
'
}
],
[
{
field
:
'
fromTypeId
'
,
title
:
'
来源类型
'
,
width
:
150
,
templet
:
function
(
d
)
{
return
skyeyeClassEnumUtil
.
getEnumDataNameByCodeAndKey
(
"
purchaseOrderFromType
"
,
'
id
'
,
d
.
fromTypeId
,
'
name
'
);
...
...
@@ -79,6 +79,8 @@ layui.config({
turnSales
(
data
);
}
else
if
(
layEvent
===
'
turnReturns
'
)
{
//转销售退货单
turnReturns
(
data
);
}
else
if
(
layEvent
===
'
turnToPreProductionPlan
'
)
{
//转预生产计划单
turnToPreProductionPlan
(
data
);
}
else
if
(
layEvent
===
'
processDetails
'
)
{
// 工作流流程详情查看
activitiUtil
.
activitiDetails
(
data
);
}
else
if
(
layEvent
===
'
revoke
'
)
{
//撤销
...
...
@@ -151,6 +153,19 @@ layui.config({
}});
}
// 销售订单转预生产计划
function
turnToPreProductionPlan
(
data
)
{
_openNewWindows
({
url
:
"
../../tpl/salesOrder/salesOrderToPreProductionPlan.html?id=
"
+
data
.
id
,
title
:
"
转预生产计划
"
,
pageId
:
"
salesOrderToReturns
"
,
area
:
[
'
90vw
'
,
'
90vh
'
],
callBack
:
function
(
refreshCode
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.successfulOperation
"
][
languageType
],
{
icon
:
1
,
time
:
2000
});
loadTable
();
}});
}
form
.
render
();
$
(
"
body
"
).
on
(
"
click
"
,
"
#reloadTable
"
,
function
()
{
loadTable
();
...
...
erp/src/main/resources/template/js/salesOrder/salesOrderToOutlet.js
浏览文件 @
f35c18a3
...
...
@@ -21,6 +21,8 @@ layui.config({
// 销售出库的【编辑布局】
dsFormUtil
.
initEditPageForStatic
(
'
content
'
,
'
FP2023042700002
'
,
data
,
{
savePreParams
:
function
(
params
)
{
params
.
holderId
=
data
.
holderId
params
.
holderKey
=
data
.
holderKey
},
saveData
:
function
(
params
)
{
// 保存数据
...
...
@@ -29,6 +31,9 @@ layui.config({
parent
.
refreshCode
=
'
0
'
;
}});
},
loadComponentCallback
:
function
()
{
$
(
"
div[controlType='sealOutLetFromType']
"
).
remove
();
},
// 新增行的回调函数
tableAddRowCallback
:
function
(
tableId
)
{
...
...
@@ -40,6 +45,7 @@ layui.config({
$
(
"
div[controlType='simpleTable']
"
).
find
(
"
.taxMoney
"
).
prop
(
'
disabled
'
,
true
);
$
(
"
div[controlType='simpleTable']
"
).
find
(
"
.taxUnitPrice
"
).
prop
(
'
disabled
'
,
true
);
$
(
"
div[controlType='simpleTable']
"
).
find
(
"
.taxLastMoney
"
).
prop
(
'
disabled
'
,
true
);
$
(
"
div[controlType='simpleTable']
"
).
find
(
"
.normsId
"
).
prop
(
'
disabled
'
,
true
);
}
});
}});
...
...
erp/src/main/resources/template/js/salesOrder/salesOrderToPreProductionPlan.js
0 → 100644
浏览文件 @
f35c18a3
// 以下两个参数开启团队权限时有值
var
objectId
=
''
,
objectKey
=
''
;
// 根据以下两个参数判断:工作流的判断是否要根据serviceClassName的判断
var
serviceClassName
;
layui
.
config
({
base
:
basePath
,
version
:
skyeyeVersion
}).
extend
({
window
:
'
js/winui.window
'
}).
define
([
'
window
'
,
'
table
'
,
'
jquery
'
],
function
(
exports
)
{
winui
.
renderColor
();
var
index
=
parent
.
layer
.
getFrameIndex
(
window
.
name
);
var
$
=
layui
.
$
;
var
id
=
GetUrlParam
(
"
id
"
);
// 销售订单转预生产计划
AjaxPostUtil
.
request
({
url
:
sysMainMation
.
erpBasePath
+
"
querySealsOrderTransProductionPlanById
"
,
params
:
{
id
:
id
},
type
:
'
json
'
,
method
:
'
GET
'
,
callback
:
function
(
json
)
{
let
data
=
json
.
bean
;
data
.
productionPlanChildList
=
data
.
erpOrderItemList
// 预生产计划的【编辑布局】
dsFormUtil
.
initEditPageForStatic
(
'
content
'
,
'
FP2024071100002
'
,
data
,
{
savePreParams
:
function
(
params
)
{
},
saveData
:
function
(
params
)
{
// 保存数据
AjaxPostUtil
.
request
({
url
:
sysMainMation
.
erpBasePath
+
"
insertSealsOrderToProductionPlan
"
,
params
:
params
,
type
:
'
json
'
,
method
:
"
POST
"
,
callback
:
function
(
json
)
{
parent
.
layer
.
close
(
index
);
parent
.
refreshCode
=
'
0
'
;
}});
},
loadComponentCallback
:
function
()
{
$
(
"
div[controlType='sealOutLetFromType']
"
).
remove
();
},
// 新增行的回调函数
tableAddRowCallback
:
function
(
tableId
)
{
$
(
"
#addRow
"
+
tableId
).
remove
();
$
(
"
div[controlType='simpleTable']
"
).
find
(
"
.chooseProductBtn
"
).
prop
(
'
disabled
'
,
true
);
$
(
"
div[controlType='simpleTable']
"
).
find
(
"
.normsId
"
).
prop
(
'
disabled
'
,
true
);
}
});
}});
});
\ No newline at end of file
erp/src/main/resources/template/js/salesOrder/salesOrderToReturns.js
浏览文件 @
f35c18a3
...
...
@@ -21,8 +21,11 @@ layui.config({
// 销售退货的【编辑布局】
dsFormUtil
.
initEditPageForStatic
(
'
content
'
,
'
FP2023042700006
'
,
data
,
{
savePreParams
:
function
(
params
)
{
params
.
holderId
=
data
.
holderId
params
.
holderKey
=
data
.
holderKey
},
saveData
:
function
(
params
)
{
console
.
log
(
params
)
// 保存数据
AjaxPostUtil
.
request
({
url
:
sysMainMation
.
erpBasePath
+
"
insertSealsOrderToSealsReturns
"
,
params
:
params
,
type
:
'
json
'
,
method
:
"
POST
"
,
callback
:
function
(
json
)
{
parent
.
layer
.
close
(
index
);
...
...
@@ -30,6 +33,10 @@ layui.config({
}});
},
loadComponentCallback
:
function
()
{
$
(
"
div[controlType='sealReturnFromType']
"
).
remove
();
},
// 新增行的回调函数
tableAddRowCallback
:
function
(
tableId
)
{
$
(
"
#addRow
"
+
tableId
).
remove
();
...
...
erp/src/main/resources/template/tpl/salesOrder/salesOrderList.html
浏览文件 @
f35c18a3
...
...
@@ -42,6 +42,11 @@
<
a
class
=
"
layui-btn layui-btn-xs
"
lay
-
event
=
"
turnReturns
"
>
转销售退货
<
/a
>
{{
#
}
}}
{{
#
}
}}
{{
#
if
(
d
.
state
==
'
pass
'
||
d
.
state
==
'
partiallyCompleted
'
)
{
}}
{{
#
if
(
auth
(
'
1721375510008
'
)){
}}
<
a
class
=
"
layui-btn layui-btn-xs
"
lay
-
event
=
"
turnToPreProductionPlan
"
>
转预生产计划
<
/a
>
{{
#
}
}}
{{
#
}
}}
</script>
</div>
<script
src=
"../../assets/lib/layui/layui.js"
></script>
...
...
erp/src/main/resources/template/tpl/salesOrder/salesOrderToPreProductionPlan.html
0 → 100644
浏览文件 @
f35c18a3
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"UTF-8"
>
<title></title>
<link
href=
"../../assets/lib/layui/css/layui.css"
rel=
"stylesheet"
/>
<link
href=
"../../assets/lib/winui/css/winui.css"
rel=
"stylesheet"
/>
</head>
<body>
<div
style=
"margin:0 auto;padding:20px;"
>
<form
class=
"layui-form"
action=
""
id=
"showForm"
autocomplete=
"off"
>
<div
id=
"content"
></div>
<div
class=
"layui-form-item layui-col-xs12"
>
<div
class=
"layui-input-block"
>
<button
class=
"winui-btn"
type=
"button"
id=
"cancle"
><language
showName=
"com.skyeye.cancel"
></language></button>
<button
class=
"winui-btn"
lay-submit
lay-filter=
"formSaveDraft"
id=
"formSaveDraft"
>
保存为草稿
</button>
`
<button
class=
"winui-btn"
lay-submit
lay-filter=
"formWriteBean"
id=
"formWriteBean"
>
提交
</button>
</div>
</div>
</form>
</div>
<script
src=
"../../assets/lib/layui/layui.js"
></script>
<script
src=
"../../assets/lib/layui/custom.js"
></script>
<script
type=
"text/javascript"
>
layui
.
config
({
base
:
'
../../js/salesOrder/
'
}).
use
(
'
salesOrderToPreProductionPlan
'
);
</script>
</body>
</html>
\ No newline at end of file
web/src/main/resources/template/json/skyeyeClassEnum.json
浏览文件 @
f35c18a3
...
...
@@ -42,6 +42,7 @@
"materialFromType"
:
{
"name"
:
"商品来源类型"
,
"className"
:
"skyeye-erp#com.skyeye.material.classenum.MaterialFromType"
},
"materialItemCode"
:
{
"name"
:
"商品条形码开启类型"
,
"className"
:
"skyeye-erp#com.skyeye.material.classenum.MaterialItemCode"
},
"materialNormsCodeType"
:
{
"name"
:
"条形码商品规格类型"
,
"className"
:
"skyeye-erp#com.skyeye.material.classenum.MaterialNormsCodeType"
},
"materialType"
:
{
"name"
:
"商品类型"
,
"className"
:
"skyeye-erp#com.skyeye.material.classenum.MaterialType"
},
"materialUnit"
:
{
"name"
:
"规格类型"
,
"className"
:
"skyeye-erp#com.skyeye.material.classenum.MaterialUnit"
},
"materialNormsStockType"
:
{
"name"
:
"商品规格库存类型"
,
"className"
:
"skyeye-erp#com.skyeye.material.classenum.MaterialNormsStockType"
},
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录