示例#1
0
 def guacarEdit(self, user_id, a, u, b, c, d, e, g, h, i, j, k, l, n, o, p,
                q):
     # 挂车信息修改
     url = url_service + "saas/res/car/edit"
     headers = {"user_id": str(user_id)}
     param = {
         "a": a,
         "b": b,
         "d": d,
         "e": e,
         "c": c,
         "g": g,
         "h": h,
         "i": i,
         "j": j,
         "k": k,
         "l": l,
         "u": u,
         "n": n,
         "o": o,
         "p": p,
         "q": q
     }
     r = requests.post(url=url, headers=headers, json=param)
     response = eval(r.text)
     MyLog().logger().info(response)
     return response
示例#2
0
 def addDriver(self,
               user_id,
               a,
               b,
               c,
               d,
               m,
               e="",
               f="",
               g="",
               h="",
               i="",
               j=""):
     # 司机新增
     url = url_service + "saas/res/driver/add"
     headers = {"user_id": str(user_id)}
     param = {
         "a": a,
         "b": b,
         "d": d,
         "e": e,
         "c": c,
         "f": f,
         "g": g,
         "h": h,
         "i": i,
         "j": j,
         "m": m
     }
     r = requests.post(url=url, headers=headers, json=param)
     response = eval(r.text)
     MyLog().logger().info(response)
     return response
示例#3
0
def post(*args, url, param):
    headers = {'token': args[0], 'user_id': args[1]}
    param = param
    r = requests.post(url=url, headers=headers, json=param)
    response = eval(r.text)
    MyLog().logger().info(response)
    return response
示例#4
0
 def goodsStatus(self, user_id):
     # 货单状态查询
     url = url_service + "saas/cfg/dictionary/goods-status"
     headers = {"user_id": str(user_id)}
     r = requests.get(url=url, headers=headers)
     response = eval(r.text)
     MyLog().logger().info(response)
     return response
示例#5
0
def get_user_info(*args):
    url = fleet_url + 'saas/res/org/userInfo'
    headers = {'token': args[0], 'user_id': args[1]}
    r = requests.post(url=url, headers=headers)
    response = eval(r.text)
    MyLog().logger().info(response)
    company_id = response['d']['f']
    return company_id
示例#6
0
 def delTransport(self, user_id, a):
     # 删除运力绑定关系
     url = url_service + "saas/res/transport/del"
     headers = {"user_id": str(user_id)}
     param = {"a": a}
     r = requests.post(url=url, headers=headers, json=param)
     response = eval(r.text)
     MyLog().logger().info(response)
     return response
示例#7
0
 def queryCompanyOrgAllListByCompanyId(self, user_id, a):
     # 查询车队的组织架构信息
     url = url_service + "saas/res/company/org/all/list"
     headers = {"user_id": str(user_id)}
     param = {"a": a}
     r = requests.post(url=url, headers=headers, json=param)
     response = eval(r.text)
     MyLog().logger().info(response)
     return response
示例#8
0
文件: web.py 项目: xutusheng/di5cheng
 def confirm_inquiry(self, user_id, param):
     # 询价确认发货
     url = self.url + 'saas/inquiry/confirm/confirmInquiry'
     headers = {'user_id': str(user_id)}
     param = param
     r = requests.post(url=url, headers=headers, json=param)
     response = eval(r.text)
     MyLog().logger().info(response)
     return response
示例#9
0
 def queryCarDetail(self, user_id, a, b, c):
     # 查询车辆详情
     url = url_service + "saas/res/car/detail"
     headers = {"user_id": str(user_id)}
     param = {"a": a, "b": b, "c": c}
     r = requests.post(url=url, headers=headers, json=param)
     response = eval(r.text)
     MyLog().logger().info(response)
     return response
示例#10
0
 def editOrgPeople(self, user_id, a, c, d, f):
     # 修改部门人员
     url = url_service + "saas/res/org/people/edit"
     headers = {"user_id": str(user_id)}
     param = {"a": a, "c": c, "d": d, "f": f}
     r = requests.post(url=url, headers=headers, json=param)
     response = eval(r.text)
     MyLog().logger().info(response)
     return response
示例#11
0
 def queryConfirmedPrice(self, user_id, b):
     # 查询被确认的报价价格
     url = url_service + "saas/inquiry/confirm/confirmedPrice"
     headers = {"user_id": str(user_id)}
     param = {"b": b}
     r = requests.post(url=url, headers=headers, json=param)
     response = eval(r.text)
     MyLog().logger().info(response)
     return response
示例#12
0
 def addOrgPeople(self, cpy_id, a, c, d, e, f, h):
     # 新增部门人员
     url = url_service + "saas/res/org/people/add"
     headers = {"cpy_id": str(cpy_id)}
     param = {"a": a, "c": c, "d": d, "e": e, "g": 2020, "f": f, "h": h}
     r = requests.post(url=url, headers=headers, json=param)
     response = eval(r.text)
     MyLog().logger().info(response)
     return response
示例#13
0
 def fleetGoodsReportPrice(self, user_id, a):
     # 车队货源报价列表
     url = url_service + "saas/transport/report/list"
     headers = {"user_id": str(user_id)}
     param = {"a": a}
     r = requests.post(url=url, headers=headers, json=param)
     response = eval(r.text)
     MyLog().logger().info(response)
     return response
示例#14
0
 def editTransport(self, user_id, a, b, d, e, c, f, g):
     # 修改运力绑定关系
     url = url_service + "saas/res/transport/edit"
     headers = {"user_id": str(user_id)}
     param = {"a": a, "b": b, "c": c, "d": d, "e": e, "f": f, "g": g}
     r = requests.post(url=url, headers=headers, json=param)
     response = eval(r.text)
     MyLog().logger().info(response)
     return response
示例#15
0
 def modifyEscort(self, user_id, a, b, d, k, l, m):
     # 押运员修改
     url = url_service + "saas/res/escort/edit"
     headers = {"user_id": str(user_id)}
     param = {"a": a, "b": b, "d": d, "k": k, "l": l, "m": m}
     r = requests.post(url=url, headers=headers, json=param)
     response = eval(r.text)
     MyLog().logger().info(response)
     return response
示例#16
0
 def addyaDriver(self, user_id, a, b, d, k="", l="", m=""):
     # 押运员新增
     url = url_service + "saas/res/driver/add"
     headers = {"user_id": str(user_id)}
     param = {"a": a, "b": b, "d": d, "k": k, "l": l, "m": m}
     r = requests.post(url=url, headers=headers, json=param)
     response = eval(r.text)
     MyLog().logger().info(response)
     return response
示例#17
0
 def queryUserBasicInfo(self, user_id):
     # 查询用户基本信息
     url = url_service + "saas/res/org/userInfo"
     headers = {"user_id": str(user_id)}
     param = {}
     r = requests.post(url=url, headers=headers, json=param)
     response = eval(r.text)
     MyLog().logger().info(response)
     return response
示例#18
0
文件: web.py 项目: xutusheng/di5cheng
 def get_address(self, user_id, param):
     # 请求常用装卸货地址
     url = self.url + 'saas/goods/address/find'
     headers = {'user_id': str(user_id)}
     param = param
     r = requests.post(url=url, headers=headers, json=param)
     response = eval(r.text)
     MyLog().logger().info(response)
     return response
示例#19
0
 def queryGoodsOrderDetail(self, user_id, a):
     # 查询主货单详情
     url = url_service + "saas/goods/goods/mainDetail"
     headers = {"user_id": str(user_id)}
     param = {"a": a}
     r = requests.post(url=url, headers=headers, json=param)
     response = eval(r.text)
     MyLog().logger().info(response)
     return response
示例#20
0
 def queryUserMenu(self, user_id):
     # 查询用户菜单
     url = url_service + "saas/res/org/people/menu"
     headers = {"user_id": str(user_id)}
     param = {}
     r = requests.post(url=url, headers=headers, json=param)
     response = eval(r.text)
     MyLog().logger().info(response)
     return response
示例#21
0
 def goodsCanceledCarOrderList(self, user_id, b, x, y):
     # 小五货单已确认车单列表
     url = url_service + "saas/transport/dispatch/list/canceled/carOrders"
     headers = {"user_id": str(user_id)}
     param = {"b": b, "x": x, "y": y}
     r = requests.post(url=url, headers=headers, json=param)
     response = eval(r.text)
     MyLog().logger().info(response)
     return response
示例#22
0
 def queryTransport(self, user_id, a, x):
     # 查询运力绑定关系
     url = url_service + "saas/res/transport/list"
     headers = {"user_id": str(user_id)}
     param = {"a": a, "x": x}
     r = requests.post(url=url, headers=headers, json=param)
     response = eval(r.text)
     MyLog().logger().info(response)
     return response
示例#23
0
 def inquiryReportPrice(self, user_id, a, b, c, d):
     # 询价查看-查看报价列表
     url = url_service + "saas/inquiry/dispatch/inquiryReportPrice"
     headers = {"user_id": str(user_id)}
     param = {"a": a, "b": b, "c": c, "d": d}
     r = requests.post(url=url, headers=headers, json=param)
     response = eval(r.text)
     MyLog().logger().info(response)
     return response
示例#24
0
 def addressDelete(self, user_id, a):
     # 常用装卸货地址删除
     url = url_service + "saas/goods/address/delete"
     headers = {"user_id": str(user_id)}
     param = {"a": a}
     r = requests.post(url=url, headers=headers, json=param)
     response = eval(r.text)
     MyLog().logger().info(response)
     return response
示例#25
0
 def queryCarList(self, user_id, a, d, x, y):
     # 查询车辆列表
     url = url_service + "saas/res/car/list"
     headers = {"user_id": str(user_id)}
     param = {"a": a, "d": d, "x": x, "y": y}
     r = requests.post(url=url, headers=headers, json=param)
     response = eval(r.text)
     MyLog().logger().info(response)
     return response
示例#26
0
 def companyFind(self, user_id):
     # 货主公司查询
     url = url_service + "saas/acc/company/find"
     headers = {"user_id": str(user_id)}
     param = {}
     r = requests.post(url=url, headers=headers, json=param)
     response = eval(r.text)
     MyLog().logger().info(response)
     return response
示例#27
0
def user_login_web(username, password):
    password_md5 = config.get_md5(password)
    url = fleet_url + 'paas/mm/userlogin?md=10&cmd=01'
    param = {"a": username, "b": password_md5}
    r = requests.post(url=url, json=param)
    response = eval(r.text)
    MyLog().logger().info(response)
    token, user_id = response['k'], response['b']
    return token, str(user_id)
示例#28
0
 def x5List(self, user_id):
     # 查询小五列表
     url = url_service + "saas/res/x5/list"
     headers = {"user_id": str(user_id)}
     param = {}
     r = requests.post(url=url, headers=headers, json=param)
     response = eval(r.text)
     MyLog().logger().info(response)
     return response
示例#29
0
 def msDsFind(self, user_id):
     # 常用货品查询
     url = url_service + "saas/goods/msds/find"
     headers = {"user_id": str(user_id)}
     param = {}
     r = requests.post(url=url, headers=headers, json=param)
     response = eval(r.text)
     MyLog().logger().info(response)
     return response
示例#30
0
文件: web.py 项目: xutusheng/di5cheng
 def issue_inquiry(self, *args, param):
     # 发布询价
     url = self.url + 'saas/goods/inquiry/add'
     headers = {'token': args[0], 'user_id': args[1]}
     param = param
     r = requests.post(url=url, headers=headers, json=param)
     response = eval(r.text)
     MyLog().logger().info(response)
     return response