|
@@ -3,68 +3,92 @@
|
|
|
<el-col :span="24" style="padding: 16px; height: 100%">
|
|
<el-col :span="24" style="padding: 16px; height: 100%">
|
|
|
<el-card style="height: 100%; overflow-y: auto">
|
|
<el-card style="height: 100%; overflow-y: auto">
|
|
|
<el-col :span="24" class="elrow-main__col-top">
|
|
<el-col :span="24" class="elrow-main__col-top">
|
|
|
- <div style="display:flex">
|
|
|
|
|
- <select-tree
|
|
|
|
|
- :placeholder="'行政区域(全国)'"
|
|
|
|
|
- style="width:50%"
|
|
|
|
|
|
|
+ <div style="display: flex">
|
|
|
|
|
+ <select-tree
|
|
|
|
|
+ :placeholder="'行政区域(全国)'"
|
|
|
|
|
+ style="width: 50%"
|
|
|
:treeData="treeData"
|
|
:treeData="treeData"
|
|
|
@handlerClick="handlerClick"
|
|
@handlerClick="handlerClick"
|
|
|
:checkVal="cusareaName"
|
|
:checkVal="cusareaName"
|
|
|
></select-tree>
|
|
></select-tree>
|
|
|
- <el-select style="margin:0 20px;width: 50%" placeholder="全部" v-model="priceConfigVal" @change="handleChange">
|
|
|
|
|
- <el-option v-for="(item, index) in priceConfigList" :key="index" :label="item.label" :value="item.value">
|
|
|
|
|
|
|
+ <el-select
|
|
|
|
|
+ style="margin: 0 20px; width: 50%"
|
|
|
|
|
+ placeholder="全部"
|
|
|
|
|
+ v-model="priceConfigVal"
|
|
|
|
|
+ @change="handleChange"
|
|
|
|
|
+ >
|
|
|
|
|
+ <el-option
|
|
|
|
|
+ v-for="(item, index) in priceConfigList"
|
|
|
|
|
+ :key="index"
|
|
|
|
|
+ :label="item.label"
|
|
|
|
|
+ :value="item.value"
|
|
|
|
|
+ >
|
|
|
</el-option>
|
|
</el-option>
|
|
|
</el-select>
|
|
</el-select>
|
|
|
- <el-button type="primary" size="small" @click="handleSearch">查询</el-button>
|
|
|
|
|
|
|
+ <el-button type="primary" size="small" @click="handleSearch"
|
|
|
|
|
+ >查询</el-button
|
|
|
|
|
+ >
|
|
|
</div>
|
|
</div>
|
|
|
- <!-- <div class="top-left">
|
|
|
|
|
|
|
+ <div class="top-left">
|
|
|
<el-button
|
|
<el-button
|
|
|
type="primary"
|
|
type="primary"
|
|
|
size="small"
|
|
size="small"
|
|
|
@click="addAssociation"
|
|
@click="addAssociation"
|
|
|
|
|
+ v-hasPermi="['wpr:price:add']"
|
|
|
|
|
+
|
|
|
>新增
|
|
>新增
|
|
|
</el-button
|
|
</el-button
|
|
|
- ></div> -->
|
|
|
|
|
|
|
+ ></div>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col :span="24" class="elrow-main__col-bottom">
|
|
<el-col :span="24" class="elrow-main__col-bottom">
|
|
|
- <b-table ref="tableRef"
|
|
|
|
|
|
|
+ <b-table
|
|
|
|
|
+ ref="tableRef"
|
|
|
border
|
|
border
|
|
|
:args="{ 'highlight-current-row': true }"
|
|
:args="{ 'highlight-current-row': true }"
|
|
|
- :data="loadData"
|
|
|
|
|
|
|
+ :data="loadData"
|
|
|
:columns="columns"
|
|
:columns="columns"
|
|
|
- isShowIndex>
|
|
|
|
|
|
|
+ isShowIndex
|
|
|
|
|
+ >
|
|
|
<template #priceconfigWaterchargingtype="scope">
|
|
<template #priceconfigWaterchargingtype="scope">
|
|
|
- {{ scope.row.priceconfigWaterchargingtype == 1 ? '是': '否'}}
|
|
|
|
|
|
|
+ {{ scope.row.priceconfigWaterchargingtype == 1 ? '是' : '否' }}
|
|
|
</template>
|
|
</template>
|
|
|
<template #waterPriceName="scope">
|
|
<template #waterPriceName="scope">
|
|
|
<span v-if="scope.row.priceconfigWaterchargingtype == 1">
|
|
<span v-if="scope.row.priceconfigWaterchargingtype == 1">
|
|
|
- <div v-for="(item, index) in scope.row.waterPriceSteps" :key="index" class="pricestepNum">
|
|
|
|
|
- {{
|
|
|
|
|
- item.pricestepNum == '0' ? '第1阶梯' : item.pricestepNum == '1' ? '第2阶梯' : '第3阶梯'
|
|
|
|
|
|
|
+ <div
|
|
|
|
|
+ v-for="(item, index) in scope.row.waterPriceSteps"
|
|
|
|
|
+ :key="index"
|
|
|
|
|
+ class="pricestepNum"
|
|
|
|
|
+ >
|
|
|
|
|
+ {{
|
|
|
|
|
+ item.pricestepNum == '0'
|
|
|
|
|
+ ? '第1阶梯'
|
|
|
|
|
+ : item.pricestepNum == '1'
|
|
|
|
|
+ ? '第2阶梯'
|
|
|
|
|
+ : '第3阶梯'
|
|
|
}}
|
|
}}
|
|
|
</div>
|
|
</div>
|
|
|
</span>
|
|
</span>
|
|
|
<span v-else>
|
|
<span v-else>
|
|
|
- <div class="pricestepNum">
|
|
|
|
|
- 恒定水价
|
|
|
|
|
- </div>
|
|
|
|
|
|
|
+ <div class="pricestepNum">恒定水价</div>
|
|
|
</span>
|
|
</span>
|
|
|
</template>
|
|
</template>
|
|
|
<template #priceYield="scope">
|
|
<template #priceYield="scope">
|
|
|
<span v-if="scope.row.priceconfigWaterchargingtype == 1">
|
|
<span v-if="scope.row.priceconfigWaterchargingtype == 1">
|
|
|
<div v-for="(item, index) in scope.row.waterPriceSteps" :key="index" class="pricestepNum">
|
|
<div v-for="(item, index) in scope.row.waterPriceSteps" :key="index" class="pricestepNum">
|
|
|
- {{ item.pricestepUsagemin + ' - ' + item.pricestepUsagemax }}
|
|
|
|
|
|
|
+ {{ item.pricestepUsagemin + ' - ' + changeNum(item.pricestepUsagemax) }}
|
|
|
</div>
|
|
</div>
|
|
|
</span>
|
|
</span>
|
|
|
<span v-else>
|
|
<span v-else>
|
|
|
- <div class="pricestepNum">
|
|
|
|
|
- -
|
|
|
|
|
- </div>
|
|
|
|
|
|
|
+ <div class="pricestepNum">-</div>
|
|
|
</span>
|
|
</span>
|
|
|
</template>
|
|
</template>
|
|
|
<template #averageWaterPrice="scope">
|
|
<template #averageWaterPrice="scope">
|
|
|
<span v-if="scope.row.priceconfigWaterchargingtype == 1">
|
|
<span v-if="scope.row.priceconfigWaterchargingtype == 1">
|
|
|
- <div v-for="(item, index) in scope.row.waterPriceSteps" :key="index" class="pricestepNum">
|
|
|
|
|
|
|
+ <div
|
|
|
|
|
+ v-for="(item, index) in scope.row.waterPriceSteps"
|
|
|
|
|
+ :key="index"
|
|
|
|
|
+ class="pricestepNum"
|
|
|
|
|
+ >
|
|
|
{{ item.pricestepUnitprice }}
|
|
{{ item.pricestepUnitprice }}
|
|
|
</div>
|
|
</div>
|
|
|
</span>
|
|
</span>
|
|
@@ -75,39 +99,49 @@
|
|
|
</span>
|
|
</span>
|
|
|
</template>
|
|
</template>
|
|
|
<template #stepPriceOrNot="scope">
|
|
<template #stepPriceOrNot="scope">
|
|
|
- {{ scope.row.priceconfigElectricitychargingtype == 1 ? '是' : '否' }}
|
|
|
|
|
|
|
+ {{
|
|
|
|
|
+ scope.row.priceconfigElectricitychargingtype == 1 ? '是' : '否'
|
|
|
|
|
+ }}
|
|
|
</template>
|
|
</template>
|
|
|
<template #elecPriceName="scope">
|
|
<template #elecPriceName="scope">
|
|
|
<span v-if="scope.row.priceconfigElectricitychargingtype == 1">
|
|
<span v-if="scope.row.priceconfigElectricitychargingtype == 1">
|
|
|
- <div v-for="(item, index) in scope.row.elecPriceSteps" :key="index" class="pricestepNum">
|
|
|
|
|
|
|
+ <div
|
|
|
|
|
+ v-for="(item, index) in scope.row.elecPriceSteps"
|
|
|
|
|
+ :key="index"
|
|
|
|
|
+ class="pricestepNum"
|
|
|
|
|
+ >
|
|
|
{{
|
|
{{
|
|
|
- item.pricestepNum == '0' ? '第1阶梯' : item.pricestepNum == '1' ? '第2阶梯': '第3阶梯'
|
|
|
|
|
|
|
+ item.pricestepNum == '0'
|
|
|
|
|
+ ? '第1阶梯'
|
|
|
|
|
+ : item.pricestepNum == '1'
|
|
|
|
|
+ ? '第2阶梯'
|
|
|
|
|
+ : '第3阶梯'
|
|
|
}}
|
|
}}
|
|
|
</div>
|
|
</div>
|
|
|
</span>
|
|
</span>
|
|
|
<span v-else>
|
|
<span v-else>
|
|
|
- <div class="pricestepNum">
|
|
|
|
|
- 恒定电价
|
|
|
|
|
- </div>
|
|
|
|
|
|
|
+ <div class="pricestepNum">恒定电价</div>
|
|
|
</span>
|
|
</span>
|
|
|
</template>
|
|
</template>
|
|
|
<template #elecPriceSteps="scope">
|
|
<template #elecPriceSteps="scope">
|
|
|
<span v-if="scope.row.priceconfigElectricitychargingtype == 1">
|
|
<span v-if="scope.row.priceconfigElectricitychargingtype == 1">
|
|
|
<div v-for="(item, index) in scope.row.elecPriceSteps" :key="index" class="pricestepNum">
|
|
<div v-for="(item, index) in scope.row.elecPriceSteps" :key="index" class="pricestepNum">
|
|
|
- {{ item.pricestepUsagemin + ' - ' + item.pricestepUsagemax }}
|
|
|
|
|
|
|
+ {{ item.pricestepUsagemin + ' - ' + changeNum(item.pricestepUsagemax) }}
|
|
|
</div>
|
|
</div>
|
|
|
</span>
|
|
</span>
|
|
|
<span v-else>
|
|
<span v-else>
|
|
|
- <div class="pricestepNum">
|
|
|
|
|
- -
|
|
|
|
|
- </div>
|
|
|
|
|
|
|
+ <div class="pricestepNum">-</div>
|
|
|
</span>
|
|
</span>
|
|
|
</template>
|
|
</template>
|
|
|
<template #averageElecPriceSteps="scope">
|
|
<template #averageElecPriceSteps="scope">
|
|
|
<span v-if="scope.row.priceconfigElectricitychargingtype == 1">
|
|
<span v-if="scope.row.priceconfigElectricitychargingtype == 1">
|
|
|
- <div v-for="(item, index) in scope.row.elecPriceSteps" :key="index" class="pricestepNum">
|
|
|
|
|
- {{ item.pricestepUnitprice }}
|
|
|
|
|
- </div>
|
|
|
|
|
|
|
+ <div
|
|
|
|
|
+ v-for="(item, index) in scope.row.elecPriceSteps"
|
|
|
|
|
+ :key="index"
|
|
|
|
|
+ class="pricestepNum"
|
|
|
|
|
+ >
|
|
|
|
|
+ {{ item.pricestepUnitprice }}
|
|
|
|
|
+ </div>
|
|
|
</span>
|
|
</span>
|
|
|
<span v-else>
|
|
<span v-else>
|
|
|
<div class="pricestepNum">
|
|
<div class="pricestepNum">
|
|
@@ -116,10 +150,24 @@
|
|
|
</span>
|
|
</span>
|
|
|
</template>
|
|
</template>
|
|
|
<template #operate="scope">
|
|
<template #operate="scope">
|
|
|
- <el-link size="small" :underline="false" type="primary" style="margin-right: 10px"
|
|
|
|
|
- @click="editAssociation(scope.row)">修改</el-link>
|
|
|
|
|
- <el-link size="small" :underline="false" type="danger" style="margin-right: 10px"
|
|
|
|
|
- @click="deleteHandler(scope.row)">删除</el-link>
|
|
|
|
|
|
|
+ <el-link
|
|
|
|
|
+ size="small"
|
|
|
|
|
+ :underline="false"
|
|
|
|
|
+ type="primary"
|
|
|
|
|
+ style="margin-right: 10px"
|
|
|
|
|
+ @click="editAssociation(scope.row)"
|
|
|
|
|
+ v-hasPermi="['wpr:price:edit']"
|
|
|
|
|
+ >修改</el-link
|
|
|
|
|
+ >
|
|
|
|
|
+ <el-link
|
|
|
|
|
+ size="small"
|
|
|
|
|
+ :underline="false"
|
|
|
|
|
+ type="danger"
|
|
|
|
|
+ style="margin-right: 10px"
|
|
|
|
|
+ @click="deleteHandler(scope.row)"
|
|
|
|
|
+ v-hasPermi="['wpr:price:delete']"
|
|
|
|
|
+ >删除</el-link
|
|
|
|
|
+ >
|
|
|
</template>
|
|
</template>
|
|
|
</b-table>
|
|
</b-table>
|
|
|
</el-col>
|
|
</el-col>
|
|
@@ -130,6 +178,10 @@
|
|
|
:editRow="editRow"
|
|
:editRow="editRow"
|
|
|
@clearEdit="handlerClearEdit"
|
|
@clearEdit="handlerClearEdit"
|
|
|
/>
|
|
/>
|
|
|
|
|
+ <set-annual-water-right-add
|
|
|
|
|
+ :visible.sync="addAssociationManageShow"
|
|
|
|
|
+ @clearEdit="handlerClearEdit"
|
|
|
|
|
+ />
|
|
|
</el-row>
|
|
</el-row>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
@@ -139,13 +191,14 @@ import SelectTree from '@/components/SelectTree';
|
|
|
import BTable from '@/components/Table/index.vue';
|
|
import BTable from '@/components/Table/index.vue';
|
|
|
import { Waterchargingtype, Electricitychargingtype } from './status'
|
|
import { Waterchargingtype, Electricitychargingtype } from './status'
|
|
|
import setAnnualWaterRight from './components/setAnnualWaterRight.vue'
|
|
import setAnnualWaterRight from './components/setAnnualWaterRight.vue'
|
|
|
|
|
+import setAnnualWaterRightAdd from './components/setAnnualWaterRightAdd.vue'
|
|
|
import { getPriceList, deletePrice } from '@/api/price/index.js'
|
|
import { getPriceList, deletePrice } from '@/api/price/index.js'
|
|
|
import { getTree } from '@/api/tree.js'
|
|
import { getTree } from '@/api/tree.js'
|
|
|
import { assign, omit } from 'lodash-es';
|
|
import { assign, omit } from 'lodash-es';
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
|
name: 'waterElectricityPriceSetting',
|
|
name: 'waterElectricityPriceSetting',
|
|
|
- components: { BTable, setAnnualWaterRight, SelectTree },
|
|
|
|
|
|
|
+ components: { BTable, setAnnualWaterRight, SelectTree, setAnnualWaterRightAdd },
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
form: {
|
|
form: {
|
|
@@ -154,6 +207,7 @@ export default {
|
|
|
areaId: '',
|
|
areaId: '',
|
|
|
loading: false,
|
|
loading: false,
|
|
|
associationManageShow: false,
|
|
associationManageShow: false,
|
|
|
|
|
+ addAssociationManageShow: false,
|
|
|
priceConfigVal: '',
|
|
priceConfigVal: '',
|
|
|
priceconfigWaterchargingtype: '',
|
|
priceconfigWaterchargingtype: '',
|
|
|
priceconfigElectricitychargingtype: '',
|
|
priceconfigElectricitychargingtype: '',
|
|
@@ -172,19 +226,22 @@ export default {
|
|
|
value: '0',
|
|
value: '0',
|
|
|
label: '恒定水价',
|
|
label: '恒定水价',
|
|
|
type: Waterchargingtype
|
|
type: Waterchargingtype
|
|
|
- }, {
|
|
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
value: '1',
|
|
value: '1',
|
|
|
label: '阶梯水价',
|
|
label: '阶梯水价',
|
|
|
type: Waterchargingtype
|
|
type: Waterchargingtype
|
|
|
- }, {
|
|
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
value: '2',
|
|
value: '2',
|
|
|
label: '恒定电价',
|
|
label: '恒定电价',
|
|
|
type: Electricitychargingtype
|
|
type: Electricitychargingtype
|
|
|
- }, {
|
|
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
value: '3',
|
|
value: '3',
|
|
|
label: '阶梯电价',
|
|
label: '阶梯电价',
|
|
|
type: Electricitychargingtype
|
|
type: Electricitychargingtype
|
|
|
- },
|
|
|
|
|
|
|
+ }
|
|
|
],
|
|
],
|
|
|
columns: [
|
|
columns: [
|
|
|
{
|
|
{
|
|
@@ -210,27 +267,32 @@ export default {
|
|
|
prop: 'waterPriceSteps',
|
|
prop: 'waterPriceSteps',
|
|
|
customRender: 'priceYield',
|
|
customRender: 'priceYield',
|
|
|
align: 'center'
|
|
align: 'center'
|
|
|
- }, {
|
|
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
label: '水价(元/m³)',
|
|
label: '水价(元/m³)',
|
|
|
prop: 'waterPriceSteps',
|
|
prop: 'waterPriceSteps',
|
|
|
customRender: 'averageWaterPrice',
|
|
customRender: 'averageWaterPrice',
|
|
|
align: 'center'
|
|
align: 'center'
|
|
|
- }, {
|
|
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
label: '是否阶梯电价',
|
|
label: '是否阶梯电价',
|
|
|
prop: 'priceconfigElectricitychargingtype',
|
|
prop: 'priceconfigElectricitychargingtype',
|
|
|
customRender: 'stepPriceOrNot',
|
|
customRender: 'stepPriceOrNot',
|
|
|
align: 'center'
|
|
align: 'center'
|
|
|
- }, {
|
|
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
label: '电价名称',
|
|
label: '电价名称',
|
|
|
prop: 'elecPriceSteps',
|
|
prop: 'elecPriceSteps',
|
|
|
customRender: 'elecPriceName',
|
|
customRender: 'elecPriceName',
|
|
|
align: 'center'
|
|
align: 'center'
|
|
|
- }, {
|
|
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
label: '电量(度)',
|
|
label: '电量(度)',
|
|
|
prop: 'elecPriceSteps',
|
|
prop: 'elecPriceSteps',
|
|
|
customRender: 'elecPriceSteps',
|
|
customRender: 'elecPriceSteps',
|
|
|
align: 'center'
|
|
align: 'center'
|
|
|
- }, {
|
|
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
label: '电价(元/度)',
|
|
label: '电价(元/度)',
|
|
|
prop: 'elecPriceSteps',
|
|
prop: 'elecPriceSteps',
|
|
|
customRender: 'averageElecPriceSteps',
|
|
customRender: 'averageElecPriceSteps',
|
|
@@ -245,72 +307,81 @@ export default {
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
mounted() {
|
|
mounted() {
|
|
|
- this.getWaterrightList()
|
|
|
|
|
|
|
+ this.getWaterrightList();
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+ changeNum(num) {
|
|
|
|
|
+ return num == null ? '∞' : num
|
|
|
|
|
+ },
|
|
|
|
|
+ addAssociation() {
|
|
|
|
|
+ this.addAssociationManageShow = true
|
|
|
|
|
+ },
|
|
|
editAssociation(row) {
|
|
editAssociation(row) {
|
|
|
- this.editRow = row
|
|
|
|
|
- this.associationManageShow = true
|
|
|
|
|
|
|
+ this.editRow = row;
|
|
|
|
|
+ this.associationManageShow = true;
|
|
|
},
|
|
},
|
|
|
async getWaterrightList() {
|
|
async getWaterrightList() {
|
|
|
if (!this.areaId) {
|
|
if (!this.areaId) {
|
|
|
- const res = await getTree()
|
|
|
|
|
- this.treeData = res?.data
|
|
|
|
|
|
|
+ const res = await getTree();
|
|
|
|
|
+ this.treeData = res?.data;
|
|
|
this.treeData.unshift({
|
|
this.treeData.unshift({
|
|
|
|
|
+ id: '',
|
|
|
cusareaId: '',
|
|
cusareaId: '',
|
|
|
- cusareaName: '行政区域(全国)'
|
|
|
|
|
|
|
+ cusareaName: '全部'
|
|
|
})
|
|
})
|
|
|
this.areaId = this.treeData[0].cusareaId
|
|
this.areaId = this.treeData[0].cusareaId
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
handlerClick(value) {
|
|
handlerClick(value) {
|
|
|
- this.areaId = value?.cusareaId
|
|
|
|
|
|
|
+ this.areaId = value?.cusareaId;
|
|
|
},
|
|
},
|
|
|
handlerClearEdit() {
|
|
handlerClearEdit() {
|
|
|
this.editRow = {
|
|
this.editRow = {
|
|
|
cusareaName: ''
|
|
cusareaName: ''
|
|
|
- }
|
|
|
|
|
- this.handleSearch()
|
|
|
|
|
|
|
+ };
|
|
|
|
|
+ this.handleSearch();
|
|
|
},
|
|
},
|
|
|
handleChange(value) {
|
|
handleChange(value) {
|
|
|
switch (value) {
|
|
switch (value) {
|
|
|
case '0':
|
|
case '0':
|
|
|
- this.priceconfigWaterchargingtype = 0
|
|
|
|
|
- this.priceconfigElectricitychargingtype = ''
|
|
|
|
|
- break
|
|
|
|
|
|
|
+ this.priceconfigWaterchargingtype = 0;
|
|
|
|
|
+ this.priceconfigElectricitychargingtype = '';
|
|
|
|
|
+ break;
|
|
|
case '1':
|
|
case '1':
|
|
|
- this.priceconfigWaterchargingtype = 1
|
|
|
|
|
- this.priceconfigElectricitychargingtype = ''
|
|
|
|
|
- break
|
|
|
|
|
|
|
+ this.priceconfigWaterchargingtype = 1;
|
|
|
|
|
+ this.priceconfigElectricitychargingtype = '';
|
|
|
|
|
+ break;
|
|
|
case '2':
|
|
case '2':
|
|
|
- this.priceconfigWaterchargingtype = ''
|
|
|
|
|
- this.priceconfigElectricitychargingtype = 0
|
|
|
|
|
- break
|
|
|
|
|
|
|
+ this.priceconfigWaterchargingtype = '';
|
|
|
|
|
+ this.priceconfigElectricitychargingtype = 0;
|
|
|
|
|
+ break;
|
|
|
case '3':
|
|
case '3':
|
|
|
- this.priceconfigWaterchargingtype = ''
|
|
|
|
|
- this.priceconfigElectricitychargingtype = 1
|
|
|
|
|
- break
|
|
|
|
|
|
|
+ this.priceconfigWaterchargingtype = '';
|
|
|
|
|
+ this.priceconfigElectricitychargingtype = 1;
|
|
|
|
|
+ break;
|
|
|
default:
|
|
default:
|
|
|
- this.priceconfigWaterchargingtype = ''
|
|
|
|
|
- this.priceconfigElectricitychargingtype = ''
|
|
|
|
|
|
|
+ this.priceconfigWaterchargingtype = '';
|
|
|
|
|
+ this.priceconfigElectricitychargingtype = '';
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
loadData(parameter) {
|
|
loadData(parameter) {
|
|
|
const params = {
|
|
const params = {
|
|
|
areaId: this.areaId,
|
|
areaId: this.areaId,
|
|
|
priceconfigWaterchargingtype: this.priceconfigWaterchargingtype,
|
|
priceconfigWaterchargingtype: this.priceconfigWaterchargingtype,
|
|
|
- priceconfigElectricitychargingtype: this.priceconfigElectricitychargingtype
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ priceconfigElectricitychargingtype:
|
|
|
|
|
+ this.priceconfigElectricitychargingtype
|
|
|
|
|
+ };
|
|
|
const payload = omit(assign({}, parameter, params), []);
|
|
const payload = omit(assign({}, parameter, params), []);
|
|
|
- return getPriceList(payload)
|
|
|
|
|
|
|
+ return getPriceList(payload);
|
|
|
},
|
|
},
|
|
|
getTableData() {
|
|
getTableData() {
|
|
|
const params = {
|
|
const params = {
|
|
|
areaId: this.areaId,
|
|
areaId: this.areaId,
|
|
|
priceconfigWaterchargingtype: this.priceconfigWaterchargingtype,
|
|
priceconfigWaterchargingtype: this.priceconfigWaterchargingtype,
|
|
|
- priceconfigElectricitychargingtype: this.priceconfigElectricitychargingtype
|
|
|
|
|
- }
|
|
|
|
|
- return getPriceList(params)
|
|
|
|
|
|
|
+ priceconfigElectricitychargingtype:
|
|
|
|
|
+ this.priceconfigElectricitychargingtype
|
|
|
|
|
+ };
|
|
|
|
|
+ return getPriceList(params);
|
|
|
},
|
|
},
|
|
|
handleSearch() {
|
|
handleSearch() {
|
|
|
this.$refs.tableRef.refresh(true);
|
|
this.$refs.tableRef.refresh(true);
|
|
@@ -319,40 +390,38 @@ export default {
|
|
|
this.$refs.tableRef.refresh(false);
|
|
this.$refs.tableRef.refresh(false);
|
|
|
},
|
|
},
|
|
|
goDetail(row) {
|
|
goDetail(row) {
|
|
|
- this.$refs.sourceCodeDetail.open(row.tarcecodeapplyBatchno)
|
|
|
|
|
|
|
+ this.$refs.sourceCodeDetail.open(row.tarcecodeapplyBatchno);
|
|
|
},
|
|
},
|
|
|
deleteHandler(row) {
|
|
deleteHandler(row) {
|
|
|
- const { priceconfigId } = row
|
|
|
|
|
- this.$modal
|
|
|
|
|
- .confirm(`是否确认删除`)
|
|
|
|
|
- .then(() => {
|
|
|
|
|
|
|
+ const { priceconfigId } = row;
|
|
|
|
|
+ this.$modal.confirm(`是否确认删除`).then(() => {
|
|
|
deletePrice({
|
|
deletePrice({
|
|
|
priceconfigIds: priceconfigId
|
|
priceconfigIds: priceconfigId
|
|
|
}).then(() => {
|
|
}).then(() => {
|
|
|
- Message({ message: "删除成功", type: 'success' });
|
|
|
|
|
- this.handlerChange()
|
|
|
|
|
- })
|
|
|
|
|
- })
|
|
|
|
|
|
|
+ Message({ message: '删除成功', type: 'success' });
|
|
|
|
|
+ this.handlerChange();
|
|
|
|
|
+ });
|
|
|
|
|
+ });
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|
|
|
-.el-row-container{
|
|
|
|
|
|
|
+.el-row-container {
|
|
|
height: 100%;
|
|
height: 100%;
|
|
|
min-height: 100%;
|
|
min-height: 100%;
|
|
|
}
|
|
}
|
|
|
-.pricestepNum{
|
|
|
|
|
- border-bottom: 1px solid #EBEEF5;
|
|
|
|
|
|
|
+.pricestepNum {
|
|
|
|
|
+ border-bottom: 1px solid #ebeef5;
|
|
|
}
|
|
}
|
|
|
-::v-deep .el-table__row{
|
|
|
|
|
- .el-table__cell{
|
|
|
|
|
|
|
+::v-deep .el-table__row {
|
|
|
|
|
+ .el-table__cell {
|
|
|
padding: 0;
|
|
padding: 0;
|
|
|
}
|
|
}
|
|
|
- .cell{
|
|
|
|
|
|
|
+ .cell {
|
|
|
padding: 0;
|
|
padding: 0;
|
|
|
- line-height:44px;
|
|
|
|
|
|
|
+ line-height: 44px;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
.elrow-main__col-top {
|
|
.elrow-main__col-top {
|