ey-commerce-lib 1.0.4__py3-none-any.whl → 1.0.6__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of ey-commerce-lib might be problematic. Click here for more details.

@@ -515,14 +515,14 @@ class DxmClient:
515
515
 
516
516
  async def validate_price(self, ids: str):
517
517
  """
518
- 采购单提交审核
518
+ 采购校验价格
519
519
  :param ids: purchase_id 多个,分隔
520
520
  :return:
521
521
  """
522
522
  validate_price_res = await self.__async_client.post("/dxmPurchasingNote/validatePrice.json", data={
523
523
  'ids': ids
524
524
  })
525
- return validate_price_res
525
+ return validate_price_res.json()
526
526
 
527
527
  async def wait_pay_pay_money(self, purchase_id: str):
528
528
  """
@@ -537,6 +537,18 @@ class DxmClient:
537
537
  })
538
538
  return wait_pay_pay_money_res.json()
539
539
 
540
+ async def submit_audit(self, purchase_id: str):
541
+ """
542
+ 提交审核
543
+ :param purchase_id:
544
+ :return:
545
+ """
546
+ async with self.__sem:
547
+ submit_audit_res = await self.__async_client.post("/dxmPurchasingNote/submitAudit.json", data={
548
+ 'id': purchase_id
549
+ })
550
+ return submit_audit_res.json()
551
+
540
552
  async def __aenter__(self):
541
553
  return self
542
554
 
@@ -16,10 +16,10 @@ def get_single_order_item_list(order_element: html.HtmlElement):
16
16
  for sku_element in sku_element_list:
17
17
  sku = sku_element.xpath('.//a[contains(@class, "pairProInfoSku")]/text()')[0]
18
18
  img = get_str_list_first_not_blank_or_none(sku_element.xpath('.//img/@data-original'))
19
- quantity = sku_element.xpath('.//p[@class="limingcentUrlpicson"]/span/text()')[0]
19
+ quantity = sku_element.xpath('.//span[@class="limingcentUrlpicson"]/following-sibling::span[1]/text()')[0]
20
20
  # 价格
21
21
  currency, price = \
22
- sku_element.xpath('.//p[@class="limingcentUrlpicson"]/following-sibling::p[1]/text()')[
22
+ sku_element.xpath('.//span[@class="limingcentUrlpicson"]/parent::*/following-sibling::p[1]/text()')[
23
23
  0].split(' ')
24
24
  # 变种
25
25
  variants = sku_element.xpath(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ey-commerce-lib
3
- Version: 1.0.4
3
+ Version: 1.0.6
4
4
  Summary: eeyoung电商客户端调用封装
5
5
  Author-email: 饶奇奇 <1124393197@qq.com>
6
6
  Requires-Python: >=3.10
@@ -1,7 +1,7 @@
1
1
  ey_commerce_lib/__init__.py,sha256=QTYqXqSTHFRkM9TEgpDFcHvwLbvqHDqvqfQ9EiXkcAM,23
2
2
  ey_commerce_lib/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
3
  ey_commerce_lib/dxm/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
- ey_commerce_lib/dxm/main.py,sha256=Yl0Q80Z2_ltaw0iZdOFqfjQsu2qz-0p1EcgZN-qojGE,20643
4
+ ey_commerce_lib/dxm/main.py,sha256=GeUqUoOV9CMBjMucoIWQNhF-Idi2JSk9J0DF8M-AyJ0,21033
5
5
  ey_commerce_lib/dxm/order.py,sha256=hMdNm9X5h9tbvMWFnyE5hcSF4butzn7m-akGqLQUD0k,35
6
6
  ey_commerce_lib/dxm/constant/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
7
  ey_commerce_lib/dxm/constant/order.py,sha256=U-2NYnkIcqukzMtOFpfqvzIktu_t7jYEms_n9LgKMlY,2213
@@ -9,7 +9,7 @@ ey_commerce_lib/dxm/exception/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5N
9
9
  ey_commerce_lib/dxm/exception/common.py,sha256=DM5vItHdZCGK2Piqp2S5TFxPm3pioMzzlV-1RTxty00,159
10
10
  ey_commerce_lib/dxm/parser/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
11
11
  ey_commerce_lib/dxm/parser/common.py,sha256=-3OwoGsuHpugFS96OAzimZTXLkH7qZqmNvP-kvVSndM,3035
12
- ey_commerce_lib/dxm/parser/order.py,sha256=5t_ie5nkmhZdDC7NBOhIkNxRYHTmlZCxs4Y6TseCp88,16542
12
+ ey_commerce_lib/dxm/parser/order.py,sha256=tOvMuP_Ld8muL6sBoqGXtgaLPBiBW8Xeu5WSDIhzEXY,16580
13
13
  ey_commerce_lib/dxm/parser/purchase.py,sha256=7ULQHAIqUuUcpvWM1ut7uqCQhwE-DcQ7K3qftsfNlK8,5768
14
14
  ey_commerce_lib/dxm/parser/warehouse.py,sha256=LfmqVixV5IcnPvr6Ma4XYoWUdXixQ16xzPP07bJrWb0,3192
15
15
  ey_commerce_lib/dxm/schemas/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -20,6 +20,6 @@ ey_commerce_lib/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3h
20
20
  ey_commerce_lib/utils/dxm.py,sha256=jVNltK_Pm_yMzXReD0Aw5VW6kzIZ5Bn23RucS0DKBI0,1196
21
21
  ey_commerce_lib/utils/list_util.py,sha256=R1w7B1m3sEXr38zSHWp-15C3xAs5ykYCCpvwmnRW4xs,545
22
22
  ey_commerce_lib/utils/str.py,sha256=939xE0y8U7KEWjwbEezMlaWJNBsfb2BSb-dBpYbOD8Q,138
23
- ey_commerce_lib-1.0.4.dist-info/METADATA,sha256=uuGimYTuGtxcBuG3p6kgBd7bSs8LcWfCCY6LhzeEE-U,326
24
- ey_commerce_lib-1.0.4.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
25
- ey_commerce_lib-1.0.4.dist-info/RECORD,,
23
+ ey_commerce_lib-1.0.6.dist-info/METADATA,sha256=g-djWVYXp7FIvhyeBL04rw_6qJsX4LYf7tQvt2ovCZ8,326
24
+ ey_commerce_lib-1.0.6.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
25
+ ey_commerce_lib-1.0.6.dist-info/RECORD,,