付款记录 事务类型

master
lion 3 months ago
parent 7f29527d50
commit 8782f2034d

@ -13,7 +13,7 @@
<template v-slot:number>
<div class="xy-table-item">
<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 class="xy-table-item-content">
<el-input v-model="form.number" placeholder="请填写合同编号" style="width: 300px;" />
@ -457,10 +457,10 @@
},
rules: {
number: [{
required: true,
message: '必填'
}],
// number: [{
// required: true,
// message: ''
// }],
date: [{
required: true,
message: '必填'

@ -267,7 +267,6 @@
<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)"
>
<Button class="slot-btns-item" size="small" type="primary" @click="signProcess(scope.row)">
</Button>
</template>

@ -168,9 +168,9 @@
<printPaymentForm ref="printPaymentForm" />
<el-dialog :visible.sync="showOtherPaymentsDialog" title="同一支出记录下的其他付款记录" width="742px">
<el-table
:data="otherPayments"
height="400"
<el-table
:data="otherPayments"
height="400"
border
:show-summary="true"
:summary-method="getOtherPaymentsSummary"
@ -236,7 +236,9 @@ import printReimbursementSimple from './components/printReimbursementSimple'
import printMeetingSettlement from './components/printMeetingSettlement'
import printFundApproval from './components/printFundApproval'
import printPaymentForm from './components/printPaymentForm'
import {
getContractCategoryTemplateBaseConfig
} from '@/api/businessConfig/businessConfig'
export default {
components: {
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: '付款申请金额(元)',
prop: 'apply_money',
@ -444,7 +453,8 @@ export default {
3: '质保金'
},
postPaymentFormDialogVisible: false,
currentPostPaymentForm: null
currentPostPaymentForm: null,
categoryIdNameMap:'',
}
},
mounted() {
@ -459,8 +469,35 @@ export default {
const type = parseInt(this.$route.path.split('_')[1])
this.type = this.is_auth = type
this.getMoneyWay()
this.getCategoryOptions();
},
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) {
return parseTime(new Date(time), '{y}-{m}-{d}')
},
@ -613,10 +650,10 @@ export default {
if (this.selectDate) url += '&date=' + this.selectDate
if (this.keywords) url += '&keyword=' + this.keywords
if (typeof this.status !== 'undefined') {
url += '&status=' + this.status
url += '&status=' + this.status
}
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 = location.host + url

Loading…
Cancel
Save