diff --git a/src/api/contract/ContractProc/index.ts b/src/api/contract/ContractProc/index.ts new file mode 100644 index 0000000..66513c9 --- /dev/null +++ b/src/api/contract/ContractProc/index.ts @@ -0,0 +1,91 @@ +import { LngContractPageModel, LngContractPageParams, LngContractPageResult } from './model/ContractProcModel'; +import { defHttp } from '/@/utils/http/axios'; +import { ErrorMessageMode } from '/#/axios'; + +enum Api { + // Page = '/contract/contractProc/page', + Page = '/magic-api/contract/contractProc/page', + List = '/contract/contractProc/list', + Info = '/contract/contractProc/info', + LngContract = '/contract/contractProc', + + + + + DataLog = '/contract/contractProc/datalog', +} + +/** + * @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/ContractProc/model/ContractProcModel.ts b/src/api/contract/ContractProc/model/ContractProcModel.ts new file mode 100644 index 0000000..bb568e6 --- /dev/null +++ b/src/api/contract/ContractProc/model/ContractProcModel.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; + + typeCode: 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; + + typeCode: string; + + comId: string; + + note: string; +} + +0; + +/** + * @description: LngContract分页返回值结构 + */ +export type LngContractPageResult = BasicFetchResult; \ No newline at end of file diff --git a/src/api/contract/ContractTransPng/index.ts b/src/api/contract/ContractTransPng/index.ts new file mode 100644 index 0000000..f9e5dbe --- /dev/null +++ b/src/api/contract/ContractTransPng/index.ts @@ -0,0 +1,91 @@ +import { LngContractPageModel, LngContractPageParams, LngContractPageResult } from './model/ContractTransPngModel'; +import { defHttp } from '/@/utils/http/axios'; +import { ErrorMessageMode } from '/#/axios'; + +enum Api { + // Page = '/contract/contractTransPng/page', + Page = '/magic-api/contract/contractTransPng/page', + List = '/contract/contractTransPng/list', + Info = '/contract/contractTransPng/info', + LngContract = '/contract/contractTransPng', + + + + + DataLog = '/contract/contractTransPng/datalog', +} + +/** + * @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/ContractTransPng/model/ContractTransPngModel.ts b/src/api/contract/ContractTransPng/model/ContractTransPngModel.ts new file mode 100644 index 0000000..0094729 --- /dev/null +++ b/src/api/contract/ContractTransPng/model/ContractTransPngModel.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; + + bDeptId: string; + + kPeriod: string; + + comId: string; + + note: string; +} + +/** + * @description: LngContract分页返回值模型 + */ +export interface LngContractPageModel { + id: string; + + kNo: string; + + kName: string; + + cpName: string; + + dateFrom: string; + + dateTo: string; + + approCode: string; + + bDeptId: string; + + kPeriod: string; + + comId: string; + + note: string; +} + +0; + +/** + * @description: LngContract分页返回值结构 + */ +export type LngContractPageResult = BasicFetchResult; \ No newline at end of file diff --git a/src/components/common/measureListModal.vue b/src/components/common/measureListModal.vue index 3164cb9..43cd34c 100644 --- a/src/components/common/measureListModal.vue +++ b/src/components/common/measureListModal.vue @@ -59,8 +59,8 @@ { dataIndex: 'cuSname', title: '客户', align: 'left', }, { dataIndex: 'pointDelyName', title: '下载点', align: 'left',}, { dataIndex: 'comName', title: '交易主体', align: 'left',}, - { dataIndex: 'qtyMeaGj', title: '完成量(吉焦)', align: 'left',width: 120}, - { dataIndex: 'qtyMeaM3', title: '完成量(方)', align: 'left',width: 120}, + { dataIndex: 'qtyMeaSalesGj', title: '完成量(吉焦)', align: 'left',width: 120}, + { dataIndex: 'qtyMeaPurM3', title: '完成量(方)', align: 'left',width: 120}, { dataIndex: 'rateM3Gj', title: '比值(方/吉焦)', align: 'left',width: 120}, { dataIndex: 'ksName', title: '销售合同', align: 'left',}, { dataIndex: 'file', title: '附件', align: 'left',width: 200}, @@ -74,8 +74,8 @@ { dataIndex: 'cuSname', title: '客户', align: 'left',}, { dataIndex: 'pointDelyName', title: '下载点', align: 'left',}, { dataIndex: 'comName', title: '交易主体', align: 'left',}, - { dataIndex: 'qtyMeaGj', title: '完成量(吉焦)', align: 'left',width: 120}, - { dataIndex: 'qtyMeaM3', title: '完成量(方)', align: 'left',width: 120}, + { dataIndex: 'qtyMeaPurGj', title: '完成量(吉焦)', align: 'left',width: 120}, + { dataIndex: 'qtyMeaPurM3', title: '完成量(方)', align: 'left',width: 120}, { dataIndex: 'rateM3Gj', title: '比值(方/吉焦)', align: 'left',width: 120}, { dataIndex: 'kpName', title: '采购合同', align: 'left',}, { dataIndex: 'file', title: '附件', align: 'left',width: 200}, diff --git a/src/components/common/priceComposeListModal.vue b/src/components/common/priceComposeListModal.vue index bb98a1a..de08b5d 100644 --- a/src/components/common/priceComposeListModal.vue +++ b/src/components/common/priceComposeListModal.vue @@ -62,7 +62,9 @@ curRecord.value = data.record || {} isUpdate.value = !!data?.isUpdate; isDisable.value = data.isDisable - if (!(curRecord.value.lngPngSettleSalesDtlList || []).length || !(curRecord.value.lngPngSettlePurDtlList || []).length) { + let isFlag = props.pageType == 'supplier' && !(curRecord.value.lngPngSettlePurDtlList || []).length + let isFlagPur = props.pageType == 'customer' && !(curRecord.value.lngPngSettleSalesDtlList || []).length + if (isFlag || isFlagPur) { getList() } else { if (props.pageType == 'supplier') { diff --git a/src/components/common/settleSalesPurList.vue b/src/components/common/settleSalesPurList.vue index 570f6bf..048e5c2 100644 --- a/src/components/common/settleSalesPurList.vue +++ b/src/components/common/settleSalesPurList.vue @@ -21,7 +21,7 @@ - + @@ -101,6 +101,8 @@ } const handleSuccessMeasure = (val) => { val.forEach(i =>{ + i.qtyMeaGj = props.pageType == 'supplier' ? i.qtyMeaPurGj : i.qtyMeaSalesGj + i.qtyMeaM3 = props.pageType == 'supplier' ? i.qtyMeaPurM3 : i.qtyMeaPurM3 delete i.lngFileUploadList }) if (!dataList.value.length) { diff --git a/src/views/contract/ContractProc/components/ContractProcModal.vue b/src/views/contract/ContractProc/components/ContractProcModal.vue new file mode 100644 index 0000000..168dd47 --- /dev/null +++ b/src/views/contract/ContractProc/components/ContractProcModal.vue @@ -0,0 +1,110 @@ + + \ No newline at end of file diff --git a/src/views/contract/ContractProc/components/Form.vue b/src/views/contract/ContractProc/components/Form.vue new file mode 100644 index 0000000..a70bb47 --- /dev/null +++ b/src/views/contract/ContractProc/components/Form.vue @@ -0,0 +1,224 @@ + + \ No newline at end of file diff --git a/src/views/contract/ContractProc/components/config.ts b/src/views/contract/ContractProc/components/config.ts new file mode 100644 index 0000000..7119c47 --- /dev/null +++ b/src/views/contract/ContractProc/components/config.ts @@ -0,0 +1,822 @@ +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: 'kName', + label: '合同号/名称', + component: 'Input', + }, + { + field: 'cpName', + label: '供应商', + component: 'Input', + }, + { + field: 'staName', + label: '接收站', + component: 'Input', + }, + { + field: 'approCode', + label: '审批状态', + component: 'XjrSelect', + componentProps: { + datasourceType: 'dic', + params: { itemId: '1990669393069129729' }, + labelField: 'name', + valueField: 'value', + + getPopupContainer: () => document.body, + }, + }, +]; + +export const columns: BasicColumn[] = [ + + { + 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: 'approName', + title: '状态', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'staName', + title: '接收站', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'wasteDesc', + title: '损耗说明', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'comName', + 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: 'd1b8f3e35a774c1a89e2c6b4499fc989', + 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: '742adaf726e749218a7d6b0a4f5637a0', + 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: 'd692cefe74ec4c1cb4cc4d96c76948b0', + 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: 'e15f24b794d24a368e357f87a4af003e', + 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: '1e3c7562039b4c3dab43b31801eb370e', + 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: '4aceb2c91e174722a6e4fe8c26463f3c', + 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: '338f63326ad54a63af56122c40fbc498', + 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: 'a2ad3af1cf4546a0a9843705b9d14469', + 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: '8d0819a88f28454c89d34df444ecac4f', + 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: '请输入损耗说明', + 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: '7e8cc0cc705a449da8b07b35e92eb5ba', + 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: '410b86aad16f446c9f74a7f90bbbd4d3', + 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: '252e1a9992a74f5db7707ccb82f806c5', + label: '表格组件', + field: 'lngContractProcList', + type: 'form', + component: 'SubForm', + required: true, + colProps: { span: 24 }, + componentProps: { + mainKey: 'lngContractProcList', + columns: [ + { + key: '9e926a8d6f5844cba21bc49c358ce795', + title: '单行文本', + dataIndex: 'id', + 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: 'c516763324364c8b80125ee8a469e0ba', + label: '表格组件', + field: 'lngPriceProcList', + type: 'form', + component: 'SubForm', + required: true, + colProps: { span: 24 }, + componentProps: { + mainKey: 'lngPriceProcList', + columns: [ + { + key: 'c8f63275718441ba82e2766933979b16', + title: '单行文本', + dataIndex: 'id', + 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: '5e37733a447c4787b6f879d5f4c77771', + label: '表格组件', + field: 'lngContractFactRelList', + type: 'form', + component: 'SubForm', + required: true, + colProps: { span: 24 }, + componentProps: { + mainKey: 'lngContractFactRelList', + columns: [ + { + key: '3a194074e1d041918949b5d6e6d04472', + title: '单行文本', + dataIndex: 'id', + 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: '09466ba9bb9d40b88fae0723d45de6b9', + label: '表格组件', + field: 'lngContractApproRelList', + type: 'form', + component: 'SubForm', + required: true, + colProps: { span: 24 }, + componentProps: { + mainKey: 'lngContractApproRelList', + columns: [ + { + key: '969e1656de7e494db8cdc7d9fac5a9d7', + title: '单行文本', + dataIndex: 'id', + 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/ContractProc/components/workflowPermission.ts b/src/views/contract/ContractProc/components/workflowPermission.ts new file mode 100644 index 0000000..157c799 --- /dev/null +++ b/src/views/contract/ContractProc/components/workflowPermission.ts @@ -0,0 +1,283 @@ +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: 'd1b8f3e35a774c1a89e2c6b4499fc989', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '合同号', + fieldId: 'kNo', + isSubTable: false, + showChildren: true, + type: 'input', + key: '742adaf726e749218a7d6b0a4f5637a0', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '合同名称', + fieldId: 'kName', + isSubTable: false, + showChildren: true, + type: 'input', + key: 'd692cefe74ec4c1cb4cc4d96c76948b0', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '供应商', + fieldId: 'cpName', + isSubTable: false, + showChildren: true, + type: 'input', + key: 'e15f24b794d24a368e357f87a4af003e', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '有效期开始', + fieldId: 'dateFrom', + isSubTable: false, + showChildren: true, + type: 'input', + key: '1e3c7562039b4c3dab43b31801eb370e', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '有效期结束', + fieldId: 'dateTo', + isSubTable: false, + showChildren: true, + type: 'input', + key: '4aceb2c91e174722a6e4fe8c26463f3c', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '状态', + fieldId: 'approCode', + isSubTable: false, + showChildren: true, + type: 'input', + key: '338f63326ad54a63af56122c40fbc498', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '接收站', + fieldId: 'onlineSign', + isSubTable: false, + showChildren: true, + type: 'input', + key: 'a2ad3af1cf4546a0a9843705b9d14469', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '损耗说明', + fieldId: 'typeCode', + isSubTable: false, + showChildren: true, + type: 'input', + key: '8d0819a88f28454c89d34df444ecac4f', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '合同主体', + fieldId: 'comId', + isSubTable: false, + showChildren: true, + type: 'input', + key: '7e8cc0cc705a449da8b07b35e92eb5ba', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '备注', + fieldId: 'note', + isSubTable: false, + showChildren: true, + type: 'input', + key: '410b86aad16f446c9f74a7f90bbbd4d3', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSubTable: true, + showChildren: false, + tableName: 'lngContractProcList', + fieldName: '表格组件', + fieldId: 'lngContractProcList', + type: 'form', + key: '252e1a9992a74f5db7707ccb82f806c5', + children: [ + { + required: true, + view: true, + edit: true, + disabled: false, + isSubTable: true, + isSaveTable: false, + showChildren: false, + tableName: 'lngContractProcList', + fieldName: '单行文本', + fieldId: 'id', + key: '9e926a8d6f5844cba21bc49c358ce795', + children: [], + }, + ], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSubTable: true, + showChildren: false, + tableName: 'lngPriceProcList', + fieldName: '表格组件', + fieldId: 'lngPriceProcList', + type: 'form', + key: 'c516763324364c8b80125ee8a469e0ba', + children: [ + { + required: true, + view: true, + edit: true, + disabled: false, + isSubTable: true, + isSaveTable: false, + showChildren: false, + tableName: 'lngPriceProcList', + fieldName: '单行文本', + fieldId: 'id', + key: 'c8f63275718441ba82e2766933979b16', + children: [], + }, + ], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSubTable: true, + showChildren: false, + tableName: 'lngContractFactRelList', + fieldName: '表格组件', + fieldId: 'lngContractFactRelList', + type: 'form', + key: '5e37733a447c4787b6f879d5f4c77771', + children: [ + { + required: true, + view: true, + edit: true, + disabled: false, + isSubTable: true, + isSaveTable: false, + showChildren: false, + tableName: 'lngContractFactRelList', + fieldName: '单行文本', + fieldId: 'id', + key: '3a194074e1d041918949b5d6e6d04472', + children: [], + }, + ], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSubTable: true, + showChildren: false, + tableName: 'lngContractApproRelList', + fieldName: '表格组件', + fieldId: 'lngContractApproRelList', + type: 'form', + key: '09466ba9bb9d40b88fae0723d45de6b9', + children: [ + { + required: true, + view: true, + edit: true, + disabled: false, + isSubTable: true, + isSaveTable: false, + showChildren: false, + tableName: 'lngContractApproRelList', + fieldName: '单行文本', + fieldId: 'id', + key: '969e1656de7e494db8cdc7d9fac5a9d7', + children: [], + }, + ], + }, +]; \ No newline at end of file diff --git a/src/views/contract/ContractProc/index.vue b/src/views/contract/ContractProc/index.vue new file mode 100644 index 0000000..d656911 --- /dev/null +++ b/src/views/contract/ContractProc/index.vue @@ -0,0 +1,430 @@ + + + \ No newline at end of file diff --git a/src/views/contract/ContractTransPng/components/ContractTransPngModal.vue b/src/views/contract/ContractTransPng/components/ContractTransPngModal.vue new file mode 100644 index 0000000..168dd47 --- /dev/null +++ b/src/views/contract/ContractTransPng/components/ContractTransPngModal.vue @@ -0,0 +1,110 @@ + + \ No newline at end of file diff --git a/src/views/contract/ContractTransPng/components/Form.vue b/src/views/contract/ContractTransPng/components/Form.vue new file mode 100644 index 0000000..6fb3e0e --- /dev/null +++ b/src/views/contract/ContractTransPng/components/Form.vue @@ -0,0 +1,224 @@ + + \ No newline at end of file diff --git a/src/views/contract/ContractTransPng/components/config.ts b/src/views/contract/ContractTransPng/components/config.ts new file mode 100644 index 0000000..f515b86 --- /dev/null +++ b/src/views/contract/ContractTransPng/components/config.ts @@ -0,0 +1,828 @@ +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: 'kName', + label: '合同号/名称', + component: 'Input', + }, + { + field: 'cpName', + label: '供应商', + component: 'Input', + }, + { + field: 'pointUpName', + label: '上载点', + component: 'Input', + }, + { + field: 'pointDelyName', + label: '下载点', + component: 'Input', + }, + + { + field: 'approCode', + label: '审批状态', + component: 'XjrSelect', + componentProps: { + datasourceType: 'dic', + params: { itemId: '1990669393069129729' }, + labelField: 'name', + valueField: 'value', + + getPopupContainer: () => document.body, + }, + }, +]; + +export const columns: BasicColumn[] = [ + + { + 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: 'approName', + title: '状态', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'pointUpName', + title: '上载点', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'pointDelyName', + title: '下载点', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'comName', + 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: 'e3be88a0148744a7a0ecbac42f642401', + 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: '4d6b6086123f40cca5c67508bbe90bd7', + 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: 'dfbbfe1788d04e0c893e0a0d76888416', + 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: '9e78abf9be9447a98c97ba6c5d9a1de9', + 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: '87ba2b835b7540dbbecd12df4361d8ef', + 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: '769940aa87b248adb2ff778ea78ae3a6', + 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: '9804256396a54da793025e5dc1494835', + 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: 'bd48dd4eee804594ad51091f45386375', + field: 'bDeptId', + 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: 'b97aa16b6814442eb77b703076fdc047', + field: 'kPeriod', + 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: '7fe0588ba781469faa935f27a8924253', + 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: '23a9cc3896094f55ae3e732b0decbbc8', + 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: '1fa279f735db48f19c35463c4d4fb0f9', + label: '表格组件', + field: 'lngContractTransPngList', + type: 'form', + component: 'SubForm', + required: true, + colProps: { span: 24 }, + componentProps: { + mainKey: 'lngContractTransPngList', + columns: [ + { + key: '8b34c9b3099f4ae7a9346ba91e5eb228', + title: '单行文本', + dataIndex: 'id', + 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: 'b0af9ef87b954dc9814f61d4307de2f0', + label: '表格组件', + field: 'lngPriceTransPngList', + type: 'form', + component: 'SubForm', + required: true, + colProps: { span: 24 }, + componentProps: { + mainKey: 'lngPriceTransPngList', + columns: [ + { + key: 'f3658101d979407094259cafe9bfdce1', + title: '单行文本', + dataIndex: 'id', + 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: '885d97cb80014c0c9ea2c7bd55fd1566', + label: '表格组件', + field: 'lngContractFactRelList', + type: 'form', + component: 'SubForm', + required: true, + colProps: { span: 24 }, + componentProps: { + mainKey: 'lngContractFactRelList', + columns: [ + { + key: '6e9d56f8b0064674b069d2b91987d072', + title: '单行文本', + dataIndex: 'id', + 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: '84601813fc7e45c58700e662731feb6b', + label: '表格组件', + field: 'lngContractApproRelList', + type: 'form', + component: 'SubForm', + required: true, + colProps: { span: 24 }, + componentProps: { + mainKey: 'lngContractApproRelList', + columns: [ + { + key: 'b9d5826d4ed04bfb89ebbd425f8fc045', + title: '单行文本', + dataIndex: 'id', + 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/ContractTransPng/components/workflowPermission.ts b/src/views/contract/ContractTransPng/components/workflowPermission.ts new file mode 100644 index 0000000..2e11e70 --- /dev/null +++ b/src/views/contract/ContractTransPng/components/workflowPermission.ts @@ -0,0 +1,283 @@ +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: 'e3be88a0148744a7a0ecbac42f642401', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '合同号', + fieldId: 'kNo', + isSubTable: false, + showChildren: true, + type: 'input', + key: '4d6b6086123f40cca5c67508bbe90bd7', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '合同名称', + fieldId: 'kName', + isSubTable: false, + showChildren: true, + type: 'input', + key: 'dfbbfe1788d04e0c893e0a0d76888416', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '供应商', + fieldId: 'cpName', + isSubTable: false, + showChildren: true, + type: 'input', + key: '9e78abf9be9447a98c97ba6c5d9a1de9', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '有效期开始', + fieldId: 'dateFrom', + isSubTable: false, + showChildren: true, + type: 'input', + key: '87ba2b835b7540dbbecd12df4361d8ef', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '有效期结束', + fieldId: 'dateTo', + isSubTable: false, + showChildren: true, + type: 'input', + key: '769940aa87b248adb2ff778ea78ae3a6', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '状态', + fieldId: 'approCode', + isSubTable: false, + showChildren: true, + type: 'input', + key: '9804256396a54da793025e5dc1494835', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '上载点', + fieldId: 'bDeptId', + isSubTable: false, + showChildren: true, + type: 'input', + key: 'bd48dd4eee804594ad51091f45386375', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '下载点', + fieldId: 'kPeriod', + isSubTable: false, + showChildren: true, + type: 'input', + key: 'b97aa16b6814442eb77b703076fdc047', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '合同主体', + fieldId: 'comId', + isSubTable: false, + showChildren: true, + type: 'input', + key: '7fe0588ba781469faa935f27a8924253', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '备注', + fieldId: 'note', + isSubTable: false, + showChildren: true, + type: 'input', + key: '23a9cc3896094f55ae3e732b0decbbc8', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSubTable: true, + showChildren: false, + tableName: 'lngContractTransPngList', + fieldName: '表格组件', + fieldId: 'lngContractTransPngList', + type: 'form', + key: '1fa279f735db48f19c35463c4d4fb0f9', + children: [ + { + required: true, + view: true, + edit: true, + disabled: false, + isSubTable: true, + isSaveTable: false, + showChildren: false, + tableName: 'lngContractTransPngList', + fieldName: '单行文本', + fieldId: 'id', + key: '8b34c9b3099f4ae7a9346ba91e5eb228', + children: [], + }, + ], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSubTable: true, + showChildren: false, + tableName: 'lngPriceTransPngList', + fieldName: '表格组件', + fieldId: 'lngPriceTransPngList', + type: 'form', + key: 'b0af9ef87b954dc9814f61d4307de2f0', + children: [ + { + required: true, + view: true, + edit: true, + disabled: false, + isSubTable: true, + isSaveTable: false, + showChildren: false, + tableName: 'lngPriceTransPngList', + fieldName: '单行文本', + fieldId: 'id', + key: 'f3658101d979407094259cafe9bfdce1', + children: [], + }, + ], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSubTable: true, + showChildren: false, + tableName: 'lngContractFactRelList', + fieldName: '表格组件', + fieldId: 'lngContractFactRelList', + type: 'form', + key: '885d97cb80014c0c9ea2c7bd55fd1566', + children: [ + { + required: true, + view: true, + edit: true, + disabled: false, + isSubTable: true, + isSaveTable: false, + showChildren: false, + tableName: 'lngContractFactRelList', + fieldName: '单行文本', + fieldId: 'id', + key: '6e9d56f8b0064674b069d2b91987d072', + children: [], + }, + ], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSubTable: true, + showChildren: false, + tableName: 'lngContractApproRelList', + fieldName: '表格组件', + fieldId: 'lngContractApproRelList', + type: 'form', + key: '84601813fc7e45c58700e662731feb6b', + children: [ + { + required: true, + view: true, + edit: true, + disabled: false, + isSubTable: true, + isSaveTable: false, + showChildren: false, + tableName: 'lngContractApproRelList', + fieldName: '单行文本', + fieldId: 'id', + key: 'b9d5826d4ed04bfb89ebbd425f8fc045', + children: [], + }, + ], + }, +]; \ No newline at end of file diff --git a/src/views/contract/ContractTransPng/index.vue b/src/views/contract/ContractTransPng/index.vue new file mode 100644 index 0000000..23e9087 --- /dev/null +++ b/src/views/contract/ContractTransPng/index.vue @@ -0,0 +1,429 @@ + + + \ No newline at end of file