|
|
@@ -6,8 +6,8 @@
|
|
6
|
6
|
<el-option v-for="item in brigadeOptions" :key="item.value" :label="item.label" :value="item.value" />
|
|
7
|
7
|
</el-select>
|
|
8
|
8
|
</el-form-item>
|
|
9
|
|
- <el-form-item label="日期" prop="date">
|
|
10
|
|
- <el-date-picker clearable v-model="queryParams.date" type="date" placeholder="选择日期" value-format="YYYY-MM-DD"
|
|
|
9
|
+ <el-form-item label="日期" prop="startDate">
|
|
|
10
|
+ <el-date-picker clearable v-model="queryParams.startDate" type="date" placeholder="选择日期" value-format="YYYY-MM-DD"
|
|
11
|
11
|
style="width: 200px" />
|
|
12
|
12
|
</el-form-item>
|
|
13
|
13
|
<el-form-item>
|
|
|
@@ -38,38 +38,38 @@
|
|
38
|
38
|
|
|
39
|
39
|
<el-table v-loading="loading" :data="dailyLuggageCheckInList" @selection-change="handleSelectionChange">
|
|
40
|
40
|
<el-table-column type="selection" width="55" align="center" />
|
|
41
|
|
- <el-table-column label="日期" align="center" prop="statDate" width="120" />
|
|
42
|
|
- <el-table-column label="班次" align="center" prop="shiftType" width="100" />
|
|
43
|
|
- <el-table-column label="当班大队" align="center" prop="brigadeName" width="120" />
|
|
44
|
|
- <el-table-column label="T1旅检过检行李数" align="center" prop="t1TravelLuggageCount" width="150" />
|
|
45
|
|
- <el-table-column label="T2旅检过检行李数" align="center" prop="t2TravelLuggageCount" width="150" />
|
|
46
|
|
- <el-table-column label="过检行李合计" align="center" prop="totalLuggageCount" width="120" />
|
|
47
|
|
- <el-table-column label="T1旅检查堵件数" align="center" prop="t1TravelBlockedCount" width="120" />
|
|
48
|
|
- <el-table-column label="T1旅检万分率" align="center" prop="t1TravelBlockRate" width="120" />
|
|
49
|
|
- <el-table-column label="T2旅检查堵件数" align="center" prop="t2TravelBlockedCount" width="120" />
|
|
50
|
|
- <el-table-column label="T2旅检万分率" align="center" prop="t2TravelBlockRate" width="120" />
|
|
51
|
|
- <el-table-column label="T1行检过检行李数" align="center" prop="t1WalkLuggageCount" width="120" />
|
|
52
|
|
- <el-table-column label="T2行检过检行李数" align="center" prop="t2WalkLuggageCount" width="120" />
|
|
53
|
|
- <el-table-column label="T1行检查堵件数" align="center" prop="t1WalkBlockedCount" width="120" />
|
|
54
|
|
- <el-table-column label="T1行检万分率" align="center" prop="t1WalkBlockRate" width="120" />
|
|
55
|
|
- <el-table-column label="T2行检查堵件数" align="center" prop="t2WalkBlockedCount" width="120" />
|
|
56
|
|
- <el-table-column label="T2行检万分率" align="center" prop="t2WalkBlockRate" width="120" />
|
|
57
|
|
- <el-table-column label="查堵合计件数" align="center" prop="totalBlockedCount" width="120" />
|
|
58
|
|
- <el-table-column label="当日查堵万分率" align="center" prop="dailyBlockRate" width="120" />
|
|
59
|
|
- <el-table-column label="T1复查图像总数" align="center" prop="t1ReviewImageTotal" width="120" />
|
|
60
|
|
- <el-table-column label="T1-AI标记总数" align="center" prop="t1AiMarkTotal" width="120" />
|
|
61
|
|
- <el-table-column label="T1-AI误判总数" align="center" prop="t1AiErrorTotal" width="120" />
|
|
62
|
|
- <el-table-column label="T1-AI漏判总数" align="center" prop="t1AiMissTotal" width="120" />
|
|
63
|
|
- <el-table-column label="T2复查图像总数" align="center" prop="t2ReviewImageTotal" width="120" />
|
|
64
|
|
- <el-table-column label="T2-AI标记总数" align="center" prop="t2AiMarkTotal" width="120" />
|
|
65
|
|
- <el-table-column label="T2-AI误判总数" align="center" prop="t2AiErrorTotal" width="120" />
|
|
66
|
|
- <el-table-column label="T2-AI漏判总数" align="center" prop="t2AiMissTotal" width="120" />
|
|
67
|
|
- <el-table-column label="其他(VP通道)数量" align="center" prop="otherVipCount" width="140" />
|
|
68
|
|
- <el-table-column label="AI复查图像总数" align="center" prop="aiReviewImageTotal" width="120" />
|
|
69
|
|
- <el-table-column label="AI标记图像总数" align="center" prop="aiMarkTotal" width="120" />
|
|
70
|
|
- <el-table-column label="AI漏判图像总数" align="center" prop="aiMissImageTotal" width="120" />
|
|
71
|
|
- <el-table-column label="AI误判图像总数" align="center" prop="aiErrorImageTotal" width="140" />
|
|
72
|
|
- <el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="140">
|
|
|
41
|
+ <el-table-column label="日期" align="center" prop="statDate" min-width="120" />
|
|
|
42
|
+ <el-table-column label="班次" align="center" prop="shiftType" min-width="100" />
|
|
|
43
|
+ <el-table-column label="当班大队" align="center" prop="brigadeName" min-width="120" />
|
|
|
44
|
+ <el-table-column label="T1旅检过检行李数" align="center" prop="t1TravelLuggageCount" min-width="150" />
|
|
|
45
|
+ <el-table-column label="T2旅检过检行李数" align="center" prop="t2TravelLuggageCount" min-width="150" />
|
|
|
46
|
+ <el-table-column label="过检行李合计" align="center" prop="totalLuggageCount" min-width="120" />
|
|
|
47
|
+ <el-table-column label="T1旅检查堵件数" align="center" prop="t1TravelBlockedCount" min-width="140" />
|
|
|
48
|
+ <el-table-column label="T1旅检万分率" align="center" prop="t1TravelBlockRate" min-width="130" />
|
|
|
49
|
+ <el-table-column label="T2旅检查堵件数" align="center" prop="t2TravelBlockedCount" min-width="140" />
|
|
|
50
|
+ <el-table-column label="T2旅检万分率" align="center" prop="t2TravelBlockRate" min-width="130" />
|
|
|
51
|
+ <el-table-column label="T1行检过检行李数" align="center" prop="t1WalkLuggageCount" min-width="150" />
|
|
|
52
|
+ <el-table-column label="T2行检过检行李数" align="center" prop="t2WalkLuggageCount" min-width="150" />
|
|
|
53
|
+ <el-table-column label="T1行检查堵件数" align="center" prop="t1WalkBlockedCount" min-width="140" />
|
|
|
54
|
+ <el-table-column label="T1行检万分率" align="center" prop="t1WalkBlockRate" min-width="130" />
|
|
|
55
|
+ <el-table-column label="T2行检查堵件数" align="center" prop="t2WalkBlockedCount" min-width="140" />
|
|
|
56
|
+ <el-table-column label="T2行检万分率" align="center" prop="t2WalkBlockRate" min-width="130" />
|
|
|
57
|
+ <el-table-column label="查堵合计件数" align="center" prop="totalBlockedCount" min-width="120" />
|
|
|
58
|
+ <el-table-column label="当日查堵万分率" align="center" prop="dailyBlockRate" min-width="130" />
|
|
|
59
|
+ <el-table-column label="T1复查图像总数" align="center" prop="t1ReviewImageTotal" min-width="140" />
|
|
|
60
|
+ <el-table-column label="T1-AI标记总数" align="center" prop="t1AiMarkTotal" min-width="140" />
|
|
|
61
|
+ <el-table-column label="T1-AI误判总数" align="center" prop="t1AiErrorTotal" min-width="140" />
|
|
|
62
|
+ <el-table-column label="T1-AI漏判总数" align="center" prop="t1AiMissTotal" min-width="140" />
|
|
|
63
|
+ <el-table-column label="T2复查图像总数" align="center" prop="t2ReviewImageTotal" min-width="140" />
|
|
|
64
|
+ <el-table-column label="T2-AI标记总数" align="center" prop="t2AiMarkTotal" min-width="140" />
|
|
|
65
|
+ <el-table-column label="T2-AI误判总数" align="center" prop="t2AiErrorTotal" min-width="140" />
|
|
|
66
|
+ <el-table-column label="T2-AI漏判总数" align="center" prop="t2AiMissTotal" min-width="140" />
|
|
|
67
|
+ <el-table-column label="其他(VP通道)数量" align="center" prop="otherVipCount" min-width="150" />
|
|
|
68
|
+ <el-table-column label="AI复查图像总数" align="center" prop="aiReviewImageTotal" min-width="150" />
|
|
|
69
|
+ <el-table-column label="AI标记图像总数" align="center" prop="aiMarkTotal" min-width="150" />
|
|
|
70
|
+ <el-table-column label="AI漏判图像总数" align="center" prop="aiMissImageTotal" min-width="150" />
|
|
|
71
|
+ <el-table-column label="AI误判图像总数" align="center" prop="aiErrorImageTotal" min-width="150" />
|
|
|
72
|
+ <el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="140" fixed="right">
|
|
73
|
73
|
<template #default="scope">
|
|
74
|
74
|
<el-button link type="primary" icon="Edit" @click="handleUpdate(scope.row)"
|
|
75
|
75
|
v-hasPermi="['dailyLuggageCheckIn:dailyLuggageCheckIn:edit']">修改</el-button>
|
|
|
@@ -102,8 +102,8 @@
|
|
102
|
102
|
</el-form-item>
|
|
103
|
103
|
</el-col>
|
|
104
|
104
|
</el-row>
|
|
105
|
|
- <el-form-item label="当班大队" prop="brigadeName">
|
|
106
|
|
- <el-select v-model="form.brigadeName" placeholder="请选择当班大队" style="width: 100%">
|
|
|
105
|
+ <el-form-item label="当班大队" prop="brigadeId">
|
|
|
106
|
+ <el-select v-model="form.brigadeId" placeholder="请选择当班大队" style="width: 100%">
|
|
107
|
107
|
<el-option v-for="item in brigadeOptions" :key="item.value" :label="item.label" :value="item.value" />
|
|
108
|
108
|
</el-select>
|
|
109
|
109
|
</el-form-item>
|
|
|
@@ -132,11 +132,11 @@
|
|
132
|
132
|
</el-col>
|
|
133
|
133
|
</el-row>
|
|
134
|
134
|
<el-row :gutter="20">
|
|
135
|
|
- <el-col :span="12">
|
|
136
|
|
- <!-- <el-form-item label="过检行李合计" prop="totalLuggageCount">
|
|
|
135
|
+ <!-- <el-col :span="12">
|
|
|
136
|
+ <el-form-item label="过检行李合计" prop="totalLuggageCount">
|
|
137
|
137
|
<el-input-number v-model="form.totalLuggageCount" :min="0" style="width: 100%" />
|
|
138
|
|
- </el-form-item> -->
|
|
139
|
|
- </el-col>
|
|
|
138
|
+ </el-form-item>
|
|
|
139
|
+ </el-col> -->
|
|
140
|
140
|
</el-row>
|
|
141
|
141
|
<el-row :gutter="20">
|
|
142
|
142
|
<el-col :span="12">
|
|
|
@@ -145,22 +145,15 @@
|
|
145
|
145
|
</el-form-item>
|
|
146
|
146
|
</el-col>
|
|
147
|
147
|
<el-col :span="12">
|
|
148
|
|
- <!-- <el-form-item label="T1旅检万分率" prop="t1TravelBlockRate">
|
|
149
|
|
- <el-input-number v-model="form.t1TravelBlockRate" :min="0" :precision="2" style="width: 100%" />
|
|
150
|
|
- </el-form-item> -->
|
|
151
|
|
- </el-col>
|
|
152
|
|
- </el-row>
|
|
153
|
|
- <el-row :gutter="20">
|
|
154
|
|
- <el-col :span="12">
|
|
155
|
148
|
<el-form-item label="T2旅检查堵件数" prop="t2TravelBlockedCount">
|
|
156
|
149
|
<el-input-number v-model="form.t2TravelBlockedCount" :min="0" :precision="0" style="width: 100%" />
|
|
157
|
150
|
</el-form-item>
|
|
158
|
151
|
</el-col>
|
|
159
|
|
- <el-col :span="12">
|
|
160
|
|
- <!-- <el-form-item label="T2旅检万分率" prop="t2TravelBlockRate">
|
|
161
|
|
- <el-input-number v-model="form.t2TravelBlockRate" :min="0" :precision="2" style="width: 100%" />
|
|
162
|
|
- </el-form-item> -->
|
|
163
|
|
- </el-col>
|
|
|
152
|
+ <!-- <el-col :span="12">
|
|
|
153
|
+ <el-form-item label="T1旅检万分率" prop="t1TravelBlockRate">
|
|
|
154
|
+ <el-input-number v-model="form.t1TravelBlockRate" :min="0" :precision="2" style="width: 100%" />
|
|
|
155
|
+ </el-form-item>
|
|
|
156
|
+ </el-col>-->
|
|
164
|
157
|
</el-row>
|
|
165
|
158
|
<el-row :gutter="20">
|
|
166
|
159
|
<el-col :span="12">
|
|
|
@@ -169,31 +162,38 @@
|
|
169
|
162
|
</el-form-item>
|
|
170
|
163
|
</el-col>
|
|
171
|
164
|
<el-col :span="12">
|
|
172
|
|
- <!-- <el-form-item label="T1行检万分率" prop="t1WalkBlockRate">
|
|
173
|
|
- <el-input-number v-model="form.t1WalkBlockRate" :min="0" :precision="2" style="width: 100%" />
|
|
174
|
|
- </el-form-item> -->
|
|
175
|
|
- </el-col>
|
|
176
|
|
- </el-row>
|
|
177
|
|
- <el-row :gutter="20">
|
|
178
|
|
- <el-col :span="12">
|
|
179
|
165
|
<el-form-item label="T2行检查堵件数" prop="t2WalkBlockedCount">
|
|
180
|
166
|
<el-input-number v-model="form.t2WalkBlockedCount" :min="0" :precision="0" style="width: 100%" />
|
|
181
|
167
|
</el-form-item>
|
|
182
|
168
|
</el-col>
|
|
183
|
|
- <el-col :span="12">
|
|
184
|
|
- <!-- <el-form-item label="T2行检万分率" prop="t2WalkBlockRate">
|
|
185
|
|
- <el-input-number v-model="form.t2WalkBlockRate" :min="0" :precision="2" style="width: 100%" />
|
|
186
|
|
- </el-form-item> -->
|
|
187
|
|
- </el-col>
|
|
|
169
|
+ <!--<el-col :span="12">
|
|
|
170
|
+ <el-form-item label="T2旅检万分率" prop="t2TravelBlockRate">
|
|
|
171
|
+ <el-input-number v-model="form.t2TravelBlockRate" :min="0" :precision="2" style="width: 100%" />
|
|
|
172
|
+ </el-form-item>
|
|
|
173
|
+ </el-col>-->
|
|
188
|
174
|
</el-row>
|
|
189
|
|
- <el-row :gutter="20">
|
|
190
|
|
-
|
|
191
|
|
- <el-col :span="12">
|
|
192
|
|
- <!-- <el-form-item label="当日查堵万分率" prop="dailyBlockRate">
|
|
|
175
|
+
|
|
|
176
|
+
|
|
|
177
|
+ <!-- <el-col :span="12">
|
|
|
178
|
+ <el-form-item label="T1行检万分率" prop="t1WalkBlockRate">
|
|
|
179
|
+ <el-input-number v-model="form.t1WalkBlockRate" :min="0" :precision="2" style="width: 100%" />
|
|
|
180
|
+ </el-form-item>
|
|
|
181
|
+ </el-col>-->
|
|
|
182
|
+
|
|
|
183
|
+
|
|
|
184
|
+ <!-- <el-col :span="12">
|
|
|
185
|
+ <el-form-item label="T2行检万分率" prop="t2WalkBlockRate">
|
|
|
186
|
+ <el-input-number v-model="form.t2WalkBlockRate" :min="0" :precision="2" style="width: 100%" />
|
|
|
187
|
+ </el-form-item>
|
|
|
188
|
+ </el-col> -->
|
|
|
189
|
+
|
|
|
190
|
+
|
|
|
191
|
+ <!-- <el-col :span="12">
|
|
|
192
|
+ <el-form-item label="当日查堵万分率" prop="dailyBlockRate">
|
|
193
|
193
|
<el-input-number v-model="form.dailyBlockRate" :min="0" :precision="2" style="width: 100%" />
|
|
194
|
|
- </el-form-item> -->
|
|
195
|
|
- </el-col>
|
|
196
|
|
- </el-row>
|
|
|
194
|
+ </el-form-item>
|
|
|
195
|
+ </el-col>-->
|
|
|
196
|
+
|
|
197
|
197
|
<el-row :gutter="20">
|
|
198
|
198
|
<el-col :span="12">
|
|
199
|
199
|
<el-form-item label="T1复查图像总数" prop="t1ReviewImageTotal">
|
|
|
@@ -245,7 +245,7 @@
|
|
245
|
245
|
<el-form-item label="其他(VP通道)数量" prop="otherVipCount">
|
|
246
|
246
|
<el-input-number v-model="form.otherVipCount" :min="0" style="width: 100%" />
|
|
247
|
247
|
</el-form-item>
|
|
248
|
|
-
|
|
|
248
|
+
|
|
249
|
249
|
</el-form>
|
|
250
|
250
|
<template #footer>
|
|
251
|
251
|
<div class="dialog-footer">
|
|
|
@@ -256,21 +256,24 @@
|
|
256
|
256
|
</el-dialog>
|
|
257
|
257
|
|
|
258
|
258
|
<!-- 导入对话框 -->
|
|
259
|
|
- <el-dialog title="导入" v-model="importOpen" width="500px" append-to-body>
|
|
260
|
|
- <el-upload ref="uploadRef" :auto-upload="false" :on-change="handleFileChange" :show-file-list="false"
|
|
261
|
|
- accept=".xlsx,.xls">
|
|
262
|
|
- <el-button type="primary">选取文件</el-button>
|
|
263
|
|
-
|
|
|
259
|
+ <el-dialog title="导入" v-model="upload.open" width="500px" append-to-body>
|
|
|
260
|
+ <el-upload ref="uploadRef" :limit="1" accept=".xlsx, .xls" :headers="upload.headers" :action="upload.url"
|
|
|
261
|
+ :disabled="upload.isUploading" :on-progress="handleFileUploadProgress" :on-success="handleFileSuccess"
|
|
|
262
|
+ :auto-upload="false" drag>
|
|
|
263
|
+ <el-icon class="el-icon--upload"><upload-filled /></el-icon>
|
|
|
264
|
+ <div class="el-upload__text">将文件拖到此处,或<em>点击上传</em></div>
|
|
|
265
|
+ <template #tip>
|
|
|
266
|
+ <div class="el-upload__tip text-center">
|
|
|
267
|
+ <span>仅允许导入xls、xlsx格式文件。</span>
|
|
|
268
|
+ <el-link type="primary" :underline="false" style="font-size: 12px; vertical-align: baseline"
|
|
|
269
|
+ @click="importTemplate">下载模板</el-link>
|
|
|
270
|
+ </div>
|
|
|
271
|
+ </template>
|
|
264
|
272
|
</el-upload>
|
|
265
|
|
- <div class="el-upload__tip">只能上传xls/xlsx文件</div>
|
|
266
|
|
- <div class="el-upload__tip">
|
|
267
|
|
- <el-link type="primary" :underline="false" style="font-size: 12px; vertical-align: baseline"
|
|
268
|
|
- @click="importTemplate">下载模板</el-link>
|
|
269
|
|
- </div>
|
|
270
|
273
|
<template #footer>
|
|
271
|
274
|
<div class="dialog-footer">
|
|
272
|
|
- <el-button type="primary" @click="submitImport">确 定</el-button>
|
|
273
|
|
- <el-button @click="importOpen = false">取 消</el-button>
|
|
|
275
|
+ <el-button type="primary" @click="submitFileForm">确 定</el-button>
|
|
|
276
|
+ <el-button @click="upload.open = false">取 消</el-button>
|
|
274
|
277
|
</div>
|
|
275
|
278
|
</template>
|
|
276
|
279
|
</el-dialog>
|
|
|
@@ -281,6 +284,8 @@
|
|
281
|
284
|
import { ref, reactive, onMounted, getCurrentInstance } from 'vue'
|
|
282
|
285
|
import { listDailyLuggageCheckIn, getDailyLuggageCheckIn, delDailyLuggageCheckIn, addDailyLuggageCheckIn, updateDailyLuggageCheckIn, exportDailyLuggageCheckIn, downloadTemplate } from '@/api/blockingData/dailyLuggageCheckInList'
|
|
283
|
286
|
import { listDept } from '@/api/system/dept'
|
|
|
287
|
+import { getToken } from '@/utils/auth'
|
|
|
288
|
+import { UploadFilled } from '@element-plus/icons-vue'
|
|
284
|
289
|
|
|
285
|
290
|
const { proxy } = getCurrentInstance()
|
|
286
|
291
|
|
|
|
@@ -302,10 +307,13 @@ const dailyLuggageCheckInList = ref([])
|
|
302
|
307
|
const title = ref('')
|
|
303
|
308
|
// 是否显示弹出层
|
|
304
|
309
|
const open = ref(false)
|
|
305
|
|
-// 是否显示导入弹出层
|
|
306
|
|
-const importOpen = ref(false)
|
|
307
|
|
-// 导入文件
|
|
308
|
|
-const importFile = ref(null)
|
|
|
310
|
+
|
|
|
311
|
+const upload = reactive({
|
|
|
312
|
+ open: false,
|
|
|
313
|
+ isUploading: false,
|
|
|
314
|
+ headers: { Authorization: 'Bearer ' + getToken() },
|
|
|
315
|
+ url: import.meta.env.VITE_APP_BASE_API + '/blocked/daily/importData'
|
|
|
316
|
+})
|
|
309
|
317
|
|
|
310
|
318
|
// 查询参数
|
|
311
|
319
|
const queryParams = reactive({
|
|
|
@@ -322,7 +330,7 @@ const form = reactive({})
|
|
322
|
330
|
const rules = {
|
|
323
|
331
|
statDate: [{ required: true, message: '日期不能为空', trigger: 'change' }],
|
|
324
|
332
|
shiftType: [{ required: true, message: '班次不能为空', trigger: 'change' }],
|
|
325
|
|
- brigadeName: [{ required: true, message: '当班大队不能为空', trigger: 'change' }],
|
|
|
333
|
+ brigadeId: [{ required: true, message: '当班大队不能为空', trigger: 'change' }],
|
|
326
|
334
|
t1TravelLuggageCount: [{ required: true, message: 'T1旅检过检行李数不能为空', trigger: 'change' }],
|
|
327
|
335
|
t2TravelLuggageCount: [{ required: true, message: 'T2旅检过检行李数不能为空', trigger: 'change' }],
|
|
328
|
336
|
t1WalkLuggageCount: [{ required: true, message: 'T1行检过检行李数不能为空', trigger: 'change' }],
|
|
|
@@ -359,7 +367,7 @@ function getList() {
|
|
359
|
367
|
function getDeptList() {
|
|
360
|
368
|
listDept({}).then(response => {
|
|
361
|
369
|
const deptList = response.data || []
|
|
362
|
|
- brigadeOptions.value = deptList.filter(item => item.deptType === 'BRIGADE').map(item => ({
|
|
|
370
|
+ brigadeOptions.value = deptList.filter(item => item.deptType === 'BRIGADE' && [311, 314, 315].includes(item.deptId)).map(item => ({
|
|
363
|
371
|
value: item.deptId,
|
|
364
|
372
|
label: item.deptName
|
|
365
|
373
|
}))
|
|
|
@@ -378,6 +386,7 @@ function reset() {
|
|
378
|
386
|
id: null,
|
|
379
|
387
|
statDate: null,
|
|
380
|
388
|
shiftType: null,
|
|
|
389
|
+ brigadeId: null,
|
|
381
|
390
|
brigadeName: null,
|
|
382
|
391
|
t1TravelLuggageCount: 0,
|
|
383
|
392
|
t2TravelLuggageCount: 0,
|
|
|
@@ -454,6 +463,12 @@ function handleUpdate(row) {
|
|
454
|
463
|
function submitForm() {
|
|
455
|
464
|
proxy.$refs.dailyLuggageCheckInRef.validate(valid => {
|
|
456
|
465
|
if (valid) {
|
|
|
466
|
+ // 获取brigadeName
|
|
|
467
|
+ const selectedBrigade = brigadeOptions.value.find(item => item.value === form.brigadeId)
|
|
|
468
|
+ if (selectedBrigade) {
|
|
|
469
|
+ form.brigadeName = selectedBrigade.label
|
|
|
470
|
+ }
|
|
|
471
|
+
|
|
457
|
472
|
if (form.id != null) {
|
|
458
|
473
|
updateDailyLuggageCheckIn(form).then(response => {
|
|
459
|
474
|
proxy.$modal.msgSuccess('修改成功')
|
|
|
@@ -484,40 +499,38 @@ function handleDelete(row) {
|
|
484
|
499
|
|
|
485
|
500
|
/** 导出按钮操作 */
|
|
486
|
501
|
function handleExport() {
|
|
487
|
|
- proxy.download('dailyLuggageCheckIn/export', {
|
|
|
502
|
+ proxy.download('/blocked/daily/export', {
|
|
488
|
503
|
...queryParams
|
|
489
|
|
- }, `每日行李查缉_${new Date().getTime()}.xlsx`)
|
|
|
504
|
+ }, `每日行李过检行李查堵_${new Date().getTime()}.xlsx`)
|
|
490
|
505
|
}
|
|
491
|
506
|
|
|
492
|
507
|
/** 导入按钮操作 */
|
|
493
|
508
|
function handleImport() {
|
|
494
|
|
- importOpen.value = true
|
|
495
|
|
- importFile.value = null
|
|
|
509
|
+ upload.open = true
|
|
496
|
510
|
}
|
|
497
|
511
|
|
|
498
|
512
|
/** 下载模板操作 */
|
|
499
|
513
|
function importTemplate() {
|
|
500
|
|
- proxy.download('blocked/daily/importTemplate', {}, `daily_luggage_checkin_template_${new Date().getTime()}.xlsx`)
|
|
|
514
|
+ proxy.download('blocked/daily/importTemplate', {}, `每日行李过检行李查堵模板_${new Date().getTime()}.xlsx`)
|
|
501
|
515
|
}
|
|
502
|
516
|
|
|
503
|
|
-/** 文件选择 */
|
|
504
|
|
-function handleFileChange(file) {
|
|
505
|
|
- importFile.value = file.raw
|
|
|
517
|
+/** 文件上传中处理 */
|
|
|
518
|
+const handleFileUploadProgress = (event, file, fileList) => {
|
|
|
519
|
+ upload.isUploading = true
|
|
506
|
520
|
}
|
|
507
|
521
|
|
|
508
|
|
-/** 提交导入 */
|
|
509
|
|
-function submitImport() {
|
|
510
|
|
- if (!importFile.value) {
|
|
511
|
|
- proxy.$modal.msgWarning('请选择要导入的文件')
|
|
512
|
|
- return
|
|
513
|
|
- }
|
|
514
|
|
- const formData = new FormData()
|
|
515
|
|
- formData.append('file', importFile.value)
|
|
516
|
|
- proxy.upload('dailyLuggageCheckIn/importData', formData).then(response => {
|
|
517
|
|
- proxy.$modal.msgSuccess(response.msg)
|
|
518
|
|
- importOpen.value = false
|
|
519
|
|
- getList()
|
|
520
|
|
- })
|
|
|
522
|
+/** 文件上传成功处理 */
|
|
|
523
|
+const handleFileSuccess = (response, file, fileList) => {
|
|
|
524
|
+ upload.open = false
|
|
|
525
|
+ upload.isUploading = false
|
|
|
526
|
+ proxy.$refs.uploadRef.handleRemove(file)
|
|
|
527
|
+ proxy.$alert("<div style='overflow: auto;overflow-x: hidden;max-height: 70vh;padding: 10px 20px 0;'>" + response.msg + "</div>", "导入结果", { dangerouslyUseHTMLString: true })
|
|
|
528
|
+ getList()
|
|
|
529
|
+}
|
|
|
530
|
+
|
|
|
531
|
+/** 提交上传文件 */
|
|
|
532
|
+function submitFileForm() {
|
|
|
533
|
+ proxy.$refs.uploadRef.submit()
|
|
521
|
534
|
}
|
|
522
|
535
|
|
|
523
|
536
|
onMounted(() => {
|