diff --git a/app/common/repositories/store/order/StoreOrderCreateRepository.php b/app/common/repositories/store/order/StoreOrderCreateRepository.php
index 36c901c6..09a89555 100644
--- a/app/common/repositories/store/order/StoreOrderCreateRepository.php
+++ b/app/common/repositories/store/order/StoreOrderCreateRepository.php
@@ -71,7 +71,8 @@ class StoreOrderCreateRepository extends StoreOrderRepository
$order_extend = [];
//检查商品类型, 活动商品只能单独购买
foreach ($merchantCartList as $merchantCart) {
- if($merchantCart['type_id']!=Merchant::TypeSupplyChain){
+
+ if(($merchantCart['type_id']!=Merchant::TypeSupplyChain)&&$address){
if($merchantCart['street_id']!=$address['street_code']){
throw new ValidateException('不支持跨区域购买,请在【我的】-【地址管理】更改后重新购买');
}
diff --git a/app/common/repositories/store/order/StoreOrderCreateRepository.php.bak b/app/common/repositories/store/order/StoreOrderCreateRepository.php.bak
deleted file mode 100644
index d8ec8c4d..00000000
--- a/app/common/repositories/store/order/StoreOrderCreateRepository.php.bak
+++ /dev/null
@@ -1,1360 +0,0 @@
-uid;
- $userIntegral = $user->integral;
- $key = md5(json_encode(compact('cartId', 'takes', 'useCoupon', 'useIntegral', 'addressId'))) . $uid;
- app()->make(StoreCouponUserRepository::class)->failCoupon();
- $address = null;
- //验证地址
- if ($addressId) {
- $addressRepository = app()->make(UserAddressRepository::class);
- $address = $addressRepository->getWhere(['uid' => $uid, 'address_id' => $addressId]);
- }
-
- $storeCartRepository = app()->make(StoreCartRepository::class);
- $res = $storeCartRepository->checkCartList($storeCartRepository->cartIbByData($cartId, $uid, $address), 0, $user);
- $merchantCartList = $res['list'];
- $fail = $res['fail'];
-
- //检查购物车失效数据
- if (count($fail)) {
- if ($fail[0]['is_fail'])
- throw new ValidateException('[已失效]' . mb_substr($fail[0]['product']['store_name'],0,10).'...');
- if (in_array($fail[0]['product_type'], [1, 2, 3]) && !$fail[0]['userPayCount']) {
- throw new ValidateException('[超出限购数]' . mb_substr($fail[0]['product']['store_name'],0,10).'...');
- }
- throw new ValidateException('[已失效]' . mb_substr($fail[0]['product']['store_name'],0,10).'...');
- }
-
- $svip_status = $user->is_svip > 0 && systemConfig('svip_switch_status') == '1';
- $svip_integral_rate = $svip_status ? app()->make(MemberinterestsRepository::class)->getSvipInterestVal(MemberinterestsRepository::HAS_TYPE_PAY) : 0;
- //订单活动类型
- $order_type = 0;
- //虚拟订单
- $order_model = 0;
- //虚拟订单自定义数据
- $order_extend = [];
- //检查商品类型, 活动商品只能单独购买
- foreach ($merchantCartList as $merchantCart) {
- foreach ($merchantCart['list'] as $cart) {
- if ($cart['product_type']==0) {
- if ($cart['product']['once_min_count'] > 0 && $cart['product']['once_min_count'] > $cart['cart_num'])
- throw new ValidateException('[低于起购数:'.$cart['product']['once_min_count'].']'.mb_substr($cart['product']['store_name'],0,10).'...');
- if ($cart['product']['pay_limit'] == 1 && $cart['product']['once_max_count'] < $cart['cart_num'])
- throw new ValidateException('[超出单次限购数:'.$cart['product']['once_max_count'].']'.mb_substr($cart['product']['store_name'],0,10).'...');
- if ($cart['product']['pay_limit'] == 2){
- //如果长期限购
- //已购买数量
- $count = app()->make(StoreOrderRepository::class)->getMaxCountNumber($cart['uid'],$cart['product_id']);
- if (($cart['cart_num'] + $count) > $cart['product']['once_max_count'])
- throw new ValidateException('[超出限购总数:'. $cart['product']['once_max_count'].']'.mb_substr($cart['product']['store_name'],0,10).'...');
- }
- }
-
- if ($cart['product_type'] > 0) $order_type = $cart['product_type'];
- if ($cart['product_type'] > 0 && (($cart['product_type'] != 10 && count($merchantCart['list']) != 1) || count($merchantCartList) != 1)) {
- throw new ValidateException('活动商品必须单独购买');
- }
- if ($cart['product']['type'] && (count($merchantCart['list']) != 1 || count($merchantCartList) != 1)) {
- throw new ValidateException('虚拟商品必须单独购买');
- }
- $order_model = $cart['product']['type'];
- if ($cart['product']['extend']) {
- $order_extend = json_decode($cart['product']['extend'], true);
- }
- }
- }
- unset($merchantCart, $cart);
-
- $order_price = 0;
- $total_true_price = 0;
- $order_total_price = 0;
- $order_coupon_price = 0;
- $noDeliver = false;
- $presellType = 0;
- $fn = [];
- $enabledPlatformCoupon = !$order_type;
- $order_total_postage = 0;
-
-
- //套餐订单
- if ($order_type == 10) {
- app()->make(StoreDiscountRepository::class)
- ->check($merchantCartList[0]['list'][0]['source_id'], $merchantCartList[0]['list'], $user);
- }
-
- $orderDeliveryStatus = true;
- $order_svip_discount = 0;
- // 循环计算每个店铺的订单数据
- foreach ($merchantCartList as &$merchantCart) {
- $postageRule = [];
- $total_price = 0;
- $total_num = 0;
- $valid_total_price = 0;
- $postage_price = 0;
- $product_price = [];
- $final_price = 0;
- $down_price = 0;
- $total_svip_discount = 0;
-
- //是否自提
- $isTake = in_array($merchantCart['mer_id'], $takes ?? []);
-
-// if (!$createOrder && !$isTake) {
-// $isTake = count($merchantCart['delivery_way']) == 1 && $merchantCart['delivery_way'][0] == '1';
-// }
-
- $merTake = in_array('1', $merchantCart['delivery_way'], true);
- $merDelivery = (!$merchantCart['delivery_way'] || !count($merchantCart['delivery_way']) || in_array('2', $merchantCart['delivery_way'], true));
- $_merTake = $merTake;
- $_merDelivery = $merDelivery;
- $deliveryStatus = true;
- if ($createOrder && $isTake && !$merTake) {
- $deliveryStatus = false;
-// throw new ValidateException('[仅支持快递配送]' . $merchantCart['mer_name']);
- }
- $product_cart = [];
-
- foreach ($merchantCart['list'] as $k => $cart) {
- //获取订单类型, 活动商品单次只能购买一个
- if ($cart['product']['delivery_way']) {
- $delivery_way = explode(',', $cart['product']['delivery_way']);
- $proTake = in_array('1', $delivery_way, true);
- $merTake = $merTake && $proTake;
- $proDelivery = (!count($delivery_way) || in_array('2', $delivery_way, true));
- $merDelivery = $merDelivery && $proDelivery;
- $merchantCart['list'][$k]['allow_take'] = $proTake;
- $merchantCart['list'][$k]['allow_delivery'] = $proDelivery;
- } else {
- $merchantCart['list'][$k]['allow_take'] = $_merTake;
- $merchantCart['list'][$k]['allow_delivery'] = $_merDelivery;
- }
- if ($createOrder && $isTake && !$merTake) {
- $deliveryStatus = false;
-// throw new ValidateException('[仅支持快递配送]' . $cart['product']['store_name']);
- }
- }
- if (!$merDelivery && !$merTake) {
- $deliveryStatus = false;
-// throw new ValidateException('部分商品配送方式不一致,请单独下单');
- }
- if ($deliveryStatus && !$isTake && ($merDelivery || $merTake)) {
- $isTake = $merDelivery ? 0 : 1;
- }
- //加载商品数据
- foreach ($merchantCart['list'] as $cart) {
- //预售订单
- if ($cart['product_type'] == 2) {
- $cart->append(['productPresell', 'productPresellAttr']);
- //助力订单
- } else if ($cart['product_type'] == 3) {
- $cart->append(['productAssistAttr']);
- //拼团订单
- } else if ($cart['product_type'] == 4) {
- $cart->append(['activeSku']);
- //套餐订单
- } else if ($cart['product_type'] == 10) {
- $cart->append(['productDiscount', 'productDiscountAttr']);
- }
-
- //如果是预售订单 获取预售的订单的首款,尾款预售类型
- if ($order_type == 2) {
- $final_price = bcadd($final_price, bcmul($cart['cart_num'], $cart['productPresellAttr']['final_price'], 2), 2);
- $presellType = $cart['productPresell']['presell_type'];
- if ($presellType == 2)
- $down_price = bcadd($down_price, bcmul($cart['cart_num'], $cart['productPresellAttr']['down_price'], 2), 2);
- }
- }
- unset($cart);
-
- $enabledCoupon = !($order_type && $order_type != 2);
-
- //只有预售和普通商品可以用优惠券
- if (!$enabledCoupon) {
- $merchantCart['coupon'] = [];
- }
- $svip_coupon_merge = merchantConfig($merchantCart['mer_id'], 'svip_coupon_merge');
- $use_svip = 0;
- //获取运费规则和统计商品数据
- foreach ($merchantCart['list'] as &$cart) {
-
- if ($cart['product_type'] == 10 && $cart['productDiscountAttr']) {
- $cart['productAttr']['price'] = $cart['productDiscountAttr']['active_price'];
- $cart['productAttr']['show_svip_price'] = false;
- }
-
- if ($cart['cart_num'] <= 0) {
- throw new ValidateException('购买商品数必须大于0');
- }
- $svip_discount = 0;
-
- $price = bcmul($cart['cart_num'], $this->cartByPrice($cart), 2);
- $cart['total_price'] = $price;
- $cart['postage_price'] = 0;
- $cart['svip_discount'] = 0;
- $total_price = bcadd($total_price, $price, 2);
- $total_num += $cart['cart_num'];
- $_price = bcmul($cart['cart_num'], $this->cartByCouponPrice($cart), 2);
- $cart['svip_coupon_merge'] = 1;
- if ($cart['productAttr']['show_svip_price'] && !$cart['product_type']) {
- $svip_discount = max(bcmul($cart['cart_num'], bcsub($cart['productAttr']['org_price'] ?? 0, $cart['productAttr']['price'], 2), 2), 0);
- if ($svip_coupon_merge != '1') {
- $_price = 0;
- $cart['svip_coupon_merge'] = 0;
- }
- $use_svip = 1;
- }
- $valid_total_price = bcadd($valid_total_price, $_price, 2);
- $cart['allow_price'] = $_price;
- $temp1 = $cart['product']['temp'];
- $cart['temp_number'] = 0;
- $total_svip_discount = bcadd($total_svip_discount, $svip_discount, 2);
- $cart['svip_discount'] = $svip_discount;
-
- if (!isset($product_cart[$cart['product_id']]))
- $product_cart[$cart['product_id']] = [$cart['cart_id']];
- else
- $product_cart[$cart['product_id']][] = $cart['cart_id'];
-
- if ($_price > 0) {
- $product_price[$cart['product_id']] = bcadd($product_price[$cart['product_id']] ?? 0, $_price, 2);
- }
-
- if (!$temp1) continue;
-
- $number = $this->productByTempNumber($cart);
- if ($number <= 0) continue;
- $cart['temp_number'] = $number;
-
- if ($order_model || !$temp1 || ($cart['product_type'] == 10 && $cart['productDiscount']['free_shipping'])) {
- continue;
- }
-
- $free = $temp1['free'][0] ?? null;
- $region = $temp1['region'][0] ?? null;
-
- if (!$cart['product']['delivery_free'] && !$isTake && (!$address || !$cart['product']['temp'] || ($temp1['undelivery'] == 2 && !$free && (!$region || !$region['city_id'])))) {
- $cart['undelivered'] = true;
- $noDeliver = true;
- continue;
- }
- $cart['undelivered'] = (!$isTake) && $temp1['undelivery'] == 1 && isset($temp1['undelives']);
- $fn[] = function () use ($cart) {
- unset($cart['product']['temp']);
- };
-
- if ($cart['undelivered']) {
- $noDeliver = true;
- continue;
- }
- if ($cart['product']['delivery_free']) {
- continue;
- }
- $tempId = $cart['product']['temp_id'];
- if (!isset($postageRule[$tempId])) {
- $postageRule[$tempId] = [
- 'free' => null,
- 'region' => null,
- 'cart' => [],
- 'price' => 0,
- ];
- }
-
- $freeRule = $postageRule[$tempId]['free'];
- $regionRule = $postageRule[$tempId]['region'];
- $postageRule[$tempId]['cart'][] = $cart['cart_id'];
- $postageRule[$tempId]['price'] = bcadd($postageRule[$tempId]['price'], $cart['price'], 2);
-
- if ($temp1['appoint'] && $free) {
- if (!isset($freeRule)) {
- $freeRule = $free;
- $freeRule['cart_price'] = 0;
- $freeRule['cart_number'] = 0;
- }
- $freeRule['cart_number'] = bcadd($freeRule['cart_number'], $number, 2);
- $freeRule['cart_price'] = bcadd($freeRule['cart_price'], $price, 2);
- }
-
- if ($region) {
- if (!isset($regionRule)) {
- $regionRule = $region;
- $regionRule['cart_price'] = 0;
- $regionRule['cart_number'] = 0;
- }
- $regionRule['cart_number'] = bcadd($regionRule['cart_number'], $number, 2);
- $regionRule['cart_price'] = bcadd($regionRule['cart_price'], $price, 2);
- }
- $postageRule[$tempId]['free'] = $freeRule;
- $postageRule[$tempId]['region'] = $regionRule;
- }
- unset($cart);
-
- if (!$isTake) {
- //计算运费
- foreach ($postageRule as $item) {
- $freeRule = $item['free'];
- if ($freeRule && $freeRule['cart_number'] >= $freeRule['number'] && $freeRule['cart_price'] >= $freeRule['price'])
- continue;
- if (!$item['region']) continue;
- $regionRule = $item['region'];
- $postage = $regionRule['first_price'];
- if ($regionRule['first'] > 0 && $regionRule['cart_number'] > $regionRule['first']) {
- $num = ceil(bcdiv(bcsub($regionRule['cart_number'], $regionRule['first'], 2), $regionRule['continue'], 2));
- $postage = bcadd($postage, bcmul($num, $regionRule['continue_price'], 2), 2);
- }
- $postage_price = bcadd($postage_price, $postage, 2);
- $cartNum = count($item['cart']);
- //计算每个商品的运费比例
- foreach ($merchantCart['list'] as &$cart) {
- if (in_array($cart['cart_id'], $item['cart'])) {
- if (--$cartNum) {
- $cart['postage_price'] = bcmul($postage, bcdiv($cart['temp_number'], $regionRule['cart_number'], 3), 2);
- $postage = bcsub($postage, $cart['postage_price'], 2);
- } else {
- $cart['postage_price'] = $postage;
- }
- }
- }
- unset($cart);
- }
- unset($item);
- }
-
- $coupon_price = 0;
- $use_coupon_product = [];
- $use_store_coupon = 0;
-
- $useCouponFlag = isset($useCoupon[$merchantCart['mer_id']]);
- $merCouponIds = (array)($useCoupon[$merchantCart['mer_id']] ?? []);
- $merCouponIds = array_reverse($merCouponIds);
- $sortIds = $merCouponIds;
-// $all_coupon_product = [];
- unset($defaultSort);
- $defaultSort = [];
- if (count($merCouponIds)) {
- foreach ($merchantCart['coupon'] as &$item) {
- $defaultSort[] = &$item;
- if (!in_array($item['coupon_user_id'], $sortIds, true)) {
- $sortIds[] = $item['coupon_user_id'];
- }
- }
- unset($item);
- usort($merchantCart['coupon'], function ($a, $b) use ($sortIds) {
- return array_search($a['coupon_user_id'], $sortIds) > array_search($b['coupon_user_id'], $sortIds) ? 1 : -1;
- });
- }
-
- //过滤不可用店铺优惠券
- foreach ($merchantCart['coupon'] as &$coupon) {
- if (!$coupon['coupon']['type']) continue;
-
- $coupon['disabled'] = false;
- $coupon['checked'] = false;
-
- if (count(array_intersect(array_column($coupon['product'], 'product_id'), array_keys($product_price))) == 0) {
- $coupon['disabled'] = true;
- continue;
- }
- if($svip_coupon_merge != '1' && $use_svip){
- $coupon['disabled'] = true;
- continue;
- }
- $flag = false;
- foreach ($coupon['product'] as $_product) {
- if (isset($product_price[$_product['product_id']]) && $product_price[$_product['product_id']] >= $coupon['use_min_price']) {
- $flag = true;
- break;
- }
- }
- if (!$flag) {
- $coupon['disabled'] = true;
- }
-// if (!$coupon['disabled']) {
-// $all_coupon_product[] = $coupon['coupon_user_id'];
-// }
- }
-
- unset($coupon);
-
- //if ($useCouponFlag && count(array_diff($all_coupon_product, $use_coupon_product))) {
- // throw new ValidateException('请选择有效的商品券');
- //}
- //计算商品券金额
- foreach ($merchantCart['coupon'] as &$coupon) {
- if (!$coupon['coupon']['type']) continue;
- if ($coupon['disabled']) continue;
-
- foreach ($coupon['product'] as $_product) {
- if (isset($product_price[$_product['product_id']]) && $product_price[$_product['product_id']] >= $coupon['use_min_price']) {
- if ($useCouponFlag) {
- if (!in_array($coupon['coupon_user_id'], $merCouponIds) || isset($use_coupon_product[$_product['product_id']])) {
- continue;
- }
- } else if (isset($use_coupon_product[$_product['product_id']])) {
- continue;
- }
- $coupon_price = bcadd($coupon_price, $coupon['coupon_price'], 2);
- $use_coupon_product[$_product['product_id']] = $coupon;
- $coupon['checked'] = true;
- break;
- }
- }
- unset($_product);
- }
- unset($coupon);
- $pay_price = max(bcsub($valid_total_price, $coupon_price, 2), 0);
- $_pay_price = $pay_price;
- //计算店铺券
- foreach ($merchantCart['coupon'] as &$coupon) {
- if ($coupon['coupon']['type']) continue;
- $coupon['checked'] = false;
- $coupon['disabled'] = $pay_price <= 0;
- if ($use_store_coupon || $pay_price <= 0) continue;
- if($svip_coupon_merge != '1' && $use_svip){
- $coupon['disabled'] = true;
- continue;
- }
- //店铺券
- if ($valid_total_price >= $coupon['use_min_price']) {
- if ($useCouponFlag) {
- if (!in_array($coupon['coupon_user_id'], $merCouponIds)) {
- continue;
- }
- }
- $use_store_coupon = $coupon;
- $coupon_price = bcadd($coupon_price, $coupon['coupon_price'], 2);
- $_pay_price = bcsub($_pay_price, $coupon['coupon_price'], 2);
- $coupon['checked'] = true;
- } else {
- $coupon['disabled'] = true;
- }
- }
- unset($coupon);
-
- $productCouponRate = [];
- $storeCouponRate = null;
- $useCouponIds = [];
- //计算优惠占比
- foreach ($use_coupon_product as $productId => $coupon) {
- $productCouponRate[$productId] = [
- 'rate' => $product_price[$productId] > 0 ? bcdiv($coupon['coupon_price'], $product_price[$productId], 4) : 1,
- 'coupon_price' => $coupon['coupon_price'],
- 'price' => $product_price[$productId]
- ];
- $useCouponIds[] = $coupon['coupon_user_id'];
- }
-
- if ($use_store_coupon) {
- $storeCouponRate = [
- 'rate' => $pay_price > 0 ? bcdiv($use_store_coupon['coupon_price'], $pay_price, 4) : 1,
- 'coupon_price' => $use_store_coupon['coupon_price'],
- 'price' => $coupon_price
- ];
- $useCouponIds[] = $use_store_coupon['coupon_user_id'];
- }
-
- //计算单个商品实际支付金额
- foreach ($merchantCart['list'] as $_k => &$cart) {
- $cartTotalPrice = bcmul($this->cartByPrice($cart), $cart['cart_num'], 2);
- $_cartTotalPrice = $cartTotalPrice;
- if (!$cart['product_type'] && $cartTotalPrice > 0) {
- if (isset($productCouponRate[$cart['product_id']])) {
- //计算每个商品优惠金额(商品券)
- if ($productCouponRate[$cart['product_id']]['rate'] >= 1) {
- $cartTotalPrice = 0;
- } else {
- array_pop($product_cart);
- if (!count($product_cart)) {
- $cartTotalPrice = bcsub($cartTotalPrice, $productCouponRate[$cart['product_id']]['coupon_price'], 2);
- $productCouponRate[$cart['product_id']]['coupon_price'] = 0;
- } else {
- $couponPrice = bcmul($cartTotalPrice, $productCouponRate[$cart['product_id']]['rate'], 2);
- $cartTotalPrice = bcsub($cartTotalPrice, $couponPrice, 2);
- $productCouponRate[$cart['product_id']]['coupon_price'] = bcsub($productCouponRate[$cart['product_id']]['coupon_price'], $couponPrice, 2);
- }
- }
- }
-
- //(店铺券)
- if ($storeCouponRate && $cartTotalPrice > 0) {
- if ($storeCouponRate['rate'] >= 1) {
- $cartTotalPrice = 0;
- } else {
- if (count($merchantCart['list']) == $_k + 1) {
- $cartTotalPrice = bcsub($cartTotalPrice, $storeCouponRate['coupon_price'], 2);
- } else {
- $couponPrice = bcmul($cartTotalPrice, $storeCouponRate['rate'], 2);
- $cartTotalPrice = bcsub($cartTotalPrice, $couponPrice, 2);
- $storeCouponRate['coupon_price'] = bcsub($storeCouponRate['coupon_price'], $couponPrice, 2);
- }
- }
- }
- }
-
- //单个商品实际支付金额
- $cart['coupon_price'] = bcsub($_cartTotalPrice, $cartTotalPrice, 2);
- $cart['true_price'] = $cartTotalPrice;
- }
- unset($cart, $_k);
- $total_true_price = bcadd($_pay_price, $total_true_price, 2);
- if(count($merchantCartList) > 1 || count($merchantCart['list']) > 1){
- $orderDeliveryStatus = $orderDeliveryStatus && $deliveryStatus;
- }
- $merchantCart['order'] = [
- 'true_price' => $_pay_price,
- 'platform_coupon_price' => 0,
- 'valid_total_price' => $valid_total_price,
- 'total_price' => $total_price,
- 'final_price' => $final_price,
- 'down_price' => $down_price,
- 'coupon_price' => $coupon_price,
- 'svip_coupon_merge' => $svip_coupon_merge,
- 'postage_price' => $postage_price,
- 'isTake' => $isTake,
- 'total_num' => $total_num,
- 'enabledCoupon' => $enabledCoupon,
- 'useCouponIds' => $useCouponIds,
- 'allow_take' => $merTake,
- 'allow_delivery' => $merDelivery,
- 'delivery_status' => $deliveryStatus,
- 'svip_discount' => $total_svip_discount,
- 'use_svip' => $use_svip,
- ];
- $order_total_postage = bcadd($order_total_postage, $postage_price, 2);
- $order_svip_discount = bcadd($total_svip_discount, $order_svip_discount, 2);
- if (count($defaultSort)) {
- $merchantCart['coupon'] = &$defaultSort;
- }
- }
- unset($merchantCart);
-
- $usePlatformCouponId = $useCoupon[0] ?? 0;
- $usePlatformCouponId = is_array($usePlatformCouponId) ? array_pop($usePlatformCouponId) : $usePlatformCouponId;
- $usePlatformCouponFlag = isset($useCoupon[0]);
-
- foreach ($merchantCartList as &$merchantCart) {
- if (!$merchantCart['order']['use_svip'])
- continue;
- $totalMergePrice = 0;
- foreach ($merchantCart['list'] as &$cart) {
- if (!$cart['svip_coupon_merge']) {
- $totalMergePrice = bcadd($totalMergePrice, $cart['true_price'], 2);
- $cart['allow_price'] = $cart['true_price'];
- }
- }
- unset($cart);
- if ($totalMergePrice > 0) {
- $total_true_price = bcadd($total_true_price, $totalMergePrice, 2);
- $merchantCart['order']['valid_total_price'] = bcadd($merchantCart['order']['valid_total_price'], $totalMergePrice, 2);
- $merchantCart['order']['true_price'] = $merchantCart['order']['valid_total_price'];
- }
- }
- unset($merchantCart);
-
- //计算平台券优惠金额
-// if ($total_true_price > 0) {
- $StoreCouponUser = app()->make(StoreCouponUserRepository::class);
- $platformCoupon = $StoreCouponUser->validUserPlatformCoupon($uid);
- if ($enabledPlatformCoupon && count($platformCoupon)) {
-
- $catePriceLst = [];
- $storePriceLst = [];
- $_cartNum = 0;
-
- foreach ($merchantCartList as &$merchantCart) {
- if ($merchantCart['order']['true_price'] <= 0) continue;
- foreach ($merchantCart['list'] as &$cart) {
- $_cartNum++;
- if ($cart['product']['cate_id']) {
- if (!isset($catePriceLst[$cart['product']['cate_id']])) {
- $catePriceLst[$cart['product']['cate_id']] = ['price' => 0, 'cart' => []];
- }
- $catePriceLst[$cart['product']['cate_id']]['price'] = bcadd($catePriceLst[$cart['product']['cate_id']]['price'], $cart['true_price']);
- $catePriceLst[$cart['product']['cate_id']]['cart'][] = &$cart;
- }
- }
- unset($cart);
- $storePriceLst[$merchantCart['mer_id']] = [
- 'price' => $merchantCart['order']['true_price'],
- 'num' => count($merchantCart['list'])
- ];
- }
- unset($merchantCart);
- $flag = false;
- $platformCouponRate = null;
-
- foreach ($platformCoupon as &$coupon) {
- $coupon['checked'] = false;
- //通用券
- if ($coupon['coupon']['type'] === StoreCouponRepository::TYPE_PLATFORM_ALL) {
- $coupon['disabled'] = $total_true_price <= 0 || $coupon['use_min_price'] > $total_true_price;
- if (!$platformCouponRate && !$coupon['disabled'] && !$flag && ((!$usePlatformCouponId && !$usePlatformCouponFlag) || $usePlatformCouponId == $coupon['coupon_user_id'])) {
- $platformCouponRate = [
- 'id' => $coupon['coupon_user_id'],
- 'type' => $coupon['coupon']['type'],
- 'price' => $total_true_price,
- 'coupon_price' => $coupon['coupon_price'],
- 'use_count' => $_cartNum,
- 'check' => function ($cart) {
- return true;
- }
- ];
- $coupon['checked'] = true;
- $flag = true;
- }
- //品类券
- } else if ($coupon['coupon']['type'] === StoreCouponRepository::TYPE_PLATFORM_CATE) {
- $_price = 0;
- $_use_count = 0;
- $cateIds = $coupon['product']->column('product_id');
- $allCateIds = array_unique(array_merge(app()->make(StoreCategoryRepository::class)->allChildren($cateIds), $cateIds));
- $flag2 = true;
- foreach ($allCateIds as $cateId) {
- if (isset($catePriceLst[$cateId])) {
- $_price = bcadd($catePriceLst[$cateId]['price'], $_price, 2);
- $_use_count += count($catePriceLst[$cateId]['cart']);
- $flag2 = false;
- }
- }
- $coupon['disabled'] = $flag2 || $coupon['use_min_price'] > $_price;
- //品类券可用
- if (!$platformCouponRate && !$coupon['disabled'] && !$flag && !$flag2 && ((!$usePlatformCouponId && !$usePlatformCouponFlag) || $usePlatformCouponId == $coupon['coupon_user_id'])) {
- $platformCouponRate = [
- 'id' => $coupon['coupon_user_id'],
- 'type' => $coupon['coupon']['type'],
- 'price' => $_price,
- 'use_cate' => $allCateIds,
- 'coupon_price' => $coupon['coupon_price'],
- 'use_count' => $_use_count,
- 'check' => function ($cart) use ($allCateIds) {
- return in_array($cart['product']['cate_id'], $allCateIds);
- }
- ];
- $coupon['checked'] = true;
- $flag = true;
- }
- //跨店券
- } else if ($coupon['coupon']['type'] === StoreCouponRepository::TYPE_PLATFORM_STORE) {
- $_price = 0;
- $_use_count = 0;
- $flag2 = true;
- foreach ($coupon['product'] as $item) {
- $merId = $item['product_id'];
- if (isset($storePriceLst[$merId])) {
- $_price = bcadd($storePriceLst[$merId]['price'], $_price, 2);
- $_use_count += $storePriceLst[$merId]['num'];
- $flag2 = false;
- }
- }
- $coupon['disabled'] = $flag2 || $coupon['use_min_price'] > $_price;
- //店铺券可用
- if (!$platformCouponRate && !$coupon['disabled'] && !$flag && !$flag2 && ((!$usePlatformCouponId && !$usePlatformCouponFlag) || $usePlatformCouponId == $coupon['coupon_user_id'])) {
- $_merIds = $coupon['product']->column('product_id');
- $platformCouponRate = [
- 'id' => $coupon['coupon_user_id'],
- 'type' => $coupon['coupon']['type'],
- 'price' => $_price,
- 'use_store' => $_merIds,
- 'coupon_price' => $coupon['coupon_price'],
- 'use_count' => $_use_count,
- 'check' => function ($cart) use ($_merIds) {
- return in_array($cart['mer_id'], $_merIds);
- }
- ];
- $coupon['checked'] = true;
- $flag = true;
- }
- }
- }
- unset($coupon);
- }
-// }
-
- $usePlatformCouponId = 0;
- $total_platform_coupon_price = 0;
- //计算平台优惠券
- if (isset($platformCouponRate)) {
- $_coupon_price = $platformCouponRate['coupon_price'];
- foreach ($merchantCartList as &$merchantCart) {
- $_price = 0;
- foreach ($merchantCart['list'] as &$cart) {
- if ($cart['true_price'] <= 0 || !$platformCouponRate['check']($cart)) continue;
-
- if ($platformCouponRate['use_count'] === 1) {
- $couponPrice = min($platformCouponRate['coupon_price'], $cart['true_price']);
- } else {
- $couponPrice = min(bcmul($_coupon_price, bcdiv($cart['true_price'], $platformCouponRate['price'], 3), 2), $cart['true_price']);
- }
- $platformCouponRate['coupon_price'] = bcsub($platformCouponRate['coupon_price'], $couponPrice, 2);
- $cart['true_price'] = bcsub($cart['true_price'], $couponPrice, 2);
- $cart['platform_coupon_price'] = $couponPrice;
- $platformCouponRate['use_count']--;
- $_price = bcadd($couponPrice, $_price, 2);
- }
- unset($cart);
- $merchantCart['order']['platform_coupon_price'] = $_price;
- $merchantCart['order']['true_price'] = bcsub($merchantCart['order']['true_price'], $_price, 2);
- $total_platform_coupon_price = bcadd($total_platform_coupon_price, $_price, 2);
- }
- $usePlatformCouponId = $platformCouponRate['id'];
- unset($merchantCart);
- }
-
- //积分配置
- $sysIntegralConfig = systemConfig(['integral_money', 'integral_status', 'integral_order_rate']);
- $merIntegralFlag = false;
- $order_total_integral = 0;
- $order_total_integral_price = 0;
- $order_total_give_integral = 0;
- $allow_no_address = true;
-
- foreach ($merchantCartList as &$merchantCart) {
- $merchantCart['take'] = [
- 'mer_integral_rate' => 0,
- 'mer_integral_status' => 0,
- ];
- $allow_no_address = $allow_no_address && $merchantCart['order']['isTake'];
- foreach ($merchantCart['config'] as $config) {
- $merchantCart['take'][$config['config_key']] = $config['value'];
- }
- $merIntegralConfig = $merchantCart['take'];
- unset($merchantCart['config']);
- $merIntegralConfig['mer_integral_rate'] = min(1, $merIntegralConfig['mer_integral_rate'] > 0 ? bcdiv($merIntegralConfig['mer_integral_rate'], 100, 4) : $merIntegralConfig['mer_integral_rate']);
- $total_integral = 0;
- $total_integral_price = 0;
- $merIntegralFlag = $merIntegralFlag || ((bool)$merIntegralConfig['mer_integral_status']);
- $integralFlag = $useIntegral && $sysIntegralConfig['integral_status'] && $sysIntegralConfig['integral_money'] > 0 && $merIntegralConfig['mer_integral_status'];
-
- //计算积分抵扣
- foreach ($merchantCart['list'] as &$cart) {
- //只有普通商品可以抵扣
- if ($cart['product_type'] == 0 && $integralFlag && $userIntegral > 0 && $merchantCart['order']['true_price'] > 0) {
- $integralRate = $cart['product']['integral_rate'];
- if ($integralRate < 0) {
- $integralRate = $merIntegralConfig['mer_integral_rate'];
- } else if($integralRate > 0){
- $integralRate = min(bcdiv($integralRate, 100, 4), 1);
- }
- if ($integralRate > 0) {
- $productIntegralPrice = min(bcmul(bcmul($this->cartByPrice($cart), $cart['cart_num'], 2), $integralRate, 2), $cart['true_price']);
- if ($productIntegralPrice > 0) {
- $productIntegral = ceil(bcdiv($productIntegralPrice, $sysIntegralConfig['integral_money'], 3));
- if ($productIntegral <= $userIntegral) {
- $userIntegral = bcsub($userIntegral, $productIntegral, 0);
- //使用多少积分抵扣了多少金额
- $cart['integral'] = [
- 'use' => $productIntegral,
- 'price' => $productIntegralPrice
- ];
- } else {
- $productIntegralPrice = bcmul($userIntegral, $sysIntegralConfig['integral_money'], 2);
- //使用多少积分抵扣了多少金额
- $cart['integral'] = [
- 'use' => $userIntegral,
- 'price' => $productIntegralPrice
- ];
- $userIntegral = 0;
- }
-
- $cart['true_price'] = bcsub($cart['true_price'], $cart['integral']['price'], 2);
- $merchantCart['order']['true_price'] = bcsub($merchantCart['order']['true_price'], $cart['integral']['price'], 2);
-
- $total_integral_price = bcadd($total_integral_price, $cart['integral']['price'], 2);
- $total_integral = bcadd($total_integral, $cart['integral']['use'], 0);
- continue;
- }
- }
- }
- $cart['integral'] = null;
- }
- unset($cart);
- $order_total_integral = bcadd($order_total_integral, $total_integral, 0);
- $order_total_integral_price = bcadd($order_total_integral_price, $total_integral_price, 2);
-
- $_pay_price = $merchantCart['order']['true_price'];
- $valid_total_price = $merchantCart['order']['valid_total_price'];
- $total_price = $merchantCart['order']['total_price'];
- $final_price = $merchantCart['order']['final_price'];
- $down_price = $merchantCart['order']['down_price'];
- $coupon_price = $merchantCart['order']['coupon_price'];
- $postage_price = $merchantCart['order']['postage_price'];
-
- //计算订单商品金额
- $org_price = bcadd(bcsub($total_price, $valid_total_price, 2), max($_pay_price, 0), 2);
- if ($presellType == 2) {
- $org_price = max(bcsub($org_price, $final_price, 2), $down_price);
- }
-
- //获取可优惠金额
- $coupon_price = min($coupon_price, bcsub($total_price, $down_price, 2));
- $order_coupon_price = bcadd($coupon_price, $order_coupon_price, 2);
-
- //计算订单金额
- if ($order_type != 2 || $presellType != 2) {
- $pay_price = bcadd($postage_price, $org_price, 2);
- } else {
- $pay_price = $org_price;
- }
-
- $giveIntegralFlag = $sysIntegralConfig['integral_status'] && $sysIntegralConfig['integral_order_rate'] > 0;
- $total_give_integral = 0;
- //计算赠送积分, 只有普通商品赠送积分
- if ($giveIntegralFlag && !$order_type && $pay_price > 0) {
- $total_give_integral = floor(bcmul($pay_price, $sysIntegralConfig['integral_order_rate'], 0));
- if ($total_give_integral > 0 && $svip_status && $svip_integral_rate > 0) {
- $total_give_integral = bcmul($svip_integral_rate, $total_give_integral, 0);
- }
- }
- $order_total_give_integral = bcadd($total_give_integral, $order_total_give_integral, 0);
-
- foreach ($fn as $callback) {
- $callback();
- }
-
- $merchantCart['order']['order_type'] = $order_type;
- $merchantCart['order']['total_give_integral'] = $total_give_integral;
- $merchantCart['order']['total_integral_price'] = $total_integral_price;
- $merchantCart['order']['total_integral'] = $total_integral;
- $merchantCart['order']['org_price'] = $org_price;
- $merchantCart['order']['pay_price'] = $pay_price;
- $merchantCart['order']['coupon_price'] = $coupon_price;
-
- $order_price = bcadd($order_price, $pay_price, 2);
- $order_total_price = bcadd($order_total_price, $total_price, 2);
- }
- unset($merchantCart);
-
- if ($order_model) {
- $allow_no_address = false;
- }
-
- foreach ($merchantCartList as &$merchantCart) {
- foreach ($merchantCart['list'] as &$cart) {
- $cart['total_price'] = bcadd($cart['total_price'], $cart['svip_discount'], 2);
- }
- unset($cart);
- $merchantCart['order']['total_price'] = bcadd($merchantCart['order']['total_price'], $merchantCart['order']['svip_discount'], 2);
- $order_total_price = bcadd($order_total_price, $merchantCart['order']['svip_discount'], 2);
- }
- unset($merchantCart);
-
- $status = ($address || $order_model || $allow_no_address) ? ($noDeliver ? 'noDeliver' : 'finish') : 'noAddress';
- $order = $merchantCartList;
- $total_price = $order_total_price;
- $openIntegral = $merIntegralFlag && !$order_type && $sysIntegralConfig['integral_status'] && $sysIntegralConfig['integral_money'] > 0;
- $total_coupon = bcadd($order_svip_discount, bcadd(bcadd($total_platform_coupon_price, $order_coupon_price, 2), $order_total_integral_price, 2), 2);
- return compact(
- 'order_type',
- 'order_model',
- 'order_extend',
- 'order_total_postage',
- 'order_price',
- 'total_price',
- 'platformCoupon',
- 'enabledPlatformCoupon',
- 'usePlatformCouponId',
- 'order_total_integral',
- 'order_total_integral_price',
- 'order_total_give_integral',
- 'order_svip_discount',
- 'total_platform_coupon_price',
- 'total_coupon',
- 'order_coupon_price',
- 'order',
- 'status',
- 'address',
- 'openIntegral',
- 'useIntegral',
- 'key'
- ) + ['allow_address' => !$allow_no_address, 'order_delivery_status' => $orderDeliveryStatus];
- }
-
- public function v2CreateOrder(int $pay_type, $user, array $cartId, array $extend, array $mark, array $receipt_data, array $takes = null, array $useCoupon = null, bool $useIntegral = false, int $addressId = null, array $post)
- {
- $uid = $user->uid;
- $orderInfo = $this->v2CartIdByOrderInfo($user, $cartId, $takes, $useCoupon, $useIntegral, $addressId, true);
- $order_model = $orderInfo['order_model'];
- $order_extend = $orderInfo['order_extend'];
- if (!$orderInfo['order_delivery_status']) {
- throw new ValidateException('部分商品配送方式不一致,请单独下单');
- }
- if ($orderInfo['order_price'] > 1000000) {
- throw new ValidateException('支付金额超出最大限制');
- }
- if ($orderInfo['status'] == 'noDeliver') throw new ValidateException('部分商品不支持该区域');
- if ($orderInfo['status'] == 'noAddress') throw new ValidateException('请选择地址');
- if (!$order_model && $orderInfo['allow_address']) {
- if (!$orderInfo['address']) throw new ValidateException('请选择正确的收货地址');
- if (!$orderInfo['address']['province_id']) throw new ValidateException('请完善收货地址信息');
- $extend = [];
- } else if (count($order_extend)) {
- $extend = app()->make(OrderVirtualFieldValidate::class)->load($order_extend, $extend);
- } else {
- $extend = [];
- }
- $orderType = $orderInfo['order_type'];
- if ($orderType && (count($orderInfo['order']) > 1 || ($orderType != 10 && count($orderInfo['order'][0]['list']) > 1))) {
- throw new ValidateException('活动商品请单独购买');
- }
-
- $merchantCartList = $orderInfo['order'];
- $cartSpread = 0;
- $hasTake = false;
-
- foreach ($merchantCartList as $merchantCart) {
- if ($merchantCart['order']['isTake']) {
- $hasTake = true;
- }
- //检查发票状态
- if (isset($receipt_data[$merchantCart['mer_id']]) && !$merchantCart['openReceipt'])
- throw new ValidateException('该店铺不支持开发票');
-
- foreach ($merchantCart['list'] as $cart) {
- if (!$cartSpread && $cart['spread_id']) {
- $cartSpread = $cart['spread_id'];
- }
- }
- }
- if ($hasTake) {
- app()->make(UserAddressValidate::class)->scene('take')->check($post);
- }
-
- if ($cartSpread) {
- app()->make(UserRepository::class)->bindSpread($user, $cartSpread);
- }
-
- $isSelfBuy = $user->is_promoter && systemConfig('extension_self') ? 1 : 0;
- if ($isSelfBuy) {
- $spreadUser = $user;
- $topUser = $user->valid_spread;
- } else {
- $spreadUser = $user->valid_spread;
- $topUser = $user->valid_top;
- }
- $spreadUid = $spreadUser->uid ?? 0;
- $topUid = $topUser->uid ?? 0;
-
- $merchantRepository = app()->make(MerchantRepository::class);
- $giveCouponIds = [];
- $ex = systemConfig('extension_status');
- $address = $orderInfo['address'];
- $allUseCoupon = $orderInfo['usePlatformCouponId'] ? [$orderInfo['usePlatformCouponId']] : [];
- $totalNum = 0;
- $totalPostage = 0;
- $totalCost = 0;
- $cartIds = [];
- $orderList = [];
-
- foreach ($merchantCartList as $k => $merchantCart) {
- $cost = 0;
- $total_extension_one = 0;
- $total_extension_two = 0;
- //计算佣金和赠送的优惠券
- foreach ($merchantCart['list'] as &$cart) {
- $cartIds[] = $cart['cart_id'];
- $giveCouponIds = array_merge($giveCouponIds, $cart['product']['give_coupon_ids'] ?: []);
- $cart['cost'] = $cart['productAttr']['cost'];
- $cost = bcadd(bcmul($cart['cost'], $cart['cart_num'], 2), $cost, 2);
- $extension_one = 0;
- $extension_two = 0;
- if ($ex) {
- //预售订单
- if ($orderType == 2) {
- $_payPrice = $merchantCart['order']['pay_price'];
- $rate = $cart['productPresell']['presell_type'] == 2 ? bcdiv($cart['productPresellAttr']['down_price'], $cart['productPresellAttr']['presell_price'], 3) : 1;
- $one_price = $_payPrice > 0 ? bcdiv($_payPrice, $cart['cart_num'], 2) : 0;
- if ($spreadUid && $cart['productPresellAttr']['bc_extension_one'] > 0) {
- $org_extension = $cart['productPresellAttr']['bc_extension_one'];
- if ($spreadUser->brokerage_level > 0 && $spreadUser->brokerage && $spreadUser->brokerage->extension_one_rate > 0) {
- $org_extension = bcmul($org_extension, 1 + $spreadUser->brokerage->extension_one_rate, 2);
- }
- $_extension_one = bcmul($rate, $org_extension, 3);
- $presell_extension_one = 0;
- if ($cart['true_price'] > 0) {
- $extension_one = bcmul(bcdiv($one_price, $cart['productPresellAttr']['down_price'], 3), $_extension_one, 2);
- }
- if ($rate < 1) {
- $presell_extension_one = bcmul(1 - $rate, $org_extension, 2);
- }
- $cart['final_extension_one'] = bcmul($extension_one, $cart['cart_num'], 2);
- $extension_one = bcadd($extension_one, $presell_extension_one, 2);
- $cart['presell_extension_one'] = bcmul($presell_extension_one, $cart['cart_num'], 2);
- }
- if ($topUid && $cart['productPresellAttr']['bc_extension_two'] > 0) {
- $org_extension = $cart['productPresellAttr']['bc_extension_two'];
- if ($topUser->brokerage_level > 0 && $topUser->brokerage && $topUser->brokerage->extension_two_rate > 0) {
- $org_extension = bcmul($org_extension, 1 + $topUser->brokerage->extension_two_rate, 2);
- }
- $_extension_two = bcmul($rate, $org_extension, 2);
- $presell_extension_two = 0;
- if ($cart['true_price'] > 0) {
- $extension_two = bcmul(bcdiv($one_price, $cart['productPresellAttr']['down_price'], 3), $_extension_two, 2);
- }
- if ($rate < 1) {
- $presell_extension_two = bcmul(1 - $rate, $org_extension, 2);
- }
- $cart['final_extension_two'] = bcmul($extension_two, $cart['cart_num'], 2);;
- $extension_two = bcadd($extension_two, $presell_extension_two, 2);
- $cart['presell_extension_two'] = bcmul($presell_extension_two, $cart['cart_num'], 2);
- }
- } else if (!$orderType) {
- if ($spreadUid && $cart['productAttr']['bc_extension_one'] > 0) {
- $org_extension = $cart['productAttr']['bc_extension_one'];
- if ($spreadUser->brokerage_level > 0 && $spreadUser->brokerage && $spreadUser->brokerage->extension_one_rate > 0) {
- $org_extension = bcmul($org_extension, 1 + $spreadUser->brokerage->extension_one_rate, 2);
- }
- $extension_one = $cart['true_price'] > 0 ? bcmul(bcdiv($cart['true_price'], $cart['total_price'], 3), $org_extension, 2) : 0;
- }
- if ($topUid && $cart['productAttr']['bc_extension_two'] > 0) {
- $org_extension = $cart['productAttr']['bc_extension_two'];
- if ($topUser->brokerage_level > 0 && $topUser->brokerage && $topUser->brokerage->extension_two_rate > 0) {
- $org_extension = bcmul($org_extension, 1 + $topUser->brokerage->extension_two_rate, 2);
- }
- $extension_two = $cart['true_price'] > 0 ? bcmul(bcdiv($cart['true_price'], $cart['total_price'], 3), $org_extension, 2) : 0;
- }
- }
- }
- $cart['extension_one'] = $extension_one;
- $cart['extension_two'] = $extension_two;
- $total_extension_one = bcadd($total_extension_one, bcmul($extension_one, $cart['cart_num'], 2), 2);
- $total_extension_two = bcadd($total_extension_two, bcmul($extension_two, $cart['cart_num'], 2), 2);
- }
- unset($cart);
-
- $rate = 0;
- if ($merchantCart['commission_rate'] > 0) {
- $rate = $merchantCart['commission_rate'];
- } else if (isset($merchantCart['merchantCategory']['commission_rate']) && $merchantCart['merchantCategory']['commission_rate'] > 0) {
- $rate = bcmul($merchantCart['merchantCategory']['commission_rate'], 100, 4);
- }
- $user_address = isset($address) ? ($address['province'] . $address['city'] . $address['district'] . $address['street'] . $address['detail']) : '';
- //整理订单数据
- $_order = [
- 'cartInfo' => $merchantCart,
- 'activity_type' => $orderInfo['order_type'],
- 'commission_rate' => (float)$rate,
- 'order_type' => $merchantCart['order']['isTake'] ? 1 : 0,
- 'is_virtual' => $order_model ? 1 : 0,
- 'extension_one' => $total_extension_one,
- 'extension_two' => $total_extension_two,
- 'order_sn' => $this->getNewOrderId(StoreOrderRepository::TYPE_SN_ORDER) . ($k + 1),
- 'uid' => $uid,
- 'spread_uid' => $spreadUid,
- 'top_uid' => $topUid,
- 'is_selfbuy' => $isSelfBuy,
- 'real_name' => $merchantCart['order']['isTake'] ? $post['real_name'] : ($address['real_name'] ?? ''),
- 'user_phone' => $merchantCart['order']['isTake'] ? $post['phone'] : ($address['phone'] ?? ''),
- 'user_address' => $user_address,
- 'cart_id' => implode(',', array_column($merchantCart['list'], 'cart_id')),
- 'total_num' => $merchantCart['order']['total_num'],
- 'total_price' => $merchantCart['order']['total_price'],
- 'total_postage' => $merchantCart['order']['postage_price'],
- 'pay_postage' => $merchantCart['order']['postage_price'],
- 'svip_discount' => $merchantCart['order']['svip_discount'],
- 'pay_price' => $merchantCart['order']['pay_price'],
- 'integral' => $merchantCart['order']['total_integral'],
- 'integral_price' => $merchantCart['order']['total_integral_price'],
- 'give_integral' => $merchantCart['order']['total_give_integral'],
- 'mer_id' => $merchantCart['mer_id'],
- 'cost' => $cost,
- 'order_extend' => count($extend) ? json_encode($extend, JSON_UNESCAPED_UNICODE) : '',
- 'coupon_id' => implode(',', $merchantCart['order']['useCouponIds']),
- 'mark' => $mark[$merchantCart['mer_id']] ?? '',
- 'coupon_price' => bcadd($merchantCart['order']['coupon_price'], $merchantCart['order']['platform_coupon_price'], 2),
- 'platform_coupon_price' => $merchantCart['order']['platform_coupon_price'],
- 'pay_type' => $pay_type
- ];
- $allUseCoupon = array_merge($allUseCoupon, $merchantCart['order']['useCouponIds']);
- $orderList[] = $_order;
- $totalPostage = bcadd($totalPostage, $_order['total_postage'], 2);
- $totalCost = bcadd($totalCost, $cost, 2);
- $totalNum += $merchantCart['order']['total_num'];
- }
- $groupOrder = [
- 'uid' => $uid,
- 'group_order_sn' => count($orderList) === 1 ? $orderList[0]['order_sn'] : ($this->getNewOrderId(StoreOrderRepository::TYPE_SN_ORDER) . '0'),
- 'total_postage' => $totalPostage,
- 'total_price' => $orderInfo['total_price'],
- 'total_num' => $totalNum,
- 'real_name' => $address['real_name'] ?? '',
- 'user_phone' => $address['phone'] ?? '',
- 'user_address' => $user_address,
- 'pay_price' => $orderInfo['order_price'],
- 'coupon_price' => bcadd($orderInfo['total_platform_coupon_price'], $orderInfo['order_coupon_price'], 2),
- 'pay_postage' => $totalPostage,
- 'cost' => $totalCost,
- 'coupon_id' => $orderInfo['usePlatformCouponId'] > 0 ? $orderInfo['usePlatformCouponId'] : '',
- 'pay_type' => $pay_type,
- 'give_coupon_ids' => $giveCouponIds,
- 'integral' => $orderInfo['order_total_integral'],
- 'integral_price' => $orderInfo['order_total_integral_price'],
- 'give_integral' => $orderInfo['order_total_give_integral'],
- ];
- event('order.create.before', compact('groupOrder', 'orderList'));
- $group = Db::transaction(function () use ($ex, $user, $topUid, $spreadUid, $uid, $receipt_data, $cartIds, $allUseCoupon, $groupOrder, $orderList, $orderInfo) {
- $storeGroupOrderRepository = app()->make(StoreGroupOrderRepository::class);
- $storeCartRepository = app()->make(StoreCartRepository::class);
- $attrValueRepository = app()->make(ProductAttrValueRepository::class);
- $productRepository = app()->make(ProductRepository::class);
- $storeOrderProductRepository = app()->make(StoreOrderProductRepository::class);
- $couponUserRepository = app()->make(StoreCouponUserRepository::class);
- //订单记录
- $storeOrderStatusRepository = app()->make(StoreOrderStatusRepository::class);
- $userMerchantRepository = app()->make(UserMerchantRepository::class);
-
- //减库存
- foreach ($orderList as $order) {
- foreach ($order['cartInfo']['list'] as $cart) {
- if (!isset($uniqueList[$cart['productAttr']['product_id'] . $cart['productAttr']['unique']]))
- $uniqueList[$cart['productAttr']['product_id'] . $cart['productAttr']['unique']] = true;
- else
- throw new ValidateException('购物车商品信息重复');
-
- try {
- if ($cart['product_type'] == '1') {
- $attrValueRepository->descSkuStock($cart['product']['old_product_id'], $cart['productAttr']['sku'], $cart['cart_num']);
- $productRepository->descStock($cart['product']['old_product_id'], $cart['cart_num']);
- } else if ($cart['product_type'] == '2') {
- $productPresellSkuRepository = app()->make(ProductPresellSkuRepository::class);
- $productPresellSkuRepository->descStock($cart['productPresellAttr']['product_presell_id'], $cart['productPresellAttr']['unique'], $cart['cart_num']);
- $attrValueRepository->descStock($cart['productAttr']['product_id'], $cart['productAttr']['unique'], $cart['cart_num']);
- $productRepository->descStock($cart['product']['product_id'], $cart['cart_num']);
- } else if ($cart['product_type'] == '3') {
- app()->make(ProductAssistSkuRepository::class)->descStock($cart['productAssistAttr']['product_assist_id'], $cart['productAssistAttr']['unique'], $cart['cart_num']);
- $productRepository->descStock($cart['product']['old_product_id'], $cart['cart_num']);
- $attrValueRepository->descStock($cart['product']['old_product_id'], $cart['productAttr']['unique'], $cart['cart_num']);
- } else if ($cart['product_type'] == '4') {
- app()->make(ProductGroupSkuRepository::class)->descStock($cart['activeSku']['product_group_id'], $cart['activeSku']['unique'], $cart['cart_num']);
- $productRepository->descStock($cart['product']['old_product_id'], $cart['cart_num']);
- $attrValueRepository->descStock($cart['product']['old_product_id'], $cart['productAttr']['unique'], $cart['cart_num']);
- } else {
- $attrValueRepository->descStock($cart['productAttr']['product_id'], $cart['productAttr']['unique'], $cart['cart_num']);
- $productRepository->descStock($cart['product']['product_id'], $cart['cart_num']);
- if ($cart['integral'] && $cart['integral']['use'] > 0) {
- $productRepository->incIntegral($cart['product']['product_id'], $cart['integral']['use'], $cart['integral']['price']);
- }
- }
- } catch (\Exception $e) {
- throw new ValidateException('库存不足');
- }
- }
- }
-
- if ($orderInfo['order_type'] == 10 && !app()->make(StoreDiscountRepository::class)->decStock($orderList[0]['cartInfo']['list'][0]['source_id'])) {
- throw new ValidateException('套餐库不足');
- }
-
- //修改购物车状态
- $storeCartRepository->updates($cartIds, [
- 'is_pay' => 1
- ]);
-
- //使用优惠券
- if (count($allUseCoupon)) {
- $couponUserRepository->updates($allUseCoupon, [
- 'use_time' => date('Y-m-d H:i:s'),
- 'status' => 1
- ]);
- }
-
- //创建订单
- $groupOrder = $storeGroupOrderRepository->create($groupOrder);
- $bills = [];
-
- if ($groupOrder['integral'] > 0) {
- $user->integral = bcsub($user->integral, $groupOrder['integral'], 0);
- app()->make(UserBillRepository::class)->decBill($user['uid'], 'integral', 'deduction', [
- 'link_id' => $groupOrder['group_order_id'],
- 'status' => 1,
- 'title' => '购买商品',
- 'number' => $groupOrder['integral'],
- 'mark' => '购买商品使用积分抵扣' . floatval($groupOrder['integral_price']) . '元',
- 'balance' => $user->integral
- ]);
- $user->save();
- }
-
- foreach ($orderList as $k => $order) {
- $orderList[$k]['group_order_id'] = $groupOrder->group_order_id;
- }
-
- $orderProduct = [];
- $orderStatus = [];
- foreach ($orderList as $order) {
- $cartInfo = $order['cartInfo'];
- unset($order['cartInfo']);
- //创建子订单
- $_order = $this->dao->create($order);
-
- if ($order['integral'] > 0) {
- $bills[] = [
- 'uid' => $uid,
- 'link_id' => $_order->order_id,
- 'pm' => 0,
- 'title' => '积分抵扣',
- 'category' => 'mer_integral',
- 'type' => 'deduction',
- 'number' => $order['integral'],
- 'balance' => $user->integral,
- 'mark' => '购买商品使用' . $order['integral'] . '积分抵扣' . floatval($order['integral_price']) . '元',
- 'mer_id' => $order['mer_id'],
- 'status' => 1
- ];
- }
-
- //创建发票信息
- if (isset($receipt_data[$_order['mer_id']])) {
- app()->make(StoreOrderReceiptRepository::class)->add($receipt_data[$_order['mer_id']], $_order);
- }
-
- $orderStatus[] = [
- 'order_id' => $_order->order_id,
- 'order_sn' => $_order->order_sn,
- 'type' => $storeOrderStatusRepository::TYPE_ORDER,
- 'change_message' => '订单生成',
- 'change_type' => $storeOrderStatusRepository::ORDER_STATUS_CREATE,
- 'uid' => $user->uid,
- 'nickname' => $user->nickname,
- 'user_type' => $storeOrderStatusRepository::U_TYPE_USER,
- ];
-
- foreach ($cartInfo['list'] as $cart) {
-
- $productPrice = $cart['true_price'];
- $extension_one = $cart['extension_one'];
- $extension_two = $cart['extension_two'];
-
- //计算预售订单尾款
- if ($cartInfo['order']['order_type'] == 2) {
- $finalPrice = max(bcsub($cartInfo['order']['final_price'], $cartInfo['order']['coupon_price'], 2), 0);
- $allFinalPrice = $order['order_type'] ? $finalPrice : bcadd($finalPrice, $order['pay_postage'], 2);
- if ($cart['productPresell']['presell_type'] == 1) {
- $productPrice = bcsub($cartInfo['order']['pay_price'], $order['pay_postage'], 2);
- } else {
- $productPrice = bcadd($cartInfo['order']['pay_price'], $finalPrice, 2);
- }
- //生成尾款订单
- if ($cart['productPresell']['presell_type'] == 2) {
- $presellOrderRepository = app()->make(PresellOrderRepository::class);
- $presellOrderRepository->create([
- 'uid' => $uid,
- 'order_id' => $_order->order_id,
- 'mer_id' => $_order->mer_id,
- 'final_start_time' => $cart['productPresell']['final_start_time'],
- 'final_end_time' => $cart['productPresell']['final_end_time'],
- 'pay_price' => $allFinalPrice,
- 'presell_order_sn' => $this->getNewOrderId(StoreOrderRepository::TYPE_SN_PRESELL)
- ]);
- }
- app()->make(ProductPresellSkuRepository::class)->incCount($cart['source_id'], $cart['productAttr']['unique'], 'one_take');
- }
-
- $order_cart = [
- 'product' => $cart['product'],
- 'productAttr' => $cart['productAttr'],
- 'product_type' => $cart['product_type']
- ];
-
- if ($cart['product_type'] == '2') {
- $order_cart['productPresell'] = $cart['productPresell'];
- $order_cart['productPresellAttr'] = $cart['productPresellAttr'];
- $order_cart['final_extension_one'] = $cart['final_extension_one'] ?? 0;
- $order_cart['final_extension_two'] = $cart['final_extension_two'] ?? 0;
- $order_cart['presell_extension_one'] = $cart['presell_extension_one'] ?? 0;
- $order_cart['presell_extension_two'] = $cart['presell_extension_two'] ?? 0;
- } else if ($cart['product_type'] == '3') {
- $order_cart['productAssistAttr'] = $cart['productAssistAttr'];
- $order_cart['productAssistSet'] = $cart['productAssistSet'];
- } else if ($cart['product_type'] == '4') {
- $order_cart['activeSku'] = $cart['activeSku'];
- } else if ($cart['product_type'] == '10') {
- $order_cart['active'] = $cart['productDiscount'];
- $order_cart['activeSku'] = $cart['productDiscountAttr'];
- }
-
- $orderProduct[] = [
- 'order_id' => $_order->order_id,
- 'cart_id' => $cart['cart_id'],
- 'uid' => $uid,
- 'product_id' => $cart['product_id'],
- 'activity_id' => $cart['source'] >= 2 ? $cart['source_id'] : $cart['product_id'],
- 'total_price' => $cart['total_price'],
- 'product_price' => $productPrice,
- 'extension_one' => $extension_one,
- 'extension_two' => $extension_two,
- 'postage_price' => $cart['postage_price'],
- 'svip_discount' => $cart['svip_discount'],
- 'cost' => $cart['cost'],
- 'coupon_price' => $cart['coupon_price'],
- 'platform_coupon_price' => $cart['platform_coupon_price'],
- 'product_sku' => $cart['productAttr']['unique'],
- 'product_num' => $cart['cart_num'],
- 'refund_num' => $cart['cart_num'],
- 'integral_price' => $cart['integral']['price'] ?? 0,
- 'integral' => $cart['integral'] ? bcdiv($cart['integral']['use'], $cart['cart_num'], 0) : 0,
- 'integral_total' => $cart['integral'] ? $cart['integral']['use'] : 0,
- 'product_type' => $cart['product_type'],
- 'cart_info' => json_encode($order_cart)
- ];
- }
-
- $userMerchantRepository->getInfo($uid, $order['mer_id']);
- app()->make(MerchantRepository::class)->incSales($order['mer_id'], $order['total_num']);
- }
-
- if (count($bills) > 0) {
- app()->make(UserBillRepository::class)->insertAll($bills);
- }
- $storeOrderStatusRepository->batchCreateLog($orderStatus);
- $storeOrderProductRepository->insertAll($orderProduct);
- event('order.create', compact('groupOrder'));
- return $groupOrder;
- });
- foreach ($merchantCartList as $merchantCart) {
- foreach ($merchantCart['list'] as $cart) {
- if (($cart['productAttr']['stock'] - $cart['cart_num']) < (int)merchantConfig($merchantCart['mer_id'], 'mer_store_stock')) {
- SwooleTaskService::merchant('notice', [
- 'type' => 'min_stock',
- 'data' => [
- 'title' => '库存不足',
- 'message' => $cart['product']['store_name'] . '(' . $cart['productAttr']['sku'] . ')库存不足',
- 'id' => $cart['product']['product_id']
- ]
- ], $merchantCart['mer_id']);
- }
- }
- }
- Queue::push(SendSmsJob::class, ['tempId' => 'ORDER_CREATE', 'id' => $group->group_order_id]);
- return $group;
- }
-}
diff --git a/app/common/repositories/store/order/StoreOrderRepository.php.bak b/app/common/repositories/store/order/StoreOrderRepository.php.bak
deleted file mode 100644
index 6aae609e..00000000
--- a/app/common/repositories/store/order/StoreOrderRepository.php.bak
+++ /dev/null
@@ -1,2280 +0,0 @@
-
-// +----------------------------------------------------------------------
-namespace app\common\repositories\store\order;
-
-use app\common\dao\store\order\StoreOrderDao;
-use app\common\model\store\order\StoreGroupOrder;
-use app\common\model\store\order\StoreOrder;
-use app\common\model\user\User;
-use app\common\repositories\BaseRepository;
-use app\common\repositories\delivery\DeliveryOrderRepository;
-use app\common\repositories\store\coupon\StoreCouponRepository;
-use app\common\repositories\store\coupon\StoreCouponUserRepository;
-use app\common\repositories\store\product\ProductAssistSetRepository;
-use app\common\repositories\store\product\ProductCopyRepository;
-use app\common\repositories\store\product\ProductGroupBuyingRepository;
-use app\common\repositories\store\product\ProductPresellSkuRepository;
-use app\common\repositories\store\product\ProductRepository;
-use app\common\repositories\store\product\StoreDiscountRepository;
-use app\common\repositories\store\shipping\ExpressRepository;
-use app\common\repositories\store\StorePrinterRepository;
-use app\common\repositories\store\StoreSeckillActiveRepository;
-use app\common\repositories\system\attachment\AttachmentRepository;
-use app\common\repositories\system\merchant\FinancialRecordRepository;
-use app\common\repositories\system\merchant\MerchantRepository;
-use app\common\repositories\system\serve\ServeDumpRepository;
-use app\common\repositories\user\UserBillRepository;
-use app\common\repositories\user\UserBrokerageRepository;
-use app\common\repositories\user\UserMerchantRepository;
-use app\common\repositories\user\UserRepository;
-use crmeb\jobs\PayGiveCouponJob;
-use crmeb\jobs\SendSmsJob;
-use crmeb\jobs\UserBrokerageLevelJob;
-use crmeb\services\CombinePayService;
-use crmeb\services\CrmebServeServices;
-use crmeb\services\ExpressService;
-use crmeb\services\PayService;
-use crmeb\services\printer\Printer;
-use crmeb\services\QrcodeService;
-use crmeb\services\SpreadsheetExcelService;
-use crmeb\services\SwooleTaskService;
-use Exception;
-use FormBuilder\Factory\Elm;
-use FormBuilder\Form;
-use http\Exception\InvalidArgumentException;
-use think\db\exception\DataNotFoundException;
-use think\db\exception\DbException;
-use think\db\exception\ModelNotFoundException;
-use think\exception\ValidateException;
-use think\facade\Db;
-use think\facade\Log;
-use think\facade\Queue;
-use think\facade\Route;
-use think\Model;
-
-/**
- * Class StoreOrderRepository
- * @package app\common\repositories\store\order
- * @author xaboy
- * @day 2020/6/9
- * @mixin StoreOrderDao
- */
-class StoreOrderRepository extends BaseRepository
-{
- /**
- * 支付类型
- */
- const PAY_TYPE = ['balance', 'weixin', 'routine', 'h5', 'alipay', 'alipayQr', 'weixinQr'];
-
- const TYPE_SN_ORDER = 'wxo';
- const TYPE_SN_PRESELL = 'wxp';
- const TYPE_SN_USER_ORDER = 'wxs';
- const TYPE_SN_USER_RECHARGE = 'wxu';
-
- const TYPE_SN_REFUND = 'rwx';
- /**
- * StoreOrderRepository constructor.
- * @param StoreOrderDao $dao
- */
- public function __construct(StoreOrderDao $dao)
- {
- $this->dao = $dao;
- }
-
- /**
- * @param string $type
- * @param User $user
- * @param StoreGroupOrder $groupOrder
- * @param string $return_url
- * @return mixed
- * @author xaboy
- * @day 2020/10/22
- */
- public function pay(string $type, User $user, StoreGroupOrder $groupOrder, $return_url = '', $isApp = false)
- {
-
- if ($type === 'balance') {
- return $this->payBalance($user, $groupOrder);
- }
-
- if (in_array($type, ['weixin', 'alipay'], true) && $isApp) {
- $type .= 'App';
- }
- event('order.pay.before', compact('groupOrder', 'type', 'isApp'));
- if (in_array($type, ['weixin', 'weixinApp', 'routine', 'h5', 'weixinQr'], true) && systemConfig('open_wx_combine')) {
- $service = new CombinePayService($type, $groupOrder->getCombinePayParams());
- } else {
- $service = new PayService($type, $groupOrder->getPayParams($type === 'alipay' ? $return_url : ''));
- }
- $config = $service->pay($user);
- return app('json')->status($type, $config + ['order_id' => $groupOrder['group_order_id']]);
- }
-
- /**
- * @param User $user
- * @param StoreGroupOrder $groupOrder
- * @return mixed
- * @author xaboy
- * @day 2020/6/9
- */
- public function payBalance(User $user, StoreGroupOrder $groupOrder)
- {
- if (!systemConfig('yue_pay_status'))
- throw new ValidateException('未开启余额支付');
- if ($user['now_money'] < $groupOrder['pay_price'])
- throw new ValidateException('余额不足,请更换支付方式');
- Db::transaction(function () use ($user, $groupOrder) {
- $user->now_money = bcsub($user->now_money, $groupOrder['pay_price'], 2);
- $user->save();
- $userBillRepository = app()->make(UserBillRepository::class);
- $userBillRepository->decBill($user['uid'], 'now_money', 'pay_product', [
- 'link_id' => $groupOrder['group_order_id'],
- 'status' => 1,
- 'title' => '购买商品',
- 'number' => $groupOrder['pay_price'],
- 'mark' => '余额支付支付' . floatval($groupOrder['pay_price']) . '元购买商品',
- 'balance' => $user->now_money
- ]);
- $this->paySuccess($groupOrder);
- });
- return app('json')->status('success', '余额支付成功', ['order_id' => $groupOrder['group_order_id']]);
- }
-
- public function changePayType(StoreGroupOrder $groupOrder, int $pay_type)
- {
- Db::transaction(function () use ($groupOrder, $pay_type) {
- $groupOrder->pay_type = $pay_type;
- foreach ($groupOrder->orderList as $order) {
- $order->pay_type = $pay_type;
- $order->save();
- }
- $groupOrder->save();
- });
- }
-
- /**
- * @return string
- * @author xaboy
- * @day 2020/8/3
- */
- public function verifyCode()
- {
- $code = substr(uniqid('', true), 15) . substr(microtime(), 2, 8);
- if ($this->dao->existsWhere(['verify_code' => $code]))
- return $this->verifyCode();
- else
- return $code;
- }
-
- /**
- * //TODO 支付成功后
- *
- * @param StoreGroupOrder $groupOrder
- * @author xaboy
- * @day 2020/6/9
- */
- public function paySuccess(StoreGroupOrder $groupOrder, $is_combine = 0, $subOrders = [])
- {
- $groupOrder->append(['user']);
- //修改订单状态
- Db::transaction(function () use ($subOrders, $is_combine, $groupOrder) {
- $time = date('Y-m-d H:i:s');
- $groupOrder->paid = 1;
- $groupOrder->pay_time = $time;
- $groupOrder->is_combine = $is_combine;
- $orderStatus = [];
- $groupOrder->append(['orderList.orderProduct']);
- $flag = true;
- $finance = [];
- $profitsharing = [];
- $financialRecordRepository = app()->make(FinancialRecordRepository::class);
- $financeSn = $financialRecordRepository->getSn();
- $userMerchantRepository = app()->make(UserMerchantRepository::class);
- $storeOrderProfitsharingRepository = app()->make(StoreOrderProfitsharingRepository::class);
- $uid = $groupOrder->uid;
- $i = 1;
- $isVipCoupon = app()->make(StoreGroupOrderRepository::class)->isVipCoupon($groupOrder);
- //订单记录
- $storeOrderStatusRepository = app()->make(StoreOrderStatusRepository::class);
- $svipDiscount = 0;
- foreach ($groupOrder->orderList as $_k => $order) {
- $order->paid = 1;
- $order->pay_time = $time;
- $svipDiscount = bcadd($order->svip_discount, $svipDiscount, 2);
- if (isset($subOrders[$order->order_sn])) {
- $order->transaction_id = $subOrders[$order->order_sn]['transaction_id'];
- }
- $presell = false;
- //todo 等待付尾款
- if ($order->activity_type == 2) {
- $_make = app()->make(ProductPresellSkuRepository::class);
- if ($order->orderProduct[0]['cart_info']['productPresell']['presell_type'] == 2) {
- $order->status = 10;
- $presell = true;
- } else {
- $_make->incCount($order->orderProduct[0]['activity_id'], $order->orderProduct[0]['product_sku'], 'two_pay');
- }
- $_make->incCount($order->orderProduct[0]['activity_id'], $order->orderProduct[0]['product_sku'], 'one_pay');
- } else if ($order->activity_type == 4) {
- $order->status = 9;
- $order->save();
- $group_buying_id = app()->make(ProductGroupBuyingRepository::class)->create(
- $groupOrder->user,
- $order->orderProduct[0]['cart_info']['activeSku']['product_group_id'],
- $order->orderProduct[0]['activity_id'],
- $order->order_id
- );
- $order->orderProduct[0]->activity_id = $group_buying_id;
- $order->orderProduct[0]->save();
- } else if ($order->activity_type == 3) {
- //更新助力状态
- app()->make(ProductAssistSetRepository::class)->changStatus($order->orderProduct[0]['activity_id']);
- }
- if ($order->order_type == 1 && $order->status != 10)
- $order->verify_code = $this->verifyCode();
- $order->save();
- $orderStatus[] = [
- 'order_id' => $order->order_id,
- 'order_sn' => $order->order_sn,
- 'type' => $storeOrderStatusRepository::TYPE_ORDER,
- 'change_message' => '订单支付成功',
- 'change_type' => $storeOrderStatusRepository::ORDER_STATUS_PAY_SUCCCESS,
- 'uid' => $order->uid,
- 'nickname' => $order->user->nickname,
- 'user_type' => $storeOrderStatusRepository::U_TYPE_USER,
- ];
-
- //TODO 成为推广员
- foreach ($order->orderProduct as $product) {
- if ($flag && $product['cart_info']['product']['is_gift_bag']) {
- app()->make(UserRepository::class)->promoter($order->uid);
- $flag = false;
- }
- }
-
- $finance[] = [
- 'order_id' => $order->order_id,
- 'order_sn' => $order->order_sn,
- 'user_info' => $groupOrder->user->nickname,
- 'user_id' => $uid,
- 'financial_type' => $presell ? 'order_presell' : 'order',
- 'financial_pm' => 1,
- 'type' => $presell ? 2 : 1,
- 'number' => $order->pay_price,
- 'mer_id' => $order->mer_id,
- 'financial_record_sn' => $financeSn . ($i++)
- ];
-
- $_payPrice = bcsub($order->pay_price, bcadd($order['extension_one'], $order['extension_two'], 3), 2);
- if ($presell) {
- if (isset($order->orderProduct[0]['cart_info']['presell_extension_one']) && $order->orderProduct[0]['cart_info']['presell_extension_one'] > 0) {
- $_payPrice = bcadd($_payPrice, $order->orderProduct[0]['cart_info']['presell_extension_one'], 2);
- }
- if (isset($order->orderProduct[0]['cart_info']['presell_extension_two']) && $order->orderProduct[0]['cart_info']['presell_extension_two'] > 0) {
- $_payPrice = bcadd($_payPrice, $order->orderProduct[0]['cart_info']['presell_extension_two'], 2);
- }
- }
-
- $_order_rate = 0;
-
- if ($order['commission_rate'] > 0) {
-
- $commission_rate = ($order['commission_rate'] / 100);
-
- $_order_rate = bcmul($_payPrice, $commission_rate, 2);
-
- $_payPrice = bcsub($_payPrice, $_order_rate, 2);
- }
-
- if (!$presell) {
- if ($order['extension_one'] > 0) {
- $finance[] = [
- 'order_id' => $order->order_id,
- 'order_sn' => $order->order_sn,
- 'user_info' => $groupOrder->user->nickname,
- 'user_id' => $uid,
- 'financial_type' => 'brokerage_one',
- 'financial_pm' => 0,
- 'type' => 1,
- 'number' => $order['extension_one'],
- 'mer_id' => $order->mer_id,
- 'financial_record_sn' => $financeSn . ($i++)
- ];
- }
-
- if ($order['extension_two'] > 0) {
- $finance[] = [
- 'order_id' => $order->order_id,
- 'order_sn' => $order->order_sn,
- 'user_info' => $groupOrder->user->nickname,
- 'user_id' => $uid,
- 'financial_type' => 'brokerage_two',
- 'financial_pm' => 0,
- 'type' => 1,
- 'number' => $order['extension_two'],
- 'mer_id' => $order->mer_id,
- 'financial_record_sn' => $financeSn . ($i++)
- ];
- }
-
- if ($order['commission_rate'] > 0) {
- $finance[] = [
- 'order_id' => $order->order_id,
- 'order_sn' => $order->order_sn,
- 'user_info' => $groupOrder->user->nickname,
- 'user_id' => $uid,
- 'financial_type' => 'order_charge',
- 'financial_pm' => 0,
- 'type' => 1,
- 'number' => $_order_rate,
- 'mer_id' => $order->mer_id,
- 'financial_record_sn' => $financeSn . ($i++)
- ];
- }
- $finance[] = [
- 'order_id' => $order->order_id,
- 'order_sn' => $order->order_sn,
- 'user_info' => $groupOrder->user->nickname,
- 'user_id' => $uid,
- 'financial_type' => 'order_true',
- 'financial_pm' => 0,
- 'type' => 2,
- 'number' => $_payPrice,
- 'mer_id' => $order->mer_id,
- 'financial_record_sn' => $financeSn . ($i++)
- ];
-
- if ($order->platform_coupon_price > 0) {
- $finance[] = [
- 'order_id' => $order->order_id,
- 'order_sn' => $order->order_sn,
- 'user_info' => $groupOrder->user->nickname,
- 'user_id' => $uid,
- 'financial_type' => $isVipCoupon ? 'order_svip_coupon' : 'order_platform_coupon',
- 'financial_pm' => 0,
- 'type' => 1,
- 'number' => $order->platform_coupon_price,
- 'mer_id' => $order->mer_id,
- 'financial_record_sn' => $financeSn . ($i++)
- ];
- $_payPrice = bcadd($_payPrice, $order->platform_coupon_price, 2);
- }
-
- if (!$is_combine) {
- app()->make(MerchantRepository::class)->addLockMoney($order->mer_id, 'order', $order->order_id, $_payPrice);
- }
- }
- if ($is_combine) {
- $profitsharing[] = [
- 'profitsharing_sn' => $storeOrderProfitsharingRepository->getOrderSn(),
- 'order_id' => $order->order_id,
- 'transaction_id' => $order->transaction_id ?? '',
- 'mer_id' => $order->mer_id,
- 'profitsharing_price' => $order->pay_price,
- 'profitsharing_mer_price' => $_payPrice,
- 'type' => $storeOrderProfitsharingRepository::PROFITSHARING_TYPE_ORDER,
- ];
- }
- $userMerchantRepository->updatePayTime($uid, $order->mer_id, $order->pay_price);
- SwooleTaskService::merchant('notice', [
- 'type' => 'new_order',
- 'data' => [
- 'title' => '新订单',
- 'message' => '您有一个新的订单',
- 'id' => $order->order_id
- ]
- ], $order->mer_id);
- //自动打印订单
- $this->autoPrinter($order->order_id, $order->mer_id);
- }
- if ($groupOrder->user->spread_uid) {
- Queue::push(UserBrokerageLevelJob::class, ['uid' => $groupOrder->user->spread_uid, 'type' => 'spread_pay_num', 'inc' => 1]);
- Queue::push(UserBrokerageLevelJob::class, ['uid' => $groupOrder->user->spread_uid, 'type' => 'spread_money', 'inc' => $groupOrder->pay_price]);
- }
- app()->make(UserRepository::class)->update($groupOrder->uid, [
- 'pay_count' => Db::raw('pay_count+' . count($groupOrder->orderList)),
- 'pay_price' => Db::raw('pay_price+' . $groupOrder->pay_price),
- 'svip_save_money' => Db::raw('svip_save_money+' . $svipDiscount),
- ]);
- $this->giveIntegral($groupOrder);
- if (count($profitsharing)) {
- $storeOrderProfitsharingRepository->insertAll($profitsharing);
- }
- $financialRecordRepository->insertAll($finance);
- $storeOrderStatusRepository->batchCreateLog($orderStatus);
- if (count($groupOrder['give_coupon_ids']) > 0)
- $groupOrder['give_coupon_ids'] = app()->make(StoreCouponRepository::class)->getGiveCoupon($groupOrder['give_coupon_ids'])->column('coupon_id');
- $groupOrder->save();
- });
-
- if (count($groupOrder['give_coupon_ids']) > 0) {
- try {
- Queue::push(PayGiveCouponJob::class, ['ids' => $groupOrder['give_coupon_ids'], 'uid' => $groupOrder['uid']]);
- } catch (Exception $e) {
- }
- }
-
- Queue::push(SendSmsJob::class, ['tempId' => 'ORDER_PAY_SUCCESS', 'id' => $groupOrder->group_order_id]);
- Queue::push(SendSmsJob::class, ['tempId' => 'ADMIN_PAY_SUCCESS_CODE', 'id' => $groupOrder->group_order_id]);
- Queue::push(UserBrokerageLevelJob::class, ['uid' => $groupOrder->uid, 'type' => 'pay_money', 'inc' => $groupOrder->pay_price]);
- Queue::push(UserBrokerageLevelJob::class, ['uid' => $groupOrder->uid, 'type' => 'pay_num', 'inc' => 1]);
- app()->make(UserBrokerageRepository::class)->incMemberValue($groupOrder->uid, 'member_pay_num', $groupOrder->group_order_id);
- event('order.paySuccess', compact('groupOrder'));
- }
-
- /**
- * 自动打印
- * @Author:Qinii
- * @Date: 2020/10/13
- * @param int $orderId
- * @param int $merId
- */
- public function autoPrinter(int $orderId, int $merId)
- {
- if (merchantConfig($merId, 'printing_auto_status')) {
- try {
- $this->batchPrinter($orderId, $merId);
- } catch (Exception $exception) {
- Log::info('自动打印小票报错');
- }
- } else {
- Log::info('自动打印小票验证:商户ID【' . $merId . '】,自动打印状态未开启');
- }
- }
-
- /**
- * @return string
- * @author xaboy
- * @day 2020/6/9
- */
- public function getNewOrderId($type)
- {
- list($msec, $sec) = explode(' ', microtime());
- $msectime = number_format((floatval($msec) + floatval($sec)) * 1000, 0, '', '');
- $orderId = $type . $msectime . mt_rand(10000, max(intval($msec * 10000) + 10000, 98369));
- return $orderId;
- }
-
- /**
- * @param $cart
- * @return string
- * @author xaboy
- * @day 2020/6/9
- */
- public function productByTempNumber($cart)
- {
- $type = $cart['product']['temp']['type'];
- $cartNum = $cart['cart_num'];
- if (!$type)
- return $cartNum;
- else if ($type == 2) {
- return bcmul($cartNum, $cart['productAttr']['volume'], 2);
- } else {
- return bcmul($cartNum, $cart['productAttr']['weight'], 2);
- }
- }
-
- public function cartByPrice($cart)
- {
- if ($cart['product_type'] == '2') {
- return $cart['productPresellAttr']['presell_price'];
- } else if ($cart['product_type'] == '3') {
- return $cart['productAssistAttr']['assist_price'];
- } else if ($cart['product_type'] == '4') {
- return $cart['activeSku']['active_price'];
- } else {
- return $cart['productAttr']['price'];
- }
- }
-
- public function cartByCouponPrice($cart)
- {
- if ($cart['product_type'] == '2') {
- return $cart['productPresellAttr']['final_price'];
- } else if ($cart['product_type'] == '1') {
- return 0;
- } else if ($cart['product_type'] == '3') {
- return 0;
- } else if ($cart['product_type'] == '4') {
- return 0;
- } else {
- return $cart['productAttr']['price'];
- }
- }
-
- public function cartByDownPrice($cart)
- {
- if ($cart['product_type'] == '2') {
- return $cart['productPresellAttr']['down_price'];
- } else {
- return 0;
- }
- }
-
-
- /**
- * @param int $uid
- * @return array
- * @author xaboy
- * @day 2020/6/10
- */
- public function userOrderNumber(int $uid)
- {
- $noPay = app()->make(StoreGroupOrderRepository::class)->orderNumber($uid);
- $noPostage = $this->dao->search(['uid' => $uid, 'status' => 0, 'paid' => 1,'is_user' => 1])->where('StoreOrder.is_del', 0)->count();
- $all = $this->dao->search(['uid' => $uid, 'status' => -2,'is_user' => 1])->where('StoreOrder.is_del', 0)->count();
- $noDeliver = $this->dao->search(['uid' => $uid, 'status' => 1, 'paid' => 1])->where('StoreOrder.is_del', 0)->count();
- $noComment = $this->dao->search(['uid' => $uid, 'status' => 2, 'paid' => 1,'is_user' => 1])->where('StoreOrder.is_del', 0)->count();
- $done = $this->dao->search(['uid' => $uid, 'status' => 3, 'paid' => 1,'is_user' => 1])->where('StoreOrder.is_del', 0)->count();
- $refund = app()->make(StoreRefundOrderRepository::class)->getWhereCount(['uid' => $uid, 'status' => [0, 1, 2]]);
- //$orderPrice = $this->dao->search(['uid' => $uid, 'paid' => 1])->sum('pay_price');
- $orderCount = $this->dao->search(['uid' => $uid, 'paid' => 1,'is_user' => 1])->count();
- return compact('noComment', 'done', 'refund', 'noDeliver', 'noPay', 'noPostage', 'orderCount', 'all');
- }
-
- /**
- * @param $id
- * @param null $uid
- * @return array|Model|null
- * @throws DataNotFoundException
- * @throws DbException
- * @throws ModelNotFoundException
- * @author xaboy
- * @day 2020/6/10
- */
- public function getDetail($id, $uid = null)
- {
- $where = [];
- $with = [
- 'orderProduct',
- 'merchant' => function ($query) {
- return $query->field('mer_id,mer_name,service_phone')->append(['services_type']);
- },
- 'receipt' => function ($query) {
- return $query->field('order_id,order_receipt_id');
- },
- 'takeOrderList.orderProduct'
- ];
- if ($uid) {
- $where['uid'] = $uid;
- } else if (!$uid) {
- $with['user'] = function ($query) {
- return $query->field('uid,nickname');
- };
- }
- $order = $this->dao->search($where)->where('order_id', $id)->where('StoreOrder.is_del', 0)->with($with)->append(['refund_status'])->find();
- if (!$order) {
- return null;
- }
- if ($order->activity_type == 2) {
- if ($order->presellOrder) {
- $order->presellOrder->append(['activeStatus']);
- $order->presell_price = bcadd($order->pay_price, $order->presellOrder->pay_price, 2);
- } else {
- $order->presell_price = $order->pay_price;
- }
- }
- return $order;
- }
-
- public function codeByDetail($code, $uid = null)
- {
- $where = [];
- if ($uid) $where['uid'] = $uid;
- $data = $this->dao->search($where)->where('verify_code', $code)
- ->where('StoreOrder.is_del', 0)
- ->with([
- 'orderProduct',
- 'merchant' => function ($query) {
- return $query->field('mer_id,mer_name');
- }
- ])
- ->find();
- if (!$data)
- throw new ValidateException('数据不存在');
- if ($data['status'])
- throw new ValidateException('该订单已全部核销');
- return $data;
- }
-
- public function giveIntegral($groupOrder)
- {
- if ($groupOrder->give_integral > 0) {
- app()->make(UserBillRepository::class)->incBill($groupOrder->uid, 'integral', 'lock', [
- 'link_id' => $groupOrder['group_order_id'],
- 'status' => 0,
- 'title' => '下单赠送积分',
- 'number' => $groupOrder->give_integral,
- 'mark' => '成功消费' . floatval($groupOrder['pay_price']) . '元,赠送积分' . floatval($groupOrder->give_integral),
- 'balance' => $groupOrder->user->integral
- ]);
- }
- }
-
- /**
- * @param StoreOrder $order
- * @param User $user
- * @author xaboy
- * @day 2020/8/3
- */
- public function computed(StoreOrder $order, User $user)
- {
- $userBillRepository = app()->make(UserBillRepository::class);
- if ($order->spread_uid) {
- $spreadUid = $order->spread_uid;
- $topUid = $order->top_uid;
- } else if ($order->is_selfbuy) {
- $spreadUid = $user->uid;
- $topUid = $user->spread_uid;
- } else {
- $spreadUid = $user->spread_uid;
- $topUid = $user->top_uid;
- }
- //TODO 添加冻结佣金
- if ($order->extension_one > 0 && $spreadUid) {
- $userBillRepository->incBill($spreadUid, 'brokerage', 'order_one', [
- 'link_id' => $order['order_id'],
- 'status' => 0,
- 'title' => '获得推广佣金',
- 'number' => $order->extension_one,
- 'mark' => $user['nickname'] . '成功消费' . floatval($order['pay_price']) . '元,奖励推广佣金' . floatval($order->extension_one),
- 'balance' => 0
- ]);
- $userRepository = app()->make(UserRepository::class);
- $userRepository->incBrokerage($spreadUid, $order->extension_one);
- // app()->make(FinancialRecordRepository::class)->dec([
- // 'order_id' => $order->order_id,
- // 'order_sn' => $order->order_sn,
- // 'user_info' => $userRepository->getUsername($spreadUid),
- // 'user_id' => $spreadUid,
- // 'financial_type' => 'brokerage_one',
- // 'number' => $order->extension_one,
- // ], $order->mer_id);
- }
- if ($order->extension_two > 0 && $topUid) {
- $userBillRepository->incBill($topUid, 'brokerage', 'order_two', [
- 'link_id' => $order['order_id'],
- 'status' => 0,
- 'title' => '获得推广佣金',
- 'number' => $order->extension_two,
- 'mark' => $user['nickname'] . '成功消费' . floatval($order['pay_price']) . '元,奖励推广佣金' . floatval($order->extension_two),
- 'balance' => 0
- ]);
- $userRepository = app()->make(UserRepository::class);
- $userRepository->incBrokerage($topUid, $order->extension_two);
- // app()->make(FinancialRecordRepository::class)->dec([
- // 'order_id' => $order->order_id,
- // 'order_sn' => $order->order_sn,
- // 'user_info' => $userRepository->getUsername($topUid),
- // 'user_id' => $topUid,
- // 'financial_type' => 'brokerage_two',
- // 'number' => $order->extension_two,
- // ], $order->mer_id);
- }
- }
-
- /**
- * @param StoreOrder $order
- * @param User $user
- * @param string $type
- * @author xaboy
- * @day 2020/8/3
- */
- public function takeAfter(StoreOrder $order, ?User $user)
- {
- Db::transaction(function () use ($user, $order) {
- if ($user) $this->computed($order, $user);
- Queue::push(SendSmsJob::class, ['tempId' => 'ORDER_TAKE_SUCCESS', 'id' => $order->order_id]);
- Queue::push(SendSmsJob::class, ['tempId' => 'ADMIN_TAKE_DELIVERY_CODE', 'id' => $order->order_id]);
- app()->make(MerchantRepository::class)->computedLockMoney($order);
- $order->save();
- });
- }
-
- /**
- * @param $id
- * @param User $user
- * @throws DataNotFoundException
- * @throws DbException
- * @throws ModelNotFoundException
- * @author xaboy
- * @day 2020/6/17
- */
- public function takeOrder($id, ?User $user = null)
- {
- $order = $this->dao->search(!$user ? [] : ['uid' => $user->uid], null)->where('order_id', $id)->where('StoreOrder.is_del', 0)->find();
- if (!$order)
- throw new ValidateException('订单不存在');
- if ($order['status'] != 1 || $order['order_type'])
- throw new ValidateException('订单状态有误');
- $func = 'createUserLog';
- if (!$user){
- $func = 'createSysLog';
- $user = $order->user;
- }
-// if (!$user) {
-//
-// throw new ValidateException('用户不存在');
-// }
- $order->status = 2;
- $order->verify_time = date('Y-m-d H:i:s');
- event('order.take.before', compact('order'));
- //订单记录
- $storeOrderStatusRepository = app()->make(StoreOrderStatusRepository::class);
- $orderStatus = [
- 'order_id' => $order->order_id,
- 'order_sn' => $order->order_sn,
- 'type' => $storeOrderStatusRepository::TYPE_ORDER,
- 'change_message' => '已收货',
- 'change_type' => $storeOrderStatusRepository::ORDER_STATUS_TAKE,
- ];
- Db::transaction(function () use ($order, $user,$storeOrderStatusRepository,$orderStatus,$func) {
- $this->takeAfter($order, $user);
- $order->save();
- $storeOrderStatusRepository->{$func}($orderStatus);
- });
- event('order.take', compact('order'));
- }
-
-
- /**
- * 获取订单列表头部统计数据
- * @Author:Qinii
- * @Date: 2020/9/12
- * @param int|null $merId
- * @param int|null $orderType
- * @return array
- */
- public function OrderTitleNumber(?int $merId, ?int $orderType)
- {
- $where = [];
- $sysDel = $merId ? 0 : null; //商户删除
- if ($merId) $where['mer_id'] = $merId; //商户订单
- if ($orderType === 0) $where['order_type'] = 0; //普通订单
- if ($orderType === 1) $where['take_order'] = 1; //已核销订单
- //1: 未支付 2: 未发货 3: 待收货 4: 待评价 5: 交易完成 6: 已退款 7: 已删除
- $all = $this->dao->search($where, $sysDel)->where($this->getOrderType(0))->count();
- $statusAll = $all;
- $unpaid = $this->dao->search($where, $sysDel)->where($this->getOrderType(1))->count();
- $unshipped = $this->dao->search($where, $sysDel)->where($this->getOrderType(2))->count();
- $untake = $this->dao->search($where, $sysDel)->where($this->getOrderType(3))->count();
- $unevaluate = $this->dao->search($where, $sysDel)->where($this->getOrderType(4))->count();
- $complete = $this->dao->search($where, $sysDel)->where($this->getOrderType(5))->count();
- $refund = $this->dao->search($where, $sysDel)->where($this->getOrderType(6))->count();
- $del = $this->dao->search($where, $sysDel)->where($this->getOrderType(7))->count();
-
- return compact('all', 'statusAll', 'unpaid', 'unshipped', 'untake', 'unevaluate', 'complete', 'refund', 'del');
- }
-
- public function orderType(array $where)
- {
- return [
- [
- 'count' => $this->dao->search($where)->count(),
- 'title' => '全部',
- 'order_type' => -1,
- ],
- [
- 'count' => $this->dao->search($where)->where('order_type', 0)->where('is_virtual', 0)->count(),
- 'title' => '普通订单',
- 'order_type' => 0,
- ],
- [
- 'count' => $this->dao->search($where)->where('order_type', 1)->count(),
- 'title' => '核销订单',
- 'order_type' => 1,
- ],
- [
- 'count' => $this->dao->search($where)->where('is_virtual', 1)->count(),
- 'title' => '虚拟商品订单',
- 'order_type' => 2,
- ],
- ];
- }
-
- /**
- * @param $status
- * @return mixed
- * @author Qinii
- */
- public function getOrderType($status)
- {
- $param['StoreOrder.is_del'] = 0;
- switch ($status) {
- case 1:
- $param['paid'] = 0;
- break; // 未支付
- case 2:
- $param['paid'] = 1;
- $param['StoreOrder.status'] = 0;
- break; // 待发货
- case 3:
- $param['StoreOrder.status'] = 1;
- break; // 待收货
- case 4:
- $param['StoreOrder.status'] = 2;
- break; // 待评价
- case 5:
- $param['StoreOrder.status'] = 3;
- break; // 交易完成
- case 6:
- $param['StoreOrder.status'] = -1;
- break; // 已退款
- case 7:
- $param['StoreOrder.is_del'] = 1;
- break; // 待核销
- break; // 已删除
- default:
- unset($param['StoreOrder.is_del']);
- break; //全部
- }
- return $param;
- }
-
- /**
- * @param int $id
- * @param int|null $merId
- * @return array|Model|null
- * @author Qinii
- */
- public function merDeliveryExists(int $id, ?int $merId, ?int $re = 0)
- {
- $where = ['order_id' => $id, 'is_del' => 0, 'paid' => 1];
- if ($re) $where['status'] = 0;
- if ($merId) $where['mer_id'] = $merId;
- return $this->dao->merFieldExists($where);
- }
-
- /**
- * TODO
- * @param int $id
- * @param int|null $merId
- * @return bool
- * @author Qinii
- * @day 2020-06-11
- */
- public function merGetDeliveryExists(int $id, ?int $merId)
- {
- $where = ['order_id' => $id, 'is_del' => 0, 'paid' => 1, 'status' => 1];
- if ($merId) $where['mer_id'] = $merId;
- return $this->dao->merFieldExists($where);
- }
-
- /**
- * @param int $id
- * @param int|null $merId
- * @return array|Model|null
- * @author Qinii
- */
- public function merStatusExists(int $id, ?int $merId)
- {
- $where = ['order_id' => $id, 'is_del' => 0, 'paid' => 0, 'status' => 0];
- if ($merId) $where['mer_id'] = $merId;
- return $this->dao->merFieldExists($where);
- }
-
- public function userDelExists(int $id, ?int $merId)
- {
- $where = ['order_id' => $id, 'is_del' => 1];
- if ($merId) $where['mer_id'] = $merId;
- return $this->dao->merFieldExists($where);
- }
-
- /**
- * @param $id
- * @return Form
- * @author Qinii
- */
- public function form($id)
- {
- $data = $this->dao->getWhere([$this->dao->getPk() => $id], 'total_price,pay_price,total_postage,pay_postage');
- $form = Elm::createForm(Route::buildUrl('merchantStoreOrderUpdate', ['id' => $id])->build());
- $form->setRule([
- Elm::number('total_price', '订单总价', $data['total_price'])->required(),
- Elm::number('total_postage', '订单邮费', $data['total_postage'])->required(),
- Elm::number('pay_price', '实际支付金额', $data['pay_price'])->required(),
- ]);
- return $form->setTitle('修改订单');
- }
-
- /**
- * TODO 修改订单价格
- * @param int $id
- * @param array $data
- * @author Qinii
- * @day 12/15/20
- */
- public function eidt(int $id, array $data, $service_id = 0)
- {
-
- /**
- * 1 计算出新的实际支付价格
- * 1.1 计算邮费
- * 1.2 计算商品总价
- * 2 修改订单信息
- * 3 计算总单数据
- * 4 修改总单数据
- * 5 修改订单商品单价
- *
- * pay_price = total_price - coupon_price + pay_postage
- */
- $order = $this->dao->get($id);
- if ($order->activity_type == 2) {
- throw new ValidateException('预售订单不支持改价');
- }
- $extension_total = (float)bcadd($order->extension_one, $order->extension_two, 2);
- $data['pay_price'] = $this->bcmathPrice($data['total_price'], $order['coupon_price'], $data['pay_postage']);
- if ($data['pay_price'] < 0) {
- throw new ValidateException('实际支付金额不能小于0');
- } else if ($data['pay_price'] < $extension_total) {
- throw new ValidateException('实际支付金额不能小于佣金' . $extension_total);
- }
- $make = app()->make(StoreGroupOrderRepository::class);
- $orderGroup = $make->dao->getWhere(['group_order_id' => $order['group_order_id']]);
-
- //总单总价格
- $_group['total_price'] = $this->bcmathPrice($orderGroup['total_price'], $order['total_price'], $data['total_price']);
- //总单实际支付价格
- $_group['pay_price'] = $this->bcmathPrice($orderGroup['pay_price'], $order['pay_price'], $data['pay_price']);
- //总单实际支付邮费
- $_group['pay_postage'] = $this->bcmathPrice($orderGroup['pay_postage'], $order['pay_postage'], $data['pay_postage']);
- event('order.changePrice.before', compact('order', 'data'));
- //订单记录
- $storeOrderStatusRepository = app()->make(StoreOrderStatusRepository::class);
-
- $orderStatus = [
- 'order_id' => $order->order_id,
- 'order_sn' => $order->order_sn,
- 'type' => $storeOrderStatusRepository::TYPE_ORDER,
- 'change_message' => '订单价格修改',
- 'change_type' => $storeOrderStatusRepository::ORDER_STATUS_CHANGE,
- ];
-
- Db::transaction(function () use ($id, $data, $orderGroup, $order, $_group,$storeOrderStatusRepository,$orderStatus,$service_id) {
- $orderGroup->total_price = $_group['total_price'];
- $orderGroup->pay_price = $_group['pay_price'];
- $orderGroup->pay_postage = $_group['pay_postage'];
- $orderGroup->group_order_sn = $this->getNewOrderId(StoreOrderRepository::TYPE_SN_ORDER) . '0';
- $orderGroup->save();
-
- $this->dao->update($id, $data);
- $this->changOrderProduct($id, $data);
-
- if ($service_id) {
- $storeOrderStatusRepository->createServiceLog($service_id,$orderStatus);
- } else {
- $storeOrderStatusRepository->createAdminLog($orderStatus);
- }
- if ($data['pay_price'] != $order['pay_price']) Queue::push(SendSmsJob::class, ['tempId' => 'PRICE_REVISION_CODE', 'id' => $id]);
- });
- event('order.changePrice', compact('order', 'data'));
- }
-
- /**
- * TODO 改价后重新计算每个商品的单价
- * @param int $orderId
- * @param array $data
- * @author Qinii
- * @day 12/15/20
- */
- public function changOrderProduct(int $orderId, array $data)
- {
- $make = app()->make(StoreOrderProductRepository::class);
- $ret = $make->getSearch(['order_id' => $orderId])->field('order_product_id,product_num,product_price')->select();
- $count = $make->getSearch(['order_id' => $orderId])->sum('product_price');
- $_count = (count($ret->toArray()) - 1);
- $pay_price = $data['total_price'];
- foreach ($ret as $k => $item) {
- $_price = 0;
- /**
- * 比例 = 单个商品总价 / 订单原总价;
- *
- * 新的商品总价 = 比例 * 订单修改总价
- *
- * 更新数据库
- */
- if ($k == $_count) {
- $_price = $pay_price;
- } else {
- $_reta = bcdiv($item->product_price, $count, 3);
- $_price = bcmul($_reta, $data['total_price'], 2);
- }
-
- $item->product_price = $_price;
- $item->save();
-
- $pay_price = $this->bcmathPrice($pay_price, $_price, 0);
- }
- }
-
- /**
- * TODO 计算的重复利用
- * @param $total
- * @param $old
- * @param $new
- * @return int|string
- * @author Qinii
- * @day 12/15/20
- */
- public function bcmathPrice($total, $old, $new)
- {
- $_bcsub = bcsub($total, $old, 2);
- $_count = (bccomp($_bcsub, 0, 2) == -1) ? 0 : $_bcsub;
- $count = bcadd($_count, $new, 2);
- return (bccomp($count, 0, 2) == -1) ? 0 : $count;
- }
-
- /**
- * @param $id
- * @param $uid
- * @return mixed
- * @throws DataNotFoundException
- * @throws DbException
- * @throws ModelNotFoundException
- * @author xaboy
- * @day 2020/6/12
- */
- public function refundProduct($id, $uid)
- {
- $order = $this->dao->userOrder($id, $uid);
- if (!$order)
- throw new ValidateException('订单不存在');
- if (!count($order->refundProduct))
- throw new ValidateException('没有可退款商品');
- return $order->refundProduct->toArray();
- }
-
- /**
- * TODO
- * @param $id
- * @param $data
- * @return mixed
- * @author Qinii
- * @day 7/26/21
- */
- public function orderDumpInfo($id, $data, $merId)
- {
- $where = [
- 'order_id' => $id,
- ];
- $ret = $this->dao->getWhere($where);
- if ($ret['is_virtual']) throw new ValidateException('虚拟商品只能虚拟发货');
- $cargo = '';
- $count = 0;
- foreach ($ret->orderProduct as $item) {
- // $cargo .= $item['cart_info']['product']['store_name']. ' ' .$item['cart_info']['productAttr']['sku'] .' * ' .$item['product_num'].$item['cart_info']['product']['unit_name'].PHP_EOL;
- $count += $item['product_num'];
- }
-
- $data['to_name'] = $ret['real_name'];
- $data['to_tel'] = $ret['user_phone'];
- $data['to_addr'] = $ret['user_address'];
- $data['cargo'] = $cargo;
- $data['count'] = $count;
- $data['order_sn'] = $ret['order_sn'];
- return $data;
- }
-
- /**
- * TODO 批量发货
- * @param int $merId
- * @param array $params
- * @author Qinii
- * @day 7/26/21
- */
- public function batchDelivery(int $merId, array $params)
- {
- $count = count($params['order_id']);
- $import = app()->make(StoreImportRepository::class)->create($merId, 'delivery', $params['delivery_type']);
- $make = app()->make(StoreImportDeliveryRepository::class);
- $data = [];
- $num = 0;
- foreach ($params['order_id'] as $item) {
- $ret = $this->dao->getWhere(['order_id' => $params['order_id']]);
- $imp = [
- 'order_sn' => $ret['order_sn'] ?? $item,
- 'delivery_id' => $params['delivery_id'],
- 'delivery_type' => $params['delivery_type'],
- 'delivery_name' => $params['delivery_name'],
- 'import_id' => $import['import_id'],
- 'mer_id' => $merId
- ];
-
- if (!$ret || $ret['status'] != 1 || $ret['mer_id'] != $merId || $ret['is_del'] != 0 || $ret['paid'] != 1 || $ret['delivery_type'] != 0 ) {
- $imp['status'] = 0;
- $imp['mark'] = '订单信息不存在或状态错误';
- } else {
- try {
- if ($params['delivery_type'] == 4) {
- $dump = [
- 'temp_id' => $params['temp_id'],
- 'from_tel' => $params['from_tel'],
- 'from_addr' => $params['from_addr'],
- 'from_name' => $params['from_name'],
- 'delivery_name' => $params['delivery_name'],
- ];
- $dump = $this->orderDumpInfo($item, $dump, $merId);
- $ret = $this->dump($item, $merId, $dump);
- $imp['delivery_id'] = $ret['delivery_id'];
- $imp['delivery_name'] = $ret['delivery_name'];
- } else {
- $this->delivery($item, $merId,[
- 'delivery_id' => $params['delivery_id'],
- 'delivery_type' => $params['delivery_type'],
- 'delivery_name' => $params['delivery_name'],
- ]);
- }
- $num++;
- $imp['status'] = 1;
- } catch (Exception $exception) {
- $imp['status'] = 0;
- $imp['mark'] = $exception->getMessage();
- }
- }
- $data[] = $imp;
- }
-
- $_status = ($num == 0) ? -1 : (($count == $num) ? 1 : 10);
- $make->insertAll($data);
- $arr = ['count' => $count, 'success' => $num, 'status' => $_status];
- app()->make(StoreImportRepository::class)->update($import['import_id'], $arr);
- }
-
-
- /**
- * TODO 打印电子面单,组合参数
- * @param int $id
- * @param int $merId
- * @param array $data
- * @return mixed
- * @author Qinii
- * @day 7/26/21
- */
- public function dump(int $id, int $merId, array $data, $service_id = 0)
- {
- $make = app()->make(MerchantRepository::class);
- $make->checkCrmebNum($merId, 'dump');
-
- $data = $this->orderDumpInfo($id, $data, $merId);
-
- $data['com'] = $data['delivery_name'];
- $result = app()->make(CrmebServeServices::class)->express()->dump($merId, $data);
- if (!isset($result['kuaidinum'])) throw new ValidateException('打印失败');
-
- $delivery = [
- 'delivery_type' => 4,
- 'delivery_name' => $data['delivery_name'],
- 'delivery_id' => $result['kuaidinum'],
- 'remark' => $data['remark'] ?? '',
- ];
-
- $dump = [
- 'delivery_name' => $delivery['delivery_name'],
- 'delivery_id' => $delivery['delivery_id'],
- 'from_name' => $data['from_name'],
- 'order_sn' => $data['order_sn'],
- 'to_name' => $data['to_name'],
- ];
- Db::transaction(function () use ($merId, $id, $delivery, $make, $dump, $service_id) {
- $this->delivery($id, $merId, $delivery,$service_id);
- $arr = [
- 'type' => 'mer_dump',
- 'num' => -1,
- 'message' => '电子面单',
- 'info' => $dump
- ];
- app()->make(ProductCopyRepository::class)->add($arr, $merId);
- });
- return $delivery;
- }
-
- public function runDelivery($id, $merId, $data, $split, $method,$service_id = 0)
- {
- return Db::transaction(function () use ($id, $merId, $data, $split, $method,$service_id) {
- if ($split['is_split'] && !empty($split['split'])) {
- foreach ($split['split'] as $v) {
- $splitData[$v['id']] = $v['num'];
- }
- $order = $this->dao->get($id);
- $newOrder = app()->make(StoreOrderSplitRepository::class)->splitOrder($order, $splitData,$service_id);
- if ($newOrder){
- $id = $newOrder->order_id;
- } else {
- throw new ValidateException('商品不能全部拆单');
- }
- }
- return $this->{$method}($id, $merId, $data,$service_id);
- });
- }
-
- /**
- * TODO 发货订单操作
- * @param $id
- * @param $data
- * @return mixed
- * @author Qinii
- * @day 7/26/21
- */
- public function delivery($id, $merId, $data, $service_id = 0)
- {
- $data['status'] = 1;
- $order = $this->dao->get($id);
- if ($order['is_virtual'] && $data['delivery_type'] != 3)
- throw new ValidateException('虚拟商品只能虚拟发货');
- //订单记录
- $statusRepository = app()->make(StoreOrderStatusRepository::class);
- switch ($data['delivery_type']) {
- case 1:
- $exprss = app()->make(ExpressRepository::class)->getWhere(['code' => $data['delivery_name']]);
- if (!$exprss) throw new ValidateException('快递公司不存在');
- $data['delivery_name'] = $exprss['name'];
- $change_type = $statusRepository::ORDER_DELIVERY_COURIER;
- $change_message = '订单已配送【快递名称】:' . $exprss['name'] . '; 【快递单号】:' . $data['delivery_id'];
- $temp_code = 'DELIVER_GOODS_CODE';
- break;
- case 2:
- if (!preg_match("/^1[3456789]{1}\d{9}$/", $data['delivery_id'])) throw new ValidateException('手机号格式错误');
- $change_type = 'delivery_1';
- $change_message = '订单已配送【送货人姓名】:' . $data['delivery_name'] . '; 【手机号】:' . $data['delivery_id'];
- $temp_code = 'ORDER_DELIVER_SUCCESS';
- break;
- case 3:
- $change_type = $statusRepository::ORDER_DELIVERY_NOTHING;
- $change_message = '订单已配送【虚拟发货】';
- $data['status'] = 2;
- break;
- case 4:
- $exprss = app()->make(ExpressRepository::class)->getWhere(['code' => $data['delivery_name']]);
- if (!$exprss) throw new ValidateException('快递公司不存在');
- $data['delivery_name'] = $exprss['name'];
- $change_type = $statusRepository::ORDER_DELIVERY_COURIER;
- $change_message = '订单已配送【快递名称】:' . $exprss['name'] . '; 【快递单号】:' . $data['delivery_id'];
- $temp_code = 'DELIVER_GOODS_CODE';
- break;
- }
-
- event('order.delivery.before', compact('order', 'data'));
- $this->dao->update($id, $data);
-
- $orderStatus = [
- 'order_id' => $order->order_id,
- 'order_sn' => $order->order_sn,
- 'type' => $statusRepository::TYPE_ORDER,
- 'change_message' => $change_message,
- 'change_type' => $change_type,
- ];
- if ($service_id) {
- $statusRepository->createServiceLog($service_id,$orderStatus);
- } else {
- $statusRepository->createAdminLog($orderStatus);
- }
-
-
- //虚拟发货后用户直接确认收获
- if($data['status'] == 2){
- $user = app()->make(UserRepository::class)->get($order['uid']);
- //订单记录
- $this->takeAfter($order,$user);
- $orderStatus = [
- 'order_id' => $order->order_id,
- 'order_sn' => $order->order_sn,
- 'type' => $statusRepository::TYPE_ORDER,
- 'change_message' => '虚拟发货后',
- 'change_type' => $statusRepository::ORDER_STATUS_TAKE,
- ];
- $statusRepository->createSysLog($orderStatus);
-
- }
- if (isset($temp_code)) Queue::push(SendSmsJob::class, ['tempId' => $temp_code, 'id' => $order->order_id]);
-
- event('order.delivery', compact('order', 'data'));
- return $data;
- }
-
- /**
- * TODO 同城配送
- * @param int $id
- * @param int $merId
- * @param array $data
- * @author Qinii
- * @day 2/16/22
- */
- public function cityDelivery(int $id, int $merId, array $data, $service_id)
- {
- $make = app()->make(DeliveryOrderRepository::class);
- $order = $this->dao->get($id);
- if ($order['is_virtual'])
- throw new ValidateException('虚拟商品只能虚拟发货');
- $make->create($id, $merId, $data, $order);
- //订单记录
- $storeOrderStatusRepository = app()->make(StoreOrderStatusRepository::class);
- $this->dao->update($id, ['delivery_type' => 5, 'status' => 1,'remark' => $data['remark']]);
-
- $orderStatus = [
- 'order_id' => $id,
- 'order_sn' => $order->order_sn,
- 'type' => $storeOrderStatusRepository::TYPE_ORDER,
- 'change_message' => '订单配送【同城配送】',
- 'change_type' => $storeOrderStatusRepository::ORDER_DELIVERY_SELF,
- ];
- if ($service_id) {
- $storeOrderStatusRepository->createServiceLog($service_id,$orderStatus);
- } else {
- $storeOrderStatusRepository->createAdminLog($orderStatus);
- }
-
- Queue::push(SendSmsJob::class, ['tempId' => 'ORDER_DELIVER_SUCCESS', 'id' => $id]);
- }
-
-
- public function getOne($id, ?int $merId)
- {
- $where = [$this->getPk() => $id];
- if ($merId) {
- $whre['mer_id'] = $merId;
- $whre['is_system_del'] = 0;
- }
- $res = $this->dao->getWhere($where, '*', [
- 'orderProduct',
- 'user' => function ($query) {
- $query->field('uid,real_name,nickname,is_svip,svip_endtime,phone');
- },
- 'refundOrder' => function ($query) {
- $query->field('order_id,extension_one,extension_two,refund_price,integral')->where('status', 3);
- },
- 'finalOrder',
- 'TopSpread' => function ($query) {
- $query->field('uid,nickname,avatar');
- },
- 'spread' => function ($query) {
- $query->field('uid,nickname,avatar');
- },
- ]
- );
- if (!$res) throw new ValidateException('数据不存在');
- $res['integral'] = (int)$res['integral'];
- return $res->append(['refund_extension_one', 'refund_extension_two']);
- }
-
- public function getOrderStatus($where, $page, $limit)
- {
- $where['type'] = StoreOrderStatusRepository::TYPE_ORDER;
- return app()->make(StoreOrderStatusRepository::class)->search($where, $page, $limit);
- }
-
- public function remarkForm($id)
- {
- $data = $this->dao->get($id);
- $form = Elm::createForm(Route::buildUrl('merchantStoreOrderRemark', ['id' => $id])->build());
- $form->setRule([
- Elm::text('remark', '备注', $data['remark'])->required(),
- ]);
- return $form->setTitle('订单备注');
- }
-
- public function adminMarkForm($id)
- {
- $data = $this->dao->get($id);
- $form = Elm::createForm(Route::buildUrl('systemMerchantOrderMark', ['id' => $id])->build());
- $form->setRule([
- Elm::text('admin_mark', '备注', $data['admin_mark'])->required(),
- ]);
- return $form->setTitle('订单备注');
- }
-
- /**
- * TODO 平台每个商户的订单列表
- * @param $where
- * @param $page
- * @param $limit
- * @return array
- * @author Qinii
- * @day 2020-06-15
- */
- public function adminMerGetList($where, $page, $limit)
- {
- $where['paid'] = 1;
- $query = $this->dao->search($where, null);
- $count = $query->count();
- $list = $query->with([
- 'orderProduct',
- 'merchant' => function ($query) {
- $query->field('mer_id,mer_name,is_trader');
- },
- 'groupOrder' => function ($query) {
- $query->field('group_order_id,group_order_sn');
- },
- 'finalOrder',
- 'user' => function ($query) {
- $query->field('uid,nickname,avatar');
- },
- ])->page($page, $limit)->select()->append(['refund_extension_one', 'refund_extension_two']);
-
- return compact('count', 'list');
- }
-
- public function reconList($where, $page, $limit)
- {
- $ids = app()->make(MerchantReconciliationOrderRepository::class)->getIds($where);
- $query = $this->dao->search([], null)->whereIn('order_id', $ids);
- $count = $query->count();
- $list = $query->with(['orderProduct'])->page($page, $limit)->select()->each(function ($item) {
- //(实付金额 - 一级佣金 - 二级佣金) * 抽成
- $commission_rate = ($item['commission_rate'] / 100);
- //佣金
- $_order_extension = bcadd($item['extension_one'], $item['extension_two'], 3);
- //手续费 = (实付金额 - 一级佣金 - 二级佣金) * 比例
- $_order_rate = bcmul(bcsub($item['pay_price'], $_order_extension, 3), $commission_rate, 3);
- $item['order_extension'] = round($_order_extension, 2);
- $item['order_rate'] = round($_order_rate, 2);
- return $item;
- });
-
- return compact('count', 'list');
- }
-
- /**
- * @param array $where
- * @param $page
- * @param $limit
- * @return array
- * @author Qinii
- */
- public function merchantGetList(array $where, $page, $limit)
- {
- $status = $where['status'];
- unset($where['status']);
- $query = $this->dao->search($where)->where($this->getOrderType($status))
- ->with([
- 'orderProduct',
- 'merchant' => function ($query) {
- $query->field('mer_id,mer_name');
- },
- 'verifyService' => function ($query) {
- $query->field('service_id,nickname');
- },
- 'finalOrder',
- 'groupUser.groupBuying',
- 'TopSpread' => function ($query) {
- $query->field('uid,nickname,avatar');
- },
- 'spread' => function ($query) {
- $query->field('uid,nickname,avatar');
- },
- ]);
- $count = $query->count();
- $list = $query->page($page, $limit)->select()->append(['refund_extension_one', 'refund_extension_two'])
- ->each(function($item){
- // 1:退款中 2:部分退款 3 = 全退
- $refunding = 0;
- if ($item['orderProduct']) {
- $is_refund = array_column($item['orderProduct']->toArray(),'is_refund');
- $is_refund = array_unique($is_refund);
- if (in_array(1,$is_refund)) {
- $refunding = 1;
- } else if (in_array(2,$is_refund)) {
- $refunding = 2;
- } else if (in_array(3,$is_refund)) {
- $refunding = 3;
- }
- }
- $item['refunding'] = $refunding;
- });
-
-
- return compact('count', 'list');
- }
-
- /**
- * TODO 平台总的订单列表
- * @param array $where
- * @param $page
- * @param $limit
- * @return array
- * @author Qinii
- * @day 2020-06-15
- */
- public function adminGetList(array $where, $page, $limit)
- {
- $status = $where['status'];
- unset($where['status']);
- $query = $this->dao->search($where, null)->where($this->getOrderType($status))
- ->with([
- 'orderProduct',
- 'merchant' => function ($query) {
- return $query->field('mer_id,mer_name,is_trader');
- },
- 'verifyService' => function ($query) {
- return $query->field('service_id,nickname');
- },
- 'groupOrder' => function ($query) {
- $query->field('group_order_id,group_order_sn');
- },
- 'finalOrder',
- 'groupUser.groupBuying',
- 'TopSpread' => function ($query) {
- $query->field('uid,nickname,avatar');
- },
- 'spread' => function ($query) {
- $query->field('uid,nickname,avatar');
- },
- 'user' => function ($query) {
- $query->field('uid,nickname,avatar');
- },
- ]);
- $count = $query->count();
- $list = $query->page($page, $limit)->select()->append(['refund_extension_one', 'refund_extension_two']);
-
- return compact('count', 'list');
- }
-
- public function getStat(array $where, $status)
- {
- unset($where['status']);
- $make = app()->make(StoreRefundOrderRepository::class);
- $presellOrderRepository = app()->make(PresellOrderRepository::class);
-
- //退款订单id
- $orderId = $this->dao->search($where)->where($this->getOrderType($status))->column('order_id');
- //退款金额
- $orderRefund = $make->refundPirceByOrder($orderId);
- //实际支付订单数量
- $all = $this->dao->search($where)->where($this->getOrderType($status))->where('paid', 1)->count();
- //实际支付订单金额
- $countQuery = $this->dao->search($where)->where($this->getOrderType($status))->where('paid', 1);
- $countOrderId = $countQuery->column('order_id');
- $countPay1 = $countQuery->sum('StoreOrder.pay_price');
- $countPay2 = $presellOrderRepository->search(['paid' => 1, 'order_ids' => $countOrderId])->sum('pay_price');
- $countPay = bcadd($countPay1, $countPay2, 2);
-
- //余额支付
- $banclQuery = $this->dao->search(array_merge($where, ['paid' => 1, 'pay_type' => 0]))->where($this->getOrderType($status));
- $banclOrderId = $banclQuery->column('order_id');
- $banclPay1 = $banclQuery->sum('StoreOrder.pay_price');
- $banclPay2 = $presellOrderRepository->search(['pay_type' => [0], 'paid' => 1, 'order_ids' => $banclOrderId])->sum('pay_price');
- $banclPay = bcadd($banclPay1, $banclPay2, 2);
-
- //微信金额
- $wechatQuery = $this->dao->search($where)->where($this->getOrderType($status))->where('paid', 1)->where('pay_type', 'in', [1, 2, 3, 6]);
- $wechatOrderId = $wechatQuery->column('order_id');
- $wechatPay1 = $wechatQuery->sum('StoreOrder.pay_price');
- $wechatPay2 = $presellOrderRepository->search(['pay_type' => [1, 2, 3, 6], 'paid' => 1, 'order_ids' => $wechatOrderId])->sum('pay_price');
- $wechatPay = bcadd($wechatPay1, $wechatPay2, 2);
-
- //支付宝金额
- $aliQuery = $this->dao->search($where)->where($this->getOrderType($status))->where('paid', 1)->where('pay_type', 'in', [4, 5]);
- $aliOrderId = $aliQuery->column('order_id');
- $aliPay1 = $aliQuery->sum('StoreOrder.pay_price');
- $aliPay2 = $presellOrderRepository->search(['pay_type' => [4, 5], 'paid' => 1, 'order_ids' => $aliOrderId])->sum('pay_price');
- $aliPay = bcadd($aliPay1, $aliPay2, 2);
-
-
- $stat = [
- [
- 'className' => 'el-icon-s-goods',
- 'count' => $all,
- 'field' => '件',
- 'name' => '已支付订单数量'
- ],
- [
- 'className' => 'el-icon-s-order',
- 'count' => (float)$countPay,
- 'field' => '元',
- 'name' => '实际支付金额'
- ],
- [
- 'className' => 'el-icon-s-cooperation',
- 'count' => (float)$orderRefund,
- 'field' => '元',
- 'name' => '已退款金额'
- ],
- [
- 'className' => 'el-icon-s-cooperation',
- 'count' => (float)$wechatPay,
- 'field' => '元',
- 'name' => '微信支付金额'
- ],
- [
- 'className' => 'el-icon-s-finance',
- 'count' => (float)$banclPay,
- 'field' => '元',
- 'name' => '余额支付金额'
- ],
- [
- 'className' => 'el-icon-s-cooperation',
- 'count' => (float)$aliPay,
- 'field' => '元',
- 'name' => '支付宝支付金额'
- ],
- ];
- return $stat;
- }
-
- /**
- * @param array $where
- * @param $page
- * @param $limit
- * @return array
- * @throws DataNotFoundException
- * @throws DbException
- * @throws ModelNotFoundException
- * @author xaboy
- * @day 2020/6/10
- */
- public function getList(array $where, $page, $limit)
- {
- $query = $this->dao->search($where)->where('StoreOrder.is_del', 0);
- $count = $query->count();
- $list = $query->with([
- 'orderProduct',
- 'presellOrder',
- 'merchant' => function ($query) {
- return $query->field('mer_id,mer_name');
- },
- 'community',
- 'receipt' => function ($query) {
- return $query->field('order_id,order_receipt_id');
- },
- ])->page($page, $limit)->order('pay_time DESC')->append(['refund_status'])->select();
-
- foreach ($list as $order) {
- if ($order->activity_type == 2) {
- if ($order->presellOrder) {
- $order->presellOrder->append(['activeStatus']);
- $order->presell_price = bcadd($order->pay_price, $order->presellOrder->pay_price, 2);
- } else {
- $order->presell_price = $order->pay_price;
- }
- }
- $order->takeOrderCount = count($order['takeOrderList']);
- unset($order['takeOrderList']);
- }
-
- return compact( 'count','list');
- }
-
- public function userList($uid, $page, $limit)
- {
- $query = $this->dao->search([
- 'uid' => $uid,
- 'paid' => 1
- ]);
- $count = $query->count();
- $list = $query->page($page, $limit)->select();
- return compact('count', 'list');
- }
-
-
- public function userMerList($uid, $merId, $page, $limit)
- {
- $query = $this->dao->search([
- 'uid' => $uid,
- 'mer_id' => $merId,
- 'paid' => 1
- ]);
- $count = $query->count();
- $list = $query->with(['presellOrder'])->page($page, $limit)->select();
- foreach ($list as $order) {
- if ($order->activity_type == 2 && $order->status >= 0 && $order->status < 10 && $order->presellOrder) {
- $order->pay_price = bcadd($order->pay_price, $order->presellOrder->pay_price, 2);
- }
- }
- return compact('count', 'list');
- }
-
- public function express(int $orderId, ?int $merId)
- {
- $order = $this->dao->get($orderId);
- if ($merId && $order['mer_id'] != $merId) throw new ValidateException('订单信息不存在');
- if (!in_array($order['delivery_type'], [1, 4])) throw new ValidateException('订单状态错误');
- return ExpressService::express($order->delivery_id, $order->delivery_name, $order->user_phone);
- }
-
- public function checkPrinterConfig(int $merId)
- {
- if (!merchantConfig($merId, 'printing_status'))
- throw new ValidateException('打印功能未开启');
- $config = [
- 'clientId' => merchantConfig($merId, 'printing_client_id'),
- 'apiKey' => merchantConfig($merId, 'printing_api_key'),
- 'partner' => merchantConfig($merId, 'develop_id'),
- 'terminal' => merchantConfig($merId, 'terminal_number')
- ];
- if (!$config['clientId'] || !$config['apiKey'] || !$config['partner'] || !$config['terminal'])
- throw new ValidateException('打印机配置错误');
- return $config;
- }
-
- /**
- * TODO 打印机 -- 暂无使用
- * @param int $id
- * @param int $merId
- * @return bool|mixed|string
- * @author Qinii
- * @day 2020-07-30
- */
- public function printer(int $id, int $merId)
- {
- $order = $this->dao->getWhere(['order_id' => $id], '*', ['orderProduct', 'merchant' => function ($query) {
- $query->field('mer_id,mer_name');
- }]);
- foreach ($order['orderProduct'] as $item) {
- $product[] = [
- 'store_name' => $item['cart_info']['product']['store_name'] . '【' . $item['cart_info']['productAttr']['sku'] . '】',
- 'product_num' => $item['product_num'],
- 'price' => bcdiv($item['product_price'], $item['product_num'], 2),
- 'product_price' => $item['product_price'],
- ];
- }
- $data = [
- 'order_sn' => $order['order_sn'],
- 'pay_time' => $order['pay_time'],
- 'real_name' => $order['real_name'],
- 'user_phone' => $order['user_phone'],
- 'user_address' => $order['user_address'],
- 'total_price' => $order['total_price'],
- 'coupon_price' => $order['coupon_price'],
- 'pay_price' => $order['pay_price'],
- 'total_postage' => $order['total_postage'],
- 'pay_postage' => $order['pay_postage'],
- 'mark' => $order['mark'],
- ];
- $config = $this->checkPrinterConfig($merId);
- $printer = new Printer('yi_lian_yun', $config);
- event('order.print.before', compact('order'));
-
- $res = $printer->setPrinterContent([
- 'name' => $order['merchant']['mer_name'],
- 'orderInfo' => $data,
- 'product' => $product
- ])->startPrinter();
-
- event('order.print', compact('order', 'res'));
-
- return $res;
- }
-
- public function batchPrinter(int $id, int $merId)
- {
- $order = $this->dao->getWhere(['order_id' => $id], '*', ['orderProduct', 'merchant' => function ($query) {
- $query->field('mer_id,mer_name');
- }]);
-
- foreach ($order['orderProduct'] as $item) {
- $product[] = [
- 'store_name' => $item['cart_info']['product']['store_name'] . '【' . $item['cart_info']['productAttr']['sku'] . '】',
- 'product_num' => $item['product_num'],
- 'price' => bcdiv($item['product_price'], $item['product_num'], 2),
- 'product_price' => $item['product_price'],
- ];
- }
-
- $data = [
- 'order_sn' => $order['order_sn'],
- 'order_type' => $order['order_type'],
- 'pay_time' => $order['pay_time'],
- 'real_name' => $order['real_name'],
- 'user_phone' => $order['user_phone'],
- 'user_address' => $order['user_address'],
- 'total_price' => $order['total_price'],
- 'coupon_price' => $order['coupon_price'],
- 'pay_price' => $order['pay_price'],
- 'total_postage' => $order['total_postage'],
- 'pay_postage' => $order['pay_postage'],
- 'mark' => $order['mark'],
- ];
-
- $printer = app()->make(StorePrinterRepository::class)->getPrinter($merId);
- event('order.print.before', compact('order'));
- foreach ($printer as $config) {
- $printer = new Printer('yi_lian_yun', $config);
- $res = $printer->setPrinterContent([
- 'name' => $order['merchant']['mer_name'],
- 'orderInfo' => $data,
- 'product' => $product
- ])->startPrinter();
- }
-
- event('order.print', compact('order', 'res'));
- }
-
-
- public function verifyOrder(int $id, int $merId, array $data, $serviceId = 0)
- {
- $order = $this->dao->getWhere(['order_id' => $id, 'mer_id' => $merId,'verify_code' => $data['verify_code'],'order_type' => 1],'*',['orderProduct']);
- if (!$order) throw new ValidateException('订单不存在');
- if (!$order->paid) throw new ValidateException('订单未支付');
- if ($order['status']) throw new ValidateException('订单已全部核销,请勿重复操作');
- foreach ($data['data'] as $v) {
- $splitData[$v['id']] = $v['num'];
- }
- $spl = app()->make(StoreOrderSplitRepository::class)->splitOrder($order, $splitData, $serviceId, 1);
- if ($spl) $order = $spl;
- $order->status = 2;
- $order->verify_time = date('Y-m-d H:i:s');
- $order->verify_service_id = $serviceId;
- event('order.verify.before', compact('order'));
- //订单记录
- $storeOrderStatusRepository = app()->make(StoreOrderStatusRepository::class);
- Db::transaction(function () use ($order,$storeOrderStatusRepository,$serviceId) {
- $this->takeAfter($order, $order->user);
- $order->save();
- $orderStatus = [
- 'order_id' => $order->order_id,
- 'order_sn' => $order->order_sn,
- 'type' => $storeOrderStatusRepository::TYPE_ORDER,
- 'change_message' => '订单已核销',
- 'change_type' => $storeOrderStatusRepository::ORDER_STATUS_TAKE,
- ];
- if ($serviceId){
- $storeOrderStatusRepository->createServiceLog($serviceId,$orderStatus);
- } else {
- $storeOrderStatusRepository->createAdminLog($orderStatus);
- }
-
- });
- event('order.verify', compact('order'));
- }
-
- public function wxQrcode($orderId, $verify_code)
- {
- $siteUrl = systemConfig('site_url');
- $name = md5('owx' . $orderId . date('Ymd')) . '.jpg';
- $attachmentRepository = app()->make(AttachmentRepository::class);
- $imageInfo = $attachmentRepository->getWhere(['attachment_name' => $name]);
-
- if (isset($imageInfo['attachment_src']) && strstr($imageInfo['attachment_src'], 'http') !== false && curl_file_exist($imageInfo['attachment_src']) === false) {
- $imageInfo->delete();
- $imageInfo = null;
- }
- if (!$imageInfo) {
- // $codeUrl = set_http_type(rtrim($siteUrl, '/') . '/pages/admin/order_cancellation/index?verify_code=' . $verify_code, request()->isSsl() ? 0 : 1);//二维码链接
- $imageInfo = app()->make(QrcodeService::class)->getQRCodePath($verify_code, $name);
- if (is_string($imageInfo)) throw new ValidateException('二维码生成失败');
-
- $imageInfo['dir'] = tidy_url($imageInfo['dir'], null, $siteUrl);
-
- $attachmentRepository->create(systemConfig('upload_type') ?: 1, -2, $orderId, [
- 'attachment_category_id' => 0,
- 'attachment_name' => $imageInfo['name'],
- 'attachment_src' => $imageInfo['dir']
- ]);
- $urlCode = $imageInfo['dir'];
- } else $urlCode = $imageInfo['attachment_src'];
- return $urlCode;
- }
-
- /**
- * TODO 根据商品ID获取订单数
- * @param int $productId
- * @return int
- * @author Qinii
- * @day 2020-08-05
- */
- public function seckillOrderCounut(int $productId)
- {
- $where = [
- 'activity_id' => $productId,
- 'product_type' => 1,
- 'day' => date('Y-m-d', time())
- ];
- $count = $this->dao->getTattendCount($where, null)->count();
- $count_ = $this->dao->getSeckillRefundCount($where, 2);
- $count__ = $this->dao->getSeckillRefundCount($where, 1);
- return $count - $count_ - $count__;
- }
-
- /**
- * TODO 根据商品sku获取订单数
- * @param int $productId
- * @return int
- * @author Qinii
- * @day 2020-08-05
- */
- public function seckillSkuOrderCounut(string $sku)
- {
- $where = [
- 'product_sku' => $sku,
- 'product_type' => 1,
- 'day' => date('Y-m-d', time())
- ];
- $count = $this->dao->getTattendCount($where, null)->count();
- $count_ = $this->dao->getSeckillRefundCount($where, 2);
- $count__ = $this->dao->getSeckillRefundCount($where, 1);
- return $count - $count_ - $count__;
- }
-
- /**
- * TODO 获取sku的总销量
- * @param string $sku
- * @return int|mixed
- * @author Qinii
- * @day 3/4/21
- */
- public function skuSalesCount(string $sku)
- {
- $where = [
- 'product_sku' => $sku,
- 'product_type' => 1,
- ];
- $count = $this->dao->getTattendSuccessCount($where, null)->count();
- $count_ = $this->dao->getSeckillRefundCount($where, 2);
- $count__ = $this->dao->getSeckillRefundCount($where, 1);
- return $count - $count_ - $count__;
- }
-
- /**
- * TODO 秒杀获取个人当天限购
- * @param int $uid
- * @param int $productId
- * @return int
- * @author Qinii
- * @day 2020-08-15
- */
- public function getDayPayCount(int $uid, int $productId)
- {
- $make = app()->make(StoreSeckillActiveRepository::class);
- $active = $make->getWhere(['product_id' => $productId]);
- if ($active['once_pay_count'] == 0) return true;
-
- $where = [
- 'activity_id' => $productId,
- 'product_type' => 1,
- 'day' => date('Y-m-d', time())
- ];
-
- $count = $this->dao->getTattendCount($where, $uid)->count();
- return ($active['once_pay_count'] > $count);
- }
-
- /**
- * TODO 秒杀获取个人总限购
- * @param int $uid
- * @param int $productId
- * @return int
- * @author Qinii
- * @day 2020-08-15
- */
- public function getPayCount(int $uid, int $productId)
- {
- $make = app()->make(StoreSeckillActiveRepository::class);
- $active = $make->getWhere(['product_id' => $productId]);
- if ($active['all_pay_count'] == 0) return true;
- $where = [
- 'activity_id' => $productId,
- 'product_type' => 1,
- 'day' => date('Y-m-d', time())
- ];
- $count = $this->dao->getTattendCount($where, $uid)->count();
- return ($active['all_pay_count'] > $count);
- }
-
- /**
- * 根据订单id查看是否全部退款
- * @Author:Qinii
- * @Date: 2020/9/11
- * @param int $orderId
- * @return bool
- */
- public function checkRefundStatusById(int $orderId, int $refundId)
- {
- return Db::transaction(function () use ($orderId, $refundId) {
- $res = $this->dao->search(['order_id' => $orderId])->with(['orderProduct'])->find();
- $refund = app()->make(StoreRefundOrderRepository::class)->getRefundCount($orderId, $refundId);
- if ($refund) return false;
- foreach ($res['orderProduct'] as $item) {
- if ($item['refund_num'] !== 0) return false;
- $item->is_refund = 3;
- $item->save();
- }
- $res->status = -1;
- $res->save();
- $this->orderRefundAllAfter($res);
- return true;
- });
- }
-
- public function orderRefundAllAfter($order)
- {
-
- if ($order->activity_type == 10) {
- app()->make(StoreDiscountRepository::class)->incStock($order->orderProduct[0]['activity_id']);
- }
- $mainId = $order->main_id ?: $order->order_id;
- $count = $this->query([])->where('status', '<>', -1)->where(function ($query) use ($mainId) {
- $query->where('order_id', $mainId)->whereOr('main_id', $mainId);
- })->count();
- //拆单后完全退完
- if (!$count) {
- if ($order->main_id) {
- $order = $this->query(['order_id' => $mainId])->find();
- }
- $couponId = [];
- if ($order->coupon_id) {
- $couponId = explode(',', $order->coupon_id);
- }
- app()->make(MerchantRepository::class)->computedLockMoney($order);
- //总单所有订单全部退完
- if (!$this->query([])->where('status', '<>', -1)->where('group_order_id', $order->group_order_id)->count()) {
- if ($order->groupOrder->coupon_id) {
- $couponId[] = $order->groupOrder->coupon_id;
- }
- }
- if (count($couponId)) {
- app()->make(StoreCouponUserRepository::class)->updates($couponId, ['status' => 0]);
- }
-
- }
- //订单记录
- $storeOrderStatusRepository = app()->make(StoreOrderStatusRepository::class);
- $orderStatus = [
- 'order_id' => $order->order_id,
- 'order_sn' => $order->order_sn,
- 'type' => $storeOrderStatusRepository::TYPE_ORDER,
- 'change_message' => '订单已全部退款',
- 'change_type' => $storeOrderStatusRepository::ORDER_STATUS_REFUND_ALL,
- ];
- $storeOrderStatusRepository->createSysLog($orderStatus);
-
- event('order.refundAll', compact('order'));
- }
-
- /**
- * @param $id
- * @param $uid
- * @throws DataNotFoundException
- * @throws DbException
- * @throws ModelNotFoundException
- * @author xaboy
- * @day 2020/9/17
- */
- public function userDel($id, $uid)
- {
- $order = $this->dao->getWhere([['status', 'in', [0, 3, -1, 11]], ['order_id', '=', $id], ['uid', '=', $uid], ['is_del', '=', 0]]);
- if (!$order || ($order->status == 0 && $order->paid == 1))
- throw new ValidateException('订单状态有误');
- event('order.userDel.before', compact('order'));
- $this->delOrder($order, '订单删除');
- event('order.userDel', compact('order'));
- }
-
- public function delOrder($order, $info = '订单删除')
- {
- //订单记录
- $storeOrderStatusRepository = app()->make(StoreOrderStatusRepository::class);
- $orderStatus = [
- 'order_id' => $order->order_id,
- 'order_sn' => $order->order_sn,
- 'type' => $storeOrderStatusRepository::TYPE_ORDER,
- 'change_message' => $info,
- 'change_type' => $storeOrderStatusRepository::ORDER_STATUS_DELETE,
- ];
- $productRepository = app()->make(ProductRepository::class);
- Db::transaction(function () use ($info, $order, $orderStatus, $storeOrderStatusRepository,$productRepository) {
- $order->is_del = 1;
- $order->save();
- $storeOrderStatusRepository->createUserLog($orderStatus);
- foreach ($order->orderProduct as $cart) {
- $productRepository->orderProductIncStock($order, $cart);
- }
- });
- }
-
- public function merDelete($id)
- {
- Db::transaction(function () use ($id) {
- $data['is_system_del'] = 1;
- $this->dao->update($id, $data);
- app()->make(StoreOrderReceiptRepository::class)->deleteByOrderId($id);
- });
- }
-
- /**
- * @param $id
- * @return \FormBuilder\Form
- * @author Qinii
- */
- public function sendProductForm($id, $data)
- {
- $express = app()->make(ExpressRepository::class)->options();
- $form = Elm::createForm(Route::buildUrl('merchantStoreOrderDelivery', ['id' => $id])->build());
-
- if (in_array($data['delivery_type'], [1, 2])) {
- if ($data['delivery_type'] == 1) {
- $form->setRule([
- Elm::hidden('delivery_type', 1),
- [
- 'type' => 'span',
- 'title' => '原快递名称',
- 'children' => [(string)$data['delivery_name']]
- ],
- [
- 'type' => 'span',
- 'title' => '原快递单号',
- 'children' => [(string)$data['delivery_id']]
- ],
- Elm::select('delivery_name', '快递名称')->options(function () use ($express) {
- return $express;
- }),
- Elm::input('delivery_id', '快递单号')->required(),
- ]);
- } else {
- $form->setRule([
- Elm::hidden('delivery_type', 2),
- [
- 'type' => 'span',
- 'title' => '原送货人姓名',
- 'children' => [(string)$data['delivery_name']]
- ],
- [
- 'type' => 'span',
- 'title' => '原手机号',
- 'children' => [(string)$data['delivery_id']]
- ],
- Elm::input('delivery_name', '送货人姓名')->required(),
- Elm::input('delivery_id', '手机号')->required(),
- ]);
- }
- }
- if ($data['delivery_type'] == 3) {
- $form->setRule([
- Elm::hidden('delivery_type', 3),
- [
- 'type' => 'span',
- 'title' => '发货类型',
- 'children' => ['无需配送']
- ]
- ]);
- }
- if (!$data['delivery_type']) {
- $form->setRule([
- Elm::radio('delivery_type', '发货类型', 1)
- ->setOptions([
- ['value' => 1, 'label' => '发货'],
- ['value' => 2, 'label' => '送货'],
- ['value' => 3, 'label' => '无需配送'],
- ])->control([
- [
- 'value' => 1,
- 'rule' => [
- Elm::select('delivery_name', '快递名称')->options(function () use ($express) {
- return $express;
- }),
- Elm::input('delivery_id', '快递单号')->required(),
- ]
- ],
- [
- 'value' => 2,
- 'rule' => [
- Elm::input('delivery_name', '送货人姓名')->required(),
- Elm::input('delivery_id', '手机号')->required(),
- ]
- ],
- [
- 'value' => 3,
- 'rule' => []
- ],
-
- ]),
- ]);
- }
-
- return $form->setTitle('发货信息');
- }
-
- /**
- * TODO 导入发货信息
- * @param array $data
- * @param $merId
- * @author Qinii
- * @day 3/16/21
- */
- public function setWhereDeliveryStatus(array $arrary, $merId)
- {
- //读取excel
- $data = SpreadsheetExcelService::instance()->_import($arrary['path'], $arrary['sql'], $arrary['where'], 4);
- if (!$data) return;
- $import_id = $arrary['import_id'];
- Db::transaction(function () use ($data, $merId, $import_id) {
- $result = [];
- $num = 0;
- $count = 0;
- $status = 0;
- foreach ($data as $datum) {
- $value = [];
- $ret = [];
- if ($datum['where']) {
- $count = $count + 1;
- if (empty($datum['value']['delivery_id'])) {
- $mark = '发货单号为空';
- } else {
- $ret = $this->getSearch([])
- ->where('status', 0)
- ->where('paid', 1)
- ->where('order_type', 0)
- ->where('mer_id', $merId)
- ->where($datum['where'])
- ->find();
- $mark = '数据有误或已发货';
- }
- if ($ret) {
- try {
- $value = array_merge($datum['value'], ['status' => 1]);
- $value['delivery_type'] = 1;
- $this->delivery($ret['order_id'], $merId, $value);
-
- $status = 1;
- $mark = '';
-
- $num = $num + 1;
- } catch (\Exception $exception) {
- $mark = $exception->getMessage();
- }
- }
- $datum['where']['mark'] = $mark;
- $datum['where']['mer_id'] = $merId;
- $datum['where']['status'] = $status;
- $datum['where']['import_id'] = $import_id;
- $result[] = array_merge($datum['where'], $datum['value']);
- }
- }
- // 记录入库操作
- if (!empty($result)) app()->make(StoreImportDeliveryRepository::class)->insertAll($result);
- $_status = ($count == $num) ? 1 : (($num < 1) ? -1 : 10);
- app()->make(StoreImportRepository::class)->update($import_id, ['count' => $count, 'success' => $num, 'status' => $_status]);
- });
- if (file_exists($arrary['path'])) unlink($arrary['path']);
- }
-
- /**
- * TODO 根据订单查询相关联的自订单
- * @param $id
- * @param $merId
- * @return \think\Collection
- * @author Qinii
- * @day 2023/2/22
- */
- public function childrenList($id,$merId)
- {
- $data = $this->dao->get($id);
- $query = $this->dao->getSearch([])->with(['orderProduct'])->where('order_id','<>',$id);
- if ($merId) $query->where('mer_id',$merId);
- if ($data['main_id']) {
- $query->where(function($query) use($data,$id){
- $query->where('main_id',$data['main_id'])->whereOr('order_id',$data['main_id']);
- });
- } else {
- $query->where('main_id',$id);
- }
- return $query->select();
- }
-}
diff --git a/app/common/repositories/store/product/ProductRepository.php b/app/common/repositories/store/product/ProductRepository.php
index b9b54428..a9134789 100644
--- a/app/common/repositories/store/product/ProductRepository.php
+++ b/app/common/repositories/store/product/ProductRepository.php
@@ -1242,7 +1242,7 @@ class ProductRepository extends BaseRepository
$append[] = 'topReply';
}
unset($res['attr'], $res['attrValue'], $res['oldAttrValue'], $res['seckillActive']);
- if (count($attr) > 0) {
+ if (count($attr) > 1) {
$firstSku = [];
foreach ($attr as $item) {
$firstSku[] = $item['attr_values'][0];
diff --git a/app/common/repositories/store/product/SpuRepository.php b/app/common/repositories/store/product/SpuRepository.php
index 34acca66..f77195f7 100644
--- a/app/common/repositories/store/product/SpuRepository.php
+++ b/app/common/repositories/store/product/SpuRepository.php
@@ -129,7 +129,7 @@ class SpuRepository extends BaseRepository
* @author Qinii
* @day 12/18/20
*/
- public function getApiSearch($where, $page, $limit, $userInfo = null)
+ public function getApiSearch($where, $page, $limit, $userInfo = null,$is_sku=false)
{
if (isset($where['keyword']) && !empty($where['keyword'])) {
if (preg_match('/^(\/@[1-9]{1}).*\*\//', $where['keyword'])) {
@@ -154,7 +154,13 @@ class SpuRepository extends BaseRepository
]);
$productMake = app()->make(ProductRepository::class);
$count = $query->fetchSql(false)->count();
- $list = $query->page($page, $limit)->setOption('field', [])->field($this->productFiled)->select();
+ $list = $query->page($page, $limit)->setOption('field', [])->field($this->productFiled)->select()
+ ->each(function ($item) use ($is_sku,$productMake,$userInfo) {
+ if($is_sku==true){
+ $sku = $productMake->detailAttrValue($item['product']['attrValue'], $userInfo);
+ $item['sku']=$sku;
+ }
+ });
$append = ['stop_time','svip_price','show_svip_info','is_svip_price'];
if ($productMake->getUserIsPromoter($userInfo))
$append[] = 'max_extension';
@@ -177,7 +183,12 @@ class SpuRepository extends BaseRepository
app()->make(UserVisitRepository::class)->searchProduct($this->userInfo ? $this->userInfo['uid'] : 0, $where['keyword'], (int)($where['mer_id'] ?? 0));
}
}
+ $entryMerId = $where['entry_mer_id'] ?? '';
+ unset($where['entry_mer_id']);
+ $query = $this->dao->search($where);
+ $count = $query->fetchSql(false)->count();
if ($rand) {
+ $query->whereRaw('spu_id >= ( SELECT floor( RAND() * ( SELECT MAX( spu_id ) FROM `eb_store_spu` ) ) )');
// $dataKey = sprintf(CloudProduct::CacheKey, $where['mer_rand_id']);
// $RedisCacheService = app()->make(RedisCacheService::class);
// $exists = $RedisCacheService->exists($dataKey);
@@ -189,24 +200,20 @@ class SpuRepository extends BaseRepository
// }
// $where['product_id'] = $this->getSpuFromCache($where['mer_rand_id'], $page, $limit);
// 查询
- $query = $this->dao->search($where);
- $randPidList = $query->setOption('field', [])->field(['P.product_id'])->fetchSql(false)->page(1)->limit(500)->column('P.product_id');
- $randNum = count($randPidList);
- // 最多10条随机数据
- if ($randNum > 10) {
- array_rand($randPidList, 10);
- } elseif ($randNum > 0) {
- array_rand($randPidList, $randNum);
- } else {
- $randPidList = [];
- }
- $where['product_id'] = $randPidList;
- unset($where['mer_rand_id'], $where['page']);
+ // $query = $this->dao->search($where);
+ // $randPidList = $query->setOption('field', [])->field(['P.product_id'])->fetchSql(false)->page(1)->limit(500)->column('P.product_id');
+ // $randNum = count($randPidList);
+ // // 最多10条随机数据
+ // if ($randNum > 10) {
+ // array_rand($randPidList, 10);
+ // } elseif ($randNum > 0) {
+ // array_rand($randPidList, $randNum);
+ // } else {
+ // $randPidList = [];
+ // }
+ // $where['product_id'] = $randPidList;
+ // unset($where['mer_rand_id'], $where['page']);
}
- $entryMerId = $where['entry_mer_id'] ?? '';
- unset($where['entry_mer_id']);
- $query = $this->dao->search($where);
- $count = $query->fetchSql(false)->count();
$query->with([
'merchant' => function ($query) {
$query->field($this->merchantFiled)->with(['type_names']);
diff --git a/app/common/repositories/system/merchant/MerchantIntentionRepository.php.bak b/app/common/repositories/system/merchant/MerchantIntentionRepository.php.bak
deleted file mode 100644
index b5428766..00000000
--- a/app/common/repositories/system/merchant/MerchantIntentionRepository.php.bak
+++ /dev/null
@@ -1,166 +0,0 @@
-
-// +----------------------------------------------------------------------
-
-namespace app\common\repositories\system\merchant;
-
-use app\common\repositories\BaseRepository;
-use crmeb\jobs\SendSmsJob;
-use crmeb\services\SmsService;
-use FormBuilder\Factory\Elm;
-use app\common\dao\system\merchant\MerchantIntentionDao;
-use think\exception\ValidateException;
-use think\facade\Db;
-use think\facade\Queue;
-use think\facade\Route;
-
-/**
- * @mixin MerchantIntentionDao
- */
-class MerchantIntentionRepository extends BaseRepository
-{
-
- public function __construct(MerchantIntentionDao $dao)
- {
- $this->dao = $dao;
- }
-
- public function getList(array $where, $page, $limit)
- {
- $query = $this->dao->search($where);
- $count = $query->count();
- $list = $query->page($page, $limit)->order('create_time DESC , status ASC')->with(['merchantCategory', 'merchantType'])->select();
-
- return compact('count', 'list');
- }
-
- public function detail($id, ?int $uid)
- {
- $where = ['mer_intention_id' => $id];
- if (!is_null($uid)) {
- $where['uid'] = $uid;
- }
- return $this->dao->search($where)->find();
- }
-
- public function updateIntention($id, array $data)
- {
- if ($this->dao->existsWhere(['mer_intention_id' => $id, 'status' => '1']))
- throw new ValidateException('当前状态不能修改');
- $data['images'] = implode(',', (array)$data['images']);
- $data['status'] = 0;
- $data['fail_msg'] = '';
- return $this->dao->update($id, $data);
- }
-
- public function markForm($id)
- {
- $data = $this->dao->get($id);
- $form = Elm::createForm(Route::buildUrl('systemMerchantIntentionMark', ['id' => $id])->build());
- $form->setRule([
- Elm::textarea('mark', '备注', $data['remark'])->required(),
- ]);
- return $form->setTitle('修改备注');
- }
-
- public function statusForm($id)
- {
- $form = Elm::createForm(Route::buildUrl('systemMerchantIntentionStatus', ['id' => $id])->build());
- $form->setRule([
- Elm::select('status', '审核状态', 1)->options([
- ['value' => 1, 'label' => '同意'],
- ['value' => 2, 'label' => '拒绝'],
- ])->control([
- [
- 'value' => 1,
- 'rule' => [
- Elm::radio('create_mer', '自动创建商户', 1)->options([
- ['value' => 1, 'label' => '创建'],
- ['value' => 2, 'label' => '不创建'],
- ])
- ]
- ],
- [
- 'value' => 2,
- 'rule' => [
- Elm::textarea('fail_msg', '失败原因', '信息填写有误')
- ]
- ]
- ]),
- ]);
- return $form->setTitle('修改审核状态');
- }
-
- public function updateStatus($id, $data)
- {
- $create = $data['create_mer'] == 1;
- unset($data['create_mer']);
- $intention = $this->search(['mer_intention_id' => $id])->find();
- if (!$intention)
- throw new ValidateException('信息不存在');
- if ($intention->status)
- throw new ValidateException('状态有误,修改失败');
- $config = systemConfig(['broadcast_room_type', 'broadcast_goods_type']);
-
- $margin = app()->make(MerchantTypeRepository::class)->get($intention['mer_type_id']);
- $data['is_margin'] = $margin['is_margin'] ?? -1;
- $data['margin'] = $margin['margin'] ?? 0;
- $merData = [];
- if ($create) {
- $password = substr($intention['phone'], -6);
- $merData = [
- 'mer_name' => $intention['mer_name'],
- 'mer_phone' => $intention['phone'],
- 'mer_account' => $intention['phone'],
- 'category_id' => $intention['merchant_category_id'],
- 'type_id' => $intention['mer_type_id'],
- 'real_name' => $intention['name'],
- 'status' => 1,
- 'is_audit' => 1,
- 'is_bro_room' => $config['broadcast_room_type'] == 1 ? 0 : 1,
- 'is_bro_goods' => $config['broadcast_goods_type'] == 1 ? 0 : 1,
- 'mer_password' => $password,
- 'is_margin' => $margin['is_margin'] ?? -1,
- 'margin' => $margin['margin'] ?? 0
- ];
- $data['fail_msg'] = '';
- $smsData = [
- 'date' => date('m月d日', strtotime($intention->create_time)),
- 'mer' => $intention['mer_name'],
- 'phone' => $intention['phone'],
- 'pwd' => $password ?? '',
- 'site_name' => systemConfig('site_name'),
- ];
- }
- if ($data['status'] == 2) {
- $smsData = [
- 'phone' => $intention['phone'],
- 'date' => date('m月d日', strtotime($intention->create_time)),
- 'mer' => $intention['mer_name'],
- 'site' => systemConfig('site_name'),
- ];
- }
-
- Db::transaction(function () use ($config, $intention, $data, $create,$margin,$merData,$smsData) {
- if ($data['status'] == 1) {
- if ($create) {
- $merchant = app()->make(MerchantRepository::class)->createMerchant($merData);
- $data['mer_id'] = $merchant->mer_id;
- Queue::push(SendSmsJob::class, ['tempId' => 'APPLY_MER_SUCCESS', 'id' => $smsData]);
- }
- } else {
- Queue::push(SendSmsJob::class, ['tempId' => 'APPLY_MER_FAIL', 'id' => $smsData]);
- }
- $intention->save($data);
- });
- }
-
-}
diff --git a/app/common/repositories/system/merchant/MerchantRepository.php b/app/common/repositories/system/merchant/MerchantRepository.php
index a2a5f87f..1157f456 100644
--- a/app/common/repositories/system/merchant/MerchantRepository.php
+++ b/app/common/repositories/system/merchant/MerchantRepository.php
@@ -293,7 +293,7 @@ class MerchantRepository extends BaseRepository
*/
public function getList($where, $page, $limit, $userInfo)
{
- $field = 'mer_id,mini_banner,mer_name,mer_avatar,product_score,service_score,postage_score,sales,status,create_time,long,lat,mer_address,care_count,type_id,street_id,service_phone';
+ $field = 'mer_id,mini_banner,mer_name,mer_avatar,product_score,service_score,postage_score,sales,status,create_time,long,lat,mer_address,care_count,type_id,street_id,service_phone,mer_info';
$where['status'] = 1;
$where['mer_state'] = 1;
$where['is_del'] = 0;
@@ -317,7 +317,7 @@ class MerchantRepository extends BaseRepository
$status = systemConfig('mer_location');
/** @var MerchantTakeRepository $repository */
$repository = app()->make(MerchantTakeRepository::class);
- $list = $query->with('street_names')->page($page, $limit)->setOption('field', [])->field($field)->select()
+ $list = $query->with(['street_names','type_names'])->page($page, $limit)->setOption('field', [])->field($field)->select()
->each(function ($item) use ($status, $where, $repository) {
if ($status && $item['lat'] && $item['long'] && isset($where['location']['lat'], $where['location']['long'])) {
$distance = getDistance($where['location']['lat'], $where['location']['long'], $item['lat'], $item['long']);
@@ -369,7 +369,7 @@ class MerchantRepository extends BaseRepository
*/
public function detail($id, $userInfo)
{
- $merchant = $this->dao->apiGetOne($id)->hidden(['coordinates']);
+ $merchant = $this->dao->apiGetOne($id);
$merchant->append(['type_names', 'isset_certificate', 'services_type']);
$merchant['care'] = false;
if ($userInfo)
diff --git a/app/controller/admin/ProductLibrary.php b/app/controller/admin/ProductLibrary.php
index a506ad6d..969805c1 100644
--- a/app/controller/admin/ProductLibrary.php
+++ b/app/controller/admin/ProductLibrary.php
@@ -128,15 +128,15 @@ class ProductLibrary extends BaseController
$data['stock'] = 9999999;
$data['create_time'] = date('Y-m-d H:i:s');
$data['images'] = '';
+ $arr=[];
if ($param['img'] != '') {
$oss = $upload->to($dir)->stream(file_get_contents($param['img']));
$data['image'] = $oss->filePath;
-
+ $arr[]=$oss->filePath;
} else {
$data['image'] = 'https://lihai001.oss-cn-chengdu.aliyuncs.com/uploads/20230130/00ebcfdf75684f5494c0193075055d1.png';
$data['slider_image'] = 'https://lihai001.oss-cn-chengdu.aliyuncs.com/uploads/20230130/00ebcfdf75684f5494c0193075055d1.png';
}
- $arr=[];
foreach($param['imgList'] as $k=>$v){
$oss=$upload->to($dir)->stream(file_get_contents($v));
$arr[] = $oss->filePath;
diff --git a/app/controller/admin/system/merchant/Merchant.php.bak b/app/controller/admin/system/merchant/Merchant.php.bak
deleted file mode 100644
index 2c901672..00000000
--- a/app/controller/admin/system/merchant/Merchant.php.bak
+++ /dev/null
@@ -1,300 +0,0 @@
-
-// +----------------------------------------------------------------------
-
-
-namespace app\controller\admin\system\merchant;
-
-
-use app\common\repositories\store\product\ProductCopyRepository;
-use app\common\repositories\system\merchant\MerchantTypeRepository;
-use app\common\repositories\user\UserBillRepository;
-use crmeb\basic\BaseController;
-use app\common\repositories\system\merchant\MerchantAdminRepository;
-use app\common\repositories\system\merchant\MerchantCategoryRepository;
-use app\common\repositories\system\merchant\MerchantRepository;
-use app\validate\admin\MerchantValidate;
-use crmeb\jobs\ChangeMerchantStatusJob;
-use FormBuilder\Exception\FormBuilderException;
-use think\App;
-use think\db\exception\DataNotFoundException;
-use think\db\exception\DbException;
-use think\db\exception\ModelNotFoundException;
-use think\facade\Queue;
-
-/**
- * Class Merchant
- * @package app\controller\admin\system\merchant
- * @author xaboy
- * @day 2020-04-16
- */
-class Merchant extends BaseController
-{
- /**
- * @var MerchantRepository
- */
- protected $repository;
-
- /**
- * Merchant constructor.
- * @param App $app
- * @param MerchantRepository $repository
- */
- public function __construct(App $app, MerchantRepository $repository)
- {
- parent::__construct($app);
- $this->repository = $repository;
- }
-
- public function count()
- {
- $where = $this->request->params(['keyword', 'date', 'status', 'statusTag', 'is_trader', 'category_id', 'type_id']);
- return app('json')->success($this->repository->count($where));
- }
-
- /**
- * @return mixed
- * @throws DataNotFoundException
- * @throws DbException
- * @throws ModelNotFoundException
- * @author xaboy
- * @day 2020-04-16
- */
- public function lst()
- {
- [$page, $limit] = $this->getPage();
- $where = $this->request->params(['keyword', 'date', 'status', 'statusTag', 'is_trader', 'category_id', 'type_id']);
- return app('json')->success($this->repository->lst($where, $page, $limit));
- }
-
-
- /**
- * @return mixed
- * @throws FormBuilderException
- * @author xaboy
- * @day 2020-04-16
- */
- public function createForm()
- {
- return app('json')->success(formToData($this->repository->form()));
- }
-
- /**
- * @param MerchantValidate $validate
- * @param MerchantCategoryRepository $merchantCategoryRepository
- * @param MerchantAdminRepository $adminRepository
- * @return mixed
- * @author xaboy
- * @day 2020/7/2
- */
- public function create(MerchantValidate $validate)
- {
- $data = $this->checkParam($validate);
- $this->repository->createMerchant($data);
- return app('json')->success('添加成功');
- }
-
-
- /**
- * @param int $id
- * @return mixed
- * @throws FormBuilderException
- * @throws DataNotFoundException
- * @throws DbException
- * @throws ModelNotFoundException
- * @author xaboy
- * @day 2020-04-16
- */
- public function updateForm($id)
- {
- if (!$this->repository->exists($id))
- return app('json')->fail('数据不存在');
-
- return app('json')->success(formToData($this->repository->updateForm($id)));
- }
-
- /**
- * @param int $id
- * @param MerchantValidate $validate
- * @param MerchantCategoryRepository $merchantCategoryRepository
- * @return mixed
- * @throws DbException
- * @author xaboy
- * @day 2020-05-06
- */
- public function update($id, MerchantValidate $validate, MerchantCategoryRepository $merchantCategoryRepository)
- {
- $data = $this->checkParam($validate, true);
- if (!$this->repository->exists($id))
- return app('json')->fail('数据不存在');
- if ($this->repository->fieldExists('mer_name', $data['mer_name'], $id))
- return app('json')->fail('商户名已存在');
- if ($data['mer_phone'] && isPhone($data['mer_phone']))
- return app('json')->fail('请输入正确的手机号');
- if (!$data['category_id'] || !$merchantCategoryRepository->exists($data['category_id']))
- return app('json')->fail('商户分类不存在');
-
- unset($data['mer_account'], $data['mer_password']);
- $margin = $this->repository->checkMargin($id, $data['type_id']);
- $data['margin'] = $margin['margin'];
- $data['is_margin'] = $margin['is_margin'];
- $this->repository->update($id, $data);
- return app('json')->success('编辑成功');
- }
-
- /**
- * @param int $id
- * @return mixed
- * @throws DbException
- * @author xaboy
- * @day 2020-04-17
- */
- public function delete($id)
- {
- if (!$merchant = $this->repository->get(intval($id)))
- return app('json')->fail('数据不存在');
- if ($merchant->status)
- return app('json')->fail('请先关闭该商户');
- $this->repository->delete($id);
- return app('json')->success('编辑成功');
- }
-
- /**
- * @param MerchantValidate $validate
- * @param bool $isUpdate
- * @return array
- * @author xaboy
- * @day 2020-04-17
- */
- public function checkParam(MerchantValidate $validate, $isUpdate = false)
- {
- $data = $this->request->params([['category_id', 0], ['type_id', 0], 'mer_name', 'commission_rate', 'real_name', 'mer_phone', 'mer_keyword', 'mer_address', 'mark', ['sort', 0], ['status', 0], ['is_audit', 0], ['is_best', 0], ['is_bro_goods', 0], ['is_bro_room', 0], ['is_trader', 0],'sub_mchid']);
- if (!$isUpdate) {
- $data += $this->request->params(['mer_account', 'mer_password']);
- }else {
- $validate->isUpdate();
- unset($data['status']);
- }
- $validate->check($data);
- return $data;
- }
-
- /**
- * @param int $id
- * @return mixed
- * @throws DbException
- * @author xaboy
- * @day 2020-03-31
- */
- public function switchStatus($id)
- {
- $is_best = $this->request->param('status', 0) == 1 ? 1 : 0;
- if (!$this->repository->exists($id))
- return app('json')->fail('数据不存在');
- $this->repository->update($id, compact('is_best'));
- return app('json')->success('修改成功');
- }
-
- /**
- * @param int $id
- * @return mixed
- * @throws DbException
- * @author xaboy
- * @day 2020-03-31
- */
- public function switchClose($id)
- {
- $status = $this->request->param('status', 0) == 1 ? 1 : 0;
- if (!$this->repository->exists($id))
- return app('json')->fail('数据不存在');
- $this->repository->update($id, compact('status'));
- Queue::push(ChangeMerchantStatusJob::class, $id);
- return app('json')->success('修改成功');
- }
-
- /**
- * @param $id
- * @param MerchantAdminRepository $adminRepository
- * @return mixed
- * @throws DataNotFoundException
- * @throws DbException
- * @throws ModelNotFoundException
- * @author xaboy
- * @day 2020/7/7
- */
- public function login($id, MerchantAdminRepository $adminRepository)
- {
- if (!$this->repository->exists($id))
- return app('json')->fail('数据不存在');
- $adminInfo = $adminRepository->merIdByAdmin($id);
- $tokenInfo = $adminRepository->createToken($adminInfo);
- $admin = $adminInfo->toArray();
- unset($admin['pwd']);
- $data = [
- 'token' => $tokenInfo['token'],
- 'exp' => $tokenInfo['out'],
- 'admin' => $admin,
- 'url' => '/' . config('admin.merchant_prefix')
- ];
-
- return app('json')->success($data);
- }
-
- /**
- * TODO 修改复制次数表单
- * @param $id
- * @return mixed
- * @author Qinii
- * @day 2020-08-06
- */
- public function changeCopyNumForm($id)
- {
- return app('json')->success(formToData($this->repository->copyForm($id)));
- }
-
- /**
- * TODO 修改复制次数
- * @param $id
- * @return mixed
- * @author Qinii
- * @day 2020-08-06
- */
- public function changeCopyNum($id)
- {
- $data = $this->request->params(['type', 'num']);
- $num = $data['num'];
- if ($num <= 0) return app('json')->fail('次数必须为正整数');
- if ($data['type'] == 2) {
- $mer_num = $this->repository->getCopyNum($id);
- if (($mer_num - $num) < 0) return app('json')->fail('剩余次数不足');
- $num = '-' . $data['num'];
- }
- $arr = [
- 'type' => 'sys',
- 'num' => $num,
- 'message' => '平台修改「' . $this->request->adminId() . '」',
- ];
- app()->make(ProductCopyRepository::class)->add($arr, $id);
- return app('json')->success('修改成功');
- }
-
- /**
- * TODO 清理删除的商户内容
- * @return \think\response\Json
- * @author Qinii
- * @day 5/15/21
- */
- public function clearRedundancy()
- {
- $this->repository->clearRedundancy();
- return app('json')->success('清除完成');
- }
-}
diff --git a/app/controller/api/Statistics.php b/app/controller/api/Statistics.php
index 4d39af60..e94d16d3 100644
--- a/app/controller/api/Statistics.php
+++ b/app/controller/api/Statistics.php
@@ -109,10 +109,11 @@ class Statistics extends BaseController
if (isset($parmas['keyword']) && $parmas['keyword'] != '') {
$where[] = ['store_name', 'like', '%' . $parmas['keyword'] . '%'];
}
+ $count=Db::name('store_product')->where($where)->count();
$list = Db::name('store_product')->where($where)->page($parmas['page'])
->field('product_id,store_name,image,price')
->limit(10)->select();
- return app('json')->success(['page' => $parmas['page'], 'data' => $list]);
+ return app('json')->success(['page' => $parmas['page'], 'data' => $list,'count'=>$count]);
}
/**
@@ -127,7 +128,7 @@ class Statistics extends BaseController
$where[] = ['p.source', '=', 200];
break;
case 300:
- $where[] = ['p.source', '=', 300];
+ $where[] = ['p.source', '=', 0];
break;
default:
return app('json')->fail('type:格式错误');
@@ -148,13 +149,13 @@ class Statistics extends BaseController
if (!isset($parmas['goods_id']) || $parmas['goods_id'] == '') {
return app('json')->fail('goods_id:格式错误');
}
-
+ $mer_id=Db::name('merchant_intention')->where('mer_intention_id', $parmas['mer_intention_id'])->value('mer_id');
$where[] = ['p.create_time', 'between time', [date("Y-m-d H:i:s", $parmas['start_time']), date("Y-m-d H:i:s", $parmas['end_time'])]];
$where[] = ['p.product_id', 'in', explode(',', $parmas['goods_id'])];
$where[] = ['p.is_refund', '=', 0];
$count = Db::name('store_order_product')->alias('p')
->where($where)
- ->join('store_order o', 'o.mer_id=' . $parmas['mer_intention_id'] . ' and o.paid=1 and o.is_del=0')
+ ->join('store_order o', 'o.mer_id=' . $mer_id . ' and o.paid=1 and o.is_del=0')
->sum('p.total_price');
return app('json')->success(['procure_amount' => $count]);
}
@@ -171,7 +172,7 @@ class Statistics extends BaseController
$where[] = ['p.source', '=', 200];
break;
case 300:
- $where[] = ['p.source', '=', 300];
+ $where[] = ['p.source', '=', 0];
break;
default:
return app('json')->fail('type:格式错误');
diff --git a/app/controller/api/server/StoreCategory.php b/app/controller/api/server/StoreCategory.php
index 6510f223..a2a7ad5c 100644
--- a/app/controller/api/server/StoreCategory.php
+++ b/app/controller/api/server/StoreCategory.php
@@ -16,6 +16,7 @@ use crmeb\basic\BaseController;
use think\exception\HttpResponseException;
use app\validate\admin\StoreCategoryValidate;
use app\common\repositories\store\service\StoreServiceRepository;
+use think\facade\Db;
class StoreCategory extends BaseController
{
@@ -167,4 +168,24 @@ class StoreCategory extends BaseController
$validate->check($data);
return $data;
}
+
+ /**
+ * 分类
+ */
+ public function list_level($pid=0,$level=0,$type=0){
+ $where['pid']=$pid;
+ $where['level']=$level;
+ $where['is_show']=1;
+ $where['mer_id']=0;
+ if($type==0){
+ $select= Db::name('store_category')->where($where)->field('store_category_id,pid,cate_name,sort,pic,is_show,is_hot')->select();
+ }else{
+ unset($where['pid']);
+ $arr=$this->repository->getApiTwolist(0,1);
+
+ $select=formatCategory($arr,'store_category_id');
+ }
+ return app('json')->success($select);
+
+ }
}
diff --git a/app/controller/api/store/merchant/Merchant.php b/app/controller/api/store/merchant/Merchant.php
index 8097dc02..9ca24a9e 100644
--- a/app/controller/api/store/merchant/Merchant.php
+++ b/app/controller/api/store/merchant/Merchant.php
@@ -242,11 +242,6 @@ class Merchant extends BaseController
if ($data['mer_state'] && !$merchant['sub_mchid'] && systemConfig('open_wx_combine'))
return app('json')->fail('开启店铺前请先完成微信子商户入驻');
}
- if($data['long']!=''&& $data['lat']!=''){
- $long=$data['long'];
- $lat=$data['lat'];
- Db::query("UPDATE eb_merchant SET coordinates = ST_GeomFromText('POINT($long $lat)') WHERE mer_id = $id");
- }
Db::name('merchant')->where('mer_id',$id)->update($data);
Queue::push(ChangeMerchantStatusJob::class, $id);
diff --git a/app/controller/api/store/order/StoreCart.php b/app/controller/api/store/order/StoreCart.php
index e2d88180..2a405dfb 100644
--- a/app/controller/api/store/order/StoreCart.php
+++ b/app/controller/api/store/order/StoreCart.php
@@ -257,7 +257,7 @@ class StoreCart extends BaseController
*/
public function checkParams(validate $validate)
{
- $data = $this->request->params(['product_id','product_attr_unique','cart_num','is_new',['product_type',0],['group_buying_id',0],['spread_id',0], 'referer']);
+ $data = $this->request->params(['product_id','product_attr_unique','cart_num','is_new',['product_type',0],['group_buying_id',0],['spread_id',0], 'referer',['source',2]]);
$validate->check($data);
if ($data['spread_id']) {
if ($data['spread_id'] !== $this->request->userInfo()->uid){
diff --git a/app/controller/api/store/order/StoreOrderBehalf.php b/app/controller/api/store/order/StoreOrderBehalf.php
index 7c08dc38..2add156b 100644
--- a/app/controller/api/store/order/StoreOrderBehalf.php
+++ b/app/controller/api/store/order/StoreOrderBehalf.php
@@ -111,7 +111,7 @@ class StoreOrderBehalf extends BaseController
/**
* 生成二维码
*/
- public function logisticsCode($id)
+ public function logisticsCode()
{
// $status = $this->request->param('status',1);
$order_id = $this->request->param('order_id',0);
@@ -120,9 +120,9 @@ class StoreOrderBehalf extends BaseController
if ($mer_id) {
$order_id = Db::name('store_order_behalf')->where('mer_id', $mer_id)->where('status','>=',0)->where('order_id',$order_id)->value('order_id');
if ($order_id) {
- $order = $this->repository->getWhere(['order_id' => $id,'is_del' => 0]);
+ $order = $this->repository->getWhere(['order_id' => $order_id,'is_del' => 0]);
- return app('json')->success(['qrcode' => $this->repository->logisticsQrcode($id, $order->order_sn)]);
+ return app('json')->success(['qrcode' => $this->repository->logisticsQrcode($order_id, $order->order_sn)]);
}
}
return app('json')->fail('信息有误:请联系官方人员');
@@ -138,11 +138,11 @@ class StoreOrderBehalf extends BaseController
$uid = $this->request->userInfo()['uid'];
$mer_id = Db::name('store_service')->where('uid', $uid)->where('is_del', 0)->value('mer_id');
if ($mer_id) {
- $noPostage = Db::name('store_order_behalf')->where('mer_id', $mer_id)->where('status',0)
- ->join('store_order', 'store_order.status = 0')
+ $noPostage = Db::name('store_order_behalf')
+ ->where('mer_id', $mer_id)->where('status',0)
->count();
- $noDeliver = Db::name('store_order_behalf')->where('mer_id', $mer_id)->where('status',1)
- ->join('store_order', 'store_order.status = 1')
+ $noDeliver = Db::name('store_order_behalf')
+ ->where('mer_id', $mer_id)->where('status',1)
->count();
}
diff --git a/app/controller/api/store/product/CloudWarehouse.php b/app/controller/api/store/product/CloudWarehouse.php
index 7610742c..b1d8592e 100644
--- a/app/controller/api/store/product/CloudWarehouse.php
+++ b/app/controller/api/store/product/CloudWarehouse.php
@@ -149,14 +149,13 @@ class CloudWarehouse extends BaseController
if (empty($merchantIds)) {
return app('json')->success(['count' => 0, 'list' => []]);
}
-
$where['entry_mer_id'] = 0;
$where['keyword'] = $params['keyword'];
$where['mer_ids'] = $merchantIds;
$where['product_type'] = $params['product_type'];
$where['is_gift_bag'] = 0;
$where['order'] = $params['order'] ?: 'sort';
- $products = $this->spuRepository->getApiSearch($where, $page, $limit, false);
+ $products = $this->spuRepository->getApiSearch($where, $page, $limit, false,true);
return app('json')->success($products);
}
}
diff --git a/app/controller/api/store/product/StoreSpu.php b/app/controller/api/store/product/StoreSpu.php
index a1264fcd..758a33ed 100644
--- a/app/controller/api/store/product/StoreSpu.php
+++ b/app/controller/api/store/product/StoreSpu.php
@@ -61,14 +61,14 @@ class StoreSpu extends BaseController
'type_id',
'street_id'
]);
- if($where['type_id']){
- $arr=['status' => 1, 'mer_state' => 1, 'is_del' => 0];
- if($where['street_id']){
- $arr['street_id']=$where['street_id'];
+ if ($where['type_id']) {
+ $arr = ['status' => 1, 'mer_state' => 1, 'is_del' => 0];
+ if ($where['street_id']) {
+ $arr['street_id'] = $where['street_id'];
}
$where['mer_ids'] = Merchant::getInstance()->whereIn('type_id', explode(',', $where['type_id']))->where($arr)->column('mer_id');
}
- unset($where['type_id'],$where['street_id']);
+ unset($where['type_id'], $where['street_id']);
$where['is_gift_bag'] = 0;
$where['product_type'] = 0;
@@ -87,7 +87,7 @@ class StoreSpu extends BaseController
public function streetLst($id)
{
[$page, $limit] = $this->getPage();
- $typeIdArray = Db::name('MerchantType')->whereNotIn('type_code', Merchant::TypeCode['TypeCloudWarehouse'] . ',' .Merchant::TypeCode['TypeSupplyChain'])->column('mer_type_id');
+ $typeIdArray = Db::name('MerchantType')->whereNotIn('type_code', Merchant::TypeCode['TypeCloudWarehouse'] . ',' . Merchant::TypeCode['TypeSupplyChain'])->column('mer_type_id');
$where = $this->request->params([
'keyword',
'cate_id',
@@ -150,18 +150,17 @@ class StoreSpu extends BaseController
'keyword', 'cate_id', 'order', 'price_on', 'price_off', 'brand_id', 'pid', 'mer_cate_id', ['product_type', 0], 'action', 'common'
]);
if ($where['action']) unset($where['product_type']);
- $currentMerchant = Db::name('merchant')->where('mer_id',$id)->field('category_id,street_id')->find();
+ $currentMerchant = Db::name('merchant')->where('mer_id', $id)->field('category_id,street_id')->find();
$typeIdArray = Db::name('MerchantType')->whereIn('type_code', (string)Merchant::TypeCode['TypeTownSupplyChain'])->column('mer_type_id');
-
+
$merIdArray = Db::name('merchant')
- ->where('street_id',$currentMerchant['street_id'])
- ->where('mer_state',1)
- ->where('status',1)
- ->where('category_id',$currentMerchant['category_id'])
+ ->where('street_id', $currentMerchant['street_id'])
+ ->where('mer_state', 1)
+ ->where('status', 1)
+ ->where('category_id', $currentMerchant['category_id'])
->whereIn('type_id', implode(',', $typeIdArray))
->column('mer_id');
$where['mer_array_id'] = $merIdArray;
- $where['mer_rand_id'] = $id;
$where['entry_mer_id'] = $id;
$where['is_gift_bag'] = 0;
$where['order'] = $where['order'] ? $where['order'] : 'sort';
@@ -177,7 +176,7 @@ class StoreSpu extends BaseController
public function recommend()
{
[$page, $limit] = $this->getPage();
- $where = $this->request->params(['common','mer_id']);
+ $where = $this->request->params(['common', 'mer_id']);
$params = $this->request->params(['location']);
// $typeIdArray = Db::name('MerchantType')->whereNotIn('type_code', Merchant::TypeCode['TypeCloudWarehouse'] . ',' .Merchant::TypeCode['TypeSupplyChain'])->column('mer_type_id');
$where['is_gift_bag'] = 0;
@@ -205,16 +204,20 @@ class StoreSpu extends BaseController
}
$where['product_type'] = 0;
$where['is_stock'] = 1;
- if($params['location']!=''){
- [$lon,$lat]=explode(',',$params['location']);
- $select=Db::query("select mer_id,ST_Distance(coordinates, POINT($lon,$lat)) AS distance from eb_merchant where coordinates !='' and type_id IN ('10', '17') and is_del=0 and mer_state=1 ORDER BY distance LIMIT 100;");
- $arr=[];
- foreach($select as $k=>$v){
- $arr[]=$v['mer_id'];
+ if ($params['location'] != '') {
+ [$lng, $lat] = explode(',', $params['location']);
+ $select = Db::name('merchant')->where('type_id', 'IN', ["10", "17"])->where(['is_del' => 0, 'mer_state' => 1])->whereNotNull('lat')->whereNotNull('long')->order(Db::raw("(2 * 6378.137 * ASIN(
+ SQRT(
+ POW( SIN( PI( ) * ( $lng- `long` ) / 360 ), 2 ) + COS( PI( ) * $lat / 180 ) * COS( `lat` * PI( ) / 180 ) * POW( SIN( PI( ) * ( $lat- `lat` ) / 360 ), 2 )
+ )
+ )
+ ) ASC "))->limit(50)->select();
+ $arr = [];
+ foreach ($select as $k => $v) {
+ $arr[] = $v['mer_id'];
}
- if($arr){
- $where['mer_ids'] =$arr;
-
+ if ($arr) {
+ $where['mer_ids'] = $arr;
}
}
$data = $this->repository->getApiSearch($where, $page, $limit, $this->userInfo);
@@ -230,7 +233,7 @@ class StoreSpu extends BaseController
public function hot($type)
{
[$page, $limit] = $this->getPage();
- $where = $this->request->params(['common','mer_id']);
+ $where = $this->request->params(['common', 'mer_id']);
$where['hot_type'] = $type;
$where['is_gift_bag'] = 0;
$where['order'] = 'star';
@@ -362,8 +365,8 @@ class StoreSpu extends BaseController
public function getHotRanking()
{
- $cateId = $this->request->param('cate_pid',0);
- $cateId = is_array($cateId) ?:explode(',',$cateId);
+ $cateId = $this->request->param('cate_pid', 0);
+ $cateId = is_array($cateId) ?: explode(',', $cateId);
$data = [];
foreach ($cateId as $cate_id) {
$cate = app()->make(StoreCategoryRepository::class)->get($cate_id);
@@ -378,7 +381,4 @@ class StoreSpu extends BaseController
}
return app('json')->success($data);
}
-
-
-
}
diff --git a/app/controller/merchant/store/product/Product.php b/app/controller/merchant/store/product/Product.php
index 0f68632d..59b18403 100644
--- a/app/controller/merchant/store/product/Product.php
+++ b/app/controller/merchant/store/product/Product.php
@@ -12,6 +12,7 @@
namespace app\controller\merchant\store\product;
+use app\common\model\store\StoreCategory;
use app\common\model\system\merchant\Merchant;
use app\common\repositories\store\order\StoreCartRepository;
use app\common\repositories\store\product\ProductAttrValueRepository;
@@ -84,6 +85,11 @@ class Product extends BaseController
{
$params = $this->request->params($this->repository::CREATE_PARAMS);
$data = $this->repository->checkParams($params,$this->request->merId());
+ $cate_id=StoreCategory::where('pid',$data['cate_id'])->where('level',2)->value('store_category_id');
+ if(!$cate_id){
+ return app('json')->fail('请先添加第三级分类');
+ }
+ $data['cate_id']=$cate_id;
$data['mer_id'] = $this->request->merId();
if ($data['is_gift_bag'] && !$this->repository->checkMerchantBagNumber($data['mer_id']))
return app('json')->fail('礼包数量超过数量限制');
diff --git a/app/listener/SendGoodsCode.php b/app/listener/SendGoodsCode.php
index babf6cbe..0b753b11 100644
--- a/app/listener/SendGoodsCode.php
+++ b/app/listener/SendGoodsCode.php
@@ -16,7 +16,7 @@ class SendGoodsCode
{
$this->event = $event;
Log::info("sendGoodsCode ============= handle监听order_id " . $this->event['order_id']);
- if ($this->event['activity_type'] == 0) {
+ if ($this->event['activity_type'] == 0 || in_array($this->event['source'], [0,2,103])) {
//发起物流信息返回快递员手机
$logisticsPhone = $this->sendLogistics($this->event['order_id'], $this->event['order_sn']);
//生成用户的收货码
diff --git a/crmeb/jobs/SendGoodsCodeJob.php b/crmeb/jobs/SendGoodsCodeJob.php
index 1f7686fc..21aac5ac 100644
--- a/crmeb/jobs/SendGoodsCodeJob.php
+++ b/crmeb/jobs/SendGoodsCodeJob.php
@@ -30,7 +30,7 @@ class SendGoodsCodeJob implements JobInterface
Log::info("sendGoodsCodeJob" . json_encode($this->event));
Log::info("sendGoodsCodeJob ============= handle监听order_id " . $this->event['order_id']);
try {
- if ($this->event['activity_type'] == 0) {
+ if ($this->event['activity_type'] == 0 || in_array($this->event['source'], [0,2,103])) {
//发起物流信息返回快递员手机
$logisticsPhone = $this->sendLogistics($this->event['order_id'], $this->event['order_sn']);
//生成用户的收货码
diff --git a/crmeb/traits/CategoresDao.php b/crmeb/traits/CategoresDao.php
index b456c8dd..b50beaef 100644
--- a/crmeb/traits/CategoresDao.php
+++ b/crmeb/traits/CategoresDao.php
@@ -86,6 +86,18 @@ trait CategoresDao
})->order('sort DESC,'.$this->getPk().' DESC')->select();
}
+ /**
+ * 获取二级分类
+ * @param int $mer_id
+ * @return mixed
+ * @author Qinii
+ */
+ public function getTwoAll($mer_id = 0,$status = null)
+ {
+ return $this->getModel()::getDB()->whereIn('level',[0,1])->where('mer_id', $mer_id)->when(($status !== null),function($query)use($status){
+ $query->where($this->getStatus(),$status);
+ })->order('sort DESC,'.$this->getPk().' DESC')->select();
+ }
/**
* 通过id 获取path
* @param int $id 需要检测的数据
diff --git a/crmeb/traits/CategoresRepository.php b/crmeb/traits/CategoresRepository.php
index 9bcb3ec4..caa4effe 100644
--- a/crmeb/traits/CategoresRepository.php
+++ b/crmeb/traits/CategoresRepository.php
@@ -37,7 +37,10 @@ trait CategoresRepository
{
return formatCategory($this->dao->getAll($merID,$status)->hidden(['path','level','mer_id','create_time'])->toArray(), $this->dao->getPk());
}
-
+ public function getApiTwolist($merID,$status = null)
+ {
+ return formatCategory($this->dao->getTwoAll($merID,$status)->hidden(['path','level','mer_id','create_time'])->toArray(), $this->dao->getPk());
+ }
/**
* 筛选用
* @Author:Qinii
diff --git a/public/mer.html b/public/mer.html
index 32e51e6f..7852c17e 100644
--- a/public/mer.html
+++ b/public/mer.html
@@ -1 +1 @@
-
加载中...
\ No newline at end of file
+加载中...
\ No newline at end of file
diff --git a/public/mer/css/chunk-d08ae18a.32ccfe6c.css b/public/mer/css/chunk-c0ce761c.822941af.css
similarity index 53%
rename from public/mer/css/chunk-d08ae18a.32ccfe6c.css
rename to public/mer/css/chunk-c0ce761c.822941af.css
index 6a5aee61..879908f4 100644
--- a/public/mer/css/chunk-d08ae18a.32ccfe6c.css
+++ b/public/mer/css/chunk-c0ce761c.822941af.css
@@ -1 +1 @@
-.title[data-v-6d70337e]{margin-bottom:16px;color:#17233d;font-weight:500;font-size:14px}.description-term[data-v-6d70337e]{display:table-cell;padding-bottom:10px;line-height:20px;width:50%;font-size:12px}[data-v-5245ffd2] .el-cascader{display:block}.dialog-scustom[data-v-5245ffd2]{width:1200px;height:600px}.ela-btn[data-v-5245ffd2]{color:#2d8cf0}.Box .ivu-radio-wrapper[data-v-5245ffd2]{margin-right:25px}.Box .numPut[data-v-5245ffd2]{width:80%!important}.lunBox[data-v-5245ffd2]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;border:1px solid #0bb20c}.pictrueBox[data-v-5245ffd2]{display:inline-block}.pictrue[data-v-5245ffd2]{width:50px;height:50px;border:1px dotted rgba(0,0,0,.1);display:inline-block;position:relative;cursor:pointer}.pictrue img[data-v-5245ffd2]{width:100%;height:100%}.pictrueTab[data-v-5245ffd2]{width:40px!important;height:40px!important}.upLoad[data-v-5245ffd2]{width:40px;height:40px;border:1px dotted rgba(0,0,0,.1);border-radius:4px;background:rgba(0,0,0,.02);cursor:pointer}.ft[data-v-5245ffd2]{color:red}.buttonGroup[data-v-5245ffd2]{position:relative;display:inline-block;vertical-align:middle;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.buttonGroup .small-btn[data-v-5245ffd2]{position:relative;float:left;height:24px;padding:0 7px;font-size:14px;border-radius:3px}.buttonGroup .small-btn[data-v-5245ffd2]:first-child{margin-left:0;border-bottom-right-radius:0;border-top-right-radius:0}.virtual_boder[data-v-5245ffd2]{border:1px solid #1890ff}.virtual_boder2[data-v-5245ffd2]{border:1px solid #e7e7e7}.virtual_san[data-v-5245ffd2]{position:absolute;bottom:0;right:0;width:0;height:0;border-bottom:26px solid #1890ff;border-left:26px solid transparent}.virtual_dui[data-v-5245ffd2]{position:absolute;bottom:-2px;right:2px;color:#fff;font-family:system-ui}.virtual[data-v-5245ffd2]{width:120px;height:60px;background:#fff;border-radius:3px;float:left;text-align:center;padding-top:8px;position:relative;cursor:pointer;line-height:23px}.virtual .virtual_top[data-v-5245ffd2]{font-size:14px;font-weight:600;color:rgba(0,0,0,.85)}.virtual .virtual_bottom[data-v-5245ffd2]{font-size:12px;font-weight:400;color:#999}.virtual[data-v-5245ffd2]:nth-child(2n){margin:0 12px}.bg[data-v-5767e086]{z-index:100;position:fixed;left:0;top:0;width:100%;height:100%;background:rgba(0,0,0,.5)}.goods_detail .goods_detail_wrapper[data-v-5767e086]{z-index:-10}[data-v-5767e086] .upLoadPicBox .upLoad{-webkit-box-orient:vertical;-o-box-orient:vertical;-ms-flex-direction:column;flex-direction:column;line-height:20px}[data-v-5767e086] .upLoadPicBox span{font-size:10px}.proCoupon[data-v-5767e086] .el-form-item__content{margin-top:5px}.tabPic[data-v-5767e086]{width:40px!important;height:40px!important}.tabPic img[data-v-5767e086]{width:100%;height:100%}.noLeft[data-v-5767e086] .el-form-item__content{margin-left:0!important}.tabNumWidth[data-v-5767e086] .el-input-number--medium{width:100px}.tabNumWidth[data-v-5767e086] .el-input-number__decrease,.tabNumWidth[data-v-5767e086] .el-input-number__increase{width:20px!important;font-size:12px!important}.tabNumWidth[data-v-5767e086] .el-input-number--medium .el-input__inner{padding-left:25px!important;padding-right:25px!important}.tabNumWidth[data-v-5767e086] .priceBox .el-input-number__decrease,.tabNumWidth[data-v-5767e086] .priceBox .el-input-number__increase{display:none}.tabNumWidth[data-v-5767e086] .priceBox .el-input-number.is-controls-right .el-input__inner{padding:0 5px}.tabNumWidth[data-v-5767e086] thead{line-height:normal!important}.tabNumWidth[data-v-5767e086] .cell{line-height:normal!important;text-overflow:clip!important}.virtual_boder[data-v-5767e086]{border:1px solid #1890ff}.virtual_boder2[data-v-5767e086]{border:1px solid #e7e7e7}.virtual_san[data-v-5767e086]{position:absolute;bottom:0;right:0;width:0;height:0;border-bottom:26px solid #1890ff;border-left:26px solid transparent}.virtual_dui[data-v-5767e086]{position:absolute;bottom:-2px;right:2px;color:#fff;font-family:system-ui}.virtual[data-v-5767e086]{width:120px;height:60px;background:#fff;border-radius:3px;float:left;text-align:center;padding-top:8px;position:relative;cursor:pointer;line-height:23px}.virtual .virtual_top[data-v-5767e086]{font-size:14px;font-weight:600;color:rgba(0,0,0,.85)}.virtual .virtual_bottom[data-v-5767e086]{font-size:12px;font-weight:400;color:#999}.virtual[data-v-5767e086]:nth-child(2n){margin:0 12px}.addfont[data-v-5767e086]{display:inline-block;font-size:13px;font-weight:400;color:#1890ff;margin-left:14px;cursor:pointer}.titTip[data-v-5767e086]{display:inline-bolck;font-size:12px;font-weight:400;color:#999}.addCustom_content[data-v-5767e086]{margin-top:20px}.addCustom_content .custom_box[data-v-5767e086]{margin-bottom:10px}.addCustomBox[data-v-5767e086]{margin-top:12px;font-size:13px;font-weight:400;color:#1890ff}.addCustomBox .btn[data-v-5767e086]{cursor:pointer;width:-webkit-max-content;width:-moz-max-content;width:max-content}.addCustomBox .remark[data-v-5767e086]{display:-webkit-box;display:-ms-flexbox;display:flex;margin-top:14px}.selWidth[data-v-5767e086]{width:50%}.ml15[data-v-5767e086]{margin-left:15px}.button-new-tag[data-v-5767e086]{height:28px;line-height:26px;padding-top:0;padding-bottom:0}.input-new-tag[data-v-5767e086]{width:90px;margin-left:10px;vertical-align:bottom}.pictrue[data-v-5767e086]{width:60px;height:60px;border:1px dotted rgba(0,0,0,.1);margin-right:10px;position:relative;cursor:pointer}.pictrue img[data-v-5767e086]{width:100%;height:100%}.details_pictrue[data-v-5767e086]{width:120px;height:120px}.iview-video-style[data-v-5767e086]{width:40%;height:180px;border-radius:10px;background-color:#707070;margin-top:10px;position:relative;overflow:hidden}.iconv[data-v-5767e086]{color:#fff;line-height:180px;display:inherit;font-size:26px;position:absolute;top:-74px;left:50%;margin-left:-25px}.iview-video-style .mark[data-v-5767e086]{position:absolute;width:100%;height:30px;top:0;background-color:rgba(0,0,0,.5);text-align:center}.uploadVideo[data-v-5767e086]{margin-left:10px}.perW50[data-v-5767e086]{width:50%}.submission[data-v-5767e086]{margin-left:10px}.btndel[data-v-5767e086]{position:absolute;z-index:1;width:20px!important;height:20px!important;left:46px;top:-4px}.labeltop[data-v-5767e086] .el-form-item__label{float:none!important;display:inline-block!important;margin-left:120px!important;width:auto!important}
\ No newline at end of file
+.title[data-v-6d70337e]{margin-bottom:16px;color:#17233d;font-weight:500;font-size:14px}.description-term[data-v-6d70337e]{display:table-cell;padding-bottom:10px;line-height:20px;width:50%;font-size:12px}[data-v-5245ffd2] .el-cascader{display:block}.dialog-scustom[data-v-5245ffd2]{width:1200px;height:600px}.ela-btn[data-v-5245ffd2]{color:#2d8cf0}.Box .ivu-radio-wrapper[data-v-5245ffd2]{margin-right:25px}.Box .numPut[data-v-5245ffd2]{width:80%!important}.lunBox[data-v-5245ffd2]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;border:1px solid #0bb20c}.pictrueBox[data-v-5245ffd2]{display:inline-block}.pictrue[data-v-5245ffd2]{width:50px;height:50px;border:1px dotted rgba(0,0,0,.1);display:inline-block;position:relative;cursor:pointer}.pictrue img[data-v-5245ffd2]{width:100%;height:100%}.pictrueTab[data-v-5245ffd2]{width:40px!important;height:40px!important}.upLoad[data-v-5245ffd2]{width:40px;height:40px;border:1px dotted rgba(0,0,0,.1);border-radius:4px;background:rgba(0,0,0,.02);cursor:pointer}.ft[data-v-5245ffd2]{color:red}.buttonGroup[data-v-5245ffd2]{position:relative;display:inline-block;vertical-align:middle;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.buttonGroup .small-btn[data-v-5245ffd2]{position:relative;float:left;height:24px;padding:0 7px;font-size:14px;border-radius:3px}.buttonGroup .small-btn[data-v-5245ffd2]:first-child{margin-left:0;border-bottom-right-radius:0;border-top-right-radius:0}.virtual_boder[data-v-5245ffd2]{border:1px solid #1890ff}.virtual_boder2[data-v-5245ffd2]{border:1px solid #e7e7e7}.virtual_san[data-v-5245ffd2]{position:absolute;bottom:0;right:0;width:0;height:0;border-bottom:26px solid #1890ff;border-left:26px solid transparent}.virtual_dui[data-v-5245ffd2]{position:absolute;bottom:-2px;right:2px;color:#fff;font-family:system-ui}.virtual[data-v-5245ffd2]{width:120px;height:60px;background:#fff;border-radius:3px;float:left;text-align:center;padding-top:8px;position:relative;cursor:pointer;line-height:23px}.virtual .virtual_top[data-v-5245ffd2]{font-size:14px;font-weight:600;color:rgba(0,0,0,.85)}.virtual .virtual_bottom[data-v-5245ffd2]{font-size:12px;font-weight:400;color:#999}.virtual[data-v-5245ffd2]:nth-child(2n){margin:0 12px}.bg[data-v-8f04853a]{z-index:100;position:fixed;left:0;top:0;width:100%;height:100%;background:rgba(0,0,0,.5)}.goods_detail .goods_detail_wrapper[data-v-8f04853a]{z-index:-10}[data-v-8f04853a] .upLoadPicBox .upLoad{-webkit-box-orient:vertical;-o-box-orient:vertical;-ms-flex-direction:column;flex-direction:column;line-height:20px}[data-v-8f04853a] .upLoadPicBox span{font-size:10px}.proCoupon[data-v-8f04853a] .el-form-item__content{margin-top:5px}.tabPic[data-v-8f04853a]{width:40px!important;height:40px!important}.tabPic img[data-v-8f04853a]{width:100%;height:100%}.noLeft[data-v-8f04853a] .el-form-item__content{margin-left:0!important}.tabNumWidth[data-v-8f04853a] .el-input-number--medium{width:100px}.tabNumWidth[data-v-8f04853a] .el-input-number__decrease,.tabNumWidth[data-v-8f04853a] .el-input-number__increase{width:20px!important;font-size:12px!important}.tabNumWidth[data-v-8f04853a] .el-input-number--medium .el-input__inner{padding-left:25px!important;padding-right:25px!important}.tabNumWidth[data-v-8f04853a] .priceBox .el-input-number__decrease,.tabNumWidth[data-v-8f04853a] .priceBox .el-input-number__increase{display:none}.tabNumWidth[data-v-8f04853a] .priceBox .el-input-number.is-controls-right .el-input__inner{padding:0 5px}.tabNumWidth[data-v-8f04853a] thead{line-height:normal!important}.tabNumWidth[data-v-8f04853a] .cell{line-height:normal!important;text-overflow:clip!important}.virtual_boder[data-v-8f04853a]{border:1px solid #1890ff}.virtual_boder2[data-v-8f04853a]{border:1px solid #e7e7e7}.virtual_san[data-v-8f04853a]{position:absolute;bottom:0;right:0;width:0;height:0;border-bottom:26px solid #1890ff;border-left:26px solid transparent}.virtual_dui[data-v-8f04853a]{position:absolute;bottom:-2px;right:2px;color:#fff;font-family:system-ui}.virtual[data-v-8f04853a]{width:120px;height:60px;background:#fff;border-radius:3px;float:left;text-align:center;padding-top:8px;position:relative;cursor:pointer;line-height:23px}.virtual .virtual_top[data-v-8f04853a]{font-size:14px;font-weight:600;color:rgba(0,0,0,.85)}.virtual .virtual_bottom[data-v-8f04853a]{font-size:12px;font-weight:400;color:#999}.virtual[data-v-8f04853a]:nth-child(2n){margin:0 12px}.addfont[data-v-8f04853a]{display:inline-block;font-size:13px;font-weight:400;color:#1890ff;margin-left:14px;cursor:pointer}.titTip[data-v-8f04853a]{display:inline-bolck;font-size:12px;font-weight:400;color:#999}.addCustom_content[data-v-8f04853a]{margin-top:20px}.addCustom_content .custom_box[data-v-8f04853a]{margin-bottom:10px}.addCustomBox[data-v-8f04853a]{margin-top:12px;font-size:13px;font-weight:400;color:#1890ff}.addCustomBox .btn[data-v-8f04853a]{cursor:pointer;width:-webkit-max-content;width:-moz-max-content;width:max-content}.addCustomBox .remark[data-v-8f04853a]{display:-webkit-box;display:-ms-flexbox;display:flex;margin-top:14px}.selWidth[data-v-8f04853a]{width:50%}.ml15[data-v-8f04853a]{margin-left:15px}.button-new-tag[data-v-8f04853a]{height:28px;line-height:26px;padding-top:0;padding-bottom:0}.input-new-tag[data-v-8f04853a]{width:90px;margin-left:10px;vertical-align:bottom}.pictrue[data-v-8f04853a]{width:60px;height:60px;border:1px dotted rgba(0,0,0,.1);margin-right:10px;position:relative;cursor:pointer}.pictrue img[data-v-8f04853a]{width:100%;height:100%}.details_pictrue[data-v-8f04853a]{width:120px;height:120px}.iview-video-style[data-v-8f04853a]{width:40%;height:180px;border-radius:10px;background-color:#707070;margin-top:10px;position:relative;overflow:hidden}.iconv[data-v-8f04853a]{color:#fff;line-height:180px;display:inherit;font-size:26px;position:absolute;top:-74px;left:50%;margin-left:-25px}.iview-video-style .mark[data-v-8f04853a]{position:absolute;width:100%;height:30px;top:0;background-color:rgba(0,0,0,.5);text-align:center}.uploadVideo[data-v-8f04853a]{margin-left:10px}.perW50[data-v-8f04853a]{width:50%}.submission[data-v-8f04853a]{margin-left:10px}.btndel[data-v-8f04853a]{position:absolute;z-index:1;width:20px!important;height:20px!important;left:46px;top:-4px}.labeltop[data-v-8f04853a] .el-form-item__label{float:none!important;display:inline-block!important;margin-left:120px!important;width:auto!important}
\ No newline at end of file
diff --git a/public/mer/js/app.25f28002.js b/public/mer/js/app.a111ca00.js
similarity index 99%
rename from public/mer/js/app.25f28002.js
rename to public/mer/js/app.a111ca00.js
index bd330208..4cc7e573 100644
--- a/public/mer/js/app.25f28002.js
+++ b/public/mer/js/app.a111ca00.js
@@ -1 +1 @@
-(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["app"],{0:function(t,e,n){t.exports=n("56d7")},"0781":function(t,e,n){"use strict";n.r(e);n("24ab");var i=n("83d6"),a=n.n(i),r=a.a.showSettings,o=a.a.tagsView,c=a.a.fixedHeader,s=a.a.sidebarLogo,u={theme:JSON.parse(localStorage.getItem("themeColor"))?JSON.parse(localStorage.getItem("themeColor")):"#1890ff",showSettings:r,tagsView:o,fixedHeader:c,sidebarLogo:s,isEdit:!1},l={CHANGE_SETTING:function(t,e){var n=e.key,i=e.value;t.hasOwnProperty(n)&&(t[n]=i)},SET_ISEDIT:function(t,e){t.isEdit=e}},d={changeSetting:function(t,e){var n=t.commit;n("CHANGE_SETTING",e)},setEdit:function(t,e){var n=t.commit;n("SET_ISEDIT",e)}};e["default"]={namespaced:!0,state:u,mutations:l,actions:d}},"096e":function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-skill",use:"icon-skill-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},"0a4d":function(t,e,n){"use strict";n("ddd5")},"0c6d":function(t,e,n){"use strict";n("ac6a");var i=n("bc3a"),a=n.n(i),r=n("4360"),o=n("bbcc"),c=a.a.create({baseURL:o["a"].https,timeout:6e4}),s={login:!0};function u(t){var e=r["a"].getters.token,n=t.headers||{};return e&&(n["X-Token"]=e,t.headers=n),new Promise((function(e,n){c(t).then((function(t){var i=t.data||{};return 200!==t.status?n({message:"请求失败",res:t,data:i}):-1===[41e4,410001,410002,4e4].indexOf(i.status)?200===i.status?e(i,t):n({message:i.message,res:t,data:i}):void r["a"].dispatch("user/resetToken").then((function(){location.reload()}))})).catch((function(t){return n({message:t})}))}))}var l=["post","put","patch","delete"].reduce((function(t,e){return t[e]=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return u(Object.assign({url:t,data:n,method:e},s,i))},t}),{});["get","head"].forEach((function(t){l[t]=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return u(Object.assign({url:e,params:n,method:t},s,i))}})),e["a"]=l},"0f9a":function(t,e,n){"use strict";n.r(e);var i=n("c7eb"),a=(n("96cf"),n("1da1")),r=(n("7f7f"),n("c24f")),o=n("5f87"),c=n("a18c"),s=n("a78e"),u=n.n(s),l={token:Object(o["a"])(),name:"",avatar:"",introduction:"",roles:[],menuList:JSON.parse(localStorage.getItem("MenuList")),sidebarWidth:window.localStorage.getItem("sidebarWidth"),sidebarStyle:window.localStorage.getItem("sidebarStyle")},d={SET_MENU_LIST:function(t,e){t.menuList=e},SET_TOKEN:function(t,e){t.token=e},SET_INTRODUCTION:function(t,e){t.introduction=e},SET_NAME:function(t,e){t.name=e},SET_AVATAR:function(t,e){t.avatar=e},SET_ROLES:function(t,e){t.roles=e},SET_SIDEBAR_WIDTH:function(t,e){t.sidebarWidth=e},SET_SIDEBAR_STYLE:function(t,e){t.sidebarStyle=e,window.localStorage.setItem("sidebarStyle",e)}},h={login:function(t,e){var n=t.commit;return new Promise((function(t,i){Object(r["q"])(e).then((function(e){var i=e.data;n("SET_TOKEN",i.token),u.a.set("MerName",i.admin.account),Object(o["c"])(i.token),t(i)})).catch((function(t){i(t)}))}))},getMenus:function(t){var e=this,n=t.commit;return new Promise((function(t,i){Object(r["k"])().then((function(e){n("SET_MENU_LIST",e.data),localStorage.setItem("MenuList",JSON.stringify(e.data)),t(e)})).catch((function(t){e.$message.error(t.message),i(t)}))}))},getInfo:function(t){var e=t.commit,n=t.state;return new Promise((function(t,i){Object(r["j"])(n.token).then((function(n){var a=n.data;a||i("Verification failed, please Login again.");var r=a.roles,o=a.name,c=a.avatar,s=a.introduction;(!r||r.length<=0)&&i("getInfo: roles must be a non-null array!"),e("SET_ROLES",r),e("SET_NAME",o),e("SET_AVATAR",c),e("SET_INTRODUCTION",s),t(a)})).catch((function(t){i(t)}))}))},logout:function(t){var e=t.commit,n=t.state,i=t.dispatch;return new Promise((function(t,a){Object(r["s"])(n.token).then((function(){e("SET_TOKEN",""),e("SET_ROLES",[]),Object(o["b"])(),Object(c["d"])(),u.a.remove(),i("tagsView/delAllViews",null,{root:!0}),t()})).catch((function(t){a(t)}))}))},resetToken:function(t){var e=t.commit;return new Promise((function(t){e("SET_TOKEN",""),e("SET_ROLES",[]),Object(o["b"])(),t()}))},changeRoles:function(t,e){var n=t.commit,r=t.dispatch;return new Promise(function(){var t=Object(a["a"])(Object(i["a"])().mark((function t(a){var s,u,l,d;return Object(i["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return s=e+"-token",n("SET_TOKEN",s),Object(o["c"])(s),t.next=5,r("getInfo");case 5:return u=t.sent,l=u.roles,Object(c["d"])(),t.next=10,r("permission/generateRoutes",l,{root:!0});case 10:d=t.sent,c["c"].addRoutes(d),r("tagsView/delAllViews",null,{root:!0}),a();case 14:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())}};e["default"]={namespaced:!0,state:l,mutations:d,actions:h}},1:function(t,e){},"12a5":function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-shopping",use:"icon-shopping-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},1430:function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-qq",use:"icon-qq-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},"14b7":function(t,e,n){},"15ae":function(t,e,n){"use strict";n("7680")},1779:function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-bug",use:"icon-bug-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},"17df":function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-international",use:"icon-international-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},"18f0":function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-link",use:"icon-link-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},"1aef":function(t,e,n){"use strict";n("ec9f")},"1e38":function(t,e,n){"use strict";n("c6b6")},"225f":function(t,e,n){"use strict";n("3ddf")},"24ab":function(t,e,n){t.exports={theme:"#1890ff"}},2580:function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-language",use:"icon-language-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},2801:function(t,e,n){"use strict";n.d(e,"m",(function(){return a})),n.d(e,"q",(function(){return r})),n.d(e,"o",(function(){return o})),n.d(e,"p",(function(){return c})),n.d(e,"n",(function(){return s})),n.d(e,"c",(function(){return u})),n.d(e,"b",(function(){return l})),n.d(e,"u",(function(){return d})),n.d(e,"j",(function(){return h})),n.d(e,"k",(function(){return m})),n.d(e,"a",(function(){return f})),n.d(e,"s",(function(){return p})),n.d(e,"r",(function(){return g})),n.d(e,"t",(function(){return b})),n.d(e,"h",(function(){return v})),n.d(e,"g",(function(){return A})),n.d(e,"f",(function(){return w})),n.d(e,"e",(function(){return y})),n.d(e,"i",(function(){return k})),n.d(e,"d",(function(){return C}));var i=n("0c6d");function a(t){return i["a"].get("store/order/reconciliation/lst",t)}function r(t,e){return i["a"].post("store/order/reconciliation/status/".concat(t),e)}function o(t,e){return i["a"].get("store/order/reconciliation/".concat(t,"/order"),e)}function c(t,e){return i["a"].get("store/order/reconciliation/".concat(t,"/refund"),e)}function s(t){return i["a"].get("store/order/reconciliation/mark/".concat(t,"/form"))}function u(t){return i["a"].get("financial_record/list",t)}function l(t){return i["a"].get("financial_record/export",t)}function d(t){return i["a"].get("financial/export",t)}function h(){return i["a"].get("version")}function m(){return i["a"].get("financial/account/form")}function f(){return i["a"].get("financial/create/form")}function p(t){return i["a"].get("financial/lst",t)}function g(t){return i["a"].get("financial/detail/".concat(t))}function b(t){return i["a"].get("financial/mark/".concat(t,"/form"))}function v(t){return i["a"].get("financial_record/lst",t)}function A(t,e){return i["a"].get("financial_record/detail/".concat(t),e)}function w(t){return i["a"].get("financial_record/title",t)}function y(t,e){return i["a"].get("financial_record/detail_export/".concat(t),e)}function k(t){return i["a"].get("financial_record/count",t)}function C(t){return i["a"].get("/bill/deposit",t)}},"29c0":function(t,e,n){},"2a3d":function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-password",use:"icon-password-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},"2f11":function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-peoples",use:"icon-peoples-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},3046:function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-money",use:"icon-money-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},3087:function(t,e,n){"use strict";n.r(e);n("ac6a"),n("456d"),n("7f7f");e["default"]={namespaced:!0,state:{configName:"",pageTitle:"",pageName:"",pageShow:1,pageColor:0,pagePic:0,pageColorPicker:"#f5f5f5",pageTabVal:0,pagePicUrl:"",defaultArray:{},pageFooter:{name:"pageFoot",setUp:{tabVal:"0"},status:{title:"是否自定义",name:"status",status:!1},txtColor:{title:"文字颜色",name:"txtColor",default:[{item:"#282828"}],color:[{item:"#282828"}]},activeTxtColor:{title:"选中文字颜色",name:"txtColor",default:[{item:"#F62C2C"}],color:[{item:"#F62C2C"}]},bgColor:{title:"背景颜色",name:"bgColor",default:[{item:"#fff"}],color:[{item:"#fff"}]},menuList:[{imgList:[n("5946"),n("641c")],name:"首页",link:"/pages/index/index"},{imgList:[n("410e"),n("5640")],name:"分类",link:"/pages/goods_cate/goods_cate"},{imgList:[n("e03b"),n("905e")],name:"逛逛",link:"/pages/plant_grass/index"},{imgList:[n("af8c"),n("73fc")],name:"购物车",link:"/pages/order_addcart/order_addcart"},{imgList:[n("3dde"),n("8ea6")],name:"我的",link:"/pages/user/index"}]}},mutations:{FOOTER:function(t,e){t.pageFooter.status.title=e.title,t.pageFooter.menuList[2]=e.name},ADDARRAY:function(t,e){e.val.id="id"+e.val.timestamp,t.defaultArray[e.num]=e.val},DELETEARRAY:function(t,e){delete t.defaultArray[e.num]},ARRAYREAST:function(t,e){delete t.defaultArray[e]},defaultArraySort:function(t,e){var n=r(t.defaultArray),i=[],a={};function r(t){var e=Object.keys(t),n=e.map((function(e){return t[e]}));return n}function o(t,n,i){return t.forEach((function(t,n){t.id||(t.id="id"+t.timestamp),e.list.forEach((function(e,n){t.id==e.id&&(t.timestamp=e.num)}))})),t}void 0!=e.oldIndex?i=JSON.parse(JSON.stringify(o(n,e.newIndex,e.oldIndex))):(n.splice(e.newIndex,0,e.element.data().defaultConfig),i=JSON.parse(JSON.stringify(o(n,0,0))));for(var c=0;c'});o.a.add(c);e["default"]=c},"31c2":function(t,e,n){"use strict";n.r(e),n.d(e,"filterAsyncRoutes",(function(){return o}));var i=n("5530"),a=(n("ac6a"),n("6762"),n("2fdb"),n("a18c"));function r(t,e){return!e.meta||!e.meta.roles||t.some((function(t){return e.meta.roles.includes(t)}))}function o(t,e){var n=[];return t.forEach((function(t){var a=Object(i["a"])({},t);r(e,a)&&(a.children&&(a.children=o(a.children,e)),n.push(a))})),n}var c={routes:[],addRoutes:[]},s={SET_ROUTES:function(t,e){t.addRoutes=e,t.routes=a["b"].concat(e)}},u={generateRoutes:function(t,e){var n=t.commit;return new Promise((function(t){var i;i=e.includes("admin2")?a["asyncRoutes"]||[]:o(a["asyncRoutes"],e),n("SET_ROUTES",i),t(i)}))}};e["default"]={namespaced:!0,state:c,mutations:s,actions:u}},3289:function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-list",use:"icon-list-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},"3dde":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFEAAABRCAYAAACqj0o2AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA25pVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1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FFODhBREFDNDFBMUJFNDQxREIiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz6rO72jAAABsUlEQVR42uzcsU4CQRDG8TtFGhLtKIydJJQ0VD4CRisfQe2oLCyECiwoqHwJ38PEiobGChMri+skoVHIOZtoQi4k7nqZUbj/l0yIEy93/nBng5zEaZpGJF+2IAARRBAJiCCCCCIBEUQQNzmlkG9OmrUjebiRqihe01SqKzXO9BtSPaldxXPPpG6ro8mjGqLkSqpl8OQmUueZXlvqxOiX61hzOW//4QopGZ07eJUxE9lY1nBj+Ydxs+spx/EHUg9FR3yVemE5MxMJiCCCCCIBEUQQQSQggggiiOTnrPufwuo5j98HMYruWc7MRPJbxA+j63r37Glkqj0T+1JvyrPUYQ1W9L97ZcVzz6XuQg+KQ/4FI2nWCrE8q6MJM5GNBUResfjE3d7WNtpYnjP9Q6lro41lrInYkTozeoIvM187wAuLfUXqVHM57xgBlj17Ggm+iZSZyMYCIogERBBBBJGACCKIIBIQQQQRRAIiiCCCSEAEsSiIC6Prmnv2NDILPSD0zfvh16PmR7u4eyBX3d7menuR7nvfi6Wf0Tsxn27MTAQRRAIiiCCCSEAEEcRNzqcAAwAGvzdJXw0gUgAAAABJRU5ErkJggg=="},"432f":function(t,e,n){},4360:function(t,e,n){"use strict";n("a481"),n("ac6a");var i=n("2b0e"),a=n("2f62"),r=(n("7f7f"),{sidebar:function(t){return t.app.sidebar},size:function(t){return t.app.size},device:function(t){return t.app.device},visitedViews:function(t){return t.tagsView.visitedViews},isEdit:function(t){return t.settings.isEdit},cachedViews:function(t){return t.tagsView.cachedViews},token:function(t){return t.user.token},avatar:function(t){return t.user.avatar},name:function(t){return t.user.name},introduction:function(t){return t.user.introduction},roles:function(t){return t.user.roles},permission_routes:function(t){return t.permission.routes},errorLogs:function(t){return t.errorLog.logs},menuList:function(t){return t.user.menuList}}),o=r,c=n("bfa9");i["default"].use(a["a"]);var s=n("c653"),u=s.keys().reduce((function(t,e){var n=e.replace(/^\.\/(.*)\.\w+$/,"$1"),i=s(e);return t[n]=i.default,t}),{}),l=(new c["a"]({storage:window.localStorage}),new a["a"].Store({modules:u,getters:o}));e["a"]=l},4678:function(t,e,n){var i={"./af":"2bfb","./af.js":"2bfb","./ar":"8e73","./ar-dz":"a356","./ar-dz.js":"a356","./ar-kw":"423e","./ar-kw.js":"423e","./ar-ly":"1cfd","./ar-ly.js":"1cfd","./ar-ma":"0a84","./ar-ma.js":"0a84","./ar-sa":"8230","./ar-sa.js":"8230","./ar-tn":"6d83","./ar-tn.js":"6d83","./ar.js":"8e73","./az":"485c","./az.js":"485c","./be":"1fc1","./be.js":"1fc1","./bg":"84aa","./bg.js":"84aa","./bm":"a7fa","./bm.js":"a7fa","./bn":"9043","./bn-bd":"9686","./bn-bd.js":"9686","./bn.js":"9043","./bo":"d26a","./bo.js":"d26a","./br":"6887","./br.js":"6887","./bs":"2554","./bs.js":"2554","./ca":"d716","./ca.js":"d716","./cs":"3c0d","./cs.js":"3c0d","./cv":"03ec","./cv.js":"03ec","./cy":"9797","./cy.js":"9797","./da":"0f14","./da.js":"0f14","./de":"b469","./de-at":"b3eb","./de-at.js":"b3eb","./de-ch":"bb71","./de-ch.js":"bb71","./de.js":"b469","./dv":"598a","./dv.js":"598a","./el":"8d47","./el.js":"8d47","./en-au":"0e6b","./en-au.js":"0e6b","./en-ca":"3886","./en-ca.js":"3886","./en-gb":"39a6","./en-gb.js":"39a6","./en-ie":"e1d3","./en-ie.js":"e1d3","./en-il":"7333","./en-il.js":"7333","./en-in":"ec2e","./en-in.js":"ec2e","./en-nz":"6f50","./en-nz.js":"6f50","./en-sg":"b7e9","./en-sg.js":"b7e9","./eo":"65db","./eo.js":"65db","./es":"898b","./es-do":"0a3c","./es-do.js":"0a3c","./es-mx":"b5b7","./es-mx.js":"b5b7","./es-us":"55c9","./es-us.js":"55c9","./es.js":"898b","./et":"ec18","./et.js":"ec18","./eu":"0ff2","./eu.js":"0ff2","./fa":"8df4","./fa.js":"8df4","./fi":"81e9","./fi.js":"81e9","./fil":"d69a","./fil.js":"d69a","./fo":"0721","./fo.js":"0721","./fr":"9f26","./fr-ca":"d9f8","./fr-ca.js":"d9f8","./fr-ch":"0e49","./fr-ch.js":"0e49","./fr.js":"9f26","./fy":"7118","./fy.js":"7118","./ga":"5120","./ga.js":"5120","./gd":"f6b4","./gd.js":"f6b4","./gl":"8840","./gl.js":"8840","./gom-deva":"aaf2","./gom-deva.js":"aaf2","./gom-latn":"0caa","./gom-latn.js":"0caa","./gu":"e0c5","./gu.js":"e0c5","./he":"c7aa","./he.js":"c7aa","./hi":"dc4d","./hi.js":"dc4d","./hr":"4ba9","./hr.js":"4ba9","./hu":"5b14","./hu.js":"5b14","./hy-am":"d6b6","./hy-am.js":"d6b6","./id":"5038","./id.js":"5038","./is":"0558","./is.js":"0558","./it":"6e98","./it-ch":"6f12","./it-ch.js":"6f12","./it.js":"6e98","./ja":"079e","./ja.js":"079e","./jv":"b540","./jv.js":"b540","./ka":"201b","./ka.js":"201b","./kk":"6d79","./kk.js":"6d79","./km":"e81d","./km.js":"e81d","./kn":"3e92","./kn.js":"3e92","./ko":"22f8","./ko.js":"22f8","./ku":"2421","./ku.js":"2421","./ky":"9609","./ky.js":"9609","./lb":"440c","./lb.js":"440c","./lo":"b29d","./lo.js":"b29d","./lt":"26f9","./lt.js":"26f9","./lv":"b97c","./lv.js":"b97c","./me":"293c","./me.js":"293c","./mi":"688b","./mi.js":"688b","./mk":"6909","./mk.js":"6909","./ml":"02fb","./ml.js":"02fb","./mn":"958b","./mn.js":"958b","./mr":"39bd","./mr.js":"39bd","./ms":"ebe4","./ms-my":"6403","./ms-my.js":"6403","./ms.js":"ebe4","./mt":"1b45","./mt.js":"1b45","./my":"8689","./my.js":"8689","./nb":"6ce3","./nb.js":"6ce3","./ne":"3a39","./ne.js":"3a39","./nl":"facd","./nl-be":"db29","./nl-be.js":"db29","./nl.js":"facd","./nn":"b84c","./nn.js":"b84c","./oc-lnc":"167b","./oc-lnc.js":"167b","./pa-in":"f3ff","./pa-in.js":"f3ff","./pl":"8d57","./pl.js":"8d57","./pt":"f260","./pt-br":"d2d4","./pt-br.js":"d2d4","./pt.js":"f260","./ro":"972c","./ro.js":"972c","./ru":"957c","./ru.js":"957c","./sd":"6784","./sd.js":"6784","./se":"ffff","./se.js":"ffff","./si":"eda5","./si.js":"eda5","./sk":"7be6","./sk.js":"7be6","./sl":"8155","./sl.js":"8155","./sq":"c8f3","./sq.js":"c8f3","./sr":"cf1e","./sr-cyrl":"13e9","./sr-cyrl.js":"13e9","./sr.js":"cf1e","./ss":"52bd","./ss.js":"52bd","./sv":"5fbd","./sv.js":"5fbd","./sw":"74dc","./sw.js":"74dc","./ta":"3de5","./ta.js":"3de5","./te":"5cbb","./te.js":"5cbb","./tet":"576c","./tet.js":"576c","./tg":"3b1b","./tg.js":"3b1b","./th":"10e8","./th.js":"10e8","./tk":"5aff","./tk.js":"5aff","./tl-ph":"0f38","./tl-ph.js":"0f38","./tlh":"cf75","./tlh.js":"cf75","./tr":"0e81","./tr.js":"0e81","./tzl":"cf51","./tzl.js":"cf51","./tzm":"c109","./tzm-latn":"b53d","./tzm-latn.js":"b53d","./tzm.js":"c109","./ug-cn":"6117","./ug-cn.js":"6117","./uk":"ada2","./uk.js":"ada2","./ur":"5294","./ur.js":"5294","./uz":"2e8c","./uz-latn":"010e","./uz-latn.js":"010e","./uz.js":"2e8c","./vi":"2921","./vi.js":"2921","./x-pseudo":"fd7e","./x-pseudo.js":"fd7e","./yo":"7f33","./yo.js":"7f33","./zh-cn":"5c3a","./zh-cn.js":"5c3a","./zh-hk":"49ab","./zh-hk.js":"49ab","./zh-mo":"3a6c","./zh-mo.js":"3a6c","./zh-tw":"90ea","./zh-tw.js":"90ea"};function a(t){var e=r(t);return n(e)}function r(t){var e=i[t];if(!(e+1)){var n=new Error("Cannot find module '"+t+"'");throw n.code="MODULE_NOT_FOUND",n}return e}a.keys=function(){return Object.keys(i)},a.resolve=r,t.exports=a,a.id="4678"},"47f1":function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-table",use:"icon-table-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},"47ff":function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-message",use:"icon-message-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},"4b27":function(t,e,n){"use strict";n("5445")},"4d49":function(t,e,n){"use strict";n.r(e);var i={logs:[]},a={ADD_ERROR_LOG:function(t,e){t.logs.push(e)},CLEAR_ERROR_LOG:function(t){t.logs.splice(0)}},r={addErrorLog:function(t,e){var n=t.commit;n("ADD_ERROR_LOG",e)},clearErrorLog:function(t){var e=t.commit;e("CLEAR_ERROR_LOG")}};e["default"]={namespaced:!0,state:i,mutations:a,actions:r}},"4d7e":function(t,e,n){"use strict";n("de9d")},"4df5":function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-eye",use:"icon-eye-usage",viewBox:"0 0 128 64",content:''});o.a.add(c);e["default"]=c},"4fb4":function(t,e,n){t.exports=n.p+"mer/img/no.7de91001.png"},"51ff":function(t,e,n){var i={"./404.svg":"a14a","./bug.svg":"1779","./chart.svg":"c829","./clipboard.svg":"bc35","./component.svg":"56d6","./dashboard.svg":"f782","./documentation.svg":"90fb","./drag.svg":"9bbf","./edit.svg":"aa46","./education.svg":"ad1c","./email.svg":"cbb7","./example.svg":"30c3","./excel.svg":"6599","./exit-fullscreen.svg":"dbc7","./eye-open.svg":"d7ec","./eye.svg":"4df5","./form.svg":"eb1b","./fullscreen.svg":"9921","./guide.svg":"6683","./icon.svg":"9d91","./international.svg":"17df","./language.svg":"2580","./link.svg":"18f0","./list.svg":"3289","./lock.svg":"ab00","./message.svg":"47ff","./money.svg":"3046","./nested.svg":"dcf8","./password.svg":"2a3d","./pdf.svg":"f9a1","./people.svg":"d056","./peoples.svg":"2f11","./qq.svg":"1430","./search.svg":"8e8d","./shopping.svg":"12a5","./size.svg":"8644","./skill.svg":"096e","./star.svg":"708a","./tab.svg":"8fb7","./table.svg":"47f1","./theme.svg":"e534","./tree-table.svg":"e7c8","./tree.svg":"93cd","./user.svg":"b3b5","./wechat.svg":"80da","./zip.svg":"8aa6"};function a(t){var e=r(t);return n(e)}function r(t){var e=i[t];if(!(e+1)){var n=new Error("Cannot find module '"+t+"'");throw n.code="MODULE_NOT_FOUND",n}return e}a.keys=function(){return Object.keys(i)},a.resolve=r,t.exports=a,a.id="51ff"},5445:function(t,e,n){},"55d1":function(t,e,n){"use strict";n("bd3e")},5640:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFEAAABRCAYAAACqj0o2AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA25pVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3Vy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APqynKfP/czlF332xl7CLnDCPYDiOk4rwDPtYCjmRwgLEdP5jGW1vq9goLK7rfkz43pHh2lJhqWtW51uxU0sn+HLisw/wwoLfbbETzXBeswQwF3BOQ6E3kZITKSwLWFhmyN/e1jZY77fConZjzsSaBr79VpiXBIiNGLe3NcX3u4Hvb8KZnAhEBEQgAhGICIhABCIQERCBCMS0aB6tsEKM29vyhu2sQlIg1mK8CDzCmZyIokIcWDqufsA5DXW1c+LzaNR8tYu/B3La9jZ/bjOje+97MPYbA8vh7cbkRCACEQERiEAEIgIiEIG4zPoTYAALKF4dRnTU+gAAAABJRU5ErkJggg=="},"56d6":function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-component",use:"icon-component-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},"56d7":function(t,e,n){"use strict";n.r(e);var i={};n.r(i),n.d(i,"parseTime",(function(){return ie["c"]})),n.d(i,"formatTime",(function(){return ie["b"]})),n.d(i,"timeAgo",(function(){return Le})),n.d(i,"numberFormatter",(function(){return Ne})),n.d(i,"toThousandFilter",(function(){return Te})),n.d(i,"uppercaseFirst",(function(){return Qe})),n.d(i,"filterEmpty",(function(){return ae})),n.d(i,"filterYesOrNo",(function(){return re})),n.d(i,"filterShowOrHide",(function(){return oe})),n.d(i,"filterShowOrHideForFormConfig",(function(){return ce})),n.d(i,"filterYesOrNoIs",(function(){return se})),n.d(i,"paidFilter",(function(){return ue})),n.d(i,"payTypeFilter",(function(){return le})),n.d(i,"orderStatusFilter",(function(){return de})),n.d(i,"activityOrderStatus",(function(){return he})),n.d(i,"cancelOrderStatusFilter",(function(){return me})),n.d(i,"orderPayType",(function(){return fe})),n.d(i,"takeOrderStatusFilter",(function(){return pe})),n.d(i,"orderRefundFilter",(function(){return ge})),n.d(i,"accountStatusFilter",(function(){return be})),n.d(i,"reconciliationFilter",(function(){return ve})),n.d(i,"reconciliationStatusFilter",(function(){return Ae})),n.d(i,"productStatusFilter",(function(){return we})),n.d(i,"couponTypeFilter",(function(){return ye})),n.d(i,"couponUseTypeFilter",(function(){return ke})),n.d(i,"broadcastStatusFilter",(function(){return Ce})),n.d(i,"liveReviewStatusFilter",(function(){return Ee})),n.d(i,"broadcastType",(function(){return je})),n.d(i,"broadcastDisplayType",(function(){return Ie})),n.d(i,"filterClose",(function(){return xe})),n.d(i,"exportOrderStatusFilter",(function(){return Se})),n.d(i,"transactionTypeFilter",(function(){return Oe})),n.d(i,"seckillStatusFilter",(function(){return Re})),n.d(i,"seckillReviewStatusFilter",(function(){return _e})),n.d(i,"deliveryStatusFilter",(function(){return Me})),n.d(i,"organizationType",(function(){return De})),n.d(i,"id_docType",(function(){return ze})),n.d(i,"deliveryType",(function(){return Ve})),n.d(i,"runErrandStatus",(function(){return Be}));n("456d"),n("ac6a"),n("cadf"),n("551c"),n("f751"),n("097d");var a=n("2b0e"),r=n("a78e"),o=n.n(r),c=(n("f5df"),n("5c96")),s=n.n(c),u=n("c1df"),l=n.n(u),d=n("c7ad"),h=n.n(d),m=(n("24ab"),n("b20f"),n("fc4a"),n("de6e"),n("caf9")),f=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.isRouterAlive?n("div",{attrs:{id:"app"}},[n("router-view")],1):t._e()},p=[],g={name:"App",provide:function(){return{reload:this.reload}},data:function(){return{isRouterAlive:!0}},methods:{reload:function(){this.isRouterAlive=!1,this.$nextTick((function(){this.isRouterAlive=!0}))}}},b=g,v=n("2877"),A=Object(v["a"])(b,f,p,!1,null,null,null),w=A.exports,y=n("4360"),k=n("a18c"),C=n("30ba"),E=n.n(C),j=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("el-dialog",{attrs:{title:"上传图片",visible:t.visible,width:"896px","before-close":t.handleClose},on:{"update:visible":function(e){t.visible=e}}},[t.visible?n("upload-index",{attrs:{"is-more":t.isMore},on:{getImage:t.getImage}}):t._e()],1)],1)},I=[],x=n("b5b8"),S={name:"UploadFroms",components:{UploadIndex:x["default"]},data:function(){return{visible:!1,callback:function(){},isMore:""}},watch:{},methods:{handleClose:function(){this.visible=!1},getImage:function(t){this.callback(t),this.visible=!1}}},O=S,R=Object(v["a"])(O,j,I,!1,null,"76ff32bf",null),_=R.exports;a["default"].use(s.a,{size:o.a.get("size")||"medium"});var M,D={install:function(t,e){var n=t.extend(_),i=new n;i.$mount(document.createElement("div")),document.body.appendChild(i.$el),t.prototype.$modalUpload=function(t,e){i.visible=!0,i.callback=t,i.isMore=e}}},z=D,V=n("6625"),B=n.n(V),F=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("el-form",{ref:"formDynamic",staticClass:"attrFrom mb20",attrs:{size:"small",model:t.formDynamic,rules:t.rules,"label-width":"100px"},nativeOn:{submit:function(t){t.preventDefault()}}},[n("el-row",{attrs:{gutter:24}},[n("el-col",{attrs:{span:8}},[n("el-form-item",{attrs:{label:"模板名称:",prop:"template_name"}},[n("el-input",{attrs:{placeholder:"请输入模板名称"},model:{value:t.formDynamic.template_name,callback:function(e){t.$set(t.formDynamic,"template_name",e)},expression:"formDynamic.template_name"}})],1)],1),t._v(" "),t._l(t.formDynamic.template_value,(function(e,i){return n("el-col",{key:i,staticClass:"noForm",attrs:{span:24}},[n("el-form-item",[n("div",{staticClass:"acea-row row-middle"},[n("span",{staticClass:"mr5"},[t._v(t._s(e.value))]),n("i",{staticClass:"el-icon-circle-close",on:{click:function(e){return t.handleRemove(i)}}})]),t._v(" "),n("div",{staticClass:"rulesBox"},[t._l(e.detail,(function(i,a){return n("el-tag",{key:a,staticClass:"mb5 mr10",attrs:{closable:"",size:"medium","disable-transitions":!1},on:{close:function(n){return t.handleClose(e.detail,a)}}},[t._v("\n "+t._s(i)+"\n ")])})),t._v(" "),e.inputVisible?n("el-input",{ref:"saveTagInput",refInFor:!0,staticClass:"input-new-tag",attrs:{size:"small",maxlength:"30"},on:{blur:function(n){return t.createAttr(e.detail.attrsVal,i)}},nativeOn:{keyup:function(n){return!n.type.indexOf("key")&&t._k(n.keyCode,"enter",13,n.key,"Enter")?null:t.createAttr(e.detail.attrsVal,i)}},model:{value:e.detail.attrsVal,callback:function(n){t.$set(e.detail,"attrsVal",n)},expression:"item.detail.attrsVal"}}):n("el-button",{staticClass:"button-new-tag",attrs:{size:"small"},on:{click:function(n){return t.showInput(e)}}},[t._v("+ 添加")])],2)])],1)})),t._v(" "),t.isBtn?n("el-col",{staticClass:"mt10",staticStyle:{"padding-left":"0","padding-right":"0"},attrs:{span:24}},[n("el-col",{attrs:{span:8}},[n("el-form-item",{attrs:{label:"规格:"}},[n("el-input",{attrs:{maxlength:"30",placeholder:"请输入规格"},model:{value:t.attrsName,callback:function(e){t.attrsName=e},expression:"attrsName"}})],1)],1),t._v(" "),n("el-col",{attrs:{span:8}},[n("el-form-item",{attrs:{label:"规格值:"}},[n("el-input",{attrs:{maxlength:"30",placeholder:"请输入规格值"},model:{value:t.attrsVal,callback:function(e){t.attrsVal=e},expression:"attrsVal"}})],1)],1),t._v(" "),n("el-col",{attrs:{span:8}},[n("el-button",{staticClass:"mr10",attrs:{type:"primary"},on:{click:t.createAttrName}},[t._v("确定")]),t._v(" "),n("el-button",{on:{click:t.offAttrName}},[t._v("取消")])],1)],1):t._e(),t._v(" "),t.spinShow?n("Spin",{attrs:{size:"large",fix:""}}):t._e()],2),t._v(" "),n("el-form-item",[t.isBtn?t._e():n("el-button",{staticClass:"mt10",attrs:{type:"primary",icon:"md-add"},on:{click:t.addBtn}},[t._v("添加新规格")])],1),t._v(" "),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(e){t.dialogFormVisible=!1}}},[t._v("取 消")]),t._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:function(e){t.dialogFormVisible=!1}}},[t._v("确 定")])],1)],1),t._v(" "),n("span",{staticClass:"footer acea-row"},[n("el-button",{on:{click:function(e){return t.resetForm("formDynamic")}}},[t._v("取消")]),t._v(" "),n("el-button",{attrs:{loading:t.loading,type:"primary"},on:{click:function(e){return t.handleSubmit("formDynamic")}}},[t._v("确 定")])],1)],1)},L=[],N=(n("7f7f"),n("c4c8")),T={name:"CreatAttr",props:{currentRow:{type:Object,default:null}},data:function(){return{dialogVisible:!1,inputVisible:!1,inputValue:"",spinShow:!1,loading:!1,grid:{xl:3,lg:3,md:12,sm:24,xs:24},modal:!1,index:1,rules:{template_name:[{required:!0,message:"请输入模板名称",trigger:"blur"}]},formDynamic:{template_name:"",template_value:[]},attrsName:"",attrsVal:"",formDynamicNameData:[],isBtn:!1,formDynamicName:[],results:[],result:[],ids:0}},watch:{currentRow:{handler:function(t,e){this.formDynamic=t},immediate:!0}},mounted:function(){var t=this;this.formDynamic.template_value.map((function(e){t.$set(e,"inputVisible",!1)}))},methods:{resetForm:function(t){this.$msgbox.close(),this.clear(),this.$refs[t].resetFields()},addBtn:function(){this.isBtn=!0},handleClose:function(t,e){t.splice(e,1)},offAttrName:function(){this.isBtn=!1},handleRemove:function(t){this.formDynamic.template_value.splice(t,1)},createAttrName:function(){if(this.attrsName&&this.attrsVal){var t={value:this.attrsName,detail:[this.attrsVal]};this.formDynamic.template_value.push(t);var e={};this.formDynamic.template_value=this.formDynamic.template_value.reduce((function(t,n){return!e[n.value]&&(e[n.value]=t.push(n)),t}),[]),this.attrsName="",this.attrsVal="",this.isBtn=!1}else{if(!this.attrsName)return void this.$message.warning("请输入规格名称!");if(!this.attrsVal)return void this.$message.warning("请输入规格值!")}},createAttr:function(t,e){if(t){this.formDynamic.template_value[e].detail.push(t);var n={};this.formDynamic.template_value[e].detail=this.formDynamic.template_value[e].detail.reduce((function(t,e){return!n[e]&&(n[e]=t.push(e)),t}),[]),this.formDynamic.template_value[e].inputVisible=!1}else this.$message.warning("请添加属性")},showInput:function(t){this.$set(t,"inputVisible",!0)},handleSubmit:function(t){var e=this;this.$refs[t].validate((function(t){return!!t&&(0===e.formDynamic.template_value.length?e.$message.warning("请至少添加一条属性规格!"):(e.loading=!0,void setTimeout((function(){e.currentRow.attr_template_id?Object(N["l"])(e.currentRow.attr_template_id,e.formDynamic).then((function(t){e.$message.success(t.message),e.loading=!1,setTimeout((function(){e.$msgbox.close()}),500),setTimeout((function(){e.clear(),e.$emit("getList")}),600)})).catch((function(t){e.loading=!1,e.$message.error(t.message)})):Object(N["j"])(e.formDynamic).then((function(t){e.$message.success(t.message),e.loading=!1,setTimeout((function(){e.$msgbox.close()}),500),setTimeout((function(){e.$emit("getList"),e.clear()}),600)})).catch((function(t){e.loading=!1,e.$message.error(t.message)}))}),1200)))}))},clear:function(){this.$refs["formDynamic"].resetFields(),this.formDynamic.template_value=[],this.formDynamic.template_name="",this.isBtn=!1,this.attrsName="",this.attrsVal=""},handleInputConfirm:function(){var t=this.inputValue;t&&this.dynamicTags.push(t),this.inputVisible=!1,this.inputValue=""}}},Q=T,P=(n("1e38"),Object(v["a"])(Q,F,L,!1,null,"5523fc24",null)),H=P.exports,U=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("el-form",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"ruleForm",attrs:{model:t.ruleForm,"label-width":"120px",size:"mini",rules:t.rules}},[n("el-form-item",{attrs:{label:"模板名称",prop:"name"}},[n("el-input",{staticClass:"withs",attrs:{placeholder:"请输入模板名称"},model:{value:t.ruleForm.name,callback:function(e){t.$set(t.ruleForm,"name",e)},expression:"ruleForm.name"}})],1),t._v(" "),n("el-form-item",{attrs:{label:"运费说明",prop:"info"}},[n("el-input",{staticClass:"withs",attrs:{type:"textarea",placeholder:"请输入运费说明"},model:{value:t.ruleForm.info,callback:function(e){t.$set(t.ruleForm,"info",e)},expression:"ruleForm.info"}})],1),t._v(" "),n("el-form-item",{attrs:{label:"计费方式",prop:"type"}},[n("el-radio-group",{on:{change:function(e){return t.changeRadio(t.ruleForm.type)}},model:{value:t.ruleForm.type,callback:function(e){t.$set(t.ruleForm,"type",e)},expression:"ruleForm.type"}},[n("el-radio",{attrs:{label:0}},[t._v("按件数")]),t._v(" "),n("el-radio",{attrs:{label:1}},[t._v("按重量")]),t._v(" "),n("el-radio",{attrs:{label:2}},[t._v("按体积")])],1)],1),t._v(" "),n("el-form-item",{attrs:{label:"配送区域及运费",prop:"region"}},[n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticClass:"tempBox",staticStyle:{width:"100%"},attrs:{data:t.ruleForm.region,border:"",fit:"","highlight-current-row":"",size:"mini"}},[n("el-table-column",{attrs:{align:"center",label:"可配送区域","min-width":"260"},scopedSlots:t._u([{key:"default",fn:function(e){return[0===e.$index?n("span",[t._v("默认全国 "),n("span",{staticStyle:{"font-weight":"bold"}},[t._v("(开启指定区域不配送时无效)")])]):n("LazyCascader",{staticStyle:{width:"98%"},attrs:{props:t.props,"collapse-tags":"",clearable:"",filterable:!1},model:{value:e.row.city_ids,callback:function(n){t.$set(e.row,"city_ids",n)},expression:"scope.row.city_ids"}})]}}])}),t._v(" "),n("el-table-column",{attrs:{"min-width":"130px",align:"center",label:t.columns.title},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[n("el-input-number",{attrs:{"controls-position":"right",min:0},model:{value:i.first,callback:function(e){t.$set(i,"first",e)},expression:"row.first"}})]}}])}),t._v(" "),n("el-table-column",{attrs:{"min-width":"120px",align:"center",label:"运费(元)"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[n("el-input-number",{attrs:{"controls-position":"right",min:0},model:{value:i.first_price,callback:function(e){t.$set(i,"first_price",e)},expression:"row.first_price"}})]}}])}),t._v(" "),n("el-table-column",{attrs:{"min-width":"120px",align:"center",label:t.columns.title2},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[n("el-input-number",{attrs:{"controls-position":"right",min:.1},model:{value:i.continue,callback:function(e){t.$set(i,"continue",e)},expression:"row.continue"}})]}}])}),t._v(" "),n("el-table-column",{attrs:{"class-name":"status-col",align:"center",label:"续费(元)","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[n("el-input-number",{attrs:{"controls-position":"right",min:0},model:{value:i.continue_price,callback:function(e){t.$set(i,"continue_price",e)},expression:"row.continue_price"}})]}}])}),t._v(" "),n("el-table-column",{attrs:{align:"center",label:"操作","min-width":"80",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.$index>0?n("el-button",{attrs:{type:"text",size:"small"},on:{click:function(n){return t.confirmEdit(t.ruleForm.region,e.$index)}}},[t._v("\n 删除\n ")]):t._e()]}}])})],1)],1),t._v(" "),n("el-form-item",[n("el-button",{attrs:{type:"primary",size:"mini",icon:"el-icon-edit"},on:{click:function(e){return t.addRegion(t.ruleForm.region)}}},[t._v("\n 添加配送区域\n ")])],1),t._v(" "),n("el-form-item",{attrs:{label:"指定包邮",prop:"appoint"}},[n("el-radio-group",{model:{value:t.ruleForm.appoint,callback:function(e){t.$set(t.ruleForm,"appoint",e)},expression:"ruleForm.appoint"}},[n("el-radio",{attrs:{label:1}},[t._v("开启")]),t._v(" "),n("el-radio",{attrs:{label:0}},[t._v("关闭")])],1)],1),t._v(" "),1===t.ruleForm.appoint?n("el-form-item",{attrs:{prop:"free"}},[n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticStyle:{width:"100%"},attrs:{data:t.ruleForm.free,border:"",fit:"","highlight-current-row":"",size:"mini"}},[n("el-table-column",{attrs:{align:"center",label:"选择地区","min-width":"220"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[n("LazyCascader",{staticStyle:{width:"95%"},attrs:{props:t.props,"collapse-tags":"",clearable:"",filterable:!1},model:{value:i.city_ids,callback:function(e){t.$set(i,"city_ids",e)},expression:"row.city_ids"}})]}}],null,!1,719238884)}),t._v(" "),n("el-table-column",{attrs:{"min-width":"180px",align:"center",label:t.columns.title3},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[n("el-input-number",{attrs:{"controls-position":"right",min:1},model:{value:i.number,callback:function(e){t.$set(i,"number",e)},expression:"row.number"}})]}}],null,!1,2893068961)}),t._v(" "),n("el-table-column",{attrs:{"min-width":"120px",align:"center",label:"最低购买金额(元)"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[n("el-input-number",{attrs:{"controls-position":"right",min:.01},model:{value:i.price,callback:function(e){t.$set(i,"price",e)},expression:"row.price"}})]}}],null,!1,2216462721)}),t._v(" "),n("el-table-column",{attrs:{align:"center",label:"操作","min-width":"120",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-button",{attrs:{type:"text",size:"small"},on:{click:function(n){return t.confirmEdit(t.ruleForm.free,e.$index)}}},[t._v("\n 删除\n ")])]}}],null,!1,4029474057)})],1)],1):t._e(),t._v(" "),1===t.ruleForm.appoint?n("el-form-item",[n("el-button",{attrs:{type:"primary",size:"mini",icon:"el-icon-edit"},on:{click:function(e){return t.addFree(t.ruleForm.free)}}},[t._v("\n 添加指定包邮区域\n ")])],1):t._e(),t._v(" "),n("el-row",{attrs:{gutter:20}},[n("el-col",{attrs:{span:12}},[n("el-form-item",{attrs:{label:"指定区域不配送",prop:"undelivery"}},[n("el-radio-group",{model:{value:t.ruleForm.undelivery,callback:function(e){t.$set(t.ruleForm,"undelivery",e)},expression:"ruleForm.undelivery"}},[n("el-radio",{attrs:{label:1}},[t._v("自定义")]),t._v(" "),n("el-radio",{attrs:{label:2}},[t._v("开启")]),t._v(" "),n("el-radio",{attrs:{label:0}},[t._v("关闭")])],1),t._v(" "),n("br"),t._v('\n (说明: 选择"开启"时, 仅支持上表添加的配送区域)\n ')],1)],1),t._v(" "),n("el-col",{attrs:{span:12}},[1===t.ruleForm.undelivery?n("el-form-item",{staticClass:"noBox",attrs:{prop:"city_id3"}},[n("LazyCascader",{staticStyle:{width:"46%"},attrs:{placeholder:"请选择不配送区域",props:t.props,"collapse-tags":"",clearable:"",filterable:!1},model:{value:t.ruleForm.city_id3,callback:function(e){t.$set(t.ruleForm,"city_id3",e)},expression:"ruleForm.city_id3"}})],1):t._e()],1)],1),t._v(" "),n("el-form-item",{attrs:{label:"排序"}},[n("el-input",{staticClass:"withs",attrs:{placeholder:"请输入排序"},model:{value:t.ruleForm.sort,callback:function(e){t.$set(t.ruleForm,"sort",e)},expression:"ruleForm.sort"}})],1)],1),t._v(" "),n("span",{staticClass:"footer acea-row"},[n("el-button",{on:{click:function(e){return t.resetForm("ruleForm")}}},[t._v("取 消")]),t._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.onsubmit("ruleForm")}}},[t._v("确 定")])],1)],1)},G=[],W=(n("55dd"),n("2909")),Z=(n("c5f6"),n("8a9d")),Y=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"lazy-cascader",style:{width:t.width}},[t.disabled?n("div",{staticClass:"el-input__inner lazy-cascader-input lazy-cascader-input-disabled"},[n("span",{directives:[{name:"show",rawName:"v-show",value:t.placeholderVisible,expression:"placeholderVisible"}],staticClass:"lazy-cascader-placeholder"},[t._v("\n "+t._s(t.placeholder)+"\n ")]),t._v(" "),t.props.multiple?n("div",{staticClass:"lazy-cascader-tags"},t._l(t.labelArray,(function(e,i){return n("el-tag",{key:i,staticClass:"lazy-cascader-tag",attrs:{type:"info","disable-transitions":"",closable:""}},[n("span",[t._v(" "+t._s(e.label.join(t.separator)))])])})),1):n("div",{staticClass:"lazy-cascader-label"},[n("el-tooltip",{attrs:{placement:"top-start",content:t.labelObject.label.join(t.separator)}},[n("span",[t._v(t._s(t.labelObject.label.join(t.separator)))])])],1)]):n("el-popover",{ref:"popover",attrs:{trigger:"click",placement:"bottom-start"}},[n("div",{staticClass:"lazy-cascader-search"},[t.filterable?n("el-autocomplete",{staticClass:"inline-input",style:{width:t.searchWidth||"100%"},attrs:{"popper-class":t.suggestionsPopperClass,"prefix-icon":"el-icon-search",label:"name","fetch-suggestions":t.querySearch,"trigger-on-focus":!1,placeholder:"请输入"},on:{select:t.handleSelect,blur:function(e){t.isSearchEmpty=!1}},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.item;return[n("div",{staticClass:"name",class:t.isChecked(i[t.props.value])},[t._v("\n "+t._s(i[t.props.label].join(t.separator))+"\n ")])]}}],null,!1,1538741936),model:{value:t.keyword,callback:function(e){t.keyword=e},expression:"keyword"}}):t._e(),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:t.isSearchEmpty,expression:"isSearchEmpty"}],staticClass:"empty"},[t._v(t._s(t.searchEmptyText))])],1),t._v(" "),n("div",{staticClass:"lazy-cascader-panel"},[n("el-cascader-panel",{ref:"panel",attrs:{options:t.options,props:t.currentProps},on:{change:t.change},model:{value:t.current,callback:function(e){t.current=e},expression:"current"}})],1),t._v(" "),n("div",{staticClass:"el-input__inner lazy-cascader-input",class:t.disabled?"lazy-cascader-input-disabled":"",attrs:{slot:"reference"},slot:"reference"},[n("span",{directives:[{name:"show",rawName:"v-show",value:t.placeholderVisible,expression:"placeholderVisible"}],staticClass:"lazy-cascader-placeholder"},[t._v("\n "+t._s(t.placeholder)+"\n ")]),t._v(" "),t.props.multiple?n("div",{staticClass:"lazy-cascader-tags"},t._l(t.labelArray,(function(e,i){return n("el-tag",{key:i,staticClass:"lazy-cascader-tag",attrs:{type:"info",size:"small","disable-transitions":"",closable:""},on:{close:function(n){return t.handleClose(e)}}},[n("span",[t._v(" "+t._s(e.label.join(t.separator)))])])})),1):n("div",{staticClass:"lazy-cascader-label"},[n("el-tooltip",{attrs:{placement:"top-start",content:t.labelObject.label.join(t.separator)}},[n("span",[t._v(t._s(t.labelObject.label.join(t.separator)))])])],1),t._v(" "),t.clearable&&t.current.length>0?n("span",{staticClass:"lazy-cascader-clear",on:{click:function(e){return e.stopPropagation(),t.clearBtnClick(e)}}},[n("i",{staticClass:"el-icon-close"})]):t._e()])])],1)},J=[],q=n("c7eb"),X=(n("96cf"),n("1da1")),K=(n("20d6"),{props:{value:{type:Array,default:function(){return[]}},separator:{type:String,default:"/"},placeholder:{type:String,default:"请选择"},width:{type:String,default:"400px"},filterable:Boolean,clearable:Boolean,disabled:Boolean,props:{type:Object,default:function(){return{}}},suggestionsPopperClass:{type:String,default:"suggestions-popper-class"},searchWidth:{type:String},searchEmptyText:{type:String,default:"暂无数据"}},data:function(){return{isSearchEmpty:!1,keyword:"",options:[],current:[],labelObject:{label:[],value:[]},labelArray:[],currentProps:{multiple:this.props.multiple,checkStrictly:this.props.checkStrictly,value:this.props.value,label:this.props.label,leaf:this.props.leaf,lazy:!0,lazyLoad:this.lazyLoad}}},computed:{placeholderVisible:function(){return!this.current||0==this.current.length}},watch:{current:function(){this.getLabelArray()},value:function(t){this.current=t},keyword:function(){this.isSearchEmpty=!1}},created:function(){this.initOptions()},methods:{isChecked:function(t){if(this.props.multiple){var e=this.current.findIndex((function(e){return e.join()==t.join()}));return e>-1?"el-link el-link--primary":""}return t.join()==this.current.join()?"el-link el-link--primary":""},querySearch:function(t,e){var n=this;this.props.lazySearch(t,(function(t){e(t),t&&t.length||(n.isSearchEmpty=!0)}))},handleSelect:function(t){var e=this;if(this.props.multiple){var n=this.current.findIndex((function(n){return n.join()==t[e.props.value].join()}));-1==n&&(this.$refs.panel.clearCheckedNodes(),this.current.push(t[this.props.value]),this.$emit("change",this.current))}else null!=this.current&&t[this.props.value].join()===this.current.join()||(this.$refs.panel.activePath=[],this.current=t[this.props.value],this.$emit("change",this.current));this.keyword=""},initOptions:function(){var t=Object(X["a"])(Object(q["a"])().mark((function t(){var e=this;return Object(q["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:this.props.lazyLoad(0,(function(t){e.$set(e,"options",t),e.props.multiple?e.current=Object(W["a"])(e.value):e.current=e.value}));case 1:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),getLabelArray:function(){var t=Object(X["a"])(Object(q["a"])().mark((function t(){var e,n,i,a=this;return Object(q["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!this.props.multiple){t.next=16;break}e=[],n=0;case 3:if(!(n-1&&(this.$refs.panel.clearCheckedNodes(),this.current.splice(e,1),this.$emit("change",this.current))},clearBtnClick:function(){this.$refs.panel.clearCheckedNodes(),this.current=[],this.$emit("change",this.current)},change:function(){this.$emit("change",this.current)}}}),$=K,tt=(n("15ae"),Object(v["a"])($,Y,J,!1,null,null,null)),et=tt.exports,nt={name:"",type:0,appoint:0,sort:0,info:"",region:[{first:1,first_price:0,continue:1,continue_price:0,city_id:[],city_ids:[]}],undelivery:0,free:[],undelives:{},city_id3:[]},it={},at="重量(kg)",rt="体积(m³)",ot=[{title:"首件",title2:"续件",title3:"最低购买件数"},{title:"首件".concat(at),title2:"续件".concat(at),title3:"最低购买".concat(at)},{title:"首件".concat(rt),title2:"续件".concat(rt),title3:"最低购买".concat(rt)}],ct={name:"CreatTemplates",components:{LazyCascader:et},props:{tempId:{type:Number,default:0},componentKey:{type:Number,default:0}},data:function(){return{loading:!1,rules:{name:[{required:!0,message:"请输入模板名称",trigger:"change"}],info:[{required:!0,message:"请输入运费说明",trigger:"blur"},{min:3,max:500,message:"长度在 3 到 500 个字符",trigger:"blur"}],free:[{type:"array",required:!0,message:"请至少添加一个地区",trigger:"change"}],appoint:[{required:!0,message:"请选择是否指定包邮",trigger:"change"}],undelivery:[{required:!0,message:"请选择是否指定区域不配送",trigger:"change"}],type:[{required:!0,message:"请选择计费方式",trigger:"change"}],region:[{required:!0,message:"请选择活动区域",trigger:"change"}]},nodeKey:"city_id",props:{children:"children",label:"name",value:"id",multiple:!0,lazy:!0,lazyLoad:this.lazyLoad,checkStrictly:!0},dialogVisible:!1,ruleForm:Object.assign({},nt),listLoading:!1,cityList:[],columns:{title:"首件",title2:"续件",title3:"最低购买件数"}}},watch:{componentKey:{handler:function(t,e){t?this.getInfo():this.ruleForm={name:"",type:0,appoint:0,sort:0,region:[{first:1,first_price:0,continue:1,continue_price:0,city_id:[],city_ids:[]}],undelivery:0,free:[],undelives:{},city_id3:[]}}}},mounted:function(){this.tempId>0&&this.getInfo()},methods:{resetForm:function(t){this.$msgbox.close(),this.$refs[t].resetFields()},onClose:function(t){this.dialogVisible=!1,this.$refs[t].resetFields()},confirmEdit:function(t,e){t.splice(e,1)},changeRadio:function(t){this.columns=Object.assign({},ot[t])},addRegion:function(t){t.push(Object.assign({},{first:1,first_price:1,continue:1,continue_price:0,city_id:[],city_ids:[]}))},addFree:function(t){t.push(Object.assign({},{city_id:[],number:1,price:.01,city_ids:[]}))},lazyLoad:function(t,e){var n=this;if(it[t])it[t]().then((function(t){e(Object(W["a"])(t.data))}));else{var i=Object(Z["a"])(t);it[t]=function(){return i},i.then((function(n){n.data.forEach((function(t){t.leaf=0===t.snum})),it[t]=function(){return new Promise((function(t){setTimeout((function(){return t(n)}),300)}))},e(n.data)})).catch((function(t){n.$message.error(t.message)}))}},getInfo:function(){var t=this;this.loading=!0,Object(Z["d"])(this.tempId).then((function(e){t.dialogVisible=!0;var n=e.data;t.ruleForm={name:n.name,type:n.type,info:n.info,appoint:n.appoint,sort:n.sort,region:n.region,undelivery:n.undelivery,free:n.free,undelives:n.undelives,city_id3:n.undelives.city_ids||[]},t.ruleForm.region.map((function(e){t.$set(e,"city_id",e.city_ids[0]),t.$set(e,"city_ids",e.city_ids)})),t.ruleForm.free.map((function(e){t.$set(e,"city_id",e.city_ids[0]),t.$set(e,"city_ids",e.city_ids)})),t.changeRadio(n.type),t.loading=!1})).catch((function(e){t.$message.error(e.message),t.loading=!1}))},change:function(t){return t.map((function(t){var e=[];0!==t.city_ids.length&&(t.city_ids.map((function(t){e.push(t[t.length-1])})),t.city_id=e)})),t},changeOne:function(t){var e=[];if(0!==t.length)return t.map((function(t){e.push(t[t.length-1])})),e},onsubmit:function(t){var e=this,n={name:this.ruleForm.name,type:this.ruleForm.type,info:this.ruleForm.info,appoint:this.ruleForm.appoint,sort:this.ruleForm.sort,region:this.change(this.ruleForm.region),undelivery:this.ruleForm.undelivery,free:this.change(this.ruleForm.free),undelives:{city_id:this.changeOne(this.ruleForm.city_id3)}};this.$refs[t].validate((function(i){if(!i)return!1;0===e.tempId?Object(Z["b"])(n).then((function(n){e.$message.success(n.message),setTimeout((function(){e.$msgbox.close()}),500),setTimeout((function(){e.$emit("getList"),e.$refs[t].resetFields()}),600)})).catch((function(t){e.$message.error(t.message)})):Object(Z["f"])(e.tempId,n).then((function(n){e.$message.success(n.message),setTimeout((function(){e.$msgbox.close()}),500),setTimeout((function(){e.$emit("getList"),e.$refs[t].resetFields()}),600)})).catch((function(t){e.$message.error(t.message)}))}))}}},st=ct,ut=(n("967a"),Object(v["a"])(st,U,G,!1,null,"173db85a",null)),lt=ut.exports,dt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"divBox"},[n("div",{staticClass:"header clearfix"},[n("div",{staticClass:"container"},[n("el-form",{attrs:{inline:"",size:"small"}},[n("el-form-item",{attrs:{label:"优惠劵名称:"}},[n("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入优惠券名称",size:"small"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getList(e)}},model:{value:t.tableFrom.coupon_name,callback:function(e){t.$set(t.tableFrom,"coupon_name",e)},expression:"tableFrom.coupon_name"}},[n("el-button",{staticClass:"el-button-solt",attrs:{slot:"append",icon:"el-icon-search",size:"small"},on:{click:t.getList},slot:"append"})],1)],1)],1)],1)]),t._v(" "),n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],ref:"table",staticStyle:{width:"100%"},attrs:{data:t.tableData.data,size:"mini","max-height":"400","tooltip-effect":"dark"},on:{"selection-change":t.handleSelectionChange}},["wu"===t.handle?n("el-table-column",{attrs:{type:"selection",width:"55"}}):t._e(),t._v(" "),n("el-table-column",{attrs:{prop:"coupon_id",label:"ID","min-width":"50"}}),t._v(" "),n("el-table-column",{attrs:{prop:"title",label:"优惠券名称","min-width":"120"}}),t._v(" "),n("el-table-column",{attrs:{label:"优惠劵类型","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[n("span",[t._v(t._s(t._f("couponTypeFilter")(i.type)))])]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"coupon_price",label:"优惠券面值","min-width":"90"}}),t._v(" "),n("el-table-column",{attrs:{label:"最低消费额","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(0===e.row.use_min_price?"不限制":e.row.use_min_price))])]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"有效期限","min-width":"250"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(1===e.row.coupon_type?e.row.use_start_time+" 一 "+e.row.use_end_time:e.row.coupon_time))])]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"剩余数量","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(0===e.row.is_limited?"不限量":e.row.remain_count))])]}}])}),t._v(" "),"send"===t.handle?n("el-table-column",{attrs:{label:"操作","min-width":"120",fixed:"right",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-button",{staticClass:"mr10",attrs:{type:"text",size:"small"},on:{click:function(n){return t.send(e.row.id)}}},[t._v("发送")])]}}],null,!1,2106495788)}):t._e()],1),t._v(" "),n("div",{staticClass:"block mb20"},[n("el-pagination",{attrs:{"page-sizes":[2,20,30,40],"page-size":t.tableFrom.limit,"current-page":t.tableFrom.page,layout:"total, sizes, prev, pager, next, jumper",total:t.tableData.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1),t._v(" "),n("div",[n("el-button",{staticClass:"fr",attrs:{size:"small",type:"primary"},on:{click:t.ok}},[t._v("确定")]),t._v(" "),n("el-button",{staticClass:"fr mr20",attrs:{size:"small"},on:{click:t.close}},[t._v("取消")])],1)],1)},ht=[],mt=n("ade3"),ft=n("b7be"),pt=n("83d6"),gt=(M={name:"CouponList",props:{handle:{type:String,default:""},couponId:{type:Array,default:function(){return[]}},keyNum:{type:Number,default:0},couponData:{type:Array,default:function(){return[]}}},data:function(){return{roterPre:pt["roterPre"],listLoading:!0,tableData:{data:[],total:0},tableFrom:{page:1,limit:2,coupon_name:"",send_type:3},multipleSelection:[],attr:[],multipleSelectionAll:[],idKey:"coupon_id",nextPageFlag:!1}},watch:{keyNum:{deep:!0,handler:function(t){this.getList()}}},mounted:function(){this.tableFrom.page=1,this.getList(),this.multipleSelectionAll=this.couponData}},Object(mt["a"])(M,"watch",{couponData:{deep:!0,handler:function(t){this.multipleSelectionAll=this.couponData,this.getList()}}}),Object(mt["a"])(M,"methods",{close:function(){this.$msgbox.close(),this.multipleSelection=[]},handleSelectionChange:function(t){var e=this;this.multipleSelection=t,setTimeout((function(){e.changePageCoreRecordData()}),50)},setSelectRow:function(){if(this.multipleSelectionAll&&!(this.multipleSelectionAll.length<=0)){var t=this.idKey,e=[];this.multipleSelectionAll.forEach((function(n){e.push(n[t])})),this.$refs.table.clearSelection();for(var n=0;n=0&&this.$refs.table.toggleRowSelection(this.tableData.data[n],!0)}},changePageCoreRecordData:function(){var t=this.idKey,e=this;if(this.multipleSelectionAll.length<=0)this.multipleSelectionAll=this.multipleSelection;else{var n=[];this.multipleSelectionAll.forEach((function(e){n.push(e[t])}));var i=[];this.multipleSelection.forEach((function(a){i.push(a[t]),n.indexOf(a[t])<0&&e.multipleSelectionAll.push(a)}));var a=[];this.tableData.data.forEach((function(e){i.indexOf(e[t])<0&&a.push(e[t])})),a.forEach((function(i){if(n.indexOf(i)>=0)for(var a=0;a0?(this.$emit("getCouponId",this.multipleSelectionAll),this.close()):this.$message.warning("请先选择优惠劵")},getList:function(){var t=this;this.listLoading=!0,Object(ft["F"])(this.tableFrom).then((function(e){t.tableData.data=e.data.list,t.tableData.total=e.data.count,t.listLoading=!1,t.$nextTick((function(){this.setSelectRow()}))})).catch((function(e){t.listLoading=!1,t.$message.error(e.message)}))},pageChange:function(t){this.changePageCoreRecordData(),this.tableFrom.page=t,this.getList()},handleSizeChange:function(t){this.changePageCoreRecordData(),this.tableFrom.limit=t,this.getList()}}),M),bt=gt,vt=(n("55d1"),Object(v["a"])(bt,dt,ht,!1,null,"34dbe50b",null)),At=vt.exports,wt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.isExternal?n("div",t._g({staticClass:"svg-external-icon svg-icon",style:t.styleExternalIcon},t.$listeners)):n("svg",t._g({class:t.svgClass,attrs:{"aria-hidden":"true"}},t.$listeners),[n("use",{attrs:{"xlink:href":t.iconName}})])},yt=[],kt=n("61f7"),Ct={name:"SvgIcon",props:{iconClass:{type:String,required:!0},className:{type:String,default:""}},computed:{isExternal:function(){return Object(kt["b"])(this.iconClass)},iconName:function(){return"#icon-".concat(this.iconClass)},svgClass:function(){return this.className?"svg-icon "+this.className:"svg-icon"},styleExternalIcon:function(){return{mask:"url(".concat(this.iconClass,") no-repeat 50% 50%"),"-webkit-mask":"url(".concat(this.iconClass,") no-repeat 50% 50%")}}}},Et=Ct,jt=(n("cf1c"),Object(v["a"])(Et,wt,yt,!1,null,"61194e00",null)),It=jt.exports;a["default"].component("svg-icon",It);var xt=n("51ff"),St=function(t){return t.keys().map(t)};St(xt);var Ot=n("323e"),Rt=n.n(Ot),_t=(n("a5d8"),n("5f87")),Mt=n("bbcc"),Dt=Mt["a"].title;function zt(t){return t?"".concat(t," - ").concat(Dt):"".concat(Dt)}var Vt=n("c24f");Rt.a.configure({showSpinner:!1});var Bt=["".concat(pt["roterPre"],"/login"),"/auth-redirect"];k["c"].beforeEach(function(){var t=Object(X["a"])(Object(q["a"])().mark((function t(e,n,i){var a,r;return Object(q["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(a=y["a"].getters.isEdit,!a){t.next=5;break}c["MessageBox"].confirm("离开该编辑页面,已编辑信息会丢失,请问您确认离开吗?","提示",{confirmButtonText:"离开",cancelButtonText:"不离开",confirmButtonClass:"btnTrue",cancelButtonClass:"btnFalse",type:"warning"}).then((function(){y["a"].dispatch("settings/setEdit",!1),Rt.a.start(),document.title=zt(e.meta.title);var t=Object(_t["a"])();t?e.path==="".concat(pt["roterPre"],"/login")?(i({path:"/"}),Rt.a.done()):"/"===n.fullPath&&n.path!=="".concat(pt["roterPre"],"/login")?Object(Vt["h"])().then((function(t){i()})).catch((function(t){i()})):i():-1!==Bt.indexOf(e.path)?i():(i("".concat(pt["roterPre"],"/login?redirect=").concat(e.path)),Rt.a.done())})),t.next=21;break;case 5:if(Rt.a.start(),document.title=zt(e.meta.title),r=Object(_t["a"])(),!r){t.next=12;break}e.path==="".concat(pt["roterPre"],"/login")?(i({path:"/"}),Rt.a.done()):"/"===n.fullPath&&n.path!=="".concat(pt["roterPre"],"/login")?Object(Vt["h"])().then((function(t){i()})).catch((function(t){i()})):i(),t.next=20;break;case 12:if(-1===Bt.indexOf(e.path)){t.next=16;break}i(),t.next=20;break;case 16:return t.next=18,y["a"].dispatch("user/resetToken");case 18:i("".concat(pt["roterPre"],"/login?redirect=").concat(e.path)),Rt.a.done();case 20:y["a"].dispatch("settings/setEdit",!1);case 21:case"end":return t.stop()}}),t)})));return function(e,n,i){return t.apply(this,arguments)}}()),k["c"].afterEach((function(){Rt.a.done()}));var Ft,Lt=n("7212"),Nt=n.n(Lt),Tt=(n("dfa4"),n("5530")),Qt=n("0c6d"),Pt=1,Ht=function(){return++Pt};function Ut(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=this.$createElement;return new Promise((function(r){t.then((function(t){var o=t.data;o.config.submitBtn=!1,o.config.resetBtn=!1,o.config.form||(o.config.form={}),o.config.formData||(o.config.formData={}),o.config.formData=Object(Tt["a"])(Object(Tt["a"])({},o.config.formData),n.formData),o.config.form.labelWidth="120px",o.config.global={upload:{props:{onSuccess:function(t,e){200===t.status&&(e.url=t.data.src)}}}},o=a["default"].observable(o),e.$msgbox({title:o.title,customClass:n.class||"modal-form",message:i("div",{class:"common-form-create",key:Ht()},[i("formCreate",{props:{rule:o.rule,option:o.config},on:{mounted:function(t){Ft=t}}})]),beforeClose:function(t,n,i){var a=function(){setTimeout((function(){n.confirmButtonLoading=!1}),500)};"confirm"===t?(n.confirmButtonLoading=!0,Ft.submit((function(t){Qt["a"][o.method.toLowerCase()](o.api,t).then((function(t){i(),e.$message.success(t.message||"提交成功"),r(t)})).catch((function(t){e.$message.error(t.message||"提交失败")})).finally((function(){a()}))}),(function(){return a()}))):(a(),i())}})})).catch((function(t){e.$message.error(t.message)}))}))}function Gt(t,e){var n=this,i=this.$createElement;return new Promise((function(a,r){n.$msgbox({title:"属性规格",customClass:"upload-form",closeOnClickModal:!1,showClose:!1,message:i("div",{class:"common-form-upload"},[i("attrFrom",{props:{currentRow:t},on:{getList:function(){e()}}})]),showCancelButton:!1,showConfirmButton:!1}).then((function(){a()})).catch((function(){r(),n.$message({type:"info",message:"已取消"})}))}))}function Wt(t,e,n){var i=this,a=this.$createElement;return new Promise((function(r,o){i.$msgbox({title:"运费模板",customClass:"upload-form-temp",closeOnClickModal:!1,showClose:!1,message:a("div",{class:"common-form-upload"},[a("templatesFrom",{props:{tempId:t,componentKey:n},on:{getList:function(){e()}}})]),showCancelButton:!1,showConfirmButton:!1}).then((function(){r()})).catch((function(){o(),i.$message({type:"info",message:"已取消"})}))}))}n("a481");var Zt=n("cea2"),Yt=n("40b3"),Jt=n.n(Yt),qt=n("bc3a"),Xt=n.n(qt),Kt=function(t,e,i,a,r,o,c,s){var u=n("3452"),l="/".concat(c,"/").concat(s),d=t+"\n"+a+"\n"+r+"\n"+o+"\n"+l,h=u.HmacSHA1(d,i);return h=u.enc.Base64.stringify(h),"UCloud "+e+":"+h},$t={videoUpload:function(t){return"COS"===t.type?this.cosUpload(t.evfile,t.res.data,t.uploading):"OSS"===t.type?this.ossHttp(t.evfile,t.res,t.uploading):"local"===t.type?this.uploadMp4ToLocal(t.evfile,t.res,t.uploading):"OBS"===t.type?this.obsHttp(t.evfile,t.res,t.uploading):"US3"===t.type?this.us3Http(t.evfile,t.res,t.uploading):this.qiniuHttp(t.evfile,t.res,t.uploading)},cosUpload:function(t,e,n){var i=new Jt.a({getAuthorization:function(t,n){n({TmpSecretId:e.credentials.tmpSecretId,TmpSecretKey:e.credentials.tmpSecretKey,XCosSecurityToken:e.credentials.sessionToken,ExpiredTime:e.expiredTime})}}),a=t.target.files[0],r=a.name,o=r.lastIndexOf("."),c="";-1!==o&&(c=r.substring(o));var s=(new Date).getTime()+c;return new Promise((function(t,r){i.sliceUploadFile({Bucket:e.bucket,Region:e.region,Key:s,Body:a,onProgress:function(t){n(t)}},(function(n,i){n?r({msg:n}):t({url:e.cdn?e.cdn+s:"http://"+i.Location,ETag:i.ETag})}))}))},obsHttp:function(t,e,n){var i=t.target.files[0],a=i.name,r=a.lastIndexOf("."),o="";-1!==r&&(o=a.substring(r));var c=(new Date).getTime()+o,s=new FormData,u=e.data;s.append("key",c),s.append("AccessKeyId",u.accessid),s.append("policy",u.policy),s.append("signature",u.signature),s.append("file",i),s.append("success_action_status",200);var l=u.host,d=l+"/"+c;return n(!0,100),new Promise((function(t,e){Xt.a.defaults.withCredentials=!1,Xt.a.post(l,s).then((function(){n(!1,0),t({url:u.cdn?u.cdn+"/"+c:d})})).catch((function(t){e({msg:t})}))}))},us3Http:function(t,e,n){var i=t.target.files[0],a=i.name,r=a.lastIndexOf("."),o="";-1!==r&&(o=a.substring(r));var c=(new Date).getTime()+o,s=e.data,u=Kt("PUT",s.accessid,s.secretKey,"",i.type,"",s.storageName,c);return new Promise((function(t,e){Xt.a.defaults.withCredentials=!1;var a="https://".concat(s.storageName,".cn-bj.ufileos.com/").concat(c);Xt.a.put(a,i,{headers:{Authorization:u,"content-type":i.type}}).then((function(e){n(!1,0),t({url:s.cdn?s.cdn+"/"+c:a})})).catch((function(t){e({msg:t})}))}))},cosHttp:function(t,e,n){var i=function(t){return encodeURIComponent(t).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A")},a=t.target.files[0],r=a.name,o=r.lastIndexOf("."),c="";-1!==o&&(c=r.substring(o));var s=(new Date).getTime()+c,u=e.data,l=u.credentials.sessionToken,d=u.url+i(s).replace(/%2F/g,"/"),h=new XMLHttpRequest;return h.open("PUT",d,!0),l&&h.setRequestHeader("x-cos-security-token",l),h.upload.onprogress=function(t){var e=Math.round(t.loaded/t.total*1e4)/100;n(!0,e)},new Promise((function(t,e){h.onload=function(){if(/^2\d\d$/.test(""+h.status)){var a=h.getResponseHeader("etag");n(!1,0),t({url:u.cdn?u.cdn+i(s).replace(/%2F/g,"/"):d,ETag:a})}else e({msg:"文件 "+s+" 上传失败,状态码:"+h.statu})},h.onerror=function(){e({msg:"文件 "+s+"上传失败,请检查是否没配置 CORS 跨域规"})},h.send(a),h.onreadystatechange=function(){}}))},ossHttp:function(t,e,n){var i=t.target.files[0],a=i.name,r=a.lastIndexOf("."),o="";-1!==r&&(o=a.substring(r));var c=(new Date).getTime()+o,s=new FormData,u=e.data;s.append("key",c),s.append("OSSAccessKeyId",u.accessid),s.append("policy",u.policy),s.append("Signature",u.signature),s.append("file",i),s.append("success_action_status",200);var l=u.host,d=l+"/"+c;return n(!0,100),new Promise((function(t,e){Xt.a.defaults.withCredentials=!1,Xt.a.post(l,s).then((function(){n(!1,0),t({url:u.cdn?u.cdn+"/"+c:d})})).catch((function(t){e({msg:t})}))}))},qiniuHttp:function(t,e,n){var i=e.data.token,a=t.target.files[0],r=a.name,o=r.lastIndexOf("."),c="";-1!==o&&(c=r.substring(o));var s=(new Date).getTime()+c,u=e.data.domain+"/"+s,l={useCdnDomain:!0},d={fname:"",params:{},mimeType:null},h=Zt["upload"](a,s,i,d,l);return new Promise((function(t,i){h.subscribe({next:function(t){var e=Math.round(t.total.loaded/t.total.size);n(!0,e)},error:function(t){i({msg:t})},complete:function(i){n(!1,0),t({url:e.data.cdn?e.data.cdn+"/"+s:u})}})}))},uploadMp4ToLocal:function(t,e,n){var i=t.target.files[0],a=new FormData;return a.append("file",i),n(!0,100),Object(N["Tb"])(a)}};function te(t,e,n,i,a){var r=this,o=this.$createElement;return new Promise((function(c,s){r.$msgbox({title:"优惠券列表",customClass:"upload-form-coupon",closeOnClickModal:!1,showClose:!1,message:o("div",{class:"common-form-upload"},[o("couponList",{props:{couponData:t,handle:e,couponId:n,keyNum:i},on:{getCouponId:function(t){a(t)}}})]),showCancelButton:!1,showConfirmButton:!1}).then((function(){c()})).catch((function(){s(),r.$message({type:"info",message:"已取消"})}))}))}function ee(t){var e=this;return new Promise((function(n,i){e.$confirm("确定".concat(t||"删除该条数据吗","?"),"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){n()})).catch((function(){e.$message({type:"info",message:"已取消"})}))}))}function ne(t){var e=this;return new Promise((function(n,i){e.$confirm("".concat(t||"该记录删除后不可恢复,您确认删除吗","?"),"提示",{confirmButtonText:"删除",cancelButtonText:"不删除",type:"warning"}).then((function(){n()})).catch((function(t){e.$message({type:"info",message:"已取消"})}))}))}n("6b54");var ie=n("ed08");function ae(t){var e="-";return t?(e=t,e):e}function re(t){return t?"是":"否"}function oe(t){return t?"显示":"不显示"}function ce(t){return"‘0’"===t?"显示":"不显示"}function se(t){return t?"否":"是"}function ue(t){var e={0:"未支付",1:"已支付"};return e[t]}function le(t){var e={0:"余额",1:"微信",2:"微信",3:"微信",4:"支付宝",5:"支付宝"};return e[t]}function de(t){var e={0:"待发货",1:"待收货",2:"待评价",3:"已完成","-1":"已退款",9:"未成团",10:"待付尾款",11:"尾款过期未付"};return e[t]}function he(t){var e={"-1":"未完成",10:"已完成",0:"进行中"};return e[t]}function me(t){var e={0:"待核销",2:"待评价",3:"已完成","-1":"已退款",10:"待付尾款",11:"尾款过期未付"};return e[t]}function fe(t){var e={0:"余额支付",1:"微信支付",2:"小程序",3:"微信支付",4:"支付宝",5:"支付宝扫码",6:"微信扫码"};return e[t]}function pe(t){var e={0:"待核销",1:"待提货",2:"待评价",3:"已完成","-1":"已退款",9:"未成团",10:"待付尾款",11:"尾款过期未付"};return e[t]}function ge(t){var e={0:"待审核","-1":"审核未通过",1:"待退货",2:"待收货",3:"已退款"};return e[t]}function be(t){var e={0:"未转账",1:"已转账"};return e[t]}function ve(t){return t>0?"已对账":"未对账"}function Ae(t){var e={0:"未确认",1:"已拒绝",2:"已确认"};return e[t]}function we(t){var e={0:"下架",1:"上架显示","-1":"平台关闭"};return e[t]}function ye(t){var e={0:"店铺券",1:"商品券"};return e[t]}function ke(t){var e={0:"领取",1:"赠送券",2:"新人券",3:"赠送券"};return e[t]}function Ce(t){var e={101:"直播中",102:"未开始",103:"已结束",104:"禁播",105:"暂停",106:"异常",107:"已过期"};return e[t]}function Ee(t){var e={0:"未审核",1:"微信审核中",2:"审核通过","-1":"审核未通过"};return e[t]}function je(t){var e={0:"手机直播",1:"推流"};return e[t]}function Ie(t){var e={0:"竖屏",1:"横屏"};return e[t]}function xe(t){return t?"✔":"✖"}function Se(t){var e={0:"正在导出,请稍后再来",1:"完成",2:"失败"};return e[t]}function Oe(t){var e={mer_accoubts:"财务对账",refund_order:"退款订单",brokerage_one:"一级分佣",brokerage_two:"二级分佣",refund_brokerage_one:"返还一级分佣",refund_brokerage_two:"返还二级分佣",order:"订单支付",commission_to_platform:"剩余平台手续费",commission_to_service_team:"订单平台佣金",commission_to_village:"订单平台佣金",commission_to_town:"订单平台佣金",commission_to_entry_merchant:"订单平台佣金",commission_to_cloud_warehouse:"订单平台佣金",commission_to_entry_merchant_refund:"退回平台佣金",commission_to_cloud_warehouse_refund:"退回平台佣金",commission_to_platform_refund:"退回平台手续费",commission_to_service_team_refund:"退回平台佣金",commission_to_village_refund:"退回平台佣金",commission_to_town_refund:"退回平台佣金"};return e[t]}function Re(t){var e={0:"未开始",1:"正在进行","-1":"已结束"};return e[t]}function _e(t){var e={0:"审核中",1:"审核通过","-2":"强制下架","-1":"未通过"};return e[t]}function Me(t){var e={0:"处理中",1:"成功",10:"部分完成","-1":"失败"};return e[t]}function De(t){var e={2401:"小微商户",2500:"个人卖家",4:"个体工商户",2:"企业",3:"党政、机关及事业单位",1708:"其他组织"};return e[t]}function ze(t){var e={1:"中国大陆居民-身份证",2:"其他国家或地区居民-护照",3:"中国香港居民–来往内地通行证",4:"中国澳门居民–来往内地通行证",5:"中国台湾居民–来往大陆通行证"};return e[t]}function Ve(t){var e={1:"发货",2:"送货",3:"无需物流",4:"电子面单"};return e[t]}function Be(t){var e={"-1":"已取消",0:"待接单",2:"待取货",3:"配送中",4:"已完成",9:"物品返回中",10:"物品返回完成",100:"骑士到店"};return e[t]}function Fe(t,e){return 1===t?t+e:t+e+"s"}function Le(t){var e=Date.now()/1e3-Number(t);return e<3600?Fe(~~(e/60)," minute"):e<86400?Fe(~~(e/3600)," hour"):Fe(~~(e/86400)," day")}function Ne(t,e){for(var n=[{value:1e18,symbol:"E"},{value:1e15,symbol:"P"},{value:1e12,symbol:"T"},{value:1e9,symbol:"G"},{value:1e6,symbol:"M"},{value:1e3,symbol:"k"}],i=0;i=n[i].value)return(t/n[i].value).toFixed(e).replace(/\.0+$|(\.[0-9]*[1-9])0+$/,"$1")+n[i].symbol;return t.toString()}function Te(t){return(+t||0).toString().replace(/^-?\d+/g,(function(t){return t.replace(/(?=(?!\b)(\d{3})+$)/g,",")}))}function Qe(t){return t.charAt(0).toUpperCase()+t.slice(1)}var Pe=n("6618");a["default"].use(z),a["default"].use(E.a),a["default"].use(Nt.a),a["default"].use(m["a"],{preLoad:1.3,error:n("4fb4"),loading:n("7153"),attempt:1,listenEvents:["scroll","wheel","mousewheel","resize","animationend","transitionend","touchmove"]}),a["default"].component("vue-ueditor-wrap",B.a),a["default"].component("attrFrom",H),a["default"].component("templatesFrom",lt),a["default"].component("couponList",At),a["default"].prototype.$modalForm=Ut,a["default"].prototype.$modalSure=ee,a["default"].prototype.$videoCloud=$t,a["default"].prototype.$modalSureDelete=ne,a["default"].prototype.$modalAttr=Gt,a["default"].prototype.$modalTemplates=Wt,a["default"].prototype.$modalCoupon=te,a["default"].prototype.moment=l.a,a["default"].use(s.a,{size:o.a.get("size")||"medium"}),a["default"].use(h.a),Object.keys(i).forEach((function(t){a["default"].filter(t,i[t])}));var He=He||[];(function(){var t=document.createElement("script");t.src="https://cdn.oss.9gt.net/js/es.js?version=merchantv2.0";var e=document.getElementsByTagName("script")[0];e.parentNode.insertBefore(t,e)})(),k["c"].beforeEach((function(t,e,n){He&&t.path&&He.push(["_trackPageview","/#"+t.fullPath]),t.meta.title&&(document.title=t.meta.title+"-"+JSON.parse(o.a.get("MerInfo")).login_title),n()}));var Ue,Ge=Object(_t["a"])();Ge&&(Ue=Object(Pe["a"])(Ge)),a["default"].config.productionTip=!1;e["default"]=new a["default"]({el:"#app",data:{notice:Ue},methods:{closeNotice:function(){this.notice&&this.notice()}},router:k["c"],store:y["a"],render:function(t){return t(w)}})},5946:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFEAAABRCAYAAACqj0o2AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA25pVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5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e4Bc6A+bBK1sMsBWqYdA59BnxsHs8Cly0jP3R77OXfbpKyMyCWeCrLEFinobSq4OSd9bAmaRF24h72eWhgkJX0ddmLQcUKiLthfQL8KX/qlVh73S6IlqwPjTvicOhm9e+0OOnYl6ltQE7I6SKrwR7+HURkQK72Q2C4rjzMqemmz8962I3EXeCZHq0JFN/tV9obvg3yvsnwlNsnE+ZKKT65Iva91QmKfLN3SKn6pl5PnoonEEplLFan4Rs8jx3I9IbHFDlbAK5W9pWRt8gLJiMhaA783eFx/lXjcRKJOZ45tt8GtiEh8KnUwEDcgYhdKpERKpESGEimREimRoURKpERKZCjR9SQC0o97Kvu5hp3or9Fdp0SllsCMzbaHeTmzJjKUSImUSIkMJVIiJVIiQ4mUSImUyFAiJVIiJeadPw71Y9Wntv/ml92Gph8PPFfZHxvuNdjHMnhj0F631X8Lc8hQ4Kjdxhb/Ipo1kRIpkaFESqRESmQokRIDm3UBBgBHwWAbFrIgUwAAAABJRU5ErkJggg=="},"5bdf":function(t,e,n){"use strict";n("7091")},"5f87":function(t,e,n){"use strict";n.d(e,"a",(function(){return c})),n.d(e,"c",(function(){return s})),n.d(e,"b",(function(){return u}));var i=n("a78e"),a=n.n(i),r=n("56d7"),o="merchantToken";function c(){return a.a.get(o)}function s(t){return a.a.set(o,t)}function u(){return r["default"]&&r["default"].closeNotice(),a.a.remove(o)}},6082:function(t,e,n){},"61d3":function(t,e,n){"use strict";n("6082")},"61f7":function(t,e,n){"use strict";n.d(e,"b",(function(){return i}));n("6b54");function i(t){return/^(https?:|mailto:|tel:)/.test(t)}},6244:function(t,e,n){"use strict";n("8201")},"641c":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFEAAABRCAYAAACqj0o2AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA25pVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ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gBiBAJkRAJkSJEQiREQqR8nVjCEk47C9HcCvhta3DqeFQ0EPXe4wuhHi5nQiREBktIkr9n1HjsK6E0hhD/Vxbpet9jume5nLknUoRIiIRIiBQhEiIhEiJFiIRIiEWjMJ7iVNu23e6hX3kI927Evdd4GWPSIVZY5h9EhqlaLmfuiYToV0F/3bg3pL5e9CGuPVF+YCj/FKgsgCJ+WL++H+5VDXAdXBoQwJN+L07xX0RzTyREQqQIkRAJkRApQiTExOqnAAMAXR2Kua55/NAAAAAASUVORK5CYII="},6599:function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-excel",use:"icon-excel-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},6618:function(t,e,n){"use strict";var i=n("bbcc"),a=n("5c96"),r=n.n(a),o=n("a18c"),c=n("83d6"),s=n("2b0e");function u(t){t.$on("notice",(function(t){this.$notify.info({title:t.title||"消息",message:t.message,duration:5e3,onClick:function(){console.log("click")}})}))}function l(t){return new WebSocket("".concat(i["a"].wsSocketUrl,"?type=mer&token=").concat(t))}function d(t){var e,n=l(t),i=new s["default"];function a(t,e){n.send(JSON.stringify({type:t,data:e}))}return n.onopen=function(){i.$emit("open"),e=setInterval((function(){a("ping")}),1e4)},n.onmessage=function(t){i.$emit("message",t);var e=JSON.parse(t.data);if(200===e.status&&i.$emit(e.data.status,e.data.result),"notice"===e.type){var n=i.$createElement;r.a.Notification({title:e.data.data.title,message:n("a",{style:"color: teal"},e.data.data.message),onClick:function(){"min_stock"===e.data.type||"product"===e.data.type?o["c"].push({path:"".concat(c["roterPre"],"/product/list")}):"reply"===e.data.type?o["c"].push({path:"".concat(c["roterPre"],"/product/reviews")}):"product_success"===e.data.type?o["c"].push({path:"".concat(c["roterPre"],"/product/list?id=")+e.data.data.id+"&type=2"}):"product_fail"===e.data.type?o["c"].push({path:"".concat(c["roterPre"],"/product/list?id=")+e.data.data.id+"&type=7"}):"product_seckill_success"===e.data.type?o["c"].push({path:"".concat(c["roterPre"],"/marketing/seckill/list?id=")+e.data.data.id+"&type=2"}):"product_seckill_fail"===e.data.type?o["c"].push({path:"".concat(c["roterPre"],"/marketing/seckill/list?id=")+e.data.data.id+"&type=7"}):"new_order"===e.data.type?o["c"].push({path:"".concat(c["roterPre"],"/order/list?id=")+e.data.data.id}):"new_refund_order"===e.data.type?o["c"].push({path:"".concat(c["roterPre"],"/order/refund?id=")+e.data.data.id}):"product_presell_success"===e.data.type?o["c"].push({path:"".concat(c["roterPre"],"/marketing/presell/list?id=")+e.data.data.id+"&type="+e.data.data.type+"&status=1"}):"product_presell_fail"===e.data.type?o["c"].push({path:"".concat(c["roterPre"],"/marketing/presell/list?id=")+e.data.data.id+"&type="+e.data.data.type+"&status=-1"}):"product_group_success"===e.data.type?o["c"].push({path:"".concat(c["roterPre"],"/marketing/combination/combination_goods?id=")+e.data.data.id+"&status=1"}):"product_group_fail"===e.data.type?o["c"].push({path:"".concat(c["roterPre"],"/marketing/combination/combination_goods?id=")+e.data.data.id+"&status=-1"}):"product_assist_success"===e.data.type?o["c"].push({path:"".concat(c["roterPre"],"/marketing/assist/list?id=")+e.data.data.id+"&status=1"}):"product_assist_fail"===e.data.type?o["c"].push({path:"".concat(c["roterPre"],"/marketing/assist/list?id=")+e.data.data.id+"&status=-1"}):"broadcast_status_success"===e.data.type?o["c"].push({path:"".concat(c["roterPre"],"/marketing/studio/list?id=")+e.data.data.id+"&status=1"}):"broadcast_status_fail"===e.data.type?o["c"].push({path:"".concat(c["roterPre"],"/marketing/studio/list?id=")+e.data.data.id+"&status=-1"}):"goods_status_success"===e.data.type?o["c"].push({path:"".concat(c["roterPre"],"/marketing/broadcast/list?id=")+e.data.data.id+"&status=1"}):"goods_status_fail"===e.data.type&&o["c"].push({path:"".concat(c["roterPre"],"/marketing/broadcast/list?id=")+e.data.data.id+"&status=-1"})}})}},n.onclose=function(t){i.$emit("close",t),clearInterval(e)},u(i),function(){n.close()}}e["a"]=d},6683:function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-guide",use:"icon-guide-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},"678b":function(t,e,n){"use strict";n("432f")},"708a":function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-star",use:"icon-star-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},7091:function(t,e,n){},"711b":function(t,e,n){"use strict";n("f677")},7153:function(t,e){t.exports="data:image/jpeg;base64,/9j/4QAYRXhpZgAASUkqAAgAAAAAAAAAAAAAAP/sABFEdWNreQABAAQAAABkAAD/4QMuaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLwA8P3hwYWNrZXQgYmVnaW49Iu+7vyIgaWQ9Ilc1TTBNcENlaGlIenJlU3pOVGN6a2M5ZCI/PiA8eDp4bXBtZXRhIHhtbG5zOng9ImFkb2JlOm5zOm1ldGEvIiB4OnhtcHRrPSJBZG9iZSBYTVAgQ29yZSA1LjYtYzE0OCA3OS4xNjQwMzYsIDIwMTkvMDgvMTMtMDE6MDY6NTcgICAgICAgICI+IDxyZGY6UkRGIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyI+IDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiIHhtbG5zOnhtcD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLyIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bXA6Q3JlYXRvclRvb2w9IkFkb2JlIFBob3Rvc2hvcCAyMS4wIChNYWNpbnRvc2gpIiB4bXBNTTpJ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gzsgLnniSQ1ASrBrAXgBI15/8KV2pfKHRiEC0lo0mzSXxkHvMJt0dDg1mWOKc9rKADENcbpAdC/nMgGi6cCyG/oQWhQAFilXkzzbsQRVOCXbsiaKCMTAB5bYxHusnXhvsIZ+LPQReglan+pRZQo20DHtLuhqa+inxC+hZ/D5D1jvnW3jaYdCP2co1VyOQDfiQaKGAc5Gcxuar7m8D59/nHtgORoHIEkYesAwQHrOK3EAkhzDmFK2a6J9zrstwbAajDO5tKyEJip27OEcWKiinegHklTlyTNoQ0maxvgG0WnRdcCgDT9Nfr4XEKlG9yXBmB4s7L0GbehwMKadLUS7/H8owbCDhm14bI387iHN1CPck+0TUEoh1HyB3j44iIe84IENWyz9O0HkJethw4tAFCAQgQvtlIbqjOS+dTD+jZe7C9hQZqdblHjTaWMtbOhzU4AIyf+zLXtngSgQRQSiQBSIAlFEIJqRfwIMABiyUOLFGxshAAAAAElFTkSuQmCC"},7509:function(t,e,n){"use strict";n.r(e);var i=n("2909"),a=n("3835"),r=(n("ac6a"),n("b85c")),o=(n("7f7f"),n("6762"),n("2fdb"),{visitedViews:[],cachedViews:[]}),c={ADD_VISITED_VIEW:function(t,e){t.visitedViews.some((function(t){return t.path===e.path}))||t.visitedViews.push(Object.assign({},e,{title:e.meta.title||"no-name"}))},ADD_CACHED_VIEW:function(t,e){t.cachedViews.includes(e.name)||e.meta.noCache||t.cachedViews.push(e.name)},DEL_VISITED_VIEW:function(t,e){var n,i=Object(r["a"])(t.visitedViews.entries());try{for(i.s();!(n=i.n()).done;){var o=Object(a["a"])(n.value,2),c=o[0],s=o[1];if(s.path===e.path){t.visitedViews.splice(c,1);break}}}catch(u){i.e(u)}finally{i.f()}},DEL_CACHED_VIEW:function(t,e){var n=t.cachedViews.indexOf(e.name);n>-1&&t.cachedViews.splice(n,1)},DEL_OTHERS_VISITED_VIEWS:function(t,e){t.visitedViews=t.visitedViews.filter((function(t){return t.meta.affix||t.path===e.path}))},DEL_OTHERS_CACHED_VIEWS:function(t,e){var n=t.cachedViews.indexOf(e.name);t.cachedViews=n>-1?t.cachedViews.slice(n,n+1):[]},DEL_ALL_VISITED_VIEWS:function(t){var e=t.visitedViews.filter((function(t){return t.meta.affix}));t.visitedViews=e},DEL_ALL_CACHED_VIEWS:function(t){t.cachedViews=[]},UPDATE_VISITED_VIEW:function(t,e){var n,i=Object(r["a"])(t.visitedViews);try{for(i.s();!(n=i.n()).done;){var a=n.value;if(a.path===e.path){a=Object.assign(a,e);break}}}catch(o){i.e(o)}finally{i.f()}}},s={addView:function(t,e){var n=t.dispatch;n("addVisitedView",e),n("addCachedView",e)},addVisitedView:function(t,e){var n=t.commit;n("ADD_VISITED_VIEW",e)},addCachedView:function(t,e){var n=t.commit;n("ADD_CACHED_VIEW",e)},delView:function(t,e){var n=t.dispatch,a=t.state;return new Promise((function(t){n("delVisitedView",e),n("delCachedView",e),t({visitedViews:Object(i["a"])(a.visitedViews),cachedViews:Object(i["a"])(a.cachedViews)})}))},delVisitedView:function(t,e){var n=t.commit,a=t.state;return new Promise((function(t){n("DEL_VISITED_VIEW",e),t(Object(i["a"])(a.visitedViews))}))},delCachedView:function(t,e){var n=t.commit,a=t.state;return new Promise((function(t){n("DEL_CACHED_VIEW",e),t(Object(i["a"])(a.cachedViews))}))},delOthersViews:function(t,e){var n=t.dispatch,a=t.state;return new Promise((function(t){n("delOthersVisitedViews",e),n("delOthersCachedViews",e),t({visitedViews:Object(i["a"])(a.visitedViews),cachedViews:Object(i["a"])(a.cachedViews)})}))},delOthersVisitedViews:function(t,e){var n=t.commit,a=t.state;return new Promise((function(t){n("DEL_OTHERS_VISITED_VIEWS",e),t(Object(i["a"])(a.visitedViews))}))},delOthersCachedViews:function(t,e){var n=t.commit,a=t.state;return new Promise((function(t){n("DEL_OTHERS_CACHED_VIEWS",e),t(Object(i["a"])(a.cachedViews))}))},delAllViews:function(t,e){var n=t.dispatch,a=t.state;return new Promise((function(t){n("delAllVisitedViews",e),n("delAllCachedViews",e),t({visitedViews:Object(i["a"])(a.visitedViews),cachedViews:Object(i["a"])(a.cachedViews)})}))},delAllVisitedViews:function(t){var e=t.commit,n=t.state;return new Promise((function(t){e("DEL_ALL_VISITED_VIEWS"),t(Object(i["a"])(n.visitedViews))}))},delAllCachedViews:function(t){var e=t.commit,n=t.state;return new Promise((function(t){e("DEL_ALL_CACHED_VIEWS"),t(Object(i["a"])(n.cachedViews))}))},updateVisitedView:function(t,e){var n=t.commit;n("UPDATE_VISITED_VIEW",e)}};e["default"]={namespaced:!0,state:o,mutations:c,actions:s}},"75d9":function(t,e,n){},7680:function(t,e,n){},"770f":function(t,e,n){},"7b72":function(t,e,n){},"80da":function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-wechat",use:"icon-wechat-usage",viewBox:"0 0 128 110",content:''});o.a.add(c);e["default"]=c},8201:function(t,e,n){},"83d6":function(t,e){t.exports={roterPre:"/merchant",title:"加载中...",showSettings:!0,tagsView:!0,fixedHeader:!1,sidebarLogo:!0,errorLog:"production"}},8544:function(t,e,n){},8593:function(t,e,n){"use strict";n.d(e,"u",(function(){return a})),n.d(e,"n",(function(){return r})),n.d(e,"K",(function(){return o})),n.d(e,"t",(function(){return c})),n.d(e,"s",(function(){return s})),n.d(e,"m",(function(){return u})),n.d(e,"J",(function(){return l})),n.d(e,"r",(function(){return d})),n.d(e,"o",(function(){return h})),n.d(e,"q",(function(){return m})),n.d(e,"g",(function(){return f})),n.d(e,"j",(function(){return p})),n.d(e,"x",(function(){return g})),n.d(e,"h",(function(){return b})),n.d(e,"i",(function(){return v})),n.d(e,"w",(function(){return A})),n.d(e,"k",(function(){return w})),n.d(e,"A",(function(){return y})),n.d(e,"F",(function(){return k})),n.d(e,"C",(function(){return C})),n.d(e,"E",(function(){return E})),n.d(e,"B",(function(){return j})),n.d(e,"L",(function(){return I})),n.d(e,"y",(function(){return x})),n.d(e,"z",(function(){return S})),n.d(e,"D",(function(){return O})),n.d(e,"G",(function(){return R})),n.d(e,"H",(function(){return _})),n.d(e,"l",(function(){return M})),n.d(e,"e",(function(){return D})),n.d(e,"I",(function(){return z})),n.d(e,"f",(function(){return V})),n.d(e,"p",(function(){return B})),n.d(e,"a",(function(){return F})),n.d(e,"v",(function(){return L})),n.d(e,"b",(function(){return N})),n.d(e,"c",(function(){return T})),n.d(e,"d",(function(){return Q}));var i=n("0c6d");function a(t,e){return i["a"].get("group/lst",{page:t,limit:e})}function r(){return i["a"].get("group/create/table")}function o(t){return i["a"].get("group/update/table/"+t)}function c(t){return i["a"].get("group/detail/"+t)}function s(t,e,n){return i["a"].get("group/data/lst/"+t,{page:e,limit:n})}function u(t){return i["a"].get("group/data/create/table/"+t)}function l(t,e){return i["a"].get("group/data/update/table/".concat(t,"/").concat(e))}function d(t,e){return i["a"].post("/group/data/status/".concat(t),{status:e})}function h(t){return i["a"].delete("group/data/delete/"+t)}function m(){return i["a"].get("system/attachment/category/formatLst")}function f(){return i["a"].get("system/attachment/category/create/form")}function p(t){return i["a"].get("system/attachment/category/update/form/".concat(t))}function g(t,e){return i["a"].post("system/attachment/update/".concat(t,".html"),e)}function b(t){return i["a"].delete("system/attachment/category/delete/".concat(t))}function v(t){return i["a"].get("system/attachment/lst",t)}function A(t){return i["a"].delete("system/attachment/delete",t)}function w(t,e){return i["a"].post("system/attachment/category",{ids:t,attachment_category_id:e})}function y(){return i["a"].get("service/create/form")}function k(t){return i["a"].get("service/update/form/".concat(t))}function C(t){return i["a"].get("service/list",t)}function E(t,e){return i["a"].post("service/status/".concat(t),{status:e})}function j(t){return i["a"].delete("service/delete/".concat(t))}function I(t){return i["a"].get("user/lst",t)}function x(t,e){return i["a"].get("service/".concat(t,"/user"),e)}function S(t,e,n){return i["a"].get("service/".concat(t,"/").concat(e,"/lst"),n)}function O(t){return i["a"].post("service/login/"+t)}function R(t){return i["a"].get("notice/lst",t)}function _(t){return i["a"].post("notice/read/".concat(t))}function M(t){return i["a"].post("applyments/create",t)}function D(){return i["a"].get("applyments/detail")}function z(t,e){return i["a"].post("applyments/update/".concat(t),e)}function V(t){return i["a"].get("profitsharing/lst",t)}function B(t){return i["a"].get("expr/lst",t)}function F(t){return i["a"].get("expr/partner/".concat(t,"/form"))}function L(t){return i["a"].get("profitsharing/export",t)}function N(t){return i["a"].get("ajcaptcha",t)}function T(t){return i["a"].post("ajcheck",t)}function Q(t){return i["a"].post("ajstatus",t)}},8644:function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-size",use:"icon-size-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},8646:function(t,e,n){"use strict";n("770f")},"8a9d":function(t,e,n){"use strict";n.d(e,"a",(function(){return a})),n.d(e,"e",(function(){return r})),n.d(e,"b",(function(){return o})),n.d(e,"f",(function(){return c})),n.d(e,"d",(function(){return s})),n.d(e,"c",(function(){return u}));var i=n("0c6d");function a(t){return i["a"].get("v2/system/city/lst/"+t)}function r(t){return i["a"].get("store/shipping/lst",t)}function o(t){return i["a"].post("store/shipping/create",t)}function c(t,e){return i["a"].post("store/shipping/update/".concat(t),e)}function s(t){return i["a"].get("/store/shipping/detail/".concat(t))}function u(t){return i["a"].delete("store/shipping/delete/".concat(t))}},"8aa6":function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-zip",use:"icon-zip-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},"8bcc":function(t,e,n){"use strict";n("29c0")},"8e8d":function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-search",use:"icon-search-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},"8ea6":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFEAAABRCAYAAACqj0o2AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZV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Jggg=="},"8fb7":function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-tab",use:"icon-tab-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},"905e":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFEAAABRCAYAAACqj0o2AAAAAXNSR0IArs4c6QAADbRJREFUeF7tnH1wVNUVwM95bxPysV+RBBK+TPgKEQkBYRRDbWihQgWBKgoaa+yAguJIx3Zqh3aMUzva0U7o0CoolqigCDhGQRumOO6MUBgBTSGSBQKJED4MkXzsbrJJ3t7TuQuh2X1v38e+F3Da3H/33nPP+d1zv849bxH6i2kCaFpCvwDoh2iBE/RD7IdoAQELRPR7Yj9ECwhYIKLfE/9XIbavnjgUWeLoEMEwQLQhQzsIFCQASSDmB6SGZBBr8YUvvrOAgWkR190TGx+/yZ7isBcKQDMJcCYijgYAux7LiKgJEasJyCMgeZL2HdiLHpD0tLWyznWBSEVga58y5S4UhGJAmEsASZYYRdAEANuR2KaUlw7utUSmDiHXFGJdSXbS4IyMxwjgGQDI1KFfVBUj6lIVsdDLqYe+fK+vvdOIVsZtvtKCe17HLVOfIKDfAWD6Nb0nEdUCg1+llh38MG4DNBr2OcT2VVMKmUDrEPBmo0YggJ+A+BTtVXAYANiMygKASlGklUkvHToZR1vVJn0GMex9E2/5A2F46sqLvOcLQFAJENorhYRqJjJv2pqqFqWm/sdvyqTExHEiihOBoIgQigDArQmHyE/IVtrLqt7UrGugQp9A5EZiQtI2AJiuMYRNQLAFmbQ5Ze3h/Qb0jqjKByyQP3mmgPAwAS4AzY2KygPdwScHvXLUH2+fEXPDCiG9ZQSfys8NkVgJhNkqsi8gshe/bWtZn1NeH7RSBz6AQkLib4iwBABVvJPtCUhdc6wAaakntj+RfyuhWBFz5yUMAtDLjYHmP1oNL3og2h4dm25LTCkjwOJYg4QAXsY6Z9hfOXrBzEBaBjG4Ij9XEoT9SDHXp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ujiARoznumtbdRpcG00ecHgGt41w89Tg6Za7U5b3+ENtyHYUMxXWIEOODdZKIwRL3sVZTHyyZ98RcpxwiUanreNt1m87B0QNGdQoDSnlKs4p3+Rmxh9KO+1RzD/V4p3mIYzjEqOmMcF0gtoxM/bEgCCtJCH/ko/Y824RS10LnqeAePZC06piHOMqhsCZSqavW3+ee2JgB9gGpqYVgw9kEcC9C+P8h1AvRbikYemTg2Q6eOGpJMQ9xpEPmiQRUITAyN03ESPsYw2F4+eMjNwD/AyIaDag//RiJggBY6jjl+zOCtX9AZB5idmodKH3aZckYWyWEKqFbetLV0KkrlcRor+Yh3sg/pFH9vwejOl2ub1ozHgwBTwhDz6XVB/kVr8+KaVVbR4S/rjL6VUCfGcSfSxBguySxN244Z83GoaWseYhDk/tmOhvSjOoR0CMR+7S1Ibg9B/Tn3mgB0vO7IVWVBLYOSeIfB2nvinq0ia7TSztC8AuX/1ANgKAWAGtDEDomAnid57p0p7HEo4ZWG9MQtTr4f/i9H6IFo9wPsR+iBQQsENHvif0QLSBggYh+T+yHaAEBC0T0e6IFEP8D5dohnWmX6X0AAAAASUVORK5CYII="},"90fb":function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-documentation",use:"icon-documentation-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},"93cd":function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-tree",use:"icon-tree-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},"967a":function(t,e,n){"use strict";n("9796")},9796:function(t,e,n){},9921:function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-fullscreen",use:"icon-fullscreen-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},"9bbf":function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-drag",use:"icon-drag-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},"9d91":function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-icon",use:"icon-icon-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},a14a:function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-404",use:"icon-404-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},a18c:function(t,e,n){"use strict";var i,a,r=n("2b0e"),o=n("8c4f"),c=n("83d6"),s=n.n(c),u=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"app-wrapper",class:t.classObj},["mobile"===t.device&&t.sidebar.opened?n("div",{staticClass:"drawer-bg",on:{click:t.handleClickOutside}}):t._e(),t._v(" "),n("sidebar",{staticClass:"sidebar-container",class:"leftBar"+t.sidebarWidth}),t._v(" "),n("div",{staticClass:"main-container",class:["leftBar"+t.sidebarWidth,t.needTagsView?"hasTagsView":""]},[n("div",{class:{"fixed-header":t.fixedHeader}},[n("navbar"),t._v(" "),t.needTagsView?n("tags-view"):t._e()],1),t._v(" "),n("app-main")],1),t._v(" "),n("copy-right")],1)},l=[],d=n("5530"),h=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("section",{staticClass:"app-main"},[n("transition",{attrs:{name:"fade-transform",mode:"out-in"}},[n("keep-alive",{attrs:{include:t.cachedViews}},[n("router-view",{key:t.key})],1)],1)],1)},m=[],f={name:"AppMain",computed:{cachedViews:function(){return this.$store.state.tagsView.cachedViews},key:function(){return this.$route.path}}},p=f,g=(n("6244"),n("eb24"),n("2877")),b=Object(g["a"])(p,h,m,!1,null,"51b022fa",null),v=b.exports,A=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"navbar"},[n("hamburger",{staticClass:"hamburger-container",attrs:{id:"hamburger-container","is-active":t.sidebar.opened},on:{toggleClick:t.toggleSideBar}}),t._v(" "),n("breadcrumb",{staticClass:"breadcrumb-container",attrs:{id:"breadcrumb-container"}}),t._v(" "),n("div",{staticClass:"right-menu"},["mobile"!==t.device?[n("header-notice"),t._v(" "),n("search",{staticClass:"right-menu-item",attrs:{id:"header-search"}}),t._v(" "),n("screenfull",{staticClass:"right-menu-item hover-effect",attrs:{id:"screenfull"}})]:t._e(),t._v(" "),n("div",{staticClass:"platformLabel"},[t._v(t._s(t.label.mer_name))]),t._v(" "),n("el-dropdown",{staticClass:"avatar-container right-menu-item hover-effect",attrs:{trigger:"click","hide-on-click":!1}},[n("span",{staticClass:"el-dropdown-link fontSize"},[t._v("\n "+t._s(t.adminInfo)+"\n "),n("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),t._v(" "),n("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[n("el-dropdown-item",{nativeOn:{click:function(e){return t.goUser(e)}}},[n("span",{staticStyle:{display:"block"}},[t._v("个人中心")])]),t._v(" "),n("el-dropdown-item",{attrs:{divided:""},nativeOn:{click:function(e){return t.goPassword(e)}}},[n("span",{staticStyle:{display:"block"}},[t._v("修改密码")])]),t._v(" "),n("el-dropdown-item",{attrs:{divided:""}},[n("el-dropdown",{attrs:{placement:"right-start"},on:{command:t.handleCommand}},[n("span",[t._v("菜单样式")]),t._v(" "),n("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[n("el-dropdown-item",{attrs:{command:"a"}},[t._v("标准")]),t._v(" "),n("el-dropdown-item",{attrs:{command:"b"}},[t._v("分栏")])],1)],1)],1),t._v(" "),n("el-dropdown-item",{attrs:{divided:""},nativeOn:{click:function(e){return t.logout(e)}}},[n("span",{staticStyle:{display:"block"}},[t._v("退出")])])],1)],1)],2)],1)},w=[],y=n("c7eb"),k=(n("96cf"),n("1da1")),C=n("2f62"),E=n("c24f"),j=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-breadcrumb",{staticClass:"app-breadcrumb",attrs:{separator:"/"}},[n("transition-group",{attrs:{name:"breadcrumb"}},t._l(t.levelList,(function(e,i){return n("el-breadcrumb-item",{key:i},[n("span",{staticClass:"no-redirect"},[t._v(t._s(e.meta.title))])])})),1)],1)},I=[],x=(n("7f7f"),n("f559"),n("bd11")),S=n.n(x),O={data:function(){return{levelList:null,roterPre:c["roterPre"]}},watch:{$route:function(t){t.path.startsWith("/redirect/")||this.getBreadcrumb()}},created:function(){this.getBreadcrumb()},methods:{getBreadcrumb:function(){var t=this.$route.matched.filter((function(t){return t.meta&&t.meta.title})),e=t[0];this.isDashboard(e)||(t=[{path:c["roterPre"]+"/dashboard",meta:{title:"控制台"}}].concat(t)),this.levelList=t.filter((function(t){return t.meta&&t.meta.title&&!1!==t.meta.breadcrumb}))},isDashboard:function(t){var e=t&&t.name;return!!e&&e.trim().toLocaleLowerCase()==="Dashboard".toLocaleLowerCase()},pathCompile:function(t){var e=this.$route.params,n=S.a.compile(t);return n(e)},handleLink:function(t){var e=t.redirect,n=t.path;e?this.$router.push(e):this.$router.push(this.pathCompile(n))}}},R=O,_=(n("d249"),Object(g["a"])(R,j,I,!1,null,"210f2cc6",null)),M=_.exports,D=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticStyle:{padding:"0 15px"},on:{click:t.toggleClick}},[n("svg",{staticClass:"hamburger",class:{"is-active":t.isActive},attrs:{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:"64",height:"64"}},[n("path",{attrs:{d:"M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM142.4 642.1L298.7 519a8.84 8.84 0 0 0 0-13.9L142.4 381.9c-5.8-4.6-14.4-.5-14.4 6.9v246.3a8.9 8.9 0 0 0 14.4 7z"}})])])},z=[],V={name:"Hamburger",props:{isActive:{type:Boolean,default:!1}},methods:{toggleClick:function(){this.$emit("toggleClick")}}},B=V,F=(n("c043"),Object(g["a"])(B,D,z,!1,null,"363956eb",null)),L=F.exports,N=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("svg-icon",{attrs:{"icon-class":t.isFullscreen?"exit-fullscreen":"fullscreen"},on:{click:t.click}})],1)},T=[],Q=n("93bf"),P=n.n(Q),H={name:"Screenfull",data:function(){return{isFullscreen:!1}},mounted:function(){this.init()},beforeDestroy:function(){this.destroy()},methods:{click:function(){if(!P.a.enabled)return this.$message({message:"you browser can not work",type:"warning"}),!1;P.a.toggle()},change:function(){this.isFullscreen=P.a.isFullscreen},init:function(){P.a.enabled&&P.a.on("change",this.change)},destroy:function(){P.a.enabled&&P.a.off("change",this.change)}}},U=H,G=(n("4d7e"),Object(g["a"])(U,N,T,!1,null,"07f9857d",null)),W=G.exports,Z=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"header-notice right-menu-item"},[n("el-dropdown",{attrs:{trigger:"click"}},[n("span",{staticClass:"el-dropdown-link"},[t.count>0?n("el-badge",{staticClass:"item",attrs:{"is-dot":"",value:t.count}},[n("i",{staticClass:"el-icon-message-solid"})]):n("span",{staticClass:"item"},[n("i",{staticClass:"el-icon-message-solid"})])],1),t._v(" "),n("el-dropdown-menu",{attrs:{slot:"dropdown",placement:"top-end"},slot:"dropdown"},[n("el-dropdown-item",{staticClass:"clearfix"},[n("el-tabs",{on:{"tab-click":t.handleClick},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[t.messageList.length>0?n("el-card",{staticClass:"box-card"},[n("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[n("span",[t._v("消息")])]),t._v(" "),t._l(t.messageList,(function(e,i){return n("router-link",{key:i,staticClass:"text item_content",attrs:{to:{path:t.roterPre+"/station/notice/"+e.notice_log_id}},nativeOn:{click:function(e){return t.HandleDelete(i)}}},[n("el-badge",{staticClass:"item",attrs:{"is-dot":""}}),t._v(" "+t._s(e.notice_title)+"\n ")],1)}))],2):n("div",{staticClass:"ivu-notifications-container-list"},[n("div",{staticClass:"ivu-notifications-tab-empty"},[n("div",{staticClass:"ivu-notifications-tab-empty-text"},[t._v("目前没有通知")]),t._v(" "),n("img",{staticClass:"ivu-notifications-tab-empty-img",attrs:{src:"https://file.iviewui.com/iview-pro/icon-no-message.svg",alt:""}})])])],1)],1)],1)],1)],1)},Y=[],J=n("8593"),q={name:"headerNotice",data:function(){return{activeName:"second",messageList:[],needList:[],count:0,tabPosition:"right",roterPre:c["roterPre"]}},computed:{},watch:{},mounted:function(){this.getList()},methods:{handleClick:function(t,e){console.log(t,e)},goDetail:function(t){t.is_read=1,console.log(this.$router),this.$router.push({path:this.roterPre+"/station/notice",query:{id:t.notice_log_id}})},getList:function(){var t=this;Object(J["G"])({is_read:0}).then((function(e){t.messageList=e.data.list,t.count=e.data.count})).catch((function(t){}))},HandleDelete:function(t){this.messageList.splice(t,1)}}},X=q,K=(n("225f"),Object(g["a"])(X,Z,Y,!1,null,"3bc87138",null)),$=K.exports,tt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"header-search",class:{show:t.show}},[n("svg-icon",{attrs:{"class-name":"search-icon","icon-class":"search"},on:{click:function(e){return e.stopPropagation(),t.click(e)}}}),t._v(" "),n("el-select",{ref:"headerSearchSelect",staticClass:"header-search-select",attrs:{"remote-method":t.querySearch,filterable:"","default-first-option":"",remote:"",placeholder:"Search"},on:{change:t.change},model:{value:t.search,callback:function(e){t.search=e},expression:"search"}},[t._l(t.options,(function(e){return[0===e.children.length?n("el-option",{key:e.route,attrs:{value:e,label:e.menu_name.join(" > ")}}):t._e()]}))],2)],1)},et=[],nt=(n("386d"),n("2909")),it=n("b85c"),at=n("ffe7"),rt=n.n(at),ot=n("df7c"),ct=n.n(ot),st={name:"headerSearch",data:function(){return{search:"",options:[],searchPool:[],show:!1,fuse:void 0}},computed:Object(d["a"])({},Object(C["b"])(["menuList"])),watch:{routes:function(){this.searchPool=this.generateRoutes(this.menuList)},searchPool:function(t){this.initFuse(t)},show:function(t){t?document.body.addEventListener("click",this.close):document.body.removeEventListener("click",this.close)}},mounted:function(){this.searchPool=this.generateRoutes(this.menuList)},methods:{click:function(){this.show=!this.show,this.show&&this.$refs.headerSearchSelect&&this.$refs.headerSearchSelect.focus()},close:function(){this.$refs.headerSearchSelect&&this.$refs.headerSearchSelect.blur(),this.options=[],this.show=!1},change:function(t){var e=this;this.$router.push(t.route),this.search="",this.options=[],this.$nextTick((function(){e.show=!1}))},initFuse:function(t){this.fuse=new rt.a(t,{shouldSort:!0,threshold:.4,location:0,distance:100,maxPatternLength:32,minMatchCharLength:1,keys:[{name:"menu_name",weight:.7},{name:"route",weight:.3}]})},generateRoutes:function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],a=[],r=Object(it["a"])(t);try{for(r.s();!(e=r.n()).done;){var o=e.value;if(!o.hidden){var c={route:ct.a.resolve(n,o.route),menu_name:Object(nt["a"])(i),children:o.children||[]};if(o.menu_name&&(c.menu_name=[].concat(Object(nt["a"])(c.menu_name),[o.menu_name]),"noRedirect"!==o.redirect&&a.push(c)),o.children){var s=this.generateRoutes(o.children,c.route,c.menu_name);s.length>=1&&(a=[].concat(Object(nt["a"])(a),Object(nt["a"])(s)))}}}}catch(u){r.e(u)}finally{r.f()}return a},querySearch:function(t){this.options=""!==t?this.fuse.search(t):[]}}},ut=st,lt=(n("8646"),Object(g["a"])(ut,tt,et,!1,null,"2301aee3",null)),dt=lt.exports,ht=n("a78e"),mt=n.n(ht),ft={components:{Breadcrumb:M,Hamburger:L,Screenfull:W,HeaderNotice:$,Search:dt},watch:{sidebarStyle:function(t){this.sidebarStyle=t}},data:function(){return{roterPre:c["roterPre"],sideBar1:"a"!=window.localStorage.getItem("sidebarStyle"),adminInfo:mt.a.set("MerName"),label:""}},computed:Object(d["a"])(Object(d["a"])({},Object(C["b"])(["sidebar","avatar","device"])),Object(C["d"])({sidebar:function(t){return t.app.sidebar},sidebarStyle:function(t){return t.user.sidebarStyle}})),mounted:function(){var t=this;Object(E["i"])().then((function(e){t.label=e.data})).catch((function(e){var n=e.message;t.$message.error(n)}))},methods:{handleCommand:function(t){this.$store.commit("user/SET_SIDEBAR_STYLE",t),window.localStorage.setItem("sidebarStyle",t),this.sideBar1?this.subMenuList&&this.subMenuList.length>0?this.$store.commit("user/SET_SIDEBAR_WIDTH",270):this.$store.commit("user/SET_SIDEBAR_WIDTH",130):this.$store.commit("user/SET_SIDEBAR_WIDTH",210)},toggleSideBar:function(){this.$store.dispatch("app/toggleSideBar")},goUser:function(){this.$modalForm(Object(E["h"])())},goPassword:function(){this.$modalForm(Object(E["v"])())},logout:function(){var t=Object(k["a"])(Object(y["a"])().mark((function t(){return Object(y["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this.$store.dispatch("user/logout");case 2:this.$router.push("".concat(c["roterPre"],"/login?redirect=").concat(this.$route.fullPath));case 3:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()}},pt=ft,gt=(n("ac94"),Object(g["a"])(pt,A,w,!1,null,"691d2aa4",null)),bt=gt.exports,vt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"drawer-container"},[n("div",[n("h3",{staticClass:"drawer-title"},[t._v("Page style setting")]),t._v(" "),n("div",{staticClass:"drawer-item"},[n("span",[t._v("Theme Color")]),t._v(" "),n("theme-picker",{staticStyle:{float:"right",height:"26px",margin:"-3px 8px 0 0"},on:{change:t.themeChange}})],1),t._v(" "),n("div",{staticClass:"drawer-item"},[n("span",[t._v("Open Tags-View")]),t._v(" "),n("el-switch",{staticClass:"drawer-switch",model:{value:t.tagsView,callback:function(e){t.tagsView=e},expression:"tagsView"}})],1),t._v(" "),n("div",{staticClass:"drawer-item"},[n("span",[t._v("Fixed Header")]),t._v(" "),n("el-switch",{staticClass:"drawer-switch",model:{value:t.fixedHeader,callback:function(e){t.fixedHeader=e},expression:"fixedHeader"}})],1),t._v(" "),n("div",{staticClass:"drawer-item"},[n("span",[t._v("Sidebar Logo")]),t._v(" "),n("el-switch",{staticClass:"drawer-switch",model:{value:t.sidebarLogo,callback:function(e){t.sidebarLogo=e},expression:"sidebarLogo"}})],1)])])},At=[],wt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-color-picker",{staticClass:"theme-picker",attrs:{predefine:["#409EFF","#1890ff","#304156","#212121","#11a983","#13c2c2","#6959CD","#f5222d"],"popper-class":"theme-picker-dropdown"},model:{value:t.theme,callback:function(e){t.theme=e},expression:"theme"}})},yt=[],kt=(n("c5f6"),n("6b54"),n("ac6a"),n("3b2b"),n("a481"),n("f6f8").version),Ct="#409EFF",Et={data:function(){return{chalk:"",theme:""}},computed:{defaultTheme:function(){return this.$store.state.settings.theme}},watch:{defaultTheme:{handler:function(t,e){this.theme=t},immediate:!0},theme:function(){var t=Object(k["a"])(Object(y["a"])().mark((function t(e){var n,i,a,r,o,c,s,u,l=this;return Object(y["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(n=this.chalk?this.theme:Ct,"string"===typeof e){t.next=3;break}return t.abrupt("return");case 3:if(i=this.getThemeCluster(e.replace("#","")),a=this.getThemeCluster(n.replace("#","")),r=this.$message({message:" Compiling the theme",customClass:"theme-message",type:"success",duration:0,iconClass:"el-icon-loading"}),o=function(t,e){return function(){var n=l.getThemeCluster(Ct.replace("#","")),a=l.updateStyle(l[t],n,i),r=document.getElementById(e);r||(r=document.createElement("style"),r.setAttribute("id",e),document.head.appendChild(r)),r.innerText=a}},this.chalk){t.next=11;break}return c="https://unpkg.com/element-ui@".concat(kt,"/lib/theme-chalk/index.css"),t.next=11,this.getCSSString(c,"chalk");case 11:s=o("chalk","chalk-style"),s(),u=[].slice.call(document.querySelectorAll("style")).filter((function(t){var e=t.innerText;return new RegExp(n,"i").test(e)&&!/Chalk Variables/.test(e)})),u.forEach((function(t){var e=t.innerText;"string"===typeof e&&(t.innerText=l.updateStyle(e,a,i))})),this.$emit("change",e),r.close();case 17:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}()},methods:{updateStyle:function(t,e,n){var i=t;return e.forEach((function(t,e){i=i.replace(new RegExp(t,"ig"),n[e])})),i},getCSSString:function(t,e){var n=this;return new Promise((function(i){var a=new XMLHttpRequest;a.onreadystatechange=function(){4===a.readyState&&200===a.status&&(n[e]=a.responseText.replace(/@font-face{[^}]+}/,""),i())},a.open("GET",t),a.send()}))},getThemeCluster:function(t){for(var e=function(t,e){var n=parseInt(t.slice(0,2),16),i=parseInt(t.slice(2,4),16),a=parseInt(t.slice(4,6),16);return 0===e?[n,i,a].join(","):(n+=Math.round(e*(255-n)),i+=Math.round(e*(255-i)),a+=Math.round(e*(255-a)),n=n.toString(16),i=i.toString(16),a=a.toString(16),"#".concat(n).concat(i).concat(a))},n=function(t,e){var n=parseInt(t.slice(0,2),16),i=parseInt(t.slice(2,4),16),a=parseInt(t.slice(4,6),16);return n=Math.round((1-e)*n),i=Math.round((1-e)*i),a=Math.round((1-e)*a),n=n.toString(16),i=i.toString(16),a=a.toString(16),"#".concat(n).concat(i).concat(a)},i=[t],a=0;a<=9;a++)i.push(e(t,Number((a/10).toFixed(2))));return i.push(n(t,.1)),i}}},jt=Et,It=(n("678b"),Object(g["a"])(jt,wt,yt,!1,null,null,null)),xt=It.exports,St={components:{ThemePicker:xt},data:function(){return{}},computed:{fixedHeader:{get:function(){return this.$store.state.settings.fixedHeader},set:function(t){this.$store.dispatch("settings/changeSetting",{key:"fixedHeader",value:t})}},tagsView:{get:function(){return this.$store.state.settings.tagsView},set:function(t){this.$store.dispatch("settings/changeSetting",{key:"tagsView",value:t})}},sidebarLogo:{get:function(){return this.$store.state.settings.sidebarLogo},set:function(t){this.$store.dispatch("settings/changeSetting",{key:"sidebarLogo",value:t})}}},methods:{themeChange:function(t){this.$store.dispatch("settings/changeSetting",{key:"theme",value:t})}}},Ot=St,Rt=(n("5bdf"),Object(g["a"])(Ot,vt,At,!1,null,"e1b97696",null)),_t=Rt.exports,Mt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{key:t.sideBar1&&t.isCollapse,class:{"has-logo":t.showLogo}},[t.showLogo?n("logo",{attrs:{collapse:t.isCollapse,sideBar1:t.sideBar1}}):t._e(),t._v(" "),n("el-scrollbar",[t.sideBar1?[t.isCollapse?t._e():t._l(t.menuList,(function(e){return n("ul",{key:e.route,staticStyle:{padding:"0"}},[n("li",[n("div",{staticClass:"menu menu-one"},[n("div",{staticClass:"menu-item",class:{active:t.pathCompute(e)},on:{click:function(n){return t.goPath(e)}}},[n("i",{class:"menu-icon el-icon-"+e.icon}),n("span",[t._v(t._s(e.menu_name))])])])])])})),t._v(" "),t.subMenuList&&t.subMenuList.length>0&&!t.isCollapse?n("el-menu",{staticClass:"menuOpen",attrs:{"default-active":t.activeMenu,"background-color":"#ffffff","text-color":"#303133","unique-opened":!1,"active-text-color":"#303133",mode:"vertical"}},[n("div",{staticStyle:{height:"100%"}},[n("div",{staticClass:"sub-title"},[t._v(t._s(t.menu_name))]),t._v(" "),n("el-scrollbar",{attrs:{"wrap-class":"scrollbar-wrapper"}},t._l(t.subMenuList,(function(e,i){return n("div",{key:i},[!t.hasOneShowingChild(e.children,e)||t.onlyOneChild.children&&!t.onlyOneChild.noShowingChildren||e.alwaysShow?n("el-submenu",{ref:"subMenu",refInFor:!0,attrs:{index:t.resolvePath(e.route),"popper-append-to-body":""}},[n("template",{slot:"title"},[e?n("item",{attrs:{icon:e&&e.icon,title:e.menu_name}}):t._e()],1),t._v(" "),t._l(e.children,(function(e,i){return n("sidebar-item",{key:i,staticClass:"nest-menu",attrs:{"is-nest":!0,item:e,"base-path":t.resolvePath(e.route),isCollapse:t.isCollapse}})}))],2):[t.onlyOneChild?n("app-link",{attrs:{to:t.resolvePath(t.onlyOneChild.route)}},[n("el-menu-item",{attrs:{index:t.resolvePath(t.onlyOneChild.route)}},[n("item",{attrs:{icon:t.onlyOneChild.icon||e&&e.icon,title:t.onlyOneChild.menu_name}})],1)],1):t._e()]],2)})),0)],1)]):t._e(),t._v(" "),t.isCollapse?[n("el-menu",{staticClass:"menuStyle2",attrs:{"default-active":t.activeMenu,collapse:t.isCollapse,"background-color":t.variables.menuBg,"text-color":t.variables.menuText,"unique-opened":!0,"active-text-color":"#ffffff","collapse-transition":!1,mode:"vertical","popper-class":"styleTwo"}},[t._l(t.menuList,(function(t){return n("sidebar-item",{key:t.route,staticClass:"style2",attrs:{item:t,"base-path":t.route}})}))],2)]:t._e()]:n("el-menu",{staticClass:"subMenu1",attrs:{"default-active":t.activeMenu,collapse:t.isCollapse,"background-color":t.variables.menuBg,"text-color":t.variables.menuText,"unique-opened":!0,"active-text-color":t.variables.menuActiveText,"collapse-transition":!1,mode:"vertical"}},[t._l(t.menuList,(function(t){return n("sidebar-item",{key:t.route,attrs:{item:t,"base-path":t.route}})}))],2)],2)],1)},Dt=[],zt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"sidebar-logo-container",class:{collapse:t.collapse}},[n("transition",{attrs:{name:"sidebarLogoFade"}},[t.collapse&&!t.sideBar1?n("router-link",{key:"collapse",staticClass:"sidebar-logo-link",attrs:{to:"/"}},[t.slogo?n("img",{staticClass:"sidebar-logo-small",attrs:{src:t.slogo}}):t._e()]):n("router-link",{key:"expand",staticClass:"sidebar-logo-link",attrs:{to:"/"}},[t.logo?n("img",{staticClass:"sidebar-logo-big",attrs:{src:t.logo}}):t._e()])],1)],1)},Vt=[],Bt=s.a.title,Ft={name:"SidebarLogo",props:{collapse:{type:Boolean,required:!0},sideBar1:{type:Boolean,required:!1}},data:function(){return{title:Bt,logo:JSON.parse(mt.a.get("MerInfo")).menu_logo,slogo:JSON.parse(mt.a.get("MerInfo")).menu_slogo}}},Lt=Ft,Nt=(n("4b27"),Object(g["a"])(Lt,zt,Vt,!1,null,"06bf082e",null)),Tt=Nt.exports,Qt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("component",t._b({},"component",t.linkProps(t.to),!1),[t._t("default")],2)},Pt=[],Ht=n("61f7"),Ut={props:{to:{type:String,required:!0}},methods:{linkProps:function(t){return Object(Ht["b"])(t)?{is:"a",href:t,target:"_blank",rel:"noopener"}:{is:"router-link",to:t}}}},Gt=Ut,Wt=Object(g["a"])(Gt,Qt,Pt,!1,null,null,null),Zt=Wt.exports,Yt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.item.hidden?t._e():n("div",{class:{menuTwo:t.isCollapse}},[[!t.hasOneShowingChild(t.item.children,t.item)||t.onlyOneChild.children&&!t.onlyOneChild.noShowingChildren||t.item.alwaysShow?n("el-submenu",{ref:"subMenu",class:{subMenu2:t.sideBar1},attrs:{"popper-class":t.sideBar1?"styleTwo":"",index:t.resolvePath(t.item.route),"popper-append-to-body":""}},[n("template",{slot:"title"},[t.item?n("item",{attrs:{icon:t.item&&t.item.icon,title:t.item.menu_name}}):t._e()],1),t._v(" "),t._l(t.item.children,(function(e,i){return n("sidebar-item",{key:i,staticClass:"nest-menu",attrs:{level:t.level+1,"is-nest":!0,item:e,"base-path":t.resolvePath(e.route)}})}))],2):[t.onlyOneChild?n("app-link",{attrs:{to:t.resolvePath(t.onlyOneChild.route)}},[n("el-menu-item",{class:{"submenu-title-noDropdown":!t.isNest},attrs:{index:t.resolvePath(t.onlyOneChild.route)}},[t.sideBar1&&(!t.item.children||t.item.children.length<=1)?[n("div",{staticClass:"el-submenu__title",class:{titles:0==t.level,hide:!t.sideBar1&&!t.isCollapse}},[n("i",{class:"menu-icon el-icon-"+t.item.icon}),n("span",[t._v(t._s(t.onlyOneChild.menu_name))])])]:n("item",{attrs:{icon:t.onlyOneChild.icon||t.item&&t.item.icon,title:t.onlyOneChild.menu_name}})],2)],1):t._e()]]],2)},Jt=[],qt={name:"MenuItem",functional:!0,props:{icon:{type:String,default:""},title:{type:String,default:""}},render:function(t,e){var n=e.props,i=n.icon,a=n.title,r=[];if(i){var o="el-icon-"+i;r.push(t("i",{class:o}))}return a&&r.push(t("span",{slot:"title"},[a])),r}},Xt=qt,Kt=Object(g["a"])(Xt,i,a,!1,null,null,null),$t=Kt.exports,te={computed:{device:function(){return this.$store.state.app.device}},mounted:function(){this.fixBugIniOS()},methods:{fixBugIniOS:function(){var t=this,e=this.$refs.subMenu;if(e){var n=e.handleMouseleave;e.handleMouseleave=function(e){"mobile"!==t.device&&n(e)}}}}},ee={name:"SidebarItem",components:{Item:$t,AppLink:Zt},mixins:[te],props:{item:{type:Object,required:!0},isNest:{type:Boolean,default:!1},basePath:{type:String,default:""},level:{type:Number,default:0},isCollapse:{type:Boolean,default:!0}},data:function(){return this.onlyOneChild=null,{sideBar1:"a"!=window.localStorage.getItem("sidebarStyle")}},computed:{activeMenu:function(){var t=this.$route,e=t.meta,n=t.path;return e.activeMenu?e.activeMenu:n}},methods:{hasOneShowingChild:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0,i=e.filter((function(e){return!e.hidden&&(t.onlyOneChild=e,!0)}));return 1===i.length||0===i.length&&(this.onlyOneChild=Object(d["a"])(Object(d["a"])({},n),{},{path:"",noShowingChildren:!0}),!0)},resolvePath:function(t){return Object(Ht["b"])(t)?t:Object(Ht["b"])(this.basePath)?this.basePath:ct.a.resolve(this.basePath,t)}}},ne=ee,ie=(n("d0a6"),Object(g["a"])(ne,Yt,Jt,!1,null,"116a0188",null)),ae=ie.exports,re=n("cf1e2"),oe=n.n(re),ce={components:{SidebarItem:ae,Logo:Tt,AppLink:Zt,Item:$t},mixins:[te],data:function(){return this.onlyOneChild=null,{sideBar1:"a"!=window.localStorage.getItem("sidebarStyle"),menu_name:"",list:this.$store.state.user.menuList,subMenuList:[],activePath:"",isShow:!1}},computed:Object(d["a"])(Object(d["a"])(Object(d["a"])({},Object(C["b"])(["permission_routes","sidebar","menuList"])),Object(C["d"])({sidebar:function(t){return t.app.sidebar},sidebarRouters:function(t){return t.user.sidebarRouters},sidebarStyle:function(t){return t.user.sidebarStyle},routers:function(){var t=this.$store.state.user.menuList?this.$store.state.user.menuList:[];return t}})),{},{activeMenu:function(){var t=this.$route,e=t.meta,n=t.path;return e.activeMenu?e.activeMenu:n},showLogo:function(){return this.$store.state.settings.sidebarLogo},variables:function(){return oe.a},isCollapse:function(){return!this.sidebar.opened}}),watch:{sidebarStyle:function(t,e){this.sideBar1="a"!=t||"a"==e,this.setMenuWidth()},sidebar:{handler:function(t,e){this.sideBar1&&this.getSubMenu()},deep:!0},$route:{handler:function(t,e){this.sideBar1&&this.getSubMenu()},deep:!0}},mounted:function(){this.getMenus(),this.sideBar1?this.getSubMenu():this.setMenuWidth()},methods:Object(d["a"])({setMenuWidth:function(){this.sideBar1?this.subMenuList&&this.subMenuList.length>0&&!this.isCollapse?this.$store.commit("user/SET_SIDEBAR_WIDTH",270):this.$store.commit("user/SET_SIDEBAR_WIDTH",130):this.$store.commit("user/SET_SIDEBAR_WIDTH",180)},ishttp:function(t){return-1!==t.indexOf("http://")||-1!==t.indexOf("https://")},getMenus:function(){this.$store.dispatch("user/getMenus",{that:this})},hasOneShowingChild:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0,i=e.filter((function(e){return!e.hidden&&(t.onlyOneChild=e,!0)}));return 1===i.length||0===i.length&&(this.onlyOneChild=Object(d["a"])(Object(d["a"])({},n),{},{path:"",noShowingChildren:!0}),!0)},resolvePath:function(t){return Object(Ht["b"])(t)||Object(Ht["b"])(this.basePath)?t:ct.a.resolve(t,t)},goPath:function(t){if(this.menu_name=t.menu_name,t.children){this.$store.commit("user/SET_SIDEBAR_WIDTH",270),this.subMenuList=t.children,window.localStorage.setItem("subMenuList",this.subMenuList);var e=this.resolvePath(this.getChild(t.children)[0].route);t.route=e,this.$router.push({path:e})}else{this.$store.commit("user/SET_SIDEBAR_WIDTH",130),this.subMenuList=[],window.localStorage.setItem("subMenuList",[]);var n=this.resolvePath(t.route);this.$router.push({path:n})}},getChild:function(t){var e=[];return t.forEach((function(t){var n=function t(n){var i=n.children;if(i)for(var a=0;a0&&(r=a[0],o=a[a.length-1]),r===t)i.scrollLeft=0;else if(o===t)i.scrollLeft=i.scrollWidth-n;else{var c=a.findIndex((function(e){return e===t})),s=a[c-1],u=a[c+1],l=u.$el.offsetLeft+u.$el.offsetWidth+pe,d=s.$el.offsetLeft-pe;l>i.scrollLeft+n?i.scrollLeft=l-n:d1&&void 0!==arguments[1]?arguments[1]:"/",i=[];return t.forEach((function(t){if(t.meta&&t.meta.affix){var a=ct.a.resolve(n,t.path);i.push({fullPath:a,path:a,name:t.name,meta:Object(d["a"])({},t.meta)})}if(t.children){var r=e.filterAffixTags(t.children,t.path);r.length>=1&&(i=[].concat(Object(nt["a"])(i),Object(nt["a"])(r)))}})),i},initTags:function(){var t,e=this.affixTags=this.filterAffixTags(this.routes),n=Object(it["a"])(e);try{for(n.s();!(t=n.n()).done;){var i=t.value;i.name&&this.$store.dispatch("tagsView/addVisitedView",i)}}catch(a){n.e(a)}finally{n.f()}},addTags:function(){var t=this.$route.name;return t&&this.$store.dispatch("tagsView/addView",this.$route),!1},moveToCurrentTag:function(){var t=this,e=this.$refs.tag;this.$nextTick((function(){var n,i=Object(it["a"])(e);try{for(i.s();!(n=i.n()).done;){var a=n.value;if(a.to.path===t.$route.path){t.$refs.scrollPane.moveToTarget(a),a.to.fullPath!==t.$route.fullPath&&t.$store.dispatch("tagsView/updateVisitedView",t.$route);break}}}catch(r){i.e(r)}finally{i.f()}}))},refreshSelectedTag:function(t){this.reload()},closeSelectedTag:function(t){var e=this;this.$store.dispatch("tagsView/delView",t).then((function(n){var i=n.visitedViews;e.isActive(t)&&e.toLastView(i,t)}))},closeOthersTags:function(){var t=this;this.$router.push(this.selectedTag),this.$store.dispatch("tagsView/delOthersViews",this.selectedTag).then((function(){t.moveToCurrentTag()}))},closeAllTags:function(t){var e=this;this.$store.dispatch("tagsView/delAllViews").then((function(n){var i=n.visitedViews;e.affixTags.some((function(e){return e.path===t.path}))||e.toLastView(i,t)}))},toLastView:function(t,e){var n=t.slice(-1)[0];n?this.$router.push(n.fullPath):"Dashboard"===e.name?this.$router.replace({path:"/redirect"+e.fullPath}):this.$router.push("/")},openMenu:function(t,e){var n=105,i=this.$el.getBoundingClientRect().left,a=this.$el.offsetWidth,r=a-n,o=e.clientX-i+15;this.left=o>r?r:o,this.top=e.clientY,this.visible=!0,this.selectedTag=t},closeMenu:function(){this.visible=!1}}},ye=we,ke=(n("0a4d"),n("b428"),Object(g["a"])(ye,de,he,!1,null,"3f349a64",null)),Ce=ke.exports,Ee=function(){var t=this,e=t.$createElement,n=t._self._c||e;return"0"!==t.openVersion?n("div",{staticClass:"ivu-global-footer i-copyright"},[-1==t.version.status?n("div",{staticClass:"ivu-global-footer-copyright"},[t._v(t._s("Copyright "+t.version.year+" ")),n("a",{attrs:{href:"http://"+t.version.url,target:"_blank"}},[t._v(t._s(t.version.version))])]):n("div",{staticClass:"ivu-global-footer-copyright"},[t._v(t._s(t.version.Copyright))])]):t._e()},je=[],Ie=n("2801"),xe={name:"i-copyright",data:function(){return{copyright:"Copyright © 2022 西安众邦网络科技有限公司",openVersion:"0",copyright_status:"0",version:{}}},mounted:function(){this.getVersion()},methods:{getVersion:function(){var t=this;Object(Ie["j"])().then((function(e){e.data.version;t.version=e.data,t.copyright=e.data.copyright,t.openVersion=e.data.sys_open_version})).catch((function(e){t.$message.error(e.message)}))}}},Se=xe,Oe=(n("8bcc"),Object(g["a"])(Se,Ee,je,!1,null,"036cf7b4",null)),Re=Oe.exports,_e=n("4360"),Me=document,De=Me.body,ze=992,Ve={watch:{$route:function(t){"mobile"===this.device&&this.sidebar.opened&&_e["a"].dispatch("app/closeSideBar",{withoutAnimation:!1})}},beforeMount:function(){window.addEventListener("resize",this.$_resizeHandler)},beforeDestroy:function(){window.removeEventListener("resize",this.$_resizeHandler)},mounted:function(){var t=this.$_isMobile();t&&(_e["a"].dispatch("app/toggleDevice","mobile"),_e["a"].dispatch("app/closeSideBar",{withoutAnimation:!0}))},methods:{$_isMobile:function(){var t=De.getBoundingClientRect();return t.width-1'});o.a.add(c);e["default"]=c},ab00:function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-lock",use:"icon-lock-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},ac94:function(t,e,n){"use strict";n("14b7")},ad1c:function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-education",use:"icon-education-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},af8c:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFEAAABRCAYAAACqj0o2AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA25pVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZ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:function(t,e,n){t.exports={menuText:"#bfcbd9",menuActiveText:"#6394F9",subMenuActiveText:"#f4f4f5",menuBg:"#0B1529",menuHover:"#182848",subMenuBg:"#030C17",subMenuHover:"#182848",sideBarWidth:"180px"}},b3b5:function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-user",use:"icon-user-usage",viewBox:"0 0 130 130",content:''});o.a.add(c);e["default"]=c},b428:function(t,e,n){"use strict";n("ea55")},b55e:function(t,e,n){},b5b8:function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("el-row",[n("el-col",t._b({},"el-col",t.grid,!1),[n("div",{staticClass:"Nav"},[n("div",{staticClass:"input"},[n("el-input",{staticStyle:{width:"100%"},attrs:{placeholder:"选择分类","prefix-icon":"el-icon-search",clearable:""},model:{value:t.filterText,callback:function(e){t.filterText=e},expression:"filterText"}})],1),t._v(" "),n("div",{staticClass:"trees-coadd"},[n("div",{staticClass:"scollhide"},[n("div",{staticClass:"trees"},[n("el-tree",{ref:"tree",attrs:{data:t.treeData2,"filter-node-method":t.filterNode,props:t.defaultProps},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.node,a=e.data;return n("div",{staticClass:"custom-tree-node",on:{click:function(e){return e.stopPropagation(),t.handleNodeClick(a)}}},[n("div",[n("span",[t._v(t._s(i.label))]),t._v(" "),a.space_property_name?n("span",{staticStyle:{"font-size":"11px",color:"#3889b1"}},[t._v("("+t._s(a.attachment_category_name)+")")]):t._e()]),t._v(" "),n("span",{staticClass:"el-ic"},[n("i",{staticClass:"el-icon-circle-plus-outline",on:{click:function(e){return e.stopPropagation(),t.onAdd(a.attachment_category_id)}}}),t._v(" "),"0"==a.space_id||a.children&&"undefined"!=a.children||!a.attachment_category_id?t._e():n("i",{staticClass:"el-icon-edit",attrs:{title:"修改"},on:{click:function(e){return e.stopPropagation(),t.onEdit(a.attachment_category_id)}}}),t._v(" "),"0"==a.space_id||a.children&&"undefined"!=a.children||!a.attachment_category_id?t._e():n("i",{staticClass:"el-icon-delete",attrs:{title:"删除分类"},on:{click:function(e){return e.stopPropagation(),function(){return t.handleDelete(a.attachment_category_id)}()}}})])])}}])})],1)])])])]),t._v(" "),n("el-col",t._b({staticClass:"colLeft"},"el-col",t.grid2,!1),[n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"conter"},[n("div",{staticClass:"bnt"},["/merchant/config/picture"!==t.params?n("el-button",{staticClass:"mb10 mr10",attrs:{size:"small",type:"primary"},on:{click:t.checkPics}},[t._v("使用选中图片")]):t._e(),t._v(" "),n("el-upload",{staticClass:"upload-demo mr10 mb15",attrs:{action:t.fileUrl,"on-success":t.handleSuccess,headers:t.myHeaders,"show-file-list":!1,multiple:""}},[n("el-button",{attrs:{size:"small",type:"primary"}},[t._v("点击上传")])],1),t._v(" "),n("el-button",{attrs:{type:"success",size:"small"},on:{click:function(e){return e.stopPropagation(),t.onAdd(0)}}},[t._v("添加分类")]),t._v(" "),n("el-button",{staticClass:"mr10",attrs:{type:"error",size:"small",disabled:0===t.checkPicList.length},on:{click:function(e){return e.stopPropagation(),t.editPicList("图片")}}},[t._v("删除图片")]),t._v(" "),n("el-input",{staticStyle:{width:"230px"},attrs:{placeholder:"请输入图片名称搜索",size:"small"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getFileList(1)}},model:{value:t.tableData.attachment_name,callback:function(e){t.$set(t.tableData,"attachment_name",e)},expression:"tableData.attachment_name"}},[n("el-button",{staticClass:"el-button-solt",attrs:{slot:"append",icon:"el-icon-search"},on:{click:function(e){return t.getFileList(1)}},slot:"append"})],1),t._v(" "),n("el-select",{staticClass:"mb15",attrs:{placeholder:"图片移动至",size:"small"},model:{value:t.sleOptions.attachment_category_name,callback:function(e){t.$set(t.sleOptions,"attachment_category_name",e)},expression:"sleOptions.attachment_category_name"}},[n("el-option",{staticStyle:{"max-width":"560px",height:"200px",overflow:"auto","background-color":"#fff"},attrs:{label:t.sleOptions.attachment_category_name,value:t.sleOptions.attachment_category_id}},[n("el-tree",{ref:"tree2",attrs:{data:t.treeData2,"filter-node-method":t.filterNode,props:t.defaultProps},on:{"node-click":t.handleSelClick}})],1)],1)],1),t._v(" "),n("div",{staticClass:"pictrueList acea-row mb15"},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.isShowPic,expression:"isShowPic"}],staticClass:"imagesNo"},[n("i",{staticClass:"el-icon-picture",staticStyle:{"font-size":"60px",color:"rgb(219, 219, 219)"}}),t._v(" "),n("span",{staticClass:"imagesNo_sp"},[t._v("图片库为空")])]),t._v(" "),n("div",{staticClass:"conters"},t._l(t.pictrueList.list,(function(e,i){return n("div",{key:i,staticClass:"gridPic"},[e.num>0?n("p",{staticClass:"number"},[n("el-badge",{staticClass:"item",attrs:{value:e.num}},[n("a",{staticClass:"demo-badge",attrs:{href:"#"}})])],1):t._e(),t._v(" "),n("img",{directives:[{name:"lazy",rawName:"v-lazy",value:e.attachment_src,expression:"item.attachment_src"}],class:e.isSelect?"on":"",on:{click:function(n){return t.changImage(e,i,t.pictrueList.list)}}}),t._v(" "),n("div",{staticStyle:{display:"flex","align-items":"center","justify-content":"space-between"}},[t.editId===e.attachment_id?n("el-input",{model:{value:e.attachment_name,callback:function(n){t.$set(e,"attachment_name",n)},expression:"item.attachment_name"}}):n("p",{staticClass:"name",staticStyle:{width:"80%"}},[t._v(t._s(e.attachment_name))]),t._v(" "),n("i",{staticClass:"el-icon-edit",on:{click:function(n){return t.handleEdit(e.attachment_id,e.attachment_name)}}})],1)])})),0)]),t._v(" "),n("div",{staticClass:"block"},[n("el-pagination",{attrs:{"page-sizes":[12,20,40,60],"page-size":t.tableData.limit,"current-page":t.tableData.page,layout:"total, sizes, prev, pager, next, jumper",total:t.pictrueList.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)])])],1)],1)},a=[],r=(n("4f7f"),n("5df3"),n("1c4c"),n("ac6a"),n("c7eb")),o=(n("96cf"),n("1da1")),c=(n("c5f6"),n("2909")),s=n("8593"),u=n("5f87"),l=n("bbcc"),d={name:"Upload",props:{isMore:{type:String,default:"1"},setModel:{type:String}},data:function(){return{loading:!1,params:"",sleOptions:{attachment_category_name:"",attachment_category_id:""},list:[],grid:{xl:8,lg:8,md:8,sm:8,xs:24},grid2:{xl:16,lg:16,md:16,sm:16,xs:24},filterText:"",treeData:[],treeData2:[],defaultProps:{children:"children",label:"attachment_category_name"},classifyId:0,myHeaders:{"X-Token":Object(u["a"])()},tableData:{page:1,limit:12,attachment_category_id:0,order:"",attachment_name:""},pictrueList:{list:[],total:0},isShowPic:!1,checkPicList:[],ids:[],checkedMore:[],checkedAll:[],selectItem:[],editId:"",editName:""}},computed:{fileUrl:function(){return l["a"].https+"/upload/image/".concat(this.tableData.attachment_category_id,"/file")}},watch:{filterText:function(t){this.$refs.tree.filter(t)}},mounted:function(){this.params=this.$route&&this.$route.path?this.$route.path:"",this.$route&&"dialog"===this.$route.query.field&&n.e("chunk-2d0da983").then(n.bind(null,"6bef")),this.getList(),this.getFileList("")},methods:{filterNode:function(t,e){return!t||-1!==e.attachment_category_name.indexOf(t)},getList:function(){var t=this,e={attachment_category_name:"全部图片",attachment_category_id:0};Object(s["q"])().then((function(n){t.treeData=n.data,t.treeData.unshift(e),t.treeData2=Object(c["a"])(t.treeData)})).catch((function(e){t.$message.error(e.message)}))},handleEdit:function(t,e){var n=this;if(t===this.editId)if(this.editName!==e){if(!e.trim())return void this.$message.warning("请先输入图片名称");Object(s["x"])(t,{attachment_name:e}).then((function(){return n.getFileList("")})),this.editId=""}else this.editId="",this.editName="";else this.editId=t,this.editName=e},onAdd:function(t){var e=this,n={};Number(t)>0&&(n.formData={pid:t}),this.$modalForm(Object(s["g"])(),n).then((function(t){t.message;e.getList()}))},onEdit:function(t){var e=this;this.$modalForm(Object(s["j"])(t)).then((function(){return e.getList()}))},handleDelete:function(t){var e=this;this.$modalSure().then((function(){Object(s["h"])(t).then((function(t){var n=t.message;e.$message.success(n),e.getList()})).catch((function(t){var n=t.message;e.$message.error(n)}))}))},handleNodeClick:function(t){this.tableData.attachment_category_id=t.attachment_category_id,this.selectItem=[],this.checkPicList=[],this.getFileList("")},handleSuccess:function(t){200===t.status?(this.$message.success("上传成功"),this.getFileList("")):this.$message.error(t.message)},getFileList:function(t){var e=this;this.loading=!0,this.tableData.page=t||this.tableData.page,Object(s["i"])(this.tableData).then(function(){var t=Object(o["a"])(Object(r["a"])().mark((function t(n){return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.pictrueList.list=n.data.list,console.log(e.pictrueList.list),e.pictrueList.list.length?e.isShowPic=!1:e.isShowPic=!0,e.$route&&e.$route.query.field&&"dialog"!==e.$route.query.field&&(e.checkedMore=window.form_create_helper.get(e.$route.query.field)||[]),e.pictrueList.total=n.data.count,e.loading=!1;case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.$message.error(t.message),e.loading=!1}))},pageChange:function(t){this.tableData.page=t,this.selectItem=[],this.checkPicList=[],this.getFileList("")},handleSizeChange:function(t){this.tableData.limit=t,this.getFileList("")},changImage:function(t,e,n){var i=this;if(t.isSelect){t.isSelect=!1;e=this.ids.indexOf(t.attachment_id);e>-1&&this.ids.splice(e,1),this.selectItem.forEach((function(e,n){e.attachment_id==t.attachment_id&&i.selectItem.splice(n,1)})),this.checkPicList.map((function(e,n){e==t.attachment_src&&i.checkPicList.splice(n,1)}))}else t.isSelect=!0,this.selectItem.push(t),this.checkPicList.push(t.attachment_src),this.ids.push(t.attachment_id);this.$route&&"/merchant/config/picture"===this.$route.fullPath&&"dialog"!==this.$route.query.field||this.pictrueList.list.map((function(t,e){t.isSelect?i.selectItem.filter((function(e,n){t.attachment_id==e.attachment_id&&(t.num=n+1)})):t.num=0})),console.log(this.pictrueList.list)},checkPics:function(){if(this.checkPicList.length)if(console.log(this.$route),this.$route){if("1"===this.$route.query.type){if(this.checkPicList.length>1)return this.$message.warning("最多只能选一张图片");form_create_helper.set(this.$route.query.field,this.checkPicList[0]),form_create_helper.close(this.$route.query.field)}if("2"===this.$route.query.type&&(this.checkedAll=[].concat(Object(c["a"])(this.checkedMore),Object(c["a"])(this.checkPicList)),form_create_helper.set(this.$route.query.field,Array.from(new Set(this.checkedAll))),form_create_helper.close(this.$route.query.field)),"dialog"===this.$route.query.field){for(var t="",e=0;e';nowEditor.editor.execCommand("insertHtml",t),nowEditor.dialog.close(!0)}}else{if(console.log(this.isMore,this.checkPicList.length),"1"===this.isMore&&this.checkPicList.length>1)return this.$message.warning("最多只能选一张图片");console.log(this.checkPicList),this.$emit("getImage",this.checkPicList)}else this.$message.warning("请先选择图片")},editPicList:function(t){var e=this,n={ids:this.ids};this.$modalSure().then((function(){Object(s["w"])(n).then((function(t){t.message;e.$message.success("删除成功"),e.getFileList(""),e.checkPicList=[]})).catch((function(t){var n=t.message;e.$message.error(n)}))}))},handleSelClick:function(t){this.ids.length?(this.sleOptions={attachment_category_name:t.attachment_category_name,attachment_category_id:t.attachment_category_id},this.getMove()):this.$message.warning("请先选择图片")},getMove:function(){var t=this;Object(s["k"])(this.ids,this.sleOptions.attachment_category_id).then(function(){var e=Object(o["a"])(Object(r["a"])().mark((function e(n){return Object(r["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.$message.success(n.message),t.clearBoth(),t.getFileList("");case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.clearBoth(),t.$message.error(e.message)}))},clearBoth:function(){this.sleOptions={attachment_category_name:"",attachment_category_id:""},this.checkPicList=[],this.ids=[]}}},h=d,m=(n("c50c"),n("2877")),f=Object(m["a"])(h,i,a,!1,null,"47dc4ee2",null);e["default"]=f.exports},b7be:function(t,e,n){"use strict";n.d(e,"I",(function(){return a})),n.d(e,"B",(function(){return r})),n.d(e,"D",(function(){return o})),n.d(e,"C",(function(){return c})),n.d(e,"y",(function(){return s})),n.d(e,"U",(function(){return u})),n.d(e,"F",(function(){return l})),n.d(e,"A",(function(){return d})),n.d(e,"z",(function(){return h})),n.d(e,"G",(function(){return m})),n.d(e,"H",(function(){return f})),n.d(e,"J",(function(){return p})),n.d(e,"g",(function(){return g})),n.d(e,"d",(function(){return b})),n.d(e,"l",(function(){return v})),n.d(e,"K",(function(){return A})),n.d(e,"lb",(function(){return w})),n.d(e,"j",(function(){return y})),n.d(e,"i",(function(){return k})),n.d(e,"m",(function(){return C})),n.d(e,"f",(function(){return E})),n.d(e,"k",(function(){return j})),n.d(e,"n",(function(){return I})),n.d(e,"ib",(function(){return x})),n.d(e,"h",(function(){return S})),n.d(e,"c",(function(){return O})),n.d(e,"b",(function(){return R})),n.d(e,"V",(function(){return _})),n.d(e,"jb",(function(){return M})),n.d(e,"W",(function(){return D})),n.d(e,"fb",(function(){return z})),n.d(e,"kb",(function(){return V})),n.d(e,"e",(function(){return B})),n.d(e,"gb",(function(){return F})),n.d(e,"cb",(function(){return L})),n.d(e,"eb",(function(){return N})),n.d(e,"db",(function(){return T})),n.d(e,"bb",(function(){return Q})),n.d(e,"hb",(function(){return P})),n.d(e,"q",(function(){return H})),n.d(e,"p",(function(){return U})),n.d(e,"w",(function(){return G})),n.d(e,"u",(function(){return W})),n.d(e,"t",(function(){return Z})),n.d(e,"s",(function(){return Y})),n.d(e,"x",(function(){return J})),n.d(e,"o",(function(){return q})),n.d(e,"r",(function(){return X})),n.d(e,"Z",(function(){return K})),n.d(e,"v",(function(){return $})),n.d(e,"ab",(function(){return tt})),n.d(e,"X",(function(){return et})),n.d(e,"a",(function(){return nt})),n.d(e,"E",(function(){return it})),n.d(e,"R",(function(){return at})),n.d(e,"T",(function(){return rt})),n.d(e,"S",(function(){return ot})),n.d(e,"Y",(function(){return ct})),n.d(e,"P",(function(){return st})),n.d(e,"O",(function(){return ut})),n.d(e,"L",(function(){return lt})),n.d(e,"N",(function(){return dt})),n.d(e,"M",(function(){return ht})),n.d(e,"Q",(function(){return mt}));var i=n("0c6d");function a(t){return i["a"].get("store/coupon/update/".concat(t,"/form"))}function r(t){return i["a"].get("store/coupon/lst",t)}function o(t,e){return i["a"].post("store/coupon/status/".concat(t),{status:e})}function c(){return i["a"].get("store/coupon/create/form")}function s(t){return i["a"].get("store/coupon/clone/form/".concat(t))}function u(t){return i["a"].get("store/coupon/issue",t)}function l(t){return i["a"].get("store/coupon/select",t)}function d(t){return i["a"].get("store/coupon/detail/".concat(t))}function h(t){return i["a"].delete("store/coupon/delete/".concat(t))}function m(t){return i["a"].post("store/coupon/send",t)}function f(t){return i["a"].get("store/coupon_send/lst",t)}function p(){return i["a"].get("broadcast/room/create/form")}function g(t){return i["a"].get("broadcast/room/lst",t)}function b(t){return i["a"].get("broadcast/room/detail/".concat(t))}function v(t,e){return i["a"].post("broadcast/room/mark/".concat(t),{mark:e})}function A(){return i["a"].get("broadcast/goods/create/form")}function w(t){return i["a"].get("broadcast/goods/update/form/".concat(t))}function y(t){return i["a"].get("broadcast/goods/lst",t)}function k(t){return i["a"].get("broadcast/goods/detail/".concat(t))}function C(t,e){return i["a"].post("broadcast/goods/status/".concat(t),e)}function E(t){return i["a"].post("broadcast/room/export_goods",t)}function j(t,e){return i["a"].post("broadcast/goods/mark/".concat(t),{mark:e})}function I(t,e){return i["a"].post("broadcast/room/status/".concat(t),e)}function x(t,e){return i["a"].get("broadcast/room/goods/".concat(t),e)}function S(t){return i["a"].delete("broadcast/goods/delete/".concat(t))}function O(t){return i["a"].delete("broadcast/room/delete/".concat(t))}function R(t){return i["a"].post("broadcast/goods/batch_create",t)}function _(t,e){return i["a"].post("broadcast/room/feedsPublic/".concat(t),{status:e})}function M(t,e){return i["a"].post("broadcast/room/on_sale/".concat(t),e)}function D(t,e){return i["a"].post("broadcast/room/comment/".concat(t),{status:e})}function z(t,e){return i["a"].post("broadcast/room/closeKf/".concat(t),{status:e})}function V(t){return i["a"].get("broadcast/room/push_message/".concat(t))}function B(t){return i["a"].post("broadcast/room/rm_goods",t)}function F(t){return i["a"].get("broadcast/room/update/form/".concat(t))}function L(){return i["a"].get("broadcast/assistant/create/form")}function N(t){return i["a"].get("broadcast/assistant/update/".concat(t,"/form"))}function T(t){return i["a"].delete("broadcast/assistant/delete/".concat(t))}function Q(t){return i["a"].get("broadcast/assistant/lst",t)}function P(t){return i["a"].get("broadcast/room/addassistant/form/".concat(t))}function H(){return i["a"].get("config/others/group_buying")}function U(t){return i["a"].post("store/product/group/create",t)}function G(t,e){return i["a"].post("store/product/group/update/".concat(t),e)}function W(t){return i["a"].get("store/product/group/lst",t)}function Z(t){return i["a"].get("store/product/group/detail/".concat(t))}function Y(t){return i["a"].delete("store/product/group/delete/".concat(t))}function J(t,e){return i["a"].post("store/product/group/status/".concat(t),{status:e})}function q(t){return i["a"].get("store/product/group/buying/lst",t)}function X(t,e){return i["a"].get("store/product/group/buying/detail/".concat(t),e)}function K(t,e){return i["a"].get("store/seckill_product/detail/".concat(t),e)}function $(t,e){return i["a"].post("/store/product/group/sort/".concat(t),e)}function tt(t,e){return i["a"].post("/store/seckill_product/sort/".concat(t),e)}function et(t,e){return i["a"].post("/store/product/presell/sort/".concat(t),e)}function nt(t,e){return i["a"].post("/store/product/assist/sort/".concat(t),e)}function it(t,e){return i["a"].get("/store/coupon/product/".concat(t),e)}function at(t){return i["a"].get("config/".concat(t))}function rt(){return i["a"].get("integral/title")}function ot(t){return i["a"].get("integral/lst",t)}function ct(t){return i["a"].get("store/product/attr_value/".concat(t))}function st(t){return i["a"].post("discounts/create",t)}function ut(t){return i["a"].get("discounts/lst",t)}function lt(t,e){return i["a"].post("discounts/status/".concat(t),{status:e})}function dt(t){return i["a"].get("discounts/detail/".concat(t))}function ht(t){return i["a"].delete("discounts/delete/".concat(t))}function mt(t,e){return i["a"].post("discounts/update/".concat(t),e)}},bbcc:function(t,e,n){"use strict";var i=n("a78e"),a=n.n(i),r="".concat(location.origin),o=("https:"===location.protocol?"wss":"ws")+":"+location.hostname,c=a.a.get("MerInfo")?JSON.parse(a.a.get("MerInfo")).login_title:"",s={httpUrl:r,https:r+"/mer",wsSocketUrl:o,title:c||"加载中..."};e["a"]=s},bc35:function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-clipboard",use:"icon-clipboard-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},bd3e:function(t,e,n){},c043:function(t,e,n){"use strict";n("c068")},c068:function(t,e,n){},c24f:function(t,e,n){"use strict";n.d(e,"f",(function(){return a})),n.d(e,"q",(function(){return r})),n.d(e,"r",(function(){return o})),n.d(e,"s",(function(){return c})),n.d(e,"v",(function(){return s})),n.d(e,"h",(function(){return u})),n.d(e,"k",(function(){return l})),n.d(e,"j",(function(){return d})),n.d(e,"i",(function(){return h})),n.d(e,"p",(function(){return m})),n.d(e,"o",(function(){return f})),n.d(e,"n",(function(){return p})),n.d(e,"m",(function(){return g})),n.d(e,"a",(function(){return b})),n.d(e,"c",(function(){return v})),n.d(e,"e",(function(){return A})),n.d(e,"b",(function(){return w})),n.d(e,"d",(function(){return y})),n.d(e,"x",(function(){return k})),n.d(e,"y",(function(){return C})),n.d(e,"w",(function(){return E})),n.d(e,"g",(function(){return j})),n.d(e,"u",(function(){return I})),n.d(e,"z",(function(){return x})),n.d(e,"l",(function(){return S})),n.d(e,"t",(function(){return O}));var i=n("0c6d");function a(){return i["a"].get("captcha")}function r(t){return i["a"].post("login",t)}function o(){return i["a"].get("login_config")}function c(){return i["a"].get("logout")}function s(){return i["a"].get("system/admin/edit/password/form")}function u(){return i["a"].get("system/admin/edit/form")}function l(){return i["a"].get("menus")}function d(t){return Object(i["a"])({url:"/vue-element-admin/user/info",method:"get",params:{token:t}})}function h(){return i["a"].get("info")}function m(t){return i["a"].get("user/label/lst",t)}function f(){return i["a"].get("user/label/form")}function p(t){return i["a"].get("user/label/form/"+t)}function g(t){return i["a"].delete("user/label/".concat(t))}function b(t){return i["a"].post("auto_label/create",t)}function v(t){return i["a"].get("auto_label/lst",t)}function A(t,e){return i["a"].post("auto_label/update/"+t,e)}function w(t){return i["a"].delete("auto_label/delete/".concat(t))}function y(t){return i["a"].post("auto_label/sync/"+t)}function k(t){return i["a"].get("user/lst",t)}function C(t,e){return i["a"].get("user/order/".concat(t),e)}function E(t,e){return i["a"].get("user/coupon/".concat(t),e)}function j(t){return i["a"].get("user/change_label/form/"+t)}function I(t){return i["a"].post("/info/update",t)}function x(t){return i["a"].get("user/search_log",t)}function S(){return i["a"].get("../api/version")}function O(t){return i["a"].get("user/svip/order_lst",t)}},c4c8:function(t,e,n){"use strict";n.d(e,"Jb",(function(){return a})),n.d(e,"Hb",(function(){return r})),n.d(e,"Lb",(function(){return o})),n.d(e,"Ib",(function(){return c})),n.d(e,"Kb",(function(){return s})),n.d(e,"Mb",(function(){return u})),n.d(e,"j",(function(){return l})),n.d(e,"l",(function(){return d})),n.d(e,"k",(function(){return h})),n.d(e,"Nb",(function(){return m})),n.d(e,"eb",(function(){return f})),n.d(e,"bb",(function(){return p})),n.d(e,"Cb",(function(){return g})),n.d(e,"ab",(function(){return b})),n.d(e,"fb",(function(){return v})),n.d(e,"X",(function(){return A})),n.d(e,"sb",(function(){return w})),n.d(e,"qb",(function(){return y})),n.d(e,"lb",(function(){return k})),n.d(e,"cb",(function(){return C})),n.d(e,"tb",(function(){return E})),n.d(e,"r",(function(){return j})),n.d(e,"q",(function(){return I})),n.d(e,"p",(function(){return x})),n.d(e,"wb",(function(){return S})),n.d(e,"M",(function(){return O})),n.d(e,"Fb",(function(){return R})),n.d(e,"Gb",(function(){return _})),n.d(e,"Eb",(function(){return M})),n.d(e,"w",(function(){return D})),n.d(e,"W",(function(){return z})),n.d(e,"nb",(function(){return V})),n.d(e,"ob",(function(){return B})),n.d(e,"t",(function(){return F})),n.d(e,"Bb",(function(){return L})),n.d(e,"mb",(function(){return N})),n.d(e,"Db",(function(){return T})),n.d(e,"s",(function(){return Q})),n.d(e,"ub",(function(){return P})),n.d(e,"rb",(function(){return H})),n.d(e,"vb",(function(){return U})),n.d(e,"Y",(function(){return G})),n.d(e,"Z",(function(){return W})),n.d(e,"N",(function(){return Z})),n.d(e,"Q",(function(){return Y})),n.d(e,"P",(function(){return J})),n.d(e,"O",(function(){return q})),n.d(e,"T",(function(){return X})),n.d(e,"R",(function(){return K})),n.d(e,"S",(function(){return $})),n.d(e,"x",(function(){return tt})),n.d(e,"a",(function(){return et})),n.d(e,"i",(function(){return nt})),n.d(e,"g",(function(){return it})),n.d(e,"f",(function(){return at})),n.d(e,"e",(function(){return rt})),n.d(e,"b",(function(){return ot})),n.d(e,"d",(function(){return ct})),n.d(e,"h",(function(){return st})),n.d(e,"c",(function(){return ut})),n.d(e,"db",(function(){return lt})),n.d(e,"gb",(function(){return dt})),n.d(e,"pb",(function(){return ht})),n.d(e,"y",(function(){return mt})),n.d(e,"C",(function(){return ft})),n.d(e,"E",(function(){return pt})),n.d(e,"G",(function(){return gt})),n.d(e,"A",(function(){return bt})),n.d(e,"z",(function(){return vt})),n.d(e,"D",(function(){return At})),n.d(e,"F",(function(){return wt})),n.d(e,"B",(function(){return yt})),n.d(e,"Tb",(function(){return kt})),n.d(e,"H",(function(){return Ct})),n.d(e,"L",(function(){return Et})),n.d(e,"J",(function(){return jt})),n.d(e,"I",(function(){return It})),n.d(e,"K",(function(){return xt})),n.d(e,"v",(function(){return St})),n.d(e,"Rb",(function(){return Ot})),n.d(e,"Sb",(function(){return Rt})),n.d(e,"Qb",(function(){return _t})),n.d(e,"Ob",(function(){return Mt})),n.d(e,"Pb",(function(){return Dt})),n.d(e,"u",(function(){return zt})),n.d(e,"n",(function(){return Vt})),n.d(e,"m",(function(){return Bt})),n.d(e,"o",(function(){return Ft})),n.d(e,"hb",(function(){return Lt})),n.d(e,"Ab",(function(){return Nt})),n.d(e,"jb",(function(){return Tt})),n.d(e,"kb",(function(){return Qt})),n.d(e,"yb",(function(){return Pt})),n.d(e,"xb",(function(){return Ht})),n.d(e,"zb",(function(){return Ut})),n.d(e,"ib",(function(){return Gt})),n.d(e,"U",(function(){return Wt})),n.d(e,"V",(function(){return Zt}));var i=n("0c6d");function a(){return i["a"].get("store/category/lst")}function r(){return i["a"].get("store/category/create/form")}function o(t){return i["a"].get("store/category/update/form/".concat(t))}function c(t){return i["a"].delete("store/category/delete/".concat(t))}function s(t,e){return i["a"].post("store/category/status/".concat(t),{status:e})}function u(t){return i["a"].get("store/attr/template/lst",t)}function l(t){return i["a"].post("store/attr/template/create",t)}function d(t,e){return i["a"].post("store/attr/template/".concat(t),e)}function h(t){return i["a"].delete("store/attr/template/".concat(t))}function m(){return i["a"].get("/store/attr/template/list")}function f(t){return i["a"].get("store/product/lst",t)}function p(t){return i["a"].delete("store/product/delete/".concat(t))}function g(t){return i["a"].delete("store/seckill_product/delete/".concat(t))}function b(t){return i["a"].post("store/product/create",t)}function v(t){return i["a"].post("store/product/preview",t)}function A(t){return i["a"].post("store/productcopy/save",t)}function w(t){return i["a"].post("store/seckill_product/create",t)}function y(t){return i["a"].post("store/seckill_product/preview",t)}function k(t,e){return i["a"].post("store/product/update/".concat(t),e)}function C(t){return i["a"].get("store/product/detail/".concat(t))}function E(t){return i["a"].get("store/seckill_product/detail/".concat(t))}function j(){return i["a"].get("store/category/select")}function I(){return i["a"].get("store/category/list")}function x(){return i["a"].get("store/category/brandlist")}function S(){return i["a"].get("store/shipping/list")}function O(){return i["a"].get("store/product/lst_filter")}function R(){return i["a"].get("store/seckill_product/lst_filter")}function _(t,e){return i["a"].post("store/product/status/".concat(t),{status:e})}function M(t,e){return i["a"].post("store/seckill_product/status/".concat(t),{status:e})}function D(t){return i["a"].get("store/product/list",t)}function z(){return i["a"].get("store/product/config")}function V(t){return i["a"].get("store/reply/lst",t)}function B(t){return i["a"].get("store/reply/form/".concat(t))}function F(t){return i["a"].delete("store/product/destory/".concat(t))}function L(t){return i["a"].delete("store/seckill_product/destory/".concat(t))}function N(t){return i["a"].post("store/product/restore/".concat(t))}function T(t){return i["a"].post("store/seckill_product/restore/".concat(t))}function Q(t){return i["a"].get("store/productcopy/get",t)}function P(t){return i["a"].get("store/seckill_product/lst",t)}function H(){return i["a"].get("store/seckill_product/lst_time")}function U(t,e){return i["a"].post("store/seckill_product/update/".concat(t),e)}function G(){return i["a"].get("store/productcopy/count")}function W(t){return i["a"].get("store/productcopy/lst",t)}function Z(t){return i["a"].post("store/product/presell/create",t)}function Y(t,e){return i["a"].post("store/product/presell/update/".concat(t),e)}function J(t){return i["a"].get("store/product/presell/lst",t)}function q(t){return i["a"].get("store/product/presell/detail/".concat(t))}function X(t,e){return i["a"].post("store/product/presell/status/".concat(t),{status:e})}function K(t){return i["a"].delete("store/product/presell/delete/".concat(t))}function $(t){return i["a"].post("store/product/presell/preview",t)}function tt(t){return i["a"].post("store/product/group/preview",t)}function et(t){return i["a"].post("store/product/assist/create",t)}function nt(t,e){return i["a"].post("store/product/assist/update/".concat(t),e)}function it(t){return i["a"].get("store/product/assist/lst",t)}function at(t){return i["a"].get("store/product/assist/detail/".concat(t))}function rt(t){return i["a"].post("store/product/assist/preview",t)}function ot(t){return i["a"].delete("store/product/assist/delete/".concat(t))}function ct(t){return i["a"].get("store/product/assist_set/lst",t)}function st(t,e){return i["a"].post("store/product/assist/status/".concat(t),{status:e})}function ut(t,e){return i["a"].get("store/product/assist_set/detail/".concat(t),e)}function lt(){return i["a"].get("store/product/temp_key")}function dt(t,e){return i["a"].post("/store/product/sort/".concat(t),e)}function ht(t,e){return i["a"].post("/store/reply/sort/".concat(t),e)}function mt(t){return i["a"].post("guarantee/create",t)}function ft(t){return i["a"].get("guarantee/lst",t)}function pt(t,e){return i["a"].post("guarantee/sort/".concat(t),e)}function gt(t,e){return i["a"].post("guarantee/update/".concat(t),e)}function bt(t){return i["a"].get("guarantee/detail/".concat(t))}function vt(t){return i["a"].delete("guarantee/delete/".concat(t))}function At(t){return i["a"].get("guarantee/select",t)}function wt(t,e){return i["a"].post("guarantee/status/".concat(t),e)}function yt(){return i["a"].get("guarantee/list")}function kt(t){return i["a"].post("upload/video",t)}function Ct(){return i["a"].get("product/label/create/form")}function Et(t){return i["a"].get("product/label/update/".concat(t,"/form"))}function jt(t){return i["a"].get("product/label/lst",t)}function It(t){return i["a"].delete("product/label/delete/".concat(t))}function xt(t,e){return i["a"].post("product/label/status/".concat(t),{status:e})}function St(){return i["a"].get("product/label/option")}function Ot(t,e){return i["a"].post("store/product/labels/".concat(t),e)}function Rt(t,e){return i["a"].post("store/seckill_product/labels/".concat(t),e)}function _t(t,e){return i["a"].post("store/product/presell/labels/".concat(t),e)}function Mt(t,e){return i["a"].post("store/product/assist/labels/".concat(t),e)}function Dt(t,e){return i["a"].post("store/product/group/labels/".concat(t),e)}function zt(t,e){return i["a"].post("store/product/free_trial/".concat(t),e)}function Vt(t){return i["a"].post("store/product/batch_status",t)}function Bt(t){return i["a"].post("store/product/batch_labels",t)}function Ft(t){return i["a"].post("store/product/batch_temp",t)}function Lt(t){return i["a"].post("store/params/temp/create",t)}function Nt(t,e){return i["a"].post("store/params/temp/update/".concat(t),e)}function Tt(t){return i["a"].get("store/params/temp/detail/".concat(t))}function Qt(t){return i["a"].get("store/params/temp/lst",t)}function Pt(t){return i["a"].delete("store/params/temp/delete/".concat(t))}function Ht(t){return i["a"].get("store/params/temp/detail/".concat(t))}function Ut(t){return i["a"].get("store/params/temp/select",t)}function Gt(t){return i["a"].get("store/params/temp/show",t)}function Wt(t){return i["a"].post("store/product/batch_ext",t)}function Zt(t){return i["a"].post("store/product/batch_svip",t)}},c50c:function(t,e,n){"use strict";n("75d9")},c653:function(t,e,n){var i={"./app.js":"d9cd","./errorLog.js":"4d49","./mobildConfig.js":"3087","./permission.js":"31c2","./settings.js":"0781","./tagsView.js":"7509","./user.js":"0f9a"};function a(t){var e=r(t);return n(e)}function r(t){var e=i[t];if(!(e+1)){var n=new Error("Cannot find module '"+t+"'");throw n.code="MODULE_NOT_FOUND",n}return e}a.keys=function(){return Object.keys(i)},a.resolve=r,t.exports=a,a.id="c653"},c6b6:function(t,e,n){},c829:function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-chart",use:"icon-chart-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},cbb7:function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-email",use:"icon-email-usage",viewBox:"0 0 128 96",content:''});o.a.add(c);e["default"]=c},cf1c:function(t,e,n){"use strict";n("7b72")},cf1e2:function(t,e,n){t.exports={menuText:"#bfcbd9",menuActiveText:"#6394F9",subMenuActiveText:"#f4f4f5",menuBg:"#0B1529",menuHover:"#182848",subMenuBg:"#030C17",subMenuHover:"#182848",sideBarWidth:"180px"}},d056:function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-people",use:"icon-people-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},d0a6:function(t,e,n){"use strict";n("8544")},d249:function(t,e,n){"use strict";n("b55e")},d7ec:function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-eye-open",use:"icon-eye-open-usage",viewBox:"0 0 1024 1024",content:''});o.a.add(c);e["default"]=c},d9cd:function(t,e,n){"use strict";n.r(e);var i=n("a78e"),a=n.n(i),r={sidebar:{opened:!a.a.get("sidebarStatus")||!!+a.a.get("sidebarStatus"),withoutAnimation:!1},device:"desktop",size:a.a.get("size")||"medium"},o={TOGGLE_SIDEBAR:function(t){t.sidebar.opened=!t.sidebar.opened,t.sidebar.withoutAnimation=!1,t.sidebar.opened?a.a.set("sidebarStatus",1):a.a.set("sidebarStatus",0)},CLOSE_SIDEBAR:function(t,e){a.a.set("sidebarStatus",0),t.sidebar.opened=!1,t.sidebar.withoutAnimation=e},TOGGLE_DEVICE:function(t,e){t.device=e},SET_SIZE:function(t,e){t.size=e,a.a.set("size",e)}},c={toggleSideBar:function(t){var e=t.commit;e("TOGGLE_SIDEBAR")},closeSideBar:function(t,e){var n=t.commit,i=e.withoutAnimation;n("CLOSE_SIDEBAR",i)},toggleDevice:function(t,e){var n=t.commit;n("TOGGLE_DEVICE",e)},setSize:function(t,e){var n=t.commit;n("SET_SIZE",e)}};e["default"]={namespaced:!0,state:r,mutations:o,actions:c}},dbc7:function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-exit-fullscreen",use:"icon-exit-fullscreen-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},dcf8:function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-nested",use:"icon-nested-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},ddd5:function(t,e,n){},de6e:function(t,e,n){},de9d:function(t,e,n){},e03b:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFEAAABRCAYAAACqj0o2AAAAAXNSR0IArs4c6QAACjNJREFUeF7tnH9sFNcRx7/z9owP+84/iG1+p2eCa4vwwxJEgtJKRkoTKAlKIa5MC8qhFIlUoIJaqZFaya6i/oFUCVBRmwok3IYkCEODCClOS5VDSUrSpAkkDhAw+JIQfhjjM+ezsfHuTrVrDI7x3e2+3TVGvf0LyTPzZj477828t+8gZB7HBMixhYwBZCC6kAQZiBmILhBwwUQmEzMQXSDggolRk4n8q7n5NwQqdBbTFSjTjdh0IDQQowCixr81aM2C9OaxOk7T5v9ed4GBYxP3DGL3pjmT9azsR0lQFYAqGgTMalTcDzbCxBEheo/k/O7E11Z13ZQbUYgt4ZC/uKR4BQGrAHoUgM+1YAgqmI8wsPtq69X9pfXRHtdspzE0IhBjGysLxvh8PwdoIwgF3gU3EA53gHnrTVXdVrj1eId34/Vb9hSikXklDxT/GuD1IPIQX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MIeQ/+FhKY2ONRE3ww+QgTYAuNtK33RpKgtFx7cqViaVRpP2NoGWILSH4HygpcXQaYomjuUbSsCBNgCJFH2htAEtSBL0u+J82S6fyliH2r41FtZy0Z7RlKk0gt6r2x+23q7YJkMj1PnBYR5g7NLWvtPB48gZ7sJ6tyONzg0WA/ysA7mwDU6K8VbU/bt8fn11UjiwDoIdFZJAvxFwX/MhaFvb3kjafzsqiLSxw1z0Zm2YsirMKjZ+HIn45UgDBaL4Wa5tlZS0cCMI2xNYZuRP82f4W8Ehko0XWLoqxzkvyP2lvtGPSNkRzbZw9bgsPc2vLzsCjU5br8060e//rASP42IyCsKJ43e6MMGbiph41tqDkJGz/jFcqE02IwoUT7xHmlGw47r/6t2DcqUSTjEtyECsKwuJeQ5TyfDhErFKftijvTKflu5NDrUi5EqsIhgUpHu9eZHLCpg5BZY1XFnx+fZ9NzW+Iy0EsC4ZFsi2glEUnIUjrqqxqKwuaE44ASvWJZmExILrxFVA6fquKSd4oIUF9vUvyzvdIT2HpHcuAYuyh3LAQ9+d0JuYmlXnluHNyRWS41yc1+UyIuP9aHIJe3xPv2lBy1X4bkyr35SCGjEy8r1qcZui8IT/aZWsn4nDRSK0eMyBiFEMcSA1GB6BvbUf3Zjt7YavwpPfOZmGZ6h/ta6L5f4Xp8e5thR0GSG8fuek82YAosSZKjWYRAJu/0jqisf7y9Qs9+0qR/kTaouW0YlJhxQyII9riJHGTOUqgiAb9qMI9h/Iuoi1txB4ISEFsn+T7rg++Zz3wJ5lJlYELxh81xjlF15r13r7TIzFVrcQoBdGK4f8nmQxEF952BmIGogsEXDCRycQMRBcIuGAik4kuQPwfBUpzf3HDNvAAAAAASUVORK5CYII="},e534:function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-theme",use:"icon-theme-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},e7c8:function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-tree-table",use:"icon-tree-table-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},ea55:function(t,e,n){},eb1b:function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-form",use:"icon-form-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},eb24:function(t,e,n){"use strict";n("f3c0")},ec9f:function(t,e,n){},ed08:function(t,e,n){"use strict";n.d(e,"c",(function(){return a})),n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return o}));n("4917"),n("4f7f"),n("5df3"),n("1c4c"),n("28a5"),n("ac6a"),n("456d"),n("f576"),n("6b54"),n("3b2b"),n("a481");var i=n("53ca");function a(t,e){if(0===arguments.length)return null;var n,a=e||"{y}-{m}-{d} {h}:{i}:{s}";"object"===Object(i["a"])(t)?n=t:("string"===typeof t&&(t=/^[0-9]+$/.test(t)?parseInt(t):t.replace(new RegExp(/-/gm),"/")),"number"===typeof t&&10===t.toString().length&&(t*=1e3),n=new Date(t));var r={y:n.getFullYear(),m:n.getMonth()+1,d:n.getDate(),h:n.getHours(),i:n.getMinutes(),s:n.getSeconds(),a:n.getDay()},o=a.replace(/{([ymdhisa])+}/g,(function(t,e){var n=r[e];return"a"===e?["日","一","二","三","四","五","六"][n]:n.toString().padStart(2,"0")}));return o}function r(t,e){t=10===(""+t).length?1e3*parseInt(t):+t;var n=new Date(t),i=Date.now(),r=(i-n)/1e3;return r<30?"刚刚":r<3600?Math.ceil(r/60)+"分钟前":r<86400?Math.ceil(r/3600)+"小时前":r<172800?"1天前":e?a(t,e):n.getMonth()+1+"月"+n.getDate()+"日"+n.getHours()+"时"+n.getMinutes()+"分"}function o(t,e,n){var i,a,r,o,c,s=function s(){var u=+new Date-o;u0?i=setTimeout(s,e-u):(i=null,n||(c=t.apply(r,a),i||(r=a=null)))};return function(){for(var a=arguments.length,u=new Array(a),l=0;l'});o.a.add(c);e["default"]=c},f9a1:function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-pdf",use:"icon-pdf-usage",viewBox:"0 0 1024 1024",content:''});o.a.add(c);e["default"]=c},fc4a:function(t,e,n){}},[[0,"runtime","chunk-elementUI","chunk-libs"]]]);
\ No newline at end of file
+(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["app"],{0:function(t,e,n){t.exports=n("56d7")},"0781":function(t,e,n){"use strict";n.r(e);n("24ab");var i=n("83d6"),a=n.n(i),r=a.a.showSettings,o=a.a.tagsView,c=a.a.fixedHeader,s=a.a.sidebarLogo,u={theme:JSON.parse(localStorage.getItem("themeColor"))?JSON.parse(localStorage.getItem("themeColor")):"#1890ff",showSettings:r,tagsView:o,fixedHeader:c,sidebarLogo:s,isEdit:!1},l={CHANGE_SETTING:function(t,e){var n=e.key,i=e.value;t.hasOwnProperty(n)&&(t[n]=i)},SET_ISEDIT:function(t,e){t.isEdit=e}},d={changeSetting:function(t,e){var n=t.commit;n("CHANGE_SETTING",e)},setEdit:function(t,e){var n=t.commit;n("SET_ISEDIT",e)}};e["default"]={namespaced:!0,state:u,mutations:l,actions:d}},"096e":function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-skill",use:"icon-skill-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},"0a4d":function(t,e,n){"use strict";n("ddd5")},"0c6d":function(t,e,n){"use strict";n("ac6a");var i=n("bc3a"),a=n.n(i),r=n("4360"),o=n("bbcc"),c=a.a.create({baseURL:o["a"].https,timeout:6e4}),s={login:!0};function u(t){var e=r["a"].getters.token,n=t.headers||{};return e&&(n["X-Token"]=e,t.headers=n),new Promise((function(e,n){c(t).then((function(t){var i=t.data||{};return 200!==t.status?n({message:"请求失败",res:t,data:i}):-1===[41e4,410001,410002,4e4].indexOf(i.status)?200===i.status?e(i,t):n({message:i.message,res:t,data:i}):void r["a"].dispatch("user/resetToken").then((function(){location.reload()}))})).catch((function(t){return n({message:t})}))}))}var l=["post","put","patch","delete"].reduce((function(t,e){return t[e]=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return u(Object.assign({url:t,data:n,method:e},s,i))},t}),{});["get","head"].forEach((function(t){l[t]=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return u(Object.assign({url:e,params:n,method:t},s,i))}})),e["a"]=l},"0f9a":function(t,e,n){"use strict";n.r(e);var i=n("c7eb"),a=(n("96cf"),n("1da1")),r=(n("7f7f"),n("c24f")),o=n("5f87"),c=n("a18c"),s=n("a78e"),u=n.n(s),l={token:Object(o["a"])(),name:"",avatar:"",introduction:"",roles:[],menuList:JSON.parse(localStorage.getItem("MenuList")),sidebarWidth:window.localStorage.getItem("sidebarWidth"),sidebarStyle:window.localStorage.getItem("sidebarStyle")},d={SET_MENU_LIST:function(t,e){t.menuList=e},SET_TOKEN:function(t,e){t.token=e},SET_INTRODUCTION:function(t,e){t.introduction=e},SET_NAME:function(t,e){t.name=e},SET_AVATAR:function(t,e){t.avatar=e},SET_ROLES:function(t,e){t.roles=e},SET_SIDEBAR_WIDTH:function(t,e){t.sidebarWidth=e},SET_SIDEBAR_STYLE:function(t,e){t.sidebarStyle=e,window.localStorage.setItem("sidebarStyle",e)}},h={login:function(t,e){var n=t.commit;return new Promise((function(t,i){Object(r["q"])(e).then((function(e){var i=e.data;n("SET_TOKEN",i.token),u.a.set("MerName",i.admin.account),Object(o["c"])(i.token),t(i)})).catch((function(t){i(t)}))}))},getMenus:function(t){var e=this,n=t.commit;return new Promise((function(t,i){Object(r["k"])().then((function(e){n("SET_MENU_LIST",e.data),localStorage.setItem("MenuList",JSON.stringify(e.data)),t(e)})).catch((function(t){e.$message.error(t.message),i(t)}))}))},getInfo:function(t){var e=t.commit,n=t.state;return new Promise((function(t,i){Object(r["j"])(n.token).then((function(n){var a=n.data;a||i("Verification failed, please Login again.");var r=a.roles,o=a.name,c=a.avatar,s=a.introduction;(!r||r.length<=0)&&i("getInfo: roles must be a non-null array!"),e("SET_ROLES",r),e("SET_NAME",o),e("SET_AVATAR",c),e("SET_INTRODUCTION",s),t(a)})).catch((function(t){i(t)}))}))},logout:function(t){var e=t.commit,n=t.state,i=t.dispatch;return new Promise((function(t,a){Object(r["s"])(n.token).then((function(){e("SET_TOKEN",""),e("SET_ROLES",[]),Object(o["b"])(),Object(c["d"])(),u.a.remove(),i("tagsView/delAllViews",null,{root:!0}),t()})).catch((function(t){a(t)}))}))},resetToken:function(t){var e=t.commit;return new Promise((function(t){e("SET_TOKEN",""),e("SET_ROLES",[]),Object(o["b"])(),t()}))},changeRoles:function(t,e){var n=t.commit,r=t.dispatch;return new Promise(function(){var t=Object(a["a"])(Object(i["a"])().mark((function t(a){var s,u,l,d;return Object(i["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return s=e+"-token",n("SET_TOKEN",s),Object(o["c"])(s),t.next=5,r("getInfo");case 5:return u=t.sent,l=u.roles,Object(c["d"])(),t.next=10,r("permission/generateRoutes",l,{root:!0});case 10:d=t.sent,c["c"].addRoutes(d),r("tagsView/delAllViews",null,{root:!0}),a();case 14:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())}};e["default"]={namespaced:!0,state:l,mutations:d,actions:h}},1:function(t,e){},"12a5":function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-shopping",use:"icon-shopping-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},1430:function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-qq",use:"icon-qq-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},"14b7":function(t,e,n){},"15ae":function(t,e,n){"use strict";n("7680")},1779:function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-bug",use:"icon-bug-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},"17df":function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-international",use:"icon-international-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},"18f0":function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-link",use:"icon-link-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},"1aef":function(t,e,n){"use strict";n("ec9f")},"1e38":function(t,e,n){"use strict";n("c6b6")},"225f":function(t,e,n){"use strict";n("3ddf")},"24ab":function(t,e,n){t.exports={theme:"#1890ff"}},2580:function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-language",use:"icon-language-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},2801:function(t,e,n){"use strict";n.d(e,"m",(function(){return a})),n.d(e,"q",(function(){return r})),n.d(e,"o",(function(){return o})),n.d(e,"p",(function(){return c})),n.d(e,"n",(function(){return s})),n.d(e,"c",(function(){return u})),n.d(e,"b",(function(){return l})),n.d(e,"u",(function(){return d})),n.d(e,"j",(function(){return h})),n.d(e,"k",(function(){return m})),n.d(e,"a",(function(){return f})),n.d(e,"s",(function(){return p})),n.d(e,"r",(function(){return g})),n.d(e,"t",(function(){return b})),n.d(e,"h",(function(){return v})),n.d(e,"g",(function(){return A})),n.d(e,"f",(function(){return w})),n.d(e,"e",(function(){return y})),n.d(e,"i",(function(){return k})),n.d(e,"d",(function(){return C}));var i=n("0c6d");function a(t){return i["a"].get("store/order/reconciliation/lst",t)}function r(t,e){return i["a"].post("store/order/reconciliation/status/".concat(t),e)}function o(t,e){return i["a"].get("store/order/reconciliation/".concat(t,"/order"),e)}function c(t,e){return i["a"].get("store/order/reconciliation/".concat(t,"/refund"),e)}function s(t){return i["a"].get("store/order/reconciliation/mark/".concat(t,"/form"))}function u(t){return i["a"].get("financial_record/list",t)}function l(t){return i["a"].get("financial_record/export",t)}function d(t){return i["a"].get("financial/export",t)}function h(){return i["a"].get("version")}function m(){return i["a"].get("financial/account/form")}function f(){return i["a"].get("financial/create/form")}function p(t){return i["a"].get("financial/lst",t)}function g(t){return i["a"].get("financial/detail/".concat(t))}function b(t){return i["a"].get("financial/mark/".concat(t,"/form"))}function v(t){return i["a"].get("financial_record/lst",t)}function A(t,e){return i["a"].get("financial_record/detail/".concat(t),e)}function w(t){return i["a"].get("financial_record/title",t)}function y(t,e){return i["a"].get("financial_record/detail_export/".concat(t),e)}function k(t){return i["a"].get("financial_record/count",t)}function C(t){return i["a"].get("/bill/deposit",t)}},"29c0":function(t,e,n){},"2a3d":function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-password",use:"icon-password-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},"2f11":function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-peoples",use:"icon-peoples-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},3046:function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-money",use:"icon-money-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},3087:function(t,e,n){"use strict";n.r(e);n("ac6a"),n("456d"),n("7f7f");e["default"]={namespaced:!0,state:{configName:"",pageTitle:"",pageName:"",pageShow:1,pageColor:0,pagePic:0,pageColorPicker:"#f5f5f5",pageTabVal:0,pagePicUrl:"",defaultArray:{},pageFooter:{name:"pageFoot",setUp:{tabVal:"0"},status:{title:"是否自定义",name:"status",status:!1},txtColor:{title:"文字颜色",name:"txtColor",default:[{item:"#282828"}],color:[{item:"#282828"}]},activeTxtColor:{title:"选中文字颜色",name:"txtColor",default:[{item:"#F62C2C"}],color:[{item:"#F62C2C"}]},bgColor:{title:"背景颜色",name:"bgColor",default:[{item:"#fff"}],color:[{item:"#fff"}]},menuList:[{imgList:[n("5946"),n("641c")],name:"首页",link:"/pages/index/index"},{imgList:[n("410e"),n("5640")],name:"分类",link:"/pages/goods_cate/goods_cate"},{imgList:[n("e03b"),n("905e")],name:"逛逛",link:"/pages/plant_grass/index"},{imgList:[n("af8c"),n("73fc")],name:"购物车",link:"/pages/order_addcart/order_addcart"},{imgList:[n("3dde"),n("8ea6")],name:"我的",link:"/pages/user/index"}]}},mutations:{FOOTER:function(t,e){t.pageFooter.status.title=e.title,t.pageFooter.menuList[2]=e.name},ADDARRAY:function(t,e){e.val.id="id"+e.val.timestamp,t.defaultArray[e.num]=e.val},DELETEARRAY:function(t,e){delete t.defaultArray[e.num]},ARRAYREAST:function(t,e){delete t.defaultArray[e]},defaultArraySort:function(t,e){var n=r(t.defaultArray),i=[],a={};function r(t){var e=Object.keys(t),n=e.map((function(e){return t[e]}));return n}function o(t,n,i){return t.forEach((function(t,n){t.id||(t.id="id"+t.timestamp),e.list.forEach((function(e,n){t.id==e.id&&(t.timestamp=e.num)}))})),t}void 0!=e.oldIndex?i=JSON.parse(JSON.stringify(o(n,e.newIndex,e.oldIndex))):(n.splice(e.newIndex,0,e.element.data().defaultConfig),i=JSON.parse(JSON.stringify(o(n,0,0))));for(var c=0;c'});o.a.add(c);e["default"]=c},"31c2":function(t,e,n){"use strict";n.r(e),n.d(e,"filterAsyncRoutes",(function(){return o}));var i=n("5530"),a=(n("ac6a"),n("6762"),n("2fdb"),n("a18c"));function r(t,e){return!e.meta||!e.meta.roles||t.some((function(t){return e.meta.roles.includes(t)}))}function o(t,e){var n=[];return t.forEach((function(t){var a=Object(i["a"])({},t);r(e,a)&&(a.children&&(a.children=o(a.children,e)),n.push(a))})),n}var c={routes:[],addRoutes:[]},s={SET_ROUTES:function(t,e){t.addRoutes=e,t.routes=a["b"].concat(e)}},u={generateRoutes:function(t,e){var n=t.commit;return new Promise((function(t){var i;i=e.includes("admin2")?a["asyncRoutes"]||[]:o(a["asyncRoutes"],e),n("SET_ROUTES",i),t(i)}))}};e["default"]={namespaced:!0,state:c,mutations:s,actions:u}},3289:function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-list",use:"icon-list-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},"3dde":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFEAAABRCAYAAACqj0o2AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA25pVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5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IHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6MkQxNzQyQjdFRjA2MTFFODhBREFDNDFBMUJFNDQxREIiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz6rO72jAAABsUlEQVR42uzcsU4CQRDG8TtFGhLtKIydJJQ0VD4CRisfQe2oLCyECiwoqHwJ38PEiobGChMri+skoVHIOZtoQi4k7nqZUbj/l0yIEy93/nBng5zEaZpGJF+2IAARRBAJiCCCCCIBEUQQNzmlkG9OmrUjebiRqihe01SqKzXO9BtSPaldxXPPpG6ro8mjGqLkSqpl8OQmUueZXlvqxOiX61hzOW//4QopGZ07eJUxE9lY1nBj+Ydxs+spx/EHUg9FR3yVemE5MxMJiCCCCCIBEUQQQSQggggiiOTnrPufwuo5j98HMYruWc7MRPJbxA+j63r37Glkqj0T+1JvyrPUYQ1W9L97ZcVzz6XuQg+KQ/4FI2nWCrE8q6MJM5GNBUResfjE3d7WNtpYnjP9Q6lro41lrInYkTozeoIvM187wAuLfUXqVHM57xgBlj17Ggm+iZSZyMYCIogERBBBBJGACCKIIBIQQQQRRAIiiCCCSEAEsSiIC6Prmnv2NDILPSD0zfvh16PmR7u4eyBX3d7menuR7nvfi6Wf0Tsxn27MTAQRRAIiiCCCSEAEEcRNzqcAAwAGvzdJXw0gUgAAAABJRU5ErkJggg=="},"432f":function(t,e,n){},4360:function(t,e,n){"use strict";n("a481"),n("ac6a");var i=n("2b0e"),a=n("2f62"),r=(n("7f7f"),{sidebar:function(t){return t.app.sidebar},size:function(t){return t.app.size},device:function(t){return t.app.device},visitedViews:function(t){return t.tagsView.visitedViews},isEdit:function(t){return t.settings.isEdit},cachedViews:function(t){return t.tagsView.cachedViews},token:function(t){return t.user.token},avatar:function(t){return t.user.avatar},name:function(t){return t.user.name},introduction:function(t){return t.user.introduction},roles:function(t){return t.user.roles},permission_routes:function(t){return t.permission.routes},errorLogs:function(t){return t.errorLog.logs},menuList:function(t){return t.user.menuList}}),o=r,c=n("bfa9");i["default"].use(a["a"]);var s=n("c653"),u=s.keys().reduce((function(t,e){var n=e.replace(/^\.\/(.*)\.\w+$/,"$1"),i=s(e);return t[n]=i.default,t}),{}),l=(new c["a"]({storage:window.localStorage}),new a["a"].Store({modules:u,getters:o}));e["a"]=l},4678:function(t,e,n){var i={"./af":"2bfb","./af.js":"2bfb","./ar":"8e73","./ar-dz":"a356","./ar-dz.js":"a356","./ar-kw":"423e","./ar-kw.js":"423e","./ar-ly":"1cfd","./ar-ly.js":"1cfd","./ar-ma":"0a84","./ar-ma.js":"0a84","./ar-sa":"8230","./ar-sa.js":"8230","./ar-tn":"6d83","./ar-tn.js":"6d83","./ar.js":"8e73","./az":"485c","./az.js":"485c","./be":"1fc1","./be.js":"1fc1","./bg":"84aa","./bg.js":"84aa","./bm":"a7fa","./bm.js":"a7fa","./bn":"9043","./bn-bd":"9686","./bn-bd.js":"9686","./bn.js":"9043","./bo":"d26a","./bo.js":"d26a","./br":"6887","./br.js":"6887","./bs":"2554","./bs.js":"2554","./ca":"d716","./ca.js":"d716","./cs":"3c0d","./cs.js":"3c0d","./cv":"03ec","./cv.js":"03ec","./cy":"9797","./cy.js":"9797","./da":"0f14","./da.js":"0f14","./de":"b469","./de-at":"b3eb","./de-at.js":"b3eb","./de-ch":"bb71","./de-ch.js":"bb71","./de.js":"b469","./dv":"598a","./dv.js":"598a","./el":"8d47","./el.js":"8d47","./en-au":"0e6b","./en-au.js":"0e6b","./en-ca":"3886","./en-ca.js":"3886","./en-gb":"39a6","./en-gb.js":"39a6","./en-ie":"e1d3","./en-ie.js":"e1d3","./en-il":"7333","./en-il.js":"7333","./en-in":"ec2e","./en-in.js":"ec2e","./en-nz":"6f50","./en-nz.js":"6f50","./en-sg":"b7e9","./en-sg.js":"b7e9","./eo":"65db","./eo.js":"65db","./es":"898b","./es-do":"0a3c","./es-do.js":"0a3c","./es-mx":"b5b7","./es-mx.js":"b5b7","./es-us":"55c9","./es-us.js":"55c9","./es.js":"898b","./et":"ec18","./et.js":"ec18","./eu":"0ff2","./eu.js":"0ff2","./fa":"8df4","./fa.js":"8df4","./fi":"81e9","./fi.js":"81e9","./fil":"d69a","./fil.js":"d69a","./fo":"0721","./fo.js":"0721","./fr":"9f26","./fr-ca":"d9f8","./fr-ca.js":"d9f8","./fr-ch":"0e49","./fr-ch.js":"0e49","./fr.js":"9f26","./fy":"7118","./fy.js":"7118","./ga":"5120","./ga.js":"5120","./gd":"f6b4","./gd.js":"f6b4","./gl":"8840","./gl.js":"8840","./gom-deva":"aaf2","./gom-deva.js":"aaf2","./gom-latn":"0caa","./gom-latn.js":"0caa","./gu":"e0c5","./gu.js":"e0c5","./he":"c7aa","./he.js":"c7aa","./hi":"dc4d","./hi.js":"dc4d","./hr":"4ba9","./hr.js":"4ba9","./hu":"5b14","./hu.js":"5b14","./hy-am":"d6b6","./hy-am.js":"d6b6","./id":"5038","./id.js":"5038","./is":"0558","./is.js":"0558","./it":"6e98","./it-ch":"6f12","./it-ch.js":"6f12","./it.js":"6e98","./ja":"079e","./ja.js":"079e","./jv":"b540","./jv.js":"b540","./ka":"201b","./ka.js":"201b","./kk":"6d79","./kk.js":"6d79","./km":"e81d","./km.js":"e81d","./kn":"3e92","./kn.js":"3e92","./ko":"22f8","./ko.js":"22f8","./ku":"2421","./ku.js":"2421","./ky":"9609","./ky.js":"9609","./lb":"440c","./lb.js":"440c","./lo":"b29d","./lo.js":"b29d","./lt":"26f9","./lt.js":"26f9","./lv":"b97c","./lv.js":"b97c","./me":"293c","./me.js":"293c","./mi":"688b","./mi.js":"688b","./mk":"6909","./mk.js":"6909","./ml":"02fb","./ml.js":"02fb","./mn":"958b","./mn.js":"958b","./mr":"39bd","./mr.js":"39bd","./ms":"ebe4","./ms-my":"6403","./ms-my.js":"6403","./ms.js":"ebe4","./mt":"1b45","./mt.js":"1b45","./my":"8689","./my.js":"8689","./nb":"6ce3","./nb.js":"6ce3","./ne":"3a39","./ne.js":"3a39","./nl":"facd","./nl-be":"db29","./nl-be.js":"db29","./nl.js":"facd","./nn":"b84c","./nn.js":"b84c","./oc-lnc":"167b","./oc-lnc.js":"167b","./pa-in":"f3ff","./pa-in.js":"f3ff","./pl":"8d57","./pl.js":"8d57","./pt":"f260","./pt-br":"d2d4","./pt-br.js":"d2d4","./pt.js":"f260","./ro":"972c","./ro.js":"972c","./ru":"957c","./ru.js":"957c","./sd":"6784","./sd.js":"6784","./se":"ffff","./se.js":"ffff","./si":"eda5","./si.js":"eda5","./sk":"7be6","./sk.js":"7be6","./sl":"8155","./sl.js":"8155","./sq":"c8f3","./sq.js":"c8f3","./sr":"cf1e","./sr-cyrl":"13e9","./sr-cyrl.js":"13e9","./sr.js":"cf1e","./ss":"52bd","./ss.js":"52bd","./sv":"5fbd","./sv.js":"5fbd","./sw":"74dc","./sw.js":"74dc","./ta":"3de5","./ta.js":"3de5","./te":"5cbb","./te.js":"5cbb","./tet":"576c","./tet.js":"576c","./tg":"3b1b","./tg.js":"3b1b","./th":"10e8","./th.js":"10e8","./tk":"5aff","./tk.js":"5aff","./tl-ph":"0f38","./tl-ph.js":"0f38","./tlh":"cf75","./tlh.js":"cf75","./tr":"0e81","./tr.js":"0e81","./tzl":"cf51","./tzl.js":"cf51","./tzm":"c109","./tzm-latn":"b53d","./tzm-latn.js":"b53d","./tzm.js":"c109","./ug-cn":"6117","./ug-cn.js":"6117","./uk":"ada2","./uk.js":"ada2","./ur":"5294","./ur.js":"5294","./uz":"2e8c","./uz-latn":"010e","./uz-latn.js":"010e","./uz.js":"2e8c","./vi":"2921","./vi.js":"2921","./x-pseudo":"fd7e","./x-pseudo.js":"fd7e","./yo":"7f33","./yo.js":"7f33","./zh-cn":"5c3a","./zh-cn.js":"5c3a","./zh-hk":"49ab","./zh-hk.js":"49ab","./zh-mo":"3a6c","./zh-mo.js":"3a6c","./zh-tw":"90ea","./zh-tw.js":"90ea"};function a(t){var e=r(t);return n(e)}function r(t){var e=i[t];if(!(e+1)){var n=new Error("Cannot find module '"+t+"'");throw n.code="MODULE_NOT_FOUND",n}return e}a.keys=function(){return Object.keys(i)},a.resolve=r,t.exports=a,a.id="4678"},"47f1":function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-table",use:"icon-table-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},"47ff":function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-message",use:"icon-message-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},"4b27":function(t,e,n){"use strict";n("5445")},"4d49":function(t,e,n){"use strict";n.r(e);var i={logs:[]},a={ADD_ERROR_LOG:function(t,e){t.logs.push(e)},CLEAR_ERROR_LOG:function(t){t.logs.splice(0)}},r={addErrorLog:function(t,e){var n=t.commit;n("ADD_ERROR_LOG",e)},clearErrorLog:function(t){var e=t.commit;e("CLEAR_ERROR_LOG")}};e["default"]={namespaced:!0,state:i,mutations:a,actions:r}},"4d7e":function(t,e,n){"use strict";n("de9d")},"4df5":function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-eye",use:"icon-eye-usage",viewBox:"0 0 128 64",content:''});o.a.add(c);e["default"]=c},"4fb4":function(t,e,n){t.exports=n.p+"mer/img/no.7de91001.png"},"51ff":function(t,e,n){var i={"./404.svg":"a14a","./bug.svg":"1779","./chart.svg":"c829","./clipboard.svg":"bc35","./component.svg":"56d6","./dashboard.svg":"f782","./documentation.svg":"90fb","./drag.svg":"9bbf","./edit.svg":"aa46","./education.svg":"ad1c","./email.svg":"cbb7","./example.svg":"30c3","./excel.svg":"6599","./exit-fullscreen.svg":"dbc7","./eye-open.svg":"d7ec","./eye.svg":"4df5","./form.svg":"eb1b","./fullscreen.svg":"9921","./guide.svg":"6683","./icon.svg":"9d91","./international.svg":"17df","./language.svg":"2580","./link.svg":"18f0","./list.svg":"3289","./lock.svg":"ab00","./message.svg":"47ff","./money.svg":"3046","./nested.svg":"dcf8","./password.svg":"2a3d","./pdf.svg":"f9a1","./people.svg":"d056","./peoples.svg":"2f11","./qq.svg":"1430","./search.svg":"8e8d","./shopping.svg":"12a5","./size.svg":"8644","./skill.svg":"096e","./star.svg":"708a","./tab.svg":"8fb7","./table.svg":"47f1","./theme.svg":"e534","./tree-table.svg":"e7c8","./tree.svg":"93cd","./user.svg":"b3b5","./wechat.svg":"80da","./zip.svg":"8aa6"};function a(t){var e=r(t);return n(e)}function r(t){var e=i[t];if(!(e+1)){var n=new Error("Cannot find module '"+t+"'");throw n.code="MODULE_NOT_FOUND",n}return e}a.keys=function(){return Object.keys(i)},a.resolve=r,t.exports=a,a.id="51ff"},5445:function(t,e,n){},"55d1":function(t,e,n){"use strict";n("bd3e")},5640:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFEAAABRCAYAAACqj0o2AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA25pVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVm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hu2sXZO1hu2sfFIgejFeBK+EMzkRRYXYs3RcvwHnNNTRzokPYj8Z3XvAPqynKfP/czlF332xl7CLnDCPYDiOk4rwDPtYCjmRwgLEdP5jGW1vq9goLK7rfkz43pHh2lJhqWtW51uxU0sn+HLisw/wwoLfbbETzXBeswQwF3BOQ6E3kZITKSwLWFhmyN/e1jZY77fConZjzsSaBr79VpiXBIiNGLe3NcX3u4Hvb8KZnAhEBEQgAhGICIhABCIQERCBCMS0aB6tsEKM29vyhu2sQlIg1mK8CDzCmZyIokIcWDqufsA5DXW1c+LzaNR8tYu/B3La9jZ/bjOje+97MPYbA8vh7cbkRCACEQERiEAEIgIiEIG4zPoTYAALKF4dRnTU+gAAAABJRU5ErkJggg=="},"56d6":function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-component",use:"icon-component-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},"56d7":function(t,e,n){"use strict";n.r(e);var i={};n.r(i),n.d(i,"parseTime",(function(){return ie["c"]})),n.d(i,"formatTime",(function(){return ie["b"]})),n.d(i,"timeAgo",(function(){return Le})),n.d(i,"numberFormatter",(function(){return Ne})),n.d(i,"toThousandFilter",(function(){return Te})),n.d(i,"uppercaseFirst",(function(){return Qe})),n.d(i,"filterEmpty",(function(){return ae})),n.d(i,"filterYesOrNo",(function(){return re})),n.d(i,"filterShowOrHide",(function(){return oe})),n.d(i,"filterShowOrHideForFormConfig",(function(){return ce})),n.d(i,"filterYesOrNoIs",(function(){return se})),n.d(i,"paidFilter",(function(){return ue})),n.d(i,"payTypeFilter",(function(){return le})),n.d(i,"orderStatusFilter",(function(){return de})),n.d(i,"activityOrderStatus",(function(){return he})),n.d(i,"cancelOrderStatusFilter",(function(){return me})),n.d(i,"orderPayType",(function(){return fe})),n.d(i,"takeOrderStatusFilter",(function(){return pe})),n.d(i,"orderRefundFilter",(function(){return ge})),n.d(i,"accountStatusFilter",(function(){return be})),n.d(i,"reconciliationFilter",(function(){return ve})),n.d(i,"reconciliationStatusFilter",(function(){return Ae})),n.d(i,"productStatusFilter",(function(){return we})),n.d(i,"couponTypeFilter",(function(){return ye})),n.d(i,"couponUseTypeFilter",(function(){return ke})),n.d(i,"broadcastStatusFilter",(function(){return Ce})),n.d(i,"liveReviewStatusFilter",(function(){return Ee})),n.d(i,"broadcastType",(function(){return je})),n.d(i,"broadcastDisplayType",(function(){return Ie})),n.d(i,"filterClose",(function(){return xe})),n.d(i,"exportOrderStatusFilter",(function(){return Se})),n.d(i,"transactionTypeFilter",(function(){return Oe})),n.d(i,"seckillStatusFilter",(function(){return Re})),n.d(i,"seckillReviewStatusFilter",(function(){return _e})),n.d(i,"deliveryStatusFilter",(function(){return Me})),n.d(i,"organizationType",(function(){return De})),n.d(i,"id_docType",(function(){return ze})),n.d(i,"deliveryType",(function(){return Ve})),n.d(i,"runErrandStatus",(function(){return Be}));n("456d"),n("ac6a"),n("cadf"),n("551c"),n("f751"),n("097d");var a=n("2b0e"),r=n("a78e"),o=n.n(r),c=(n("f5df"),n("5c96")),s=n.n(c),u=n("c1df"),l=n.n(u),d=n("c7ad"),h=n.n(d),m=(n("24ab"),n("b20f"),n("fc4a"),n("de6e"),n("caf9")),f=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.isRouterAlive?n("div",{attrs:{id:"app"}},[n("router-view")],1):t._e()},p=[],g={name:"App",provide:function(){return{reload:this.reload}},data:function(){return{isRouterAlive:!0}},methods:{reload:function(){this.isRouterAlive=!1,this.$nextTick((function(){this.isRouterAlive=!0}))}}},b=g,v=n("2877"),A=Object(v["a"])(b,f,p,!1,null,null,null),w=A.exports,y=n("4360"),k=n("a18c"),C=n("30ba"),E=n.n(C),j=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("el-dialog",{attrs:{title:"上传图片",visible:t.visible,width:"896px","before-close":t.handleClose},on:{"update:visible":function(e){t.visible=e}}},[t.visible?n("upload-index",{attrs:{"is-more":t.isMore},on:{getImage:t.getImage}}):t._e()],1)],1)},I=[],x=n("b5b8"),S={name:"UploadFroms",components:{UploadIndex:x["default"]},data:function(){return{visible:!1,callback:function(){},isMore:""}},watch:{},methods:{handleClose:function(){this.visible=!1},getImage:function(t){this.callback(t),this.visible=!1}}},O=S,R=Object(v["a"])(O,j,I,!1,null,"76ff32bf",null),_=R.exports;a["default"].use(s.a,{size:o.a.get("size")||"medium"});var M,D={install:function(t,e){var n=t.extend(_),i=new n;i.$mount(document.createElement("div")),document.body.appendChild(i.$el),t.prototype.$modalUpload=function(t,e){i.visible=!0,i.callback=t,i.isMore=e}}},z=D,V=n("6625"),B=n.n(V),F=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("el-form",{ref:"formDynamic",staticClass:"attrFrom mb20",attrs:{size:"small",model:t.formDynamic,rules:t.rules,"label-width":"100px"},nativeOn:{submit:function(t){t.preventDefault()}}},[n("el-row",{attrs:{gutter:24}},[n("el-col",{attrs:{span:8}},[n("el-form-item",{attrs:{label:"模板名称:",prop:"template_name"}},[n("el-input",{attrs:{placeholder:"请输入模板名称"},model:{value:t.formDynamic.template_name,callback:function(e){t.$set(t.formDynamic,"template_name",e)},expression:"formDynamic.template_name"}})],1)],1),t._v(" "),t._l(t.formDynamic.template_value,(function(e,i){return n("el-col",{key:i,staticClass:"noForm",attrs:{span:24}},[n("el-form-item",[n("div",{staticClass:"acea-row row-middle"},[n("span",{staticClass:"mr5"},[t._v(t._s(e.value))]),n("i",{staticClass:"el-icon-circle-close",on:{click:function(e){return t.handleRemove(i)}}})]),t._v(" "),n("div",{staticClass:"rulesBox"},[t._l(e.detail,(function(i,a){return n("el-tag",{key:a,staticClass:"mb5 mr10",attrs:{closable:"",size:"medium","disable-transitions":!1},on:{close:function(n){return t.handleClose(e.detail,a)}}},[t._v("\n "+t._s(i)+"\n ")])})),t._v(" "),e.inputVisible?n("el-input",{ref:"saveTagInput",refInFor:!0,staticClass:"input-new-tag",attrs:{size:"small",maxlength:"30"},on:{blur:function(n){return t.createAttr(e.detail.attrsVal,i)}},nativeOn:{keyup:function(n){return!n.type.indexOf("key")&&t._k(n.keyCode,"enter",13,n.key,"Enter")?null:t.createAttr(e.detail.attrsVal,i)}},model:{value:e.detail.attrsVal,callback:function(n){t.$set(e.detail,"attrsVal",n)},expression:"item.detail.attrsVal"}}):n("el-button",{staticClass:"button-new-tag",attrs:{size:"small"},on:{click:function(n){return t.showInput(e)}}},[t._v("+ 添加")])],2)])],1)})),t._v(" "),t.isBtn?n("el-col",{staticClass:"mt10",staticStyle:{"padding-left":"0","padding-right":"0"},attrs:{span:24}},[n("el-col",{attrs:{span:8}},[n("el-form-item",{attrs:{label:"规格:"}},[n("el-input",{attrs:{maxlength:"30",placeholder:"请输入规格"},model:{value:t.attrsName,callback:function(e){t.attrsName=e},expression:"attrsName"}})],1)],1),t._v(" "),n("el-col",{attrs:{span:8}},[n("el-form-item",{attrs:{label:"规格值:"}},[n("el-input",{attrs:{maxlength:"30",placeholder:"请输入规格值"},model:{value:t.attrsVal,callback:function(e){t.attrsVal=e},expression:"attrsVal"}})],1)],1),t._v(" "),n("el-col",{attrs:{span:8}},[n("el-button",{staticClass:"mr10",attrs:{type:"primary"},on:{click:t.createAttrName}},[t._v("确定")]),t._v(" "),n("el-button",{on:{click:t.offAttrName}},[t._v("取消")])],1)],1):t._e(),t._v(" "),t.spinShow?n("Spin",{attrs:{size:"large",fix:""}}):t._e()],2),t._v(" "),n("el-form-item",[t.isBtn?t._e():n("el-button",{staticClass:"mt10",attrs:{type:"primary",icon:"md-add"},on:{click:t.addBtn}},[t._v("添加新规格")])],1),t._v(" "),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(e){t.dialogFormVisible=!1}}},[t._v("取 消")]),t._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:function(e){t.dialogFormVisible=!1}}},[t._v("确 定")])],1)],1),t._v(" "),n("span",{staticClass:"footer acea-row"},[n("el-button",{on:{click:function(e){return t.resetForm("formDynamic")}}},[t._v("取消")]),t._v(" "),n("el-button",{attrs:{loading:t.loading,type:"primary"},on:{click:function(e){return t.handleSubmit("formDynamic")}}},[t._v("确 定")])],1)],1)},L=[],N=(n("7f7f"),n("c4c8")),T={name:"CreatAttr",props:{currentRow:{type:Object,default:null}},data:function(){return{dialogVisible:!1,inputVisible:!1,inputValue:"",spinShow:!1,loading:!1,grid:{xl:3,lg:3,md:12,sm:24,xs:24},modal:!1,index:1,rules:{template_name:[{required:!0,message:"请输入模板名称",trigger:"blur"}]},formDynamic:{template_name:"",template_value:[]},attrsName:"",attrsVal:"",formDynamicNameData:[],isBtn:!1,formDynamicName:[],results:[],result:[],ids:0}},watch:{currentRow:{handler:function(t,e){this.formDynamic=t},immediate:!0}},mounted:function(){var t=this;this.formDynamic.template_value.map((function(e){t.$set(e,"inputVisible",!1)}))},methods:{resetForm:function(t){this.$msgbox.close(),this.clear(),this.$refs[t].resetFields()},addBtn:function(){this.isBtn=!0},handleClose:function(t,e){t.splice(e,1)},offAttrName:function(){this.isBtn=!1},handleRemove:function(t){this.formDynamic.template_value.splice(t,1)},createAttrName:function(){if(this.attrsName&&this.attrsVal){var t={value:this.attrsName,detail:[this.attrsVal]};this.formDynamic.template_value.push(t);var e={};this.formDynamic.template_value=this.formDynamic.template_value.reduce((function(t,n){return!e[n.value]&&(e[n.value]=t.push(n)),t}),[]),this.attrsName="",this.attrsVal="",this.isBtn=!1}else{if(!this.attrsName)return void this.$message.warning("请输入规格名称!");if(!this.attrsVal)return void this.$message.warning("请输入规格值!")}},createAttr:function(t,e){if(t){this.formDynamic.template_value[e].detail.push(t);var n={};this.formDynamic.template_value[e].detail=this.formDynamic.template_value[e].detail.reduce((function(t,e){return!n[e]&&(n[e]=t.push(e)),t}),[]),this.formDynamic.template_value[e].inputVisible=!1}else this.$message.warning("请添加属性")},showInput:function(t){this.$set(t,"inputVisible",!0)},handleSubmit:function(t){var e=this;this.$refs[t].validate((function(t){return!!t&&(0===e.formDynamic.template_value.length?e.$message.warning("请至少添加一条属性规格!"):(e.loading=!0,void setTimeout((function(){e.currentRow.attr_template_id?Object(N["l"])(e.currentRow.attr_template_id,e.formDynamic).then((function(t){e.$message.success(t.message),e.loading=!1,setTimeout((function(){e.$msgbox.close()}),500),setTimeout((function(){e.clear(),e.$emit("getList")}),600)})).catch((function(t){e.loading=!1,e.$message.error(t.message)})):Object(N["j"])(e.formDynamic).then((function(t){e.$message.success(t.message),e.loading=!1,setTimeout((function(){e.$msgbox.close()}),500),setTimeout((function(){e.$emit("getList"),e.clear()}),600)})).catch((function(t){e.loading=!1,e.$message.error(t.message)}))}),1200)))}))},clear:function(){this.$refs["formDynamic"].resetFields(),this.formDynamic.template_value=[],this.formDynamic.template_name="",this.isBtn=!1,this.attrsName="",this.attrsVal=""},handleInputConfirm:function(){var t=this.inputValue;t&&this.dynamicTags.push(t),this.inputVisible=!1,this.inputValue=""}}},Q=T,P=(n("1e38"),Object(v["a"])(Q,F,L,!1,null,"5523fc24",null)),H=P.exports,U=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("el-form",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"ruleForm",attrs:{model:t.ruleForm,"label-width":"120px",size:"mini",rules:t.rules}},[n("el-form-item",{attrs:{label:"模板名称",prop:"name"}},[n("el-input",{staticClass:"withs",attrs:{placeholder:"请输入模板名称"},model:{value:t.ruleForm.name,callback:function(e){t.$set(t.ruleForm,"name",e)},expression:"ruleForm.name"}})],1),t._v(" "),n("el-form-item",{attrs:{label:"运费说明",prop:"info"}},[n("el-input",{staticClass:"withs",attrs:{type:"textarea",placeholder:"请输入运费说明"},model:{value:t.ruleForm.info,callback:function(e){t.$set(t.ruleForm,"info",e)},expression:"ruleForm.info"}})],1),t._v(" "),n("el-form-item",{attrs:{label:"计费方式",prop:"type"}},[n("el-radio-group",{on:{change:function(e){return t.changeRadio(t.ruleForm.type)}},model:{value:t.ruleForm.type,callback:function(e){t.$set(t.ruleForm,"type",e)},expression:"ruleForm.type"}},[n("el-radio",{attrs:{label:0}},[t._v("按件数")]),t._v(" "),n("el-radio",{attrs:{label:1}},[t._v("按重量")]),t._v(" "),n("el-radio",{attrs:{label:2}},[t._v("按体积")])],1)],1),t._v(" "),n("el-form-item",{attrs:{label:"配送区域及运费",prop:"region"}},[n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticClass:"tempBox",staticStyle:{width:"100%"},attrs:{data:t.ruleForm.region,border:"",fit:"","highlight-current-row":"",size:"mini"}},[n("el-table-column",{attrs:{align:"center",label:"可配送区域","min-width":"260"},scopedSlots:t._u([{key:"default",fn:function(e){return[0===e.$index?n("span",[t._v("默认全国 "),n("span",{staticStyle:{"font-weight":"bold"}},[t._v("(开启指定区域不配送时无效)")])]):n("LazyCascader",{staticStyle:{width:"98%"},attrs:{props:t.props,"collapse-tags":"",clearable:"",filterable:!1},model:{value:e.row.city_ids,callback:function(n){t.$set(e.row,"city_ids",n)},expression:"scope.row.city_ids"}})]}}])}),t._v(" "),n("el-table-column",{attrs:{"min-width":"130px",align:"center",label:t.columns.title},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[n("el-input-number",{attrs:{"controls-position":"right",min:0},model:{value:i.first,callback:function(e){t.$set(i,"first",e)},expression:"row.first"}})]}}])}),t._v(" "),n("el-table-column",{attrs:{"min-width":"120px",align:"center",label:"运费(元)"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[n("el-input-number",{attrs:{"controls-position":"right",min:0},model:{value:i.first_price,callback:function(e){t.$set(i,"first_price",e)},expression:"row.first_price"}})]}}])}),t._v(" "),n("el-table-column",{attrs:{"min-width":"120px",align:"center",label:t.columns.title2},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[n("el-input-number",{attrs:{"controls-position":"right",min:.1},model:{value:i.continue,callback:function(e){t.$set(i,"continue",e)},expression:"row.continue"}})]}}])}),t._v(" "),n("el-table-column",{attrs:{"class-name":"status-col",align:"center",label:"续费(元)","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[n("el-input-number",{attrs:{"controls-position":"right",min:0},model:{value:i.continue_price,callback:function(e){t.$set(i,"continue_price",e)},expression:"row.continue_price"}})]}}])}),t._v(" "),n("el-table-column",{attrs:{align:"center",label:"操作","min-width":"80",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.$index>0?n("el-button",{attrs:{type:"text",size:"small"},on:{click:function(n){return t.confirmEdit(t.ruleForm.region,e.$index)}}},[t._v("\n 删除\n ")]):t._e()]}}])})],1)],1),t._v(" "),n("el-form-item",[n("el-button",{attrs:{type:"primary",size:"mini",icon:"el-icon-edit"},on:{click:function(e){return t.addRegion(t.ruleForm.region)}}},[t._v("\n 添加配送区域\n ")])],1),t._v(" "),n("el-form-item",{attrs:{label:"指定包邮",prop:"appoint"}},[n("el-radio-group",{model:{value:t.ruleForm.appoint,callback:function(e){t.$set(t.ruleForm,"appoint",e)},expression:"ruleForm.appoint"}},[n("el-radio",{attrs:{label:1}},[t._v("开启")]),t._v(" "),n("el-radio",{attrs:{label:0}},[t._v("关闭")])],1)],1),t._v(" "),1===t.ruleForm.appoint?n("el-form-item",{attrs:{prop:"free"}},[n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticStyle:{width:"100%"},attrs:{data:t.ruleForm.free,border:"",fit:"","highlight-current-row":"",size:"mini"}},[n("el-table-column",{attrs:{align:"center",label:"选择地区","min-width":"220"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[n("LazyCascader",{staticStyle:{width:"95%"},attrs:{props:t.props,"collapse-tags":"",clearable:"",filterable:!1},model:{value:i.city_ids,callback:function(e){t.$set(i,"city_ids",e)},expression:"row.city_ids"}})]}}],null,!1,719238884)}),t._v(" "),n("el-table-column",{attrs:{"min-width":"180px",align:"center",label:t.columns.title3},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[n("el-input-number",{attrs:{"controls-position":"right",min:1},model:{value:i.number,callback:function(e){t.$set(i,"number",e)},expression:"row.number"}})]}}],null,!1,2893068961)}),t._v(" "),n("el-table-column",{attrs:{"min-width":"120px",align:"center",label:"最低购买金额(元)"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[n("el-input-number",{attrs:{"controls-position":"right",min:.01},model:{value:i.price,callback:function(e){t.$set(i,"price",e)},expression:"row.price"}})]}}],null,!1,2216462721)}),t._v(" "),n("el-table-column",{attrs:{align:"center",label:"操作","min-width":"120",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-button",{attrs:{type:"text",size:"small"},on:{click:function(n){return t.confirmEdit(t.ruleForm.free,e.$index)}}},[t._v("\n 删除\n ")])]}}],null,!1,4029474057)})],1)],1):t._e(),t._v(" "),1===t.ruleForm.appoint?n("el-form-item",[n("el-button",{attrs:{type:"primary",size:"mini",icon:"el-icon-edit"},on:{click:function(e){return t.addFree(t.ruleForm.free)}}},[t._v("\n 添加指定包邮区域\n ")])],1):t._e(),t._v(" "),n("el-row",{attrs:{gutter:20}},[n("el-col",{attrs:{span:12}},[n("el-form-item",{attrs:{label:"指定区域不配送",prop:"undelivery"}},[n("el-radio-group",{model:{value:t.ruleForm.undelivery,callback:function(e){t.$set(t.ruleForm,"undelivery",e)},expression:"ruleForm.undelivery"}},[n("el-radio",{attrs:{label:1}},[t._v("自定义")]),t._v(" "),n("el-radio",{attrs:{label:2}},[t._v("开启")]),t._v(" "),n("el-radio",{attrs:{label:0}},[t._v("关闭")])],1),t._v(" "),n("br"),t._v('\n (说明: 选择"开启"时, 仅支持上表添加的配送区域)\n ')],1)],1),t._v(" "),n("el-col",{attrs:{span:12}},[1===t.ruleForm.undelivery?n("el-form-item",{staticClass:"noBox",attrs:{prop:"city_id3"}},[n("LazyCascader",{staticStyle:{width:"46%"},attrs:{placeholder:"请选择不配送区域",props:t.props,"collapse-tags":"",clearable:"",filterable:!1},model:{value:t.ruleForm.city_id3,callback:function(e){t.$set(t.ruleForm,"city_id3",e)},expression:"ruleForm.city_id3"}})],1):t._e()],1)],1),t._v(" "),n("el-form-item",{attrs:{label:"排序"}},[n("el-input",{staticClass:"withs",attrs:{placeholder:"请输入排序"},model:{value:t.ruleForm.sort,callback:function(e){t.$set(t.ruleForm,"sort",e)},expression:"ruleForm.sort"}})],1)],1),t._v(" "),n("span",{staticClass:"footer acea-row"},[n("el-button",{on:{click:function(e){return t.resetForm("ruleForm")}}},[t._v("取 消")]),t._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.onsubmit("ruleForm")}}},[t._v("确 定")])],1)],1)},G=[],W=(n("55dd"),n("2909")),Z=(n("c5f6"),n("8a9d")),Y=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"lazy-cascader",style:{width:t.width}},[t.disabled?n("div",{staticClass:"el-input__inner lazy-cascader-input lazy-cascader-input-disabled"},[n("span",{directives:[{name:"show",rawName:"v-show",value:t.placeholderVisible,expression:"placeholderVisible"}],staticClass:"lazy-cascader-placeholder"},[t._v("\n "+t._s(t.placeholder)+"\n ")]),t._v(" "),t.props.multiple?n("div",{staticClass:"lazy-cascader-tags"},t._l(t.labelArray,(function(e,i){return n("el-tag",{key:i,staticClass:"lazy-cascader-tag",attrs:{type:"info","disable-transitions":"",closable:""}},[n("span",[t._v(" "+t._s(e.label.join(t.separator)))])])})),1):n("div",{staticClass:"lazy-cascader-label"},[n("el-tooltip",{attrs:{placement:"top-start",content:t.labelObject.label.join(t.separator)}},[n("span",[t._v(t._s(t.labelObject.label.join(t.separator)))])])],1)]):n("el-popover",{ref:"popover",attrs:{trigger:"click",placement:"bottom-start"}},[n("div",{staticClass:"lazy-cascader-search"},[t.filterable?n("el-autocomplete",{staticClass:"inline-input",style:{width:t.searchWidth||"100%"},attrs:{"popper-class":t.suggestionsPopperClass,"prefix-icon":"el-icon-search",label:"name","fetch-suggestions":t.querySearch,"trigger-on-focus":!1,placeholder:"请输入"},on:{select:t.handleSelect,blur:function(e){t.isSearchEmpty=!1}},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.item;return[n("div",{staticClass:"name",class:t.isChecked(i[t.props.value])},[t._v("\n "+t._s(i[t.props.label].join(t.separator))+"\n ")])]}}],null,!1,1538741936),model:{value:t.keyword,callback:function(e){t.keyword=e},expression:"keyword"}}):t._e(),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:t.isSearchEmpty,expression:"isSearchEmpty"}],staticClass:"empty"},[t._v(t._s(t.searchEmptyText))])],1),t._v(" "),n("div",{staticClass:"lazy-cascader-panel"},[n("el-cascader-panel",{ref:"panel",attrs:{options:t.options,props:t.currentProps},on:{change:t.change},model:{value:t.current,callback:function(e){t.current=e},expression:"current"}})],1),t._v(" "),n("div",{staticClass:"el-input__inner lazy-cascader-input",class:t.disabled?"lazy-cascader-input-disabled":"",attrs:{slot:"reference"},slot:"reference"},[n("span",{directives:[{name:"show",rawName:"v-show",value:t.placeholderVisible,expression:"placeholderVisible"}],staticClass:"lazy-cascader-placeholder"},[t._v("\n "+t._s(t.placeholder)+"\n ")]),t._v(" "),t.props.multiple?n("div",{staticClass:"lazy-cascader-tags"},t._l(t.labelArray,(function(e,i){return n("el-tag",{key:i,staticClass:"lazy-cascader-tag",attrs:{type:"info",size:"small","disable-transitions":"",closable:""},on:{close:function(n){return t.handleClose(e)}}},[n("span",[t._v(" "+t._s(e.label.join(t.separator)))])])})),1):n("div",{staticClass:"lazy-cascader-label"},[n("el-tooltip",{attrs:{placement:"top-start",content:t.labelObject.label.join(t.separator)}},[n("span",[t._v(t._s(t.labelObject.label.join(t.separator)))])])],1),t._v(" "),t.clearable&&t.current.length>0?n("span",{staticClass:"lazy-cascader-clear",on:{click:function(e){return e.stopPropagation(),t.clearBtnClick(e)}}},[n("i",{staticClass:"el-icon-close"})]):t._e()])])],1)},J=[],q=n("c7eb"),X=(n("96cf"),n("1da1")),K=(n("20d6"),{props:{value:{type:Array,default:function(){return[]}},separator:{type:String,default:"/"},placeholder:{type:String,default:"请选择"},width:{type:String,default:"400px"},filterable:Boolean,clearable:Boolean,disabled:Boolean,props:{type:Object,default:function(){return{}}},suggestionsPopperClass:{type:String,default:"suggestions-popper-class"},searchWidth:{type:String},searchEmptyText:{type:String,default:"暂无数据"}},data:function(){return{isSearchEmpty:!1,keyword:"",options:[],current:[],labelObject:{label:[],value:[]},labelArray:[],currentProps:{multiple:this.props.multiple,checkStrictly:this.props.checkStrictly,value:this.props.value,label:this.props.label,leaf:this.props.leaf,lazy:!0,lazyLoad:this.lazyLoad}}},computed:{placeholderVisible:function(){return!this.current||0==this.current.length}},watch:{current:function(){this.getLabelArray()},value:function(t){this.current=t},keyword:function(){this.isSearchEmpty=!1}},created:function(){this.initOptions()},methods:{isChecked:function(t){if(this.props.multiple){var e=this.current.findIndex((function(e){return e.join()==t.join()}));return e>-1?"el-link el-link--primary":""}return t.join()==this.current.join()?"el-link el-link--primary":""},querySearch:function(t,e){var n=this;this.props.lazySearch(t,(function(t){e(t),t&&t.length||(n.isSearchEmpty=!0)}))},handleSelect:function(t){var e=this;if(this.props.multiple){var n=this.current.findIndex((function(n){return n.join()==t[e.props.value].join()}));-1==n&&(this.$refs.panel.clearCheckedNodes(),this.current.push(t[this.props.value]),this.$emit("change",this.current))}else null!=this.current&&t[this.props.value].join()===this.current.join()||(this.$refs.panel.activePath=[],this.current=t[this.props.value],this.$emit("change",this.current));this.keyword=""},initOptions:function(){var t=Object(X["a"])(Object(q["a"])().mark((function t(){var e=this;return Object(q["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:this.props.lazyLoad(0,(function(t){e.$set(e,"options",t),e.props.multiple?e.current=Object(W["a"])(e.value):e.current=e.value}));case 1:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),getLabelArray:function(){var t=Object(X["a"])(Object(q["a"])().mark((function t(){var e,n,i,a=this;return Object(q["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!this.props.multiple){t.next=16;break}e=[],n=0;case 3:if(!(n-1&&(this.$refs.panel.clearCheckedNodes(),this.current.splice(e,1),this.$emit("change",this.current))},clearBtnClick:function(){this.$refs.panel.clearCheckedNodes(),this.current=[],this.$emit("change",this.current)},change:function(){this.$emit("change",this.current)}}}),$=K,tt=(n("15ae"),Object(v["a"])($,Y,J,!1,null,null,null)),et=tt.exports,nt={name:"",type:0,appoint:0,sort:0,info:"",region:[{first:1,first_price:0,continue:1,continue_price:0,city_id:[],city_ids:[]}],undelivery:0,free:[],undelives:{},city_id3:[]},it={},at="重量(kg)",rt="体积(m³)",ot=[{title:"首件",title2:"续件",title3:"最低购买件数"},{title:"首件".concat(at),title2:"续件".concat(at),title3:"最低购买".concat(at)},{title:"首件".concat(rt),title2:"续件".concat(rt),title3:"最低购买".concat(rt)}],ct={name:"CreatTemplates",components:{LazyCascader:et},props:{tempId:{type:Number,default:0},componentKey:{type:Number,default:0}},data:function(){return{loading:!1,rules:{name:[{required:!0,message:"请输入模板名称",trigger:"change"}],info:[{required:!0,message:"请输入运费说明",trigger:"blur"},{min:3,max:500,message:"长度在 3 到 500 个字符",trigger:"blur"}],free:[{type:"array",required:!0,message:"请至少添加一个地区",trigger:"change"}],appoint:[{required:!0,message:"请选择是否指定包邮",trigger:"change"}],undelivery:[{required:!0,message:"请选择是否指定区域不配送",trigger:"change"}],type:[{required:!0,message:"请选择计费方式",trigger:"change"}],region:[{required:!0,message:"请选择活动区域",trigger:"change"}]},nodeKey:"city_id",props:{children:"children",label:"name",value:"id",multiple:!0,lazy:!0,lazyLoad:this.lazyLoad,checkStrictly:!0},dialogVisible:!1,ruleForm:Object.assign({},nt),listLoading:!1,cityList:[],columns:{title:"首件",title2:"续件",title3:"最低购买件数"}}},watch:{componentKey:{handler:function(t,e){t?this.getInfo():this.ruleForm={name:"",type:0,appoint:0,sort:0,region:[{first:1,first_price:0,continue:1,continue_price:0,city_id:[],city_ids:[]}],undelivery:0,free:[],undelives:{},city_id3:[]}}}},mounted:function(){this.tempId>0&&this.getInfo()},methods:{resetForm:function(t){this.$msgbox.close(),this.$refs[t].resetFields()},onClose:function(t){this.dialogVisible=!1,this.$refs[t].resetFields()},confirmEdit:function(t,e){t.splice(e,1)},changeRadio:function(t){this.columns=Object.assign({},ot[t])},addRegion:function(t){t.push(Object.assign({},{first:1,first_price:1,continue:1,continue_price:0,city_id:[],city_ids:[]}))},addFree:function(t){t.push(Object.assign({},{city_id:[],number:1,price:.01,city_ids:[]}))},lazyLoad:function(t,e){var n=this;if(it[t])it[t]().then((function(t){e(Object(W["a"])(t.data))}));else{var i=Object(Z["a"])(t);it[t]=function(){return i},i.then((function(n){n.data.forEach((function(t){t.leaf=0===t.snum})),it[t]=function(){return new Promise((function(t){setTimeout((function(){return t(n)}),300)}))},e(n.data)})).catch((function(t){n.$message.error(t.message)}))}},getInfo:function(){var t=this;this.loading=!0,Object(Z["d"])(this.tempId).then((function(e){t.dialogVisible=!0;var n=e.data;t.ruleForm={name:n.name,type:n.type,info:n.info,appoint:n.appoint,sort:n.sort,region:n.region,undelivery:n.undelivery,free:n.free,undelives:n.undelives,city_id3:n.undelives.city_ids||[]},t.ruleForm.region.map((function(e){t.$set(e,"city_id",e.city_ids[0]),t.$set(e,"city_ids",e.city_ids)})),t.ruleForm.free.map((function(e){t.$set(e,"city_id",e.city_ids[0]),t.$set(e,"city_ids",e.city_ids)})),t.changeRadio(n.type),t.loading=!1})).catch((function(e){t.$message.error(e.message),t.loading=!1}))},change:function(t){return t.map((function(t){var e=[];0!==t.city_ids.length&&(t.city_ids.map((function(t){e.push(t[t.length-1])})),t.city_id=e)})),t},changeOne:function(t){var e=[];if(0!==t.length)return t.map((function(t){e.push(t[t.length-1])})),e},onsubmit:function(t){var e=this,n={name:this.ruleForm.name,type:this.ruleForm.type,info:this.ruleForm.info,appoint:this.ruleForm.appoint,sort:this.ruleForm.sort,region:this.change(this.ruleForm.region),undelivery:this.ruleForm.undelivery,free:this.change(this.ruleForm.free),undelives:{city_id:this.changeOne(this.ruleForm.city_id3)}};this.$refs[t].validate((function(i){if(!i)return!1;0===e.tempId?Object(Z["b"])(n).then((function(n){e.$message.success(n.message),setTimeout((function(){e.$msgbox.close()}),500),setTimeout((function(){e.$emit("getList"),e.$refs[t].resetFields()}),600)})).catch((function(t){e.$message.error(t.message)})):Object(Z["f"])(e.tempId,n).then((function(n){e.$message.success(n.message),setTimeout((function(){e.$msgbox.close()}),500),setTimeout((function(){e.$emit("getList"),e.$refs[t].resetFields()}),600)})).catch((function(t){e.$message.error(t.message)}))}))}}},st=ct,ut=(n("967a"),Object(v["a"])(st,U,G,!1,null,"173db85a",null)),lt=ut.exports,dt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"divBox"},[n("div",{staticClass:"header clearfix"},[n("div",{staticClass:"container"},[n("el-form",{attrs:{inline:"",size:"small"}},[n("el-form-item",{attrs:{label:"优惠劵名称:"}},[n("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入优惠券名称",size:"small"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getList(e)}},model:{value:t.tableFrom.coupon_name,callback:function(e){t.$set(t.tableFrom,"coupon_name",e)},expression:"tableFrom.coupon_name"}},[n("el-button",{staticClass:"el-button-solt",attrs:{slot:"append",icon:"el-icon-search",size:"small"},on:{click:t.getList},slot:"append"})],1)],1)],1)],1)]),t._v(" "),n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],ref:"table",staticStyle:{width:"100%"},attrs:{data:t.tableData.data,size:"mini","max-height":"400","tooltip-effect":"dark"},on:{"selection-change":t.handleSelectionChange}},["wu"===t.handle?n("el-table-column",{attrs:{type:"selection",width:"55"}}):t._e(),t._v(" "),n("el-table-column",{attrs:{prop:"coupon_id",label:"ID","min-width":"50"}}),t._v(" "),n("el-table-column",{attrs:{prop:"title",label:"优惠券名称","min-width":"120"}}),t._v(" "),n("el-table-column",{attrs:{label:"优惠劵类型","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[n("span",[t._v(t._s(t._f("couponTypeFilter")(i.type)))])]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"coupon_price",label:"优惠券面值","min-width":"90"}}),t._v(" "),n("el-table-column",{attrs:{label:"最低消费额","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(0===e.row.use_min_price?"不限制":e.row.use_min_price))])]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"有效期限","min-width":"250"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(1===e.row.coupon_type?e.row.use_start_time+" 一 "+e.row.use_end_time:e.row.coupon_time))])]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"剩余数量","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(0===e.row.is_limited?"不限量":e.row.remain_count))])]}}])}),t._v(" "),"send"===t.handle?n("el-table-column",{attrs:{label:"操作","min-width":"120",fixed:"right",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-button",{staticClass:"mr10",attrs:{type:"text",size:"small"},on:{click:function(n){return t.send(e.row.id)}}},[t._v("发送")])]}}],null,!1,2106495788)}):t._e()],1),t._v(" "),n("div",{staticClass:"block mb20"},[n("el-pagination",{attrs:{"page-sizes":[2,20,30,40],"page-size":t.tableFrom.limit,"current-page":t.tableFrom.page,layout:"total, sizes, prev, pager, next, jumper",total:t.tableData.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1),t._v(" "),n("div",[n("el-button",{staticClass:"fr",attrs:{size:"small",type:"primary"},on:{click:t.ok}},[t._v("确定")]),t._v(" "),n("el-button",{staticClass:"fr mr20",attrs:{size:"small"},on:{click:t.close}},[t._v("取消")])],1)],1)},ht=[],mt=n("ade3"),ft=n("b7be"),pt=n("83d6"),gt=(M={name:"CouponList",props:{handle:{type:String,default:""},couponId:{type:Array,default:function(){return[]}},keyNum:{type:Number,default:0},couponData:{type:Array,default:function(){return[]}}},data:function(){return{roterPre:pt["roterPre"],listLoading:!0,tableData:{data:[],total:0},tableFrom:{page:1,limit:2,coupon_name:"",send_type:3},multipleSelection:[],attr:[],multipleSelectionAll:[],idKey:"coupon_id",nextPageFlag:!1}},watch:{keyNum:{deep:!0,handler:function(t){this.getList()}}},mounted:function(){this.tableFrom.page=1,this.getList(),this.multipleSelectionAll=this.couponData}},Object(mt["a"])(M,"watch",{couponData:{deep:!0,handler:function(t){this.multipleSelectionAll=this.couponData,this.getList()}}}),Object(mt["a"])(M,"methods",{close:function(){this.$msgbox.close(),this.multipleSelection=[]},handleSelectionChange:function(t){var e=this;this.multipleSelection=t,setTimeout((function(){e.changePageCoreRecordData()}),50)},setSelectRow:function(){if(this.multipleSelectionAll&&!(this.multipleSelectionAll.length<=0)){var t=this.idKey,e=[];this.multipleSelectionAll.forEach((function(n){e.push(n[t])})),this.$refs.table.clearSelection();for(var n=0;n=0&&this.$refs.table.toggleRowSelection(this.tableData.data[n],!0)}},changePageCoreRecordData:function(){var t=this.idKey,e=this;if(this.multipleSelectionAll.length<=0)this.multipleSelectionAll=this.multipleSelection;else{var n=[];this.multipleSelectionAll.forEach((function(e){n.push(e[t])}));var i=[];this.multipleSelection.forEach((function(a){i.push(a[t]),n.indexOf(a[t])<0&&e.multipleSelectionAll.push(a)}));var a=[];this.tableData.data.forEach((function(e){i.indexOf(e[t])<0&&a.push(e[t])})),a.forEach((function(i){if(n.indexOf(i)>=0)for(var a=0;a0?(this.$emit("getCouponId",this.multipleSelectionAll),this.close()):this.$message.warning("请先选择优惠劵")},getList:function(){var t=this;this.listLoading=!0,Object(ft["F"])(this.tableFrom).then((function(e){t.tableData.data=e.data.list,t.tableData.total=e.data.count,t.listLoading=!1,t.$nextTick((function(){this.setSelectRow()}))})).catch((function(e){t.listLoading=!1,t.$message.error(e.message)}))},pageChange:function(t){this.changePageCoreRecordData(),this.tableFrom.page=t,this.getList()},handleSizeChange:function(t){this.changePageCoreRecordData(),this.tableFrom.limit=t,this.getList()}}),M),bt=gt,vt=(n("55d1"),Object(v["a"])(bt,dt,ht,!1,null,"34dbe50b",null)),At=vt.exports,wt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.isExternal?n("div",t._g({staticClass:"svg-external-icon svg-icon",style:t.styleExternalIcon},t.$listeners)):n("svg",t._g({class:t.svgClass,attrs:{"aria-hidden":"true"}},t.$listeners),[n("use",{attrs:{"xlink:href":t.iconName}})])},yt=[],kt=n("61f7"),Ct={name:"SvgIcon",props:{iconClass:{type:String,required:!0},className:{type:String,default:""}},computed:{isExternal:function(){return Object(kt["b"])(this.iconClass)},iconName:function(){return"#icon-".concat(this.iconClass)},svgClass:function(){return this.className?"svg-icon "+this.className:"svg-icon"},styleExternalIcon:function(){return{mask:"url(".concat(this.iconClass,") no-repeat 50% 50%"),"-webkit-mask":"url(".concat(this.iconClass,") no-repeat 50% 50%")}}}},Et=Ct,jt=(n("cf1c"),Object(v["a"])(Et,wt,yt,!1,null,"61194e00",null)),It=jt.exports;a["default"].component("svg-icon",It);var xt=n("51ff"),St=function(t){return t.keys().map(t)};St(xt);var Ot=n("323e"),Rt=n.n(Ot),_t=(n("a5d8"),n("5f87")),Mt=n("bbcc"),Dt=Mt["a"].title;function zt(t){return t?"".concat(t," - ").concat(Dt):"".concat(Dt)}var Vt=n("c24f");Rt.a.configure({showSpinner:!1});var Bt=["".concat(pt["roterPre"],"/login"),"/auth-redirect"];k["c"].beforeEach(function(){var t=Object(X["a"])(Object(q["a"])().mark((function t(e,n,i){var a,r;return Object(q["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(a=y["a"].getters.isEdit,!a){t.next=5;break}c["MessageBox"].confirm("离开该编辑页面,已编辑信息会丢失,请问您确认离开吗?","提示",{confirmButtonText:"离开",cancelButtonText:"不离开",confirmButtonClass:"btnTrue",cancelButtonClass:"btnFalse",type:"warning"}).then((function(){y["a"].dispatch("settings/setEdit",!1),Rt.a.start(),document.title=zt(e.meta.title);var t=Object(_t["a"])();t?e.path==="".concat(pt["roterPre"],"/login")?(i({path:"/"}),Rt.a.done()):"/"===n.fullPath&&n.path!=="".concat(pt["roterPre"],"/login")?Object(Vt["h"])().then((function(t){i()})).catch((function(t){i()})):i():-1!==Bt.indexOf(e.path)?i():(i("".concat(pt["roterPre"],"/login?redirect=").concat(e.path)),Rt.a.done())})),t.next=21;break;case 5:if(Rt.a.start(),document.title=zt(e.meta.title),r=Object(_t["a"])(),!r){t.next=12;break}e.path==="".concat(pt["roterPre"],"/login")?(i({path:"/"}),Rt.a.done()):"/"===n.fullPath&&n.path!=="".concat(pt["roterPre"],"/login")?Object(Vt["h"])().then((function(t){i()})).catch((function(t){i()})):i(),t.next=20;break;case 12:if(-1===Bt.indexOf(e.path)){t.next=16;break}i(),t.next=20;break;case 16:return t.next=18,y["a"].dispatch("user/resetToken");case 18:i("".concat(pt["roterPre"],"/login?redirect=").concat(e.path)),Rt.a.done();case 20:y["a"].dispatch("settings/setEdit",!1);case 21:case"end":return t.stop()}}),t)})));return function(e,n,i){return t.apply(this,arguments)}}()),k["c"].afterEach((function(){Rt.a.done()}));var Ft,Lt=n("7212"),Nt=n.n(Lt),Tt=(n("dfa4"),n("5530")),Qt=n("0c6d"),Pt=1,Ht=function(){return++Pt};function Ut(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=this.$createElement;return new Promise((function(r){t.then((function(t){var o=t.data;o.config.submitBtn=!1,o.config.resetBtn=!1,o.config.form||(o.config.form={}),o.config.formData||(o.config.formData={}),o.config.formData=Object(Tt["a"])(Object(Tt["a"])({},o.config.formData),n.formData),o.config.form.labelWidth="120px",o.config.global={upload:{props:{onSuccess:function(t,e){200===t.status&&(e.url=t.data.src)}}}},o=a["default"].observable(o),e.$msgbox({title:o.title,customClass:n.class||"modal-form",message:i("div",{class:"common-form-create",key:Ht()},[i("formCreate",{props:{rule:o.rule,option:o.config},on:{mounted:function(t){Ft=t}}})]),beforeClose:function(t,n,i){var a=function(){setTimeout((function(){n.confirmButtonLoading=!1}),500)};"confirm"===t?(n.confirmButtonLoading=!0,Ft.submit((function(t){Qt["a"][o.method.toLowerCase()](o.api,t).then((function(t){i(),e.$message.success(t.message||"提交成功"),r(t)})).catch((function(t){e.$message.error(t.message||"提交失败")})).finally((function(){a()}))}),(function(){return a()}))):(a(),i())}})})).catch((function(t){e.$message.error(t.message)}))}))}function Gt(t,e){var n=this,i=this.$createElement;return new Promise((function(a,r){n.$msgbox({title:"属性规格",customClass:"upload-form",closeOnClickModal:!1,showClose:!1,message:i("div",{class:"common-form-upload"},[i("attrFrom",{props:{currentRow:t},on:{getList:function(){e()}}})]),showCancelButton:!1,showConfirmButton:!1}).then((function(){a()})).catch((function(){r(),n.$message({type:"info",message:"已取消"})}))}))}function Wt(t,e,n){var i=this,a=this.$createElement;return new Promise((function(r,o){i.$msgbox({title:"运费模板",customClass:"upload-form-temp",closeOnClickModal:!1,showClose:!1,message:a("div",{class:"common-form-upload"},[a("templatesFrom",{props:{tempId:t,componentKey:n},on:{getList:function(){e()}}})]),showCancelButton:!1,showConfirmButton:!1}).then((function(){r()})).catch((function(){o(),i.$message({type:"info",message:"已取消"})}))}))}n("a481");var Zt=n("cea2"),Yt=n("40b3"),Jt=n.n(Yt),qt=n("bc3a"),Xt=n.n(qt),Kt=function(t,e,i,a,r,o,c,s){var u=n("3452"),l="/".concat(c,"/").concat(s),d=t+"\n"+a+"\n"+r+"\n"+o+"\n"+l,h=u.HmacSHA1(d,i);return h=u.enc.Base64.stringify(h),"UCloud "+e+":"+h},$t={videoUpload:function(t){return"COS"===t.type?this.cosUpload(t.evfile,t.res.data,t.uploading):"OSS"===t.type?this.ossHttp(t.evfile,t.res,t.uploading):"local"===t.type?this.uploadMp4ToLocal(t.evfile,t.res,t.uploading):"OBS"===t.type?this.obsHttp(t.evfile,t.res,t.uploading):"US3"===t.type?this.us3Http(t.evfile,t.res,t.uploading):this.qiniuHttp(t.evfile,t.res,t.uploading)},cosUpload:function(t,e,n){var i=new Jt.a({getAuthorization:function(t,n){n({TmpSecretId:e.credentials.tmpSecretId,TmpSecretKey:e.credentials.tmpSecretKey,XCosSecurityToken:e.credentials.sessionToken,ExpiredTime:e.expiredTime})}}),a=t.target.files[0],r=a.name,o=r.lastIndexOf("."),c="";-1!==o&&(c=r.substring(o));var s=(new Date).getTime()+c;return new Promise((function(t,r){i.sliceUploadFile({Bucket:e.bucket,Region:e.region,Key:s,Body:a,onProgress:function(t){n(t)}},(function(n,i){n?r({msg:n}):t({url:e.cdn?e.cdn+s:"http://"+i.Location,ETag:i.ETag})}))}))},obsHttp:function(t,e,n){var i=t.target.files[0],a=i.name,r=a.lastIndexOf("."),o="";-1!==r&&(o=a.substring(r));var c=(new Date).getTime()+o,s=new FormData,u=e.data;s.append("key",c),s.append("AccessKeyId",u.accessid),s.append("policy",u.policy),s.append("signature",u.signature),s.append("file",i),s.append("success_action_status",200);var l=u.host,d=l+"/"+c;return n(!0,100),new Promise((function(t,e){Xt.a.defaults.withCredentials=!1,Xt.a.post(l,s).then((function(){n(!1,0),t({url:u.cdn?u.cdn+"/"+c:d})})).catch((function(t){e({msg:t})}))}))},us3Http:function(t,e,n){var i=t.target.files[0],a=i.name,r=a.lastIndexOf("."),o="";-1!==r&&(o=a.substring(r));var c=(new Date).getTime()+o,s=e.data,u=Kt("PUT",s.accessid,s.secretKey,"",i.type,"",s.storageName,c);return new Promise((function(t,e){Xt.a.defaults.withCredentials=!1;var a="https://".concat(s.storageName,".cn-bj.ufileos.com/").concat(c);Xt.a.put(a,i,{headers:{Authorization:u,"content-type":i.type}}).then((function(e){n(!1,0),t({url:s.cdn?s.cdn+"/"+c:a})})).catch((function(t){e({msg:t})}))}))},cosHttp:function(t,e,n){var i=function(t){return encodeURIComponent(t).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A")},a=t.target.files[0],r=a.name,o=r.lastIndexOf("."),c="";-1!==o&&(c=r.substring(o));var s=(new Date).getTime()+c,u=e.data,l=u.credentials.sessionToken,d=u.url+i(s).replace(/%2F/g,"/"),h=new XMLHttpRequest;return h.open("PUT",d,!0),l&&h.setRequestHeader("x-cos-security-token",l),h.upload.onprogress=function(t){var e=Math.round(t.loaded/t.total*1e4)/100;n(!0,e)},new Promise((function(t,e){h.onload=function(){if(/^2\d\d$/.test(""+h.status)){var a=h.getResponseHeader("etag");n(!1,0),t({url:u.cdn?u.cdn+i(s).replace(/%2F/g,"/"):d,ETag:a})}else e({msg:"文件 "+s+" 上传失败,状态码:"+h.statu})},h.onerror=function(){e({msg:"文件 "+s+"上传失败,请检查是否没配置 CORS 跨域规"})},h.send(a),h.onreadystatechange=function(){}}))},ossHttp:function(t,e,n){var i=t.target.files[0],a=i.name,r=a.lastIndexOf("."),o="";-1!==r&&(o=a.substring(r));var c=(new Date).getTime()+o,s=new FormData,u=e.data;s.append("key",c),s.append("OSSAccessKeyId",u.accessid),s.append("policy",u.policy),s.append("Signature",u.signature),s.append("file",i),s.append("success_action_status",200);var l=u.host,d=l+"/"+c;return n(!0,100),new Promise((function(t,e){Xt.a.defaults.withCredentials=!1,Xt.a.post(l,s).then((function(){n(!1,0),t({url:u.cdn?u.cdn+"/"+c:d})})).catch((function(t){e({msg:t})}))}))},qiniuHttp:function(t,e,n){var i=e.data.token,a=t.target.files[0],r=a.name,o=r.lastIndexOf("."),c="";-1!==o&&(c=r.substring(o));var s=(new Date).getTime()+c,u=e.data.domain+"/"+s,l={useCdnDomain:!0},d={fname:"",params:{},mimeType:null},h=Zt["upload"](a,s,i,d,l);return new Promise((function(t,i){h.subscribe({next:function(t){var e=Math.round(t.total.loaded/t.total.size);n(!0,e)},error:function(t){i({msg:t})},complete:function(i){n(!1,0),t({url:e.data.cdn?e.data.cdn+"/"+s:u})}})}))},uploadMp4ToLocal:function(t,e,n){var i=t.target.files[0],a=new FormData;return a.append("file",i),n(!0,100),Object(N["Tb"])(a)}};function te(t,e,n,i,a){var r=this,o=this.$createElement;return new Promise((function(c,s){r.$msgbox({title:"优惠券列表",customClass:"upload-form-coupon",closeOnClickModal:!1,showClose:!1,message:o("div",{class:"common-form-upload"},[o("couponList",{props:{couponData:t,handle:e,couponId:n,keyNum:i},on:{getCouponId:function(t){a(t)}}})]),showCancelButton:!1,showConfirmButton:!1}).then((function(){c()})).catch((function(){s(),r.$message({type:"info",message:"已取消"})}))}))}function ee(t){var e=this;return new Promise((function(n,i){e.$confirm("确定".concat(t||"删除该条数据吗","?"),"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){n()})).catch((function(){e.$message({type:"info",message:"已取消"})}))}))}function ne(t){var e=this;return new Promise((function(n,i){e.$confirm("".concat(t||"该记录删除后不可恢复,您确认删除吗","?"),"提示",{confirmButtonText:"删除",cancelButtonText:"不删除",type:"warning"}).then((function(){n()})).catch((function(t){e.$message({type:"info",message:"已取消"})}))}))}n("6b54");var ie=n("ed08");function ae(t){var e="-";return t?(e=t,e):e}function re(t){return t?"是":"否"}function oe(t){return t?"显示":"不显示"}function ce(t){return"‘0’"===t?"显示":"不显示"}function se(t){return t?"否":"是"}function ue(t){var e={0:"未支付",1:"已支付"};return e[t]}function le(t){var e={0:"余额",1:"微信",2:"微信",3:"微信",4:"支付宝",5:"支付宝"};return e[t]}function de(t){var e={0:"待发货",1:"待收货",2:"待评价",3:"已完成","-1":"已退款",9:"未成团",10:"待付尾款",11:"尾款过期未付"};return e[t]}function he(t){var e={"-1":"未完成",10:"已完成",0:"进行中"};return e[t]}function me(t){var e={0:"待核销",2:"待评价",3:"已完成","-1":"已退款",10:"待付尾款",11:"尾款过期未付"};return e[t]}function fe(t){var e={0:"余额支付",1:"微信支付",2:"小程序",3:"微信支付",4:"支付宝",5:"支付宝扫码",6:"微信扫码"};return e[t]}function pe(t){var e={0:"待核销",1:"待提货",2:"待评价",3:"已完成","-1":"已退款",9:"未成团",10:"待付尾款",11:"尾款过期未付"};return e[t]}function ge(t){var e={0:"待审核","-1":"审核未通过",1:"待退货",2:"待收货",3:"已退款"};return e[t]}function be(t){var e={0:"未转账",1:"已转账"};return e[t]}function ve(t){return t>0?"已对账":"未对账"}function Ae(t){var e={0:"未确认",1:"已拒绝",2:"已确认"};return e[t]}function we(t){var e={0:"下架",1:"上架显示","-1":"平台关闭"};return e[t]}function ye(t){var e={0:"店铺券",1:"商品券"};return e[t]}function ke(t){var e={0:"领取",1:"赠送券",2:"新人券",3:"赠送券"};return e[t]}function Ce(t){var e={101:"直播中",102:"未开始",103:"已结束",104:"禁播",105:"暂停",106:"异常",107:"已过期"};return e[t]}function Ee(t){var e={0:"未审核",1:"微信审核中",2:"审核通过","-1":"审核未通过"};return e[t]}function je(t){var e={0:"手机直播",1:"推流"};return e[t]}function Ie(t){var e={0:"竖屏",1:"横屏"};return e[t]}function xe(t){return t?"✔":"✖"}function Se(t){var e={0:"正在导出,请稍后再来",1:"完成",2:"失败"};return e[t]}function Oe(t){var e={mer_accoubts:"财务对账",refund_order:"退款订单",brokerage_one:"一级分佣",brokerage_two:"二级分佣",refund_brokerage_one:"返还一级分佣",refund_brokerage_two:"返还二级分佣",order:"订单支付",commission_to_platform:"剩余平台手续费",commission_to_service_team:"订单平台佣金",commission_to_village:"订单平台佣金",commission_to_town:"订单平台佣金",commission_to_entry_merchant:"订单平台佣金",commission_to_cloud_warehouse:"订单平台佣金",commission_to_entry_merchant_refund:"退回平台佣金",commission_to_cloud_warehouse_refund:"退回平台佣金",commission_to_platform_refund:"退回平台手续费",commission_to_service_team_refund:"退回平台佣金",commission_to_village_refund:"退回平台佣金",commission_to_town_refund:"退回平台佣金"};return e[t]}function Re(t){var e={0:"未开始",1:"正在进行","-1":"已结束"};return e[t]}function _e(t){var e={0:"审核中",1:"审核通过","-2":"强制下架","-1":"未通过"};return e[t]}function Me(t){var e={0:"处理中",1:"成功",10:"部分完成","-1":"失败"};return e[t]}function De(t){var e={2401:"小微商户",2500:"个人卖家",4:"个体工商户",2:"企业",3:"党政、机关及事业单位",1708:"其他组织"};return e[t]}function ze(t){var e={1:"中国大陆居民-身份证",2:"其他国家或地区居民-护照",3:"中国香港居民–来往内地通行证",4:"中国澳门居民–来往内地通行证",5:"中国台湾居民–来往大陆通行证"};return e[t]}function Ve(t){var e={1:"发货",2:"送货",3:"无需物流",4:"电子面单"};return e[t]}function Be(t){var e={"-1":"已取消",0:"待接单",2:"待取货",3:"配送中",4:"已完成",9:"物品返回中",10:"物品返回完成",100:"骑士到店"};return e[t]}function Fe(t,e){return 1===t?t+e:t+e+"s"}function Le(t){var e=Date.now()/1e3-Number(t);return e<3600?Fe(~~(e/60)," minute"):e<86400?Fe(~~(e/3600)," hour"):Fe(~~(e/86400)," day")}function Ne(t,e){for(var n=[{value:1e18,symbol:"E"},{value:1e15,symbol:"P"},{value:1e12,symbol:"T"},{value:1e9,symbol:"G"},{value:1e6,symbol:"M"},{value:1e3,symbol:"k"}],i=0;i=n[i].value)return(t/n[i].value).toFixed(e).replace(/\.0+$|(\.[0-9]*[1-9])0+$/,"$1")+n[i].symbol;return t.toString()}function Te(t){return(+t||0).toString().replace(/^-?\d+/g,(function(t){return t.replace(/(?=(?!\b)(\d{3})+$)/g,",")}))}function Qe(t){return t.charAt(0).toUpperCase()+t.slice(1)}var Pe=n("6618");a["default"].use(z),a["default"].use(E.a),a["default"].use(Nt.a),a["default"].use(m["a"],{preLoad:1.3,error:n("4fb4"),loading:n("7153"),attempt:1,listenEvents:["scroll","wheel","mousewheel","resize","animationend","transitionend","touchmove"]}),a["default"].component("vue-ueditor-wrap",B.a),a["default"].component("attrFrom",H),a["default"].component("templatesFrom",lt),a["default"].component("couponList",At),a["default"].prototype.$modalForm=Ut,a["default"].prototype.$modalSure=ee,a["default"].prototype.$videoCloud=$t,a["default"].prototype.$modalSureDelete=ne,a["default"].prototype.$modalAttr=Gt,a["default"].prototype.$modalTemplates=Wt,a["default"].prototype.$modalCoupon=te,a["default"].prototype.moment=l.a,a["default"].use(s.a,{size:o.a.get("size")||"medium"}),a["default"].use(h.a),Object.keys(i).forEach((function(t){a["default"].filter(t,i[t])}));var He=He||[];(function(){var t=document.createElement("script");t.src="https://cdn.oss.9gt.net/js/es.js?version=merchantv2.0";var e=document.getElementsByTagName("script")[0];e.parentNode.insertBefore(t,e)})(),k["c"].beforeEach((function(t,e,n){He&&t.path&&He.push(["_trackPageview","/#"+t.fullPath]),t.meta.title&&(document.title=t.meta.title+"-"+JSON.parse(o.a.get("MerInfo")).login_title),n()}));var Ue,Ge=Object(_t["a"])();Ge&&(Ue=Object(Pe["a"])(Ge)),a["default"].config.productionTip=!1;e["default"]=new a["default"]({el:"#app",data:{notice:Ue},methods:{closeNotice:function(){this.notice&&this.notice()}},router:k["c"],store:y["a"],render:function(t){return t(w)}})},5946:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFEAAABRCAYAAACqj0o2AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA25pVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvU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YmnZCA478FrnQWLoDUqEvXZcR9MgYMeHrRK8A48AsVhlqjr1CdZuvk1Oe4Bc6A+bBK1sMsBWqYdA59BnxsHs8Cly0jP3R77OXfbpKyMyCWeCrLEFinobSq4OSd9bAmaRF24h72eWhgkJX0ddmLQcUKiLthfQL8KX/qlVh73S6IlqwPjTvicOhm9e+0OOnYl6ltQE7I6SKrwR7+HURkQK72Q2C4rjzMqemmz8962I3EXeCZHq0JFN/tV9obvg3yvsnwlNsnE+ZKKT65Iva91QmKfLN3SKn6pl5PnoonEEplLFan4Rs8jx3I9IbHFDlbAK5W9pWRt8gLJiMhaA783eFx/lXjcRKJOZ45tt8GtiEh8KnUwEDcgYhdKpERKpESGEimREimRoURKpERKZCjR9SQC0o97Kvu5hp3or9Fdp0SllsCMzbaHeTmzJjKUSImUSIkMJVIiJVIiQ4mUSImUyFAiJVIiJeadPw71Y9Wntv/ml92Gph8PPFfZHxvuNdjHMnhj0F631X8Lc8hQ4Kjdxhb/Ipo1kRIpkaFESqRESmQokRIDm3UBBgBHwWAbFrIgUwAAAABJRU5ErkJggg=="},"5bdf":function(t,e,n){"use strict";n("7091")},"5f87":function(t,e,n){"use strict";n.d(e,"a",(function(){return c})),n.d(e,"c",(function(){return s})),n.d(e,"b",(function(){return u}));var i=n("a78e"),a=n.n(i),r=n("56d7"),o="merchantToken";function c(){return a.a.get(o)}function s(t){return a.a.set(o,t)}function u(){return r["default"]&&r["default"].closeNotice(),a.a.remove(o)}},6082:function(t,e,n){},"61d3":function(t,e,n){"use strict";n("6082")},"61f7":function(t,e,n){"use strict";n.d(e,"b",(function(){return i}));n("6b54");function i(t){return/^(https?:|mailto:|tel:)/.test(t)}},6244:function(t,e,n){"use strict";n("8201")},"641c":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFEAAABRCAYAAACqj0o2AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA25pVFh0WE1MOmNvbS5hZG9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KufAT/CnwbxtwKC1e9Qo9TeafryQNpDqtUbZuo+eYBQIBBPodYWPxfyuzgBiBAJkRAJkSJEQiREQqR8nVjCEk47C9HcCvhta3DqeFQ0EPXe4wuhHi5nQiREBktIkr9n1HjsK6E0hhD/Vxbpet9jume5nLknUoRIiIRIiBQhEiIhEiJFiIRIiEWjMJ7iVNu23e6hX3kI927Evdd4GWPSIVZY5h9EhqlaLmfuiYToV0F/3bg3pL5e9CGuPVF+YCj/FKgsgCJ+WL++H+5VDXAdXBoQwJN+L07xX0RzTyREQqQIkRAJkRApQiTExOqnAAMAXR2Kua55/NAAAAAASUVORK5CYII="},6599:function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-excel",use:"icon-excel-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},6618:function(t,e,n){"use strict";var i=n("bbcc"),a=n("5c96"),r=n.n(a),o=n("a18c"),c=n("83d6"),s=n("2b0e");function u(t){t.$on("notice",(function(t){this.$notify.info({title:t.title||"消息",message:t.message,duration:5e3,onClick:function(){console.log("click")}})}))}function l(t){return new WebSocket("".concat(i["a"].wsSocketUrl,"?type=mer&token=").concat(t))}function d(t){var e,n=l(t),i=new s["default"];function a(t,e){n.send(JSON.stringify({type:t,data:e}))}return n.onopen=function(){i.$emit("open"),e=setInterval((function(){a("ping")}),1e4)},n.onmessage=function(t){i.$emit("message",t);var e=JSON.parse(t.data);if(200===e.status&&i.$emit(e.data.status,e.data.result),"notice"===e.type){var n=i.$createElement;r.a.Notification({title:e.data.data.title,message:n("a",{style:"color: teal"},e.data.data.message),onClick:function(){"min_stock"===e.data.type||"product"===e.data.type?o["c"].push({path:"".concat(c["roterPre"],"/product/list")}):"reply"===e.data.type?o["c"].push({path:"".concat(c["roterPre"],"/product/reviews")}):"product_success"===e.data.type?o["c"].push({path:"".concat(c["roterPre"],"/product/list?id=")+e.data.data.id+"&type=2"}):"product_fail"===e.data.type?o["c"].push({path:"".concat(c["roterPre"],"/product/list?id=")+e.data.data.id+"&type=7"}):"product_seckill_success"===e.data.type?o["c"].push({path:"".concat(c["roterPre"],"/marketing/seckill/list?id=")+e.data.data.id+"&type=2"}):"product_seckill_fail"===e.data.type?o["c"].push({path:"".concat(c["roterPre"],"/marketing/seckill/list?id=")+e.data.data.id+"&type=7"}):"new_order"===e.data.type?o["c"].push({path:"".concat(c["roterPre"],"/order/list?id=")+e.data.data.id}):"new_refund_order"===e.data.type?o["c"].push({path:"".concat(c["roterPre"],"/order/refund?id=")+e.data.data.id}):"product_presell_success"===e.data.type?o["c"].push({path:"".concat(c["roterPre"],"/marketing/presell/list?id=")+e.data.data.id+"&type="+e.data.data.type+"&status=1"}):"product_presell_fail"===e.data.type?o["c"].push({path:"".concat(c["roterPre"],"/marketing/presell/list?id=")+e.data.data.id+"&type="+e.data.data.type+"&status=-1"}):"product_group_success"===e.data.type?o["c"].push({path:"".concat(c["roterPre"],"/marketing/combination/combination_goods?id=")+e.data.data.id+"&status=1"}):"product_group_fail"===e.data.type?o["c"].push({path:"".concat(c["roterPre"],"/marketing/combination/combination_goods?id=")+e.data.data.id+"&status=-1"}):"product_assist_success"===e.data.type?o["c"].push({path:"".concat(c["roterPre"],"/marketing/assist/list?id=")+e.data.data.id+"&status=1"}):"product_assist_fail"===e.data.type?o["c"].push({path:"".concat(c["roterPre"],"/marketing/assist/list?id=")+e.data.data.id+"&status=-1"}):"broadcast_status_success"===e.data.type?o["c"].push({path:"".concat(c["roterPre"],"/marketing/studio/list?id=")+e.data.data.id+"&status=1"}):"broadcast_status_fail"===e.data.type?o["c"].push({path:"".concat(c["roterPre"],"/marketing/studio/list?id=")+e.data.data.id+"&status=-1"}):"goods_status_success"===e.data.type?o["c"].push({path:"".concat(c["roterPre"],"/marketing/broadcast/list?id=")+e.data.data.id+"&status=1"}):"goods_status_fail"===e.data.type&&o["c"].push({path:"".concat(c["roterPre"],"/marketing/broadcast/list?id=")+e.data.data.id+"&status=-1"})}})}},n.onclose=function(t){i.$emit("close",t),clearInterval(e)},u(i),function(){n.close()}}e["a"]=d},6683:function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-guide",use:"icon-guide-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},"678b":function(t,e,n){"use strict";n("432f")},"708a":function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-star",use:"icon-star-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},7091:function(t,e,n){},"711b":function(t,e,n){"use strict";n("f677")},7153:function(t,e){t.exports="data:image/jpeg;base64,/9j/4QAYRXhpZgAASUkqAAgAAAAAAAAAAAAAAP/sABFEdWNreQABAAQAAABkAAD/4QMuaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLwA8P3hwYWNrZXQgYmVnaW49Iu+7vyIgaWQ9Ilc1TTBNcENlaGlIenJlU3pOVGN6a2M5ZCI/PiA8eDp4bXBtZXRhIHhtbG5zOng9ImFkb2JlOm5zOm1ldGEvIiB4OnhtcHRrPSJBZG9iZSBYTVAgQ29yZSA1LjYtYzE0OCA3OS4xNjQwMzYsIDIwMTkvMDgvMTMtMDE6MDY6NTcgICAgICAgICI+IDxyZGY6UkRGIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyI+IDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiIHhtbG5zOnhtcD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLyIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bXA6Q3JlYXRvclRvb2w9I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MR38LFUuPYcWJ3Oe4bX4ee6sylYNQLJuO2eAbNwZs3AamlfQKcqlswC4gzsgLnniSQ1ASrBrAXgBI15/8KV2pfKHRiEC0lo0mzSXxkHvMJt0dDg1mWOKc9rKADENcbpAdC/nMgGi6cCyG/oQWhQAFilXkzzbsQRVOCXbsiaKCMTAB5bYxHusnXhvsIZ+LPQReglan+pRZQo20DHtLuhqa+inxC+hZ/D5D1jvnW3jaYdCP2co1VyOQDfiQaKGAc5Gcxuar7m8D59/nHtgORoHIEkYesAwQHrOK3EAkhzDmFK2a6J9zrstwbAajDO5tKyEJip27OEcWKiinegHklTlyTNoQ0maxvgG0WnRdcCgDT9Nfr4XEKlG9yXBmB4s7L0GbehwMKadLUS7/H8owbCDhm14bI387iHN1CPck+0TUEoh1HyB3j44iIe84IENWyz9O0HkJethw4tAFCAQgQvtlIbqjOS+dTD+jZe7C9hQZqdblHjTaWMtbOhzU4AIyf+zLXtngSgQRQSiQBSIAlFEIJqRfwIMABiyUOLFGxshAAAAAElFTkSuQmCC"},7509:function(t,e,n){"use strict";n.r(e);var i=n("2909"),a=n("3835"),r=(n("ac6a"),n("b85c")),o=(n("7f7f"),n("6762"),n("2fdb"),{visitedViews:[],cachedViews:[]}),c={ADD_VISITED_VIEW:function(t,e){t.visitedViews.some((function(t){return t.path===e.path}))||t.visitedViews.push(Object.assign({},e,{title:e.meta.title||"no-name"}))},ADD_CACHED_VIEW:function(t,e){t.cachedViews.includes(e.name)||e.meta.noCache||t.cachedViews.push(e.name)},DEL_VISITED_VIEW:function(t,e){var n,i=Object(r["a"])(t.visitedViews.entries());try{for(i.s();!(n=i.n()).done;){var o=Object(a["a"])(n.value,2),c=o[0],s=o[1];if(s.path===e.path){t.visitedViews.splice(c,1);break}}}catch(u){i.e(u)}finally{i.f()}},DEL_CACHED_VIEW:function(t,e){var n=t.cachedViews.indexOf(e.name);n>-1&&t.cachedViews.splice(n,1)},DEL_OTHERS_VISITED_VIEWS:function(t,e){t.visitedViews=t.visitedViews.filter((function(t){return t.meta.affix||t.path===e.path}))},DEL_OTHERS_CACHED_VIEWS:function(t,e){var n=t.cachedViews.indexOf(e.name);t.cachedViews=n>-1?t.cachedViews.slice(n,n+1):[]},DEL_ALL_VISITED_VIEWS:function(t){var e=t.visitedViews.filter((function(t){return t.meta.affix}));t.visitedViews=e},DEL_ALL_CACHED_VIEWS:function(t){t.cachedViews=[]},UPDATE_VISITED_VIEW:function(t,e){var n,i=Object(r["a"])(t.visitedViews);try{for(i.s();!(n=i.n()).done;){var a=n.value;if(a.path===e.path){a=Object.assign(a,e);break}}}catch(o){i.e(o)}finally{i.f()}}},s={addView:function(t,e){var n=t.dispatch;n("addVisitedView",e),n("addCachedView",e)},addVisitedView:function(t,e){var n=t.commit;n("ADD_VISITED_VIEW",e)},addCachedView:function(t,e){var n=t.commit;n("ADD_CACHED_VIEW",e)},delView:function(t,e){var n=t.dispatch,a=t.state;return new Promise((function(t){n("delVisitedView",e),n("delCachedView",e),t({visitedViews:Object(i["a"])(a.visitedViews),cachedViews:Object(i["a"])(a.cachedViews)})}))},delVisitedView:function(t,e){var n=t.commit,a=t.state;return new Promise((function(t){n("DEL_VISITED_VIEW",e),t(Object(i["a"])(a.visitedViews))}))},delCachedView:function(t,e){var n=t.commit,a=t.state;return new Promise((function(t){n("DEL_CACHED_VIEW",e),t(Object(i["a"])(a.cachedViews))}))},delOthersViews:function(t,e){var n=t.dispatch,a=t.state;return new Promise((function(t){n("delOthersVisitedViews",e),n("delOthersCachedViews",e),t({visitedViews:Object(i["a"])(a.visitedViews),cachedViews:Object(i["a"])(a.cachedViews)})}))},delOthersVisitedViews:function(t,e){var n=t.commit,a=t.state;return new Promise((function(t){n("DEL_OTHERS_VISITED_VIEWS",e),t(Object(i["a"])(a.visitedViews))}))},delOthersCachedViews:function(t,e){var n=t.commit,a=t.state;return new Promise((function(t){n("DEL_OTHERS_CACHED_VIEWS",e),t(Object(i["a"])(a.cachedViews))}))},delAllViews:function(t,e){var n=t.dispatch,a=t.state;return new Promise((function(t){n("delAllVisitedViews",e),n("delAllCachedViews",e),t({visitedViews:Object(i["a"])(a.visitedViews),cachedViews:Object(i["a"])(a.cachedViews)})}))},delAllVisitedViews:function(t){var e=t.commit,n=t.state;return new Promise((function(t){e("DEL_ALL_VISITED_VIEWS"),t(Object(i["a"])(n.visitedViews))}))},delAllCachedViews:function(t){var e=t.commit,n=t.state;return new Promise((function(t){e("DEL_ALL_CACHED_VIEWS"),t(Object(i["a"])(n.cachedViews))}))},updateVisitedView:function(t,e){var n=t.commit;n("UPDATE_VISITED_VIEW",e)}};e["default"]={namespaced:!0,state:o,mutations:c,actions:s}},"75d9":function(t,e,n){},7680:function(t,e,n){},"770f":function(t,e,n){},"7b72":function(t,e,n){},"80da":function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-wechat",use:"icon-wechat-usage",viewBox:"0 0 128 110",content:''});o.a.add(c);e["default"]=c},8201:function(t,e,n){},"83d6":function(t,e){t.exports={roterPre:"/merchant",title:"加载中...",showSettings:!0,tagsView:!0,fixedHeader:!1,sidebarLogo:!0,errorLog:"production"}},8544:function(t,e,n){},8593:function(t,e,n){"use strict";n.d(e,"u",(function(){return a})),n.d(e,"n",(function(){return r})),n.d(e,"K",(function(){return o})),n.d(e,"t",(function(){return c})),n.d(e,"s",(function(){return s})),n.d(e,"m",(function(){return u})),n.d(e,"J",(function(){return l})),n.d(e,"r",(function(){return d})),n.d(e,"o",(function(){return h})),n.d(e,"q",(function(){return m})),n.d(e,"g",(function(){return f})),n.d(e,"j",(function(){return p})),n.d(e,"x",(function(){return g})),n.d(e,"h",(function(){return b})),n.d(e,"i",(function(){return v})),n.d(e,"w",(function(){return A})),n.d(e,"k",(function(){return w})),n.d(e,"A",(function(){return y})),n.d(e,"F",(function(){return k})),n.d(e,"C",(function(){return C})),n.d(e,"E",(function(){return E})),n.d(e,"B",(function(){return j})),n.d(e,"L",(function(){return I})),n.d(e,"y",(function(){return x})),n.d(e,"z",(function(){return S})),n.d(e,"D",(function(){return O})),n.d(e,"G",(function(){return R})),n.d(e,"H",(function(){return _})),n.d(e,"l",(function(){return M})),n.d(e,"e",(function(){return D})),n.d(e,"I",(function(){return z})),n.d(e,"f",(function(){return V})),n.d(e,"p",(function(){return B})),n.d(e,"a",(function(){return F})),n.d(e,"v",(function(){return L})),n.d(e,"b",(function(){return N})),n.d(e,"c",(function(){return T})),n.d(e,"d",(function(){return Q}));var i=n("0c6d");function a(t,e){return i["a"].get("group/lst",{page:t,limit:e})}function r(){return i["a"].get("group/create/table")}function o(t){return i["a"].get("group/update/table/"+t)}function c(t){return i["a"].get("group/detail/"+t)}function s(t,e,n){return i["a"].get("group/data/lst/"+t,{page:e,limit:n})}function u(t){return i["a"].get("group/data/create/table/"+t)}function l(t,e){return i["a"].get("group/data/update/table/".concat(t,"/").concat(e))}function d(t,e){return i["a"].post("/group/data/status/".concat(t),{status:e})}function h(t){return i["a"].delete("group/data/delete/"+t)}function m(){return i["a"].get("system/attachment/category/formatLst")}function f(){return i["a"].get("system/attachment/category/create/form")}function p(t){return i["a"].get("system/attachment/category/update/form/".concat(t))}function g(t,e){return i["a"].post("system/attachment/update/".concat(t,".html"),e)}function b(t){return i["a"].delete("system/attachment/category/delete/".concat(t))}function v(t){return i["a"].get("system/attachment/lst",t)}function A(t){return i["a"].delete("system/attachment/delete",t)}function w(t,e){return i["a"].post("system/attachment/category",{ids:t,attachment_category_id:e})}function y(){return i["a"].get("service/create/form")}function k(t){return i["a"].get("service/update/form/".concat(t))}function C(t){return i["a"].get("service/list",t)}function E(t,e){return i["a"].post("service/status/".concat(t),{status:e})}function j(t){return i["a"].delete("service/delete/".concat(t))}function I(t){return i["a"].get("user/lst",t)}function x(t,e){return i["a"].get("service/".concat(t,"/user"),e)}function S(t,e,n){return i["a"].get("service/".concat(t,"/").concat(e,"/lst"),n)}function O(t){return i["a"].post("service/login/"+t)}function R(t){return i["a"].get("notice/lst",t)}function _(t){return i["a"].post("notice/read/".concat(t))}function M(t){return i["a"].post("applyments/create",t)}function D(){return i["a"].get("applyments/detail")}function z(t,e){return i["a"].post("applyments/update/".concat(t),e)}function V(t){return i["a"].get("profitsharing/lst",t)}function B(t){return i["a"].get("expr/lst",t)}function F(t){return i["a"].get("expr/partner/".concat(t,"/form"))}function L(t){return i["a"].get("profitsharing/export",t)}function N(t){return i["a"].get("ajcaptcha",t)}function T(t){return i["a"].post("ajcheck",t)}function Q(t){return i["a"].post("ajstatus",t)}},8644:function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-size",use:"icon-size-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},8646:function(t,e,n){"use strict";n("770f")},"8a9d":function(t,e,n){"use strict";n.d(e,"a",(function(){return a})),n.d(e,"e",(function(){return r})),n.d(e,"b",(function(){return o})),n.d(e,"f",(function(){return c})),n.d(e,"d",(function(){return s})),n.d(e,"c",(function(){return u}));var i=n("0c6d");function a(t){return i["a"].get("v2/system/city/lst/"+t)}function r(t){return i["a"].get("store/shipping/lst",t)}function o(t){return i["a"].post("store/shipping/create",t)}function c(t,e){return i["a"].post("store/shipping/update/".concat(t),e)}function s(t){return i["a"].get("/store/shipping/detail/".concat(t))}function u(t){return i["a"].delete("store/shipping/delete/".concat(t))}},"8aa6":function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-zip",use:"icon-zip-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},"8bcc":function(t,e,n){"use strict";n("29c0")},"8e8d":function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-search",use:"icon-search-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},"8ea6":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFE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r/kRvfmDxED1ED9Gbh+gheogeoreR2X8CDACpuyLF6U1ukwAAAABJRU5ErkJggg=="},"8fb7":function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-tab",use:"icon-tab-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},"905e":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFEAAABRCAYAAACqj0o2AAAAAXNSR0IArs4c6QAADbRJREFUeF7tnH1wVNUVwM95bxPysV+RBBK+TPgKEQkBYRRDbWihQgWBKgoaa+yAguJIx3Zqh3aMUzva0U7o0CoolqigCDhGQRumOO6MUBgBTSGSBQKJED4MkXzsbrJJ3t7TuQuh2X1v38e+F3Da3H/33nPP+d1zv849bxH6i2kCaFpCvwDoh2iBE/RD7IdoAQELRPR7Yj9ECwhYIKLfE/9XIbavnjgUWeLoEMEwQLQhQzsIFCQASSDmB6SGZBBr8YUvvrOAgWkR190TGx+/yZ7isBcKQDMJcCYijgYAux7LiKgJEasJyCMgeZL2HdiLHpD0tLWyznWBSEVga58y5S4UhGJAmEsASZYYRdAEANuR2KaUlw7utUSmDiHXFGJdSXbS4IyMxwjgGQDI1KFfVBUj6lIVsdDLqYe+fK+vvdOIVsZtvtKCe17HLVOfIKDfAWD6Nb0nEdUCg1+llh38MG4DNBr2OcT2VVMKmUDrEPBmo0YggJ+A+BTtVXAYANiMygKASlGklUkvHToZR1vVJn0GMex9E2/5A2F46sqLvOcLQFAJENorhYRqJjJv2pqqFqWm/sdvyqTExHEiihOBoIgQigDArQmHyE/IVtrLqt7UrGugQp9A5EZiQtI2AJiuMYRNQLAFmbQ5Ze3h/Qb0jqjKByyQP3mmgPAwAS4AzY2KygPdwScHvXLUH2+fEXPDCiG9ZQSfys8NkVgJhNkqsi8gshe/bWtZn1NeH7RSBz6AQkLib4iwBABVvJPtCUhdc6wAaakntj+RfyuhWBFz5yUMAtDLjYHmP1oNL3og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6KwQREg/yS4m81wH2uN68ZlHmKeuw5Qlu1V6jr6/YDIl5y2PPdLEOtujiARoznumtbdRpcG00ecHgGt41w89Tg6Za7U5b3+ENtyHYUMxXWIEOODdZKIwRL3sVZTHyyZ98RcpxwiUanreNt1m87B0QNGdQoDSnlKs4p3+Rmxh9KO+1RzD/V4p3mIYzjEqOmMcF0gtoxM/bEgCCtJCH/ko/Y824RS10LnqeAePZC06piHOMqhsCZSqavW3+ee2JgB9gGpqYVgw9kEcC9C+P8h1AvRbikYemTg2Q6eOGpJMQ9xpEPmiQRUITAyN03ESPsYw2F4+eMjNwD/AyIaDag//RiJggBY6jjl+zOCtX9AZB5idmodKH3aZckYWyWEKqFbetLV0KkrlcRor+Yh3sg/pFH9vwejOl2ub1ozHgwBTwhDz6XVB/kVr8+KaVVbR4S/rjL6VUCfGcSfSxBguySxN244Z83GoaWseYhDk/tmOhvSjOoR0CMR+7S1Ibg9B/Tn3mgB0vO7IVWVBLYOSeIfB2nvinq0ia7TSztC8AuX/1ANgKAWAGtDEDomAnid57p0p7HEo4ZWG9MQtTr4f/i9H6IFo9wPsR+iBQQsENHvif0QLSBggYh+T+yHaAEBC0T0e6IFEP8D5dohnWmX6X0AAAAASUVORK5CYII="},"90fb":function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-documentation",use:"icon-documentation-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},"93cd":function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-tree",use:"icon-tree-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},"967a":function(t,e,n){"use strict";n("9796")},9796:function(t,e,n){},9921:function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-fullscreen",use:"icon-fullscreen-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},"9bbf":function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-drag",use:"icon-drag-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},"9d91":function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-icon",use:"icon-icon-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},a14a:function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-404",use:"icon-404-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},a18c:function(t,e,n){"use strict";var i,a,r=n("2b0e"),o=n("8c4f"),c=n("83d6"),s=n.n(c),u=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"app-wrapper",class:t.classObj},["mobile"===t.device&&t.sidebar.opened?n("div",{staticClass:"drawer-bg",on:{click:t.handleClickOutside}}):t._e(),t._v(" "),n("sidebar",{staticClass:"sidebar-container",class:"leftBar"+t.sidebarWidth}),t._v(" "),n("div",{staticClass:"main-container",class:["leftBar"+t.sidebarWidth,t.needTagsView?"hasTagsView":""]},[n("div",{class:{"fixed-header":t.fixedHeader}},[n("navbar"),t._v(" "),t.needTagsView?n("tags-view"):t._e()],1),t._v(" "),n("app-main")],1),t._v(" "),n("copy-right")],1)},l=[],d=n("5530"),h=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("section",{staticClass:"app-main"},[n("transition",{attrs:{name:"fade-transform",mode:"out-in"}},[n("keep-alive",{attrs:{include:t.cachedViews}},[n("router-view",{key:t.key})],1)],1)],1)},m=[],f={name:"AppMain",computed:{cachedViews:function(){return this.$store.state.tagsView.cachedViews},key:function(){return this.$route.path}}},p=f,g=(n("6244"),n("eb24"),n("2877")),b=Object(g["a"])(p,h,m,!1,null,"51b022fa",null),v=b.exports,A=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"navbar"},[n("hamburger",{staticClass:"hamburger-container",attrs:{id:"hamburger-container","is-active":t.sidebar.opened},on:{toggleClick:t.toggleSideBar}}),t._v(" "),n("breadcrumb",{staticClass:"breadcrumb-container",attrs:{id:"breadcrumb-container"}}),t._v(" "),n("div",{staticClass:"right-menu"},["mobile"!==t.device?[n("header-notice"),t._v(" "),n("search",{staticClass:"right-menu-item",attrs:{id:"header-search"}}),t._v(" "),n("screenfull",{staticClass:"right-menu-item hover-effect",attrs:{id:"screenfull"}})]:t._e(),t._v(" "),n("div",{staticClass:"platformLabel"},[t._v(t._s(t.label.mer_name))]),t._v(" "),n("el-dropdown",{staticClass:"avatar-container right-menu-item hover-effect",attrs:{trigger:"click","hide-on-click":!1}},[n("span",{staticClass:"el-dropdown-link fontSize"},[t._v("\n "+t._s(t.adminInfo)+"\n "),n("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),t._v(" "),n("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[n("el-dropdown-item",{nativeOn:{click:function(e){return t.goUser(e)}}},[n("span",{staticStyle:{display:"block"}},[t._v("个人中心")])]),t._v(" "),n("el-dropdown-item",{attrs:{divided:""},nativeOn:{click:function(e){return t.goPassword(e)}}},[n("span",{staticStyle:{display:"block"}},[t._v("修改密码")])]),t._v(" "),n("el-dropdown-item",{attrs:{divided:""}},[n("el-dropdown",{attrs:{placement:"right-start"},on:{command:t.handleCommand}},[n("span",[t._v("菜单样式")]),t._v(" "),n("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[n("el-dropdown-item",{attrs:{command:"a"}},[t._v("标准")]),t._v(" "),n("el-dropdown-item",{attrs:{command:"b"}},[t._v("分栏")])],1)],1)],1),t._v(" "),n("el-dropdown-item",{attrs:{divided:""},nativeOn:{click:function(e){return t.logout(e)}}},[n("span",{staticStyle:{display:"block"}},[t._v("退出")])])],1)],1)],2)],1)},w=[],y=n("c7eb"),k=(n("96cf"),n("1da1")),C=n("2f62"),E=n("c24f"),j=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-breadcrumb",{staticClass:"app-breadcrumb",attrs:{separator:"/"}},[n("transition-group",{attrs:{name:"breadcrumb"}},t._l(t.levelList,(function(e,i){return n("el-breadcrumb-item",{key:i},[n("span",{staticClass:"no-redirect"},[t._v(t._s(e.meta.title))])])})),1)],1)},I=[],x=(n("7f7f"),n("f559"),n("bd11")),S=n.n(x),O={data:function(){return{levelList:null,roterPre:c["roterPre"]}},watch:{$route:function(t){t.path.startsWith("/redirect/")||this.getBreadcrumb()}},created:function(){this.getBreadcrumb()},methods:{getBreadcrumb:function(){var t=this.$route.matched.filter((function(t){return t.meta&&t.meta.title})),e=t[0];this.isDashboard(e)||(t=[{path:c["roterPre"]+"/dashboard",meta:{title:"控制台"}}].concat(t)),this.levelList=t.filter((function(t){return t.meta&&t.meta.title&&!1!==t.meta.breadcrumb}))},isDashboard:function(t){var e=t&&t.name;return!!e&&e.trim().toLocaleLowerCase()==="Dashboard".toLocaleLowerCase()},pathCompile:function(t){var e=this.$route.params,n=S.a.compile(t);return n(e)},handleLink:function(t){var e=t.redirect,n=t.path;e?this.$router.push(e):this.$router.push(this.pathCompile(n))}}},R=O,_=(n("d249"),Object(g["a"])(R,j,I,!1,null,"210f2cc6",null)),M=_.exports,D=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticStyle:{padding:"0 15px"},on:{click:t.toggleClick}},[n("svg",{staticClass:"hamburger",class:{"is-active":t.isActive},attrs:{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:"64",height:"64"}},[n("path",{attrs:{d:"M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM142.4 642.1L298.7 519a8.84 8.84 0 0 0 0-13.9L142.4 381.9c-5.8-4.6-14.4-.5-14.4 6.9v246.3a8.9 8.9 0 0 0 14.4 7z"}})])])},z=[],V={name:"Hamburger",props:{isActive:{type:Boolean,default:!1}},methods:{toggleClick:function(){this.$emit("toggleClick")}}},B=V,F=(n("c043"),Object(g["a"])(B,D,z,!1,null,"363956eb",null)),L=F.exports,N=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("svg-icon",{attrs:{"icon-class":t.isFullscreen?"exit-fullscreen":"fullscreen"},on:{click:t.click}})],1)},T=[],Q=n("93bf"),P=n.n(Q),H={name:"Screenfull",data:function(){return{isFullscreen:!1}},mounted:function(){this.init()},beforeDestroy:function(){this.destroy()},methods:{click:function(){if(!P.a.enabled)return this.$message({message:"you browser can not work",type:"warning"}),!1;P.a.toggle()},change:function(){this.isFullscreen=P.a.isFullscreen},init:function(){P.a.enabled&&P.a.on("change",this.change)},destroy:function(){P.a.enabled&&P.a.off("change",this.change)}}},U=H,G=(n("4d7e"),Object(g["a"])(U,N,T,!1,null,"07f9857d",null)),W=G.exports,Z=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"header-notice right-menu-item"},[n("el-dropdown",{attrs:{trigger:"click"}},[n("span",{staticClass:"el-dropdown-link"},[t.count>0?n("el-badge",{staticClass:"item",attrs:{"is-dot":"",value:t.count}},[n("i",{staticClass:"el-icon-message-solid"})]):n("span",{staticClass:"item"},[n("i",{staticClass:"el-icon-message-solid"})])],1),t._v(" "),n("el-dropdown-menu",{attrs:{slot:"dropdown",placement:"top-end"},slot:"dropdown"},[n("el-dropdown-item",{staticClass:"clearfix"},[n("el-tabs",{on:{"tab-click":t.handleClick},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[t.messageList.length>0?n("el-card",{staticClass:"box-card"},[n("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[n("span",[t._v("消息")])]),t._v(" "),t._l(t.messageList,(function(e,i){return n("router-link",{key:i,staticClass:"text item_content",attrs:{to:{path:t.roterPre+"/station/notice/"+e.notice_log_id}},nativeOn:{click:function(e){return t.HandleDelete(i)}}},[n("el-badge",{staticClass:"item",attrs:{"is-dot":""}}),t._v(" "+t._s(e.notice_title)+"\n ")],1)}))],2):n("div",{staticClass:"ivu-notifications-container-list"},[n("div",{staticClass:"ivu-notifications-tab-empty"},[n("div",{staticClass:"ivu-notifications-tab-empty-text"},[t._v("目前没有通知")]),t._v(" "),n("img",{staticClass:"ivu-notifications-tab-empty-img",attrs:{src:"https://file.iviewui.com/iview-pro/icon-no-message.svg",alt:""}})])])],1)],1)],1)],1)],1)},Y=[],J=n("8593"),q={name:"headerNotice",data:function(){return{activeName:"second",messageList:[],needList:[],count:0,tabPosition:"right",roterPre:c["roterPre"]}},computed:{},watch:{},mounted:function(){this.getList()},methods:{handleClick:function(t,e){console.log(t,e)},goDetail:function(t){t.is_read=1,console.log(this.$router),this.$router.push({path:this.roterPre+"/station/notice",query:{id:t.notice_log_id}})},getList:function(){var t=this;Object(J["G"])({is_read:0}).then((function(e){t.messageList=e.data.list,t.count=e.data.count})).catch((function(t){}))},HandleDelete:function(t){this.messageList.splice(t,1)}}},X=q,K=(n("225f"),Object(g["a"])(X,Z,Y,!1,null,"3bc87138",null)),$=K.exports,tt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"header-search",class:{show:t.show}},[n("svg-icon",{attrs:{"class-name":"search-icon","icon-class":"search"},on:{click:function(e){return e.stopPropagation(),t.click(e)}}}),t._v(" "),n("el-select",{ref:"headerSearchSelect",staticClass:"header-search-select",attrs:{"remote-method":t.querySearch,filterable:"","default-first-option":"",remote:"",placeholder:"Search"},on:{change:t.change},model:{value:t.search,callback:function(e){t.search=e},expression:"search"}},[t._l(t.options,(function(e){return[0===e.children.length?n("el-option",{key:e.route,attrs:{value:e,label:e.menu_name.join(" > ")}}):t._e()]}))],2)],1)},et=[],nt=(n("386d"),n("2909")),it=n("b85c"),at=n("ffe7"),rt=n.n(at),ot=n("df7c"),ct=n.n(ot),st={name:"headerSearch",data:function(){return{search:"",options:[],searchPool:[],show:!1,fuse:void 0}},computed:Object(d["a"])({},Object(C["b"])(["menuList"])),watch:{routes:function(){this.searchPool=this.generateRoutes(this.menuList)},searchPool:function(t){this.initFuse(t)},show:function(t){t?document.body.addEventListener("click",this.close):document.body.removeEventListener("click",this.close)}},mounted:function(){this.searchPool=this.generateRoutes(this.menuList)},methods:{click:function(){this.show=!this.show,this.show&&this.$refs.headerSearchSelect&&this.$refs.headerSearchSelect.focus()},close:function(){this.$refs.headerSearchSelect&&this.$refs.headerSearchSelect.blur(),this.options=[],this.show=!1},change:function(t){var e=this;this.$router.push(t.route),this.search="",this.options=[],this.$nextTick((function(){e.show=!1}))},initFuse:function(t){this.fuse=new rt.a(t,{shouldSort:!0,threshold:.4,location:0,distance:100,maxPatternLength:32,minMatchCharLength:1,keys:[{name:"menu_name",weight:.7},{name:"route",weight:.3}]})},generateRoutes:function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],a=[],r=Object(it["a"])(t);try{for(r.s();!(e=r.n()).done;){var o=e.value;if(!o.hidden){var c={route:ct.a.resolve(n,o.route),menu_name:Object(nt["a"])(i),children:o.children||[]};if(o.menu_name&&(c.menu_name=[].concat(Object(nt["a"])(c.menu_name),[o.menu_name]),"noRedirect"!==o.redirect&&a.push(c)),o.children){var s=this.generateRoutes(o.children,c.route,c.menu_name);s.length>=1&&(a=[].concat(Object(nt["a"])(a),Object(nt["a"])(s)))}}}}catch(u){r.e(u)}finally{r.f()}return a},querySearch:function(t){this.options=""!==t?this.fuse.search(t):[]}}},ut=st,lt=(n("8646"),Object(g["a"])(ut,tt,et,!1,null,"2301aee3",null)),dt=lt.exports,ht=n("a78e"),mt=n.n(ht),ft={components:{Breadcrumb:M,Hamburger:L,Screenfull:W,HeaderNotice:$,Search:dt},watch:{sidebarStyle:function(t){this.sidebarStyle=t}},data:function(){return{roterPre:c["roterPre"],sideBar1:"a"!=window.localStorage.getItem("sidebarStyle"),adminInfo:mt.a.set("MerName"),label:""}},computed:Object(d["a"])(Object(d["a"])({},Object(C["b"])(["sidebar","avatar","device"])),Object(C["d"])({sidebar:function(t){return t.app.sidebar},sidebarStyle:function(t){return t.user.sidebarStyle}})),mounted:function(){var t=this;Object(E["i"])().then((function(e){t.label=e.data})).catch((function(e){var n=e.message;t.$message.error(n)}))},methods:{handleCommand:function(t){this.$store.commit("user/SET_SIDEBAR_STYLE",t),window.localStorage.setItem("sidebarStyle",t),this.sideBar1?this.subMenuList&&this.subMenuList.length>0?this.$store.commit("user/SET_SIDEBAR_WIDTH",270):this.$store.commit("user/SET_SIDEBAR_WIDTH",130):this.$store.commit("user/SET_SIDEBAR_WIDTH",210)},toggleSideBar:function(){this.$store.dispatch("app/toggleSideBar")},goUser:function(){this.$modalForm(Object(E["h"])())},goPassword:function(){this.$modalForm(Object(E["v"])())},logout:function(){var t=Object(k["a"])(Object(y["a"])().mark((function t(){return Object(y["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this.$store.dispatch("user/logout");case 2:this.$router.push("".concat(c["roterPre"],"/login?redirect=").concat(this.$route.fullPath));case 3:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()}},pt=ft,gt=(n("ac94"),Object(g["a"])(pt,A,w,!1,null,"691d2aa4",null)),bt=gt.exports,vt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"drawer-container"},[n("div",[n("h3",{staticClass:"drawer-title"},[t._v("Page style setting")]),t._v(" "),n("div",{staticClass:"drawer-item"},[n("span",[t._v("Theme Color")]),t._v(" "),n("theme-picker",{staticStyle:{float:"right",height:"26px",margin:"-3px 8px 0 0"},on:{change:t.themeChange}})],1),t._v(" "),n("div",{staticClass:"drawer-item"},[n("span",[t._v("Open Tags-View")]),t._v(" "),n("el-switch",{staticClass:"drawer-switch",model:{value:t.tagsView,callback:function(e){t.tagsView=e},expression:"tagsView"}})],1),t._v(" "),n("div",{staticClass:"drawer-item"},[n("span",[t._v("Fixed Header")]),t._v(" "),n("el-switch",{staticClass:"drawer-switch",model:{value:t.fixedHeader,callback:function(e){t.fixedHeader=e},expression:"fixedHeader"}})],1),t._v(" "),n("div",{staticClass:"drawer-item"},[n("span",[t._v("Sidebar Logo")]),t._v(" "),n("el-switch",{staticClass:"drawer-switch",model:{value:t.sidebarLogo,callback:function(e){t.sidebarLogo=e},expression:"sidebarLogo"}})],1)])])},At=[],wt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-color-picker",{staticClass:"theme-picker",attrs:{predefine:["#409EFF","#1890ff","#304156","#212121","#11a983","#13c2c2","#6959CD","#f5222d"],"popper-class":"theme-picker-dropdown"},model:{value:t.theme,callback:function(e){t.theme=e},expression:"theme"}})},yt=[],kt=(n("c5f6"),n("6b54"),n("ac6a"),n("3b2b"),n("a481"),n("f6f8").version),Ct="#409EFF",Et={data:function(){return{chalk:"",theme:""}},computed:{defaultTheme:function(){return this.$store.state.settings.theme}},watch:{defaultTheme:{handler:function(t,e){this.theme=t},immediate:!0},theme:function(){var t=Object(k["a"])(Object(y["a"])().mark((function t(e){var n,i,a,r,o,c,s,u,l=this;return Object(y["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(n=this.chalk?this.theme:Ct,"string"===typeof e){t.next=3;break}return t.abrupt("return");case 3:if(i=this.getThemeCluster(e.replace("#","")),a=this.getThemeCluster(n.replace("#","")),r=this.$message({message:" Compiling the theme",customClass:"theme-message",type:"success",duration:0,iconClass:"el-icon-loading"}),o=function(t,e){return function(){var n=l.getThemeCluster(Ct.replace("#","")),a=l.updateStyle(l[t],n,i),r=document.getElementById(e);r||(r=document.createElement("style"),r.setAttribute("id",e),document.head.appendChild(r)),r.innerText=a}},this.chalk){t.next=11;break}return c="https://unpkg.com/element-ui@".concat(kt,"/lib/theme-chalk/index.css"),t.next=11,this.getCSSString(c,"chalk");case 11:s=o("chalk","chalk-style"),s(),u=[].slice.call(document.querySelectorAll("style")).filter((function(t){var e=t.innerText;return new RegExp(n,"i").test(e)&&!/Chalk Variables/.test(e)})),u.forEach((function(t){var e=t.innerText;"string"===typeof e&&(t.innerText=l.updateStyle(e,a,i))})),this.$emit("change",e),r.close();case 17:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}()},methods:{updateStyle:function(t,e,n){var i=t;return e.forEach((function(t,e){i=i.replace(new RegExp(t,"ig"),n[e])})),i},getCSSString:function(t,e){var n=this;return new Promise((function(i){var a=new XMLHttpRequest;a.onreadystatechange=function(){4===a.readyState&&200===a.status&&(n[e]=a.responseText.replace(/@font-face{[^}]+}/,""),i())},a.open("GET",t),a.send()}))},getThemeCluster:function(t){for(var e=function(t,e){var n=parseInt(t.slice(0,2),16),i=parseInt(t.slice(2,4),16),a=parseInt(t.slice(4,6),16);return 0===e?[n,i,a].join(","):(n+=Math.round(e*(255-n)),i+=Math.round(e*(255-i)),a+=Math.round(e*(255-a)),n=n.toString(16),i=i.toString(16),a=a.toString(16),"#".concat(n).concat(i).concat(a))},n=function(t,e){var n=parseInt(t.slice(0,2),16),i=parseInt(t.slice(2,4),16),a=parseInt(t.slice(4,6),16);return n=Math.round((1-e)*n),i=Math.round((1-e)*i),a=Math.round((1-e)*a),n=n.toString(16),i=i.toString(16),a=a.toString(16),"#".concat(n).concat(i).concat(a)},i=[t],a=0;a<=9;a++)i.push(e(t,Number((a/10).toFixed(2))));return i.push(n(t,.1)),i}}},jt=Et,It=(n("678b"),Object(g["a"])(jt,wt,yt,!1,null,null,null)),xt=It.exports,St={components:{ThemePicker:xt},data:function(){return{}},computed:{fixedHeader:{get:function(){return this.$store.state.settings.fixedHeader},set:function(t){this.$store.dispatch("settings/changeSetting",{key:"fixedHeader",value:t})}},tagsView:{get:function(){return this.$store.state.settings.tagsView},set:function(t){this.$store.dispatch("settings/changeSetting",{key:"tagsView",value:t})}},sidebarLogo:{get:function(){return this.$store.state.settings.sidebarLogo},set:function(t){this.$store.dispatch("settings/changeSetting",{key:"sidebarLogo",value:t})}}},methods:{themeChange:function(t){this.$store.dispatch("settings/changeSetting",{key:"theme",value:t})}}},Ot=St,Rt=(n("5bdf"),Object(g["a"])(Ot,vt,At,!1,null,"e1b97696",null)),_t=Rt.exports,Mt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{key:t.sideBar1&&t.isCollapse,class:{"has-logo":t.showLogo}},[t.showLogo?n("logo",{attrs:{collapse:t.isCollapse,sideBar1:t.sideBar1}}):t._e(),t._v(" "),n("el-scrollbar",[t.sideBar1?[t.isCollapse?t._e():t._l(t.menuList,(function(e){return n("ul",{key:e.route,staticStyle:{padding:"0"}},[n("li",[n("div",{staticClass:"menu menu-one"},[n("div",{staticClass:"menu-item",class:{active:t.pathCompute(e)},on:{click:function(n){return t.goPath(e)}}},[n("i",{class:"menu-icon el-icon-"+e.icon}),n("span",[t._v(t._s(e.menu_name))])])])])])})),t._v(" "),t.subMenuList&&t.subMenuList.length>0&&!t.isCollapse?n("el-menu",{staticClass:"menuOpen",attrs:{"default-active":t.activeMenu,"background-color":"#ffffff","text-color":"#303133","unique-opened":!1,"active-text-color":"#303133",mode:"vertical"}},[n("div",{staticStyle:{height:"100%"}},[n("div",{staticClass:"sub-title"},[t._v(t._s(t.menu_name))]),t._v(" "),n("el-scrollbar",{attrs:{"wrap-class":"scrollbar-wrapper"}},t._l(t.subMenuList,(function(e,i){return n("div",{key:i},[!t.hasOneShowingChild(e.children,e)||t.onlyOneChild.children&&!t.onlyOneChild.noShowingChildren||e.alwaysShow?n("el-submenu",{ref:"subMenu",refInFor:!0,attrs:{index:t.resolvePath(e.route),"popper-append-to-body":""}},[n("template",{slot:"title"},[e?n("item",{attrs:{icon:e&&e.icon,title:e.menu_name}}):t._e()],1),t._v(" "),t._l(e.children,(function(e,i){return n("sidebar-item",{key:i,staticClass:"nest-menu",attrs:{"is-nest":!0,item:e,"base-path":t.resolvePath(e.route),isCollapse:t.isCollapse}})}))],2):[t.onlyOneChild?n("app-link",{attrs:{to:t.resolvePath(t.onlyOneChild.route)}},[n("el-menu-item",{attrs:{index:t.resolvePath(t.onlyOneChild.route)}},[n("item",{attrs:{icon:t.onlyOneChild.icon||e&&e.icon,title:t.onlyOneChild.menu_name}})],1)],1):t._e()]],2)})),0)],1)]):t._e(),t._v(" "),t.isCollapse?[n("el-menu",{staticClass:"menuStyle2",attrs:{"default-active":t.activeMenu,collapse:t.isCollapse,"background-color":t.variables.menuBg,"text-color":t.variables.menuText,"unique-opened":!0,"active-text-color":"#ffffff","collapse-transition":!1,mode:"vertical","popper-class":"styleTwo"}},[t._l(t.menuList,(function(t){return n("sidebar-item",{key:t.route,staticClass:"style2",attrs:{item:t,"base-path":t.route}})}))],2)]:t._e()]:n("el-menu",{staticClass:"subMenu1",attrs:{"default-active":t.activeMenu,collapse:t.isCollapse,"background-color":t.variables.menuBg,"text-color":t.variables.menuText,"unique-opened":!0,"active-text-color":t.variables.menuActiveText,"collapse-transition":!1,mode:"vertical"}},[t._l(t.menuList,(function(t){return n("sidebar-item",{key:t.route,attrs:{item:t,"base-path":t.route}})}))],2)],2)],1)},Dt=[],zt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"sidebar-logo-container",class:{collapse:t.collapse}},[n("transition",{attrs:{name:"sidebarLogoFade"}},[t.collapse&&!t.sideBar1?n("router-link",{key:"collapse",staticClass:"sidebar-logo-link",attrs:{to:"/"}},[t.slogo?n("img",{staticClass:"sidebar-logo-small",attrs:{src:t.slogo}}):t._e()]):n("router-link",{key:"expand",staticClass:"sidebar-logo-link",attrs:{to:"/"}},[t.logo?n("img",{staticClass:"sidebar-logo-big",attrs:{src:t.logo}}):t._e()])],1)],1)},Vt=[],Bt=s.a.title,Ft={name:"SidebarLogo",props:{collapse:{type:Boolean,required:!0},sideBar1:{type:Boolean,required:!1}},data:function(){return{title:Bt,logo:JSON.parse(mt.a.get("MerInfo")).menu_logo,slogo:JSON.parse(mt.a.get("MerInfo")).menu_slogo}}},Lt=Ft,Nt=(n("4b27"),Object(g["a"])(Lt,zt,Vt,!1,null,"06bf082e",null)),Tt=Nt.exports,Qt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("component",t._b({},"component",t.linkProps(t.to),!1),[t._t("default")],2)},Pt=[],Ht=n("61f7"),Ut={props:{to:{type:String,required:!0}},methods:{linkProps:function(t){return Object(Ht["b"])(t)?{is:"a",href:t,target:"_blank",rel:"noopener"}:{is:"router-link",to:t}}}},Gt=Ut,Wt=Object(g["a"])(Gt,Qt,Pt,!1,null,null,null),Zt=Wt.exports,Yt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.item.hidden?t._e():n("div",{class:{menuTwo:t.isCollapse}},[[!t.hasOneShowingChild(t.item.children,t.item)||t.onlyOneChild.children&&!t.onlyOneChild.noShowingChildren||t.item.alwaysShow?n("el-submenu",{ref:"subMenu",class:{subMenu2:t.sideBar1},attrs:{"popper-class":t.sideBar1?"styleTwo":"",index:t.resolvePath(t.item.route),"popper-append-to-body":""}},[n("template",{slot:"title"},[t.item?n("item",{attrs:{icon:t.item&&t.item.icon,title:t.item.menu_name}}):t._e()],1),t._v(" "),t._l(t.item.children,(function(e,i){return n("sidebar-item",{key:i,staticClass:"nest-menu",attrs:{level:t.level+1,"is-nest":!0,item:e,"base-path":t.resolvePath(e.route)}})}))],2):[t.onlyOneChild?n("app-link",{attrs:{to:t.resolvePath(t.onlyOneChild.route)}},[n("el-menu-item",{class:{"submenu-title-noDropdown":!t.isNest},attrs:{index:t.resolvePath(t.onlyOneChild.route)}},[t.sideBar1&&(!t.item.children||t.item.children.length<=1)?[n("div",{staticClass:"el-submenu__title",class:{titles:0==t.level,hide:!t.sideBar1&&!t.isCollapse}},[n("i",{class:"menu-icon el-icon-"+t.item.icon}),n("span",[t._v(t._s(t.onlyOneChild.menu_name))])])]:n("item",{attrs:{icon:t.onlyOneChild.icon||t.item&&t.item.icon,title:t.onlyOneChild.menu_name}})],2)],1):t._e()]]],2)},Jt=[],qt={name:"MenuItem",functional:!0,props:{icon:{type:String,default:""},title:{type:String,default:""}},render:function(t,e){var n=e.props,i=n.icon,a=n.title,r=[];if(i){var o="el-icon-"+i;r.push(t("i",{class:o}))}return a&&r.push(t("span",{slot:"title"},[a])),r}},Xt=qt,Kt=Object(g["a"])(Xt,i,a,!1,null,null,null),$t=Kt.exports,te={computed:{device:function(){return this.$store.state.app.device}},mounted:function(){this.fixBugIniOS()},methods:{fixBugIniOS:function(){var t=this,e=this.$refs.subMenu;if(e){var n=e.handleMouseleave;e.handleMouseleave=function(e){"mobile"!==t.device&&n(e)}}}}},ee={name:"SidebarItem",components:{Item:$t,AppLink:Zt},mixins:[te],props:{item:{type:Object,required:!0},isNest:{type:Boolean,default:!1},basePath:{type:String,default:""},level:{type:Number,default:0},isCollapse:{type:Boolean,default:!0}},data:function(){return this.onlyOneChild=null,{sideBar1:"a"!=window.localStorage.getItem("sidebarStyle")}},computed:{activeMenu:function(){var t=this.$route,e=t.meta,n=t.path;return e.activeMenu?e.activeMenu:n}},methods:{hasOneShowingChild:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0,i=e.filter((function(e){return!e.hidden&&(t.onlyOneChild=e,!0)}));return 1===i.length||0===i.length&&(this.onlyOneChild=Object(d["a"])(Object(d["a"])({},n),{},{path:"",noShowingChildren:!0}),!0)},resolvePath:function(t){return Object(Ht["b"])(t)?t:Object(Ht["b"])(this.basePath)?this.basePath:ct.a.resolve(this.basePath,t)}}},ne=ee,ie=(n("d0a6"),Object(g["a"])(ne,Yt,Jt,!1,null,"116a0188",null)),ae=ie.exports,re=n("cf1e2"),oe=n.n(re),ce={components:{SidebarItem:ae,Logo:Tt,AppLink:Zt,Item:$t},mixins:[te],data:function(){return this.onlyOneChild=null,{sideBar1:"a"!=window.localStorage.getItem("sidebarStyle"),menu_name:"",list:this.$store.state.user.menuList,subMenuList:[],activePath:"",isShow:!1}},computed:Object(d["a"])(Object(d["a"])(Object(d["a"])({},Object(C["b"])(["permission_routes","sidebar","menuList"])),Object(C["d"])({sidebar:function(t){return t.app.sidebar},sidebarRouters:function(t){return t.user.sidebarRouters},sidebarStyle:function(t){return t.user.sidebarStyle},routers:function(){var t=this.$store.state.user.menuList?this.$store.state.user.menuList:[];return t}})),{},{activeMenu:function(){var t=this.$route,e=t.meta,n=t.path;return e.activeMenu?e.activeMenu:n},showLogo:function(){return this.$store.state.settings.sidebarLogo},variables:function(){return oe.a},isCollapse:function(){return!this.sidebar.opened}}),watch:{sidebarStyle:function(t,e){this.sideBar1="a"!=t||"a"==e,this.setMenuWidth()},sidebar:{handler:function(t,e){this.sideBar1&&this.getSubMenu()},deep:!0},$route:{handler:function(t,e){this.sideBar1&&this.getSubMenu()},deep:!0}},mounted:function(){this.getMenus(),this.sideBar1?this.getSubMenu():this.setMenuWidth()},methods:Object(d["a"])({setMenuWidth:function(){this.sideBar1?this.subMenuList&&this.subMenuList.length>0&&!this.isCollapse?this.$store.commit("user/SET_SIDEBAR_WIDTH",270):this.$store.commit("user/SET_SIDEBAR_WIDTH",130):this.$store.commit("user/SET_SIDEBAR_WIDTH",180)},ishttp:function(t){return-1!==t.indexOf("http://")||-1!==t.indexOf("https://")},getMenus:function(){this.$store.dispatch("user/getMenus",{that:this})},hasOneShowingChild:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0,i=e.filter((function(e){return!e.hidden&&(t.onlyOneChild=e,!0)}));return 1===i.length||0===i.length&&(this.onlyOneChild=Object(d["a"])(Object(d["a"])({},n),{},{path:"",noShowingChildren:!0}),!0)},resolvePath:function(t){return Object(Ht["b"])(t)||Object(Ht["b"])(this.basePath)?t:ct.a.resolve(t,t)},goPath:function(t){if(this.menu_name=t.menu_name,t.children){this.$store.commit("user/SET_SIDEBAR_WIDTH",270),this.subMenuList=t.children,window.localStorage.setItem("subMenuList",this.subMenuList);var e=this.resolvePath(this.getChild(t.children)[0].route);t.route=e,this.$router.push({path:e})}else{this.$store.commit("user/SET_SIDEBAR_WIDTH",130),this.subMenuList=[],window.localStorage.setItem("subMenuList",[]);var n=this.resolvePath(t.route);this.$router.push({path:n})}},getChild:function(t){var e=[];return t.forEach((function(t){var n=function t(n){var i=n.children;if(i)for(var a=0;a0&&(r=a[0],o=a[a.length-1]),r===t)i.scrollLeft=0;else if(o===t)i.scrollLeft=i.scrollWidth-n;else{var c=a.findIndex((function(e){return e===t})),s=a[c-1],u=a[c+1],l=u.$el.offsetLeft+u.$el.offsetWidth+pe,d=s.$el.offsetLeft-pe;l>i.scrollLeft+n?i.scrollLeft=l-n:d1&&void 0!==arguments[1]?arguments[1]:"/",i=[];return t.forEach((function(t){if(t.meta&&t.meta.affix){var a=ct.a.resolve(n,t.path);i.push({fullPath:a,path:a,name:t.name,meta:Object(d["a"])({},t.meta)})}if(t.children){var r=e.filterAffixTags(t.children,t.path);r.length>=1&&(i=[].concat(Object(nt["a"])(i),Object(nt["a"])(r)))}})),i},initTags:function(){var t,e=this.affixTags=this.filterAffixTags(this.routes),n=Object(it["a"])(e);try{for(n.s();!(t=n.n()).done;){var i=t.value;i.name&&this.$store.dispatch("tagsView/addVisitedView",i)}}catch(a){n.e(a)}finally{n.f()}},addTags:function(){var t=this.$route.name;return t&&this.$store.dispatch("tagsView/addView",this.$route),!1},moveToCurrentTag:function(){var t=this,e=this.$refs.tag;this.$nextTick((function(){var n,i=Object(it["a"])(e);try{for(i.s();!(n=i.n()).done;){var a=n.value;if(a.to.path===t.$route.path){t.$refs.scrollPane.moveToTarget(a),a.to.fullPath!==t.$route.fullPath&&t.$store.dispatch("tagsView/updateVisitedView",t.$route);break}}}catch(r){i.e(r)}finally{i.f()}}))},refreshSelectedTag:function(t){this.reload()},closeSelectedTag:function(t){var e=this;this.$store.dispatch("tagsView/delView",t).then((function(n){var i=n.visitedViews;e.isActive(t)&&e.toLastView(i,t)}))},closeOthersTags:function(){var t=this;this.$router.push(this.selectedTag),this.$store.dispatch("tagsView/delOthersViews",this.selectedTag).then((function(){t.moveToCurrentTag()}))},closeAllTags:function(t){var e=this;this.$store.dispatch("tagsView/delAllViews").then((function(n){var i=n.visitedViews;e.affixTags.some((function(e){return e.path===t.path}))||e.toLastView(i,t)}))},toLastView:function(t,e){var n=t.slice(-1)[0];n?this.$router.push(n.fullPath):"Dashboard"===e.name?this.$router.replace({path:"/redirect"+e.fullPath}):this.$router.push("/")},openMenu:function(t,e){var n=105,i=this.$el.getBoundingClientRect().left,a=this.$el.offsetWidth,r=a-n,o=e.clientX-i+15;this.left=o>r?r:o,this.top=e.clientY,this.visible=!0,this.selectedTag=t},closeMenu:function(){this.visible=!1}}},ye=we,ke=(n("0a4d"),n("b428"),Object(g["a"])(ye,de,he,!1,null,"3f349a64",null)),Ce=ke.exports,Ee=function(){var t=this,e=t.$createElement,n=t._self._c||e;return"0"!==t.openVersion?n("div",{staticClass:"ivu-global-footer i-copyright"},[-1==t.version.status?n("div",{staticClass:"ivu-global-footer-copyright"},[t._v(t._s("Copyright "+t.version.year+" ")),n("a",{attrs:{href:"http://"+t.version.url,target:"_blank"}},[t._v(t._s(t.version.version))])]):n("div",{staticClass:"ivu-global-footer-copyright"},[t._v(t._s(t.version.Copyright))])]):t._e()},je=[],Ie=n("2801"),xe={name:"i-copyright",data:function(){return{copyright:"Copyright © 2022 西安众邦网络科技有限公司",openVersion:"0",copyright_status:"0",version:{}}},mounted:function(){this.getVersion()},methods:{getVersion:function(){var t=this;Object(Ie["j"])().then((function(e){e.data.version;t.version=e.data,t.copyright=e.data.copyright,t.openVersion=e.data.sys_open_version})).catch((function(e){t.$message.error(e.message)}))}}},Se=xe,Oe=(n("8bcc"),Object(g["a"])(Se,Ee,je,!1,null,"036cf7b4",null)),Re=Oe.exports,_e=n("4360"),Me=document,De=Me.body,ze=992,Ve={watch:{$route:function(t){"mobile"===this.device&&this.sidebar.opened&&_e["a"].dispatch("app/closeSideBar",{withoutAnimation:!1})}},beforeMount:function(){window.addEventListener("resize",this.$_resizeHandler)},beforeDestroy:function(){window.removeEventListener("resize",this.$_resizeHandler)},mounted:function(){var t=this.$_isMobile();t&&(_e["a"].dispatch("app/toggleDevice","mobile"),_e["a"].dispatch("app/closeSideBar",{withoutAnimation:!0}))},methods:{$_isMobile:function(){var t=De.getBoundingClientRect();return t.width-1'});o.a.add(c);e["default"]=c},ab00:function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-lock",use:"icon-lock-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},ac94:function(t,e,n){"use strict";n("14b7")},ad1c:function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-education",use:"icon-education-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},af8c:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFEAAABRCAYAAACqj0o2AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA25pVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICA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ngSgQRQJRIApEgSgSiGb0W4ABAPZht+rjWKYmAAAAAElFTkSuQmCC"},b20f:function(t,e,n){t.exports={menuText:"#bfcbd9",menuActiveText:"#6394F9",subMenuActiveText:"#f4f4f5",menuBg:"#0B1529",menuHover:"#182848",subMenuBg:"#030C17",subMenuHover:"#182848",sideBarWidth:"180px"}},b3b5:function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-user",use:"icon-user-usage",viewBox:"0 0 130 130",content:''});o.a.add(c);e["default"]=c},b428:function(t,e,n){"use strict";n("ea55")},b55e:function(t,e,n){},b5b8:function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("el-row",[n("el-col",t._b({},"el-col",t.grid,!1),[n("div",{staticClass:"Nav"},[n("div",{staticClass:"input"},[n("el-input",{staticStyle:{width:"100%"},attrs:{placeholder:"选择分类","prefix-icon":"el-icon-search",clearable:""},model:{value:t.filterText,callback:function(e){t.filterText=e},expression:"filterText"}})],1),t._v(" "),n("div",{staticClass:"trees-coadd"},[n("div",{staticClass:"scollhide"},[n("div",{staticClass:"trees"},[n("el-tree",{ref:"tree",attrs:{data:t.treeData2,"filter-node-method":t.filterNode,props:t.defaultProps},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.node,a=e.data;return n("div",{staticClass:"custom-tree-node",on:{click:function(e){return e.stopPropagation(),t.handleNodeClick(a)}}},[n("div",[n("span",[t._v(t._s(i.label))]),t._v(" "),a.space_property_name?n("span",{staticStyle:{"font-size":"11px",color:"#3889b1"}},[t._v("("+t._s(a.attachment_category_name)+")")]):t._e()]),t._v(" "),n("span",{staticClass:"el-ic"},[n("i",{staticClass:"el-icon-circle-plus-outline",on:{click:function(e){return e.stopPropagation(),t.onAdd(a.attachment_category_id)}}}),t._v(" "),"0"==a.space_id||a.children&&"undefined"!=a.children||!a.attachment_category_id?t._e():n("i",{staticClass:"el-icon-edit",attrs:{title:"修改"},on:{click:function(e){return e.stopPropagation(),t.onEdit(a.attachment_category_id)}}}),t._v(" "),"0"==a.space_id||a.children&&"undefined"!=a.children||!a.attachment_category_id?t._e():n("i",{staticClass:"el-icon-delete",attrs:{title:"删除分类"},on:{click:function(e){return e.stopPropagation(),function(){return t.handleDelete(a.attachment_category_id)}()}}})])])}}])})],1)])])])]),t._v(" "),n("el-col",t._b({staticClass:"colLeft"},"el-col",t.grid2,!1),[n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"conter"},[n("div",{staticClass:"bnt"},["/merchant/config/picture"!==t.params?n("el-button",{staticClass:"mb10 mr10",attrs:{size:"small",type:"primary"},on:{click:t.checkPics}},[t._v("使用选中图片")]):t._e(),t._v(" "),n("el-upload",{staticClass:"upload-demo mr10 mb15",attrs:{action:t.fileUrl,"on-success":t.handleSuccess,headers:t.myHeaders,"show-file-list":!1,multiple:""}},[n("el-button",{attrs:{size:"small",type:"primary"}},[t._v("点击上传")])],1),t._v(" "),n("el-button",{attrs:{type:"success",size:"small"},on:{click:function(e){return e.stopPropagation(),t.onAdd(0)}}},[t._v("添加分类")]),t._v(" "),n("el-button",{staticClass:"mr10",attrs:{type:"error",size:"small",disabled:0===t.checkPicList.length},on:{click:function(e){return e.stopPropagation(),t.editPicList("图片")}}},[t._v("删除图片")]),t._v(" "),n("el-input",{staticStyle:{width:"230px"},attrs:{placeholder:"请输入图片名称搜索",size:"small"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getFileList(1)}},model:{value:t.tableData.attachment_name,callback:function(e){t.$set(t.tableData,"attachment_name",e)},expression:"tableData.attachment_name"}},[n("el-button",{staticClass:"el-button-solt",attrs:{slot:"append",icon:"el-icon-search"},on:{click:function(e){return t.getFileList(1)}},slot:"append"})],1),t._v(" "),n("el-select",{staticClass:"mb15",attrs:{placeholder:"图片移动至",size:"small"},model:{value:t.sleOptions.attachment_category_name,callback:function(e){t.$set(t.sleOptions,"attachment_category_name",e)},expression:"sleOptions.attachment_category_name"}},[n("el-option",{staticStyle:{"max-width":"560px",height:"200px",overflow:"auto","background-color":"#fff"},attrs:{label:t.sleOptions.attachment_category_name,value:t.sleOptions.attachment_category_id}},[n("el-tree",{ref:"tree2",attrs:{data:t.treeData2,"filter-node-method":t.filterNode,props:t.defaultProps},on:{"node-click":t.handleSelClick}})],1)],1)],1),t._v(" "),n("div",{staticClass:"pictrueList acea-row mb15"},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.isShowPic,expression:"isShowPic"}],staticClass:"imagesNo"},[n("i",{staticClass:"el-icon-picture",staticStyle:{"font-size":"60px",color:"rgb(219, 219, 219)"}}),t._v(" "),n("span",{staticClass:"imagesNo_sp"},[t._v("图片库为空")])]),t._v(" "),n("div",{staticClass:"conters"},t._l(t.pictrueList.list,(function(e,i){return n("div",{key:i,staticClass:"gridPic"},[e.num>0?n("p",{staticClass:"number"},[n("el-badge",{staticClass:"item",attrs:{value:e.num}},[n("a",{staticClass:"demo-badge",attrs:{href:"#"}})])],1):t._e(),t._v(" "),n("img",{directives:[{name:"lazy",rawName:"v-lazy",value:e.attachment_src,expression:"item.attachment_src"}],class:e.isSelect?"on":"",on:{click:function(n){return t.changImage(e,i,t.pictrueList.list)}}}),t._v(" "),n("div",{staticStyle:{display:"flex","align-items":"center","justify-content":"space-between"}},[t.editId===e.attachment_id?n("el-input",{model:{value:e.attachment_name,callback:function(n){t.$set(e,"attachment_name",n)},expression:"item.attachment_name"}}):n("p",{staticClass:"name",staticStyle:{width:"80%"}},[t._v(t._s(e.attachment_name))]),t._v(" "),n("i",{staticClass:"el-icon-edit",on:{click:function(n){return t.handleEdit(e.attachment_id,e.attachment_name)}}})],1)])})),0)]),t._v(" "),n("div",{staticClass:"block"},[n("el-pagination",{attrs:{"page-sizes":[12,20,40,60],"page-size":t.tableData.limit,"current-page":t.tableData.page,layout:"total, sizes, prev, pager, next, jumper",total:t.pictrueList.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)])])],1)],1)},a=[],r=(n("4f7f"),n("5df3"),n("1c4c"),n("ac6a"),n("c7eb")),o=(n("96cf"),n("1da1")),c=(n("c5f6"),n("2909")),s=n("8593"),u=n("5f87"),l=n("bbcc"),d={name:"Upload",props:{isMore:{type:String,default:"1"},setModel:{type:String}},data:function(){return{loading:!1,params:"",sleOptions:{attachment_category_name:"",attachment_category_id:""},list:[],grid:{xl:8,lg:8,md:8,sm:8,xs:24},grid2:{xl:16,lg:16,md:16,sm:16,xs:24},filterText:"",treeData:[],treeData2:[],defaultProps:{children:"children",label:"attachment_category_name"},classifyId:0,myHeaders:{"X-Token":Object(u["a"])()},tableData:{page:1,limit:12,attachment_category_id:0,order:"",attachment_name:""},pictrueList:{list:[],total:0},isShowPic:!1,checkPicList:[],ids:[],checkedMore:[],checkedAll:[],selectItem:[],editId:"",editName:""}},computed:{fileUrl:function(){return l["a"].https+"/upload/image/".concat(this.tableData.attachment_category_id,"/file")}},watch:{filterText:function(t){this.$refs.tree.filter(t)}},mounted:function(){this.params=this.$route&&this.$route.path?this.$route.path:"",this.$route&&"dialog"===this.$route.query.field&&n.e("chunk-2d0da983").then(n.bind(null,"6bef")),this.getList(),this.getFileList("")},methods:{filterNode:function(t,e){return!t||-1!==e.attachment_category_name.indexOf(t)},getList:function(){var t=this,e={attachment_category_name:"全部图片",attachment_category_id:0};Object(s["q"])().then((function(n){t.treeData=n.data,t.treeData.unshift(e),t.treeData2=Object(c["a"])(t.treeData)})).catch((function(e){t.$message.error(e.message)}))},handleEdit:function(t,e){var n=this;if(t===this.editId)if(this.editName!==e){if(!e.trim())return void this.$message.warning("请先输入图片名称");Object(s["x"])(t,{attachment_name:e}).then((function(){return n.getFileList("")})),this.editId=""}else this.editId="",this.editName="";else this.editId=t,this.editName=e},onAdd:function(t){var e=this,n={};Number(t)>0&&(n.formData={pid:t}),this.$modalForm(Object(s["g"])(),n).then((function(t){t.message;e.getList()}))},onEdit:function(t){var e=this;this.$modalForm(Object(s["j"])(t)).then((function(){return e.getList()}))},handleDelete:function(t){var e=this;this.$modalSure().then((function(){Object(s["h"])(t).then((function(t){var n=t.message;e.$message.success(n),e.getList()})).catch((function(t){var n=t.message;e.$message.error(n)}))}))},handleNodeClick:function(t){this.tableData.attachment_category_id=t.attachment_category_id,this.selectItem=[],this.checkPicList=[],this.getFileList("")},handleSuccess:function(t){200===t.status?(this.$message.success("上传成功"),this.getFileList("")):this.$message.error(t.message)},getFileList:function(t){var e=this;this.loading=!0,this.tableData.page=t||this.tableData.page,Object(s["i"])(this.tableData).then(function(){var t=Object(o["a"])(Object(r["a"])().mark((function t(n){return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.pictrueList.list=n.data.list,console.log(e.pictrueList.list),e.pictrueList.list.length?e.isShowPic=!1:e.isShowPic=!0,e.$route&&e.$route.query.field&&"dialog"!==e.$route.query.field&&(e.checkedMore=window.form_create_helper.get(e.$route.query.field)||[]),e.pictrueList.total=n.data.count,e.loading=!1;case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.$message.error(t.message),e.loading=!1}))},pageChange:function(t){this.tableData.page=t,this.selectItem=[],this.checkPicList=[],this.getFileList("")},handleSizeChange:function(t){this.tableData.limit=t,this.getFileList("")},changImage:function(t,e,n){var i=this;if(t.isSelect){t.isSelect=!1;e=this.ids.indexOf(t.attachment_id);e>-1&&this.ids.splice(e,1),this.selectItem.forEach((function(e,n){e.attachment_id==t.attachment_id&&i.selectItem.splice(n,1)})),this.checkPicList.map((function(e,n){e==t.attachment_src&&i.checkPicList.splice(n,1)}))}else t.isSelect=!0,this.selectItem.push(t),this.checkPicList.push(t.attachment_src),this.ids.push(t.attachment_id);this.$route&&"/merchant/config/picture"===this.$route.fullPath&&"dialog"!==this.$route.query.field||this.pictrueList.list.map((function(t,e){t.isSelect?i.selectItem.filter((function(e,n){t.attachment_id==e.attachment_id&&(t.num=n+1)})):t.num=0})),console.log(this.pictrueList.list)},checkPics:function(){if(this.checkPicList.length)if(console.log(this.$route),this.$route){if("1"===this.$route.query.type){if(this.checkPicList.length>1)return this.$message.warning("最多只能选一张图片");form_create_helper.set(this.$route.query.field,this.checkPicList[0]),form_create_helper.close(this.$route.query.field)}if("2"===this.$route.query.type&&(this.checkedAll=[].concat(Object(c["a"])(this.checkedMore),Object(c["a"])(this.checkPicList)),form_create_helper.set(this.$route.query.field,Array.from(new Set(this.checkedAll))),form_create_helper.close(this.$route.query.field)),"dialog"===this.$route.query.field){for(var t="",e=0;e';nowEditor.editor.execCommand("insertHtml",t),nowEditor.dialog.close(!0)}}else{if(console.log(this.isMore,this.checkPicList.length),"1"===this.isMore&&this.checkPicList.length>1)return this.$message.warning("最多只能选一张图片");console.log(this.checkPicList),this.$emit("getImage",this.checkPicList)}else this.$message.warning("请先选择图片")},editPicList:function(t){var e=this,n={ids:this.ids};this.$modalSure().then((function(){Object(s["w"])(n).then((function(t){t.message;e.$message.success("删除成功"),e.getFileList(""),e.checkPicList=[]})).catch((function(t){var n=t.message;e.$message.error(n)}))}))},handleSelClick:function(t){this.ids.length?(this.sleOptions={attachment_category_name:t.attachment_category_name,attachment_category_id:t.attachment_category_id},this.getMove()):this.$message.warning("请先选择图片")},getMove:function(){var t=this;Object(s["k"])(this.ids,this.sleOptions.attachment_category_id).then(function(){var e=Object(o["a"])(Object(r["a"])().mark((function e(n){return Object(r["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.$message.success(n.message),t.clearBoth(),t.getFileList("");case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.clearBoth(),t.$message.error(e.message)}))},clearBoth:function(){this.sleOptions={attachment_category_name:"",attachment_category_id:""},this.checkPicList=[],this.ids=[]}}},h=d,m=(n("c50c"),n("2877")),f=Object(m["a"])(h,i,a,!1,null,"47dc4ee2",null);e["default"]=f.exports},b7be:function(t,e,n){"use strict";n.d(e,"I",(function(){return a})),n.d(e,"B",(function(){return r})),n.d(e,"D",(function(){return o})),n.d(e,"C",(function(){return c})),n.d(e,"y",(function(){return s})),n.d(e,"U",(function(){return u})),n.d(e,"F",(function(){return l})),n.d(e,"A",(function(){return d})),n.d(e,"z",(function(){return h})),n.d(e,"G",(function(){return m})),n.d(e,"H",(function(){return f})),n.d(e,"J",(function(){return p})),n.d(e,"g",(function(){return g})),n.d(e,"d",(function(){return b})),n.d(e,"l",(function(){return v})),n.d(e,"K",(function(){return A})),n.d(e,"lb",(function(){return w})),n.d(e,"j",(function(){return y})),n.d(e,"i",(function(){return k})),n.d(e,"m",(function(){return C})),n.d(e,"f",(function(){return E})),n.d(e,"k",(function(){return j})),n.d(e,"n",(function(){return I})),n.d(e,"ib",(function(){return x})),n.d(e,"h",(function(){return S})),n.d(e,"c",(function(){return O})),n.d(e,"b",(function(){return R})),n.d(e,"V",(function(){return _})),n.d(e,"jb",(function(){return M})),n.d(e,"W",(function(){return D})),n.d(e,"fb",(function(){return z})),n.d(e,"kb",(function(){return V})),n.d(e,"e",(function(){return B})),n.d(e,"gb",(function(){return F})),n.d(e,"cb",(function(){return L})),n.d(e,"eb",(function(){return N})),n.d(e,"db",(function(){return T})),n.d(e,"bb",(function(){return Q})),n.d(e,"hb",(function(){return P})),n.d(e,"q",(function(){return H})),n.d(e,"p",(function(){return U})),n.d(e,"w",(function(){return G})),n.d(e,"u",(function(){return W})),n.d(e,"t",(function(){return Z})),n.d(e,"s",(function(){return Y})),n.d(e,"x",(function(){return J})),n.d(e,"o",(function(){return q})),n.d(e,"r",(function(){return X})),n.d(e,"Z",(function(){return K})),n.d(e,"v",(function(){return $})),n.d(e,"ab",(function(){return tt})),n.d(e,"X",(function(){return et})),n.d(e,"a",(function(){return nt})),n.d(e,"E",(function(){return it})),n.d(e,"R",(function(){return at})),n.d(e,"T",(function(){return rt})),n.d(e,"S",(function(){return ot})),n.d(e,"Y",(function(){return ct})),n.d(e,"P",(function(){return st})),n.d(e,"O",(function(){return ut})),n.d(e,"L",(function(){return lt})),n.d(e,"N",(function(){return dt})),n.d(e,"M",(function(){return ht})),n.d(e,"Q",(function(){return mt}));var i=n("0c6d");function a(t){return i["a"].get("store/coupon/update/".concat(t,"/form"))}function r(t){return i["a"].get("store/coupon/lst",t)}function o(t,e){return i["a"].post("store/coupon/status/".concat(t),{status:e})}function c(){return i["a"].get("store/coupon/create/form")}function s(t){return i["a"].get("store/coupon/clone/form/".concat(t))}function u(t){return i["a"].get("store/coupon/issue",t)}function l(t){return i["a"].get("store/coupon/select",t)}function d(t){return i["a"].get("store/coupon/detail/".concat(t))}function h(t){return i["a"].delete("store/coupon/delete/".concat(t))}function m(t){return i["a"].post("store/coupon/send",t)}function f(t){return i["a"].get("store/coupon_send/lst",t)}function p(){return i["a"].get("broadcast/room/create/form")}function g(t){return i["a"].get("broadcast/room/lst",t)}function b(t){return i["a"].get("broadcast/room/detail/".concat(t))}function v(t,e){return i["a"].post("broadcast/room/mark/".concat(t),{mark:e})}function A(){return i["a"].get("broadcast/goods/create/form")}function w(t){return i["a"].get("broadcast/goods/update/form/".concat(t))}function y(t){return i["a"].get("broadcast/goods/lst",t)}function k(t){return i["a"].get("broadcast/goods/detail/".concat(t))}function C(t,e){return i["a"].post("broadcast/goods/status/".concat(t),e)}function E(t){return i["a"].post("broadcast/room/export_goods",t)}function j(t,e){return i["a"].post("broadcast/goods/mark/".concat(t),{mark:e})}function I(t,e){return i["a"].post("broadcast/room/status/".concat(t),e)}function x(t,e){return i["a"].get("broadcast/room/goods/".concat(t),e)}function S(t){return i["a"].delete("broadcast/goods/delete/".concat(t))}function O(t){return i["a"].delete("broadcast/room/delete/".concat(t))}function R(t){return i["a"].post("broadcast/goods/batch_create",t)}function _(t,e){return i["a"].post("broadcast/room/feedsPublic/".concat(t),{status:e})}function M(t,e){return i["a"].post("broadcast/room/on_sale/".concat(t),e)}function D(t,e){return i["a"].post("broadcast/room/comment/".concat(t),{status:e})}function z(t,e){return i["a"].post("broadcast/room/closeKf/".concat(t),{status:e})}function V(t){return i["a"].get("broadcast/room/push_message/".concat(t))}function B(t){return i["a"].post("broadcast/room/rm_goods",t)}function F(t){return i["a"].get("broadcast/room/update/form/".concat(t))}function L(){return i["a"].get("broadcast/assistant/create/form")}function N(t){return i["a"].get("broadcast/assistant/update/".concat(t,"/form"))}function T(t){return i["a"].delete("broadcast/assistant/delete/".concat(t))}function Q(t){return i["a"].get("broadcast/assistant/lst",t)}function P(t){return i["a"].get("broadcast/room/addassistant/form/".concat(t))}function H(){return i["a"].get("config/others/group_buying")}function U(t){return i["a"].post("store/product/group/create",t)}function G(t,e){return i["a"].post("store/product/group/update/".concat(t),e)}function W(t){return i["a"].get("store/product/group/lst",t)}function Z(t){return i["a"].get("store/product/group/detail/".concat(t))}function Y(t){return i["a"].delete("store/product/group/delete/".concat(t))}function J(t,e){return i["a"].post("store/product/group/status/".concat(t),{status:e})}function q(t){return i["a"].get("store/product/group/buying/lst",t)}function X(t,e){return i["a"].get("store/product/group/buying/detail/".concat(t),e)}function K(t,e){return i["a"].get("store/seckill_product/detail/".concat(t),e)}function $(t,e){return i["a"].post("/store/product/group/sort/".concat(t),e)}function tt(t,e){return i["a"].post("/store/seckill_product/sort/".concat(t),e)}function et(t,e){return i["a"].post("/store/product/presell/sort/".concat(t),e)}function nt(t,e){return i["a"].post("/store/product/assist/sort/".concat(t),e)}function it(t,e){return i["a"].get("/store/coupon/product/".concat(t),e)}function at(t){return i["a"].get("config/".concat(t))}function rt(){return i["a"].get("integral/title")}function ot(t){return i["a"].get("integral/lst",t)}function ct(t){return i["a"].get("store/product/attr_value/".concat(t))}function st(t){return i["a"].post("discounts/create",t)}function ut(t){return i["a"].get("discounts/lst",t)}function lt(t,e){return i["a"].post("discounts/status/".concat(t),{status:e})}function dt(t){return i["a"].get("discounts/detail/".concat(t))}function ht(t){return i["a"].delete("discounts/delete/".concat(t))}function mt(t,e){return i["a"].post("discounts/update/".concat(t),e)}},bbcc:function(t,e,n){"use strict";var i=n("a78e"),a=n.n(i),r="".concat(location.origin),o=("https:"===location.protocol?"wss":"ws")+":"+location.hostname,c=a.a.get("MerInfo")?JSON.parse(a.a.get("MerInfo")).login_title:"",s={httpUrl:r,https:r+"/mer",wsSocketUrl:o,title:c||"加载中..."};e["a"]=s},bc35:function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-clipboard",use:"icon-clipboard-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},bd3e:function(t,e,n){},c043:function(t,e,n){"use strict";n("c068")},c068:function(t,e,n){},c24f:function(t,e,n){"use strict";n.d(e,"f",(function(){return a})),n.d(e,"q",(function(){return r})),n.d(e,"r",(function(){return o})),n.d(e,"s",(function(){return c})),n.d(e,"v",(function(){return s})),n.d(e,"h",(function(){return u})),n.d(e,"k",(function(){return l})),n.d(e,"j",(function(){return d})),n.d(e,"i",(function(){return h})),n.d(e,"p",(function(){return m})),n.d(e,"o",(function(){return f})),n.d(e,"n",(function(){return p})),n.d(e,"m",(function(){return g})),n.d(e,"a",(function(){return b})),n.d(e,"c",(function(){return v})),n.d(e,"e",(function(){return A})),n.d(e,"b",(function(){return w})),n.d(e,"d",(function(){return y})),n.d(e,"x",(function(){return k})),n.d(e,"y",(function(){return C})),n.d(e,"w",(function(){return E})),n.d(e,"g",(function(){return j})),n.d(e,"u",(function(){return I})),n.d(e,"z",(function(){return x})),n.d(e,"l",(function(){return S})),n.d(e,"t",(function(){return O}));var i=n("0c6d");function a(){return i["a"].get("captcha")}function r(t){return i["a"].post("login",t)}function o(){return i["a"].get("login_config")}function c(){return i["a"].get("logout")}function s(){return i["a"].get("system/admin/edit/password/form")}function u(){return i["a"].get("system/admin/edit/form")}function l(){return i["a"].get("menus")}function d(t){return Object(i["a"])({url:"/vue-element-admin/user/info",method:"get",params:{token:t}})}function h(){return i["a"].get("info")}function m(t){return i["a"].get("user/label/lst",t)}function f(){return i["a"].get("user/label/form")}function p(t){return i["a"].get("user/label/form/"+t)}function g(t){return i["a"].delete("user/label/".concat(t))}function b(t){return i["a"].post("auto_label/create",t)}function v(t){return i["a"].get("auto_label/lst",t)}function A(t,e){return i["a"].post("auto_label/update/"+t,e)}function w(t){return i["a"].delete("auto_label/delete/".concat(t))}function y(t){return i["a"].post("auto_label/sync/"+t)}function k(t){return i["a"].get("user/lst",t)}function C(t,e){return i["a"].get("user/order/".concat(t),e)}function E(t,e){return i["a"].get("user/coupon/".concat(t),e)}function j(t){return i["a"].get("user/change_label/form/"+t)}function I(t){return i["a"].post("/info/update",t)}function x(t){return i["a"].get("user/search_log",t)}function S(){return i["a"].get("../api/version")}function O(t){return i["a"].get("user/svip/order_lst",t)}},c4c8:function(t,e,n){"use strict";n.d(e,"Jb",(function(){return a})),n.d(e,"Hb",(function(){return r})),n.d(e,"Lb",(function(){return o})),n.d(e,"Ib",(function(){return c})),n.d(e,"Kb",(function(){return s})),n.d(e,"Mb",(function(){return u})),n.d(e,"j",(function(){return l})),n.d(e,"l",(function(){return d})),n.d(e,"k",(function(){return h})),n.d(e,"Nb",(function(){return m})),n.d(e,"eb",(function(){return f})),n.d(e,"bb",(function(){return p})),n.d(e,"Cb",(function(){return g})),n.d(e,"ab",(function(){return b})),n.d(e,"fb",(function(){return v})),n.d(e,"X",(function(){return A})),n.d(e,"sb",(function(){return w})),n.d(e,"qb",(function(){return y})),n.d(e,"lb",(function(){return k})),n.d(e,"cb",(function(){return C})),n.d(e,"tb",(function(){return E})),n.d(e,"r",(function(){return j})),n.d(e,"q",(function(){return I})),n.d(e,"p",(function(){return x})),n.d(e,"wb",(function(){return S})),n.d(e,"M",(function(){return O})),n.d(e,"Fb",(function(){return R})),n.d(e,"Gb",(function(){return _})),n.d(e,"Eb",(function(){return M})),n.d(e,"w",(function(){return D})),n.d(e,"W",(function(){return z})),n.d(e,"nb",(function(){return V})),n.d(e,"ob",(function(){return B})),n.d(e,"t",(function(){return F})),n.d(e,"Bb",(function(){return L})),n.d(e,"mb",(function(){return N})),n.d(e,"Db",(function(){return T})),n.d(e,"s",(function(){return Q})),n.d(e,"ub",(function(){return P})),n.d(e,"rb",(function(){return H})),n.d(e,"vb",(function(){return U})),n.d(e,"Y",(function(){return G})),n.d(e,"Z",(function(){return W})),n.d(e,"N",(function(){return Z})),n.d(e,"Q",(function(){return Y})),n.d(e,"P",(function(){return J})),n.d(e,"O",(function(){return q})),n.d(e,"T",(function(){return X})),n.d(e,"R",(function(){return K})),n.d(e,"S",(function(){return $})),n.d(e,"x",(function(){return tt})),n.d(e,"a",(function(){return et})),n.d(e,"i",(function(){return nt})),n.d(e,"g",(function(){return it})),n.d(e,"f",(function(){return at})),n.d(e,"e",(function(){return rt})),n.d(e,"b",(function(){return ot})),n.d(e,"d",(function(){return ct})),n.d(e,"h",(function(){return st})),n.d(e,"c",(function(){return ut})),n.d(e,"db",(function(){return lt})),n.d(e,"gb",(function(){return dt})),n.d(e,"pb",(function(){return ht})),n.d(e,"y",(function(){return mt})),n.d(e,"C",(function(){return ft})),n.d(e,"E",(function(){return pt})),n.d(e,"G",(function(){return gt})),n.d(e,"A",(function(){return bt})),n.d(e,"z",(function(){return vt})),n.d(e,"D",(function(){return At})),n.d(e,"F",(function(){return wt})),n.d(e,"B",(function(){return yt})),n.d(e,"Tb",(function(){return kt})),n.d(e,"H",(function(){return Ct})),n.d(e,"L",(function(){return Et})),n.d(e,"J",(function(){return jt})),n.d(e,"I",(function(){return It})),n.d(e,"K",(function(){return xt})),n.d(e,"v",(function(){return St})),n.d(e,"Rb",(function(){return Ot})),n.d(e,"Sb",(function(){return Rt})),n.d(e,"Qb",(function(){return _t})),n.d(e,"Ob",(function(){return Mt})),n.d(e,"Pb",(function(){return Dt})),n.d(e,"u",(function(){return zt})),n.d(e,"n",(function(){return Vt})),n.d(e,"m",(function(){return Bt})),n.d(e,"o",(function(){return Ft})),n.d(e,"hb",(function(){return Lt})),n.d(e,"Ab",(function(){return Nt})),n.d(e,"jb",(function(){return Tt})),n.d(e,"kb",(function(){return Qt})),n.d(e,"yb",(function(){return Pt})),n.d(e,"xb",(function(){return Ht})),n.d(e,"zb",(function(){return Ut})),n.d(e,"ib",(function(){return Gt})),n.d(e,"U",(function(){return Wt})),n.d(e,"V",(function(){return Zt}));var i=n("0c6d");function a(){return i["a"].get("store/category/lst")}function r(){return i["a"].get("store/category/create/form")}function o(t){return i["a"].get("store/category/update/form/".concat(t))}function c(t){return i["a"].delete("store/category/delete/".concat(t))}function s(t,e){return i["a"].post("store/category/status/".concat(t),{status:e})}function u(t){return i["a"].get("store/attr/template/lst",t)}function l(t){return i["a"].post("store/attr/template/create",t)}function d(t,e){return i["a"].post("store/attr/template/".concat(t),e)}function h(t){return i["a"].delete("store/attr/template/".concat(t))}function m(){return i["a"].get("/store/attr/template/list")}function f(t){return i["a"].get("store/product/lst",t)}function p(t){return i["a"].delete("store/product/delete/".concat(t))}function g(t){return i["a"].delete("store/seckill_product/delete/".concat(t))}function b(t){return i["a"].post("store/product/create",t)}function v(t){return i["a"].post("store/product/preview",t)}function A(t){return i["a"].post("store/productcopy/save",t)}function w(t){return i["a"].post("store/seckill_product/create",t)}function y(t){return i["a"].post("store/seckill_product/preview",t)}function k(t,e){return i["a"].post("store/product/update/".concat(t),e)}function C(t){return i["a"].get("store/product/detail/".concat(t))}function E(t){return i["a"].get("store/seckill_product/detail/".concat(t))}function j(){return i["a"].get("store/category/select")}function I(){return i["a"].get("store/category/list")}function x(){return i["a"].get("store/category/brandlist")}function S(){return i["a"].get("store/shipping/list")}function O(){return i["a"].get("store/product/lst_filter")}function R(){return i["a"].get("store/seckill_product/lst_filter")}function _(t,e){return i["a"].post("store/product/status/".concat(t),{status:e})}function M(t,e){return i["a"].post("store/seckill_product/status/".concat(t),{status:e})}function D(t){return i["a"].get("store/product/list",t)}function z(){return i["a"].get("store/product/config")}function V(t){return i["a"].get("store/reply/lst",t)}function B(t){return i["a"].get("store/reply/form/".concat(t))}function F(t){return i["a"].delete("store/product/destory/".concat(t))}function L(t){return i["a"].delete("store/seckill_product/destory/".concat(t))}function N(t){return i["a"].post("store/product/restore/".concat(t))}function T(t){return i["a"].post("store/seckill_product/restore/".concat(t))}function Q(t){return i["a"].get("store/productcopy/get",t)}function P(t){return i["a"].get("store/seckill_product/lst",t)}function H(){return i["a"].get("store/seckill_product/lst_time")}function U(t,e){return i["a"].post("store/seckill_product/update/".concat(t),e)}function G(){return i["a"].get("store/productcopy/count")}function W(t){return i["a"].get("store/productcopy/lst",t)}function Z(t){return i["a"].post("store/product/presell/create",t)}function Y(t,e){return i["a"].post("store/product/presell/update/".concat(t),e)}function J(t){return i["a"].get("store/product/presell/lst",t)}function q(t){return i["a"].get("store/product/presell/detail/".concat(t))}function X(t,e){return i["a"].post("store/product/presell/status/".concat(t),{status:e})}function K(t){return i["a"].delete("store/product/presell/delete/".concat(t))}function $(t){return i["a"].post("store/product/presell/preview",t)}function tt(t){return i["a"].post("store/product/group/preview",t)}function et(t){return i["a"].post("store/product/assist/create",t)}function nt(t,e){return i["a"].post("store/product/assist/update/".concat(t),e)}function it(t){return i["a"].get("store/product/assist/lst",t)}function at(t){return i["a"].get("store/product/assist/detail/".concat(t))}function rt(t){return i["a"].post("store/product/assist/preview",t)}function ot(t){return i["a"].delete("store/product/assist/delete/".concat(t))}function ct(t){return i["a"].get("store/product/assist_set/lst",t)}function st(t,e){return i["a"].post("store/product/assist/status/".concat(t),{status:e})}function ut(t,e){return i["a"].get("store/product/assist_set/detail/".concat(t),e)}function lt(){return i["a"].get("store/product/temp_key")}function dt(t,e){return i["a"].post("/store/product/sort/".concat(t),e)}function ht(t,e){return i["a"].post("/store/reply/sort/".concat(t),e)}function mt(t){return i["a"].post("guarantee/create",t)}function ft(t){return i["a"].get("guarantee/lst",t)}function pt(t,e){return i["a"].post("guarantee/sort/".concat(t),e)}function gt(t,e){return i["a"].post("guarantee/update/".concat(t),e)}function bt(t){return i["a"].get("guarantee/detail/".concat(t))}function vt(t){return i["a"].delete("guarantee/delete/".concat(t))}function At(t){return i["a"].get("guarantee/select",t)}function wt(t,e){return i["a"].post("guarantee/status/".concat(t),e)}function yt(){return i["a"].get("guarantee/list")}function kt(t){return i["a"].post("upload/video",t)}function Ct(){return i["a"].get("product/label/create/form")}function Et(t){return i["a"].get("product/label/update/".concat(t,"/form"))}function jt(t){return i["a"].get("product/label/lst",t)}function It(t){return i["a"].delete("product/label/delete/".concat(t))}function xt(t,e){return i["a"].post("product/label/status/".concat(t),{status:e})}function St(){return i["a"].get("product/label/option")}function Ot(t,e){return i["a"].post("store/product/labels/".concat(t),e)}function Rt(t,e){return i["a"].post("store/seckill_product/labels/".concat(t),e)}function _t(t,e){return i["a"].post("store/product/presell/labels/".concat(t),e)}function Mt(t,e){return i["a"].post("store/product/assist/labels/".concat(t),e)}function Dt(t,e){return i["a"].post("store/product/group/labels/".concat(t),e)}function zt(t,e){return i["a"].post("store/product/free_trial/".concat(t),e)}function Vt(t){return i["a"].post("store/product/batch_status",t)}function Bt(t){return i["a"].post("store/product/batch_labels",t)}function Ft(t){return i["a"].post("store/product/batch_temp",t)}function Lt(t){return i["a"].post("store/params/temp/create",t)}function Nt(t,e){return i["a"].post("store/params/temp/update/".concat(t),e)}function Tt(t){return i["a"].get("store/params/temp/detail/".concat(t))}function Qt(t){return i["a"].get("store/params/temp/lst",t)}function Pt(t){return i["a"].delete("store/params/temp/delete/".concat(t))}function Ht(t){return i["a"].get("store/params/temp/detail/".concat(t))}function Ut(t){return i["a"].get("store/params/temp/select",t)}function Gt(t){return i["a"].get("store/params/temp/show",t)}function Wt(t){return i["a"].post("store/product/batch_ext",t)}function Zt(t){return i["a"].post("store/product/batch_svip",t)}},c50c:function(t,e,n){"use strict";n("75d9")},c653:function(t,e,n){var i={"./app.js":"d9cd","./errorLog.js":"4d49","./mobildConfig.js":"3087","./permission.js":"31c2","./settings.js":"0781","./tagsView.js":"7509","./user.js":"0f9a"};function a(t){var e=r(t);return n(e)}function r(t){var e=i[t];if(!(e+1)){var n=new Error("Cannot find module '"+t+"'");throw n.code="MODULE_NOT_FOUND",n}return e}a.keys=function(){return Object.keys(i)},a.resolve=r,t.exports=a,a.id="c653"},c6b6:function(t,e,n){},c829:function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-chart",use:"icon-chart-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},cbb7:function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-email",use:"icon-email-usage",viewBox:"0 0 128 96",content:''});o.a.add(c);e["default"]=c},cf1c:function(t,e,n){"use strict";n("7b72")},cf1e2:function(t,e,n){t.exports={menuText:"#bfcbd9",menuActiveText:"#6394F9",subMenuActiveText:"#f4f4f5",menuBg:"#0B1529",menuHover:"#182848",subMenuBg:"#030C17",subMenuHover:"#182848",sideBarWidth:"180px"}},d056:function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-people",use:"icon-people-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},d0a6:function(t,e,n){"use strict";n("8544")},d249:function(t,e,n){"use strict";n("b55e")},d7ec:function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-eye-open",use:"icon-eye-open-usage",viewBox:"0 0 1024 1024",content:''});o.a.add(c);e["default"]=c},d9cd:function(t,e,n){"use strict";n.r(e);var i=n("a78e"),a=n.n(i),r={sidebar:{opened:!a.a.get("sidebarStatus")||!!+a.a.get("sidebarStatus"),withoutAnimation:!1},device:"desktop",size:a.a.get("size")||"medium"},o={TOGGLE_SIDEBAR:function(t){t.sidebar.opened=!t.sidebar.opened,t.sidebar.withoutAnimation=!1,t.sidebar.opened?a.a.set("sidebarStatus",1):a.a.set("sidebarStatus",0)},CLOSE_SIDEBAR:function(t,e){a.a.set("sidebarStatus",0),t.sidebar.opened=!1,t.sidebar.withoutAnimation=e},TOGGLE_DEVICE:function(t,e){t.device=e},SET_SIZE:function(t,e){t.size=e,a.a.set("size",e)}},c={toggleSideBar:function(t){var e=t.commit;e("TOGGLE_SIDEBAR")},closeSideBar:function(t,e){var n=t.commit,i=e.withoutAnimation;n("CLOSE_SIDEBAR",i)},toggleDevice:function(t,e){var n=t.commit;n("TOGGLE_DEVICE",e)},setSize:function(t,e){var n=t.commit;n("SET_SIZE",e)}};e["default"]={namespaced:!0,state:r,mutations:o,actions:c}},dbc7:function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-exit-fullscreen",use:"icon-exit-fullscreen-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},dcf8:function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-nested",use:"icon-nested-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},ddd5:function(t,e,n){},de6e:function(t,e,n){},de9d:function(t,e,n){},e03b:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFEAAABRCAYAAACqj0o2AAAAAXNSR0IArs4c6QAACjNJREFUeF7tnH9sFNcRx7/z9owP+84/iG1+p2eCa4vwwxJEgtJKRkoTKAlKIa5MC8qhFIlUoIJaqZFaya6i/oFUCVBRmwok3IYkCEODCClOS5VDSUrSpAkkDhAw+JIQfhjjM+ezsfHuTrVrDI7x3e2+3TVGvf0LyTPzZj477828t+8gZB7HBMixhYwBZCC6kAQZiBmILhBwwUQmEzMQXSDggolRk4n8q7n5NwQqdBbTFSjTjdh0IDQQowCixr81aM2C9OaxOk7T5v9ed4GBYxP3DGL3pjmT9azsR0lQFYAqGgTMalTcDzbCxBEheo/k/O7E11Z13ZQbUYgt4ZC/uKR4BQGrAHoUgM+1YAgqmI8wsPtq69X9pfXRHtdspzE0IhBjGysLxvh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VHvpKjIzkmuD76ad2fF5ROXxGG+NuEbnLI+Mc8f3WtN/bLU1nc118pDgMIeQ/+FhKY2ONRE3ww+QgTYAuNtK33RpKgtFx7cqViaVRpP2NoGWILSH4HygpcXQaYomjuUbSsCBNgCJFH2htAEtSBL0u+J82S6fyliH2r41FtZy0Z7RlKk0gt6r2x+23q7YJkMj1PnBYR5g7NLWvtPB48gZ7sJ6tyONzg0WA/ysA7mwDU6K8VbU/bt8fn11UjiwDoIdFZJAvxFwX/MhaFvb3kjafzsqiLSxw1z0Zm2YsirMKjZ+HIn45UgDBaL4Wa5tlZS0cCMI2xNYZuRP82f4W8Ehko0XWLoqxzkvyP2lvtGPSNkRzbZw9bgsPc2vLzsCjU5br8060e//rASP42IyCsKJ43e6MMGbiph41tqDkJGz/jFcqE02IwoUT7xHmlGw47r/6t2DcqUSTjEtyECsKwuJeQ5TyfDhErFKftijvTKflu5NDrUi5EqsIhgUpHu9eZHLCpg5BZY1XFnx+fZ9NzW+Iy0EsC4ZFsi2glEUnIUjrqqxqKwuaE44ASvWJZmExILrxFVA6fquKSd4oIUF9vUvyzvdIT2HpHcuAYuyh3LAQ9+d0JuYmlXnluHNyRWS41yc1+UyIuP9aHIJe3xPv2lBy1X4bkyr35SCGjEy8r1qcZui8IT/aZWsn4nDRSK0eMyBiFEMcSA1GB6BvbUf3Zjt7YavwpPfOZmGZ6h/ta6L5f4Xp8e5thR0GSG8fuek82YAosSZKjWYRAJu/0jqisf7y9Qs9+0qR/kTaouW0YlJhxQyII9riJHGTOUqgiAb9qMI9h/Iuoi1txB4ISEFsn+T7rg++Zz3wJ5lJlYELxh81xjlF15r13r7TIzFVrcQoBdGK4f8nmQxEF952BmIGogsEXDCRycQMRBcIuGAik4kuQPwfBUpzf3HDNvAAAAAASUVORK5CYII="},e534:function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-theme",use:"icon-theme-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},e7c8:function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-tree-table",use:"icon-tree-table-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},ea55:function(t,e,n){},eb1b:function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-form",use:"icon-form-usage",viewBox:"0 0 128 128",content:''});o.a.add(c);e["default"]=c},eb24:function(t,e,n){"use strict";n("f3c0")},ec9f:function(t,e,n){},ed08:function(t,e,n){"use strict";n.d(e,"c",(function(){return a})),n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return o}));n("4917"),n("4f7f"),n("5df3"),n("1c4c"),n("28a5"),n("ac6a"),n("456d"),n("f576"),n("6b54"),n("3b2b"),n("a481");var i=n("53ca");function a(t,e){if(0===arguments.length)return null;var n,a=e||"{y}-{m}-{d} {h}:{i}:{s}";"object"===Object(i["a"])(t)?n=t:("string"===typeof t&&(t=/^[0-9]+$/.test(t)?parseInt(t):t.replace(new RegExp(/-/gm),"/")),"number"===typeof t&&10===t.toString().length&&(t*=1e3),n=new Date(t));var r={y:n.getFullYear(),m:n.getMonth()+1,d:n.getDate(),h:n.getHours(),i:n.getMinutes(),s:n.getSeconds(),a:n.getDay()},o=a.replace(/{([ymdhisa])+}/g,(function(t,e){var n=r[e];return"a"===e?["日","一","二","三","四","五","六"][n]:n.toString().padStart(2,"0")}));return o}function r(t,e){t=10===(""+t).length?1e3*parseInt(t):+t;var n=new Date(t),i=Date.now(),r=(i-n)/1e3;return r<30?"刚刚":r<3600?Math.ceil(r/60)+"分钟前":r<86400?Math.ceil(r/3600)+"小时前":r<172800?"1天前":e?a(t,e):n.getMonth()+1+"月"+n.getDate()+"日"+n.getHours()+"时"+n.getMinutes()+"分"}function o(t,e,n){var i,a,r,o,c,s=function s(){var u=+new Date-o;u0?i=setTimeout(s,e-u):(i=null,n||(c=t.apply(r,a),i||(r=a=null)))};return function(){for(var a=arguments.length,u=new Array(a),l=0;l'});o.a.add(c);e["default"]=c},f9a1:function(t,e,n){"use strict";n.r(e);var i=n("e017"),a=n.n(i),r=n("21a1"),o=n.n(r),c=new a.a({id:"icon-pdf",use:"icon-pdf-usage",viewBox:"0 0 1024 1024",content:''});o.a.add(c);e["default"]=c},fc4a:function(t,e,n){}},[[0,"runtime","chunk-elementUI","chunk-libs"]]]);
\ No newline at end of file
diff --git a/public/mer/js/chunk-c0ce761c.8de3cfca.js b/public/mer/js/chunk-c0ce761c.8de3cfca.js
new file mode 100644
index 00000000..d82f7403
--- /dev/null
+++ b/public/mer/js/chunk-c0ce761c.8de3cfca.js
@@ -0,0 +1 @@
+(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-c0ce761c"],{2865:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"divBox"},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix"},[t.headTab.length>0?a("el-tabs",{model:{value:t.currentTab,callback:function(e){t.currentTab=e},expression:"currentTab"}},t._l(t.headTab,(function(t,e){return a("el-tab-pane",{key:e,attrs:{name:t.name,label:t.title}})})),1):t._e()],1),t._v(" "),a("el-form",{directives:[{name:"loading",rawName:"v-loading",value:t.fullscreenLoading,expression:"fullscreenLoading"}],key:t.currentTab,ref:"formValidate",staticClass:"formValidate mt20",attrs:{rules:t.ruleValidate,model:t.formValidate,"label-width":"130px"},nativeOn:{submit:function(t){t.preventDefault()}}},["1"==t.currentTab?a("el-row",{attrs:{gutter:24}},[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"商品类型:",required:""}},t._l(t.virtual,(function(e,i){return a("div",{key:i,staticClass:"virtual",class:t.formValidate.type==e.id?"virtual_boder":"virtual_boder2",on:{click:function(a){return t.virtualbtn(e.id,2)}}},[a("div",{staticClass:"virtual_top"},[t._v(t._s(e.tit))]),t._v(" "),a("div",{staticClass:"virtual_bottom"},[t._v("("+t._s(e.tit2)+")")]),t._v(" "),t.formValidate.type==e.id?a("div",{staticClass:"virtual_san"}):t._e(),t._v(" "),t.formValidate.type==e.id?a("div",{staticClass:"virtual_dui"},[t._v("\n ✓\n ")]):t._e()])})),0)],1),t._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"商品名称:",prop:"store_name"}},[a("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入商品名称"},model:{value:t.formValidate.store_name,callback:function(e){t.$set(t.formValidate,"store_name",e)},expression:"formValidate.store_name"}})],1)],1),t._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"平台商品分类:",prop:"cate_id"}},[a("el-cascader",{staticClass:"selWidth",attrs:{options:t.categoryList,props:t.props,filterable:"",clearable:""},on:{change:t.getSpecsLst},model:{value:t.formValidate.cate_id,callback:function(e){t.$set(t.formValidate,"cate_id",e)},expression:"formValidate.cate_id"}})],1)],1),t._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"商户商品分类:",prop:"mer_cate_id"}},[a("el-cascader",{staticClass:"selWidth",attrs:{options:t.merCateList,props:t.propsMer,filterable:"",clearable:""},model:{value:t.formValidate.mer_cate_id,callback:function(e){t.$set(t.formValidate,"mer_cate_id",e)},expression:"formValidate.mer_cate_id"}})],1)],1),t._v(" "),t.labelList.length?a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"商品标签:"}},[a("el-select",{staticClass:"selWidth",attrs:{multiple:"",placeholder:"请选择"},model:{value:t.formValidate.mer_labels,callback:function(e){t.$set(t.formValidate,"mer_labels",e)},expression:"formValidate.mer_labels"}},t._l(t.labelList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1)],1)],1):t._e(),t._v(" "),a("el-col",t._b({},"el-col",t.grid2,!1),[a("el-form-item",{attrs:{label:"品牌选择:"}},[a("el-select",{staticClass:"selWidth",attrs:{filterable:"",placeholder:"请选择"},model:{value:t.formValidate.brand_id,callback:function(e){t.$set(t.formValidate,"brand_id",e)},expression:"formValidate.brand_id"}},t._l(t.BrandList,(function(t){return a("el-option",{key:t.brand_id,attrs:{label:t.brand_name,value:t.brand_id}})})),1)],1)],1),t._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"商品封面图:",prop:"image"}},[a("div",{staticClass:"upLoadPicBox",attrs:{title:"750*750px"},on:{click:function(e){return t.modalPicTap("1")}}},[t.formValidate.image?a("div",{staticClass:"pictrue"},[a("img",{attrs:{src:t.formValidate.image}})]):a("div",{staticClass:"upLoad"},[a("i",{staticClass:"el-icon-camera cameraIconfont"})])])])],1),t._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"商品轮播图:",prop:"slider_image"}},[a("div",{staticClass:"acea-row"},[t._l(t.formValidate.slider_image,(function(e,i){return a("div",{key:i,staticClass:"pictrue",attrs:{draggable:"false"},on:{dragstart:function(a){return t.handleDragStart(a,e)},dragover:function(a){return a.preventDefault(),t.handleDragOver(a,e)},dragenter:function(a){return t.handleDragEnter(a,e)},dragend:function(a){return t.handleDragEnd(a,e)}}},[a("img",{attrs:{src:e}}),t._v(" "),a("i",{staticClass:"el-icon-error btndel",on:{click:function(e){return t.handleRemove(i)}}})])})),t._v(" "),t.formValidate.slider_image.length<10?a("div",{staticClass:"uploadCont",attrs:{title:"750*750px"}},[a("div",{staticClass:"upLoadPicBox",on:{click:function(e){return t.modalPicTap("2")}}},[a("div",{staticClass:"upLoad"},[a("i",{staticClass:"el-icon-camera cameraIconfont"})])])]):t._e()],2)])],1),t._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"主图视频:",prop:"video_link"}},[a("el-input",{staticClass:"perW50",attrs:{placeholder:"请输入视频链接"},model:{value:t.videoLink,callback:function(e){t.videoLink=e},expression:"videoLink"}}),t._v(" "),a("input",{ref:"refid",staticStyle:{display:"none"},attrs:{type:"file"},on:{change:t.zh_uploadFile_change}}),t._v(" "),a("el-button",{staticClass:"uploadVideo",attrs:{type:"primary",icon:"ios-cloud-upload-outline"},on:{click:t.zh_uploadFile}},[t._v("\n "+t._s(t.videoLink?"确认添加":"上传视频")+"\n ")]),t._v(" "),a("el-col",{attrs:{span:12}},[t.upload.videoIng?a("el-progress",{staticStyle:{"margin-top":"10px"},attrs:{percentage:t.progress,"text-inside":!0,"stroke-width":20}}):t._e()],1),t._v(" "),a("el-col",{attrs:{span:24}},[t.formValidate.video_link?a("div",{staticClass:"iview-video-style"},[a("video",{staticStyle:{width:"100%",height:"100% !important","border-radius":"10px"},attrs:{src:t.formValidate.video_link,controls:"controls"}},[t._v("\n 您的浏览器不支持 video 标签。\n ")]),t._v(" "),a("div",{staticClass:"mark"}),t._v(" "),a("i",{staticClass:"el-icon-delete iconv",on:{click:t.delVideo}})]):t._e()])],1)],1),t._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"单位:",prop:"unit_name"}},[a("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入单位"},model:{value:t.formValidate.unit_name,callback:function(e){t.$set(t.formValidate,"unit_name",e)},expression:"formValidate.unit_name"}})],1)],1),t._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"商品关键字:"}},[a("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入商品关键字"},model:{value:t.formValidate.keyword,callback:function(e){t.$set(t.formValidate,"keyword",e)},expression:"formValidate.keyword"}})],1)],1),t._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"商品简介:",prop:"store_info"}},[a("el-input",{staticClass:"selWidth",attrs:{type:"textarea",rows:3,placeholder:"请输入商品简介"},model:{value:t.formValidate.store_info,callback:function(e){t.$set(t.formValidate,"store_info",e)},expression:"formValidate.store_info"}})],1)],1)],1):t._e(),t._v(" "),"2"==t.currentTab?a("el-row",[t._e(),t._v(" "),t._e(),t._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"商品规格:",props:"spec_type"}},[a("el-radio-group",{on:{change:function(e){return t.onChangeSpec(t.formValidate.spec_type)}},model:{value:t.formValidate.spec_type,callback:function(e){t.$set(t.formValidate,"spec_type",e)},expression:"formValidate.spec_type"}},[a("el-radio",{staticClass:"radio",attrs:{label:0}},[t._v("单规格")]),t._v(" "),a("el-radio",{attrs:{label:1}},[t._v("多规格")])],1)],1)],1),t._v(" "),1===t.formValidate.spec_type?a("el-col",{staticClass:"noForm",attrs:{span:24}},[a("el-form-item",{attrs:{label:"选择规格:"}},[a("div",{staticClass:"acea-row"},[a("el-select",{model:{value:t.selectRule,callback:function(e){t.selectRule=e},expression:"selectRule"}},t._l(t.ruleList,(function(t){return a("el-option",{key:t.attr_template_id,attrs:{label:t.template_name,value:t.attr_template_id}})})),1),t._v(" "),a("el-button",{staticClass:"ml15",attrs:{type:"primary",size:"small"},on:{click:t.confirm}},[t._v("确认")]),t._v(" "),a("el-button",{staticClass:"ml15",attrs:{size:"small"},on:{click:t.addRule}},[t._v("添加规格模板")])],1)]),t._v(" "),t.formValidate.attr.length>0?a("el-form-item",t._l(t.formValidate.attr,(function(e,i){return a("div",{key:i},[a("div",{staticClass:"acea-row row-middle"},[a("span",{staticClass:"mr5"},[t._v(t._s(e.value))]),t._v(" "),a("i",{staticClass:"el-icon-circle-close",on:{click:function(e){return t.handleRemoveAttr(i)}}})]),t._v(" "),a("div",{staticClass:"rulesBox"},[t._l(e.detail,(function(i,r){return a("el-tag",{key:r,staticClass:"mb5 mr10",attrs:{closable:"",size:"medium","disable-transitions":!1},on:{close:function(a){return t.handleClose(e.detail,r)}}},[t._v(t._s(i)+"\n ")])})),t._v(" "),e.inputVisible?a("el-input",{ref:"saveTagInput",refInFor:!0,staticClass:"input-new-tag",attrs:{size:"small"},on:{blur:function(a){return t.createAttr(e.detail.attrsVal,i)}},nativeOn:{keyup:function(a){return!a.type.indexOf("key")&&t._k(a.keyCode,"enter",13,a.key,"Enter")?null:t.createAttr(e.detail.attrsVal,i)}},model:{value:e.detail.attrsVal,callback:function(a){t.$set(e.detail,"attrsVal",a)},expression:"item.detail.attrsVal"}}):a("el-button",{staticClass:"button-new-tag",attrs:{size:"small"},on:{click:function(a){return t.showInput(e)}}},[t._v("+ 添加")])],2)])})),0):t._e(),t._v(" "),t.isBtn?a("el-col",[a("el-col",{attrs:{xl:6,lg:9,md:9,sm:24,xs:24}},[a("el-form-item",{attrs:{label:"规格:"}},[a("el-input",{attrs:{placeholder:"请输入规格"},model:{value:t.formDynamic.attrsName,callback:function(e){t.$set(t.formDynamic,"attrsName",e)},expression:"formDynamic.attrsName"}})],1)],1),t._v(" "),a("el-col",{attrs:{xl:6,lg:9,md:9,sm:24,xs:24}},[a("el-form-item",{attrs:{label:"规格值:"}},[a("el-input",{attrs:{placeholder:"请输入规格值"},model:{value:t.formDynamic.attrsVal,callback:function(e){t.$set(t.formDynamic,"attrsVal",e)},expression:"formDynamic.attrsVal"}})],1)],1),t._v(" "),a("el-col",{attrs:{xl:12,lg:6,md:6,sm:24,xs:24}},[a("el-form-item",{staticClass:"noLeft"},[a("el-button",{staticClass:"mr15",attrs:{type:"primary"},on:{click:t.createAttrName}},[t._v("确定")]),t._v(" "),a("el-button",{on:{click:t.offAttrName}},[t._v("取消")])],1)],1)],1):t._e(),t._v(" "),t.isBtn?t._e():a("el-form-item",[a("el-button",{staticClass:"mr15",attrs:{type:"primary",icon:"md-add"},on:{click:t.addBtn}},[t._v("添加新规格")])],1)],1):t._e(),t._v(" "),1===t.formValidate.spec_type&&t.formValidate.attr.length>0?a("el-col",{staticClass:"noForm",attrs:{span:24}},[a("el-form-item",{staticClass:"labeltop",attrs:{label:"批量设置:"}},[a("el-table",{staticClass:"tabNumWidth",attrs:{data:t.oneFormBatch,border:"",size:"mini"}},[a("el-table-column",{attrs:{align:"center",label:"图片","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"upLoadPicBox",attrs:{title:"750*750px"},on:{click:function(e){return t.modalPicTap("1","pi")}}},[e.row.image?a("div",{staticClass:"pictrue tabPic"},[a("img",{attrs:{src:e.row.image}})]):a("div",{staticClass:"upLoad tabPic"},[a("i",{staticClass:"el-icon-camera cameraIconfont"})])])]}}],null,!1,772438934)}),t._v(" "),t._l(t.attrValue,(function(e,i){return a("el-table-column",{key:i,attrs:{label:t.formThead[i].title,align:"center","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[0!=t.formValidate.svip_price_type?a("div",["付费会员价"===t.formThead[i].title?a("el-input",{staticClass:"priceBox",attrs:{disabled:1==t.formValidate.svip_price_type,"controls-position":"right"},model:{value:e.row[i],callback:function(a){t.$set(e.row,i,a)},expression:"scope.row[iii]"}}):t._e(),t._v(" "),"商品条码"===t.formThead[i].title?a("el-input",{staticClass:"priceBox",attrs:{type:"text"},model:{value:e.row[i],callback:function(a){t.$set(e.row,i,a)},expression:"scope.row[iii]"}}):t._e(),t._v(" "),"付费会员价"!==t.formThead[i].title&&"商品条码"!==t.formThead[i].title?a("el-input",{staticClass:"priceBox",attrs:{type:"number",min:"0","controls-position":"right"},on:{blur:function(a){return t.memberPrice(t.formThead[i],e.row)}},model:{value:e.row[i],callback:function(a){t.$set(e.row,i,a)},expression:"scope.row[iii]"}}):t._e()],1):a("div",["商品条码"===t.formThead[i].title?a("el-input",{staticClass:"priceBox",attrs:{type:"text"},model:{value:e.row[i],callback:function(a){t.$set(e.row,i,a)},expression:"scope.row[iii]"}}):a("el-input",{staticClass:"priceBox",attrs:{type:"number",min:"0","controls-position":"right"},model:{value:e.row[i],callback:function(a){t.$set(e.row,i,a)},expression:"scope.row[iii]"}})],1)]}}],null,!0)})})),t._v(" "),1===t.formValidate.extension_type?[a("el-table-column",{attrs:{align:"center",label:"一级返佣(元)","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-input-number",{staticClass:"priceBox",attrs:{min:0,"controls-position":"right"},model:{value:e.row.extension_one,callback:function(a){t.$set(e.row,"extension_one",a)},expression:"scope.row.extension_one"}})]}}],null,!1,1308693019)}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"二级返佣(元)","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-input-number",{staticClass:"priceBox",attrs:{min:0,"controls-position":"right"},model:{value:e.row.extension_two,callback:function(a){t.$set(e.row,"extension_two",a)},expression:"scope.row.extension_two"}})]}}],null,!1,899977843)})]:t._e(),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"操作","min-width":"80"}},[[a("el-button",{staticClass:"submission",attrs:{type:"text"},on:{click:t.batchAdd}},[t._v("批量添加")])]],2)],2)],1)],1):t._e(),t._v(" "),a("el-col",{attrs:{xl:24,lg:24,md:24,sm:24,xs:24}},[0===t.formValidate.spec_type?a("el-form-item",[a("el-table",{staticClass:"tabNumWidth",attrs:{data:t.OneattrValue,border:"",size:"mini"}},[a("el-table-column",{attrs:{align:"center",label:"图片","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"upLoadPicBox",on:{click:function(e){return t.modalPicTap("1","dan","pi")}}},[t.formValidate.image?a("div",{staticClass:"pictrue tabPic"},[a("img",{attrs:{src:e.row.image}})]):a("div",{staticClass:"upLoad tabPic"},[a("i",{staticClass:"el-icon-camera cameraIconfont"})])])]}}],null,!1,1357914119)}),t._v(" "),t._l(t.attrValue,(function(e,i){return a("el-table-column",{key:i,attrs:{label:t.formThead[i].title,align:"center","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[0!=t.formValidate.svip_price_type?a("div",["付费会员价"===t.formThead[i].title?a("el-input-number",{staticClass:"priceBox",attrs:{min:0,disabled:1==t.formValidate.svip_price_type,"controls-position":"right"},model:{value:e.row[i],callback:function(a){t.$set(e.row,i,a)},expression:"scope.row[iii]"}}):t._e(),t._v(" "),"商品条码"===t.formThead[i].title?a("el-input",{staticClass:"priceBox",attrs:{type:"text"},model:{value:e.row[i],callback:function(a){t.$set(e.row,i,a)},expression:"scope.row[iii]"}}):t._e(),t._v(" "),"付费会员价"!==t.formThead[i].title&&"商品条码"!==t.formThead[i].title?a("el-input-number",{staticClass:"priceBox",attrs:{min:0,"controls-position":"right"},model:{value:e.row[i],callback:function(a){t.$set(e.row,i,a)},expression:"scope.row[iii]"}}):t._e()],1):a("div",["商品条码"===t.formThead[i].title?a("el-input",{staticClass:"priceBox",attrs:{type:"text"},model:{value:e.row[i],callback:function(a){t.$set(e.row,i,a)},expression:"scope.row[iii]"}}):a("el-input-number",{staticClass:"priceBox",attrs:{min:0,"controls-position":"right"},model:{value:e.row[i],callback:function(a){t.$set(e.row,i,a)},expression:"scope.row[iii]"}})],1)]}}],null,!0)})})),t._v(" "),1===t.formValidate.extension_type?[a("el-table-column",{attrs:{align:"center",label:"一级返佣(元)","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-input-number",{staticClass:"priceBox",attrs:{min:0,"controls-position":"right"},model:{value:e.row.extension_one,callback:function(a){t.$set(e.row,"extension_one",a)},expression:"scope.row.extension_one"}})]}}],null,!1,1308693019)}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"二级返佣(元)","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-input-number",{staticClass:"priceBox",attrs:{min:0,"controls-position":"right"},model:{value:e.row.extension_two,callback:function(a){t.$set(e.row,"extension_two",a)},expression:"scope.row.extension_two"}})]}}],null,!1,899977843)})]:t._e()],2)],1):t._e(),t._v(" "),1===t.formValidate.spec_type&&t.formValidate.attr.length>0?a("el-form-item",{staticClass:"labeltop",attrs:{label:"规格列表:"}},[a("el-table",{staticClass:"tabNumWidth",attrs:{data:t.ManyAttrValue,border:"",size:"mini"}},[t.manyTabDate?t._l(t.manyTabDate,(function(e,i){return a("el-table-column",{key:i,attrs:{align:"center",label:t.manyTabTit[i].title,"min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{staticClass:"priceBox",domProps:{textContent:t._s(e.row[i])}})]}}],null,!0)})})):t._e(),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"图片","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"upLoadPicBox",attrs:{title:"750*750px"},on:{click:function(a){return t.modalPicTap("1","duo",e.$index)}}},[e.row.image?a("div",{staticClass:"pictrue tabPic"},[a("img",{attrs:{src:e.row.image}})]):a("div",{staticClass:"upLoad tabPic"},[a("i",{staticClass:"el-icon-camera cameraIconfont"})])])]}}],null,!1,1344940579)}),t._v(" "),t._l(t.attrValue,(function(e,i){return a("el-table-column",{key:i,attrs:{label:t.formThead[i].title,align:"center","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[0!=t.formValidate.svip_price_type?a("div",["付费会员价"===t.formThead[i].title?a("el-input-number",{staticClass:"priceBox",attrs:{min:0,disabled:1==t.formValidate.svip_price_type,"controls-position":"right"},model:{value:e.row[i],callback:function(a){t.$set(e.row,i,a)},expression:"scope.row[iii]"}}):t._e(),t._v(" "),"商品条码"===t.formThead[i].title?a("el-input",{staticClass:"priceBox",attrs:{type:"text"},model:{value:e.row[i],callback:function(a){t.$set(e.row,i,a)},expression:"scope.row[iii]"}}):t._e(),t._v(" "),"付费会员价"!==t.formThead[i].title&&"商品条码"!==t.formThead[i].title?a("el-input-number",{staticClass:"priceBox",attrs:{min:0,"controls-position":"right"},model:{value:e.row[i],callback:function(a){t.$set(e.row,i,a)},expression:"scope.row[iii]"}}):t._e()],1):a("div",["商品条码"===t.formThead[i].title?a("el-input",{staticClass:"priceBox",attrs:{type:"text"},model:{value:e.row[i],callback:function(a){t.$set(e.row,i,a)},expression:"scope.row[iii]"}}):a("el-input-number",{staticClass:"priceBox",attrs:{min:0,"controls-position":"right"},model:{value:e.row[i],callback:function(a){t.$set(e.row,i,a)},expression:"scope.row[iii]"}})],1)]}}],null,!0)})})),t._v(" "),1===t.formValidate.extension_type?[a("el-table-column",{key:"1",attrs:{align:"center",label:"一级返佣(元)","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-input-number",{staticClass:"priceBox",attrs:{min:0,"controls-position":"right"},model:{value:e.row.extension_one,callback:function(a){t.$set(e.row,"extension_one",a)},expression:"scope.row.extension_one"}})]}}],null,!1,1308693019)}),t._v(" "),a("el-table-column",{key:"2",attrs:{align:"center",label:"二级返佣(元)","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-input-number",{staticClass:"priceBox",attrs:{min:0,"controls-position":"right"},model:{value:e.row.extension_two,callback:function(a){t.$set(e.row,"extension_two",a)},expression:"scope.row.extension_two"}})]}}],null,!1,899977843)})]:t._e(),t._v(" "),a("el-table-column",{key:"3",attrs:{align:"center",label:"操作","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{staticClass:"submission",attrs:{type:"text"},on:{click:function(a){return t.delAttrTable(e.$index)}}},[t._v("删除")])]}}],null,!1,2803824461)})],2)],1):t._e()],1)],1):t._e(),t._v(" "),"3"==t.currentTab?a("el-row",[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"商品图片:"}},[a("div",{staticClass:"upLoadPicBox",attrs:{title:"750*750px"},on:{click:function(e){return t.modalPicTap("3")}}},[t._l(t.formValidate.content.image,(function(e,i){return a("div",{key:i+e,staticClass:"pictrue details_pictrue",on:{click:function(e){return e.stopPropagation(),t.deleteContentImg(i)}}},[a("img",{key:i,attrs:{src:e}})])})),t._v(" "),a("div",{staticClass:"upLoad details_pictrue"},[a("i",{staticClass:"el-icon-camera cameraIconfont"})])],2)])],1)],1):t._e(),t._v(" "),"4"==t.currentTab?a("el-row",[t.deliveryList.length>0?a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"送货方式:",prop:"delivery_way"}},[a("div",{staticClass:"acea-row"},[a("el-checkbox-group",{model:{value:t.formValidate.delivery_way,callback:function(e){t.$set(t.formValidate,"delivery_way",e)},expression:"formValidate.delivery_way"}},t._l(t.deliveryList,(function(e){return a("el-checkbox",{key:e.value,attrs:{label:e.value}},[t._v("\n "+t._s(e.name)+"\n ")])})),1)],1)])],1):t._e(),t._v(" "),(2==t.formValidate.delivery_way.length||1==t.formValidate.delivery_way.length&&2==t.formValidate.delivery_way[0])&&0==t.formValidate.type?a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"是否包邮:"}},[a("el-radio-group",{model:{value:t.formValidate.delivery_free,callback:function(e){t.$set(t.formValidate,"delivery_free",e)},expression:"formValidate.delivery_free"}},[a("el-radio",{staticClass:"radio",attrs:{label:0}},[t._v("否")]),t._v(" "),a("el-radio",{attrs:{label:1}},[t._v("是")])],1)],1)],1):t._e(),t._v(" "),0==t.formValidate.delivery_free&&(2==t.formValidate.delivery_way.length||1==t.formValidate.delivery_way.length&&2==t.formValidate.delivery_way[0])&&0==t.formValidate.type?a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"运费模板:",prop:"temp_id"}},[a("div",{staticClass:"acea-row"},[a("el-select",{staticClass:"selWidth",attrs:{placeholder:"请选择"},model:{value:t.formValidate.temp_id,callback:function(e){t.$set(t.formValidate,"temp_id",e)},expression:"formValidate.temp_id"}},t._l(t.shippingList,(function(t){return a("el-option",{key:t.shipping_template_id,attrs:{label:t.name,value:t.shipping_template_id}})})),1),t._v(" "),a("el-button",{staticClass:"ml15",attrs:{size:"small"},on:{click:t.addTem}},[t._v("添加运费模板")])],1)])],1):t._e()],1):t._e(),t._v(" "),a("el-form-item",{staticStyle:{"margin-top":"30px"}},[a("el-button",{directives:[{name:"show",rawName:"v-show",value:t.currentTab>1,expression:"currentTab > 1"}],staticClass:"submission",attrs:{type:"primary",size:"small"},on:{click:t.handleSubmitUp}},[t._v("上一步\n ")]),t._v(" "),a("el-button",{directives:[{name:"show",rawName:"v-show",value:t.currentTab<4,expression:"currentTab < 4"}],staticClass:"submission",attrs:{type:"primary",size:"small"},on:{click:function(e){return t.handleSubmitNest("formValidate")}}},[t._v("下一步\n ")]),t._v(" "),a("el-button",{directives:[{name:"show",rawName:"v-show",value:"4"==t.currentTab||t.$route.params.id,expression:"currentTab == '4' || $route.params.id"}],staticClass:"submission",attrs:{loading:t.loading,type:"primary",size:"small"},on:{click:function(e){return t.handleSubmit("formValidate")}}},[t._v("提交\n ")]),t._v(" "),a("el-button",{staticClass:"submission",attrs:{loading:t.loading,type:"primary",size:"small"},on:{click:function(e){return t.handlePreview("formValidate")}}},[t._v("预览\n ")])],1)],1)],1),t._v(" "),a("guarantee-service",{ref:"serviceGuarantee",on:{"get-list":t.getGuaranteeList}}),t._v(" "),t.previewVisible?a("div",[a("div",{staticClass:"bg",on:{click:function(e){e.stopPropagation(),t.previewVisible=!1}}}),t._v(" "),t.previewVisible?a("preview-box",{ref:"previewBox",attrs:{"preview-key":t.previewKey}}):t._e()],1):t._e(),t._v(" "),a("tao-bao",{ref:"taoBao",on:{"info-data":t.infoData}})],1)},r=[],n=(a("456d"),a("c7eb")),o=(a("96cf"),a("1da1")),s=(a("a481"),a("c5f6"),a("b85c")),l=(a("7f7f"),a("ade3")),c=(a("28a5"),a("8615"),a("55dd"),a("ac6a"),a("6762"),a("2fdb"),a("6b54"),a("2909")),d=a("ef0d"),u=a("6625"),m=a.n(u),p=(a("aa47"),a("c4c8")),f=a("83d6"),h=a("ae43"),g=a("8c98"),_=a("bbcc"),v=a("5f87"),b=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"Box"},[t.modals?a("el-dialog",{attrs:{visible:t.modals,width:"70%",title:"商品采集","custom-class":"dialog-scustom"},on:{"update:visible":function(e){t.modals=e}}},[a("el-card",[a("div",[t._v("复制淘宝、天猫、京东、苏宁、1688;")]),t._v("\n 生成的商品默认是没有上架的,请手动上架商品!\n "),a("span",{staticStyle:{color:"rgb(237, 64, 20)"}},[t._v("商品复制次数剩余:"+t._s(t.count)+"次")]),t._v(" "),a("router-link",{attrs:{to:{path:t.roterPre+"/setting/sms/sms_pay/index?type=copy"}}},[a("el-button",{attrs:{size:"small",type:"text"}},[t._v("增加采集次数")])],1),t._v(" "),a("el-button",{staticStyle:{"margin-left":"15px"},attrs:{size:"small",type:"primary"},on:{click:t.openRecords}},[t._v("查看商品复制记录")])],1),t._v(" "),a("el-form",{ref:"formValidate",staticClass:"formValidate mt20",attrs:{model:t.formValidate,rules:t.ruleInline,"label-width":"130px","label-position":"right"},nativeOn:{submit:function(t){t.preventDefault()}}},[a("el-form-item",{attrs:{label:"链接地址:"}},[a("el-input",{staticClass:"numPut",attrs:{search:"",placeholder:"请输入链接地址"},model:{value:t.soure_link,callback:function(e){t.soure_link=e},expression:"soure_link"}}),t._v(" "),a("el-button",{attrs:{loading:t.loading,size:"small",type:"primary"},on:{click:t.add}},[t._v("确定")])],1)],1)],1):t._e(),t._v(" "),a("copy-record",{ref:"copyRecord"})],1)},y=[],w=function(){var t=this,e=t.$createElement,a=t._self._c||e;return t.showRecord?a("el-dialog",{attrs:{title:"复制记录",visible:t.showRecord,width:"900px"},on:{"update:visible":function(e){t.showRecord=e}}},[a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}]},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"table",staticStyle:{width:"100%"},attrs:{data:t.tableData.data,size:"mini","highlight-current-row":""}},[a("el-table-column",{attrs:{label:"ID",prop:"mer_id","min-width":"50"}}),t._v(" "),a("el-table-column",{attrs:{label:"使用次数",prop:"num","min-width":"80"}}),t._v(" "),a("el-table-column",{attrs:{label:"复制商品平台名称",prop:"type","min-width":"120"}}),t._v(" "),a("el-table-column",{attrs:{label:"剩余次数",prop:"number","min-width":"80"}}),t._v(" "),a("el-table-column",{attrs:{label:"商品复制链接",prop:"info","min-width":"180"}}),t._v(" "),a("el-table-column",{attrs:{label:"操作时间",prop:"create_time","min-width":"120"}})],1),t._v(" "),a("div",{staticClass:"block"},[a("el-pagination",{attrs:{"page-sizes":[10,20],"page-size":t.tableFrom.limit,"current-page":t.tableFrom.page,layout:"total, sizes, prev, pager, next, jumper",total:t.tableData.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)],1)]):t._e()},V=[],x={name:"CopyRecord",data:function(){return{showRecord:!1,loading:!1,tableData:{data:[],total:0},tableFrom:{page:1,limit:10}}},methods:{getRecord:function(){var t=this;this.showRecord=!0,this.loading=!0,Object(p["Z"])(this.tableFrom).then((function(e){t.tableData.data=e.data.list,t.tableData.total=e.data.count,t.loading=!1})).catch((function(e){t.$message.error(e.message),t.listLoading=!1}))},pageChange:function(t){this.tableFrom.page=t,this.getRecord()},pageChangeLog:function(t){this.tableFromLog.page=t,this.getRecord()},handleSizeChange:function(t){this.tableFrom.limit=t,this.getRecord()}}},k=x,C=(a("f099"),a("2877")),$=Object(C["a"])(k,w,V,!1,null,"6d70337e",null),O=$.exports,B={store_name:"",cate_id:"",temp_id:"",type:0,guarantee_template_id:"",keyword:"",unit_name:"",store_info:"",image:"",slider_image:[],content:"",ficti:0,once_count:0,give_integral:0,is_show:0,price:0,cost:0,ot_price:0,stock:0,soure_link:"",attrs:[],items:[],delivery_way:[],mer_labels:[],delivery_free:0,spec_type:0,is_copoy:1,attrValue:[{image:"",price:0,cost:0,ot_price:0,stock:0,bar_code:"",weight:0,volume:0}]},L={price:{title:"售价"},cost:{title:"成本价"},ot_price:{title:"市场价"},stock:{title:"库存"},bar_code:{title:"商品编号"},weight:{title:"重量(KG)"},volume:{title:"体积(m³)"}},T={name:"CopyTaoBao",components:{ueditorFrom:d["a"],copyRecord:O},data:function(){var t=_["a"].https+"/upload/image/0/file?ueditor=1&token="+Object(v["a"])();return{roterPre:f["roterPre"],modals:!1,loading:!1,loading1:!1,BaseURL:_["a"].https||"http://localhost:8080",OneattrValue:[Object.assign({},B.attrValue[0])],ManyAttrValue:[Object.assign({},B.attrValue[0])],columnsBatch:[{title:"图片",slot:"image",align:"center",minWidth:80},{title:"售价",slot:"price",align:"center",minWidth:95},{title:"成本价",slot:"cost",align:"center",minWidth:95},{title:"市场价",slot:"ot_price",align:"center",minWidth:95},{title:"库存",slot:"stock",align:"center",minWidth:95},{title:"商品编号",slot:"bar_code",align:"center",minWidth:120},{title:"重量(KG)",slot:"weight",align:"center",minWidth:95},{title:"体积(m³)",slot:"volume",align:"center",minWidth:95}],manyTabDate:{},count:0,modal_loading:!1,images:"",soure_link:"",modalPic:!1,isChoice:"",gridPic:{xl:6,lg:8,md:12,sm:12,xs:12},gridBtn:{xl:4,lg:8,md:8,sm:8,xs:8},columns:[],virtual:[{tit:"普通商品",id:0,tit2:"物流发货"},{tit:"虚拟商品",id:1,tit2:"虚拟发货"}],categoryList:[],merCateList:[],BrandList:[],propsMer:{emitPath:!1,multiple:!0},tableFrom:{mer_cate_id:"",cate_id:"",keyword:"",type:"1",is_gift_bag:""},ruleInline:{cate_id:[{required:!0,message:"请选择商品分类",trigger:"change"}],mer_cate_id:[{required:!0,message:"请选择商户分类",trigger:"change",type:"array",min:"1"}],temp_id:[{required:!0,message:"请选择运费模板",trigger:"change",type:"number"}],brand_id:[{required:!0,message:"请选择品牌",trigger:"change"}],store_info:[{required:!0,message:"请输入商品简介",trigger:"blur"}],delivery_way:[{required:!0,message:"请选择送货方式",trigger:"change"}]},grid:{xl:8,lg:8,md:12,sm:24,xs:24},grid2:{xl:12,lg:12,md:12,sm:24,xs:24},myConfig:{autoHeightEnabled:!1,initialFrameHeight:500,initialFrameWidth:"100%",UEDITOR_HOME_URL:"/UEditor/",serverUrl:t,imageUrl:t,imageFieldName:"file",imageUrlPrefix:"",imageActionName:"upfile",imageMaxSize:2048e3,imageAllowFiles:[".png",".jpg",".jpeg",".gif",".bmp"]},formThead:Object.assign({},L),formValidate:Object.assign({},B),items:[{image:"",price:0,cost:0,ot_price:0,stock:0,bar_code:"",weight:0,volume:0}],shippingList:[],guaranteeList:[],isData:!1,artFrom:{type:"taobao",url:""},tableIndex:0,labelPosition:"right",labelWidth:"120",isMore:"",taoBaoStatus:{},attrInfo:{},labelList:[],oneFormBatch:[{image:"",price:0,cost:0,ot_price:0,stock:0,bar_code:"",weight:0,volume:0}]}},computed:{attrValue:function(){var t=Object.assign({},B.attrValue[0]);return delete t.image,t}},watch:{},created:function(){},mounted:function(){this.getCopyCount()},methods:{getLabelLst:function(){var t=this;Object(p["v"])().then((function(e){t.labelList=e.data})).catch((function(e){t.$message.error(e.message)}))},getCopyCount:function(){var t=this;Object(p["Y"])().then((function(e){t.count=e.data.count}))},openRecords:function(){this.$refs.copyRecord.getRecord()},batchDel:function(){this.oneFormBatch=[{image:"",price:0,cost:0,ot_price:0,stock:0,bar_code:"",weight:0,volume:0}]},batchAdd:function(){var t,e=Object(s["a"])(this.ManyAttrValue);try{for(e.s();!(t=e.n()).done;){var a=t.value;this.$set(a,"image",this.oneFormBatch[0].image),this.$set(a,"price",this.oneFormBatch[0].price),this.$set(a,"cost",this.oneFormBatch[0].cost),this.$set(a,"ot_price",this.oneFormBatch[0].ot_price),this.$set(a,"stock",this.oneFormBatch[0].stock),this.$set(a,"bar_code",this.oneFormBatch[0].bar_code),this.$set(a,"weight",this.oneFormBatch[0].weight),this.$set(a,"volume",this.oneFormBatch[0].volume),this.$set(a,"extension_one",this.oneFormBatch[0].extension_one),this.$set(a,"extension_two",this.oneFormBatch[0].extension_two)}}catch(i){e.e(i)}finally{e.f()}},delAttrTable:function(t){this.ManyAttrValue.splice(t,1)},productGetTemplate:function(){var t=this;Object(p["wb"])().then((function(e){t.shippingList=e.data}))},getGuaranteeList:function(){var t=this;Object(p["B"])().then((function(e){t.guaranteeList=e.data}))},handleRemove:function(t){this.formValidate.slider_image.splice(t,1)},checked:function(t,e){this.formValidate.image=t},goodsCategory:function(){var t=this;Object(p["q"])().then((function(e){t.categoryList=e.data})).catch((function(e){t.$message.error(e.message)}))},getCategorySelect:function(){var t=this;Object(p["r"])().then((function(e){t.merCateList=e.data})).catch((function(e){t.$message.error(e.message)}))},getBrandListApi:function(){var t=this;Object(p["p"])().then((function(e){t.BrandList=e.data})).catch((function(e){t.$message.error(e.message)}))},virtualbtn:function(t,e){this.formValidate.type=t,this.productCon()},watCh:function(t){var e=this,a={},i={};this.formValidate.attr.forEach((function(t,e){a["value"+e]={title:t.value},i["value"+e]=""})),this.ManyAttrValue=this.attrFormat(t),console.log(this.ManyAttrValue),this.ManyAttrValue.forEach((function(t,a){var i=Object.values(t.detail).sort().join("/");e.attrInfo[i]&&(e.ManyAttrValue[a]=e.attrInfo[i]),t.image=e.formValidate.image})),this.attrInfo={},this.ManyAttrValue.forEach((function(t){"undefined"!==t.detail&&null!==t.detail&&(e.attrInfo[Object.values(t.detail).sort().join("/")]=t)})),this.manyTabTit=a,this.manyTabDate=i,this.formThead=Object.assign({},this.formThead,a)},attrFormat:function(t){var e=[],a=[];return i(t);function i(t){if(t.length>1)t.forEach((function(i,r){0===r&&(e=t[r]["detail"]);var n=[];e.forEach((function(e){t[r+1]&&t[r+1]["detail"]&&t[r+1]["detail"].forEach((function(i){var o=(0!==r?"":t[r]["value"]+"_$_")+e+"-$-"+t[r+1]["value"]+"_$_"+i;if(n.push(o),r===t.length-2){var s={image:"",price:0,cost:0,ot_price:0,stock:0,bar_code:"",weight:0,volume:0,brokerage:0,brokerage_two:0};o.split("-$-").forEach((function(t,e){var a=t.split("_$_");s["detail"]||(s["detail"]={}),s["detail"][a[0]]=a.length>1?a[1]:""})),Object.values(s.detail).forEach((function(t,e){s["value"+e]=t})),a.push(s)}}))})),e=n.length?n:[]}));else{var i=[];t.forEach((function(t,e){t["detail"].forEach((function(e,r){i[r]=t["value"]+"_"+e,a[r]={image:"",price:0,cost:0,ot_price:0,stock:0,bar_code:"",weight:0,volume:0,brokerage:0,brokerage_two:0,detail:Object(l["a"])({},t["value"],e)},Object.values(a[r].detail).forEach((function(t,e){a[r]["value"+e]=t}))}))})),e.push(i.join("$&"))}return console.log(a),a}},add:function(){var t=this;if(this.soure_link){var e=/(http|ftp|https):\/\/[\w\-_]+(\.[\w\-_]+)+([\w\-\.,@?^=%&:/~\+#]*[\w\-\@?^=%&/~\+#])?/;if(!e.test(this.soure_link))return this.$message.warning("请输入以http开头的地址!");this.artFrom.url=this.soure_link,this.loading=!0,Object(p["s"])(this.artFrom).then((function(e){var a=e.data;t.modals=!1,t.$emit("info-data",a)})).catch((function(e){t.$message.error(e.message),t.loading=!1}))}else this.$message.warning("请输入链接地址!")},handleSubmit:function(t){var e=this;this.$refs[t].validate((function(t){t?(e.modal_loading=!0,e.formValidate.cate_id=e.formValidate.cate_id instanceof Array?e.formValidate.cate_id.pop():e.formValidate.cate_id,e.formValidate.once_count=e.formValidate.once_count||0,1==e.formValidate.spec_type?e.formValidate.attrValue=e.ManyAttrValue:(e.formValidate.attrValue=e.OneattrValue,e.formValidate.attr=[]),e.formValidate.is_copoy=1,e.loading1=!0,Object(p["X"])(e.formValidate).then((function(t){e.$message.success("商品默认为不上架状态请手动上架商品!"),e.loading1=!1,setTimeout((function(){e.modal_loading=!1}),500),setTimeout((function(){e.modals=!1}),600),e.$emit("getSuccess")})).catch((function(t){e.modal_loading=!1,e.$message.error(t.message),e.loading1=!1}))):e.formValidate.cate_id||e.$message.warning("请填写商品分类!")}))},modalPicTap:function(t,e,a){this.tableIndex=a;var i=this;this.$modalUpload((function(e){console.log(i.formValidate.attr[i.tableIndex]),"1"===t&&("pi"===a?i.oneFormBatch[0].image=e[0]:i.OneattrValue[0].image=e[0]),"2"===t&&(i.ManyAttrValue[i.tableIndex].image=e[0]),i.modalPic=!1}),t)},getPic:function(t){this.callback(t),this.formValidate.attr[this.tableIndex].pic=t.att_dir,this.modalPic=!1},handleDragStart:function(t,e){this.dragging=e},handleDragEnd:function(t,e){this.dragging=null},handleDragOver:function(t){t.dataTransfer.dropEffect="move"},handleDragEnter:function(t,e){if(t.dataTransfer.effectAllowed="move",e!==this.dragging){var a=Object(c["a"])(this.formValidate.slider_image),i=a.indexOf(this.dragging),r=a.indexOf(e);a.splice.apply(a,[r,0].concat(Object(c["a"])(a.splice(i,1)))),this.formValidate.slider_image=a}},addCustomDialog:function(t){window.UE.registerUI("test-dialog",(function(t,e){var a=new window.UE.ui.Dialog({iframeUrl:"/admin/widget.images/index.html?fodder=dialog",editor:t,name:e,title:"上传图片",cssRules:"width:1200px;height:500px;padding:20px;"});this.dialog=a;var i=new window.UE.ui.Button({name:"dialog-button",title:"上传图片",cssRules:"background-image: url(../../../assets/images/icons.png);background-position: -726px -77px;",onclick:function(){a.render(),a.open()}});return i}))}}},j=T,S=(a("c722"),Object(C["a"])(j,b,y,!1,null,"5245ffd2",null)),F=S.exports,D={image:"",slider_image:[],store_name:"",store_info:"",keyword:"",brand_id:"",cate_id:"",mer_cate_id:[],param_temp_id:[],unit_name:"",sort:0,once_max_count:0,is_good:0,temp_id:"",video_link:"",guarantee_template_id:"",delivery_way:[],mer_labels:[],delivery_free:0,pay_limit:0,once_min_count:0,svip_price_type:0,params:[],attrValue:[{image:"",price:null,cost:null,ot_price:null,svip_price:null,stock:null,bar_code:"",weight:null,volume:null}],attr:[],extension_type:0,integral_rate:-1,content:{title:"",image:[]},spec_type:0,give_coupon_ids:[],is_gift_bag:0,couponData:[],extend:[],type:0},A={price:{title:"售价"},cost:{title:"成本价"},ot_price:{title:"市场价"},svip_price:{title:"付费会员价"},stock:{title:"库存"},bar_code:{title:"商品条码"},weight:{title:"重量(KG)"},volume:{title:"体积(m³)"}},E=[{name:"店铺推荐",value:"is_good"}],P={name:"ProductProductAdd",components:{ueditorFrom:d["a"],VueUeditorWrap:m.a,guaranteeService:h["a"],previewBox:g["a"],taoBao:F,copyRecord:O},data:function(){var t=_["a"].https+"/upload/image/0/file?ueditor=1&token="+Object(v["a"])();return{myConfig:{autoHeightEnabled:!1,initialFrameHeight:500,initialFrameWidth:"100%",enableAutoSave:!1,UEDITOR_HOME_URL:"/UEditor/",serverUrl:t,imageUrl:t,imageFieldName:"file",imageUrlPrefix:"",imageActionName:"upfile",imageMaxSize:2048e3,imageAllowFiles:[".png",".jpg",".jpeg",".gif",".bmp"]},optionsCate:{value:"store_category_id",label:"cate_name",children:"children",emitPath:!1},roterPre:f["roterPre"],selectRule:"",checkboxGroup:[],recommend:E,tabs:[],fullscreenLoading:!1,props:{emitPath:!1},propsMer:{emitPath:!0},active:0,deduction_set:-1,OneattrValue:[Object.assign({},D.attrValue[0])],ManyAttrValue:[Object.assign({},D.attrValue[0])],ruleList:[],merCateList:[],categoryList:[],shippingList:[],guaranteeList:[],BrandList:[],deliveryList:[],labelList:[],formThead:Object.assign({},A),formValidate:Object.assign({},D),picValidate:!0,formDynamics:{template_name:"",template_value:[]},manyTabTit:{},manyTabDate:{},grid2:{xl:10,lg:12,md:12,sm:24,xs:24},formDynamic:{attrsName:"",attrsVal:""},isBtn:!1,manyFormValidate:[],images:[],currentTab:"1",isChoice:"",upload:{videoIng:!1},progress:10,videoLink:"",grid:{xl:8,lg:8,md:12,sm:24,xs:24},loading:!1,ruleValidate:{give_coupon_ids:[{required:!0,message:"请选择优惠券",trigger:"change",type:"array"}],store_name:[{required:!0,message:"请输入商品名称",trigger:"blur"}],mer_cate_id:[{required:!1,message:"请选择商户商品分类",trigger:"change"}],cate_id:[{required:!0,message:"请选择平台分类",trigger:"change"}],keyword:[{required:!0,message:"请输入商品关键字",trigger:"blur"}],unit_name:[{required:!0,message:"请输入单位",trigger:"blur"}],store_info:[{required:!1,message:"请输入商品简介",trigger:"blur"}],temp_id:[{required:!0,message:"请选择运费模板",trigger:"change"}],once_max_count:[{required:!0,message:"请输入限购数量",trigger:"change"}],image:[{required:!0,message:"请上传商品图",trigger:"change"}],slider_image:[{required:!0,message:"请上传商品轮播图",type:"array",trigger:"change"}],spec_type:[{required:!0,message:"请选择商品规格",trigger:"change"}],delivery_way:[{required:!0,message:"请选择送货方式",trigger:"change"}]},attrInfo:{},keyNum:0,extensionStatus:0,deductionStatus:0,previewVisible:!1,previewKey:"",deliveryType:[],virtual:[{tit:"普通商品",id:0,tit2:"物流发货"}],customBtn:0,CustomList:[{value:"text",label:"文本框"},{value:"number",label:"数字"},{value:"email",label:"邮件"},{value:"date",label:"日期"},{value:"time",label:"时间"},{value:"idCard",label:"身份证"},{value:"mobile",label:"手机号"},{value:"image",label:"图片"}],customess:{content:[]},headTab:[{title:"商品信息",name:"1"},{title:"规格设置",name:"2"},{title:"商品详情",name:"3"},{title:"其他设置",name:"4"}],type:0,modals:!1,attrVal:{price:null,cost:null,ot_price:null,stock:null,bar_code:"",weight:null,volume:null},open_svip:!1,svip_rate:0,customSpecs:[],merSpecsSelect:[],sysSpecsSelect:[]}},computed:{attrValue:function(){var t=Object.assign({},this.attrVal);return t},oneFormBatch:function(){var t=[Object.assign({},D.attrValue[0])];return this.OneattrValue[0]&&this.OneattrValue[0]["image"]&&(t[0]["image"]=this.OneattrValue[0]["image"]),delete t[0].bar_code,t}},watch:{"formValidate.attr":{handler:function(t){1===this.formValidate.spec_type&&this.watCh(t)},immediate:!1,deep:!0},currentTab:function(t){var e=this;4==t&&this.$nextTick((function(t){e.setSort()}))}},created:function(){this.tempRoute=Object.assign({},this.$route),this.$route.params.id&&1===this.formValidate.spec_type&&this.$watch("formValidate.attr",this.watCh)},mounted:function(){var t=this;this.formValidate.slider_image=[],this.$route.params.id?(this.setTagsViewTitle(),this.getInfo()):(this.getSpecsLst(this.formValidate.cate_id),-1==this.deduction_set&&(this.formValidate.integral_rate=-1)),this.formValidate.attr.map((function(e){t.$set(e,"inputVisible",!1)})),1==this.$route.query.type?(this.type=this.$route.query.type,this.$refs.taoBao.modals=!0):this.type=0,this.getCategorySelect(),this.getCategoryList(),this.getBrandListApi(),this.getShippingList(),this.getGuaranteeList(),this.productCon(),this.productGetRule(),this.getLabelLst(),this.$store.dispatch("settings/setEdit",!0)},destroyed:function(){window.removeEventListener("popstate",this.goBack,!1)},methods:{setSort:function(){},elChangeExForArray:function(t,e,a){var i=a[t];return a[t]=a[e],a[e]=i,a},goBack:function(){sessionStorage.clear(),window.history.back()},handleCloseCoupon:function(t){var e=this;this.formValidate.couponData.splice(this.formValidate.couponData.indexOf(t),1),this.formValidate.give_coupon_ids=[],this.formValidate.couponData.map((function(t){e.formValidate.give_coupon_ids.push(t.coupon_id)}))},getSpecsLst:function(t){var e=this,a=t||this.formValidate.cate_id;Object(p["zb"])({cate_id:a}).then((function(t){e.merSpecsSelect=t.data.mer,e.sysSpecsSelect=t.data.sys})).catch((function(t){e.$message.error(t.message)}))},productCon:function(){var t=this;Object(p["W"])().then((function(e){t.extensionStatus=e.data.extension_status,t.deductionStatus=e.data.integral_status,t.deliveryType=e.data.delivery_way.map(String),t.open_svip=1==e.data.mer_svip_status&&1==e.data.svip_switch_status,t.svip_rate=e.data.svip_store_rate;var a=0==t.formValidate.type?"快递配送":"虚拟发货";t.$route.params.id||(t.formValidate.delivery_way=t.deliveryType),2==t.deliveryType.length?t.deliveryList=[{value:"1",name:"到店自提"},{value:"2",name:a}]:1==t.deliveryType.length&&"1"==t.deliveryType[0]?t.deliveryList=[{value:"1",name:"到店自提"}]:t.deliveryList=[{value:"2",name:a}]})).catch((function(e){t.$message.error(e.message)}))},getLabelLst:function(){var t=this;Object(p["v"])().then((function(e){t.labelList=e.data})).catch((function(e){t.$message.error(e.message)}))},addCoupon:function(){var t=this;this.$modalCoupon(this.formValidate.couponData,"wu",t.formValidate.give_coupon_ids,this.keyNum+=1,(function(e){t.formValidate.give_coupon_ids=[],t.formValidate.couponData=e,e.map((function(e){t.formValidate.give_coupon_ids.push(e.coupon_id)}))}))},delSpecs:function(t){this.formValidate.params.splice(t,1)},addSpecs:function(){this.formValidate.params.push({name:"",value:"",sort:0})},getSpecsList:function(){var t=this,e=Object(c["a"])(this.customSpecs),a=[this.formValidate.param_temp_id].concat(),i=[].concat(Object(c["a"])(e),Object(c["a"])(a));console.log(i),console.log(this.customSpecs),i.length<=0?(this.formValidate.merParams=[],this.formValidate.sysParams=[]):Object(p["ib"])({template_ids:i.toString()}).then((function(e){t.formValidate.params=e.data})).catch((function(e){t.$message.error(e.message)}))},setTagsViewTitle:function(){var t="编辑商品",e=Object.assign({},this.tempRoute,{title:"".concat(t,"-").concat(this.$route.params.id)});this.$store.dispatch("tagsView/updateVisitedView",e)},onChangeGroup:function(){this.checkboxGroup.includes("is_good")?this.formValidate.is_good=1:this.formValidate.is_good=0},watCh:function(t){var e=this,a={},i={};this.formValidate.attr.forEach((function(t,e){a["value"+e]={title:t.value},i["value"+e]=""})),this.ManyAttrValue=this.attrFormat(t),this.ManyAttrValue.forEach((function(t,a){var i=Object.values(t.detail).sort().join("/");e.attrInfo[i]&&(e.ManyAttrValue[a]=e.attrInfo[i])})),this.attrInfo={},this.ManyAttrValue.forEach((function(t){"undefined"!==t.detail&&null!==t.detail&&(e.attrInfo[Object.values(t.detail).sort().join("/")]=t)})),this.manyTabTit=a,this.manyTabDate=i,this.formThead=Object.assign({},this.formThead,a)},attrFormat:function(t){var e=[],a=[];return i(t);function i(t){if(t.length>1)t.forEach((function(i,r){0===r&&(e=t[r]["detail"]);var n=[];e.forEach((function(e){t[r+1]&&t[r+1]["detail"]&&t[r+1]["detail"].forEach((function(i){var o=(0!==r?"":t[r]["value"]+"_$_")+e+"-$-"+t[r+1]["value"]+"_$_"+i;if(n.push(o),r===t.length-2){var s={image:"",price:0,cost:0,ot_price:0,stock:0,bar_code:"",weight:0,volume:0,brokerage:0,brokerage_two:0};o.split("-$-").forEach((function(t,e){var a=t.split("_$_");s["detail"]||(s["detail"]={}),s["detail"][a[0]]=a.length>1?a[1]:""})),Object.values(s.detail).forEach((function(t,e){s["value"+e]=t})),a.push(s)}}))})),e=n.length?n:[]}));else{var i=[];t.forEach((function(t,e){t["detail"].forEach((function(e,r){i[r]=t["value"]+"_"+e,a[r]={image:"",price:0,cost:0,ot_price:0,stock:0,bar_code:"",weight:0,volume:0,brokerage:0,brokerage_two:0,detail:Object(l["a"])({},t["value"],e)},Object.values(a[r].detail).forEach((function(t,e){a[r]["value"+e]=t}))}))})),e.push(i.join("$&"))}return a}},addTem:function(){var t=this;this.$modalTemplates(0,(function(){t.getShippingList()}))},addServiceTem:function(){this.$refs.serviceGuarantee.add()},delVideo:function(){var t=this;t.$set(t.formValidate,"video_link","")},zh_uploadFile:function(){this.videoLink?this.formValidate.video_link=this.videoLink:this.$refs.refid.click()},zh_uploadFile_change:function(t){var e=this;e.progress=10;var a=t.target.files[0].name.substr(t.target.files[0].name.indexOf("."));if(".mp4"!==a)return e.$message.error("只能上传MP4文件");Object(p["db"])().then((function(a){e.$videoCloud.videoUpload({type:a.data.type,evfile:t,res:a,uploading:function(t,a){e.upload.videoIng=t}}).then((function(t){e.formValidate.video_link=t.url||t.data.src,e.$message.success("视频上传成功"),e.progress=100})).catch((function(t){e.upload.videoIng=!1,e.$message.error(t.message)}))}))},addRule:function(){var t=this;this.$modalAttr(this.formDynamics,(function(){t.productGetRule()}))},onChangeSpec:function(t){1===t&&this.productGetRule()},changeIntergral:function(t){this.formValidate.integral_rate=-1==t?-1:this.formValidate.integral_rate},confirm:function(){var t=this;if(!this.selectRule)return this.$message.warning("请选择属性");this.ruleList.forEach((function(e){e.attr_template_id===t.selectRule&&(t.formValidate.attr=e.template_value)}))},getCategorySelect:function(){var t=this;Object(p["r"])().then((function(e){t.merCateList=e.data})).catch((function(e){t.$message.error(e.message)}))},getCategoryList:function(){var t=this;Object(p["q"])().then((function(e){e.data.forEach((function(t){t.children.forEach((function(t){t.children=null}))})),t.categoryList=e.data})).catch((function(e){t.$message.error(e.message)}))},getBrandListApi:function(){var t=this;Object(p["p"])().then((function(e){t.BrandList=e.data})).catch((function(e){t.$message.error(e.message)}))},productGetRule:function(){var t=this;Object(p["Nb"])().then((function(e){t.ruleList=e.data}))},getShippingList:function(){var t=this;Object(p["wb"])().then((function(e){t.shippingList=e.data}))},getGuaranteeList:function(){var t=this;Object(p["B"])().then((function(e){t.guaranteeList=e.data}))},showInput:function(t){this.$set(t,"inputVisible",!0)},virtualbtn:function(t,e){if(this.$route.params.id)return this.$message.warning("商品类型不能切换!");this.formValidate.type=t,this.productCon()},customMessBtn:function(t){t||(this.formValidate.extend=[])},addcustom:function(){this.formValidate.extend.length>9?this.$message.warning("最多添加10条"):this.formValidate.extend.push({title:"",key:"text",value:"",require:!1})},delcustom:function(t){this.formValidate.extend.splice(t,1)},onChangetype:function(t){var e=this;1===t?(this.OneattrValue.map((function(t){e.$set(t,"extension_one",null),e.$set(t,"extension_two",null)})),this.ManyAttrValue.map((function(t){e.$set(t,"extension_one",null),e.$set(t,"extension_two",null)}))):(this.OneattrValue.map((function(t){delete t.extension_one,delete t.extension_two,e.$set(t,"extension_one",null),e.$set(t,"extension_two",null)})),this.ManyAttrValue.map((function(t){delete t.extension_one,delete t.extension_two})))},onChangeSpecs:function(t){if(1==t||2==t){this.attrVal={price:null,cost:null,ot_price:null,svip_price:null,stock:null,bar_code:"",weight:null,volume:null},this.OneattrValue[0]["svip_price"]=this.OneattrValue[0]["price"]?this.accMul(this.OneattrValue[0]["price"],this.svip_rate):0;var e,a=0,i=Object(s["a"])(this.ManyAttrValue);try{for(i.s();!(e=i.n()).done;){var r=e.value;a=r.price?this.accMul(r.price,this.svip_rate):0,this.$set(r,"svip_price",a)}}catch(n){i.e(n)}finally{i.f()}}else this.attrVal={price:null,cost:null,ot_price:null,stock:null,bar_code:"",weight:null,volume:null}},memberPrice:function(t,e){"售价"==t.title&&(e.svip_price=this.accMul(e.price,this.svip_rate))},accMul:function(t,e){var a=0,i=t.toString(),r=e.toString();try{a+=i.split(".")[1].length}catch(n){}try{a+=r.split(".")[1].length}catch(n){}return Number(i.replace(".",""))*Number(r.replace(".",""))/Math.pow(10,a)},delAttrTable:function(t){this.ManyAttrValue.splice(t,1)},batchAdd:function(){var t,e=Object(s["a"])(this.ManyAttrValue);try{for(e.s();!(t=e.n()).done;){var a=t.value;console.log(this.oneFormBatch[0]),""!=this.oneFormBatch[0].image&&this.$set(a,"image",this.oneFormBatch[0].image),null!=this.oneFormBatch[0].price&&this.$set(a,"price",this.oneFormBatch[0].price),null!=this.oneFormBatch[0].cost&&this.$set(a,"cost",this.oneFormBatch[0].cost),null!=this.oneFormBatch[0].ot_price&&this.$set(a,"ot_price",this.oneFormBatch[0].ot_price),null!=this.oneFormBatch[0].svip_price&&this.$set(a,"svip_price",this.oneFormBatch[0].svip_price),null!=this.oneFormBatch[0].stock&&this.$set(a,"stock",this.oneFormBatch[0].stock),null!=this.oneFormBatch[0].bar_code&&this.$set(a,"bar_code",this.oneFormBatch[0].bar_code),null!=this.oneFormBatch[0].weight&&this.$set(a,"weight",this.oneFormBatch[0].weight),null!=this.oneFormBatch[0].volume&&this.$set(a,"volume",this.oneFormBatch[0].volume),null!=this.oneFormBatch[0].extension_one&&this.$set(a,"extension_one",this.oneFormBatch[0].extension_one),null!=this.oneFormBatch[0].extension_two&&this.$set(a,"extension_two",this.oneFormBatch[0].extension_two)}}catch(i){e.e(i)}finally{e.f()}},addBtn:function(){this.clearAttr(),this.isBtn=!0},offAttrName:function(){this.isBtn=!1},clearAttr:function(){this.formDynamic.attrsName="",this.formDynamic.attrsVal=""},handleRemoveAttr:function(t){this.formValidate.attr.splice(t,1),this.manyFormValidate.splice(t,1)},handleClose:function(t,e){t.splice(e,1)},createAttrName:function(){if(this.formDynamic.attrsName&&this.formDynamic.attrsVal){var t={value:this.formDynamic.attrsName,detail:[this.formDynamic.attrsVal]};this.formValidate.attr.push(t);var e={};this.formValidate.attr=this.formValidate.attr.reduce((function(t,a){return!e[a.value]&&(e[a.value]=t.push(a)),t}),[]),this.clearAttr(),this.isBtn=!1}else this.$message.warning("请添加完整的规格!")},createAttr:function(t,e){if(t){this.formValidate.attr[e].detail.push(t);var a={};this.formValidate.attr[e].detail=this.formValidate.attr[e].detail.reduce((function(t,e){return!a[e]&&(a[e]=t.push(e)),t}),[]),this.formValidate.attr[e].inputVisible=!1}else this.$message.warning("请添加属性")},getInfo:function(){var t=this;this.fullscreenLoading=!0,Object(p["cb"])(this.$route.params.id).then(function(){var e=Object(o["a"])(Object(n["a"])().mark((function e(a){var i;return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:a.data.content_arr&&a.data.content_arr.length>0&&(a.data.content=a.data.content_arr),i=a.data,t.infoData(i),t.getSpecsLst(i.cate_id);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.fullscreenLoading=!1,t.$message.error(e.message)}))},infoData:function(t){var e=this;this.deduction_set=-1==t.integral_rate?-1:1,this.formValidate={image:t.image,attrValue:t.attrValue,slider_image:t.slider_image,store_name:t.store_name,store_info:t.store_info,keyword:t.keyword,params:t.params,param_temp_id:t.param_temp_id,brand_id:t.brand_id,cate_id:t.cate_id,mer_cate_id:t.mer_cate_id,unit_name:t.unit_name,sort:t.sort,once_max_count:t.once_max_count||1,once_min_count:t.once_min_count||0,is_good:t.is_good,temp_id:t.temp_id,guarantee_template_id:t.guarantee_template_id?t.guarantee_template_id:"",attr:t.attr,pay_limit:t.pay_limit||0,extension_type:t.extension_type,content:t.content,spec_type:Number(t.spec_type),give_coupon_ids:t.give_coupon_ids,is_gift_bag:t.is_gift_bag,couponData:t.coupon,video_link:t.video_link?t.video_link:"",integral_rate:t.integral_rate,delivery_way:t.delivery_way&&t.delivery_way.length?t.delivery_way.map(String):this.deliveryType,delivery_free:t.delivery_free?t.delivery_free:0,mer_labels:t.mer_labels&&t.mer_labels.length?t.mer_labels.map(Number):[],type:t.type||0,extend:t.extend||[],svip_price_type:t.svip_price_type||0},0!=t.svip_price_type&&(this.attrVal={price:null,cost:null,ot_price:null,svip_price:null,stock:null,bar_code:"",weight:null,volume:null}),0!=this.formValidate.extend.length&&(this.customBtn=1),0===this.formValidate.spec_type?this.OneattrValue=t.attrValue:(this.ManyAttrValue=t.attrValue,this.ManyAttrValue.forEach((function(t){"undefined"!==t.detail&&null!==t.detail&&(e.attrInfo[Object.values(t.detail).sort().join("/")]=t)}))),1===this.formValidate.is_good&&this.checkboxGroup.push("is_good"),this.fullscreenLoading=!1},onClose:function(t){this.modals=!1,this.infoData(t)},handleRemove:function(t){this.formValidate.slider_image.splice(t,1)},modalPicTap:function(t,e,a){var i=this,r=[];this.$modalUpload((function(n){if("1"!==t||e||(i.formValidate.image=n[0],i.OneattrValue[0].image=n[0]),"2"!==t||e||n.map((function(t){r.push(t.attachment_src),i.formValidate.slider_image.push(t),i.formValidate.slider_image.length>10&&(i.formValidate.slider_image.length=10)})),"1"===t&&"dan"===e&&(i.OneattrValue[0].image=n[0]),"1"===t&&"duo"===e&&(i.ManyAttrValue[a].image=n[0]),"1"===t&&"pi"===e&&(i.oneFormBatch[0].image=n[0]),"3"===t){var o=i.formValidate.content.image?i.formValidate.content.image:[];i.formValidate.content={image:[].concat(Object(c["a"])(o),Object(c["a"])(n)),title:i.formValidate.content.title},console.log("选择好的",i.formValidate.content)}}),t)},deleteContentImg:function(t){this.formValidate.content.image.splice(t,1)},handleSubmitUp:function(){this.currentTab=(Number(this.currentTab)-1).toString()},handleSubmitNest:function(t){var e=this;this.$refs[t].validate((function(t){t&&(e.currentTab=(Number(e.currentTab)+1).toString())}))},validateAttr:function(){var t=this;Object.keys(this.formValidate.attrValue[0]).forEach((function(e){void 0==t.formValidate.attrValue[0][e]&&"bar_code"!=e&&(t.formValidate.attrValue[0][e]=0)}))},handleSubmit:function(t){var e=this;this.$store.dispatch("settings/setEdit",!1),this.onChangeGroup(),1===this.formValidate.spec_type?this.formValidate.attrValue=this.ManyAttrValue:(this.formValidate.attrValue=this.OneattrValue,this.formValidate.attr=[]),this.$refs[t].validate((function(a){if(a){e.validateAttr(),e.fullscreenLoading=!0,e.loading=!0;var i=e.$route.params.id&&!e.$route.query.type;i?Object(p["lb"])(e.$route.params.id,e.formValidate).then(function(){var a=Object(o["a"])(Object(n["a"])().mark((function a(i){return Object(n["a"])().wrap((function(a){while(1)switch(a.prev=a.next){case 0:e.fullscreenLoading=!1,e.$message.success(i.message),e.$router.push({path:e.roterPre+"/product/list"}),e.$refs[t].resetFields(),e.formValidate.slider_image=[],e.loading=!1;case 6:case"end":return a.stop()}}),a)})));return function(t){return a.apply(this,arguments)}}()).catch((function(t){e.fullscreenLoading=!1,e.loading=!1,e.$message.error(t.message)})):Object(p["ab"])(e.formValidate).then(function(){var t=Object(o["a"])(Object(n["a"])().mark((function t(a){return Object(n["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.fullscreenLoading=!1,e.$message.success(a.message),e.$router.push({path:e.roterPre+"/product/list"}),e.loading=!1;case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.fullscreenLoading=!1,e.loading=!1,e.$message.error(t.message)}))}else{if(!e.formValidate.store_name.trim())return e.$message.warning("基本信息-商品名称不能为空");if(!e.formValidate.unit_name)return e.$message.warning("基本信息-单位不能为空");if(!e.formValidate.cate_id)return e.$message.warning("基本信息-平台商品分类不能为空");if(!e.formValidate.image)return e.$message.warning("基本信息-商品封面图不能为空");if(e.formValidate.slider_image.length<0)return e.$message.warning("基本信息-商品轮播图不能为空")}}))},handlePreview:function(t){var e=this;this.onChangeGroup(),1===this.formValidate.spec_type?this.formValidate.attrValue=this.ManyAttrValue:(this.formValidate.attrValue=this.OneattrValue,this.formValidate.attr=[]),Object(p["fb"])(this.formValidate).then(function(){var t=Object(o["a"])(Object(n["a"])().mark((function t(a){return Object(n["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.previewVisible=!0,e.previewKey=a.data.preview_key;case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.$message.error(t.message)}))},validate:function(t,e,a){!1===e&&this.$message.warning(a)},specPicValidate:function(t){for(var e=0;ed)a=l[d++],i&&!o.call(s,a)||u.push(t?[a,s[a]]:s[a]);return u}}},"5fa7":function(t,e,a){},8615:function(t,e,a){var i=a("5ca1"),r=a("504c")(!1);i(i.S,"Object",{values:function(t){return r(t)}})},b78c:function(t,e,a){},c33c:function(t,e,a){},c722:function(t,e,a){"use strict";a("b78c")},d472:function(t,e,a){"use strict";a("5fa7")},f099:function(t,e,a){"use strict";a("c33c")}}]);
\ No newline at end of file
diff --git a/public/mer/js/chunk-d08ae18a.f45890ac.js b/public/mer/js/chunk-d08ae18a.f45890ac.js
deleted file mode 100644
index 4c93a494..00000000
--- a/public/mer/js/chunk-d08ae18a.f45890ac.js
+++ /dev/null
@@ -1 +0,0 @@
-(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-d08ae18a"],{2865:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"divBox"},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix"},[t.headTab.length>0?a("el-tabs",{model:{value:t.currentTab,callback:function(e){t.currentTab=e},expression:"currentTab"}},t._l(t.headTab,(function(t,e){return a("el-tab-pane",{key:e,attrs:{name:t.name,label:t.title}})})),1):t._e()],1),t._v(" "),a("el-form",{directives:[{name:"loading",rawName:"v-loading",value:t.fullscreenLoading,expression:"fullscreenLoading"}],key:t.currentTab,ref:"formValidate",staticClass:"formValidate mt20",attrs:{rules:t.ruleValidate,model:t.formValidate,"label-width":"130px"},nativeOn:{submit:function(t){t.preventDefault()}}},["1"==t.currentTab?a("el-row",{attrs:{gutter:24}},[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"商品类型:",required:""}},t._l(t.virtual,(function(e,i){return a("div",{key:i,staticClass:"virtual",class:t.formValidate.type==e.id?"virtual_boder":"virtual_boder2",on:{click:function(a){return t.virtualbtn(e.id,2)}}},[a("div",{staticClass:"virtual_top"},[t._v(t._s(e.tit))]),t._v(" "),a("div",{staticClass:"virtual_bottom"},[t._v("("+t._s(e.tit2)+")")]),t._v(" "),t.formValidate.type==e.id?a("div",{staticClass:"virtual_san"}):t._e(),t._v(" "),t.formValidate.type==e.id?a("div",{staticClass:"virtual_dui"},[t._v("\n ✓\n ")]):t._e()])})),0)],1),t._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"商品名称:",prop:"store_name"}},[a("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入商品名称"},model:{value:t.formValidate.store_name,callback:function(e){t.$set(t.formValidate,"store_name",e)},expression:"formValidate.store_name"}})],1)],1),t._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"平台商品分类:",prop:"cate_id"}},[a("el-cascader",{staticClass:"selWidth",attrs:{options:t.categoryList,props:t.props,filterable:"",clearable:""},on:{change:t.getSpecsLst},model:{value:t.formValidate.cate_id,callback:function(e){t.$set(t.formValidate,"cate_id",e)},expression:"formValidate.cate_id"}})],1)],1),t._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"商户商品分类:",prop:"mer_cate_id"}},[a("el-cascader",{staticClass:"selWidth",attrs:{options:t.merCateList,props:t.propsMer,filterable:"",clearable:""},model:{value:t.formValidate.mer_cate_id,callback:function(e){t.$set(t.formValidate,"mer_cate_id",e)},expression:"formValidate.mer_cate_id"}})],1)],1),t._v(" "),t.labelList.length?a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"商品标签:"}},[a("el-select",{staticClass:"selWidth",attrs:{multiple:"",placeholder:"请选择"},model:{value:t.formValidate.mer_labels,callback:function(e){t.$set(t.formValidate,"mer_labels",e)},expression:"formValidate.mer_labels"}},t._l(t.labelList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1)],1)],1):t._e(),t._v(" "),a("el-col",t._b({},"el-col",t.grid2,!1),[a("el-form-item",{attrs:{label:"品牌选择:"}},[a("el-select",{staticClass:"selWidth",attrs:{filterable:"",placeholder:"请选择"},model:{value:t.formValidate.brand_id,callback:function(e){t.$set(t.formValidate,"brand_id",e)},expression:"formValidate.brand_id"}},t._l(t.BrandList,(function(t){return a("el-option",{key:t.brand_id,attrs:{label:t.brand_name,value:t.brand_id}})})),1)],1)],1),t._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"商品封面图:",prop:"image"}},[a("div",{staticClass:"upLoadPicBox",attrs:{title:"750*750px"},on:{click:function(e){return t.modalPicTap("1")}}},[t.formValidate.image?a("div",{staticClass:"pictrue"},[a("img",{attrs:{src:t.formValidate.image}})]):a("div",{staticClass:"upLoad"},[a("i",{staticClass:"el-icon-camera cameraIconfont"})])])])],1),t._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"商品轮播图:",prop:"slider_image"}},[a("div",{staticClass:"acea-row"},[t._l(t.formValidate.slider_image,(function(e,i){return a("div",{key:i,staticClass:"pictrue",attrs:{draggable:"false"},on:{dragstart:function(a){return t.handleDragStart(a,e)},dragover:function(a){return a.preventDefault(),t.handleDragOver(a,e)},dragenter:function(a){return t.handleDragEnter(a,e)},dragend:function(a){return t.handleDragEnd(a,e)}}},[a("img",{attrs:{src:e}}),t._v(" "),a("i",{staticClass:"el-icon-error btndel",on:{click:function(e){return t.handleRemove(i)}}})])})),t._v(" "),t.formValidate.slider_image.length<10?a("div",{staticClass:"uploadCont",attrs:{title:"750*750px"}},[a("div",{staticClass:"upLoadPicBox",on:{click:function(e){return t.modalPicTap("2")}}},[a("div",{staticClass:"upLoad"},[a("i",{staticClass:"el-icon-camera cameraIconfont"})])])]):t._e()],2)])],1),t._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"主图视频:",prop:"video_link"}},[a("el-input",{staticClass:"perW50",attrs:{placeholder:"请输入视频链接"},model:{value:t.videoLink,callback:function(e){t.videoLink=e},expression:"videoLink"}}),t._v(" "),a("input",{ref:"refid",staticStyle:{display:"none"},attrs:{type:"file"},on:{change:t.zh_uploadFile_change}}),t._v(" "),a("el-button",{staticClass:"uploadVideo",attrs:{type:"primary",icon:"ios-cloud-upload-outline"},on:{click:t.zh_uploadFile}},[t._v("\n "+t._s(t.videoLink?"确认添加":"上传视频")+"\n ")]),t._v(" "),a("el-col",{attrs:{span:12}},[t.upload.videoIng?a("el-progress",{staticStyle:{"margin-top":"10px"},attrs:{percentage:t.progress,"text-inside":!0,"stroke-width":20}}):t._e()],1),t._v(" "),a("el-col",{attrs:{span:24}},[t.formValidate.video_link?a("div",{staticClass:"iview-video-style"},[a("video",{staticStyle:{width:"100%",height:"100% !important","border-radius":"10px"},attrs:{src:t.formValidate.video_link,controls:"controls"}},[t._v("\n 您的浏览器不支持 video 标签。\n ")]),t._v(" "),a("div",{staticClass:"mark"}),t._v(" "),a("i",{staticClass:"el-icon-delete iconv",on:{click:t.delVideo}})]):t._e()])],1)],1),t._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"单位:",prop:"unit_name"}},[a("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入单位"},model:{value:t.formValidate.unit_name,callback:function(e){t.$set(t.formValidate,"unit_name",e)},expression:"formValidate.unit_name"}})],1)],1),t._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"商品关键字:"}},[a("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入商品关键字"},model:{value:t.formValidate.keyword,callback:function(e){t.$set(t.formValidate,"keyword",e)},expression:"formValidate.keyword"}})],1)],1),t._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"商品简介:",prop:"store_info"}},[a("el-input",{staticClass:"selWidth",attrs:{type:"textarea",rows:3,placeholder:"请输入商品简介"},model:{value:t.formValidate.store_info,callback:function(e){t.$set(t.formValidate,"store_info",e)},expression:"formValidate.store_info"}})],1)],1)],1):t._e(),t._v(" "),"2"==t.currentTab?a("el-row",[t._e(),t._v(" "),t._e(),t._v(" "),t._e(),t._v(" "),1===t.formValidate.spec_type?a("el-col",{staticClass:"noForm",attrs:{span:24}},[a("el-form-item",{attrs:{label:"选择规格:"}},[a("div",{staticClass:"acea-row"},[a("el-select",{model:{value:t.selectRule,callback:function(e){t.selectRule=e},expression:"selectRule"}},t._l(t.ruleList,(function(t){return a("el-option",{key:t.attr_template_id,attrs:{label:t.template_name,value:t.attr_template_id}})})),1),t._v(" "),a("el-button",{staticClass:"ml15",attrs:{type:"primary",size:"small"},on:{click:t.confirm}},[t._v("确认")]),t._v(" "),a("el-button",{staticClass:"ml15",attrs:{size:"small"},on:{click:t.addRule}},[t._v("添加规格模板")])],1)]),t._v(" "),t.formValidate.attr.length>0?a("el-form-item",t._l(t.formValidate.attr,(function(e,i){return a("div",{key:i},[a("div",{staticClass:"acea-row row-middle"},[a("span",{staticClass:"mr5"},[t._v(t._s(e.value))]),t._v(" "),a("i",{staticClass:"el-icon-circle-close",on:{click:function(e){return t.handleRemoveAttr(i)}}})]),t._v(" "),a("div",{staticClass:"rulesBox"},[t._l(e.detail,(function(i,r){return a("el-tag",{key:r,staticClass:"mb5 mr10",attrs:{closable:"",size:"medium","disable-transitions":!1},on:{close:function(a){return t.handleClose(e.detail,r)}}},[t._v(t._s(i)+"\n ")])})),t._v(" "),e.inputVisible?a("el-input",{ref:"saveTagInput",refInFor:!0,staticClass:"input-new-tag",attrs:{size:"small"},on:{blur:function(a){return t.createAttr(e.detail.attrsVal,i)}},nativeOn:{keyup:function(a){return!a.type.indexOf("key")&&t._k(a.keyCode,"enter",13,a.key,"Enter")?null:t.createAttr(e.detail.attrsVal,i)}},model:{value:e.detail.attrsVal,callback:function(a){t.$set(e.detail,"attrsVal",a)},expression:"item.detail.attrsVal"}}):a("el-button",{staticClass:"button-new-tag",attrs:{size:"small"},on:{click:function(a){return t.showInput(e)}}},[t._v("+ 添加")])],2)])})),0):t._e(),t._v(" "),t.isBtn?a("el-col",[a("el-col",{attrs:{xl:6,lg:9,md:9,sm:24,xs:24}},[a("el-form-item",{attrs:{label:"规格:"}},[a("el-input",{attrs:{placeholder:"请输入规格"},model:{value:t.formDynamic.attrsName,callback:function(e){t.$set(t.formDynamic,"attrsName",e)},expression:"formDynamic.attrsName"}})],1)],1),t._v(" "),a("el-col",{attrs:{xl:6,lg:9,md:9,sm:24,xs:24}},[a("el-form-item",{attrs:{label:"规格值:"}},[a("el-input",{attrs:{placeholder:"请输入规格值"},model:{value:t.formDynamic.attrsVal,callback:function(e){t.$set(t.formDynamic,"attrsVal",e)},expression:"formDynamic.attrsVal"}})],1)],1),t._v(" "),a("el-col",{attrs:{xl:12,lg:6,md:6,sm:24,xs:24}},[a("el-form-item",{staticClass:"noLeft"},[a("el-button",{staticClass:"mr15",attrs:{type:"primary"},on:{click:t.createAttrName}},[t._v("确定")]),t._v(" "),a("el-button",{on:{click:t.offAttrName}},[t._v("取消")])],1)],1)],1):t._e(),t._v(" "),t.isBtn?t._e():a("el-form-item",[a("el-button",{staticClass:"mr15",attrs:{type:"primary",icon:"md-add"},on:{click:t.addBtn}},[t._v("添加新规格")])],1)],1):t._e(),t._v(" "),1===t.formValidate.spec_type&&t.formValidate.attr.length>0?a("el-col",{staticClass:"noForm",attrs:{span:24}},[a("el-form-item",{staticClass:"labeltop",attrs:{label:"批量设置:"}},[a("el-table",{staticClass:"tabNumWidth",attrs:{data:t.oneFormBatch,border:"",size:"mini"}},[a("el-table-column",{attrs:{align:"center",label:"图片","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"upLoadPicBox",attrs:{title:"750*750px"},on:{click:function(e){return t.modalPicTap("1","pi")}}},[e.row.image?a("div",{staticClass:"pictrue tabPic"},[a("img",{attrs:{src:e.row.image}})]):a("div",{staticClass:"upLoad tabPic"},[a("i",{staticClass:"el-icon-camera cameraIconfont"})])])]}}],null,!1,772438934)}),t._v(" "),t._l(t.attrValue,(function(e,i){return a("el-table-column",{key:i,attrs:{label:t.formThead[i].title,align:"center","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[0!=t.formValidate.svip_price_type?a("div",["付费会员价"===t.formThead[i].title?a("el-input",{staticClass:"priceBox",attrs:{disabled:1==t.formValidate.svip_price_type,"controls-position":"right"},model:{value:e.row[i],callback:function(a){t.$set(e.row,i,a)},expression:"scope.row[iii]"}}):t._e(),t._v(" "),"商品条码"===t.formThead[i].title?a("el-input",{staticClass:"priceBox",attrs:{type:"text"},model:{value:e.row[i],callback:function(a){t.$set(e.row,i,a)},expression:"scope.row[iii]"}}):t._e(),t._v(" "),"付费会员价"!==t.formThead[i].title&&"商品条码"!==t.formThead[i].title?a("el-input",{staticClass:"priceBox",attrs:{type:"number",min:"0","controls-position":"right"},on:{blur:function(a){return t.memberPrice(t.formThead[i],e.row)}},model:{value:e.row[i],callback:function(a){t.$set(e.row,i,a)},expression:"scope.row[iii]"}}):t._e()],1):a("div",["商品条码"===t.formThead[i].title?a("el-input",{staticClass:"priceBox",attrs:{type:"text"},model:{value:e.row[i],callback:function(a){t.$set(e.row,i,a)},expression:"scope.row[iii]"}}):a("el-input",{staticClass:"priceBox",attrs:{type:"number",min:"0","controls-position":"right"},model:{value:e.row[i],callback:function(a){t.$set(e.row,i,a)},expression:"scope.row[iii]"}})],1)]}}],null,!0)})})),t._v(" "),1===t.formValidate.extension_type?[a("el-table-column",{attrs:{align:"center",label:"一级返佣(元)","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-input-number",{staticClass:"priceBox",attrs:{min:0,"controls-position":"right"},model:{value:e.row.extension_one,callback:function(a){t.$set(e.row,"extension_one",a)},expression:"scope.row.extension_one"}})]}}],null,!1,1308693019)}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"二级返佣(元)","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-input-number",{staticClass:"priceBox",attrs:{min:0,"controls-position":"right"},model:{value:e.row.extension_two,callback:function(a){t.$set(e.row,"extension_two",a)},expression:"scope.row.extension_two"}})]}}],null,!1,899977843)})]:t._e(),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"操作","min-width":"80"}},[[a("el-button",{staticClass:"submission",attrs:{type:"text"},on:{click:t.batchAdd}},[t._v("批量添加")])]],2)],2)],1)],1):t._e(),t._v(" "),a("el-col",{attrs:{xl:24,lg:24,md:24,sm:24,xs:24}},[0===t.formValidate.spec_type?a("el-form-item",[a("el-table",{staticClass:"tabNumWidth",attrs:{data:t.OneattrValue,border:"",size:"mini"}},[a("el-table-column",{attrs:{align:"center",label:"图片","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"upLoadPicBox",on:{click:function(e){return t.modalPicTap("1","dan","pi")}}},[t.formValidate.image?a("div",{staticClass:"pictrue tabPic"},[a("img",{attrs:{src:e.row.image}})]):a("div",{staticClass:"upLoad tabPic"},[a("i",{staticClass:"el-icon-camera cameraIconfont"})])])]}}],null,!1,1357914119)}),t._v(" "),t._l(t.attrValue,(function(e,i){return a("el-table-column",{key:i,attrs:{label:t.formThead[i].title,align:"center","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[0!=t.formValidate.svip_price_type?a("div",["付费会员价"===t.formThead[i].title?a("el-input-number",{staticClass:"priceBox",attrs:{min:0,disabled:1==t.formValidate.svip_price_type,"controls-position":"right"},model:{value:e.row[i],callback:function(a){t.$set(e.row,i,a)},expression:"scope.row[iii]"}}):t._e(),t._v(" "),"商品条码"===t.formThead[i].title?a("el-input",{staticClass:"priceBox",attrs:{type:"text"},model:{value:e.row[i],callback:function(a){t.$set(e.row,i,a)},expression:"scope.row[iii]"}}):t._e(),t._v(" "),"付费会员价"!==t.formThead[i].title&&"商品条码"!==t.formThead[i].title?a("el-input-number",{staticClass:"priceBox",attrs:{min:0,"controls-position":"right"},model:{value:e.row[i],callback:function(a){t.$set(e.row,i,a)},expression:"scope.row[iii]"}}):t._e()],1):a("div",["商品条码"===t.formThead[i].title?a("el-input",{staticClass:"priceBox",attrs:{type:"text"},model:{value:e.row[i],callback:function(a){t.$set(e.row,i,a)},expression:"scope.row[iii]"}}):a("el-input-number",{staticClass:"priceBox",attrs:{min:0,"controls-position":"right"},model:{value:e.row[i],callback:function(a){t.$set(e.row,i,a)},expression:"scope.row[iii]"}})],1)]}}],null,!0)})})),t._v(" "),1===t.formValidate.extension_type?[a("el-table-column",{attrs:{align:"center",label:"一级返佣(元)","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-input-number",{staticClass:"priceBox",attrs:{min:0,"controls-position":"right"},model:{value:e.row.extension_one,callback:function(a){t.$set(e.row,"extension_one",a)},expression:"scope.row.extension_one"}})]}}],null,!1,1308693019)}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"二级返佣(元)","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-input-number",{staticClass:"priceBox",attrs:{min:0,"controls-position":"right"},model:{value:e.row.extension_two,callback:function(a){t.$set(e.row,"extension_two",a)},expression:"scope.row.extension_two"}})]}}],null,!1,899977843)})]:t._e()],2)],1):t._e(),t._v(" "),1===t.formValidate.spec_type&&t.formValidate.attr.length>0?a("el-form-item",{staticClass:"labeltop",attrs:{label:"规格列表:"}},[a("el-table",{staticClass:"tabNumWidth",attrs:{data:t.ManyAttrValue,border:"",size:"mini"}},[t.manyTabDate?t._l(t.manyTabDate,(function(e,i){return a("el-table-column",{key:i,attrs:{align:"center",label:t.manyTabTit[i].title,"min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{staticClass:"priceBox",domProps:{textContent:t._s(e.row[i])}})]}}],null,!0)})})):t._e(),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"图片","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"upLoadPicBox",attrs:{title:"750*750px"},on:{click:function(a){return t.modalPicTap("1","duo",e.$index)}}},[e.row.image?a("div",{staticClass:"pictrue tabPic"},[a("img",{attrs:{src:e.row.image}})]):a("div",{staticClass:"upLoad tabPic"},[a("i",{staticClass:"el-icon-camera cameraIconfont"})])])]}}],null,!1,1344940579)}),t._v(" "),t._l(t.attrValue,(function(e,i){return a("el-table-column",{key:i,attrs:{label:t.formThead[i].title,align:"center","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[0!=t.formValidate.svip_price_type?a("div",["付费会员价"===t.formThead[i].title?a("el-input-number",{staticClass:"priceBox",attrs:{min:0,disabled:1==t.formValidate.svip_price_type,"controls-position":"right"},model:{value:e.row[i],callback:function(a){t.$set(e.row,i,a)},expression:"scope.row[iii]"}}):t._e(),t._v(" "),"商品条码"===t.formThead[i].title?a("el-input",{staticClass:"priceBox",attrs:{type:"text"},model:{value:e.row[i],callback:function(a){t.$set(e.row,i,a)},expression:"scope.row[iii]"}}):t._e(),t._v(" "),"付费会员价"!==t.formThead[i].title&&"商品条码"!==t.formThead[i].title?a("el-input-number",{staticClass:"priceBox",attrs:{min:0,"controls-position":"right"},model:{value:e.row[i],callback:function(a){t.$set(e.row,i,a)},expression:"scope.row[iii]"}}):t._e()],1):a("div",["商品条码"===t.formThead[i].title?a("el-input",{staticClass:"priceBox",attrs:{type:"text"},model:{value:e.row[i],callback:function(a){t.$set(e.row,i,a)},expression:"scope.row[iii]"}}):a("el-input-number",{staticClass:"priceBox",attrs:{min:0,"controls-position":"right"},model:{value:e.row[i],callback:function(a){t.$set(e.row,i,a)},expression:"scope.row[iii]"}})],1)]}}],null,!0)})})),t._v(" "),1===t.formValidate.extension_type?[a("el-table-column",{key:"1",attrs:{align:"center",label:"一级返佣(元)","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-input-number",{staticClass:"priceBox",attrs:{min:0,"controls-position":"right"},model:{value:e.row.extension_one,callback:function(a){t.$set(e.row,"extension_one",a)},expression:"scope.row.extension_one"}})]}}],null,!1,1308693019)}),t._v(" "),a("el-table-column",{key:"2",attrs:{align:"center",label:"二级返佣(元)","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-input-number",{staticClass:"priceBox",attrs:{min:0,"controls-position":"right"},model:{value:e.row.extension_two,callback:function(a){t.$set(e.row,"extension_two",a)},expression:"scope.row.extension_two"}})]}}],null,!1,899977843)})]:t._e(),t._v(" "),a("el-table-column",{key:"3",attrs:{align:"center",label:"操作","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{staticClass:"submission",attrs:{type:"text"},on:{click:function(a){return t.delAttrTable(e.$index)}}},[t._v("删除")])]}}],null,!1,2803824461)})],2)],1):t._e()],1)],1):t._e(),t._v(" "),"3"==t.currentTab?a("el-row",[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"商品详情:"}},[a("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入商品详情",type:"textarea"},model:{value:t.formValidate.content.title,callback:function(e){t.$set(t.formValidate.content,"title",e)},expression:"formValidate.content.title"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"商品图片:"}},[a("div",{staticClass:"upLoadPicBox",attrs:{title:"750*750px"},on:{click:function(e){return t.modalPicTap("3")}}},[t._l(t.formValidate.content.image,(function(e,i){return a("div",{key:i+e,staticClass:"pictrue details_pictrue",on:{click:function(e){return e.stopPropagation(),t.deleteContentImg(i)}}},[a("img",{key:i,attrs:{src:e}})])})),t._v(" "),a("div",{staticClass:"upLoad details_pictrue"},[a("i",{staticClass:"el-icon-camera cameraIconfont"})])],2)])],1)],1):t._e(),t._v(" "),"4"==t.currentTab?a("el-row",[t.deliveryList.length>0?a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"送货方式:",prop:"delivery_way"}},[a("div",{staticClass:"acea-row"},[a("el-checkbox-group",{model:{value:t.formValidate.delivery_way,callback:function(e){t.$set(t.formValidate,"delivery_way",e)},expression:"formValidate.delivery_way"}},t._l(t.deliveryList,(function(e){return a("el-checkbox",{key:e.value,attrs:{label:e.value}},[t._v("\n "+t._s(e.name)+"\n ")])})),1)],1)])],1):t._e()],1):t._e(),t._v(" "),a("el-form-item",{staticStyle:{"margin-top":"30px"}},[a("el-button",{directives:[{name:"show",rawName:"v-show",value:t.currentTab>1,expression:"currentTab > 1"}],staticClass:"submission",attrs:{type:"primary",size:"small"},on:{click:t.handleSubmitUp}},[t._v("上一步\n ")]),t._v(" "),a("el-button",{directives:[{name:"show",rawName:"v-show",value:t.currentTab<4,expression:"currentTab < 4"}],staticClass:"submission",attrs:{type:"primary",size:"small"},on:{click:function(e){return t.handleSubmitNest("formValidate")}}},[t._v("下一步\n ")]),t._v(" "),a("el-button",{directives:[{name:"show",rawName:"v-show",value:"4"==t.currentTab||t.$route.params.id,expression:"currentTab == '4' || $route.params.id"}],staticClass:"submission",attrs:{loading:t.loading,type:"primary",size:"small"},on:{click:function(e){return t.handleSubmit("formValidate")}}},[t._v("提交\n ")]),t._v(" "),a("el-button",{staticClass:"submission",attrs:{loading:t.loading,type:"primary",size:"small"},on:{click:function(e){return t.handlePreview("formValidate")}}},[t._v("预览\n ")])],1)],1)],1),t._v(" "),a("guarantee-service",{ref:"serviceGuarantee",on:{"get-list":t.getGuaranteeList}}),t._v(" "),t.previewVisible?a("div",[a("div",{staticClass:"bg",on:{click:function(e){e.stopPropagation(),t.previewVisible=!1}}}),t._v(" "),t.previewVisible?a("preview-box",{ref:"previewBox",attrs:{"preview-key":t.previewKey}}):t._e()],1):t._e(),t._v(" "),a("tao-bao",{ref:"taoBao",on:{"info-data":t.infoData}})],1)},r=[],n=(a("456d"),a("c7eb")),o=(a("96cf"),a("1da1")),s=(a("a481"),a("c5f6"),a("b85c")),l=(a("7f7f"),a("ade3")),c=(a("28a5"),a("8615"),a("55dd"),a("ac6a"),a("6762"),a("2fdb"),a("6b54"),a("2909")),u=a("ef0d"),d=a("6625"),m=a.n(d),p=(a("aa47"),a("c4c8")),f=a("83d6"),h=a("ae43"),g=a("8c98"),_=a("bbcc"),v=a("5f87"),b=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"Box"},[t.modals?a("el-dialog",{attrs:{visible:t.modals,width:"70%",title:"商品采集","custom-class":"dialog-scustom"},on:{"update:visible":function(e){t.modals=e}}},[a("el-card",[a("div",[t._v("复制淘宝、天猫、京东、苏宁、1688;")]),t._v("\n 生成的商品默认是没有上架的,请手动上架商品!\n "),a("span",{staticStyle:{color:"rgb(237, 64, 20)"}},[t._v("商品复制次数剩余:"+t._s(t.count)+"次")]),t._v(" "),a("router-link",{attrs:{to:{path:t.roterPre+"/setting/sms/sms_pay/index?type=copy"}}},[a("el-button",{attrs:{size:"small",type:"text"}},[t._v("增加采集次数")])],1),t._v(" "),a("el-button",{staticStyle:{"margin-left":"15px"},attrs:{size:"small",type:"primary"},on:{click:t.openRecords}},[t._v("查看商品复制记录")])],1),t._v(" "),a("el-form",{ref:"formValidate",staticClass:"formValidate mt20",attrs:{model:t.formValidate,rules:t.ruleInline,"label-width":"130px","label-position":"right"},nativeOn:{submit:function(t){t.preventDefault()}}},[a("el-form-item",{attrs:{label:"链接地址:"}},[a("el-input",{staticClass:"numPut",attrs:{search:"",placeholder:"请输入链接地址"},model:{value:t.soure_link,callback:function(e){t.soure_link=e},expression:"soure_link"}}),t._v(" "),a("el-button",{attrs:{loading:t.loading,size:"small",type:"primary"},on:{click:t.add}},[t._v("确定")])],1)],1)],1):t._e(),t._v(" "),a("copy-record",{ref:"copyRecord"})],1)},y=[],w=function(){var t=this,e=t.$createElement,a=t._self._c||e;return t.showRecord?a("el-dialog",{attrs:{title:"复制记录",visible:t.showRecord,width:"900px"},on:{"update:visible":function(e){t.showRecord=e}}},[a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}]},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"table",staticStyle:{width:"100%"},attrs:{data:t.tableData.data,size:"mini","highlight-current-row":""}},[a("el-table-column",{attrs:{label:"ID",prop:"mer_id","min-width":"50"}}),t._v(" "),a("el-table-column",{attrs:{label:"使用次数",prop:"num","min-width":"80"}}),t._v(" "),a("el-table-column",{attrs:{label:"复制商品平台名称",prop:"type","min-width":"120"}}),t._v(" "),a("el-table-column",{attrs:{label:"剩余次数",prop:"number","min-width":"80"}}),t._v(" "),a("el-table-column",{attrs:{label:"商品复制链接",prop:"info","min-width":"180"}}),t._v(" "),a("el-table-column",{attrs:{label:"操作时间",prop:"create_time","min-width":"120"}})],1),t._v(" "),a("div",{staticClass:"block"},[a("el-pagination",{attrs:{"page-sizes":[10,20],"page-size":t.tableFrom.limit,"current-page":t.tableFrom.page,layout:"total, sizes, prev, pager, next, jumper",total:t.tableData.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)],1)]):t._e()},V=[],x={name:"CopyRecord",data:function(){return{showRecord:!1,loading:!1,tableData:{data:[],total:0},tableFrom:{page:1,limit:10}}},methods:{getRecord:function(){var t=this;this.showRecord=!0,this.loading=!0,Object(p["Z"])(this.tableFrom).then((function(e){t.tableData.data=e.data.list,t.tableData.total=e.data.count,t.loading=!1})).catch((function(e){t.$message.error(e.message),t.listLoading=!1}))},pageChange:function(t){this.tableFrom.page=t,this.getRecord()},pageChangeLog:function(t){this.tableFromLog.page=t,this.getRecord()},handleSizeChange:function(t){this.tableFrom.limit=t,this.getRecord()}}},k=x,C=(a("f099"),a("2877")),$=Object(C["a"])(k,w,V,!1,null,"6d70337e",null),O=$.exports,B={store_name:"",cate_id:"",temp_id:"",type:0,guarantee_template_id:"",keyword:"",unit_name:"",store_info:"",image:"",slider_image:[],content:"",ficti:0,once_count:0,give_integral:0,is_show:0,price:0,cost:0,ot_price:0,stock:0,soure_link:"",attrs:[],items:[],delivery_way:[],mer_labels:[],delivery_free:0,spec_type:0,is_copoy:1,attrValue:[{image:"",price:0,cost:0,ot_price:0,stock:0,bar_code:"",weight:0,volume:0}]},L={price:{title:"售价"},cost:{title:"成本价"},ot_price:{title:"市场价"},stock:{title:"库存"},bar_code:{title:"商品编号"},weight:{title:"重量(KG)"},volume:{title:"体积(m³)"}},T={name:"CopyTaoBao",components:{ueditorFrom:u["a"],copyRecord:O},data:function(){var t=_["a"].https+"/upload/image/0/file?ueditor=1&token="+Object(v["a"])();return{roterPre:f["roterPre"],modals:!1,loading:!1,loading1:!1,BaseURL:_["a"].https||"http://localhost:8080",OneattrValue:[Object.assign({},B.attrValue[0])],ManyAttrValue:[Object.assign({},B.attrValue[0])],columnsBatch:[{title:"图片",slot:"image",align:"center",minWidth:80},{title:"售价",slot:"price",align:"center",minWidth:95},{title:"成本价",slot:"cost",align:"center",minWidth:95},{title:"市场价",slot:"ot_price",align:"center",minWidth:95},{title:"库存",slot:"stock",align:"center",minWidth:95},{title:"商品编号",slot:"bar_code",align:"center",minWidth:120},{title:"重量(KG)",slot:"weight",align:"center",minWidth:95},{title:"体积(m³)",slot:"volume",align:"center",minWidth:95}],manyTabDate:{},count:0,modal_loading:!1,images:"",soure_link:"",modalPic:!1,isChoice:"",gridPic:{xl:6,lg:8,md:12,sm:12,xs:12},gridBtn:{xl:4,lg:8,md:8,sm:8,xs:8},columns:[],virtual:[{tit:"普通商品",id:0,tit2:"物流发货"},{tit:"虚拟商品",id:1,tit2:"虚拟发货"}],categoryList:[],merCateList:[],BrandList:[],propsMer:{emitPath:!1,multiple:!0},tableFrom:{mer_cate_id:"",cate_id:"",keyword:"",type:"1",is_gift_bag:""},ruleInline:{cate_id:[{required:!0,message:"请选择商品分类",trigger:"change"}],mer_cate_id:[{required:!0,message:"请选择商户分类",trigger:"change",type:"array",min:"1"}],temp_id:[{required:!0,message:"请选择运费模板",trigger:"change",type:"number"}],brand_id:[{required:!0,message:"请选择品牌",trigger:"change"}],store_info:[{required:!0,message:"请输入商品简介",trigger:"blur"}],delivery_way:[{required:!0,message:"请选择送货方式",trigger:"change"}]},grid:{xl:8,lg:8,md:12,sm:24,xs:24},grid2:{xl:12,lg:12,md:12,sm:24,xs:24},myConfig:{autoHeightEnabled:!1,initialFrameHeight:500,initialFrameWidth:"100%",UEDITOR_HOME_URL:"/UEditor/",serverUrl:t,imageUrl:t,imageFieldName:"file",imageUrlPrefix:"",imageActionName:"upfile",imageMaxSize:2048e3,imageAllowFiles:[".png",".jpg",".jpeg",".gif",".bmp"]},formThead:Object.assign({},L),formValidate:Object.assign({},B),items:[{image:"",price:0,cost:0,ot_price:0,stock:0,bar_code:"",weight:0,volume:0}],shippingList:[],guaranteeList:[],isData:!1,artFrom:{type:"taobao",url:""},tableIndex:0,labelPosition:"right",labelWidth:"120",isMore:"",taoBaoStatus:{},attrInfo:{},labelList:[],oneFormBatch:[{image:"",price:0,cost:0,ot_price:0,stock:0,bar_code:"",weight:0,volume:0}]}},computed:{attrValue:function(){var t=Object.assign({},B.attrValue[0]);return delete t.image,t}},watch:{},created:function(){},mounted:function(){this.getCopyCount()},methods:{getLabelLst:function(){var t=this;Object(p["v"])().then((function(e){t.labelList=e.data})).catch((function(e){t.$message.error(e.message)}))},getCopyCount:function(){var t=this;Object(p["Y"])().then((function(e){t.count=e.data.count}))},openRecords:function(){this.$refs.copyRecord.getRecord()},batchDel:function(){this.oneFormBatch=[{image:"",price:0,cost:0,ot_price:0,stock:0,bar_code:"",weight:0,volume:0}]},batchAdd:function(){var t,e=Object(s["a"])(this.ManyAttrValue);try{for(e.s();!(t=e.n()).done;){var a=t.value;this.$set(a,"image",this.oneFormBatch[0].image),this.$set(a,"price",this.oneFormBatch[0].price),this.$set(a,"cost",this.oneFormBatch[0].cost),this.$set(a,"ot_price",this.oneFormBatch[0].ot_price),this.$set(a,"stock",this.oneFormBatch[0].stock),this.$set(a,"bar_code",this.oneFormBatch[0].bar_code),this.$set(a,"weight",this.oneFormBatch[0].weight),this.$set(a,"volume",this.oneFormBatch[0].volume),this.$set(a,"extension_one",this.oneFormBatch[0].extension_one),this.$set(a,"extension_two",this.oneFormBatch[0].extension_two)}}catch(i){e.e(i)}finally{e.f()}},delAttrTable:function(t){this.ManyAttrValue.splice(t,1)},productGetTemplate:function(){var t=this;Object(p["wb"])().then((function(e){t.shippingList=e.data}))},getGuaranteeList:function(){var t=this;Object(p["B"])().then((function(e){t.guaranteeList=e.data}))},handleRemove:function(t){this.formValidate.slider_image.splice(t,1)},checked:function(t,e){this.formValidate.image=t},goodsCategory:function(){var t=this;Object(p["q"])().then((function(e){t.categoryList=e.data})).catch((function(e){t.$message.error(e.message)}))},getCategorySelect:function(){var t=this;Object(p["r"])().then((function(e){t.merCateList=e.data})).catch((function(e){t.$message.error(e.message)}))},getBrandListApi:function(){var t=this;Object(p["p"])().then((function(e){t.BrandList=e.data})).catch((function(e){t.$message.error(e.message)}))},virtualbtn:function(t,e){this.formValidate.type=t,this.productCon()},watCh:function(t){var e=this,a={},i={};this.formValidate.attr.forEach((function(t,e){a["value"+e]={title:t.value},i["value"+e]=""})),this.ManyAttrValue=this.attrFormat(t),console.log(this.ManyAttrValue),this.ManyAttrValue.forEach((function(t,a){var i=Object.values(t.detail).sort().join("/");e.attrInfo[i]&&(e.ManyAttrValue[a]=e.attrInfo[i]),t.image=e.formValidate.image})),this.attrInfo={},this.ManyAttrValue.forEach((function(t){"undefined"!==t.detail&&null!==t.detail&&(e.attrInfo[Object.values(t.detail).sort().join("/")]=t)})),this.manyTabTit=a,this.manyTabDate=i,this.formThead=Object.assign({},this.formThead,a)},attrFormat:function(t){var e=[],a=[];return i(t);function i(t){if(t.length>1)t.forEach((function(i,r){0===r&&(e=t[r]["detail"]);var n=[];e.forEach((function(e){t[r+1]&&t[r+1]["detail"]&&t[r+1]["detail"].forEach((function(i){var o=(0!==r?"":t[r]["value"]+"_$_")+e+"-$-"+t[r+1]["value"]+"_$_"+i;if(n.push(o),r===t.length-2){var s={image:"",price:0,cost:0,ot_price:0,stock:0,bar_code:"",weight:0,volume:0,brokerage:0,brokerage_two:0};o.split("-$-").forEach((function(t,e){var a=t.split("_$_");s["detail"]||(s["detail"]={}),s["detail"][a[0]]=a.length>1?a[1]:""})),Object.values(s.detail).forEach((function(t,e){s["value"+e]=t})),a.push(s)}}))})),e=n.length?n:[]}));else{var i=[];t.forEach((function(t,e){t["detail"].forEach((function(e,r){i[r]=t["value"]+"_"+e,a[r]={image:"",price:0,cost:0,ot_price:0,stock:0,bar_code:"",weight:0,volume:0,brokerage:0,brokerage_two:0,detail:Object(l["a"])({},t["value"],e)},Object.values(a[r].detail).forEach((function(t,e){a[r]["value"+e]=t}))}))})),e.push(i.join("$&"))}return console.log(a),a}},add:function(){var t=this;if(this.soure_link){var e=/(http|ftp|https):\/\/[\w\-_]+(\.[\w\-_]+)+([\w\-\.,@?^=%&:/~\+#]*[\w\-\@?^=%&/~\+#])?/;if(!e.test(this.soure_link))return this.$message.warning("请输入以http开头的地址!");this.artFrom.url=this.soure_link,this.loading=!0,Object(p["s"])(this.artFrom).then((function(e){var a=e.data;t.modals=!1,t.$emit("info-data",a)})).catch((function(e){t.$message.error(e.message),t.loading=!1}))}else this.$message.warning("请输入链接地址!")},handleSubmit:function(t){var e=this;this.$refs[t].validate((function(t){t?(e.modal_loading=!0,e.formValidate.cate_id=e.formValidate.cate_id instanceof Array?e.formValidate.cate_id.pop():e.formValidate.cate_id,e.formValidate.once_count=e.formValidate.once_count||0,1==e.formValidate.spec_type?e.formValidate.attrValue=e.ManyAttrValue:(e.formValidate.attrValue=e.OneattrValue,e.formValidate.attr=[]),e.formValidate.is_copoy=1,e.loading1=!0,Object(p["X"])(e.formValidate).then((function(t){e.$message.success("商品默认为不上架状态请手动上架商品!"),e.loading1=!1,setTimeout((function(){e.modal_loading=!1}),500),setTimeout((function(){e.modals=!1}),600),e.$emit("getSuccess")})).catch((function(t){e.modal_loading=!1,e.$message.error(t.message),e.loading1=!1}))):e.formValidate.cate_id||e.$message.warning("请填写商品分类!")}))},modalPicTap:function(t,e,a){this.tableIndex=a;var i=this;this.$modalUpload((function(e){console.log(i.formValidate.attr[i.tableIndex]),"1"===t&&("pi"===a?i.oneFormBatch[0].image=e[0]:i.OneattrValue[0].image=e[0]),"2"===t&&(i.ManyAttrValue[i.tableIndex].image=e[0]),i.modalPic=!1}),t)},getPic:function(t){this.callback(t),this.formValidate.attr[this.tableIndex].pic=t.att_dir,this.modalPic=!1},handleDragStart:function(t,e){this.dragging=e},handleDragEnd:function(t,e){this.dragging=null},handleDragOver:function(t){t.dataTransfer.dropEffect="move"},handleDragEnter:function(t,e){if(t.dataTransfer.effectAllowed="move",e!==this.dragging){var a=Object(c["a"])(this.formValidate.slider_image),i=a.indexOf(this.dragging),r=a.indexOf(e);a.splice.apply(a,[r,0].concat(Object(c["a"])(a.splice(i,1)))),this.formValidate.slider_image=a}},addCustomDialog:function(t){window.UE.registerUI("test-dialog",(function(t,e){var a=new window.UE.ui.Dialog({iframeUrl:"/admin/widget.images/index.html?fodder=dialog",editor:t,name:e,title:"上传图片",cssRules:"width:1200px;height:500px;padding:20px;"});this.dialog=a;var i=new window.UE.ui.Button({name:"dialog-button",title:"上传图片",cssRules:"background-image: url(../../../assets/images/icons.png);background-position: -726px -77px;",onclick:function(){a.render(),a.open()}});return i}))}}},j=T,S=(a("c722"),Object(C["a"])(j,b,y,!1,null,"5245ffd2",null)),F=S.exports,D={image:"",slider_image:[],store_name:"",store_info:"",keyword:"",brand_id:"",cate_id:"",mer_cate_id:[],param_temp_id:[],unit_name:"",sort:0,once_max_count:0,is_good:0,temp_id:"",video_link:"",guarantee_template_id:"",delivery_way:[],mer_labels:[],delivery_free:0,pay_limit:0,once_min_count:0,svip_price_type:0,params:[],attrValue:[{image:"",price:null,cost:null,ot_price:null,svip_price:null,stock:null,bar_code:"",weight:null,volume:null}],attr:[],extension_type:0,integral_rate:-1,content:{title:"",image:[]},spec_type:0,give_coupon_ids:[],is_gift_bag:0,couponData:[],extend:[],type:0},A={price:{title:"售价"},cost:{title:"成本价"},ot_price:{title:"市场价"},svip_price:{title:"付费会员价"},stock:{title:"库存"},bar_code:{title:"商品条码"},weight:{title:"重量(KG)"},volume:{title:"体积(m³)"}},E=[{name:"店铺推荐",value:"is_good"}],P={name:"ProductProductAdd",components:{ueditorFrom:u["a"],VueUeditorWrap:m.a,guaranteeService:h["a"],previewBox:g["a"],taoBao:F,copyRecord:O},data:function(){var t=_["a"].https+"/upload/image/0/file?ueditor=1&token="+Object(v["a"])();return{myConfig:{autoHeightEnabled:!1,initialFrameHeight:500,initialFrameWidth:"100%",enableAutoSave:!1,UEDITOR_HOME_URL:"/UEditor/",serverUrl:t,imageUrl:t,imageFieldName:"file",imageUrlPrefix:"",imageActionName:"upfile",imageMaxSize:2048e3,imageAllowFiles:[".png",".jpg",".jpeg",".gif",".bmp"]},optionsCate:{value:"store_category_id",label:"cate_name",children:"children",emitPath:!1},roterPre:f["roterPre"],selectRule:"",checkboxGroup:[],recommend:E,tabs:[],fullscreenLoading:!1,props:{emitPath:!1},propsMer:{emitPath:!0},active:0,deduction_set:-1,OneattrValue:[Object.assign({},D.attrValue[0])],ManyAttrValue:[Object.assign({},D.attrValue[0])],ruleList:[],merCateList:[],categoryList:[],shippingList:[],guaranteeList:[],BrandList:[],deliveryList:[],labelList:[],formThead:Object.assign({},A),formValidate:Object.assign({},D),picValidate:!0,formDynamics:{template_name:"",template_value:[]},manyTabTit:{},manyTabDate:{},grid2:{xl:10,lg:12,md:12,sm:24,xs:24},formDynamic:{attrsName:"",attrsVal:""},isBtn:!1,manyFormValidate:[],images:[],currentTab:"1",isChoice:"",upload:{videoIng:!1},progress:10,videoLink:"",grid:{xl:8,lg:8,md:12,sm:24,xs:24},loading:!1,ruleValidate:{give_coupon_ids:[{required:!0,message:"请选择优惠券",trigger:"change",type:"array"}],store_name:[{required:!0,message:"请输入商品名称",trigger:"blur"}],mer_cate_id:[{required:!1,message:"请选择商户商品分类",trigger:"change"}],cate_id:[{required:!0,message:"请选择平台分类",trigger:"change"}],keyword:[{required:!0,message:"请输入商品关键字",trigger:"blur"}],unit_name:[{required:!0,message:"请输入单位",trigger:"blur"}],store_info:[{required:!1,message:"请输入商品简介",trigger:"blur"}],temp_id:[{required:!0,message:"请选择运费模板",trigger:"change"}],once_max_count:[{required:!0,message:"请输入限购数量",trigger:"change"}],image:[{required:!0,message:"请上传商品图",trigger:"change"}],slider_image:[{required:!0,message:"请上传商品轮播图",type:"array",trigger:"change"}],spec_type:[{required:!0,message:"请选择商品规格",trigger:"change"}],delivery_way:[{required:!0,message:"请选择送货方式",trigger:"change"}]},attrInfo:{},keyNum:0,extensionStatus:0,deductionStatus:0,previewVisible:!1,previewKey:"",deliveryType:[],virtual:[{tit:"普通商品",id:0,tit2:"物流发货"},{tit:"虚拟商品",id:1,tit2:"虚拟发货"}],customBtn:0,CustomList:[{value:"text",label:"文本框"},{value:"number",label:"数字"},{value:"email",label:"邮件"},{value:"date",label:"日期"},{value:"time",label:"时间"},{value:"idCard",label:"身份证"},{value:"mobile",label:"手机号"},{value:"image",label:"图片"}],customess:{content:[]},headTab:[{title:"商品信息",name:"1"},{title:"规格设置",name:"2"},{title:"商品详情",name:"3"},{title:"其他设置",name:"4"}],type:0,modals:!1,attrVal:{price:null,cost:null,ot_price:null,stock:null,bar_code:"",weight:null,volume:null},open_svip:!1,svip_rate:0,customSpecs:[],merSpecsSelect:[],sysSpecsSelect:[]}},computed:{attrValue:function(){var t=Object.assign({},this.attrVal);return t},oneFormBatch:function(){var t=[Object.assign({},D.attrValue[0])];return this.OneattrValue[0]&&this.OneattrValue[0]["image"]&&(t[0]["image"]=this.OneattrValue[0]["image"]),delete t[0].bar_code,t}},watch:{"formValidate.attr":{handler:function(t){1===this.formValidate.spec_type&&this.watCh(t)},immediate:!1,deep:!0},currentTab:function(t){var e=this;4==t&&this.$nextTick((function(t){e.setSort()}))}},created:function(){this.tempRoute=Object.assign({},this.$route),this.$route.params.id&&1===this.formValidate.spec_type&&this.$watch("formValidate.attr",this.watCh)},mounted:function(){var t=this;this.formValidate.slider_image=[],this.$route.params.id?(this.setTagsViewTitle(),this.getInfo()):(this.getSpecsLst(this.formValidate.cate_id),-1==this.deduction_set&&(this.formValidate.integral_rate=-1)),this.formValidate.attr.map((function(e){t.$set(e,"inputVisible",!1)})),1==this.$route.query.type?(this.type=this.$route.query.type,this.$refs.taoBao.modals=!0):this.type=0,this.getCategorySelect(),this.getCategoryList(),this.getBrandListApi(),this.getShippingList(),this.getGuaranteeList(),this.productCon(),this.productGetRule(),this.getLabelLst(),this.$store.dispatch("settings/setEdit",!0)},destroyed:function(){window.removeEventListener("popstate",this.goBack,!1)},methods:{setSort:function(){},elChangeExForArray:function(t,e,a){var i=a[t];return a[t]=a[e],a[e]=i,a},goBack:function(){sessionStorage.clear(),window.history.back()},handleCloseCoupon:function(t){var e=this;this.formValidate.couponData.splice(this.formValidate.couponData.indexOf(t),1),this.formValidate.give_coupon_ids=[],this.formValidate.couponData.map((function(t){e.formValidate.give_coupon_ids.push(t.coupon_id)}))},getSpecsLst:function(t){var e=this,a=t||this.formValidate.cate_id;Object(p["zb"])({cate_id:a}).then((function(t){e.merSpecsSelect=t.data.mer,e.sysSpecsSelect=t.data.sys})).catch((function(t){e.$message.error(t.message)}))},productCon:function(){var t=this;Object(p["W"])().then((function(e){t.extensionStatus=e.data.extension_status,t.deductionStatus=e.data.integral_status,t.deliveryType=e.data.delivery_way.map(String),t.open_svip=1==e.data.mer_svip_status&&1==e.data.svip_switch_status,t.svip_rate=e.data.svip_store_rate;var a=0==t.formValidate.type?"快递配送":"虚拟发货";t.$route.params.id||(t.formValidate.delivery_way=t.deliveryType),2==t.deliveryType.length?t.deliveryList=[{value:"1",name:"到店自提"},{value:"2",name:a}]:1==t.deliveryType.length&&"1"==t.deliveryType[0]?t.deliveryList=[{value:"1",name:"到店自提"}]:t.deliveryList=[{value:"2",name:a}]})).catch((function(e){t.$message.error(e.message)}))},getLabelLst:function(){var t=this;Object(p["v"])().then((function(e){t.labelList=e.data})).catch((function(e){t.$message.error(e.message)}))},addCoupon:function(){var t=this;this.$modalCoupon(this.formValidate.couponData,"wu",t.formValidate.give_coupon_ids,this.keyNum+=1,(function(e){t.formValidate.give_coupon_ids=[],t.formValidate.couponData=e,e.map((function(e){t.formValidate.give_coupon_ids.push(e.coupon_id)}))}))},delSpecs:function(t){this.formValidate.params.splice(t,1)},addSpecs:function(){this.formValidate.params.push({name:"",value:"",sort:0})},getSpecsList:function(){var t=this,e=Object(c["a"])(this.customSpecs),a=[this.formValidate.param_temp_id].concat(),i=[].concat(Object(c["a"])(e),Object(c["a"])(a));console.log(i),console.log(this.customSpecs),i.length<=0?(this.formValidate.merParams=[],this.formValidate.sysParams=[]):Object(p["ib"])({template_ids:i.toString()}).then((function(e){t.formValidate.params=e.data})).catch((function(e){t.$message.error(e.message)}))},setTagsViewTitle:function(){var t="编辑商品",e=Object.assign({},this.tempRoute,{title:"".concat(t,"-").concat(this.$route.params.id)});this.$store.dispatch("tagsView/updateVisitedView",e)},onChangeGroup:function(){this.checkboxGroup.includes("is_good")?this.formValidate.is_good=1:this.formValidate.is_good=0},watCh:function(t){var e=this,a={},i={};this.formValidate.attr.forEach((function(t,e){a["value"+e]={title:t.value},i["value"+e]=""})),this.ManyAttrValue=this.attrFormat(t),this.ManyAttrValue.forEach((function(t,a){var i=Object.values(t.detail).sort().join("/");e.attrInfo[i]&&(e.ManyAttrValue[a]=e.attrInfo[i])})),this.attrInfo={},this.ManyAttrValue.forEach((function(t){"undefined"!==t.detail&&null!==t.detail&&(e.attrInfo[Object.values(t.detail).sort().join("/")]=t)})),this.manyTabTit=a,this.manyTabDate=i,this.formThead=Object.assign({},this.formThead,a)},attrFormat:function(t){var e=[],a=[];return i(t);function i(t){if(t.length>1)t.forEach((function(i,r){0===r&&(e=t[r]["detail"]);var n=[];e.forEach((function(e){t[r+1]&&t[r+1]["detail"]&&t[r+1]["detail"].forEach((function(i){var o=(0!==r?"":t[r]["value"]+"_$_")+e+"-$-"+t[r+1]["value"]+"_$_"+i;if(n.push(o),r===t.length-2){var s={image:"",price:0,cost:0,ot_price:0,stock:0,bar_code:"",weight:0,volume:0,brokerage:0,brokerage_two:0};o.split("-$-").forEach((function(t,e){var a=t.split("_$_");s["detail"]||(s["detail"]={}),s["detail"][a[0]]=a.length>1?a[1]:""})),Object.values(s.detail).forEach((function(t,e){s["value"+e]=t})),a.push(s)}}))})),e=n.length?n:[]}));else{var i=[];t.forEach((function(t,e){t["detail"].forEach((function(e,r){i[r]=t["value"]+"_"+e,a[r]={image:"",price:0,cost:0,ot_price:0,stock:0,bar_code:"",weight:0,volume:0,brokerage:0,brokerage_two:0,detail:Object(l["a"])({},t["value"],e)},Object.values(a[r].detail).forEach((function(t,e){a[r]["value"+e]=t}))}))})),e.push(i.join("$&"))}return a}},addTem:function(){var t=this;this.$modalTemplates(0,(function(){t.getShippingList()}))},addServiceTem:function(){this.$refs.serviceGuarantee.add()},delVideo:function(){var t=this;t.$set(t.formValidate,"video_link","")},zh_uploadFile:function(){this.videoLink?this.formValidate.video_link=this.videoLink:this.$refs.refid.click()},zh_uploadFile_change:function(t){var e=this;e.progress=10;var a=t.target.files[0].name.substr(t.target.files[0].name.indexOf("."));if(".mp4"!==a)return e.$message.error("只能上传MP4文件");Object(p["db"])().then((function(a){e.$videoCloud.videoUpload({type:a.data.type,evfile:t,res:a,uploading:function(t,a){e.upload.videoIng=t}}).then((function(t){e.formValidate.video_link=t.url||t.data.src,e.$message.success("视频上传成功"),e.progress=100})).catch((function(t){e.upload.videoIng=!1,e.$message.error(t.message)}))}))},addRule:function(){var t=this;this.$modalAttr(this.formDynamics,(function(){t.productGetRule()}))},onChangeSpec:function(t){1===t&&this.productGetRule()},changeIntergral:function(t){this.formValidate.integral_rate=-1==t?-1:this.formValidate.integral_rate},confirm:function(){var t=this;if(!this.selectRule)return this.$message.warning("请选择属性");this.ruleList.forEach((function(e){e.attr_template_id===t.selectRule&&(t.formValidate.attr=e.template_value)}))},getCategorySelect:function(){var t=this;Object(p["r"])().then((function(e){t.merCateList=e.data})).catch((function(e){t.$message.error(e.message)}))},getCategoryList:function(){var t=this;Object(p["q"])().then((function(e){t.categoryList=e.data})).catch((function(e){t.$message.error(e.message)}))},getBrandListApi:function(){var t=this;Object(p["p"])().then((function(e){t.BrandList=e.data})).catch((function(e){t.$message.error(e.message)}))},productGetRule:function(){var t=this;Object(p["Nb"])().then((function(e){t.ruleList=e.data}))},getShippingList:function(){var t=this;Object(p["wb"])().then((function(e){t.shippingList=e.data}))},getGuaranteeList:function(){var t=this;Object(p["B"])().then((function(e){t.guaranteeList=e.data}))},showInput:function(t){this.$set(t,"inputVisible",!0)},virtualbtn:function(t,e){if(this.$route.params.id)return this.$message.warning("商品类型不能切换!");this.formValidate.type=t,this.productCon()},customMessBtn:function(t){t||(this.formValidate.extend=[])},addcustom:function(){this.formValidate.extend.length>9?this.$message.warning("最多添加10条"):this.formValidate.extend.push({title:"",key:"text",value:"",require:!1})},delcustom:function(t){this.formValidate.extend.splice(t,1)},onChangetype:function(t){var e=this;1===t?(this.OneattrValue.map((function(t){e.$set(t,"extension_one",null),e.$set(t,"extension_two",null)})),this.ManyAttrValue.map((function(t){e.$set(t,"extension_one",null),e.$set(t,"extension_two",null)}))):(this.OneattrValue.map((function(t){delete t.extension_one,delete t.extension_two,e.$set(t,"extension_one",null),e.$set(t,"extension_two",null)})),this.ManyAttrValue.map((function(t){delete t.extension_one,delete t.extension_two})))},onChangeSpecs:function(t){if(1==t||2==t){this.attrVal={price:null,cost:null,ot_price:null,svip_price:null,stock:null,bar_code:"",weight:null,volume:null},this.OneattrValue[0]["svip_price"]=this.OneattrValue[0]["price"]?this.accMul(this.OneattrValue[0]["price"],this.svip_rate):0;var e,a=0,i=Object(s["a"])(this.ManyAttrValue);try{for(i.s();!(e=i.n()).done;){var r=e.value;a=r.price?this.accMul(r.price,this.svip_rate):0,this.$set(r,"svip_price",a)}}catch(n){i.e(n)}finally{i.f()}}else this.attrVal={price:null,cost:null,ot_price:null,stock:null,bar_code:"",weight:null,volume:null}},memberPrice:function(t,e){"售价"==t.title&&(e.svip_price=this.accMul(e.price,this.svip_rate))},accMul:function(t,e){var a=0,i=t.toString(),r=e.toString();try{a+=i.split(".")[1].length}catch(n){}try{a+=r.split(".")[1].length}catch(n){}return Number(i.replace(".",""))*Number(r.replace(".",""))/Math.pow(10,a)},delAttrTable:function(t){this.ManyAttrValue.splice(t,1)},batchAdd:function(){var t,e=Object(s["a"])(this.ManyAttrValue);try{for(e.s();!(t=e.n()).done;){var a=t.value;console.log(this.oneFormBatch[0]),""!=this.oneFormBatch[0].image&&this.$set(a,"image",this.oneFormBatch[0].image),null!=this.oneFormBatch[0].price&&this.$set(a,"price",this.oneFormBatch[0].price),null!=this.oneFormBatch[0].cost&&this.$set(a,"cost",this.oneFormBatch[0].cost),null!=this.oneFormBatch[0].ot_price&&this.$set(a,"ot_price",this.oneFormBatch[0].ot_price),null!=this.oneFormBatch[0].svip_price&&this.$set(a,"svip_price",this.oneFormBatch[0].svip_price),null!=this.oneFormBatch[0].stock&&this.$set(a,"stock",this.oneFormBatch[0].stock),null!=this.oneFormBatch[0].bar_code&&this.$set(a,"bar_code",this.oneFormBatch[0].bar_code),null!=this.oneFormBatch[0].weight&&this.$set(a,"weight",this.oneFormBatch[0].weight),null!=this.oneFormBatch[0].volume&&this.$set(a,"volume",this.oneFormBatch[0].volume),null!=this.oneFormBatch[0].extension_one&&this.$set(a,"extension_one",this.oneFormBatch[0].extension_one),null!=this.oneFormBatch[0].extension_two&&this.$set(a,"extension_two",this.oneFormBatch[0].extension_two)}}catch(i){e.e(i)}finally{e.f()}},addBtn:function(){this.clearAttr(),this.isBtn=!0},offAttrName:function(){this.isBtn=!1},clearAttr:function(){this.formDynamic.attrsName="",this.formDynamic.attrsVal=""},handleRemoveAttr:function(t){this.formValidate.attr.splice(t,1),this.manyFormValidate.splice(t,1)},handleClose:function(t,e){t.splice(e,1)},createAttrName:function(){if(this.formDynamic.attrsName&&this.formDynamic.attrsVal){var t={value:this.formDynamic.attrsName,detail:[this.formDynamic.attrsVal]};this.formValidate.attr.push(t);var e={};this.formValidate.attr=this.formValidate.attr.reduce((function(t,a){return!e[a.value]&&(e[a.value]=t.push(a)),t}),[]),this.clearAttr(),this.isBtn=!1}else this.$message.warning("请添加完整的规格!")},createAttr:function(t,e){if(t){this.formValidate.attr[e].detail.push(t);var a={};this.formValidate.attr[e].detail=this.formValidate.attr[e].detail.reduce((function(t,e){return!a[e]&&(a[e]=t.push(e)),t}),[]),this.formValidate.attr[e].inputVisible=!1}else this.$message.warning("请添加属性")},getInfo:function(){var t=this;this.fullscreenLoading=!0,Object(p["cb"])(this.$route.params.id).then(function(){var e=Object(o["a"])(Object(n["a"])().mark((function e(a){var i;return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:a.data.content_arr&&a.data.content_arr.length>0&&(a.data.content=a.data.content_arr),i=a.data,t.infoData(i),t.getSpecsLst(i.cate_id);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.fullscreenLoading=!1,t.$message.error(e.message)}))},infoData:function(t){var e=this;this.deduction_set=-1==t.integral_rate?-1:1,this.formValidate={image:t.image,attrValue:t.attrValue,slider_image:t.slider_image,store_name:t.store_name,store_info:t.store_info,keyword:t.keyword,params:t.params,param_temp_id:t.param_temp_id,brand_id:t.brand_id,cate_id:t.cate_id,mer_cate_id:t.mer_cate_id,unit_name:t.unit_name,sort:t.sort,once_max_count:t.once_max_count||1,once_min_count:t.once_min_count||0,is_good:t.is_good,temp_id:t.temp_id,guarantee_template_id:t.guarantee_template_id?t.guarantee_template_id:"",attr:t.attr,pay_limit:t.pay_limit||0,extension_type:t.extension_type,content:t.content,spec_type:Number(t.spec_type),give_coupon_ids:t.give_coupon_ids,is_gift_bag:t.is_gift_bag,couponData:t.coupon,video_link:t.video_link?t.video_link:"",integral_rate:t.integral_rate,delivery_way:t.delivery_way&&t.delivery_way.length?t.delivery_way.map(String):this.deliveryType,delivery_free:t.delivery_free?t.delivery_free:0,mer_labels:t.mer_labels&&t.mer_labels.length?t.mer_labels.map(Number):[],type:t.type||0,extend:t.extend||[],svip_price_type:t.svip_price_type||0},0!=t.svip_price_type&&(this.attrVal={price:null,cost:null,ot_price:null,svip_price:null,stock:null,bar_code:"",weight:null,volume:null}),0!=this.formValidate.extend.length&&(this.customBtn=1),0===this.formValidate.spec_type?this.OneattrValue=t.attrValue:(this.ManyAttrValue=t.attrValue,this.ManyAttrValue.forEach((function(t){"undefined"!==t.detail&&null!==t.detail&&(e.attrInfo[Object.values(t.detail).sort().join("/")]=t)}))),1===this.formValidate.is_good&&this.checkboxGroup.push("is_good"),this.fullscreenLoading=!1},onClose:function(t){this.modals=!1,this.infoData(t)},handleRemove:function(t){this.formValidate.slider_image.splice(t,1)},modalPicTap:function(t,e,a){var i=this,r=[];this.$modalUpload((function(n){if("1"!==t||e||(i.formValidate.image=n[0],i.OneattrValue[0].image=n[0]),"2"!==t||e||n.map((function(t){r.push(t.attachment_src),i.formValidate.slider_image.push(t),i.formValidate.slider_image.length>10&&(i.formValidate.slider_image.length=10)})),"1"===t&&"dan"===e&&(i.OneattrValue[0].image=n[0]),"1"===t&&"duo"===e&&(i.ManyAttrValue[a].image=n[0]),"1"===t&&"pi"===e&&(i.oneFormBatch[0].image=n[0]),"3"===t){var o=i.formValidate.content.image?i.formValidate.content.image:[];i.formValidate.content={image:[].concat(Object(c["a"])(o),Object(c["a"])(n)),title:i.formValidate.content.title},console.log("选择好的",i.formValidate.content)}}),t)},deleteContentImg:function(t){this.formValidate.content.image.splice(t,1)},handleSubmitUp:function(){this.currentTab=(Number(this.currentTab)-1).toString()},handleSubmitNest:function(t){var e=this;this.$refs[t].validate((function(t){t&&(e.currentTab=(Number(e.currentTab)+1).toString())}))},validateAttr:function(){var t=this;Object.keys(this.formValidate.attrValue[0]).forEach((function(e){void 0==t.formValidate.attrValue[0][e]&&"bar_code"!=e&&(t.formValidate.attrValue[0][e]=0)}))},handleSubmit:function(t){var e=this;this.$store.dispatch("settings/setEdit",!1),this.onChangeGroup(),1===this.formValidate.spec_type?this.formValidate.attrValue=this.ManyAttrValue:(this.formValidate.attrValue=this.OneattrValue,this.formValidate.attr=[]),this.$refs[t].validate((function(a){if(a){e.validateAttr(),e.fullscreenLoading=!0,e.loading=!0;var i=e.$route.params.id&&!e.$route.query.type;i?Object(p["lb"])(e.$route.params.id,e.formValidate).then(function(){var a=Object(o["a"])(Object(n["a"])().mark((function a(i){return Object(n["a"])().wrap((function(a){while(1)switch(a.prev=a.next){case 0:e.fullscreenLoading=!1,e.$message.success(i.message),e.$router.push({path:e.roterPre+"/product/list"}),e.$refs[t].resetFields(),e.formValidate.slider_image=[],e.loading=!1;case 6:case"end":return a.stop()}}),a)})));return function(t){return a.apply(this,arguments)}}()).catch((function(t){e.fullscreenLoading=!1,e.loading=!1,e.$message.error(t.message)})):Object(p["ab"])(e.formValidate).then(function(){var t=Object(o["a"])(Object(n["a"])().mark((function t(a){return Object(n["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.fullscreenLoading=!1,e.$message.success(a.message),e.$router.push({path:e.roterPre+"/product/list"}),e.loading=!1;case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.fullscreenLoading=!1,e.loading=!1,e.$message.error(t.message)}))}else{if(!e.formValidate.store_name.trim())return e.$message.warning("基本信息-商品名称不能为空");if(!e.formValidate.unit_name)return e.$message.warning("基本信息-单位不能为空");if(!e.formValidate.cate_id)return e.$message.warning("基本信息-平台商品分类不能为空");if(!e.formValidate.image)return e.$message.warning("基本信息-商品封面图不能为空");if(e.formValidate.slider_image.length<0)return e.$message.warning("基本信息-商品轮播图不能为空")}}))},handlePreview:function(t){var e=this;this.onChangeGroup(),1===this.formValidate.spec_type?this.formValidate.attrValue=this.ManyAttrValue:(this.formValidate.attrValue=this.OneattrValue,this.formValidate.attr=[]),Object(p["fb"])(this.formValidate).then(function(){var t=Object(o["a"])(Object(n["a"])().mark((function t(a){return Object(n["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.previewVisible=!0,e.previewKey=a.data.preview_key;case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.$message.error(t.message)}))},validate:function(t,e,a){!1===e&&this.$message.warning(a)},specPicValidate:function(t){for(var e=0;eu)a=l[u++],i&&!o.call(s,a)||d.push(t?[a,s[a]]:s[a]);return d}}},"5d2a":function(t,e,a){"use strict";a("d5bb")},8615:function(t,e,a){var i=a("5ca1"),r=a("504c")(!1);i(i.S,"Object",{values:function(t){return r(t)}})},b78c:function(t,e,a){},c33c:function(t,e,a){},c722:function(t,e,a){"use strict";a("b78c")},d5bb:function(t,e,a){},f099:function(t,e,a){"use strict";a("c33c")}}]);
\ No newline at end of file
diff --git a/route/api.php b/route/api.php
index 3e44955e..e47ccf46 100644
--- a/route/api.php
+++ b/route/api.php
@@ -35,6 +35,7 @@ Route::group('api/', function () {
Route::get('region/goods', 'api.Auth/goodsStatistics');
Route::get('global/config', 'api.Auth/globalConfig');
Route::get('miniapp/version', 'api.Auth/miniAppVersion');
+ Route::get('category/list_level', 'api.server.StoreCategory/list_level');
Route::resource('upload', 'api.Upload');
Route::post('articleCatch', 'api.Upload/article');
//强制登录