src/main/java/com/zy/crm/manager/controller/WeeklyController.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/main/java/com/zy/crm/manager/entity/WeeklyDailyPlan.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/main/java/com/zy/crm/manager/entity/WeeklyDailyReality.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/main/resources/mapper/WeeklyDailyPlanMapper.xml | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/main/resources/mapper/WeeklyDailyRealityMapper.xml | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/main/webapp/static/js/weekly/weekly.js | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/main/webapp/views/weekly/weekly.html | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
src/main/java/com/zy/crm/manager/controller/WeeklyController.java
@@ -187,8 +187,8 @@ weekly.setStatus(0); break; default: log.error("参数异常:Weekly="+param.getType()); throw new CoolException("参数异常:Weekly="+param.getType()); log.error("请选择日期:参数异常:Weekly="+param.getWeeklyType()); throw new CoolException("请选择日期"); } Integer weeklyRepeatCount = weeklyService.selectUserStartAndEnd(dateList, getUserId()); src/main/java/com/zy/crm/manager/entity/WeeklyDailyPlan.java
@@ -101,6 +101,20 @@ private String comment; /** * 工作内容 */ @ApiModelProperty(value= "工作内容") @TableField("work_content") private String workContent; /** * 工作目的 */ @ApiModelProperty(value= "工作目的") @TableField("work_purpose") private String workPurpose; /** * 添加人员 */ @ApiModelProperty(value= "添加人员") src/main/java/com/zy/crm/manager/entity/WeeklyDailyReality.java
@@ -99,6 +99,20 @@ private String comment; /** * 工作内容 */ @ApiModelProperty(value= "工作内容") @TableField("work_content") private String workContent; /** * 工作目的 */ @ApiModelProperty(value= "工作目的") @TableField("work_purpose") private String workPurpose; /** * 添加人员 */ @ApiModelProperty(value= "添加人员") src/main/resources/mapper/WeeklyDailyPlanMapper.xml
@@ -13,6 +13,8 @@ <result column="settle" property="settle" /> <result column="settle_msg" property="settleMsg" /> <result column="comment" property="comment" /> <result column="work_content" property="workContent" /> <result column="work_purpose" property="workPurpose" /> <result column="create_by" property="createBy" /> <result column="create_time" property="createTime" /> <result column="update_by" property="updateBy" /> src/main/resources/mapper/WeeklyDailyRealityMapper.xml
@@ -13,6 +13,8 @@ <result column="settle" property="settle" /> <result column="settle_msg" property="settleMsg" /> <result column="comment" property="comment" /> <result column="work_content" property="workContent" /> <result column="work_purpose" property="workPurpose" /> <result column="create_by" property="createBy" /> <result column="create_time" property="createTime" /> <result column="update_by" property="updateBy" /> src/main/webapp/static/js/weekly/weekly.js
@@ -1,6 +1,8 @@ var pageCurr; var admin; var treeCond; var htmlCstme; var htmlCstmrData; layui.config({ base: baseUrl + "/static/layui/lay/modules/" }).extend({ @@ -71,6 +73,35 @@ } }) } // // 渲染搜索模板 // $.ajax({ // url: baseUrl+"/cstmr/all/get/kv", // headers: {'token': localStorage.getItem('token')}, // data: { // limit: 9999 // }, // method: 'POST', // // async: false, // 设置为同步执行 // success: function (res) { // htmlCstme = "<select id=\"select_cstmr\" name=\"select_cstmr\" lay-vertype=\"tips\" lay-verify=\"required\" required=\"\">" // htmlCstme = htmlCstme + // " <option style=\"display: none\"></option>\n" // if (res.code === 200){ // for (var val in res.data) { // var cstmrVal = res.data[val] // console.log(cstmrVal) // htmlCstme = htmlCstme + // " <option value = \""+cstmrVal.value+"\"+\n" + // " > "+cstmrVal.name+" </option>\n" // } // } else { // htmlCstme = htmlCstme + // "<option value=\"0\">异常</option>" // } // htmlCstme = htmlCstme + "\n" + " </select>"; // } // }) // 数据渲染 tableIns = table.render({ @@ -393,9 +424,9 @@ success: function (layero, dIndex) { $(layero).children('.layui-layer-content').css('overflow', 'visible'); var isExpAdd = !expTpe; // if (expTpe){ // document.getElementById('weeklyDisplay').style.display = 'none'; // } if (expTpe){ document.getElementById('weeklyDisplay').style.display = 'none'; } // 回显数据 form.val('editForm', expTpe); console.log(expTpe) @@ -456,18 +487,29 @@ cols: [[ {type: 'numbers', title: '#'} ,{field: 'weeklyDay$', align: 'center',title: '星期'} ,{field: 'comment', title: '评论', width: 100, style: 'color: blue;font-weight: bold', edit:true} ,{field: 'weeklyMatter', title: '需协助事项', width: 100, style: 'color: blue;font-weight: bold', edit:true} ,{field: 'dailyTime$', align: 'center',title: '日报日期'} ,{field: 'settleMsg', align: 'center',title: '审核进度'} ,{field: 'director', align: 'center',title: '负责人'} ,{field: 'settleSize', align: 'center',title: '流程长度'} ,{field: 'settleCurrent', align: 'center',title: '当前进度'} ,{field: 'cstmrId', align: 'center',title: '甲方单位ID'} ,{field: 'workContent', title: '工作内容', style: 'color: blue;font-weight: bold', edit:true} ,{field: 'workPurpose', title: '工作目的', style: 'color: blue;font-weight: bold', edit:true} ,{field: 'comment', title: '评论', style: 'color: blue;font-weight: bold', edit:true} ,{field: 'weeklyMatter', title: '需协助事项', style: 'color: blue;font-weight: bold', edit:true} // ,{field: 'dailyTime$', align: 'center',title: '日报日期'} // ,{field: 'settleMsg', align: 'center',title: '审核进度'} // ,{field: 'director', align: 'center',title: '负责人'} // ,{field: 'settleSize', align: 'center',title: '流程长度'} // ,{field: 'settleCurrent', align: 'center',title: '当前进度'} ,{field: 'cstmrId', align: 'center',title: '甲方单位ID', style: 'color: blue;font-weight: bold', templet: '#cstmrId'}//, templet: function () { return htmlCstme;} ,{field: 'memo', align: 'center',title: '备注', width: 100, style: 'color: blue;font-weight: bold', edit:true} ,{align: 'center', title: '操作', toolbar: '#formSSXMTableBar', minWidth: 80, width: 80, fixed: 'right'} ]], parseData: function (res) { return { 'code': res.code, 'msg': res.msg, 'count': res.data.total, 'data': res.data.records } }, done: function (res, curr, count) { $(".layui-table-cell").css('overflow', 'visible');//解决layui数据表格中嵌套下拉框显示问题 $(layero).find('.layui-table-view').css('margin', '0'); var options = this; @@ -477,18 +519,40 @@ return table.cache[options.id][index] || {}; }; $('.input-occupation').on('text', function(){ $('.select-cstmr').on('change', function(){ console.log("cstmrId") var value = this.value; // 获取选中项 value var data = table.getRowData(this); console.log(value); console.log("value------==="); xxDataList.forEach(res => { if (data.id === res.id){ if (data.LAY_TABLE_INDEX === res.LAY_TABLE_INDEX){ console.log(res) res.occupation = value; // console.log(data) res.cstmrId = value; } }) }); $(document).ready(function () { $.ajax({ url: baseUrl + "/cstmr/all/get/kv", headers: { 'token': localStorage.getItem('token') }, data: { limit: 9999 }, method: 'POST', success: function (res) { if (res.code === 200) { console.log("res111111111111") console.log(res) var template = $('#cstmrId').html(); // 获取模板内容 var compiledTemplate = Handlebars.compile(template); // 编译模板 var html = compiledTemplate(res.data); // 将数据应用到模板中 $('.select-cstmr').html(html); // 渲染模板到页面 } else { // 处理异常情况 } } }); }); }, size: '' src/main/webapp/views/weekly/weekly.html
@@ -123,10 +123,10 @@ <!-- </div>--> <!-- </div>--> <!-- </div>--> <div class="layui-form-item"> <div class="layui-form-item" style="display: block" id="weeklyDisplay"> <label class="layui-form-label layui-form-required">日期: </label> <div class="layui-input-inline"> <select class="layui-input" name="weeklyType" lay-vertype="tips" lay-verify="required"> <select class="layui-input" name="weeklyType" lay-vertype="tips"> <option style="display: none"></option> <option value="1">上周</option> <option value="2">本周</option> @@ -186,6 +186,28 @@ </form> </script> <!--<script type="text/template" id="cstmrTpl">--> <!-- <option value="">选择类型</option>--> <!-- {{#each records}}--> <!-- <option value="{{docId}}">{{docName}}</option>--> <!-- {{/each}}--> <!-- <option value="">选择甲方单位</option>--> <!-- {{#each records}}--> <!-- <option value="{{value}}">{{name}}</option>--> <!-- {{/each}}--> <!--</script>--> <script type="text/template" id="cstmrId"> <select id="select-cstmr" style="width: 100%" class="layui-border select-cstmr" lay-ignore > <option value="1">仓储</option> <option value="0">代采</option> </select> </script> <script> </script> <!--<!– 表单弹窗 –>--> <!--<script type="text/html" id="editDialog">--> <!-- <form id="detail" lay-filter="detail" class="layui-form admin-form model-form">-->