Commit 3f0743d0 authored by 我在何方's avatar 我在何方

报关资料上传优化

parent 134488eb
...@@ -798,6 +798,14 @@ export function uploadFile(data) { ...@@ -798,6 +798,14 @@ export function uploadFile(data) {
data: data data: data
}) })
} }
//上传
export function uploadOrgname(data) {
return request({
url: '/infra/file/org-name/up',
method: 'post',
data: data
})
}
/*根据订单ID查询目的国*/ /*根据订单ID查询目的国*/
export function getDestCountryByOrderId(params){ export function getDestCountryByOrderId(params){
return request({ return request({
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
</el-dialog> </el-dialog>
</template> </template>
<script> <script>
import { warehousePictureList, warehousePictureCreate, warehousePictureDelete,uploadFile } from '@/api/ecw/order' import { warehousePictureList, warehousePictureCreate, warehousePictureDelete,uploadOrgname } from '@/api/ecw/order'
export default { export default {
props: { props: {
...@@ -84,8 +84,8 @@ export default { ...@@ -84,8 +84,8 @@ export default {
// 上传 // 上传
const formData = new FormData() const formData = new FormData()
formData.append('file', file) formData.append('file', file)
formData.append('path', this.uuid()) // formData.append('path', this.uuid())
uploadFile(formData).then(response => { uploadOrgname(formData).then(response => {
if (response.data) { if (response.data) {
this.createImage(response.data) this.createImage(response.data)
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment