|
|
@@ -112,19 +112,19 @@
|
|
|
label="实施工时"
|
|
|
:name="1"
|
|
|
>
|
|
|
- <Hour />
|
|
|
+ <Hour ref="hourOut"/>
|
|
|
</el-tab-pane>
|
|
|
<el-tab-pane
|
|
|
label="费用报销"
|
|
|
:name="2"
|
|
|
>
|
|
|
- <Reimburse />
|
|
|
+ <Reimburse ref="reimburseOut"/>
|
|
|
</el-tab-pane>
|
|
|
<el-tab-pane
|
|
|
label="项目收款"
|
|
|
:name="3"
|
|
|
>
|
|
|
- <payment ref="paymentRef" />
|
|
|
+ <payment ref="paymentOut" />
|
|
|
</el-tab-pane>
|
|
|
</el-tabs>
|
|
|
</el-col>
|
|
|
@@ -249,13 +249,14 @@ import { getProjectList, getProjectMessage, queryProjectExpense } from '@/api/pr
|
|
|
// 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 Reimburse from '../components/reimburse.vue'
|
|
|
// 引入pinia
|
|
|
import { collectionOperate } from '@/pinia/collection/Collection'
|
|
|
import { codeOperate } from '@/pinia/code/code'
|
|
|
import { reimburseOperate } from '@/pinia/reimbursement/Reimbursement'
|
|
|
import { hourOperate } from '@/pinia/hour/Hour'
|
|
|
+// eslint-disable-next-line no-unused-vars
|
|
|
+import Payment from '@/view/finance/components/payment.vue'
|
|
|
|
|
|
defineOptions({
|
|
|
name: 'FinanceAnalysis'
|
|
|
@@ -293,7 +294,6 @@ const buttonType = computed(() => (state) => {
|
|
|
}
|
|
|
return obj[state]
|
|
|
})
|
|
|
-
|
|
|
const projectAmount = computed(() => {
|
|
|
const price = ref(parseInt(projectMessage.price))
|
|
|
// const price = ref(4892703)
|
|
|
@@ -332,13 +332,11 @@ const projectList = (condition) => {
|
|
|
}
|
|
|
const nameSearch = () => {
|
|
|
condition.pageInfo.page = 1
|
|
|
- console.log(condition)
|
|
|
projectList(condition)
|
|
|
}
|
|
|
const changePage = (page) => {
|
|
|
const search = condition
|
|
|
search.pageInfo.page = page
|
|
|
- console.log(search)
|
|
|
projectList(search)
|
|
|
}
|
|
|
|
|
|
@@ -350,6 +348,10 @@ const incomeExpenses = (code) => {
|
|
|
listShow.value = false
|
|
|
}
|
|
|
|
|
|
+const paymentOut = ref()
|
|
|
+const reimburseOut = ref()
|
|
|
+const hourOut = ref()
|
|
|
+
|
|
|
const getMainMessage = (code) => {
|
|
|
queryProjectExpense(code).then(res => {
|
|
|
if (res.code === 0) {
|
|
|
@@ -360,7 +362,6 @@ const getMainMessage = (code) => {
|
|
|
sum += parseFloat(item.collectionPrice)
|
|
|
})
|
|
|
projectSum.value = sum
|
|
|
- console.log(projectSum.value)
|
|
|
payment.changePaymentList(summaryData.collection)
|
|
|
payment.changePaymentTotal(summaryData.collectionTotal)
|
|
|
submit.changeReimburseList(summaryData.reimbursement)
|
|
|
@@ -375,6 +376,9 @@ const getMainMessage = (code) => {
|
|
|
yearTime: '',
|
|
|
people: 0
|
|
|
})
|
|
|
+ paymentOut.value.outsideChangePage()
|
|
|
+ reimburseOut.value.outsideChangePage()
|
|
|
+ hourOut.value.outsideChangePage()
|
|
|
}
|
|
|
})
|
|
|
getProjectMessage(code).then(res => {
|