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
| <script setup>
| import {Search} from "@element-plus/icons-vue";
| import {reactive} from "vue";
| import {useRouter} from "vue-router"
| const router = useRouter()
|
| const dialogFormVisiblea = ref(false)
| import { ref } from 'vue'
| import { ElMessage, ElMessageBox } from 'element-plus'
| import Landingindication from "./Landingindication.vue";
| // import Landingindicationtwo from "./Landingindicationtwo.vue";
|
| const tableData = [
| {
| id: '1',
| long: '1005',
| wide: '183.6',
| thick: '1991',
| state: '未启用',
| },
| {
| id: '2',
| long: '105',
| wide: '183',
| thick: '191',
| state: '未启用'
| },
| {
| id: '3',
| long: '105',
| wide: '183',
| thick: '191',
| state: '未启用'
| },
| {
| id: '4',
| long: '105',
| wide: '183',
| thick: '191',
| state: '未启用'
| },
| {
| id: '5',
| long: '105',
| wide: '183',
| thick: '191',
| state: '未启用'
| },
| ]
| const open = () => {
| ElMessageBox.confirm(
| '是否删除该条信息?',
| '提示',
| {
| confirmButtonText: '是',
| cancelButtonText: '取消',
| type: 'warning',
| }
| )
| .then(() => {
| ElMessage({
| type: 'success',
| message: '删除成功!',
| })
| })
| .catch(() => {
| ElMessage({
| type: 'info',
| message: '删除失败',
| })
| })
| }
| const getTableRow = (row,type) =>{
| switch (type) {
| case 'edit' :{
| //alert('我接收到子组件传送的编辑信息')
| router.push({path: '/main/returns/createReturns', query: { ReturnID: 'TH24010101' }})
| break
| }
| case 'delete':{
| alert('我接收到子组件传送的删除信息')
| break
| }
| }
| }
|
| const dialogForm = () => {
| ElMessageBox.confirm(
| '是否清空该条信息?',
| '提示',
| {
| confirmButtonText: '是',
| cancelButtonText: '取消',
| type: 'warning',
| }
| )
| }
| const gridOptions = reactive({
| border: "full",//表格加边框
| keepSource: true,//保持源数据
| align: 'center',//文字居中
| stripe:true,//斑马纹
| rowConfig: {isCurrent: true, isHover: true,height: 50},//鼠标移动或选择高亮
| id: 'OrderList',
| showFooter: true,//显示脚
| printConfig: {},
| importConfig: {},
| exportConfig: {},
| scrollY:{ enabled: true },//开启虚拟滚动
| showOverflow:true,
| columnConfig: {
| resizable: true,
| useKey: true
| },
| filterConfig: { //筛选配置项
| remote: true
| },
| customConfig: {
| storage: true
| },
| editConfig: {
| trigger: 'click',
| mode: 'row',
| showStatus: true
| },
| data: [
| {
| 'id': '1',
| 'long': '5',
| 'wide': '1005',
| 'thick': '183.6',
| }
| ],
| })
|
| </script>
|
| <template>
| <div>
| <el-card style="flex: 1;margin-left: 10px;margin-top: 5px;" v-loading="loading">
| <div style="width: 98%; height: calc(100% - 35px); overflow-y: auto;max-height: 200px;">
| <el-table height="100%" ref="table"
| @selection-change="handleSelectionChange"
| :data="tableData" :header-cell-style="{background:'#F2F3F5 ',color:'#1D2129'}">
| <el-table-column prop="id" align="center" label="下片位" min-width="80" />
| <el-table-column prop="long" align="center" label="架号" min-width="120" />
| <el-table-column prop="wide" align="center" label="流程卡号" min-width="120" />
| <el-table-column prop="wide" align="center" label="总数量" min-width="120" />
| <el-table-column prop="wide" align="center" label="已落架数量" min-width="120" />
| <el-table-column prop="state" align="center" label="启用状态" min-width="120" />
| <el-table-column fixed="right" label="操作" align="center" width="200">
| <template #default>
| <el-button size="mini" type="text" plain v-show="state !== '已启用' " @click="dialogFormVisiblea = true">绑定架子</el-button>
| <el-button size="mini" type="text" plain @click="dialogForm">清空</el-button>
| </template>
| </el-table-column>
| </el-table>
| </div>
| </el-card>
|
| </div>
| <div style="display: flex;">
| <div id="main-body">
| <Landingindication></Landingindication>
| </div>
| <!-- <div id="main-body">
| <Landingindicationtwo></Landingindicationtwo>
| </div> -->
| </div>
| <el-dialog v-model="dialogFormVisiblea" top="21vh" width="30%" title="绑定架子" >
| <div style="margin-left: 50px;margin-top: 10px;margin-bottom: 10px;">
| <el-form size="mini" label-width="150px">
| <el-form label-width="100px" label-position="right">
| <el-form-item label="架号:" :required="true" style="width: 18vw">
| <el-input autocomplete="off"/>
| </el-form-item>
| <el-form-item label="流程卡号:" :required="true" style="width: 18vw;">
| <el-input autocomplete="off" />
| </el-form-item>
| </el-form>
| </el-form>
| </div>
| <template #footer>
| <div id="dialog-footer">
| <el-button type="primary" @click="dialogFormVisiblea = false">
| 确认
| </el-button>
| <el-button @click="dialogFormVisiblea = false">取消</el-button>
| </div>
| </template>
| </el-dialog>
| </template>
|
| <style scoped>
|
| #dt { display:block; float:left;line-height: 20px;margin-left: 100px;}
| #dta { display:block; float:left;line-height: 20px;margin-left: 80%;}
| #dialog-footer{
| text-align: center;
| margin-top: -15px;
| }
| #message{
| text-align: center;
| align-items: center;
| color: black;
| width: 200px;
| height: 100px;
| background-color: #337ecc;
| margin-left: 28%;
| }
| #awatch{
| height: 450px;
| }
| #main-body{
| margin-top: -10px;
| margin-left: 450px;
| }
| </style>
|
|