From 458dd6178b917a304d7539aa30e8103e4362588e Mon Sep 17 00:00:00 2001
From: quxin <592870522@qq.com>
Date: 星期五, 04 九月 2026 10:38:09 +0800
Subject: [PATCH] 修改BUG: 1.仓储物流--生产仓库--生产领料:新增领料出库单时报错,提示"请求参数不正确:生产任务ID不能为空",导致无法新增。 2.仓储物流--生产仓库--生产领料:对新增到领料出库单进行拣货时,提示"提示:库存记录与提交的物料、批次或库位信息不一致"导致无法进行拣货

---
 src/views/crm/receivable/plan/data.ts |   19 ++++++++-----------
 1 files changed, 8 insertions(+), 11 deletions(-)

diff --git a/src/views/crm/receivable/plan/data.ts b/src/views/crm/receivable/plan/data.ts
index bd5ef22..ee60405 100644
--- a/src/views/crm/receivable/plan/data.ts
+++ b/src/views/crm/receivable/plan/data.ts
@@ -7,8 +7,11 @@
 import { erpPriceInputFormatter } from '@vben/utils';
 
 import { getContractSimpleList } from '#/api/crm/contract';
-import { getCustomerSimpleList } from '#/api/crm/customer';
 import { getSimpleUserList } from '#/api/system/user';
+import CrmCustomerSelect from '#/components/crm-customer-select.vue';
+
+import dayjs from 'dayjs';
+import { markRaw } from 'vue';
 
 /** 鏂板/淇敼鐨勮〃鍗� */
 export function useFormSchema(): VbenFormSchema[] {
@@ -42,12 +45,9 @@
     {
       fieldName: 'customerId',
       label: '瀹㈡埛',
-      component: 'ApiSelect',
+      component: markRaw(CrmCustomerSelect),
       rules: 'required',
       componentProps: {
-        api: getCustomerSimpleList,
-        labelField: 'name',
-        valueField: 'id',
         placeholder: '璇烽�夋嫨瀹㈡埛',
         allowClear: true,
       },
@@ -110,10 +110,10 @@
       componentProps: {
         placeholder: '璇烽�夋嫨璁″垝鍥炴鏃ユ湡',
         showTime: false,
-        valueFormat: 'x',
+        valueFormat: 'YYYY-MM-DD',
         format: 'YYYY-MM-DD',
       },
-      defaultValue: new Date(),
+      defaultValue: dayjs().format('YYYY-MM-DD'),
     },
     {
       fieldName: 'remindDays',
@@ -153,11 +153,8 @@
     {
       fieldName: 'customerId',
       label: '瀹㈡埛',
-      component: 'ApiSelect',
+      component: markRaw(CrmCustomerSelect),
       componentProps: {
-        api: getCustomerSimpleList,
-        labelField: 'name',
-        valueField: 'id',
         placeholder: '璇烽�夋嫨瀹㈡埛',
         allowClear: true,
       },

--
Gitblit v1.9.3