apply-clients 4.1.25-weinan → 4.1.27-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.25-weinan",
3
+ "version": "4.1.27-weinan",
4
4
  "description": "报建前端模块",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -299,6 +299,7 @@ export default {
299
299
  resolveMsg: null,
300
300
  rejectMsg: '表具添加失败!!!'
301
301
  })
302
+ this.showUserFile = false
302
303
  this.$dispatch('breakControl', this.selectdata)
303
304
  },
304
305
  // 检查表号是否存在
@@ -340,7 +340,7 @@
340
340
  <!-- <avatar-upload :img-src.sync="row.img.content" :filename.sync="row.img.filename"></avatar-upload>-->
341
341
  <form class="form-horizontal select-overspread " style="flex: 1;">
342
342
  <div style="margin-top: 2%">
343
- <img style="margin-top: -2px;margin-left: 2px" src="../../../../../static/images/lefticon/矩形1183.png">
343
+ <img style="margin-top: -2px;margin-left: 2px" src="../../../static/images/lefticon/矩形1183.png">
344
344
  <a style="font-size: 16px;font-weight: 500;">民用点火信息</a>&nbsp;<a style="color: #999999;text-decoration: none"></a>
345
345
  </div>
346
346
  <div class="row auto" style="margin-top: 10px;margin-left: 10px;">
@@ -441,7 +441,7 @@
441
441
  <!-- <avatar-upload :img-src.sync="row.img.content" :filename.sync="row.img.filename"></avatar-upload>-->
442
442
  <form class="form-horizontal select-overspread " style="flex: 1;">
443
443
  <div style="margin-top: 2%">
444
- <img style="margin-top: -2px;margin-left: 2px" src="../../../../../static/images/lefticon/矩形1183.png">
444
+ <img style="margin-top: -2px;margin-left: 2px" src="../../../static/images/lefticon/矩形1183.png">
445
445
  <a style="font-size: 16px;font-weight: 500;">非民用点火基本信息</a>&nbsp;<a style="color: #999999;text-decoration: none"></a>
446
446
  </div>
447
447
  <div class="row auto" style="margin-top: 10px;margin-left: 10px;">
@@ -551,14 +551,12 @@
551
551
  <button type="button" class="btn btn-success" @click='confirm()'>确定</button>
552
552
  </footer>
553
553
  </modal>
554
- <apply-file-user-fire-info v-if="showFilePage" :fireinfo="fireinfo" :showFilePage="showFilePage"></apply-file-user-fire-info>
554
+ <!-- <apply-file-user-fire-info v-if="showFilePage" :fireinfo="fireinfo" :showFilePage="showFilePage"></apply-file-user-fire-info>-->
555
555
  </validator>
556
556
  </template>
557
557
  <script>
558
558
  import Vue from 'vue'
559
- import {PagedList} from 'vue-client'
560
559
  import {HttpResetClass} from 'vue-client'
561
- import {isEmpty} from '../../../Util'
562
560
 
563
561
  export default {
564
562
  title: '设备信息',
@@ -747,7 +745,7 @@ export default {
747
745
  let data = {
748
746
  fireinfo: this.fireinfo
749
747
  }
750
- let res = await http.load('POST', this.$androidUtil.getProxyUrl() +'/rs/logic/addInstallationDetailsFire', {data:data}, {
748
+ let res = await http.load('POST', this.$androidUtil.getProxyUrl() +'/rs/entity/t_userfire', this.fireinfo, {
751
749
  resolveMsg: "添加成功",
752
750
  rejectMsg: "添加失败"
753
751
  }).then((res) => {
@@ -124,7 +124,9 @@
124
124
  }
125
125
  }
126
126
  }
127
-
127
+ if (this.data.fields[i].ready) {
128
+ this.data.fields[i].options = await this[this.data.fields[i].ready]()
129
+ }
128
130
  }
129
131
  }
130
132
  // 初始化 buttons_fields
@@ -235,24 +237,44 @@
235
237
  }
236
238
  })
237
239
  },
240
+ getLableValue(label) {
241
+ for (const item of this.show_data.fields) {
242
+ if (item.label === label && item.type !== 'number') {
243
+ return item.value || ''
244
+ }
245
+ if (item.label === label && item.type === 'number') {
246
+ return item.value || 0
247
+ }
248
+ }
249
+ },
250
+ setLabelValue(label, value) {
251
+ for (const item of this.show_data.fields) {
252
+ if (item.label === label) {
253
+ item.value = value
254
+ }
255
+ }
256
+ },
238
257
  },
239
258
  events: {
240
259
  // 选择气价
241
260
  'priceChange'(index) {
242
- if (isEmpty(this.show_data.f_stair_price_name)) {
261
+ /* if (isEmpty(this.show_data.f_stair_price_name)) {
243
262
  return
244
- }
245
-
263
+ }*/
246
264
  let stairPrice = this.getLableValue('气价名称')
247
265
  console.log("气价信息", stairPrice)
248
266
  this.setLabelValue('气价类型', stairPrice.f_price_type)
249
267
  this.setLabelValue('用气性质', stairPrice.f_gasproperties)
250
268
  this.setLabelValue('气价', stairPrice.f_price)
251
- this.show_data.f_price_id = stairPrice.f_price_id
252
- this.show_data.f_price_name = stairPrice.f_price_name
269
+
270
+
271
+ this.selectdata.f_price_id = stairPrice.f_price_id
272
+ this.selectdata.f_price_name = stairPrice.f_price_name
273
+ this.$refs.service_show.update()
253
274
  },
254
275
  // 任意select选中时触发事件
255
276
  'select_cascade'(index){
277
+ console.log("sihoennoojooinoi",this.selectdata.f_stair_price_name,this.$refs.service_show.data)
256
278
  // this.$refs.service_show.model_temp // 子业务显示组件
257
279
  // 级联操作示例:
258
280
  /*
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div class="auto select-overspread">
2
+ <div class="auto select-overspread" v-if="refresh">
3
3
  <div v-if="data.back_reason" class="panel panel-info">
4
4
  <span style="color: red"> 请注意被退回原因为:{{data.back_reason}}</span>
5
5
  </div>
@@ -201,7 +201,8 @@
201
201
  },
202
202
  data:null,
203
203
  showmodal:false,
204
- disable_button:true
204
+ disable_button:true,
205
+ refresh: true // 控制重新渲染
205
206
  }
206
207
  },
207
208
  created(){
@@ -322,6 +323,9 @@
322
323
  // 级联操作预留
323
324
  select_change(index){
324
325
  this.disableButton()
326
+ if (this.data.fields[index].onchange) {
327
+ this.$dispatch(this.data.fields[index].onchange, index)
328
+ }
325
329
  this.$dispatch('select_cascade',index)
326
330
  },
327
331
  // 检测按钮的disable
@@ -338,6 +342,14 @@
338
342
  }
339
343
  this.disable_button = flag
340
344
  }
345
+ },
346
+ // 强制刷新
347
+ update (){
348
+ this.refresh = false
349
+ this.$nextTick(() => {
350
+ this.refresh = true
351
+ })
352
+ this.initializtion()
341
353
  }
342
354
  },
343
355
  watch:{