qymljy 2 vuotta sitten
vanhempi
commit
286bf9b13a
1 muutettua tiedostoa jossa 4 lisäystä ja 4 poistoa
  1. 4 4
      src/HDrpManagement/dispatch/modules/productlist.vue

+ 4 - 4
src/HDrpManagement/dispatch/modules/productlist.vue

@@ -74,7 +74,7 @@
           label="数量"
           width="180">
         <template slot-scope="scope">
-          <el-input-number :controls="true" controls-position='right' :step-strictly="true" v-if="data.STATUS === '新建'" size="mini" v-model="scope.row.qty" :min="0" :max="scope.row.undeliqty" :step="scope.row.orderaddqty" label="输入数量" @change="rowChange(scope.row,scope.$index)"></el-input-number>
+          <el-input-number :controls="true" controls-position='right' :step-strictly="true" v-if="data.STATUS === '新建'" size="mini" v-model="scope.row.qty" :min="1" :max="scope.row.undeliqty" label="输入数量" @change="rowChange(scope.row,scope.$index)"></el-input-number>
           <span v-else>{{scope.row.qty}}</span>
         </template>
       </el-table-column>
@@ -248,7 +248,7 @@ export default {
     },
     rowChange(val,index){
       let that = this
-
+      this.$set(this.tableData,index,val)
       // // 防抖
       if(this.time !== null){
         clearTimeout(this.time);
@@ -262,9 +262,9 @@ export default {
             "remarks":val.remarks
           }]
         },()=>{
-          this.$set(this.tableData,index,val)
+          this.listData()
         })
-      },1000)
+      },500)
     },
     async updateOrder (val,fn) {
       const res  = await this.$api.requested({