更新
This commit is contained in:
@@ -69,31 +69,11 @@
|
||||
/>
|
||||
</el-select>
|
||||
|
||||
<el-form-item>
|
||||
<!-- <el-select
|
||||
v-model="parameter.params.businessLeader"
|
||||
clearable
|
||||
filterable
|
||||
remote
|
||||
reserve-keyword
|
||||
placeholder="企业负责人姓名或联系方式"
|
||||
:remote-method="userRemoteMethod"
|
||||
@keyup.enter.native="getByPage"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in userList"
|
||||
:key="item.id"
|
||||
:label="
|
||||
item.phone +
|
||||
'(' +
|
||||
(item.nickName ? item.nickName + '-' : '') +
|
||||
item.userCode +
|
||||
')'
|
||||
"
|
||||
:value="item.id"
|
||||
/>
|
||||
</el-select> -->
|
||||
</el-form-item>
|
||||
<!-- 企业负责人或联系方式 -->
|
||||
<autocomplete
|
||||
:params="parameter.params"
|
||||
:config="configAutocompleteLeader"
|
||||
/>
|
||||
|
||||
<el-select
|
||||
v-model="parameter.params.companyDockType"
|
||||
@@ -262,18 +242,13 @@
|
||||
{{ row.phone || "暂无电话" }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="创建信息">
|
||||
<el-table-column label="创建信息" width="160">
|
||||
<template slot-scope="{ row }">
|
||||
{{ row.createUserName || "创建人" }} <br />
|
||||
{{ row.createTime || "创建时间" }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
fixed="right"
|
||||
label="操作"
|
||||
width="180px"
|
||||
align="center"
|
||||
>
|
||||
<el-table-column fixed="right" label="操作" width="130" align="center">
|
||||
<template slot-scope="{ row }">
|
||||
<span class="el-dropdown-link" @click="detail(row)">详情</span>
|
||||
<el-dropdown
|
||||
@@ -287,15 +262,29 @@
|
||||
更多<i class="el-icon-arrow-down el-icon--right"></i>
|
||||
</span>
|
||||
<el-dropdown-menu slot="dropdown">
|
||||
<el-dropdown-item command="base"> 基础资料 </el-dropdown-item>
|
||||
<el-dropdown-item
|
||||
v-permission="['company:info:base']"
|
||||
command="base"
|
||||
>
|
||||
基础资料
|
||||
</el-dropdown-item>
|
||||
<el-dropdown-item
|
||||
command="attestation"
|
||||
v-if="row.auditMark === 0"
|
||||
v-permission="['company:info:auth']"
|
||||
>
|
||||
认证信息
|
||||
</el-dropdown-item>
|
||||
<el-dropdown-item command="bank"> 银行信息 </el-dropdown-item>
|
||||
<el-dropdown-item command="finance">
|
||||
<el-dropdown-item
|
||||
v-permission="['company:info:auth']"
|
||||
command="bank"
|
||||
>
|
||||
银行信息
|
||||
</el-dropdown-item>
|
||||
<el-dropdown-item
|
||||
v-permission="['company:info:finance']"
|
||||
command="finance"
|
||||
>
|
||||
财务信息
|
||||
</el-dropdown-item>
|
||||
</el-dropdown-menu>
|
||||
@@ -316,6 +305,8 @@
|
||||
/>
|
||||
<!-- 认证 -->
|
||||
<attestation :controlWindows="controlWindows" @closeWindow="search" />
|
||||
<!-- 银行 -->
|
||||
<bank :controlWindows="controlWindows" @closeWindow="search" />
|
||||
<!-- 财务 -->
|
||||
<finance :controlWindows="controlWindows" @closeWindow="search" />
|
||||
|
||||
@@ -454,26 +445,22 @@
|
||||
import serve from "api/customerManagement/companyManagement.js";
|
||||
import commonServe from "api/common.js";
|
||||
|
||||
import OilCompanyInfoAdd from "@/views/customerManagement/companyManagement/OilCompanyInfoAdd";
|
||||
import OilCompanyInfoUpdate from "@/views/customerManagement/companyManagement/OilCompanyInfoUpdate";
|
||||
import oilCompanyInfoApi from "@/api/customerManagement/oilCompanyInfo";
|
||||
|
||||
import autocomplete from "components/autocomplete/index.vue";
|
||||
import pagination from "components/pagination/index.vue";
|
||||
import generalDetails from "components/generalDetails/index.vue";
|
||||
|
||||
import add from "./components/add.vue";
|
||||
import attestation from "./components/attestation.vue";
|
||||
import bank from "./components/bank.vue";
|
||||
import finance from "./components/finance.vue";
|
||||
|
||||
import { rechargeTypeEnum, rechargeStatusEnum } from "utils/dataType.js";
|
||||
|
||||
export default {
|
||||
components: {
|
||||
// OilCompanyInfoUpdate,
|
||||
// OilCompanyInfoAdd,
|
||||
add,
|
||||
attestation,
|
||||
bank,
|
||||
finance,
|
||||
|
||||
pagination,
|
||||
@@ -487,11 +474,12 @@ export default {
|
||||
addInfo: {},
|
||||
detail: false,
|
||||
attestation: false,
|
||||
bank: false,
|
||||
finance: false,
|
||||
},
|
||||
tableData: [],
|
||||
userList: [],
|
||||
oilCompanyAuth: {},
|
||||
// userList: [],
|
||||
// oilCompanyAuth: {},
|
||||
tableHeight: 0,
|
||||
|
||||
// 查询参数
|
||||
@@ -503,23 +491,30 @@ export default {
|
||||
rechargeTypeEnum: rechargeTypeEnum,
|
||||
rechargeStatusEnum: rechargeStatusEnum,
|
||||
|
||||
// datetime: [],
|
||||
tableData: [],
|
||||
configAutocomplete: {
|
||||
serveTarget: commonServe.getRefineryCompanyList,
|
||||
autocompleteKey: "name",
|
||||
labelKey: "name",
|
||||
valueKey: "id",
|
||||
valueKey: "name",
|
||||
placeholder: "企业名称",
|
||||
querykey: "companyId",
|
||||
querykey: "companyName",
|
||||
},
|
||||
configAutocompleteHead: {
|
||||
serveTarget: commonServe.liekQuery,
|
||||
serveTarget: commonServe.getCompanyNames,
|
||||
labelKey: "name",
|
||||
valueKey: "name",
|
||||
placeholder: "总公司名称",
|
||||
querykey: "name",
|
||||
},
|
||||
configAutocompleteLeader: {
|
||||
serveTarget: commonServe.liekQuery,
|
||||
labelKey: "nickName",
|
||||
valueKey: "id",
|
||||
placeholder: "企业负责人姓名或联系方式",
|
||||
querykey: "businessLeader",
|
||||
},
|
||||
//
|
||||
parameter: {
|
||||
currentPage: 1,
|
||||
pageSize: 10,
|
||||
@@ -535,7 +530,7 @@ export default {
|
||||
{
|
||||
label: "审核通过",
|
||||
value: "1",
|
||||
type: "dark",
|
||||
type: "success",
|
||||
},
|
||||
{
|
||||
label: "待审核",
|
||||
@@ -589,11 +584,8 @@ export default {
|
||||
carTitle: "基础信息",
|
||||
// 标记
|
||||
carItems: [
|
||||
// { label: "账户ID", value: "id" },
|
||||
{ label: "企业名称", value: "name" },
|
||||
{ label: "企业简称", value: "abbreviaName" },
|
||||
// { label: "是否为主体公司", value: "parentMark" },
|
||||
// { label: "上级公司", value: "name" },
|
||||
{ label: "公司性质", value: "parentMark" },
|
||||
{ label: "企业性质", value: "companyNature" },
|
||||
{ label: "公司对接类型", value: "companyDockType" },
|
||||
@@ -657,7 +649,6 @@ export default {
|
||||
};
|
||||
},
|
||||
created() {
|
||||
// this.initDateTime();
|
||||
this.getByPage();
|
||||
},
|
||||
updated() {
|
||||
@@ -680,40 +671,14 @@ export default {
|
||||
this.getByPage();
|
||||
},
|
||||
getByPage() {
|
||||
this.parameter.params.companyType = "4";
|
||||
serve.getByPage(this.parameter).then((res) => {
|
||||
this.tableData = res.data.list;
|
||||
this.parameter.total = res.data.totalCount;
|
||||
});
|
||||
// console.log(this.tableData);
|
||||
},
|
||||
// closeDialog() {
|
||||
// this.addDialog = false;
|
||||
// this.updateDialog = false;
|
||||
// this.addAuthDialog = false;
|
||||
// this.updateAuthDialog = false;
|
||||
// this.addFinanceDialog = false;
|
||||
// this.updateFinanceDialog = false;
|
||||
// this.piliangDialog = false;
|
||||
// this.BatchModifyingDialog = false;
|
||||
// this.showTableDrawer = false;
|
||||
// this.bankFinanceDialog = false;
|
||||
// this.syncDialog = false;
|
||||
// },
|
||||
enableMarkOpem(row) {
|
||||
// 启用禁用点击
|
||||
// const data = {
|
||||
// id: row.id,
|
||||
// shareDistribute: row.shareDistribute,
|
||||
// };
|
||||
// oilCompanyInfoApi.openShareDistribute(data).then((res) => {
|
||||
// if (res.code === 20000) {
|
||||
// this.$message.success(res.msg);
|
||||
// }
|
||||
// this.getByPage();
|
||||
// });
|
||||
},
|
||||
|
||||
enableMarkOpem(row) {},
|
||||
|
||||
//新增
|
||||
addition() {
|
||||
this.controlWindows.addInfo = {
|
||||
@@ -746,6 +711,16 @@ export default {
|
||||
console.log(this.controlWindows.attestation);
|
||||
});
|
||||
}
|
||||
if (val === "bank") {
|
||||
commonServe.getByCompanyIdBankCard(row.id).then((res) => {
|
||||
this.controlWindows.addInfo = {
|
||||
title: res.data.length ? "修改财务信息" : "新增财务信息",
|
||||
id: row.id,
|
||||
list: res.data,
|
||||
};
|
||||
this.controlWindows.bank = true;
|
||||
});
|
||||
}
|
||||
if (val === "finance") {
|
||||
commonServe.getByCompanyIdFinance(row.id).then((res) => {
|
||||
if (res.data) {
|
||||
@@ -768,37 +743,33 @@ export default {
|
||||
}
|
||||
},
|
||||
detail(row) {
|
||||
// commonServe.getInfo(row.id).then((res) => {
|
||||
Promise.allSettled([
|
||||
commonServe.getInfo(row.id),
|
||||
commonServe.getByCompanyIdAuth(row.id),
|
||||
commonServe.getByCompanyIdFinance(row.id),
|
||||
commonServe.getByCompanyIdAccount(row.id),
|
||||
]).then((res) => {
|
||||
// console.log("res", res);
|
||||
// return;
|
||||
this.oilCompanyMatch = [];
|
||||
res.forEach((item) => {
|
||||
let result = item.status === "fulfilled" ? item.value.data : null;
|
||||
this.oilCompanyMatch.push(result);
|
||||
});
|
||||
// this.oilCompanyMatch = [infoRes, financeRes, authRes, accountRes];
|
||||
console.log("this.oilCompanyMatch", this.oilCompanyMatch);
|
||||
this.controlWindows.detail = true;
|
||||
});
|
||||
// });
|
||||
},
|
||||
// 启用禁用点击
|
||||
enableMark(val, row) {
|
||||
row.enableMark = val == 1 ? 0 : 1;
|
||||
update.updateBatchEnable([row]).then((res) => {
|
||||
if (!res.code === 20000) {
|
||||
this.$message.error(res.msg);
|
||||
return;
|
||||
}
|
||||
this.getByPage();
|
||||
});
|
||||
},
|
||||
// enableMark(val, row) {
|
||||
// row.enableMark = val == 1 ? 0 : 1;
|
||||
// update.updateBatchEnable([row]).then((res) => {
|
||||
// if (!res.code === 20000) {
|
||||
// this.$message.error(res.msg);
|
||||
// return;
|
||||
// }
|
||||
// this.getByPage();
|
||||
// });
|
||||
// },
|
||||
//重置
|
||||
reset() {
|
||||
Object.assign(this.parameter, {
|
||||
@@ -816,14 +787,7 @@ export default {
|
||||
this.tableHeight =
|
||||
bodyHeight - frameHeight - operationHeight - paginationHeight - 145;
|
||||
},
|
||||
handleSizeChange(val) {
|
||||
this.page.pageSize = val;
|
||||
this.getByPage();
|
||||
},
|
||||
handleCurrentChange(val) {
|
||||
this.page.currentPage = val;
|
||||
this.getByPage();
|
||||
},
|
||||
|
||||
indexMethod(index) {
|
||||
return index + 1;
|
||||
},
|
||||
@@ -842,24 +806,6 @@ export default {
|
||||
// this.addDialog = true;
|
||||
this.controlWindows.add = true;
|
||||
},
|
||||
toUpdate(id) {
|
||||
console.log(id);
|
||||
console.log(this.updateDialog);
|
||||
// 跳转到更新
|
||||
oilCompanyInfoApi.get(id).then((res) => {
|
||||
console.log(res);
|
||||
this.oilCompanyInfo = res.data;
|
||||
this.updateDialog = true;
|
||||
console.log(this.updateDialog);
|
||||
});
|
||||
},
|
||||
toAddAuth(id) {
|
||||
// 跳转添加认证信息
|
||||
oilCompanyInfoApi.get(id).then((res) => {
|
||||
this.oilCompanyInfo = res.data;
|
||||
this.addAuthDialog = true;
|
||||
});
|
||||
},
|
||||
handleSelectionChange(val) {
|
||||
// 选择表格数据
|
||||
this.multipleSelection = val;
|
||||
|
||||
Reference in New Issue
Block a user