feat:报文重新入库日志
Showing
4 changed files
with
224 additions
and
0 deletions
| ... | @@ -137,6 +137,19 @@ export const asyncRoutes = [ | ... | @@ -137,6 +137,19 @@ export const asyncRoutes = [ |
| 137 | } | 137 | } |
| 138 | ] | 138 | ] |
| 139 | }, | 139 | }, |
| 140 | // 报文重新入库日志 | ||
| 141 | { | ||
| 142 | path: '/bwcxrkrz', | ||
| 143 | component: Layout, | ||
| 144 | children: [ | ||
| 145 | { | ||
| 146 | path: 'index', | ||
| 147 | component: () => import('@/views/bwcxrkrz/index'), | ||
| 148 | name: 'bwcxrkrz', | ||
| 149 | meta: { title: '报文重新入库日志', icon: 'zhcx' } | ||
| 150 | } | ||
| 151 | ] | ||
| 152 | }, | ||
| 140 | // 接入业务信息 | 153 | // 接入业务信息 |
| 141 | { | 154 | { |
| 142 | path: '/busineInfo', | 155 | path: '/busineInfo', | ... | ... |
src/views/bwcxrkrz/data/index.js
0 → 100644
| 1 | import filter from '@/utils/filter.js' | ||
| 2 | class data extends filter { | ||
| 3 | constructor() { | ||
| 4 | super() | ||
| 5 | } | ||
| 6 | columns () { | ||
| 7 | return [ | ||
| 8 | { | ||
| 9 | prop: "qymc", | ||
| 10 | label: "区域名称", | ||
| 11 | }, | ||
| 12 | { | ||
| 13 | prop: "czyymc", | ||
| 14 | label: "操作用户名称", | ||
| 15 | }, | ||
| 16 | { | ||
| 17 | prop: "bwmc", | ||
| 18 | label: "报文名称", | ||
| 19 | }, | ||
| 20 | { | ||
| 21 | prop: "rksj", | ||
| 22 | label: "入库时间", | ||
| 23 | }, | ||
| 24 | { | ||
| 25 | prop: "rkjg", | ||
| 26 | label: "入库结果", | ||
| 27 | }, | ||
| 28 | { | ||
| 29 | prop: "sbyy", | ||
| 30 | label: "失败原因", | ||
| 31 | } | ||
| 32 | ] | ||
| 33 | } | ||
| 34 | } | ||
| 35 | export default new data() |
src/views/bwcxrkrz/index.scss
0 → 100644
File mode changed
src/views/bwcxrkrz/index.vue
0 → 100644
| 1 | <template> | ||
| 2 | <div class="reportLog from-clues"> | ||
| 3 | <div class="from-clues-header"> | ||
| 4 | <el-form ref="ruleForm" :model="form" label-width="100px"> | ||
| 5 | <el-row class="marginbtm5"> | ||
| 6 | <el-col :span="6"> | ||
| 7 | <el-form-item label="行政区" prop="pcode"> | ||
| 8 | <el-select v-model="form.pcode" class="width100" clearable placeholder="行政区"> | ||
| 9 | <el-option v-for="item in xzqOptions" :key="item.value" :label="item.label" :value="item.value"> | ||
| 10 | </el-option> | ||
| 11 | </el-select> | ||
| 12 | </el-form-item> | ||
| 13 | </el-col> | ||
| 14 | <el-col :span="6"> | ||
| 15 | <el-form-item label="报文名称" prop="bwmc"> | ||
| 16 | <el-select v-model="form.ywmc" class="width100" clearable placeholder="业务名称"> | ||
| 17 | <el-option v-for="item in []" :key="item.value" :label="item.label" :value="item.value"> | ||
| 18 | </el-option> | ||
| 19 | </el-select> | ||
| 20 | </el-form-item> | ||
| 21 | </el-col> | ||
| 22 | <el-col :span="6"> | ||
| 23 | <el-form-item label="开始日期" prop="startTime"> | ||
| 24 | <el-date-picker type="date" class="width100" placeholder="开始日期" :picker-options="pickerOptionsStart" | ||
| 25 | clearable v-model="form.startTime" value-format="yyyy-MM-dd"></el-date-picker> | ||
| 26 | </el-form-item> | ||
| 27 | </el-col> | ||
| 28 | <el-col :span="6"> | ||
| 29 | <el-form-item label="结束日期" prop="endTime"> | ||
| 30 | <el-date-picker type="date" class="width100" placeholder="结束日期" :picker-options="pickerOptionsEnd" | ||
| 31 | clearable v-model="form.endTime" value-format="yyyy-MM-dd"></el-date-picker> | ||
| 32 | </el-form-item> | ||
| 33 | </el-col> | ||
| 34 | </el-row> | ||
| 35 | <el-row> | ||
| 36 | <el-col :span="6"> | ||
| 37 | <el-form-item label="入库结果" prop="rkjg"> | ||
| 38 | <el-select v-model="form.rkjg" class="width100" clearable placeholder="入库结果"> | ||
| 39 | <el-option v-for="item in []" :key="item.value" :label="item.label" :value="item.value"> | ||
| 40 | </el-option> | ||
| 41 | </el-select> | ||
| 42 | </el-form-item> | ||
| 43 | </el-col> | ||
| 44 | <el-col :span="18" class="btnColRight"> | ||
| 45 | <el-button @click="resetForm('ruleForm')">重置</el-button> | ||
| 46 | <el-button type="primary" @click="handleSubmit">查询结果</el-button> | ||
| 47 | </el-col> | ||
| 48 | </el-row> | ||
| 49 | </el-form> | ||
| 50 | </div> | ||
| 51 | <div class="from-clues-content"> | ||
| 52 | <lb-table ref="table" :heightNum="300" :page-size="pageData.size" :current-page.sync="pageData.current" | ||
| 53 | :total="pageData.total" @size-change="handleSizeChange" @p-current-change="handleCurrentChange" | ||
| 54 | :column="tableData.columns" :data="tableData.data"> | ||
| 55 | </lb-table> | ||
| 56 | </div> | ||
| 57 | </div> | ||
| 58 | </template> | ||
| 59 | |||
| 60 | <script> | ||
| 61 | import data from "./data" | ||
| 62 | import journal from '@/api/journal.js' | ||
| 63 | import tableMixin from '@/mixins/tableMixin.js' | ||
| 64 | export default { | ||
| 65 | name: "bwcxrkrz", | ||
| 66 | mixins: [tableMixin], | ||
| 67 | data () { | ||
| 68 | return { | ||
| 69 | // 开始结束日期限制 | ||
| 70 | pickerOptionsStart: { | ||
| 71 | disabledDate: (time) => { | ||
| 72 | if (this.form.endTime) { | ||
| 73 | return ( | ||
| 74 | time.getTime() >= new Date(this.form.endTime).getTime() | ||
| 75 | ); | ||
| 76 | } | ||
| 77 | } | ||
| 78 | }, | ||
| 79 | // 结束日期限制 | ||
| 80 | pickerOptionsEnd: { | ||
| 81 | disabledDate: (time) => { | ||
| 82 | if (this.form.startTime) { | ||
| 83 | return ( | ||
| 84 | time.getTime() <= new Date(this.form.startTime).getTime() | ||
| 85 | ); | ||
| 86 | } | ||
| 87 | } | ||
| 88 | }, | ||
| 89 | bsmSjsb: '', | ||
| 90 | diaData: [], | ||
| 91 | form: { | ||
| 92 | pcode: '', | ||
| 93 | bwmc: '', | ||
| 94 | startTime: '', | ||
| 95 | endTime: '', | ||
| 96 | rkjg: '', | ||
| 97 | currentPage: 1 | ||
| 98 | }, | ||
| 99 | rules: { | ||
| 100 | pcode: [ | ||
| 101 | { required: true, message: '响应结果', trigger: 'change' } | ||
| 102 | ], | ||
| 103 | startTime: [ | ||
| 104 | { required: true, message: '开始日期', trigger: 'change' } | ||
| 105 | ], | ||
| 106 | endTime: [ | ||
| 107 | { required: true, message: '结束日期', trigger: 'change' } | ||
| 108 | ], | ||
| 109 | |||
| 110 | }, | ||
| 111 | tableData: { | ||
| 112 | columns: [{ | ||
| 113 | label: '序号', | ||
| 114 | type: 'index', | ||
| 115 | width: '50', | ||
| 116 | index: this.indexMethod, | ||
| 117 | }].concat(data.columns()), | ||
| 118 | data: [] | ||
| 119 | }, | ||
| 120 | pageData: { | ||
| 121 | total: 0, | ||
| 122 | pageSize: 15, | ||
| 123 | current: 1, | ||
| 124 | }, | ||
| 125 | // 行政区 | ||
| 126 | xzqOptions: [ | ||
| 127 | { | ||
| 128 | value: '632321', | ||
| 129 | label: '同仁县' | ||
| 130 | }, | ||
| 131 | { | ||
| 132 | value: '632322', | ||
| 133 | label: '尖扎县' | ||
| 134 | }, | ||
| 135 | { | ||
| 136 | value: '632323', | ||
| 137 | label: '泽库县' | ||
| 138 | }, | ||
| 139 | { | ||
| 140 | value: '632324', | ||
| 141 | label: '河南县' | ||
| 142 | } | ||
| 143 | ] | ||
| 144 | } | ||
| 145 | }, | ||
| 146 | methods: { | ||
| 147 | resetForm () { | ||
| 148 | this.$refs.ruleForm.resetFields(); | ||
| 149 | }, | ||
| 150 | async featchData () { | ||
| 151 | try { | ||
| 152 | this.form = Object.assign(this.form, this.formData) | ||
| 153 | let { result: { list, total, pages: pageSize, pageNum: current } | ||
| 154 | } = await journal.querySjsbTask(this.form) | ||
| 155 | if (this.$store.state.dictionaries.addDic) { | ||
| 156 | this.tableData.data = list | ||
| 157 | this.pageData = { | ||
| 158 | pageSize, | ||
| 159 | current, | ||
| 160 | total | ||
| 161 | } | ||
| 162 | } else { | ||
| 163 | this.featchData() | ||
| 164 | } | ||
| 165 | } catch (error) { | ||
| 166 | this.message = error | ||
| 167 | } | ||
| 168 | } | ||
| 169 | } | ||
| 170 | } | ||
| 171 | </script> | ||
| 172 | <style scoped lang="scss"> | ||
| 173 | @import "~@/styles/public.scss"; | ||
| 174 | @import "./index.scss"; | ||
| 175 | </style> | ||
| 176 |
-
Please register or sign in to post a comment