diff --git a/src/api/dayPlan/LngAppro/index.ts b/src/api/dayPlan/LngAppro/index.ts new file mode 100644 index 0000000..58000b5 --- /dev/null +++ b/src/api/dayPlan/LngAppro/index.ts @@ -0,0 +1,90 @@ +import { LngLngApproPageModel, LngLngApproPageParams, LngLngApproPageResult } from './model/LngApproModel'; +import { defHttp } from '/@/utils/http/axios'; +import { ErrorMessageMode } from '/#/axios'; + +enum Api { + Page = '/dayPlan/lngAppro/page', + List = '/dayPlan/lngAppro/list', + Info = '/dayPlan/lngAppro/info', + LngLngAppro = '/dayPlan/lngAppro', + + + + + DataLog = '/dayPlan/lngAppro/datalog', +} + +/** + * @description: 查询LngLngAppro分页列表 + */ +export async function getLngLngApproPage(params: LngLngApproPageParams, mode: ErrorMessageMode = 'modal') { + return defHttp.get( + { + url: Api.Page, + params, + }, + { + errorMessageMode: mode, + }, + ); +} + +/** + * @description: 获取LngLngAppro信息 + */ +export async function getLngLngAppro(id: String, mode: ErrorMessageMode = 'modal') { + return defHttp.get( + { + url: Api.Info, + params: { id }, + }, + { + errorMessageMode: mode, + }, + ); +} + +/** + * @description: 新增LngLngAppro + */ +export async function addLngLngAppro(lngLngAppro: Recordable, mode: ErrorMessageMode = 'modal') { + return defHttp.post( + { + url: Api.LngLngAppro, + params: lngLngAppro, + }, + { + errorMessageMode: mode, + }, + ); +} + +/** + * @description: 更新LngLngAppro + */ +export async function updateLngLngAppro(lngLngAppro: Recordable, mode: ErrorMessageMode = 'modal') { + return defHttp.put( + { + url: Api.LngLngAppro, + params: lngLngAppro, + }, + { + errorMessageMode: mode, + }, + ); +} + +/** + * @description: 删除LngLngAppro(批量删除) + */ +export async function deleteLngLngAppro(ids: string[], mode: ErrorMessageMode = 'modal') { + return defHttp.delete( + { + url: Api.LngLngAppro, + data: ids, + }, + { + errorMessageMode: mode, + }, + ); +} \ No newline at end of file diff --git a/src/api/dayPlan/LngAppro/model/LngApproModel.ts b/src/api/dayPlan/LngAppro/model/LngApproModel.ts new file mode 100644 index 0000000..2af2d00 --- /dev/null +++ b/src/api/dayPlan/LngAppro/model/LngApproModel.ts @@ -0,0 +1,90 @@ +import { BasicPageParams, BasicFetchResult } from '/@/api/model/baseModel'; + +/** + * @description: LngLngAppro分页参数 模型 + */ +export interface LngLngApproPageParams extends BasicPageParams { + id: string; + + verNo: string; + + datePlan: string; + + cuCode: string; + + staCode: string; + + noTractor: string; + + noTrailer: string; + + idNoDriver: string; + + nameDriver: string; + + phoneDriver: string; + + idNoEscort: string; + + nameEscort: string; + + phoneEscort: string; + + carrCode: string; + + ksId: string; + + unloadingName: string; + + alterSign: string; + + approCode: string; +} + +/** + * @description: LngLngAppro分页返回值模型 + */ +export interface LngLngApproPageModel { + id: string; + + verNo: string; + + datePlan: string; + + cuCode: string; + + staCode: string; + + noTractor: string; + + noTrailer: string; + + idNoDriver: string; + + nameDriver: string; + + phoneDriver: string; + + idNoEscort: string; + + nameEscort: string; + + phoneEscort: string; + + carrCode: string; + + ksId: string; + + unloadingName: string; + + alterSign: string; + + approCode: string; +} + +0; + +/** + * @description: LngLngAppro分页返回值结构 + */ +export type LngLngApproPageResult = BasicFetchResult; \ No newline at end of file diff --git a/src/api/dayPlan/LngDemand/index.ts b/src/api/dayPlan/LngDemand/index.ts new file mode 100644 index 0000000..971729a --- /dev/null +++ b/src/api/dayPlan/LngDemand/index.ts @@ -0,0 +1,115 @@ +import { LngLngDemandPageModel, LngLngDemandPageParams, LngLngDemandPageResult } from './model/LngDemandModel'; +import { defHttp } from '/@/utils/http/axios'; +import { ErrorMessageMode } from '/#/axios'; + +enum Api { + Page = '/dayPlan/lngDemand/page', + List = '/dayPlan/lngDemand/list', + Info = '/dayPlan/lngDemand/info', + LngLngDemand = '/dayPlan/lngDemand', + + + Export = '/dayPlan/lngDemand/export', + + + DataLog = '/dayPlan/lngDemand/datalog', +} + +/** + * @description: 查询LngLngDemand分页列表 + */ +export async function getLngLngDemandPage(params: LngLngDemandPageParams, mode: ErrorMessageMode = 'modal') { + return defHttp.get( + { + url: Api.Page, + params, + }, + { + errorMessageMode: mode, + }, + ); +} + +/** + * @description: 获取LngLngDemand信息 + */ +export async function getLngLngDemand(id: String, mode: ErrorMessageMode = 'modal') { + return defHttp.get( + { + url: Api.Info, + params: { id }, + }, + { + errorMessageMode: mode, + }, + ); +} + +/** + * @description: 新增LngLngDemand + */ +export async function addLngLngDemand(lngLngDemand: Recordable, mode: ErrorMessageMode = 'modal') { + return defHttp.post( + { + url: Api.LngLngDemand, + params: lngLngDemand, + }, + { + errorMessageMode: mode, + }, + ); +} + +/** + * @description: 更新LngLngDemand + */ +export async function updateLngLngDemand(lngLngDemand: Recordable, mode: ErrorMessageMode = 'modal') { + return defHttp.put( + { + url: Api.LngLngDemand, + params: lngLngDemand, + }, + { + errorMessageMode: mode, + }, + ); +} + +/** + * @description: 删除LngLngDemand(批量删除) + */ +export async function deleteLngLngDemand(ids: string[], mode: ErrorMessageMode = 'modal') { + return defHttp.delete( + { + url: Api.LngLngDemand, + data: ids, + }, + { + errorMessageMode: mode, + }, + ); +} + + + + + +/** + * @description: 导出LngLngDemand + */ +export async function exportLngLngDemand( + params?: object, + mode: ErrorMessageMode = 'modal' +) { + return defHttp.download( + { + url: Api.Export, + method: 'GET', + params, + responseType: 'blob', + }, + { + errorMessageMode: mode, + }, + ); +} \ No newline at end of file diff --git a/src/api/dayPlan/LngDemand/model/LngDemandModel.ts b/src/api/dayPlan/LngDemand/model/LngDemandModel.ts new file mode 100644 index 0000000..fb753d1 --- /dev/null +++ b/src/api/dayPlan/LngDemand/model/LngDemandModel.ts @@ -0,0 +1,82 @@ +import { BasicPageParams, BasicFetchResult } from '/@/api/model/baseModel'; + +/** + * @description: LngLngDemand分页参数 模型 + */ +export interface LngLngDemandPageParams extends BasicPageParams { + id: string; + + verNo: string; + + datePlan: string; + + staCode: string; + + noTractor: string; + + noTrailer: string; + + idNoDriver: string; + + nameDriver: string; + + phoneDriver: string; + + idNoEscort: string; + + nameEscort: string; + + phoneEscort: string; + + carrCode: string; + + ksId: string; + + alterSign: string; + + approCode: string; +} + +/** + * @description: LngLngDemand分页返回值模型 + */ +export interface LngLngDemandPageModel { + id: string; + + verNo: string; + + datePlan: string; + + staCode: string; + + noTractor: string; + + noTrailer: string; + + idNoDriver: string; + + nameDriver: string; + + phoneDriver: string; + + idNoEscort: string; + + nameEscort: string; + + phoneEscort: string; + + carrCode: string; + + ksId: string; + + alterSign: string; + + approCode: string; +} + +0; + +/** + * @description: LngLngDemand分页返回值结构 + */ +export type LngLngDemandPageResult = BasicFetchResult; \ No newline at end of file diff --git a/src/api/dayPlan/LngMeasurePur/index.ts b/src/api/dayPlan/LngMeasurePur/index.ts new file mode 100644 index 0000000..3e64e23 --- /dev/null +++ b/src/api/dayPlan/LngMeasurePur/index.ts @@ -0,0 +1,90 @@ +import { LngLngMeasurePageModel, LngLngMeasurePageParams, LngLngMeasurePageResult } from './model/LngMeasurePurModel'; +import { defHttp } from '/@/utils/http/axios'; +import { ErrorMessageMode } from '/#/axios'; + +enum Api { + Page = '/dayPlan/lngMeasurePur/page', + List = '/dayPlan/lngMeasurePur/list', + Info = '/dayPlan/lngMeasurePur/info', + LngLngMeasure = '/dayPlan/lngMeasurePur', + + + + + DataLog = '/dayPlan/lngMeasurePur/datalog', +} + +/** + * @description: 查询LngLngMeasure分页列表 + */ +export async function getLngLngMeasurePage(params: LngLngMeasurePageParams, mode: ErrorMessageMode = 'modal') { + return defHttp.get( + { + url: Api.Page, + params, + }, + { + errorMessageMode: mode, + }, + ); +} + +/** + * @description: 获取LngLngMeasure信息 + */ +export async function getLngLngMeasure(id: String, mode: ErrorMessageMode = 'modal') { + return defHttp.get( + { + url: Api.Info, + params: { id }, + }, + { + errorMessageMode: mode, + }, + ); +} + +/** + * @description: 新增LngLngMeasure + */ +export async function addLngLngMeasure(lngLngMeasure: Recordable, mode: ErrorMessageMode = 'modal') { + return defHttp.post( + { + url: Api.LngLngMeasure, + params: lngLngMeasure, + }, + { + errorMessageMode: mode, + }, + ); +} + +/** + * @description: 更新LngLngMeasure + */ +export async function updateLngLngMeasure(lngLngMeasure: Recordable, mode: ErrorMessageMode = 'modal') { + return defHttp.put( + { + url: Api.LngLngMeasure, + params: lngLngMeasure, + }, + { + errorMessageMode: mode, + }, + ); +} + +/** + * @description: 删除LngLngMeasure(批量删除) + */ +export async function deleteLngLngMeasure(ids: string[], mode: ErrorMessageMode = 'modal') { + return defHttp.delete( + { + url: Api.LngLngMeasure, + data: ids, + }, + { + errorMessageMode: mode, + }, + ); +} \ No newline at end of file diff --git a/src/api/dayPlan/LngMeasurePur/model/LngMeasurePurModel.ts b/src/api/dayPlan/LngMeasurePur/model/LngMeasurePurModel.ts new file mode 100644 index 0000000..94f9b1e --- /dev/null +++ b/src/api/dayPlan/LngMeasurePur/model/LngMeasurePurModel.ts @@ -0,0 +1,98 @@ +import { BasicPageParams, BasicFetchResult } from '/@/api/model/baseModel'; + +/** + * @description: LngLngMeasure分页参数 模型 + */ +export interface LngLngMeasurePageParams extends BasicPageParams { + id: string; + + datePlan: string; + + cuCode: string; + + staCode: string; + + ruleUserId: string; + + deptId: string; + + qtyTonLoading: string; + + tenantId: string; + + modifyDate: string; + + timeIn: string; + + timeOut: string; + + cfmCuUserId: string; + + cfmCuUserTime: string; + + cfmEmpId: string; + + cfmEmpTime: string; + + ksId: string; + + suCode: string; + + createUserId: string; + + salesId: string; + + rejNote: string; +} + +/** + * @description: LngLngMeasure分页返回值模型 + */ +export interface LngLngMeasurePageModel { + id: string; + + datePlan: string; + + cuCode: string; + + staCode: string; + + ruleUserId: string; + + deptId: string; + + qtyTonLoading: string; + + tenantId: string; + + modifyDate: string; + + timeIn: string; + + timeOut: string; + + cfmCuUserId: string; + + cfmCuUserTime: string; + + cfmEmpId: string; + + cfmEmpTime: string; + + ksId: string; + + suCode: string; + + createUserId: string; + + salesId: string; + + rejNote: string; +} + +0; + +/** + * @description: LngLngMeasure分页返回值结构 + */ +export type LngLngMeasurePageResult = BasicFetchResult; \ No newline at end of file diff --git a/src/api/dayPlan/LngMeasureSales/index.ts b/src/api/dayPlan/LngMeasureSales/index.ts new file mode 100644 index 0000000..81066b1 --- /dev/null +++ b/src/api/dayPlan/LngMeasureSales/index.ts @@ -0,0 +1,90 @@ +import { LngLngMeasurePageModel, LngLngMeasurePageParams, LngLngMeasurePageResult } from './model/LngMeasureSalesModel'; +import { defHttp } from '/@/utils/http/axios'; +import { ErrorMessageMode } from '/#/axios'; + +enum Api { + Page = '/dayPlan/lngMeasureSales/page', + List = '/dayPlan/lngMeasureSales/list', + Info = '/dayPlan/lngMeasureSales/info', + LngLngMeasure = '/dayPlan/lngMeasureSales', + + + + + DataLog = '/dayPlan/lngMeasureSales/datalog', +} + +/** + * @description: 查询LngLngMeasure分页列表 + */ +export async function getLngLngMeasurePage(params: LngLngMeasurePageParams, mode: ErrorMessageMode = 'modal') { + return defHttp.get( + { + url: Api.Page, + params, + }, + { + errorMessageMode: mode, + }, + ); +} + +/** + * @description: 获取LngLngMeasure信息 + */ +export async function getLngLngMeasure(id: String, mode: ErrorMessageMode = 'modal') { + return defHttp.get( + { + url: Api.Info, + params: { id }, + }, + { + errorMessageMode: mode, + }, + ); +} + +/** + * @description: 新增LngLngMeasure + */ +export async function addLngLngMeasure(lngLngMeasure: Recordable, mode: ErrorMessageMode = 'modal') { + return defHttp.post( + { + url: Api.LngLngMeasure, + params: lngLngMeasure, + }, + { + errorMessageMode: mode, + }, + ); +} + +/** + * @description: 更新LngLngMeasure + */ +export async function updateLngLngMeasure(lngLngMeasure: Recordable, mode: ErrorMessageMode = 'modal') { + return defHttp.put( + { + url: Api.LngLngMeasure, + params: lngLngMeasure, + }, + { + errorMessageMode: mode, + }, + ); +} + +/** + * @description: 删除LngLngMeasure(批量删除) + */ +export async function deleteLngLngMeasure(ids: string[], mode: ErrorMessageMode = 'modal') { + return defHttp.delete( + { + url: Api.LngLngMeasure, + data: ids, + }, + { + errorMessageMode: mode, + }, + ); +} \ No newline at end of file diff --git a/src/api/dayPlan/LngMeasureSales/model/LngMeasureSalesModel.ts b/src/api/dayPlan/LngMeasureSales/model/LngMeasureSalesModel.ts new file mode 100644 index 0000000..f02eb69 --- /dev/null +++ b/src/api/dayPlan/LngMeasureSales/model/LngMeasureSalesModel.ts @@ -0,0 +1,171 @@ +import { BasicPageParams, BasicFetchResult } from '/@/api/model/baseModel'; + +/** + * @description: LngLngMeasure分页参数 模型 + */ +export interface LngLngMeasurePageParams extends BasicPageParams { + id: string; + + datePlanStart: string; + datePlanEnd: string; + + staCode: string; + + ruleUserId: string; + + deptId: string; + + qtyTonLoading: string; + + xCode: string; + + tenantId: string; + + timeIn: string; + + timeOut: string; + + createUserId: string; + + cfmCuUserId: string; + + cfmCuUserTime: string; + + cfmEmpId: string; + + cfmEmpTime: string; + + suCode: string; + + ksId: string; + + modifyDateStart: string; + modifyDateEnd: string; + + rejNote: string; +} + +/** + * @description: LngLngMeasure分页返回值模型 + */ +export interface LngLngMeasurePageModel { + id: string; + + datePlan: string; + + staCode: string; + + ruleUserId: string; + + deptId: string; + + qtyTonLoading: string; + + xCode: string; + + tenantId: string; + + timeIn: string; + + timeOut: string; + + createUserId: string; + + cfmCuUserId: string; + + cfmCuUserTime: string; + + cfmEmpId: string; + + cfmEmpTime: string; + + suCode: string; + + ksId: string; + + modifyDate: string; + + rejNote: string; +} + +/** + * @description: LngLngMeasure表类型 + */ +export interface LngLngMeasureModel { + id: number; + + salesId: number; + + datePlan: string; + + cuCode: string; + + comId: number; + + ksId: number; + + staCode: string; + + suCode: string; + + kpId: number; + + rateTonGj: number; + + qtyTonLoading: number; + + qtyTonUnloading: number; + + qtyMeaTonPur: number; + + qtyMeaGjPur: number; + + qtyMeaM3Pur: number; + + qtyMeaTonSales: number; + + qtyMeaGjSales: number; + + qtyMeaM3Sales: number; + + timeIn: string; + + timeOut: string; + + xCode: string; + + cfmCuUserId: number; + + cfmCuUserTime: string; + + cfmEmpId: number; + + cfmEmpTime: string; + + rejNote: string; + + dataSource: string; + + billNo: string; + + note: string; + + createUserId: number; + + createDate: string; + + modifyUserId: number; + + modifyDate: string; + + tenantId: number; + + deptId: number; + + ruleUserId: number; +} + +/** + * @description: LngLngMeasure分页返回值结构 + */ +export type LngLngMeasurePageResult = BasicFetchResult; \ No newline at end of file diff --git a/src/api/ship/ShipSchedule/index.ts b/src/api/ship/ShipSchedule/index.ts index ed708c4..58111ea 100644 --- a/src/api/ship/ShipSchedule/index.ts +++ b/src/api/ship/ShipSchedule/index.ts @@ -9,11 +9,23 @@ enum Api { Info = '/ship/shipSchedule/info', LngShipSchedule = '/ship/shipSchedule', ContractPageList = '/magic-api/ship/selectSalesContractPageList', + ContractPageListSales = '/magic-api/ship/selectSalesIntContractPageList', DataLog = '/ship/shipSchedule/datalog', } +export async function getContractPageListSales(params: LngShipSchedulePageParams, mode: ErrorMessageMode = 'modal') { + return defHttp.get( + { + url: Api.ContractPageListSales, + params, + }, + { + errorMessageMode: mode, + }, + ); +} export async function getContractPageList(params: LngShipSchedulePageParams, mode: ErrorMessageMode = 'modal') { return defHttp.get( { diff --git a/src/components/common/ContractPurIntListModal.vue b/src/components/common/ContractPurIntListModal.vue index c485c9a..45c4d19 100644 --- a/src/components/common/ContractPurIntListModal.vue +++ b/src/components/common/ContractPurIntListModal.vue @@ -13,7 +13,7 @@ import { BasicTable, useTable, FormSchema, BasicColumn, TableAction } from '/@/components/Table'; import { useMessage } from '/@/hooks/web/useMessage'; import { useI18n } from '/@/hooks/web/useI18n'; - import { getContractPageList} from '/@/api/ship/ShipSchedule'; + import { getContractPageList,getContractPageListSales} from '/@/api/ship/ShipSchedule'; const { t } = useI18n(); const codeFormSchema: FormSchema[] = [ @@ -34,12 +34,13 @@ { title: t('合同号'), dataIndex: 'kNo', }, { title: t('合同名称'), dataIndex: 'kName', }, { title: t('供应商'), dataIndex: 'suName' ,}, - { title: '有效期开始',dataIndex: 'dateFrom', width: 120,}, - { title: '有效期结束',dataIndex: 'dateTo', width: 120}, - { title: t('合同主体'), dataIndex: 'comName', }, - { title: t('长协/现货'), dataIndex: 'longSpotName'}, + { title: t('供应商简称'), dataIndex: 'suSname' ,}, + { title: '有效期开始',dataIndex: 'dateFrom', width: 100,}, + { title: '有效期结束',dataIndex: 'dateTo', width: 100}, + { title: t('合同主体'), dataIndex: 'comName', width: 100}, + { title: t('长协/现货'), dataIndex: 'longSpotName', width: 100}, { title: t('气源地'), dataIndex: 'sourceName'}, - { title: t('价格条款'), dataIndex: 'prcTermName'}, + { title: t('价格条款'), dataIndex: 'prcTermName', width: 100}, ]; @@ -52,6 +53,7 @@ const selectedValues = ref([]); const props = defineProps({ selectType: { type: String, default: 'checkbox' }, + pageType: { type: String, default: 'pur' }, }); const [registerModal, { setModalProps, closeModal }] = useModalInner(async (data) => { @@ -63,7 +65,7 @@ const [registerTable, { getDataSource, setTableData, updateTableDataRecord, reload }] = useTable({ title: t('国际采购合同列表'), - api: getContractPageList, + api: props.pageType=='pur'? getContractPageList : getContractPageListSales, columns, bordered: true, @@ -95,7 +97,7 @@ selectedKeys.value = rowKeys; selectedValues.value = e } - const getTitle = computed(() => (!unref(isUpdate) ? t('国际采购合同列表') : t(''))); + const getTitle = computed(() => (!unref(isUpdate) ? (props.pageType=='pur'?t('国际采购合同列表'):'国际销售合同列表') : t(''))); async function handleSubmit() { if (!selectedValues.value.length) { diff --git a/src/views/dayPlan/LngAppro/components/Form.vue b/src/views/dayPlan/LngAppro/components/Form.vue new file mode 100644 index 0000000..feac47c --- /dev/null +++ b/src/views/dayPlan/LngAppro/components/Form.vue @@ -0,0 +1,224 @@ + + \ No newline at end of file diff --git a/src/views/dayPlan/LngAppro/components/LngApproModal.vue b/src/views/dayPlan/LngAppro/components/LngApproModal.vue new file mode 100644 index 0000000..168dd47 --- /dev/null +++ b/src/views/dayPlan/LngAppro/components/LngApproModal.vue @@ -0,0 +1,110 @@ + + \ No newline at end of file diff --git a/src/views/dayPlan/LngAppro/components/config.ts b/src/views/dayPlan/LngAppro/components/config.ts new file mode 100644 index 0000000..9c441c4 --- /dev/null +++ b/src/views/dayPlan/LngAppro/components/config.ts @@ -0,0 +1,952 @@ +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: 'verNo', + label: '版本号', + component: 'Input', + }, + { + field: 'datePlan', + label: '计划日期', + component: 'Input', + }, + { + field: 'cuCode', + label: '客户简称', + component: 'Input', + }, + { + field: 'staCode', + label: '气源地', + component: 'Input', + }, + { + field: 'noTractor', + label: '车头号', + component: 'Input', + }, + { + field: 'noTrailer', + label: '挂车号', + component: 'Input', + }, + { + field: 'idNoDriver', + label: '驾驶员身份证号', + component: 'Input', + }, + { + field: 'nameDriver', + label: '驾驶员姓名', + component: 'Input', + }, + { + field: 'phoneDriver', + label: '驾驶员手机号', + component: 'Input', + }, + { + field: 'idNoEscort', + label: '押运员身份证号', + component: 'Input', + }, + { + field: 'nameEscort', + label: '押运员姓名', + component: 'Input', + }, + { + field: 'phoneEscort', + label: '押运员手机号', + component: 'Input', + }, + { + field: 'carrCode', + label: '承运商', + component: 'Input', + }, + { + field: 'ksId', + label: '销售合同', + component: 'Input', + }, + { + field: 'unloadingName', + label: '卸货站点', + component: 'Input', + }, + { + field: 'alterSign', + label: '变更', + component: 'Input', + }, + { + field: 'approCode', + label: '审批状态', + component: 'Input', + }, +]; + +export const columns: BasicColumn[] = [ + { + dataIndex: 'id', + title: 'Id', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'verNo', + title: '版本号', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'datePlan', + title: '计划日期', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'cuCode', + title: '客户简称', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'staCode', + title: '气源地', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'noTractor', + title: '车头号', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'noTrailer', + title: '挂车号', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'idNoDriver', + title: '驾驶员身份证号', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'nameDriver', + title: '驾驶员姓名', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'phoneDriver', + title: '驾驶员手机号', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'idNoEscort', + title: '押运员身份证号', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'nameEscort', + title: '押运员姓名', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'phoneEscort', + title: '押运员手机号', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'carrCode', + title: '承运商', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'ksId', + title: '销售合同', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'unloadingName', + title: '卸货站点', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'alterSign', + title: '变更', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'approCode', + 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: 'f1db1b3340b249529105f5032aab82ff', + 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: '2de781b232ad43d287a06850253def51', + field: 'verNo', + 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: '634a305d56c545528ac3d5451afe4089', + field: 'datePlan', + 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: '23a1c2881cc24241bc9e12d674484e58', + field: 'cuCode', + 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: '9c21d26dc1fe4a0788ba465fe567213b', + field: 'staCode', + label: '气源地', + type: 'input', + component: 'Input', + colProps: { span: 24 }, + defaultValue: '', + componentProps: { + width: '100%', + span: '', + defaultValue: '', + labelWidthMode: 'fix', + labelFixWidth: 120, + responsive: false, + respNewRow: false, + placeholder: '请输入气源地', + 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: '4d534508e8c942e3a70aa3091f12a1c3', + field: 'noTractor', + 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: '3de566a234874fd285f9c4db77492d54', + field: 'noTrailer', + 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: '5325de39d7624b41b1d51f505ee851be', + field: 'idNoDriver', + 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: '0ce880fa1697441e85b14d75fba26d08', + field: 'nameDriver', + 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: '533a7cb04926489189170d227889039f', + field: 'phoneDriver', + 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: '849ba66c22a94932a49296fbbe7bdc06', + field: 'idNoEscort', + 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: '73212e3464e64ccab8b4bc12c57a188a', + field: 'nameEscort', + 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: 'c8e7f14276e041c7843bf9f243ed3af2', + field: 'phoneEscort', + 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: '619301efb83740fcab003d1e3ecd390b', + field: 'carrCode', + 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: '2b1cbf4f1db64bebbac819a902977364', + field: 'ksId', + 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: '6dcd0ba87f15496f9a37d479a386fdad', + field: 'unloadingName', + 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: '1f9f49cbf3ff4614b3069eb8d18d783f', + field: 'alterSign', + 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: '2fc3def04c74495b93b431136821fbda', + 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%' }, + }, + }, + ], + showActionButtonGroup: false, + buttonLocation: 'center', + actionColOptions: { span: 24 }, + showResetButton: false, + showSubmitButton: false, + hiddenComponent: [], +}; \ No newline at end of file diff --git a/src/views/dayPlan/LngAppro/components/workflowPermission.ts b/src/views/dayPlan/LngAppro/components/workflowPermission.ts new file mode 100644 index 0000000..3afc246 --- /dev/null +++ b/src/views/dayPlan/LngAppro/components/workflowPermission.ts @@ -0,0 +1,272 @@ +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: 'f1db1b3340b249529105f5032aab82ff', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '版本号', + fieldId: 'verNo', + isSubTable: false, + showChildren: true, + type: 'input', + key: '2de781b232ad43d287a06850253def51', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '计划日期', + fieldId: 'datePlan', + isSubTable: false, + showChildren: true, + type: 'input', + key: '634a305d56c545528ac3d5451afe4089', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '客户简称', + fieldId: 'cuCode', + isSubTable: false, + showChildren: true, + type: 'input', + key: '23a1c2881cc24241bc9e12d674484e58', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '气源地', + fieldId: 'staCode', + isSubTable: false, + showChildren: true, + type: 'input', + key: '9c21d26dc1fe4a0788ba465fe567213b', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '车头号', + fieldId: 'noTractor', + isSubTable: false, + showChildren: true, + type: 'input', + key: '4d534508e8c942e3a70aa3091f12a1c3', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '挂车号', + fieldId: 'noTrailer', + isSubTable: false, + showChildren: true, + type: 'input', + key: '3de566a234874fd285f9c4db77492d54', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '驾驶员身份证号', + fieldId: 'idNoDriver', + isSubTable: false, + showChildren: true, + type: 'input', + key: '5325de39d7624b41b1d51f505ee851be', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '驾驶员姓名', + fieldId: 'nameDriver', + isSubTable: false, + showChildren: true, + type: 'input', + key: '0ce880fa1697441e85b14d75fba26d08', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '驾驶员手机号', + fieldId: 'phoneDriver', + isSubTable: false, + showChildren: true, + type: 'input', + key: '533a7cb04926489189170d227889039f', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '押运员身份证号', + fieldId: 'idNoEscort', + isSubTable: false, + showChildren: true, + type: 'input', + key: '849ba66c22a94932a49296fbbe7bdc06', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '押运员姓名', + fieldId: 'nameEscort', + isSubTable: false, + showChildren: true, + type: 'input', + key: '73212e3464e64ccab8b4bc12c57a188a', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '押运员手机号', + fieldId: 'phoneEscort', + isSubTable: false, + showChildren: true, + type: 'input', + key: 'c8e7f14276e041c7843bf9f243ed3af2', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '承运商', + fieldId: 'carrCode', + isSubTable: false, + showChildren: true, + type: 'input', + key: '619301efb83740fcab003d1e3ecd390b', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '销售合同', + fieldId: 'ksId', + isSubTable: false, + showChildren: true, + type: 'input', + key: '2b1cbf4f1db64bebbac819a902977364', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '卸货站点', + fieldId: 'unloadingName', + isSubTable: false, + showChildren: true, + type: 'input', + key: '6dcd0ba87f15496f9a37d479a386fdad', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '变更', + fieldId: 'alterSign', + isSubTable: false, + showChildren: true, + type: 'input', + key: '1f9f49cbf3ff4614b3069eb8d18d783f', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '审批状态', + fieldId: 'approCode', + isSubTable: false, + showChildren: true, + type: 'input', + key: '2fc3def04c74495b93b431136821fbda', + children: [], + }, +]; \ No newline at end of file diff --git a/src/views/dayPlan/LngAppro/index.vue b/src/views/dayPlan/LngAppro/index.vue new file mode 100644 index 0000000..8d5bb01 --- /dev/null +++ b/src/views/dayPlan/LngAppro/index.vue @@ -0,0 +1,258 @@ + + + \ No newline at end of file diff --git a/src/views/dayPlan/LngDemand/components/Form.vue b/src/views/dayPlan/LngDemand/components/Form.vue new file mode 100644 index 0000000..84b660a --- /dev/null +++ b/src/views/dayPlan/LngDemand/components/Form.vue @@ -0,0 +1,224 @@ + + \ No newline at end of file diff --git a/src/views/dayPlan/LngDemand/components/LngDemandModal.vue b/src/views/dayPlan/LngDemand/components/LngDemandModal.vue new file mode 100644 index 0000000..168dd47 --- /dev/null +++ b/src/views/dayPlan/LngDemand/components/LngDemandModal.vue @@ -0,0 +1,110 @@ + + \ No newline at end of file diff --git a/src/views/dayPlan/LngDemand/components/config.ts b/src/views/dayPlan/LngDemand/components/config.ts new file mode 100644 index 0000000..86b24e7 --- /dev/null +++ b/src/views/dayPlan/LngDemand/components/config.ts @@ -0,0 +1,856 @@ +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: 'verNo', + label: '版本号', + component: 'Input', + }, + { + field: 'datePlan', + label: '计划日期', + component: 'Input', + }, + { + field: 'staCode', + label: '气源地', + component: 'Input', + }, + { + field: 'noTractor', + label: '车头号', + component: 'Input', + }, + { + field: 'noTrailer', + label: '挂车号', + component: 'Input', + }, + { + field: 'idNoDriver', + label: '驾驶员身份证号', + component: 'Input', + }, + { + field: 'nameDriver', + label: '驾驶员姓名', + component: 'Input', + }, + { + field: 'phoneDriver', + label: '驾驶员手机号', + component: 'Input', + }, + { + field: 'idNoEscort', + label: '押运员身份证号', + component: 'Input', + }, + { + field: 'nameEscort', + label: '押运员姓名', + component: 'Input', + }, + { + field: 'phoneEscort', + label: '押运员手机号', + component: 'Input', + }, + { + field: 'carrCode', + label: '承运商', + component: 'Input', + }, + { + field: 'ksId', + label: '合同', + component: 'Input', + }, + { + field: 'alterSign', + label: '变更', + component: 'Input', + }, + { + field: 'approCode', + label: '审批状态', + component: 'Input', + }, +]; + +export const columns: BasicColumn[] = [ + { + dataIndex: 'id', + title: 'id', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'verNo', + title: '版本号', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'datePlan', + title: '计划日期', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'staCode', + title: '气源地', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'noTractor', + title: '车头号', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'noTrailer', + title: '挂车号', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'idNoDriver', + title: '驾驶员身份证号', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'nameDriver', + title: '驾驶员姓名', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'phoneDriver', + title: '驾驶员手机号', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'idNoEscort', + title: '押运员身份证号', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'nameEscort', + title: '押运员姓名', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'phoneEscort', + title: '押运员手机号', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'carrCode', + title: '承运商', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'ksId', + title: '合同', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'alterSign', + title: '变更', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'approCode', + 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: '62e7c95288384177affa00a0b7bbcefa', + 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: 'f9e02d8b77224215bab35c2e3af02fb0', + field: 'verNo', + 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: '7379aadd740640c8a54f299cd9233604', + field: 'datePlan', + 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: '141523e84ae3405083752b9c34a2d4a3', + field: 'staCode', + label: '气源地', + type: 'input', + component: 'Input', + colProps: { span: 24 }, + defaultValue: '', + componentProps: { + width: '100%', + span: '', + defaultValue: '', + labelWidthMode: 'fix', + labelFixWidth: 120, + responsive: false, + respNewRow: false, + placeholder: '请输入气源地', + 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: '1588fe37015f4ed588342b95837a291f', + field: 'noTractor', + 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: '33634c5afc634b13b63087aa829eb924', + field: 'noTrailer', + 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: 'e102110aa89f4e00a70a4cf47deae1a6', + field: 'idNoDriver', + 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: 'e12b5f134dac47faa15523e214fc7211', + field: 'nameDriver', + 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: 'acd29acf4d0a4e61849cc07746449ecb', + field: 'phoneDriver', + 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: '24c6039bb1b3492fbd4be3857c16479b', + field: 'idNoEscort', + 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: '902cac2e5e4349e9964c8d92b790685f', + field: 'nameEscort', + 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: 'ec115c81e9914512a13966d42f1f26a5', + field: 'phoneEscort', + 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: 'd5f99995b7134f45b6964b07fd7cf64d', + field: 'carrCode', + 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: '45f07ffc66294707840959a25ddb5d61', + field: 'ksId', + 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: '05c45785782046a384d0e66e77ff9564', + field: 'alterSign', + 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: 'da0a856dbeb54eada42e4064ede1f9ed', + 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%' }, + }, + }, + ], + showActionButtonGroup: false, + buttonLocation: 'center', + actionColOptions: { span: 24 }, + showResetButton: false, + showSubmitButton: false, + hiddenComponent: [], +}; \ No newline at end of file diff --git a/src/views/dayPlan/LngDemand/components/workflowPermission.ts b/src/views/dayPlan/LngDemand/components/workflowPermission.ts new file mode 100644 index 0000000..06aa72d --- /dev/null +++ b/src/views/dayPlan/LngDemand/components/workflowPermission.ts @@ -0,0 +1,242 @@ +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: '62e7c95288384177affa00a0b7bbcefa', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '版本号', + fieldId: 'verNo', + isSubTable: false, + showChildren: true, + type: 'input', + key: 'f9e02d8b77224215bab35c2e3af02fb0', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '计划日期', + fieldId: 'datePlan', + isSubTable: false, + showChildren: true, + type: 'input', + key: '7379aadd740640c8a54f299cd9233604', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '气源地', + fieldId: 'staCode', + isSubTable: false, + showChildren: true, + type: 'input', + key: '141523e84ae3405083752b9c34a2d4a3', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '车头号', + fieldId: 'noTractor', + isSubTable: false, + showChildren: true, + type: 'input', + key: '1588fe37015f4ed588342b95837a291f', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '挂车号', + fieldId: 'noTrailer', + isSubTable: false, + showChildren: true, + type: 'input', + key: '33634c5afc634b13b63087aa829eb924', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '驾驶员身份证号', + fieldId: 'idNoDriver', + isSubTable: false, + showChildren: true, + type: 'input', + key: 'e102110aa89f4e00a70a4cf47deae1a6', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '驾驶员姓名', + fieldId: 'nameDriver', + isSubTable: false, + showChildren: true, + type: 'input', + key: 'e12b5f134dac47faa15523e214fc7211', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '驾驶员手机号', + fieldId: 'phoneDriver', + isSubTable: false, + showChildren: true, + type: 'input', + key: 'acd29acf4d0a4e61849cc07746449ecb', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '押运员身份证号', + fieldId: 'idNoEscort', + isSubTable: false, + showChildren: true, + type: 'input', + key: '24c6039bb1b3492fbd4be3857c16479b', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '押运员姓名', + fieldId: 'nameEscort', + isSubTable: false, + showChildren: true, + type: 'input', + key: '902cac2e5e4349e9964c8d92b790685f', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '押运员手机号', + fieldId: 'phoneEscort', + isSubTable: false, + showChildren: true, + type: 'input', + key: 'ec115c81e9914512a13966d42f1f26a5', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '承运商', + fieldId: 'carrCode', + isSubTable: false, + showChildren: true, + type: 'input', + key: 'd5f99995b7134f45b6964b07fd7cf64d', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '合同', + fieldId: 'ksId', + isSubTable: false, + showChildren: true, + type: 'input', + key: '45f07ffc66294707840959a25ddb5d61', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '变更', + fieldId: 'alterSign', + isSubTable: false, + showChildren: true, + type: 'input', + key: '05c45785782046a384d0e66e77ff9564', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '审批状态', + fieldId: 'approCode', + isSubTable: false, + showChildren: true, + type: 'input', + key: 'da0a856dbeb54eada42e4064ede1f9ed', + children: [], + }, +]; \ No newline at end of file diff --git a/src/views/dayPlan/LngDemand/index.vue b/src/views/dayPlan/LngDemand/index.vue new file mode 100644 index 0000000..1237682 --- /dev/null +++ b/src/views/dayPlan/LngDemand/index.vue @@ -0,0 +1,436 @@ + + + \ No newline at end of file diff --git a/src/views/dayPlan/LngMeasurePur/components/Form.vue b/src/views/dayPlan/LngMeasurePur/components/Form.vue new file mode 100644 index 0000000..6cb4901 --- /dev/null +++ b/src/views/dayPlan/LngMeasurePur/components/Form.vue @@ -0,0 +1,224 @@ + + \ No newline at end of file diff --git a/src/views/dayPlan/LngMeasurePur/components/LngMeasurePurModal.vue b/src/views/dayPlan/LngMeasurePur/components/LngMeasurePurModal.vue new file mode 100644 index 0000000..168dd47 --- /dev/null +++ b/src/views/dayPlan/LngMeasurePur/components/LngMeasurePurModal.vue @@ -0,0 +1,110 @@ + + \ No newline at end of file diff --git a/src/views/dayPlan/LngMeasurePur/components/config.ts b/src/views/dayPlan/LngMeasurePur/components/config.ts new file mode 100644 index 0000000..0cd3823 --- /dev/null +++ b/src/views/dayPlan/LngMeasurePur/components/config.ts @@ -0,0 +1,959 @@ +import { FormProps, FormSchema } from '/@/components/Form'; +import { BasicColumn } from '/@/components/Table'; + +export const formConfig = { + useCustomConfig: false, +}; + +export const searchFormSchema: FormSchema[] = [ + { + field: 'datePlan', + label: '计划日期', + component: 'RangePicker', + componentProps: { + format: 'YYYY-MM-DD', + style: { width: '100%' }, + getPopupContainer: () => document.body, + }, + }, + { + field: 'noTractor', + label: '车头号', + component: 'Input', + }, + { + field: 'noTrailer', + label: '挂车号', + component: 'Input', + }, +]; + +export const columns: BasicColumn[] = [ + { + dataIndex: 'datePlan', + title: '计划日期', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'cuSname', + title: '客户简称', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'staCode', + title: '气源地', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'noTractor', + title: '车头号', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'noTrailer', + title: '挂车号', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'qtyTonLoading', + title: '装车量(吨)', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'tenantId', + title: '装车量(吉焦)', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'modifyDate', + title: '装车量(方)', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'timeIn', + title: '进厂皮重时间', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'timeOut', + title: '出厂毛重时间', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'cfmCuUserName', + title: '客户确认人', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'cfmCuUserTime', + title: '客户确认时间', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'cfmEmpName', + title: '内部确认人', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'cfmEmpTime', + title: '内部确认时间', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'ksName', + title: '销售合同', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'suName', + title: '供应商', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'lngFileUploadList', + title: '附件', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'statusName', + title: '状态', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'rejNote', + 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: 'c5c1f39d27744ebbbed513034eb56860', + 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: '5859936dd593445983526a9146e62318', + field: 'datePlan', + 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: 'cc25e1269f4140e7a7de12d96e33245a', + field: 'cuCode', + 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: '8f4aeac342174f76ba159a43b72012f1', + field: 'staCode', + label: '气源地', + type: 'input', + component: 'Input', + colProps: { span: 24 }, + defaultValue: '', + componentProps: { + width: '100%', + span: '', + defaultValue: '', + labelWidthMode: 'fix', + labelFixWidth: 120, + responsive: false, + respNewRow: false, + placeholder: '请输入气源地', + 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: '5106664e8edb4f69b08a2b626a3029f1', + field: 'noTractor', + 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: '9e8daa4a64d94884bac345bde75538c6', + field: 'noTrailer', + 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: '31a73a7f957f4e528c99c9b894c3fab1', + field: 'qtyTonLoading', + 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: 'c411da1b72e54f4281e835fad6fff2e9', + field: 'tenantId', + 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: '1c1a43ba5b584ea39cadec4687251d6a', + field: 'modifyDate', + 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: 'e5cde95e2fa843499a960503b87cc68f', + field: 'timeIn', + 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: '4cf71c6eecfa46c3b9b440a17321a06a', + field: 'timeOut', + 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: 'bf66a91db1de4cc9af5899da46261052', + field: 'cfmCuUserId', + 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: '8f5a71d9ef9f4454b1e072e86be6b404', + field: 'cfmCuUserTime', + 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: '3b74052f58c64b9cac1dbfccb9311d04', + field: 'cfmEmpId', + 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: '7620fb5bd75e45d196bbe5c70504921b', + field: 'cfmEmpTime', + 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: '003de0e5925d4ee6a8cbe0103e918efd', + field: 'ksId', + 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: 'b0641611f37d49bebbd091383618ca20', + field: 'suCode', + label: '供应商', + type: 'input', + component: 'Input', + colProps: { span: 24 }, + defaultValue: '', + componentProps: { + width: '100%', + span: '', + defaultValue: '', + labelWidthMode: 'fix', + labelFixWidth: 120, + responsive: false, + respNewRow: false, + placeholder: '请输入供应商', + 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: 'c3cba66626bd4808b357c5913a1a0781', + field: 'createUserId', + 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: 'db437c92d26d4517beac2b862136596d', + field: 'salesId', + 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: '7ec0f0dcdc1c4beba52673a7699a1665', + field: 'rejNote', + 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%' }, + }, + }, + ], + showActionButtonGroup: false, + buttonLocation: 'center', + actionColOptions: { span: 24 }, + showResetButton: false, + showSubmitButton: false, + hiddenComponent: [], +}; \ No newline at end of file diff --git a/src/views/dayPlan/LngMeasurePur/components/workflowPermission.ts b/src/views/dayPlan/LngMeasurePur/components/workflowPermission.ts new file mode 100644 index 0000000..f3dcc75 --- /dev/null +++ b/src/views/dayPlan/LngMeasurePur/components/workflowPermission.ts @@ -0,0 +1,302 @@ +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: 'c5c1f39d27744ebbbed513034eb56860', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '计划日期', + fieldId: 'datePlan', + isSubTable: false, + showChildren: true, + type: 'input', + key: '5859936dd593445983526a9146e62318', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '客户简称', + fieldId: 'cuCode', + isSubTable: false, + showChildren: true, + type: 'input', + key: 'cc25e1269f4140e7a7de12d96e33245a', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '气源地', + fieldId: 'staCode', + isSubTable: false, + showChildren: true, + type: 'input', + key: '8f4aeac342174f76ba159a43b72012f1', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '车头号', + fieldId: 'ruleUserId', + isSubTable: false, + showChildren: true, + type: 'input', + key: '5106664e8edb4f69b08a2b626a3029f1', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '挂车号', + fieldId: 'deptId', + isSubTable: false, + showChildren: true, + type: 'input', + key: '9e8daa4a64d94884bac345bde75538c6', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '装车量(吨)', + fieldId: 'qtyTonLoading', + isSubTable: false, + showChildren: true, + type: 'input', + key: '31a73a7f957f4e528c99c9b894c3fab1', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '装车量(吉焦)', + fieldId: 'tenantId', + isSubTable: false, + showChildren: true, + type: 'input', + key: 'c411da1b72e54f4281e835fad6fff2e9', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '装车量(方)', + fieldId: 'modifyDate', + isSubTable: false, + showChildren: true, + type: 'input', + key: '1c1a43ba5b584ea39cadec4687251d6a', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '进厂皮重时间', + fieldId: 'timeIn', + isSubTable: false, + showChildren: true, + type: 'input', + key: 'e5cde95e2fa843499a960503b87cc68f', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '出厂毛重时间', + fieldId: 'timeOut', + isSubTable: false, + showChildren: true, + type: 'input', + key: '4cf71c6eecfa46c3b9b440a17321a06a', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '客户确认人', + fieldId: 'cfmCuUserId', + isSubTable: false, + showChildren: true, + type: 'input', + key: 'bf66a91db1de4cc9af5899da46261052', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '客户确认时间', + fieldId: 'cfmCuUserTime', + isSubTable: false, + showChildren: true, + type: 'input', + key: '8f5a71d9ef9f4454b1e072e86be6b404', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '内部确认人', + fieldId: 'cfmEmpId', + isSubTable: false, + showChildren: true, + type: 'input', + key: '3b74052f58c64b9cac1dbfccb9311d04', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '内部确认时间', + fieldId: 'cfmEmpTime', + isSubTable: false, + showChildren: true, + type: 'input', + key: '7620fb5bd75e45d196bbe5c70504921b', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '销售合同', + fieldId: 'ksId', + isSubTable: false, + showChildren: true, + type: 'input', + key: '003de0e5925d4ee6a8cbe0103e918efd', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '供应商', + fieldId: 'suCode', + isSubTable: false, + showChildren: true, + type: 'input', + key: 'b0641611f37d49bebbd091383618ca20', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '附件', + fieldId: 'createUserId', + isSubTable: false, + showChildren: true, + type: 'input', + key: 'c3cba66626bd4808b357c5913a1a0781', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '状态', + fieldId: 'salesId', + isSubTable: false, + showChildren: true, + type: 'input', + key: 'db437c92d26d4517beac2b862136596d', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '驳回意见', + fieldId: 'rejNote', + isSubTable: false, + showChildren: true, + type: 'input', + key: '7ec0f0dcdc1c4beba52673a7699a1665', + children: [], + }, +]; \ No newline at end of file diff --git a/src/views/dayPlan/LngMeasurePur/index.vue b/src/views/dayPlan/LngMeasurePur/index.vue new file mode 100644 index 0000000..1fa688a --- /dev/null +++ b/src/views/dayPlan/LngMeasurePur/index.vue @@ -0,0 +1,249 @@ + + + \ No newline at end of file diff --git a/src/views/dayPlan/LngMeasureSales/components/Form.vue b/src/views/dayPlan/LngMeasureSales/components/Form.vue new file mode 100644 index 0000000..e8ab698 --- /dev/null +++ b/src/views/dayPlan/LngMeasureSales/components/Form.vue @@ -0,0 +1,224 @@ + + \ No newline at end of file diff --git a/src/views/dayPlan/LngMeasureSales/components/LngMeasureSalesModal.vue b/src/views/dayPlan/LngMeasureSales/components/LngMeasureSalesModal.vue new file mode 100644 index 0000000..168dd47 --- /dev/null +++ b/src/views/dayPlan/LngMeasureSales/components/LngMeasureSalesModal.vue @@ -0,0 +1,110 @@ + + \ No newline at end of file diff --git a/src/views/dayPlan/LngMeasureSales/components/config.ts b/src/views/dayPlan/LngMeasureSales/components/config.ts new file mode 100644 index 0000000..9d80f40 --- /dev/null +++ b/src/views/dayPlan/LngMeasureSales/components/config.ts @@ -0,0 +1,916 @@ +import { FormProps, FormSchema } from '/@/components/Form'; +import { BasicColumn } from '/@/components/Table'; + +export const formConfig = { + useCustomConfig: false, +}; + +export const searchFormSchema: FormSchema[] = [ + { + field: 'datePlan', + label: '计划日期', + component: 'RangePicker', + componentProps: { + format: 'YYYY-MM-DD', + style: { width: '100%' }, + getPopupContainer: () => document.body, + }, + }, + { + field: 'noTractor', + label: '车头号', + component: 'Input', + }, + { + field: 'noTrailer', + label: '挂车号', + component: 'Input', + }, +]; + +export const columns: BasicColumn[] = [ + { + dataIndex: 'datePlan', + title: '计划日期', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'staName', + title: '气源地', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'noTractor', + title: '车头号', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'noTrailer', + title: '挂车号', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'qtyTonLoading', + title: '装车量(吨)', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'xCode', + title: '装车量(吉焦)', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'tenantId', + title: '装车量(方)', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'timeIn', + title: '进厂皮重时间', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'timeOut', + title: '出厂毛重时间', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'lngFileUploadList', + title: '附件', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'cfmCuUserName', + title: '确认人', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'cfmCuUserTime', + title: '确认时间', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'cfmEmpName', + title: '业务确认人', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'cfmEmpTime', + title: '业务确认时间', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'suName', + title: '供应商', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'ksName', + title: '合同', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'statusName', + title: '状态', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'rejNote', + 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: '95d6bc611b0342a4ba2dba2a36846f1b', + 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: '7ade44e48cfe43d4afa169ac0c24fcac', + field: 'datePlan', + 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: 'e4d5c79f535643d787781037794d3c4a', + field: 'staCode', + label: '气源地', + type: 'input', + component: 'Input', + colProps: { span: 24 }, + defaultValue: '', + componentProps: { + width: '100%', + span: '', + defaultValue: '', + labelWidthMode: 'fix', + labelFixWidth: 120, + responsive: false, + respNewRow: false, + placeholder: '请输入气源地', + 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: '6acfc13a4ee644fc9a21fe559ff6e4b1', + field: 'ruleUserId', + 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: 'e67f82c060dc4a2aa66562dc54a138d2', + field: 'deptId', + 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: 'ff9eb1b13e084b98a484c815d3b9ef4b', + field: 'qtyTonLoading', + 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: '39be336930534ba093f096e10dc00c20', + field: 'xCode', + 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: '5813887b882c403e81e9ef9c84642b80', + field: 'tenantId', + 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: '61483ef2b9e74c32afa49aa274a1acfc', + field: 'timeIn', + 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: 'b6518273c6f44b3cab5623ed9ed724ce', + field: 'timeOut', + 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: '80b7352a535e4e08b44f602853d8028e', + field: 'createUserId', + 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: '3c52c47746cd433381658a01416fd8e8', + field: 'cfmCuUserId', + 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: '5cfa9db4c71648a4aec36bf92e18b783', + field: 'cfmCuUserTime', + 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: '0c6332d5478547bb91f6074ae65f58e1', + field: 'cfmEmpId', + 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: 'f8696d9cebe44347815543a7c8086f12', + field: 'cfmEmpTime', + 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: '8c9ac9a67ae34b8fafd4eeb04cf9d3e6', + field: 'suCode', + label: '供应商', + type: 'input', + component: 'Input', + colProps: { span: 24 }, + defaultValue: '', + componentProps: { + width: '100%', + span: '', + defaultValue: '', + labelWidthMode: 'fix', + labelFixWidth: 120, + responsive: false, + respNewRow: false, + placeholder: '请输入供应商', + 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: 'd4b840b57ec2419abbbea9f7714f2506', + field: 'ksId', + 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: '9f93abdc67ff41b8bb8fa533715c3969', + field: 'modifyDate', + 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: 'e1ec4f5405864ad5a23fa5c19f49d9e4', + field: 'rejNote', + 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%' }, + }, + }, + ], + showActionButtonGroup: false, + buttonLocation: 'center', + actionColOptions: { span: 24 }, + showResetButton: false, + showSubmitButton: false, + hiddenComponent: [], +}; \ No newline at end of file diff --git a/src/views/dayPlan/LngMeasureSales/components/workflowPermission.ts b/src/views/dayPlan/LngMeasureSales/components/workflowPermission.ts new file mode 100644 index 0000000..120b6d9 --- /dev/null +++ b/src/views/dayPlan/LngMeasureSales/components/workflowPermission.ts @@ -0,0 +1,287 @@ +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: '95d6bc611b0342a4ba2dba2a36846f1b', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '计划日期', + fieldId: 'datePlan', + isSubTable: false, + showChildren: true, + type: 'input', + key: '7ade44e48cfe43d4afa169ac0c24fcac', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '气源地', + fieldId: 'staCode', + isSubTable: false, + showChildren: true, + type: 'input', + key: 'e4d5c79f535643d787781037794d3c4a', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '车头号', + fieldId: 'ruleUserId', + isSubTable: false, + showChildren: true, + type: 'input', + key: '6acfc13a4ee644fc9a21fe559ff6e4b1', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '挂车号', + fieldId: 'deptId', + isSubTable: false, + showChildren: true, + type: 'input', + key: 'e67f82c060dc4a2aa66562dc54a138d2', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '装车量(吨)', + fieldId: 'qtyTonLoading', + isSubTable: false, + showChildren: true, + type: 'input', + key: 'ff9eb1b13e084b98a484c815d3b9ef4b', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '装车量(吉焦)', + fieldId: 'xCode', + isSubTable: false, + showChildren: true, + type: 'input', + key: '39be336930534ba093f096e10dc00c20', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '装车量(方)', + fieldId: 'tenantId', + isSubTable: false, + showChildren: true, + type: 'input', + key: '5813887b882c403e81e9ef9c84642b80', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '进厂皮重时间', + fieldId: 'timeIn', + isSubTable: false, + showChildren: true, + type: 'input', + key: '61483ef2b9e74c32afa49aa274a1acfc', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '出厂毛重时间', + fieldId: 'timeOut', + isSubTable: false, + showChildren: true, + type: 'input', + key: 'b6518273c6f44b3cab5623ed9ed724ce', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '附件', + fieldId: 'createUserId', + isSubTable: false, + showChildren: true, + type: 'input', + key: '80b7352a535e4e08b44f602853d8028e', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '确认人', + fieldId: 'cfmCuUserId', + isSubTable: false, + showChildren: true, + type: 'input', + key: '3c52c47746cd433381658a01416fd8e8', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '确认时间', + fieldId: 'cfmCuUserTime', + isSubTable: false, + showChildren: true, + type: 'input', + key: '5cfa9db4c71648a4aec36bf92e18b783', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '业务确认人', + fieldId: 'cfmEmpId', + isSubTable: false, + showChildren: true, + type: 'input', + key: '0c6332d5478547bb91f6074ae65f58e1', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '业务确认时间', + fieldId: 'cfmEmpTime', + isSubTable: false, + showChildren: true, + type: 'input', + key: 'f8696d9cebe44347815543a7c8086f12', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '供应商', + fieldId: 'suCode', + isSubTable: false, + showChildren: true, + type: 'input', + key: '8c9ac9a67ae34b8fafd4eeb04cf9d3e6', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '合同', + fieldId: 'ksId', + isSubTable: false, + showChildren: true, + type: 'input', + key: 'd4b840b57ec2419abbbea9f7714f2506', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '状态', + fieldId: 'modifyDate', + isSubTable: false, + showChildren: true, + type: 'input', + key: '9f93abdc67ff41b8bb8fa533715c3969', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '驳回意见', + fieldId: 'rejNote', + isSubTable: false, + showChildren: true, + type: 'input', + key: 'e1ec4f5405864ad5a23fa5c19f49d9e4', + children: [], + }, +]; \ No newline at end of file diff --git a/src/views/dayPlan/LngMeasureSales/index.vue b/src/views/dayPlan/LngMeasureSales/index.vue new file mode 100644 index 0000000..4780035 --- /dev/null +++ b/src/views/dayPlan/LngMeasureSales/index.vue @@ -0,0 +1,290 @@ + + + \ No newline at end of file diff --git a/src/views/dayPlan/PngMeasurePur/components/config.ts b/src/views/dayPlan/PngMeasurePur/components/config.ts index cad29ff..beadffe 100644 --- a/src/views/dayPlan/PngMeasurePur/components/config.ts +++ b/src/views/dayPlan/PngMeasurePur/components/config.ts @@ -70,11 +70,11 @@ export const columns: BasicColumn[] = [ }, { - dataIndex: 'cuName', + dataIndex: 'cuSname', title: '客户', componentType: 'input', align: 'left', - width: 200, + width: 150, sorter: true, }, @@ -83,12 +83,12 @@ export const columns: BasicColumn[] = [ title: '下载点', componentType: 'input', align: 'left', - width: 150, + width: 130, sorter: true, }, { - dataIndex: 'suName', + dataIndex: 'suSname', title: '供应商', componentType: 'input', align: 'left', @@ -101,7 +101,7 @@ export const columns: BasicColumn[] = [ title: '上载点', componentType: 'input', align: 'left', - width: 150, + width: 130, sorter: true, }, diff --git a/src/views/dayPlan/PngMeasureSalesPur/components/config.ts b/src/views/dayPlan/PngMeasureSalesPur/components/config.ts index d7ae498..638a65a 100644 --- a/src/views/dayPlan/PngMeasureSalesPur/components/config.ts +++ b/src/views/dayPlan/PngMeasureSalesPur/components/config.ts @@ -67,7 +67,7 @@ export const columns: BasicColumn[] = [ componentType: 'input', align: 'left', ellipsis: true, - width: 150, + width: 130, sorter: true, }, { @@ -86,7 +86,7 @@ export const columns: BasicColumn[] = [ componentType: 'input', align: 'left', ellipsis: true, - width: 150, + width: 130, sorter: true, }, diff --git a/src/views/dayPlan/PngMeasureSalesPur/components/createForm.vue b/src/views/dayPlan/PngMeasureSalesPur/components/createForm.vue index f2f1225..b5e2bac 100644 --- a/src/views/dayPlan/PngMeasureSalesPur/components/createForm.vue +++ b/src/views/dayPlan/PngMeasureSalesPur/components/createForm.vue @@ -133,8 +133,10 @@ const formState = ref({}); const isUpdate = ref(true); const showTable = ref(false) + const curCuCode = ref('') const [registerModal, { setModalProps, closeModal }] = useModalInner(async (data) => { showTable.value = true + curCuCode.value = data?.cuCode setModalProps({ confirmLoading: false }); setPagination({'limit': 1,'size': 10,'page': 1}); isUpdate.value = !!data?.isUpdate; @@ -158,7 +160,7 @@ }, immediate: false, beforeFetch: (params) => { - return { ...params,...formState.value,page:params.limit}; + return { ...params,...formState.value,page:params.limit,cuCode: curCuCode.value}; }, rowSelection: { type: 'checkbox', @@ -173,7 +175,7 @@ await nextTick(); await nextTick(); nextTick(() => { - reload({searchInfo:{'limit':1,'size':10,'page':1}}); + reload({searchInfo:{'limit':1,'size':10,'page':1,cuCode: curCuCode.value}}); }); } }; diff --git a/src/views/dayPlan/PngMeasureSalesPur/index.vue b/src/views/dayPlan/PngMeasureSalesPur/index.vue index 0d03f3b..1b5d0ca 100644 --- a/src/views/dayPlan/PngMeasureSalesPur/index.vue +++ b/src/views/dayPlan/PngMeasureSalesPur/index.vue @@ -80,6 +80,11 @@ import { DeleteOutlined } from '@ant-design/icons-vue'; import createFormModal from './components/createForm.vue' import { DataFormat, FormatOption, DATE_FORMAT, FormatType } from '/@/utils/dataFormat'; + import { getCompDept } from '/@/api/approve/Appro'; + import { useUserStore } from '/@/store/modules/user'; + const userStore = useUserStore(); + const userInfo = userStore.getUserInfo; + const curCuCode = ref('') const { bus, CREATE_FLOW, FLOW_PROCESSED, FORM_LIST_MODIFIED } = useEventBus(); @@ -158,8 +163,9 @@ fieldMapToTime: [['dateMea', ['dateMeaStart', 'dateMeaEnd'], 'YYYY-MM-DD']], showResetButton: true, }, + immediate: false, beforeFetch: (params) => { - return { ...params, FormId: formIdComputedRef.value, PK: 'id',page: params.limit}; + return { ...params, FormId: formIdComputedRef.value, PK: 'id',page: params.limit,cuCode:curCuCode.value }; }, afterFetch: (res) => { tableData.value = res || [] @@ -231,7 +237,7 @@ handleSuccess() } function handleAdd() { - openModalForm(true,{isUpdate: false}); + openModalForm(true,{isUpdate: false, cuCode: curCuCode.value}); } async function handleReject() { if (!selectedRowsData.value.length) { @@ -434,8 +440,10 @@ function handleImportSuccess(){ reload() } - onMounted(() => { - + onMounted(async() => { + const res = await getCompDept(userInfo.id) + curCuCode.value = res?.comp?.cuCode + reload({searchInfo:{'limit':1,'size':10,'page':1}}); if (schemaIdComputedRef.value) { bus.on(FLOW_PROCESSED, handleRefresh); bus.on(CREATE_FLOW, handleRefresh); diff --git a/src/views/ship/OpsPurInt/components/createForm.vue b/src/views/ship/OpsPurInt/components/createForm.vue index 653da03..d569aab 100644 --- a/src/views/ship/OpsPurInt/components/createForm.vue +++ b/src/views/ship/OpsPurInt/components/createForm.vue @@ -357,7 +357,7 @@ - + @@ -696,6 +696,10 @@ formState.rateEx = data.rateEx formState.priceCurrEst = data.priceCurrEst formState.amountCurrEst = data.amountCurrEst + + if (pageSource.value) { + getOptionParams() + } } catch (error) { spinning.value = false } @@ -705,7 +709,7 @@ formState.kName = val[0].kName formState.comId = val[0].comId formState.suCode = val[0].suCode - formState.suName = val[0].suName + formState.suName = val[0].suSname formState.longSpotCode = val[0].longSpotCode formState.prcTermCode = val[0].prcTermCode formState.sourceName = val[0].sourceName diff --git a/src/views/ship/OpsSalesInt/components/createForm.vue b/src/views/ship/OpsSalesInt/components/createForm.vue index 3a689be..56d4cde 100644 --- a/src/views/ship/OpsSalesInt/components/createForm.vue +++ b/src/views/ship/OpsSalesInt/components/createForm.vue @@ -326,7 +326,7 @@ - + @@ -660,6 +660,10 @@ formState.rateEx = data.rateEx formState.priceCurrEst = data.priceCurrEst formState.amountCurrEst = data.amountCurrEst + + if (pageSource.value) { + getOptionParams() + } } catch (error) { spinning.value = false } diff --git a/src/views/ship/ShipSchedule/components/createForm.vue b/src/views/ship/ShipSchedule/components/createForm.vue index 1f5089e..473dc54 100644 --- a/src/views/ship/ShipSchedule/components/createForm.vue +++ b/src/views/ship/ShipSchedule/components/createForm.vue @@ -424,14 +424,14 @@ } const handleSuccessSupplier = (val) => { formState.suCode = val[0].suCode - formState.suName = val[0].suName + formState.suName = val[0].suSname } const handleSuccessContractPurInt = (val) => { formState.kId = val[0].id formState.kName = val[0].kName formState.comId = val[0].comId formState.suCode = val[0].suCode - formState.suName = val[0].suName + formState.suName = val[0].suSname formState.longSpotCode = val[0].longSpotCode formState.prcTermCode = val[0].prcTermCode formState.sourceName = val[0].sourceName