tanghaolin
2025-03-06 a09f89b935e9a0085c5bcdb470e053ddad1f7187
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
<template>
  <div class="productCatalog">
    <div id="productLines" style="height: 100%; position: relative; overflow: auto">
      <div class="sticky-container" style="height: 0.55rem">
        <div style="width: 100%; max-width: 5.36rem; margin-top: 0rem; top: 0rem; bottom: auto;"
          class="sticky is-anchored is-at-top">
          <div id="productlinePicker">
            <div class="row">
              <div class="columns">
                <ul class="menu head-tool-style">
                  <li @click="clickSelAllSeries" style="margin-right: 0.05rem;height: unset;">
                    <a style="display: flex; justify-content: center; align-items: center;">
                      <input type="checkbox" :checked="state.m_isSelectAll">
                      <span style="font-size: 16px;margin-left: 5px;">
                        {{ state.m_isSelectAll ? t("selectPage.reselect.TR") : t("selectPage.selectAll.TR") }}
                      </span>
                    </a>
                  </li>
                  <li class="select-type-style">
                    <el-radio-group v-model="state.m_selSeriesMethod.current" size="small"
                      @change="changeSelSeriesMethod">
                      <el-radio-button :disabled="state.m_selSeriesMethod.byCatalog.isDisable"
                        v-if="state.m_selSeriesMethod.byCatalog.isVisible" :label="0">{{ t("selectPage.byType.TR")
                        }}</el-radio-button>
                      <el-radio-button :disabled="state.m_selSeriesMethod.byHY.isDisable"
                        v-if="state.m_selSeriesMethod.byHY.isVisible" :label="1">{{ t("selectPage.byIndustry.TR")
                        }}</el-radio-button>
                      <el-radio-button :disabled="state.m_selSeriesMethod.byMedia.isDisable"
                        v-if="state.m_selSeriesMethod.byMedia.isVisible" :label="2">{{ t("selectPage.byMedia.TR")
                        }}</el-radio-button>
                    </el-radio-group>
                  </li>
                </ul>
              </div>
            </div>
          </div>
        </div>
      </div>
      <!-- 按类型列表 -->
      <div style="height: calc(100% - 0.55rem); overflow: auto" v-show="state.m_selSeriesMethod.current == 0">
        <label v-if="state.m_ruleSelectStatus"
          style="position: absolute; top: 0.3rem; font-size: 0.1rem; color: red">*{{
            t("selectPage.seriesRule.TR") }}</label>
        <div v-for="(catalog_item, catalog_index) in state.m_showCatalogList" :key="catalog_index"
          class="c-product-line-select" :class="catalog_item.isSelected ? 'is-selected' : ''"
          @click="clickCatalogItem(catalog_index)">
          <div class="c-product-line-select__overview" style="height: 1.5rem">
            <button type="button" class="c-product-line-select__select-button">
              <span class="fa fa-fw c-product-line-select__select-icon"></span>
              <span class="c-product-line-select__name">
                {{ catalog_item.Name }}
              </span>
              <img alt="Product Line" :onerror="useDefaultImage" :src="catalog_item.ThumbnailImage"
                style="height: 100%;" class="c-product-line-select__image" />
            </button>
            <button @click.stop="
              catalog_item.isShowDetail = !catalog_item.isShowDetail
              " type="button" class="c-product-line-select__summary-button">
              <span class="fa fa-fw fa-info-circle"></span>
            </button>
          </div>
          <div class="c-product-line-select__summary" :class="catalog_item.isShowDetail ? '' : 'hide'">
            <p class="u-no-margin" style="white-space: pre-line;">{{ catalog_item.ShortDescription }}</p>
          </div>
        </div>
      </div>
      <!-- 行业列表 -->
      <div style="height: calc(100% - 0.55rem); overflow: auto" v-show="state.m_selSeriesMethod.current == 1">
        <label v-if="state.m_ruleSelectStatus"
          style="position: absolute; top: 0.3rem; font-size: 0.1rem; color: red">*{{
            t("selectPage.seriesRule.TR") }}</label>
        <div v-for="(hy_item, hy_index) in state.m_allHangYeList" :key="hy_index" class="c-product-line-select"
          :class="hy_item.isSelected ? 'is-selected' : ''" @click="clickHangYeItem(hy_index)">
          <div class="c-product-line-select__overview" style="height: 1.5rem">
            <button type="button" class="c-product-line-select__select-button">
              <span class="fa fa-fw c-product-line-select__select-icon"></span>
              <span class="c-product-line-select__name">{{
                hy_item.Name
              }}</span>
              <img alt="Product Line" :src="hy_item.ImageSrc"
                style=" height: 1.2rem; width: 1.2rem; filter: drop-shadow(0.02rem 0.04rem 0.06rem black);"
                class="c-product-line-select__image" />
            </button>
            <button @click.stop="hy_item.isShowDetail = !hy_item.isShowDetail" type="button"
              class="c-product-line-select__summary-button">
              <span class="fa fa-fw fa-info-circle"></span>
            </button>
          </div>
          <div class="c-product-line-select__summary" :class="hy_item.isShowDetail ? '' : 'hide'">
            <p class="u-no-margin">{{ hy_item.ShortDescription }}</p>
          </div>
        </div>
      </div>
      <!-- 按介质分类 -->
      <div style="height: calc(100% - 0.55rem); overflow: auto" v-if="state.m_selSeriesMethod.current == 2">
        <label v-if="state.m_ruleSelectJZ" style="position: absolute; top: 0.3rem; font-size: 0.1rem; color: red">*{{
          t("selectPage.jiezhiRule.TR") }}</label>
        <div v-for="(jz_item, jz_index) in state.m_allJieZhiList" :key="jz_index" class="c-product-line-select"
          :class="jz_item.isSelected ? 'is-selected' : ''" @click="clickJieZhiItem(jz_index)">
          <div class="c-product-line-select__overview" style="height: 1.5rem">
            <button type="button" class="c-product-line-select__select-button">
              <span class="fa fa-fw c-product-line-select__select-icon"></span>
              <span class="c-product-line-select__name">{{
                jz_item.Name
              }}</span>
            </button>
            <button @click.stop="jz_item.isShowDetail = !jz_item.isShowDetail" type="button"
              class="c-product-line-select__summary-button">
              <span class="fa fa-fw fa-info-circle"></span>
            </button>
          </div>
          <div class="c-product-line-select__summary" :class="jz_item.isShowDetail ? '' : 'hide'">
            <p class="u-no-margin">{{ jz_item.ShortDescription }}</p>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>
 
<script setup name="selPumpCatalog">
import { reactive } from "vue";
import { ElRadioGroup, ElRadioButton, ElCheckbox } from 'element-plus';
import { useSelect } from '/@/store/select.js';
import ConstParas from "/@/utils/constParas";
import Utils from "/@/utils/utils";
import SelectByCorpFlag from "/@/utils/selectByCorpFlag";
import defaultImgUrl from '/@/views/assets/img_fail.png';
import { useI18n } from 'vue-i18n';
import noneImg from '/@/views/assets/none_img.png'
const { t } = useI18n()
const selectStore = useSelect()
let state = reactive({
  m_currentCorpFlag: window.globalConfig.CorpInfo.CorpFlag,
  m_selSeriesMethod: {
    current: 0, //0 类型
    byCatalog: {
      isDisable: true,
      isVisible: false,
    },
    byHY: {
      isDisable: true,
      isVisible: false,
    },
    byMedia: {
      isDisable: true,
      isVisible: false,
    },
  },
  m_isSelectAll: false, //是否全选 默认全选
 
  // m_selSeriesMethod: 1, //分类选择
  selCatalogIDs: [],//当前选中的类型ID
 
  m_allCatalogList: [], //类型列表源数据
  m_showCatalogList: [],//用于显示的类型列表
  m_allSeriesList: [], //所有的系列
 
  m_allHangYeList: [], //所有的行业列表
 
  m_ruleSelectStatus: false, //判断是否选择了系列
  m_ruleSelectHY: false, //判断是否选择了行业
  m_ruleSelectJZ: false, //判断是否选择了介质
})
 
//初始化产品系列数据
const initData = (all_catalog, all_series, currentLanguageType, seriesApplicationData) => {
 
  if (all_catalog == null || all_catalog.length == 0) return;
  state.m_allSeriesList = all_series;
  state.m_allCatalogList = all_catalog
  initDataFromHistory();
 
  if (seriesApplicationData && typeof seriesAppData == 'object') {
    //构建行业列表
    buildHangYeList(currentLanguageType, seriesApplicationData);
    //构建介质列表
    buildJieZhiList(currentLanguageType, seriesApplicationData);
  }
}
//构建行业列表数据
const buildHangYeList = (currentLanguageType, seriesApplicationData) => {
  let seriesAppData = JSON.parse(JSON.stringify(seriesApplicationData))
  let hangYeList = seriesAppData.HangYe.List;
  if (hangYeList == null || hangYeList.length == 0) {
    state.m_allHangYeList = [];
  }
  state.m_selSeriesMethod.byCatalog.isDisable = false;
  state.m_selSeriesMethod.byCatalog.isVisible = true;
  state.m_selSeriesMethod.byHY.isDisable = false;
  state.m_selSeriesMethod.byHY.isVisible = true;
 
  //  console.log(hangYeList,60)
  let list = [];
  if (currentLanguageType == 0) {
    hangYeList.forEach((element, index) => {
      let itemObj = {
        HID: element.ID,
        PumpSeriesID: element.PumpSeriesID,
        Name: element.NameCN,
        isSelected: false,
        isShowDetail: false, //是否展示详情
        ShortDescription: element.DescriptionCN,
        ImageSrc: "static/img/HangYe/" + element.ImageName + "/ffffffx128.png",
      };
      list.push(itemObj);
    });
  }
  else {
    hangYeList.forEach((element, index) => {
      let itemObj = {
        HID: element.ID,
        PumpSeriesID: element.PumpSeriesID,
        Name: element.NameEN,
        isSelected: false,
        isShowDetail: false, //是否展示详情
        ShortDescription: element.DescriptionEN,
        ImageSrc: "static/img/HangYe/" + element.ImageName + "/ffffffx128.png",
      };
      list.push(itemObj);
    });
  }
  state.m_allHangYeList = list;
  // console.log(this.m_HangYeList,93)
}
//构建介质列表
const buildJieZhiList = (langType, seriesApplicationData) => {
  if (
    seriesApplicationData.JieZhiParas == "undefind" ||
    seriesApplicationData.JieZhiParas == null
  ) {
    seriesApplicationData.JieZhiParas = {};
  }
  let jieZhiList = seriesApplicationData.JieZhiParas.List;
  if (jieZhiList == null || jieZhiList.length == 0) {
    state.m_allJieZhiList = [];
    return
  }
 
  state.m_selSeriesMethod.byCatalog.isDisable = false;
  state.m_selSeriesMethod.byCatalog.isVisible = true;
  state.m_selSeriesMethod.byMedia.isDisable = false;
  state.m_selSeriesMethod.byMedia.isVisible = true;
 
  let list = [];
  if (langType == 0) {
    jieZhiList.forEach((element, index) => {
      let itemObj = {
        ID: element.ID,
        PumpSeriesID: element.PumpSeriesID,
        Name: element.NameCN,
        isSelected: false,
        isShowDetail: false, //是否展示详情
        ShortDescription: element.DescriptionCN,
      };
      if (element.ImageName) {
        itemObj.ImageSrc =
          "static/img/HangYe/" + element.ImageName + "/ffffffx128.png";
      } else {
        itemObj.ImageSrc = "";
      }
      list.push(itemObj);
    });
  }
  else {
    jieZhiList.forEach((element, index) => {
      let itemObj = {
        ID: element.ID,
        PumpSeriesID: element.PumpSeriesID,
        Name: element.NameEN,
        isSelected: false,
        isShowDetail: false, //是否展示详情
        ShortDescription: element.DescriptionCN,
      };
      if (element.ImageName) {
        itemObj.ImageSrc =
          "static/img/HangYe/" + element.ImageName + "/ffffffx128.png";
      } else {
        itemObj.ImageSrc = "";
      }
      list.push(itemObj);
    });
  }
  state.m_allJieZhiList = list;
}
const initDataFromHistory = () => {
  //获取上次的表单填写记录
  let historyFormData = selectStore.ByParas.selectParas;
  let corpSelectDataByFlag = SelectByCorpFlag.getData(state.m_currentCorpFlag)
  if (historyFormData == null || historyFormData.FilterInfo == null) {
    return;
  }
  if (corpSelectDataByFlag.CatalogID == "" || corpSelectDataByFlag.CatalogID.length == 0) {
    return
  }
  // 判断历史选型方式 是否是按行业 如果是则不赋值历史系列id
  state.m_selSeriesMethod.current = corpSelectDataByFlag.SelMethod
  historyFormData.FilterInfo.CatalogID = corpSelectDataByFlag.CatalogID
  var selCatalogIDs = historyFormData.FilterInfo.CatalogID;
  state.selCatalogIDs = selCatalogIDs
}
 
//筛选系列列表
const filterSeriseList = (DriveType, MotorFrequece, FirePumpType) => {
  //var FirePumpType = this.formData.firePumpType;
  // return; //暂时不过滤
  let showSeriesArr = [];
  state.m_allSeriesList.forEach((item) => {
    //判断是否是电机
    if (DriveType == ConstParas.DriveType.Motor) {
      //判断类型是否是全部
      if (item.MotorFrequece == MotorFrequece && item.DriveType == DriveType) {
        if (item.FirePumpStatus) {
          if (item.FirePumpStatus.includes(Number(FirePumpType))) {
            showSeriesArr.push(item);
          }
        } else {
            showSeriesArr.push(item);
        }
      }
    }
    // 是否是柴油机
    else if (DriveType == ConstParas.DriveType.Diesel) {
      //判断类型是否是全部
      if (item.DriveType == DriveType) {
        if (item.FirePumpStatus) {
          if (item.FirePumpStatus.includes(Number(FirePumpType))) {
            showSeriesArr.push(item);
          }
        } else {
            showSeriesArr.push(item);
        }
      }
    }
  });
  let showCatalogList = []
  state.m_allCatalogList.forEach((catalogItem, index) => {
    let catalog_info = {
      ID: catalogItem.ID,
      Name: catalogItem.Name,
      ShortDescription: "",
      ThumbnailImage: "",
      isSelected: false, //是否被选择
      isShowDetail: false, //是否展示详情
      SeriesIDs: [],
    };
    for (let i = 0; i < showSeriesArr.length; i++) {
      let seriesItem = showSeriesArr[i];
      if (catalogItem.ID == seriesItem.CatalogID) {
        if (catalog_info.ShortDescription == "" && seriesItem.ShortDescription != "") {
          catalog_info.ShortDescription = seriesItem.ShortDescription.replace(/<br\/>/g, "\n");
        }
        let ThumbnailImage = noneImg
        if (catalog_info.ThumbnailImage == "" && seriesItem.ThumbnailImage != "") {
          // console.log(catalog_info.ThumbnailImage, seriesItem.ThumbnailImage,362)
          ThumbnailImage = window.globalConfig.WebApiUrl.FileUrl + 'Data/' + seriesItem.ThumbnailImage;
        }
        catalog_info.ThumbnailImage = ThumbnailImage
        catalog_info.SeriesIDs.push(seriesItem.ID);
        break;
      }
    }
    if (catalog_info.SeriesIDs.length > 0)
      showCatalogList.push(catalog_info);
  });
  if (state.selCatalogIDs && state.selCatalogIDs.length > 0) {
    showCatalogList.forEach((element) => {
      if (state.selCatalogIDs.includes(element.ID)) {
        element.isSelected = true;
        state.m_isSelectAll = true
      } else {
        element.isSelected = false;
        state.m_isSelectAll = false
      }
    });
  }
  state.m_showCatalogList = showCatalogList;
}
// 重置参数,用于在驱动类型切换时候使用
const resetData = () => {
  state.selCatalogIDs = []
  state.m_isSelectAll = false
}
//是否全选
const clickSelAllSeries = () => {
  state.m_isSelectAll = !state.m_isSelectAll;
 
  if (state.m_selSeriesMethod.current == 0) {
    if (state.m_isSelectAll) {
      state.m_showCatalogList.forEach((item) => {
        item.isSelected = true;
      });
      state.m_ruleSelectStatus = false;
    } else {
      state.m_showCatalogList.forEach((item) => {
        item.isSelected = false;
      });
    }
  }
  if (state.m_selSeriesMethod.current == 1) {
    if (state.m_isSelectAll) {
      state.m_allHangYeList.forEach((item) => {
        item.isSelected = true;
      });
      state.m_ruleSelectStatus = false;
    } else {
      state.m_allHangYeList.forEach((item) => {
        item.isSelected = false;
      });
    }
  }
}
 
//选择系列
const clickCatalogItem = (index) => {
  state.m_showCatalogList[index].isSelected = !state.m_showCatalogList[index].isSelected;
  var sel_ids = [];
  state.m_isSelectAll = true;
  state.m_showCatalogList.forEach((catalog_item) => {
    if (catalog_item.isSelected) {
      sel_ids.push(catalog_item.ID);
    } else {
      state.m_isSelectAll = false;
    }
  });
  state.selCatalogIDs = sel_ids
  if (sel_ids.length > 0) state.m_ruleSelectStatus = false;
}
//选择行业
const clickHangYeItem = (index) => {
  state.m_ruleSelectStatus = false;
  state.m_allHangYeList[index].isSelected =
    !state.m_allHangYeList[index].isSelected;
}
//返回给主页面 选择的类型id、系列id和当前的系列选择方法 0表示按类型  1表示按行业 2表示按介质
const getSelectData = () => {
  let sel_series_ids = [];
  let sel_catalog_ids = []
  if (state.m_selSeriesMethod.current == 0) {
    state.m_showCatalogList.forEach((catalog) => {
      if (catalog.isSelected) {
        sel_catalog_ids.push(catalog.ID);
      }
    });
 
    state.m_ruleSelectStatus = false;
    if (sel_catalog_ids == null || sel_catalog_ids.length == 0) {
      state.m_ruleSelectStatus = true;
      return null;
    }
  }
  if (state.m_selSeriesMethod.current == 1) {
    state.m_allHangYeList.forEach((hy) => {
      if (hy.isSelected) {
        sel_series_ids.push(...hy.PumpSeriesID);
      }
    });
    sel_catalog_ids = getFilterSeriseIdList(sel_catalog_ids);
  }
  let data = {
    CorpFlag: state.m_currentCorpFlag,
    SeriesID: Utils.uniqueInArray(sel_series_ids),
    CatalogID: sel_catalog_ids,
    SelMethod: state.m_selSeriesMethod.current
  };
  SelectByCorpFlag.saveData(state.m_currentCorpFlag, data)
  return data;
}
//过滤可以选择的系列ID(行业 , 介质用)
const getFilterSeriseIdList = (series_id_list) => {
  if (series_id_list == null) return [];
  var ava_id = [];
  state.m_allSeriesList.forEach((item) => {
    if (series_id_list.indexOf(item.ID) < 0) return true;
    //判断是否是电机
    if (state.m_DriveType == ConstParas.DriveType.Motor) {
      if (
        item.MotorFrequece == state.m_MotorFrequence &&
        item.DriveType == state.m_DriveType
      ) {
        ava_id.push(item.ID);
      }
    }
    // 是否是柴油机
    else if (state.m_DriveType == ConstParas.DriveType.Diesel) {
      if (item.m_DriveType == DriveType) {
        ava_id.push(item.ID);
      }
    }
  });
 
  return ava_id;
}
//监听系列筛选选项切换的变化 默认按行业
const changeSelSeriesMethod = (val) => {
  state.m_selSeriesMethod.current = val;
}
const useDefaultImage = (event) => {
  event.target.src = defaultImgUrl;
}
 
defineExpose({
  initData,
  filterSeriseList,
  getSelectData
})
</script>
 
<style lang="scss">
.productCatalog {
  height: 100%;
 
  .c-card {
    margin: 0 0 0.16rem 0;
    padding: 0.16rem;
    border-radius: 0.03rem;
    position: relative;
    color: #16181a;
    background: #fefefe;
    border: 0.01rem solid #dbe0e3;
    box-shadow: 0 0.01rem 0.03rem rgba(145, 161, 170, 0.25);
  }
 
  .c-card> :last-child {
    margin-bottom: 0;
  }
 
  .c-card> :first-child {
    margin-top: 0;
  }
 
  .row .row {
    max-width: none;
  }
 
  .row {
    display: flex;
    flex-flow: row wrap;
  }
 
  .columns {
    padding: 0 0.15rem;
  }
 
  .column,
  .columns {
    padding-left: 0.08rem;
    padding-right: 0.08rem;
  }
 
  .column,
  .columns {
    flex: 1 1 0rem;
    min-width: initial;
  }
 
  .menu {
    margin: 0;
    list-style-type: none;
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    flex-wrap: nowrap;
  }
 
  .menu>li {
    flex: 0 0 auto;
  }
 
  .menu>li>a {
    flex-flow: row nowrap;
  }
 
  .menu>li>a {
    display: flex;
  }
 
  .menu>li>a {
    display: block;
    padding: 0.08rem 0rem;
    line-height: 1;
  }
 
  .menu input,
  .menu a,
  .menu button {
    margin-bottom: 0;
  }
 
  .shrink {
    flex: 0 0 auto;
    max-width: 100%;
  }
 
  .text-right {
    text-align: right;
  }
 
  .menu input,
  .menu a,
  .menu button {
    margin-bottom: 0;
  }
 
  .c-product-line-select {
    border: 0.01rem solid #ddd;
    border-radius: 0.03rem;
    color: #555;
    margin-top: 0.08rem;
    overflow: hidden;
  }
 
  .c-product-line-select.is-selected {
    background-color: #efefef;
    border-color: currentColor;
    color: black;
  }
 
  .c-product-line-select__overview {
    display: flex;
  }
 
  .c-product-line-select__select-button,
  .c-product-line-select__summary-button {
    background: 0;
    border: 0;
    border-radius: 0;
    color: currentColor;
    font-size: calc(0.5vw + 0.16rem);
  }
 
  .c-product-line-select__select-button {
    display: flex;
    align-items: center;
    flex-grow: 1;
    padding: 0;
    text-align: left;
  }
 
  .c-product-line-select__select-icon {
    display: block;
    flex: none;
    padding: 0.16rem;
  }
 
  .c-product-line-select__name {
    flex-grow: 1;
    font-size: calc(0.5vw + 0.12rem);
    padding: 0.16rem 0 0.16rem 0.32rem;
  }
 
  .c-product-line-select__select-icon::before {
    content: "\f096";
  }
 
  .c-product-line-select.is-selected .c-product-line-select__select-icon::before {
    color: currentColor;
    content: "\f046";
    opacity: 1;
  }
 
  .c-product-line-select__select-button:hover .c-product-line-select__select-icon::before {
    content: "\f046";
    opacity: 0.5;
  }
 
  .c-product-line-select__image {
    display: block;
    flex: none;
    max-width: -webkit-calc(4vw + 6.4rem);
    max-width: calc(4vw + 6.4rem);
    padding: 0.16rem;
  }
 
  .c-product-line-select__summary-button {
    background-color: #ddd;
    color: currentColor;
    flex: none;
    padding: 0 0.12rem;
  }
 
  .c-product-line-select__summary {
    background-color: #ddd;
    color: black;
    padding: 0.16rem;
    text-align: left;
  }
 
  .u-no-margin {
    margin: 0 !important;
  }
 
  .hide {
    display: none !important;
  }
 
  .head-tool-style li.active,
  li:hover {
    background-color: unset;
  }
 
  .select-type-style {
    label {
      display: unset;
    }
  }
}
</style>