sale-client 3.5.110 → 3.5.112

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.
@@ -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://192.168.50.4:8400'
15
+ var fuwu = 'http://47.93.217.125:8400'
16
16
  //var fuwu = 'http://39.99.85.14:8400'
17
17
  // var fuwu = 'http://121.36.106.17:8400/'
18
18
  // 铜川正式
@@ -121,7 +121,7 @@ var proxyTable = {
121
121
  target: fuwu
122
122
  },
123
123
  '/rs/report': {
124
- target: 'http://121.36.106.17:8400/'
124
+ target: fuwu
125
125
  },
126
126
  '/rs/vue': {
127
127
  target: fuwu
@@ -189,5 +189,5 @@ module.exports = app.listen(8085, function (err) {
189
189
  console.log(err)
190
190
  return
191
191
  }
192
- console.log('Listening at http://localhost:8089')
192
+ console.log('Listening at http://localhost:8085')
193
193
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sale-client",
3
- "version": "3.5.110",
3
+ "version": "3.5.112",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -37,10 +37,6 @@
37
37
  <label class = "col-sm-5 " style="color: brown">表上余量</label>
38
38
  <span class = "col-sm-7" style="color: brown">{{data?data.f_jval:dafault.f_jval}}</span>
39
39
  </div>
40
- <div class="row">
41
- <label class = "col-sm-5 " >初始表底数</label>
42
- <span class = "col-sm-7" >{{data?data.f_initial_base:dafault.f_initial_base}}</span>
43
- </div>
44
40
  <div class="row">
45
41
  <label class = "col-sm-5 " >表当前底数</label>
46
42
  <span class = "col-sm-7" >{{data?data.f_meter_base:dafault.f_meter_base}}</span>
@@ -1,344 +1,347 @@
1
- <template>
2
- <div class="basic-main" style="height: 98%">
3
- <criteria-paged :model="model" v-ref:paged>
4
- <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
5
- <div class="form-horizontal select-overspread container-fluid auto" novalidate partial>
6
- <div class="row">
7
- <div class="form-group col-sm-2">
8
- <label class="font_normal_body">用户编号</label>
9
- <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code" placeholder='用户编号'
10
- condition="f_userinfo_code = '{}'">
11
- </div>
12
- <div class="form-group col-sm-2">
13
- <label class="font_normal_body">处理状态</label>
14
- <v-select v-model="model.f_hand_state"
15
- placeholder='处理状态'
16
- :value.sync="model.f_hand_state"
17
- :options='$parent.$parent.states'
18
- close-on-select
19
- condition="f_hand_state = {}"
20
- @change="$parent.$parent.search">
21
- </v-select>
22
- </div>
23
- <div class="col-sm-2 form-group">
24
- <label class="font_normal_body" title="表单抄表员">抄&ensp;表&ensp;员</label>
25
- <v-select :value.sync="model.f_inputtor" v-model='model.f_inputtor'
26
- style="width:60%"
27
- multiple="true"
28
- condition= "f_inputtor in {}"
29
- :options='$parent.$parent.inputtores' placeholder='抄表员'
30
- close-on-select
31
- v-el:cc></v-select>
32
- </div>
33
-
34
- <div class="span" style="float:right;">
35
- <button class="button_search button_spacing width-60" @click="search()" v-el:cx>查询</button>
36
- <button class="button_search button_spacing width-60"
37
- @click="$parent.$parent.allsuccess()" v-el:cx>全部通过</button>
38
- <button class="button_search button_spacing width-60"
39
- @click="$parent.$parent.allfaild()" v-el:cx>全部不通过</button>
40
- <!--<export-excel :data="{condition: condition}" bean="自助抄表审核导出" sqlurl="rs/logic/exportfile"></export-excel>-->
41
- <div
42
- :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
43
- @click="$parent.$parent.hidden()" class="button_spacing" style="float: right">
44
- </div>
45
- </div>
46
- </div>
47
- <div class="row" v-show="$parent.$parent.criteriaShow">
48
- <div class="col-sm-2 form-group">
49
- <label class="font_normal_body" title="档案抄表员">抄&ensp;表&ensp;员</label>
50
- <v-select :value.sync="model.f_userfiles_inputtor" v-model='model.f_userfiles_inputtor'
51
- style="width:60%"
52
- multiple="true"
53
- condition= "f_userfiles_inputtor in {}"
54
- :options='$parent.$parent.inputtores' placeholder='抄表员'
55
- close-on-select
56
- v-el:cc></v-select>
57
- </div>
58
- <div class="form-group col-sm-2">
59
- <label class="font_normal_body">表编号&nbsp;&nbsp;&nbsp;</label>
60
- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_id" placeholder='表编号'
61
- condition="f_user_id = '{}'">
62
- </div>
63
- <div class="form-group col-sm-2">
64
- <label class="font_normal_body">用户姓名</label>
65
- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name" placeholder='用户姓名'
66
- condition="f_user_name like '%{}%' ">
67
- </div>
68
- <div class="form-group col-sm-2">
69
- <label class="font_normal_body">用户地址</label>
70
- <input type="text" style="width:60%" class="input_search" v-model="model.f_address" placeholder='用户地址'
71
- condition="f_address like '%{}%'">
72
- </div>
73
- <div class="col-sm-2 form-group">
74
- <label class="font_normal_body">抄&ensp;表&ensp;册</label>
75
- <v-select :value.sync="model.f_meter_book" v-model="model.f_meter_book"
76
- :options='$parent.$parent.meterbooks' placeholder='抄表册'
77
- style="width:60%"
78
- close-on-select
79
- condition="f_meter_book_num = '{}'"></v-select>
80
- </div>
81
- <div class="form-group col-sm-2">
82
- <label class="font_normal_body">开始时间</label>
83
- <datepicker id="startDate" placeholder="上传开始时间"
84
- v-model="model.startDate"
85
- style="width:60%"
86
- class="datepicker"
87
- :value.sync="model.startDate"
88
- :disabled-days-of-Week="[]"
89
- :format="'yyyy-MM-dd 00:00:00'"
90
- condition= "f_hand_date >= '{}'"
91
- :show-reset-button="reset">
92
- </datepicker>
93
- </div>
94
- <div class="form-group col-sm-2">
95
- <label class="font_normal_body">结束时间</label>
96
- <datepicker id="endDate" placeholder="上传结束时间"
97
- v-model="model.endDate"
98
- style="width:60%"
99
- class="datepicker"
100
- :value.sync="model.endDate"
101
- :disabled-days-of-Week="[]"
102
- :format="'yyyy-MM-dd 23:59:59'"
103
- condition= "f_hand_date <= '{}'"
104
- :show-reset-button="reset">
105
- </datepicker>
106
- </div>
107
- <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
108
- </div>
109
- </div>
110
- </criteria>
111
- <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
112
- <template partial='head'>
113
- <tr>
114
- <th>序号</th>
115
- <th>用户编号</th>
116
- <th>表编号</th>
117
- <th>用户姓名</th>
118
- <th>用户地址</th>
119
- <th>上期底数</th>
120
- <th>本期底数</th>
121
- <th>用气量</th>
122
- <th>上次抄表时间</th>
123
- <th>表单抄表员</th>
124
- <th>档案抄表员</th>
125
- <th>上传图片</th>
126
- <th>上传时间</th>
127
- <th>抄表来源</th>
128
- <th>审核人</th>
129
- <th>审核时间</th>
130
- <th>操作</th>
131
- </tr>
132
- </template>
133
- <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">{{row.f_last_tablebase}}</td>
140
- <td style="text-align:center">{{row.f_tablebase}}</td>
141
- <td style="text-align:center">{{ parseFloat(row.f_tablebase - row.f_last_tablebase).toFixed(2)}}</td>
142
- <td style="text-align:center">{{row.f_last_input_date}}</td>
143
- <td style="text-align:center">{{row.f_inputtor}}</td>
144
- <td style="text-align:center">{{row.f_userfiles_inputtor}}</td>
145
- <td style="text-align:center">
146
- <img-self :src="row.f_handplan_image" v-if="row.f_handplan_image" :width="100" :height="100"></img-self>
147
- </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">{{row.f_audit_date}}</td>
152
- <td style="text-align: center" v-if="row.f_hand_state == '待审核'">
153
- <button type="button" class="button_search button_spacing width-60" @click.stop="$parent.$parent.$parent.success(row)">通过</button>
154
- <br>
155
- <button type="button" class="button_search button_spacing width-60" @click.stop="$parent.$parent.$parent.faild(row)">不通过</button>
156
- </td>
157
- <td v-else></td>
158
- </template>
159
- </data-grid>
160
- </criteria-paged>
161
-
162
- <modal :show.sync="show" v-ref:modal backdrop="false">
163
- <header slot="modal-header" class="modal-header">
164
- <h4 class="modal-title">请填写不通过原因</h4>
165
- </header>
166
- <article slot="modal-body" class="modal-body">
167
- <div class="form-group">
168
- <input type="text" class="form-control" v-model="pushdata.cause" placeholder='请填写不通过原因,原因将会推送给用户'>
169
- </div>
170
- </article>
171
- <footer slot="modal-footer" class="modal-footer">
172
- <button v-show="show" type="button" class="btn btn-default" @click='show = false'>取消</button>
173
- <button v-show="show" type="button" class="btn btn-success" @click='confirm()'>确认</button>
174
- </footer>
175
- </modal>
176
- </div>
177
- </template>
178
-
179
- <script>
180
- import { PagedList } from 'vue-client'
181
-
182
- let readyGen = async function (self) {
183
- await self.$LoadParams.loadMeterBook(self.f_filialeid)
184
- self.loadMeterBooks()
185
- self.getfield = self.config.excelHeaders
186
- self.reflash()
187
- }
188
-
189
- export default {
190
- title: '自报表数审核',
191
- data () {
192
- return {
193
- initres: {
194
- org: [this.$login.f.orgid],
195
- dep: [],
196
- user: []
197
- },
198
- orgCondtionStr: '',
199
- criteriaShow: false,
200
- show: false,
201
- pushdata: {openid: '', cause: ''},
202
- row: null,
203
- model: new PagedList('rs/sql/meterReadAudit', 20),
204
- states: [{label: '待审核', value: `'待审核'`}, {label: '未通过', value: `'无效'`}, {label: '已通过', value: `'有效'`}],
205
- meterbooks: [{label: '全部', value: ''}]
206
- }
207
- },
208
- ready () {
209
- readyGen(this)
210
- this.$refs.paged.$refs.cri.model.f_hand_state[0] =`'待审核'`
211
- },
212
- methods: {
213
- loadMeterBooks () {
214
- this.meterbooks = [...this.meterbooks, ...this.$GetSaleParam.getMeterBooks()]
215
- },
216
- getRes (obj) {
217
- this.orgCondtionStr = obj
218
- },
219
- hidden () {
220
- this.criteriaShow = !this.criteriaShow
221
- },
222
- search () {
223
- this.$refs.paged.$refs.cri.search()
224
- },
225
- selfSearch (args) {
226
- if (!this.orgCondtionStr) {
227
- args.condition = `${args.condition}` + ' and f_orgid = ' + this.$login.f.orgid
228
- } else {
229
- args.condition = `${args.condition}` + this.orgCondtionStr
230
- }
231
- this.model.search(args.condition, args.model)
232
- },
233
- async allsuccess () {
234
- let res = await this.$showMessage('确定通过全部抄表吗?操作后将不可取消', ['confirm', 'cancel'])
235
- let condition = []
236
- if (res === 'confirm') {
237
- if (this.model.rows.length >= 0) {
238
- if (this.model.model.f_hand_state[0] == `'待审核'`) {
239
- for (let i = 0; i < this.model.rows.length; i++) {
240
- let temp = {
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
256
- }
257
- await this.$resetpost('rs/logic/allhandPlanAudit', data, {resolveMsg: '操作成功', rejectMsg: '操作失败'})
258
- this.search()
259
- } else {
260
- this.$showMessage('此为非待审核数据,无法修改')
261
- }
262
- } else {
263
- this.$showMessage('暂无数据,无法通过当前所有抄表')
264
- }
265
- }
266
- },
267
- async success (row) {
268
- let res = await this.$showMessage('确定通过该条抄表吗?操作后将不可取消', ['confirm', 'cancel'])
269
- if (res === 'confirm') {
270
- let data = {
271
- // 抄表id
272
- f_hand_id: row.id,
273
- // 本次表底数
274
- f_tablebase: row.f_tablebase,
275
- // 表类型
276
- f_meter_classify: row.f_meter_classify,
277
- // 气表品牌
278
- f_meter_brand: row.f_meter_brand,
279
- f_audit_person: this.$login.f.name
280
- }
281
- await this.$resetpost('rs/logic/handPlanAudit', data, {resolveMsg: '操作成功', rejectMsg: '操作失败'})
282
- this.search()
283
- }
284
- },
285
- async allfaild () {
286
- let res = await this.$showMessage('确定作废全部抄表吗?操作后将不可取消', ['confirm', 'cancel'])
287
- let condition = '('
288
- if (res === 'confirm') {
289
- if (this.model.rows.length > 0) {
290
- if (this.model.model.f_hand_state[0] === `'待审核'`) {
291
- for (let i = 0; i < this.model.rows.length; i++) {
292
- condition += `'` + this.model.rows[i].id + `',`
293
- }
294
- condition = condition.substring(0, condition.length - 1)
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('此为非待审核数据,无法修改')
301
- }
302
- } else {
303
- this.$showMessage('暂无数据,无法作废当前所有抄表')
304
- }
305
- }
306
- },
307
- async faild (row) {
308
- let res = await this.$showMessage('确定作废该条抄表吗?操作后将不可取消', ['confirm', 'cancel'])
309
- if (res === 'confirm') {
310
- // this.row = row
311
- // this.pushdata.openid = row.f_open_id
312
- // this.show = true
313
- let sql = `UPDATE t_handplan SET f_hand_state = '无效',f_audit_person = '${this.$login.f.name}',f_audit_date = getDate() WHERE id = ${row.id}`
314
- await this.$resetpost('rs/logic/runSQL', {sql: sql}, {resolveMsg: '操作成功', rejectMsg: '操作失败'})
315
- this.search()
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
322
- this.search()
323
- }
324
- },
325
- computed: {
326
- inputtores () {
327
- // 获取抄表员
328
- console.log('获取抄表员', this.$login.f)
329
- let rs = []
330
- if (this.$login.f.f_gasman.length > 0) {
331
- for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
332
- let temp = {
333
- label: this.$login.f.f_gasman[i].name,
334
- value: this.$login.f.f_gasman[i].name
335
- }
336
- rs.push(temp)
337
- }
338
- }
339
- this.inputtores2 = rs
340
- return [...rs]
341
- }
342
- }
343
- }
344
- </script>
1
+ <template>
2
+ <div class="basic-main" style="height: 98%">
3
+ <criteria-paged :model="model" v-ref:paged>
4
+ <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
5
+ <div class="form-horizontal select-overspread container-fluid auto" novalidate partial>
6
+ <div class="row">
7
+ <div class="form-group col-sm-2">
8
+ <label class="font_normal_body">用户编号</label>
9
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code" placeholder='用户编号'
10
+ condition="f_userinfo_code = '{}'">
11
+ </div>
12
+ <div class="form-group col-sm-2">
13
+ <label class="font_normal_body">处理状态</label>
14
+ <v-select v-model="model.f_hand_state"
15
+ placeholder='处理状态'
16
+ :value.sync="model.f_hand_state"
17
+ :options='$parent.$parent.states'
18
+ close-on-select
19
+ condition=" {} "
20
+ @change="$parent.$parent.search">
21
+ </v-select>
22
+ </div>
23
+ <div class="col-sm-2 form-group">
24
+ <label class="font_normal_body" title="表单抄表员">抄&ensp;表&ensp;员</label>
25
+ <v-select :value.sync="model.f_inputtor" v-model='model.f_inputtor'
26
+ style="width:60%"
27
+ multiple="true"
28
+ condition= "f_inputtor in {}"
29
+ :options='$parent.$parent.inputtores' placeholder='抄表员'
30
+ close-on-select
31
+ v-el:cc></v-select>
32
+ </div>
33
+
34
+ <div class="span" style="float:right;">
35
+ <button class="button_search button_spacing width-60" @click="search()" v-el:cx>查询</button>
36
+ <button class="button_search button_spacing width-60"
37
+ @click="$parent.$parent.allsuccess()" v-el:cx>全部通过</button>
38
+ <button class="button_search button_spacing width-60"
39
+ @click="$parent.$parent.allfaild()" v-el:cx>全部不通过</button>
40
+ <!--<export-excel :data="{condition: condition}" bean="自助抄表审核导出" sqlurl="rs/logic/exportfile"></export-excel>-->
41
+ <div
42
+ :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
43
+ @click="$parent.$parent.hidden()" class="button_spacing" style="float: right">
44
+ </div>
45
+ </div>
46
+ </div>
47
+ <div class="row" v-show="$parent.$parent.criteriaShow">
48
+ <div class="col-sm-2 form-group">
49
+ <label class="font_normal_body" title="档案抄表员">抄&ensp;表&ensp;员</label>
50
+ <v-select :value.sync="model.f_userfiles_inputtor" v-model='model.f_userfiles_inputtor'
51
+ style="width:60%"
52
+ multiple="true"
53
+ condition= "f_userfiles_inputtor in {}"
54
+ :options='$parent.$parent.inputtores' placeholder='抄表员'
55
+ close-on-select
56
+ v-el:cc></v-select>
57
+ </div>
58
+ <div class="form-group col-sm-2">
59
+ <label class="font_normal_body">表编号&nbsp;&nbsp;&nbsp;</label>
60
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_id" placeholder='表编号'
61
+ condition="f_user_id = '{}'">
62
+ </div>
63
+ <div class="form-group col-sm-2">
64
+ <label class="font_normal_body">用户姓名</label>
65
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name" placeholder='用户姓名'
66
+ condition="f_user_name like '%{}%' ">
67
+ </div>
68
+ <div class="form-group col-sm-2">
69
+ <label class="font_normal_body">用户地址</label>
70
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_address" placeholder='用户地址'
71
+ condition="f_address like '%{}%'">
72
+ </div>
73
+ <div class="col-sm-2 form-group">
74
+ <label class="font_normal_body">抄&ensp;表&ensp;册</label>
75
+ <v-select :value.sync="model.f_meter_book" v-model="model.f_meter_book"
76
+ :options='$parent.$parent.meterbooks' placeholder='抄表册'
77
+ style="width:60%"
78
+ close-on-select
79
+ condition="f_meter_book_num = '{}'"></v-select>
80
+ </div>
81
+ <div class="form-group col-sm-2">
82
+ <label class="font_normal_body">开始时间</label>
83
+ <datepicker id="startDate" placeholder="上传开始时间"
84
+ v-model="model.startDate"
85
+ style="width:60%"
86
+ class="datepicker"
87
+ :value.sync="model.startDate"
88
+ :disabled-days-of-Week="[]"
89
+ :format="'yyyy-MM-dd 00:00:00'"
90
+ condition= "f_hand_date >= '{}'"
91
+ :show-reset-button="reset">
92
+ </datepicker>
93
+ </div>
94
+ <div class="form-group col-sm-2">
95
+ <label class="font_normal_body">结束时间</label>
96
+ <datepicker id="endDate" placeholder="上传结束时间"
97
+ v-model="model.endDate"
98
+ style="width:60%"
99
+ class="datepicker"
100
+ :value.sync="model.endDate"
101
+ :disabled-days-of-Week="[]"
102
+ :format="'yyyy-MM-dd 23:59:59'"
103
+ condition= "f_hand_date <= '{}'"
104
+ :show-reset-button="reset">
105
+ </datepicker>
106
+ </div>
107
+ <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
108
+ </div>
109
+ </div>
110
+ </criteria>
111
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
112
+ <template partial='head'>
113
+ <tr>
114
+ <th>序号</th>
115
+ <th>用户编号</th>
116
+ <th>表编号</th>
117
+ <th>用户姓名</th>
118
+ <th>用户地址</th>
119
+ <th>上期底数</th>
120
+ <th>本期底数</th>
121
+ <th>用气量</th>
122
+ <th>上次抄表时间</th>
123
+ <th>表单抄表员</th>
124
+ <th>档案抄表员</th>
125
+ <th>上传图片</th>
126
+ <th>上传时间</th>
127
+ <th>抄表来源</th>
128
+ <th>审核人</th>
129
+ <th>审核时间</th>
130
+ <th>操作</th>
131
+ </tr>
132
+ </template>
133
+ <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">{{row.f_last_tablebase}}</td>
140
+ <td style="text-align:center">{{row.f_tablebase}}</td>
141
+ <td style="text-align:center">{{ parseFloat(row.f_tablebase - row.f_last_tablebase).toFixed(2)}}</td>
142
+ <td style="text-align:center">{{row.f_last_input_date}}</td>
143
+ <td style="text-align:center">{{row.f_inputtor}}</td>
144
+ <td style="text-align:center">{{row.f_userfiles_inputtor}}</td>
145
+ <td style="text-align:center">
146
+ <img-self :src="row.f_handplan_image" v-if="row.f_handplan_image" :width="100" :height="100"></img-self>
147
+ </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">{{row.f_audit_date}}</td>
152
+ <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" @click.stop="$parent.$parent.$parent.success(row)">通过</button>
154
+ <br>
155
+ <button type="button" class="button_search button_spacing width-60" @click.stop="$parent.$parent.$parent.faild(row)">不通过</button>
156
+ </td>
157
+ <td v-else></td>
158
+ </template>
159
+ </data-grid>
160
+ </criteria-paged>
161
+
162
+ <modal :show.sync="show" v-ref:modal backdrop="false">
163
+ <header slot="modal-header" class="modal-header">
164
+ <h4 class="modal-title">请填写不通过原因</h4>
165
+ </header>
166
+ <article slot="modal-body" class="modal-body">
167
+ <div class="form-group">
168
+ <input type="text" class="form-control" v-model="pushdata.cause" placeholder='请填写不通过原因,原因将会推送给用户'>
169
+ </div>
170
+ </article>
171
+ <footer slot="modal-footer" class="modal-footer">
172
+ <button v-show="show" type="button" class="btn btn-default" @click='show = false'>取消</button>
173
+ <button v-show="show" type="button" class="btn btn-success" @click='confirm()'>确认</button>
174
+ </footer>
175
+ </modal>
176
+ </div>
177
+ </template>
178
+
179
+ <script>
180
+ import { PagedList } from 'vue-client'
181
+
182
+ let readyGen = async function (self) {
183
+ await self.$LoadParams.loadMeterBook(self.f_filialeid)
184
+ self.loadMeterBooks()
185
+ self.getfield = self.config.excelHeaders
186
+ self.reflash()
187
+ }
188
+
189
+ export default {
190
+ title: '自报表数审核',
191
+ data () {
192
+ return {
193
+ initres: {
194
+ org: [this.$login.f.orgid],
195
+ dep: [],
196
+ user: []
197
+ },
198
+ orgCondtionStr: '',
199
+ criteriaShow: false,
200
+ show: false,
201
+ pushdata: {openid: '', cause: ''},
202
+ row: null,
203
+ model: new PagedList('rs/sql/meterReadAudit', 20),
204
+ states: [{label: '待审核', value: ` f_meter_state = '待审核' and f_hand_state ='有效'`}, {
205
+ label: '未通过',
206
+ value: ` f_hand_state = '无效'`
207
+ }, {label: '已通过', value: `f_meter_state = '已抄表' and f_hand_state ='有效'`}],
208
+ meterbooks: [{label: '全部', value: ''}]
209
+ }
210
+ },
211
+ ready () {
212
+ readyGen(this)
213
+ this.$refs.paged.$refs.cri.model.f_hand_state[0] =` f_meter_state = '待审核'`
214
+ },
215
+ methods: {
216
+ loadMeterBooks () {
217
+ this.meterbooks = [...this.meterbooks, ...this.$GetSaleParam.getMeterBooks()]
218
+ },
219
+ getRes (obj) {
220
+ this.orgCondtionStr = obj
221
+ },
222
+ hidden () {
223
+ this.criteriaShow = !this.criteriaShow
224
+ },
225
+ search () {
226
+ this.$refs.paged.$refs.cri.search()
227
+ },
228
+ selfSearch (args) {
229
+ if (!this.orgCondtionStr) {
230
+ args.condition = `${args.condition}` + ' and f_orgid = ' + this.$login.f.orgid
231
+ } else {
232
+ args.condition = `${args.condition}` + this.orgCondtionStr
233
+ }
234
+ this.model.search(args.condition, args.model)
235
+ },
236
+ async allsuccess () {
237
+ let res = await this.$showMessage('确定通过全部抄表吗?操作后将不可取消', ['confirm', 'cancel'])
238
+ let condition = []
239
+ if (res === 'confirm') {
240
+ if (this.model.rows.length >= 0) {
241
+ if (this.model.model.f_hand_state[0] == `'待审核'`) {
242
+ for (let i = 0; i < this.model.rows.length; i++) {
243
+ let temp = {
244
+ f_hand_id: this.model.rows[i].id,
245
+ // 本次表底数
246
+ f_tablebase: this.model.rows[i].f_tablebase,
247
+ // 表类型
248
+ f_meter_classify: this.model.rows[i].f_meter_classify,
249
+ // 气表品牌
250
+ f_meter_brand: this.model.rows[i].f_meter_brand
251
+ }
252
+ condition.push(temp)
253
+ }
254
+ let uuid = this.$login.guid()
255
+ let data = {
256
+ uuid: uuid,
257
+ condition: condition,
258
+ f_audit_person: this.$login.f.name
259
+ }
260
+ await this.$resetpost('rs/logic/allhandPlanAudit', data, {resolveMsg: '操作成功', rejectMsg: '操作失败'})
261
+ this.search()
262
+ } else {
263
+ this.$showMessage('此为非待审核数据,无法修改')
264
+ }
265
+ } else {
266
+ this.$showMessage('暂无数据,无法通过当前所有抄表')
267
+ }
268
+ }
269
+ },
270
+ async success (row) {
271
+ let res = await this.$showMessage('确定通过该条抄表吗?操作后将不可取消', ['confirm', 'cancel'])
272
+ if (res === 'confirm') {
273
+ let data = {
274
+ // 抄表id
275
+ f_hand_id: row.id,
276
+ // 本次表底数
277
+ f_tablebase: row.f_tablebase,
278
+ // 表类型
279
+ f_meter_classify: row.f_meter_classify,
280
+ // 气表品牌
281
+ f_meter_brand: row.f_meter_brand,
282
+ f_audit_person: this.$login.f.name
283
+ }
284
+ await this.$resetpost('rs/logic/handPlanAudit', data, {resolveMsg: '操作成功', rejectMsg: '操作失败'})
285
+ this.search()
286
+ }
287
+ },
288
+ async allfaild () {
289
+ let res = await this.$showMessage('确定作废全部抄表吗?操作后将不可取消', ['confirm', 'cancel'])
290
+ let condition = '('
291
+ if (res === 'confirm') {
292
+ if (this.model.rows.length > 0) {
293
+ if (this.model.model.f_hand_state[0] === `'待审核'`) {
294
+ for (let i = 0; i < this.model.rows.length; i++) {
295
+ condition += `'` + this.model.rows[i].id + `',`
296
+ }
297
+ condition = condition.substring(0, condition.length - 1)
298
+ condition += ')'
299
+ let sql = `UPDATE t_handplan SET f_hand_state = '无效',f_audit_person = '${this.$login.f.name}',f_audit_date = getDate() WHERE id in ${condition}`
300
+ await this.$resetpost('rs/logic/runSQL', {sql: sql}, {resolveMsg: '操作成功', rejectMsg: '操作失败'})
301
+ this.search()
302
+ } else {
303
+ this.$showMessage('此为非待审核数据,无法修改')
304
+ }
305
+ } else {
306
+ this.$showMessage('暂无数据,无法作废当前所有抄表')
307
+ }
308
+ }
309
+ },
310
+ async faild (row) {
311
+ let res = await this.$showMessage('确定作废该条抄表吗?操作后将不可取消', ['confirm', 'cancel'])
312
+ if (res === 'confirm') {
313
+ // this.row = row
314
+ // this.pushdata.openid = row.f_open_id
315
+ // this.show = true
316
+ let sql = `UPDATE t_handplan SET f_hand_state = '无效',f_audit_person = '${this.$login.f.name}',f_audit_date = getDate() WHERE id = ${row.id}`
317
+ await this.$resetpost('rs/logic/runSQL', {sql: sql}, {resolveMsg: '操作成功', rejectMsg: '操作失败'})
318
+ this.search()
319
+ }
320
+ },
321
+ async confirm () {
322
+ await this.$resetpost('rs/logic/weixinHanPlanAudit', this.row, {resolveMsg: '操作成功', rejectMsg: '操作失败'})
323
+ await this.$resetpost('http://www.hunanhongdaranqi.com/weixin/rs/logic/meterReadFailed', this.pushdata, {resolveMsg: null, rejectMsg: null})
324
+ this.show = false
325
+ this.search()
326
+ }
327
+ },
328
+ computed: {
329
+ inputtores () {
330
+ // 获取抄表员
331
+ console.log('获取抄表员', this.$login.f)
332
+ let rs = []
333
+ if (this.$login.f.f_gasman.length > 0) {
334
+ for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
335
+ let temp = {
336
+ label: this.$login.f.f_gasman[i].name,
337
+ value: this.$login.f.f_gasman[i].name
338
+ }
339
+ rs.push(temp)
340
+ }
341
+ }
342
+ this.inputtores2 = rs
343
+ return [...rs]
344
+ }
345
+ }
346
+ }
347
+ </script>
package/src/main.js CHANGED
@@ -11,7 +11,7 @@ Vue.config.silent = true
11
11
 
12
12
  all()
13
13
  system(false)
14
- sale('meihekou')
14
+ sale('zhongyi')
15
15
  address()
16
16
  ldap()
17
17
  require('system-clients/src/styles/less/bootstrap.less')