lxf 1 年之前
父節點
當前提交
71c06f2278

+ 4 - 0
src/components/process/order.vue

@@ -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;

+ 4 - 0
src/views/subsidiary/order/management/add.vue

@@ -607,6 +607,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;
 };
@@ -850,6 +851,7 @@ const selectProduct = (row, SKU) => {
         orderSkuBomList: orderSkuBomList,
         blueprint: row.designImgUrl,
         productionDocument: row.sharedFolder,
+        artworkLibraryId: "0",
         inventoryQuantity: inventoryQuantity,
       });
       ElMessage({ message: "添加成功", type: "success" });
@@ -926,6 +928,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) => {
@@ -938,6 +941,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;

+ 3 - 0
src/views/subsidiary/order/management/design.vue

@@ -495,6 +495,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;
 };
@@ -660,6 +661,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) => {
@@ -672,6 +674,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;