付款记录 事务类型

master
lion 5 months ago
parent 7f29527d50
commit 8782f2034d

@ -13,7 +13,7 @@
<template v-slot:number> <template v-slot:number>
<div class="xy-table-item"> <div class="xy-table-item">
<div class="xy-table-item-label"> <div class="xy-table-item-label">
<span style="color: red;font-weight: 600;padding-right: 4px;">*</span>合同编号 <span style="color: red;font-weight: 600;padding-right: 4px;"></span>合同编号
</div> </div>
<div class="xy-table-item-content"> <div class="xy-table-item-content">
<el-input v-model="form.number" placeholder="请填写合同编号" style="width: 300px;" /> <el-input v-model="form.number" placeholder="请填写合同编号" style="width: 300px;" />
@ -457,10 +457,10 @@
}, },
rules: { rules: {
number: [{ // number: [{
required: true, // required: true,
message: '必填' // message: ''
}], // }],
date: [{ date: [{
required: true, required: true,
message: '必填' message: '必填'

@ -267,7 +267,6 @@
<template <template
v-if="(scope.row.has_charge && scope.row.req_status === 3 && scope.row.join_status === 1) || (scope.row.join_status === 1 && ((scope.row.invite_status === 3)||((scope.row.purchase_way ? scope.row.purchase_way.remark === 'false' : false) && scope.row.purchase_status === 3)) || ( scope.row.is_substitute && scope.row.join_status === 1) ) && (!scope.row.contract_category || scope.row.join_status === 1)" v-if="(scope.row.has_charge && scope.row.req_status === 3 && scope.row.join_status === 1) || (scope.row.join_status === 1 && ((scope.row.invite_status === 3)||((scope.row.purchase_way ? scope.row.purchase_way.remark === 'false' : false) && scope.row.purchase_status === 3)) || ( scope.row.is_substitute && scope.row.join_status === 1) ) && (!scope.row.contract_category || scope.row.join_status === 1)"
> >
<Button class="slot-btns-item" size="small" type="primary" @click="signProcess(scope.row)"> <Button class="slot-btns-item" size="small" type="primary" @click="signProcess(scope.row)">
</Button> </Button>
</template> </template>

@ -168,9 +168,9 @@
<printPaymentForm ref="printPaymentForm" /> <printPaymentForm ref="printPaymentForm" />
<el-dialog :visible.sync="showOtherPaymentsDialog" title="同一支出记录下的其他付款记录" width="742px"> <el-dialog :visible.sync="showOtherPaymentsDialog" title="同一支出记录下的其他付款记录" width="742px">
<el-table <el-table
:data="otherPayments" :data="otherPayments"
height="400" height="400"
border border
:show-summary="true" :show-summary="true"
:summary-method="getOtherPaymentsSummary" :summary-method="getOtherPaymentsSummary"
@ -236,7 +236,9 @@ import printReimbursementSimple from './components/printReimbursementSimple'
import printMeetingSettlement from './components/printMeetingSettlement' import printMeetingSettlement from './components/printMeetingSettlement'
import printFundApproval from './components/printFundApproval' import printFundApproval from './components/printFundApproval'
import printPaymentForm from './components/printPaymentForm' import printPaymentForm from './components/printPaymentForm'
import {
getContractCategoryTemplateBaseConfig
} from '@/api/businessConfig/businessConfig'
export default { export default {
components: { components: {
printRegistration, printRegistration,
@ -333,6 +335,13 @@ export default {
) )
} }
}, },
{
label: '事务类型',
width: 120,
prop: 'contract.work_type',
align: 'center',
formatter: (row) => this.categoryIdNameMap?.[row.contract?.work_type] || ''
},
{ {
label: '付款申请金额(元)', label: '付款申请金额(元)',
prop: 'apply_money', prop: 'apply_money',
@ -444,7 +453,8 @@ export default {
3: '质保金' 3: '质保金'
}, },
postPaymentFormDialogVisible: false, postPaymentFormDialogVisible: false,
currentPostPaymentForm: null currentPostPaymentForm: null,
categoryIdNameMap:'',
} }
}, },
mounted() { mounted() {
@ -459,8 +469,35 @@ export default {
const type = parseInt(this.$route.path.split('_')[1]) const type = parseInt(this.$route.path.split('_')[1])
this.type = this.is_auth = type this.type = this.is_auth = type
this.getMoneyWay() this.getMoneyWay()
this.getCategoryOptions();
}, },
methods: { methods: {
//
async getCategoryOptions() {
try {
//
const res = await getContractCategoryTemplateBaseConfig()
if (res.errcode !== undefined) {
this.$message.error(res.errmsg || '获取分类配置失败')
return
}
this.categoryIdNameMap = this.parseIdNameMap(res.map)
console.log("this.categoryIdNameMap",this.categoryIdNameMap)
} catch (error) {
console.error('获取分类配置失败:', error)
this.$message.error('获取分类配置失败')
}
},
// id-name
parseIdNameMap(list, map = {}) {
list.forEach(item => {
map[item.id] = item.name || item.value;
if (item.children && item.children.length) {
this.parseIdNameMap(item.children, map);
}
});
return map;
},
parseTime(time) { parseTime(time) {
return parseTime(new Date(time), '{y}-{m}-{d}') return parseTime(new Date(time), '{y}-{m}-{d}')
}, },
@ -613,10 +650,10 @@ export default {
if (this.selectDate) url += '&date=' + this.selectDate if (this.selectDate) url += '&date=' + this.selectDate
if (this.keywords) url += '&keyword=' + this.keywords if (this.keywords) url += '&keyword=' + this.keywords
if (typeof this.status !== 'undefined') { if (typeof this.status !== 'undefined') {
url += '&status=' + this.status url += '&status=' + this.status
} }
if (this.select.plan_id) { if (this.select.plan_id) {
url += '&act_plan_link_id=' + this.select.plan_id url += '&act_plan_link_id=' + this.select.plan_id
} }
url += '&is_export=' + 1 url += '&is_export=' + 1
url = location.host + url url = location.host + url

Loading…
Cancel
Save