廖井涛
2025-08-04 4ed43bcaca53599880c7cfdfaf7e29d328a0a483
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
<script setup>
import {onMounted, ref} from "vue"
import {useI18n} from "vue-i18n"
const { t } = useI18n()
 
const props  = defineProps({
  basicData:{
    hollowThickness:[],
    hollowGasType:null,
    gasType:null,
  }
})
let interlayerBasic = ref({
  thickness:"",
  color:"",
  types:"",
  price:null,
  type:'interlayer'
})
 
const emit = defineEmits(['getChild'])
 
const save = ()=>{
  emit('getChild',interlayerBasic.value)
}
 
</script>
 
<template>
  <el-row :gutter="8">
    <el-col :span="12">
      <el-select
          v-model.trim="interlayerBasic.thickness"
          size="small"
          clearable :placeholder="$t('product.msg.interlayerThickness')" >
        <el-option v-for="item in props.basicData.InterlayerThickness"
                   :key="item.id"
                   :label="item.basicName"
                   :value="item.basicName"
        />
      </el-select>
 
    </el-col>
  </el-row>
 
  <el-row :gutter="8">
    <el-col :span="12">
      <el-select
          v-model.trim="interlayerBasic.types"
          size="small"
          clearable :placeholder="$t('product.msg.interlayerType')" >
        <el-option v-for="item in props.basicData.InterlayerType"
                   :key="item.id"
                   :label="item.basicName+'('+item.nickname+')'"
                   :value="'('+item.nickname+')'"
        />
      </el-select>
    </el-col>
  </el-row>
 
  <el-row :gutter="8">
    <el-col :span="12">
      <el-select
          v-model.trim="interlayerBasic.color"
          size="small"
          clearable :placeholder="$t('product.msg.interlayerColor')">
        <el-option v-for="item in props.basicData.InterlayerColor"
                   :key="item.id"
                   :label="item.basicName"
                   :value="item.basicName"
        />
      </el-select>
    </el-col>
  </el-row>
 
  <el-row :gutter="8">
    <el-col :span="3">
      <el-input-number
          v-model="interlayerBasic.price"
          controls-position="right"
          :step="0.01"
          :max="99999.99"
          :placeholder="$t('glassPrice.unit')"
          class="delInput"/>
    </el-col>
  </el-row>
  <el-row :gutter="8">
    <el-col :span="3">
      <el-button @click="save" type="primary" >{{$t('basicData.save')}}</el-button>
    </el-col>
  </el-row>
 
 
 
 
</template>
 
<style scoped>
.el-row{
  margin-bottom: 5px;
}
.el-input-number{
  width: 182px;
}
 
 
</style>