manage-client 3.3.125 → 3.3.126

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": "manage-client",
3
- "version": "3.3.125",
3
+ "version": "3.3.126",
4
4
  "description": "经营管控模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <tab-button class="foot_tabset" :active="-1">
2
+ <tab-button class="foot_tabset" :active="active">
3
3
  <tabs header="客户查询" v-if="permission('客户查询')">
4
4
  <user-query v-if="show.includes('客户查询')"></user-query>
5
5
  </tabs>
@@ -37,28 +37,52 @@
37
37
  </template>
38
38
 
39
39
  <script>
40
- import TabButton from "../common/TabButton";
41
- import Tabs from "../common/Tabs";
40
+ import TabButton from "../common/TabButton";
41
+ import Tabs from "../common/Tabs";
42
42
 
43
- export default {
44
- title: '档案查询',
45
- data(){
46
- return{
47
- show: []
43
+ export default {
44
+ title: '档案查询',
45
+ data() {
46
+ return {
47
+ show: [],
48
+ active: -1,
49
+ pageMap : {
50
+ '表具设备查询':2
48
51
  }
49
- },
50
- components: {Tabs, TabButton},
51
- methods: {
52
- permission (name) {
53
- if (this.$login.r.find(value => value == '综合查询')) {
54
- if (!this.$login.r.find(value => value == name)) {
55
- return false
56
- }
52
+ }
53
+ },
54
+ components: {Tabs, TabButton},
55
+ ready() {
56
+ console.log("查看url参数")
57
+ // 获取url查询参数
58
+ let url = window.location.href
59
+ let params = url.split('?')[1]
60
+ let config = {}
61
+ if (params) {
62
+ let arr = params.split('&')
63
+ arr.forEach(item => {
64
+ let key = decodeURIComponent(item.split('=')[0]);
65
+ let value = decodeURIComponent(item.split('=')[1]);
66
+ if (key == 'tab') {
67
+ this.active = this.pageMap[value]
68
+ this.show = [value]
69
+ }
70
+ config[key] = value
71
+ })
72
+ }
73
+ console.log("查看url参数", config)
74
+ },
75
+ methods: {
76
+ permission(name) {
77
+ if (this.$login.r.find(value => value == '综合查询')) {
78
+ if (!this.$login.r.find(value => value == name)) {
79
+ return false
57
80
  }
58
- return true
59
81
  }
82
+ return true
60
83
  }
61
84
  }
85
+ }
62
86
  </script>
63
87
 
64
88
  <style scoped>
@@ -226,6 +226,15 @@
226
226
  </v-select>
227
227
  </div>
228
228
  <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes"></res-select-group>
229
+ <div class="col-sm-2 form-group">
230
+ <label class="font_normal_body" >是否到期</label>
231
+ <v-select :value.sync="model.f_isexpire"
232
+ v-model="model.f_isexpire"
233
+ :options='$parent.$parent.isexpire' placeholder='请选择'
234
+ condition="f_isexpire = '{}'"
235
+ close-on-select :search="false">
236
+ </v-select>
237
+ </div>
229
238
  </div>
230
239
  </div>
231
240
  </criteria>
@@ -268,6 +277,7 @@
268
277
  <!--<nobr>到期日期</nobr>-->
269
278
  <data-order field="f_expire_date" name="到期日期" :order.sync="$parent.$parent.$parent.orderFields.f_expire_date"></data-order>
270
279
  </th>
280
+ <th><nobr>是否到期</nobr></th>
271
281
  <th><nobr>操作人</nobr></th>
272
282
  <th>
273
283
  <!--<nobr>操作时间</nobr>-->
@@ -299,6 +309,7 @@
299
309
  <td style="text-align: center;"><nobr>{{row.f_input_person}}</nobr></td>
300
310
  <td style="text-align: center;"><nobr>{{row.f_input_date}}</nobr></td>
301
311
  <td style="text-align: center;"><nobr>{{row.f_expire_date}}</nobr></td>
312
+ <td style="text-align: center;"><nobr>{{row.f_isexpire}}</nobr></td>
302
313
  <td style="text-align: center;"><nobr>{{row.f_operator}}</nobr></td>
303
314
  <td style="text-align: center;"><nobr>{{row.f_operate_date}}</nobr></td>
304
315
  <td style="text-align: center;"><nobr>{{row.f_comments}}</nobr></td>
@@ -396,6 +407,7 @@
396
407
  // brand: this.$appdata.getParam('设备品牌') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('设备品牌')] : [],
397
408
  watchpurchases: this.$appdata.getParam('购买方式') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('购买方式')] : [],
398
409
  pipetype: this.$appdata.getParam('管道类型') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('管道类型')] : [],
410
+ isexpire: [{label: '全部', value: ''}, {label: '是', value: '是'}, {label: '否', value: '否'}, ],
399
411
  initres: {
400
412
  org:[this.$login.f.orgid],
401
413
  dep:[],
@@ -42,7 +42,7 @@
42
42
  <button @click="$parent.$parent.clearmsg" class="button_clear button_spacing">清空</button>
43
43
  <export-excel :data="$parent.$parent.getCondition()"
44
44
  :field="$parent.$parent.getfield"
45
- sqlurl="rs/logic/exportfile" sql-name="webmeter_getUserGasList" template-name='用气分析'
45
+ sqlurl="rs/logic/exportfile" sql-name="webmeter_getUserGasList" template-name='未用气分析'
46
46
  v-ref:exports
47
47
  :choose-col="true"></export-excel>
48
48
  <button class="button_export button_spacing" style="width: max-content" @click="$parent.$parent.showTotalForm()" >显示汇总</button>
@@ -44,7 +44,7 @@
44
44
  :field="$parent.$parent.getExportField"
45
45
  :header="$parent.$parent.other"
46
46
  v-if="$parent.$parent.authArr.includes('档案查询导出')"
47
- sqlurl="rs/logic/exportfile" sql-name="compreQuery" template-name='综合档案查询导出' :choose-col="true"></export-excel>
47
+ sqlurl="rs/logic/exportfile" sql-name="compreQuerys" template-name='综合档案查询导出' :choose-col="true"></export-excel>
48
48
  <print-data :sum-field="$parent.$parent.getExportField" :model="$parent.model" :field="$parent.$parent.getExportField"
49
49
  :defaultfield="$parent.$parent.defaultfield"
50
50
  titletable="综合档案查询"
@@ -162,6 +162,17 @@
162
162
 
163
163
  </v-select>
164
164
  </div>
165
+ <div class="col-sm-2 form-group">
166
+ <label for="endDate" class="font_normal_body">单位名称</label>
167
+ <v-select :value.sync="model.f_company_id"
168
+ class="select_list select"
169
+ enter-push
170
+ v-model="model.f_company_id" multiple="true"
171
+ @select-search="$parent.$parent.getCompanyList"
172
+ :options='$parent.$parent.companyList' placeholder='单位名称'
173
+ condition="f_company_id in {}">
174
+ </v-select>
175
+ </div>
165
176
  <div class="col-sm-2 form-group" >
166
177
  <label class="font_normal_body">楼&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;号</label>
167
178
  <input type="text" style="width:60%" class="input_search" v-model="model.f_building"
@@ -768,6 +779,7 @@
768
779
  defaultPrint: ['f_userinfo_code', 'f_user_name', 'f_user_phone', 'f_user_state']
769
780
  },
770
781
  area: [],
782
+ companyList: [],
771
783
  inputtouPerson: [],
772
784
  bookinputtorperson:[],
773
785
  conditon2:'',
@@ -793,6 +805,7 @@
793
805
  },
794
806
  ready(){
795
807
  this.getaddress()
808
+ this.getCompanyList()
796
809
  readySomething(this).then(() => {
797
810
  this.$emit('ready')
798
811
  }).catch((error) => {
@@ -800,6 +813,30 @@
800
813
  })
801
814
  },
802
815
  methods: {
816
+ async getCompanyList(searchText){
817
+ let condition = ' 1 = 1 '
818
+ if (searchText) {
819
+ condition = ` f_company_name like '%${searchText}%' `
820
+ }
821
+ let HttpReset = new HttpResetClass()
822
+ HttpReset.load('POST', 'rs/sql/saleSingleTable?pageNo=1&pageSize=100', {
823
+ data: {
824
+ items: 'f_company_name, id',
825
+ tablename: 't_company',
826
+ orderitem: 'id desc',
827
+ condition: condition
828
+ }
829
+ }, {resolveMsg: null, rejectMsg: '获取单位信息失败!'}).then((req) => {
830
+ let redata = []
831
+ req.data.forEach((row, n) => {
832
+ redata[n] = {
833
+ label: row.f_company_name,
834
+ value: row.id
835
+ }
836
+ })
837
+ this.companyList = [{label: '全部', value: ''}, ...redata]
838
+ })
839
+ },
803
840
  userUseInstitutionChange () {
804
841
  this.userusenatures = []
805
842
  this.$refs.paged.$refs.cri.model.f_user_usenature = ''
@@ -193,7 +193,6 @@
193
193
  condition="f_user_type = '{}'"
194
194
  id="f_user_type"
195
195
  placeholder='用户类型'
196
- @change="$parent.$parent.userTypeChange()"
197
196
  v-model="model.f_user_type"
198
197
  :value-single="true">
199
198
  </v-select>
@@ -464,19 +463,6 @@ import {HttpResetClass, PagedList} from 'vue-client'
464
463
  this.getfield = this.config.excelHeaders
465
464
  },
466
465
  methods: {
467
- userTypeChange () {
468
- this.userusetypes = []
469
- this.userusenatures = []
470
- this.useinstitutions = []
471
- this.$refs.paged.$refs.cri.model.f_user_usetype = ''
472
- this.$refs.paged.$refs.cri.model.f_use_institution = ''
473
- this.$refs.paged.$refs.cri.model.f_user_usenature = ''
474
- if (this.$refs.paged.$refs.cri.model.f_user_type) {
475
- console.log('this.$refs.paged.$refs.cri.model.f_user_type', this.$refs.paged.$refs.cri.model.f_user_type)
476
- let str = this.$refs.paged.$refs.cri.model.f_user_type + '用气类型'
477
- this.userusetypes = this.$appdata.getParam(str)
478
- }
479
- },
480
466
  userUseTypeChange () {
481
467
  this.useinstitutions = []
482
468
  this.userusenatures = []
@@ -629,6 +615,9 @@ import {HttpResetClass, PagedList} from 'vue-client'
629
615
  Gasusertype() {
630
616
  return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
631
617
  },
618
+ userusetypes () {
619
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用气类型')]
620
+ },
632
621
  valveStatus() {
633
622
  return [{label: '全部', value: ''}, ...this.$appdata.getParam('气表类型')]
634
623
  },