address-client 3.0.42-aodeToV4 → 3.0.44-aodeToV4

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": "address-client",
3
- "version": "3.0.42-aodeToV4",
3
+ "version": "3.0.44-aodeToV4",
4
4
  "description": "地址管理前台组件",
5
5
  "author": "wanbochao",
6
6
  "license": "ISC",
@@ -5,17 +5,8 @@
5
5
  <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
6
6
 
7
7
  <div class="row">
8
-
9
- <div :class="$parent.$parent.style">
10
- <label class="font_normal_body">组织机构</label>
11
- <res-select
12
- restype='organization'
13
- @res-select="$parent.$parent.getorg"
14
- is-mul="false"
15
- :initresid='$parent.$parent.curorgid'
16
- >
17
- </res-select>
18
- </div>
8
+ <new-select-group :style="$parent.$parent.style" :initres="$parent.$parent.initres" :show-component="['company']" @re-res="$parent.$parent.getRes">
9
+ </new-select-group>
19
10
  <div :class="$parent.$parent.style" v-if="$parent.$parent.showrightchange">
20
11
  <label class="font_normal_body">用户编号</label>
21
12
  <input type="text" class="input_search" style="width:60%" v-model="model.f_userinfo_code" style="width:60%"
@@ -98,11 +89,11 @@
98
89
  </div>
99
90
  <div :class="$parent.$parent.style" >
100
91
  <label class="font_normal_body">特殊地址</label>
101
- <v-select :value.sync="model.f_special"
102
- v-model="model.f_special"
103
- :options='$parent.$parent.specialoptions' placeholder='请选择'
104
- condition=" {} "
105
- close-on-select></v-select>
92
+ <v-select :value.sync="model.f_special"
93
+ v-model="model.f_special"
94
+ :options='$parent.$parent.specialoptions' placeholder='请选择'
95
+ condition=" {} "
96
+ close-on-select></v-select>
106
97
  </div>
107
98
 
108
99
  </div>
@@ -169,72 +160,79 @@
169
160
  </template>
170
161
 
171
162
  <script>
172
- import { PagedList } from 'vue-client'
163
+ import { PagedList } from 'vue-client'
173
164
 
174
- export default {
175
- data () {
176
- return {
177
- iswork: false,
178
- criteriaShow: false,
179
- model: new PagedList('api/af-revenue/sql/address_getAddress',20,{tablename: `'t_user_address'`,items: `'*'`,orderitem: `'id desc'`}),
180
- addflag: false,
181
- addtitle:'',
182
- condition:'',
183
- // 公司下拉
184
- curorgid: [this.$login.f.orgid],
185
- f_orgid: '',
186
-
187
- //文件上传弹框
188
- showFile: false,
189
- showrightchange:true,
190
- specialoptions:[{label:"全部",value:""},{label:"是",value:"a.f_special ='1'"},{label:"否",value:"a.f_special is null"}]
191
- }
192
- },
193
- title: '地址列表',
194
- props:{
195
- f_filialeids:{
196
- type: String
165
+ export default {
166
+ data () {
167
+ return {
168
+ iswork: false,
169
+ criteriaShow: false,
170
+ model: new PagedList('api/af-revenue/sql/address_getAddress',20,{tablename: `'t_user_address'`,items: `'*'`,orderitem: `'id desc'`}),
171
+ addflag: false,
172
+ addtitle:'',
173
+ condition:'',
174
+ // 公司下拉
175
+ orgCondtionStr: '(' + this.$login.f.orgid + ')',
176
+ f_orgid: '',
177
+ initres: {
178
+ org:[this.$login.f.orgid],
179
+ dep:[],
180
+ user:[],
197
181
  },
198
- f_orgname:{
199
- type: String
200
- },
201
- style: {
202
- type: String,
203
- default: 'col-sm-2 '
204
- }
182
+ //文件上传弹框
183
+ showFile: false,
184
+ showrightchange:true,
185
+ specialoptions:[{label:"全部",value:""},{label:"是",value:"a.f_special ='1'"},{label:"否",value:"a.f_special is null"}]
186
+ }
187
+ },
188
+ title: '地址列表',
189
+ props:{
190
+ f_filialeids:{
191
+ type: String
205
192
  },
206
- ready(){
207
- this.search()
193
+ f_orgname:{
194
+ type: String
208
195
  },
209
- methods: {
210
- hidden() {
211
- this.criteriaShow = !this.criteriaShow
212
- },
213
- //添加方法
214
- add(val){
215
- if (this.f_filialeids) {
216
- this.$refs.paged.$refs.grid.selectStore.selected = null
217
- this.$dispatch('add',val)
218
- this.showrightchange = false;
219
- } else {
220
- this.$showAlert('请先选择左上角的所在分公司', 'warning', 2000)
221
- }
222
- },
223
- importAddress(){
224
- this.showFile = true
225
- },
226
- // 关闭文件上传对话框
227
- closeFile() {
228
- this.showFile = false
229
- // 将选的文件清空
230
- this.$refs.file.$el.querySelector('input').value = ''
231
- },
232
- //修改
233
- modify(val){
196
+ style: {
197
+ type: String,
198
+ default: 'col-sm-2 '
199
+ }
200
+ },
201
+ ready(){
202
+ this.search()
203
+ },
204
+ methods: {
205
+ hidden() {
206
+ this.criteriaShow = !this.criteriaShow
207
+ },
208
+ getRes(obj) {
209
+ this.orgCondtionStr =obj
210
+ },
211
+ //添加方法
212
+ add(val){
213
+ if (this.f_filialeids) {
234
214
  this.$refs.paged.$refs.grid.selectStore.selected = null
235
- this.$dispatch('modify',val)
236
- },
237
- async delete(row){
215
+ this.$dispatch('add',val)
216
+ this.showrightchange = false;
217
+ } else {
218
+ this.$showAlert('请先选择左上角的所在分公司', 'warning', 2000)
219
+ }
220
+ },
221
+ importAddress(){
222
+ this.showFile = true
223
+ },
224
+ // 关闭文件上传对话框
225
+ closeFile() {
226
+ this.showFile = false
227
+ // 将选的文件清空
228
+ this.$refs.file.$el.querySelector('input').value = ''
229
+ },
230
+ //修改
231
+ modify(val){
232
+ this.$refs.paged.$refs.grid.selectStore.selected = null
233
+ this.$dispatch('modify',val)
234
+ },
235
+ async delete(row){
238
236
 
239
237
  if(row.id){
240
238
  var id = row.id
@@ -242,7 +240,7 @@
242
240
  let isdelete = await this.$resetpost('api/af-revenue/sql/isDeleteAddress', {data: {f_addressid: id}},{resolveMsg: null, rejectMsg: null})
243
241
  if(userfiles.data.length){
244
242
  this.$showAlert('该地址下已有正常/待开通表具档案,无法删除!','warning',1000)
245
- return
243
+ return
246
244
  }
247
245
  if(isdelete.data.length){
248
246
  this.$showAlert('该地址下已有正在工作的置换单,无法删除!','warning',1000)
@@ -252,44 +250,39 @@
252
250
  this.$dispatch('cancel')
253
251
  })
254
252
  }
255
- },
253
+ },
256
254
 
257
- search () {
258
- this.$refs.paged.$refs.cri.search()
259
- },
255
+ search () {
256
+ this.$refs.paged.$refs.cri.search()
257
+ },
260
258
 
261
- selfSearch (args) {
262
- debugger
263
- //去除空格
264
- for(let key in args.model){
265
- if(args.model[key] instanceof String){
266
- args.model[key] = args.model[key].trim();
259
+ selfSearch (args) {
260
+ //去除空格
261
+ for(let key in args.model){
262
+ if(args.model[key] instanceof String){
263
+ args.model[key] = args.model[key].trim();
264
+ }
267
265
  }
268
- }
269
- if (!this.f_orgid) {
270
- this.getorg([this.$login.f.orgid])
271
- }
272
- console.log("xxx"+this.f_filialeids)
273
- args.condition = `${args.condition} and a.f_filialeid = '${this.f_filialeids}'`
274
- this.condition = args.condition
275
- this.model.search(args.condition, args.model)
276
- },
266
+ args.condition = `${args.condition} and a.f_filialeid in ${this.orgCondtionStr}`
267
+ this.condition = args.condition
268
+ this.model.search(args.condition, args.model)
269
+ },
277
270
 
278
- //清空
279
- clear(){
280
- this.$refs.paged.$refs.cri.model = {}
281
- },
282
- getorg (val, orgnames) {
283
- if(orgnames.length>0){
284
- this.f_orgname = orgnames[0].split(' - ')[0]
271
+ //清空
272
+ clear(){
273
+ this.$refs.paged.$refs.cri.model = {}
274
+ },
275
+ getorg (val, orgnames) {
276
+ if(orgnames.length>0){
277
+ this.f_orgname = orgnames[0].split(' - ')[0]
278
+ }
279
+ // this.f_orgid = this.$login.convertToIn(val)
280
+ // if (!this.f_orgid) {
281
+ // this.f_orgid = this.f_filialeids
282
+ // }
283
+ this.f_orgid = val[0]
284
+ this.f_filialeids = val[0]
285
285
  }
286
- // this.f_orgid = this.$login.convertToIn(val)
287
- // if (!this.f_orgid) {
288
- // this.f_orgid = this.f_filialeids
289
- // }
290
- this.f_orgid = val[0]
291
- this.f_filialeids = val[0]
292
- }
293
286
  },
294
287
  computed:{
295
288
  getCondition() {
@@ -297,7 +290,7 @@
297
290
  },
298
291
  getfield() {
299
292
  let filed =[]
300
- filed = {'f_userinfo_code': '用户编号','f_pcd': '区/县', 'f_slice_area': '片区/管理站', 'f_street': '街道名称','f_residential_area':'小区名称','f_building': '楼号','f_unit': '单元','f_floor':'楼层',
293
+ filed = {'f_userinfo_code': '用户编号','f_pcd': '区/县', 'f_slice_area': '片区/管理站', 'f_street': '街道名称','f_residential_area':'小区名称','f_building': '楼号','f_unit': '单元','f_floor':'楼层',
301
294
  'f_room': '门牌号','f_address': '详细地址','f_create_date': '时间'}
302
295
  return filed
303
296
  },
@@ -326,5 +319,5 @@
326
319
  }
327
320
  }
328
321
 
329
- }
322
+ }
330
323
  </script>
@@ -41,14 +41,15 @@
41
41
  this.$refs.addresslist.showrightchange=false;
42
42
  this.style='col-sm-3 form-group'
43
43
  if(obj.val&&obj.val.id){
44
- if (obj.val.f_filialeid != this.f_filialeids) {
45
- this.refresh()
46
- return
47
- }
44
+ // if (obj.val.f_filialeid != this.f_filialeids) {
45
+ // this.refresh()
46
+ // return
47
+ // }
48
48
  // 呼叫中心需要
49
49
  this.$dispatch('re-ref', obj.val)
50
50
  this.addressId=obj.val.id
51
51
  this.useraddressShow=true
52
+ this.f_filialeids = obj.val.f_filialeid
52
53
  this.$refs.useraddressmsg.cleardara()
53
54
  this.$refs.useraddressmsg.initdata()
54
55
  this.$refs.useraddressmsg.usertype=obj.val.f_user_type
@@ -105,10 +105,17 @@
105
105
  </v-select>
106
106
  </div>
107
107
  <div :class="$parent.$parent.style">
108
- <label class="font_normal_body">安检网格员电话</label>
109
- <input type="text" class="input_search" style="width:60%" v-model="model.f_check_phone"
110
- condition="f_check_phone like '%{}%'" placeholder="电话"
111
- :size="model.f_check_phone ? model.f_check_phone.length*2 : 6"/>
108
+ <label class="font_normal_body">上次安检网格员</label>
109
+ <v-select
110
+ :value.sync="model.f_old_check_gridman"
111
+ v-model="model.f_old_check_gridman"
112
+ :options='$parent.$parent.gridmans'
113
+ :value-single="true"
114
+ placeholder='请选择'
115
+ close-on-select
116
+ condition="f_old_check_gridman = '{}'"
117
+ :search='true'>
118
+ </v-select>
112
119
  </div>
113
120
  <div :class="$parent.$parent.style">
114
121
  <label class="font_normal_body">置换网格员</label>
@@ -124,10 +131,17 @@
124
131
  </v-select>
125
132
  </div>
126
133
  <div :class="$parent.$parent.style">
127
- <label class="font_normal_body">置换网格员电话</label>
128
- <input type="text" class="input_search" style="width:60%" v-model="model.f_replace_phone"
129
- condition="f_replace_phone like '%{}%'" placeholder="电话"
130
- :size="model.f_replace_phone ? model.f_replace_phone.length*2 : 6"/>
134
+ <label class="font_normal_body">上次置换网格员</label>
135
+ <v-select
136
+ :value.sync="model.f_old_replace_gridman"
137
+ v-model="model.f_old_replace_gridman"
138
+ :options='$parent.$parent.gridmans1'
139
+ :value-single="true"
140
+ placeholder='请选择'
141
+ close-on-select
142
+ condition="f_old_replace_gridman = '{}'"
143
+ :search='true'>
144
+ </v-select>
131
145
  </div>
132
146
  </div>
133
147
  <div class="row" v-if="$parent.$parent.criteriaShow">
@@ -145,10 +159,17 @@
145
159
  </v-select>
146
160
  </div>
147
161
  <div :class="$parent.$parent.style">
148
- <label class="font_normal_body">维修网格员电话</label>
149
- <input type="text" class="input_search" style="width:60%" v-model="model.f_repair_phone"
150
- condition="f_repair_phone like '%{}%'" placeholder="电话"
151
- :size="model.f_repair_phone ? model.f_repair_phone.length*2 : 6"/>
162
+ <label class="font_normal_body">上次维修网格员</label>
163
+ <v-select
164
+ :value.sync="model.f_old_repair_gridman"
165
+ v-model="model.f_old_repair_gridman"
166
+ :options='$parent.$parent.gridmans2'
167
+ :value-single="true"
168
+ placeholder='请选择'
169
+ close-on-select
170
+ condition="f_old_repair_gridman = '{}'"
171
+ :search='true'>
172
+ </v-select>
152
173
  </div>
153
174
  <div :class="$parent.$parent.style">
154
175
  <label class="font_normal_body">工商业网格员</label>
@@ -164,10 +185,17 @@
164
185
  </v-select>
165
186
  </div>
166
187
  <div :class="$parent.$parent.style">
167
- <label class="font_normal_body">工商业网格员电话</label>
168
- <input type="text" class="input_search" style="width:60%" v-model="model.f_industry_phone"
169
- condition="f_industry_phone like '%{}%'" placeholder="电话"
170
- :size="model.f_industry_phone ? model.f_industry_phone.length*2 : 6"/>
188
+ <label class="font_normal_body">上次工商业网格员</label>
189
+ <v-select
190
+ :value.sync="model.f_old_industry_gridman"
191
+ v-model="model.f_old_industry_gridman"
192
+ :options='$parent.$parent.gridmans3'
193
+ :value-single="true"
194
+ placeholder='请选择'
195
+ close-on-select
196
+ condition="f_old_industry_gridman = '{}'"
197
+ :search='true'>
198
+ </v-select>
171
199
  </div>
172
200
  </div>
173
201
  </div>
@@ -221,12 +249,16 @@
221
249
  <th><nobr>操作人</nobr></th>
222
250
  <th><nobr>操作日期</nobr></th>
223
251
  <th><nobr>安检网格员</nobr></th>
252
+ <th><nobr>上次安检网格员</nobr></th>
224
253
  <th><nobr>安检网格员电话</nobr></th>
225
- <th><nobr>维修网格员</nobr></th>
226
- <th><nobr>维修网格员电话</nobr></th>
227
254
  <th><nobr>置换网格员</nobr></th>
255
+ <th><nobr>上次置换网格员</nobr></th>
228
256
  <th><nobr>置换网格员电话</nobr></th>
257
+ <th><nobr>维修网格员</nobr></th>
258
+ <th><nobr>上次维修网格员</nobr></th>
259
+ <th><nobr>维修网格员电话</nobr></th>
229
260
  <th><nobr>工商业网格员</nobr></th>
261
+ <th><nobr>上次工商业网格员</nobr></th>
230
262
  <th><nobr>工商业网格员电话</nobr></th>
231
263
  <th><nobr>操作</nobr></th>
232
264
 
@@ -270,12 +302,16 @@
270
302
  <td style="text-align:center"><nobr>{{row.f_operator}}</nobr></td>
271
303
  <td style="text-align:center"><nobr>{{row.f_operate_date}}</nobr></td>
272
304
  <td style="text-align:center"><nobr>{{row.f_check_gridman}}</nobr></td>
305
+ <td style="text-align:center"><nobr>{{row.f_old_check_gridman}}</nobr></td>
273
306
  <td style="text-align:center"><nobr>{{row.f_check_phone}}</nobr></td>
274
307
  <td style="text-align:center"><nobr>{{row.f_replace_gridman}}</nobr></td>
308
+ <td style="text-align:center"><nobr>{{row.f_old_replace_gridman}}</nobr></td>
275
309
  <td style="text-align:center"><nobr>{{row.f_replace_phone}}</nobr></td>
276
310
  <td style="text-align:center"><nobr>{{row.f_repair_gridman}}</nobr></td>
311
+ <td style="text-align:center"><nobr>{{row.f_old_repair_gridman}}</nobr></td>
277
312
  <td style="text-align:center"><nobr>{{row.f_repair_phone}}</nobr></td>
278
313
  <td style="text-align:center"><nobr>{{row.f_industry_gridman}}</nobr></td>
314
+ <td style="text-align:center"><nobr>{{row.f_old_industry_gridman}}</nobr></td>
279
315
  <td style="text-align:center"><nobr>{{row.f_industry_phone}}</nobr></td>
280
316
  <td><nobr>
281
317
  <!--<button type="button" name="button" class="btn btn-link"
@@ -297,7 +333,7 @@
297
333
  </h4>
298
334
  </header>
299
335
  <article slot="modal-body" class="modal-body area-batch-gridman-body">
300
- <p class="area-batch-hint">只填写需要修改的项,未选择的列保持原数据不变。</p>
336
+ <p class="area-batch-hint">只填写需要修改的项,未选择的列保持原数据不变。选错后可点第一项「不修改」恢复为不提交该列。</p>
301
337
  <table class="area-batch-gridman-table">
302
338
  <colgroup>
303
339
  <col class="area-batch-col-label-l">
@@ -309,7 +345,7 @@
309
345
  <span v-if="batchGridmanLoading" class="area-batch-loading">加载中…</span>
310
346
  <v-select v-else
311
347
  :value.sync="batchData.f_check_gridman" :value-single="true"
312
- :options='gridmans' placeholder='不修改请留空'
348
+ :options='batchGridmanOptions' placeholder='不修改请留空'
313
349
  close-on-select @change="onBatchCheckChange">
314
350
  </v-select>
315
351
  </td>
@@ -320,7 +356,7 @@
320
356
  <span v-if="batchGridmanLoading" class="area-batch-loading">加载中…</span>
321
357
  <v-select v-else
322
358
  :value.sync="batchData.f_replace_gridman" :value-single="true"
323
- :options='gridmans1' placeholder='不修改请留空'
359
+ :options='batchGridmanOptions1' placeholder='不修改请留空'
324
360
  close-on-select @change="onBatchReplaceChange">
325
361
  </v-select>
326
362
  </td>
@@ -331,7 +367,7 @@
331
367
  <span v-if="batchGridmanLoading" class="area-batch-loading">加载中…</span>
332
368
  <v-select v-else
333
369
  :value.sync="batchData.f_repair_gridman" :value-single="true"
334
- :options='gridmans2' placeholder='不修改请留空'
370
+ :options='batchGridmanOptions2' placeholder='不修改请留空'
335
371
  close-on-select @change="onBatchRepairChange">
336
372
  </v-select>
337
373
  </td>
@@ -342,7 +378,7 @@
342
378
  <span v-if="batchGridmanLoading" class="area-batch-loading">加载中…</span>
343
379
  <v-select v-else
344
380
  :value.sync="batchData.f_industry_gridman" :value-single="true"
345
- :options='gridmans3' placeholder='不修改请留空'
381
+ :options='batchGridmanOptions3' placeholder='不修改请留空'
346
382
  close-on-select @change="onBatchIndustryChange">
347
383
  </v-select>
348
384
  </td>
@@ -414,6 +450,28 @@
414
450
  }
415
451
  return this.batchCheckitem.length
416
452
  },
453
+ /** 批量弹窗专用:首项 value 为空,选后等同「本列不参与修改」,不影响表格行内编辑的 gridmans */
454
+ // 批量弹窗:去掉 gridmans 里的「全部」首项,只保留「不修改」选项
455
+ batchGridmanOptions () {
456
+ const none = { label: '— 不修改(保持原数据)—', value: '' }
457
+ const src = this.gridmans[0] && this.gridmans[0].value === '' ? this.gridmans.slice(1) : this.gridmans
458
+ return [none, ...src]
459
+ },
460
+ batchGridmanOptions1 () {
461
+ const none = { label: '— 不修改(保持原数据)—', value: '' }
462
+ const src = this.gridmans1[0] && this.gridmans1[0].value === '' ? this.gridmans1.slice(1) : this.gridmans1
463
+ return [none, ...src]
464
+ },
465
+ batchGridmanOptions2 () {
466
+ const none = { label: '— 不修改(保持原数据)—', value: '' }
467
+ const src = this.gridmans2[0] && this.gridmans2[0].value === '' ? this.gridmans2.slice(1) : this.gridmans2
468
+ return [none, ...src]
469
+ },
470
+ batchGridmanOptions3 () {
471
+ const none = { label: '— 不修改(保持原数据)—', value: '' }
472
+ const src = this.gridmans3[0] && this.gridmans3[0].value === '' ? this.gridmans3.slice(1) : this.gridmans3
473
+ return [none, ...src]
474
+ },
417
475
  getCondition() {
418
476
  return {condition: this.condition}
419
477
  },
@@ -686,15 +744,15 @@
686
744
  if (ph) this.batchGridmanPhoneMap3[nm] = ph
687
745
  }
688
746
  })
689
- this.gridmans = arr
690
- this.gridmans1 = arr1
691
- this.gridmans2 = arr2
692
- this.gridmans3 = arr3
747
+ this.gridmans = [{ label: '全部', value: '' }, ...arr]
748
+ this.gridmans1 = [{ label: '全部', value: '' }, ...arr1]
749
+ this.gridmans2 = [{ label: '全部', value: '' }, ...arr2]
750
+ this.gridmans3 = [{ label: '全部', value: '' }, ...arr3]
693
751
  } catch (e) {
694
- this.gridmans = []
695
- this.gridmans1 = []
696
- this.gridmans2 = []
697
- this.gridmans3 = []
752
+ this.gridmans = [{ label: '全部', value: '' }]
753
+ this.gridmans1 = [{ label: '全部', value: '' }]
754
+ this.gridmans2 = [{ label: '全部', value: '' }]
755
+ this.gridmans3 = [{ label: '全部', value: '' }]
698
756
  this.batchGridmanPhoneMap = {}
699
757
  this.batchGridmanPhoneMap1 = {}
700
758
  this.batchGridmanPhoneMap2 = {}
@@ -727,6 +785,64 @@
727
785
  onBatchReplaceChange (val) { this.onBatchGridmanChange('replace', val) },
728
786
  onBatchRepairChange (val) { this.onBatchGridmanChange('repair', val) },
729
787
  onBatchIndustryChange (val) { this.onBatchGridmanChange('industry', val) },
788
+ // 判断 rowId 是否在 ids 里(统一字符串比较,防止 11434 vs "11434" 不匹配)
789
+ idInList (ids, rowId) {
790
+ return ids.some(id => String(id) === String(rowId))
791
+ },
792
+ // 按 ids 顺序从行列表中取出对应行(id 可能为数字或字符串)
793
+ pickRowsByIds (rows, ids) {
794
+ if (!rows || !ids || ids.length === 0) return []
795
+ const m = {}
796
+ rows.forEach(r => {
797
+ if (r && r.id != null) m[String(r.id)] = r
798
+ })
799
+ return ids.map(id => m[String(id)]).filter(Boolean)
800
+ },
801
+ // 批量修改前:拉取选中行的原始行(含 f_check_gridman 等)。列表接口分页,不能只用 pageSize=ids.length(会拿到前 N 条而非选中 id)
802
+ async collectOldGridmanRows (ids) {
803
+ if (!ids || ids.length === 0) return []
804
+ let got = this.model && this.model.rows ? this.pickRowsByIds(this.model.rows, ids) : []
805
+ if (got.length === ids.length) return got
806
+ try {
807
+ let http = new HttpResetClass()
808
+ const opt = { resolveMsg: null, rejectMsg: null, aoteEncrypt: this.model.aoteEncrypt, encryKey: this.model.encryKey }
809
+ const n = Math.max((this.model && this.model.count) || 0, ids.length, 50)
810
+ const url = `${this.model.url}?pageNo=1&pageSize=${n}`
811
+ const res = await http.load('POST', url, { data: this.model.params }, opt)
812
+ let list = res && res.data
813
+ if (list && !Array.isArray(list) && list.rows) list = list.rows
814
+ if (!Array.isArray(list)) return got
815
+ const full = this.pickRowsByIds(list, ids)
816
+ return full.length >= got.length ? full : got
817
+ } catch (e) {
818
+ return got
819
+ }
820
+ },
821
+ // 把「改前网格员」写入 setClause(只写 changedTypes 里的列)
822
+ appendBatchOldGridmanParts (setClause, rows, changedTypes) {
823
+ if (!changedTypes || changedTypes.length === 0) return
824
+ const typeToPair = {
825
+ check: ['f_old_check_gridman', 'f_check_gridman'],
826
+ replace: ['f_old_replace_gridman', 'f_replace_gridman'],
827
+ repair: ['f_old_repair_gridman', 'f_repair_gridman'],
828
+ industry:['f_old_industry_gridman', 'f_industry_gridman']
829
+ }
830
+ const valOf = (row, src) => (row[src] != null && row[src] !== '' ? String(row[src]) : '')
831
+ if (!rows || rows.length === 0) return
832
+ changedTypes.forEach(type => {
833
+ const pair = typeToPair[type]
834
+ if (!pair) return
835
+ const [oldCol, srcCol] = pair
836
+ if (rows.length === 1) {
837
+ setClause.push(oldCol + " = '" + this.escapeSql(valOf(rows[0], srcCol)) + "'")
838
+ } else {
839
+ const first = valOf(rows[0], srcCol)
840
+ if (rows.every(r => valOf(r, srcCol) === first)) {
841
+ setClause.push(oldCol + " = '" + this.escapeSql(first) + "'")
842
+ }
843
+ }
844
+ })
845
+ },
730
846
  // 从 v-select 取值(可能为字符串、数组、对象)
731
847
  normBatchGridmanVal (v) {
732
848
  if (v === null || v === undefined) return null
@@ -750,38 +866,44 @@
750
866
  return t === '' ? null : t
751
867
  },
752
868
  // 确认批量修改:只提交已选择的网格员字段及对应电话(前端拼接 setClause)
753
- confirmBatchModify() {
869
+ async confirmBatchModify() {
754
870
  const c = this.normBatchGridmanVal(this.batchData.f_check_gridman)
755
871
  const r = this.normBatchGridmanVal(this.batchData.f_replace_gridman)
756
872
  const rp = this.normBatchGridmanVal(this.batchData.f_repair_gridman)
757
873
  const ind = this.normBatchGridmanVal(this.batchData.f_industry_gridman)
758
874
  const parts = []
759
875
  const labels = []
876
+ // changedTypes 标记实际修改了哪几列,只对这些列写入 f_old_*
877
+ const changedTypes = []
760
878
  if (c != null) {
761
879
  parts.push("f_check_gridman = '" + this.escapeSql(c) + "'")
762
880
  parts.push("f_check_phone = '" + this.escapeSql(this.batchData.f_check_phone || '') + "'")
763
881
  labels.push('安检网格员')
882
+ changedTypes.push('check')
764
883
  }
765
884
  if (r != null) {
766
885
  parts.push("f_replace_gridman = '" + this.escapeSql(r) + "'")
767
886
  parts.push("f_replace_phone = '" + this.escapeSql(this.batchData.f_replace_phone || '') + "'")
768
887
  labels.push('置换网格员')
888
+ changedTypes.push('replace')
769
889
  }
770
890
  if (rp != null) {
771
891
  parts.push("f_repair_gridman = '" + this.escapeSql(rp) + "'")
772
892
  parts.push("f_repair_phone = '" + this.escapeSql(this.batchData.f_repair_phone || '') + "'")
773
893
  labels.push('维修网格员')
894
+ changedTypes.push('repair')
774
895
  }
775
896
  if (ind != null) {
776
897
  parts.push("f_industry_gridman = '" + this.escapeSql(ind) + "'")
777
898
  parts.push("f_industry_phone = '" + this.escapeSql(this.batchData.f_industry_phone || '') + "'")
778
899
  labels.push('工商业网格员')
900
+ changedTypes.push('industry')
779
901
  }
780
902
  if (parts.length === 0) {
781
903
  this.$showAlert('请至少选择一项要修改的网格员', 'warning', 2000)
782
904
  return
783
905
  }
784
- const setClause = parts.join(',')
906
+ const setClause = parts
785
907
 
786
908
  // 全选模式:先请求全量 id,再弹确认
787
909
  if (this.batchSelectAll) {
@@ -789,13 +911,13 @@
789
911
  this.$showAlert('查询数据已失效,请重新查询后再试', 'warning', 2000)
790
912
  return
791
913
  }
792
- this._doBatchSubmit(setClause, labels, this.model.count, true)
914
+ this._doBatchSubmit(setClause, labels, this.model.count, true, changedTypes)
793
915
  } else {
794
916
  if (this.batchCheckitem.length === 0) {
795
917
  this.$showAlert('请先选择要修改的小区', 'warning', 2000)
796
918
  return
797
919
  }
798
- this._doBatchSubmit(setClause, labels, this.batchCheckitem.length, false)
920
+ this._doBatchSubmit(setClause, labels, this.batchCheckitem.length, false, changedTypes)
799
921
  }
800
922
  },
801
923
  // SQL 字符串转义,防止注入
@@ -804,47 +926,56 @@
804
926
  return String(val).replace(/'/g, "''")
805
927
  },
806
928
  // 统一提交逻辑
807
- _doBatchSubmit(setClause, labels, count, fromAllSelect) {
808
- const payload = { ids: null, setClause: setClause }
929
+ // setClause: string[] 待更新的字段 parts,函数内部追加 f_old_* 字段后再 join
930
+ // fromAllSelect: bool 是否全选模式(需要自行拉 id + 旧数据)
931
+ // changedTypes: string[] 实际修改了哪些列(如 ['check']),只对这些列写入 f_old_*
932
+ async _doBatchSubmit(setClause, labels, count, fromAllSelect, changedTypes) {
933
+ const payload = { ids: null, setClause: '' }
809
934
  const msg = `共计修改${count}个小区,将更新:${labels.join('、')},请确认`
810
- this.$showMessage(msg, ['confirm', 'cancel']).then(async (res) => {
811
- if (res === 'confirm') {
812
- this.batchSubmitBusy = true
935
+ const confirmed = await this.$showMessage(msg, ['confirm', 'cancel'])
936
+ if (confirmed !== 'confirm') return
937
+ this.batchSubmitBusy = true
938
+ try {
939
+ if (fromAllSelect) {
940
+ if (!this.model || this.model.state !== '正确' || !this.model.count) {
941
+ this.$showAlert('查询数据已失效,请重新查询后再试', 'warning', 2000)
942
+ return
943
+ }
813
944
  try {
814
- if (fromAllSelect) {
815
- // 全选:发请求拉全量 id 用于提交
816
- try {
817
- let http = new HttpResetClass()
818
- const opt = { resolveMsg: null, rejectMsg: null, aoteEncrypt: this.model.aoteEncrypt, encryKey: this.model.encryKey }
819
- const url = `${this.model.url}?pageNo=1&pageSize=${this.model.count}`
820
- const res2 = await http.load('POST', url, { data: this.model.params }, opt)
821
- let list = res2 && res2.data
822
- if (list && !Array.isArray(list) && list.rows) list = list.rows
823
- if (Array.isArray(list) && list.length > 0) {
824
- payload.ids = list.map(r => r.id).filter(id => id != null && id !== '')
825
- }
826
- } catch (e) { /* ignore */ }
827
- if (!payload.ids || payload.ids.length === 0) {
828
- this.$showAlert('全选数据获取失败,无法提交', 'warning', 2000)
829
- return
830
- }
831
- } else {
832
- payload.ids = this.batchCheckitem
945
+ let http = new HttpResetClass()
946
+ const opt = { resolveMsg: null, rejectMsg: null, aoteEncrypt: this.model.aoteEncrypt, encryKey: this.model.encryKey }
947
+ const url = `${this.model.url}?pageNo=1&pageSize=${this.model.count}`
948
+ const res2 = await http.load('POST', url, { data: this.model.params }, opt)
949
+ let list = res2 && res2.data
950
+ if (list && !Array.isArray(list) && list.rows) list = list.rows
951
+ if (Array.isArray(list) && list.length > 0) {
952
+ payload.ids = list.map(r => r.id).filter(id => id != null && id !== '')
953
+ const targetRows = list.filter(r => this.idInList(payload.ids, r.id))
954
+ this.appendBatchOldGridmanParts(setClause, targetRows, changedTypes)
833
955
  }
834
- await this.$resetpost('api/af-revenue/logic/batchUpdateGridman', payload, {
835
- resolveMsg: '批量修改成功',
836
- rejectMsg: '批量修改失败'
837
- })
838
- this.batchModifyShow = false
839
- this.batchCheckitem = []
840
- this.batchCheckall = false
841
- this.batchSelectAll = false
842
- this.search()
843
- } finally {
844
- this.batchSubmitBusy = false
956
+ } catch (e) { /* ignore */ }
957
+ if (!payload.ids || payload.ids.length === 0) {
958
+ this.$showAlert('全选数据获取失败,无法提交', 'warning', 2000)
959
+ return
845
960
  }
961
+ } else {
962
+ payload.ids = this.batchCheckitem
963
+ const targetRows = await this.collectOldGridmanRows(this.batchCheckitem)
964
+ this.appendBatchOldGridmanParts(setClause, targetRows, changedTypes)
846
965
  }
847
- })
966
+ payload.setClause = setClause.join(',')
967
+ await this.$resetpost('api/af-revenue/logic/batchUpdateGridman', payload, {
968
+ resolveMsg: '批量修改成功',
969
+ rejectMsg: '批量修改失败'
970
+ })
971
+ this.batchModifyShow = false
972
+ this.batchCheckitem = []
973
+ this.batchCheckall = false
974
+ this.batchSelectAll = false
975
+ this.search()
976
+ } finally {
977
+ this.batchSubmitBusy = false
978
+ }
848
979
  },
849
980
  add(val){
850
981
  if (this.f_filialeids) {
File without changes
File without changes
Binary file
File without changes
Binary file
@@ -1,7 +0,0 @@
1
- distributionBase=GRADLE_USER_HOME
2
- distributionPath=wrapper/dists
3
- distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
4
- networkTimeout=10000
5
- validateDistributionUrl=true
6
- zipStoreBase=GRADLE_USER_HOME
7
- zipStorePath=wrapper/dists
package/gradlew DELETED
@@ -1,249 +0,0 @@
1
- #!/bin/sh
2
-
3
- #
4
- # Copyright © 2015-2021 the original 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 POSIX generated by Gradle.
22
- #
23
- # Important for running:
24
- #
25
- # (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is
26
- # noncompliant, but you have some other compliant shell such as ksh or
27
- # bash, then to run this script, type that shell name before the whole
28
- # command line, like:
29
- #
30
- # ksh Gradle
31
- #
32
- # Busybox and similar reduced shells will NOT work, because this script
33
- # requires all of these POSIX shell features:
34
- # * functions;
35
- # * expansions «$var», «${var}», «${var:-default}», «${var+SET}»,
36
- # «${var#prefix}», «${var%suffix}», and «$( cmd )»;
37
- # * compound commands having a testable exit status, especially «case»;
38
- # * various built-in commands including «command», «set», and «ulimit».
39
- #
40
- # Important for patching:
41
- #
42
- # (2) This script targets any POSIX shell, so it avoids extensions provided
43
- # by Bash, Ksh, etc; in particular arrays are avoided.
44
- #
45
- # The "traditional" practice of packing multiple parameters into a
46
- # space-separated string is a well documented source of bugs and security
47
- # problems, so this is (mostly) avoided, by progressively accumulating
48
- # options in "$@", and eventually passing that to Java.
49
- #
50
- # Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS,
51
- # and GRADLE_OPTS) rely on word-splitting, this is performed explicitly;
52
- # see the in-line comments for details.
53
- #
54
- # There are tweaks for specific operating systems such as AIX, CygWin,
55
- # Darwin, MinGW, and NonStop.
56
- #
57
- # (3) This script is generated from the Groovy template
58
- # https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
59
- # within the Gradle project.
60
- #
61
- # You can find Gradle at https://github.com/gradle/gradle/.
62
- #
63
- ##############################################################################
64
-
65
- # Attempt to set APP_HOME
66
-
67
- # Resolve links: $0 may be a link
68
- app_path=$0
69
-
70
- # Need this for daisy-chained symlinks.
71
- while
72
- APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path
73
- [ -h "$app_path" ]
74
- do
75
- ls=$( ls -ld "$app_path" )
76
- link=${ls#*' -> '}
77
- case $link in #(
78
- /*) app_path=$link ;; #(
79
- *) app_path=$APP_HOME$link ;;
80
- esac
81
- done
82
-
83
- # This is normally unused
84
- # shellcheck disable=SC2034
85
- APP_BASE_NAME=${0##*/}
86
- # Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
87
- APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit
88
-
89
- # Use the maximum available, or set MAX_FD != -1 to use that value.
90
- MAX_FD=maximum
91
-
92
- warn () {
93
- echo "$*"
94
- } >&2
95
-
96
- die () {
97
- echo
98
- echo "$*"
99
- echo
100
- exit 1
101
- } >&2
102
-
103
- # OS specific support (must be 'true' or 'false').
104
- cygwin=false
105
- msys=false
106
- darwin=false
107
- nonstop=false
108
- case "$( uname )" in #(
109
- CYGWIN* ) cygwin=true ;; #(
110
- Darwin* ) darwin=true ;; #(
111
- MSYS* | MINGW* ) msys=true ;; #(
112
- NONSTOP* ) nonstop=true ;;
113
- esac
114
-
115
- CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
116
-
117
-
118
- # Determine the Java command to use to start the JVM.
119
- if [ -n "$JAVA_HOME" ] ; then
120
- if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
121
- # IBM's JDK on AIX uses strange locations for the executables
122
- JAVACMD=$JAVA_HOME/jre/sh/java
123
- else
124
- JAVACMD=$JAVA_HOME/bin/java
125
- fi
126
- if [ ! -x "$JAVACMD" ] ; then
127
- die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
128
-
129
- Please set the JAVA_HOME variable in your environment to match the
130
- location of your Java installation."
131
- fi
132
- else
133
- JAVACMD=java
134
- if ! command -v java >/dev/null 2>&1
135
- then
136
- die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
137
-
138
- Please set the JAVA_HOME variable in your environment to match the
139
- location of your Java installation."
140
- fi
141
- fi
142
-
143
- # Increase the maximum file descriptors if we can.
144
- if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
145
- case $MAX_FD in #(
146
- max*)
147
- # In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
148
- # shellcheck disable=SC2039,SC3045
149
- MAX_FD=$( ulimit -H -n ) ||
150
- warn "Could not query maximum file descriptor limit"
151
- esac
152
- case $MAX_FD in #(
153
- '' | soft) :;; #(
154
- *)
155
- # In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
156
- # shellcheck disable=SC2039,SC3045
157
- ulimit -n "$MAX_FD" ||
158
- warn "Could not set maximum file descriptor limit to $MAX_FD"
159
- esac
160
- fi
161
-
162
- # Collect all arguments for the java command, stacking in reverse order:
163
- # * args from the command line
164
- # * the main class name
165
- # * -classpath
166
- # * -D...appname settings
167
- # * --module-path (only if needed)
168
- # * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables.
169
-
170
- # For Cygwin or MSYS, switch paths to Windows format before running java
171
- if "$cygwin" || "$msys" ; then
172
- APP_HOME=$( cygpath --path --mixed "$APP_HOME" )
173
- CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" )
174
-
175
- JAVACMD=$( cygpath --unix "$JAVACMD" )
176
-
177
- # Now convert the arguments - kludge to limit ourselves to /bin/sh
178
- for arg do
179
- if
180
- case $arg in #(
181
- -*) false ;; # don't mess with options #(
182
- /?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath
183
- [ -e "$t" ] ;; #(
184
- *) false ;;
185
- esac
186
- then
187
- arg=$( cygpath --path --ignore --mixed "$arg" )
188
- fi
189
- # Roll the args list around exactly as many times as the number of
190
- # args, so each arg winds up back in the position where it started, but
191
- # possibly modified.
192
- #
193
- # NB: a `for` loop captures its iteration list before it begins, so
194
- # changing the positional parameters here affects neither the number of
195
- # iterations, nor the values presented in `arg`.
196
- shift # remove old arg
197
- set -- "$@" "$arg" # push replacement arg
198
- done
199
- fi
200
-
201
-
202
- # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
203
- DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
204
-
205
- # Collect all arguments for the java command:
206
- # * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
207
- # and any embedded shellness will be escaped.
208
- # * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be
209
- # treated as '${Hostname}' itself on the command line.
210
-
211
- set -- \
212
- "-Dorg.gradle.appname=$APP_BASE_NAME" \
213
- -classpath "$CLASSPATH" \
214
- org.gradle.wrapper.GradleWrapperMain \
215
- "$@"
216
-
217
- # Stop when "xargs" is not available.
218
- if ! command -v xargs >/dev/null 2>&1
219
- then
220
- die "xargs is not available"
221
- fi
222
-
223
- # Use "xargs" to parse quoted args.
224
- #
225
- # With -n1 it outputs one arg per line, with the quotes and backslashes removed.
226
- #
227
- # In Bash we could simply go:
228
- #
229
- # readarray ARGS < <( xargs -n1 <<<"$var" ) &&
230
- # set -- "${ARGS[@]}" "$@"
231
- #
232
- # but POSIX shell has neither arrays nor command substitution, so instead we
233
- # post-process each arg (as a line of input to sed) to backslash-escape any
234
- # character that might be a shell metacharacter, then use eval to reverse
235
- # that process (while maintaining the separation between arguments), and wrap
236
- # the whole thing up as a single "set" statement.
237
- #
238
- # This will of course break if any of these variables contains a newline or
239
- # an unmatched quote.
240
- #
241
-
242
- eval "set -- $(
243
- printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" |
244
- xargs -n1 |
245
- sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' |
246
- tr '\n' ' '
247
- )" '"$@"'
248
-
249
- exec "$JAVACMD" "$@"
package/gradlew.bat DELETED
@@ -1,92 +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
- @rem This is normally unused
30
- set APP_BASE_NAME=%~n0
31
- set APP_HOME=%DIRNAME%
32
-
33
- @rem Resolve any "." and ".." in APP_HOME to make it shorter.
34
- for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
35
-
36
- @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
37
- set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
38
-
39
- @rem Find java.exe
40
- if defined JAVA_HOME goto findJavaFromJavaHome
41
-
42
- set JAVA_EXE=java.exe
43
- %JAVA_EXE% -version >NUL 2>&1
44
- if %ERRORLEVEL% equ 0 goto execute
45
-
46
- echo.
47
- echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
48
- echo.
49
- echo Please set the JAVA_HOME variable in your environment to match the
50
- echo location of your Java installation.
51
-
52
- goto fail
53
-
54
- :findJavaFromJavaHome
55
- set JAVA_HOME=%JAVA_HOME:"=%
56
- set JAVA_EXE=%JAVA_HOME%/bin/java.exe
57
-
58
- if exist "%JAVA_EXE%" goto execute
59
-
60
- echo.
61
- echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
62
- echo.
63
- echo Please set the JAVA_HOME variable in your environment to match the
64
- echo location of your Java installation.
65
-
66
- goto fail
67
-
68
- :execute
69
- @rem Setup the command line
70
-
71
- set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
72
-
73
-
74
- @rem Execute Gradle
75
- "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
76
-
77
- :end
78
- @rem End local scope for the variables with windows NT shell
79
- if %ERRORLEVEL% equ 0 goto mainEnd
80
-
81
- :fail
82
- rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
83
- rem the _cmd.exe /c_ return code!
84
- set EXIT_CODE=%ERRORLEVEL%
85
- if %EXIT_CODE% equ 0 set EXIT_CODE=1
86
- if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
87
- exit /b %EXIT_CODE%
88
-
89
- :mainEnd
90
- if "%OS%"=="Windows_NT" endlocal
91
-
92
- :omega