address-client 3.2.103 → 3.2.104-ls

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.2.103",
3
+ "version": "3.2.104-ls",
4
4
  "description": "地址管理前台组件",
5
5
  "author": "wanbochao",
6
6
  "license": "ISC",
package/src/address.js CHANGED
@@ -1,74 +1,74 @@
1
- import Vue from 'vue'
2
- import App from './App'
3
- import { all } from 'vue-client'
4
- // import 'babel-polyfill'
5
-
6
- export default function (filiale) {
7
- Vue.config.silent = false
8
- /** ********************** pc端 *********************** **/
9
- Vue.component('address-select', (resolve) => { require(['./components/AddressModel'], resolve) })
10
- Vue.component('address-model', (resolve) => { require(['./components/AddressModel'], resolve) })
11
- // 添加地址
12
- Vue.component('address-add-address', (resolve) => { require(['./components/AddressAddAddress'], resolve) })
13
- // 地址树
14
- Vue.component('address-tree', (resolve) => { require(['./components/AddressTree'], resolve) })
15
- //小区树
16
- Vue.component('area-tree', (resolve) => { require(['./components/AreaTree'], resolve) })
17
- /** ********************** 新地址管理 *********************** **/
18
- //地址建档
19
- Vue.component('address-files', (resolve) => { require(['./components/AddressFiles'], resolve) })
20
- //小区建档
21
- Vue.component('area-files', (resolve) => { require(['./components/AreaFiles'], resolve) })
22
- //街道列表
23
- Vue.component('street-list', (resolve) => { require(['./components/StreetList'], resolve) })
24
- //省市区列表
25
- Vue.component('city-list', (resolve) => { require(['./components/CityList'], resolve) })
26
- //街道管理(包含街道,省区县的添加)
27
- Vue.component('city-manage', (resolve) => { require(['./components/CityManage'], resolve) })
28
- //街道区县添加
29
- Vue.component('add-street-pcd', (resolve) => { require(['./components/AddStreetOrPcd'], resolve) })
30
- //小区列表
31
- Vue.component('area-list', (resolve) => { require(['./components/AreaList'], resolve) })
32
- //小区管理(包含修改表具,小区的添加)
33
- Vue.component('area-manage', (resolve) => { require(['./components/AreaManage'], resolve) })
34
- // 楼栋列表
35
- Vue.component('building-list', (resolve) => { require(['./components/BuildingList'], resolve) })
36
- //单位管理()
37
- Vue.component('company-manage', (resolve) => { require(['./components/CompanyManage'], resolve) })
38
- //小区添加
39
- Vue.component('add-area-msg', (resolve) => { require(['./components/AddAreaMsg'], resolve) })
40
- //地址管理父组件
41
- Vue.component('address-manage', (resolve) => { require(['./components/AddressManage'], resolve) })
42
- //地址列表
43
- Vue.component('address-list', (resolve) => { require(['./components/AddressList'], resolve) })
44
- //地址管理
45
- Vue.component('user-address', (resolve) => { require(['./components/UserAddress'], resolve) })
46
- //地址变更记录
47
- Vue.component('user-address-change', (resolve) => { require(['./components/UserAddressChange'], resolve) })
48
- //批量置换接单
49
- Vue.component('batch_orders', (resolve) => { require(['./components/selectAddress/BatchOrders'], resolve) })
50
- // 地址管理琉璃
51
- Vue.component('address-list-liuli', (resolve) => { require(['./components/AddressListLiuLi'], resolve) })
52
- // 街道办管理
53
- Vue.component('street-manage-manage', (resolve) => { require(['./components/StreetManage'], resolve) })
54
- // 街道办列表
55
- Vue.component('street-manage-list', (resolve) => { require(['./components/StreetManageList'], resolve) })
56
- // 新增/修改 街道办信息
57
- Vue.component('add-street-manage-msg', (resolve) => { require(['./components/AddStreetManageMsg'], resolve) })
58
- // 社区管理
59
- Vue.component('community-manage', (resolve) => { require(['./components/CommunityManage'], resolve) })
60
- // 街道办列表
61
- Vue.component('community-manage-list', (resolve) => { require(['./components/CommunityManageList'], resolve) })
62
- // 新增/修改 街道办信息
63
- Vue.component('add-community-manage-msg', (resolve) => { require(['./components/AddCommunityManageMsg'], resolve) })
64
- // 新增/修改 街道办信息
65
- Vue.component('community-area-list', (resolve) => { require(['./components/CommunityAreaList'], resolve) })
66
-
67
- // 分公司特殊页面注册替换
68
- if (filiale) {
69
- let filialeComp = require(`./filiale/${filiale}/sale`).specialComp
70
- for (let key in filialeComp) {
71
- Vue.component(key, filialeComp[key])
72
- }
73
- }
74
- }
1
+ import Vue from 'vue'
2
+ import App from './App'
3
+ import { all } from 'vue-client'
4
+ // import 'babel-polyfill'
5
+
6
+ export default function (filiale) {
7
+ Vue.config.silent = false
8
+ /** ********************** pc端 *********************** **/
9
+ Vue.component('address-select', (resolve) => { require(['./components/AddressModel'], resolve) })
10
+ Vue.component('address-model', (resolve) => { require(['./components/AddressModel'], resolve) })
11
+ // 添加地址
12
+ Vue.component('address-add-address', (resolve) => { require(['./components/AddressAddAddress'], resolve) })
13
+ // 地址树
14
+ Vue.component('address-tree', (resolve) => { require(['./components/AddressTree'], resolve) })
15
+ //小区树
16
+ Vue.component('area-tree', (resolve) => { require(['./components/AreaTree'], resolve) })
17
+ /** ********************** 新地址管理 *********************** **/
18
+ //地址建档
19
+ Vue.component('address-files', (resolve) => { require(['./components/AddressFiles'], resolve) })
20
+ //小区建档
21
+ Vue.component('area-files', (resolve) => { require(['./components/AreaFiles'], resolve) })
22
+ //街道列表
23
+ Vue.component('street-list', (resolve) => { require(['./components/StreetList'], resolve) })
24
+ //省市区列表
25
+ Vue.component('city-list', (resolve) => { require(['./components/CityList'], resolve) })
26
+ //街道管理(包含街道,省区县的添加)
27
+ Vue.component('city-manage', (resolve) => { require(['./components/CityManage'], resolve) })
28
+ //街道区县添加
29
+ Vue.component('add-street-pcd', (resolve) => { require(['./components/AddStreetOrPcd'], resolve) })
30
+ //小区列表
31
+ Vue.component('area-list', (resolve) => { require(['./components/AreaList'], resolve) })
32
+ //小区管理(包含修改表具,小区的添加)
33
+ Vue.component('area-manage', (resolve) => { require(['./components/AreaManage'], resolve) })
34
+ // 楼栋列表
35
+ Vue.component('building-list', (resolve) => { require(['./components/BuildingList'], resolve) })
36
+ //单位管理()
37
+ Vue.component('company-manage', (resolve) => { require(['./components/CompanyManage'], resolve) })
38
+ //小区添加
39
+ Vue.component('add-area-msg', (resolve) => { require(['./components/AddAreaMsg'], resolve) })
40
+ //地址管理父组件
41
+ Vue.component('address-manage', (resolve) => { require(['./components/AddressManage'], resolve) })
42
+ //地址列表
43
+ Vue.component('address-list', (resolve) => { require(['./components/AddressList'], resolve) })
44
+ //地址管理
45
+ Vue.component('user-address', (resolve) => { require(['./components/UserAddress'], resolve) })
46
+ //地址变更记录
47
+ Vue.component('user-address-change', (resolve) => { require(['./components/UserAddressChange'], resolve) })
48
+ //批量置换接单
49
+ Vue.component('batch_orders', (resolve) => { require(['./components/selectAddress/BatchOrders'], resolve) })
50
+ // 地址管理琉璃
51
+ Vue.component('address-list-liuli', (resolve) => { require(['./components/AddressListLiuLi'], resolve) })
52
+ // 街道办管理
53
+ Vue.component('street-manage-manage', (resolve) => { require(['./components/StreetManage'], resolve) })
54
+ // 街道办列表
55
+ Vue.component('street-manage-list', (resolve) => { require(['./components/StreetManageList'], resolve) })
56
+ // 新增/修改 街道办信息
57
+ Vue.component('add-street-manage-msg', (resolve) => { require(['./components/AddStreetManageMsg'], resolve) })
58
+ // 社区管理
59
+ Vue.component('community-manage', (resolve) => { require(['./components/CommunityManage'], resolve) })
60
+ // 街道办列表
61
+ Vue.component('community-manage-list', (resolve) => { require(['./components/CommunityManageList'], resolve) })
62
+ // 新增/修改 街道办信息
63
+ Vue.component('add-community-manage-msg', (resolve) => { require(['./components/AddCommunityManageMsg'], resolve) })
64
+ // 新增/修改 街道办信息
65
+ Vue.component('community-area-list', (resolve) => { require(['./components/CommunityAreaList'], resolve) })
66
+
67
+ // 分公司特殊页面注册替换
68
+ if (filiale) {
69
+ let filialeComp = require(`./filiale/${filiale}/sale`).specialComp
70
+ for (let key in filialeComp) {
71
+ Vue.component(key, filialeComp[key])
72
+ }
73
+ }
74
+ }
@@ -245,6 +245,7 @@
245
245
  async confirm(){
246
246
  if(this.areatype=='省市区'){
247
247
  await this.savepcd()
248
+ this.$refs.addpcd.search()
248
249
  }
249
250
  if(this.areatype=='街道'){
250
251
  await this.savestreet()
@@ -90,6 +90,7 @@
90
90
  this.$showAlert('该区县下已有街道信息,无法删除!','warning',1000)
91
91
  }else{
92
92
  this.$resetdelete('rs/entity/t_pcd', {id: id}, {resolveMsg: '删除成功', rejectMsg: '删除失败'}).then((res) => {
93
+ this.search()
93
94
  this.$dispatch('cancel')
94
95
  })
95
96
  }
@@ -1,78 +1,78 @@
1
- <template>
2
- <div id="unit" class="flex-row " :class="{'binary':communityManageShow == 0}">
3
- <div :class="{'basic-main':communityManageShow == 0,'binary-left':communityManageShow != 0}">
4
- <community-manage-list @child-dblclick="selected"
5
- :f_filialeids.sync="f_filialeids"
6
- v-ref:communitymanage>
7
- </community-manage-list>
8
- </div>
9
- <div v-show="communityManageShow == 1" class="binary-right">
10
- <add-community-manage-msg v-ref:addcommunitymanage
11
- :f_filialeids.sync="f_filialeids">
12
- </add-community-manage-msg>
13
- </div>
14
- <div v-show="communityManageShow == 2" style="width: 60%" class="binary-right">
15
- <div class="flex">
16
- <community-area-list v-if="communityid" :communityid="communityid"></community-area-list>
17
- </div>
18
- </div>
19
- </div>
20
- </template>
21
-
22
- <script>
23
- export default {
24
- title: '社区管理',
25
- components: {},
26
- data () {
27
- return {
28
- // 分公司id串
29
- f_filialeids: this.$login.f.orgid,
30
- communityid: null,
31
- communityManageShow: 0
32
- }
33
- },
34
- props: {},
35
- methods: {
36
- selected (obj) {
37
- if (obj && obj.id) {
38
- if (obj.f_filialeid != this.f_filialeids) {
39
- this.refresh()
40
- return
41
- }
42
- this.communityManageShow = 1
43
- this.$refs.addcommunitymanage.businesstype = '修改' + obj.f_community_name
44
- this.$refs.addcommunitymanage.communitymodel = Object.assign({}, obj)
45
- }
46
- },
47
- refresh () {
48
- this.communityManageShow = 0
49
- this.$refs.communitymanage.$refs.paged.$refs.cri.search()
50
- }
51
- },
52
- events: {
53
- 'shouAllArea' (row) {
54
- this.style = 'col-sm-3 form-group'
55
- this.communityManageShow = 2
56
- this.communityid = row.id
57
- },
58
- 'add' (areatype) {
59
- this.style = 'col-sm-3 '
60
- this.communityManageShow = 1
61
- this.$refs.addcommunitymanage.businesstype = '新增'
62
- this.$refs.addcommunitymanage.clearData()
63
- },
64
- 'confirm' () {
65
- this.style = 'col-sm-2 '
66
- this.refresh()
67
- },
68
- 'cancel' () {
69
- this.style = 'col-sm-2 '
70
- this.communityManageShow = 0
71
- this.communityid = null
72
- this.$refs.communitymanage.$refs.paged.$refs.cri.search()
73
- }
74
- }
75
- }
76
- </script>
77
-
78
-
1
+ <template>
2
+ <div id="unit" class="flex-row " :class="{'binary':communityManageShow == 0}">
3
+ <div :class="{'basic-main':communityManageShow == 0,'binary-left':communityManageShow != 0}">
4
+ <community-manage-list @child-dblclick="selected"
5
+ :f_filialeids.sync="f_filialeids"
6
+ v-ref:communitymanage>
7
+ </community-manage-list>
8
+ </div>
9
+ <div v-show="communityManageShow == 1" class="binary-right">
10
+ <add-community-manage-msg v-ref:addcommunitymanage
11
+ :f_filialeids.sync="f_filialeids">
12
+ </add-community-manage-msg>
13
+ </div>
14
+ <div v-show="communityManageShow == 2" style="width: 60%" class="binary-right">
15
+ <div class="flex">
16
+ <community-area-list v-if="communityid" :communityid="communityid"></community-area-list>
17
+ </div>
18
+ </div>
19
+ </div>
20
+ </template>
21
+
22
+ <script>
23
+ export default {
24
+ title: '社区管理',
25
+ components: {},
26
+ data () {
27
+ return {
28
+ // 分公司id串
29
+ f_filialeids: this.$login.f.orgid,
30
+ communityid: null,
31
+ communityManageShow: 0
32
+ }
33
+ },
34
+ props: {},
35
+ methods: {
36
+ selected (obj) {
37
+ if (obj && obj.id) {
38
+ if (obj.f_filialeid != this.f_filialeids) {
39
+ this.refresh()
40
+ return
41
+ }
42
+ this.communityManageShow = 1
43
+ this.$refs.addcommunitymanage.businesstype = '修改' + obj.f_community_name
44
+ this.$refs.addcommunitymanage.communitymodel = Object.assign({}, obj)
45
+ }
46
+ },
47
+ refresh () {
48
+ this.communityManageShow = 0
49
+ this.$refs.communitymanage.$refs.paged.$refs.cri.search()
50
+ }
51
+ },
52
+ events: {
53
+ 'shouAllArea' (row) {
54
+ this.style = 'col-sm-3 form-group'
55
+ this.communityManageShow = 2
56
+ this.communityid = row.id
57
+ },
58
+ 'add' (areatype) {
59
+ this.style = 'col-sm-3 '
60
+ this.communityManageShow = 1
61
+ this.$refs.addcommunitymanage.businesstype = '新增'
62
+ this.$refs.addcommunitymanage.clearData()
63
+ },
64
+ 'confirm' () {
65
+ this.style = 'col-sm-2 '
66
+ this.refresh()
67
+ },
68
+ 'cancel' () {
69
+ this.style = 'col-sm-2 '
70
+ this.communityManageShow = 0
71
+ this.communityid = null
72
+ this.$refs.communitymanage.$refs.paged.$refs.cri.search()
73
+ }
74
+ }
75
+ }
76
+ </script>
77
+
78
+
@@ -1,9 +1,9 @@
1
- // 添加小区管理
2
- import Vue from 'vue'
3
-
4
- let specialComp = {
5
- 'area-list': (resolve) => { require(['./AreaList'], resolve) },
6
- // 添加小区
7
- 'add-area-msg': (resolve) => { require(['./AddAreaMsg'], resolve) }
8
- }
9
- exports.specialComp = specialComp
1
+ // 添加小区管理
2
+ import Vue from 'vue'
3
+
4
+ let specialComp = {
5
+ 'area-list': (resolve) => { require(['./AreaList'], resolve) },
6
+ // 添加小区
7
+ 'add-area-msg': (resolve) => { require(['./AddAreaMsg'], resolve) }
8
+ }
9
+ exports.specialComp = specialComp
@@ -1,416 +0,0 @@
1
- <template>
2
- <div class="flex" @keyup.enter="search">
3
- <criteria-paged :model="model" v-ref:paged>
4
- <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
5
- <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
6
- <div class="row">
7
- <div :class="$parent.$parent.style">
8
- <label class="font_normal_body">组织机构</label>
9
- <res-select restype='organization'
10
- @res-select="$parent.$parent.getorg"
11
- is-mul="false"
12
- :initresid='$parent.$parent.curorgid'>
13
- </res-select>
14
- </div>
15
- <div :class="$parent.$parent.style" v-if="!$parent.$parent.$parent.areaShow">
16
- <label class="font_normal_body">小区编号</label>
17
- <input type="text" class="input_search" style="width:60%" v-model="model.f_area_id"
18
- condition="f_area_id = '{}'" placeholder="小区编号"/>
19
- </div>
20
- <div :class="$parent.$parent.style" v-if="false">
21
- <label class="font_normal_body">省&emsp;&emsp;份</label>
22
- <input type="text" class="input_search" style="width:60%" v-model="model.f_province"
23
- condition="f_province like '%{}%'" placeholder="省份"/>
24
- </div>
25
- <!--<div :class="$parent.$parent.style" v-if="!$parent.$parent.$parent.areaShow">-->
26
- <div :class="$parent.$parent.style" v-if="false">
27
- <label class="font_normal_body">城&emsp;&emsp;市</label>
28
- <input type="text" class="input_search" style="width:60%" v-model="model.f_city"
29
- condition="f_city like '%{}%'" placeholder="城市"/>
30
- </div>
31
- <div :class="$parent.$parent.style" v-if="!$parent.$parent.$parent.areaShow">
32
- <label class="font_normal_body">区&emsp;&emsp;县</label>
33
- <input type="text" class="input_search" style="width:60%" v-model="model.f_district"
34
- condition="f_district like '%{}%'" placeholder="区县"/>
35
- </div>
36
- <div :class="$parent.$parent.style" v-if="!$parent.$parent.$parent.areaShow">
37
- <label class="font_normal_body">街道/乡镇</label>
38
- <input type="text" class="input_search" style="width:60%" v-model="model.f_street"
39
- condition="f_street like '%{}%'" placeholder="街道/乡镇"/>
40
- </div>
41
- <div class="col-sm-4 form-group button-range">
42
- <button class="button_search button_spacing" @click="search()" >查询</button>
43
- <button class="button_search button_spacing" @click="$parent.$parent.batchDelete()">批量删除</button>
44
- <button v-if="!$parent.$parent.f_special" class="button_new button_spacing" style="width: max-content;" @click="$parent.$parent.add('小区')">添加小区</button>
45
- <button v-if="$parent.$parent.f_special"class="button_new button_spacing" style="width: max-content;" @click="$parent.$parent.add('单位')">添加单位</button>
46
- <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
47
- <export-excel :data="$parent.$parent.getCondition"
48
- :field="$parent.$parent.getfield"
49
- sqlurl="rs/logic/exportfile"
50
- sql-name="manage_getarealist"
51
- template-name='小区信息查询导出'
52
- :choose-col="true"></export-excel>
53
- <div style="float: right" class="button_spacing" :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}" @click="$parent.$parent.hidden()"></div>
54
- </div>
55
- </div>
56
- <div class="row" v-if="$parent.$parent.criteriaShow">
57
- <div :class="$parent.$parent.style" v-if="$parent.$parent.$parent.areaShow">
58
- <label class="font_normal_body">小区编号</label>
59
- <input type="text" class="input_search" style="width:60%" v-model="model.f_area_id"
60
- condition="f_area_id = '{}'" placeholder="小区编号"/>
61
- </div>
62
- <div :class="$parent.$parent.style" v-if="$parent.$parent.$parent.areaShow">
63
- <label class="font_normal_body">城&emsp;&emsp;市</label>
64
- <input type="text" class="input_search" style="width:60%" v-model="model.f_city"
65
- condition="f_city like '%{}%'" placeholder="城市"
66
- :size="model.f_city ? model.f_city.length*2 : 6"/>
67
- </div>
68
- <div :class="$parent.$parent.style" v-if="$parent.$parent.$parent.areaShow">
69
- <label class="font_normal_body">区&emsp;&emsp;县</label>
70
- <input type="text" class="input_search" style="width:60%" v-model="model.f_district"
71
- condition="f_district like '%{}%'" placeholder="区县"
72
- :size="model.f_district ? model.f_district.length*2 : 6"/>
73
- </div>
74
- <div :class="$parent.$parent.style" v-if="$parent.$parent.$parent.areaShow">
75
- <label class="font_normal_body">街道/乡镇</label>
76
- <input type="text" class="input_search" style="width:60%" v-model="model.f_street"
77
- condition="f_street like '%{}%'" placeholder="街道/乡镇"
78
- :size="model.f_street ? model.f_street.length*2 : 6"/>
79
- </div>
80
- <div :class="$parent.$parent.style">
81
- <label class="font_normal_body">小区名称</label>
82
- <input type="text" class="input_search" style="width:60%" v-model="model.f_residential_area"
83
- condition="f_residential_area like '%{}%'" placeholder="小区"
84
- :size="model.f_residential_area ? model.f_residential_area.length*2 : 6"/>
85
- </div>
86
- <div :class="$parent.$parent.style">
87
- <label class="font_normal_body">房屋类型</label>
88
- <v-select :options='$parent.$parent.housetype' :value.sync="model.f_house_type"
89
- close-on-select condition="f_house_type='{}'"
90
- placeholder='房屋类型' v-model="model.f_house_type"></v-select>
91
- </div>
92
- <div :class="$parent.$parent.style">
93
- <label class="font_normal_body">安装位置</label>
94
- <v-select :options='$parent.$parent.position' :value.sync="model.f_position"
95
- close-on-select condition="f_position='{}'"
96
- placeholder='安装位置' v-model="model.f_position"></v-select>
97
- </div>
98
- <div :class="$parent.$parent.style">
99
- <label class="font_normal_body">&emsp;抄表员</label>
100
- <v-select :options='$parent.$parent.inputtores' :value.sync="model.f_inputtor"
101
- close-on-select condition="f_inputtor='{}'"
102
- placeholder='抄表员' v-model="model.f_inputtor"></v-select>
103
- </div>
104
- </div>
105
- </div>
106
- </criteria>
107
-
108
- <data-grid :model="model" partial='list' class="list_area table_sy" :optional="true" v-ref:grid>
109
- <template partial='head'>
110
- <th><nobr>序号</nobr></th>
111
- <th v-if="false"><nobr>省份</nobr></th>
112
- <th v-if="false"><nobr>城市</nobr></th>
113
- <th v-show="!$parent.$parent.$parent.$parent.areaShow"><nobr>区/县</nobr></th>
114
- <th><nobr>街道/乡镇</nobr></th>
115
- <!--民用小区信息开始-->
116
- <th v-if="!$parent.$parent.$parent.f_special"><nobr>小区名称</nobr></th>
117
- <th v-if="!$parent.$parent.$parent.f_special"><nobr>地址</nobr></th>
118
- <th v-if="!$parent.$parent.$parent.f_special && !$parent.$parent.$parent.$parent.areaShow"><nobr>小区备注</nobr></th>
119
- <!--民用小区信息结束-->
120
- <!--非民用单位信息开始-->
121
- <th v-if="$parent.$parent.$parent.f_special"><nobr>单位名称</nobr></th>
122
- <th v-if="$parent.$parent.$parent.f_special"><nobr>单位地址</nobr></th>
123
- <th v-if="$parent.$parent.$parent.f_special"><nobr>联系人</nobr></th>
124
- <th v-if="$parent.$parent.$parent.f_special"><nobr>联系电话</nobr></th>
125
- <!--非民用单位信息结束-->
126
- <th v-show="!$parent.$parent.$parent.$parent.areaShow"><nobr>抄表员</nobr></th>
127
- <th v-show="!$parent.$parent.$parent.$parent.areaShow"><nobr>房屋类型</nobr></th>
128
- <th v-show="!$parent.$parent.$parent.$parent.areaShow"><nobr>安装位置</nobr></th>
129
- <th v-show="!$parent.$parent.$parent.$parent.areaShow"><nobr>片区/管理站 </nobr></th>
130
- <th><nobr>操作人</nobr></th>
131
- <th><nobr>操作日期</nobr></th>
132
- <th title="该小区下现有的地址数"><nobr>地址数</nobr></th>
133
- <th title="该小区下现有的地址数"><nobr>立户合计</nobr></th>
134
- <th title="该小区下现有的地址数"><nobr>未立户合计</nobr></th>
135
- <th><nobr>操作</nobr></th>
136
- </template>
137
- <template partial='body'>
138
- <td style="text-align:center"><nobr>{{$index + 1}}</nobr></td>
139
- <td style="text-align:center" v-if="false"><nobr>{{row.f_province}}</nobr></td>
140
- <td style="text-align:center" v-if="false"><nobr>{{row.f_city}}</nobr></td>
141
- <td v-show="!$parent.$parent.$parent.$parent.areaShow" style="text-align:center"><nobr>{{row.f_district}}</nobr></td>
142
- <td style="text-align:center"><nobr>{{row.f_street}}</nobr></td>
143
- <td style="text-align:center"><nobr>{{row.f_residential_area}}</nobr></td>
144
- <td style="text-align:center"><nobr>{{row.f_area_address}}</nobr></td>
145
- <td v-show="!$parent.$parent.$parent.$parent.areaShow" style="text-align:center"><nobr>{{row.f_comments}}</nobr></td>
146
- <!--非民用单位信息开始-->
147
- <td v-if="$parent.$parent.$parent.f_special" style="text-align:center"><nobr>{{row.f_linkname}}</nobr></td>
148
- <td v-if="$parent.$parent.$parent.f_special" style="text-align:center"><nobr>{{row.f_linkphone}}</nobr></td>
149
- <!--非民用单位信息结束-->
150
- <td v-show="!$parent.$parent.$parent.$parent.areaShow" style="text-align:center"><nobr>{{row.f_inputtor}}</nobr></td>
151
- <td v-show="!$parent.$parent.$parent.$parent.areaShow" style="text-align:center"><nobr>{{row.f_house_type}}</nobr></td>
152
- <td v-show="!$parent.$parent.$parent.$parent.areaShow" style="text-align:center"><nobr>{{row.f_position}}</nobr></td>
153
- <td v-show="!$parent.$parent.$parent.$parent.areaShow" style="text-align:center"><nobr>{{row.f_slice_area}}</nobr></td>
154
- <td style="text-align:center"><nobr>{{row.f_operator}}</nobr></td>
155
- <td style="text-align:center"><nobr>{{row.f_operate_date}}</nobr></td>
156
- <td style="text-align:center"><nobr>{{row.addressnum}}</nobr></td>
157
- <td style="text-align:center"><nobr>{{row.addressnum_contract}}</nobr></td>
158
- <td style="text-align:center"><nobr>{{row.addressnum_uncontract}}</nobr></td>
159
- <td><nobr>
160
- <!--<button type="button" name="button" class="btn btn-link"
161
- @click.stop="$parent.$parent.$parent.modify(row)">修改</button>-->
162
- <button v-if="!row.addressnum>0" type="button" name="button" class="btn btn-danger"
163
- style="padding: 5px 12px"
164
- @click.stop="$parent.$parent.$parent.delete(row)">删除</button>
165
- </nobr>
166
- </td>
167
- </template>
168
- <template partial='foot'></template>
169
- </data-grid>
170
- </criteria-paged>
171
- <modal :show="showDelete" large backdrop="false" :width="900">
172
- <header slot="modal-header" class="modal-header">
173
- <p class="bg-info text-center" style="padding: 8px;">提示</p>
174
- </header>
175
- <article slot="modal-body" class="modal-body">
176
- <p>您一共选中{{selectDataLen}}个小区,您确定是否要删除吗?</p>
177
- </article>
178
- <footer slot="modal-footer" class="modal-footer">
179
- <button v-show="showDelete" type="button" class="button_search button_spacing" @click='confirmDelete()' :disabled='!$v.valid'>确认</button>
180
- <button v-show="showDelete" type="button" class="button_clear button_spacing" @click='cancelDelete()'>取消</button>
181
- </footer>
182
- </modal>
183
- </div>
184
- </template>
185
-
186
- <script>
187
- import { PagedList } from 'vue-client'
188
- let readyGen = async function (self) {
189
- self.getfield = self.config.excelHeaders
190
- self.search()
191
- }
192
- export default {
193
-
194
- data () {
195
- return {
196
- showDelete: false,
197
- criteriaShow: false,
198
- model: new PagedList('rs/sql/address_getarealist',20),
199
- selectDataLen: 0,
200
- addflag: false,
201
- addtitle:'',
202
- getfield: {},
203
- getRowData:[],
204
- // 公司下拉
205
- curorgid: [this.$login.f.orgid],
206
- f_orgid: '',
207
- //初始化小区数据
208
- areaslist:[],
209
- config: {
210
- // 导出列要和查询列相同
211
- excelHeaders: {
212
- 'f_district':'区/县',
213
- 'f_street':'街道名称',
214
- 'f_residential_area':'小区名称',
215
- 'f_area_address':'小区地址',
216
- 'f_comments':'小区备注',
217
- 'f_inputtor':'抄表员',
218
- 'f_house_type':'房屋类型',
219
- 'f_position':'安装位置',
220
- 'f_slice_area':'片区/管理站',
221
- 'f_operator':'操作人',
222
- 'f_operate_date':'操作日期',
223
- 'addressnum':'地址数',
224
- 'addressnum_contract':'立户合计',
225
- 'addressnum_uncontract':'未立户合计'
226
- }
227
- },
228
- housetype:[{label:'全部',value:''},{label: '楼房', value: '楼房'}, {label: '自建房', value: '自建房'}],
229
- position:this.$appdata.getParam('安装位置')?[{label:'全部',value:''},...this.$appdata.getParam('安装位置')]:[{label:'全部',value:''}]
230
- }
231
- },
232
- title: '小区管理',
233
- props:{
234
- f_filialeids:{
235
- type: String
236
- },
237
- style: {
238
- type: String,
239
- default: 'col-sm-2 form-group'
240
- },
241
- f_special:{
242
- type: String
243
- }
244
- },
245
- ready(){
246
- readyGen(this)
247
-
248
- },
249
- methods: {
250
- hidden() {
251
- this.criteriaShow = !this.criteriaShow
252
- },
253
- search() {
254
- this.$refs.paged.$refs.cri.search()
255
- },
256
-
257
- async delete(row){
258
- if(row.id >= 0){
259
- var id = row.id
260
- let useraredss = await this.$resetpost('rs/sql/address_singleTable',
261
- {data: {
262
- items: 'f_residential_area_id',
263
- tablename: 't_user_address',
264
- condition: `f_residential_area_id='${id}'`}
265
- },
266
- {resolveMsg: null, rejectMsg: null})
267
- if(useraredss.data.length>0){
268
- this.$showAlert('该小区下已有地址信息,无法删除!','warning',1000)
269
- }else{
270
- this.$resetdelete('rs/entity/t_area', {id: id}, {resolveMsg: '删除成功', rejectMsg: '删除失败'}).then((res) => {
271
- this.$dispatch('cancel')
272
- })
273
- }
274
- }
275
- },
276
- add(val){
277
- if (this.f_filialeids) {
278
- this.$refs.paged.$refs.grid.selectStore.selected = null
279
- this.$dispatch('add')
280
- } else {
281
- this.$showAlert('请先选择左上角的所在分公司', 'warning', 2000)
282
- }
283
- },
284
- modify(val){
285
- this.$refs.paged.$refs.grid.selectStore.selected = null
286
- this.$dispatch('modify',val)
287
- },
288
- selfSearch (args) {
289
-
290
- if (!this.f_orgid) {
291
- this.getorg([this.$login.f.orgid])
292
- }
293
- if(this.f_special){
294
- args.condition = `${args.condition} and s.f_special='1' and s.f_filialeid = '${this.f_filialeids}'`
295
- }else{
296
- args.condition = `${args.condition} and s.f_filialeid = ${this.f_orgid}`
297
- }
298
- this.model.search(args.condition, args.model)
299
- },
300
- //清空
301
- clear(){
302
- this.$refs.paged.$refs.cri.model = {}
303
- },
304
- getorg (val) {
305
- this.f_orgid = this.$login.convertToIn(val)
306
- this.f_filialeids = val[0]
307
- },
308
- async batchDelete () {
309
- let flag = true
310
- if (this.f_filialeids) {
311
- if (this.$refs.paged.$refs.grid.getRowData().length != 0) {
312
- // 获取要批量删除的小区数据
313
- this.getRowData = this.$refs.paged.$refs.grid.getRowData()
314
- this.getRowData.forEach((row,n) => {
315
- console.log(JSON.stringify(row) + '==========')
316
- if (row.addressnum > 0 ) {
317
- this.$showAlert('您所选择的小区下已有地址信息,无法删除!','warning',2000)
318
- this.selectDataLen = 0
319
- flag = false
320
- }
321
- })
322
- if(flag){
323
- this.selectDataLen = this.getRowData.length
324
- console.log(this.selectDataLen + '-----------------------')
325
- this.showDelete = true
326
- }
327
- } else {
328
- this.$showAlert('请至少选择一项!', 'warning', 2000)
329
- }
330
- }else {
331
- this.$showAlert('请先选择左上角的所在分公司!', 'warning', 2000)
332
- }
333
- },
334
- confirmDelete () {
335
- let msg = {
336
- resolveMsg: '批量删除成功!',
337
- rejectMsg: '批量删除失败!'
338
- }
339
- let oldAreaIds = this.getRowData
340
- console.log('所选中的小区信息:=======' + JSON.stringify(oldAreaIds))
341
- this.$resetpost('rs/logic/batchDelete',{
342
- data:{
343
- oldAreaIds:oldAreaIds,
344
- f_operator: this.$login.f.name,
345
- f_operatorid: this.$login.f.id,
346
- f_orgid: this.$login.f.orgid,
347
- f_orgname: this.$login.f.orgs,
348
- f_depid: this.$login.f.depids,
349
- f_depname: this.$login.f.deps
350
- }
351
- },msg)
352
- this.$refs.paged.$refs.grid.selectInit()
353
- this.$refs.paged.$refs.cri.search()
354
- this.showDelete = false
355
- },
356
- cancelDelete () {
357
- this.$refs.paged.$refs.grid.selectInit()
358
- this.$refs.paged.$refs.cri.search()
359
- this.showDelete = false
360
- },
361
- // areaChange(val){
362
- // console.log("小区变化",val)
363
- // let selectArea // 选中的小区数据
364
- // for (let row of this.areaslist) {
365
- // if (val == row.value) {
366
- // selectArea = row.data
367
- // break
368
- // }
369
- // }
370
- // if (selectArea) {
371
- // this.areamodel.f_residential_area_id = selectArea.id
372
- // this.areamodel.f_pcd = selectArea.f_pcd
373
- // this.areamodel.f_pcd_id = selectArea.f_pcd_id
374
- // this.areamodel.f_street = selectArea.f_street
375
- // this.areamodel.f_street_id = selectArea.f_street_id
376
- // this.areamodel.f_slice_area = selectArea.f_slice_area
377
- // this.areamodel.f_residential_area = selectArea.f_residential_area
378
- // }
379
- // this.$nextTick(() => {
380
- // this.$resetValidation()
381
- // })
382
- // },
383
- },
384
- watch:{
385
-
386
- },
387
- computed:{
388
- getCondition() {
389
- var condition=''
390
- if(this.f_special){
391
- condition = `${this.$refs.paged.$refs.cri.condition} and s.f_special='1' and s.f_filialeid = '${this.f_filialeids}'`
392
- }else{
393
- condition = `${this.$refs.paged.$refs.cri.condition} and s.f_filialeid = ${this.f_orgid}`
394
- }
395
- return {
396
- condition: condition
397
- }
398
- },
399
- inputtores () {
400
- // 获取抄表员
401
- let rs = new Array()
402
- if (this.$login.f.f_gasman.length > 0) {
403
- for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
404
- let temp = {
405
- label: this.$login.f.f_gasman[i].name,
406
- value: this.$login.f.f_gasman[i].name
407
- }
408
- rs.push(temp)
409
- }
410
- }
411
- return rs
412
- }
413
- }
414
-
415
- }
416
- </script>
@@ -1,12 +0,0 @@
1
- // 分公司特殊组件页面注册
2
- import Vue from "vue";
3
-
4
- let specialComp = {
5
- //地址管理父组件
6
- 'area-list':(resolve) => { require(['./AreaList'], resolve) }
7
- }
8
- exports.specialComp = specialComp
9
-
10
-
11
-
12
-