apply-clients 4.1.78 → 4.1.81

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": "apply-clients",
3
- "version": "4.1.78",
3
+ "version": "4.1.81",
4
4
  "description": "报建前端模块",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -92,7 +92,7 @@
92
92
  "sinon-chai": "^2.8.0",
93
93
  "style": "0.0.3",
94
94
  "style-loader": "^0.20.3",
95
- "system-clients": "3.1.87",
95
+ "system-clients": "3.2.1-11",
96
96
  "system-phone": "1.1.18",
97
97
  "url-loader": "^0.5.7",
98
98
  "vue-client": "1.24.39",
@@ -7,13 +7,13 @@
7
7
  <div class="form-group col-sm-5">
8
8
  <label class="font_normal_body">项目名称:</label>
9
9
  <input type="text" class="input_search" v-model="model.f_entry_name"
10
- v-on:keyup.enter="$parent.$parent.search()" condition=" f_entry_name ='{}' " placeholder='请输入'>
10
+ v-on:keyup.enter="$parent.$parent.search()" condition=" f_entry_name like '%{}%' " placeholder='请输入'>
11
11
  </div>
12
12
  <div class="form-group col-sm-4">
13
13
  <label class="font_normal_body">报建编号:</label>
14
14
  <input type="text" class="input_search" placeholder='报建编号' v-model="model.f_apply_num"
15
15
  v-on:keyup.enter="$parent.$parent.search()"
16
- condition="f_apply_num = '{}'">
16
+ condition="f_apply_num like '%{}%'">
17
17
  </div>
18
18
  <div class="form-group col-sm-3 button-range">
19
19
  <button class="button_search button_spacing" @click="$parent.$parent.search()" v-el:cx>查询</button>
@@ -31,7 +31,7 @@
31
31
  <label class="font_normal_body">合同编号:</label>
32
32
  <input type="text" class="input_search" placeholder='合同编号' v-model="model.f_contract_number"
33
33
  v-on:keyup.enter="$parent.$parent.search()"
34
- condition="f_contract_number = '{}'">
34
+ condition="f_contract_number like '%{}%'">
35
35
  </div>
36
36
  <div class="form-group col-sm-4">
37
37
  <label class="font_normal_body">报建类型:</label>
@@ -7,13 +7,13 @@
7
7
  <div class="form-group col-sm-4">
8
8
  <label class="font_normal_body">项目名称:</label>
9
9
  <input type="text" class="input_search" v-model="model.f_entry_name"
10
- v-on:keyup.enter="$parent.$parent.search()" condition=" f_entry_name = '{}' " placeholder='请输入'>
10
+ v-on:keyup.enter="$parent.$parent.search()" condition=" f_entry_name like '%{}%' " placeholder='请输入'>
11
11
  </div>
12
12
  <div class="form-group col-sm-3">
13
13
  <label class="font_normal_body">报建编号:</label>
14
14
  <input type="text" class="input_search" placeholder='报建编号' v-model="model.f_apply_num"
15
15
  v-on:keyup.enter="$parent.$parent.search()"
16
- condition="f_apply_num = '{}'">
16
+ condition="f_apply_num like '%{}%'">
17
17
  </div>
18
18
  <div class="form-group col-sm-5 button-range">
19
19
  <button class="button_new button_spacing" style="width: max-content"
@@ -34,7 +34,7 @@
34
34
  <label class="font_normal_body">合同编号:</label>
35
35
  <input type="text" class="input_search" placeholder='合同编号' v-model="model.f_contract_number"
36
36
  v-on:keyup.enter="$parent.$parent.search()"
37
- condition="f_apply_num = '{}'">
37
+ condition="f_contract_number like '%{}%'">
38
38
  </div>
39
39
  <div class="form-group col-sm-3">
40
40
  <label class="font_normal_body">报建类型:</label>
@@ -197,7 +197,7 @@
197
197
  class="select select_list"
198
198
  :value.sync="item.f_install_person"
199
199
  v-model="item.f_install_person"
200
- :options="installperson"
200
+ :options="installpersons"
201
201
  :disable="mark === 1"
202
202
  :valueSingle="true"></input-select>
203
203
  </div>
@@ -253,6 +253,7 @@ export default {
253
253
  meterbrands: [], // 气表品牌
254
254
  useradders: null,
255
255
  userinfo: {},
256
+ installpersons:[],
256
257
  getfield: {
257
258
  'f_address': '地址',
258
259
  'f_meternumber': '表号',
@@ -271,6 +272,7 @@ export default {
271
272
  ready () {
272
273
  this.search()
273
274
  this.getMeterbrands()
275
+ this.installperson()
274
276
  },
275
277
  methods: {
276
278
  // 追加表具
@@ -430,6 +432,21 @@ export default {
430
432
  }
431
433
  }
432
434
  },
435
+ // 安装人
436
+ async installperson() {
437
+ let http = new HttpResetClass()
438
+ let res = await http.load('POST', 'rs/search', {
439
+ source: "this.getParentByType($organization$).getChildByName($安全员$).getChildren()",
440
+ userid: this.$login.f.id
441
+ }, {resolveMsg: null, rejectMsg: null})
442
+
443
+ this.installpersons = res.data.map(item =>{
444
+ return {
445
+ label: item.name,
446
+ value: item.name
447
+ }
448
+ })
449
+ },
433
450
  // 关闭安装明细
434
451
  closeUserFile() {
435
452
  this.showUserFile = false
@@ -464,15 +481,6 @@ export default {
464
481
  }
465
482
  return data
466
483
  },
467
- // 安装人
468
- installperson() {
469
- return this.$login.f.f_installman.map(item => {
470
- return {
471
- label: item.name,
472
- value: item.name
473
- }
474
- })
475
- },
476
484
  // 表向
477
485
  aroundmeters() {
478
486
  return this.$appdata.getParam('左右表')
@@ -1074,12 +1074,12 @@ export default {
1074
1074
  resolveMsg: null,
1075
1075
  rejectMsg: null
1076
1076
  })
1077
- if (resparent.data[i].defname === '营业厅建档' && resparent.data[i].state === '结束')
1078
- // let http3 = new HttpResetClass()
1079
- await http.load('POST', 'rs/logic/parentprocess', {data: {processid: resparent.data[i].processid, defname: resparent.data[i].defname}}, {
1080
- resolveMsg: null,
1081
- rejectMsg: null
1082
- })
1077
+ // if (resparent.data[i].defname === '营业厅建档' && resparent.data[i].state === '结束')
1078
+ // // let http3 = new HttpResetClass()
1079
+ // await http.load('POST', 'rs/logic/parentprocess', {data: {processid: resparent.data[i].processid, defname: resparent.data[i].defname}}, {
1080
+ // resolveMsg: null,
1081
+ // rejectMsg: null
1082
+ // })
1083
1083
  }
1084
1084
  for (let i = 0; i < this.selectedData.length; i++) {
1085
1085
  let data = {
@@ -113,7 +113,7 @@
113
113
  <div class="form-group col-sm-12" :class="charge.f_charge_money ? '':'has-error'">
114
114
  <label class="col-sm-2 control-label">收费金额:</label>
115
115
  <div class="col-sm-10">
116
- <input type="number"
116
+ <input type="input"
117
117
  class="form-control input_view"
118
118
  style="width: 100%"
119
119
  placeholder="0.00"
@@ -546,7 +546,7 @@
546
546
  this.$dispatch('onblur', index)
547
547
  // 如果有错误信息提示走错误信息判断处理
548
548
 
549
- if (this.data.fields[index].error || this.data.fields[index].type === 'datepicker') {
549
+ if (this.data.fields[index].error && this.data.fields[index].type === 'datepicker') {
550
550
  this.$dispatch('error_check', index)
551
551
  }
552
552
  },
@@ -569,7 +569,7 @@
569
569
  this.$dispatch('onchange', index)
570
570
 
571
571
  // 如果有错误信息提示走错误信息判断处理
572
- if (this.data.fields[index].error || this.data.fields[index].type === 'datepicker') {
572
+ if (this.data.fields[index].error && this.data.fields[index].type === 'datepicker') {
573
573
  this.$dispatch('error_check', index)
574
574
  }
575
575
  },
@@ -580,7 +580,7 @@
580
580
  this.$dispatch('oninput', index)
581
581
 
582
582
  // 如果有错误信息提示走错误信息判断处理
583
- if (this.data.fields[index].error || this.data.fields[index].type === 'datepicker') {
583
+ if (this.data.fields[index].error && this.data.fields[index].type === 'datepicker') {
584
584
  this.$dispatch('error_check', index)
585
585
  }
586
586
  },
@@ -7,19 +7,19 @@
7
7
  <div class="form-group col-sm-4">
8
8
  <label class="font_normal_body">项目名称:</label>
9
9
  <input type="text" class="input_search" v-model="model.f_entry_name"
10
- v-on:keyup.enter="search" condition=" f_entry_name = '{}' " placeholder='请输入'>
10
+ v-on:keyup.enter="search" condition=" f_entry_name like '%{}%' " placeholder='请输入'>
11
11
  </div>
12
12
  <div class="form-group col-sm-3">
13
13
  <label class="font_normal_body">报建编号:</label>
14
14
  <input type="text" class="input_search" placeholder='报建编号' v-model="model.f_apply_num"
15
15
  v-on:keyup.enter="search"
16
- condition="f_apply_num = '{}'">
16
+ condition="f_apply_num like '%{}%'">
17
17
  </div>
18
18
  <div class="form-group col-sm-3">
19
19
  <label class="font_normal_body">合同编号:</label>
20
20
  <input type="text" class="input_search" placeholder='合同编号' v-model="model.f_contract_number"
21
21
  v-on:keyup.enter="search"
22
- condition="f_contract_number = '{}'">
22
+ condition="f_contract_number like '%{}%'">
23
23
  </div>
24
24
  <div class="form-group col-sm-2 button-range">
25
25
  <button class="button_search button_spacing" @click="$parent.$parent.search()" v-el:cx>查询</button>