diff --git a/src/api/mdm/PlaceLngUnload/index.ts b/src/api/mdm/PlaceLngUnload/index.ts new file mode 100644 index 0000000..d8537b9 --- /dev/null +++ b/src/api/mdm/PlaceLngUnload/index.ts @@ -0,0 +1,122 @@ +import { LngBPlaceLngUnloadPageModel, LngBPlaceLngUnloadPageParams, LngBPlaceLngUnloadPageResult } from './model/PlaceLngUnloadModel'; +import { defHttp } from '/@/utils/http/axios'; +import { ErrorMessageMode } from '/#/axios'; + +enum Api { + Page = '/mdm/placeLngUnload/page', + List = '/mdm/placeLngUnload/list', + Info = '/mdm/placeLngUnload/info', + LngBPlaceLngUnload = '/mdm/placeLngUnload', + + + + Enable = '/mdm/placeLngUnload/enable', + Disable= '/mdm/placeLngUnload/disable', + + DataLog = '/mdm/placeLngUnload/datalog', +} + +/** + * @description: 查询LngBPlaceLngUnload分页列表 + */ +export async function getLngBPlaceLngUnloadPage(params: LngBPlaceLngUnloadPageParams, mode: ErrorMessageMode = 'modal') { + return defHttp.get( + { + url: Api.Page, + params, + }, + { + errorMessageMode: mode, + }, + ); +} + +/** + * @description: 获取LngBPlaceLngUnload信息 + */ +export async function getLngBPlaceLngUnload(id: String, mode: ErrorMessageMode = 'modal') { + return defHttp.get( + { + url: Api.Info, + params: { id }, + }, + { + errorMessageMode: mode, + }, + ); +} + +/** + * @description: 新增LngBPlaceLngUnload + */ +export async function addLngBPlaceLngUnload(lngBPlaceLngUnload: Recordable, mode: ErrorMessageMode = 'modal') { + return defHttp.post( + { + url: Api.LngBPlaceLngUnload, + params: lngBPlaceLngUnload, + }, + { + errorMessageMode: mode, + }, + ); +} + +/** + * @description: 更新LngBPlaceLngUnload + */ +export async function updateLngBPlaceLngUnload(lngBPlaceLngUnload: Recordable, mode: ErrorMessageMode = 'modal') { + return defHttp.put( + { + url: Api.LngBPlaceLngUnload, + params: lngBPlaceLngUnload, + }, + { + errorMessageMode: mode, + }, + ); +} + +/** + * @description: 删除LngBPlaceLngUnload(批量删除) + */ +export async function deleteLngBPlaceLngUnload(ids: string[], mode: ErrorMessageMode = 'modal') { + return defHttp.delete( + { + url: Api.LngBPlaceLngUnload, + data: ids, + }, + { + errorMessageMode: mode, + }, + ); +} + + +/** + * @description: 启用数据LngBPlaceLngUnload + */ +export async function enableLngBPlaceLngUnload(ids: string[], mode: ErrorMessageMode = 'modal') { + return defHttp.post( + { + url: Api.Enable, + data: ids, + }, + { + errorMessageMode: mode, + }, + ); +} +/** + * @description: 作废数据LngBPlaceLngUnload + */ +export async function disableLngBPlaceLngUnload(ids: string[], mode: ErrorMessageMode = 'modal') { + return defHttp.post( + { + url: Api.Disable, + data: ids, + }, + { + errorMessageMode: mode, + }, + ); +} \ No newline at end of file diff --git a/src/api/mdm/PlaceLngUnload/model/PlaceLngUnloadModel.ts b/src/api/mdm/PlaceLngUnload/model/PlaceLngUnloadModel.ts new file mode 100644 index 0000000..1d3e72a --- /dev/null +++ b/src/api/mdm/PlaceLngUnload/model/PlaceLngUnloadModel.ts @@ -0,0 +1,56 @@ +import { BasicPageParams, BasicFetchResult } from '/@/api/model/baseModel'; + +/** + * @description: LngBPlaceLngUnload分页参数 模型 + */ +export interface LngBPlaceLngUnloadPageParams extends BasicPageParams { + fullName: string; + + valid: string; + + code: string; + + regionCode: string; + + addr: string; + + longitude: string; + + latitude: string; + + sort: string; + + note: string; +} + +/** + * @description: LngBPlaceLngUnload分页返回值模型 + */ +export interface LngBPlaceLngUnloadPageModel { + id: string; + + code: string; + + fullName: string; + + regionCode: string; + + addr: string; + + valid: string; + + longitude: string; + + latitude: string; + + sort: string; + + note: string; +} + +0; + +/** + * @description: LngBPlaceLngUnload分页返回值结构 + */ +export type LngBPlaceLngUnloadPageResult = BasicFetchResult; \ No newline at end of file diff --git a/src/views/mdm/Bank/components/config.ts b/src/views/mdm/Bank/components/config.ts index 5c1d59a..4862781 100644 --- a/src/views/mdm/Bank/components/config.ts +++ b/src/views/mdm/Bank/components/config.ts @@ -197,7 +197,7 @@ export const formProps: FormProps = { field: 'code', label: '编码', type: 'input', - component: 'Input', + component: 'InputNumber', colProps: { span: 24 }, defaultValue: '', componentProps: { diff --git a/src/views/mdm/DocCp/components/Form.vue b/src/views/mdm/DocCp/components/Form.vue index 42e339d..09afd8d 100644 --- a/src/views/mdm/DocCp/components/Form.vue +++ b/src/views/mdm/DocCp/components/Form.vue @@ -187,16 +187,22 @@ (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.suSign === 'N') { val.suNecSign = 'N'; suNecSignProps.componentProps.disabled = true; - } else { + } + if (val.suSign === 'Y') { suNecSignProps.componentProps.disabled = false; + val.suNecSign = 'Y'; } if (val.cuSign === 'N') { val.cuNecSign = 'N'; cuNecSignProps.componentProps.disabled = true; - } else { + } + if (val.cuSign === 'Y') { + val.cuNecSign = 'Y'; cuNecSignProps.componentProps.disabled = false; } }, diff --git a/src/views/mdm/DocCp/components/config.ts b/src/views/mdm/DocCp/components/config.ts index 41a39b0..b0d2d0b 100644 --- a/src/views/mdm/DocCp/components/config.ts +++ b/src/views/mdm/DocCp/components/config.ts @@ -242,7 +242,7 @@ export const formProps: FormProps = { label: '供应商适用', type: 'select', component: 'XjrSelect', - colProps: { span: 24 }, + colProps: { span: 12 }, componentProps: { width: '100%', span: '', @@ -255,6 +255,7 @@ export const formProps: FormProps = { showLabel: true, showSearch: false, clearable: false, + allowClear: false, disabled: false, mode: '', staticOptions: [ @@ -287,7 +288,7 @@ export const formProps: FormProps = { label: '供应商必须提供', type: 'select', component: 'XjrSelect', - colProps: { span: 24 }, + colProps: { span: 12 }, componentProps: { width: '100%', span: '', @@ -300,6 +301,7 @@ export const formProps: FormProps = { showLabel: true, showSearch: false, clearable: false, + allowClear: false, disabled: false, mode: '', staticOptions: [ @@ -332,7 +334,7 @@ export const formProps: FormProps = { label: '客户适用', type: 'select', component: 'XjrSelect', - colProps: { span: 24 }, + colProps: { span: 12 }, componentProps: { width: '100%', span: '', @@ -345,6 +347,7 @@ export const formProps: FormProps = { showLabel: true, showSearch: false, clearable: false, + allowClear: false, disabled: false, mode: '', staticOptions: [ @@ -377,7 +380,7 @@ export const formProps: FormProps = { label: '客户必须提供', type: 'select', component: 'XjrSelect', - colProps: { span: 24 }, + colProps: { span: 12 }, componentProps: { width: '100%', span: '', @@ -390,6 +393,7 @@ export const formProps: FormProps = { showLabel: true, showSearch: false, clearable: false, + allowClear: false, disabled: false, mode: '', staticOptions: [ diff --git a/src/views/mdm/PlaceLngUnload/components/Form.vue b/src/views/mdm/PlaceLngUnload/components/Form.vue new file mode 100644 index 0000000..4117576 --- /dev/null +++ b/src/views/mdm/PlaceLngUnload/components/Form.vue @@ -0,0 +1,224 @@ + + \ No newline at end of file diff --git a/src/views/mdm/PlaceLngUnload/components/PlaceLngUnloadModal.vue b/src/views/mdm/PlaceLngUnload/components/PlaceLngUnloadModal.vue new file mode 100644 index 0000000..168dd47 --- /dev/null +++ b/src/views/mdm/PlaceLngUnload/components/PlaceLngUnloadModal.vue @@ -0,0 +1,110 @@ + + \ No newline at end of file diff --git a/src/views/mdm/PlaceLngUnload/components/config.ts b/src/views/mdm/PlaceLngUnload/components/config.ts new file mode 100644 index 0000000..e62e085 --- /dev/null +++ b/src/views/mdm/PlaceLngUnload/components/config.ts @@ -0,0 +1,543 @@ +import { FormProps, FormSchema } from '/@/components/Form'; +import { BasicColumn } from '/@/components/Table'; + +export const formConfig = { + 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', + + 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', + }, +]; + +export const columns: BasicColumn[] = [ + { + dataIndex: 'code', + title: '编码', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'fullName', + title: '名称', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'regionCode', + title: '卸货区域', + componentType: 'select', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'addr', + title: '详细地址', + componentType: 'textarea', + align: 'left', + + sorter: true, + }, + + { + 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, + }, +]; +//表单事件 +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, + }, + ], +}; +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', + }, + 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', + }, + 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 diff --git a/src/views/mdm/PlaceLngUnload/components/workflowPermission.ts b/src/views/mdm/PlaceLngUnload/components/workflowPermission.ts new file mode 100644 index 0000000..7ac4a5f --- /dev/null +++ b/src/views/mdm/PlaceLngUnload/components/workflowPermission.ts @@ -0,0 +1,137 @@ +export const permissionList = [ + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '编码', + fieldId: 'code', + isSubTable: false, + showChildren: true, + type: 'input', + key: '400f153c279440de9db30086cdf282e9', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '名称', + fieldId: 'fullName', + isSubTable: false, + showChildren: true, + type: 'input', + key: 'e4ae9d4f09fe4781926728bf71bdbebf', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '卸货区域', + fieldId: 'regionCode', + isSubTable: false, + showChildren: true, + type: 'select', + key: '25f8a4fdfe0948ea931c1d34748d9b10', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '详细地址', + fieldId: 'addr', + isSubTable: false, + showChildren: true, + type: 'textarea', + key: 'e622bdd456f846048d26dd3238374f92', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '经度', + fieldId: 'longitude', + isSubTable: false, + showChildren: true, + type: 'input', + key: 'e3de858c74fe49c08bf876f521d72b7f', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '纬度', + fieldId: 'latitude', + isSubTable: false, + showChildren: true, + type: 'input', + key: '381dd67f133b4020a7c12f6bbb0df75e', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '显示顺序', + fieldId: 'sort', + isSubTable: false, + showChildren: true, + type: 'number', + key: 'f5cce49ce1b34d9d92891cc46c469d71', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '有效标志', + fieldId: 'valid', + isSubTable: false, + showChildren: true, + type: 'select', + key: '3e092351b52c4fc8b07cc8aae26d0c4e', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '备注', + fieldId: 'note', + isSubTable: false, + showChildren: true, + type: 'textarea', + key: 'a5198907c3c64bcb984ceb5ff97ab57b', + children: [], + }, +]; \ No newline at end of file diff --git a/src/views/mdm/PlaceLngUnload/index.vue b/src/views/mdm/PlaceLngUnload/index.vue new file mode 100644 index 0000000..c7ddf87 --- /dev/null +++ b/src/views/mdm/PlaceLngUnload/index.vue @@ -0,0 +1,365 @@ + + + \ No newline at end of file