Ejemplo n.º 1
0
 def online_kf(self, kehu_user, kehu_pwd, data, dict):
     # 登陆前台
     self.kehu_login(kehu_user, kehu_pwd)
     # 提交订单
     handle = self.kehu_xiadan(dict, self.xiadan_path)
     # 后台,打开新标签
     self.base_driver.add_window('window.open();')
     # 登陆后台
     self.base_driver.implicitly_wait(1)
     houtai_handle = self.login_zxh(data, handle)
     # 审核订单
     self.shenghe(kehu_user)
     # 付款
     self.kehu_fukuan()
     # 切到后台
     self.base_driver.switch_to_window(houtai_handle)
     # 获取订单合同号
     hetong_text = self.hetongcx()
     # 下单通知单
     self.xiadantzd(hetong_text, handle)
     # 工程师,主管审核
     production_number = self.gcs_zg_sh()
     # 工程制作
     self.gcgl(dict, self.shangchaunpath, self.zuankong_path)
     # 生成基材领料单
     self.jicai()
     # 领料出库
     self.lingliaochuku(self.wuliaonumber)
     # 开启wip,获取条码#开启wip,获取条码
     saomiao, factory = self.wip()
     # 扫描工艺
     # self.gysaomiao(saomiao, '深圳', handle)
     api_sac().aaa(saomiao)
     # 登录后台
     self.login_zxh(data, handle)
     # #审核包装
     self.shbaozhaung()
     # 开单发货
     self.kaidaofahuo(diqu='深圳')
     # #备货
     self.beihuo(hetong_text, '10')
     # 确认发货
     self.qrfahuo(hetong_text)
Ejemplo n.º 2
0
 def backstage_lv(self, data, dict):
     # 登陆后台
     self.login_zxh(data)
     # 代客下单
     # for ii in range(1):
     self.daikexiadan_lv(dict, self.shangchaunpath)
     # 审核订单
     self.shenghe(dict['客编'])
     # 合同的生成,上传附件,代客确认
     hetong_text = self.hetonglc()
     # 填写款到通知单
     self.kuandaofahuo(hetong_text)
     # 下单通知单
     self.xiadantzd(hetong_text)
     # 工程师,主管审核
     production_number = self.gcs_zg_sh()
     # 工程制作
     self.gcgl(dict, self.shangchaunpath, self.zuankong_path)
     # 生成基材领料单
     self.jicai()
     # 领料出库
     self.lingliaochuku(self.wuliaonumber)
     # 开启wip,获取条码
     saomiao, factory = self.wip()
     # 扫描工艺
     # self.gysaomiao(saomiao, factory='深圳')
     api_sac().aaa(saomiao)
     # 登录后台
     self.login_zxh(data)
     # 审核包装
     self.shbaozhaung()
     # #开单发货
     self.kaidaofahuo(diqu='深圳')
     # 审核送货单
     self.shsonghuodan(hetong_text)
     # 备货
     self.beihuo(hetong_text, '10')
     # 确认发货
     self.qrfahuo(hetong_text)
     return production_number
Ejemplo n.º 3
0
 def backstage_copy(self, data, case_config):
     # 登陆后台
     self.login_zxh(data)
     # 复制订单
     self.fandan(production_number=case_config[0], leixing=case_config[-1])
     # # 合同的生成,上传附件,代客确认
     hetong_text = self.hetonglc()
     # # 填写款到通知单
     self.kuandaofahuo(hetong_text)
     # # 下单通知单
     self.xiadantzd(hetong_text)
     # 工程师,主管审核
     production_number = self.gcs_zg_sh()
     # 工程制作
     self.gcgl(dict, self.shangchaunpath, self.zuankong_path)
     # 生成基材领料单
     self.jicai()
     # 领料出库
     self.lingliaochuku(self.wuliaonumber)
     # 开启wip,获取条码
     saomiao, factory = self.wip()
     # 扫描工艺
     # self.gysaomiao(saomiao, factory='深圳')
     api_sac().aaa(saomiao)
     # # 登录后台
     self.login_zxh(data)
     # 审核包装
     self.shbaozhaung()
     # #开单发货
     self.kaidaofahuo(diqu='深圳')
     # 审核送货单
     self.shsonghuodan(hetong_text)
     # 备货
     self.beihuo(hetong_text, '10')
     # 确认发货
     self.qrfahuo(hetong_text)
Ejemplo n.º 4
0
    b.xiadantzd(hetong_text)                                    # 下单通知单

    production_number = b.gcs_zg_sh()                           # 工程师审核,主管审核
    b.incaidan('通知单进度查询')

    b.gcgl(dict,b.shangchaunpath,b.zuankong_path)               # 工程制作

    b.jicai()                                                   # 生成基材领料单

    b.lingliaochuku(b.wuliaonumber)                             # 领料出库

    saomiao,factory = b.wip()                                   # 开启wip,获取条码
    # *******UI扫描***********
    # 扫描工艺
    # b.gysaomiao(saomiao,factory='深圳')
    # # # 登录后台
    # b.login_zxh(data)

    api_sac().aaa(saomiao)                                      #*******接口扫描*********

    b.shbaozhaung()                                             # 审核包装

    b.kaidaofahuo(diqu='深圳')                                   #开单发货

    b.shsonghuodan(hetong_text)                                 # 审核送货单

    b.beihuo(hetong_text, '10')                                 # 备货

    b.qrfahuo(hetong_text)                                      # 确认发货
    print('完成流程')
Ejemplo n.º 5
0
 # 获取订单合同号
 hetong_text = b.hetongcx()
 # 生成下单通知单
 b.xiadantzd(hetong_text, handle)
 # 工程师审核,主管审核
 production_number = b.gcs_zg_sh()
 # 工程制作
 b.incaidan('通知单进度查询')
 b.gcgl(dict, b.shangchaunpath, b.zuankong_path)
 # 生成基材领料单
 b.jicai()
 # 领料出库
 b.lingliaochuku(b.wuliaonumber)
 # 开启wip,获取条码#开启wip,获取条码
 saomiao, factory = b.wip()
 # *******UI扫描***********
 # 扫描工艺
 # b.gysaomiao(saomiao,'深圳',handle)
 # 登录后台
 # *******接口扫描*********
 api_sac().aaa(saomiao)
 # b.login_zxh(data, handle)
 # #审核包装
 b.shbaozhaung()
 #开单发货
 b.kaidaofahuo(diqu='深圳')
 # #备货
 b.beihuo(hetong_text, '10')
 #确认发货
 b.qrfahuo(hetong_text)
 print('完成流程')