1e7b4fd3 by renchao@pashanhoo.com

style:业务申请

1 parent 545aa6a9
...@@ -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,134 +67,140 @@ ...@@ -70,134 +67,140 @@
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 },
85 mixins: [table, jump],
86 data() {
87 return {
88 queryForm: defaultParameters.defaultParameters(),
89 tableData: {
90 total: 0,
91 columns: datas.columns(),
92 data: [],
93 },
94 bdcdysz: [],
95 bsmSqyw:
96 this.sqywInfo.nodetype === "djlx"
97 ? this.sqywInfo.bsmSqyw
98 : this.sqywInfo.parentid,
99 };
100 },
101 mounted() {
102 sendThis(this);
103 },
104 methods: {
105 queryClick() {
106 console.log("申请业务单一流向状态", this.sqywInfo.sqywdylx);
107 this.$startLoading();
108 selectCfdj({ ...this.queryForm, ...this.pageData }).then((res) => {
109 this.$endLoading();
110 if (res.code === 200) {
111 let { total, records } = res.result;
112 this.tableData.total = total;
113 this.tableData.data = records;
114 }
115 });
116 },
117 submitForm() {
118 if (this.bdcdysz.length == 0) {
119 this.$message.error("请至少选择一条数据");
120 return;
121 }
122 if (!this.isJump) {
123 startBusinessFlow({
124 bsmSqyw: this.bsmSqyw,
125 bdcdysz: this.bdcdysz,
126 djqxbm:
127 this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodecode : "",
128 djqxmc:
129 this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodename : "",
130 }).then((res) => {
131 if (res.code == 200) {
132 this.$message({
133 showClose: true,
134 message: "发起申请成功",
135 type: "success",
136 });
137 this.jump(res.result, this.sqywInfo.djywbm);
138 } else {
139 this.$message.error(res.message);
140 }
141 });
142 } else {
143 choiceBdcdy({
144 bsmSlsq: this.$route.query.bsmSlsq,
145 bdcdysz: this.bdcdysz,
146 }).then((res) => {
147 if (res.code == 200) {
148 this.$message({
149 showClose: true,
150 message: "发起申请成功",
151 type: "success",
152 });
153 store.dispatch("user/refreshPage", true);
154 } else {
155 this.$message.error(res.message);
156 }
157 this.$popupCacel();
158 });
159 }
160 }, 81 },
161 handleSelectionChange(val) { 82 mixins: [table, jump],
162 this.bdcdysz = val; 83 data () {
84 return {
85 queryForm: defaultParameters.defaultParameters(),
86 tableData: {
87 total: 0,
88 columns: datas.columns(),
89 data: [],
90 },
91 bdcdysz: [],
92 bsmSqyw:
93 this.sqywInfo.nodetype === "djlx"
94 ? this.sqywInfo.bsmSqyw
95 : this.sqywInfo.parentid,
96 };
163 }, 97 },
164 select(selection, row) { 98 mounted () {
165 if (this.sqywInfo.sqywdylx == "1") { 99 sendThis(this);
166 // 清除 所有勾选项
167 this.$refs.table.clearSelection();
168 // 当表格数据都没有被勾选的时候 就返回
169 // 主要用于将当前勾选的表格状态清除
170 if (selection.length == 0) return;
171 this.$refs.table.toggleRowSelection(row, true);
172 }
173 }, 100 },
174 handleRowClick(row) { 101 methods: {
175 // 如果状态是1,那就是单选 102 queryClick () {
176 if (this.sqywInfo.sqywdylx == "1") { 103 console.log("申请业务单一流向状态", this.sqywInfo.sqywdylx);
177 const bdcdysz = this.bdcdysz; 104 this.$startLoading();
178 this.$refs.table.clearSelection(); 105 selectCfdj({ ...this.queryForm, ...this.pageData }).then((res) => {
179 if (bdcdysz.length == 1) { 106 this.$endLoading();
180 bdcdysz.forEach((item) => { 107 if (res.code === 200) {
181 // 判断 如果当前的一行被勾选, 再次点击的时候就会取消选中 108 let { total, records } = res.result;
182 if (item == row) { 109 this.tableData.total = total;
183 this.$refs.table.toggleRowSelection(row, false); 110 this.tableData.data = records;
184 } 111 }
185 // 不然就让当前的一行勾选 112 });
186 else { 113 },
187 this.$refs.table.toggleRowSelection(row, true); 114 submitForm () {
115 if (this.bdcdysz.length == 0) {
116 this.$message.error("请至少选择一条数据");
117 return;
118 }
119 if (!this.isJump) {
120 startBusinessFlow({
121 bsmSqyw: this.bsmSqyw,
122 bdcdysz: this.bdcdysz,
123 djqxbm:
124 this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodecode : "",
125 djqxmc:
126 this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodename : "",
127 }).then((res) => {
128 if (res.code == 200) {
129 this.$message({
130 showClose: true,
131 message: "发起申请成功",
132 type: "success",
133 });
134 if (!this.isJump) {
135 this.jump(res.result, this.sqywInfo.djywbm);
136 } else {
137 store.dispatch('user/refreshPage', true);
138 }
139 this.$popupCacel()
140
141 } else {
142 this.$message.error(res.message);
188 } 143 }
189 }); 144 });
190 } else { 145 } else {
146 choiceBdcdy({
147 bsmSlsq: this.$route.query.bsmSlsq,
148 bdcdysz: this.bdcdysz,
149 }).then((res) => {
150 if (res.code == 200) {
151 this.$message({
152 showClose: true,
153 message: "发起申请成功",
154 type: "success",
155 });
156 store.dispatch("user/refreshPage", true);
157 } else {
158 this.$message.error(res.message);
159 }
160 this.$popupCacel();
161 });
162 }
163 },
164 handleSelectionChange (val) {
165 this.bdcdysz = val;
166 },
167 select (selection, row) {
168 if (this.sqywInfo.sqywdylx == "1") {
169 // 清除 所有勾选项
170 this.$refs.table.clearSelection();
171 // 当表格数据都没有被勾选的时候 就返回
172 // 主要用于将当前勾选的表格状态清除
173 if (selection.length == 0) return;
191 this.$refs.table.toggleRowSelection(row, true); 174 this.$refs.table.toggleRowSelection(row, true);
192 } 175 }
193 } else { 176 },
194 this.$refs.table.toggleRowSelection(row); 177 handleRowClick (row) {
195 } 178 // 如果状态是1,那就是单选
179 if (this.sqywInfo.sqywdylx == "1") {
180 const bdcdysz = this.bdcdysz;
181 this.$refs.table.clearSelection();
182 if (bdcdysz.length == 1) {
183 bdcdysz.forEach((item) => {
184 // 判断 如果当前的一行被勾选, 再次点击的时候就会取消选中
185 if (item == row) {
186 this.$refs.table.toggleRowSelection(row, false);
187 }
188 // 不然就让当前的一行勾选
189 else {
190 this.$refs.table.toggleRowSelection(row, true);
191 }
192 });
193 } else {
194 this.$refs.table.toggleRowSelection(row, true);
195 }
196 } else {
197 this.$refs.table.toggleRowSelection(row);
198 }
199 },
196 }, 200 },
197 }, 201 };
198 };
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>
......
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
43 <!-- 表格 --> 43 <!-- 表格 -->
44 <div class="from-clues-content loadingtext"> 44 <div class="from-clues-content loadingtext">
45 <lb-table ref="table" @row-click="handleRowClick" :page-size="pageData.pageSize" :calcHeight="300" 45 <lb-table ref="table" @row-click="handleRowClick" :page-size="pageData.pageSize" :calcHeight="300"
46 :current-page.sync="pageData.currentPage" :total="tableData.total" @size-change="handleSizeChange" @select="select" 46 :current-page.sync="pageData.currentPage" :total="tableData.total" @size-change="handleSizeChange" @select="select"
47 @p-current-change="handleCurrentChange" @selection-change="handleSelectionChange" :column="tableData.columns" 47 @p-current-change="handleCurrentChange" @selection-change="handleSelectionChange" :column="tableData.columns"
48 :data="tableData.data"> 48 :data="tableData.data">
49 </lb-table> 49 </lb-table>
...@@ -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,48 +117,48 @@ ...@@ -119,48 +117,48 @@
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) {
150 this.$refs.table.toggleRowSelection(row, false); 148 this.$refs.table.toggleRowSelection(row, false);
151 } 149 }
152 // 不然就让当前的一行勾选 150 // 不然就让当前的一行勾选
153 else { 151 else {
154 this.$refs.table.toggleRowSelection(row, true); 152 this.$refs.table.toggleRowSelection(row, true);
155 } 153 }
156 }) 154 })
157 } 155 }
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 },
165 }, 163 },
166 }; 164 };
......
...@@ -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,40 +280,40 @@ ...@@ -275,40 +280,40 @@
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) {
298 this.$refs.table.toggleRowSelection(row, false); 303 this.$refs.table.toggleRowSelection(row, false);
299 } 304 }
300 // 不然就让当前的一行勾选 305 // 不然就让当前的一行勾选
301 else { 306 else {
302 this.$refs.table.toggleRowSelection(row, true); 307 this.$refs.table.toggleRowSelection(row, true);
303 } 308 }
304 }) 309 })
305 } 310 }
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 },
313 } 318 }
314 } 319 }
......
...@@ -106,48 +106,48 @@ ...@@ -106,48 +106,48 @@
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) {
137 this.$refs.table.toggleRowSelection(row, false); 137 this.$refs.table.toggleRowSelection(row, false);
138 } 138 }
139 // 不然就让当前的一行勾选 139 // 不然就让当前的一行勾选
140 else { 140 else {
141 this.$refs.table.toggleRowSelection(row, true); 141 this.$refs.table.toggleRowSelection(row, true);
142 } 142 }
143 }) 143 })
144 } 144 }
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 },
152 } 152 }
153 } 153 }
......
...@@ -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,39 +119,39 @@ ...@@ -119,39 +119,39 @@
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) {
141 this.$refs.table.toggleRowSelection(row, false); 141 this.$refs.table.toggleRowSelection(row, false);
142 } 142 }
143 // 不然就让当前的一行勾选 143 // 不然就让当前的一行勾选
144 else { 144 else {
145 this.$refs.table.toggleRowSelection(row, true); 145 this.$refs.table.toggleRowSelection(row, true);
146 } 146 }
147 }) 147 })
148 } 148 }
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 },
156 } 156 }
157 } 157 }
......
...@@ -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,48 +132,48 @@ ...@@ -132,48 +132,48 @@
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) {
163 this.$refs.table.toggleRowSelection(row, false); 163 this.$refs.table.toggleRowSelection(row, false);
164 } 164 }
165 // 不然就让当前的一行勾选 165 // 不然就让当前的一行勾选
166 else { 166 else {
167 this.$refs.table.toggleRowSelection(row, true); 167 this.$refs.table.toggleRowSelection(row, true);
168 } 168 }
169 }) 169 })
170 } 170 }
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 },
178 }, 178 },
179 }; 179 };
......
...@@ -30,130 +30,124 @@ ...@@ -30,130 +30,124 @@
30 </el-col> 30 </el-col>
31 <el-col :span="4" class="btnColRight"> 31 <el-col :span="4" class="btnColRight">
32 <el-form-item> 32 <el-form-item>
33 <el-button type="primary" @click="resetForm(true)">重置</el-button> 33 <el-button type="primary" @click="resetForm(true)">重置</el-button>
34 <el-button type="primary" @click="handleSearch">查询</el-button> 34 <el-button type="primary" @click="handleSearch">查询</el-button>
35 </el-form-item> 35 </el-form-item>
36 </el-col> 36 </el-col>
37 </el-row> 37 </el-row>
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">
45 </lb-table> 45 </lb-table>
46 </div> 46 </div>
47 <div class="submit_button"> 47 <div class="submit_button">
48 <el-button @click="$popupCacel">取消</el-button> 48 <el-button @click="$popupCacel">取消</el-button>
49 <el-button type="primary" plain @click="submitForm">发起申请</el-button> 49 <el-button type="primary" plain @click="submitForm">发起申请</el-button>
50 </div> 50 </div>
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 () {
65 sendThis(this); 65 sendThis(this);
66 this.queryClick() 66 this.queryClick()
67 }, 67 },
68 props: { 68 props: {
69 isJump: { type: Boolean, default: false }, 69 isJump: { type: Boolean, default: false },
70 sqywInfo: { type: Object, default: () => { } }, 70 sqywInfo: { type: Object, default: () => { } },
71 }, 71 },
72 data () { 72 data () {
73 return { 73 return {
74 bdcdysz: [], 74 bdcdysz: [],
75 queryForm: { 75 queryForm: {
76 zl: "", 76 zl: "",
77 bdcdyh: "", 77 bdcdyh: "",
78 bdcqzh: "", 78 bdcqzh: "",
79 ywh: "", 79 ywh: "",
80 }, 80 },
81 pageData: { 81 pageData: {
82 current: 1, 82 current: 1,
83 size: 10, 83 size: 10,
84 total: 0, 84 total: 0,
85 }, 85 },
86 tableData: { 86 tableData: {
87 columns: datas.columns(), 87 columns: datas.columns(),
88 data: [], 88 data: [],
89 }, 89 },
90 qllxs: [], 90 qllxs: [],
91 isDialog: false, 91 isDialog: false,
92 djbxxData: {}, 92 djbxxData: {},
93 bsmSqyw: 93 bsmSqyw:
94 this.sqywInfo.nodetype === "djlx" 94 this.sqywInfo.nodetype === "djlx"
95 ? this.sqywInfo.bsmSqyw 95 ? this.sqywInfo.bsmSqyw
96 : this.sqywInfo.parentid, 96 : this.sqywInfo.parentid,
97 }; 97 };
98 },
99 computed: {
100 // ...mapGetters(["dictData"]),
101 },
102 methods: {
103 // 初始化数据
104 queryClick () {
105 this.$startLoading()
106 getDjbBysearch({ ...this.queryForm, ...this.pageData }).then((res) => {
107 this.$endLoading()
108 if (res.code === 200) {
109 let { total, records } = res.result;
110 this.tableData.data = records;
111 this.tableData.total = total;
112 }
113 });
114 }, 98 },
115 // handleSort (name, sort) { 99 methods: {
116 // console.log(name, sort); 100 // 初始化数据
117 // }, 101 queryClick () {
118 // 高级查询 102 this.$startLoading()
119 moreQueryClick () { }, 103 getDjbBysearch({ ...this.queryForm, ...this.pageData }).then((res) => {
120 // openDialog (scroll) { 104 this.$endLoading()
121 // this.$popupDialog('登记簿详情', 'registerBook/djbFrame', scroll, '85%'); 105 if (res.code === 200) {
122 // }, 106 let { total, records } = res.result;
123 // handleLpbClick (item) { 107 this.tableData.data = records;
124 // this.$popupDialog('楼盘表', 'lpb/index', { 108 this.tableData.total = total;
125 // bsm: '' 109 }
126 // }, '85%') 110 });
127 // }, 111 },
128 ywhClick (item) { 112 // 高级查询
113 moreQueryClick () { },
114 // openDialog (scroll) {
115 // this.$popupDialog('登记簿详情', 'registerBook/djbFrame', scroll, '85%');
116 // },
117 // handleLpbClick (item) {
118 // this.$popupDialog('楼盘表', 'lpb/index', {
119 // bsm: ''
120 // }, '85%')
121 // },
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 );
140 localStorage.setItem('ywbl', JSON.stringify(item)); 134 localStorage.setItem('ywbl', JSON.stringify(item));
141 window.open(href, `urlname${item.bdcdyid}`); 135 window.open(href, `urlname${item.bdcdyid}`);
142 136
143 }, 137 },
144 submitForm () { 138 submitForm () {
145 if (this.bdcdysz.length == 0) { 139 if (this.bdcdysz.length == 0) {
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,58 +160,58 @@ export default { ...@@ -166,58 +160,58 @@ 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) {
188 this.$refs.table.toggleRowSelection(row, false); 182 this.$refs.table.toggleRowSelection(row, false);
189 } 183 }
190 // 不然就让当前的一行勾选 184 // 不然就让当前的一行勾选
191 else { 185 else {
192 this.$refs.table.toggleRowSelection(row, true); 186 this.$refs.table.toggleRowSelection(row, true);
193 } 187 }
194 }) 188 })
195 } 189 }
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 },
197 }
203 } 198 }
204 }
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;
218 border-radius: 50%; 212 border-radius: 50%;
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,48 +109,48 @@ ...@@ -109,48 +109,48 @@
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) {
140 this.$refs.table.toggleRowSelection(row, false); 140 this.$refs.table.toggleRowSelection(row, false);
141 } 141 }
142 // 不然就让当前的一行勾选 142 // 不然就让当前的一行勾选
143 else { 143 else {
144 this.$refs.table.toggleRowSelection(row, true); 144 this.$refs.table.toggleRowSelection(row, true);
145 } 145 }
146 }) 146 })
147 } 147 }
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 },
155 }, 155 },
156 }; 156 };
......
...@@ -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,48 +109,48 @@ ...@@ -109,48 +109,48 @@
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) {
140 this.$refs.table.toggleRowSelection(row, false); 140 this.$refs.table.toggleRowSelection(row, false);
141 } 141 }
142 // 不然就让当前的一行勾选 142 // 不然就让当前的一行勾选
143 else { 143 else {
144 this.$refs.table.toggleRowSelection(row, true); 144 this.$refs.table.toggleRowSelection(row, true);
145 } 145 }
146 }) 146 })
147 } 147 }
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 },
155 }, 155 },
156 }; 156 };
......
...@@ -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,13 +117,13 @@ ...@@ -117,13 +117,13 @@
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) {
127 this.bdcdysz = val; 127 this.bdcdysz = val;
128 }, 128 },
129 openBook (row) { 129 openBook (row) {
...@@ -137,39 +137,39 @@ ...@@ -137,39 +137,39 @@
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) {
159 this.$refs.table.toggleRowSelection(row, false); 159 this.$refs.table.toggleRowSelection(row, false);
160 } 160 }
161 // 不然就让当前的一行勾选 161 // 不然就让当前的一行勾选
162 else { 162 else {
163 this.$refs.table.toggleRowSelection(row, true); 163 this.$refs.table.toggleRowSelection(row, true);
164 } 164 }
165 }) 165 })
166 } 166 }
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 },
174 } 174 }
175 } 175 }
......
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,49 +108,49 @@ ...@@ -108,49 +108,49 @@
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) {
140 this.$refs.table.toggleRowSelection(row, false); 140 this.$refs.table.toggleRowSelection(row, false);
141 } 141 }
142 // 不然就让当前的一行勾选 142 // 不然就让当前的一行勾选
143 else { 143 else {
144 this.$refs.table.toggleRowSelection(row, true); 144 this.$refs.table.toggleRowSelection(row, true);
145 } 145 }
146 }) 146 })
147 } 147 }
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 },
155 }, 155 },
156 }; 156 };
......
...@@ -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,48 +109,48 @@ ...@@ -109,48 +109,48 @@
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) {
140 this.$refs.table.toggleRowSelection(row, false); 140 this.$refs.table.toggleRowSelection(row, false);
141 } 141 }
142 // 不然就让当前的一行勾选 142 // 不然就让当前的一行勾选
143 else { 143 else {
144 this.$refs.table.toggleRowSelection(row, true); 144 this.$refs.table.toggleRowSelection(row, true);
145 } 145 }
146 }) 146 })
147 } 147 }
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 },
155 }, 155 },
156 }; 156 };
......
...@@ -75,10 +75,10 @@ ...@@ -75,10 +75,10 @@
75 sendThis(this); 75 sendThis(this);
76 }, 76 },
77 methods: { 77 methods: {
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,48 +109,48 @@ ...@@ -109,48 +109,48 @@
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) {
140 this.$refs.table.toggleRowSelection(row, false); 140 this.$refs.table.toggleRowSelection(row, false);
141 } 141 }
142 // 不然就让当前的一行勾选 142 // 不然就让当前的一行勾选
143 else { 143 else {
144 this.$refs.table.toggleRowSelection(row, true); 144 this.$refs.table.toggleRowSelection(row, true);
145 } 145 }
146 }) 146 })
147 } 147 }
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 },
155 }, 155 },
156 }; 156 };
......