699fc7d7 by xiaomiao

ywlsbtn

1 parent 64c78991
...@@ -302,6 +302,70 @@ ...@@ -302,6 +302,70 @@
302 </el-input> 302 </el-input>
303 </el-form-item> 303 </el-form-item>
304 </el-col> 304 </el-col>
305 <el-col :span="8">
306 <el-form-item :prop="'obligeeList.' + index + '.QLLX'" :rules="rules.QLLX">
307 <span slot="label">
308 权利类型: <br />
309 <p class="label-detail">(QLLX)</p>
310 </span>
311 <el-input :disabled="$store.state.business.Edit" v-model="obligeeForm.obligeeList[index].QLLX">
312 </el-input>
313 </el-form-item>
314 </el-col>
315 <el-col :span="8">
316 <el-form-item :prop="'obligeeList.' + index + '.YWH'" :rules="rules.YWH">
317 <span slot="label">
318 业务号: <br />
319 <p class="label-detail">(YWH)</p>
320 </span>
321 <el-input :disabled="$store.state.business.Edit" v-model="obligeeForm.obligeeList[index].YWH">
322 </el-input>
323 </el-form-item>
324 </el-col>
325 </el-row>
326 <el-row class="obligee-item-input">
327 <el-col :span="8">
328 <el-form-item :prop="'obligeeList.' + index + '.QLRTZ'" :rules="rules.QLRTZ">
329 <span slot="label">
330 权利人特征: <br />
331 <p class="label-detail">(QLRTZ)</p>
332 </span>
333 <el-input :disabled="$store.state.business.Edit" v-model="obligeeForm.obligeeList[index].QLRTZ">
334 </el-input>
335 </el-form-item>
336 </el-col>
337 <el-col :span="8">
338 <el-form-item :prop="'obligeeList.' + index + '.CBFBM'" :rules="rules.CBFBM">
339 <span slot="label">
340 承包方代码: <br />
341 <p class="label-detail">(CBFBM)</p>
342 </span>
343 <el-input :disabled="$store.state.business.Edit" v-model="obligeeForm.obligeeList[index].CBFBM">
344 </el-input>
345 </el-form-item>
346 </el-col>
347 <el-col :span="8">
348 <el-form-item :prop="'obligeeList.' + index + '.FBFBM'" :rules="rules.FBFBM">
349 <span slot="label">
350 发包方代码: <br />
351 <p class="label-detail">(FBFBM)</p>
352 </span>
353 <el-input :disabled="$store.state.business.Edit" v-model="obligeeForm.obligeeList[index].FBFBM">
354 </el-input>
355 </el-form-item>
356 </el-col>
357 </el-row>
358 <el-row class="obligee-item-input">
359 <el-col :span="8">
360 <el-form-item :prop="'obligeeList.' + index + '.QSZT'" :rules="rules.QSZT">
361 <span slot="label">
362 权属状态: <br />
363 <p class="label-detail">(QSZT)</p>
364 </span>
365 <el-input :disabled="$store.state.business.Edit" v-model="obligeeForm.obligeeList[index].QSZT">
366 </el-input>
367 </el-form-item>
368 </el-col>
305 </el-row> 369 </el-row>
306 </div> 370 </div>
307 </div> 371 </div>
...@@ -309,106 +373,106 @@ ...@@ -309,106 +373,106 @@
309 </div> 373 </div>
310 </template> 374 </template>
311 <script> 375 <script>
312 import zttGyQlr from "@/api/zttGyQlr"; 376 import zttGyQlr from "@/api/zttGyQlr";
313 import ruleMixin from "@/mixins/ruleMixin.js"; 377 import ruleMixin from "@/mixins/ruleMixin.js";
314 import treeSelect from "@/components/TreeSelect.vue"; 378 import treeSelect from "@/components/TreeSelect.vue";
315 // 权利人 379 // 权利人
316 export default { 380 export default {
317 mixins: [ruleMixin], 381 mixins: [ruleMixin],
318 props: { 382 props: {
319 bsmSjsb: { 383 bsmSjsb: {
320 type: String, 384 type: String,
321 default: "", 385 default: "",
386 },
387 bsmYwsjb: {
388 type: String,
389 default: "",
390 },
322 }, 391 },
323 bsmYwsjb: { 392 components: {
324 type: String, 393 treeSelect,
325 default: "",
326 }, 394 },
327 }, 395 data () {
328 components: { 396 return {
329 treeSelect, 397 obligeeForm: {
330 }, 398 obligeeList: [
331 data () { 399 {
332 return { 400 YSDM: "",
333 obligeeForm: { 401 SXH: "",
334 obligeeList: [ 402 BDCDYH: "",
335 { 403 QLRMC: "",
336 YSDM: "", 404 BDCQZH: "",
337 SXH: "", 405 QZYSXLH: "",
338 BDCDYH: "", 406 SFCZR: "",
339 QLRMC: "", 407 ZJZL: "",
340 BDCQZH: "", 408 ZJH: "",
341 QZYSXLH: "", 409 FZJG: "",
342 SFCZR: "", 410 SSHY: "",
343 ZJZL: "", 411 GJ: "",
344 ZJH: "", 412 HJSZSS: "",
345 FZJG: "", 413 XB: "",
346 SSHY: "", 414 DH: "",
347 GJ: "", 415 DZ: "",
348 HJSZSS: "", 416 YB: "",
349 XB: "", 417 GZDW: "",
350 DH: "", 418 DZYJ: "",
351 DZ: "", 419 QLRLX: "",
352 YB: "", 420 QLBL: "",
353 GZDW: "", 421 GYFS: "",
354 DZYJ: "", 422 GYQK: "",
355 QLRLX: "", 423 BZ: "",
356 QLBL: "", 424 QXDM: "",
357 GYFS: "", 425 },
358 GYQK: "", 426 ],
359 BZ: "", 427 },
360 QXDM: "", 428 };
361 },
362 ],
363 },
364 };
365 },
366 methods: {
367 async featchData () {
368 try {
369 let { result: res } = await zttGyQlr.getZttGyQlrById(this.bsmSjsb);
370 this.obligeeForm.obligeeList = res;
371 } catch (error) { }
372 }, 429 },
373 handleUpdateForm () { 430 methods: {
374 return new Promise(async (resolve) => { 431 async featchData () {
375 try { 432 try {
376 let res = await zttGyQlr.updateZttGyQlr(this.obligeeForm.obligeeList); 433 let { result: res } = await zttGyQlr.getZttGyQlrById(this.bsmSjsb);
377 resolve(res.code); 434 this.obligeeForm.obligeeList = res;
378 } catch (error) { } 435 } catch (error) { }
379 }); 436 },
437 handleUpdateForm () {
438 return new Promise(async (resolve) => {
439 try {
440 let res = await zttGyQlr.updateZttGyQlr(this.obligeeForm.obligeeList);
441 resolve(res.code);
442 } catch (error) { }
443 });
444 },
380 }, 445 },
381 }, 446 };
382 };
383 </script> 447 </script>
384 <style scoped lang="scss"> 448 <style scoped lang="scss">
385 @import "./css/itemForm.scss"; 449 @import "./css/itemForm.scss";
386
387 .obligee-item {
388 display: flex;
389 height: 100%;
390 margin-bottom: 15px;
391 margin-right: 5px;
392 450
393 &-name { 451 .obligee-item {
394 display: flex; 452 display: flex;
395 align-items: center; 453 height: 100%;
396 justify-content: center; 454 margin-bottom: 15px;
397 width: 20px; 455 margin-right: 5px;
398 padding: 10px 20px;
399 line-height: 28px;
400 border: 1px solid #ccc;
401 border-radius: 3px;
402 }
403 456
404 &-list { 457 &-name {
405 width: 100%; 458 display: flex;
406 flex: 1; 459 align-items: center;
407 display: flex; 460 justify-content: center;
408 justify-content: center; 461 width: 20px;
409 flex-direction: column; 462 padding: 10px 20px;
463 line-height: 28px;
464 border: 1px solid #ccc;
465 border-radius: 3px;
466 }
467
468 &-list {
469 width: 100%;
470 flex: 1;
471 display: flex;
472 justify-content: center;
473 flex-direction: column;
474 }
410 } 475 }
411 }
412 </style> 476 </style>
413 477
414 478
......
1 /* 1 /*
2 * @Description: 2 * @Description:
3 * @Autor: renchao 3 * @Autor: renchao
4 * @LastEditTime: 2023-04-27 13:44:16 4 * @LastEditTime: 2023-04-27 16:59:53
5 */ 5 */
6 import filter from '@/utils/filter.js' 6 import filter from '@/utils/filter.js'
7 let vm = null 7 let vm = null
...@@ -80,6 +80,9 @@ class data extends filter { ...@@ -80,6 +80,9 @@ class data extends filter {
80 prop: "recflowid", 80 prop: "recflowid",
81 label: "业务流水号", 81 label: "业务流水号",
82 minWidth: 100, 82 minWidth: 100,
83 render: (h, scope) => {
84 return <el-button type="text" onClick={() => { vm.ywhClick(scope.row) }}>{scope.row.recflowid}</el-button>
85 }
83 }, 86 },
84 { 87 {
85 prop: "estatenum", 88 prop: "estatenum",
......
...@@ -48,7 +48,7 @@ ...@@ -48,7 +48,7 @@
48 <el-input v-model.trim="form.ywh" class="width100" clearable placeholder="业务流水号"></el-input> 48 <el-input v-model.trim="form.ywh" class="width100" clearable placeholder="业务流水号"></el-input>
49 </el-form-item> 49 </el-form-item>
50 </el-col> 50 </el-col>
51 <el-col :span="6"> 51 <el-col :span="3">
52 <el-form-item label="权利类型" prop="qllx"> 52 <el-form-item label="权利类型" prop="qllx">
53 <el-select v-model="form.qllx" class="width100" clearable placeholder="权利类型"> 53 <el-select v-model="form.qllx" class="width100" clearable placeholder="权利类型">
54 <el-option v-for="item in dicData['A8']" :key="item.DCODE" :label="item.DNAME" :value="item.DCODE"> 54 <el-option v-for="item in dicData['A8']" :key="item.DCODE" :label="item.DNAME" :value="item.DCODE">
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
56 </el-select> 56 </el-select>
57 </el-form-item> 57 </el-form-item>
58 </el-col> 58 </el-col>
59 <el-col :span="6"> 59 <el-col :span="3">
60 <el-form-item label="登记类型" prop="djlx"> 60 <el-form-item label="登记类型" prop="djlx">
61 <el-select v-model="form.djlx" class="width100" clearable placeholder="登记类型"> 61 <el-select v-model="form.djlx" class="width100" clearable placeholder="登记类型">
62 <el-option v-for="item in dicData['A21']" :key="item.DCODE" :label="item.DNAME" :value="item.DCODE"> 62 <el-option v-for="item in dicData['A21']" :key="item.DCODE" :label="item.DNAME" :value="item.DCODE">
...@@ -64,6 +64,25 @@ ...@@ -64,6 +64,25 @@
64 </el-select> 64 </el-select>
65 </el-form-item> 65 </el-form-item>
66 </el-col> 66 </el-col>
67 <el-col :span="3">
68 <el-form-item label="检查结果" prop="jcjg">
69 <el-select v-model="form.jcjg" class="width100" clearable placeholder="检查结果">
70 <el-option v-for="item in dicData['sysSjsbCkeck']" class="lastdom" :key="item.DCODE" :label="item.DNAME"
71 :value="item.DCODE">
72 </el-option>
73 </el-select>
74
75 </el-form-item>
76 </el-col>
77 <el-col :span="3">
78 <el-form-item label="入库结果" prop="rkjg">
79 <el-select v-model="form.rkjg" class="width100" clearable placeholder="入库结果">
80 <el-option v-for="item in dicData['sysSjsbStorage']" class="lastdom" :key="item.DCODE" :label="item.DNAME"
81 :value="item.DCODE">
82 </el-option>
83 </el-select>
84 </el-form-item>
85 </el-col>
67 <!-- 操作按钮 --> 86 <!-- 操作按钮 -->
68 <el-col :span="6" class="btnColRight"> 87 <el-col :span="6" class="btnColRight">
69 <btn nativeType="cz" @click="resetForm">重置</btn> 88 <btn nativeType="cz" @click="resetForm">重置</btn>
...@@ -203,7 +222,7 @@ ...@@ -203,7 +222,7 @@
203 }, 222 },
204 // 初始化数据 223 // 初始化数据
205 featchData () { 224 featchData () {
206 getSjsbReportPage({ ...this.form }).then((res) => { 225 getSjsbReportPage({ ...this.form, ...this.formData }).then((res) => {
207 if (res.code === 200) { 226 if (res.code === 200) {
208 let { total, records, current } = res.result; 227 let { total, records, current } = res.result;
209 this.tableData.total = total; 228 this.tableData.total = total;
...@@ -231,10 +250,45 @@ ...@@ -231,10 +250,45 @@
231 this.form.currentPage = 1 250 this.form.currentPage = 1
232 this.featchData(); 251 this.featchData();
233 }, 252 },
253 ywhClick (item) {
254 window.open('http://192.168.2.38/bdcdj#/workFrame?bsmSlsq=4582b05a4d49c25673eb0880b5787e58&bestepid=sl&bsmBusiness=&sqywbm=A03100', '_blank')
255 //判断用户是否拥有该任务的权限,若有则跳转,无权限则给予提示并刷新页面
256 // judgeUserTaskPermission({
257 // bsmSlsq: item.bsmSlsq,
258 // bestepid: item.bestepid,
259 // }).then((res) => {
260 // if (res.code == 200) {
261 // if (res.result) {
262 // //有任务权限
263 // const { href } = this.$router.resolve(
264 // "/workFrame?bsmSlsq=" +
265 // item.bsmSlsq +
266 // "&bestepid=" +
267 // item.bestepid +
268 // "&bsmBusiness=" +
269 // "&sqywbm=" +
270 // item.djywbm
271 // );
272 // localStorage.setItem('ywbl', JSON.stringify(item));
273 // window.open(href, `urlname${item.bsmSlsq}`);
274 // //从待办箱进入的调取任务领取接口
275 // claimTask(item.bsmSlsq, item.bestepid);
276 // } else {
277 // //无任务权限
278 // this.$message.error("无该任务操作权限,或已被他人抢办,请重新操作");
279 // //刷新页面
280 // this.queryClick();
281 // }
282 // } else {
283 // this.$message.error("用户任务权限判断失败,请联系管理员");
284 // }
285 // });
286 },
234 }, 287 },
235 destroyed () { 288 destroyed () {
236 this.$store.dispatch('business/setEdit') 289 this.$store.dispatch('business/setEdit')
237 } 290 }
291
238 } 292 }
239 </script> 293 </script>
240 <style scoped lang="scss"> 294 <style scoped lang="scss">
......