diff --git a/erp/src/main/resources/template/js/purchaseRequest/purchaseRequestList.js b/erp/src/main/resources/template/js/purchaseRequest/purchaseRequestList.js index dd7f08a7a9b3ab9d8094fe53c7b9c712e98de0d9..7be3fc67bd6d4b6d52ead444514a449d963372ff 100644 --- a/erp/src/main/resources/template/js/purchaseRequest/purchaseRequestList.js +++ b/erp/src/main/resources/template/js/purchaseRequest/purchaseRequestList.js @@ -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({ diff --git a/erp/src/main/resources/template/js/purchaseRequest/requestToContract.js b/erp/src/main/resources/template/js/purchaseRequest/requestToContract.js new file mode 100644 index 0000000000000000000000000000000000000000..5d49dd3746de734bac0e03bf59aded354eb52102 --- /dev/null +++ b/erp/src/main/resources/template/js/purchaseRequest/requestToContract.js @@ -0,0 +1,24 @@ +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}}