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 {
}
......
......@@ -2,14 +2,13 @@
<el-dialog :close-on-click-modal="false" top="0" @close="closeDialog" custom-class="dialogBox editDialogBox mainCenter"
:visible.sync="dialogVisible" width="90%">
<div slot="title" class="dialog_title" ref="dialogTitle">
{{ title || '标题' }}
{{ title || '登薄日志' }}
</div>
<div class="regularHeight">
<div class="editDialogBox-box">
<el-tabs v-model="titleName" type="card">
<el-tab-pane label="登薄详情" name="sjmx"></el-tab-pane>
<el-tab-pane label="xml报文" name="xml"></el-tab-pane>
<el-tab-pane label="响应结果" name="xyjg"></el-tab-pane>
</el-tabs>
<div class="dialog-from" v-if="titleName == 'sjmx'">
<el-row class="dialog-from_header item-content-input">
......@@ -23,7 +22,7 @@
</el-col>
<el-col :span="8">
<span>日期:</span>
<el-date-picker v-model="accessLog.CREATEDATE" type="date">
<el-date-picker v-model="accessLog.CREATEDATE" value-format="yyyy-MM-dd" type="date">
</el-date-picker>
</el-col>
</el-row>
......@@ -34,146 +33,133 @@
</el-input>
</el-col>
</el-row>
<!-- 当日登薄信息记录数 -->
<P class="dialog-from_title">当日登薄信息记录数</P>
<div>
<el-row class="dialog-from_header item-content-input">
<el-col :span="4">
<span>总数量:</span>
<el-input v-model="titleForm.totalNum" oninput="if(value.length > 6) value=value.slice(0, 6)"
<span>当日登薄量:</span>
<el-input v-model="registerInfo.TOTALNUM" oninput="if(value.length > 6) value=value.slice(0, 6)"
type="number"></el-input>
</el-col>
<el-col :span="4">
<span>首次登记量:</span>
<el-input v-model="titleForm.firstReg" oninput="if(value.length > 6) value=value.slice(0, 6)"
<span>首次登记量:</span>
<el-input v-model="registerInfo.FIRSTREG" oninput="if(value.length > 6) value=value.slice(0, 6)"
type="number"></el-input>
</el-col>
<el-col :span="4">
<span>转移登记量:</span>
<el-input v-model="titleForm.transferReg" oninput="if(value.length > 6) value=value.slice(0, 6)"
<span>转移登记量:</span>
<el-input v-model="registerInfo.TRANSFERREG" oninput="if(value.length > 6) value=value.slice(0, 6)"
type="number"></el-input>
</el-col>
<el-col :span="4">
<span>变更登记量:</span>
<el-input v-model="titleForm.changeReg" oninput="if(value.length > 6) value=value.slice(0, 6)"
<span>变更登记量:</span>
<el-input v-model="registerInfo.CHANGEREG" oninput="if(value.length > 6) value=value.slice(0, 6)"
type="number"></el-input>
</el-col>
<el-col :span="4">
<span>注销登记量:</span>
<el-input v-model="titleForm.logoutReg" oninput="if(value.length > 6) value=value.slice(0, 6)"
<span>注销登记量:</span>
<el-input v-model="registerInfo.LOGOUTREG" oninput="if(value.length > 6) value=value.slice(0, 6)"
type="number"></el-input>
</el-col>
<!-- 更正登记数量 -->
<el-col :span="4">
<span>更正登记量:</span>
<el-input v-model="titleForm.riviseReg" oninput="if(value.length > 6) value=value.slice(0, 6)"
<span>更正登记量:</span>
<el-input v-model="registerInfo.RIVISEREG" oninput="if(value.length > 6) value=value.slice(0, 6)"
type="number"></el-input>
</el-col>
</el-row>
<el-row class="dialog-from_header item-content-input">
<el-col :span="4">
<span>异议登记量:</span>
<el-input v-model="titleForm.dissentingReg" oninput="if(value.length > 6) value=value.slice(0, 6)"
<span>异议登记量:</span>
<el-input v-model="registerInfo.DISSENTINGREG" oninput="if(value.length > 6) value=value.slice(0, 6)"
type="number"></el-input>
</el-col>
<el-col :span="4">
<span>预告登记量:</span>
<el-input v-model="titleForm.advanceReg" oninput="if(value.length > 6) value=value.slice(0, 6)"
<span>预告登记量:</span>
<el-input v-model="registerInfo.ADVANCEREG" oninput="if(value.length > 6) value=value.slice(0, 6)"
type="number"></el-input>
</el-col>
<el-col :span="4">
<span>查封登记量:</span>
<el-input v-model="titleForm.seizeReg" oninput="if(value.length > 6) value=value.slice(0, 6)"
<span>查封登记量:</span>
<el-input v-model="registerInfo.SEIZEREG" oninput="if(value.length > 6) value=value.slice(0, 6)"
type="number"></el-input>
</el-col>
<!-- 地役权登记数量 -->
<el-col :span="4">
<span>地役权登记数量</span>
<el-input v-model="titleForm.easementReg" oninput="if(value.length > 6) value=value.slice(0, 6)"
<span>其他登记</span>
<el-input v-model="registerInfo.OTHERREG" oninput="if(value.length > 6) value=value.slice(0, 6)"
type="number"></el-input>
</el-col>
<!-- 其他登记数量 -->
<el-col :span="4">
<span>其他登记数量:</span>
<el-input v-model="titleForm.otherReg" oninput="if(value.length > 6) value=value.slice(0, 6)"
<span>业务类型量:</span>
<el-input v-model="registerInfo.BUSINESSTYPECOUNT" oninput="if(value.length > 6) value=value.slice(0, 6)"
type="number"></el-input>
</el-col>
<!-- 业务类型总数 -->
<el-col :span="4">
<span>业务类型总数:</span>
<el-input v-model="titleForm.businessTypeCount" oninput="if(value.length > 6) value=value.slice(0, 6)"
type="number"></el-input>
<el-col :span="4" style="border:none">
</el-col>
</el-row>
</div>
<P class="dialog-from_title">当日上报记录数</P>
<!-- 当日上报记录数 -->
<P class="dialog-from_title">当日上报记录数</P>
<div>
<el-row class="dialog-from_header item-content-input">
<el-col :span="4">
<span>总数量:</span>
<el-input v-model="titleForm.totalNum" oninput="if(value.length > 6) value=value.slice(0, 6)"
<span>当日上报量:</span>
<el-input v-model="accessInfo.TOTALNUM" oninput="if(value.length > 6) value=value.slice(0, 6)"
type="number"></el-input>
</el-col>
<el-col :span="4">
<span>首次登记量:</span>
<el-input v-model="titleForm.firstReg" oninput="if(value.length > 6) value=value.slice(0, 6)"
<span>首次登记量:</span>
<el-input v-model="accessInfo.FIRSTREG" oninput="if(value.length > 6) value=value.slice(0, 6)"
type="number"></el-input>
</el-col>
<el-col :span="4">
<span>转移登记量:</span>
<el-input v-model="titleForm.transferReg" oninput="if(value.length > 6) value=value.slice(0, 6)"
<span>转移登记量:</span>
<el-input v-model="accessInfo.TRANSFERREG" oninput="if(value.length > 6) value=value.slice(0, 6)"
type="number"></el-input>
</el-col>
<el-col :span="4">
<span>变更登记量:</span>
<el-input v-model="titleForm.changeReg" oninput="if(value.length > 6) value=value.slice(0, 6)"
<span>变更登记量:</span>
<el-input v-model="accessInfo.CHANGEREG" oninput="if(value.length > 6) value=value.slice(0, 6)"
type="number"></el-input>
</el-col>
<el-col :span="4">
<span>注销登记量:</span>
<el-input v-model="titleForm.logoutReg" oninput="if(value.length > 6) value=value.slice(0, 6)"
<span>注销登记量:</span>
<el-input v-model="accessInfo.LOGOUTREG" oninput="if(value.length > 6) value=value.slice(0, 6)"
type="number"></el-input>
</el-col>
<!-- 更正登记数量 -->
<el-col :span="4">
<span>更正登记量:</span>
<el-input v-model="titleForm.riviseReg" oninput="if(value.length > 6) value=value.slice(0, 6)"
<span>更正登记量:</span>
<el-input v-model="accessInfo.RIVISEREG" oninput="if(value.length > 6) value=value.slice(0, 6)"
type="number"></el-input>
</el-col>
</el-row>
<el-row class="dialog-from_header item-content-input">
<el-col :span="4">
<span>异议登记量:</span>
<el-input v-model="titleForm.dissentingReg" oninput="if(value.length > 6) value=value.slice(0, 6)"
<span>异议登记量:</span>
<el-input v-model="accessInfo.DISSENTINGREG" oninput="if(value.length > 6) value=value.slice(0, 6)"
type="number"></el-input>
</el-col>
<el-col :span="4">
<span>预告登记量:</span>
<el-input v-model="titleForm.advanceReg" oninput="if(value.length > 6) value=value.slice(0, 6)"
<span>预告登记量:</span>
<el-input v-model="accessInfo.ADVANCEREG" oninput="if(value.length > 6) value=value.slice(0, 6)"
type="number"></el-input>
</el-col>
<el-col :span="4">
<span>查封登记量:</span>
<el-input v-model="titleForm.seizeReg" oninput="if(value.length > 6) value=value.slice(0, 6)"
<span>查封登记量:</span>
<el-input v-model="accessInfo.SEIZEREG" oninput="if(value.length > 6) value=value.slice(0, 6)"
type="number"></el-input>
</el-col>
<!-- 地役权登记数量 -->
<el-col :span="4">
<span>地役权登记数量</span>
<el-input v-model="titleForm.easementReg" oninput="if(value.length > 6) value=value.slice(0, 6)"
<span>其他登记</span>
<el-input v-model="accessInfo.OTHERREG" oninput="if(value.length > 6) value=value.slice(0, 6)"
type="number"></el-input>
</el-col>
<!-- 其他登记数量 -->
<el-col :span="4">
<span>其他登记数量:</span>
<el-input v-model="titleForm.otherReg" oninput="if(value.length > 6) value=value.slice(0, 6)"
<span>业务类型量:</span>
<el-input v-model="accessInfo.BUSINESSTYPECOUNT" oninput="if(value.length > 6) value=value.slice(0, 6)"
type="number"></el-input>
</el-col>
<!-- 业务类型总数 -->
<el-col :span="4">
<span>业务类型总数:</span>
<el-input v-model="titleForm.businessTypeCount" oninput="if(value.length > 6) value=value.slice(0, 6)"
type="number"></el-input>
<el-col :span="4" style="border:none">
</el-col>
</el-row>
</div>
......@@ -181,24 +167,22 @@
<el-tab-pane label="当日登薄详单" name="drdbxd"></el-tab-pane>
<el-tab-pane label="当日上报详单" name="sbslxd"></el-tab-pane>
</el-tabs>
<div class="from-clues-content" v-show="titleName2 == 'drdbxd'" :key="key">
<!-- 当日登薄详单 -->
<div class="from-clues-content" v-show="titleName2 == 'drdbxd'">
<lb-table :column="tableDBData.column" :pagination="false" :heightNumSetting="true" :heightNum="200"
:data="tableDBData.data">
</lb-table>
</div>
<!-- 当日上报详单 -->
<div class="from-clues-content" v-show="titleName2 == 'sbslxd'">
<lb-table :column="tableSBData.column" :pagination="false" :heightNumSetting="true" :heightNum="200"
:data="tableSBData.data">
</lb-table>
</div>
</div>
</div>
<div class="editDialogBox-box" v-if="titleName == 'xml'">
<JsonEditor :resultInfo="resultInfo" />
</div>
<div class="editDialogBox-box JsonEditor" v-if="titleName == 'xyjg'">
<Xyjg :form-data='dataReport'></Xyjg>
<JsonEditor :resultInfo="resultInfo" :key="key" />
</div>
</div>
<div class="d-center" v-if="titleName == 'sjmx'">
......@@ -214,11 +198,11 @@
<script>
import { sbdata, sendThis } from './data/sbdata'
import { dbdata, sendThis1 } from './data/dbdata'
import { getDetail } from "@/api/recordLog.js"
import { getDetail, edit, regenerateDbXml } from "@/api/recordLog.js"
import JsonEditor from "@/components/JsonEditor.vue";
import Xyjg from "./Result";
import { judgeListComplete } from "@/utils/tools.js"
export default {
components: { JsonEditor, Xyjg },
components: { JsonEditor },
props: {
title: {
type: String,
......@@ -231,6 +215,7 @@ export default {
dialogVisible: false,
titleName: 'sjmx',
titleName2: 'drdbxd',
dbBsm: '',
// 头部信息
accessLog: {
AREACODE: '',
......@@ -238,26 +223,42 @@ export default {
CREATEDATE: '',
REMARK: ''
},
titleForm: {
totalNum: '',
firstReg: '',
transferReg: '',
changeReg: '',
logoutReg: '',
riviseReg: '',
// 异议登记数量
dissentingReg: '',
advanceReg: '',
seizeReg: '',
easementReg: '',
otherReg: '',
businessTypeCount: ''
// 当日登薄信息记录数
registerInfo: {
TOTALNUM: '', // 总数量
FIRSTREG: '', // 首次登记数量
TRANSFERREG: '', // 转移登记数量
CHANGEREG: '', // 变更登记数量
LOGOUTREG: '', // 注销登记数量
RIVISEREG: '', // 更正登记数量
DISSENTINGREG: '', // 异议登记数量
ADVANCEREG: '', // 预告登记数量
SEIZEREG: '', // 查封登记数量
EASEMENTREG: '', // 地役权登记数量
OTHERREG: '', // 其他登记数量
BUSINESSTYPECOUNT: '', // 业务类型总数
},
// 当日上报记录数
accessInfo: {
TOTALNUM: '', // 总数量
FIRSTREG: '', // 首次登记数量
TRANSFERREG: '', // 转移登记数量
CHANGEREG: '', // 变更登记数量
LOGOUTREG: '', // 注销登记数量
RIVISEREG: '', // 更正登记数量
DISSENTINGREG: '', // 异议登记数量
ADVANCEREG: '', // 预告登记数量
SEIZEREG: '', // 查封登记数量
EASEMENTREG: '', // 地役权登记数量
OTHERREG: '', // 其他登记数量
BUSINESSTYPECOUNT: '', // 业务类型总数
},
// 当日登薄详单
tableDBData: {
data: [],
column: dbdata.columns()
},
// 当日上报详单
tableSBData: {
data: [],
column: sbdata.columns()
......@@ -278,21 +279,36 @@ export default {
isShow (item) {
this.titleName = 'sjmx'
this.dialogVisible = true
console.log(item, 'itemitemitem')
getDetail(item.dbBsm).then(res => {
console.log(res, 'eeeeeeeeeeeeeeeee');
this.dbBsm = item.dbBsm
this._getDetails(item.dbBsm)
},
/**
* @description: 获取列表接口
* @author: renchao
*/
_getDetails (data) {
getDetail(data).then(res => {
let { accessLog, registerInfo, accessInfo, accessList, registerList
} = res.result
this.accessLog = accessLog
this.resultInfo = accessLog.LOGSXML
this.registerInfo = registerInfo
this.accessInfo = accessInfo
this.tableDBData.data = registerList
this.tableSBData.data = accessList
})
},
// 当日登薄详单
handleDBAdd () {
this.tableDBData.data.push({
ywh: '',
djlx: '',
qllx: '',
bdcdyh: '',
zszmh: '',
sfsb: '',
bwid: ''
YWH: '',
DJLX: '',
QLLX: '',
BDCDYH: '',
ZSZMH: '',
SFSB: '',
BWID: '',
BSM_DBLOG: this.accessLog.bsmDblog
})
this.tableDBData.data.forEach((item, indx) => {
this.$set(item, 'index', index)
......@@ -300,18 +316,33 @@ export default {
this.key++
},
handleDBMinus (row) {
this.tableDBData.data.splice(row.index, 1)
this.$confirm('此操作将删除列表, 是否继续?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.tableDBData.data.splice(row.index, 1)
this.$message({
type: 'success',
message: '删除成功!'
});
}).catch(() => {
this.$message({
type: 'info',
message: '已取消删除'
})
})
},
// 当日上报详单
handleSBAdd () {
this.tableSBData.data.push({
ywh: '',
djlx: '',
qllx: '',
bdcdyh: '',
zszmh: '',
sfsb: '',
bwid: ''
YWH: '',
DJLX: '',
QLLX: '',
BDCDYH: '',
ZSZMH: '',
SFSB: '',
BWID: ''
})
this.tableSBData.data.forEach((item, indx) => {
this.$set(item, 'index', index)
......@@ -319,9 +350,92 @@ export default {
this.key++
},
handleSBMinus (row) {
this.tableSBData.data.splice(row.index, 1)
this.$confirm('此操作将删除列表, 是否继续?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.tableSBData.data.splice(row.index, 1)
this.$message({
type: 'success',
message: '删除成功!'
});
}).catch(() => {
this.$message({
type: 'info',
message: '已取消删除'
})
})
},
submitForm () { }
/**
* @description: 确定修改详情
* @param {*} function
* @author: renchao
*/
submitForm: _.debounce(function () {
let _this = this
if (_verify(this.tableDBData.data, '当日登薄详单列表必填') && _verify(this.tableSBData.data, '当日上报详单列表必填')) {
_editDetail()
}
function _verify (data, msg) {
let flag = true
if (!judgeListComplete(data)) {
_this.$message({
message: msg,
type: 'warning'
})
flag = false
}
return flag
}
function _editDetail () {
edit({
accessLog: _this.accessLog, registerInfo: _this.registerInfo,
accessInfo: _this.accessInfo,
accessList: _this.tableSBData.data,
registerList: _this.tableDBData.data
}).then(res => {
if (res.code == 200) {
_this.$message({
message: '新增成功',
type: 'success'
})
_this._getDetails(_this.dbBsm)
}
})
}
}, 600),
/**
* @description: 登薄日志重新生成报文
* @param {*} function
* @author: renchao
*/
handleResubmit () {
let _this = this
this.$confirm('重新生成报文,是否上报省厅?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
createXml()
}).catch(() => {
this.$message({
type: 'info',
message: '已取消删除'
})
})
function createXml () {
regenerateDbXml(_this.dbBsm).then(res => {
if (res.code == 200) {
_this.$message({
message: '生成成功',
type: 'success'
})
_this.resultInfo = res.message
}
})
}
}
}
}
</script>
......