diff --git a/src/api/dayPlan/Demand/index.ts b/src/api/dayPlan/Demand/index.ts index 6ac326a..e706a2a 100644 --- a/src/api/dayPlan/Demand/index.ts +++ b/src/api/dayPlan/Demand/index.ts @@ -3,17 +3,91 @@ import { defHttp } from '/@/utils/http/axios'; import { ErrorMessageMode } from '/#/axios'; enum Api { - Page = '/dayPlan/demand/page', + // Page = '/dayPlan/demand/page', + Page = '/magic-api/dayPlan/pngDemandPageList', List = '/dayPlan/demand/list', Info = '/dayPlan/demand/info', LngPngDemand = '/dayPlan/demand', - - + ContractList ='/magic-api/dayPlan/queryPngDemandContractList', + PointDelyList ='/magic-api/dayPlan/queryPngDemandPointDely', + ContractQty = '/magic-api/dayPlan/queryPngDemandContractQty', + PurList = '/magic-api/dayPlan/queryPngDemandPurList', + Rate = '/magic-api/dayPlan/queryPngDemandRate', + saveAndSubmit = '/dayPlan/demand/saveAndSubmit', Export = '/dayPlan/demand/export', DataLog = '/dayPlan/demand/datalog', } +export async function submitLngPngDemand(lngPngDemand: Recordable, mode: ErrorMessageMode = 'modal') { + return defHttp.post( + { + url: Api.saveAndSubmit, + params: lngPngDemand, + }, + { + errorMessageMode: mode, + }, + ); +} +export async function getLngPngDemandRate(params, mode: ErrorMessageMode = 'modal') { + return defHttp.get( + { + url: Api.Rate, + params: params, + }, + { + errorMessageMode: mode, + }, + ); +} +export async function getLngPngDemandPurList(params, mode: ErrorMessageMode = 'modal') { + return defHttp.get( + { + url: Api.PurList, + params: params, + }, + { + errorMessageMode: mode, + }, + ); +} +export async function getLngPngDemandContractQty(params, mode: ErrorMessageMode = 'modal') { + return defHttp.get( + { + url: Api.ContractQty, + params: params, + }, + { + errorMessageMode: mode, + }, + ); +} +export async function getLngPngDemandPointDely(params, mode: ErrorMessageMode = 'modal') { + return defHttp.get( + { + url: Api.PointDelyList, + params: params, + }, + { + errorMessageMode: mode, + }, + ); +} +/** + * @description: 获取LngPngDemand信息 + */ +export async function getLngPngDemandContractList(params, mode: ErrorMessageMode = 'modal') { + return defHttp.get( + { + url: Api.ContractList, + params: params, + }, + { + errorMessageMode: mode, + }, + ); +} /** * @description: 查询LngPngDemand分页列表 diff --git a/src/components/RichTextEditor/src/RichTextEditor.vue b/src/components/RichTextEditor/src/RichTextEditor.vue index bb09850..d64f288 100644 --- a/src/components/RichTextEditor/src/RichTextEditor.vue +++ b/src/components/RichTextEditor/src/RichTextEditor.vue @@ -88,4 +88,7 @@ :deep(.w-e-text-container) { background-color: v-bind("props.disabled ? '#f5f5f5': '#fff'"); } + :deep(.w-e-text p img) { + margin: 0 auto; + } diff --git a/src/components/common/ContractDemandListModal.vue b/src/components/common/ContractDemandListModal.vue new file mode 100644 index 0000000..968b666 --- /dev/null +++ b/src/components/common/ContractDemandListModal.vue @@ -0,0 +1,62 @@ + + + diff --git a/src/components/common/ContractSalesListModal.vue b/src/components/common/ContractSalesListModal.vue deleted file mode 100644 index 6cbd7a8..0000000 --- a/src/components/common/ContractSalesListModal.vue +++ /dev/null @@ -1,112 +0,0 @@ - - - diff --git a/src/components/common/approListModal.vue b/src/components/common/approListModal.vue index acf29bf..3eeb939 100644 --- a/src/components/common/approListModal.vue +++ b/src/components/common/approListModal.vue @@ -21,13 +21,13 @@ ]; const columns: BasicColumn[] = [ - { dataIndex: 'title', title: '标题', align: 'left', sorter: true}, - { dataIndex: 'code', title: '编号', align: 'left', sorter: true}, - { dataIndex: 'typeName', title: '签报类型', align: 'left', sorter: true}, - { dataIndex: 'empName', title: '拟稿人', align: 'left', sorter: true}, - { dataIndex: 'bDeptName', title: '拟稿人所属部门', align: 'left', sorter: true}, - { dataIndex: 'dateAppro', title: '拟稿日期', align: 'left', sorter: true}, - { dataIndex: 'file', title: '附件', align: 'left', sorter: true}, + { dataIndex: 'title', title: '标题', align: 'left', }, + { dataIndex: 'code', title: '编号', align: 'left', }, + { dataIndex: 'typeName', title: '签报类型', align: 'left', }, + { dataIndex: 'empName', title: '拟稿人', align: 'left', }, + { dataIndex: 'bDeptName', title: '拟稿人所属部门', align: 'left', }, + { dataIndex: 'dateAppro', title: '拟稿日期', align: 'left', }, + { dataIndex: 'file', title: '附件', align: 'left', }, ]; diff --git a/src/components/common/approStatusModal.vue b/src/components/common/approStatusModal.vue index 480f409..29a4dc2 100644 --- a/src/components/common/approStatusModal.vue +++ b/src/components/common/approStatusModal.vue @@ -16,10 +16,10 @@ const { t } = useI18n(); const columns: BasicColumn[] = [ - { dataIndex: 'userName', title: '审批人', align: 'left', sorter: true }, - { dataIndex: 'createDate', title: '审批时间', align: 'left', sorter: true }, - { dataIndex: 'cfmRej', title: '通过/驳回', align: 'left', sorter: true }, - { dataIndex: 'reply', title: '驳回原因', align: 'left', sorter: true }, + { dataIndex: 'userName', title: '审批人', align: 'left', }, + { dataIndex: 'createDate', title: '审批时间', align: 'left', }, + { dataIndex: 'cfmRej', title: '通过/驳回', align: 'left', }, + { dataIndex: 'reply', title: '驳回原因', align: 'left', }, ]; const emit = defineEmits(['success', 'register']); diff --git a/src/components/common/bankListModal.vue b/src/components/common/bankListModal.vue index a619ba3..779511a 100644 --- a/src/components/common/bankListModal.vue +++ b/src/components/common/bankListModal.vue @@ -22,12 +22,12 @@ ]; const columns: BasicColumn[] = [ - { dataIndex: 'code', title: '编码', componentType: 'input', align: 'left', sorter: true}, - { dataIndex: 'fullName', title: '名称', componentType: 'input', align: 'left', sorter: true}, - { dataIndex: 'shortName', title: '简称', componentType: 'input', align: 'left', sorter: true}, - { dataIndex: 'bankCode', title: '联行号', componentType: 'input', align: 'left', sorter: true }, - { dataIndex: 'regionName', title: '所属国家和地区', componentType: 'input', align: 'left', sorter: true}, - { dataIndex: 'swift', title: 'SWIFT', componentType: 'input', align: 'left', sorter: true}, + { dataIndex: 'code', title: '编码', componentType: 'input', align: 'left', }, + { dataIndex: 'fullName', title: '名称', componentType: 'input', align: 'left', }, + { dataIndex: 'shortName', title: '简称', componentType: 'input', align: 'left', }, + { dataIndex: 'bankCode', title: '联行号', componentType: 'input', align: 'left', }, + { dataIndex: 'regionName', title: '所属国家和地区', componentType: 'input', align: 'left', }, + { dataIndex: 'swift', title: 'SWIFT', componentType: 'input', align: 'left', }, ]; const emit = defineEmits(['success', 'register']); diff --git a/src/components/common/contractFactListModal.vue b/src/components/common/contractFactListModal.vue index b3d9fdc..2dfae25 100644 --- a/src/components/common/contractFactListModal.vue +++ b/src/components/common/contractFactListModal.vue @@ -34,12 +34,12 @@ ]; const columns: BasicColumn[] = [ - { title: t('合同号'), dataIndex: 'kNo', sorter: true}, - { title: t('合同名称'), dataIndex: 'kName', sorter: true}, - { title: t('关联类别'), dataIndex: 'relTypeName', sorter: true}, - { title: t('合同类别'), dataIndex: 'kTypeName1', sorter: true}, - { title: t('承办人'), dataIndex: 'empName', sorter: true,}, - { title: t('承办部门'), dataIndex: 'bDeptName', sorter: true,}, + { title: t('合同号'), dataIndex: 'kNo', }, + { title: t('合同名称'), dataIndex: 'kName', }, + { title: t('关联类别'), dataIndex: 'relTypeName', }, + { title: t('合同类别'), dataIndex: 'kTypeName1', }, + { title: t('承办人'), dataIndex: 'empName' ,}, + { title: t('承办部门'), dataIndex: 'bDeptName' ,}, ]; diff --git a/src/components/common/contractQtyList.vue b/src/components/common/contractQtyList.vue index 6c161d3..32706e5 100644 --- a/src/components/common/contractQtyList.vue +++ b/src/components/common/contractQtyList.vue @@ -82,19 +82,19 @@ const { t } = useI18n(); const dataListContractAgree = ref([]) const columns= ref([ - { title: t('序号'), dataIndex: 'index', key: 'index', sorter: true, customRender: (column) => `${column.index + 1}` ,width: 80}, - { title: t('开始日期'), dataIndex: 'dateFrom', sorter: true, width:160}, - { title: t('结束日期'), dataIndex: 'dateTo', sorter: true, width: 160}, - { title: t('基础量/增量'), dataIndex: 'baseInc', sorter: true, width: 130}, - { title: t('优先级'), dataIndex: 'sort', sorter: true, width: 100}, - { title: t('比值(方/吉焦)'), dataIndex: 'rateM3Gj', sorter: true, width: 150}, - { title: t('月气量(吉焦)'), dataIndex: 'qtyGjMonth', sorter: true, width: 150}, - { title: t('月气量(万方)'), dataIndex: 'qtyM3Month', sorter: true, width: 150}, - { title: t('日气量(吉焦)'), dataIndex: 'qtyGjDay', sorter: true, width: 120}, - { title: t('日气量(万方)'), dataIndex: 'qtyM3Day', sorter: true, width: 120}, - { title: t('照付不议类型'), dataIndex: 'zfbyTypeCode', sorter: true, width: 120}, - { title: t('照付不议比例%/量数值'), dataIndex: 'zfbyValue', sorter: true, width: 120}, - { title: t('备注'), dataIndex: 'note', sorter: true, width: 200}, + { title: t('序号'), dataIndex: 'index', key: 'index', customRender: (column) => `${column.index + 1}` ,width: 80}, + { title: t('开始日期'), dataIndex: 'dateFrom', width:160}, + { title: t('结束日期'), dataIndex: 'dateTo', width: 160}, + { title: t('基础量/增量'), dataIndex: 'baseInc', width: 130}, + { title: t('优先级'), dataIndex: 'sort', width: 100}, + { title: t('比值(方/吉焦)'), dataIndex: 'rateM3Gj', width: 150}, + { title: t('月气量(吉焦)'), dataIndex: 'qtyGjMonth', width: 150}, + { title: t('月气量(万方)'), dataIndex: 'qtyM3Month', width: 150}, + { title: t('日气量(吉焦)'), dataIndex: 'qtyGjDay', width: 120}, + { title: t('日气量(万方)'), dataIndex: 'qtyM3Day', width: 120}, + { title: t('照付不议类型'), dataIndex: 'zfbyTypeCode', width: 120}, + { title: t('照付不议比例%/量数值'), dataIndex: 'zfbyValue', width: 120}, + { title: t('备注'), dataIndex: 'note', width: 200}, { title: t('操作'), dataIndex: 'operation', width: 80, fixed: 'right',align: 'center'}, ]); const [register, { openModal:openModal}] = useModal(); diff --git a/src/components/common/correlationApproList.vue b/src/components/common/correlationApproList.vue index caab4ed..0a85c9c 100644 --- a/src/components/common/correlationApproList.vue +++ b/src/components/common/correlationApproList.vue @@ -33,14 +33,14 @@ const { t } = useI18n(); const dataList = ref([]) const columns= ref([ - { title: t('序号'), dataIndex: 'index', key: 'index', sorter: true, customRender: (column) => `${column.index + 1}` ,width: 100}, - { title: t('标题'), dataIndex: 'title', sorter: true, width:100}, - { title: t('编号'), dataIndex: 'code', sorter: true}, - { title: t('签报类型'), dataIndex: 'typeName', sorter: true, width: 140}, - { title: t('拟稿人'), dataIndex: 'empName', sorter: true, width: 140}, - { title: t('拟稿人所属部门'), dataIndex: 'bDeptName', sorter: true, width: 140}, - { title: t('拟稿时间'), dataIndex: 'dateAppro', sorter: true, width: 140}, - { title: t('附件'), dataIndex: 'file', sorter: true, width: 140}, + { title: t('序号'), dataIndex: 'index', key: 'index', customRender: (column) => `${column.index + 1}` ,width: 100}, + { title: t('标题'), dataIndex: 'title', width:100}, + { title: t('编号'), dataIndex: 'code', }, + { title: t('签报类型'), dataIndex: 'typeName', width: 140}, + { title: t('拟稿人'), dataIndex: 'empName', width: 140}, + { title: t('拟稿人所属部门'), dataIndex: 'bDeptName', width: 140}, + { title: t('拟稿时间'), dataIndex: 'dateAppro', width: 140}, + { title: t('附件'), dataIndex: 'file', width: 140}, { title: t('操作'), dataIndex: 'operation', width: 120, fixed: 'right',align: 'center'}, ]); const [register, { openModal:openModal}] = useModal(); diff --git a/src/components/common/correlationContractFactList.vue b/src/components/common/correlationContractFactList.vue index 1ea6c90..407b93f 100644 --- a/src/components/common/correlationContractFactList.vue +++ b/src/components/common/correlationContractFactList.vue @@ -33,16 +33,16 @@ const { t } = useI18n(); const dataList = ref([]) const columns= ref([ - { title: t('序号'), dataIndex: 'index', key: 'index', sorter: true, customRender: (column) => `${column.index + 1}` ,width: 80}, - { title: t('合同号'), dataIndex: 'kNo', sorter: true, width:180}, - { title: t('合同名称'), dataIndex: 'kName', sorter: true, width: 300}, - { title: t('关联类别'), dataIndex: 'relTypeName', sorter: true, width: 100}, - { title: t('合同类别'), dataIndex: 'kTypeName1', sorter: true, width: 100}, - { title: t('合同主体'), dataIndex: 'comName', sorter: true, width: 250}, - { title: t('我方联系人'), dataIndex: 'empName', sorter: true, width: 140}, - { title: t('联系电话'), dataIndex: 'tel', sorter: true, width: 140}, - { title: t('业务部门'), dataIndex: 'bDeptName', sorter: true, width: 140}, - { title: t('附件'), dataIndex: 'file', sorter: true, width: 140}, + { title: t('序号'), dataIndex: 'index', key: 'index', customRender: (column) => `${column.index + 1}` ,width: 80}, + { title: t('合同号'), dataIndex: 'kNo', width:180}, + { title: t('合同名称'), dataIndex: 'kName', width: 300}, + { title: t('关联类别'), dataIndex: 'relTypeName', width: 100}, + { title: t('合同类别'), dataIndex: 'kTypeName1', width: 100}, + { title: t('合同主体'), dataIndex: 'comName', width: 250}, + { title: t('我方联系人'), dataIndex: 'empName', width: 140}, + { title: t('联系电话'), dataIndex: 'tel', width: 140}, + { title: t('业务部门'), dataIndex: 'bDeptName', width: 140}, + { title: t('附件'), dataIndex: 'file', width: 140}, { title: t('操作'), dataIndex: 'operation', width: 120, fixed: 'right',align: 'center'}, ]); const [register, { openModal:openModal}] = useModal(); diff --git a/src/components/common/customerListModal.vue b/src/components/common/customerListModal.vue index ab85fc3..2a1af7b 100644 --- a/src/components/common/customerListModal.vue +++ b/src/components/common/customerListModal.vue @@ -21,11 +21,11 @@ ]; const columns: BasicColumn[] = [ - { dataIndex: 'cuCode', title: '客户编码', align: 'left', sorter: true }, - { dataIndex: 'cuName', title: '客户名称', align: 'left', sorter: true }, - { dataIndex: 'cuSname', title: '客户简称', align: 'left', sorter: true }, - { dataIndex: 'dI', title: '国内/国际', align: 'left', sorter: true }, - { dataIndex: 'classCode', title: '客户分类', align: 'left', sorter: true }, + { dataIndex: 'cuCode', title: '客户编码', align: 'left', }, + { dataIndex: 'cuName', title: '客户名称', align: 'left', }, + { dataIndex: 'cuSname', title: '客户简称', align: 'left', }, + { dataIndex: 'dI', title: '国内/国际', align: 'left', }, + { dataIndex: 'classCode', title: '客户分类', align: 'left', }, ]; const emit = defineEmits(['success', 'register']); diff --git a/src/components/common/customerSupplierListModal.vue b/src/components/common/customerSupplierListModal.vue index 77b55cd..0284fce 100644 --- a/src/components/common/customerSupplierListModal.vue +++ b/src/components/common/customerSupplierListModal.vue @@ -30,11 +30,11 @@ ]; const columns: BasicColumn[] = [ - { dataIndex: 'cuCode', title: '客户编码', align: 'left', sorter: true }, - { dataIndex: 'cuName', title: '客户名称', align: 'left', sorter: true }, - { dataIndex: 'cuSname', title: '客户简称', align: 'left', sorter: true }, - { dataIndex: 'dI', title: '国内/国际', align: 'left', sorter: true }, - { dataIndex: 'classCode', title: '客户分类', align: 'left', sorter: true }, + { dataIndex: 'cuCode', title: '客户编码', align: 'left', }, + { dataIndex: 'cuName', title: '客户名称', align: 'left', }, + { dataIndex: 'cuSname', title: '客户简称', align: 'left', }, + { dataIndex: 'dI', title: '国内/国际', align: 'left', }, + { dataIndex: 'classCode', title: '客户分类', align: 'left', }, ]; const codeFormSchemaSupplier: FormSchema[] = [ @@ -42,11 +42,11 @@ ]; const columnsSupplier: BasicColumn[] = [ - { dataIndex: 'suCode', title: '供应商编码', align: 'left', sorter: true }, - { dataIndex: 'suName', title: '供应商名称', align: 'left', sorter: true }, - { dataIndex: 'suSname', title: '供应商简称', align: 'left', sorter: true }, - { dataIndex: 'dI', title: '国内/国际', align: 'left', sorter: true }, - { dataIndex: 'classCode', title: '供应商分类', align: 'left', sorter: true }, + { dataIndex: 'suCode', title: '供应商编码', align: 'left', }, + { dataIndex: 'suName', title: '供应商名称', align: 'left', }, + { dataIndex: 'suSname', title: '供应商简称', align: 'left', }, + { dataIndex: 'dI', title: '国内/国际', align: 'left', }, + { dataIndex: 'classCode', title: '供应商分类', align: 'left', }, ]; const emit = defineEmits(['success', 'register']); diff --git a/src/components/common/deptListModal.vue b/src/components/common/deptListModal.vue index 183d8b8..f63db02 100644 --- a/src/components/common/deptListModal.vue +++ b/src/components/common/deptListModal.vue @@ -30,8 +30,8 @@ ]; const columns: BasicColumn[] = [ - { dataIndex: 'name', title: '组织名称', align: 'left', sorter: true }, - { dataIndex: 'code', title: '组织编码', align: 'left', sorter: true }, + { dataIndex: 'name', title: '组织名称', align: 'left', }, + { dataIndex: 'code', title: '组织编码', align: 'left', }, ]; const emit = defineEmits(['success', 'register']); diff --git a/src/components/common/deptUserModal.vue b/src/components/common/deptUserModal.vue index f07d87d..f980bfe 100644 --- a/src/components/common/deptUserModal.vue +++ b/src/components/common/deptUserModal.vue @@ -30,10 +30,10 @@ ]; const treeData = ref([]); const columns: BasicColumn[] = [ - { dataIndex: 'name', title: '姓名', align: 'left', sorter: true }, - { dataIndex: 'genderDesc', title: '性别', align: 'left', sorter: true }, - { dataIndex: 'mobile', title: '手机号', align: 'left', sorter: true }, - { dataIndex: 'email', title: '邮箱', align: 'left', sorter: true }, + { dataIndex: 'name', title: '姓名', align: 'left', }, + { dataIndex: 'genderDesc', title: '性别', align: 'left', }, + { dataIndex: 'mobile', title: '手机号', align: 'left', }, + { dataIndex: 'email', title: '邮箱', align: 'left', }, ]; const emit = defineEmits(['success', 'register']); diff --git a/src/components/common/downloadPointModal.vue b/src/components/common/downloadPointModal.vue index 9458f60..6d96c3f 100644 --- a/src/components/common/downloadPointModal.vue +++ b/src/components/common/downloadPointModal.vue @@ -20,11 +20,11 @@ ]; const columns: BasicColumn[] = [ - { dataIndex: 'code', title: '编码', componentType: 'input', align: 'left', sorter: true}, - { dataIndex: 'fullName', title: '名称', componentType: 'input', align: 'left', sorter: true}, - { dataIndex: 'contact', title: '联系人', componentType: 'input', align: 'left', sorter: true}, - { dataIndex: 'tel', title: '电话', componentType: 'input', align: 'left', sorter: true }, - { dataIndex: 'email', title: '邮箱', componentType: 'input', align: 'left', sorter: true} + { dataIndex: 'code', title: '编码', componentType: 'input', align: 'left', }, + { dataIndex: 'fullName', title: '名称', componentType: 'input', align: 'left', }, + { dataIndex: 'contact', title: '联系人', componentType: 'input', align: 'left', }, + { dataIndex: 'tel', title: '电话', componentType: 'input', align: 'left', }, + { dataIndex: 'email', title: '邮箱', componentType: 'input', align: 'left', } ]; const emit = defineEmits(['success', 'register', 'cancel']); diff --git a/src/components/common/pointDelyDemandListModal.vue b/src/components/common/pointDelyDemandListModal.vue new file mode 100644 index 0000000..5518957 --- /dev/null +++ b/src/components/common/pointDelyDemandListModal.vue @@ -0,0 +1,62 @@ + + + diff --git a/src/components/common/rejectReplyModal.vue b/src/components/common/rejectReplyModal.vue new file mode 100644 index 0000000..c48c8e7 --- /dev/null +++ b/src/components/common/rejectReplyModal.vue @@ -0,0 +1,59 @@ + + + \ No newline at end of file diff --git a/src/components/common/supplierListModal.vue b/src/components/common/supplierListModal.vue index a696cc5..0642671 100644 --- a/src/components/common/supplierListModal.vue +++ b/src/components/common/supplierListModal.vue @@ -21,11 +21,11 @@ ]; const columns: BasicColumn[] = [ - { dataIndex: 'suCode', title: '供应商编码', align: 'left', sorter: true }, - { dataIndex: 'suName', title: '供应商名称', align: 'left', sorter: true }, - { dataIndex: 'suSname', title: '供应商简称', align: 'left', sorter: true }, - { dataIndex: 'dI', title: '国内/国际', align: 'left', sorter: true }, - { dataIndex: 'classCode', title: '供应商分类', align: 'left', sorter: true }, + { dataIndex: 'suCode', title: '供应商编码', align: 'left', }, + { dataIndex: 'suName', title: '供应商名称', align: 'left', }, + { dataIndex: 'suSname', title: '供应商简称', align: 'left', }, + { dataIndex: 'dI', title: '国内/国际', align: 'left', }, + { dataIndex: 'classCode', title: '供应商分类', align: 'left', }, ]; const emit = defineEmits(['success', 'register']); diff --git a/src/design/index.less b/src/design/index.less index 960a9d1..c33cf60 100644 --- a/src/design/index.less +++ b/src/design/index.less @@ -76,4 +76,24 @@ span { .ant-form-item-label > label { color: rgba(0, 0, 0, 0.65) !important; } +} +.ant-table-container { + .ant-table-thead > tr > th, .ant-table-tbody > tr > td, .ant-table tfoot > tr > th, .ant-table tfoot > tr > td { + padding: 0px 8px; + height: 40px; + + } + .ant-table-thead { + background: #F6F8FA; + height: 46px; + + } + .ant-table-column-title { + font-weight: bold; + color: rgba(0, 0, 0, 0.85) !important; + } + .ant-table-column-sorters { + justify-content: flex-start; + display: inline-flex; + } } \ No newline at end of file diff --git a/src/router/routes/basic.ts b/src/router/routes/basic.ts index 840806c..f3044fd 100644 --- a/src/router/routes/basic.ts +++ b/src/router/routes/basic.ts @@ -286,6 +286,14 @@ export const PAGE_CUSTOM_ROUTE: AppRouteRecordRaw[] = [{ title: (route) => route.query.formName } }, + { + path: '/dayPlan/Demand/createForm', + name: 'Demand', + component: () => import('/@/views/dayPlan/Demand/components/createForm.vue'), + meta: { + title: (route) => route.query.formName + } + }, ] diff --git a/src/views/contract/ContractFact/components/createForm.vue b/src/views/contract/ContractFact/components/createForm.vue index a3f7423..5c70e67 100644 --- a/src/views/contract/ContractFact/components/createForm.vue +++ b/src/views/contract/ContractFact/components/createForm.vue @@ -318,17 +318,17 @@ wrapperCol: { span: 16 }, } const columns= ref([ - { title: t('序号'), dataIndex: 'index', key: 'index', sorter: true, customRender: (column) => `${column.index + 1}` ,width: 100}, - { title: t('相对方名称'), dataIndex: 'cpName', sorter: true, width:200}, - { title: t('相对方顺序'), dataIndex: 'sort', sorter: true, width: 130}, - { title: t('相对方银行名称'), dataIndex: 'cpBankName', sorter: true, width: 200}, - { title: t('对方银行开户名'), dataIndex: 'cpBankAccountName', sorter: true, width: 300}, - { title: t('对方银行账号'), dataIndex: 'cpBankAccount', sorter: true, width: 200}, - { title: t('对方联系人姓名'), dataIndex: 'contactName', sorter: true, width: 200}, - { title: t('对方联系人电话'), dataIndex: 'contactTel', sorter: true, width: 200}, - { title: t('对方联系人邮箱'), dataIndex: 'contactEmail', sorter: true, width: 200}, - { title: t('对方通讯地址'), dataIndex: 'contactAddress', sorter: true, width: 200}, - { title: t('备注'), dataIndex: 'note', sorter: true, width: 200}, + { title: t('序号'), dataIndex: 'index', key: 'index', customRender: (column) => `${column.index + 1}` ,width: 100}, + { title: t('相对方名称'), dataIndex: 'cpName', width:200}, + { title: t('相对方顺序'), dataIndex: 'sort', width: 130}, + { title: t('相对方银行名称'), dataIndex: 'cpBankName', width: 200}, + { title: t('对方银行开户名'), dataIndex: 'cpBankAccountName', width: 300}, + { title: t('对方银行账号'), dataIndex: 'cpBankAccount', width: 200}, + { title: t('对方联系人姓名'), dataIndex: 'contactName', width: 200}, + { title: t('对方联系人电话'), dataIndex: 'contactTel', width: 200}, + { title: t('对方联系人邮箱'), dataIndex: 'contactEmail', width: 200}, + { title: t('对方通讯地址'), dataIndex: 'contactAddress', width: 200}, + { title: t('备注'), dataIndex: 'note', width: 200}, { title: t('操作'), dataIndex: 'operation', width: 120, fixed: 'right',align: 'center'}, ]); const dataList = ref([]) @@ -434,6 +434,9 @@ } else { rules.dateTo = [{ required: false, message: "该项为必填项", trigger: 'change' }] rules.dateFrom = [{ required: false, message: "该项为必填项", trigger: 'change' }] + + formState.dateFrom = dayjs('2000-01-01') + formState.dateTo = dayjs('2999-12-31') } } const amountTypeCodeChange = (val) => { diff --git a/src/views/contract/ContractPurPng/components/createForm.vue b/src/views/contract/ContractPurPng/components/createForm.vue index 6ebabc1..8c862fd 100644 --- a/src/views/contract/ContractPurPng/components/createForm.vue +++ b/src/views/contract/ContractPurPng/components/createForm.vue @@ -16,7 +16,7 @@ - + {{ item.name }} @@ -319,6 +319,12 @@ } }); + const periodTypeCodeChange = (val) => { + if (val !== 'Y') { + formState.dateFrom = dayjs('2000-01-01') + formState.dateTo = dayjs('2999-12-31') + } + } const uploadListChange = (val) => { dataFile.value = val } diff --git a/src/views/contract/ContractSales/components/createForm.vue b/src/views/contract/ContractSales/components/createForm.vue index 5844d39..b1bd273 100644 --- a/src/views/contract/ContractSales/components/createForm.vue +++ b/src/views/contract/ContractSales/components/createForm.vue @@ -16,7 +16,7 @@ - + {{ item.name }} @@ -113,9 +113,9 @@

交割点

- 新增 - 删除
+ 新增 + 删除 @@ -266,27 +266,27 @@ wrapperCol: { span: 16 }, } const columnsUp = ref([ - { title: t('序号'), dataIndex: 'index', key: 'index', sorter: true, customRender: (column) => `${column.index + 1}` ,width: 80}, - { title: t('交割点'), dataIndex: 'pointDelyName', sorter: true, width:150}, - { title: t('是否托运'), dataIndex: 'transName', sorter: true, width: 150}, - { title: t('供应商'), dataIndex: 'cpName', sorter: true, width: 130}, - { title: t('合同名称'), dataIndex: 'kName', sorter: true, width: 100}, - { title: t('上载点'), dataIndex: 'pointUpName', sorter: true, width: 150}, - { title: t('有效期开始'), dataIndex: 'dateFrom', sorter: true, width: 150}, - { title: t('有效期结束'), dataIndex: 'dateTo', sorter: true, width: 150}, - { title: t('备注)'), dataIndex: 'note', sorter: true, width: 180} + { title: t('序号'), dataIndex: 'index', key: 'index', customRender: (column) => `${column.index + 1}` ,width: 80}, + { title: t('交割点'), dataIndex: 'pointDelyName', width:150}, + { title: t('是否托运'), dataIndex: 'transName', width: 150}, + { title: t('供应商'), dataIndex: 'cpName', width: 130}, + { title: t('合同名称'), dataIndex: 'kName', width: 100}, + { title: t('上载点'), dataIndex: 'pointUpName', width: 150}, + { title: t('有效期开始'), dataIndex: 'dateFrom', width: 150}, + { title: t('有效期结束'), dataIndex: 'dateTo', width: 150}, + { title: t('备注)'), dataIndex: 'note', width: 180} ]) const columnsTrans = ref([ - { title: t('序号'), dataIndex: 'index', key: 'index', sorter: true, customRender: (column) => `${column.index + 1}` ,width: 80}, - { title: t('交割点'), dataIndex: 'pointDelyName', sorter: true, width:150}, - { title: t('是否托运'), dataIndex: 'transName', sorter: true, width: 150}, - { title: t('托运商'), dataIndex: 'cpName', sorter: true, width: 130}, - { title: t('合同名称'), dataIndex: 'kName', sorter: true, width: 100}, - { title: t('管输上载点'), dataIndex: 'pointUpTransName', sorter: true, width: 150}, - { title: t('管输下载点'), dataIndex: 'pointDelyTransName', sorter: true, width: 150}, - { title: t('有效期开始'), dataIndex: 'dateFrom', sorter: true, width: 150}, - { title: t('有效期结束'), dataIndex: 'dateTo', sorter: true, width: 150}, - { title: t('备注)'), dataIndex: 'note', sorter: true, width: 180} + { title: t('序号'), dataIndex: 'index', key: 'index', customRender: (column) => `${column.index + 1}` ,width: 80}, + { title: t('交割点'), dataIndex: 'pointDelyName', width:150}, + { title: t('是否托运'), dataIndex: 'transName', width: 150}, + { title: t('托运商'), dataIndex: 'cpName', width: 130}, + { title: t('合同名称'), dataIndex: 'kName', width: 100}, + { title: t('管输上载点'), dataIndex: 'pointUpTransName', width: 150}, + { title: t('管输下载点'), dataIndex: 'pointDelyTransName', width: 150}, + { title: t('有效期开始'), dataIndex: 'dateFrom', width: 150}, + { title: t('有效期结束'), dataIndex: 'dateTo', width: 150}, + { title: t('备注)'), dataIndex: 'note', width: 180} ]) const dataListContractAgree = ref([]) const dataFile = ref([]); @@ -339,6 +339,12 @@ } }); + const periodTypeCodeChange = (val) => { + if (val !== 'Y') { + formState.dateFrom = dayjs('2000-01-01') + formState.dateTo = dayjs('2999-12-31') + } + } const uploadListChange = (val) => { dataFile.value = val } @@ -470,12 +476,12 @@ purList: [] }) } - const deleteUpLoad = () => { + const deleteUpLoad = (idx) => { if (dataListPoint.value[dataListPoint.value.length -1].id) { hasDel.value = true } if (dataListPoint.value.length == 1) return - dataListPoint.value.pop() + dataListPoint.value.splice(idx, 1) } const handleSuccess = (val) => { diff --git a/src/views/dataconfig/oaNews/components/View.vue b/src/views/dataconfig/oaNews/components/View.vue index aaa3d12..382cc9e 100644 --- a/src/views/dataconfig/oaNews/components/View.vue +++ b/src/views/dataconfig/oaNews/components/View.vue @@ -58,4 +58,7 @@ font-size: 14px; height: 440px; } + :deep(.content-box p img) { + margin: 0 auto; + } diff --git a/src/views/dayPlan/Demand/components/basicForm.vue b/src/views/dayPlan/Demand/components/basicForm.vue index 5f8f3a3..770ca1d 100644 --- a/src/views/dayPlan/Demand/components/basicForm.vue +++ b/src/views/dayPlan/Demand/components/basicForm.vue @@ -1,105 +1,135 @@