apply-clients 4.1.27-weinan → 4.1.29-weinan

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.27-weinan",
3
+ "version": "4.1.29-weinan",
4
4
  "description": "报建前端模块",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -94,7 +94,15 @@
94
94
  </div>
95
95
 
96
96
  <div v-for="(i, item) in userinfo.userfiles" class="form-group col-sm-12 panel panel-info">
97
- <div class="panel-heading head" style="background-color: #e8f4ff;margin-bottom: 10px">表具{{$index+1}}信息</div>
97
+ <div class="panel-heading head col-sm-12" style="background-color: #e8f4ff;margin-bottom: 10px">
98
+ <div class="col-sm-6 text-left" style="background-color: #e8f4ff;margin-bottom: 10px">表具{{$index+1}}信息</div>
99
+ <div class="col-sm-6 text-right"><button
100
+ class="button_delete button_spacing"
101
+ v-if="!item.f_userfiles_id"
102
+ @click.prevent="deleteUserFile(i)"
103
+ >删除</button></div>
104
+ </div>
105
+
98
106
  <div class="form-group col-sm-6" :class="[$v.gasbrand.required ? 'has-error' : '']">
99
107
  <label class="col-sm-4 control-label">气表品牌:</label>
100
108
  <div class="col-sm-8">
@@ -191,7 +199,7 @@
191
199
  :valueSingle="true"></input-select>
192
200
  </div>
193
201
  </div>
194
- <div class="form-group col-sm-6">
202
+ <!-- <div class="form-group col-sm-6">
195
203
  <label class="col-sm-4 control-label">安装人:</label>
196
204
  <div class="col-sm-8">
197
205
  <input-select
@@ -202,7 +210,7 @@
202
210
  :disable="mark === 1"
203
211
  :valueSingle="true"></input-select>
204
212
  </div>
205
- </div>
213
+ </div>-->
206
214
  <div class="form-group col-sm-6">
207
215
  <label class="col-sm-4 control-label">安装日期:</label>
208
216
  <div class="col-sm-8">
@@ -274,6 +282,10 @@ export default {
274
282
  this.installperson()
275
283
  },
276
284
  methods: {
285
+ // 删除未保存的表具
286
+ async deleteUserFile (index) {
287
+ this.userinfo.userfiles.splice(index, 1)
288
+ },
277
289
  // 追加表具
278
290
  addUserFile() {
279
291
  this.userinfo.userfiles.push({})
@@ -295,12 +307,16 @@ export default {
295
307
  userinfo: this.userinfo,
296
308
  selectdata: this.selectdata
297
309
  }
298
- let res = await this.$resetpost(this.$androidUtil.getProxyUrl() +'/rs/logic/addInstallationDetails', {data:data}, {
310
+ await this.$resetpost(this.$androidUtil.getProxyUrl() +'/rs/logic/addInstallationDetails', {data:data}, {
299
311
  resolveMsg: null,
300
312
  rejectMsg: '表具添加失败!!!'
313
+ }).then(res=>{
314
+ this.showUserFile = false
315
+ this.useradders = null
316
+ this.userinfo = null
317
+ this.search()
301
318
  })
302
- this.showUserFile = false
303
- this.$dispatch('breakControl', this.selectdata)
319
+
304
320
  },
305
321
  // 检查表号是否存在
306
322
  async meternumberValidate(i) {
@@ -386,7 +402,6 @@ export default {
386
402
  }
387
403
  }
388
404
  }
389
- console.log("表具信息",this.userinfo.userfiles)
390
405
  this.showUserFile = true
391
406
  },
392
407
  // 获取气表品牌
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <div class="col-sm-12" style="margin: 20px 0px;">
3
- <div class="auto" style="overflow:auto;margin: 15px 0 0 15px;">
3
+ <!-- <div class="auto" style="overflow:auto;margin: 15px 0 0 15px;">
4
4
  <div class="col-sm-12" style="height: 180px">
5
5
  <div class="row col-sm-12">
6
6
  <div class="from-group col-sm-3">
@@ -11,13 +11,13 @@
11
11
  </v-select>
12
12
  </div>
13
13
  <div class="form-group col-sm-5" >
14
- <!-- <button class="button_search button_spacing" @click="search()">查询</button>-->
14
+ &lt;!&ndash; <button class="button_search button_spacing" @click="search()">查询</button>&ndash;&gt;
15
15
  <button type="button" class="btn btn-default" @click="search(0)">查询</button>
16
16
  <button type="button" class="btn btn-default" @click="clear()">清空</button>
17
17
  </div>
18
18
  </div>
19
19
  </div>
20
- </div>
20
+ </div>-->
21
21
  <data-grid :model="model" v-ref:grid class="list_area table_sy" style="padding: 0px">
22
22
  <template partial='head'>
23
23
  <tr>
@@ -117,7 +117,15 @@
117
117
  </div>
118
118
 
119
119
  <div v-for="(i, item) in userinfo.devices" class="form-group col-sm-12 panel panel-info">
120
- <div class="panel-heading head" style="background-color: #e8f4ff;margin-bottom: 10px">设备{{$index+1}}信息</div>
120
+ <div class="panel-heading head col-sm-12" style="background-color: #e8f4ff;margin-bottom: 10px">
121
+ <div class="col-sm-6 text-left" style="background-color: #e8f4ff;margin-bottom: 10px">设备{{$index+1}}信息</div>
122
+ <div class="col-sm-6 text-right"><button
123
+ class="button_delete button_spacing"
124
+ v-if="!item.f_userfiles_id"
125
+ @click.prevent="deleteUserFile(i)"
126
+ >删除</button></div>
127
+ </div>
128
+
121
129
  <div class="form-group col-sm-6">
122
130
  <label class="col-sm-4 control-label">设备类型:</label>
123
131
  <div class="col-sm-8">
@@ -603,6 +611,10 @@ export default {
603
611
  this.search()
604
612
  },
605
613
  methods: {
614
+ // 删除未保存的表具
615
+ async deleteUserFile (index) {
616
+ this.userinfo.devices.splice(index, 1)
617
+ },
606
618
  // 追加表具
607
619
  addUserFile() {
608
620
  this.userinfo.devices.push({})
@@ -620,7 +632,7 @@ export default {
620
632
  resolveMsg: null,
621
633
  rejectMsg: '设备添加失败!!!'
622
634
  })
623
- this.$dispatch('breakControl', this.selectdata)
635
+ this.showUserFile = false
624
636
  },
625
637
  // 打开设备明细
626
638
  async showUserFileModal (row) {
@@ -668,6 +680,7 @@ export default {
668
680
  }
669
681
  ]
670
682
  this.fireinfo = {}
683
+ this.fireinfo.f_lgniter = Vue.user.name
671
684
  }else {
672
685
  this.fireinfo = this.userinfo.fireinfo[0]
673
686
  }