5ba14272 by 任超

style:接收报文查询

1 parent 4c178603
...@@ -46,7 +46,20 @@ export const asyncRoutes = [ ...@@ -46,7 +46,20 @@ export const asyncRoutes = [
46 } 46 }
47 ] 47 ]
48 }, 48 },
49 // 上报日志 49 // 接收报文查询
50 {
51 path: '/jsbwcx',
52 component: Layout,
53 children: [
54 {
55 path: 'index',
56 component: () => import('@/views/jsbwcx/index'),
57 name: 'jsbwcx',
58 meta: { title: '接收报文查询', icon: 'zsgl' }
59 }
60 ]
61 },
62 // 上报报文查询
50 { 63 {
51 path: '/reportLog', 64 path: '/reportLog',
52 component: Layout, 65 component: Layout,
......
1 import filter from '@/utils/filter.js'
2 class data extends filter {
3 constructor() {
4 super()
5 }
6 columns () {
7 return [
8 {
9 prop: "areacode",
10 label: "行政区代码",
11 },
12 {
13 prop: "areaname",
14 label: "行政区名称",
15 },
16 {
17 prop: "bdcdyh",
18 label: "不动产单元号",
19 },
20 {
21 prop: "ywmc",
22 label: "业务名称",
23 },
24 {
25 prop: "czsj",
26 label: "操作时间",
27 },
28 {
29 prop: "czsj",
30 label: "操作时间",
31 },
32 {
33 prop: 'jcjg',
34 label: '检查结果',
35 render: (h, scope) => {
36 return (
37 <div>
38 {
39 scope.row.jcjg
40 ? <el-tag type='success'>通过</el-tag>
41 : <el-tag type='primary'>通过1</el-tag>
42 }
43 </div>
44 )
45 }
46 },
47 {
48 prop: 'rkjg',
49 label: '入库结果',
50 render: (h, scope) => {
51 return (
52 <div>
53 {
54 scope.row.jcjg
55 ? <el-tag type='success'>入库</el-tag>
56 : <el-tag type='primary'>入库1</el-tag>
57 }
58 </div>
59 )
60 }
61 },
62 ]
63 }
64 }
65 export default new data()
1 <template>
2 <!-- 接收报文查询 -->
3 <div class="reportLog from-clues">
4 <div class="from-clues-header">
5 <el-form ref="ruleForm" :model="form" label-width="100px">
6 <el-row class="marginbtm5">
7 <el-col :span="6">
8 <el-form-item label="行政区" prop="pcode">
9 <el-select v-model="form.pcode" class="width100" clearable placeholder="行政区">
10 <el-option v-for="item in xzqOptions" :key="item.value" :label="item.label" :value="item.value">
11 </el-option>
12 </el-select>
13 </el-form-item>
14 </el-col>
15 <el-col :span="6">
16 <el-form-item label="开始日期" prop="startTime">
17 <el-date-picker type="date" class="width100" placeholder="开始日期" :picker-options="pickerOptionsStart"
18 clearable v-model="form.startTime" value-format="yyyy-MM-dd"></el-date-picker>
19 </el-form-item>
20 </el-col>
21 <el-col :span="6">
22 <el-form-item label="结束日期" prop="endTime">
23 <el-date-picker type="date" class="width100" placeholder="结束日期" :picker-options="pickerOptionsEnd"
24 clearable v-model="form.endTime" value-format="yyyy-MM-dd"></el-date-picker>
25 </el-form-item>
26 </el-col>
27 <el-col :span="6">
28 <el-form-item label="不动产单元号" prop="bdcdyh">
29 <el-input v-model="form.bdcdyh" class="width100" placeholder="不动产单元号"></el-input>
30 </el-form-item>
31 </el-col>
32 </el-row>
33 <el-row>
34 <el-col :span="6">
35 <el-form-item label="业务名称" prop="ywmc">
36 <el-select v-model="form.ywmc" class="width100" clearable placeholder="业务名称">
37 <el-option v-for="item in statusOptions" :key="item.value" :label="item.label" :value="item.value">
38 </el-option>
39 </el-select>
40 </el-form-item>
41 </el-col>
42 <el-col :span="6">
43 <el-form-item label="检查结果" prop="jcjg">
44 <el-select v-model="form.jcjg" class="width100" clearable placeholder="检查结果">
45 <el-option v-for="item in []" :key="item.value" :label="item.label" :value="item.value">
46 </el-option>
47 </el-select>
48 </el-form-item>
49 </el-col>
50 <el-col :span="6">
51 <el-form-item label="入库结果" prop="rkjg">
52 <el-select v-model="form.rkjg" class="width100" clearable placeholder="入库结果">
53 <el-option v-for="item in []" :key="item.value" :label="item.label" :value="item.value">
54 </el-option>
55 </el-select>
56 </el-form-item>
57 </el-col>
58
59 <el-col :span="6" class="btnColRight">
60 <el-form-item>
61 <el-button @click="resetForm('ruleForm')">重置</el-button>
62 <el-button type="primary" @click="handleSubmit">查询结果</el-button>
63 </el-form-item>
64 </el-col>
65 </el-row>
66 </el-form>
67 </div>
68 <div class="from-clues-content">
69 <lb-table ref="table" :heightNum="300" :page-size="pageData.size" :current-page.sync="pageData.current"
70 :total="pageData.total" @size-change="handleSizeChange" @p-current-change="handleCurrentChange"
71 :column="tableData.columns" :data="tableData.data">
72 </lb-table>
73 </div>
74 <!-- 编辑 -->
75 <!-- <edit-dialog ref="editLog" :bsmSjsb="bsmSjsb" :diaData="diaData" /> -->
76 </div>
77 </template>
78
79 <script>
80 // 上报日志
81 import data from "./data"
82 import journal from '@/api/journal.js'
83 import tableMixin from '@/mixins/tableMixin.js'
84 import dataReporting from '@/api/dataReporting'
85 import editDialog from '@/components/dataDetails/edit-dialog.vue'
86 export default {
87 name: "reportLog",
88 mixins: [tableMixin],
89 components: {
90 editDialog,
91 },
92 data () {
93 return {
94 // 开始结束日期限制
95 pickerOptionsStart: {
96 disabledDate: (time) => {
97 if (this.form.endTime) {
98 return (
99 time.getTime() >= new Date(this.form.endTime).getTime()
100 );
101 }
102 }
103 },
104 // 结束日期限制
105 pickerOptionsEnd: {
106 disabledDate: (time) => {
107 if (this.form.startTime) {
108 return (
109 time.getTime() <= new Date(this.form.startTime).getTime()
110 );
111 }
112 }
113 },
114 bsmSjsb: '',
115 diaData: {},
116 form: {
117 pcode: '',
118 startTime: '',
119 endTime: '',
120 bdcdyh: '',
121 ywmc: '',
122 // 检查结果
123 jcjg: '',
124 rkjg: '',
125 currentPage: 1
126 },
127 rules: {
128 pcode: [
129 { required: true, message: '请选择行政区', trigger: 'change' }
130 ],
131 startTime: [
132 { required: true, message: '请选择开始日期', trigger: 'change' }
133 ],
134 endTime: [
135 { required: true, message: '请选择结束日期', trigger: 'change' }
136 ],
137 bdcdyh: [
138 { required: true, message: '不动产单元号', trigger: 'change' }
139 ],
140 ywmc: [
141 { required: true, message: '业务名称', trigger: 'change' }
142 ],
143 jcjg: [
144 { required: true, message: '检查结果', trigger: 'change' }
145 ],
146 rkjg: [
147 { required: true, message: '入库结果', trigger: 'change' }
148 ],
149 },
150 tableData: {
151 columns: [{
152 label: '序号',
153 type: 'index',
154 width: '50',
155 index: this.indexMethod,
156 }].concat(data.columns()).concat([
157 {
158 label: "操作",
159 width: '80',
160 render: (h, scope) => {
161 return (
162 <div>
163 <el-button
164 type="text"
165 size="mini"
166 icon="el-icon-edit"
167 style="margin-left: 10px"
168 onClick={() => { this.handleEdit(scope.row) }}
169 >
170 编辑
171 </el-button>
172 </div>
173 )
174 }
175 }
176 ]),
177 data: [{}]
178 },
179 pageData: {
180 total: 0,
181 pageSize: 15,
182 current: 1,
183 },
184 // 业务名称
185 statusOptions: [
186 ],
187 // 行政区
188 xzqOptions: [
189 {
190 value: '632321',
191 label: '同仁县'
192 },
193 {
194 value: '632322',
195 label: '尖扎县'
196 },
197 {
198 value: '632323',
199 label: '泽库县'
200 },
201 {
202 value: '632324',
203 label: '河南县'
204 }
205 ]
206 }
207 },
208 methods: {
209 resetForm () {
210 this.$refs.ruleForm.resetFields();
211 },
212 async featchData () {
213 },
214 handleEdit (row) {
215
216 },
217 }
218 }
219 </script>
220 <style scoped lang="scss">
221 @import "~@/styles/public.scss";
222 @import "./index.scss";
223 </style>
224