apply-clients 4.1.66 → 4.1.70

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.
@@ -47,10 +47,10 @@
47
47
  <td>联系电话</td>
48
48
  <td>{{ f_user_phone }}</td>
49
49
  </tr>
50
- <tr>
51
- <td>地&emsp;&emsp;址</td>
52
- <td colspan="4">{{ f_useraddress }}</td>
53
- </tr>
50
+ <!-- <tr>-->
51
+ <!-- <td>地&emsp;&emsp;址</td>-->
52
+ <!-- <td colspan="4">{{ f_useraddress }}</td>-->
53
+ <!-- </tr>-->
54
54
  <tr>
55
55
  <td>收费项目</td>
56
56
  <td colspan="2">安装费</td>
@@ -1,50 +1,50 @@
1
- <template>
2
- <div class="auto">
3
- <validator name='v'>
4
- <p class="bg-info text-center" style="padding: 8px;">{{data.type}}销户</p>
5
- <div class="row" style="margin-top:10px;">
6
- <div class="form-group">
7
- <label class=" col-sm-2 control-label">销户原因:</label>
8
- <div class="col-sm-8">
9
- <textarea class="form-control" v-model="model.f_cancel_reason" rows="3" placeholder="请填写原因"></textarea>
10
- </div>
11
- </div>
12
- </div>
13
- <div style="text-align:right;height:auto;margin-top:30px;margin-right:50px;">
14
- <button class="btn btn-success" @click="confirm()" >确&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;认</button>
15
- <button class="btn btn-default" @click="clean()" style="wid0px;margin-left:20px;">取&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;消</button>
16
- </div>
17
- </validator>
18
- </div>
19
- </template>
20
-
21
- <script>
22
- import {HttpResetClass} from "vue-client";
23
-
24
- export default {
25
- props: ['data'],
26
- title: '操作撤销',
27
- data () {
28
- return {
29
- model: {
30
- f_cancel_reason: '',
31
- f_user_state: this.data.f_user_state,
32
- f_process_id: this.data.f_process_id
33
- }
34
- }
35
- },
36
- methods: {
37
- confirm () {
38
- let http = new HttpResetClass()
39
- http.load('POST', 'rs/entity/t_zsrecord', model, {resolveMsg: null, rejectMsg: '数据保存失败'})
40
- .then(res => {
41
- this.$info('撤销成功')
42
- this.$dispatch('stoprecord')
43
- })
44
- },
45
- clean () {
46
- this.$dispatch('clean', this.model)
47
- }
48
- }
49
- }
50
- </script>
1
+ <template>
2
+ <div class="auto">
3
+ <validator name='v'>
4
+ <p class="bg-info text-center" style="padding: 8px;">{{data.type}}销户</p>
5
+ <div class="row" style="margin-top:10px;">
6
+ <div class="form-group">
7
+ <label class=" col-sm-2 control-label">销户原因:</label>
8
+ <div class="col-sm-8">
9
+ <textarea class="form-control" v-model="model.f_cancel_reason" rows="3" placeholder="请填写原因"></textarea>
10
+ </div>
11
+ </div>
12
+ </div>
13
+ <div style="text-align:right;height:auto;margin-top:30px;margin-right:50px;">
14
+ <button class="btn btn-success" @click="confirm()" >确&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;认</button>
15
+ <button class="btn btn-default" @click="clean()" style="wid0px;margin-left:20px;">取&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;消</button>
16
+ </div>
17
+ </validator>
18
+ </div>
19
+ </template>
20
+
21
+ <script>
22
+ import {HttpResetClass} from "vue-client";
23
+
24
+ export default {
25
+ props: ['data'],
26
+ title: '操作撤销',
27
+ data () {
28
+ return {
29
+ model: {
30
+ f_cancel_reason: '',
31
+ f_user_state: this.data.f_user_state,
32
+ f_process_id: this.data.f_process_id
33
+ }
34
+ }
35
+ },
36
+ methods: {
37
+ confirm () {
38
+ let http = new HttpResetClass()
39
+ http.load('POST', 'rs/entity/t_zsrecord', model, {resolveMsg: null, rejectMsg: '数据保存失败'})
40
+ .then(res => {
41
+ this.$info('撤销成功')
42
+ this.$dispatch('stoprecord')
43
+ })
44
+ },
45
+ clean () {
46
+ this.$dispatch('clean', this.model)
47
+ }
48
+ }
49
+ }
50
+ </script>
@@ -292,6 +292,18 @@ export default {
292
292
  }
293
293
  }
294
294
  }
295
+ if (this.selectdata.defname === '施工') {
296
+ // for (let i = 0; i < this.show_data.fields.length; i++) {
297
+ // if (this.show_data.fields[i].label == '工程状态') {
298
+ // this.show_data.fields[i].value = ''
299
+ // }
300
+ // }
301
+ for (const item of this.show_data.fields) {
302
+ if (item.label === '工程状态') {
303
+ return item.value = '未开工'
304
+ }
305
+ }
306
+ }
295
307
 
296
308
  },
297
309
  // 初始化fields值
@@ -646,25 +658,25 @@ export default {
646
658
  }
647
659
  }
648
660
  }
649
- if (this.show_data.defname === '营业厅建档'){
650
- let http = new HttpResetClass()
651
- let data = {
652
- tablename: 't_userinfo',
653
- condition: `f_process_id='${this.selectdata.f_process_id}'`
654
-
655
- }
656
- let res = await http.load('POST', 'rs/sql/singleTable', {data: data}, {resolveMsg: null, rejectMsg: null})
657
-
658
- if (this.show_data.fields[index].label === '是否已建档') {
659
- if (res.data[0].f_user_state === '预备') {
660
- this.show_data.fields[index].value = '否'
661
- button.hidden = false
662
- }else{
663
- this.show_data.fields[index].value = '是'
664
- button.hidden = true
665
- }
666
- }
667
- }
661
+ // if (this.show_data.defname === '营业厅建档'){
662
+ // let http = new HttpResetClass()
663
+ // let data = {
664
+ // tablename: 't_userinfo',
665
+ // condition: `f_process_id='${this.selectdata.f_process_id}'`
666
+ //
667
+ // }
668
+ // let res = await http.load('POST', 'rs/sql/singleTable', {data: data}, {resolveMsg: null, rejectMsg: null})
669
+ //
670
+ // if (this.show_data.fields[index].label === '是否已建档') {
671
+ // if (res.data[0].f_user_state === '预备') {
672
+ // this.show_data.fields[index].value = '否'
673
+ // button.hidden = false
674
+ // }else{
675
+ // this.show_data.fields[index].value = '是'
676
+ // button.hidden = true
677
+ // }
678
+ // }
679
+ // }
668
680
  if(this.show_data.defname === '现场勘察') {
669
681
  console.log("this.shdata",this.show_data)
670
682
  if (this.show_data.fields[index].label === '是否具备安装条件') {
@@ -677,26 +689,26 @@ export default {
677
689
  }
678
690
  }
679
691
  }
680
- if (this.show_data.defname === '通气点火'){
681
- let http = new HttpResetClass()
682
- let data = {
683
- tablename: 't_firemessage',
684
- condition: `f_process_id='${this.selectdata.f_process_id}'`
685
-
686
- }
687
- let res = await http.load('POST', 'rs/sql/singleTable', {data: data}, {resolveMsg: null, rejectMsg: null})
688
- console.log("res")
689
- console.log(res.data)
690
- if (this.show_data.fields[index].label === '是否已通气') {
691
- if (res.data.length==0) {
692
- this.show_data.fields[index].value = '否'
693
- button.hidden = false
694
- }else{
695
- this.show_data.fields[index].value = '是'
696
- button.hidden = true
697
- }
698
- }
699
- }
692
+ // if (this.show_data.defname === '通气点火'){
693
+ // let http = new HttpResetClass()
694
+ // let data = {
695
+ // tablename: 't_firemessage',
696
+ // condition: `f_process_id='${this.selectdata.f_process_id}'`
697
+ //
698
+ // }
699
+ // let res = await http.load('POST', 'rs/sql/singleTable', {data: data}, {resolveMsg: null, rejectMsg: null})
700
+ // console.log("res")
701
+ // console.log(res.data)
702
+ // if (this.show_data.fields[index].label === '是否已通气') {
703
+ // if (res.data.length==0) {
704
+ // this.show_data.fields[index].value = '否'
705
+ // button.hidden = false
706
+ // }else{
707
+ // this.show_data.fields[index].value = '是'
708
+ // button.hidden = true
709
+ // }
710
+ // }
711
+ // }
700
712
  if (this.show_data.defname === '合同签订') {
701
713
  if (this.show_data.fields[index].label === '合同编号') {
702
714
  if (!isEmpty(this.show_data.fields[index].value)) {
@@ -713,6 +725,14 @@ export default {
713
725
  this.show_data.fields[index].value = null
714
726
  this.$showAlert('合同编号已存在!!!', 'warning', 3000)
715
727
  }
728
+ //拼写合同编号
729
+ if (this.selectdata.f_apply_type == '工商户报建') {
730
+ this.show_data.fields[index].value = "ZS-S-" + this.show_data.fields[index].value
731
+ // this.show_data.fields[index].value = "ZS-S-" + this.show_data.fields[index].value + "-" + new Date().Format('yyyy-MM-dd')
732
+ }else {
733
+ this.show_data.fields[index].value = "ZS-M-" + this.show_data.fields[index].value
734
+ // this.show_data.fields[index].value = "ZS-M-" + this.show_data.fields[index].value + "-" + new Date().Format('yyyy-MM-dd')
735
+ }
716
736
  }
717
737
  }
718
738
  if (this.show_data.fields[index].label === '单价(户)') {