Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Skyeye云
Skyeye
提交
68db6561
S
Skyeye
项目概览
Skyeye云
/
Skyeye
通知
1406
Star
161
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看板
提交
68db6561
编写于
6月 09, 2024
作者:
L
LAPTOP-UV1MNL38\18023
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat:新增采购枚举
上级
a9a12697
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
41 addition
and
4 deletion
+41
-4
erp/src/main/resources/template/js/supplierContract/contractToOrder.js
...resources/template/js/supplierContract/contractToOrder.js
+21
-1
erp/src/main/resources/template/js/supplierContract/supplierContractList.js
...rces/template/js/supplierContract/supplierContractList.js
+10
-1
erp/src/main/resources/template/tpl/supplierContract/supplierContractList.html
...s/template/tpl/supplierContract/supplierContractList.html
+3
-0
web/src/main/resources/template/assets/lib/layui/customer/skyeye/dsFormUtil.js
...s/template/assets/lib/layui/customer/skyeye/dsFormUtil.js
+5
-1
web/src/main/resources/template/json/skyeyeClassEnum.json
web/src/main/resources/template/json/skyeyeClassEnum.json
+2
-1
未找到文件。
erp/src/main/resources/template/js/supplierContract/contractToOrder.js
浏览文件 @
68db6561
...
...
@@ -19,18 +19,38 @@ layui.config({
AjaxPostUtil
.
request
({
url
:
sysMainMation
.
erpBasePath
+
"
querySupplierContractTransById
"
,
params
:
{
id
:
id
},
type
:
'
json
'
,
method
:
'
GET
'
,
callback
:
function
(
json
)
{
let
data
=
json
.
bean
;
data
.
erpOrderItemList
=
data
.
supplierContractChildList
console
.
log
(
data
)
// 采购订单的【编辑布局】
dsFormUtil
.
initEditPageForStatic
(
'
content
'
,
'
FP2023042000002
'
,
data
,
{
savePreParams
:
function
(
params
)
{
params
.
xxx
=
"
123213213213213213213213
"
params
.
holderId
=
data
.
objectId
params
.
holderKey
=
data
.
objectKey
params
.
id
=
id
},
saveData
:
function
(
params
)
{
// 保存数据
AjaxPostUtil
.
request
({
url
:
sysMainMation
.
erpBasePath
+
"
supplierContractToOrder
"
,
params
:
params
,
type
:
'
json
'
,
method
:
"
POST
"
,
callback
:
function
(
json
)
{
parent
.
layer
.
close
(
index
);
parent
.
refreshCode
=
'
0
'
;
}});
},
loadComponentCallback
:
function
()
{
$
(
"
div[controlType='supplier']
"
).
remove
();
$
(
"
div[controlType='purchaseOrderFromType']
"
).
remove
();
},
tableAddRowCallback
:
function
(
tableId
)
{
$
(
"
#addRow
"
+
tableId
).
remove
();
$
(
"
div[controlType='simpleTable']
"
).
find
(
"
.unitPrice
"
).
prop
(
'
disabled
'
,
true
);
$
(
"
div[controlType='simpleTable']
"
).
find
(
"
.amountOfMoney
"
).
prop
(
'
disabled
'
,
true
);
$
(
"
div[controlType='simpleTable']
"
).
find
(
"
.taxRate
"
).
prop
(
'
disabled
'
,
true
);
$
(
"
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
(
"
.chooseProductBtn
"
).
prop
(
'
disabled
'
,
true
);
$
(
"
div[controlType='simpleTable']
"
).
find
(
"
select
"
).
prop
(
'
disabled
'
,
true
);
}
...
...
erp/src/main/resources/template/js/supplierContract/supplierContractList.js
浏览文件 @
68db6561
...
...
@@ -46,6 +46,9 @@ layui.config({
{
field
:
'
state
'
,
title
:
'
状态
'
,
rowspan
:
'
2
'
,
width
:
90
,
templet
:
function
(
d
)
{
return
skyeyeClassEnumUtil
.
getEnumDataNameByCodeAndKey
(
"
supplierContractStateEnum
"
,
'
id
'
,
d
.
state
,
'
name
'
);
}},
{
field
:
'
childState
'
,
title
:
'
合同产品状态
'
,
rowspan
:
'
2
'
,
width
:
150
,
templet
:
function
(
d
)
{
return
skyeyeClassEnumUtil
.
getEnumDataNameByCodeAndKey
(
"
supplierContractChildStateEnum
"
,
'
id
'
,
d
.
childState
,
'
name
'
);
}},
{
field
:
'
createName
'
,
title
:
systemLanguage
[
"
com.skyeye.createName
"
][
languageType
],
rowspan
:
'
2
'
,
align
:
'
left
'
,
width
:
120
},
{
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
},
...
...
@@ -75,6 +78,9 @@ layui.config({
if
(
authPermission
[
'
perform
'
])
{
str
+=
'
<a class="layui-btn layui-btn-xs" lay-event="perform">执行</a>
'
;
}
if
(
d
.
childState
==
"
pendingOrder
"
||
d
.
childState
==
"
partialRelease
"
){
str
+=
'
<a class="layui-btn layui-btn-xs" lay-event="contractToOrder">转采购订单</a>
'
;
}
}
if
(
d
.
state
==
'
executing
'
)
{
if
(
authPermission
[
'
close
'
])
{
...
...
@@ -83,6 +89,9 @@ layui.config({
if
(
authPermission
[
'
layAside
'
])
{
str
+=
'
<a class="layui-btn layui-btn-xs layui-btn-danger" lay-event="shelve">搁置</a>
'
;
}
if
(
d
.
childState
==
"
pendingOrder
"
||
d
.
childState
==
"
partialRelease
"
)
{
str
+=
'
<a class="layui-btn layui-btn-xs" lay-event="contractToOrder">转采购订单</a>
'
;
}
}
if
(
d
.
state
==
'
layAside
'
)
{
if
(
authPermission
[
'
recovery
'
])
{
...
...
@@ -90,7 +99,7 @@ layui.config({
}
}
str
+=
'
<a class="layui-btn layui-btn-xs" lay-event="contractToOrder">转采购订单</a>
'
;
return
str
;
}}
...
...
erp/src/main/resources/template/tpl/supplierContract/supplierContractList.html
浏览文件 @
68db6561
...
...
@@ -7,6 +7,9 @@
<link
href=
"../../assets/lib/winui/css/winui.css"
rel=
"stylesheet"
/>
</head>
<body>
<div
class=
"winui-tip alert-info"
id=
"showInfo"
>
只有执行中或者审核通过的订单且合同产品状态为待下达或部分下单才可转采购订单
</div>
<div
class=
"winui-toolbar"
>
<div
class=
"winui-tool"
>
<button
id=
"reloadTable"
class=
"winui-toolbtn search-table-btn-right"
><i
class=
"fa fa-refresh"
aria-hidden=
"true"
></i><language
showName=
"com.skyeye.refreshDataBtn"
></language></button>
...
...
web/src/main/resources/template/assets/lib/layui/customer/skyeye/dsFormUtil.js
浏览文件 @
68db6561
...
...
@@ -71,7 +71,11 @@ var dsFormUtil = {
// 保存数据的回调函数
saveData
:
null
,
// 组件加载完成的回调函数
loadComponentCallback
:
function
()
{}
loadComponentCallback
:
function
()
{},
// 表格组件新增行之后的回调事件
tableAddRowCallback
:
null
,
// 表格组件删除行之后的回调事件
tableDeleteRowCallback
:
null
},
pageMation
:
{},
...
...
web/src/main/resources/template/json/skyeyeClassEnum.json
浏览文件 @
68db6561
...
...
@@ -193,5 +193,6 @@
"purchaseRequestChildInquiry"
:
{
"name"
:
"ERP-申请单子单据明细是否询价"
,
"className"
:
"skyeye-erp#com.skyeye.request.classenum.PurchaseRequestChildInquiry"
},
"purchaseRequestFromType"
:
{
"name"
:
"ERP-采购申请单来源单据"
,
"className"
:
"skyeye-erp#com.skyeye.request.classenum.PurchaseRequestFromType"
},
"purchaseRequestInquiryState"
:
{
"name"
:
"ERP-采购申请单询价状态"
,
"className"
:
"skyeye-erp#com.skyeye.request.classenum.PurchaseRequestInquiryState"
},
"purchaseRequestStateEnum"
:
{
"name"
:
"ERP-采购申请状态"
,
"className"
:
"skyeye-erp#com.skyeye.request.classenum.PurchaseRequestStateEnum"
}
"purchaseRequestStateEnum"
:
{
"name"
:
"ERP-采购申请状态"
,
"className"
:
"skyeye-erp#com.skyeye.request.classenum.PurchaseRequestStateEnum"
},
"supplierContractChildStateEnum"
:
{
"name"
:
"ERP-采购合同是否转采购订单状态"
,
"className"
:
"skyeye-erp#com.skyeye.contract.classenum.SupplierContractChildStateEnum"
}
}
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录