|
@@ -157,9 +157,9 @@
|
|
|
</el-row>
|
|
|
<el-row
|
|
|
class="bg-white mt-5"
|
|
|
- style="height: 540px"
|
|
|
+ style="height: 510px"
|
|
|
>
|
|
|
- <el-col :span="20" class="ml-10 mt-5">
|
|
|
+ <el-col :span="20" class="ml-10">
|
|
|
<el-tabs
|
|
|
v-model="listSort"
|
|
|
class="demo-tabs"
|
|
@@ -168,7 +168,9 @@
|
|
|
<el-tab-pane
|
|
|
label="实施工时"
|
|
|
:name="1"
|
|
|
- >User</el-tab-pane>
|
|
|
+ >
|
|
|
+ <Hour/>
|
|
|
+ </el-tab-pane>
|
|
|
<el-tab-pane
|
|
|
label="费用报销"
|
|
|
:name="2"
|
|
@@ -176,7 +178,9 @@
|
|
|
<el-tab-pane
|
|
|
label="项目收款"
|
|
|
:name="3"
|
|
|
- >Role</el-tab-pane>
|
|
|
+ >
|
|
|
+ <payment/>
|
|
|
+ </el-tab-pane>
|
|
|
</el-tabs>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
@@ -254,6 +258,9 @@ import { getProjectList, getProjectMessage } from '@/api/project'
|
|
|
import { collectionOperate } from '@/pinia/collection/Collection'
|
|
|
import iconCollection from '@/assets/Collection.png'
|
|
|
import iconAmount from '@/assets/amount.png'
|
|
|
+import Hour from '../components/hour.vue'
|
|
|
+import Payment from '../components/payment.vue'
|
|
|
+import { hourOperate } from '@/pinia/hour/Hour'
|
|
|
defineOptions({
|
|
|
name: 'FinanceAnalysis'
|
|
|
})
|
|
@@ -273,6 +280,7 @@ const listData = reactive([])
|
|
|
const projectTotal = ref(0)
|
|
|
const projectMessage = reactive({})
|
|
|
const listSort = ref(1)
|
|
|
+const hour = hourOperate()
|
|
|
|
|
|
// 计算属性
|
|
|
const buttonType = computed(() => (state) => {
|
|
@@ -308,6 +316,7 @@ const projectList = (condition) => {
|
|
|
projectTotal.value = res.data.total
|
|
|
listData.push(...list)
|
|
|
payment.getPaymentList(list[0].code)
|
|
|
+ hour.getTimeList(list[0].code)
|
|
|
getProjectMessage(list[0].code).then(res => {
|
|
|
if (res.code === 0) {
|
|
|
Object.assign(projectMessage, res.data)
|