apply-clients 4.1.26-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
|
@@ -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
|
-
|
|
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)
|
|
269
|
+
|
|
270
|
+
|
|
251
271
|
this.selectdata.f_price_id = stairPrice.f_price_id
|
|
252
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:{
|