david 2 anni fa
parent
commit
f3f653533e
6 ha cambiato i file con 667 aggiunte e 8 eliminazioni
  1. 128 0
      src/api/finance.js
  2. 36 4
      src/lang/en.js
  3. 35 3
      src/lang/zh.js
  4. 12 0
      src/router/index.js
  5. 455 0
      src/views/finance/balance-audit-list.vue
  6. 1 1
      vue.config.js

+ 128 - 0
src/api/finance.js

@@ -0,0 +1,128 @@
+import request from '@/utils/request'
+
+export function getChangeBalanceType() {
+  return request({
+    url: '/v1/finance/change-balance-type',
+    method: 'get',
+  })
+}
+
+// 列表
+export function balanceAuditList(query) {
+    return request({
+      url: '/v1/finance/balance-audit-list',
+      method: 'get',
+      data: query,
+      params: query
+    })
+}
+
+// 删除角色
+export function deleteRole(id) {
+  return request({
+    url: '/v1/admin/role-delete/' + id,
+    method: 'get',
+    data: {}
+  })
+}
+
+// 批量删除角色
+export function batchDeleteRole(query) {
+  return request({
+    url: '/v1/admin/role-delete',
+    method: 'post',
+    data: query
+  })
+}
+
+// 列表
+export function adminRole(query) {
+  return request({
+    url: '/v1/admin/role',
+    method: 'get',
+    data: query,
+    params: query
+  })
+}
+
+// 编辑角色获取详情
+export function roleDetail(id) {
+  return request({
+    url: '/v1/admin/role-edit/' + id,
+    method: 'get',
+    data: {}
+  })
+}
+
+// 添加/编辑角色
+export function addOREditRole(path, query) {
+  return request({
+    url: '/v1/' + path,
+    method: 'post',
+    data: query
+  })
+}
+
+// 获取角色权限
+export function getRolePermission(id) {
+  return request({
+    url: '/v1/admin/role-permission/' + id,
+    method: 'get'
+  })
+}
+
+// 编辑角色权限
+export function editRolePermission(id, query) {
+  return request({
+    url: '/v1/admin/role-permission/' + id,
+    method: 'post',
+    data: query
+  })
+}
+
+// 管理员添加/编辑/修改密码
+export function adminAddAndEditAndChangePassword(path, query) {
+  return request({
+    url: '/v1/' + path,
+    method: 'post',
+    data: query
+  })
+}
+
+// 管理员列表
+export function adminList(query) {
+  return request({
+    url: '/v1/admin/index',
+    method: 'get',
+    data: query,
+    params: query
+  })
+}
+
+// 添加管理员-获取角色列表
+export function adminAdd(query) {
+  return request({
+    url: '/v1/admin/add',
+    method: 'get',
+    data: query,
+    params: query
+  })
+}
+
+// 管理员-编辑获取详情
+export function adminEdit(id) {
+  return request({
+    url: '/v1/admin/edit/' + id,
+    method: 'get'
+  })
+}
+
+// 删除管理员
+export function adminDelete(query) {
+  return request({
+    url: '/v1/admin/admin-delete',
+    method: 'post',
+    data: query
+  })
+}
+

+ 36 - 4
src/lang/en.js

@@ -130,7 +130,8 @@ export default {
     draft: 'Draft',
     delete: 'Delete',
     cancel: 'Cancel',
-    confirm: 'Confirm'
+    confirm: 'Confirm',
+    adopted:'Adopted',
   },
   example: {
     warning: 'Creating and editing pages cannot be cached by keep-alive because keep-alive include does not currently support caching based on routes, so it is currently cached based on component name. If you want to achieve a similar caching effect, you can use a browser caching scheme such as localStorage. Or do not use keep-alive include to cache all pages directly. See details'
@@ -208,7 +209,8 @@ export default {
     pleaseInputContent: '请输入内容',
     relation: '关系',
     reset: '重置',
-    desc: '描述'
+    desc: '描述',
+    exportExcel:'Export Excel',
   },
 
   filter: {
@@ -327,9 +329,39 @@ export default {
     modifiedStockist: '修改报单中心'
   },
 
-  // 财务
+  // 财务管理
   financial: {
-    serviceCharge: '服务费(%)'
+    serviceCharge: '服务费(%)',
+    all:"All",
+    toBeReviewed:'To be reviewed',
+    approved:'Approved',
+    auditReject:'Audit reject',
+    action:'Action',
+    delData:'Delete data',
+    selectedData:'Selected data',
+    negativeAllowedBatchApproval:'Negative number allowed for batch approval',
+    cannotNegativeBatch:'Batch approval cannot be negative',
+    batchReject:'Batch rejection',
+    batchDel:'Delete in batches',
+    applyChangeEcoin:'Apply for change of member Ecoin',
+    modifyEcoinChangeInfo:'Modify member Ecoin change information',
+    memberCode:'Member code',
+    memberName:'Member name',
+    accountType:'Account type',
+    pleaseSelectAccountType:'Please select account type',
+    adjustmentAmount:'Adjustment amount',
+    transactionType:'Transaction type',
+    pleaseSelectTranserType:'Please select transaction type',
+    forgeDisplayRemark:'Remarks foreground display',
+    selectRecordOperateNotice:'Please select the record to operate',
+    modifyData:'Modifying data',
+    balanceInsufficientSubmitNotice:'The member account balance is insufficient, continue to submit',
+    passingAudit:'Passing the audit',
+    handleAuditDefaultNotice:'Are you sure to pass the approval (negative number is not allowed for member account) ? Note:',
+    handleAuditRejectNotice:'Are you sure you want to reject the approval? Note:',
+    handleAuditPassNotice:'Are you sure to pass the approval (negative number is allowed for member account) ? Note:',
+    okDelData:"OK to delete the selected data?",
+    exportNotice:"Are you sure you want to export the current data?",
   },
 
   // 管理员管理

+ 35 - 3
src/lang/zh.js

@@ -131,7 +131,8 @@ export default {
     draft: '草稿',
     delete: '删除',
     cancel: '取 消',
-    confirm: '确 定'
+    confirm: '确 定',
+    adopted:'通过',
   },
   example: {
     warning: '创建和编辑页面是不能被 keep-alive 缓存的,因为keep-alive 的 include 目前不支持根据路由来缓存,所以目前都是基于 component name 来进行缓存的。如果你想类似的实现缓存效果,可以使用 localStorage 等浏览器缓存方案。或者不要使用 keep-alive 的 include,直接缓存所有页面。详情见'
@@ -210,7 +211,8 @@ export default {
     pleaseInputContent: '请输入内容',
     relation: '关系',
     reset: '重置',
-    desc: '描述'
+    desc: '描述',
+    exportExcel:'导出Excel',
   },
 
   filter: {
@@ -332,7 +334,37 @@ export default {
 
   // 财务
   financial: {
-    serviceCharge: '服务费(%)'
+    serviceCharge: '服务费(%)',
+    all:"全部",
+    toBeReviewed:'待审核',
+    approved:'审核通过',
+    auditReject:'审核拒绝',
+    action:'操作',
+    delData:'删除数据',
+    selectedData:'所选数据',
+    negativeAllowedBatchApproval:'批量审核允许为负数',
+    cannotNegativeBatch:'批量审核不允许为负数',
+    batchReject:'批量拒审',
+    batchDel:'批量删除',
+    applyChangeEcoin:'申请变动会员余额',
+    modifyEcoinChangeInfo:'修改会员余额变动信息',
+    memberCode:'会员编号',
+    memberName:'会员姓名',
+    accountType:'账户类型',
+    pleaseSelectAccountType:'请选择账户类型',
+    adjustmentAmount:'调整金额',
+    transactionType:'交易类型',
+    pleaseSelectTranserType:'请选择交易类型',
+    forgeDisplayRemark:'备注前台显示',
+    selectRecordOperateNotice:'请选择要操作的记录',
+    modifyData:'正在修改数据',
+    balanceInsufficientSubmitNotice:'会员账户余额不足,是否继续提交',
+    passingAudit:'正在通过审核',
+    handleAuditDefaultNotice:'确定要通过审核(会员账户不允许为负数)?备注:',
+    handleAuditRejectNotice:'确定要拒绝审核?备注',
+    handleAuditPassNotice:'确定要通过审核(会员账户允许为负数)?备注',
+    okDelData:"确定删除选定的数据?",
+    exportNotice:"确定要导出当前数据吗?",
   },
 
   // 管理员管理

+ 12 - 0
src/router/index.js

@@ -93,6 +93,18 @@ export const constantRoutes = [
       }
     ]
   },
+  {
+    path: '/finance',
+    component: Layout,
+    hidden: true,
+    children: [
+      {
+        path: '/finance/balance-audit-list',
+        component: () => import('@/views/finance/balance-audit-list'),
+        name: 'finance_balance-audit-list',
+      }
+    ]
+  },
   {
     path: '/login',
     component: () => import('@/views/login/index'),

+ 455 - 0
src/views/finance/balance-audit-list.vue

@@ -0,0 +1,455 @@
+<template>
+    <div v-loading="loading">
+      <div class="white-box">
+        <el-tabs v-model="filterStatus" @tab-click="handleFilterStatusClick">
+          <el-tab-pane :label="$t('financial.all')" name="-1" :lazy="true"></el-tab-pane><!-- 全部 -->
+          <el-tab-pane :label="$t('financial.toBeReviewed')" name="0" :lazy="true"></el-tab-pane><!-- 待审核 -->
+          <el-tab-pane :label="$t('financial.approved')" name="1" :lazy="true"></el-tab-pane><!-- 审核通过 -->
+          <el-tab-pane :label="$t('financial.auditReject')" name="3" :lazy="true"></el-tab-pane><!-- 审核拒绝 -->
+        </el-tabs>
+        <div class="filter-box">
+          <filter-user ref="filterUser" :filter-types="filterTypes" @select-value="handleFilterUser"></filter-user>
+        </div>
+        <el-table :data="tableData" stripe style="width: 100%;" @selection-change="handleSelectionChange"
+                  :height="tool.getTableHeight(true)">
+          <el-table-column type="selection" width="55" v-if="tableHeaders"></el-table-column>
+          <el-table-column v-for="(tableHeader, key) in tableHeaders" :key="key" :label="tableHeader.header" :width="tableHeader.other.width ? tableHeader.other.width : ''">
+            <template slot-scope="scope">
+              <template v-if="scope.row[tableHeader.index].other.tag" >
+                <el-tag :type="scope.row[tableHeader.index].other.tag.type ? scope.row[tableHeader.index].other.tag.type : null" :size="scope.row[tableHeader.index].other.tag.size ? scope.row[tableHeader.index].other.tag.size : null" :class="scope.row[tableHeader.index].other.tag.class ? scope.row[tableHeader.index].other.tag.class : null" >{{scope.row[tableHeader.index].value}}</el-tag>
+              </template>
+              <template v-else-if="scope.row[tableHeader.index].other.progress" >
+                <el-progress type="circle" :percentage="Number.parseInt(percentList['MOVE_PERCENT'][scope.row.ID])"
+                             :width="50"
+                             :stroke-width="3"></el-progress>
+              </template>
+              <template v-else>
+                <div v-html="scope.row[tableHeader.index].value"></div>
+              </template>
+            </template>
+          </el-table-column>
+          <el-table-column fixed="right" :label="$t('financial.action')" width="180" v-if="tableHeaders"><!-- 操作 -->
+            <template slot-scope="scope"
+                      v-if="scope.row.AUDIT_STATUS==='0' && (permission.hasPermission(`finance/balance-audit-pass`) || permission.hasPermission(`finance/balance-audit`) || permission.hasPermission(`finance/balance-audit-delete`))">
+              <el-dropdown size="small" trigger="click">
+                <el-button type="primary" size="small" @click.stop="">
+                  <!-- 操作该数据 -->{{ $t('financial.action') }}<i class="el-icon-arrow-down el-icon--right"></i>
+                </el-button>
+                <el-dropdown-menu slot="dropdown">
+                  <el-dropdown-item command="pass" @click.native="handleAuditShow(scope.row)"
+                                    v-show="permission.hasPermission(`finance/balance-audit-pass`)">{{ $t('financial.approved') }}<!-- 审核通过 -->
+                  </el-dropdown-item>
+                  <el-dropdown-item command="refuse" @click.native="handleAudit(scope.row, 'reject')"
+                                    v-show="permission.hasPermission(`finance/balance-audit`)">{{ $t('financial.auditReject') }}<!-- 审核拒绝 -->
+                  </el-dropdown-item>
+                  <el-dropdown-item command="del" @click.native="handleDel(scope.row.ID)"
+                                    v-show="permission.hasPermission(`finance/balance-audit-delete`)">{{ $t('financial.delData') }}<!-- 删除数据 -->
+                  </el-dropdown-item>
+                </el-dropdown-menu>
+              </el-dropdown>
+            </template>
+          </el-table-column>
+        </el-table>
+        <div class="white-box-footer">
+          <el-dropdown size="small" trigger="click" @command="handleMuli"
+                       v-if="filterStatus==='0' && (permission.hasPermission(`finance/balance-audit`)||permission.hasPermission(`finance/balance-audit-delete`))">
+            <el-button type="primary" size="small">
+              <!-- 所选数据 -->{{ $t('financial.selectedData') }}<i class="el-icon-arrow-down el-icon--right"></i>
+            </el-button>
+            <el-dropdown-menu slot="dropdown">
+              <el-dropdown-item command="passMinus" v-if="permission.hasPermission(`finance/balance-audit`)">{{ $t('financial.negativeAllowedBatchApproval') }}<!-- 批量审核允许为负数 --></el-dropdown-item>
+              <el-dropdown-item command="pass" v-if="permission.hasPermission(`finance/balance-audit`)">{{ $t('financial.cannotNegativeBatch') }}<!-- 批量审核不允许为负数 --></el-dropdown-item>
+              <el-dropdown-item command="reject" v-if="permission.hasPermission(`finance/balance-audit`)">{{ $t('financial.batchReject') }}<!-- 批量拒审 --></el-dropdown-item>
+              <el-dropdown-item command="del" @click.native="handleDel()" v-if="permission.hasPermission(`finance/balance-audit-delete`)">{{ $t('financial.batchDel') }}<!-- 批量删除 --></el-dropdown-item>
+            </el-dropdown-menu>
+          </el-dropdown>
+          <el-button type="primary" size="small" @click="handleAdd" icon="el-icon-plus"
+                     v-show="permission.hasPermission(`finance/change-balance-opt`)">{{ $t('financial.applyChangeEcoin') }}<!-- 申请变动会员余额 -->
+          </el-button>
+          <el-button type="success" size="small" @click="handleExport"
+                     v-show="permission.hasPermission(`finance/balance-audit-list-export`)">{{ $t('common.exportExcel') }}<!-- 导出Excel -->
+          </el-button>
+          <pagination :total="totalCount" :page_size="pageSize" @size-change="handleSizeChange" @current-change="handleCurrentChange"></pagination>
+        </div>
+        <el-dialog :title="$t('financial.modifyEcoinChangeInfo')" :visible.sync="dialogEditFormVisible"><!-- 修改会员余额变动信息 -->
+          <el-form :model="form" label-width="150px" class="form-dialog" v-loading="dialogEditLoading">
+            <el-form-item :label="$t('financial.memberCode')"><!-- 会员编号 -->
+              <el-input v-model="form.baseInfo.USER_NAME" :disabled="true"></el-input>
+            </el-form-item>
+            <el-form-item :label="$t('financial.memberName')"><!-- 会员姓名 -->
+              <el-input v-model="form.baseInfo.REAL_NAME" :disabled="true"></el-input>
+            </el-form-item>
+            <el-form-item :label="$t('financial.accountType')"><!-- 账户类型 -->
+              <el-select v-model="form.type" :placeholder="$t('financial.pleaseSelectAccountType')"><!-- 请选择账户类型 -->
+                <el-option v-for="(item,key) in type" :label="item.label" :value="key" :key="key"></el-option>
+              </el-select>
+            </el-form-item>
+            <el-form-item :label="$t('financial.adjustmentAmount')"><!-- 调整金额 -->
+              <el-input v-model="form.amount"></el-input>
+            </el-form-item>
+            <el-form-item :label="$t('financial.transactionType')"><!-- 交易类型 -->
+              <el-select v-model="form.dealType" :placeholder="$t('financial.pleaseSelectTranserType')"><!-- 请选择交易类型 -->
+                <el-option v-for="(item,key) in dealTypes" :label="item.TYPE_NAME" :value="item.ID"
+                           :key="item.ID"></el-option>
+              </el-select>
+            </el-form-item>
+            <el-form-item :label="$t('table.remark')"><!-- 备注 -->
+              <el-input v-model="form.remark"></el-input>
+            </el-form-item>
+            <el-form-item :label="$t('financial.forgeDisplayRemark')"><!-- 备注前台显示 -->
+              <el-switch v-model="form.isShow" active-value="1" inactive-value="0">
+              </el-switch>
+            </el-form-item>
+          </el-form>
+          <div slot="footer" class="dialog-footer">
+            <el-button @click="dialogEditFormVisible = false">{{ $t('table.cancel') }}<!-- 取 消 --></el-button>
+            <el-button type="primary" @click.native="handleEdit">{{ $t('table.edit') }}<!-- 修 改 --></el-button>
+          </div>
+        </el-dialog>
+        <el-dialog title="Review member Ecoin change information" :visible.sync="dialogAuditFormVisible"><!-- 审核会员余额变动信息 -->
+          <el-form :model="form" label-width="250px" class="form-dialog" v-loading="dialogAuditLoading">
+            <el-form-item :label="$t('financial.memberCode')"><!-- 会员编号 -->
+              <el-input v-model="form.baseInfo.USER_NAME" :disabled="true"></el-input>
+            </el-form-item>
+            <el-form-item :label="$t('financial.memberName')"><!-- 会员姓名 -->
+              <el-input v-model="form.baseInfo.REAL_NAME" :disabled="true"></el-input>
+            </el-form-item>
+            <el-form-item :label="$t('financial.accountType')"><!-- 账户类型 -->
+              <el-select v-model="form.type" :placeholder="$t('financial.pleaseSelectAccountType')"><!-- 请选择账户类型 -->
+                <el-option v-for="(item,key) in type" :label="item.label" :value="key" :key="key"></el-option>
+              </el-select>
+            </el-form-item>
+            <el-form-item :label="item.label" v-show="form.baseInfo.REAL_NAME!==null && item.name===form.type"
+                          v-for="(item,key) in type" :key="key">
+              <el-input :value="form.baseInfo[item.name.toUpperCase()]" :disabled="true"></el-input>
+            </el-form-item>
+            <el-form-item :label="$t('financial.adjustmentAmount')"><!-- 调整金额 -->
+              <el-input v-model="form.amount"></el-input>
+            </el-form-item>
+            <el-form-item :label="$t('financial.transactionType')"><!-- 交易类型 -->
+              <el-select v-model="form.dealType" :placeholder="$t('financial.pleaseSelectTranserType')"><!-- 请选择交易类型 -->
+                <el-option v-for="(item,key) in dealTypes" :label="item.TYPE_NAME" :value="item.ID"
+                           :key="item.ID"></el-option>
+              </el-select>
+            </el-form-item>
+            <el-form-item :label="$t('financial.forgeDisplayRemark')"><!-- 备注前台显示 -->
+              <el-switch v-model="form.isShow" active-value="1" inactive-value="0">
+              </el-switch>
+            </el-form-item>
+            <el-form-item :label="$t('table.remark')"><!-- 备注 -->
+              <el-input v-model="form.remark"></el-input>
+            </el-form-item>
+          </el-form>
+          <div slot="footer" class="dialog-footer">
+            <el-button @click="dialogAuditFormVisible = false">{{ $t('table.cancel') }}<!-- 取 消 --></el-button>
+            <el-button type="primary" @click.native="handleAuditPass" :disabled="auditPassButtonStat">{{ $t('table.adopted') }}<!-- 通 过 --></el-button>
+          </div>
+        </el-dialog>
+      </div>
+    </div>
+  </template>
+  
+  <script>
+    import tool from '@/utils/tool'
+    import FilterUser from '@/components/FilterUser'
+    import baseInfo from '@/utils/baseInfo'
+    import permission from '@/utils/permission'
+    import Pagination from '@/components/Pagination'
+    import filterHelper from '@/utils/filterHelper'
+    import { getChangeBalanceType, balanceAuditList } from '@/api/finance'
+  
+    export default {
+      name: 'leo-balance-audit-table',
+      components: {FilterUser,Pagination},
+      mounted() {
+        getChangeBalanceType().then(response => {
+          this.type = response.data.type
+          this.dealTypes = response.data.dealTypes
+          this.getData()
+        })
+        // network.getData('finance/change-balance-type').then(response => {
+        //   this.type = response.type
+        //   this.dealTypes = response.dealTypes
+        //   this.getData()
+        // })
+      },
+      data() {
+        return {
+          tableHeaders: null,
+          tableData: null,
+          loading: true,
+          multipleSelection: [],
+          currentPage: 1,
+          totalPages: 1,
+          totalCount: 1,
+          pageSize: 20,
+          tool: tool,
+          permission: permission,
+          baseDecLevels: baseInfo.decLevels(),
+          filterTypes: {},
+          filterModel: {},
+          filterStatus: '0',
+          type: null,
+          dealTypes: null,
+          dialogEditLoading: false,
+          dialogAuditLoading: false,
+          dialogEditFormVisible: false,
+          dialogAuditFormVisible: false,
+          auditPassButtonStat: true,
+          auditId: null,
+          form: {
+            id: null,
+            baseInfo: {USER_NAME: null},
+            type: null,
+            dealType: null,
+            amount: 0,
+            createRemark: '',
+            remark: '',
+            auditStatus: null,
+            balanceCode:''
+          },
+        }
+      },
+      methods: {
+        handleMuli(command) {
+          if (this.multipleSelection.length < 1) {
+            this.$message({
+              message: this.$t('financial.selectRecordOperateNotice'),//请选择要操作的记录
+              type: 'warning'
+            })
+            return;
+          }
+          if (command === 'pass') {
+            this.handleAudit(null, 'true')
+          } else if (command === 'reject') {
+            this.handleAudit(null, 'reject')
+          } else if (command === 'passMinus') {
+            this.handleAudit(null, 'true', true)
+          }
+        },
+        handleAdd() {
+          this.$router.push({path: `/finance/change-balance-opt`})
+        },
+        handleEditShow(row) {
+          this.dialogEditLoading = true
+          this.auditId = row.ID
+          this.dialogEditFormVisible = true
+          let vueObj = this
+          network.getData('finance/balance-audit-get', {id: this.auditId}).then(response => {
+            vueObj.dialogEditLoading = false
+            vueObj.form = response
+            vueObj.form.type = String(response.type)
+            vueObj.form.createRemark = vueObj.form.remark
+          })
+        },
+        handleEdit() {
+          this.dialogEditFormVisible = false
+          this.$message({
+            message: this.$t('financial.modifyData'),//正在修改数据
+            type: 'info'
+          })
+          let path = 'finance/balance-audit-edit'
+          network.postData(path, this.form).then(response => {
+            this.$message({
+              message: response,
+              type: 'success'
+            })
+            this.getData(this.currentPage, this.pageSize)
+          }).catch(response => {
+          })
+        },
+        handleAuditShow(row) {
+          this.dialogAuditLoading = true
+          this.auditId = row.ID
+          this.dialogAuditFormVisible = true
+          let vueObj = this
+          network.getData('finance/balance-audit-get', {id: this.auditId}).then(response => {
+            vueObj.dialogAuditLoading = false
+            //vueObj.form = response
+            vueObj.form.id = response.id
+            vueObj.form.baseInfo = response.baseInfo
+            vueObj.form.dealType = response.dealType
+            vueObj.form.amount = response.amount
+            vueObj.form.remark = response.remark
+            vueObj.form.auditStatus = response.auditStatus
+            vueObj.form.type = String(response.type)
+            vueObj.form.createRemark = vueObj.form.remark
+          })
+          network.postData('finance/mult-point', {opType: 1}).then(response => {
+              this.form.balanceCode = response.balanceCode
+              this.auditPassButtonStat = false
+          })
+        },
+        handleAuditPass() {
+            if (this.form.type === 'bonus') {
+              if ((Number.parseFloat(this.form.baseInfo['BONUS']) + Number.parseFloat(this.form.amount)) < 0) {
+                this.$confirm(this.$t('financial.balanceInsufficientSubmitNotice'), this.$t('common.hint'), {//`会员账户余额不足,是否继续提交`, '提示'
+                  confirmButtonText: this.$t('common.confirm'),//确定
+                  cancelButtonText: this.$t('common.cancel'),//取消
+                  type: 'warning'
+                }).then(() => {
+                  this._handleAuditPass()
+                }).catch(() => {
+                  this.submitButtonStat = false
+                  return false
+                })
+              } else {
+                this._handleAuditPass()
+              }
+            } else {
+              this._handleAuditPass()
+            }
+        },
+        _handleAuditPass() {
+          this.dialogAuditFormVisible = false
+          this.$message({
+            message: this.$t('financial.passingAudit'),//正在通过审核
+            type: 'info'
+          })
+          this.form.auditStatus = 'true'
+          let path = 'finance/balance-audit-pass'
+          network.postData(path, this.form).then(response => {
+            this.$message({
+              message: response,
+              type: 'success'
+            })
+            this.getData(this.currentPage, this.pageSize)
+          }).catch(response => {
+          })
+        },
+        handleAudit(row = null, status, minus = false) {
+          let obj = this  
+          let title = this.$t('financial.handleAuditDefaultNotice')  //确定要通过审核(会员账户不允许为负数)?备注:
+          if (status === 'reject') {
+            title = this.$t('financial.handleAuditRejectNotice') //确定要拒绝审核?备注
+          }else if(minus){
+            title = this.$t('financial.handleAuditPassNotice') //确定要通过审核(会员账户允许为负数)?备注
+          }
+            network.postData('finance/mult-point', {opType: 1}).then(response => {
+                this.form.balanceCode = response.balanceCode
+                this.$prompt(title, this.$t('common.hint'), {//提示
+                  confirmButtonText: this.$t('common.confirm'),//确定
+                  cancelButtonText: this.$t('common.cancel'),//取消
+                  inputValue: row ? row.REMARK : '',
+                  //type: 'warning',
+                }).then(({value}) => {
+                  let selectedIds = []
+                  if (row === null) {
+                    for (let val of obj.multipleSelection) {
+                      selectedIds.push(val.ID)
+                    }
+                  } else {
+                    selectedIds.push(row.ID)
+                  }
+                  return network.postData(`finance/balance-audit`, {
+                    selected: selectedIds,
+                    remark: value,
+                    allowMinus: minus,
+                    auditStatus: status,
+                    balanceCode: this.form.balanceCode
+                  })
+                }).then(response => {
+                  this.$message({
+                    message: response,
+                    type: 'success'
+                  })
+                  this.getData(this.currentPage, this.pageSize)
+                }).catch(response => {
+  
+                })
+            })
+        },
+        handleDel(id = null) {
+          let obj = this
+          this.$confirm(this.$t('financial.okDelData'), this.$t('common.hint'), {//'确定删除选定的数据?', '提示'
+            confirmButtonText: this.$t('common.confirm'),//确定
+            cancelButtonText: this.$t('common.cancel'),//取消
+            type: 'warning'
+          }).then(() => {
+            let selectedIds = []
+            if (id === null) {
+              for (let val of obj.multipleSelection) {
+                selectedIds.push(val.ID)
+              }
+            } else {
+              selectedIds.push(id)
+            }
+            return network.postData(`finance/balance-audit-delete`, {
+              selected: selectedIds
+            })
+          }).then(response => {
+            this.$message({
+              message: response,
+              type: 'success'
+            })
+            obj.getData(obj.currentPage, obj.pageSize)
+          }).catch(response => {
+  
+          })
+        },
+        handleSelectionChange(val) {
+          this.multipleSelection = val
+        },
+        handleCurrentChange(page) {
+          this.getData(page, this.pageSize)
+        },
+        handleSizeChange(pageSize) {
+          this.getData(this.currentPage, pageSize)
+        },
+        handleFilterStatusClick(tab, event) {
+          filterHelper.clearFilterOption(this)
+          this.getData()
+        },
+        handleFilterUser(filterData) {
+          filterHelper.handleFilterUser(this, filterData)
+        },
+        getData(page, pageSize) {
+          let filterData = this.filterModel
+          let vueObj=this
+          filterData.filterStatus = this.filterStatus != -1 ? `=,${this.filterStatus}` : ''
+          const paramsData = Object.assign({
+            page: (page === null || page == undefined) ? 1 : page,
+            pageSize: (pageSize === null || pageSize == undefined) ? vueObj.pageSize : pageSize
+          }, filterData)
+          balanceAuditList(paramsData).then(response => {
+            vueObj.tableHeaders = response.data.columnsShow ? response.data.columnsShow : []
+            vueObj.tableData = response.data.list
+            vueObj.filterTypes = response.data.filterTypes
+            vueObj.currentPage = page
+            vueObj.totalPages = parseInt(response.data.totalPages)
+            vueObj.totalCount = parseInt(response.data.totalCount)
+            vueObj.pageSize = pageSize
+            this.loading = false
+          }).catch(err => {
+            console.log('err=============' + err)
+            this.loading = false
+          })
+          // network.getPageData(this, 'finance/balance-audit-list', page, pageSize, filterData, function (response) {
+          //   vueObj.allData = response
+          //   vueObj.filterTypes = response.filterTypes
+          // })
+        },
+        handleExport(){
+          this.$confirm(this.$t('financial.exportNotice'), this.$t('common.hint'), {//`确定要导出当前数据吗?`, '提示',
+            confirmButtonText: this.$t('common.confirm'),//确定
+            cancelButtonText: this.$t('common.cancel'),//取消
+            type: 'warning'
+          }).then(() => {
+            return network.getData(`finance/balance-audit-list-export`, this.filterModel)
+          }).then(response => {
+            this.$message({
+              message: response,
+              type: 'success'
+            })
+          }).catch(response => {
+  
+          })
+        },
+      }
+    }
+  </script>
+  
+  <style scoped>
+  
+  </style>
+  

+ 1 - 1
vue.config.js

@@ -38,7 +38,7 @@ module.exports = {
     },
     proxy: {
       [process.env.VUE_APP_BASE_API]:{
-        target:"http://172.31.87.135:9970",
+        target:"http://172.24.124.135:9970",
         changeOrigin:true,
         pathRewrite:{
           ["^" + process.env.VUE_APP_BASE_API] : ""