From 984d9b94a55e4a7dd5115f2b206b699ae2ef1a29 Mon Sep 17 00:00:00 2001 From: tengxi <971623072@qq.com> Date: Sat, 7 Oct 2023 11:25:05 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E6=96=B0=E5=AE=A2=E6=88=B7?= =?UTF-8?q?=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yudao-ui-admin-vben-master/npm | 0 .../src/api/system/enterprise/index.ts | 6 + .../src/views/xxjj/customer/customer.data.ts | 1023 +++++++++++++++-- .../enterprisebranching/enterprise.data.ts | 37 + .../views/xxjj/enterprisebranching/index.vue | 32 +- .../admin/customer/vo/CustomerBaseVO.java | 131 ++- .../admin/customer/vo/CustomerExcelVO.java | 135 ++- .../customer/vo/CustomerExportReqVO.java | 129 ++- .../admin/customer/vo/CustomerPageReqVO.java | 129 ++- .../dal/dataobject/customer/CustomerDO.java | 175 ++- .../dal/mysql/customer/CustomerMapper.java | 88 +- .../customer/CustomerServiceImplTest.java | 352 +++++- 12 files changed, 2034 insertions(+), 203 deletions(-) create mode 100644 yudao-ui-admin-vben-master/npm diff --git a/yudao-ui-admin-vben-master/npm b/yudao-ui-admin-vben-master/npm new file mode 100644 index 0000000..e69de29 diff --git a/yudao-ui-admin-vben-master/src/api/system/enterprise/index.ts b/yudao-ui-admin-vben-master/src/api/system/enterprise/index.ts index af8ddbe..0e3ef42 100644 --- a/yudao-ui-admin-vben-master/src/api/system/enterprise/index.ts +++ b/yudao-ui-admin-vben-master/src/api/system/enterprise/index.ts @@ -20,6 +20,12 @@ export function updateEnterprise(data) { return defHttp.put({ url: '/system/enterprise/update', data }) } +// 修改企业状态 +export function updateEnterpriseStatus(data) { + return defHttp.put({ url: '/system/enterprise/updateStatus', data }) +} + + // 删除企业信息 export function deleteEnterprise(id: number) { return defHttp.delete({ url: '/system/enterprise/delete?id=' + id }) diff --git a/yudao-ui-admin-vben-master/src/views/xxjj/customer/customer.data.ts b/yudao-ui-admin-vben-master/src/views/xxjj/customer/customer.data.ts index eba9953..1cae902 100644 --- a/yudao-ui-admin-vben-master/src/views/xxjj/customer/customer.data.ts +++ b/yudao-ui-admin-vben-master/src/views/xxjj/customer/customer.data.ts @@ -62,11 +62,6 @@ export const columns: BasicColumn[] = [ dataIndex: 'belongingPeople', width: 160 }, - { - title: '所在城市', - dataIndex: 'city', - width: 160 - }, { title: '国家', dataIndex: 'country', @@ -105,6 +100,24 @@ export const columns: BasicColumn[] = [ return useRender.renderDict(text, DICT_TYPE.CUSTOMER_STATUS1) } }, + { + title: '创建时间', + dataIndex: 'createTime', + width: 180, + customRender: ({ text }) => { + return useRender.renderDate(text) + } + }, + { + title: '行业分类(0:家用电器 1:交通运输 2:商务服务 3:家具用品 4:电工电气 5:通信产品 6:办公文教 7:运动休闲 8:传媒广电)', + dataIndex: 'industryClassify', + width: 160 + }, + { + title: '所在城市', + dataIndex: 'city', + width: 160 + }, { title: '社会信息代码证(营业执照)', dataIndex: 'socialInformationCodeCertificate', @@ -135,27 +148,221 @@ export const columns: BasicColumn[] = [ dataIndex: 'guarantorCertificate', width: 160 }, + { + title: '其他资质文件', + dataIndex: 'otherQualifications', + width: 160 + }, { title: '经营范围', dataIndex: 'businessScope', width: 160 }, { - title: '创建时间', - dataIndex: 'createTime', + title: '合作范围(关联业务线)', + dataIndex: 'collaborationScopeNum', + width: 160 + }, + { + title: '合作起始时间', + dataIndex: 'collaborationTime', width: 180, customRender: ({ text }) => { return useRender.renderDate(text) } }, { - title: '行业分类(0:家用电器 1:交通运输 2:商务服务 3:家具用品 4:电工电气 5:通信产品 6:办公文教 7:运动休闲 8:传媒广电)', - dataIndex: 'industryClassify', + title: '供货量(每月下限)', + dataIndex: 'supplyVolumeDown', width: 160 }, { - title: '其他资质文件', - dataIndex: 'otherQualifications', + title: '供货量(每月下限)', + dataIndex: 'supplyVolumeUpper', + width: 160 + }, + { + title: '资金额度', + dataIndex: 'fundLimit', + width: 160 + }, + { + title: '营业时间', + dataIndex: 'businessHours', + width: 160 + }, + { + title: '允许卸货时间', + dataIndex: 'allowableUnloadingTime', + width: 180, + customRender: ({ text }) => { + return useRender.renderDate(text) + } + }, + { + title: '卸货效率', + dataIndex: 'unloadingEfficiency', + width: 160 + }, + { + title: '允许装货时间', + dataIndex: 'allowableShipmentTime', + width: 180, + customRender: ({ text }) => { + return useRender.renderDate(text) + } + }, + { + title: '装货效果', + dataIndex: 'shipmentEffciency', + width: 160 + }, + { + title: '付款方式(0:无 1:现金 2:银行转账 3:承兑汇票 4:有赞代收 5:支付宝 6:微信 7:国家列表)', + dataIndex: 'paymentMethod', + width: 180, + customRender: ({ text }) => { + return useRender.renderDict(text, DICT_TYPE.PAYMENT_METHOD) + } + }, + { + title: '账户名称', + dataIndex: 'accountName', + width: 160 + }, + { + title: '银行账号', + dataIndex: 'bankAccount', + width: 160 + }, + { + title: '开户银行', + dataIndex: 'bankDeposit', + width: 160 + }, + { + title: '开户地区', + dataIndex: 'depositArea', + width: 160 + }, + { + title: '支行名称', + dataIndex: 'bankBranch', + width: 160 + }, + { + title: '公司税号', + dataIndex: 'companyTaxNumber', + width: 160 + }, + { + title: '企业名称', + dataIndex: 'enterpriseName', + width: 160 + }, + { + title: '单位地址', + dataIndex: 'workAddress', + width: 160 + }, + { + title: '合作方式(0:买断 1:联营)', + dataIndex: 'collaborationMethod', + width: 180, + customRender: ({ text }) => { + return useRender.renderDict(text, DICT_TYPE.COLLABORATION_METHOD) + } + }, + { + title: '结算方式(0:先货后款 1:先款后货)', + dataIndex: 'settlementMethod', + width: 180, + customRender: ({ text }) => { + return useRender.renderDict(text, DICT_TYPE.SETTLEMENT_METHOD) + } + }, + { + title: '账期', + dataIndex: 'accountPeriod', + width: 160 + }, + { + title: '压款方式(0:无 1:按金额 2:按比例)', + dataIndex: 'underpaymentMethod', + width: 180, + customRender: ({ text }) => { + return useRender.renderDict(text, DICT_TYPE.UNDERPAYMENT_METHOD) + } + }, + { + title: '默认压款比例', + dataIndex: 'defaultUnderpaymentRatio', + width: 160 + }, + { + title: '申请压款比例', + dataIndex: 'applyForUnderpaymentRatio', + width: 160 + }, + { + title: '保证金方式(0:无 1:按金额 2:按比例)', + dataIndex: 'marginMethod', + width: 180, + customRender: ({ text }) => { + return useRender.renderDict(text, DICT_TYPE.MARGIN_METHOD) + } + }, + { + title: '默认保证金比例', + dataIndex: 'defaultMarginRatio', + width: 160 + }, + { + title: '申请保证金比例', + dataIndex: 'applyForMarginRatio', + width: 160 + }, + { + title: '逾期利率(0:按年化1:按月化)', + dataIndex: 'overdueInterestRate', + width: 180, + customRender: ({ text }) => { + return useRender.renderDict(text, DICT_TYPE.OVERDUE_INTEREST_RATE) + } + }, + { + title: '默认逾期利率', + dataIndex: 'defaultOverdueRatio', + width: 160 + }, + { + title: '申请逾期利率', + dataIndex: 'applyForOverdueRatio', + width: 160 + }, + { + title: '客户联系人id', + dataIndex: 'contactsId', + width: 160 + }, + { + title: '客户类型', + dataIndex: 'customerType', + width: 160 + }, + { + title: '账户类型', + dataIndex: 'accountType', + width: 160 + }, + { + title: '卸货时长', + dataIndex: 'unloading', + width: 160 + }, + { + title: '装货时长', + dataIndex: 'shipment', width: 160 }, ] @@ -224,12 +431,6 @@ export const searchFormSchema: FormSchema[] = [ component: 'Input', colProps: { span: 8 } }, - { - label: '所在城市', - field: 'city', - component: 'Input', - colProps: { span: 8 } - }, { label: '国家', field: 'country', @@ -274,128 +475,357 @@ export const searchFormSchema: FormSchema[] = [ }, colProps: { span: 8 } }, + { + label: '创建时间', + field: 'createTime', + component: 'RangePicker', + colProps: { span: 8 } + }, + { + label: '行业分类(0:家用电器 1:交通运输 2:商务服务 3:家具用品 4:电工电气 5:通信产品 6:办公文教 7:运动休闲 8:传媒广电)', + field: 'industryClassify', + component: 'Input', + colProps: { span: 8 } + }, + { + label: '所在城市', + field: 'city', + component: 'Input', + colProps: { span: 8 } + }, { label: '社会信息代码证(营业执照)', field: 'socialInformationCodeCertificate', - component: 'RangePicker', + component: 'Input', colProps: { span: 8 } }, { label: '法定代表人证件照', field: 'legalRepresentativesPhoto', + component: 'Input', colProps: { span: 8 } }, { label: '实缴资金证明', field: 'proofPaidCapital', + component: 'Input', colProps: { span: 8 } }, { label: '资产证明', field: 'assetCertificate', + component: 'Input', colProps: { span: 8 } }, { label: '资产抵押证明', field: 'assetCertificateMortgage', + component: 'Input', colProps: { span: 8 } }, { label: '担保人证明', field: 'guarantorCertificate', + component: 'Input', + colProps: { span: 8 } + }, + { + label: '其他资质文件', + field: 'otherQualifications', + component: 'Input', colProps: { span: 8 } }, { label: '经营范围', field: 'businessScope', + component: 'Input', colProps: { span: 8 } }, { - label: '创建时间', - field: 'createTime', + label: '合作范围(关联业务线)', + field: 'collaborationScopeNum', + component: 'Input', + colProps: { span: 8 } + }, + { + label: '合作起始时间', + field: 'collaborationTime', component: 'RangePicker', colProps: { span: 8 } }, { - label: '行业分类(0:家用电器 1:交通运输 2:商务服务 3:家具用品 4:电工电气 5:通信产品 6:办公文教 7:运动休闲 8:传媒广电)', - field: 'industryClassify', + label: '供货量(每月下限)', + field: 'supplyVolumeDown', component: 'Input', colProps: { span: 8 } }, { - label: '其他资质文件', - field: 'otherQualifications', + label: '供货量(每月下限)', + field: 'supplyVolumeUpper', component: 'Input', colProps: { span: 8 } }, -] - -export const createFormSchema: FormSchema[] = [ { - label: '编号', - field: 'id', - show: false, - component: 'Input' + label: '资金额度', + field: 'fundLimit', + component: 'Input', + colProps: { span: 8 } }, { - label: '客户分类(0:一级客户 1:二级客户)', - field: 'customerCalssify', - required: true, - component: 'Select', - componentProps: { - options: getDictOptions(DICT_TYPE.CUSTOMER_CALSSIFY, 'number') - } + label: '营业时间', + field: 'businessHours', + component: 'Input', + colProps: { span: 8 } }, { - label: '客户名称', - field: 'customerName', - component: 'Input' + label: '允许卸货时间', + field: 'allowableUnloadingTime', + component: 'RangePicker', + colProps: { span: 8 } }, { - label: '公司logo', - field: 'customerLogo', - component: 'Input' + label: '卸货效率', + field: 'unloadingEfficiency', + component: 'Input', + colProps: { span: 8 } }, { - label: '企业性质(0:国有企业 1:集体企业 2:私营企业 3:股份制企业 4:外资企业 5:合资企业)', - field: 'enterpriseNature', - component: 'Select', - componentProps: { - options: getDictOptions(DICT_TYPE.ENTERPRISE_NATURE, 'number') - } + label: '允许装货时间', + field: 'allowableShipmentTime', + component: 'RangePicker', + colProps: { span: 8 } }, { - label: '客户来源(0:电话营销 1:主动来电 2:客户介绍 3:朋友介绍 4:独立开发 5:网络搜索 6:广告杂志 7:展会促销 8:其他途径)', - field: 'customerSource', - component: 'Select', - componentProps: { - options: getDictOptions(DICT_TYPE.PRODUCT_CLASS, 'number') - } + label: '装货效果', + field: 'shipmentEffciency', + component: 'Input', + colProps: { span: 8 } }, { - label: '客户星级(0:一星 1:二星 2:三星 3:四星 4:五星)', - field: 'customerStarrating', - component: 'Select', - componentProps: { - options: getDictOptions(DICT_TYPE.CUSTOMER_STARRATING, 'number') - } + label: '付款方式(0:无 1:现金 2:银行转账 3:承兑汇票 4:有赞代收 5:支付宝 6:微信 7:国家列表)', + field: 'paymentMethod', + component: 'Input', + colProps: { span: 8 } }, { - label: '业务进度(0:了解跟进 1:资料收集 2:客户评审 3:风控核准 4:合作洽谈 5:准备签约 6:已经签约 7:合作叫停 8:暂时搁置)', - field: 'industrySchedule', - component: 'Select', - componentProps: { - options: getDictOptions(DICT_TYPE.INDUSTRY_SCHEDULE, 'number') + label: '账户名称', + field: 'accountName', + component: 'Input', + colProps: { span: 8 } + }, + { + label: '银行账号', + field: 'bankAccount', + component: 'Input', + colProps: { span: 8 } + }, + { + label: '开户银行', + field: 'bankDeposit', + component: 'Input', + colProps: { span: 8 } + }, + { + label: '开户地区', + field: 'depositArea', + component: 'Input', + colProps: { span: 8 } + }, + { + label: '支行名称', + field: 'bankBranch', + component: 'Input', + colProps: { span: 8 } + }, + { + label: '公司税号', + field: 'companyTaxNumber', + component: 'Input', + colProps: { span: 8 } + }, + { + label: '企业名称', + field: 'enterpriseName', + component: 'Input', + colProps: { span: 8 } + }, + { + label: '单位地址', + field: 'workAddress', + component: 'Input', + colProps: { span: 8 } + }, + { + label: '合作方式(0:买断 1:联营)', + field: 'collaborationMethod', + component: 'Input', + colProps: { span: 8 } + }, + { + label: '结算方式(0:先货后款 1:先款后货)', + field: 'settlementMethod', + component: 'Input', + colProps: { span: 8 } + }, + { + label: '账期', + field: 'accountPeriod', + component: 'Input', + colProps: { span: 8 } + }, + { + label: '压款方式(0:无 1:按金额 2:按比例)', + field: 'underpaymentMethod', + component: 'Input', + colProps: { span: 8 } + }, + { + label: '默认压款比例', + field: 'defaultUnderpaymentRatio', + component: 'Input', + colProps: { span: 8 } + }, + { + label: '申请压款比例', + field: 'applyForUnderpaymentRatio', + component: 'Input', + colProps: { span: 8 } + }, + { + label: '保证金方式(0:无 1:按金额 2:按比例)', + field: 'marginMethod', + component: 'Input', + colProps: { span: 8 } + }, + { + label: '默认保证金比例', + field: 'defaultMarginRatio', + component: 'Input', + colProps: { span: 8 } + }, + { + label: '申请保证金比例', + field: 'applyForMarginRatio', + component: 'Input', + colProps: { span: 8 } + }, + { + label: '逾期利率(0:按年化1:按月化)', + field: 'overdueInterestRate', + component: 'Input', + colProps: { span: 8 } + }, + { + label: '默认逾期利率', + field: 'defaultOverdueRatio', + component: 'Input', + colProps: { span: 8 } + }, + { + label: '申请逾期利率', + field: 'applyForOverdueRatio', + component: 'Input', + colProps: { span: 8 } + }, + { + label: '客户联系人id', + field: 'contactsId', + component: 'Input', + colProps: { span: 8 } + }, + { + label: '客户类型', + field: 'customerType', + component: 'Select', + componentProps: { + options: [] + }, + colProps: { span: 8 } + }, + { + label: '账户类型', + field: 'accountType', + component: 'Select', + componentProps: { + options: [] + }, + colProps: { span: 8 } + }, + { + label: '卸货时长', + field: 'unloading', + component: 'Input', + colProps: { span: 8 } + }, + { + label: '装货时长', + field: 'shipment', + component: 'Input', + colProps: { span: 8 } + }, +] + +export const createFormSchema: FormSchema[] = [ + { + label: '编号', + field: 'id', + show: false, + component: 'Input' + }, + { + label: '客户分类(0:一级客户 1:二级客户)', + field: 'customerCalssify', + required: true, + component: 'Select', + componentProps: { + options: getDictOptions(DICT_TYPE.CUSTOMER_CALSSIFY, 'number') } }, { - label: '归属人员', - field: 'belongingPeople', + label: '客户名称', + field: 'customerName', component: 'Input' }, { - label: '所在城市', - field: 'city', + label: '公司logo', + field: 'customerLogo', + component: 'Input' + }, + { + label: '企业性质(0:国有企业 1:集体企业 2:私营企业 3:股份制企业 4:外资企业 5:合资企业)', + field: 'enterpriseNature', + component: 'Select', + componentProps: { + options: getDictOptions(DICT_TYPE.ENTERPRISE_NATURE, 'number') + } + }, + { + label: '客户来源(0:电话营销 1:主动来电 2:客户介绍 3:朋友介绍 4:独立开发 5:网络搜索 6:广告杂志 7:展会促销 8:其他途径)', + field: 'customerSource', + component: 'Select', + componentProps: { + options: getDictOptions(DICT_TYPE.PRODUCT_CLASS, 'number') + } + }, + { + label: '客户星级(0:一星 1:二星 2:三星 3:四星 4:五星)', + field: 'customerStarrating', + component: 'Select', + componentProps: { + options: getDictOptions(DICT_TYPE.CUSTOMER_STARRATING, 'number') + } + }, + { + label: '业务进度(0:了解跟进 1:资料收集 2:客户评审 3:风控核准 4:合作洽谈 5:准备签约 6:已经签约 7:合作叫停 8:暂时搁置)', + field: 'industrySchedule', + component: 'Select', + componentProps: { + options: getDictOptions(DICT_TYPE.INDUSTRY_SCHEDULE, 'number') + } + }, + { + label: '归属人员', + field: 'belongingPeople', component: 'Input' }, { @@ -437,69 +867,240 @@ export const createFormSchema: FormSchema[] = [ options: getDictOptions(DICT_TYPE.CUSTOMER_STATUS1, 'number') } }, + { + label: '行业分类(0:家用电器 1:交通运输 2:商务服务 3:家具用品 4:电工电气 5:通信产品 6:办公文教 7:运动休闲 8:传媒广电)', + field: 'industryClassify', + component: 'Input' + }, + { + label: '所在城市', + field: 'city', + component: 'Input' + }, { label: '社会信息代码证(营业执照)', field: 'socialInformationCodeCertificate', - component: 'DatePicker' + component: 'Input' }, { label: '法定代表人证件照', field: 'legalRepresentativesPhoto', - component: 'FileUpload', - componentProps: { - fileType: 'file', - maxCount: 1 - } + component: 'Input' }, { label: '实缴资金证明', field: 'proofPaidCapital', - component: 'FileUpload', - componentProps: { - fileType: 'file', - maxCount: 1 - } + component: 'Input' }, { label: '资产证明', field: 'assetCertificate', - component: 'FileUpload', - componentProps: { - fileType: 'file', - maxCount: 1 - } + component: 'Input' }, { label: '资产抵押证明', field: 'assetCertificateMortgage', - component: 'FileUpload', - componentProps: { - fileType: 'file', - maxCount: 1 - } + component: 'Input' }, { label: '担保人证明', field: 'guarantorCertificate', - component: 'FileUpload', - componentProps: { - fileType: 'file', - maxCount: 1 - } + component: 'Input' + }, + { + label: '其他资质文件', + field: 'otherQualifications', + component: 'Input' }, { label: '经营范围', field: 'businessScope', - component: 'InputTextArea' + component: 'Input' }, { - label: '行业分类(0:家用电器 1:交通运输 2:商务服务 3:家具用品 4:电工电气 5:通信产品 6:办公文教 7:运动休闲 8:传媒广电)', - field: 'industryClassify', + label: '合作范围(关联业务线)', + field: 'collaborationScopeNum', component: 'Input' }, { - label: '其他资质文件', - field: 'otherQualifications', + label: '合作起始时间', + field: 'collaborationTime', + component: 'DatePicker' + }, + { + label: '供货量(每月下限)', + field: 'supplyVolumeDown', + component: 'Input' + }, + { + label: '供货量(每月下限)', + field: 'supplyVolumeUpper', + component: 'Input' + }, + { + label: '资金额度', + field: 'fundLimit', + component: 'Input' + }, + { + label: '营业时间', + field: 'businessHours', + component: 'Input' + }, + { + label: '允许卸货时间', + field: 'allowableUnloadingTime', + component: 'DatePicker' + }, + { + label: '卸货效率', + field: 'unloadingEfficiency', + component: 'Input' + }, + { + label: '允许装货时间', + field: 'allowableShipmentTime', + component: 'DatePicker' + }, + { + label: '装货效果', + field: 'shipmentEffciency', + component: 'Input' + }, + { + label: '付款方式(0:无 1:现金 2:银行转账 3:承兑汇票 4:有赞代收 5:支付宝 6:微信 7:国家列表)', + field: 'paymentMethod', + component: 'Input' + }, + { + label: '账户名称', + field: 'accountName', + component: 'Input' + }, + { + label: '银行账号', + field: 'bankAccount', + component: 'Input' + }, + { + label: '开户银行', + field: 'bankDeposit', + component: 'Input' + }, + { + label: '开户地区', + field: 'depositArea', + component: 'Input' + }, + { + label: '支行名称', + field: 'bankBranch', + component: 'Input' + }, + { + label: '公司税号', + field: 'companyTaxNumber', + component: 'Input' + }, + { + label: '企业名称', + field: 'enterpriseName', + component: 'Input' + }, + { + label: '单位地址', + field: 'workAddress', + component: 'Input' + }, + { + label: '合作方式(0:买断 1:联营)', + field: 'collaborationMethod', + component: 'Input' + }, + { + label: '结算方式(0:先货后款 1:先款后货)', + field: 'settlementMethod', + component: 'Input' + }, + { + label: '账期', + field: 'accountPeriod', + component: 'Input' + }, + { + label: '压款方式(0:无 1:按金额 2:按比例)', + field: 'underpaymentMethod', + component: 'Input' + }, + { + label: '默认压款比例', + field: 'defaultUnderpaymentRatio', + component: 'Input' + }, + { + label: '申请压款比例', + field: 'applyForUnderpaymentRatio', + component: 'Input' + }, + { + label: '保证金方式(0:无 1:按金额 2:按比例)', + field: 'marginMethod', + component: 'Input' + }, + { + label: '默认保证金比例', + field: 'defaultMarginRatio', + component: 'Input' + }, + { + label: '申请保证金比例', + field: 'applyForMarginRatio', + component: 'Input' + }, + { + label: '逾期利率(0:按年化1:按月化)', + field: 'overdueInterestRate', + component: 'Input' + }, + { + label: '默认逾期利率', + field: 'defaultOverdueRatio', + component: 'Input' + }, + { + label: '申请逾期利率', + field: 'applyForOverdueRatio', + component: 'Input' + }, + { + label: '客户联系人id', + field: 'contactsId', + component: 'Input' + }, + { + label: '客户类型', + field: 'customerType', + component: 'Select', + componentProps: { + options:[] + } + }, + { + label: '账户类型', + field: 'accountType', + component: 'Select', + componentProps: { + options:[] + } + }, + { + label: '卸货时长', + field: 'unloading', + component: 'Input' + }, + { + label: '装货时长', + field: 'shipment', component: 'Input' }, ] @@ -567,11 +1168,6 @@ export const updateFormSchema: FormSchema[] = [ field: 'belongingPeople', component: 'Input' }, - { - label: '所在城市', - field: 'city', - component: 'Input' - }, { label: '国家', field: 'country', @@ -611,49 +1207,240 @@ export const updateFormSchema: FormSchema[] = [ options: getDictOptions(DICT_TYPE.CUSTOMER_STATUS1, 'number') } }, + { + label: '行业分类(0:家用电器 1:交通运输 2:商务服务 3:家具用品 4:电工电气 5:通信产品 6:办公文教 7:运动休闲 8:传媒广电)', + field: 'industryClassify', + component: 'Input' + }, + { + label: '所在城市', + field: 'city', + component: 'Input' + }, { label: '社会信息代码证(营业执照)', field: 'socialInformationCodeCertificate', - component: 'DatePicker' + component: 'Input' }, { label: '法定代表人证件照', field: 'legalRepresentativesPhoto', - component: 'Upload' + component: 'Input' }, { label: '实缴资金证明', field: 'proofPaidCapital', - component: 'Upload' + component: 'Input' }, { label: '资产证明', field: 'assetCertificate', - component: 'Upload' + component: 'Input' }, { label: '资产抵押证明', field: 'assetCertificateMortgage', - component: 'Upload' + component: 'Input' }, { label: '担保人证明', field: 'guarantorCertificate', - component: 'Upload' + component: 'Input' + }, + { + label: '其他资质文件', + field: 'otherQualifications', + component: 'Input' }, { label: '经营范围', field: 'businessScope', - component: 'InputTextArea' + component: 'Input' }, { - label: '行业分类(0:家用电器 1:交通运输 2:商务服务 3:家具用品 4:电工电气 5:通信产品 6:办公文教 7:运动休闲 8:传媒广电)', - field: 'industryClassify', + label: '合作范围(关联业务线)', + field: 'collaborationScopeNum', component: 'Input' }, { - label: '其他资质文件', - field: 'otherQualifications', + label: '合作起始时间', + field: 'collaborationTime', + component: 'DatePicker' + }, + { + label: '供货量(每月下限)', + field: 'supplyVolumeDown', + component: 'Input' + }, + { + label: '供货量(每月下限)', + field: 'supplyVolumeUpper', + component: 'Input' + }, + { + label: '资金额度', + field: 'fundLimit', + component: 'Input' + }, + { + label: '营业时间', + field: 'businessHours', + component: 'Input' + }, + { + label: '允许卸货时间', + field: 'allowableUnloadingTime', + component: 'DatePicker' + }, + { + label: '卸货效率', + field: 'unloadingEfficiency', + component: 'Input' + }, + { + label: '允许装货时间', + field: 'allowableShipmentTime', + component: 'DatePicker' + }, + { + label: '装货效果', + field: 'shipmentEffciency', + component: 'Input' + }, + { + label: '付款方式(0:无 1:现金 2:银行转账 3:承兑汇票 4:有赞代收 5:支付宝 6:微信 7:国家列表)', + field: 'paymentMethod', + component: 'Input' + }, + { + label: '账户名称', + field: 'accountName', + component: 'Input' + }, + { + label: '银行账号', + field: 'bankAccount', + component: 'Input' + }, + { + label: '开户银行', + field: 'bankDeposit', + component: 'Input' + }, + { + label: '开户地区', + field: 'depositArea', + component: 'Input' + }, + { + label: '支行名称', + field: 'bankBranch', + component: 'Input' + }, + { + label: '公司税号', + field: 'companyTaxNumber', + component: 'Input' + }, + { + label: '企业名称', + field: 'enterpriseName', + component: 'Input' + }, + { + label: '单位地址', + field: 'workAddress', + component: 'Input' + }, + { + label: '合作方式(0:买断 1:联营)', + field: 'collaborationMethod', + component: 'Input' + }, + { + label: '结算方式(0:先货后款 1:先款后货)', + field: 'settlementMethod', + component: 'Input' + }, + { + label: '账期', + field: 'accountPeriod', + component: 'Input' + }, + { + label: '压款方式(0:无 1:按金额 2:按比例)', + field: 'underpaymentMethod', + component: 'Input' + }, + { + label: '默认压款比例', + field: 'defaultUnderpaymentRatio', + component: 'Input' + }, + { + label: '申请压款比例', + field: 'applyForUnderpaymentRatio', + component: 'Input' + }, + { + label: '保证金方式(0:无 1:按金额 2:按比例)', + field: 'marginMethod', + component: 'Input' + }, + { + label: '默认保证金比例', + field: 'defaultMarginRatio', + component: 'Input' + }, + { + label: '申请保证金比例', + field: 'applyForMarginRatio', + component: 'Input' + }, + { + label: '逾期利率(0:按年化1:按月化)', + field: 'overdueInterestRate', + component: 'Input' + }, + { + label: '默认逾期利率', + field: 'defaultOverdueRatio', + component: 'Input' + }, + { + label: '申请逾期利率', + field: 'applyForOverdueRatio', + component: 'Input' + }, + { + label: '客户联系人id', + field: 'contactsId', + component: 'Input' + }, + { + label: '客户类型', + field: 'customerType', + component: 'Select', + componentProps: { + options:[] + } + }, + { + label: '账户类型', + field: 'accountType', + component: 'Select', + componentProps: { + options:[] + } + }, + { + label: '卸货时长', + field: 'unloading', + component: 'Input' + }, + { + label: '装货时长', + field: 'shipment', component: 'Input' }, ] \ No newline at end of file diff --git a/yudao-ui-admin-vben-master/src/views/xxjj/enterprisebranching/enterprise.data.ts b/yudao-ui-admin-vben-master/src/views/xxjj/enterprisebranching/enterprise.data.ts index bcbb697..7559da6 100644 --- a/yudao-ui-admin-vben-master/src/views/xxjj/enterprisebranching/enterprise.data.ts +++ b/yudao-ui-admin-vben-master/src/views/xxjj/enterprisebranching/enterprise.data.ts @@ -1,5 +1,9 @@ import { BasicColumn, FormSchema, useRender } from '@/components/Table' import { DICT_TYPE, getDictOptions } from '@/utils/dict' +import {h} from "vue"; +import {Switch} from "ant-design-vue"; +import {useMessage} from "@/hooks/web/useMessage"; +import {updateEnterpriseStatus} from "@/api/system/enterprise"; export const columns: BasicColumn[] = [ // { @@ -53,6 +57,39 @@ export const columns: BasicColumn[] = [ return useRender.renderDate(text) } }, + { + title: '状态', + dataIndex: 'enterpriseStatus', + width: 180, + customRender: ({ record }) => { + if (!Reflect.has(record, 'pendingStatus')) + record.pendingStatus = false + + return h(Switch, { + checked: record.status === 0, + checkedChildren: '已启用', + unCheckedChildren: '已禁用', + loading: record.pendingStatus, + onChange(checked: boolean) { + record.pendingStatus = true + const newStatus = checked ? 0 : 1 + const { createMessage } = useMessage() + updateEnterpriseStatus(record.id, newStatus) + .then(() => { + record.status = newStatus + createMessage.success('已成功修改用户状态') + }) + .catch(() => { + createMessage.error('修改用户状态失败') + }) + .finally(() => { + record.pendingStatus = false + }) + }, + }) + }, + }, + // { // title: '企业简称', // dataIndex: 'shortName', diff --git a/yudao-ui-admin-vben-master/src/views/xxjj/enterprisebranching/index.vue b/yudao-ui-admin-vben-master/src/views/xxjj/enterprisebranching/index.vue index b4ad6ba..1f29989 100644 --- a/yudao-ui-admin-vben-master/src/views/xxjj/enterprisebranching/index.vue +++ b/yudao-ui-admin-vben-master/src/views/xxjj/enterprisebranching/index.vue @@ -3,7 +3,7 @@