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
| <script lang="ts" setup>
| import {reactive, ref} from 'vue'
| import {Search} from "@element-plus/icons-vue"
| import {useRouter} from "vue-router"
| const router = useRouter()
| // do not use same name with ref
| const form = reactive({
| name: '',
| region: '',
| date1: '',
| date2: '',
| delivery: false,
| type: [],
| resource: '',
| desc: '',
| })
| const defaultTime = ref<[Date, Date]>([
| new Date(2000, 1, 1, 0, 0, 0),
| new Date(2000, 2, 1, 23, 59, 59),
| ])
| let listName = $ref([
| '基准BOM','标准BOM','审核'
| ])
| const tableData = [
| {
| 1: '1',
| 2: 'D123123',
| 3: 'XXXX公司',
| 4: '06040000022',
| 5:'10mm超白UD60平钢(外)+12Ar(结)+10mm超白平钢(内)',
| 6:'1440',
| 7:'3660',
| 8:'30',
| 9:'普形',
| 10:'111',
| 11:'张三',
| 12:'李四',
| 13:'王五',
|
|
| },
| ]
| </script>
|
| <template>
| <div>
| <div id="selectForm">
| <el-row :gutter="0">
| <el-date-picker
| v-model="form.date1"
| type="daterange"
| start-placeholder="开始时间"
| end-placeholder="结束时间"
| :default-time="defaultTime"
| />
|
| <el-button type="primary">查询</el-button>
| </el-row>
|
| </div>
| <el-table :data="tableData" border style="width: 100%" height="100%">
| <el-table-column v-for="item in listName" prop="" :label="item" width="85" >
| <el-checkbox checked/>
| </el-table-column>
| <el-table-column prop="1" label="自序" width="55" />
| <el-table-column prop="2" label="客户编号" width="105" />
| <el-table-column prop="3" label="客户名称" width="105" />
| <el-table-column prop="4" label="产品编号" :show-overflow-tooltip='true' width="125" />
| <el-table-column prop="5" label="产品名称" :show-overflow-tooltip='true' width="150" />
| <el-table-column prop="6" label="玻璃长" width="75" />
| <el-table-column prop="7" label="玻璃宽" width="75" />
| <el-table-column prop="8" label="厚度" width="65" />
| <el-table-column prop="9" label="形状" width="65" />
| <el-table-column prop="10" label="备注" :show-overflow-tooltip='true' width="155" />
| <el-table-column prop="11" label="产品创建人" width="95" />
| <el-table-column prop="12" label="BOM创建人" width="105" />
| <el-table-column prop="13" label="审核员" width="85" />
| </el-table>
| </div>
| </template>
|
| <style scoped>
| #selectForm {
| width: 40%;
| height: 100%;
| text-align: center;
| }
|
|
| </style>
|
|