apply-clients 3.3.110-216 → 3.3.110-217

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apply-clients",
3
- "version": "3.3.110-216",
3
+ "version": "3.3.110-217",
4
4
  "description": "报建前端模块",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -181,12 +181,12 @@ export default {
181
181
  }
182
182
  }
183
183
  }
184
- if(this.show_data.f_apply_type === '散户报建' && this.show_data.defname === '合同签订' && this.show_data.button.button_name === '提交'){
184
+ if(this.show_data.f_apply_type === '散户报建' && this.show_data.defname === '合同签订' && (this.show_data.button.button_name === '提交'||this.show_data.button.button_name === '保存')){
185
185
  let dataz = {
186
186
  condition: `u.id = ${this.show_data.id}`,
187
187
  data: {
188
- id: this.$login.f.id,
189
- orgid: this.$login.f.orgid
188
+ id: Vue.user.id,
189
+ orgid: Vue.user.orgid
190
190
  }
191
191
  }
192
192
  let http = new HttpResetClass()
@@ -480,6 +480,27 @@ export default {
480
480
  }
481
481
  })
482
482
  },
483
+ // 获取区县
484
+ async getArea () {
485
+ let data = {
486
+ tablename: 't_area',
487
+ condition: `f_filialeid = '${this.$login.f.orgid}'`
488
+ }
489
+ let http = new HttpResetClass()
490
+ let res = await http.load(
491
+ 'POST',
492
+ `rs/sql/singleTable`,
493
+ {data: data},
494
+ {resolveMsg: null, rejectMsg: '集收单位查询失败!!!'}
495
+ )
496
+
497
+ return res.data.map(item => {
498
+ return {
499
+ label: item.f_residential_area,
500
+ value: item.f_residential_area
501
+ }
502
+ })
503
+ },
483
504
  // 缴费前置
484
505
  chargeBefore () {
485
506
  if (Number(this.show_data.f_due_money) > Number(this.show_data.f_cumulative_payment_money) || Number(this.show_data.f_surplus_money) > 0) {
@@ -779,14 +800,9 @@ export default {
779
800
  const dir = upperCaseChars(this.$login.f.orgs) //分公司
780
801
 
781
802
  let type = 0 //类型
782
- let entry_type = ''
783
- if(this.show_data.f_apply_type === '团购报建') {
784
- entry_type = this.show_data.f_apply_nature
785
- }else {
786
- entry_type = this.show_data.f_entry_type
787
- }
788
- switch (entry_type){
789
- case '城区':
803
+
804
+ switch (this.show_data.f_entry_type){
805
+ case '城区/县城':
790
806
  type = 1 // 当表达式的结果等于 城区 时,则执行该代码
791
807
  break;
792
808
  case '新农村':
@@ -797,7 +813,7 @@ export default {
797
813
  }
798
814
 
799
815
  let nature = 0 // 性质
800
- switch (this.show_data.f_new_entry){
816
+ switch (this.show_data.f_apply_nature){
801
817
  case '房产':
802
818
  nature = 1 // 当表达式的结果等于 房产 时,则执行该代码
803
819
  break;
@@ -807,6 +823,15 @@ export default {
807
823
  case '商业':
808
824
  nature = 3 // 当表达式的结果等于 商业 时,则执行该代码
809
825
  break;
826
+ case '学校':
827
+ nature = 3 // 当表达式的结果等于 学校 时,则执行该代码
828
+ break;
829
+ case '福利机构':
830
+ nature = 3 // 当表达式的结果等于 福利机构 时,则执行该代码
831
+ break;
832
+ case '其他':
833
+ nature = 3 // 当表达式的结果等于 其他 时,则执行该代码
834
+ break;
810
835
  case '工业':
811
836
  nature = 4 // 当表达式的结果等于 工业 时,则执行该代码
812
837
  break;
@@ -822,10 +847,15 @@ export default {
822
847
  const newYear = date.year + 1
823
848
  const year = date.year.toString().substring(2,4) //年份
824
849
 
825
-
850
+ let data = {
851
+ dataYm: dataYm,
852
+ newYear: newYear,
853
+ orgid: this.$login.f.orgid,
854
+ condition: `and f_apply_nature = '${this.show_data.f_apply_nature}'`
855
+ }
826
856
 
827
857
  let http = new HttpResetClass()
828
- let res = await http.load('POST', 'rs/sql/contractCount', {data: {dataYm: dataYm, newYear: newYear, orgid: this.$login.f.orgid}}, {
858
+ let res = await http.load('POST', 'rs/sql/contractCount', {data:data}, {
829
859
  resolveMsg: null,
830
860
  rejectMsg: null
831
861
  })
@@ -1486,7 +1516,7 @@ export default {
1486
1516
  && (this.show_data.defname === '报装申请')){
1487
1517
  await this.contract_number()
1488
1518
  }
1489
- if(this.show_data.f_apply_type === '散户报建' && this.show_data.defname === '合同签订' && this.show_data.button.button_name === '提交'){
1519
+ if(this.show_data.f_apply_type === '散户报建' && this.show_data.defname === '合同签订' && (this.show_data.button.button_name === '保存'||this.show_data.button.button_name === '提交')){
1490
1520
  let dataz = {
1491
1521
  condition: `u.id = ${this.show_data.id}`,
1492
1522
  data: {