1e88e991 by renchao@pashanhoo.com

受理申请

1 parent 7a4e9519
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,14 +155,9 @@ ...@@ -155,14 +155,9 @@
155 * @description: submitForm 155 * @description: submitForm
156 * @author: renchao 156 * @author: renchao
157 */ 157 */
158 submitForm () { 158 handleAdd () {
159 let that = this 159 let that = this
160 if (this.bdcdysz.length == 0) { 160 this.loading = true;
161 this.$message.error("请至少选择一条数据");
162 return;
163 }
164 this.loading = true
165 if (this.sqywInfo.isworkFrame) {
166 store.dispatch('user/reMenuRefresh', false) 161 store.dispatch('user/reMenuRefresh', false)
167 againAddSldy({ 162 againAddSldy({
168 bsmSqyw: that.sqywInfo.bsmSqyw, 163 bsmSqyw: that.sqywInfo.bsmSqyw,
...@@ -188,7 +183,14 @@ ...@@ -188,7 +183,14 @@
188 }).catch(() => { 183 }).catch(() => {
189 that.loading = false 184 that.loading = false
190 }) 185 })
191 } else { 186 },
187 submitForm () {
188 let that = this
189 if (this.bdcdysz.length == 0) {
190 this.$message.error("请至少选择一条数据");
191 return;
192 }
193 this.loading = true
192 if (!that.isJump) { 194 if (!that.isJump) {
193 startBusinessFlow({ 195 startBusinessFlow({
194 bsmSqyw: that.sqywInfo.bsmSqyw, 196 bsmSqyw: that.sqywInfo.bsmSqyw,
...@@ -239,7 +241,6 @@ ...@@ -239,7 +241,6 @@
239 that.loading = false 241 that.loading = false
240 }) 242 })
241 } 243 }
242 }
243 }, 244 },
244 /** 245 /**
245 * @description: handleSelectionChange 246 * @description: handleSelectionChange
......
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,14 +147,9 @@ ...@@ -147,14 +147,9 @@
147 * @description: submitFormClick 147 * @description: submitFormClick
148 * @author: renchao 148 * @author: renchao
149 */ 149 */
150 submitFormClick () { 150 handleAdd () {
151 let that = this 151 let that = this
152 if (this.bdcdysz.length == 0) {
153 this.$message.error("请至少选择一条数据");
154 return;
155 }
156 this.loading = true; 152 this.loading = true;
157 if (this.sqywInfo.isworkFrame) {
158 store.dispatch('user/reMenuRefresh', false) 153 store.dispatch('user/reMenuRefresh', false)
159 againAddSldy({ 154 againAddSldy({
160 bsmSqyw: that.sqywInfo.bsmSqyw, 155 bsmSqyw: that.sqywInfo.bsmSqyw,
...@@ -180,7 +175,14 @@ ...@@ -180,7 +175,14 @@
180 }).catch(() => { 175 }).catch(() => {
181 that.loading = false 176 that.loading = false
182 }) 177 })
183 } else { 178 },
179 submitFormClick () {
180 let that = this
181 if (this.bdcdysz.length == 0) {
182 this.$message.error("请至少选择一条数据");
183 return;
184 }
185 this.loading = true;
184 startBusinessFlow({ 186 startBusinessFlow({
185 bsmSqyw: this.sqywInfo.bsmSqyw, 187 bsmSqyw: this.sqywInfo.bsmSqyw,
186 bdcdysz: this.bdcdysz, 188 bdcdysz: this.bdcdysz,
...@@ -210,7 +212,6 @@ ...@@ -210,7 +212,6 @@
210 }).catch(() => { 212 }).catch(() => {
211 this.loading = false 213 this.loading = false
212 }) 214 })
213 }
214 }, 215 },
215 /** 216 /**
216 * @description: handleSelectionChange 217 * @description: handleSelectionChange
......