From bdbffe4c308579ca1d360be37931bcf4ceafb697 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=98huanghaiixia=E2=80=99?= <980486410@.com> Date: Wed, 21 Jan 2026 17:56:35 +0800 Subject: [PATCH 1/4] =?UTF-8?q?=E5=AE=A2=E6=88=B7=E9=9C=80=E6=B1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/dayPlan/Demand/index.ts | 31 +- .../RichTextEditor/src/RichTextEditor.vue | 3 + .../common/ContractDemandListModal.vue | 63 +++ .../common/ContractSalesListModal.vue | 112 ----- .../common/upLoadDemandListModal.vue | 63 +++ src/design/index.less | 20 + src/router/routes/basic.ts | 8 + .../ContractFact/components/createForm.vue | 3 + .../ContractPurPng/components/createForm.vue | 8 +- .../ContractSales/components/createForm.vue | 16 +- .../dataconfig/oaNews/components/View.vue | 3 + .../dayPlan/Demand/components/basicForm.vue | 79 ++- src/views/dayPlan/Demand/components/config.ts | 24 +- src/views/dayPlan/Demand/index.vue | 8 +- .../dayPlan/PngAppro/components/config.ts | 147 ++++++ src/views/dayPlan/PngAppro/indexJsz.vue | 452 ++++++++++++++++++ .../PngMeasureSalesPur/components/config.ts | 2 +- src/views/secondDev/customFormConfig.ts | 1 - 18 files changed, 886 insertions(+), 157 deletions(-) create mode 100644 src/components/common/ContractDemandListModal.vue delete mode 100644 src/components/common/ContractSalesListModal.vue create mode 100644 src/components/common/upLoadDemandListModal.vue create mode 100644 src/views/dayPlan/PngAppro/indexJsz.vue diff --git a/src/api/dayPlan/Demand/index.ts b/src/api/dayPlan/Demand/index.ts index 6ac326a..6fd2ccf 100644 --- a/src/api/dayPlan/Demand/index.ts +++ b/src/api/dayPlan/Demand/index.ts @@ -3,17 +3,44 @@ 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', Export = '/dayPlan/demand/export', DataLog = '/dayPlan/demand/datalog', } +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..afddf16 --- /dev/null +++ b/src/components/common/ContractDemandListModal.vue @@ -0,0 +1,63 @@ + + + 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/upLoadDemandListModal.vue b/src/components/common/upLoadDemandListModal.vue new file mode 100644 index 0000000..afddf16 --- /dev/null +++ b/src/components/common/upLoadDemandListModal.vue @@ -0,0 +1,63 @@ + + + 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..6d01a41 100644 --- a/src/views/contract/ContractFact/components/createForm.vue +++ b/src/views/contract/ContractFact/components/createForm.vue @@ -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..87bc382 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 @@

交割点

- 新增 - 删除
+ 新增 + 删除 @@ -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..e1131a9 100644 --- a/src/views/dayPlan/Demand/components/basicForm.vue +++ b/src/views/dayPlan/Demand/components/basicForm.vue @@ -2,17 +2,17 @@ - + - + - - - {{ formState.fullName }} + + + @@ -89,17 +89,27 @@ - + + + \ No newline at end of file diff --git a/src/views/dayPlan/PngMeasureSalesPur/components/config.ts b/src/views/dayPlan/PngMeasureSalesPur/components/config.ts index bdadbe3..6f257a7 100644 --- a/src/views/dayPlan/PngMeasureSalesPur/components/config.ts +++ b/src/views/dayPlan/PngMeasureSalesPur/components/config.ts @@ -149,7 +149,7 @@ export const columns: BasicColumn[] = [ title: '客户确认时间', componentType: 'input', align: 'left', - width: 150, + width: 180, sorter: true, }, diff --git a/src/views/secondDev/customFormConfig.ts b/src/views/secondDev/customFormConfig.ts index 4d1b6f0..0785f91 100644 --- a/src/views/secondDev/customFormConfig.ts +++ b/src/views/secondDev/customFormConfig.ts @@ -8,6 +8,5 @@ export const customFormConfig = { 'contractFactApprove', 'addContractPurPng', 'addContractSales', - 'addDemand' ], }; \ No newline at end of file From 578d9b5094cbc93a1fe8e0de2448169106588ace Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=98huanghaiixia=E2=80=99?= <980486410@.com> Date: Wed, 21 Jan 2026 18:09:53 +0800 Subject: [PATCH 2/4] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../common/correlationApproList.vue | 14 +++---- .../common/correlationContractFactList.vue | 20 +++++----- .../common/upLoadDemandListModal.vue | 4 +- .../ContractFact/components/createForm.vue | 22 +++++------ .../ContractSales/components/createForm.vue | 38 +++++++++---------- .../dayPlan/PngAppro/components/basicForm.vue | 18 ++++----- .../PngAppro/components/createForm.vue | 20 ++++------ .../sales/Customer/components/createForm.vue | 12 +++--- .../sales/CustomerGroup/components/Form.vue | 10 ++--- .../sales/GradeSystem/components/Form.vue | 8 ++-- .../ScoreCustomer/components/createForm.vue | 18 ++++----- 11 files changed, 89 insertions(+), 95 deletions(-) diff --git a/src/components/common/correlationApproList.vue b/src/components/common/correlationApproList.vue index caab4ed..0b6f65c 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: 'index', key: 'index', customRender: (column) => `${column.index + 1}` ,width: 100}, + { title: t('标题'), dataIndex: 'title', 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: '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/upLoadDemandListModal.vue b/src/components/common/upLoadDemandListModal.vue index afddf16..585560b 100644 --- a/src/components/common/upLoadDemandListModal.vue +++ b/src/components/common/upLoadDemandListModal.vue @@ -15,8 +15,8 @@ const { t } = useI18n(); const columns: BasicColumn[] = [ - { title: t('合同号'), dataIndex: 'id', sorter: true}, - { title: t('合同名称'), dataIndex: 'kName', sorter: true}, + { title: t('合同号'), dataIndex: 'id', }, + { title: t('合同名称'), dataIndex: 'kName', }, ]; const emit = defineEmits(['success', 'register']); diff --git a/src/views/contract/ContractFact/components/createForm.vue b/src/views/contract/ContractFact/components/createForm.vue index 6d01a41..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([]) diff --git a/src/views/contract/ContractSales/components/createForm.vue b/src/views/contract/ContractSales/components/createForm.vue index 87bc382..b1bd273 100644 --- a/src/views/contract/ContractSales/components/createForm.vue +++ b/src/views/contract/ContractSales/components/createForm.vue @@ -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([]); diff --git a/src/views/dayPlan/PngAppro/components/basicForm.vue b/src/views/dayPlan/PngAppro/components/basicForm.vue index fa889a5..036d99e 100644 --- a/src/views/dayPlan/PngAppro/components/basicForm.vue +++ b/src/views/dayPlan/PngAppro/components/basicForm.vue @@ -103,15 +103,15 @@ import { useI18n } from '/@/hooks/web/useI18n'; }); const columns= ref([ - { title: t('序号'), dataIndex: 'index', key: 'index', sorter: true, customRender: (column) => `${column.index + 1}` ,width: 100}, - { title: t('上载点'), dataIndex: 'pointUpName', sorter: true, width:400}, - { title: t('供应商'), dataIndex: 'suName', sorter: true, width: 400}, - { title: t('采购合同'), dataIndex: 'kpName', sorter: true, width: 400}, - { title: t('指定量(吉焦)'), dataIndex: 'qtyDemandGj', sorter: true, width: 300}, - { title: t('指定量(方)'), dataIndex: 'qtyDemandM3', sorter: true, width: 200}, - { title: t('批复量(吉焦)'), dataIndex: 'qtySalesGj', sorter: true, width: 200}, - { title: t('批复量(方)'), dataIndex: 'qtySalesM3', sorter: true, width: 200}, - { title: t('备注'), dataIndex: 'note', sorter: true, width: 300}, + { title: t('序号'), dataIndex: 'index', key: 'index', customRender: (column) => `${column.index + 1}` ,width: 100}, + { title: t('上载点'), dataIndex: 'pointUpName', width:400}, + { title: t('供应商'), dataIndex: 'suName', width: 400}, + { title: t('采购合同'), dataIndex: 'kpName', width: 400}, + { title: t('指定量(吉焦)'), dataIndex: 'qtyDemandGj', width: 300}, + { title: t('指定量(方)'), dataIndex: 'qtyDemandM3', width: 200}, + { title: t('批复量(吉焦)'), dataIndex: 'qtySalesGj', width: 200}, + { title: t('批复量(方)'), dataIndex: 'qtySalesM3', width: 200}, + { title: t('备注'), dataIndex: 'note', width: 300}, ]); const formState = ref() const dataList = ref([]) diff --git a/src/views/dayPlan/PngAppro/components/createForm.vue b/src/views/dayPlan/PngAppro/components/createForm.vue index 82054c2..5ccb396 100644 --- a/src/views/dayPlan/PngAppro/components/createForm.vue +++ b/src/views/dayPlan/PngAppro/components/createForm.vue @@ -22,12 +22,12 @@ - - - + + +
@@ -121,23 +121,17 @@ try { let data = await getLngPngApproCompare(id) || [] spinning.value = false - if (data.length == 1) { - let obj = changeData(data[0]) - Object.assign(formState, {...obj.params}) - Object.assign(dataList.value, obj.list || [{}]) - title.value = '版本V'+ formState.verNo - } - if (data.length > 1) { - let obj = changeData(data[0]) + + let obj = changeData(data.oldBean) Object.assign(formState, {...obj.params}) Object.assign(dataList.value, obj.list || [{}]) title.value = '版本V'+ formState.verNo - let obj1 = changeData(data[1]) + let obj1 = changeData(data.newBean) Object.assign(formStateNew, {...obj1.params}) Object.assign(dataListNew.value, obj1.list || [{}]) titleNew.value = '版本V'+ formStateNew.verNo - } + } catch (error) { spinning.value = false diff --git a/src/views/sales/Customer/components/createForm.vue b/src/views/sales/Customer/components/createForm.vue index 1e8defe..5aa7106 100644 --- a/src/views/sales/Customer/components/createForm.vue +++ b/src/views/sales/Customer/components/createForm.vue @@ -389,15 +389,15 @@ } const columnsCertificate = ref([ - { title: t('序号'), dataIndex: 'index', key: 'index', sorter: true, customRender: (column) => `${column.index + 1}` ,width: 100}, - { title: t('资质证书名称'), dataIndex: 'docTypeCode', sorter: true, width:200}, - { title: t('有效期开始'), dataIndex: 'dateFrom', sorter: true, width: 140}, - { title: t('有效期结束'), dataIndex: 'dateTo', sorter: true, width: 140}, + { title: t('序号'), dataIndex: 'index', key: 'index', customRender: (column) => `${column.index + 1}` ,width: 100}, + { title: t('资质证书名称'), dataIndex: 'docTypeCode', width:200}, + { title: t('有效期开始'), dataIndex: 'dateFrom', width: 140}, + { title: t('有效期结束'), dataIndex: 'dateTo', width: 140}, { title: t('备注'), dataIndex: 'note', sorter: true}, { title: t('操作'), dataIndex: 'operation', width: 220}, ]); const columnsBank = ref([ - { title: t('序号'), dataIndex: 'index', sorter: true, customRender: (column) => `${column.index + 1}`}, + { title: t('序号'), dataIndex: 'index', customRender: (column) => `${column.index + 1}`}, { title: t('银行名称'), dataIndex: 'bankName', sorter: true}, { title: t('联行号'), dataIndex: 'interBankCode', sorter: true}, { title: t('账号名称'), dataIndex: 'accountName', sorter: true}, @@ -406,7 +406,7 @@ { title: t('操作'), dataIndex: 'operation', sorter: true}, ]); const columnsContact = ref([ - { title: t('序号'), dataIndex: 'index', sorter: true, customRender: (column) => `${column.index + 1}`}, + { title: t('序号'), dataIndex: 'index', customRender: (column) => `${column.index + 1}`}, { title: t('姓名'), dataIndex: 'contactName', sorter: true}, { title: t('联系电话'), dataIndex: 'tel', sorter: true}, { title: t('电子邮箱'), dataIndex: 'email', sorter: true}, diff --git a/src/views/sales/CustomerGroup/components/Form.vue b/src/views/sales/CustomerGroup/components/Form.vue index 5119c26..afd3e4e 100644 --- a/src/views/sales/CustomerGroup/components/Form.vue +++ b/src/views/sales/CustomerGroup/components/Form.vue @@ -81,12 +81,12 @@ const columns= ref([ - { title: t('序号'), dataIndex: 'index', key: 'index', sorter: true, customRender: (column) => `${column.index + 1}` ,width: 100}, - { title: t('客户编码'), dataIndex: 'cuCode', sorter: true, width:100}, + { title: t('序号'), dataIndex: 'index', key: 'index', customRender: (column) => `${column.index + 1}` ,width: 100}, + { title: t('客户编码'), dataIndex: 'cuCode', width:100}, { title: t('客户名称'), dataIndex: 'cuName', sorter: true}, - { title: t('国内/国际'), dataIndex: 'diName', sorter: true, width: 140}, - { title: t('客户类别'), dataIndex: 'typeName', sorter: true, width: 140}, - { title: t('客户分类'), dataIndex: 'className', sorter: true, width: 140}, + { title: t('国内/国际'), dataIndex: 'diName', width: 140}, + { title: t('客户类别'), dataIndex: 'typeName', width: 140}, + { title: t('客户分类'), dataIndex: 'className', width: 140}, { title: t('操作'), dataIndex: 'operation', width: 120}, ]); const dataList = ref([]) diff --git a/src/views/sales/GradeSystem/components/Form.vue b/src/views/sales/GradeSystem/components/Form.vue index af83111..f484d97 100644 --- a/src/views/sales/GradeSystem/components/Form.vue +++ b/src/views/sales/GradeSystem/components/Form.vue @@ -58,10 +58,10 @@ 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: 'itemName', sorter: true, width:200}, - { title: t('评价标准'), dataIndex: 'itemDesc', sorter: true, }, - { title: t('评价部门'), dataIndex: 'eDeptName', sorter: true, width: 200}, + { title: t('序号'), dataIndex: 'index', key: 'index', customRender: (column) => `${column.index + 1}` ,width: 100}, + { title: t('评价事项'), dataIndex: 'itemName', width:200}, + { title: t('评价标准'), dataIndex: 'itemDesc', }, + { title: t('评价部门'), dataIndex: 'eDeptName', width: 200}, { title: t('操作'), dataIndex: 'operation', width: 120}, ]); const curIdx = ref(null) diff --git a/src/views/sales/ScoreCustomer/components/createForm.vue b/src/views/sales/ScoreCustomer/components/createForm.vue index 2cd0352..e98854a 100644 --- a/src/views/sales/ScoreCustomer/components/createForm.vue +++ b/src/views/sales/ScoreCustomer/components/createForm.vue @@ -133,15 +133,15 @@ } const gsIdOld = ref() const columns = ref([ - { title: t('序号'), dataIndex: 'index', key: 'index', sorter: true, customRender: (column) => `${column.index + 1}` ,width: 80}, - { title: t('评价事项'), dataIndex: 'itemName', sorter: true}, - { title: t('评价标准'), dataIndex: 'itemDesc', sorter: true}, - { title: t('评价部门'), dataIndex: 'eDeptName', sorter: true}, - { title: t('评分'), dataIndex: 'score', sorter: true}, - { title: t('分数说明'), dataIndex: 'scoreDesc', sorter: true}, - { title: t('评价人'), dataIndex: 'aEmpName', sorter: true}, - { title: t('评价时间'), dataIndex: 'aTime', sorter: true}, - { title: t('实际评价部门'), dataIndex: 'aDeptName', sorter: true}, + { title: t('序号'), dataIndex: 'index', key: 'index', customRender: (column) => `${column.index + 1}` ,width: 80}, + { title: t('评价事项'), dataIndex: 'itemName', }, + { title: t('评价标准'), dataIndex: 'itemDesc', }, + { title: t('评价部门'), dataIndex: 'eDeptName', }, + { title: t('评分'), dataIndex: 'score', }, + { title: t('分数说明'), dataIndex: 'scoreDesc', }, + { title: t('评价人'), dataIndex: 'aEmpName', }, + { title: t('评价时间'), dataIndex: 'aTime', }, + { title: t('实际评价部门'), dataIndex: 'aDeptName', }, ]); const dataList= ref([]); const dataFile = ref([]); From 021b5074b5278dc30db7d44348c7b4d2bec235c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=98huanghaiixia=E2=80=99?= <980486410@.com> Date: Wed, 21 Jan 2026 18:18:19 +0800 Subject: [PATCH 3/4] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../common/ContractDemandListModal.vue | 4 +- src/components/common/approListModal.vue | 14 +++---- src/components/common/approStatusModal.vue | 8 ++-- src/components/common/bankListModal.vue | 12 +++--- .../common/contractFactListModal.vue | 12 +++--- src/components/common/contractQtyList.vue | 26 ++++++------ .../common/correlationApproList.vue | 2 +- src/components/common/customerListModal.vue | 10 ++--- .../common/customerSupplierListModal.vue | 20 +++++----- src/components/common/deptListModal.vue | 4 +- src/components/common/deptUserModal.vue | 8 ++-- src/components/common/downloadPointModal.vue | 10 ++--- src/components/common/supplierListModal.vue | 10 ++--- .../sales/Customer/components/createForm.vue | 28 ++++++------- .../sales/CustomerGroup/components/Form.vue | 2 +- .../ScoreSupplier/components/createForm.vue | 18 ++++----- .../Supplier/components/createForm.vue | 40 +++++++++---------- 17 files changed, 114 insertions(+), 114 deletions(-) diff --git a/src/components/common/ContractDemandListModal.vue b/src/components/common/ContractDemandListModal.vue index afddf16..585560b 100644 --- a/src/components/common/ContractDemandListModal.vue +++ b/src/components/common/ContractDemandListModal.vue @@ -15,8 +15,8 @@ const { t } = useI18n(); const columns: BasicColumn[] = [ - { title: t('合同号'), dataIndex: 'id', sorter: true}, - { title: t('合同名称'), dataIndex: 'kName', sorter: true}, + { title: t('合同号'), dataIndex: 'id', }, + { title: t('合同名称'), dataIndex: 'kName', }, ]; const emit = defineEmits(['success', 'register']); 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 0b6f65c..0a85c9c 100644 --- a/src/components/common/correlationApproList.vue +++ b/src/components/common/correlationApproList.vue @@ -35,7 +35,7 @@ const columns= ref([ { title: t('序号'), dataIndex: 'index', key: 'index', customRender: (column) => `${column.index + 1}` ,width: 100}, { title: t('标题'), dataIndex: 'title', width:100}, - { title: t('编号'), dataIndex: 'code', sorter: true}, + { title: t('编号'), dataIndex: 'code', }, { title: t('签报类型'), dataIndex: 'typeName', width: 140}, { title: t('拟稿人'), dataIndex: 'empName', width: 140}, { title: t('拟稿人所属部门'), dataIndex: 'bDeptName', width: 140}, 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/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/views/sales/Customer/components/createForm.vue b/src/views/sales/Customer/components/createForm.vue index 5aa7106..bd40c44 100644 --- a/src/views/sales/Customer/components/createForm.vue +++ b/src/views/sales/Customer/components/createForm.vue @@ -393,27 +393,27 @@ { title: t('资质证书名称'), dataIndex: 'docTypeCode', width:200}, { title: t('有效期开始'), dataIndex: 'dateFrom', width: 140}, { title: t('有效期结束'), dataIndex: 'dateTo', width: 140}, - { title: t('备注'), dataIndex: 'note', sorter: true}, + { title: t('备注'), dataIndex: 'note', }, { title: t('操作'), dataIndex: 'operation', width: 220}, ]); const columnsBank = ref([ { title: t('序号'), dataIndex: 'index', customRender: (column) => `${column.index + 1}`}, - { title: t('银行名称'), dataIndex: 'bankName', sorter: true}, - { title: t('联行号'), dataIndex: 'interBankCode', sorter: true}, - { title: t('账号名称'), dataIndex: 'accountName', sorter: true}, - { title: t('银行账号'), dataIndex: 'account', sorter: true}, - { title: t('默认银行'), dataIndex: 'defaultSign', sorter: true}, - { title: t('操作'), dataIndex: 'operation', sorter: true}, + { title: t('银行名称'), dataIndex: 'bankName', }, + { title: t('联行号'), dataIndex: 'interBankCode', }, + { title: t('账号名称'), dataIndex: 'accountName', }, + { title: t('银行账号'), dataIndex: 'account', }, + { title: t('默认银行'), dataIndex: 'defaultSign', }, + { title: t('操作'), dataIndex: 'operation', }, ]); const columnsContact = ref([ { title: t('序号'), dataIndex: 'index', customRender: (column) => `${column.index + 1}`}, - { title: t('姓名'), dataIndex: 'contactName', sorter: true}, - { title: t('联系电话'), dataIndex: 'tel', sorter: true}, - { title: t('电子邮箱'), dataIndex: 'email', sorter: true}, - { title: t('通讯地址'), dataIndex: 'addrMail', sorter: true}, - { title: t('职位'), dataIndex: 'position', sorter: true}, - { title: t('备注'), dataIndex: 'note', sorter: true}, - { title: t('操作'), dataIndex: 'operation', sorter: true}, + { title: t('姓名'), dataIndex: 'contactName', }, + { title: t('联系电话'), dataIndex: 'tel', }, + { title: t('电子邮箱'), dataIndex: 'email', }, + { title: t('通讯地址'), dataIndex: 'addrMail', }, + { title: t('职位'), dataIndex: 'position', }, + { title: t('备注'), dataIndex: 'note', }, + { title: t('操作'), dataIndex: 'operation', }, ]); const dataCertificate= reactive([]); const dataBank= reactive([]); diff --git a/src/views/sales/CustomerGroup/components/Form.vue b/src/views/sales/CustomerGroup/components/Form.vue index afd3e4e..0fb2604 100644 --- a/src/views/sales/CustomerGroup/components/Form.vue +++ b/src/views/sales/CustomerGroup/components/Form.vue @@ -83,7 +83,7 @@ const columns= ref([ { title: t('序号'), dataIndex: 'index', key: 'index', customRender: (column) => `${column.index + 1}` ,width: 100}, { title: t('客户编码'), dataIndex: 'cuCode', width:100}, - { title: t('客户名称'), dataIndex: 'cuName', sorter: true}, + { title: t('客户名称'), dataIndex: 'cuName', }, { title: t('国内/国际'), dataIndex: 'diName', width: 140}, { title: t('客户类别'), dataIndex: 'typeName', width: 140}, { title: t('客户分类'), dataIndex: 'className', width: 140}, diff --git a/src/views/supplier/ScoreSupplier/components/createForm.vue b/src/views/supplier/ScoreSupplier/components/createForm.vue index 725af2c..4999ea9 100644 --- a/src/views/supplier/ScoreSupplier/components/createForm.vue +++ b/src/views/supplier/ScoreSupplier/components/createForm.vue @@ -133,15 +133,15 @@ } const gsIdOld = ref() const columns = ref([ - { title: t('序号'), dataIndex: 'index', key: 'index', sorter: true, customRender: (column) => `${column.index + 1}` ,width: 80}, - { title: t('评价事项'), dataIndex: 'itemName', sorter: true}, - { title: t('评价标准'), dataIndex: 'itemDesc', sorter: true}, - { title: t('评价部门'), dataIndex: 'eDeptName', sorter: true}, - { title: t('评分'), dataIndex: 'score', sorter: true}, - { title: t('分数说明'), dataIndex: 'scoreDesc', sorter: true}, - { title: t('评价人'), dataIndex: 'aEmpName', sorter: true}, - { title: t('评价时间'), dataIndex: 'aTime', sorter: true}, - { title: t('实际评价部门'), dataIndex: 'aDeptName', sorter: true}, + { title: t('序号'), dataIndex: 'index', key: 'index' , customRender: (column) => `${column.index + 1}` ,width: 80}, + { title: t('评价事项'), dataIndex: 'itemName', }, + { title: t('评价标准'), dataIndex: 'itemDesc', }, + { title: t('评价部门'), dataIndex: 'eDeptName', }, + { title: t('评分'), dataIndex: 'score', }, + { title: t('分数说明'), dataIndex: 'scoreDesc', }, + { title: t('评价人'), dataIndex: 'aEmpName', }, + { title: t('评价时间'), dataIndex: 'aTime', }, + { title: t('实际评价部门'), dataIndex: 'aDeptName', }, ]); const dataList= ref([]); const dataFile = ref([]); diff --git a/src/views/supplier/Supplier/components/createForm.vue b/src/views/supplier/Supplier/components/createForm.vue index e274b02..1f3fd54 100644 --- a/src/views/supplier/Supplier/components/createForm.vue +++ b/src/views/supplier/Supplier/components/createForm.vue @@ -299,31 +299,31 @@ } const columnsCertificate = ref([ - { title: t('序号'), dataIndex: 'index', key: 'index', sorter: true, customRender: (column) => `${column.index + 1}` ,width: 100}, - { title: t('资质证书名称'), dataIndex: 'docTypeCode', sorter: true, width:200}, - { title: t('有效期开始'), dataIndex: 'dateFrom', sorter: true, width: 140}, - { title: t('有效期结束'), dataIndex: 'dateTo', sorter: true, width: 140}, - { title: t('备注'), dataIndex: 'note', sorter: true}, + { title: t('序号'), dataIndex: 'index', key: 'index', customRender: (column) => `${column.index + 1}` ,width: 100}, + { title: t('资质证书名称'), dataIndex: 'docTypeCode' , width:200}, + { title: t('有效期开始'), dataIndex: 'dateFrom', width: 140}, + { title: t('有效期结束'), dataIndex: 'dateTo', width: 140}, + { title: t('备注'), dataIndex: 'note', }, { title: t('操作'), dataIndex: 'operation', width: 220}, ]); const columnsBank = ref([ - { title: t('序号'), dataIndex: 'index', sorter: true, customRender: (column) => `${column.index + 1}`}, - { title: t('银行名称'), dataIndex: 'bankName', sorter: true}, - { title: t('联行号'), dataIndex: 'interBankCode', sorter: true}, - { title: t('账号名称'), dataIndex: 'accountName', sorter: true}, - { title: t('银行账号'), dataIndex: 'account', sorter: true}, - { title: t('默认银行'), dataIndex: 'defaultSign', sorter: true}, - { title: t('操作'), dataIndex: 'operation', sorter: true}, + { title: t('序号'), dataIndex: 'index', customRender: (column) => `${column.index + 1}`}, + { title: t('银行名称'), dataIndex: 'bankName', }, + { title: t('联行号'), dataIndex: 'interBankCode', }, + { title: t('账号名称'), dataIndex: 'accountName', }, + { title: t('银行账号'), dataIndex: 'account', }, + { title: t('默认银行'), dataIndex: 'defaultSign', }, + { title: t('操作'), dataIndex: 'operation', }, ]); const columnsContact = ref([ - { title: t('序号'), dataIndex: 'index', sorter: true, customRender: (column) => `${column.index + 1}`}, - { title: t('姓名'), dataIndex: 'contactName', sorter: true}, - { title: t('联系电话'), dataIndex: 'tel', sorter: true}, - { title: t('电子邮箱'), dataIndex: 'email', sorter: true}, - { title: t('通讯地址'), dataIndex: 'addrMail', sorter: true}, - { title: t('职位'), dataIndex: 'position', sorter: true}, - { title: t('备注'), dataIndex: 'note', sorter: true}, - { title: t('操作'), dataIndex: 'operation', sorter: true}, + { title: t('序号'), dataIndex: 'index', customRender: (column) => `${column.index + 1}`}, + { title: t('姓名'), dataIndex: 'contactName', }, + { title: t('联系电话'), dataIndex: 'tel', }, + { title: t('电子邮箱'), dataIndex: 'email', }, + { title: t('通讯地址'), dataIndex: 'addrMail', }, + { title: t('职位'), dataIndex: 'position', }, + { title: t('备注'), dataIndex: 'note', }, + { title: t('操作'), dataIndex: 'operation', }, ]); const dataCertificate= reactive([]); const dataBank= reactive([]); From acdc3555ac68488f2a4691f5c2c0b1bdb45ae7c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=98huanghaiixia=E2=80=99?= <980486410@.com> Date: Thu, 22 Jan 2026 17:31:32 +0800 Subject: [PATCH 4/4] =?UTF-8?q?=E5=AE=A2=E6=88=B7=E9=9C=80=E6=B1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/dayPlan/Demand/index.ts | 49 ++- .../common/ContractDemandListModal.vue | 5 +- ...Modal.vue => pointDelyDemandListModal.vue} | 7 +- src/components/common/rejectReplyModal.vue | 59 +++ .../dayPlan/Demand/components/basicForm.vue | 356 +++++++++++------- .../dayPlan/Demand/components/createForm.vue | 170 ++++----- src/views/dayPlan/Demand/index.vue | 16 +- .../dayPlan/PngAppro/components/basicForm.vue | 98 +++-- .../PngAppro/components/createForm.vue | 15 +- src/views/dayPlan/PngAppro/indexJsz.vue | 30 +- .../dayPlan/PngMeasureSalesPur/index.vue | 6 +- 11 files changed, 527 insertions(+), 284 deletions(-) rename src/components/common/{upLoadDemandListModal.vue => pointDelyDemandListModal.vue} (89%) create mode 100644 src/components/common/rejectReplyModal.vue diff --git a/src/api/dayPlan/Demand/index.ts b/src/api/dayPlan/Demand/index.ts index 6fd2ccf..e706a2a 100644 --- a/src/api/dayPlan/Demand/index.ts +++ b/src/api/dayPlan/Demand/index.ts @@ -10,12 +10,59 @@ enum Api { 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( { diff --git a/src/components/common/ContractDemandListModal.vue b/src/components/common/ContractDemandListModal.vue index 585560b..968b666 100644 --- a/src/components/common/ContractDemandListModal.vue +++ b/src/components/common/ContractDemandListModal.vue @@ -1,7 +1,6 @@