style:业务申请
Showing
15 changed files
with
174 additions
and
171 deletions
| ... | @@ -11,8 +11,7 @@ | ... | @@ -11,8 +11,7 @@ |
| 11 | maxlength="28" | 11 | maxlength="28" |
| 12 | v-model="queryForm.bdcdyh" | 12 | v-model="queryForm.bdcdyh" |
| 13 | clearable | 13 | clearable |
| 14 | class="width200px" | 14 | class="width200px"></el-input> |
| 15 | ></el-input> | ||
| 16 | </el-form-item> | 15 | </el-form-item> |
| 17 | </el-col> | 16 | </el-col> |
| 18 | <el-col :span="8"> | 17 | <el-col :span="8"> |
| ... | @@ -26,8 +25,7 @@ | ... | @@ -26,8 +25,7 @@ |
| 26 | placeholder="请输入不动产权证号" | 25 | placeholder="请输入不动产权证号" |
| 27 | v-model="queryForm.cfwh" | 26 | v-model="queryForm.cfwh" |
| 28 | clearable | 27 | clearable |
| 29 | class="width200px" | 28 | class="width200px"></el-input> |
| 30 | ></el-input> | ||
| 31 | </el-form-item> | 29 | </el-form-item> |
| 32 | </el-col> | 30 | </el-col> |
| 33 | </el-row> | 31 | </el-row> |
| ... | @@ -60,8 +58,7 @@ | ... | @@ -60,8 +58,7 @@ |
| 60 | @p-current-change="handleCurrentChange" | 58 | @p-current-change="handleCurrentChange" |
| 61 | @selection-change="handleSelectionChange" | 59 | @selection-change="handleSelectionChange" |
| 62 | :column="tableData.columns" | 60 | :column="tableData.columns" |
| 63 | :data="tableData.data" | 61 | :data="tableData.data"></lb-table> |
| 64 | ></lb-table> | ||
| 65 | </div> | 62 | </div> |
| 66 | <div class="submit_button"> | 63 | <div class="submit_button"> |
| 67 | <el-button @click="$popupCacel">取消</el-button> | 64 | <el-button @click="$popupCacel">取消</el-button> |
| ... | @@ -70,20 +67,20 @@ | ... | @@ -70,20 +67,20 @@ |
| 70 | </div> | 67 | </div> |
| 71 | </template> | 68 | </template> |
| 72 | <script> | 69 | <script> |
| 73 | //查封登记 | 70 | //查封登记 |
| 74 | import store from "@/store/index.js"; | 71 | import store from "@/store/index.js"; |
| 75 | import { datas, sendThis } from "../javascript/cfdj.js"; | 72 | import { datas, sendThis } from "../javascript/cfdj.js"; |
| 76 | import { defaultParameters } from "../javascript/publicDefaultPar.js"; | 73 | import { defaultParameters } from "../javascript/publicDefaultPar.js"; |
| 77 | import table from "@/utils/mixin/table"; | 74 | import table from "@/utils/mixin/table"; |
| 78 | import jump from "../components/mixin/jump"; | 75 | import jump from "../components/mixin/jump"; |
| 79 | import { selectCfdj, startBusinessFlow, choiceBdcdy } from "@/api/ywbl.js"; | 76 | import { selectCfdj, startBusinessFlow, choiceBdcdy } from "@/api/ywbl.js"; |
| 80 | export default { | 77 | export default { |
| 81 | props: { | 78 | props: { |
| 82 | isJump: { type: Boolean, default: false }, | 79 | isJump: { type: Boolean, default: false }, |
| 83 | sqywInfo: { type: Object, default: () => {} }, | 80 | sqywInfo: { type: Object, default: () => { } }, |
| 84 | }, | 81 | }, |
| 85 | mixins: [table, jump], | 82 | mixins: [table, jump], |
| 86 | data() { | 83 | data () { |
| 87 | return { | 84 | return { |
| 88 | queryForm: defaultParameters.defaultParameters(), | 85 | queryForm: defaultParameters.defaultParameters(), |
| 89 | tableData: { | 86 | tableData: { |
| ... | @@ -98,11 +95,11 @@ export default { | ... | @@ -98,11 +95,11 @@ export default { |
| 98 | : this.sqywInfo.parentid, | 95 | : this.sqywInfo.parentid, |
| 99 | }; | 96 | }; |
| 100 | }, | 97 | }, |
| 101 | mounted() { | 98 | mounted () { |
| 102 | sendThis(this); | 99 | sendThis(this); |
| 103 | }, | 100 | }, |
| 104 | methods: { | 101 | methods: { |
| 105 | queryClick() { | 102 | queryClick () { |
| 106 | console.log("申请业务单一流向状态", this.sqywInfo.sqywdylx); | 103 | console.log("申请业务单一流向状态", this.sqywInfo.sqywdylx); |
| 107 | this.$startLoading(); | 104 | this.$startLoading(); |
| 108 | selectCfdj({ ...this.queryForm, ...this.pageData }).then((res) => { | 105 | selectCfdj({ ...this.queryForm, ...this.pageData }).then((res) => { |
| ... | @@ -114,7 +111,7 @@ export default { | ... | @@ -114,7 +111,7 @@ export default { |
| 114 | } | 111 | } |
| 115 | }); | 112 | }); |
| 116 | }, | 113 | }, |
| 117 | submitForm() { | 114 | submitForm () { |
| 118 | if (this.bdcdysz.length == 0) { | 115 | if (this.bdcdysz.length == 0) { |
| 119 | this.$message.error("请至少选择一条数据"); | 116 | this.$message.error("请至少选择一条数据"); |
| 120 | return; | 117 | return; |
| ... | @@ -134,8 +131,14 @@ export default { | ... | @@ -134,8 +131,14 @@ export default { |
| 134 | message: "发起申请成功", | 131 | message: "发起申请成功", |
| 135 | type: "success", | 132 | type: "success", |
| 136 | }); | 133 | }); |
| 134 | if (!this.isJump) { | ||
| 137 | this.jump(res.result, this.sqywInfo.djywbm); | 135 | this.jump(res.result, this.sqywInfo.djywbm); |
| 138 | } else { | 136 | } else { |
| 137 | store.dispatch('user/refreshPage', true); | ||
| 138 | } | ||
| 139 | this.$popupCacel() | ||
| 140 | |||
| 141 | } else { | ||
| 139 | this.$message.error(res.message); | 142 | this.$message.error(res.message); |
| 140 | } | 143 | } |
| 141 | }); | 144 | }); |
| ... | @@ -158,10 +161,10 @@ export default { | ... | @@ -158,10 +161,10 @@ export default { |
| 158 | }); | 161 | }); |
| 159 | } | 162 | } |
| 160 | }, | 163 | }, |
| 161 | handleSelectionChange(val) { | 164 | handleSelectionChange (val) { |
| 162 | this.bdcdysz = val; | 165 | this.bdcdysz = val; |
| 163 | }, | 166 | }, |
| 164 | select(selection, row) { | 167 | select (selection, row) { |
| 165 | if (this.sqywInfo.sqywdylx == "1") { | 168 | if (this.sqywInfo.sqywdylx == "1") { |
| 166 | // 清除 所有勾选项 | 169 | // 清除 所有勾选项 |
| 167 | this.$refs.table.clearSelection(); | 170 | this.$refs.table.clearSelection(); |
| ... | @@ -171,7 +174,7 @@ export default { | ... | @@ -171,7 +174,7 @@ export default { |
| 171 | this.$refs.table.toggleRowSelection(row, true); | 174 | this.$refs.table.toggleRowSelection(row, true); |
| 172 | } | 175 | } |
| 173 | }, | 176 | }, |
| 174 | handleRowClick(row) { | 177 | handleRowClick (row) { |
| 175 | // 如果状态是1,那就是单选 | 178 | // 如果状态是1,那就是单选 |
| 176 | if (this.sqywInfo.sqywdylx == "1") { | 179 | if (this.sqywInfo.sqywdylx == "1") { |
| 177 | const bdcdysz = this.bdcdysz; | 180 | const bdcdysz = this.bdcdysz; |
| ... | @@ -195,9 +198,9 @@ export default { | ... | @@ -195,9 +198,9 @@ export default { |
| 195 | } | 198 | } |
| 196 | }, | 199 | }, |
| 197 | }, | 200 | }, |
| 198 | }; | 201 | }; |
| 199 | </script> | 202 | </script> |
| 200 | <style scoped lang="scss"> | 203 | <style scoped lang="scss"> |
| 201 | @import "~@/styles/mixin.scss"; | 204 | @import "~@/styles/mixin.scss"; |
| 202 | @import "~@/styles/public.scss"; | 205 | @import "~@/styles/public.scss"; |
| 203 | </style> | 206 | </style> | ... | ... |
| ... | @@ -83,9 +83,7 @@ | ... | @@ -83,9 +83,7 @@ |
| 83 | sendThis(this); | 83 | sendThis(this); |
| 84 | }, | 84 | }, |
| 85 | methods: { | 85 | methods: { |
| 86 | |||
| 87 | queryClick () { | 86 | queryClick () { |
| 88 | console.log("申请业务单一流向状态",this.sqywInfo.sqywdylx); | ||
| 89 | this.$startLoading(); | 87 | this.$startLoading(); |
| 90 | this.queryForm.sqywbm = this.sqywInfo.djywbm; | 88 | this.queryForm.sqywbm = this.sqywInfo.djywbm; |
| 91 | selectDiyaq({ ...this.queryForm, ...this.pageData }).then((res) => { | 89 | selectDiyaq({ ...this.queryForm, ...this.pageData }).then((res) => { |
| ... | @@ -119,31 +117,31 @@ | ... | @@ -119,31 +117,31 @@ |
| 119 | } else { | 117 | } else { |
| 120 | store.dispatch('user/refreshPage', true); | 118 | store.dispatch('user/refreshPage', true); |
| 121 | } | 119 | } |
| 120 | this.$popupCacel() | ||
| 122 | } else { | 121 | } else { |
| 123 | this.$message.error(res.message); | 122 | this.$message.error(res.message); |
| 124 | } | 123 | } |
| 125 | this.$popupCacel() | ||
| 126 | }) | 124 | }) |
| 127 | }, | 125 | }, |
| 128 | handleSelectionChange (val) { | 126 | handleSelectionChange (val) { |
| 129 | this.bdcdysz = val; | 127 | this.bdcdysz = val; |
| 130 | }, | 128 | }, |
| 131 | select(selection, row){ | 129 | select (selection, row) { |
| 132 | if(this.sqywInfo.sqywdylx=="1"){ | 130 | if (this.sqywInfo.sqywdylx == "1") { |
| 133 | // 清除 所有勾选项 | 131 | // 清除 所有勾选项 |
| 134 | this.$refs.table.clearSelection() | 132 | this.$refs.table.clearSelection() |
| 135 | // 当表格数据都没有被勾选的时候 就返回 | 133 | // 当表格数据都没有被勾选的时候 就返回 |
| 136 | // 主要用于将当前勾选的表格状态清除 | 134 | // 主要用于将当前勾选的表格状态清除 |
| 137 | if(selection.length == 0) return | 135 | if (selection.length == 0) return |
| 138 | this.$refs.table.toggleRowSelection(row, true); | 136 | this.$refs.table.toggleRowSelection(row, true); |
| 139 | } | 137 | } |
| 140 | }, | 138 | }, |
| 141 | handleRowClick(row){ | 139 | handleRowClick (row) { |
| 142 | // 如果状态是1,那就是单选 | 140 | // 如果状态是1,那就是单选 |
| 143 | if(this.sqywInfo.sqywdylx=="1"){ | 141 | if (this.sqywInfo.sqywdylx == "1") { |
| 144 | const bdcdysz = this.bdcdysz | 142 | const bdcdysz = this.bdcdysz |
| 145 | this.$refs.table.clearSelection() | 143 | this.$refs.table.clearSelection() |
| 146 | if( bdcdysz.length == 1 ) { | 144 | if (bdcdysz.length == 1) { |
| 147 | bdcdysz.forEach(item => { | 145 | bdcdysz.forEach(item => { |
| 148 | // 判断 如果当前的一行被勾选, 再次点击的时候就会取消选中 | 146 | // 判断 如果当前的一行被勾选, 再次点击的时候就会取消选中 |
| 149 | if (item == row) { | 147 | if (item == row) { |
| ... | @@ -158,7 +156,7 @@ | ... | @@ -158,7 +156,7 @@ |
| 158 | else { | 156 | else { |
| 159 | this.$refs.table.toggleRowSelection(row, true); | 157 | this.$refs.table.toggleRowSelection(row, true); |
| 160 | } | 158 | } |
| 161 | }else{ | 159 | } else { |
| 162 | this.$refs.table.toggleRowSelection(row); | 160 | this.$refs.table.toggleRowSelection(row); |
| 163 | } | 161 | } |
| 164 | }, | 162 | }, | ... | ... |
| ... | @@ -171,7 +171,7 @@ | ... | @@ -171,7 +171,7 @@ |
| 171 | }, | 171 | }, |
| 172 | methods: { | 172 | methods: { |
| 173 | queryClick () { | 173 | queryClick () { |
| 174 | console.log("申请业务单一流向状态",this.sqywInfo.sqywdylx); | 174 | console.log("申请业务单一流向状态", this.sqywInfo.sqywdylx); |
| 175 | this.$startLoading(); | 175 | this.$startLoading(); |
| 176 | if (!this.isJump) { | 176 | if (!this.isJump) { |
| 177 | //从业务办理进入 | 177 | //从业务办理进入 |
| ... | @@ -235,7 +235,12 @@ | ... | @@ -235,7 +235,12 @@ |
| 235 | message: '发起申请成功', | 235 | message: '发起申请成功', |
| 236 | type: 'success' | 236 | type: 'success' |
| 237 | }) | 237 | }) |
| 238 | this.jump(res.result, this.djywbm) | 238 | if (!this.isJump) { |
| 239 | this.jump(res.result, this.sqywInfo.djywbm); | ||
| 240 | } else { | ||
| 241 | store.dispatch('user/refreshPage', true); | ||
| 242 | } | ||
| 243 | this.$popupCacel() | ||
| 239 | } else { | 244 | } else { |
| 240 | this.$message.error(res.message); | 245 | this.$message.error(res.message); |
| 241 | } | 246 | } |
| ... | @@ -275,23 +280,23 @@ | ... | @@ -275,23 +280,23 @@ |
| 275 | } | 280 | } |
| 276 | }) | 281 | }) |
| 277 | }, | 282 | }, |
| 278 | select(selection, row){ | 283 | select (selection, row) { |
| 279 | if(this.sqywInfo.sqywdylx=="1"){ | 284 | if (this.sqywInfo.sqywdylx == "1") { |
| 280 | // 清除 所有勾选项 | 285 | // 清除 所有勾选项 |
| 281 | this.$refs.table.clearSelection() | 286 | this.$refs.table.clearSelection() |
| 282 | // 当表格数据都没有被勾选的时候 就返回 | 287 | // 当表格数据都没有被勾选的时候 就返回 |
| 283 | // 主要用于将当前勾选的表格状态清除 | 288 | // 主要用于将当前勾选的表格状态清除 |
| 284 | if(selection.length == 0) return | 289 | if (selection.length == 0) return |
| 285 | this.$refs.table.toggleRowSelection(row, true); | 290 | this.$refs.table.toggleRowSelection(row, true); |
| 286 | } | 291 | } |
| 287 | 292 | ||
| 288 | }, | 293 | }, |
| 289 | handleRowClick(row){ | 294 | handleRowClick (row) { |
| 290 | // 如果状态是1,那就是单选 | 295 | // 如果状态是1,那就是单选 |
| 291 | if(this.sqywInfo.sqywdylx=="1"){ | 296 | if (this.sqywInfo.sqywdylx == "1") { |
| 292 | const bdcdysz = this.bdcdysz | 297 | const bdcdysz = this.bdcdysz |
| 293 | this.$refs.table.clearSelection() | 298 | this.$refs.table.clearSelection() |
| 294 | if( bdcdysz.length == 1 ) { | 299 | if (bdcdysz.length == 1) { |
| 295 | bdcdysz.forEach(item => { | 300 | bdcdysz.forEach(item => { |
| 296 | // 判断 如果当前的一行被勾选, 再次点击的时候就会取消选中 | 301 | // 判断 如果当前的一行被勾选, 再次点击的时候就会取消选中 |
| 297 | if (item == row) { | 302 | if (item == row) { |
| ... | @@ -306,7 +311,7 @@ | ... | @@ -306,7 +311,7 @@ |
| 306 | else { | 311 | else { |
| 307 | this.$refs.table.toggleRowSelection(row, true); | 312 | this.$refs.table.toggleRowSelection(row, true); |
| 308 | } | 313 | } |
| 309 | }else{ | 314 | } else { |
| 310 | this.$refs.table.toggleRowSelection(row); | 315 | this.$refs.table.toggleRowSelection(row); |
| 311 | } | 316 | } |
| 312 | }, | 317 | }, | ... | ... |
| ... | @@ -106,31 +106,31 @@ | ... | @@ -106,31 +106,31 @@ |
| 106 | } else { | 106 | } else { |
| 107 | store.dispatch('user/refreshPage', true); | 107 | store.dispatch('user/refreshPage', true); |
| 108 | } | 108 | } |
| 109 | this.$popupCacel() | ||
| 109 | } else { | 110 | } else { |
| 110 | this.$message.error(res.message); | 111 | this.$message.error(res.message); |
| 111 | } | 112 | } |
| 112 | this.$popupCacel() | ||
| 113 | }) | 113 | }) |
| 114 | }, | 114 | }, |
| 115 | handleSelectionChange (val) { | 115 | handleSelectionChange (val) { |
| 116 | this.bdcdysz = val; | 116 | this.bdcdysz = val; |
| 117 | }, | 117 | }, |
| 118 | select(selection, row){ | 118 | select (selection, row) { |
| 119 | if(this.sqywInfo.sqywdylx=="1"){ | 119 | if (this.sqywInfo.sqywdylx == "1") { |
| 120 | // 清除 所有勾选项 | 120 | // 清除 所有勾选项 |
| 121 | this.$refs.table.clearSelection() | 121 | this.$refs.table.clearSelection() |
| 122 | // 当表格数据都没有被勾选的时候 就返回 | 122 | // 当表格数据都没有被勾选的时候 就返回 |
| 123 | // 主要用于将当前勾选的表格状态清除 | 123 | // 主要用于将当前勾选的表格状态清除 |
| 124 | if(selection.length == 0) return | 124 | if (selection.length == 0) return |
| 125 | this.$refs.table.toggleRowSelection(row, true); | 125 | this.$refs.table.toggleRowSelection(row, true); |
| 126 | } | 126 | } |
| 127 | }, | 127 | }, |
| 128 | handleRowClick(row){ | 128 | handleRowClick (row) { |
| 129 | // 如果状态是1,那就是单选 | 129 | // 如果状态是1,那就是单选 |
| 130 | if(this.sqywInfo.sqywdylx=="1"){ | 130 | if (this.sqywInfo.sqywdylx == "1") { |
| 131 | const bdcdysz = this.bdcdysz | 131 | const bdcdysz = this.bdcdysz |
| 132 | this.$refs.table.clearSelection() | 132 | this.$refs.table.clearSelection() |
| 133 | if( bdcdysz.length == 1 ) { | 133 | if (bdcdysz.length == 1) { |
| 134 | bdcdysz.forEach(item => { | 134 | bdcdysz.forEach(item => { |
| 135 | // 判断 如果当前的一行被勾选, 再次点击的时候就会取消选中 | 135 | // 判断 如果当前的一行被勾选, 再次点击的时候就会取消选中 |
| 136 | if (item == row) { | 136 | if (item == row) { |
| ... | @@ -145,7 +145,7 @@ | ... | @@ -145,7 +145,7 @@ |
| 145 | else { | 145 | else { |
| 146 | this.$refs.table.toggleRowSelection(row, true); | 146 | this.$refs.table.toggleRowSelection(row, true); |
| 147 | } | 147 | } |
| 148 | }else{ | 148 | } else { |
| 149 | this.$refs.table.toggleRowSelection(row); | 149 | this.$refs.table.toggleRowSelection(row); |
| 150 | } | 150 | } |
| 151 | }, | 151 | }, | ... | ... |
| ... | @@ -70,7 +70,7 @@ | ... | @@ -70,7 +70,7 @@ |
| 70 | }, | 70 | }, |
| 71 | methods: { | 71 | methods: { |
| 72 | queryClick () { | 72 | queryClick () { |
| 73 | console.log("申请业务单一流向状态",this.sqywInfo.sqywdylx); | 73 | console.log("申请业务单一流向状态", this.sqywInfo.sqywdylx); |
| 74 | this.$startLoading(); | 74 | this.$startLoading(); |
| 75 | this.queryForm.sqywbm = this.sqywInfo.djywbm; | 75 | this.queryForm.sqywbm = this.sqywInfo.djywbm; |
| 76 | selectNydsyqQlxx({ ...this.queryForm, ...this.pageData }).then((res) => { | 76 | selectNydsyqQlxx({ ...this.queryForm, ...this.pageData }).then((res) => { |
| ... | @@ -104,10 +104,10 @@ | ... | @@ -104,10 +104,10 @@ |
| 104 | } else { | 104 | } else { |
| 105 | store.dispatch('user/refreshPage', true); | 105 | store.dispatch('user/refreshPage', true); |
| 106 | } | 106 | } |
| 107 | this.$popupCacel() | ||
| 107 | } else { | 108 | } else { |
| 108 | this.$message.error(res.message); | 109 | this.$message.error(res.message); |
| 109 | } | 110 | } |
| 110 | this.$popupCacel() | ||
| 111 | }) | 111 | }) |
| 112 | }, | 112 | }, |
| 113 | handleSelectionChange (val) { | 113 | handleSelectionChange (val) { |
| ... | @@ -119,22 +119,22 @@ | ... | @@ -119,22 +119,22 @@ |
| 119 | formData: param | 119 | formData: param |
| 120 | }) | 120 | }) |
| 121 | }, | 121 | }, |
| 122 | select(selection, row){ | 122 | select (selection, row) { |
| 123 | if(this.sqywInfo.sqywdylx=="1"){ | 123 | if (this.sqywInfo.sqywdylx == "1") { |
| 124 | // 清除 所有勾选项 | 124 | // 清除 所有勾选项 |
| 125 | this.$refs.table.clearSelection() | 125 | this.$refs.table.clearSelection() |
| 126 | // 当表格数据都没有被勾选的时候 就返回 | 126 | // 当表格数据都没有被勾选的时候 就返回 |
| 127 | // 主要用于将当前勾选的表格状态清除 | 127 | // 主要用于将当前勾选的表格状态清除 |
| 128 | if(selection.length == 0) return | 128 | if (selection.length == 0) return |
| 129 | this.$refs.table.toggleRowSelection(row, true); | 129 | this.$refs.table.toggleRowSelection(row, true); |
| 130 | } | 130 | } |
| 131 | }, | 131 | }, |
| 132 | handleRowClick(row){ | 132 | handleRowClick (row) { |
| 133 | // 如果状态是1,那就是单选 | 133 | // 如果状态是1,那就是单选 |
| 134 | if(this.sqywInfo.sqywdylx=="1"){ | 134 | if (this.sqywInfo.sqywdylx == "1") { |
| 135 | const bdcdysz = this.bdcdysz | 135 | const bdcdysz = this.bdcdysz |
| 136 | this.$refs.table.clearSelection() | 136 | this.$refs.table.clearSelection() |
| 137 | if( bdcdysz.length == 1 ) { | 137 | if (bdcdysz.length == 1) { |
| 138 | bdcdysz.forEach(item => { | 138 | bdcdysz.forEach(item => { |
| 139 | // 判断 如果当前的一行被勾选, 再次点击的时候就会取消选中 | 139 | // 判断 如果当前的一行被勾选, 再次点击的时候就会取消选中 |
| 140 | if (item == row) { | 140 | if (item == row) { |
| ... | @@ -149,7 +149,7 @@ | ... | @@ -149,7 +149,7 @@ |
| 149 | else { | 149 | else { |
| 150 | this.$refs.table.toggleRowSelection(row, true); | 150 | this.$refs.table.toggleRowSelection(row, true); |
| 151 | } | 151 | } |
| 152 | }else{ | 152 | } else { |
| 153 | this.$refs.table.toggleRowSelection(row); | 153 | this.$refs.table.toggleRowSelection(row); |
| 154 | } | 154 | } |
| 155 | }, | 155 | }, | ... | ... |
| ... | @@ -98,7 +98,7 @@ | ... | @@ -98,7 +98,7 @@ |
| 98 | methods: { | 98 | methods: { |
| 99 | //默认加载表格信息 | 99 | //默认加载表格信息 |
| 100 | queryClick () { | 100 | queryClick () { |
| 101 | console.log("申请业务单一流向状态",this.sqywInfo.sqywdylx); | 101 | console.log("申请业务单一流向状态", this.sqywInfo.sqywdylx); |
| 102 | this.$startLoading(); | 102 | this.$startLoading(); |
| 103 | this.queryForm.bsmSqyw = this.bsmSqyw; | 103 | this.queryForm.bsmSqyw = this.bsmSqyw; |
| 104 | selectQlxx({ ...this.queryForm, ...this.pageData }).then((res) => { | 104 | selectQlxx({ ...this.queryForm, ...this.pageData }).then((res) => { |
| ... | @@ -132,31 +132,31 @@ | ... | @@ -132,31 +132,31 @@ |
| 132 | } else { | 132 | } else { |
| 133 | store.dispatch('user/refreshPage', true); | 133 | store.dispatch('user/refreshPage', true); |
| 134 | } | 134 | } |
| 135 | this.$popupCacel() | ||
| 135 | } else { | 136 | } else { |
| 136 | this.$alert(res.message); | 137 | this.$message.error(res.message) |
| 137 | } | 138 | } |
| 138 | this.$popupCacel() | ||
| 139 | }) | 139 | }) |
| 140 | }, | 140 | }, |
| 141 | handleSelectionChange (val) { | 141 | handleSelectionChange (val) { |
| 142 | this.bdcdysz = val; | 142 | this.bdcdysz = val; |
| 143 | }, | 143 | }, |
| 144 | select(selection, row){ | 144 | select (selection, row) { |
| 145 | if(this.sqywInfo.sqywdylx=="1"){ | 145 | if (this.sqywInfo.sqywdylx == "1") { |
| 146 | // 清除 所有勾选项 | 146 | // 清除 所有勾选项 |
| 147 | this.$refs.table.clearSelection() | 147 | this.$refs.table.clearSelection() |
| 148 | // 当表格数据都没有被勾选的时候 就返回 | 148 | // 当表格数据都没有被勾选的时候 就返回 |
| 149 | // 主要用于将当前勾选的表格状态清除 | 149 | // 主要用于将当前勾选的表格状态清除 |
| 150 | if(selection.length == 0) return | 150 | if (selection.length == 0) return |
| 151 | this.$refs.table.toggleRowSelection(row, true); | 151 | this.$refs.table.toggleRowSelection(row, true); |
| 152 | } | 152 | } |
| 153 | }, | 153 | }, |
| 154 | handleRowClick(row){ | 154 | handleRowClick (row) { |
| 155 | // 如果状态是1,那就是单选 | 155 | // 如果状态是1,那就是单选 |
| 156 | if(this.sqywInfo.sqywdylx=="1"){ | 156 | if (this.sqywInfo.sqywdylx == "1") { |
| 157 | const bdcdysz = this.bdcdysz | 157 | const bdcdysz = this.bdcdysz |
| 158 | this.$refs.table.clearSelection() | 158 | this.$refs.table.clearSelection() |
| 159 | if( bdcdysz.length == 1 ) { | 159 | if (bdcdysz.length == 1) { |
| 160 | bdcdysz.forEach(item => { | 160 | bdcdysz.forEach(item => { |
| 161 | // 判断 如果当前的一行被勾选, 再次点击的时候就会取消选中 | 161 | // 判断 如果当前的一行被勾选, 再次点击的时候就会取消选中 |
| 162 | if (item == row) { | 162 | if (item == row) { |
| ... | @@ -171,7 +171,7 @@ | ... | @@ -171,7 +171,7 @@ |
| 171 | else { | 171 | else { |
| 172 | this.$refs.table.toggleRowSelection(row, true); | 172 | this.$refs.table.toggleRowSelection(row, true); |
| 173 | } | 173 | } |
| 174 | }else{ | 174 | } else { |
| 175 | this.$refs.table.toggleRowSelection(row); | 175 | this.$refs.table.toggleRowSelection(row); |
| 176 | } | 176 | } |
| 177 | }, | 177 | }, | ... | ... |
| ... | @@ -38,7 +38,7 @@ | ... | @@ -38,7 +38,7 @@ |
| 38 | </el-form> | 38 | </el-form> |
| 39 | </div> | 39 | </div> |
| 40 | <!-- 表格 --> | 40 | <!-- 表格 --> |
| 41 | <div class="from-clues-content loadingtext" > | 41 | <div class="from-clues-content loadingtext"> |
| 42 | <lb-table ref="table" @row-click="handleRowClick" :page-size="pageData.size" class="loadingtext" | 42 | <lb-table ref="table" @row-click="handleRowClick" :page-size="pageData.size" class="loadingtext" |
| 43 | :current-page.sync="pageData.current" :total="tableData.total" @size-change="handleSizeChange" | 43 | :current-page.sync="pageData.current" :total="tableData.total" @size-change="handleSizeChange" |
| 44 | @p-current-change="handleCurrentChange" @selection-change="handleSelectionChange" :column="tableData.columns" :data="tableData.data"> | 44 | @p-current-change="handleCurrentChange" @selection-change="handleSelectionChange" :column="tableData.columns" :data="tableData.data"> |
| ... | @@ -51,14 +51,14 @@ | ... | @@ -51,14 +51,14 @@ |
| 51 | </div> | 51 | </div> |
| 52 | </template> | 52 | </template> |
| 53 | <script> | 53 | <script> |
| 54 | import { mapGetters } from "vuex"; | 54 | import { mapGetters } from "vuex"; |
| 55 | import {startRepairFlow} from "@/api/ywbl.js"; | 55 | import { startRepairFlow } from "@/api/ywbl.js"; |
| 56 | import store from '@/store/index.js' | 56 | import store from '@/store/index.js' |
| 57 | import table from "@/utils/mixin/table"; | 57 | import table from "@/utils/mixin/table"; |
| 58 | import { datas, sendThis } from "../javascript/selectDjbbl.js"; | 58 | import { datas, sendThis } from "../javascript/selectDjbbl.js"; |
| 59 | import { getDjbBysearch } from "@/api/zhcx.js"; | 59 | import { getDjbBysearch } from "@/api/zhcx.js"; |
| 60 | import jump from "../components/mixin/jump"; | 60 | import jump from "../components/mixin/jump"; |
| 61 | export default { | 61 | export default { |
| 62 | name: "djbcx", | 62 | name: "djbcx", |
| 63 | mixins: [table, jump], | 63 | mixins: [table, jump], |
| 64 | mounted () { | 64 | mounted () { |
| ... | @@ -96,9 +96,6 @@ export default { | ... | @@ -96,9 +96,6 @@ export default { |
| 96 | : this.sqywInfo.parentid, | 96 | : this.sqywInfo.parentid, |
| 97 | }; | 97 | }; |
| 98 | }, | 98 | }, |
| 99 | computed: { | ||
| 100 | // ...mapGetters(["dictData"]), | ||
| 101 | }, | ||
| 102 | methods: { | 99 | methods: { |
| 103 | // 初始化数据 | 100 | // 初始化数据 |
| 104 | queryClick () { | 101 | queryClick () { |
| ... | @@ -112,9 +109,6 @@ export default { | ... | @@ -112,9 +109,6 @@ export default { |
| 112 | } | 109 | } |
| 113 | }); | 110 | }); |
| 114 | }, | 111 | }, |
| 115 | // handleSort (name, sort) { | ||
| 116 | // console.log(name, sort); | ||
| 117 | // }, | ||
| 118 | // 高级查询 | 112 | // 高级查询 |
| 119 | moreQueryClick () { }, | 113 | moreQueryClick () { }, |
| 120 | // openDialog (scroll) { | 114 | // openDialog (scroll) { |
| ... | @@ -128,12 +122,12 @@ export default { | ... | @@ -128,12 +122,12 @@ export default { |
| 128 | ywhClick (item) { | 122 | ywhClick (item) { |
| 129 | const { href } = this.$router.resolve( | 123 | const { href } = this.$router.resolve( |
| 130 | "/djbworkFrame?bdcdyid=" + | 124 | "/djbworkFrame?bdcdyid=" + |
| 131 | item.bdcdyid+ | 125 | item.bdcdyid + |
| 132 | "&bdcdyh=" + | 126 | "&bdcdyh=" + |
| 133 | item.bdcdyh+ | 127 | item.bdcdyh + |
| 134 | "&qllx="+ | 128 | "&qllx=" + |
| 135 | item.qllx+ | 129 | item.qllx + |
| 136 | "&bsmQlxx="+ | 130 | "&bsmQlxx=" + |
| 137 | item.bsmQlxx + | 131 | item.bsmQlxx + |
| 138 | "&viewtype=1" | 132 | "&viewtype=1" |
| 139 | ); | 133 | ); |
| ... | @@ -146,14 +140,14 @@ export default { | ... | @@ -146,14 +140,14 @@ export default { |
| 146 | this.$message.error("请至少选择一条数据"); | 140 | this.$message.error("请至少选择一条数据"); |
| 147 | return; | 141 | return; |
| 148 | } | 142 | } |
| 149 | console.log("this.sqywInfo",this.sqywInfo,this.sqywInfo.nodetype == "djqx"); | 143 | console.log("this.sqywInfo", this.sqywInfo, this.sqywInfo.nodetype == "djqx"); |
| 150 | let from={ | 144 | let from = { |
| 151 | bsmSqyw: this.bsmSqyw, | 145 | bsmSqyw: this.bsmSqyw, |
| 152 | bdcdysz: this.bdcdysz, | 146 | bdcdysz: this.bdcdysz, |
| 153 | djqxbm: this.sqywInfo.nodetype == "djlx" ? this.sqywInfo.nodecode : "", | 147 | djqxbm: this.sqywInfo.nodetype == "djlx" ? this.sqywInfo.nodecode : "", |
| 154 | djqxmc: this.sqywInfo.nodetype == "djlx" ? this.sqywInfo.nodename : "", | 148 | djqxmc: this.sqywInfo.nodetype == "djlx" ? this.sqywInfo.nodename : "", |
| 155 | } | 149 | } |
| 156 | console.log("发起申请传参",from,this.sqywInfo); | 150 | console.log("发起申请传参", from, this.sqywInfo); |
| 157 | startRepairFlow(from).then((res) => { | 151 | startRepairFlow(from).then((res) => { |
| 158 | if (res.code == 200) { | 152 | if (res.code == 200) { |
| 159 | this.$message({ | 153 | this.$message({ |
| ... | @@ -166,22 +160,22 @@ export default { | ... | @@ -166,22 +160,22 @@ export default { |
| 166 | } else { | 160 | } else { |
| 167 | store.dispatch('user/refreshPage', true); | 161 | store.dispatch('user/refreshPage', true); |
| 168 | } | 162 | } |
| 163 | this.$popupCacel() | ||
| 169 | } else { | 164 | } else { |
| 170 | this.$message.error(res.message); | 165 | this.$message.error(res.message); |
| 171 | } | 166 | } |
| 172 | this.$popupCacel() | ||
| 173 | }) | 167 | }) |
| 174 | }, | 168 | }, |
| 175 | handleSelectionChange (val) { | 169 | handleSelectionChange (val) { |
| 176 | console.log("val",val); | 170 | console.log("val", val); |
| 177 | this.bdcdysz = val; | 171 | this.bdcdysz = val; |
| 178 | }, | 172 | }, |
| 179 | handleRowClick(row){ | 173 | handleRowClick (row) { |
| 180 | // 如果状态是1,那就是单选 | 174 | // 如果状态是1,那就是单选 |
| 181 | if(this.sqywInfo.sqywdylx=="1"){ | 175 | if (this.sqywInfo.sqywdylx == "1") { |
| 182 | const bdcdysz = this.bdcdysz | 176 | const bdcdysz = this.bdcdysz |
| 183 | this.$refs.table.clearSelection() | 177 | this.$refs.table.clearSelection() |
| 184 | if( bdcdysz.length == 1 ) { | 178 | if (bdcdysz.length == 1) { |
| 185 | bdcdysz.forEach(item => { | 179 | bdcdysz.forEach(item => { |
| 186 | // 判断 如果当前的一行被勾选, 再次点击的时候就会取消选中 | 180 | // 判断 如果当前的一行被勾选, 再次点击的时候就会取消选中 |
| 187 | if (item == row) { | 181 | if (item == row) { |
| ... | @@ -196,22 +190,22 @@ export default { | ... | @@ -196,22 +190,22 @@ export default { |
| 196 | else { | 190 | else { |
| 197 | this.$refs.table.toggleRowSelection(row, true); | 191 | this.$refs.table.toggleRowSelection(row, true); |
| 198 | } | 192 | } |
| 199 | }else{ | 193 | } else { |
| 200 | this.$refs.table.toggleRowSelection(row); | 194 | this.$refs.table.toggleRowSelection(row); |
| 201 | } | 195 | } |
| 202 | }, | 196 | }, |
| 203 | } | 197 | } |
| 204 | } | 198 | } |
| 205 | </script> | 199 | </script> |
| 206 | <style scoped lang="scss"> | 200 | <style scoped lang="scss"> |
| 207 | @import "~@/styles/mixin.scss"; | 201 | @import "~@/styles/mixin.scss"; |
| 208 | @import "~@/styles/public.scss"; | 202 | @import "~@/styles/public.scss"; |
| 209 | 203 | ||
| 210 | .icon-circle { | 204 | .icon-circle { |
| 211 | position: relative; | 205 | position: relative; |
| 212 | } | 206 | } |
| 213 | 207 | ||
| 214 | .icon-circle::before { | 208 | .icon-circle::before { |
| 215 | content: ""; | 209 | content: ""; |
| 216 | width: 4px; | 210 | width: 4px; |
| 217 | height: 4px; | 211 | height: 4px; |
| ... | @@ -219,5 +213,5 @@ export default { | ... | @@ -219,5 +213,5 @@ export default { |
| 219 | background: #000; | 213 | background: #000; |
| 220 | top: 0px; | 214 | top: 0px; |
| 221 | left: 0px; | 215 | left: 0px; |
| 222 | } | 216 | } |
| 223 | </style> | 217 | </style> | ... | ... |
| ... | @@ -75,7 +75,7 @@ | ... | @@ -75,7 +75,7 @@ |
| 75 | }, | 75 | }, |
| 76 | methods: { | 76 | methods: { |
| 77 | queryClick () { | 77 | queryClick () { |
| 78 | console.log("申请业务单一流向状态",this.sqywInfo.sqywdylx); | 78 | console.log("申请业务单一流向状态", this.sqywInfo.sqywdylx); |
| 79 | this.$startLoading(); | 79 | this.$startLoading(); |
| 80 | this.queryForm.sqywbm = this.sqywInfo.djywbm; | 80 | this.queryForm.sqywbm = this.sqywInfo.djywbm; |
| 81 | selectFwsyq({ ...this.queryForm, ...this.pageData }).then((res) => { | 81 | selectFwsyq({ ...this.queryForm, ...this.pageData }).then((res) => { |
| ... | @@ -109,31 +109,31 @@ | ... | @@ -109,31 +109,31 @@ |
| 109 | } else { | 109 | } else { |
| 110 | store.dispatch('user/refreshPage', true); | 110 | store.dispatch('user/refreshPage', true); |
| 111 | } | 111 | } |
| 112 | this.$popupCacel() | ||
| 112 | } else { | 113 | } else { |
| 113 | this.$message.error(res.message); | 114 | this.$message.error(res.message); |
| 114 | } | 115 | } |
| 115 | this.$popupCacel() | ||
| 116 | }) | 116 | }) |
| 117 | }, | 117 | }, |
| 118 | handleSelectionChange (val) { | 118 | handleSelectionChange (val) { |
| 119 | this.bdcdysz = val; | 119 | this.bdcdysz = val; |
| 120 | }, | 120 | }, |
| 121 | select(selection, row){ | 121 | select (selection, row) { |
| 122 | if(this.sqywInfo.sqywdylx=="1"){ | 122 | if (this.sqywInfo.sqywdylx == "1") { |
| 123 | // 清除 所有勾选项 | 123 | // 清除 所有勾选项 |
| 124 | this.$refs.table.clearSelection() | 124 | this.$refs.table.clearSelection() |
| 125 | // 当表格数据都没有被勾选的时候 就返回 | 125 | // 当表格数据都没有被勾选的时候 就返回 |
| 126 | // 主要用于将当前勾选的表格状态清除 | 126 | // 主要用于将当前勾选的表格状态清除 |
| 127 | if(selection.length == 0) return | 127 | if (selection.length == 0) return |
| 128 | this.$refs.table.toggleRowSelection(row, true); | 128 | this.$refs.table.toggleRowSelection(row, true); |
| 129 | } | 129 | } |
| 130 | }, | 130 | }, |
| 131 | handleRowClick(row){ | 131 | handleRowClick (row) { |
| 132 | // 如果状态是1,那就是单选 | 132 | // 如果状态是1,那就是单选 |
| 133 | if(this.sqywInfo.sqywdylx=="1"){ | 133 | if (this.sqywInfo.sqywdylx == "1") { |
| 134 | const bdcdysz = this.bdcdysz | 134 | const bdcdysz = this.bdcdysz |
| 135 | this.$refs.table.clearSelection() | 135 | this.$refs.table.clearSelection() |
| 136 | if( bdcdysz.length == 1 ) { | 136 | if (bdcdysz.length == 1) { |
| 137 | bdcdysz.forEach(item => { | 137 | bdcdysz.forEach(item => { |
| 138 | // 判断 如果当前的一行被勾选, 再次点击的时候就会取消选中 | 138 | // 判断 如果当前的一行被勾选, 再次点击的时候就会取消选中 |
| 139 | if (item == row) { | 139 | if (item == row) { |
| ... | @@ -148,7 +148,7 @@ | ... | @@ -148,7 +148,7 @@ |
| 148 | else { | 148 | else { |
| 149 | this.$refs.table.toggleRowSelection(row, true); | 149 | this.$refs.table.toggleRowSelection(row, true); |
| 150 | } | 150 | } |
| 151 | }else{ | 151 | } else { |
| 152 | this.$refs.table.toggleRowSelection(row); | 152 | this.$refs.table.toggleRowSelection(row); |
| 153 | } | 153 | } |
| 154 | }, | 154 | }, | ... | ... |
| ... | @@ -75,7 +75,7 @@ | ... | @@ -75,7 +75,7 @@ |
| 75 | }, | 75 | }, |
| 76 | methods: { | 76 | methods: { |
| 77 | queryClick () { | 77 | queryClick () { |
| 78 | console.log("申请业务单一流向状态",this.sqywInfo.sqywdylx); | 78 | console.log("申请业务单一流向状态", this.sqywInfo.sqywdylx); |
| 79 | this.$startLoading(); | 79 | this.$startLoading(); |
| 80 | this.queryForm.sqywbm = this.sqywInfo.djywbm; | 80 | this.queryForm.sqywbm = this.sqywInfo.djywbm; |
| 81 | selectHQjdc({ ...this.queryForm, ...this.pageData }).then((res) => { | 81 | selectHQjdc({ ...this.queryForm, ...this.pageData }).then((res) => { |
| ... | @@ -109,31 +109,31 @@ | ... | @@ -109,31 +109,31 @@ |
| 109 | } else { | 109 | } else { |
| 110 | store.dispatch('user/refreshPage', true); | 110 | store.dispatch('user/refreshPage', true); |
| 111 | } | 111 | } |
| 112 | this.$popupCacel() | ||
| 112 | } else { | 113 | } else { |
| 113 | this.$message.error(res.message); | 114 | this.$message.error(res.message); |
| 114 | } | 115 | } |
| 115 | this.$popupCacel() | ||
| 116 | }) | 116 | }) |
| 117 | }, | 117 | }, |
| 118 | handleSelectionChange (val) { | 118 | handleSelectionChange (val) { |
| 119 | this.bdcdysz = val; | 119 | this.bdcdysz = val; |
| 120 | }, | 120 | }, |
| 121 | select(selection, row){ | 121 | select (selection, row) { |
| 122 | if(this.sqywInfo.sqywdylx=="1"){ | 122 | if (this.sqywInfo.sqywdylx == "1") { |
| 123 | // 清除 所有勾选项 | 123 | // 清除 所有勾选项 |
| 124 | this.$refs.table.clearSelection() | 124 | this.$refs.table.clearSelection() |
| 125 | // 当表格数据都没有被勾选的时候 就返回 | 125 | // 当表格数据都没有被勾选的时候 就返回 |
| 126 | // 主要用于将当前勾选的表格状态清除 | 126 | // 主要用于将当前勾选的表格状态清除 |
| 127 | if(selection.length == 0) return | 127 | if (selection.length == 0) return |
| 128 | this.$refs.table.toggleRowSelection(row, true); | 128 | this.$refs.table.toggleRowSelection(row, true); |
| 129 | } | 129 | } |
| 130 | }, | 130 | }, |
| 131 | handleRowClick(row){ | 131 | handleRowClick (row) { |
| 132 | // 如果状态是1,那就是单选 | 132 | // 如果状态是1,那就是单选 |
| 133 | if(this.sqywInfo.sqywdylx=="1"){ | 133 | if (this.sqywInfo.sqywdylx == "1") { |
| 134 | const bdcdysz = this.bdcdysz | 134 | const bdcdysz = this.bdcdysz |
| 135 | this.$refs.table.clearSelection() | 135 | this.$refs.table.clearSelection() |
| 136 | if( bdcdysz.length == 1 ) { | 136 | if (bdcdysz.length == 1) { |
| 137 | bdcdysz.forEach(item => { | 137 | bdcdysz.forEach(item => { |
| 138 | // 判断 如果当前的一行被勾选, 再次点击的时候就会取消选中 | 138 | // 判断 如果当前的一行被勾选, 再次点击的时候就会取消选中 |
| 139 | if (item == row) { | 139 | if (item == row) { |
| ... | @@ -148,7 +148,7 @@ | ... | @@ -148,7 +148,7 @@ |
| 148 | else { | 148 | else { |
| 149 | this.$refs.table.toggleRowSelection(row, true); | 149 | this.$refs.table.toggleRowSelection(row, true); |
| 150 | } | 150 | } |
| 151 | }else{ | 151 | } else { |
| 152 | this.$refs.table.toggleRowSelection(row); | 152 | this.$refs.table.toggleRowSelection(row); |
| 153 | } | 153 | } |
| 154 | }, | 154 | }, | ... | ... |
| ... | @@ -83,7 +83,7 @@ | ... | @@ -83,7 +83,7 @@ |
| 83 | }, | 83 | }, |
| 84 | methods: { | 84 | methods: { |
| 85 | queryClick () { | 85 | queryClick () { |
| 86 | console.log("申请业务单一流向状态",this.sqywInfo.sqywdylx); | 86 | console.log("申请业务单一流向状态", this.sqywInfo.sqywdylx); |
| 87 | this.$startLoading(); | 87 | this.$startLoading(); |
| 88 | this.queryForm.sqywbm = this.sqywInfo.djywbm; | 88 | this.queryForm.sqywbm = this.sqywInfo.djywbm; |
| 89 | selectJsydQlxx({ ...this.queryForm, ...this.pageData }).then((res) => { | 89 | selectJsydQlxx({ ...this.queryForm, ...this.pageData }).then((res) => { |
| ... | @@ -117,10 +117,10 @@ | ... | @@ -117,10 +117,10 @@ |
| 117 | } else { | 117 | } else { |
| 118 | store.dispatch('user/refreshPage', true); | 118 | store.dispatch('user/refreshPage', true); |
| 119 | } | 119 | } |
| 120 | this.$popupCacel() | ||
| 120 | } else { | 121 | } else { |
| 121 | this.$message.error(res.message); | 122 | this.$message.error(res.message); |
| 122 | } | 123 | } |
| 123 | this.$popupCacel() | ||
| 124 | }) | 124 | }) |
| 125 | }, | 125 | }, |
| 126 | handleSelectionChange (val) { | 126 | handleSelectionChange (val) { |
| ... | @@ -137,22 +137,22 @@ | ... | @@ -137,22 +137,22 @@ |
| 137 | formData: param | 137 | formData: param |
| 138 | }) | 138 | }) |
| 139 | }, | 139 | }, |
| 140 | select(selection, row){ | 140 | select (selection, row) { |
| 141 | if(this.sqywInfo.sqywdylx=="1"){ | 141 | if (this.sqywInfo.sqywdylx == "1") { |
| 142 | // 清除 所有勾选项 | 142 | // 清除 所有勾选项 |
| 143 | this.$refs.table.clearSelection() | 143 | this.$refs.table.clearSelection() |
| 144 | // 当表格数据都没有被勾选的时候 就返回 | 144 | // 当表格数据都没有被勾选的时候 就返回 |
| 145 | // 主要用于将当前勾选的表格状态清除 | 145 | // 主要用于将当前勾选的表格状态清除 |
| 146 | if(selection.length == 0) return | 146 | if (selection.length == 0) return |
| 147 | this.$refs.table.toggleRowSelection(row, true); | 147 | this.$refs.table.toggleRowSelection(row, true); |
| 148 | } | 148 | } |
| 149 | }, | 149 | }, |
| 150 | handleRowClick(row){ | 150 | handleRowClick (row) { |
| 151 | // 如果状态是1,那就是单选 | 151 | // 如果状态是1,那就是单选 |
| 152 | if(this.sqywInfo.sqywdylx=="1"){ | 152 | if (this.sqywInfo.sqywdylx == "1") { |
| 153 | const bdcdysz = this.bdcdysz | 153 | const bdcdysz = this.bdcdysz |
| 154 | this.$refs.table.clearSelection() | 154 | this.$refs.table.clearSelection() |
| 155 | if( bdcdysz.length == 1 ) { | 155 | if (bdcdysz.length == 1) { |
| 156 | bdcdysz.forEach(item => { | 156 | bdcdysz.forEach(item => { |
| 157 | // 判断 如果当前的一行被勾选, 再次点击的时候就会取消选中 | 157 | // 判断 如果当前的一行被勾选, 再次点击的时候就会取消选中 |
| 158 | if (item == row) { | 158 | if (item == row) { |
| ... | @@ -167,7 +167,7 @@ | ... | @@ -167,7 +167,7 @@ |
| 167 | else { | 167 | else { |
| 168 | this.$refs.table.toggleRowSelection(row, true); | 168 | this.$refs.table.toggleRowSelection(row, true); |
| 169 | } | 169 | } |
| 170 | }else{ | 170 | } else { |
| 171 | this.$refs.table.toggleRowSelection(row); | 171 | this.$refs.table.toggleRowSelection(row); |
| 172 | } | 172 | } |
| 173 | }, | 173 | }, | ... | ... |
| 1 | <!-- | 1 | <!-- |
| 2 | * @Description: | 2 | * @Description: |
| 3 | * @Autor: renchao | 3 | * @Autor: renchao |
| 4 | * @LastEditTime: 2023-06-15 16:59:40 | 4 | * @LastEditTime: 2023-06-16 09:37:51 |
| 5 | --> | 5 | --> |
| 6 | <template> | 6 | <template> |
| 7 | <div class="from-clues"> | 7 | <div class="from-clues"> |
| ... | @@ -47,9 +47,6 @@ | ... | @@ -47,9 +47,6 @@ |
| 47 | <!-- 表格 --> | 47 | <!-- 表格 --> |
| 48 | <div class="from-clues-content loadingtext"> | 48 | <div class="from-clues-content loadingtext"> |
| 49 | 分割合并前权利信息 | 49 | 分割合并前权利信息 |
| 50 | <!-- <lb-table ref="table" @row-click="handleRowClick" heightNumSetting :pagination=false | ||
| 51 | :column="tableData.columns" :data="tableData.data"> | ||
| 52 | </lb-table> --> | ||
| 53 | <el-table | 50 | <el-table |
| 54 | :data="tableData.data" | 51 | :data="tableData.data" |
| 55 | height="230" | 52 | height="230" |
| ... | @@ -193,6 +190,12 @@ | ... | @@ -193,6 +190,12 @@ |
| 193 | methods: { | 190 | methods: { |
| 194 | // 单选事件 | 191 | // 单选事件 |
| 195 | close () { | 192 | close () { |
| 193 | this.tableData.data.forEach(item => { | ||
| 194 | if (this.radioVal == item.bhqkbsm) { | ||
| 195 | item.bglx = '1' | ||
| 196 | this.bdcdysz[0] = item | ||
| 197 | } | ||
| 198 | }) | ||
| 196 | this.queryForm.bhqkbsm = this.radioVal | 199 | this.queryForm.bhqkbsm = this.radioVal |
| 197 | selectZdjbxxSplitMergeLast({ ...this.queryForm }).then((res) => { | 200 | selectZdjbxxSplitMergeLast({ ...this.queryForm }).then((res) => { |
| 198 | this.$endLoading(); | 201 | this.$endLoading(); |
| ... | @@ -217,12 +220,11 @@ | ... | @@ -217,12 +220,11 @@ |
| 217 | }); | 220 | }); |
| 218 | }, | 221 | }, |
| 219 | handleRowClick (val) { | 222 | handleRowClick (val) { |
| 220 | this.radioVal = val.bhqkbsm | 223 | // this.radioVal = val.bhqkbsm |
| 221 | let obj = val | 224 | // let obj = val |
| 222 | obj.bglx = '1'; | 225 | // obj.bglx = '1'; |
| 223 | 226 | // this.bdcdysz[0] = obj | |
| 224 | this.bdcdysz[0] = obj | 227 | // this.close() |
| 225 | this.close() | ||
| 226 | }, | 228 | }, |
| 227 | submitForm () { | 229 | submitForm () { |
| 228 | startBusinessFlow({ | 230 | startBusinessFlow({ |
| ... | @@ -242,10 +244,10 @@ | ... | @@ -242,10 +244,10 @@ |
| 242 | } else { | 244 | } else { |
| 243 | store.dispatch('user/refreshPage', true); | 245 | store.dispatch('user/refreshPage', true); |
| 244 | } | 246 | } |
| 247 | this.$popupCacel() | ||
| 245 | } else { | 248 | } else { |
| 246 | this.$message.error(res.message) | 249 | this.$message.error(res.message) |
| 247 | } | 250 | } |
| 248 | this.$popupCacel() | ||
| 249 | }) | 251 | }) |
| 250 | }, | 252 | }, |
| 251 | openBook (row) { | 253 | openBook (row) { | ... | ... |
| ... | @@ -114,10 +114,11 @@ | ... | @@ -114,10 +114,11 @@ |
| 114 | } else { | 114 | } else { |
| 115 | store.dispatch('user/refreshPage', true); | 115 | store.dispatch('user/refreshPage', true); |
| 116 | } | 116 | } |
| 117 | this.$popupCacel() | ||
| 117 | } else { | 118 | } else { |
| 118 | this.$alert(res.message); | 119 | this.$message.error(res.message) |
| 119 | } | 120 | } |
| 120 | this.$popupCacel() | 121 | |
| 121 | }) | 122 | }) |
| 122 | }, | 123 | }, |
| 123 | handleSelectionChange (val) { | 124 | handleSelectionChange (val) { | ... | ... |
| ... | @@ -75,7 +75,7 @@ | ... | @@ -75,7 +75,7 @@ |
| 75 | }, | 75 | }, |
| 76 | methods: { | 76 | methods: { |
| 77 | queryClick () { | 77 | queryClick () { |
| 78 | console.log("申请业务单一流向状态",this.sqywInfo.sqywdylx); | 78 | console.log("申请业务单一流向状态", this.sqywInfo.sqywdylx); |
| 79 | this.$startLoading(); | 79 | this.$startLoading(); |
| 80 | this.queryForm.sqywbm = this.sqywInfo.djywbm; | 80 | this.queryForm.sqywbm = this.sqywInfo.djywbm; |
| 81 | selectYgdj200({ ...this.queryForm, ...this.pageData }).then((res) => { | 81 | selectYgdj200({ ...this.queryForm, ...this.pageData }).then((res) => { |
| ... | @@ -108,32 +108,32 @@ | ... | @@ -108,32 +108,32 @@ |
| 108 | this.jump(res.result, this.sqywInfo.djywbm) | 108 | this.jump(res.result, this.sqywInfo.djywbm) |
| 109 | } else { | 109 | } else { |
| 110 | store.dispatch('user/refreshPage', true); | 110 | store.dispatch('user/refreshPage', true); |
| 111 | this.$popupCacel() | ||
| 111 | } | 112 | } |
| 112 | } else { | 113 | } else { |
| 113 | this.$message.error(res.message); | 114 | this.$message.error(res.message); |
| 114 | } | 115 | } |
| 115 | this.$popupCacel() | ||
| 116 | }) | 116 | }) |
| 117 | }, | 117 | }, |
| 118 | handleSelectionChange (val) { | 118 | handleSelectionChange (val) { |
| 119 | this.bdcdysz = val; | 119 | this.bdcdysz = val; |
| 120 | }, | 120 | }, |
| 121 | select(selection, row){ | 121 | select (selection, row) { |
| 122 | if(this.sqywInfo.sqywdylx=="1"){ | 122 | if (this.sqywInfo.sqywdylx == "1") { |
| 123 | // 清除 所有勾选项 | 123 | // 清除 所有勾选项 |
| 124 | this.$refs.table.clearSelection() | 124 | this.$refs.table.clearSelection() |
| 125 | // 当表格数据都没有被勾选的时候 就返回 | 125 | // 当表格数据都没有被勾选的时候 就返回 |
| 126 | // 主要用于将当前勾选的表格状态清除 | 126 | // 主要用于将当前勾选的表格状态清除 |
| 127 | if(selection.length == 0) return | 127 | if (selection.length == 0) return |
| 128 | this.$refs.table.toggleRowSelection(row, true); | 128 | this.$refs.table.toggleRowSelection(row, true); |
| 129 | } | 129 | } |
| 130 | }, | 130 | }, |
| 131 | handleRowClick(row){ | 131 | handleRowClick (row) { |
| 132 | // 如果状态是1,那就是单选 | 132 | // 如果状态是1,那就是单选 |
| 133 | if(this.sqywInfo.sqywdylx=="1"){ | 133 | if (this.sqywInfo.sqywdylx == "1") { |
| 134 | const bdcdysz = this.bdcdysz | 134 | const bdcdysz = this.bdcdysz |
| 135 | this.$refs.table.clearSelection() | 135 | this.$refs.table.clearSelection() |
| 136 | if( bdcdysz.length == 1 ) { | 136 | if (bdcdysz.length == 1) { |
| 137 | bdcdysz.forEach(item => { | 137 | bdcdysz.forEach(item => { |
| 138 | // 判断 如果当前的一行被勾选, 再次点击的时候就会取消选中 | 138 | // 判断 如果当前的一行被勾选, 再次点击的时候就会取消选中 |
| 139 | if (item == row) { | 139 | if (item == row) { |
| ... | @@ -148,7 +148,7 @@ | ... | @@ -148,7 +148,7 @@ |
| 148 | else { | 148 | else { |
| 149 | this.$refs.table.toggleRowSelection(row, true); | 149 | this.$refs.table.toggleRowSelection(row, true); |
| 150 | } | 150 | } |
| 151 | }else{ | 151 | } else { |
| 152 | this.$refs.table.toggleRowSelection(row); | 152 | this.$refs.table.toggleRowSelection(row); |
| 153 | } | 153 | } |
| 154 | }, | 154 | }, | ... | ... |
| ... | @@ -75,7 +75,7 @@ | ... | @@ -75,7 +75,7 @@ |
| 75 | }, | 75 | }, |
| 76 | methods: { | 76 | methods: { |
| 77 | queryClick () { | 77 | queryClick () { |
| 78 | console.log("申请业务单一流向状态",this.sqywInfo.sqywdylx); | 78 | console.log("申请业务单一流向状态", this.sqywInfo.sqywdylx); |
| 79 | this.$startLoading(); | 79 | this.$startLoading(); |
| 80 | this.queryForm.sqywbm = this.sqywInfo.djywbm; | 80 | this.queryForm.sqywbm = this.sqywInfo.djywbm; |
| 81 | selectYgdy({ ...this.queryForm, ...this.pageData }).then((res) => { | 81 | selectYgdy({ ...this.queryForm, ...this.pageData }).then((res) => { |
| ... | @@ -109,31 +109,31 @@ | ... | @@ -109,31 +109,31 @@ |
| 109 | } else { | 109 | } else { |
| 110 | store.dispatch('user/refreshPage', true); | 110 | store.dispatch('user/refreshPage', true); |
| 111 | } | 111 | } |
| 112 | this.$popupCacel() | ||
| 112 | } else { | 113 | } else { |
| 113 | this.$message.error(res.message); | 114 | this.$message.error(res.message); |
| 114 | } | 115 | } |
| 115 | this.$popupCacel() | ||
| 116 | }) | 116 | }) |
| 117 | }, | 117 | }, |
| 118 | handleSelectionChange (val) { | 118 | handleSelectionChange (val) { |
| 119 | this.bdcdysz = val; | 119 | this.bdcdysz = val; |
| 120 | }, | 120 | }, |
| 121 | select(selection, row){ | 121 | select (selection, row) { |
| 122 | if(this.sqywInfo.sqywdylx=="1"){ | 122 | if (this.sqywInfo.sqywdylx == "1") { |
| 123 | // 清除 所有勾选项 | 123 | // 清除 所有勾选项 |
| 124 | this.$refs.table.clearSelection() | 124 | this.$refs.table.clearSelection() |
| 125 | // 当表格数据都没有被勾选的时候 就返回 | 125 | // 当表格数据都没有被勾选的时候 就返回 |
| 126 | // 主要用于将当前勾选的表格状态清除 | 126 | // 主要用于将当前勾选的表格状态清除 |
| 127 | if(selection.length == 0) return | 127 | if (selection.length == 0) return |
| 128 | this.$refs.table.toggleRowSelection(row, true); | 128 | this.$refs.table.toggleRowSelection(row, true); |
| 129 | } | 129 | } |
| 130 | }, | 130 | }, |
| 131 | handleRowClick(row){ | 131 | handleRowClick (row) { |
| 132 | // 如果状态是1,那就是单选 | 132 | // 如果状态是1,那就是单选 |
| 133 | if(this.sqywInfo.sqywdylx=="1"){ | 133 | if (this.sqywInfo.sqywdylx == "1") { |
| 134 | const bdcdysz = this.bdcdysz | 134 | const bdcdysz = this.bdcdysz |
| 135 | this.$refs.table.clearSelection() | 135 | this.$refs.table.clearSelection() |
| 136 | if( bdcdysz.length == 1 ) { | 136 | if (bdcdysz.length == 1) { |
| 137 | bdcdysz.forEach(item => { | 137 | bdcdysz.forEach(item => { |
| 138 | // 判断 如果当前的一行被勾选, 再次点击的时候就会取消选中 | 138 | // 判断 如果当前的一行被勾选, 再次点击的时候就会取消选中 |
| 139 | if (item == row) { | 139 | if (item == row) { |
| ... | @@ -148,7 +148,7 @@ | ... | @@ -148,7 +148,7 @@ |
| 148 | else { | 148 | else { |
| 149 | this.$refs.table.toggleRowSelection(row, true); | 149 | this.$refs.table.toggleRowSelection(row, true); |
| 150 | } | 150 | } |
| 151 | }else{ | 151 | } else { |
| 152 | this.$refs.table.toggleRowSelection(row); | 152 | this.$refs.table.toggleRowSelection(row); |
| 153 | } | 153 | } |
| 154 | }, | 154 | }, | ... | ... |
| ... | @@ -78,7 +78,7 @@ | ... | @@ -78,7 +78,7 @@ |
| 78 | queryClick () { | 78 | queryClick () { |
| 79 | this.$startLoading(); | 79 | this.$startLoading(); |
| 80 | this.queryForm.zrzbsm = this.sqywInfo.zrzbsm; | 80 | this.queryForm.zrzbsm = this.sqywInfo.zrzbsm; |
| 81 | selectHQjdc({...this.queryForm, ...this.pageData }).then((res) => { | 81 | selectHQjdc({ ...this.queryForm, ...this.pageData }).then((res) => { |
| 82 | this.$endLoading(); | 82 | this.$endLoading(); |
| 83 | if (res.code === 200) { | 83 | if (res.code === 200) { |
| 84 | let { total, records } = res.result; | 84 | let { total, records } = res.result; |
| ... | @@ -109,31 +109,31 @@ | ... | @@ -109,31 +109,31 @@ |
| 109 | } else { | 109 | } else { |
| 110 | store.dispatch('user/refreshPage', true); | 110 | store.dispatch('user/refreshPage', true); |
| 111 | } | 111 | } |
| 112 | this.$popupCacel() | ||
| 112 | } else { | 113 | } else { |
| 113 | this.$message.error(res.message); | 114 | this.$message.error(res.message); |
| 114 | } | 115 | } |
| 115 | this.$popupCacel() | ||
| 116 | }) | 116 | }) |
| 117 | }, | 117 | }, |
| 118 | handleSelectionChange (val) { | 118 | handleSelectionChange (val) { |
| 119 | this.bdcdysz = val; | 119 | this.bdcdysz = val; |
| 120 | }, | 120 | }, |
| 121 | select(selection, row){ | 121 | select (selection, row) { |
| 122 | if(this.sqywInfo.sqywdylx=="1"){ | 122 | if (this.sqywInfo.sqywdylx == "1") { |
| 123 | // 清除 所有勾选项 | 123 | // 清除 所有勾选项 |
| 124 | this.$refs.table.clearSelection() | 124 | this.$refs.table.clearSelection() |
| 125 | // 当表格数据都没有被勾选的时候 就返回 | 125 | // 当表格数据都没有被勾选的时候 就返回 |
| 126 | // 主要用于将当前勾选的表格状态清除 | 126 | // 主要用于将当前勾选的表格状态清除 |
| 127 | if(selection.length == 0) return | 127 | if (selection.length == 0) return |
| 128 | this.$refs.table.toggleRowSelection(row, true); | 128 | this.$refs.table.toggleRowSelection(row, true); |
| 129 | } | 129 | } |
| 130 | }, | 130 | }, |
| 131 | handleRowClick(row){ | 131 | handleRowClick (row) { |
| 132 | // 如果状态是1,那就是单选 | 132 | // 如果状态是1,那就是单选 |
| 133 | if(this.sqywInfo.sqywdylx=="1"){ | 133 | if (this.sqywInfo.sqywdylx == "1") { |
| 134 | const bdcdysz = this.bdcdysz | 134 | const bdcdysz = this.bdcdysz |
| 135 | this.$refs.table.clearSelection() | 135 | this.$refs.table.clearSelection() |
| 136 | if( bdcdysz.length == 1 ) { | 136 | if (bdcdysz.length == 1) { |
| 137 | bdcdysz.forEach(item => { | 137 | bdcdysz.forEach(item => { |
| 138 | // 判断 如果当前的一行被勾选, 再次点击的时候就会取消选中 | 138 | // 判断 如果当前的一行被勾选, 再次点击的时候就会取消选中 |
| 139 | if (item == row) { | 139 | if (item == row) { |
| ... | @@ -148,7 +148,7 @@ | ... | @@ -148,7 +148,7 @@ |
| 148 | else { | 148 | else { |
| 149 | this.$refs.table.toggleRowSelection(row, true); | 149 | this.$refs.table.toggleRowSelection(row, true); |
| 150 | } | 150 | } |
| 151 | }else{ | 151 | } else { |
| 152 | this.$refs.table.toggleRowSelection(row); | 152 | this.$refs.table.toggleRowSelection(row); |
| 153 | } | 153 | } |
| 154 | }, | 154 | }, | ... | ... |
-
Please register or sign in to post a comment