|
@@ -316,8 +316,8 @@
|
|
|
<td class="th">是否需要签订合同:</td>
|
|
|
<td>
|
|
|
<el-radio-group v-model="childContractDetail.isSign" :disabled="!editor">
|
|
|
- <el-radio label="1">是</el-radio>
|
|
|
- <el-radio label="0">否</el-radio>
|
|
|
+ <el-radio :label="1">是</el-radio>
|
|
|
+ <el-radio :label="0">否</el-radio>
|
|
|
</el-radio-group>
|
|
|
</td>
|
|
|
<td class="th">分包费用承担:</td>
|
|
@@ -402,9 +402,9 @@
|
|
|
<table>
|
|
|
<tr>
|
|
|
<td class="th">已付款金额(元):</td>
|
|
|
- <td></td>
|
|
|
+ <td>{{ calcInfo?.pay }}</td>
|
|
|
<td class="th">合同余额(元):</td>
|
|
|
- <td></td>
|
|
|
+ <td>{{ calcInfo?.balance }}</td>
|
|
|
</tr>
|
|
|
</table>
|
|
|
</div>
|
|
@@ -425,7 +425,7 @@ import {
|
|
|
startContractInvoice,
|
|
|
queryCustomerTree,
|
|
|
queryCompanyTree,
|
|
|
- getContractPaymentList
|
|
|
+ getContractPaymentCalc
|
|
|
} from '@/service/contract'
|
|
|
import { useQuery, useMutation } from '@tanstack/vue-query'
|
|
|
import { Contract } from '@/interface/contract'
|
|
@@ -520,10 +520,13 @@ const { refetch } = useQuery(
|
|
|
}
|
|
|
)
|
|
|
//查询分包付款数据
|
|
|
-const { mutate: queryContractPaymentMutate } = useMutation(getContractPaymentList, {
|
|
|
+const calcInfo = ref<{
|
|
|
+ balance: number
|
|
|
+ pay: number
|
|
|
+}>()
|
|
|
+const { mutate: queryContractPaymentCalcMutate } = useMutation(getContractPaymentCalc, {
|
|
|
onSuccess: (data) => {
|
|
|
- console.log('data--------------------------')
|
|
|
- console.log(data)
|
|
|
+ calcInfo.value = data
|
|
|
}
|
|
|
})
|
|
|
|
|
@@ -554,7 +557,7 @@ const switchContractInfo = (item: any, key: number, mKey?: number): void => {
|
|
|
}
|
|
|
} else {
|
|
|
childContractDetail.value = item
|
|
|
- queryContractPaymentMutate(item.id)
|
|
|
+ queryContractPaymentCalcMutate(item.id)
|
|
|
}
|
|
|
}
|
|
|
|