lxf il y a 1 an
Parent
commit
53c86e8aeb

+ 1 - 0
src/components/MakeProduct/ProductMaterial.vue

@@ -568,6 +568,7 @@ export default {
       let submitData = {
         id: row.id,
         bomColorId: data.id,
+        bomColorSpecCode: data.specCode,
         bomColorName: data.nameChinese,
         magPath: data.magPath,
       }

+ 14 - 10
src/components/MakeProduct/groupSKU/ProductMaterial.vue

@@ -263,16 +263,19 @@
                   style="margin: 5px 0; background-color: #43b214; border-color: #43b214"
                   >选择BOM</el-button
                 >
-                <div v-for="(item, index) in scope.row.bomList" :key="index" style="display: flex; align-items: center">
-                  <span class="el-icon-remove-outline" style="font-size: 16px; cursor: pointer" @click="removeBOM(index, scope.$index)"></span>
-                  <img
-                    v-if="item.magPath"
-                    :src="pathPrefix + item.magPath"
-                    class="productImg"
-                    style="margin: 0px 10px; width: 36px; height: 36px"
-                    @click="openFile(pathPrefix + item.magPath)"
-                  />
-                  <span>{{ item.bomColorName }}</span>
+                <div v-for="(item, index) in scope.row.bomList" :key="index">
+                  <div>{{ item.bomColorSpecCode }}</div>
+                  <div style="display: flex; align-items: center">
+                    <span class="el-icon-remove-outline" style="font-size: 16px; cursor: pointer" @click="removeBOM(index, scope.$index)"></span>
+                    <img
+                      v-if="item.magPath"
+                      :src="pathPrefix + item.magPath"
+                      class="productImg"
+                      style="margin: 0px 10px; width: 36px; height: 36px"
+                      @click="openFile(pathPrefix + item.magPath)"
+                    />
+                    <span>{{ item.bomColorName }}</span>
+                  </div>
                 </div>
               </div>
             </template>
@@ -558,6 +561,7 @@ export default {
       let submitData = {
         id: row.id,
         bomColorId: data.id,
+        bomColorSpecCode: data.specCode,
         bomColorName: data.nameChinese,
         magPath: data.magPath,
       }

+ 1 - 0
src/components/ProductDetails/ProductMaterialOne.vue

@@ -568,6 +568,7 @@ export default {
       let submitData = {
         id: row.id,
         bomColorId: data.id,
+        bomColorSpecCode: data.specCode,
         bomColorName: data.nameChinese,
         magPath: data.magPath,
       }