From 350e4245b53428cec58a793d6e2563beebdea6ab Mon Sep 17 00:00:00 2001 From: zhaoxiao Date: Wed, 15 Sep 2021 18:40:48 +0800 Subject: [PATCH] =?UTF-8?q?[update]=20=E4=BC=81=E4=B8=9A=E7=AE=A1=E7=90=86?= =?UTF-8?q?--=E5=AE=A1=E6=A0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/incomePaymentsApi.js | 5 +- src/utils/util.js | 5 +- .../businessManagement/BusinessManagement.vue | 12 +- .../modules/BusinessAduitModule.vue | 137 ++++++++++++++++++ 4 files changed, 152 insertions(+), 7 deletions(-) create mode 100644 src/views/businessManagement/modules/BusinessAduitModule.vue diff --git a/src/api/incomePaymentsApi.js b/src/api/incomePaymentsApi.js index b8dd259..46e70fe 100644 --- a/src/api/incomePaymentsApi.js +++ b/src/api/incomePaymentsApi.js @@ -50,6 +50,8 @@ const addPackProject = (param) => postAction('/pack/payPackCompanyProject/add', const removePackProject = (param) => postAction('/pack/payPackCompanyProject/remove', param) // 批量取消打包 const batchRemovePackProject = (param) => postAction('/pack/payPackCompanyProject/removeBatch', param) +// 企业管理审核 +const aduitCompany = (param) => getAction('/company/payCompanyManagement/audit', param) export { getWorkingGroupById, @@ -76,5 +78,6 @@ export { getPackCompanyById, addPackProject, removePackProject, - batchRemovePackProject + batchRemovePackProject, + aduitCompany } diff --git a/src/utils/util.js b/src/utils/util.js index 44d06f6..8e755b5 100644 --- a/src/utils/util.js +++ b/src/utils/util.js @@ -599,8 +599,9 @@ export function addZero(e) { // console.log(e.target.value) // 判断是否包含 . let value = e.target.value - // 判断是否包含小数点 + // 判断是否有数据 if (value && value !== '') { + // 判断是否包含小数点 if (value.includes('.')) { // 获取索引 let index = value.indexOf('.') @@ -614,7 +615,7 @@ export function addZero(e) { e.target.value = beforePointValue + afterPointValue }else { // 不足2位补0 - afterPointValue = afterPointValue.padEnd(2,'0') + afterPointValue = afterPointValue.padEnd(2,'0') e.target.value = beforePointValue + afterPointValue } }else { diff --git a/src/views/businessManagement/BusinessManagement.vue b/src/views/businessManagement/BusinessManagement.vue index 14f7fb8..564db95 100644 --- a/src/views/businessManagement/BusinessManagement.vue +++ b/src/views/businessManagement/BusinessManagement.vue @@ -63,11 +63,13 @@ 编辑 删除 - 审核 + 审核 + + @@ -78,10 +80,11 @@ import JEllipsis from '@comp/jero/JEllipsis' import BusinessManagementModule from './modules/BusinessManagementModule' import PageHeaderTitle from '@comp/layouts/PageHeaderTitle' import IconImg from '@/assets/imgs/icon/icon_company_management.png' +import BusinessAduitModule from './modules/BusinessAduitModule' export default { name: 'BusinessManagement', - components: { JEllipsis, BusinessManagementModule, PageHeaderTitle }, + components: { JEllipsis, BusinessManagementModule, PageHeaderTitle, BusinessAduitModule }, mixins: [JeroListMixin], computed: { importExcelUrl: function () { @@ -168,8 +171,9 @@ export default { } }, methods: { - handleAudit() { - + handleAudit(id) { + this.$refs.aduitForm.companyId = id + this.$refs.aduitForm.open() } } } diff --git a/src/views/businessManagement/modules/BusinessAduitModule.vue b/src/views/businessManagement/modules/BusinessAduitModule.vue new file mode 100644 index 0000000..5e884bd --- /dev/null +++ b/src/views/businessManagement/modules/BusinessAduitModule.vue @@ -0,0 +1,137 @@ + + + + + \ No newline at end of file