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
| <script lang="ts" setup>
| import {reactive, ref} from 'vue'
|
| // do not use same name with ref
| const form = reactive({
| name: '',
| region: '',
| date1: '',
| date2: '',
| delivery: false,
| type: [],
| resource: '',
| desc: '',
| })
| const value = ref('')
| const defaultTime = ref<[Date, Date]>([
| new Date(2000, 1, 1, 0, 0, 0),
| new Date(2000, 2, 1, 23, 59, 59),
| ])
| const tableData = [
| {
| reportingWorkNo: 'BG2312080011',
| reportingWorkTime: '2023-12-08 09:05:58',
| processCard: 'NG23120801A01',
| entryName: '信合春天里',
| batch: '四批二',
| device:'大海利宁',
| thisProcess: '切割',
| finishedNumber: '13',
| finishedArea: '44.22',
| wornNumber: '',
| wornArea: '',
| teamName:'切割一班'
| },
| {
| reportingWorkNo: 'BG2312080013',
| reportingWorkTime: '2023-12-08 09:05:58',
| processCard: 'NG23120801A01',
| entryName: '信合春天里',
| batch: '一批二',
| device:'大海利宁',
| thisProcess: '切割',
| finishedNumber: '13',
| finishedArea: '44.22',
| wornNumber: '',
| wornArea: '',
| teamName:'切割一班'
| },
| {
| reportingWorkNo: 'BG2311080025',
| reportingWorkTime: '2023-12-08 09:05:58',
| processCard: 'NG23120801A01',
| entryName: '信合春天里',
| batch: '一批二',
| device:'大海利宁',
| thisProcess: '切割',
| finishedNumber: '13',
| finishedArea: '44.22',
| wornNumber: '',
| wornArea: '',
| teamName:'切割一班'
| },
| {
| reportingWorkNo: 'BG2303080025',
| reportingWorkTime: '2023-12-08 09:05:58',
| processCard: 'NG23120801A01',
| entryName: '信合春天里',
| batch: '一批二',
| device:'大海利宁',
| thisProcess: '切割',
| finishedNumber: '13',
| finishedArea: '44.22',
| wornNumber: '',
| wornArea: '',
| teamName:'切割一班'
| },
| {
| reportingWorkNo: 'BG2312080001',
| reportingWorkTime: '2023-12-08 09:05:58',
| processCard: 'NG23120801A01',
| entryName: '信合春天里',
| batch: '一批二',
| device:'大海利宁',
| thisProcess: '切割',
| finishedNumber: '13',
| finishedArea: '44.22',
| wornNumber: '',
| wornArea: '',
| teamName:'切割一班'
| },
| {
| reportingWorkNo: 'BG2312080015',
| reportingWorkTime: '2023-12-08 09:05:58',
| processCard: 'NG23120801A01',
| entryName: '信合春天里',
| batch: '一批二',
| device:'大海利宁',
| thisProcess: '切割',
| finishedNumber: '13',
| finishedArea: '44.22',
| wornNumber: '',
| wornArea: '',
| teamName:'切割一班'
| },
| ]
| </script>
|
| <template>
| <div>
| <div id="selectForm" >
| <el-row :gutter="0">
| <!-- <el-input placeholder="流程卡号" v-model="form.name" style="width: 200px"/>-->
|
|
| <!-- -->
| <!-- <el-input placeholder="项目名称" v-model="form.name" style="width: 200px"/>-->
|
| <!-- -->
| <el-date-picker
| v-model="value"
| 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 fixed label="操作" width="140" >
| <el-button link type="primary" size="small">删除</el-button>
| <el-button link type="primary" size="small">编辑</el-button>
| <el-button link type="primary" size="small">反审</el-button>
| </el-table-column>
| <el-table-column sortable prop="reportingWorkNo" label="报工编号" width="120" >
| <template v-slot="scope">
| <router-link :to="{path:'ReportingWorkDetail'}" >{{scope.row.reportingWorkNo}}</router-link>
| </template>
| </el-table-column>
| <el-table-column prop="reportingWorkTime" label="报工时间" width="155" />
| <el-table-column prop="processCard" label="流程卡号" width="135" />
| <el-table-column prop="entryName" label="项目名称" width="155" />
| <el-table-column prop="batch" label="批次" width="75" />
| <el-table-column prop="device" label="设备" width="100" />
| <el-table-column prop="thisProcess" label="本工序" width="100" />
| <el-table-column prop="finishedNumber" label="本工序完工" width="100" />
| <el-table-column prop="finishedArea" label="完工面积" width="90" />
| <el-table-column prop="wornNumber" label="本工序次破" width="100" />
| <el-table-column prop="wornArea" label="次破面积" width="90" />
| <el-table-column prop="teamName" label="班组名称" width="150" />
| </el-table><!-- <h1>{{msg}}</h1> -->
| </div>
| </template>
|
| <style scoped>
| #selectForm {
| width: 45%;
| height: 100%;
| text-align: center;
| }
|
| </style>
|
|