Commit c55a973d authored by xiao-hesheng's avatar xiao-hesheng
Browse files

流程八脚本提交

parent a7eee989
...@@ -1077,7 +1077,7 @@ def check_mcms_purchase_out_and_in(type=1): ...@@ -1077,7 +1077,7 @@ def check_mcms_purchase_out_and_in(type=1):
continue continue
def check_hdi_distr(type=16): def check_hdi_distr(type=16):
from common.db.sql.sql_tools_out import check_mcms_pur_plan_sql, get_id from common.db.sql.sql_tools_out import check_mcms_pur_plan_sql, get_id
branch_id = get_branch_id() branch_id = get_branch_id()
# 验证配送单主表 # 验证配送单主表
...@@ -2386,7 +2386,7 @@ def main(): ...@@ -2386,7 +2386,7 @@ def main():
for i in range(1): for i in range(1):
updateUserLoginDefaultRange(get_listUserMgrRangePage(2)) # 设置登录账号默认权限是二级库 updateUserLoginDefaultRange(get_listUserMgrRangePage(2)) #设置登录账号默认权限是二级库
goods_move2() # 设置产品出库渠道为直送 goods_move2() # 设置产品出库渠道为直送
# # 低值 # # 低值
second_dept_Request(FileUtils().r_info8("b5_spd3_core_business_flow", "产品审核信息", 'message2')['hosGoodsId'], 1) second_dept_Request(FileUtils().r_info8("b5_spd3_core_business_flow", "产品审核信息", 'message2')['hosGoodsId'], 1)
...@@ -2401,20 +2401,20 @@ def main(): ...@@ -2401,20 +2401,20 @@ def main():
list_data = ['16', '20', '66'] list_data = ['16', '20', '66']
for i in list_data: for i in list_data:
check_mcms_dept_buy(int(i)) check_mcms_dept_buy(int(i))#检查请领单
mcms_dept_buy_detail(int(i)) mcms_dept_buy_detail(int(i))#检查请领单子表
for i in range(6): # 三个单据共审批6次 for i in range(6): # 三个单据共审批6次
approval_center() approval_center()
list_data = ['16', '20', '66'] list_data = ['16', '20', '66']
for i in list_data: for i in list_data:
check_mcms_dept_buy_approval_after(int(i)) check_mcms_dept_buy_approval_after(int(i))#检查审批后的请领单
mcms_dept_buy_detail_approval_after(int(i)) mcms_dept_buy_detail_approval_after(int(i))#检查审批后的请领单子表
time.sleep(20) time.sleep(20)
# 检查自动生成的采购计划数据 # 检查自动生成的采购计划数据
list_data = ['16', '20', '66'] list_data = ['16', '20', '66']
for i in list_data: for i in list_data:
check_mcms_mcms_pur_plan(int(i)) check_mcms_mcms_pur_plan(int(i))#检查采购计划数据(包括主表和子表)
# 采购模块处理 # 采购模块处理
purchase_module_process() purchase_module_process()
...@@ -2425,24 +2425,24 @@ def main(): ...@@ -2425,24 +2425,24 @@ def main():
time.sleep(20) time.sleep(20)
list_data = ['16', '20', '66'] list_data = ['16', '20', '66']
for i in list_data: for i in list_data:
check_mcms_purchase(int(i)) check_mcms_purchase(int(i))#检查采购订单数据(包括主表和子表)
# 检查同步到外网的采购订单数据跟内网的是否一致 # 检查同步到外网的采购订单数据跟内网的是否一致
check_mcms_purchase_out_and_in(1) check_mcms_purchase_out_and_in(1) #1主表
print('检查同步到外网的采购订单数据跟内网的是否一致') print('检查同步到外网的采购订单数据跟内网的是否一致')
check_mcms_purchase_out_and_in(2) check_mcms_purchase_out_and_in(2) #2子表
order_dp(1) # 1低值 order_dp(1) # 1低值 配送单发货
time.sleep(6) time.sleep(6)
order_dp(2) # 2高值 order_dp(2) # 2高值 配送单发货
time.sleep(6) time.sleep(6)
order_dp(3) # 3试剂 order_dp(3) # 3试剂 配送单发货
time.sleep(6) time.sleep(6)
time.sleep(20) time.sleep(20)
list_data = ['16', '20', '66'] list_data = ['16', '20', '66']
for i in list_data: for i in list_data:
time.sleep(6) time.sleep(6)
check_hdi_distr(int(i)) check_hdi_distr(int(i))#检查配送单(外网)
time.sleep(20) time.sleep(20)
# 到这里就是验收和中心库自动入库以及中心库出库 # 到这里就是验收和中心库自动入库以及中心库出库
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment