Browse Source

feat:字段添加

snow 1 year ago
parent
commit
aa30419f8e

+ 6 - 0
src/views/goodStore/goodsCost/columns.js

@@ -71,6 +71,12 @@ const listCol = [
     prop: 'brand_name',
     label: '品牌'
   },
+  {
+    prop: "create_source",
+    label: "来源",
+    _slot_: "create_source",
+    width: '110px'
+  },
   {
     prop: 'is_stock',
     label: '库存类型',

+ 1 - 1
src/views/goodStore/goodsCost/components/baseForm.vue

@@ -100,7 +100,7 @@
                 <company-sort
                   :value="ruleForm.cat_id"
                   :placeholder="'商品分类'"
-                  :disabled="type !== 'add'"
+                  :disabled="!(type === 'add' ||  sitem.status === '7')"
                   :size="'mini'"
                   :names="cat_id_name"
                   :isDetail="type !== 'add'"

+ 8 - 2
src/views/goodStore/goodsCost/index.vue

@@ -223,6 +223,12 @@
           </el-row>
         </div>
       </template>
+      
+      <template #create_source="{ scope }">
+        <el-tag size="mini">
+          {{ scope.row.create_source === "1" ? "咨询成交商品" : "手动创建商品" }}
+        </el-tag>
+      </template>
 
       <template #spuCode="{ scope }">
         <div style="display:flex;align-items:center">
@@ -377,10 +383,10 @@
         </el-tooltip>
         <el-tooltip
           v-if="
-            powers.some((i) => i == '010') &&
+            (powers.some((i) => i == '010') &&
             !(scope.row.status + '' === '7' || scope.row.status + '' === '8') &&
             !isSupertube &&
-            String(scope.row.createrid) !== '0'
+            String(scope.row.createrid) !== '0') && scope.row.create_source !== '1'
           "
           effect="dark"
           content="复制商品"