支付表格拉取筛选状态

master
lynn 1 year ago
parent 2224eca894
commit e8755d33c1

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

Loading…
Cancel
Save