|
@@ -616,6 +616,7 @@ const clickDrawingFile = (index) => {
|
|
|
const selectPic = (row) => {
|
|
|
formData.data.orderSkuList[drawingFileIndex.value].blueprint = row.imgUrl;
|
|
|
formData.data.orderSkuList[drawingFileIndex.value].productionDocument = row.fileUrl;
|
|
|
+ formData.data.orderSkuList[drawingFileIndex.value].artworkLibraryId = row.id;
|
|
|
ElMessage({ message: "选择完成", type: "success" });
|
|
|
openDrawingFile.value = false;
|
|
|
};
|
|
@@ -723,6 +724,7 @@ const pushProduct = async (res, SKU, row) => {
|
|
|
orderSkuBomList: orderSkuBomList,
|
|
|
blueprint: row.designImgUrl,
|
|
|
productionDocument: row.sharedFolder,
|
|
|
+ artworkLibraryId: "0",
|
|
|
inventoryQuantity: inventoryQuantity,
|
|
|
});
|
|
|
ElMessage({ message: "添加成功", type: "success" });
|
|
@@ -799,6 +801,7 @@ const uploadFile = async (file) => {
|
|
|
};
|
|
|
const handleSuccess = (UploadFile, index) => {
|
|
|
formData.data.orderSkuList[index].productionDocument = UploadFile.raw.fileUrl;
|
|
|
+ formData.data.orderSkuList[index].artworkLibraryId = "0";
|
|
|
};
|
|
|
const uploadImgData = ref({});
|
|
|
const uploadImgFile = async (file) => {
|
|
@@ -811,6 +814,7 @@ const uploadImgFile = async (file) => {
|
|
|
};
|
|
|
const handleImgSuccess = (UploadFile, index) => {
|
|
|
formData.data.orderSkuList[index].blueprint = UploadFile.raw.fileUrl;
|
|
|
+ formData.data.orderSkuList[index].artworkLibraryId = "0";
|
|
|
};
|
|
|
const computeQuantity = (index, indexSKU) => {
|
|
|
let quantity = 0;
|