sale-client 3.5.73 → 3.5.75
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/build/dev-server.js +4 -1
- package/package.json +1 -1
- package/src/components/archives/ArchivesList.vue +14 -0
- package/src/components/revenue/comprehen/handAudit/MeterReadAudit.vue +212 -178
- package/src/components/webMeter/paramSaveNew/ParamSetForm.vue +25 -13
- package/src/filiale/guangxi/ResetMeter.vue +969 -0
- package/src/filiale/guangxi/sale.js +1 -0
- package/src/filiale/qianneng/archives/UserfilesList.vue +361 -0
- package/src/filiale/qianneng/components/common/userinfo_detail/UserBaseInfoNew.vue +460 -0
- package/src/filiale/qianneng/sale.js +4 -1
- package/src/filiale/tongchuan/ChargeManage.vue +20 -17
- package/src/filiale/zhongyi/MeterReadAudit.vue +344 -0
- package/src/filiale/zhongyi/sale.js +5 -1
package/build/dev-server.js
CHANGED
|
@@ -12,7 +12,7 @@ var compiler = webpack(config)
|
|
|
12
12
|
// https://github.com/chimurai/http-proxy-middleware
|
|
13
13
|
var bendi = 'http://121.36.106.17:8400', bendi1 = 'http://121.36.106.17:8400/'
|
|
14
14
|
// 公司测试服务
|
|
15
|
-
var fuwu = 'http://
|
|
15
|
+
var fuwu = 'http://192.168.50.4:8400'
|
|
16
16
|
// var fuwu = 'http://121.36.106.17:8400/'
|
|
17
17
|
// 铜川正式
|
|
18
18
|
// var fuwu = 'http://61.134.55.234:9999/'
|
|
@@ -36,6 +36,9 @@ var proxyTable = {
|
|
|
36
36
|
'/rs/logic/saleGetExportProgress': {
|
|
37
37
|
target: fuwu
|
|
38
38
|
},
|
|
39
|
+
'/rs/logic/getWarningMsg': {
|
|
40
|
+
target: 'http://localhost:8080/'
|
|
41
|
+
},
|
|
39
42
|
'/rs/file': {
|
|
40
43
|
target: fuwu
|
|
41
44
|
},
|
package/package.json
CHANGED
|
@@ -43,6 +43,15 @@
|
|
|
43
43
|
<input type="text" class="input_search" style="width:60%" v-model="model.f_address"
|
|
44
44
|
condition="f_address like '%{}%'" placeholder="团缴地址"/>
|
|
45
45
|
</div>
|
|
46
|
+
<div :class="$parent.$parent.style">
|
|
47
|
+
<label class="font_normal_body">团缴状态</label>
|
|
48
|
+
<v-select :value.sync="model.f_user_state" multiple
|
|
49
|
+
:search="false"
|
|
50
|
+
v-model="model.f_user_state"
|
|
51
|
+
:options='$parent.$parent.user_state' placeholder='请选择'
|
|
52
|
+
condition="f_user_state in {}"
|
|
53
|
+
close-on-select></v-select>
|
|
54
|
+
</div>
|
|
46
55
|
</div>
|
|
47
56
|
</div>
|
|
48
57
|
</div>
|
|
@@ -199,6 +208,11 @@ export default {
|
|
|
199
208
|
this.f_orgid = this.$login.convertToIn(val)
|
|
200
209
|
this.f_filialeids = val[0]
|
|
201
210
|
}
|
|
211
|
+
},
|
|
212
|
+
computed: {
|
|
213
|
+
user_state() {
|
|
214
|
+
return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户状态')]
|
|
215
|
+
}
|
|
202
216
|
}
|
|
203
217
|
|
|
204
218
|
}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
|
|
2
|
+
<div class="basic-main" style="height: 98%">
|
|
3
3
|
<criteria-paged :model="model" v-ref:paged>
|
|
4
4
|
<criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
|
|
5
|
-
<div class="form-horizontal select-overspread container-fluid auto"
|
|
5
|
+
<div class="form-horizontal select-overspread container-fluid auto" novalidate partial>
|
|
6
6
|
<div class="row">
|
|
7
7
|
<div class="form-group col-sm-2">
|
|
8
8
|
<label class="font_normal_body">用户编号</label>
|
|
9
|
-
<input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
|
|
9
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
|
|
10
|
+
placeholder='用户编号'
|
|
10
11
|
condition="f_userinfo_code = '{}'">
|
|
11
12
|
</div>
|
|
12
13
|
<div class="form-group col-sm-2">
|
|
@@ -16,7 +17,7 @@
|
|
|
16
17
|
:value.sync="model.f_hand_state"
|
|
17
18
|
:options='$parent.$parent.states'
|
|
18
19
|
close-on-select
|
|
19
|
-
condition=
|
|
20
|
+
condition=" {} "
|
|
20
21
|
@change="$parent.$parent.search">
|
|
21
22
|
</v-select>
|
|
22
23
|
</div>
|
|
@@ -25,18 +26,20 @@
|
|
|
25
26
|
<v-select :value.sync="model.f_inputtor" v-model='model.f_inputtor'
|
|
26
27
|
style="width:60%"
|
|
27
28
|
multiple="true"
|
|
28
|
-
condition=
|
|
29
|
+
condition="f_inputtor in {}"
|
|
29
30
|
:options='$parent.$parent.inputtores' placeholder='抄表员'
|
|
30
31
|
close-on-select
|
|
31
32
|
v-el:cc></v-select>
|
|
32
33
|
</div>
|
|
33
34
|
|
|
34
35
|
<div class="span" style="float:right;">
|
|
35
|
-
<button class="button_search button_spacing width-60"
|
|
36
|
+
<button class="button_search button_spacing width-60" @click="search()" v-el:cx>查询</button>
|
|
36
37
|
<button class="button_search button_spacing width-60"
|
|
37
|
-
@click="$parent.$parent.allsuccess()" v-el:cx
|
|
38
|
+
@click="$parent.$parent.allsuccess()" v-el:cx>全部通过
|
|
39
|
+
</button>
|
|
38
40
|
<button class="button_search button_spacing width-60"
|
|
39
|
-
@click="$parent.$parent.allfaild()" v-el:cx
|
|
41
|
+
@click="$parent.$parent.allfaild()" v-el:cx>全部不通过
|
|
42
|
+
</button>
|
|
40
43
|
<!--<export-excel :data="{condition: condition}" bean="自助抄表审核导出" sqlurl="rs/logic/exportfile"></export-excel>-->
|
|
41
44
|
<div
|
|
42
45
|
:class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
|
|
@@ -50,7 +53,7 @@
|
|
|
50
53
|
<v-select :value.sync="model.f_userfiles_inputtor" v-model='model.f_userfiles_inputtor'
|
|
51
54
|
style="width:60%"
|
|
52
55
|
multiple="true"
|
|
53
|
-
condition=
|
|
56
|
+
condition="f_userfiles_inputtor in {}"
|
|
54
57
|
:options='$parent.$parent.inputtores' placeholder='抄表员'
|
|
55
58
|
close-on-select
|
|
56
59
|
v-el:cc></v-select>
|
|
@@ -62,13 +65,14 @@
|
|
|
62
65
|
</div>
|
|
63
66
|
<div class="form-group col-sm-2">
|
|
64
67
|
<label class="font_normal_body">用户姓名</label>
|
|
65
|
-
<input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
|
|
68
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
|
|
69
|
+
placeholder='用户姓名'
|
|
66
70
|
condition="f_user_name like '%{}%' ">
|
|
67
71
|
</div>
|
|
68
72
|
<div class="form-group col-sm-2">
|
|
69
73
|
<label class="font_normal_body">用户地址</label>
|
|
70
|
-
<input
|
|
71
|
-
|
|
74
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_address" placeholder='用户地址'
|
|
75
|
+
condition="f_address like '%{}%'">
|
|
72
76
|
</div>
|
|
73
77
|
<div class="col-sm-2 form-group">
|
|
74
78
|
<label class="font_normal_body">抄 表 册</label>
|
|
@@ -87,7 +91,7 @@
|
|
|
87
91
|
:value.sync="model.startDate"
|
|
88
92
|
:disabled-days-of-Week="[]"
|
|
89
93
|
:format="'yyyy-MM-dd 00:00:00'"
|
|
90
|
-
condition=
|
|
94
|
+
condition="f_hand_date >= '{}'"
|
|
91
95
|
:show-reset-button="reset">
|
|
92
96
|
</datepicker>
|
|
93
97
|
</div>
|
|
@@ -100,15 +104,16 @@
|
|
|
100
104
|
:value.sync="model.endDate"
|
|
101
105
|
:disabled-days-of-Week="[]"
|
|
102
106
|
:format="'yyyy-MM-dd 23:59:59'"
|
|
103
|
-
condition=
|
|
107
|
+
condition="f_hand_date <= '{}'"
|
|
104
108
|
:show-reset-button="reset">
|
|
105
109
|
</datepicker>
|
|
106
110
|
</div>
|
|
107
|
-
<res-select-group :initres="$parent.$parent.initres"
|
|
111
|
+
<res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes"
|
|
112
|
+
v-ref:sel></res-select-group>
|
|
108
113
|
</div>
|
|
109
114
|
</div>
|
|
110
115
|
</criteria>
|
|
111
|
-
<data-grid
|
|
116
|
+
<data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
|
|
112
117
|
<template partial='head'>
|
|
113
118
|
<tr>
|
|
114
119
|
<th>序号</th>
|
|
@@ -118,6 +123,7 @@
|
|
|
118
123
|
<th>用户地址</th>
|
|
119
124
|
<th>上期底数</th>
|
|
120
125
|
<th>本期底数</th>
|
|
126
|
+
<th>当前表底数</th>
|
|
121
127
|
<th>用气量</th>
|
|
122
128
|
<th>上次抄表时间</th>
|
|
123
129
|
<th>表单抄表员</th>
|
|
@@ -126,33 +132,49 @@
|
|
|
126
132
|
<th>上传时间</th>
|
|
127
133
|
<th>抄表来源</th>
|
|
128
134
|
<th>审核人</th>
|
|
135
|
+
<th>审核状态</th>
|
|
129
136
|
<th>审核时间</th>
|
|
130
137
|
<th>操作</th>
|
|
131
138
|
</tr>
|
|
132
139
|
</template>
|
|
133
140
|
<template partial='body'>
|
|
134
|
-
<td style="text-align:center">{{$index+1}}</td>
|
|
135
|
-
<td style="text-align:center">{{row.f_userinfo_code}}</td>
|
|
136
|
-
<td style="text-align:center">{{row.f_user_id}}</td>
|
|
137
|
-
<td style="text-align:center">{{row.f_user_name}}</td>
|
|
138
|
-
<td style="text-align:center">{{row.f_address}}</td>
|
|
139
|
-
<td style="text-align:center"
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
<td style="text-align:center"
|
|
143
|
-
|
|
144
|
-
|
|
141
|
+
<td style="text-align:center">{{ $index + 1 }}</td>
|
|
142
|
+
<td style="text-align:center">{{ row.f_userinfo_code }}</td>
|
|
143
|
+
<td style="text-align:center">{{ row.f_user_id }}</td>
|
|
144
|
+
<td style="text-align:center">{{ row.f_user_name }}</td>
|
|
145
|
+
<td style="text-align:center">{{ row.f_address }}</td>
|
|
146
|
+
<td style="text-align:center" :class="{'meterbasehaserr' : row.f_last_tablebase !== row.f_meter_base || row.f_last_tablebase === row.f_tablebase }">
|
|
147
|
+
{{ row.f_last_tablebase }}
|
|
148
|
+
</td>
|
|
149
|
+
<td style="text-align:center" :class="{'meterbasehaserr' : row.f_last_tablebase !== row.f_meter_base || row.f_last_tablebase === row.f_tablebase }">
|
|
150
|
+
{{ row.f_tablebase }}
|
|
151
|
+
</td>
|
|
152
|
+
<td style="text-align:center" :class="{'meterbasehaserr' : row.f_last_tablebase !== row.f_meter_base || row.f_last_tablebase === row.f_tablebase }">
|
|
153
|
+
{{ row.f_meter_base }}
|
|
154
|
+
</td>
|
|
155
|
+
<td style="text-align:center">{{ parseFloat(row.f_tablebase - row.f_last_tablebase).toFixed(2) }}</td>
|
|
156
|
+
<td style="text-align:center">{{ row.f_last_input_date }}</td>
|
|
157
|
+
<td style="text-align:center">{{ row.f_inputtor }}</td>
|
|
158
|
+
<td style="text-align:center">{{ row.f_userfiles_inputtor }}</td>
|
|
145
159
|
<td style="text-align:center">
|
|
146
160
|
<img-self :src="row.f_handplan_image" v-if="row.f_handplan_image" :width="100" :height="100"></img-self>
|
|
147
161
|
</td>
|
|
148
|
-
<td style="text-align:center">{{row.f_hand_date}}</td>
|
|
149
|
-
<td style="text-align:center">{{row.f_meter_source}}</td>
|
|
150
|
-
<td style="text-align:center">{{row.f_audit_person}}</td>
|
|
151
|
-
<td style="text-align:center"
|
|
162
|
+
<td style="text-align:center">{{ row.f_hand_date }}</td>
|
|
163
|
+
<td style="text-align:center">{{ row.f_meter_source }}</td>
|
|
164
|
+
<td style="text-align:center">{{ row.f_audit_person }}</td>
|
|
165
|
+
<td style="text-align:center" v-if="row.f_meter_state === '待审核' && row.f_hand_state === '有效'">待审核</td>
|
|
166
|
+
<td style="text-align:center" v-if="row.f_hand_state !== '有效'">未通过</td>
|
|
167
|
+
<td style="text-align:center" v-if="row.f_meter_state === '已抄表' && row.f_hand_state === '有效'">已通过</td>
|
|
168
|
+
<td style="text-align:center">{{ row.f_audit_date }}</td>
|
|
152
169
|
<td style="text-align: center" v-if="row.f_meter_state === '待审核' && row.f_hand_state === '有效'">
|
|
153
|
-
<button type="button" class="button_search button_spacing width-60"
|
|
170
|
+
<button type="button" class="button_search button_spacing width-60"
|
|
171
|
+
v-if="row.f_last_tablebase === row.f_meter_base && row.f_last_tablebase !== row.f_tablebase "
|
|
172
|
+
@click.stop="$parent.$parent.$parent.success(row)">通过
|
|
173
|
+
</button>
|
|
154
174
|
<br>
|
|
155
|
-
<button type="button" class="button_search button_spacing width-60"
|
|
175
|
+
<button type="button" class="button_search button_spacing width-60"
|
|
176
|
+
@click.stop="$parent.$parent.$parent.faild(row)">不通过
|
|
177
|
+
</button>
|
|
156
178
|
</td>
|
|
157
179
|
<td v-else></td>
|
|
158
180
|
</template>
|
|
@@ -165,7 +187,8 @@
|
|
|
165
187
|
</header>
|
|
166
188
|
<article slot="modal-body" class="modal-body">
|
|
167
189
|
<div class="form-group">
|
|
168
|
-
<input
|
|
190
|
+
<input type="text" class="form-control" v-model="pushdata.cause"
|
|
191
|
+
placeholder='请填写不通过原因,原因将会推送给用户'>
|
|
169
192
|
</div>
|
|
170
193
|
</article>
|
|
171
194
|
<footer slot="modal-footer" class="modal-footer">
|
|
@@ -173,172 +196,183 @@
|
|
|
173
196
|
<button v-show="show" type="button" class="btn btn-success" @click='confirm()'>确认</button>
|
|
174
197
|
</footer>
|
|
175
198
|
</modal>
|
|
176
|
-
|
|
199
|
+
</div>
|
|
177
200
|
</template>
|
|
178
|
-
|
|
201
|
+
<style>
|
|
202
|
+
.meterbasehaserr {
|
|
203
|
+
color: #E26868 !important;
|
|
204
|
+
font-weight: 700
|
|
205
|
+
}
|
|
206
|
+
</style>
|
|
179
207
|
<script>
|
|
180
|
-
|
|
208
|
+
import {PagedList} from 'vue-client'
|
|
181
209
|
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
210
|
+
let readyGen = async function (self) {
|
|
211
|
+
await self.$LoadParams.loadMeterBook(self.f_filialeid)
|
|
212
|
+
self.loadMeterBooks()
|
|
213
|
+
self.getfield = self.config.excelHeaders
|
|
214
|
+
self.reflash()
|
|
215
|
+
}
|
|
188
216
|
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
217
|
+
export default {
|
|
218
|
+
title: '自报表数审核',
|
|
219
|
+
data() {
|
|
220
|
+
return {
|
|
221
|
+
initres: {
|
|
222
|
+
org: [this.$login.f.orgid],
|
|
223
|
+
dep: [],
|
|
224
|
+
user: []
|
|
225
|
+
},
|
|
226
|
+
orgCondtionStr: '',
|
|
227
|
+
criteriaShow: false,
|
|
228
|
+
show: false,
|
|
229
|
+
pushdata: {openid: '', cause: ''},
|
|
230
|
+
row: null,
|
|
231
|
+
model: new PagedList('rs/sql/meterReadAudit', 20),
|
|
232
|
+
states: [{label: '待审核', value: ` f_meter_state = '待审核' and f_hand_state ='有效'`}, {
|
|
233
|
+
label: '未通过',
|
|
234
|
+
value: ` f_hand_state = '无效'`
|
|
235
|
+
}, {label: '已通过', value: `f_meter_state = '已抄表' and f_hand_state ='有效'`}],
|
|
236
|
+
meterbooks: [{label: '全部', value: ''}]
|
|
237
|
+
}
|
|
238
|
+
},
|
|
239
|
+
ready() {
|
|
240
|
+
readyGen(this)
|
|
241
|
+
this.$refs.paged.$refs.cri.model.f_hand_state[0] = ` f_meter_state = '待审核'`
|
|
242
|
+
},
|
|
243
|
+
methods: {
|
|
244
|
+
loadMeterBooks() {
|
|
245
|
+
this.meterbooks = [...this.meterbooks, ...this.$GetSaleParam.getMeterBooks()]
|
|
207
246
|
},
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
this.$refs.paged.$refs.cri.model.f_hand_state[0] = ` f_meter_state = '待审核'`
|
|
247
|
+
getRes(obj) {
|
|
248
|
+
this.orgCondtionStr = obj
|
|
211
249
|
},
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
f_hand_id: this.model.rows[i].id,
|
|
242
|
-
// 本次表底数
|
|
243
|
-
f_tablebase: this.model.rows[i].f_tablebase,
|
|
244
|
-
// 表类型
|
|
245
|
-
f_meter_classify: this.model.rows[i].f_meter_classify,
|
|
246
|
-
// 气表品牌
|
|
247
|
-
f_meter_brand: this.model.rows[i].f_meter_brand
|
|
248
|
-
}
|
|
249
|
-
condition.push(temp)
|
|
250
|
-
}
|
|
251
|
-
let uuid = this.$login.guid()
|
|
252
|
-
let data = {
|
|
253
|
-
uuid: uuid,
|
|
254
|
-
condition: condition,
|
|
255
|
-
f_audit_person: this.$login.f.name
|
|
250
|
+
hidden() {
|
|
251
|
+
this.criteriaShow = !this.criteriaShow
|
|
252
|
+
},
|
|
253
|
+
search() {
|
|
254
|
+
this.$refs.paged.$refs.cri.search()
|
|
255
|
+
},
|
|
256
|
+
selfSearch(args) {
|
|
257
|
+
if (!this.orgCondtionStr) {
|
|
258
|
+
args.condition = `${args.condition}` + ' and f_orgid = ' + this.$login.f.orgid
|
|
259
|
+
} else {
|
|
260
|
+
args.condition = `${args.condition}` + this.orgCondtionStr
|
|
261
|
+
}
|
|
262
|
+
this.model.search(args.condition, args.model)
|
|
263
|
+
},
|
|
264
|
+
async allsuccess() {
|
|
265
|
+
let res = await this.$showMessage('确定通过全部抄表吗?操作后将不可取消', ['confirm', 'cancel'])
|
|
266
|
+
let condition = []
|
|
267
|
+
if (res === 'confirm') {
|
|
268
|
+
if (this.model.rows.length >= 0) {
|
|
269
|
+
if (this.model.model.f_hand_state[0] == `'待审核'`) {
|
|
270
|
+
for (let i = 0; i < this.model.rows.length; i++) {
|
|
271
|
+
let temp = {
|
|
272
|
+
f_hand_id: this.model.rows[i].id,
|
|
273
|
+
// 本次表底数
|
|
274
|
+
f_tablebase: this.model.rows[i].f_tablebase,
|
|
275
|
+
// 表类型
|
|
276
|
+
f_meter_classify: this.model.rows[i].f_meter_classify,
|
|
277
|
+
// 气表品牌
|
|
278
|
+
f_meter_brand: this.model.rows[i].f_meter_brand
|
|
256
279
|
}
|
|
257
|
-
|
|
258
|
-
this.search()
|
|
259
|
-
} else {
|
|
260
|
-
this.$showMessage('此为非待审核数据,无法修改')
|
|
280
|
+
condition.push(temp)
|
|
261
281
|
}
|
|
282
|
+
let uuid = this.$login.guid()
|
|
283
|
+
let data = {
|
|
284
|
+
uuid: uuid,
|
|
285
|
+
condition: condition,
|
|
286
|
+
f_audit_person: this.$login.f.name
|
|
287
|
+
}
|
|
288
|
+
await this.$resetpost('rs/logic/allhandPlanAudit', data, {resolveMsg: '操作成功', rejectMsg: '操作失败'})
|
|
289
|
+
this.search()
|
|
262
290
|
} else {
|
|
263
|
-
this.$showMessage('
|
|
291
|
+
this.$showMessage('此为非待审核数据,无法修改')
|
|
264
292
|
}
|
|
293
|
+
} else {
|
|
294
|
+
this.$showMessage('暂无数据,无法通过当前所有抄表')
|
|
265
295
|
}
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
await this.$resetpost('rs/logic/handPlanAudit', data, {resolveMsg: '操作成功', rejectMsg: '操作失败'})
|
|
282
|
-
this.search()
|
|
296
|
+
}
|
|
297
|
+
},
|
|
298
|
+
async success(row) {
|
|
299
|
+
let res = await this.$showMessage('确定通过该条抄表吗?操作后将不可取消', ['confirm', 'cancel'])
|
|
300
|
+
if (res === 'confirm') {
|
|
301
|
+
let data = {
|
|
302
|
+
// 抄表id
|
|
303
|
+
f_hand_id: row.id,
|
|
304
|
+
// 本次表底数
|
|
305
|
+
f_tablebase: row.f_tablebase,
|
|
306
|
+
// 表类型
|
|
307
|
+
f_meter_classify: row.f_meter_classify,
|
|
308
|
+
// 气表品牌
|
|
309
|
+
f_meter_brand: row.f_meter_brand,
|
|
310
|
+
f_audit_person: this.$login.f.name
|
|
283
311
|
}
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
condition += '
|
|
296
|
-
let sql = `UPDATE t_handplan SET f_hand_state = '无效',f_audit_person = '${this.$login.f.name}',f_audit_date = getDate() WHERE id in ${condition}`
|
|
297
|
-
await this.$resetpost('rs/logic/runSQL', {sql: sql}, {resolveMsg: '操作成功', rejectMsg: '操作失败'})
|
|
298
|
-
this.search()
|
|
299
|
-
} else {
|
|
300
|
-
this.$showMessage('此为非待审核数据,无法修改')
|
|
312
|
+
await this.$resetpost('rs/logic/handPlanAudit', data, {resolveMsg: '操作成功', rejectMsg: '操作失败'})
|
|
313
|
+
this.search()
|
|
314
|
+
}
|
|
315
|
+
},
|
|
316
|
+
async allfaild() {
|
|
317
|
+
let res = await this.$showMessage('确定作废全部抄表吗?操作后将不可取消', ['confirm', 'cancel'])
|
|
318
|
+
let condition = '('
|
|
319
|
+
if (res === 'confirm') {
|
|
320
|
+
if (this.model.rows.length > 0) {
|
|
321
|
+
if (this.model.model.f_hand_state[0] === `'待审核'`) {
|
|
322
|
+
for (let i = 0; i < this.model.rows.length; i++) {
|
|
323
|
+
condition += `'` + this.model.rows[i].id + `',`
|
|
301
324
|
}
|
|
325
|
+
condition = condition.substring(0, condition.length - 1)
|
|
326
|
+
condition += ')'
|
|
327
|
+
let sql = `UPDATE t_handplan SET f_hand_state = '无效',f_audit_person = '${this.$login.f.name}',f_audit_date = getDate() WHERE id in ${condition}`
|
|
328
|
+
await this.$resetpost('rs/logic/runSQL', {sql: sql}, {resolveMsg: '操作成功', rejectMsg: '操作失败'})
|
|
329
|
+
this.search()
|
|
302
330
|
} else {
|
|
303
|
-
this.$showMessage('
|
|
331
|
+
this.$showMessage('此为非待审核数据,无法修改')
|
|
304
332
|
}
|
|
333
|
+
} else {
|
|
334
|
+
this.$showMessage('暂无数据,无法作废当前所有抄表')
|
|
305
335
|
}
|
|
306
|
-
}
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
}
|
|
317
|
-
},
|
|
318
|
-
async confirm () {
|
|
319
|
-
await this.$resetpost('rs/logic/weixinHanPlanAudit', this.row, {resolveMsg: '操作成功', rejectMsg: '操作失败'})
|
|
320
|
-
await this.$resetpost('http://www.hunanhongdaranqi.com/weixin/rs/logic/meterReadFailed', this.pushdata, {resolveMsg: null, rejectMsg: null})
|
|
321
|
-
this.show = false
|
|
336
|
+
}
|
|
337
|
+
},
|
|
338
|
+
async faild(row) {
|
|
339
|
+
let res = await this.$showMessage('确定作废该条抄表吗?操作后将不可取消', ['confirm', 'cancel'])
|
|
340
|
+
if (res === 'confirm') {
|
|
341
|
+
// this.row = row
|
|
342
|
+
// this.pushdata.openid = row.f_open_id
|
|
343
|
+
// this.show = true
|
|
344
|
+
let sql = `UPDATE t_handplan SET f_hand_state = '无效',f_audit_person = '${this.$login.f.name}',f_audit_date = getDate() WHERE id = ${row.id}`
|
|
345
|
+
await this.$resetpost('rs/logic/runSQL', {sql: sql}, {resolveMsg: '操作成功', rejectMsg: '操作失败'})
|
|
322
346
|
this.search()
|
|
323
347
|
}
|
|
324
348
|
},
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
349
|
+
async confirm() {
|
|
350
|
+
await this.$resetpost('rs/logic/weixinHanPlanAudit', this.row, {resolveMsg: '操作成功', rejectMsg: '操作失败'})
|
|
351
|
+
await this.$resetpost('http://www.hunanhongdaranqi.com/weixin/rs/logic/meterReadFailed', this.pushdata, {
|
|
352
|
+
resolveMsg: null,
|
|
353
|
+
rejectMsg: null
|
|
354
|
+
})
|
|
355
|
+
this.show = false
|
|
356
|
+
this.search()
|
|
357
|
+
}
|
|
358
|
+
},
|
|
359
|
+
computed: {
|
|
360
|
+
inputtores() {
|
|
361
|
+
// 获取抄表员
|
|
362
|
+
console.log('获取抄表员', this.$login.f)
|
|
363
|
+
let rs = []
|
|
364
|
+
if (this.$login.f.f_gasman.length > 0) {
|
|
365
|
+
for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
|
|
366
|
+
let temp = {
|
|
367
|
+
label: this.$login.f.f_gasman[i].name,
|
|
368
|
+
value: this.$login.f.f_gasman[i].name
|
|
337
369
|
}
|
|
370
|
+
rs.push(temp)
|
|
338
371
|
}
|
|
339
|
-
this.inputtores2 = rs
|
|
340
|
-
return [...rs]
|
|
341
372
|
}
|
|
373
|
+
this.inputtores2 = rs
|
|
374
|
+
return [...rs]
|
|
342
375
|
}
|
|
343
376
|
}
|
|
377
|
+
}
|
|
344
378
|
</script>
|