Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
doc_wei
Skyeye
提交
4830e43a
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看板
提交
4830e43a
编写于
6月 08, 2024
作者:
doc_wei
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat: 采购合同转采购订单修改
上级
79326685
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
195 addition
and
25 deletion
+195
-25
erp/src/main/resources/template/js/purchaseRequest/transferToPurchaseOrder.js
...es/template/js/purchaseRequest/transferToPurchaseOrder.js
+0
-0
erp/src/main/resources/template/js/supplierContract/contractToOrder.js
...resources/template/js/supplierContract/contractToOrder.js
+40
-0
erp/src/main/resources/template/js/supplierContract/supplierContractList.js
...rces/template/js/supplierContract/supplierContractList.js
+18
-0
erp/src/main/resources/template/tpl/purchaseRequest/transferToPurchaseOrder.html
...template/tpl/purchaseRequest/transferToPurchaseOrder.html
+0
-10
erp/src/main/resources/template/tpl/supplierContract/contractToOrder.html
...ources/template/tpl/supplierContract/contractToOrder.html
+29
-0
web/src/main/resources/template/assets/lib/layui/customer/skyeye/dsFormUtil.js
...s/template/assets/lib/layui/customer/skyeye/dsFormUtil.js
+79
-11
web/src/main/resources/template/assets/lib/layui/customer/tableUtil/initTableChooseUtil.js
...ssets/lib/layui/customer/tableUtil/initTableChooseUtil.js
+1
-1
web/src/main/resources/template/assets/lib/winui/css/customer/skyeye-theme-color.css
...late/assets/lib/winui/css/customer/skyeye-theme-color.css
+1
-0
web/src/main/resources/template/assets/lib/winui/css/winui.css
...rc/main/resources/template/assets/lib/winui/css/winui.css
+27
-3
未找到文件。
erp/src/main/resources/template/js/purchaseRequest/transferToPurchaseOrder.js
已删除
100644 → 0
浏览文件 @
79326685
erp/src/main/resources/template/js/supplierContract/contractToOrder.js
0 → 100644
浏览文件 @
4830e43a
// 以下两个参数开启团队权限时有值
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
+
"
querySupplierContractTransById
"
,
params
:
{
id
:
id
},
type
:
'
json
'
,
method
:
'
GET
'
,
callback
:
function
(
json
)
{
let
data
=
json
.
bean
;
data
.
erpOrderItemList
=
data
.
supplierContractChildList
// 采购订单的【编辑布局】
dsFormUtil
.
initEditPageForStatic
(
'
content
'
,
'
FP2023042000002
'
,
data
,
{
savePreParams
:
function
(
params
)
{
params
.
xxx
=
"
123213213213213213213213
"
},
saveData
:
function
(
params
)
{
// 保存数据
},
loadComponentCallback
:
function
()
{
$
(
"
div[controlType='supplier']
"
).
remove
();
$
(
"
div[controlType='purchaseOrderFromType']
"
).
remove
();
}
});
}});
});
\ No newline at end of file
erp/src/main/resources/template/js/supplierContract/supplierContractList.js
浏览文件 @
4830e43a
...
...
@@ -88,6 +88,9 @@ layui.config({
str
+=
'
<a class="layui-btn layui-btn-xs" lay-event="recovery">恢复</a>
'
;
}
}
str
+=
'
<a class="layui-btn layui-btn-xs" lay-event="contractToOrder">转采购订单</a>
'
;
return
str
;
}}
]],
...
...
@@ -124,6 +127,8 @@ layui.config({
recovery
(
data
);
}
else
if
(
layEvent
===
'
revoke
'
)
{
//撤销
revoke
(
data
);
}
else
if
(
layEvent
===
'
contractToOrder
'
)
{
// 转采购订单
contractToOrder
(
data
);
}
});
...
...
@@ -153,6 +158,19 @@ layui.config({
}});
}
// 转采购订单
function
contractToOrder
(
data
)
{
parent
.
_openNewWindows
({
url
:
"
../../tpl/supplierContract/contractToOrder.html?id=
"
+
data
.
id
,
title
:
'
转采购订单
'
,
pageId
:
"
contractToOrder
"
,
area
:
[
'
90vw
'
,
'
90vh
'
],
callBack
:
function
(
refreshCode
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.successfulOperation
"
][
languageType
],
{
icon
:
1
,
time
:
2000
});
loadTable
();
}});
}
// 详情
function
details
(
data
)
{
parent
.
_openNewWindows
({
...
...
erp/src/main/resources/template/tpl/purchaseRequest/transferToPurchaseOrder.html
已删除
100644 → 0
浏览文件 @
79326685
<!DOCTYPE html>
<html
lang=
"en"
>
<head>
<meta
charset=
"UTF-8"
>
<title>
Title
</title>
</head>
<body>
</body>
</html>
\ No newline at end of file
erp/src/main/resources/template/tpl/supplierContract/contractToOrder.html
0 → 100644
浏览文件 @
4830e43a
<!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/supplierContract/
'
}).
use
(
'
contractToOrder
'
);
</script>
</body>
</html>
\ No newline at end of file
web/src/main/resources/template/assets/lib/layui/customer/skyeye/dsFormUtil.js
浏览文件 @
4830e43a
...
...
@@ -65,6 +65,15 @@ var dsFormUtil = {
{{/bean}}`
,
// Id转Mation取值转换后的展示(用户组件)
},
options
:
{
// 保存之前的回调函数
savePreParams
:
function
(
params
)
{},
// 保存数据的回调函数
saveData
:
null
,
// 组件加载完成的回调函数
loadComponentCallback
:
function
()
{}
},
pageMation
:
{},
getBusinessData
:
function
(
businessId
,
serviceClassName
,
callback
)
{
...
...
@@ -145,6 +154,11 @@ var dsFormUtil = {
dsFormUtil
.
loadComponent
(
showBoxId
,
dsFormContent
);
}
});
if
(
typeof
(
dsFormUtil
.
options
.
loadComponentCallback
)
==
"
function
"
)
{
dsFormUtil
.
options
.
loadComponentCallback
();
}
matchingLanguage
();
form
.
render
();
...
...
@@ -152,6 +166,52 @@ var dsFormUtil = {
});
},
/**
* 加载动态表单(编辑操作---自定义数据)
*
* @param showBoxId 显示位置
* @param pageId 布局id/布局编码
* @param data 业务数据
* @param newOptions 配置参数
*/
initEditPageForStatic
:
function
(
showBoxId
,
pageId
,
data
,
newOptions
)
{
if
(
!
isNull
(
newOptions
))
{
for
(
var
pro
in
newOptions
)
{
dsFormUtil
.
options
[
pro
]
=
newOptions
[
pro
];
}
}
dsFormUtil
.
getPageMation
(
pageId
,
function
(
pageMation
)
{
dsFormUtil
.
initEditPage
(
showBoxId
,
pageMation
,
data
);
})
},
getPageMation
:
function
(
pageId
,
callback
)
{
AjaxPostUtil
.
request
({
url
:
reqBasePath
+
"
dsformpage006
"
,
params
:
{
id
:
pageId
},
type
:
'
json
'
,
method
:
'
GET
'
,
callback
:
function
(
json
)
{
let
pageMation
=
json
.
bean
;
if
(
isNull
(
pageMation
))
{
winui
.
window
.
msg
(
"
该布局信息不存在
"
,
{
icon
:
2
,
time
:
2000
});
return
false
;
}
else
{
if
(
pageMation
.
serviceBeanCustom
.
serviceBean
.
teamAuth
)
{
objectKey
=
GetUrlParam
(
"
objectKey
"
);
objectId
=
GetUrlParam
(
"
objectId
"
);
if
(
isNull
(
objectKey
)
||
isNull
(
objectId
))
{
winui
.
window
.
msg
(
"
请传入适用对象信息
"
,
{
icon
:
2
,
time
:
2000
});
return
false
;
}
else
{
if
(
typeof
(
callback
)
==
"
function
"
)
{
callback
(
pageMation
);
}
}
}
else
{
if
(
typeof
(
callback
)
==
"
function
"
)
{
callback
(
pageMation
);
}
}
}
}});
},
// 获取业务数据中实际的值
getValueDataFromBusinessForEdit
:
function
(
content
,
data
)
{
var
attrDefinition
=
content
.
attrDefinition
;
...
...
@@ -320,17 +380,25 @@ var dsFormUtil = {
params
[
"
approvalId
"
]
=
approvalId
;
}
// 发送请求
dsFormUtil
.
sendRequest
({
businessApi
:
dsFormUtil
.
pageMation
.
businessApi
,
params
:
params
,
loadTable
:
false
,
callback
:
function
()
{
var
index
=
parent
.
layer
.
getFrameIndex
(
window
.
name
);
parent
.
layer
.
close
(
index
);
parent
.
refreshCode
=
'
0
'
;
}
});
if
(
typeof
(
dsFormUtil
.
options
.
savePreParams
)
==
"
function
"
)
{
dsFormUtil
.
options
.
savePreParams
(
params
);
}
if
(
dsFormUtil
.
options
.
saveData
!=
null
&&
typeof
(
dsFormUtil
.
options
.
saveData
)
==
"
function
"
)
{
dsFormUtil
.
options
.
saveData
(
params
);
}
else
{
// 发送请求
dsFormUtil
.
sendRequest
({
businessApi
:
dsFormUtil
.
pageMation
.
businessApi
,
params
:
params
,
loadTable
:
false
,
callback
:
function
()
{
var
index
=
parent
.
layer
.
getFrameIndex
(
window
.
name
);
parent
.
layer
.
close
(
index
);
parent
.
refreshCode
=
'
0
'
;
}
});
}
},
/**
...
...
web/src/main/resources/template/assets/lib/layui/customer/tableUtil/initTableChooseUtil.js
浏览文件 @
4830e43a
...
...
@@ -116,7 +116,7 @@ var initTableChooseUtil = {
}
else
if
(
item
.
formType
==
'
textarea
'
)
{
tbodyStr
+=
'
<td><textarea style="height: 100px;" class="layui-textarea
'
+
className
+
'
" value="
'
+
value
+
'
" id="
'
+
tdId
+
'
" win-verify="
'
+
verify
+
'
"></textarea></td>
'
;
}
else
if
(
item
.
formType
==
'
chooseInput
'
)
{
tbodyStr
+=
'
<td><input type="text" class="layui-input
'
+
className
+
'
" value="
'
+
value
+
'
" id="
'
+
tdId
+
'
" win-verify="
'
+
verify
+
'
" readonly="readonly"/>
'
+
tbodyStr
+=
'
<td
class="input-add-icon"
><input type="text" class="layui-input
'
+
className
+
'
" value="
'
+
value
+
'
" id="
'
+
tdId
+
'
" win-verify="
'
+
verify
+
'
" readonly="readonly"/>
'
+
'
<i class="fa fa-plus-circle input-icon add-icon
'
+
item
.
iconClassName
+
'
"></i></td>
'
;
}
else
if
(
item
.
formType
==
'
select
'
)
{
var
modelHtml
=
isNull
(
item
.
modelHtml
)
?
""
:
item
.
modelHtml
;
...
...
web/src/main/resources/template/assets/lib/winui/css/customer/skyeye-theme-color.css
浏览文件 @
4830e43a
...
...
@@ -162,6 +162,7 @@
--tile-color
:
#0078D7
;
--taskbar-btnhover-color
:
#195583
;
--start-btn-color
:
#429CE3
;
position
:
relative
;
}
.winui-color32
{
...
...
web/src/main/resources/template/assets/lib/winui/css/winui.css
浏览文件 @
4830e43a
...
...
@@ -1517,7 +1517,7 @@ body .layer-ext-winconfirm .layui-layer-content {
.ver-center
{
align-items
:
Center
;
padding-top
:
8px
;
min-height
:
3
2
px
;
min-height
:
3
3
px
;
font-family
:
initial
;
}
...
...
@@ -6404,9 +6404,33 @@ body .layer-ext-winconfirm .layui-layer-content {
margin-left
:
2px
;
}
.input-icon
{
.input-add-icon
>
input
{
width
:
calc
(
100%
-
30px
);
border-radius
:
0.25rem
0
0
0.25rem
;
}
/* 当鼠标悬停在 input 上时,修改紧跟在其后的兄弟元素 i 的样式 */
.input-add-icon
>
input
:hover
+
i
{
border-color
:
#80bdff
!important
;
}
.input-add-icon
>
i
{
position
:
absolute
;
top
:
0px
;
right
:
0px
;
cursor
:
pointer
;
color
:
gray
;
height
:
16px
!important
;
width
:
16px
;
padding
:
6px
;
border
:
1px
solid
#e6e6e6
;
border-left
:
0px
;
border-radius
:
0
0.25rem
0.25rem
0
;
}
.input-icon
{
position
:
absolute
;
top
:
8px
;
top
:
8px
;
right
:
8px
;
cursor
:
pointer
;
color
:
gray
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录