1. 每月1号0点自动生成上月"三表一册"
@@ -42,6 +48,7 @@ import { formLabel, columnsList } from './config'
import { getThreeAndOneListAPI } from '@/api/synthesize-query/three-and-one'
export default {
name: 'ThreeAndOne',
+ dicts: ['project_status'],
components: {
TableModel,
},
@@ -52,6 +59,9 @@ export default {
getThreeAndOneListAPI,
}
},
+ created() {
+ formLabel[1].f_selList = this.dict.type.project_status
+ },
methods: {
onHandleViewDetail(data) {
@@ -64,6 +74,16 @@ export default {
},
})
},
+
+ initProStatus(status) {
+ if (typeof status === 'string') {
+ return this.dict.type.project_status.find(
+ (item) => item.value == status,
+ ).label
+ }
+
+ return status || ''
+ },
},
}
diff --git a/src/views/synthesize-query/three-and-one/month-detail/components/att-details.vue b/src/views/synthesize-query/three-and-one/month-detail/components/att-details.vue
index feab657..0487b25 100644
--- a/src/views/synthesize-query/three-and-one/month-detail/components/att-details.vue
+++ b/src/views/synthesize-query/three-and-one/month-detail/components/att-details.vue
@@ -1,22 +1,23 @@
-
+
-
+
-
+
@@ -53,15 +54,15 @@
style="flex: 1; text-align: right; color: #ef4444"
>
出勤:1
- 缺勤:1
- 无对应日期:1
+ 缺勤:0
+ 无对应日期:空白
@@ -79,15 +80,20 @@
+ v-for="j in attendanceDays"
+ >
+
+ {{ row.attendanceDayList[j - 1].isAtt }}
+
+
@@ -110,52 +116,80 @@
diff --git a/src/views/synthesize-query/three-and-one/month-detail/components/nameList.vue b/src/views/synthesize-query/three-and-one/month-detail/components/nameList.vue
index 7df0eaa..703d6f1 100644
--- a/src/views/synthesize-query/three-and-one/month-detail/components/nameList.vue
+++ b/src/views/synthesize-query/three-and-one/month-detail/components/nameList.vue
@@ -5,32 +5,40 @@
-
+
-
+
-
+
-
-
+
+ v-model="nameListQueryParams.onDuty"
+ >
+
+
+
+
+ >
+
+
+ {{ scope.row[item.prop] == 0 ? '女' : '男' }}
+
+
+
+ {{ scope.row[item.prop] == 1 ? '在岗' : '不在岗' }}
+
+
+ {{ scope.row[item.prop] || '/' }}
+
+
+
+
-
+
-
+
-
+
@@ -58,19 +59,24 @@
+ >
+
+
+ {{ scope.row[item.prop] || '/' }}
+
+
+
-
+