apply-clients 3.4.18 → 3.4.19

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.
@@ -8,8 +8,8 @@ var compiler = webpack(config)
8
8
  // var proxy = httpProxy.createProxyServer()
9
9
  // var ldap = 'http://121.36.79.201:8400'
10
10
  // var applyinstall = 'http://121.36.79.201:8400'
11
- var ldap = 'http://117.33.181.102:8400'
12
- var applyinstall = 'http://117.33.181.102:8400'
11
+ var ldap = 'http://219.138.226.181:8401'
12
+ var applyinstall = 'http://219.138.226.181:8401'
13
13
 
14
14
  var proxyTable = {
15
15
  '/rs/logic/getSaleInitData': {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apply-clients",
3
- "version": "3.4.18",
3
+ "version": "3.4.19",
4
4
  "description": "报建前端模块",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -42,10 +42,10 @@
42
42
  ready () {
43
43
  this.refurbish()
44
44
  this.servicer()
45
+ this.ceshi()
45
46
  },
46
47
  methods: {
47
48
  async servicer(){
48
- debugger
49
49
  let data = {
50
50
  tablename: 't_user',
51
51
  condition: `1=1`
@@ -57,7 +57,6 @@
57
57
  {data: data},
58
58
  {resolveMsg: null, rejectMsg: '服务人查询失败!!!'}
59
59
  )
60
- debugger
61
60
  this.setLabelOptions('服务人', res.data.map(item => {
62
61
  return {
63
62
  label: item.name,
@@ -65,6 +64,44 @@
65
64
  }
66
65
  }))
67
66
  },
67
+ async ceshi(){
68
+ for (let i = 0; i < this.show_data.fields.length; i++) {
69
+ if (this.show_data.defname==='报装申请' && this.show_data.fields[i].label === '合同编号') {
70
+ debugger
71
+ let http2 = new HttpResetClass()
72
+ let applyNum = await http2.load('POST', 'rs/logic/getProjectNo', {
73
+ data: {
74
+ f_filiale: this.$login.f.orgs,
75
+ f_order_id: this.selectdata.f_order_id
76
+ }
77
+ }, {resolveMsg: null, rejectMsg: null})
78
+ debugger
79
+ console.log("生成的合同编号为:" + applyNum.data)
80
+ this.show_data.fields[i].value = applyNum.data
81
+ }
82
+ }
83
+ },
84
+ // async servicer(){
85
+ // debugger
86
+ // let data = {
87
+ // tablename: 't_user',
88
+ // condition: `1=1`
89
+ // }
90
+ // let http = new HttpResetClass()
91
+ // let res = await http.load(
92
+ // 'POST',
93
+ // `rs/sql/singleTable`,
94
+ // {data: data},
95
+ // {resolveMsg: null, rejectMsg: '服务人查询失败!!!'}
96
+ // )
97
+ // debugger
98
+ // this.setLabelOptions('服务人', res.data.map(item => {
99
+ // return {
100
+ // label: item.name,
101
+ // value: item.name
102
+ // }
103
+ // }))
104
+ // },
68
105
  // 组件初始化操作
69
106
  async refurbish() {
70
107
  this.json_datas = this.$workflow_vue
@@ -283,7 +320,6 @@
283
320
  })
284
321
  }
285
322
  }
286
-
287
323
  // 消除双向绑定,避免子组件(显示层)数据更改,父组件(控制层)也更改
288
324
  let temp = JSON.parse(JSON.stringify(this.selectdata))
289
325
  console.log('打印下temp',temp)
@@ -291,6 +327,7 @@
291
327
  this.$nextTick(() => {
292
328
  this.showview = true
293
329
  })
330
+ this.ceshi()
294
331
  },
295
332
  // 金额转大写
296
333
  smalltoBIG(n) {
@@ -1200,7 +1237,6 @@
1200
1237
  },
1201
1238
  // 通气点火初始化
1202
1239
  async 'gasReadyEvent' () {
1203
- debugger
1204
1240
  // 是否有气价信息
1205
1241
  if (!isEmpty(this.show_data.f_price_id)) {
1206
1242
  let priceList = await this.getPrice(this.show_data.f_price_id)
@@ -1628,115 +1664,115 @@
1628
1664
  if (this.show_data.button.after) {
1629
1665
  this[this.show_data.button.after]()
1630
1666
  }
1631
- // // 改管报建 增容报建 优化
1632
- // if((this.show_data.f_apply_type === '改管报建'||this.show_data.f_apply_type === '增容报建') && this.show_data.defname === '报装申请' && this.show_data.button.button_name === '缴费'){
1633
- // let datagg = {
1634
- // condition: `t.f_process_id='${this.show_data.f_process_id}'`,
1635
- // }
1636
- // let http = new HttpResetClass()
1637
- // let restgg = await http.load(
1638
- // 'POST',
1639
- // `rs/sql/checkusertwo`,
1640
- // {data: datagg},
1641
- // {resolveMsg: null, rejectMsg: '报建数据查询失败!!!'}
1642
- // )
1643
- // debugger
1644
- // if(this.show_data.f_apply_type === '改管报建'){
1645
- // restgg.data[0].processname = '改管报建流程'
1646
- // restgg.data[0].defname = '报装缴费'
1647
- // }else{
1648
- // restgg.data[0].processname = '增容报建流程'
1649
- // restgg.data[0].defname = '报装缴费'
1650
- // }
1651
- // restgg.data[0].actid = restgg.data[0].actid + 1
1652
- // this.$dispatch('apply',restgg.data[0])
1653
- //
1654
- // }
1655
- //
1656
- // // 退款报建 优化
1657
- // if(this.show_data.f_apply_type === '退款报建' && this.show_data.defname === '终止报建' && this.show_data.button.button_name === '提交'){
1658
- // let datatk = {
1659
- // condition: `t.f_process_id='${this.show_data.f_process_id}'`,
1660
- // }
1661
- // let http = new HttpResetClass()
1662
- // let resttk = await http.load(
1663
- // 'POST',
1664
- // `rs/sql/checkusertwo`,
1665
- // {data: datatk},
1666
- // {resolveMsg: null, rejectMsg: '报建数据查询失败!!!'}
1667
- // )
1668
- // debugger
1669
- // resttk.data[0].processname = '退款报建流程'
1670
- // resttk.data[0].defname = '退款'
1671
- // this.$dispatch('apply',resttk.data[0])
1672
- //
1673
- // }
1674
- //
1675
- //
1676
- // if(this.show_data.f_apply_type === '散户报建' && this.show_data.defname === '报装申请' && this.show_data.button.button_name === '合同'){
1677
- // let data = {
1678
- // tablename: 't_apply',
1679
- // condition: `f_process_id='${this.show_data.f_process_id}'`
1680
- // }
1681
- // let http = new HttpResetClass()
1682
- // let restp = await http.load(
1683
- // 'POST',
1684
- // `rs/sql/singleTable`,
1685
- // {data: data},
1686
- // {resolveMsg: null, rejectMsg: '报建数据查询失败!!!'}
1687
- // )
1688
- // debugger
1689
- // restp.data[0].processname = '散户报建流程'
1690
- // restp.data[0].defname = '合同签订'
1691
- // this.$dispatch('apply',restp.data[0])
1692
- //
1693
- // } else if(this.show_data.f_apply_type === '散户报建' && this.show_data.defname === '合同签订' && this.show_data.button.button_name === '提交'){
1694
- // let data2 = {
1695
- // condition: `u.id = ${this.show_data.id}`,
1696
- // data: {
1697
- // id: this.$login.f.id,
1698
- // orgid: this.$login.f.orgid
1699
- // }
1700
- // }
1701
- // let http = new HttpResetClass()
1702
- // let restp1 = await http.load(
1703
- // 'POST',
1704
- // `rs/sql/checkuser`,
1705
- // {data: data2},
1706
- // {resolveMsg: null, rejectMsg: '报建数据查询失败!!!'}
1707
- // )
1708
- // debugger
1709
- // console.log('有没有发请求打印查询的内容restp1',restp1)
1710
- // // restp1.data[0].processname = '散户报建流程'
1711
- // // restp1.data[0].defname = '报装缴费'
1712
- // this.$dispatch('apply',restp1.data[0])
1713
- // }else if(this.show_data.f_apply_type === '散户报建' && this.show_data.defname === '报装缴费' && this.show_data.button.button_name === '提交'){
1714
- // let data3 = {
1715
- // condition: `u.id = ${this.show_data.id}`,
1716
- // data: {
1717
- // id: this.$login.f.id,
1718
- // orgid: this.$login.f.orgid
1719
- // }
1720
- // }
1721
- // let http = new HttpResetClass()
1722
- // let restp2 = await http.load(
1723
- // 'POST',
1724
- // `rs/sql/checkuser`,
1725
- // {data: data3},
1726
- // {resolveMsg: null, rejectMsg: '报建数据查询失败!!!'}
1727
- // )
1728
- // debugger
1729
- // console.log('打印查询的内容',restp2)
1730
- // if(restp2.length>0){
1731
- // this.$dispatch('apply',restp2.data[0])
1732
- // }else{
1733
- // debugger
1734
- // this.$dispatch('loadPage')
1735
- // }
1736
- // }
1737
- // else{
1738
- // this.$dispatch('loadPage')
1739
- // }
1667
+ // 改管报建 增容报建 优化
1668
+ if((this.show_data.f_apply_type === '改管报建'||this.show_data.f_apply_type === '增容报建') && this.show_data.defname === '报装申请' && this.show_data.button.button_name === '缴费'){
1669
+ let datagg = {
1670
+ condition: `t.f_process_id='${this.show_data.f_process_id}'`,
1671
+ }
1672
+ let http = new HttpResetClass()
1673
+ let restgg = await http.load(
1674
+ 'POST',
1675
+ `rs/sql/checkusertwo`,
1676
+ {data: datagg},
1677
+ {resolveMsg: null, rejectMsg: '报建数据查询失败!!!'}
1678
+ )
1679
+ debugger
1680
+ if(this.show_data.f_apply_type === '改管报建'){
1681
+ restgg.data[0].processname = '改管报建流程'
1682
+ restgg.data[0].defname = '报装缴费'
1683
+ }else{
1684
+ restgg.data[0].processname = '增容报建流程'
1685
+ restgg.data[0].defname = '报装缴费'
1686
+ }
1687
+ restgg.data[0].actid = restgg.data[0].actid + 1
1688
+ this.$dispatch('apply',restgg.data[0])
1689
+
1690
+ }
1691
+
1692
+ // 退款报建 优化
1693
+ if(this.show_data.f_apply_type === '退款报建' && this.show_data.defname === '终止报建' && this.show_data.button.button_name === '提交'){
1694
+ let datatk = {
1695
+ condition: `t.f_process_id='${this.show_data.f_process_id}'`,
1696
+ }
1697
+ let http = new HttpResetClass()
1698
+ let resttk = await http.load(
1699
+ 'POST',
1700
+ `rs/sql/checkusertwo`,
1701
+ {data: datatk},
1702
+ {resolveMsg: null, rejectMsg: '报建数据查询失败!!!'}
1703
+ )
1704
+ debugger
1705
+ resttk.data[0].processname = '退款报建流程'
1706
+ resttk.data[0].defname = '退款'
1707
+ this.$dispatch('apply',resttk.data[0])
1708
+
1709
+ }
1710
+
1711
+
1712
+ if(this.show_data.f_apply_type === '散户报建' && this.show_data.defname === '报装申请' && this.show_data.button.button_name === '合同'){
1713
+ let data = {
1714
+ tablename: 't_apply',
1715
+ condition: `f_process_id='${this.show_data.f_process_id}'`
1716
+ }
1717
+ let http = new HttpResetClass()
1718
+ let restp = await http.load(
1719
+ 'POST',
1720
+ `rs/sql/singleTable`,
1721
+ {data: data},
1722
+ {resolveMsg: null, rejectMsg: '报建数据查询失败!!!'}
1723
+ )
1724
+ debugger
1725
+ restp.data[0].processname = '散户报建流程'
1726
+ restp.data[0].defname = '合同签订'
1727
+ this.$dispatch('apply',restp.data[0])
1728
+
1729
+ } else if(this.show_data.f_apply_type === '散户报建' && this.show_data.defname === '合同签订' && this.show_data.button.button_name === '提交'){
1730
+ let data2 = {
1731
+ condition: `u.id = ${this.show_data.id}`,
1732
+ data: {
1733
+ id: this.$login.f.id,
1734
+ orgid: this.$login.f.orgid
1735
+ }
1736
+ }
1737
+ let http = new HttpResetClass()
1738
+ let restp1 = await http.load(
1739
+ 'POST',
1740
+ `rs/sql/checkuser`,
1741
+ {data: data2},
1742
+ {resolveMsg: null, rejectMsg: '报建数据查询失败!!!'}
1743
+ )
1744
+ debugger
1745
+ console.log('有没有发请求打印查询的内容restp1',restp1)
1746
+ // restp1.data[0].processname = '散户报建流程'
1747
+ // restp1.data[0].defname = '报装缴费'
1748
+ this.$dispatch('apply',restp1.data[0])
1749
+ }else if(this.show_data.f_apply_type === '散户报建' && this.show_data.defname === '报装缴费' && this.show_data.button.button_name === '提交'){
1750
+ let data3 = {
1751
+ condition: `u.id = ${this.show_data.id}`,
1752
+ data: {
1753
+ id: this.$login.f.id,
1754
+ orgid: this.$login.f.orgid
1755
+ }
1756
+ }
1757
+ let http = new HttpResetClass()
1758
+ let restp2 = await http.load(
1759
+ 'POST',
1760
+ `rs/sql/checkuser`,
1761
+ {data: data3},
1762
+ {resolveMsg: null, rejectMsg: '报建数据查询失败!!!'}
1763
+ )
1764
+ debugger
1765
+ console.log('打印查询的内容',restp2)
1766
+ if(restp2.length>0){
1767
+ this.$dispatch('apply',restp2.data[0])
1768
+ }else{
1769
+ debugger
1770
+ this.$dispatch('loadPage')
1771
+ }
1772
+ }
1773
+ else{
1774
+ this.$dispatch('loadPage')
1775
+ }
1740
1776
 
1741
1777
  },
1742
1778
  // 失去焦点出触发事件