From 6671292fd404c18008612d101597ccfd1b8a24c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=98huanghaiixia=E2=80=99?= <980486410@.com> Date: Wed, 31 Dec 2025 10:10:53 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AE=A1=E9=81=93=E6=B0=94=E9=87=87=E8=B4=AD?= =?UTF-8?q?=E9=94=80=E4=BF=A1---=E8=A1=A8=E5=8D=95=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/contract/ContractPurPng/index.ts | 89 ++ .../model/ContractPurPngModel.ts | 62 ++ src/api/contract/ContractSales/index.ts | 89 ++ .../ContractSales/model/ContractSalesModel.ts | 62 ++ .../approve/Appro/components/createForm.vue | 9 +- .../ContractFact/components/createForm.vue | 17 +- .../components/ContractPurPngModal.vue | 110 +++ .../ContractPurPng/components/Form.vue | 224 +++++ .../ContractPurPng/components/config.ts | 895 +++++++++++++++++ .../components/workflowPermission.ts | 312 ++++++ src/views/contract/ContractPurPng/index.vue | 405 ++++++++ .../components/ContractSalesModal.vue | 110 +++ .../ContractSales/components/Form.vue | 224 +++++ .../ContractSales/components/config.ts | 911 ++++++++++++++++++ .../components/workflowPermission.ts | 312 ++++++ src/views/contract/ContractSales/index.vue | 405 ++++++++ .../sales/Customer/components/createForm.vue | 21 +- .../ScoreCustomer/components/createForm.vue | 13 +- .../ScoreSupplier/components/createForm.vue | 13 +- .../Supplier/components/createForm.vue | 21 +- 20 files changed, 4260 insertions(+), 44 deletions(-) create mode 100644 src/api/contract/ContractPurPng/index.ts create mode 100644 src/api/contract/ContractPurPng/model/ContractPurPngModel.ts create mode 100644 src/api/contract/ContractSales/index.ts create mode 100644 src/api/contract/ContractSales/model/ContractSalesModel.ts create mode 100644 src/views/contract/ContractPurPng/components/ContractPurPngModal.vue create mode 100644 src/views/contract/ContractPurPng/components/Form.vue create mode 100644 src/views/contract/ContractPurPng/components/config.ts create mode 100644 src/views/contract/ContractPurPng/components/workflowPermission.ts create mode 100644 src/views/contract/ContractPurPng/index.vue create mode 100644 src/views/contract/ContractSales/components/ContractSalesModal.vue create mode 100644 src/views/contract/ContractSales/components/Form.vue create mode 100644 src/views/contract/ContractSales/components/config.ts create mode 100644 src/views/contract/ContractSales/components/workflowPermission.ts create mode 100644 src/views/contract/ContractSales/index.vue diff --git a/src/api/contract/ContractPurPng/index.ts b/src/api/contract/ContractPurPng/index.ts new file mode 100644 index 0000000..d2895c0 --- /dev/null +++ b/src/api/contract/ContractPurPng/index.ts @@ -0,0 +1,89 @@ +import { LngContractPageModel, LngContractPageParams, LngContractPageResult } from './model/ContractPurPngModel'; +import { defHttp } from '/@/utils/http/axios'; +import { ErrorMessageMode } from '/#/axios'; + +enum Api { + Page = '/contract/contractPurPng/page', + List = '/contract/contractPurPng/list', + Info = '/contract/contractPurPng/info', + LngContract = '/contract/contractPurPng', + + + + +} + +/** + * @description: 查询LngContract分页列表 + */ +export async function getLngContractPage(params: LngContractPageParams, mode: ErrorMessageMode = 'modal') { + return defHttp.get( + { + url: Api.Page, + params, + }, + { + errorMessageMode: mode, + }, + ); +} + +/** + * @description: 获取LngContract信息 + */ +export async function getLngContract(id: String, mode: ErrorMessageMode = 'modal') { + return defHttp.get( + { + url: Api.Info, + params: { id }, + }, + { + errorMessageMode: mode, + }, + ); +} + +/** + * @description: 新增LngContract + */ +export async function addLngContract(lngContract: Recordable, mode: ErrorMessageMode = 'modal') { + return defHttp.post( + { + url: Api.LngContract, + params: lngContract, + }, + { + errorMessageMode: mode, + }, + ); +} + +/** + * @description: 更新LngContract + */ +export async function updateLngContract(lngContract: Recordable, mode: ErrorMessageMode = 'modal') { + return defHttp.put( + { + url: Api.LngContract, + params: lngContract, + }, + { + errorMessageMode: mode, + }, + ); +} + +/** + * @description: 删除LngContract(批量删除) + */ +export async function deleteLngContract(ids: string[], mode: ErrorMessageMode = 'modal') { + return defHttp.delete( + { + url: Api.LngContract, + data: ids, + }, + { + errorMessageMode: mode, + }, + ); +} \ No newline at end of file diff --git a/src/api/contract/ContractPurPng/model/ContractPurPngModel.ts b/src/api/contract/ContractPurPng/model/ContractPurPngModel.ts new file mode 100644 index 0000000..ae885e8 --- /dev/null +++ b/src/api/contract/ContractPurPng/model/ContractPurPngModel.ts @@ -0,0 +1,62 @@ +import { BasicPageParams, BasicFetchResult } from '/@/api/model/baseModel'; + +/** + * @description: LngContract分页参数 模型 + */ +export interface LngContractPageParams extends BasicPageParams { + id: string; + + kNo: string; + + kName: string; + + cpName: string; + + dateFrom: string; + + dateTo: string; + + approCode: string; + + cpTableName: string; + + onlineSign: string; + + comId: string; + + note: string; +} + +/** + * @description: LngContract分页返回值模型 + */ +export interface LngContractPageModel { + id: string; + + kNo: string; + + kName: string; + + cpName: string; + + dateFrom: string; + + dateTo: string; + + approCode: string; + + cpTableName: string; + + onlineSign: string; + + comId: string; + + note: string; +} + +0; + +/** + * @description: LngContract分页返回值结构 + */ +export type LngContractPageResult = BasicFetchResult; \ No newline at end of file diff --git a/src/api/contract/ContractSales/index.ts b/src/api/contract/ContractSales/index.ts new file mode 100644 index 0000000..8d39f87 --- /dev/null +++ b/src/api/contract/ContractSales/index.ts @@ -0,0 +1,89 @@ +import { LngContractPageModel, LngContractPageParams, LngContractPageResult } from './model/ContractSalesModel'; +import { defHttp } from '/@/utils/http/axios'; +import { ErrorMessageMode } from '/#/axios'; + +enum Api { + Page = '/contract/contractSales/page', + List = '/contract/contractSales/list', + Info = '/contract/contractSales/info', + LngContract = '/contract/contractSales', + + + + +} + +/** + * @description: 查询LngContract分页列表 + */ +export async function getLngContractPage(params: LngContractPageParams, mode: ErrorMessageMode = 'modal') { + return defHttp.get( + { + url: Api.Page, + params, + }, + { + errorMessageMode: mode, + }, + ); +} + +/** + * @description: 获取LngContract信息 + */ +export async function getLngContract(id: String, mode: ErrorMessageMode = 'modal') { + return defHttp.get( + { + url: Api.Info, + params: { id }, + }, + { + errorMessageMode: mode, + }, + ); +} + +/** + * @description: 新增LngContract + */ +export async function addLngContract(lngContract: Recordable, mode: ErrorMessageMode = 'modal') { + return defHttp.post( + { + url: Api.LngContract, + params: lngContract, + }, + { + errorMessageMode: mode, + }, + ); +} + +/** + * @description: 更新LngContract + */ +export async function updateLngContract(lngContract: Recordable, mode: ErrorMessageMode = 'modal') { + return defHttp.put( + { + url: Api.LngContract, + params: lngContract, + }, + { + errorMessageMode: mode, + }, + ); +} + +/** + * @description: 删除LngContract(批量删除) + */ +export async function deleteLngContract(ids: string[], mode: ErrorMessageMode = 'modal') { + return defHttp.delete( + { + url: Api.LngContract, + data: ids, + }, + { + errorMessageMode: mode, + }, + ); +} \ No newline at end of file diff --git a/src/api/contract/ContractSales/model/ContractSalesModel.ts b/src/api/contract/ContractSales/model/ContractSalesModel.ts new file mode 100644 index 0000000..e0e48ce --- /dev/null +++ b/src/api/contract/ContractSales/model/ContractSalesModel.ts @@ -0,0 +1,62 @@ +import { BasicPageParams, BasicFetchResult } from '/@/api/model/baseModel'; + +/** + * @description: LngContract分页参数 模型 + */ +export interface LngContractPageParams extends BasicPageParams { + id: string; + + kNo: string; + + kName: string; + + cpName: string; + + dateFrom: string; + + dateTo: string; + + approCode: string; + + onlineSign: string; + + cpTableName: string; + + comId: string; + + note: string; +} + +/** + * @description: LngContract分页返回值模型 + */ +export interface LngContractPageModel { + id: string; + + kNo: string; + + kName: string; + + cpName: string; + + dateFrom: string; + + dateTo: string; + + approCode: string; + + onlineSign: string; + + cpTableName: string; + + comId: string; + + note: string; +} + +0; + +/** + * @description: LngContract分页返回值结构 + */ +export type LngContractPageResult = BasicFetchResult; \ No newline at end of file diff --git a/src/views/approve/Appro/components/createForm.vue b/src/views/approve/Appro/components/createForm.vue index 63d6040..2637a9c 100644 --- a/src/views/approve/Appro/components/createForm.vue +++ b/src/views/approve/Appro/components/createForm.vue @@ -2,7 +2,7 @@
- + @@ -81,10 +81,10 @@ - - + + - +
@@ -93,6 +93,7 @@ \ No newline at end of file diff --git a/src/views/contract/ContractPurPng/components/Form.vue b/src/views/contract/ContractPurPng/components/Form.vue new file mode 100644 index 0000000..bfaacc7 --- /dev/null +++ b/src/views/contract/ContractPurPng/components/Form.vue @@ -0,0 +1,224 @@ + + \ No newline at end of file diff --git a/src/views/contract/ContractPurPng/components/config.ts b/src/views/contract/ContractPurPng/components/config.ts new file mode 100644 index 0000000..b1dd32b --- /dev/null +++ b/src/views/contract/ContractPurPng/components/config.ts @@ -0,0 +1,895 @@ +import { FormProps, FormSchema } from '/@/components/Form'; +import { BasicColumn } from '/@/components/Table'; + +export const formConfig = { + useCustomConfig: false, +}; + +export const searchFormSchema: FormSchema[] = [ + { + field: 'id', + label: 'id', + component: 'Input', + }, + { + field: 'kNo', + label: '合同号', + component: 'Input', + }, + { + field: 'kName', + label: '合同名称', + component: 'Input', + }, + { + field: 'cpName', + label: '供应商', + component: 'Input', + }, + { + field: 'dateFrom', + label: '有效期开始', + component: 'Input', + }, + { + field: 'dateTo', + label: '有效期结束', + component: 'Input', + }, + { + field: 'approCode', + label: '状态', + component: 'Input', + }, + { + field: 'cpTableName', + label: '上载点', + component: 'Input', + }, + { + field: 'onlineSign', + label: '是否托运', + component: 'Input', + }, + { + field: 'comId', + label: '合同主体', + component: 'Input', + }, + { + field: 'note', + label: '备注', + component: 'Input', + }, +]; + +export const columns: BasicColumn[] = [ + { + dataIndex: 'id', + title: 'id', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'kNo', + title: '合同号', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'kName', + title: '合同名称', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'cpName', + title: '供应商', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'dateFrom', + title: '有效期开始', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'dateTo', + title: '有效期结束', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'approCode', + title: '状态', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'cpTableName', + title: '上载点', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'onlineSign', + title: '是否托运', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'comId', + title: '合同主体', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'note', + 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: '7f46186175044392ab956cde4d9b5581', + 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: '8757ad130c2841b7ac1ae0c9a5f02159', + field: 'kNo', + 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: 'ef6ac701abaf481daead54ca8b8731fb', + field: 'kName', + 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: '9fa7ca6233c040d89c344476735216e8', + field: 'cpName', + 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: '43c728cbf91c49dc94eaf543168f3a30', + field: 'dateFrom', + 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: 'ecd25681d49d4427a7b18e75c94ca14e', + field: 'dateTo', + 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: '7da0d507d0984a68b71ea70b9d225498', + field: 'approCode', + 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: '704a068162a7472ca9ab54cedac0c0c2', + field: 'cpTableName', + 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: '48a8b10dc37b4a27b61dea9493516ff3', + field: 'onlineSign', + 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: '325aa21bc1e3433d9e48f4d2a93eff6e', + field: 'comId', + 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: 'f405d77930ff464fadb4acf421d54251', + field: 'note', + 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: '13f6e9d9d4694d2d92d34605deb72747', + label: '表格组件', + field: 'lngContractPurPngPointList', + type: 'form', + component: 'SubForm', + required: true, + colProps: { span: 24 }, + componentProps: { + mainKey: 'lngContractPurPngPointList', + columns: [ + { + key: 'aa7d831cc606408d957cda12b0255e81', + title: '单行文本', + dataIndex: 'pointUpCode', + componentType: 'Input', + 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, + }, + }, + { title: '操作', key: 'action', fixed: 'right', width: '50px' }, + ], + span: '24', + preloadType: 'api', + apiConfig: {}, + itemId: '', + dicOptions: [], + useSelectButton: false, + buttonName: '选择数据', + showLabel: true, + showComponentBorder: true, + showFormBorder: true, + showIndex: false, + isShow: true, + multipleHeads: [], + }, + }, + { + key: 'd2f33f4070554aa2b15b5a8d76d4b393', + label: '表格组件', + field: 'lngContractPurPngQtyList', + type: 'form', + component: 'SubForm', + required: true, + colProps: { span: 24 }, + componentProps: { + mainKey: 'lngContractPurPngQtyList', + columns: [ + { + key: '3e870624611e4de4933c5327fd8811a4', + title: '单行文本', + dataIndex: 'qtyGjMonth', + componentType: 'Input', + 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, + }, + }, + { title: '操作', key: 'action', fixed: 'right', width: '50px' }, + ], + span: '24', + preloadType: 'api', + apiConfig: {}, + itemId: '', + dicOptions: [], + useSelectButton: false, + buttonName: '选择数据', + showLabel: true, + showComponentBorder: true, + showFormBorder: true, + showIndex: false, + isShow: true, + multipleHeads: [], + }, + }, + { + key: '7b3e96703ada428a87898e65d94ae153', + label: '表格组件', + field: 'lngContractApproRelList', + type: 'form', + component: 'SubForm', + required: true, + colProps: { span: 24 }, + componentProps: { + mainKey: 'lngContractApproRelList', + columns: [ + { + key: '135003a1cd9649c3b1b6c5063995c617', + title: '单行文本', + dataIndex: 'tableName', + componentType: 'Input', + 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, + }, + }, + { title: '操作', key: 'action', fixed: 'right', width: '50px' }, + ], + span: '24', + preloadType: 'api', + apiConfig: {}, + itemId: '', + dicOptions: [], + useSelectButton: false, + buttonName: '选择数据', + showLabel: true, + showComponentBorder: true, + showFormBorder: true, + showIndex: false, + isShow: true, + multipleHeads: [], + }, + }, + { + key: '724114e500ea42cc8aa5445872bbc901', + label: '表格组件', + field: 'lngContractPurPngList', + type: 'form', + component: 'SubForm', + required: true, + colProps: { span: 24 }, + componentProps: { + mainKey: 'lngContractPurPngList', + columns: [ + { + key: 'f00bdc45688f4a44aeec8000f9dcd7d4', + title: '单行文本', + dataIndex: 'prcTypeCode', + componentType: 'Input', + 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, + }, + }, + { title: '操作', key: 'action', fixed: 'right', width: '50px' }, + ], + span: '24', + preloadType: 'api', + apiConfig: {}, + itemId: '', + dicOptions: [], + useSelectButton: false, + buttonName: '选择数据', + showLabel: true, + showComponentBorder: true, + showFormBorder: true, + showIndex: false, + isShow: true, + multipleHeads: [], + }, + }, + { + key: 'a8fc28fed57147fda5be682d87d59a9a', + label: '表格组件', + field: 'lngContractFactRelList', + type: 'form', + component: 'SubForm', + required: true, + colProps: { span: 24 }, + componentProps: { + mainKey: 'lngContractFactRelList', + columns: [ + { + key: '68850e88cbe74433b2553efc1928fe02', + title: '单行文本', + dataIndex: 'sort', + componentType: 'Input', + 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, + }, + }, + { title: '操作', key: 'action', fixed: 'right', width: '50px' }, + ], + span: '24', + preloadType: 'api', + apiConfig: {}, + itemId: '', + dicOptions: [], + useSelectButton: false, + buttonName: '选择数据', + showLabel: true, + showComponentBorder: true, + showFormBorder: true, + showIndex: false, + isShow: true, + multipleHeads: [], + }, + }, + ], + showActionButtonGroup: false, + buttonLocation: 'center', + actionColOptions: { span: 24 }, + showResetButton: false, + showSubmitButton: false, + hiddenComponent: [], +}; \ No newline at end of file diff --git a/src/views/contract/ContractPurPng/components/workflowPermission.ts b/src/views/contract/ContractPurPng/components/workflowPermission.ts new file mode 100644 index 0000000..05e1549 --- /dev/null +++ b/src/views/contract/ContractPurPng/components/workflowPermission.ts @@ -0,0 +1,312 @@ +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: '7f46186175044392ab956cde4d9b5581', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '合同号', + fieldId: 'kNo', + isSubTable: false, + showChildren: true, + type: 'input', + key: '8757ad130c2841b7ac1ae0c9a5f02159', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '合同名称', + fieldId: 'kName', + isSubTable: false, + showChildren: true, + type: 'input', + key: 'ef6ac701abaf481daead54ca8b8731fb', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '供应商', + fieldId: 'cpName', + isSubTable: false, + showChildren: true, + type: 'input', + key: '9fa7ca6233c040d89c344476735216e8', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '有效期开始', + fieldId: 'dateFrom', + isSubTable: false, + showChildren: true, + type: 'input', + key: '43c728cbf91c49dc94eaf543168f3a30', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '有效期结束', + fieldId: 'dateTo', + isSubTable: false, + showChildren: true, + type: 'input', + key: 'ecd25681d49d4427a7b18e75c94ca14e', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '状态', + fieldId: 'approCode', + isSubTable: false, + showChildren: true, + type: 'input', + key: '7da0d507d0984a68b71ea70b9d225498', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '上载点', + fieldId: 'cpTableName', + isSubTable: false, + showChildren: true, + type: 'input', + key: '704a068162a7472ca9ab54cedac0c0c2', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '是否托运', + fieldId: 'onlineSign', + isSubTable: false, + showChildren: true, + type: 'input', + key: '48a8b10dc37b4a27b61dea9493516ff3', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '合同主体', + fieldId: 'comId', + isSubTable: false, + showChildren: true, + type: 'input', + key: '325aa21bc1e3433d9e48f4d2a93eff6e', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '备注', + fieldId: 'note', + isSubTable: false, + showChildren: true, + type: 'input', + key: 'f405d77930ff464fadb4acf421d54251', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSubTable: true, + showChildren: false, + tableName: 'lngContractPurPngPointList', + fieldName: '表格组件', + fieldId: 'lngContractPurPngPointList', + type: 'form', + key: '13f6e9d9d4694d2d92d34605deb72747', + children: [ + { + required: true, + view: true, + edit: true, + disabled: false, + isSubTable: true, + isSaveTable: false, + showChildren: false, + tableName: 'lngContractPurPngPointList', + fieldName: '单行文本', + fieldId: 'pointUpCode', + key: 'aa7d831cc606408d957cda12b0255e81', + children: [], + }, + ], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSubTable: true, + showChildren: false, + tableName: 'lngContractPurPngQtyList', + fieldName: '表格组件', + fieldId: 'lngContractPurPngQtyList', + type: 'form', + key: 'd2f33f4070554aa2b15b5a8d76d4b393', + children: [ + { + required: true, + view: true, + edit: true, + disabled: false, + isSubTable: true, + isSaveTable: false, + showChildren: false, + tableName: 'lngContractPurPngQtyList', + fieldName: '单行文本', + fieldId: 'qtyGjMonth', + key: '3e870624611e4de4933c5327fd8811a4', + children: [], + }, + ], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSubTable: true, + showChildren: false, + tableName: 'lngContractApproRelList', + fieldName: '表格组件', + fieldId: 'lngContractApproRelList', + type: 'form', + key: '7b3e96703ada428a87898e65d94ae153', + children: [ + { + required: true, + view: true, + edit: true, + disabled: false, + isSubTable: true, + isSaveTable: false, + showChildren: false, + tableName: 'lngContractApproRelList', + fieldName: '单行文本', + fieldId: 'tableName', + key: '135003a1cd9649c3b1b6c5063995c617', + children: [], + }, + ], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSubTable: true, + showChildren: false, + tableName: 'lngContractPurPngList', + fieldName: '表格组件', + fieldId: 'lngContractPurPngList', + type: 'form', + key: '724114e500ea42cc8aa5445872bbc901', + children: [ + { + required: true, + view: true, + edit: true, + disabled: false, + isSubTable: true, + isSaveTable: false, + showChildren: false, + tableName: 'lngContractPurPngList', + fieldName: '单行文本', + fieldId: 'prcTypeCode', + key: 'f00bdc45688f4a44aeec8000f9dcd7d4', + children: [], + }, + ], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSubTable: true, + showChildren: false, + tableName: 'lngContractFactRelList', + fieldName: '表格组件', + fieldId: 'lngContractFactRelList', + type: 'form', + key: 'a8fc28fed57147fda5be682d87d59a9a', + children: [ + { + required: true, + view: true, + edit: true, + disabled: false, + isSubTable: true, + isSaveTable: false, + showChildren: false, + tableName: 'lngContractFactRelList', + fieldName: '单行文本', + fieldId: 'sort', + key: '68850e88cbe74433b2553efc1928fe02', + children: [], + }, + ], + }, +]; \ No newline at end of file diff --git a/src/views/contract/ContractPurPng/index.vue b/src/views/contract/ContractPurPng/index.vue new file mode 100644 index 0000000..4f6b3a7 --- /dev/null +++ b/src/views/contract/ContractPurPng/index.vue @@ -0,0 +1,405 @@ + + + \ No newline at end of file diff --git a/src/views/contract/ContractSales/components/ContractSalesModal.vue b/src/views/contract/ContractSales/components/ContractSalesModal.vue new file mode 100644 index 0000000..168dd47 --- /dev/null +++ b/src/views/contract/ContractSales/components/ContractSalesModal.vue @@ -0,0 +1,110 @@ + + \ No newline at end of file diff --git a/src/views/contract/ContractSales/components/Form.vue b/src/views/contract/ContractSales/components/Form.vue new file mode 100644 index 0000000..f6fd2e8 --- /dev/null +++ b/src/views/contract/ContractSales/components/Form.vue @@ -0,0 +1,224 @@ + + \ No newline at end of file diff --git a/src/views/contract/ContractSales/components/config.ts b/src/views/contract/ContractSales/components/config.ts new file mode 100644 index 0000000..0cf64a2 --- /dev/null +++ b/src/views/contract/ContractSales/components/config.ts @@ -0,0 +1,911 @@ +import { FormProps, FormSchema } from '/@/components/Form'; +import { BasicColumn } from '/@/components/Table'; + +export const formConfig = { + useCustomConfig: false, +}; + +export const searchFormSchema: FormSchema[] = [ + { + field: 'id', + label: 'id', + component: 'Input', + }, + { + field: 'kNo', + label: '合同号', + component: 'Input', + }, + { + field: 'kName', + label: '合同名称', + component: 'Input', + }, + { + field: 'cpName', + label: '客户', + component: 'Input', + }, + { + field: 'dateFrom', + label: '有效期开始', + component: 'Input', + }, + { + field: 'dateTo', + label: '有效期结束', + component: 'Input', + }, + { + field: 'approCode', + label: '状态', + component: 'Input', + }, + { + field: 'onlineSign', + label: '交割点', + component: 'Input', + }, + { + field: 'cpTableName', + label: '是否托运', + component: 'Input', + }, + { + field: 'comId', + label: '合同主体', + component: 'Input', + }, + { + field: 'note', + label: '备注', + component: 'Input', + }, +]; + +export const columns: BasicColumn[] = [ + { + dataIndex: 'id', + title: 'id', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'kNo', + title: '合同号', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'kName', + title: '合同名称', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'cpName', + title: '客户', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'dateFrom', + title: '有效期开始', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'dateTo', + title: '有效期结束', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'approCode', + title: '状态', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'onlineSign', + title: '交割点', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'cpTableName', + title: '是否托运', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'comId', + title: '合同主体', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'note', + 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: '2b76620f1fec4cba98e93085a2b2c2b3', + 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', + maxlength: null, + prefix: '', + suffix: '', + addonBefore: '', + addonAfter: '', + disabled: false, + allowClear: false, + showLabel: true, + required: false, + rules: [], + events: {}, + isSave: false, + isShow: true, + scan: false, + style: { width: '100%' }, + }, + }, + { + key: 'f410996025d94347a8e8a883676758c9', + field: 'kNo', + label: '合同号', + type: 'input', + component: 'Input', + colProps: { span: 24 }, + defaultValue: '', + componentProps: { + width: '100%', + span: '', + defaultValue: '', + labelWidthMode: 'fix', + labelFixWidth: 120, + responsive: false, + respNewRow: false, + placeholder: '请输入合同号', + maxlength: null, + prefix: '', + suffix: '', + addonBefore: '', + addonAfter: '', + disabled: false, + allowClear: false, + showLabel: true, + required: false, + rules: [], + events: {}, + isSave: false, + isShow: true, + scan: false, + style: { width: '100%' }, + }, + }, + { + key: 'b8d3454317814d1ca8df730367547d3b', + field: 'kName', + label: '合同名称', + type: 'input', + component: 'Input', + colProps: { span: 24 }, + defaultValue: '', + componentProps: { + width: '100%', + span: '', + defaultValue: '', + labelWidthMode: 'fix', + labelFixWidth: 120, + responsive: false, + respNewRow: false, + placeholder: '请输入合同名称', + maxlength: null, + prefix: '', + suffix: '', + addonBefore: '', + addonAfter: '', + disabled: false, + allowClear: false, + showLabel: true, + required: false, + rules: [], + events: {}, + isSave: false, + isShow: true, + scan: false, + style: { width: '100%' }, + }, + }, + { + key: '573defdd970647d28bc08f2739025842', + field: 'cpName', + label: '客户', + type: 'input', + component: 'Input', + colProps: { span: 24 }, + defaultValue: '', + componentProps: { + width: '100%', + span: '', + defaultValue: '', + labelWidthMode: 'fix', + labelFixWidth: 120, + responsive: false, + respNewRow: false, + placeholder: '请输入客户', + maxlength: null, + prefix: '', + suffix: '', + addonBefore: '', + addonAfter: '', + disabled: false, + allowClear: false, + showLabel: true, + required: false, + rules: [], + events: {}, + isSave: false, + isShow: true, + scan: false, + style: { width: '100%' }, + }, + }, + { + key: '32905aa8724341cea6d71b639c39ce8b', + field: 'dateFrom', + label: '有效期开始', + type: 'input', + component: 'Input', + colProps: { span: 24 }, + defaultValue: '', + componentProps: { + width: '100%', + span: '', + defaultValue: '', + labelWidthMode: 'fix', + labelFixWidth: 120, + responsive: false, + respNewRow: false, + placeholder: '请输入有效期开始', + maxlength: null, + prefix: '', + suffix: '', + addonBefore: '', + addonAfter: '', + disabled: false, + allowClear: false, + showLabel: true, + required: false, + rules: [], + events: {}, + isSave: false, + isShow: true, + scan: false, + style: { width: '100%' }, + }, + }, + { + key: '365716a26e434eb496e660a4df6b17d3', + field: 'dateTo', + label: '有效期结束', + type: 'input', + component: 'Input', + colProps: { span: 24 }, + defaultValue: '', + componentProps: { + width: '100%', + span: '', + defaultValue: '', + labelWidthMode: 'fix', + labelFixWidth: 120, + responsive: false, + respNewRow: false, + placeholder: '请输入有效期结束', + maxlength: null, + prefix: '', + suffix: '', + addonBefore: '', + addonAfter: '', + disabled: false, + allowClear: false, + showLabel: true, + required: false, + rules: [], + events: {}, + isSave: false, + isShow: true, + scan: false, + style: { width: '100%' }, + }, + }, + { + key: 'a7931b9a47034370bb2209febf3975ca', + field: 'approCode', + label: '状态', + type: 'input', + component: 'Input', + colProps: { span: 24 }, + defaultValue: '', + componentProps: { + width: '100%', + span: '', + defaultValue: '', + labelWidthMode: 'fix', + labelFixWidth: 120, + responsive: false, + respNewRow: false, + placeholder: '请输入状态', + maxlength: null, + prefix: '', + suffix: '', + addonBefore: '', + addonAfter: '', + disabled: false, + allowClear: false, + showLabel: true, + required: false, + rules: [], + events: {}, + isSave: false, + isShow: true, + scan: false, + style: { width: '100%' }, + }, + }, + { + key: '0409b53c8b414ed698342dcfb0c6aff1', + field: 'onlineSign', + label: '交割点', + type: 'input', + component: 'Input', + colProps: { span: 24 }, + defaultValue: '', + componentProps: { + width: '100%', + span: '', + defaultValue: '', + labelWidthMode: 'fix', + labelFixWidth: 120, + responsive: false, + respNewRow: false, + placeholder: '请输入交割点', + maxlength: null, + prefix: '', + suffix: '', + addonBefore: '', + addonAfter: '', + disabled: false, + allowClear: false, + showLabel: true, + required: false, + rules: [], + events: {}, + isSave: false, + isShow: true, + scan: false, + style: { width: '100%' }, + }, + }, + { + key: '4427e39df3914fa1b057f454f5217f2a', + field: 'cpTableName', + label: '是否托运', + type: 'input', + component: 'Input', + colProps: { span: 24 }, + defaultValue: '', + componentProps: { + width: '100%', + span: '', + defaultValue: '', + labelWidthMode: 'fix', + labelFixWidth: 120, + responsive: false, + respNewRow: false, + placeholder: '请输入是否托运', + maxlength: null, + prefix: '', + suffix: '', + addonBefore: '', + addonAfter: '', + disabled: false, + allowClear: false, + showLabel: true, + required: false, + rules: [], + events: {}, + isSave: false, + isShow: true, + scan: false, + style: { width: '100%' }, + }, + }, + { + key: 'dbe16eaad51c40dfa9244f290e1c1aa4', + field: 'comId', + label: '合同主体', + type: 'input', + component: 'Input', + colProps: { span: 24 }, + defaultValue: '', + componentProps: { + width: '100%', + span: '', + defaultValue: '', + labelWidthMode: 'fix', + labelFixWidth: 120, + responsive: false, + respNewRow: false, + placeholder: '请输入合同主体', + maxlength: null, + prefix: '', + suffix: '', + addonBefore: '', + addonAfter: '', + disabled: false, + allowClear: false, + showLabel: true, + required: false, + rules: [], + events: {}, + isSave: false, + isShow: true, + scan: false, + style: { width: '100%' }, + }, + }, + { + key: '484fb400dcc548da9021ce8c9b6d5a31', + field: 'note', + label: '备注', + type: 'input', + component: 'Input', + colProps: { span: 24 }, + defaultValue: '', + componentProps: { + width: '100%', + span: '', + defaultValue: '', + labelWidthMode: 'fix', + labelFixWidth: 120, + responsive: false, + respNewRow: false, + placeholder: '请输入备注', + maxlength: null, + prefix: '', + suffix: '', + addonBefore: '', + addonAfter: '', + disabled: false, + allowClear: false, + showLabel: true, + required: false, + rules: [], + events: {}, + isSave: false, + isShow: true, + scan: false, + style: { width: '100%' }, + }, + }, + { + key: '719298d39a48403b9aa7374844885fb4', + label: '表格组件', + field: 'lngContractSalesPngList', + type: 'form', + component: 'SubForm', + required: true, + colProps: { span: 24 }, + componentProps: { + mainKey: 'lngContractSalesPngList', + columns: [ + { + key: 'b80c6a63d6164ebcabd8b28e692d3c84', + title: '单行文本', + dataIndex: 'id', + componentType: 'Input', + defaultValue: '', + componentProps: { + width: '100%', + span: '', + defaultValue: '', + labelWidthMode: 'fix', + labelFixWidth: 120, + responsive: false, + respNewRow: false, + placeholder: '请输入单行文本', + maxlength: null, + prefix: '', + suffix: '', + addonBefore: '', + addonAfter: '', + disabled: false, + allowClear: false, + showLabel: true, + required: false, + rules: [], + events: {}, + isSave: false, + isShow: true, + scan: false, + }, + }, + { title: '操作', key: 'action', fixed: 'right', width: '50px' }, + ], + span: '24', + preloadType: 'api', + apiConfig: {}, + itemId: '', + dicOptions: [], + useSelectButton: false, + buttonName: '选择数据', + showLabel: true, + showComponentBorder: true, + showFormBorder: true, + showIndex: false, + isShow: true, + multipleHeads: [], + }, + }, + { + key: '6ec150c9da454881bb25bd758f0977b3', + label: '表格组件', + field: 'lngContractSalesPngPointList', + type: 'form', + component: 'SubForm', + required: true, + colProps: { span: 24 }, + componentProps: { + mainKey: 'lngContractSalesPngPointList', + columns: [ + { + key: '821646ea2af94b7bb341468c79bffdc3', + title: '单行文本', + dataIndex: 'id', + componentType: 'Input', + defaultValue: '', + componentProps: { + width: '100%', + span: '', + defaultValue: '', + labelWidthMode: 'fix', + labelFixWidth: 120, + responsive: false, + respNewRow: false, + placeholder: '请输入单行文本', + maxlength: null, + prefix: '', + suffix: '', + addonBefore: '', + addonAfter: '', + disabled: false, + allowClear: false, + showLabel: true, + required: false, + rules: [], + events: {}, + isSave: false, + isShow: true, + scan: false, + }, + }, + { title: '操作', key: 'action', fixed: 'right', width: '50px' }, + ], + span: '24', + preloadType: 'api', + apiConfig: {}, + itemId: '', + dicOptions: [], + useSelectButton: false, + buttonName: '选择数据', + showLabel: true, + showComponentBorder: true, + showFormBorder: true, + showIndex: false, + isShow: true, + multipleHeads: [], + }, + }, + { + key: '8432ccfb64264393bbb95335d59c90cd', + label: '表格组件', + field: 'lngContractSalesPngQtyList', + type: 'form', + component: 'SubForm', + required: true, + colProps: { span: 24 }, + componentProps: { + mainKey: 'lngContractSalesPngQtyList', + columns: [ + { + key: '8d30556c209442a8b798c9f19cd09e9f', + title: '单行文本', + dataIndex: 'id', + componentType: 'Input', + defaultValue: '', + componentProps: { + width: '100%', + span: '', + defaultValue: '', + labelWidthMode: 'fix', + labelFixWidth: 120, + responsive: false, + respNewRow: false, + placeholder: '请输入单行文本', + maxlength: null, + prefix: '', + suffix: '', + addonBefore: '', + addonAfter: '', + disabled: false, + allowClear: false, + showLabel: true, + required: false, + rules: [], + events: {}, + isSave: false, + isShow: true, + scan: false, + }, + }, + { title: '操作', key: 'action', fixed: 'right', width: '50px' }, + ], + span: '24', + preloadType: 'api', + apiConfig: {}, + itemId: '', + dicOptions: [], + useSelectButton: false, + buttonName: '选择数据', + showLabel: true, + showComponentBorder: true, + showFormBorder: true, + showIndex: false, + isShow: true, + multipleHeads: [], + }, + }, + { + key: '5eda11b537e74327879f6414d410eac0', + label: '表格组件', + field: 'lngContractFactRelList', + type: 'form', + component: 'SubForm', + required: true, + colProps: { span: 24 }, + componentProps: { + mainKey: 'lngContractFactRelList', + columns: [ + { + key: 'dacee76aaa8b44bbb5e3fdaad55bb03d', + title: '单行文本', + dataIndex: 'id', + componentType: 'Input', + defaultValue: '', + componentProps: { + width: '100%', + span: '', + defaultValue: '', + labelWidthMode: 'fix', + labelFixWidth: 120, + responsive: false, + respNewRow: false, + placeholder: '请输入单行文本', + maxlength: null, + prefix: '', + suffix: '', + addonBefore: '', + addonAfter: '', + disabled: false, + allowClear: false, + showLabel: true, + required: false, + rules: [], + events: {}, + isSave: false, + isShow: true, + scan: false, + }, + }, + { title: '操作', key: 'action', fixed: 'right', width: '50px' }, + ], + span: '24', + preloadType: 'api', + apiConfig: {}, + itemId: '', + dicOptions: [], + useSelectButton: false, + buttonName: '选择数据', + showLabel: true, + showComponentBorder: true, + showFormBorder: true, + showIndex: false, + isShow: true, + multipleHeads: [], + }, + }, + { + key: '359f728fec1744b18cd93a7e09720f8a', + label: '表格组件', + field: 'lngContractApproRelList', + type: 'form', + component: 'SubForm', + required: true, + colProps: { span: 24 }, + componentProps: { + mainKey: 'lngContractApproRelList', + columns: [ + { + key: '64be7b84556c4e7980d5f83087b8e928', + title: '单行文本', + dataIndex: 'id', + componentType: 'Input', + defaultValue: '', + componentProps: { + width: '100%', + span: '', + defaultValue: '', + labelWidthMode: 'fix', + labelFixWidth: 120, + responsive: false, + respNewRow: false, + placeholder: '请输入单行文本', + maxlength: null, + prefix: '', + suffix: '', + addonBefore: '', + addonAfter: '', + disabled: false, + allowClear: false, + showLabel: true, + required: false, + rules: [], + events: {}, + isSave: false, + isShow: true, + scan: false, + }, + }, + { title: '操作', key: 'action', fixed: 'right', width: '50px' }, + ], + span: '24', + preloadType: 'api', + apiConfig: {}, + itemId: '', + dicOptions: [], + useSelectButton: false, + buttonName: '选择数据', + showLabel: true, + showComponentBorder: true, + showFormBorder: true, + showIndex: false, + isShow: true, + multipleHeads: [], + }, + }, + ], + showActionButtonGroup: false, + buttonLocation: 'center', + actionColOptions: { span: 24 }, + showResetButton: false, + showSubmitButton: false, + hiddenComponent: [], +}; \ No newline at end of file diff --git a/src/views/contract/ContractSales/components/workflowPermission.ts b/src/views/contract/ContractSales/components/workflowPermission.ts new file mode 100644 index 0000000..df83797 --- /dev/null +++ b/src/views/contract/ContractSales/components/workflowPermission.ts @@ -0,0 +1,312 @@ +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: '2b76620f1fec4cba98e93085a2b2c2b3', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '合同号', + fieldId: 'kNo', + isSubTable: false, + showChildren: true, + type: 'input', + key: 'f410996025d94347a8e8a883676758c9', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '合同名称', + fieldId: 'kName', + isSubTable: false, + showChildren: true, + type: 'input', + key: 'b8d3454317814d1ca8df730367547d3b', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '客户', + fieldId: 'cpName', + isSubTable: false, + showChildren: true, + type: 'input', + key: '573defdd970647d28bc08f2739025842', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '有效期开始', + fieldId: 'dateFrom', + isSubTable: false, + showChildren: true, + type: 'input', + key: '32905aa8724341cea6d71b639c39ce8b', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '有效期结束', + fieldId: 'dateTo', + isSubTable: false, + showChildren: true, + type: 'input', + key: '365716a26e434eb496e660a4df6b17d3', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '状态', + fieldId: 'approCode', + isSubTable: false, + showChildren: true, + type: 'input', + key: 'a7931b9a47034370bb2209febf3975ca', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '交割点', + fieldId: 'onlineSign', + isSubTable: false, + showChildren: true, + type: 'input', + key: '0409b53c8b414ed698342dcfb0c6aff1', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '是否托运', + fieldId: 'cpTableName', + isSubTable: false, + showChildren: true, + type: 'input', + key: '4427e39df3914fa1b057f454f5217f2a', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '合同主体', + fieldId: 'comId', + isSubTable: false, + showChildren: true, + type: 'input', + key: 'dbe16eaad51c40dfa9244f290e1c1aa4', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '备注', + fieldId: 'note', + isSubTable: false, + showChildren: true, + type: 'input', + key: '484fb400dcc548da9021ce8c9b6d5a31', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSubTable: true, + showChildren: false, + tableName: 'lngContractSalesPngList', + fieldName: '表格组件', + fieldId: 'lngContractSalesPngList', + type: 'form', + key: '719298d39a48403b9aa7374844885fb4', + children: [ + { + required: true, + view: true, + edit: true, + disabled: false, + isSubTable: true, + isSaveTable: false, + showChildren: false, + tableName: 'lngContractSalesPngList', + fieldName: '单行文本', + fieldId: 'id', + key: 'b80c6a63d6164ebcabd8b28e692d3c84', + children: [], + }, + ], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSubTable: true, + showChildren: false, + tableName: 'lngContractSalesPngPointList', + fieldName: '表格组件', + fieldId: 'lngContractSalesPngPointList', + type: 'form', + key: '6ec150c9da454881bb25bd758f0977b3', + children: [ + { + required: true, + view: true, + edit: true, + disabled: false, + isSubTable: true, + isSaveTable: false, + showChildren: false, + tableName: 'lngContractSalesPngPointList', + fieldName: '单行文本', + fieldId: 'id', + key: '821646ea2af94b7bb341468c79bffdc3', + children: [], + }, + ], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSubTable: true, + showChildren: false, + tableName: 'lngContractSalesPngQtyList', + fieldName: '表格组件', + fieldId: 'lngContractSalesPngQtyList', + type: 'form', + key: '8432ccfb64264393bbb95335d59c90cd', + children: [ + { + required: true, + view: true, + edit: true, + disabled: false, + isSubTable: true, + isSaveTable: false, + showChildren: false, + tableName: 'lngContractSalesPngQtyList', + fieldName: '单行文本', + fieldId: 'id', + key: '8d30556c209442a8b798c9f19cd09e9f', + children: [], + }, + ], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSubTable: true, + showChildren: false, + tableName: 'lngContractFactRelList', + fieldName: '表格组件', + fieldId: 'lngContractFactRelList', + type: 'form', + key: '5eda11b537e74327879f6414d410eac0', + children: [ + { + required: true, + view: true, + edit: true, + disabled: false, + isSubTable: true, + isSaveTable: false, + showChildren: false, + tableName: 'lngContractFactRelList', + fieldName: '单行文本', + fieldId: 'id', + key: 'dacee76aaa8b44bbb5e3fdaad55bb03d', + children: [], + }, + ], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSubTable: true, + showChildren: false, + tableName: 'lngContractApproRelList', + fieldName: '表格组件', + fieldId: 'lngContractApproRelList', + type: 'form', + key: '359f728fec1744b18cd93a7e09720f8a', + children: [ + { + required: true, + view: true, + edit: true, + disabled: false, + isSubTable: true, + isSaveTable: false, + showChildren: false, + tableName: 'lngContractApproRelList', + fieldName: '单行文本', + fieldId: 'id', + key: '64be7b84556c4e7980d5f83087b8e928', + children: [], + }, + ], + }, +]; \ No newline at end of file diff --git a/src/views/contract/ContractSales/index.vue b/src/views/contract/ContractSales/index.vue new file mode 100644 index 0000000..1499627 --- /dev/null +++ b/src/views/contract/ContractSales/index.vue @@ -0,0 +1,405 @@ + + + \ No newline at end of file diff --git a/src/views/sales/Customer/components/createForm.vue b/src/views/sales/Customer/components/createForm.vue index 92a1188..89a3abd 100644 --- a/src/views/sales/Customer/components/createForm.vue +++ b/src/views/sales/Customer/components/createForm.vue @@ -2,7 +2,7 @@
- +

基本信息

@@ -213,9 +213,9 @@
-
+ - + - - + + - - + + - - + + - +
@@ -302,6 +302,7 @@