address-client 3.2.85 → 3.2.87

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,109 +1,109 @@
1
- <template>
2
- <div id="unit" class="flex-row" :class="{'binary':areaShow == 0}">
3
- <div :class="{'basic-main':areaShow == 0,'binary-left':areaShow != 0}">
4
- <area-list @child-dblclick="selected" v-ref:arealist :style="style" :f_filialeids.sync="f_filialeids"></area-list>
5
- </div>
6
- <div v-show="areaShow == 1" style="width: 60%" class="binary-right">
7
- <div class="flex">
8
- <add-area-msg v-ref:addareamsg :areatype="areatype" :operation="operation"
9
- :f_filialeids.sync="f_filialeids" :row="arearow"></add-area-msg>
10
- </div>
11
- </div>
12
- <div v-show="areaShow == 2" style="width: 60%" class="binary-right">
13
- <div class="flex">
14
- <area-user-list v-if="areaid" :areaid="areaid"></area-user-list>
15
- </div>
16
- </div>
17
- </div>
18
- </template>
19
-
20
- <script>
21
- export default {
22
- title: '小区管理',
23
- components: {},
24
- data () {
25
- return {
26
- // 分公司id串
27
- width: '100%',
28
- f_filialeids: this.$login.f.f_orgids,
29
- areaShow: 0,
30
- areatype: '小区',
31
- arearow: {},
32
- style: 'col-sm-2 form-group',
33
- areaid: null
34
- }
35
- },
36
- ready () {
37
-
38
- },
39
- props: {},
40
- methods: {
41
- selected (obj) {
42
- console.log('======', obj)
43
- this.style = 'col-sm-3 form-group'
44
- if (obj && obj.id) {
45
- console.log('对比分公司', obj.f_filialeid, this.f_filialeids)
46
- if (obj.f_filialeid != this.f_filialeids) {
47
- this.refresh()
48
- return
49
- }
50
- this.areaShow = 1
51
- this.$refs.addareamsg.cleardara()
52
- this.$refs.addareamsg.operation = 'modify'
53
- this.$refs.addareamsg.areatype = '小区'
54
- this.$refs.addareamsg.areamodel = Object.assign({}, obj)
55
- if (obj.f_slice_area) {
56
- this.$refs.addareamsg.areamodel.slice_area = [{
57
- name: this.$refs.addareamsg.areamodel.f_slice_area,
58
- code: this.$refs.addareamsg.areamodel.f_area_code
59
- }]
60
- }
61
- if (obj.f_meter_book != null && obj.f_meter_book != '' && obj.f_meter_book instanceof Array) {
62
- this.$refs.addareamsg.areamodel.f_meter_book = parseInt(obj.f_meter_book[0])
63
- }
64
- if (obj.f_meter_book != null && obj.f_meter_book != '' && !(obj.f_meter_book instanceof Array)) {
65
- this.$refs.addareamsg.areamodel.f_meter_book = parseInt(obj.f_meter_book)
66
- }
67
- if (obj.f_adjustable_id != null && obj.f_adjustable_id != '' && obj.f_adjustable_id instanceof Array) {
68
- this.$refs.addareamsg.areamodel.f_adjustable_id = parseInt(obj.f_adjustable_id[0])
69
- }
70
- if (obj.f_adjustable_id != null && obj.f_adjustable_id != '' && !(obj.f_adjustable_id instanceof Array)) {
71
- this.$refs.addareamsg.areamodel.f_adjustable_id = parseInt(obj.f_adjustable_id)
72
- }
73
- // this.$refs.addareamsg.initdata(obj)
74
- // this.$refs.addareamsg.initrow(obj)
75
- }
76
- },
77
- refresh () {
78
- this.areaShow = false
79
- this.$refs.arealist.$refs.paged.$refs.cri.search()
80
- }
81
- },
82
- events: {
83
- 'shouAreaAllUser' (row) {
84
- this.style = 'col-sm-3 form-group'
85
- this.areaShow = 2
86
- this.areaid = row.id
87
- },
88
- 'add'(val) {
89
- this.style = 'col-sm-3 form-group'
90
- this.areaShow = 1
91
- this.$refs.addareamsg.cleardara()
92
- this.$refs.addareamsg.operation = 'add'
93
- this.$refs.addareamsg.areatype = val
94
- this.$refs.addareamsg.initdata()
95
- },
96
- 'confirm'() {
97
- this.style = 'col-sm-2 form-group'
98
- this.areaShow = false
99
- this.$refs.arealist.$refs.paged.$refs.cri.search()
100
- },
101
- 'cancel'() {
102
- this.style = 'col-sm-2 form-group'
103
- this.$refs.arealist.$refs.paged.$refs.cri.search()
104
- this.areaShow = 0
105
- }
106
- }
107
- }
108
- </script>
109
-
1
+ <template>
2
+ <div id="unit" class="flex-row" :class="{'binary':areaShow == 0}">
3
+ <div :class="{'basic-main':areaShow == 0,'binary-left':areaShow != 0}">
4
+ <area-list @child-dblclick="selected" v-ref:arealist :style="style" :f_filialeids.sync="f_filialeids"></area-list>
5
+ </div>
6
+ <div v-show="areaShow == 1" style="width: 60%" class="binary-right">
7
+ <div class="flex">
8
+ <add-area-msg v-ref:addareamsg :areatype="areatype" :operation="operation"
9
+ :f_filialeids.sync="f_filialeids" :row="arearow"></add-area-msg>
10
+ </div>
11
+ </div>
12
+ <div v-show="areaShow == 2" style="width: 60%" class="binary-right">
13
+ <div class="flex">
14
+ <area-user-list v-if="areaid" :areaid="areaid"></area-user-list>
15
+ </div>
16
+ </div>
17
+ </div>
18
+ </template>
19
+
20
+ <script>
21
+ export default {
22
+ title: '小区管理',
23
+ components: {},
24
+ data () {
25
+ return {
26
+ // 分公司id串
27
+ width: '100%',
28
+ f_filialeids: this.$login.f.f_orgids,
29
+ areaShow: 0,
30
+ areatype: '小区',
31
+ arearow: {},
32
+ style: 'col-sm-2 form-group',
33
+ areaid: null
34
+ }
35
+ },
36
+ ready () {
37
+
38
+ },
39
+ props: {},
40
+ methods: {
41
+ selected (obj) {
42
+ console.log('======', obj)
43
+ this.style = 'col-sm-3 form-group'
44
+ if (obj && obj.id) {
45
+ console.log('对比分公司', obj.f_filialeid, this.f_filialeids)
46
+ if (obj.f_filialeid != this.f_filialeids) {
47
+ this.refresh()
48
+ return
49
+ }
50
+ this.areaShow = 1
51
+ this.$refs.addareamsg.cleardara()
52
+ this.$refs.addareamsg.operation = 'modify'
53
+ this.$refs.addareamsg.areatype = '小区'
54
+ this.$refs.addareamsg.areamodel = Object.assign({}, obj)
55
+ if (obj.f_slice_area) {
56
+ this.$refs.addareamsg.areamodel.slice_area = [{
57
+ name: this.$refs.addareamsg.areamodel.f_slice_area,
58
+ code: this.$refs.addareamsg.areamodel.f_area_code
59
+ }]
60
+ }
61
+ if (obj.f_meter_book != null && obj.f_meter_book != '' && obj.f_meter_book instanceof Array) {
62
+ this.$refs.addareamsg.areamodel.f_meter_book = parseInt(obj.f_meter_book[0])
63
+ }
64
+ if (obj.f_meter_book != null && obj.f_meter_book != '' && !(obj.f_meter_book instanceof Array)) {
65
+ this.$refs.addareamsg.areamodel.f_meter_book = parseInt(obj.f_meter_book)
66
+ }
67
+ if (obj.f_adjustable_id != null && obj.f_adjustable_id != '' && obj.f_adjustable_id instanceof Array) {
68
+ this.$refs.addareamsg.areamodel.f_adjustable_id = parseInt(obj.f_adjustable_id[0])
69
+ }
70
+ if (obj.f_adjustable_id != null && obj.f_adjustable_id != '' && !(obj.f_adjustable_id instanceof Array)) {
71
+ this.$refs.addareamsg.areamodel.f_adjustable_id = parseInt(obj.f_adjustable_id)
72
+ }
73
+ // this.$refs.addareamsg.initdata(obj)
74
+ // this.$refs.addareamsg.initrow(obj)
75
+ }
76
+ },
77
+ refresh () {
78
+ this.areaShow = false
79
+ this.$refs.arealist.$refs.paged.$refs.cri.search()
80
+ }
81
+ },
82
+ events: {
83
+ 'shouAreaAllUser' (row) {
84
+ this.style = 'col-sm-3 form-group'
85
+ this.areaShow = 2
86
+ this.areaid = row.id
87
+ },
88
+ 'add'(val) {
89
+ this.style = 'col-sm-3 form-group'
90
+ this.areaShow = 1
91
+ this.$refs.addareamsg.cleardara()
92
+ this.$refs.addareamsg.operation = 'add'
93
+ this.$refs.addareamsg.areatype = val
94
+ this.$refs.addareamsg.initdata()
95
+ },
96
+ 'confirm'() {
97
+ this.style = 'col-sm-2 form-group'
98
+ this.areaShow = false
99
+ this.$refs.arealist.$refs.paged.$refs.cri.search()
100
+ },
101
+ 'cancel'() {
102
+ this.style = 'col-sm-2 form-group'
103
+ this.$refs.arealist.$refs.paged.$refs.cri.search()
104
+ this.areaShow = 0
105
+ }
106
+ }
107
+ }
108
+ </script>
109
+
@@ -1,98 +1,98 @@
1
- <template>
2
- <div class="flex">
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="col-sm-4 form-group">
8
- <label class="font_normal_body">客户编号</label>
9
- <input type="text" class="input_search" style="width:60%" v-model="model.f_userinfo_code"
10
- condition="f_userinfo_code = '{}'" placeholder="客户编号"/>
11
- </div>
12
- <div class="col-sm-4 form-group">
13
- <label class="font_normal_body">客户名称</label>
14
- <input type="text" class="input_search" style="width:60%" v-model="model.f_user_name"
15
- condition="f_user_name like '%{}%'" placeholder="客户名称"/>
16
- </div>
17
- <div class="col-sm-4 form-group button-range">
18
- <button class="button_search button_spacing" @click="search()" >查询</button>
19
- <button class="button_clear button_spacing" @click="$parent.$parent.cancel()">返回</button>
20
- </div>
21
- </div>
22
- </div>
23
- </criteria>
24
- <data-grid :model="model" partial='list' style="overflow: auto" class="list_area table_sy" v-ref:grid>
25
- <template partial='head'>
26
- <th>
27
- <nobr>客户编号</nobr>
28
- </th>
29
- <th>
30
- <nobr>客户姓名</nobr>
31
- </th>
32
- <th>
33
- <nobr>详细地址</nobr>
34
- </th>
35
- </template>
36
- <template partial='body'>
37
- <td style="text-align:center">
38
- <nobr>{{ row.f_userinfo_code }}</nobr>
39
- </td>
40
- <td style="text-align:center">
41
- <nobr>{{ row.f_user_name }}</nobr>
42
- </td>
43
- <td style="text-align:center">
44
- <nobr>{{ row.f_address }}</nobr>
45
- </td>
46
- </template>
47
- <template partial='foot'></template>
48
- </data-grid>
49
- </criteria-paged>
50
- </div>
51
- </template>
52
-
53
- <script>
54
- import {PagedList} from 'vue-client'
55
-
56
- export default {
57
- data () {
58
- return {
59
- criteriaShow: false,
60
- model: new PagedList('rs/sql/singleTable_OrderBy', 20, {
61
- tablename: `'t_user_address ua left join t_userinfo ui on ua.f_userinfo_id = ui.f_userinfo_id'`,
62
- items: `'f_userinfo_code,f_user_name,f_address'`,
63
- orderitem: `'f_address desc'`
64
- })
65
- }
66
- },
67
- title: '地址列表',
68
- props: ['areaid'],
69
- ready () {
70
- this.search()
71
- },
72
- methods: {
73
- hidden () {
74
- this.criteriaShow = !this.criteriaShow
75
- },
76
- cancel () {
77
- this.areaid = null
78
- this.$dispatch('cancel')
79
- },
80
- search () {
81
- this.$refs.paged.$refs.cri.search()
82
- },
83
- selfSearch (args) {
84
- args.condition = args.condition + `and f_residential_area_id = '${this.areaid}'`
85
- this.model.search(args.condition, args.model)
86
- }
87
- },
88
- events: {},
89
- computed: {},
90
- watch: {
91
- 'areaid' (val) {
92
- if (val) {
93
- this.search()
94
- }
95
- }
96
- }
97
- }
98
- </script>
1
+ <template>
2
+ <div class="flex">
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="col-sm-4 form-group">
8
+ <label class="font_normal_body">客户编号</label>
9
+ <input type="text" class="input_search" style="width:60%" v-model="model.f_userinfo_code"
10
+ condition="f_userinfo_code = '{}'" placeholder="客户编号"/>
11
+ </div>
12
+ <div class="col-sm-4 form-group">
13
+ <label class="font_normal_body">客户名称</label>
14
+ <input type="text" class="input_search" style="width:60%" v-model="model.f_user_name"
15
+ condition="f_user_name like '%{}%'" placeholder="客户名称"/>
16
+ </div>
17
+ <div class="col-sm-4 form-group button-range">
18
+ <button class="button_search button_spacing" @click="search()" >查询</button>
19
+ <button class="button_clear button_spacing" @click="$parent.$parent.cancel()">返回</button>
20
+ </div>
21
+ </div>
22
+ </div>
23
+ </criteria>
24
+ <data-grid :model="model" partial='list' style="overflow: auto" class="list_area table_sy" v-ref:grid>
25
+ <template partial='head'>
26
+ <th>
27
+ <nobr>客户编号</nobr>
28
+ </th>
29
+ <th>
30
+ <nobr>客户姓名</nobr>
31
+ </th>
32
+ <th>
33
+ <nobr>详细地址</nobr>
34
+ </th>
35
+ </template>
36
+ <template partial='body'>
37
+ <td style="text-align:center">
38
+ <nobr>{{ row.f_userinfo_code }}</nobr>
39
+ </td>
40
+ <td style="text-align:center">
41
+ <nobr>{{ row.f_user_name }}</nobr>
42
+ </td>
43
+ <td style="text-align:center">
44
+ <nobr>{{ row.f_address }}</nobr>
45
+ </td>
46
+ </template>
47
+ <template partial='foot'></template>
48
+ </data-grid>
49
+ </criteria-paged>
50
+ </div>
51
+ </template>
52
+
53
+ <script>
54
+ import {PagedList} from 'vue-client'
55
+
56
+ export default {
57
+ data () {
58
+ return {
59
+ criteriaShow: false,
60
+ model: new PagedList('rs/sql/singleTable_OrderBy', 20, {
61
+ tablename: `'t_user_address ua left join t_userinfo ui on ua.f_userinfo_id = ui.f_userinfo_id'`,
62
+ items: `'f_userinfo_code,f_user_name,f_address'`,
63
+ orderitem: `'f_address desc'`
64
+ })
65
+ }
66
+ },
67
+ title: '地址列表',
68
+ props: ['areaid'],
69
+ ready () {
70
+ this.search()
71
+ },
72
+ methods: {
73
+ hidden () {
74
+ this.criteriaShow = !this.criteriaShow
75
+ },
76
+ cancel () {
77
+ this.areaid = null
78
+ this.$dispatch('cancel')
79
+ },
80
+ search () {
81
+ this.$refs.paged.$refs.cri.search()
82
+ },
83
+ selfSearch (args) {
84
+ args.condition = args.condition + `and f_residential_area_id = '${this.areaid}'`
85
+ this.model.search(args.condition, args.model)
86
+ }
87
+ },
88
+ events: {},
89
+ computed: {},
90
+ watch: {
91
+ 'areaid' (val) {
92
+ if (val) {
93
+ this.search()
94
+ }
95
+ }
96
+ }
97
+ }
98
+ </script>
@@ -1,18 +1,18 @@
1
- // 分公司特殊组件页面注册
2
- import Vue from "vue";
3
-
4
- let specialComp = {
5
- //地址管理父组件
6
- 'address-manage':(resolve) => { require(['./AddressManage'], resolve) },
7
- 'user-address': (resolve) =>{ require(['./UserAddress'], resolve) },
8
- 'add-area-msg': (resolve) =>{ require(['./AddAreaMsg'], resolve) },
9
- 'address-list': (resolve) =>{ require(['./AddressList'], resolve) },
10
- 'area-list': (resolve) =>{ require(['./AreaList'], resolve) },
11
- 'area-user-list': (resolve) =>{ require(['./AreaUserList.vue'], resolve) },
12
- 'area-manage': (resolve) =>{ require(['./AreaManage'], resolve) }
13
- }
14
- exports.specialComp = specialComp
15
-
16
-
17
-
18
-
1
+ // 分公司特殊组件页面注册
2
+ import Vue from "vue";
3
+
4
+ let specialComp = {
5
+ //地址管理父组件
6
+ 'address-manage':(resolve) => { require(['./AddressManage'], resolve) },
7
+ 'user-address': (resolve) =>{ require(['./UserAddress'], resolve) },
8
+ 'add-area-msg': (resolve) =>{ require(['./AddAreaMsg'], resolve) },
9
+ 'address-list': (resolve) =>{ require(['./AddressList'], resolve) },
10
+ 'area-list': (resolve) =>{ require(['./AreaList'], resolve) },
11
+ 'area-user-list': (resolve) =>{ require(['./AreaUserList.vue'], resolve) },
12
+ 'area-manage': (resolve) =>{ require(['./AreaManage'], resolve) }
13
+ }
14
+ exports.specialComp = specialComp
15
+
16
+
17
+
18
+
package/src/main.js CHANGED
@@ -1,22 +1,22 @@
1
- import Vue from 'vue'
2
- import App from './App'
3
- import { all } from 'vue-client'
4
- import { system } from 'system-clients'
5
- import { ldap } from 'ldap-clients'
6
- import address from './address'
7
-
8
- Vue.config.silent = true
9
-
10
- /** **************************通用组件******************************/
11
- all()
12
- address('')
13
- system(false)
14
- ldap()
15
- // sale()
16
- require('system-clients/src/styles/less/bootstrap.less')
17
-
18
-
19
- new Vue({
20
- el: 'body',
21
- components: { App }
22
- })
1
+ import Vue from 'vue'
2
+ import App from './App'
3
+ import { all } from 'vue-client'
4
+ import { system } from 'system-clients'
5
+ import { ldap } from 'ldap-clients'
6
+ import address from './address'
7
+
8
+ Vue.config.silent = true
9
+
10
+ /** **************************通用组件******************************/
11
+ all()
12
+ address('')
13
+ system(false)
14
+ ldap()
15
+ // sale()
16
+ require('system-clients/src/styles/less/bootstrap.less')
17
+
18
+
19
+ new Vue({
20
+ el: 'body',
21
+ components: { App }
22
+ })