From e96bdfd192c01eb8a860030fc50cb5a37754de81 Mon Sep 17 00:00:00 2001 From: "1378012178@qq.com" <1378012178@qq.com> Date: Mon, 26 Jan 2026 14:27:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BE=9B=E5=BA=94=E5=95=86=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=E5=8F=98=E6=9B=B4=E5=AE=A1=E6=A0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../NuConfigSuppliersApply.api.ts | 38 ++- .../NuConfigSuppliersApply.data.ts | 144 +++++++--- .../NuConfigSuppliersApplyList.vue | 1 + .../NuConfigSuppliersApplyUpList.vue | 251 +++++++++++++++++ .../NuConfigSuppliersApplyModal.vue | 44 ++- .../NuConfigSuppliersApplyUpInfoForm.vue | 254 ++++++++++++++++++ 6 files changed, 679 insertions(+), 53 deletions(-) create mode 100644 src/views/invoicing/configSuppliersApply/NuConfigSuppliersApplyUpList.vue create mode 100644 src/views/invoicing/configSuppliersApply/components/NuConfigSuppliersApplyUpInfoForm.vue diff --git a/src/views/invoicing/configSuppliersApply/NuConfigSuppliersApply.api.ts b/src/views/invoicing/configSuppliersApply/NuConfigSuppliersApply.api.ts index 0a05461..9e6ea39 100644 --- a/src/views/invoicing/configSuppliersApply/NuConfigSuppliersApply.api.ts +++ b/src/views/invoicing/configSuppliersApply/NuConfigSuppliersApply.api.ts @@ -1,16 +1,18 @@ import { defHttp } from '/@/utils/http/axios'; -import { useMessage } from "/@/hooks/web/useMessage"; +import { useMessage } from '/@/hooks/web/useMessage'; const { createConfirm } = useMessage(); enum Api { list = '/configSuppliersApply/nuConfigSuppliersApply/list', - save='/configSuppliersApply/nuConfigSuppliersApply/add', - edit='/configSuppliersApply/nuConfigSuppliersApply/edit', + save = '/configSuppliersApply/nuConfigSuppliersApply/add', + edit = '/configSuppliersApply/nuConfigSuppliersApply/edit', deleteOne = '/configSuppliersApply/nuConfigSuppliersApply/delete', deleteBatch = '/configSuppliersApply/nuConfigSuppliersApply/deleteBatch', importExcel = '/configSuppliersApply/nuConfigSuppliersApply/importExcel', exportXls = '/configSuppliersApply/nuConfigSuppliersApply/exportXls', + getModifyInfo = '/configSuppliersApply/nuConfigSuppliersApply/getModifyInfo', + audit = '/configSuppliersApply/nuConfigSuppliersApply/audit', } /** @@ -35,11 +37,11 @@ export const list = (params) => defHttp.get({ url: Api.list, params }); * @param params * @param handleSuccess */ -export const deleteOne = (params,handleSuccess) => { - return defHttp.delete({url: Api.deleteOne, params}, {joinParamsToUrl: true}).then(() => { +export const deleteOne = (params, handleSuccess) => { + return defHttp.delete({ url: Api.deleteOne, params }, { joinParamsToUrl: true }).then(() => { handleSuccess(); }); -} +}; /** * 批量删除 @@ -54,12 +56,12 @@ export const batchDelete = (params, handleSuccess) => { okText: '确认', cancelText: '取消', onOk: () => { - return defHttp.delete({url: Api.deleteBatch, data: params}, {joinParamsToUrl: true}).then(() => { + return defHttp.delete({ url: Api.deleteBatch, data: params }, { joinParamsToUrl: true }).then(() => { handleSuccess(); }); - } + }, }); -} +}; /** * 保存或者更新 @@ -69,4 +71,20 @@ export const batchDelete = (params, handleSuccess) => { export const saveOrUpdate = (params, isUpdate) => { let url = isUpdate ? Api.edit : Api.save; return defHttp.post({ url: url, params }, { isTransformResponse: false }); -} +}; + +/** + * 获取变更信息 + * @param params + */ +export const getModifyInfo = (params) => { + return defHttp.post({ url: Api.getModifyInfo, params }); +}; + +/** + * 审批提交 + * @param params + */ +export const auditSubmit = (params) => { + return defHttp.post({ url: Api.audit, params }); +}; diff --git a/src/views/invoicing/configSuppliersApply/NuConfigSuppliersApply.data.ts b/src/views/invoicing/configSuppliersApply/NuConfigSuppliersApply.data.ts index 4350694..9f3bb68 100644 --- a/src/views/invoicing/configSuppliersApply/NuConfigSuppliersApply.data.ts +++ b/src/views/invoicing/configSuppliersApply/NuConfigSuppliersApply.data.ts @@ -1,49 +1,49 @@ -import {BasicColumn} from '/@/components/Table'; -import {FormSchema} from '/@/components/Table'; -import { rules} from '/@/utils/helper/validator'; +import { BasicColumn } from '/@/components/Table'; +import { FormSchema } from '/@/components/Table'; +import { rules } from '/@/utils/helper/validator'; import { render } from '/@/utils/common/renderUtils'; import { getWeekMonthQuarterYear } from '/@/utils'; const opeMediaAddress = import.meta.env.VITE_OPE_MEDIA_ADDRESS; -//列表数据 +//申请审核列表数据 export const columns: BasicColumn[] = [ { title: '供应商名称', - align: "center", - dataIndex: 'suppliersName' + align: 'center', + dataIndex: 'suppliersName', }, { title: '供应商性质', - align: "center", - dataIndex: 'suppliersNature_dictText' + align: 'center', + dataIndex: 'suppliersNature_dictText', }, { title: '供应商地址', - align: "center", - dataIndex: 'suppliersAddress' + align: 'center', + dataIndex: 'suppliersAddress', }, { title: '负责人', - align: "center", - dataIndex: 'personInCharge' + align: 'center', + dataIndex: 'personInCharge', }, { title: '联系电话', - align: "center", - dataIndex: 'contactNumber' + align: 'center', + dataIndex: 'contactNumber', }, { title: '开户行', - align: "center", - dataIndex: 'openingBank' + align: 'center', + dataIndex: 'openingBank', }, { title: '开户行账号', - align: "center", - dataIndex: 'openingBankNo' + align: 'center', + dataIndex: 'openingBankNo', }, { title: '资质照片', - align: "center", + align: 'center', dataIndex: 'imgPath', customRender: ({ text }) => { // 如果 text 为空或 null/undefined,使用默认图片 @@ -53,40 +53,100 @@ export const columns: BasicColumn[] = [ }, { title: '审核状态', - align: "center", + align: 'center', dataIndex: 'applyStatus', - customRender: ({ text, record }) => { + customRender: ({ text, record }) => { console.log(text); - var applyStatus = "" - if(text == '1'){ - applyStatus = "待审核" - }else if(text == '2'){ - applyStatus = "审核通过" - }else if(text == '3'){ - applyStatus = "审核未通过" + var applyStatus = ''; + if (text == '1') { + applyStatus = '待审核'; + } else if (text == '2') { + applyStatus = '审核通过'; + } else if (text == '3') { + applyStatus = '审核未通过'; } return applyStatus; }, }, { title: '审核备注', - align: "center", - dataIndex: 'applyContent' + align: 'center', + dataIndex: 'applyContent', }, ]; +//变更审核列表数据 +export const upColumns: BasicColumn[] = [ + { + title: '供应商名称', + align: 'center', + dataIndex: 'suppliersName', + }, + { + title: '供应商性质', + align: 'center', + dataIndex: 'suppliersNature_dictText', + }, + { + title: '供应商地址', + align: 'center', + dataIndex: 'suppliersAddress', + }, + { + title: '负责人', + align: 'center', + dataIndex: 'personInCharge', + }, + { + title: '联系电话', + align: 'center', + dataIndex: 'contactNumber', + }, + { + title: '开户行', + align: 'center', + dataIndex: 'openingBank', + }, + { + title: '开户行账号', + align: 'center', + dataIndex: 'openingBankNo', + }, + { + title: '资质照片', + align: 'center', + dataIndex: 'imgPath', + customRender: ({ text }) => { + // 如果 text 为空或 null/undefined,使用默认图片 + const imageUrl = text ? opeMediaAddress + text : opeMediaAddress + import.meta.env.VITE_DEFAULT_DIRECTIVE_PRE_PIC; + return render.renderImage({ text: imageUrl }); + }, + } +]; + +export const applyObj = { + suppliersName: '供应商名称', + suppliersNature: '供应商性质', + suppliersAddress: '供应商地址', + personInCharge: '负责人', + contactNumber: '联系电话', + openingBank: '开户行', + openingBankNo: '开户行账号', + imgPath: '资质照片', +}; + // 高级查询数据 export const superQuerySchema = { - suppliersName: {title: '供应商名称',order: 0,view: 'text', type: 'string',}, - suppliersNature: {title: '供应商性质 1代理商 2批发商 3制造商',order: 1,view: 'text', type: 'string',}, - suppliersAddress: {title: '供应商地址',order: 2,view: 'text', type: 'string',}, - personInCharge: {title: '负责人',order: 3,view: 'text', type: 'string',}, - contactNumber: {title: '联系电话',order: 4,view: 'text', type: 'string',}, - supplyState: {title: '供应状态 1正常供应 2暂停供应',order: 5,view: 'text', type: 'string',}, - openingBank: {title: '开户行',order: 6,view: 'text', type: 'string',}, - openingBankNo: {title: '开户行账号',order: 7,view: 'text', type: 'string',}, - wechartId: {title: '微信账号',order: 8,view: 'text', type: 'string',}, - imgPath: {title: '资质照片',order: 9,view: 'text', type: 'string',}, - applyStatus: {title: '审核状态',order: 10,view: 'text', type: 'string',}, - applyContent: {title: '审核备注',order: 11,view: 'text', type: 'string',}, + suppliersName: { title: '供应商名称', order: 0, view: 'text', type: 'string' }, + suppliersNature: { title: '供应商性质 1代理商 2批发商 3制造商', order: 1, view: 'text', type: 'string' }, + suppliersAddress: { title: '供应商地址', order: 2, view: 'text', type: 'string' }, + personInCharge: { title: '负责人', order: 3, view: 'text', type: 'string' }, + contactNumber: { title: '联系电话', order: 4, view: 'text', type: 'string' }, + supplyState: { title: '供应状态 1正常供应 2暂停供应', order: 5, view: 'text', type: 'string' }, + openingBank: { title: '开户行', order: 6, view: 'text', type: 'string' }, + openingBankNo: { title: '开户行账号', order: 7, view: 'text', type: 'string' }, + wechartId: { title: '微信账号', order: 8, view: 'text', type: 'string' }, + imgPath: { title: '资质照片', order: 9, view: 'text', type: 'string' }, + applyStatus: { title: '审核状态', order: 10, view: 'text', type: 'string' }, + applyContent: { title: '审核备注', order: 11, view: 'text', type: 'string' }, }; diff --git a/src/views/invoicing/configSuppliersApply/NuConfigSuppliersApplyList.vue b/src/views/invoicing/configSuppliersApply/NuConfigSuppliersApplyList.vue index 3b67116..742e277 100644 --- a/src/views/invoicing/configSuppliersApply/NuConfigSuppliersApplyList.vue +++ b/src/views/invoicing/configSuppliersApply/NuConfigSuppliersApplyList.vue @@ -89,6 +89,7 @@ const opeMediaAddress = import.meta.env.VITE_OPE_MEDIA_ADDRESS fixed: 'right', }, beforeFetch: async (params) => { + queryParam.applyStatus = '2' return Object.assign(params, queryParam); }, }, diff --git a/src/views/invoicing/configSuppliersApply/NuConfigSuppliersApplyUpList.vue b/src/views/invoicing/configSuppliersApply/NuConfigSuppliersApplyUpList.vue new file mode 100644 index 0000000..6fa0d64 --- /dev/null +++ b/src/views/invoicing/configSuppliersApply/NuConfigSuppliersApplyUpList.vue @@ -0,0 +1,251 @@ + + + + + diff --git a/src/views/invoicing/configSuppliersApply/components/NuConfigSuppliersApplyModal.vue b/src/views/invoicing/configSuppliersApply/components/NuConfigSuppliersApplyModal.vue index 45a371b..1f06bad 100644 --- a/src/views/invoicing/configSuppliersApply/components/NuConfigSuppliersApplyModal.vue +++ b/src/views/invoicing/configSuppliersApply/components/NuConfigSuppliersApplyModal.vue @@ -9,11 +9,22 @@ 确认 + + + + + + + diff --git a/src/views/invoicing/configSuppliersApply/components/NuConfigSuppliersApplyUpInfoForm.vue b/src/views/invoicing/configSuppliersApply/components/NuConfigSuppliersApplyUpInfoForm.vue new file mode 100644 index 0000000..644d89b --- /dev/null +++ b/src/views/invoicing/configSuppliersApply/components/NuConfigSuppliersApplyUpInfoForm.vue @@ -0,0 +1,254 @@ + + + + + \ No newline at end of file