apply-clients 3.4.2-FuGu-16 → 3.4.2-FuGu-17

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.
@@ -6,10 +6,10 @@ var proxyMiddleware = require('http-proxy-middleware')
6
6
  var app = express()
7
7
  var compiler = webpack(config)
8
8
  // var proxy = httpProxy.createProxyServer()
9
- // var ldap = 'http://121.36.79.201:8400'
10
- // var applyinstall = 'http://121.36.79.201:8400'
11
- var ldap = 'http://192.168.50.4:8400'
12
- var applyinstall = 'http://127.0.0.1:8082'
9
+ var ldap = 'http://124.70.12.19:8400'
10
+ var applyinstall = 'http://124.70.12.19:8400'
11
+ // var ldap = 'http://192.168.50.4:8400'
12
+ // var applyinstall = 'http://127.0.0.1:8082'
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.2-FuGu-16",
3
+ "version": "3.4.2-FuGu-17",
4
4
  "description": "报建前端模块",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -282,27 +282,27 @@ export default {
282
282
  })
283
283
  }
284
284
  }
285
- if (this.selectdata.f_apply_source === '微信公众号' && this.selectdata.defname === '现场勘察') {
286
- for (const item of this.selectdata.fields) {
285
+ // 消除双向绑定,避免子组件(显示层)数据更改,父组件(控制层)也更改
286
+ let temp = JSON.parse(JSON.stringify(this.selectdata))
287
+
288
+ this.show_data = temp
289
+ this.$nextTick(() => {
290
+ this.showview = true
291
+ })
292
+ if (this.show_data.f_apply_source === '微信公众号' && this.show_data.defname === '现场勘察') {
293
+ for (const item of this.show_data.fields) {
287
294
  if (item.label==='预约地址' || item.label==='地址类型' || item.label==='片区' || item.label==='区/县' || item.label==='街道' || item.label==='小区') {
288
295
  item.hidden = false
289
296
  item.required = true
290
297
  }
291
- if (item.label==='区/县' && item.value){
292
- this.pcdChange
298
+ if (item.label==='区/县' && item.value !== null && item.value !==''){
299
+ this.pcdChange()
293
300
  }
294
- if (item.label==='街道' && item.value){
295
- this.streetChange
301
+ if (item.label==='街道' && item.value !== null && item.value !==''){
302
+ this.streetChange()
296
303
  }
297
304
  }
298
305
  }
299
- // 消除双向绑定,避免子组件(显示层)数据更改,父组件(控制层)也更改
300
- let temp = JSON.parse(JSON.stringify(this.selectdata))
301
-
302
- this.show_data = temp
303
- this.$nextTick(() => {
304
- this.showview = true
305
- })
306
306
  },
307
307
  // 金额转大写
308
308
  smalltoBIG(n) {
@@ -261,27 +261,27 @@ export default {
261
261
  }
262
262
  }
263
263
 
264
- if (this.selectdata.f_apply_source === '微信公众号' && this.selectdata.defname === '现场勘察') {
265
- for (const item of this.selectdata.fields) {
264
+ // 消除双向绑定,避免子组件(显示层)数据更改,父组件(控制层)也更改
265
+ let temp = JSON.parse(JSON.stringify(this.selectdata))
266
+
267
+ this.show_data = temp
268
+ this.$nextTick(() => {
269
+ this.showview = true
270
+ })
271
+ if (this.show_data.f_apply_source === '微信公众号' && this.show_data.defname === '现场勘察') {
272
+ for (const item of this.show_data.fields) {
266
273
  if (item.label==='预约地址' || item.label==='地址类型' || item.label==='片区' || item.label==='区/县' || item.label==='街道' || item.label==='小区') {
267
274
  item.hidden = false
268
275
  item.required = true
269
276
  }
270
- if (item.label==='区/县' && item.value){
271
- this.pcdChange
277
+ if (item.label==='区/县' && item.value !== null && item.value !==''){
278
+ this.pcdChange()
272
279
  }
273
- if (item.label==='街道' && item.value){
274
- this.streetChange
280
+ if (item.label==='街道' && item.value !== null && item.value !==''){
281
+ this.streetChange()
275
282
  }
276
283
  }
277
284
  }
278
- // 消除双向绑定,避免子组件(显示层)数据更改,父组件(控制层)也更改
279
- let temp = JSON.parse(JSON.stringify(this.selectdata))
280
-
281
- this.show_data = temp
282
- this.$nextTick(() => {
283
- this.showview = true
284
- })
285
285
  },
286
286
  // 金额转大写
287
287
  smalltoBIG(n) {
@@ -615,7 +615,12 @@ export default {
615
615
  }))
616
616
  },
617
617
  async pcdChange () {
618
- if (isEmpty(this.show_data.f_pcd)) {
618
+
619
+ if (isEmpty(this.show_data)) {
620
+ if (!isEmpty(this.selectdata.f_pcd)) {
621
+ this.show_data.f_pcd = this.selectdata.f_pcd
622
+ }
623
+ } if (isEmpty(this.show_data.f_pcd)) {
619
624
  return
620
625
  }
621
626