|
@@ -85,6 +85,19 @@
|
|
|
</el-table-column>
|
|
|
|
|
|
<el-table-column
|
|
|
+ align="center"
|
|
|
+ prop="contractNumber"
|
|
|
+ label="合同功率曲线数"
|
|
|
+ min-width="100"
|
|
|
+ >
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-button @click="ONcurve(scope.row)" type="text" size="small">{{
|
|
|
+ scope.row.contractNumber
|
|
|
+ }}</el-button>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+
|
|
|
+ <el-table-column
|
|
|
prop="provinceName"
|
|
|
align="center"
|
|
|
min-width="100"
|
|
@@ -122,7 +135,7 @@
|
|
|
align="center"
|
|
|
fixed="right"
|
|
|
label="操作"
|
|
|
- width="200"
|
|
|
+ width="220"
|
|
|
>
|
|
|
<template slot-scope="scope">
|
|
|
<el-button @click="compile(scope.row)" type="text" size="small"
|
|
@@ -148,6 +161,14 @@
|
|
|
>
|
|
|
<el-button
|
|
|
style="color: #f00"
|
|
|
+ @click="batch(scope.row)"
|
|
|
+ type="text"
|
|
|
+ size="small"
|
|
|
+ >批量更改</el-button
|
|
|
+ >
|
|
|
+
|
|
|
+ <el-button
|
|
|
+ style="color: #f00"
|
|
|
@click="deleted(scope.row)"
|
|
|
type="text"
|
|
|
size="small"
|
|
@@ -345,6 +366,83 @@
|
|
|
@handleClose="handleClose"
|
|
|
@onSubmit="onSubmit"
|
|
|
></windsitetolead>
|
|
|
+
|
|
|
+ <!-- 功率曲线 -->
|
|
|
+
|
|
|
+ <el-dialog
|
|
|
+ title="批量修改"
|
|
|
+ :visible.sync="drawer"
|
|
|
+ width="85%"
|
|
|
+ :before-close="batchhandleClose"
|
|
|
+ >
|
|
|
+ <div
|
|
|
+ class="batch-processing"
|
|
|
+ v-for="(item, index) in batchList"
|
|
|
+ :key="index"
|
|
|
+ >
|
|
|
+ <p>
|
|
|
+ 风机名称:
|
|
|
+ <span>
|
|
|
+ <el-input v-model="item.engineName" size="small"></el-input
|
|
|
+ ></span>
|
|
|
+ </p>
|
|
|
+ <p>
|
|
|
+ 海拔高度:
|
|
|
+ <span>
|
|
|
+ <el-input v-model="item.hubHeight" size="small"></el-input
|
|
|
+ ></span>
|
|
|
+ </p>
|
|
|
+ <p>
|
|
|
+ 额定容量:
|
|
|
+ <span>
|
|
|
+ <el-input v-model="item.ratedCapacity" size="small"></el-input
|
|
|
+ ></span>
|
|
|
+ </p>
|
|
|
+ <p>
|
|
|
+ 经度:
|
|
|
+ <span>
|
|
|
+ <el-input v-model="item.longitude" size="small"></el-input
|
|
|
+ ></span>
|
|
|
+ </p>
|
|
|
+ <p>
|
|
|
+ 维度:
|
|
|
+ <span>
|
|
|
+ <el-input v-model="item.latitude" size="small"></el-input
|
|
|
+ ></span>
|
|
|
+ </p>
|
|
|
+ </div>
|
|
|
+ <div style="height: 30px">
|
|
|
+ <el-button class="batch-submit" size="small" @click="ONbatch"
|
|
|
+ >提交</el-button
|
|
|
+ >
|
|
|
+ </div>
|
|
|
+ </el-dialog>
|
|
|
+
|
|
|
+ <el-dialog
|
|
|
+ title="合同功率曲线"
|
|
|
+ :visible.sync="curve"
|
|
|
+ :before-close="GBhandleClose"
|
|
|
+ width="40%"
|
|
|
+ >
|
|
|
+ <el-table :data="curvelist" style="width: 100%">
|
|
|
+ <el-table-column type="index" width="50"> </el-table-column>
|
|
|
+
|
|
|
+ <el-table-column prop="machineTypeCode" label="机型名称" width="">
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="createTime" label="上传时间" width="">
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column fixed="right" label="操作" width="150">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-button @click="handleClick(scope.row)" type="text" size="small"
|
|
|
+ >删除</el-button
|
|
|
+ >
|
|
|
+ <el-button @click="XZClick(scope.row)" type="text" size="small"
|
|
|
+ >下载</el-button
|
|
|
+ >
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ </el-table>
|
|
|
+ </el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -364,6 +462,10 @@ import {
|
|
|
windFieldDto,
|
|
|
getAllTemplate,
|
|
|
delWindFieldResource,
|
|
|
+ getWindEngineGroupListByFieldCode,
|
|
|
+ bathUpdateWindEngineGroup,
|
|
|
+ getWindFieldContractByFieldCode,
|
|
|
+ delWindFieldContractById,
|
|
|
} from "@/api/ledger.js";
|
|
|
import selecttree from "../../components/selecttree";
|
|
|
import WindsiteMessage from "./component/windsiteMessage.vue";
|
|
@@ -440,9 +542,9 @@ export default {
|
|
|
{ required: true, message: "请输入纬度", trigger: "blur" },
|
|
|
{ validator: this.validateNumber, trigger: "blur" },
|
|
|
],
|
|
|
- anemometerTowerRelationDtos: [
|
|
|
- { required: true, message: "请选择测风塔", trigger: "change" },
|
|
|
- ],
|
|
|
+ // anemometerTowerRelationDtos: [
|
|
|
+ // { required: true, message: "请选择测风塔", trigger: "change" },
|
|
|
+ // ],
|
|
|
},
|
|
|
provinceNameOptions: [],
|
|
|
cityNameOptions: [],
|
|
@@ -471,6 +573,15 @@ export default {
|
|
|
isEdit: false,
|
|
|
title: "新增",
|
|
|
detail: {},
|
|
|
+ drawer: false,
|
|
|
+ batchVal1: "",
|
|
|
+ batchVal2: "",
|
|
|
+ batchVal3: "",
|
|
|
+ batchVal4: "",
|
|
|
+ batchVal5: "",
|
|
|
+ batchList: [],
|
|
|
+ curve: false,
|
|
|
+ curvelist: [],
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
@@ -692,7 +803,40 @@ export default {
|
|
|
this.anemometerdialog = true;
|
|
|
});
|
|
|
},
|
|
|
-
|
|
|
+ // 合同曲线数
|
|
|
+ ONcurve(row) {
|
|
|
+ this.curve = true;
|
|
|
+ getWindFieldContractByFieldCode({ fieldCode: row.fieldCode }).then(
|
|
|
+ (res) => {
|
|
|
+ this.curvelist = res.data;
|
|
|
+ }
|
|
|
+ );
|
|
|
+ },
|
|
|
+ handleClick(row) {
|
|
|
+ delWindFieldContractById({ windFieldContractId: row.id })
|
|
|
+ .then((res) => {
|
|
|
+ this.$message({
|
|
|
+ message: "删除成功",
|
|
|
+ type: "success",
|
|
|
+ });
|
|
|
+ this.curvelist = this.curvelist.filter((item) => item.id !== row.id);
|
|
|
+ })
|
|
|
+ .catch((error) => {});
|
|
|
+ },
|
|
|
+ // 下载附件
|
|
|
+ XZClick(row) {
|
|
|
+ const link = document.createElement("a");
|
|
|
+ link.href = row.contractSource;
|
|
|
+ link.download = ""; // 可以设置默认下载文件名
|
|
|
+ link.target = "_blank"; // 新窗口打开
|
|
|
+ document.body.appendChild(link);
|
|
|
+ link.click();
|
|
|
+ document.body.removeChild(link);
|
|
|
+ },
|
|
|
+ GBhandleClose() {
|
|
|
+ this.curve = false;
|
|
|
+ this.onSubmit();
|
|
|
+ },
|
|
|
// 编辑
|
|
|
|
|
|
compile(row) {
|
|
@@ -844,6 +988,39 @@ export default {
|
|
|
};
|
|
|
}
|
|
|
},
|
|
|
+ batch(row) {
|
|
|
+ if (row.contractNumber != 0) {
|
|
|
+ getWindEngineGroupListByFieldCode({ fieldCode: row.fieldCode }).then(
|
|
|
+ (res) => {
|
|
|
+ this.batchList = res.data;
|
|
|
+ }
|
|
|
+ );
|
|
|
+ this.drawer = true;
|
|
|
+ } else {
|
|
|
+ this.$message({
|
|
|
+ message: "暂无风机无法批量更改",
|
|
|
+ type: "warning",
|
|
|
+ });
|
|
|
+ }
|
|
|
+ },
|
|
|
+ ONbatch() {
|
|
|
+ bathUpdateWindEngineGroup({
|
|
|
+ windEngineGroupUpdateDtoList: this.batchList,
|
|
|
+ })
|
|
|
+ .then((res) => {
|
|
|
+ this.drawer = false;
|
|
|
+ this.$message({
|
|
|
+ title: "成功",
|
|
|
+ message: "风机组信息更新成功",
|
|
|
+ type: "success",
|
|
|
+ });
|
|
|
+ })
|
|
|
+ .catch((error) => {});
|
|
|
+ },
|
|
|
+ batchhandleClose(done) {
|
|
|
+ this.batchList = [];
|
|
|
+ done();
|
|
|
+ },
|
|
|
},
|
|
|
};
|
|
|
</script>
|
|
@@ -896,4 +1073,23 @@ export default {
|
|
|
height: 40px;
|
|
|
font-size: 14px;
|
|
|
}
|
|
|
+.batch-processing {
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+ margin-bottom: 20px;
|
|
|
+ p {
|
|
|
+ .el-input {
|
|
|
+ width: 200px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+.batch-submit {
|
|
|
+ float: right;
|
|
|
+}
|
|
|
+.batch-name {
|
|
|
+ margin-left: 20px;
|
|
|
+ .el-input {
|
|
|
+ width: 200px;
|
|
|
+ }
|
|
|
+}
|
|
|
</style>
|