sale-client 3.6.313 → 3.6.315

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sale-client",
3
- "version": "3.6.313",
3
+ "version": "3.6.315",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -165,6 +165,9 @@
165
165
  <li v-if="row.f_meter_type === '物联网表' && $parent.$parent.$parent.jurisdiction.includes('补费扣费')">
166
166
  <a href="#" @click.stop="$parent.$parent.$parent.operate('补费扣费', 'deduction-manage', row)">补费扣费</a>
167
167
  </li>
168
+ <li v-if="$parent.$parent.$parent.jurisdiction.includes('限购配置')">
169
+ <a href="#" @click.stop="$parent.$parent.$parent.operate('限购配置', 'limit-gas-manage', row)">限购配置</a>
170
+ </li>
168
171
  </ul>
169
172
  </dropdown>
170
173
  </td>
@@ -6,43 +6,104 @@
6
6
  <criteria partial='criteria' v-ref:criteria @condition-changed="$parent.selfSearch"
7
7
  v-show="$parent.searchshow">
8
8
  <div novalidate class="form-inline auto" partial>
9
- <div class="col-sm-2 form-group">
10
- <label class="font_normal_body">组织机构</label>
11
- <res-select :initresid='$parent.$parent.curorgid'
12
- @res-select="$parent.$parent.getorg"
13
- class="select select_list"
14
- restype='organization'
15
- style="width: 60%">
16
- </res-select>
9
+ <!-- <div class="col-sm-2 form-group">-->
10
+ <!-- <label class="font_normal_body">组织机构</label>-->
11
+ <!-- <res-select :initresid='$parent.$parent.curorgid'-->
12
+ <!-- @res-select="$parent.$parent.getorg"-->
13
+ <!-- class="select select_list"-->
14
+ <!-- restype='organization'-->
15
+ <!-- style="width: 60%">-->
16
+ <!-- </res-select>-->
17
+ <!-- </div>-->
18
+ <div class="row">
19
+ <div :class="{'col-sm-2':!$parent.$parent.editList,'col-sm-4':$parent.$parent.editList}"
20
+ class="form-group">
21
+ <label class="font_normal_body">客户编号</label>
22
+ <input type="text" class="input_search" style="width: 60%" v-model="model.f_userinfo_code"
23
+ condition="f_userinfo_code = '{}'" placeholder='客户编号'>
24
+ </div>
25
+ <div :class="{'col-sm-2':!$parent.$parent.editList,'col-sm-4':$parent.$parent.editList}"
26
+ class="form-group">
27
+ <label class="font_normal_body">表&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;号</label>
28
+ <input type="text" class="input_search" style="width: 60%" v-model="model.f_meternumber"
29
+ condition="f_meternumber = '{}'" placeholder='表号'>
30
+ </div>
31
+ <div class="span" style="float:right;">
32
+ <button class="button_search" @click="search()">查 询</button>
33
+ <export-excel v-if="$parent.$parent.excelTable"
34
+ class="auto"
35
+ :data="{condition: $parent.$parent.condition,orderitem: $parent.$parent.orderitem}"
36
+ :field="$parent.$parent.getfield"
37
+ sqlurl="rs/logic/saleExport" progress="saleGetExportProgress" sql-name="changemeterFiles"
38
+ template-name='换表记录'
39
+ :choose-col="true"></export-excel>
40
+ <div
41
+ :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
42
+ @click="$parent.$parent.hidden()"
43
+ class="button_spacing"
44
+ style="float: right"></div>
45
+ </div>
17
46
  </div>
18
- <div class="col-sm-2 form-group">
19
- <label class="font_normal_body">客户编号</label>
20
- <input type="text" class="input_search" style="width: 60%" v-model="model.f_userinfo_code"
21
- condition="f_userinfo_code = '{}'" placeholder='客户编号'>
22
- </div>
23
- <div class="col-sm-2 form-group">
24
- <label class="font_normal_body">客户姓名</label>
25
- <input type="text" class="input_search" style="width: 60%" v-model="model.f_user_name"
26
- condition="f_user_name = '{}'" placeholder='客户姓名'>
27
- </div>
28
- <div class="col-sm-2 form-group">
29
- <label class="font_normal_body">有无附件</label>
30
- <v-select :disabled=false
31
- :options='$parent.$parent.pj'
32
- :value-single="true"
33
- :value.sync="model.is_has_file"
34
- close-on-select
35
- placeholder='请选择'
36
- v-model="model.is_has_file"
37
- condition="is_has_file = '{}'"
38
- search=fasle
39
- >
40
- </v-select>
41
- </div>
42
- <div class="span" style="float:right;">
43
- <button class="button_search" @click="search()">查 询</button>
47
+ <div class="row" v-if="$parent.$parent.criteriaShow">
48
+ <res-select-group :initres="$parent.$parent.initres" :show-component="['company','department']" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
49
+ <div :class="{'col-sm-2':!$parent.$parent.editList,'col-sm-4':$parent.$parent.editList}"
50
+ class="form-group">
51
+ <label class="font_normal_body">客户姓名</label>
52
+ <input type="text" class="input_search" style="width: 60%" v-model="model.f_user_name"
53
+ condition="f_user_name = '{}'" placeholder='客户姓名'>
54
+ </div>
55
+ <div :class="{'col-sm-2':!$parent.$parent.editList,'col-sm-4':$parent.$parent.editList}"
56
+ class="form-group">
57
+ <label class="font_normal_body">有无附件</label>
58
+ <v-select :disabled=false
59
+ :options='$parent.$parent.pj'
60
+ :value-single="true"
61
+ :value.sync="model.is_has_file"
62
+ close-on-select
63
+ placeholder='请选择'
64
+ v-model="model.is_has_file"
65
+ condition="is_has_file = '{}'"
66
+ search=fasle
67
+ >
68
+ </v-select>
69
+ </div>
70
+ <!-- <div-->
71
+ <!-- :class="{'col-sm-2':!$parent.$parent.editList,'col-sm-4':$parent.$parent.editList}"-->
72
+ <!-- class="form-group">-->
73
+ <!-- <label class="font_normal_body">换表编号</label>-->
74
+ <!-- <input type="text" class="input_search" style="width: 60%" v-model="model.id"-->
75
+ <!-- condition="id = '{}'" placeholder='用户编号'>-->
76
+ <!-- </div>-->
77
+ <div :class="{'col-sm-2':!$parent.$parent.editList,'col-sm-4':$parent.$parent.editList}"
78
+ class="form-group">
79
+ <label class="font_normal_body">气表品牌</label>
80
+ <v-select id="f_meter_brand"
81
+ v-model="model.f_meter_brand"
82
+ placeholder='气表品牌'
83
+ :value.sync="model.f_meter_brand"
84
+ :options='$parent.$parent.meterbrand'
85
+ condition="f_meter_brand = '{}'"
86
+ close-on-select style="width: 60%"></v-select>
87
+ </div>
88
+ <div
89
+ :class="{'col-sm-2':!$parent.$parent.editList,'col-sm-4':$parent.$parent.editList}"
90
+ class="form-group">
91
+ <label class="font_normal_body">开始日期</label>
92
+ <datepicker placeholder="开始日期" v-model="model.startDate" :value.sync="model.startDate" style="width:60%"
93
+ :format="'yyyy-MM-dd 00:00:00'" condition="f_operate_date >= '{}'">
94
+ </datepicker>
95
+ </div>
96
+ <div
97
+ :class="{'col-sm-2':!$parent.$parent.editList,'col-sm-4':$parent.$parent.editList}"
98
+ class="form-group">
99
+ <label class="font_normal_body">结束日期</label>
100
+ <datepicker placeholder="结束日期" v-model="model.endDate" :value.sync="model.endDate" style="width:60%"
101
+ :format="'yyyy-MM-dd 23:59:59'" condition="f_operate_date <= '{}'">
102
+ </datepicker>
103
+ </div>
44
104
  </div>
45
105
  </div>
106
+
46
107
  </criteria>
47
108
  <data-grid :model="model" v-ref:grid class="list_area table_sy" partial='list'>
48
109
  <template partial='head'>
@@ -177,7 +238,9 @@
177
238
  <script>
178
239
  import {PagedList} from 'vue-client'
179
240
  const myMap = new Map()
180
-
241
+ let asyncReadyGen = async function (self) {
242
+ await self.initQueryParam()
243
+ }
181
244
  export default {
182
245
  'title': '',
183
246
  data () {
@@ -187,12 +250,43 @@ const myMap = new Map()
187
250
  // 控制查询条件显示
188
251
  searchshow: true,
189
252
  curorgid: [this.$login.f.orgid],
253
+ criteriaShow: false,
190
254
  f_orgid: '',
255
+ condition: '',
191
256
  // 排序
192
257
  orderitem: 'f_operate_date desc',
193
258
  orderFields: {
194
259
  f_operate_date: 'no'
195
260
  },
261
+ // 控制样式
262
+ editList: false,
263
+ excelTable: true,
264
+ getfield: {
265
+ 'f_userinfo_code': '客户编号',
266
+ 'f_user_name': '客户名称',
267
+ 'f_address': '客户地址',
268
+ 'f_type': '换表类型',
269
+ 'f_changemeter_fee': '换表费',
270
+ 'f_meternumber_old': '旧表号',
271
+ 'f_meternumber': '新表号',
272
+ 'f_meter_brand_old': '旧气表品牌',
273
+ 'f_meter_brand': '新气表品牌',
274
+ 'f_remanent_gas': '旧表剩余补气量',
275
+ 'f_remanent_money': '旧表剩余金额',
276
+ 'f_comments': '备注',
277
+ 'f_change_operator': '换表人',
278
+ 'f_state': '状态',
279
+ 'f_operate_date': '换表日期',
280
+ 'f_operator': '人员',
281
+ 'f_depname': '所属部门',
282
+ 'f_orgname': '所属公司'
283
+ },
284
+ meterbrand: [],
285
+ initres: {
286
+ org: [this.$login.f.orgid],
287
+ dep: [],
288
+ user: []
289
+ },
196
290
  whetherPay: [{label: '全部', value: ''}, {label: '是', value: '是'}, {label: '否', value: '否'}],
197
291
  da: {
198
292
  rows: []
@@ -201,6 +295,7 @@ const myMap = new Map()
201
295
  }
202
296
  },
203
297
  ready () {
298
+ asyncReadyGen(this)
204
299
  this.search()
205
300
  // this.getwarehouse()
206
301
  },
@@ -210,6 +305,22 @@ const myMap = new Map()
210
305
  this.f_orgid = this.$login.convertToIn(val)
211
306
  this.f_filialeid = val[0]
212
307
  },
308
+ async getRes (condition, obj) {
309
+ this.orgCondtionStr = condition
310
+ this.orgname = obj.orgnames[0]
311
+ this.depname = obj.depnames[0]
312
+
313
+ },
314
+ initQueryParam () {
315
+ let arr = []
316
+ this.$GetSaleParam.getGasbrand().forEach((item) => {
317
+ let temp = {}
318
+ temp.label = item.label
319
+ temp.value = item.value.f_meter_brand
320
+ arr.push(temp)
321
+ })
322
+ this.meterbrand = [{label: '全部', value: ''}, ...arr]
323
+ },
213
324
  view (row) {
214
325
  this.$parent.showupload = true
215
326
  this.$parent.row = row
@@ -231,7 +342,9 @@ const myMap = new Map()
231
342
  async getwarehouse () {
232
343
 
233
344
  },
234
-
345
+ hidden () {
346
+ this.criteriaShow = !this.criteriaShow
347
+ },
235
348
  join1 (row) {
236
349
  this.joinrow = row
237
350
  this.joinshow = true
@@ -273,10 +386,13 @@ const myMap = new Map()
273
386
  this.getorg([this.$login.f.orgid])
274
387
  }
275
388
  console.log('查询。。。', this.f_orgid)
276
- if (this.f_orgid) {
277
- args.condition = `${args.condition} and f_orgid in ${this.f_orgid}`
389
+ if (!this.orgCondtionStr) {
390
+ args.condition = `${args.condition}` + ' and f_orgid = ' + this.$login.f.orgid
391
+ } else {
392
+ args.condition = `${args.condition}` + this.orgCondtionStr
278
393
  }
279
394
  this.model.search(args.condition, args.model)
395
+ this.condition = args.condition
280
396
  },
281
397
  mergeRowData (joinrows) {
282
398
 
@@ -104,8 +104,18 @@
104
104
 
105
105
  <!-- </div>-->
106
106
 
107
-
108
-
107
+ <div class="row">
108
+ <div class="col-sm-8">
109
+ <label class="font_normal_body">换表原因</label>
110
+ <input type="text" v-model="model.f_comments" style="width: 80%" class="input_search">
111
+ </div>
112
+ </div>
113
+ <div class="row">
114
+ <div class="col-sm-8">
115
+ <label class="font_normal_body">其他备注</label>
116
+ <input type="text" v-model="model.f_othereason" style="width: 80%" class="input_search">
117
+ </div>
118
+ </div>
109
119
  </form>
110
120
  <div style="float: right">
111
121
  <button class="button_search" @click="save">保存</button>
@@ -195,7 +205,7 @@
195
205
  if(res.data.length>0){
196
206
  this.model.f_operator = res.data[0].name
197
207
  }else{
198
- this.model.f_operatorid=''
208
+ this.model.f_operatorid = ''
199
209
  this.$showAlert('操作员信息未找到','warning',2000)
200
210
  }
201
211
  console.log('this.f_operatorid', this.model.f_operator)
@@ -224,29 +234,20 @@
224
234
  modifitime: Util.toStandardTimeString(),
225
235
  operator: this.$login.f.name,
226
236
  changemeter_id: this.model.id,
227
- f_operator : this.$login.f.name,
228
- f_operatorid : this.$login.f.id,
229
- f_orgid : this.$login.f.orgid,
230
- f_orgname : this.$login.f.orgs,
231
- f_depid : this.$login.f.depids,
232
- f_depname : this.$login.f.deps
237
+ f_operator: this.$login.f.name,
238
+ f_operatorid: this.$login.f.id,
239
+ f_orgid: this.$login.f.orgid,
240
+ f_orgname: this.$login.f.orgs,
241
+ f_depid: this.$login.f.depids,
242
+ f_depname: this.$login.f.deps
233
243
  }
234
244
  this.recordList.push(car)
235
245
  // 该方法并未对chinesename fieldname operator等进行判断赋值,此暂写为定值
236
246
  console.log(car)
237
247
  }
238
248
  }
239
-
240
249
  await this.$resetpost('rs/logic/saveChangeMeterRecord', {data: {recordlist: this.recordList, newData: this.model}})
241
- // if(this.model.f_operat_type==='换表'||this.model.f_operat_type==='换表撤销'){
242
- // await this.$resetpost('rs/entity/t_changemeter', this.model, {
243
- // resolveMsg: '修改成功',
244
- // rejectMsg: '未通过,修改出错!!!'
245
- // })
246
- // await this.$resetpost('rs/entity/t_changetables', this.model, {
247
- // resolveMsg: '修改成功',
248
- // rejectMsg: '未通过,修改出错!!!'
249
- // })
250
+ await this.$resetpost('rs/entity/t_changetables', this.model, {resolveMsg: '修改成功', rejectMsg: '未通过,修改出错!!!'})
250
251
  console.log('this.model', this.model)
251
252
  this.$dispatch('close')
252
253
  }
@@ -26,7 +26,7 @@
26
26
  <export-excel
27
27
  :data="{condition: $parent.$parent.condition}"
28
28
  :field="$parent.$parent.getfield"
29
- sqlurl="rs/logic/exportfile" sql-name="salegetGasUser" :template-name="$parent.$parent.pricename+'气价使用人'"
29
+ sqlurl="rs/logic/saleExport" sql-name="getGasUser" :template-name="$parent.$parent.pricename+'气价使用人'"
30
30
  :choose-col="true"></export-excel>
31
31
  <div style="float: right" class="button_spacing"
32
32
  :class="{'button_shrink_top': $parent.$parent.criteriaShow2,'button_shrink_bottom': !$parent.$parent.criteriaShow2}"
@@ -177,6 +177,14 @@ let getBtnsGen = async function (self) {
177
177
  }
178
178
  })
179
179
  }
180
+ // 添加“限制购气”按钮
181
+ self.operBtns.push({
182
+ name: '限制购气',
183
+ value: {
184
+ 'weight': 0,
185
+ 'routeName': 'limit-gas-manage'
186
+ }
187
+ })
180
188
  }
181
189
 
182
190
  export default {