2024-06-15 14:04:16 +00:00
|
|
|
|
<template>
|
|
|
|
|
|
<XdPageContainer class="app-container">
|
|
|
|
|
|
<SearchForm slot="pageHeader" :model="queryParams" ref="queryForm" size="mini" :maxShow="10" label-width="68px" v-show="showSearch" @search="handleQuery" @reset="resetQuery">
|
|
|
|
|
|
<!-- :search="" -->
|
|
|
|
|
|
<el-form-item :label="$t('财务中心')" prop="centerCode">
|
|
|
|
|
|
<EmisSiteSimplePicker1 :placeholder="$t('财务中心')" v-model="queryParams.centerCode" :siteType="2" :isInitiated="true" ></EmisSiteSimplePicker1>
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
<el-form-item :label="$t('网点名称')" prop="siteCode">
|
|
|
|
|
|
<EmisSiteSimplePicker2 :placeholder="$t('网点名称')" v-model="queryParams.siteCode" :isInitiated="true" ></EmisSiteSimplePicker2>
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
|
|
|
|
<el-form-item :label="$t('币种')" prop="currency">
|
|
|
|
|
|
<el-select v-model="queryParams.currency" clearable filterable placeholder="请选择币种" disabled>
|
|
|
|
|
|
<el-option
|
|
|
|
|
|
v-for="dict in dict.type.sys_currency_type"
|
|
|
|
|
|
:key="dict.value"
|
|
|
|
|
|
:label="dict.label"
|
|
|
|
|
|
:value="dict.value"
|
|
|
|
|
|
></el-option>
|
|
|
|
|
|
</el-select>
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
<el-form-item :label="$t('启用状态')" prop="blOpen">
|
|
|
|
|
|
<el-select v-model="queryParams.blOpen" clearable filterable placeholder="启用状态" >
|
|
|
|
|
|
<el-option :key="1" label="启用" :value="1" ></el-option>
|
|
|
|
|
|
<el-option :key="0" label="停用" :value="0" ></el-option>
|
|
|
|
|
|
|
|
|
|
|
|
</el-select>
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</SearchForm>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<XdTable
|
|
|
|
|
|
slot="pageContent"
|
|
|
|
|
|
slot-scope="slotProps"
|
|
|
|
|
|
:height="(slotProps.contentHeight)+'px'"
|
|
|
|
|
|
|
2024-06-23 07:22:16 +00:00
|
|
|
|
storageName="prepaymentBalanceInquiry"
|
2024-06-15 14:04:16 +00:00
|
|
|
|
v-loading="loading"
|
2024-06-24 01:22:55 +00:00
|
|
|
|
border
|
2024-06-15 14:04:16 +00:00
|
|
|
|
size="mini"
|
|
|
|
|
|
:data="emisSiteAccountList"
|
|
|
|
|
|
:showSearch.sync="showSearch"
|
|
|
|
|
|
:queryParams="queryParams"
|
|
|
|
|
|
:total="total"
|
|
|
|
|
|
@queryTable="getList"
|
|
|
|
|
|
@selection-change="handleSelectionChange"
|
|
|
|
|
|
@sort-change="handleSortChange"
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
|
|
|
|
<div slot="toolbar">
|
|
|
|
|
|
<el-row :gutter="10" class="mb8">
|
|
|
|
|
|
<el-col :span="1.5">
|
|
|
|
|
|
<el-button
|
|
|
|
|
|
type="warning"
|
|
|
|
|
|
plain
|
|
|
|
|
|
icon="el-icon-download"
|
|
|
|
|
|
size="mini"
|
|
|
|
|
|
@click="handleExport"
|
|
|
|
|
|
v-hasPermi="['emis:emisSiteAccount:export']"
|
|
|
|
|
|
>导出</el-button>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<el-table-column type="selection" width="55" align="center" />
|
|
|
|
|
|
<el-table-column :label="$t('账户编号')" align="center" prop="accCode" min-width="100" :show-overflow-tooltip="true" />
|
|
|
|
|
|
<el-table-column :label="$t('中心名称')" align="center" prop="centerName" min-width="100" :show-overflow-tooltip="true"/>
|
|
|
|
|
|
<el-table-column :label="$t('网点名称')" align="center" prop="siteName" min-width="100" :show-overflow-tooltip="true"/>
|
|
|
|
|
|
<el-table-column :label="$t('目前结算余额')" align="center" prop="curMoney" min-width="140" :show-overflow-tooltip="true"/>
|
|
|
|
|
|
<el-table-column :label="$t('真实结算金额')" align="center" prop="confirmMoney" min-width="140" />
|
|
|
|
|
|
<!-- <el-table-column :label="$t('冻结余额')" align="center" prop="frozenMoney" min-width="100" /> -->
|
|
|
|
|
|
<el-table-column :label="$t('警戒结算金额')" align="center" prop="watchMoney" min-width="140" />
|
|
|
|
|
|
<el-table-column :label="$t('关闭结算金额')" align="center" prop="closeMoney" min-width="140" />
|
|
|
|
|
|
<el-table-column label="启用状态" align="center" prop="blOpen" min-width="100" >
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
<el-tag v-if="scope.row.blOpen==1" type="success">启用</el-tag>
|
|
|
|
|
|
<el-tag v-if="scope.row.blOpen==0" type="danger">停用</el-tag>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
<el-table-column :label="$t('开户日期')" align="center" prop="startDate" min-width="170" />
|
|
|
|
|
|
<!-- <el-table-column :label="$t('创建站点')" align="center" prop="createSiteName" min-width="100" />
|
|
|
|
|
|
<el-table-column :label="$t('创建人')" align="center" prop="createByName" min-width="100" />
|
|
|
|
|
|
<el-table-column :label="$t('创建时间')" align="center" prop="createTime" min-width="170" /> -->
|
|
|
|
|
|
<el-table-column :label="$t('修改人')" align="center" prop="updateByName" min-width="100" />
|
|
|
|
|
|
<el-table-column :label="$t('修改站点')" align="center" prop="updateSiteName" min-width="100" />
|
|
|
|
|
|
<el-table-column :label="$t('修改时间')" align="center" prop="updateTime" min-width="170" />
|
|
|
|
|
|
<el-table-column :label="$t('备注')" align="center" prop="remark" min-width="100" :show-overflow-tooltip="true" />
|
|
|
|
|
|
|
|
|
|
|
|
</XdTable>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</XdPageContainer>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
|
import { listEmisSiteAccount, getEmisSiteAccount, delEmisSiteAccount, addEmisSiteAccount, updateEmisSiteAccount } from "@/api/emis/emisSiteAccount";
|
|
|
|
|
|
import elDateSimplePicker from '@/components/DatePickerAdv/elDateSimplePicker';
|
|
|
|
|
|
import EmisSiteSimplePicker1 from '@/views/emis/EmisBaseTools/EmisSiteSimplePicker.vue';
|
|
|
|
|
|
import EmisSiteSimplePicker2 from '@/views/emis/EmisBaseTools/EmisSiteSimplePicker.vue';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
|
name: "PrepaymentBalanceInquiry",
|
|
|
|
|
|
components: { elDateSimplePicker,EmisSiteSimplePicker1,EmisSiteSimplePicker2 },
|
|
|
|
|
|
dicts: [
|
|
|
|
|
|
],
|
|
|
|
|
|
data() {
|
|
|
|
|
|
return {
|
|
|
|
|
|
// 遮罩层
|
|
|
|
|
|
loading: true,
|
|
|
|
|
|
// 选中数组
|
|
|
|
|
|
ids: [],
|
|
|
|
|
|
// 非单个禁用
|
|
|
|
|
|
single: true,
|
|
|
|
|
|
// 非多个禁用
|
|
|
|
|
|
multiple: true,
|
|
|
|
|
|
// 显示搜索条件
|
|
|
|
|
|
showSearch: true,
|
|
|
|
|
|
// 创建时间搜索
|
|
|
|
|
|
dateTimeRange:[],
|
|
|
|
|
|
// 总条数
|
|
|
|
|
|
total: 0,
|
|
|
|
|
|
// 网点结算账户表格数据
|
|
|
|
|
|
emisSiteAccountList: [],
|
|
|
|
|
|
|
|
|
|
|
|
currentId:null,
|
|
|
|
|
|
openForm: false,
|
|
|
|
|
|
titleForm: "",
|
|
|
|
|
|
|
|
|
|
|
|
// 弹出展示层
|
|
|
|
|
|
id:null,
|
|
|
|
|
|
titleView:"",
|
|
|
|
|
|
openView: false,
|
|
|
|
|
|
// 更新站点时间范围
|
|
|
|
|
|
daterangeStartDate: [],
|
|
|
|
|
|
// 更新站点时间范围
|
|
|
|
|
|
daterangeClearDate: [],
|
|
|
|
|
|
// 更新站点时间范围
|
|
|
|
|
|
daterangeCreateTime: [],
|
|
|
|
|
|
// 更新站点时间范围
|
|
|
|
|
|
daterangeUpdateTime: [],
|
|
|
|
|
|
// 查询参数
|
|
|
|
|
|
queryParams: {
|
|
|
|
|
|
pageNum: 1,
|
|
|
|
|
|
pageSize: 20,
|
|
|
|
|
|
siteCode: null,
|
|
|
|
|
|
centerCode: null,
|
|
|
|
|
|
currency: null,
|
|
|
|
|
|
blOpen: null,
|
|
|
|
|
|
},
|
|
|
|
|
|
};
|
|
|
|
|
|
},
|
|
|
|
|
|
created() {
|
|
|
|
|
|
this.getList();
|
|
|
|
|
|
},
|
|
|
|
|
|
methods: {
|
|
|
|
|
|
/** 查询网点结算账户列表 */
|
|
|
|
|
|
getList() {
|
|
|
|
|
|
this.loading = true;
|
|
|
|
|
|
this.queryParams.params = {};
|
|
|
|
|
|
listEmisSiteAccount(this.addDateRange(this.queryParams, this.dateTimeRange)).then(response => {
|
|
|
|
|
|
this.emisSiteAccountList = response.rows;
|
|
|
|
|
|
this.total = response.total;
|
|
|
|
|
|
this.loading = false;
|
|
|
|
|
|
});
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
/** 搜索按钮操作 */
|
|
|
|
|
|
handleQuery() {
|
|
|
|
|
|
this.queryParams.pageNum = 1;
|
|
|
|
|
|
this.getList();
|
|
|
|
|
|
},
|
|
|
|
|
|
/** 重置按钮操作 */
|
|
|
|
|
|
resetQuery() {
|
|
|
|
|
|
this.resetForm("queryForm");
|
|
|
|
|
|
this.handleQuery();
|
|
|
|
|
|
},
|
|
|
|
|
|
// 多选框选中数据
|
|
|
|
|
|
handleSelectionChange(selection) {
|
|
|
|
|
|
this.ids = selection.map(item => item.id)
|
|
|
|
|
|
this.single = selection.length!==1
|
|
|
|
|
|
this.multiple = !selection.length
|
|
|
|
|
|
},
|
|
|
|
|
|
// 排序 查询字段是表格中字段名字 动态取值排序顺序
|
|
|
|
|
|
handleSortChange(column) {
|
|
|
|
|
|
this.queryParams.orderByColumn = column.prop;
|
|
|
|
|
|
this.queryParams.isAsc = column.order;
|
|
|
|
|
|
this.getList();
|
|
|
|
|
|
},
|
|
|
|
|
|
/** 新增按钮操作 */
|
|
|
|
|
|
handleAdd(row) {
|
|
|
|
|
|
this.currentId=null;
|
|
|
|
|
|
this.openForm= true;
|
|
|
|
|
|
this.titleForm = "新增";
|
|
|
|
|
|
},
|
|
|
|
|
|
handleShowMoreInput(){
|
|
|
|
|
|
this.moreInputVisible = !this.moreInputVisible;
|
|
|
|
|
|
},
|
|
|
|
|
|
/** 修改按钮操作 */
|
|
|
|
|
|
handleUpdate(row) {
|
|
|
|
|
|
this.currentId= row.id;
|
|
|
|
|
|
this.openForm = true;
|
|
|
|
|
|
this.titleForm = "修改";
|
|
|
|
|
|
},
|
|
|
|
|
|
handleView(row) {
|
|
|
|
|
|
this.id=row.id;
|
|
|
|
|
|
this.titleView="查看";
|
|
|
|
|
|
this.openView=true;
|
|
|
|
|
|
// this.router.push({ path: '/emis/emisSiteAccount/viewDetail', query: { id: row.id }})
|
|
|
|
|
|
},
|
|
|
|
|
|
handleFormChanged(){
|
|
|
|
|
|
this.openForm = false;
|
|
|
|
|
|
this.getList();
|
|
|
|
|
|
},
|
|
|
|
|
|
cancelForm(){
|
|
|
|
|
|
this.openForm = false;
|
|
|
|
|
|
},
|
|
|
|
|
|
/** 删除按钮操作 */
|
|
|
|
|
|
handleDelete(row) {
|
|
|
|
|
|
const ids = row.id || this.ids;
|
|
|
|
|
|
this.$modal.confirm('是否确认删除').then(function() {
|
|
|
|
|
|
return delEmisSiteAccount(ids);
|
|
|
|
|
|
}).then(() => {
|
|
|
|
|
|
this.getList();
|
|
|
|
|
|
this.$modal.msgSuccess("删除成功");
|
|
|
|
|
|
}).catch(() => {});
|
|
|
|
|
|
},
|
|
|
|
|
|
/** 导出按钮操作 */
|
|
|
|
|
|
handleExport() {
|
|
|
|
|
|
// this.download('emis/emisSiteAccount/export', {
|
|
|
|
|
|
// ...this.queryParams
|
|
|
|
|
|
// }, `emisSiteAccount_${new Date().getTime()}.xlsx`)
|
|
|
|
|
|
const loadingInstance = this.$loading({
|
|
|
|
|
|
text: '正在导出...'
|
|
|
|
|
|
})
|
|
|
|
|
|
var qParam = {...this.queryParams};
|
|
|
|
|
|
qParam.pageNum=1;
|
|
|
|
|
|
qParam.pageSize=5000;
|
|
|
|
|
|
|
|
|
|
|
|
listEmisSiteAccount(this.addDateRange(qParam, this.dateTimeRange)).then(response => {
|
|
|
|
|
|
this.downloadLoading = false
|
|
|
|
|
|
if (response.code === 200) {
|
|
|
|
|
|
const curList = response.rows
|
|
|
|
|
|
import('@/vendor/Export2Excel').then(excel => {
|
|
|
|
|
|
const tHeader = ['id','账户编号','站点','财务中心代码','当前余额','冻结余额','确认金额','警戒余额','关闭金额','保证金','币种','开户日期','是否启用','是否锁定','是否清理','清理站点代码','清理日期','清理人编号','备注','删除标志(0代表存在','创建者','创建时间','更新者','更新时间','创建站点','更新站点',];
|
|
|
|
|
|
const filterVal = ['id','accCode','siteCode','centerCode','curMoney','frozenMoney','confirmMoney','watchMoney','closeMoney','earnestMoney','currency','startDate','blOpen','blLock','blClear','clearSiteCode','clearDate','clearManCode','remark','delFlag','createBy','createTime','updateBy','updateTime','createSite','updateSite',];
|
|
|
|
|
|
const data = this.formatJson(filterVal, curList, response.rows)
|
|
|
|
|
|
excel.export_json_to_excel({
|
|
|
|
|
|
header: tHeader,
|
|
|
|
|
|
data,
|
|
|
|
|
|
filename: '网点结算账户',
|
|
|
|
|
|
autoWidth: true
|
|
|
|
|
|
})
|
|
|
|
|
|
loadingInstance.close()
|
|
|
|
|
|
})
|
|
|
|
|
|
}
|
|
|
|
|
|
});
|
|
|
|
|
|
},
|
|
|
|
|
|
formatJson(filterVal, jsonData, resData) {
|
|
|
|
|
|
let index = 0
|
|
|
|
|
|
return jsonData.map(v => filterVal.map(j => {
|
|
|
|
|
|
if (j === 'index') {
|
|
|
|
|
|
return ++index
|
|
|
|
|
|
}
|
|
|
|
|
|
if (j === 'status') {
|
|
|
|
|
|
var statusStr='xxx'
|
|
|
|
|
|
if(v[j] == 10){
|
|
|
|
|
|
statusStr='xxx'
|
|
|
|
|
|
}
|
|
|
|
|
|
return statusStr;
|
|
|
|
|
|
}
|
|
|
|
|
|
return v[j]
|
|
|
|
|
|
}))
|
|
|
|
|
|
},
|
|
|
|
|
|
/** 列索引函数 */
|
|
|
|
|
|
getIndex($index) {
|
|
|
|
|
|
return (this.queryParams.pageNum - 1) * this.queryParams.pageSize + $index + 1
|
|
|
|
|
|
},
|
|
|
|
|
|
/** 时间搜索响应函数 */
|
|
|
|
|
|
dateTimeChange(value){
|
|
|
|
|
|
this.dateTimeRange=value;
|
|
|
|
|
|
},
|
|
|
|
|
|
}
|
|
|
|
|
|
};
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
|
|
.el-divider{
|
|
|
|
|
|
margin-top: 0px;
|
|
|
|
|
|
background: 0 0;
|
|
|
|
|
|
border-top: 1px solid #E6EBF5;
|
|
|
|
|
|
}
|
|
|
|
|
|
.el-divider__text {
|
|
|
|
|
|
color: #0955ee;
|
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
}
|
|
|
|
|
|
</style>
|