address-client 3.2.33 → 3.2.34

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,67 @@ 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
+ },
16
22
  '/rs/logic/getLogin': {
17
- target: str2
23
+ target: str3,
24
+ secure:true,
25
+ changeOrigin:true
26
+ },
27
+ '/rs/logic/getInitData': {
28
+ target: str3,
29
+ secure:true,
30
+ changeOrigin:true,
31
+ },
32
+ '/rs/logic/getSaleInitData': {
33
+ target: str3,
34
+ secure:true,
35
+ changeOrigin:true
36
+ },
37
+ '/rs/logic':{
38
+ target: str3,
39
+ secure:true,
40
+ changeOrigin:true
41
+ // target: 'http://127.0.0.1:8080'
18
42
  },
19
43
  '/rs/vue': {
20
- target: str2
44
+ target: str3,
45
+ secure:true,
46
+ changeOrigin:true
21
47
  },
22
48
  '/rs/user': {
23
- target: str2
49
+ target: str3,
50
+ secure:true,
51
+ changeOrigin:true
24
52
  },
25
53
  '/rs/db': {
26
- target: str2
54
+ target: str3,
55
+ secure:true,
56
+ changeOrigin:true
27
57
  },
28
58
  '/rs/search': {
29
- target: str2
59
+ target: str3,
60
+ secure:true,
61
+ changeOrigin:true
62
+ // target: 'http://127.0.0.1:8080'
30
63
  },
31
64
  '/rs/data': {
32
- target: str2
33
- },
34
- '/rs/logic/getInitData': {
35
- target: str2
36
- },
37
- '/rs/logic/getSaleInitData': {
38
- target: str2
65
+ target: str3,
66
+ secure:true,
67
+ changeOrigin:true
39
68
  },
40
69
  '/rs': {
41
70
  // target: 'http://192.168.50.199:8300'
42
- target: str
71
+ target: str3,
72
+ secure:true,
73
+ changeOrigin:true
43
74
  }
44
75
  }
45
76
 
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.34",
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>
@@ -261,7 +261,9 @@
261
261
  data () {
262
262
  return {
263
263
  criteriaShow: false,
264
+ // rs/sql/address_singleTableOrderBy
264
265
  model: new PagedList('rs/sql/address_getAddress',20,{tablename: `'t_user_address'`,items: `'*'`,orderitem: `'id desc'`}),
266
+ //address_getAddress params:{tablename: `'t_user_address'`,items: `'*'`,orderitem: `'id desc'`}
265
267
  config: {
266
268
  // 导出列要和查询列相同
267
269
  excelHeaders: {
@@ -398,7 +400,7 @@
398
400
  if (!this.f_orgid) {
399
401
  this.getorg([this.$login.f.orgid])
400
402
  }
401
- args.condition = `${args.condition} and a.f_filialeid = '${this.f_filialeids}'`
403
+ args.condition = `${args.condition} and f_filialeid = '${this.f_filialeids}'`
402
404
  this.model.search(args.condition, args.model)
403
405
  },
404
406
 
@@ -613,7 +615,7 @@
613
615
  },
614
616
  getCondition() {
615
617
  return {
616
- condition: `${this.$refs.paged.$refs.cri.condition}` + `and a.f_filialeid = '${this.f_filialeids}'`}
618
+ condition: `${this.$refs.paged.$refs.cri.condition}` + `and f_filialeid = '${this.f_filialeids}'`}
617
619
  }
618
620
  }
619
621
 
@@ -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,12 @@
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"
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
- />
128
+ <input type="text" style="width:auto;margin-top: -9px;margin-left: 105px" v-model="model.f_room_suffix" placeholder="特殊信息" class="input_search"/>
123
129
  </div>
124
130
  <div class="col-sm-6 form-group">
125
131
  <label class="font_normal_body">&emsp;&emsp;&nbsp;地址状态</label>
@@ -137,6 +143,13 @@
137
143
  &ensp;<span class="glyphicon glyphicon-map-marker" @click="openModal" ></span>
138
144
  </div>
139
145
 
146
+ <div v-if="!usertype" class="col-sm-12 form-group "
147
+ :class="[$v.f_address.required ? 'has-error' : 'has-success']">
148
+ <label for="f_address" class="font_normal_body">&emsp;&emsp;&nbsp;详细地址</label>
149
+ <input type="text" style="width:80%" v-model="model.f_address" class="input_search" placeholder="详细地址"
150
+ v-validate:f_address='{required: true }'/>
151
+ </div>
152
+
140
153
  <div v-if="usertype" class="col-sm-12 form-group "
141
154
  :class="[$v.f_address.required ? 'has-error' : 'has-success']">
142
155
  <label for="f_address" class="font_normal_body">&emsp;&emsp;&nbsp;详细地址</label>
@@ -187,6 +200,7 @@
187
200
  :class="[$v.f_pcd_id.required ? 'has-error' : 'has-success']">
188
201
  <label class="font_normal_body">&emsp;&emsp;&nbsp;省&ensp;市&ensp;区</label>
189
202
  <input type="text" style="width:60%" v-show="false" v-model="model.f_pcd_id"
203
+ v-validate:f_pcd_id='{required: true }'
190
204
  >
191
205
  <v-select :value.sync="model.f_pcd_id" :value-single="true"
192
206
  :options='pcdslist' placeholder='请选择'
@@ -197,6 +211,7 @@
197
211
  :class="[$v.f_street_id.required ? 'has-error' : 'has-success']">
198
212
  <label class="font_normal_body">&emsp;&emsp;&nbsp;街&emsp;&emsp;道</label>
199
213
  <input type="text" style="width:60%" v-show="false" v-model="model.f_street_id"
214
+ v-validate:f_street_id='{required: true }'
200
215
  >
201
216
  <v-select :value.sync="model.f_street_id" :value-single="true"
202
217
  :options='streetslist' placeholder='请选择'
@@ -349,7 +364,7 @@
349
364
  await self.$getConfig(self, 'UserAddress')
350
365
  console.log('原地址配置',self.config)
351
366
  console.log('获取地址配置',self.config)
352
- Object.assign(self.model, self.config)
367
+ // Object.assign(self.model, self.config)
353
368
  }
354
369
 
355
370
  export default {
@@ -392,19 +407,19 @@
392
407
  f_building: '',
393
408
  f_building_start: '',
394
409
  f_building_end: '',
395
- f_building_suffix: '',
410
+ f_building_suffix: '号楼',
396
411
  f_unit: '',
397
412
  f_unit_start: '',
398
413
  f_unit_end: '',
399
- f_unit_suffix: '',
414
+ f_unit_suffix: '单元',
400
415
  f_floor: '',
401
416
  f_floor_start: '',
402
417
  f_floor_end: '',
403
- f_floor_suffix: '',
418
+ f_floor_suffix: '',
404
419
  f_room: '',
405
420
  f_room_start: '',
406
421
  f_room_end: '',
407
- f_room_suffix: '',
422
+ f_room_suffix: '',
408
423
  //详细地址
409
424
  f_address: '',
410
425
  //单位名称
@@ -432,13 +447,24 @@
432
447
  props: ['f_filialeids', 'row','operation','usertype'],
433
448
  async ready(){
434
449
  this.initdata()
435
- getAreaConfig(this)
450
+ // getAreaConfig(this)
451
+ //打印config
452
+ console.log(this.config)
436
453
  this.model.f_building_suffix=this.config.f_building_suffix
437
454
  this.model.f_unit_suffix=this.config.f_unit_suffix
438
455
  this.model.f_floor_suffix=this.config.f_floor_suffix
439
456
  this.model.f_room_suffix=this.config.f_room_suffix
440
457
  },
441
458
  methods: {
459
+ //添加方法
460
+ add(val){
461
+ if (this.f_filialeids) {
462
+ // this.$refs.paged.$refs.grid.selectStore.selected = null
463
+ this.$dispatch('add',val)
464
+ } else {
465
+ this.$showAlert('请先选择左上角的所在分公司', 'warning', 2000)
466
+ }
467
+ },
442
468
  async sliceChange(slice){
443
469
  this.areaschoice=[]
444
470
  if(slice){
@@ -457,7 +483,8 @@
457
483
  this.areaslist = []
458
484
  // this.model.f_residential_area_id = null
459
485
  // this.model.f_residential_area = null
460
- let condition = `isnull(f_iscity,'') = isnull('${this.model.f_iscity}','') and a.f_orgid = '${this.f_filialeids}'`
486
+ // isnull(f_iscity,'') = isnull('${this.model.f_iscity}','') and
487
+ let condition = `a.f_orgid = '${this.f_filialeids}'`
461
488
  let req = await this.$resetpost('rs/sql/address_getresidential', {
462
489
  data: {
463
490
  condition: condition
@@ -472,6 +499,7 @@
472
499
  id: row.id
473
500
  })
474
501
  })
502
+ console.log("获取到的redata",redata)
475
503
  this.areaslist=redata
476
504
  },
477
505
  standardyanzheng() {
@@ -581,6 +609,14 @@
581
609
  }
582
610
  }, {resolveMsg: null, rejectMsg: '获取地址失败!'})
583
611
  let redata = []
612
+ if (req.data.length === 0){
613
+ redata.push({
614
+ label: '['+row.f_street+']'+'无',
615
+ value: '',
616
+ data: '',
617
+ id: ''
618
+ })
619
+ }
584
620
  req.data.forEach((row) => {
585
621
  redata.push({
586
622
  label: '['+row.f_street+']'+row.f_residential_area,
@@ -604,6 +640,12 @@
604
640
  }
605
641
  }, {resolveMsg: null, rejectMsg: '获取楼栋失败!'})
606
642
  let redata = []
643
+ if(req.data.length === 0){
644
+ redata.push({
645
+ label: '无',
646
+ value: ' ',
647
+ })
648
+ }
607
649
  req.data.forEach((row) => {
608
650
  redata.push({
609
651
  label: row.f_building,
@@ -671,7 +713,9 @@
671
713
  this.initpcds(` f_filialeid = '${this.f_filialeids}' and id ='${selectArea.f_pcd_id}' `)
672
714
  this.model.slice_area = selectArea.f_slice_area
673
715
  // 拼接地址
674
- this.model.f_address = `${selectArea.f_street}${selectArea.f_residential_area}`
716
+ if(selectArea.f_residential_area !== '无'){
717
+ this.model.f_address = `${selectArea.f_street}${selectArea.f_residential_area}`
718
+ }
675
719
  this.getbuildingList(`f_filialeid = '${this.f_filialeids}' and f_residential_area_id ='${selectArea.id}'`)
676
720
  }
677
721
  this.$nextTick(() => {
@@ -724,10 +768,14 @@
724
768
  console.log('批量', this.model)
725
769
  let data=Object.assign({},this.model)
726
770
  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
771
+ if ( i != ''){
772
+ if ((i+'').length == 1) {
773
+ data.f_building= data.f_building_prefix + '0' +i
774
+ } else {
775
+ data.f_building= data.f_building_prefix + '' +i
776
+ }
777
+ }else {
778
+ data.f_building = data.f_building_prefix + ''
731
779
  }
732
780
  if ((j+'').length == 1) {
733
781
  data.f_unit= data.f_unit_prefix + '0'+j
@@ -823,6 +871,7 @@
823
871
  this.model.f_slice_area = this.model.slice_area
824
872
  }
825
873
  }
874
+
826
875
  if (( this.model.f_unit+'').length == 1) {
827
876
  this.model.f_unit= '0'+ this.model.f_unit
828
877
  }
@@ -847,7 +896,7 @@
847
896
  this.model.f_pcd=this.findbyid(this.pcdslist,this.model.f_pcd_id).f_pcd
848
897
  this.model.f_street=this.findbyid(this.streetslist,this.model.f_street_id).f_street
849
898
  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) {
899
+ if (( this.$refs.f_building_id.selectedItems+'').length == 1 && this.$refs.f_building_id.selectedItems!= '无') {
851
900
  this.model.f_building= '0'+ this.$refs.f_building_id.selectedItems
852
901
  }else{
853
902
  this.model.f_building = this.$refs.f_building_id.selectedItems
@@ -857,7 +906,7 @@
857
906
  this.$showMessage('请选择楼栋数据!!!')
858
907
  return
859
908
  }
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
909
+ 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
910
  }
862
911
  await this.$resetpost('rs/logic/address_updateuseraddress', this.model)
863
912
  },
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()
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