From 6ebcfebf58fe23ea401de1050b15ba85e41763a9 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期六, 17 十月 2026 18:36:52 +0800
Subject: [PATCH] feat(wls): 仓储物流单据跨模块关联字段改为手工填写
---
src/views/wls/returnissue/data.ts | 40 ++++++++++++++++++----------------------
1 files changed, 18 insertions(+), 22 deletions(-)
diff --git a/src/views/wls/returnissue/data.ts b/src/views/wls/returnissue/data.ts
index 691b573..ff3033b 100644
--- a/src/views/wls/returnissue/data.ts
+++ b/src/views/wls/returnissue/data.ts
@@ -8,19 +8,13 @@
import { h, markRaw } from 'vue';
-import {
- DICT_TYPE,
- MesAutoCodeRuleCode,
- MesProWorkOrderStatusEnum,
-} from '@vben/constants';
+import { DICT_TYPE, MesAutoCodeRuleCode } from '@vben/constants';
import { getDictOptions } from '@vben/hooks';
import { Button } from 'ant-design-vue';
import { z } from '#/adapter/form';
import { generateAutoCode } from '#/api/mes/md/autocode/record';
-import { MdWorkstationSelect } from '#/views/mes/md/workstation/components';
-import { ProWorkOrderSelect } from '#/views/mes/pro/workorder/components';
import { WmProductIssueLineSelect } from '#/views/wls/productissue/components';
import { WmMaterialStockSelect } from '#/views/wls/materialstock/components';
import {
@@ -105,20 +99,21 @@
rules: 'required',
},
{
- fieldName: 'workOrderId',
- label: '鐢熶骇璁㈠崟',
- component: markRaw(ProWorkOrderSelect),
+ fieldName: 'workOrderCode',
+ label: '鐢熶骇璁㈠崟鍙�',
+ component: 'Input',
componentProps: {
- status: MesProWorkOrderStatusEnum.CONFIRMED,
+ disabled: isHeaderReadonly(formType),
+ placeholder: '璇疯緭鍏ョ敓浜ц鍗曞彿',
},
- rules: 'selectRequired',
},
{
- fieldName: 'workstationId',
+ fieldName: 'workstationName',
label: '宸ヤ綔绔�',
- component: markRaw(MdWorkstationSelect),
+ component: 'Input',
componentProps: {
- placeholder: '璇烽�夋嫨宸ヤ綔绔�',
+ disabled: isHeaderReadonly(formType),
+ placeholder: '璇疯緭鍏ュ伐浣滅珯鍚嶇О',
},
},
{
@@ -127,9 +122,9 @@
component: 'DatePicker',
componentProps: {
class: '!w-full',
- format: 'YYYY-MM-DD HH:mm:ss',
+ format: 'YYYY-MM-DD',
placeholder: '璇烽�夋嫨閫�鏂欐棩鏈�',
- showTime: true,
+ showTime: false,
valueFormat: 'YYYY-MM-DD HH:mm:ss',
},
},
@@ -168,11 +163,12 @@
},
},
{
- fieldName: 'workOrderId',
- label: '鐢熶骇璁㈠崟',
- component: markRaw(ProWorkOrderSelect),
+ fieldName: 'workOrderCode',
+ label: '鐢熶骇璁㈠崟鍙�',
+ component: 'Input',
componentProps: {
- placeholder: '璇烽�夋嫨鐢熶骇璁㈠崟',
+ allowClear: true,
+ placeholder: '璇疯緭鍏ョ敓浜ц鍗曞彿',
},
},
{
@@ -225,7 +221,7 @@
field: 'returnDate',
title: '閫�鏂欐棩鏈�',
width: 180,
- formatter: 'formatDateTime',
+ formatter: 'formatDate',
},
{
field: 'status',
--
Gitblit v1.9.3