Selaa lähdekoodia

订单 图稿设计图字段调整

lxf 1 vuosi sitten
vanhempi
commit
6a1f284d0a

+ 4 - 4
src/views/group/order/management/detail.vue

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

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

@@ -143,7 +143,7 @@
                     </el-table-column>
                     <el-table-column label="图稿(设计图)" width="180">
                       <template #default="{ row }">
-                        <el-form-item :prop="'orderSkuList.' + index + '.productImgUrl'">
+                        <el-form-item :prop="'orderSkuList.' + index + '.blueprint'">
                           <el-upload
                             class="avatar-uploader"
                             action="https://winfaster.obs.cn-south-1.myhuaweicloud.com"
@@ -155,7 +155,7 @@
                               }
                             "
                             :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-upload>
                         </el-form-item>
@@ -473,7 +473,7 @@ const uploadProductFile = async (file) => {
   return true;
 };
 const handleProductSuccess = (uploadFile, index) => {
-  formData.data.orderSkuList[index].productImgUrl = uploadFile.raw.fileUrl;
+  formData.data.orderSkuList[index].blueprint = uploadFile.raw.fileUrl;
 };
 const uploadData = ref({});
 const fileList = ref([]);
@@ -652,7 +652,7 @@ const getOrderDetail = (parameter) => {
         if (formData.data.orderSkuList && formData.data.orderSkuList.length > 0) {
           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) {
-              formData.data.orderSkuList[i].productImgUrl = fileObj[formData.data.orderSkuList[i].id][0];
+              formData.data.orderSkuList[i].blueprint = fileObj[formData.data.orderSkuList[i].id][0];
             }
           }
         }