提交 8c21df8f 编写于 作者: doc_wei's avatar doc_wei

feat: 转采购合同模板

上级 4c849fba
......@@ -74,10 +74,12 @@ layui.config({
activitiUtil.activitiDetails(data);
} else if (layEvent === 'revoke') { //撤销
revoke(data);
}else if (layEvent === 'inquiry') { //询价
} else if (layEvent === 'inquiry') { //询价
inquiry(data);
}else if (layEvent === 'fixedPrice') { //定价
} else if (layEvent === 'fixedPrice') { //定价
fixedPrice(data);
} else if (layEvent === 'toContract') { //转采购合同
toContract(data);
}
});
......@@ -118,6 +120,19 @@ layui.config({
}});
}
// 转采购合同
function toContract(data) {
_openNewWindows({
url: '../../tpl/purchaseRequest/requestToContract.html?id=' + data.id,
title: '采购合同',
pageId: "requestToContract",
area: ['90vw', '90vh'],
callBack: function (refreshCode) {
winui.window.msg(systemLanguage["com.skyeye.successfulOperation"][languageType], {icon: 1, time: 2000});
loadTable();
}});
}
// 询价
function inquiry(data) {
_openNewWindows({
......
layui.config({
base: basePath,
version: skyeyeVersion
}).extend({
window: 'js/winui.window'
}).define(['window', 'table', 'jquery', 'winui', 'form'], function (exports) {
winui.renderColor();
var $ = layui.$,
form = layui.form,
table = layui.table;
var id = GetUrlParam("id");
let tabList = [{
name: "tab1",
content: '内容1'
}, {
name: "tab2",
content: '内容2'
}]
$("#titleUl").html(getDataUseHandlebars('{{#rows}}<li>{{name}}</li>{{/rows}}', {rows: tabList}));
$("#contentDiv").html(getDataUseHandlebars('{{#rows}}<div class="layui-tab-item">{{content}}</div>{{/rows}}', {rows: tabList}));
});
\ No newline at end of file
......@@ -44,6 +44,7 @@
{{# } }}
{{# } }}
{{# } }}
<a class="layui-btn layui-btn-xs" lay-event="toContract">转采购合同</a>
</script>
</div>
<script src="../../assets/lib/layui/layui.js"></script>
......
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<link href="../../assets/lib/layui/css/layui.css" rel="stylesheet" />
<link href="../../assets/lib/winui/css/winui.css" rel="stylesheet" />
</head>
<body>
<div class="layui-tab">
<ul class="layui-tab-title" id="titleUl">
</ul>
<div class="layui-tab-content" id="contentDiv">
</div>
</div>
<script type="text/x-handlebars-template" id="fileMationTemplate">
{{#bean}}
{{/bean}}
</script>
<script src="../../assets/lib/layui/layui.js"></script>
<script src="../../assets/lib/layui/custom.js"></script>
<script type="text/javascript">
layui.config({base : '../../js/purchaseRequest/'}).use('requestToContract');
</script>
</body>
</html>
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册