-
电子签名
+
+
+ 电子签名
暂无签名数据
@@ -162,7 +175,8 @@
取消
- 确认分配并提交
+ 确认分配并提交
@@ -231,7 +245,7 @@ const fetchData = async () => {
page: pagination.page,
page_size: pagination.pageSize
})
-
+
if (searchParams.wecom_id) query.append('wecom_id', searchParams.wecom_id)
if (searchParams.status) query.append('status', searchParams.status)
@@ -258,7 +272,7 @@ const fetchData = async () => {
signature: item.signature_image_url,
files: item.attachment_file_url ? [item.attachment_file_url] : [],
// 交互字段
- guideName: '',
+ guideName: '',
guidePhone: '',
isSubmitting: false
}))
@@ -282,11 +296,14 @@ const submitAssignment = async (row) => {
row.isSubmitting = true
try {
+ // --- 修改开始 ---
+ // 构建与 curl 命令匹配的 payload
const payload = {
wecom_id: row.id,
- payment_image_url: row.paymentImages[0] || "",
- signature_image_url: row.signature || "",
- attachment_file_url: row.files[0] || "",
+ // payment_object_names 需要是一个数组
+ payment_object_names: row.paymentImages || [],
+ signature_object_name: row.signature || "",
+ attachment_object_name: row.files?.[0] || "",
analyst_supervisor: row.analystSupervisor,
analyst_department: row.analystDepartment,
analyst_name: row.analystName,
@@ -299,6 +316,7 @@ const submitAssignment = async (row) => {
assignee_name: row.guideName,
assignee_phone: row.guidePhone
}
+ // --- 修改结束 ---
const response = await fetch('http://192.168.15.115:5636/api/v1/material/submit', {
method: 'POST',
@@ -335,9 +353,9 @@ const columns = [
title: '状态',
key: 'status',
width: 90,
- render: (row) => h(NTag, {
- type: row.status === 'pending' ? 'warning' : 'success',
- round: true, size: 'small'
+ render: (row) => h(NTag, {
+ type: row.status === 'pending' ? 'warning' : 'success',
+ round: true, size: 'small'
}, { default: () => row.status === 'pending' ? '待处理' : '已处理' })
},
{ title: '成交金额', key: 'transactionAmount', width: 100, render: (row) => h('span', { class: 'price-text' }, `¥${row.transactionAmount}`) },
@@ -413,7 +431,7 @@ const resetSearch = () => {
onMounted(() => fetchData())
const logout = () => { localStorage.clear(); router.push('/login') }
-const downloadFile = () => { if(editingRow.value.files?.[0]) window.open(editingRow.value.files[0]) }
+const downloadFile = () => { if (editingRow.value.files?.[0]) window.open(editingRow.value.files[0]) }