|
@@ -180,7 +180,7 @@
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column label="图稿(设计图)" width="180">
|
|
<el-table-column label="图稿(设计图)" width="180">
|
|
<template #default="{ row }">
|
|
<template #default="{ row }">
|
|
- <el-form-item :prop="'orderSkuList.' + index + '.productImgUrl'">
|
|
|
|
|
|
+ <el-form-item :prop="'orderSkuList.' + index + '.blueprint'">
|
|
<el-upload
|
|
<el-upload
|
|
class="avatar-uploader"
|
|
class="avatar-uploader"
|
|
action="https://winfaster.obs.cn-south-1.myhuaweicloud.com"
|
|
action="https://winfaster.obs.cn-south-1.myhuaweicloud.com"
|
|
@@ -192,7 +192,7 @@
|
|
}
|
|
}
|
|
"
|
|
"
|
|
:before-upload="uploadProductFile">
|
|
:before-upload="uploadProductFile">
|
|
- <el-image v-if="row.productImgUrl" :src="row.productImgUrl" fit="scale-down" class="avatar" />
|
|
|
|
|
|
+ <el-image v-if="row.blueprint" :src="row.blueprint" fit="scale-down" class="avatar" />
|
|
<el-icon v-else class="avatar-uploader-icon"><Plus /></el-icon>
|
|
<el-icon v-else class="avatar-uploader-icon"><Plus /></el-icon>
|
|
</el-upload>
|
|
</el-upload>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
@@ -490,7 +490,7 @@ const uploadProductFile = async (file) => {
|
|
return true;
|
|
return true;
|
|
};
|
|
};
|
|
const handleProductSuccess = (uploadFile, index) => {
|
|
const handleProductSuccess = (uploadFile, index) => {
|
|
- formData.data.orderSkuList[index].productImgUrl = uploadFile.raw.fileUrl;
|
|
|
|
|
|
+ formData.data.orderSkuList[index].blueprint = uploadFile.raw.fileUrl;
|
|
};
|
|
};
|
|
const uploadData = ref({});
|
|
const uploadData = ref({});
|
|
const fileList = ref([]);
|
|
const fileList = ref([]);
|
|
@@ -623,7 +623,7 @@ const getOrderDetail = (parameter) => {
|
|
if (formData.data.orderSkuList && formData.data.orderSkuList.length > 0) {
|
|
if (formData.data.orderSkuList && formData.data.orderSkuList.length > 0) {
|
|
for (let i = 0; i < formData.data.orderSkuList.length; i++) {
|
|
for (let i = 0; i < formData.data.orderSkuList.length; i++) {
|
|
if (fileObj[formData.data.orderSkuList[i].id] && fileObj[formData.data.orderSkuList[i].id].length > 0) {
|
|
if (fileObj[formData.data.orderSkuList[i].id] && fileObj[formData.data.orderSkuList[i].id].length > 0) {
|
|
- formData.data.orderSkuList[i].productImgUrl = fileObj[formData.data.orderSkuList[i].id][0];
|
|
|
|
|
|
+ formData.data.orderSkuList[i].blueprint = fileObj[formData.data.orderSkuList[i].id][0];
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|