diff --git a/erp-produce/src/main/resources/template/js/erpPick/erpReturnPickToPut.js b/erp-produce/src/main/resources/template/js/erpPick/erpReturnPickToPut.js index e557f56285ff33b6dbb819981bc210650d2bfe05..4c5256b6336fa1e020c3af511276afccff9d5728 100644 --- a/erp-produce/src/main/resources/template/js/erpPick/erpReturnPickToPut.js +++ b/erp-produce/src/main/resources/template/js/erpPick/erpReturnPickToPut.js @@ -18,7 +18,6 @@ layui.config({ // 退料入库转仓库入库单 AjaxPostUtil.request({url: sysMainMation.erpBasePath + "queryReturnPutTransById", params: {id: id}, type: 'json', method: 'GET', callback: function (json) { let data = json.bean; - console.log(data) // 仓库入库的【编辑布局】 dsFormUtil.initEditPageForStatic('content', 'FP2024070100009', data, { savePreParams: function (params) { diff --git a/erp-produce/src/main/resources/template/js/erpPick/turnRequisitionMaterialToOut.js b/erp-produce/src/main/resources/template/js/erpPick/turnRequisitionMaterialToOut.js index 28f2b363d98974854723f4d61210da4ac8659b64..1f1aa6242eec7b00a4efe396b908f95424df0a6e 100644 --- a/erp-produce/src/main/resources/template/js/erpPick/turnRequisitionMaterialToOut.js +++ b/erp-produce/src/main/resources/template/js/erpPick/turnRequisitionMaterialToOut.js @@ -24,7 +24,6 @@ layui.config({ item.unitPrice=item.normsMation.estimatePurchasePrice item.taxRate=0 }); - console.log(data.erpOrderItemList) // 领料出库的【编辑布局】 dsFormUtil.initEditPageForStatic('content', 'FP2024071200005', data, { savePreParams: function (params) { diff --git a/erp-produce/src/main/resources/template/js/erpPick/turnReturnMaterialToPut.js b/erp-produce/src/main/resources/template/js/erpPick/turnReturnMaterialToPut.js index 8fc99decf25920d2d192153611c5a3d3919dfbd8..092e9b42be1345794af06787d3f3bbaee215fce1 100644 --- a/erp-produce/src/main/resources/template/js/erpPick/turnReturnMaterialToPut.js +++ b/erp-produce/src/main/resources/template/js/erpPick/turnReturnMaterialToPut.js @@ -24,7 +24,6 @@ layui.config({ item.unitPrice=item.normsMation.estimatePurchasePrice item.taxRate=0 }); - console.log(data.erpOrderItemList) // 退料入库的【编辑布局】 dsFormUtil.initEditPageForStatic('content', 'FP2024071200012', data, { savePreParams: function (params) { diff --git a/erp-produce/src/main/resources/template/js/materialReturnOrder/materialReturnOrderToPut.js b/erp-produce/src/main/resources/template/js/materialReturnOrder/materialReturnOrderToPut.js index 29153fb82fd92e8d808a25d0851e7923ea82bc06..ffdf3c352ca5c8b29789dd79efe36d9b0eef99f1 100644 --- a/erp-produce/src/main/resources/template/js/materialReturnOrder/materialReturnOrderToPut.js +++ b/erp-produce/src/main/resources/template/js/materialReturnOrder/materialReturnOrderToPut.js @@ -18,7 +18,6 @@ layui.config({ // 物料退货转仓库入库 AjaxPostUtil.request({url: sysMainMation.erpBasePath + "queryConfirmReturnTransById", params: {id: id}, type: 'json', method: 'GET', callback: function (json) { let data = json.bean; - console.log(data) // 仓库入库的【编辑布局】 dsFormUtil.initEditPageForStatic('content', 'FP2024070100009', data, { savePreParams: function (params) { diff --git a/erp-produce/src/main/resources/template/js/wholeOut/wholeOutToArrival.js b/erp-produce/src/main/resources/template/js/wholeOut/wholeOutToArrival.js index 2cbc9172bd9f2805703590a0b2f28598561945fa..a8212e9a3ab173087408ad355b89965bf464dfb9 100644 --- a/erp-produce/src/main/resources/template/js/wholeOut/wholeOutToArrival.js +++ b/erp-produce/src/main/resources/template/js/wholeOut/wholeOutToArrival.js @@ -18,7 +18,6 @@ layui.config({ // 整单委外单转到货单 AjaxPostUtil.request({url: sysMainMation.erpBasePath + "queryWholeOrderOutTransById", params: {id: id}, type: 'json', method: 'GET', callback: function (json) { let data = json.bean; - console.log(data) // 采购到货的【编辑布局】 dsFormUtil.initEditPageForStatic('content', 'FP2024061100002', data, { savePreParams: function (params) { diff --git a/erp-produce/src/main/resources/template/js/workshopPersonnel/workshopPersonnelAllocation.js b/erp-produce/src/main/resources/template/js/workshopPersonnel/workshopPersonnelAllocation.js index c2134b2338e167eddc081f5929f68af54f8131db..fd407cec725f8d25687d60e9634da77537d4b461 100644 --- a/erp-produce/src/main/resources/template/js/workshopPersonnel/workshopPersonnelAllocation.js +++ b/erp-produce/src/main/resources/template/js/workshopPersonnel/workshopPersonnelAllocation.js @@ -113,11 +113,9 @@ layui.config({ systemCommonUtil.checkStaffMation = []; // 选择时返回的对象 systemCommonUtil.openSysAllUserStaffChoosePage(function (checkStaffMation) { var list = new Array(); - console.log(checkStaffMation) $.each(checkStaffMation, function (i, item) { list.push(item.id); }); - console.log(list) var params = { farmId: chooseWorkshopId, staffId: JSON.stringify(list) diff --git a/erp/src/main/resources/template/js/purchaseOrder/purchaseToWaybill.js b/erp/src/main/resources/template/js/purchaseOrder/purchaseToWaybill.js index 65bac19e8c1652232f3229991a4568b9026f3196..8f854012bf91843180f7d0dff6a06e18e0d93364 100644 --- a/erp/src/main/resources/template/js/purchaseOrder/purchaseToWaybill.js +++ b/erp/src/main/resources/template/js/purchaseOrder/purchaseToWaybill.js @@ -17,41 +17,40 @@ layui.config({ // 采购订购单转到货单 AjaxPostUtil.request({url: sysMainMation.erpBasePath + "queryPurchaseOrderTransById", params: {id: id}, type: 'json', method: 'GET', callback: function (json) { - let data = json.bean; - console.log(data) - // 采购到货的【编辑布局】 - dsFormUtil.initEditPageForStatic('content', 'FP2024061100002', data, { - savePreParams: function (params) { - }, - saveData: function (params) { - // 保存数据 - AjaxPostUtil.request({url: sysMainMation.erpBasePath + "insertPurchaseOrderToTurnDelivery", params: params, type: 'json', method: "POST", callback: function(json) { - parent.layer.close(index); - parent.refreshCode = '0'; - }}); - - }, - loadComponentCallback: function () { - $("div[controlType='supplier']").remove(); - $("div[controlType='purchaseDeliveryFromType']").remove(); - }, - tableAddRowCallback: function (tableId) { - $("#addRow" + tableId).remove(); - $("div[controlType='simpleTable']").find(".unitPrice").prop('disabled', true); - $("div[controlType='simpleTable']").find(".amountOfMoney").prop('disabled', true); - $("div[controlType='simpleTable']").find(".taxRate").prop('disabled', true); - $("div[controlType='simpleTable']").find(".taxMoney").prop('disabled', true); - $("div[controlType='simpleTable']").find(".taxUnitPrice").prop('disabled', true); - $("div[controlType='simpleTable']").find(".taxLastMoney").prop('disabled', true); - $("div[controlType='simpleTable']").find(".chooseProductBtn").prop('disabled', true); - $("div[controlType='simpleTable']").find(".normsId").prop('disabled', true); - $("div[controlType='simpleTable']").find(".qualityInspection").prop('disabled', true); - $("div[controlType='simpleTable']").find(".taxLastinspectionRatio").prop('disabled', true); - - - - } - }); - }}); + let data = json.bean; + // 采购到货的【编辑布局】 + dsFormUtil.initEditPageForStatic('content', 'FP2024061100002', data, { + savePreParams: function (params) { + }, + saveData: function (params) { + // 保存数据 + AjaxPostUtil.request({url: sysMainMation.erpBasePath + "insertPurchaseOrderToTurnDelivery", params: params, type: 'json', method: "POST", callback: function(json) { + parent.layer.close(index); + parent.refreshCode = '0'; + }}); + + }, + loadComponentCallback: function () { + $("div[controlType='supplier']").remove(); + $("div[controlType='purchaseDeliveryFromType']").remove(); + }, + tableAddRowCallback: function (tableId) { + $("#addRow" + tableId).remove(); + $("div[controlType='simpleTable']").find(".unitPrice").prop('disabled', true); + $("div[controlType='simpleTable']").find(".amountOfMoney").prop('disabled', true); + $("div[controlType='simpleTable']").find(".taxRate").prop('disabled', true); + $("div[controlType='simpleTable']").find(".taxMoney").prop('disabled', true); + $("div[controlType='simpleTable']").find(".taxUnitPrice").prop('disabled', true); + $("div[controlType='simpleTable']").find(".taxLastMoney").prop('disabled', true); + $("div[controlType='simpleTable']").find(".chooseProductBtn").prop('disabled', true); + $("div[controlType='simpleTable']").find(".normsId").prop('disabled', true); + $("div[controlType='simpleTable']").find(".qualityInspection").prop('disabled', true); + $("div[controlType='simpleTable']").find(".taxLastinspectionRatio").prop('disabled', true); + + + + } + }); + }}); }); \ No newline at end of file diff --git a/erp/src/main/resources/template/js/retailOutlet/retailOutToOut.js b/erp/src/main/resources/template/js/retailOutlet/retailOutToOut.js index 5275d385e5ea45dab90dfd92a53294ac9b7576b4..c41b923a732cf869cde05951259219087a11ba90 100644 --- a/erp/src/main/resources/template/js/retailOutlet/retailOutToOut.js +++ b/erp/src/main/resources/template/js/retailOutlet/retailOutToOut.js @@ -17,38 +17,37 @@ layui.config({ // 零售出库转仓库出库 AjaxPostUtil.request({url: sysMainMation.erpBasePath + "queryRetailOutLetTransById", params: {id: id}, type: 'json', method: 'GET', callback: function (json) { - let data = json.bean; - // 仓库出库的【编辑布局】 - dsFormUtil.initEditPageForStatic('content', 'FP2024070100006', data, { - savePreParams: function (params) { - params.holderId=data.holderId - params.holderKey=data.holderKey - }, - saveData: function (params) { - // 保存数据 - AjaxPostUtil.request({url: sysMainMation.erpBasePath + "insertRetailOutLetToTurnDepot", params: params, type: 'json', method: "POST", callback: function(json) { - parent.layer.close(index); - parent.refreshCode = '0'; - }}); - }, - loadComponentCallback: function () { - $("select[attrkey='holderIdType']").prop('disabled', true); - $("select[attrkey='holderIdType']").parent().next().children('i').remove(); - $("div[controlType='depotOutFromType']").remove(); - }, - tableAddRowCallback: function (tableId) { - $("#addRow" + tableId).remove(); - $("div[controlType='simpleTable']").find(".unitPrice").prop('disabled', true); - $("div[controlType='simpleTable']").find(".amountOfMoney").prop('disabled', true); - $("div[controlType='simpleTable']").find(".taxRate").prop('disabled', true); - $("div[controlType='simpleTable']").find(".taxMoney").prop('disabled', true); - $("div[controlType='simpleTable']").find(".taxUnitPrice").prop('disabled', true); - $("div[controlType='simpleTable']").find(".taxLastMoney").prop('disabled', true); - $("div[controlType='simpleTable']").find(".chooseProductBtn").prop('disabled', true); - $("div[controlType='simpleTable']").find(".normsId").prop('disabled', true); - $("div[controlType='simpleTable']").find(".warehouse").prop('disabled', true); - } - }); - }}); - + let data = json.bean; + // 仓库出库的【编辑布局】 + dsFormUtil.initEditPageForStatic('content', 'FP2024070100006', data, { + savePreParams: function (params) { + params.holderId=data.holderId + params.holderKey=data.holderKey + }, + saveData: function (params) { + // 保存数据 + AjaxPostUtil.request({url: sysMainMation.erpBasePath + "insertRetailOutLetToTurnDepot", params: params, type: 'json', method: "POST", callback: function(json) { + parent.layer.close(index); + parent.refreshCode = '0'; + }}); + }, + loadComponentCallback: function () { + $("select[attrkey='holderIdType']").prop('disabled', true); + $("select[attrkey='holderIdType']").parent().next().children('i').remove(); + $("div[controlType='depotOutFromType']").remove(); + }, + tableAddRowCallback: function (tableId) { + $("#addRow" + tableId).remove(); + $("div[controlType='simpleTable']").find(".unitPrice").prop('disabled', true); + $("div[controlType='simpleTable']").find(".amountOfMoney").prop('disabled', true); + $("div[controlType='simpleTable']").find(".taxRate").prop('disabled', true); + $("div[controlType='simpleTable']").find(".taxMoney").prop('disabled', true); + $("div[controlType='simpleTable']").find(".taxUnitPrice").prop('disabled', true); + $("div[controlType='simpleTable']").find(".taxLastMoney").prop('disabled', true); + $("div[controlType='simpleTable']").find(".chooseProductBtn").prop('disabled', true); + $("div[controlType='simpleTable']").find(".normsId").prop('disabled', true); + $("div[controlType='simpleTable']").find(".warehouse").prop('disabled', true); + } + }); + }}); }); \ No newline at end of file diff --git a/erp/src/main/resources/template/js/retailReturns/retailReturnsToPut.js b/erp/src/main/resources/template/js/retailReturns/retailReturnsToPut.js index 54463a399f2762ba705896802fa28ecb6a5d09f7..4d45cafccbb54f9b241fb298611ceb5604db783f 100644 --- a/erp/src/main/resources/template/js/retailReturns/retailReturnsToPut.js +++ b/erp/src/main/resources/template/js/retailReturns/retailReturnsToPut.js @@ -17,39 +17,37 @@ layui.config({ // 零售退货转仓库入库单 AjaxPostUtil.request({url: sysMainMation.erpBasePath + "queryRetailReturnsTransById", params: {id: id}, type: 'json', method: 'GET', callback: function (json) { - let data = json.bean; - console.log(data) - // 仓库入库的【编辑布局】 - dsFormUtil.initEditPageForStatic('content', 'FP2024070100009', data, { - savePreParams: function (params) { - params.holderId=data.holderId - params.holderKey=data.holderKey - }, - saveData: function (params) { - // 保存数据 - AjaxPostUtil.request({url: sysMainMation.erpBasePath + "insertRetailReturnsToTurnDepot", params: params, type: 'json', method: "POST", callback: function(json) { - parent.layer.close(index); - parent.refreshCode = '0'; - }}); - }, - loadComponentCallback: function () { - $("select[attrkey='holderIdType']").prop('disabled', true); - $("select[attrkey='holderIdType']").parent().next().children('i').remove(); - $("div[controlType='depotPutFromType']").remove(); - }, - tableAddRowCallback: function (tableId) { - $("#addRow" + tableId).remove(); - $("div[controlType='simpleTable']").find(".unitPrice").prop('disabled', true); - $("div[controlType='simpleTable']").find(".amountOfMoney").prop('disabled', true); - $("div[controlType='simpleTable']").find(".taxRate").prop('disabled', true); - $("div[controlType='simpleTable']").find(".taxMoney").prop('disabled', true); - $("div[controlType='simpleTable']").find(".taxUnitPrice").prop('disabled', true); - $("div[controlType='simpleTable']").find(".taxLastMoney").prop('disabled', true); - $("div[controlType='simpleTable']").find(".chooseProductBtn").prop('disabled', true); - $("div[controlType='simpleTable']").find(".normsId").prop('disabled', true); - $("div[controlType='simpleTable']").find(".warehouse").prop('disabled', true); - } - }); - }}); - + let data = json.bean; + // 仓库入库的【编辑布局】 + dsFormUtil.initEditPageForStatic('content', 'FP2024070100009', data, { + savePreParams: function (params) { + params.holderId=data.holderId + params.holderKey=data.holderKey + }, + saveData: function (params) { + // 保存数据 + AjaxPostUtil.request({url: sysMainMation.erpBasePath + "insertRetailReturnsToTurnDepot", params: params, type: 'json', method: "POST", callback: function(json) { + parent.layer.close(index); + parent.refreshCode = '0'; + }}); + }, + loadComponentCallback: function () { + $("select[attrkey='holderIdType']").prop('disabled', true); + $("select[attrkey='holderIdType']").parent().next().children('i').remove(); + $("div[controlType='depotPutFromType']").remove(); + }, + tableAddRowCallback: function (tableId) { + $("#addRow" + tableId).remove(); + $("div[controlType='simpleTable']").find(".unitPrice").prop('disabled', true); + $("div[controlType='simpleTable']").find(".amountOfMoney").prop('disabled', true); + $("div[controlType='simpleTable']").find(".taxRate").prop('disabled', true); + $("div[controlType='simpleTable']").find(".taxMoney").prop('disabled', true); + $("div[controlType='simpleTable']").find(".taxUnitPrice").prop('disabled', true); + $("div[controlType='simpleTable']").find(".taxLastMoney").prop('disabled', true); + $("div[controlType='simpleTable']").find(".chooseProductBtn").prop('disabled', true); + $("div[controlType='simpleTable']").find(".normsId").prop('disabled', true); + $("div[controlType='simpleTable']").find(".warehouse").prop('disabled', true); + } + }); + }}); }); \ No newline at end of file diff --git a/erp/src/main/resources/template/js/salesOrder/salesOrderToOutlet.js b/erp/src/main/resources/template/js/salesOrder/salesOrderToOutlet.js index 0cd9fba755c321da34b9a083d262cce8601e6d62..75150ca401ca8714c2f3c168fff23bd44564ccf0 100644 --- a/erp/src/main/resources/template/js/salesOrder/salesOrderToOutlet.js +++ b/erp/src/main/resources/template/js/salesOrder/salesOrderToOutlet.js @@ -17,36 +17,36 @@ layui.config({ // 销售订单转销售出库 AjaxPostUtil.request({url: sysMainMation.erpBasePath + "querySealsOrderTransById", params: {id: id}, type: 'json', method: 'GET', callback: function (json) { - let data = json.bean; - // 销售出库的【编辑布局】 - dsFormUtil.initEditPageForStatic('content', 'FP2023042700002', data, { - savePreParams: function (params) { - params.holderId=data.holderId - params.holderKey=data.holderKey - }, - saveData: function (params) { - // 保存数据 - AjaxPostUtil.request({url: sysMainMation.erpBasePath + "salesorder009", params: params, type: 'json', method: "POST", callback: function(json) { - parent.layer.close(index); - parent.refreshCode = '0'; - }}); - }, - loadComponentCallback: function () { - $("div[controlType='sealOutLetFromType']").remove(); - }, + let data = json.bean; + // 销售出库的【编辑布局】 + dsFormUtil.initEditPageForStatic('content', 'FP2023042700002', data, { + savePreParams: function (params) { + params.holderId=data.holderId + params.holderKey=data.holderKey + }, + saveData: function (params) { + // 保存数据 + AjaxPostUtil.request({url: sysMainMation.erpBasePath + "salesorder009", params: params, type: 'json', method: "POST", callback: function(json) { + parent.layer.close(index); + parent.refreshCode = '0'; + }}); + }, + loadComponentCallback: function () { + $("div[controlType='sealOutLetFromType']").remove(); + }, - // 新增行的回调函数 - tableAddRowCallback: function (tableId) { - $("#addRow" + tableId).remove(); - $("div[controlType='simpleTable']").find(".chooseProductBtn").prop('disabled', true); - $("div[controlType='simpleTable']").find(".unitPrice").prop('disabled', true); - $("div[controlType='simpleTable']").find(".amountOfMoney").prop('disabled', true); - $("div[controlType='simpleTable']").find(".taxRate").prop('disabled', true); - $("div[controlType='simpleTable']").find(".taxMoney").prop('disabled', true); - $("div[controlType='simpleTable']").find(".taxUnitPrice").prop('disabled', true); - $("div[controlType='simpleTable']").find(".taxLastMoney").prop('disabled', true); - $("div[controlType='simpleTable']").find(".normsId").prop('disabled', true); - } - }); - }}); + // 新增行的回调函数 + tableAddRowCallback: function (tableId) { + $("#addRow" + tableId).remove(); + $("div[controlType='simpleTable']").find(".chooseProductBtn").prop('disabled', true); + $("div[controlType='simpleTable']").find(".unitPrice").prop('disabled', true); + $("div[controlType='simpleTable']").find(".amountOfMoney").prop('disabled', true); + $("div[controlType='simpleTable']").find(".taxRate").prop('disabled', true); + $("div[controlType='simpleTable']").find(".taxMoney").prop('disabled', true); + $("div[controlType='simpleTable']").find(".taxUnitPrice").prop('disabled', true); + $("div[controlType='simpleTable']").find(".taxLastMoney").prop('disabled', true); + $("div[controlType='simpleTable']").find(".normsId").prop('disabled', true); + } + }); + }}); }); \ No newline at end of file diff --git a/erp/src/main/resources/template/js/salesOrder/salesOrderToPreProductionPlan.js b/erp/src/main/resources/template/js/salesOrder/salesOrderToPreProductionPlan.js index aab9bc4e7341487bdea32c8d35e0533050342609..d4b1d830e53a98eae46917716f5c438258e45fb3 100644 --- a/erp/src/main/resources/template/js/salesOrder/salesOrderToPreProductionPlan.js +++ b/erp/src/main/resources/template/js/salesOrder/salesOrderToPreProductionPlan.js @@ -17,29 +17,29 @@ layui.config({ // 销售订单转预生产计划 AjaxPostUtil.request({url: sysMainMation.erpBasePath + "querySealsOrderTransProductionPlanById", params: {id: id}, type: 'json', method: 'GET', callback: function (json) { - let data = json.bean; - data.productionPlanChildList=data.erpOrderItemList - // 预生产计划的【编辑布局】 - dsFormUtil.initEditPageForStatic('content', 'FP2024071100002', data, { - savePreParams: function (params) { - }, - saveData: function (params) { - // 保存数据 - AjaxPostUtil.request({url: sysMainMation.erpBasePath + "insertSealsOrderToProductionPlan", params: params, type: 'json', method: "POST", callback: function(json) { - parent.layer.close(index); - parent.refreshCode = '0'; - }}); - }, - loadComponentCallback: function () { - $("div[controlType='sealOutLetFromType']").remove(); - }, + let data = json.bean; + data.productionPlanChildList=data.erpOrderItemList + // 预生产计划的【编辑布局】 + dsFormUtil.initEditPageForStatic('content', 'FP2024071100002', data, { + savePreParams: function (params) { + }, + saveData: function (params) { + // 保存数据 + AjaxPostUtil.request({url: sysMainMation.erpBasePath + "insertSealsOrderToProductionPlan", params: params, type: 'json', method: "POST", callback: function(json) { + parent.layer.close(index); + parent.refreshCode = '0'; + }}); + }, + loadComponentCallback: function () { + $("div[controlType='sealOutLetFromType']").remove(); + }, - // 新增行的回调函数 - tableAddRowCallback: function (tableId) { - $("#addRow" + tableId).remove(); - $("div[controlType='simpleTable']").find(".chooseProductBtn").prop('disabled', true); - $("div[controlType='simpleTable']").find(".normsId").prop('disabled', true); - } - }); - }}); + // 新增行的回调函数 + tableAddRowCallback: function (tableId) { + $("#addRow" + tableId).remove(); + $("div[controlType='simpleTable']").find(".chooseProductBtn").prop('disabled', true); + $("div[controlType='simpleTable']").find(".normsId").prop('disabled', true); + } + }); + }}); }); \ No newline at end of file diff --git a/erp/src/main/resources/template/js/salesOrder/salesOrderToReturns.js b/erp/src/main/resources/template/js/salesOrder/salesOrderToReturns.js index 6484407dcfcf2cdde329f63450bd1dab11ec6cfb..22cccaf721fb2a50fb395bdaf49d3d828fc2295d 100644 --- a/erp/src/main/resources/template/js/salesOrder/salesOrderToReturns.js +++ b/erp/src/main/resources/template/js/salesOrder/salesOrderToReturns.js @@ -17,38 +17,37 @@ layui.config({ // 销售订单转销售退货 AjaxPostUtil.request({url: sysMainMation.erpBasePath + "querySealsOrderTransById", params: {id: id}, type: 'json', method: 'GET', callback: function (json) { - let data = json.bean; - // 销售退货的【编辑布局】 - dsFormUtil.initEditPageForStatic('content', 'FP2023042700006', data, { - savePreParams: function (params) { - params.holderId=data.holderId - params.holderKey=data.holderKey - }, - saveData: function (params) { - console.log(params) - // 保存数据 - AjaxPostUtil.request({url: sysMainMation.erpBasePath + "insertSealsOrderToSealsReturns", params: params, type: 'json', method: "POST", callback: function(json) { - parent.layer.close(index); - parent.refreshCode = '0'; - }}); - }, + let data = json.bean; + // 销售退货的【编辑布局】 + dsFormUtil.initEditPageForStatic('content', 'FP2023042700006', data, { + savePreParams: function (params) { + params.holderId=data.holderId + params.holderKey=data.holderKey + }, + saveData: function (params) { + // 保存数据 + AjaxPostUtil.request({url: sysMainMation.erpBasePath + "insertSealsOrderToSealsReturns", params: params, type: 'json', method: "POST", callback: function(json) { + parent.layer.close(index); + parent.refreshCode = '0'; + }}); + }, - loadComponentCallback: function () { - $("div[controlType='sealReturnFromType']").remove(); - }, + loadComponentCallback: function () { + $("div[controlType='sealReturnFromType']").remove(); + }, - // 新增行的回调函数 - tableAddRowCallback: function (tableId) { - $("#addRow" + tableId).remove(); - $("div[controlType='simpleTable']").find(".chooseProductBtn").prop('disabled', true); - $("div[controlType='simpleTable']").find(".unitPrice").prop('disabled', true); - $("div[controlType='simpleTable']").find(".amountOfMoney").prop('disabled', true); - $("div[controlType='simpleTable']").find(".taxRate").prop('disabled', true); - $("div[controlType='simpleTable']").find(".taxMoney").prop('disabled', true); - $("div[controlType='simpleTable']").find(".taxUnitPrice").prop('disabled', true); - $("div[controlType='simpleTable']").find(".taxLastMoney").prop('disabled', true); - $("div[controlType='simpleTable']").find(".specifications").prop('disabled', true); - } - }); - }}); + // 新增行的回调函数 + tableAddRowCallback: function (tableId) { + $("#addRow" + tableId).remove(); + $("div[controlType='simpleTable']").find(".chooseProductBtn").prop('disabled', true); + $("div[controlType='simpleTable']").find(".unitPrice").prop('disabled', true); + $("div[controlType='simpleTable']").find(".amountOfMoney").prop('disabled', true); + $("div[controlType='simpleTable']").find(".taxRate").prop('disabled', true); + $("div[controlType='simpleTable']").find(".taxMoney").prop('disabled', true); + $("div[controlType='simpleTable']").find(".taxUnitPrice").prop('disabled', true); + $("div[controlType='simpleTable']").find(".taxLastMoney").prop('disabled', true); + $("div[controlType='simpleTable']").find(".specifications").prop('disabled', true); + } + }); + }}); }); \ No newline at end of file diff --git a/erp/src/main/resources/template/js/salesReturns/salesReturnsToPut.js b/erp/src/main/resources/template/js/salesReturns/salesReturnsToPut.js index 99adaeaa4432d93cb5ac77c76804093b1af3b049..0aa1670ffcf1f09f7a7dbe61903204c0ac1d5881 100644 --- a/erp/src/main/resources/template/js/salesReturns/salesReturnsToPut.js +++ b/erp/src/main/resources/template/js/salesReturns/salesReturnsToPut.js @@ -17,36 +17,36 @@ layui.config({ // 销售退货转仓库入库单 AjaxPostUtil.request({url: sysMainMation.erpBasePath + "querySalesReturnsTransById", params: {id: id}, type: 'json', method: 'GET', callback: function (json) { - let data = json.bean; - // 仓库入库的【编辑布局】 - dsFormUtil.initEditPageForStatic('content', 'FP2024070100009', data, { - savePreParams: function (params) { - }, - saveData: function (params) { - // 保存数据 - AjaxPostUtil.request({url: sysMainMation.erpBasePath + "insertSalesReturnsToTurnDepot", params: params, type: 'json', method: "POST", callback: function(json) { - parent.layer.close(index); - parent.refreshCode = '0'; - }}); - }, - loadComponentCallback: function () { - $("select[attrkey='holderIdType']").prop('disabled', true); - $("select[attrkey='holderIdType']").parent().next().children('i').remove(); - $("div[controlType='depotPutFromType']").remove(); - }, - tableAddRowCallback: function (tableId) { - $("#addRow" + tableId).remove(); - $("div[controlType='simpleTable']").find(".unitPrice").prop('disabled', true); - $("div[controlType='simpleTable']").find(".amountOfMoney").prop('disabled', true); - $("div[controlType='simpleTable']").find(".taxRate").prop('disabled', true); - $("div[controlType='simpleTable']").find(".taxMoney").prop('disabled', true); - $("div[controlType='simpleTable']").find(".taxUnitPrice").prop('disabled', true); - $("div[controlType='simpleTable']").find(".taxLastMoney").prop('disabled', true); - $("div[controlType='simpleTable']").find(".chooseProductBtn").prop('disabled', true); - $("div[controlType='simpleTable']").find(".normsId").prop('disabled', true); - $("div[controlType='simpleTable']").find(".warehouse").prop('disabled', true); - } - }); - }}); + let data = json.bean; + // 仓库入库的【编辑布局】 + dsFormUtil.initEditPageForStatic('content', 'FP2024070100009', data, { + savePreParams: function (params) { + }, + saveData: function (params) { + // 保存数据 + AjaxPostUtil.request({url: sysMainMation.erpBasePath + "insertSalesReturnsToTurnDepot", params: params, type: 'json', method: "POST", callback: function(json) { + parent.layer.close(index); + parent.refreshCode = '0'; + }}); + }, + loadComponentCallback: function () { + $("select[attrkey='holderIdType']").prop('disabled', true); + $("select[attrkey='holderIdType']").parent().next().children('i').remove(); + $("div[controlType='depotPutFromType']").remove(); + }, + tableAddRowCallback: function (tableId) { + $("#addRow" + tableId).remove(); + $("div[controlType='simpleTable']").find(".unitPrice").prop('disabled', true); + $("div[controlType='simpleTable']").find(".amountOfMoney").prop('disabled', true); + $("div[controlType='simpleTable']").find(".taxRate").prop('disabled', true); + $("div[controlType='simpleTable']").find(".taxMoney").prop('disabled', true); + $("div[controlType='simpleTable']").find(".taxUnitPrice").prop('disabled', true); + $("div[controlType='simpleTable']").find(".taxLastMoney").prop('disabled', true); + $("div[controlType='simpleTable']").find(".chooseProductBtn").prop('disabled', true); + $("div[controlType='simpleTable']").find(".normsId").prop('disabled', true); + $("div[controlType='simpleTable']").find(".warehouse").prop('disabled', true); + } + }); + }}); }); \ No newline at end of file diff --git a/erp/src/main/resources/template/js/supplierContract/contractToOrder.js b/erp/src/main/resources/template/js/supplierContract/contractToOrder.js index 1a70749951b5fc84cddd3d76e82d5b7f1927b6b7..5978d8f08b0cea7161443d55d824ac99a6dc0c82 100644 --- a/erp/src/main/resources/template/js/supplierContract/contractToOrder.js +++ b/erp/src/main/resources/template/js/supplierContract/contractToOrder.js @@ -19,7 +19,6 @@ layui.config({ AjaxPostUtil.request({url: sysMainMation.erpBasePath + "querySupplierContractTransById", params: {id: id}, type: 'json', method: 'GET', callback: function (json) { let data = json.bean; data.erpOrderItemList = data.supplierContractChildList - console.log(data) // 采购订单的【编辑布局】 dsFormUtil.initEditPageForStatic('content', 'FP2023042000002', data, { savePreParams: function (params) { diff --git a/erp/src/main/resources/template/js/warehousePersonnel/warehousePersonnel.js b/erp/src/main/resources/template/js/warehousePersonnel/warehousePersonnel.js index cb2f160ab54799b9189abbc3e19d41bc1372b1bf..126830a0671a751898255252f973c318b6113663 100644 --- a/erp/src/main/resources/template/js/warehousePersonnel/warehousePersonnel.js +++ b/erp/src/main/resources/template/js/warehousePersonnel/warehousePersonnel.js @@ -15,7 +15,6 @@ layui.config({ loadWareshop(); form.render(); - var chooseWorkshopId = ""; function loadWareshop() { table.render({ id: 'warehouseTable', @@ -113,11 +112,9 @@ layui.config({ systemCommonUtil.checkStaffMation = []; // 选择时返回的对象 systemCommonUtil.openSysAllUserStaffChoosePage(function (checkStaffMation) { var list = new Array(); - console.log(checkStaffMation) $.each(checkStaffMation, function (i, item) { list.push(item.id); }); - console.log(list) var params = { depotId: depotId, staffId: JSON.stringify(list) diff --git a/school/src/main/resources/template/js/announcement/announcementList.js b/school/src/main/resources/template/js/announcement/announcementList.js new file mode 100644 index 0000000000000000000000000000000000000000..280c05ce48ef1653ebc7c293018a8cc403f59533 --- /dev/null +++ b/school/src/main/resources/template/js/announcement/announcementList.js @@ -0,0 +1,128 @@ + +var objectKey = ""; +var objectId = ""; + +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; + objectKey = GetUrlParam("objectKey"); + objectId = GetUrlParam("objectId"); + subjectClassesId = GetUrlParam("subjectClassesId"); + if (isNull(objectKey) || isNull(objectId)) { + winui.window.msg("请传入适用对象信息", {icon: 2, time: 2000}); + return false; + } + + table.render({ + id: 'messageTable', + elem: '#messageTable', + method: 'get', + url: sysMainMation.schoolBasePath + 'queryAnnouncementAllList', + where: getTableParams(), + even: false, + page: false, + cols: [[ + { title: systemLanguage["com.skyeye.serialNumber"][languageType], type: 'numbers' }, + { field: 'title', title: '标题', align: 'left', width: 300, templet: function (d) { + return '' + d.title + ''; + }}, + { field: 'content', title: '内容', align: 'left', width: 300}, + { field: 'createName', title: systemLanguage["com.skyeye.createName"][languageType], align: 'left', width: 120 , templet: function(d) { + return getNotUndefinedVal(d.createMation?.name); + }}, + { field: 'createTime', title: systemLanguage["com.skyeye.createTime"][languageType], align: 'center', width: 150 }, + { field: 'lastUpdateName', title: systemLanguage["com.skyeye.lastUpdateName"][languageType], align: 'left', width: 120 , templet: function(d) { + return getNotUndefinedVal(d.lastUpdateMation?.name); + }}, + { field: 'lastUpdateTime', title: systemLanguage["com.skyeye.lastUpdateTime"][languageType], align: 'center', width: 150 }, + { title: systemLanguage["com.skyeye.operation"][languageType], fixed: 'right', align: 'center', width: 257, toolbar: '#tableBar' } + ]], + done: function(json) { + matchingLanguage(); + initTableSearchUtil.initAdvancedSearch(this, json.searchFilter, form, "请输入名称", function () { + table.reloadData("messageTable", {page: {curr: 1}, where: getTableParams()}); + }); + } + }); + + table.on('tool(messageTable)', function (obj) { + var data = obj.data; + var layEvent = obj.event; + if (layEvent === 'edit') { //编辑 + edit(data); + } else if (layEvent === 'details') { //详情 + details(data); + } else if (layEvent === 'del') { //删除 + del(data); + } + }); + + // 新增 + $("body").on("click", "#addBean", function() { + parent._openNewWindows({ + url: '../../tpl/announcement/write.html?objectId=' + objectId + '&objectKey=' + objectKey + '&subjectClassesId=' + subjectClassesId, + title: systemLanguage["com.skyeye.addPageTitle"][languageType], + pageId: "announcementAdd", + area: ['90vw', '90vh'], + callBack: function (refreshCode) { + winui.window.msg(systemLanguage["com.skyeye.successfulOperation"][languageType], {icon: 1, time: 2000}); + loadTable(); + }}); + }); + + // 编辑 + function edit(data) { + parent._openNewWindows({ + url: '../../tpl/announcement/write.html?objectId=' + objectId + '&objectKey=' + objectKey + '&subjectClassesId=' + subjectClassesId+ '&id=' + data.id, + title: systemLanguage["com.skyeye.editPageTitle"][languageType], + pageId: "announcementEdit", + area: ['90vw', '90vh'], + callBack: function (refreshCode) { + winui.window.msg(systemLanguage["com.skyeye.successfulOperation"][languageType], {icon: 1, time: 2000}); + loadTable(); + }}); + } + + // 详情 + function details(data) { + parent._openNewWindows({ + url: systemCommonUtil.getUrl('FP2024072000006&objectId=' + objectId + '&objectKey=' + objectKey + '&id=' + data.id, null), + title: systemLanguage["com.skyeye.detailsPageTitle"][languageType], + pageId: "announcementDetails", + area: ['90vw', '90vh'], + callBack: function (refreshCode) { + }}); + } + + // 删除 + function del(data, obj) { + layer.confirm(systemLanguage["com.skyeye.deleteOperationMsg"][languageType], {icon: 3, title: systemLanguage["com.skyeye.deleteOperation"][languageType]}, function (index) { + layer.close(index); + AjaxPostUtil.request({url: sysMainMation.schoolBasePath + "deleteAnnouncementById", params: {id: data.id}, type: 'json', method: 'DELETE', callback: function (json) { + winui.window.msg(systemLanguage["com.skyeye.deleteOperationSuccessMsg"][languageType], {icon: 1, time: 2000}); + loadTable(); + }}); + }); + } + + form.render(); + $("body").on("click", "#reloadTable", function() { + loadTable(); + }); + function loadTable() { + table.reloadData("messageTable", {where: getTableParams()}); + } + + function getTableParams() { + return $.extend(true, {objectKey: objectKey, objectId: subjectClassesId,subjectClassesId: subjectClassesId}, initTableSearchUtil.getSearchValue("messageTable")); + } + + exports('announcementList', {}); +}); \ No newline at end of file diff --git a/school/src/main/resources/template/js/announcement/write.js b/school/src/main/resources/template/js/announcement/write.js new file mode 100644 index 0000000000000000000000000000000000000000..e371aeea34103cecffb4427804bb9aaa52b0ab16 --- /dev/null +++ b/school/src/main/resources/template/js/announcement/write.js @@ -0,0 +1,50 @@ + +// 以下两个参数开启团队权限时有值 +var objectId = '', objectKey = ''; +var objectParams = {}; +// 根据以下两个参数判断:工作流的判断是否要根据serviceClassName的判断 +var serviceClassName; + +layui.config({ + base: basePath, + version: skyeyeVersion +}).extend({ + window: 'js/winui.window' +}).define(['window', 'table', 'jquery'], function (exports) { + winui.renderColor(); + var index = parent.layer.getFrameIndex(window.name); + var $ = layui.$; + var id = GetUrlParam("id"); + var objectId = GetUrlParam("objectId"); + var objectKey = GetUrlParam("objectKey"); + objectParams.subjectClassesId = GetUrlParam("subjectClassesId"); + + if (isNull(id)) { + dsFormUtil.initAddPageForStatic('content', 'FP2024072000004', { + savePreParams: function (params) { + params.objectId = objectId; + params.objectKey = objectKey; + params.subjectClassesId = objectParams.subjectClassesId; + } + }); + }else{ + AjaxPostUtil.request({ + url: sysMainMation.schoolBasePath + "queryAnnouncementById", + params: {id: id}, + type: 'json', + method: 'GET', + callback: function (json) { + let data = json.bean; + dsFormUtil.initEditPageForStatic('content', 'FP2024072000005', data, { + savePreParams: function (params) { + params.objectId = objectId; + params.objectKey = objectKey; + params.subjectClassesId = objectParams.subjectClassesId; + } + }); + } + }); + + } + +}); \ No newline at end of file diff --git a/school/src/main/resources/template/js/courseware/coursewareList.js b/school/src/main/resources/template/js/courseware/coursewareList.js index 6ecbc58e54f16fc7be9c09ed0236f323178a9240..b62404e811d6248dc3716f7846183bf4c4db6ac4 100644 --- a/school/src/main/resources/template/js/courseware/coursewareList.js +++ b/school/src/main/resources/template/js/courseware/coursewareList.js @@ -30,6 +30,9 @@ layui.config({ page: false, cols: [[ { title: systemLanguage["com.skyeye.serialNumber"][languageType], type: 'numbers' }, + { field: 'section', title: '章节', align: 'center', width: 100, templet: function (d) { + return '第 ' + d.chapterMation?.section + ' 章'; + }}, { field: 'name', title: '名称', align: 'left', width: 300, templet: function (d) { return '' + d.name + ''; }}, diff --git a/school/src/main/resources/template/js/knowledge/knowledgeList.js b/school/src/main/resources/template/js/knowledge/knowledgeList.js index cbe0c8fcdeaaade88b78cc7e2ab8367431c59f8c..275c983354760c47a4518641bf47053759567a77 100644 --- a/school/src/main/resources/template/js/knowledge/knowledgeList.js +++ b/school/src/main/resources/template/js/knowledge/knowledgeList.js @@ -32,6 +32,9 @@ layui.config({ limit: getLimit(), cols: [[ { title: systemLanguage["com.skyeye.serialNumber"][languageType], type: 'numbers' }, + { field: 'section', title: '章节', align: 'center', width: 100, templet: function (d) { + return '第 ' + d.chapterMation?.section + ' 章'; + }}, { field: 'name', title: '名称', align: 'left', width: 300, templet: function (d) { return '' + d.name + ''; }}, diff --git a/school/src/main/resources/template/js/material/materialList.js b/school/src/main/resources/template/js/material/materialList.js new file mode 100644 index 0000000000000000000000000000000000000000..7766048e434eab1472183d2604176d10c6ed43e6 --- /dev/null +++ b/school/src/main/resources/template/js/material/materialList.js @@ -0,0 +1,135 @@ + +var objectKey = ""; +var objectId = ""; + +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; + objectKey = GetUrlParam("objectKey"); + objectId = GetUrlParam("objectId"); + subjectClassesId = GetUrlParam("subjectClassesId"); + if (isNull(objectKey) || isNull(objectId)) { + winui.window.msg("请传入适用对象信息", {icon: 2, time: 2000}); + return false; + } + + table.render({ + id: 'messageTable', + elem: '#messageTable', + method: 'post', + url: sysMainMation.schoolBasePath + 'queryDatumList', + where: getTableParams(), + even: false, + page: false, + cols: [[ + { title: systemLanguage["com.skyeye.serialNumber"][languageType], type: 'numbers' }, + { field: 'section', title: '章节', align: 'center', width: 100, templet: function (d) { + return '第 ' + d.chapterMation?.section + ' 章'; + }}, + { field: 'name', title: '名称', align: 'left', width: 300, templet: function (d) { + return '' + d.name + ''; + }}, + { field: 'name', title: '内容', align: 'left', width: 300, templet: function (d) { + return d.uploadDatum ; + }}, + { field: 'createName', title: systemLanguage["com.skyeye.createName"][languageType], align: 'left', width: 120 , templet: function(d) { + return getNotUndefinedVal(d.createMation?.name); + }}, + { field: 'createTime', title: systemLanguage["com.skyeye.createTime"][languageType], align: 'center', width: 150 }, + { field: 'lastUpdateName', title: systemLanguage["com.skyeye.lastUpdateName"][languageType], align: 'left', width: 120 , templet: function(d) { + return getNotUndefinedVal(d.lastUpdateName); + }}, + { field: 'lastUpdateTime', title: systemLanguage["com.skyeye.lastUpdateTime"][languageType], align: 'center', width: 150 , templet: function(d) { + return getNotUndefinedVal(d.lastUpdateTime); + }}, + { title: systemLanguage["com.skyeye.operation"][languageType], fixed: 'right', align: 'center', width: 257, toolbar: '#tableBar' } + ]], + done: function(json) { + matchingLanguage(); + initTableSearchUtil.initAdvancedSearch(this, json.searchFilter, form, "请输入名称", function () { + table.reloadData("messageTable", {page: {curr: 1}, where: getTableParams()}); + }); + } + }); + + table.on('tool(messageTable)', function (obj) { + var data = obj.data; + var layEvent = obj.event; + if (layEvent === 'edit') { //编辑 + edit(data); + } else if (layEvent === 'details') { //详情 + details(data); + } else if (layEvent === 'del') { //删除 + del(data); + } + }); + + // 新增 + $("body").on("click", "#addBean", function() { + parent._openNewWindows({ + url: '../../tpl/material/write.html?objectId=' + objectId + '&objectKey=' + objectKey + '&subjectClassesId=' + subjectClassesId, + title: systemLanguage["com.skyeye.addPageTitle"][languageType], + pageId: "materialAdd", + area: ['90vw', '90vh'], + callBack: function (refreshCode) { + winui.window.msg(systemLanguage["com.skyeye.successfulOperation"][languageType], {icon: 1, time: 2000}); + loadTable(); + }}); + }); + + // 编辑 + function edit(data) { + parent._openNewWindows({ + url: '../../tpl/material/write.html?objectId=' + objectId + '&objectKey=' + objectKey + '&subjectClassesId=' + subjectClassesId + '&id=' + data.id, + title: systemLanguage["com.skyeye.editPageTitle"][languageType], + pageId: "materialEdit", + area: ['90vw', '90vh'], + callBack: function (refreshCode) { + winui.window.msg(systemLanguage["com.skyeye.successfulOperation"][languageType], {icon: 1, time: 2000}); + loadTable(); + }}); + } + + // 详情 + function details(data) { + parent._openNewWindows({ + url: systemCommonUtil.getUrl('FP2024072000003&objectId=' + objectId + '&objectKey=' + objectKey + '&id=' + data.id, null), + title: systemLanguage["com.skyeye.detailsPageTitle"][languageType], + pageId: "materialDetails", + area: ['90vw', '90vh'], + callBack: function (refreshCode) { + }}); + } + + // 删除 + function del(data, obj) { + layer.confirm(systemLanguage["com.skyeye.deleteOperationMsg"][languageType], {icon: 3, title: systemLanguage["com.skyeye.deleteOperation"][languageType]}, function (index) { + layer.close(index); + AjaxPostUtil.request({url: sysMainMation.schoolBasePath + "deleteDatumById", params: {id: data.id}, type: 'json', method: 'DELETE', callback: function (json) { + winui.window.msg(systemLanguage["com.skyeye.deleteOperationSuccessMsg"][languageType], {icon: 1, time: 2000}); + loadTable(); + }}); + }); + } + + form.render(); + $("body").on("click", "#reloadTable", function() { + loadTable(); + }); + function loadTable() { + table.reloadData("messageTable", {where: getTableParams()}); + } + + function getTableParams() { + return $.extend(true, {objectKey: objectKey, objectId: subjectClassesId,holderId: subjectClassesId,}, initTableSearchUtil.getSearchValue("messageTable")); + } + + exports('materialList', {}); +}); \ No newline at end of file diff --git a/school/src/main/resources/template/js/material/write.js b/school/src/main/resources/template/js/material/write.js new file mode 100644 index 0000000000000000000000000000000000000000..ba280fcbf4302ebb3164d6ae3aa136fd6c3be417 --- /dev/null +++ b/school/src/main/resources/template/js/material/write.js @@ -0,0 +1,50 @@ + +// 以下两个参数开启团队权限时有值 +var objectId = '', objectKey = ''; +var objectParams = {}; +// 根据以下两个参数判断:工作流的判断是否要根据serviceClassName的判断 +var serviceClassName; + +layui.config({ + base: basePath, + version: skyeyeVersion +}).extend({ + window: 'js/winui.window' +}).define(['window', 'table', 'jquery'], function (exports) { + winui.renderColor(); + var index = parent.layer.getFrameIndex(window.name); + var $ = layui.$; + var id = GetUrlParam("id"); + var objectId = GetUrlParam("objectId"); + var objectKey = GetUrlParam("objectKey"); + objectParams.subjectClassesId = GetUrlParam("subjectClassesId"); + + if (isNull(id)) { + dsFormUtil.initAddPageForStatic('content', 'FP2024072000001', { + savePreParams: function (params) { + params.objectId = objectId; + params.objectKey = objectKey; + params.subjectClassesId = objectParams.subjectClassesId; + } + }); + }else{ + AjaxPostUtil.request({ + url: sysMainMation.schoolBasePath + "queryDatumById", + params: {id: id}, + type: 'json', + method: 'GET', + callback: function (json) { + let data = json.bean; + dsFormUtil.initEditPageForStatic('content', 'FP2024072000002', data, { + savePreParams: function (params) { + params.objectId = objectId; + params.objectKey = objectKey; + params.subjectClassesId = objectParams.subjectClassesId; + } + }); + } + }); + + } + +}); \ No newline at end of file diff --git a/school/src/main/resources/template/js/subjectClass/manage.js b/school/src/main/resources/template/js/subjectClass/manage.js index 4a8c7686a8810f3a43323fe5e46caf5c95f943e1..d234486ac4956d333961b8b9f3b5963b907b92bf 100644 --- a/school/src/main/resources/template/js/subjectClass/manage.js +++ b/school/src/main/resources/template/js/subjectClass/manage.js @@ -31,6 +31,15 @@ layui.config({ }, { title: '作业', pageUrl: '../../tpl/homework/homeworkList.html?subjectClassesId=' + subjectClassesId + }, { + title: '资料', + pageUrl: '../../tpl/material/materialList.html?subjectClassesId=' + subjectClassesId + }, { + title: '公告', + pageUrl: '../../tpl/announcement/announcementList.html?subjectClassesId=' + subjectClassesId + }, { + title: '话题', + pageUrl: '../../tpl/topic/topicList.html?subjectClassesId=' + subjectClassesId }], element: layui.element, object: { diff --git a/school/src/main/resources/template/js/topic/details.js b/school/src/main/resources/template/js/topic/details.js new file mode 100644 index 0000000000000000000000000000000000000000..306d9b374fc0e1b741985171bd2521184247b96c --- /dev/null +++ b/school/src/main/resources/template/js/topic/details.js @@ -0,0 +1,85 @@ + +var objectKey = ""; +var objectId = ""; + +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; + objectKey = GetUrlParam("objectKey"); + objectId = GetUrlParam("objectId"); + id = GetUrlParam("id"); + if (isNull(objectKey) || isNull(objectId)) { + winui.window.msg("请传入适用对象信息", {icon: 2, time: 2000}); + return false; + } + + table.render({ + id: 'messageTable', + elem: '#messageTable', + method: 'post', + url: sysMainMation.schoolBasePath + 'queryTopicCommentList', + where: getTableParams(), + even: false, + page: false, + cols: [[ + { title: systemLanguage["com.skyeye.serialNumber"][languageType], type: 'numbers' }, + // { field: 'title', title: '标题', align: 'left', width: 300}, + { field: 'content', title: '内容', align: 'left', width: 300}, + { field: 'createName', title: systemLanguage["com.skyeye.createName"][languageType], align: 'left', width: 120 , templet: function(d) { + return getNotUndefinedVal(d.createMation?.name); + }}, + { field: 'createTime', title: systemLanguage["com.skyeye.createTime"][languageType], align: 'center', width: 150 }, + { field: 'lastUpdateName', title: systemLanguage["com.skyeye.lastUpdateName"][languageType], align: 'left', width: 120 , templet: function(d) { + return getNotUndefinedVal(d.lastUpdateName); + }}, + { field: 'lastUpdateTime', title: systemLanguage["com.skyeye.lastUpdateTime"][languageType], align: 'center', width: 150 }, + { title: systemLanguage["com.skyeye.operation"][languageType], fixed: 'right', align: 'center', width: 257, toolbar: '#tableBar' } + ]], + done: function(json) { + matchingLanguage(); + initTableSearchUtil.initAdvancedSearch(this, json.searchFilter, form, "请输入名称", function () { + table.reloadData("messageTable", {page: {curr: 1}, where: getTableParams()}); + }); + } + }); + + table.on('tool(messageTable)', function (obj) { + var data = obj.data; + var layEvent = obj.event; + if (layEvent === 'del') { //删除 + del(data); + } + }); + + // 删除 + function del(data, obj) { + layer.confirm(systemLanguage["com.skyeye.deleteOperationMsg"][languageType], {icon: 3, title: systemLanguage["com.skyeye.deleteOperation"][languageType]}, function (index) { + layer.close(index); + AjaxPostUtil.request({url: sysMainMation.schoolBasePath + "deleteTopicById", params: {id: data.id}, type: 'json', method: 'DELETE', callback: function (json) { + winui.window.msg(systemLanguage["com.skyeye.deleteOperationSuccessMsg"][languageType], {icon: 1, time: 2000}); + loadTable(); + }}); + }); + } + + form.render(); + $("body").on("click", "#reloadTable", function() { + loadTable(); + }); + function loadTable() { + table.reloadData("messageTable", {where: getTableParams()}); + } + + function getTableParams() { + return $.extend(true, {objectKey: objectKey, objectId: objectId,holderId: id}, initTableSearchUtil.getSearchValue("messageTable")); + } + + exports('details', {}); +}); \ No newline at end of file diff --git a/school/src/main/resources/template/js/topic/topicList.js b/school/src/main/resources/template/js/topic/topicList.js new file mode 100644 index 0000000000000000000000000000000000000000..56b9a04a0ea0709ae59ab77de2130d23396b2b5b --- /dev/null +++ b/school/src/main/resources/template/js/topic/topicList.js @@ -0,0 +1,113 @@ + +var objectKey = ""; +var objectId = ""; + +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; + objectKey = GetUrlParam("objectKey"); + objectId = GetUrlParam("objectId"); + subjectClassesId = GetUrlParam("subjectClassesId"); + if (isNull(objectKey) || isNull(objectId)) { + winui.window.msg("请传入适用对象信息", {icon: 2, time: 2000}); + return false; + } + + table.render({ + id: 'messageTable', + elem: '#messageTable', + method: 'post', + url: sysMainMation.schoolBasePath + 'queryTopicList', + where: getTableParams(), + even: false, + page: false, + cols: [[ + { title: systemLanguage["com.skyeye.serialNumber"][languageType], type: 'numbers' }, + { field: 'title', title: '标题', align: 'left', width: 300}, + { field: 'content', title: '内容', align: 'left', width: 300}, + { field: 'createName', title: systemLanguage["com.skyeye.createName"][languageType], align: 'left', width: 120 , templet: function(d) { + return getNotUndefinedVal(d.createMation?.name); + }}, + { field: 'createTime', title: systemLanguage["com.skyeye.createTime"][languageType], align: 'center', width: 150 }, + { field: 'lastUpdateName', title: systemLanguage["com.skyeye.lastUpdateName"][languageType], align: 'left', width: 120 , templet: function(d) { + return getNotUndefinedVal(d.lastUpdateName); + }}, + { field: 'lastUpdateTime', title: systemLanguage["com.skyeye.lastUpdateTime"][languageType], align: 'center', width: 150 }, + { title: systemLanguage["com.skyeye.operation"][languageType], fixed: 'right', align: 'center', width: 257, toolbar: '#tableBar' } + ]], + done: function(json) { + matchingLanguage(); + initTableSearchUtil.initAdvancedSearch(this, json.searchFilter, form, "请输入名称", function () { + table.reloadData("messageTable", {page: {curr: 1}, where: getTableParams()}); + }); + } + }); + + table.on('tool(messageTable)', function (obj) { + var data = obj.data; + var layEvent = obj.event; + if (layEvent === 'details') { //详情 + details(data); + } else if (layEvent === 'del') { //删除 + del(data); + } + }); + + // 新增 + $("body").on("click", "#addBean", function() { + parent._openNewWindows({ + url: '../../tpl/topic/write.html?objectId=' + objectId + '&objectKey=' + objectKey + '&subjectClassesId=' + subjectClassesId, + title: systemLanguage["com.skyeye.addPageTitle"][languageType], + pageId: "topicAdd", + area: ['90vw', '90vh'], + callBack: function (refreshCode) { + winui.window.msg(systemLanguage["com.skyeye.successfulOperation"][languageType], {icon: 1, time: 2000}); + loadTable(); + }}); + }); + + // 详情 + function details(data) { + parent._openNewWindows({ + url: '../../tpl/topic/details.html?objectId=' + objectId + '&objectKey=' + objectKey + '&id=' + data.id, + title: systemLanguage["com.skyeye.detailsPageTitle"][languageType], + pageId: "topicDetails", + area: ['90vw', '90vh'], + callBack: function (refreshCode) { + winui.window.msg(systemLanguage["com.skyeye.successfulOperation"][languageType], {icon: 1, time: 2000}); + loadTable(); + }}); + } + + // 删除 + function del(data, obj) { + layer.confirm(systemLanguage["com.skyeye.deleteOperationMsg"][languageType], {icon: 3, title: systemLanguage["com.skyeye.deleteOperation"][languageType]}, function (index) { + layer.close(index); + AjaxPostUtil.request({url: sysMainMation.schoolBasePath + "deleteTopicById", params: {id: data.id}, type: 'json', method: 'DELETE', callback: function (json) { + winui.window.msg(systemLanguage["com.skyeye.deleteOperationSuccessMsg"][languageType], {icon: 1, time: 2000}); + loadTable(); + }}); + }); + } + + form.render(); + $("body").on("click", "#reloadTable", function() { + loadTable(); + }); + function loadTable() { + table.reloadData("messageTable", {where: getTableParams()}); + } + + function getTableParams() { + return $.extend(true, {objectKey: objectKey, objectId: subjectClassesId,holderId:subjectClassesId}, initTableSearchUtil.getSearchValue("messageTable")); + } + + exports('topicList', {}); +}); \ No newline at end of file diff --git a/school/src/main/resources/template/js/topic/write.js b/school/src/main/resources/template/js/topic/write.js new file mode 100644 index 0000000000000000000000000000000000000000..fa671f47589043edf70f7634b2a53a9272f6a661 --- /dev/null +++ b/school/src/main/resources/template/js/topic/write.js @@ -0,0 +1,30 @@ + +// 以下两个参数开启团队权限时有值 +var objectId = '', objectKey = ''; +var objectParams = {}; +// 根据以下两个参数判断:工作流的判断是否要根据serviceClassName的判断 +var serviceClassName; + +layui.config({ + base: basePath, + version: skyeyeVersion +}).extend({ + window: 'js/winui.window' +}).define(['window', 'table', 'jquery'], function (exports) { + winui.renderColor(); + var index = parent.layer.getFrameIndex(window.name); + var $ = layui.$; + var id = GetUrlParam("id"); + var objectId = GetUrlParam("objectId"); + var objectKey = GetUrlParam("objectKey"); + objectParams.subjectClassesId = GetUrlParam("subjectClassesId"); + dsFormUtil.initAddPageForStatic('content', 'FP2024072000007', { + savePreParams: function (params) { + params.objectId = objectId; + params.objectKey = objectKey; + params.subjectClassesId = objectParams.subjectClassesId; + } + }); + + +}); \ No newline at end of file diff --git a/school/src/main/resources/template/tpl/announcement/announcementList.html b/school/src/main/resources/template/tpl/announcement/announcementList.html new file mode 100644 index 0000000000000000000000000000000000000000..414947b1668e8c18838ac981eb19a4f16e1b2bd3 --- /dev/null +++ b/school/src/main/resources/template/tpl/announcement/announcementList.html @@ -0,0 +1,29 @@ + + + + + + + + + +
+
+ + +
+
+
+
+ +
+ + + + + \ No newline at end of file diff --git a/school/src/main/resources/template/tpl/announcement/write.html b/school/src/main/resources/template/tpl/announcement/write.html new file mode 100644 index 0000000000000000000000000000000000000000..73c183eebac25168d37dd0970a8a4ad4e2678511 --- /dev/null +++ b/school/src/main/resources/template/tpl/announcement/write.html @@ -0,0 +1,28 @@ + + + + + + + + + +
+
+
+
+
+ + +
+
+
+
+ + + + + + \ No newline at end of file diff --git a/school/src/main/resources/template/tpl/material/materialList.html b/school/src/main/resources/template/tpl/material/materialList.html new file mode 100644 index 0000000000000000000000000000000000000000..86d90c3c72b1011803cad743055b86e67a02c44f --- /dev/null +++ b/school/src/main/resources/template/tpl/material/materialList.html @@ -0,0 +1,29 @@ + + + + + + + + + +
+
+ + +
+
+
+
+ +
+ + + + + \ No newline at end of file diff --git a/school/src/main/resources/template/tpl/material/write.html b/school/src/main/resources/template/tpl/material/write.html new file mode 100644 index 0000000000000000000000000000000000000000..7323f09e695ea76083a97e412e85717f8143a289 --- /dev/null +++ b/school/src/main/resources/template/tpl/material/write.html @@ -0,0 +1,28 @@ + + + + + + + + + +
+
+
+
+
+ + +
+
+
+
+ + + + + + \ No newline at end of file diff --git a/school/src/main/resources/template/tpl/topic/details.html b/school/src/main/resources/template/tpl/topic/details.html new file mode 100644 index 0000000000000000000000000000000000000000..ba55d8d64a2494e6d380430516bd6fb513a02e63 --- /dev/null +++ b/school/src/main/resources/template/tpl/topic/details.html @@ -0,0 +1,27 @@ + + + + + + + + + +
+
+ +
+
+
+
+ +
+ + + + + \ No newline at end of file diff --git a/school/src/main/resources/template/tpl/topic/topicList.html b/school/src/main/resources/template/tpl/topic/topicList.html new file mode 100644 index 0000000000000000000000000000000000000000..7d96248c6ae9f5aea6650d14004925dfcd190ca7 --- /dev/null +++ b/school/src/main/resources/template/tpl/topic/topicList.html @@ -0,0 +1,29 @@ + + + + + + + + + +
+
+ + +
+
+
+
+ +
+ + + + + \ No newline at end of file diff --git a/school/src/main/resources/template/tpl/topic/write.html b/school/src/main/resources/template/tpl/topic/write.html new file mode 100644 index 0000000000000000000000000000000000000000..89bbef13c3cba69f9278ebb777be3f9eee8d760a --- /dev/null +++ b/school/src/main/resources/template/tpl/topic/write.html @@ -0,0 +1,28 @@ + + + + + + + + + +
+
+
+
+
+ + +
+
+
+
+ + + + + + \ No newline at end of file