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
......
...@@ -2,14 +2,13 @@ ...@@ -2,14 +2,13 @@
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="90%"> 3 :visible.sync="dialogVisible" width="90%">
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">
9 <el-tabs v-model="titleName" type="card"> 9 <el-tabs v-model="titleName" type="card">
10 <el-tab-pane label="登薄详情" name="sjmx"></el-tab-pane> 10 <el-tab-pane label="登薄详情" name="sjmx"></el-tab-pane>
11 <el-tab-pane label="xml报文" name="xml"></el-tab-pane> 11 <el-tab-pane label="xml报文" name="xml"></el-tab-pane>
12 <el-tab-pane label="响应结果" name="xyjg"></el-tab-pane>
13 </el-tabs> 12 </el-tabs>
14 <div class="dialog-from" v-if="titleName == 'sjmx'"> 13 <div class="dialog-from" v-if="titleName == 'sjmx'">
15 <el-row class="dialog-from_header item-content-input"> 14 <el-row class="dialog-from_header item-content-input">
...@@ -23,7 +22,7 @@ ...@@ -23,7 +22,7 @@
23 </el-col> 22 </el-col>
24 <el-col :span="8"> 23 <el-col :span="8">
25 <span>日期:</span> 24 <span>日期:</span>
26 <el-date-picker v-model="accessLog.CREATEDATE" type="date"> 25 <el-date-picker v-model="accessLog.CREATEDATE" value-format="yyyy-MM-dd" type="date">
27 </el-date-picker> 26 </el-date-picker>
28 </el-col> 27 </el-col>
29 </el-row> 28 </el-row>
...@@ -34,146 +33,133 @@ ...@@ -34,146 +33,133 @@
34 </el-input> 33 </el-input>
35 </el-col> 34 </el-col>
36 </el-row> 35 </el-row>
36 <!-- 当日登薄信息记录数 -->
37 <P class="dialog-from_title">当日登薄信息记录数</P> 37 <P class="dialog-from_title">当日登薄信息记录数</P>
38 <div> 38 <div>
39 <el-row class="dialog-from_header item-content-input"> 39 <el-row class="dialog-from_header item-content-input">
40 <el-col :span="4"> 40 <el-col :span="4">
41 <span>总数量:</span> 41 <span>当日登薄量:</span>
42 <el-input v-model="titleForm.totalNum" oninput="if(value.length > 6) value=value.slice(0, 6)" 42 <el-input v-model="registerInfo.TOTALNUM" oninput="if(value.length > 6) value=value.slice(0, 6)"
43 type="number"></el-input> 43 type="number"></el-input>
44 </el-col> 44 </el-col>
45 <el-col :span="4"> 45 <el-col :span="4">
46 <span>首次登记量:</span> 46 <span>首次登记量:</span>
47 <el-input v-model="titleForm.firstReg" oninput="if(value.length > 6) value=value.slice(0, 6)" 47 <el-input v-model="registerInfo.FIRSTREG" oninput="if(value.length > 6) value=value.slice(0, 6)"
48 type="number"></el-input> 48 type="number"></el-input>
49 </el-col> 49 </el-col>
50 <el-col :span="4"> 50 <el-col :span="4">
51 <span>转移登记量:</span> 51 <span>转移登记量:</span>
52 <el-input v-model="titleForm.transferReg" oninput="if(value.length > 6) value=value.slice(0, 6)" 52 <el-input v-model="registerInfo.TRANSFERREG" oninput="if(value.length > 6) value=value.slice(0, 6)"
53 type="number"></el-input> 53 type="number"></el-input>
54 </el-col> 54 </el-col>
55 <el-col :span="4"> 55 <el-col :span="4">
56 <span>变更登记量:</span> 56 <span>变更登记量:</span>
57 <el-input v-model="titleForm.changeReg" oninput="if(value.length > 6) value=value.slice(0, 6)" 57 <el-input v-model="registerInfo.CHANGEREG" oninput="if(value.length > 6) value=value.slice(0, 6)"
58 type="number"></el-input> 58 type="number"></el-input>
59 </el-col> 59 </el-col>
60 <el-col :span="4"> 60 <el-col :span="4">
61 <span>注销登记量:</span> 61 <span>注销登记量:</span>
62 <el-input v-model="titleForm.logoutReg" oninput="if(value.length > 6) value=value.slice(0, 6)" 62 <el-input v-model="registerInfo.LOGOUTREG" oninput="if(value.length > 6) value=value.slice(0, 6)"
63 type="number"></el-input> 63 type="number"></el-input>
64 </el-col> 64 </el-col>
65 <!-- 更正登记数量 -->
66 <el-col :span="4"> 65 <el-col :span="4">
67 <span>更正登记量:</span> 66 <span>更正登记量:</span>
68 <el-input v-model="titleForm.riviseReg" oninput="if(value.length > 6) value=value.slice(0, 6)" 67 <el-input v-model="registerInfo.RIVISEREG" oninput="if(value.length > 6) value=value.slice(0, 6)"
69 type="number"></el-input> 68 type="number"></el-input>
70 </el-col> 69 </el-col>
71 </el-row> 70 </el-row>
72 <el-row class="dialog-from_header item-content-input"> 71 <el-row class="dialog-from_header item-content-input">
73 <el-col :span="4"> 72 <el-col :span="4">
74 <span>异议登记量:</span> 73 <span>异议登记量:</span>
75 <el-input v-model="titleForm.dissentingReg" oninput="if(value.length > 6) value=value.slice(0, 6)" 74 <el-input v-model="registerInfo.DISSENTINGREG" oninput="if(value.length > 6) value=value.slice(0, 6)"
76 type="number"></el-input> 75 type="number"></el-input>
77 </el-col> 76 </el-col>
78 <el-col :span="4"> 77 <el-col :span="4">
79 <span>预告登记量:</span> 78 <span>预告登记量:</span>
80 <el-input v-model="titleForm.advanceReg" oninput="if(value.length > 6) value=value.slice(0, 6)" 79 <el-input v-model="registerInfo.ADVANCEREG" oninput="if(value.length > 6) value=value.slice(0, 6)"
81 type="number"></el-input> 80 type="number"></el-input>
82 </el-col> 81 </el-col>
83 <el-col :span="4"> 82 <el-col :span="4">
84 <span>查封登记量:</span> 83 <span>查封登记量:</span>
85 <el-input v-model="titleForm.seizeReg" oninput="if(value.length > 6) value=value.slice(0, 6)" 84 <el-input v-model="registerInfo.SEIZEREG" oninput="if(value.length > 6) value=value.slice(0, 6)"
86 type="number"></el-input> 85 type="number"></el-input>
87 </el-col> 86 </el-col>
88 <!-- 地役权登记数量 -->
89 <el-col :span="4"> 87 <el-col :span="4">
90 <span>地役权登记数量</span> 88 <span>其他登记</span>
91 <el-input v-model="titleForm.easementReg" oninput="if(value.length > 6) value=value.slice(0, 6)" 89 <el-input v-model="registerInfo.OTHERREG" oninput="if(value.length > 6) value=value.slice(0, 6)"
92 type="number"></el-input> 90 type="number"></el-input>
93 </el-col> 91 </el-col>
94 <!-- 其他登记数量 -->
95 <el-col :span="4"> 92 <el-col :span="4">
96 <span>其他登记数量:</span> 93 <span>业务类型量:</span>
97 <el-input v-model="titleForm.otherReg" oninput="if(value.length > 6) value=value.slice(0, 6)" 94 <el-input v-model="registerInfo.BUSINESSTYPECOUNT" oninput="if(value.length > 6) value=value.slice(0, 6)"
98 type="number"></el-input> 95 type="number"></el-input>
99 </el-col> 96 </el-col>
100 <!-- 业务类型总数 --> 97 <el-col :span="4" style="border:none">
101 <el-col :span="4">
102 <span>业务类型总数:</span>
103 <el-input v-model="titleForm.businessTypeCount" oninput="if(value.length > 6) value=value.slice(0, 6)"
104 type="number"></el-input>
105 </el-col> 98 </el-col>
106 </el-row> 99 </el-row>
107 </div> 100 </div>
108 <P class="dialog-from_title">当日上报记录数</P>
109 <!-- 当日上报记录数 --> 101 <!-- 当日上报记录数 -->
102 <P class="dialog-from_title">当日上报记录数</P>
110 <div> 103 <div>
111 <el-row class="dialog-from_header item-content-input"> 104 <el-row class="dialog-from_header item-content-input">
112 <el-col :span="4"> 105 <el-col :span="4">
113 <span>总数量:</span> 106 <span>当日上报量:</span>
114 <el-input v-model="titleForm.totalNum" oninput="if(value.length > 6) value=value.slice(0, 6)" 107 <el-input v-model="accessInfo.TOTALNUM" oninput="if(value.length > 6) value=value.slice(0, 6)"
115 type="number"></el-input> 108 type="number"></el-input>
116 </el-col> 109 </el-col>
117 <el-col :span="4"> 110 <el-col :span="4">
118 <span>首次登记量:</span> 111 <span>首次登记量:</span>
119 <el-input v-model="titleForm.firstReg" oninput="if(value.length > 6) value=value.slice(0, 6)" 112 <el-input v-model="accessInfo.FIRSTREG" oninput="if(value.length > 6) value=value.slice(0, 6)"
120 type="number"></el-input> 113 type="number"></el-input>
121 </el-col> 114 </el-col>
122 <el-col :span="4"> 115 <el-col :span="4">
123 <span>转移登记量:</span> 116 <span>转移登记量:</span>
124 <el-input v-model="titleForm.transferReg" oninput="if(value.length > 6) value=value.slice(0, 6)" 117 <el-input v-model="accessInfo.TRANSFERREG" oninput="if(value.length > 6) value=value.slice(0, 6)"
125 type="number"></el-input> 118 type="number"></el-input>
126 </el-col> 119 </el-col>
127 <el-col :span="4"> 120 <el-col :span="4">
128 <span>变更登记量:</span> 121 <span>变更登记量:</span>
129 <el-input v-model="titleForm.changeReg" oninput="if(value.length > 6) value=value.slice(0, 6)" 122 <el-input v-model="accessInfo.CHANGEREG" oninput="if(value.length > 6) value=value.slice(0, 6)"
130 type="number"></el-input> 123 type="number"></el-input>
131 </el-col> 124 </el-col>
132 <el-col :span="4"> 125 <el-col :span="4">
133 <span>注销登记量:</span> 126 <span>注销登记量:</span>
134 <el-input v-model="titleForm.logoutReg" oninput="if(value.length > 6) value=value.slice(0, 6)" 127 <el-input v-model="accessInfo.LOGOUTREG" oninput="if(value.length > 6) value=value.slice(0, 6)"
135 type="number"></el-input> 128 type="number"></el-input>
136 </el-col> 129 </el-col>
137 <!-- 更正登记数量 -->
138 <el-col :span="4"> 130 <el-col :span="4">
139 <span>更正登记量:</span> 131 <span>更正登记量:</span>
140 <el-input v-model="titleForm.riviseReg" oninput="if(value.length > 6) value=value.slice(0, 6)" 132 <el-input v-model="accessInfo.RIVISEREG" oninput="if(value.length > 6) value=value.slice(0, 6)"
141 type="number"></el-input> 133 type="number"></el-input>
142 </el-col> 134 </el-col>
143 </el-row> 135 </el-row>
144 <el-row class="dialog-from_header item-content-input"> 136 <el-row class="dialog-from_header item-content-input">
145 <el-col :span="4"> 137 <el-col :span="4">
146 <span>异议登记量:</span> 138 <span>异议登记量:</span>
147 <el-input v-model="titleForm.dissentingReg" oninput="if(value.length > 6) value=value.slice(0, 6)" 139 <el-input v-model="accessInfo.DISSENTINGREG" oninput="if(value.length > 6) value=value.slice(0, 6)"
148 type="number"></el-input> 140 type="number"></el-input>
149 </el-col> 141 </el-col>
150 <el-col :span="4"> 142 <el-col :span="4">
151 <span>预告登记量:</span> 143 <span>预告登记量:</span>
152 <el-input v-model="titleForm.advanceReg" oninput="if(value.length > 6) value=value.slice(0, 6)" 144 <el-input v-model="accessInfo.ADVANCEREG" oninput="if(value.length > 6) value=value.slice(0, 6)"
153 type="number"></el-input> 145 type="number"></el-input>
154 </el-col> 146 </el-col>
155 <el-col :span="4"> 147 <el-col :span="4">
156 <span>查封登记量:</span> 148 <span>查封登记量:</span>
157 <el-input v-model="titleForm.seizeReg" oninput="if(value.length > 6) value=value.slice(0, 6)" 149 <el-input v-model="accessInfo.SEIZEREG" oninput="if(value.length > 6) value=value.slice(0, 6)"
158 type="number"></el-input> 150 type="number"></el-input>
159 </el-col> 151 </el-col>
160 <!-- 地役权登记数量 -->
161 <el-col :span="4"> 152 <el-col :span="4">
162 <span>地役权登记数量</span> 153 <span>其他登记</span>
163 <el-input v-model="titleForm.easementReg" oninput="if(value.length > 6) value=value.slice(0, 6)" 154 <el-input v-model="accessInfo.OTHERREG" oninput="if(value.length > 6) value=value.slice(0, 6)"
164 type="number"></el-input> 155 type="number"></el-input>
165 </el-col> 156 </el-col>
166 <!-- 其他登记数量 -->
167 <el-col :span="4"> 157 <el-col :span="4">
168 <span>其他登记数量:</span> 158 <span>业务类型量:</span>
169 <el-input v-model="titleForm.otherReg" oninput="if(value.length > 6) value=value.slice(0, 6)" 159 <el-input v-model="accessInfo.BUSINESSTYPECOUNT" oninput="if(value.length > 6) value=value.slice(0, 6)"
170 type="number"></el-input> 160 type="number"></el-input>
171 </el-col> 161 </el-col>
172 <!-- 业务类型总数 --> 162 <el-col :span="4" style="border:none">
173 <el-col :span="4">
174 <span>业务类型总数:</span>
175 <el-input v-model="titleForm.businessTypeCount" oninput="if(value.length > 6) value=value.slice(0, 6)"
176 type="number"></el-input>
177 </el-col> 163 </el-col>
178 </el-row> 164 </el-row>
179 </div> 165 </div>
...@@ -181,24 +167,22 @@ ...@@ -181,24 +167,22 @@
181 <el-tab-pane label="当日登薄详单" name="drdbxd"></el-tab-pane> 167 <el-tab-pane label="当日登薄详单" name="drdbxd"></el-tab-pane>
182 <el-tab-pane label="当日上报详单" name="sbslxd"></el-tab-pane> 168 <el-tab-pane label="当日上报详单" name="sbslxd"></el-tab-pane>
183 </el-tabs> 169 </el-tabs>
184 <div class="from-clues-content" v-show="titleName2 == 'drdbxd'" :key="key"> 170 <!-- 当日登薄详单 -->
171 <div class="from-clues-content" v-show="titleName2 == 'drdbxd'">
185 <lb-table :column="tableDBData.column" :pagination="false" :heightNumSetting="true" :heightNum="200" 172 <lb-table :column="tableDBData.column" :pagination="false" :heightNumSetting="true" :heightNum="200"
186 :data="tableDBData.data"> 173 :data="tableDBData.data">
187 </lb-table> 174 </lb-table>
188 </div> 175 </div>
176 <!-- 当日上报详单 -->
189 <div class="from-clues-content" v-show="titleName2 == 'sbslxd'"> 177 <div class="from-clues-content" v-show="titleName2 == 'sbslxd'">
190 <lb-table :column="tableSBData.column" :pagination="false" :heightNumSetting="true" :heightNum="200" 178 <lb-table :column="tableSBData.column" :pagination="false" :heightNumSetting="true" :heightNum="200"
191 :data="tableSBData.data"> 179 :data="tableSBData.data">
192 </lb-table> 180 </lb-table>
193 </div> 181 </div>
194
195 </div> 182 </div>
196 </div> 183 </div>
197 <div class="editDialogBox-box" v-if="titleName == 'xml'"> 184 <div class="editDialogBox-box" v-if="titleName == 'xml'">
198 <JsonEditor :resultInfo="resultInfo" /> 185 <JsonEditor :resultInfo="resultInfo" :key="key" />
199 </div>
200 <div class="editDialogBox-box JsonEditor" v-if="titleName == 'xyjg'">
201 <Xyjg :form-data='dataReport'></Xyjg>
202 </div> 186 </div>
203 </div> 187 </div>
204 <div class="d-center" v-if="titleName == 'sjmx'"> 188 <div class="d-center" v-if="titleName == 'sjmx'">
...@@ -214,11 +198,11 @@ ...@@ -214,11 +198,11 @@
214 <script> 198 <script>
215 import { sbdata, sendThis } from './data/sbdata' 199 import { sbdata, sendThis } from './data/sbdata'
216 import { dbdata, sendThis1 } from './data/dbdata' 200 import { dbdata, sendThis1 } from './data/dbdata'
217 import { getDetail } from "@/api/recordLog.js" 201 import { getDetail, edit, regenerateDbXml } from "@/api/recordLog.js"
218 import JsonEditor from "@/components/JsonEditor.vue"; 202 import JsonEditor from "@/components/JsonEditor.vue";
219 import Xyjg from "./Result"; 203 import { judgeListComplete } from "@/utils/tools.js"
220 export default { 204 export default {
221 components: { JsonEditor, Xyjg }, 205 components: { JsonEditor },
222 props: { 206 props: {
223 title: { 207 title: {
224 type: String, 208 type: String,
...@@ -231,6 +215,7 @@ export default { ...@@ -231,6 +215,7 @@ export default {
231 dialogVisible: false, 215 dialogVisible: false,
232 titleName: 'sjmx', 216 titleName: 'sjmx',
233 titleName2: 'drdbxd', 217 titleName2: 'drdbxd',
218 dbBsm: '',
234 // 头部信息 219 // 头部信息
235 accessLog: { 220 accessLog: {
236 AREACODE: '', 221 AREACODE: '',
...@@ -238,26 +223,42 @@ export default { ...@@ -238,26 +223,42 @@ export default {
238 CREATEDATE: '', 223 CREATEDATE: '',
239 REMARK: '' 224 REMARK: ''
240 }, 225 },
241 226 // 当日登薄信息记录数
242 titleForm: { 227 registerInfo: {
243 totalNum: '', 228 TOTALNUM: '', // 总数量
244 firstReg: '', 229 FIRSTREG: '', // 首次登记数量
245 transferReg: '', 230 TRANSFERREG: '', // 转移登记数量
246 changeReg: '', 231 CHANGEREG: '', // 变更登记数量
247 logoutReg: '', 232 LOGOUTREG: '', // 注销登记数量
248 riviseReg: '', 233 RIVISEREG: '', // 更正登记数量
249 // 异议登记数量 234 DISSENTINGREG: '', // 异议登记数量
250 dissentingReg: '', 235 ADVANCEREG: '', // 预告登记数量
251 advanceReg: '', 236 SEIZEREG: '', // 查封登记数量
252 seizeReg: '', 237 EASEMENTREG: '', // 地役权登记数量
253 easementReg: '', 238 OTHERREG: '', // 其他登记数量
254 otherReg: '', 239 BUSINESSTYPECOUNT: '', // 业务类型总数
255 businessTypeCount: '' 240 },
241 // 当日上报记录数
242 accessInfo: {
243 TOTALNUM: '', // 总数量
244 FIRSTREG: '', // 首次登记数量
245 TRANSFERREG: '', // 转移登记数量
246 CHANGEREG: '', // 变更登记数量
247 LOGOUTREG: '', // 注销登记数量
248 RIVISEREG: '', // 更正登记数量
249 DISSENTINGREG: '', // 异议登记数量
250 ADVANCEREG: '', // 预告登记数量
251 SEIZEREG: '', // 查封登记数量
252 EASEMENTREG: '', // 地役权登记数量
253 OTHERREG: '', // 其他登记数量
254 BUSINESSTYPECOUNT: '', // 业务类型总数
256 }, 255 },
256 // 当日登薄详单
257 tableDBData: { 257 tableDBData: {
258 data: [], 258 data: [],
259 column: dbdata.columns() 259 column: dbdata.columns()
260 }, 260 },
261 // 当日上报详单
261 tableSBData: { 262 tableSBData: {
262 data: [], 263 data: [],
263 column: sbdata.columns() 264 column: sbdata.columns()
...@@ -278,21 +279,36 @@ export default { ...@@ -278,21 +279,36 @@ export default {
278 isShow (item) { 279 isShow (item) {
279 this.titleName = 'sjmx' 280 this.titleName = 'sjmx'
280 this.dialogVisible = true 281 this.dialogVisible = true
281 console.log(item, 'itemitemitem') 282 this.dbBsm = item.dbBsm
282 getDetail(item.dbBsm).then(res => { 283 this._getDetails(item.dbBsm)
283 console.log(res, 'eeeeeeeeeeeeeeeee'); 284 },
285 /**
286 * @description: 获取列表接口
287 * @author: renchao
288 */
289 _getDetails (data) {
290 getDetail(data).then(res => {
291 let { accessLog, registerInfo, accessInfo, accessList, registerList
292 } = res.result
293 this.accessLog = accessLog
294 this.resultInfo = accessLog.LOGSXML
295 this.registerInfo = registerInfo
296 this.accessInfo = accessInfo
297 this.tableDBData.data = registerList
298 this.tableSBData.data = accessList
284 }) 299 })
285 }, 300 },
286 // 当日登薄详单 301 // 当日登薄详单
287 handleDBAdd () { 302 handleDBAdd () {
288 this.tableDBData.data.push({ 303 this.tableDBData.data.push({
289 ywh: '', 304 YWH: '',
290 djlx: '', 305 DJLX: '',
291 qllx: '', 306 QLLX: '',
292 bdcdyh: '', 307 BDCDYH: '',
293 zszmh: '', 308 ZSZMH: '',
294 sfsb: '', 309 SFSB: '',
295 bwid: '' 310 BWID: '',
311 BSM_DBLOG: this.accessLog.bsmDblog
296 }) 312 })
297 this.tableDBData.data.forEach((item, indx) => { 313 this.tableDBData.data.forEach((item, indx) => {
298 this.$set(item, 'index', index) 314 this.$set(item, 'index', index)
...@@ -300,18 +316,33 @@ export default { ...@@ -300,18 +316,33 @@ export default {
300 this.key++ 316 this.key++
301 }, 317 },
302 handleDBMinus (row) { 318 handleDBMinus (row) {
303 this.tableDBData.data.splice(row.index, 1) 319 this.$confirm('此操作将删除列表, 是否继续?', '提示', {
320 confirmButtonText: '确定',
321 cancelButtonText: '取消',
322 type: 'warning'
323 }).then(() => {
324 this.tableDBData.data.splice(row.index, 1)
325 this.$message({
326 type: 'success',
327 message: '删除成功!'
328 });
329 }).catch(() => {
330 this.$message({
331 type: 'info',
332 message: '已取消删除'
333 })
334 })
304 }, 335 },
305 // 当日上报详单 336 // 当日上报详单
306 handleSBAdd () { 337 handleSBAdd () {
307 this.tableSBData.data.push({ 338 this.tableSBData.data.push({
308 ywh: '', 339 YWH: '',
309 djlx: '', 340 DJLX: '',
310 qllx: '', 341 QLLX: '',
311 bdcdyh: '', 342 BDCDYH: '',
312 zszmh: '', 343 ZSZMH: '',
313 sfsb: '', 344 SFSB: '',
314 bwid: '' 345 BWID: ''
315 }) 346 })
316 this.tableSBData.data.forEach((item, indx) => { 347 this.tableSBData.data.forEach((item, indx) => {
317 this.$set(item, 'index', index) 348 this.$set(item, 'index', index)
...@@ -319,9 +350,92 @@ export default { ...@@ -319,9 +350,92 @@ export default {
319 this.key++ 350 this.key++
320 }, 351 },
321 handleSBMinus (row) { 352 handleSBMinus (row) {
322 this.tableSBData.data.splice(row.index, 1) 353 this.$confirm('此操作将删除列表, 是否继续?', '提示', {
354 confirmButtonText: '确定',
355 cancelButtonText: '取消',
356 type: 'warning'
357 }).then(() => {
358 this.tableSBData.data.splice(row.index, 1)
359 this.$message({
360 type: 'success',
361 message: '删除成功!'
362 });
363 }).catch(() => {
364 this.$message({
365 type: 'info',
366 message: '已取消删除'
367 })
368 })
323 }, 369 },
324 submitForm () { } 370 /**
371 * @description: 确定修改详情
372 * @param {*} function
373 * @author: renchao
374 */
375 submitForm: _.debounce(function () {
376 let _this = this
377 if (_verify(this.tableDBData.data, '当日登薄详单列表必填') && _verify(this.tableSBData.data, '当日上报详单列表必填')) {
378 _editDetail()
379 }
380 function _verify (data, msg) {
381 let flag = true
382 if (!judgeListComplete(data)) {
383 _this.$message({
384 message: msg,
385 type: 'warning'
386 })
387 flag = false
388 }
389 return flag
390 }
391 function _editDetail () {
392 edit({
393 accessLog: _this.accessLog, registerInfo: _this.registerInfo,
394 accessInfo: _this.accessInfo,
395 accessList: _this.tableSBData.data,
396 registerList: _this.tableDBData.data
397 }).then(res => {
398 if (res.code == 200) {
399 _this.$message({
400 message: '新增成功',
401 type: 'success'
402 })
403 _this._getDetails(_this.dbBsm)
404 }
405 })
406 }
407 }, 600),
408 /**
409 * @description: 登薄日志重新生成报文
410 * @param {*} function
411 * @author: renchao
412 */
413 handleResubmit () {
414 let _this = this
415 this.$confirm('重新生成报文,是否上报省厅?', '提示', {
416 confirmButtonText: '确定',
417 cancelButtonText: '取消',
418 type: 'warning'
419 }).then(() => {
420 createXml()
421 }).catch(() => {
422 this.$message({
423 type: 'info',
424 message: '已取消删除'
425 })
426 })
427 function createXml () {
428 regenerateDbXml(_this.dbBsm).then(res => {
429 if (res.code == 200) {
430 _this.$message({
431 message: '生成成功',
432 type: 'success'
433 })
434 _this.resultInfo = res.message
435 }
436 })
437 }
438 }
325 } 439 }
326 } 440 }
327 </script> 441 </script>
......