|
@@ -7,253 +7,267 @@
|
|
|
-->
|
|
|
|
|
|
<template>
|
|
|
- <div class="content">
|
|
|
- <div>
|
|
|
- <organ-tree @organId="currentOrganId"></organ-tree>
|
|
|
- <div class="content-right">
|
|
|
- <div class="search">
|
|
|
- <el-input
|
|
|
- clearable
|
|
|
- placeholder="机构代码/机构名称"
|
|
|
- class="search-input"
|
|
|
- v-trim
|
|
|
- v-model.trim="mixins_query.questParams"
|
|
|
- ></el-input>
|
|
|
- <el-button
|
|
|
- class="search-btn"
|
|
|
- type="primary"
|
|
|
- @click="mixins_search()"
|
|
|
- :disabled="mixins_onQuery"
|
|
|
- :loading="mixins_onQuery"
|
|
|
- icon="el-icon-search"
|
|
|
- >搜索</el-button
|
|
|
- >
|
|
|
- <!-- <el-button class="el-fl-right" type="primary" @click="addOrEdit('add')"
|
|
|
- >添加</el-button
|
|
|
- > -->
|
|
|
- <el-tooltip
|
|
|
- placement="bottom"
|
|
|
- class="item"
|
|
|
- effect="light"
|
|
|
- content="添加"
|
|
|
- >
|
|
|
- <span class="zoniot_font item el-fl-right" @click="addOrEdit('add')"
|
|
|
- ></span
|
|
|
- >
|
|
|
- </el-tooltip>
|
|
|
- </div>
|
|
|
- <zz-table
|
|
|
- :settings="{ showIndex: true }"
|
|
|
- :cols="cols"
|
|
|
- :loading="mixins_onQuery"
|
|
|
- :data="mixins_list"
|
|
|
- :pageset="mixins_pageset"
|
|
|
- @page-change="pageChange"
|
|
|
- @selection-change="selectionChange"
|
|
|
- >
|
|
|
- <template slot-scope="scope" slot="transactionsNumber">
|
|
|
+ <div class="content">
|
|
|
+ <div>
|
|
|
+ <organ-tree @organId="currentOrganId"></organ-tree>
|
|
|
+ <div class="content-right">
|
|
|
+ <div class="search">
|
|
|
+ <el-input
|
|
|
+ clearable
|
|
|
+ placeholder="机构代码/机构名称"
|
|
|
+ class="search-input"
|
|
|
+ v-trim
|
|
|
+ v-model.trim="mixins_query.questParams"
|
|
|
+ ></el-input>
|
|
|
+ <el-button
|
|
|
+ class="search-btn"
|
|
|
+ type="primary"
|
|
|
+ @click="mixins_search()"
|
|
|
+ :disabled="mixins_onQuery"
|
|
|
+ :loading="mixins_onQuery"
|
|
|
+ icon="el-icon-search"
|
|
|
+ >搜索
|
|
|
+ </el-button>
|
|
|
+ <template>
|
|
|
+ <el-tooltip
|
|
|
+ class="item"
|
|
|
+ effect="light"
|
|
|
+ placement="bottom"
|
|
|
+ content="导出"
|
|
|
+ >
|
|
|
+ <span class="zoniot_font item el-fl-right" @click="exportExcel()"></span>
|
|
|
+ </el-tooltip>
|
|
|
+ <el-dropdown
|
|
|
+ type="primary"
|
|
|
+ @command="addCommand"
|
|
|
+ class="el-fl-right"
|
|
|
+ >
|
|
|
+ <span class="zoniot_font item el-fl-right"></span>
|
|
|
+ <el-dropdown-menu
|
|
|
+ slot="dropdown"
|
|
|
+ hide-on-click="false"
|
|
|
+ class="device-search-dropdown"
|
|
|
+ >
|
|
|
+ <el-dropdown-item command="add">单个添加</el-dropdown-item>
|
|
|
+ <el-dropdown-item command="batchAdd">
|
|
|
+ <div class="upload_div">
|
|
|
+ <xk-upload
|
|
|
+ class="upload_class"
|
|
|
+ @callback="mixins_search"
|
|
|
+ :params="{ importType: 7 }"
|
|
|
+ >
|
|
|
+ <span class="upload_text" slot="content">批量添加</span>
|
|
|
+ </xk-upload>
|
|
|
+ </div>
|
|
|
+ </el-dropdown-item>
|
|
|
+ <el-dropdown-item command="template">下载模板</el-dropdown-item>
|
|
|
+ </el-dropdown-menu>
|
|
|
+ </el-dropdown>
|
|
|
+ </template>
|
|
|
+ </div>
|
|
|
+ <zz-table
|
|
|
+ :settings="{ showIndex: true }"
|
|
|
+ :cols="cols"
|
|
|
+ :loading="mixins_onQuery"
|
|
|
+ :data="mixins_list"
|
|
|
+ :pageset="mixins_pageset"
|
|
|
+ @page-change="pageChange"
|
|
|
+ @selection-change="selectionChange"
|
|
|
+ >
|
|
|
+ <template slot-scope="scope" slot="transactionsNumber">
|
|
|
<span
|
|
|
v-if="scope.row.transactionsNumber"
|
|
|
class="el-link"
|
|
|
@click="toTransactionDetails(scope.row)"
|
|
|
- >{{ scope.row.transactionsNumber }}</span
|
|
|
- >
|
|
|
- <span v-else>{{ scope.row.transactionsNumber }}</span>
|
|
|
- </template>
|
|
|
- <template slot-scope="scope" slot="opt">
|
|
|
- <!-- <el-button type="primary" @click="addOrEdit('edit', scope.index)"
|
|
|
- >编辑</el-button
|
|
|
- >
|
|
|
- <el-button @click="deleteRow(scope.row)" :loading="scope.row.onDelete"
|
|
|
- >删除</el-button
|
|
|
- > -->
|
|
|
- <div class="opt">
|
|
|
- <el-tooltip
|
|
|
- class="item"
|
|
|
- effect="light"
|
|
|
- placement="bottom"
|
|
|
- content="编辑"
|
|
|
- >
|
|
|
- <span class="zoniot_font" @click="addOrEdit('edit', scope.index)"
|
|
|
- ></span
|
|
|
- >
|
|
|
- </el-tooltip>
|
|
|
- <el-tooltip
|
|
|
- class="item"
|
|
|
- effect="light"
|
|
|
- placement="bottom"
|
|
|
- content="删除"
|
|
|
- >
|
|
|
+ >{{ scope.row.transactionsNumber }}</span>
|
|
|
+ <span v-else>{{ scope.row.transactionsNumber }}</span>
|
|
|
+ </template>
|
|
|
+ <template slot-scope="scope" slot="opt">
|
|
|
+ <div class="opt">
|
|
|
+ <el-tooltip
|
|
|
+ class="item"
|
|
|
+ effect="light"
|
|
|
+ placement="bottom"
|
|
|
+ content="编辑"
|
|
|
+ >
|
|
|
+ <span class="zoniot_font" @click="addOrEdit('edit', scope.index)"></span>
|
|
|
+ </el-tooltip>
|
|
|
+ <el-tooltip
|
|
|
+ class="item"
|
|
|
+ effect="light"
|
|
|
+ placement="bottom"
|
|
|
+ content="删除"
|
|
|
+ >
|
|
|
<span
|
|
|
class="zoniot_font red"
|
|
|
@click="deleteRow(scope.row)"
|
|
|
- ></span
|
|
|
- >
|
|
|
- </el-tooltip>
|
|
|
+ ></span>
|
|
|
+ </el-tooltip>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ </zz-table>
|
|
|
</div>
|
|
|
- </template>
|
|
|
- </zz-table>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <save-edits v-if="showaddDialog"></save-edits>
|
|
|
+ </div>
|
|
|
+ <save-edits v-if="showaddDialog"></save-edits>
|
|
|
|
|
|
- </div>
|
|
|
+ </div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import list from "@/js/list.js";
|
|
|
-import saveEdits from './pageJump/saveEdits.vue'
|
|
|
-export default {
|
|
|
- mixins: [list],
|
|
|
- data() {
|
|
|
- return {
|
|
|
- statusOptions: [],
|
|
|
- currentId: "",
|
|
|
- cols: [
|
|
|
- {
|
|
|
- label: "所属社区",
|
|
|
- prop: "code",
|
|
|
- width: 120,
|
|
|
- },
|
|
|
- {
|
|
|
- label: "楼栋名称",
|
|
|
- prop: "name",
|
|
|
- },
|
|
|
- {
|
|
|
- label: "单元",
|
|
|
- prop: "agentbranchType",
|
|
|
- },
|
|
|
- {
|
|
|
- label: "房屋号",
|
|
|
- prop: "mchid",
|
|
|
- width: 150,
|
|
|
+ import list from "@/js/list.js";
|
|
|
+ import saveEdits from './pageJump/saveEdits.vue'
|
|
|
+
|
|
|
+ export default {
|
|
|
+ mixins: [list],
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ statusOptions: [],
|
|
|
+ currentId: "",
|
|
|
+ cols: [
|
|
|
+ {
|
|
|
+ label: "所属社区",
|
|
|
+ prop: "code",
|
|
|
+ width: 120,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "楼栋名称",
|
|
|
+ prop: "name",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "单元",
|
|
|
+ prop: "agentbranchType",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "房屋号",
|
|
|
+ prop: "mchid",
|
|
|
+ width: 150,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "建筑面积",
|
|
|
+ prop: "paykey",
|
|
|
+ format(val) {
|
|
|
+ const str = val.toString();
|
|
|
+ const len = str.length;
|
|
|
+ let result = "";
|
|
|
+ if (len <= 10) {
|
|
|
+ let lastStr = str.substr(5);
|
|
|
+ result = lastStr.padStart(len, "*");
|
|
|
+ } else {
|
|
|
+ let lastStr = str.substr(Math.floor(len / 2));
|
|
|
+ result = lastStr.padStart(Math.ceil(len / 2) + 5, "*");
|
|
|
+ }
|
|
|
+ return result;
|
|
|
+ },
|
|
|
+ width: 220,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "使用状态",
|
|
|
+ prop: "appid",
|
|
|
+ width: 220,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "操作",
|
|
|
+ slot: "opt",
|
|
|
+ width: 150,
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ showaddDialog: false,
|
|
|
+ };
|
|
|
},
|
|
|
- {
|
|
|
- label: "建筑面积",
|
|
|
- prop: "paykey",
|
|
|
- format(val) {
|
|
|
- const str = val.toString();
|
|
|
- const len = str.length;
|
|
|
- let result = "";
|
|
|
- if (len <= 10) {
|
|
|
- let lastStr = str.substr(5);
|
|
|
- result = lastStr.padStart(len, "*");
|
|
|
- } else {
|
|
|
- let lastStr = str.substr(Math.floor(len / 2));
|
|
|
- result = lastStr.padStart(Math.ceil(len / 2) + 5, "*");
|
|
|
- }
|
|
|
- return result;
|
|
|
- },
|
|
|
- width: 220,
|
|
|
+ components: {
|
|
|
+ saveEdits
|
|
|
+ // viewDetail
|
|
|
},
|
|
|
- {
|
|
|
- label: "使用状态",
|
|
|
- prop: "appid",
|
|
|
- width: 220,
|
|
|
+ methods: {
|
|
|
+ toTransactionDetails(row) {
|
|
|
+ const {id, type} = row;
|
|
|
+ this.$router.push({
|
|
|
+ name: "main",
|
|
|
+ query: {
|
|
|
+ url: "/BillingManage/FinancialManage/ReconciliationManage/TransactionDetails",
|
|
|
+ agentbranchId: id,
|
|
|
+ payType: type,
|
|
|
+ prevName: "支付管理",
|
|
|
+ },
|
|
|
+ });
|
|
|
+ },
|
|
|
+
|
|
|
+ addCommand(command) {
|
|
|
+ if (command === "add") {
|
|
|
+ // this.showaddDialog=true
|
|
|
+ this.$router.push('/housingManagement/pageJump/saveEdits')
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if (command === "template") {
|
|
|
+ // this.__exportExcel("/installPlan/plan/downTemplate");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ },
|
|
|
+
|
|
|
+ addOrEdit(todo, index) {
|
|
|
+ new Promise((resolve) => {
|
|
|
+ let row = {companyOrgId: this.mixins_query.companyId},
|
|
|
+ title = "编辑支付机构";
|
|
|
+ if ("add" == todo) {
|
|
|
+ title = "添加支付机构";
|
|
|
+ } else {
|
|
|
+ Object.assign(row, this.mixins_list[index] || {});
|
|
|
+ row = JSON.parse(JSON.stringify(row));
|
|
|
+ }
|
|
|
+ this.$router.push('/housingManagement/pageJump/saveEdits')
|
|
|
+ }).then(() => {
|
|
|
+ this.mixins_search("refresh");
|
|
|
+ });
|
|
|
+ },
|
|
|
+ deleteRow(row) {
|
|
|
+ const {name} = row;
|
|
|
+ let title = `您确定要删除支付机构“${name}”`;
|
|
|
+ this.$msgBox(title)
|
|
|
+ .then(() => {
|
|
|
+ this.$http
|
|
|
+ .putForm("/pay/deletePayPayAgentbranch", {id: row.id})
|
|
|
+ .then(({status, msg}) => {
|
|
|
+ this.$delete(row, "onDelete");
|
|
|
+ if (0 === status) {
|
|
|
+ this.$message.success(msg);
|
|
|
+ this.mixins_search("del");
|
|
|
+ } else {
|
|
|
+ this.$message.error(msg);
|
|
|
+ }
|
|
|
+ })
|
|
|
+ .catch(() => {
|
|
|
+ this.$delete(row, "onDelete");
|
|
|
+ });
|
|
|
+ })
|
|
|
+ .catch(() => {
|
|
|
+ });
|
|
|
+ },
|
|
|
+ currentOrganId(data) {
|
|
|
+ this.currentId = data || "";
|
|
|
+ },
|
|
|
},
|
|
|
- {
|
|
|
- label: "操作",
|
|
|
- slot: "opt",
|
|
|
- width: 150,
|
|
|
+ watch: {
|
|
|
+ currentId(newValue, oldValue) {
|
|
|
+ this.mixins_query.companyId = newValue;
|
|
|
+ this.mixins_search();
|
|
|
+ },
|
|
|
},
|
|
|
- ],
|
|
|
- showaddDialog:false,
|
|
|
- };
|
|
|
- },
|
|
|
- components: {
|
|
|
- saveEdits
|
|
|
- // viewDetail
|
|
|
- },
|
|
|
- methods: {
|
|
|
- toTransactionDetails(row) {
|
|
|
- const { id, type } = row;
|
|
|
- this.$router.push({
|
|
|
- name: "main",
|
|
|
- query: {
|
|
|
- url: "/BillingManage/FinancialManage/ReconciliationManage/TransactionDetails",
|
|
|
- agentbranchId: id,
|
|
|
- payType: type,
|
|
|
- prevName: "支付管理",
|
|
|
+ created() {
|
|
|
+ this.mix_path = ""; // 权限
|
|
|
+ this.mixins_dataUrl = "/pay/getAllPayPayAgentbranch"; // 分页查询接口
|
|
|
+ this.mixins_query = {
|
|
|
+ questParams: "",
|
|
|
+ companyId: "",
|
|
|
+ };
|
|
|
+ this.mixins_search("search");
|
|
|
},
|
|
|
- });
|
|
|
- },
|
|
|
- addOrEdit(todo, index) {
|
|
|
- new Promise((resolve) => {
|
|
|
- let row = { companyOrgId: this.mixins_query.companyId },
|
|
|
- title = "编辑支付机构";
|
|
|
- if ("add" == todo) {
|
|
|
- title = "添加支付机构";
|
|
|
- } else {
|
|
|
- Object.assign(row, this.mixins_list[index] || {});
|
|
|
- row = JSON.parse(JSON.stringify(row));
|
|
|
- }
|
|
|
- // this.$store.dispatch("openModal", {
|
|
|
- // url: "/BillingManage/ChargeManage/PaymentManage/AddOrEdit",
|
|
|
- // title: title,
|
|
|
- // width: "520px",
|
|
|
- // height: "650px",
|
|
|
- // // showCancelButton: true,
|
|
|
- // // showResetButton: true,
|
|
|
- // showFooter: false,
|
|
|
- // props: {
|
|
|
- // data: row,
|
|
|
- // todo: todo,
|
|
|
- // callback: resolve,
|
|
|
- // },
|
|
|
- // });
|
|
|
- this.$router.push('/housingManagement/pageJump/saveEdits')
|
|
|
- }).then(() => {
|
|
|
- this.mixins_search("refresh");
|
|
|
- });
|
|
|
- },
|
|
|
- deleteRow(row) {
|
|
|
- const { name } = row;
|
|
|
- let title = `您确定要删除支付机构“${name}”`;
|
|
|
- this.$msgBox(title)
|
|
|
- .then(() => {
|
|
|
- this.$http
|
|
|
- .putForm("/pay/deletePayPayAgentbranch", { id: row.id })
|
|
|
- .then(({ status, msg }) => {
|
|
|
- this.$delete(row, "onDelete");
|
|
|
- if (0 === status) {
|
|
|
- this.$message.success(msg);
|
|
|
- this.mixins_search("del");
|
|
|
- } else {
|
|
|
- this.$message.error(msg);
|
|
|
- }
|
|
|
- })
|
|
|
- .catch(() => {
|
|
|
- this.$delete(row, "onDelete");
|
|
|
- });
|
|
|
- })
|
|
|
- .catch(() => {});
|
|
|
- },
|
|
|
- currentOrganId(data) {
|
|
|
- this.currentId = data || "";
|
|
|
- },
|
|
|
- },
|
|
|
- watch: {
|
|
|
- currentId(newValue, oldValue) {
|
|
|
- this.mixins_query.companyId = newValue;
|
|
|
- this.mixins_search();
|
|
|
- },
|
|
|
- },
|
|
|
- created() {
|
|
|
- this.mix_path = ""; // 权限
|
|
|
- this.mixins_dataUrl = "/pay/getAllPayPayAgentbranch"; // 分页查询接口
|
|
|
- this.mixins_query = {
|
|
|
- questParams: "",
|
|
|
- companyId: "",
|
|
|
};
|
|
|
- this.mixins_search("search");
|
|
|
- },
|
|
|
-};
|
|
|
</script>
|
|
|
<style lang="scss" scoped>
|
|
|
- .content{
|
|
|
- .content-right {
|
|
|
- width: calc(100% - 280px);
|
|
|
- float: right;
|
|
|
+ .content {
|
|
|
+ .content-right {
|
|
|
+ width: calc(100% - 280px);
|
|
|
+ float: right;
|
|
|
+ }
|
|
|
}
|
|
|
- }
|
|
|
</style>
|