|
@@ -5,140 +5,323 @@
|
|
|
<el-row class="top">
|
|
<el-row class="top">
|
|
|
<el-form v-model="queryFrom" size="small" label-width="95px" class="form">
|
|
<el-form v-model="queryFrom" size="small" label-width="95px" class="form">
|
|
|
<el-form-item label="账户类别" label-width="95px" prop="outerFlag">
|
|
<el-form-item label="账户类别" label-width="95px" prop="outerFlag">
|
|
|
- <el-select v-model="queryFrom.outerFlag" placeholder="请选择账户类别" clearable>
|
|
|
|
|
|
|
+ <el-select
|
|
|
|
|
+ v-model="queryFrom.outerFlag"
|
|
|
|
|
+ placeholder="请选择账户类别"
|
|
|
|
|
+ clearable
|
|
|
|
|
+ >
|
|
|
<el-option label="内部账户" value="0"></el-option>
|
|
<el-option label="内部账户" value="0"></el-option>
|
|
|
<el-option label="外部账户" value="1"></el-option>
|
|
<el-option label="外部账户" value="1"></el-option>
|
|
|
</el-select>
|
|
</el-select>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
<el-form-item label="户名" label-width="95px" prop="invCompanyName">
|
|
<el-form-item label="户名" label-width="95px" prop="invCompanyName">
|
|
|
- <el-input v-model="queryFrom.accountName" placeholder="请输入户名" class="widths" clearable></el-input>
|
|
|
|
|
|
|
+ <el-input
|
|
|
|
|
+ v-model="queryFrom.accountName"
|
|
|
|
|
+ placeholder="请输入户名"
|
|
|
|
|
+ class="widths"
|
|
|
|
|
+ clearable
|
|
|
|
|
+ ></el-input>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
<el-form-item label="银行卡号" label-width="95px" prop="invCompanyName">
|
|
<el-form-item label="银行卡号" label-width="95px" prop="invCompanyName">
|
|
|
- <el-input v-model="queryFrom.bankCardNum" placeholder="请输入银行卡号" class="widths" clearable></el-input>
|
|
|
|
|
|
|
+ <el-input
|
|
|
|
|
+ v-model="queryFrom.bankCardNum"
|
|
|
|
|
+ placeholder="请输入银行卡号"
|
|
|
|
|
+ class="widths"
|
|
|
|
|
+ clearable
|
|
|
|
|
+ ></el-input>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
<el-form-item>
|
|
<el-form-item>
|
|
|
- <kt-button label="查询" type="primary" perms="expenseManagement:accountInformation:query"
|
|
|
|
|
- @click="queryStaffInfo" />
|
|
|
|
|
|
|
+ <kt-button
|
|
|
|
|
+ label="查询"
|
|
|
|
|
+ type="primary"
|
|
|
|
|
+ perms="expenseManagement:accountInformation:query"
|
|
|
|
|
+ @click="queryStaffInfo"
|
|
|
|
|
+ />
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-form>
|
|
</el-form>
|
|
|
</el-row>
|
|
</el-row>
|
|
|
<!-- 新增 -->
|
|
<!-- 新增 -->
|
|
|
- <kt-button label="新增账户" type="primary" :plain="true" perms="expenseManagement:accountInformation:add"
|
|
|
|
|
- @click="addAmount" />
|
|
|
|
|
- <kt-button class="operation" label="费用支出明细导出" type="primary" :plain="true"
|
|
|
|
|
- perms="expenseManagement:accountInformation:expenseDetailsImport" @click="expentData" />
|
|
|
|
|
- <kt-button class="operation" label="账户信息导出" type="primary" :plain="true"
|
|
|
|
|
- perms="expenseManagement:accountInformation:accountInformationImport" @click="userInfoExpentData" />
|
|
|
|
|
|
|
+ <kt-button
|
|
|
|
|
+ label="新增账户"
|
|
|
|
|
+ type="primary"
|
|
|
|
|
+ :plain="true"
|
|
|
|
|
+ perms="expenseManagement:accountInformation:add"
|
|
|
|
|
+ @click="addAmount"
|
|
|
|
|
+ />
|
|
|
|
|
+ <kt-button
|
|
|
|
|
+ class="operation"
|
|
|
|
|
+ label="费用支出明细导出"
|
|
|
|
|
+ type="primary"
|
|
|
|
|
+ :plain="true"
|
|
|
|
|
+ perms="expenseManagement:accountInformation:expenseDetailsImport"
|
|
|
|
|
+ @click="expentData"
|
|
|
|
|
+ />
|
|
|
|
|
+ <kt-button
|
|
|
|
|
+ class="operation"
|
|
|
|
|
+ label="账户信息导出"
|
|
|
|
|
+ type="primary"
|
|
|
|
|
+ :plain="true"
|
|
|
|
|
+ perms="expenseManagement:accountInformation:accountInformationImport"
|
|
|
|
|
+ @click="userInfoExpentData"
|
|
|
|
|
+ />
|
|
|
<!-- 表格 -->
|
|
<!-- 表格 -->
|
|
|
- <el-table :data="accountData" border size="small" ref="account" :header-cell-style="{
|
|
|
|
|
- background: '#F2F7FC',
|
|
|
|
|
- fontWeight: '900',
|
|
|
|
|
- color: '#606266',
|
|
|
|
|
- }" height="600px" style="width: 100%; margin-top: 30px" @expand-change="handleRowChange">
|
|
|
|
|
|
|
+ <el-table
|
|
|
|
|
+ :data="accountData"
|
|
|
|
|
+ border
|
|
|
|
|
+ size="small"
|
|
|
|
|
+ ref="account"
|
|
|
|
|
+ :header-cell-style="{
|
|
|
|
|
+ background: '#F2F7FC',
|
|
|
|
|
+ fontWeight: '900',
|
|
|
|
|
+ color: '#606266',
|
|
|
|
|
+ }"
|
|
|
|
|
+ height="600px"
|
|
|
|
|
+ style="width: 100%; margin-top: 30px"
|
|
|
|
|
+ @expand-change="handleRowChange"
|
|
|
|
|
+ >
|
|
|
<el-table-column type="expand">
|
|
<el-table-column type="expand">
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
- <el-table :data="scope.row.invAccountCardList" size="small" :header-cell-style="{
|
|
|
|
|
- background: '#ccc',
|
|
|
|
|
- fontWeight: '900',
|
|
|
|
|
- color: '#606266',
|
|
|
|
|
- }" style="width: 100%">
|
|
|
|
|
- <el-table-column type="index" width="50" align="center" label="序号">
|
|
|
|
|
|
|
+ <el-table
|
|
|
|
|
+ :data="scope.row.invAccountCardList"
|
|
|
|
|
+ size="small"
|
|
|
|
|
+ :header-cell-style="{
|
|
|
|
|
+ background: '#ccc',
|
|
|
|
|
+ fontWeight: '900',
|
|
|
|
|
+ color: '#606266',
|
|
|
|
|
+ }"
|
|
|
|
|
+ style="width: 100%"
|
|
|
|
|
+ >
|
|
|
|
|
+ <el-table-column
|
|
|
|
|
+ type="index"
|
|
|
|
|
+ width="50"
|
|
|
|
|
+ align="center"
|
|
|
|
|
+ label="序号"
|
|
|
|
|
+ >
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
- <el-table-column v-for="(childItem, index) in childColums" :key="'child' + index" :prop="childItem.prop"
|
|
|
|
|
- align="center" :label="childItem.label" :min-width="childItem.minWidth">
|
|
|
|
|
|
|
+ <el-table-column
|
|
|
|
|
+ v-for="(childItem, index) in childColums"
|
|
|
|
|
+ :key="'child' + index"
|
|
|
|
|
+ :prop="childItem.prop"
|
|
|
|
|
+ align="center"
|
|
|
|
|
+ :label="childItem.label"
|
|
|
|
|
+ :min-width="childItem.minWidth"
|
|
|
|
|
+ >
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
- <el-table-column fixed="right" label="操作" align="center" width="300">
|
|
|
|
|
|
|
+ <el-table-column
|
|
|
|
|
+ fixed="right"
|
|
|
|
|
+ label="操作"
|
|
|
|
|
+ align="center"
|
|
|
|
|
+ width="300"
|
|
|
|
|
+ >
|
|
|
<template slot-scope="scopes">
|
|
<template slot-scope="scopes">
|
|
|
- <kt-button label="编辑" size="mini" perms="expenseManagement:accountInformation:bankCardUpdate"
|
|
|
|
|
- @click="childEdit(scopes.row)" />
|
|
|
|
|
- <kt-button label="删除" type="danger" size="mini"
|
|
|
|
|
- perms="expenseManagement:accountInformation:bankCardDelete" @click="cardDelete(scopes.row)" />
|
|
|
|
|
- <kt-button label="收入" type="success" size="mini"
|
|
|
|
|
|
|
+ <kt-button
|
|
|
|
|
+ label="编辑"
|
|
|
|
|
+ size="mini"
|
|
|
|
|
+ perms="expenseManagement:accountInformation:bankCardUpdate"
|
|
|
|
|
+ @click="childEdit(scopes.row)"
|
|
|
|
|
+ />
|
|
|
|
|
+ <kt-button
|
|
|
|
|
+ label="删除"
|
|
|
|
|
+ type="danger"
|
|
|
|
|
+ size="mini"
|
|
|
|
|
+ perms="expenseManagement:accountInformation:bankCardDelete"
|
|
|
|
|
+ @click="cardDelete(scopes.row)"
|
|
|
|
|
+ />
|
|
|
|
|
+ <kt-button
|
|
|
|
|
+ label="收入"
|
|
|
|
|
+ type="success"
|
|
|
|
|
+ size="mini"
|
|
|
perms="expenseManagement:accountInformation:bankCardIncome"
|
|
perms="expenseManagement:accountInformation:bankCardIncome"
|
|
|
- @click="handleTableIncome(scope.row, scopes.row)" />
|
|
|
|
|
- <kt-button label="支出" type="warning" size="mini"
|
|
|
|
|
- perms="expenseManagement:accountInformation:bankCardExpenses" @click="handleTableExpend(scopes.row)" />
|
|
|
|
|
|
|
+ @click="handleTableIncome(scope.row, scopes.row)"
|
|
|
|
|
+ />
|
|
|
|
|
+ <kt-button
|
|
|
|
|
+ label="支出"
|
|
|
|
|
+ type="warning"
|
|
|
|
|
+ size="mini"
|
|
|
|
|
+ perms="expenseManagement:accountInformation:bankCardExpenses"
|
|
|
|
|
+ @click="handleTableExpend(scopes.row)"
|
|
|
|
|
+ />
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
</el-table>
|
|
</el-table>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
- <el-table-column v-for="(dataItem, dataIndex) in columns" :key="dataIndex" :label="dataItem.label"
|
|
|
|
|
- :prop="dataItem.prop" :min-width="dataItem.minWidth" align="center">
|
|
|
|
|
|
|
+ <el-table-column
|
|
|
|
|
+ v-for="(dataItem, dataIndex) in columns"
|
|
|
|
|
+ :key="dataIndex"
|
|
|
|
|
+ :label="dataItem.label"
|
|
|
|
|
+ :prop="dataItem.prop"
|
|
|
|
|
+ :min-width="dataItem.minWidth"
|
|
|
|
|
+ align="center"
|
|
|
|
|
+ >
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
<el-table-column fixed="right" label="操作" align="center" width="240">
|
|
<el-table-column fixed="right" label="操作" align="center" width="240">
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
- <kt-button label="编辑" size="mini" perms="expenseManagement:accountInformation:update"
|
|
|
|
|
- @click.native.prevent="handleTableEdit(scope.row, scope)" />
|
|
|
|
|
- <kt-button label="删除" type="danger" size="mini" perms="expenseManagement:accountInformation:delete"
|
|
|
|
|
- @click.native.prevent="handleTableDelete(scope.row)" />
|
|
|
|
|
- <el-tooltip class="item" effect="dark" content="新增卡信息" placement="bottom-end">
|
|
|
|
|
- <kt-button label="新增" type="success" size="mini" perms="expenseManagement:accountInformation:bankCardAdd"
|
|
|
|
|
- @click.native.prevent="handleTableAdd(scope.row)" />
|
|
|
|
|
|
|
+ <kt-button
|
|
|
|
|
+ label="编辑"
|
|
|
|
|
+ size="mini"
|
|
|
|
|
+ perms="expenseManagement:accountInformation:update"
|
|
|
|
|
+ @click.native.prevent="handleTableEdit(scope.row, scope)"
|
|
|
|
|
+ />
|
|
|
|
|
+ <kt-button
|
|
|
|
|
+ label="删除"
|
|
|
|
|
+ type="danger"
|
|
|
|
|
+ size="mini"
|
|
|
|
|
+ perms="expenseManagement:accountInformation:delete"
|
|
|
|
|
+ @click.native.prevent="handleTableDelete(scope.row)"
|
|
|
|
|
+ />
|
|
|
|
|
+ <el-tooltip
|
|
|
|
|
+ class="item"
|
|
|
|
|
+ effect="dark"
|
|
|
|
|
+ content="新增卡信息"
|
|
|
|
|
+ placement="bottom-end"
|
|
|
|
|
+ >
|
|
|
|
|
+ <kt-button
|
|
|
|
|
+ label="新增"
|
|
|
|
|
+ type="success"
|
|
|
|
|
+ size="mini"
|
|
|
|
|
+ perms="expenseManagement:accountInformation:bankCardAdd"
|
|
|
|
|
+ @click.native.prevent="handleTableAdd(scope.row)"
|
|
|
|
|
+ />
|
|
|
</el-tooltip>
|
|
</el-tooltip>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
</el-table>
|
|
</el-table>
|
|
|
- <el-pagination @size-change="handleSizeChange" layout="total, sizes, prev, pager, next, jumper"
|
|
|
|
|
- @current-change="refreshPageRequest" :current-page="pageRequest.pageNo" :page-size="pageRequest.pageSize"
|
|
|
|
|
- :page-sizes="[20, 50, 100, 200, 300, 400, 500]" :total="pageRequest.totalSize"
|
|
|
|
|
- style="float: left; margin-left: 20px; margin-top: 20px">
|
|
|
|
|
|
|
+ <el-pagination
|
|
|
|
|
+ @size-change="handleSizeChange"
|
|
|
|
|
+ layout="total, sizes, prev, pager, next, jumper"
|
|
|
|
|
+ @current-change="refreshPageRequest"
|
|
|
|
|
+ :current-page="pageRequest.pageNo"
|
|
|
|
|
+ :page-size="pageRequest.pageSize"
|
|
|
|
|
+ :page-sizes="[20, 50, 100, 200, 300, 400, 500]"
|
|
|
|
|
+ :total="pageRequest.totalSize"
|
|
|
|
|
+ style="float: left; margin-left: 20px; margin-top: 20px"
|
|
|
|
|
+ >
|
|
|
</el-pagination>
|
|
</el-pagination>
|
|
|
<!-- 新增修改弹框 -->
|
|
<!-- 新增修改弹框 -->
|
|
|
- <expense-component ref="expenseComponent" :type="type" :formData="type == 1 ? accountFormData : accountCardFormData"
|
|
|
|
|
- :formDataId="formDataId" :title="title" :dialogFormVisible="dialogFormVisible"
|
|
|
|
|
- :nature_businessData="nature_businessData" @resetForm="resetForm" @submitForm="submitForm"
|
|
|
|
|
- @setDateInterval="setDateInterval"></expense-component>
|
|
|
|
|
|
|
+ <expense-component
|
|
|
|
|
+ ref="expenseComponent"
|
|
|
|
|
+ :type="type"
|
|
|
|
|
+ :formData="type == 1 ? accountFormData : accountCardFormData"
|
|
|
|
|
+ :formDataId="formDataId"
|
|
|
|
|
+ :title="title"
|
|
|
|
|
+ :dialogFormVisible="dialogFormVisible"
|
|
|
|
|
+ :nature_businessData="nature_businessData"
|
|
|
|
|
+ @resetForm="resetForm"
|
|
|
|
|
+ @submitForm="submitForm"
|
|
|
|
|
+ @setDateInterval="setDateInterval"
|
|
|
|
|
+ ></expense-component>
|
|
|
<!-- 支出弹框 -->
|
|
<!-- 支出弹框 -->
|
|
|
- <el-dialog class="dialog expendDialog" title="支出信息" :close-on-click-modal="false" :before-close="expendResetForm"
|
|
|
|
|
- :visible.sync="expendDialogVisible" width="60%">
|
|
|
|
|
|
|
+ <el-dialog
|
|
|
|
|
+ class="dialog expendDialog"
|
|
|
|
|
+ title="支出信息"
|
|
|
|
|
+ :close-on-click-modal="false"
|
|
|
|
|
+ :before-close="expendResetForm"
|
|
|
|
|
+ :visible.sync="expendDialogVisible"
|
|
|
|
|
+ width="60%"
|
|
|
|
|
+ >
|
|
|
<!-- 支出表格 -->
|
|
<!-- 支出表格 -->
|
|
|
- <kt-common-table :operationWidth="130" class="ktTable expendTable" ref="expendTable" :data="expendPageResult"
|
|
|
|
|
- :columns="expendColumns" :showBatchDelete="false" :showOperation="true" :button1Name="expendButton1Name"
|
|
|
|
|
- permsButton1="expenseManagement:accountInformation:changeStatus" button2Background="#92D050"
|
|
|
|
|
- button3Background="#f56c6c" button1Icon="el-icon-s-finance" @handleButton1="handleTableConfirm($event)"
|
|
|
|
|
- @findPage="getExpendData" :isshowpagination="true"></kt-common-table>
|
|
|
|
|
|
|
+ <kt-common-table
|
|
|
|
|
+ :operationWidth="130"
|
|
|
|
|
+ class="ktTable expendTable"
|
|
|
|
|
+ ref="expendTable"
|
|
|
|
|
+ :data="expendPageResult"
|
|
|
|
|
+ :columns="expendColumns"
|
|
|
|
|
+ :showBatchDelete="false"
|
|
|
|
|
+ :showOperation="true"
|
|
|
|
|
+ :button1Name="expendButton1Name"
|
|
|
|
|
+ permsButton1="expenseManagement:accountInformation:changeStatus"
|
|
|
|
|
+ button2Background="#92D050"
|
|
|
|
|
+ button3Background="#f56c6c"
|
|
|
|
|
+ button1Icon="el-icon-s-finance"
|
|
|
|
|
+ @handleButton1="handleTableConfirm($event)"
|
|
|
|
|
+ @findPage="getExpendData"
|
|
|
|
|
+ :isshowpagination="true"
|
|
|
|
|
+ ></kt-common-table>
|
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
<!-- 收入弹框 -->
|
|
<!-- 收入弹框 -->
|
|
|
- <el-dialog class="dialog expendDialog" title="收入信息" :close-on-click-modal="false" :before-close="incomeResetForm"
|
|
|
|
|
- :visible.sync="incomeDialogVisible" width="60%">
|
|
|
|
|
- <el-form :model="inComeFormData" :rules="inComeFormRules" ref="inComeFormData" label-width="130px" size="small"
|
|
|
|
|
- class="inComeForm">
|
|
|
|
|
|
|
+ <el-dialog
|
|
|
|
|
+ class="dialog expendDialog"
|
|
|
|
|
+ title="收入信息"
|
|
|
|
|
+ :close-on-click-modal="false"
|
|
|
|
|
+ :before-close="incomeResetForm"
|
|
|
|
|
+ :visible.sync="incomeDialogVisible"
|
|
|
|
|
+ width="60%"
|
|
|
|
|
+ >
|
|
|
|
|
+ <el-form
|
|
|
|
|
+ :model="inComeFormData"
|
|
|
|
|
+ :rules="inComeFormRules"
|
|
|
|
|
+ ref="inComeFormData"
|
|
|
|
|
+ label-width="130px"
|
|
|
|
|
+ size="small"
|
|
|
|
|
+ class="inComeForm"
|
|
|
|
|
+ >
|
|
|
<el-row>
|
|
<el-row>
|
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
|
<el-form-item label="转账方" prop="company">
|
|
<el-form-item label="转账方" prop="company">
|
|
|
- <el-select v-model="inComeFormData.company" filterable placeholder="" @change="companyChange">
|
|
|
|
|
- <el-option v-for="item in collectionData" :key="item.bankCardNum" :label="item.name"
|
|
|
|
|
- :value="item.nameValue">
|
|
|
|
|
|
|
+ <el-select
|
|
|
|
|
+ v-model="inComeFormData.company"
|
|
|
|
|
+ filterable
|
|
|
|
|
+ placeholder=""
|
|
|
|
|
+ @change="companyChange"
|
|
|
|
|
+ >
|
|
|
|
|
+ <el-option
|
|
|
|
|
+ v-for="item in collectionData"
|
|
|
|
|
+ :key="item.bankCardNum"
|
|
|
|
|
+ :label="item.name"
|
|
|
|
|
+ :value="item.nameValue"
|
|
|
|
|
+ >
|
|
|
</el-option>
|
|
</el-option>
|
|
|
</el-select>
|
|
</el-select>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
|
<el-form-item label="收款方" prop="collectionMessage">
|
|
<el-form-item label="收款方" prop="collectionMessage">
|
|
|
- <el-input disabled v-model="inComeFormData.collectionMessage" autocomplete="off"></el-input>
|
|
|
|
|
|
|
+ <el-input
|
|
|
|
|
+ disabled
|
|
|
|
|
+ v-model="inComeFormData.collectionMessage"
|
|
|
|
|
+ autocomplete="off"
|
|
|
|
|
+ ></el-input>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
</el-row>
|
|
</el-row>
|
|
|
<el-row>
|
|
<el-row>
|
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
|
<el-form-item label="金额" prop="outerFlag">
|
|
<el-form-item label="金额" prop="outerFlag">
|
|
|
- <el-input-number v-model="inComeFormData.applyAmount" :min="0" :precision="2" @blur="chageAppl"
|
|
|
|
|
- :max="99999999999999999" label=""></el-input-number>
|
|
|
|
|
|
|
+ <el-input-number
|
|
|
|
|
+ v-model="inComeFormData.applyAmount"
|
|
|
|
|
+ :min="0"
|
|
|
|
|
+ :precision="2"
|
|
|
|
|
+ @blur="chageAppl"
|
|
|
|
|
+ :max="99999999999999999"
|
|
|
|
|
+ label=""
|
|
|
|
|
+ ></el-input-number>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
|
<el-form-item label="大写金额" prop="bigApplyAmount">
|
|
<el-form-item label="大写金额" prop="bigApplyAmount">
|
|
|
- <el-input v-model="inComeFormData.bigApplyAmount" disabled autocomplete="off"></el-input>
|
|
|
|
|
|
|
+ <el-input
|
|
|
|
|
+ v-model="inComeFormData.bigApplyAmount"
|
|
|
|
|
+ disabled
|
|
|
|
|
+ autocomplete="off"
|
|
|
|
|
+ ></el-input>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
</el-row>
|
|
</el-row>
|
|
|
<el-row class="collec">
|
|
<el-row class="collec">
|
|
|
<el-col :span="24">
|
|
<el-col :span="24">
|
|
|
<el-form-item label="资金流向" style="width: 100%">
|
|
<el-form-item label="资金流向" style="width: 100%">
|
|
|
- <el-input v-model="inComeFormData.company" disabled autocomplete="off"></el-input>
|
|
|
|
|
|
|
+ <el-input
|
|
|
|
|
+ v-model="inComeFormData.company"
|
|
|
|
|
+ disabled
|
|
|
|
|
+ autocomplete="off"
|
|
|
|
|
+ ></el-input>
|
|
|
<i class="el-icon-right"></i>
|
|
<i class="el-icon-right"></i>
|
|
|
- <el-input disabled v-model="inComeFormData.collectionMessage" autocomplete="off"></el-input>
|
|
|
|
|
|
|
+ <el-input
|
|
|
|
|
+ disabled
|
|
|
|
|
+ v-model="inComeFormData.collectionMessage"
|
|
|
|
|
+ autocomplete="off"
|
|
|
|
|
+ ></el-input>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col :span="12"> </el-col>
|
|
<el-col :span="12"> </el-col>
|
|
@@ -146,21 +329,39 @@
|
|
|
<el-row>
|
|
<el-row>
|
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
|
<el-form-item label="支付方式" prop="payMethod">
|
|
<el-form-item label="支付方式" prop="payMethod">
|
|
|
- <el-select v-model="inComeFormData.payMethod" multiple placeholder="">
|
|
|
|
|
- <el-option v-for="item in payment_methodsData" :key="item.value" :label="item.label" :value="item.value">
|
|
|
|
|
|
|
+ <el-select
|
|
|
|
|
+ v-model="inComeFormData.payMethod"
|
|
|
|
|
+ multiple
|
|
|
|
|
+ placeholder=""
|
|
|
|
|
+ >
|
|
|
|
|
+ <el-option
|
|
|
|
|
+ v-for="item in payment_methodsData"
|
|
|
|
|
+ :key="item.value"
|
|
|
|
|
+ :label="item.label"
|
|
|
|
|
+ :value="item.value"
|
|
|
|
|
+ >
|
|
|
</el-option>
|
|
</el-option>
|
|
|
</el-select>
|
|
</el-select>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
|
<el-form-item label="资金用途" prop="fundUse">
|
|
<el-form-item label="资金用途" prop="fundUse">
|
|
|
- <el-cascader v-model="inComeFormData.fundUse" :show-all-levels="true" :clearable="true"
|
|
|
|
|
- :checkStrictly="true" :emitPath="false" placeholder="" :options="fundFlowData" filterable :props="{
|
|
|
|
|
|
|
+ <el-cascader
|
|
|
|
|
+ v-model="inComeFormData.fundUse"
|
|
|
|
|
+ :show-all-levels="true"
|
|
|
|
|
+ :clearable="true"
|
|
|
|
|
+ :checkStrictly="true"
|
|
|
|
|
+ :emitPath="false"
|
|
|
|
|
+ placeholder=""
|
|
|
|
|
+ :options="fundFlowData"
|
|
|
|
|
+ filterable
|
|
|
|
|
+ :props="{
|
|
|
children: 'child',
|
|
children: 'child',
|
|
|
label: 'category',
|
|
label: 'category',
|
|
|
value: 'category',
|
|
value: 'category',
|
|
|
checkStrictly: false,
|
|
checkStrictly: false,
|
|
|
- }"></el-cascader>
|
|
|
|
|
|
|
+ }"
|
|
|
|
|
+ ></el-cascader>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
</el-row>
|
|
</el-row>
|
|
@@ -174,24 +375,44 @@
|
|
|
</el-row>
|
|
</el-row>
|
|
|
<el-row class="profit_box">
|
|
<el-row class="profit_box">
|
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
|
- <el-form-item v-for="item in affiliationData2" :key="item.profitId + 'sr'" :label="item.profitName"
|
|
|
|
|
- prop="entProfit">
|
|
|
|
|
- <el-input-number v-model="item.profit" :min="0" placeholder="请输入利润" :max="99999999999999"
|
|
|
|
|
- label=""></el-input-number>
|
|
|
|
|
|
|
+ <el-form-item
|
|
|
|
|
+ v-for="item in affiliationData2"
|
|
|
|
|
+ :key="item.profitId + 'sr'"
|
|
|
|
|
+ :label="item.profitName"
|
|
|
|
|
+ prop="entProfit"
|
|
|
|
|
+ >
|
|
|
|
|
+ <el-input-number
|
|
|
|
|
+ v-model="item.profit"
|
|
|
|
|
+ :min="0"
|
|
|
|
|
+ placeholder="请输入利润"
|
|
|
|
|
+ :max="99999999999999"
|
|
|
|
|
+ label=""
|
|
|
|
|
+ ></el-input-number>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
|
- <el-form-item v-for="item in affiliationData" :key="item.profitId + 'zc'" :label="item.profitName"
|
|
|
|
|
- prop="entProfit">
|
|
|
|
|
- <el-input-number v-model="item.profit" :min="0" placeholder="请输入利润" :max="99999999999999"
|
|
|
|
|
- label=""></el-input-number>
|
|
|
|
|
|
|
+ <el-form-item
|
|
|
|
|
+ v-for="item in affiliationData"
|
|
|
|
|
+ :key="item.profitId + 'zc'"
|
|
|
|
|
+ :label="item.profitName"
|
|
|
|
|
+ prop="entProfit"
|
|
|
|
|
+ >
|
|
|
|
|
+ <el-input-number
|
|
|
|
|
+ v-model="item.profit"
|
|
|
|
|
+ :min="0"
|
|
|
|
|
+ placeholder="请输入利润"
|
|
|
|
|
+ :max="99999999999999"
|
|
|
|
|
+ label=""
|
|
|
|
|
+ ></el-input-number>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
</el-row>
|
|
</el-row>
|
|
|
</el-form>
|
|
</el-form>
|
|
|
<div slot="footer" class="dialog-footer">
|
|
<div slot="footer" class="dialog-footer">
|
|
|
<el-button @click="incomeResetForm()" size="small">取 消</el-button>
|
|
<el-button @click="incomeResetForm()" size="small">取 消</el-button>
|
|
|
- <el-button type="primary" @click="submitIncomeForm()" size="small">确 定</el-button>
|
|
|
|
|
|
|
+ <el-button type="primary" @click="submitIncomeForm()" size="small"
|
|
|
|
|
+ >确 定</el-button
|
|
|
|
|
+ >
|
|
|
</div>
|
|
</div>
|
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
<el-dialog
|
|
<el-dialog
|
|
@@ -206,7 +427,13 @@
|
|
|
<el-radio :label="0">全部</el-radio>
|
|
<el-radio :label="0">全部</el-radio>
|
|
|
<el-radio :label="1">部分支出</el-radio>
|
|
<el-radio :label="1">部分支出</el-radio>
|
|
|
</el-radio-group>
|
|
</el-radio-group>
|
|
|
- <el-input v-show="expendRadio" v-model="payOutAmount" placeholder="请输入支出金额" style="width: 200px;margin-left: 20px;" size="small"></el-input>
|
|
|
|
|
|
|
+ <el-input
|
|
|
|
|
+ v-show="expendRadio"
|
|
|
|
|
+ v-model="payOutAmount"
|
|
|
|
|
+ placeholder="请输入支出金额"
|
|
|
|
|
+ style="width: 200px; margin-left: 20px"
|
|
|
|
|
+ size="small"
|
|
|
|
|
+ ></el-input>
|
|
|
</div>
|
|
</div>
|
|
|
<div slot="footer" class="dialog-footer">
|
|
<div slot="footer" class="dialog-footer">
|
|
|
<el-button @click="closeExpenditure" size="small">取 消</el-button>
|
|
<el-button @click="closeExpenditure" size="small">取 消</el-button>
|
|
@@ -236,11 +463,11 @@ export default {
|
|
|
this.business("nature_business"); //营业性质字典
|
|
this.business("nature_business"); //营业性质字典
|
|
|
this.getTreeList(); //获取资金用途字典
|
|
this.getTreeList(); //获取资金用途字典
|
|
|
},
|
|
},
|
|
|
- mounted() { },
|
|
|
|
|
|
|
+ mounted() {},
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
expenditureRow: {},
|
|
expenditureRow: {},
|
|
|
- payOutAmount: 0, // 已转金额
|
|
|
|
|
|
|
+ payOutAmount: 0, // 已转金额
|
|
|
expendRadio: 0,
|
|
expendRadio: 0,
|
|
|
expenditureVisible: false,
|
|
expenditureVisible: false,
|
|
|
type: 1, //1为账户信息,2为卡信息 账户和卡判断条件
|
|
type: 1, //1为账户信息,2为卡信息 账户和卡判断条件
|
|
@@ -510,6 +737,7 @@ export default {
|
|
|
owned: "", //所属地
|
|
owned: "", //所属地
|
|
|
biller: "", //开票员
|
|
biller: "", //开票员
|
|
|
tentativeEstimates: "", //暂估值
|
|
tentativeEstimates: "", //暂估值
|
|
|
|
|
+ simpleName: "", //账户简称
|
|
|
},
|
|
},
|
|
|
//账户卡信息form
|
|
//账户卡信息form
|
|
|
accountCardFormData: {
|
|
accountCardFormData: {
|
|
@@ -842,41 +1070,44 @@ export default {
|
|
|
},
|
|
},
|
|
|
// 确定支出
|
|
// 确定支出
|
|
|
submitFormExpend() {
|
|
submitFormExpend() {
|
|
|
- const num = this.expenditureRow.applyAmount - this.expenditureRow.payoutAmount
|
|
|
|
|
|
|
+ const num =
|
|
|
|
|
+ this.expenditureRow.applyAmount - this.expenditureRow.payoutAmount;
|
|
|
if (num == 0) {
|
|
if (num == 0) {
|
|
|
- this.$message.error('支出金额不足')
|
|
|
|
|
- return
|
|
|
|
|
|
|
+ this.$message.error("支出金额不足");
|
|
|
|
|
+ return;
|
|
|
}
|
|
}
|
|
|
if (this.payOutAmount > num) {
|
|
if (this.payOutAmount > num) {
|
|
|
- this.$message.error('支出金额不足')
|
|
|
|
|
- return
|
|
|
|
|
|
|
+ this.$message.error("支出金额不足");
|
|
|
|
|
+ return;
|
|
|
}
|
|
}
|
|
|
if (!this.expendRadio) {
|
|
if (!this.expendRadio) {
|
|
|
- this.payOutAmount = num
|
|
|
|
|
|
|
+ this.payOutAmount = num;
|
|
|
}
|
|
}
|
|
|
- this.$api.expense.updateExpenditure({
|
|
|
|
|
- excelAccountOperateId: this.expenditureRow.excelAccountOperateId,
|
|
|
|
|
- payOutAmount: this.payOutAmount
|
|
|
|
|
- }).then((res) => {
|
|
|
|
|
- if (res.code == 200) {
|
|
|
|
|
- this.$message.success('支出成功')
|
|
|
|
|
- this.queryStaffInfo()
|
|
|
|
|
- this.closeExpenditure()
|
|
|
|
|
- } else {
|
|
|
|
|
- this.$message.error(res.msg)
|
|
|
|
|
- }
|
|
|
|
|
- })
|
|
|
|
|
|
|
+ this.$api.expense
|
|
|
|
|
+ .updateExpenditure({
|
|
|
|
|
+ excelAccountOperateId: this.expenditureRow.excelAccountOperateId,
|
|
|
|
|
+ payOutAmount: this.payOutAmount,
|
|
|
|
|
+ })
|
|
|
|
|
+ .then((res) => {
|
|
|
|
|
+ if (res.code == 200) {
|
|
|
|
|
+ this.$message.success("支出成功");
|
|
|
|
|
+ this.queryStaffInfo();
|
|
|
|
|
+ this.closeExpenditure();
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.$message.error(res.msg);
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
},
|
|
},
|
|
|
closeExpenditure() {
|
|
closeExpenditure() {
|
|
|
- this.expenditureRow = {}
|
|
|
|
|
- this.payOutAmount = 0
|
|
|
|
|
- this.expendRadio = 0
|
|
|
|
|
- this.expenditureVisible = false
|
|
|
|
|
|
|
+ this.expenditureRow = {};
|
|
|
|
|
+ this.payOutAmount = 0;
|
|
|
|
|
+ this.expendRadio = 0;
|
|
|
|
|
+ this.expenditureVisible = false;
|
|
|
},
|
|
},
|
|
|
//弹框确认支出按钮事件
|
|
//弹框确认支出按钮事件
|
|
|
handleTableConfirm(e) {
|
|
handleTableConfirm(e) {
|
|
|
- this.expenditureRow = e.row
|
|
|
|
|
- this.expenditureVisible = true
|
|
|
|
|
|
|
+ this.expenditureRow = e.row;
|
|
|
|
|
+ this.expenditureVisible = true;
|
|
|
// this.$confirm("确认把该条数据设为已转账状态吗?", "提示", {
|
|
// this.$confirm("确认把该条数据设为已转账状态吗?", "提示", {
|
|
|
// type: "warning",
|
|
// type: "warning",
|
|
|
// })
|
|
// })
|
|
@@ -906,7 +1137,7 @@ export default {
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
//获取支出页面列表数据
|
|
//获取支出页面列表数据
|
|
|
- expendFindPage(data) { },
|
|
|
|
|
|
|
+ expendFindPage(data) {},
|
|
|
//获取页面列表数据
|
|
//获取页面列表数据
|
|
|
findPage(data) {
|
|
findPage(data) {
|
|
|
if (data && data.pageRequest) {
|
|
if (data && data.pageRequest) {
|
|
@@ -997,7 +1228,7 @@ export default {
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
})
|
|
})
|
|
|
- .catch(() => { });
|
|
|
|
|
|
|
+ .catch(() => {});
|
|
|
},
|
|
},
|
|
|
//账户删除数据事件
|
|
//账户删除数据事件
|
|
|
handleTableDelete(row) {
|
|
handleTableDelete(row) {
|
|
@@ -1014,7 +1245,7 @@ export default {
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
})
|
|
})
|
|
|
- .catch(() => { });
|
|
|
|
|
|
|
+ .catch(() => {});
|
|
|
},
|
|
},
|
|
|
//收入弹框取消重置
|
|
//收入弹框取消重置
|
|
|
incomeResetForm() {
|
|
incomeResetForm() {
|
|
@@ -1261,11 +1492,11 @@ export default {
|
|
|
left: 0; */
|
|
left: 0; */
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-.addremove-box>i {
|
|
|
|
|
|
|
+.addremove-box > i {
|
|
|
cursor: pointer;
|
|
cursor: pointer;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-.frame>>>.el-date-editor {
|
|
|
|
|
|
|
+.frame >>> .el-date-editor {
|
|
|
width: 100%;
|
|
width: 100%;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -1273,40 +1504,40 @@ export default {
|
|
|
width: 200px;
|
|
width: 200px;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-.ktTable>>>.el-button span {
|
|
|
|
|
|
|
+.ktTable >>> .el-button span {
|
|
|
margin-left: 0;
|
|
margin-left: 0;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-.expendTable>>>.bottomFixed {
|
|
|
|
|
|
|
+.expendTable >>> .bottomFixed {
|
|
|
position: static;
|
|
position: static;
|
|
|
margin-top: 20px;
|
|
margin-top: 20px;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-.expendTable>>>.el-table {
|
|
|
|
|
|
|
+.expendTable >>> .el-table {
|
|
|
height: 400px !important;
|
|
height: 400px !important;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-.expendDialog>>>.el-dialog__body {
|
|
|
|
|
|
|
+.expendDialog >>> .el-dialog__body {
|
|
|
overflow-y: auto;
|
|
overflow-y: auto;
|
|
|
height: 500px;
|
|
height: 500px;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-.collec>>>.el-form-item__content {
|
|
|
|
|
|
|
+.collec >>> .el-form-item__content {
|
|
|
display: flex;
|
|
display: flex;
|
|
|
align-items: center;
|
|
align-items: center;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-.inComeForm>>>.el-input-number__decrease,
|
|
|
|
|
-.inComeForm>>>.el-input-number__increase {
|
|
|
|
|
|
|
+.inComeForm >>> .el-input-number__decrease,
|
|
|
|
|
+.inComeForm >>> .el-input-number__increase {
|
|
|
display: none;
|
|
display: none;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-.inComeForm>>>.el-input-number,
|
|
|
|
|
-.inComeForm>>>.el-cascader {
|
|
|
|
|
|
|
+.inComeForm >>> .el-input-number,
|
|
|
|
|
+.inComeForm >>> .el-cascader {
|
|
|
width: 100%;
|
|
width: 100%;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-.inComeForm>>>.el-input.is-disabled .el-input__inner {
|
|
|
|
|
|
|
+.inComeForm >>> .el-input.is-disabled .el-input__inner {
|
|
|
background-color: #fff;
|
|
background-color: #fff;
|
|
|
color: #606266;
|
|
color: #606266;
|
|
|
}
|
|
}
|
|
@@ -1316,11 +1547,11 @@ export default {
|
|
|
font-size: 20px;
|
|
font-size: 20px;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-.ktTable>>>.cell .el-button {
|
|
|
|
|
|
|
+.ktTable >>> .cell .el-button {
|
|
|
width: 80px;
|
|
width: 80px;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-.expendDialog>>>.cell .el-button {
|
|
|
|
|
|
|
+.expendDialog >>> .cell .el-button {
|
|
|
width: auto;
|
|
width: auto;
|
|
|
}
|
|
}
|
|
|
|
|
|