sale-client 3.5.23 → 3.5.24
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 +1 -1
- package/src/components/webMeter/paramSave/ParamSet.vue +6 -8
- package/src/components/webMeter/paramSave/ParamSetForm.vue +34 -37
- package/src/filiale/dongguan/components/FilesManage/FileUserFiles.vue +1026 -0
- package/src/filiale/dongguan/components/comprehen/StairPrice/GasPrice.vue +518 -0
- package/src/filiale/dongguan/sale.js +5 -1
- package/src/filiale/kelai/MeterinfoTest.vue +952 -0
- package/src/filiale/kelai/sale.js +6 -0
- package/src/filiale/macheng/FilesManageNew/UserEssentialInfoTest.vue +2 -2
- package/src/filiale/macheng/FilesManageNew/UserGeneralInfoTest.vue +1 -1
- package/src/plugins/LogicService.js +2 -2
package/package.json
CHANGED
|
@@ -245,10 +245,9 @@ let initGen = async function (self) {
|
|
|
245
245
|
arr.push(temp)
|
|
246
246
|
let styleArr = []
|
|
247
247
|
for (let row of item.value.gasmodel) {
|
|
248
|
-
styleArr.push({label: row.label,value: row.value.id})
|
|
248
|
+
styleArr.push({label: row.label, value: row.value.id})
|
|
249
249
|
}
|
|
250
250
|
self.meterstyle[temp.value] = styleArr
|
|
251
|
-
console.log('jjjjkhk', styleArr)
|
|
252
251
|
}
|
|
253
252
|
})
|
|
254
253
|
self.meterbrand = arr
|
|
@@ -268,7 +267,7 @@ export default {
|
|
|
268
267
|
showParame: false,
|
|
269
268
|
paramHistory: false,
|
|
270
269
|
row: null,
|
|
271
|
-
setable:
|
|
270
|
+
setable: true,
|
|
272
271
|
criteriaShow: false,
|
|
273
272
|
condition: '',
|
|
274
273
|
f_gasbrand_id: null,
|
|
@@ -347,16 +346,16 @@ export default {
|
|
|
347
346
|
hidden () {
|
|
348
347
|
this.criteriaShow = !this.criteriaShow
|
|
349
348
|
},
|
|
350
|
-
async showParamDefault(){
|
|
351
|
-
this.user=null
|
|
349
|
+
async showParamDefault () {
|
|
350
|
+
this.user = null
|
|
352
351
|
this.map.clear()
|
|
353
352
|
await this.$refs.form.getBrandParamsHistory()
|
|
354
353
|
this.showParame = !this.showParame
|
|
355
354
|
},
|
|
356
355
|
showParam () {
|
|
357
356
|
this.conditionMsg = ''
|
|
358
|
-
if(!this.user){
|
|
359
|
-
this.user=[]
|
|
357
|
+
if (!this.user) {
|
|
358
|
+
this.user = []
|
|
360
359
|
}
|
|
361
360
|
if (this.user.length === 0) {
|
|
362
361
|
this.$showMessage('是否要设置查询出来的所有表参数', ['confirm', 'cancel']).then((res) => {
|
|
@@ -438,7 +437,6 @@ export default {
|
|
|
438
437
|
},
|
|
439
438
|
mapset (array) {
|
|
440
439
|
this.map.clear()
|
|
441
|
-
console.log(array)
|
|
442
440
|
for (let i = 0; i < array.length; i++) {
|
|
443
441
|
let userid = array[i].f_userfiles_id
|
|
444
442
|
let alias = array[i].f_alias
|
|
@@ -117,9 +117,9 @@
|
|
|
117
117
|
|
|
118
118
|
|
|
119
119
|
<script>
|
|
120
|
-
import {HttpResetClass} from
|
|
120
|
+
import {HttpResetClass} from 'vue-client'
|
|
121
121
|
|
|
122
|
-
|
|
122
|
+
export default {
|
|
123
123
|
title: '参数设置',
|
|
124
124
|
props: ['user', 'checked1', 'gasbrandid', 'condition'],
|
|
125
125
|
|
|
@@ -130,8 +130,8 @@
|
|
|
130
130
|
gasbrand: null,
|
|
131
131
|
paramtypes: [],
|
|
132
132
|
paramtype: '',
|
|
133
|
-
param:{},
|
|
134
|
-
history:[]
|
|
133
|
+
param: {},
|
|
134
|
+
history: []
|
|
135
135
|
}
|
|
136
136
|
},
|
|
137
137
|
ready () {
|
|
@@ -140,8 +140,7 @@
|
|
|
140
140
|
watch: {
|
|
141
141
|
param: {
|
|
142
142
|
handler: function (val) {
|
|
143
|
-
console.log(
|
|
144
|
-
|
|
143
|
+
console.log('--------------param变了', val)
|
|
145
144
|
},
|
|
146
145
|
deep: true
|
|
147
146
|
},
|
|
@@ -183,22 +182,21 @@
|
|
|
183
182
|
let params = []
|
|
184
183
|
for (let i = 0; i < this.newmeterinfo.length; i++) {
|
|
185
184
|
for (let j = 0; j < this.newmeterinfo[i].params.length; j++) {
|
|
186
|
-
if(this.newmeterinfo[i].name===this.paramtype){
|
|
185
|
+
if (this.newmeterinfo[i].name === this.paramtype) {
|
|
187
186
|
for (let key in this.row) {
|
|
188
187
|
if (key === this.newmeterinfo[i].params[j].title) {
|
|
189
188
|
let data = {}
|
|
190
189
|
data.param_group = this.newmeterinfo[i].name
|
|
191
190
|
data.param_name = this.newmeterinfo[i].params[j].name
|
|
192
|
-
data.param_value = this.row[key]?(this.row[key].code?this.row[key].code:this.row[key]):null
|
|
193
|
-
data.param_content = this.row[key]?(this.row[key].content?this.row[key].content:this.row[key]):null
|
|
191
|
+
data.param_value = this.row[key] ? (this.row[key].code ? this.row[key].code : this.row[key]) : null
|
|
192
|
+
data.param_content = this.row[key] ? (this.row[key].content ? this.row[key].content : this.row[key]) : null
|
|
194
193
|
data.param_lname = this.newmeterinfo[i].params[j].title
|
|
195
|
-
if(this.row[key]){
|
|
194
|
+
if (this.row[key]) {
|
|
196
195
|
params.push(data)
|
|
197
196
|
}
|
|
198
197
|
}
|
|
199
198
|
}
|
|
200
199
|
}
|
|
201
|
-
|
|
202
200
|
}
|
|
203
201
|
}
|
|
204
202
|
let param = {
|
|
@@ -233,24 +231,24 @@
|
|
|
233
231
|
let params = []
|
|
234
232
|
for (let i = 0; i < this.newmeterinfo.length; i++) {
|
|
235
233
|
for (let j = 0; j < this.newmeterinfo[i].params.length; j++) {
|
|
236
|
-
if(this.newmeterinfo[i].name===this.paramtype){
|
|
234
|
+
if (this.newmeterinfo[i].name === this.paramtype) {
|
|
237
235
|
for (let key in this.row) {
|
|
238
236
|
if (key === this.newmeterinfo[i].params[j].title) {
|
|
239
237
|
let data = {}
|
|
240
238
|
data.param_group = this.newmeterinfo[i].name
|
|
241
239
|
data.param_name = this.newmeterinfo[i].params[j].name
|
|
242
|
-
data.param_value = this.row[key]?(this.row[key].code?this.row[key].code:this.row[key]):null
|
|
243
|
-
data.param_content = this.row[key]?(this.row[key].content?this.row[key].content:this.row[key]):null
|
|
240
|
+
data.param_value = this.row[key] ? (this.row[key].code ? this.row[key].code : this.row[key]) : null
|
|
241
|
+
data.param_content = this.row[key] ? (this.row[key].content ? this.row[key].content : this.row[key]) : null
|
|
244
242
|
data.param_lname = this.newmeterinfo[i].params[j].title
|
|
245
|
-
if(this.row[key]){
|
|
243
|
+
if (this.row[key]) {
|
|
246
244
|
params.push(data)
|
|
247
245
|
}
|
|
248
246
|
}
|
|
249
247
|
}
|
|
250
248
|
}
|
|
251
|
-
|
|
252
249
|
}
|
|
253
250
|
}
|
|
251
|
+
debugger
|
|
254
252
|
let param = {
|
|
255
253
|
condition: 'g.f_gasbrand_id = ' + this.gasbrandid[0] + ' and f.f_userfiles_id in (' + filesid + ')',
|
|
256
254
|
switchCheckAll: this.checked1,
|
|
@@ -276,40 +274,39 @@
|
|
|
276
274
|
this.paramtypes = []
|
|
277
275
|
let temp = {
|
|
278
276
|
tablename: 't_gasbrand',
|
|
279
|
-
condition: `id=${val}
|
|
277
|
+
condition: `id=${val}`
|
|
280
278
|
}
|
|
281
279
|
await this.$resetpost('rs/sql/saleSingleTable', {data: temp}, {resolveMsg: null, rejectMsg: null}).then((res) => {
|
|
282
280
|
this.gasbrand = res.data[0]
|
|
283
281
|
})
|
|
284
282
|
this.newmeterinfo = [{}]
|
|
285
283
|
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
284
|
+
let res = await this.$resetpost('/webmeter/rs/logic/getParamsByGasBrand', {data: {gasBrandId: val}}, {resolveMsg: '参数已加载', rejectMsg: null})
|
|
285
|
+
this.newmeterinfo = res.data
|
|
286
|
+
for (let i = 0; i < this.newmeterinfo.length; i++) {
|
|
287
|
+
this.paramtypes.push({label: this.newmeterinfo[i].name, value: this.newmeterinfo[i].name})
|
|
288
|
+
for (let j = 0; j < this.newmeterinfo[i].params.length; j++) {
|
|
289
|
+
if (this.newmeterinfo[i].params[j].params instanceof Array) {
|
|
292
290
|
for (let k = 0; k < this.newmeterinfo[i].params[j].params.length; k++) {
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
}
|
|
291
|
+
this.newmeterinfo[i].params[j].params[k].value = {
|
|
292
|
+
id: this.newmeterinfo[i].params[j].params[k].label,
|
|
293
|
+
code: this.newmeterinfo[i].params[j].params[k].value,
|
|
294
|
+
content: this.newmeterinfo[i].params[j].params[k].label
|
|
298
295
|
}
|
|
299
296
|
}
|
|
300
297
|
}
|
|
301
298
|
}
|
|
302
|
-
|
|
303
|
-
|
|
299
|
+
}
|
|
300
|
+
this.$dispatch('showparam', true)
|
|
304
301
|
},
|
|
305
|
-
async getBrandParamsHistory(){
|
|
302
|
+
async getBrandParamsHistory () {
|
|
306
303
|
let http = new HttpResetClass()
|
|
307
304
|
let res = await http.load('POST', 'rs/sql/getBrandParamHistory', {
|
|
308
305
|
data: {
|
|
309
306
|
condition: `ga.f_gasbrand_id= ${this.gasbrandid}`
|
|
310
307
|
}
|
|
311
308
|
}, {resolveMsg: null, rejectMsg: '获取参数历史信息信息失败'})
|
|
312
|
-
this.history=res.data
|
|
309
|
+
this.history = res.data
|
|
313
310
|
let rat = await http.load('POST', 'rs/sql/singleTable_OrderBy', {
|
|
314
311
|
data: {
|
|
315
312
|
items: '*',
|
|
@@ -320,18 +317,18 @@
|
|
|
320
317
|
}, {resolveMsg: null, rejectMsg: '获取参数历史信息信息失败'})
|
|
321
318
|
if (rat.data.length > 0) {
|
|
322
319
|
rat.data.forEach((item) => {
|
|
323
|
-
if(item.f_param_value === '1'){
|
|
320
|
+
if (item.f_param_value === '1') {
|
|
324
321
|
item.f_param_value = '开'
|
|
325
322
|
}
|
|
326
|
-
if(item.f_param_value === '0'){
|
|
323
|
+
if (item.f_param_value === '0') {
|
|
327
324
|
item.f_param_value = '关'
|
|
328
325
|
}
|
|
329
|
-
console.log(
|
|
330
|
-
this.$set(`param['${item.f_param_lname}']`,item.f_param_value)
|
|
326
|
+
console.log('参数取出来了---', item.f_param_lname)
|
|
327
|
+
this.$set(`param['${item.f_param_lname}']`, item.f_param_value)
|
|
331
328
|
// this.param[item.f_param_lname] = item.f_param_value
|
|
332
329
|
})
|
|
333
330
|
}
|
|
334
|
-
console.log(
|
|
331
|
+
console.log('参数取出来了', this.param)
|
|
335
332
|
}
|
|
336
333
|
}
|
|
337
334
|
}
|