|
|
|
|
@ -850,7 +850,8 @@ export default {
|
|
|
|
|
// 获取支付表格选项
|
|
|
|
|
async getPaymentFormOptions() {
|
|
|
|
|
try {
|
|
|
|
|
const res = await getContractFormList({})
|
|
|
|
|
// 只请求已启用的支付表格(status=1)
|
|
|
|
|
const res = await getContractFormList({ status: 1 })
|
|
|
|
|
if (res.errcode !== undefined) {
|
|
|
|
|
this.$message.error(res.errmsg || '获取支付表格选项失败')
|
|
|
|
|
return
|
|
|
|
|
@ -862,7 +863,9 @@ export default {
|
|
|
|
|
id: item.id,
|
|
|
|
|
label: item.name || item.title || `附件${item.id}`
|
|
|
|
|
}))
|
|
|
|
|
this.originalPaymentForm = res.data[0].id // 保存原始支付表格ID
|
|
|
|
|
if (res.data.length > 0) {
|
|
|
|
|
this.originalPaymentForm = res.data[0].id // 保存原始支付表格ID
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
this.paymentFormOptions = []
|
|
|
|
|
}
|
|
|
|
|
|