|
|
@@ -6967,9 +6967,37 @@ class Whlabel extends Start_Controller
|
|
|
'addtime'=>time()
|
|
|
]);
|
|
|
if ($j == $num) {
|
|
|
+ $this->whlabelscanlog->insert([
|
|
|
+ 'shop'=>$rk['shop'],
|
|
|
+ 'type'=>1,
|
|
|
+ 'purchase'=>$rk['purchase'],
|
|
|
+ 'sku'=>$rk['sku'],
|
|
|
+ 'features'=>$rk['features'],
|
|
|
+ 'title'=>$rk['title'],
|
|
|
+ 'label'=>$rk['label'],
|
|
|
+ 'warehouse'=>$rk['warehouse'],
|
|
|
+ 'wlid'=>$rk['id'],
|
|
|
+ 'num'=>$num,
|
|
|
+ 'addtime'=>time(),
|
|
|
+ 'remark'=>'入库成功'
|
|
|
+ ]);
|
|
|
echo json_encode(array('msg' => '入库成功!', 'success' => true));
|
|
|
exit;
|
|
|
} else {
|
|
|
+ $this->whlabelscanlog->insert([
|
|
|
+ 'shop'=>$rk['shop'],
|
|
|
+ 'type'=>1,
|
|
|
+ 'purchase'=>$rk['purchase'],
|
|
|
+ 'sku'=>$rk['sku'],
|
|
|
+ 'features'=>$rk['features'],
|
|
|
+ 'title'=>$rk['title'],
|
|
|
+ 'label'=>$rk['label'],
|
|
|
+ 'warehouse'=>$rk['warehouse'],
|
|
|
+ 'wlid'=>$rk['id'],
|
|
|
+ 'num'=>$num,
|
|
|
+ 'addtime'=>time(),
|
|
|
+ 'remark'=>'未成功入库数量:' . $num - $j . ',请补入'
|
|
|
+ ]);
|
|
|
echo json_encode(array('msg' => '未成功入库数量:' . $num - $j . ',请补入', 'c' => 0, 'success' => false));
|
|
|
exit;
|
|
|
}
|
|
|
@@ -7192,23 +7220,39 @@ class Whlabel extends Start_Controller
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- $this->whlabelscanlog->insert([
|
|
|
- 'shop'=>$label['shop'],
|
|
|
- 'type'=>2,
|
|
|
- 'purchase'=>$label['purchase'],
|
|
|
- 'sku'=>$label['sku'],
|
|
|
- 'features'=>$label['features'],
|
|
|
- 'title'=>$label['title'],
|
|
|
- 'label'=>$label['label'],
|
|
|
- 'warehouse'=>$label['warehouse'],
|
|
|
- 'wlid'=>$label['id'],
|
|
|
- 'num'=>$num,
|
|
|
- 'addtime'=>time()
|
|
|
- ]);
|
|
|
+
|
|
|
if ($j == $num) {
|
|
|
+ $this->whlabelscanlog->insert([
|
|
|
+ 'shop'=>$label['shop'],
|
|
|
+ 'type'=>2,
|
|
|
+ 'purchase'=>$label['purchase'],
|
|
|
+ 'sku'=>$label['sku'],
|
|
|
+ 'features'=>$label['features'],
|
|
|
+ 'title'=>$label['title'],
|
|
|
+ 'label'=>$label['label'],
|
|
|
+ 'warehouse'=>$label['warehouse'],
|
|
|
+ 'wlid'=>$label['id'],
|
|
|
+ 'num'=>$num,
|
|
|
+ 'addtime'=>time(),
|
|
|
+ 'remark'=>'出库成功!'
|
|
|
+ ]);
|
|
|
echo json_encode(array('msg' => '出库成功!', 'success' => true));
|
|
|
exit;
|
|
|
} else {
|
|
|
+ $this->whlabelscanlog->insert([
|
|
|
+ 'shop'=>$label['shop'],
|
|
|
+ 'type'=>2,
|
|
|
+ 'purchase'=>$label['purchase'],
|
|
|
+ 'sku'=>$label['sku'],
|
|
|
+ 'features'=>$label['features'],
|
|
|
+ 'title'=>$label['title'],
|
|
|
+ 'label'=>$label['label'],
|
|
|
+ 'warehouse'=>$label['warehouse'],
|
|
|
+ 'wlid'=>$label['id'],
|
|
|
+ 'num'=>$num,
|
|
|
+ 'addtime'=>time(),
|
|
|
+ 'remark'=>'未成功出库数量:' . $num - $j . ',请补入'
|
|
|
+ ]);
|
|
|
echo json_encode(array('msg' => '未成功出库数量:' . $num - $j . ',请补入', 'c' => 0, 'success' => false));
|
|
|
exit;
|
|
|
}
|