| | |
| | | <span>{{queryParams.weight}}</span> |
| | | </el-descriptions-item> |
| | | <el-descriptions-item label="配瓦颜色"> |
| | | <span style="color: #FFFFFF;" :style="{ backgroundColor: queryParams.tileColor }">{{queryParams.tileColor}}</span> |
| | | <!-- <span style="color: #FFFFFF;" :style="{ backgroundColor: queryParams.tileColor }">{{queryParams.tileColor}}</span>--> |
| | | <span v-for="(word, index) in queryParams.words" :key="index" :style="{ backgroundColor: queryParams.colors[index],fontSize: '30px',}">{{ word }}</span> |
| | | </el-descriptions-item> |
| | | </el-descriptions> |
| | | <el-divider></el-divider> |
| | |
| | | pageNum: 1, |
| | | pageSize: 10, |
| | | productSeries: null, |
| | | scanObject1: null, |
| | | // scanObject1: 'P0SQ0-01FZ01-1000;T231224116;DBBBBA', |
| | | scanObject2: 'P0SQ0-041000-1002;T2312020675;DAABBA;S500003', |
| | | //scanObject1: null, |
| | | scanObject1: 'ONYL01FZ0120003023123;1206B0026;D2212BA', |
| | | scanObject2: 'P0NYK0410001000;T231107031;D2222232;S500003', |
| | | axisName: null, |
| | | neckName: null, |
| | | tileName: null, |
| | |
| | | neckParameterPosition: null, |
| | | axisValue: null, |
| | | neckValue: null, |
| | | tileColor: null, |
| | | tileColor: "", |
| | | words: ['一档 .', '二档 .', '三档 .', '四档 .'], |
| | | colors: ['#FFFFFF', '#FFFFFF', '#FFFFFF', '#FFFFFF'], |
| | | createUser: null, |
| | | updateUser: null, |
| | | state: null, |
| | |
| | | this.clear(); |
| | | |
| | | if(this.from.scanObject1 !== null && this.from.scanObject2 !== null |
| | | && this.from.axisName !== null && this.from.axisName !== "" |
| | | && this.from.neckName !== null && this.from.neckName !== "" |
| | | && this.from.tileName !== null && this.from.tileName !== "" |
| | | // && this.from.axisName !== null && this.from.axisName !== "" |
| | | // && this.from.neckName !== null && this.from.neckName !== "" |
| | | // && this.from.tileName !== null && this.from.tileName !== "" |
| | | && this.from.productSeries !== null && this.from.productSeries !== "") |
| | | { |
| | | this.axisValueextracted(); |
| | |
| | | axisValueextracted() { |
| | | const parts1 = this.from.scanObject1.split(";"); |
| | | if (parts1.length >= 3) { |
| | | const axisValueextracted = parts1[2].substring(3,4); |
| | | //const axisValueextracted = parts1[2].substring(3,4); |
| | | const axisValueextracted = parts1[2]; |
| | | return this.queryParams.axisValue= axisValueextracted; |
| | | |
| | | } |
| | |
| | | neckValueextracted() { |
| | | const parts2 = this.from.scanObject2.split(";"); |
| | | if (parts2.length >= 3) { |
| | | const neckValueextracted = parts2[2].substring(3,4); |
| | | //const neckValueextracted = parts2[2].substring(3,4); |
| | | const neckValueextracted = parts2[2]; |
| | | return this.queryParams.neckValue= neckValueextracted; |
| | | } |
| | | }, |
| | |
| | | } |
| | | console.log(queryParams) |
| | | listTileMatchRules(queryParams).then(response => { |
| | | this.queryParams.tileColor = response.rows[0].tileColor; |
| | | this.queryParams.words= ['------', '------', '------', '------'] |
| | | this.queryParams.colors= ['#FFFFFF', '#FFFFFF', '#FFFFFF', '#FFFFFF'] |
| | | for (var i=0;i<response.rows.length;i++){ |
| | | this.queryParams.colors[i]=response.rows[i].tileColor; |
| | | this.queryParams.words[i]=response.rows[i].tileName; |
| | | } |
| | | console.log('颜色:',response) |
| | | }); |
| | | }, |
| | | clear(){ |