From 968e5137a89e3b865e319eacfb46d67559852fed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E5=BB=BA=E7=82=8A?= <924182103@qq.com> Date: Thu, 26 Dec 2024 14:32:02 +0800 Subject: [PATCH 1/8] =?UTF-8?q?=E4=BA=AC=E4=B8=9C=E6=89=93=E5=8D=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Business/BusinessOrderController.php | 4 +- .../Controllers/Shop/ShopSendsController.php | 67 + app/Models/ShopSender.php | 5 + .../WayBill/JingDong/JingDongService.php | 211 ++ .../WayBill/JingDong/WayBillService.php | 301 +++ composer.json | 3 +- extend/lop-opensdk-php/.gitignore | 12 + extend/lop-opensdk-php/README.md | 0 extend/lop-opensdk-php/composer.json | 18 + extend/lop-opensdk-php/composer.lock | 2284 +++++++++++++++++ extend/lop-opensdk-php/src/Client.php | 14 + extend/lop-opensdk-php/src/Executor.php | 14 + .../lop-opensdk-php/src/ExecutorFactory.php | 13 + extend/lop-opensdk-php/src/Filter.php | 15 + extend/lop-opensdk-php/src/FilterChain.php | 14 + .../src/Filters/ErrorResponseFilter.php | 24 + .../lop-opensdk-php/src/Filters/IsvFilter.php | 66 + .../src/Filters/LoggerFilter.php | 59 + .../src/Filters/PartnerFilter.php | 58 + extend/lop-opensdk-php/src/Filters/Utils.php | 36 + extend/lop-opensdk-php/src/Options.php | 40 + extend/lop-opensdk-php/src/Request.php | 137 + extend/lop-opensdk-php/src/Response.php | 94 + extend/lop-opensdk-php/src/SdkException.php | 27 + .../src/Support/DefaultClient.php | 79 + .../src/Support/DefaultExecutor.php | 56 + .../src/Support/DefaultExecutorFactory.php | 14 + .../src/Support/DefaultFilterChain.php | 51 + .../src/Support/GenericRequest.php | 184 ++ .../src/Support/GenericResponse.php | 129 + extend/lop-opensdk-php/src/Version.php | 8 + routes/api.php | 2 + 32 files changed, 4036 insertions(+), 3 deletions(-) create mode 100644 app/Http/Controllers/Shop/ShopSendsController.php create mode 100644 app/Services/WayBill/JingDong/JingDongService.php create mode 100644 app/Services/WayBill/JingDong/WayBillService.php create mode 100644 extend/lop-opensdk-php/.gitignore create mode 100644 extend/lop-opensdk-php/README.md create mode 100644 extend/lop-opensdk-php/composer.json create mode 100644 extend/lop-opensdk-php/composer.lock create mode 100644 extend/lop-opensdk-php/src/Client.php create mode 100644 extend/lop-opensdk-php/src/Executor.php create mode 100644 extend/lop-opensdk-php/src/ExecutorFactory.php create mode 100644 extend/lop-opensdk-php/src/Filter.php create mode 100644 extend/lop-opensdk-php/src/FilterChain.php create mode 100644 extend/lop-opensdk-php/src/Filters/ErrorResponseFilter.php create mode 100644 extend/lop-opensdk-php/src/Filters/IsvFilter.php create mode 100644 extend/lop-opensdk-php/src/Filters/LoggerFilter.php create mode 100644 extend/lop-opensdk-php/src/Filters/PartnerFilter.php create mode 100644 extend/lop-opensdk-php/src/Filters/Utils.php create mode 100644 extend/lop-opensdk-php/src/Options.php create mode 100644 extend/lop-opensdk-php/src/Request.php create mode 100644 extend/lop-opensdk-php/src/Response.php create mode 100644 extend/lop-opensdk-php/src/SdkException.php create mode 100644 extend/lop-opensdk-php/src/Support/DefaultClient.php create mode 100644 extend/lop-opensdk-php/src/Support/DefaultExecutor.php create mode 100644 extend/lop-opensdk-php/src/Support/DefaultExecutorFactory.php create mode 100644 extend/lop-opensdk-php/src/Support/DefaultFilterChain.php create mode 100644 extend/lop-opensdk-php/src/Support/GenericRequest.php create mode 100644 extend/lop-opensdk-php/src/Support/GenericResponse.php create mode 100644 extend/lop-opensdk-php/src/Version.php diff --git a/app/Http/Controllers/Business/BusinessOrderController.php b/app/Http/Controllers/Business/BusinessOrderController.php index 2545f55..65ea4c4 100644 --- a/app/Http/Controllers/Business/BusinessOrderController.php +++ b/app/Http/Controllers/Business/BusinessOrderController.php @@ -9,7 +9,7 @@ use App\Models\BusinessOrder; use App\Models\BusinessOrderItem; use App\Models\GoodsSku; use App\Models\Shop; -use App\Services\Ship\WayBillService; +use App\Services\WayBill\JingDong\WayBillService; use App\Utils\DateTimeUtils; use Carbon\Carbon; use Illuminate\Http\Request; @@ -188,7 +188,7 @@ class BusinessOrderController extends Controller $waybill = new WayBillService(); $waybill->setOrders($businessOrders); - $contents = $waybill->getContents(); + $contents = $waybill->getWayBillContents(); // 待打印数据 [$documents, $orderIds] = $waybill->getDocumentsAndOrderIds($contents); diff --git a/app/Http/Controllers/Shop/ShopSendsController.php b/app/Http/Controllers/Shop/ShopSendsController.php new file mode 100644 index 0000000..e038ff9 --- /dev/null +++ b/app/Http/Controllers/Shop/ShopSendsController.php @@ -0,0 +1,67 @@ +filter()->paginate($request->get('per_page')); + + return JsonResource::collection($shopSender); + } + + public function store(Request $request) + { + $params = $request->validate([ + 'id' => 'sometimes', + 'shop_id' => 'required|int', + 'province' => 'required', + 'city' => 'required', + 'district' => 'required', + 'detail' => 'required', + 'name' => 'required', + 'mobile' => 'required', + 'sort' => 'sometimes', + 'wp_code' => 'sometimes', + ], [ + 'shop_id.required' => '请选择店铺', + 'province.required' => '请选择省份', + 'city.required' => '请选择城市', + 'district.required' => '请选择地区', + 'detail.required' => '请填写详细地址', + ]); + $params['wp_code'] = $params['wp_code'] ?? 'jd'; + $params['country'] = $params['country'] ?? '中国'; + if (empty($params['id'])) { + $shopSender = new ShopSender(); + $shopSender->fill($params); + $shopSender->save(); + } else { + ShopSender::query()->where('id', $params['id'])->update($params); + } + + return response($this->res, $this->res['httpCode']); + } + + +} diff --git a/app/Models/ShopSender.php b/app/Models/ShopSender.php index 1eec811..da9826a 100644 --- a/app/Models/ShopSender.php +++ b/app/Models/ShopSender.php @@ -7,4 +7,9 @@ use Illuminate\Database\Eloquent\Model; class ShopSender extends Model { protected $guarded = []; + + //查询字段 + public $fieldSearchable = [ + 'shop_id', + ]; } diff --git a/app/Services/WayBill/JingDong/JingDongService.php b/app/Services/WayBill/JingDong/JingDongService.php new file mode 100644 index 0000000..a9a64f9 --- /dev/null +++ b/app/Services/WayBill/JingDong/JingDongService.php @@ -0,0 +1,211 @@ + '预约信息有误', + 2 => '快递员无法取件', + 3 => '上门太慢', + 4 => '运费太贵', + 7 => '联系不上快递员', + 8 => '快递员要求取消', + 11 => '其他(如疫情管控,无法寄 件)', + 9 => '预约信息有误', + ]; + + public function __construct() + { + $this->baseUrl = "https://api.jdl.com"; + $this->appKey = "5ee218f6619e438db8755ee560c3eaa7"; + $this->appSecret = "7ffb176f75014ebbb37061f051024bf3"; + $this->accessToken = "4e411a1d178147cdb58b5579a0df378d";//每年都会过期 https://oauth.jdl.com/oauth/authorize?client_id=YOUR_APP_KEY&redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=code + //生产环境域名:https://oauth.jdl.com 预发环境域名:https://uat-oauth.jdl.com + $this->domain = "FreshMedicineDelivery";//对接方案的编码 生鲜快递 + $this->customerCode = "028K4188368";//月结编码 + /*if (!EnvUtils::checkIsProduce()) { + //沙箱环境 + $this->baseUrl = "https://test-api.jdl.com"; + $this->appKey = "62d07644754843cc882fca7c01476c4f"; + $this->appSecret = "0c2c8b6b7c10481ea639f6daa09ac02e"; + $this->accessToken = "78c246c0ab564e67add6296a9eaf04a1";;//每年都会过期 https://oauth.jdl.com/oauth/authorize?client_id=YOUR_APP_KEY&redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=code + $this->customerCode = "27K1234912";//月结编码 + }*/ + + } + + public function request($body, $path) + { + // 生产环境: https://api.jdl.com + $client = new DefaultClient($this->baseUrl); + // 系统参数,应用的app_ley和app_secret,可从【控制台-应用管理-概览】中查看;access_token是用户授权时获取的令牌,用户授权相关说明请查看https://cloud.jdl.com/#/devSupport/53392 + $isvFilter = new IsvFilter($this->appKey, $this->appSecret, $this->accessToken); + $errorResponseFilter = new ErrorResponseFilter(); + + $request = new GenericRequest(); + $request->setDomain($this->domain);//对接方案的编码,应用订购对接方案后可在订阅记录查看 + $request->setPath($path);//api的path,可在API文档查看 + $request->setMethod("POST");//只支持POST + // 序列化后的JSON字符串 + $request->setBody(json_encode([$body])); + + // 为请求添加ISV模式过滤器,自动根据算法计算开放平台鉴权及签名信息 + $request->addFilter($isvFilter); + // 为请求添加错误响应解析过滤器,如果不添加需要手动解析错误响应 + $request->addFilter($errorResponseFilter); + + $options = new Options(); + + $options->setAlgorithm(Options::MD5_SALT); + Log::info("京东请求body:{$path}", [$body]); + $response = $client->execute($request, $options); + $response = json_decode($response->getBody(), true); + Log::info("京东返回请求response", [$response]); + if (!isset($response['code']) || ($response['code'] != 0 && $response['code'] != 1000)) { + throw new \Exception($response['msg'] ?? "code异常"); + } + return $response; + } + + + private function buildCargoes($extend) + { + return [ + [ + "quantity" => $extend["quantity"] ?? 1, + "goodsName" => "鲜花", + "volume" => ($extend['volume'] ?? 0) > 0 ? $extend['volume'] : 100, + "weight" => $extend['weight'] ?? 1, + "packageQty" => 1 + ] + ]; + } + + public function buildContact($params) + { + return [ + 'senderName' => $params['name'] ?? '', + 'senderPhone' => $params['mobile'] ?? '', + 'senderAddress' => substr($params['province_name'] . $params['city_name'] . $params['area_name'] . $params['address_detail'], 0, 350), + ]; + } + + public function createOrder(Waybill $pickup) + { + $path = "/freshmedicinedelivery/delivery/create/order/v1"; + $pickupData = $pickup->toArray(); + $body = [ + "orderId" => $pickupData['object_id'], + "senderContactRequest" => [ + 'senderName' => $pickupData['sender_name'] ?? '', + 'senderPhone' => $pickupData['sender_mobile'] ?? '', + 'senderAddress' => substr($pickupData['sender_province'] . $pickupData['sender_city'] + . $pickupData['sender_district'] . $pickupData['sender_detail'], 0, 350) + ], + "customerCode" => $this->customerCode, + "remark" => $pickup['note'] ?? '', + "salePlatform" => '0010001',//京东 + "cargoesRequest" => $this->buildCargoes($pickup), + "receiverContactRequest" => [ + 'receiverName' => $pickupData['recipient_name'] ?? '', + 'receiverPhone' => $pickupData['recipient_mobile'] ?? '', + 'receiverAddress' => substr($pickupData['recipient_province'] . $pickupData['recipient_city'] . $pickupData['recipient_district'] . $pickupData['recipient_detail'], 0, 350) + ], + "channelOrderId" => $pickupData['order_sn'], + "promiseTimeType" => 26,//22:医药冷链 26:冷链专送,29医药专送 + "goodsType" => 7,//1:普通,2:生鲜常温,5:鲜活,6:控温,7:冷藏,8:冷冻,9:深冷;21:医药冷藏,23:医药控温,24:医药常温,25:医药冷冻,27:医药深冷 + //"pickUpStartTime" => Carbon::today()->startOfDay()->addHours(19)->toDateTimeString(), + //"pickUpEndTime" => Carbon::today()->startOfDay()->addHours(21)->toDateTimeString(), + ]; + dd($body); + $response = $this->request($body, $path); + return $response['data']; + + } + + + public function cancelOrder(Waybill $pickup) + { + $path = "/freshmedicinedelivery/delivery/cancel/waybill/v1"; + $pickupData = $pickup->toArray(); + $body = [ + "waybillNo" => $pickupData['waybill_code'], + "customerCode" => $this->customerCode, + "interceptReason" => "订单信息有误", + ]; + $response = $this->request($body, $path); + + return $response['data']; + } + + public function queryOrder(Waybill $pickup) + { + $path = "/ecap/v1/orders/details/query"; + $pickupData = $pickup->toArray(); + $body = [ + "waybillCode" => $pickupData['ship_sn'] ?? '', + "orderCode" => $pickupData['out_order_sn'] ?? "", + "customerCode" => $this->customerCode, + "orderOrigin" => 2, + ]; + $response = $this->request($body, $path); + + return $response['data']; + } + + public function subscribe(Waybill $pickup) + { + $path = "/jd/tracking/subscribe"; + $pickupData = $pickup->toArray(); + $body = [ + "referenceNumber" => $pickupData['ship_sn'] ?? '', + "referenceType" => 20000, + "customerCode" => $this->customerCode, + ]; + $this->domain = "Tracking_JD";//对接方案的编码 + $response = $this->request($body, $path); + + return $response['data']; + } + + public function queryFee(Waybill $pickup) + { + $path = "/ecap/v1/orders/actualfee/query"; + $pickupData = $pickup->toArray(); + $body = [ + "waybillCode" => $pickupData['ship_sn'] ?? '', + "orderCode" => $pickupData['out_order_sn'] ?? "", + "customerCode" => $this->customerCode, + "orderOrigin" => 2, + ]; + $response = $this->request($body, $path); + + return $response['data']; + } + +} + diff --git a/app/Services/WayBill/JingDong/WayBillService.php b/app/Services/WayBill/JingDong/WayBillService.php new file mode 100644 index 0000000..2b56101 --- /dev/null +++ b/app/Services/WayBill/JingDong/WayBillService.php @@ -0,0 +1,301 @@ +adminUser = auth('api')->user(); + foreach ($this->orders as $shopId => $order) { + // 订单取消的情况暂不处理 + $shopSend = $this->getShopSend($shopId); + foreach ($order as $item) { + [$sender, $orderInfo, $senderConfig] = $this->prepareRequest($item, $shopSend); + $waybill = $this->saveWayBill($item, $shopSend, $senderConfig); + if (empty($waybill->id)) { + $jingDongService = new JingDongService(); + $resp = $jingDongService->createOrder($waybill); + + if (isset($resp['pdd_waybill_get_response'])) { + $data = $resp['pdd_waybill_get_response']['modules'][0]; + $printData = json_decode($data['print_data'], true); + $waybill->request_id = $resp['pdd_waybill_get_response']['request_id']; + $waybill->encryptedData = $printData['encryptedData']; + $waybill->signature = $printData['signature']; + $waybill->templateUrl = $printData['templateUrl']; + $waybill->ver = $printData['ver']; + $waybill->waybill_code = $data['waybill_code']; + $waybill->save(); + // 返回待打印内容 + $contents[$waybill->id] = [ + 'addData' => [ + 'sender' => $sender, + ], + 'encryptedData' => $printData['encryptedData'], + 'signature' => $printData['signature'], + 'templateUrl' => env('APP_URL') . '/ktt/' . $this->sfOneTemplate, // 电子面单模板 + 'ver' => $printData['ver'], + 'userid' => $waybill->user_id, + 'items' => $item['items'], + 'documentID' => $waybill->id, + 'order_id' => $item['id'], + 'participate_no' => $waybill->participate_no, + 'note' => $waybill->note, + ]; + event(new CreateLogisticEvent($shopShip->shop_id, $waybill->order_sn, $data['waybill_code'])); + } + } else { + $contents[$waybill->id] = [ + 'addData' => [ + 'sender' => $sender, + ], + 'encryptedData' => $waybill->encryptedData, + 'signature' => $waybill->signature, + 'templateUrl' => env('APP_URL') . '/ktt/' . $this->sfOneTemplate, // 电子面单模板 + 'ver' => $waybill->ver, + 'userid' => $waybill->user_id, + 'items' => json_decode($waybill->items, true), + 'documentID' => $waybill->id, + 'order_id' => $item['id'], + 'participate_no' => $waybill->participate_no, + 'note' => $waybill->note, + ]; + } + } + } + + return $contents; + } + + public function getDocumentsAndOrderIds($contents) + { + // 打印单,根据商品排序 + $items = []; + foreach ($contents as $docId => $content) { + foreach ($content['items'] as $item) { + if ($item['is_single']) { + $items[$item['external_sku_id']][] = $docId; + } + } + } + ksort($items); + $documents = $orderIds = $hasIds = []; + foreach ($items as $docIds) { + $docIds = array_unique($docIds); + $docIds = array_diff($docIds, $hasIds); + $hasIds = array_merge($hasIds, $docIds); + foreach ($docIds as $docId) { + $orderIds[] = $contents[$docId]['order_id']; + $documents[] = $contents[$docId]; + } + } + + return [$documents, $orderIds]; + } + + private function saveWayBill($order, $shopShip, $senderConfig) + { + $waybill = Waybill::query()->firstOrNew( + ['order_sn' => $order['order_sn']] + ); + + $waybill->shop_id = $order->shop_id; + $waybill->object_id = $this->objectId; + + $waybill->sender_country = $senderConfig['country']; + $waybill->sender_province = $senderConfig['province']; + $waybill->sender_city = $senderConfig['city']; + $waybill->sender_district = $senderConfig['district']; + $waybill->sender_detail = $senderConfig['detail']; + $waybill->sender_name = $senderConfig['name']; + $waybill->sender_mobile = $senderConfig['mobile']; + + $waybill->recipient_province = $order['recipient_province']; + $waybill->recipient_city = $order['recipient_city']; + $waybill->recipient_district = $order['recipient_district']; + $waybill->recipient_detail = $order['recipient_detail']; + $waybill->recipient_name = $order['recipient_name']; + $waybill->recipient_mobile = $order['recipient_mobile']; + + $waybill->user_id = $this->adminUser->id ?? 0; + $waybill->wp_code = $senderConfig['wp_code']; + $waybill->order_sn = $order['order_sn']; + $waybill->order_id = $order['id']; + $waybill->participate_no = $order['participate_no']; + $waybill->note = $order['note']; + $waybill->items = json_encode($order['items'], 256); + + return $waybill; + } + + private function getTimedDelivery($order) + { + $this->timedDeliveryCode = Waybill::$BUSINESS_EXPRESS_CODE; + $address = [ + '辽宁省' => [], + '吉林省' => [], + '黑龙江省' => [], + '甘肃省' => [], + '海南省' => [], + '宁夏回族自治区' => [ + '银川市', '石嘴山市', '吴忠市', '固原市' + ], + '青海省' => [ + '西宁市', '海东市', '海北藏族自治州', '黄南藏族自治州', '海南藏族自治州', '玉树藏族自治州' + ], + ]; + if (isset($address[$order['recipient_province']])) { + if (empty($address[$order['recipient_province']])) { + $this->timedDeliveryCode = Waybill::$AIR_FREIGHT_CODE; + } + if ($address[$order['recipient_province']] && in_array($order['recipient_city'], $address[$order['recipient_province']], true)) { + $this->timedDeliveryCode = Waybill::$AIR_FREIGHT_CODE; + } + } + } + + private function prepareRequest($order, $shopSend) + { + $this->setObjectId(); + + $items = []; + foreach ($order['items'] as $item) { + $items[] = [ + 'name' => $item['name'], + 'count' => $item['count'], + ]; + } + + if (empty($shopSend)) { + abort(404, '发货人信息未匹配'); + } + $senderConfig = $shopSend; + $sender = [ + 'address' => [ + 'city' => $senderConfig['city'], + 'country' => $senderConfig['country'], + 'detail' => $senderConfig['detail'], + 'district' => $senderConfig['district'], + 'province' => $senderConfig['province'], + ], + 'name' => $senderConfig['name'], + 'mobile' => $senderConfig['mobile'], + ]; + + $orderInfo = [ + 'object_id' => $this->objectId, + 'order_info' => [ + 'order_channels_type' => 'PDD', + 'trade_order_list' => [$order['order_sn']], + ], + 'package_info' => [ + 'items' => $items, + ], + 'recipient' => [ + 'address' => [ + 'city' => $order['recipient_city'], + 'detail' => $order['recipient_detail'], + 'district' => $order['recipient_district'], + 'province' => $order['recipient_province'], + ], + 'name' => $order['recipient_name'], + 'mobile' => $order['recipient_mobile'], + ], + 'template_url' => $this->sfOne, + ]; + + return [$sender, $orderInfo, $senderConfig]; + } + + public function setObjectId() + { + $this->objectId = date('YmdHis') . str_pad(mt_rand(1, 9999999), 7, '0', STR_PAD_LEFT); + + return $this; + } + + public function setOrders($orders) + { + $orders = $orders->toArray(); + // 订单拆分组合 + foreach ($orders as $order) { + $info = [ + 'id' => $order['id'], + 'order_sn' => $order['order_sn'], + 'recipient_province' => $order['receiver_address_province'], + 'recipient_city' => $order['receiver_address_city'], + 'recipient_district' => $order['receiver_address_district'], + 'recipient_detail' => $order['receiver_address_detail'], + 'recipient_name' => $order['receiver_name'], + 'recipient_mobile' => $order['receiver_mobile'], + 'participate_no' => $order['is_supplier'] ? $order['participate_no'] : $order['supply_participate_no'], + 'note' => $order['business_note'] ? $order['business_note'] . ',' . $order['buyer_memo'] : $order['buyer_memo'], + 'items' => [] + ]; + foreach ($order['items'] as $item) { + $count = $item['goods_number'] - $item['already_cancel_number']; + $info['items'][] = [ + 'is_single' => true, + 'should_print' => true, + 'name' => $item['goods_name'], + 'count' => $count, + 'external_sku_id' => $item['external_sku_id'], + ]; + + } + $this->orders[$order['shop_id']][] = $info; + } + + return $this; + } + + private function getShopSend($shopId) + { + return ShopSender::query() + ->where('status', 1)->orderBy('sort') + ->first(); + } + + private function getShopShip($shopId) + { + return ShopShip::query() + ->select(['id', 'shop_id', 'access_token', 'owner_id']) + ->where('shop_id', $shopId) + ->with([ + 'senders' => function ($query) { + $query->where('status', 1)->orderBy('sort'); + } + ]) + ->first(); + } +} diff --git a/composer.json b/composer.json index 59875f9..bb6ee3b 100644 --- a/composer.json +++ b/composer.json @@ -39,7 +39,8 @@ }, "autoload": { "psr-4": { - "App\\": "app/" + "App\\": "app/", + "Lop\\LopOpensdkPhp\\" : "extend/lop-opensdk-php/src/" }, "classmap": [ "database/seeds", diff --git a/extend/lop-opensdk-php/.gitignore b/extend/lop-opensdk-php/.gitignore new file mode 100644 index 0000000..72a5a43 --- /dev/null +++ b/extend/lop-opensdk-php/.gitignore @@ -0,0 +1,12 @@ +# Created by https://www.toptal.com/developers/gitignore/api/composer +# Edit at https://www.toptal.com/developers/gitignore?templates=composer + +### Composer ### +composer.phar +/vendor/ + +# Commit your application's lock file https://getcomposer.org/doc/01-basic-usage.md#commit-your-composer-lock-file-to-version-control +# You may choose to ignore a library lock file http://getcomposer.org/doc/02-libraries.md#lock-file +# composer.lock + +# End of https://www.toptal.com/developers/gitignore/api/composer \ No newline at end of file diff --git a/extend/lop-opensdk-php/README.md b/extend/lop-opensdk-php/README.md new file mode 100644 index 0000000..e69de29 diff --git a/extend/lop-opensdk-php/composer.json b/extend/lop-opensdk-php/composer.json new file mode 100644 index 0000000..05e7c5c --- /dev/null +++ b/extend/lop-opensdk-php/composer.json @@ -0,0 +1,18 @@ +{ + "name": "lop/lop-opensdk-php", + "type": "library", + "version": "1.0.0", + "autoload": { + "psr-4": { + "Lop\\LopOpensdkPhp\\": "src/" + } + }, + "require": { + "php": ">=5.6", + "ext-json": "*", + "guzzlehttp/guzzle": "^6.5" + }, + "require-dev": { + "phpunit/phpunit": "^5.7" + } +} diff --git a/extend/lop-opensdk-php/composer.lock b/extend/lop-opensdk-php/composer.lock new file mode 100644 index 0000000..6cf03ab --- /dev/null +++ b/extend/lop-opensdk-php/composer.lock @@ -0,0 +1,2284 @@ +{ + "_readme": [ + "This file locks the dependencies of your project to a known state", + "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", + "This file is @generated automatically" + ], + "content-hash": "fae8fd439dc7c200cc8bd723b0bd3dc3", + "packages": [ + { + "name": "guzzlehttp/guzzle", + "version": "6.5.5", + "source": { + "type": "git", + "url": "https://github.com/guzzle/guzzle.git", + "reference": "9d4290de1cfd701f38099ef7e183b64b4b7b0c5e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/guzzle/guzzle/zipball/9d4290de1cfd701f38099ef7e183b64b4b7b0c5e", + "reference": "9d4290de1cfd701f38099ef7e183b64b4b7b0c5e", + "shasum": "" + }, + "require": { + "ext-json": "*", + "guzzlehttp/promises": "^1.0", + "guzzlehttp/psr7": "^1.6.1", + "php": ">=5.5", + "symfony/polyfill-intl-idn": "^1.17.0" + }, + "require-dev": { + "ext-curl": "*", + "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.4 || ^7.0", + "psr/log": "^1.1" + }, + "suggest": { + "psr/log": "Required for using the Log middleware" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "6.5-dev" + } + }, + "autoload": { + "files": [ + "src/functions_include.php" + ], + "psr-4": { + "GuzzleHttp\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Michael Dowling", + "email": "mtdowling@gmail.com", + "homepage": "https://github.com/mtdowling" + } + ], + "description": "Guzzle is a PHP HTTP client library", + "homepage": "http://guzzlephp.org/", + "keywords": [ + "client", + "curl", + "framework", + "http", + "http client", + "rest", + "web service" + ], + "support": { + "issues": "https://github.com/guzzle/guzzle/issues", + "source": "https://github.com/guzzle/guzzle/tree/6.5" + }, + "time": "2020-06-16T21:01:06+00:00" + }, + { + "name": "guzzlehttp/promises", + "version": "1.5.1", + "source": { + "type": "git", + "url": "https://github.com/guzzle/promises.git", + "reference": "fe752aedc9fd8fcca3fe7ad05d419d32998a06da" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/guzzle/promises/zipball/fe752aedc9fd8fcca3fe7ad05d419d32998a06da", + "reference": "fe752aedc9fd8fcca3fe7ad05d419d32998a06da", + "shasum": "" + }, + "require": { + "php": ">=5.5" + }, + "require-dev": { + "symfony/phpunit-bridge": "^4.4 || ^5.1" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.5-dev" + } + }, + "autoload": { + "files": [ + "src/functions_include.php" + ], + "psr-4": { + "GuzzleHttp\\Promise\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Graham Campbell", + "email": "hello@gjcampbell.co.uk", + "homepage": "https://github.com/GrahamCampbell" + }, + { + "name": "Michael Dowling", + "email": "mtdowling@gmail.com", + "homepage": "https://github.com/mtdowling" + }, + { + "name": "Tobias Nyholm", + "email": "tobias.nyholm@gmail.com", + "homepage": "https://github.com/Nyholm" + }, + { + "name": "Tobias Schultze", + "email": "webmaster@tubo-world.de", + "homepage": "https://github.com/Tobion" + } + ], + "description": "Guzzle promises library", + "keywords": [ + "promise" + ], + "support": { + "issues": "https://github.com/guzzle/promises/issues", + "source": "https://github.com/guzzle/promises/tree/1.5.1" + }, + "funding": [ + { + "url": "https://github.com/GrahamCampbell", + "type": "github" + }, + { + "url": "https://github.com/Nyholm", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/guzzlehttp/promises", + "type": "tidelift" + } + ], + "time": "2021-10-22T20:56:57+00:00" + }, + { + "name": "guzzlehttp/psr7", + "version": "1.8.5", + "source": { + "type": "git", + "url": "https://github.com/guzzle/psr7.git", + "reference": "337e3ad8e5716c15f9657bd214d16cc5e69df268" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/guzzle/psr7/zipball/337e3ad8e5716c15f9657bd214d16cc5e69df268", + "reference": "337e3ad8e5716c15f9657bd214d16cc5e69df268", + "shasum": "" + }, + "require": { + "php": ">=5.4.0", + "psr/http-message": "~1.0", + "ralouphie/getallheaders": "^2.0.5 || ^3.0.0" + }, + "provide": { + "psr/http-message-implementation": "1.0" + }, + "require-dev": { + "ext-zlib": "*", + "phpunit/phpunit": "~4.8.36 || ^5.7.27 || ^6.5.14 || ^7.5.20 || ^8.5.8 || ^9.3.10" + }, + "suggest": { + "laminas/laminas-httphandlerrunner": "Emit PSR-7 responses" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.7-dev" + } + }, + "autoload": { + "files": [ + "src/functions_include.php" + ], + "psr-4": { + "GuzzleHttp\\Psr7\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Graham Campbell", + "email": "hello@gjcampbell.co.uk", + "homepage": "https://github.com/GrahamCampbell" + }, + { + "name": "Michael Dowling", + "email": "mtdowling@gmail.com", + "homepage": "https://github.com/mtdowling" + }, + { + "name": "George Mponos", + "email": "gmponos@gmail.com", + "homepage": "https://github.com/gmponos" + }, + { + "name": "Tobias Nyholm", + "email": "tobias.nyholm@gmail.com", + "homepage": "https://github.com/Nyholm" + }, + { + "name": "Márk Sági-Kazár", + "email": "mark.sagikazar@gmail.com", + "homepage": "https://github.com/sagikazarmark" + }, + { + "name": "Tobias Schultze", + "email": "webmaster@tubo-world.de", + "homepage": "https://github.com/Tobion" + } + ], + "description": "PSR-7 message implementation that also provides common utility methods", + "keywords": [ + "http", + "message", + "psr-7", + "request", + "response", + "stream", + "uri", + "url" + ], + "support": { + "issues": "https://github.com/guzzle/psr7/issues", + "source": "https://github.com/guzzle/psr7/tree/1.8.5" + }, + "funding": [ + { + "url": "https://github.com/GrahamCampbell", + "type": "github" + }, + { + "url": "https://github.com/Nyholm", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/guzzlehttp/psr7", + "type": "tidelift" + } + ], + "time": "2022-03-20T21:51:18+00:00" + }, + { + "name": "paragonie/random_compat", + "version": "v2.0.21", + "source": { + "type": "git", + "url": "https://github.com/paragonie/random_compat.git", + "reference": "96c132c7f2f7bc3230723b66e89f8f150b29d5ae" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/paragonie/random_compat/zipball/96c132c7f2f7bc3230723b66e89f8f150b29d5ae", + "reference": "96c132c7f2f7bc3230723b66e89f8f150b29d5ae", + "shasum": "" + }, + "require": { + "php": ">=5.2.0" + }, + "require-dev": { + "phpunit/phpunit": "*" + }, + "suggest": { + "ext-libsodium": "Provides a modern crypto API that can be used to generate random bytes." + }, + "type": "library", + "autoload": { + "files": [ + "lib/random.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Paragon Initiative Enterprises", + "email": "security@paragonie.com", + "homepage": "https://paragonie.com" + } + ], + "description": "PHP 5.x polyfill for random_bytes() and random_int() from PHP 7", + "keywords": [ + "csprng", + "polyfill", + "pseudorandom", + "random" + ], + "support": { + "email": "info@paragonie.com", + "issues": "https://github.com/paragonie/random_compat/issues", + "source": "https://github.com/paragonie/random_compat" + }, + "time": "2022-02-16T17:07:03+00:00" + }, + { + "name": "psr/http-message", + "version": "1.0.1", + "source": { + "type": "git", + "url": "https://github.com/php-fig/http-message.git", + "reference": "f6561bf28d520154e4b0ec72be95418abe6d9363" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/http-message/zipball/f6561bf28d520154e4b0ec72be95418abe6d9363", + "reference": "f6561bf28d520154e4b0ec72be95418abe6d9363", + "shasum": "" + }, + "require": { + "php": ">=5.3.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Http\\Message\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "http://www.php-fig.org/" + } + ], + "description": "Common interface for HTTP messages", + "homepage": "https://github.com/php-fig/http-message", + "keywords": [ + "http", + "http-message", + "psr", + "psr-7", + "request", + "response" + ], + "support": { + "source": "https://github.com/php-fig/http-message/tree/master" + }, + "time": "2016-08-06T14:39:51+00:00" + }, + { + "name": "ralouphie/getallheaders", + "version": "3.0.3", + "source": { + "type": "git", + "url": "https://github.com/ralouphie/getallheaders.git", + "reference": "120b605dfeb996808c31b6477290a714d356e822" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/ralouphie/getallheaders/zipball/120b605dfeb996808c31b6477290a714d356e822", + "reference": "120b605dfeb996808c31b6477290a714d356e822", + "shasum": "" + }, + "require": { + "php": ">=5.6" + }, + "require-dev": { + "php-coveralls/php-coveralls": "^2.1", + "phpunit/phpunit": "^5 || ^6.5" + }, + "type": "library", + "autoload": { + "files": [ + "src/getallheaders.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Ralph Khattar", + "email": "ralph.khattar@gmail.com" + } + ], + "description": "A polyfill for getallheaders.", + "support": { + "issues": "https://github.com/ralouphie/getallheaders/issues", + "source": "https://github.com/ralouphie/getallheaders/tree/develop" + }, + "time": "2019-03-08T08:55:37+00:00" + }, + { + "name": "symfony/polyfill-intl-idn", + "version": "v1.19.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-intl-idn.git", + "reference": "4ad5115c0f5d5172a9fe8147675ec6de266d8826" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-intl-idn/zipball/4ad5115c0f5d5172a9fe8147675ec6de266d8826", + "reference": "4ad5115c0f5d5172a9fe8147675ec6de266d8826", + "shasum": "" + }, + "require": { + "php": ">=5.3.3", + "symfony/polyfill-intl-normalizer": "^1.10", + "symfony/polyfill-php70": "^1.10", + "symfony/polyfill-php72": "^1.10" + }, + "suggest": { + "ext-intl": "For best performance" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.19-dev" + }, + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Intl\\Idn\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Laurent Bassin", + "email": "laurent@bassin.info" + }, + { + "name": "Trevor Rowbotham", + "email": "trevor.rowbotham@pm.me" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill for intl's idn_to_ascii and idn_to_utf8 functions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "idn", + "intl", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-intl-idn/tree/v1.19.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2020-10-21T09:57:48+00:00" + }, + { + "name": "symfony/polyfill-intl-normalizer", + "version": "v1.19.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-intl-normalizer.git", + "reference": "8db0ae7936b42feb370840cf24de1a144fb0ef27" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-intl-normalizer/zipball/8db0ae7936b42feb370840cf24de1a144fb0ef27", + "reference": "8db0ae7936b42feb370840cf24de1a144fb0ef27", + "shasum": "" + }, + "require": { + "php": ">=5.3.3" + }, + "suggest": { + "ext-intl": "For best performance" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.19-dev" + }, + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Intl\\Normalizer\\": "" + }, + "classmap": [ + "Resources/stubs" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill for intl's Normalizer class and related functions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "intl", + "normalizer", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-intl-normalizer/tree/v1.19.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2020-10-23T09:01:57+00:00" + }, + { + "name": "symfony/polyfill-php70", + "version": "v1.19.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-php70.git", + "reference": "3fe414077251a81a1b15b1c709faf5c2fbae3d4e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-php70/zipball/3fe414077251a81a1b15b1c709faf5c2fbae3d4e", + "reference": "3fe414077251a81a1b15b1c709faf5c2fbae3d4e", + "shasum": "" + }, + "require": { + "paragonie/random_compat": "~1.0|~2.0|~9.99", + "php": ">=5.3.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.19-dev" + }, + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Php70\\": "" + }, + "classmap": [ + "Resources/stubs" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill backporting some PHP 7.0+ features to lower PHP versions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-php70/tree/v1.19.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2020-10-23T09:01:57+00:00" + }, + { + "name": "symfony/polyfill-php72", + "version": "v1.19.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-php72.git", + "reference": "beecef6b463b06954638f02378f52496cb84bacc" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-php72/zipball/beecef6b463b06954638f02378f52496cb84bacc", + "reference": "beecef6b463b06954638f02378f52496cb84bacc", + "shasum": "" + }, + "require": { + "php": ">=5.3.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.19-dev" + }, + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Php72\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill backporting some PHP 7.2+ features to lower PHP versions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-php72/tree/v1.19.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2020-10-23T09:01:57+00:00" + } + ], + "packages-dev": [ + { + "name": "doctrine/instantiator", + "version": "1.0.5", + "source": { + "type": "git", + "url": "https://github.com/doctrine/instantiator.git", + "reference": "8e884e78f9f0eb1329e445619e04456e64d8051d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/doctrine/instantiator/zipball/8e884e78f9f0eb1329e445619e04456e64d8051d", + "reference": "8e884e78f9f0eb1329e445619e04456e64d8051d", + "shasum": "" + }, + "require": { + "php": ">=5.3,<8.0-DEV" + }, + "require-dev": { + "athletic/athletic": "~0.1.8", + "ext-pdo": "*", + "ext-phar": "*", + "phpunit/phpunit": "~4.0", + "squizlabs/php_codesniffer": "~2.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Doctrine\\Instantiator\\": "src/Doctrine/Instantiator/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Marco Pivetta", + "email": "ocramius@gmail.com", + "homepage": "http://ocramius.github.com/" + } + ], + "description": "A small, lightweight utility to instantiate objects in PHP without invoking their constructors", + "homepage": "https://github.com/doctrine/instantiator", + "keywords": [ + "constructor", + "instantiate" + ], + "support": { + "issues": "https://github.com/doctrine/instantiator/issues", + "source": "https://github.com/doctrine/instantiator/tree/master" + }, + "time": "2015-06-14T21:17:01+00:00" + }, + { + "name": "myclabs/deep-copy", + "version": "1.7.0", + "source": { + "type": "git", + "url": "https://github.com/myclabs/DeepCopy.git", + "reference": "3b8a3a99ba1f6a3952ac2747d989303cbd6b7a3e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/3b8a3a99ba1f6a3952ac2747d989303cbd6b7a3e", + "reference": "3b8a3a99ba1f6a3952ac2747d989303cbd6b7a3e", + "shasum": "" + }, + "require": { + "php": "^5.6 || ^7.0" + }, + "require-dev": { + "doctrine/collections": "^1.0", + "doctrine/common": "^2.6", + "phpunit/phpunit": "^4.1" + }, + "type": "library", + "autoload": { + "files": [ + "src/DeepCopy/deep_copy.php" + ], + "psr-4": { + "DeepCopy\\": "src/DeepCopy/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "Create deep copies (clones) of your objects", + "keywords": [ + "clone", + "copy", + "duplicate", + "object", + "object graph" + ], + "support": { + "issues": "https://github.com/myclabs/DeepCopy/issues", + "source": "https://github.com/myclabs/DeepCopy/tree/1.x" + }, + "time": "2017-10-19T19:58:43+00:00" + }, + { + "name": "phpdocumentor/reflection-common", + "version": "1.0.1", + "source": { + "type": "git", + "url": "https://github.com/phpDocumentor/ReflectionCommon.git", + "reference": "21bdeb5f65d7ebf9f43b1b25d404f87deab5bfb6" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpDocumentor/ReflectionCommon/zipball/21bdeb5f65d7ebf9f43b1b25d404f87deab5bfb6", + "reference": "21bdeb5f65d7ebf9f43b1b25d404f87deab5bfb6", + "shasum": "" + }, + "require": { + "php": ">=5.5" + }, + "require-dev": { + "phpunit/phpunit": "^4.6" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "phpDocumentor\\Reflection\\": [ + "src" + ] + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Jaap van Otterdijk", + "email": "opensource@ijaap.nl" + } + ], + "description": "Common reflection classes used by phpdocumentor to reflect the code structure", + "homepage": "http://www.phpdoc.org", + "keywords": [ + "FQSEN", + "phpDocumentor", + "phpdoc", + "reflection", + "static analysis" + ], + "support": { + "issues": "https://github.com/phpDocumentor/ReflectionCommon/issues", + "source": "https://github.com/phpDocumentor/ReflectionCommon/tree/master" + }, + "time": "2017-09-11T18:02:19+00:00" + }, + { + "name": "phpdocumentor/reflection-docblock", + "version": "3.3.2", + "source": { + "type": "git", + "url": "https://github.com/phpDocumentor/ReflectionDocBlock.git", + "reference": "bf329f6c1aadea3299f08ee804682b7c45b326a2" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/bf329f6c1aadea3299f08ee804682b7c45b326a2", + "reference": "bf329f6c1aadea3299f08ee804682b7c45b326a2", + "shasum": "" + }, + "require": { + "php": "^5.6 || ^7.0", + "phpdocumentor/reflection-common": "^1.0.0", + "phpdocumentor/type-resolver": "^0.4.0", + "webmozart/assert": "^1.0" + }, + "require-dev": { + "mockery/mockery": "^0.9.4", + "phpunit/phpunit": "^4.4" + }, + "type": "library", + "autoload": { + "psr-4": { + "phpDocumentor\\Reflection\\": [ + "src/" + ] + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Mike van Riel", + "email": "me@mikevanriel.com" + } + ], + "description": "With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.", + "support": { + "issues": "https://github.com/phpDocumentor/ReflectionDocBlock/issues", + "source": "https://github.com/phpDocumentor/ReflectionDocBlock/tree/release/3.x" + }, + "time": "2017-11-10T14:09:06+00:00" + }, + { + "name": "phpdocumentor/type-resolver", + "version": "0.4.0", + "source": { + "type": "git", + "url": "https://github.com/phpDocumentor/TypeResolver.git", + "reference": "9c977708995954784726e25d0cd1dddf4e65b0f7" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/9c977708995954784726e25d0cd1dddf4e65b0f7", + "reference": "9c977708995954784726e25d0cd1dddf4e65b0f7", + "shasum": "" + }, + "require": { + "php": "^5.5 || ^7.0", + "phpdocumentor/reflection-common": "^1.0" + }, + "require-dev": { + "mockery/mockery": "^0.9.4", + "phpunit/phpunit": "^5.2||^4.8.24" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "phpDocumentor\\Reflection\\": [ + "src/" + ] + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Mike van Riel", + "email": "me@mikevanriel.com" + } + ], + "support": { + "issues": "https://github.com/phpDocumentor/TypeResolver/issues", + "source": "https://github.com/phpDocumentor/TypeResolver/tree/master" + }, + "time": "2017-07-14T14:27:02+00:00" + }, + { + "name": "phpspec/prophecy", + "version": "v1.10.3", + "source": { + "type": "git", + "url": "https://github.com/phpspec/prophecy.git", + "reference": "451c3cd1418cf640de218914901e51b064abb093" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpspec/prophecy/zipball/451c3cd1418cf640de218914901e51b064abb093", + "reference": "451c3cd1418cf640de218914901e51b064abb093", + "shasum": "" + }, + "require": { + "doctrine/instantiator": "^1.0.2", + "php": "^5.3|^7.0", + "phpdocumentor/reflection-docblock": "^2.0|^3.0.2|^4.0|^5.0", + "sebastian/comparator": "^1.2.3|^2.0|^3.0|^4.0", + "sebastian/recursion-context": "^1.0|^2.0|^3.0|^4.0" + }, + "require-dev": { + "phpspec/phpspec": "^2.5 || ^3.2", + "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.5 || ^7.1" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.10.x-dev" + } + }, + "autoload": { + "psr-4": { + "Prophecy\\": "src/Prophecy" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Konstantin Kudryashov", + "email": "ever.zet@gmail.com", + "homepage": "http://everzet.com" + }, + { + "name": "Marcello Duarte", + "email": "marcello.duarte@gmail.com" + } + ], + "description": "Highly opinionated mocking framework for PHP 5.3+", + "homepage": "https://github.com/phpspec/prophecy", + "keywords": [ + "Double", + "Dummy", + "fake", + "mock", + "spy", + "stub" + ], + "support": { + "issues": "https://github.com/phpspec/prophecy/issues", + "source": "https://github.com/phpspec/prophecy/tree/v1.10.3" + }, + "time": "2020-03-05T15:02:03+00:00" + }, + { + "name": "phpunit/php-code-coverage", + "version": "4.0.8", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-code-coverage.git", + "reference": "ef7b2f56815df854e66ceaee8ebe9393ae36a40d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/ef7b2f56815df854e66ceaee8ebe9393ae36a40d", + "reference": "ef7b2f56815df854e66ceaee8ebe9393ae36a40d", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-xmlwriter": "*", + "php": "^5.6 || ^7.0", + "phpunit/php-file-iterator": "^1.3", + "phpunit/php-text-template": "^1.2", + "phpunit/php-token-stream": "^1.4.2 || ^2.0", + "sebastian/code-unit-reverse-lookup": "^1.0", + "sebastian/environment": "^1.3.2 || ^2.0", + "sebastian/version": "^1.0 || ^2.0" + }, + "require-dev": { + "ext-xdebug": "^2.1.4", + "phpunit/phpunit": "^5.7" + }, + "suggest": { + "ext-xdebug": "^2.5.1" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "4.0.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sb@sebastian-bergmann.de", + "role": "lead" + } + ], + "description": "Library that provides collection, processing, and rendering functionality for PHP code coverage information.", + "homepage": "https://github.com/sebastianbergmann/php-code-coverage", + "keywords": [ + "coverage", + "testing", + "xunit" + ], + "support": { + "irc": "irc://irc.freenode.net/phpunit", + "issues": "https://github.com/sebastianbergmann/php-code-coverage/issues", + "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/4.0" + }, + "time": "2017-04-02T07:44:40+00:00" + }, + { + "name": "phpunit/php-file-iterator", + "version": "1.4.5", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-file-iterator.git", + "reference": "730b01bc3e867237eaac355e06a36b85dd93a8b4" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/730b01bc3e867237eaac355e06a36b85dd93a8b4", + "reference": "730b01bc3e867237eaac355e06a36b85dd93a8b4", + "shasum": "" + }, + "require": { + "php": ">=5.3.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.4.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sb@sebastian-bergmann.de", + "role": "lead" + } + ], + "description": "FilterIterator implementation that filters files based on a list of suffixes.", + "homepage": "https://github.com/sebastianbergmann/php-file-iterator/", + "keywords": [ + "filesystem", + "iterator" + ], + "support": { + "irc": "irc://irc.freenode.net/phpunit", + "issues": "https://github.com/sebastianbergmann/php-file-iterator/issues", + "source": "https://github.com/sebastianbergmann/php-file-iterator/tree/1.4.5" + }, + "time": "2017-11-27T13:52:08+00:00" + }, + { + "name": "phpunit/php-text-template", + "version": "1.2.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-text-template.git", + "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/31f8b717e51d9a2afca6c9f046f5d69fc27c8686", + "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686", + "shasum": "" + }, + "require": { + "php": ">=5.3.3" + }, + "type": "library", + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Simple template engine.", + "homepage": "https://github.com/sebastianbergmann/php-text-template/", + "keywords": [ + "template" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/php-text-template/issues", + "source": "https://github.com/sebastianbergmann/php-text-template/tree/1.2.1" + }, + "time": "2015-06-21T13:50:34+00:00" + }, + { + "name": "phpunit/php-timer", + "version": "1.0.9", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-timer.git", + "reference": "3dcf38ca72b158baf0bc245e9184d3fdffa9c46f" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/3dcf38ca72b158baf0bc245e9184d3fdffa9c46f", + "reference": "3dcf38ca72b158baf0bc245e9184d3fdffa9c46f", + "shasum": "" + }, + "require": { + "php": "^5.3.3 || ^7.0" + }, + "require-dev": { + "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sb@sebastian-bergmann.de", + "role": "lead" + } + ], + "description": "Utility class for timing", + "homepage": "https://github.com/sebastianbergmann/php-timer/", + "keywords": [ + "timer" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/php-timer/issues", + "source": "https://github.com/sebastianbergmann/php-timer/tree/master" + }, + "time": "2017-02-26T11:10:40+00:00" + }, + { + "name": "phpunit/php-token-stream", + "version": "1.4.12", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-token-stream.git", + "reference": "1ce90ba27c42e4e44e6d8458241466380b51fa16" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/1ce90ba27c42e4e44e6d8458241466380b51fa16", + "reference": "1ce90ba27c42e4e44e6d8458241466380b51fa16", + "shasum": "" + }, + "require": { + "ext-tokenizer": "*", + "php": ">=5.3.3" + }, + "require-dev": { + "phpunit/phpunit": "~4.2" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.4-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Wrapper around PHP's tokenizer extension.", + "homepage": "https://github.com/sebastianbergmann/php-token-stream/", + "keywords": [ + "tokenizer" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/php-token-stream/issues", + "source": "https://github.com/sebastianbergmann/php-token-stream/tree/1.4" + }, + "abandoned": true, + "time": "2017-12-04T08:55:13+00:00" + }, + { + "name": "phpunit/phpunit", + "version": "5.7.27", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/phpunit.git", + "reference": "b7803aeca3ccb99ad0a506fa80b64cd6a56bbc0c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/b7803aeca3ccb99ad0a506fa80b64cd6a56bbc0c", + "reference": "b7803aeca3ccb99ad0a506fa80b64cd6a56bbc0c", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-json": "*", + "ext-libxml": "*", + "ext-mbstring": "*", + "ext-xml": "*", + "myclabs/deep-copy": "~1.3", + "php": "^5.6 || ^7.0", + "phpspec/prophecy": "^1.6.2", + "phpunit/php-code-coverage": "^4.0.4", + "phpunit/php-file-iterator": "~1.4", + "phpunit/php-text-template": "~1.2", + "phpunit/php-timer": "^1.0.6", + "phpunit/phpunit-mock-objects": "^3.2", + "sebastian/comparator": "^1.2.4", + "sebastian/diff": "^1.4.3", + "sebastian/environment": "^1.3.4 || ^2.0", + "sebastian/exporter": "~2.0", + "sebastian/global-state": "^1.1", + "sebastian/object-enumerator": "~2.0", + "sebastian/resource-operations": "~1.0", + "sebastian/version": "^1.0.6|^2.0.1", + "symfony/yaml": "~2.1|~3.0|~4.0" + }, + "conflict": { + "phpdocumentor/reflection-docblock": "3.0.2" + }, + "require-dev": { + "ext-pdo": "*" + }, + "suggest": { + "ext-xdebug": "*", + "phpunit/php-invoker": "~1.1" + }, + "bin": [ + "phpunit" + ], + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "5.7.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "The PHP Unit Testing framework.", + "homepage": "https://phpunit.de/", + "keywords": [ + "phpunit", + "testing", + "xunit" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/phpunit/issues", + "source": "https://github.com/sebastianbergmann/phpunit/tree/5.7.27" + }, + "time": "2018-02-01T05:50:59+00:00" + }, + { + "name": "phpunit/phpunit-mock-objects", + "version": "3.4.4", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/phpunit-mock-objects.git", + "reference": "a23b761686d50a560cc56233b9ecf49597cc9118" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/zipball/a23b761686d50a560cc56233b9ecf49597cc9118", + "reference": "a23b761686d50a560cc56233b9ecf49597cc9118", + "shasum": "" + }, + "require": { + "doctrine/instantiator": "^1.0.2", + "php": "^5.6 || ^7.0", + "phpunit/php-text-template": "^1.2", + "sebastian/exporter": "^1.2 || ^2.0" + }, + "conflict": { + "phpunit/phpunit": "<5.4.0" + }, + "require-dev": { + "phpunit/phpunit": "^5.4" + }, + "suggest": { + "ext-soap": "*" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.2.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sb@sebastian-bergmann.de", + "role": "lead" + } + ], + "description": "Mock Object library for PHPUnit", + "homepage": "https://github.com/sebastianbergmann/phpunit-mock-objects/", + "keywords": [ + "mock", + "xunit" + ], + "support": { + "irc": "irc://irc.freenode.net/phpunit", + "issues": "https://github.com/sebastianbergmann/phpunit-mock-objects/issues", + "source": "https://github.com/sebastianbergmann/phpunit-mock-objects/tree/3.4" + }, + "abandoned": true, + "time": "2017-06-30T09:13:00+00:00" + }, + { + "name": "sebastian/code-unit-reverse-lookup", + "version": "1.0.2", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/code-unit-reverse-lookup.git", + "reference": "1de8cd5c010cb153fcd68b8d0f64606f523f7619" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/code-unit-reverse-lookup/zipball/1de8cd5c010cb153fcd68b8d0f64606f523f7619", + "reference": "1de8cd5c010cb153fcd68b8d0f64606f523f7619", + "shasum": "" + }, + "require": { + "php": ">=5.6" + }, + "require-dev": { + "phpunit/phpunit": "^8.5" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Looks up which function or method a line of code belongs to", + "homepage": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/", + "support": { + "issues": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/issues", + "source": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/tree/1.0.2" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-11-30T08:15:22+00:00" + }, + { + "name": "sebastian/comparator", + "version": "1.2.4", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/comparator.git", + "reference": "2b7424b55f5047b47ac6e5ccb20b2aea4011d9be" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/2b7424b55f5047b47ac6e5ccb20b2aea4011d9be", + "reference": "2b7424b55f5047b47ac6e5ccb20b2aea4011d9be", + "shasum": "" + }, + "require": { + "php": ">=5.3.3", + "sebastian/diff": "~1.2", + "sebastian/exporter": "~1.2 || ~2.0" + }, + "require-dev": { + "phpunit/phpunit": "~4.4" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.2.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Jeff Welch", + "email": "whatthejeff@gmail.com" + }, + { + "name": "Volker Dusch", + "email": "github@wallbash.com" + }, + { + "name": "Bernhard Schussek", + "email": "bschussek@2bepublished.at" + }, + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Provides the functionality to compare PHP values for equality", + "homepage": "http://www.github.com/sebastianbergmann/comparator", + "keywords": [ + "comparator", + "compare", + "equality" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/comparator/issues", + "source": "https://github.com/sebastianbergmann/comparator/tree/1.2" + }, + "time": "2017-01-29T09:50:25+00:00" + }, + { + "name": "sebastian/diff", + "version": "1.4.3", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/diff.git", + "reference": "7f066a26a962dbe58ddea9f72a4e82874a3975a4" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/7f066a26a962dbe58ddea9f72a4e82874a3975a4", + "reference": "7f066a26a962dbe58ddea9f72a4e82874a3975a4", + "shasum": "" + }, + "require": { + "php": "^5.3.3 || ^7.0" + }, + "require-dev": { + "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.4-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Kore Nordmann", + "email": "mail@kore-nordmann.de" + }, + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Diff implementation", + "homepage": "https://github.com/sebastianbergmann/diff", + "keywords": [ + "diff" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/diff/issues", + "source": "https://github.com/sebastianbergmann/diff/tree/1.4" + }, + "time": "2017-05-22T07:24:03+00:00" + }, + { + "name": "sebastian/environment", + "version": "2.0.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/environment.git", + "reference": "5795ffe5dc5b02460c3e34222fee8cbe245d8fac" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/5795ffe5dc5b02460c3e34222fee8cbe245d8fac", + "reference": "5795ffe5dc5b02460c3e34222fee8cbe245d8fac", + "shasum": "" + }, + "require": { + "php": "^5.6 || ^7.0" + }, + "require-dev": { + "phpunit/phpunit": "^5.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Provides functionality to handle HHVM/PHP environments", + "homepage": "http://www.github.com/sebastianbergmann/environment", + "keywords": [ + "Xdebug", + "environment", + "hhvm" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/environment/issues", + "source": "https://github.com/sebastianbergmann/environment/tree/master" + }, + "time": "2016-11-26T07:53:53+00:00" + }, + { + "name": "sebastian/exporter", + "version": "2.0.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/exporter.git", + "reference": "ce474bdd1a34744d7ac5d6aad3a46d48d9bac4c4" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/ce474bdd1a34744d7ac5d6aad3a46d48d9bac4c4", + "reference": "ce474bdd1a34744d7ac5d6aad3a46d48d9bac4c4", + "shasum": "" + }, + "require": { + "php": ">=5.3.3", + "sebastian/recursion-context": "~2.0" + }, + "require-dev": { + "ext-mbstring": "*", + "phpunit/phpunit": "~4.4" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Jeff Welch", + "email": "whatthejeff@gmail.com" + }, + { + "name": "Volker Dusch", + "email": "github@wallbash.com" + }, + { + "name": "Bernhard Schussek", + "email": "bschussek@2bepublished.at" + }, + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + }, + { + "name": "Adam Harvey", + "email": "aharvey@php.net" + } + ], + "description": "Provides the functionality to export PHP variables for visualization", + "homepage": "http://www.github.com/sebastianbergmann/exporter", + "keywords": [ + "export", + "exporter" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/exporter/issues", + "source": "https://github.com/sebastianbergmann/exporter/tree/master" + }, + "time": "2016-11-19T08:54:04+00:00" + }, + { + "name": "sebastian/global-state", + "version": "1.1.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/global-state.git", + "reference": "bc37d50fea7d017d3d340f230811c9f1d7280af4" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/bc37d50fea7d017d3d340f230811c9f1d7280af4", + "reference": "bc37d50fea7d017d3d340f230811c9f1d7280af4", + "shasum": "" + }, + "require": { + "php": ">=5.3.3" + }, + "require-dev": { + "phpunit/phpunit": "~4.2" + }, + "suggest": { + "ext-uopz": "*" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Snapshotting of global state", + "homepage": "http://www.github.com/sebastianbergmann/global-state", + "keywords": [ + "global state" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/global-state/issues", + "source": "https://github.com/sebastianbergmann/global-state/tree/1.1.1" + }, + "time": "2015-10-12T03:26:01+00:00" + }, + { + "name": "sebastian/object-enumerator", + "version": "2.0.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/object-enumerator.git", + "reference": "1311872ac850040a79c3c058bea3e22d0f09cbb7" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/1311872ac850040a79c3c058bea3e22d0f09cbb7", + "reference": "1311872ac850040a79c3c058bea3e22d0f09cbb7", + "shasum": "" + }, + "require": { + "php": ">=5.6", + "sebastian/recursion-context": "~2.0" + }, + "require-dev": { + "phpunit/phpunit": "~5" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Traverses array structures and object graphs to enumerate all referenced objects", + "homepage": "https://github.com/sebastianbergmann/object-enumerator/", + "support": { + "issues": "https://github.com/sebastianbergmann/object-enumerator/issues", + "source": "https://github.com/sebastianbergmann/object-enumerator/tree/master" + }, + "time": "2017-02-18T15:18:39+00:00" + }, + { + "name": "sebastian/recursion-context", + "version": "2.0.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/recursion-context.git", + "reference": "2c3ba150cbec723aa057506e73a8d33bdb286c9a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/2c3ba150cbec723aa057506e73a8d33bdb286c9a", + "reference": "2c3ba150cbec723aa057506e73a8d33bdb286c9a", + "shasum": "" + }, + "require": { + "php": ">=5.3.3" + }, + "require-dev": { + "phpunit/phpunit": "~4.4" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Jeff Welch", + "email": "whatthejeff@gmail.com" + }, + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + }, + { + "name": "Adam Harvey", + "email": "aharvey@php.net" + } + ], + "description": "Provides functionality to recursively process PHP variables", + "homepage": "http://www.github.com/sebastianbergmann/recursion-context", + "support": { + "issues": "https://github.com/sebastianbergmann/recursion-context/issues", + "source": "https://github.com/sebastianbergmann/recursion-context/tree/master" + }, + "time": "2016-11-19T07:33:16+00:00" + }, + { + "name": "sebastian/resource-operations", + "version": "1.0.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/resource-operations.git", + "reference": "ce990bb21759f94aeafd30209e8cfcdfa8bc3f52" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/resource-operations/zipball/ce990bb21759f94aeafd30209e8cfcdfa8bc3f52", + "reference": "ce990bb21759f94aeafd30209e8cfcdfa8bc3f52", + "shasum": "" + }, + "require": { + "php": ">=5.6.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Provides a list of PHP built-in functions that operate on resources", + "homepage": "https://www.github.com/sebastianbergmann/resource-operations", + "support": { + "issues": "https://github.com/sebastianbergmann/resource-operations/issues", + "source": "https://github.com/sebastianbergmann/resource-operations/tree/master" + }, + "time": "2015-07-28T20:34:47+00:00" + }, + { + "name": "sebastian/version", + "version": "2.0.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/version.git", + "reference": "99732be0ddb3361e16ad77b68ba41efc8e979019" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/99732be0ddb3361e16ad77b68ba41efc8e979019", + "reference": "99732be0ddb3361e16ad77b68ba41efc8e979019", + "shasum": "" + }, + "require": { + "php": ">=5.6" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Library that helps with managing the version number of Git-hosted PHP projects", + "homepage": "https://github.com/sebastianbergmann/version", + "support": { + "issues": "https://github.com/sebastianbergmann/version/issues", + "source": "https://github.com/sebastianbergmann/version/tree/master" + }, + "time": "2016-10-03T07:35:21+00:00" + }, + { + "name": "symfony/polyfill-ctype", + "version": "v1.19.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-ctype.git", + "reference": "aed596913b70fae57be53d86faa2e9ef85a2297b" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/aed596913b70fae57be53d86faa2e9ef85a2297b", + "reference": "aed596913b70fae57be53d86faa2e9ef85a2297b", + "shasum": "" + }, + "require": { + "php": ">=5.3.3" + }, + "suggest": { + "ext-ctype": "For best performance" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.19-dev" + }, + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Ctype\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Gert de Pagter", + "email": "BackEndTea@gmail.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill for ctype functions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "ctype", + "polyfill", + "portable" + ], + "support": { + "source": "https://github.com/symfony/polyfill-ctype/tree/v1.19.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2020-10-23T09:01:57+00:00" + }, + { + "name": "symfony/yaml", + "version": "v3.4.47", + "source": { + "type": "git", + "url": "https://github.com/symfony/yaml.git", + "reference": "88289caa3c166321883f67fe5130188ebbb47094" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/yaml/zipball/88289caa3c166321883f67fe5130188ebbb47094", + "reference": "88289caa3c166321883f67fe5130188ebbb47094", + "shasum": "" + }, + "require": { + "php": "^5.5.9|>=7.0.8", + "symfony/polyfill-ctype": "~1.8" + }, + "conflict": { + "symfony/console": "<3.4" + }, + "require-dev": { + "symfony/console": "~3.4|~4.0" + }, + "suggest": { + "symfony/console": "For validating YAML files using the lint command" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\Yaml\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony Yaml Component", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/yaml/tree/v3.4.47" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2020-10-24T10:57:07+00:00" + }, + { + "name": "webmozart/assert", + "version": "1.9.1", + "source": { + "type": "git", + "url": "https://github.com/webmozarts/assert.git", + "reference": "bafc69caeb4d49c39fd0779086c03a3738cbb389" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/webmozarts/assert/zipball/bafc69caeb4d49c39fd0779086c03a3738cbb389", + "reference": "bafc69caeb4d49c39fd0779086c03a3738cbb389", + "shasum": "" + }, + "require": { + "php": "^5.3.3 || ^7.0 || ^8.0", + "symfony/polyfill-ctype": "^1.8" + }, + "conflict": { + "phpstan/phpstan": "<0.12.20", + "vimeo/psalm": "<3.9.1" + }, + "require-dev": { + "phpunit/phpunit": "^4.8.36 || ^7.5.13" + }, + "type": "library", + "autoload": { + "psr-4": { + "Webmozart\\Assert\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Bernhard Schussek", + "email": "bschussek@gmail.com" + } + ], + "description": "Assertions to validate method input/output with nice error messages.", + "keywords": [ + "assert", + "check", + "validate" + ], + "support": { + "issues": "https://github.com/webmozarts/assert/issues", + "source": "https://github.com/webmozarts/assert/tree/1.9.1" + }, + "time": "2020-07-08T17:02:28+00:00" + } + ], + "aliases": [], + "minimum-stability": "stable", + "stability-flags": [], + "prefer-stable": false, + "prefer-lowest": false, + "platform": { + "php": ">=5.6", + "ext-json": "*" + }, + "platform-dev": [], + "plugin-api-version": "2.2.0" +} diff --git a/extend/lop-opensdk-php/src/Client.php b/extend/lop-opensdk-php/src/Client.php new file mode 100644 index 0000000..8e20557 --- /dev/null +++ b/extend/lop-opensdk-php/src/Client.php @@ -0,0 +1,14 @@ +doFilter($request, $options); + $matches = array(); + if (preg_match(self::ERROR_RESPONSE_PATTERN, $response->getBody(), $matches) === 1) { + $response->setSucceed(false); + $response->setEnDesc($matches[1]); + $response->setZhDesc($matches[2]); + $response->setCode(intval($matches[3])); + } + return $response; + } +} \ No newline at end of file diff --git a/extend/lop-opensdk-php/src/Filters/IsvFilter.php b/extend/lop-opensdk-php/src/Filters/IsvFilter.php new file mode 100644 index 0000000..26174f8 --- /dev/null +++ b/extend/lop-opensdk-php/src/Filters/IsvFilter.php @@ -0,0 +1,66 @@ +appKey = $appKey; + $this->appSecret = $appSecret; + $this->accessToken = $accessToken; + } + + /** + * @throws SdkException + */ + function doFilter($request, $options, $chain) + { + $request->setHeader("lop-tz", strval(date("Z") / 3600)); + + $timestamp = date("Y-m-d H:i:s"); + $content = implode("", array( + $this->appSecret, + "access_token", $this->accessToken, + "app_key", $this->appKey, + "method", $request->getPath(), + "param_json", $request->getBody(), + "timestamp", $timestamp, + "v", "2.0", + $this->appSecret + )); + $sign = Utils::sign($options->getAlgorithm(), $content, $this->appSecret); + + $request->setQuery("app_key", $this->appKey); + $request->setQuery("access_token", $this->accessToken); + $request->setQuery("timestamp", $timestamp); + $request->setQuery("v", "2.0"); + $request->setQuery("sign", $sign); + $request->setQuery("algorithm", $options->getAlgorithm()); + + return $chain->doFilter($request, $options); + } +} \ No newline at end of file diff --git a/extend/lop-opensdk-php/src/Filters/LoggerFilter.php b/extend/lop-opensdk-php/src/Filters/LoggerFilter.php new file mode 100644 index 0000000..d2c7e35 --- /dev/null +++ b/extend/lop-opensdk-php/src/Filters/LoggerFilter.php @@ -0,0 +1,59 @@ +file = $file; + } + + function doFilter($request, $options, $chain) + { + $this->printf("[%s, Request ] Domain: %s, Path: %s, Method: %s", $request->getRequestId(), + $request->getDomain(), $request->getPath(), $request->getMethod()); + $this->printf("[%s, Request ] Queries: %s", $request->getRequestId(), json_encode($request->getQueries())); + $this->printf("[%s, Request ] Headers: %s", $request->getRequestId(), json_encode($request->getHeaders())); + $this->printf("[%s, Request ] Body: %s", $request->getRequestId(), $request->getBody()); + + try { + $response = $chain->doFilter($request, $options); + } catch (SdkException $e) { + $this->printf("[%s, Response ] Error: %s", $e->getMessage()); + throw $e; + } + + $this->printf("[%s, Response ] Succeed: %t, TraceId: %s, EnDesc: %s, ZhDesc: %s, Code: %d, Status: %d", + $request->getRequestId(), $response->isSucceed(), $response->getTraceId(), + $response->getEnDesc(), $response->getZhDesc(), $response->getCode(), $response->getStatus()); + $this->printf("[%s, Response ] Body: %s", $request->getRequestId(), $response->getBody()); + + return $response; + } + + /** + * @param string $format + * @param mixed ...$values + * @return void + */ + private function printf($format, ...$values) + { + fwrite($this->file, date("Y/m/d H:i:s")); + fwrite($this->file, " "); + fwrite($this->file, sprintf($format, $values)); + fwrite($this->file, "\n"); + } +} \ No newline at end of file diff --git a/extend/lop-opensdk-php/src/Filters/PartnerFilter.php b/extend/lop-opensdk-php/src/Filters/PartnerFilter.php new file mode 100644 index 0000000..704516d --- /dev/null +++ b/extend/lop-opensdk-php/src/Filters/PartnerFilter.php @@ -0,0 +1,58 @@ +appKey = $appKey; + $this->appSecret = $appSecret; + } + + /** + * @throws SdkException + */ + function doFilter($request, $options, $chain) + { + $request->setHeader("lop-tz", strval(date("Z") / 3600)); + + $timestamp = date("Y-m-d H:i:s"); + $content = implode("", array( + $this->appSecret, + "access_token", "", + "app_key", $this->appKey, + "method", $request->getPath(), + "param_json", $request->getBody(), + "timestamp", $timestamp, + "v", "2.0", + $this->appSecret + )); + $sign = Utils::sign($options->getAlgorithm(), $content, $this->appSecret); + + $request->setQuery("app_key", $this->appKey); + $request->setQuery("timestamp", $timestamp); + $request->setQuery("v", "2.0"); + $request->setQuery("sign", $sign); + $request->setQuery("algorithm", $options->getAlgorithm()); + + return $chain->doFilter($request, $options); + } +} \ No newline at end of file diff --git a/extend/lop-opensdk-php/src/Filters/Utils.php b/extend/lop-opensdk-php/src/Filters/Utils.php new file mode 100644 index 0000000..a534188 --- /dev/null +++ b/extend/lop-opensdk-php/src/Filters/Utils.php @@ -0,0 +1,36 @@ +algorithm = self::MD5_SALT; + } + + + /** + * @return string + */ + public function getAlgorithm() + { + return $this->algorithm; + } + + /** + * @param string $algorithm + */ + public function setAlgorithm($algorithm) + { + $this->algorithm = $algorithm; + } +} \ No newline at end of file diff --git a/extend/lop-opensdk-php/src/Request.php b/extend/lop-opensdk-php/src/Request.php new file mode 100644 index 0000000..46bd14f --- /dev/null +++ b/extend/lop-opensdk-php/src/Request.php @@ -0,0 +1,137 @@ +response = $response; + } + + /** + * @return Response + */ + public function getResponse() + { + return $this->response; + } +} \ No newline at end of file diff --git a/extend/lop-opensdk-php/src/Support/DefaultClient.php b/extend/lop-opensdk-php/src/Support/DefaultClient.php new file mode 100644 index 0000000..a447f35 --- /dev/null +++ b/extend/lop-opensdk-php/src/Support/DefaultClient.php @@ -0,0 +1,79 @@ +baseUri = $baseUri; + $this->executorFactory = new DefaultExecutorFactory(); + } + + /** + * @throws SdkException + */ + function execute($request, $options) + { + if (empty($request->getRequestId())) { + $request->setRequestId(uniqid()); + } + + if (empty($request->getBody())) { + $request->setBody(json_encode($request->getEntity())); + } + + if (!$request->hasQuery("LOP-DN")) { + $request->setQuery("LOP-DN", $request->getDomain()); + } + + if (!$request->hasHeader("User-Agent")) { + $request->setHeader("User-Agent", "lop-opensdk/php@" . Version::VERSION); + } + + $executor = $this->executorFactory->create($this->baseUri); + + $chain = new DefaultFilterChain($executor, $request->getFilters()); + $response = $chain->doFilter($request, $options); + + if (!$response->isSucceed()) { + return $response; + } + + if (empty($request->getResponseType())) { + return $response; + } + + $entity = json_decode($response->getBody()); + if (json_last_error() != JSON_ERROR_NONE) { + throw new SdkException("json decode failed", 0, $response); + } + if (!settype($entity, $request->getResponseType())) { + throw new SdkException("set entity to response type failed", 0, $response); + } + + $response->setEntity($entity); + + return $response; + } + + /** + * @param ExecutorFactory $executorFactory + */ + public function setExecutorFactory($executorFactory) + { + $this->executorFactory = $executorFactory; + } +} \ No newline at end of file diff --git a/extend/lop-opensdk-php/src/Support/DefaultExecutor.php b/extend/lop-opensdk-php/src/Support/DefaultExecutor.php new file mode 100644 index 0000000..204073a --- /dev/null +++ b/extend/lop-opensdk-php/src/Support/DefaultExecutor.php @@ -0,0 +1,56 @@ +baseUri = $baseUri; + } + + /** + * @throws SdkException + */ + function execute($request, $options) + { + $uri = $this->baseUri . $request->getPath(); + $httpRequest = new Request($request->getMethod(), $uri, $request->getHeaders(), $request->getBody()); + + $client = new Client(); + try { + $httpResponse = $client->send($httpRequest, [ + "query" => $request->getQueries(), + "http_errors" => false + ]); + } catch (GuzzleException $e) { + throw new SdkException("", 0, null, $e); + } + + $response = new GenericResponse(); + $response->setSucceed($httpResponse->getStatusCode() == 200); + $response->setStatus($httpResponse->getStatusCode()); + $response->setBody($httpResponse->getBody()->getContents()); + + $traceIds = $httpResponse->getHeader("Lop-Trace-Id"); + if (count($traceIds) > 0) { + $response->setTraceId($traceIds[0]); + } + + return $response; + } +} diff --git a/extend/lop-opensdk-php/src/Support/DefaultExecutorFactory.php b/extend/lop-opensdk-php/src/Support/DefaultExecutorFactory.php new file mode 100644 index 0000000..1ab97ca --- /dev/null +++ b/extend/lop-opensdk-php/src/Support/DefaultExecutorFactory.php @@ -0,0 +1,14 @@ +executor = $executor; + $this->filters = $filters; + $this->position = 0; + } + + /** + * @throws SdkException + */ + function doFilter($request, $options) + { + if ($this->position < count($this->filters)) { + $filter = $this->filters[$this->position]; + $this->position++; + return $filter->doFilter($request, $options, $this); + } else { + return $this->executor->execute($request, $options); + } + } +} \ No newline at end of file diff --git a/extend/lop-opensdk-php/src/Support/GenericRequest.php b/extend/lop-opensdk-php/src/Support/GenericRequest.php new file mode 100644 index 0000000..81a6928 --- /dev/null +++ b/extend/lop-opensdk-php/src/Support/GenericRequest.php @@ -0,0 +1,184 @@ +queries = array(); + $this->headers = array(); + $this->filters = array(); + } + + + function getDomain() + { + return $this->domain; + } + + function setDomain($domain) + { + $this->domain = $domain; + } + + function getPath() + { + return $this->path; + } + + function setPath($path) + { + $this->path = $path; + } + + function getMethod() + { + return $this->method; + } + + function setMethod($method) + { + $this->method = $method; + } + + function hasQuery($key) + { + return array_key_exists($key, $this->queries); + } + + function getQuery($key) + { + return $this->queries[$key]; + } + + function setQuery($key, $value) + { + $this->queries[$key] = $value; + } + + function getQueries() + { + return $this->queries; + } + + function hasHeader($key) + { + return array_key_exists($key, $this->headers); + } + + function getHeader($key) + { + return $this->headers[$key]; + } + + function setHeader($key, $value) + { + $this->headers[$key] = $value; + } + + function getHeaders() + { + return $this->headers; + } + + function addFilter($filter) + { + $this->filters[] = $filter; + } + + function getFilters() + { + return $this->filters; + } + + function getEntity() + { + return null; + } + + function getBody() + { + return $this->body; + } + + function setBody($body) + { + $this->body = $body; + } + + function getRequestId() + { + return $this->requestId; + } + + function setRequestId($requestId) + { + $this->requestId = $requestId; + } + + /** + * @return string + */ + function getResponseType() + { + return $this->responseType; + } + + /** + * @param string $responseType + * @return void + */ + function setResponseType($responseType) + { + $this->responseType = $responseType; + } +} \ No newline at end of file diff --git a/extend/lop-opensdk-php/src/Support/GenericResponse.php b/extend/lop-opensdk-php/src/Support/GenericResponse.php new file mode 100644 index 0000000..789ad56 --- /dev/null +++ b/extend/lop-opensdk-php/src/Support/GenericResponse.php @@ -0,0 +1,129 @@ +succeed; + } + + function setSucceed($succeed) + { + $this->succeed = $succeed; + } + + function getTraceId() + { + return $this->traceId; + } + + function setTraceId($traceId) + { + $this->traceId = $traceId; + } + + function getZhDesc() + { + return $this->zhDesc; + } + + function setZhDesc($zhDesc) + { + $this->zhDesc = $zhDesc; + } + + function getEnDesc() + { + return $this->enDesc; + } + + function setEnDesc($enDesc) + { + $this->enDesc = $enDesc; + } + + function getCode() + { + return $this->code; + } + + function setCode($code) + { + $this->code = $code; + } + + function getStatus() + { + return $this->status; + } + + function setStatus($status) + { + $this->status = $status; + } + + function getBody() + { + return $this->body; + } + + function setBody($body) + { + $this->body = $body; + } + + function getEntity() + { + return $this->entity; + } + + function setEntity($entity) + { + $this->entity = $entity; + } +} \ No newline at end of file diff --git a/extend/lop-opensdk-php/src/Version.php b/extend/lop-opensdk-php/src/Version.php new file mode 100644 index 0000000..c656c9f --- /dev/null +++ b/extend/lop-opensdk-php/src/Version.php @@ -0,0 +1,8 @@ +group(function () { // 发货信息 Route::get('shop/ship/senders', [ShipController::class, 'getSenders'])->name('shop_ship.senders.get'); Route::post('shop/ship/senders', [ShipController::class, 'saveSenders'])->name('shop_ship.senders.save'); + Route::resource('shop_sends', 'Shop\ShopSendsController', ['only' => ['index', 'store']]); + // 数据中心 Route::get('data_center/sales_report', [DataCenterController::class, 'salesReport'])->name('sales_report.index'); //供应商 From e850b3d33611d47add3a590beecbbd9a75b0fd0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E5=BB=BA=E7=82=8A?= <924182103@qq.com> Date: Thu, 26 Dec 2024 19:19:43 +0800 Subject: [PATCH 2/8] =?UTF-8?q?=E4=BA=AC=E4=B8=9C=E6=89=93=E5=8D=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Business/BusinessOrderController.php | 5 +- .../WayBill/JingDong/JingDongService.php | 43 +++++++--- .../WayBill/JingDong/WayBillService.php | 83 ++++++------------- .../src/Support/DefaultExecutor.php | 2 +- 4 files changed, 58 insertions(+), 75 deletions(-) diff --git a/app/Http/Controllers/Business/BusinessOrderController.php b/app/Http/Controllers/Business/BusinessOrderController.php index 65ea4c4..fcf0bfc 100644 --- a/app/Http/Controllers/Business/BusinessOrderController.php +++ b/app/Http/Controllers/Business/BusinessOrderController.php @@ -189,12 +189,9 @@ class BusinessOrderController extends Controller $waybill = new WayBillService(); $waybill->setOrders($businessOrders); $contents = $waybill->getWayBillContents(); - // 待打印数据 - [$documents, $orderIds] = $waybill->getDocumentsAndOrderIds($contents); return response([ - 'documents' => $this->combinationPrintDocuments($documents), - 'order_ids' => implode(',', $orderIds), + 'data' => $contents ]); } diff --git a/app/Services/WayBill/JingDong/JingDongService.php b/app/Services/WayBill/JingDong/JingDongService.php index a9a64f9..da1bde0 100644 --- a/app/Services/WayBill/JingDong/JingDongService.php +++ b/app/Services/WayBill/JingDong/JingDongService.php @@ -1,6 +1,6 @@ execute($request, $options); $response = json_decode($response->getBody(), true); Log::info("京东返回请求response", [$response]); - if (!isset($response['code']) || ($response['code'] != 0 && $response['code'] != 1000)) { + if (!isset($response['code']) || ($response['code'] != 0 && $response['code'] != 1 && $response['code'] != 1000)) { throw new \Exception($response['msg'] ?? "code异常"); } return $response; @@ -95,13 +95,11 @@ class JingDongService private function buildCargoes($extend) { return [ - [ - "quantity" => $extend["quantity"] ?? 1, - "goodsName" => "鲜花", - "volume" => ($extend['volume'] ?? 0) > 0 ? $extend['volume'] : 100, - "weight" => $extend['weight'] ?? 1, - "packageQty" => 1 - ] + "quantity" => $extend["quantity"] ?? 1, + "goodsName" => "鲜花", + "volume" => ($extend['volume'] ?? 0) > 0 ? $extend['volume'] : 100, + "weight" => $extend['weight'] ?? 1, + "packageQty" => 1 ]; } @@ -119,7 +117,7 @@ class JingDongService $path = "/freshmedicinedelivery/delivery/create/order/v1"; $pickupData = $pickup->toArray(); $body = [ - "orderId" => $pickupData['object_id'], + "orderId" => $pickupData['order_sn'], "senderContactRequest" => [ 'senderName' => $pickupData['sender_name'] ?? '', 'senderPhone' => $pickupData['sender_mobile'] ?? '', @@ -128,7 +126,7 @@ class JingDongService ], "customerCode" => $this->customerCode, "remark" => $pickup['note'] ?? '', - "salePlatform" => '0010001',//京东 + "salePlatform" => '0030001',//其他平台 "cargoesRequest" => $this->buildCargoes($pickup), "receiverContactRequest" => [ 'receiverName' => $pickupData['recipient_name'] ?? '', @@ -141,7 +139,7 @@ class JingDongService //"pickUpStartTime" => Carbon::today()->startOfDay()->addHours(19)->toDateTimeString(), //"pickUpEndTime" => Carbon::today()->startOfDay()->addHours(21)->toDateTimeString(), ]; - dd($body); + $response = $this->request($body, $path); return $response['data']; @@ -162,6 +160,27 @@ class JingDongService return $response['data']; } + public function pullData(Waybill $pickup) + { + //云打印 + $this->domain = "jdcloudprint"; + $path = "/PullDataService/pullData"; + $pickupData = $pickup->toArray(); + $body = [ + "cpCode" => "JD", + "wayBillInfos" => [[ + 'orderNo' => $pickupData['order_sn'], + 'jdWayBillCode' => $pickupData['waybill_code'], + ]], + "parameters" => ["ewCustomerCode" => $this->customerCode], + "objectId" => $pickupData['object_id'], + ]; + $response = $this->request($body, $path); + + return $response['prePrintDatas']; + } + + public function queryOrder(Waybill $pickup) { $path = "/ecap/v1/orders/details/query"; diff --git a/app/Services/WayBill/JingDong/WayBillService.php b/app/Services/WayBill/JingDong/WayBillService.php index 2b56101..7f591e5 100644 --- a/app/Services/WayBill/JingDong/WayBillService.php +++ b/app/Services/WayBill/JingDong/WayBillService.php @@ -8,22 +8,14 @@ use App\Models\ShopSender; use App\Models\ShopShip; use App\Models\Waybill; use App\Services\Business\KuaiTuanTuan\FaceSheet; -use App\Services\Ship\JingDong\JingDongService; class WayBillService { public $orders; public $objectId; public $adminUser; - // 快递便携式一联单 - public $sfOne = 'https://file-link.pinduoduo.com/sf_one'; - public $sfOneTemplate = 'sf_one1688973997895.xml'; - // 快递三联面单 - public $sfThree = 'https://file-link.pinduoduo.com/sf_three'; - public $sfThreeTemplate = 'sf_three1677381064344.xml'; // 标准模板 - public $sfStd = 'https://file-link.pinduoduo.com/sf_std'; - public $sfStdTemplate = 'sf_std1677380804913.xml'; + public $templateUrl = 'https://template-content.jd.com/template-oss?tempCode=jdkd76x130'; // 时效类型 public $timedDeliveryCode; @@ -36,61 +28,35 @@ class WayBillService // 已下单过的订单不再下单 $contents = []; $this->adminUser = auth('api')->user(); + $jingDongService = new JingDongService(); foreach ($this->orders as $shopId => $order) { // 订单取消的情况暂不处理 $shopSend = $this->getShopSend($shopId); foreach ($order as $item) { [$sender, $orderInfo, $senderConfig] = $this->prepareRequest($item, $shopSend); $waybill = $this->saveWayBill($item, $shopSend, $senderConfig); - if (empty($waybill->id)) { - $jingDongService = new JingDongService(); + if (empty($waybill->waybill_code)) { $resp = $jingDongService->createOrder($waybill); - - if (isset($resp['pdd_waybill_get_response'])) { - $data = $resp['pdd_waybill_get_response']['modules'][0]; - $printData = json_decode($data['print_data'], true); - $waybill->request_id = $resp['pdd_waybill_get_response']['request_id']; - $waybill->encryptedData = $printData['encryptedData']; - $waybill->signature = $printData['signature']; - $waybill->templateUrl = $printData['templateUrl']; - $waybill->ver = $printData['ver']; - $waybill->waybill_code = $data['waybill_code']; + if (isset($resp['waybillNo'])) { + $waybill->waybill_code = $resp['waybillNo']; $waybill->save(); - // 返回待打印内容 - $contents[$waybill->id] = [ - 'addData' => [ - 'sender' => $sender, - ], - 'encryptedData' => $printData['encryptedData'], - 'signature' => $printData['signature'], - 'templateUrl' => env('APP_URL') . '/ktt/' . $this->sfOneTemplate, // 电子面单模板 - 'ver' => $printData['ver'], - 'userid' => $waybill->user_id, - 'items' => $item['items'], - 'documentID' => $waybill->id, - 'order_id' => $item['id'], - 'participate_no' => $waybill->participate_no, - 'note' => $waybill->note, - ]; - event(new CreateLogisticEvent($shopShip->shop_id, $waybill->order_sn, $data['waybill_code'])); + //物流发货 + event(new CreateLogisticEvent($order->shop_id, $waybill->order_sn, $waybill->waybill_code)); } - } else { - $contents[$waybill->id] = [ - 'addData' => [ - 'sender' => $sender, - ], - 'encryptedData' => $waybill->encryptedData, - 'signature' => $waybill->signature, - 'templateUrl' => env('APP_URL') . '/ktt/' . $this->sfOneTemplate, // 电子面单模板 - 'ver' => $waybill->ver, - 'userid' => $waybill->user_id, - 'items' => json_decode($waybill->items, true), - 'documentID' => $waybill->id, - 'order_id' => $item['id'], - 'participate_no' => $waybill->participate_no, - 'note' => $waybill->note, - ]; } + //返回面单待打印数据 + if (empty($waybill->encryptedData)) { + // 延时0.5秒 防止订单查询不到 + usleep(0.5 * 1000000); + $resp = $jingDongService->pullData($waybill); + if (!empty($resp[0]['perPrintData'])) { + $waybill->templateUrl = $this->templateUrl; + $waybill->encryptedData = $resp[0]['perPrintData']; + $waybill->save(); + } + } + $contents[$item['id']] = $waybill; + } } @@ -129,7 +95,7 @@ class WayBillService ['order_sn' => $order['order_sn']] ); - $waybill->shop_id = $order->shop_id; + $waybill->shop_id = $order['shop_id']; $waybill->object_id = $this->objectId; $waybill->sender_country = $senderConfig['country']; @@ -138,7 +104,7 @@ class WayBillService $waybill->sender_district = $senderConfig['district']; $waybill->sender_detail = $senderConfig['detail']; $waybill->sender_name = $senderConfig['name']; - $waybill->sender_mobile = $senderConfig['mobile']; + $waybill->sender_mobile = (int)$senderConfig['mobile']; $waybill->recipient_province = $order['recipient_province']; $waybill->recipient_city = $order['recipient_city']; @@ -154,7 +120,7 @@ class WayBillService $waybill->participate_no = $order['participate_no']; $waybill->note = $order['note']; $waybill->items = json_encode($order['items'], 256); - + $waybill->save(); return $waybill; } @@ -231,7 +197,7 @@ class WayBillService 'name' => $order['recipient_name'], 'mobile' => $order['recipient_mobile'], ], - 'template_url' => $this->sfOne, + 'template_url' => $this->templateUrl, ]; return [$sender, $orderInfo, $senderConfig]; @@ -251,6 +217,7 @@ class WayBillService foreach ($orders as $order) { $info = [ 'id' => $order['id'], + 'shop_id' => $order['shop_id'], 'order_sn' => $order['order_sn'], 'recipient_province' => $order['receiver_address_province'], 'recipient_city' => $order['receiver_address_city'], diff --git a/extend/lop-opensdk-php/src/Support/DefaultExecutor.php b/extend/lop-opensdk-php/src/Support/DefaultExecutor.php index 204073a..b977db8 100644 --- a/extend/lop-opensdk-php/src/Support/DefaultExecutor.php +++ b/extend/lop-opensdk-php/src/Support/DefaultExecutor.php @@ -31,7 +31,7 @@ class DefaultExecutor implements Executor $uri = $this->baseUri . $request->getPath(); $httpRequest = new Request($request->getMethod(), $uri, $request->getHeaders(), $request->getBody()); - $client = new Client(); + $client = new Client(['verify' => false]); try { $httpResponse = $client->send($httpRequest, [ "query" => $request->getQueries(), From 2019a88fb98d6c3f50690c1cea0dfa1621e68b92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E5=BB=BA=E7=82=8A?= <924182103@qq.com> Date: Fri, 27 Dec 2024 11:05:33 +0800 Subject: [PATCH 3/8] =?UTF-8?q?=E4=BA=AC=E4=B8=9C=E6=89=93=E5=8D=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Business/BusinessOrderController.php | 11 +++-- .../Controllers/Shop/ShopSendsController.php | 2 +- app/Models/ShopSender.php | 2 + app/Models/Waybill.php | 4 ++ .../Business/KuaiTuanTuan/KuaiTuanTuan.php | 1 - .../WayBill/JingDong/JingDongService.php | 4 +- .../WayBill/JingDong/WayBillService.php | 10 +++++ ..._27_093407_add_field_to_waybills_table.php | 42 +++++++++++++++++++ 8 files changed, 68 insertions(+), 8 deletions(-) create mode 100644 database/migrations/2024_12_27_093407_add_field_to_waybills_table.php diff --git a/app/Http/Controllers/Business/BusinessOrderController.php b/app/Http/Controllers/Business/BusinessOrderController.php index fcf0bfc..9bb56cc 100644 --- a/app/Http/Controllers/Business/BusinessOrderController.php +++ b/app/Http/Controllers/Business/BusinessOrderController.php @@ -9,6 +9,7 @@ use App\Models\BusinessOrder; use App\Models\BusinessOrderItem; use App\Models\GoodsSku; use App\Models\Shop; +use App\Models\Waybill; use App\Services\WayBill\JingDong\WayBillService; use App\Utils\DateTimeUtils; use Carbon\Carbon; @@ -37,7 +38,7 @@ class BusinessOrderController extends Controller $builder->whereIn('id', $ids); } - if($request->get("is_export")){ + if ($request->get("is_export")) { $params = $request->validate([ 'confirm_at_start' => 'required', 'confirm_at_end' => 'required', @@ -52,7 +53,7 @@ class BusinessOrderController extends Controller throw new \Exception("导出时间超出一个月"); } - return Excel::download(new BusinessOrderExport($builder->get()->toArray()), $startDate . '~' . $endDate."订单数据" . '.xlsx'); + return Excel::download(new BusinessOrderExport($builder->get()->toArray()), $startDate . '~' . $endDate . "订单数据" . '.xlsx'); } $businessOrders = $builder->orderByDesc('confirm_at') ->paginate($request->get('per_page')); @@ -248,9 +249,11 @@ class BusinessOrderController extends Controller $orderIds = $request->input('order_ids'); $orderIds = explode(',', $orderIds); BusinessOrder::query() - ->where('id', $orderIds) + ->whereIn('id', $orderIds) ->increment('print_status'); - + Waybill::query() + ->where('order', $orderIds) + ->update(['status' => Waybill::$STATUS_PRINT_SUCCESS]); return response(['message' => 'success']); } } diff --git a/app/Http/Controllers/Shop/ShopSendsController.php b/app/Http/Controllers/Shop/ShopSendsController.php index e038ff9..1cefc0b 100644 --- a/app/Http/Controllers/Shop/ShopSendsController.php +++ b/app/Http/Controllers/Shop/ShopSendsController.php @@ -50,7 +50,7 @@ class ShopSendsController extends Controller 'district.required' => '请选择地区', 'detail.required' => '请填写详细地址', ]); - $params['wp_code'] = $params['wp_code'] ?? 'jd'; + $params['wp_code'] = $params['wp_code'] ?? 'JD'; $params['country'] = $params['country'] ?? '中国'; if (empty($params['id'])) { $shopSender = new ShopSender(); diff --git a/app/Models/ShopSender.php b/app/Models/ShopSender.php index da9826a..dafe573 100644 --- a/app/Models/ShopSender.php +++ b/app/Models/ShopSender.php @@ -2,10 +2,12 @@ namespace App\Models; +use App\Models\traits\Filter; use Illuminate\Database\Eloquent\Model; class ShopSender extends Model { + use Filter; protected $guarded = []; //查询字段 diff --git a/app/Models/Waybill.php b/app/Models/Waybill.php index e32a169..b920338 100644 --- a/app/Models/Waybill.php +++ b/app/Models/Waybill.php @@ -10,4 +10,8 @@ class Waybill extends Model public static $BUSINESS_EXPRESS_CODE = 247; public static $AIR_FREIGHT_CODE = 266; + + public static $STATUS_CREATE_WAYBILL_CODE = 1; + public static $STATUS_CREATE_WAYBILL_ENCRYPTED_DATA = 2; + public static $STATUS_PRINT_SUCCESS = 3; } diff --git a/app/Services/Business/KuaiTuanTuan/KuaiTuanTuan.php b/app/Services/Business/KuaiTuanTuan/KuaiTuanTuan.php index d13c07d..1d8af29 100644 --- a/app/Services/Business/KuaiTuanTuan/KuaiTuanTuan.php +++ b/app/Services/Business/KuaiTuanTuan/KuaiTuanTuan.php @@ -374,7 +374,6 @@ class KuaiTuanTuan extends BusinessClient public function createLogistic($orderSn, $waybillNo) { [$type, $appendParams] = Order::createOrderLogistic($orderSn, $waybillNo); - return $this->doRequest($type, $appendParams); } diff --git a/app/Services/WayBill/JingDong/JingDongService.php b/app/Services/WayBill/JingDong/JingDongService.php index da1bde0..44b35ea 100644 --- a/app/Services/WayBill/JingDong/JingDongService.php +++ b/app/Services/WayBill/JingDong/JingDongService.php @@ -136,8 +136,8 @@ class JingDongService "channelOrderId" => $pickupData['order_sn'], "promiseTimeType" => 26,//22:医药冷链 26:冷链专送,29医药专送 "goodsType" => 7,//1:普通,2:生鲜常温,5:鲜活,6:控温,7:冷藏,8:冷冻,9:深冷;21:医药冷藏,23:医药控温,24:医药常温,25:医药冷冻,27:医药深冷 - //"pickUpStartTime" => Carbon::today()->startOfDay()->addHours(19)->toDateTimeString(), - //"pickUpEndTime" => Carbon::today()->startOfDay()->addHours(21)->toDateTimeString(), + //"pickUpStartTime" => Carbon::today()->startOfDay()->addDays(2)->addHours(19)->toDateTimeString(), + //"pickUpEndTime" => Carbon::today()->startOfDay()->addDays(2)->addHours(21)->toDateTimeString(), ]; $response = $this->request($body, $path); diff --git a/app/Services/WayBill/JingDong/WayBillService.php b/app/Services/WayBill/JingDong/WayBillService.php index 7f591e5..c4e5ecb 100644 --- a/app/Services/WayBill/JingDong/WayBillService.php +++ b/app/Services/WayBill/JingDong/WayBillService.php @@ -3,6 +3,8 @@ namespace App\Services\WayBill\JingDong; use App\Events\CreateLogisticEvent; +use App\Http\Enum\BusinessOrderShippingStatus; +use App\Models\BusinessOrder; use App\Models\GoodsSku; use App\Models\ShopSender; use App\Models\ShopShip; @@ -38,6 +40,7 @@ class WayBillService if (empty($waybill->waybill_code)) { $resp = $jingDongService->createOrder($waybill); if (isset($resp['waybillNo'])) { + $waybill->status = Waybill::$STATUS_CREATE_WAYBILL_CODE; $waybill->waybill_code = $resp['waybillNo']; $waybill->save(); //物流发货 @@ -50,6 +53,7 @@ class WayBillService usleep(0.5 * 1000000); $resp = $jingDongService->pullData($waybill); if (!empty($resp[0]['perPrintData'])) { + $waybill->status = Waybill::$STATUS_CREATE_WAYBILL_ENCRYPTED_DATA; $waybill->templateUrl = $this->templateUrl; $waybill->encryptedData = $resp[0]['perPrintData']; $waybill->save(); @@ -215,6 +219,12 @@ class WayBillService $orders = $orders->toArray(); // 订单拆分组合 foreach ($orders as $order) { + if ($order['shipping_status'] != BusinessOrderShippingStatus::UNSHIP) { + continue; + } + if ($order['cancel_status'] == 1) { + continue; + } $info = [ 'id' => $order['id'], 'shop_id' => $order['shop_id'], diff --git a/database/migrations/2024_12_27_093407_add_field_to_waybills_table.php b/database/migrations/2024_12_27_093407_add_field_to_waybills_table.php new file mode 100644 index 0000000..e966ec0 --- /dev/null +++ b/database/migrations/2024_12_27_093407_add_field_to_waybills_table.php @@ -0,0 +1,42 @@ +integer('status')->default(0)->comment('状态 0待申请物流单 1已申请物流 2已申请面单 3已打印'); + $table->index('order_id'); + $table->index('order_sn'); + $table->index('waybill_code'); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('waybills', function (Blueprint $table) { + // + $table->dropColumn('status'); + $table->dropIndex('order_id'); + $table->dropIndex('order_sn'); + $table->dropIndex('waybill_code'); + }); + } +} From 0cd78ff136971557b736a8536a83571c97d782b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E5=BB=BA=E7=82=8A?= <924182103@qq.com> Date: Sat, 28 Dec 2024 11:13:17 +0800 Subject: [PATCH 4/8] =?UTF-8?q?=E4=BA=AC=E4=B8=9C=E6=89=93=E5=8D=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Filters/BusinessOrderFilter.php | 3 ++ .../Business/BusinessOrderController.php | 20 ++++++++-- .../Business/WaybillController.php | 38 +++++++++++++++++++ app/Listeners/CreateLogisticListener.php | 7 ++-- app/Models/BusinessOrder.php | 7 ++++ .../WayBill/JingDong/JingDongService.php | 16 +++++++- .../WayBill/JingDong/WayBillService.php | 7 +++- routes/api.php | 1 + 8 files changed, 90 insertions(+), 9 deletions(-) create mode 100644 app/Http/Controllers/Business/WaybillController.php diff --git a/app/Filters/BusinessOrderFilter.php b/app/Filters/BusinessOrderFilter.php index d76a7bb..3789e8f 100644 --- a/app/Filters/BusinessOrderFilter.php +++ b/app/Filters/BusinessOrderFilter.php @@ -10,6 +10,9 @@ class BusinessOrderFilter extends Filters { protected function ids($value) { + if(is_string($value)){ + $value = explode(",", $value); + } return $this->builder->whereIn('id', $value); } diff --git a/app/Http/Controllers/Business/BusinessOrderController.php b/app/Http/Controllers/Business/BusinessOrderController.php index 9bb56cc..4653c5d 100644 --- a/app/Http/Controllers/Business/BusinessOrderController.php +++ b/app/Http/Controllers/Business/BusinessOrderController.php @@ -16,6 +16,7 @@ use Carbon\Carbon; use Illuminate\Http\Request; use App\Http\Resources\BusinessOrderResource; use Illuminate\Support\Facades\DB; +use Illuminate\Support\Facades\Log; use Maatwebsite\Excel\Facades\Excel; class BusinessOrderController extends Controller @@ -28,12 +29,20 @@ class BusinessOrderController extends Controller $builder = BusinessOrder::query() ->with([ 'shop:id,name', - 'items:id,business_order_id,goods_name,goods_number,external_sku_id' + 'items:id,business_order_id,goods_name,goods_number,external_sku_id', + "waybill" ]) ->whereIn('shop_id', $shopIds) ->filter(); $externalSkuIds = $request->get('external_sku_ids'); + $externalSkuId = $request->get('external_sku_id'); + if (!empty($externalSkuId)) { + $externalSkuIds = $externalSkuId; + } if ($externalSkuIds) { + if (is_string($externalSkuIds)) { + $externalSkuIds = explode(",", $externalSkuIds); + } $ids = BusinessOrderItem::query()->whereIn('external_sku_id', $externalSkuIds)->pluck('business_order_id'); $builder->whereIn('id', $ids); } @@ -170,6 +179,7 @@ class BusinessOrderController extends Controller public function print(Request $request) { + $shopIds = Shop::query() ->where('plat_id', Shop::$PLAT_KTT) ->pluck('id'); @@ -178,11 +188,15 @@ class BusinessOrderController extends Controller ->whereIn('shop_id', $shopIds) ->filter(); $externalSkuIds = $request->get('external_sku_ids'); + if ($externalSkuIds) { $ids = BusinessOrderItem::query()->whereIn('external_sku_id', $externalSkuIds)->pluck('business_order_id'); $builder->whereIn('id', $ids); } if ($ids = $request->input('ids')) { + if (is_string($ids)) { + $ids = explode(",", $ids); + } $builder->whereIn('id', $ids); } $businessOrders = $builder->get(); @@ -250,9 +264,9 @@ class BusinessOrderController extends Controller $orderIds = explode(',', $orderIds); BusinessOrder::query() ->whereIn('id', $orderIds) - ->increment('print_status'); + ->update(['print_status' => 1]); Waybill::query() - ->where('order', $orderIds) + ->where('order_id', $orderIds) ->update(['status' => Waybill::$STATUS_PRINT_SUCCESS]); return response(['message' => 'success']); } diff --git a/app/Http/Controllers/Business/WaybillController.php b/app/Http/Controllers/Business/WaybillController.php new file mode 100644 index 0000000..0dd4ad1 --- /dev/null +++ b/app/Http/Controllers/Business/WaybillController.php @@ -0,0 +1,38 @@ +validate([ + 'order_id' => 'required', + ], [ + 'order_id.required' => '订单id', + ]); + $waybill = Waybill::query()->where("order_id", $params['order_id'])->firstOrFail(); + $jingDongService = new JingDongService(); + return $jingDongService->queryTrace($waybill); + } + + +} diff --git a/app/Listeners/CreateLogisticListener.php b/app/Listeners/CreateLogisticListener.php index bb83023..7c07758 100644 --- a/app/Listeners/CreateLogisticListener.php +++ b/app/Listeners/CreateLogisticListener.php @@ -3,6 +3,7 @@ namespace App\Listeners; use App\Events\CreateLogisticEvent; +use App\Models\BusinessOrder; use App\Models\Shop; use App\Services\Business\BusinessFactory; use Illuminate\Contracts\Queue\ShouldQueue; @@ -27,13 +28,13 @@ class CreateLogisticListener implements ShouldQueue /** * Handle the event. * - * @param CreateLogisticEvent $event + * @param CreateLogisticEvent $event * @return void */ public function handle(CreateLogisticEvent $event) { - $shop = Shop::query()->findOrFail($event->shopId); + $shop = Shop::query()->findOrFail($event->shopId);; $client = BusinessFactory::init()->make($shop['plat_id'])->setShop($shop); - $client->createLogistic($event->orderSn, $event->waybillNo); + //$client->createLogistic($event->orderSn, $event->waybillNo); } } diff --git a/app/Models/BusinessOrder.php b/app/Models/BusinessOrder.php index 166c9a1..1e954e8 100644 --- a/app/Models/BusinessOrder.php +++ b/app/Models/BusinessOrder.php @@ -23,6 +23,8 @@ class BusinessOrder extends Model 'print_status', 'ids', 'pno', + 'order_sn', + 'id', ]; protected $fillable = [ @@ -72,4 +74,9 @@ class BusinessOrder extends Model { return $this->belongsTo(Shop::class, 'shop_id', 'id'); } + + public function waybill() + { + return $this->belongsTo(Waybill::class, 'id', 'order_id'); + } } diff --git a/app/Services/WayBill/JingDong/JingDongService.php b/app/Services/WayBill/JingDong/JingDongService.php index 44b35ea..ab53300 100644 --- a/app/Services/WayBill/JingDong/JingDongService.php +++ b/app/Services/WayBill/JingDong/JingDongService.php @@ -86,7 +86,7 @@ class JingDongService $response = json_decode($response->getBody(), true); Log::info("京东返回请求response", [$response]); if (!isset($response['code']) || ($response['code'] != 0 && $response['code'] != 1 && $response['code'] != 1000)) { - throw new \Exception($response['msg'] ?? "code异常"); + throw new \Exception($response['message'] ?? "code异常"); } return $response; } @@ -226,5 +226,19 @@ class JingDongService return $response['data']; } + public function queryTrace(Waybill $pickup) + { + $path = "/freshmedicinedelivery/delivery/query/waybill/gis/v1"; + $pickupData = $pickup->toArray(); + $body = [ + "waybillNo" => $pickupData['waybill_code'] ?? '', + "customerCode" => $this->customerCode, + ]; + $response = $this->request($body, $path); + + return $response['data']; + } + + } diff --git a/app/Services/WayBill/JingDong/WayBillService.php b/app/Services/WayBill/JingDong/WayBillService.php index c4e5ecb..88d1559 100644 --- a/app/Services/WayBill/JingDong/WayBillService.php +++ b/app/Services/WayBill/JingDong/WayBillService.php @@ -44,7 +44,7 @@ class WayBillService $waybill->waybill_code = $resp['waybillNo']; $waybill->save(); //物流发货 - event(new CreateLogisticEvent($order->shop_id, $waybill->order_sn, $waybill->waybill_code)); + event(new CreateLogisticEvent($waybill->shop_id, $waybill->order_sn, $waybill->waybill_code)); } } //返回面单待打印数据 @@ -239,6 +239,7 @@ class WayBillService 'note' => $order['business_note'] ? $order['business_note'] . ',' . $order['buyer_memo'] : $order['buyer_memo'], 'items' => [] ]; + $note = ""; foreach ($order['items'] as $item) { $count = $item['goods_number'] - $item['already_cancel_number']; $info['items'][] = [ @@ -248,8 +249,10 @@ class WayBillService 'count' => $count, 'external_sku_id' => $item['external_sku_id'], ]; - + $note .= $item['goods_name'] . " " . $count . "件,"; } + $note .= "[备注:" . $info['note'] . "]"; + $info['note'] = $note; $this->orders[$order['shop_id']][] = $info; } diff --git a/routes/api.php b/routes/api.php index c6a325b..84eb2e8 100644 --- a/routes/api.php +++ b/routes/api.php @@ -72,6 +72,7 @@ Route::middleware(['auth:api', 'check.permissions'])->group(function () { Route::get('shop/ship', [ShipController::class, 'index'])->name('shop_ship.index'); Route::get('print/orders', [BusinessOrderController::class, 'print'])->name('order.print'); Route::put('print/success', [BusinessOrderController::class, 'printSuccess'])->name('order.printSuccess'); + Route::get('waybill/queryTrace', [\App\Http\Controllers\Business\WaybillController::class, 'queryTrace']); // 发货信息 Route::get('shop/ship/senders', [ShipController::class, 'getSenders'])->name('shop_ship.senders.get'); Route::post('shop/ship/senders', [ShipController::class, 'saveSenders'])->name('shop_ship.senders.save'); From 4c69014a1279d7ef02c239795c1c411ab3b7acfb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E5=BB=BA=E7=82=8A?= <924182103@qq.com> Date: Sat, 28 Dec 2024 15:32:20 +0800 Subject: [PATCH 5/8] =?UTF-8?q?=E4=BA=AC=E4=B8=9C=E6=89=93=E5=8D=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Events/CancelLogisticEvent.php | 40 +++++++++++++++++++ .../Business/BusinessOrderController.php | 1 - .../Business/WaybillController.php | 36 +++++++++++++++++ app/Listeners/CancelLogisticListener.php | 6 +-- app/Listeners/CreateLogisticListener.php | 6 +-- app/Models/Waybill.php | 1 + app/Providers/EventServiceProvider.php | 4 ++ app/Services/Business/BusinessClient.php | 5 ++- routes/api.php | 1 + routes/console.php | 3 ++ 10 files changed, 91 insertions(+), 12 deletions(-) create mode 100644 app/Events/CancelLogisticEvent.php diff --git a/app/Events/CancelLogisticEvent.php b/app/Events/CancelLogisticEvent.php new file mode 100644 index 0000000..6801b08 --- /dev/null +++ b/app/Events/CancelLogisticEvent.php @@ -0,0 +1,40 @@ +shopId = $shopId; + $this->orderSn = $orderSn; + } + + /** + * Get the channels the event should broadcast on. + * + * @return \Illuminate\Broadcasting\Channel|array + */ + public function broadcastOn() + { + return new PrivateChannel('channel-name'); + } +} diff --git a/app/Http/Controllers/Business/BusinessOrderController.php b/app/Http/Controllers/Business/BusinessOrderController.php index 4653c5d..12955fc 100644 --- a/app/Http/Controllers/Business/BusinessOrderController.php +++ b/app/Http/Controllers/Business/BusinessOrderController.php @@ -179,7 +179,6 @@ class BusinessOrderController extends Controller public function print(Request $request) { - $shopIds = Shop::query() ->where('plat_id', Shop::$PLAT_KTT) ->pluck('id'); diff --git a/app/Http/Controllers/Business/WaybillController.php b/app/Http/Controllers/Business/WaybillController.php index 0dd4ad1..9765351 100644 --- a/app/Http/Controllers/Business/WaybillController.php +++ b/app/Http/Controllers/Business/WaybillController.php @@ -2,6 +2,8 @@ namespace App\Http\Controllers\Business; +use App\Events\BusinessOrderCancelEvent; +use App\Events\CancelLogisticEvent; use App\Exports\BusinessOrderExport; use App\Exports\OrderBlankExport; use App\Http\Controllers\Controller; @@ -10,6 +12,7 @@ use App\Models\BusinessOrderItem; use App\Models\GoodsSku; use App\Models\Shop; use App\Models\Waybill; +use App\Services\Business\BusinessFactory; use App\Services\WayBill\JingDong\JingDongService; use App\Services\WayBill\JingDong\WayBillService; use App\Utils\DateTimeUtils; @@ -34,5 +37,38 @@ class WaybillController extends Controller return $jingDongService->queryTrace($waybill); } + public function cancel(Request $request) + { + $params = $request->validate([ + 'order_id' => 'required', + ], [ + 'order_id.required' => '订单id', + ]); + $waybill = Waybill::query()->where("order_id", $params['order_id'])->firstOrFail(); + if (empty($waybill->waybill_code)) { + throw new \Exception("无快递单号可取消"); + } + try{ + //取消快团团物流 + $shop = Shop::query()->findOrFail($waybill->shop_id); + $client = BusinessFactory::init()->make($shop['plat_id'])->setShop($shop); + $client->cancelLogistic($waybill->order_sn, $waybill->waybill_code); + //取消京东物流 + $jingDongService = new JingDongService(); + $jingDongService->cancelOrder($waybill); + }catch(\Exception $exception) { + Log::error("取消快团团或者京东物流异常", ["error" => $exception->getMessage()]); + } + + + $waybill->waybill_code = ''; + $waybill->encryptedData = ''; + $waybill->status = Waybill::$STATUS_INIT; + $waybill->cancel = 1; + $waybill->save(); + BusinessOrder::query()->where("id", $params['order_id'])->update(['print_status' => 0]); + + return response(['message' => 'success']); + } } diff --git a/app/Listeners/CancelLogisticListener.php b/app/Listeners/CancelLogisticListener.php index d894b00..fa847e8 100644 --- a/app/Listeners/CancelLogisticListener.php +++ b/app/Listeners/CancelLogisticListener.php @@ -2,6 +2,7 @@ namespace App\Listeners; +use App\Events\CancelLogisticEvent; use App\Events\CreateLogisticEvent; use App\Models\Shop; use App\Models\Waybill; @@ -11,9 +12,6 @@ use Illuminate\Queue\InteractsWithQueue; class CancelLogisticListener implements ShouldQueue { - public $connection = 'redis'; - - public $queue = 'listeners'; /** * Create the event listener. @@ -31,7 +29,7 @@ class CancelLogisticListener implements ShouldQueue * @param CreateLogisticEvent $event * @return void */ - public function handle(CreateLogisticEvent $event) + public function handle(CancelLogisticEvent $event) { $waybillNo = Waybill::query() ->where('shop_id', $event->shopId) diff --git a/app/Listeners/CreateLogisticListener.php b/app/Listeners/CreateLogisticListener.php index 7c07758..183f9cc 100644 --- a/app/Listeners/CreateLogisticListener.php +++ b/app/Listeners/CreateLogisticListener.php @@ -11,10 +11,6 @@ use Illuminate\Queue\InteractsWithQueue; class CreateLogisticListener implements ShouldQueue { - public $connection = 'redis'; - - public $queue = 'listeners'; - /** * Create the event listener. * @@ -35,6 +31,6 @@ class CreateLogisticListener implements ShouldQueue { $shop = Shop::query()->findOrFail($event->shopId);; $client = BusinessFactory::init()->make($shop['plat_id'])->setShop($shop); - //$client->createLogistic($event->orderSn, $event->waybillNo); + $client->createLogistic($event->orderSn, $event->waybillNo); } } diff --git a/app/Models/Waybill.php b/app/Models/Waybill.php index b920338..0b92974 100644 --- a/app/Models/Waybill.php +++ b/app/Models/Waybill.php @@ -11,6 +11,7 @@ class Waybill extends Model public static $BUSINESS_EXPRESS_CODE = 247; public static $AIR_FREIGHT_CODE = 266; + public static $STATUS_INIT = 0; public static $STATUS_CREATE_WAYBILL_CODE = 1; public static $STATUS_CREATE_WAYBILL_ENCRYPTED_DATA = 2; public static $STATUS_PRINT_SUCCESS = 3; diff --git a/app/Providers/EventServiceProvider.php b/app/Providers/EventServiceProvider.php index 4947c35..5c6abd0 100644 --- a/app/Providers/EventServiceProvider.php +++ b/app/Providers/EventServiceProvider.php @@ -3,6 +3,7 @@ namespace App\Providers; use App\Events\BusinessOrdersUpdate; +use App\Events\CancelLogisticEvent; use App\Events\StockUpdateEvent; use App\Events\GroupSetEvent; use App\Events\BatchStockUpdateEvent; @@ -47,6 +48,9 @@ class EventServiceProvider extends ServiceProvider CreateLogisticEvent::class => [ CreateLogisticListener::class ], + CancelLogisticEvent::class => [ + CancelLogisticListener::class + ], ]; /** diff --git a/app/Services/Business/BusinessClient.php b/app/Services/Business/BusinessClient.php index 1cbe5fc..99f8ef7 100644 --- a/app/Services/Business/BusinessClient.php +++ b/app/Services/Business/BusinessClient.php @@ -4,6 +4,7 @@ namespace App\Services\Business; use App\Events\BusinessOrderCancelEvent; use App\Events\BusinessOrdersUpdate; +use App\Events\CancelLogisticEvent; use App\Models\BusinessGoodsSku; use App\Models\BusinessOrder; use App\Models\BusinessOrderItem; @@ -55,7 +56,7 @@ abstract class BusinessClient $orderRecord->update($order); } if (!empty($order['cancel_status'])) { - event(new BusinessOrderCancelEvent($shopId, $order['order_sn'])); + event(new CancelLogisticEvent($shopId, $order['order_sn'])); } $goodsSkuNum = 0; foreach ($order['sub_order_list'] as $item) { @@ -154,7 +155,7 @@ abstract class BusinessClient 'headers' => ['Content-type' => 'application/x-www-form-urlencoded;charset=UTF-8'], 'form_params' => $params ]; - $res = (new Client())->request($method, $url, $headers); + $res = (new Client(['verify'=>false]))->request($method, $url, $headers); $size = $res->getBody()->getSize(); $res = json_decode($res->getBody()->getContents(), true); $paramsJson = json_encode($params, 256); diff --git a/routes/api.php b/routes/api.php index 84eb2e8..02cd6e0 100644 --- a/routes/api.php +++ b/routes/api.php @@ -73,6 +73,7 @@ Route::middleware(['auth:api', 'check.permissions'])->group(function () { Route::get('print/orders', [BusinessOrderController::class, 'print'])->name('order.print'); Route::put('print/success', [BusinessOrderController::class, 'printSuccess'])->name('order.printSuccess'); Route::get('waybill/queryTrace', [\App\Http\Controllers\Business\WaybillController::class, 'queryTrace']); + Route::post('waybill/cancel', [\App\Http\Controllers\Business\WaybillController::class, 'cancel']); // 发货信息 Route::get('shop/ship/senders', [ShipController::class, 'getSenders'])->name('shop_ship.senders.get'); Route::post('shop/ship/senders', [ShipController::class, 'saveSenders'])->name('shop_ship.senders.save'); diff --git a/routes/console.php b/routes/console.php index 75dd0cd..dff17a1 100644 --- a/routes/console.php +++ b/routes/console.php @@ -1,5 +1,6 @@ find(6582); + BusinessFactory::init()->make($order->shop->plat_id)->setShop($order->shop)->queryStatusAndSync($order); $this->comment(Inspiring::quote()); })->describe('Display an inspiring quote'); From eea05ef82866e908939e023de4154aaf6302c8b2 Mon Sep 17 00:00:00 2001 From: "DESKTOP-8FGKA8Q\\chunfen" Date: Sat, 28 Dec 2024 15:40:08 +0800 Subject: [PATCH 6/8] =?UTF-8?q?=E4=BA=AC=E4=B8=9C=E6=89=93=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/frontend/src/api/plat.js | 8 + resources/frontend/src/api/shop.js | 16 + .../frontend/src/components/shop/address.vue | 174 +++++++ .../src/views/plat/orderList - 副本.vue | 489 ++++++++++++++++++ .../frontend/src/views/plat/orderList.vue | 434 +++++++++------- resources/frontend/src/views/store/store.vue | 55 +- 6 files changed, 975 insertions(+), 201 deletions(-) create mode 100644 resources/frontend/src/components/shop/address.vue create mode 100644 resources/frontend/src/views/plat/orderList - 副本.vue diff --git a/resources/frontend/src/api/plat.js b/resources/frontend/src/api/plat.js index c3bda46..9462f80 100644 --- a/resources/frontend/src/api/plat.js +++ b/resources/frontend/src/api/plat.js @@ -96,3 +96,11 @@ export function exportAfterOrder(params) { responseType: 'blob' }) } + +export function getPrintInfo(params) { + return http({ + url: "/api/print/orders", + method: "get", + params + }) +} diff --git a/resources/frontend/src/api/shop.js b/resources/frontend/src/api/shop.js index f044b71..d9a3d37 100644 --- a/resources/frontend/src/api/shop.js +++ b/resources/frontend/src/api/shop.js @@ -82,3 +82,19 @@ export function orderRest(params) { method: 'get', }) } + +export function shopAddress(params) { + return http({ + url: "/api/shop_sends", + method: "get", + params, + }); +} + +export function updateShopAddress(params) { + return http({ + url: '/api/shop_sends', + method: 'post', + params + }) +} diff --git a/resources/frontend/src/components/shop/address.vue b/resources/frontend/src/components/shop/address.vue new file mode 100644 index 0000000..f586248 --- /dev/null +++ b/resources/frontend/src/components/shop/address.vue @@ -0,0 +1,174 @@ + + + + + \ No newline at end of file diff --git a/resources/frontend/src/views/plat/orderList - 副本.vue b/resources/frontend/src/views/plat/orderList - 副本.vue new file mode 100644 index 0000000..0d505c1 --- /dev/null +++ b/resources/frontend/src/views/plat/orderList - 副本.vue @@ -0,0 +1,489 @@ + + + + + diff --git a/resources/frontend/src/views/plat/orderList.vue b/resources/frontend/src/views/plat/orderList.vue index 69dceb6..ae47acc 100644 --- a/resources/frontend/src/views/plat/orderList.vue +++ b/resources/frontend/src/views/plat/orderList.vue @@ -18,6 +18,10 @@ + + + + @@ -60,20 +64,31 @@ - - - + + + + + + + + + + + + + + 筛选 重置筛选 - 打印 + 打印 数据导出 @@ -83,7 +98,8 @@ - + +
\ No newline at end of file +erp
\ No newline at end of file diff --git a/public/dist/js/147.53e38aa6.js b/public/dist/js/147.34297e9a.js similarity index 75% rename from public/dist/js/147.53e38aa6.js rename to public/dist/js/147.34297e9a.js index 5f02f70..9d81370 100644 --- a/public/dist/js/147.53e38aa6.js +++ b/public/dist/js/147.34297e9a.js @@ -1,2 +1,2 @@ -(self["webpackChunkerp"]=self["webpackChunkerp"]||[]).push([[147],{8810:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return f}});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"pageBox"},[e("div",{staticClass:"cardBox"},[e("div",{staticClass:"searchBox"},[e("div",{staticClass:"row"},[e("span",[t._v("店铺:")]),e("el-select",{attrs:{placeholder:"店铺"},on:{change:function(e){return t.handleSearch()}},model:{value:t.filter.shop_id,callback:function(e){t.$set(t.filter,"shop_id",e)},expression:"filter.shop_id"}},t._l(t.shopsList,(function(t){return e("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1)],1),e("div",{staticClass:"row"},[e("span",[t._v("售后单状态:")]),e("el-select",{attrs:{placeholder:"请选择"},on:{change:function(e){return t.handleSearch()}},model:{value:t.filter.after_sales_status,callback:function(e){t.$set(t.filter,"after_sales_status",e)},expression:"filter.after_sales_status"}},t._l(t.statusList,(function(t){return e("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1)],1),e("div",{staticClass:"row"},[e("span",[t._v("订单编号:")]),e("el-input",{attrs:{clearable:""},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.handleSearch.apply(null,arguments)}},model:{value:t.filter.order_sn,callback:function(e){t.$set(t.filter,"order_sn",e)},expression:"filter.order_sn"}})],1),e("div",{staticClass:"row"},[e("span",[t._v("售后单编号:")]),e("el-input",{attrs:{clearable:""},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.handleSearch.apply(null,arguments)}},model:{value:t.filter.after_sales_biz_sn,callback:function(e){t.$set(t.filter,"after_sales_biz_sn",e)},expression:"filter.after_sales_biz_sn"}})],1),e("div",{staticClass:"row"},[e("span",[t._v("创建时间:")]),e("el-date-picker",{staticStyle:{width:"340px"},attrs:{type:"datetimerange","range-separator":"-","start-placeholder":"开始时间","end-placeholder":"结束时间","value-format":"yyyy-MM-dd HH:mm:ss"},on:{change:function(e){return t.handleSearch()}},model:{value:t.addTime,callback:function(e){t.addTime=e},expression:"addTime"}})],1),e("div",{staticClass:"row"},[e("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:t.handleSearch}},[t._v("筛选")]),e("el-button",{attrs:{type:"warning",loading:t.exportLoading,icon:"el-icon-download"},on:{click:t.handleExport}},[t._v("数据导出")])],1)])]),e("el-card",[e("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:t.afterList,border:""}},[e("el-table-column",{attrs:{prop:"after_sales_biz_sn",label:"售后单编号"}}),e("el-table-column",{attrs:{prop:"order_sn",label:"父订单编号"}}),e("el-table-column",{attrs:{label:"店铺"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("span",[t._v(t._s(t.Shops[n.row.shop_id]))])]}}])}),e("el-table-column",{attrs:{prop:"refund_amount",label:"退款金额"}}),e("el-table-column",{attrs:{prop:"refund_shipping_amount",label:"用户申请退运费金额"}}),e("el-table-column",{attrs:{prop:"reason",label:"退款原因"}}),e("el-table-column",{attrs:{prop:"description",label:"描述"}}),e("el-table-column",{attrs:{label:"退款图片",width:"220"},scopedSlots:t._u([{key:"default",fn:function(n){return[n.row.image_list?e("div",{staticClass:"imgBox"},t._l(n.row.image_list,(function(t,r){return e("el-image",{key:r,staticClass:"img",attrs:{src:t,"preview-src-list":n.row.image_list}})})),1):t._e()]}}])}),e("el-table-column",{attrs:{prop:"apply_type",label:"申请类型"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("span",[t._v(t._s(t.APPLYTYPE[n.row.apply_type]))])]}}])}),e("el-table-column",{attrs:{label:"售后单状态"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("span",[t._v(t._s(t.STATUS[n.row.after_sales_status]))])]}}])}),e("el-table-column",{attrs:{prop:"after_sale_created_at",label:"售后单创建时间"}})],1),e("div",{staticClass:"page-pagination"},[e("el-pagination",{attrs:{"current-page":t.page,"page-sizes":[10,20,50,100],"page-size":t.pageSize,layout:"prev, pager, next, sizes, total, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1)],1)],1)},a=[],s=(n(8858),n(1318),n(3228),n(5522)),i=n(9998),o=n(7484),u=n.n(o),c={data(){return{loading:!1,page:1,pageSize:10,total:0,afterList:[],filter:{shop_id:"",after_sales_status:"",order_sn:"",after_sales_biz_sn:""},shopsList:[],Shops:{},addTime:[],statusList:[{id:0,name:"未发起售后"},{id:1,name:"退款中"},{id:2,name:"退款成功"},{id:3,name:"待处理"},{id:4,name:"拒绝退款"},{id:6,name:"待(顾客)退货"},{id:7,name:"待(团长)确认退货"},{id:8,name:"(顾客)撤销"},{id:9,name:"(系统)关闭"}],STATUS:{0:"未发起售后",1:"退款中",2:"退款成功",3:"待处理",4:"拒绝退款",6:"待(顾客)退货",7:"待(团长)确认退货",8:"(顾客)撤销",9:"(系统)关闭"},APPLYTYPE:{0:"仅退款",1:"退货退款"},exportLoading:!1}},methods:{fetchList(){this.loading=!0;let t={page:this.page,per_page:this.pageSize,...this.filter,created_at_start:this.addTime?this.addTime[0]:"",created_at_end:this.addTime?this.addTime[1]:""};(0,s.Hf)(t).then((t=>{this.afterList=t.data.data,this.total=t.data.meta.total,this.loading=!1})).catch((()=>{this.loading=!1}))},handleSizeChange(t){this.page=1,this.pageSize=t,this.fetchList()},handleCurrentChange(t){this.page=t,this.fetchList()},handleSearch(){this.page=1,this.fetchList()},getShopsList(){let t={page:1,per_page:999};(0,i.nH)(t).then((t=>{this.shopsList=t.data.data,t.data.data.forEach((t=>{this.Shops[t.id]=t.name}))}))},handleExport(){this.exportLoading=!0;let t={...this.filter,created_at_start:this.addTime?this.addTime[0]:"",created_at_end:this.addTime?this.addTime[1]:"",is_export:1};(0,s.cb)(t).then((t=>{console.log(t.data),this.downLoadXls(t.data),this.$message({type:"success",message:"导出成功!"}),this.exportLoading=!1})).catch((()=>{this.exportLoading=!1}))},downLoadXls(t){const e=t,n=new Blob([e]),r=(new Date).toLocaleDateString(),a=`售后单列表${r}.xlsx`;if("download"in document.createElement("a")){const t=document.createElement("a");t.download=a,t.style.display="none",t.href=URL.createObjectURL(n),document.body.appendChild(t),t.click(),URL.revokeObjectURL(t.href),document.body.removeChild(t)}else navigator.msSaveBlob(n,a)},objectToQueryString(t){return Object.keys(t).map((e=>encodeURIComponent(e)+"="+(t[e]?encodeURIComponent(t[e]):""))).join("&")}},mounted(){let t=u()().format("YYYY-MM-DD")+" 23:59:59",e=u()().subtract(30,"day").format("YYYY-MM-DD")+" 00:00:00";this.addTime=[e,t],this.getShopsList(),this.fetchList()}},l=c,d=n(1001),h=(0,d.Z)(l,r,a,!1,null,"6c4b71cd",null),f=h.exports},7484:function(t){!function(e,n){t.exports=n()}(0,(function(){"use strict";var t=1e3,e=6e4,n=36e5,r="millisecond",a="second",s="minute",i="hour",o="day",u="week",c="month",l="quarter",d="year",h="date",f="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],n=t%100;return"["+t+(e[(n-20)%10]||e[n]||e[0])+"]"}},_=function(t,e,n){var r=String(t);return!r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},v={s:_,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),a=n%60;return(e<=0?"+":"-")+_(r,2,"0")+":"+_(a,2,"0")},m:function t(e,n){if(e.date()1)return t(i[0])}else{var o=e.name;$[o]=e,a=o}return!r&&a&&(y=a),a||!r&&y},k=function(t,e){if(S(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new D(n)},M=v;M.l=w,M.i=S,M.w=function(t,e){return k(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var D=function(){function g(t){this.$L=w(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[b]=!0}var _=g.prototype;return _.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(M.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match(p);if(r){var a=r[2]-1||0,s=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],a,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)):new Date(r[1],a,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)}}return new Date(e)}(t),this.init()},_.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},_.$utils=function(){return M},_.isValid=function(){return!(this.$d.toString()===f)},_.isSame=function(t,e){var n=k(t);return this.startOf(e)<=n&&n<=this.endOf(e)},_.isAfter=function(t,e){return k(t){this.afterList=t.data.data,this.total=t.data.meta.total,this.loading=!1})).catch((()=>{this.loading=!1}))},handleSizeChange(t){this.page=1,this.pageSize=t,this.fetchList()},handleCurrentChange(t){this.page=t,this.fetchList()},handleSearch(){this.page=1,this.fetchList()},getShopsList(){let t={page:1,per_page:999};(0,i.nH)(t).then((t=>{this.shopsList=t.data.data,t.data.data.forEach((t=>{this.Shops[t.id]=t.name}))}))},handleExport(){this.exportLoading=!0;let t={...this.filter,created_at_start:this.addTime?this.addTime[0]:"",created_at_end:this.addTime?this.addTime[1]:"",is_export:1};(0,s.cb)(t).then((t=>{console.log(t.data),this.downLoadXls(t.data),this.$message({type:"success",message:"导出成功!"}),this.exportLoading=!1})).catch((()=>{this.exportLoading=!1}))},downLoadXls(t){const e=t,n=new Blob([e]),r=(new Date).toLocaleDateString(),a=`售后单列表${r}.xlsx`;if("download"in document.createElement("a")){const t=document.createElement("a");t.download=a,t.style.display="none",t.href=URL.createObjectURL(n),document.body.appendChild(t),t.click(),URL.revokeObjectURL(t.href),document.body.removeChild(t)}else navigator.msSaveBlob(n,a)},objectToQueryString(t){return Object.keys(t).map((e=>encodeURIComponent(e)+"="+(t[e]?encodeURIComponent(t[e]):""))).join("&")}},mounted(){let t=u()().format("YYYY-MM-DD")+" 23:59:59",e=u()().subtract(30,"day").format("YYYY-MM-DD")+" 00:00:00";this.addTime=[e,t],this.getShopsList(),this.fetchList()}},l=c,d=n(1001),h=(0,d.Z)(l,r,a,!1,null,"6c4b71cd",null),f=h.exports},7484:function(t){!function(e,n){t.exports=n()}(0,(function(){"use strict";var t=1e3,e=6e4,n=36e5,r="millisecond",a="second",s="minute",i="hour",o="day",u="week",c="month",l="quarter",d="year",h="date",f="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],n=t%100;return"["+t+(e[(n-20)%10]||e[n]||e[0])+"]"}},_=function(t,e,n){var r=String(t);return!r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},v={s:_,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),a=n%60;return(e<=0?"+":"-")+_(r,2,"0")+":"+_(a,2,"0")},m:function t(e,n){if(e.date()1)return t(i[0])}else{var o=e.name;$[o]=e,a=o}return!r&&a&&(y=a),a||!r&&y},k=function(t,e){if(S(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new D(n)},M=v;M.l=w,M.i=S,M.w=function(t,e){return k(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var D=function(){function g(t){this.$L=w(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[b]=!0}var _=g.prototype;return _.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(M.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match(p);if(r){var a=r[2]-1||0,s=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],a,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)):new Date(r[1],a,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)}}return new Date(e)}(t),this.init()},_.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},_.$utils=function(){return M},_.isValid=function(){return!(this.$d.toString()===f)},_.isSame=function(t,e){var n=k(t);return this.startOf(e)<=n&&n<=this.endOf(e)},_.isAfter=function(t,e){return k(t)\r\n
\r\n
\r\n
\r\n
\r\n 店铺:\r\n \r\n \r\n \r\n \r\n
\r\n
\r\n 售后单状态:\r\n \r\n \r\n \r\n \r\n
\r\n
\r\n 订单编号:\r\n \r\n
\r\n
\r\n 售后单编号:\r\n \r\n
\r\n
\r\n 创建时间:\r\n \r\n \r\n
\r\n
\r\n 筛选\r\n 数据导出\r\n
\r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n \r\n \r\n
\r\n
\r\n\r\n
\r\n\r\n\r\n\r\n\r\n\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./afterSaleOrder.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./afterSaleOrder.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./afterSaleOrder.vue?vue&type=template&id=6c4b71cd&scoped=true\"\nimport script from \"./afterSaleOrder.vue?vue&type=script&lang=js\"\nexport * from \"./afterSaleOrder.vue?vue&type=script&lang=js\"\nimport style0 from \"./afterSaleOrder.vue?vue&type=style&index=0&id=6c4b71cd&prod&lang=scss&scoped=true\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"6c4b71cd\",\n null\n \n)\n\nexport default component.exports","!function(t,e){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=e():\"function\"==typeof define&&define.amd?define(e):(t=\"undefined\"!=typeof globalThis?globalThis:t||self).dayjs=e()}(this,(function(){\"use strict\";var t=1e3,e=6e4,n=36e5,r=\"millisecond\",i=\"second\",s=\"minute\",u=\"hour\",a=\"day\",o=\"week\",c=\"month\",f=\"quarter\",h=\"year\",d=\"date\",l=\"Invalid Date\",$=/^(\\d{4})[-/]?(\\d{1,2})?[-/]?(\\d{0,2})[Tt\\s]*(\\d{1,2})?:?(\\d{1,2})?:?(\\d{1,2})?[.:]?(\\d+)?$/,y=/\\[([^\\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M={name:\"en\",weekdays:\"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday\".split(\"_\"),months:\"January_February_March_April_May_June_July_August_September_October_November_December\".split(\"_\"),ordinal:function(t){var e=[\"th\",\"st\",\"nd\",\"rd\"],n=t%100;return\"[\"+t+(e[(n-20)%10]||e[n]||e[0])+\"]\"}},m=function(t,e,n){var r=String(t);return!r||r.length>=e?t:\"\"+Array(e+1-r.length).join(n)+t},v={s:m,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return(e<=0?\"+\":\"-\")+m(r,2,\"0\")+\":\"+m(i,2,\"0\")},m:function t(e,n){if(e.date()1)return t(u[0])}else{var a=e.name;D[a]=e,i=a}return!r&&i&&(g=i),i||!r&&g},O=function(t,e){if(S(t))return t.clone();var n=\"object\"==typeof e?e:{};return n.date=t,n.args=arguments,new _(n)},b=v;b.l=w,b.i=S,b.w=function(t,e){return O(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var _=function(){function M(t){this.$L=w(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[p]=!0}var m=M.prototype;return m.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(b.u(e))return new Date;if(e instanceof Date)return new Date(e);if(\"string\"==typeof e&&!/Z$/i.test(e)){var r=e.match($);if(r){var i=r[2]-1||0,s=(r[7]||\"0\").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)}}return new Date(e)}(t),this.init()},m.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},m.$utils=function(){return b},m.isValid=function(){return!(this.$d.toString()===l)},m.isSame=function(t,e){var n=O(t);return this.startOf(e)<=n&&n<=this.endOf(e)},m.isAfter=function(t,e){return O(t)\r\n
\r\n
\r\n
\r\n
\r\n 店铺:\r\n \r\n \r\n \r\n \r\n
\r\n
\r\n 售后单状态:\r\n \r\n \r\n \r\n \r\n
\r\n
\r\n 订单编号:\r\n \r\n
\r\n
\r\n 售后单编号:\r\n \r\n
\r\n
\r\n 创建时间:\r\n \r\n \r\n
\r\n
\r\n 筛选\r\n 数据导出\r\n
\r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n \r\n \r\n
\r\n
\r\n\r\n
\r\n\r\n\r\n\r\n\r\n\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./afterSaleOrder.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./afterSaleOrder.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./afterSaleOrder.vue?vue&type=template&id=6c4b71cd&scoped=true\"\nimport script from \"./afterSaleOrder.vue?vue&type=script&lang=js\"\nexport * from \"./afterSaleOrder.vue?vue&type=script&lang=js\"\nimport style0 from \"./afterSaleOrder.vue?vue&type=style&index=0&id=6c4b71cd&prod&lang=scss&scoped=true\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"6c4b71cd\",\n null\n \n)\n\nexport default component.exports","!function(t,e){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=e():\"function\"==typeof define&&define.amd?define(e):(t=\"undefined\"!=typeof globalThis?globalThis:t||self).dayjs=e()}(this,(function(){\"use strict\";var t=1e3,e=6e4,n=36e5,r=\"millisecond\",i=\"second\",s=\"minute\",u=\"hour\",a=\"day\",o=\"week\",c=\"month\",f=\"quarter\",h=\"year\",d=\"date\",l=\"Invalid Date\",$=/^(\\d{4})[-/]?(\\d{1,2})?[-/]?(\\d{0,2})[Tt\\s]*(\\d{1,2})?:?(\\d{1,2})?:?(\\d{1,2})?[.:]?(\\d+)?$/,y=/\\[([^\\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M={name:\"en\",weekdays:\"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday\".split(\"_\"),months:\"January_February_March_April_May_June_July_August_September_October_November_December\".split(\"_\"),ordinal:function(t){var e=[\"th\",\"st\",\"nd\",\"rd\"],n=t%100;return\"[\"+t+(e[(n-20)%10]||e[n]||e[0])+\"]\"}},m=function(t,e,n){var r=String(t);return!r||r.length>=e?t:\"\"+Array(e+1-r.length).join(n)+t},v={s:m,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return(e<=0?\"+\":\"-\")+m(r,2,\"0\")+\":\"+m(i,2,\"0\")},m:function t(e,n){if(e.date()1)return t(u[0])}else{var a=e.name;D[a]=e,i=a}return!r&&i&&(g=i),i||!r&&g},O=function(t,e){if(S(t))return t.clone();var n=\"object\"==typeof e?e:{};return n.date=t,n.args=arguments,new _(n)},b=v;b.l=w,b.i=S,b.w=function(t,e){return O(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var _=function(){function M(t){this.$L=w(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[p]=!0}var m=M.prototype;return m.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(b.u(e))return new Date;if(e instanceof Date)return new Date(e);if(\"string\"==typeof e&&!/Z$/i.test(e)){var r=e.match($);if(r){var i=r[2]-1||0,s=(r[7]||\"0\").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)}}return new Date(e)}(t),this.init()},m.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},m.$utils=function(){return b},m.isValid=function(){return!(this.$d.toString()===l)},m.isSame=function(t,e){var n=O(t);return this.startOf(e)<=n&&n<=this.endOf(e)},m.isAfter=function(t,e){return O(t)0},show:{type:Boolean,default:()=>!1}},data(){return{btnLoading:!1,showVisible:!1,addrList:[],curAddrId:"",loading:!1,printForm:{},printVisible:!1}},methods:{getAddrList(){this.loading=!0;let t={shop_id:this.id,page:1,pageSize:1e3};(0,a.i$)(t).then((t=>{console.log(t),this.addrList=t.data.data,this.loading=!1})).catch((()=>{this.loading=!1}))},addPrintAddr(){this.curAddrId="",this.printForm={},this.printVisible=!0},commitPrintAddr(){if(!this.printForm.name)return void ElMessage({type:"warning",message:"请输入姓名"});if(!this.printForm.mobile)return void ElMessage({type:"warning",message:"请输入联系电话"});if(!this.printForm.province||!this.printForm.city||!this.printForm.district||!this.printForm.detail)return void ElMessage({type:"warning",message:"请输入地址信息"});this.btnLoading=!0;let t={...this.printForm};this.curAddrId?(t.id=this.curAddrId,(0,a.C$)(t).then((t=>{this.$message({type:"success",message:"编辑成功"}),this.printVisible=!1,this.getAddrList(),this.btnLoading=!1})).catch((()=>{this.btnLoading=!1}))):(0,a.C$)(t).then((t=>{this.$message({type:"success",message:"添加成功"}),this.printVisible=!1,this.getAddrList(),this.btnLoading=!1})).catch((()=>{this.btnLoading=!1}))},editPrintAddr(t){this.curAddrId=t.id,this.printForm=JSON.parse(JSON.stringify(t)),this.printVisible=!0},closeDialog(){this.showVisible=!1,this.$emit("close")}},watch:{show:{handler(t,e){t&&(this.showVisible=!0,this.addrList=[],this.printList=[],this.getAddrList())},deep:!0,immediate:!0}}},d=l,p=i(1001),c=(0,p.Z)(d,o,s,!1,null,"3ce2a580",null),u=c.exports,m={components:{shopAddress:u},data(){return{showAddr:!1,shop_id:0,dialogFormVisible:!1,form:{name:"",plat_id:"",ratio:"*1"},rules:{name:[{required:!0,message:"请输入店铺名称",trigger:"blur"}],plat_id:[{required:!0,message:"请选择店铺平台",trigger:"blur"}],ratio:[{required:!0,message:"请输入成本变动",trigger:"blur"}]},storeId:[],loading:!1,tableData:[],Paginationdata:{},current_page:1,per_page:15}},mounted(){this.getStoreList()},methods:{handAdd(){this.form.name="",this.form.plat_id="",this.dialogFormVisible=!0,this.getshop()},addSubmit(){const t=this.form;(0,a.$i)(t).then((t=>{200==t.status&&this.$message({type:"success",message:"添加成功"}),this.getStoreList()})),this.dialogFormVisible=!1},getStoreList(){this.loading=!0;let t={page:this.current_page,per_page:this.per_page};(0,a.nH)(t).then((t=>{this.tableData=t.data.data,this.Paginationdata=t.data.meta,this.loading=!1})).catch((()=>{this.loading=!1}))},handleSizeChange(t){this.per_page=t,this.getStoreList()},handleCurrentChange(t){this.current_page=t,this.getStoreList()},getshop(){(0,a.hA)().then((t=>{this.storeId=t.data.data}))},download(t){const e=this.$loading({lock:!0,text:t.name+" 店铺商品下载中...",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.7)"});(0,a.rV)(t.id).then((t=>{e.close(),this.$message({type:"success",message:t.data.message})})).catch((()=>{e.close()}))},handleCellChange(t){this.$confirm("确认修改成本变动吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((()=>{(0,a.ow)(t.id,{ratio:t.ratio}).then((t=>{this.$message({type:"info",message:t.data.message})}))}))},syncShopStock(t){const e=this.$loading({lock:!0,text:"店铺商品库存同步中...",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.7)"});(0,a._d)({shop_id:t}).then((t=>{e.close(),this.$message({type:"info",message:t.data.message})})).catch((()=>{e.close()}))},openAddr(t){this.shop_id=t,this.showAddr=!0}}},h=m,g=(0,p.Z)(h,r,n,!1,null,"d25d9320",null),b=g.exports},9998:function(t,e,i){i.d(e,{$i:function(){return a},C$:function(){return g},OV:function(){return p},Vq:function(){return u},_d:function(){return d},dT:function(){return m},hA:function(){return n},i$:function(){return h},nH:function(){return o},ow:function(){return l},rV:function(){return s},tA:function(){return c}});var r=i(8430);function n(){return(0,r.Z)({url:"/api/shop_platforms",method:"get"})}function a(t){return(0,r.Z)({url:"/api/shops",method:"post",data:t})}function o(t){return(0,r.Z)({url:"/api/shops",method:"get",params:t})}function s(t){return(0,r.Z)({url:`/api/download/${t}/goods`,method:"get"})}function l(t,e){return(0,r.Z)({url:`/api/shops/${t}`,method:"patch",params:e})}function d(t){return(0,r.Z)({url:"/api/sync/shop/stock",method:"put",params:t})}function p(){return(0,r.Z)({url:"/api/shop/ship",method:"get"})}function c(t,e){return(0,r.Z)({url:"/api/shop/ship/senders",method:"get",params:{shop_id:t,shop_ship_id:e}})}function u(t){return(0,r.Z)({url:"/api/shop/ship/senders",method:"post",params:t})}function m(t){return(0,r.Z)({url:"/api/order/reset",method:"get"})}function h(t){return(0,r.Z)({url:"/api/shop_sends",method:"get",params:t})}function g(t){return(0,r.Z)({url:"/api/shop_sends",method:"post",params:t})}}}]); +//# sourceMappingURL=19.39213a6d.js.map \ No newline at end of file diff --git a/public/dist/js/19.39213a6d.js.map b/public/dist/js/19.39213a6d.js.map new file mode 100644 index 0000000..01e1ecf --- /dev/null +++ b/public/dist/js/19.39213a6d.js.map @@ -0,0 +1 @@ +{"version":3,"file":"js/19.39213a6d.js","mappings":"iJAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAA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G,UACtByG,OAAQ,OAEhB,CAEO,SAASJ,EAAYrG,EAAImD,GAC5B,OAAOoD,EAAAA,EAAAA,GAAK,CACRC,IAAM,cAAaxG,IACnByG,OAAQ,QACRtD,UAER,CAEO,SAASmD,EAAenD,GAC3B,OAAOoD,EAAAA,EAAAA,GAAK,CACRC,IAAK,uBACLC,OAAQ,MACRtD,UAER,CAEO,SAASuD,IACZ,OAAOH,EAAAA,EAAAA,GAAK,CACRC,IAAK,iBACLC,OAAQ,OAEhB,CAEO,SAASE,EAAeC,EAAQC,GACnC,OAAON,EAAAA,EAAAA,GAAK,CACRC,IAAK,yBACLC,OAAQ,MACRtD,OAAQ,CACJ,QAAWyD,EACX,aAAgBC,IAG5B,CAEO,SAASC,EAAY3D,GACxB,OAAOoD,EAAAA,EAAAA,GAAK,CACRC,IAAK,yBACLC,OAAQ,OACRtD,UAER,CAEO,SAAS4D,EAAU5D,GACtB,OAAOoD,EAAAA,EAAAA,GAAK,CACRC,IAAK,mBACLC,OAAQ,OAEhB,CAEO,SAASnD,EAAYH,GACxB,OAAOoD,EAAAA,EAAAA,GAAK,CACRC,IAAK,kBACLC,OAAQ,MACRtD,UAER,CAEO,SAASW,EAAkBX,GAC9B,OAAOoD,EAAAA,EAAAA,GAAK,CACRC,IAAK,kBACLC,OAAQ,OACRtD,UAER,C","sources":["webpack://erp/./src/views/store/store.vue","webpack://erp/./src/components/shop/address.vue","webpack://erp/src/components/shop/address.vue","webpack://erp/./src/components/shop/address.vue?c700","webpack://erp/./src/components/shop/address.vue?0cde","webpack://erp/src/views/store/store.vue","webpack://erp/./src/views/store/store.vue?ce44","webpack://erp/./src/views/store/store.vue?8466","webpack://erp/./src/api/shop.js"],"sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"pageBox\"},[_c('el-card',[_c('div',{staticClass:\"opaBox\"},[_c('el-button',{attrs:{\"type\":\"primary\",\"icon\":\"el-icon-plus\"},on:{\"click\":_vm.handAdd}},[_vm._v(\"新增\")]),_c('el-button',{attrs:{\"type\":\"primary\",\"icon\":\"el-icon-refresh\"},on:{\"click\":function($event){return _vm.syncShopStock('all')}}},[_vm._v(\"同步所有店铺库存\")])],1),_c('el-table',{directives:[{name:\"loading\",rawName:\"v-loading\",value:(_vm.loading),expression:\"loading\"}],staticStyle:{\"width\":\"100%\"},attrs:{\"border\":\"\",\"data\":_vm.tableData}},[_c('el-table-column',{attrs:{\"prop\":\"name\",\"label\":\"店铺名称\"}}),_c('el-table-column',{attrs:{\"prop\":\"plat_id\",\"label\":\"所属平台\"}}),_c('el-table-column',{attrs:{\"prop\":\"owner_id\",\"label\":\"商家店铺id\"}}),_c('el-table-column',{attrs:{\"prop\":\"refresh_token_expires_at\",\"label\":\"授权过期时间点\"}}),_c('el-table-column',{attrs:{\"label\":\"操作\",\"width\":\"360\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [(scope.row.status === '未授权')?_c('el-button',{attrs:{\"type\":\"danger\",\"size\":\"mini\"}},[_c('a',{attrs:{\"href\":scope.row.authUrl,\"target\":\"_blank\",\"rel\":\"noopener noreferrer\"}},[_vm._v(\"授权\")])]):_vm._e(),(scope.row.status === '已授权')?[_c('el-button',{attrs:{\"type\":\"success\",\"disabled\":true,\"size\":\"mini\"}},[_vm._v(_vm._s(scope.row.status))]),_c('el-button',{attrs:{\"size\":\"mini\"},on:{\"click\":function($event){return _vm.download(scope.row)}}},[_vm._v(\"下载商品\")]),(scope.row.status === '已授权')?_c('el-button',{attrs:{\"type\":\"primary\",\"size\":\"mini\"},on:{\"click\":function($event){return _vm.syncShopStock(scope.row.id)}}},[_vm._v(\"同步库存\")]):_vm._e()]:_vm._e(),(scope.row.status === '重新授权')?[_c('el-button',{attrs:{\"type\":\"danger\",\"target\":\"_blank\",\"size\":\"mini\"}},[_c('a',{attrs:{\"href\":scope.row.authUrl,\"rel\":\"noopener noreferrer\"}},[_vm._v(\"重新授权\")])]),_c('el-button',{attrs:{\"size\":\"mini\"},on:{\"click\":function($event){return _vm.download(scope.row)}}},[_vm._v(\"下载商品\")])]:_vm._e(),(scope.row.status === '无需授权')?[_c('el-button',{attrs:{\"type\":\"info\",\"disabled\":true,\"size\":\"mini\"}},[_vm._v(_vm._s(scope.row.status))])]:_vm._e(),_c('el-button',{attrs:{\"type\":\"warning\",\"size\":\"mini\"},on:{\"click\":function($event){return _vm.openAddr(scope.row.id)}}},[_vm._v(\"发货地址\")])]}}])})],1),_c('div',{staticClass:\"page-pagination\"},[_c('el-pagination',{attrs:{\"current-page\":_vm.current_page,\"page-sizes\":[15, 50, 100],\"page-size\":_vm.per_page,\"layout\":\"total, sizes, prev, pager, next, jumper\",\"total\":_vm.Paginationdata.total},on:{\"size-change\":_vm.handleSizeChange,\"current-change\":_vm.handleCurrentChange}})],1)],1),_c('el-dialog',{attrs:{\"title\":\"新增店铺\",\"visible\":_vm.dialogFormVisible,\"close-on-click-modal\":false,\"width\":\"500px\"},on:{\"update:visible\":function($event){_vm.dialogFormVisible=$event}}},[_c('el-form',{ref:\"form\",attrs:{\"rules\":_vm.rules,\"model\":_vm.form,\"lable-width\":\"80px\"}},[_c('el-form-item',{attrs:{\"label\":\"店铺名称\"}},[_c('el-input',{staticStyle:{\"width\":\"300px\"},attrs:{\"placeholder\":\"输入店铺名称\"},model:{value:(_vm.form.name),callback:function ($$v) {_vm.$set(_vm.form, \"name\", $$v)},expression:\"form.name\"}})],1),_c('el-form-item',{attrs:{\"label\":\"店铺平台\"}},[_c('el-select',{attrs:{\"placeholder\":\"输入店铺平台\"},model:{value:(_vm.form.plat_id),callback:function ($$v) {_vm.$set(_vm.form, \"plat_id\", $$v)},expression:\"form.plat_id\"}},_vm._l((_vm.storeId),function(item,index){return _c('el-option',{key:index,attrs:{\"label\":item,\"value\":index}})}),1)],1)],1),_c('div',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('el-button',{on:{\"click\":function($event){_vm.dialogFormVisible = false}}},[_vm._v(\"取 消\")]),_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":_vm.addSubmit}},[_vm._v(\"确 定\")])],1)],1),_c('shop-address',{attrs:{\"show\":_vm.showAddr,\"id\":_vm.shop_id},on:{\"close\":function($event){_vm.showAddr = false}}})],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_c('el-dialog',{attrs:{\"visible\":_vm.showVisible,\"title\":\"地址管理\",\"width\":\"900px\"},on:{\"update:visible\":function($event){_vm.showVisible=$event},\"close\":_vm.closeDialog}},[_c('div',{staticStyle:{\"margin-bottom\":\"20px\"}},[_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":function($event){return _vm.addPrintAddr()}}},[_vm._v(\"添加地址\")])],1),_c('div',[_c('el-table',{directives:[{name:\"loading\",rawName:\"v-loading\",value:(_vm.loading),expression:\"loading\"}],staticStyle:{\"width\":\"100%\",\"height\":\"auto\"},attrs:{\"data\":_vm.addrList,\"border\":\"\"}},[_c('el-table-column',{attrs:{\"prop\":\"id\",\"label\":\"ID\",\"align\":\"center\",\"width\":\"70\"}}),_c('el-table-column',{attrs:{\"prop\":\"name\",\"label\":\"姓名\",\"align\":\"center\",\"width\":\"100\"}}),_c('el-table-column',{attrs:{\"prop\":\"mobile\",\"label\":\"联系方式\",\"align\":\"center\",\"width\":\"120\"}}),_c('el-table-column',{attrs:{\"label\":\"详细地址\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('span',[_vm._v(_vm._s(scope.row.province)+_vm._s(scope.row.city)+_vm._s(scope.row.district)+_vm._s(scope.row.detail))])]}}])}),_c('el-table-column',{attrs:{\"label\":\"操作\",\"align\":\"center\",\"width\":\"100\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('el-button',{attrs:{\"type\":\"primary\",\"size\":\"mini\"},on:{\"click\":function($event){return _vm.editPrintAddr(scope.row)}}},[_vm._v(\"编辑\")])]}}])})],1)],1)]),_c('el-dialog',{attrs:{\"visible\":_vm.printVisible,\"title\":_vm.curAddrId ? '编辑地址' : '新增地址',\"width\":\"500px\"},on:{\"update:visible\":function($event){_vm.printVisible=$event}}},[_c('el-form',{attrs:{\"label-width\":\"100px\"}},[_c('el-form-item',{attrs:{\"label\":\"姓名:\"}},[_c('el-input',{attrs:{\"type\":\"input\",\"placeholder\":\"请输入姓名\"},model:{value:(_vm.printForm.name),callback:function ($$v) {_vm.$set(_vm.printForm, \"name\", $$v)},expression:\"printForm.name\"}})],1),_c('el-form-item',{attrs:{\"label\":\"联系电话:\"}},[_c('el-input',{attrs:{\"type\":\"input\",\"placeholder\":\"请输入联系电话\"},model:{value:(_vm.printForm.mobile),callback:function ($$v) {_vm.$set(_vm.printForm, \"mobile\", $$v)},expression:\"printForm.mobile\"}})],1),_c('el-form-item',{attrs:{\"label\":\"省:\"}},[_c('el-input',{attrs:{\"type\":\"input\",\"placeholder\":\"请输入\"},model:{value:(_vm.printForm.province),callback:function ($$v) {_vm.$set(_vm.printForm, \"province\", $$v)},expression:\"printForm.province\"}})],1),_c('el-form-item',{attrs:{\"label\":\"市:\"}},[_c('el-input',{attrs:{\"type\":\"input\",\"placeholder\":\"请输入号\"},model:{value:(_vm.printForm.city),callback:function ($$v) {_vm.$set(_vm.printForm, \"city\", $$v)},expression:\"printForm.city\"}})],1),_c('el-form-item',{attrs:{\"label\":\"区:\"}},[_c('el-input',{attrs:{\"type\":\"input\",\"placeholder\":\"请输入\"},model:{value:(_vm.printForm.district),callback:function ($$v) {_vm.$set(_vm.printForm, \"district\", $$v)},expression:\"printForm.district\"}})],1),_c('el-form-item',{attrs:{\"label\":\"详细地址:\"}},[_c('el-input',{attrs:{\"type\":\"input\",\"placeholder\":\"街道-小区-门牌号\"},model:{value:(_vm.printForm.detail),callback:function ($$v) {_vm.$set(_vm.printForm, \"detail\", $$v)},expression:\"printForm.detail\"}})],1),_c('el-form-item',{attrs:{\"label\":\"排序:\"}},[_c('el-input',{attrs:{\"type\":\"number\"},model:{value:(_vm.printForm.sort),callback:function ($$v) {_vm.$set(_vm.printForm, \"sort\", $$v)},expression:\"printForm.sort\"}})],1)],1),_c('div',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('el-button',{on:{\"click\":function($event){_vm.printVisible = false}}},[_vm._v(\"取消\")]),_c('el-button',{attrs:{\"type\":\"primary\",\"loading\":_vm.btnLoading},on:{\"click\":function($event){return _vm.commitPrintAddr()}}},[_vm._v(\"确定\")])],1)],1)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n\r\n\r\n\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./address.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./address.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./address.vue?vue&type=template&id=3ce2a580&scoped=true\"\nimport script from \"./address.vue?vue&type=script&lang=js\"\nexport * from \"./address.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"3ce2a580\",\n null\n \n)\n\nexport default component.exports","\r\n\r\n\r\n\r\n\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./store.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./store.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./store.vue?vue&type=template&id=d25d9320&scoped=true\"\nimport script from \"./store.vue?vue&type=script&lang=js\"\nexport * from \"./store.vue?vue&type=script&lang=js\"\nimport style0 from \"./store.vue?vue&type=style&index=0&id=d25d9320&prod&lang=scss&scoped=true\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"d25d9320\",\n null\n \n)\n\nexport default component.exports","import http from \"@/util/http.js\";\r\n\r\n// 店铺管理页面请求\r\n\r\n// 店铺平台\r\nexport function shopListId() {\r\n return http({\r\n url: \"/api/shop_platforms\",\r\n method: \"get\",\r\n });\r\n}\r\n// 店铺新增\r\nexport function shopAdd(data) {\r\n return http({\r\n url: \"/api/shops\",\r\n method: \"post\",\r\n data,\r\n });\r\n}\r\n// 店铺列表\r\nexport function storeList(params) {\r\n return http({\r\n url: \"/api/shops\",\r\n method: \"get\",\r\n params,\r\n });\r\n}\r\n\r\n// 下载商品\r\nexport function downloadGoods(id) {\r\n return http({\r\n url: `/api/download/${id}/goods`,\r\n method: \"get\",\r\n });\r\n}\r\n\r\nexport function updateStore(id, params) {\r\n return http({\r\n url: `/api/shops/${id}`,\r\n method: \"patch\",\r\n params,\r\n });\r\n}\r\n\r\nexport function syncStoreStock(params) {\r\n return http({\r\n url: '/api/sync/shop/stock',\r\n method: \"put\",\r\n params,\r\n });\r\n}\r\n\r\nexport function shipList() {\r\n return http({\r\n url: '/api/shop/ship',\r\n method: 'get',\r\n })\r\n}\r\n\r\nexport function ShopSenderList(shopId, shopShipId) {\r\n return http({\r\n url: '/api/shop/ship/senders',\r\n method: 'get',\r\n params: {\r\n 'shop_id': shopId,\r\n 'shop_ship_id': shopShipId,\r\n }\r\n })\r\n}\r\n\r\nexport function saveSenders(params) {\r\n return http({\r\n url: '/api/shop/ship/senders',\r\n method: 'post',\r\n params\r\n })\r\n}\r\n\r\nexport function orderRest(params) {\r\n return http({\r\n url: '/api/order/reset',\r\n method: 'get',\r\n })\r\n}\r\n\r\nexport function shopAddress(params) {\r\n return http({\r\n url: \"/api/shop_sends\",\r\n method: \"get\",\r\n params,\r\n });\r\n}\r\n\r\nexport function updateShopAddress(params) {\r\n return http({\r\n url: '/api/shop_sends',\r\n method: 'post',\r\n params\r\n })\r\n}\r\n"],"names":["render","_vm","this","_c","_self","staticClass","attrs","on","handAdd","_v","$event","syncShopStock","directives","name","rawName","value","loading","expression","staticStyle","tableData","scopedSlots","_u","key","fn","scope","row","status","authUrl","_e","_s","download","id","openAddr","current_page","per_page","Paginationdata","total","handleSizeChange","handleCurrentChange","dialogFormVisible","ref","rules","form","model","callback","$$v","$set","plat_id","_l","storeId","item","index","slot","addSubmit","showAddr","shop_id","staticRenderFns","showVisible","closeDialog","addPrintAddr","addrList","province","city","district","detail","editPrintAddr","printVisible","curAddrId","printForm","mobile","sort","btnLoading","commitPrintAddr","props","type","Number","default","show","Boolean","data","methods","getAddrList","params","page","pageSize","shopAddress","then","res","console","log","catch","ElMessage","message","updateShopAddress","$message","JSON","parse","stringify","$emit","watch","handler","newVal","oldVal","printList","deep","immediate","component","components","ratio","required","trigger","mounted","getStoreList","getshop","datas","shopAdd","storeList","meta","val","shopListId","Loading","$loading","lock","text","spinner","background","downloadGoods","close","handleCellChange","$confirm","confirmButtonText","cancelButtonText","updateStore","syncStoreStock","http","url","method","shipList","ShopSenderList","shopId","shopShipId","saveSenders","orderRest"],"sourceRoot":""} \ No newline at end of file diff --git a/public/dist/js/298.143f4f4b.js.map b/public/dist/js/298.143f4f4b.js.map deleted file mode 100644 index 334cb9a..0000000 --- a/public/dist/js/298.143f4f4b.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"js/298.143f4f4b.js","mappings":"kJAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,K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3K,GAC3B,OAAOyJ,EAAAA,EAAAA,GAAK,CACRC,IAAK,uBACLC,OAAQ,MACR3J,UAER,CAEO,SAAS4K,IACZ,OAAOnB,EAAAA,EAAAA,GAAK,CACRC,IAAK,iBACLC,OAAQ,OAEhB,CAEO,SAASkB,EAAeC,EAAQC,GACnC,OAAOtB,EAAAA,EAAAA,GAAK,CACRC,IAAK,yBACLC,OAAQ,MACR3J,OAAQ,CACJ,QAAW8K,EACX,aAAgBC,IAG5B,CAEO,SAASC,EAAYhL,GACxB,OAAOyJ,EAAAA,EAAAA,GAAK,CACRC,IAAK,yBACLC,OAAQ,OACR3J,UAER,CAEO,SAASgG,EAAUhG,GACtB,OAAOyJ,EAAAA,EAAAA,GAAK,CACRC,IAAK,mBACLC,OAAQ,OAEhB,C","sources":["webpack://erp/./src/views/goods/goods.vue","webpack://erp/./src/components/Goods/add.vue","webpack://erp/src/components/Goods/add.vue","webpack://erp/./src/components/Goods/add.vue?be4f","webpack://erp/./src/components/Goods/add.vue?bae7","webpack://erp/./src/components/Goods/edit.vue","webpack://erp/src/components/Goods/edit.vue","webpack://erp/./src/components/Goods/edit.vue?32d8","webpack://erp/./src/components/Goods/edit.vue?903a","webpack://erp/src/views/goods/goods.vue","webpack://erp/./src/views/goods/goods.vue?6f68","webpack://erp/./src/views/goods/goods.vue?2525","webpack://erp/./src/api/goods.js","webpack://erp/./src/api/shop.js"],"sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_c('div',{staticClass:\"cardBox\"},[_c('div',{staticClass:\"searchBox\"},[_c('div',{staticClass:\"row\"},[_c('span',[_vm._v(\"商品名称:\")]),_c('el-input',{attrs:{\"placeholder\":\"商品名称\",\"clearable\":\"\"},nativeOn:{\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\"))return null;return _vm.handleChoose.apply(null, arguments)}},model:{value:(_vm.form.goods_title),callback:function ($$v) {_vm.$set(_vm.form, \"goods_title\", $$v)},expression:\"form.goods_title\"}})],1),_c('div',{staticClass:\"row\"},[_c('span',[_vm._v(\"商品品种/品类:\")]),_c('treeselect',{staticStyle:{\"width\":\"200px\"},attrs:{\"options\":_vm.treeList,\"disable-branch-nodes\":true,\"show-count\":true,\"normalizer\":_vm.normalizer,\"placeholder\":\"请选择品种\"},scopedSlots:_vm._u([{key:\"value-label\",fn:function({ node }){return _c('div',{},[_vm._v(_vm._s(_vm.parseLabel(node)))])}}]),model:{value:(_vm.form.type_id),callback:function ($$v) {_vm.$set(_vm.form, \"type_id\", $$v)},expression:\"form.type_id\"}})],1),_c('div',{staticClass:\"row\"},[_c('span',[_vm._v(\"商品编码:\")]),_c('el-input',{attrs:{\"placeholder\":\"商品编码\",\"clearable\":\"\"},nativeOn:{\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\"))return null;return _vm.handleChoose.apply(null, arguments)}},model:{value:(_vm.form.external_sku_id),callback:function ($$v) {_vm.$set(_vm.form, \"external_sku_id\", $$v)},expression:\"form.external_sku_id\"}})],1),_c('div',{staticClass:\"row\"},[_c('span',[_vm._v(\"商品状态:\")]),_c('el-select',{attrs:{\"placeholder\":\"商品状态\",\"clearable\":\"\"},on:{\"change\":function($event){return _vm.handleChoose()}},model:{value:(_vm.form.status),callback:function ($$v) {_vm.$set(_vm.form, \"status\", $$v)},expression:\"form.status\"}},_vm._l((_vm.options),function(item){return _c('el-option',{key:item.id,attrs:{\"label\":item.label,\"value\":item.id}})}),1)],1),_c('div',{staticClass:\"row\"},[_c('span',[_vm._v(\"创建时间:\")]),_c('el-date-picker',{staticStyle:{\"width\":\"250px\"},attrs:{\"type\":\"datetimerange\",\"range-separator\":\"至\",\"start-placeholder\":\"开始时间\",\"end-placeholder\":\"结束时间\",\"format\":\"yyyy-MM-dd\",\"value-format\":\"yyyy-MM-dd\",\"clearable\":\"\"},on:{\"change\":function($event){return _vm.handleChoose()}},model:{value:(_vm.filterTime),callback:function ($$v) {_vm.filterTime=$$v},expression:\"filterTime\"}})],1),_c('div',{staticClass:\"row\"},[_c('span',[_vm._v(\"剩余库存≠:\")]),_c('el-input',{attrs:{\"placeholder\":\"剩余库存\",\"clearable\":\"\"},nativeOn:{\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\"))return null;return _vm.handleChoose.apply(null, arguments)}},model:{value:(_vm.form.neq_stock),callback:function ($$v) {_vm.$set(_vm.form, \"neq_stock\", $$v)},expression:\"form.neq_stock\"}})],1),_c('div',{staticClass:\"row\"},[_c('span',[_vm._v(\"在售库存≠:\")]),_c('el-input',{attrs:{\"placeholder\":\"在售库存\",\"clearable\":\"\"},nativeOn:{\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\"))return null;return _vm.handleChoose.apply(null, arguments)}},model:{value:(_vm.form.neq_sale_stock),callback:function ($$v) {_vm.$set(_vm.form, \"neq_sale_stock\", $$v)},expression:\"form.neq_sale_stock\"}})],1),_c('div',{staticClass:\"row\"},[_c('el-button',{attrs:{\"type\":\"primary\",\"icon\":\"el-icon-search\"},on:{\"click\":function($event){return _vm.handleChoose()}}},[_vm._v(\"筛选\")]),_c('el-button',{attrs:{\"plain\":\"\",\"icon\":\"el-icon-refresh\"},on:{\"click\":_vm.handleReChoose}},[_vm._v(\"重置筛选\")])],1)])]),_c('el-card',[_c('div',[_c('div',{staticStyle:{\"display\":\"flex\",\"align-items\":\"center\",\"justify-content\":\"space-between\"}},[_c('div',{staticStyle:{\"display\":\"flex\",\"flex-wrap\":\"wrap\"}},[_c('span',{staticStyle:{\"margin-right\":\"20px\"}},[_vm._v(\"全部商品(共\"+_vm._s(_vm.total)+\"条)\")]),(_vm.sum)?_c('div',{staticStyle:{\"color\":\"#f00\"}},[_vm._v(\"销量\"+_vm._s(_vm.sum.goods_number)+\",实际库存\"+_vm._s(_vm.sum.real_stock)+\",剩余库存\"+_vm._s(_vm.sum.stock))]):_vm._e()]),_c('div',{staticClass:\"btn\"},[_c('el-button',{attrs:{\"icon\":\"el-icon-refresh\"},on:{\"click\":_vm.resetOrderCount}},[_vm._v(\"订单重置\")]),_c('el-button',{attrs:{\"type\":\"primary\",\"icon\":\"el-icon-edit\",\"disabled\":!_vm.chooseList.length},on:{\"click\":_vm.petchEditStock}},[_vm._v(\"批量更新在售库存\")]),(_vm.is_admin)?_c('el-button',{attrs:{\"type\":\"primary\",\"icon\":\"el-icon-plus\"},on:{\"click\":_vm.addNewgoods}},[_vm._v(\"新增商品\")]):_vm._e(),(_vm.is_admin)?_c('el-button',{attrs:{\"type\":\"primary\",\"plain\":\"\",\"icon\":\"el-icon-upload2\"},on:{\"click\":_vm.handleImport}},[_vm._v(\"在售库存导入\")]):_vm._e(),_c('el-button',{attrs:{\"type\":\"warning\",\"icon\":\"el-icon-download\"},on:{\"click\":_vm.handleTypeExport}},[_vm._v(\"选择类型导出\")]),_c('el-button',{attrs:{\"type\":\"warning\",\"icon\":\"el-icon-download\"},on:{\"click\":_vm.handleExport}},[_vm._v(\"数据导出\")])],1)]),_c('el-table',{directives:[{name:\"loading\",rawName:\"v-loading\",value:(_vm.loading),expression:\"loading\"}],ref:\"multipleTable\",staticClass:\"table\",staticStyle:{\"width\":\"100%\"},attrs:{\"border\":\"\",\"data\":_vm.tableData,\"tooltip-effect\":\"dark\"},on:{\"selection-change\":_vm.handleSelectionChange,\"sort-change\":_vm.sortChange}},[_c('el-table-column',{attrs:{\"type\":\"selection\",\"align\":\"center\"}}),_c('el-table-column',{attrs:{\"label\":\"商品信息\",\"width\":\"300\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('div',{staticClass:\"goodBox flex\"},[(scope.row.goods && scope.row.goods.img_url)?_c('img',{staticClass:\"Img\",attrs:{\"src\":scope.row.goods.img_url}}):_vm._e(),_c('div',[_c('div',{staticClass:\"tit\"},[_vm._v(_vm._s(scope.row.name))]),_c('p',[_vm._v(_vm._s(scope.row.external_sku_id))]),_c('p',[_vm._v(_vm._s(scope.row.created_at))])])])]}}])}),_c('el-table-column',{attrs:{\"prop\":\"cost\",\"label\":\"成本\",\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('div',{staticClass:\"flex\",staticStyle:{\"justify-content\":\"center\"}},[(_vm.isShow)?_c('div',[_c('el-input',{model:{value:(scope.row.cost),callback:function ($$v) {_vm.$set(scope.row, \"cost\", $$v)},expression:\"scope.row.cost\"}})],1):_c('span',[_vm._v(_vm._s(scope.row.cost || 0))])])]}}])}),_c('el-table-column',{attrs:{\"prop\":\"order_goods_num\",\"sortable\":\"custom\",\"label\":\"销量\",\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('span',[_vm._v(_vm._s(scope.row.order_goods_num))]),(scope.row.order_detail.length !== 0)?_c('el-popover',{attrs:{\"placement\":\"right-start\",\"trigger\":\"hover\"}},[_c('div',_vm._l((scope.row.order_detail),function(j,index){return _c('span',{key:index},[_c('div',[_vm._v(_vm._s(j.shop.name)+\":\"+_vm._s(j.number))])])}),0),_c('i',{staticClass:\"el-icon-view\",staticStyle:{\"padding-left\":\"5px\"},attrs:{\"slot\":\"reference\"},slot:\"reference\"})]):_vm._e()]}}])}),_c('el-table-column',{attrs:{\"prop\":\"yesterday_num\",\"label\":\"实际库存\",\"align\":\"center\"}}),_c('el-table-column',{attrs:{\"prop\":\"sale_stock\",\"label\":\"可售库存\",\"sortable\":\"custom\",\"width\":\"160\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [(scope.row.edit)?_c('div',{staticClass:\"titBox\"},[_c('el-input',{staticStyle:{\"width\":\"100%\"},attrs:{\"placeholder\":\"可售库存\",\"size\":\"mini\"},model:{value:(scope.row.sale_stock),callback:function ($$v) {_vm.$set(scope.row, \"sale_stock\", $$v)},expression:\"scope.row.sale_stock\"}}),_c('span',{staticStyle:{\"color\":\"#666\",\"cursor\":\"pointer\",\"font-size\":\"18px\",\"margin-left\":\"5px\"},on:{\"click\":function($event){return _vm.cancelEdit(scope.row, scope.$index)}}},[_c('i',{staticClass:\"el-icon-close\"})]),_c('span',{staticStyle:{\"color\":\"#409eff\",\"cursor\":\"pointer\",\"font-size\":\"18px\",\"margin-left\":\"5px\"},on:{\"click\":function($event){return _vm.confirmEdit(scope.row, scope.$index)}}},[_c('i',{staticClass:\"el-icon-check\"})])],1):_c('div',[_vm._v(_vm._s(scope.row.sale_stock)+\" \"),_c('span',{staticStyle:{\"color\":\"#409eff\",\"margin-left\":\"5px\",\"cursor\":\"pointer\",\"font-size\":\"15px\"},on:{\"click\":function($event){return _vm.openSaleEdit(scope.row, scope.$index)}}},[_c('i',{staticClass:\"el-icon-edit\"})])])]}}])}),_c('el-table-column',{attrs:{\"label\":\"剩余库存\",\"sortable\":\"custom\",\"align\":\"center\",\"prop\":\"stock\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('span',{class:scope.row.stock * 1 < 0 ? 'red' : ''},[_vm._v(_vm._s(scope.row.stock))])]}}])}),_c('el-table-column',{attrs:{\"prop\":\"status\",\"label\":\"状态\",\"align\":\"center\"}}),(_vm.is_admin)?_c('el-table-column',{attrs:{\"label\":\"操作\",\"align\":\"center\",\"width\":\"120\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('el-button',{attrs:{\"type\":\"text\"},on:{\"click\":function($event){return _vm.handleEdit(scope.row.id)}}},[_vm._v(\"编辑\")])]}}],null,false,1564336291)}):_vm._e()],1)],1),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.isShow || _vm.stock),expression:\"isShow || stock\"}],staticClass:\"footerBtn\"},[_c('el-button',{staticClass:\"confirmbtn\",attrs:{\"type\":\"primary\"},on:{\"click\":function($event){return _vm.cancel()}}},[_vm._v(\"取消\")]),_c('el-button',{staticClass:\"confirmbtn\",attrs:{\"type\":\"primary\"},on:{\"click\":function($event){return _vm.onSubmit()}}},[_vm._v(\"保存\")])],1),_c('div',{staticClass:\"page-pagination\"},[_c('el-pagination',{attrs:{\"current-page\":_vm.current_page,\"page-sizes\":[10, 30, 50, 100, 200],\"page-size\":_vm.per_page,\"layout\":\"total, sizes, prev, pager, next, jumper\",\"total\":_vm.Paginationdata.total},on:{\"size-change\":_vm.handleSizeChange,\"current-change\":_vm.handleCurrentChange}})],1)]),_c('el-dialog',{attrs:{\"title\":\"库存修改\",\"visible\":_vm.ejectstock1,\"width\":\"30%\",\"close-on-click-modal\":false},on:{\"update:visible\":function($event){_vm.ejectstock1=$event}}},[_c('el-table',{staticStyle:{\"width\":\"100%\"},attrs:{\"data\":_vm.ommodityInventory,\"tooltip-effect\":\"dark\"}},[_c('el-table-column',{attrs:{\"prop\":\"two_days_ago_num\",\"label\":\"2天前库存\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('div',[_c('el-input',{attrs:{\"disabled\":true},model:{value:(scope.row.two_days_ago_num),callback:function ($$v) {_vm.$set(scope.row, \"two_days_ago_num\", $$v)},expression:\"scope.row.two_days_ago_num\"}}),_c('el-input',{model:{value:(scope.row.two_days_ago_num),callback:function ($$v) {_vm.$set(scope.row, \"two_days_ago_num\", $$v)},expression:\"scope.row.two_days_ago_num\"}})],1)]}}])}),_c('el-table-column',{attrs:{\"prop\":\"yesterday_num\",\"label\":\"1天前库存\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('div',[_c('el-input',{attrs:{\"disabled\":true},model:{value:(scope.row.yesterday_num),callback:function ($$v) {_vm.$set(scope.row, \"yesterday_num\", $$v)},expression:\"scope.row.yesterday_num\"}}),_c('el-input',{model:{value:(scope.row.yesterday_num),callback:function ($$v) {_vm.$set(scope.row, \"yesterday_num\", $$v)},expression:\"scope.row.yesterday_num\"}})],1)]}}])}),_c('el-table-column',{attrs:{\"sortable\":\"\",\"label\":\"今日到货\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('div',[_c('el-input',{attrs:{\"disabled\":true},model:{value:(scope.row.daily.arrived_today_num),callback:function ($$v) {_vm.$set(scope.row.daily, \"arrived_today_num\", $$v)},expression:\"scope.row.daily.arrived_today_num\"}}),_c('el-input',{model:{value:(scope.row.daily.arrived_today_num),callback:function ($$v) {_vm.$set(scope.row.daily, \"arrived_today_num\", $$v)},expression:\"scope.row.daily.arrived_today_num\"}})],1)]}}])})],1),_c('span',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('el-button',{on:{\"click\":function($event){return _vm.cancelStock()}}},[_vm._v(\"取 消\")]),_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":function($event){return _vm.oldStock()}}},[_vm._v(\"确 定\")])],1)],1),_c('el-dialog',{attrs:{\"title\":\"提示\",\"visible\":_vm.dialogVisible3,\"width\":\"20%\",\"close-on-click-modal\":false},on:{\"update:visible\":function($event){_vm.dialogVisible3=$event}}},[_c('span',[_vm._v(\"确定要修改售价吗?\")]),_c('span',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('el-button',{on:{\"click\":function($event){_vm.dialogVisible3 = false}}},[_vm._v(\"取 消\")]),_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":function($event){return _vm.referencePriceRequest()}}},[_vm._v(\"确 定\")])],1)]),_c('el-dialog',{attrs:{\"title\":\"提示\",\"visible\":_vm.dialogVisible5,\"width\":\"20%\",\"close-on-click-modal\":false},on:{\"update:visible\":function($event){_vm.dialogVisible5=$event}}},[_c('span',[_vm._v(\"确定要修改目标去化率吗?\")]),_c('span',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('el-button',{on:{\"click\":_vm.cancelGoal}},[_vm._v(\"取 消\")]),_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":function($event){return _vm.confirmGoal()}}},[_vm._v(\"确 定\")])],1)]),_c('el-dialog',{attrs:{\"title\":\"表格导出\",\"visible\":_vm.Tableexport,\"width\":\"30%\",\"close-on-click-modal\":false},on:{\"update:visible\":function($event){_vm.Tableexport=$event}}},[_c('div',[_c('span',[_vm._v(\"选择:\")]),[_c('el-select',{attrs:{\"placeholder\":\"盘点表/成本表/周数据\"},model:{value:(_vm.value),callback:function ($$v) {_vm.value=$$v},expression:\"value\"}},_vm._l((_vm.options2),function(item){return _c('el-option',{key:item.value,attrs:{\"label\":item.label,\"value\":item.value}})}),1)]],2),_c('span',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('el-button',{on:{\"click\":function($event){_vm.Tableexport = false}}},[_vm._v(\"取 消\")]),_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":function($event){return _vm.derivation()}}},[_vm._v(\"确 定\")])],1)]),_c('el-dialog',{ref:\"drawer\",attrs:{\"title\":\"在售库存导入\",\"visible\":_vm.docImportDrawer,\"direction\":\"rtl\",\"custom-class\":\"demo-drawer\",\"width\":\"450px\",\"close-on-click-modal\":false},on:{\"update:visible\":function($event){_vm.docImportDrawer=$event},\"close\":function($event){_vm.importForm.imFileList = []}}},[_c('div',{staticClass:\"demo-drawer__content\"},[_c('el-upload',{ref:\"aupload\",staticClass:\"upload-demo\",attrs:{\"action\":\"\",\"limit\":1,\"drag\":\"\",\"accept\":\"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel\",\"file-list\":_vm.importForm.fileList,\"auto-upload\":false,\"on-change\":_vm.importFileChange}},[_c('i',{staticClass:\"el-icon-upload\"}),_c('div',{staticClass:\"el-upload__text\"},[_vm._v(\"将文件拖到此处,或\"),_c('em',[_vm._v(\"点击上传\")])])])],1),_c('div',{staticClass:\"import-right\"},[_c('el-button',{attrs:{\"size\":\"medium\",\"type\":\"text\"}},[_c('a',{attrs:{\"href\":`/goods/import/template`}},[_vm._v(\"下载模板\")])])],1),_c('span',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('el-button',{on:{\"click\":function($event){_vm.docImportDrawer = false}}},[_vm._v(\"取 消\")]),_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":_vm.saveUpload}},[_vm._v(\"上 传\")])],1)]),_c('el-dialog',{attrs:{\"title\":\"可售库存\",\"visible\":_vm.showUpdate,\"width\":\"600px\"},on:{\"update:visible\":function($event){_vm.showUpdate=$event}}},[_c('div',{},[_c('el-table',{staticStyle:{\"width\":\"100%\"},attrs:{\"data\":_vm.chooseList,\"border\":\"\"}},[_c('el-table-column',{attrs:{\"label\":\"商品信息\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('div',{staticClass:\"goodBox flex\"},[(scope.row.goods && scope.row.goods.img_url)?_c('img',{staticClass:\"Img\",attrs:{\"src\":scope.row.goods.img_url}}):_vm._e(),_c('div',[_c('div',{staticClass:\"tit\"},[_vm._v(_vm._s(scope.row.name))]),_c('p',[_vm._v(_vm._s(scope.row.external_sku_id))])])])]}}])}),_c('el-table-column',{attrs:{\"label\":\"可售库存\",\"width\":\"200\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('el-input',{model:{value:(scope.row.sale_stock),callback:function ($$v) {_vm.$set(scope.row, \"sale_stock\", $$v)},expression:\"scope.row.sale_stock\"}})]}}])})],1)],1),_c('span',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('el-button',{on:{\"click\":function($event){_vm.showUpdate = false}}},[_vm._v(\"取 消\")]),_c('el-button',{attrs:{\"type\":\"primary\",\"loading\":_vm.commitLoading},on:{\"click\":function($event){return _vm.commitPetchStock()}}},[_vm._v(\"更 新\")])],1)]),_c('add-goods',{attrs:{\"show\":_vm.showAdd},on:{\"close\":function($event){_vm.showAdd = false},\"complete\":_vm.refreshList}}),_c('edit-goods',{attrs:{\"show\":_vm.showEdit,\"id\":_vm.curId},on:{\"close\":function($event){_vm.showEdit = false},\"complete\":_vm.refreshList}})],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('el-dialog',{attrs:{\"visible\":_vm.show,\"title\":\"新增商品\",\"width\":\"900px\",\"close-on-click-modal\":false},on:{\"update:visible\":function($event){_vm.show=$event},\"close\":_vm.closeDialog}},[_c('el-form',{attrs:{\"label-width\":\"120px\",\"inline\":true}},[_c('el-form-item',{attrs:{\"label\":\"商品品种/品类:\"}},[_c('treeselect',{staticStyle:{\"width\":\"200px\"},attrs:{\"options\":_vm.treeList,\"disable-branch-nodes\":true,\"show-count\":true,\"normalizer\":_vm.normalizer,\"placeholder\":\"请选择品种\"},scopedSlots:_vm._u([{key:\"value-label\",fn:function({ node }){return _c('div',{},[_vm._v(_vm._s(_vm.parseLabel(node)))])}}]),model:{value:(_vm.type_id),callback:function ($$v) {_vm.type_id=$$v},expression:\"type_id\"}})],1),_vm._l((_vm.skus),function(item,i){return _c('div',{key:i,staticClass:\"skuBox\"},[_c('div',{staticClass:\"tit\"},[_vm._v(\"规格\"+_vm._s(i + 1))]),_c('el-form-item',{attrs:{\"label\":\"规格名称:\"}},[_c('el-input',{attrs:{\"placeholder\":\"规格名称\"},model:{value:(item.title),callback:function ($$v) {_vm.$set(item, \"title\", $$v)},expression:\"item.title\"}})],1),_c('el-form-item',{attrs:{\"label\":\"颜色/特性:\"}},[_c('el-input',{attrs:{\"placeholder\":\"颜色/特性\"},model:{value:(item.attribute),callback:function ($$v) {_vm.$set(item, \"attribute\", $$v)},expression:\"item.attribute\"}})],1),_c('el-form-item',{attrs:{\"label\":\"商品状态:\"}},[_c('el-select',{staticStyle:{\"width\":\"200px\"},attrs:{\"placeholder\":\"下架(默认)\"},model:{value:(item.status),callback:function ($$v) {_vm.$set(item, \"status\", $$v)},expression:\"item.status\"}},_vm._l((_vm.options),function(it){return _c('el-option',{key:it.id,attrs:{\"label\":it.label,\"value\":it.id}})}),1)],1),_c('el-form-item',{attrs:{\"label\":\"商品成本:\"}},[_c('el-input',{attrs:{\"placeholder\":\"商品成本\"},model:{value:(item.cost),callback:function ($$v) {_vm.$set(item, \"cost\", $$v)},expression:\"item.cost\"}})],1),_c('div',[_c('el-form-item',{attrs:{\"label\":\"可售库存:\"}},[_c('el-input',{attrs:{\"placeholder\":\"可售库存\"},model:{value:(item.sale_stock),callback:function ($$v) {_vm.$set(item, \"sale_stock\", $$v)},expression:\"item.sale_stock\"}})],1),_c('el-form-item',{attrs:{\"label\":\"最终编码:\"}},[_c('el-input',{attrs:{\"placeholder\":\"不输入自动生成\"},model:{value:(item.external_sku_id),callback:function ($$v) {_vm.$set(item, \"external_sku_id\", $$v)},expression:\"item.external_sku_id\"}})],1),_c('el-form-item',{attrs:{\"label\":\"\"}},[_c('el-button',{attrs:{\"type\":\"danger\",\"size\":\"mini\",\"icon\":\"el-icon-delete\"},on:{\"click\":function($event){return _vm.handleDelete(i)}}},[_vm._v(\"删除\")])],1)],1)],1)}),_c('div',[_c('el-form-item',[_c('el-button',{attrs:{\"type\":\"success\",\"icon\":\"el-icon-plus\"},on:{\"click\":function($event){return _vm.toAddSku()}}},[_vm._v(\"增加规格\")])],1)],1)],2),_c('span',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('el-button',{attrs:{\"type\":\"primary\",\"loading\":_vm.loading},on:{\"click\":function($event){return _vm.handleSave()}}},[_vm._v(\"保存\")]),_c('el-button',{attrs:{\"plain\":\"\"},on:{\"click\":function($event){return _vm.cancel()}}},[_vm._v(\"取消\")])],1)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n \r\n\r\n \r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./add.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./add.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./add.vue?vue&type=template&id=4de310da&scoped=true\"\nimport script from \"./add.vue?vue&type=script&lang=js\"\nexport * from \"./add.vue?vue&type=script&lang=js\"\nimport style0 from \"./add.vue?vue&type=style&index=0&id=4de310da&prod&scoped=true&lang=scss\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"4de310da\",\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('el-dialog',{attrs:{\"visible\":_vm.show,\"title\":\"编辑商品\",\"width\":\"900px\",\"close-on-click-modal\":false},on:{\"update:visible\":function($event){_vm.show=$event},\"close\":_vm.closeDialog}},[_c('el-form',{attrs:{\"label-width\":\"120px\",\"inline\":true}},[_c('el-form-item',{attrs:{\"label\":\"商品品种/品类:\"}},[_c('treeselect',{staticStyle:{\"width\":\"200px\"},attrs:{\"options\":_vm.treeList,\"disable-branch-nodes\":true,\"show-count\":true,\"normalizer\":_vm.normalizer,\"placeholder\":\"请选择品种\"},scopedSlots:_vm._u([{key:\"value-label\",fn:function({ node }){return _c('div',{},[_vm._v(_vm._s(_vm.parseLabel(node)))])}}]),model:{value:(_vm.goodsInfo.goods.type_id),callback:function ($$v) {_vm.$set(_vm.goodsInfo.goods, \"type_id\", $$v)},expression:\"goodsInfo.goods.type_id\"}})],1),_c('el-form-item',{attrs:{\"label\":\"规格名称:\"}},[_c('el-input',{attrs:{\"placeholder\":\"规格名称\"},model:{value:(_vm.goodsInfo.title),callback:function ($$v) {_vm.$set(_vm.goodsInfo, \"title\", $$v)},expression:\"goodsInfo.title\"}})],1),_c('el-form-item',{attrs:{\"label\":\"最终编码:\"}},[_c('el-input',{attrs:{\"placeholder\":\"不输入自动生成\",\"disabled\":\"\"},model:{value:(_vm.goodsInfo.external_sku_id),callback:function ($$v) {_vm.$set(_vm.goodsInfo, \"external_sku_id\", $$v)},expression:\"goodsInfo.external_sku_id\"}})],1),_c('el-form-item',{attrs:{\"label\":\"颜色/特性:\"}},[_c('el-input',{attrs:{\"placeholder\":\"颜色/特性\"},model:{value:(_vm.goodsInfo.attribute),callback:function ($$v) {_vm.$set(_vm.goodsInfo, \"attribute\", $$v)},expression:\"goodsInfo.attribute\"}})],1),_c('el-form-item',{attrs:{\"label\":\"商品状态:\"}},[_c('el-select',{staticStyle:{\"width\":\"200px\"},attrs:{\"placeholder\":\"下架(默认)\"},model:{value:(_vm.goodsInfo.status),callback:function ($$v) {_vm.$set(_vm.goodsInfo, \"status\", $$v)},expression:\"goodsInfo.status\"}},_vm._l((_vm.options),function(it){return _c('el-option',{key:it.id,attrs:{\"label\":it.label,\"value\":it.id}})}),1)],1),_c('el-form-item',{attrs:{\"label\":\"商品成本:\"}},[_c('el-input',{attrs:{\"placeholder\":\"商品成本\"},model:{value:(_vm.goodsInfo.cost),callback:function ($$v) {_vm.$set(_vm.goodsInfo, \"cost\", $$v)},expression:\"goodsInfo.cost\"}})],1),_c('el-form-item',{attrs:{\"label\":\"在售库存:\"}},[_c('el-input',{attrs:{\"placeholder\":\"可售库存\"},model:{value:(_vm.goodsInfo.sale_stock),callback:function ($$v) {_vm.$set(_vm.goodsInfo, \"sale_stock\", $$v)},expression:\"goodsInfo.sale_stock\"}})],1)],1),_c('span',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('el-button',{attrs:{\"type\":\"primary\",\"loading\":_vm.loading},on:{\"click\":function($event){return _vm.handleSave()}}},[_vm._v(\"保存\")]),_c('el-button',{attrs:{\"plain\":\"\"},on:{\"click\":function($event){return _vm.cancel()}}},[_vm._v(\"取消\")])],1)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n \r\n\r\n \r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./edit.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./edit.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./edit.vue?vue&type=template&id=3dbf163e&scoped=true\"\nimport script from \"./edit.vue?vue&type=script&lang=js\"\nexport * from \"./edit.vue?vue&type=script&lang=js\"\nimport style0 from \"./edit.vue?vue&type=style&index=0&id=3dbf163e&prod&scoped=true&lang=scss\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"3dbf163e\",\n null\n \n)\n\nexport default component.exports","\r\n\r\n\r\n\r\n\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./goods.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./goods.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./goods.vue?vue&type=template&id=97b6b362&scoped=true\"\nimport script from \"./goods.vue?vue&type=script&lang=js\"\nexport * from \"./goods.vue?vue&type=script&lang=js\"\nimport style0 from \"./goods.vue?vue&type=style&index=0&id=97b6b362&prod&lang=scss&scoped=true\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"97b6b362\",\n null\n \n)\n\nexport default component.exports","import http from \"@/util/http.js\";\r\n\r\n//店铺订单\r\nexport function shops(params) {\r\n return http({\r\n url: \"/api/count/orders/num\",\r\n method: \"get\",\r\n params,\r\n });\r\n}\r\n\r\n// 商品管理列表\r\nexport function goods(params) {\r\n return http({\r\n url: \"/api/goods_skus\",\r\n method: \"get\",\r\n params,\r\n });\r\n}\r\n// 新增商品/规格\r\nexport function addGoods(data) {\r\n return http({\r\n url: \"/api/goods\",\r\n method: \"post\",\r\n data,\r\n });\r\n}\r\n// 查看商品\r\nexport function checkGoods(id) {\r\n return http({\r\n url: `/api/goods_skus/${id}`,\r\n method: \"get\",\r\n });\r\n}\r\n// 商品列表\r\nexport function goodsList(params) {\r\n return http({\r\n url: \"/api/goods\",\r\n method: \"get\",\r\n params,\r\n });\r\n}\r\n// 更新商品\r\nexport function updateGoods(id, data) {\r\n return http({\r\n url: `/api/goods_skus/${id}`,\r\n method: \"patch\",\r\n data,\r\n });\r\n}\r\n\r\n// 上新/库存盘点/库存\r\nexport function update(data) {\r\n return http({\r\n url: \"/api/batch/goods_skus\",\r\n method: \"patch\",\r\n data,\r\n });\r\n}\r\n\r\n// 单个字段更新\r\nexport function singleUpdate(id, data) {\r\n return http({\r\n url: `/api/single/goods_skus/${id}`,\r\n method: \"patch\",\r\n data,\r\n });\r\n}\r\n\r\n// 图片上传\r\nexport function imgUpload(data, item) {\r\n return http({\r\n url: \"/api/upload\",\r\n Headers: item,\r\n method: \"post\",\r\n data,\r\n });\r\n}\r\n\r\n// 表格导出\r\nexport function tableExport(params) {\r\n return http({\r\n url: \"/goods_skus/export\",\r\n method: \"get\",\r\n params,\r\n });\r\n}\r\n\r\n// 商品列表(添加)\r\nexport function getGoodsList(params) {\r\n return http({\r\n url: \"/api/goodsList\",\r\n method: \"get\",\r\n params,\r\n });\r\n}\r\n\r\n// 商品货架\r\nexport function goodsSkuLocation(params) {\r\n return http({\r\n url: \"/api/goods_sku_location\",\r\n method: \"get\",\r\n params,\r\n });\r\n}\r\n\r\nexport function goodsSkusList(title) {\r\n return http({\r\n url: \"/api/goodsSkusList\",\r\n method: \"get\",\r\n params: { title: title }\r\n });\r\n}\r\n\r\nexport function importGoodsSkuLocation(params) {\r\n return http({\r\n url: \"/api/goods_sku_location\",\r\n method: \"post\",\r\n params,\r\n });\r\n}\r\n\r\nexport function updateGoodsSkuLocation(params) {\r\n return http({\r\n url: \"/api/goods_sku_location\",\r\n method: \"put\",\r\n params,\r\n });\r\n}\r\n\r\nexport function deleteGoodsSkuLocation(params) {\r\n return http({\r\n url: \"/api/goods_sku_location\",\r\n method: \"delete\",\r\n params,\r\n });\r\n}\r\n\r\nexport function getStockNum() {\r\n return http({\r\n url: \"/api/stock/goods_skus\",\r\n method: \"get\",\r\n });\r\n}\r\n\r\nexport function getGoodsFilter(title) {\r\n return http({\r\n url: \"/api/goods/filter/\" + title,\r\n method: \"get\",\r\n });\r\n}\r\n\r\nexport function addGoodsCombination(data) {\r\n return http({\r\n url: \"/api/goods_combination\",\r\n method: \"post\",\r\n data,\r\n });\r\n}\r\n\r\nexport function getGoodsCombination(params) {\r\n return http({\r\n url: \"/api/goods_combination\",\r\n method: \"get\",\r\n params,\r\n });\r\n}\r\n\r\nexport function showGoodsCombination(id) {\r\n return http({\r\n url: \"/api/goods_combination/\" + id,\r\n method: \"get\",\r\n });\r\n}\r\n\r\nexport function updateGoodsCombination(id, data) {\r\n return http({\r\n url: \"/api/goods_combination/\" + id,\r\n method: \"patch\",\r\n data,\r\n });\r\n}\r\n\r\nexport function delGoodsCombination(id) {\r\n return http({\r\n url: \"/api/goods_combination/\" + id,\r\n method: \"delete\",\r\n });\r\n}\r\n\r\nexport function updateSaleStock(data) {\r\n return http({\r\n url: `/api/batch/goods_skus`,\r\n method: \"patch\",\r\n data\r\n })\r\n}\r\n","import http from \"@/util/http.js\";\r\n\r\n// 店铺管理页面请求\r\n\r\n// 店铺平台\r\nexport function shopListId() {\r\n return http({\r\n url: \"/api/shop_platforms\",\r\n method: \"get\",\r\n });\r\n}\r\n// 店铺新增\r\nexport function shopAdd(data) {\r\n return http({\r\n url: \"/api/shops\",\r\n method: \"post\",\r\n data,\r\n });\r\n}\r\n// 店铺列表\r\nexport function storeList(params) {\r\n return http({\r\n url: \"/api/shops\",\r\n method: \"get\",\r\n params,\r\n });\r\n}\r\n\r\n// 下载商品\r\nexport function downloadGoods(id) {\r\n return http({\r\n url: `/api/download/${id}/goods`,\r\n method: \"get\",\r\n });\r\n}\r\n\r\nexport function updateStore(id, params) {\r\n return http({\r\n url: `/api/shops/${id}`,\r\n method: \"patch\",\r\n params,\r\n });\r\n}\r\n\r\nexport function syncStoreStock(params) {\r\n return http({\r\n url: '/api/sync/shop/stock',\r\n method: \"put\",\r\n params,\r\n });\r\n}\r\n\r\nexport function shipList() {\r\n return http({\r\n url: '/api/shop/ship',\r\n method: 'get',\r\n })\r\n}\r\n\r\nexport function ShopSenderList(shopId, shopShipId) {\r\n return http({\r\n url: '/api/shop/ship/senders',\r\n method: 'get',\r\n params: {\r\n 'shop_id': shopId,\r\n 'shop_ship_id': shopShipId,\r\n }\r\n })\r\n}\r\n\r\nexport function saveSenders(params) {\r\n return http({\r\n url: '/api/shop/ship/senders',\r\n method: 'post',\r\n params\r\n })\r\n}\r\n\r\nexport function orderRest(params) {\r\n return http({\r\n url: '/api/order/reset',\r\n method: 'get',\r\n })\r\n}\r\n"],"names":["render","_vm","this","_c","_self","staticClass","_v","attrs","nativeOn","$event","type","indexOf","_k","keyCode","key","handleChoose","apply","arguments","model","value","form","goods_title","callback","$$v","$set","expression","staticStyle","treeList","normalizer","scopedSlots","_u","fn","node","_s","parseLabel","type_id","external_sku_id","on","status","_l","options","item","id","label","filterTime","neq_stock","neq_sale_stock","handleReChoose","total","sum","goods_number","real_stock","stock","_e","resetOrderCount","chooseList","length","petchEditStock","is_admin","addNewgoods","handleImport","handleTypeExport","handleExport","directives","name","rawName","loading","ref","tableData","handleSelectionChange","sortChange","scope","row","goods","img_url","created_at","isShow","cost","order_goods_num","order_detail","j","index","shop","number","slot","edit","sale_stock","cancelEdit","$index","confirmEdit","openSaleEdit","class","handleEdit","cancel","onSubmit","current_page","per_page","Paginationdata","handleSizeChange","handleCurrentChange","ejectstock1","ommodityInventory","two_days_ago_num","yesterday_num","daily","arrived_today_num","cancelStock","oldStock","dialogVisible3","referencePriceRequest","dialogVisible5","cancelGoal","confirmGoal","Tableexport","options2","derivation","docImportDrawer","importForm","imFileList","fileList","importFileChange","saveUpload","showUpdate","commitLoading","commitPetchStock","showAdd","refreshList","showEdit","curId","staticRenderFns","show","closeDialog","skus","i","title","attribute","it","handleDelete","toAddSku","handleSave","components","Treeselect","props","Boolean","default","data","showDialog","methods","getGoodsTypes","params","parent_id","goods_types","then","res","JSON","parse","stringify","replace","goods_id","addGoods","$message","message","$emit","catch","handleAdd","sku","num","reserve","push","splice","children","level","isDisabled","text","parentNode","raw","watch","handler","newVal","oldVal","deep","immediate","component","goodsInfo","Number","brand_id","goods_code","thumb_url","updateGoods","getGoodsInfo","checkGoods","editGoods","editPriceId","editGoalId","rose_num","other_num","radio","brand","shopsData","sku_code","options3","sku_title","keyword_type","keyword_value","updateType","Importgoods","isShow1","improtRules","required","trigger","validator","rule","Error","publicPath","process","excelTemplatePath","visible","updateField","reserveShow","dialogVisible","dialogVisible2","publicId","lastVal","nowVal","loadingModule","noRow","sort_field","sort_value","getStockInfo","getStockNum","getList","page","create_time_start","create_time_end","map","arrived_today_num11","meta","manage","$nextTick","$refs","aupload","clearFiles","$confirm","confirmButtonText","cancelButtonText","orderRest","update","val","exportType","window","open","objectToQueryString","obj","Object","keys","encodeURIComponent","join","column","order","prop","patchdata","flat","inventory","onCount","ejectstock","stockpatch","importFile","file","error","isLoadingDialog","FormData","append","token","localStorage","getItem","axios","headers","Authorization","success","commitloading","getExcelTemplatePath","$requestInternet","get","reference_priceData","reference_price","singleUpdate","goal_rate","getgoodsType","param","forEach","updateSaleStock","multipleTable","clearSelection","sale_stock_old","console","log","$route","to","from","location","reload","mounted","http","url","method","goodsList","imgUpload","Headers","getGoodsList","goodsSkuLocation","goodsSkusList","getGoodsFilter","addGoodsCombination","getGoodsCombination","showGoodsCombination","shopListId","shopAdd","storeList","downloadGoods","updateStore","syncStoreStock","shipList","ShopSenderList","shopId","shopShipId","saveSenders"],"sourceRoot":""} \ No newline at end of file diff --git a/public/dist/js/298.143f4f4b.js b/public/dist/js/298.c971cd33.js similarity index 95% rename from public/dist/js/298.143f4f4b.js rename to public/dist/js/298.c971cd33.js index 30d7461..fff80f9 100644 --- a/public/dist/js/298.143f4f4b.js +++ b/public/dist/js/298.c971cd33.js @@ -1,2 +1,2 @@ -"use strict";(self["webpackChunkerp"]=self["webpackChunkerp"]||[]).push([[298],{4298:function(t,e,o){o.r(e),o.d(e,{default:function(){return T}});var s=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"cardBox"},[e("div",{staticClass:"searchBox"},[e("div",{staticClass:"row"},[e("span",[t._v("商品名称:")]),e("el-input",{attrs:{placeholder:"商品名称",clearable:""},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.handleChoose.apply(null,arguments)}},model:{value:t.form.goods_title,callback:function(e){t.$set(t.form,"goods_title",e)},expression:"form.goods_title"}})],1),e("div",{staticClass:"row"},[e("span",[t._v("商品品种/品类:")]),e("treeselect",{staticStyle:{width:"200px"},attrs:{options:t.treeList,"disable-branch-nodes":!0,"show-count":!0,normalizer:t.normalizer,placeholder:"请选择品种"},scopedSlots:t._u([{key:"value-label",fn:function({node:o}){return e("div",{},[t._v(t._s(t.parseLabel(o)))])}}]),model:{value:t.form.type_id,callback:function(e){t.$set(t.form,"type_id",e)},expression:"form.type_id"}})],1),e("div",{staticClass:"row"},[e("span",[t._v("商品编码:")]),e("el-input",{attrs:{placeholder:"商品编码",clearable:""},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.handleChoose.apply(null,arguments)}},model:{value:t.form.external_sku_id,callback:function(e){t.$set(t.form,"external_sku_id",e)},expression:"form.external_sku_id"}})],1),e("div",{staticClass:"row"},[e("span",[t._v("商品状态:")]),e("el-select",{attrs:{placeholder:"商品状态",clearable:""},on:{change:function(e){return t.handleChoose()}},model:{value:t.form.status,callback:function(e){t.$set(t.form,"status",e)},expression:"form.status"}},t._l(t.options,(function(t){return e("el-option",{key:t.id,attrs:{label:t.label,value:t.id}})})),1)],1),e("div",{staticClass:"row"},[e("span",[t._v("创建时间:")]),e("el-date-picker",{staticStyle:{width:"250px"},attrs:{type:"datetimerange","range-separator":"至","start-placeholder":"开始时间","end-placeholder":"结束时间",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",clearable:""},on:{change:function(e){return t.handleChoose()}},model:{value:t.filterTime,callback:function(e){t.filterTime=e},expression:"filterTime"}})],1),e("div",{staticClass:"row"},[e("span",[t._v("剩余库存≠:")]),e("el-input",{attrs:{placeholder:"剩余库存",clearable:""},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.handleChoose.apply(null,arguments)}},model:{value:t.form.neq_stock,callback:function(e){t.$set(t.form,"neq_stock",e)},expression:"form.neq_stock"}})],1),e("div",{staticClass:"row"},[e("span",[t._v("在售库存≠:")]),e("el-input",{attrs:{placeholder:"在售库存",clearable:""},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.handleChoose.apply(null,arguments)}},model:{value:t.form.neq_sale_stock,callback:function(e){t.$set(t.form,"neq_sale_stock",e)},expression:"form.neq_sale_stock"}})],1),e("div",{staticClass:"row"},[e("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:function(e){return t.handleChoose()}}},[t._v("筛选")]),e("el-button",{attrs:{plain:"",icon:"el-icon-refresh"},on:{click:t.handleReChoose}},[t._v("重置筛选")])],1)])]),e("el-card",[e("div",[e("div",{staticStyle:{display:"flex","align-items":"center","justify-content":"space-between"}},[e("div",{staticStyle:{display:"flex","flex-wrap":"wrap"}},[e("span",{staticStyle:{"margin-right":"20px"}},[t._v("全部商品(共"+t._s(t.total)+"条)")]),t.sum?e("div",{staticStyle:{color:"#f00"}},[t._v("销量"+t._s(t.sum.goods_number)+",实际库存"+t._s(t.sum.real_stock)+",剩余库存"+t._s(t.sum.stock))]):t._e()]),e("div",{staticClass:"btn"},[e("el-button",{attrs:{icon:"el-icon-refresh"},on:{click:t.resetOrderCount}},[t._v("订单重置")]),e("el-button",{attrs:{type:"primary",icon:"el-icon-edit",disabled:!t.chooseList.length},on:{click:t.petchEditStock}},[t._v("批量更新在售库存")]),t.is_admin?e("el-button",{attrs:{type:"primary",icon:"el-icon-plus"},on:{click:t.addNewgoods}},[t._v("新增商品")]):t._e(),t.is_admin?e("el-button",{attrs:{type:"primary",plain:"",icon:"el-icon-upload2"},on:{click:t.handleImport}},[t._v("在售库存导入")]):t._e(),e("el-button",{attrs:{type:"warning",icon:"el-icon-download"},on:{click:t.handleTypeExport}},[t._v("选择类型导出")]),e("el-button",{attrs:{type:"warning",icon:"el-icon-download"},on:{click:t.handleExport}},[t._v("数据导出")])],1)]),e("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"multipleTable",staticClass:"table",staticStyle:{width:"100%"},attrs:{border:"",data:t.tableData,"tooltip-effect":"dark"},on:{"selection-change":t.handleSelectionChange,"sort-change":t.sortChange}},[e("el-table-column",{attrs:{type:"selection",align:"center"}}),e("el-table-column",{attrs:{label:"商品信息",width:"300"},scopedSlots:t._u([{key:"default",fn:function(o){return[e("div",{staticClass:"goodBox flex"},[o.row.goods&&o.row.goods.img_url?e("img",{staticClass:"Img",attrs:{src:o.row.goods.img_url}}):t._e(),e("div",[e("div",{staticClass:"tit"},[t._v(t._s(o.row.name))]),e("p",[t._v(t._s(o.row.external_sku_id))]),e("p",[t._v(t._s(o.row.created_at))])])])]}}])}),e("el-table-column",{attrs:{prop:"cost",label:"成本",align:"center"},scopedSlots:t._u([{key:"default",fn:function(o){return[e("div",{staticClass:"flex",staticStyle:{"justify-content":"center"}},[t.isShow?e("div",[e("el-input",{model:{value:o.row.cost,callback:function(e){t.$set(o.row,"cost",e)},expression:"scope.row.cost"}})],1):e("span",[t._v(t._s(o.row.cost||0))])])]}}])}),e("el-table-column",{attrs:{prop:"order_goods_num",sortable:"custom",label:"销量",align:"center"},scopedSlots:t._u([{key:"default",fn:function(o){return[e("span",[t._v(t._s(o.row.order_goods_num))]),0!==o.row.order_detail.length?e("el-popover",{attrs:{placement:"right-start",trigger:"hover"}},[e("div",t._l(o.row.order_detail,(function(o,s){return e("span",{key:s},[e("div",[t._v(t._s(o.shop.name)+":"+t._s(o.number))])])})),0),e("i",{staticClass:"el-icon-view",staticStyle:{"padding-left":"5px"},attrs:{slot:"reference"},slot:"reference"})]):t._e()]}}])}),e("el-table-column",{attrs:{prop:"yesterday_num",label:"实际库存",align:"center"}}),e("el-table-column",{attrs:{prop:"sale_stock",label:"可售库存",sortable:"custom",width:"160"},scopedSlots:t._u([{key:"default",fn:function(o){return[o.row.edit?e("div",{staticClass:"titBox"},[e("el-input",{staticStyle:{width:"100%"},attrs:{placeholder:"可售库存",size:"mini"},model:{value:o.row.sale_stock,callback:function(e){t.$set(o.row,"sale_stock",e)},expression:"scope.row.sale_stock"}}),e("span",{staticStyle:{color:"#666",cursor:"pointer","font-size":"18px","margin-left":"5px"},on:{click:function(e){return t.cancelEdit(o.row,o.$index)}}},[e("i",{staticClass:"el-icon-close"})]),e("span",{staticStyle:{color:"#409eff",cursor:"pointer","font-size":"18px","margin-left":"5px"},on:{click:function(e){return t.confirmEdit(o.row,o.$index)}}},[e("i",{staticClass:"el-icon-check"})])],1):e("div",[t._v(t._s(o.row.sale_stock)+" "),e("span",{staticStyle:{color:"#409eff","margin-left":"5px",cursor:"pointer","font-size":"15px"},on:{click:function(e){return t.openSaleEdit(o.row,o.$index)}}},[e("i",{staticClass:"el-icon-edit"})])])]}}])}),e("el-table-column",{attrs:{label:"剩余库存",sortable:"custom",align:"center",prop:"stock"},scopedSlots:t._u([{key:"default",fn:function(o){return[e("span",{class:1*o.row.stock<0?"red":""},[t._v(t._s(o.row.stock))])]}}])}),e("el-table-column",{attrs:{prop:"status",label:"状态",align:"center"}}),t.is_admin?e("el-table-column",{attrs:{label:"操作",align:"center",width:"120"},scopedSlots:t._u([{key:"default",fn:function(o){return[e("el-button",{attrs:{type:"text"},on:{click:function(e){return t.handleEdit(o.row.id)}}},[t._v("编辑")])]}}],null,!1,1564336291)}):t._e()],1)],1),e("div",{directives:[{name:"show",rawName:"v-show",value:t.isShow||t.stock,expression:"isShow || stock"}],staticClass:"footerBtn"},[e("el-button",{staticClass:"confirmbtn",attrs:{type:"primary"},on:{click:function(e){return t.cancel()}}},[t._v("取消")]),e("el-button",{staticClass:"confirmbtn",attrs:{type:"primary"},on:{click:function(e){return t.onSubmit()}}},[t._v("保存")])],1),e("div",{staticClass:"page-pagination"},[e("el-pagination",{attrs:{"current-page":t.current_page,"page-sizes":[10,30,50,100,200],"page-size":t.per_page,layout:"total, sizes, prev, pager, next, jumper",total:t.Paginationdata.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1)]),e("el-dialog",{attrs:{title:"库存修改",visible:t.ejectstock1,width:"30%","close-on-click-modal":!1},on:{"update:visible":function(e){t.ejectstock1=e}}},[e("el-table",{staticStyle:{width:"100%"},attrs:{data:t.ommodityInventory,"tooltip-effect":"dark"}},[e("el-table-column",{attrs:{prop:"two_days_ago_num",label:"2天前库存"},scopedSlots:t._u([{key:"default",fn:function(o){return[e("div",[e("el-input",{attrs:{disabled:!0},model:{value:o.row.two_days_ago_num,callback:function(e){t.$set(o.row,"two_days_ago_num",e)},expression:"scope.row.two_days_ago_num"}}),e("el-input",{model:{value:o.row.two_days_ago_num,callback:function(e){t.$set(o.row,"two_days_ago_num",e)},expression:"scope.row.two_days_ago_num"}})],1)]}}])}),e("el-table-column",{attrs:{prop:"yesterday_num",label:"1天前库存"},scopedSlots:t._u([{key:"default",fn:function(o){return[e("div",[e("el-input",{attrs:{disabled:!0},model:{value:o.row.yesterday_num,callback:function(e){t.$set(o.row,"yesterday_num",e)},expression:"scope.row.yesterday_num"}}),e("el-input",{model:{value:o.row.yesterday_num,callback:function(e){t.$set(o.row,"yesterday_num",e)},expression:"scope.row.yesterday_num"}})],1)]}}])}),e("el-table-column",{attrs:{sortable:"",label:"今日到货"},scopedSlots:t._u([{key:"default",fn:function(o){return[e("div",[e("el-input",{attrs:{disabled:!0},model:{value:o.row.daily.arrived_today_num,callback:function(e){t.$set(o.row.daily,"arrived_today_num",e)},expression:"scope.row.daily.arrived_today_num"}}),e("el-input",{model:{value:o.row.daily.arrived_today_num,callback:function(e){t.$set(o.row.daily,"arrived_today_num",e)},expression:"scope.row.daily.arrived_today_num"}})],1)]}}])})],1),e("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e("el-button",{on:{click:function(e){return t.cancelStock()}}},[t._v("取 消")]),e("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.oldStock()}}},[t._v("确 定")])],1)],1),e("el-dialog",{attrs:{title:"提示",visible:t.dialogVisible3,width:"20%","close-on-click-modal":!1},on:{"update:visible":function(e){t.dialogVisible3=e}}},[e("span",[t._v("确定要修改售价吗?")]),e("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e("el-button",{on:{click:function(e){t.dialogVisible3=!1}}},[t._v("取 消")]),e("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.referencePriceRequest()}}},[t._v("确 定")])],1)]),e("el-dialog",{attrs:{title:"提示",visible:t.dialogVisible5,width:"20%","close-on-click-modal":!1},on:{"update:visible":function(e){t.dialogVisible5=e}}},[e("span",[t._v("确定要修改目标去化率吗?")]),e("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e("el-button",{on:{click:t.cancelGoal}},[t._v("取 消")]),e("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.confirmGoal()}}},[t._v("确 定")])],1)]),e("el-dialog",{attrs:{title:"表格导出",visible:t.Tableexport,width:"30%","close-on-click-modal":!1},on:{"update:visible":function(e){t.Tableexport=e}}},[e("div",[e("span",[t._v("选择:")]),[e("el-select",{attrs:{placeholder:"盘点表/成本表/周数据"},model:{value:t.value,callback:function(e){t.value=e},expression:"value"}},t._l(t.options2,(function(t){return e("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)]],2),e("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e("el-button",{on:{click:function(e){t.Tableexport=!1}}},[t._v("取 消")]),e("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.derivation()}}},[t._v("确 定")])],1)]),e("el-dialog",{ref:"drawer",attrs:{title:"在售库存导入",visible:t.docImportDrawer,direction:"rtl","custom-class":"demo-drawer",width:"450px","close-on-click-modal":!1},on:{"update:visible":function(e){t.docImportDrawer=e},close:function(e){t.importForm.imFileList=[]}}},[e("div",{staticClass:"demo-drawer__content"},[e("el-upload",{ref:"aupload",staticClass:"upload-demo",attrs:{action:"",limit:1,drag:"",accept:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel","file-list":t.importForm.fileList,"auto-upload":!1,"on-change":t.importFileChange}},[e("i",{staticClass:"el-icon-upload"}),e("div",{staticClass:"el-upload__text"},[t._v("将文件拖到此处,或"),e("em",[t._v("点击上传")])])])],1),e("div",{staticClass:"import-right"},[e("el-button",{attrs:{size:"medium",type:"text"}},[e("a",{attrs:{href:"/goods/import/template"}},[t._v("下载模板")])])],1),e("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e("el-button",{on:{click:function(e){t.docImportDrawer=!1}}},[t._v("取 消")]),e("el-button",{attrs:{type:"primary"},on:{click:t.saveUpload}},[t._v("上 传")])],1)]),e("el-dialog",{attrs:{title:"可售库存",visible:t.showUpdate,width:"600px"},on:{"update:visible":function(e){t.showUpdate=e}}},[e("div",{},[e("el-table",{staticStyle:{width:"100%"},attrs:{data:t.chooseList,border:""}},[e("el-table-column",{attrs:{label:"商品信息"},scopedSlots:t._u([{key:"default",fn:function(o){return[e("div",{staticClass:"goodBox flex"},[o.row.goods&&o.row.goods.img_url?e("img",{staticClass:"Img",attrs:{src:o.row.goods.img_url}}):t._e(),e("div",[e("div",{staticClass:"tit"},[t._v(t._s(o.row.name))]),e("p",[t._v(t._s(o.row.external_sku_id))])])])]}}])}),e("el-table-column",{attrs:{label:"可售库存",width:"200"},scopedSlots:t._u([{key:"default",fn:function(o){return[e("el-input",{model:{value:o.row.sale_stock,callback:function(e){t.$set(o.row,"sale_stock",e)},expression:"scope.row.sale_stock"}})]}}])})],1)],1),e("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e("el-button",{on:{click:function(e){t.showUpdate=!1}}},[t._v("取 消")]),e("el-button",{attrs:{type:"primary",loading:t.commitLoading},on:{click:function(e){return t.commitPetchStock()}}},[t._v("更 新")])],1)]),e("add-goods",{attrs:{show:t.showAdd},on:{close:function(e){t.showAdd=!1},complete:t.refreshList}}),e("edit-goods",{attrs:{show:t.showEdit,id:t.curId},on:{close:function(e){t.showEdit=!1},complete:t.refreshList}})],1)},i=[],a=(o(560),o(9669)),l=o.n(a),n=o(2346),r=o(9036),d=o(9998),c=o(4301),u=o.n(c),p=function(){var t=this,e=t._self._c;return e("el-dialog",{attrs:{visible:t.show,title:"新增商品",width:"900px","close-on-click-modal":!1},on:{"update:visible":function(e){t.show=e},close:t.closeDialog}},[e("el-form",{attrs:{"label-width":"120px",inline:!0}},[e("el-form-item",{attrs:{label:"商品品种/品类:"}},[e("treeselect",{staticStyle:{width:"200px"},attrs:{options:t.treeList,"disable-branch-nodes":!0,"show-count":!0,normalizer:t.normalizer,placeholder:"请选择品种"},scopedSlots:t._u([{key:"value-label",fn:function({node:o}){return e("div",{},[t._v(t._s(t.parseLabel(o)))])}}]),model:{value:t.type_id,callback:function(e){t.type_id=e},expression:"type_id"}})],1),t._l(t.skus,(function(o,s){return e("div",{key:s,staticClass:"skuBox"},[e("div",{staticClass:"tit"},[t._v("规格"+t._s(s+1))]),e("el-form-item",{attrs:{label:"规格名称:"}},[e("el-input",{attrs:{placeholder:"规格名称"},model:{value:o.title,callback:function(e){t.$set(o,"title",e)},expression:"item.title"}})],1),e("el-form-item",{attrs:{label:"颜色/特性:"}},[e("el-input",{attrs:{placeholder:"颜色/特性"},model:{value:o.attribute,callback:function(e){t.$set(o,"attribute",e)},expression:"item.attribute"}})],1),e("el-form-item",{attrs:{label:"商品状态:"}},[e("el-select",{staticStyle:{width:"200px"},attrs:{placeholder:"下架(默认)"},model:{value:o.status,callback:function(e){t.$set(o,"status",e)},expression:"item.status"}},t._l(t.options,(function(t){return e("el-option",{key:t.id,attrs:{label:t.label,value:t.id}})})),1)],1),e("el-form-item",{attrs:{label:"商品成本:"}},[e("el-input",{attrs:{placeholder:"商品成本"},model:{value:o.cost,callback:function(e){t.$set(o,"cost",e)},expression:"item.cost"}})],1),e("div",[e("el-form-item",{attrs:{label:"可售库存:"}},[e("el-input",{attrs:{placeholder:"可售库存"},model:{value:o.sale_stock,callback:function(e){t.$set(o,"sale_stock",e)},expression:"item.sale_stock"}})],1),e("el-form-item",{attrs:{label:"最终编码:"}},[e("el-input",{attrs:{placeholder:"不输入自动生成"},model:{value:o.external_sku_id,callback:function(e){t.$set(o,"external_sku_id",e)},expression:"item.external_sku_id"}})],1),e("el-form-item",{attrs:{label:""}},[e("el-button",{attrs:{type:"danger",size:"mini",icon:"el-icon-delete"},on:{click:function(e){return t.handleDelete(s)}}},[t._v("删除")])],1)],1)],1)})),e("div",[e("el-form-item",[e("el-button",{attrs:{type:"success",icon:"el-icon-plus"},on:{click:function(e){return t.toAddSku()}}},[t._v("增加规格")])],1)],1)],2),e("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e("el-button",{attrs:{type:"primary",loading:t.loading},on:{click:function(e){return t.handleSave()}}},[t._v("保存")]),e("el-button",{attrs:{plain:""},on:{click:function(e){return t.cancel()}}},[t._v("取消")])],1)],1)},h=[],m={components:{Treeselect:u()},props:{show:{type:Boolean,default:()=>!1}},data(){return{showDialog:!1,treeList:[],skus:[],type_id:null,options:[{id:0,label:"下架"},{id:1,label:"在售"}],loading:!1}},methods:{getGoodsTypes(){let t={parent_id:0};(0,n.Ci)(t).then((t=>{this.treeList=JSON.parse(JSON.stringify(t.data.data).replace(/name/g,"label"))}))},handleSave(){this.loading=!0;let t=this.skus,e={type_id:this.type_id||"",goods_id:"",skus:t};(0,r.Rq)(e).then((t=>{this.$message({message:"商品添加成功!",type:"success"}),this.loading=!1,this.closeDialog(),this.$emit("complete")})).catch((()=>{this.loading=!1}))},toAddSku(){this.type_id?this.handleAdd():this.$message({message:"请选择商品品种/品类",type:"error"})},handleAdd(){let t={title:"",external_sku_id:"",status:0,num:0,cost:0,sale_stock:9999,reserve:0,attribute:""};this.skus.push(t)},handleDelete(t){this.skus.splice(t,1)},cancel(){this.closeDialog()},normalizer(t){return(!t.children||t.children&&0==t.children.length)&&1==t.level&&(t.isDisabled=!0),t},parseLabel(t){let e="";return e+=t.parentNode?t.parentNode.label+" / ":"",e+=t.raw?t.raw.label:"",e},closeDialog(){this.showDialog=!1,this.$emit("close")}},watch:{show:{handler(t,e){t&&(this.skus=[],this.showDialog=!0,this.handleAdd(),this.getGoodsTypes())},deep:!0,immediate:!0}}},_=m,f=o(1001),g=(0,f.Z)(_,p,h,!1,null,"4de310da",null),b=g.exports,y=function(){var t=this,e=t._self._c;return e("el-dialog",{attrs:{visible:t.show,title:"编辑商品",width:"900px","close-on-click-modal":!1},on:{"update:visible":function(e){t.show=e},close:t.closeDialog}},[e("el-form",{attrs:{"label-width":"120px",inline:!0}},[e("el-form-item",{attrs:{label:"商品品种/品类:"}},[e("treeselect",{staticStyle:{width:"200px"},attrs:{options:t.treeList,"disable-branch-nodes":!0,"show-count":!0,normalizer:t.normalizer,placeholder:"请选择品种"},scopedSlots:t._u([{key:"value-label",fn:function({node:o}){return e("div",{},[t._v(t._s(t.parseLabel(o)))])}}]),model:{value:t.goodsInfo.goods.type_id,callback:function(e){t.$set(t.goodsInfo.goods,"type_id",e)},expression:"goodsInfo.goods.type_id"}})],1),e("el-form-item",{attrs:{label:"规格名称:"}},[e("el-input",{attrs:{placeholder:"规格名称"},model:{value:t.goodsInfo.title,callback:function(e){t.$set(t.goodsInfo,"title",e)},expression:"goodsInfo.title"}})],1),e("el-form-item",{attrs:{label:"最终编码:"}},[e("el-input",{attrs:{placeholder:"不输入自动生成",disabled:""},model:{value:t.goodsInfo.external_sku_id,callback:function(e){t.$set(t.goodsInfo,"external_sku_id",e)},expression:"goodsInfo.external_sku_id"}})],1),e("el-form-item",{attrs:{label:"颜色/特性:"}},[e("el-input",{attrs:{placeholder:"颜色/特性"},model:{value:t.goodsInfo.attribute,callback:function(e){t.$set(t.goodsInfo,"attribute",e)},expression:"goodsInfo.attribute"}})],1),e("el-form-item",{attrs:{label:"商品状态:"}},[e("el-select",{staticStyle:{width:"200px"},attrs:{placeholder:"下架(默认)"},model:{value:t.goodsInfo.status,callback:function(e){t.$set(t.goodsInfo,"status",e)},expression:"goodsInfo.status"}},t._l(t.options,(function(t){return e("el-option",{key:t.id,attrs:{label:t.label,value:t.id}})})),1)],1),e("el-form-item",{attrs:{label:"商品成本:"}},[e("el-input",{attrs:{placeholder:"商品成本"},model:{value:t.goodsInfo.cost,callback:function(e){t.$set(t.goodsInfo,"cost",e)},expression:"goodsInfo.cost"}})],1),e("el-form-item",{attrs:{label:"在售库存:"}},[e("el-input",{attrs:{placeholder:"可售库存"},model:{value:t.goodsInfo.sale_stock,callback:function(e){t.$set(t.goodsInfo,"sale_stock",e)},expression:"goodsInfo.sale_stock"}})],1)],1),e("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e("el-button",{attrs:{type:"primary",loading:t.loading},on:{click:function(e){return t.handleSave()}}},[t._v("保存")]),e("el-button",{attrs:{plain:""},on:{click:function(e){return t.cancel()}}},[t._v("取消")])],1)],1)},k=[],v={components:{Treeselect:u()},props:{show:{type:Boolean,default:()=>!1},id:{type:Number,default:()=>0}},data(){return{goods_id:0,showDialog:!1,treeList:[],skus:[],type_id:null,options:[{id:"下架",label:"下架"},{id:"在售",label:"在售"}],loading:!1,goodsInfo:{goods:{type_id:null}}}},methods:{getGoodsTypes(){let t={parent_id:0};(0,n.Ci)(t).then((t=>{this.treeList=JSON.parse(JSON.stringify(t.data.data).replace(/name/g,"label"))}))},handleSave(){this.loading=!0;let t={title:this.goodsInfo.goods.title,img_url:this.goodsInfo.goods.img_url,type_id:this.goodsInfo.goods.type_id||"",brand_id:this.goodsInfo.goods.brand_id,goods_code:this.goodsInfo.goods.goods_code},e={title:this.goodsInfo.title,external_sku_id:this.goodsInfo.external_sku_id,status:this.goodsInfo.status,num:this.goodsInfo.num,cost:this.goodsInfo.cost,sale_stock:this.goodsInfo.sale_stock,thumb_url:this.goodsInfo.thumb_url,attribute:this.goodsInfo.attribute};"下架"==e.status?e.status=0:"在售"==e.status&&(e.status=1);let o={goods_id:this.goodsInfo.goods_id,goods:t,sku:e};(0,r.e3)(this.goods_id,o).then((t=>{this.$message({type:"success",message:"编辑成功"}),this.loading=!1,this.closeDialog(),this.$emit("complete")})).catch((()=>{this.loading=!1}))},getGoodsInfo(){(0,r.rQ)(this.goods_id).then((t=>{this.goodsInfo=t.data.data,this.goodsInfo.goods.type_id=this.goodsInfo.goods.type_id||null}))},cancel(){this.closeDialog()},normalizer(t){return(!t.children||t.children&&0==t.children.length)&&1==t.level&&(t.isDisabled=!0),t},parseLabel(t){let e="";return e+=t.parentNode?t.parentNode.label+" / ":"",e+=t.raw?t.raw.label:"",e},closeDialog(){this.showDialog=!1,this.$emit("close")}},watch:{id(t,e){this.goods_id=t},show(t,e){t&&(this.showDialog=!0,this.getGoodsInfo(),this.getGoodsTypes())}}},w=v,x=(0,f.Z)(w,y,k,!1,null,"3dbf163e",null),S=x.exports,C={components:{Treeselect:u(),addGoods:b,editGoods:S},data(){return{editPriceId:"",editGoalId:"",total:0,rose_num:0,other_num:0,radio:"",brand:[],treeList:[],loading:!1,tableData:[],shopsData:[],sku_code:{},options:[{id:1,label:"在售"},{id:2,label:"预警"},{id:0,label:"下架"}],options2:[{value:"inventory",label:"盘点表"},{value:"cost",label:"成本表"},{value:"week_data",label:"周数据"}],value:"",options3:[{value:"stock",label:"库存"},{value:"cost",label:"成本"},{value:"loss_num",label:"损耗"},{value:"reserve",label:"预留"}],form:{external_sku_id:"",neq_stock:"",neq_sale_stock:"",goods_title:"",type_id:null,brand_id:"",sku_title:"",status:"",keyword_type:"stock",keyword_value:""},Paginationdata:{},current_page:1,per_page:10,updateType:"",stock:!1,isShow:!1,ejectstock1:!1,Importgoods:!1,Tableexport:!1,isShow1:!1,importForm:{fileList:[]},docImportDrawer:!1,improtRules:{fileList:[{required:!0,message:"请导入Excel文件",trigger:"change"},{validator:(t,e,o)=>{e.length?o():o(new Error("请导入Excel文件"))},trigger:"change"}]},publicPath:"",excelTemplatePath:"",visible:!1,updateField:"",reserveShow:!1,ommodityInventory:[],dialogVisible:!1,dialogVisible2:!1,dialogVisible3:!1,dialogVisible5:!1,publicId:"",lastVal:0,nowVal:0,loadingModule:"",noRow:{},chooseList:[],showUpdate:!1,commitLoading:!1,is_admin:!1,showAdd:!1,showEdit:!1,curId:0,filterTime:[],sort_field:"",sort_value:"",sum:null}},methods:{getStockInfo(){(0,r.sx)().then((t=>{this.rose_num=t.data.rose_num,this.other_num=t.data.other_num}))},handleEdit(t){this.curId=t,this.showEdit=!0},getList(){this.loading=!0;let t={...this.form,page:this.current_page,per_page:this.per_page,create_time_start:this.filterTime?this.filterTime[0]:"",create_time_end:this.filterTime?this.filterTime[1]:"",sort_field:this.sort_field||"id",sort_value:this.sort_value||"desc"};t.type_id=t.type_id||"",(0,r.lO)(t).then((e=>{this.tableData=e.data.data,this.tableData=this.tableData.map((t=>(t={...t,arrived_today_num11:0},t))),this.total=e.data.meta.total,this.Paginationdata=e.data.meta,this.shopsData=this.tableData.map((t=>(t=t.goods&&t.goods.goods_code+"_"+t.sku_code,t))),this.sku_code={sku_code:this.shopsData},this.is_admin=e.data.manage&&e.data.manage.is_admin,this.sum=t.goods_title?e.data.sum:null,this.loading=!1})).catch((()=>{this.loading=!1}))},handleChoose(){this.current_page=1,this.getList()},handleReChoose(){this.form={external_sku_id:"",goods_title:"",type_id:null,brand_id:"",sku_title:"",status:"",neq_stock:"",neq_sale_stock:""},this.filterTime=[]},handleImport(){this.importForm.fileList=[],this.docImportDrawer=!0,this.$nextTick((function(){this.$refs.aupload.clearFiles()}))},handleTypeExport(){this.Tableexport=!0},resetOrderCount(){this.$confirm("确定重置订单计数?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((()=>{(0,d.dT)().then((t=>{this.$message({type:"success",message:t.data.message}),this.getList()}))})).catch((()=>{}))},update(){this.isShow=!0,this.stock=!1,this.updateType="newest"},handleSelectionChange(t){this.chooseList=JSON.parse(JSON.stringify(t))},addNewgoods(){this.showAdd=!0},refreshList(){this.handleChoose()},handleSizeChange(t){this.per_page=t,this.getList()},handleCurrentChange(t){this.current_page=t,this.getList()},cancel(){this.current_page=1,this.getList(),this.isShow=!1,this.stock=!1},handleExport(){let t={exportType:"goods_sku",external_sku_id:this.form.external_sku_id,goods_title:this.form.goods_title,neq_stock:this.form.neq_stock,neq_sale_stock:this.form.neq_sale_stock,type_id:this.form.type_id||"",status:this.form.status,keyword_type:"stock",create_time_start:this.filterTime?this.filterTime[0]:"",create_time_end:this.filterTime?this.filterTime[1]:""};window.open("/goods_skus/export?"+this.objectToQueryString(t))},objectToQueryString(t){return Object.keys(t).map((e=>encodeURIComponent(e)+"="+(t[e]?encodeURIComponent(t[e]):""))).join("&")},sortChange(t){this.sort_field=t.order?t.prop:"",this.sort_value=t.order?"descending"==t.order?"desc":"asc":"",this.current_page=1,this.getList()},onSubmit(){if("newest"===this.updateType){let t=this.tableData.map((t=>[{id:t.id,cost:t.cost,arrived_today_num:t.arrived_today_num11}])),e={updateType:this.updateType,skus:t.flat()};(0,r.Vx)(e).then((t=>{this.$message({message:"上新成功!",type:"success"})}))}if("inventory"===this.updateType){let t=this.tableData.map((t=>[{id:t.id,inventory:t.daily.inventory}])),e={updateType:this.updateType,skus:t.flat()};(0,r.Vx)(e).then((t=>{this.$message({message:"库存盘点成功!",type:"success"})}))}this.isShow=!1,this.stock=!1,this.handleChoose(this.current_page)},onCount(){this.dialogVisible2=!1,this.isShow=!1,this.stock=!0,this.updateType="inventory"},ejectstock(t){this.ommodityInventory=[],this.ejectstock1=!0,this.updateType="stock",this.ommodityInventory.push(t)},cancelStock(){this.handleChoose(this.current_page),this.ejectstock1=!1},oldStock(){if(this.ejectstock1=!1,"stock"===this.updateType){let t=[{id:this.ommodityInventory[0].id,yesterday_num:this.ommodityInventory[0].yesterday_num,two_days_ago_num:this.ommodityInventory[0].two_days_ago_num,arrived_today_num:this.ommodityInventory[0].daily.arrived_today_num}],e={updateType:this.updateType,skus:t};(0,r.Vx)(e).then((t=>{this.handleChoose(this.current_page),this.$message({message:"库存更新成功!",type:"success"})}))}},importFile(){this.docImportDrawer=!0},async importFileChange(t,e){this.importForm.fileList=e},saveUpload(){if(!this.importForm.fileList.length)return void this.$message.error("请先上传文件");this.isLoadingDialog=!0;const t=new FormData;t.append("saleStockFile",this.importForm.fileList[0].raw);let e=localStorage.getItem("token");l().post("/api/goods_skus/saleStockImport",t,{headers:{Authorization:`Bearer ${e}`}}).then((t=>{200===t.status?(this.$message.success("导入成功"),this.current_page=1,this.getList(),this.commitloading=!1,this.docImportDrawer=!1):this.isLoadingDialog=!1})).catch((()=>{this.isLoadingDialog=!1}))},getExcelTemplatePath(){this.$requestInternet.get("/api/xxx").then((t=>{this.excelTemplatePath=t}))},derivation(){window.open("/goods_skus/export?exportType="+this.value)},referencePriceRequest(){let t={updateField:this.updateField,reference_price:this.reference_price};(0,r.K1)(this.publicId,t).then((t=>{this.editPriceId="",this.dialogVisible3=!1,this.$message({message:"参考售价修改成功!",type:"success"})}))},cancelGoal(){this.dialogVisible5=!1,this.updateField="goal_rate",this.editGoalId=this.publicId,this.noRow.goal_rate=this.lastVal},confirmGoal(){let t={updateField:"goal_rate",goal_rate:this.nowVal};(0,r.K1)(this.publicId,t).then((t=>{this.editGoalId="",this.dialogVisible5=!1,this.$message({message:"目标去化率修改成功!",type:"success"})}))},getgoodsType(){let t={per_page:99999};(0,n.Ci)(t).then((t=>{this.treeList=JSON.parse(JSON.stringify(t.data.data).replace(/name/g,"label"))}))},petchEditStock(){this.showUpdate=!0},commitPetchStock(){this.commitLoading=!0;let t=[];this.chooseList.forEach((e=>{t.push({id:e.id,sale_stock:e.sale_stock})}));let e={updateType:"saleStock",skus:t};(0,r.b9)(e).then((t=>{this.commitLoading=!1,this.$refs.multipleTable.clearSelection(),this.$message({message:"更新成功",type:"success"}),this.getList(),this.showUpdate=!1})).catch((()=>{this.commitLoading=!1}))},openSaleEdit(t,e){this.$set(this.tableData[e],"edit",!0),this.$set(this.tableData[e],"sale_stock_old",t.sale_stock)},cancelEdit(t,e){this.$set(this.tableData[e],"sale_stock",t.sale_stock_old),this.$set(this.tableData[e],"edit",!1)},confirmEdit(t,e){let o={updateType:"saleStock",skus:[{id:t.id,sale_stock:t.sale_stock}]};(0,r.b9)(o).then((t=>{this.$message({message:"更新成功",type:"success"}),this.$set(this.tableData[e],"edit",!1)}))},normalizer(t){return(!t.children||t.children&&0==t.children.length)&&1==t.level&&(t.isDisabled=!0),t},parseLabel(t){console.log(t);let e="";return e+=t.parentNode?t.parentNode.label+" / ":"",e+=t.raw?t.raw.label:"",e}},watch:{$route(t,e){window.location.reload()}},mounted(){this.getList(),this.getStockInfo(),this.getgoodsType()}},I=C,$=(0,f.Z)(I,s,i,!1,null,"97b6b362",null),T=$.exports},9036:function(t,e,o){o.d(e,{CD:function(){return b},JS:function(){return y},K1:function(){return c},NR:function(){return m},Rq:function(){return a},Vx:function(){return d},b9:function(){return k},cM:function(){return u},e3:function(){return r},gM:function(){return g},lO:function(){return i},no:function(){return f},od:function(){return p},rQ:function(){return l},sx:function(){return _},t5:function(){return n},zl:function(){return h}});var s=o(8430);function i(t){return(0,s.Z)({url:"/api/goods_skus",method:"get",params:t})}function a(t){return(0,s.Z)({url:"/api/goods",method:"post",data:t})}function l(t){return(0,s.Z)({url:`/api/goods_skus/${t}`,method:"get"})}function n(t){return(0,s.Z)({url:"/api/goods",method:"get",params:t})}function r(t,e){return(0,s.Z)({url:`/api/goods_skus/${t}`,method:"patch",data:e})}function d(t){return(0,s.Z)({url:"/api/batch/goods_skus",method:"patch",data:t})}function c(t,e){return(0,s.Z)({url:`/api/single/goods_skus/${t}`,method:"patch",data:e})}function u(t,e){return(0,s.Z)({url:"/api/upload",Headers:e,method:"post",data:t})}function p(t){return(0,s.Z)({url:"/api/goodsList",method:"get",params:t})}function h(t){return(0,s.Z)({url:"/api/goods_sku_location",method:"get",params:t})}function m(t){return(0,s.Z)({url:"/api/goodsSkusList",method:"get",params:{title:t}})}function _(){return(0,s.Z)({url:"/api/stock/goods_skus",method:"get"})}function f(t){return(0,s.Z)({url:"/api/goods/filter/"+t,method:"get"})}function g(t){return(0,s.Z)({url:"/api/goods_combination",method:"post",data:t})}function b(t){return(0,s.Z)({url:"/api/goods_combination",method:"get",params:t})}function y(t){return(0,s.Z)({url:"/api/goods_combination/"+t,method:"get"})}function k(t){return(0,s.Z)({url:"/api/batch/goods_skus",method:"patch",data:t})}},9998:function(t,e,o){o.d(e,{$i:function(){return a},OV:function(){return c},Vq:function(){return p},_d:function(){return d},dT:function(){return h},hA:function(){return i},nH:function(){return l},ow:function(){return r},rV:function(){return n},tA:function(){return u}});var s=o(8430);function i(){return(0,s.Z)({url:"/api/shop_platforms",method:"get"})}function a(t){return(0,s.Z)({url:"/api/shops",method:"post",data:t})}function l(t){return(0,s.Z)({url:"/api/shops",method:"get",params:t})}function n(t){return(0,s.Z)({url:`/api/download/${t}/goods`,method:"get"})}function r(t,e){return(0,s.Z)({url:`/api/shops/${t}`,method:"patch",params:e})}function d(t){return(0,s.Z)({url:"/api/sync/shop/stock",method:"put",params:t})}function c(){return(0,s.Z)({url:"/api/shop/ship",method:"get"})}function u(t,e){return(0,s.Z)({url:"/api/shop/ship/senders",method:"get",params:{shop_id:t,shop_ship_id:e}})}function p(t){return(0,s.Z)({url:"/api/shop/ship/senders",method:"post",params:t})}function h(t){return(0,s.Z)({url:"/api/order/reset",method:"get"})}}}]); -//# sourceMappingURL=298.143f4f4b.js.map \ No newline at end of file +"use strict";(self["webpackChunkerp"]=self["webpackChunkerp"]||[]).push([[298],{4298:function(t,e,o){o.r(e),o.d(e,{default:function(){return T}});var s=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"cardBox"},[e("div",{staticClass:"searchBox"},[e("div",{staticClass:"row"},[e("span",[t._v("商品名称:")]),e("el-input",{attrs:{placeholder:"商品名称",clearable:""},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.handleChoose.apply(null,arguments)}},model:{value:t.form.goods_title,callback:function(e){t.$set(t.form,"goods_title",e)},expression:"form.goods_title"}})],1),e("div",{staticClass:"row"},[e("span",[t._v("商品品种/品类:")]),e("treeselect",{staticStyle:{width:"200px"},attrs:{options:t.treeList,"disable-branch-nodes":!0,"show-count":!0,normalizer:t.normalizer,placeholder:"请选择品种"},scopedSlots:t._u([{key:"value-label",fn:function({node:o}){return e("div",{},[t._v(t._s(t.parseLabel(o)))])}}]),model:{value:t.form.type_id,callback:function(e){t.$set(t.form,"type_id",e)},expression:"form.type_id"}})],1),e("div",{staticClass:"row"},[e("span",[t._v("商品编码:")]),e("el-input",{attrs:{placeholder:"商品编码",clearable:""},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.handleChoose.apply(null,arguments)}},model:{value:t.form.external_sku_id,callback:function(e){t.$set(t.form,"external_sku_id",e)},expression:"form.external_sku_id"}})],1),e("div",{staticClass:"row"},[e("span",[t._v("商品状态:")]),e("el-select",{attrs:{placeholder:"商品状态",clearable:""},on:{change:function(e){return t.handleChoose()}},model:{value:t.form.status,callback:function(e){t.$set(t.form,"status",e)},expression:"form.status"}},t._l(t.options,(function(t){return e("el-option",{key:t.id,attrs:{label:t.label,value:t.id}})})),1)],1),e("div",{staticClass:"row"},[e("span",[t._v("创建时间:")]),e("el-date-picker",{staticStyle:{width:"250px"},attrs:{type:"datetimerange","range-separator":"至","start-placeholder":"开始时间","end-placeholder":"结束时间",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",clearable:""},on:{change:function(e){return t.handleChoose()}},model:{value:t.filterTime,callback:function(e){t.filterTime=e},expression:"filterTime"}})],1),e("div",{staticClass:"row"},[e("span",[t._v("剩余库存≠:")]),e("el-input",{attrs:{placeholder:"剩余库存",clearable:""},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.handleChoose.apply(null,arguments)}},model:{value:t.form.neq_stock,callback:function(e){t.$set(t.form,"neq_stock",e)},expression:"form.neq_stock"}})],1),e("div",{staticClass:"row"},[e("span",[t._v("在售库存≠:")]),e("el-input",{attrs:{placeholder:"在售库存",clearable:""},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.handleChoose.apply(null,arguments)}},model:{value:t.form.neq_sale_stock,callback:function(e){t.$set(t.form,"neq_sale_stock",e)},expression:"form.neq_sale_stock"}})],1),e("div",{staticClass:"row"},[e("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:function(e){return t.handleChoose()}}},[t._v("筛选")]),e("el-button",{attrs:{plain:"",icon:"el-icon-refresh"},on:{click:t.handleReChoose}},[t._v("重置筛选")])],1)])]),e("el-card",[e("div",[e("div",{staticStyle:{display:"flex","align-items":"center","justify-content":"space-between"}},[e("div",{staticStyle:{display:"flex","flex-wrap":"wrap"}},[e("span",{staticStyle:{"margin-right":"20px"}},[t._v("全部商品(共"+t._s(t.total)+"条)")]),t.sum?e("div",{staticStyle:{color:"#f00"}},[t._v("销量"+t._s(t.sum.goods_number)+",实际库存"+t._s(t.sum.real_stock)+",剩余库存"+t._s(t.sum.stock))]):t._e()]),e("div",{staticClass:"btn"},[e("el-button",{attrs:{icon:"el-icon-refresh"},on:{click:t.resetOrderCount}},[t._v("订单重置")]),e("el-button",{attrs:{type:"primary",icon:"el-icon-edit",disabled:!t.chooseList.length},on:{click:t.petchEditStock}},[t._v("批量更新在售库存")]),t.is_admin?e("el-button",{attrs:{type:"primary",icon:"el-icon-plus"},on:{click:t.addNewgoods}},[t._v("新增商品")]):t._e(),t.is_admin?e("el-button",{attrs:{type:"primary",plain:"",icon:"el-icon-upload2"},on:{click:t.handleImport}},[t._v("在售库存导入")]):t._e(),e("el-button",{attrs:{type:"warning",icon:"el-icon-download"},on:{click:t.handleTypeExport}},[t._v("选择类型导出")]),e("el-button",{attrs:{type:"warning",icon:"el-icon-download"},on:{click:t.handleExport}},[t._v("数据导出")])],1)]),e("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"multipleTable",staticClass:"table",staticStyle:{width:"100%"},attrs:{border:"",data:t.tableData,"tooltip-effect":"dark"},on:{"selection-change":t.handleSelectionChange,"sort-change":t.sortChange}},[e("el-table-column",{attrs:{type:"selection",align:"center"}}),e("el-table-column",{attrs:{label:"商品信息",width:"300"},scopedSlots:t._u([{key:"default",fn:function(o){return[e("div",{staticClass:"goodBox flex"},[o.row.goods&&o.row.goods.img_url?e("img",{staticClass:"Img",attrs:{src:o.row.goods.img_url}}):t._e(),e("div",[e("div",{staticClass:"tit"},[t._v(t._s(o.row.name))]),e("p",[t._v(t._s(o.row.external_sku_id))]),e("p",[t._v(t._s(o.row.created_at))])])])]}}])}),e("el-table-column",{attrs:{prop:"cost",label:"成本",align:"center"},scopedSlots:t._u([{key:"default",fn:function(o){return[e("div",{staticClass:"flex",staticStyle:{"justify-content":"center"}},[t.isShow?e("div",[e("el-input",{model:{value:o.row.cost,callback:function(e){t.$set(o.row,"cost",e)},expression:"scope.row.cost"}})],1):e("span",[t._v(t._s(o.row.cost||0))])])]}}])}),e("el-table-column",{attrs:{prop:"order_goods_num",sortable:"custom",label:"销量",align:"center"},scopedSlots:t._u([{key:"default",fn:function(o){return[e("span",[t._v(t._s(o.row.order_goods_num))]),0!==o.row.order_detail.length?e("el-popover",{attrs:{placement:"right-start",trigger:"hover"}},[e("div",t._l(o.row.order_detail,(function(o,s){return e("span",{key:s},[e("div",[t._v(t._s(o.shop.name)+":"+t._s(o.number))])])})),0),e("i",{staticClass:"el-icon-view",staticStyle:{"padding-left":"5px"},attrs:{slot:"reference"},slot:"reference"})]):t._e()]}}])}),e("el-table-column",{attrs:{prop:"yesterday_num",label:"实际库存",align:"center"}}),e("el-table-column",{attrs:{prop:"sale_stock",label:"可售库存",sortable:"custom",width:"160"},scopedSlots:t._u([{key:"default",fn:function(o){return[o.row.edit?e("div",{staticClass:"titBox"},[e("el-input",{staticStyle:{width:"100%"},attrs:{placeholder:"可售库存",size:"mini"},model:{value:o.row.sale_stock,callback:function(e){t.$set(o.row,"sale_stock",e)},expression:"scope.row.sale_stock"}}),e("span",{staticStyle:{color:"#666",cursor:"pointer","font-size":"18px","margin-left":"5px"},on:{click:function(e){return t.cancelEdit(o.row,o.$index)}}},[e("i",{staticClass:"el-icon-close"})]),e("span",{staticStyle:{color:"#409eff",cursor:"pointer","font-size":"18px","margin-left":"5px"},on:{click:function(e){return t.confirmEdit(o.row,o.$index)}}},[e("i",{staticClass:"el-icon-check"})])],1):e("div",[t._v(t._s(o.row.sale_stock)+" "),e("span",{staticStyle:{color:"#409eff","margin-left":"5px",cursor:"pointer","font-size":"15px"},on:{click:function(e){return t.openSaleEdit(o.row,o.$index)}}},[e("i",{staticClass:"el-icon-edit"})])])]}}])}),e("el-table-column",{attrs:{label:"剩余库存",sortable:"custom",align:"center",prop:"stock"},scopedSlots:t._u([{key:"default",fn:function(o){return[e("span",{class:1*o.row.stock<0?"red":""},[t._v(t._s(o.row.stock))])]}}])}),e("el-table-column",{attrs:{prop:"status",label:"状态",align:"center"}}),t.is_admin?e("el-table-column",{attrs:{label:"操作",align:"center",width:"120"},scopedSlots:t._u([{key:"default",fn:function(o){return[e("el-button",{attrs:{type:"text"},on:{click:function(e){return t.handleEdit(o.row.id)}}},[t._v("编辑")])]}}],null,!1,1564336291)}):t._e()],1)],1),e("div",{directives:[{name:"show",rawName:"v-show",value:t.isShow||t.stock,expression:"isShow || stock"}],staticClass:"footerBtn"},[e("el-button",{staticClass:"confirmbtn",attrs:{type:"primary"},on:{click:function(e){return t.cancel()}}},[t._v("取消")]),e("el-button",{staticClass:"confirmbtn",attrs:{type:"primary"},on:{click:function(e){return t.onSubmit()}}},[t._v("保存")])],1),e("div",{staticClass:"page-pagination"},[e("el-pagination",{attrs:{"current-page":t.current_page,"page-sizes":[10,30,50,100,200],"page-size":t.per_page,layout:"total, sizes, prev, pager, next, jumper",total:t.Paginationdata.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1)]),e("el-dialog",{attrs:{title:"库存修改",visible:t.ejectstock1,width:"30%","close-on-click-modal":!1},on:{"update:visible":function(e){t.ejectstock1=e}}},[e("el-table",{staticStyle:{width:"100%"},attrs:{data:t.ommodityInventory,"tooltip-effect":"dark"}},[e("el-table-column",{attrs:{prop:"two_days_ago_num",label:"2天前库存"},scopedSlots:t._u([{key:"default",fn:function(o){return[e("div",[e("el-input",{attrs:{disabled:!0},model:{value:o.row.two_days_ago_num,callback:function(e){t.$set(o.row,"two_days_ago_num",e)},expression:"scope.row.two_days_ago_num"}}),e("el-input",{model:{value:o.row.two_days_ago_num,callback:function(e){t.$set(o.row,"two_days_ago_num",e)},expression:"scope.row.two_days_ago_num"}})],1)]}}])}),e("el-table-column",{attrs:{prop:"yesterday_num",label:"1天前库存"},scopedSlots:t._u([{key:"default",fn:function(o){return[e("div",[e("el-input",{attrs:{disabled:!0},model:{value:o.row.yesterday_num,callback:function(e){t.$set(o.row,"yesterday_num",e)},expression:"scope.row.yesterday_num"}}),e("el-input",{model:{value:o.row.yesterday_num,callback:function(e){t.$set(o.row,"yesterday_num",e)},expression:"scope.row.yesterday_num"}})],1)]}}])}),e("el-table-column",{attrs:{sortable:"",label:"今日到货"},scopedSlots:t._u([{key:"default",fn:function(o){return[e("div",[e("el-input",{attrs:{disabled:!0},model:{value:o.row.daily.arrived_today_num,callback:function(e){t.$set(o.row.daily,"arrived_today_num",e)},expression:"scope.row.daily.arrived_today_num"}}),e("el-input",{model:{value:o.row.daily.arrived_today_num,callback:function(e){t.$set(o.row.daily,"arrived_today_num",e)},expression:"scope.row.daily.arrived_today_num"}})],1)]}}])})],1),e("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e("el-button",{on:{click:function(e){return t.cancelStock()}}},[t._v("取 消")]),e("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.oldStock()}}},[t._v("确 定")])],1)],1),e("el-dialog",{attrs:{title:"提示",visible:t.dialogVisible3,width:"20%","close-on-click-modal":!1},on:{"update:visible":function(e){t.dialogVisible3=e}}},[e("span",[t._v("确定要修改售价吗?")]),e("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e("el-button",{on:{click:function(e){t.dialogVisible3=!1}}},[t._v("取 消")]),e("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.referencePriceRequest()}}},[t._v("确 定")])],1)]),e("el-dialog",{attrs:{title:"提示",visible:t.dialogVisible5,width:"20%","close-on-click-modal":!1},on:{"update:visible":function(e){t.dialogVisible5=e}}},[e("span",[t._v("确定要修改目标去化率吗?")]),e("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e("el-button",{on:{click:t.cancelGoal}},[t._v("取 消")]),e("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.confirmGoal()}}},[t._v("确 定")])],1)]),e("el-dialog",{attrs:{title:"表格导出",visible:t.Tableexport,width:"30%","close-on-click-modal":!1},on:{"update:visible":function(e){t.Tableexport=e}}},[e("div",[e("span",[t._v("选择:")]),[e("el-select",{attrs:{placeholder:"盘点表/成本表/周数据"},model:{value:t.value,callback:function(e){t.value=e},expression:"value"}},t._l(t.options2,(function(t){return e("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)]],2),e("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e("el-button",{on:{click:function(e){t.Tableexport=!1}}},[t._v("取 消")]),e("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.derivation()}}},[t._v("确 定")])],1)]),e("el-dialog",{ref:"drawer",attrs:{title:"在售库存导入",visible:t.docImportDrawer,direction:"rtl","custom-class":"demo-drawer",width:"450px","close-on-click-modal":!1},on:{"update:visible":function(e){t.docImportDrawer=e},close:function(e){t.importForm.imFileList=[]}}},[e("div",{staticClass:"demo-drawer__content"},[e("el-upload",{ref:"aupload",staticClass:"upload-demo",attrs:{action:"",limit:1,drag:"",accept:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel","file-list":t.importForm.fileList,"auto-upload":!1,"on-change":t.importFileChange}},[e("i",{staticClass:"el-icon-upload"}),e("div",{staticClass:"el-upload__text"},[t._v("将文件拖到此处,或"),e("em",[t._v("点击上传")])])])],1),e("div",{staticClass:"import-right"},[e("el-button",{attrs:{size:"medium",type:"text"}},[e("a",{attrs:{href:"/goods/import/template"}},[t._v("下载模板")])])],1),e("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e("el-button",{on:{click:function(e){t.docImportDrawer=!1}}},[t._v("取 消")]),e("el-button",{attrs:{type:"primary"},on:{click:t.saveUpload}},[t._v("上 传")])],1)]),e("el-dialog",{attrs:{title:"可售库存",visible:t.showUpdate,width:"600px"},on:{"update:visible":function(e){t.showUpdate=e}}},[e("div",{},[e("el-table",{staticStyle:{width:"100%"},attrs:{data:t.chooseList,border:""}},[e("el-table-column",{attrs:{label:"商品信息"},scopedSlots:t._u([{key:"default",fn:function(o){return[e("div",{staticClass:"goodBox flex"},[o.row.goods&&o.row.goods.img_url?e("img",{staticClass:"Img",attrs:{src:o.row.goods.img_url}}):t._e(),e("div",[e("div",{staticClass:"tit"},[t._v(t._s(o.row.name))]),e("p",[t._v(t._s(o.row.external_sku_id))])])])]}}])}),e("el-table-column",{attrs:{label:"可售库存",width:"200"},scopedSlots:t._u([{key:"default",fn:function(o){return[e("el-input",{model:{value:o.row.sale_stock,callback:function(e){t.$set(o.row,"sale_stock",e)},expression:"scope.row.sale_stock"}})]}}])})],1)],1),e("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e("el-button",{on:{click:function(e){t.showUpdate=!1}}},[t._v("取 消")]),e("el-button",{attrs:{type:"primary",loading:t.commitLoading},on:{click:function(e){return t.commitPetchStock()}}},[t._v("更 新")])],1)]),e("add-goods",{attrs:{show:t.showAdd},on:{close:function(e){t.showAdd=!1},complete:t.refreshList}}),e("edit-goods",{attrs:{show:t.showEdit,id:t.curId},on:{close:function(e){t.showEdit=!1},complete:t.refreshList}})],1)},i=[],a=(o(560),o(9669)),l=o.n(a),n=o(2346),r=o(9036),d=o(9998),c=o(4301),u=o.n(c),p=function(){var t=this,e=t._self._c;return e("el-dialog",{attrs:{visible:t.show,title:"新增商品",width:"900px","close-on-click-modal":!1},on:{"update:visible":function(e){t.show=e},close:t.closeDialog}},[e("el-form",{attrs:{"label-width":"120px",inline:!0}},[e("el-form-item",{attrs:{label:"商品品种/品类:"}},[e("treeselect",{staticStyle:{width:"200px"},attrs:{options:t.treeList,"disable-branch-nodes":!0,"show-count":!0,normalizer:t.normalizer,placeholder:"请选择品种"},scopedSlots:t._u([{key:"value-label",fn:function({node:o}){return e("div",{},[t._v(t._s(t.parseLabel(o)))])}}]),model:{value:t.type_id,callback:function(e){t.type_id=e},expression:"type_id"}})],1),t._l(t.skus,(function(o,s){return e("div",{key:s,staticClass:"skuBox"},[e("div",{staticClass:"tit"},[t._v("规格"+t._s(s+1))]),e("el-form-item",{attrs:{label:"规格名称:"}},[e("el-input",{attrs:{placeholder:"规格名称"},model:{value:o.title,callback:function(e){t.$set(o,"title",e)},expression:"item.title"}})],1),e("el-form-item",{attrs:{label:"颜色/特性:"}},[e("el-input",{attrs:{placeholder:"颜色/特性"},model:{value:o.attribute,callback:function(e){t.$set(o,"attribute",e)},expression:"item.attribute"}})],1),e("el-form-item",{attrs:{label:"商品状态:"}},[e("el-select",{staticStyle:{width:"200px"},attrs:{placeholder:"下架(默认)"},model:{value:o.status,callback:function(e){t.$set(o,"status",e)},expression:"item.status"}},t._l(t.options,(function(t){return e("el-option",{key:t.id,attrs:{label:t.label,value:t.id}})})),1)],1),e("el-form-item",{attrs:{label:"商品成本:"}},[e("el-input",{attrs:{placeholder:"商品成本"},model:{value:o.cost,callback:function(e){t.$set(o,"cost",e)},expression:"item.cost"}})],1),e("div",[e("el-form-item",{attrs:{label:"可售库存:"}},[e("el-input",{attrs:{placeholder:"可售库存"},model:{value:o.sale_stock,callback:function(e){t.$set(o,"sale_stock",e)},expression:"item.sale_stock"}})],1),e("el-form-item",{attrs:{label:"最终编码:"}},[e("el-input",{attrs:{placeholder:"不输入自动生成"},model:{value:o.external_sku_id,callback:function(e){t.$set(o,"external_sku_id",e)},expression:"item.external_sku_id"}})],1),e("el-form-item",{attrs:{label:""}},[e("el-button",{attrs:{type:"danger",size:"mini",icon:"el-icon-delete"},on:{click:function(e){return t.handleDelete(s)}}},[t._v("删除")])],1)],1)],1)})),e("div",[e("el-form-item",[e("el-button",{attrs:{type:"success",icon:"el-icon-plus"},on:{click:function(e){return t.toAddSku()}}},[t._v("增加规格")])],1)],1)],2),e("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e("el-button",{attrs:{type:"primary",loading:t.loading},on:{click:function(e){return t.handleSave()}}},[t._v("保存")]),e("el-button",{attrs:{plain:""},on:{click:function(e){return t.cancel()}}},[t._v("取消")])],1)],1)},h=[],m={components:{Treeselect:u()},props:{show:{type:Boolean,default:()=>!1}},data(){return{showDialog:!1,treeList:[],skus:[],type_id:null,options:[{id:0,label:"下架"},{id:1,label:"在售"}],loading:!1}},methods:{getGoodsTypes(){let t={parent_id:0};(0,n.Ci)(t).then((t=>{this.treeList=JSON.parse(JSON.stringify(t.data.data).replace(/name/g,"label"))}))},handleSave(){this.loading=!0;let t=this.skus,e={type_id:this.type_id||"",goods_id:"",skus:t};(0,r.Rq)(e).then((t=>{this.$message({message:"商品添加成功!",type:"success"}),this.loading=!1,this.closeDialog(),this.$emit("complete")})).catch((()=>{this.loading=!1}))},toAddSku(){this.type_id?this.handleAdd():this.$message({message:"请选择商品品种/品类",type:"error"})},handleAdd(){let t={title:"",external_sku_id:"",status:0,num:0,cost:0,sale_stock:9999,reserve:0,attribute:""};this.skus.push(t)},handleDelete(t){this.skus.splice(t,1)},cancel(){this.closeDialog()},normalizer(t){return(!t.children||t.children&&0==t.children.length)&&1==t.level&&(t.isDisabled=!0),t},parseLabel(t){let e="";return e+=t.parentNode?t.parentNode.label+" / ":"",e+=t.raw?t.raw.label:"",e},closeDialog(){this.showDialog=!1,this.$emit("close")}},watch:{show:{handler(t,e){t&&(this.skus=[],this.showDialog=!0,this.handleAdd(),this.getGoodsTypes())},deep:!0,immediate:!0}}},_=m,f=o(1001),g=(0,f.Z)(_,p,h,!1,null,"4de310da",null),b=g.exports,y=function(){var t=this,e=t._self._c;return e("el-dialog",{attrs:{visible:t.show,title:"编辑商品",width:"900px","close-on-click-modal":!1},on:{"update:visible":function(e){t.show=e},close:t.closeDialog}},[e("el-form",{attrs:{"label-width":"120px",inline:!0}},[e("el-form-item",{attrs:{label:"商品品种/品类:"}},[e("treeselect",{staticStyle:{width:"200px"},attrs:{options:t.treeList,"disable-branch-nodes":!0,"show-count":!0,normalizer:t.normalizer,placeholder:"请选择品种"},scopedSlots:t._u([{key:"value-label",fn:function({node:o}){return e("div",{},[t._v(t._s(t.parseLabel(o)))])}}]),model:{value:t.goodsInfo.goods.type_id,callback:function(e){t.$set(t.goodsInfo.goods,"type_id",e)},expression:"goodsInfo.goods.type_id"}})],1),e("el-form-item",{attrs:{label:"规格名称:"}},[e("el-input",{attrs:{placeholder:"规格名称"},model:{value:t.goodsInfo.title,callback:function(e){t.$set(t.goodsInfo,"title",e)},expression:"goodsInfo.title"}})],1),e("el-form-item",{attrs:{label:"最终编码:"}},[e("el-input",{attrs:{placeholder:"不输入自动生成",disabled:""},model:{value:t.goodsInfo.external_sku_id,callback:function(e){t.$set(t.goodsInfo,"external_sku_id",e)},expression:"goodsInfo.external_sku_id"}})],1),e("el-form-item",{attrs:{label:"颜色/特性:"}},[e("el-input",{attrs:{placeholder:"颜色/特性"},model:{value:t.goodsInfo.attribute,callback:function(e){t.$set(t.goodsInfo,"attribute",e)},expression:"goodsInfo.attribute"}})],1),e("el-form-item",{attrs:{label:"商品状态:"}},[e("el-select",{staticStyle:{width:"200px"},attrs:{placeholder:"下架(默认)"},model:{value:t.goodsInfo.status,callback:function(e){t.$set(t.goodsInfo,"status",e)},expression:"goodsInfo.status"}},t._l(t.options,(function(t){return e("el-option",{key:t.id,attrs:{label:t.label,value:t.id}})})),1)],1),e("el-form-item",{attrs:{label:"商品成本:"}},[e("el-input",{attrs:{placeholder:"商品成本"},model:{value:t.goodsInfo.cost,callback:function(e){t.$set(t.goodsInfo,"cost",e)},expression:"goodsInfo.cost"}})],1),e("el-form-item",{attrs:{label:"在售库存:"}},[e("el-input",{attrs:{placeholder:"可售库存"},model:{value:t.goodsInfo.sale_stock,callback:function(e){t.$set(t.goodsInfo,"sale_stock",e)},expression:"goodsInfo.sale_stock"}})],1)],1),e("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e("el-button",{attrs:{type:"primary",loading:t.loading},on:{click:function(e){return t.handleSave()}}},[t._v("保存")]),e("el-button",{attrs:{plain:""},on:{click:function(e){return t.cancel()}}},[t._v("取消")])],1)],1)},k=[],v={components:{Treeselect:u()},props:{show:{type:Boolean,default:()=>!1},id:{type:Number,default:()=>0}},data(){return{goods_id:0,showDialog:!1,treeList:[],skus:[],type_id:null,options:[{id:"下架",label:"下架"},{id:"在售",label:"在售"}],loading:!1,goodsInfo:{goods:{type_id:null}}}},methods:{getGoodsTypes(){let t={parent_id:0};(0,n.Ci)(t).then((t=>{this.treeList=JSON.parse(JSON.stringify(t.data.data).replace(/name/g,"label"))}))},handleSave(){this.loading=!0;let t={title:this.goodsInfo.goods.title,img_url:this.goodsInfo.goods.img_url,type_id:this.goodsInfo.goods.type_id||"",brand_id:this.goodsInfo.goods.brand_id,goods_code:this.goodsInfo.goods.goods_code},e={title:this.goodsInfo.title,external_sku_id:this.goodsInfo.external_sku_id,status:this.goodsInfo.status,num:this.goodsInfo.num,cost:this.goodsInfo.cost,sale_stock:this.goodsInfo.sale_stock,thumb_url:this.goodsInfo.thumb_url,attribute:this.goodsInfo.attribute};"下架"==e.status?e.status=0:"在售"==e.status&&(e.status=1);let o={goods_id:this.goodsInfo.goods_id,goods:t,sku:e};(0,r.e3)(this.goods_id,o).then((t=>{this.$message({type:"success",message:"编辑成功"}),this.loading=!1,this.closeDialog(),this.$emit("complete")})).catch((()=>{this.loading=!1}))},getGoodsInfo(){(0,r.rQ)(this.goods_id).then((t=>{this.goodsInfo=t.data.data,this.goodsInfo.goods.type_id=this.goodsInfo.goods.type_id||null}))},cancel(){this.closeDialog()},normalizer(t){return(!t.children||t.children&&0==t.children.length)&&1==t.level&&(t.isDisabled=!0),t},parseLabel(t){let e="";return e+=t.parentNode?t.parentNode.label+" / ":"",e+=t.raw?t.raw.label:"",e},closeDialog(){this.showDialog=!1,this.$emit("close")}},watch:{id(t,e){this.goods_id=t},show(t,e){t&&(this.showDialog=!0,this.getGoodsInfo(),this.getGoodsTypes())}}},w=v,x=(0,f.Z)(w,y,k,!1,null,"3dbf163e",null),C=x.exports,S={components:{Treeselect:u(),addGoods:b,editGoods:C},data(){return{editPriceId:"",editGoalId:"",total:0,rose_num:0,other_num:0,radio:"",brand:[],treeList:[],loading:!1,tableData:[],shopsData:[],sku_code:{},options:[{id:1,label:"在售"},{id:2,label:"预警"},{id:0,label:"下架"}],options2:[{value:"inventory",label:"盘点表"},{value:"cost",label:"成本表"},{value:"week_data",label:"周数据"}],value:"",options3:[{value:"stock",label:"库存"},{value:"cost",label:"成本"},{value:"loss_num",label:"损耗"},{value:"reserve",label:"预留"}],form:{external_sku_id:"",neq_stock:"",neq_sale_stock:"",goods_title:"",type_id:null,brand_id:"",sku_title:"",status:"",keyword_type:"stock",keyword_value:""},Paginationdata:{},current_page:1,per_page:10,updateType:"",stock:!1,isShow:!1,ejectstock1:!1,Importgoods:!1,Tableexport:!1,isShow1:!1,importForm:{fileList:[]},docImportDrawer:!1,improtRules:{fileList:[{required:!0,message:"请导入Excel文件",trigger:"change"},{validator:(t,e,o)=>{e.length?o():o(new Error("请导入Excel文件"))},trigger:"change"}]},publicPath:"",excelTemplatePath:"",visible:!1,updateField:"",reserveShow:!1,ommodityInventory:[],dialogVisible:!1,dialogVisible2:!1,dialogVisible3:!1,dialogVisible5:!1,publicId:"",lastVal:0,nowVal:0,loadingModule:"",noRow:{},chooseList:[],showUpdate:!1,commitLoading:!1,is_admin:!1,showAdd:!1,showEdit:!1,curId:0,filterTime:[],sort_field:"",sort_value:"",sum:null}},methods:{getStockInfo(){(0,r.sx)().then((t=>{this.rose_num=t.data.rose_num,this.other_num=t.data.other_num}))},handleEdit(t){this.curId=t,this.showEdit=!0},getList(){this.loading=!0;let t={...this.form,page:this.current_page,per_page:this.per_page,create_time_start:this.filterTime?this.filterTime[0]:"",create_time_end:this.filterTime?this.filterTime[1]:"",sort_field:this.sort_field||"id",sort_value:this.sort_value||"desc"};t.type_id=t.type_id||"",(0,r.lO)(t).then((e=>{this.tableData=e.data.data,this.tableData=this.tableData.map((t=>(t={...t,arrived_today_num11:0},t))),this.total=e.data.meta.total,this.Paginationdata=e.data.meta,this.shopsData=this.tableData.map((t=>(t=t.goods&&t.goods.goods_code+"_"+t.sku_code,t))),this.sku_code={sku_code:this.shopsData},this.is_admin=e.data.manage&&e.data.manage.is_admin,this.sum=t.goods_title?e.data.sum:null,this.loading=!1})).catch((()=>{this.loading=!1}))},handleChoose(){this.current_page=1,this.getList()},handleReChoose(){this.form={external_sku_id:"",goods_title:"",type_id:null,brand_id:"",sku_title:"",status:"",neq_stock:"",neq_sale_stock:""},this.filterTime=[]},handleImport(){this.importForm.fileList=[],this.docImportDrawer=!0,this.$nextTick((function(){this.$refs.aupload.clearFiles()}))},handleTypeExport(){this.Tableexport=!0},resetOrderCount(){this.$confirm("确定重置订单计数?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((()=>{(0,d.dT)().then((t=>{this.$message({type:"success",message:t.data.message}),this.getList()}))})).catch((()=>{}))},update(){this.isShow=!0,this.stock=!1,this.updateType="newest"},handleSelectionChange(t){this.chooseList=JSON.parse(JSON.stringify(t))},addNewgoods(){this.showAdd=!0},refreshList(){this.handleChoose()},handleSizeChange(t){this.per_page=t,this.getList()},handleCurrentChange(t){this.current_page=t,this.getList()},cancel(){this.current_page=1,this.getList(),this.isShow=!1,this.stock=!1},handleExport(){let t={exportType:"goods_sku",external_sku_id:this.form.external_sku_id,goods_title:this.form.goods_title,neq_stock:this.form.neq_stock,neq_sale_stock:this.form.neq_sale_stock,type_id:this.form.type_id||"",status:this.form.status,keyword_type:"stock",create_time_start:this.filterTime?this.filterTime[0]:"",create_time_end:this.filterTime?this.filterTime[1]:""};window.open("/goods_skus/export?"+this.objectToQueryString(t))},objectToQueryString(t){return Object.keys(t).map((e=>encodeURIComponent(e)+"="+(t[e]?encodeURIComponent(t[e]):""))).join("&")},sortChange(t){this.sort_field=t.order?t.prop:"",this.sort_value=t.order?"descending"==t.order?"desc":"asc":"",this.current_page=1,this.getList()},onSubmit(){if("newest"===this.updateType){let t=this.tableData.map((t=>[{id:t.id,cost:t.cost,arrived_today_num:t.arrived_today_num11}])),e={updateType:this.updateType,skus:t.flat()};(0,r.Vx)(e).then((t=>{this.$message({message:"上新成功!",type:"success"})}))}if("inventory"===this.updateType){let t=this.tableData.map((t=>[{id:t.id,inventory:t.daily.inventory}])),e={updateType:this.updateType,skus:t.flat()};(0,r.Vx)(e).then((t=>{this.$message({message:"库存盘点成功!",type:"success"})}))}this.isShow=!1,this.stock=!1,this.handleChoose(this.current_page)},onCount(){this.dialogVisible2=!1,this.isShow=!1,this.stock=!0,this.updateType="inventory"},ejectstock(t){this.ommodityInventory=[],this.ejectstock1=!0,this.updateType="stock",this.ommodityInventory.push(t)},cancelStock(){this.handleChoose(this.current_page),this.ejectstock1=!1},oldStock(){if(this.ejectstock1=!1,"stock"===this.updateType){let t=[{id:this.ommodityInventory[0].id,yesterday_num:this.ommodityInventory[0].yesterday_num,two_days_ago_num:this.ommodityInventory[0].two_days_ago_num,arrived_today_num:this.ommodityInventory[0].daily.arrived_today_num}],e={updateType:this.updateType,skus:t};(0,r.Vx)(e).then((t=>{this.handleChoose(this.current_page),this.$message({message:"库存更新成功!",type:"success"})}))}},importFile(){this.docImportDrawer=!0},async importFileChange(t,e){this.importForm.fileList=e},saveUpload(){if(!this.importForm.fileList.length)return void this.$message.error("请先上传文件");this.isLoadingDialog=!0;const t=new FormData;t.append("saleStockFile",this.importForm.fileList[0].raw);let e=localStorage.getItem("token");l().post("/api/goods_skus/saleStockImport",t,{headers:{Authorization:`Bearer ${e}`}}).then((t=>{200===t.status?(this.$message.success("导入成功"),this.current_page=1,this.getList(),this.commitloading=!1,this.docImportDrawer=!1):this.isLoadingDialog=!1})).catch((()=>{this.isLoadingDialog=!1}))},getExcelTemplatePath(){this.$requestInternet.get("/api/xxx").then((t=>{this.excelTemplatePath=t}))},derivation(){window.open("/goods_skus/export?exportType="+this.value)},referencePriceRequest(){let t={updateField:this.updateField,reference_price:this.reference_price};(0,r.K1)(this.publicId,t).then((t=>{this.editPriceId="",this.dialogVisible3=!1,this.$message({message:"参考售价修改成功!",type:"success"})}))},cancelGoal(){this.dialogVisible5=!1,this.updateField="goal_rate",this.editGoalId=this.publicId,this.noRow.goal_rate=this.lastVal},confirmGoal(){let t={updateField:"goal_rate",goal_rate:this.nowVal};(0,r.K1)(this.publicId,t).then((t=>{this.editGoalId="",this.dialogVisible5=!1,this.$message({message:"目标去化率修改成功!",type:"success"})}))},getgoodsType(){let t={per_page:99999};(0,n.Ci)(t).then((t=>{this.treeList=JSON.parse(JSON.stringify(t.data.data).replace(/name/g,"label"))}))},petchEditStock(){this.showUpdate=!0},commitPetchStock(){this.commitLoading=!0;let t=[];this.chooseList.forEach((e=>{t.push({id:e.id,sale_stock:e.sale_stock})}));let e={updateType:"saleStock",skus:t};(0,r.b9)(e).then((t=>{this.commitLoading=!1,this.$refs.multipleTable.clearSelection(),this.$message({message:"更新成功",type:"success"}),this.getList(),this.showUpdate=!1})).catch((()=>{this.commitLoading=!1}))},openSaleEdit(t,e){this.$set(this.tableData[e],"edit",!0),this.$set(this.tableData[e],"sale_stock_old",t.sale_stock)},cancelEdit(t,e){this.$set(this.tableData[e],"sale_stock",t.sale_stock_old),this.$set(this.tableData[e],"edit",!1)},confirmEdit(t,e){let o={updateType:"saleStock",skus:[{id:t.id,sale_stock:t.sale_stock}]};(0,r.b9)(o).then((t=>{this.$message({message:"更新成功",type:"success"}),this.$set(this.tableData[e],"edit",!1)}))},normalizer(t){return(!t.children||t.children&&0==t.children.length)&&1==t.level&&(t.isDisabled=!0),t},parseLabel(t){console.log(t);let e="";return e+=t.parentNode?t.parentNode.label+" / ":"",e+=t.raw?t.raw.label:"",e}},watch:{$route(t,e){window.location.reload()}},mounted(){this.getList(),this.getStockInfo(),this.getgoodsType()}},I=S,$=(0,f.Z)(I,s,i,!1,null,"97b6b362",null),T=$.exports},9036:function(t,e,o){o.d(e,{CD:function(){return b},JS:function(){return y},K1:function(){return c},NR:function(){return m},Rq:function(){return a},Vx:function(){return d},b9:function(){return k},cM:function(){return u},e3:function(){return r},gM:function(){return g},lO:function(){return i},no:function(){return f},od:function(){return p},rQ:function(){return l},sx:function(){return _},t5:function(){return n},zl:function(){return h}});var s=o(8430);function i(t){return(0,s.Z)({url:"/api/goods_skus",method:"get",params:t})}function a(t){return(0,s.Z)({url:"/api/goods",method:"post",data:t})}function l(t){return(0,s.Z)({url:`/api/goods_skus/${t}`,method:"get"})}function n(t){return(0,s.Z)({url:"/api/goods",method:"get",params:t})}function r(t,e){return(0,s.Z)({url:`/api/goods_skus/${t}`,method:"patch",data:e})}function d(t){return(0,s.Z)({url:"/api/batch/goods_skus",method:"patch",data:t})}function c(t,e){return(0,s.Z)({url:`/api/single/goods_skus/${t}`,method:"patch",data:e})}function u(t,e){return(0,s.Z)({url:"/api/upload",Headers:e,method:"post",data:t})}function p(t){return(0,s.Z)({url:"/api/goodsList",method:"get",params:t})}function h(t){return(0,s.Z)({url:"/api/goods_sku_location",method:"get",params:t})}function m(t){return(0,s.Z)({url:"/api/goodsSkusList",method:"get",params:{title:t}})}function _(){return(0,s.Z)({url:"/api/stock/goods_skus",method:"get"})}function f(t){return(0,s.Z)({url:"/api/goods/filter/"+t,method:"get"})}function g(t){return(0,s.Z)({url:"/api/goods_combination",method:"post",data:t})}function b(t){return(0,s.Z)({url:"/api/goods_combination",method:"get",params:t})}function y(t){return(0,s.Z)({url:"/api/goods_combination/"+t,method:"get"})}function k(t){return(0,s.Z)({url:"/api/batch/goods_skus",method:"patch",data:t})}},9998:function(t,e,o){o.d(e,{$i:function(){return a},C$:function(){return _},OV:function(){return c},Vq:function(){return p},_d:function(){return d},dT:function(){return h},hA:function(){return i},i$:function(){return m},nH:function(){return l},ow:function(){return r},rV:function(){return n},tA:function(){return u}});var s=o(8430);function i(){return(0,s.Z)({url:"/api/shop_platforms",method:"get"})}function a(t){return(0,s.Z)({url:"/api/shops",method:"post",data:t})}function l(t){return(0,s.Z)({url:"/api/shops",method:"get",params:t})}function n(t){return(0,s.Z)({url:`/api/download/${t}/goods`,method:"get"})}function r(t,e){return(0,s.Z)({url:`/api/shops/${t}`,method:"patch",params:e})}function d(t){return(0,s.Z)({url:"/api/sync/shop/stock",method:"put",params:t})}function c(){return(0,s.Z)({url:"/api/shop/ship",method:"get"})}function u(t,e){return(0,s.Z)({url:"/api/shop/ship/senders",method:"get",params:{shop_id:t,shop_ship_id:e}})}function p(t){return(0,s.Z)({url:"/api/shop/ship/senders",method:"post",params:t})}function h(t){return(0,s.Z)({url:"/api/order/reset",method:"get"})}function m(t){return(0,s.Z)({url:"/api/shop_sends",method:"get",params:t})}function _(t){return(0,s.Z)({url:"/api/shop_sends",method:"post",params:t})}}}]); +//# sourceMappingURL=298.c971cd33.js.map \ No newline at end of file diff --git a/public/dist/js/298.c971cd33.js.map b/public/dist/js/298.c971cd33.js.map new file mode 100644 index 0000000..f938090 --- /dev/null +++ b/public/dist/js/298.c971cd33.js.map @@ -0,0 +1 @@ +{"version":3,"file":"js/298.c971cd33.js","mappings":"kJAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAACA,EAAG,MAAM,CAACE,YAAY,WAAW,CAACF,EAAG,MAAM,CAACE,YAAY,aAAa,CAACF,EAAG,MAAM,CAACE,YAAY,OAAO,CAACF,EAAG,OAAO,CAACF,EAAIK,GAAG,WAAWH,EAAG,WAAW,CAACI,MAAM,CAAC,YAAc,OAAO,UAAY,IAAIC,SAAS,CAAC,MAAQ,SAASC,GAAQ,OAAIA,EAAOC,KAAKC,QAAQ,QAAQV,EAAIW,GAAGH,EAAOI,QAAQ,QAAQ,GAAGJ,EAAOK,IAAI,SAAgB,KAAYb,EAAIc,aAAaC,MAAM,KAAMC,UAAU,GAAGC,MAAM,CAACC,MAAOlB,EAAImB,KAAKC,YAAaC,SAAS,SAAUC,GAAMtB,EAAIuB,KAAKvB,EAAImB,KAAM,cAAeG,EAAI,EAAEE,WAA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LC,OAAQ,MACR3J,UAER,CAEO,SAASkL,EAAkBlL,GAC9B,OAAOyJ,EAAAA,EAAAA,GAAK,CACRC,IAAK,kBACLC,OAAQ,OACR3J,UAER,C","sources":["webpack://erp/./src/views/goods/goods.vue","webpack://erp/./src/components/Goods/add.vue","webpack://erp/src/components/Goods/add.vue","webpack://erp/./src/components/Goods/add.vue?be4f","webpack://erp/./src/components/Goods/add.vue?bae7","webpack://erp/./src/components/Goods/edit.vue","webpack://erp/src/components/Goods/edit.vue","webpack://erp/./src/components/Goods/edit.vue?32d8","webpack://erp/./src/components/Goods/edit.vue?903a","webpack://erp/src/views/goods/goods.vue","webpack://erp/./src/views/goods/goods.vue?6f68","webpack://erp/./src/views/goods/goods.vue?2525","webpack://erp/./src/api/goods.js","webpack://erp/./src/api/shop.js"],"sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_c('div',{staticClass:\"cardBox\"},[_c('div',{staticClass:\"searchBox\"},[_c('div',{staticClass:\"row\"},[_c('span',[_vm._v(\"商品名称:\")]),_c('el-input',{attrs:{\"placeholder\":\"商品名称\",\"clearable\":\"\"},nativeOn:{\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\"))return null;return _vm.handleChoose.apply(null, arguments)}},model:{value:(_vm.form.goods_title),callback:function ($$v) {_vm.$set(_vm.form, \"goods_title\", $$v)},expression:\"form.goods_title\"}})],1),_c('div',{staticClass:\"row\"},[_c('span',[_vm._v(\"商品品种/品类:\")]),_c('treeselect',{staticStyle:{\"width\":\"200px\"},attrs:{\"options\":_vm.treeList,\"disable-branch-nodes\":true,\"show-count\":true,\"normalizer\":_vm.normalizer,\"placeholder\":\"请选择品种\"},scopedSlots:_vm._u([{key:\"value-label\",fn:function({ node }){return _c('div',{},[_vm._v(_vm._s(_vm.parseLabel(node)))])}}]),model:{value:(_vm.form.type_id),callback:function ($$v) {_vm.$set(_vm.form, \"type_id\", $$v)},expression:\"form.type_id\"}})],1),_c('div',{staticClass:\"row\"},[_c('span',[_vm._v(\"商品编码:\")]),_c('el-input',{attrs:{\"placeholder\":\"商品编码\",\"clearable\":\"\"},nativeOn:{\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\"))return null;return _vm.handleChoose.apply(null, arguments)}},model:{value:(_vm.form.external_sku_id),callback:function ($$v) {_vm.$set(_vm.form, \"external_sku_id\", $$v)},expression:\"form.external_sku_id\"}})],1),_c('div',{staticClass:\"row\"},[_c('span',[_vm._v(\"商品状态:\")]),_c('el-select',{attrs:{\"placeholder\":\"商品状态\",\"clearable\":\"\"},on:{\"change\":function($event){return _vm.handleChoose()}},model:{value:(_vm.form.status),callback:function ($$v) {_vm.$set(_vm.form, \"status\", $$v)},expression:\"form.status\"}},_vm._l((_vm.options),function(item){return _c('el-option',{key:item.id,attrs:{\"label\":item.label,\"value\":item.id}})}),1)],1),_c('div',{staticClass:\"row\"},[_c('span',[_vm._v(\"创建时间:\")]),_c('el-date-picker',{staticStyle:{\"width\":\"250px\"},attrs:{\"type\":\"datetimerange\",\"range-separator\":\"至\",\"start-placeholder\":\"开始时间\",\"end-placeholder\":\"结束时间\",\"format\":\"yyyy-MM-dd\",\"value-format\":\"yyyy-MM-dd\",\"clearable\":\"\"},on:{\"change\":function($event){return _vm.handleChoose()}},model:{value:(_vm.filterTime),callback:function ($$v) {_vm.filterTime=$$v},expression:\"filterTime\"}})],1),_c('div',{staticClass:\"row\"},[_c('span',[_vm._v(\"剩余库存≠:\")]),_c('el-input',{attrs:{\"placeholder\":\"剩余库存\",\"clearable\":\"\"},nativeOn:{\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\"))return null;return _vm.handleChoose.apply(null, arguments)}},model:{value:(_vm.form.neq_stock),callback:function ($$v) {_vm.$set(_vm.form, \"neq_stock\", $$v)},expression:\"form.neq_stock\"}})],1),_c('div',{staticClass:\"row\"},[_c('span',[_vm._v(\"在售库存≠:\")]),_c('el-input',{attrs:{\"placeholder\":\"在售库存\",\"clearable\":\"\"},nativeOn:{\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\"))return null;return _vm.handleChoose.apply(null, arguments)}},model:{value:(_vm.form.neq_sale_stock),callback:function ($$v) {_vm.$set(_vm.form, \"neq_sale_stock\", $$v)},expression:\"form.neq_sale_stock\"}})],1),_c('div',{staticClass:\"row\"},[_c('el-button',{attrs:{\"type\":\"primary\",\"icon\":\"el-icon-search\"},on:{\"click\":function($event){return _vm.handleChoose()}}},[_vm._v(\"筛选\")]),_c('el-button',{attrs:{\"plain\":\"\",\"icon\":\"el-icon-refresh\"},on:{\"click\":_vm.handleReChoose}},[_vm._v(\"重置筛选\")])],1)])]),_c('el-card',[_c('div',[_c('div',{staticStyle:{\"display\":\"flex\",\"align-items\":\"center\",\"justify-content\":\"space-between\"}},[_c('div',{staticStyle:{\"display\":\"flex\",\"flex-wrap\":\"wrap\"}},[_c('span',{staticStyle:{\"margin-right\":\"20px\"}},[_vm._v(\"全部商品(共\"+_vm._s(_vm.total)+\"条)\")]),(_vm.sum)?_c('div',{staticStyle:{\"color\":\"#f00\"}},[_vm._v(\"销量\"+_vm._s(_vm.sum.goods_number)+\",实际库存\"+_vm._s(_vm.sum.real_stock)+\",剩余库存\"+_vm._s(_vm.sum.stock))]):_vm._e()]),_c('div',{staticClass:\"btn\"},[_c('el-button',{attrs:{\"icon\":\"el-icon-refresh\"},on:{\"click\":_vm.resetOrderCount}},[_vm._v(\"订单重置\")]),_c('el-button',{attrs:{\"type\":\"primary\",\"icon\":\"el-icon-edit\",\"disabled\":!_vm.chooseList.length},on:{\"click\":_vm.petchEditStock}},[_vm._v(\"批量更新在售库存\")]),(_vm.is_admin)?_c('el-button',{attrs:{\"type\":\"primary\",\"icon\":\"el-icon-plus\"},on:{\"click\":_vm.addNewgoods}},[_vm._v(\"新增商品\")]):_vm._e(),(_vm.is_admin)?_c('el-button',{attrs:{\"type\":\"primary\",\"plain\":\"\",\"icon\":\"el-icon-upload2\"},on:{\"click\":_vm.handleImport}},[_vm._v(\"在售库存导入\")]):_vm._e(),_c('el-button',{attrs:{\"type\":\"warning\",\"icon\":\"el-icon-download\"},on:{\"click\":_vm.handleTypeExport}},[_vm._v(\"选择类型导出\")]),_c('el-button',{attrs:{\"type\":\"warning\",\"icon\":\"el-icon-download\"},on:{\"click\":_vm.handleExport}},[_vm._v(\"数据导出\")])],1)]),_c('el-table',{directives:[{name:\"loading\",rawName:\"v-loading\",value:(_vm.loading),expression:\"loading\"}],ref:\"multipleTable\",staticClass:\"table\",staticStyle:{\"width\":\"100%\"},attrs:{\"border\":\"\",\"data\":_vm.tableData,\"tooltip-effect\":\"dark\"},on:{\"selection-change\":_vm.handleSelectionChange,\"sort-change\":_vm.sortChange}},[_c('el-table-column',{attrs:{\"type\":\"selection\",\"align\":\"center\"}}),_c('el-table-column',{attrs:{\"label\":\"商品信息\",\"width\":\"300\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('div',{staticClass:\"goodBox flex\"},[(scope.row.goods && scope.row.goods.img_url)?_c('img',{staticClass:\"Img\",attrs:{\"src\":scope.row.goods.img_url}}):_vm._e(),_c('div',[_c('div',{staticClass:\"tit\"},[_vm._v(_vm._s(scope.row.name))]),_c('p',[_vm._v(_vm._s(scope.row.external_sku_id))]),_c('p',[_vm._v(_vm._s(scope.row.created_at))])])])]}}])}),_c('el-table-column',{attrs:{\"prop\":\"cost\",\"label\":\"成本\",\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('div',{staticClass:\"flex\",staticStyle:{\"justify-content\":\"center\"}},[(_vm.isShow)?_c('div',[_c('el-input',{model:{value:(scope.row.cost),callback:function ($$v) {_vm.$set(scope.row, \"cost\", $$v)},expression:\"scope.row.cost\"}})],1):_c('span',[_vm._v(_vm._s(scope.row.cost || 0))])])]}}])}),_c('el-table-column',{attrs:{\"prop\":\"order_goods_num\",\"sortable\":\"custom\",\"label\":\"销量\",\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('span',[_vm._v(_vm._s(scope.row.order_goods_num))]),(scope.row.order_detail.length !== 0)?_c('el-popover',{attrs:{\"placement\":\"right-start\",\"trigger\":\"hover\"}},[_c('div',_vm._l((scope.row.order_detail),function(j,index){return _c('span',{key:index},[_c('div',[_vm._v(_vm._s(j.shop.name)+\":\"+_vm._s(j.number))])])}),0),_c('i',{staticClass:\"el-icon-view\",staticStyle:{\"padding-left\":\"5px\"},attrs:{\"slot\":\"reference\"},slot:\"reference\"})]):_vm._e()]}}])}),_c('el-table-column',{attrs:{\"prop\":\"yesterday_num\",\"label\":\"实际库存\",\"align\":\"center\"}}),_c('el-table-column',{attrs:{\"prop\":\"sale_stock\",\"label\":\"可售库存\",\"sortable\":\"custom\",\"width\":\"160\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [(scope.row.edit)?_c('div',{staticClass:\"titBox\"},[_c('el-input',{staticStyle:{\"width\":\"100%\"},attrs:{\"placeholder\":\"可售库存\",\"size\":\"mini\"},model:{value:(scope.row.sale_stock),callback:function ($$v) {_vm.$set(scope.row, \"sale_stock\", $$v)},expression:\"scope.row.sale_stock\"}}),_c('span',{staticStyle:{\"color\":\"#666\",\"cursor\":\"pointer\",\"font-size\":\"18px\",\"margin-left\":\"5px\"},on:{\"click\":function($event){return _vm.cancelEdit(scope.row, scope.$index)}}},[_c('i',{staticClass:\"el-icon-close\"})]),_c('span',{staticStyle:{\"color\":\"#409eff\",\"cursor\":\"pointer\",\"font-size\":\"18px\",\"margin-left\":\"5px\"},on:{\"click\":function($event){return _vm.confirmEdit(scope.row, scope.$index)}}},[_c('i',{staticClass:\"el-icon-check\"})])],1):_c('div',[_vm._v(_vm._s(scope.row.sale_stock)+\" \"),_c('span',{staticStyle:{\"color\":\"#409eff\",\"margin-left\":\"5px\",\"cursor\":\"pointer\",\"font-size\":\"15px\"},on:{\"click\":function($event){return _vm.openSaleEdit(scope.row, scope.$index)}}},[_c('i',{staticClass:\"el-icon-edit\"})])])]}}])}),_c('el-table-column',{attrs:{\"label\":\"剩余库存\",\"sortable\":\"custom\",\"align\":\"center\",\"prop\":\"stock\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('span',{class:scope.row.stock * 1 < 0 ? 'red' : ''},[_vm._v(_vm._s(scope.row.stock))])]}}])}),_c('el-table-column',{attrs:{\"prop\":\"status\",\"label\":\"状态\",\"align\":\"center\"}}),(_vm.is_admin)?_c('el-table-column',{attrs:{\"label\":\"操作\",\"align\":\"center\",\"width\":\"120\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('el-button',{attrs:{\"type\":\"text\"},on:{\"click\":function($event){return _vm.handleEdit(scope.row.id)}}},[_vm._v(\"编辑\")])]}}],null,false,1564336291)}):_vm._e()],1)],1),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.isShow || _vm.stock),expression:\"isShow || stock\"}],staticClass:\"footerBtn\"},[_c('el-button',{staticClass:\"confirmbtn\",attrs:{\"type\":\"primary\"},on:{\"click\":function($event){return _vm.cancel()}}},[_vm._v(\"取消\")]),_c('el-button',{staticClass:\"confirmbtn\",attrs:{\"type\":\"primary\"},on:{\"click\":function($event){return _vm.onSubmit()}}},[_vm._v(\"保存\")])],1),_c('div',{staticClass:\"page-pagination\"},[_c('el-pagination',{attrs:{\"current-page\":_vm.current_page,\"page-sizes\":[10, 30, 50, 100, 200],\"page-size\":_vm.per_page,\"layout\":\"total, sizes, prev, pager, next, jumper\",\"total\":_vm.Paginationdata.total},on:{\"size-change\":_vm.handleSizeChange,\"current-change\":_vm.handleCurrentChange}})],1)]),_c('el-dialog',{attrs:{\"title\":\"库存修改\",\"visible\":_vm.ejectstock1,\"width\":\"30%\",\"close-on-click-modal\":false},on:{\"update:visible\":function($event){_vm.ejectstock1=$event}}},[_c('el-table',{staticStyle:{\"width\":\"100%\"},attrs:{\"data\":_vm.ommodityInventory,\"tooltip-effect\":\"dark\"}},[_c('el-table-column',{attrs:{\"prop\":\"two_days_ago_num\",\"label\":\"2天前库存\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('div',[_c('el-input',{attrs:{\"disabled\":true},model:{value:(scope.row.two_days_ago_num),callback:function ($$v) {_vm.$set(scope.row, \"two_days_ago_num\", $$v)},expression:\"scope.row.two_days_ago_num\"}}),_c('el-input',{model:{value:(scope.row.two_days_ago_num),callback:function ($$v) {_vm.$set(scope.row, \"two_days_ago_num\", $$v)},expression:\"scope.row.two_days_ago_num\"}})],1)]}}])}),_c('el-table-column',{attrs:{\"prop\":\"yesterday_num\",\"label\":\"1天前库存\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('div',[_c('el-input',{attrs:{\"disabled\":true},model:{value:(scope.row.yesterday_num),callback:function ($$v) {_vm.$set(scope.row, \"yesterday_num\", $$v)},expression:\"scope.row.yesterday_num\"}}),_c('el-input',{model:{value:(scope.row.yesterday_num),callback:function ($$v) {_vm.$set(scope.row, \"yesterday_num\", $$v)},expression:\"scope.row.yesterday_num\"}})],1)]}}])}),_c('el-table-column',{attrs:{\"sortable\":\"\",\"label\":\"今日到货\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('div',[_c('el-input',{attrs:{\"disabled\":true},model:{value:(scope.row.daily.arrived_today_num),callback:function ($$v) {_vm.$set(scope.row.daily, \"arrived_today_num\", $$v)},expression:\"scope.row.daily.arrived_today_num\"}}),_c('el-input',{model:{value:(scope.row.daily.arrived_today_num),callback:function ($$v) {_vm.$set(scope.row.daily, \"arrived_today_num\", $$v)},expression:\"scope.row.daily.arrived_today_num\"}})],1)]}}])})],1),_c('span',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('el-button',{on:{\"click\":function($event){return _vm.cancelStock()}}},[_vm._v(\"取 消\")]),_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":function($event){return _vm.oldStock()}}},[_vm._v(\"确 定\")])],1)],1),_c('el-dialog',{attrs:{\"title\":\"提示\",\"visible\":_vm.dialogVisible3,\"width\":\"20%\",\"close-on-click-modal\":false},on:{\"update:visible\":function($event){_vm.dialogVisible3=$event}}},[_c('span',[_vm._v(\"确定要修改售价吗?\")]),_c('span',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('el-button',{on:{\"click\":function($event){_vm.dialogVisible3 = false}}},[_vm._v(\"取 消\")]),_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":function($event){return _vm.referencePriceRequest()}}},[_vm._v(\"确 定\")])],1)]),_c('el-dialog',{attrs:{\"title\":\"提示\",\"visible\":_vm.dialogVisible5,\"width\":\"20%\",\"close-on-click-modal\":false},on:{\"update:visible\":function($event){_vm.dialogVisible5=$event}}},[_c('span',[_vm._v(\"确定要修改目标去化率吗?\")]),_c('span',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('el-button',{on:{\"click\":_vm.cancelGoal}},[_vm._v(\"取 消\")]),_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":function($event){return _vm.confirmGoal()}}},[_vm._v(\"确 定\")])],1)]),_c('el-dialog',{attrs:{\"title\":\"表格导出\",\"visible\":_vm.Tableexport,\"width\":\"30%\",\"close-on-click-modal\":false},on:{\"update:visible\":function($event){_vm.Tableexport=$event}}},[_c('div',[_c('span',[_vm._v(\"选择:\")]),[_c('el-select',{attrs:{\"placeholder\":\"盘点表/成本表/周数据\"},model:{value:(_vm.value),callback:function ($$v) {_vm.value=$$v},expression:\"value\"}},_vm._l((_vm.options2),function(item){return _c('el-option',{key:item.value,attrs:{\"label\":item.label,\"value\":item.value}})}),1)]],2),_c('span',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('el-button',{on:{\"click\":function($event){_vm.Tableexport = false}}},[_vm._v(\"取 消\")]),_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":function($event){return _vm.derivation()}}},[_vm._v(\"确 定\")])],1)]),_c('el-dialog',{ref:\"drawer\",attrs:{\"title\":\"在售库存导入\",\"visible\":_vm.docImportDrawer,\"direction\":\"rtl\",\"custom-class\":\"demo-drawer\",\"width\":\"450px\",\"close-on-click-modal\":false},on:{\"update:visible\":function($event){_vm.docImportDrawer=$event},\"close\":function($event){_vm.importForm.imFileList = []}}},[_c('div',{staticClass:\"demo-drawer__content\"},[_c('el-upload',{ref:\"aupload\",staticClass:\"upload-demo\",attrs:{\"action\":\"\",\"limit\":1,\"drag\":\"\",\"accept\":\"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel\",\"file-list\":_vm.importForm.fileList,\"auto-upload\":false,\"on-change\":_vm.importFileChange}},[_c('i',{staticClass:\"el-icon-upload\"}),_c('div',{staticClass:\"el-upload__text\"},[_vm._v(\"将文件拖到此处,或\"),_c('em',[_vm._v(\"点击上传\")])])])],1),_c('div',{staticClass:\"import-right\"},[_c('el-button',{attrs:{\"size\":\"medium\",\"type\":\"text\"}},[_c('a',{attrs:{\"href\":`/goods/import/template`}},[_vm._v(\"下载模板\")])])],1),_c('span',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('el-button',{on:{\"click\":function($event){_vm.docImportDrawer = false}}},[_vm._v(\"取 消\")]),_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":_vm.saveUpload}},[_vm._v(\"上 传\")])],1)]),_c('el-dialog',{attrs:{\"title\":\"可售库存\",\"visible\":_vm.showUpdate,\"width\":\"600px\"},on:{\"update:visible\":function($event){_vm.showUpdate=$event}}},[_c('div',{},[_c('el-table',{staticStyle:{\"width\":\"100%\"},attrs:{\"data\":_vm.chooseList,\"border\":\"\"}},[_c('el-table-column',{attrs:{\"label\":\"商品信息\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('div',{staticClass:\"goodBox flex\"},[(scope.row.goods && scope.row.goods.img_url)?_c('img',{staticClass:\"Img\",attrs:{\"src\":scope.row.goods.img_url}}):_vm._e(),_c('div',[_c('div',{staticClass:\"tit\"},[_vm._v(_vm._s(scope.row.name))]),_c('p',[_vm._v(_vm._s(scope.row.external_sku_id))])])])]}}])}),_c('el-table-column',{attrs:{\"label\":\"可售库存\",\"width\":\"200\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('el-input',{model:{value:(scope.row.sale_stock),callback:function ($$v) {_vm.$set(scope.row, \"sale_stock\", $$v)},expression:\"scope.row.sale_stock\"}})]}}])})],1)],1),_c('span',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('el-button',{on:{\"click\":function($event){_vm.showUpdate = false}}},[_vm._v(\"取 消\")]),_c('el-button',{attrs:{\"type\":\"primary\",\"loading\":_vm.commitLoading},on:{\"click\":function($event){return _vm.commitPetchStock()}}},[_vm._v(\"更 新\")])],1)]),_c('add-goods',{attrs:{\"show\":_vm.showAdd},on:{\"close\":function($event){_vm.showAdd = false},\"complete\":_vm.refreshList}}),_c('edit-goods',{attrs:{\"show\":_vm.showEdit,\"id\":_vm.curId},on:{\"close\":function($event){_vm.showEdit = false},\"complete\":_vm.refreshList}})],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('el-dialog',{attrs:{\"visible\":_vm.show,\"title\":\"新增商品\",\"width\":\"900px\",\"close-on-click-modal\":false},on:{\"update:visible\":function($event){_vm.show=$event},\"close\":_vm.closeDialog}},[_c('el-form',{attrs:{\"label-width\":\"120px\",\"inline\":true}},[_c('el-form-item',{attrs:{\"label\":\"商品品种/品类:\"}},[_c('treeselect',{staticStyle:{\"width\":\"200px\"},attrs:{\"options\":_vm.treeList,\"disable-branch-nodes\":true,\"show-count\":true,\"normalizer\":_vm.normalizer,\"placeholder\":\"请选择品种\"},scopedSlots:_vm._u([{key:\"value-label\",fn:function({ node }){return _c('div',{},[_vm._v(_vm._s(_vm.parseLabel(node)))])}}]),model:{value:(_vm.type_id),callback:function ($$v) {_vm.type_id=$$v},expression:\"type_id\"}})],1),_vm._l((_vm.skus),function(item,i){return _c('div',{key:i,staticClass:\"skuBox\"},[_c('div',{staticClass:\"tit\"},[_vm._v(\"规格\"+_vm._s(i + 1))]),_c('el-form-item',{attrs:{\"label\":\"规格名称:\"}},[_c('el-input',{attrs:{\"placeholder\":\"规格名称\"},model:{value:(item.title),callback:function ($$v) {_vm.$set(item, \"title\", $$v)},expression:\"item.title\"}})],1),_c('el-form-item',{attrs:{\"label\":\"颜色/特性:\"}},[_c('el-input',{attrs:{\"placeholder\":\"颜色/特性\"},model:{value:(item.attribute),callback:function ($$v) {_vm.$set(item, \"attribute\", $$v)},expression:\"item.attribute\"}})],1),_c('el-form-item',{attrs:{\"label\":\"商品状态:\"}},[_c('el-select',{staticStyle:{\"width\":\"200px\"},attrs:{\"placeholder\":\"下架(默认)\"},model:{value:(item.status),callback:function ($$v) {_vm.$set(item, \"status\", $$v)},expression:\"item.status\"}},_vm._l((_vm.options),function(it){return _c('el-option',{key:it.id,attrs:{\"label\":it.label,\"value\":it.id}})}),1)],1),_c('el-form-item',{attrs:{\"label\":\"商品成本:\"}},[_c('el-input',{attrs:{\"placeholder\":\"商品成本\"},model:{value:(item.cost),callback:function ($$v) {_vm.$set(item, \"cost\", $$v)},expression:\"item.cost\"}})],1),_c('div',[_c('el-form-item',{attrs:{\"label\":\"可售库存:\"}},[_c('el-input',{attrs:{\"placeholder\":\"可售库存\"},model:{value:(item.sale_stock),callback:function ($$v) {_vm.$set(item, \"sale_stock\", $$v)},expression:\"item.sale_stock\"}})],1),_c('el-form-item',{attrs:{\"label\":\"最终编码:\"}},[_c('el-input',{attrs:{\"placeholder\":\"不输入自动生成\"},model:{value:(item.external_sku_id),callback:function ($$v) {_vm.$set(item, \"external_sku_id\", $$v)},expression:\"item.external_sku_id\"}})],1),_c('el-form-item',{attrs:{\"label\":\"\"}},[_c('el-button',{attrs:{\"type\":\"danger\",\"size\":\"mini\",\"icon\":\"el-icon-delete\"},on:{\"click\":function($event){return _vm.handleDelete(i)}}},[_vm._v(\"删除\")])],1)],1)],1)}),_c('div',[_c('el-form-item',[_c('el-button',{attrs:{\"type\":\"success\",\"icon\":\"el-icon-plus\"},on:{\"click\":function($event){return _vm.toAddSku()}}},[_vm._v(\"增加规格\")])],1)],1)],2),_c('span',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('el-button',{attrs:{\"type\":\"primary\",\"loading\":_vm.loading},on:{\"click\":function($event){return _vm.handleSave()}}},[_vm._v(\"保存\")]),_c('el-button',{attrs:{\"plain\":\"\"},on:{\"click\":function($event){return _vm.cancel()}}},[_vm._v(\"取消\")])],1)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n \r\n\r\n \r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./add.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./add.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./add.vue?vue&type=template&id=4de310da&scoped=true\"\nimport script from \"./add.vue?vue&type=script&lang=js\"\nexport * from \"./add.vue?vue&type=script&lang=js\"\nimport style0 from \"./add.vue?vue&type=style&index=0&id=4de310da&prod&scoped=true&lang=scss\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"4de310da\",\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('el-dialog',{attrs:{\"visible\":_vm.show,\"title\":\"编辑商品\",\"width\":\"900px\",\"close-on-click-modal\":false},on:{\"update:visible\":function($event){_vm.show=$event},\"close\":_vm.closeDialog}},[_c('el-form',{attrs:{\"label-width\":\"120px\",\"inline\":true}},[_c('el-form-item',{attrs:{\"label\":\"商品品种/品类:\"}},[_c('treeselect',{staticStyle:{\"width\":\"200px\"},attrs:{\"options\":_vm.treeList,\"disable-branch-nodes\":true,\"show-count\":true,\"normalizer\":_vm.normalizer,\"placeholder\":\"请选择品种\"},scopedSlots:_vm._u([{key:\"value-label\",fn:function({ node }){return _c('div',{},[_vm._v(_vm._s(_vm.parseLabel(node)))])}}]),model:{value:(_vm.goodsInfo.goods.type_id),callback:function ($$v) {_vm.$set(_vm.goodsInfo.goods, \"type_id\", $$v)},expression:\"goodsInfo.goods.type_id\"}})],1),_c('el-form-item',{attrs:{\"label\":\"规格名称:\"}},[_c('el-input',{attrs:{\"placeholder\":\"规格名称\"},model:{value:(_vm.goodsInfo.title),callback:function ($$v) {_vm.$set(_vm.goodsInfo, \"title\", $$v)},expression:\"goodsInfo.title\"}})],1),_c('el-form-item',{attrs:{\"label\":\"最终编码:\"}},[_c('el-input',{attrs:{\"placeholder\":\"不输入自动生成\",\"disabled\":\"\"},model:{value:(_vm.goodsInfo.external_sku_id),callback:function ($$v) {_vm.$set(_vm.goodsInfo, \"external_sku_id\", $$v)},expression:\"goodsInfo.external_sku_id\"}})],1),_c('el-form-item',{attrs:{\"label\":\"颜色/特性:\"}},[_c('el-input',{attrs:{\"placeholder\":\"颜色/特性\"},model:{value:(_vm.goodsInfo.attribute),callback:function ($$v) {_vm.$set(_vm.goodsInfo, \"attribute\", $$v)},expression:\"goodsInfo.attribute\"}})],1),_c('el-form-item',{attrs:{\"label\":\"商品状态:\"}},[_c('el-select',{staticStyle:{\"width\":\"200px\"},attrs:{\"placeholder\":\"下架(默认)\"},model:{value:(_vm.goodsInfo.status),callback:function ($$v) {_vm.$set(_vm.goodsInfo, \"status\", $$v)},expression:\"goodsInfo.status\"}},_vm._l((_vm.options),function(it){return _c('el-option',{key:it.id,attrs:{\"label\":it.label,\"value\":it.id}})}),1)],1),_c('el-form-item',{attrs:{\"label\":\"商品成本:\"}},[_c('el-input',{attrs:{\"placeholder\":\"商品成本\"},model:{value:(_vm.goodsInfo.cost),callback:function ($$v) {_vm.$set(_vm.goodsInfo, \"cost\", $$v)},expression:\"goodsInfo.cost\"}})],1),_c('el-form-item',{attrs:{\"label\":\"在售库存:\"}},[_c('el-input',{attrs:{\"placeholder\":\"可售库存\"},model:{value:(_vm.goodsInfo.sale_stock),callback:function ($$v) {_vm.$set(_vm.goodsInfo, \"sale_stock\", $$v)},expression:\"goodsInfo.sale_stock\"}})],1)],1),_c('span',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('el-button',{attrs:{\"type\":\"primary\",\"loading\":_vm.loading},on:{\"click\":function($event){return _vm.handleSave()}}},[_vm._v(\"保存\")]),_c('el-button',{attrs:{\"plain\":\"\"},on:{\"click\":function($event){return _vm.cancel()}}},[_vm._v(\"取消\")])],1)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n \r\n\r\n \r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./edit.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./edit.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./edit.vue?vue&type=template&id=3dbf163e&scoped=true\"\nimport script from \"./edit.vue?vue&type=script&lang=js\"\nexport * from \"./edit.vue?vue&type=script&lang=js\"\nimport style0 from \"./edit.vue?vue&type=style&index=0&id=3dbf163e&prod&scoped=true&lang=scss\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"3dbf163e\",\n null\n \n)\n\nexport default component.exports","\r\n\r\n\r\n\r\n\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./goods.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./goods.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./goods.vue?vue&type=template&id=97b6b362&scoped=true\"\nimport script from \"./goods.vue?vue&type=script&lang=js\"\nexport * from \"./goods.vue?vue&type=script&lang=js\"\nimport style0 from \"./goods.vue?vue&type=style&index=0&id=97b6b362&prod&lang=scss&scoped=true\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"97b6b362\",\n null\n \n)\n\nexport default component.exports","import http from \"@/util/http.js\";\r\n\r\n//店铺订单\r\nexport function shops(params) {\r\n return http({\r\n url: \"/api/count/orders/num\",\r\n method: \"get\",\r\n params,\r\n });\r\n}\r\n\r\n// 商品管理列表\r\nexport function goods(params) {\r\n return http({\r\n url: \"/api/goods_skus\",\r\n method: \"get\",\r\n params,\r\n });\r\n}\r\n// 新增商品/规格\r\nexport function addGoods(data) {\r\n return http({\r\n url: \"/api/goods\",\r\n method: \"post\",\r\n data,\r\n });\r\n}\r\n// 查看商品\r\nexport function checkGoods(id) {\r\n return http({\r\n url: `/api/goods_skus/${id}`,\r\n method: \"get\",\r\n });\r\n}\r\n// 商品列表\r\nexport function goodsList(params) {\r\n return http({\r\n url: \"/api/goods\",\r\n method: \"get\",\r\n params,\r\n });\r\n}\r\n// 更新商品\r\nexport function updateGoods(id, data) {\r\n return http({\r\n url: `/api/goods_skus/${id}`,\r\n method: \"patch\",\r\n data,\r\n });\r\n}\r\n\r\n// 上新/库存盘点/库存\r\nexport function update(data) {\r\n return http({\r\n url: \"/api/batch/goods_skus\",\r\n method: \"patch\",\r\n data,\r\n });\r\n}\r\n\r\n// 单个字段更新\r\nexport function singleUpdate(id, data) {\r\n return http({\r\n url: `/api/single/goods_skus/${id}`,\r\n method: \"patch\",\r\n data,\r\n });\r\n}\r\n\r\n// 图片上传\r\nexport function imgUpload(data, item) {\r\n return http({\r\n url: \"/api/upload\",\r\n Headers: item,\r\n method: \"post\",\r\n data,\r\n });\r\n}\r\n\r\n// 表格导出\r\nexport function tableExport(params) {\r\n return http({\r\n url: \"/goods_skus/export\",\r\n method: \"get\",\r\n params,\r\n });\r\n}\r\n\r\n// 商品列表(添加)\r\nexport function getGoodsList(params) {\r\n return http({\r\n url: \"/api/goodsList\",\r\n method: \"get\",\r\n params,\r\n });\r\n}\r\n\r\n// 商品货架\r\nexport function goodsSkuLocation(params) {\r\n return http({\r\n url: \"/api/goods_sku_location\",\r\n method: \"get\",\r\n params,\r\n });\r\n}\r\n\r\nexport function goodsSkusList(title) {\r\n return http({\r\n url: \"/api/goodsSkusList\",\r\n method: \"get\",\r\n params: { title: title }\r\n });\r\n}\r\n\r\nexport function importGoodsSkuLocation(params) {\r\n return http({\r\n url: \"/api/goods_sku_location\",\r\n method: \"post\",\r\n params,\r\n });\r\n}\r\n\r\nexport function updateGoodsSkuLocation(params) {\r\n return http({\r\n url: \"/api/goods_sku_location\",\r\n method: \"put\",\r\n params,\r\n });\r\n}\r\n\r\nexport function deleteGoodsSkuLocation(params) {\r\n return http({\r\n url: \"/api/goods_sku_location\",\r\n method: \"delete\",\r\n params,\r\n });\r\n}\r\n\r\nexport function getStockNum() {\r\n return http({\r\n url: \"/api/stock/goods_skus\",\r\n method: \"get\",\r\n });\r\n}\r\n\r\nexport function getGoodsFilter(title) {\r\n return http({\r\n url: \"/api/goods/filter/\" + title,\r\n method: \"get\",\r\n });\r\n}\r\n\r\nexport function addGoodsCombination(data) {\r\n return http({\r\n url: \"/api/goods_combination\",\r\n method: \"post\",\r\n data,\r\n });\r\n}\r\n\r\nexport function getGoodsCombination(params) {\r\n return http({\r\n url: \"/api/goods_combination\",\r\n method: \"get\",\r\n params,\r\n });\r\n}\r\n\r\nexport function showGoodsCombination(id) {\r\n return http({\r\n url: \"/api/goods_combination/\" + id,\r\n method: \"get\",\r\n });\r\n}\r\n\r\nexport function updateGoodsCombination(id, data) {\r\n return http({\r\n url: \"/api/goods_combination/\" + id,\r\n method: \"patch\",\r\n data,\r\n });\r\n}\r\n\r\nexport function delGoodsCombination(id) {\r\n return http({\r\n url: \"/api/goods_combination/\" + id,\r\n method: \"delete\",\r\n });\r\n}\r\n\r\nexport function updateSaleStock(data) {\r\n return http({\r\n url: `/api/batch/goods_skus`,\r\n method: \"patch\",\r\n data\r\n })\r\n}\r\n","import http from \"@/util/http.js\";\r\n\r\n// 店铺管理页面请求\r\n\r\n// 店铺平台\r\nexport function shopListId() {\r\n return http({\r\n url: \"/api/shop_platforms\",\r\n method: \"get\",\r\n });\r\n}\r\n// 店铺新增\r\nexport function shopAdd(data) {\r\n return http({\r\n url: \"/api/shops\",\r\n method: \"post\",\r\n data,\r\n });\r\n}\r\n// 店铺列表\r\nexport function storeList(params) {\r\n return http({\r\n url: \"/api/shops\",\r\n method: \"get\",\r\n params,\r\n });\r\n}\r\n\r\n// 下载商品\r\nexport function downloadGoods(id) {\r\n return http({\r\n url: `/api/download/${id}/goods`,\r\n method: \"get\",\r\n });\r\n}\r\n\r\nexport function updateStore(id, params) {\r\n return http({\r\n url: `/api/shops/${id}`,\r\n method: \"patch\",\r\n params,\r\n });\r\n}\r\n\r\nexport function syncStoreStock(params) {\r\n return http({\r\n url: '/api/sync/shop/stock',\r\n method: \"put\",\r\n params,\r\n });\r\n}\r\n\r\nexport function shipList() {\r\n return http({\r\n url: '/api/shop/ship',\r\n method: 'get',\r\n })\r\n}\r\n\r\nexport function ShopSenderList(shopId, shopShipId) {\r\n return http({\r\n url: '/api/shop/ship/senders',\r\n method: 'get',\r\n params: {\r\n 'shop_id': shopId,\r\n 'shop_ship_id': shopShipId,\r\n }\r\n })\r\n}\r\n\r\nexport function saveSenders(params) {\r\n return http({\r\n url: '/api/shop/ship/senders',\r\n method: 'post',\r\n params\r\n })\r\n}\r\n\r\nexport function orderRest(params) {\r\n return http({\r\n url: '/api/order/reset',\r\n method: 'get',\r\n })\r\n}\r\n\r\nexport function shopAddress(params) {\r\n return http({\r\n url: \"/api/shop_sends\",\r\n method: \"get\",\r\n params,\r\n });\r\n}\r\n\r\nexport function updateShopAddress(params) {\r\n return http({\r\n url: '/api/shop_sends',\r\n method: 'post',\r\n params\r\n })\r\n}\r\n"],"names":["render","_vm","this","_c","_self","staticClass","_v","attrs","nativeOn","$event","type","indexOf","_k","keyCode","key","handleChoose","apply","arguments","model","value","form","goods_title","callback","$$v","$set","expression","staticStyle","treeList","normalizer","scopedSlots","_u","fn","node","_s","parseLabel","type_id","external_sku_id","on","status","_l","options","item","id","label","filterTime","neq_stock","neq_sale_stock","handleReChoose","total","sum","goods_number","real_stock","stock","_e","resetOrderCount","chooseList","length","petchEditStock","is_admin","addNewgoods","handleImport","handleTypeExport","handleExport","directives","name","rawName","loading","ref","tableData","handleSelectionChange","sortChange","scope","row","goods","img_url","created_at","isShow","cost","order_goods_num","order_detail","j","index","shop","number","slot","edit","sale_stock","cancelEdit","$index","confirmEdit","openSaleEdit","class","handleEdit","cancel","onSubmit","current_page","per_page","Paginationdata","handleSizeChange","handleCurrentChange","ejectstock1","ommodityInventory","two_days_ago_num","yesterday_num","daily","arrived_today_num","cancelStock","oldStock","dialogVisible3","referencePriceRequest","dialogVisible5","cancelGoal","confirmGoal","Tableexport","options2","derivation","docImportDrawer","importForm","imFileList","fileList","importFileChange","saveUpload","showUpdate","commitLoading","commitPetchStock","showAdd","refreshList","showEdit","curId","staticRenderFns","show","closeDialog","skus","i","title","attribute","it","handleDelete","toAddSku","handleSave","components","Treeselect","props","Boolean","default","data","showDialog","methods","getGoodsTypes","params","parent_id","goods_types","then","res","JSON","parse","stringify","replace","goods_id","addGoods","$message","message","$emit","catch","handleAdd","sku","num","reserve","push","splice","children","level","isDisabled","text","parentNode","raw","watch","handler","newVal","oldVal","deep","immediate","component","goodsInfo","Number","brand_id","goods_code","thumb_url","updateGoods","getGoodsInfo","checkGoods","editGoods","editPriceId","editGoalId","rose_num","other_num","radio","brand","shopsData","sku_code","options3","sku_title","keyword_type","keyword_value","updateType","Importgoods","isShow1","improtRules","required","trigger","validator","rule","Error","publicPath","process","excelTemplatePath","visible","updateField","reserveShow","dialogVisible","dialogVisible2","publicId","lastVal","nowVal","loadingModule","noRow","sort_field","sort_value","getStockInfo","getStockNum","getList","page","create_time_start","create_time_end","map","arrived_today_num11","meta","manage","$nextTick","$refs","aupload","clearFiles","$confirm","confirmButtonText","cancelButtonText","orderRest","update","val","exportType","window","open","objectToQueryString","obj","Object","keys","encodeURIComponent","join","column","order","prop","patchdata","flat","inventory","onCount","ejectstock","stockpatch","importFile","file","error","isLoadingDialog","FormData","append","token","localStorage","getItem","axios","headers","Authorization","success","commitloading","getExcelTemplatePath","$requestInternet","get","reference_priceData","reference_price","singleUpdate","goal_rate","getgoodsType","param","forEach","updateSaleStock","multipleTable","clearSelection","sale_stock_old","console","log","$route","to","from","location","reload","mounted","http","url","method","goodsList","imgUpload","Headers","getGoodsList","goodsSkuLocation","goodsSkusList","getGoodsFilter","addGoodsCombination","getGoodsCombination","showGoodsCombination","shopListId","shopAdd","storeList","downloadGoods","updateStore","syncStoreStock","shipList","ShopSenderList","shopId","shopShipId","saveSenders","shopAddress","updateShopAddress"],"sourceRoot":""} \ No newline at end of file diff --git a/public/dist/js/463.09656921.js b/public/dist/js/463.09656921.js new file mode 100644 index 0000000..5e8806a --- /dev/null +++ b/public/dist/js/463.09656921.js @@ -0,0 +1,2 @@ +(self["webpackChunkerp"]=self["webpackChunkerp"]||[]).push([[463],{5739:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return l}});var n=function(){var t=this,e=t._self._c;return e("div",{staticClass:"conent"},[e("el-card",[e("el-form",{ref:"form",attrs:{inline:!0,"label-width":"90px"}},[e("el-form-item",{attrs:{label:"所属店铺:"}},[e("el-select",{attrs:{placeholder:"店铺"},on:{change:function(e){return t.handleChoose()}},model:{value:t.filter.shop_id,callback:function(e){t.$set(t.filter,"shop_id",e)},expression:"filter.shop_id"}},t._l(t.shopsList,(function(t){return e("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1)],1),e("el-form-item",{attrs:{label:"发货状态:"}},[e("el-select",{attrs:{placeholder:"发货状态"},on:{change:function(e){return t.handleChoose()}},model:{value:t.filter.shipping_status,callback:function(e){t.$set(t.filter,"shipping_status",e)},expression:"filter.shipping_status"}},[e("el-option",{attrs:{value:"",label:"全部"}}),e("el-option",{attrs:{value:"0",label:"未发货"}}),e("el-option",{attrs:{value:"2",label:"部分发货"}}),e("el-option",{attrs:{value:"1",label:"已发货"}})],1)],1),e("el-form-item",{attrs:{label:"订单ID:"}},[e("el-input",{attrs:{placeholder:"订单编号"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.handleChoose.apply(null,arguments)}},model:{value:t.filter.id,callback:function(e){t.$set(t.filter,"id",e)},expression:"filter.id"}})],1),e("el-form-item",{attrs:{label:"订单类型:"}},[e("el-select",{attrs:{placeholder:"订单类型"},on:{change:function(e){return t.handleChoose()}},model:{value:t.filter.is_supplier,callback:function(e){t.$set(t.filter,"is_supplier",e)},expression:"filter.is_supplier"}},[e("el-option",{attrs:{value:"",label:"全部订单"}}),e("el-option",{attrs:{value:1,label:"自卖团订单"}}),e("el-option",{attrs:{value:0,label:"帮卖团订单"}})],1)],1),e("el-form-item",{attrs:{label:"订单状态:"}},[e("el-select",{attrs:{placeholder:"订单状态"},on:{change:function(e){return t.handleChoose()}},model:{value:t.filter.cancel_status,callback:function(e){t.$set(t.filter,"cancel_status",e)},expression:"filter.cancel_status"}},[e("el-option",{attrs:{value:"",label:"全部"}}),e("el-option",{attrs:{value:0,label:"未取消"}}),e("el-option",{attrs:{value:1,label:"已取消"}})],1)],1),e("el-form-item",{attrs:{label:"售后状态:"}},[e("el-select",{attrs:{placeholder:"售后状态"},on:{change:function(e){return t.handleChoose()}},model:{value:t.filter.after_sales_status,callback:function(e){t.$set(t.filter,"after_sales_status",e)},expression:"filter.after_sales_status"}},[e("el-option",{attrs:{value:"",label:"全部"}}),e("el-option",{attrs:{value:0,label:"未售后"}}),e("el-option",{attrs:{value:1,label:"有售后"}})],1)],1),e("el-form-item",{attrs:{label:"商品数量:"}},[e("el-select",{attrs:{placeholder:"商品数量"},on:{change:function(e){return t.handleChoose()}},model:{value:t.filter.goods_sku_num,callback:function(e){t.$set(t.filter,"goods_sku_num",e)},expression:"filter.goods_sku_num"}},[e("el-option",{attrs:{value:"",label:"全部"}}),e("el-option",{attrs:{value:1,label:"1个商品"}}),e("el-option",{attrs:{value:2,label:"2-5个商品"}}),e("el-option",{attrs:{value:6,label:"6个以上商品"}})],1)],1),e("el-form-item",{attrs:{label:"订单商品:"}},[e("el-select",{attrs:{multiple:"",filterable:"",remote:"","reserve-keyword":"",placeholder:"订单商品","remote-method":t.remoteMethod,loading:t.searchLoading},model:{value:t.filter.external_sku_ids,callback:function(e){t.$set(t.filter,"external_sku_ids",e)},expression:"filter.external_sku_ids"}},t._l(t.options,(function(t){return e("el-option",{key:t.external_sku_id,attrs:{label:t.title,value:t.external_sku_id}})})),1)],1),e("el-form-item",{attrs:{label:"商品编码:"}},[e("el-input",{attrs:{placeholder:"商品编码"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.handleChoose.apply(null,arguments)}},model:{value:t.filter.external_sku_id,callback:function(e){t.$set(t.filter,"external_sku_id",e)},expression:"filter.external_sku_id"}})],1),e("el-form-item",{attrs:{label:"跟团号:"}},[e("el-input",{attrs:{placeholder:"跟团号"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.handleChoose.apply(null,arguments)}},model:{value:t.filter.pno,callback:function(e){t.$set(t.filter,"pno",e)},expression:"filter.pno"}})],1),e("el-form-item",{attrs:{label:"打印状态:"}},[e("el-select",{attrs:{placeholder:"请选择",clearable:""},on:{change:function(e){return t.handleChoose()}},model:{value:t.filter.print_status,callback:function(e){t.$set(t.filter,"print_status",e)},expression:"filter.print_status"}},[e("el-option",{attrs:{value:1,label:"已打印"}}),e("el-option",{attrs:{value:0,label:"未打印"}})],1)],1),e("el-form-item",{attrs:{label:"下单时间:"}},[e("el-date-picker",{attrs:{type:"datetimerange","range-separator":"-","start-placeholder":"起","end-placeholder":"止",format:"yyyy-MM-dd HH:mm:ss","value-format":"yyyy-MM-dd HH:mm:ss"},on:{change:function(e){return t.handleChoose()}},model:{value:t.confirmAt,callback:function(e){t.confirmAt=e},expression:"confirmAt"}})],1),e("el-form-item",[e("el-button",{attrs:{type:"primary"},on:{click:t.handleChoose}},[t._v("筛选")]),e("el-button",{attrs:{plain:""},on:{click:t.handleReChoose}},[t._v("重置筛选")]),e("el-button",{attrs:{type:"primary"},on:{click:t.openPrint}},[t._v("打印")]),e("el-button",{attrs:{type:"warning",loading:t.exportLoading,icon:"el-icon-download"},on:{click:t.handleExport}},[t._v("数据导出")])],1)],1)],1),e("el-card",{staticStyle:{"margin-top":"10px"}},[e("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:t.orderList,border:""},on:{"selection-change":t.handleSelectionChange}},[e("el-table-column",{attrs:{type:"selection",width:"55",align:"center",selectable:t.selectable}}),e("el-table-column",{attrs:{label:"订单ID",prop:"id",width:"80",align:"center"}}),e("el-table-column",{attrs:{label:"店铺名称",prop:"shop.name"}}),e("el-table-column",{attrs:{label:"跟团号",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.is_supplier?"自卖团: ":"帮卖团: ")+" "+t._s(e.row.is_supplier?e.row.participate_no:e.row.supply_participate_no)+" ")]}}])}),e("el-table-column",{attrs:{label:"收件人信息",width:"240"},scopedSlots:t._u([{key:"default",fn:function(r){return[e("p",[t._v(t._s(r.row.receiver_name)+"  "+t._s(r.row.receiver_mobile))]),e("p",[t._v(t._s(r.row.receiver_address_province)+"/"+t._s(r.row.receiver_address_city)+"/"+t._s(r.row.receiver_address_district))]),e("p",[t._v(t._s(r.row.receiver_address_detail))])]}}])}),e("el-table-column",{attrs:{prop:"shipping_status",label:"发货状态",align:"center"}}),e("el-table-column",{attrs:{prop:"cancel_status",label:"订单状态",align:"center"}}),e("el-table-column",{attrs:{prop:"after_sales_status",label:"售后状态",align:"center"}}),e("el-table-column",{attrs:{label:"商品信息","min-width":"150"},scopedSlots:t._u([{key:"default",fn:function(r){return t._l(r.row.items,(function(r){return e("div",{key:r.id},[t._v(" "+t._s(r.goods_name)+" "),e("span",{staticStyle:{color:"red"}},[t._v("+"+t._s(r.goods_number))])])}))}}])}),e("el-table-column",{attrs:{label:"面单信息","min-width":"100",align:"center"},scopedSlots:t._u([{key:"default",fn:function(r){return[r.row.waybill?e("div",[0==r.row.waybill.status?e("el-tag",{attrs:{type:"info"}},[t._v("待申请运单")]):1==r.row.waybill.status?e("el-tag",{attrs:{type:"primary"}},[t._v("已申请运单")]):2==r.row.waybill.status?e("el-tag",{attrs:{type:"warning"}},[t._v("待打印")]):3==r.row.waybill.status?e("el-tag",{attrs:{type:"success"}},[t._v("打印成功")]):t._e(),e("div",{staticStyle:{"line-height":"16px","margin-top":"10px"}},[t._v("运单号:"+t._s(r.row.waybill.waybill_code))])],1):t._e()]}}])}),e("el-table-column",{attrs:{label:"打印状态",align:"center",width:"110"},scopedSlots:t._u([{key:"default",fn:function(r){return[1==r.row.print_status?e("span",{staticStyle:{color:"rgb(4, 190, 2)"}},[t._v("已打印")]):e("span",[t._v("未打印")])]}}])}),e("el-table-column",{attrs:{prop:"confirm_at",label:"下单时间",width:"150",align:"center"}})],1),e("div",{staticClass:"page-pagination"},[e("el-pagination",{attrs:{"current-page":t.page,"page-sizes":[10,50,100,500],"page-size":t.per_page,layout:"prev, pager, next, sizes, jumper, total",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1)],1),e("el-dialog",{attrs:{title:"发货信息",width:"960px",visible:t.showPrint,"close-on-click-modal":!1},on:{"update:visible":function(e){t.showPrint=e},close:t.closePrint}},[1==t.connectStatus?e("div",{staticStyle:{margin:"-20px 0 20px"}},[e("el-alert",{attrs:{title:"已建立连接",type:"success","show-icon":""}})],1):t._e(),e("el-table",{staticStyle:{width:"100%"},attrs:{data:t.tempList,border:""}},[e("el-table-column",{attrs:{label:"订单ID",prop:"id",width:"80",align:"center"}}),e("el-table-column",{attrs:{label:"收件人信息",width:"240"},scopedSlots:t._u([{key:"default",fn:function(r){return[e("p",[t._v(t._s(r.row.receiver_name)+"  "+t._s(r.row.receiver_mobile))]),e("p",[t._v(t._s(r.row.receiver_address_province)+"/"+t._s(r.row.receiver_address_city)+"/"+t._s(r.row.receiver_address_district))]),e("p",[t._v(t._s(r.row.receiver_address_detail))])]}}])}),e("el-table-column",{attrs:{prop:"shipping_status",label:"发货状态",align:"center"}}),e("el-table-column",{attrs:{prop:"cancel_status",label:"订单状态",align:"center"}}),e("el-table-column",{attrs:{label:"商品信息",width:"220"},scopedSlots:t._u([{key:"default",fn:function(r){return t._l(r.row.items,(function(r){return e("div",{key:r.id},[t._v(" "+t._s(r.goods_name)+" "),e("span",{staticStyle:{color:"red"}},[t._v("+"+t._s(r.goods_number))])])}))}}])}),e("el-table-column",{attrs:{label:"打印状态",align:"center"},scopedSlots:t._u([{key:"default",fn:function(r){return[0!=r.row.print_status&&r.row.print_status?1==r.row.print_status?e("span",{staticStyle:{color:"rgb(4, 190, 2)"}},[t._v("打印成功")]):2==r.row.print_status?e("div",[e("div",{staticStyle:{color:"#f00"}},[t._v("打印失败")]),e("span",{staticStyle:{"font-size":"12px",color:"#777"}},[t._v(t._s(r.row.fail_msg))])]):t._e():e("span",[t._v("等待打印")])]}}])})],1),e("el-form",{staticStyle:{"margin-top":"20px"},attrs:{"label-width":"80px"}},[e("el-form-item",{attrs:{label:"打印机:"}},[e("el-select",{attrs:{placeholder:"请选择打印机"},model:{value:t.printName,callback:function(e){t.printName=e},expression:"printName"}},t._l(t.printsList,(function(t,r){return e("el-option",{key:r,attrs:{label:t,value:t}})})),1)],1)],1),e("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e("el-button",{attrs:{plain:""},on:{click:function(e){t.showPrint=!1}}},[t._v("取消")]),e("el-button",{attrs:{type:"primary",loading:t.loading1},on:{click:function(e){return t.toPrint()}}},[t._v("保存")])],1)],1)],1)},s=[],a=r(877),i=a.Z,o=r(1001),u=(0,o.Z)(i,n,s,!1,null,"67e66b80",null),l=u.exports},7484:function(t){!function(e,r){t.exports=r()}(0,(function(){"use strict";var t=1e3,e=6e4,r=36e5,n="millisecond",s="second",a="minute",i="hour",o="day",u="week",l="month",c="quarter",p="year",_="date",d="Invalid Date",f=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],r=t%100;return"["+t+(e[(r-20)%10]||e[r]||e[0])+"]"}},g=function(t,e,r){var n=String(t);return!n||n.length>=e?t:""+Array(e+1-n.length).join(r)+t},b={s:g,z:function(t){var e=-t.utcOffset(),r=Math.abs(e),n=Math.floor(r/60),s=r%60;return(e<=0?"+":"-")+g(n,2,"0")+":"+g(s,2,"0")},m:function t(e,r){if(e.date()1)return t(i[0])}else{var o=e.name;y[o]=e,s=o}return!n&&s&&(v=s),s||!n&&v},E=function(t,e){if(O(t))return t.clone();var r="object"==typeof e?e:{};return r.date=t,r.args=arguments,new S(r)},M=b;M.l=k,M.i=O,M.w=function(t,e){return E(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var S=function(){function m(t){this.$L=k(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[w]=!0}var g=m.prototype;return g.parse=function(t){this.$d=function(t){var e=t.date,r=t.utc;if(null===e)return new Date(NaN);if(M.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var n=e.match(f);if(n){var s=n[2]-1||0,a=(n[7]||"0").substring(0,3);return r?new Date(Date.UTC(n[1],s,n[3]||1,n[4]||0,n[5]||0,n[6]||0,a)):new Date(n[1],s,n[3]||1,n[4]||0,n[5]||0,n[6]||0,a)}}return new Date(e)}(t),this.init()},g.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},g.$utils=function(){return M},g.isValid=function(){return!(this.$d.toString()===d)},g.isSame=function(t,e){var r=E(t);return this.startOf(e)<=r&&r<=this.endOf(e)},g.isAfter=function(t,e){return E(t){this.orderList=t.data.data,this.total=t.data.meta.total,this.loading=!1})).catch((()=>{this.loading=!1}))},getShopsList(){let t={page:0,per_page:99};(0,_api_shop__WEBPACK_IMPORTED_MODULE_5__.nH)(t).then((t=>{this.shopsList=t.data.data}))},handleSizeChange(t){this.page=1,this.per_page=t,this.getOrderList()},handleCurrentChange(t){this.page=t,this.getOrderList()},handleChoose(){this.page=1,this.getOrderList()},handleReChoose(){this.filter={shop_id:"",shipping_status:"",is_supplier:"",cancel_status:0,after_sales_status:0,goods_sku_num:"",external_sku_ids:"",pno:""},this.page=1,this.getOrderList()},remoteMethod(t){""!==t?(this.searchLoading=!0,setTimeout((()=>{this.searchLoading=!1,(0,_api_goods__WEBPACK_IMPORTED_MODULE_6__.NR)(t).then((e=>{this.options=e.data.filter((e=>e.title.toLowerCase().indexOf(t.toLowerCase())>-1))}))}),200)):this.options=[]},print(){const t=this.$loading({lock:!0,text:"Loading",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.7)"});(0,_api_plat__WEBPACK_IMPORTED_MODULE_4__.kT)(this.filter).then((e=>{this.print_documents=e.data.documents,this.print_order_ids=e.data.order_ids,t.close(),this.doPrint()}))},selectable(t,e){return"未发货"==t.shipping_status&&"未取消"==t.cancel_status&&1!==t.print_status},handleSelectionChange(t){this.chooseList=t},handleExport(){this.exportLoading=!0;let t={...this.form,page:1,per_page:this.per_page,confirm_at_start:this.confirmAt[0]?this.confirmAt[0]:"",confirm_at_end:this.confirmAt[1]?this.confirmAt[1]:"",is_export:1};(0,_api_plat__WEBPACK_IMPORTED_MODULE_4__._)(t).then((t=>{this.downLoadXls(t.data),this.$message({type:"success",message:"导出成功!"}),this.exportLoading=!1})).catch((()=>{this.exportLoading=!1}))},downLoadXls(t){const e=t,r=new Blob([e]),n=(new Date).toLocaleDateString(),s=`订单列表${n}.xlsx`;if("download"in document.createElement("a")){const t=document.createElement("a");t.download=s,t.style.display="none",t.href=URL.createObjectURL(r),document.body.appendChild(t),t.click(),URL.revokeObjectURL(t.href),document.body.removeChild(t)}else navigator.msSaveBlob(r,s)},objectToQueryString(t){return Object.keys(t).map((e=>encodeURIComponent(e)+"="+(t[e]?encodeURIComponent(t[e]):""))).join("&")},initWebSocket(){try{let State=new Array("正在连接","已建立连接","正在关闭连接","已关闭连接"),host="ws://localhost:9113";const that=this;that.webSocket=new WebSocket(host),that.webSocket.onopen=function(){console.log(that.webSocket),that.connectStatus=that.webSocket.readyState,that.getPrintList()},that.webSocket.onmessage=function(msg){let returnData=msg.data,json=eval("("+returnData+")"),content=json.content;if("6"==json.code)that.printsList=content.split(",");else if("true"==json.success&&"2"==json.code){if(console.log("0.0",json),that.getOrderList(),"print success all"==json.message){let t=[];that.tempList.forEach(((e,r)=>{t.push(e.id),that.$set(that.tempList[r],"print_status",1)}));let e={order_ids:t.join(",")};(0,_api_plat__WEBPACK_IMPORTED_MODULE_4__.EB)(e)}else if("print success, partly wrong."==json.message){for(let r=0;r{e.fail_msg||(that.$set(that.tempList[r],"print_status",1),t.push(e.id))}));let e={order_ids:t.join(",")};(0,_api_plat__WEBPACK_IMPORTED_MODULE_4__.EB)(e)}}else if("true"==json.success&&"2"==json.code)for(let t=0;t{t.fail_msg=""})),this.showPrint=!0):this.$message({type:"info",message:"请选择需要打印的订单"})},toPrint(){if(!this.printName)return void this.$message({type:"info",message:"请选择打印机"});this.loading1=!0;let t=[];this.chooseList.forEach((e=>{t.push(e.id)}));let e={ids:t.join(",")};(0,_api_plat__WEBPACK_IMPORTED_MODULE_4__.se)(e).then((t=>{let e=t.data.data;console.log(e);let r={orderType:"print",version:"2",parameters:{printName:this.printName,contents:[]}};for(let n in e)console.log(n),r.parameters.contents.push({tempUrl:e[n].templateUrl,printData:e[n].encryptedData});this.webSocket.send(JSON.stringify(r)),this.loading1=!1})).catch((()=>{this.loading1=!1}))},toPrint1(){let t="print",e="https://template-content.jd.com/template-oss?tempCode=jdkd76x130",r="",n="",s="qfJVGzg6XlGK1E/wOVvkE9YuUGEtuO+WNmfEdPZsvBcUWOuVwbe49t9c0ugW89dOZkYANPvI6J9UA1kq8lbMoIu5VeaRX0G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AfX9kZkUMnyJ2pKliD3hcZHMxegnUM7HW+LJq5J8KxQFmjwOvwgoxLnLgqn2c9NLo3I3N/Lx104HUN0UNbI6lpF1gbuLsO9sLyM78dFVpaZ6dshJPtsDL6ltVTLDxVdTIWMT2OA=",a='{"orderType": "'+t+'", "parameters": {"printName": "'+this.printName+'", \t\t"tempUrl": "'+e+'", "customTempUrl": "'+r+'", "customData": ['+n+'], \t"printData": ["'+s+'"] } }';this.webSocket.send(a)},closePrint(){this.$refs.multipleTable.clearSelection(),this.chooseList=[],this.printName="",this.webSocket.close()}}}},9036:function(t,e,r){"use strict";r.d(e,{CD:function(){return b},JS:function(){return v},K1:function(){return c},NR:function(){return f},Rq:function(){return a},Vx:function(){return l},b9:function(){return y},cM:function(){return p},e3:function(){return u},gM:function(){return g},lO:function(){return s},no:function(){return m},od:function(){return _},rQ:function(){return i},sx:function(){return h},t5:function(){return o},zl:function(){return d}});var n=r(8430);function s(t){return(0,n.Z)({url:"/api/goods_skus",method:"get",params:t})}function a(t){return(0,n.Z)({url:"/api/goods",method:"post",data:t})}function i(t){return(0,n.Z)({url:`/api/goods_skus/${t}`,method:"get"})}function o(t){return(0,n.Z)({url:"/api/goods",method:"get",params:t})}function u(t,e){return(0,n.Z)({url:`/api/goods_skus/${t}`,method:"patch",data:e})}function l(t){return(0,n.Z)({url:"/api/batch/goods_skus",method:"patch",data:t})}function c(t,e){return(0,n.Z)({url:`/api/single/goods_skus/${t}`,method:"patch",data:e})}function p(t,e){return(0,n.Z)({url:"/api/upload",Headers:e,method:"post",data:t})}function _(t){return(0,n.Z)({url:"/api/goodsList",method:"get",params:t})}function d(t){return(0,n.Z)({url:"/api/goods_sku_location",method:"get",params:t})}function f(t){return(0,n.Z)({url:"/api/goodsSkusList",method:"get",params:{title:t}})}function h(){return(0,n.Z)({url:"/api/stock/goods_skus",method:"get"})}function m(t){return(0,n.Z)({url:"/api/goods/filter/"+t,method:"get"})}function g(t){return(0,n.Z)({url:"/api/goods_combination",method:"post",data:t})}function b(t){return(0,n.Z)({url:"/api/goods_combination",method:"get",params:t})}function v(t){return(0,n.Z)({url:"/api/goods_combination/"+t,method:"get"})}function y(t){return(0,n.Z)({url:"/api/batch/goods_skus",method:"patch",data:t})}},5522:function(t,e,r){"use strict";r.d(e,{EB:function(){return c},Hf:function(){return p},Rh:function(){return a},YQ:function(){return o},_:function(){return _},cb:function(){return d},g4:function(){return i},kT:function(){return l},lU:function(){return u},mr:function(){return s},se:function(){return f}});var n=r(8430);function s(t){return(0,n.Z)({url:"/api/plat_goods",method:"get",params:t})}function a(t,e){return(0,n.Z)({url:"/api/plat_goods/"+t,method:"patch",params:e})}function i(t){return(0,n.Z)({url:"/api/plat_goods/"+t,method:"delete"})}function o(t){return(0,n.Z)({url:"/api/plat/sync/"+t+"/stock/",method:"post"})}function u(t){return(0,n.Z)({url:"/api/plat_orders",method:"get",params:t})}function l(t){return(0,n.Z)({url:"/api/print/orders",method:"get",params:t})}function c(t){return(0,n.Z)({url:"/api/print/success",method:"put",params:t})}function p(t){return(0,n.Z)({url:"/api/plat_after_sale_orders",method:"get",params:t})}function _(t){return(0,n.Z)({url:"/api/plat_orders",method:"get",params:t,responseType:"blob"})}function d(t){return(0,n.Z)({url:"/api/plat_after_sale_orders",method:"get",params:t,responseType:"blob"})}function f(t){return(0,n.Z)({url:"/api/print/orders",method:"get",params:t})}},9998:function(t,e,r){"use strict";r.d(e,{$i:function(){return a},C$:function(){return h},OV:function(){return c},Vq:function(){return _},_d:function(){return l},dT:function(){return d},hA:function(){return s},i$:function(){return f},nH:function(){return i},ow:function(){return u},rV:function(){return o},tA:function(){return p}});var n=r(8430);function s(){return(0,n.Z)({url:"/api/shop_platforms",method:"get"})}function a(t){return(0,n.Z)({url:"/api/shops",method:"post",data:t})}function i(t){return(0,n.Z)({url:"/api/shops",method:"get",params:t})}function o(t){return(0,n.Z)({url:`/api/download/${t}/goods`,method:"get"})}function u(t,e){return(0,n.Z)({url:`/api/shops/${t}`,method:"patch",params:e})}function l(t){return(0,n.Z)({url:"/api/sync/shop/stock",method:"put",params:t})}function c(){return(0,n.Z)({url:"/api/shop/ship",method:"get"})}function p(t,e){return(0,n.Z)({url:"/api/shop/ship/senders",method:"get",params:{shop_id:t,shop_ship_id:e}})}function _(t){return(0,n.Z)({url:"/api/shop/ship/senders",method:"post",params:t})}function d(t){return(0,n.Z)({url:"/api/order/reset",method:"get"})}function f(t){return(0,n.Z)({url:"/api/shop_sends",method:"get",params:t})}function h(t){return(0,n.Z)({url:"/api/shop_sends",method:"post",params:t})}},4328:function(t,e,r){"use strict";var n=r(5290),s=r(7578),a=r(6310),i=function(t){return function(e,r,i){var o,u=n(e),l=a(u),c=s(i,l);if(t&&r!==r){while(l>c)if(o=u[c++],o!==o)return!0}else for(;l>c;c++)if((t||c in u)&&u[c]===r)return t||c||0;return!t&&-1}};t.exports={includes:i(!0),indexOf:i(!1)}},5649:function(t,e,r){"use strict";var n=r(7697),s=r(2297),a=TypeError,i=Object.getOwnPropertyDescriptor,o=n&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=o?function(t,e){if(s(t)&&!i(t,"length").writable)throw new a("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e}},926:function(t,e,r){"use strict";var n=r(3043),s=r(9985),a=r(6648),i=r(4201),o=i("toStringTag"),u=Object,l="Arguments"===a(function(){return arguments}()),c=function(t,e){try{return t[e]}catch(r){}};t.exports=n?a:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=c(e=u(t),o))?r:l?a(e):"Object"===(n=a(e))&&s(e.callee)?"Arguments":n}},8758:function(t,e,r){"use strict";var n=r(6812),s=r(9152),a=r(2474),i=r(2560);t.exports=function(t,e,r){for(var o=s(e),u=i.f,l=a.f,c=0;cr)throw e("Maximum allowed index exceeded");return t}},2739:function(t){"use strict";t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},9989:function(t,e,r){"use strict";var n=r(9037),s=r(2474).f,a=r(5773),i=r(1880),o=r(5014),u=r(8758),l=r(5266);t.exports=function(t,e){var r,c,p,_,d,f,h=t.target,m=t.global,g=t.stat;if(c=m?n:g?n[h]||o(h,{}):n[h]&&n[h].prototype,c)for(p in e){if(d=e[p],t.dontCallGetSet?(f=s(c,p),_=f&&f.value):_=c[p],r=l(m?p:h+(g?".":"#")+p,t.forced),!r&&void 0!==_){if(typeof d==typeof _)continue;u(d,_)}(t.sham||_&&_.sham)&&a(d,"sham",!0),i(c,p,d,t)}}},4413:function(t,e,r){"use strict";var n=r(8844),s=r(3689),a=r(6648),i=Object,o=n("".split);t.exports=s((function(){return!i("z").propertyIsEnumerable(0)}))?function(t){return"String"===a(t)?o(t,""):i(t)}:i},2297:function(t,e,r){"use strict";var n=r(6648);t.exports=Array.isArray||function(t){return"Array"===n(t)}},5266:function(t,e,r){"use strict";var n=r(3689),s=r(9985),a=/#|\.prototype\./,i=function(t,e){var r=u[o(t)];return r===c||r!==l&&(s(e)?n(e):!!e)},o=i.normalize=function(t){return String(t).replace(a,".").toLowerCase()},u=i.data={},l=i.NATIVE="N",c=i.POLYFILL="P";t.exports=i},6310:function(t,e,r){"use strict";var n=r(3126);t.exports=function(t){return n(t.length)}},8828:function(t){"use strict";var e=Math.ceil,r=Math.floor;t.exports=Math.trunc||function(t){var n=+t;return(n>0?r:e)(n)}},2474:function(t,e,r){"use strict";var n=r(7697),s=r(2615),a=r(9556),i=r(5684),o=r(5290),u=r(8360),l=r(6812),c=r(8506),p=Object.getOwnPropertyDescriptor;e.f=n?p:function(t,e){if(t=o(t),e=u(e),c)try{return p(t,e)}catch(r){}if(l(t,e))return i(!s(a.f,t,e),t[e])}},2741:function(t,e,r){"use strict";var n=r(4948),s=r(2739),a=s.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,a)}},7518:function(t,e){"use strict";e.f=Object.getOwnPropertySymbols},4948:function(t,e,r){"use strict";var n=r(8844),s=r(6812),a=r(5290),i=r(4328).indexOf,o=r(7248),u=n([].push);t.exports=function(t,e){var r,n=a(t),l=0,c=[];for(r in n)!s(o,r)&&s(n,r)&&u(c,r);while(e.length>l)s(n,r=e[l++])&&(~i(c,r)||u(c,r));return c}},9556:function(t,e){"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,s=n&&!r.call({1:2},1);e.f=s?function(t){var e=n(this,t);return!!e&&e.enumerable}:r},9152:function(t,e,r){"use strict";var n=r(6058),s=r(8844),a=r(2741),i=r(7518),o=r(5027),u=s([].concat);t.exports=n("Reflect","ownKeys")||function(t){var e=a.f(o(t)),r=i.f;return r?u(e,r(t)):e}},7578:function(t,e,r){"use strict";var n=r(8700),s=Math.max,a=Math.min;t.exports=function(t,e){var r=n(t);return r<0?s(r+e,0):a(r,e)}},5290:function(t,e,r){"use strict";var n=r(4413),s=r(4684);t.exports=function(t){return n(s(t))}},8700:function(t,e,r){"use strict";var n=r(8828);t.exports=function(t){var e=+t;return e!==e||0===e?0:n(e)}},3126:function(t,e,r){"use strict";var n=r(8700),s=Math.min;t.exports=function(t){var e=n(t);return e>0?s(e,9007199254740991):0}},3043:function(t,e,r){"use strict";var n=r(4201),s=n("toStringTag"),a={};a[s]="z",t.exports="[object z]"===String(a)},4327:function(t,e,r){"use strict";var n=r(926),s=String;t.exports=function(t){if("Symbol"===n(t))throw new TypeError("Cannot convert a Symbol value to a string");return s(t)}},1500:function(t){"use strict";var e=TypeError;t.exports=function(t,r){if(t=e?t:\"\"+Array(e+1-r.length).join(n)+t},v={s:m,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return(e<=0?\"+\":\"-\")+m(r,2,\"0\")+\":\"+m(i,2,\"0\")},m:function t(e,n){if(e.date()1)return t(u[0])}else{var a=e.name;D[a]=e,i=a}return!r&&i&&(g=i),i||!r&&g},O=function(t,e){if(S(t))return t.clone();var n=\"object\"==typeof e?e:{};return n.date=t,n.args=arguments,new _(n)},b=v;b.l=w,b.i=S,b.w=function(t,e){return O(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var _=function(){function M(t){this.$L=w(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[p]=!0}var m=M.prototype;return m.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(b.u(e))return new Date;if(e instanceof Date)return new Date(e);if(\"string\"==typeof e&&!/Z$/i.test(e)){var r=e.match($);if(r){var i=r[2]-1||0,s=(r[7]||\"0\").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)}}return new Date(e)}(t),this.init()},m.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},m.$utils=function(){return b},m.isValid=function(){return!(this.$d.toString()===l)},m.isSame=function(t,e){var n=O(t);return this.startOf(e)<=n&&n<=this.endOf(e)},m.isAfter=function(t,e){return O(t)\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n\r\n \r\n 筛选\r\n 重置筛选\r\n 打印\r\n \r\n 数据导出\r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n
\r\n \r\n \r\n
\r\n
\r\n\r\n \r\n
\r\n \r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n 取消\r\n 保存\r\n \r\n
\r\n
\r\n\r\n\r\n\r\n\r\n\r\n","import http from \"@/util/http.js\";\r\n\r\n//店铺订单\r\nexport function shops(params) {\r\n return http({\r\n url: \"/api/count/orders/num\",\r\n method: \"get\",\r\n params,\r\n });\r\n}\r\n\r\n// 商品管理列表\r\nexport function goods(params) {\r\n return http({\r\n url: \"/api/goods_skus\",\r\n method: \"get\",\r\n params,\r\n });\r\n}\r\n// 新增商品/规格\r\nexport function addGoods(data) {\r\n return http({\r\n url: \"/api/goods\",\r\n method: \"post\",\r\n data,\r\n });\r\n}\r\n// 查看商品\r\nexport function checkGoods(id) {\r\n return http({\r\n url: `/api/goods_skus/${id}`,\r\n method: \"get\",\r\n });\r\n}\r\n// 商品列表\r\nexport function goodsList(params) {\r\n return http({\r\n url: \"/api/goods\",\r\n method: \"get\",\r\n params,\r\n });\r\n}\r\n// 更新商品\r\nexport function updateGoods(id, data) {\r\n return http({\r\n url: `/api/goods_skus/${id}`,\r\n method: \"patch\",\r\n data,\r\n });\r\n}\r\n\r\n// 上新/库存盘点/库存\r\nexport function update(data) {\r\n return http({\r\n url: \"/api/batch/goods_skus\",\r\n method: \"patch\",\r\n data,\r\n });\r\n}\r\n\r\n// 单个字段更新\r\nexport function singleUpdate(id, data) {\r\n return http({\r\n url: `/api/single/goods_skus/${id}`,\r\n method: \"patch\",\r\n data,\r\n });\r\n}\r\n\r\n// 图片上传\r\nexport function imgUpload(data, item) {\r\n return http({\r\n url: \"/api/upload\",\r\n Headers: item,\r\n method: \"post\",\r\n data,\r\n });\r\n}\r\n\r\n// 表格导出\r\nexport function tableExport(params) {\r\n return http({\r\n url: \"/goods_skus/export\",\r\n method: \"get\",\r\n params,\r\n });\r\n}\r\n\r\n// 商品列表(添加)\r\nexport function getGoodsList(params) {\r\n return http({\r\n url: \"/api/goodsList\",\r\n method: \"get\",\r\n params,\r\n });\r\n}\r\n\r\n// 商品货架\r\nexport function goodsSkuLocation(params) {\r\n return http({\r\n url: \"/api/goods_sku_location\",\r\n method: \"get\",\r\n params,\r\n });\r\n}\r\n\r\nexport function goodsSkusList(title) {\r\n return http({\r\n url: \"/api/goodsSkusList\",\r\n method: \"get\",\r\n params: { title: title }\r\n });\r\n}\r\n\r\nexport function importGoodsSkuLocation(params) {\r\n return http({\r\n url: \"/api/goods_sku_location\",\r\n method: \"post\",\r\n params,\r\n });\r\n}\r\n\r\nexport function updateGoodsSkuLocation(params) {\r\n return http({\r\n url: \"/api/goods_sku_location\",\r\n method: \"put\",\r\n params,\r\n });\r\n}\r\n\r\nexport function deleteGoodsSkuLocation(params) {\r\n return http({\r\n url: \"/api/goods_sku_location\",\r\n method: \"delete\",\r\n params,\r\n });\r\n}\r\n\r\nexport function getStockNum() {\r\n return http({\r\n url: \"/api/stock/goods_skus\",\r\n method: \"get\",\r\n });\r\n}\r\n\r\nexport function getGoodsFilter(title) {\r\n return http({\r\n url: \"/api/goods/filter/\" + title,\r\n method: \"get\",\r\n });\r\n}\r\n\r\nexport function addGoodsCombination(data) {\r\n return http({\r\n url: \"/api/goods_combination\",\r\n method: \"post\",\r\n data,\r\n });\r\n}\r\n\r\nexport function getGoodsCombination(params) {\r\n return http({\r\n url: \"/api/goods_combination\",\r\n method: \"get\",\r\n params,\r\n });\r\n}\r\n\r\nexport function showGoodsCombination(id) {\r\n return http({\r\n url: \"/api/goods_combination/\" + id,\r\n method: \"get\",\r\n });\r\n}\r\n\r\nexport function updateGoodsCombination(id, data) {\r\n return http({\r\n url: \"/api/goods_combination/\" + id,\r\n method: \"patch\",\r\n data,\r\n });\r\n}\r\n\r\nexport function delGoodsCombination(id) {\r\n return http({\r\n url: \"/api/goods_combination/\" + id,\r\n method: \"delete\",\r\n });\r\n}\r\n\r\nexport function updateSaleStock(data) {\r\n return http({\r\n url: `/api/batch/goods_skus`,\r\n method: \"patch\",\r\n data\r\n })\r\n}\r\n","import http from \"@/util/http.js\";\r\n\r\n// 平台货品列表\r\nexport function platGoodsList(params) {\r\n return http({\r\n url: \"/api/plat_goods\",\r\n method: \"get\",\r\n params,\r\n });\r\n}\r\n\r\nexport function updateSyncStatus(id, params) {\r\n return http({\r\n url: \"/api/plat_goods/\" + id,\r\n method: \"patch\",\r\n params,\r\n });\r\n}\r\n\r\nexport function deletePlatGoods(id) {\r\n return http({\r\n url: \"/api/plat_goods/\" + id,\r\n method: \"delete\",\r\n });\r\n}\r\n\r\nexport function syncStock(id) {\r\n return http({\r\n url: \"/api/plat/sync/\" + id + \"/stock/\",\r\n method: \"post\",\r\n });\r\n}\r\n\r\nexport function activityList(shopId) {\r\n return http({\r\n url: \"/api/plat_group_activity/\" + shopId,\r\n method: \"get\",\r\n });\r\n}\r\n\r\n// 平台订单列表\r\nexport function platOrderList(params) {\r\n return http({\r\n url: \"/api/plat_orders\",\r\n method: \"get\",\r\n params\r\n });\r\n}\r\n\r\nexport function platOrderExport(params) {\r\n return http({\r\n url: \"/plat_orders/export\",\r\n method: \"get\",\r\n params,\r\n });\r\n}\r\n\r\nexport function printOrders(params) {\r\n return http({\r\n url: \"/api/print/orders\",\r\n method: \"get\",\r\n params\r\n });\r\n}\r\n\r\nexport function printSuccess(params) {\r\n return http({\r\n url: \"/api/print/success\",\r\n method: \"put\",\r\n params\r\n });\r\n}\r\n\r\nexport function getAfterSaleOrders(params) {\r\n return http({\r\n url: \"/api/plat_after_sale_orders\",\r\n method: \"get\",\r\n params\r\n })\r\n}\r\n\r\nexport function exportOrder(params) {\r\n return http({\r\n url: \"/api/plat_orders\",\r\n method: \"get\",\r\n params,\r\n responseType: 'blob'\r\n })\r\n}\r\n\r\nexport function exportAfterOrder(params) {\r\n return http({\r\n url: \"/api/plat_after_sale_orders\",\r\n method: \"get\",\r\n params,\r\n responseType: 'blob'\r\n })\r\n}\r\n\r\nexport function getPrintInfo(params) {\r\n return http({\r\n url: \"/api/print/orders\",\r\n method: \"get\",\r\n params\r\n })\r\n}\r\n","import http from \"@/util/http.js\";\r\n\r\n// 店铺管理页面请求\r\n\r\n// 店铺平台\r\nexport function shopListId() {\r\n return http({\r\n url: \"/api/shop_platforms\",\r\n method: \"get\",\r\n });\r\n}\r\n// 店铺新增\r\nexport function shopAdd(data) {\r\n return http({\r\n url: \"/api/shops\",\r\n method: \"post\",\r\n data,\r\n });\r\n}\r\n// 店铺列表\r\nexport function storeList(params) {\r\n return http({\r\n url: \"/api/shops\",\r\n method: \"get\",\r\n params,\r\n });\r\n}\r\n\r\n// 下载商品\r\nexport function downloadGoods(id) {\r\n return http({\r\n url: `/api/download/${id}/goods`,\r\n method: \"get\",\r\n });\r\n}\r\n\r\nexport function updateStore(id, params) {\r\n return http({\r\n url: `/api/shops/${id}`,\r\n method: \"patch\",\r\n params,\r\n });\r\n}\r\n\r\nexport function syncStoreStock(params) {\r\n return http({\r\n url: '/api/sync/shop/stock',\r\n method: \"put\",\r\n params,\r\n });\r\n}\r\n\r\nexport function shipList() {\r\n return http({\r\n url: '/api/shop/ship',\r\n method: 'get',\r\n })\r\n}\r\n\r\nexport function ShopSenderList(shopId, shopShipId) {\r\n return http({\r\n url: '/api/shop/ship/senders',\r\n method: 'get',\r\n params: {\r\n 'shop_id': shopId,\r\n 'shop_ship_id': shopShipId,\r\n }\r\n })\r\n}\r\n\r\nexport function saveSenders(params) {\r\n return http({\r\n url: '/api/shop/ship/senders',\r\n method: 'post',\r\n params\r\n })\r\n}\r\n\r\nexport function orderRest(params) {\r\n return http({\r\n url: '/api/order/reset',\r\n method: 'get',\r\n })\r\n}\r\n\r\nexport function shopAddress(params) {\r\n return http({\r\n url: \"/api/shop_sends\",\r\n method: \"get\",\r\n params,\r\n });\r\n}\r\n\r\nexport function updateShopAddress(params) {\r\n return http({\r\n url: '/api/shop_sends',\r\n method: 'post',\r\n params\r\n })\r\n}\r\n","'use strict';\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar toAbsoluteIndex = require('../internals/to-absolute-index');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\n\n// `Array.prototype.{ indexOf, includes }` methods implementation\nvar createMethod = function (IS_INCLUDES) {\n return function ($this, el, fromIndex) {\n var O = toIndexedObject($this);\n var length = lengthOfArrayLike(O);\n var index = toAbsoluteIndex(fromIndex, length);\n var value;\n // Array#includes uses SameValueZero equality algorithm\n // eslint-disable-next-line no-self-compare -- NaN check\n if (IS_INCLUDES && el !== el) while (length > index) {\n value = O[index++];\n // eslint-disable-next-line no-self-compare -- NaN check\n if (value !== value) return true;\n // Array#indexOf ignores holes, Array#includes - not\n } else for (;length > index; index++) {\n if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;\n } return !IS_INCLUDES && -1;\n };\n};\n\nmodule.exports = {\n // `Array.prototype.includes` method\n // https://tc39.es/ecma262/#sec-array.prototype.includes\n includes: createMethod(true),\n // `Array.prototype.indexOf` method\n // https://tc39.es/ecma262/#sec-array.prototype.indexof\n indexOf: createMethod(false)\n};\n","'use strict';\nvar DESCRIPTORS = require('../internals/descriptors');\nvar isArray = require('../internals/is-array');\n\nvar $TypeError = TypeError;\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n\n// Safari < 13 does not throw an error in this case\nvar SILENT_ON_NON_WRITABLE_LENGTH_SET = DESCRIPTORS && !function () {\n // makes no sense without proper strict mode support\n if (this !== undefined) return true;\n try {\n // eslint-disable-next-line es/no-object-defineproperty -- safe\n Object.defineProperty([], 'length', { writable: false }).length = 1;\n } catch (error) {\n return error instanceof TypeError;\n }\n}();\n\nmodule.exports = SILENT_ON_NON_WRITABLE_LENGTH_SET ? function (O, length) {\n if (isArray(O) && !getOwnPropertyDescriptor(O, 'length').writable) {\n throw new $TypeError('Cannot set read only .length');\n } return O.length = length;\n} : function (O, length) {\n return O.length = length;\n};\n","'use strict';\nvar TO_STRING_TAG_SUPPORT = require('../internals/to-string-tag-support');\nvar isCallable = require('../internals/is-callable');\nvar classofRaw = require('../internals/classof-raw');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\nvar $Object = Object;\n\n// ES3 wrong here\nvar CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) === 'Arguments';\n\n// fallback for IE11 Script Access Denied error\nvar tryGet = function (it, key) {\n try {\n return it[key];\n } catch (error) { /* empty */ }\n};\n\n// getting tag from ES6+ `Object.prototype.toString`\nmodule.exports = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {\n var O, tag, result;\n return it === undefined ? 'Undefined' : it === null ? 'Null'\n // @@toStringTag case\n : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag\n // builtinTag case\n : CORRECT_ARGUMENTS ? classofRaw(O)\n // ES3 arguments fallback\n : (result = classofRaw(O)) === 'Object' && isCallable(O.callee) ? 'Arguments' : result;\n};\n","'use strict';\nvar hasOwn = require('../internals/has-own-property');\nvar ownKeys = require('../internals/own-keys');\nvar getOwnPropertyDescriptorModule = require('../internals/object-get-own-property-descriptor');\nvar definePropertyModule = require('../internals/object-define-property');\n\nmodule.exports = function (target, source, exceptions) {\n var keys = ownKeys(source);\n var defineProperty = definePropertyModule.f;\n var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i];\n if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) {\n defineProperty(target, key, getOwnPropertyDescriptor(source, key));\n }\n }\n};\n","'use strict';\nvar makeBuiltIn = require('../internals/make-built-in');\nvar defineProperty = require('../internals/object-define-property');\n\nmodule.exports = function (target, name, descriptor) {\n if (descriptor.get) makeBuiltIn(descriptor.get, name, { getter: true });\n if (descriptor.set) makeBuiltIn(descriptor.set, name, { setter: true });\n return defineProperty.f(target, name, descriptor);\n};\n","'use strict';\nvar $TypeError = TypeError;\nvar MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991\n\nmodule.exports = function (it) {\n if (it > MAX_SAFE_INTEGER) throw $TypeError('Maximum allowed index exceeded');\n return it;\n};\n","'use strict';\n// IE8- don't enum bug keys\nmodule.exports = [\n 'constructor',\n 'hasOwnProperty',\n 'isPrototypeOf',\n 'propertyIsEnumerable',\n 'toLocaleString',\n 'toString',\n 'valueOf'\n];\n","'use strict';\nvar global = require('../internals/global');\nvar getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar defineBuiltIn = require('../internals/define-built-in');\nvar defineGlobalProperty = require('../internals/define-global-property');\nvar copyConstructorProperties = require('../internals/copy-constructor-properties');\nvar isForced = require('../internals/is-forced');\n\n/*\n options.target - name of the target object\n options.global - target is the global object\n options.stat - export as static methods of target\n options.proto - export as prototype methods of target\n options.real - real prototype method for the `pure` version\n options.forced - export even if the native feature is available\n options.bind - bind methods to the target, required for the `pure` version\n options.wrap - wrap constructors to preventing global pollution, required for the `pure` version\n options.unsafe - use the simple assignment of property instead of delete + defineProperty\n options.sham - add a flag to not completely full polyfills\n options.enumerable - export as enumerable property\n options.dontCallGetSet - prevent calling a getter on target\n options.name - the .name of the function if it does not match the key\n*/\nmodule.exports = function (options, source) {\n var TARGET = options.target;\n var GLOBAL = options.global;\n var STATIC = options.stat;\n var FORCED, target, key, targetProperty, sourceProperty, descriptor;\n if (GLOBAL) {\n target = global;\n } else if (STATIC) {\n target = global[TARGET] || defineGlobalProperty(TARGET, {});\n } else {\n target = global[TARGET] && global[TARGET].prototype;\n }\n if (target) for (key in source) {\n sourceProperty = source[key];\n if (options.dontCallGetSet) {\n descriptor = getOwnPropertyDescriptor(target, key);\n targetProperty = descriptor && descriptor.value;\n } else targetProperty = target[key];\n FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);\n // contained in target\n if (!FORCED && targetProperty !== undefined) {\n if (typeof sourceProperty == typeof targetProperty) continue;\n copyConstructorProperties(sourceProperty, targetProperty);\n }\n // add a flag to not completely full polyfills\n if (options.sham || (targetProperty && targetProperty.sham)) {\n createNonEnumerableProperty(sourceProperty, 'sham', true);\n }\n defineBuiltIn(target, key, sourceProperty, options);\n }\n};\n","'use strict';\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar fails = require('../internals/fails');\nvar classof = require('../internals/classof-raw');\n\nvar $Object = Object;\nvar split = uncurryThis(''.split);\n\n// fallback for non-array-like ES3 and non-enumerable old V8 strings\nmodule.exports = fails(function () {\n // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346\n // eslint-disable-next-line no-prototype-builtins -- safe\n return !$Object('z').propertyIsEnumerable(0);\n}) ? function (it) {\n return classof(it) === 'String' ? split(it, '') : $Object(it);\n} : $Object;\n","'use strict';\nvar classof = require('../internals/classof-raw');\n\n// `IsArray` abstract operation\n// https://tc39.es/ecma262/#sec-isarray\n// eslint-disable-next-line es/no-array-isarray -- safe\nmodule.exports = Array.isArray || function isArray(argument) {\n return classof(argument) === 'Array';\n};\n","'use strict';\nvar fails = require('../internals/fails');\nvar isCallable = require('../internals/is-callable');\n\nvar replacement = /#|\\.prototype\\./;\n\nvar isForced = function (feature, detection) {\n var value = data[normalize(feature)];\n return value === POLYFILL ? true\n : value === NATIVE ? false\n : isCallable(detection) ? fails(detection)\n : !!detection;\n};\n\nvar normalize = isForced.normalize = function (string) {\n return String(string).replace(replacement, '.').toLowerCase();\n};\n\nvar data = isForced.data = {};\nvar NATIVE = isForced.NATIVE = 'N';\nvar POLYFILL = isForced.POLYFILL = 'P';\n\nmodule.exports = isForced;\n","'use strict';\nvar toLength = require('../internals/to-length');\n\n// `LengthOfArrayLike` abstract operation\n// https://tc39.es/ecma262/#sec-lengthofarraylike\nmodule.exports = function (obj) {\n return toLength(obj.length);\n};\n","'use strict';\nvar ceil = Math.ceil;\nvar floor = Math.floor;\n\n// `Math.trunc` method\n// https://tc39.es/ecma262/#sec-math.trunc\n// eslint-disable-next-line es/no-math-trunc -- safe\nmodule.exports = Math.trunc || function trunc(x) {\n var n = +x;\n return (n > 0 ? floor : ceil)(n);\n};\n","'use strict';\nvar DESCRIPTORS = require('../internals/descriptors');\nvar call = require('../internals/function-call');\nvar propertyIsEnumerableModule = require('../internals/object-property-is-enumerable');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar toPropertyKey = require('../internals/to-property-key');\nvar hasOwn = require('../internals/has-own-property');\nvar IE8_DOM_DEFINE = require('../internals/ie8-dom-define');\n\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n\n// `Object.getOwnPropertyDescriptor` method\n// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor\nexports.f = DESCRIPTORS ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {\n O = toIndexedObject(O);\n P = toPropertyKey(P);\n if (IE8_DOM_DEFINE) try {\n return $getOwnPropertyDescriptor(O, P);\n } catch (error) { /* empty */ }\n if (hasOwn(O, P)) return createPropertyDescriptor(!call(propertyIsEnumerableModule.f, O, P), O[P]);\n};\n","'use strict';\nvar internalObjectKeys = require('../internals/object-keys-internal');\nvar enumBugKeys = require('../internals/enum-bug-keys');\n\nvar hiddenKeys = enumBugKeys.concat('length', 'prototype');\n\n// `Object.getOwnPropertyNames` method\n// https://tc39.es/ecma262/#sec-object.getownpropertynames\n// eslint-disable-next-line es/no-object-getownpropertynames -- safe\nexports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {\n return internalObjectKeys(O, hiddenKeys);\n};\n","'use strict';\n// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe\nexports.f = Object.getOwnPropertySymbols;\n","'use strict';\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar hasOwn = require('../internals/has-own-property');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar indexOf = require('../internals/array-includes').indexOf;\nvar hiddenKeys = require('../internals/hidden-keys');\n\nvar push = uncurryThis([].push);\n\nmodule.exports = function (object, names) {\n var O = toIndexedObject(object);\n var i = 0;\n var result = [];\n var key;\n for (key in O) !hasOwn(hiddenKeys, key) && hasOwn(O, key) && push(result, key);\n // Don't enum bug & hidden keys\n while (names.length > i) if (hasOwn(O, key = names[i++])) {\n ~indexOf(result, key) || push(result, key);\n }\n return result;\n};\n","'use strict';\nvar $propertyIsEnumerable = {}.propertyIsEnumerable;\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n\n// Nashorn ~ JDK8 bug\nvar NASHORN_BUG = getOwnPropertyDescriptor && !$propertyIsEnumerable.call({ 1: 2 }, 1);\n\n// `Object.prototype.propertyIsEnumerable` method implementation\n// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable\nexports.f = NASHORN_BUG ? function propertyIsEnumerable(V) {\n var descriptor = getOwnPropertyDescriptor(this, V);\n return !!descriptor && descriptor.enumerable;\n} : $propertyIsEnumerable;\n","'use strict';\nvar getBuiltIn = require('../internals/get-built-in');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar getOwnPropertyNamesModule = require('../internals/object-get-own-property-names');\nvar getOwnPropertySymbolsModule = require('../internals/object-get-own-property-symbols');\nvar anObject = require('../internals/an-object');\n\nvar concat = uncurryThis([].concat);\n\n// all object keys, includes non-enumerable and symbols\nmodule.exports = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {\n var keys = getOwnPropertyNamesModule.f(anObject(it));\n var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;\n return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys;\n};\n","'use strict';\nvar toIntegerOrInfinity = require('../internals/to-integer-or-infinity');\n\nvar max = Math.max;\nvar min = Math.min;\n\n// Helper for a popular repeating case of the spec:\n// Let integer be ? ToInteger(index).\n// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).\nmodule.exports = function (index, length) {\n var integer = toIntegerOrInfinity(index);\n return integer < 0 ? max(integer + length, 0) : min(integer, length);\n};\n","'use strict';\n// toObject with fallback for non-array-like ES3 strings\nvar IndexedObject = require('../internals/indexed-object');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\n\nmodule.exports = function (it) {\n return IndexedObject(requireObjectCoercible(it));\n};\n","'use strict';\nvar trunc = require('../internals/math-trunc');\n\n// `ToIntegerOrInfinity` abstract operation\n// https://tc39.es/ecma262/#sec-tointegerorinfinity\nmodule.exports = function (argument) {\n var number = +argument;\n // eslint-disable-next-line no-self-compare -- NaN check\n return number !== number || number === 0 ? 0 : trunc(number);\n};\n","'use strict';\nvar toIntegerOrInfinity = require('../internals/to-integer-or-infinity');\n\nvar min = Math.min;\n\n// `ToLength` abstract operation\n// https://tc39.es/ecma262/#sec-tolength\nmodule.exports = function (argument) {\n var len = toIntegerOrInfinity(argument);\n return len > 0 ? min(len, 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991\n};\n","'use strict';\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\nvar test = {};\n\ntest[TO_STRING_TAG] = 'z';\n\nmodule.exports = String(test) === '[object z]';\n","'use strict';\nvar classof = require('../internals/classof');\n\nvar $String = String;\n\nmodule.exports = function (argument) {\n if (classof(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');\n return $String(argument);\n};\n","'use strict';\nvar $TypeError = TypeError;\n\nmodule.exports = function (passed, required) {\n if (passed < required) throw new $TypeError('Not enough arguments');\n return passed;\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar toObject = require('../internals/to-object');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\nvar setArrayLength = require('../internals/array-set-length');\nvar doesNotExceedSafeInteger = require('../internals/does-not-exceed-safe-integer');\nvar fails = require('../internals/fails');\n\nvar INCORRECT_TO_LENGTH = fails(function () {\n return [].push.call({ length: 0x100000000 }, 1) !== 4294967297;\n});\n\n// V8 <= 121 and Safari <= 15.4; FF < 23 throws InternalError\n// https://bugs.chromium.org/p/v8/issues/detail?id=12681\nvar properErrorOnNonWritableLength = function () {\n try {\n // eslint-disable-next-line es/no-object-defineproperty -- safe\n Object.defineProperty([], 'length', { writable: false }).push();\n } catch (error) {\n return error instanceof TypeError;\n }\n};\n\nvar FORCED = INCORRECT_TO_LENGTH || !properErrorOnNonWritableLength();\n\n// `Array.prototype.push` method\n// https://tc39.es/ecma262/#sec-array.prototype.push\n$({ target: 'Array', proto: true, arity: 1, forced: FORCED }, {\n // eslint-disable-next-line no-unused-vars -- required for `.length`\n push: function push(item) {\n var O = toObject(this);\n var len = lengthOfArrayLike(O);\n var argCount = arguments.length;\n doesNotExceedSafeInteger(len + argCount);\n for (var i = 0; i < argCount; i++) {\n O[len] = arguments[i];\n len++;\n }\n setArrayLength(O, len);\n return len;\n }\n});\n","'use strict';\nvar defineBuiltIn = require('../internals/define-built-in');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar toString = require('../internals/to-string');\nvar validateArgumentsLength = require('../internals/validate-arguments-length');\n\nvar $URLSearchParams = URLSearchParams;\nvar URLSearchParamsPrototype = $URLSearchParams.prototype;\nvar append = uncurryThis(URLSearchParamsPrototype.append);\nvar $delete = uncurryThis(URLSearchParamsPrototype['delete']);\nvar forEach = uncurryThis(URLSearchParamsPrototype.forEach);\nvar push = uncurryThis([].push);\nvar params = new $URLSearchParams('a=1&a=2&b=3');\n\nparams['delete']('a', 1);\n// `undefined` case is a Chromium 117 bug\n// https://bugs.chromium.org/p/v8/issues/detail?id=14222\nparams['delete']('b', undefined);\n\nif (params + '' !== 'a=2') {\n defineBuiltIn(URLSearchParamsPrototype, 'delete', function (name /* , value */) {\n var length = arguments.length;\n var $value = length < 2 ? undefined : arguments[1];\n if (length && $value === undefined) return $delete(this, name);\n var entries = [];\n forEach(this, function (v, k) { // also validates `this`\n push(entries, { key: k, value: v });\n });\n validateArgumentsLength(length, 1);\n var key = toString(name);\n var value = toString($value);\n var index = 0;\n var dindex = 0;\n var found = false;\n var entriesLength = entries.length;\n var entry;\n while (index < entriesLength) {\n entry = entries[index++];\n if (found || entry.key === key) {\n found = true;\n $delete(this, entry.key);\n } else dindex++;\n }\n while (dindex < entriesLength) {\n entry = entries[dindex++];\n if (!(entry.key === key && entry.value === value)) append(this, entry.key, entry.value);\n }\n }, { enumerable: true, unsafe: true });\n}\n","'use strict';\nvar defineBuiltIn = require('../internals/define-built-in');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar toString = require('../internals/to-string');\nvar validateArgumentsLength = require('../internals/validate-arguments-length');\n\nvar $URLSearchParams = URLSearchParams;\nvar URLSearchParamsPrototype = $URLSearchParams.prototype;\nvar getAll = uncurryThis(URLSearchParamsPrototype.getAll);\nvar $has = uncurryThis(URLSearchParamsPrototype.has);\nvar params = new $URLSearchParams('a=1');\n\n// `undefined` case is a Chromium 117 bug\n// https://bugs.chromium.org/p/v8/issues/detail?id=14222\nif (params.has('a', 2) || !params.has('a', undefined)) {\n defineBuiltIn(URLSearchParamsPrototype, 'has', function has(name /* , value */) {\n var length = arguments.length;\n var $value = length < 2 ? undefined : arguments[1];\n if (length && $value === undefined) return $has(this, name);\n var values = getAll(this, name); // also validates `this`\n validateArgumentsLength(length, 1);\n var value = toString($value);\n var index = 0;\n while (index < values.length) {\n if (values[index++] === value) return true;\n } return false;\n }, { enumerable: true, unsafe: true });\n}\n","'use strict';\nvar DESCRIPTORS = require('../internals/descriptors');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar defineBuiltInAccessor = require('../internals/define-built-in-accessor');\n\nvar URLSearchParamsPrototype = URLSearchParams.prototype;\nvar forEach = uncurryThis(URLSearchParamsPrototype.forEach);\n\n// `URLSearchParams.prototype.size` getter\n// https://github.com/whatwg/url/pull/734\nif (DESCRIPTORS && !('size' in URLSearchParamsPrototype)) {\n defineBuiltInAccessor(URLSearchParamsPrototype, 'size', {\n get: function size() {\n var count = 0;\n forEach(this, function () { count++; });\n return count;\n },\n configurable: true,\n enumerable: true\n });\n}\n"],"names":["render","_vm","this","_c","_self","staticClass","ref","attrs","on","$event","handleChoose","model","value","filter","shop_id","callback","$$v","$set","expression","_l","shopsList","item","key","id","name","shipping_status","nativeOn","type","indexOf","_k","keyCode","apply","arguments","is_supplier","cancel_status","after_sales_status","goods_sku_num","remoteMethod","searchLoading","external_sku_ids","options","external_sku_id","title","pno","print_status","confirmAt","_v","handleReChoose","openPrint","exportLoading","handleExport","staticStyle","directives","rawName","loading","orderList","handleSelectionChange","selectable","scopedSlots","_u","fn","scope","_s","row","participate_no","supply_participate_no","receiver_name","receiver_mobile","receiver_address_province","receiver_address_city","receiver_address_district","receiver_address_detail","items","goods_name","goods_number","waybill","status","_e","waybill_code","page","per_page","total","handleSizeChange","handleCurrentChange","showPrint","closePrint","connectStatus","tempList","fail_msg","printName","printsList","i","slot","loading1","toPrint","staticRenderFns","component","t","e","module","exports","n","r","s","u","a","o","c","f","h","d","l","$","y","M","weekdays","split","months","ordinal","m","String","length","Array","join","v","z","utcOffset","Math","abs","floor","date","year","month","clone","add","ceil","p","w","D","ms","Q","toLowerCase","replace","g","S","_","O","args","b","locale","$L","utc","$u","x","$x","$offset","parse","prototype","$d","Date","NaN","test","match","substring","UTC","init","$y","getFullYear","$M","getMonth","$D","getDate","$W","getDay","$H","getHours","$m","getMinutes","$s","getSeconds","$ms","getMilliseconds","$utils","isValid","toString","isSame","startOf","endOf","isAfter","isBefore","$g","set","unix","valueOf","getTime","toDate","slice","$locale","weekStart","min","daysInMonth","get","Number","round","subtract","format","invalidDate","meridiem","monthsShort","weekdaysMin","weekdaysShort","getTimezoneOffset","diff","toJSON","toISOString","toUTCString","k","forEach","extend","$i","isDayjs","en","Ls","data","print_order_ids","print_documents","socket","lockReconnect","timeout","timeoutObj","serverTimeoutObj","timeoutnum","defaultPrinter","taskIDArray","requestIDGetGlobalConfig","webSocket","chooseList","created","start","dayjs","end","getOrderList","getShopsList","methods","params","confirm_at_start","confirm_at_end","platOrderList","then","res","meta","catch","storeList","val","query","setTimeout","goodsSkusList","print","print_loading","$loading","lock","text","spinner","background","printOrders","documents","order_ids","close","doPrint","index","form","is_export","exportOrder","downLoadXls","$message","message","response","content","blob","Blob","today","toLocaleDateString","fileName","document","createElement","elink","download","style","display","href","URL","createObjectURL","body","appendChild","click","revokeObjectURL","removeChild","navigator","msSaveBlob","objectToQueryString","obj","Object","keys","map","encodeURIComponent","initWebSocket","State","host","that","WebSocket","onopen","console","log","readyState","getPrintList","onmessage","msg","returnData","json","eval","code","success","ids","push","printSuccess","detailinfo","errors","it","seq","detail","onclose","error","send","JSON","stringify","getPrintInfo","printObject","parameters","contents","templateUrl","encryptedData","toPrint1","printCmd","temp","tempUser","printDataUser","printData","$refs","multipleTable","clearSelection","goods","http","url","method","addGoods","checkGoods","goodsList","updateGoods","update","singleUpdate","imgUpload","Headers","getGoodsList","goodsSkuLocation","getStockNum","getGoodsFilter","addGoodsCombination","getGoodsCombination","showGoodsCombination","updateSaleStock","platGoodsList","updateSyncStatus","deletePlatGoods","syncStock","getAfterSaleOrders","responseType","exportAfterOrder","shopListId","shopAdd","downloadGoods","updateStore","syncStoreStock","shipList","ShopSenderList","shopId","shopShipId","saveSenders","orderRest","shopAddress","updateShopAddress","toIndexedObject","toAbsoluteIndex","lengthOfArrayLike","createMethod","IS_INCLUDES","$this","el","fromIndex","includes","DESCRIPTORS","isArray","$TypeError","TypeError","getOwnPropertyDescriptor","SILENT_ON_NON_WRITABLE_LENGTH_SET","undefined","defineProperty","writable","TO_STRING_TAG_SUPPORT","isCallable","classofRaw","wellKnownSymbol","TO_STRING_TAG","$Object","CORRECT_ARGUMENTS","tryGet","tag","result","callee","hasOwn","ownKeys","getOwnPropertyDescriptorModule","definePropertyModule","target","source","exceptions","makeBuiltIn","descriptor","getter","setter","MAX_SAFE_INTEGER","global","createNonEnumerableProperty","defineBuiltIn","defineGlobalProperty","copyConstructorProperties","isForced","FORCED","targetProperty","sourceProperty","TARGET","GLOBAL","STATIC","stat","dontCallGetSet","forced","sham","uncurryThis","fails","classof","propertyIsEnumerable","argument","replacement","feature","detection","normalize","POLYFILL","NATIVE","string","toLength","trunc","call","propertyIsEnumerableModule","createPropertyDescriptor","toPropertyKey","IE8_DOM_DEFINE","$getOwnPropertyDescriptor","P","internalObjectKeys","enumBugKeys","hiddenKeys","concat","getOwnPropertyNames","getOwnPropertySymbols","object","names","$propertyIsEnumerable","NASHORN_BUG","V","enumerable","getBuiltIn","getOwnPropertyNamesModule","getOwnPropertySymbolsModule","anObject","toIntegerOrInfinity","max","integer","IndexedObject","requireObjectCoercible","number","len","$String","passed","required","toObject","setArrayLength","doesNotExceedSafeInteger","INCORRECT_TO_LENGTH","properErrorOnNonWritableLength","proto","arity","argCount","validateArgumentsLength","$URLSearchParams","URLSearchParams","URLSearchParamsPrototype","append","$delete","$value","entries","entry","dindex","found","entriesLength","unsafe","getAll","$has","has","values","defineBuiltInAccessor","count","configurable"],"sourceRoot":""} \ No newline at end of file diff --git a/public/dist/js/613.5a7f6161.js b/public/dist/js/613.5a7f6161.js deleted file mode 100644 index f6d3228..0000000 --- a/public/dist/js/613.5a7f6161.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict";(self["webpackChunkerp"]=self["webpackChunkerp"]||[]).push([[613],{5199:function(t,e,a){a.r(e),a.d(e,{default:function(){return d}});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"pageBox"},[e("el-card",[e("div",{staticClass:"opaBox"},[e("el-button",{attrs:{type:"primary",icon:"el-icon-plus"},on:{click:t.handAdd}},[t._v("新增")]),e("el-button",{attrs:{type:"primary",icon:"el-icon-refresh"},on:{click:function(e){return t.syncShopStock("all")}}},[t._v("同步所有店铺库存")])],1),e("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{border:"",data:t.tableData}},[e("el-table-column",{attrs:{prop:"name",label:"店铺名称"}}),e("el-table-column",{attrs:{prop:"plat_id",label:"所属平台"}}),e("el-table-column",{attrs:{prop:"owner_id",label:"商家店铺id"}}),e("el-table-column",{attrs:{prop:"refresh_token_expires_at",label:"授权过期时间点"}}),e("el-table-column",{attrs:{label:"操作",width:"280"},scopedSlots:t._u([{key:"default",fn:function(a){return["未授权"===a.row.status?e("el-button",{attrs:{type:"danger",size:"mini"}},[e("a",{attrs:{href:a.row.authUrl,target:"_blank",rel:"noopener noreferrer"}},[t._v("授权")])]):t._e(),"已授权"===a.row.status?e("div",[e("el-button",{attrs:{type:"success",disabled:!0,size:"mini"}},[t._v(t._s(a.row.status))]),e("el-button",{attrs:{size:"mini"},on:{click:function(e){return t.download(a.row)}}},[t._v("下载商品")]),"已授权"===a.row.status?e("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(e){return t.syncShopStock(a.row.id)}}},[t._v("同步库存")]):t._e()],1):t._e(),"重新授权"===a.row.status?e("div",[e("el-button",{attrs:{type:"danger",target:"_blank",size:"mini"}},[e("a",{attrs:{href:a.row.authUrl,rel:"noopener noreferrer"}},[t._v("重新授权")])]),e("el-button",{attrs:{size:"mini"},on:{click:function(e){return t.download(a.row)}}},[t._v("下载商品")])],1):t._e(),"无需授权"===a.row.status?e("div",[e("el-button",{attrs:{type:"success",disabled:!0,size:"mini"}},[t._v(t._s(a.row.status))])],1):t._e()]}}])})],1),e("div",{staticClass:"page-pagination"},[e("el-pagination",{attrs:{"current-page":t.current_page,"page-sizes":[15,50,100],"page-size":t.per_page,layout:"total, sizes, prev, pager, next, jumper",total:t.Paginationdata.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1)],1),e("el-dialog",{attrs:{title:"新增店铺",visible:t.dialogFormVisible,"close-on-click-modal":!1,width:"500px"},on:{"update:visible":function(e){t.dialogFormVisible=e}}},[e("el-form",{ref:"form",attrs:{rules:t.rules,model:t.form,"lable-width":"80px"}},[e("el-form-item",{attrs:{label:"店铺名称"}},[e("el-input",{staticStyle:{width:"300px"},attrs:{placeholder:"输入店铺名称"},model:{value:t.form.name,callback:function(e){t.$set(t.form,"name",e)},expression:"form.name"}})],1),e("el-form-item",{attrs:{label:"店铺平台"}},[e("el-select",{attrs:{placeholder:"输入店铺平台"},model:{value:t.form.plat_id,callback:function(e){t.$set(t.form,"plat_id",e)},expression:"form.plat_id"}},t._l(t.storeId,(function(t,a){return e("el-option",{key:a,attrs:{label:t,value:a}})})),1)],1)],1),e("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e("el-button",{on:{click:function(e){t.dialogFormVisible=!1}}},[t._v("取 消")]),e("el-button",{attrs:{type:"primary"},on:{click:t.addSubmit}},[t._v("确 定")])],1)],1)],1)},n=[],o=a(9998),i={data(){return{dialogFormVisible:!1,form:{name:"",plat_id:"",ratio:"*1"},rules:{name:[{required:!0,message:"请输入店铺名称",trigger:"blur"}],plat_id:[{required:!0,message:"请选择店铺平台",trigger:"blur"}],ratio:[{required:!0,message:"请输入成本变动",trigger:"blur"}]},storeId:[],loading:!0,tableData:[],Paginationdata:{},current_page:1,per_page:15}},mounted(){this.getStoreList()},methods:{handAdd(){this.form.name="",this.form.plat_id="",this.dialogFormVisible=!0,this.getshop()},addSubmit(){const t=this.form;(0,o.$i)(t).then((t=>{200==t.status&&this.$message({type:"success",message:"添加成功"}),this.getStoreList()})),this.dialogFormVisible=!1},getStoreList(){let t={page:this.current_page,per_page:this.per_page};(0,o.nH)(t).then((t=>{this.tableData=t.data.data,this.Paginationdata=t.data.meta})),this.loading=!1},handleSizeChange(t){this.per_page=t,this.getStoreList()},handleCurrentChange(t){this.current_page=t,this.getStoreList()},getshop(){(0,o.hA)().then((t=>{this.storeId=t.data.data}))},download(t){const e=this.$loading({lock:!0,text:t.name+" 店铺商品下载中...",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.7)"});(0,o.rV)(t.id).then((t=>{e.close(),this.$message({type:"success",message:t.data.message})}))},handleCellChange(t){this.$confirm("确认修改成本变动吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((()=>{(0,o.ow)(t.id,{ratio:t.ratio}).then((t=>{this.$message({type:"info",message:t.data.message})}))}))},syncShopStock(t){let e=this.$loading({lock:!0,text:"店铺商品库存同步中...",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.7)"});(0,o._d)({shop_id:t}).then((t=>{e.close(),this.$message({type:"info",message:t.data.message})}))}}},s=i,l=a(1001),u=(0,l.Z)(s,r,n,!1,null,"9f160e6c",null),d=u.exports},9998:function(t,e,a){a.d(e,{$i:function(){return o},OV:function(){return d},Vq:function(){return c},_d:function(){return u},dT:function(){return h},hA:function(){return n},nH:function(){return i},ow:function(){return l},rV:function(){return s},tA:function(){return p}});var r=a(8430);function n(){return(0,r.Z)({url:"/api/shop_platforms",method:"get"})}function o(t){return(0,r.Z)({url:"/api/shops",method:"post",data:t})}function i(t){return(0,r.Z)({url:"/api/shops",method:"get",params:t})}function s(t){return(0,r.Z)({url:`/api/download/${t}/goods`,method:"get"})}function l(t,e){return(0,r.Z)({url:`/api/shops/${t}`,method:"patch",params:e})}function u(t){return(0,r.Z)({url:"/api/sync/shop/stock",method:"put",params:t})}function d(){return(0,r.Z)({url:"/api/shop/ship",method:"get"})}function p(t,e){return(0,r.Z)({url:"/api/shop/ship/senders",method:"get",params:{shop_id:t,shop_ship_id:e}})}function c(t){return(0,r.Z)({url:"/api/shop/ship/senders",method:"post",params:t})}function h(t){return(0,r.Z)({url:"/api/order/reset",method:"get"})}}}]); -//# sourceMappingURL=613.5a7f6161.js.map \ No newline at end of file diff --git a/public/dist/js/613.5a7f6161.js.map b/public/dist/js/613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B,EAAQV,GACpB,OAAOmC,EAAAA,EAAAA,GAAK,CACRC,IAAK,aACLC,OAAQ,OACRrC,QAER,CAEO,SAASgB,EAAUsB,GACtB,OAAOH,EAAAA,EAAAA,GAAK,CACRC,IAAK,aACLC,OAAQ,MACRC,UAER,CAGO,SAASb,EAAchD,GAC1B,OAAO0D,EAAAA,EAAAA,GAAK,CACRC,IAAM,iBAAgB3D,UACtB4D,OAAQ,OAEhB,CAEO,SAASN,EAAYtD,EAAI6D,GAC5B,OAAOH,EAAAA,EAAAA,GAAK,CACRC,IAAM,cAAa3D,IACnB4D,OAAQ,QACRC,UAER,CAEO,SAASN,EAAeM,GAC3B,OAAOH,EAAAA,EAAAA,GAAK,CACRC,IAAK,uBACLC,OAAQ,MACRC,UAER,CAEO,SAASC,IACZ,OAAOJ,EAAAA,EAAAA,GAAK,CACRC,IAAK,iBACLC,OAAQ,OAEhB,CAEO,SAASG,EAAeC,EAAQC,GACnC,OAAOP,EAAAA,EAAAA,GAAK,CACRC,IAAK,yBACLC,OAAQ,MACRC,OAAQ,CACJ,QAAWG,EACX,aAAgBC,IAG5B,CAEO,SAASC,EAAYL,GACxB,OAAOH,EAAAA,EAAAA,GAAK,CACRC,IAAK,yBACLC,OAAQ,OACRC,UAER,CAEO,SAASM,EAAUN,GACtB,OAAOH,EAAAA,EAAAA,GAAK,CACRC,IAAK,mBACLC,OAAQ,OAEhB,C","sources":["webpack://erp/./src/views/store/store.vue","webpack://erp/src/views/store/store.vue","webpack://erp/./src/views/store/store.vue?ce44","webpack://erp/./src/views/store/store.vue?8466","webpack://erp/./src/api/shop.js"],"sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"pageBox\"},[_c('el-card',[_c('div',{staticClass:\"opaBox\"},[_c('el-button',{attrs:{\"type\":\"primary\",\"icon\":\"el-icon-plus\"},on:{\"click\":_vm.handAdd}},[_vm._v(\"新增\")]),_c('el-button',{attrs:{\"type\":\"primary\",\"icon\":\"el-icon-refresh\"},on:{\"click\":function($event){return _vm.syncShopStock('all')}}},[_vm._v(\"同步所有店铺库存\")])],1),_c('el-table',{directives:[{name:\"loading\",rawName:\"v-loading\",value:(_vm.loading),expression:\"loading\"}],staticStyle:{\"width\":\"100%\"},attrs:{\"border\":\"\",\"data\":_vm.tableData}},[_c('el-table-column',{attrs:{\"prop\":\"name\",\"label\":\"店铺名称\"}}),_c('el-table-column',{attrs:{\"prop\":\"plat_id\",\"label\":\"所属平台\"}}),_c('el-table-column',{attrs:{\"prop\":\"owner_id\",\"label\":\"商家店铺id\"}}),_c('el-table-column',{attrs:{\"prop\":\"refresh_token_expires_at\",\"label\":\"授权过期时间点\"}}),_c('el-table-column',{attrs:{\"label\":\"操作\",\"width\":\"280\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [(scope.row.status === '未授权')?_c('el-button',{attrs:{\"type\":\"danger\",\"size\":\"mini\"}},[_c('a',{attrs:{\"href\":scope.row.authUrl,\"target\":\"_blank\",\"rel\":\"noopener noreferrer\"}},[_vm._v(\"授权\")])]):_vm._e(),(scope.row.status === '已授权')?_c('div',[_c('el-button',{attrs:{\"type\":\"success\",\"disabled\":true,\"size\":\"mini\"}},[_vm._v(_vm._s(scope.row.status))]),_c('el-button',{attrs:{\"size\":\"mini\"},on:{\"click\":function($event){return _vm.download(scope.row)}}},[_vm._v(\"下载商品\")]),(scope.row.status === '已授权')?_c('el-button',{attrs:{\"type\":\"primary\",\"size\":\"mini\"},on:{\"click\":function($event){return _vm.syncShopStock(scope.row.id)}}},[_vm._v(\"同步库存\")]):_vm._e()],1):_vm._e(),(scope.row.status === '重新授权')?_c('div',[_c('el-button',{attrs:{\"type\":\"danger\",\"target\":\"_blank\",\"size\":\"mini\"}},[_c('a',{attrs:{\"href\":scope.row.authUrl,\"rel\":\"noopener noreferrer\"}},[_vm._v(\"重新授权\")])]),_c('el-button',{attrs:{\"size\":\"mini\"},on:{\"click\":function($event){return _vm.download(scope.row)}}},[_vm._v(\"下载商品\")])],1):_vm._e(),(scope.row.status === '无需授权')?_c('div',[_c('el-button',{attrs:{\"type\":\"success\",\"disabled\":true,\"size\":\"mini\"}},[_vm._v(_vm._s(scope.row.status))])],1):_vm._e()]}}])})],1),_c('div',{staticClass:\"page-pagination\"},[_c('el-pagination',{attrs:{\"current-page\":_vm.current_page,\"page-sizes\":[15, 50, 100],\"page-size\":_vm.per_page,\"layout\":\"total, sizes, prev, pager, next, jumper\",\"total\":_vm.Paginationdata.total},on:{\"size-change\":_vm.handleSizeChange,\"current-change\":_vm.handleCurrentChange}})],1)],1),_c('el-dialog',{attrs:{\"title\":\"新增店铺\",\"visible\":_vm.dialogFormVisible,\"close-on-click-modal\":false,\"width\":\"500px\"},on:{\"update:visible\":function($event){_vm.dialogFormVisible=$event}}},[_c('el-form',{ref:\"form\",attrs:{\"rules\":_vm.rules,\"model\":_vm.form,\"lable-width\":\"80px\"}},[_c('el-form-item',{attrs:{\"label\":\"店铺名称\"}},[_c('el-input',{staticStyle:{\"width\":\"300px\"},attrs:{\"placeholder\":\"输入店铺名称\"},model:{value:(_vm.form.name),callback:function ($$v) {_vm.$set(_vm.form, \"name\", $$v)},expression:\"form.name\"}})],1),_c('el-form-item',{attrs:{\"label\":\"店铺平台\"}},[_c('el-select',{attrs:{\"placeholder\":\"输入店铺平台\"},model:{value:(_vm.form.plat_id),callback:function ($$v) {_vm.$set(_vm.form, \"plat_id\", $$v)},expression:\"form.plat_id\"}},_vm._l((_vm.storeId),function(item,index){return _c('el-option',{key:index,attrs:{\"label\":item,\"value\":index}})}),1)],1)],1),_c('div',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('el-button',{on:{\"click\":function($event){_vm.dialogFormVisible = false}}},[_vm._v(\"取 消\")]),_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":_vm.addSubmit}},[_vm._v(\"确 定\")])],1)],1)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n\r\n\r\n\r\n\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./store.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./store.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./store.vue?vue&type=template&id=9f160e6c&scoped=true\"\nimport script from \"./store.vue?vue&type=script&lang=js\"\nexport * from \"./store.vue?vue&type=script&lang=js\"\nimport style0 from \"./store.vue?vue&type=style&index=0&id=9f160e6c&prod&lang=scss&scoped=true\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"9f160e6c\",\n null\n \n)\n\nexport default component.exports","import http from \"@/util/http.js\";\r\n\r\n// 店铺管理页面请求\r\n\r\n// 店铺平台\r\nexport function shopListId() {\r\n return http({\r\n url: \"/api/shop_platforms\",\r\n method: \"get\",\r\n });\r\n}\r\n// 店铺新增\r\nexport function shopAdd(data) {\r\n return http({\r\n url: \"/api/shops\",\r\n method: \"post\",\r\n data,\r\n });\r\n}\r\n// 店铺列表\r\nexport function storeList(params) {\r\n return http({\r\n url: \"/api/shops\",\r\n method: \"get\",\r\n params,\r\n });\r\n}\r\n\r\n// 下载商品\r\nexport function downloadGoods(id) {\r\n return http({\r\n url: `/api/download/${id}/goods`,\r\n method: \"get\",\r\n });\r\n}\r\n\r\nexport function updateStore(id, params) {\r\n return http({\r\n url: `/api/shops/${id}`,\r\n method: \"patch\",\r\n params,\r\n });\r\n}\r\n\r\nexport function syncStoreStock(params) {\r\n return http({\r\n url: '/api/sync/shop/stock',\r\n method: \"put\",\r\n params,\r\n });\r\n}\r\n\r\nexport function shipList() {\r\n return http({\r\n url: '/api/shop/ship',\r\n method: 'get',\r\n })\r\n}\r\n\r\nexport function ShopSenderList(shopId, shopShipId) {\r\n return http({\r\n url: '/api/shop/ship/senders',\r\n method: 'get',\r\n params: {\r\n 'shop_id': shopId,\r\n 'shop_ship_id': shopShipId,\r\n }\r\n })\r\n}\r\n\r\nexport function saveSenders(params) {\r\n return http({\r\n url: '/api/shop/ship/senders',\r\n method: 'post',\r\n params\r\n })\r\n}\r\n\r\nexport function orderRest(params) {\r\n return http({\r\n url: '/api/order/reset',\r\n method: 'get',\r\n })\r\n}\r\n"],"names":["render","_vm","this","_c","_self","staticClass","attrs","on","handAdd","_v","$event","syncShopStock","directives","name","rawName","value","loading","expression","staticStyle","tableData","scopedSlots","_u","key","fn","scope","row","status","authUrl","_e","_s","download","id","current_page","per_page","Paginationdata","total","handleSizeChange","handleCurrentChange","dialogFormVisible","ref","rules","form","model","callback","$$v","$set","plat_id","_l","storeId","item","index","slot","addSubmit","staticRenderFns","data","ratio","required","message","trigger","mounted","getStoreList","methods","getshop","datas","shopAdd","then","res","$message","type","page","storeList","meta","val","shopListId","$loading","lock","text","spinner","background","downloadGoods","close","handleCellChange","$confirm","confirmButtonText","cancelButtonText","updateStore","syncStoreStock","shop_id","component","http","url","method","params","shipList","ShopSenderList","shopId","shopShipId","saveSenders","orderRest"],"sourceRoot":""} \ No newline at end of file diff --git a/public/dist/js/64.7efc004a.js b/public/dist/js/64.2db5913e.js similarity index 75% rename from public/dist/js/64.7efc004a.js rename to public/dist/js/64.2db5913e.js index 46be952..013dd27 100644 --- a/public/dist/js/64.7efc004a.js +++ b/public/dist/js/64.2db5913e.js @@ -1,2 +1,2 @@ -"use strict";(self["webpackChunkerp"]=self["webpackChunkerp"]||[]).push([[64],{1404:function(e,t,r){r.r(t),r.d(t,{default:function(){return d}});var s=function(){var e=this,t=e._self._c;return t("div",{staticClass:"pageBox"},[t("el-card",[t("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{border:"",data:e.tableData}},[t("el-table-column",{attrs:{prop:"name",label:"店铺名称"}}),t("el-table-column",{attrs:{prop:"ship.expires_at",label:"授权过期时间点"}}),t("el-table-column",{attrs:{prop:"ship.owner_id",label:"商家店铺id"}}),t("el-table-column",{attrs:{prop:"ship.owner_name",label:"商家账号名称"}}),t("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(r){return["未授权"===r.row.status?t("el-button",{attrs:{type:"danger",size:"small"}},[t("a",{attrs:{href:r.row.authUrl,target:"_blank",rel:"noopener noreferrer"}},[e._v("授权")])]):e._e(),"已授权"===r.row.status?[t("el-button",{attrs:{type:"success",disabled:!0,size:"small"}},[e._v(e._s(r.row.status))])]:e._e(),"重新授权"===r.row.status?[t("el-button",{attrs:{type:"danger",target:"_blank",size:"small"}},[t("a",{attrs:{href:r.row.authUrl,rel:"noopener noreferrer"}},[e._v("重新授权")])])]:e._e(),r.row.ship?t("el-button",{attrs:{type:"info",size:"small"},on:{click:function(t){return e.getSenders(r.row)}}},[e._v("发货信息")]):e._e()]}}])})],1)],1),t("el-dialog",{attrs:{title:"发货信息",visible:e.dialogVisible,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogVisible=t}}},[t("el-form",{ref:"sendersForm",attrs:{model:e.sendersForm,"label-width":"100px"}},[e._l(e.sendersForm.senderList,(function(r,s){return[t("div",[t("p",[e._v("发货地址 "+e._s(s+1))]),t("el-form-item",{attrs:{label:"详细地址"}},[e._v(" "+e._s(r.province)+" "+e._s(r.city)+" "+e._s(r.district)+" "+e._s(r.detail)+" ")]),t("el-form-item",{attrs:{label:"发货人",prop:"name"}},[t("el-input",{model:{value:r.name,callback:function(t){e.$set(r,"name",t)},expression:"item.name"}})],1),t("el-form-item",{attrs:{label:"手机号",prop:"mobile"}},[t("el-input",{model:{value:r.mobile,callback:function(t){e.$set(r,"mobile",t)},expression:"item.mobile"}})],1),t("el-form-item",{attrs:{label:"排序",prop:"sort"}},[t("el-input",{model:{value:r.sort,callback:function(t){e.$set(r,"sort",t)},expression:"item.sort"}})],1),t("el-form-item",{attrs:{label:"状态"}},[t("el-radio-group",{model:{value:r.status,callback:function(t){e.$set(r,"status",t)},expression:"item.status"}},[t("el-radio",{attrs:{label:1}},[e._v("启用")]),t("el-radio",{attrs:{label:0}},[e._v("停用")])],1)],1),t("el-form-item",{attrs:{label:"类型"}},[t("el-radio-group",{model:{value:r.timed_delivery_code,callback:function(t){e.$set(r,"timed_delivery_code",t)},expression:"item.timed_delivery_code"}},[t("el-radio",{attrs:{label:247}},[e._v("电商标快")]),t("el-radio",{attrs:{label:266}},[e._v("空运")])],1)],1)],1)]})),t("el-form-item",[t("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.saveSenders()}}},[e._v("保存")]),t("el-button",{on:{click:function(t){e.dialogVisible=!1}}},[e._v("取消")])],1)],2)],1)],1)},a=[],n=r(9998),o={data(){return{storeId:[],loading:!0,tableData:[],dialogVisible:!1,sendersForm:{senderList:[]}}},mounted(){this.getShipList()},methods:{getShipList(){(0,n.OV)().then((e=>{this.tableData=e.data.data})),this.loading=!1},getSenders(e){(0,n.tA)(e.id,e.ship.id).then((e=>{this.sendersForm.senderList=e.data.data,this.dialogVisible=!0}))},saveSenders(){(0,n.Vq)(this.sendersForm).then((e=>{200===e.status?this.$message.success(e.data.message):this.$message.error(e.data.message)}))}}},l=o,i=r(1001),u=(0,i.Z)(l,s,a,!1,null,"51fc0326",null),d=u.exports},9998:function(e,t,r){r.d(t,{$i:function(){return n},OV:function(){return d},Vq:function(){return c},_d:function(){return u},dT:function(){return m},hA:function(){return a},nH:function(){return o},ow:function(){return i},rV:function(){return l},tA:function(){return p}});var s=r(8430);function a(){return(0,s.Z)({url:"/api/shop_platforms",method:"get"})}function n(e){return(0,s.Z)({url:"/api/shops",method:"post",data:e})}function o(e){return(0,s.Z)({url:"/api/shops",method:"get",params:e})}function l(e){return(0,s.Z)({url:`/api/download/${e}/goods`,method:"get"})}function i(e,t){return(0,s.Z)({url:`/api/shops/${e}`,method:"patch",params:t})}function u(e){return(0,s.Z)({url:"/api/sync/shop/stock",method:"put",params:e})}function d(){return(0,s.Z)({url:"/api/shop/ship",method:"get"})}function p(e,t){return(0,s.Z)({url:"/api/shop/ship/senders",method:"get",params:{shop_id:e,shop_ship_id:t}})}function c(e){return(0,s.Z)({url:"/api/shop/ship/senders",method:"post",params:e})}function m(e){return(0,s.Z)({url:"/api/order/reset",method:"get"})}}}]); -//# sourceMappingURL=64.7efc004a.js.map \ No newline at end of file +"use strict";(self["webpackChunkerp"]=self["webpackChunkerp"]||[]).push([[64],{1404:function(e,t,r){r.r(t),r.d(t,{default:function(){return d}});var s=function(){var e=this,t=e._self._c;return t("div",{staticClass:"pageBox"},[t("el-card",[t("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{border:"",data:e.tableData}},[t("el-table-column",{attrs:{prop:"name",label:"店铺名称"}}),t("el-table-column",{attrs:{prop:"ship.expires_at",label:"授权过期时间点"}}),t("el-table-column",{attrs:{prop:"ship.owner_id",label:"商家店铺id"}}),t("el-table-column",{attrs:{prop:"ship.owner_name",label:"商家账号名称"}}),t("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(r){return["未授权"===r.row.status?t("el-button",{attrs:{type:"danger",size:"small"}},[t("a",{attrs:{href:r.row.authUrl,target:"_blank",rel:"noopener noreferrer"}},[e._v("授权")])]):e._e(),"已授权"===r.row.status?[t("el-button",{attrs:{type:"success",disabled:!0,size:"small"}},[e._v(e._s(r.row.status))])]:e._e(),"重新授权"===r.row.status?[t("el-button",{attrs:{type:"danger",target:"_blank",size:"small"}},[t("a",{attrs:{href:r.row.authUrl,rel:"noopener noreferrer"}},[e._v("重新授权")])])]:e._e(),r.row.ship?t("el-button",{attrs:{type:"info",size:"small"},on:{click:function(t){return e.getSenders(r.row)}}},[e._v("发货信息")]):e._e()]}}])})],1)],1),t("el-dialog",{attrs:{title:"发货信息",visible:e.dialogVisible,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogVisible=t}}},[t("el-form",{ref:"sendersForm",attrs:{model:e.sendersForm,"label-width":"100px"}},[e._l(e.sendersForm.senderList,(function(r,s){return[t("div",[t("p",[e._v("发货地址 "+e._s(s+1))]),t("el-form-item",{attrs:{label:"详细地址"}},[e._v(" "+e._s(r.province)+" "+e._s(r.city)+" "+e._s(r.district)+" "+e._s(r.detail)+" ")]),t("el-form-item",{attrs:{label:"发货人",prop:"name"}},[t("el-input",{model:{value:r.name,callback:function(t){e.$set(r,"name",t)},expression:"item.name"}})],1),t("el-form-item",{attrs:{label:"手机号",prop:"mobile"}},[t("el-input",{model:{value:r.mobile,callback:function(t){e.$set(r,"mobile",t)},expression:"item.mobile"}})],1),t("el-form-item",{attrs:{label:"排序",prop:"sort"}},[t("el-input",{model:{value:r.sort,callback:function(t){e.$set(r,"sort",t)},expression:"item.sort"}})],1),t("el-form-item",{attrs:{label:"状态"}},[t("el-radio-group",{model:{value:r.status,callback:function(t){e.$set(r,"status",t)},expression:"item.status"}},[t("el-radio",{attrs:{label:1}},[e._v("启用")]),t("el-radio",{attrs:{label:0}},[e._v("停用")])],1)],1),t("el-form-item",{attrs:{label:"类型"}},[t("el-radio-group",{model:{value:r.timed_delivery_code,callback:function(t){e.$set(r,"timed_delivery_code",t)},expression:"item.timed_delivery_code"}},[t("el-radio",{attrs:{label:247}},[e._v("电商标快")]),t("el-radio",{attrs:{label:266}},[e._v("空运")])],1)],1)],1)]})),t("el-form-item",[t("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.saveSenders()}}},[e._v("保存")]),t("el-button",{on:{click:function(t){e.dialogVisible=!1}}},[e._v("取消")])],1)],2)],1)],1)},a=[],n=r(9998),o={data(){return{storeId:[],loading:!0,tableData:[],dialogVisible:!1,sendersForm:{senderList:[]}}},mounted(){this.getShipList()},methods:{getShipList(){(0,n.OV)().then((e=>{this.tableData=e.data.data})),this.loading=!1},getSenders(e){(0,n.tA)(e.id,e.ship.id).then((e=>{this.sendersForm.senderList=e.data.data,this.dialogVisible=!0}))},saveSenders(){(0,n.Vq)(this.sendersForm).then((e=>{200===e.status?this.$message.success(e.data.message):this.$message.error(e.data.message)}))}}},l=o,i=r(1001),u=(0,i.Z)(l,s,a,!1,null,"51fc0326",null),d=u.exports},9998:function(e,t,r){r.d(t,{$i:function(){return n},C$:function(){return h},OV:function(){return d},Vq:function(){return c},_d:function(){return u},dT:function(){return m},hA:function(){return a},i$:function(){return f},nH:function(){return o},ow:function(){return i},rV:function(){return l},tA:function(){return p}});var s=r(8430);function a(){return(0,s.Z)({url:"/api/shop_platforms",method:"get"})}function n(e){return(0,s.Z)({url:"/api/shops",method:"post",data:e})}function o(e){return(0,s.Z)({url:"/api/shops",method:"get",params:e})}function l(e){return(0,s.Z)({url:`/api/download/${e}/goods`,method:"get"})}function i(e,t){return(0,s.Z)({url:`/api/shops/${e}`,method:"patch",params:t})}function u(e){return(0,s.Z)({url:"/api/sync/shop/stock",method:"put",params:e})}function d(){return(0,s.Z)({url:"/api/shop/ship",method:"get"})}function p(e,t){return(0,s.Z)({url:"/api/shop/ship/senders",method:"get",params:{shop_id:e,shop_ship_id:t}})}function c(e){return(0,s.Z)({url:"/api/shop/ship/senders",method:"post",params:e})}function m(e){return(0,s.Z)({url:"/api/order/reset",method:"get"})}function f(e){return(0,s.Z)({url:"/api/shop_sends",method:"get",params:e})}function h(e){return(0,s.Z)({url:"/api/shop_sends",method:"post",params:e})}}}]); +//# sourceMappingURL=64.2db5913e.js.map \ No newline at end of file diff --git a/public/dist/js/64.2db5913e.js.map b/public/dist/js/64.2db5913e.js.map new file mode 100644 index 0000000..fb13047 --- /dev/null +++ b/public/dist/js/64.2db5913e.js.map @@ -0,0 +1 @@ +{"version":3,"file":"js/64.2db5913e.js","mappings":"iJAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,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EO,SAASG,EAAeH,GAC3B,OAAOL,EAAAA,EAAAA,GAAK,CACRC,IAAK,uBACLC,OAAQ,MACRG,UAER,CAEO,SAAShB,IACZ,OAAOW,EAAAA,EAAAA,GAAK,CACRC,IAAK,iBACLC,OAAQ,OAEhB,CAEO,SAASV,EAAeiB,EAAQC,GACnC,OAAOV,EAAAA,EAAAA,GAAK,CACRC,IAAK,yBACLC,OAAQ,MACRG,OAAQ,CACJ,QAAWI,EACX,aAAgBC,IAG5B,CAEO,SAAS5B,EAAYuB,GACxB,OAAOL,EAAAA,EAAAA,GAAK,CACRC,IAAK,yBACLC,OAAQ,OACRG,UAER,CAEO,SAASM,EAAUN,GACtB,OAAOL,EAAAA,EAAAA,GAAK,CACRC,IAAK,mBACLC,OAAQ,OAEhB,CAEO,SAASU,EAAYP,GACxB,OAAOL,EAAAA,EAAAA,GAAK,CACRC,IAAK,kBACLC,OAAQ,MACRG,UAER,CAEO,SAASQ,EAAkBR,GAC9B,OAAOL,EAAAA,EAAAA,GAAK,CACRC,IAAK,kBACLC,OAAQ,OACRG,UAER,C","sources":["webpack://erp/./src/views/plat/faceSheet.vue","webpack://erp/src/views/plat/faceSheet.vue","webpack://erp/./src/views/plat/faceSheet.vue?3401","webpack://erp/./src/views/plat/faceSheet.vue?4dab","webpack://erp/./src/api/shop.js"],"sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"pageBox\"},[_c('el-card',[_c('el-table',{directives:[{name:\"loading\",rawName:\"v-loading\",value:(_vm.loading),expression:\"loading\"}],staticStyle:{\"width\":\"100%\"},attrs:{\"border\":\"\",\"data\":_vm.tableData}},[_c('el-table-column',{attrs:{\"prop\":\"name\",\"label\":\"店铺名称\"}}),_c('el-table-column',{attrs:{\"prop\":\"ship.expires_at\",\"label\":\"授权过期时间点\"}}),_c('el-table-column',{attrs:{\"prop\":\"ship.owner_id\",\"label\":\"商家店铺id\"}}),_c('el-table-column',{attrs:{\"prop\":\"ship.owner_name\",\"label\":\"商家账号名称\"}}),_c('el-table-column',{attrs:{\"label\":\"操作\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [(scope.row.status === '未授权')?_c('el-button',{attrs:{\"type\":\"danger\",\"size\":\"small\"}},[_c('a',{attrs:{\"href\":scope.row.authUrl,\"target\":\"_blank\",\"rel\":\"noopener noreferrer\"}},[_vm._v(\"授权\")])]):_vm._e(),(scope.row.status === '已授权')?[_c('el-button',{attrs:{\"type\":\"success\",\"disabled\":true,\"size\":\"small\"}},[_vm._v(_vm._s(scope.row.status))])]:_vm._e(),(scope.row.status === '重新授权')?[_c('el-button',{attrs:{\"type\":\"danger\",\"target\":\"_blank\",\"size\":\"small\"}},[_c('a',{attrs:{\"href\":scope.row.authUrl,\"rel\":\"noopener noreferrer\"}},[_vm._v(\"重新授权\")])])]:_vm._e(),(scope.row.ship)?_c('el-button',{attrs:{\"type\":\"info\",\"size\":\"small\"},on:{\"click\":function($event){return _vm.getSenders(scope.row)}}},[_vm._v(\"发货信息\")]):_vm._e()]}}])})],1)],1),_c('el-dialog',{attrs:{\"title\":\"发货信息\",\"visible\":_vm.dialogVisible,\"close-on-click-modal\":false},on:{\"update:visible\":function($event){_vm.dialogVisible=$event}}},[_c('el-form',{ref:\"sendersForm\",attrs:{\"model\":_vm.sendersForm,\"label-width\":\"100px\"}},[_vm._l((_vm.sendersForm.senderList),function(item,index){return [_c('div',[_c('p',[_vm._v(\"发货地址 \"+_vm._s(index + 1))]),_c('el-form-item',{attrs:{\"label\":\"详细地址\"}},[_vm._v(\" \"+_vm._s(item.province)+\" \"+_vm._s(item.city)+\" \"+_vm._s(item.district)+\" \"+_vm._s(item.detail)+\" \")]),_c('el-form-item',{attrs:{\"label\":\"发货人\",\"prop\":\"name\"}},[_c('el-input',{model:{value:(item.name),callback:function ($$v) {_vm.$set(item, \"name\", $$v)},expression:\"item.name\"}})],1),_c('el-form-item',{attrs:{\"label\":\"手机号\",\"prop\":\"mobile\"}},[_c('el-input',{model:{value:(item.mobile),callback:function ($$v) {_vm.$set(item, \"mobile\", $$v)},expression:\"item.mobile\"}})],1),_c('el-form-item',{attrs:{\"label\":\"排序\",\"prop\":\"sort\"}},[_c('el-input',{model:{value:(item.sort),callback:function ($$v) {_vm.$set(item, \"sort\", $$v)},expression:\"item.sort\"}})],1),_c('el-form-item',{attrs:{\"label\":\"状态\"}},[_c('el-radio-group',{model:{value:(item.status),callback:function ($$v) {_vm.$set(item, \"status\", $$v)},expression:\"item.status\"}},[_c('el-radio',{attrs:{\"label\":1}},[_vm._v(\"启用\")]),_c('el-radio',{attrs:{\"label\":0}},[_vm._v(\"停用\")])],1)],1),_c('el-form-item',{attrs:{\"label\":\"类型\"}},[_c('el-radio-group',{model:{value:(item.timed_delivery_code),callback:function ($$v) {_vm.$set(item, \"timed_delivery_code\", $$v)},expression:\"item.timed_delivery_code\"}},[_c('el-radio',{attrs:{\"label\":247}},[_vm._v(\"电商标快\")]),_c('el-radio',{attrs:{\"label\":266}},[_vm._v(\"空运\")])],1)],1)],1)]}),_c('el-form-item',[_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":function($event){return _vm.saveSenders()}}},[_vm._v(\"保存\")]),_c('el-button',{on:{\"click\":function($event){_vm.dialogVisible = false}}},[_vm._v(\"取消\")])],1)],2)],1)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n\r\n\r\n\r\n\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./faceSheet.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./faceSheet.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./faceSheet.vue?vue&type=template&id=51fc0326&scoped=true\"\nimport script from \"./faceSheet.vue?vue&type=script&lang=js\"\nexport * from \"./faceSheet.vue?vue&type=script&lang=js\"\nimport style0 from \"./faceSheet.vue?vue&type=style&index=0&id=51fc0326&prod&lang=scss&scoped=true\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"51fc0326\",\n null\n \n)\n\nexport default component.exports","import http from \"@/util/http.js\";\r\n\r\n// 店铺管理页面请求\r\n\r\n// 店铺平台\r\nexport function shopListId() {\r\n return http({\r\n url: \"/api/shop_platforms\",\r\n method: \"get\",\r\n });\r\n}\r\n// 店铺新增\r\nexport function shopAdd(data) {\r\n return http({\r\n url: \"/api/shops\",\r\n method: \"post\",\r\n data,\r\n });\r\n}\r\n// 店铺列表\r\nexport function storeList(params) {\r\n return http({\r\n url: \"/api/shops\",\r\n method: \"get\",\r\n params,\r\n });\r\n}\r\n\r\n// 下载商品\r\nexport function downloadGoods(id) {\r\n return http({\r\n url: `/api/download/${id}/goods`,\r\n method: \"get\",\r\n });\r\n}\r\n\r\nexport function updateStore(id, params) {\r\n return http({\r\n url: `/api/shops/${id}`,\r\n method: \"patch\",\r\n params,\r\n });\r\n}\r\n\r\nexport function syncStoreStock(params) {\r\n return http({\r\n url: '/api/sync/shop/stock',\r\n method: \"put\",\r\n params,\r\n });\r\n}\r\n\r\nexport function shipList() {\r\n return http({\r\n url: '/api/shop/ship',\r\n method: 'get',\r\n })\r\n}\r\n\r\nexport function ShopSenderList(shopId, shopShipId) {\r\n return http({\r\n url: '/api/shop/ship/senders',\r\n method: 'get',\r\n params: {\r\n 'shop_id': shopId,\r\n 'shop_ship_id': shopShipId,\r\n }\r\n })\r\n}\r\n\r\nexport function saveSenders(params) {\r\n return http({\r\n url: '/api/shop/ship/senders',\r\n method: 'post',\r\n params\r\n })\r\n}\r\n\r\nexport function orderRest(params) {\r\n return http({\r\n url: '/api/order/reset',\r\n method: 'get',\r\n })\r\n}\r\n\r\nexport function shopAddress(params) {\r\n return http({\r\n url: \"/api/shop_sends\",\r\n method: \"get\",\r\n params,\r\n });\r\n}\r\n\r\nexport function updateShopAddress(params) {\r\n return http({\r\n url: '/api/shop_sends',\r\n method: 'post',\r\n params\r\n })\r\n}\r\n"],"names":["render","_vm","this","_c","_self","staticClass","directives","name","rawName","value","loading","expression","staticStyle","attrs","tableData","scopedSlots","_u","key","fn","scope","row","status","authUrl","_v","_e","_s","ship","on","$event","getSenders","dialogVisible","ref","sendersForm","_l","senderList","item","index","province","city","district","detail","model","callback","$$v","$set","mobile","sort","timed_delivery_code","saveSenders","staticRenderFns","data","storeId","mounted","getShipList","methods","shipList","then","res","ShopSenderList","id","$message","success","message","error","component","shopListId","http","url","method","shopAdd","storeList","params","downloadGoods","updateStore","syncStoreStock","shopId","shopShipId","orderRest","shopAddress","updateShopAddress"],"sourceRoot":""} \ No newline at end of file diff --git a/public/dist/js/64.7efc004a.js.map b/public/dist/js/64.7efc004a.js.map deleted file mode 100644 index c842508..0000000 --- a/public/dist/js/64.7efc004a.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"js/64.7efc004a.js","mappings":"iJAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAACE,YAAY,WAAW,CAACF,EAAG,UAAU,CAACA,EAAG,WAAW,CAACG,WAAW,CAAC,CAACC,KAAK,UAAUC,QAAQ,YAAYC,MAAOR,EAAIS,QAASC,WAAW,YAAYC,YAAY,CAAC,MAAQ,QAAQC,MAAM,CAAC,OAAS,GAAG,KAAOZ,EAAIa,YAAY,CAACX,EAAG,kBAAkB,CAACU,MAAM,CAAC,KAAO,OAAO,MAAQ,UAAUV,EAAG,kBAAkB,CAACU,MAAM,CAAC,KAAO,kBAAkB,MAAQ,aAAaV,EAAG,kBAAkB,CAACU,MAAM,CAAC,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AAOL,EAAAA,EAAAA,GAAK,CACRC,IAAK,mBACLC,OAAQ,OAEhB,C","sources":["webpack://erp/./src/views/plat/faceSheet.vue","webpack://erp/src/views/plat/faceSheet.vue","webpack://erp/./src/views/plat/faceSheet.vue?3401","webpack://erp/./src/views/plat/faceSheet.vue?4dab","webpack://erp/./src/api/shop.js"],"sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"pageBox\"},[_c('el-card',[_c('el-table',{directives:[{name:\"loading\",rawName:\"v-loading\",value:(_vm.loading),expression:\"loading\"}],staticStyle:{\"width\":\"100%\"},attrs:{\"border\":\"\",\"data\":_vm.tableData}},[_c('el-table-column',{attrs:{\"prop\":\"name\",\"label\":\"店铺名称\"}}),_c('el-table-column',{attrs:{\"prop\":\"ship.expires_at\",\"label\":\"授权过期时间点\"}}),_c('el-table-column',{attrs:{\"prop\":\"ship.owner_id\",\"label\":\"商家店铺id\"}}),_c('el-table-column',{attrs:{\"prop\":\"ship.owner_name\",\"label\":\"商家账号名称\"}}),_c('el-table-column',{attrs:{\"label\":\"操作\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [(scope.row.status === '未授权')?_c('el-button',{attrs:{\"type\":\"danger\",\"size\":\"small\"}},[_c('a',{attrs:{\"href\":scope.row.authUrl,\"target\":\"_blank\",\"rel\":\"noopener noreferrer\"}},[_vm._v(\"授权\")])]):_vm._e(),(scope.row.status === '已授权')?[_c('el-button',{attrs:{\"type\":\"success\",\"disabled\":true,\"size\":\"small\"}},[_vm._v(_vm._s(scope.row.status))])]:_vm._e(),(scope.row.status === '重新授权')?[_c('el-button',{attrs:{\"type\":\"danger\",\"target\":\"_blank\",\"size\":\"small\"}},[_c('a',{attrs:{\"href\":scope.row.authUrl,\"rel\":\"noopener noreferrer\"}},[_vm._v(\"重新授权\")])])]:_vm._e(),(scope.row.ship)?_c('el-button',{attrs:{\"type\":\"info\",\"size\":\"small\"},on:{\"click\":function($event){return _vm.getSenders(scope.row)}}},[_vm._v(\"发货信息\")]):_vm._e()]}}])})],1)],1),_c('el-dialog',{attrs:{\"title\":\"发货信息\",\"visible\":_vm.dialogVisible,\"close-on-click-modal\":false},on:{\"update:visible\":function($event){_vm.dialogVisible=$event}}},[_c('el-form',{ref:\"sendersForm\",attrs:{\"model\":_vm.sendersForm,\"label-width\":\"100px\"}},[_vm._l((_vm.sendersForm.senderList),function(item,index){return [_c('div',[_c('p',[_vm._v(\"发货地址 \"+_vm._s(index + 1))]),_c('el-form-item',{attrs:{\"label\":\"详细地址\"}},[_vm._v(\" \"+_vm._s(item.province)+\" \"+_vm._s(item.city)+\" \"+_vm._s(item.district)+\" \"+_vm._s(item.detail)+\" \")]),_c('el-form-item',{attrs:{\"label\":\"发货人\",\"prop\":\"name\"}},[_c('el-input',{model:{value:(item.name),callback:function ($$v) {_vm.$set(item, \"name\", $$v)},expression:\"item.name\"}})],1),_c('el-form-item',{attrs:{\"label\":\"手机号\",\"prop\":\"mobile\"}},[_c('el-input',{model:{value:(item.mobile),callback:function ($$v) {_vm.$set(item, \"mobile\", $$v)},expression:\"item.mobile\"}})],1),_c('el-form-item',{attrs:{\"label\":\"排序\",\"prop\":\"sort\"}},[_c('el-input',{model:{value:(item.sort),callback:function ($$v) {_vm.$set(item, \"sort\", $$v)},expression:\"item.sort\"}})],1),_c('el-form-item',{attrs:{\"label\":\"状态\"}},[_c('el-radio-group',{model:{value:(item.status),callback:function ($$v) {_vm.$set(item, \"status\", $$v)},expression:\"item.status\"}},[_c('el-radio',{attrs:{\"label\":1}},[_vm._v(\"启用\")]),_c('el-radio',{attrs:{\"label\":0}},[_vm._v(\"停用\")])],1)],1),_c('el-form-item',{attrs:{\"label\":\"类型\"}},[_c('el-radio-group',{model:{value:(item.timed_delivery_code),callback:function ($$v) {_vm.$set(item, \"timed_delivery_code\", $$v)},expression:\"item.timed_delivery_code\"}},[_c('el-radio',{attrs:{\"label\":247}},[_vm._v(\"电商标快\")]),_c('el-radio',{attrs:{\"label\":266}},[_vm._v(\"空运\")])],1)],1)],1)]}),_c('el-form-item',[_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":function($event){return _vm.saveSenders()}}},[_vm._v(\"保存\")]),_c('el-button',{on:{\"click\":function($event){_vm.dialogVisible = false}}},[_vm._v(\"取消\")])],1)],2)],1)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n\r\n\r\n\r\n\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./faceSheet.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./faceSheet.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./faceSheet.vue?vue&type=template&id=51fc0326&scoped=true\"\nimport script from \"./faceSheet.vue?vue&type=script&lang=js\"\nexport * from \"./faceSheet.vue?vue&type=script&lang=js\"\nimport style0 from \"./faceSheet.vue?vue&type=style&index=0&id=51fc0326&prod&lang=scss&scoped=true\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"51fc0326\",\n null\n \n)\n\nexport default component.exports","import http from \"@/util/http.js\";\r\n\r\n// 店铺管理页面请求\r\n\r\n// 店铺平台\r\nexport function shopListId() {\r\n return http({\r\n url: \"/api/shop_platforms\",\r\n method: \"get\",\r\n });\r\n}\r\n// 店铺新增\r\nexport function shopAdd(data) {\r\n return http({\r\n url: \"/api/shops\",\r\n method: \"post\",\r\n data,\r\n });\r\n}\r\n// 店铺列表\r\nexport function storeList(params) {\r\n return http({\r\n url: \"/api/shops\",\r\n method: \"get\",\r\n params,\r\n });\r\n}\r\n\r\n// 下载商品\r\nexport function downloadGoods(id) {\r\n return http({\r\n url: `/api/download/${id}/goods`,\r\n method: \"get\",\r\n });\r\n}\r\n\r\nexport function updateStore(id, params) {\r\n return http({\r\n url: `/api/shops/${id}`,\r\n method: \"patch\",\r\n params,\r\n });\r\n}\r\n\r\nexport function syncStoreStock(params) {\r\n return http({\r\n url: '/api/sync/shop/stock',\r\n method: \"put\",\r\n params,\r\n });\r\n}\r\n\r\nexport function shipList() {\r\n return http({\r\n url: '/api/shop/ship',\r\n method: 'get',\r\n })\r\n}\r\n\r\nexport function ShopSenderList(shopId, shopShipId) {\r\n return http({\r\n url: '/api/shop/ship/senders',\r\n method: 'get',\r\n params: {\r\n 'shop_id': shopId,\r\n 'shop_ship_id': shopShipId,\r\n }\r\n })\r\n}\r\n\r\nexport function saveSenders(params) {\r\n return http({\r\n url: '/api/shop/ship/senders',\r\n method: 'post',\r\n params\r\n })\r\n}\r\n\r\nexport function orderRest(params) {\r\n return http({\r\n url: '/api/order/reset',\r\n method: 'get',\r\n })\r\n}\r\n"],"names":["render","_vm","this","_c","_self","staticClass","directives","name","rawName","value","loading","expression","staticStyle","attrs","tableData","scopedSlots","_u","key","fn","scope","row","status","authUrl","_v","_e","_s","ship","on","$event","getSenders","dialogVisible","ref","sendersForm","_l","senderList","item","index","province","city","district","detail","model","callback","$$v","$set","mobile","sort","timed_delivery_code","saveSenders","staticRenderFns","data","storeId","mounted","getShipList","methods","shipList","then","res","ShopSenderList","id","$message","success","message","error","component","shopListId","http","url","method","shopAdd","storeList","params","downloadGoods","updateStore","syncStoreStock","shopId","shopShipId","orderRest"],"sourceRoot":""} \ No newline at end of file diff --git a/public/dist/js/808.eabeec45.js b/public/dist/js/808.eabeec45.js deleted file mode 100644 index e672aff..0000000 --- a/public/dist/js/808.eabeec45.js +++ /dev/null @@ -1,2 +0,0 @@ -(self["webpackChunkerp"]=self["webpackChunkerp"]||[]).push([[808],{9770:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return p}});var n=function(){var t=this,e=t._self._c;return e("div",{staticClass:"conent"},[e("el-card",[e("el-form",{ref:"form",attrs:{inline:!0,"label-width":"90px"}},[e("el-form-item",{attrs:{label:"所属店铺:"}},[e("el-select",{attrs:{placeholder:"店铺"},on:{change:function(e){return t.handleChoose()}},model:{value:t.filter.shop_id,callback:function(e){t.$set(t.filter,"shop_id",e)},expression:"filter.shop_id"}},t._l(t.shopsList,(function(t){return e("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1)],1),e("el-form-item",{attrs:{label:"发货状态:"}},[e("el-select",{attrs:{placeholder:"发货状态"},on:{change:function(e){return t.handleChoose()}},model:{value:t.filter.shipping_status,callback:function(e){t.$set(t.filter,"shipping_status",e)},expression:"filter.shipping_status"}},[e("el-option",{attrs:{value:"",label:"全部"}}),e("el-option",{attrs:{value:"0",label:"未发货"}}),e("el-option",{attrs:{value:"2",label:"部分发货"}}),e("el-option",{attrs:{value:"1",label:"已发货"}})],1)],1),e("el-form-item",{attrs:{label:"订单类型:"}},[e("el-select",{attrs:{placeholder:"订单类型"},on:{change:function(e){return t.handleChoose()}},model:{value:t.filter.is_supplier,callback:function(e){t.$set(t.filter,"is_supplier",e)},expression:"filter.is_supplier"}},[e("el-option",{attrs:{value:"",label:"全部订单"}}),e("el-option",{attrs:{value:1,label:"自卖团订单"}}),e("el-option",{attrs:{value:0,label:"帮卖团订单"}})],1)],1),e("el-form-item",{attrs:{label:"订单状态:"}},[e("el-select",{attrs:{placeholder:"订单状态"},on:{change:function(e){return t.handleChoose()}},model:{value:t.filter.cancel_status,callback:function(e){t.$set(t.filter,"cancel_status",e)},expression:"filter.cancel_status"}},[e("el-option",{attrs:{value:"",label:"全部"}}),e("el-option",{attrs:{value:0,label:"未取消"}}),e("el-option",{attrs:{value:1,label:"已取消"}})],1)],1),e("el-form-item",{attrs:{label:"售后状态:"}},[e("el-select",{attrs:{placeholder:"售后状态"},on:{change:function(e){return t.handleChoose()}},model:{value:t.filter.after_sales_status,callback:function(e){t.$set(t.filter,"after_sales_status",e)},expression:"filter.after_sales_status"}},[e("el-option",{attrs:{value:"",label:"全部"}}),e("el-option",{attrs:{value:0,label:"未售后"}}),e("el-option",{attrs:{value:1,label:"有售后"}})],1)],1),e("el-form-item",{attrs:{label:"商品数量:"}},[e("el-select",{attrs:{placeholder:"商品数量"},on:{change:function(e){return t.handleChoose()}},model:{value:t.filter.goods_sku_num,callback:function(e){t.$set(t.filter,"goods_sku_num",e)},expression:"filter.goods_sku_num"}},[e("el-option",{attrs:{value:"",label:"全部"}}),e("el-option",{attrs:{value:1,label:"1个商品"}}),e("el-option",{attrs:{value:2,label:"2-5个商品"}}),e("el-option",{attrs:{value:6,label:"6个以上商品"}})],1)],1),e("el-form-item",{attrs:{label:"订单商品:"}},[e("el-select",{attrs:{multiple:"",filterable:"",remote:"","reserve-keyword":"",placeholder:"订单商品","remote-method":t.remoteMethod,loading:t.searchLoading},model:{value:t.filter.external_sku_ids,callback:function(e){t.$set(t.filter,"external_sku_ids",e)},expression:"filter.external_sku_ids"}},t._l(t.options,(function(t){return e("el-option",{key:t.external_sku_id,attrs:{label:t.title,value:t.external_sku_id}})})),1)],1),e("el-form-item",{attrs:{label:"下单时间:"}},[e("el-date-picker",{attrs:{type:"datetimerange","range-separator":"-","start-placeholder":"起","end-placeholder":"止",format:"yyyy-MM-dd HH:mm:ss","value-format":"yyyy-MM-dd HH:mm:ss"},on:{change:function(e){return t.handleChoose()}},model:{value:t.confirmAt,callback:function(e){t.confirmAt=e},expression:"confirmAt"}})],1),e("el-form-item",{attrs:{label:"跟团号:"}},[e("el-input",{attrs:{placeholder:"跟团号"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.handleChoose.apply(null,arguments)}},model:{value:t.filter.pno,callback:function(e){t.$set(t.filter,"pno",e)},expression:"filter.pno"}})],1),e("el-form-item",[e("el-button",{attrs:{type:"primary"},on:{click:t.handleChoose}},[t._v("筛选")]),e("el-button",{attrs:{plain:""},on:{click:t.handleReChoose}},[t._v("重置筛选")]),e("el-button",{attrs:{type:"primary"},on:{click:t.print}},[t._v("打印")]),e("el-button",{attrs:{type:"warning",loading:t.exportLoading,icon:"el-icon-download"},on:{click:t.handleExport}},[t._v("数据导出")])],1)],1)],1),e("el-card",{staticStyle:{"margin-top":"10px"}},[e("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:t.orderList,border:""},on:{"selection-change":t.handleSelectionChange}},[e("el-table-column",{attrs:{type:"selection",width:"55",align:"center"}}),e("el-table-column",{attrs:{label:"店铺名称",prop:"shop.name"}}),e("el-table-column",{attrs:{label:"跟团号",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.is_supplier?"自卖团: ":"帮卖团: ")+" "+t._s(e.row.is_supplier?e.row.participate_no:e.row.supply_participate_no)+" ")]}}])}),e("el-table-column",{attrs:{label:"收件人信息",width:"240"},scopedSlots:t._u([{key:"default",fn:function(r){return[e("p",[t._v(t._s(r.row.receiver_name)+"  "+t._s(r.row.receiver_mobile))]),e("p",[t._v(t._s(r.row.receiver_address_province)+"/"+t._s(r.row.receiver_address_city)+"/"+t._s(r.row.receiver_address_district))]),e("p",[t._v(t._s(r.row.receiver_address_detail))])]}}])}),e("el-table-column",{attrs:{prop:"shipping_status",label:"发货状态",align:"center"}}),e("el-table-column",{attrs:{prop:"cancel_status",label:"订单状态",align:"center"}}),e("el-table-column",{attrs:{prop:"after_sales_status",label:"售后状态",align:"center"}}),e("el-table-column",{attrs:{label:"商品信息",width:"380"},scopedSlots:t._u([{key:"default",fn:function(r){return t._l(r.row.items,(function(r){return e("div",{key:r.id},[t._v(" "+t._s(r.goods_name)+" "),e("span",{staticStyle:{color:"red"}},[t._v("+"+t._s(r.goods_number))])])}))}}])}),e("el-table-column",{attrs:{prop:"confirm_at",label:"下单时间",width:"150",align:"center"}})],1),e("div",{staticClass:"page-pagination"},[e("el-pagination",{attrs:{"current-page":t.page,"page-sizes":[10,50,100],"page-size":t.per_page,layout:"prev, pager, next, sizes, jumper, total",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1)],1)],1)},o=[],s=(r(560),r(8858),r(1318),r(3228),r(5522)),i=r(9998),a=r(9036),u=r(7484),l=r.n(u),c={data(){return{filter:{shop_id:"",shipping_status:"",is_supplier:"",cancel_status:0,after_sales_status:0,goods_sku_num:"",external_sku_ids:"",pno:""},loading:!1,searchLoading:!1,options:[],orderList:[],total:0,page:1,per_page:10,shopsList:[],confirmAt:[],print_order_ids:"",print_documents:[],socket:null,lockReconnect:!1,timeout:58e3,timeoutObj:null,serverTimeoutObj:null,timeoutnum:null,defaultPrinter:null,taskIDArray:[],requestIDGetGlobalConfig:"",exportLoading:!1}},created(){let t=l()().format("YYYY-MM-DD")+" 00:00:00",e=l()().format("YYYY-MM-DD")+" 23:59:59";this.confirmAt=[t,e],this.getOrderList(),this.getShopsList()},methods:{getOrderList(){this.loading=!0;let t={...this.filter,page:this.page,per_page:this.per_page,confirm_at_start:this.confirmAt?this.confirmAt[0]:"",confirm_at_end:this.confirmAt?this.confirmAt[1]:""};(0,s.lU)(t).then((t=>{this.orderList=t.data.data,this.total=t.data.meta.total,this.loading=!1})).catch((()=>{this.loading=!1}))},getShopsList(){let t={page:0,per_page:99};(0,i.nH)(t).then((t=>{this.shopsList=t.data.data}))},handleSizeChange(t){this.page=1,this.per_page=t,this.getOrderList()},handleCurrentChange(t){this.page=t,this.getOrderList()},handleChoose(){this.page=1,this.getOrderList()},handleReChoose(){this.filter={shop_id:"",shipping_status:"",is_supplier:"",cancel_status:0,after_sales_status:0,goods_sku_num:"",external_sku_ids:"",pno:""},this.page=1,this.getOrderList()},remoteMethod(t){""!==t?(this.searchLoading=!0,setTimeout((()=>{this.searchLoading=!1,(0,a.NR)(t).then((e=>{this.options=e.data.filter((e=>e.title.toLowerCase().indexOf(t.toLowerCase())>-1))}))}),200)):this.options=[]},print(){const t=this.$loading({lock:!0,text:"Loading",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.7)"});(0,s.kT)(this.filter).then((e=>{this.print_documents=e.data.documents,this.print_order_ids=e.data.order_ids,t.close(),this.doPrint()}))},handleSelectionChange(t){let e=[];t.forEach((t=>{e.push(t.id)})),this.filter.ids=e},initWebSocket(){const t="ws://127.0.0.1:5000";this.socket=new WebSocket(t),this.socket.onmessage=this.websocketonmessage,this.socket.onopen=this.websocketonopen,this.socket.onerror=this.websocketonerror,this.socket.onclose=this.websocketclose},websocketonopen(){this.start(),1===this.socket.readyState&&this.getPrinters()},start(){console.log("开启心跳");var t=this;t.timeoutObj&&clearTimeout(t.timeoutObj),t.serverTimeoutObj&&clearTimeout(t.serverTimeoutObj),t.timeoutObj=setTimeout((function(){1==t.socket.readyState||t.reconnect(),t.serverTimeoutObj=setTimeout((function(){t.socket.close()}),t.timeout)}),t.timeout)},reconnect(){var t=this;t.lockReconnect||(t.lockReconnect=!0,t.timeoutnum&&clearTimeout(t.timeoutnum),t.timeoutnum=setTimeout((function(){t.initWebSocket(),t.lockReconnect=!1}),5e3))},websocketonerror(){console.log("出现错误"),this.reconnect()},websocketonmessage(t){console.log(t),void 0!==JSON.parse(t.data).printers&&(this.defaultPrinter=JSON.parse(t.data).defaultPrinter),console.log("默认打印机"+this.defaultPrinter),"success"===JSON.parse(t.data).status&&console.log("打印就绪.."),"failed"===JSON.parse(t.data).status&&console.log("打印未就绪.."),"printed"===JSON.parse(t.data).taskStatus&&(console.log("出纸成功--打印成功"),(0,s.EB)({order_ids:this.print_order_ids}).then((t=>{console.log(t)}))),"failed"===JSON.parse(t.data).taskStatus&&console.log("打印失败!"),"canceled"===JSON.parse(t.data).taskStatus&&console.log("打印取消!"),this.reset()},reset(){var t=this;clearTimeout(t.timeoutObj),clearTimeout(t.serverTimeoutObj),t.start()},websocketsend(t){this.socket.send(t)},websocketclose(t){console.log("断开连接",t),this.reconnect()},getPrinters(){var t=this.getRequestObject("getPrinters");this.websocketsend(JSON.stringify(t))},doPrint(){var t=this.getRequestObject("print");t.task=new Object,t.task.taskID=this.getUUID(8,10),this.taskIDArray.push(t.task.taskID),this.requestIDGetGlobalConfig=t.task.taskID,t.task.preview=!1,t.task.printer=this.defaultPrinter,t.task.documents=this.print_documents,console.log(t.task.documents),this.websocketsend(JSON.stringify(t))},getRequestObject(t){var e=new Object;return e.requestID=this.getUUID(8,16),e.version="1.0",e.cmd=t,e},getUUID(t,e){var r,n,o="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),s=[];if(e=e||o.length,t)for(r=0;r{this.downLoadXls(t.data),this.$message({type:"success",message:"导出成功!"}),this.exportLoading=!1})).catch((()=>{this.exportLoading=!1}))},downLoadXls(t){const e=t,r=new Blob([e]),n=(new Date).toLocaleDateString(),o=`订单列表${n}.xlsx`;if("download"in document.createElement("a")){const t=document.createElement("a");t.download=o,t.style.display="none",t.href=URL.createObjectURL(r),document.body.appendChild(t),t.click(),URL.revokeObjectURL(t.href),document.body.removeChild(t)}else navigator.msSaveBlob(r,o)},objectToQueryString(t){return Object.keys(t).map((e=>encodeURIComponent(e)+"="+(t[e]?encodeURIComponent(t[e]):""))).join("&")}}},f=c,d=r(1001),h=(0,d.Z)(f,n,o,!1,null,"2df17226",null),p=h.exports},7484:function(t){!function(e,r){t.exports=r()}(0,(function(){"use strict";var t=1e3,e=6e4,r=36e5,n="millisecond",o="second",s="minute",i="hour",a="day",u="week",l="month",c="quarter",f="year",d="date",h="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],r=t%100;return"["+t+(e[(r-20)%10]||e[r]||e[0])+"]"}},v=function(t,e,r){var n=String(t);return!n||n.length>=e?t:""+Array(e+1-n.length).join(r)+t},_={s:v,z:function(t){var e=-t.utcOffset(),r=Math.abs(e),n=Math.floor(r/60),o=r%60;return(e<=0?"+":"-")+v(n,2,"0")+":"+v(o,2,"0")},m:function t(e,r){if(e.date()1)return t(i[0])}else{var a=e.name;y[a]=e,o=a}return!n&&o&&(b=o),o||!n&&b},O=function(t,e){if(w(t))return t.clone();var r="object"==typeof e?e:{};return r.date=t,r.args=arguments,new x(r)},S=_;S.l=$,S.i=w,S.w=function(t,e){return O(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var x=function(){function g(t){this.$L=$(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[k]=!0}var v=g.prototype;return v.parse=function(t){this.$d=function(t){var e=t.date,r=t.utc;if(null===e)return new Date(NaN);if(S.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var n=e.match(p);if(n){var o=n[2]-1||0,s=(n[7]||"0").substring(0,3);return r?new Date(Date.UTC(n[1],o,n[3]||1,n[4]||0,n[5]||0,n[6]||0,s)):new Date(n[1],o,n[3]||1,n[4]||0,n[5]||0,n[6]||0,s)}}return new Date(e)}(t),this.init()},v.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},v.$utils=function(){return S},v.isValid=function(){return!(this.$d.toString()===h)},v.isSame=function(t,e){var r=O(t);return this.startOf(e)<=r&&r<=this.endOf(e)},v.isAfter=function(t,e){return O(t)c)if(a=u[c++],a!==a)return!0}else for(;l>c;c++)if((t||c in u)&&u[c]===r)return t||c||0;return!t&&-1}};t.exports={includes:i(!0),indexOf:i(!1)}},5649:function(t,e,r){"use strict";var n=r(7697),o=r(2297),s=TypeError,i=Object.getOwnPropertyDescriptor,a=n&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=a?function(t,e){if(o(t)&&!i(t,"length").writable)throw new s("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e}},926:function(t,e,r){"use strict";var n=r(3043),o=r(9985),s=r(6648),i=r(4201),a=i("toStringTag"),u=Object,l="Arguments"===s(function(){return arguments}()),c=function(t,e){try{return t[e]}catch(r){}};t.exports=n?s:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=c(e=u(t),a))?r:l?s(e):"Object"===(n=s(e))&&o(e.callee)?"Arguments":n}},8758:function(t,e,r){"use strict";var n=r(6812),o=r(9152),s=r(2474),i=r(2560);t.exports=function(t,e,r){for(var a=o(e),u=i.f,l=s.f,c=0;cr)throw e("Maximum allowed index exceeded");return t}},2739:function(t){"use strict";t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},9989:function(t,e,r){"use strict";var n=r(9037),o=r(2474).f,s=r(5773),i=r(1880),a=r(5014),u=r(8758),l=r(5266);t.exports=function(t,e){var r,c,f,d,h,p,m=t.target,g=t.global,v=t.stat;if(c=g?n:v?n[m]||a(m,{}):n[m]&&n[m].prototype,c)for(f in e){if(h=e[f],t.dontCallGetSet?(p=o(c,f),d=p&&p.value):d=c[f],r=l(g?f:m+(v?".":"#")+f,t.forced),!r&&void 0!==d){if(typeof h==typeof d)continue;u(h,d)}(t.sham||d&&d.sham)&&s(h,"sham",!0),i(c,f,h,t)}}},4413:function(t,e,r){"use strict";var n=r(8844),o=r(3689),s=r(6648),i=Object,a=n("".split);t.exports=o((function(){return!i("z").propertyIsEnumerable(0)}))?function(t){return"String"===s(t)?a(t,""):i(t)}:i},2297:function(t,e,r){"use strict";var n=r(6648);t.exports=Array.isArray||function(t){return"Array"===n(t)}},5266:function(t,e,r){"use strict";var n=r(3689),o=r(9985),s=/#|\.prototype\./,i=function(t,e){var r=u[a(t)];return r===c||r!==l&&(o(e)?n(e):!!e)},a=i.normalize=function(t){return String(t).replace(s,".").toLowerCase()},u=i.data={},l=i.NATIVE="N",c=i.POLYFILL="P";t.exports=i},6310:function(t,e,r){"use strict";var n=r(3126);t.exports=function(t){return n(t.length)}},8828:function(t){"use strict";var e=Math.ceil,r=Math.floor;t.exports=Math.trunc||function(t){var n=+t;return(n>0?r:e)(n)}},2474:function(t,e,r){"use strict";var n=r(7697),o=r(2615),s=r(9556),i=r(5684),a=r(5290),u=r(8360),l=r(6812),c=r(8506),f=Object.getOwnPropertyDescriptor;e.f=n?f:function(t,e){if(t=a(t),e=u(e),c)try{return f(t,e)}catch(r){}if(l(t,e))return i(!o(s.f,t,e),t[e])}},2741:function(t,e,r){"use strict";var n=r(4948),o=r(2739),s=o.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,s)}},7518:function(t,e){"use strict";e.f=Object.getOwnPropertySymbols},4948:function(t,e,r){"use strict";var n=r(8844),o=r(6812),s=r(5290),i=r(4328).indexOf,a=r(7248),u=n([].push);t.exports=function(t,e){var r,n=s(t),l=0,c=[];for(r in n)!o(a,r)&&o(n,r)&&u(c,r);while(e.length>l)o(n,r=e[l++])&&(~i(c,r)||u(c,r));return c}},9556:function(t,e){"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,o=n&&!r.call({1:2},1);e.f=o?function(t){var e=n(this,t);return!!e&&e.enumerable}:r},9152:function(t,e,r){"use strict";var n=r(6058),o=r(8844),s=r(2741),i=r(7518),a=r(5027),u=o([].concat);t.exports=n("Reflect","ownKeys")||function(t){var e=s.f(a(t)),r=i.f;return r?u(e,r(t)):e}},7578:function(t,e,r){"use strict";var n=r(8700),o=Math.max,s=Math.min;t.exports=function(t,e){var r=n(t);return r<0?o(r+e,0):s(r,e)}},5290:function(t,e,r){"use strict";var n=r(4413),o=r(4684);t.exports=function(t){return n(o(t))}},8700:function(t,e,r){"use strict";var n=r(8828);t.exports=function(t){var e=+t;return e!==e||0===e?0:n(e)}},3126:function(t,e,r){"use strict";var n=r(8700),o=Math.min;t.exports=function(t){var e=n(t);return e>0?o(e,9007199254740991):0}},3043:function(t,e,r){"use strict";var n=r(4201),o=n("toStringTag"),s={};s[o]="z",t.exports="[object z]"===String(s)},4327:function(t,e,r){"use strict";var n=r(926),o=String;t.exports=function(t){if("Symbol"===n(t))throw new TypeError("Cannot convert a Symbol value to a string");return o(t)}},1500:function(t){"use strict";var e=TypeError;t.exports=function(t,r){if(t\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n\r\n \r\n 筛选\r\n 重置筛选\r\n 打印\r\n \r\n 数据导出\r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n\r\n\r\n\r\n\r\n\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./orderList.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./orderList.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./orderList.vue?vue&type=template&id=2df17226&scoped=true\"\nimport script from \"./orderList.vue?vue&type=script&lang=js\"\nexport * from \"./orderList.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"2df17226\",\n null\n \n)\n\nexport default component.exports","!function(t,e){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=e():\"function\"==typeof define&&define.amd?define(e):(t=\"undefined\"!=typeof globalThis?globalThis:t||self).dayjs=e()}(this,(function(){\"use strict\";var t=1e3,e=6e4,n=36e5,r=\"millisecond\",i=\"second\",s=\"minute\",u=\"hour\",a=\"day\",o=\"week\",c=\"month\",f=\"quarter\",h=\"year\",d=\"date\",l=\"Invalid Date\",$=/^(\\d{4})[-/]?(\\d{1,2})?[-/]?(\\d{0,2})[Tt\\s]*(\\d{1,2})?:?(\\d{1,2})?:?(\\d{1,2})?[.:]?(\\d+)?$/,y=/\\[([^\\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M={name:\"en\",weekdays:\"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday\".split(\"_\"),months:\"January_February_March_April_May_June_July_August_September_October_November_December\".split(\"_\"),ordinal:function(t){var e=[\"th\",\"st\",\"nd\",\"rd\"],n=t%100;return\"[\"+t+(e[(n-20)%10]||e[n]||e[0])+\"]\"}},m=function(t,e,n){var r=String(t);return!r||r.length>=e?t:\"\"+Array(e+1-r.length).join(n)+t},v={s:m,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return(e<=0?\"+\":\"-\")+m(r,2,\"0\")+\":\"+m(i,2,\"0\")},m:function t(e,n){if(e.date()1)return t(u[0])}else{var a=e.name;D[a]=e,i=a}return!r&&i&&(g=i),i||!r&&g},O=function(t,e){if(S(t))return t.clone();var n=\"object\"==typeof e?e:{};return n.date=t,n.args=arguments,new _(n)},b=v;b.l=w,b.i=S,b.w=function(t,e){return O(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var _=function(){function M(t){this.$L=w(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[p]=!0}var m=M.prototype;return m.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(b.u(e))return new Date;if(e instanceof Date)return new Date(e);if(\"string\"==typeof e&&!/Z$/i.test(e)){var r=e.match($);if(r){var i=r[2]-1||0,s=(r[7]||\"0\").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)}}return new Date(e)}(t),this.init()},m.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},m.$utils=function(){return b},m.isValid=function(){return!(this.$d.toString()===l)},m.isSame=function(t,e){var n=O(t);return this.startOf(e)<=n&&n<=this.endOf(e)},m.isAfter=function(t,e){return O(t) index) {\n value = O[index++];\n // eslint-disable-next-line no-self-compare -- NaN check\n if (value !== value) return true;\n // Array#indexOf ignores holes, Array#includes - not\n } else for (;length > index; index++) {\n if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;\n } return !IS_INCLUDES && -1;\n };\n};\n\nmodule.exports = {\n // `Array.prototype.includes` method\n // https://tc39.es/ecma262/#sec-array.prototype.includes\n includes: createMethod(true),\n // `Array.prototype.indexOf` method\n // https://tc39.es/ecma262/#sec-array.prototype.indexof\n indexOf: createMethod(false)\n};\n","'use strict';\nvar DESCRIPTORS = require('../internals/descriptors');\nvar isArray = require('../internals/is-array');\n\nvar $TypeError = TypeError;\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n\n// Safari < 13 does not throw an error in this case\nvar SILENT_ON_NON_WRITABLE_LENGTH_SET = DESCRIPTORS && !function () {\n // makes no sense without proper strict mode support\n if (this !== undefined) return true;\n try {\n // eslint-disable-next-line es/no-object-defineproperty -- safe\n Object.defineProperty([], 'length', { writable: false }).length = 1;\n } catch (error) {\n return error instanceof TypeError;\n }\n}();\n\nmodule.exports = SILENT_ON_NON_WRITABLE_LENGTH_SET ? function (O, length) {\n if (isArray(O) && !getOwnPropertyDescriptor(O, 'length').writable) {\n throw new $TypeError('Cannot set read only .length');\n } return O.length = length;\n} : function (O, length) {\n return O.length = length;\n};\n","'use strict';\nvar TO_STRING_TAG_SUPPORT = require('../internals/to-string-tag-support');\nvar isCallable = require('../internals/is-callable');\nvar classofRaw = require('../internals/classof-raw');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\nvar $Object = Object;\n\n// ES3 wrong here\nvar CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) === 'Arguments';\n\n// fallback for IE11 Script Access Denied error\nvar tryGet = function (it, key) {\n try {\n return it[key];\n } catch (error) { /* empty */ }\n};\n\n// getting tag from ES6+ `Object.prototype.toString`\nmodule.exports = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {\n var O, tag, result;\n return it === undefined ? 'Undefined' : it === null ? 'Null'\n // @@toStringTag case\n : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag\n // builtinTag case\n : CORRECT_ARGUMENTS ? classofRaw(O)\n // ES3 arguments fallback\n : (result = classofRaw(O)) === 'Object' && isCallable(O.callee) ? 'Arguments' : result;\n};\n","'use strict';\nvar hasOwn = require('../internals/has-own-property');\nvar ownKeys = require('../internals/own-keys');\nvar getOwnPropertyDescriptorModule = require('../internals/object-get-own-property-descriptor');\nvar definePropertyModule = require('../internals/object-define-property');\n\nmodule.exports = function (target, source, exceptions) {\n var keys = ownKeys(source);\n var defineProperty = definePropertyModule.f;\n var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i];\n if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) {\n defineProperty(target, key, getOwnPropertyDescriptor(source, key));\n }\n }\n};\n","'use strict';\nvar makeBuiltIn = require('../internals/make-built-in');\nvar defineProperty = require('../internals/object-define-property');\n\nmodule.exports = function (target, name, descriptor) {\n if (descriptor.get) makeBuiltIn(descriptor.get, name, { getter: true });\n if (descriptor.set) makeBuiltIn(descriptor.set, name, { setter: true });\n return defineProperty.f(target, name, descriptor);\n};\n","'use strict';\nvar $TypeError = TypeError;\nvar MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991\n\nmodule.exports = function (it) {\n if (it > MAX_SAFE_INTEGER) throw $TypeError('Maximum allowed index exceeded');\n return it;\n};\n","'use strict';\n// IE8- don't enum bug keys\nmodule.exports = [\n 'constructor',\n 'hasOwnProperty',\n 'isPrototypeOf',\n 'propertyIsEnumerable',\n 'toLocaleString',\n 'toString',\n 'valueOf'\n];\n","'use strict';\nvar global = require('../internals/global');\nvar getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar defineBuiltIn = require('../internals/define-built-in');\nvar defineGlobalProperty = require('../internals/define-global-property');\nvar copyConstructorProperties = require('../internals/copy-constructor-properties');\nvar isForced = require('../internals/is-forced');\n\n/*\n options.target - name of the target object\n options.global - target is the global object\n options.stat - export as static methods of target\n options.proto - export as prototype methods of target\n options.real - real prototype method for the `pure` version\n options.forced - export even if the native feature is available\n options.bind - bind methods to the target, required for the `pure` version\n options.wrap - wrap constructors to preventing global pollution, required for the `pure` version\n options.unsafe - use the simple assignment of property instead of delete + defineProperty\n options.sham - add a flag to not completely full polyfills\n options.enumerable - export as enumerable property\n options.dontCallGetSet - prevent calling a getter on target\n options.name - the .name of the function if it does not match the key\n*/\nmodule.exports = function (options, source) {\n var TARGET = options.target;\n var GLOBAL = options.global;\n var STATIC = options.stat;\n var FORCED, target, key, targetProperty, sourceProperty, descriptor;\n if (GLOBAL) {\n target = global;\n } else if (STATIC) {\n target = global[TARGET] || defineGlobalProperty(TARGET, {});\n } else {\n target = global[TARGET] && global[TARGET].prototype;\n }\n if (target) for (key in source) {\n sourceProperty = source[key];\n if (options.dontCallGetSet) {\n descriptor = getOwnPropertyDescriptor(target, key);\n targetProperty = descriptor && descriptor.value;\n } else targetProperty = target[key];\n FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);\n // contained in target\n if (!FORCED && targetProperty !== undefined) {\n if (typeof sourceProperty == typeof targetProperty) continue;\n copyConstructorProperties(sourceProperty, targetProperty);\n }\n // add a flag to not completely full polyfills\n if (options.sham || (targetProperty && targetProperty.sham)) {\n createNonEnumerableProperty(sourceProperty, 'sham', true);\n }\n defineBuiltIn(target, key, sourceProperty, options);\n }\n};\n","'use strict';\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar fails = require('../internals/fails');\nvar classof = require('../internals/classof-raw');\n\nvar $Object = Object;\nvar split = uncurryThis(''.split);\n\n// fallback for non-array-like ES3 and non-enumerable old V8 strings\nmodule.exports = fails(function () {\n // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346\n // eslint-disable-next-line no-prototype-builtins -- safe\n return !$Object('z').propertyIsEnumerable(0);\n}) ? function (it) {\n return classof(it) === 'String' ? split(it, '') : $Object(it);\n} : $Object;\n","'use strict';\nvar classof = require('../internals/classof-raw');\n\n// `IsArray` abstract operation\n// https://tc39.es/ecma262/#sec-isarray\n// eslint-disable-next-line es/no-array-isarray -- safe\nmodule.exports = Array.isArray || function isArray(argument) {\n return classof(argument) === 'Array';\n};\n","'use strict';\nvar fails = require('../internals/fails');\nvar isCallable = require('../internals/is-callable');\n\nvar replacement = /#|\\.prototype\\./;\n\nvar isForced = function (feature, detection) {\n var value = data[normalize(feature)];\n return value === POLYFILL ? true\n : value === NATIVE ? false\n : isCallable(detection) ? fails(detection)\n : !!detection;\n};\n\nvar normalize = isForced.normalize = function (string) {\n return String(string).replace(replacement, '.').toLowerCase();\n};\n\nvar data = isForced.data = {};\nvar NATIVE = isForced.NATIVE = 'N';\nvar POLYFILL = isForced.POLYFILL = 'P';\n\nmodule.exports = isForced;\n","'use strict';\nvar toLength = require('../internals/to-length');\n\n// `LengthOfArrayLike` abstract operation\n// https://tc39.es/ecma262/#sec-lengthofarraylike\nmodule.exports = function (obj) {\n return toLength(obj.length);\n};\n","'use strict';\nvar ceil = Math.ceil;\nvar floor = Math.floor;\n\n// `Math.trunc` method\n// https://tc39.es/ecma262/#sec-math.trunc\n// eslint-disable-next-line es/no-math-trunc -- safe\nmodule.exports = Math.trunc || function trunc(x) {\n var n = +x;\n return (n > 0 ? floor : ceil)(n);\n};\n","'use strict';\nvar DESCRIPTORS = require('../internals/descriptors');\nvar call = require('../internals/function-call');\nvar propertyIsEnumerableModule = require('../internals/object-property-is-enumerable');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar toPropertyKey = require('../internals/to-property-key');\nvar hasOwn = require('../internals/has-own-property');\nvar IE8_DOM_DEFINE = require('../internals/ie8-dom-define');\n\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n\n// `Object.getOwnPropertyDescriptor` method\n// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor\nexports.f = DESCRIPTORS ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {\n O = toIndexedObject(O);\n P = toPropertyKey(P);\n if (IE8_DOM_DEFINE) try {\n return $getOwnPropertyDescriptor(O, P);\n } catch (error) { /* empty */ }\n if (hasOwn(O, P)) return createPropertyDescriptor(!call(propertyIsEnumerableModule.f, O, P), O[P]);\n};\n","'use strict';\nvar internalObjectKeys = require('../internals/object-keys-internal');\nvar enumBugKeys = require('../internals/enum-bug-keys');\n\nvar hiddenKeys = enumBugKeys.concat('length', 'prototype');\n\n// `Object.getOwnPropertyNames` method\n// https://tc39.es/ecma262/#sec-object.getownpropertynames\n// eslint-disable-next-line es/no-object-getownpropertynames -- safe\nexports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {\n return internalObjectKeys(O, hiddenKeys);\n};\n","'use strict';\n// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe\nexports.f = Object.getOwnPropertySymbols;\n","'use strict';\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar hasOwn = require('../internals/has-own-property');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar indexOf = require('../internals/array-includes').indexOf;\nvar hiddenKeys = require('../internals/hidden-keys');\n\nvar push = uncurryThis([].push);\n\nmodule.exports = function (object, names) {\n var O = toIndexedObject(object);\n var i = 0;\n var result = [];\n var key;\n for (key in O) !hasOwn(hiddenKeys, key) && hasOwn(O, key) && push(result, key);\n // Don't enum bug & hidden keys\n while (names.length > i) if (hasOwn(O, key = names[i++])) {\n ~indexOf(result, key) || push(result, key);\n }\n return result;\n};\n","'use strict';\nvar $propertyIsEnumerable = {}.propertyIsEnumerable;\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n\n// Nashorn ~ JDK8 bug\nvar NASHORN_BUG = getOwnPropertyDescriptor && !$propertyIsEnumerable.call({ 1: 2 }, 1);\n\n// `Object.prototype.propertyIsEnumerable` method implementation\n// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable\nexports.f = NASHORN_BUG ? function propertyIsEnumerable(V) {\n var descriptor = getOwnPropertyDescriptor(this, V);\n return !!descriptor && descriptor.enumerable;\n} : $propertyIsEnumerable;\n","'use strict';\nvar getBuiltIn = require('../internals/get-built-in');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar getOwnPropertyNamesModule = require('../internals/object-get-own-property-names');\nvar getOwnPropertySymbolsModule = require('../internals/object-get-own-property-symbols');\nvar anObject = require('../internals/an-object');\n\nvar concat = uncurryThis([].concat);\n\n// all object keys, includes non-enumerable and symbols\nmodule.exports = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {\n var keys = getOwnPropertyNamesModule.f(anObject(it));\n var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;\n return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys;\n};\n","'use strict';\nvar toIntegerOrInfinity = require('../internals/to-integer-or-infinity');\n\nvar max = Math.max;\nvar min = Math.min;\n\n// Helper for a popular repeating case of the spec:\n// Let integer be ? ToInteger(index).\n// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).\nmodule.exports = function (index, length) {\n var integer = toIntegerOrInfinity(index);\n return integer < 0 ? max(integer + length, 0) : min(integer, length);\n};\n","'use strict';\n// toObject with fallback for non-array-like ES3 strings\nvar IndexedObject = require('../internals/indexed-object');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\n\nmodule.exports = function (it) {\n return IndexedObject(requireObjectCoercible(it));\n};\n","'use strict';\nvar trunc = require('../internals/math-trunc');\n\n// `ToIntegerOrInfinity` abstract operation\n// https://tc39.es/ecma262/#sec-tointegerorinfinity\nmodule.exports = function (argument) {\n var number = +argument;\n // eslint-disable-next-line no-self-compare -- NaN check\n return number !== number || number === 0 ? 0 : trunc(number);\n};\n","'use strict';\nvar toIntegerOrInfinity = require('../internals/to-integer-or-infinity');\n\nvar min = Math.min;\n\n// `ToLength` abstract operation\n// https://tc39.es/ecma262/#sec-tolength\nmodule.exports = function (argument) {\n var len = toIntegerOrInfinity(argument);\n return len > 0 ? min(len, 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991\n};\n","'use strict';\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\nvar test = {};\n\ntest[TO_STRING_TAG] = 'z';\n\nmodule.exports = String(test) === '[object z]';\n","'use strict';\nvar classof = require('../internals/classof');\n\nvar $String = String;\n\nmodule.exports = function (argument) {\n if (classof(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');\n return $String(argument);\n};\n","'use strict';\nvar $TypeError = TypeError;\n\nmodule.exports = function (passed, required) {\n if (passed < required) throw new $TypeError('Not enough arguments');\n return passed;\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar toObject = require('../internals/to-object');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\nvar setArrayLength = require('../internals/array-set-length');\nvar doesNotExceedSafeInteger = require('../internals/does-not-exceed-safe-integer');\nvar fails = require('../internals/fails');\n\nvar INCORRECT_TO_LENGTH = fails(function () {\n return [].push.call({ length: 0x100000000 }, 1) !== 4294967297;\n});\n\n// V8 <= 121 and Safari <= 15.4; FF < 23 throws InternalError\n// https://bugs.chromium.org/p/v8/issues/detail?id=12681\nvar properErrorOnNonWritableLength = function () {\n try {\n // eslint-disable-next-line es/no-object-defineproperty -- safe\n Object.defineProperty([], 'length', { writable: false }).push();\n } catch (error) {\n return error instanceof TypeError;\n }\n};\n\nvar FORCED = INCORRECT_TO_LENGTH || !properErrorOnNonWritableLength();\n\n// `Array.prototype.push` method\n// https://tc39.es/ecma262/#sec-array.prototype.push\n$({ target: 'Array', proto: true, arity: 1, forced: FORCED }, {\n // eslint-disable-next-line no-unused-vars -- required for `.length`\n push: function push(item) {\n var O = toObject(this);\n var len = lengthOfArrayLike(O);\n var argCount = arguments.length;\n doesNotExceedSafeInteger(len + argCount);\n for (var i = 0; i < argCount; i++) {\n O[len] = arguments[i];\n len++;\n }\n setArrayLength(O, len);\n return len;\n }\n});\n","'use strict';\nvar defineBuiltIn = require('../internals/define-built-in');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar toString = require('../internals/to-string');\nvar validateArgumentsLength = require('../internals/validate-arguments-length');\n\nvar $URLSearchParams = URLSearchParams;\nvar URLSearchParamsPrototype = $URLSearchParams.prototype;\nvar append = uncurryThis(URLSearchParamsPrototype.append);\nvar $delete = uncurryThis(URLSearchParamsPrototype['delete']);\nvar forEach = uncurryThis(URLSearchParamsPrototype.forEach);\nvar push = uncurryThis([].push);\nvar params = new $URLSearchParams('a=1&a=2&b=3');\n\nparams['delete']('a', 1);\n// `undefined` case is a Chromium 117 bug\n// https://bugs.chromium.org/p/v8/issues/detail?id=14222\nparams['delete']('b', undefined);\n\nif (params + '' !== 'a=2') {\n defineBuiltIn(URLSearchParamsPrototype, 'delete', function (name /* , value */) {\n var length = arguments.length;\n var $value = length < 2 ? undefined : arguments[1];\n if (length && $value === undefined) return $delete(this, name);\n var entries = [];\n forEach(this, function (v, k) { // also validates `this`\n push(entries, { key: k, value: v });\n });\n validateArgumentsLength(length, 1);\n var key = toString(name);\n var value = toString($value);\n var index = 0;\n var dindex = 0;\n var found = false;\n var entriesLength = entries.length;\n var entry;\n while (index < entriesLength) {\n entry = entries[index++];\n if (found || entry.key === key) {\n found = true;\n $delete(this, entry.key);\n } else dindex++;\n }\n while (dindex < entriesLength) {\n entry = entries[dindex++];\n if (!(entry.key === key && entry.value === value)) append(this, entry.key, entry.value);\n }\n }, { enumerable: true, unsafe: true });\n}\n","'use strict';\nvar defineBuiltIn = require('../internals/define-built-in');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar toString = require('../internals/to-string');\nvar validateArgumentsLength = require('../internals/validate-arguments-length');\n\nvar $URLSearchParams = URLSearchParams;\nvar URLSearchParamsPrototype = $URLSearchParams.prototype;\nvar getAll = uncurryThis(URLSearchParamsPrototype.getAll);\nvar $has = uncurryThis(URLSearchParamsPrototype.has);\nvar params = new $URLSearchParams('a=1');\n\n// `undefined` case is a Chromium 117 bug\n// https://bugs.chromium.org/p/v8/issues/detail?id=14222\nif (params.has('a', 2) || !params.has('a', undefined)) {\n defineBuiltIn(URLSearchParamsPrototype, 'has', function has(name /* , value */) {\n var length = arguments.length;\n var $value = length < 2 ? undefined : arguments[1];\n if (length && $value === undefined) return $has(this, name);\n var values = getAll(this, name); // also validates `this`\n validateArgumentsLength(length, 1);\n var value = toString($value);\n var index = 0;\n while (index < values.length) {\n if (values[index++] === value) return true;\n } return false;\n }, { enumerable: true, unsafe: true });\n}\n","'use strict';\nvar DESCRIPTORS = require('../internals/descriptors');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar defineBuiltInAccessor = require('../internals/define-built-in-accessor');\n\nvar URLSearchParamsPrototype = URLSearchParams.prototype;\nvar forEach = uncurryThis(URLSearchParamsPrototype.forEach);\n\n// `URLSearchParams.prototype.size` getter\n// https://github.com/whatwg/url/pull/734\nif (DESCRIPTORS && !('size' in URLSearchParamsPrototype)) {\n defineBuiltInAccessor(URLSearchParamsPrototype, 'size', {\n get: function size() {\n var count = 0;\n forEach(this, function () { count++; });\n return count;\n },\n configurable: true,\n enumerable: true\n });\n}\n"],"names":["render","_vm","this","_c","_self","staticClass","ref","attrs","on","$event","handleChoose","model","value","filter","shop_id","callback","$$v","$set","expression","_l","shopsList","item","key","id","name","shipping_status","is_supplier","cancel_status","after_sales_status","goods_sku_num","remoteMethod","searchLoading","external_sku_ids","options","external_sku_id","title","confirmAt","nativeOn","type","indexOf","_k","keyCode","apply","arguments","pno","_v","handleReChoose","print","exportLoading","handleExport","staticStyle","directives","rawName","loading","orderList","handleSelectionChange","scopedSlots","_u","fn","scope","_s","row","participate_no","supply_participate_no","receiver_name","receiver_mobile","receiver_address_province","receiver_address_city","receiver_address_district","receiver_address_detail","items","goods_name","goods_number","page","per_page","total","handleSizeChange","handleCurrentChange","staticRenderFns","data","print_order_ids","print_documents","socket","lockReconnect","timeout","timeoutObj","serverTimeoutObj","timeoutnum","defaultPrinter","taskIDArray","requestIDGetGlobalConfig","created","start","dayjs","format","end","getOrderList","getShopsList","methods","params","confirm_at_start","confirm_at_end","platOrderList","then","res","meta","catch","storeList","val","query","setTimeout","goodsSkusList","toLowerCase","print_loading","$loading","lock","text","spinner","background","printOrders","documents","order_ids","close","doPrint","ids","forEach","push","initWebSocket","wsuri","WebSocket","onmessage","websocketonmessage","onopen","websocketonopen","onerror","websocketonerror","onclose","websocketclose","readyState","getPrinters","console","log","self","clearTimeout","reconnect","that","e","undefined","JSON","parse","printers","status","taskStatus","printSuccess","reset","websocketsend","Data","send","request","getRequestObject","stringify","task","Object","taskID","getUUID","preview","printer","cmd","requestID","version","len","radix","i","r","chars","split","uuid","length","Math","random","join","form","is_export","exportOrder","downLoadXls","$message","message","response","content","blob","Blob","today","Date","toLocaleDateString","fileName","document","createElement","elink","download","style","display","href","URL","createObjectURL","body","appendChild","click","revokeObjectURL","removeChild","navigator","msSaveBlob","objectToQueryString","obj","keys","map","encodeURIComponent","component","t","module","exports","n","s","u","a","o","c","f","h","d","l","$","y","M","weekdays","months","ordinal","m","String","Array","v","z","utcOffset","abs","floor","date","year","month","clone","add","ceil","p","w","D","ms","Q","replace","g","S","_","O","args","b","locale","$L","utc","$u","x","$x","$offset","prototype","$d","NaN","test","match","substring","UTC","init","$y","getFullYear","$M","getMonth","$D","getDate","$W","getDay","$H","getHours","$m","getMinutes","$s","getSeconds","$ms","getMilliseconds","$utils","isValid","toString","isSame","startOf","endOf","isAfter","isBefore","$g","set","unix","valueOf","getTime","toDate","slice","$locale","weekStart","min","daysInMonth","get","Number","round","subtract","invalidDate","meridiem","monthsShort","weekdaysMin","weekdaysShort","getTimezoneOffset","diff","toJSON","toISOString","toUTCString","k","extend","$i","isDayjs","en","Ls","goods","http","url","method","addGoods","checkGoods","goodsList","updateGoods","update","singleUpdate","imgUpload","Headers","getGoodsList","goodsSkuLocation","getStockNum","getGoodsFilter","addGoodsCombination","getGoodsCombination","showGoodsCombination","updateSaleStock","platGoodsList","updateSyncStatus","deletePlatGoods","syncStock","getAfterSaleOrders","responseType","exportAfterOrder","shopListId","shopAdd","downloadGoods","updateStore","syncStoreStock","shipList","ShopSenderList","shopId","shopShipId","saveSenders","orderRest","toIndexedObject","toAbsoluteIndex","lengthOfArrayLike","createMethod","IS_INCLUDES","$this","el","fromIndex","index","includes","DESCRIPTORS","isArray","$TypeError","TypeError","getOwnPropertyDescriptor","SILENT_ON_NON_WRITABLE_LENGTH_SET","defineProperty","writable","error","TO_STRING_TAG_SUPPORT","isCallable","classofRaw","wellKnownSymbol","TO_STRING_TAG","$Object","CORRECT_ARGUMENTS","tryGet","it","tag","result","callee","hasOwn","ownKeys","getOwnPropertyDescriptorModule","definePropertyModule","target","source","exceptions","makeBuiltIn","descriptor","getter","setter","MAX_SAFE_INTEGER","global","createNonEnumerableProperty","defineBuiltIn","defineGlobalProperty","copyConstructorProperties","isForced","FORCED","targetProperty","sourceProperty","TARGET","GLOBAL","STATIC","stat","dontCallGetSet","forced","sham","uncurryThis","fails","classof","propertyIsEnumerable","argument","replacement","feature","detection","normalize","POLYFILL","NATIVE","string","toLength","trunc","call","propertyIsEnumerableModule","createPropertyDescriptor","toPropertyKey","IE8_DOM_DEFINE","$getOwnPropertyDescriptor","P","internalObjectKeys","enumBugKeys","hiddenKeys","concat","getOwnPropertyNames","getOwnPropertySymbols","object","names","$propertyIsEnumerable","NASHORN_BUG","V","enumerable","getBuiltIn","getOwnPropertyNamesModule","getOwnPropertySymbolsModule","anObject","toIntegerOrInfinity","max","integer","IndexedObject","requireObjectCoercible","number","$String","passed","required","toObject","setArrayLength","doesNotExceedSafeInteger","INCORRECT_TO_LENGTH","properErrorOnNonWritableLength","proto","arity","argCount","validateArgumentsLength","$URLSearchParams","URLSearchParams","URLSearchParamsPrototype","append","$delete","$value","entries","entry","dindex","found","entriesLength","unsafe","getAll","$has","has","values","defineBuiltInAccessor","count","configurable"],"sourceRoot":""} \ No newline at end of file diff --git a/public/dist/js/999.1bc20d27.js.map b/public/dist/js/999.1bc20d27.js.map deleted file mode 100644 index 3041488..0000000 --- a/public/dist/js/999.1bc20d27.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"js/999.1bc20d27.js","mappings":"kJAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAACE,YAAY,UAAU,CAACF,EAAG,UAAU,CAACG,MAAM,CAAC,aAAa,CAAEC,QAAS,sBAAuB,CAACJ,EAAG,UAAU,CAACK,IAAI,OAAOF,MAAM,CAAC,QAAS,EAAK,MAAQL,EAAIQ,OAAO,CAACN,EAAG,eAAe,CAACG,MAAM,CAAC,MAAQ,QAAQ,CAACH,EAAG,YAAY,CAACG,MAAM,CAAC,YAAc,MAAMI,GAAG,CAAC,OAAS,SAASC,GAAQ,OAAOV,EAAIW,cAAc,GAAGC,MAAM,CAACC,MAAOb,EAAIQ,KAAKM,QAASC,SAAS,SAAUC,GAAMhB,EAAIiB,KAAKjB,EAAIQ,KAAM,UAAWQ,EAAI,EAAEE,WAAW,iBAAiBlB,EAAImB,GAAInB,EAAIoB,OAAO,SAASC,GAAM,OAAOnB,EAAG,YAAY,CAACoB,IAAID,EAAKE,GAAGlB,MAAM,CAAC,MAAQgB,EAAKG,KAAK,MAAQH,EAAKE,KAAK,IAAG,IAAI,GAAGrB,EAAG,eAAe,CAACG,MAAM,CAAC,MAAQ,UAAU,CAACH,EAAG,WAAW,CAACG,MAAM,CAAC,YAAc,QAAQoB,SAAS,CAAC,MAAQ,SAASf,GAAQ,OAAIA,EAAOgB,KAAKC,QAAQ,QAAQ3B,EAAI4B,GAAGlB,EAAOmB,QAAQ,QAAQ,GAAGnB,EAAOY,IAAI,SAAgB,KAAYtB,EAAIW,aAAamB,MAAM,KAAMC,UAAU,GAAGnB,MAAM,CAACC,MAAOb,EAAIQ,KAAKwB,WAAYjB,SAAS,SAAUC,GAAMhB,EAAI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tB,OAAO2C,EAAAA,EAAAA,GAAK,CACRC,IAAK,mBACLC,OAAQ,OAEhB,C","sources":["webpack://erp/./src/views/plat/goodsList.vue","webpack://erp/src/views/plat/goodsList.vue","webpack://erp/./src/views/plat/goodsList.vue?6198","webpack://erp/./src/views/plat/goodsList.vue?78ff","webpack://erp/./src/api/plat.js","webpack://erp/./src/api/shop.js"],"sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"conent\"},[_c('el-card',{attrs:{\"body-style\":{ padding: '20px 20px 0 20px' }}},[_c('el-form',{ref:\"form\",attrs:{\"inline\":true,\"model\":_vm.form}},[_c('el-form-item',{attrs:{\"label\":\"店铺:\"}},[_c('el-select',{attrs:{\"placeholder\":\"店铺\"},on:{\"change\":function($event){return _vm.handleChoose()}},model:{value:(_vm.form.shop_id),callback:function ($$v) {_vm.$set(_vm.form, \"shop_id\", $$v)},expression:\"form.shop_id\"}},_vm._l((_vm.shops),function(item){return _c('el-option',{key:item.id,attrs:{\"label\":item.name,\"value\":item.id}})}),1)],1),_c('el-form-item',{attrs:{\"label\":\"商品名称:\"}},[_c('el-input',{attrs:{\"placeholder\":\"商品名称\"},nativeOn:{\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\"))return null;return _vm.handleChoose.apply(null, arguments)}},model:{value:(_vm.form.goods_name),callback:function ($$v) {_vm.$set(_vm.form, \"goods_name\", $$v)},expression:\"form.goods_name\"}})],1),_c('el-form-item',{attrs:{\"label\":\"商品编码:\"}},[_c('el-input',{attrs:{\"placeholder\":\"商品编码\"},nativeOn:{\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\"))return null;return _vm.handleChoose.apply(null, arguments)}},model:{value:(_vm.form.external_sku_id),callback:function ($$v) {_vm.$set(_vm.form, \"external_sku_id\", $$v)},expression:\"form.external_sku_id\"}})],1),_c('el-form-item',[_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":function($event){return _vm.handleChoose()}}},[_vm._v(\"筛选\")]),_c('el-button',{attrs:{\"plain\":\"\"},on:{\"click\":function($event){return _vm.handleReChoose()}}},[_vm._v(\"重置筛选\")])],1)],1)],1),_c('el-card',{staticStyle:{\"margin-top\":\"10px\"}},[_c('el-table',{directives:[{name:\"loading\",rawName:\"v-loading\",value:(_vm.loading),expression:\"loading\"}],ref:\"multipleTable\",staticStyle:{\"width\":\"100%\"},attrs:{\"data\":_vm.tableData}},[_c('el-table-column',{attrs:{\"label\":\"店铺名称\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_vm._v(\" \"+_vm._s(scope.row.shop.name)+\" \")]}}])}),_c('el-table-column',{attrs:{\"prop\":\"title\",\"label\":\"团购标题\"}}),_c('el-table-column',{attrs:{\"prop\":\"category_name\",\"label\":\"分类名称\"}}),_c('el-table-column',{attrs:{\"prop\":\"goods_name\",\"label\":\"商品名称\"}}),_c('el-table-column',{attrs:{\"prop\":\"external_sku_id\",\"label\":\"编码\"}}),_c('el-table-column',{attrs:{\"prop\":\"price_in_fen\",\"label\":\"价格\"}}),_c('el-table-column',{attrs:{\"prop\":\"created_at\",\"label\":\"下载时间\"}}),_c('el-table-column',{attrs:{\"label\":\"同步\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('el-switch',{attrs:{\"active-color\":\"#13ce66\",\"inactive-color\":\"#ff4949\",\"active-value\":1,\"inactive-value\":0,\"active-text\":\"是\",\"inactive-text\":\"否\"},on:{\"change\":function($event){return _vm.syncChange(scope.row)}},model:{value:(scope.row.is_sync),callback:function ($$v) {_vm.$set(scope.row, \"is_sync\", $$v)},expression:\"scope.row.is_sync\"}})]}}])}),_c('el-table-column',{attrs:{\"label\":\"操作\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('el-button',{directives:[{name:\"show\",rawName:\"v-show\",value:(scope.row.is_sync && scope.row.external_sku_id),expression:\"scope.row.is_sync && scope.row.external_sku_id\"}],attrs:{\"type\":\"primary\"},on:{\"click\":function($event){return _vm.syncStock(scope.row)}}},[_vm._v(\" 同步库存\")]),_c('el-button',{attrs:{\"type\":\"danger\"},on:{\"click\":function($event){return _vm.deleteGoods(scope.row)}}},[_vm._v(\"删除\")])]}}])})],1),_c('div',{staticClass:\"block\"},[_c('el-pagination',{attrs:{\"current-page\":_vm.current_page,\"page-sizes\":[15, 50, 100],\"page-size\":_vm.per_page,\"layout\":\"total, sizes, prev, pager, next, jumper\",\"total\":_vm.Paginationdata.total},on:{\"size-change\":_vm.handleSizeChange,\"current-change\":_vm.handleCurrentChange}})],1)],1)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n\r\n\r\n\r\n\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./goodsList.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./goodsList.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./goodsList.vue?vue&type=template&id=f2546c40&scoped=true\"\nimport script from \"./goodsList.vue?vue&type=script&lang=js\"\nexport * from \"./goodsList.vue?vue&type=script&lang=js\"\nimport style0 from \"./goodsList.vue?vue&type=style&index=0&id=f2546c40&prod&lang=scss&scoped=true\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"f2546c40\",\n null\n \n)\n\nexport default component.exports","import http from \"@/util/http.js\";\r\n\r\n// 平台货品列表\r\nexport function platGoodsList(params) {\r\n return http({\r\n url: \"/api/plat_goods\",\r\n method: \"get\",\r\n params,\r\n });\r\n}\r\n\r\nexport function updateSyncStatus(id, params) {\r\n return http({\r\n url: \"/api/plat_goods/\" + id,\r\n method: \"patch\",\r\n params,\r\n });\r\n}\r\n\r\nexport function deletePlatGoods(id) {\r\n return http({\r\n url: \"/api/plat_goods/\" + id,\r\n method: \"delete\",\r\n });\r\n}\r\n\r\nexport function syncStock(id) {\r\n return http({\r\n url: \"/api/plat/sync/\" + id + \"/stock/\",\r\n method: \"post\",\r\n });\r\n}\r\n\r\nexport function activityList(shopId) {\r\n return http({\r\n url: \"/api/plat_group_activity/\" + shopId,\r\n method: \"get\",\r\n });\r\n}\r\n\r\n// 平台订单列表\r\nexport function platOrderList(params) {\r\n return http({\r\n url: \"/api/plat_orders\",\r\n method: \"get\",\r\n params\r\n });\r\n}\r\n\r\nexport function platOrderExport(params) {\r\n return http({\r\n url: \"/plat_orders/export\",\r\n method: \"get\",\r\n params,\r\n });\r\n}\r\n\r\nexport function printOrders(params) {\r\n return http({\r\n url: \"/api/print/orders\",\r\n method: \"get\",\r\n params\r\n });\r\n}\r\n\r\nexport function printSuccess(params) {\r\n return http({\r\n url: \"/api/print/success\",\r\n method: \"put\",\r\n params\r\n });\r\n}\r\n\r\nexport function getAfterSaleOrders(params) {\r\n return http({\r\n url: \"/api/plat_after_sale_orders\",\r\n method: \"get\",\r\n params\r\n })\r\n}\r\n\r\nexport function exportOrder(params) {\r\n return http({\r\n url: \"/api/plat_orders\",\r\n method: \"get\",\r\n params,\r\n responseType: 'blob'\r\n })\r\n}\r\n\r\nexport function exportAfterOrder(params) {\r\n return http({\r\n url: \"/api/plat_after_sale_orders\",\r\n method: \"get\",\r\n params,\r\n responseType: 'blob'\r\n })\r\n}\r\n","import http from \"@/util/http.js\";\r\n\r\n// 店铺管理页面请求\r\n\r\n// 店铺平台\r\nexport function shopListId() {\r\n return http({\r\n url: \"/api/shop_platforms\",\r\n method: \"get\",\r\n });\r\n}\r\n// 店铺新增\r\nexport function shopAdd(data) {\r\n return http({\r\n url: \"/api/shops\",\r\n method: \"post\",\r\n data,\r\n });\r\n}\r\n// 店铺列表\r\nexport function storeList(params) {\r\n return http({\r\n url: \"/api/shops\",\r\n method: \"get\",\r\n params,\r\n });\r\n}\r\n\r\n// 下载商品\r\nexport function downloadGoods(id) {\r\n return http({\r\n url: `/api/download/${id}/goods`,\r\n method: \"get\",\r\n });\r\n}\r\n\r\nexport function updateStore(id, params) {\r\n return http({\r\n url: `/api/shops/${id}`,\r\n method: \"patch\",\r\n params,\r\n });\r\n}\r\n\r\nexport function syncStoreStock(params) {\r\n return http({\r\n url: '/api/sync/shop/stock',\r\n method: \"put\",\r\n params,\r\n });\r\n}\r\n\r\nexport function shipList() {\r\n return http({\r\n url: '/api/shop/ship',\r\n method: 'get',\r\n })\r\n}\r\n\r\nexport function ShopSenderList(shopId, shopShipId) {\r\n return http({\r\n url: '/api/shop/ship/senders',\r\n method: 'get',\r\n params: {\r\n 'shop_id': shopId,\r\n 'shop_ship_id': shopShipId,\r\n }\r\n })\r\n}\r\n\r\nexport function saveSenders(params) {\r\n return http({\r\n url: '/api/shop/ship/senders',\r\n method: 'post',\r\n params\r\n })\r\n}\r\n\r\nexport function orderRest(params) {\r\n return http({\r\n url: '/api/order/reset',\r\n method: 'get',\r\n })\r\n}\r\n"],"names":["render","_vm","this","_c","_self","staticClass","attrs","padding","ref","form","on","$event","handleChoose","model","value","shop_id","callback","$$v","$set","expression","_l","shops","item","key","id","name","nativeOn","type","indexOf","_k","keyCode","apply","arguments","goods_name","external_sku_id","_v","handleReChoose","staticStyle","directives","rawName","loading","tableData","scopedSlots","_u","fn","scope","_s","row","shop","syncChange","is_sync","syncStock","deleteGoods","current_page","per_page","Paginationdata","total","handleSizeChange","handleCurrentChange","staticRenderFns","data","mounted","getPlatGoodsList","getShopsList","methods","params","page","platGoodsList","then","res","meta","storeList","val","newObj","filterParams","obj","_newPar","toString","replace","rowData","updateSyncStatus","status","$message","message","error","errorMessage","$alert","showCancelButton","cancelButtonText","confirmButtonText","action","deletePlatGoods","beforeUpload","loadingModule","$loading","lock","text","spinner","background","uploadSuccess","response","close","uploadError","err","handleExport","window","open","component","http","url","method","platOrderList","printOrders","printSuccess","getAfterSaleOrders","exportOrder","responseType","exportAfterOrder","shopListId","shopAdd","downloadGoods","updateStore","syncStoreStock","shipList","ShopSenderList","shopId","shopShipId","saveSenders","orderRest"],"sourceRoot":""} \ No newline at end of file diff --git a/public/dist/js/999.1bc20d27.js b/public/dist/js/999.7767bffa.js similarity index 71% rename from public/dist/js/999.1bc20d27.js rename to public/dist/js/999.7767bffa.js index 3ac238a..04388fc 100644 --- a/public/dist/js/999.1bc20d27.js +++ b/public/dist/js/999.7767bffa.js @@ -1,2 +1,2 @@ -"use strict";(self["webpackChunkerp"]=self["webpackChunkerp"]||[]).push([[999],{6784:function(e,t,n){n.r(t),n.d(t,{default:function(){return p}});var a=function(){var e=this,t=e._self._c;return t("div",{staticClass:"conent"},[t("el-card",{attrs:{"body-style":{padding:"20px 20px 0 20px"}}},[t("el-form",{ref:"form",attrs:{inline:!0,model:e.form}},[t("el-form-item",{attrs:{label:"店铺:"}},[t("el-select",{attrs:{placeholder:"店铺"},on:{change:function(t){return e.handleChoose()}},model:{value:e.form.shop_id,callback:function(t){e.$set(e.form,"shop_id",t)},expression:"form.shop_id"}},e._l(e.shops,(function(e){return t("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1),t("el-form-item",{attrs:{label:"商品名称:"}},[t("el-input",{attrs:{placeholder:"商品名称"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleChoose.apply(null,arguments)}},model:{value:e.form.goods_name,callback:function(t){e.$set(e.form,"goods_name",t)},expression:"form.goods_name"}})],1),t("el-form-item",{attrs:{label:"商品编码:"}},[t("el-input",{attrs:{placeholder:"商品编码"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleChoose.apply(null,arguments)}},model:{value:e.form.external_sku_id,callback:function(t){e.$set(e.form,"external_sku_id",t)},expression:"form.external_sku_id"}})],1),t("el-form-item",[t("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.handleChoose()}}},[e._v("筛选")]),t("el-button",{attrs:{plain:""},on:{click:function(t){return e.handleReChoose()}}},[e._v("重置筛选")])],1)],1)],1),t("el-card",{staticStyle:{"margin-top":"10px"}},[t("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:e.tableData}},[t("el-table-column",{attrs:{label:"店铺名称"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.shop.name)+" ")]}}])}),t("el-table-column",{attrs:{prop:"title",label:"团购标题"}}),t("el-table-column",{attrs:{prop:"category_name",label:"分类名称"}}),t("el-table-column",{attrs:{prop:"goods_name",label:"商品名称"}}),t("el-table-column",{attrs:{prop:"external_sku_id",label:"编码"}}),t("el-table-column",{attrs:{prop:"price_in_fen",label:"价格"}}),t("el-table-column",{attrs:{prop:"created_at",label:"下载时间"}}),t("el-table-column",{attrs:{label:"同步"},scopedSlots:e._u([{key:"default",fn:function(n){return[t("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0,"active-text":"是","inactive-text":"否"},on:{change:function(t){return e.syncChange(n.row)}},model:{value:n.row.is_sync,callback:function(t){e.$set(n.row,"is_sync",t)},expression:"scope.row.is_sync"}})]}}])}),t("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(n){return[t("el-button",{directives:[{name:"show",rawName:"v-show",value:n.row.is_sync&&n.row.external_sku_id,expression:"scope.row.is_sync && scope.row.external_sku_id"}],attrs:{type:"primary"},on:{click:function(t){return e.syncStock(n.row)}}},[e._v(" 同步库存")]),t("el-button",{attrs:{type:"danger"},on:{click:function(t){return e.deleteGoods(n.row)}}},[e._v("删除")])]}}])})],1),t("div",{staticClass:"block"},[t("el-pagination",{attrs:{"current-page":e.current_page,"page-sizes":[15,50,100],"page-size":e.per_page,layout:"total, sizes, prev, pager, next, jumper",total:e.Paginationdata.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1)],1)],1)},r=[],o=n(5522),s=n(9998),i={data(){return{form:{external_sku_id:"",goods_name:"",shop_id:""},loading:!0,tableData:[],Paginationdata:{},current_page:1,per_page:15,shops:[]}},mounted(){this.getPlatGoodsList(),this.getShopsList()},methods:{getPlatGoodsList(e={}){e.page=this.current_page,e.per_page=this.per_page,(0,o.mr)(e).then((e=>{this.tableData=e.data.data,this.Paginationdata=e.data.meta}))},getShopsList(){let e={page:0,per_page:999};(0,s.nH)(e).then((e=>{this.shops=e.data.data})),this.loading=!1},handleSizeChange(e){this.current_page=1,this.per_page=e,this.getPlatGoodsList()},handleCurrentChange(e){this.current_page=e,this.getPlatGoodsList()},handleChoose(){this.form={...this.form,page:1,per_page:this.per_page};const e=t(this.form);function t(e){const t={};for(const n in e)0!==e[n]&&!e[n]||""===e[n].toString().replace(/(^\s*)|(\s*$)/g,"")||(t[n]=e[n]);return t}this.getPlatGoodsList(e)},handleReChoose(){this.form={external_sku_id:"",goods_name:"",shop_id:""},this.getPlatGoodsList()},syncChange(e){(0,o.Rh)(e.id,{is_sync:e.is_sync}).then((e=>{200===e.status?this.$message({message:e.data.message,type:"success"}):this.$message.error(e.data.errorMessage)}))},deleteGoods(e){this.$alert(e.shop.name+" 店铺下载的 "+e.goods_name,"确认从系统删除?",{showCancelButton:!0,cancelButtonText:"取消",confirmButtonText:"确定",callback:t=>{"confirm"===t&&(0,o.g4)(e.id).then((e=>{200===e.status?(this.getPlatGoodsList(),this.$message({message:e.data.message,type:"success"})):this.$message.error(e.data.errorMessage)}))}})},syncStock(e){this.$alert(e.shop.name+" 店铺下的 "+e.goods_name,"确认同步库存?",{showCancelButton:!0,cancelButtonText:"取消",confirmButtonText:"确定",callback:t=>{"confirm"===t&&(0,o.YQ)(e.id).then((e=>{this.$message({message:200===e.status?e.data.message:e.data.errorMessage})}))}})},beforeUpload(){this.loadingModule=this.$loading({lock:!0,text:"表格导入中...",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.7)"})},uploadSuccess(e){this.$message({message:e.message,type:"success"}),this.loadingModule.close()},uploadError(e){this.$message({message:e.errorMessage,type:"error"}),this.loadingModule.close()},handleExport(){window.open("/today_price/export")}}},l=i,u=n(1001),c=(0,u.Z)(l,a,r,!1,null,"f2546c40",null),p=c.exports},5522:function(e,t,n){n.d(t,{EB:function(){return c},Hf:function(){return p},Rh:function(){return o},YQ:function(){return i},_:function(){return d},cb:function(){return h},g4:function(){return s},kT:function(){return u},lU:function(){return l},mr:function(){return r}});var a=n(8430);function r(e){return(0,a.Z)({url:"/api/plat_goods",method:"get",params:e})}function o(e,t){return(0,a.Z)({url:"/api/plat_goods/"+e,method:"patch",params:t})}function s(e){return(0,a.Z)({url:"/api/plat_goods/"+e,method:"delete"})}function i(e){return(0,a.Z)({url:"/api/plat/sync/"+e+"/stock/",method:"post"})}function l(e){return(0,a.Z)({url:"/api/plat_orders",method:"get",params:e})}function u(e){return(0,a.Z)({url:"/api/print/orders",method:"get",params:e})}function c(e){return(0,a.Z)({url:"/api/print/success",method:"put",params:e})}function p(e){return(0,a.Z)({url:"/api/plat_after_sale_orders",method:"get",params:e})}function d(e){return(0,a.Z)({url:"/api/plat_orders",method:"get",params:e,responseType:"blob"})}function h(e){return(0,a.Z)({url:"/api/plat_after_sale_orders",method:"get",params:e,responseType:"blob"})}},9998:function(e,t,n){n.d(t,{$i:function(){return o},OV:function(){return c},Vq:function(){return d},_d:function(){return u},dT:function(){return h},hA:function(){return r},nH:function(){return s},ow:function(){return l},rV:function(){return i},tA:function(){return p}});var a=n(8430);function r(){return(0,a.Z)({url:"/api/shop_platforms",method:"get"})}function o(e){return(0,a.Z)({url:"/api/shops",method:"post",data:e})}function s(e){return(0,a.Z)({url:"/api/shops",method:"get",params:e})}function i(e){return(0,a.Z)({url:`/api/download/${e}/goods`,method:"get"})}function l(e,t){return(0,a.Z)({url:`/api/shops/${e}`,method:"patch",params:t})}function u(e){return(0,a.Z)({url:"/api/sync/shop/stock",method:"put",params:e})}function c(){return(0,a.Z)({url:"/api/shop/ship",method:"get"})}function p(e,t){return(0,a.Z)({url:"/api/shop/ship/senders",method:"get",params:{shop_id:e,shop_ship_id:t}})}function d(e){return(0,a.Z)({url:"/api/shop/ship/senders",method:"post",params:e})}function h(e){return(0,a.Z)({url:"/api/order/reset",method:"get"})}}}]); -//# sourceMappingURL=999.1bc20d27.js.map \ No newline at end of file +"use strict";(self["webpackChunkerp"]=self["webpackChunkerp"]||[]).push([[999],{6784:function(e,t,n){n.r(t),n.d(t,{default:function(){return p}});var r=function(){var e=this,t=e._self._c;return t("div",{staticClass:"conent"},[t("el-card",{attrs:{"body-style":{padding:"20px 20px 0 20px"}}},[t("el-form",{ref:"form",attrs:{inline:!0,model:e.form}},[t("el-form-item",{attrs:{label:"店铺:"}},[t("el-select",{attrs:{placeholder:"店铺"},on:{change:function(t){return e.handleChoose()}},model:{value:e.form.shop_id,callback:function(t){e.$set(e.form,"shop_id",t)},expression:"form.shop_id"}},e._l(e.shops,(function(e){return t("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1),t("el-form-item",{attrs:{label:"商品名称:"}},[t("el-input",{attrs:{placeholder:"商品名称"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleChoose.apply(null,arguments)}},model:{value:e.form.goods_name,callback:function(t){e.$set(e.form,"goods_name",t)},expression:"form.goods_name"}})],1),t("el-form-item",{attrs:{label:"商品编码:"}},[t("el-input",{attrs:{placeholder:"商品编码"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleChoose.apply(null,arguments)}},model:{value:e.form.external_sku_id,callback:function(t){e.$set(e.form,"external_sku_id",t)},expression:"form.external_sku_id"}})],1),t("el-form-item",[t("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.handleChoose()}}},[e._v("筛选")]),t("el-button",{attrs:{plain:""},on:{click:function(t){return e.handleReChoose()}}},[e._v("重置筛选")])],1)],1)],1),t("el-card",{staticStyle:{"margin-top":"10px"}},[t("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:e.tableData}},[t("el-table-column",{attrs:{label:"店铺名称"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.shop.name)+" ")]}}])}),t("el-table-column",{attrs:{prop:"title",label:"团购标题"}}),t("el-table-column",{attrs:{prop:"category_name",label:"分类名称"}}),t("el-table-column",{attrs:{prop:"goods_name",label:"商品名称"}}),t("el-table-column",{attrs:{prop:"external_sku_id",label:"编码"}}),t("el-table-column",{attrs:{prop:"price_in_fen",label:"价格"}}),t("el-table-column",{attrs:{prop:"created_at",label:"下载时间"}}),t("el-table-column",{attrs:{label:"同步"},scopedSlots:e._u([{key:"default",fn:function(n){return[t("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0,"active-text":"是","inactive-text":"否"},on:{change:function(t){return e.syncChange(n.row)}},model:{value:n.row.is_sync,callback:function(t){e.$set(n.row,"is_sync",t)},expression:"scope.row.is_sync"}})]}}])}),t("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(n){return[t("el-button",{directives:[{name:"show",rawName:"v-show",value:n.row.is_sync&&n.row.external_sku_id,expression:"scope.row.is_sync && scope.row.external_sku_id"}],attrs:{type:"primary"},on:{click:function(t){return e.syncStock(n.row)}}},[e._v(" 同步库存")]),t("el-button",{attrs:{type:"danger"},on:{click:function(t){return e.deleteGoods(n.row)}}},[e._v("删除")])]}}])})],1),t("div",{staticClass:"block"},[t("el-pagination",{attrs:{"current-page":e.current_page,"page-sizes":[15,50,100],"page-size":e.per_page,layout:"total, sizes, prev, pager, next, jumper",total:e.Paginationdata.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1)],1)],1)},a=[],o=n(5522),s=n(9998),i={data(){return{form:{external_sku_id:"",goods_name:"",shop_id:""},loading:!0,tableData:[],Paginationdata:{},current_page:1,per_page:15,shops:[]}},mounted(){this.getPlatGoodsList(),this.getShopsList()},methods:{getPlatGoodsList(e={}){e.page=this.current_page,e.per_page=this.per_page,(0,o.mr)(e).then((e=>{this.tableData=e.data.data,this.Paginationdata=e.data.meta}))},getShopsList(){let e={page:0,per_page:999};(0,s.nH)(e).then((e=>{this.shops=e.data.data})),this.loading=!1},handleSizeChange(e){this.current_page=1,this.per_page=e,this.getPlatGoodsList()},handleCurrentChange(e){this.current_page=e,this.getPlatGoodsList()},handleChoose(){this.form={...this.form,page:1,per_page:this.per_page};const e=t(this.form);function t(e){const t={};for(const n in e)0!==e[n]&&!e[n]||""===e[n].toString().replace(/(^\s*)|(\s*$)/g,"")||(t[n]=e[n]);return t}this.getPlatGoodsList(e)},handleReChoose(){this.form={external_sku_id:"",goods_name:"",shop_id:""},this.getPlatGoodsList()},syncChange(e){(0,o.Rh)(e.id,{is_sync:e.is_sync}).then((e=>{200===e.status?this.$message({message:e.data.message,type:"success"}):this.$message.error(e.data.errorMessage)}))},deleteGoods(e){this.$alert(e.shop.name+" 店铺下载的 "+e.goods_name,"确认从系统删除?",{showCancelButton:!0,cancelButtonText:"取消",confirmButtonText:"确定",callback:t=>{"confirm"===t&&(0,o.g4)(e.id).then((e=>{200===e.status?(this.getPlatGoodsList(),this.$message({message:e.data.message,type:"success"})):this.$message.error(e.data.errorMessage)}))}})},syncStock(e){this.$alert(e.shop.name+" 店铺下的 "+e.goods_name,"确认同步库存?",{showCancelButton:!0,cancelButtonText:"取消",confirmButtonText:"确定",callback:t=>{"confirm"===t&&(0,o.YQ)(e.id).then((e=>{this.$message({message:200===e.status?e.data.message:e.data.errorMessage})}))}})},beforeUpload(){this.loadingModule=this.$loading({lock:!0,text:"表格导入中...",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.7)"})},uploadSuccess(e){this.$message({message:e.message,type:"success"}),this.loadingModule.close()},uploadError(e){this.$message({message:e.errorMessage,type:"error"}),this.loadingModule.close()},handleExport(){window.open("/today_price/export")}}},l=i,u=n(1001),c=(0,u.Z)(l,r,a,!1,null,"f2546c40",null),p=c.exports},5522:function(e,t,n){n.d(t,{EB:function(){return c},Hf:function(){return p},Rh:function(){return o},YQ:function(){return i},_:function(){return d},cb:function(){return h},g4:function(){return s},kT:function(){return u},lU:function(){return l},mr:function(){return a},se:function(){return m}});var r=n(8430);function a(e){return(0,r.Z)({url:"/api/plat_goods",method:"get",params:e})}function o(e,t){return(0,r.Z)({url:"/api/plat_goods/"+e,method:"patch",params:t})}function s(e){return(0,r.Z)({url:"/api/plat_goods/"+e,method:"delete"})}function i(e){return(0,r.Z)({url:"/api/plat/sync/"+e+"/stock/",method:"post"})}function l(e){return(0,r.Z)({url:"/api/plat_orders",method:"get",params:e})}function u(e){return(0,r.Z)({url:"/api/print/orders",method:"get",params:e})}function c(e){return(0,r.Z)({url:"/api/print/success",method:"put",params:e})}function p(e){return(0,r.Z)({url:"/api/plat_after_sale_orders",method:"get",params:e})}function d(e){return(0,r.Z)({url:"/api/plat_orders",method:"get",params:e,responseType:"blob"})}function h(e){return(0,r.Z)({url:"/api/plat_after_sale_orders",method:"get",params:e,responseType:"blob"})}function m(e){return(0,r.Z)({url:"/api/print/orders",method:"get",params:e})}},9998:function(e,t,n){n.d(t,{$i:function(){return o},C$:function(){return f},OV:function(){return c},Vq:function(){return d},_d:function(){return u},dT:function(){return h},hA:function(){return a},i$:function(){return m},nH:function(){return s},ow:function(){return l},rV:function(){return i},tA:function(){return p}});var r=n(8430);function a(){return(0,r.Z)({url:"/api/shop_platforms",method:"get"})}function o(e){return(0,r.Z)({url:"/api/shops",method:"post",data:e})}function s(e){return(0,r.Z)({url:"/api/shops",method:"get",params:e})}function i(e){return(0,r.Z)({url:`/api/download/${e}/goods`,method:"get"})}function l(e,t){return(0,r.Z)({url:`/api/shops/${e}`,method:"patch",params:t})}function u(e){return(0,r.Z)({url:"/api/sync/shop/stock",method:"put",params:e})}function c(){return(0,r.Z)({url:"/api/shop/ship",method:"get"})}function p(e,t){return(0,r.Z)({url:"/api/shop/ship/senders",method:"get",params:{shop_id:e,shop_ship_id:t}})}function d(e){return(0,r.Z)({url:"/api/shop/ship/senders",method:"post",params:e})}function h(e){return(0,r.Z)({url:"/api/order/reset",method:"get"})}function m(e){return(0,r.Z)({url:"/api/shop_sends",method:"get",params:e})}function f(e){return(0,r.Z)({url:"/api/shop_sends",method:"post",params:e})}}}]); +//# sourceMappingURL=999.7767bffa.js.map \ No newline at end of file diff --git a/public/dist/js/999.7767bffa.js.map b/public/dist/js/999.7767bffa.js.map new file mode 100644 index 0000000..e7e2cb7 --- /dev/null +++ b/public/dist/js/999.7767bffa.js.map @@ -0,0 +1 @@ +{"version":3,"file":"js/999.7767bffa.js","mappings":"kJAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAACE,YAAY,UAAU,CAACF,EAAG,UAAU,CAACG,MAAM,CAAC,aAAa,CAAEC,QAAS,sBAAuB,CAACJ,EAAG,UAAU,CAACK,IAAI,OAAOF,MAAM,CAAC,QAAS,EAAK,MAAQL,EAAIQ,OAAO,CAACN,EAAG,eAAe,CAACG,MAAM,CAAC,MAAQ,QAAQ,CAACH,EAAG,YAAY,CAACG,MAAM,CAAC,YAAc,MAAMI,GAAG,CAAC,OAAS,SAASC,GAAQ,OAAOV,EAAIW,cAAc,GAAGC,MAAM,CAACC,MAAOb,EAAIQ,KAAKM,QAASC,SAAS,SAAUC,GAAMhB,EAAIiB,KAAKjB,EAAIQ,KAAM,UAAWQ,EAAI,EAAEE,WAAW,iBAAiBlB,EAAImB,GAAInB,EAAIoB,OA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CACRC,IAAM,iBAAgBrF,UACtBsF,OAAQ,OAEhB,CAEO,SAASY,EAAYlG,EAAIyC,GAC5B,OAAO2C,EAAAA,EAAAA,GAAK,CACRC,IAAM,cAAarF,IACnBsF,OAAQ,QACR7C,UAER,CAEO,SAAS0D,EAAe1D,GAC3B,OAAO2C,EAAAA,EAAAA,GAAK,CACRC,IAAK,uBACLC,OAAQ,MACR7C,UAER,CAEO,SAAS2D,IACZ,OAAOhB,EAAAA,EAAAA,GAAK,CACRC,IAAK,iBACLC,OAAQ,OAEhB,CAEO,SAASe,EAAeC,EAAQC,GACnC,OAAOnB,EAAAA,EAAAA,GAAK,CACRC,IAAK,yBACLC,OAAQ,MACR7C,OAAQ,CACJ,QAAW6D,EACX,aAAgBC,IAG5B,CAEO,SAASC,EAAY/D,GACxB,OAAO2C,EAAAA,EAAAA,GAAK,CACRC,IAAK,yBACLC,OAAQ,OACR7C,UAER,CAEO,SAASgE,EAAUhE,GACtB,OAAO2C,EAAAA,EAAAA,GAAK,CACRC,IAAK,mBACLC,OAAQ,OAEhB,CAEO,SAASoB,EAAYjE,GACxB,OAAO2C,EAAAA,EAAAA,GAAK,CACRC,IAAK,kBACLC,OAAQ,MACR7C,UAER,CAEO,SAASkE,EAAkBlE,GAC9B,OAAO2C,EAAAA,EAAAA,GAAK,CACRC,IAAK,kBACLC,OAAQ,OACR7C,UAER,C","sources":["webpack://erp/./src/views/plat/goodsList.vue","webpack://erp/src/views/plat/goodsList.vue","webpack://erp/./src/views/plat/goodsList.vue?6198","webpack://erp/./src/views/plat/goodsList.vue?78ff","webpack://erp/./src/api/plat.js","webpack://erp/./src/api/shop.js"],"sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"conent\"},[_c('el-card',{attrs:{\"body-style\":{ padding: '20px 20px 0 20px' }}},[_c('el-form',{ref:\"form\",attrs:{\"inline\":true,\"model\":_vm.form}},[_c('el-form-item',{attrs:{\"label\":\"店铺:\"}},[_c('el-select',{attrs:{\"placeholder\":\"店铺\"},on:{\"change\":function($event){return _vm.handleChoose()}},model:{value:(_vm.form.shop_id),callback:function ($$v) {_vm.$set(_vm.form, \"shop_id\", $$v)},expression:\"form.shop_id\"}},_vm._l((_vm.shops),function(item){return _c('el-option',{key:item.id,attrs:{\"label\":item.name,\"value\":item.id}})}),1)],1),_c('el-form-item',{attrs:{\"label\":\"商品名称:\"}},[_c('el-input',{attrs:{\"placeholder\":\"商品名称\"},nativeOn:{\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\"))return null;return _vm.handleChoose.apply(null, arguments)}},model:{value:(_vm.form.goods_name),callback:function ($$v) {_vm.$set(_vm.form, \"goods_name\", $$v)},expression:\"form.goods_name\"}})],1),_c('el-form-item',{attrs:{\"label\":\"商品编码:\"}},[_c('el-input',{attrs:{\"placeholder\":\"商品编码\"},nativeOn:{\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\"))return null;return _vm.handleChoose.apply(null, arguments)}},model:{value:(_vm.form.external_sku_id),callback:function ($$v) {_vm.$set(_vm.form, \"external_sku_id\", $$v)},expression:\"form.external_sku_id\"}})],1),_c('el-form-item',[_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":function($event){return _vm.handleChoose()}}},[_vm._v(\"筛选\")]),_c('el-button',{attrs:{\"plain\":\"\"},on:{\"click\":function($event){return _vm.handleReChoose()}}},[_vm._v(\"重置筛选\")])],1)],1)],1),_c('el-card',{staticStyle:{\"margin-top\":\"10px\"}},[_c('el-table',{directives:[{name:\"loading\",rawName:\"v-loading\",value:(_vm.loading),expression:\"loading\"}],ref:\"multipleTable\",staticStyle:{\"width\":\"100%\"},attrs:{\"data\":_vm.tableData}},[_c('el-table-column',{attrs:{\"label\":\"店铺名称\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_vm._v(\" \"+_vm._s(scope.row.shop.name)+\" \")]}}])}),_c('el-table-column',{attrs:{\"prop\":\"title\",\"label\":\"团购标题\"}}),_c('el-table-column',{attrs:{\"prop\":\"category_name\",\"label\":\"分类名称\"}}),_c('el-table-column',{attrs:{\"prop\":\"goods_name\",\"label\":\"商品名称\"}}),_c('el-table-column',{attrs:{\"prop\":\"external_sku_id\",\"label\":\"编码\"}}),_c('el-table-column',{attrs:{\"prop\":\"price_in_fen\",\"label\":\"价格\"}}),_c('el-table-column',{attrs:{\"prop\":\"created_at\",\"label\":\"下载时间\"}}),_c('el-table-column',{attrs:{\"label\":\"同步\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('el-switch',{attrs:{\"active-color\":\"#13ce66\",\"inactive-color\":\"#ff4949\",\"active-value\":1,\"inactive-value\":0,\"active-text\":\"是\",\"inactive-text\":\"否\"},on:{\"change\":function($event){return _vm.syncChange(scope.row)}},model:{value:(scope.row.is_sync),callback:function ($$v) {_vm.$set(scope.row, \"is_sync\", $$v)},expression:\"scope.row.is_sync\"}})]}}])}),_c('el-table-column',{attrs:{\"label\":\"操作\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('el-button',{directives:[{name:\"show\",rawName:\"v-show\",value:(scope.row.is_sync && scope.row.external_sku_id),expression:\"scope.row.is_sync && scope.row.external_sku_id\"}],attrs:{\"type\":\"primary\"},on:{\"click\":function($event){return _vm.syncStock(scope.row)}}},[_vm._v(\" 同步库存\")]),_c('el-button',{attrs:{\"type\":\"danger\"},on:{\"click\":function($event){return _vm.deleteGoods(scope.row)}}},[_vm._v(\"删除\")])]}}])})],1),_c('div',{staticClass:\"block\"},[_c('el-pagination',{attrs:{\"current-page\":_vm.current_page,\"page-sizes\":[15, 50, 100],\"page-size\":_vm.per_page,\"layout\":\"total, sizes, prev, pager, next, jumper\",\"total\":_vm.Paginationdata.total},on:{\"size-change\":_vm.handleSizeChange,\"current-change\":_vm.handleCurrentChange}})],1)],1)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n\r\n\r\n\r\n\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./goodsList.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./goodsList.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./goodsList.vue?vue&type=template&id=f2546c40&scoped=true\"\nimport script from \"./goodsList.vue?vue&type=script&lang=js\"\nexport * from \"./goodsList.vue?vue&type=script&lang=js\"\nimport style0 from \"./goodsList.vue?vue&type=style&index=0&id=f2546c40&prod&lang=scss&scoped=true\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"f2546c40\",\n null\n \n)\n\nexport default component.exports","import http from \"@/util/http.js\";\r\n\r\n// 平台货品列表\r\nexport function platGoodsList(params) {\r\n return http({\r\n url: \"/api/plat_goods\",\r\n method: \"get\",\r\n params,\r\n });\r\n}\r\n\r\nexport function updateSyncStatus(id, params) {\r\n return http({\r\n url: \"/api/plat_goods/\" + id,\r\n method: \"patch\",\r\n params,\r\n });\r\n}\r\n\r\nexport function deletePlatGoods(id) {\r\n return http({\r\n url: \"/api/plat_goods/\" + id,\r\n method: \"delete\",\r\n });\r\n}\r\n\r\nexport function syncStock(id) {\r\n return http({\r\n url: \"/api/plat/sync/\" + id + \"/stock/\",\r\n method: \"post\",\r\n });\r\n}\r\n\r\nexport function activityList(shopId) {\r\n return http({\r\n url: \"/api/plat_group_activity/\" + shopId,\r\n method: \"get\",\r\n });\r\n}\r\n\r\n// 平台订单列表\r\nexport function platOrderList(params) {\r\n return http({\r\n url: \"/api/plat_orders\",\r\n method: \"get\",\r\n params\r\n });\r\n}\r\n\r\nexport function platOrderExport(params) {\r\n return http({\r\n url: \"/plat_orders/export\",\r\n method: \"get\",\r\n params,\r\n });\r\n}\r\n\r\nexport function printOrders(params) {\r\n return http({\r\n url: \"/api/print/orders\",\r\n method: \"get\",\r\n params\r\n });\r\n}\r\n\r\nexport function printSuccess(params) {\r\n return http({\r\n url: \"/api/print/success\",\r\n method: \"put\",\r\n params\r\n });\r\n}\r\n\r\nexport function getAfterSaleOrders(params) {\r\n return http({\r\n url: \"/api/plat_after_sale_orders\",\r\n method: \"get\",\r\n params\r\n })\r\n}\r\n\r\nexport function exportOrder(params) {\r\n return http({\r\n url: \"/api/plat_orders\",\r\n method: \"get\",\r\n params,\r\n responseType: 'blob'\r\n })\r\n}\r\n\r\nexport function exportAfterOrder(params) {\r\n return http({\r\n url: \"/api/plat_after_sale_orders\",\r\n method: \"get\",\r\n params,\r\n responseType: 'blob'\r\n })\r\n}\r\n\r\nexport function getPrintInfo(params) {\r\n return http({\r\n url: \"/api/print/orders\",\r\n method: \"get\",\r\n params\r\n })\r\n}\r\n","import http from \"@/util/http.js\";\r\n\r\n// 店铺管理页面请求\r\n\r\n// 店铺平台\r\nexport function shopListId() {\r\n return http({\r\n url: \"/api/shop_platforms\",\r\n method: \"get\",\r\n });\r\n}\r\n// 店铺新增\r\nexport function shopAdd(data) {\r\n return http({\r\n url: \"/api/shops\",\r\n method: \"post\",\r\n data,\r\n });\r\n}\r\n// 店铺列表\r\nexport function storeList(params) {\r\n return http({\r\n url: \"/api/shops\",\r\n method: \"get\",\r\n params,\r\n });\r\n}\r\n\r\n// 下载商品\r\nexport function downloadGoods(id) {\r\n return http({\r\n url: `/api/download/${id}/goods`,\r\n method: \"get\",\r\n });\r\n}\r\n\r\nexport function updateStore(id, params) {\r\n return http({\r\n url: `/api/shops/${id}`,\r\n method: \"patch\",\r\n params,\r\n });\r\n}\r\n\r\nexport function syncStoreStock(params) {\r\n return http({\r\n url: '/api/sync/shop/stock',\r\n method: \"put\",\r\n params,\r\n });\r\n}\r\n\r\nexport function shipList() {\r\n return http({\r\n url: '/api/shop/ship',\r\n method: 'get',\r\n })\r\n}\r\n\r\nexport function ShopSenderList(shopId, shopShipId) {\r\n return http({\r\n url: '/api/shop/ship/senders',\r\n method: 'get',\r\n params: {\r\n 'shop_id': shopId,\r\n 'shop_ship_id': shopShipId,\r\n }\r\n })\r\n}\r\n\r\nexport function saveSenders(params) {\r\n return http({\r\n url: '/api/shop/ship/senders',\r\n method: 'post',\r\n params\r\n })\r\n}\r\n\r\nexport function orderRest(params) {\r\n return http({\r\n url: '/api/order/reset',\r\n method: 'get',\r\n })\r\n}\r\n\r\nexport function shopAddress(params) {\r\n return http({\r\n url: \"/api/shop_sends\",\r\n method: \"get\",\r\n params,\r\n });\r\n}\r\n\r\nexport function updateShopAddress(params) {\r\n return http({\r\n url: '/api/shop_sends',\r\n method: 'post',\r\n params\r\n })\r\n}\r\n"],"names":["render","_vm","this","_c","_self","staticClass","attrs","padding","ref","form","on","$event","handleChoose","model","value","shop_id","callback","$$v","$set","expression","_l","shops","item","key","id","name","nativeOn","type","indexOf","_k","keyCode","apply","arguments","goods_name","external_sku_id","_v","handleReChoose","staticStyle","directives","rawName","loading","tableData","scopedSlots","_u","fn","scope","_s","row","shop","syncChange","is_sync","syncStock","deleteGoods","current_page","per_page","Paginationdata","total","handleSizeChange","handleCurrentChange","staticRenderFns","data","mounted","getPlatGoodsList","getShopsList","methods","params","page","platGoodsList","then","res","meta","storeList","val","newObj","filterParams","obj","_newPar","toString","replace","rowData","updateSyncStatus","status","$message","message","error","errorMessage","$alert","showCancelButton","cancelButtonText","confirmButtonText","action","deletePlatGoods","beforeUpload","loadingModule","$loading","lock","text","spinner","background","uploadSuccess","response","close","uploadError","err","handleExport","window","open","component","http","url","method","platOrderList","printOrders","printSuccess","getAfterSaleOrders","exportOrder","responseType","exportAfterOrder","getPrintInfo","shopListId","shopAdd","downloadGoods","updateStore","syncStoreStock","shipList","ShopSenderList","shopId","shopShipId","saveSenders","orderRest","shopAddress","updateShopAddress"],"sourceRoot":""} \ No newline at end of file diff --git a/public/dist/js/app.10acb235.js b/public/dist/js/app.10acb235.js new file mode 100644 index 0000000..27c69ba --- /dev/null +++ b/public/dist/js/app.10acb235.js @@ -0,0 +1,2 @@ +(function(){"use strict";var e={462:function(e,n,t){var o=t(144),a=function(){var e=this,n=e._self._c;return n("div",{attrs:{id:"app"}},[n("keep-alive",[e.$route.meta.keepAlive?n("router-view"):e._e()],1),e.$route.meta.keepAlive?e._e():n("router-view")],1)},r=[],i={},c=i,l=t(1001),d=(0,l.Z)(c,a,r,!1,null,null,null),u=d.exports,f=t(8345);o["default"].use(f.ZP);const m=()=>new f.ZP({scrollBehavior:()=>({y:0})}),s=m();s.beforeEach(((e,n,t)=>{const o=localStorage.getItem("token");"Login"===e.name||o?t():t({name:"Login"})}));var p=s,h=t(629);o["default"].use(h.ZP);var b=new h.ZP.Store({state:{},mutations:{},actions:{},modules:{}}),v=t(4720),O=t.n(v);const P=[{path:"/Login",name:"Login",component:()=>Promise.all([t.e(430),t.e(301),t.e(200)]).then(t.bind(t,7240))},{path:"/",component:()=>Promise.all([t.e(430),t.e(301),t.e(850)]).then(t.bind(t,1043)),children:[{path:"GOODS_LIST",name:"商品列表",component:()=>Promise.all([t.e(430),t.e(301),t.e(444),t.e(298)]).then(t.bind(t,4298)),meta:{keepAlive:!0}},{path:"ADDGOODS",name:"新增商品/规格",component:()=>Promise.all([t.e(430),t.e(301),t.e(444),t.e(465)]).then(t.bind(t,8465))},{path:"EDIT_GOODS",name:"修改商品规格",component:()=>Promise.all([t.e(430),t.e(301),t.e(444),t.e(691)]).then(t.bind(t,5691))},{path:"/",redirect:"GOODS_LIST"},{path:"GOODS_TYPE",name:"品类管理",component:()=>Promise.all([t.e(430),t.e(301),t.e(444),t.e(454)]).then(t.bind(t,3454))},{path:"GOODS_BRAND",name:"商品品牌",component:()=>Promise.all([t.e(430),t.e(984)]).then(t.bind(t,9851))},{path:"GOODS_SKU_LOCATION",name:"商品货架",component:()=>Promise.all([t.e(430),t.e(132)]).then(t.bind(t,1019))},{path:"GOODS_COMBINATION",name:"组合商品",component:()=>Promise.all([t.e(430),t.e(301),t.e(197)]).then(t.bind(t,8180))},{path:"SHOP_MANAGE",name:"店铺管理",component:()=>Promise.all([t.e(430),t.e(19)]).then(t.bind(t,3236))},{path:"USER_MANAGE",name:"用户管理",component:()=>Promise.all([t.e(430),t.e(931)]).then(t.bind(t,8406))},{path:"ROLE_MANAGE",name:"角色管理",component:()=>Promise.all([t.e(430),t.e(551)]).then(t.bind(t,796))},{path:"SYSTEM_LOG",name:"系统日志",component:()=>Promise.all([t.e(430),t.e(206)]).then(t.bind(t,2761))},{path:"GOODS_LOG",name:"商品记录",component:()=>Promise.all([t.e(430),t.e(688)]).then(t.bind(t,4702))},{path:"PLAT_ORDER_LIST",name:"订单列表",component:()=>Promise.all([t.e(430),t.e(301),t.e(463)]).then(t.bind(t,5739))},{path:"PLAT_GOODS_LIST",name:"货品列表",component:()=>Promise.all([t.e(430),t.e(999)]).then(t.bind(t,6784))},{path:"PLAT_AFTER_SALE_ORDER_LIST",name:"售后单列表",component:()=>Promise.all([t.e(430),t.e(301),t.e(147)]).then(t.bind(t,8810))},{path:"GROUP_MANAGEMENT",name:"团购管理",component:()=>Promise.all([t.e(430),t.e(301),t.e(192)]).then(t.bind(t,2175))},{path:"GROUP_GOODS_ADD",name:"团购商品新增",component:()=>Promise.all([t.e(430),t.e(301),t.e(973)]).then(t.bind(t,7166))},{path:"GROUP_GOODS_EDIT",name:"团购商品修改",component:()=>Promise.all([t.e(430),t.e(301),t.e(924)]).then(t.bind(t,5174))},{path:"FACE_SHEET",name:"电子面单",component:()=>Promise.all([t.e(430),t.e(64)]).then(t.bind(t,1404))},{path:"SALES_REPORT_DATA",name:"销售数据",component:()=>Promise.all([t.e(430),t.e(654)]).then(t.bind(t,5671))},{path:"sale_statistics",name:"sku销售统计",component:()=>Promise.all([t.e(430),t.e(193)]).then(t.bind(t,1980))},{path:"spu_sale_statistics",name:"品种销售统计",component:()=>Promise.all([t.e(430),t.e(990)]).then(t.bind(t,9651))},{path:"gmv_statistics",name:"交易趋势",component:()=>Promise.all([t.e(430),t.e(301),t.e(583),t.e(806)]).then(t.bind(t,1618))},{path:"loss_record_statistics",name:"报损统计",component:()=>Promise.all([t.e(430),t.e(301),t.e(583),t.e(199)]).then(t.bind(t,8824))},{path:"SUPPLIER_MANAGE",name:"供应商管理",component:()=>Promise.all([t.e(430),t.e(967)]).then(t.bind(t,54))},{path:"PURCHASE_RECORD",name:"商品采购",component:()=>Promise.all([t.e(430),t.e(301),t.e(839)]).then(t.bind(t,4124))},{path:"PURCHASE_RECORD_CHECK",name:"质检入库",component:()=>Promise.all([t.e(430),t.e(301),t.e(120)]).then(t.bind(t,3966))},{path:"LOSS_RECORD",name:"仓库报损",component:()=>Promise.all([t.e(430),t.e(301),t.e(417)]).then(t.bind(t,2419))},{path:"DAILY_STOCK_RECORD",name:"库存盘点",component:()=>Promise.all([t.e(430),t.e(301),t.e(24)]).then(t.bind(t,4309))}]}];var _=P;_.forEach((e=>{p.addRoute(e)})),o["default"].use(O(),{size:"small"}),o["default"].config.productionTip=!1,new o["default"]({router:p,store:b,render:e=>e(u)}).$mount("#app"),document.title="春分ERP-鲜花"}},n={};function t(o){var a=n[o];if(void 0!==a)return a.exports;var r=n[o]={id:o,loaded:!1,exports:{}};return e[o].call(r.exports,r,r.exports,t),r.loaded=!0,r.exports}t.m=e,function(){t.amdO={}}(),function(){var e=[];t.O=function(n,o,a,r){if(!o){var i=1/0;for(u=0;u=r)&&Object.keys(t.O).every((function(e){return t.O[e](o[l])}))?o.splice(l--,1):(c=!1,r0&&e[u-1][2]>r;u--)e[u]=e[u-1];e[u]=[o,a,r]}}(),function(){t.n=function(e){var n=e&&e.__esModule?function(){return e["default"]}:function(){return e};return t.d(n,{a:n}),n}}(),function(){t.d=function(e,n){for(var o in n)t.o(n,o)&&!t.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:n[o]})}}(),function(){t.f={},t.e=function(e){return Promise.all(Object.keys(t.f).reduce((function(n,o){return t.f[o](e,n),n}),[]))}}(),function(){t.u=function(e){return"js/"+e+"."+{19:"39213a6d",24:"1eaace62",64:"2db5913e",120:"5d42b8fb",132:"0557c76c",147:"34297e9a",192:"71ec2e85",193:"99e24d2b",197:"9f943505",199:"5e20f3e2",200:"fbda0d79",206:"f31f5e61",283:"b0b443fa",298:"c971cd33",301:"1f602c86",417:"5d40a6d8",430:"728d93d4",444:"bdf6e547",454:"4e7d9fc6",463:"09656921",465:"630ca1a8",551:"d3396e3a",583:"5bbe4636",654:"9b16d70f",688:"1ffe9e5d",691:"c4036076",806:"6fa0f083",839:"f5901bd7",850:"3d04d1d4",924:"e619e841",931:"79e27d13",967:"0072dd64",973:"14434d3f",984:"afbbd0d9",990:"e354f872",999:"7767bffa"}[e]+".js"}}(),function(){t.miniCssF=function(e){return"css/"+e+"."+{19:"d40c35ff",24:"609ab1fb",64:"403e055c",120:"497aa257",132:"e6e4e404",147:"610fa777",192:"5c0a41ae",193:"434fb0ab",197:"e8b8bfee",199:"fc892afb",200:"d1f3c50b",206:"5c0a41ae",298:"d943cf60",417:"c022f0a7",444:"5c5179a7",454:"0d07cd09",463:"5c0a41ae",465:"162dccfd",551:"24d983f8",654:"83822904",688:"97f84af6",691:"de1fc96e",806:"f3652123",839:"307cb16e",850:"4fa8ccec",924:"5c0a41ae",931:"cf2e1900",967:"ab361ac1",973:"5c0a41ae",984:"3115be6a",990:"f504d809",999:"0ae01dd7"}[e]+".css"}}(),function(){t.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)}}(),function(){var e={},n="erp:";t.l=function(o,a,r,i){if(e[o])e[o].push(a);else{var c,l;if(void 0!==r)for(var d=document.getElementsByTagName("script"),u=0;u\r\n
\r\n \r\n \r\n \r\n \r\n
\r\n\r\n\r\n\r\n\r\n","import mod from \"-!../node_modules/thread-loader/dist/cjs.js!../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./App.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../node_modules/thread-loader/dist/cjs.js!../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./App.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./App.vue?vue&type=template&id=a31aa596\"\nimport script from \"./App.vue?vue&type=script&lang=js\"\nexport * from \"./App.vue?vue&type=script&lang=js\"\nimport style0 from \"./App.vue?vue&type=style&index=0&id=a31aa596&prod&lang=scss\"\n\n\n/* normalize component */\nimport normalizer from \"!../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","import Vue from \"vue\";\r\nimport VueRouter from \"vue-router\";\r\n\r\nVue.use(VueRouter);\r\n\r\nconst createRouter = () =>\r\n new VueRouter({\r\n scrollBehavior: () => ({ y: 0 }),\r\n });\r\n\r\nconst router = createRouter();\r\n\r\nrouter.beforeEach((to, from, next) => {\r\n const token = localStorage.getItem(\"token\");\r\n // 目标路由不是登录页,并且还需要token验证,还没有token,那就直接给返回到登录页\r\n if (to.name !== \"Login\" && !token) {\r\n next({ name: \"Login\" });\r\n } else {\r\n // 目标路由是登录页-自然不需要token验证\r\n // 或目标路由不需要身份验证\r\n // 又或目标路由非登录页,需要token验证,但是有token\r\n // next放行\r\n next();\r\n }\r\n});\r\n\r\nexport default router;\r\n","import Vue from 'vue'\r\nimport Vuex from 'vuex'\r\n\r\nVue.use(Vuex)\r\n\r\nexport default new Vuex.Store({\r\n state: {\r\n },\r\n mutations: {\r\n },\r\n actions: {\r\n },\r\n modules: {\r\n }\r\n})\r\n","const list = [\r\n {\r\n path: \"/Login\",\r\n name: \"Login\",\r\n component: () => import(\"../views/Login.vue\"),\r\n },\r\n {\r\n path: \"/\",\r\n component: () => import(\"../views/index.vue\"),\r\n children: [\r\n {\r\n path: \"GOODS_LIST\",\r\n name: \"商品列表\",\r\n component: () => import(\"../views/goods/goods.vue\"),\r\n meta: {\r\n keepAlive: true,\r\n },\r\n },\r\n {\r\n path: \"ADDGOODS\",\r\n name: \"新增商品/规格\",\r\n component: () => import(\"../views/goods/addgoods/addgoods.vue\"),\r\n },\r\n {\r\n path: \"EDIT_GOODS\",\r\n name: \"修改商品规格\",\r\n component: () => import(\"../views/goods/editgoods.vue\"),\r\n },\r\n {\r\n path: \"/\",\r\n redirect: \"GOODS_LIST\",\r\n },\r\n {\r\n path: \"GOODS_TYPE\",\r\n name: \"品类管理\",\r\n component: () => import(\"../views/goodsType/goodsType.vue\"),\r\n },\r\n {\r\n path: \"GOODS_BRAND\",\r\n name: \"商品品牌\",\r\n component: () => import(\"../views/brand/brand.vue\"),\r\n },\r\n {\r\n path: \"GOODS_SKU_LOCATION\",\r\n name: \"商品货架\",\r\n component: () => import(\"../views/goods/location.vue\"),\r\n },\r\n {\r\n path: \"GOODS_COMBINATION\",\r\n name: \"组合商品\",\r\n component: () => import(\"../views/goods/combination.vue\"),\r\n },\r\n {\r\n path: \"SHOP_MANAGE\",\r\n name: \"店铺管理\",\r\n component: () => import(\"../views/store/store.vue\"),\r\n },\r\n {\r\n path: \"USER_MANAGE\",\r\n name: \"用户管理\",\r\n component: () => import(\"../views/users/users.vue\"),\r\n },\r\n {\r\n path: \"ROLE_MANAGE\",\r\n name: \"角色管理\",\r\n component: () => import(\"../views/system/role.vue\"),\r\n },\r\n {\r\n path: \"SYSTEM_LOG\",\r\n name: \"系统日志\",\r\n component: () => import(\"../views/logs/logs.vue\"),\r\n },\r\n {\r\n path: \"GOODS_LOG\",\r\n name: \"商品记录\",\r\n component: () => import(\"../views/logs/record.vue\"),\r\n },\r\n {\r\n path: \"PLAT_ORDER_LIST\",\r\n name: \"订单列表\",\r\n component: () => import(\"../views/plat/orderList.vue\"),\r\n },\r\n {\r\n path: \"PLAT_GOODS_LIST\",\r\n name: \"货品列表\",\r\n component: () => import(\"../views/plat/goodsList.vue\"),\r\n },\r\n {\r\n path: \"PLAT_AFTER_SALE_ORDER_LIST\",\r\n name: \"售后单列表\",\r\n component: () => import(\"../views/plat/afterSaleOrder.vue\"),\r\n },\r\n {\r\n path: \"GROUP_MANAGEMENT\",\r\n name: \"团购管理\",\r\n component: () => import(\"../views/group/group.vue\"),\r\n },\r\n {\r\n path: \"GROUP_GOODS_ADD\",\r\n name: \"团购商品新增\",\r\n component: () => import(\"../views/group/addGroup.vue\"),\r\n },\r\n {\r\n path: \"GROUP_GOODS_EDIT\",\r\n name: \"团购商品修改\",\r\n component: () => import(\"../views/group/editGroup.vue\"),\r\n },\r\n {\r\n path: \"FACE_SHEET\",\r\n name: \"电子面单\",\r\n component: () => import(\"../views/plat/faceSheet.vue\"),\r\n },\r\n {\r\n path: \"SALES_REPORT_DATA\",\r\n name: \"销售数据\",\r\n component: () => import(\"../views/dataCenter/salesReport.vue\"),\r\n },\r\n {\r\n path: \"sale_statistics\",\r\n name: \"sku销售统计\",\r\n component: () => import(\"../views/dataCenter/skuStatistics.vue\"),\r\n },\r\n {\r\n path: \"spu_sale_statistics\",\r\n name: \"品种销售统计\",\r\n component: () => import(\"../views/dataCenter/spuStatistics.vue\"),\r\n },\r\n {\r\n path: \"gmv_statistics\",\r\n name: \"交易趋势\",\r\n component: () => import(\"../views/dataCenter/gmvStatistics.vue\"),\r\n },\r\n {\r\n path: \"loss_record_statistics\",\r\n name: \"报损统计\",\r\n component: () => import(\"../views/dataCenter/lossStatistics.vue\"),\r\n },\r\n {\r\n path: \"SUPPLIER_MANAGE\",\r\n name: \"供应商管理\",\r\n component: () => import(\"../views/supplyChain/supplier.vue\")\r\n },\r\n {\r\n path: \"PURCHASE_RECORD\",\r\n name: \"商品采购\",\r\n component: () => import(\"../views/supplyChain/procureLog.vue\")\r\n },\r\n {\r\n path: \"PURCHASE_RECORD_CHECK\",\r\n name: \"质检入库\",\r\n component: () => import(\"../views/supplyChain/procureCheck.vue\")\r\n },\r\n {\r\n path: \"LOSS_RECORD\",\r\n name: \"仓库报损\",\r\n component: () => import(\"../views/supplyChain/lossRecord.vue\")\r\n },\r\n {\r\n path: \"DAILY_STOCK_RECORD\",\r\n name: \"库存盘点\",\r\n component: () => import(\"../views/supplyChain/dailyStock.vue\")\r\n }\r\n ]\r\n }\r\n]\r\n\r\nexport default list\r\n","import router from './index'\r\nimport List from './list'\r\n\r\nList.forEach(element => {\r\n router.addRoute(element) // 动态添加更多的路由规则\r\n})\r\n","import Vue from \"vue\";\r\nimport App from \"./App.vue\";\r\nimport router from \"./router\";\r\nimport store from \"./store\";\r\nimport ElementUI from \"element-ui\";\r\nimport \"element-ui/lib/theme-chalk/index.css\";\r\nimport \"@/css/style.css\";\r\nimport \"./router/main\";\r\n\r\nVue.use(ElementUI, {\r\n size: 'small'\r\n});\r\nVue.config.productionTip = false;\r\n\r\nnew Vue({\r\n router,\r\n store,\r\n render: (h) => h(App),\r\n}).$mount(\"#app\");\r\n\r\ndocument.title = \"春分ERP-鲜花\";\r\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\tid: moduleId,\n\t\tloaded: false,\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Flag the module as loaded\n\tmodule.loaded = true;\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","__webpack_require__.amdO = {};","var deferred = [];\n__webpack_require__.O = function(result, chunkIds, fn, priority) {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar chunkIds = deferred[i][0];\n\t\tvar fn = deferred[i][1];\n\t\tvar priority = deferred[i][2];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every(function(key) { return __webpack_require__.O[key](chunkIds[j]); })) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = function(module) {\n\tvar getter = module && module.__esModule ?\n\t\tfunction() { return module['default']; } :\n\t\tfunction() { return module; };\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.f = {};\n// This file contains only the entry chunk.\n// The chunk loading function for additional chunks\n__webpack_require__.e = function(chunkId) {\n\treturn Promise.all(Object.keys(__webpack_require__.f).reduce(function(promises, key) {\n\t\t__webpack_require__.f[key](chunkId, promises);\n\t\treturn promises;\n\t}, []));\n};","// This function allow to reference async chunks\n__webpack_require__.u = function(chunkId) {\n\t// return url for filenames based on template\n\treturn \"js/\" + chunkId + \".\" + {\"24\":\"1eaace62\",\"64\":\"7efc004a\",\"120\":\"5d42b8fb\",\"132\":\"0557c76c\",\"147\":\"53e38aa6\",\"192\":\"71ec2e85\",\"193\":\"99e24d2b\",\"197\":\"9f943505\",\"199\":\"5e20f3e2\",\"200\":\"fbda0d79\",\"206\":\"f31f5e61\",\"283\":\"b0b443fa\",\"298\":\"143f4f4b\",\"301\":\"1f602c86\",\"417\":\"5d40a6d8\",\"430\":\"728d93d4\",\"444\":\"bdf6e547\",\"454\":\"4e7d9fc6\",\"465\":\"630ca1a8\",\"551\":\"d3396e3a\",\"583\":\"5bbe4636\",\"613\":\"5a7f6161\",\"654\":\"9b16d70f\",\"688\":\"1ffe9e5d\",\"691\":\"c4036076\",\"806\":\"6fa0f083\",\"808\":\"eabeec45\",\"839\":\"f5901bd7\",\"850\":\"3d04d1d4\",\"924\":\"e619e841\",\"931\":\"79e27d13\",\"967\":\"0072dd64\",\"973\":\"14434d3f\",\"984\":\"afbbd0d9\",\"990\":\"e354f872\",\"999\":\"1bc20d27\"}[chunkId] + \".js\";\n};","// This function allow to reference async chunks\n__webpack_require__.miniCssF = function(chunkId) {\n\t// return url for filenames based on template\n\treturn \"css/\" + chunkId + \".\" + {\"24\":\"609ab1fb\",\"64\":\"403e055c\",\"120\":\"497aa257\",\"132\":\"e6e4e404\",\"147\":\"610fa777\",\"192\":\"5c0a41ae\",\"193\":\"434fb0ab\",\"197\":\"e8b8bfee\",\"199\":\"fc892afb\",\"200\":\"d1f3c50b\",\"206\":\"5c0a41ae\",\"298\":\"d943cf60\",\"417\":\"c022f0a7\",\"444\":\"5c5179a7\",\"454\":\"0d07cd09\",\"465\":\"162dccfd\",\"551\":\"24d983f8\",\"613\":\"a4b31826\",\"654\":\"83822904\",\"688\":\"97f84af6\",\"691\":\"de1fc96e\",\"806\":\"f3652123\",\"808\":\"5c0a41ae\",\"839\":\"307cb16e\",\"850\":\"4fa8ccec\",\"924\":\"5c0a41ae\",\"931\":\"cf2e1900\",\"967\":\"ab361ac1\",\"973\":\"5c0a41ae\",\"984\":\"3115be6a\",\"990\":\"f504d809\",\"999\":\"0ae01dd7\"}[chunkId] + \".css\";\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","var inProgress = {};\nvar dataWebpackPrefix = \"erp:\";\n// loadScript function to load a script via script tag\n__webpack_require__.l = function(url, done, key, chunkId) {\n\tif(inProgress[url]) { inProgress[url].push(done); return; }\n\tvar script, needAttach;\n\tif(key !== undefined) {\n\t\tvar scripts = document.getElementsByTagName(\"script\");\n\t\tfor(var i = 0; i < scripts.length; i++) {\n\t\t\tvar s = scripts[i];\n\t\t\tif(s.getAttribute(\"src\") == url || s.getAttribute(\"data-webpack\") == dataWebpackPrefix + key) { script = s; break; }\n\t\t}\n\t}\n\tif(!script) {\n\t\tneedAttach = true;\n\t\tscript = document.createElement('script');\n\n\t\tscript.charset = 'utf-8';\n\t\tscript.timeout = 120;\n\t\tif (__webpack_require__.nc) {\n\t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n\t\t}\n\t\tscript.setAttribute(\"data-webpack\", dataWebpackPrefix + key);\n\n\t\tscript.src = url;\n\t}\n\tinProgress[url] = [done];\n\tvar onScriptComplete = function(prev, event) {\n\t\t// avoid mem leaks in IE.\n\t\tscript.onerror = script.onload = null;\n\t\tclearTimeout(timeout);\n\t\tvar doneFns = inProgress[url];\n\t\tdelete inProgress[url];\n\t\tscript.parentNode && script.parentNode.removeChild(script);\n\t\tdoneFns && doneFns.forEach(function(fn) { return fn(event); });\n\t\tif(prev) return prev(event);\n\t}\n\tvar timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);\n\tscript.onerror = onScriptComplete.bind(null, script.onerror);\n\tscript.onload = onScriptComplete.bind(null, script.onload);\n\tneedAttach && document.head.appendChild(script);\n};","// define __esModule on exports\n__webpack_require__.r = function(exports) {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.nmd = function(module) {\n\tmodule.paths = [];\n\tif (!module.children) module.children = [];\n\treturn module;\n};","__webpack_require__.p = \"\";","if (typeof document === \"undefined\") return;\nvar createStylesheet = function(chunkId, fullhref, oldTag, resolve, reject) {\n\tvar linkTag = document.createElement(\"link\");\n\n\tlinkTag.rel = \"stylesheet\";\n\tlinkTag.type = \"text/css\";\n\tvar onLinkComplete = function(event) {\n\t\t// avoid mem leaks.\n\t\tlinkTag.onerror = linkTag.onload = null;\n\t\tif (event.type === 'load') {\n\t\t\tresolve();\n\t\t} else {\n\t\t\tvar errorType = event && event.type;\n\t\t\tvar realHref = event && event.target && event.target.href || fullhref;\n\t\t\tvar err = new Error(\"Loading CSS chunk \" + chunkId + \" failed.\\n(\" + errorType + \": \" + realHref + \")\");\n\t\t\terr.name = \"ChunkLoadError\";\n\t\t\terr.code = \"CSS_CHUNK_LOAD_FAILED\";\n\t\t\terr.type = errorType;\n\t\t\terr.request = realHref;\n\t\t\tif (linkTag.parentNode) linkTag.parentNode.removeChild(linkTag)\n\t\t\treject(err);\n\t\t}\n\t}\n\tlinkTag.onerror = linkTag.onload = onLinkComplete;\n\tlinkTag.href = fullhref;\n\n\tif (oldTag) {\n\t\toldTag.parentNode.insertBefore(linkTag, oldTag.nextSibling);\n\t} else {\n\t\tdocument.head.appendChild(linkTag);\n\t}\n\treturn linkTag;\n};\nvar findStylesheet = function(href, fullhref) {\n\tvar existingLinkTags = document.getElementsByTagName(\"link\");\n\tfor(var i = 0; i < existingLinkTags.length; i++) {\n\t\tvar tag = existingLinkTags[i];\n\t\tvar dataHref = tag.getAttribute(\"data-href\") || tag.getAttribute(\"href\");\n\t\tif(tag.rel === \"stylesheet\" && (dataHref === href || dataHref === fullhref)) return tag;\n\t}\n\tvar existingStyleTags = document.getElementsByTagName(\"style\");\n\tfor(var i = 0; i < existingStyleTags.length; i++) {\n\t\tvar tag = existingStyleTags[i];\n\t\tvar dataHref = tag.getAttribute(\"data-href\");\n\t\tif(dataHref === href || dataHref === fullhref) return tag;\n\t}\n};\nvar loadStylesheet = function(chunkId) {\n\treturn new Promise(function(resolve, reject) {\n\t\tvar href = __webpack_require__.miniCssF(chunkId);\n\t\tvar fullhref = __webpack_require__.p + href;\n\t\tif(findStylesheet(href, fullhref)) return resolve();\n\t\tcreateStylesheet(chunkId, fullhref, null, resolve, reject);\n\t});\n}\n// object to store loaded CSS chunks\nvar installedCssChunks = {\n\t143: 0\n};\n\n__webpack_require__.f.miniCss = function(chunkId, promises) {\n\tvar cssChunks = {\"24\":1,\"64\":1,\"120\":1,\"132\":1,\"147\":1,\"192\":1,\"193\":1,\"197\":1,\"199\":1,\"200\":1,\"206\":1,\"298\":1,\"417\":1,\"444\":1,\"454\":1,\"465\":1,\"551\":1,\"613\":1,\"654\":1,\"688\":1,\"691\":1,\"806\":1,\"808\":1,\"839\":1,\"850\":1,\"924\":1,\"931\":1,\"967\":1,\"973\":1,\"984\":1,\"990\":1,\"999\":1};\n\tif(installedCssChunks[chunkId]) promises.push(installedCssChunks[chunkId]);\n\telse if(installedCssChunks[chunkId] !== 0 && cssChunks[chunkId]) {\n\t\tpromises.push(installedCssChunks[chunkId] = loadStylesheet(chunkId).then(function() {\n\t\t\tinstalledCssChunks[chunkId] = 0;\n\t\t}, function(e) {\n\t\t\tdelete installedCssChunks[chunkId];\n\t\t\tthrow e;\n\t\t}));\n\t}\n};\n\n// no hmr","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t143: 0\n};\n\n__webpack_require__.f.j = function(chunkId, promises) {\n\t\t// JSONP chunk loading for javascript\n\t\tvar installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;\n\t\tif(installedChunkData !== 0) { // 0 means \"already installed\".\n\n\t\t\t// a Promise means \"currently loading\".\n\t\t\tif(installedChunkData) {\n\t\t\t\tpromises.push(installedChunkData[2]);\n\t\t\t} else {\n\t\t\t\tif(true) { // all chunks have JS\n\t\t\t\t\t// setup Promise in chunk cache\n\t\t\t\t\tvar promise = new Promise(function(resolve, reject) { installedChunkData = installedChunks[chunkId] = [resolve, reject]; });\n\t\t\t\t\tpromises.push(installedChunkData[2] = promise);\n\n\t\t\t\t\t// start chunk loading\n\t\t\t\t\tvar url = __webpack_require__.p + __webpack_require__.u(chunkId);\n\t\t\t\t\t// create error before stack unwound to get useful stacktrace later\n\t\t\t\t\tvar error = new Error();\n\t\t\t\t\tvar loadingEnded = function(event) {\n\t\t\t\t\t\tif(__webpack_require__.o(installedChunks, chunkId)) {\n\t\t\t\t\t\t\tinstalledChunkData = installedChunks[chunkId];\n\t\t\t\t\t\t\tif(installedChunkData !== 0) installedChunks[chunkId] = undefined;\n\t\t\t\t\t\t\tif(installedChunkData) {\n\t\t\t\t\t\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n\t\t\t\t\t\t\t\tvar realSrc = event && event.target && event.target.src;\n\t\t\t\t\t\t\t\terror.message = 'Loading chunk ' + chunkId + ' failed.\\n(' + errorType + ': ' + realSrc + ')';\n\t\t\t\t\t\t\t\terror.name = 'ChunkLoadError';\n\t\t\t\t\t\t\t\terror.type = errorType;\n\t\t\t\t\t\t\t\terror.request = realSrc;\n\t\t\t\t\t\t\t\tinstalledChunkData[1](error);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t\t__webpack_require__.l(url, loadingEnded, \"chunk-\" + chunkId, chunkId);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n};\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = function(chunkId) { return installedChunks[chunkId] === 0; };\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = function(parentChunkLoadingFunction, data) {\n\tvar chunkIds = data[0];\n\tvar moreModules = data[1];\n\tvar runtime = data[2];\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some(function(id) { return installedChunks[id] !== 0; })) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunkerp\"] = self[\"webpackChunkerp\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [998], function() { return __webpack_require__(462); })\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n"],"names":["render","_vm","this","_c","_self","attrs","$route","meta","keepAlive","_e","staticRenderFns","component","Vue","use","VueRouter","createRouter","scrollBehavior","y","router","beforeEach","to","from","next","token","localStorage","getItem","name","Vuex","state","mutations","actions","modules","list","path","children","redirect","List","forEach","element","addRoute","ElementUI","size","config","productionTip","store","h","App","$mount","document","title","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","exports","module","id","loaded","__webpack_modules__","call","m","amdO","deferred","O","result","chunkIds","fn","priority","notFulfilled","Infinity","i","length","fulfilled","j","Object","keys","every","key","splice","r","n","getter","__esModule","d","a","definition","o","defineProperty","enumerable","get","f","e","chunkId","Promise","all","reduce","promises","u","miniCssF","g","globalThis","Function","window","obj","prop","prototype","hasOwnProperty","inProgress","dataWebpackPrefix","l","url","done","push","script","needAttach","scripts","getElementsByTagName","s","getAttribute","createElement","charset","timeout","nc","setAttribute","src","onScriptComplete","prev","event","onerror","onload","clearTimeout","doneFns","parentNode","removeChild","setTimeout","bind","type","target","head","appendChild","Symbol","toStringTag","value","nmd","paths","p","createStylesheet","fullhref","oldTag","resolve","reject","linkTag","rel","onLinkComplete","errorType","realHref","href","err","Error","code","request","insertBefore","nextSibling","findStylesheet","existingLinkTags","tag","dataHref","existingStyleTags","loadStylesheet","installedCssChunks","miniCss","cssChunks","then","installedChunks","installedChunkData","promise","error","loadingEnded","realSrc","message","webpackJsonpCallback","parentChunkLoadingFunction","data","moreModules","runtime","some","chunkLoadingGlobal","self","__webpack_exports__"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"js/app.10acb235.js","mappings":"iEAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAACE,MAAM,CAAC,GAAK,QAAQ,CAACF,EAAG,aAAa,CAAEF,EAAIK,OAAOC,KAAKC,UAAWL,EAAG,eAAeF,EAAIQ,MAAM,GAAKR,EAAIK,OAAOC,KAAKC,UAA6BP,EAAIQ,KAAtBN,EAAG,gBAAyB,EACvO,EACIO,EAAkB,GCOtB,GAEC,ECXwO,I,U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B1E,KAAKuB,KAAKmD,G,ICpFvF,IAAIE,EAAsB1I,EAAoBa,OAAEV,EAAW,CAAC,MAAM,WAAa,OAAOH,EAAoB,IAAM,IAChH0I,EAAsB1I,EAAoBa,EAAE6H,E","sources":["webpack://erp/./src/App.vue","webpack://erp/src/App.vue","webpack://erp/./src/App.vue?c036","webpack://erp/./src/App.vue?0e40","webpack://erp/./src/router/index.js","webpack://erp/./src/store/index.js","webpack://erp/./src/router/list.js","webpack://erp/./src/router/main.js","webpack://erp/./src/main.js","webpack://erp/webpack/bootstrap","webpack://erp/webpack/runtime/amd options","webpack://erp/webpack/runtime/chunk loaded","webpack://erp/webpack/runtime/compat get default export","webpack://erp/webpack/runtime/define property getters","webpack://erp/webpack/runtime/ensure chunk","webpack://erp/webpack/runtime/get javascript chunk filename","webpack://erp/webpack/runtime/get mini-css chunk filename","webpack://erp/webpack/runtime/global","webpack://erp/webpack/runtime/hasOwnProperty shorthand","webpack://erp/webpack/runtime/load script","webpack://erp/webpack/runtime/make namespace object","webpack://erp/webpack/runtime/node module decorator","webpack://erp/webpack/runtime/publicPath","webpack://erp/webpack/runtime/css loading","webpack://erp/webpack/runtime/jsonp chunk loading","webpack://erp/webpack/startup"],"sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{attrs:{\"id\":\"app\"}},[_c('keep-alive',[(_vm.$route.meta.keepAlive)?_c('router-view'):_vm._e()],1),(!_vm.$route.meta.keepAlive)?_c('router-view'):_vm._e()],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n\r\n\r\n\r\n","import mod from \"-!../node_modules/thread-loader/dist/cjs.js!../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./App.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../node_modules/thread-loader/dist/cjs.js!../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./App.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./App.vue?vue&type=template&id=a31aa596\"\nimport script from \"./App.vue?vue&type=script&lang=js\"\nexport * from \"./App.vue?vue&type=script&lang=js\"\nimport style0 from \"./App.vue?vue&type=style&index=0&id=a31aa596&prod&lang=scss\"\n\n\n/* normalize component */\nimport normalizer from \"!../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","import Vue from \"vue\";\r\nimport VueRouter from \"vue-router\";\r\n\r\nVue.use(VueRouter);\r\n\r\nconst createRouter = () =>\r\n new VueRouter({\r\n scrollBehavior: () => ({ y: 0 }),\r\n });\r\n\r\nconst router = createRouter();\r\n\r\nrouter.beforeEach((to, from, next) => {\r\n const token = localStorage.getItem(\"token\");\r\n // 目标路由不是登录页,并且还需要token验证,还没有token,那就直接给返回到登录页\r\n if (to.name !== \"Login\" && !token) {\r\n next({ name: \"Login\" });\r\n } else {\r\n // 目标路由是登录页-自然不需要token验证\r\n // 或目标路由不需要身份验证\r\n // 又或目标路由非登录页,需要token验证,但是有token\r\n // next放行\r\n next();\r\n }\r\n});\r\n\r\nexport default router;\r\n","import Vue from 'vue'\r\nimport Vuex from 'vuex'\r\n\r\nVue.use(Vuex)\r\n\r\nexport default new Vuex.Store({\r\n state: {\r\n },\r\n mutations: {\r\n },\r\n actions: {\r\n },\r\n modules: {\r\n }\r\n})\r\n","const list = [\r\n {\r\n path: \"/Login\",\r\n name: \"Login\",\r\n component: () => import(\"../views/Login.vue\"),\r\n },\r\n {\r\n path: \"/\",\r\n component: () => import(\"../views/index.vue\"),\r\n children: [\r\n {\r\n path: \"GOODS_LIST\",\r\n name: \"商品列表\",\r\n component: () => import(\"../views/goods/goods.vue\"),\r\n meta: {\r\n keepAlive: true,\r\n },\r\n },\r\n {\r\n path: \"ADDGOODS\",\r\n name: \"新增商品/规格\",\r\n component: () => import(\"../views/goods/addgoods/addgoods.vue\"),\r\n },\r\n {\r\n path: \"EDIT_GOODS\",\r\n name: \"修改商品规格\",\r\n component: () => import(\"../views/goods/editgoods.vue\"),\r\n },\r\n {\r\n path: \"/\",\r\n redirect: \"GOODS_LIST\",\r\n },\r\n {\r\n path: \"GOODS_TYPE\",\r\n name: \"品类管理\",\r\n component: () => import(\"../views/goodsType/goodsType.vue\"),\r\n },\r\n {\r\n path: \"GOODS_BRAND\",\r\n name: \"商品品牌\",\r\n component: () => import(\"../views/brand/brand.vue\"),\r\n },\r\n {\r\n path: \"GOODS_SKU_LOCATION\",\r\n name: \"商品货架\",\r\n component: () => import(\"../views/goods/location.vue\"),\r\n },\r\n {\r\n path: \"GOODS_COMBINATION\",\r\n name: \"组合商品\",\r\n component: () => import(\"../views/goods/combination.vue\"),\r\n },\r\n {\r\n path: \"SHOP_MANAGE\",\r\n name: \"店铺管理\",\r\n component: () => import(\"../views/store/store.vue\"),\r\n },\r\n {\r\n path: \"USER_MANAGE\",\r\n name: \"用户管理\",\r\n component: () => import(\"../views/users/users.vue\"),\r\n },\r\n {\r\n path: \"ROLE_MANAGE\",\r\n name: \"角色管理\",\r\n component: () => import(\"../views/system/role.vue\"),\r\n },\r\n {\r\n path: \"SYSTEM_LOG\",\r\n name: \"系统日志\",\r\n component: () => import(\"../views/logs/logs.vue\"),\r\n },\r\n {\r\n path: \"GOODS_LOG\",\r\n name: \"商品记录\",\r\n component: () => import(\"../views/logs/record.vue\"),\r\n },\r\n {\r\n path: \"PLAT_ORDER_LIST\",\r\n name: \"订单列表\",\r\n component: () => import(\"../views/plat/orderList.vue\"),\r\n },\r\n {\r\n path: \"PLAT_GOODS_LIST\",\r\n name: \"货品列表\",\r\n component: () => import(\"../views/plat/goodsList.vue\"),\r\n },\r\n {\r\n path: \"PLAT_AFTER_SALE_ORDER_LIST\",\r\n name: \"售后单列表\",\r\n component: () => import(\"../views/plat/afterSaleOrder.vue\"),\r\n },\r\n {\r\n path: \"GROUP_MANAGEMENT\",\r\n name: \"团购管理\",\r\n component: () => import(\"../views/group/group.vue\"),\r\n },\r\n {\r\n path: \"GROUP_GOODS_ADD\",\r\n name: \"团购商品新增\",\r\n component: () => import(\"../views/group/addGroup.vue\"),\r\n },\r\n {\r\n path: \"GROUP_GOODS_EDIT\",\r\n name: \"团购商品修改\",\r\n component: () => import(\"../views/group/editGroup.vue\"),\r\n },\r\n {\r\n path: \"FACE_SHEET\",\r\n name: \"电子面单\",\r\n component: () => import(\"../views/plat/faceSheet.vue\"),\r\n },\r\n {\r\n path: \"SALES_REPORT_DATA\",\r\n name: \"销售数据\",\r\n component: () => import(\"../views/dataCenter/salesReport.vue\"),\r\n },\r\n {\r\n path: \"sale_statistics\",\r\n name: \"sku销售统计\",\r\n component: () => import(\"../views/dataCenter/skuStatistics.vue\"),\r\n },\r\n {\r\n path: \"spu_sale_statistics\",\r\n name: \"品种销售统计\",\r\n component: () => import(\"../views/dataCenter/spuStatistics.vue\"),\r\n },\r\n {\r\n path: \"gmv_statistics\",\r\n name: \"交易趋势\",\r\n component: () => import(\"../views/dataCenter/gmvStatistics.vue\"),\r\n },\r\n {\r\n path: \"loss_record_statistics\",\r\n name: \"报损统计\",\r\n component: () => import(\"../views/dataCenter/lossStatistics.vue\"),\r\n },\r\n {\r\n path: \"SUPPLIER_MANAGE\",\r\n name: \"供应商管理\",\r\n component: () => import(\"../views/supplyChain/supplier.vue\")\r\n },\r\n {\r\n path: \"PURCHASE_RECORD\",\r\n name: \"商品采购\",\r\n component: () => import(\"../views/supplyChain/procureLog.vue\")\r\n },\r\n {\r\n path: \"PURCHASE_RECORD_CHECK\",\r\n name: \"质检入库\",\r\n component: () => import(\"../views/supplyChain/procureCheck.vue\")\r\n },\r\n {\r\n path: \"LOSS_RECORD\",\r\n name: \"仓库报损\",\r\n component: () => import(\"../views/supplyChain/lossRecord.vue\")\r\n },\r\n {\r\n path: \"DAILY_STOCK_RECORD\",\r\n name: \"库存盘点\",\r\n component: () => import(\"../views/supplyChain/dailyStock.vue\")\r\n }\r\n ]\r\n }\r\n]\r\n\r\nexport default list\r\n","import router from './index'\r\nimport List from './list'\r\n\r\nList.forEach(element => {\r\n router.addRoute(element) // 动态添加更多的路由规则\r\n})\r\n","import Vue from \"vue\";\r\nimport App from \"./App.vue\";\r\nimport router from \"./router\";\r\nimport store from \"./store\";\r\nimport ElementUI from \"element-ui\";\r\nimport \"element-ui/lib/theme-chalk/index.css\";\r\nimport \"@/css/style.css\";\r\nimport \"./router/main\";\r\n\r\nVue.use(ElementUI, {\r\n size: 'small'\r\n});\r\nVue.config.productionTip = false;\r\n\r\nnew Vue({\r\n router,\r\n store,\r\n render: (h) => h(App),\r\n}).$mount(\"#app\");\r\n\r\ndocument.title = \"春分ERP-鲜花\";\r\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\tid: moduleId,\n\t\tloaded: false,\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Flag the module as loaded\n\tmodule.loaded = true;\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","__webpack_require__.amdO = {};","var deferred = [];\n__webpack_require__.O = function(result, chunkIds, fn, priority) {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar chunkIds = deferred[i][0];\n\t\tvar fn = deferred[i][1];\n\t\tvar priority = deferred[i][2];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every(function(key) { return __webpack_require__.O[key](chunkIds[j]); })) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = function(module) {\n\tvar getter = module && module.__esModule ?\n\t\tfunction() { return module['default']; } :\n\t\tfunction() { return module; };\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.f = {};\n// This file contains only the entry chunk.\n// The chunk loading function for additional chunks\n__webpack_require__.e = function(chunkId) {\n\treturn Promise.all(Object.keys(__webpack_require__.f).reduce(function(promises, key) {\n\t\t__webpack_require__.f[key](chunkId, promises);\n\t\treturn promises;\n\t}, []));\n};","// This function allow to reference async chunks\n__webpack_require__.u = function(chunkId) {\n\t// return url for filenames based on template\n\treturn \"js/\" + chunkId + \".\" + {\"19\":\"39213a6d\",\"24\":\"1eaace62\",\"64\":\"2db5913e\",\"120\":\"5d42b8fb\",\"132\":\"0557c76c\",\"147\":\"34297e9a\",\"192\":\"71ec2e85\",\"193\":\"99e24d2b\",\"197\":\"9f943505\",\"199\":\"5e20f3e2\",\"200\":\"fbda0d79\",\"206\":\"f31f5e61\",\"283\":\"b0b443fa\",\"298\":\"c971cd33\",\"301\":\"1f602c86\",\"417\":\"5d40a6d8\",\"430\":\"728d93d4\",\"444\":\"bdf6e547\",\"454\":\"4e7d9fc6\",\"463\":\"09656921\",\"465\":\"630ca1a8\",\"551\":\"d3396e3a\",\"583\":\"5bbe4636\",\"654\":\"9b16d70f\",\"688\":\"1ffe9e5d\",\"691\":\"c4036076\",\"806\":\"6fa0f083\",\"839\":\"f5901bd7\",\"850\":\"3d04d1d4\",\"924\":\"e619e841\",\"931\":\"79e27d13\",\"967\":\"0072dd64\",\"973\":\"14434d3f\",\"984\":\"afbbd0d9\",\"990\":\"e354f872\",\"999\":\"7767bffa\"}[chunkId] + \".js\";\n};","// This function allow to reference async chunks\n__webpack_require__.miniCssF = function(chunkId) {\n\t// return url for filenames based on template\n\treturn \"css/\" + chunkId + \".\" + {\"19\":\"d40c35ff\",\"24\":\"609ab1fb\",\"64\":\"403e055c\",\"120\":\"497aa257\",\"132\":\"e6e4e404\",\"147\":\"610fa777\",\"192\":\"5c0a41ae\",\"193\":\"434fb0ab\",\"197\":\"e8b8bfee\",\"199\":\"fc892afb\",\"200\":\"d1f3c50b\",\"206\":\"5c0a41ae\",\"298\":\"d943cf60\",\"417\":\"c022f0a7\",\"444\":\"5c5179a7\",\"454\":\"0d07cd09\",\"463\":\"5c0a41ae\",\"465\":\"162dccfd\",\"551\":\"24d983f8\",\"654\":\"83822904\",\"688\":\"97f84af6\",\"691\":\"de1fc96e\",\"806\":\"f3652123\",\"839\":\"307cb16e\",\"850\":\"4fa8ccec\",\"924\":\"5c0a41ae\",\"931\":\"cf2e1900\",\"967\":\"ab361ac1\",\"973\":\"5c0a41ae\",\"984\":\"3115be6a\",\"990\":\"f504d809\",\"999\":\"0ae01dd7\"}[chunkId] + \".css\";\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","var inProgress = {};\nvar dataWebpackPrefix = \"erp:\";\n// loadScript function to load a script via script tag\n__webpack_require__.l = function(url, done, key, chunkId) {\n\tif(inProgress[url]) { inProgress[url].push(done); return; }\n\tvar script, needAttach;\n\tif(key !== undefined) {\n\t\tvar scripts = document.getElementsByTagName(\"script\");\n\t\tfor(var i = 0; i < scripts.length; i++) {\n\t\t\tvar s = scripts[i];\n\t\t\tif(s.getAttribute(\"src\") == url || s.getAttribute(\"data-webpack\") == dataWebpackPrefix + key) { script = s; break; }\n\t\t}\n\t}\n\tif(!script) {\n\t\tneedAttach = true;\n\t\tscript = document.createElement('script');\n\n\t\tscript.charset = 'utf-8';\n\t\tscript.timeout = 120;\n\t\tif (__webpack_require__.nc) {\n\t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n\t\t}\n\t\tscript.setAttribute(\"data-webpack\", dataWebpackPrefix + key);\n\n\t\tscript.src = url;\n\t}\n\tinProgress[url] = [done];\n\tvar onScriptComplete = function(prev, event) {\n\t\t// avoid mem leaks in IE.\n\t\tscript.onerror = script.onload = null;\n\t\tclearTimeout(timeout);\n\t\tvar doneFns = inProgress[url];\n\t\tdelete inProgress[url];\n\t\tscript.parentNode && script.parentNode.removeChild(script);\n\t\tdoneFns && doneFns.forEach(function(fn) { return fn(event); });\n\t\tif(prev) return prev(event);\n\t}\n\tvar timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);\n\tscript.onerror = onScriptComplete.bind(null, script.onerror);\n\tscript.onload = onScriptComplete.bind(null, script.onload);\n\tneedAttach && document.head.appendChild(script);\n};","// define __esModule on exports\n__webpack_require__.r = function(exports) {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.nmd = function(module) {\n\tmodule.paths = [];\n\tif (!module.children) module.children = [];\n\treturn module;\n};","__webpack_require__.p = \"\";","if (typeof document === \"undefined\") return;\nvar createStylesheet = function(chunkId, fullhref, oldTag, resolve, reject) {\n\tvar linkTag = document.createElement(\"link\");\n\n\tlinkTag.rel = \"stylesheet\";\n\tlinkTag.type = \"text/css\";\n\tvar onLinkComplete = function(event) {\n\t\t// avoid mem leaks.\n\t\tlinkTag.onerror = linkTag.onload = null;\n\t\tif (event.type === 'load') {\n\t\t\tresolve();\n\t\t} else {\n\t\t\tvar errorType = event && event.type;\n\t\t\tvar realHref = event && event.target && event.target.href || fullhref;\n\t\t\tvar err = new Error(\"Loading CSS chunk \" + chunkId + \" failed.\\n(\" + errorType + \": \" + realHref + \")\");\n\t\t\terr.name = \"ChunkLoadError\";\n\t\t\terr.code = \"CSS_CHUNK_LOAD_FAILED\";\n\t\t\terr.type = errorType;\n\t\t\terr.request = realHref;\n\t\t\tif (linkTag.parentNode) linkTag.parentNode.removeChild(linkTag)\n\t\t\treject(err);\n\t\t}\n\t}\n\tlinkTag.onerror = linkTag.onload = onLinkComplete;\n\tlinkTag.href = fullhref;\n\n\tif (oldTag) {\n\t\toldTag.parentNode.insertBefore(linkTag, oldTag.nextSibling);\n\t} else {\n\t\tdocument.head.appendChild(linkTag);\n\t}\n\treturn linkTag;\n};\nvar findStylesheet = function(href, fullhref) {\n\tvar existingLinkTags = document.getElementsByTagName(\"link\");\n\tfor(var i = 0; i < existingLinkTags.length; i++) {\n\t\tvar tag = existingLinkTags[i];\n\t\tvar dataHref = tag.getAttribute(\"data-href\") || tag.getAttribute(\"href\");\n\t\tif(tag.rel === \"stylesheet\" && (dataHref === href || dataHref === fullhref)) return tag;\n\t}\n\tvar existingStyleTags = document.getElementsByTagName(\"style\");\n\tfor(var i = 0; i < existingStyleTags.length; i++) {\n\t\tvar tag = existingStyleTags[i];\n\t\tvar dataHref = tag.getAttribute(\"data-href\");\n\t\tif(dataHref === href || dataHref === fullhref) return tag;\n\t}\n};\nvar loadStylesheet = function(chunkId) {\n\treturn new Promise(function(resolve, reject) {\n\t\tvar href = __webpack_require__.miniCssF(chunkId);\n\t\tvar fullhref = __webpack_require__.p + href;\n\t\tif(findStylesheet(href, fullhref)) return resolve();\n\t\tcreateStylesheet(chunkId, fullhref, null, resolve, reject);\n\t});\n}\n// object to store loaded CSS chunks\nvar installedCssChunks = {\n\t143: 0\n};\n\n__webpack_require__.f.miniCss = function(chunkId, promises) {\n\tvar cssChunks = {\"19\":1,\"24\":1,\"64\":1,\"120\":1,\"132\":1,\"147\":1,\"192\":1,\"193\":1,\"197\":1,\"199\":1,\"200\":1,\"206\":1,\"298\":1,\"417\":1,\"444\":1,\"454\":1,\"463\":1,\"465\":1,\"551\":1,\"654\":1,\"688\":1,\"691\":1,\"806\":1,\"839\":1,\"850\":1,\"924\":1,\"931\":1,\"967\":1,\"973\":1,\"984\":1,\"990\":1,\"999\":1};\n\tif(installedCssChunks[chunkId]) promises.push(installedCssChunks[chunkId]);\n\telse if(installedCssChunks[chunkId] !== 0 && cssChunks[chunkId]) {\n\t\tpromises.push(installedCssChunks[chunkId] = loadStylesheet(chunkId).then(function() {\n\t\t\tinstalledCssChunks[chunkId] = 0;\n\t\t}, function(e) {\n\t\t\tdelete installedCssChunks[chunkId];\n\t\t\tthrow e;\n\t\t}));\n\t}\n};\n\n// no hmr","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t143: 0\n};\n\n__webpack_require__.f.j = function(chunkId, promises) {\n\t\t// JSONP chunk loading for javascript\n\t\tvar installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;\n\t\tif(installedChunkData !== 0) { // 0 means \"already installed\".\n\n\t\t\t// a Promise means \"currently loading\".\n\t\t\tif(installedChunkData) {\n\t\t\t\tpromises.push(installedChunkData[2]);\n\t\t\t} else {\n\t\t\t\tif(true) { // all chunks have JS\n\t\t\t\t\t// setup Promise in chunk cache\n\t\t\t\t\tvar promise = new Promise(function(resolve, reject) { installedChunkData = installedChunks[chunkId] = [resolve, reject]; });\n\t\t\t\t\tpromises.push(installedChunkData[2] = promise);\n\n\t\t\t\t\t// start chunk loading\n\t\t\t\t\tvar url = __webpack_require__.p + __webpack_require__.u(chunkId);\n\t\t\t\t\t// create error before stack unwound to get useful stacktrace later\n\t\t\t\t\tvar error = new Error();\n\t\t\t\t\tvar loadingEnded = function(event) {\n\t\t\t\t\t\tif(__webpack_require__.o(installedChunks, chunkId)) {\n\t\t\t\t\t\t\tinstalledChunkData = installedChunks[chunkId];\n\t\t\t\t\t\t\tif(installedChunkData !== 0) installedChunks[chunkId] = undefined;\n\t\t\t\t\t\t\tif(installedChunkData) {\n\t\t\t\t\t\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n\t\t\t\t\t\t\t\tvar realSrc = event && event.target && event.target.src;\n\t\t\t\t\t\t\t\terror.message = 'Loading chunk ' + chunkId + ' failed.\\n(' + errorType + ': ' + realSrc + ')';\n\t\t\t\t\t\t\t\terror.name = 'ChunkLoadError';\n\t\t\t\t\t\t\t\terror.type = errorType;\n\t\t\t\t\t\t\t\terror.request = realSrc;\n\t\t\t\t\t\t\t\tinstalledChunkData[1](error);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t\t__webpack_require__.l(url, loadingEnded, \"chunk-\" + chunkId, chunkId);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n};\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = function(chunkId) { return installedChunks[chunkId] === 0; };\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = function(parentChunkLoadingFunction, data) {\n\tvar chunkIds = data[0];\n\tvar moreModules = data[1];\n\tvar runtime = data[2];\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some(function(id) { return installedChunks[id] !== 0; })) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunkerp\"] = self[\"webpackChunkerp\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [998], function() { return __webpack_require__(462); })\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n"],"names":["render","_vm","this","_c","_self","attrs","$route","meta","keepAlive","_e","staticRenderFns","component","Vue","use","VueRouter","createRouter","scrollBehavior","y","router","beforeEach","to","from","next","token","localStorage","getItem","name","Vuex","state","mutations","actions","modules","list","path","children","redirect","List","forEach","element","addRoute","ElementUI","size","config","productionTip","store","h","App","$mount","document","title","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","exports","module","id","loaded","__webpack_modules__","call","m","amdO","deferred","O","result","chunkIds","fn","priority","notFulfilled","Infinity","i","length","fulfilled","j","Object","keys","every","key","splice","r","n","getter","__esModule","d","a","definition","o","defineProperty","enumerable","get","f","e","chunkId","Promise","all","reduce","promises","u","miniCssF","g","globalThis","Function","window","obj","prop","prototype","hasOwnProperty","inProgress","dataWebpackPrefix","l","url","done","push","script","needAttach","scripts","getElementsByTagName","s","getAttribute","createElement","charset","timeout","nc","setAttribute","src","onScriptComplete","prev","event","onerror","onload","clearTimeout","doneFns","parentNode","removeChild","setTimeout","bind","type","target","head","appendChild","Symbol","toStringTag","value","nmd","paths","p","createStylesheet","fullhref","oldTag","resolve","reject","linkTag","rel","onLinkComplete","errorType","realHref","href","err","Error","code","request","insertBefore","nextSibling","findStylesheet","existingLinkTags","tag","dataHref","existingStyleTags","loadStylesheet","installedCssChunks","miniCss","cssChunks","then","installedChunks","installedChunkData","promise","error","loadingEnded","realSrc","message","webpackJsonpCallback","parentChunkLoadingFunction","data","moreModules","runtime","some","chunkLoadingGlobal","self","__webpack_exports__"],"sourceRoot":""} \ No newline at end of file diff --git a/public/dist/js/app.f1ce3c3c.js b/public/dist/js/app.f1ce3c3c.js deleted file mode 100644 index 187002e..0000000 --- a/public/dist/js/app.f1ce3c3c.js +++ /dev/null @@ -1,2 +0,0 @@ -(function(){"use strict";var e={462:function(e,n,t){var o=t(144),a=function(){var e=this,n=e._self._c;return n("div",{attrs:{id:"app"}},[n("keep-alive",[e.$route.meta.keepAlive?n("router-view"):e._e()],1),e.$route.meta.keepAlive?e._e():n("router-view")],1)},r=[],i={},c=i,l=t(1001),u=(0,l.Z)(c,a,r,!1,null,null,null),d=u.exports,f=t(8345);o["default"].use(f.ZP);const m=()=>new f.ZP({scrollBehavior:()=>({y:0})}),s=m();s.beforeEach(((e,n,t)=>{const o=localStorage.getItem("token");"Login"===e.name||o?t():t({name:"Login"})}));var p=s,h=t(629);o["default"].use(h.ZP);var b=new h.ZP.Store({state:{},mutations:{},actions:{},modules:{}}),v=t(4720),O=t.n(v);const P=[{path:"/Login",name:"Login",component:()=>Promise.all([t.e(430),t.e(301),t.e(200)]).then(t.bind(t,7240))},{path:"/",component:()=>Promise.all([t.e(430),t.e(301),t.e(850)]).then(t.bind(t,1043)),children:[{path:"GOODS_LIST",name:"商品列表",component:()=>Promise.all([t.e(430),t.e(301),t.e(444),t.e(298)]).then(t.bind(t,4298)),meta:{keepAlive:!0}},{path:"ADDGOODS",name:"新增商品/规格",component:()=>Promise.all([t.e(430),t.e(301),t.e(444),t.e(465)]).then(t.bind(t,8465))},{path:"EDIT_GOODS",name:"修改商品规格",component:()=>Promise.all([t.e(430),t.e(301),t.e(444),t.e(691)]).then(t.bind(t,5691))},{path:"/",redirect:"GOODS_LIST"},{path:"GOODS_TYPE",name:"品类管理",component:()=>Promise.all([t.e(430),t.e(301),t.e(444),t.e(454)]).then(t.bind(t,3454))},{path:"GOODS_BRAND",name:"商品品牌",component:()=>Promise.all([t.e(430),t.e(984)]).then(t.bind(t,9851))},{path:"GOODS_SKU_LOCATION",name:"商品货架",component:()=>Promise.all([t.e(430),t.e(132)]).then(t.bind(t,1019))},{path:"GOODS_COMBINATION",name:"组合商品",component:()=>Promise.all([t.e(430),t.e(301),t.e(197)]).then(t.bind(t,8180))},{path:"SHOP_MANAGE",name:"店铺管理",component:()=>Promise.all([t.e(430),t.e(613)]).then(t.bind(t,5199))},{path:"USER_MANAGE",name:"用户管理",component:()=>Promise.all([t.e(430),t.e(931)]).then(t.bind(t,8406))},{path:"ROLE_MANAGE",name:"角色管理",component:()=>Promise.all([t.e(430),t.e(551)]).then(t.bind(t,796))},{path:"SYSTEM_LOG",name:"系统日志",component:()=>Promise.all([t.e(430),t.e(206)]).then(t.bind(t,2761))},{path:"GOODS_LOG",name:"商品记录",component:()=>Promise.all([t.e(430),t.e(688)]).then(t.bind(t,4702))},{path:"PLAT_ORDER_LIST",name:"订单列表",component:()=>Promise.all([t.e(430),t.e(301),t.e(808)]).then(t.bind(t,9770))},{path:"PLAT_GOODS_LIST",name:"货品列表",component:()=>Promise.all([t.e(430),t.e(999)]).then(t.bind(t,6784))},{path:"PLAT_AFTER_SALE_ORDER_LIST",name:"售后单列表",component:()=>Promise.all([t.e(430),t.e(301),t.e(147)]).then(t.bind(t,8810))},{path:"GROUP_MANAGEMENT",name:"团购管理",component:()=>Promise.all([t.e(430),t.e(301),t.e(192)]).then(t.bind(t,2175))},{path:"GROUP_GOODS_ADD",name:"团购商品新增",component:()=>Promise.all([t.e(430),t.e(301),t.e(973)]).then(t.bind(t,7166))},{path:"GROUP_GOODS_EDIT",name:"团购商品修改",component:()=>Promise.all([t.e(430),t.e(301),t.e(924)]).then(t.bind(t,5174))},{path:"FACE_SHEET",name:"电子面单",component:()=>Promise.all([t.e(430),t.e(64)]).then(t.bind(t,1404))},{path:"SALES_REPORT_DATA",name:"销售数据",component:()=>Promise.all([t.e(430),t.e(654)]).then(t.bind(t,5671))},{path:"sale_statistics",name:"sku销售统计",component:()=>Promise.all([t.e(430),t.e(193)]).then(t.bind(t,1980))},{path:"spu_sale_statistics",name:"品种销售统计",component:()=>Promise.all([t.e(430),t.e(990)]).then(t.bind(t,9651))},{path:"gmv_statistics",name:"交易趋势",component:()=>Promise.all([t.e(430),t.e(301),t.e(583),t.e(806)]).then(t.bind(t,1618))},{path:"loss_record_statistics",name:"报损统计",component:()=>Promise.all([t.e(430),t.e(301),t.e(583),t.e(199)]).then(t.bind(t,8824))},{path:"SUPPLIER_MANAGE",name:"供应商管理",component:()=>Promise.all([t.e(430),t.e(967)]).then(t.bind(t,54))},{path:"PURCHASE_RECORD",name:"商品采购",component:()=>Promise.all([t.e(430),t.e(301),t.e(839)]).then(t.bind(t,4124))},{path:"PURCHASE_RECORD_CHECK",name:"质检入库",component:()=>Promise.all([t.e(430),t.e(301),t.e(120)]).then(t.bind(t,3966))},{path:"LOSS_RECORD",name:"仓库报损",component:()=>Promise.all([t.e(430),t.e(301),t.e(417)]).then(t.bind(t,2419))},{path:"DAILY_STOCK_RECORD",name:"库存盘点",component:()=>Promise.all([t.e(430),t.e(301),t.e(24)]).then(t.bind(t,4309))}]}];var _=P;_.forEach((e=>{p.addRoute(e)})),o["default"].use(O(),{size:"small"}),o["default"].config.productionTip=!1,new o["default"]({router:p,store:b,render:e=>e(d)}).$mount("#app"),document.title="春分ERP-鲜花"}},n={};function t(o){var a=n[o];if(void 0!==a)return a.exports;var r=n[o]={id:o,loaded:!1,exports:{}};return e[o].call(r.exports,r,r.exports,t),r.loaded=!0,r.exports}t.m=e,function(){t.amdO={}}(),function(){var e=[];t.O=function(n,o,a,r){if(!o){var i=1/0;for(d=0;d=r)&&Object.keys(t.O).every((function(e){return t.O[e](o[l])}))?o.splice(l--,1):(c=!1,r0&&e[d-1][2]>r;d--)e[d]=e[d-1];e[d]=[o,a,r]}}(),function(){t.n=function(e){var n=e&&e.__esModule?function(){return e["default"]}:function(){return e};return t.d(n,{a:n}),n}}(),function(){t.d=function(e,n){for(var o in n)t.o(n,o)&&!t.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:n[o]})}}(),function(){t.f={},t.e=function(e){return Promise.all(Object.keys(t.f).reduce((function(n,o){return t.f[o](e,n),n}),[]))}}(),function(){t.u=function(e){return"js/"+e+"."+{24:"1eaace62",64:"7efc004a",120:"5d42b8fb",132:"0557c76c",147:"53e38aa6",192:"71ec2e85",193:"99e24d2b",197:"9f943505",199:"5e20f3e2",200:"fbda0d79",206:"f31f5e61",283:"b0b443fa",298:"143f4f4b",301:"1f602c86",417:"5d40a6d8",430:"728d93d4",444:"bdf6e547",454:"4e7d9fc6",465:"630ca1a8",551:"d3396e3a",583:"5bbe4636",613:"5a7f6161",654:"9b16d70f",688:"1ffe9e5d",691:"c4036076",806:"6fa0f083",808:"eabeec45",839:"f5901bd7",850:"3d04d1d4",924:"e619e841",931:"79e27d13",967:"0072dd64",973:"14434d3f",984:"afbbd0d9",990:"e354f872",999:"1bc20d27"}[e]+".js"}}(),function(){t.miniCssF=function(e){return"css/"+e+"."+{24:"609ab1fb",64:"403e055c",120:"497aa257",132:"e6e4e404",147:"610fa777",192:"5c0a41ae",193:"434fb0ab",197:"e8b8bfee",199:"fc892afb",200:"d1f3c50b",206:"5c0a41ae",298:"d943cf60",417:"c022f0a7",444:"5c5179a7",454:"0d07cd09",465:"162dccfd",551:"24d983f8",613:"a4b31826",654:"83822904",688:"97f84af6",691:"de1fc96e",806:"f3652123",808:"5c0a41ae",839:"307cb16e",850:"4fa8ccec",924:"5c0a41ae",931:"cf2e1900",967:"ab361ac1",973:"5c0a41ae",984:"3115be6a",990:"f504d809",999:"0ae01dd7"}[e]+".css"}}(),function(){t.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)}}(),function(){var e={},n="erp:";t.l=function(o,a,r,i){if(e[o])e[o].push(a);else{var c,l;if(void 0!==r)for(var u=document.getElementsByTagName("script"),d=0;d Date: Sat, 28 Dec 2024 16:01:15 +0800 Subject: [PATCH 8/8] =?UTF-8?q?=E4=BA=AC=E4=B8=9C=E6=89=93=E5=8D=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- routes/console.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/routes/console.php b/routes/console.php index dff17a1..8e86ce8 100644 --- a/routes/console.php +++ b/routes/console.php @@ -15,7 +15,5 @@ use Illuminate\Foundation\Inspiring; */ Artisan::command('inspire', function () { - $order= \App\Models\BusinessOrder::query()->find(6582); - BusinessFactory::init()->make($order->shop->plat_id)->setShop($order->shop)->queryStatusAndSync($order); $this->comment(Inspiring::quote()); })->describe('Display an inspiring quote');