定值单识别展示

This commit is contained in:
zzyuan 2025-10-29 13:16:07 +08:00
parent e3f954f275
commit 3427938124
2 changed files with 68 additions and 50 deletions

View File

@ -86,7 +86,7 @@ export function editProdectionApi(data) {
export function getProdectionByIdApi(data) {
return request({
url: '/protection/protection_manage/protectionOrder/listById',
url: '/protection/protection_manage/protectionOrder/detail',
method: 'get',
headers: {
//"merchant-id":"378915229716713472",

View File

@ -113,26 +113,55 @@
</div>
</el-dialog>
<!-- 识别解析结果 -->
<el-dialog :title="titleView+''" :visible.sync="openView" width="700px" append-to-body>
<el-tabs v-model="activeName" @tab-click="handleTabClick">
<!-- 基础设置 -->
<el-tab-pane label="" name="baseSetting" style="height: 400px;">
<el-form label-width="150px">
<table>
<tr>
<td colspan="5">阜阳电网继电保护装置整定值通知书</td>
</tr>
<tr>
<td>不平衡保护CT一次值</td>
<td>定值区号</td>
<td>被保护设备</td>
<td>不平衡保护CT二次值</td>
<td>PT一次值千伏</td>
</tr>
</table>
</el-form>
</el-tab-pane>
</el-tabs>
<el-dialog :title="titleView+''" :visible.sync="openView" width="800px" append-to-body>
<table style="width: 100%;" v-if="headList.length>0">
<tr v-if="headList[0].attributeKey=='通知书名称'">
<th colspan="5" style="height: 40px;">{{ headList[0].attributeValue }}</th>
</tr>
<tr>
<td colspan="2">{{headList[1].attributeKey}}: {{ headList[1].attributeValue }}</td>
<td>{{headList[2].attributeKey}}: {{ headList[2].attributeValue }}</td>
<td colspan="2">{{headList[3].attributeKey}}: {{ headList[3].attributeValue }}</td>
</tr>
<tr>
<td>{{headList[4].attributeKey}}</td>
<td>{{headList[5].attributeKey}}</td>
<td>{{headList[6].attributeKey}}</td>
<td>{{headList[7].attributeKey}}</td>
<td>{{headList[8].attributeKey}}</td>
</tr>
<tr>
<td>{{headList[4].attributeValue}}</td>
<td>{{headList[5].attributeValue}}</td>
<td>{{headList[6].attributeValue}}</td>
<td>{{headList[7].attributeValue}}</td>
<td>{{headList[8].attributeValue}}</td>
</tr>
</table>
<table style="width: 100%;" v-if="bhdzList.length>0">
<tr>
<th colspan="5" style="height: 40px;">保护定值</th>
</tr>
<tr v-for="(item,index) in bhdzList" :key="index">
<td v-for="(subText,subIndex) in item.split('@')" :key="subIndex">{{subText}}</td>
</tr>
</table>
<table style="width: 100%;" v-if="kzzList.length>0">
<tr>
<th colspan="5" style="height: 40px;">控制字</th>
</tr>
<tr v-for="(item,index) in kzzList" :key="index">
<td v-for="(subText,subIndex) in item.split('@')" :key="subIndex">{{subText}}</td>
</tr>
</table>
<table style="width: 100%;" v-if="sbcsList.length>0">
<tr>
<th colspan="5" style="height: 40px;">设备参数</th>
</tr>
<tr v-for="(item,index) in sbcsList" :key="index">
<td v-for="(subText,subIndex) in item.split('@')" :key="subIndex">{{subText}}</td>
</tr>
</table>
</el-dialog>
</div>
</template>
@ -183,39 +212,22 @@
pageNum: 1,
pageSize: 10,
keyWord:null,
},
activeName:"baseSetting",
deviceData:{},
},
//
baseForm: {
protectionId:""
},
//
baseFormRules: {
substationName: [
{ required: true, message: "变电站名称不能为空", trigger: "blur" }
]
},
fileList: [],//
checkUrlList: [],//
checkUrlNameList: [],//
dialogVisible:false,//
dialogImageUrl:"",//
//
upload: {
//
open: false,
//
title: '',
//
isUploading: false,
//
updateSupport: 0,
//
headers: { Authorization: 'Bearer ' + getToken() },
//
url: process.env.VUE_APP_BASE_API + '/system/user/importData',
},
//
headList:[],
bhdzList:[],
kzzList:[],
sbcsList:[],
};
},
mounted(){
@ -287,6 +299,7 @@
// this.checkUrlList=[this.baseForm.imgUrl]
// this.checkUrlNameList=[this.baseForm.imgName]
},
//
handleView(row) {
this.reset();
this.openView = true;
@ -294,12 +307,13 @@
this.titleView = "查看";
getProdectionByIdApi({protectionId:obj.protectionId}).then(response => {
console.log("getProdectionByIdApi",response);
this.headList = response.head||[];
this.bhdzList = response.bhdz||[];
this.kzzList = response.kzz||[];
this.sbcsList = response.sbcs||[];
});
},
handleTabClick(tab, event) {
console.log(tab, event);
},
/** 提交按钮 */
/** 提交识别按钮 */
submitForm: function() {
console.log("this.fileList",this.fileList);
console.log("this.checkUrlList",this.checkUrlList);
@ -336,6 +350,7 @@
});
}).catch(() => {});
},
//
formatDate(date) {
// YYYY-MM-DD
const year = date.getFullYear();
@ -343,7 +358,6 @@
const day = String(date.getDate()).padStart(2, '0');
return `${year}-${month}-${day}`;
},
//
handleSelectionChange(selection) {
this.protectionIds = selection.map(item => item.protectionId)
@ -426,5 +440,9 @@
text-align: center; vertical-align: middle;
border-collapse: collapse; /* 合并表格边框 */
border: 1px solid black; /* 设置边框颜色和宽度 */
padding: 4px;
}
</style>