a4c5fd3c by 蔡俊立

上报报文

1 parent a1ee88a9
import request from '@/utils/request'
import SERVER from './config'
class sbbwcx {
// 定时任务查询接口
async getDataReportPage (data) {
// 数据上报分页
export function getDataReportPage (data) {
return request({
url: '/sjsb/DataReport/getDataReportPage',
url: SERVER.SERVERAPI + '/sjsb/DataReport/getDataReportPage',
method: 'post',
data
})
}
}
// 数据上报分页
export function getDetail (params) {
return request({
url: SERVER.SERVERAPI + '/sjsb/DataReport/getDetail',
method: 'get',
params
})
}
export default new sbbwcx()
\ No newline at end of file
......
......@@ -9,83 +9,88 @@
<el-row>
<el-col :span="6">
<span>业务报文ID:</span>
<p>{{ ruleFormList.bizMsgID }}</p>
<p>{{ dataReport.bizmsgid }}</p>
</el-col>
<el-col :span="6">
<span>接入报文ID:</span>
<p>{{ ruleFormList.asid }}</p>
<p>{{ dataReport.asid }}</p>
</el-col>
<el-col :span="6">
<span>行政区划编码:</span>
<p>{{ ruleFormList.areaCode }}</p>
<p>{{ dataReport.areacode }}</p>
</el-col>
<el-col :span="6">
<span>上次不动产单元号:</span>
<p>{{ ruleFormList.preestateNum }}</p>
<p>{{ dataReport.preestatenum }}</p>
</el-col>
</el-row>
<el-row>
<el-col :span="6">
<span>业务编码:</span>
<p>{{ ruleFormList.recType }}</p>
<p>{{ dataReport.rectype }}</p>
</el-col>
<el-col :span="6">
<span>权利类型:</span>
<p>{{ ruleFormList.rightType }}</p>
<p>{{ dataReport.righttype }}</p>
</el-col>
<el-col :span="6">
<span>登记类型:</span>
<p>{{ ruleFormList.regType }}</p>
<p>{{ dataReport.regtype }}</p>
</el-col>
<el-col :span="6">
<span>不动产权证书数量:</span>
<p>{{ ruleFormList.certCount }}</p>
<p>{{ dataReport.certcount }}</p>
</el-col>
</el-row>
<el-row>
<el-col :span="6">
<span>创建时间:</span>
<p>{{ ruleFormList.createDate }}</p>
<p>{{ dataReport.syscreatedate }}</p>
</el-col>
<el-col :span="6">
<span>业务流水号:</span>
<p>{{ ruleFormList.recFlowID }}</p>
<p>{{ dataReport.recflowid }}</p>
</el-col>
<el-col :span="6">
<span>登记机构:</span>
<p>{{ ruleFormList.regOrgID }}</p>
<p>{{ dataReport.regorgid }}</p>
</el-col>
<el-col :span="6">
<span>证明数量:</span>
<p>{{ ruleFormList.prllfCount }}</p>
<p>{{ dataReport.proofcount }}</p>
</el-col>
</el-row>
<el-row>
<el-col :span="6">
<span>宗地/宗海代码:</span>
<p>{{ ruleFormList.parcelID }}</p>
<p>{{ dataReport.parcelid }}</p>
</el-col>
<el-col :span="10">
<el-col :span="6">
<span>不动产单元号:</span>
<p>{{ ruleFormList.estateNum }}</p>
<p>{{ dataReport.estatenum }}</p>
</el-col>
<el-col :span="7">
<el-col :span="10">
<span>上次不动产权证号/不动产登记证明:</span>
<p>{{ ruleFormList.preCertID }}</p>
<p>{{ dataReport.precertid }}</p>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<span>数字签名:</span>
<p>{{ dataReport.digitalsign }}</p>
</el-col>
</el-row>
</div>
<el-tabs v-model="activeName" ref="elTabs" type="card" @tab-click="changeList">
<el-tab-pane :name="item.soleUrl" v-for="item in headerList" :key="item.soleUrl">
<el-tab-pane :name="item.soleurl" v-for="item in headerList" :key="item.soleurl">
<div slot="label" class="tab-pane-item">
<p class="name">{{ item.chineseTable }}</p>
<p class="soleUrl" :data-name="item.soleUrl">({{ item.dataTable }})</p>
<p class="name">{{ item.chinesetable }}</p>
<p class="soleurl" :data-name="item.soleurl">({{ item.datatable }})</p>
</div>
</el-tab-pane>
</el-tabs>
<div class="edit-content">
<component :is="editItem" ref="editItem" :class="{ 'editForm': $store.state.business.Edit }" :bsmSjsb="bsmSjsb"
:dataTable="dataTable" />
<component :is="editItem" ref="editItem" :class="{ 'editForm': $store.state.business.Edit }" :dataTable="dataTable" />
</div>
<div slot="footer" class="dialog_footer" ref="dialogFooter">
<div class="dialog_button">
......@@ -101,20 +106,17 @@
<script>
import { mapGetters } from 'vuex'
import dataReporting from '@/api/dataReporting'
import { getDetail } from '@/api/sbbwcx.js'
import { MessageBox } from 'element-ui'
export default {
computed: {
...mapGetters(['Edit'])
},
props: {
diaData: Object,
bsmSjsb: {
type: String,
default: ''
}
},
data () {
return {
dataReport: {},
index: 0,
ruleFormList: {
bizMsgID: '',
......@@ -145,27 +147,19 @@ export default {
}
},
methods: {
async getFormList (id) {
let { result: res } = await dataReporting.searchTaskInfoByMsgid(id)
this.ruleFormList = res
},
isShow () {
setTimeout(() => {
if (this.diaData && this.diaData.list) {
this.getFormList(this.diaData.msgId)
this.headerList = this.diaData.list
this.activeName = this.diaData.list[0].soleUrl
this.dataTable = this.diaData.list[0].dataTable
this.title = this.diaData.jrywmc
}
isShow (item) {
this.dataReport = item;
this.dialogVisible = true
if (this.activeName) {
this.editItem = this.loadView(this.activeName)
//获取表头列表
getDetail({bizmsgid: this.dataReport.bizmsgid}).then(res => {
if(res.code == 200){
this.headerList = res.result
console.log(this.headerList);
}
}, 0)
})
},
changeList (val) {
console.log(this.$refs.elTabs,)
let _index = val.index
if (_index > this.index) {
......@@ -173,7 +167,7 @@ export default {
this.index = _index
this.editItem = this.loadView(this.activeName)
this.diaData.list.forEach((item) => {
if (item.soleUrl == this.activeName) {
if (item.soleurl == this.activeName) {
this.dataTable = item.dataTable
}
});
......
......@@ -9,23 +9,23 @@ class data extends filter {
type: 'selection'
},
{
prop: "xzqdm",
prop: "pcode",
label: "行政区代码",
},
{
prop: "bdcdyh",
prop: "estatenum",
label: "不动产单元号",
},
{
prop: "xzqmc",
prop: "pcode",
label: "行政区名称",
},
{
prop: "ywbm",
prop: "rectype",
label: "业务编码",
},
{
prop: "sbsj",
prop: "uploadtime",
label: "上报时间",
},
{
......@@ -35,9 +35,7 @@ class data extends filter {
return (
<div>
{
scope.row.sbjg
? <el-tag type='success'>通过</el-tag>
: <el-tag type='primary'>通过1</el-tag>
!scope.row.successflag ? '' : scope.row.successflag == '1' ? <el-tag type='success'>成功</el-tag> : <el-tag type='primary'>失败</el-tag>
}
</div>
)
......
......@@ -6,20 +6,20 @@
<el-form ref="ruleForm" :model="form" label-width="100px">
<el-row class="marginbtm5">
<el-col :span="6">
<el-form-item label="不动产单元号" prop="bdcdyh">
<el-input v-model="form.bdcdyh" class="width100" placeholder="不动产单元号"></el-input>
<el-form-item label="不动产单元号" prop="estatenum">
<el-input v-model="form.estatenum" class="width100" placeholder="不动产单元号"></el-input>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="开始日期" prop="startTime">
<el-form-item label="开始日期" prop="reportStartTime">
<el-date-picker type="date" class="width100" placeholder="开始日期" :picker-options="pickerOptionsStart"
clearable v-model="form.startTime" value-format="yyyy-MM-dd"></el-date-picker>
clearable v-model="form.reportStartTime" value-format="yyyy-MM-dd"></el-date-picker>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="结束日期" prop="endTime">
<el-form-item label="结束日期" prop="reportEndTime">
<el-date-picker type="date" class="width100" placeholder="结束日期" :picker-options="pickerOptionsEnd"
clearable v-model="form.endTime" value-format="yyyy-MM-dd"></el-date-picker>
clearable v-model="form.reportEndTime" value-format="yyyy-MM-dd"></el-date-picker>
</el-form-item>
</el-col>
<el-col :span="6">
......@@ -33,8 +33,8 @@
</el-row>
<el-row>
<el-col :span="6">
<el-form-item label="响应结果" prop="status">
<el-select v-model="form.status" class="width100" clearable placeholder="响应结果">
<el-form-item label="响应结果" prop="state">
<el-select v-model="form.state" class="width100" clearable placeholder="响应结果">
<el-option v-for="item in []" :key="item.value" :label="item.label" :value="item.value">
</el-option>
</el-select>
......@@ -67,7 +67,7 @@
<!-- 引入详情组件 -->
<!-- <detailDialog v-model="isShow" /> -->
<!-- 编辑 -->
<dataDetails ref="editLog" :bsmSjsb="bsmSjsb" :diaData="diaData" />
<dataDetails ref="editLog" />
</div>
</template>
<script>
......@@ -78,8 +78,7 @@ import data from "./data"
import tableMixin from '@/mixins/tableMixin.js'
// 引入详情弹框
import dataDetails from '@/components/dataDetails/edit-dialog'
import sbbwcx from "@/api/sbbwcx.js";
import { getQlxxDictList, getChildDictList, refreshDictCache } from "@/api/user.js"
import {getDataReportPage} from "@/api/sbbwcx.js";
export default {
name: "sbbwcx",
......@@ -90,15 +89,13 @@ export default {
},
data () {
return {
bsmSjsb: '',
diaData: {},
isShow: false,
// 开始结束日期限制
pickerOptionsStart: {
disabledDate: (time) => {
if (this.form.endTime) {
if (this.form.reportEndTime) {
return (
time.getTime() >= new Date(this.form.endTime).getTime()
time.getTime() >= new Date(this.form.reportEndTime).getTime()
);
}
}
......@@ -106,22 +103,21 @@ export default {
// 结束日期限制
pickerOptionsEnd: {
disabledDate: (time) => {
if (this.form.startTime) {
if (this.form.reportStartTime) {
return (
time.getTime() <= new Date(this.form.startTime).getTime()
time.getTime() <= new Date(this.form.reportStartTime).getTime()
);
}
}
},
// 头部搜索
form: {
bdcdyh: '',
startTime: '',
endTime: '',
estatenum: '',
reportStartTime: '',
reportEndTime: '',
ywmc: '',
status: '',
pcode: '',
currentPage: 1
state: '',
pcode: ''
},
// table数据
tableData: {
......@@ -182,7 +178,7 @@ export default {
},
// 初始化数据
featchData () {
sbbwcx.getDataReportPage({ ...this.form, ...this.pageData }).then(res => {
getDataReportPage({ ...this.form, ...this.pageData }).then(res => {
if (res.code === 200) {
let { total, records } = res.result
this.tableData.total = total;
......@@ -198,8 +194,7 @@ export default {
handleEscalation () { },
// 详情
handleDetail (row) {
// this.isShow = true
this.$refs.editLog.isShow()
this.$refs.editLog.isShow(row)
}
}
}
......