Merge branch 'dev'
Showing
4 changed files
with
285 additions
and
134 deletions
src/views/workflow/components/dyaqTable.vue
0 → 100644
1 | <!-- | ||
2 | * @Description: | ||
3 | * @Autor: renchao | ||
4 | * @LastEditTime: 2023-07-17 13:51:29 | ||
5 | --> | ||
6 | <template> | ||
7 | <lb-table :column="column" :maxHeight="200" :heightNumSetting="true" :pagination="false" :key="key" :data="tableData"> | ||
8 | </lb-table> | ||
9 | </template> | ||
10 | <script> | ||
11 | import addQlr from './dialog/addQlr.vue' | ||
12 | import { mapGetters } from 'vuex' | ||
13 | export default { | ||
14 | components: { | ||
15 | addQlr | ||
16 | }, | ||
17 | computed: { | ||
18 | ...mapGetters(["dictData"]), | ||
19 | }, | ||
20 | props: { | ||
21 | tableData: { | ||
22 | type: Array, | ||
23 | default: function () { | ||
24 | return [] | ||
25 | } | ||
26 | }, | ||
27 | gyfs: { | ||
28 | type: String, | ||
29 | default: '1' | ||
30 | } | ||
31 | }, | ||
32 | data () { | ||
33 | return { | ||
34 | key: 0, | ||
35 | dataIndex: 0, | ||
36 | dialog: false, | ||
37 | details: {}, | ||
38 | tableDataList: [], | ||
39 | qlrCommonTable: [ | ||
40 | { | ||
41 | label: '序号', | ||
42 | type: 'index', | ||
43 | width: '50', | ||
44 | render: (h, scope) => { | ||
45 | return ( | ||
46 | <div> | ||
47 | {scope.$index + 1} | ||
48 | </div> | ||
49 | ) | ||
50 | } | ||
51 | }, | ||
52 | { | ||
53 | prop: "qlrmc", | ||
54 | label: "抵押权人" | ||
55 | }, | ||
56 | { | ||
57 | prop: "ywrmc", | ||
58 | label: "抵押人" | ||
59 | }, | ||
60 | { | ||
61 | prop: "bdcqzh", | ||
62 | label: "不动产登记证明号" | ||
63 | }, | ||
64 | { | ||
65 | prop: "dyjelx", | ||
66 | label: "抵押金额类型" | ||
67 | }, | ||
68 | { | ||
69 | prop: "dyfsmc", | ||
70 | label: "抵押方式" | ||
71 | }, | ||
72 | { | ||
73 | prop: "qdjgmc", | ||
74 | label: "抵押金额" | ||
75 | }, | ||
76 | { | ||
77 | prop: "qlmjmc", | ||
78 | label: "抵押面积" | ||
79 | }, | ||
80 | { | ||
81 | prop: "zwlxqssj", | ||
82 | label: "债务履行开始时间" | ||
83 | }, | ||
84 | { | ||
85 | prop: "zwlxjssj", | ||
86 | label: "债务履行结束时间" | ||
87 | }, | ||
88 | { | ||
89 | prop: "bdcdyh", | ||
90 | label: "不动产单元号" | ||
91 | }, | ||
92 | { | ||
93 | prop: "zl", | ||
94 | label: "坐落" | ||
95 | }, | ||
96 | |||
97 | |||
98 | ], | ||
99 | column: this.qlrCommonTable | ||
100 | } | ||
101 | }, | ||
102 | watch: { | ||
103 | tableData: { | ||
104 | handler: function (val, oldVal) { | ||
105 | let that = this | ||
106 | if (val.length == 0 || !val) { | ||
107 | that.tableDataList = _.cloneDeep([{ | ||
108 | sqrmc: '', | ||
109 | dlrzjlx: '', | ||
110 | dlrzjh: '', | ||
111 | fr: '' | ||
112 | }]) | ||
113 | } else { | ||
114 | that.tableDataList = _.cloneDeep(val) | ||
115 | } | ||
116 | }, | ||
117 | immediate: true, | ||
118 | deep: true | ||
119 | }, | ||
120 | gyfs: { | ||
121 | handler (newVal, oldValue) { | ||
122 | let dataList = _.cloneDeep(this.qlrCommonTable) | ||
123 | if (newVal == '1') { | ||
124 | this.column = _.cloneDeep(dataList).slice(1, dataList.length) | ||
125 | } else if ((newVal == '2')) { | ||
126 | this.column = dataList | ||
127 | } else { | ||
128 | this.column = _.cloneDeep(dataList) | ||
129 | this.column.splice( | ||
130 | 2, 0, { | ||
131 | prop: "qlbl", | ||
132 | label: "份数" | ||
133 | }) | ||
134 | } | ||
135 | }, | ||
136 | immediate: true | ||
137 | } | ||
138 | }, | ||
139 | methods: { | ||
140 | } | ||
141 | } | ||
142 | </script> | ||
143 | <style scoped lang='scss'> | ||
144 | /deep/.el-table th { | ||
145 | height: 30px !important; | ||
146 | } | ||
147 | /deep/.el-table--small .el-table__cell { | ||
148 | padding: 5px; | ||
149 | } | ||
150 | </style> |
... | @@ -55,24 +55,24 @@ | ... | @@ -55,24 +55,24 @@ |
55 | <div | 55 | <div |
56 | class="slxx_title title-block" | 56 | class="slxx_title title-block" |
57 | v-if="ruleForm.slsq.djywbm.includes('400')"> | 57 | v-if="ruleForm.slsq.djywbm.includes('400')"> |
58 | 在抵押权信息列表({{ ruleForm.qlxxList.length }} 个) | 58 | 在抵押权信息列表({{ ruleForm.diyaqDetailList.length }} 个) |
59 | <div class="triangle"></div> | 59 | <div class="triangle"></div> |
60 | <dyaqTable :tableData="ruleForm.diyaqDetailList" /> | ||
60 | </div> | 61 | </div> |
61 | <div | 62 | <div |
62 | class="slxx_title title-block" | 63 | class="slxx_title title-block" |
63 | v-else> | 64 | v-else> |
64 | 抵押不动产列表信息({{ ruleForm.ztQlxxList.length }} 个) | 65 | 抵押不动产列表信息({{ ruleForm.ztQlxxList.length }} 个) |
65 | <div class="triangle"></div> | 66 | <div class="triangle"></div> |
66 | </div> | 67 | <cfBdcdyTable :tableData="ruleForm.ztQlxxList" /> |
67 | <cfBdcdyTable :tableData="ruleForm.qlxxList" v-if="ruleForm.slsq.djywbm.includes('400')" /> | 68 | </div> |
68 | <cfBdcdyTable v-else :tableData="ruleForm.ztQlxxList" /> | 69 | <div class="slxx_title title-block" v-if="!ruleForm.slsq.djywbm.includes('400')"> |
69 | <div class="slxx_title title-block"> | ||
70 | 抵押信息 | 70 | 抵押信息 |
71 | <div class="triangle"></div> | 71 | <div class="triangle"></div> |
72 | </div> | 72 | </div> |
73 | <el-row | 73 | <el-row |
74 | :gutter="10" | 74 | :gutter="10" |
75 | v-if="ruleForm.diyaqList && ruleForm.diyaqList.length > 0"> | 75 | v-if="ruleForm.diyaqList && ruleForm.diyaqList.length > 0 && !ruleForm.slsq.djywbm.includes('400')"> |
76 | <el-col :span="8"> | 76 | <el-col :span="8"> |
77 | <el-form-item label="抵押方式:"> | 77 | <el-form-item label="抵押方式:"> |
78 | <el-radio-group disabled v-model="ruleForm.diyaqList[0].dyfs"> | 78 | <el-radio-group disabled v-model="ruleForm.diyaqList[0].dyfs"> |
... | @@ -106,7 +106,7 @@ | ... | @@ -106,7 +106,7 @@ |
106 | </el-row> | 106 | </el-row> |
107 | <el-row | 107 | <el-row |
108 | :gutter="10" | 108 | :gutter="10" |
109 | v-if="ruleForm.diyaqList && ruleForm.diyaqList.length > 0"> | 109 | v-if="ruleForm.diyaqList && ruleForm.diyaqList.length > 0 && !ruleForm.slsq.djywbm.includes('400')"> |
110 | <el-col :span="8" v-show="ruleForm.diyaqList[0].dyfs == 1"> | 110 | <el-col :span="8" v-show="ruleForm.diyaqList[0].dyfs == 1"> |
111 | <el-form-item label="被担保主债权数额:"> | 111 | <el-form-item label="被担保主债权数额:"> |
112 | <div style="display: flex"> | 112 | <div style="display: flex"> |
... | @@ -165,8 +165,7 @@ | ... | @@ -165,8 +165,7 @@ |
165 | </el-form-item> | 165 | </el-form-item> |
166 | </el-col> | 166 | </el-col> |
167 | </el-row> | 167 | </el-row> |
168 | 168 | <el-row v-if="ruleForm.diyaqList && ruleForm.diyaqList.length > 0 && !ruleForm.slsq.djywbm.includes('400')"> | |
169 | <el-row v-if="ruleForm.diyaqList && ruleForm.diyaqList.length > 0"> | ||
170 | <el-col :span="24"> | 169 | <el-col :span="24"> |
171 | <el-form-item label="担保范围:"> | 170 | <el-form-item label="担保范围:"> |
172 | <el-input | 171 | <el-input |
... | @@ -175,7 +174,7 @@ | ... | @@ -175,7 +174,7 @@ |
175 | </el-form-item> | 174 | </el-form-item> |
176 | </el-col> | 175 | </el-col> |
177 | </el-row> | 176 | </el-row> |
178 | <el-row v-if="ruleForm.diyaqList && ruleForm.diyaqList.length > 0"> | 177 | <el-row v-if="ruleForm.diyaqList && ruleForm.diyaqList.length > 0 && !ruleForm.slsq.djywbm.includes('400')"> |
179 | <el-col :span="24"> | 178 | <el-col :span="24"> |
180 | <el-form-item label="最高债权确定事实和数额:"> | 179 | <el-form-item label="最高债权确定事实和数额:"> |
181 | <el-input | 180 | <el-input |
... | @@ -184,7 +183,7 @@ | ... | @@ -184,7 +183,7 @@ |
184 | </el-form-item> | 183 | </el-form-item> |
185 | </el-col> | 184 | </el-col> |
186 | </el-row> | 185 | </el-row> |
187 | <el-row v-if="ruleForm.diyaqList && ruleForm.diyaqList.length > 0"> | 186 | <el-row v-if="ruleForm.diyaqList && ruleForm.diyaqList.length > 0 && !ruleForm.slsq.djywbm.includes('400')"> |
188 | <el-col> | 187 | <el-col> |
189 | <el-form-item label="附记:" prop="fj"> | 188 | <el-form-item label="附记:" prop="fj"> |
190 | <el-input | 189 | <el-input |
... | @@ -304,8 +303,8 @@ | ... | @@ -304,8 +303,8 @@ |
304 | </div> | 303 | </div> |
305 | </template> | 304 | </template> |
306 | <script> | 305 | <script> |
307 | import qjhTable from "@/views/workflow/components/qjhTable"; | ||
308 | import cfBdcdyTable from "@/views/workflow/components/cfBdcdyTable"; | 306 | import cfBdcdyTable from "@/views/workflow/components/cfBdcdyTable"; |
307 | import dyaqTable from "@/views/workflow/components/dyaqTable"; | ||
309 | import qlrCommonTable from "@/views/workflow/components/qlrCommonTable"; | 308 | import qlrCommonTable from "@/views/workflow/components/qlrCommonTable"; |
310 | import { batchInit, saveBatchData } from "@/api/workflow/diyaqFlow.js"; | 309 | import { batchInit, saveBatchData } from "@/api/workflow/diyaqFlow.js"; |
311 | import { mapGetters } from "vuex"; | 310 | import { mapGetters } from "vuex"; |
... | @@ -346,7 +345,7 @@ | ... | @@ -346,7 +345,7 @@ |
346 | this.loading = false | 345 | this.loading = false |
347 | }) | 346 | }) |
348 | }, | 347 | }, |
349 | components: { qlrCommonTable, qjhTable, cfBdcdyTable }, | 348 | components: { qlrCommonTable, cfBdcdyTable,dyaqTable }, |
350 | computed: { | 349 | computed: { |
351 | ...mapGetters(["dictData", "flag"]), | 350 | ...mapGetters(["dictData", "flag"]), |
352 | }, | 351 | }, | ... | ... |
1 | <!-- | 1 | <!-- |
2 | * @Description: | 2 | * @Description: |
3 | * @Autor: renchao | 3 | * @Autor: renchao |
4 | * @LastEditTime: 2024-02-02 14:56:22 | 4 | * @LastEditTime: 2024-02-06 14:43:33 |
5 | --> | 5 | --> |
6 | <template> | 6 | <template> |
7 | <div class="from-clues"> | 7 | <div class="from-clues"> |
... | @@ -76,7 +76,7 @@ | ... | @@ -76,7 +76,7 @@ |
76 | </div> | 76 | </div> |
77 | <div class="submit_button"> | 77 | <div class="submit_button"> |
78 | <el-button @click="$popupCacel">取消</el-button> | 78 | <el-button @click="$popupCacel">取消</el-button> |
79 | <el-button type="primary" plain @click="submitForm" :loading="loading" v-if="sqywInfo.isworkFrame">添加单元</el-button> | 79 | <el-button type="primary" plain @click="handleAdd" :loading="loading" v-if="sqywInfo.isworkFrame">添加单元</el-button> |
80 | <el-button type="primary" plain @click="submitForm" :loading="loading" v-else>发起申请</el-button> | 80 | <el-button type="primary" plain @click="submitForm" :loading="loading" v-else>发起申请</el-button> |
81 | </div> | 81 | </div> |
82 | </div> | 82 | </div> |
... | @@ -155,6 +155,35 @@ | ... | @@ -155,6 +155,35 @@ |
155 | * @description: submitForm | 155 | * @description: submitForm |
156 | * @author: renchao | 156 | * @author: renchao |
157 | */ | 157 | */ |
158 | handleAdd () { | ||
159 | let that = this | ||
160 | this.loading = true; | ||
161 | store.dispatch('user/reMenuRefresh', false) | ||
162 | againAddSldy({ | ||
163 | bsmSqyw: that.sqywInfo.bsmSqyw, | ||
164 | bdcdysz: that.bdcdysz, | ||
165 | bsmSlsq: that.sqywInfo.bsmSlsq, | ||
166 | }).then(res => { | ||
167 | that.loading = false | ||
168 | if (res.code == 200) { | ||
169 | if (this.sqywInfo.sqywdylx != "1") { | ||
170 | that.bdcdysz = [] | ||
171 | that.$refs.table.clearSelection() | ||
172 | } | ||
173 | store.dispatch('user/reMenuRefresh', true) | ||
174 | that.queryClick() | ||
175 | that.$message({ | ||
176 | showClose: true, | ||
177 | message: '添加成功', | ||
178 | type: 'success' | ||
179 | }) | ||
180 | } else { | ||
181 | that.$message.error(res.message); | ||
182 | } | ||
183 | }).catch(() => { | ||
184 | that.loading = false | ||
185 | }) | ||
186 | }, | ||
158 | submitForm () { | 187 | submitForm () { |
159 | let that = this | 188 | let that = this |
160 | if (this.bdcdysz.length == 0) { | 189 | if (this.bdcdysz.length == 0) { |
... | @@ -162,83 +191,55 @@ | ... | @@ -162,83 +191,55 @@ |
162 | return; | 191 | return; |
163 | } | 192 | } |
164 | this.loading = true | 193 | this.loading = true |
165 | if (this.sqywInfo.isworkFrame) { | 194 | if (!that.isJump) { |
166 | store.dispatch('user/reMenuRefresh', false) | 195 | startBusinessFlow({ |
167 | againAddSldy({ | ||
168 | bsmSqyw: that.sqywInfo.bsmSqyw, | 196 | bsmSqyw: that.sqywInfo.bsmSqyw, |
169 | bdcdysz: that.bdcdysz, | 197 | bdcdysz: that.bdcdysz, |
170 | bsmSlsq: that.sqywInfo.bsmSlsq, | 198 | }).then((res) => { |
171 | }).then(res => { | ||
172 | that.loading = false | 199 | that.loading = false |
173 | if (res.code == 200) { | 200 | if (res.code == 200) { |
174 | if (this.sqywInfo.sqywdylx != "1") { | 201 | that.$message({ |
175 | that.bdcdysz = [] | 202 | showClose: true, |
176 | that.$refs.table.clearSelection() | 203 | message: "发起申请成功", |
204 | type: "success", | ||
205 | }); | ||
206 | if (!that.isJump) { | ||
207 | that.jump(res.result, that.sqywInfo.djywbm); | ||
208 | } else { | ||
209 | store.dispatch('user/refreshPage', true); | ||
210 | } | ||
211 | that.$popupCacel() | ||
212 | |||
213 | } else { | ||
214 | if (res.result && res.result.length > 0) { | ||
215 | ywPopupDialog("申请错误明细", "components/ywdialog", { result: res.result }, '36%', true) | ||
216 | } else { | ||
217 | ywPopupDialog("申请错误明细", "components/ywdialog", { message: res.message }, '36%', true) | ||
177 | } | 218 | } |
178 | store.dispatch('user/reMenuRefresh', true) | 219 | } |
179 | that.queryClick() | 220 | }).catch(() => { |
221 | that.loading = false | ||
222 | }) | ||
223 | } else { | ||
224 | choiceBdcdy({ | ||
225 | bsmSlsq: that.$route.query.bsmSlsq, | ||
226 | bdcdysz: that.bdcdysz, | ||
227 | }).then((res) => { | ||
228 | that.loading = false | ||
229 | if (res.code == 200) { | ||
180 | that.$message({ | 230 | that.$message({ |
181 | showClose: true, | 231 | showClose: true, |
182 | message: '添加成功', | 232 | message: "发起申请成功", |
183 | type: 'success' | 233 | type: "success", |
184 | }) | 234 | }); |
235 | store.dispatch("user/refreshPage", true); | ||
185 | } else { | 236 | } else { |
186 | that.$message.error(res.message); | 237 | that.$message.error(res.message); |
187 | } | 238 | } |
239 | that.$popupCacel(); | ||
188 | }).catch(() => { | 240 | }).catch(() => { |
189 | that.loading = false | 241 | that.loading = false |
190 | }) | 242 | }) |
191 | } else { | ||
192 | if (!that.isJump) { | ||
193 | startBusinessFlow({ | ||
194 | bsmSqyw: that.sqywInfo.bsmSqyw, | ||
195 | bdcdysz: that.bdcdysz, | ||
196 | }).then((res) => { | ||
197 | that.loading = false | ||
198 | if (res.code == 200) { | ||
199 | that.$message({ | ||
200 | showClose: true, | ||
201 | message: "发起申请成功", | ||
202 | type: "success", | ||
203 | }); | ||
204 | if (!that.isJump) { | ||
205 | that.jump(res.result, that.sqywInfo.djywbm); | ||
206 | } else { | ||
207 | store.dispatch('user/refreshPage', true); | ||
208 | } | ||
209 | that.$popupCacel() | ||
210 | |||
211 | } else { | ||
212 | if (res.result && res.result.length > 0) { | ||
213 | ywPopupDialog("申请错误明细", "components/ywdialog", { result: res.result }, '36%', true) | ||
214 | } else { | ||
215 | ywPopupDialog("申请错误明细", "components/ywdialog", { message: res.message }, '36%', true) | ||
216 | } | ||
217 | } | ||
218 | }).catch(() => { | ||
219 | that.loading = false | ||
220 | }) | ||
221 | } else { | ||
222 | choiceBdcdy({ | ||
223 | bsmSlsq: that.$route.query.bsmSlsq, | ||
224 | bdcdysz: that.bdcdysz, | ||
225 | }).then((res) => { | ||
226 | that.loading = false | ||
227 | if (res.code == 200) { | ||
228 | that.$message({ | ||
229 | showClose: true, | ||
230 | message: "发起申请成功", | ||
231 | type: "success", | ||
232 | }); | ||
233 | store.dispatch("user/refreshPage", true); | ||
234 | } else { | ||
235 | that.$message.error(res.message); | ||
236 | } | ||
237 | that.$popupCacel(); | ||
238 | }).catch(() => { | ||
239 | that.loading = false | ||
240 | }) | ||
241 | } | ||
242 | } | 243 | } |
243 | }, | 244 | }, |
244 | /** | 245 | /** | ... | ... |
1 | <!-- | 1 | <!-- |
2 | * @Description: | 2 | * @Description: |
3 | * @Autor: renchao | 3 | * @Autor: renchao |
4 | * @LastEditTime: 2024-02-02 16:35:05 | 4 | * @LastEditTime: 2024-02-06 14:43:44 |
5 | --> | 5 | --> |
6 | <template> | 6 | <template> |
7 | <!-- 抵押权利信息查询 --> | 7 | <!-- 抵押权利信息查询 --> |
... | @@ -67,7 +67,7 @@ | ... | @@ -67,7 +67,7 @@ |
67 | </div> | 67 | </div> |
68 | <div class="submit_button"> | 68 | <div class="submit_button"> |
69 | <el-button @click="$popupCacel">取消</el-button> | 69 | <el-button @click="$popupCacel">取消</el-button> |
70 | <el-button type="primary" plain @click="submitFormClick()" :loading="loading" v-if="sqywInfo.isworkFrame">添加单元</el-button> | 70 | <el-button type="primary" plain @click="handleAdd" :loading="loading" v-if="sqywInfo.isworkFrame">添加单元</el-button> |
71 | <el-button type="primary" plain @click="submitFormClick()" :loading="loading" v-else>发起申请</el-button> | 71 | <el-button type="primary" plain @click="submitFormClick()" :loading="loading" v-else>发起申请</el-button> |
72 | </div> | 72 | </div> |
73 | </div> | 73 | </div> |
... | @@ -147,6 +147,35 @@ | ... | @@ -147,6 +147,35 @@ |
147 | * @description: submitFormClick | 147 | * @description: submitFormClick |
148 | * @author: renchao | 148 | * @author: renchao |
149 | */ | 149 | */ |
150 | handleAdd () { | ||
151 | let that = this | ||
152 | this.loading = true; | ||
153 | store.dispatch('user/reMenuRefresh', false) | ||
154 | againAddSldy({ | ||
155 | bsmSqyw: that.sqywInfo.bsmSqyw, | ||
156 | bdcdysz: that.bdcdysz, | ||
157 | bsmSlsq: that.sqywInfo.bsmSlsq, | ||
158 | }).then(res => { | ||
159 | that.loading = false | ||
160 | if (res.code == 200) { | ||
161 | if (this.sqywInfo.sqywdylx != "1") { | ||
162 | that.bdcdysz = [] | ||
163 | that.$refs.table.clearSelection() | ||
164 | } | ||
165 | store.dispatch('user/reMenuRefresh', true) | ||
166 | that.queryClick() | ||
167 | that.$message({ | ||
168 | showClose: true, | ||
169 | message: '添加成功', | ||
170 | type: 'success' | ||
171 | }) | ||
172 | } else { | ||
173 | that.$message.error(res.message); | ||
174 | } | ||
175 | }).catch(() => { | ||
176 | that.loading = false | ||
177 | }) | ||
178 | }, | ||
150 | submitFormClick () { | 179 | submitFormClick () { |
151 | let that = this | 180 | let that = this |
152 | if (this.bdcdysz.length == 0) { | 181 | if (this.bdcdysz.length == 0) { |
... | @@ -154,63 +183,35 @@ | ... | @@ -154,63 +183,35 @@ |
154 | return; | 183 | return; |
155 | } | 184 | } |
156 | this.loading = true; | 185 | this.loading = true; |
157 | if (this.sqywInfo.isworkFrame) { | 186 | startBusinessFlow({ |
158 | store.dispatch('user/reMenuRefresh', false) | 187 | bsmSqyw: this.sqywInfo.bsmSqyw, |
159 | againAddSldy({ | 188 | bdcdysz: this.bdcdysz, |
160 | bsmSqyw: that.sqywInfo.bsmSqyw, | 189 | // djqxbm: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodecode : "", |
161 | bdcdysz: that.bdcdysz, | 190 | // djqxmc: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodename : "", |
162 | bsmSlsq: that.sqywInfo.bsmSlsq, | 191 | }).then((res) => { |
163 | }).then(res => { | 192 | this.loading = false |
164 | that.loading = false | 193 | if (res.code == 200) { |
165 | if (res.code == 200) { | 194 | that.$message({ |
166 | if (this.sqywInfo.sqywdylx != "1") { | 195 | showClose: true, |
167 | that.bdcdysz = [] | 196 | message: "发起申请成功", |
168 | that.$refs.table.clearSelection() | 197 | type: "success", |
169 | } | 198 | }); |
170 | store.dispatch('user/reMenuRefresh', true) | 199 | if (!that.isJump) { |
171 | that.queryClick() | 200 | that.jump(res.result, that.sqywInfo.djywbm); |
172 | that.$message({ | ||
173 | showClose: true, | ||
174 | message: '添加成功', | ||
175 | type: 'success' | ||
176 | }) | ||
177 | } else { | 201 | } else { |
178 | that.$message.error(res.message); | 202 | store.dispatch('user/refreshPage', true); |
179 | } | 203 | } |
180 | }).catch(() => { | 204 | that.$popupCacel() |
181 | that.loading = false | 205 | } else { |
182 | }) | 206 | if (res.result && res.result.length > 0) { |
183 | } else { | 207 | ywPopupDialog("申请错误明细", "components/ywdialog", { result: res.result }, '36%', true) |
184 | startBusinessFlow({ | ||
185 | bsmSqyw: this.sqywInfo.bsmSqyw, | ||
186 | bdcdysz: this.bdcdysz, | ||
187 | // djqxbm: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodecode : "", | ||
188 | // djqxmc: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodename : "", | ||
189 | }).then((res) => { | ||
190 | this.loading = false | ||
191 | if (res.code == 200) { | ||
192 | that.$message({ | ||
193 | showClose: true, | ||
194 | message: "发起申请成功", | ||
195 | type: "success", | ||
196 | }); | ||
197 | if (!that.isJump) { | ||
198 | that.jump(res.result, that.sqywInfo.djywbm); | ||
199 | } else { | ||
200 | store.dispatch('user/refreshPage', true); | ||
201 | } | ||
202 | that.$popupCacel() | ||
203 | } else { | 208 | } else { |
204 | if (res.result && res.result.length > 0) { | 209 | ywPopupDialog("申请错误明细", "components/ywdialog", { message: res.message }, '36%', true) |
205 | ywPopupDialog("申请错误明细", "components/ywdialog", { result: res.result }, '36%', true) | ||
206 | } else { | ||
207 | ywPopupDialog("申请错误明细", "components/ywdialog", { message: res.message }, '36%', true) | ||
208 | } | ||
209 | } | 210 | } |
210 | }).catch(() => { | 211 | } |
211 | this.loading = false | 212 | }).catch(() => { |
212 | }) | 213 | this.loading = false |
213 | } | 214 | }) |
214 | }, | 215 | }, |
215 | /** | 216 | /** |
216 | * @description: handleSelectionChange | 217 | * @description: handleSelectionChange | ... | ... |
-
Please register or sign in to post a comment