From c86b74b36c264da2acaae22aeb3ba08bb25562c0 Mon Sep 17 00:00:00 2001
From: 云 <2163098428@qq.com>
Date: 星期三, 30 九月 2026 19:04:37 +0800
Subject: [PATCH] chore(config): 更新开发环境代理配置
---
src/views/wls/returnsales/data.ts | 39 +++++++--------------------------------
1 files changed, 7 insertions(+), 32 deletions(-)
diff --git a/src/views/wls/returnsales/data.ts b/src/views/wls/returnsales/data.ts
index e926283..c45c5f9 100644
--- a/src/views/wls/returnsales/data.ts
+++ b/src/views/wls/returnsales/data.ts
@@ -12,8 +12,8 @@
import { Button } from 'ant-design-vue';
import { z } from '#/adapter/form';
+import CrmCustomerSelect from '#/components/crm-customer-select.vue';
import { generateAutoCode } from '#/api/mes/md/autocode/record';
-import { MdClientSelect } from '#/views/mes/md/client/components';
import { MdItemSelect } from '#/views/mes/md/item/components';
import { WmBatchSelect } from '#/views/wls/batch/components';
import {
@@ -87,17 +87,9 @@
rules: 'required',
},
{
- fieldName: 'salesOrderCode',
- label: '閿�鍞鍗曞彿',
- component: 'Input',
- componentProps: {
- placeholder: '璇疯緭鍏ラ攢鍞鍗曞彿',
- },
- },
- {
fieldName: 'clientId',
label: '瀹㈡埛',
- component: markRaw(MdClientSelect),
+ component: markRaw(CrmCustomerSelect),
componentProps: {
placeholder: '璇烽�夋嫨瀹㈡埛',
},
@@ -111,7 +103,7 @@
class: '!w-full',
format: 'YYYY-MM-DD',
placeholder: '璇烽�夋嫨閫�璐ф棩鏈�',
- valueFormat: 'x',
+ valueFormat: 'YYYY-MM-DD',
},
rules: 'required',
},
@@ -161,18 +153,9 @@
},
},
{
- fieldName: 'salesOrderCode',
- label: '閿�鍞鍗曞彿',
- component: 'Input',
- componentProps: {
- allowClear: true,
- placeholder: '璇疯緭鍏ラ攢鍞鍗曞彿',
- },
- },
- {
fieldName: 'clientId',
label: '瀹㈡埛',
- component: markRaw(MdClientSelect),
+ component: markRaw(CrmCustomerSelect),
componentProps: {
placeholder: '璇烽�夋嫨瀹㈡埛',
},
@@ -203,11 +186,6 @@
field: 'name',
title: '閫�璐у崟鍚嶇О',
minWidth: 150,
- },
- {
- field: 'salesOrderCode',
- title: '閿�鍞鍗曞彿',
- minWidth: 140,
},
{
field: 'clientCode',
@@ -321,10 +299,7 @@
}
/** 閫�璐у崟琛屾柊澧�/淇敼鐨勮〃鍗� */
-export function useLineFormSchema(
- clientId?: number,
- salesOrderCode?: string,
-): VbenFormSchema[] {
+export function useLineFormSchema(clientId?: number): VbenFormSchema[] {
return [
{
fieldName: 'itemId',
@@ -353,16 +328,16 @@
component: markRaw(WmBatchSelect),
componentProps: {
clientId,
+ disabled: true,
placeholder: '璇烽�夋嫨鎵规',
- salesOrderCode,
},
dependencies: {
triggerFields: ['itemId'],
componentProps: (values) => ({
clientId,
+ disabled: true,
itemId: values.itemId,
placeholder: '璇烽�夋嫨鎵规',
- salesOrderCode,
}),
},
},
--
Gitblit v1.9.3