Ver código fonte

518合并代码

XMLWAN 2 anos atrás
pai
commit
980abfe78c

+ 21 - 22
src/xt_pages/stock/drugs/drugStockOutOrderAdd.vue Ver arquivo

152
               >
152
               >
153
                 <div style="display:flex;">
153
                 <div style="display:flex;">
154
                   <el-input
154
                   <el-input
155
-                    @input="getSupplyCount(scope.row.count,scope.row.max_unit,scope.row.min_number,scope.$index,scope.row.total_count,scope.row.max_unit_fisrt,scope.row.min_unit_fisrt)"
156
                     oninput="value=value.replace(/\D|^0/g,'')"
155
                     oninput="value=value.replace(/\D|^0/g,'')"
157
                     style="width:80px"
156
                     style="width:80px"
158
                     placeholder="请输入出库数量"
157
                     placeholder="请输入出库数量"
843
           }
842
           }
844
         }
843
         }
845
 
844
 
846
-        var count_total = 0
847
-        if(val.max_unit == val.max_unit_fisrt){
848
-          count_total = val.count * val.min_number
849
-        }
845
+        // var count_total = 0
846
+        // if(val.max_unit == val.max_unit_fisrt){
847
+        //   count_total = val.count * val.min_number
848
+        // }
850
 
849
 
851
-        if(val.max_unit == val.min_unit_fisrt){
852
-          count_total = val.count 
853
-        }
854
-        if(count_total > val.total_count){
855
-          this.$message.error("出库数量不能大于剩余库存")
856
-          for(let i=0;i<this.recordInfo.recordData.length;i++){
857
-            if(index == i){
858
-                this.recordInfo.recordData[i].count = ""
859
-            }
860
-          }
861
-        }else{
862
-          for(let i=0;i<this.recordInfo.recordData.length;i++){
863
-            if(index == i){
864
-                this.recordInfo.recordData[i].count = val.count
865
-            }
866
-          } 
867
-        }
850
+        // if(val.max_unit == val.min_unit_fisrt){
851
+        //   count_total = val.count 
852
+        // }
853
+        // if(count_total > val.total_count){
854
+        //   this.$message.error("出库数量不能大于剩余库存")
855
+        //   for(let i=0;i<this.recordInfo.recordData.length;i++){
856
+        //     if(index == i){
857
+        //         this.recordInfo.recordData[i].count = ""
858
+        //     }
859
+        //   }
860
+        // }else{
861
+        //   for(let i=0;i<this.recordInfo.recordData.length;i++){
862
+        //     if(index == i){
863
+        //         this.recordInfo.recordData[i].count = val.count
864
+        //     }
865
+        //   } 
866
+        // }
868
      
867
      
869
 
868
 
870
        
869
        

+ 0 - 1
src/xt_pages/stock/drugs/drugStockOutOrderEdit.vue Ver arquivo

159
               >
159
               >
160
                 <div style="display:flex;">
160
                 <div style="display:flex;">
161
                   <el-input
161
                   <el-input
162
-                   @input="getSupplyCount(scope.row.count,scope.row.max_unit,scope.row.min_number,scope.$index,scope.row.total_count,scope.row.max_unit_fisrt,scope.row.min_unit_fisrt)"
163
                    oninput="value=value.replace(/\D|^0/g,'')"
162
                    oninput="value=value.replace(/\D|^0/g,'')"
164
                    style="width:100px"
163
                    style="width:100px"
165
                    :disabled="drug_show"
164
                    :disabled="drug_show"

+ 0 - 1
src/xt_pages/stock/stockOutOrderAdd.vue Ver arquivo

158
                 style="padding-top: 17px"
158
                 style="padding-top: 17px"
159
               >
159
               >
160
                 <el-input
160
                 <el-input
161
-                  @input="getSupplyCount(scope.row.count,scope.row.stock_count,scope.$index)"
162
                  oninput="value=value.replace(/\D|^0/g,'')"
161
                  oninput="value=value.replace(/\D|^0/g,'')"
163
                   placeholder="请输入出库数量"
162
                   placeholder="请输入出库数量"
164
                   type="number"
163
                   type="number"

+ 1 - 1
src/xt_pages/stock/stockOutOrderEdit.vue Ver arquivo

187
             <template slot-scope="scope">
187
             <template slot-scope="scope">
188
               <el-form-item :prop="'recordData.' + scope.$index + '.count'" :rules='tableRules.count'
188
               <el-form-item :prop="'recordData.' + scope.$index + '.count'" :rules='tableRules.count'
189
                             style="padding-top: 17px">
189
                             style="padding-top: 17px">
190
-                <el-input type="number" v-model="scope.row.count"  :disabled="stockShow"   oninput="value=value.replace(/\D|^0/g,'')"  @input="getSupplyCount(scope.row.count,scope.row.stock_count,scope.$index)"></el-input>
190
+                <el-input type="number" v-model="scope.row.count"  :disabled="stockShow"   oninput="value=value.replace(/\D|^0/g,'')"></el-input>
191
               </el-form-item>
191
               </el-form-item>
192
             </template>
192
             </template>
193
           </el-table-column>
193
           </el-table-column>