sale-client 3.6.257 → 3.6.259
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 +1 -1
- package/src/components/FilesManage/AddHostMeterUserList.vue +185 -0
- package/src/components/FilesManage/AddSubMeterUserList.vue +185 -0
- package/src/components/FilesManage/HostMeterAdd.vue +219 -0
- package/src/components/FilesManage/HostMeterList.vue +323 -0
- package/src/components/FilesManage/HostMeterManage.vue +100 -0
- package/src/components/FilesManage/HostMeterUserList.vue +270 -0
- package/src/components/charge/ChargeOper.vue +9 -7
- package/src/components/common/userinfo_detail/UserInfoDetailManageNew.vue +8 -2
- package/src/components/common/userinfo_detail/ic_detail/contractSigningList.vue +117 -0
- package/src/components/revenue/HandManager/meterbookEntry.vue +1 -2
- package/src/filiale/haile/FilesManage/MeterinfoTest.vue +2 -2
- package/src/filiale/meihekou/MbpeopleList.vue +563 -0
- package/src/filiale/meihekou/sale.js +1 -0
- package/src/filiale/yangchun/CardMeterCenter.vue +963 -963
- package/src/filiale/yangchun/machineHandAudit.vue +0 -1
- package/src/sale.js +8 -0
- package/.npmignore +0 -12
- package/package-lock.json +0 -26566
- package/src/.npmignore +0 -1
- package/yarn.lock +0 -12035
package/package.json
CHANGED
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="auto">
|
|
3
|
+
<modal :show.sync="show" v-ref:modal large backdrop="false">
|
|
4
|
+
<header slot="modal-header" class="modal-header">
|
|
5
|
+
<button type="button" class="close" @click="closeModal()"><span>×</span></button>
|
|
6
|
+
<h4 class="modal-title">选择用户档案</h4>
|
|
7
|
+
</header>
|
|
8
|
+
<article slot="modal-body" class="modal-body">
|
|
9
|
+
<div style="height: 600px">
|
|
10
|
+
<criteria-paged :model="model" v-ref:paged>
|
|
11
|
+
<criteria partial='criteria' @condition-changed='$parent.$parent.selfSearch' v-ref:cri>
|
|
12
|
+
<div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
|
|
13
|
+
<div class="row">
|
|
14
|
+
<div class="col-sm-4 form-group">
|
|
15
|
+
<label class="font_normal_body">客户编号</label>
|
|
16
|
+
<input type="text"
|
|
17
|
+
class="input_search"
|
|
18
|
+
style="width:60%"
|
|
19
|
+
v-model="model.f_userinfo_code"
|
|
20
|
+
condition="f_userinfo_code = '{}'"
|
|
21
|
+
placeholder="客户编号"/>
|
|
22
|
+
</div>
|
|
23
|
+
<div class="col-sm-4 form-group">
|
|
24
|
+
<label class="font_normal_body">客户名称</label>
|
|
25
|
+
<input type="text"
|
|
26
|
+
class="input_search"
|
|
27
|
+
style="width:60%"
|
|
28
|
+
v-model="model.f_user_name"
|
|
29
|
+
condition="f_user_name like '%{}%'"
|
|
30
|
+
placeholder="客户名称"/>
|
|
31
|
+
</div>
|
|
32
|
+
|
|
33
|
+
<div class="col-sm-4 form-group button-range">
|
|
34
|
+
<button class="button_search button_spacing" @click="search()">查询</button>
|
|
35
|
+
<div
|
|
36
|
+
:class="{'button_shrink_top':$parent.$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.$parent.criteriaShow}"
|
|
37
|
+
@click="$parent.$parent.$parent.hidden()"
|
|
38
|
+
class="button_spacing"
|
|
39
|
+
style="float: right">
|
|
40
|
+
</div>
|
|
41
|
+
</div>
|
|
42
|
+
</div>
|
|
43
|
+
<div class="row" v-if="$parent.$parent.$parent.criteriaShow">
|
|
44
|
+
<div class="col-sm-4 form-group">
|
|
45
|
+
<label class="font_normal_body">详细地址</label>
|
|
46
|
+
<input class="input_search"
|
|
47
|
+
condition="f_address like '%{}%'"
|
|
48
|
+
placeholder='详细地址'
|
|
49
|
+
style="width:60%"
|
|
50
|
+
type="text"
|
|
51
|
+
v-model="model.f_address">
|
|
52
|
+
</div>
|
|
53
|
+
<div class="col-sm-4 form-group">
|
|
54
|
+
<label class="font_normal_body">表 号</label>
|
|
55
|
+
<input class="input_search"
|
|
56
|
+
condition="f_meternumber ='{}'"
|
|
57
|
+
placeholder='表号'
|
|
58
|
+
style="width:60%"
|
|
59
|
+
type="text"
|
|
60
|
+
v-model="model.f_meternumber" />
|
|
61
|
+
</div>
|
|
62
|
+
</div>
|
|
63
|
+
</div>
|
|
64
|
+
</criteria>
|
|
65
|
+
<data-grid :model="model" partial='list' style="overflow: auto"
|
|
66
|
+
class="list_area table_sy" v-ref:grid>
|
|
67
|
+
<template partial='head'>
|
|
68
|
+
<th>
|
|
69
|
+
<nobr>用户编号</nobr>
|
|
70
|
+
</th>
|
|
71
|
+
<th>
|
|
72
|
+
<nobr>用户姓名</nobr>
|
|
73
|
+
</th>
|
|
74
|
+
<th>
|
|
75
|
+
<nobr>表号</nobr>
|
|
76
|
+
</th>
|
|
77
|
+
<th>
|
|
78
|
+
<nobr>详细地址</nobr>
|
|
79
|
+
</th>
|
|
80
|
+
<th>
|
|
81
|
+
<nobr>气表品牌</nobr>
|
|
82
|
+
</th>
|
|
83
|
+
<th>
|
|
84
|
+
<nobr>气表型号</nobr>
|
|
85
|
+
</th>
|
|
86
|
+
<th>
|
|
87
|
+
<nobr>操作</nobr>
|
|
88
|
+
</th>
|
|
89
|
+
</template>
|
|
90
|
+
<template partial='body'>
|
|
91
|
+
<td style="text-align:center">
|
|
92
|
+
<nobr>{{ row.f_userinfo_code }}</nobr>
|
|
93
|
+
</td>
|
|
94
|
+
<td style="text-align:center">
|
|
95
|
+
<nobr>{{ row.f_user_name }}</nobr>
|
|
96
|
+
</td>
|
|
97
|
+
<td style="text-align:center">
|
|
98
|
+
<nobr>{{ row.f_meternumber }}</nobr>
|
|
99
|
+
</td>
|
|
100
|
+
<td style="text-align:center">
|
|
101
|
+
<nobr>{{ row.f_address }}</nobr>
|
|
102
|
+
</td>
|
|
103
|
+
<td style="text-align:center">
|
|
104
|
+
<nobr>{{ row.f_meter_brand }}</nobr>
|
|
105
|
+
</td>
|
|
106
|
+
<td style="text-align:center">
|
|
107
|
+
<nobr>{{ row.f_meter_style }}</nobr>
|
|
108
|
+
</td>
|
|
109
|
+
<td style="text-align:center">
|
|
110
|
+
<button type="button" name="button" class="button_search-2 button_spacing width-60"
|
|
111
|
+
@click.stop="$parent.$parent.$parent.$parent.confirm(row)">确认
|
|
112
|
+
</button>
|
|
113
|
+
</td>
|
|
114
|
+
</template>
|
|
115
|
+
<template partial='foot'></template>
|
|
116
|
+
</data-grid>
|
|
117
|
+
</criteria-paged>
|
|
118
|
+
</div>
|
|
119
|
+
</article>
|
|
120
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
121
|
+
</footer>
|
|
122
|
+
</modal>
|
|
123
|
+
</div>
|
|
124
|
+
</template>
|
|
125
|
+
|
|
126
|
+
<script>
|
|
127
|
+
import {PagedList} from 'vue-client'
|
|
128
|
+
|
|
129
|
+
export default {
|
|
130
|
+
data () {
|
|
131
|
+
return {
|
|
132
|
+
criteriaShow: false,
|
|
133
|
+
batchRowList: [],
|
|
134
|
+
selectRowLen: 0,
|
|
135
|
+
f_reason: '',
|
|
136
|
+
operateTitle: '',
|
|
137
|
+
selectRow: null,
|
|
138
|
+
operateShow: false,
|
|
139
|
+
showOptional: false,
|
|
140
|
+
batchUpdateAreaShow: false,
|
|
141
|
+
model: new PagedList('rs/sql/sale_getUnboundHostMeter', 20)
|
|
142
|
+
}
|
|
143
|
+
},
|
|
144
|
+
title: '添加总表用户档案列表',
|
|
145
|
+
props: ['show', 'f_filialeids'],
|
|
146
|
+
ready () {
|
|
147
|
+
this.search()
|
|
148
|
+
},
|
|
149
|
+
methods: {
|
|
150
|
+
confirm (row) {
|
|
151
|
+
console.log('选中总表档案了', row)
|
|
152
|
+
this.$dispatch('selectUser', row)
|
|
153
|
+
},
|
|
154
|
+
closeModal () {
|
|
155
|
+
this.show = false
|
|
156
|
+
},
|
|
157
|
+
hidden () {
|
|
158
|
+
this.criteriaShow = !this.criteriaShow
|
|
159
|
+
},
|
|
160
|
+
cancel () {
|
|
161
|
+
this.$dispatch('cancel')
|
|
162
|
+
},
|
|
163
|
+
search () {
|
|
164
|
+
this.$refs.paged.$refs.cri.search()
|
|
165
|
+
},
|
|
166
|
+
selfSearch (args) {
|
|
167
|
+
if (this.f_filialeids) {
|
|
168
|
+
args.condition = `${args.condition} and f_orgid = '${this.f_filialeids}'`
|
|
169
|
+
} else {
|
|
170
|
+
args.condition = `${args.condition} and f_orgid = '${this.$login.f.orgid}'`
|
|
171
|
+
}
|
|
172
|
+
this.model.search(args.condition, args.model)
|
|
173
|
+
}
|
|
174
|
+
},
|
|
175
|
+
events: {},
|
|
176
|
+
computed: {},
|
|
177
|
+
watch: {
|
|
178
|
+
'data' (val) {
|
|
179
|
+
if (val) {
|
|
180
|
+
this.search()
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
</script>
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="auto">
|
|
3
|
+
<modal :show.sync="show" v-ref:modal large backdrop="false">
|
|
4
|
+
<header slot="modal-header" class="modal-header">
|
|
5
|
+
<button type="button" class="close" @click="closeModal()"><span>×</span></button>
|
|
6
|
+
<h4 class="modal-title">添加分表</h4>
|
|
7
|
+
</header>
|
|
8
|
+
<article slot="modal-body" class="modal-body">
|
|
9
|
+
<div style="height: 600px">
|
|
10
|
+
<criteria-paged :model="model" v-ref:paged>
|
|
11
|
+
<criteria partial='criteria' @condition-changed='$parent.$parent.selfSearch' v-ref:cri>
|
|
12
|
+
<div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
|
|
13
|
+
<div class="row">
|
|
14
|
+
<div class="col-sm-4 form-group">
|
|
15
|
+
<label class="font_normal_body">客户编号</label>
|
|
16
|
+
<input type="text"
|
|
17
|
+
class="input_search"
|
|
18
|
+
style="width:60%"
|
|
19
|
+
v-model="model.f_userinfo_code"
|
|
20
|
+
condition="f_userinfo_code = '{}'"
|
|
21
|
+
placeholder="客户编号"/>
|
|
22
|
+
</div>
|
|
23
|
+
<div class="col-sm-4 form-group">
|
|
24
|
+
<label class="font_normal_body">客户名称</label>
|
|
25
|
+
<input type="text"
|
|
26
|
+
class="input_search"
|
|
27
|
+
style="width:60%"
|
|
28
|
+
v-model="model.f_user_name"
|
|
29
|
+
condition="f_user_name like '%{}%'"
|
|
30
|
+
placeholder="客户名称"/>
|
|
31
|
+
</div>
|
|
32
|
+
|
|
33
|
+
<div class="col-sm-4 form-group button-range">
|
|
34
|
+
<button class="button_search button_spacing" @click="search()">查询</button>
|
|
35
|
+
<div
|
|
36
|
+
:class="{'button_shrink_top':$parent.$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.$parent.criteriaShow}"
|
|
37
|
+
@click="$parent.$parent.$parent.hidden()"
|
|
38
|
+
class="button_spacing"
|
|
39
|
+
style="float: right">
|
|
40
|
+
</div>
|
|
41
|
+
</div>
|
|
42
|
+
</div>
|
|
43
|
+
<div class="row" v-if="$parent.$parent.$parent.criteriaShow">
|
|
44
|
+
<div class="col-sm-4 form-group">
|
|
45
|
+
<label class="font_normal_body">详细地址</label>
|
|
46
|
+
<input class="input_search"
|
|
47
|
+
condition="f_address like '%{}%'"
|
|
48
|
+
placeholder='详细地址'
|
|
49
|
+
style="width:60%"
|
|
50
|
+
type="text"
|
|
51
|
+
v-model="model.f_address">
|
|
52
|
+
</div>
|
|
53
|
+
<div class="col-sm-4 form-group">
|
|
54
|
+
<label class="font_normal_body">表 号</label>
|
|
55
|
+
<input class="input_search"
|
|
56
|
+
condition="f_meternumber ='{}'"
|
|
57
|
+
placeholder='表号'
|
|
58
|
+
style="width:60%"
|
|
59
|
+
type="text"
|
|
60
|
+
v-model="model.f_meternumber" />
|
|
61
|
+
</div>
|
|
62
|
+
</div>
|
|
63
|
+
</div>
|
|
64
|
+
</criteria>
|
|
65
|
+
<data-grid :model="model" partial='list' :optional="true" style="overflow: auto"
|
|
66
|
+
class="list_area table_sy" v-ref:grid>
|
|
67
|
+
<template partial='head'>
|
|
68
|
+
<th>
|
|
69
|
+
<nobr>用户编号</nobr>
|
|
70
|
+
</th>
|
|
71
|
+
<th>
|
|
72
|
+
<nobr>用户姓名</nobr>
|
|
73
|
+
</th>
|
|
74
|
+
<th>
|
|
75
|
+
<nobr>表号</nobr>
|
|
76
|
+
</th>
|
|
77
|
+
<th>
|
|
78
|
+
<nobr>详细地址</nobr>
|
|
79
|
+
</th>
|
|
80
|
+
<th>
|
|
81
|
+
<nobr>气表品牌</nobr>
|
|
82
|
+
</th>
|
|
83
|
+
<th>
|
|
84
|
+
<nobr>气表型号</nobr>
|
|
85
|
+
</th>
|
|
86
|
+
</template>
|
|
87
|
+
<template partial='body'>
|
|
88
|
+
<td style="text-align:center">
|
|
89
|
+
<nobr>{{ row.f_userinfo_code }}</nobr>
|
|
90
|
+
</td>
|
|
91
|
+
<td style="text-align:center">
|
|
92
|
+
<nobr>{{ row.f_user_name }}</nobr>
|
|
93
|
+
</td>
|
|
94
|
+
<td style="text-align:center">
|
|
95
|
+
<nobr>{{ row.f_meternumber }}</nobr>
|
|
96
|
+
</td>
|
|
97
|
+
<td style="text-align:center">
|
|
98
|
+
<nobr>{{ row.f_address }}</nobr>
|
|
99
|
+
</td>
|
|
100
|
+
<td style="text-align:center">
|
|
101
|
+
<nobr>{{ row.f_meter_brand }}</nobr>
|
|
102
|
+
</td>
|
|
103
|
+
<td style="text-align:center">
|
|
104
|
+
<nobr>{{ row.f_meter_style }}</nobr>
|
|
105
|
+
</td>
|
|
106
|
+
</template>
|
|
107
|
+
<template partial='foot'></template>
|
|
108
|
+
</data-grid>
|
|
109
|
+
</criteria-paged>
|
|
110
|
+
</div>
|
|
111
|
+
</article>
|
|
112
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
113
|
+
<button type="button" class="btn btn-success" @click='confirm()'>确认添加到总表</button>
|
|
114
|
+
</footer>
|
|
115
|
+
</modal>
|
|
116
|
+
</div>
|
|
117
|
+
</template>
|
|
118
|
+
|
|
119
|
+
<script>
|
|
120
|
+
import {PagedList} from 'vue-client'
|
|
121
|
+
|
|
122
|
+
export default {
|
|
123
|
+
data () {
|
|
124
|
+
return {
|
|
125
|
+
criteriaShow: false,
|
|
126
|
+
batchRowList: [],
|
|
127
|
+
selectRowLen: 0,
|
|
128
|
+
f_reason: '',
|
|
129
|
+
operateTitle: '',
|
|
130
|
+
selectRow: null,
|
|
131
|
+
operateShow: false,
|
|
132
|
+
showOptional: false,
|
|
133
|
+
batchUpdateAreaShow: false,
|
|
134
|
+
model: new PagedList('rs/sql/sale_getHostMeterAllUser', 20)
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
title: '添加总表用户档案列表',
|
|
138
|
+
props: ['show', 'f_filialeids'],
|
|
139
|
+
ready () {
|
|
140
|
+
this.search()
|
|
141
|
+
},
|
|
142
|
+
methods: {
|
|
143
|
+
confirm () {
|
|
144
|
+
if (this.$refs.paged.$refs.grid.getRowData().length > 0) {
|
|
145
|
+
this.batchRowList = this.$refs.paged.$refs.grid.getRowData()
|
|
146
|
+
this.$dispatch('batchMove', this.batchRowList)
|
|
147
|
+
this.$refs.paged.$refs.grid.selectInit()
|
|
148
|
+
this.show = false
|
|
149
|
+
} else {
|
|
150
|
+
this.$showAlert('请至少选择一项!', 'warning', 2000)
|
|
151
|
+
}
|
|
152
|
+
},
|
|
153
|
+
closeModal () {
|
|
154
|
+
this.show = false
|
|
155
|
+
},
|
|
156
|
+
hidden () {
|
|
157
|
+
this.criteriaShow = !this.criteriaShow
|
|
158
|
+
},
|
|
159
|
+
cancel () {
|
|
160
|
+
this.$dispatch('cancel')
|
|
161
|
+
},
|
|
162
|
+
search () {
|
|
163
|
+
this.$refs.paged.$refs.cri.search()
|
|
164
|
+
},
|
|
165
|
+
selfSearch (args) {
|
|
166
|
+
if (this.f_filialeids) {
|
|
167
|
+
args.condition = `${args.condition} and f_orgid = '${this.f_filialeids}'`
|
|
168
|
+
} else {
|
|
169
|
+
args.condition = `${args.condition} and f_orgid = '${this.$login.f.orgid}'`
|
|
170
|
+
}
|
|
171
|
+
args.condition = `${args.condition} and (f_host_meter_id is null or f_host_meter_id = '')`
|
|
172
|
+
this.model.search(args.condition, args.model)
|
|
173
|
+
}
|
|
174
|
+
},
|
|
175
|
+
events: {},
|
|
176
|
+
computed: {},
|
|
177
|
+
watch: {
|
|
178
|
+
'data' (val) {
|
|
179
|
+
if (val) {
|
|
180
|
+
this.search()
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
</script>
|
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="auto" id="userAddress" style="height:80%">
|
|
3
|
+
<validator name='v'>
|
|
4
|
+
<div class="auto select-overspread form-horizontal">
|
|
5
|
+
<div style="margin-top: 2%;">
|
|
6
|
+
<a style="font-size: 16px;font-weight: 500;">总表信息</a> <a style="color: #999999;text-decoration: none"></a>
|
|
7
|
+
</div>
|
|
8
|
+
<div class="row">
|
|
9
|
+
<div class="col-sm-4 form-group ">
|
|
10
|
+
<label for="f_meternumber" class="font_normal_body">总表表号</label>
|
|
11
|
+
<input type="text"
|
|
12
|
+
v-model="model.f_meternumber"
|
|
13
|
+
class="input_search"
|
|
14
|
+
style="width:60%"
|
|
15
|
+
placeholder="总表表号"
|
|
16
|
+
v-next-el="f_meternumber" readonly/>
|
|
17
|
+
</div>
|
|
18
|
+
<div class="col-sm-4 form-group " :class="[$v.f_meter_name.required ? 'has-error' : '']">
|
|
19
|
+
<label for="f_user_name" class="font_normal_body">总表名称</label>
|
|
20
|
+
<input type="text"
|
|
21
|
+
v-model="model.f_user_name"
|
|
22
|
+
v-validate:f_user_name='{required: true }'
|
|
23
|
+
class="input_search" style="width:60%"
|
|
24
|
+
placeholder="总表名称"
|
|
25
|
+
v-next-el="f_user_name" readonly/>
|
|
26
|
+
</div>
|
|
27
|
+
<div style="" class="col-sm-4 form-group">
|
|
28
|
+
<label for="f_legal_phone" class="font_normal_body">联系电话</label>
|
|
29
|
+
<input type="text"
|
|
30
|
+
maxlength="11"
|
|
31
|
+
v-model="model.f_user_phone"
|
|
32
|
+
class="input_search" style="width:60%"
|
|
33
|
+
placeholder="联系电话"
|
|
34
|
+
readonly
|
|
35
|
+
v-el:f_user_phone v-next-el="f_user_phone"/>
|
|
36
|
+
</div>
|
|
37
|
+
<div class="col-sm-4 form-group ">
|
|
38
|
+
<label for="f_meter_brand" class="font_normal_body">气表品牌</label>
|
|
39
|
+
<input type="text"
|
|
40
|
+
v-model="model.f_meter_brand"
|
|
41
|
+
class="input_search"
|
|
42
|
+
style="width:60%"
|
|
43
|
+
placeholder="气表品牌"
|
|
44
|
+
v-next-el="f_meter_brand" readonly/>
|
|
45
|
+
</div>
|
|
46
|
+
<div class="col-sm-4 form-group ">
|
|
47
|
+
<label for="f_meter_style" class="font_normal_body">气表型号</label>
|
|
48
|
+
<input type="text"
|
|
49
|
+
v-model="model.f_meter_style"
|
|
50
|
+
class="input_search"
|
|
51
|
+
style="width:60%"
|
|
52
|
+
placeholder="气表型号"
|
|
53
|
+
v-next-el="f_meter_style" readonly/>
|
|
54
|
+
</div>
|
|
55
|
+
<div class="col-sm-4 form-group " :class="[$v.settlement.required ? 'has-error' : '']">
|
|
56
|
+
<label class="font_normal_body">是否结算</label>
|
|
57
|
+
<input type="text" v-show="false" v-model="$refs.settlement.selectedItems"
|
|
58
|
+
v-validate:settlement='{required: true }'>
|
|
59
|
+
<v-select :options='settlements'
|
|
60
|
+
:value.sync="model.f_settlement"
|
|
61
|
+
close-on-select enter-push
|
|
62
|
+
placeholder='是否结算'
|
|
63
|
+
style="width:60%"
|
|
64
|
+
:value-single="true"
|
|
65
|
+
v-ref:settlement
|
|
66
|
+
v-model="model.f_settlement">
|
|
67
|
+
</v-select>
|
|
68
|
+
</div>
|
|
69
|
+
<div class="col-sm-12 form-group " :class="[$v.f_address.required ? 'has-error' : '']">
|
|
70
|
+
<label for="详细地址" class="font_normal_body">详细地址</label>
|
|
71
|
+
<input type="text"
|
|
72
|
+
v-model="model.f_address"
|
|
73
|
+
v-validate:f_address='{required: true }'
|
|
74
|
+
class="input_search"
|
|
75
|
+
placeholder="详细地址"
|
|
76
|
+
style="width:86.5%;"
|
|
77
|
+
v-next-el="f_address" readonly/>
|
|
78
|
+
</div>
|
|
79
|
+
<!-- 备注 -->
|
|
80
|
+
<div style="" class="col-sm-12 form-group">
|
|
81
|
+
<label for="f_comments" class="font_normal_body ">备  注</label>
|
|
82
|
+
<input class="input_search"
|
|
83
|
+
style="width:86.5%"
|
|
84
|
+
v-model="model.f_comments"/>
|
|
85
|
+
</div>
|
|
86
|
+
</div>
|
|
87
|
+
<div class="row">
|
|
88
|
+
<div style="text-align:right;">
|
|
89
|
+
<button class="button_search button_spacing" @click="reSelect()" :disabled='!model.f_host_meter_id'>重新选择总表</button>
|
|
90
|
+
<button class="button_search button_spacing" @click="confirm()" :disabled='!$v.valid'>保存</button>
|
|
91
|
+
<button class="button_clear button_spacing" @click="cancel()">取消</button>
|
|
92
|
+
</div>
|
|
93
|
+
</div>
|
|
94
|
+
</div>
|
|
95
|
+
</validator>
|
|
96
|
+
<add-host-meter-user-list :f_filialeids="f_filialeids"
|
|
97
|
+
v-if="userListShow"
|
|
98
|
+
:show.sync="userListShow">
|
|
99
|
+
</add-host-meter-user-list>
|
|
100
|
+
</div>
|
|
101
|
+
</template>
|
|
102
|
+
|
|
103
|
+
<script>
|
|
104
|
+
import {HttpResetClass} from 'vue-client'
|
|
105
|
+
|
|
106
|
+
let readySomething = async function (self) {
|
|
107
|
+
self.getUserFilesList()
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export default {
|
|
111
|
+
title: '总表信息',
|
|
112
|
+
data () {
|
|
113
|
+
return {
|
|
114
|
+
essentialInfo: false,
|
|
115
|
+
userfiles: [],
|
|
116
|
+
userListShow: false,
|
|
117
|
+
model: {
|
|
118
|
+
f_user_name: '',
|
|
119
|
+
f_meternumber: '',
|
|
120
|
+
f_user_phone: '',
|
|
121
|
+
f_address: '',
|
|
122
|
+
f_meter_brand: '',
|
|
123
|
+
f_meter_style: '',
|
|
124
|
+
f_comments: '',
|
|
125
|
+
f_settlement: '',
|
|
126
|
+
f_user_id: ''
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
props: ['f_filialeids', 'row'],
|
|
131
|
+
ready () {
|
|
132
|
+
readySomething(this)
|
|
133
|
+
if (this.row) { // 修改总表
|
|
134
|
+
this.model = Object.assign({}, this.model, this.row)
|
|
135
|
+
}
|
|
136
|
+
if (!this.model.f_settlement) {
|
|
137
|
+
this.model.f_settlement = '否'
|
|
138
|
+
}
|
|
139
|
+
},
|
|
140
|
+
methods: {
|
|
141
|
+
reSelect () {
|
|
142
|
+
if (!this.$login.r.find(value => value == '重新选择总表')) {
|
|
143
|
+
this.$showAlert('你没有【重新选择总表】的权限,请联系管理员', 'warning', 2000)
|
|
144
|
+
return
|
|
145
|
+
}
|
|
146
|
+
this.userListShow = true
|
|
147
|
+
},
|
|
148
|
+
getUserFilesList (searchText) {
|
|
149
|
+
let condition = `1=1 and f_orgid = '${this.f_filialeids}'`
|
|
150
|
+
if (searchText) {
|
|
151
|
+
condition = condition + ` and f_user_name like '%${searchText}%' `
|
|
152
|
+
}
|
|
153
|
+
if (!this.row) {
|
|
154
|
+
condition = condition + ` `
|
|
155
|
+
}
|
|
156
|
+
let HttpReset = new HttpResetClass()
|
|
157
|
+
HttpReset.load('POST', 'rs/sql/sale_getUnboundHostMeter?pageNo=1&pageSize=100', {
|
|
158
|
+
data: {
|
|
159
|
+
condition: condition
|
|
160
|
+
}
|
|
161
|
+
}, {resolveMsg: null, rejectMsg: '获取用户档案信息失败!'}).then((req) => {
|
|
162
|
+
let redata = []
|
|
163
|
+
req.data.forEach((row, n) => {
|
|
164
|
+
redata[n] = {
|
|
165
|
+
label: row.f_user_name,
|
|
166
|
+
value: row.f_user_id
|
|
167
|
+
}
|
|
168
|
+
})
|
|
169
|
+
this.userfiles = redata
|
|
170
|
+
})
|
|
171
|
+
},
|
|
172
|
+
// 保存
|
|
173
|
+
async confirm () {
|
|
174
|
+
this.model.f_operate_date = this.$login.toStandardTimeString()
|
|
175
|
+
this.model.f_operator = this.$login.f.name
|
|
176
|
+
this.model.f_operatorid = this.$login.f.id
|
|
177
|
+
this.model.f_orgid = this.$login.f.orgid
|
|
178
|
+
this.model.f_filialeid = this.$login.f.orgid
|
|
179
|
+
this.model.f_orgname = this.$login.f.orgs
|
|
180
|
+
this.model.f_depid = this.$login.f.depids
|
|
181
|
+
this.model.f_depname = this.$login.f.deps
|
|
182
|
+
console.log('保存数据之前', this.model)
|
|
183
|
+
await this.$resetpost('rs/logic/sale_hostMeterFileSave', this.model)
|
|
184
|
+
this.$dispatch('confirm')
|
|
185
|
+
},
|
|
186
|
+
cancel () {
|
|
187
|
+
this.$dispatch('cancel')
|
|
188
|
+
}
|
|
189
|
+
},
|
|
190
|
+
computed: {
|
|
191
|
+
settlements () {
|
|
192
|
+
return this.$appdata.getParam('总表是否结算')
|
|
193
|
+
},
|
|
194
|
+
meterbrands () {
|
|
195
|
+
return this.$GetSaleParam.getGasbrand()
|
|
196
|
+
}
|
|
197
|
+
},
|
|
198
|
+
events: {
|
|
199
|
+
'selectUser' (row) {
|
|
200
|
+
this.userListShow = false
|
|
201
|
+
this.model = Object.assign({}, this.model, row)
|
|
202
|
+
}
|
|
203
|
+
},
|
|
204
|
+
watch: {
|
|
205
|
+
async 'row' (val) {
|
|
206
|
+
console.log('观察row', val)
|
|
207
|
+
if (val) {
|
|
208
|
+
this.model = Object.assign({}, this.model, val)
|
|
209
|
+
}
|
|
210
|
+
},
|
|
211
|
+
'f_filialeids': {
|
|
212
|
+
immediate: true,
|
|
213
|
+
deep: true,
|
|
214
|
+
handler () {
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
</script>
|