sale-client 3.4.71 → 3.4.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.
Files changed (49) hide show
  1. package/.gradle/5.2.1/fileHashes/fileHashes.lock +0 -0
  2. package/.gradle/{5.5 → 6.1.1}/executionHistory/executionHistory.bin +0 -0
  3. package/.gradle/6.1.1/executionHistory/executionHistory.lock +0 -0
  4. package/.gradle/{5.5 → 6.1.1}/fileChanges/last-build.bin +0 -0
  5. package/.gradle/{5.5 → 6.1.1}/fileHashes/fileHashes.bin +0 -0
  6. package/.gradle/6.1.1/fileHashes/fileHashes.lock +0 -0
  7. package/.gradle/{5.5 → 6.1.1}/gc.properties +0 -0
  8. package/.gradle/7.1/dependencies-accessors/dependencies-accessors.lock +0 -0
  9. package/.gradle/7.1/executionHistory/executionHistory.bin +0 -0
  10. package/.gradle/7.1/executionHistory/executionHistory.lock +0 -0
  11. package/.gradle/7.1/fileHashes/fileHashes.bin +0 -0
  12. package/.gradle/7.1/fileHashes/fileHashes.lock +0 -0
  13. package/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  14. package/.gradle/buildOutputCleanup/cache.properties +2 -2
  15. package/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
  16. package/.gradle/checksums/checksums.lock +0 -0
  17. package/build/dev-server.js +5 -3
  18. package/package.json +1 -1
  19. package/src/components/charge/business/CardMeterCenter.vue +26 -0
  20. package/src/components/charge/business/DigitalCharge.vue +6 -6
  21. package/src/components/charge/business/OtherChargeNew.vue +9 -10
  22. package/src/components/charge/gasloss/gasLossOperate.vue +15 -10
  23. package/src/components/chargeBatch/ChargeGroupList.vue +267 -0
  24. package/src/components/chargeBatch/ChargeManageGroup.vue +2 -2
  25. package/src/components/revenue/Common/PaymentCode.vue +3 -3
  26. package/src/components/revenue/HandManager/MbpeopleList.vue +6 -6
  27. package/src/components/revenue/HandManager/MeterBookUser.vue +33 -2
  28. package/src/components/revenue/HandManager/RemainAdjustment.vue +282 -282
  29. package/src/components/revenue/base/leftview/meterinfodetail.vue +186 -186
  30. package/src/components/revenue/comprehen/ComprehenOperation/OverCharge/OverUseCharge.vue +407 -408
  31. package/src/components/revenue/comprehen/Maintenance/hand/handListMaintain.vue +615 -615
  32. package/src/filiale/macheng/UserBaseInfoNew.vue +346 -0
  33. package/src/filiale/macheng/sale.js +42 -41
  34. package/src/filiale/qianneng/GasPriceList.vue +18 -7
  35. package/src/filiale/qianneng/MbpeopleList.vue +2 -17
  36. package/src/filiale/tongchuan/bill/CustQueryEticket.vue +2 -2
  37. package/src/filiale/wuhai/MeterinfoTest.vue +891 -891
  38. package/src/filiale/wuhai/OtherChargeNew.vue +590 -0
  39. package/src/filiale/wuhai/Userinfo.vue +177 -177
  40. package/src/filiale/wuhai/sale.js +17 -16
  41. package/src/main.js +1 -1
  42. package/src/plugins/CardService.js +12 -0
  43. package/src/plugins/ChangeMeterService.js +751 -751
  44. package/src/sale.js +2 -0
  45. package/.gradle/5.5/executionHistory/executionHistory.lock +0 -0
  46. package/.gradle/5.5/fileContent/fileContent.lock +0 -0
  47. package/.gradle/5.5/fileHashes/fileHashes.lock +0 -0
  48. package/build/libs/SaleClient-3.1.1-11.jar +0 -0
  49. package/build/tmp/jar/MANIFEST.MF +0 -2
@@ -1,282 +1,282 @@
1
- <template>
2
- <div id="unit" class="flex-row">
3
- <div class="basic-main">
4
- <div class="flex">
5
- <criteria-paged :model="model" v-ref:paged>
6
- <criteria partial='criteria' v-ref:criteria @condition-changed="$parent.selfSearch">
7
- <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
8
- <div class="row">
9
- <div class="form-group col-sm-2" >
10
- <label class="font_normal_body">客户编号</label>
11
- <input type="text" class="input_search" style="width:60%"
12
- v-model="model.f_userinfo_code" placeholder='客户编号'
13
- condition="f_userinfo_code = '{}'" >
14
- </div>
15
- <div class="form-group col-sm-2">
16
- <label class="font_normal_body">客户名称</label>
17
- <input type="text" class="input_search" style="width:60%"
18
- v-model="model.f_user_name" placeholder='客户名称'
19
- condition="f_user_name like '%{}%'">
20
- </div>
21
- <div class="form-group col-sm-2">
22
- <label class="font_normal_body">客户地址</label>
23
- <input type="text" class="input_search" style="width:60%" style="width:60%" v-model="model.f_address" placeholder='客户地址'
24
- condition="u3.f_address like '%{}%'">
25
- </div>
26
- <div class="span" style="float:right;">&nbsp;&nbsp;
27
- <button class="button_search" @click="search()" v-el:cx>查询</button>
28
- <button class="button_clear" @click="$parent.$parent.clear()">清空</button>
29
- <!-- <div style="float: right" class="button_spacing"-->
30
- <!-- :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"-->
31
- <!-- @click="$parent.$parent.hidden()"></div>-->
32
- </div>
33
- </div>
34
- <div class="row" >
35
- <div class="col-sm-2 form-group">
36
- <label class="font_normal_body">归属起始</label>
37
- <datepicker placeholder="开始日期"
38
- style="width:60%"
39
- class="datepicker"
40
- v-model="model.startDate"
41
- :value.sync="model.startDate"
42
- :format="'yyyy-MM-dd'"
43
- ></datepicker>
44
- </div>
45
- <div class="col-sm-2 form-group">
46
- <label class="font_normal_body">归属结束</label>
47
- <datepicker placeholder="结束日期"
48
- style="width:60%"
49
- v-model="model.endDate"
50
- :value.sync="model.endDate"
51
- :format="'yyyy-MM-dd'"
52
- ></datepicker>
53
- </div>
54
- <div class="form-group col-sm-2">
55
- <label class="font_normal_body">电&emsp;&emsp;话</label>
56
- <input type="text" class="input_search" style="width:60%" v-model="model.f_user_phone" placeholder='电话'
57
- condition="f_user_phone like '%{}%'">
58
- </div>
59
- <div class="form-group col-sm-2">
60
- <label class="font_normal_body">表&emsp;&emsp;号</label>
61
- <input type="text" class="input_search" style="width:60%" style="width:60%" v-model="model.f_meternumber" placeholder='表号'
62
- condition="f_meternumber like '%{}%'">
63
- </div>
64
- <div class="form-group col-sm-2">
65
- <label class="font_normal_body">状&emsp;&emsp;态</label>
66
- <v-select id="price_states"
67
- v-model="model.price_states"
68
- placeholder='未调价'
69
- style="width: 60%"
70
- :value.sync="model.price_states"
71
- :options='$parent.$parent.price_states'
72
- condition="f_new_price {}"
73
- close-on-select></v-select>
74
- </div>
75
- <div class="form-group col-sm-2">
76
- <label class="font_normal_body">气表类型</label>
77
- <v-select id="f_source"
78
- v-model="model.f_source"
79
- placeholder='气表类型'
80
- style="width: 60%"
81
- :value.sync="model.f_source"
82
- :options='$parent.$parent.source'
83
- condition="f_source='{}'"
84
- close-on-select></v-select>
85
- </div>
86
- <div class="form-group col-sm-2">
87
- <label class="font_normal_body">用户类型</label>
88
- <v-select id="f_user_tye"
89
- v-model="model.f_user_type"
90
- placeholder='用户类型'
91
- style="width: 60%"
92
- :value.sync="model.f_user_type"
93
- :options='$parent.$parent.userTypes'
94
- condition="u2.f_user_type = '{}'"
95
- close-on-select></v-select>
96
- </div>
97
- <div class="form-group col-sm-2">
98
- <label class="font_normal_body">气&emsp;&emsp;价</label>
99
- <v-select id="f_price_name"
100
- v-model="model.price_name"
101
- placeholder='气价名称'
102
- style="width: 60%"
103
- :value.sync="model.price_name"
104
- :options='$parent.$parent.price_name'
105
- condition="sp.id = '{}'"
106
- close-on-select></v-select>
107
- </div>
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><nobr>序号</nobr></th>
115
- <th><nobr>客户编号</nobr></th>
116
- <th><nobr>表号</nobr></th>
117
- <th><nobr>姓名</nobr></th>
118
- <th><nobr>用户类型</nobr></th>
119
- <th><nobr>系统余量</nobr></th>
120
- <th><nobr>气表类型</nobr></th>
121
- <th><nobr>气价名称</nobr></th>
122
- <!-- <th><nobr>地址</nobr></th>-->
123
- <th><nobr>系统气价</nobr></th>
124
- <th><nobr>输入气价</nobr></th>
125
- <th><nobr>补差单价</nobr></th>
126
- <th><nobr>上期底数</nobr></th>
127
- <th><nobr>本期底数</nobr></th>
128
- <th><nobr>补差气量</nobr></th>
129
- <th><nobr>补差金额</nobr></th>
130
- <th><nobr>差价来源</nobr></th>
131
- <th><nobr>抄表日期</nobr></th>
132
- <th><nobr>操作</nobr></th>
133
- </tr>
134
- </template>
135
- <template partial='body'>
136
- <td style="text-align: center;">{{$index+1}}</td>
137
- <th style="text-align: center;">{{row.f_userinfo_code}}</th>
138
- <th style="text-align: center;">{{row.f_meternumber}}</th>
139
- <th style="text-align: center;">{{row.f_user_name}}</th>
140
- <th style="text-align: center;">{{row.f_user_type}}</th>
141
- <th style="text-align: center;">{{row.f_table_remaining}}</th>
142
- <th style="text-align: center;">{{row.f_meter_type}}</th>
143
- <th style="text-align: center;">{{row.f_price_name}}</th>
144
- <!-- <th style="text-align: center;">{{row.f_address}}</th>-->
145
- <th style="text-align: center;">{{row.f_old_price?row.f_old_price:row.f_price}}</th>
146
- <th style="text-align: center;">
147
- <div class="form-group" style="margin-bottom:0px;"
148
- v-if="!row.f_new_price>0">
149
- <input type="text" class="form-control" v-model="row.newprice" @blur="$parent.$parent.$parent.enter(row)"
150
- v-next-el="{id: $index+1}" :id="$index" style="width: 100px;padding: 6px;" :disabled="row.state === '开始'">
151
- </div>
152
- <div v-else>{{row.f_new_price}}</div>
153
- </th>
154
- <th style="text-align: center;">{{row.f_change_price}}</th>
155
- <th style="text-align: center;">{{row.f_last_tablebase}}</th>
156
- <th style="text-align: center;">{{row.f_tablebase}}</th>
157
- <th style="text-align: center;">{{row.pregas}}</th>
158
- <th style="text-align: center;">{{row.f_surplus_fee}}</th>
159
- <th style="text-align: center;">{{row.f_source}}</th>
160
- <th style="text-align: center;">{{row.f_input_date}}</th>
161
- <th style="text-align: center;">
162
- <button type="button" name="button" class="btn btn-link" v-if="row.f_new_price"
163
- @click.stop="$parent.$parent.$parent.delectHand(row) && row.states === 1">冲正
164
- </button>
165
- </th>
166
- </template>
167
- </data-grid>
168
- </criteria-paged>
169
- </div>
170
- </div>
171
- </div>
172
- </template>
173
-
174
- <script>
175
- import { HttpResetClass } from 'vue-client'
176
- import { PagedList } from 'vue-client'
177
- import Vue from 'vue'
178
- let readySomething = async function (self) {
179
- self.$refs.paged.$refs.criteria.model.startDate = self.$login.toStandardDateString()
180
- self.$refs.paged.$refs.criteria.model.endDate = self.$login.toStandardDateString()
181
- self.$resetpost('rs/sql/getpriceid', {data: {f_filialeids: self.$login.f.orgid}}, {resolveMsg: null, rejectMsg: null}).then((res) => {
182
- console.log(res.data)
183
- let rs = []
184
- for (let i = 0; i < res.data.length; i++) {
185
- if (res.data[i].f_price_type === '固定气价') {
186
- let temp = {
187
- label: res.data[i].f_price_name,
188
- flage: res.data[i].f_user_type,
189
- value: res.data[i].id
190
- }
191
- rs.push(temp)
192
- }
193
- }
194
- console.log(rs)
195
- self.pricers = [{label: '全部', value: '', flage: ''}, ...rs]
196
- self.$refs.paged.$refs.criteria.search()
197
- })
198
- }
199
-
200
- export default {
201
- title: '余量补差',
202
- data () {
203
- return {
204
- criteriaShow: false,
205
- pricers: [{label: '全部', value: '', flage: ''}],
206
- price_name: [{label: '全部', value: ''}],
207
- price_states: [{label: '全部', value: ''}, {label: '已调价', value: ' >0'}, {label: '未调价', value: ' <=0'}],
208
- source: [{label: '卡表抄表', value: '卡表抄表'}, {label: '机表抄表', value: '机表抄表'}],
209
- userTypes: this.$appdata.getParam('用户类型') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')] : [],
210
- condition: '',
211
- model: new PagedList('rs/sql/remainingAdjuest', 20, {startDate: 'this.model.startDate', endDate: 'this.model.endDate'}),
212
- f_new_price: 0.0,
213
- }
214
- },
215
- ready () {
216
- readySomething(this)
217
- },
218
- methods: {
219
- hidden () {
220
- this.criteriaShow = !this.criteriaShow
221
- },
222
- close () {
223
- this.show = false
224
- this.f_new_price = 0.0
225
- },
226
- async enter (row) {
227
- let http = new HttpResetClass()
228
- let param = {
229
- f_state: '有效',
230
- f_new_price: parseFloat(row.newprice),
231
- f_operator: this.$login.f.name,
232
- f_operatorid: this.$login.f.id,
233
- f_orgid: this.$login.f.orgid,
234
- f_orgname: this.$login.f.orgs,
235
- f_depid: this.$login.f.depids,
236
- f_depname: this.$login.f.deps,
237
- f_start_date: this.model.model.startDate + ' 00:00:00',
238
- f_end_date: this.model.model.endDate + ' 23:59:59',
239
- row: row
240
- }
241
- await http.load('POST', 'rs/logic/remaininga', {data: param}, {resolveMsg: null, rejectMsg: null})
242
- this.selfSearch(this.model)
243
- },
244
- search () {
245
- this.$refs.paged.$refs.criteria.$refs.partial.search()
246
- },
247
- selfSearch (args) {
248
- this.condition = `${args.condition} and u2.f_orgid = '${this.$login.f.orgid}'`
249
- this.model.search(this.condition, args.model)
250
- },
251
- clear () {
252
- Object.keys(this.$refs.paged.$refs.criteria.model).forEach((key) => {
253
- this.$refs.paged.$refs.criteria.model[key] = ''
254
- })
255
- },
256
- // 冲正
257
- delectHand (row) {
258
- this.$showMessage('冲正后不可恢复,确定冲正吗?', ['confirm', 'cancel']).then((res) => {
259
- if (res === 'confirm') {
260
- row.f_operator = this.$login.f.name
261
- row.f_operatorid = this.$login.f.id
262
- row.f_orgid = this.$login.f.orgid
263
- row.f_orgname = this.$login.f.orgs
264
- row.f_depid = this.$login.f.depids
265
- row.f_depname = this.$login.f.deps
266
- this.$resetpost('rs/logic/remainingAdjustRush', {data: row}).then(() => {
267
- // this.$dispatch('refresh', '正在处理', row)
268
- this.selfSearch(this.model)
269
- })
270
- }
271
- })
272
- },
273
- },
274
- computed: {
275
- },
276
- watch: {
277
- }
278
- }
279
- </script>
280
-
281
- <style >
282
- </style>
1
+ <template>
2
+ <div id="unit" class="flex-row">
3
+ <div class="basic-main">
4
+ <div class="flex">
5
+ <criteria-paged :model="model" v-ref:paged>
6
+ <criteria partial='criteria' v-ref:criteria @condition-changed="$parent.selfSearch">
7
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
8
+ <div class="row">
9
+ <div class="form-group col-sm-2" >
10
+ <label class="font_normal_body">客户编号</label>
11
+ <input type="text" class="input_search" style="width:60%"
12
+ v-model="model.f_userinfo_code" placeholder='客户编号'
13
+ condition="f_userinfo_code = '{}'" >
14
+ </div>
15
+ <div class="form-group col-sm-2">
16
+ <label class="font_normal_body">客户名称</label>
17
+ <input type="text" class="input_search" style="width:60%"
18
+ v-model="model.f_user_name" placeholder='客户名称'
19
+ condition="f_user_name like '%{}%'">
20
+ </div>
21
+ <div class="form-group col-sm-2">
22
+ <label class="font_normal_body">客户地址</label>
23
+ <input type="text" class="input_search" style="width:60%" style="width:60%" v-model="model.f_address" placeholder='客户地址'
24
+ condition="u3.f_address like '%{}%'">
25
+ </div>
26
+ <div class="span" style="float:right;">&nbsp;&nbsp;
27
+ <button class="button_search" @click="search()" v-el:cx>查询</button>
28
+ <button class="button_clear" @click="$parent.$parent.clear()">清空</button>
29
+ <!-- <div style="float: right" class="button_spacing"-->
30
+ <!-- :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"-->
31
+ <!-- @click="$parent.$parent.hidden()"></div>-->
32
+ </div>
33
+ </div>
34
+ <div class="row" >
35
+ <div class="col-sm-2 form-group">
36
+ <label class="font_normal_body">归属起始</label>
37
+ <datepicker placeholder="开始日期"
38
+ style="width:60%"
39
+ class="datepicker"
40
+ v-model="model.startDate"
41
+ :value.sync="model.startDate"
42
+ :format="'yyyy-MM-dd'"
43
+ ></datepicker>
44
+ </div>
45
+ <div class="col-sm-2 form-group">
46
+ <label class="font_normal_body">归属结束</label>
47
+ <datepicker placeholder="结束日期"
48
+ style="width:60%"
49
+ v-model="model.endDate"
50
+ :value.sync="model.endDate"
51
+ :format="'yyyy-MM-dd'"
52
+ ></datepicker>
53
+ </div>
54
+ <div class="form-group col-sm-2">
55
+ <label class="font_normal_body">电&emsp;&emsp;话</label>
56
+ <input type="text" class="input_search" style="width:60%" v-model="model.f_user_phone" placeholder='电话'
57
+ condition="f_user_phone like '%{}%'">
58
+ </div>
59
+ <div class="form-group col-sm-2">
60
+ <label class="font_normal_body">表&emsp;&emsp;号</label>
61
+ <input type="text" class="input_search" style="width:60%" style="width:60%" v-model="model.f_meternumber" placeholder='表号'
62
+ condition="f_meternumber like '%{}%'">
63
+ </div>
64
+ <div class="form-group col-sm-2">
65
+ <label class="font_normal_body">状&emsp;&emsp;态</label>
66
+ <v-select id="price_states"
67
+ v-model="model.price_states"
68
+ placeholder='未调价'
69
+ style="width: 60%"
70
+ :value.sync="model.price_states"
71
+ :options='$parent.$parent.price_states'
72
+ condition="f_new_price {}"
73
+ close-on-select></v-select>
74
+ </div>
75
+ <div class="form-group col-sm-2">
76
+ <label class="font_normal_body">气表类型</label>
77
+ <v-select id="f_source"
78
+ v-model="model.f_source"
79
+ placeholder='气表类型'
80
+ style="width: 60%"
81
+ :value.sync="model.f_source"
82
+ :options='$parent.$parent.source'
83
+ condition="f_source='{}'"
84
+ close-on-select></v-select>
85
+ </div>
86
+ <div class="form-group col-sm-2">
87
+ <label class="font_normal_body">用户类型</label>
88
+ <v-select id="f_user_tye"
89
+ v-model="model.f_user_type"
90
+ placeholder='用户类型'
91
+ style="width: 60%"
92
+ :value.sync="model.f_user_type"
93
+ :options='$parent.$parent.userTypes'
94
+ condition="u2.f_user_type = '{}'"
95
+ close-on-select></v-select>
96
+ </div>
97
+ <div class="form-group col-sm-2">
98
+ <label class="font_normal_body">气&emsp;&emsp;价</label>
99
+ <v-select id="f_price_name"
100
+ v-model="model.price_name"
101
+ placeholder='气价名称'
102
+ style="width: 60%"
103
+ :value.sync="model.price_name"
104
+ :options='$parent.$parent.price_name'
105
+ condition="sp.id = '{}'"
106
+ close-on-select></v-select>
107
+ </div>
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><nobr>序号</nobr></th>
115
+ <th><nobr>客户编号</nobr></th>
116
+ <th><nobr>表号</nobr></th>
117
+ <th><nobr>姓名</nobr></th>
118
+ <th><nobr>用户类型</nobr></th>
119
+ <th><nobr>系统余量</nobr></th>
120
+ <th><nobr>气表类型</nobr></th>
121
+ <th><nobr>气价名称</nobr></th>
122
+ <!-- <th><nobr>地址</nobr></th>-->
123
+ <th><nobr>系统气价</nobr></th>
124
+ <th><nobr>输入气价</nobr></th>
125
+ <th><nobr>补差单价</nobr></th>
126
+ <th><nobr>上期底数</nobr></th>
127
+ <th><nobr>本期底数</nobr></th>
128
+ <th><nobr>补差气量</nobr></th>
129
+ <th><nobr>补差金额</nobr></th>
130
+ <th><nobr>差价来源</nobr></th>
131
+ <th><nobr>抄表日期</nobr></th>
132
+ <th><nobr>操作</nobr></th>
133
+ </tr>
134
+ </template>
135
+ <template partial='body'>
136
+ <td style="text-align: center;">{{$index+1}}</td>
137
+ <th style="text-align: center;">{{row.f_userinfo_code}}</th>
138
+ <th style="text-align: center;">{{row.f_meternumber}}</th>
139
+ <th style="text-align: center;">{{row.f_user_name}}</th>
140
+ <th style="text-align: center;">{{row.f_user_type}}</th>
141
+ <th style="text-align: center;">{{row.f_table_remaining}}</th>
142
+ <th style="text-align: center;">{{row.f_meter_type}}</th>
143
+ <th style="text-align: center;">{{row.f_price_name}}</th>
144
+ <!-- <th style="text-align: center;">{{row.f_address}}</th>-->
145
+ <th style="text-align: center;">{{row.f_old_price?row.f_old_price:row.f_price}}</th>
146
+ <th style="text-align: center;">
147
+ <div class="form-group" style="margin-bottom:0px;"
148
+ v-if="!row.f_new_price>0">
149
+ <input type="text" class="form-control" v-model="row.newprice" @blur="$parent.$parent.$parent.enter(row)"
150
+ v-next-el="{id: $index+1}" :id="$index" style="width: 100px;padding: 6px;" :disabled="row.state === '开始'">
151
+ </div>
152
+ <div v-else>{{row.f_new_price}}</div>
153
+ </th>
154
+ <th style="text-align: center;">{{row.f_change_price}}</th>
155
+ <th style="text-align: center;">{{row.f_last_tablebase}}</th>
156
+ <th style="text-align: center;">{{row.f_tablebase}}</th>
157
+ <th style="text-align: center;">{{row.pregas}}</th>
158
+ <th style="text-align: center;">{{row.f_surplus_fee}}</th>
159
+ <th style="text-align: center;">{{row.f_source}}</th>
160
+ <th style="text-align: center;">{{row.f_input_date}}</th>
161
+ <th style="text-align: center;">
162
+ <button type="button" name="button" class="btn btn-link" v-if="row.f_new_price"
163
+ @click.stop="$parent.$parent.$parent.delectHand(row) && row.states === 1">冲正
164
+ </button>
165
+ </th>
166
+ </template>
167
+ </data-grid>
168
+ </criteria-paged>
169
+ </div>
170
+ </div>
171
+ </div>
172
+ </template>
173
+
174
+ <script>
175
+ import { HttpResetClass } from 'vue-client'
176
+ import { PagedList } from 'vue-client'
177
+ import Vue from 'vue'
178
+ let readySomething = async function (self) {
179
+ self.$refs.paged.$refs.criteria.model.startDate = self.$login.toStandardDateString()
180
+ self.$refs.paged.$refs.criteria.model.endDate = self.$login.toStandardDateString()
181
+ self.$resetpost('rs/sql/getpriceid', {data: {f_filialeids: self.$login.f.orgid}}, {resolveMsg: null, rejectMsg: null}).then((res) => {
182
+ console.log(res.data)
183
+ let rs = []
184
+ for (let i = 0; i < res.data.length; i++) {
185
+ if (res.data[i].f_price_type === '固定气价') {
186
+ let temp = {
187
+ label: res.data[i].f_price_name,
188
+ flage: res.data[i].f_user_type,
189
+ value: res.data[i].id
190
+ }
191
+ rs.push(temp)
192
+ }
193
+ }
194
+ console.log(rs)
195
+ self.pricers = [{label: '全部', value: '', flage: ''}, ...rs]
196
+ self.$refs.paged.$refs.criteria.search()
197
+ })
198
+ }
199
+
200
+ export default {
201
+ title: '余量补差',
202
+ data () {
203
+ return {
204
+ criteriaShow: false,
205
+ pricers: [{label: '全部', value: '', flage: ''}],
206
+ price_name: [{label: '全部', value: ''}],
207
+ price_states: [{label: '全部', value: ''}, {label: '已调价', value: ' >0'}, {label: '未调价', value: ' <=0'}],
208
+ source: [{label: '卡表抄表', value: '卡表抄表'}, {label: '机表抄表', value: '机表抄表'}],
209
+ userTypes: this.$appdata.getParam('用户类型') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')] : [],
210
+ condition: '',
211
+ model: new PagedList('rs/sql/remainingAdjuest', 20, {startDate: 'this.model.startDate', endDate: 'this.model.endDate'}),
212
+ f_new_price: 0.0,
213
+ }
214
+ },
215
+ ready () {
216
+ readySomething(this)
217
+ },
218
+ methods: {
219
+ hidden () {
220
+ this.criteriaShow = !this.criteriaShow
221
+ },
222
+ close () {
223
+ this.show = false
224
+ this.f_new_price = 0.0
225
+ },
226
+ async enter (row) {
227
+ let http = new HttpResetClass()
228
+ let param = {
229
+ f_state: '有效',
230
+ f_new_price: parseFloat(row.newprice),
231
+ f_operator: this.$login.f.name,
232
+ f_operatorid: this.$login.f.id,
233
+ f_orgid: this.$login.f.orgid,
234
+ f_orgname: this.$login.f.orgs,
235
+ f_depid: this.$login.f.depids,
236
+ f_depname: this.$login.f.deps,
237
+ f_start_date: this.model.model.startDate + ' 00:00:00',
238
+ f_end_date: this.model.model.endDate + ' 23:59:59',
239
+ row: row
240
+ }
241
+ await http.load('POST', 'rs/logic/remaininga', {data: param}, {resolveMsg: null, rejectMsg: null})
242
+ this.selfSearch(this.model)
243
+ },
244
+ search () {
245
+ this.$refs.paged.$refs.criteria.$refs.partial.search()
246
+ },
247
+ selfSearch (args) {
248
+ this.condition = `${args.condition} and u2.f_orgid = '${this.$login.f.orgid}'`
249
+ this.model.search(this.condition, args.model)
250
+ },
251
+ clear () {
252
+ Object.keys(this.$refs.paged.$refs.criteria.model).forEach((key) => {
253
+ this.$refs.paged.$refs.criteria.model[key] = ''
254
+ })
255
+ },
256
+ // 冲正
257
+ delectHand (row) {
258
+ this.$showMessage('冲正后不可恢复,确定冲正吗?', ['confirm', 'cancel']).then((res) => {
259
+ if (res === 'confirm') {
260
+ row.f_operator = this.$login.f.name
261
+ row.f_operatorid = this.$login.f.id
262
+ row.f_orgid = this.$login.f.orgid
263
+ row.f_orgname = this.$login.f.orgs
264
+ row.f_depid = this.$login.f.depids
265
+ row.f_depname = this.$login.f.deps
266
+ this.$resetpost('rs/logic/remainingAdjustRush', {data: row}).then(() => {
267
+ // this.$dispatch('refresh', '正在处理', row)
268
+ this.selfSearch(this.model)
269
+ })
270
+ }
271
+ })
272
+ },
273
+ },
274
+ computed: {
275
+ },
276
+ watch: {
277
+ }
278
+ }
279
+ </script>
280
+
281
+ <style >
282
+ </style>