Browse Source

添加商品编号

pangqijun 1 year ago
parent
commit
a64da1deba
1 changed files with 9 additions and 8 deletions
  1. 9 8
      src/views/mall/goodsinfo.vue

+ 9 - 8
src/views/mall/goodsinfo.vue

@@ -118,15 +118,16 @@
             {
               label: "商品编号",
               search: true,
-              prop: "id",
+              prop: "goodsNo",
               overHidden: true,
-              addDisplay: false,
-              editDisplay: false,
-              editDisabled: true,
-              width: 160
+              rules: [{
+                required: true,
+                message: "请输入商品编号",
+                trigger: "blur"
+              }]
             },
             {
-              label: "商品封面",
+              label: "缩略图",
               width: 80,
               prop: "goodsCover",
               addDisplay: false,
@@ -397,7 +398,7 @@
               editDisabled: false,
             },
             {
-              label: '商品封面',
+              label: '商品缩略图',
               prop: 'uploadCover',
               type: 'upload',
               listType: 'picture-img',
@@ -414,7 +415,7 @@
               action: "/api/blade-resource/oss/endpoint/put-file-attach"
             },
             {
-              label: '商品轮播图',
+              label: '商品图',
               prop: 'slideshowList',
               type: 'upload',
               dataType: 'array',