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

报关资料上传优化

parent 134488eb
......@@ -798,6 +798,14 @@ export function uploadFile(data) {
data: data
})
}
//上传
export function uploadOrgname(data) {
return request({
url: '/infra/file/org-name/up',
method: 'post',
data: data
})
}
/*根据订单ID查询目的国*/
export function getDestCountryByOrderId(params){
return request({
......
......@@ -23,7 +23,7 @@
</el-dialog>
</template>
<script>
import { warehousePictureList, warehousePictureCreate, warehousePictureDelete,uploadFile } from '@/api/ecw/order'
import { warehousePictureList, warehousePictureCreate, warehousePictureDelete,uploadOrgname } from '@/api/ecw/order'
export default {
props: {
......@@ -84,8 +84,8 @@ export default {
// 上传
const formData = new FormData()
formData.append('file', file)
formData.append('path', this.uuid())
uploadFile(formData).then(response => {
// formData.append('path', this.uuid())
uploadOrgname(formData).then(response => {
if (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