0618469c by 任超

feat:登薄日志

1 parent e1d1004e
###
# @Description:
# @Autor: renchao
# @LastEditTime: 2023-03-02 15:44:12
###
# just a flag
ENV = 'development'
NODE_ENV=development
......
/*
* @Description: 登薄日志
* @Autor: renchao
* @LastEditTime: 2023-03-01 17:09:38
* @LastEditTime: 2023-03-02 13:45:53
*/
/* 引入请求文件 */
import request from '@/utils/request'
/* 引入配置文件 */
import SERVER from './config'
const urlHeader = SERVER.SERVERAPI + '/rest/sjsb/RecordLog/'
/**
* @description: 登簿日志分页
* @author: renchao
......@@ -35,4 +34,29 @@ export function getDetail (dbBsm) {
}
})
}
/**
* @description: 详情页面编辑
* @param {*} data
* @author: renchao
*/
export function edit (data) {
return request({
url: urlHeader + 'edit',
method: 'post',
data
})
}
/**
* @description: 登薄日志重新生成报文
* @param {*} dbBsm
* @author: renchao
*/
export function regenerateDbXml (dbBsm) {
return request({
url: urlHeader + 'regenerateDbXml',
method: 'get',
params: {
dbBsm: dbBsm
}
})
}
......
......@@ -2,7 +2,7 @@
<el-dialog :close-on-click-modal="false" top="0" @close="closeDialog" custom-class="dialogBox editDialogBox mainCenter"
:visible.sync="dialogVisible" width="88%">
<div slot="title" class="dialog_title" ref="dialogTitle">
{{ title || '标题' }}
{{ title || '详情' }}
</div>
<div class="regularHeight">
<div class="editDialogBox-box">
......@@ -265,17 +265,32 @@ export default {
* @description: 重新上报
* @author: renchao
*/
handleResubmit: _.debounce(function () {
restartGenerateXml(this.dataReport.bsmSjsb || this.dataReport.bsmReport).then((res) => {
if (res.code == 200) {
this.resultInfo = res.message
this.$message({
message: '生成成功',
type: 'success'
})
}
handleResubmit () {
let _this = this
this.$confirm('重新生成报文,是否上报省厅?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
createXml()
}).catch(() => {
this.$message({
type: 'info',
message: '已取消删除'
})
})
}, 500)
function createXml () {
restartGenerateXml(_this.dataReport.bsmSjsb || _this.dataReport.bsmReport).then((res) => {
if (res.code == 200) {
_this.resultInfo = res.message
_this.$message({
message: '上报成功',
type: 'success'
})
}
})
}
}
}
}
</script>
......
// cover some element-ui styles
.el-breadcrumb__inner,
.el-breadcrumb__inner a {
font-weight: 400 !important;
......@@ -531,29 +530,34 @@ tr:hover {
background-color: #031a46;
border: 1px solid #5f82c7;
.el-message-box__title{
.el-message-box__title {
color: white;
}
.el-message-box__content{
.el-message-box__content {
color: white;
}
}
// 上级菜单
// 上级菜单
.el-cascader__dropdown {
background-color: #031a46;
border: 1px solid #5f82c7;
}
.el-cascader-menu{
.el-cascader-menu {
color: white;
}
.el-radio
{
.el-cascader-menu:hover{
.el-radio {
.el-cascader-menu:hover {
color: white;
}
}
.el-cascader-node:not(.is-disabled):hover, .el-cascader-node:not(.is-disabled):focus {
.el-cascader-node:not(.is-disabled):hover,
.el-cascader-node:not(.is-disabled):focus {
background: #F5F7FA;
background-image: initial;
background-position-x: initial;
......@@ -565,4 +569,4 @@ tr:hover {
background-origin: initial;
background-clip: initial;
background-color: rgb(80, 142, 235);
}
}
\ No newline at end of file
......
......@@ -259,4 +259,30 @@ function openDownloadDialog (url, saveName) {
event.initMouseEvent('click', true, false, window, 0, 0, 0, 0, 0, false, false, false, false, 0, null);
}
aLink.dispatchEvent(event);
}
function judgeObjectComplete (ObjectValue) {
let flag = new Boolean()
flag = true
for (let key in ObjectValue) {
if (ObjectValue[key]) { } else {
flag = false
}
}
if (!flag) {
return false
} else {
return true
}
}
export function judgeListComplete (list) {
let isNotComplete = list.findIndex(item => {
return judgeObjectComplete(item) === false
})
if (isNotComplete > -1) {
return false
} else {
return true
}
}
\ No newline at end of file
......
......@@ -9,7 +9,7 @@
<el-input class="username" v-model="user.account" placeholder="请输入用户名"></el-input>
</el-form-item>
<el-form-item prop="password">
<el-input type="password" class="password" @keyup.native="login('user')" v-model="user.password"
<el-input type="password" class="password" @keyup.enter.native="login('user')" v-model="user.password"
placeholder="请输入密码"></el-input>
</el-form-item>
<el-form-item class="login-btn">
......
<!--
功能:结果
作者:calliope
-->
<template>
<div class='result'>
<p>响应xml</p>
<el-input type="textarea" disabled :rows="6" class="resulttext" placeholder="响应xml" v-model="REPMSGXML">
</el-input>
<p>错误信息</p>
<el-input type="textarea" disabled :rows="6" class="resulttext" placeholder="错误信息" v-model="ERRORINFO">
</el-input>
</div>
</template>
<script>
import { getReceiveDataReportResult } from "@/api/dataReport.js";
export default {
components: {},
props: {
formData: {
type: Object,
default: {}
}
},
data () {
return {
REPMSGXML: '',
ERRORINFO: '',
}
},
created () {
getReceiveDataReportResult(this.formData.bsmReport).then(res => {
let data = res.result
this.REPMSGXML = data.REPMSGXML
this.ERRORINFO = data.ERRORINFO
})
}
}
</script>
<style scoped lang='scss'>
@import '~@/styles/public.scss';
.result {
padding: 15px;
p {
color: #ffffff;
line-height: 26px;
font-size: 18px;
}
/deep/.el-textarea__inner {
min-height: 27vh !important;
background-color: #08346F !important;
color: #ffffff;
border: none !important;
}
}
</style>
......@@ -32,7 +32,7 @@ class data {
},
},
{
prop: 'ywh',
prop: 'YWH',
label: '业务号',
render: (h, scope) => {
return (
......@@ -41,7 +41,7 @@ class data {
}
},
{
prop: 'djlx',
prop: 'DJLX',
label: '登记类型',
render: (h, scope) => {
return (
......@@ -59,7 +59,7 @@ class data {
}
},
{
prop: 'qllx',
prop: 'QLLX',
label: '权利类型',
render: (h, scope) => {
return (
......@@ -77,7 +77,7 @@ class data {
}
},
{
prop: 'bdcdyh',
prop: 'BDCDYH',
label: '不动产单元号',
render: (h, scope) => {
return (
......@@ -86,7 +86,7 @@ class data {
}
},
{
prop: 'zszmh',
prop: 'ZSZMH',
label: '证书证明号',
render: (h, scope) => {
return (
......@@ -95,7 +95,7 @@ class data {
}
},
{
prop: 'sfsb',
prop: 'SFSB',
label: '是否上报',
render: (h, scope) => {
return (
......@@ -113,14 +113,14 @@ class data {
}
},
{
prop: 'bwid',
prop: 'BWID',
label: '报文ID',
render: (h, scope) => {
return (
<el-input value={scope.row[scope.column.property]} onInput={(val) => { scope.row[scope.column.property] = val }}></el-input>
)
}
},
}
]
}
}
......@@ -131,3 +131,4 @@ export {
}
......
......@@ -31,7 +31,7 @@ class data {
},
},
{
prop: 'ywh',
prop: 'YWH',
label: '业务号',
render: (h, scope) => {
return (
......@@ -40,7 +40,7 @@ class data {
}
},
{
prop: 'bdcdyh',
prop: 'BDCDYH',
label: '不动产单元号',
render: (h, scope) => {
return (
......@@ -49,7 +49,7 @@ class data {
}
},
{
prop: 'bwid',
prop: 'BWID',
label: '报文ID',
render: (h, scope) => {
return (
......@@ -67,3 +67,4 @@ export {
}
......