From 75bcc61201d73ed7f1aaf61ad11043ff7b68c42d Mon Sep 17 00:00:00 2001
From: 陈婷婷 <506607603@qq.com>
Date: 星期四, 02 四月 2026 17:26:43 +0800
Subject: [PATCH] 运单
---
src/views/logistics/transportGPS/WL_YayBill.vue | 19 ++++++++++++-------
1 files changed, 12 insertions(+), 7 deletions(-)
diff --git a/src/views/logistics/transportGPS/WL_YayBill.vue b/src/views/logistics/transportGPS/WL_YayBill.vue
index df1aba6..9f0d567 100644
--- a/src/views/logistics/transportGPS/WL_YayBill.vue
+++ b/src/views/logistics/transportGPS/WL_YayBill.vue
@@ -337,9 +337,9 @@
<el-input v-model="fileUploadForm.billNo" disabled />
</el-form-item>
<el-form-item label="闄勪欢">
- <el-upload class="upload-demo" ref="fileUpload" :action="upload.url + '?updateSupport=' + upload.updateSupport" :on-preview="handleFilePreview"
+ <el-upload class="upload-demo" ref="fileUpload" :headers="upload.headers" action="http://220.189.218.155:9010/File" :on-preview="handleFilePreview"
:on-remove="handleFileRemove" :on-change="handleFileChange" :file-list="fileList" :on-success="handleFileSuccess" :on-error="handleFileError"
- :auto-upload="false" :limit="10" :on-exceed="handleFileExceed"
+ :limit="10" :on-exceed="handleFileExceed"
accept=".jpg,.png,.jpeg,.pdf,.doc,.docx,.xls,.xlsx,.zip,.rar">
<el-button size="small" type="primary">鐐瑰嚮涓婁紶</el-button>
<div slot="tip" class="el-upload__tip">
@@ -361,7 +361,7 @@
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
- <el-button type="primary" @click="submitFileUpload" :loading="fileUploadLoading">涓婁紶</el-button>
+ <!-- <el-button type="primary" @click="submitFileUpload" :loading="fileUploadLoading">涓婁紶</el-button> -->
<el-button @click="openFileUpload = false">鍏� 闂�</el-button>
</div>
</el-dialog>
@@ -421,7 +421,7 @@
// 鏄惁鏇存柊宸茬粡瀛樺湪鐨勬暟鎹�
updateSupport: 0,
// 璁剧疆涓婁紶鐨勮姹傚ご閮�
- // headers: { Authorization: "Bearer " + getToken() },
+ headers: { 'Content-Type': 'multipart/form-data'},
// 涓婁紶鐨勫湴鍧�
url: 'http://220.189.218.155:9010/File'
},
@@ -1473,17 +1473,22 @@
this.fileList = []
this.uploadFiles = []
this.uploadedFileList = []
- this.getUploadedFileList()
+ // this.getUploadedFileList()
this.openFileUpload = true
},
handleFileChange(file, fileList) {
- this.uploadFiles = fileList
+ console.log(file, fileList)
+
+ // this.uploadFiles = fileList
},
handleFileRemove(file, fileList) {
+ console.log(file, fileList)
+
this.uploadFiles = fileList
},
handleFileSuccess(response, file, fileList){
- console.log(file)
+ console.log(response, file, fileList)
+
},
handleFileError(response, file, fileList){
console.log(response, file, fileList)
--
Gitblit v1.9.1