|
@@ -150,11 +150,16 @@ export default {
|
|
|
return
|
|
|
}
|
|
|
try {
|
|
|
+ this.formData.imageList = this.imageRemarkList.map((item) => {
|
|
|
+ return item.response ? item.response.data : item.url
|
|
|
+ })
|
|
|
await logisticsSend(this.formData)
|
|
|
this.$message.success('发货成功')
|
|
|
this.dialogVisible = false
|
|
|
- this.getList()
|
|
|
+ // this.getList()
|
|
|
+ this.fetchLogisticsDetails()
|
|
|
} catch (error) {
|
|
|
+ console.log(error)
|
|
|
this.$message.error('发货失败')
|
|
|
}
|
|
|
},
|
|
@@ -170,12 +175,11 @@ export default {
|
|
|
uploadRemarkImageSuccess({ response, file, fileList }) {
|
|
|
this.imageRemarkList = fileList
|
|
|
this.formData.imageRemark = fileList.length
|
|
|
- this.formData.imageList = fileList.map((item) => item.response.data)
|
|
|
+ console.log(fileList)
|
|
|
},
|
|
|
handleRemarkImageRemove({ file, fileList }) {
|
|
|
this.imageRemarkList = fileList
|
|
|
this.formData.imageRemark = fileList.length
|
|
|
- this.formData.imageList = fileList.map((item) => item.response.data)
|
|
|
},
|
|
|
beforeRemarkImageUpload(file) {
|
|
|
const flag = file.size / 1024 / 1024 < 1
|