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
| <template>
| <div class="flex align-center justify-between">
| <div class="">
| <el-button-group v-if="groupshow">
| <el-button v-if="addmodalshow" type="primary" size="mini" icon="el-icon-plus" @click="$emit('addmodal')"
| >新建</el-button
| >
| <el-button v-if="dele" type="primary" size="mini" icon="el-icon-delete">删除</el-button>
| <el-button v-if="derive" type="primary" size="mini" icon="el-icon-download" @click="$emit('derive')"
| >导出</el-button
| >
| </el-button-group>
| </div>
| <div class="width85 flex align-center justify-end">
| <!-- <div class="flex align-center width35 margin-right"></div> -->
| <div class="flex width align-center justify-end margin-right">
| <div v-if="tasktypeshow" class="flex align-center margin-right width25">
| <label class="color909399 fontsizeinitial width7rem">任务类型:</label>
| <el-select style="width: 65%" v-model="iqnuer.taskType" size="mini" clearable>
| <el-option
| v-for="(item, index) in taskTypeList"
| :label="item.label"
| :value="item.value"
| :key="index"
| ></el-option>
| </el-select>
| </div>
| <div v-if="taskstatushow" class="flex align-center margin-right width25">
| <label class="color909399 width7rem fontsizeinitial">任务状态:</label>
| <el-select style="width: 67%" v-model="iqnuer.taskStatus" size="mini" clearable>
| <el-option
| v-for="(item, index) in taskStatusList"
| :label="item.label"
| :value="item.value"
| :key="index"
| ></el-option>
| </el-select>
| </div>
| <div v-if="forkliftshow" class="flex align-center margin-right width30">
| <label class="color909399 fontsizeinitial width7rem">叉车司机:</label>
| <el-select style="width: 66%" v-model="iqnuer.userName" size="mini" clearable>
| <el-option v-for="(item, index) in caruserlist" :label="item" :value="item" :key="index"></el-option>
| </el-select>
| </div>
| <div id="maindatetimeer" class="flex align-center margin-right width35">
| <label class="textalign color909399 width7rem fontsizeinitial">起止时间:</label>
| <el-date-picker
| size="mini"
| v-model="iqnuer.timepick"
| value-format="yyyy-MM-dd HH:mm:ss"
| type="datetimerange"
| range-separator="至"
| start-placeholder="开始日期"
| end-placeholder="结束日期"
| >
| </el-date-picker>
| </div>
|
| <el-input id="topinquer" size="mini" clearable v-model="iqnuer[filter]" class="width30">
| <el-select @change="selchange" v-model="filter" slot="prepend">
| <el-option
| v-for="(item, index) in filterList"
| :label="item.label"
| :value="item.value"
| :key="index"
| ></el-option>
| </el-select>
| </el-input>
| </div>
|
| <el-button type="primary" size="mini" @click="inquer">查询</el-button>
| <el-button v-if="priority" type="primary" size="mini" @click="$emit('precedence')">优先出库</el-button>
| </div>
| </div>
| </template>
|
| <script>
| import { GetCarUser } from '@/api/forklifttasks';
| export default {
| data() {
| return {
| filter: '',
| iqnuer: {},
| taskStatusList: [
| {
| label: '新建',
| value: '新建'
| },
| {
| label: '任务执行中',
| value: '任务执行中'
| },
| {
| label: '异常/取消',
| value: '异常/取消'
| },
| {
| label: '完成',
| value: '完成'
| }
| ],
| taskTypeList: [
| {
| label: '入库',
| value: 1
| },
| {
| label: '出库',
| value: 2
| }
| ],
| caruserlist: [],
| applytime: [],
|
| visible: false,
| value1: ''
| };
| },
| props: {
| groupshow: {
| type: Boolean,
| default: true
| },
| priority: {
| type: Boolean,
| default: false
| },
| addmodalshow: {
| type: Boolean,
| default: true
| },
| derive: {
| type: Boolean,
| default: false
| },
| tasktypeshow: {
| type: Boolean,
| default: false
| },
| taskstatushow: {
| type: Boolean,
| default: false
| },
| forkliftshow: {
| type: Boolean,
| default: false
| },
| advanced: {
| type: Boolean,
| default: false
| },
| dele: {
| type: Boolean,
| default: false
| },
| byfilter: {
| type: String,
| default: ''
| },
| filterList: {
| type: Array,
| default: () => []
| }
| },
| mounted() {
| this.filter = this.byfilter;
| this.GetCarUser();
| },
| methods: {
| //叉车司机
| GetCarUser() {
| GetCarUser().then(res => {
| this.caruserlist = res;
| });
| },
| inquer() {
| this.$emit('inquer', this.iqnuer);
| },
| selchange() {
| this.iqnuer = {};
| }
| },
| watch: {
| byfilter: {
| handler(nvl, ovl) {
| this.filter = nvl;
| }
| }
| }
| };
| </script>
|
| <style lang="scss" scoped>
| #topinquer {
| ::v-deep .el-select {
| width: 100px;
| }
| }
| #maindatetimeer {
| ::v-deep .el-range-editor.el-input__inner {
| padding: 3px;
| }
| ::v-deep .el-date-editor--datetimerange.el-input,
| .el-date-editor--datetimerange.el-input__inner {
| width: 74%;
| }
| }
| ::v-deep .el-input-group__append,
| ::v-deep .el-input-group__prepend {
| width: 60px;
| }
| </style>
|
|