|
|
@@ -3765,10 +3765,10 @@ define(['app/app', 'jquery-uploadify'], function(app) {
|
|
|
$scope.dateArea = 'formMe';
|
|
|
var _item = null
|
|
|
$scope.editProductUpOff = function(commodity, index) {
|
|
|
- // if (commodity.erpReserve === '' || commodity.erpReserve === 0 || !commodity.erpReserve) {
|
|
|
- // toaster.pop('warning','提示','当前物料库存为0,请先入库')
|
|
|
- // return;
|
|
|
- // }
|
|
|
+ if (commodity.erpReserve === '' || commodity.erpReserve === 0 || !commodity.erpReserve) {
|
|
|
+ toaster.pop('warning','提示','当前物料库存为0,请先入库')
|
|
|
+ return;
|
|
|
+ }
|
|
|
if (commodity.minPackQty === 0 || commodity.minPackQty === '' || !commodity.minPackQty) {
|
|
|
toaster.pop('warning','提示','请先编辑物料,最小包装数选项')
|
|
|
return;
|