sale-client 3.7.30 → 3.7.31-lyls

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.
@@ -1,2 +1,2 @@
1
- #Mon Jan 05 11:37:36 CST 2026
1
+ #Fri Aug 30 11:31:58 CST 2024
2
2
  gradle.version=5.2.1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sale-client",
3
- "version": "3.7.30",
3
+ "version": "3.7.31-lyls",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -520,7 +520,7 @@ let meterBookGen = function *(self) {
520
520
  },
521
521
 
522
522
  getPricenames () {
523
- return this.$GetSaleParam.getPriceByOrg(this.f_filialeid)
523
+ return this.$GetSaleParam.getPriceByOrgNoLow(this.f_filialeid)
524
524
  },
525
525
 
526
526
  adjustables () {
@@ -1420,11 +1420,13 @@
1420
1420
  },
1421
1421
  // 单条下发计划
1422
1422
  downHand (row) {
1423
+ this.batchDownFlag = false
1423
1424
  console.log('~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~' + row.f_userfiles_id)
1424
1425
  this.down('single', `f_userfiles_id = '${row.f_userfiles_id}'`, row)
1425
1426
  },
1426
1427
  // 批量下发计划
1427
1428
  batchDownHand () {
1429
+ this.batchDownFlag = true
1428
1430
  this.down('batch', this.model.condition, this.model.count)
1429
1431
  },
1430
1432
  // batchDownHand () {
@@ -1497,7 +1499,11 @@
1497
1499
  endDate: this.model.params.endDate,
1498
1500
  condition: this.condition,
1499
1501
  f_operator: this.$login.f.name,
1500
- f_operatorid: this.$login.f.id
1502
+ f_operatorid: this.$login.f.id,
1503
+ condition1: ''
1504
+ }
1505
+ if (this.condition.includes('f_userfiles_id in') || this.batchDownFlag) {
1506
+ param.condition1 = ` with(index(ix_hd_hs)) `
1501
1507
  }
1502
1508
  if (this.downModel.downWay === 'downWithSelf') {
1503
1509
  param.inputtor = this.downModel.downInputtor[0]
@@ -1535,6 +1541,7 @@
1535
1541
  }
1536
1542
  },
1537
1543
  initModal () {
1544
+ this.batchDownFlag = false
1538
1545
  this.downModel = {
1539
1546
  downDate: Vue.$login.toStandardDateString(),
1540
1547
  downWay: 'downWithUserfiles',
@@ -0,0 +1,662 @@
1
+ <template>
2
+ <div id="unit" class="flex-row">
3
+ <validator name='m'>
4
+ <div class="basic-main" style="margin-left: 1%;" >
5
+
6
+ <criteria-paged :model="model" v-ref:paged @sort="sort" >
7
+ <criteria partial='criteria' v-ref:criteria @condition-changed="$parent.selfSearch">
8
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
9
+ <div class="row">
10
+ <div class="form-group col-sm-2">
11
+ <label class="font_normal_body">组织机构</label>
12
+ <res-select
13
+ restype='organization'
14
+ @res-select="$parent.$parent.getorg"
15
+ is-mul="false"
16
+ :initresid='$parent.$parent.curorgid'
17
+ >
18
+ </res-select>
19
+ </div>
20
+ <div class="form-group col-sm-2">
21
+ <label class="font_normal_body">客户编号</label>
22
+ <input type="text" class="input_search" style="width:60%" v-model="model.f_userinfo_code"
23
+ @keyup.enter="search()" condition="f_userinfo_code = '{}'" placeholder='客户编号'>
24
+ </div>
25
+ <div class="form-group col-sm-2">
26
+ <label class="font_normal_body">客户名称</label>
27
+ <input type="text" class="input_search" style="width:60%" v-model="model.f_user_name"
28
+ @keyup.enter="search()" condition="f_user_name like '%{}%'" placeholder='客户姓名'>
29
+ </div>
30
+
31
+ <div style="float:right">
32
+ <button class="button_search" @click="search(), $parent.$parent.clean()">查询</button>
33
+ <button class="button_clear" @click="$parent.$parent.clear()">清空</button>
34
+ <div style="float: right" class="button_spacing" :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}" @click="$parent.$parent.hidden()"></div>
35
+ </div>
36
+ </div>
37
+ <div class="row" v-if="$parent.$parent.criteriaShow">
38
+ <div class="form-group col-sm-2" >
39
+ <label class="font_normal_body">旧客户号</label>
40
+ <input type="text" class="input_search" style="width:60%" v-model="model.f_olduserinfo_code" placeholder='客户编号'
41
+ condition="f_olduserinfo_code = '{}'">
42
+ </div>
43
+ <div class="form-group col-sm-2">
44
+ <label class="font_normal_body">表&emsp;&emsp;号</label>
45
+ <input type="text" class="input_search" style="width:60%" v-model="model.f_meternumber" placeholder='表号'
46
+ condition="f_meternumber = '{}'">
47
+ </div>
48
+ <div class="form-group col-sm-2">
49
+ <label class="font_normal_body">卡&emsp;&emsp;号</label>
50
+ <input type="text" class="input_search" style="width:60%" v-model="model.f_card_id" placeholder='卡号'
51
+ condition="f_card_id = '{}'">
52
+ </div>
53
+ <div class="form-group col-sm-2">
54
+ <label class="font_normal_body">用气性质</label>
55
+ <v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
56
+ :options='$parent.$parent.gasproperties2' placeholder='用气性质'
57
+ close-on-select condition="f_gasproperties='{}'"></v-select>
58
+ </div>
59
+ <div class="form-group col-sm-2">
60
+ <label class="font_normal_body">客户电话</label>
61
+ <input type="text" class="input_search" style="width:60%" v-model="model.f_user_phone" placeholder='客户电话'
62
+ condition="f_user_phone = '{}'">
63
+ </div>
64
+ <div class="form-group col-sm-2">
65
+ <label class="font_normal_body">客户地址</label>
66
+ <input type="text" class="input_search" style="width:60%" v-model="model.f_address"
67
+ condition="f_address like '%{}%'" placeholder='客户地址'>
68
+ </div>
69
+ </div>
70
+ </div>
71
+ </criteria>
72
+ <data-grid :model="model" class="list_area table_sy" v-ref:grid partial='list'>
73
+ <template partial='head'>
74
+ <tr>
75
+ <th>
76
+ <nobr>序号</nobr>
77
+ </th>
78
+ <th>
79
+ <nobr>客户编号</nobr>
80
+ </th>
81
+ <th>
82
+ <nobr>客户信息</nobr>
83
+ </th>
84
+ <th>
85
+ <nobr>表号</nobr>
86
+ </th>
87
+ <th>
88
+ <nobr>卡号</nobr>
89
+ </th>
90
+ <th>
91
+ <nobr>客户地址</nobr>
92
+ </th>
93
+ <th>
94
+ <nobr>气价名称</nobr>
95
+ </th>
96
+ <th>
97
+ <nobr>表具信息</nobr>
98
+ </th>
99
+ <th>
100
+ <nobr>状态</nobr>
101
+ </th>
102
+ <th>
103
+ <nobr>操作</nobr>
104
+ </th>
105
+ <th>
106
+ <nobr>历史操作</nobr>
107
+ </th>
108
+ </tr>
109
+ </template>
110
+ <template partial='body'>
111
+ <td style="text-align: center;">{{$index + 1}}</td>
112
+ <td style="text-align: center;white-space: nowrap;">{{row.f_userinfo_code}}</td>
113
+ <td style="text-align: center;white-space: nowrap;">{{row.f_user_name}}</td>
114
+ <td style="text-align: center;white-space: nowrap;">{{row.f_meternumber}}</td>
115
+ <td style="text-align: center;white-space: nowrap;">{{row.f_card_id}}</td>
116
+ <td style="text-align: center;white-space: nowrap;">{{row.f_address}}</td>
117
+ <td style="text-align: center;white-space: nowrap;">{{row.f_price_name}}</td>
118
+ <td style="text-align: center;white-space: nowrap;">{{row.f_meter_brand}}</td>
119
+ <td style="text-align: center;white-space: nowrap;">{{row.f_user_state}}</td>
120
+ <td style="text-align: center;white-space: nowrap;">
121
+ <button type="button" name="button" class="button_search button_spacing width-60" v-if="row.f_user_state === '正常'"
122
+ @click.stop="$parent.$parent.$parent.priceshow(row)">调价
123
+ </button>
124
+ </td>
125
+ <td style="text-align: center;white-space: nowrap;">
126
+ <button type="button" name="button" class="button_search button_spacing width-60" v-if="row.f_user_state === '正常'"
127
+ @click.stop="$parent.$parent.$parent.lookOver(row)">查看
128
+ </button>
129
+ </td>
130
+ </template>
131
+ </data-grid>
132
+ </criteria-paged>
133
+ </div>
134
+
135
+ <modal :show.sync="show" width="50%" backdrop="false" style="overflow: scroll;">
136
+
137
+ <header slot="modal-header" class="modal-header">
138
+ <h4 class="modal-title" style="text-align: center;">气价调整</h4>
139
+ </header>
140
+ <article slot="modal-body" class="modal-body">
141
+ <div class="panel panel-primary datapanel">
142
+ <form class="form-horizontal">
143
+ <div class="form-group">
144
+ <div class="row">
145
+ <div class="col-sm-4 flex-row ">
146
+ <label class="control-label">客户编号</label>
147
+ <p class="form-control-static">{{row.f_userinfo_code}}</p>
148
+ </div>
149
+ <div class="col-sm-4 flex-row ">
150
+ <label class="control-label">客户名称</label>
151
+ <p class="form-control-static">{{row.f_user_name}}</p>
152
+ </div>
153
+ <div class="col-sm-4 flex-row ">
154
+ <label class="control-label">客户电话</label>
155
+ <p class="form-control-static">{{row.f_user_phone}}</p>
156
+ </div>
157
+ </div>
158
+ <div class="row">
159
+ <div class="col-sm-12 flex-row ">
160
+ <label class="control-label">客户地址</label>
161
+ <p class="form-control-static">{{row.f_address}}</p>
162
+ </div>
163
+ </div>
164
+ </div>
165
+ </form>
166
+
167
+ </div>
168
+
169
+ <div class="panel panel-primary datapanel">
170
+ <form class="form-horizontal select-overspread">
171
+ <div class="form-group">
172
+ <div class="row bg-info text-center text-center" style="height:35px">
173
+ <div style="float: left">
174
+ <label class="font_normal_body">旧气价信息</label>
175
+ </div>
176
+ </div>
177
+ <div class="row" style="margin-top: 2%">
178
+ <div class="col-sm-3 flex-row ">
179
+ <label class="control-label">客户类型</label>
180
+ <p class="form-control-static">{{row.f_user_type}}</p>
181
+ </div>
182
+ <div class="col-sm-3 flex-row ">
183
+ <label class="control-label">用气性质</label>
184
+ <p class="form-control-static">{{row.f_gasproperties}}</p>
185
+ </div>
186
+ <div class="col-sm-3 flex-row ">
187
+ <label class="control-label">气价类型</label>
188
+ <p class="form-control-static">{{row.f_price_type}}</p>
189
+ </div>
190
+ <div class="col-sm-3 flex-row ">
191
+ <label class="control-label">气价名称</label>
192
+ <p class="form-control-static">{{row.f_price_name}}</p>
193
+ </div>
194
+ </div>
195
+
196
+ <div class="row bg-info text-center text-center" style="height:35px">
197
+ <div style="float: left">
198
+ <label class="font_normal_body">新气价信息</label>
199
+ </div>
200
+ </div>
201
+
202
+ <div class="row" style="margin-top: 2%">
203
+ <label class="radio-inline col-sm-3">
204
+ <input type="radio" value="系统气价" v-model="model.type" class="magic-radio" checked id="type_two">
205
+ <label for="type_two">系统气价</label>
206
+ <!-- <strong>IC卡丢失或损坏</strong> -->
207
+ </label>
208
+ <label class="radio-inline col-sm-4">
209
+ <input type="radio" value="自定义气价" v-model="model.type" class="magic-radio" id="type_three">
210
+ <label for="type_three">自定义气价</label>
211
+ <!-- <strong>IC卡信息错乱</strong> -->
212
+ </label>
213
+ </div>
214
+ <div class="row" style="margin-top: 2%" v-if="model.type ==='自定义气价'">
215
+
216
+ <div :class="[$m.f_price_type.required ? 'has-error' : '']" class="col-sm-4 form-group">
217
+ <input class="input_search" style="width:60%" type="text" v-model="newinfo.f_price_type" v-show="false"
218
+ v-validate:f_price_type='{required: true }'>
219
+ <label title="参数:气价类型" class="font_normal_body" for="f_price_type">气价类型</label>
220
+ <v-select :disabled='isEdit'
221
+ :options='pricetype'
222
+ :value-single="true"
223
+ :value.sync="newinfo.f_price_type"
224
+ close-on-select
225
+ id="f_price_type"
226
+ placeholder='请选择'
227
+ v-model="newinfo.f_price_type">
228
+ </v-select>
229
+ </div>
230
+ <div class="col-sm-4" :class="[$m.f_price_name.required ? 'has-error' : 'has-success']">
231
+ <label for="f_price_name" class="font_normal_body">气价名称</label>
232
+ <input style="width:60%" class="input_search" type="text" v-model="newinfo.f_price_name"
233
+ v-validate:f_price_name='{required: true }' placeholder="气价名称">
234
+ </div>
235
+ <div :class="[$m.f_stairmonths.required || $v.f_stairmonths.dctest ? 'has-error' : 'has-success']" class="col-sm-4 form-group"v-if="newinfo.f_price_type ==='阶梯气价'">
236
+ <label class="font_normal_body" for="f_stairmonths">阶段月数</label>
237
+ <input class="input_search" style="width:60%" type="number"
238
+ v-model="newinfo.f_stairmonths" v-validate:f_stairmonths='{required: true, dctest: [ 12, "<=" ] }'>
239
+ </div>
240
+ <div :class="[$m.f_stair_start_date.required ? 'has-error' : 'has-success']" class="col-sm-4 form-group" v-if="newinfo.f_price_type ==='阶梯气价'">
241
+ <input class="input_search" style="width:60%" type="text" v-model="newinfo.f_stair_start_date" v-show="false"
242
+ v-validate:f_stair_start_date='{required: true }'>
243
+ <label class="font_normal_body" for="f_stair_start_date">开始日期</label>
244
+ <datepicker :format="'yyyy-MM-dd'"
245
+ :value.sync="newinfo.f_stair_start_date"
246
+ class="datepicker"
247
+ id="f_stair_start_date"
248
+ placeholder="阶梯开始日期"
249
+ style="width: 60%"
250
+ v-model="newinfo.f_stair_start_date">
251
+ </datepicker>
252
+ </div>
253
+
254
+ <div class="col-sm-4" :class="[$m.f_price.required ? 'has-error' : 'has-success']" v-if="newinfo.f_price_type ==='固定气价'">
255
+ <label for="f_price" class="font_normal_body">&nbsp;&nbsp;&nbsp;单价&nbsp;&nbsp;&nbsp;</label>
256
+ <input style="width:60%" class="input_search" type="number" v-model="detailprice[0].f_price"
257
+ v-validate:f_price='{required: true }' placeholder="单价">
258
+ </div>
259
+ <div class='auto' style="margin-top: 10px;">
260
+ <stair-price :isheat.sync="model.f_isheat" :stairmodel.sync='detailprice'
261
+ v-if="newinfo.f_price_type ==='阶梯气价'"></stair-price>
262
+ </div>
263
+ </div>
264
+ <div class="row" style="margin-top: 2%" v-if="model.type ==='系统气价'">
265
+ <div class="col-sm-4 flex-row" >
266
+ <label class="control-label">用户类型</label>
267
+ <v-select :value.sync="newinfo.f_user_type"
268
+ :options='usertypes' placeholder='用户类型'
269
+ @change="userTypeChange()"
270
+ close-on-select></v-select>
271
+ </div>
272
+ <div class="col-sm-4 flex-row"
273
+ :class="[$m.gas.required ? 'has-error' : '']">
274
+ <label class="control-label">用气性质</label>
275
+ <input type="text" v-show="false" v-model="$refs.gas.selectedItems" v-validate:gas='{required: true }'>
276
+ <v-select :value.sync="newinfo.f_gasproperties" v-model="newinfo.f_gasproperties"
277
+ :options='gasproperties' placeholder='用气性质'
278
+ close-on-select v-ref:gas></v-select>
279
+ </div>
280
+ <div class="col-sm-4 flex-row" :class="[$m.type.required ? 'has-error' : '']">
281
+ <label class="control-label">气价类型</label>
282
+ <v-select :value.sync="newinfo.pricetype" v-model="newinfo.pricetype"
283
+ placeholder='气价类型' :options="pricetypes"
284
+ close-on-select v-ref:type>
285
+ </v-select>
286
+ <input type="text" v-show="false" v-model="$refs.type.selectedItems" v-validate:type='{required: true }'>
287
+ </div>
288
+ </div>
289
+ <div class="row" style="margin-top: 2%" v-if="model.type ==='系统气价'">
290
+
291
+ <div class="col-sm-4 flex-row" :class="[$m.name.required ? 'has-error' : '']">
292
+ <label class="control-label">气价名称</label>
293
+ <v-select :value.sync="newinfo.pricename" v-model="newinfo.pricename"
294
+ placeholder='气价名称' :options="getPricenames()" @change="priceChange"
295
+ close-on-select :disabled='newinfo.pricetype.length === 0 ' v-ref:name></v-select>
296
+ <input type="text" v-show="false" v-model="$refs.name.selectedItems" v-validate:name='{required: true }'>
297
+ <span class="col-sm-3" v-if="newinfo.pricetype.length === 1 && gasproperties.length === 0"
298
+ style="color:red;text-align:right">请确定用气性质已选择!!</span>
299
+ </div>
300
+
301
+ <div class="col-sm-4 flex-row">
302
+ <label class="control-label">气价备注</label>
303
+ <input type="text" class="input_search" style="width:60%" v-model="newinfo.f_price_comments" placeholder='气价备注' disabled>
304
+ </div>
305
+
306
+ <div class="col-sm-4 flex-row" >
307
+ <label class="control-label" >生效日期</label>
308
+ <input class="input_search" style="width:60%" type="text" v-model="preformdate"
309
+ :disabled="true">
310
+ </div>
311
+
312
+ </div>
313
+ </div>
314
+ </form>
315
+ </div>
316
+
317
+ <upload :blodid="row.f_userinfo_id" v-if="config.showupload" isremark="true" fusetype="单户调价"></upload>
318
+ </article>
319
+ <footer slot="modal-footer" class="modal-footer">
320
+ <button class="button_search" :disabled='!$m.valid ' @click="modifyUser">确定</button>
321
+ <button type="button" class="button_clear" @click='close'>取消</button>
322
+ </footer>
323
+
324
+ </modal>
325
+
326
+
327
+ <modal :backdrop="false" :show.sync="showPopUps" v-if="showPopUps" width="1000px">
328
+ <header class="modal-header" slot="modal-header">
329
+ <button @click="showPopUps=!showPopUps" class="close" type="button"><span>&times;</span></button>
330
+ <h4 class="modal-title">历史记录</h4>
331
+ </header>
332
+ <article class="modal-body" slot="modal-body" style="height:100%;width:100%" title="历史记录">
333
+ <user-price-change-history :row="row" :show.sync="showPopUps" v-on:toggle="close"></user-price-change-history>
334
+ </article>
335
+ <footer class="modal-footer" slot="modal-footer">
336
+
337
+ </footer>
338
+ </modal>
339
+ </validator>
340
+
341
+ </div>
342
+
343
+ </template>
344
+
345
+ <script>
346
+ import {PagedList} from 'vue-client'
347
+ import Vue from 'vue'
348
+
349
+ let loadParamGem = async function (self) {
350
+ if (!self.f_filialeid) {
351
+ self.f_filialeid = self.$login.f.orgid
352
+ }
353
+ await self.$LoadParams.loadParam(self.f_filialeid)
354
+ }
355
+
356
+ export default {
357
+ title: '单户调价',
358
+ data () {
359
+ return {
360
+ model: new PagedList('rs/sql/sale_getUserPrice', 30, {orderitem: '"f_userinfo_id DESC"'}),
361
+ row: null, // 选择一条客户信息,对其进行修改
362
+ rows: [], // 客户档案选择一条时,将只显示一条信息,rows用来存放整页的数据
363
+ orderDefault: 'f_createfile_date desc',
364
+ orderFields: {
365
+ f_userinfo_id: 'no'
366
+ },
367
+ config: {
368
+ showupload: true
369
+ },
370
+ detailprice: [],
371
+ newinfo: {
372
+ f_user_type: '',
373
+ f_gasproperties: '',
374
+ pricetype: '',
375
+ pricename: '',
376
+ f_perform_date: this.$login.toStandardDateString() + ' 00:00:00' // 操作时间
377
+ },
378
+ preformdate: this.$login.toStandardDateString() + ' 00:00:00',
379
+ showPerformDate: false,
380
+ show: false,
381
+ showPopUps: false,
382
+ curorgid: [this.$login.f.orgid],
383
+ f_filialeid: this.$login.f.orgid,
384
+ criteriaShow: false,
385
+ valid: false,
386
+ pricetype: [{label: '固定气价', value: '固定气价'}, {label: '阶梯气价', value: '阶梯气价'}],
387
+ gasproperties: [],
388
+ gasproperties2: this.$appdata.getParam('用气性质') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('用气性质')] : [],
389
+ usertypes: this.$appdata.getParam('用户类型') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')] : [],
390
+ pricetypes: this.$appdata.getParam('气价类型') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('气价类型')] : []
391
+ // userstates: [{label: '全部', value: ''}, ...this.$appdata.getParam('客户状态')]
392
+ }
393
+ },
394
+ methods: {
395
+ userTypeChange () {
396
+ this.gasproperties = []
397
+ if (this.newinfo.f_user_type.length === 1) {
398
+ this.gasproperties = this.$appdata.getParam(this.newinfo.f_user_type[0])
399
+ }
400
+ },
401
+
402
+ hidden () {
403
+ this.criteriaShow = !this.criteriaShow
404
+ },
405
+ search () {
406
+ this.$refs.paged.$refs.criteria.search()
407
+ },
408
+ priceshow (row) {
409
+ this.show = true
410
+ this.showPerformDate = (row.f_calculation == '表端结算')
411
+ this.row = row
412
+ },
413
+ lookOver (row) {
414
+ this.showPopUps = true
415
+ this.row = row
416
+ },
417
+ getPricenames () {
418
+ console.log('气价。,。。', this.newinfo.pricetype, this.newinfo.f_user_type, this.newinfo.f_gasproperties)
419
+ let rs = []
420
+ if (this.newinfo.f_user_type.length === 1 && this.newinfo.f_gasproperties.length === 1 && this.newinfo.pricetype.length === 1) {
421
+ let params = {
422
+ f_user_type: this.newinfo.f_user_type[0],
423
+ f_gasproperties: this.newinfo.f_gasproperties[0],
424
+ f_price_type: this.newinfo.pricetype[0],
425
+ filter: this.f_filialeid
426
+ }
427
+ rs = this.$GetSaleParam.getPriceAllNoLow(params)
428
+ }
429
+ if (rs.length === 0) {
430
+ this.newinfo.f_price_name = ''
431
+ }
432
+ return rs
433
+ },
434
+ priceChange (val) {
435
+ if (val && val.length > 0) {
436
+ // 展示气价备注
437
+ this.$set('newinfo.f_price_comments', val[0].f_comments ? val[0].f_comments : '无')
438
+ }
439
+ },
440
+ close () {
441
+ this.showPerformDate = false
442
+ this.show = false
443
+ this.row = null
444
+ this.newinfo = {
445
+ f_user_type: '',
446
+ f_gasproperties: '',
447
+ pricetype: '',
448
+ pricename: ''
449
+ }
450
+ },
451
+ async modifyUser () {
452
+ if (this.model.type === '系统气价') {
453
+ let param = {
454
+ f_userinfo_id: this.row.f_userinfo_id,
455
+ f_userfiles_id: this.row.f_userfiles_id,
456
+ f_user_id: this.row.f_user_id,
457
+ f_user_name: this.row.f_user_name,
458
+ f_user_type: this.newinfo.f_user_type[0],
459
+ f_gasproperties: this.newinfo.f_gasproperties[0],
460
+ f_price_type: this.newinfo.pricetype[0],
461
+ f_price_id: this.newinfo.pricename[0].f_price_id,
462
+ f_filialeid: this.f_filialeid,
463
+ f_operator: this.$login.f.name,
464
+ f_operatorid: this.$login.f.id,
465
+ f_orgid: this.$login.f.orgid,
466
+ f_orgname: this.$login.f.orgs,
467
+ f_depid: this.$login.f.depids,
468
+ f_depname: this.$login.f.deps,
469
+ f_perform_date: this.row.f_perform_date,
470
+ f_change_reason: ''
471
+ }
472
+
473
+ await this.$resetpost('rs/logic/user_pricechange', {data: param}, {resolveMsg: '更新成功', rejectMsg: '更新失败'})
474
+
475
+ this.criteriaShow = false
476
+ this.close()
477
+ this.search()
478
+ } else if (this.model.type === '自定义气价') {
479
+ let data = {
480
+ f_userinfo_id: this.row.f_userinfo_id,
481
+ f_userfiles_id: this.row.f_userfiles_id,
482
+ f_user_id: this.row.f_user_id,
483
+ f_user_name: this.row.f_user_name,
484
+ f_price_type: this.newinfo.f_price_type,
485
+ f_price_name: this.newinfo.f_price_name,
486
+ f_user_type: this.row.f_user_type,
487
+ f_gasproperties: this.row.f_gasproperties,
488
+ f_perform_date: '2021-01-01 00:00:00',
489
+ f_perform_date_change: this.row.f_perform_date,
490
+ f_end_date: '2099-12-31 23:59:59',
491
+ f_islow_income: 0,
492
+ f_limit_cycle: 0,
493
+ f_limit_gas: 0,
494
+ f_stairmonths: null,
495
+ f_population_base: null,
496
+ f_stair_start_date: null,
497
+ f_isheat: 0,
498
+ f_deduction_way: 'cycle',
499
+ f_heat_start_date: null,
500
+ f_heat_cycle: null,
501
+ f_priority: 100,
502
+ f_comments: '',
503
+ f_state: '有效',
504
+ f_filialeid: this.f_filialeid,
505
+ f_operator: this.$login.f.name,
506
+ f_operatorid: this.$login.f.id,
507
+ f_orgid: this.$login.f.orgid,
508
+ f_orgname: this.$login.f.orgs,
509
+ f_depid: this.$login.f.depids,
510
+ f_depname: this.$login.f.deps,
511
+ userid: this.$login.f.id,
512
+ audit: false,
513
+ type: '添加',
514
+ detailprice: this.detailprice,
515
+ f_custom: '自定义气价'
516
+ }
517
+ if (this.newinfo.f_price_type === '阶梯气价') {
518
+ data.f_stairmonths = this.newinfo.f_stairmonths
519
+ data.f_population_base = 0
520
+ data.f_stair_start_date = this.newinfo.f_stair_start_date
521
+ }
522
+ if (data.f_price_type === '固定气价') {
523
+ if (data.detailprice[0].id) {
524
+ delete data.detailprice[0].id
525
+ }
526
+ data.detailprice[0].f_price_name = 1
527
+ } else if (data.f_price_type === '阶梯气价') {
528
+ data.detailprice.forEach((item, index) => {
529
+ data.detailprice[index].f_price_name = index + 1
530
+ if (data.detailprice[index].id) {
531
+ if (delete data.detailprice[index].id) {
532
+ delete data.detailprice[index].id
533
+ }
534
+ } else if (data.detailprice[index].f_ratio) {
535
+ data.detailprice[index].f_ratio = null
536
+ } else if (!data.detailprice[index].f_add_gas) {
537
+ data.detailprice[index].f_add_gas = 0
538
+ } else if (!data.detailprice[index].f_add_gas_heat) {
539
+ data.detailprice[index].f_add_gas_heat = 0
540
+ }
541
+ })
542
+ }
543
+
544
+ this.$resetpost('rs/logic/customprice', {data: data}, {resolveMsg: '更新成功', rejectMsg: '更新失败'})
545
+
546
+ this.criteriaShow = false
547
+ this.close()
548
+ this.search()
549
+ }
550
+ },
551
+ clean () {
552
+ this.row = null
553
+ this.areainfo = null
554
+ this.$refs.paged.$refs.grid.select(null)
555
+ this.$refs.paged.$refs.grid.model.rows = this.rows
556
+ },
557
+
558
+ selfSearch (args) {
559
+ console.log('开始查询档案', this.f_filialeid)
560
+ if (this.f_filialeid && this.f_filialeid !== '') {
561
+ args.condition = `${args.condition} and f_filialeid = '${this.f_filialeid}'`
562
+ } else {
563
+ args.condition = `${args.condition} and f_filialeid = '${this.$login.f.orgid}'`
564
+ }
565
+ this.criteriaShow = false
566
+ this.$refs.paged.$refs.grid.$el.scrollTop = 0
567
+ this.model.search(args.condition, args.model)
568
+ this.clean()
569
+ },
570
+ sort (field, rule) {
571
+ // 将所有排序方式设为不排序,实现相互排斥
572
+ for (let key in this.orderFields) {
573
+ if (key === field) {
574
+ this.orderFields[key] = rule
575
+ } else {
576
+ this.orderFields[key] = 'no'
577
+ }
578
+ }
579
+ // 如果新规则不排序,还原为默认排序
580
+ if (rule === 'no') {
581
+ this.model.paramSource.orderitem = `'${this.orderDefault}'`
582
+ } else {
583
+ this.model.paramSource.orderitem = `'${field} ${rule}'`
584
+ }
585
+
586
+ this.search()
587
+ },
588
+
589
+ clear () {
590
+ Object.keys(this.$refs.paged.$refs.criteria.model).forEach((key) => {
591
+ this.$refs.paged.$refs.criteria.model[key] = []
592
+ })
593
+ },
594
+ getorg (val) {
595
+ this.f_filialeid = val[0]
596
+ }
597
+ },
598
+ ready () {
599
+ // this.search()
600
+ },
601
+ watch: {
602
+ // 每次查询将查询到的数据存储起来,供选择操作后的替换
603
+ 'model.state' (val) {
604
+ if (val === '正确') {
605
+ this.rows = this.model.rows
606
+ }
607
+ },
608
+ 'newinfo.f_price_type' (val) {
609
+ if (val === '固定气价') {
610
+ this.detailprice = []
611
+ } else if (val === '阶梯气价') {
612
+ this.detailprice = [{f_gas: '', f_price: '', f_add_gas: 0, f_add_gas_heat: 0}]
613
+ }
614
+ },
615
+ 'show' (val) {
616
+ if (!val) {
617
+ this.newinfo = {
618
+ f_user_type: '',
619
+ f_gasproperties: '',
620
+ pricetype: '',
621
+ pricename: ''
622
+ }
623
+ this.row = null
624
+ } else {
625
+ this.newinfo = {
626
+ f_user_type: [this.row.f_user_type],
627
+ f_gasproperties: [this.row.f_gasproperties],
628
+ pricetype: [this.row.f_price_type],
629
+ pricename: ''
630
+ }
631
+ }
632
+ },
633
+ 'f_filialeid' (val) {
634
+ loadParamGem(this)
635
+ },
636
+ async 'newinfo.pricename' () {
637
+ if (this.newinfo.pricename == null || !(this.newinfo.pricename instanceof Array) || this.newinfo.pricename.length == 0) return
638
+ let qij = await this.$resetpost('rs/sql/saleSingleTable', {
639
+ data: {
640
+ tablename: 't_stairprice',
641
+ condition: ` f_price_id = ${this.newinfo.pricename[0].f_price_id} and getDate()>= f_perform_date and getDate()<f_end_date `
642
+ }
643
+ }, {resolveMsg: null, rejectMsg: null})
644
+ if (qij.data && qij.data.length > 0) {
645
+ this.preformdate = qij.data[0].f_perform_date
646
+ }
647
+ }
648
+ }
649
+ }
650
+ </script>
651
+ <style scoped>
652
+
653
+ .datapanel {
654
+ color: #333;
655
+ background-color: white;
656
+ box-shadow: darkgrey 0.5px 0.5px 0.5px 0.5px ;
657
+ padding: 10px 30px 10px 30px;
658
+ height: auto;
659
+ border-radius:15px;
660
+ }
661
+
662
+ </style>
@@ -56,5 +56,7 @@ export default function () {
56
56
 
57
57
  // 当前选择用户的表具基本信息
58
58
  Vue.component('user-meterinfodetail', (resolve) => { require(['./meterinfodetail'], resolve) })
59
+ // 单户调价
60
+ Vue.component('user-pricechange-manage', (resolve) => { require(['./UserPriceChangeManage'], resolve) })
59
61
 
60
62
  }
@@ -0,0 +1,133 @@
1
+ <template>
2
+ <div class="panel panel-info auto">
3
+ <div class="panel-heading auto" style="height: 35px">
4
+ <h4 style="display:inline-block;margin-top: auto">未处理隐患</h4>
5
+ </div>
6
+ <table class="table table-striped table-bordered" v-if="hiddenDangerList.length > 0">
7
+ <tbody v-for="(index,row) in hiddenDangerList">
8
+ <tr>
9
+ <td colspan="4" style="text-align: center;background-color: #8cbce2;">未处理隐患{{index+1}}明细
10
+ </td>
11
+ </tr>
12
+ <tr>
13
+ <td colspan="1" style="text-align: center;border: #E9E9E9 solid 1px;">隐患名称:</td>
14
+ <td colspan="3" style="text-align: center;border: #E9E9E9 solid 1px;">{{ row.f_item_name }}</td>
15
+ </tr>
16
+ <tr>
17
+ <td colspan="1" style="text-align: center;border: #E9E9E9 solid 1px;">发现时间:</td>
18
+ <td colspan="3" style="text-align: center;border: #E9E9E9 solid 1px;">{{ row.f_offsite_time }}</td>
19
+ </tr>
20
+ <tr>
21
+ <td colspan="1" style="text-align: center;border: #E9E9E9 solid 1px;">发现人员:</td>
22
+ <td colspan="3" style="text-align: center;border: #E9E9E9 solid 1px;">{{ row.f_checker_name }}</td>
23
+ </tr>
24
+ <tr>
25
+ <td colspan="1" style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">隐患照片:</td>
26
+ <td colspan="3" style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">
27
+ <div class="img">
28
+ <img-self :src="'rs/image/file/' + row.f_path" width="150" height="150"></img-self>
29
+ </div>
30
+ </td>
31
+ </tr>
32
+ <tr v-if="row.f_p1_path">
33
+ <td colspan="1" style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">隐患照片2:</td>
34
+ <td colspan="3" style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">
35
+ <div class="img">
36
+ <img-self :src="'rs/image/file/' + row.f_p1_path" width="150" height="150"></img-self>
37
+ </div>
38
+ </td>
39
+ </tr>
40
+ <tr v-if="row.f_p2_path">
41
+ <td colspan="1" style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">隐患照片3:</td>
42
+ <td colspan="3" style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">
43
+ <div class="img">
44
+ <img-self :src="'rs/image/file/' + row.f_p2_path" width="150" height="150"></img-self>
45
+ </div>
46
+ </td>
47
+ </tr>
48
+ <tr v-if="row.f_p3_path">
49
+ <td colspan="1" style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">隐患照片4:</td>
50
+ <td colspan="3" style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">
51
+ <div class="img">
52
+ <img-self :src="'rs/image/file/' + row.f_p3_path" width="150" height="150"></img-self>
53
+ </div>
54
+ </td>
55
+ </tr>
56
+ </tbody>
57
+ </table>
58
+ <div class="auto info-content" v-if="hiddenDangerList.length === 0">
59
+ <div class="row">
60
+ <strong>暂无未处理隐患信息</strong>
61
+ </div>
62
+ </div>
63
+ </div>
64
+
65
+ </template>
66
+ <script>
67
+ /**
68
+ *用户信息
69
+ *安检信息
70
+ */
71
+
72
+ import { HttpResetClass } from 'vue-client'
73
+
74
+ let getHiddenDangerGen = async function (self) {
75
+ try {
76
+ let http = new HttpResetClass()
77
+ let condition = `f_userinfoid = ${self.data.f_userinfo_id} and f_is_repaired in ('隐患未处理','转维修')`
78
+ let getHiddenDanger = await http.load('POST', 'rs/sql/defectDetails', {
79
+ data: {
80
+ condition: condition,
81
+ f_filialeid: `('${self.$login.f.orgid}')`
82
+ }
83
+ }, {resolveMsg: null, rejectMsg: null})
84
+ console.log('getHiddenDanger', getHiddenDanger)
85
+ self.hiddenDangerList = getHiddenDanger.data
86
+ } catch (error) {
87
+ console.error(error)
88
+ }
89
+ }
90
+ export default {
91
+ title: '安检信息',
92
+ data () {
93
+ return {
94
+ hiddenDangerList: [],
95
+ style: 'text-align: center;border: #E9E9E9 solid 1px;'
96
+ }
97
+ },
98
+ props: ['data'],
99
+ ready () {
100
+ if (this.data) {
101
+ getHiddenDangerGen(this)
102
+ }
103
+ },
104
+ methods: {},
105
+ computed: {},
106
+ watch: {
107
+ 'data' () {
108
+ if (this.data == null) {
109
+ this.hiddenDangerList = []
110
+ } else {
111
+ getHiddenDangerGen(this)
112
+ }
113
+ }
114
+ }
115
+ }
116
+ </script>
117
+ <style scoped>
118
+ .img {
119
+ border: 1px solid #9773ed;
120
+ width: auto;
121
+ height: auto;
122
+ margin: 6px auto;
123
+ display: inline-block;
124
+ text-align: center;
125
+ }
126
+
127
+ img {
128
+ margin: 6px;
129
+ display: block;
130
+ margin-left: auto;
131
+ margin-right: auto;
132
+ }
133
+ </style>
@@ -19,4 +19,6 @@ export default function () {
19
19
  Vue.component('file-user-essential-info', (resolve) => { require(['./UserEssentialInfoTest'], resolve) })
20
20
  // 售气收费 --弹出框
21
21
  Vue.component('charge-modal', (resolve) => { require(['./ChargeModal'], resolve) })
22
+ // 未处理隐患信息
23
+ Vue.component('sale-hidden-danger-info', (resolve) => { require(['./HiddenDangerInfo'], resolve) })
22
24
  }
@@ -339,6 +339,38 @@
339
339
  type="text"
340
340
  v-model="model.f_taxpayer_id">
341
341
  </div>
342
+ <div
343
+ :class="{'col-sm-2':!$parent.$parent.createFile,'col-sm-4':$parent.$parent.createFile}"
344
+ class="form-group">
345
+ <label class="font_normal_body" style="width: auto">是否煤改气</label>
346
+ <v-select :options='$parent.$parent.ismgq' :value.sync="model.f_is_mgq"
347
+ close-on-select condition="f_is_mgq='{}'"
348
+ placeholder='是否煤改气' v-model="model.f_is_mgq"></v-select>
349
+ </div>
350
+ <div
351
+ :class="{'col-sm-2':!$parent.$parent.createFile,'col-sm-4':$parent.$parent.createFile}"
352
+ class="form-group">
353
+ <label class="font_normal_body" style="width: auto">是否空置户</label>
354
+ <v-select :options='$parent.$parent.isvacant' :value.sync="model.f_is_vacant"
355
+ close-on-select condition="f_is_vacant='{}'"
356
+ placeholder='是否空置户' v-model="model.f_is_vacant"></v-select>
357
+ </div>
358
+ <div
359
+ :class="{'col-sm-2':!$parent.$parent.createFile,'col-sm-4':$parent.$parent.createFile}"
360
+ class="form-group">
361
+ <label class="font_normal_body" style="width: auto">是否孤寡老人</label>
362
+ <v-select :options='$parent.$parent.isalone' :value.sync="model.f_is_alone"
363
+ close-on-select condition="f_is_alone='{}'"
364
+ placeholder='是否孤寡老人' v-model="model.f_is_alone"></v-select>
365
+ </div>
366
+ <div
367
+ :class="{'col-sm-2':!$parent.$parent.createFile,'col-sm-4':$parent.$parent.createFile}"
368
+ class="form-group">
369
+ <label class="font_normal_body" style="width: auto">是否空房</label>
370
+ <v-select :options='$parent.$parent.isempty' :value.sync="model.f_is_empty"
371
+ close-on-select condition="f_is_empty='{}'"
372
+ placeholder='是否空房' v-model="model.f_is_empty"></v-select>
373
+ </div>
342
374
  </div>
343
375
  </div>
344
376
  </criteria>
@@ -408,6 +440,18 @@
408
440
  <th v-if="!$parent.$parent.$parent.createFile">
409
441
  <nobr>所属公司</nobr>
410
442
  </th>
443
+ <th v-if="!$parent.$parent.$parent.createFile">
444
+ <nobr>是否煤改气</nobr>
445
+ </th>
446
+ <th v-if="!$parent.$parent.$parent.createFile">
447
+ <nobr>是否空置户</nobr>
448
+ </th>
449
+ <th v-if="!$parent.$parent.$parent.createFile">
450
+ <nobr>是否孤寡老人</nobr>
451
+ </th>
452
+ <th v-if="!$parent.$parent.$parent.createFile">
453
+ <nobr>是否空房</nobr>
454
+ </th>
411
455
  <!--<th>-->
412
456
  <!--<nobr v-if="this.$login.r.includes('通知单打印')||this.$login.r.includes('流程表打印') ">下载</nobr>-->
413
457
  <!--</th>-->
@@ -442,6 +486,10 @@
442
486
  <td style="text-align: center;" v-if="!$parent.$parent.$parent.createFile">{{row.f_user_level}}</td>
443
487
  <td style="text-align: center;" v-if="!$parent.$parent.$parent.createFile">{{row.f_taxpayer_id}}</td>
444
488
  <td style="text-align: center;" v-if="!$parent.$parent.$parent.createFile">{{row.f_orgname}}</td>
489
+ <td style="text-align: center;" v-if="!$parent.$parent.$parent.createFile">{{row.f_is_mgq}}</td>
490
+ <td style="text-align: center;" v-if="!$parent.$parent.$parent.createFile">{{row.f_is_vacant}}</td>
491
+ <td style="text-align: center;" v-if="!$parent.$parent.$parent.createFile">{{row.f_is_alone}}</td>
492
+ <td style="text-align: center;" v-if="!$parent.$parent.$parent.createFile">{{row.f_is_empty}}</td>
445
493
  <td style="text-align: center;">
446
494
  <button type="button" name="button" class="button_search button_spacing width-60"
447
495
  v-if="row.f_user_state === '正常' || row.f_user_state==='预备'"
@@ -649,6 +697,10 @@ let loadParamGem = async function (self) {
649
697
  userfilesaddress:this.$appdata.getParam('场站')?[{label: '全部',value: ''}, ...this.$appdata.getParam('场站')] : [],
650
698
  createFile: false,
651
699
  feedmethod:this.$appdata.getParam('供气方式')?[{label: '全部',value: ''}, ...this.$appdata.getParam('供气方式')]:[],
700
+ ismgq: [{label: '全部', value: ''},{label: '是', value: '是'},{label: '否', value: '否'}],
701
+ isvacant: [{label: '全部', value: ''},{label: '是', value: '是'},{label: '否', value: '否'}],
702
+ isalone: [{label: '全部', value: ''},{label: '是', value: '是'},{label: '否', value: '否'}],
703
+ isempty: [{label: '全部', value: ''},{label: '是', value: '是'},{label: '否', value: '否'}],
652
704
  curorgid: [this.$login.f.orgid],
653
705
  f_filialeid: this.$login.f.orgid,
654
706
  pcdslist:[],
@@ -97,7 +97,26 @@
97
97
  <div style="" class="col-sm-4 form-group">
98
98
  <label for="f_is_mgq" class="font_normal_body ">煤&ensp;改&ensp;气&ensp;</label>
99
99
  <v-select id="f_is_mgq" :value.sync="baseinfo.base.f_is_mgq" v-model="baseinfo.base.f_is_mgq"
100
- :options='mgq' placeholder='是否煤改气' style="width: 65%" close-on-select></v-select>
100
+ :options='mgq' placeholder='是否煤改气' style="width: 65%" :value-single="true"
101
+ close-on-select></v-select>
102
+ </div>
103
+ <div style="" class="col-sm-4 form-group">
104
+ <label for="f_is_vacant" class="font_normal_body ">空&ensp;置&ensp;户</label>
105
+ <v-select id="f_is_vacant" :value.sync="baseinfo.base.f_is_vacant" v-model="baseinfo.base.f_is_vacant"
106
+ :options='isvacant' placeholder='是否空置户' style="width: 65%" :value-single="true"
107
+ close-on-select></v-select>
108
+ </div>
109
+ <div style="" class="col-sm-4 form-group">
110
+ <label for="f_is_alone" class="font_normal_body ">孤寡老人</label>
111
+ <v-select id="f_is_mgq" :value.sync="baseinfo.base.f_is_alone" v-model="baseinfo.base.f_is_alone"
112
+ :options='isalone' placeholder='是否孤寡老人' style="width: 65%" :value-single="true"
113
+ close-on-select></v-select>
114
+ </div>
115
+ <div style="" class="col-sm-4 form-group">
116
+ <label for="f_is_empty" class="font_normal_body ">空&ensp;&ensp;房</label>
117
+ <v-select id="f_is_empty" :value.sync="baseinfo.base.f_is_empty" v-model="baseinfo.base.f_is_empty"
118
+ :options='isempty' placeholder='是否空房' style="width: 65%" :value-single="true"
119
+ close-on-select></v-select>
101
120
  </div>
102
121
  <div class="col-sm-4 form-group">
103
122
  <label for="f_contract" class="font_normal_body">&ensp;燃气本号</label>
@@ -285,6 +304,9 @@
285
304
  userstates: this.$appdata.getParam('用户状态'),
286
305
  securityLevel: this.$appdata.getParam('用户安全等级'),
287
306
  mgq: this.$appdata.getParam('是否煤改气'),
307
+ isvacant: [{label: '是', value: '是'}, {label: '否', value: '否'}],
308
+ isalone: [{label: '是', value: '是'}, {label: '否', value: '否'}],
309
+ isempty: [{label: '是', value: '是'}, {label: '否', value: '否'}],
288
310
  costtype: this.$appdata.getParam('付款类型'),
289
311
  usernature: this.$appdata.getParam('用户性质'),
290
312
  userlevel: this.$appdata.getParam('用户等级'),
@@ -112,6 +112,24 @@ let GetSaleParam = {
112
112
  }, [])
113
113
  return Array.from(new Set(result))
114
114
  },
115
+ getPriceByOrgNoLow (filialeid) {
116
+ let result = []
117
+ GetSaleParam.prices.forEach((item) => {
118
+ if (item.f_state === '有效' && filialeid == item.f_filialeid && item.f_islow_income != 0) {
119
+ let value = {
120
+ label: item.f_price_name,
121
+ value: item
122
+ }
123
+ result.push(value)
124
+ }
125
+ })
126
+ let hash = {}
127
+ result = result.reduce((item, next) => {
128
+ hash[next.label] ? '' : hash[next.label] = true && item.push(next)
129
+ return item
130
+ }, [])
131
+ return Array.from(new Set(result))
132
+ },
115
133
  getOnlyPrice () {
116
134
  // 数组去重
117
135
  let arr = []
@@ -213,6 +231,44 @@ let GetSaleParam = {
213
231
  }
214
232
  return Array.from(new Set(result))
215
233
  },
234
+ getPriceAllNoLow (object) {
235
+ console.log('参数。。。', object)
236
+ // 目前支持三个字段并都有值 f_user_type,f_gasproperties,f_price_type
237
+ if (!object.f_user_type || !object.f_gasproperties || !object.f_price_type) {
238
+ return
239
+ }
240
+ let result = []
241
+
242
+ console.log('获取价格。。。', object.filter, GetSaleParam.prices)
243
+
244
+ // 做筛选
245
+ if (object.filter) {
246
+ GetSaleParam.prices.forEach((item) => {
247
+ if (item.f_state === '有效' && object.f_user_type === item.f_user_type &&
248
+ object.f_gasproperties === item.f_gasproperties &&
249
+ object.f_price_type === item.f_price_type &&
250
+ object.filter == item.f_filialeid && item.f_islow_income != 0) {
251
+ let value = {
252
+ label: item.f_price_name,
253
+ value: item
254
+ }
255
+ result.push(value)
256
+ }
257
+ })
258
+ } else {
259
+ GetSaleParam.prices.forEach((item) => {
260
+ if (item.f_state === '有效' && object.f_user_type === item.f_user_type && object.f_gasproperties === item.f_gasproperties && object.f_price_type === item.f_price_type && item.f_islow_income != 0) {
261
+ let value = {
262
+ label: item.f_price_name,
263
+ value: item
264
+ }
265
+ console.log('进来了1111')
266
+ result.push(value)
267
+ }
268
+ })
269
+ }
270
+ return Array.from(new Set(result))
271
+ },
216
272
  getPriceAllOther (object) {
217
273
  console.log('参数。。。', object)
218
274
  // 目前支持三个字段并都有值 f_user_type,f_gasproperties,f_price_type