浏览代码

提交报工的代码

Lijy 1 年之前
父节点
当前提交
9815493bfe
共有 1 个文件被更改,包括 13 次插入2 次删除
  1. 13 2
      fhKeeper/formulahousekeeper/timesheet-workshop-h5/src/views/workView/workView.vue

+ 13 - 2
fhKeeper/formulahousekeeper/timesheet-workshop-h5/src/views/workView/workView.vue

@@ -32,6 +32,8 @@
           }}</div>
         </div>
         <div class="distribution_box" v-for="item, index in prod.procedureList" :key="index" @click="reportItem(item, prod)">
+          <!-- 状态 -->
+          <div class="statusLeft" :style="`background: ${statusColor[item.status]}`" v-if="item.status"></div>
           <div>
             <van-row>
               <van-col span="19">{{ prod.plan_type == 0 ? item.procedure_name : prod.task_change_notice_num }}</van-col>
@@ -53,7 +55,7 @@
                     {{ (item.finishNum && item.finishNum) ? item.finishNum : 0 }}
                   </div>
                   <div class="valueCls" v-if="!reportBoolean">
-                    {{ num }}
+                    {{ item.num ? item.num : 0 }}
                   </div>
                   <div class="labelCls">
                     件数
@@ -115,6 +117,7 @@ export default {
       personnelId: '', // 人员id
       crewMember: [], // 班组人员列表
       userInfo: JSON.parse(localStorage.userInfo),
+      statusColor: ['', '#409EFF', '#67C23A', '#F56C6C'], // 状态颜色
     };
   },
   computed: {},
@@ -247,6 +250,7 @@ export default {
             finishNum: item.finishNum,
             id: item.id,
             userProcedureTeamId: item.userProcedureTeamId,
+            status: item.status
           })
         }
         obj.procedureList = arr
@@ -311,6 +315,13 @@ export default {
 * {
   box-sizing: border-box;
 }
+.statusLeft {
+  position: absolute;
+  width: 10px;
+  height: 100%;
+  left: 0;
+  top: 0;
+}
 
 .vanCellIcon {
   width: 16px;
@@ -378,7 +389,7 @@ export default {
       width: 100%;
       background-color: #fff;
       border-radius: 4px;
-      padding: 10px;
+      padding: 10px 10px 10px 14px;
       margin-bottom: 15px;
       position: relative;
       overflow: hidden;