xiaodai2022 2 rokov pred
rodič
commit
cc59861320

+ 8 - 2
src/views/stock/goodsRepertory/columns.js

@@ -55,9 +55,15 @@ const options9 = [
 const listCol = [
   {
     prop: "skuCode",
-    label: "编号",
+    label: "商品上线编号",
     fixed: "left",
-    width: "160px",
+    width: "155px",
+  },
+  {
+    prop: "spuCode",
+    label: "商品成本编号",
+    fixed: "left",
+    width: "158px",
   },
   {
     prop: "platform_name",

+ 6 - 2
src/views/stock/goodsRepertory/index.vue

@@ -176,7 +176,8 @@
                   placeholder="关键字类型"
                 >
                   <el-option label="商品名称" value="1" />
-                  <el-option label="商品编号" value="2" />
+                  <el-option label="商品上线编号" value="2" />
+                  <el-option label="商品成本编号" value="8" />
                   <!-- <el-option label="平台编号" value="3" /> -->
                   <!-- <el-option label="供应商编号" value="4" /> -->
                   <el-option label="业务企业编号" value="5" />
@@ -306,6 +307,7 @@ export default {
       loading: false,
       parmValue: {
         good_name: "", //商品名称
+        skucode:"",
         spucode: "", //商品编号
         cat_id: "", //商品分类
         start: "", //开始日期
@@ -373,6 +375,7 @@ export default {
       };
       this.parmValue = {
         good_name: "", //商品名称
+        skucode:"",
         spucode: "", //商品编号
         cat_id: "", //商品分类
         start: "", //开始日期
@@ -578,7 +581,8 @@ export default {
       this.loading = true;
       let model = JSON.parse(JSON.stringify(this.parmValue));
       model.good_name = this.select === "1" ? this.sinput : ""; //商品名称
-      model.spucode = this.select === "2" ? this.sinput : ""; //商品编号
+       model.skucode = this.select === "2" ? this.sinput : ""; //商品编号
+      model.spucode = this.select === "8" ? this.sinput : ""; //商品编号
       // model.platform_code = this.select === "1" ? this.sinput : ""; //平台编码
       // model.supplierNo = this.select === "1" ? this.sinput : ""; //供应商编号
       model.companyNo = this.select === "5" ? this.sinput : ""; //业务企业编号