按钮调整
Showing
12 changed files
with
162 additions
and
131 deletions
| ... | @@ -4,17 +4,31 @@ | ... | @@ -4,17 +4,31 @@ |
| 4 | * @LastEditTime: 2023-04-04 09:52:39 | 4 | * @LastEditTime: 2023-04-04 09:52:39 |
| 5 | --> | 5 | --> |
| 6 | <template> | 6 | <template> |
| 7 | <el-input type="textarea" :rows="6" disabled placeholder="配置参数" v-model="resultInfo"> | 7 | <el-input type="textarea" :rows="6" disabled placeholder="配置参数" v-model="xml"> |
| 8 | </el-input> | 8 | </el-input> |
| 9 | </template> | 9 | </template> |
| 10 | <script> | 10 | <script> |
| 11 | // 引入json编译器 | 11 | // 引入json编译器 |
| 12 | import { formateXml } from "@/utils/setxml.js" | ||
| 12 | export default { | 13 | export default { |
| 14 | data () { | ||
| 15 | return { | ||
| 16 | xml:"" | ||
| 17 | } | ||
| 18 | }, | ||
| 13 | props: { | 19 | props: { |
| 14 | resultInfo: { | 20 | resultInfo: { |
| 15 | type: String, | 21 | type: String, |
| 16 | default: '' | 22 | default: '' |
| 17 | } | 23 | } |
| 24 | }, | ||
| 25 | mounted () { | ||
| 26 | this.getxml() | ||
| 27 | }, | ||
| 28 | methods: { | ||
| 29 | getxml(){ | ||
| 30 | this.xml=formateXml(this.resultInfo) | ||
| 31 | }, | ||
| 18 | } | 32 | } |
| 19 | } | 33 | } |
| 20 | </script> | 34 | </script> | ... | ... |
src/utils/setxml.js
0 → 100644
| 1 | //格式化xml代码 | ||
| 2 | export function formateXml(xmlStr) { | ||
| 3 | var text = xmlStr; | ||
| 4 | //使用replace去空格 | ||
| 5 | text = '\n' + text.replace(/(<\w+)(\s.*?>)/g, function ($0, name, props) { | ||
| 6 | return name + ' ' + props.replace(/\s+(\w+=)/g, " $1"); | ||
| 7 | }).replace(/>\s*?</g, ">\n<"); | ||
| 8 | //处理注释 | ||
| 9 | text = text.replace(/\n/g, '\r').replace(/<!--(.+?)-->/g, function ($0, text) { | ||
| 10 | var ret = '<!--' + escape(text) + '-->'; | ||
| 11 | return ret; | ||
| 12 | }).replace(/\r/g, '\n'); | ||
| 13 | //调整格式 以压栈方式递归调整缩进 | ||
| 14 | var rgx = /\n(<(([^\?]).+?)(?:\s|\s*?>|\s*?(\/)>)(?:.*?(?:(?:(\/)>)|(?:<(\/)\2>)))?)/mg; | ||
| 15 | var nodeStack = []; | ||
| 16 | var output = text.replace(rgx, function ($0, all, name, isBegin, isCloseFull1, isCloseFull2, isFull1, isFull2) { | ||
| 17 | var isClosed = (isCloseFull1 == '/') || (isCloseFull2 == '/') || (isFull1 == '/') || (isFull2 == '/'); | ||
| 18 | var prefix = ''; | ||
| 19 | if (isBegin == '!') {//!开头 | ||
| 20 | prefix = setPrefix(nodeStack.length); | ||
| 21 | } else { | ||
| 22 | if (isBegin != '/') {///开头 | ||
| 23 | prefix = setPrefix(nodeStack.length); | ||
| 24 | if (!isClosed) {//非关闭标签 | ||
| 25 | nodeStack.push(name); | ||
| 26 | } | ||
| 27 | } else { | ||
| 28 | nodeStack.pop();//弹栈 | ||
| 29 | prefix = setPrefix(nodeStack.length); | ||
| 30 | } | ||
| 31 | } | ||
| 32 | var ret = '\n' + prefix + all; | ||
| 33 | return ret; | ||
| 34 | }); | ||
| 35 | var prefixSpace = -1; | ||
| 36 | var outputText = output.substring(1); | ||
| 37 | //还原注释内容 | ||
| 38 | outputText = outputText.replace(/\n/g, '\r').replace(/(\s*)<!--(.+?)-->/g, function ($0, prefix, text) { | ||
| 39 | if (prefix.charAt(0) == '\r') | ||
| 40 | prefix = prefix.substring(1); | ||
| 41 | text = unescape(text).replace(/\r/g, '\n'); | ||
| 42 | var ret = '\n' + prefix + '<!--' + text.replace(/^\s*/mg, prefix) + '-->'; | ||
| 43 | return ret; | ||
| 44 | }); | ||
| 45 | outputText = outputText.replace(/\s+$/g, '').replace(/\r/g, '\r\n'); | ||
| 46 | return outputText; | ||
| 47 | } | ||
| 48 | |||
| 49 | //计算头函数 用来缩进 | ||
| 50 | export function setPrefix(prefixIndex) { | ||
| 51 | var result = ''; | ||
| 52 | var span = ' ';//缩进长度 | ||
| 53 | var output = []; | ||
| 54 | for (var i = 0; i < prefixIndex; ++i) { | ||
| 55 | output.push(span); | ||
| 56 | } | ||
| 57 | result = output.join(''); | ||
| 58 | return result; | ||
| 59 | } |
| 1 | <!-- | 1 | <!-- |
| 2 | * @Description :接收报文查询 | 2 | * @Description :接收报文查询 |
| 3 | * @Autor : miaofang | 3 | * @Autor : miaofang |
| 4 | * @LastEditTime : 2023-05-18 13:10:53 | 4 | * @LastEditTime : 2023-06-06 19:42:10 |
| 5 | --> | 5 | --> |
| 6 | <template> | 6 | <template> |
| 7 | <el-dialog :close-on-click-modal="false" top="0" | ||
| 8 | @click="close()" | ||
| 9 | custom-class="dialogBox dataReporting editDialogBox sbdialog commonDialog mainCenter" :visible.sync="dialogVisible" | ||
| 10 | width="92%"> | ||
| 11 | <div slot="title" class="dialog_title" ref="dialogTitle"> | ||
| 12 | 干部信息查询 | ||
| 13 | </div> | ||
| 7 | <!-- 接收报文查询 --> | 14 | <!-- 接收报文查询 --> |
| 8 | <div class="reportLog from-clues dialogCon"> | 15 | <div class="reportLog from-clues dialogCon"> |
| 9 | <!-- 头部搜索 --> | 16 | <!-- 头部搜索 --> |
| ... | @@ -23,7 +30,7 @@ | ... | @@ -23,7 +30,7 @@ |
| 23 | <!-- 按钮操作 --> | 30 | <!-- 按钮操作 --> |
| 24 | <el-col :span="6" class="btnColRight"> | 31 | <el-col :span="6" class="btnColRight"> |
| 25 | <el-form-item> | 32 | <el-form-item> |
| 26 | <btn nativeType="cx" v-if="Object.keys(dataDetail).length == 0" @click="handleSearchResult">查询</btn> | 33 | <btn nativeType="cx" v-if="isshow" @click="handleSearchResult">查询</btn> |
| 27 | </el-form-item> | 34 | </el-form-item> |
| 28 | </el-col> | 35 | </el-col> |
| 29 | </el-row> | 36 | </el-row> |
| ... | @@ -37,6 +44,7 @@ | ... | @@ -37,6 +44,7 @@ |
| 37 | </lb-table> | 44 | </lb-table> |
| 38 | </div> | 45 | </div> |
| 39 | </div> | 46 | </div> |
| 47 | </el-dialog> | ||
| 40 | </template> | 48 | </template> |
| 41 | <script> | 49 | <script> |
| 42 | // 接收报文查询 | 50 | // 接收报文查询 |
| ... | @@ -53,7 +61,7 @@ | ... | @@ -53,7 +61,7 @@ |
| 53 | props: { | 61 | props: { |
| 54 | dataDetail: { | 62 | dataDetail: { |
| 55 | type: Object, | 63 | type: Object, |
| 56 | default: function () { return {} } | 64 | default: {} |
| 57 | } | 65 | } |
| 58 | }, | 66 | }, |
| 59 | watch: { | 67 | watch: { |
| ... | @@ -61,17 +69,26 @@ | ... | @@ -61,17 +69,26 @@ |
| 61 | handler (newName, oldName) { | 69 | handler (newName, oldName) { |
| 62 | let _this = this | 70 | let _this = this |
| 63 | this.$nextTick(() => { | 71 | this.$nextTick(() => { |
| 72 | if(newName.result){ | ||
| 64 | _this.tableData.data = JSON.parse(newName.result) | 73 | _this.tableData.data = JSON.parse(newName.result) |
| 74 | }else{ | ||
| 75 | _this.tableData.data=[] | ||
| 76 | } | ||
| 65 | _this.form.qlrmc = newName.zjmc ? newName.zjmc : "" | 77 | _this.form.qlrmc = newName.zjmc ? newName.zjmc : "" |
| 66 | _this.form.zjh = newName.zjh ? newName.zjh : "" | 78 | _this.form.zjh = newName.zjh ? newName.zjh : "" |
| 79 | _this.btn=newName.btnname | ||
| 67 | }) | 80 | }) |
| 68 | }, | 81 | }, |
| 69 | immediate: true, | 82 | immediate: true, |
| 70 | deep: true | 83 | deep: true |
| 71 | } | 84 | } |
| 72 | }, | 85 | }, |
| 86 | mounted() { | ||
| 87 | }, | ||
| 73 | data () { | 88 | data () { |
| 74 | return { | 89 | return { |
| 90 | dialogVisible: false, | ||
| 91 | isshow:false, | ||
| 75 | pickerOptionsStart: { | 92 | pickerOptionsStart: { |
| 76 | disabledDate: (time) => { | 93 | disabledDate: (time) => { |
| 77 | let endDateVal = this.form.receiveEndTime; | 94 | let endDateVal = this.form.receiveEndTime; |
| ... | @@ -99,22 +116,6 @@ | ... | @@ -99,22 +116,6 @@ |
| 99 | qlrmc: "", // 行政区 | 116 | qlrmc: "", // 行政区 |
| 100 | zjh: "" // 开始日期 | 117 | zjh: "" // 开始日期 |
| 101 | }, | 118 | }, |
| 102 | // 校验规则 | ||
| 103 | rules: { | ||
| 104 | pcode: [{ required: true, message: "请选择行政区", trigger: "change" }], | ||
| 105 | startTime: [ | ||
| 106 | { required: true, message: "请选择开始日期", trigger: "change" }, | ||
| 107 | ], | ||
| 108 | endTime: [ | ||
| 109 | { required: true, message: "请选择结束日期", trigger: "change" }, | ||
| 110 | ], | ||
| 111 | bdcdyh: [ | ||
| 112 | { required: true, message: "不动产单元号", trigger: "change" }, | ||
| 113 | ], | ||
| 114 | ywmc: [{ required: true, message: "业务名称", trigger: "change" }], | ||
| 115 | jcjg: [{ required: true, message: "检查结果", trigger: "change" }], | ||
| 116 | rkjg: [{ required: true, message: "入库结果", trigger: "change" }], | ||
| 117 | }, | ||
| 118 | // 表格数据 | 119 | // 表格数据 |
| 119 | tableData: { | 120 | tableData: { |
| 120 | // 表格头部 | 121 | // 表格头部 |
| ... | @@ -128,17 +129,17 @@ | ... | @@ -128,17 +129,17 @@ |
| 128 | { | 129 | { |
| 129 | prop: 'bdcdyh', | 130 | prop: 'bdcdyh', |
| 130 | label: '不动产单元号', | 131 | label: '不动产单元号', |
| 131 | width: 200 | 132 | width: 220 |
| 132 | }, | 133 | }, |
| 133 | { | 134 | { |
| 134 | prop: "bdcqzh", | 135 | prop: "bdcqzh", |
| 135 | label: "不动产权证号", | 136 | label: "不动产权证号", |
| 136 | width: 160, | 137 | width: 260, |
| 137 | }, | 138 | }, |
| 138 | { | 139 | { |
| 139 | prop: 'djsj', | 140 | prop: 'djsj', |
| 140 | label: '登记时间', | 141 | label: '登记时间', |
| 141 | width: 200 | 142 | width: 220 |
| 142 | }, | 143 | }, |
| 143 | { | 144 | { |
| 144 | prop: "fdzl", | 145 | prop: "fdzl", |
| ... | @@ -168,7 +169,7 @@ | ... | @@ -168,7 +169,7 @@ |
| 168 | { | 169 | { |
| 169 | prop: "zjh", | 170 | prop: "zjh", |
| 170 | label: "证件号", | 171 | label: "证件号", |
| 171 | width: 260, | 172 | width: 280, |
| 172 | }, | 173 | }, |
| 173 | ], | 174 | ], |
| 174 | // 表格列表数据 | 175 | // 表格列表数据 |
| ... | @@ -185,6 +186,13 @@ | ... | @@ -185,6 +186,13 @@ |
| 185 | }; | 186 | }; |
| 186 | }, | 187 | }, |
| 187 | methods: { | 188 | methods: { |
| 189 | sing(str){ | ||
| 190 | this.isshow=str; | ||
| 191 | this.dialogVisible = true | ||
| 192 | }, | ||
| 193 | close(){ | ||
| 194 | this.dialogVisible = false | ||
| 195 | }, | ||
| 188 | //截止日期变化 | 196 | //截止日期变化 |
| 189 | endTimeChange (val) { | 197 | endTimeChange (val) { |
| 190 | this.form.receiveEndTime = timeFormat(new Date(val), true) | 198 | this.form.receiveEndTime = timeFormat(new Date(val), true) |
| ... | @@ -195,6 +203,7 @@ | ... | @@ -195,6 +203,7 @@ |
| 195 | (res) => { | 203 | (res) => { |
| 196 | if (res.code === 200) { | 204 | if (res.code === 200) { |
| 197 | this.tableData.data = res.result | 205 | this.tableData.data = res.result |
| 206 | this.$parent.queryClick() | ||
| 198 | } else { | 207 | } else { |
| 199 | this.$message.warning(res.message) | 208 | this.$message.warning(res.message) |
| 200 | } | 209 | } |
| ... | @@ -204,15 +213,14 @@ | ... | @@ -204,15 +213,14 @@ |
| 204 | // 重置 | 213 | // 重置 |
| 205 | resetForm () { | 214 | resetForm () { |
| 206 | this.$refs.ruleForm.resetFields(); | 215 | this.$refs.ruleForm.resetFields(); |
| 207 | this.form.currentPage = 1 | ||
| 208 | }, | 216 | }, |
| 209 | featchData () { }, | 217 | featchData () { }, |
| 210 | handleSearchResult () { | 218 | handleSearchResult () { |
| 211 | this.queryClickSearch() | 219 | this.queryClickSearch() |
| 220 | |||
| 212 | }, | 221 | }, |
| 213 | // 详情 | 222 | // 详情 |
| 214 | handleDetails (row) { | 223 | |
| 215 | } | ||
| 216 | } | 224 | } |
| 217 | } | 225 | } |
| 218 | </script> | 226 | </script> | ... | ... |
| 1 | <!-- | 1 | <!-- |
| 2 | * @Description :接收报文查询 | 2 | * @Description :接收报文查询 |
| 3 | * @Autor : miaofang | 3 | * @Autor : miaofang |
| 4 | * @LastEditTime : 2023-05-18 13:11:18 | 4 | * @LastEditTime : 2023-06-06 19:40:05 |
| 5 | --> | 5 | --> |
| 6 | <template> | 6 | <template> |
| 7 | <!-- 接收报文查询 --> | 7 | <!-- 接收报文查询 --> |
| ... | @@ -22,7 +22,7 @@ | ... | @@ -22,7 +22,7 @@ |
| 22 | </el-form-item> | 22 | </el-form-item> |
| 23 | </el-col> | 23 | </el-col> |
| 24 | <el-col :span="6"> | 24 | <el-col :span="6"> |
| 25 | <el-form-item label="查询证件名称" prop="zjmc"> | 25 | <el-form-item label="查询证件名称" prop="zjmc" label-width="130px"> |
| 26 | <el-input v-model.trim="form.zjmc" clearable class="width100" placeholder="业务流水号"></el-input> | 26 | <el-input v-model.trim="form.zjmc" clearable class="width100" placeholder="业务流水号"></el-input> |
| 27 | </el-form-item> | 27 | </el-form-item> |
| 28 | </el-col> | 28 | </el-col> |
| ... | @@ -44,14 +44,9 @@ | ... | @@ -44,14 +44,9 @@ |
| 44 | </lb-table> | 44 | </lb-table> |
| 45 | </div> | 45 | </div> |
| 46 | <!-- 编辑 --> | 46 | <!-- 编辑 --> |
| 47 | <el-dialog :close-on-click-modal="false" top="0" | 47 | |
| 48 | custom-class="dialogBox dataReporting editDialogBox sbdialog commonDialog mainCenter" :visible.sync="dialogVisible" | ||
| 49 | width="92%"> | ||
| 50 | <div slot="title" class="dialog_title" ref="dialogTitle"> | ||
| 51 | 干部信息查询 | ||
| 52 | </div> | ||
| 53 | <search-result ref="resultData" :dataDetail="dataDetail"></search-result> | 48 | <search-result ref="resultData" :dataDetail="dataDetail"></search-result> |
| 54 | </el-dialog> | 49 | |
| 55 | </div> | 50 | </div> |
| 56 | </template> | 51 | </template> |
| 57 | 52 | ||
| ... | @@ -76,7 +71,7 @@ | ... | @@ -76,7 +71,7 @@ |
| 76 | }, | 71 | }, |
| 77 | data () { | 72 | data () { |
| 78 | return { | 73 | return { |
| 79 | dialogVisible: false, | 74 | |
| 80 | pickerOptionsStart: { | 75 | pickerOptionsStart: { |
| 81 | disabledDate: (time) => { | 76 | disabledDate: (time) => { |
| 82 | let endDateVal = this.form.receiveEndTime; | 77 | let endDateVal = this.form.receiveEndTime; |
| ... | @@ -204,12 +199,13 @@ | ... | @@ -204,12 +199,13 @@ |
| 204 | // 详情 | 199 | // 详情 |
| 205 | handleDetails (row) { | 200 | handleDetails (row) { |
| 206 | editSearchRecord(row.bsm).then(res => { | 201 | editSearchRecord(row.bsm).then(res => { |
| 207 | this.dialogVisible = true | ||
| 208 | this.dataDetail = res.result | 202 | this.dataDetail = res.result |
| 203 | this.$refs.resultData.sing(false); | ||
| 209 | }) | 204 | }) |
| 210 | }, | 205 | }, |
| 211 | save () { | 206 | save () { |
| 212 | this.dialogVisible = true | 207 | this.dataDetail={} |
| 208 | this.$refs.resultData.sing(true); | ||
| 213 | } | 209 | } |
| 214 | } | 210 | } |
| 215 | } | 211 | } | ... | ... |
| 1 | <!-- | 1 | <!-- |
| 2 | * @Description :接收报文查询 | 2 | * @Description :接收报文查询 |
| 3 | * @Autor : miaofang | 3 | * @Autor : miaofang |
| 4 | * @LastEditTime : 2023-05-18 13:12:04 | 4 | * @LastEditTime : 2023-06-06 11:14:06 |
| 5 | --> | 5 | --> |
| 6 | <template> | 6 | <template> |
| 7 | <!-- 接收报文查询 --> | 7 | <!-- 接收报文查询 --> |
| ... | @@ -198,17 +198,7 @@ | ... | @@ -198,17 +198,7 @@ |
| 198 | render: (h, scope) => { | 198 | render: (h, scope) => { |
| 199 | return ( | 199 | return ( |
| 200 | <div> | 200 | <div> |
| 201 | { | 201 | |
| 202 | scope.row.receiveState == 2 ? | ||
| 203 | <el-button | ||
| 204 | type="text" | ||
| 205 | class='successColor' | ||
| 206 | onClick={() => { | ||
| 207 | this.handleDetails(scope.row); | ||
| 208 | }} | ||
| 209 | > | ||
| 210 | 修改 | ||
| 211 | </el-button> : | ||
| 212 | <el-button | 202 | <el-button |
| 213 | type="text" | 203 | type="text" |
| 214 | class='btnColor' | 204 | class='btnColor' |
| ... | @@ -218,7 +208,7 @@ | ... | @@ -218,7 +208,7 @@ |
| 218 | > | 208 | > |
| 219 | 详情 | 209 | 详情 |
| 220 | </el-button> | 210 | </el-button> |
| 221 | } | 211 | |
| 222 | </div> | 212 | </div> |
| 223 | ) | 213 | ) |
| 224 | } | 214 | } |
| ... | @@ -320,11 +310,8 @@ | ... | @@ -320,11 +310,8 @@ |
| 320 | this.title = Title | 310 | this.title = Title |
| 321 | } | 311 | } |
| 322 | this.$refs.editLog.isShow(row); | 312 | this.$refs.editLog.isShow(row); |
| 323 | if (row.receiveState == 2) { | ||
| 324 | this.$store.dispatch('business/setReportLogEdit') | ||
| 325 | } else { | ||
| 326 | this.$store.dispatch('business/setEdit') | 313 | this.$store.dispatch('business/setEdit') |
| 327 | } | 314 | |
| 328 | }, | 315 | }, |
| 329 | } | 316 | } |
| 330 | } | 317 | } | ... | ... |
| ... | @@ -36,7 +36,7 @@ class data { | ... | @@ -36,7 +36,7 @@ class data { |
| 36 | label: '业务号', | 36 | label: '业务号', |
| 37 | render: (h, scope) => { | 37 | render: (h, scope) => { |
| 38 | return ( | 38 | return ( |
| 39 | <el-input value={scope.row[scope.column.property]} onInput={(val) => { scope.row[scope.column.property] = val }}></el-input> | 39 | <el-input disabled value={scope.row[scope.column.property]} onInput={(val) => { scope.row[scope.column.property] = val }}></el-input> |
| 40 | ) | 40 | ) |
| 41 | } | 41 | } |
| 42 | }, | 42 | }, |
| ... | @@ -45,7 +45,7 @@ class data { | ... | @@ -45,7 +45,7 @@ class data { |
| 45 | label: '登记类型', | 45 | label: '登记类型', |
| 46 | render: (h, scope) => { | 46 | render: (h, scope) => { |
| 47 | return ( | 47 | return ( |
| 48 | <el-input value={scope.row[scope.column.property]} onInput={(val) => { scope.row[scope.column.property] = val }}></el-input> | 48 | <el-input disabled value={scope.row[scope.column.property]} onInput={(val) => { scope.row[scope.column.property] = val }}></el-input> |
| 49 | ) | 49 | ) |
| 50 | } | 50 | } |
| 51 | }, | 51 | }, |
| ... | @@ -54,7 +54,7 @@ class data { | ... | @@ -54,7 +54,7 @@ class data { |
| 54 | label: '权利类型', | 54 | label: '权利类型', |
| 55 | render: (h, scope) => { | 55 | render: (h, scope) => { |
| 56 | return ( | 56 | return ( |
| 57 | <el-input value={scope.row[scope.column.property]} onInput={(val) => { scope.row[scope.column.property] = val }}></el-input> | 57 | <el-input disabled value={scope.row[scope.column.property]} onInput={(val) => { scope.row[scope.column.property] = val }}></el-input> |
| 58 | ) | 58 | ) |
| 59 | } | 59 | } |
| 60 | }, | 60 | }, |
| ... | @@ -63,7 +63,7 @@ class data { | ... | @@ -63,7 +63,7 @@ class data { |
| 63 | label: '不动产单元号', | 63 | label: '不动产单元号', |
| 64 | render: (h, scope) => { | 64 | render: (h, scope) => { |
| 65 | return ( | 65 | return ( |
| 66 | <el-input value={scope.row[scope.column.property]} onInput={(val) => { scope.row[scope.column.property] = val }}></el-input> | 66 | <el-input disabled value={scope.row[scope.column.property]} onInput={(val) => { scope.row[scope.column.property] = val }}></el-input> |
| 67 | ) | 67 | ) |
| 68 | } | 68 | } |
| 69 | }, | 69 | }, |
| ... | @@ -72,7 +72,7 @@ class data { | ... | @@ -72,7 +72,7 @@ class data { |
| 72 | label: '证书证明号', | 72 | label: '证书证明号', |
| 73 | render: (h, scope) => { | 73 | render: (h, scope) => { |
| 74 | return ( | 74 | return ( |
| 75 | <el-input value={scope.row[scope.column.property]} onInput={(val) => { scope.row[scope.column.property] = val }}></el-input> | 75 | <el-input disabled value={scope.row[scope.column.property]} onInput={(val) => { scope.row[scope.column.property] = val }}></el-input> |
| 76 | ) | 76 | ) |
| 77 | } | 77 | } |
| 78 | }, | 78 | }, |
| ... | @@ -81,7 +81,7 @@ class data { | ... | @@ -81,7 +81,7 @@ class data { |
| 81 | label: '是否上报', | 81 | label: '是否上报', |
| 82 | render: (h, scope) => { | 82 | render: (h, scope) => { |
| 83 | return ( | 83 | return ( |
| 84 | <el-select class="width100" value={scope.row[scope.column.property]} | 84 | <el-select disabled class="width100" value={scope.row[scope.column.property]} |
| 85 | onChange={(val) => { scope.row[scope.column.property] = val }}> | 85 | onChange={(val) => { scope.row[scope.column.property] = val }}> |
| 86 | { | 86 | { |
| 87 | store.getters.dicData['A6'].map(option => { | 87 | store.getters.dicData['A6'].map(option => { |
| ... | @@ -99,7 +99,7 @@ class data { | ... | @@ -99,7 +99,7 @@ class data { |
| 99 | label: '报文ID', | 99 | label: '报文ID', |
| 100 | render: (h, scope) => { | 100 | render: (h, scope) => { |
| 101 | return ( | 101 | return ( |
| 102 | <el-input value={scope.row[scope.column.property]} onInput={(val) => { scope.row[scope.column.property] = val }}></el-input> | 102 | <el-input disabled value={scope.row[scope.column.property]} onInput={(val) => { scope.row[scope.column.property] = val }}></el-input> |
| 103 | ) | 103 | ) |
| 104 | } | 104 | } |
| 105 | } | 105 | } | ... | ... |
| ... | @@ -35,7 +35,7 @@ class data { | ... | @@ -35,7 +35,7 @@ class data { |
| 35 | label: '业务号', | 35 | label: '业务号', |
| 36 | render: (h, scope) => { | 36 | render: (h, scope) => { |
| 37 | return ( | 37 | return ( |
| 38 | <el-input value={scope.row[scope.column.property]} onInput={(val) => { scope.row[scope.column.property] = val }}></el-input> | 38 | <el-input disabled value={scope.row[scope.column.property]} onInput={(val) => { scope.row[scope.column.property] = val }}></el-input> |
| 39 | ) | 39 | ) |
| 40 | } | 40 | } |
| 41 | }, | 41 | }, |
| ... | @@ -44,7 +44,7 @@ class data { | ... | @@ -44,7 +44,7 @@ class data { |
| 44 | label: '不动产单元号', | 44 | label: '不动产单元号', |
| 45 | render: (h, scope) => { | 45 | render: (h, scope) => { |
| 46 | return ( | 46 | return ( |
| 47 | <el-input value={scope.row[scope.column.property]} onInput={(val) => { scope.row[scope.column.property] = val }}></el-input> | 47 | <el-input disabled value={scope.row[scope.column.property]} onInput={(val) => { scope.row[scope.column.property] = val }}></el-input> |
| 48 | ) | 48 | ) |
| 49 | } | 49 | } |
| 50 | }, | 50 | }, |
| ... | @@ -53,7 +53,7 @@ class data { | ... | @@ -53,7 +53,7 @@ class data { |
| 53 | label: '报文ID', | 53 | label: '报文ID', |
| 54 | render: (h, scope) => { | 54 | render: (h, scope) => { |
| 55 | return ( | 55 | return ( |
| 56 | <el-input value={scope.row[scope.column.property]} onInput={(val) => { scope.row[scope.column.property] = val }}></el-input> | 56 | <el-input disabled value={scope.row[scope.column.property]} onInput={(val) => { scope.row[scope.column.property] = val }}></el-input> |
| 57 | ) | 57 | ) |
| 58 | } | 58 | } |
| 59 | } | 59 | } | ... | ... |
| 1 | <!-- | 1 | <!-- |
| 2 | * @Description :修改登簿日志弹窗 | 2 | * @Description :修改登簿日志弹窗 |
| 3 | * @Autor : miaofang | 3 | * @Autor : miaofang |
| 4 | * @LastEditTime : 2023-05-18 13:16:22 | 4 | * @LastEditTime : 2023-06-06 14:17:09 |
| 5 | --> | 5 | --> |
| 6 | <template> | 6 | <template> |
| 7 | <!-- 修改登簿日志弹窗 --> | 7 | <!-- 修改登簿日志弹窗 --> |
| ... | @@ -48,54 +48,54 @@ | ... | @@ -48,54 +48,54 @@ |
| 48 | </el-col> | 48 | </el-col> |
| 49 | <el-col :span="4"> | 49 | <el-col :span="4"> |
| 50 | <span>首次登记量:</span> | 50 | <span>首次登记量:</span> |
| 51 | <el-input v-model="registerInfo.FIRSTREG" oninput="if(value.length > 6) value=value.slice(0, 6)" | 51 | <el-input v-model="registerInfo.FIRSTREG" disabled oninput="if(value.length > 6) value=value.slice(0, 6)" |
| 52 | type="number"></el-input> | 52 | type="number"></el-input> |
| 53 | </el-col> | 53 | </el-col> |
| 54 | <el-col :span="4"> | 54 | <el-col :span="4"> |
| 55 | <span>转移登记量:</span> | 55 | <span>转移登记量:</span> |
| 56 | <el-input v-model="registerInfo.TRANSFERREG" oninput="if(value.length > 6) value=value.slice(0, 6)" | 56 | <el-input v-model="registerInfo.TRANSFERREG" disabled oninput="if(value.length > 6) value=value.slice(0, 6)" |
| 57 | type="number"></el-input> | 57 | type="number"></el-input> |
| 58 | </el-col> | 58 | </el-col> |
| 59 | <el-col :span="4"> | 59 | <el-col :span="4"> |
| 60 | <span>变更登记量:</span> | 60 | <span>变更登记量:</span> |
| 61 | <el-input v-model="registerInfo.CHANGEREG" oninput="if(value.length > 6) value=value.slice(0, 6)" | 61 | <el-input v-model="registerInfo.CHANGEREG" disabled oninput="if(value.length > 6) value=value.slice(0, 6)" |
| 62 | type="number"></el-input> | 62 | type="number"></el-input> |
| 63 | </el-col> | 63 | </el-col> |
| 64 | <el-col :span="4"> | 64 | <el-col :span="4"> |
| 65 | <span>注销登记量:</span> | 65 | <span>注销登记量:</span> |
| 66 | <el-input v-model="registerInfo.LOGOUTREG" oninput="if(value.length > 6) value=value.slice(0, 6)" | 66 | <el-input v-model="registerInfo.LOGOUTREG" disabled oninput="if(value.length > 6) value=value.slice(0, 6)" |
| 67 | type="number"></el-input> | 67 | type="number"></el-input> |
| 68 | </el-col> | 68 | </el-col> |
| 69 | <el-col :span="4"> | 69 | <el-col :span="4"> |
| 70 | <span>更正登记量:</span> | 70 | <span>更正登记量:</span> |
| 71 | <el-input v-model="registerInfo.RIVISEREG" oninput="if(value.length > 6) value=value.slice(0, 6)" | 71 | <el-input v-model="registerInfo.RIVISEREG" disabled oninput="if(value.length > 6) value=value.slice(0, 6)" |
| 72 | type="number"></el-input> | 72 | type="number"></el-input> |
| 73 | </el-col> | 73 | </el-col> |
| 74 | </el-row> | 74 | </el-row> |
| 75 | <el-row class="dialog-from_header item-content-input"> | 75 | <el-row class="dialog-from_header item-content-input"> |
| 76 | <el-col :span="4"> | 76 | <el-col :span="4"> |
| 77 | <span>异议登记量:</span> | 77 | <span>异议登记量:</span> |
| 78 | <el-input v-model="registerInfo.DISSENTINGREG" oninput="if(value.length > 6) value=value.slice(0, 6)" | 78 | <el-input v-model="registerInfo.DISSENTINGREG" disabled oninput="if(value.length > 6) value=value.slice(0, 6)" |
| 79 | type="number"></el-input> | 79 | type="number"></el-input> |
| 80 | </el-col> | 80 | </el-col> |
| 81 | <el-col :span="4"> | 81 | <el-col :span="4"> |
| 82 | <span>预告登记量:</span> | 82 | <span>预告登记量:</span> |
| 83 | <el-input v-model="registerInfo.ADVANCEREG" oninput="if(value.length > 6) value=value.slice(0, 6)" | 83 | <el-input v-model="registerInfo.ADVANCEREG" disabled oninput="if(value.length > 6) value=value.slice(0, 6)" |
| 84 | type="number"></el-input> | 84 | type="number"></el-input> |
| 85 | </el-col> | 85 | </el-col> |
| 86 | <el-col :span="4"> | 86 | <el-col :span="4"> |
| 87 | <span>查封登记量:</span> | 87 | <span>查封登记量:</span> |
| 88 | <el-input v-model="registerInfo.SEIZEREG" oninput="if(value.length > 6) value=value.slice(0, 6)" | 88 | <el-input v-model="registerInfo.SEIZEREG" disabled oninput="if(value.length > 6) value=value.slice(0, 6)" |
| 89 | type="number"></el-input> | 89 | type="number"></el-input> |
| 90 | </el-col> | 90 | </el-col> |
| 91 | <el-col :span="4"> | 91 | <el-col :span="4"> |
| 92 | <span>其他登记:</span> | 92 | <span>其他登记:</span> |
| 93 | <el-input v-model="registerInfo.otherReg" oninput="if(value.length > 6) value=value.slice(0, 6)" | 93 | <el-input v-model="registerInfo.otherReg" disabled oninput="if(value.length > 6) value=value.slice(0, 6)" |
| 94 | type="number"></el-input> | 94 | type="number"></el-input> |
| 95 | </el-col> | 95 | </el-col> |
| 96 | <el-col :span="4"> | 96 | <el-col :span="4"> |
| 97 | <span>业务类型量:</span> | 97 | <span>业务类型量:</span> |
| 98 | <el-input v-model="registerInfo.BUSINESSTYPECOUNT" oninput="if(value.length > 6) value=value.slice(0, 6)" | 98 | <el-input v-model="registerInfo.BUSINESSTYPECOUNT" disabled oninput="if(value.length > 6) value=value.slice(0, 6)" |
| 99 | type="number"></el-input> | 99 | type="number"></el-input> |
| 100 | </el-col> | 100 | </el-col> |
| 101 | <el-col :span="4" style="border:none"> | 101 | <el-col :span="4" style="border:none"> |
| ... | @@ -112,54 +112,54 @@ | ... | @@ -112,54 +112,54 @@ |
| 112 | </el-col> | 112 | </el-col> |
| 113 | <el-col :span="4"> | 113 | <el-col :span="4"> |
| 114 | <span>首次登记量:</span> | 114 | <span>首次登记量:</span> |
| 115 | <el-input v-model="accessInfo.FIRSTREG" oninput="if(value.length > 6) value=value.slice(0, 6)" | 115 | <el-input v-model="accessInfo.FIRSTREG" disabled oninput="if(value.length > 6) value=value.slice(0, 6)" |
| 116 | type="number"></el-input> | 116 | type="number"></el-input> |
| 117 | </el-col> | 117 | </el-col> |
| 118 | <el-col :span="4"> | 118 | <el-col :span="4"> |
| 119 | <span>转移登记量:</span> | 119 | <span>转移登记量:</span> |
| 120 | <el-input v-model="accessInfo.TRANSFERREG" oninput="if(value.length > 6) value=value.slice(0, 6)" | 120 | <el-input v-model="accessInfo.TRANSFERREG" disabled oninput="if(value.length > 6) value=value.slice(0, 6)" |
| 121 | type="number"></el-input> | 121 | type="number"></el-input> |
| 122 | </el-col> | 122 | </el-col> |
| 123 | <el-col :span="4"> | 123 | <el-col :span="4"> |
| 124 | <span>变更登记量:</span> | 124 | <span>变更登记量:</span> |
| 125 | <el-input v-model="accessInfo.CHANGEREG" oninput="if(value.length > 6) value=value.slice(0, 6)" | 125 | <el-input v-model="accessInfo.CHANGEREG" disabled oninput="if(value.length > 6) value=value.slice(0, 6)" |
| 126 | type="number"></el-input> | 126 | type="number"></el-input> |
| 127 | </el-col> | 127 | </el-col> |
| 128 | <el-col :span="4"> | 128 | <el-col :span="4"> |
| 129 | <span>注销登记量:</span> | 129 | <span>注销登记量:</span> |
| 130 | <el-input v-model="accessInfo.LOGOUTREG" oninput="if(value.length > 6) value=value.slice(0, 6)" | 130 | <el-input v-model="accessInfo.LOGOUTREG" disabled oninput="if(value.length > 6) value=value.slice(0, 6)" |
| 131 | type="number"></el-input> | 131 | type="number"></el-input> |
| 132 | </el-col> | 132 | </el-col> |
| 133 | <el-col :span="4"> | 133 | <el-col :span="4"> |
| 134 | <span>更正登记量:</span> | 134 | <span>更正登记量:</span> |
| 135 | <el-input v-model="accessInfo.RIVISEREG" oninput="if(value.length > 6) value=value.slice(0, 6)" | 135 | <el-input v-model="accessInfo.RIVISEREG" disabled oninput="if(value.length > 6) value=value.slice(0, 6)" |
| 136 | type="number"></el-input> | 136 | type="number"></el-input> |
| 137 | </el-col> | 137 | </el-col> |
| 138 | </el-row> | 138 | </el-row> |
| 139 | <el-row class="dialog-from_header item-content-input"> | 139 | <el-row class="dialog-from_header item-content-input"> |
| 140 | <el-col :span="4"> | 140 | <el-col :span="4"> |
| 141 | <span>异议登记量:</span> | 141 | <span>异议登记量:</span> |
| 142 | <el-input v-model="accessInfo.DISSENTINGREG" oninput="if(value.length > 6) value=value.slice(0, 6)" | 142 | <el-input v-model="accessInfo.DISSENTINGREG" disabled oninput="if(value.length > 6) value=value.slice(0, 6)" |
| 143 | type="number"></el-input> | 143 | type="number"></el-input> |
| 144 | </el-col> | 144 | </el-col> |
| 145 | <el-col :span="4"> | 145 | <el-col :span="4"> |
| 146 | <span>预告登记量:</span> | 146 | <span>预告登记量:</span> |
| 147 | <el-input v-model="accessInfo.ADVANCEREG" oninput="if(value.length > 6) value=value.slice(0, 6)" | 147 | <el-input v-model="accessInfo.ADVANCEREG" disabled oninput="if(value.length > 6) value=value.slice(0, 6)" |
| 148 | type="number"></el-input> | 148 | type="number"></el-input> |
| 149 | </el-col> | 149 | </el-col> |
| 150 | <el-col :span="4"> | 150 | <el-col :span="4"> |
| 151 | <span>查封登记量:</span> | 151 | <span>查封登记量:</span> |
| 152 | <el-input v-model="accessInfo.SEIZEREG" oninput="if(value.length > 6) value=value.slice(0, 6)" | 152 | <el-input v-model="accessInfo.SEIZEREG" disabled oninput="if(value.length > 6) value=value.slice(0, 6)" |
| 153 | type="number"></el-input> | 153 | type="number"></el-input> |
| 154 | </el-col> | 154 | </el-col> |
| 155 | <el-col :span="4"> | 155 | <el-col :span="4"> |
| 156 | <span>其他登记:</span> | 156 | <span>其他登记:</span> |
| 157 | <el-input v-model="accessInfo.otherReg" oninput="if(value.length > 6) value=value.slice(0, 6)" | 157 | <el-input v-model="accessInfo.otherReg" disabled oninput="if(value.length > 6) value=value.slice(0, 6)" |
| 158 | type="number"></el-input> | 158 | type="number"></el-input> |
| 159 | </el-col> | 159 | </el-col> |
| 160 | <el-col :span="4"> | 160 | <el-col :span="4"> |
| 161 | <span>业务类型量:</span> | 161 | <span>业务类型量:</span> |
| 162 | <el-input v-model="accessInfo.BUSINESSTYPECOUNT" oninput="if(value.length > 6) value=value.slice(0, 6)" | 162 | <el-input v-model="accessInfo.BUSINESSTYPECOUNT" disabled oninput="if(value.length > 6) value=value.slice(0, 6)" |
| 163 | type="number"></el-input> | 163 | type="number"></el-input> |
| 164 | </el-col> | 164 | </el-col> |
| 165 | <el-col :span="4" style="border:none"> | 165 | <el-col :span="4" style="border:none"> |
| ... | @@ -188,14 +188,6 @@ | ... | @@ -188,14 +188,6 @@ |
| 188 | </div> | 188 | </div> |
| 189 | </div> | 189 | </div> |
| 190 | </div> | 190 | </div> |
| 191 | <div class="d-center" v-if="titleName == 'sjmx'"> | ||
| 192 | <btn nativeType="cz" @click="dialogVisible = false">取 消</btn> | ||
| 193 | <btn nativeType="cx" @click="submitForm">保 存</btn> | ||
| 194 | </div> | ||
| 195 | <div class="d-center" v-if="!$store.state.business.Edit && titleName == 'xml'"> | ||
| 196 | <btn nativeType="cx" @click="handleExtract">再次抽取</btn> | ||
| 197 | <btn nativeType="cx" @click="handleResubmit">重新上报</btn> | ||
| 198 | </div> | ||
| 199 | </el-dialog> | 191 | </el-dialog> |
| 200 | </template> | 192 | </template> |
| 201 | 193 | ... | ... |
| 1 | <!-- | 1 | <!-- |
| 2 | * @Description :登簿日志查询 | 2 | * @Description :登簿日志查询 |
| 3 | * @Autor : miaofang | 3 | * @Autor : miaofang |
| 4 | * @LastEditTime : 2023-05-18 13:16:37 | 4 | * @LastEditTime : 2023-06-06 13:57:49 |
| 5 | --> | 5 | --> |
| 6 | <template> | 6 | <template> |
| 7 | <!-- 登簿日志查询 --> | 7 | <!-- 登簿日志查询 --> |
| ... | @@ -151,7 +151,7 @@ | ... | @@ -151,7 +151,7 @@ |
| 151 | // 编辑 | 151 | // 编辑 |
| 152 | handleEdit (row) { | 152 | handleEdit (row) { |
| 153 | this.$refs.editLog.isShow(row); | 153 | this.$refs.editLog.isShow(row); |
| 154 | this.$store.dispatch('business/setReportLogEdit') | 154 | this.$store.dispatch('business/setEdit') |
| 155 | } | 155 | } |
| 156 | }, | 156 | }, |
| 157 | destroyed () { | 157 | destroyed () { | ... | ... |
| ... | @@ -162,17 +162,7 @@ | ... | @@ -162,17 +162,7 @@ |
| 162 | render: (h, scope) => { | 162 | render: (h, scope) => { |
| 163 | return ( | 163 | return ( |
| 164 | <div> | 164 | <div> |
| 165 | { | 165 | |
| 166 | scope.row.exchangeState == 2 ? | ||
| 167 | <el-button | ||
| 168 | type="text" | ||
| 169 | class='successColor' | ||
| 170 | onClick={() => { | ||
| 171 | this.handleDetail(scope.row); | ||
| 172 | }} | ||
| 173 | > | ||
| 174 | 修改 | ||
| 175 | </el-button> : | ||
| 176 | <el-button | 166 | <el-button |
| 177 | class='btnColor' | 167 | class='btnColor' |
| 178 | type="text" | 168 | type="text" |
| ... | @@ -182,7 +172,7 @@ | ... | @@ -182,7 +172,7 @@ |
| 182 | > | 172 | > |
| 183 | 详情 | 173 | 详情 |
| 184 | </el-button> | 174 | </el-button> |
| 185 | } | 175 | |
| 186 | 176 | ||
| 187 | </div> | 177 | </div> |
| 188 | ); | 178 | ); |
| ... | @@ -220,11 +210,9 @@ | ... | @@ -220,11 +210,9 @@ |
| 220 | handleDetail (row) { | 210 | handleDetail (row) { |
| 221 | this.title = row.rectypeName; | 211 | this.title = row.rectypeName; |
| 222 | this.$refs.editLog.isShow(row); | 212 | this.$refs.editLog.isShow(row); |
| 223 | if (row.exchangeState == 2) { | 213 | |
| 224 | this.$store.dispatch('business/setReportLogEdit') | ||
| 225 | } else { | ||
| 226 | this.$store.dispatch('business/setEdit') | 214 | this.$store.dispatch('business/setEdit') |
| 227 | } | 215 | |
| 228 | }, | 216 | }, |
| 229 | // 重置 | 217 | // 重置 |
| 230 | resetForm () { | 218 | resetForm () { | ... | ... |
| 1 | <!-- | 1 | <!-- |
| 2 | * @Description :上报报文查询 | 2 | * @Description :上报报文查询 |
| 3 | * @Autor : miaofang | 3 | * @Autor : miaofang |
| 4 | * @LastEditTime : 2023-05-18 13:17:46 | 4 | * @LastEditTime : 2023-06-06 13:38:08 |
| 5 | --> | 5 | --> |
| 6 | <template> | 6 | <template> |
| 7 | <div class="from-clues"> | 7 | <div class="from-clues"> |
| ... | @@ -181,17 +181,7 @@ | ... | @@ -181,17 +181,7 @@ |
| 181 | render: (h, scope) => { | 181 | render: (h, scope) => { |
| 182 | return ( | 182 | return ( |
| 183 | <div> | 183 | <div> |
| 184 | { | 184 | |
| 185 | scope.row.exchangeState == 2 ? | ||
| 186 | <el-button | ||
| 187 | type="text" | ||
| 188 | class='successColor' | ||
| 189 | onClick={() => { | ||
| 190 | this.handleDetail(scope.row); | ||
| 191 | }} | ||
| 192 | > | ||
| 193 | 修改 | ||
| 194 | </el-button> : | ||
| 195 | <el-button | 185 | <el-button |
| 196 | class='btnColor' | 186 | class='btnColor' |
| 197 | type="text" | 187 | type="text" |
| ... | @@ -201,7 +191,7 @@ | ... | @@ -201,7 +191,7 @@ |
| 201 | > | 191 | > |
| 202 | 详情 | 192 | 详情 |
| 203 | </el-button> | 193 | </el-button> |
| 204 | } | 194 | |
| 205 | 195 | ||
| 206 | </div> | 196 | </div> |
| 207 | ); | 197 | ); |
| ... | @@ -239,11 +229,8 @@ | ... | @@ -239,11 +229,8 @@ |
| 239 | handleDetail (row) { | 229 | handleDetail (row) { |
| 240 | this.title = row.rectypeName; | 230 | this.title = row.rectypeName; |
| 241 | this.$refs.editLog.isShow(row); | 231 | this.$refs.editLog.isShow(row); |
| 242 | if (row.exchangeState == 2) { | ||
| 243 | this.$store.dispatch('business/setReportLogEdit') | ||
| 244 | } else { | ||
| 245 | this.$store.dispatch('business/setEdit') | 232 | this.$store.dispatch('business/setEdit') |
| 246 | } | 233 | |
| 247 | }, | 234 | }, |
| 248 | // 重置 | 235 | // 重置 |
| 249 | resetForm () { | 236 | resetForm () { | ... | ... |
-
Please register or sign in to post a comment