sale-client 4.2.31 → 4.2.33
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/revenue/comprehen/ComprehenOperation/UserVisit/UserVisit.vue +217 -0
- package/src/components/revenue/comprehen/ComprehenOperation/newchangemeter/ChangeMeter.vue +9 -5
- package/src/filiale/meihekou/MachineCharge.vue +1 -0
- package/src/filiale/meihekou/MachineMeterCenter.vue +715 -0
- package/src/filiale/meihekou/machineHand.vue +13 -0
- package/src/filiale/meihekou/manualChargeCenter.vue +394 -394
- package/src/filiale/meihekou/sale.js +2 -0
- package/src/filiale/rongcheng/business/CardMeterCenter.vue +455 -455
- package/src/plugins/LogicService.js +48 -0
- package/src/sale.js +2 -0
- package/.gradle/5.2.1/fileChanges/last-build.bin +0 -0
- package/.gradle/5.2.1/fileHashes/fileHashes.lock +0 -0
- package/.gradle/5.2.1/gc.properties +0 -0
- package/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/.gradle/buildOutputCleanup/cache.properties +0 -2
- package/.gradle/vcs-1/gc.properties +0 -0
package/package.json
CHANGED
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="auto" style="overflow:auto;" >
|
|
3
|
+
<validator name='v'>
|
|
4
|
+
<form novalidate class="form-horizontal">
|
|
5
|
+
<div class="row auto">
|
|
6
|
+
<div class="col-sm-4 form-group">
|
|
7
|
+
<label for="f_inspect_state" class="font_normal_body">到访情况</label>
|
|
8
|
+
<v-select id="f_inspect_state"
|
|
9
|
+
v-model="model.f_inspect_state"
|
|
10
|
+
placeholder='请选择'
|
|
11
|
+
:value.sync="model.f_inspect_state"
|
|
12
|
+
:options='inspect_state'
|
|
13
|
+
close-on-select clear-button>
|
|
14
|
+
</v-select>
|
|
15
|
+
</div>
|
|
16
|
+
<div class="col-sm-4 form-group">
|
|
17
|
+
<label for="f_inspect_state" class="font_normal_body">安检情况</label>
|
|
18
|
+
<v-select id="f_security_situation"
|
|
19
|
+
v-model="model.f_security_situation"
|
|
20
|
+
placeholder='请选择'
|
|
21
|
+
:value.sync="model.f_security_situation"
|
|
22
|
+
:options='security_situation'
|
|
23
|
+
close-on-select clear-button>
|
|
24
|
+
</v-select>
|
|
25
|
+
</div>
|
|
26
|
+
<div class="col-sm-4 form-group">
|
|
27
|
+
<label for="f_inspect_issue" class="font_normal_body">隐患通知</label>
|
|
28
|
+
<v-select id="f_inspect_issue"
|
|
29
|
+
v-model="model.f_inspect_issue"
|
|
30
|
+
placeholder='请选择'
|
|
31
|
+
:value.sync="model.f_inspect_issue"
|
|
32
|
+
:options='inspect_issue'
|
|
33
|
+
close-on-select clear-button>
|
|
34
|
+
</v-select>
|
|
35
|
+
</div>
|
|
36
|
+
<div class="col-sm-8 form-group">
|
|
37
|
+
<label for="f_inspect_note" class="font_normal_body">隐患备注</label>
|
|
38
|
+
<input type="text" class="input_search" v-model="model.f_inspect_note" style="width:90%" placeholder="请填写隐患备注"></input>
|
|
39
|
+
</div>
|
|
40
|
+
</div>
|
|
41
|
+
<div class="row auto">
|
|
42
|
+
<div class="col-sm-4 form-group">
|
|
43
|
+
<label for="f_repair_result" class="font_normal_body">隐患处置</label>
|
|
44
|
+
<v-select id="f_repair_result"
|
|
45
|
+
v-model="model.f_repair_result"
|
|
46
|
+
placeholder='请选择'
|
|
47
|
+
:value.sync="model.f_repair_result"
|
|
48
|
+
:options='repair_result'
|
|
49
|
+
close-on-select clear-button>
|
|
50
|
+
</v-select>
|
|
51
|
+
</div>
|
|
52
|
+
<div class="col-sm-4 form-group">
|
|
53
|
+
<label for="f_gas_meter" class="font_normal_body">燃气表</label>
|
|
54
|
+
<v-select id="f_gas_meter"
|
|
55
|
+
v-model="model.f_gas_meter"
|
|
56
|
+
placeholder='请选择'
|
|
57
|
+
:value.sync="model.f_gas_meter"
|
|
58
|
+
:options='gas_meter'
|
|
59
|
+
close-on-select clear-button>
|
|
60
|
+
</v-select>
|
|
61
|
+
</div>
|
|
62
|
+
<div class="col-sm-4 form-group">
|
|
63
|
+
<label for="f_gas_meter" class="font_normal_body">阀 门</label>
|
|
64
|
+
<v-select id="f_valve"
|
|
65
|
+
v-model="model.f_valve"
|
|
66
|
+
placeholder='请选择'
|
|
67
|
+
:value.sync="model.f_valve"
|
|
68
|
+
:options='valve'
|
|
69
|
+
close-on-select clear-button>
|
|
70
|
+
</v-select>
|
|
71
|
+
</div>
|
|
72
|
+
<div class="col-sm-4 form-group">
|
|
73
|
+
<label for="f_gas_meter" class="font_normal_body">户内管</label>
|
|
74
|
+
<v-select id="f_household_riser"
|
|
75
|
+
v-model="model.f_household_riser"
|
|
76
|
+
placeholder='请选择'
|
|
77
|
+
:value.sync="model.f_household_riser"
|
|
78
|
+
:options='household_riser'
|
|
79
|
+
close-on-select clear-button>
|
|
80
|
+
</v-select>
|
|
81
|
+
</div>
|
|
82
|
+
<div class="col-sm-4 form-group">
|
|
83
|
+
<label for="f_stove" class="font_normal_body">灶 具</label>
|
|
84
|
+
<v-select id="f_stove"
|
|
85
|
+
v-model="model.f_stove"
|
|
86
|
+
placeholder='请选择'
|
|
87
|
+
:value.sync="model.f_stove"
|
|
88
|
+
:options='stove'
|
|
89
|
+
close-on-select clear-button>
|
|
90
|
+
</v-select>
|
|
91
|
+
</div>
|
|
92
|
+
<div class="col-sm-4 form-group">
|
|
93
|
+
<label for="f_calorifier" class="font_normal_body">热水器</label>
|
|
94
|
+
<v-select id="f_calorifier"
|
|
95
|
+
v-model="model.f_calorifier"
|
|
96
|
+
placeholder='请选择'
|
|
97
|
+
:value.sync="model.f_calorifier"
|
|
98
|
+
:options='calorifier'
|
|
99
|
+
close-on-select clear-button>
|
|
100
|
+
</v-select>
|
|
101
|
+
</div>
|
|
102
|
+
<div class="col-sm-4 form-group">
|
|
103
|
+
<label for="f_visit_operator" class="font_normal_body">表底数</label>
|
|
104
|
+
<input class="input_search" style="width:60%" type="text" v-model="model.f_visit_content" placeholder="表底数">
|
|
105
|
+
</div>
|
|
106
|
+
<div class="col-sm-4 form-group" :class="[$v.f_visit_operator.required ? 'has-error' : '']">
|
|
107
|
+
<label for="f_visit_operator" class="font_normal_body" >回访员</label>
|
|
108
|
+
<input class="input_search" style="width:60%" type="text" v-model="model.f_visit_operator" v-validate:f_visit_operator='{required: true }' placeholder="回访员">
|
|
109
|
+
</div>
|
|
110
|
+
<div class="col-sm-4 form-group">
|
|
111
|
+
<label for="f_repair_date" class="font_normal_body">回访日期</label>
|
|
112
|
+
<datepicker id="f_visit_date"
|
|
113
|
+
placeholder="回访日期"
|
|
114
|
+
v-model="model.f_visit_date"
|
|
115
|
+
:value.sync="model.f_visit_date"
|
|
116
|
+
:format="'yyyy-MM-dd HH:mm:ss'"
|
|
117
|
+
style="width:60%">
|
|
118
|
+
</datepicker>
|
|
119
|
+
</div>
|
|
120
|
+
<div class="col-sm-8 form-group">
|
|
121
|
+
<label for="f_repair_situation" class="font_normal_body">隐患处理</label>
|
|
122
|
+
<input class="form-control" v-model="model.f_repair_situation" style="width:90%"
|
|
123
|
+
placeholder="请填写隐患处理情况"></input>
|
|
124
|
+
</div>
|
|
125
|
+
</div>
|
|
126
|
+
<div class="row auto">
|
|
127
|
+
<div class="col-sm-4 form-group">
|
|
128
|
+
<label for="f_repair_situation" class="font_normal_body">处理人</label>
|
|
129
|
+
<input class="form-control" v-model="model.f_repair_operator" style="width:60%"
|
|
130
|
+
placeholder="处理人"></input>
|
|
131
|
+
</div>
|
|
132
|
+
<div class="col-sm-4 form-group">
|
|
133
|
+
<label for="f_repair_date" class="font_normal_body">处理日期</label>
|
|
134
|
+
<datepicker id="f_repair_date"
|
|
135
|
+
placeholder="处理日期"
|
|
136
|
+
v-model="model.f_repair_date"
|
|
137
|
+
:value.sync="model.f_repair_date"
|
|
138
|
+
:format="'yyyy-MM-dd HH:mm:ss'"
|
|
139
|
+
style="width:60%">
|
|
140
|
+
</datepicker>
|
|
141
|
+
</div>
|
|
142
|
+
</div>
|
|
143
|
+
<div style="text-align:right;height:200px; padding-top: 15px">
|
|
144
|
+
<button class="button_search" type="button" @click="confirm()" :disabled=" !$v.valid">确认</button>
|
|
145
|
+
<button class="button_clear" type="button" @click="clean()">取消</button>
|
|
146
|
+
</div>
|
|
147
|
+
</form>
|
|
148
|
+
</validator>
|
|
149
|
+
</div>
|
|
150
|
+
</template>
|
|
151
|
+
<script>
|
|
152
|
+
export default {
|
|
153
|
+
title: '用户回访',
|
|
154
|
+
data () {
|
|
155
|
+
return {
|
|
156
|
+
model: {
|
|
157
|
+
f_visit_content: '',
|
|
158
|
+
f_visit_operator: '',
|
|
159
|
+
f_visit_date: '',
|
|
160
|
+
f_repair_date: '',
|
|
161
|
+
f_repair_operator: '',
|
|
162
|
+
f_repair_situation: ''
|
|
163
|
+
},
|
|
164
|
+
inspect_state: this.$appdata.getParam('隐患状态'),
|
|
165
|
+
security_situation: this.$appdata.getParam('安检情况'),
|
|
166
|
+
inspect_issue: this.$appdata.getParam('隐患通知'),
|
|
167
|
+
repair_result: this.$appdata.getParam('隐患处置'),
|
|
168
|
+
// 燃气表、阀门、户内管用的参数都和安检情况一样
|
|
169
|
+
gas_meter: this.$appdata.getParam('安检情况'),
|
|
170
|
+
valve: this.$appdata.getParam('安检情况'),
|
|
171
|
+
household_riser: this.$appdata.getParam('安检情况'),
|
|
172
|
+
calorifier: this.$appdata.getParam('灶具/热水器'),
|
|
173
|
+
stove: this.$appdata.getParam('灶具/热水器')
|
|
174
|
+
}
|
|
175
|
+
},
|
|
176
|
+
props: {
|
|
177
|
+
row: {
|
|
178
|
+
type: Object,
|
|
179
|
+
default: undefined
|
|
180
|
+
},
|
|
181
|
+
dataModel: {
|
|
182
|
+
type: Object,
|
|
183
|
+
default: undefined
|
|
184
|
+
}
|
|
185
|
+
},
|
|
186
|
+
methods: {
|
|
187
|
+
async confirm () {
|
|
188
|
+
let msg = await this.$showMessage('是否对该用户进行回访?', ['confirm', 'cancel'])
|
|
189
|
+
if (msg === 'confirm') {
|
|
190
|
+
this.$LogicService.userVisit(this.model, this.row)
|
|
191
|
+
.then(
|
|
192
|
+
(res) => {
|
|
193
|
+
this.$dispatch('success', '用户回访', this.row, res)
|
|
194
|
+
}
|
|
195
|
+
).catch(
|
|
196
|
+
(error) => {
|
|
197
|
+
if (error.state === 603) {
|
|
198
|
+
this.$error('重复提交')
|
|
199
|
+
return
|
|
200
|
+
}
|
|
201
|
+
this.$dispatch('error', '用户回访', this.row, error)
|
|
202
|
+
}
|
|
203
|
+
)
|
|
204
|
+
}
|
|
205
|
+
},
|
|
206
|
+
// 返回
|
|
207
|
+
clean () {
|
|
208
|
+
this.$dispatch('refresh', this.row)
|
|
209
|
+
}
|
|
210
|
+
},
|
|
211
|
+
ready () {
|
|
212
|
+
console.log('row', this.row)
|
|
213
|
+
console.log('dataModel', this.dataModel)
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
</script>
|
|
217
|
+
<style></style>
|
|
@@ -200,9 +200,13 @@
|
|
|
200
200
|
</div>
|
|
201
201
|
<div class="col-sm-4 form-group">
|
|
202
202
|
<label class="font_normal_body">新抄表册</label>
|
|
203
|
-
<v-select :value.sync="newinfo.f_meter_book"
|
|
204
|
-
|
|
205
|
-
|
|
203
|
+
<v-select :value.sync="newinfo.f_meter_book"
|
|
204
|
+
v-model="newinfo.f_meter_book"
|
|
205
|
+
placeholder='新抄表册'
|
|
206
|
+
:options="meterbookoptions"
|
|
207
|
+
close-on-select>
|
|
208
|
+
|
|
209
|
+
</v-select>
|
|
206
210
|
</div>
|
|
207
211
|
|
|
208
212
|
</div>
|
|
@@ -357,12 +361,12 @@ let getPrice = async function (self) {
|
|
|
357
361
|
tablename: 't_meter_book',
|
|
358
362
|
condition: `f_book_state='有效' and f_filiale_id='${self.$login.f.orgid}'`
|
|
359
363
|
}
|
|
360
|
-
let meterbooks = await http.load('POST', 'api/af-revenue/sql/saleSingleTable', {data: temp},
|
|
364
|
+
let meterbooks = await http.load('POST', 'api/af-revenue/sql/saleSingleTable?pageNo=1&pageSize=9999', {data: temp},
|
|
361
365
|
{resolveMsg: null, rejectMsg: '获取抄表册信息失败!!'})
|
|
362
366
|
if (meterbooks.data.length > 0) {
|
|
363
367
|
let options = []
|
|
364
368
|
for (let i = 0; i < meterbooks.data.length; i++) {
|
|
365
|
-
let tmp = {label: meterbooks.data[i].f_book_name, value:
|
|
369
|
+
let tmp = {label: meterbooks.data[i].f_book_name, value: meterbooks.data[i].id}
|
|
366
370
|
options.push(tmp)
|
|
367
371
|
}
|
|
368
372
|
self.meterbookoptions = options
|