style:业务申请
Showing
2 changed files
with
97 additions
and
19 deletions
src/views/workflow/components/batchDel.vue
0 → 100644
1 | <!-- | ||
2 | * @Description: | ||
3 | * @Autor: renchao | ||
4 | * @LastEditTime: 2023-04-26 16:05:28 | ||
5 | --> | ||
6 | <!-- 批量删除弹框 --> | ||
7 | <template> | ||
8 | <div class='batchDel'> | ||
9 | <lb-table :column="columns" :data="formData.dataList" :maxHeight="460" :heightNumSetting="true" :pagination="false" | ||
10 | @selection-change="handleSelectionChange"> | ||
11 | </lb-table> | ||
12 | <div class="text-center"> | ||
13 | <el-button @click="$popupCacel">取消</el-button> | ||
14 | <el-button type="primary" @click="submitdelclick" plain>确定</el-button> | ||
15 | </div> | ||
16 | </div> | ||
17 | </template> | ||
18 | <script> | ||
19 | import { deleteFlow } from "@/api/workFlow.js" | ||
20 | import store from '@/store/index.js' | ||
21 | export default { | ||
22 | components: {}, | ||
23 | props: { | ||
24 | formData: { | ||
25 | type: Object, | ||
26 | default: {} | ||
27 | } | ||
28 | }, | ||
29 | data () { | ||
30 | return { | ||
31 | columns: [ | ||
32 | { | ||
33 | type: 'selection', | ||
34 | label: '全选' | ||
35 | }, | ||
36 | { | ||
37 | label: '序号', | ||
38 | type: 'index', | ||
39 | width: '50', | ||
40 | }, | ||
41 | { | ||
42 | prop: "bdcdyh", | ||
43 | label: "不动产单元号", | ||
44 | }, | ||
45 | { | ||
46 | prop: "zl", | ||
47 | label: "坐落", | ||
48 | }, | ||
49 | ], | ||
50 | dataList: [], | ||
51 | selectBdcdy: [], | ||
52 | } | ||
53 | }, | ||
54 | methods: { | ||
55 | // 批量删除确定按钮 | ||
56 | submitdelclick () { | ||
57 | var formdata = new FormData(); | ||
58 | formdata.append("bsmSldyList", this.selectBdcdy); | ||
59 | formdata.append("bsmSlsq", this.formData.bsmSlsq); | ||
60 | deleteFlow(formdata).then(res => { | ||
61 | if (res.code == 200) { | ||
62 | this.$popupCacel(); | ||
63 | store.dispatch('user/refreshPage', true); | ||
64 | this.$message.success("删除成功"); | ||
65 | } else { | ||
66 | this.$message.error(res.message) | ||
67 | } | ||
68 | }) | ||
69 | }, | ||
70 | // 批量删除勾选事件 | ||
71 | handleSelectionChange (e) { | ||
72 | this.selectBdcdy = []; | ||
73 | e.forEach((item, index) => { | ||
74 | this.selectBdcdy.push(item.bsmSldy) | ||
75 | }) | ||
76 | } | ||
77 | } | ||
78 | } | ||
79 | </script> | ||
80 | <style scoped lang='scss'> | ||
81 | </style> |
1 | <!-- | 1 | <!-- |
2 | * @Description: 受理信息 | 2 | * @Description: 受理信息 |
3 | * @Autor: renchao | 3 | * @Autor: renchao |
4 | * @LastEditTime: 2023-07-20 09:30:21 | 4 | * @LastEditTime: 2023-07-20 16:12:16 |
5 | --> | 5 | --> |
6 | <template> | 6 | <template> |
7 | <div class="slxx"> | 7 | <div class="slxx"> |
8 | <el-form :model="ruleForm" :rules="rules" ref="ruleForm" :label-position="flag ? 'top' : ''" :inline="flag" | 8 | <el-form :model="ruleForm" :rules="rules" ref="ruleForm" :label-position="flag ? 'top' : ''" :inline="flag" |
9 | label-width="120px"> | 9 | label-width="130px"> |
10 | <div class="slxx_con" :class="flag ? 'formMarginBot0' : ''"> | 10 | <div class="slxx_con" :class="flag ? 'formMarginBot0' : ''"> |
11 | <div class="slxx_title title-block"> | 11 | <div class="slxx_title title-block"> |
12 | 受理信息 | 12 | 受理信息 |
... | @@ -30,12 +30,12 @@ | ... | @@ -30,12 +30,12 @@ |
30 | </el-col> | 30 | </el-col> |
31 | </el-row> | 31 | </el-row> |
32 | <el-row :gutter="10" v-if="ruleForm.slsq"> | 32 | <el-row :gutter="10" v-if="ruleForm.slsq"> |
33 | <el-col :span="8"> | 33 | <el-col :span="8" v-if="ruleForm.sldyList.length>0"> |
34 | <el-form-item label="权利类型:"> | 34 | <el-form-item label="权利类型:"> |
35 | <el-input disabled v-model="ruleForm.sldyList[0].qllxmc"></el-input> | 35 | <el-input disabled v-model="ruleForm.sldyList[0].qllxmc"></el-input> |
36 | </el-form-item> | 36 | </el-form-item> |
37 | </el-col> | 37 | </el-col> |
38 | <el-col :span="8"> | 38 | <el-col :span="8" v-if="ruleForm.sldyList.length>0"> |
39 | <el-form-item label="登记类型:"> | 39 | <el-form-item label="登记类型:"> |
40 | <el-input disabled v-model="ruleForm.sldyList[0].djlxmc"></el-input> | 40 | <el-input disabled v-model="ruleForm.sldyList[0].djlxmc"></el-input> |
41 | </el-form-item> | 41 | </el-form-item> |
... | @@ -99,7 +99,7 @@ | ... | @@ -99,7 +99,7 @@ |
99 | <div class="triangle"></div> | 99 | <div class="triangle"></div> |
100 | </div> | 100 | </div> |
101 | <el-row :gutter="10"> | 101 | <el-row :gutter="10"> |
102 | <el-col :span="14"> | 102 | <el-col :span="14" v-if="ruleForm.sldyList.length>0"> |
103 | <el-form-item label="共有方式:"> | 103 | <el-form-item label="共有方式:"> |
104 | <el-radio-group :disabled="!ableOperation" @change="showCZInfo" | 104 | <el-radio-group :disabled="!ableOperation" @change="showCZInfo" |
105 | v-model="ruleForm.sldyList[0].gyfs"> | 105 | v-model="ruleForm.sldyList[0].gyfs"> |
... | @@ -111,20 +111,17 @@ | ... | @@ -111,20 +111,17 @@ |
111 | </el-form-item> | 111 | </el-form-item> |
112 | </el-col> | 112 | </el-col> |
113 | 113 | ||
114 | <el-col :span="5" v-show=" ruleForm.slsq.gyfs == '2'"> | 114 | <el-col :span="5" v-show="ruleForm.sldyList.length>0 && ruleForm.slsq.gyfs == '2'"> |
115 | <el-form-item label="是否分别持证:"> | 115 | <el-form-item label="是否分别持证:" v-if="ruleForm.sldyList.length>0"> |
116 | <el-radio-group v-model="ruleForm.sldyList[0].sqfbcz"> | 116 | <el-radio-group v-model="ruleForm.sldyList[0].sqfbcz"> |
117 | <el-radio label="1">是</el-radio> | 117 | <el-radio label="1">是</el-radio> |
118 | <el-radio label="0">否</el-radio> | 118 | <el-radio label="0">否</el-radio> |
119 | </el-radio-group> | 119 | </el-radio-group> |
120 | </el-form-item> | 120 | </el-form-item> |
121 | </el-col> | 121 | </el-col> |
122 | <el-col :span="5" v-show="ruleForm.sldyList[0].gyfs == '2'"> | 122 | <el-col :span="5" v-show="ruleForm.sldyList.length>0 && ruleForm.sldyList[0].gyfs == '2'"> |
123 | <el-form-item label="持证人:"> | 123 | <el-form-item label="持证人:"> |
124 | <el-select v-model="ruleForm.slsq.czr" placeholder="持证人"> | 124 | <el-input v-model="ruleForm.slsq.czr"></el-input> |
125 | <el-option v-for="item in czrOptions" :key="item.value" :label="item.label" :value="item.value"> | ||
126 | </el-option> | ||
127 | </el-select> | ||
128 | </el-form-item> | 125 | </el-form-item> |
129 | </el-col> | 126 | </el-col> |
130 | </el-row> | 127 | </el-row> |
... | @@ -135,7 +132,7 @@ | ... | @@ -135,7 +132,7 @@ |
135 | <div class="triangle"></div> | 132 | <div class="triangle"></div> |
136 | </div> | 133 | </div> |
137 | <el-row :gutter="10"> | 134 | <el-row :gutter="10"> |
138 | <el-col> | 135 | <el-col v-if="ruleForm.fdcq2List.length>0"> |
139 | <el-form-item v-if="ruleForm.slsq" label="登记原因:" prop="djyy"> | 136 | <el-form-item v-if="ruleForm.slsq" label="登记原因:" prop="djyy"> |
140 | <el-input class="textArea" type="textarea" :disabled="!ableOperation" | 137 | <el-input class="textArea" type="textarea" :disabled="!ableOperation" |
141 | v-model="ruleForm.fdcq2List[0].djyy"> | 138 | v-model="ruleForm.fdcq2List[0].djyy"> |
... | @@ -166,7 +163,7 @@ | ... | @@ -166,7 +163,7 @@ |
166 | formdata.append("bsmSlsq", this.bsmSlsq); | 163 | formdata.append("bsmSlsq", this.bsmSlsq); |
167 | formdata.append("isEdit", this.ableOperation); | 164 | formdata.append("isEdit", this.ableOperation); |
168 | BatchInit(formdata).then((res) => { | 165 | BatchInit(formdata).then((res) => { |
169 | if (res.code === 200 && res.result) { | 166 | if (res.code == 200) { |
170 | this.ruleForm = res.result; | 167 | this.ruleForm = res.result; |
171 | this.splicingFdcq2Info(); | 168 | this.splicingFdcq2Info(); |
172 | } | 169 | } |
... | @@ -181,7 +178,6 @@ | ... | @@ -181,7 +178,6 @@ |
181 | return { | 178 | return { |
182 | disabled: true, | 179 | disabled: true, |
183 | tdytOption: [], | 180 | tdytOption: [], |
184 | czrOptions: [], | ||
185 | ruleForm: { | 181 | ruleForm: { |
186 | cfdjList: []//查封登记 | 182 | cfdjList: []//查封登记 |
187 | , diyaqList: []//抵押权 | 183 | , diyaqList: []//抵押权 |
... | @@ -204,10 +200,10 @@ | ... | @@ -204,10 +200,10 @@ |
204 | rules: {}, | 200 | rules: {}, |
205 | bsmSlsq: this.$route.query.bsmSlsq,//受理申请标识码 | 201 | bsmSlsq: this.$route.query.bsmSlsq,//受理申请标识码 |
206 | splicingFdcq2: {//前端根据后台数组组装展示内容 | 202 | splicingFdcq2: {//前端根据后台数组组装展示内容 |
207 | fwxz: {}//房屋性质 | 203 | fwxz: ''//房屋性质 |
208 | , fwjg: {}//房屋结构 | 204 | , fwjg: ''//房屋结构 |
209 | , jzmj: {} //建筑面积 | 205 | , jzmj: '' //建筑面积 |
210 | , zts: {}//房屋总套数 | 206 | , zts: ''//房屋总套数 |
211 | } | 207 | } |
212 | } | 208 | } |
213 | }, | 209 | }, |
... | @@ -215,6 +211,7 @@ | ... | @@ -215,6 +211,7 @@ |
215 | //组装房地产权通用信息 | 211 | //组装房地产权通用信息 |
216 | splicingFdcq2Info () { | 212 | splicingFdcq2Info () { |
217 | let fdcq2List = this.ruleForm.fdcq2List; | 213 | let fdcq2List = this.ruleForm.fdcq2List; |
214 | console.log(this.ruleForm.fdcq2List, 'this.ruleForm.fdcq2List'); | ||
218 | let fwxzArr = []; | 215 | let fwxzArr = []; |
219 | let fwjgArr = []; | 216 | let fwjgArr = []; |
220 | let jzmj = 0; | 217 | let jzmj = 0; | ... | ... |
-
Please register or sign in to post a comment