diff --git a/boss/src/main/resources/template/js/bossInterviewArrangement/inductionResult.js b/boss/src/main/resources/template/js/bossInterviewArrangement/inductionResult.js index 97ae2b6fb6a8d811dc977de94a914701e296b67c..9f021f5ab698395c0c55d4a05f9cb70febd7dfd6 100644 --- a/boss/src/main/resources/template/js/bossInterviewArrangement/inductionResult.js +++ b/boss/src/main/resources/template/js/bossInterviewArrangement/inductionResult.js @@ -62,6 +62,7 @@ layui.config({ form.on('submit(formSubBean)', function(data) { if(winui.verifyForm(data.elem)) { var state = $("input[name='state']:checked").val(); + var inductionState = $("#inductionState").val(); if (state == 6) { // 同意入职 if (isNull($("#entryTime").val())) { @@ -80,7 +81,6 @@ layui.config({ winui.window.msg('请选择入职状态', {icon: 2, time: 2000}); return false; } - var inductionState = $("#inductionState").val(); if (inductionState == '4' && isNull($("#trialTime").val())) { winui.window.msg('请选择预计试用结束日期', {icon: 2, time: 2000}); return false; @@ -93,7 +93,7 @@ layui.config({ entryTime: $("#entryTime").val(), workTime: $("#workTime").val(), userIdCard: $("#userIdCard").val(), - inductionState: inductionState, + inductionState: getNotUndefinedVal(inductionState), trialTime: $("#trialTime").val() }; AjaxPostUtil.request({url: sysMainMation.bossBasePath + "setInductionResult", params: params, type: 'json', method: "POST", callback: function(json) { diff --git a/crm/src/main/resources/template/js/follow/crmFollowList.js b/crm/src/main/resources/template/js/follow/crmFollowList.js index 9946f52fb03d802970cf6f31cc61f5b6eef92e4d..d0b6d5ca2ffd0d3fdaee24b580416002e7eac4f0 100644 --- a/crm/src/main/resources/template/js/follow/crmFollowList.js +++ b/crm/src/main/resources/template/js/follow/crmFollowList.js @@ -93,7 +93,7 @@ layui.config({ parent._openNewWindows({ url: systemCommonUtil.getUrl('FP2024050200001&objectId=' + objectId + '&objectKey=' + objectKey, null), title: systemLanguage["com.skyeye.addPageTitle"][languageType], - pageId: "crmDocumentaryAdd", + pageId: "crmFollowAdd", area: ['90vw', '90vh'], callBack: function (refreshCode) { winui.window.msg(systemLanguage["com.skyeye.successfulOperation"][languageType], {icon: 1, time: 2000}); @@ -106,7 +106,7 @@ layui.config({ parent._openNewWindows({ url: systemCommonUtil.getUrl('FP2024050200002&objectId=' + objectId + '&objectKey=' + objectKey + '&id=' + data.id, null), title: systemLanguage["com.skyeye.editPageTitle"][languageType], - pageId: "crmDocumentaryEdit", + pageId: "crmFollowEdit", area: ['90vw', '90vh'], callBack: function (refreshCode) { winui.window.msg(systemLanguage["com.skyeye.successfulOperation"][languageType], {icon: 1, time: 2000}); @@ -119,7 +119,7 @@ layui.config({ parent._openNewWindows({ url: systemCommonUtil.getUrl('FP2024050200003&objectId=' + objectId + '&objectKey=' + objectKey + '&id=' + data.id, null), title: systemLanguage["com.skyeye.detailsPageTitle"][languageType], - pageId: "crmDocumentaryDetails", + pageId: "crmFollowDetails", area: ['90vw', '90vh'], callBack: function (refreshCode) { winui.window.msg(systemLanguage["com.skyeye.successfulOperation"][languageType], {icon: 1, time: 2000}); diff --git a/crm/src/main/resources/template/js/invoiceHeader/crmInvoiceHeaderList.js b/crm/src/main/resources/template/js/invoiceHeader/crmInvoiceHeaderList.js new file mode 100644 index 0000000000000000000000000000000000000000..c1bac230558dcede258b1872ebbc848b14006df0 --- /dev/null +++ b/crm/src/main/resources/template/js/invoiceHeader/crmInvoiceHeaderList.js @@ -0,0 +1,142 @@ + +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"); + if (isNull(objectKey) || isNull(objectId)) { + winui.window.msg("请传入适用对象信息", {icon: 2, time: 2000}); + return false; + } + + var authPermission = teamObjectPermissionUtil.checkTeamBusinessAuthPermission(objectId, 'crmInvoiceHeaderAuthEnum'); + + table.render({ + id: 'messageTable', + elem: '#messageTable', + method: 'post', + url: sysMainMation.crmBasePath + 'queryInvoiceHeaderList', + where: getTableParams(), + even: true, + page: true, + limits: getLimits(), + limit: getLimit(), + cols: [[ + { title: systemLanguage["com.skyeye.serialNumber"][languageType], type: 'numbers' }, + { field: 'name', title: '发票抬头', align: 'left', width: 150, templet: function (d) { + return '' + d.name + ''; + }}, + { field: 'identificationNumber', title: '纳税识别号', width: 150 }, + { field: 'openingBank', title: '开户行', width: 150 }, + { field: 'openingAccount', title: '开户帐号', width: 150 }, + { field: 'billingAddress', title: '开票地址', width: 200 }, + { field: 'phone', title: '电话', width: 120 }, + { field: 'createName', title: systemLanguage["com.skyeye.createName"][languageType], align: 'left', width: 120 }, + { field: 'createTime', title: systemLanguage["com.skyeye.createTime"][languageType], align: 'center', width: 150 }, + { field: 'lastUpdateName', title: systemLanguage["com.skyeye.lastUpdateName"][languageType], align: 'left', width: 120 }, + { field: 'lastUpdateTime', title: systemLanguage["com.skyeye.lastUpdateTime"][languageType], align: 'center', width: 150 }, + { title: systemLanguage["com.skyeye.operation"][languageType], fixed: 'right', align: 'center', width: 150, templet: function (d) { + var str = ''; + if (authPermission['edit']) { + str += '' + } + if (authPermission['delete']) { + str += '' + } + return str; + }} + ]], + 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 === 'delete') { + del(data); + } else if (layEvent === 'details') { + details(data); + } + }); + + // 新增 + $("body").on("click", "#addBean", function() { + parent._openNewWindows({ + url: systemCommonUtil.getUrl('FP2024050300002&objectId=' + objectId + '&objectKey=' + objectKey, null), + title: systemLanguage["com.skyeye.addPageTitle"][languageType], + pageId: "crmInvoiceHeaderAdd", + 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: systemCommonUtil.getUrl('FP2024050300003&objectId=' + objectId + '&objectKey=' + objectKey + '&id=' + data.id, null), + title: systemLanguage["com.skyeye.editPageTitle"][languageType], + pageId: "crmInvoiceHeaderEdit", + 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('FP2024050300004&objectId=' + objectId + '&objectKey=' + objectKey + '&id=' + data.id, null), + title: systemLanguage["com.skyeye.detailsPageTitle"][languageType], + pageId: "crmInvoiceHeaderDetails", + 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.crmBasePath + "deleteInvoiceHeaderById", 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}, initTableSearchUtil.getSearchValue("messageTable")); + } + + exports('crmInvoiceHeaderList', {}); +}); \ No newline at end of file diff --git a/crm/src/main/resources/template/tpl/invoiceHeader/crmInvoiceHeaderList.html b/crm/src/main/resources/template/tpl/invoiceHeader/crmInvoiceHeaderList.html new file mode 100644 index 0000000000000000000000000000000000000000..5c8209812f5153443b1486f40ac374eab1dc75ff --- /dev/null +++ b/crm/src/main/resources/template/tpl/invoiceHeader/crmInvoiceHeaderList.html @@ -0,0 +1,25 @@ + + + + + + + + + +
+
+ + +
+
+
+
+
+ + + + + \ No newline at end of file diff --git a/web/src/main/resources/template/json/skyeyeClassEnum.json b/web/src/main/resources/template/json/skyeyeClassEnum.json index 5e72dfdb5f2aa0d0565749fad1b2e5d7b1aef59a..bbeb7018d54549c28861ef866ec90f09c1ae4ae3 100644 --- a/web/src/main/resources/template/json/skyeyeClassEnum.json +++ b/web/src/main/resources/template/json/skyeyeClassEnum.json @@ -90,6 +90,8 @@ "crmDocumentaryAuthEnum": {"name": "跟单权限", "className": "skyeye-crm#com.skyeye.documentary.classenum.CrmDocumentaryAuthEnum", "pageUrl": "../../tpl/documentary/crmDocumentaryList.html"}, "crmFollowUpAuthEnum": {"name": "回访权限", "className": "skyeye-crm#com.skyeye.follow.classenum.CrmFollowUpAuthEnum", "pageUrl": "../../tpl/follow/crmFollowList.html"}, "crmPaymentCollectionAuthEnum": {"name": "回款权限", "className": "skyeye-crm#com.skyeye.payment.classenum.CrmPaymentCollectionAuthEnum", "pageUrl": "../../tpl/payment/crmPaymentCollectionList.html"}, + "crmInvoiceHeaderAuthEnum": {"name": "发票抬头权限", "className": "skyeye-crm#com.skyeye.invoice.classenum.CrmInvoiceHeaderAuthEnum", "pageUrl": "../../tpl/invoiceHeader/crmInvoiceHeaderList.html"}, + "crmInvoiceAuthEnum": {"name": "发票权限", "className": "skyeye-crm#com.skyeye.invoice.classenum.CrmInvoiceAuthEnum", "pageUrl": "../../tpl/invoiceHeader/crmInvoiceHeaderList.html"}, "accountSubjectType": {"name": "会计科目类型", "className": "skyeye-ifs#com.skyeye.subject.classenum.AccountSubjectType"}, "amountDirection": {"name": "余额方向", "className": "skyeye-ifs#com.skyeye.subject.classenum.AmountDirection"},