From 6df26d6461ef506476ef2b9bc6d6272339877031 Mon Sep 17 00:00:00 2001 From: weizhiqiang <598748873@qq.com> Date: Tue, 18 Jan 2022 21:10:43 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../js/bossInterviewee/bossIntervieweeAdd.js | 99 +++++++++++++++++++ ...eList.js => myEnterBossIntervieweeList.js} | 5 +- .../bossInterviewee/bossIntervieweeAdd.html | 89 +++++++++++++++++ ...t.html => myEnterBossIntervieweeList.html} | 2 +- .../template/js/income/incomeList.js | 1 + .../assets/lib/layui/customer/bossUtil.js | 6 +- 6 files changed, 196 insertions(+), 6 deletions(-) rename boss/src/main/resources/template/js/bossInterviewee/{bossIntervieweeList.js => myEnterBossIntervieweeList.js} (98%) rename boss/src/main/resources/template/tpl/bossInterviewee/{bossIntervieweeList.html => myEnterBossIntervieweeList.html} (96%) diff --git a/boss/src/main/resources/template/js/bossInterviewee/bossIntervieweeAdd.js b/boss/src/main/resources/template/js/bossInterviewee/bossIntervieweeAdd.js index e69de29bb..9ac2c8aa0 100644 --- a/boss/src/main/resources/template/js/bossInterviewee/bossIntervieweeAdd.js +++ b/boss/src/main/resources/template/js/bossInterviewee/bossIntervieweeAdd.js @@ -0,0 +1,99 @@ + +layui.config({ + base: basePath, + version: skyeyeVersion +}).extend({ + window: 'js/winui.window' +}).define(['window', 'jquery', 'winui', 'textool', 'tagEditor'], function (exports) { + winui.renderColor(); + layui.use(['form'], function (form) { + var index = parent.layer.getFrameIndex(window.name); + var $ = layui.$, + textool = layui.textool; + + textool.init({ + eleId: 'basicResume', + maxlength: 1000, + tools: ['count', 'copy', 'reset', 'clear'] + }); + + skyeyeEnclosure.init('enclosureUpload'); + matchingLanguage(); + form.render(); + form.on('submit(formAddBean)', function (data) { + if (winui.verifyForm(data.elem)) { + var params = { + name: $("#name").val(), + sex: $("input[name='userSex']:checked").val(), + idcard: $("#idcard").val(), + phone: $("#phone").val(), + workYears: $("#workYears").val(), + chargePersonId: chargePerson[0].id, + favoriteJob: $("#favoriteJob").val(), + basicResume: $("#basicResume").val(), + enclosureResume: skyeyeEnclosure.getEnclosureIdsByBoxId('enclosureUpload') + }; + AjaxPostUtil.request({url: reqBasePath + "bossIntervieweeFrom002", params: params, type: 'json', method: "POST", callback: function(json){ + if(json.returnCode == 0){ + parent.layer.close(index); + parent.refreshCode = '0'; + }else{ + winui.window.msg(json.returnMessage, {icon: 2, time: 2000}); + } + }}); + } + return false; + }); + + var chargePerson = []; + $('#chargePersonId').tagEditor({ + initialTags: [], + placeholder: '请选择负责人', + editorTag: false, + beforeTagDelete: function(field, editor, tags, val) { + var inArray = -1; + $.each(chargePerson, function(i, item) { + if(val === item.name) { + inArray = i; + return false; + } + }); + if(inArray != -1) { //如果该元素在集合中存在 + chargePerson.splice(inArray, 1); + } + } + }); + + // 人员选择 + $("body").on("click", "#toHandsPersonSelPeople", function(e){ + systemCommonUtil.userReturnList = [].concat(chargePerson); + systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含 + systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要 + systemCommonUtil.checkType = "2"; // 人员选择类型,1.多选;其他。单选 + systemCommonUtil.openSysUserStaffChoosePage(function (staffChooseList){ + // 移除所有tag + var tags = $('#handsPersonId').tagEditor('getTags')[0].tags; + for (i = 0; i < tags.length; i++) { + $('#chargePersonId').tagEditor('removeTag', tags[i]); + } + chargePerson = [].concat(staffChooseList); + // 添加新的tag + $.each(chargePerson, function(i, item){ + $('#chargePersonId').tagEditor('addTag', item.name); + }); + }); + }); + + // 选择来源 + $("body").on("click", "#toChooseFromId", function(e){ + var _this = $(this); + bossUtil.openBossIntervieweeFromChoosePage(function (bossIntervieweeFromMation){ + _this.parent().find("input").val(bossIntervieweeFromMation.name); + }); + }); + + $("body").on("click", "#cancle", function(){ + parent.layer.close(index); + }); + }); +}); \ No newline at end of file diff --git a/boss/src/main/resources/template/js/bossInterviewee/bossIntervieweeList.js b/boss/src/main/resources/template/js/bossInterviewee/myEnterBossIntervieweeList.js similarity index 98% rename from boss/src/main/resources/template/js/bossInterviewee/bossIntervieweeList.js rename to boss/src/main/resources/template/js/bossInterviewee/myEnterBossIntervieweeList.js index 2a4e02271..e21de88eb 100644 --- a/boss/src/main/resources/template/js/bossInterviewee/bossIntervieweeList.js +++ b/boss/src/main/resources/template/js/bossInterviewee/myEnterBossIntervieweeList.js @@ -140,9 +140,10 @@ layui.config({ function getTableParams(){ return { name: $("#name").val(), - phone: $("#phone").val() + phone: $("#phone").val(), + type: 1 }; } - exports('bossIntervieweeList', {}); + exports('myEnterBossIntervieweeList', {}); }); diff --git a/boss/src/main/resources/template/tpl/bossInterviewee/bossIntervieweeAdd.html b/boss/src/main/resources/template/tpl/bossInterviewee/bossIntervieweeAdd.html index e69de29bb..0794921ab 100644 --- a/boss/src/main/resources/template/tpl/bossInterviewee/bossIntervieweeAdd.html +++ b/boss/src/main/resources/template/tpl/bossInterviewee/bossIntervieweeAdd.html @@ -0,0 +1,89 @@ + + + + + + + + + +
+
+
+ +
+ +
+
+
+ +
+ + + +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ + +
+
+
+ +
+ +
+
+
+ +
+ + +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+
+
+
+
+ + +
+
+
+
+ + + + + \ No newline at end of file diff --git a/boss/src/main/resources/template/tpl/bossInterviewee/bossIntervieweeList.html b/boss/src/main/resources/template/tpl/bossInterviewee/myEnterBossIntervieweeList.html similarity index 96% rename from boss/src/main/resources/template/tpl/bossInterviewee/bossIntervieweeList.html rename to boss/src/main/resources/template/tpl/bossInterviewee/myEnterBossIntervieweeList.html index 5767a0cc6..57cf872dd 100644 --- a/boss/src/main/resources/template/tpl/bossInterviewee/bossIntervieweeList.html +++ b/boss/src/main/resources/template/tpl/bossInterviewee/myEnterBossIntervieweeList.html @@ -45,7 +45,7 @@ \ No newline at end of file diff --git a/ifs/src/main/resources/template/js/income/incomeList.js b/ifs/src/main/resources/template/js/income/incomeList.js index 5090ca534..54fffb627 100644 --- a/ifs/src/main/resources/template/js/income/incomeList.js +++ b/ifs/src/main/resources/template/js/income/incomeList.js @@ -42,6 +42,7 @@ layui.config({ { field: 'state', title: '状态', align: 'left', rowspan: '2', width: 80, templet: function(d){ return activitiUtil.showStateName2(d.state, d.submitType); }}, + { field: 'typeName', title: '类型', rowspan: '2', align: 'left', width: 80}, { field: 'organTypeName', title: '往来单类型', rowspan: '2', align: 'left', width: 100}, { field: 'supplierName', title: '往来单位', rowspan: '2', align: 'left', width: 150}, { field: 'totalPrice', title: '合计金额', rowspan: '2', align: 'left', width: 120}, diff --git a/web/src/main/resources/template/assets/lib/layui/customer/bossUtil.js b/web/src/main/resources/template/assets/lib/layui/customer/bossUtil.js index d4c9af846..91b6c446d 100644 --- a/web/src/main/resources/template/assets/lib/layui/customer/bossUtil.js +++ b/web/src/main/resources/template/assets/lib/layui/customer/bossUtil.js @@ -10,10 +10,10 @@ var bossUtil = { bossIntervieweeFromChooseMation: {}, // 已经选择的面试者来源信息 openBossIntervieweeFromChoosePage: function (callback){ _openNewWindows({ - url: "../../tpl/", + url: "../../tpl/bossIntervieweeFrom/bossIntervieweeFromListChoose.html", title: "面试者来源", - pageId: "dsFormObjectRelationChooseByFirstTypeCodePage", - area: ['480px', '500px'], + pageId: "bossIntervieweeFromListChoosePage", + area: ['90vw', '90vh'], callBack: function(refreshCode){ if (refreshCode == '0') { if(typeof(callback) == "function") { -- GitLab