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
| <script lang="ts" setup>
| import {reactive, ref} from 'vue'
|
|
|
|
| const defaultTime = ref<[Date, Date]>([
| new Date(2000, 1, 1, 0, 0, 0),
| new Date(2000, 2, 1, 23, 59, 59),
| ])
| // do not use same name with ref
| const form = reactive({
| name: '',
| region: '',
| date1: '',
| date2: '',
| delivery: false,
| type: [],
| resource: '',
| desc: '',
| })
|
| const value = ref('')
| const options = [
| {
| value: 'Option1',
| label: 'Option1',
| },
| {
| value: 'Option2',
| label: 'Option2',
| },
| {
| value: 'Option3',
| label: 'Option3',
| },
| ]
| const tableData = [
| {
| 1:'磨边',
| 2:'NG22091906A02/1',
| 3:'中国建筑装饰集团有限公司',
| 4:'银川绿地中心南塔(25批2)',
| 5:'25批2',
| 6:'形状',
| 7:'2',
| 8:'25-BL19',
| 9:'切割->镀膜->磨边->钢化->包装',
| 10:'40',
| 11:'1345',
| 12:'1556',
| 13:'1',
| 14:'1.99',
| 15:'8mm超白【LYTM-46】平钢',
| 16:'8mm超白【LYTM-46】平钢',
| 17:'0',
|
| },
| ]
| </script>
| <!--在制品报表-->
| <template>
| <div class="div-main">
| <div id="selectForm">
| <el-row :gutter="0">
| <!-- <el-input placeholder="销售单号" v-model="form.name" style="width: 150px"/>-->
| <!-- <el-input placeholder="项目名称" v-model="form.name" style="width: 150px"/>-->
|
| <el-date-picker
| v-model="form.date1"
| type="daterange"
| start-placeholder="开始时间"
| end-placeholder="结束时间"
| :default-time="defaultTime"
| style="width: 100px"
| />
|
| <el-select v-model="value" class="m-2" placeholder="查询类型">
| <el-option
| v-for="item in options"
| :key="item.value"
| :label="item.label"
| :value="item.value"
| />
| </el-select>
| <el-button type="primary">查询</el-button>
| </el-row>
|
| </div>
| <div>
| <el-table :data="tableData" border style="width: 100%" height="100%">
| <el-table-column prop="1" label="工序" />
| <el-table-column prop="2" label="流程卡号" width="120px" :show-overflow-tooltip='true'/>
| <el-table-column prop="3" label="客户名称" width="120px" :show-overflow-tooltip='true' />
| <el-table-column prop="4" label="项目名称" width="120px" :show-overflow-tooltip='true'/>
| <el-table-column prop="5" label="批次" />
| <el-table-column prop="6" label="序号" />
| <el-table-column prop="7" label="形状"/>
| <el-table-column prop="8" label="楼层编号" width="120px" :show-overflow-tooltip='true'/>
| <el-table-column prop="9" label="工艺流程" width="120px" :show-overflow-tooltip='true' />
| <el-table-column prop="10" label="订单数" />
| <el-table-column prop="11" label="宽" />
| <el-table-column prop="12" label="高" :show-overflow-tooltip='true' />
| <el-table-column prop="13" label="库存数" />
| <el-table-column prop="14" label="库存面积" width="100px"/>
| <el-table-column prop="15" label="成品名称" width="120px" :show-overflow-tooltip='true'/>
| <el-table-column prop="16" label="在制品名称" width="120px" :show-overflow-tooltip='true'/>
| <el-table-column prop="17" label="弯钢半径" width="100px"/>
| </el-table><!-- <h1>{{msg}}</h1> -->
| </div>
|
| </div>
| </template>
|
| <style scoped>
| .div-main{
| width: 100%;
| height: 100%;
| }
| #selectForm {
| width: 70%;
| text-align: center;
| }
| </style>
|
|