feat: #10000 修改
This commit is contained in:
parent
cf3f7fad4d
commit
ffe64ed58b
@ -59,7 +59,6 @@ class GoodsSkusExport implements FromCollection, ShouldAutoSize
|
||||
->when($ids, function ($query, $ids) {
|
||||
return $query->whereIn('id', $ids);
|
||||
})
|
||||
->where('is_combination', 0)
|
||||
->with(['goods' => function ($query) {
|
||||
$query->with(['type:id,name', 'brand:id,name'])
|
||||
->orderBy('type_id')
|
||||
|
||||
@ -52,7 +52,7 @@ class GoodsSkusController extends Controller
|
||||
$query->where('day', $day);
|
||||
}])
|
||||
->where('is_combination', 0)
|
||||
->orderByDesc('stock')
|
||||
->orderBy('updated_at', 'desc')
|
||||
->paginate($request->get('per_page'));
|
||||
$fields = implode(',', [
|
||||
'shop_id',
|
||||
|
||||
@ -41,7 +41,7 @@ class StockUpdateListener
|
||||
->select(['goods_id', 'sku_id', 'external_sku_id'])
|
||||
->where('shop_id', $shop->id)
|
||||
->where('is_sync', 1)
|
||||
->where('external_sku_id', $event->goodsSku->goods['goods_code'] . '_' . $event->goodsSku->sku_code)
|
||||
->where('external_sku_id', $event->goodsSku->external_sku_id)
|
||||
->get();
|
||||
if ($event->isBatch) {
|
||||
BusinessFactory::init()->make($shop['plat_id'])->setShopWithId($shop['id'])->batchIncrQuantity($businessGoodsSkus->toArray(), $num, false);
|
||||
|
||||
4
resources/frontend/vue.config.js
vendored
4
resources/frontend/vue.config.js
vendored
@ -11,8 +11,8 @@ module.exports = {
|
||||
proxy: {
|
||||
// 配置代理
|
||||
"/api": {
|
||||
target: "http://192.168.247.186:81",
|
||||
// target: "http://erp.chutang66.com",
|
||||
// target: "http://192.168.247.186:81",
|
||||
target: "http://erp.chutang66.com",
|
||||
changeOrigin: true, // 开启代理
|
||||
pathRewrite: {
|
||||
// 重命名
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user