Skip to content

净菜字段

商品添加净菜字段

/product/sku_sale/create 创建销售sku

Method: POST
Class:  SkuUpdateView
请求:
    其他不变:
    新增字段:
    clean_food_info O   dict    
        origin_place    O   str 产地
      material_description  O   str 原料说明
      recommended_method    O   str 建议使用方法
      nutrition O   str 营养成分表
      storage_condition O   str 贮存条件
      cut_specification O   str 切配规格
      license   O   str 许可证
      product_performance_standards O   str 产品执行标准
响应:
    不变

/product/sku/update 更新销售sku

Method: POST
Class:  SkuUpdateView
请求:
    其他不变:
    新增字段:
    clean_food_info O   dict    
        origin_place    O   str 产地
      material_description  O   str 原料说明
      recommended_method    O   str 建议使用方法
      nutrition O   str 营养成分表
      storage_condition O   str 贮存条件
      cut_specification O   str 切配规格
      license   O   str 许可证
      product_performance_standards O   str 产品执行标准
响应:
    不变

/product/sku_sale/list sku详情信息

Method: POST
Class:  SkuSaleGetView
请求:
    不变
响应:
    data M  list
    [{
      其他不变
      clean_food_info M dict    以下字段都会传,但是可能会为空字符串
          origin_place  M   str 产地
          material_description  M   str 原料说明
          recommended_method    M   str 建议使用方法
          nutrition M   str 营养成分表
          storage_condition M   str 贮存条件
          cut_specification M   str 切配规格
          license   M   str 许可证
          product_performance_standards M   str 产品执行标准
    }]

模板标签那边后台不用改啥,主要是真正打印标签的地方返回数据就行了

weight/sku/print/infos 打印数据

Method: POST
Class:  GetSkuPrintInfosView
请求:
    不变
响应:
    data M  list
    [{
      其他不变
      clean_food_info M dict    以下字段都会传,但是可能会为空字符串
          origin_place  M   str 产地
          material_description  M   str 原料说明
          recommended_method    M   str 建议使用方法
          nutrition M   str 营养成分表
          storage_condition M   str 贮存条件
          cut_specification M   str 切配规格
          license   M   str 许可证
          product_performance_standards M   str 产品执行标准
    }]