From 4d5bbd8188896872ff251d9c12d4fbf93db371e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=98huanghaiixia=E2=80=99?= <980486410@.com> Date: Fri, 20 Mar 2026 13:38:14 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=A5=E5=BA=93=E5=87=BA=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/inventory/LngInventoryIn/index.ts | 90 +++ .../model/LngInventoryInModel.ts | 58 ++ src/api/inventory/LngInventoryOut/index.ts | 90 +++ .../model/LngInventoryOutModel.ts | 50 ++ src/router/routes/basic.ts | 8 + src/views/contract/ContractPurLng/index.vue | 4 +- .../LngInventoryIn/components/Form.vue | 224 +++++++ .../components/LngInventoryInModal.vue | 110 ++++ .../LngInventoryIn/components/config.ts | 556 ++++++++++++++++++ .../LngInventoryIn/components/createForm.vue | 529 +++++++++++++++++ .../components/workflowPermission.ts | 152 +++++ src/views/inventory/LngInventoryIn/index.vue | 327 ++++++++++ .../LngInventoryOut/components/Form.vue | 224 +++++++ .../components/LngInventoryOutModal.vue | 110 ++++ .../LngInventoryOut/components/config.ts | 473 +++++++++++++++ .../components/workflowPermission.ts | 122 ++++ src/views/inventory/LngInventoryOut/index.vue | 327 ++++++++++ 17 files changed, 3452 insertions(+), 2 deletions(-) create mode 100644 src/api/inventory/LngInventoryIn/index.ts create mode 100644 src/api/inventory/LngInventoryIn/model/LngInventoryInModel.ts create mode 100644 src/api/inventory/LngInventoryOut/index.ts create mode 100644 src/api/inventory/LngInventoryOut/model/LngInventoryOutModel.ts create mode 100644 src/views/inventory/LngInventoryIn/components/Form.vue create mode 100644 src/views/inventory/LngInventoryIn/components/LngInventoryInModal.vue create mode 100644 src/views/inventory/LngInventoryIn/components/config.ts create mode 100644 src/views/inventory/LngInventoryIn/components/createForm.vue create mode 100644 src/views/inventory/LngInventoryIn/components/workflowPermission.ts create mode 100644 src/views/inventory/LngInventoryIn/index.vue create mode 100644 src/views/inventory/LngInventoryOut/components/Form.vue create mode 100644 src/views/inventory/LngInventoryOut/components/LngInventoryOutModal.vue create mode 100644 src/views/inventory/LngInventoryOut/components/config.ts create mode 100644 src/views/inventory/LngInventoryOut/components/workflowPermission.ts create mode 100644 src/views/inventory/LngInventoryOut/index.vue diff --git a/src/api/inventory/LngInventoryIn/index.ts b/src/api/inventory/LngInventoryIn/index.ts new file mode 100644 index 0000000..912577d --- /dev/null +++ b/src/api/inventory/LngInventoryIn/index.ts @@ -0,0 +1,90 @@ +import { LngInventoryInPageModel, LngInventoryInPageParams, LngInventoryInPageResult } from './model/LngInventoryInModel'; +import { defHttp } from '/@/utils/http/axios'; +import { ErrorMessageMode } from '/#/axios'; + +enum Api { + Page = '/inventory/lngInventoryIn/page', + List = '/inventory/lngInventoryIn/list', + Info = '/inventory/lngInventoryIn/info', + LngInventoryIn = '/inventory/lngInventoryIn', + + + + + DataLog = '/inventory/lngInventoryIn/datalog', +} + +/** + * @description: 查询LngInventoryIn分页列表 + */ +export async function getLngInventoryInPage(params: LngInventoryInPageParams, mode: ErrorMessageMode = 'modal') { + return defHttp.get( + { + url: Api.Page, + params, + }, + { + errorMessageMode: mode, + }, + ); +} + +/** + * @description: 获取LngInventoryIn信息 + */ +export async function getLngInventoryIn(id: String, mode: ErrorMessageMode = 'modal') { + return defHttp.get( + { + url: Api.Info, + params: { id }, + }, + { + errorMessageMode: mode, + }, + ); +} + +/** + * @description: 新增LngInventoryIn + */ +export async function addLngInventoryIn(lngInventoryIn: Recordable, mode: ErrorMessageMode = 'modal') { + return defHttp.post( + { + url: Api.LngInventoryIn, + params: lngInventoryIn, + }, + { + errorMessageMode: mode, + }, + ); +} + +/** + * @description: 更新LngInventoryIn + */ +export async function updateLngInventoryIn(lngInventoryIn: Recordable, mode: ErrorMessageMode = 'modal') { + return defHttp.put( + { + url: Api.LngInventoryIn, + params: lngInventoryIn, + }, + { + errorMessageMode: mode, + }, + ); +} + +/** + * @description: 删除LngInventoryIn(批量删除) + */ +export async function deleteLngInventoryIn(ids: string[], mode: ErrorMessageMode = 'modal') { + return defHttp.delete( + { + url: Api.LngInventoryIn, + data: ids, + }, + { + errorMessageMode: mode, + }, + ); +} \ No newline at end of file diff --git a/src/api/inventory/LngInventoryIn/model/LngInventoryInModel.ts b/src/api/inventory/LngInventoryIn/model/LngInventoryInModel.ts new file mode 100644 index 0000000..eb5a3e8 --- /dev/null +++ b/src/api/inventory/LngInventoryIn/model/LngInventoryInModel.ts @@ -0,0 +1,58 @@ +import { BasicPageParams, BasicFetchResult } from '/@/api/model/baseModel'; + +/** + * @description: LngInventoryIn分页参数 模型 + */ +export interface LngInventoryInPageParams extends BasicPageParams { + typeCode: string; + + staCode: string; + + dateIn: string; + + suCode: string; + + id: string; + + qtyUnloadMmbtu: string; + + qtyUnloadTon: string; + + qtyUnloadM3L: string; + + qtyUnloadM3: string; + + qtyUnloadGj: string; +} + +/** + * @description: LngInventoryIn分页返回值模型 + */ +export interface LngInventoryInPageModel { + id: string; + + typeCode: string; + + staCode: string; + + dateIn: string; + + qtyUnloadMmbtu: string; + + qtyUnloadTon: string; + + qtyUnloadM3L: string; + + qtyUnloadM3: string; + + qtyUnloadGj: string; + + suCode: string; +} + +0; + +/** + * @description: LngInventoryIn分页返回值结构 + */ +export type LngInventoryInPageResult = BasicFetchResult; \ No newline at end of file diff --git a/src/api/inventory/LngInventoryOut/index.ts b/src/api/inventory/LngInventoryOut/index.ts new file mode 100644 index 0000000..be34f44 --- /dev/null +++ b/src/api/inventory/LngInventoryOut/index.ts @@ -0,0 +1,90 @@ +import { LngInventoryOutPageModel, LngInventoryOutPageParams, LngInventoryOutPageResult } from './model/LngInventoryOutModel'; +import { defHttp } from '/@/utils/http/axios'; +import { ErrorMessageMode } from '/#/axios'; + +enum Api { + Page = '/inventory/lngInventoryOut/page', + List = '/inventory/lngInventoryOut/list', + Info = '/inventory/lngInventoryOut/info', + LngInventoryOut = '/inventory/lngInventoryOut', + + + + + DataLog = '/inventory/lngInventoryOut/datalog', +} + +/** + * @description: 查询LngInventoryOut分页列表 + */ +export async function getLngInventoryOutPage(params: LngInventoryOutPageParams, mode: ErrorMessageMode = 'modal') { + return defHttp.get( + { + url: Api.Page, + params, + }, + { + errorMessageMode: mode, + }, + ); +} + +/** + * @description: 获取LngInventoryOut信息 + */ +export async function getLngInventoryOut(id: String, mode: ErrorMessageMode = 'modal') { + return defHttp.get( + { + url: Api.Info, + params: { id }, + }, + { + errorMessageMode: mode, + }, + ); +} + +/** + * @description: 新增LngInventoryOut + */ +export async function addLngInventoryOut(lngInventoryOut: Recordable, mode: ErrorMessageMode = 'modal') { + return defHttp.post( + { + url: Api.LngInventoryOut, + params: lngInventoryOut, + }, + { + errorMessageMode: mode, + }, + ); +} + +/** + * @description: 更新LngInventoryOut + */ +export async function updateLngInventoryOut(lngInventoryOut: Recordable, mode: ErrorMessageMode = 'modal') { + return defHttp.put( + { + url: Api.LngInventoryOut, + params: lngInventoryOut, + }, + { + errorMessageMode: mode, + }, + ); +} + +/** + * @description: 删除LngInventoryOut(批量删除) + */ +export async function deleteLngInventoryOut(ids: string[], mode: ErrorMessageMode = 'modal') { + return defHttp.delete( + { + url: Api.LngInventoryOut, + data: ids, + }, + { + errorMessageMode: mode, + }, + ); +} \ No newline at end of file diff --git a/src/api/inventory/LngInventoryOut/model/LngInventoryOutModel.ts b/src/api/inventory/LngInventoryOut/model/LngInventoryOutModel.ts new file mode 100644 index 0000000..f3aaf62 --- /dev/null +++ b/src/api/inventory/LngInventoryOut/model/LngInventoryOutModel.ts @@ -0,0 +1,50 @@ +import { BasicPageParams, BasicFetchResult } from '/@/api/model/baseModel'; + +/** + * @description: LngInventoryOut分页参数 模型 + */ +export interface LngInventoryOutPageParams extends BasicPageParams { + typeCode: string; + + staCode: string; + + dateOut: string; + + id: string; + + qtyGj: string; + + qtyTon: string; + + qtyM3: string; + + amount: string; +} + +/** + * @description: LngInventoryOut分页返回值模型 + */ +export interface LngInventoryOutPageModel { + id: string; + + typeCode: string; + + staCode: string; + + dateOut: string; + + qtyGj: string; + + qtyTon: string; + + qtyM3: string; + + amount: string; +} + +0; + +/** + * @description: LngInventoryOut分页返回值结构 + */ +export type LngInventoryOutPageResult = BasicFetchResult; \ No newline at end of file diff --git a/src/router/routes/basic.ts b/src/router/routes/basic.ts index 2e0a055..7d98ce5 100644 --- a/src/router/routes/basic.ts +++ b/src/router/routes/basic.ts @@ -366,6 +366,14 @@ export const PAGE_CUSTOM_ROUTE: AppRouteRecordRaw[] = [{ title: (route) => (route.query.formName || '短信记录') } }, + { + path: '/inventory/LngInventoryIn/createForm', + name: 'LngInventoryIn', + component: () => import('/@/views/inventory/LngInventoryIn/components/createForm.vue'), + meta: { + title: (route) => (route.query.formName) + } + }, ] diff --git a/src/views/contract/ContractPurLng/index.vue b/src/views/contract/ContractPurLng/index.vue index 30905a0..428d09b 100644 --- a/src/views/contract/ContractPurLng/index.vue +++ b/src/views/contract/ContractPurLng/index.vue @@ -112,7 +112,7 @@ const taskIdRef = ref(''); const visibleFlowRecordModal = ref(false); const [registerModal, { openModal }] = useModal(); - const formName='国内LNG采购合同'; + const formName=currentRoute.value.meta?.title; const [registerTable, { reload, }] = useTable({ title: '' || (formName + '列表'), api: getLngContractPage, @@ -123,7 +123,7 @@ gutter: 16, }, schemas: customSearchFormSchema, - fieldMapToTime: [], + fieldMapToTime: [['dateFrom', ['startDate', 'endDate'], 'YYYY-MM-DD']], showResetButton: false, }, beforeFetch: (params) => { diff --git a/src/views/inventory/LngInventoryIn/components/Form.vue b/src/views/inventory/LngInventoryIn/components/Form.vue new file mode 100644 index 0000000..1c5d708 --- /dev/null +++ b/src/views/inventory/LngInventoryIn/components/Form.vue @@ -0,0 +1,224 @@ + + \ No newline at end of file diff --git a/src/views/inventory/LngInventoryIn/components/LngInventoryInModal.vue b/src/views/inventory/LngInventoryIn/components/LngInventoryInModal.vue new file mode 100644 index 0000000..168dd47 --- /dev/null +++ b/src/views/inventory/LngInventoryIn/components/LngInventoryInModal.vue @@ -0,0 +1,110 @@ + + \ No newline at end of file diff --git a/src/views/inventory/LngInventoryIn/components/config.ts b/src/views/inventory/LngInventoryIn/components/config.ts new file mode 100644 index 0000000..e476925 --- /dev/null +++ b/src/views/inventory/LngInventoryIn/components/config.ts @@ -0,0 +1,556 @@ +import { FormProps, FormSchema } from '/@/components/Form'; +import { BasicColumn } from '/@/components/Table'; + +export const formConfig = { + useCustomConfig: false, +}; + +export const searchFormSchema: FormSchema[] = [ + { + field: 'dateFrom', + label: '入库日期', + component: 'RangePicker', + componentProps: { + format: 'YYYY-MM-DD', + style: { width: '100%' }, + getPopupContainer: () => document.body, + }, + }, + + { + field: 'comId', + label: '公司', + component: 'Select', + componentProps: { + showSearch: true, + optionFilterProp: 'label', + filterOption: (input: string, option: any) => { + return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0; + }, + options: [], + placeholder: '请选择', + allowClear: true, + + getPopupContainer: () => document.body, + } + }, + { + field: 'staName', + label: '接收站', + component: 'Input', + }, +]; + +export const columns: BasicColumn[] = [ + + + { + dataIndex: 'typeName', + title: '入库类型', + componentType: 'input', + align: 'left', + + sorter: true, + }, + { + dataIndex: 'ssNo', + title: '船期编号', + componentType: 'input', + align: 'left', + + sorter: true, + }, + { + dataIndex: 'staName', + title: '接收站', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'dateIn', + title: '入库日期', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'qtyMmbtu', + title: '入库热值(MMBtu)', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'qtyTon', + title: '入库重量(吨)', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'qtyM3L', + title: '入库体积(标方)', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'qtyM3', + title: '入库体积(方)', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'qtyGj', + title: '入库热值(吉焦)', + componentType: 'input', + align: 'left', + + sorter: true, + }, + { + dataIndex: 'kName', + title: '合同', + componentType: 'input', + align: 'left', + + sorter: true, + }, + { + dataIndex: 'suName', + title: '供应商', + componentType: 'input', + align: 'left', + + sorter: true, + }, + { + dataIndex: 'comName', + title: '公司', + componentType: 'input', + 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: 'ac1418db9f3f4c6f8914a5e8efe5434d', + field: 'id', + label: 'id', + type: 'input', + component: 'Input', + colProps: { span: 24 }, + defaultValue: '', + componentProps: { + width: '100%', + span: '', + defaultValue: '', + labelWidthMode: 'fix', + labelFixWidth: 120, + responsive: false, + respNewRow: false, + placeholder: '请输入id', + prefix: '', + suffix: '', + addonBefore: '', + addonAfter: '', + disabled: false, + allowClear: false, + showLabel: true, + required: false, + rules: [], + events: {}, + isSave: false, + isShow: true, + scan: false, + style: { width: '100%' }, + }, + }, + { + key: '466d90ea02e44444b372eb326c6fa5cc', + field: 'typeCode', + 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: '468932b802e349c6a860b3f4f11bedd2', + field: 'staCode', + 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: 'f6a0ca29c2de4e1c8f4cfdc1cb2589e3', + field: 'dateIn', + 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: 'aa14d4672e9f4d799ac9df94222bd34c', + field: 'qtyUnloadMmbtu', + label: '入库热值(MMBtu)', + type: 'input', + component: 'Input', + colProps: { span: 24 }, + defaultValue: '', + componentProps: { + width: '100%', + span: '', + defaultValue: '', + labelWidthMode: 'fix', + labelFixWidth: 120, + responsive: false, + respNewRow: false, + placeholder: '请输入入库热值(MMBtu)', + prefix: '', + suffix: '', + addonBefore: '', + addonAfter: '', + disabled: false, + allowClear: false, + showLabel: true, + required: false, + rules: [], + events: {}, + isSave: false, + isShow: true, + scan: false, + style: { width: '100%' }, + }, + }, + { + key: 'bfa65959cbd0461a883b9e68312af2ed', + field: 'qtyUnloadTon', + 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: '2a8f62a8ebda4ff989fa25d8d54e7e09', + field: 'qtyUnloadM3L', + 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: 'd8b3ed3faa4447429d21e02b7cd7e04a', + field: 'qtyUnloadM3', + 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: '2207b761f3174315b7aa1210e46520ad', + field: 'qtyUnloadGj', + 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: 'd0586501498a4919af8468af574fdd83', + field: 'suCode', + 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%' }, + }, + }, + ], + showActionButtonGroup: false, + buttonLocation: 'center', + actionColOptions: { span: 24 }, + showResetButton: false, + showSubmitButton: false, + hiddenComponent: [], +}; \ No newline at end of file diff --git a/src/views/inventory/LngInventoryIn/components/createForm.vue b/src/views/inventory/LngInventoryIn/components/createForm.vue new file mode 100644 index 0000000..8636e69 --- /dev/null +++ b/src/views/inventory/LngInventoryIn/components/createForm.vue @@ -0,0 +1,529 @@ + + + + + diff --git a/src/views/inventory/LngInventoryIn/components/workflowPermission.ts b/src/views/inventory/LngInventoryIn/components/workflowPermission.ts new file mode 100644 index 0000000..b4e570d --- /dev/null +++ b/src/views/inventory/LngInventoryIn/components/workflowPermission.ts @@ -0,0 +1,152 @@ +export const permissionList = [ + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: 'id', + fieldId: 'id', + isSubTable: false, + showChildren: true, + type: 'input', + key: 'ac1418db9f3f4c6f8914a5e8efe5434d', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '入库类型', + fieldId: 'typeCode', + isSubTable: false, + showChildren: true, + type: 'input', + key: '466d90ea02e44444b372eb326c6fa5cc', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '接收站', + fieldId: 'staCode', + isSubTable: false, + showChildren: true, + type: 'input', + key: '468932b802e349c6a860b3f4f11bedd2', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '入库日期', + fieldId: 'dateIn', + isSubTable: false, + showChildren: true, + type: 'input', + key: 'f6a0ca29c2de4e1c8f4cfdc1cb2589e3', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '入库热值(MMBtu)', + fieldId: 'qtyUnloadMmbtu', + isSubTable: false, + showChildren: true, + type: 'input', + key: 'aa14d4672e9f4d799ac9df94222bd34c', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '入库重量(吨)', + fieldId: 'qtyUnloadTon', + isSubTable: false, + showChildren: true, + type: 'input', + key: 'bfa65959cbd0461a883b9e68312af2ed', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '入库体积(标方)', + fieldId: 'qtyUnloadM3L', + isSubTable: false, + showChildren: true, + type: 'input', + key: '2a8f62a8ebda4ff989fa25d8d54e7e09', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '入库体积(方)', + fieldId: 'qtyUnloadM3', + isSubTable: false, + showChildren: true, + type: 'input', + key: 'd8b3ed3faa4447429d21e02b7cd7e04a', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '入库热值(吉焦)', + fieldId: 'qtyUnloadGj', + isSubTable: false, + showChildren: true, + type: 'input', + key: '2207b761f3174315b7aa1210e46520ad', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '供应商', + fieldId: 'suCode', + isSubTable: false, + showChildren: true, + type: 'input', + key: 'd0586501498a4919af8468af574fdd83', + children: [], + }, +]; \ No newline at end of file diff --git a/src/views/inventory/LngInventoryIn/index.vue b/src/views/inventory/LngInventoryIn/index.vue new file mode 100644 index 0000000..486bace --- /dev/null +++ b/src/views/inventory/LngInventoryIn/index.vue @@ -0,0 +1,327 @@ + + + \ No newline at end of file diff --git a/src/views/inventory/LngInventoryOut/components/Form.vue b/src/views/inventory/LngInventoryOut/components/Form.vue new file mode 100644 index 0000000..574be40 --- /dev/null +++ b/src/views/inventory/LngInventoryOut/components/Form.vue @@ -0,0 +1,224 @@ + + \ No newline at end of file diff --git a/src/views/inventory/LngInventoryOut/components/LngInventoryOutModal.vue b/src/views/inventory/LngInventoryOut/components/LngInventoryOutModal.vue new file mode 100644 index 0000000..168dd47 --- /dev/null +++ b/src/views/inventory/LngInventoryOut/components/LngInventoryOutModal.vue @@ -0,0 +1,110 @@ + + \ No newline at end of file diff --git a/src/views/inventory/LngInventoryOut/components/config.ts b/src/views/inventory/LngInventoryOut/components/config.ts new file mode 100644 index 0000000..818005d --- /dev/null +++ b/src/views/inventory/LngInventoryOut/components/config.ts @@ -0,0 +1,473 @@ +import { FormProps, FormSchema } from '/@/components/Form'; +import { BasicColumn } from '/@/components/Table'; + +export const formConfig = { + useCustomConfig: false, +}; + +export const searchFormSchema: FormSchema[] = [ + { + field: 'dateFrom', + label: '出库日期', + component: 'RangePicker', + componentProps: { + format: 'YYYY-MM-DD', + style: { width: '100%' }, + getPopupContainer: () => document.body, + }, + }, + + { + field: 'comId', + label: '公司', + component: 'Select', + componentProps: { + showSearch: true, + optionFilterProp: 'label', + filterOption: (input: string, option: any) => { + return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0; + }, + options: [], + placeholder: '请选择', + allowClear: true, + + getPopupContainer: () => document.body, + } + }, + { + field: 'staName', + label: '接收站', + component: 'Input', + }, +]; + +export const columns: BasicColumn[] = [ + + { + dataIndex: 'typeName', + title: '出库类型', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'staName', + title: '接收站', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'dateOut', + title: '出库日期', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'qtyGj', + title: '出库量(吉焦)', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'qtyTon', + title: '出库量(吨)', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'qtyM3', + title: '出库量(方)', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'amount', + title: '出库金额', + componentType: 'input', + align: 'left', + + sorter: true, + }, + { + dataIndex: 'kName', + title: '销售合同', + componentType: 'input', + align: 'left', + + sorter: true, + }, + { + dataIndex: 'cuName', + title: '客户名称', + componentType: 'input', + align: 'left', + + sorter: true, + }, + { + dataIndex: 'comName', + title: '公司名称', + componentType: 'input', + 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: '31d714b2242944c2b841b67eb3346877', + field: 'id', + label: 'id', + type: 'input', + component: 'Input', + colProps: { span: 24 }, + defaultValue: '', + componentProps: { + width: '100%', + span: '', + defaultValue: '', + labelWidthMode: 'fix', + labelFixWidth: 120, + responsive: false, + respNewRow: false, + placeholder: '请输入id', + prefix: '', + suffix: '', + addonBefore: '', + addonAfter: '', + disabled: false, + allowClear: false, + showLabel: true, + required: false, + rules: [], + events: {}, + isSave: false, + isShow: true, + scan: false, + style: { width: '100%' }, + }, + }, + { + key: '4241e590fd0e4a40ac09928d19ccdd49', + field: 'typeCode', + 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: '7adf7ffe4cc147cd9cc9dc3a13ecf1ef', + field: 'staCode', + 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: 'b6775a5591a343ae98a6aab8f7ea43a4', + field: 'dateOut', + 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: '918370e0dca4403e85270a20c9bc866e', + field: 'qtyGj', + 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: 'e35ba05e28004b649b15d1a03a077d3a', + field: 'qtyTon', + 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: '87b5481c8c22422f84f7d5800b0158ba', + field: 'qtyM3', + 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: 'cad682d905e24396b00ed2f1178d6ac3', + field: 'amount', + 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%' }, + }, + }, + ], + showActionButtonGroup: false, + buttonLocation: 'center', + actionColOptions: { span: 24 }, + showResetButton: false, + showSubmitButton: false, + hiddenComponent: [], +}; \ No newline at end of file diff --git a/src/views/inventory/LngInventoryOut/components/workflowPermission.ts b/src/views/inventory/LngInventoryOut/components/workflowPermission.ts new file mode 100644 index 0000000..120fb0d --- /dev/null +++ b/src/views/inventory/LngInventoryOut/components/workflowPermission.ts @@ -0,0 +1,122 @@ +export const permissionList = [ + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: 'id', + fieldId: 'id', + isSubTable: false, + showChildren: true, + type: 'input', + key: '31d714b2242944c2b841b67eb3346877', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '出库类型', + fieldId: 'typeCode', + isSubTable: false, + showChildren: true, + type: 'input', + key: '4241e590fd0e4a40ac09928d19ccdd49', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '接收站', + fieldId: 'staCode', + isSubTable: false, + showChildren: true, + type: 'input', + key: '7adf7ffe4cc147cd9cc9dc3a13ecf1ef', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '出库日期', + fieldId: 'dateOut', + isSubTable: false, + showChildren: true, + type: 'input', + key: 'b6775a5591a343ae98a6aab8f7ea43a4', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '出库量 (吉焦)', + fieldId: 'qtyGj', + isSubTable: false, + showChildren: true, + type: 'input', + key: '918370e0dca4403e85270a20c9bc866e', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '出库量(吨)', + fieldId: 'qtyTon', + isSubTable: false, + showChildren: true, + type: 'input', + key: 'e35ba05e28004b649b15d1a03a077d3a', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '出库量(方)', + fieldId: 'qtyM3', + isSubTable: false, + showChildren: true, + type: 'input', + key: '87b5481c8c22422f84f7d5800b0158ba', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '出库金额', + fieldId: 'amount', + isSubTable: false, + showChildren: true, + type: 'input', + key: 'cad682d905e24396b00ed2f1178d6ac3', + children: [], + }, +]; \ No newline at end of file diff --git a/src/views/inventory/LngInventoryOut/index.vue b/src/views/inventory/LngInventoryOut/index.vue new file mode 100644 index 0000000..45259e2 --- /dev/null +++ b/src/views/inventory/LngInventoryOut/index.vue @@ -0,0 +1,327 @@ + + + \ No newline at end of file