0618469c by 任超

feat:登薄日志

1 parent e1d1004e
1 ###
2 # @Description:
3 # @Autor: renchao
4 # @LastEditTime: 2023-03-02 15:44:12
5 ###
1 # just a flag 6 # just a flag
2 ENV = 'development' 7 ENV = 'development'
3 NODE_ENV=development 8 NODE_ENV=development
......
1 /* 1 /*
2 * @Description: 登薄日志 2 * @Description: 登薄日志
3 * @Autor: renchao 3 * @Autor: renchao
4 * @LastEditTime: 2023-03-01 17:09:38 4 * @LastEditTime: 2023-03-02 13:45:53
5 */ 5 */
6 /* 引入请求文件 */ 6 /* 引入请求文件 */
7 import request from '@/utils/request' 7 import request from '@/utils/request'
8 /* 引入配置文件 */ 8 /* 引入配置文件 */
9 import SERVER from './config' 9 import SERVER from './config'
10 const urlHeader = SERVER.SERVERAPI + '/rest/sjsb/RecordLog/' 10 const urlHeader = SERVER.SERVERAPI + '/rest/sjsb/RecordLog/'
11
12 /** 11 /**
13 * @description: 登簿日志分页 12 * @description: 登簿日志分页
14 * @author: renchao 13 * @author: renchao
...@@ -35,4 +34,29 @@ export function getDetail (dbBsm) { ...@@ -35,4 +34,29 @@ export function getDetail (dbBsm) {
35 } 34 }
36 }) 35 })
37 } 36 }
38 37 /**
38 * @description: 详情页面编辑
39 * @param {*} data
40 * @author: renchao
41 */
42 export function edit (data) {
43 return request({
44 url: urlHeader + 'edit',
45 method: 'post',
46 data
47 })
48 }
49 /**
50 * @description: 登薄日志重新生成报文
51 * @param {*} dbBsm
52 * @author: renchao
53 */
54 export function regenerateDbXml (dbBsm) {
55 return request({
56 url: urlHeader + 'regenerateDbXml',
57 method: 'get',
58 params: {
59 dbBsm: dbBsm
60 }
61 })
62 }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
2 <el-dialog :close-on-click-modal="false" top="0" @close="closeDialog" custom-class="dialogBox editDialogBox mainCenter" 2 <el-dialog :close-on-click-modal="false" top="0" @close="closeDialog" custom-class="dialogBox editDialogBox mainCenter"
3 :visible.sync="dialogVisible" width="88%"> 3 :visible.sync="dialogVisible" width="88%">
4 <div slot="title" class="dialog_title" ref="dialogTitle"> 4 <div slot="title" class="dialog_title" ref="dialogTitle">
5 {{ title || '标题' }} 5 {{ title || '详情' }}
6 </div> 6 </div>
7 <div class="regularHeight"> 7 <div class="regularHeight">
8 <div class="editDialogBox-box"> 8 <div class="editDialogBox-box">
...@@ -265,17 +265,32 @@ export default { ...@@ -265,17 +265,32 @@ export default {
265 * @description: 重新上报 265 * @description: 重新上报
266 * @author: renchao 266 * @author: renchao
267 */ 267 */
268 handleResubmit: _.debounce(function () { 268 handleResubmit () {
269 restartGenerateXml(this.dataReport.bsmSjsb || this.dataReport.bsmReport).then((res) => { 269 let _this = this
270 if (res.code == 200) { 270 this.$confirm('重新生成报文,是否上报省厅?', '提示', {
271 this.resultInfo = res.message 271 confirmButtonText: '确定',
272 this.$message({ 272 cancelButtonText: '取消',
273 message: '生成成功', 273 type: 'warning'
274 type: 'success' 274 }).then(() => {
275 }) 275 createXml()
276 } 276 }).catch(() => {
277 this.$message({
278 type: 'info',
279 message: '已取消删除'
280 })
277 }) 281 })
278 }, 500) 282 function createXml () {
283 restartGenerateXml(_this.dataReport.bsmSjsb || _this.dataReport.bsmReport).then((res) => {
284 if (res.code == 200) {
285 _this.resultInfo = res.message
286 _this.$message({
287 message: '上报成功',
288 type: 'success'
289 })
290 }
291 })
292 }
293 }
279 } 294 }
280 } 295 }
281 </script> 296 </script>
......
1 // cover some element-ui styles 1 // cover some element-ui styles
2
3 .el-breadcrumb__inner, 2 .el-breadcrumb__inner,
4 .el-breadcrumb__inner a { 3 .el-breadcrumb__inner a {
5 font-weight: 400 !important; 4 font-weight: 400 !important;
...@@ -531,29 +530,34 @@ tr:hover { ...@@ -531,29 +530,34 @@ tr:hover {
531 background-color: #031a46; 530 background-color: #031a46;
532 border: 1px solid #5f82c7; 531 border: 1px solid #5f82c7;
533 532
534 .el-message-box__title{ 533 .el-message-box__title {
535 color: white; 534 color: white;
536 } 535 }
537 .el-message-box__content{ 536
537 .el-message-box__content {
538 color: white; 538 color: white;
539 } 539 }
540 } 540 }
541 // 上级菜单 541
542 // 上级菜单
542 .el-cascader__dropdown { 543 .el-cascader__dropdown {
543 background-color: #031a46; 544 background-color: #031a46;
544 border: 1px solid #5f82c7; 545 border: 1px solid #5f82c7;
545 546
546 } 547 }
547 .el-cascader-menu{ 548
549 .el-cascader-menu {
548 color: white; 550 color: white;
549 } 551 }
550 .el-radio 552
551 { 553 .el-radio {
552 .el-cascader-menu:hover{ 554 .el-cascader-menu:hover {
553 color: white; 555 color: white;
554 } 556 }
555 } 557 }
556 .el-cascader-node:not(.is-disabled):hover, .el-cascader-node:not(.is-disabled):focus { 558
559 .el-cascader-node:not(.is-disabled):hover,
560 .el-cascader-node:not(.is-disabled):focus {
557 background: #F5F7FA; 561 background: #F5F7FA;
558 background-image: initial; 562 background-image: initial;
559 background-position-x: initial; 563 background-position-x: initial;
...@@ -565,4 +569,4 @@ tr:hover { ...@@ -565,4 +569,4 @@ tr:hover {
565 background-origin: initial; 569 background-origin: initial;
566 background-clip: initial; 570 background-clip: initial;
567 background-color: rgb(80, 142, 235); 571 background-color: rgb(80, 142, 235);
568 } 572 }
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -259,4 +259,30 @@ function openDownloadDialog (url, saveName) { ...@@ -259,4 +259,30 @@ function openDownloadDialog (url, saveName) {
259 event.initMouseEvent('click', true, false, window, 0, 0, 0, 0, 0, false, false, false, false, 0, null); 259 event.initMouseEvent('click', true, false, window, 0, 0, 0, 0, 0, false, false, false, false, 0, null);
260 } 260 }
261 aLink.dispatchEvent(event); 261 aLink.dispatchEvent(event);
262 }
263
264
265 function judgeObjectComplete (ObjectValue) {
266 let flag = new Boolean()
267 flag = true
268 for (let key in ObjectValue) {
269 if (ObjectValue[key]) { } else {
270 flag = false
271 }
272 }
273 if (!flag) {
274 return false
275 } else {
276 return true
277 }
278 }
279 export function judgeListComplete (list) {
280 let isNotComplete = list.findIndex(item => {
281 return judgeObjectComplete(item) === false
282 })
283 if (isNotComplete > -1) {
284 return false
285 } else {
286 return true
287 }
262 } 288 }
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
9 <el-input class="username" v-model="user.account" placeholder="请输入用户名"></el-input> 9 <el-input class="username" v-model="user.account" placeholder="请输入用户名"></el-input>
10 </el-form-item> 10 </el-form-item>
11 <el-form-item prop="password"> 11 <el-form-item prop="password">
12 <el-input type="password" class="password" @keyup.native="login('user')" v-model="user.password" 12 <el-input type="password" class="password" @keyup.enter.native="login('user')" v-model="user.password"
13 placeholder="请输入密码"></el-input> 13 placeholder="请输入密码"></el-input>
14 </el-form-item> 14 </el-form-item>
15 <el-form-item class="login-btn"> 15 <el-form-item class="login-btn">
......
1 <!--
2 功能:结果
3 作者:calliope
4 -->
5 <template>
6 <div class='result'>
7 <p>响应xml</p>
8 <el-input type="textarea" disabled :rows="6" class="resulttext" placeholder="响应xml" v-model="REPMSGXML">
9 </el-input>
10 <p>错误信息</p>
11 <el-input type="textarea" disabled :rows="6" class="resulttext" placeholder="错误信息" v-model="ERRORINFO">
12 </el-input>
13 </div>
14 </template>
15 <script>
16 import { getReceiveDataReportResult } from "@/api/dataReport.js";
17 export default {
18 components: {},
19 props: {
20 formData: {
21 type: Object,
22 default: {}
23 }
24 },
25 data () {
26 return {
27 REPMSGXML: '',
28 ERRORINFO: '',
29 }
30 },
31 created () {
32 getReceiveDataReportResult(this.formData.bsmReport).then(res => {
33 let data = res.result
34 this.REPMSGXML = data.REPMSGXML
35 this.ERRORINFO = data.ERRORINFO
36 })
37 }
38 }
39 </script>
40 <style scoped lang='scss'>
41 @import '~@/styles/public.scss';
42
43 .result {
44 padding: 15px;
45
46 p {
47 color: #ffffff;
48 line-height: 26px;
49 font-size: 18px;
50 }
51
52 /deep/.el-textarea__inner {
53 min-height: 27vh !important;
54 background-color: #08346F !important;
55 color: #ffffff;
56 border: none !important;
57 }
58
59 }
60 </style>
...@@ -32,7 +32,7 @@ class data { ...@@ -32,7 +32,7 @@ class data {
32 }, 32 },
33 }, 33 },
34 { 34 {
35 prop: 'ywh', 35 prop: 'YWH',
36 label: '业务号', 36 label: '业务号',
37 render: (h, scope) => { 37 render: (h, scope) => {
38 return ( 38 return (
...@@ -41,7 +41,7 @@ class data { ...@@ -41,7 +41,7 @@ class data {
41 } 41 }
42 }, 42 },
43 { 43 {
44 prop: 'djlx', 44 prop: 'DJLX',
45 label: '登记类型', 45 label: '登记类型',
46 render: (h, scope) => { 46 render: (h, scope) => {
47 return ( 47 return (
...@@ -59,7 +59,7 @@ class data { ...@@ -59,7 +59,7 @@ class data {
59 } 59 }
60 }, 60 },
61 { 61 {
62 prop: 'qllx', 62 prop: 'QLLX',
63 label: '权利类型', 63 label: '权利类型',
64 render: (h, scope) => { 64 render: (h, scope) => {
65 return ( 65 return (
...@@ -77,7 +77,7 @@ class data { ...@@ -77,7 +77,7 @@ class data {
77 } 77 }
78 }, 78 },
79 { 79 {
80 prop: 'bdcdyh', 80 prop: 'BDCDYH',
81 label: '不动产单元号', 81 label: '不动产单元号',
82 render: (h, scope) => { 82 render: (h, scope) => {
83 return ( 83 return (
...@@ -86,7 +86,7 @@ class data { ...@@ -86,7 +86,7 @@ class data {
86 } 86 }
87 }, 87 },
88 { 88 {
89 prop: 'zszmh', 89 prop: 'ZSZMH',
90 label: '证书证明号', 90 label: '证书证明号',
91 render: (h, scope) => { 91 render: (h, scope) => {
92 return ( 92 return (
...@@ -95,7 +95,7 @@ class data { ...@@ -95,7 +95,7 @@ class data {
95 } 95 }
96 }, 96 },
97 { 97 {
98 prop: 'sfsb', 98 prop: 'SFSB',
99 label: '是否上报', 99 label: '是否上报',
100 render: (h, scope) => { 100 render: (h, scope) => {
101 return ( 101 return (
...@@ -113,14 +113,14 @@ class data { ...@@ -113,14 +113,14 @@ class data {
113 } 113 }
114 }, 114 },
115 { 115 {
116 prop: 'bwid', 116 prop: 'BWID',
117 label: '报文ID', 117 label: '报文ID',
118 render: (h, scope) => { 118 render: (h, scope) => {
119 return ( 119 return (
120 <el-input value={scope.row[scope.column.property]} onInput={(val) => { scope.row[scope.column.property] = val }}></el-input> 120 <el-input value={scope.row[scope.column.property]} onInput={(val) => { scope.row[scope.column.property] = val }}></el-input>
121 ) 121 )
122 } 122 }
123 }, 123 }
124 ] 124 ]
125 } 125 }
126 } 126 }
...@@ -131,3 +131,4 @@ export { ...@@ -131,3 +131,4 @@ export {
131 } 131 }
132 132
133 133
134
......
...@@ -31,7 +31,7 @@ class data { ...@@ -31,7 +31,7 @@ class data {
31 }, 31 },
32 }, 32 },
33 { 33 {
34 prop: 'ywh', 34 prop: 'YWH',
35 label: '业务号', 35 label: '业务号',
36 render: (h, scope) => { 36 render: (h, scope) => {
37 return ( 37 return (
...@@ -40,7 +40,7 @@ class data { ...@@ -40,7 +40,7 @@ class data {
40 } 40 }
41 }, 41 },
42 { 42 {
43 prop: 'bdcdyh', 43 prop: 'BDCDYH',
44 label: '不动产单元号', 44 label: '不动产单元号',
45 render: (h, scope) => { 45 render: (h, scope) => {
46 return ( 46 return (
...@@ -49,7 +49,7 @@ class data { ...@@ -49,7 +49,7 @@ class data {
49 } 49 }
50 }, 50 },
51 { 51 {
52 prop: 'bwid', 52 prop: 'BWID',
53 label: '报文ID', 53 label: '报文ID',
54 render: (h, scope) => { 54 render: (h, scope) => {
55 return ( 55 return (
...@@ -67,3 +67,4 @@ export { ...@@ -67,3 +67,4 @@ export {
67 } 67 }
68 68
69 69
70
......