Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Skyeye云
Skyeye
提交
4c849fba
S
Skyeye
项目概览
Skyeye云
/
Skyeye
通知
1283
Star
158
Fork
129
代码
文件
提交
分支
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看板
提交
4c849fba
编写于
5月 25, 2024
作者:
L
LAPTOP-UV1MNL38\18023
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat:新增采购申请的定价布局
上级
ddb0e773
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
52 addition
and
8 deletion
+52
-8
erp/src/main/resources/template/js/purchaseRequest/purchaseRequestList.js
...ources/template/js/purchaseRequest/purchaseRequestList.js
+40
-6
erp/src/main/resources/template/tpl/purchaseRequest/purchaseRequestList.html
...ces/template/tpl/purchaseRequest/purchaseRequestList.html
+9
-2
web/src/main/resources/template/json/language.json
web/src/main/resources/template/json/language.json
+3
-0
未找到文件。
erp/src/main/resources/template/js/purchaseRequest/purchaseRequestList.js
浏览文件 @
4c849fba
...
...
@@ -34,6 +34,9 @@ layui.config({
{
field
:
'
fromTypeId
'
,
title
:
'
单据来源
'
,
width
:
90
,
templet
:
function
(
d
)
{
return
skyeyeClassEnumUtil
.
getEnumDataNameByCodeAndKey
(
"
purchaseRequestFromType
"
,
'
id
'
,
d
.
fromTypeId
,
'
name
'
);
}},
{
field
:
'
projectMation
'
,
title
:
'
项目
'
,
align
:
'
left
'
,
width
:
150
,
templet
:
function
(
d
)
{
return
getNotUndefinedVal
(
d
.
projectMation
?.
name
);
}},
{
field
:
'
totalPrice
'
,
title
:
'
合计金额
'
,
align
:
'
left
'
,
width
:
120
},
{
field
:
'
operTime
'
,
title
:
'
单据日期
'
,
align
:
'
center
'
,
width
:
140
},
{
field
:
'
inquiryState
'
,
title
:
'
询价状态
'
,
width
:
90
,
templet
:
function
(
d
)
{
...
...
@@ -71,6 +74,10 @@ layui.config({
activitiUtil
.
activitiDetails
(
data
);
}
else
if
(
layEvent
===
'
revoke
'
)
{
//撤销
revoke
(
data
);
}
else
if
(
layEvent
===
'
inquiry
'
)
{
//询价
inquiry
(
data
);
}
else
if
(
layEvent
===
'
fixedPrice
'
)
{
//定价
fixedPrice
(
data
);
}
});
...
...
@@ -92,9 +99,9 @@ layui.config({
layer
.
confirm
(
systemLanguage
[
"
com.skyeye.deleteOperationMsg
"
][
languageType
],
{
icon
:
3
,
title
:
systemLanguage
[
"
com.skyeye.deleteOperation
"
][
languageType
]},
function
(
index
)
{
layer
.
close
(
index
);
AjaxPostUtil
.
request
({
url
:
sysMainMation
.
erpBasePath
+
"
deletePurchaseRequest
"
,
params
:
{
id
:
data
.
id
},
type
:
'
json
'
,
method
:
"
DELETE
"
,
callback
:
function
(
json
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.deleteOperationSuccessMsg
"
][
languageType
],
{
icon
:
1
,
time
:
2000
});
loadTable
();
}});
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.deleteOperationSuccessMsg
"
][
languageType
],
{
icon
:
1
,
time
:
2000
});
loadTable
();
}});
});
}
...
...
@@ -111,6 +118,33 @@ layui.config({
}});
}
// 询价
function
inquiry
(
data
)
{
_openNewWindows
({
url
:
systemCommonUtil
.
getUrl
(
'
FP2024052400005&id=
'
+
data
.
id
,
null
),
title
:
systemLanguage
[
"
com.skyeye.inquiryPageTitle
"
][
languageType
],
pageId
:
"
purchaseRequestInquiry
"
,
area
:
[
'
90vw
'
,
'
90vh
'
],
callBack
:
function
(
refreshCode
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.successfulOperation
"
][
languageType
],
{
icon
:
1
,
time
:
2000
});
loadTable
();
}});
}
//定价
function
fixedPrice
(
data
){
_openNewWindows
({
url
:
systemCommonUtil
.
getUrl
(
'
FP2024052500001&id=
'
+
data
.
id
,
null
),
title
:
systemLanguage
[
"
com.skyeye.fixedPricePageTitle
"
][
languageType
],
pageId
:
"
purchaseRequestFixedPrice
"
,
area
:
[
'
90vw
'
,
'
90vh
'
],
callBack
:
function
(
refreshCode
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.successfulOperation
"
][
languageType
],
{
icon
:
1
,
time
:
2000
});
loadTable
();
}});
}
// 详情
function
details
(
data
)
{
_openNewWindows
({
...
...
@@ -127,9 +161,9 @@ layui.config({
layer
.
confirm
(
'
确认撤销该申请吗?
'
,
{
icon
:
3
,
title
:
'
撤销操作
'
},
function
(
index
)
{
layer
.
close
(
index
);
AjaxPostUtil
.
request
({
url
:
sysMainMation
.
erpBasePath
+
"
revokePurchaseRequest
"
,
params
:
{
processInstanceId
:
data
.
processInstanceId
},
type
:
'
json
'
,
method
:
"
PUT
"
,
callback
:
function
(
json
)
{
winui
.
window
.
msg
(
"
提交成功
"
,
{
icon
:
1
,
time
:
2000
});
loadTable
();
}});
winui
.
window
.
msg
(
"
提交成功
"
,
{
icon
:
1
,
time
:
2000
});
loadTable
();
}});
});
}
...
...
erp/src/main/resources/template/tpl/purchaseRequest/purchaseRequestList.html
浏览文件 @
4c849fba
...
...
@@ -33,8 +33,15 @@
{{
#
}
}}
{{
#
}
}}
{{
#
if
(
d
.
state
==
'
pass
'
)
{
}}
{{
#
if
(
auth
(
'
1571812784641
'
)){
}}
<
a
class
=
"
layui-btn layui-btn-xs
"
lay
-
event
=
"
turnPurchase
"
>
转采购入库
<
/a
>
{{
#
if
(
d
.
inquiryState
==
2
||
d
.
inquiryState
==
3
)
{
}}
{{
#
if
(
auth
(
'
1716560596026
'
)){
}}
<
a
class
=
"
layui-btn layui-btn-xs
"
lay
-
event
=
"
inquiry
"
>
询价
<
/a
>
{{
#
}
}}
{{
#
}
}}
{{
#
if
(
d
.
inquiryState
==
3
)
{
}}
{{
#
if
(
auth
(
'
1716620356873
'
)){
}}
<
a
class
=
"
layui-btn layui-btn-xs
"
lay
-
event
=
"
fixedPrice
"
>
定价
<
/a
>
{{
#
}
}}
{{
#
}
}}
{{
#
}
}}
</script>
...
...
web/src/main/resources/template/json/language.json
浏览文件 @
4c849fba
...
...
@@ -40,6 +40,9 @@
"com.skyeye.editBtn"
:
{
"zh"
:
"编辑"
,
"cn"
:
"Edit"
},
"com.skyeye.editPageTitle"
:
{
"zh"
:
"编辑"
,
"cn"
:
"Edit"
},
"com.skyeye.inquiryPageTitle"
:
{
"zh"
:
"询价"
,
"cn"
:
"Inquiry"
},
"com.skyeye.fixedPricePageTitle"
:
{
"zh"
:
"定价"
,
"cn"
:
"fixedPrice"
},
"com.skyeye.enableBtn"
:
{
"zh"
:
"启用"
,
"cn"
:
"Enable"
},
"com.skyeye.enableOperation"
:
{
"zh"
:
"启用操作"
,
"cn"
:
"Enable Operation"
},
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录