From a2299a6d4a6f99e9c11132138f5d3e9ec68f03ea Mon Sep 17 00:00:00 2001 From: jiangping <jp@doumee.com> Date: 星期五, 06 六月 2025 19:19:34 +0800 Subject: [PATCH] 开发更新 --- admin/src/views/finance/components/bullDetail.vue | 52 +++++++++++++++++++++++++++++++--------------------- 1 files changed, 31 insertions(+), 21 deletions(-) diff --git a/admin/src/views/finance/components/bullDetail.vue b/admin/src/views/finance/components/bullDetail.vue index be49e7b..70cfe50 100644 --- a/admin/src/views/finance/components/bullDetail.vue +++ b/admin/src/views/finance/components/bullDetail.vue @@ -1,30 +1,33 @@ <template> - <GlobalWindow :title="'璐﹀崟璇︽儏'" :visible.sync="visible" :confirm-working="isWorking" @close="close" + <GlobalWindow :title="'璐﹀崟璇︽儏'" :withFooter="false" :visible.sync="visible" :confirm-working="isWorking" @close="close" @confirm="confirm"> <div style="width: 100%; position: sticky; top: 0; left: 0; z-index: 999; background: #ffffff;"> <div class="home_title"> <div class="left"> - <span class="mr10">浠樻鏂癸細{{info.customerName}}</span> + <span class="mr10">{{info.billType === 0 ? '鏀舵鏂�' : '浠樻鏂�'}}锛歿{info.customerName}}</span> <el-tag type="success" v-if="info.status === 0">寮�鍚�</el-tag> <el-tag type="info" v-if="info.status === 1">鍏抽棴</el-tag> </div> - <el-button plain type="primary" v-if="![1].includes(info.payStatus)" @click="$refs.flowingWater.open('鍒涘缓鏀舵敮娴佹按', { - billType: returnBillType(), - billId: info.id, - costType: info.costType, - receivableFee: Math.abs(info.needReceivableFee), - costTypeName: returnText(info.costType), - contractCode: info.contractCode, - contractId: info.contractId, - startDate: info.startDate, - endDate: info.endDate, - multifileList: [], - date: `${info.startDate} ~ ${info.endDate}`, - companyId: info.companyId, - companyName: info.companyName, - actReceivableFee: Math.abs(info.needReceivableFee), - needReceivableFeeCopy: info.needReceivableFee - })">鏂板缓鏀舵敮娴佹按</el-button> + <div style="display: flex; align-items: center;"> + <el-button @click="$refs.call.open('鍙戦�佸偓缂撮�氱煡', [info.id])" v-if="info.isOverdue === 1 && info.billType === 0">鍙戦�佺即璐归�氱煡</el-button> + <el-button plain type="primary" v-if="![1].includes(info.payStatus)" @click="$refs.flowingWater.open('鍒涘缓鏀舵敮娴佹按', { + billType: returnBillType(), + billId: info.id, + costType: info.costType, + receivableFee: Math.abs(info.needReceivableFee), + costTypeName: returnText(info.costType), + contractCode: info.contractCode, + contractId: info.contractId, + startDate: info.startDate, + endDate: info.endDate, + multifileList: [], + date: `${info.startDate} ~ ${info.endDate}`, + companyId: info.companyId, + companyName: info.companyName, + actReceivableFee: Math.abs(info.needReceivableFee), + needReceivableFeeCopy: info.needReceivableFee + })">鏂板缓鏀舵敮娴佹按</el-button> + </div> </div> <div class="line"></div> <div class="main"> @@ -47,7 +50,10 @@ <div class="val" style="margin-top: 10px;">{{info.actReceivableFee}}</div> </div> <div class="item" style="flex: 1;"> - <div class="la">闇�{{info.needReceivableFee > 0 ? '鏀�' : '浠�'}}閲戦锛堝厓锛�</div> + <template v-if="info.billType === 1"> + <div class="la">闇�浠橀噾棰濓紙鍏冿級</div> + </template> + <div class="la" v-else>闇�{{info.needReceivableFee > 0 ? '鏀�' : '浠�'}}閲戦锛堝厓锛�</div> <div class="val" style="margin-top: 10px;">{{Math.abs(info.needReceivableFee)}}</div> </div> <div class="item" style="flex: 1;"> @@ -187,6 +193,8 @@ <FlowingWater ref="flowingWater" @success="getDetails" @refresh="Refresh" /> <!-- 鍚堝悓璇︽儏 --> <ContractDetail ref="ContractDetailRef" /> + <!-- 鍙戦�佺即璐归�氱煡 --> + <Call ref="call" /> </GlobalWindow> </template> @@ -194,13 +202,15 @@ import GlobalWindow from '@/components/common/GlobalWindow' import BaseOpera from '@/components/base/BaseOpera' import FlowingWater from './flowingWater' +import Call from './call' import ContractDetail from '../../contract/components/contractDetail' import { getYwContractBillById } from '@/api/contract' export default { components: { GlobalWindow, FlowingWater, - ContractDetail + ContractDetail, + Call }, extends: BaseOpera, data() { -- Gitblit v1.9.3