From 29b4f3544d1cce531c83e1164b5be47f26a569bb Mon Sep 17 00:00:00 2001
From: huminmin <mac@MacBook-Pro.local>
Date: 星期五, 14 八月 2026 10:17:11 +0800
Subject: [PATCH] 采购来票详情编辑后报错

---
 src/views/erp/purchase/request/data.ts |   22 +++++++++++++++++++---
 1 files changed, 19 insertions(+), 3 deletions(-)

diff --git a/src/views/erp/purchase/request/data.ts b/src/views/erp/purchase/request/data.ts
index f00591c..cc4745b 100644
--- a/src/views/erp/purchase/request/data.ts
+++ b/src/views/erp/purchase/request/data.ts
@@ -4,7 +4,7 @@
 import { DICT_TYPE } from '@vben/constants';
 import { getDictOptions } from '@vben/hooks';
 
-import { getSupplierSimpleList } from '#/api/erp/purchase/supplier';
+import { getSupplierSimpleList } from '#/api/srm/supplier';
 import { getSimpleUserList } from '#/api/system/user';
 import { getRangePickerDefaultProps } from '#/utils';
 
@@ -48,7 +48,7 @@
         placeholder: '閫夋嫨鐢宠鏃堕棿',
         showTime: true,
         format: 'YYYY-MM-DD HH:mm:ss',
-        valueFormat: 'x',
+        valueFormat: 'YYYY-MM-DD HH:mm:ss',
         disabled: formType === 'detail',
       },
       rules: 'required',
@@ -163,7 +163,7 @@
       title: '鍏ュ簱鏁伴噺',
       minWidth: 100,
       fixed: 'right',
-      formatter: 'formatAmount6',
+      formatter: 'formatAmount3',
     },
     {
       field: 'productPrice',
@@ -279,6 +279,20 @@
         allowClear: true,
       },
     },
+    {
+      fieldName: 'inStatus',
+      label: '鍏ュ簱鐘舵��',
+      component: 'Select',
+      componentProps: {
+        options: [
+          { label: '鏈叆搴�', value: 0 },
+          { label: '閮ㄥ垎鍏ュ簱', value: 1 },
+          { label: '鍏ㄩ儴鍏ュ簱', value: 2 },
+        ],
+        placeholder: '璇烽�夋嫨鍏ュ簱鐘舵��',
+        allowClear: true,
+      },
+    },
   ];
 }
 
@@ -350,12 +364,14 @@
       field: 'status',
       title: '鐘舵��',
       minWidth: 120,
+      fixed: 'right',
       slots: { default: 'status' },
     },
     {
       field: 'inStatus',
       title: '鍏ュ簱鐘舵��',
       minWidth: 100,
+      fixed: 'right',
       slots: { default: 'inStatus' },
     },
     {

--
Gitblit v1.9.3