sale-client 3.6.418 → 3.6.419

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": "sale-client",
3
- "version": "3.6.418",
3
+ "version": "3.6.419",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -119,7 +119,7 @@
119
119
 
120
120
  <script>
121
121
  import {HttpResetClass} from 'vue-client'
122
- import axios from "axios";
122
+ import axios from 'axios'
123
123
 
124
124
  export default {
125
125
  title: '参数设置',
@@ -156,15 +156,22 @@ export default {
156
156
  this.row = {}
157
157
  if (val) {
158
158
  for (let i = 0; i < this.newmeterinfo.length; i++) {
159
- for (let j = 0; j < this.newmeterinfo[i].params.length; j++) {
160
- if (this.newmeterinfo[i].name === this.paramtype) {
161
- for (let j = 0; j < this.newmeterinfo[i].params.length; j++) {
162
- if (this.newmeterinfo[i].params[j].data) {
163
- this.row[this.newmeterinfo[i].params[j].title] = this.newmeterinfo[i].params[j].data
164
- }
165
- if (this.newmeterinfo[i].params[j].multiple == true) {
166
- this.row[this.newmeterinfo[i].params[j].title] = []
167
- console.log('====>', this.row[this.newmeterinfo[i].params[j].title])
159
+ if (this.newmeterinfo[i].name == this.paramtype) {
160
+ const params = this.newmeterinfo[i].params
161
+ for (let j = 0; j < params.length; j++) {
162
+ const param = params[j]
163
+ if (param.data) {
164
+ if (Array.isArray(param.data)) {
165
+ this.row[param.title] = []
166
+ for (let u = 0; u < param.data.length; u++) {
167
+ for (let z = 0; z < param.params.length; z++) {
168
+ if (param.data[u] == param.params[z].value.code) {
169
+ this.row[param.title].push(param.params[z].value)
170
+ }
171
+ }
172
+ }
173
+ } else {
174
+ this.row[param.title] = param.data
168
175
  }
169
176
  }
170
177
  }