apply-clients 4.1.64 → 4.1.65

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -44,12 +44,6 @@ export default {
44
44
  this.refurbish()
45
45
  },
46
46
  ready(){
47
- console.log("1212",this.selectdata)
48
- if (this.selectdata.defname === '合同签订') {
49
- if (this.show_data.fields[7].label === '合同编号') {
50
- this.show_data.fields[7].value = this.show_data.f_apply_num
51
- }
52
- }
53
47
  },
54
48
  methods: {
55
49
  // 组件初始化操作
@@ -439,12 +433,13 @@ export default {
439
433
  start_activity: this.$workflow_vue.start_activity,
440
434
  model: model,
441
435
  loginUser: this.$login.f,
442
- workflow_xmlfilename: this.$workflow_vue.workflow_xmlfilename
436
+ workflow_gxmlfilename: this.$workflow_vue.workflow_xmlfilename
443
437
  }
438
+ console.log("gwfwe",this.selectdata)
444
439
  // 下发,提交,保存,退回通用业务后台处理logic
445
440
  let url = 'rs/logic/ApplyProductService'
446
441
  let res = await http.load('POST', url, {data: requestData}, {resolveMsg: null, rejectMsg: '数据保存失败'})
447
- if (res.data.code == 200) {
442
+ if (res.data.code === 200) {
448
443
  this.$dispatch('search')
449
444
  } else {
450
445
  if (res.data.msg) {
@@ -637,7 +632,20 @@ export default {
637
632
  }
638
633
  }
639
634
  }
635
+ if (this.show_data.defname === '报建登记'&&this.show_data.f_apply_type==='工商户报建') {
640
636
 
637
+ console.log("13f", this.selectdata.onetomany)
638
+ for (const button of this.show_data.buttons) {
639
+ if (this.selectdata.onetomany&& button.button_name === '提交') {
640
+ console.log("1f")
641
+ button.disable = true
642
+ }
643
+ else {
644
+ button.disable = false
645
+ console.log("2f")
646
+ }
647
+ }
648
+ }
641
649
  if (this.show_data.defname === '营业厅建档'){
642
650
  let http = new HttpResetClass()
643
651
  let data = {
@@ -690,27 +698,23 @@ export default {
690
698
  }
691
699
  }
692
700
  if (this.show_data.defname === '合同签订') {
693
- // if (!isEmpty(this.show_data.fields[index].value)) {
694
- // let http = new HttpResetClass()
695
- // let data = {
696
- // tablename: 't_apply',
697
- // condition: `f_contract_number='${this.show_data.fields[index].value}'`
698
- // }
699
- // let res = await http.load('POST', 'rs/sql/singleTable', {data: data}, {
700
- // resolveMsg: null,
701
- // rejectMsg: '合同编号查重失败'
702
- // })
703
- // if (res.data.length > 0) {
704
- // for (const button of this.show_data.buttons) {
705
- // if (button.button_name === '提交') {
706
- // button.disable = true
707
- // }
708
- // }
709
- // this.show_data.fields[index].value = null
710
- // this.$showAlert('合同编号已存在!!!', 'warning', 3000)
711
- // }
712
- // }
713
-
701
+ if (this.show_data.fields[index].label === '合同编号') {
702
+ if (!isEmpty(this.show_data.fields[index].value)) {
703
+ let http = new HttpResetClass()
704
+ let data = {
705
+ tablename: 't_apply',
706
+ condition: `f_contract_number='${this.show_data.fields[index].value}'`
707
+ }
708
+ let res = await http.load('POST', 'rs/sql/singleTable', {data: data}, {
709
+ resolveMsg: null,
710
+ rejectMsg: '合同编号查重失败'
711
+ })
712
+ if (res.data.length > 0) {
713
+ this.show_data.fields[index].value = null
714
+ this.$showAlert('合同编号已存在!!!', 'warning', 3000)
715
+ }
716
+ }
717
+ }
714
718
  if (this.show_data.fields[index].label === '单价(户)') {
715
719
  let http = new HttpResetClass()
716
720
  let data = {
@@ -316,7 +316,6 @@
316
316
  <button type="button" class="btn btn-primary" :disabled="disable_button_but" @click='confirm_but_modal()'>确认</button>
317
317
  </footer>
318
318
  </modal>
319
-
320
319
  </div>
321
320
  </template>
322
321
  <script>
@@ -364,19 +363,15 @@
364
363
  showbutmodal: false,
365
364
  showcheck: false,
366
365
  back: '',
367
- selecteddd:[],
368
- all:[]
369
366
  }
370
-
371
367
  },
372
368
  ready() {
373
369
  console.log("7777777")
374
- console.log(this.data.onetomany)
370
+ console.log(this.data)
375
371
  },
376
372
  watch: {
377
373
  deep: true,
378
374
  },
379
- computed: {},
380
375
  created() {
381
376
  // 初始化数据
382
377
  this.initializtion()
@@ -399,6 +394,7 @@
399
394
  this.disable_button = true
400
395
  console.log("this.data")
401
396
  console.log(this.data)
397
+ console.log(button)
402
398
  // 组织model.fields数据
403
399
  for (const item of this.data.fields) {
404
400
  // checkbox特殊处理
@@ -444,27 +440,27 @@
444
440
  }
445
441
  }
446
442
  }
447
- if (this.data.defname === '合同签订') {
448
- console.log("ddddd",this.data)
449
- }
450
- if (this.data.defname === '竣工验收') {
451
- if (this.data.processname !== '工商户报建流程') {
452
- let t=this.selecteddd
453
- let diff = this.all.filter(function (val) {
454
- return t.indexOf(val) === -1
455
- })
456
- console.log("diff", diff)
457
- for(let index = 0;index < diff.length; index++){
458
- let data = {
459
- code:diff[index].f_userinfo_code
460
- }
461
- console.log("code", data.code)
462
- let http = new HttpResetClass()
463
- http.load('POST', 'rs/logic/batchcheck', {data:data}, {resolveMsg: null, rejectMsg: null})
464
-
465
- }
466
- }
467
- }
443
+ // if (this.data.defname === '合同签订') {
444
+ // console.log("ddddd",this.data)
445
+ // }
446
+ // if (this.data.defname === '竣工验收') {
447
+ // // if (this.data.processname !== '工商户报建流程') {
448
+ // // let t=this.selecteddd
449
+ // // let diff = this.all.filter(function (val) {
450
+ // // return t.indexOf(val) === -1
451
+ // // })
452
+ // // console.log("diff", diff)
453
+ // // for(let index = 0;index < diff.length; index++){
454
+ // // let data = {
455
+ // // code:diff[index].f_userinfo_code
456
+ // // }
457
+ // // console.log("code", data.code)
458
+ // // let http = new HttpResetClass()
459
+ // // http.load('POST', 'rs/logic/batchcheck', {data:data}, {resolveMsg: null, rejectMsg: null})
460
+ // //
461
+ // // }
462
+ // // }
463
+ // }
468
464
  if (button.button_name === '退回') {
469
465
  this.showbutmodal = true
470
466
  } else if (button.button_name === '下发') {
@@ -475,9 +471,6 @@
475
471
  this.$dispatch('button', this.model)
476
472
  }
477
473
  },
478
- //
479
-
480
-
481
474
  // 初始化数据
482
475
  initializtion() {
483
476
  // 是否禁用按钮
@@ -511,8 +504,6 @@
511
504
  this.model.f_operator = this.$login.f.name
512
505
  }
513
506
  },
514
-
515
-
516
507
  // 是否禁用按钮
517
508
  disableButton() {
518
509
  let fields = this.data.fields
@@ -723,13 +714,6 @@
723
714
  this.disableModalButton()
724
715
  this.$dispatch('oninput_modal', this.onetomany_index, index)
725
716
  }
726
- },
727
- events: {
728
- 'selectedData'(selecteddd, all) {
729
- this.selecteddd = selecteddd
730
- this.all = all
731
- }
732
-
733
717
  }
734
718
  }
735
719
  </script>
@@ -7,7 +7,7 @@
7
7
  <div class="form-group col-sm-4">
8
8
  <label class="font_normal_body">项目名称:</label>
9
9
  <input type="text" class="input_search" v-model="model.f_user_name"
10
- v-on:keyup.enter="search" condition=" (f_entry_name like '%{}%') " placeholder='请输入'>
10
+ v-on:keyup.enter="search" condition=" f_entry_name = '{}' " placeholder='请输入'>
11
11
  </div>
12
12
  <div class="form-group col-sm-3">
13
13
  <label class="font_normal_body">报建编号:</label>
@@ -119,7 +119,7 @@
119
119
  <nobr>{{row.f_apply_num}}</nobr>
120
120
  </td>
121
121
  <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
122
- <nobr>{{row.f_entry_name}}/{{row.f_user_name}}/{{row.f_contact}}</nobr>
122
+ <nobr>{{row.f_entry_name}}</nobr>
123
123
  </td>
124
124
  <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
125
125
  <nobr>{{row.f_contract_number}}</nobr>