|
|
|
|
@ -185,6 +185,88 @@
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="预付款配置" min-width="220">
|
|
|
|
|
<template #default="scope">
|
|
|
|
|
<div style="font-size: 12px; line-height: 1.6;">
|
|
|
|
|
<div>
|
|
|
|
|
申请金额:
|
|
|
|
|
<span v-if="scope.row.show_apply_money == 1" style="color: #67C23A;">显示</span>
|
|
|
|
|
<span v-else style="color: #F56C6C;">隐藏</span>
|
|
|
|
|
/
|
|
|
|
|
<span v-if="scope.row.required_apply_money == 1" style="color: #67C23A;">必填</span>
|
|
|
|
|
<span v-else style="color: #F56C6C;">非必填</span>
|
|
|
|
|
<span v-if="scope.row.default_apply_money !== undefined && scope.row.default_apply_money !== ''" style="margin-left: 8px; color: #409EFF;">
|
|
|
|
|
默认值: {{ scope.row.default_apply_money }}
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div>
|
|
|
|
|
本期扣款:
|
|
|
|
|
<span v-if="scope.row.show_discount_money == 1" style="color: #67C23A;">显示</span>
|
|
|
|
|
<span v-else style="color: #F56C6C;">隐藏</span>
|
|
|
|
|
/
|
|
|
|
|
<span v-if="scope.row.required_discount_money == 1" style="color: #67C23A;">必填</span>
|
|
|
|
|
<span v-else style="color: #F56C6C;">非必填</span>
|
|
|
|
|
<span v-if="scope.row.default_discount_money !== undefined && scope.row.default_discount_money !== ''" style="margin-left: 8px; color: #409EFF;">
|
|
|
|
|
默认值: {{ scope.row.default_discount_money }}
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div>
|
|
|
|
|
审计金额:
|
|
|
|
|
<span v-if="scope.row.show_audit_money == 1" style="color: #67C23A;">显示</span>
|
|
|
|
|
<span v-else style="color: #F56C6C;">隐藏</span>
|
|
|
|
|
/
|
|
|
|
|
<span v-if="scope.row.required_audit_money == 1" style="color: #67C23A;">必填</span>
|
|
|
|
|
<span v-else style="color: #F56C6C;">非必填</span>
|
|
|
|
|
<span v-if="scope.row.default_audit_money !== undefined && scope.row.default_audit_money !== ''" style="margin-left: 8px; color: #409EFF;">
|
|
|
|
|
默认值: {{ scope.row.default_audit_money }}
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div>
|
|
|
|
|
实付日期:
|
|
|
|
|
<span v-if="scope.row.show_act_date == 1" style="color: #67C23A;">显示</span>
|
|
|
|
|
<span v-else style="color: #F56C6C;">隐藏</span>
|
|
|
|
|
/
|
|
|
|
|
<span v-if="scope.row.required_act_date == 1" style="color: #67C23A;">必填</span>
|
|
|
|
|
<span v-else style="color: #F56C6C;">非必填</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div>
|
|
|
|
|
款项类型:
|
|
|
|
|
<span v-if="scope.row.show_type == 1" style="color: #67C23A;">显示</span>
|
|
|
|
|
<span v-else style="color: #F56C6C;">隐藏</span>
|
|
|
|
|
/
|
|
|
|
|
<span v-if="scope.row.required_type == 1" style="color: #67C23A;">必填</span>
|
|
|
|
|
<span v-else style="color: #F56C6C;">非必填</span>
|
|
|
|
|
<span v-if="scope.row.default_type" style="margin-left: 8px; color: #409EFF;">默认: {{ scope.row.default_type }}</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div>
|
|
|
|
|
是否最后一笔:
|
|
|
|
|
<span v-if="scope.row.show_is_end == 1" style="color: #67C23A;">显示</span>
|
|
|
|
|
<span v-else style="color: #F56C6C;">隐藏</span>
|
|
|
|
|
/
|
|
|
|
|
<span v-if="scope.row.required_is_end == 1" style="color: #67C23A;">必填</span>
|
|
|
|
|
<span v-else style="color: #F56C6C;">非必填</span>
|
|
|
|
|
<span v-if="scope.row.default_is_end !== undefined && scope.row.default_is_end !== ''" style="margin-left: 8px; color: #409EFF;">
|
|
|
|
|
默认值:
|
|
|
|
|
{{
|
|
|
|
|
scope.row.default_is_end == 1 || scope.row.default_is_end === '1'
|
|
|
|
|
? '是'
|
|
|
|
|
: (scope.row.default_is_end == 0 || scope.row.default_is_end === '0'
|
|
|
|
|
? '否'
|
|
|
|
|
: scope.row.default_is_end)
|
|
|
|
|
}}
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div>
|
|
|
|
|
备注:
|
|
|
|
|
<span v-if="scope.row.show_remark == 1" style="color: #67C23A;">显示</span>
|
|
|
|
|
<span v-else style="color: #F56C6C;">隐藏</span>
|
|
|
|
|
/
|
|
|
|
|
<span v-if="scope.row.required_remark == 1" style="color: #67C23A;">必填</span>
|
|
|
|
|
<span v-else style="color: #F56C6C;">非必填</span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="操作" width="150">
|
|
|
|
|
<template #default="scope">
|
|
|
|
|
<el-button size="small" @click="handleEdit(scope.row)">编辑</el-button>
|
|
|
|
|
@ -410,16 +492,19 @@
|
|
|
|
|
</div>
|
|
|
|
|
<div class="checkbox-group" style="flex-wrap: wrap;">
|
|
|
|
|
<div style="min-width: 220px; margin-bottom: 8px;">
|
|
|
|
|
<el-checkbox v-model="form.payAmountShow">申请付款金额-显示</el-checkbox>
|
|
|
|
|
<el-checkbox v-model="form.payAmountRequired"><span style="color: red">※</span>必填</el-checkbox>
|
|
|
|
|
<el-checkbox v-model="form.payAmountShow" :true-label="1" :false-label="0">申请付款金额-显示</el-checkbox>
|
|
|
|
|
<el-checkbox v-model="form.payAmountRequired" :true-label="1" :false-label="0"><span style="color: red">※</span>必填</el-checkbox>
|
|
|
|
|
<el-input v-model="form.payAmountDefault" type="number" placeholder="默认值" style="width: 120px; margin-left: 8px;"></el-input>
|
|
|
|
|
</div>
|
|
|
|
|
<div style="min-width: 220px; margin-bottom: 8px;">
|
|
|
|
|
<el-checkbox v-model="form.deductAmountShow">本期扣款金额-显示</el-checkbox>
|
|
|
|
|
<el-checkbox v-model="form.deductAmountRequired"><span style="color: red">※</span>必填</el-checkbox>
|
|
|
|
|
<el-checkbox v-model="form.deductAmountShow" :true-label="1" :false-label="0">本期扣款金额-显示</el-checkbox>
|
|
|
|
|
<el-checkbox v-model="form.deductAmountRequired" :true-label="1" :false-label="0"><span style="color: red">※</span>必填</el-checkbox>
|
|
|
|
|
<el-input v-model="form.deductAmountDefault" type="number" placeholder="默认值" style="width: 120px; margin-left: 8px;"></el-input>
|
|
|
|
|
</div>
|
|
|
|
|
<div style="min-width: 220px; margin-bottom: 8px;">
|
|
|
|
|
<el-checkbox v-model="form.auditAmountShow">审计金额-显示</el-checkbox>
|
|
|
|
|
<el-checkbox v-model="form.auditAmountRequired">必填</el-checkbox>
|
|
|
|
|
<el-checkbox v-model="form.auditAmountShow" :true-label="1" :false-label="0">审计金额-显示</el-checkbox>
|
|
|
|
|
<el-checkbox v-model="form.auditAmountRequired" :true-label="1" :false-label="0">必填</el-checkbox>
|
|
|
|
|
<el-input v-model="form.auditAmountDefault" type="number" placeholder="默认值" style="width: 120px; margin-left: 8px;"></el-input>
|
|
|
|
|
</div>
|
|
|
|
|
<div style="min-width: 220px; margin-bottom: 8px;">
|
|
|
|
|
<el-checkbox v-model="form.realPayDateShow">实付日期-显示</el-checkbox>
|
|
|
|
|
@ -433,8 +518,12 @@
|
|
|
|
|
</el-select>
|
|
|
|
|
</div>
|
|
|
|
|
<div style="min-width: 220px; margin-bottom: 8px;">
|
|
|
|
|
<el-checkbox v-model="form.isLastShow">是否最后一笔-显示</el-checkbox>
|
|
|
|
|
<el-checkbox v-model="form.isLastRequired"><span style="color: red">※</span>必填</el-checkbox>
|
|
|
|
|
<el-checkbox v-model="form.isLastShow" :true-label="1" :false-label="0">是否最后一笔-显示</el-checkbox>
|
|
|
|
|
<el-checkbox v-model="form.isLastRequired" :true-label="1" :false-label="0"><span style="color: red">※</span>必填</el-checkbox>
|
|
|
|
|
<el-select v-model="form.isLastDefault" placeholder="默认值" style="width: 120px; margin-left: 8px;">
|
|
|
|
|
<el-option label="是" :value="1"></el-option>
|
|
|
|
|
<el-option label="否" :value="0"></el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</div>
|
|
|
|
|
<div style="min-width: 220px; margin-bottom: 8px;">
|
|
|
|
|
<el-checkbox v-model="form.remarkShow">备注-显示</el-checkbox>
|
|
|
|
|
@ -524,6 +613,10 @@ export default {
|
|
|
|
|
remarkShow: false,
|
|
|
|
|
remarkRequired: false,
|
|
|
|
|
itemTypeDefault: '',
|
|
|
|
|
payAmountDefault: '',
|
|
|
|
|
deductAmountDefault: '',
|
|
|
|
|
auditAmountDefault: '',
|
|
|
|
|
isLastDefault: '',
|
|
|
|
|
},
|
|
|
|
|
rules: {
|
|
|
|
|
category: [
|
|
|
|
|
@ -591,48 +684,45 @@ export default {
|
|
|
|
|
|
|
|
|
|
// 处理返回数据
|
|
|
|
|
if (res.data && Array.isArray(res.data)) {
|
|
|
|
|
// 格式化表格数据
|
|
|
|
|
this.tableData = res.data.map((item, index) => {
|
|
|
|
|
return {
|
|
|
|
|
index: index + 1,
|
|
|
|
|
id: item.id,
|
|
|
|
|
// 保存原始ID,用于编辑
|
|
|
|
|
category_id: item.category,
|
|
|
|
|
work_type_id: item.work_type,
|
|
|
|
|
contract_type_id: item.contract_type,
|
|
|
|
|
purchase_form_id: item.purchase_form,
|
|
|
|
|
// 使用详细信息中的name字段,如果为空显示'-'
|
|
|
|
|
category: item.category_detail?.value || '-',
|
|
|
|
|
affairType: item.work_type_detail?.value || '-',
|
|
|
|
|
contractType: item.contract_type_detail?.value || '-',
|
|
|
|
|
purchaseForm: item.purchase_form_detail?.value || '-',
|
|
|
|
|
purchaseWay: item.purchase_way || false,
|
|
|
|
|
purchaseMethod: item.purchase_method,
|
|
|
|
|
projectName: item.project_name || false,
|
|
|
|
|
projectType: item.project_type || false,
|
|
|
|
|
budgetPrice: item.budget_price || false,
|
|
|
|
|
fundChannel: item.fund_channel || false,
|
|
|
|
|
budgetPlan: item.budget_plan || false,
|
|
|
|
|
request: item.flow_req || false,
|
|
|
|
|
purchaseApproval: item.flow_purchase || false,
|
|
|
|
|
tenderReview: item.flow_invite || false,
|
|
|
|
|
contractSign: item.flow_join || false,
|
|
|
|
|
prePaymentForm: item.before_contract_template?.name || '-',
|
|
|
|
|
postPaymentForm: item.contract_template?.name || '-',
|
|
|
|
|
// 保存支付表格ID
|
|
|
|
|
before_contract_template_id: item.before_contract_template_id,
|
|
|
|
|
contract_template_id: item.contract_template_id,
|
|
|
|
|
// 添加合同配置字段
|
|
|
|
|
is_simple_default: item.is_simple_default || 0,
|
|
|
|
|
has_charge_default: item.has_charge_default || 0,
|
|
|
|
|
is_plan_default: item.is_plan_default || 0,
|
|
|
|
|
is_substitute_default: item.is_substitute_default || 0,
|
|
|
|
|
edit_is_simple: item.edit_is_simple || 0,
|
|
|
|
|
edit_has_charge: item.edit_has_charge || 0,
|
|
|
|
|
edit_is_plan: item.edit_is_plan || 0,
|
|
|
|
|
edit_is_substitute: item.edit_is_substitute || 0
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
this.tableData = res.data.map((item, index) => ({
|
|
|
|
|
// 原有自定义字段
|
|
|
|
|
index: index + 1,
|
|
|
|
|
id: item.id,
|
|
|
|
|
category_id: item.category,
|
|
|
|
|
work_type_id: item.work_type,
|
|
|
|
|
contract_type_id: item.contract_type,
|
|
|
|
|
purchase_form_id: item.purchase_form,
|
|
|
|
|
affairType: item.work_type_detail?.value || '-',
|
|
|
|
|
contractType: item.contract_type_detail?.value || '-',
|
|
|
|
|
purchaseForm: item.purchase_form_detail?.value || '-',
|
|
|
|
|
purchaseWay: item.purchase_way || false,
|
|
|
|
|
purchaseMethod: item.purchase_method,
|
|
|
|
|
projectName: item.project_name || false,
|
|
|
|
|
projectType: item.project_type || false,
|
|
|
|
|
budgetPrice: item.budget_price || false,
|
|
|
|
|
fundChannel: item.fund_channel || false,
|
|
|
|
|
budgetPlan: item.budget_plan || false,
|
|
|
|
|
request: item.flow_req || false,
|
|
|
|
|
purchaseApproval: item.flow_purchase || false,
|
|
|
|
|
tenderReview: item.flow_invite || false,
|
|
|
|
|
contractSign: item.flow_join || false,
|
|
|
|
|
prePaymentForm: item.before_contract_template?.name || '-',
|
|
|
|
|
postPaymentForm: item.contract_template?.name || '-',
|
|
|
|
|
before_contract_template_id: item.before_contract_template_id,
|
|
|
|
|
contract_template_id: item.contract_template_id,
|
|
|
|
|
is_simple_default: item.is_simple_default || 0,
|
|
|
|
|
has_charge_default: item.has_charge_default || 0,
|
|
|
|
|
is_plan_default: item.is_plan_default || 0,
|
|
|
|
|
is_substitute_default: item.is_substitute_default || 0,
|
|
|
|
|
edit_is_simple: item.edit_is_simple || 0,
|
|
|
|
|
edit_has_charge: item.edit_has_charge || 0,
|
|
|
|
|
edit_is_plan: item.edit_is_plan || 0,
|
|
|
|
|
edit_is_substitute: item.edit_is_substitute || 0,
|
|
|
|
|
// 合并接口所有字段
|
|
|
|
|
...item,
|
|
|
|
|
// 最后强制category为自定义值,确保第一列合同分类不被覆盖
|
|
|
|
|
category: item.category_detail?.value || '-',
|
|
|
|
|
}))
|
|
|
|
|
} else {
|
|
|
|
|
this.tableData = []
|
|
|
|
|
}
|
|
|
|
|
@ -874,7 +964,6 @@ export default {
|
|
|
|
|
has_charge_editable: true,
|
|
|
|
|
isBudget_editable: true,
|
|
|
|
|
is_substitute_editable: true,
|
|
|
|
|
advancePayment: false,
|
|
|
|
|
payAmountShow: false,
|
|
|
|
|
payAmountRequired: false,
|
|
|
|
|
deductAmountShow: false,
|
|
|
|
|
@ -890,6 +979,10 @@ export default {
|
|
|
|
|
remarkShow: false,
|
|
|
|
|
remarkRequired: false,
|
|
|
|
|
itemTypeDefault: '',
|
|
|
|
|
payAmountDefault: '',
|
|
|
|
|
deductAmountDefault: '',
|
|
|
|
|
auditAmountDefault: '',
|
|
|
|
|
isLastDefault: '',
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 使用搜索区域的解析逻辑
|
|
|
|
|
@ -940,22 +1033,25 @@ export default {
|
|
|
|
|
has_charge: row.has_charge_default,
|
|
|
|
|
isBudget: row.is_plan_default,
|
|
|
|
|
is_substitute: row.is_substitute_default,
|
|
|
|
|
advancePayment: row.advancePayment === true || row.advancePayment === 1,
|
|
|
|
|
payAmountShow: row.payAmountShow === true || row.payAmountShow === 1,
|
|
|
|
|
payAmountRequired: row.payAmountRequired === true || row.payAmountRequired === 1,
|
|
|
|
|
deductAmountShow: row.deductAmountShow === true || row.deductAmountShow === 1,
|
|
|
|
|
deductAmountRequired: row.deductAmountRequired === true || row.deductAmountRequired === 1,
|
|
|
|
|
auditAmountShow: row.auditAmountShow === true || row.auditAmountShow === 1,
|
|
|
|
|
auditAmountRequired: row.auditAmountRequired === true || row.auditAmountRequired === 1,
|
|
|
|
|
realPayDateShow: row.realPayDateShow === true || row.realPayDateShow === 1,
|
|
|
|
|
realPayDateRequired: row.realPayDateRequired === true || row.realPayDateRequired === 1,
|
|
|
|
|
itemTypeShow: row.itemTypeShow === true || row.itemTypeShow === 1,
|
|
|
|
|
itemTypeRequired: row.itemTypeRequired === true || row.itemTypeRequired === 1,
|
|
|
|
|
isLastShow: row.isLastShow === true || row.isLastShow === 1,
|
|
|
|
|
isLastRequired: row.isLastRequired === true || row.isLastRequired === 1,
|
|
|
|
|
remarkShow: row.remarkShow === true || row.remarkShow === 1,
|
|
|
|
|
remarkRequired: row.remarkRequired === true || row.remarkRequired === 1,
|
|
|
|
|
itemTypeDefault: row.itemTypeDefault || '',
|
|
|
|
|
payAmountShow: row.show_apply_money === 1,
|
|
|
|
|
payAmountRequired: row.required_apply_money === 1,
|
|
|
|
|
deductAmountShow: row.show_discount_money === 1,
|
|
|
|
|
deductAmountRequired: row.required_discount_money === 1,
|
|
|
|
|
auditAmountShow: row.show_audit_money === 1,
|
|
|
|
|
auditAmountRequired: row.required_audit_money === 1,
|
|
|
|
|
realPayDateShow: row.show_act_date === 1,
|
|
|
|
|
realPayDateRequired: row.required_act_date === 1,
|
|
|
|
|
itemTypeShow: row.show_type === 1,
|
|
|
|
|
itemTypeRequired: row.required_type === 1,
|
|
|
|
|
isLastShow: row.show_is_end === 1,
|
|
|
|
|
isLastRequired: row.required_is_end === 1,
|
|
|
|
|
remarkShow: row.show_remark === 1,
|
|
|
|
|
remarkRequired: row.required_remark === 1,
|
|
|
|
|
payAmountDefault: row.default_apply_money ?? '',
|
|
|
|
|
deductAmountDefault: row.default_discount_money ?? '',
|
|
|
|
|
auditAmountDefault: row.default_audit_money ?? '',
|
|
|
|
|
isLastDefault: row.default_is_end !== undefined && row.default_is_end !== '' ? Number(row.default_is_end) : '',
|
|
|
|
|
itemTypeDefault: row.default_type !== undefined && row.default_type !== null ? String(row.default_type) : '',
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 保存原始支付表格值
|
|
|
|
|
@ -1085,7 +1181,6 @@ export default {
|
|
|
|
|
flow_invite: this.form.tenderReview,
|
|
|
|
|
flow_join: this.form.contractSign,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 新增参数
|
|
|
|
|
edit_is_simple: this.form.is_simple_editable ? 1 : 0,
|
|
|
|
|
edit_has_charge: this.form.has_charge_editable ? 1 : 0,
|
|
|
|
|
@ -1096,21 +1191,26 @@ export default {
|
|
|
|
|
has_charge_default: this.form.has_charge,
|
|
|
|
|
is_plan_default: this.form.isBudget,
|
|
|
|
|
is_substitute_default: this.form.is_substitute,
|
|
|
|
|
advancePayment: this.form.advancePayment ? 1 : 0,
|
|
|
|
|
payAmountShow: this.form.payAmountShow ? 1 : 0,
|
|
|
|
|
payAmountRequired: this.form.payAmountRequired ? 1 : 0,
|
|
|
|
|
deductAmountShow: this.form.deductAmountShow ? 1 : 0,
|
|
|
|
|
deductAmountRequired: this.form.deductAmountRequired ? 1 : 0,
|
|
|
|
|
auditAmountShow: this.form.auditAmountShow ? 1 : 0,
|
|
|
|
|
auditAmountRequired: this.form.auditAmountRequired ? 1 : 0,
|
|
|
|
|
realPayDateShow: this.form.realPayDateShow ? 1 : 0,
|
|
|
|
|
realPayDateRequired: this.form.realPayDateRequired ? 1 : 0,
|
|
|
|
|
itemTypeShow: this.form.itemTypeShow ? 1 : 0,
|
|
|
|
|
itemTypeRequired: this.form.itemTypeRequired ? 1 : 0,
|
|
|
|
|
isLastShow: this.form.isLastShow ? 1 : 0,
|
|
|
|
|
isLastRequired: this.form.isLastRequired ? 1 : 0,
|
|
|
|
|
remarkShow: this.form.remarkShow ? 1 : 0,
|
|
|
|
|
remarkRequired: this.form.remarkRequired ? 1 : 0
|
|
|
|
|
|
|
|
|
|
show_apply_money: this.form.payAmountShow,
|
|
|
|
|
required_apply_money: this.form.payAmountRequired,
|
|
|
|
|
show_discount_money: this.form.deductAmountShow,
|
|
|
|
|
required_discount_money: this.form.deductAmountRequired,
|
|
|
|
|
show_audit_money: this.form.auditAmountShow,
|
|
|
|
|
required_audit_money: this.form.auditAmountRequired,
|
|
|
|
|
show_act_date: this.form.realPayDateShow,
|
|
|
|
|
required_act_date: this.form.realPayDateRequired,
|
|
|
|
|
show_type: this.form.itemTypeShow,
|
|
|
|
|
required_type: this.form.itemTypeRequired,
|
|
|
|
|
default_type: this.form.itemTypeDefault,
|
|
|
|
|
show_is_end: this.form.isLastShow,
|
|
|
|
|
required_is_end: this.form.isLastRequired,
|
|
|
|
|
show_remark: this.form.remarkShow,
|
|
|
|
|
required_remark: this.form.remarkRequired,
|
|
|
|
|
default_apply_money: this.form.payAmountDefault,
|
|
|
|
|
default_discount_money: this.form.deductAmountDefault,
|
|
|
|
|
default_audit_money: this.form.auditAmountDefault,
|
|
|
|
|
default_is_end: this.form.isLastDefault,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 如果是编辑模式
|
|
|
|
|
|