This commit is contained in:
xiaozhiyong
2023-02-22 13:19:23 +08:00
parent 2c3fc5aacc
commit 726dc111b6
13 changed files with 561 additions and 295 deletions

View File

@@ -1,16 +1,6 @@
<template>
<div class="order">
<div class="frame">
<!-- <el-autocomplete
class="mr20"
label
v-model="parameter.params.id"
:fetch-suggestions="querySearchAsync"
value-key="refineryName"
value="id"
placeholder="炼厂名称"
></el-autocomplete> -->
<autocomplete
class="mr20"
:params="parameter.params"
@@ -124,6 +114,7 @@
:visible.sync="controlWindows.detail"
>
<general-details
class="pft14"
title="详情"
:isHeader="true"
v-if="controlWindows.detail"
@@ -131,6 +122,22 @@
:mappingData="mappingData"
@close="controlWindows.detail = false"
>
<template #refineryType>
<p>
{{
refineryTypeEnum.find(
(item) => item.value === oilCompanyMatch[0].accountType
).label
}}
</p>
</template>
<template #accountStatus>
<p>
{{
oilCompanyMatch[0].accountStatus === "ENABLE" ? "启用" : "禁用"
}}
</p>
</template>
</general-details>
</el-drawer>
</div>
@@ -225,27 +232,6 @@ export default {
this.parameter.total = res.data.totalCount;
});
},
//炼厂list
// findByEntity() {
// refineryInfoServe.findByEntity().then((res) => {
// this.refineryList = res.data;
// });
// },
//远程搜索
// querySearchAsync(queryString, cb) {
// if (queryString) {
// refineryInfoServe
// .findByEntity({ refineryName: queryString })
// .then((res) => {
// let timeInstance = setTimeout(() => {
// clearTimeout(timeInstance);
// if (res.data.length) {
// cb(res.data);
// } else cb([]);
// }, 1000 * Math.random());
// });
// } else cb([]);
// },
//新增
addition() {
this.controlWindows.addInfo.title = "账户新增";
@@ -261,7 +247,7 @@ export default {
},
//详情
detail(row) {
this.oilCompanyMatch = row;
this.oilCompanyMatch = [row];
this.controlWindows.detail = true;
},
//重置
@@ -290,6 +276,9 @@ export default {
<style lang="scss" scoped>
.order {
.pft14 {
font-size: 14px;
}
.frame {
margin: 20px;
padding: 20px;
@@ -343,5 +332,8 @@ export default {
margin-right: 10px;
}
}
.pft14 {
font-size: 14px;
}
}
</style>