address-client 3.2.33 → 3.2.35

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.
@@ -1,2 +1,2 @@
1
- #Wed Sep 07 11:19:30 CST 2022
2
- gradle.version=7.1
1
+ #Mon Dec 07 15:35:10 CST 2020
2
+ gradle.version=5.2.1
@@ -10,36 +10,73 @@ var proxy = httpProxy.createProxyServer()
10
10
 
11
11
  // Define HTTP proxies to your custom API backend
12
12
  // https://github.com/chimurai/http-proxy-middleware
13
- var str = 'http://39.108.82.124:8400', str2= 'http://39.108.82.124:8400'
13
+ var str = 'http://127.0.0.1:8078', str2= 'http://192.168.50.4:8400/'
14
+ var str3= 'https://qnjtkf.cn:7400'
14
15
  var proxyTable = {
15
-
16
+ '/rs/sql':{
17
+ target: str3,
18
+ secure:true,
19
+ changeOrigin:true
20
+ // target: 'http://127.0.0.1:8080'
21
+ },
22
+ '/webapps':{
23
+ target: str3,
24
+ secure:true,
25
+ changeOrigin:true
26
+ // target: 'http://127.0.0.1:8080'
27
+ },
16
28
  '/rs/logic/getLogin': {
17
- target: str2
29
+ target: str3,
30
+ secure:true,
31
+ changeOrigin:true
32
+ },
33
+ '/rs/logic/getInitData': {
34
+ target: str3,
35
+ secure:true,
36
+ changeOrigin:true,
37
+ },
38
+ '/rs/logic/getSaleInitData': {
39
+ target: str3,
40
+ secure:true,
41
+ changeOrigin:true
42
+ },
43
+ '/rs/logic':{
44
+ target: str3,
45
+ secure:true,
46
+ changeOrigin:true
47
+ // target: 'http://127.0.0.1:8080'
18
48
  },
19
49
  '/rs/vue': {
20
- target: str2
50
+ target: str3,
51
+ secure:true,
52
+ changeOrigin:true
21
53
  },
22
54
  '/rs/user': {
23
- target: str2
55
+ target: str3,
56
+ secure:true,
57
+ changeOrigin:true
24
58
  },
25
59
  '/rs/db': {
26
- target: str2
60
+ target: str3,
61
+ secure:true,
62
+ changeOrigin:true
27
63
  },
28
64
  '/rs/search': {
29
- target: str2
65
+ target: str3,
66
+ secure:true,
67
+ changeOrigin:true
68
+ // target: 'http://127.0.0.1:8080'
30
69
  },
31
70
  '/rs/data': {
32
- target: str2
33
- },
34
- '/rs/logic/getInitData': {
35
- target: str2
36
- },
37
- '/rs/logic/getSaleInitData': {
38
- target: str2
71
+ target: str3,
72
+ secure:true,
73
+ changeOrigin:true
39
74
  },
40
75
  '/rs': {
41
76
  // target: 'http://192.168.50.199:8300'
42
- target: str
77
+ target: str3,
78
+ secure:true,
79
+ changeOrigin:true
43
80
  }
44
81
  }
45
82
 
package/package.json CHANGED
@@ -1,99 +1,99 @@
1
- {
2
- "name": "address-client",
3
- "version": "3.2.33",
4
- "description": "地址管理前台组件",
5
- "author": "wanbochao",
6
- "license": "ISC",
7
- "main": "src/index.js",
8
- "keywords": [
9
- "sale"
10
- ],
11
- "scripts": {
12
- "unit": "karma start test/unit/karma.conf.js",
13
- "example": "node build/example-server.js",
14
- "dev": "node build/dev-server.js",
15
- "lint": "eslint src/**.js test/e2e/**.js test/unit/specs/** build/**.js",
16
- "build": "rimraf dist && mkdirp dist && ncp static dist/static && cross-env NODE_ENV=production webpack --progress --hide-modules --config build/webpack.prod.conf.js",
17
- "e2e": "node test/e2e/runner.js",
18
- "make": "rimraf dist-android && mkdirp dist-android && ncp static dist-android/static && cross-env NODE_ENV=production webpack --progress --hide-modules --config build/webpack.prodandroid.conf.js && publish",
19
- "release": "bash build/release.sh"
20
- },
21
- "repository": {
22
- "type": "git",
23
- "url": "https://gitee.com/aote/address_management.git"
24
- },
25
- "dependencies": {
26
- "less-loader": "^2.2.3",
27
- "vue": "^1.0.17"
28
- },
29
- "devDependencies": {
30
- "babel-core": "^6.0.0",
31
- "babel-loader": "^6.0.0",
32
- "babel-plugin-transform-runtime": "^6.0.0",
33
- "babel-preset-es2015": "^6.0.0",
34
- "babel-preset-stage-2": "^6.0.0",
35
- "chai": "^3.5.0",
36
- "co": "^4.6.0",
37
- "connect-history-api-fallback": "^1.1.0",
38
- "cross-env": "^1.0.7",
39
- "cross-spawn": "^2.1.5",
40
- "css-loader": "^0.23.0",
41
- "echarts": "^4.1.0",
42
- "eslint": "^2.0.0",
43
- "eslint-config-standard": "^5.1.0",
44
- "eslint-friendly-formatter": "^1.2.2",
45
- "eslint-loader": "^1.3.0",
46
- "eslint-plugin-html": "^1.3.0",
47
- "eslint-plugin-promise": "^1.0.8",
48
- "eslint-plugin-standard": "^1.3.2",
49
- "eslint-plugin-vue": "^0.1.1",
50
- "eventsource-polyfill": "^0.9.6",
51
- "express": "^4.13.3",
52
- "extract-text-webpack-plugin": "^1.0.1",
53
- "file-loader": "^0.8.4",
54
- "function-bind": "^1.0.2",
55
- "html-webpack-plugin": "^2.8.1",
56
- "http-proxy-middleware": "^0.11.0",
57
- "inject-loader": "^2.0.1",
58
- "isparta-loader": "^2.0.0",
59
- "jasmine-core": "^2.4.1",
60
- "jquery": "^3.3.1",
61
- "json-loader": "^0.5.4",
62
- "karma": "^1.4.1",
63
- "karma-chrome-launcher": "^2.2.0",
64
- "karma-coverage": "^1.1.1",
65
- "karma-mocha": "^1.3.0",
66
- "karma-sinon-chai": "^1.3.1",
67
- "karma-sourcemap-loader": "^0.3.7",
68
- "karma-spec-reporter": "0.0.31",
69
- "karma-webpack": "^2.0.2",
70
- "less": "^2.7.3",
71
- "mkdirp": "^0.5.1",
72
- "mocha": "^3.2.0",
73
- "ncp": "^2.0.0",
74
- "rimraf": "^2.5.0",
75
- "sale-client": "3.2.11-17",
76
- "selenium-server": "2.52.0",
77
- "sinon": "^2.1.0",
78
- "sinon-chai": "^2.8.0",
79
- "style": "0.0.3",
80
- "style-loader": "^0.20.3",
81
- "system-clients": "3.1.88-5",
82
- "url-loader": "^0.5.7",
83
- "vue-client": "1.24.27",
84
- "vue-hot-reload-api": "^1.2.0",
85
- "vue-html-loader": "^1.0.0",
86
- "vue-loader": "^8.2.1",
87
- "vue-resource": "^1.5.0",
88
- "vue-router": "^0.7.13",
89
- "vue-strap": "^1.0.9",
90
- "vue-style-loader": "^1.0.0",
91
- "vue-validator": "2.1.7",
92
- "webpack": "^1.12.2",
93
- "webpack-dev-middleware": "^1.4.0",
94
- "webpack-hot-middleware": "^2.6.0",
95
- "webpack-merge": "^0.8.3",
96
- "jsencrypt": "3.0.0-rc.1",
97
- "axios": "0.15.3"
98
- }
99
- }
1
+ {
2
+ "name": "address-client",
3
+ "version": "3.2.35",
4
+ "description": "地址管理前台组件",
5
+ "author": "wanbochao",
6
+ "license": "ISC",
7
+ "main": "src/index.js",
8
+ "keywords": [
9
+ "sale"
10
+ ],
11
+ "scripts": {
12
+ "unit": "karma start test/unit/karma.conf.js",
13
+ "example": "node build/example-server.js",
14
+ "dev": "node build/dev-server.js",
15
+ "lint": "eslint src/**.js test/e2e/**.js test/unit/specs/** build/**.js",
16
+ "build": "rimraf dist && mkdirp dist && ncp static dist/static && cross-env NODE_ENV=production webpack --progress --hide-modules --config build/webpack.prod.conf.js",
17
+ "e2e": "node test/e2e/runner.js",
18
+ "make": "rimraf dist-android && mkdirp dist-android && ncp static dist-android/static && cross-env NODE_ENV=production webpack --progress --hide-modules --config build/webpack.prodandroid.conf.js && publish",
19
+ "release": "bash build/release.sh"
20
+ },
21
+ "repository": {
22
+ "type": "git",
23
+ "url": "https://gitee.com/aote/address_management.git"
24
+ },
25
+ "dependencies": {
26
+ "less-loader": "^2.2.3",
27
+ "vue": "^1.0.17"
28
+ },
29
+ "devDependencies": {
30
+ "babel-core": "^6.0.0",
31
+ "babel-loader": "^6.0.0",
32
+ "babel-plugin-transform-runtime": "^6.0.0",
33
+ "babel-preset-es2015": "^6.0.0",
34
+ "babel-preset-stage-2": "^6.0.0",
35
+ "chai": "^3.5.0",
36
+ "co": "^4.6.0",
37
+ "connect-history-api-fallback": "^1.1.0",
38
+ "cross-env": "^1.0.7",
39
+ "cross-spawn": "^2.1.5",
40
+ "css-loader": "^0.23.0",
41
+ "echarts": "^4.1.0",
42
+ "eslint": "^2.0.0",
43
+ "eslint-config-standard": "^5.1.0",
44
+ "eslint-friendly-formatter": "^1.2.2",
45
+ "eslint-loader": "^1.3.0",
46
+ "eslint-plugin-html": "^1.3.0",
47
+ "eslint-plugin-promise": "^1.0.8",
48
+ "eslint-plugin-standard": "^1.3.2",
49
+ "eslint-plugin-vue": "^0.1.1",
50
+ "eventsource-polyfill": "^0.9.6",
51
+ "express": "^4.13.3",
52
+ "extract-text-webpack-plugin": "^1.0.1",
53
+ "file-loader": "^0.8.4",
54
+ "function-bind": "^1.0.2",
55
+ "html-webpack-plugin": "^2.8.1",
56
+ "http-proxy-middleware": "^0.11.0",
57
+ "inject-loader": "^2.0.1",
58
+ "isparta-loader": "^2.0.0",
59
+ "jasmine-core": "^2.4.1",
60
+ "jquery": "^3.3.1",
61
+ "json-loader": "^0.5.4",
62
+ "karma": "^1.4.1",
63
+ "karma-chrome-launcher": "^2.2.0",
64
+ "karma-coverage": "^1.1.1",
65
+ "karma-mocha": "^1.3.0",
66
+ "karma-sinon-chai": "^1.3.1",
67
+ "karma-sourcemap-loader": "^0.3.7",
68
+ "karma-spec-reporter": "0.0.31",
69
+ "karma-webpack": "^2.0.2",
70
+ "less": "^2.7.3",
71
+ "mkdirp": "^0.5.1",
72
+ "mocha": "^3.2.0",
73
+ "ncp": "^2.0.0",
74
+ "rimraf": "^2.5.0",
75
+ "sale-client": "3.2.11-17",
76
+ "selenium-server": "2.52.0",
77
+ "sinon": "^2.1.0",
78
+ "sinon-chai": "^2.8.0",
79
+ "style": "0.0.3",
80
+ "style-loader": "^0.20.3",
81
+ "system-clients": "3.1.88-5",
82
+ "url-loader": "^0.5.7",
83
+ "vue-client": "1.24.27",
84
+ "vue-hot-reload-api": "^1.2.0",
85
+ "vue-html-loader": "^1.0.0",
86
+ "vue-loader": "^8.2.1",
87
+ "vue-resource": "^1.5.0",
88
+ "vue-router": "^0.7.13",
89
+ "vue-strap": "^1.0.9",
90
+ "vue-style-loader": "^1.0.0",
91
+ "vue-validator": "2.1.7",
92
+ "webpack": "^1.12.2",
93
+ "webpack-dev-middleware": "^1.4.0",
94
+ "webpack-hot-middleware": "^2.6.0",
95
+ "webpack-merge": "^0.8.3",
96
+ "jsencrypt": "3.0.0-rc.1",
97
+ "axios": "0.15.3"
98
+ }
99
+ }
@@ -576,7 +576,7 @@
576
576
  this.buildingmodel.f_orgname = this.$login.f.orgs
577
577
  this.buildingmodel.f_depid = this.$login.f.depids
578
578
  this.buildingmodel.f_depname = this.$login.f.deps
579
- await this.$resetpost('rs/logic/address_savebuilding', this.buildingmodel,{resolveMsg: null,rejectMsg: null})
579
+ await this.$resetpost('rs/logic/address_savebuilding', this.buildingmodel)
580
580
  this.$refs.buildinglist.search()
581
581
  },
582
582
  //保存小区
@@ -600,7 +600,7 @@
600
600
  this.areamodel.f_pcd=this.findbyid(this.pcdslist,this.areamodel.f_pcd_id).f_pcd
601
601
  this.areamodel.f_street=this.findbyid(this.streetslist,this.areamodel.f_street_id).f_street
602
602
 
603
- await this.$resetpost('rs/logic/address_updatearea', this.areamodel,{resolveMsg: null,rejectMsg: null})
603
+ await this.$resetpost('rs/logic/address_updatearea', this.areamodel)
604
604
  },
605
605
  cleardara(){
606
606
  this.areamodel= {
@@ -262,7 +262,7 @@
262
262
  this.pcdmodel.f_depid = this.$login.f.depids
263
263
  this.pcdmodel.f_depname = this.$login.f.deps
264
264
  this.pcdmodel.f_pcd = this.pcdmodel.f_province+this.pcdmodel.f_city+this.pcdmodel.f_district
265
- await this.$resetpost('rs/logic/address_updatepcd', this.pcdmodel,{resolveMsg: null,rejectMsg: null})
265
+ await this.$resetpost('rs/logic/address_updatepcd', this.pcdmodel)
266
266
  },
267
267
  //保存街道
268
268
  async savestreet(){
@@ -275,7 +275,7 @@
275
275
  this.streetmodel.f_depname = this.$login.f.deps
276
276
  this.streetmodel.f_pcd=this.findbyid(this.pcdslist,this.streetmodel.f_pcd_id).f_pcd
277
277
  console.log('获取街道model', this.streetmodel)
278
- await this.$resetpost('rs/logic/address_updatestreet', this.streetmodel,{resolveMsg: null,rejectMsg: null})
278
+ await this.$resetpost('rs/logic/address_updatestreet', this.streetmodel)
279
279
  },
280
280
  cancel(){
281
281
  this.cleardara()
@@ -456,7 +456,7 @@
456
456
  f_depname: this.$login.f.deps,
457
457
  f_filialeid: this.f_filialeids
458
458
  }
459
- this.$resetpost('rs/logic/modifyBatch',modifyBatchData,{resolveMsg: null,rejectMsg: null})
459
+ this.$resetpost('rs/logic/modifyBatch',modifyBatchData)
460
460
  this.initpcds(`f_filialeid = '${this.f_filialeids}'`)
461
461
  this.showModify = false
462
462
  this.$refs.paged.$refs.grid.selectInit()
@@ -34,8 +34,8 @@
34
34
  </div>
35
35
  <div class="col-sm-4 form-group button-range" >
36
36
  <button class="button_search button_spacing" @click="search()" >查询</button>
37
- <button class="button_new button_spacing" style="width: max-content" @click="$parent.$parent.add('民用')">添加民用</button>
38
- <button class="button_new button_spacing" style="width: max-content" @click="$parent.$parent.add('非民用')">添加特殊地址</button>
37
+ <button class="button_new button_spacing" style="width: max-content" @click="$parent.$parent.add('民用')">添加地址</button>
38
+ <!-- <button class="button_new button_spacing" style="width: max-content" @click="$parent.$parent.add('非民用')">添加特殊地址</button>-->
39
39
  <button class="button_new button_spacing" style="width: max-content" v-show="this.$login.r.includes('批量修改')" @click="$parent.$parent.modifyBatch()">批量修改</button>
40
40
  <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
41
41
  <button class="button_export button_spacing" @click="$parent.$parent.importAddress('导入')">模板导入</button>
@@ -122,6 +122,17 @@
122
122
  close-on-select>
123
123
  </v-select>
124
124
  </div>
125
+ <div :class="$parent.$parent.style">
126
+ <label class="font_normal_body">地区类型</label>
127
+ <v-select
128
+ class="select_list select"
129
+ :value.sync="model.f_iscity"
130
+ v-model="model.f_iscity"
131
+ :options='$parent.$parent.iscity' placeholder='地区类型'
132
+ condition="a.f_iscity = '{}'"
133
+ close-on-select>
134
+ </v-select>
135
+ </div>
125
136
  <div :class="$parent.$parent.style" >
126
137
  <label class="font_normal_body">状&emsp;&emsp;态</label>
127
138
  <v-select :value.sync="model.f_state"
@@ -154,6 +165,7 @@
154
165
  <th v-show="!$parent.$parent.$parent.$parent.useraddressShow"><nobr>楼层</nobr></th>
155
166
  <th v-show="!$parent.$parent.$parent.$parent.useraddressShow"><nobr>门牌号</nobr></th>
156
167
  <th><nobr>详细地址</nobr></th>
168
+ <th><nobr>地区类型</nobr></th>
157
169
  <th><nobr>地址状态</nobr></th>
158
170
  <th><nobr>状态</nobr></th>
159
171
  <th><nobr>入户证号</nobr></th>
@@ -172,6 +184,7 @@
172
184
  <td v-show="!$parent.$parent.$parent.$parent.useraddressShow" style="text-align:center"><nobr>{{row.f_floor}}{{row.f_floor_suffix}}</nobr></td>
173
185
  <td v-show="!$parent.$parent.$parent.$parent.useraddressShow" style="text-align:center"><nobr>{{row.f_room}}{{row.f_room_suffix}}</nobr></td>
174
186
  <td style="text-align:center"><nobr>{{row.f_address}}</nobr></td>
187
+ <td style="text-align:center"><nobr>{{row.f_iscity}}</nobr></td>
175
188
  <td style="text-align:center"><nobr>{{row.f_address_state}}</nobr></td>
176
189
  <td style="text-align:center"><nobr>{{row.f_state ==='作废'?'作废':'有效'}}</nobr></td>
177
190
  <td style="text-align:center"><nobr>{{row.f_enter_number}}</nobr></td>
@@ -261,7 +274,9 @@
261
274
  data () {
262
275
  return {
263
276
  criteriaShow: false,
277
+ // rs/sql/address_singleTableOrderBy
264
278
  model: new PagedList('rs/sql/address_getAddress',20,{tablename: `'t_user_address'`,items: `'*'`,orderitem: `'id desc'`}),
279
+ //address_getAddress params:{tablename: `'t_user_address'`,items: `'*'`,orderitem: `'id desc'`}
265
280
  config: {
266
281
  // 导出列要和查询列相同
267
282
  excelHeaders: {
@@ -277,11 +292,13 @@
277
292
  'f_floor':'楼层',
278
293
  'f_room':'门牌号',
279
294
  'f_address':'详细地址',
295
+ 'f_iscity':'地区类型',
280
296
  'f_address_state':'地址状态',
281
297
  'f_create_date':'时间',
282
298
  'f_state':'状态'
283
299
  },
284
300
  },
301
+ iscity:[{label:'市区',value:'市区'},{label:'乡镇',value:'乡镇'},{label:'全部',value:''}],
285
302
  isbusy:false,
286
303
  addflag: false,
287
304
  addtitle:'',
@@ -398,7 +415,7 @@
398
415
  if (!this.f_orgid) {
399
416
  this.getorg([this.$login.f.orgid])
400
417
  }
401
- args.condition = `${args.condition} and a.f_filialeid = '${this.f_filialeids}'`
418
+ args.condition = `${args.condition} and f_filialeid = '${this.f_filialeids}'`
402
419
  this.model.search(args.condition, args.model)
403
420
  },
404
421
 
@@ -613,7 +630,7 @@
613
630
  },
614
631
  getCondition() {
615
632
  return {
616
- condition: `${this.$refs.paged.$refs.cri.condition}` + `and a.f_filialeid = '${this.f_filialeids}'`}
633
+ condition: `${this.$refs.paged.$refs.cri.condition}` + `and f_filialeid = '${this.f_filialeids}'`}
617
634
  }
618
635
  }
619
636
 
@@ -8,6 +8,10 @@
8
8
  <label for="true">单户</label>
9
9
  <input type="radio" id="false" value="more" v-model="onedata">
10
10
  <label for="false">多户</label>
11
+ <button class="button_new-1 button_spacing" v-if="false" v-show=" $login.f.f_role_name.includes('管理员') "style="width: max-content;position: fixed;right: 20px" @click="add('非民用')">添加特殊地址</button>
12
+ </div>
13
+ <div class="form-group" v-if="usertype&&!model.id&&!config.hasnumber" style="height: 30.5px">
14
+ <button class="button_new-1 button_spacing" style="width: max-content;position: fixed;right: 20px" @click="add('民用')">添加民用地址</button>
11
15
  </div>
12
16
  <!--单个录入-->
13
17
  <div v-if="onedata=='one'" class="row">
@@ -15,6 +19,7 @@
15
19
  :class="[$v.f_pcd_id.required ? 'has-error' : 'has-success']" v-if="!usertype">
16
20
  <label class="font_normal_body">&emsp;&emsp;&nbsp;省&ensp;市&ensp;区</label>
17
21
  <input type="text" style="width:41%" v-show="false" v-model="model.f_pcd_id"
22
+ v-validate:f_pcd_id='{required: true }'
18
23
  >
19
24
  <v-select :value.sync="model.f_pcd_id" :value-single="true"
20
25
  :options='pcdslist' placeholder='请选择'
@@ -36,6 +41,7 @@
36
41
  :class="[$v.f_street_id.required ? 'has-error' : 'has-success']">
37
42
  <label class="font_normal_body">&emsp;&emsp;街道/乡镇</label>
38
43
  <input type="text" style="width:41%" v-show="false" v-model="model.f_street_id"
44
+ v-validate:f_street_id='{required: true }'
39
45
  >
40
46
  <v-select :value.sync="model.f_street_id" :value-single="true"
41
47
  :options='streetslist' placeholder='请选择'
@@ -92,6 +98,7 @@
92
98
  @change="changecity"
93
99
  close-on-select>
94
100
  </v-select>
101
+
95
102
  </div>
96
103
  <div v-if="!usertype" class="col-sm-6 form-group" :class="[$v.f_building_id.required ? 'has-error' : 'has-success']">
97
104
  <label class="font_normal_body">&emsp;&emsp;&nbsp;楼&emsp;&emsp;号</label>
@@ -113,13 +120,11 @@
113
120
  <input type="text" style="width:20%" v-model="model.f_floor_suffix" class="input_search"
114
121
  />
115
122
  </div>
116
- <div v-if="!usertype" class="col-sm-6 form-group "
123
+ <div v-if="!usertype" class="col-sm-6 form-group"
117
124
  :class="[$v.f_room.required ? 'has-error' : 'has-success']">
118
125
  <label for="f_address" class="font_normal_body">&emsp;&emsp;&nbsp;门&ensp;牌&ensp;号</label>
119
126
  <input type="text" style="width:40%" v-model="model.f_room" class="input_search" placeholder="门牌号"
120
127
  v-validate:f_room='{required: true }'/>
121
- <input type="text" style="width:20%" v-model="model.f_room_suffix" class="input_search"
122
- />
123
128
  </div>
124
129
  <div class="col-sm-6 form-group">
125
130
  <label class="font_normal_body">&emsp;&emsp;&nbsp;地址状态</label>
@@ -130,6 +135,10 @@
130
135
  close-on-select>
131
136
  </v-select>
132
137
  </div>
138
+ <div v-if="!usertype" class="col-sm-6 form-group">
139
+ <label for="f_address" class="font_normal_body">&emsp;&emsp;&nbsp;地址杂项</label>
140
+ <input type="text" style="width:60%" v-model="model.f_room_suffix" placeholder="地址杂项" class="input_search"/>
141
+ </div>
133
142
  <div v-if="!usertype" class="col-sm-8 form-group ">
134
143
  <label class="font_normal_body">&emsp;&emsp;&nbsp;经&ensp;纬&ensp;度</label>
135
144
  <input type="text" style="width:30%" v-model="model.f_lng" class="input_search" placeholder="经度"/>
@@ -137,11 +146,18 @@
137
146
  &ensp;<span class="glyphicon glyphicon-map-marker" @click="openModal" ></span>
138
147
  </div>
139
148
 
149
+ <div v-if="!usertype" class="col-sm-12 form-group "
150
+ :class="[$v.f_address.required ? 'has-error' : 'has-success']">
151
+ <label for="f_address" class="font_normal_body">&emsp;&emsp;&nbsp;详细地址</label>
152
+ <input type="text" style="width:80%" v-model="model.f_address" class="input_search" placeholder="详细地址"
153
+ v-validate:f_address='{required: true }' disabled="true"/>
154
+ </div>
155
+
140
156
  <div v-if="usertype" class="col-sm-12 form-group "
141
157
  :class="[$v.f_address.required ? 'has-error' : 'has-success']">
142
158
  <label for="f_address" class="font_normal_body">&emsp;&emsp;&nbsp;详细地址</label>
143
159
  <input type="text" style="width:80%" v-model="model.f_address" class="input_search" placeholder="详细地址"
144
- v-validate:f_address='{required: true }'/>
160
+ v-validate:f_address='{required: true }' disabled="true"/>
145
161
  </div>
146
162
  <div v-if="usertype" class="col-sm-8 form-group ">
147
163
  <label class="font_normal_body">&emsp;&emsp;&nbsp;经&ensp;纬&ensp;度</label>
@@ -187,6 +203,7 @@
187
203
  :class="[$v.f_pcd_id.required ? 'has-error' : 'has-success']">
188
204
  <label class="font_normal_body">&emsp;&emsp;&nbsp;省&ensp;市&ensp;区</label>
189
205
  <input type="text" style="width:60%" v-show="false" v-model="model.f_pcd_id"
206
+ v-validate:f_pcd_id='{required: true }'
190
207
  >
191
208
  <v-select :value.sync="model.f_pcd_id" :value-single="true"
192
209
  :options='pcdslist' placeholder='请选择'
@@ -197,6 +214,7 @@
197
214
  :class="[$v.f_street_id.required ? 'has-error' : 'has-success']">
198
215
  <label class="font_normal_body">&emsp;&emsp;&nbsp;街&emsp;&emsp;道</label>
199
216
  <input type="text" style="width:60%" v-show="false" v-model="model.f_street_id"
217
+ v-validate:f_street_id='{required: true }'
200
218
  >
201
219
  <v-select :value.sync="model.f_street_id" :value-single="true"
202
220
  :options='streetslist' placeholder='请选择'
@@ -349,7 +367,7 @@
349
367
  await self.$getConfig(self, 'UserAddress')
350
368
  console.log('原地址配置',self.config)
351
369
  console.log('获取地址配置',self.config)
352
- Object.assign(self.model, self.config)
370
+ // Object.assign(self.model, self.config)
353
371
  }
354
372
 
355
373
  export default {
@@ -392,19 +410,19 @@
392
410
  f_building: '',
393
411
  f_building_start: '',
394
412
  f_building_end: '',
395
- f_building_suffix: '',
413
+ f_building_suffix: '号楼',
396
414
  f_unit: '',
397
415
  f_unit_start: '',
398
416
  f_unit_end: '',
399
- f_unit_suffix: '',
417
+ f_unit_suffix: '单元',
400
418
  f_floor: '',
401
419
  f_floor_start: '',
402
420
  f_floor_end: '',
403
- f_floor_suffix: '',
421
+ f_floor_suffix: '',
404
422
  f_room: '',
405
423
  f_room_start: '',
406
424
  f_room_end: '',
407
- f_room_suffix: '',
425
+ f_room_suffix: '',
408
426
  //详细地址
409
427
  f_address: '',
410
428
  //单位名称
@@ -432,13 +450,24 @@
432
450
  props: ['f_filialeids', 'row','operation','usertype'],
433
451
  async ready(){
434
452
  this.initdata()
435
- getAreaConfig(this)
453
+ // getAreaConfig(this)
454
+ //打印config
455
+ console.log(this.config)
436
456
  this.model.f_building_suffix=this.config.f_building_suffix
437
457
  this.model.f_unit_suffix=this.config.f_unit_suffix
438
458
  this.model.f_floor_suffix=this.config.f_floor_suffix
439
459
  this.model.f_room_suffix=this.config.f_room_suffix
440
460
  },
441
461
  methods: {
462
+ //添加方法
463
+ add(val){
464
+ if (this.f_filialeids) {
465
+ // this.$refs.paged.$refs.grid.selectStore.selected = null
466
+ this.$dispatch('add',val)
467
+ } else {
468
+ this.$showAlert('请先选择左上角的所在分公司', 'warning', 2000)
469
+ }
470
+ },
442
471
  async sliceChange(slice){
443
472
  this.areaschoice=[]
444
473
  if(slice){
@@ -457,7 +486,8 @@
457
486
  this.areaslist = []
458
487
  // this.model.f_residential_area_id = null
459
488
  // this.model.f_residential_area = null
460
- let condition = `isnull(f_iscity,'') = isnull('${this.model.f_iscity}','') and a.f_orgid = '${this.f_filialeids}'`
489
+ // isnull(f_iscity,'') = isnull('${this.model.f_iscity}','') and
490
+ let condition = `a.f_orgid = '${this.f_filialeids}'`
461
491
  let req = await this.$resetpost('rs/sql/address_getresidential', {
462
492
  data: {
463
493
  condition: condition
@@ -472,6 +502,7 @@
472
502
  id: row.id
473
503
  })
474
504
  })
505
+ console.log("获取到的redata",redata)
475
506
  this.areaslist=redata
476
507
  },
477
508
  standardyanzheng() {
@@ -581,6 +612,14 @@
581
612
  }
582
613
  }, {resolveMsg: null, rejectMsg: '获取地址失败!'})
583
614
  let redata = []
615
+ if (req.data.length === 0){
616
+ redata.push({
617
+ label: '['+row.f_street+']'+'无',
618
+ value: '',
619
+ data: '',
620
+ id: ''
621
+ })
622
+ }
584
623
  req.data.forEach((row) => {
585
624
  redata.push({
586
625
  label: '['+row.f_street+']'+row.f_residential_area,
@@ -604,6 +643,12 @@
604
643
  }
605
644
  }, {resolveMsg: null, rejectMsg: '获取楼栋失败!'})
606
645
  let redata = []
646
+ if(req.data.length === 0){
647
+ redata.push({
648
+ label: '无',
649
+ value: ' ',
650
+ })
651
+ }
607
652
  req.data.forEach((row) => {
608
653
  redata.push({
609
654
  label: row.f_building,
@@ -671,7 +716,9 @@
671
716
  this.initpcds(` f_filialeid = '${this.f_filialeids}' and id ='${selectArea.f_pcd_id}' `)
672
717
  this.model.slice_area = selectArea.f_slice_area
673
718
  // 拼接地址
674
- this.model.f_address = `${selectArea.f_street}${selectArea.f_residential_area}`
719
+ if(selectArea.f_residential_area !== '无'){
720
+ this.model.f_address = `${selectArea.f_street}${selectArea.f_residential_area}`
721
+ }
675
722
  this.getbuildingList(`f_filialeid = '${this.f_filialeids}' and f_residential_area_id ='${selectArea.id}'`)
676
723
  }
677
724
  this.$nextTick(() => {
@@ -724,10 +771,14 @@
724
771
  console.log('批量', this.model)
725
772
  let data=Object.assign({},this.model)
726
773
  data.f_create_person= this.$login.f.name
727
- if ((i+'').length == 1) {
728
- data.f_building= data.f_building_prefix + '0' +i
729
- } else {
730
- data.f_building= data.f_building_prefix + '' +i
774
+ if ( i != ''){
775
+ if ((i+'').length == 1) {
776
+ data.f_building= data.f_building_prefix + '0' +i
777
+ } else {
778
+ data.f_building= data.f_building_prefix + '' +i
779
+ }
780
+ }else {
781
+ data.f_building = data.f_building_prefix + ''
731
782
  }
732
783
  if ((j+'').length == 1) {
733
784
  data.f_unit= data.f_unit_prefix + '0'+j
@@ -823,6 +874,7 @@
823
874
  this.model.f_slice_area = this.model.slice_area
824
875
  }
825
876
  }
877
+
826
878
  if (( this.model.f_unit+'').length == 1) {
827
879
  this.model.f_unit= '0'+ this.model.f_unit
828
880
  }
@@ -847,7 +899,7 @@
847
899
  this.model.f_pcd=this.findbyid(this.pcdslist,this.model.f_pcd_id).f_pcd
848
900
  this.model.f_street=this.findbyid(this.streetslist,this.model.f_street_id).f_street
849
901
  this.model.f_residential_area=this.findbyid(this.areaslist,this.model.f_residential_area_id).f_residential_area
850
- if (( this.$refs.f_building_id.selectedItems+'').length == 1) {
902
+ if (( this.$refs.f_building_id.selectedItems+'').length == 1 && this.$refs.f_building_id.selectedItems!= '无') {
851
903
  this.model.f_building= '0'+ this.$refs.f_building_id.selectedItems
852
904
  }else{
853
905
  this.model.f_building = this.$refs.f_building_id.selectedItems
@@ -857,7 +909,7 @@
857
909
  this.$showMessage('请选择楼栋数据!!!')
858
910
  return
859
911
  }
860
- this.model.f_address = this.model.f_street + this.model.f_residential_area + (this.model.f_building?this.model.f_building +this.model.f_building_suffix:'') + (this.model.f_unit?this.model.f_unit +this.model.f_unit_suffix:'') + (this.model.f_floor?this.model.f_floor +this.model.f_floor_suffix:'') + this.model.f_room + this.model.f_room_suffix
912
+ this.model.f_address = this.model.f_street + (this.model.f_residential_area!='无'?this.model.f_residential_area:'') + (this.model.f_building&&this.model.f_building!='无'?this.model.f_building +this.model.f_building_suffix:'') + (this.model.f_unit?this.model.f_unit +this.model.f_unit_suffix:'') + (this.model.f_floor?this.model.f_floor +this.model.f_floor_suffix:'') + this.model.f_room + this.model.f_room_suffix
861
913
  }
862
914
  await this.$resetpost('rs/logic/address_updateuseraddress', this.model)
863
915
  },
package/src/main.js CHANGED
@@ -9,7 +9,7 @@ Vue.config.silent = true
9
9
 
10
10
  /** **************************通用组件******************************/
11
11
  all()
12
- address("dongguan")
12
+ address("qianneng")
13
13
  system(false)
14
14
  sale()
15
15
  require('system-clients/src/styles/less/bootstrap.less')
File without changes
File without changes
Binary file
File without changes
Binary file
@@ -1,5 +0,0 @@
1
- distributionBase=GRADLE_USER_HOME
2
- distributionPath=wrapper/dists
3
- distributionUrl=https\://services.gradle.org/distributions/gradle-7.1-bin.zip
4
- zipStoreBase=GRADLE_USER_HOME
5
- zipStorePath=wrapper/dists
package/gradlew DELETED
@@ -1,185 +0,0 @@
1
- #!/usr/bin/env sh
2
-
3
- #
4
- # Copyright 2015 the original author or authors.
5
- #
6
- # Licensed under the Apache License, Version 2.0 (the "License");
7
- # you may not use this file except in compliance with the License.
8
- # You may obtain a copy of the License at
9
- #
10
- # https://www.apache.org/licenses/LICENSE-2.0
11
- #
12
- # Unless required by applicable law or agreed to in writing, software
13
- # distributed under the License is distributed on an "AS IS" BASIS,
14
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
- # See the License for the specific language governing permissions and
16
- # limitations under the License.
17
- #
18
-
19
- ##############################################################################
20
- ##
21
- ## Gradle start up script for UN*X
22
- ##
23
- ##############################################################################
24
-
25
- # Attempt to set APP_HOME
26
- # Resolve links: $0 may be a link
27
- PRG="$0"
28
- # Need this for relative symlinks.
29
- while [ -h "$PRG" ] ; do
30
- ls=`ls -ld "$PRG"`
31
- link=`expr "$ls" : '.*-> \(.*\)$'`
32
- if expr "$link" : '/.*' > /dev/null; then
33
- PRG="$link"
34
- else
35
- PRG=`dirname "$PRG"`"/$link"
36
- fi
37
- done
38
- SAVED="`pwd`"
39
- cd "`dirname \"$PRG\"`/" >/dev/null
40
- APP_HOME="`pwd -P`"
41
- cd "$SAVED" >/dev/null
42
-
43
- APP_NAME="Gradle"
44
- APP_BASE_NAME=`basename "$0"`
45
-
46
- # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
47
- DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
48
-
49
- # Use the maximum available, or set MAX_FD != -1 to use that value.
50
- MAX_FD="maximum"
51
-
52
- warn () {
53
- echo "$*"
54
- }
55
-
56
- die () {
57
- echo
58
- echo "$*"
59
- echo
60
- exit 1
61
- }
62
-
63
- # OS specific support (must be 'true' or 'false').
64
- cygwin=false
65
- msys=false
66
- darwin=false
67
- nonstop=false
68
- case "`uname`" in
69
- CYGWIN* )
70
- cygwin=true
71
- ;;
72
- Darwin* )
73
- darwin=true
74
- ;;
75
- MSYS* | MINGW* )
76
- msys=true
77
- ;;
78
- NONSTOP* )
79
- nonstop=true
80
- ;;
81
- esac
82
-
83
- CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
84
-
85
-
86
- # Determine the Java command to use to start the JVM.
87
- if [ -n "$JAVA_HOME" ] ; then
88
- if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
89
- # IBM's JDK on AIX uses strange locations for the executables
90
- JAVACMD="$JAVA_HOME/jre/sh/java"
91
- else
92
- JAVACMD="$JAVA_HOME/bin/java"
93
- fi
94
- if [ ! -x "$JAVACMD" ] ; then
95
- die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
96
-
97
- Please set the JAVA_HOME variable in your environment to match the
98
- location of your Java installation."
99
- fi
100
- else
101
- JAVACMD="java"
102
- which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
103
-
104
- Please set the JAVA_HOME variable in your environment to match the
105
- location of your Java installation."
106
- fi
107
-
108
- # Increase the maximum file descriptors if we can.
109
- if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then
110
- MAX_FD_LIMIT=`ulimit -H -n`
111
- if [ $? -eq 0 ] ; then
112
- if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
113
- MAX_FD="$MAX_FD_LIMIT"
114
- fi
115
- ulimit -n $MAX_FD
116
- if [ $? -ne 0 ] ; then
117
- warn "Could not set maximum file descriptor limit: $MAX_FD"
118
- fi
119
- else
120
- warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
121
- fi
122
- fi
123
-
124
- # For Darwin, add options to specify how the application appears in the dock
125
- if $darwin; then
126
- GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
127
- fi
128
-
129
- # For Cygwin or MSYS, switch paths to Windows format before running java
130
- if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then
131
- APP_HOME=`cygpath --path --mixed "$APP_HOME"`
132
- CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
133
-
134
- JAVACMD=`cygpath --unix "$JAVACMD"`
135
-
136
- # We build the pattern for arguments to be converted via cygpath
137
- ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
138
- SEP=""
139
- for dir in $ROOTDIRSRAW ; do
140
- ROOTDIRS="$ROOTDIRS$SEP$dir"
141
- SEP="|"
142
- done
143
- OURCYGPATTERN="(^($ROOTDIRS))"
144
- # Add a user-defined pattern to the cygpath arguments
145
- if [ "$GRADLE_CYGPATTERN" != "" ] ; then
146
- OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
147
- fi
148
- # Now convert the arguments - kludge to limit ourselves to /bin/sh
149
- i=0
150
- for arg in "$@" ; do
151
- CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
152
- CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
153
-
154
- if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
155
- eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
156
- else
157
- eval `echo args$i`="\"$arg\""
158
- fi
159
- i=`expr $i + 1`
160
- done
161
- case $i in
162
- 0) set -- ;;
163
- 1) set -- "$args0" ;;
164
- 2) set -- "$args0" "$args1" ;;
165
- 3) set -- "$args0" "$args1" "$args2" ;;
166
- 4) set -- "$args0" "$args1" "$args2" "$args3" ;;
167
- 5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
168
- 6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
169
- 7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
170
- 8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
171
- 9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
172
- esac
173
- fi
174
-
175
- # Escape application args
176
- save () {
177
- for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
178
- echo " "
179
- }
180
- APP_ARGS=`save "$@"`
181
-
182
- # Collect all arguments for the java command, following the shell quoting and substitution rules
183
- eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
184
-
185
- exec "$JAVACMD" "$@"
package/gradlew.bat DELETED
@@ -1,89 +0,0 @@
1
- @rem
2
- @rem Copyright 2015 the original author or authors.
3
- @rem
4
- @rem Licensed under the Apache License, Version 2.0 (the "License");
5
- @rem you may not use this file except in compliance with the License.
6
- @rem You may obtain a copy of the License at
7
- @rem
8
- @rem https://www.apache.org/licenses/LICENSE-2.0
9
- @rem
10
- @rem Unless required by applicable law or agreed to in writing, software
11
- @rem distributed under the License is distributed on an "AS IS" BASIS,
12
- @rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- @rem See the License for the specific language governing permissions and
14
- @rem limitations under the License.
15
- @rem
16
-
17
- @if "%DEBUG%" == "" @echo off
18
- @rem ##########################################################################
19
- @rem
20
- @rem Gradle startup script for Windows
21
- @rem
22
- @rem ##########################################################################
23
-
24
- @rem Set local scope for the variables with windows NT shell
25
- if "%OS%"=="Windows_NT" setlocal
26
-
27
- set DIRNAME=%~dp0
28
- if "%DIRNAME%" == "" set DIRNAME=.
29
- set APP_BASE_NAME=%~n0
30
- set APP_HOME=%DIRNAME%
31
-
32
- @rem Resolve any "." and ".." in APP_HOME to make it shorter.
33
- for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
34
-
35
- @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
36
- set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
37
-
38
- @rem Find java.exe
39
- if defined JAVA_HOME goto findJavaFromJavaHome
40
-
41
- set JAVA_EXE=java.exe
42
- %JAVA_EXE% -version >NUL 2>&1
43
- if "%ERRORLEVEL%" == "0" goto execute
44
-
45
- echo.
46
- echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
47
- echo.
48
- echo Please set the JAVA_HOME variable in your environment to match the
49
- echo location of your Java installation.
50
-
51
- goto fail
52
-
53
- :findJavaFromJavaHome
54
- set JAVA_HOME=%JAVA_HOME:"=%
55
- set JAVA_EXE=%JAVA_HOME%/bin/java.exe
56
-
57
- if exist "%JAVA_EXE%" goto execute
58
-
59
- echo.
60
- echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
61
- echo.
62
- echo Please set the JAVA_HOME variable in your environment to match the
63
- echo location of your Java installation.
64
-
65
- goto fail
66
-
67
- :execute
68
- @rem Setup the command line
69
-
70
- set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
71
-
72
-
73
- @rem Execute Gradle
74
- "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
75
-
76
- :end
77
- @rem End local scope for the variables with windows NT shell
78
- if "%ERRORLEVEL%"=="0" goto mainEnd
79
-
80
- :fail
81
- rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
82
- rem the _cmd.exe /c_ return code!
83
- if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
84
- exit /b 1
85
-
86
- :mainEnd
87
- if "%OS%"=="Windows_NT" endlocal
88
-
89
- :omega