|
|
|
|
@ -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
|
|
|
|
|
|