diff --git a/inventory-web/src/views/purchase/index.vue b/inventory-web/src/views/purchase/index.vue
index 257a9d3..43069bd 100644
--- a/inventory-web/src/views/purchase/index.vue
+++ b/inventory-web/src/views/purchase/index.vue
@@ -144,6 +144,11 @@
+
+
+
+
+
@@ -177,7 +182,7 @@
-
+
@@ -347,7 +347,6 @@ const vLoadmore = {
// 表单(公共字段)
const form = ref({
approver_id: undefined as number | undefined,
- supplier_link: '',
remark: ''
})
@@ -363,6 +362,7 @@ interface FormItemRow {
total_price: number | undefined
tax_rate: number
totalPriceManuallyEdited: boolean
+ supplier_link: string
remark: string
images: string[]
fileList: any[]
@@ -381,6 +381,7 @@ const createEmptyFormItem = (): FormItemRow => ({
total_price: undefined,
tax_rate: 0,
totalPriceManuallyEdited: false,
+ supplier_link: '',
remark: '',
images: [],
fileList: []
@@ -464,7 +465,6 @@ const openCreateDialog = (prefill?: { materialId?: number; name?: string; spec?:
dialogTitle.value = '新建采购申请'
form.value = {
approver_id: undefined,
- supplier_link: '',
remark: ''
}
@@ -773,7 +773,8 @@ const submitForm = async () => {
total_price: row.total_price,
tax_rate: row.tax_rate,
approver_id: form.value.approver_id,
- supplier_link: form.value.supplier_link,
+ // ★ 商家链接每行独立
+ supplier_link: row.supplier_link || '',
// 行备注优先;若空则用公共备注
remark: row.remark || form.value.remark,
// ★ 每行必填照片