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}}
  • {{name}}
  • {{/rows}}', {rows: tabList})); + $("#contentDiv").html(getDataUseHandlebars('{{#rows}}
    {{content}}
    {{/rows}}', {rows: tabList})); + +}); \ No newline at end of file diff --git a/erp/src/main/resources/template/tpl/purchaseRequest/purchaseRequestList.html b/erp/src/main/resources/template/tpl/purchaseRequest/purchaseRequestList.html index 787f1bfd7672199d4bc536f640a740cc80989597..ac8fb2fd56be36984a6d225bef907be3369f7008 100644 --- a/erp/src/main/resources/template/tpl/purchaseRequest/purchaseRequestList.html +++ b/erp/src/main/resources/template/tpl/purchaseRequest/purchaseRequestList.html @@ -44,6 +44,7 @@ {{# } }} {{# } }} {{# } }} + 转采购合同 diff --git a/erp/src/main/resources/template/tpl/purchaseRequest/requestToContract.html b/erp/src/main/resources/template/tpl/purchaseRequest/requestToContract.html new file mode 100644 index 0000000000000000000000000000000000000000..a74735b820fa9aa85911f3f28fd6e48aab70fb39 --- /dev/null +++ b/erp/src/main/resources/template/tpl/purchaseRequest/requestToContract.html @@ -0,0 +1,30 @@ + + + + + + + + +
    + +
    + +
    +
    + + + + + + + + \ No newline at end of file