提交 4c849fba 编写于 作者: L LAPTOP-UV1MNL38\18023

feat:新增采购申请的定价布局

上级 ddb0e773
...@@ -34,6 +34,9 @@ layui.config({ ...@@ -34,6 +34,9 @@ layui.config({
{ field: 'fromTypeId', title: '单据来源', width: 90, templet: function (d) { { field: 'fromTypeId', title: '单据来源', width: 90, templet: function (d) {
return skyeyeClassEnumUtil.getEnumDataNameByCodeAndKey("purchaseRequestFromType", 'id', d.fromTypeId, 'name'); 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: 'totalPrice', title: '合计金额', align: 'left', width: 120 },
{ field: 'operTime', title: '单据日期', align: 'center', width: 140 }, { field: 'operTime', title: '单据日期', align: 'center', width: 140 },
{ field: 'inquiryState', title: '询价状态', width: 90, templet: function (d) { { field: 'inquiryState', title: '询价状态', width: 90, templet: function (d) {
...@@ -71,6 +74,10 @@ layui.config({ ...@@ -71,6 +74,10 @@ layui.config({
activitiUtil.activitiDetails(data); activitiUtil.activitiDetails(data);
} else if (layEvent === 'revoke') { //撤销 } else if (layEvent === 'revoke') { //撤销
revoke(data); revoke(data);
}else if (layEvent === 'inquiry') { //询价
inquiry(data);
}else if (layEvent === 'fixedPrice') { //定价
fixedPrice(data);
} }
}); });
...@@ -92,9 +99,9 @@ layui.config({ ...@@ -92,9 +99,9 @@ layui.config({
layer.confirm(systemLanguage["com.skyeye.deleteOperationMsg"][languageType], {icon: 3, title: systemLanguage["com.skyeye.deleteOperation"][languageType]}, function (index) { layer.confirm(systemLanguage["com.skyeye.deleteOperationMsg"][languageType], {icon: 3, title: systemLanguage["com.skyeye.deleteOperation"][languageType]}, function (index) {
layer.close(index); layer.close(index);
AjaxPostUtil.request({url: sysMainMation.erpBasePath + "deletePurchaseRequest", params: {id: data.id}, type: 'json', method: "DELETE", callback: function (json) { 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}); winui.window.msg(systemLanguage["com.skyeye.deleteOperationSuccessMsg"][languageType], {icon: 1, time: 2000});
loadTable(); loadTable();
}}); }});
}); });
} }
...@@ -111,6 +118,33 @@ layui.config({ ...@@ -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) { function details(data) {
_openNewWindows({ _openNewWindows({
...@@ -127,9 +161,9 @@ layui.config({ ...@@ -127,9 +161,9 @@ layui.config({
layer.confirm('确认撤销该申请吗?', { icon: 3, title: '撤销操作' }, function (index) { layer.confirm('确认撤销该申请吗?', { icon: 3, title: '撤销操作' }, function (index) {
layer.close(index); layer.close(index);
AjaxPostUtil.request({url: sysMainMation.erpBasePath + "revokePurchaseRequest", params: {processInstanceId: data.processInstanceId}, type: 'json', method: "PUT", callback: function (json) { AjaxPostUtil.request({url: sysMainMation.erpBasePath + "revokePurchaseRequest", params: {processInstanceId: data.processInstanceId}, type: 'json', method: "PUT", callback: function (json) {
winui.window.msg("提交成功", {icon: 1, time: 2000}); winui.window.msg("提交成功", {icon: 1, time: 2000});
loadTable(); loadTable();
}}); }});
}); });
} }
......
...@@ -33,8 +33,15 @@ ...@@ -33,8 +33,15 @@
{{# } }} {{# } }}
{{# } }} {{# } }}
{{# if(d.state == 'pass') { }} {{# if(d.state == 'pass') { }}
{{# if(auth('1571812784641')){ }} {{# if(d.inquiryState == 2 || d.inquiryState == 3) { }}
<a class="layui-btn layui-btn-xs" lay-event="turnPurchase">转采购入库</a> {{# 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> </script>
......
...@@ -40,6 +40,9 @@ ...@@ -40,6 +40,9 @@
"com.skyeye.editBtn": {"zh": "编辑", "cn": "Edit"}, "com.skyeye.editBtn": {"zh": "编辑", "cn": "Edit"},
"com.skyeye.editPageTitle": {"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.enableBtn": {"zh": "启用", "cn": "Enable"},
"com.skyeye.enableOperation": {"zh": "启用操作", "cn": "Enable Operation"}, "com.skyeye.enableOperation": {"zh": "启用操作", "cn": "Enable Operation"},
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册