From a2a9a6974ad6af936a6aabda0cd1bb4c739745ea Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E2=80=98huanghaiixia=E2=80=99?= <980486410@.com>
Date: Wed, 19 Nov 2025 11:29:01 +0800
Subject: [PATCH] =?UTF-8?q?=E5=8D=B8=E8=B4=A7=E5=9C=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../src/components/SelectAreaCascader.vue | 14 +-
src/components/pcitc/src/DataLog.vue | 2 +-
src/views/mdm/Category/components/config.ts | 7 +-
src/views/mdm/DocCp/components/Form.vue | 4 +-
.../mdm/PlaceLngUnload/components/config.ts | 926 ++++++++----------
src/views/mdm/PlaceLngUnload/index.vue | 12 +-
6 files changed, 434 insertions(+), 531 deletions(-)
diff --git a/src/components/Form/src/components/SelectAreaCascader.vue b/src/components/Form/src/components/SelectAreaCascader.vue
index ca858e8..cfc4f71 100644
--- a/src/components/Form/src/components/SelectAreaCascader.vue
+++ b/src/components/Form/src/components/SelectAreaCascader.vue
@@ -6,7 +6,7 @@
- {{ t('component.form.apiSelectNotFound') }}
+ {{ t('加载中') }}
@@ -30,7 +30,8 @@
const props = defineProps({
value: String,
- excludeType: String
+ excludeType: String,
+ startPCode: String
});
const emit = defineEmits(['change', 'defaultChange', 'update:value']);
@@ -60,7 +61,7 @@
if (isChange.value) return;
if (val) {
- const resData = await getAreaInfo({code: val,excludeType:props.excludeType });
+ const resData = await getAreaInfo({code: val,excludeType:props.excludeType, startPCode: props.startPCode });
options.value = resData.areaList
emitData.value = resData.regionCode
// const resData = await requestMagicApi({
@@ -120,7 +121,7 @@
apiData.value = [];
loading.value = true;
try {
- const res = await getAreaList({ pid: '', excludeType:props.excludeType });
+ const res = await getAreaList({ pid: '', excludeType:props.excludeType, startPCode: props.startPCode });
if (Array.isArray(res)) {
apiData.value = res;
return;
@@ -142,7 +143,8 @@
try {
const res = await getAreaList({
[asyncFetchParamKey]: Reflect.get(targetOption, 'id'),
- excludeType:props.excludeType
+ excludeType:props.excludeType,
+ startPCode: props.startPCode
});
if (Array.isArray(res)) {
@@ -167,7 +169,7 @@
tree.forEach(async (item: any) => {
if (item.code === id) {
item.children = [];
- const res = await getAreaList({ pid: item.id,excludeType:props.excludeType });
+ const res = await getAreaList({ pid: item.id,excludeType:props.excludeType, startPCode: props.startPCode });
item.children = res.map((child) => {
return {
...child,
diff --git a/src/components/pcitc/src/DataLog.vue b/src/components/pcitc/src/DataLog.vue
index 2aa51cd..f71093f 100644
--- a/src/components/pcitc/src/DataLog.vue
+++ b/src/components/pcitc/src/DataLog.vue
@@ -77,7 +77,7 @@
title: '操作IP',
dataIndex: 'operationIp',
key: 'operationIp',
- width: 120,
+ width: 140,
sorter: true
},
{
diff --git a/src/views/mdm/Category/components/config.ts b/src/views/mdm/Category/components/config.ts
index 1f83a82..269e053 100644
--- a/src/views/mdm/Category/components/config.ts
+++ b/src/views/mdm/Category/components/config.ts
@@ -276,8 +276,8 @@ export const formProps: FormProps = {
key: '57d85cbf34fa475298997f5a7427bf8d',
field: 'coefficient',
label: '车/数量单位',
- type: 'input',
- component: 'Input',
+ type: 'number',
+ component: 'InputNumber',
colProps: { span: 24 },
defaultValue: '',
componentProps: {
@@ -292,6 +292,7 @@ export const formProps: FormProps = {
maxlength: null,
prefix: '',
suffix: '',
+ min:0,
addonBefore: '',
addonAfter: '',
disabled: false,
@@ -362,7 +363,7 @@ export const formProps: FormProps = {
{ key: 2, label: 'Option 2', value: 'Option 2' },
{ key: 3, label: 'Option 3', value: 'Option 3' }
],
- defaultSelect: null,
+ defaultSelect: 'Y',
datasourceType: 'dic',
params: { itemId: '1978057078528327681' },
labelField: 'name',
diff --git a/src/views/mdm/DocCp/components/Form.vue b/src/views/mdm/DocCp/components/Form.vue
index 09afd8d..7eef78e 100644
--- a/src/views/mdm/DocCp/components/Form.vue
+++ b/src/views/mdm/DocCp/components/Form.vue
@@ -187,8 +187,7 @@
(val) => {
let suNecSignProps = data.formDataProps.schemas?.filter((item) => item.field === 'suNecSign')[0];
let cuNecSignProps = data.formDataProps.schemas?.filter((item) => item.field === 'cuNecSign')[0];
- if (val.suNecSign == 'N' && !suNecSignProps.componentProps.disabled && val.suSign != 'N') return
- if (val.cuNecSign == 'N' && !cuNecSignProps.componentProps.disabled && val.cuSign != 'N') return
+ if (val.suNecSign == 'N' && !suNecSignProps.componentProps.disabled && val.suSign != 'N' && val.cuNecSign != 'N') return
if (val.suSign === 'N') {
val.suNecSign = 'N';
suNecSignProps.componentProps.disabled = true;
@@ -197,6 +196,7 @@
suNecSignProps.componentProps.disabled = false;
val.suNecSign = 'Y';
}
+ if (val.cuNecSign == 'N' && !cuNecSignProps.componentProps.disabled && val.cuSign != 'N') return
if (val.cuSign === 'N') {
val.cuNecSign = 'N';
cuNecSignProps.componentProps.disabled = true;
diff --git a/src/views/mdm/PlaceLngUnload/components/config.ts b/src/views/mdm/PlaceLngUnload/components/config.ts
index e62e085..11413eb 100644
--- a/src/views/mdm/PlaceLngUnload/components/config.ts
+++ b/src/views/mdm/PlaceLngUnload/components/config.ts
@@ -2,542 +2,436 @@ import { FormProps, FormSchema } from '/@/components/Form';
import { BasicColumn } from '/@/components/Table';
export const formConfig = {
- useCustomConfig: false,
+ useCustomConfig: false
};
export const searchFormSchema: FormSchema[] = [
- {
- field: 'fullName',
- label: '名称',
- component: 'Input',
- },
- {
- field: 'valid',
- label: '有效标志',
- component: 'XjrSelect',
- componentProps: {
- datasourceType: 'dic',
- params: { itemId: '1978057078528327681' },
- labelField: 'name',
- valueField: 'value',
+ {
+ field: 'fullName',
+ label: '名称',
+ component: 'Input'
+ },
+ {
+ field: 'valid',
+ label: '有效标志',
+ component: 'XjrSelect',
+ componentProps: {
+ datasourceType: 'dic',
+ params: { itemId: '1978057078528327681' },
+ labelField: 'name',
+ valueField: 'value',
- getPopupContainer: () => document.body,
- },
- },
- {
- field: 'code',
- label: '编码',
- component: 'Input',
- },
- {
- field: 'regionCode',
- label: '卸货区域',
- component: 'XjrSelect',
- componentProps: {
- datasourceType: 'api',
- apiConfig: {
- path: 'CodeGeneration/selection',
- method: 'GET',
- apiId: '93d735dcb7364a0f8102188ec4d77ac7',
- },
- labelField: 'label',
- valueField: 'value',
-
- getPopupContainer: () => document.body,
- },
- },
- {
- field: 'addr',
- label: '详细地址',
- component: 'Input',
- },
- {
- field: 'longitude',
- label: '经度',
- component: 'Input',
- },
- {
- field: 'latitude',
- label: '纬度',
- component: 'Input',
- },
- {
- field: 'sort',
- label: '显示顺序',
- component: 'InputNumber',
- componentProps: {
- style: { width: '100%' },
- },
- },
- {
- field: 'note',
- label: '备注',
- component: 'Input',
- },
+ getPopupContainer: () => document.body
+ }
+ }
];
export const columns: BasicColumn[] = [
- {
- dataIndex: 'code',
- title: '编码',
- componentType: 'input',
- align: 'left',
+ {
+ dataIndex: 'code',
+ title: '编码',
+ componentType: 'input',
+ align: 'left',
- sorter: true,
- },
+ sorter: true
+ },
- {
- dataIndex: 'fullName',
- title: '名称',
- componentType: 'input',
- align: 'left',
+ {
+ dataIndex: 'fullName',
+ title: '名称',
+ componentType: 'input',
+ align: 'left',
- sorter: true,
- },
+ sorter: true
+ },
- {
- dataIndex: 'regionCode',
- title: '卸货区域',
- componentType: 'select',
- align: 'left',
+ {
+ dataIndex: 'regionCode',
+ title: '卸货区域',
+ componentType: 'select',
+ align: 'left',
- sorter: true,
- },
+ sorter: true
+ },
- {
- dataIndex: 'addr',
- title: '详细地址',
- componentType: 'textarea',
- align: 'left',
+ {
+ dataIndex: 'addr',
+ title: '详细地址',
+ componentType: 'textarea',
+ align: 'left',
- sorter: true,
- },
+ sorter: true
+ },
- {
- dataIndex: 'valid',
- title: '有效标志',
- componentType: 'select',
- align: 'left',
+ {
+ dataIndex: 'valid',
+ title: '有效标志',
+ componentType: 'select',
+ align: 'left',
- sorter: true,
- },
-
- {
- dataIndex: 'longitude',
- title: '经度',
- componentType: 'input',
- align: 'left',
-
- sorter: true,
- },
-
- {
- dataIndex: 'latitude',
- title: '纬度',
- componentType: 'input',
- align: 'left',
-
- sorter: true,
- },
-
- {
- dataIndex: 'sort',
- title: '显示顺序',
- componentType: 'number',
- align: 'left',
-
- sorter: true,
- },
-
- {
- dataIndex: 'note',
- title: '备注',
- componentType: 'textarea',
- align: 'left',
-
- sorter: true,
- },
+ sorter: true
+ }
];
//表单事件
export const formEventConfigs = {
- 0: [
- {
- type: 'circle',
- color: '#2774ff',
- text: '开始节点',
- icon: '#icon-kaishi',
- bgcColor: '#D8E5FF',
- isUserDefined: false,
- },
- {
- color: '#F6AB01',
- icon: '#icon-chushihua',
- text: '初始化表单',
- bgcColor: '#f9f5ea',
- isUserDefined: false,
- nodeInfo: { processEvent: [] },
- },
- ],
- 1: [
- {
- color: '#B36EDB',
- icon: '#icon-shujufenxi',
- text: '获取表单数据',
- detail: '(新增无此操作)',
- bgcColor: '#F8F2FC',
- isUserDefined: false,
- nodeInfo: { processEvent: [] },
- },
- ],
- 2: [
- {
- color: '#F8625C',
- icon: '#icon-jiazai',
- text: '加载表单',
- bgcColor: '#FFF1F1',
- isUserDefined: false,
- nodeInfo: { processEvent: [] },
- },
- ],
- 3: [
- {
- color: '#6C6AE0',
- icon: '#icon-jsontijiao',
- text: '提交表单',
- bgcColor: '#F5F4FF',
- isUserDefined: false,
- nodeInfo: { processEvent: [] },
- },
- ],
- 4: [
- {
- type: 'circle',
- color: '#F8625C',
- text: '结束节点',
- icon: '#icon-jieshuzhiliao',
- bgcColor: '#FFD6D6',
- isLast: true,
- isUserDefined: false,
- },
- ],
+ 0: [
+ {
+ type: 'circle',
+ color: '#2774ff',
+ text: '开始节点',
+ icon: '#icon-kaishi',
+ bgcColor: '#D8E5FF',
+ isUserDefined: false
+ },
+ {
+ color: '#F6AB01',
+ icon: '#icon-chushihua',
+ text: '初始化表单',
+ bgcColor: '#f9f5ea',
+ isUserDefined: false,
+ nodeInfo: { processEvent: [] }
+ }
+ ],
+ 1: [
+ {
+ color: '#B36EDB',
+ icon: '#icon-shujufenxi',
+ text: '获取表单数据',
+ detail: '(新增无此操作)',
+ bgcColor: '#F8F2FC',
+ isUserDefined: false,
+ nodeInfo: { processEvent: [] }
+ }
+ ],
+ 2: [
+ {
+ color: '#F8625C',
+ icon: '#icon-jiazai',
+ text: '加载表单',
+ bgcColor: '#FFF1F1',
+ isUserDefined: false,
+ nodeInfo: { processEvent: [] }
+ }
+ ],
+ 3: [
+ {
+ color: '#6C6AE0',
+ icon: '#icon-jsontijiao',
+ text: '提交表单',
+ bgcColor: '#F5F4FF',
+ isUserDefined: false,
+ nodeInfo: { processEvent: [] }
+ }
+ ],
+ 4: [
+ {
+ type: 'circle',
+ color: '#F8625C',
+ text: '结束节点',
+ icon: '#icon-jieshuzhiliao',
+ bgcColor: '#FFD6D6',
+ isLast: true,
+ isUserDefined: false
+ }
+ ]
};
export const formProps: FormProps = {
- labelCol: { span: 3, offset: 0 },
- labelAlign: 'right',
- layout: 'horizontal',
- size: 'default',
- schemas: [
- {
- key: '400f153c279440de9db30086cdf282e9',
- field: 'code',
- label: '编码',
- type: 'input',
- component: 'Input',
- colProps: { span: 24 },
- defaultValue: '',
- componentProps: {
- width: '100%',
- span: '',
- defaultValue: '',
- labelWidthMode: 'fix',
- labelFixWidth: 120,
- responsive: false,
- respNewRow: false,
- placeholder: '请输入编码',
- prefix: '',
- suffix: '',
- addonBefore: '',
- addonAfter: '',
- disabled: true,
- allowClear: false,
- showLabel: true,
- required: false,
- rules: [],
- events: {},
- isSave: false,
- isShow: true,
- scan: false,
- style: { width: '100%' },
- },
- },
- {
- key: 'e4ae9d4f09fe4781926728bf71bdbebf',
- field: 'fullName',
- label: '名称',
- type: 'input',
- component: 'Input',
- colProps: { span: 24 },
- defaultValue: '',
- componentProps: {
- width: '100%',
- span: '',
- defaultValue: '',
- labelWidthMode: 'fix',
- labelFixWidth: 120,
- responsive: false,
- respNewRow: false,
- placeholder: '请输入名称',
- prefix: '',
- suffix: '',
- addonBefore: '',
- addonAfter: '',
- disabled: false,
- allowClear: false,
- showLabel: true,
- required: true,
- rules: [],
- events: {},
- isSave: false,
- isShow: true,
- scan: false,
- style: { width: '100%' },
- },
- },
- {
- key: '25f8a4fdfe0948ea931c1d34748d9b10',
- field: 'regionCode',
- label: '卸货区域',
- type: 'select',
- component: 'XjrSelect',
- colProps: { span: 24 },
- componentProps: {
- width: '100%',
- span: '',
- labelWidthMode: 'fix',
- labelFixWidth: 120,
- responsive: false,
- respNewRow: false,
- placeholder: '请选择下拉选择',
- sepTextField: '',
- showLabel: true,
- showSearch: false,
- clearable: false,
- disabled: false,
- mode: '',
- staticOptions: [
- { key: 1, label: 'Option 1', value: 'Option 1' },
- { key: 2, label: 'Option 2', value: 'Option 2' },
- { key: 3, label: 'Option 3', value: 'Option 3' },
- ],
- defaultSelect: '',
- datasourceType: 'api',
- labelField: 'label',
- valueField: 'value',
- apiConfig: {
- path: 'CodeGeneration/selection',
- method: 'GET',
- apiId: '93d735dcb7364a0f8102188ec4d77ac7',
+ labelCol: { span: 3, offset: 0 },
+ labelAlign: 'right',
+ layout: 'horizontal',
+ size: 'default',
+ schemas: [
+ {
+ key: '400f153c279440de9db30086cdf282e9',
+ field: 'code',
+ label: '编码',
+ type: 'input',
+ component: 'Input',
+ colProps: { span: 24 },
+ defaultValue: '',
+ componentProps: {
+ width: '100%',
+ span: '',
+ defaultValue: '',
+ labelWidthMode: 'fix',
+ labelFixWidth: 120,
+ responsive: false,
+ respNewRow: false,
+ placeholder: '请输入编码',
+ prefix: '',
+ suffix: '',
+ addonBefore: '',
+ addonAfter: '',
+ disabled: true,
+ allowClear: false,
+ showLabel: true,
+ required: false,
+ rules: [],
+ events: {},
+ isSave: false,
+ isShow: true,
+ scan: false,
+ style: { width: '100%' }
+ }
},
- dicOptions: [],
- required: true,
- rules: [],
- events: {},
- isShow: true,
- style: { width: '100%' },
- },
- },
- {
- key: 'e622bdd456f846048d26dd3238374f92',
- field: 'addr',
- label: '详细地址',
- type: 'textarea',
- component: 'InputTextArea',
- colProps: { span: 24 },
- defaultValue: '',
- componentProps: {
- width: '100%',
- span: '',
- defaultValue: '',
- labelWidthMode: 'fix',
- labelFixWidth: 120,
- responsive: false,
- respNewRow: true,
- placeholder: '请输入详细地址',
- rows: 1,
- autoSize: false,
- showCount: false,
- disabled: false,
- showLabel: true,
- allowClear: true,
- required: true,
- isShow: true,
- rules: [],
- events: {},
- style: { width: '100%' },
- },
- },
- {
- key: 'e3de858c74fe49c08bf876f521d72b7f',
- field: 'longitude',
- label: '经度',
- type: 'input',
- component: 'Input',
- colProps: { span: 24 },
- defaultValue: '',
- componentProps: {
- width: '100%',
- span: '',
- defaultValue: '',
- labelWidthMode: 'fix',
- labelFixWidth: 120,
- responsive: false,
- respNewRow: false,
- placeholder: '请输入经度',
- prefix: '',
- suffix: '',
- addonBefore: '',
- addonAfter: '',
- disabled: false,
- allowClear: false,
- showLabel: true,
- required: false,
- rules: [],
- events: {},
- isSave: false,
- isShow: true,
- scan: false,
- style: { width: '100%' },
- },
- },
- {
- key: '381dd67f133b4020a7c12f6bbb0df75e',
- field: 'latitude',
- label: '纬度',
- type: 'input',
- component: 'Input',
- colProps: { span: 24 },
- defaultValue: '',
- componentProps: {
- width: '100%',
- span: '',
- defaultValue: '',
- labelWidthMode: 'fix',
- labelFixWidth: 120,
- responsive: false,
- respNewRow: false,
- placeholder: '请输入纬度',
- prefix: '',
- suffix: '',
- addonBefore: '',
- addonAfter: '',
- disabled: false,
- allowClear: false,
- showLabel: true,
- required: false,
- rules: [],
- events: {},
- isSave: false,
- isShow: true,
- scan: false,
- style: { width: '100%' },
- },
- },
- {
- key: 'f5cce49ce1b34d9d92891cc46c469d71',
- field: 'sort',
- label: '显示顺序',
- type: 'number',
- component: 'InputNumber',
- colProps: { span: 24 },
- componentProps: {
- labelWidthMode: 'fix',
- labelFixWidth: 120,
- responsive: false,
- width: '100%',
- span: '',
- min: 0,
- step: 1,
- disabled: false,
- showLabel: true,
- controls: true,
- required: false,
- subTotal: false,
- isShow: true,
- rules: [],
- events: {},
- style: { width: '100%' },
- },
- },
- {
- key: '3e092351b52c4fc8b07cc8aae26d0c4e',
- field: 'valid',
- label: '有效标志',
- type: 'select',
- component: 'XjrSelect',
- colProps: { span: 24 },
- componentProps: {
- width: '100%',
- span: '',
- labelWidthMode: 'fix',
- labelFixWidth: 120,
- responsive: false,
- respNewRow: false,
- placeholder: '请选择下拉选择',
- sepTextField: '',
- showLabel: true,
- showSearch: false,
- clearable: false,
- disabled: true,
- mode: '',
- staticOptions: [
- { key: 1, label: 'Option 1', value: 'Option 1' },
- { key: 2, label: 'Option 2', value: 'Option 2' },
- { key: 3, label: 'Option 3', value: 'Option 3' },
- ],
- defaultSelect: 'Y',
- datasourceType: 'dic',
- params: { itemId: '1978057078528327681' },
- labelField: 'name',
- valueField: 'value',
- apiConfig: {
- path: 'CodeGeneration/selection',
- method: 'GET',
- apiId: '93d735dcb7364a0f8102188ec4d77ac7',
+ {
+ key: 'e4ae9d4f09fe4781926728bf71bdbebf',
+ field: 'fullName',
+ label: '名称',
+ type: 'input',
+ component: 'Input',
+ colProps: { span: 16 },
+ defaultValue: '',
+ componentProps: {
+ width: '100%',
+ span: '',
+ defaultValue: '',
+ labelWidthMode: 'fix',
+ labelFixWidth: 120,
+ responsive: false,
+ respNewRow: false,
+ placeholder: '请输入名称',
+ prefix: '',
+ suffix: '',
+ addonBefore: '',
+ addonAfter: '',
+ disabled: false,
+ allowClear: false,
+ showLabel: true,
+ required: true,
+ rules: [],
+ events: {},
+ isSave: false,
+ isShow: true,
+ scan: false,
+ style: { width: '100%' }
+ }
},
- dicOptions: [],
- required: false,
- rules: [],
- events: {},
- isShow: true,
- itemId: '1978057078528327681',
- style: { width: '100%' },
- },
- },
- {
- key: 'a5198907c3c64bcb984ceb5ff97ab57b',
- field: 'note',
- label: '备注',
- type: 'textarea',
- component: 'InputTextArea',
- colProps: { span: 24 },
- defaultValue: '',
- componentProps: {
- width: '100%',
- span: '',
- defaultValue: '',
- labelWidthMode: 'fix',
- labelFixWidth: 120,
- responsive: false,
- respNewRow: true,
- placeholder: '请输入备注',
- rows: 2,
- autoSize: false,
- showCount: false,
- disabled: false,
- showLabel: true,
- allowClear: true,
- required: false,
- isShow: true,
- rules: [],
- events: {},
- style: { width: '100%' },
- },
- },
- ],
- showActionButtonGroup: false,
- buttonLocation: 'center',
- actionColOptions: { span: 24 },
- showResetButton: false,
- showSubmitButton: false,
- hiddenComponent: [],
-};
\ No newline at end of file
+ {
+ key: '25f8a4fdfe0948ea931c1d34748d9b10',
+ field: 'regionCode',
+ label: '卸货区域',
+ type: 'areacascader',
+ component: 'AreaCascader',
+ colProps: { span: 8 },
+ componentProps: {
+ width: '100%',
+ span: '',
+ labelWidthMode: 'fix',
+ labelFixWidth: 120,
+ responsive: false,
+ respNewRow: false,
+ placeholder: '请选择区域',
+ showLabel: true,
+ disabled: false,
+ allowClear: true,
+ clearable: false,
+ required: true,
+ rules: [],
+ events: {},
+ isShow: true,
+ style: { width: '100%' },
+ fieldNames: { label: 'fullName', value: 'code', children: 'children' },
+ excludeType: 'CONTINENT',
+ startPCode: 'CHN'
+ }
+ },
+ {
+ key: 'e622bdd456f846048d26dd3238374f92',
+ field: 'addr',
+ label: '详细地址',
+ type: 'textarea',
+ component: 'InputTextArea',
+ colProps: { span: 24 },
+ defaultValue: '',
+ componentProps: {
+ width: '100%',
+ span: '',
+ defaultValue: '',
+ labelWidthMode: 'fix',
+ labelFixWidth: 120,
+ responsive: false,
+ respNewRow: true,
+ placeholder: '请输入详细地址',
+ rows: 1,
+ autoSize: false,
+ showCount: false,
+ disabled: false,
+ showLabel: true,
+ allowClear: true,
+ required: true,
+ isShow: true,
+ rules: [],
+ events: {},
+ style: { width: '100%' }
+ }
+ },
+ {
+ key: 'e3de858c74fe49c08bf876f521d72b7f',
+ field: 'longitude',
+ label: '经度',
+ type: 'number',
+ component: 'InputNumber',
+ colProps: { span: 12 },
+ defaultValue: null,
+ componentProps: {
+ labelWidthMode: 'fix',
+ labelFixWidth: 120,
+ responsive: false,
+ width: '100%',
+ precision: '6',
+ span: '',
+ defaultValue: null,
+ min: null,
+ max: null,
+ step: 0.000001,
+ disabled: false,
+ showLabel: true,
+ controls: true,
+ required: false,
+ subTotal: false,
+ isShow: true,
+ rules: [],
+ events: {},
+ style: { width: '100%' }
+ }
+ },
+ {
+ key: '381dd67f133b4020a7c12f6bbb0df75e',
+ field: 'latitude',
+ label: '纬度',
+ type: 'number',
+ component: 'InputNumber',
+ colProps: { span: 12 },
+ defaultValue: null,
+ componentProps: {
+ labelWidthMode: 'fix',
+ labelFixWidth: 120,
+ responsive: false,
+ width: '100%',
+ precision: '6',
+ span: '',
+ defaultValue: null,
+ min: null,
+ max: null,
+ step: 0.000001,
+ disabled: false,
+ showLabel: true,
+ controls: true,
+ required: false,
+ subTotal: false,
+ isShow: true,
+ rules: [],
+ events: {},
+ style: { width: '100%' }
+ }
+ },
+ {
+ key: 'f5cce49ce1b34d9d92891cc46c469d71',
+ field: 'sort',
+ label: '显示顺序',
+ type: 'number',
+ component: 'InputNumber',
+ colProps: { span: 12 },
+ componentProps: {
+ labelWidthMode: 'fix',
+ labelFixWidth: 120,
+ responsive: false,
+ width: '100%',
+ span: '',
+ min: 0,
+ step: 1,
+ disabled: false,
+ showLabel: true,
+ controls: true,
+ required: false,
+ subTotal: false,
+ isShow: true,
+ rules: [],
+ events: {},
+ style: { width: '100%' }
+ }
+ },
+ {
+ key: '3e092351b52c4fc8b07cc8aae26d0c4e',
+ field: 'valid',
+ label: '有效标志',
+ type: 'select',
+ component: 'XjrSelect',
+ colProps: { span: 12 },
+ componentProps: {
+ width: '100%',
+ span: '',
+ labelWidthMode: 'fix',
+ labelFixWidth: 120,
+ responsive: false,
+ respNewRow: false,
+ placeholder: '请选择下拉选择',
+ sepTextField: '',
+ showLabel: true,
+ showSearch: false,
+ clearable: false,
+ disabled: true,
+ mode: '',
+ staticOptions: [
+ { key: 1, label: 'Option 1', value: 'Option 1' },
+ { key: 2, label: 'Option 2', value: 'Option 2' },
+ { key: 3, label: 'Option 3', value: 'Option 3' }
+ ],
+ defaultSelect: 'Y',
+ datasourceType: 'dic',
+ params: { itemId: '1978057078528327681' },
+ labelField: 'name',
+ valueField: 'value',
+ apiConfig: {
+ path: 'CodeGeneration/selection',
+ method: 'GET',
+ apiId: '93d735dcb7364a0f8102188ec4d77ac7'
+ },
+ dicOptions: [],
+ required: false,
+ rules: [],
+ events: {},
+ isShow: true,
+ itemId: '1978057078528327681',
+ style: { width: '100%' }
+ }
+ },
+ {
+ key: 'a5198907c3c64bcb984ceb5ff97ab57b',
+ field: 'note',
+ label: '备注',
+ type: 'textarea',
+ component: 'InputTextArea',
+ colProps: { span: 24 },
+ defaultValue: '',
+ componentProps: {
+ width: '100%',
+ span: '',
+ defaultValue: '',
+ labelWidthMode: 'fix',
+ labelFixWidth: 120,
+ responsive: false,
+ respNewRow: true,
+ placeholder: '请输入备注',
+ rows: 2,
+ autoSize: false,
+ showCount: false,
+ disabled: false,
+ showLabel: true,
+ allowClear: true,
+ required: false,
+ isShow: true,
+ rules: [],
+ events: {},
+ style: { width: '100%' }
+ }
+ }
+ ],
+ showActionButtonGroup: false,
+ buttonLocation: 'center',
+ actionColOptions: { span: 24 },
+ showResetButton: false,
+ showSubmitButton: false,
+ hiddenComponent: []
+};
diff --git a/src/views/mdm/PlaceLngUnload/index.vue b/src/views/mdm/PlaceLngUnload/index.vue
index c7ddf87..9344f57 100644
--- a/src/views/mdm/PlaceLngUnload/index.vue
+++ b/src/views/mdm/PlaceLngUnload/index.vue
@@ -63,7 +63,7 @@
const filterColumns = cloneDeep(filterColumnAuth(columns));
const customConfigColums =ref(filterColumns);
const customSearchFormSchema =ref(searchFormSchema);
-
+ const selectedKeys = ref([]);
const tableRef = ref();
//所有按钮
const buttons = ref([{"name":"新增","code":"add","icon":"ant-design:plus-outlined","isDefault":true,"isUse":true},{"name":"编辑","code":"edit","icon":"ant-design:form-outlined","isDefault":true,"isUse":true},{"name":"启用","code":"enable","icon":"ant-design:form-outlined","isDefault":true,"isUse":true},{"name":"作废","code":"disable","icon":"ant-design:stop-outlined","isDefault":true,"isUse":true},{"name":"刷新","code":"refresh","icon":"ant-design:reload-outlined","isDefault":true,"isUse":true},{"name":"查看","code":"view","icon":"ant-design:eye-outlined","isDefault":true,"isUse":true},{"name":"数据日志","code":"datalog","icon":"ant-design:profile-outlined","isDefault":true,"isUse":true},{"name":"删除","code":"delete","icon":"ant-design:delete-outlined","isDefault":true,"isUse":true}]);
@@ -102,7 +102,7 @@
},
schemas: customSearchFormSchema,
fieldMapToTime: [],
- showResetButton: false,
+ showResetButton: true,
},
beforeFetch: (params) => {
return { ...params, FormId: formIdComputedRef.value, PK: 'id' };
@@ -121,13 +121,19 @@
dataIndex: 'action',
slots: { customRender: 'action' },
},
+ rowSelection: {
+ type: 'checkbox',
+ onChange: onSelectChange
+ },
tableSetting: {
size: false,
setting: false,
},
});
-
+ function onSelectChange(rowKeys: string[]) {
+ selectedKeys.value = rowKeys;
+ }
function dbClickRow(record) {
if (!actionButtonConfig?.value.some(element => element.code == 'view')) {
return;