Ver Fonte

Merge branch 'master' of http://47.100.37.243:10191/wutt/manHourHousekeeper

zhouyy há 6 meses atrás
pai
commit
877755c478
28 ficheiros alterados com 84 adições e 28 exclusões
  1. 2 0
      fhKeeper/formulahousekeeper/management-platform/src/main/java/com/management/platform/controller/ReportController.java
  2. 24 1
      fhKeeper/formulahousekeeper/management-platform/src/main/java/com/management/platform/service/impl/ReportServiceImpl.java
  3. 0 1
      fhKeeper/formulahousekeeper/management-workshop/src/main/java/com/management/platform/service/impl/ReportServiceImpl.java
  4. 1 1
      fhKeeper/formulahousekeeper/timesheet/src/views/workReport/daily.vue
  5. 1 0
      fhKeeper/formulahousekeeper/timesheet/src/views/workReport/list.vue
  6. 3 3
      fhKeeper/formulahousekeeper/timesheet_h5/src/views/edit/index.vue
  7. 33 3
      fhKeeper/formulahousekeeper/timesheet_h5/src/views/edit/weekEdit.vue
  8. 1 0
      fhKeeper/formulahousekeeper/timesheet_h5/src/views/review/index.vue
  9. 14 14
      fhKeeper/formulahousekeeper/webttkuaiban/src/main/resources/static/customerNew.html
  10. 1 1
      fhKeeper/formulahousekeeper/webttkuaiban/src/main/resources/static/followup.html
  11. BIN
      fhKeeper/formulahousekeeper/webttkuaiban/src/main/resources/static/image/customer/kehu2.jpg
  12. BIN
      fhKeeper/formulahousekeeper/webttkuaiban/src/main/resources/static/image/customer/kehu3.jpg
  13. BIN
      fhKeeper/formulahousekeeper/webttkuaiban/src/main/resources/static/image/customer/kehu4.jpg
  14. BIN
      fhKeeper/formulahousekeeper/webttkuaiban/src/main/resources/static/image/customerNew/Customer_Steward_evaluate.png
  15. BIN
      fhKeeper/formulahousekeeper/webttkuaiban/src/main/resources/static/image/customerNew/Customer_Steward_evaluate2.png
  16. BIN
      fhKeeper/formulahousekeeper/webttkuaiban/src/main/resources/static/image/customerNew/Customer_Steward_evaluate3.png
  17. BIN
      fhKeeper/formulahousekeeper/webttkuaiban/src/main/resources/static/image/customerNew/exhibitionListImg1.png
  18. BIN
      fhKeeper/formulahousekeeper/webttkuaiban/src/main/resources/static/image/customerNew/exhibitionListImg10.png
  19. BIN
      fhKeeper/formulahousekeeper/webttkuaiban/src/main/resources/static/image/customerNew/exhibitionListImg11.png
  20. BIN
      fhKeeper/formulahousekeeper/webttkuaiban/src/main/resources/static/image/customerNew/exhibitionListImg2.png
  21. BIN
      fhKeeper/formulahousekeeper/webttkuaiban/src/main/resources/static/image/customerNew/exhibitionListImg3.png
  22. BIN
      fhKeeper/formulahousekeeper/webttkuaiban/src/main/resources/static/image/customerNew/exhibitionListImg4.png
  23. BIN
      fhKeeper/formulahousekeeper/webttkuaiban/src/main/resources/static/image/customerNew/exhibitionListImg5.png
  24. BIN
      fhKeeper/formulahousekeeper/webttkuaiban/src/main/resources/static/image/customerNew/exhibitionListImg6.png
  25. BIN
      fhKeeper/formulahousekeeper/webttkuaiban/src/main/resources/static/image/customerNew/exhibitionListImg7.png
  26. BIN
      fhKeeper/formulahousekeeper/webttkuaiban/src/main/resources/static/image/customerNew/exhibitionListImg8.png
  27. BIN
      fhKeeper/formulahousekeeper/webttkuaiban/src/main/resources/static/image/customerNew/exhibitionListImg9.png
  28. 4 4
      fhKeeper/formulahousekeeper/webttkuaiban/src/main/resources/static/workshop.html

+ 2 - 0
fhKeeper/formulahousekeeper/management-platform/src/main/java/com/management/platform/controller/ReportController.java

@@ -2348,8 +2348,10 @@ public class ReportController {
         try {
             msg = reportService.batchApproveReport(ids, isDepartment, request,evaluate);
         } catch (NullPointerException e) {
+            e.printStackTrace();
             msg.setError("批量审核失败:NullPointerExp-"+e.getMessage());
         } catch (Exception e) {
+            e.printStackTrace();
             msg.setError("批量审核失败:"+e.getMessage());
         }
         return msg;

+ 24 - 1
fhKeeper/formulahousekeeper/management-platform/src/main/java/com/management/platform/service/impl/ReportServiceImpl.java

@@ -222,10 +222,12 @@ public class ReportServiceImpl extends ServiceImpl<ReportMapper, Report> impleme
     private ReportPushLogService reportPushLogService;
     @Resource
     private SapSyncLogService sapSyncLogService;
-
+    @Resource
+    private CompanyDictMapper companyDictMapper;
     @Value(value = "${upload.path}")
     private String path;
 
+
     //获取报告列表
     @Override
     public HttpRespMsg getReportList(String date,  Integer deptId, String targetUid, Integer pageIndex,
@@ -3790,6 +3792,7 @@ public class ReportServiceImpl extends ServiceImpl<ReportMapper, Report> impleme
                     updateBatchById(updateReportList);
                 }
             } else if (timeType.getReportAuditType() == 10) {
+                allUsers = userMapper.selectList(new QueryWrapper<User>().select("id, name, department_id").eq("company_id", company.getId()));
                 //项目经理或者公司副总审核;直接审核通过
                 boolean hasAuditAllPri = sysFunctionService.hasPriviledge(user.getRoleId(), "审核全员日报");
                 List<Report> updateReportList = new ArrayList<>();
@@ -5931,11 +5934,22 @@ public class ReportServiceImpl extends ServiceImpl<ReportMapper, Report> impleme
 //            titles.add("工作日期");
 //            titles.add("工作时长(小时)");
             titles.add(MessageUtils.message("entry.workDate"));
+            //具体工作细项
+            boolean hasDetailItem = false;
+            if (timeType.getType() == 2 && timeType.getMultiWorktime() == 1) {
+                Integer i = companyDictMapper.selectCount(new QueryWrapper<CompanyDict>().eq("company_id", companyId).eq("code", "multiOption"));
+                if (i > 0) {
+                    hasDetailItem = true;
+                    titles.add("具体工时");
+                }
+            }
             titles.add(MessageUtils.message("excel.WorkHours"));
+
             if (timeType.getMultiWorktime() == 1) {
                 //titles.add("工时时间");
                 titles.add(MessageUtils.message("excel.hours"));
             }
+
             //titles.add("加班");
             titles.add(MessageUtils.message("excel.workOvertime"));
             //是否启用自定义的维度了
@@ -6098,6 +6112,7 @@ public class ReportServiceImpl extends ServiceImpl<ReportMapper, Report> impleme
                                 newMap.put("startTime", worktimeItem.getStartTime());
                                 newMap.put("endTime", worktimeItem.getEndTime());
                                 newMap.put("content", worktimeItem.getContent());
+                                newMap.put("detail", worktimeItem.getDetail());
                                 newMap.put("duration", df.format(worktimeItem.getTime()));
                                 //第一条填充加班
                                 if (isOvertime == 1 && i == 0) {
@@ -6114,6 +6129,7 @@ public class ReportServiceImpl extends ServiceImpl<ReportMapper, Report> impleme
                             newMap.put("startTime", "");
                             newMap.put("endTime", "");
                             newMap.put("content", "");
+                            newMap.put("detail", "");
                             dealDataList.add(newMap);
                         }
                     } else {
@@ -6278,6 +6294,13 @@ public class ReportServiceImpl extends ServiceImpl<ReportMapper, Report> impleme
                     createDate = (String) map.get("createDate");
                 }
                 item.add(createDate);
+                if (hasDetailItem) {
+                    if (map.get("detail") == null) {
+                        item.add("");
+                    } else {
+                        item.add((String) map.get("detail"));
+                    }
+                }
                 item.add(map.get("duration").toString());
                 if (timeType.getMultiWorktime() == 1) {
                     if ((Integer)map.get("multiWorktime") == 1) {

+ 0 - 1
fhKeeper/formulahousekeeper/management-workshop/src/main/java/com/management/platform/service/impl/ReportServiceImpl.java

@@ -5094,7 +5094,6 @@ public class ReportServiceImpl extends ServiceImpl<ReportMapper, Report> impleme
     @Override
     public HttpRespMsg deleteReport(String id) {
         HttpRespMsg httpRespMsg = new HttpRespMsg();
-        String token = request.getHeader("TOKEN");
         Report report = reportMapper.selectById(id);
         if (report == null) {
             httpRespMsg.setError("报工不存在");

+ 1 - 1
fhKeeper/formulahousekeeper/timesheet/src/views/workReport/daily.vue

@@ -325,7 +325,7 @@
                                                             <p style="display: inline-block;">{{$t('time.duration')}}:
                                                                 <span v-if="item2.reportTimeType == 2" style="margin-right:10px;">{{timeItem.startTime+'-'+timeItem.endTime}}</span>
                                                             {{timeItem.time.toFixed(1)}}h  
-                                                            <span v-if="timeItem.detail" style="margin-left:10px;">细项:
+                                                            <span v-if="timeItem.detail" style="margin-left:10px;">
                                                                 {{timeItem.detail}}
                                                             </span>
                                                             </p>

+ 1 - 0
fhKeeper/formulahousekeeper/timesheet/src/views/workReport/list.vue

@@ -181,6 +181,7 @@
                                             <p style="line-height:20px;margin:5px 0px;">{{$t('time.duration')}}:
                                                 <span v-if="item.reportTimeType == 2" style="margin-right:10px;">{{timeItem.startTime+'-'+timeItem.endTime}}</span>
                                             {{timeItem.time.toFixed(1)}}h  
+                                            <span v-if="timeItem.detail" style="margin-left:10px;"> {{timeItem.detail}} </span>
                                             </p>
                                             <p style="line-height:20px;margin:5px 0px;">{{ $t('other.matters') }}:<span v-html="timeItem.content"></span></p>
                                         </div>

+ 3 - 3
fhKeeper/formulahousekeeper/timesheet_h5/src/views/edit/index.vue

@@ -402,9 +402,9 @@
                                 @click="item.canEdit ? showChooseDetail(timeItem) : ''" />
                             <!-- 工作细项, 美莱德 -->
                             <van-popup v-model="showMultiOpPicker" position="bottom">
-                                                        <van-picker show-toolbar :columns="multiOptionData" :default-index="1" @confirm="choseMultiOptionPick"
-                                                            @cancel="showMultiOpPicker = false" />
-                                                    </van-popup>
+                                <van-picker show-toolbar :columns="multiOptionData" :default-index="1" @confirm="choseMultiOptionPick"
+                                    @cancel="showMultiOpPicker = false" />
+                            </van-popup>
                             <van-field class="form_input" :disabled="!item.canEdit"
                                 style="color:#333;-webkit-text-fill-color:#646566;" v-model="timeItem.content"
                                 name="content" type="textarea" label="工作事项" placeholder="请输入工作事项"

+ 33 - 3
fhKeeper/formulahousekeeper/timesheet_h5/src/views/edit/weekEdit.vue

@@ -317,7 +317,15 @@
                                 :value="timeItem.endTime" label="结束时间" placeholder="点击选择时间" 
                                 :rules="[{ required: true, message: '必填项' }]" :disabled="item.state<=1"
                                     @click="showEndDialog(timeItem)"  />
-                                
+                                <van-field v-if="multiOptionData.length>0" readonly :clickable="true" name="multiTimePicker"
+                                    :value="timeItem.detail" label="细项" placeholder="点击选择"
+                                    :rules="[{ required: true, message: '必填项' }]"
+                                    @click="item.state>1 ? showChooseDetail(timeItem) : ''" />
+                                <!-- 工作细项, 美莱德 -->
+                                <van-popup v-model="showMultiOpPicker" position="bottom">
+                                    <van-picker show-toolbar :columns="multiOptionData" :default-index="1" @confirm="choseMultiOptionPick"
+                                        @cancel="showMultiOpPicker = false" />
+                                </van-popup>
                                 <van-field class="form_input" style="color:#333;-webkit-text-fill-color:#646566;"
                                     :disabled="item.state<=1"
                                     v-model="timeItem.content" name="content" type="textarea" label="工作事项" placeholder="请输入工作事项" 
@@ -485,7 +493,8 @@
     export default {
         data() {
             return {
-
+                showMultiOpPicker: false,
+                multiOptionData:[],
                 showPickerStage: false,
                 showPickerTaskGroup: false,
                 showPickerSubProject: false,
@@ -1107,6 +1116,14 @@
                         this.$forceUpdate();
                     }).catch(err=> {this.$toast.clear();});
             },
+            showChooseDetail(timeItem) {
+                this.curWorktime = timeItem;
+                this.showMultiOpPicker=true;
+            },
+            choseMultiOptionPick(value) {
+                this.curWorktime.detail = value;
+                this.showMultiOpPicker = false;
+            },
             showEndDialog(timeItem) {
                 this.curWorktime = timeItem;
                 this.showWorkEndTime = true;
@@ -2786,7 +2803,19 @@
                         this.getTaskList(projectId, 0, true, i)
                     }
                 }
-            }
+            },
+            getMultiOptionData() {
+                this.$axios.post('/company-dict/getAll', { companyId: this.user.companyId,code: 'multiOption' })
+                    .then(res => {
+                        if (res.code == "ok") {
+                            var list = res.data;
+                            this.multiOptionData = [];
+                            for (var i in list) {
+                                this.multiOptionData.push(list[i].value);
+                            }
+                        } 
+                    }).catch(err => { this.$toast.clear(); });
+            },
         },
         
         mounted() {
@@ -2836,6 +2865,7 @@
             this.getAllUsersList()
             // this.getReport();
             this.getTimeType();
+            this.getMultiOptionData();
             //初始化微信js-sdk参数
             if (this.isCorpWX) {
                 this.initWxConfig();

+ 1 - 0
fhKeeper/formulahousekeeper/timesheet_h5/src/views/review/index.vue

@@ -170,6 +170,7 @@
                                 <div class="project_time">时长:
                                     <!-- <span v-if="timeItem.reportTimeType == 0" style="margin-right:10px;">{{fullDayTxt[item1.timeType]}}</span> -->
                                     <span style="margin-right:10px;">{{timeItem.startTime+'-'+timeItem.endTime}}</span>{{timeItem.time.toFixed(1)}}h
+                                    <span style="margin-left:5px;" v-if="timeItem.detail">{{ timeItem.detail }}</span>
                                 </div>
                                 <div class="project_content">事项:<span v-html="timeItem.content"></span></div>
                             </div>

Diff do ficheiro suprimidas por serem muito extensas
+ 14 - 14
fhKeeper/formulahousekeeper/webttkuaiban/src/main/resources/static/customerNew.html


+ 1 - 1
fhKeeper/formulahousekeeper/webttkuaiban/src/main/resources/static/followup.html

@@ -58,7 +58,7 @@
     </div>
     <!-- bannar图片 -->
     <div class="bannar">
-        <img src="./image/followup/bannar.png" alt="">
+        <img src="./image/followup/bannar.jpg" alt="">
         <div class="bannarCon">
             <div class="bannarConTil">
                 全面管理临床随访数据

BIN
fhKeeper/formulahousekeeper/webttkuaiban/src/main/resources/static/image/customer/kehu2.jpg


BIN
fhKeeper/formulahousekeeper/webttkuaiban/src/main/resources/static/image/customer/kehu3.jpg


BIN
fhKeeper/formulahousekeeper/webttkuaiban/src/main/resources/static/image/customer/kehu4.jpg


BIN
fhKeeper/formulahousekeeper/webttkuaiban/src/main/resources/static/image/customerNew/Customer_Steward_evaluate.png


BIN
fhKeeper/formulahousekeeper/webttkuaiban/src/main/resources/static/image/customerNew/Customer_Steward_evaluate2.png


BIN
fhKeeper/formulahousekeeper/webttkuaiban/src/main/resources/static/image/customerNew/Customer_Steward_evaluate3.png


BIN
fhKeeper/formulahousekeeper/webttkuaiban/src/main/resources/static/image/customerNew/exhibitionListImg1.png


BIN
fhKeeper/formulahousekeeper/webttkuaiban/src/main/resources/static/image/customerNew/exhibitionListImg10.png


BIN
fhKeeper/formulahousekeeper/webttkuaiban/src/main/resources/static/image/customerNew/exhibitionListImg11.png


BIN
fhKeeper/formulahousekeeper/webttkuaiban/src/main/resources/static/image/customerNew/exhibitionListImg2.png


BIN
fhKeeper/formulahousekeeper/webttkuaiban/src/main/resources/static/image/customerNew/exhibitionListImg3.png


BIN
fhKeeper/formulahousekeeper/webttkuaiban/src/main/resources/static/image/customerNew/exhibitionListImg4.png


BIN
fhKeeper/formulahousekeeper/webttkuaiban/src/main/resources/static/image/customerNew/exhibitionListImg5.png


BIN
fhKeeper/formulahousekeeper/webttkuaiban/src/main/resources/static/image/customerNew/exhibitionListImg6.png


BIN
fhKeeper/formulahousekeeper/webttkuaiban/src/main/resources/static/image/customerNew/exhibitionListImg7.png


BIN
fhKeeper/formulahousekeeper/webttkuaiban/src/main/resources/static/image/customerNew/exhibitionListImg8.png


BIN
fhKeeper/formulahousekeeper/webttkuaiban/src/main/resources/static/image/customerNew/exhibitionListImg9.png


+ 4 - 4
fhKeeper/formulahousekeeper/webttkuaiban/src/main/resources/static/workshop.html

@@ -8,14 +8,14 @@
     />
     <meta
       name="keywords"
-      content="工时管理,项目工时管理,项目成本管理,工时统计,项目成本统计,工时记录表,工时统计表"
+      content="生产车间管理,车间工时统计,生产管理,工人报工,计件工资,计时工资,生产单,排产工单,免费MES, mes"
     />
     <meta
       name="description"
-      content="工时管家是专业的工时管理和项目管理软件。提供工时填报,审核和工时统计功能。引进现代工时管理和项目管理的理念,核算项目投入成本准确便捷,企业IPO项目成本分摊好帮手"
+      content="车间管家是一款帮助生产车间进行生产计划和工人报工管理的软件,它能够分层级下发生产计划,由员工每日报工,实时查看生产进度。并提供工人的计件工资表,方便管理人员统计数据。"
     />
     <title>
-      工时管理|工时记录表|项目成本管理-工时管家是强大易用的项目工时管理系统。工时填报|工时统计|手机移动填报|核算项目成本|企业IPO利器!
+      生产车间管家-轻量级生产车间MES系统,适用于中小企业生产管理
     </title>
     <link href="css/styles.css" rel="stylesheet">
     <link rel="shortcut icon" type="image/x-icon" href="./favicon.ico" />
@@ -80,7 +80,7 @@
     </div>
     <!-- bannar图片 -->
     <div class="bannar">
-      <img src="./image/workshop/bj.png" alt="" />
+      <img src="./image/workshop/bj.jpg" alt="" />
       <div class="bannarCon">
         <div class="bannarConTil">车间管家</div>
         <div class="bannarConTilP">