Skip to content

订单微调 同步单价基准修改

订单微调-同步单价基准修改

station/order/update_sku_price_auto_new 同步订单中的商品的单价

接口:
    station/order/update_sku_price_auto_new
方法:
    POST
请求:
    新增:在请求中增加一个 price_unit_type 字段来标识「1 -> 销售单位」和「2 -> 基本单位」
    price_unit_type      M      int
响应:
    不变
说明:
    原来同步订单中的报价时,都是默认的以基本单位为准的,现需要增加以销售单位的报价

station/order/edit 获取订单详情

接口名:
    /station/order/edit/{{order_id}}
方法:
    GET
请求:
    order_id  M   string  订单ID
响应:
    新增:在 data 中增加一个「client_desc」字段来标识订单来源
    code    M   int     返回码,0表示成功,其他表示错误
    msg     M   string  错误信息
    data    M   dict    订单详情数据,数据字段为订单表字段;
示例:
    request
        http://station.guanmai.cn/station/order/edit/PL6141923

    response
    {
        "code": 0, 
        "data": {
            "source_order_ids": [], 
            "paid_amount": 0, 
            "salemenu_ids": ["S12731"], 
            "station_id": "T7936", 
            "date_time": "2019-07-15T10:05:41", 
            "exception_reason": {
                "1": "未按用户时间到达", 
                "5": "漏单", 
                "6": "送错货品", 
                "7": "下错单", 
                "8": "需要备注", 
                "10": "斤两不对(用户发现)", 
                "12": "质量问题", 
                "176": "无法送达", 
                "17": "规格问题", 
                "22": "司机弄丢/弄坏", 
                "153": "采购问题", 
                "25": "市场缺货(未出库)", 
                "27": "系统问题", 
                "61": "其它"
            }, 
            "modify_time": "2019-07-15T11:52:10", 
            "customer": {
                "extender": {"resname": "海底捞(深圳总店)"}, 
                "address_id": "88348", 
                "receive_end_time": "2019-07-16 11:00", 
                "receive_way": 1, 
                "pick_up_st_id": 0, 
                "address": "街道", 
                "supply_station_id": "T7936", 
                "receiver_phone": "23323", 
                "receive_begin_time": "2019-07-15 11:00", 
                "uid": "73655", 
                "address_sign_id": "30100100000", 
                "receiver_name": "福田"
            }, 
            "sort_id": 0, 
            "client": 1, 
            "client_desc": "后台下单",                    # 新增的字段
            "expire_time": "2019-07-15T10:10:41", 
            "coupon_amount": 0, 
            "time_config_id": "ST2076", 
            "refund_amount": 0, 
            "real_price": 1300, 
            "last_op_time": "2019-07-15T11:18:42", 
            "last_op_user": "miaomiao", 
            "origin_total_price": 1300.0, 
            "district_code": "440300", 
            "freight": 0.0, "freeze": 0, 
            "status": 1, 
            "_id": "PL6141923", 
            "remark": "12234567", 
            "serials": [
                "ea3df4a963a04c4facedca12855924c2", 
                "bddbbba399b94d849efe97321b4bd30e", 
                "652f4453cd5a444a86f2aa110238241d", 
                "11b4276542744d74b380c0cda9cced2e"
            ], 
            "out_order_id": "", 
            "time_config_info": {
                "name": "测试24小时", 
                "task_begin_time": "11:00", 
                "order_time_limit": {
                    "end": "07:00", 
                    "e_span_time": 1, 
                    "start": "07:00"
                }, 
                "service_time_creator": "T7936", 
                "desc": "", 
                "_id": "ST2076", 
                "receive_time_limit": {
                    "customer_weekdays": 127, 
                    "s_span_time": 0, 
                    "receiveTimeSpan": "15", 
                    "e_span_time": 4, 
                    "end": "11:00", 
                    "receiveEndSpan": 1, 
                    "weekdays": 127, 
                    "start": "11:00"
                }, 
                "final_distribute_time_span": 1, 
                "final_distribute_time": "07:00", 
                "type": 2
            }, 
            "total_pay": 1300, 
            "total_price": 1300, 
            "fake_total_price": 1300.0, 
            "district_name": "深圳市", 
            "is_aggregation": 0, 
            "real_pay": 0, 
            "create_time": 
            "2019-07-15T10:05:41", 
            "_lock": "no", 
            "pay_status": 1, 
            "settle_way": 1, 
            "details": [
                {
                    "version": 8, 
                    "outer_id": "", 
                    "sale_ratio": 1.0, 
                    "out_of_stock": false, 
                    "latest_std_sale_price": null, 
                    "total_item_price": 1300.0, 
                    "is_price_timing": false, 
                    "purchase_quantity": 1.0, 
                    "weighting_quantity": 0, 
                    "imgs": "https://img.guanmai.cn/product_pic/02bd5eb860028a8f.jpeg", 
                    "std_unit_quantity": 1.0, 
                    "is_print": false, 
                    "is_weigh": 1, 
                    "real_refund_quantity": 0, 
                    "real_is_weight": true, 
                    "quantity": 1.0, 
                    "origin_item_price": 1300.0, 
                    "clean_food": false, 
                    "latest_in_stock_price": null, 
                    "exc_quantity": 0, 
                    "category_title_2": "猪", 
                    "stock_avg_price": 0, 
                    "supplier_name": "自售单不许删", 
                    "request_refund_quantity": 0, 
                    "sync_origin": "D7552906", 
                    "weighted": 0, 
                    "spu_id": "C1375752", 
                    "salemenu_id": "S12731", 
                    "latest_std_unit_name": null, 
                    "last_in_stock_price": {
                        "newest": {
                            "price": null, 
                            "purchase_supplier_name": null, 
                            "purchase_supplier_id": null
                        }, 
                        "earlier": []
                    }, 
                    "last_purchase_price": {
                        "newest": {
                            "price": null, 
                            "purchase_supplier_name": null, 
                            "purchase_supplier_id": null
                        }, 
                        "earlier": []
                    }, 
                    "sale_unit_name": "斤", 
                    "spu_remark": "", 
                    "latest_quote_price": 213, 
                    "real_item_price": 1300.0, 
                    "origin_sale_price": 1300, 
                    "sale_money": 1300.0, 
                    "attrition_rate": 0.0, 
                    "name": "玉米肉胶", 
                    "search_text": [
                        "YUMIROUJIAO", 
                        "YMRJ", 
                        "玉米肉胶", 
                        null, 
                        "YUMIROUJIAO", 
                        "YMRJ", 
                        "玉米肉胶"
                    ], 
                    "tax_rate": 0, 
                    "fake_item_price": 1300.0, 
                    "sale_price": "13.00", 
                    "total_item_pay": 1300.0, 
                    "id": "D7552906", 
                    "tax": "0.00", 
                    "std_real_quantity": 1.0, 
                    "origins": [], 
                    "last_quote_price": {
                        "newest": {
                            "price": 213,
                            "purchase_supplier_name": "综合供应商", 
                            "purchase_supplier_id": "T13384"
                        }, 
                        "earlier": [
                            {"price": 0.0, "purchase_supplier_name": "水果供应商", "purchase_supplier_id": "T13251"}, {"price": 0.0, "purchase_supplier_name": "蔬菜供应商", "purchase_supplier_id": "T11365"
                            }, {"price": 0.0, "purchase_supplier_name": "综合", "purchase_supplier_id": "T20991"}
                        ]
                    }, 
                    "sale_num_least": 1.0, 
                    "accept_quantity": 1.0, 
                    "real_quantity": 1.0, 
                    "std_unit_name": "斤", 
                    "category_title_1": "畜类", 
                    "std_sale_price": 1300.0
                }
            ], 
            "close_time": null
        }, 
        "msg": "ok"
    }