From 2cecc157796d973f187a1ac7506576400f914beb Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期四, 02 七月 2026 14:25:57 +0800
Subject: [PATCH] 银川 1.销售报价页面开发、联调 2.销售订单页面开发、联调 3.合同管理页面开发联调
---
src/views/basicData/mdm/unit/data.ts | 67 ---------------------------------
1 files changed, 0 insertions(+), 67 deletions(-)
diff --git a/src/views/basicData/mdm/unit/data.ts b/src/views/basicData/mdm/unit/data.ts
index e6081e4..b9d0be3 100644
--- a/src/views/basicData/mdm/unit/data.ts
+++ b/src/views/basicData/mdm/unit/data.ts
@@ -5,7 +5,6 @@
import { getDictOptions } from '#/packages/effects/hooks/src';
import { z } from '#/adapter/form';
-import { getUnitPage } from '#/api/mdm/unit';
/** 鏂板/淇敼鐨勮〃鍗� */
export function useFormSchema(): VbenFormSchema[] {
@@ -34,61 +33,6 @@
rules: 'required',
componentProps: {
placeholder: '璇疯緭鍏ュ崟浣嶅悕绉�',
- },
- },
- {
- component: 'Switch',
- fieldName: 'primaryFlag',
- label: '鏄惁涓诲崟浣�',
- componentProps: {
- class: 'w-auto',
- checkedChildren: '鏄�',
- unCheckedChildren: '鍚�',
- },
- rules: z.boolean().default(false),
- },
- {
- component: 'ApiSelect',
- fieldName: 'primaryId',
- label: '涓诲崟浣�',
- dependencies: {
- triggerFields: ['primaryFlag'],
- show: (values) => {
- return values.primaryFlag === false;
- },
- required: (values) => {
- return values.primaryFlag === false;
- },
- },
- componentProps: {
- placeholder: '璇烽�夋嫨涓诲崟浣�',
- allowClear: true,
- api: async () => {
- const res = await getUnitPage({ pageNo: 1, pageSize: 100, primaryFlag: true, status: 0 });
- return res.list || [];
- },
- labelField: 'name',
- valueField: 'id',
- },
- },
- {
- component: 'InputNumber',
- fieldName: 'changeRate',
- label: '鎹㈢畻姣斾緥',
- dependencies: {
- triggerFields: ['primaryFlag'],
- show: (values) => {
- return values.primaryFlag === false;
- },
- required: (values) => {
- return values.primaryFlag === false;
- },
- },
- componentProps: {
- class: '!w-full',
- min: 0,
- precision: 4,
- placeholder: '璇疯緭鍏ユ崲绠楁瘮渚�',
},
},
{
@@ -161,17 +105,6 @@
field: 'name',
title: '鍗曚綅鍚嶇О',
minWidth: 150,
- },
- {
- field: 'primaryFlag',
- title: '涓诲崟浣�',
- minWidth: 80,
- slots: { default: 'primaryFlag' },
- },
- {
- field: 'changeRate',
- title: '鎹㈢畻姣斾緥',
- minWidth: 100,
},
{
field: 'status',
--
Gitblit v1.9.3