zhangqiOMG 2 år sedan
förälder
incheckning
e076ff2bb4

+ 1 - 1
src/HDrpManagement/ProductMag/detail/index.vue

@@ -99,7 +99,7 @@ export default {
       const res = await this.$api.requested({
         "id": 20220923155302,
         "content": {
-          "itemid": id
+          "itemid": this.$route.query.id
         },
       })
       this.mainData = res.data

+ 1 - 1
src/HDrpManagement/ProductMag/modules/add.vue

@@ -362,7 +362,7 @@ export default {
         "remarks": "", //可选
         "barcode": "", //可选
         "skucontrol": 0, //可选
-        "batchcontrol": 1, //可选
+        "batchcontrol": 0, //可选
         "grossweight": '', //可选
         "weight": '', //可选
         "height": '', //可选

+ 3 - 5
src/SDrpManagement/ProductGroup/modules/GroupDetail/groupDetail.vue

@@ -31,7 +31,7 @@
       </div>
       <div class="flex-align-center" style="margin-bottom:30px">
         <p>数量:&emsp;</p>
-        <el-input-number v-model="count" :min="selectProduct.orderminqty" :step="selectProduct.orderaddqty" size="small" label="描述文字"></el-input-number>
+        <el-input-number v-model="count" :min="selectProduct.orderminqty" step-strictly :step="selectProduct.orderaddqty" size="small" label="描述文字"></el-input-number>
         <span style="color:#888;font-size: 14px;margin-left: 10px">起订量:{{selectProduct.orderminqty}}</span>
         <span style="color:#888;font-size: 14px;margin-left: 10px">增量:{{selectProduct.orderaddqty}}</span>
         <span style="color:#888;font-size: 14px;margin-left: 10px">库存:
@@ -153,14 +153,12 @@ export default {
           "sa_itemgroupid": this.$route.query.id
         }
       })
-      console.log(res.data.itemextend)
-
       this.detail = res.data
       this.selectProduct = this.detail ? this.detail[0] : ''
       this.actImage = this.detail ? this.detail[0].attinfos[0] : {}
       this.tradefield  = this.detail ? this.detail[0].tradefield : []
       this.actTradefield = this.detail[0].tradefield[0].tradefield
-
+       this.count = this.detail ? this.detail[0].orderminqty : []
     },
     countChange (num) {
       this.count = num
@@ -170,7 +168,7 @@ export default {
       this.selectProduct = data
       this.actImage = data.attinfos[0]
       this.actTradefield = data.tradefield[0].tradefield
-      this.count = 1
+      this.count = data.orderminqty
     },
     
     async addCart () {