Esempio n. 1
0
 def testStoreCustomerExpress(self):
     ExpressService.customer_store_express = json.loads(
         '{"id":"f37fa91cf7a211e4b7926c40088b8482","customerStoreNumber":"P201501",'
         '"expressType":"CUSTOMER_STORE","logisticsCompany":{"id":"05d36c76d6aa11e4b91d6c40088b8482",'
         '"name":"测试物流公司","companyType":"LOGISTICS_COMPANY"},'
         '"storeUser":{"id":"ace76ad2f7a211e49b736c40088b8482"},"recipientName":"高阳",'
         '"recipientUserPhoneNumber":"18566691650","takeUserPhoneNumber":"18566691650",'
         '"startAddress":{"id":"48eb7c50f7a311e49ec16c40088b8482","region":{"id":"35865af8f66411e4bd404ef6eab0b474",'
         '"name":"南山区","parentRegion":{"id":"e4e99678f66311e4bd404ef6eab0b474","name":"鹤岗",'
         '"parentRegion":{"id":"b3b57ab8f66311e4bd404ef6eab0b474","name":"黑龙江",'
         '"parentRegion":{"id":"a0bd0d9af66311e4bd404ef6eab0b474","name":"中国"}}}},"detailedAddress":"高新产业园"},'
         '"endAddress":{"id":"2494f228f7a311e4bb216c40088b8482","region":{"id":"358b9c7af66411e4bd404ef6eab0b474",'
         '"name":"宝安区","parentRegion":{"id":"e4ea8862f66311e4bd404ef6eab0b474","name":"深圳",'
         '"parentRegion":{"id":"b3b582cef66311e4bd404ef6eab0b474","name":"广东",'
         '"parentRegion":{"id":"a0bd0d9af66311e4bd404ef6eab0b474","name":"中国"}}}},"detailedAddress":"任达科技园"},'
         '"rangePrice":{"id":"a4ded9a6f7a011e48bfb6c40088b8482",'
         '"businessType":{"id":"ca6ef91cf7a011e490516c40088b8482","name":"今日送"},'
         '"startRegion":{"id":"35865af8f66411e4bd404ef6eab0b474","name":"南山区",'
         '"parentRegion":{"id":"e4e99678f66311e4bd404ef6eab0b474","name":"鹤岗",'
         '"parentRegion":{"id":"b3b57ab8f66311e4bd404ef6eab0b474","name":"黑龙江",'
         '"parentRegion":{"id":"a0bd0d9af66311e4bd404ef6eab0b474","name":"中国"}}}},'
         '"endRegion":{"id":"358b9c7af66411e4bd404ef6eab0b474","name":"宝安区",'
         '"parentRegion":{"id":"e4ea8862f66311e4bd404ef6eab0b474","name":"深圳",'
         '"parentRegion":{"id":"b3b582cef66311e4bd404ef6eab0b474","name":"广东",'
         '"parentRegion":{"id":"a0bd0d9af66311e4bd404ef6eab0b474","name":"中国"}}}},'
         '"firstHeavy":5000,"firstPrice":1000,"continuedHeavy":1000,"continuedPrice":200},"version":0,'
         '"status":"IMPORTED"}')
     ExpressService.customer_express_weight = 1000
     ExpressService.mouth_size = "S"
     ExpressService.store_customer_express()
Esempio n. 2
0
 def start_pull_pre_pay_cash_for_customer_reject_express(
         self, express_cost):
     ExpressService.start_pull_pre_pay_cash_for_customer_reject_express(
         express_cost)
Esempio n. 3
0
 def testStartCalculateCustomerExpressCost(self):
     ExpressService.start_calculate_customer_express_cost()
     time.sleep(5)
Esempio n. 4
0
 def testLoadOverdueExpressCount(self):
     UserService.login("GY911201", "PASSWORD")
     ExpressService.load_courier_overdue_express_count()
Esempio n. 5
0
 def start_pay_cash_for_overdue_express(self):
     ExpressService.start_pay_cash_for_overdue_express()
Esempio n. 6
0
 def set_phone_number(self, phone_number):
     ExpressService.set_phone_number(phone_number)
Esempio n. 7
0
 def stop_courier_scan_barcode(self):
     ExpressService.stop_get_express_number_by_barcode()
Esempio n. 8
0
 def customer_cancel_scan_barcode(self):
     ExpressService.stop_barcode_take_express()
Esempio n. 9
0
 def start_courier_take_reject_express(self, send_express_id_list):
     ExpressService.start_staff_take_reject_express_list(
         send_express_id_list)
Esempio n. 10
0
 def start_courier_take_send_express_all(self):
     ExpressService.start_staff_take_all_send_express()
Esempio n. 11
0
 def start_load_customer_reject_express_count(self):
     ExpressService.start_load_customer_reject_express_count()
Esempio n. 12
0
 def start_load_customer_send_express_count(self):
     ExpressService.start_load_customer_send_express_count()
Esempio n. 13
0
 def start_store_customer_reject_express(self):
     ExpressService.start_store_customer_reject_express()
Esempio n. 14
0
 def start_get_customer_reject_express_cost(self):
     ExpressService.start_get_customer_reject_express_cost()
Esempio n. 15
0
 def stop_pay_cash_for_customer_reject_express(self):
     ExpressService.stop_pay_cash_for_customer_reject_express()
Esempio n. 16
0
 def customer_take_express_disks_check(self):
     ExpressService.start_customer_take_express_disks()
Esempio n. 17
0
 def customer_scan_barcode_take_express(self):
     ExpressService.start_barcode_take_express()
Esempio n. 18
0
 def start_courier_take_reject_express_all(self):
     ExpressService.start_staff_take_all_reject_express()
Esempio n. 19
0
 def customer_get_overdue_cost(self):
     ExpressService.get_overdue_cost()
Esempio n. 20
0
 def start_customer_load_send_express_list(self, page):
     ExpressService.start_customer_load_send_express_list(page)
Esempio n. 21
0
 def set_express_number(self, express_number):
     ExpressService.set_express_number(express_number)
Esempio n. 22
0
 def start_get_imported_express(self, text):
     ExpressService.start_get_imported_express(text)
Esempio n. 23
0
 def start_store_express(self):
     ExpressService.start_store_express()
Esempio n. 24
0
 def start_get_electronic_commerce_reject_express(self, ):
     ExpressService.start_get_electronic_commerce_reject_express()
Esempio n. 25
0
 def testLoadOverdueExpress(self):
     UserService.login("GY911201", "PASSWORD")
     ExpressService.courier_load_overdue_express(0)
Esempio n. 26
0
 def start_customer_reject_for_electronic_commerce(self, barcode):
     ExpressService.start_customer_reject_for_electronic_commerce(barcode)
Esempio n. 27
0
 def testLoadCustomerExpress(self):
     ExpressService.customer_store_number = "P201501"
     ExpressService.get_customer_store_express_info()
Esempio n. 28
0
 def start_store_customer_reject_for_electronic_commerce(self):
     ExpressService.start_store_customer_reject_for_electronic_commerce()
Esempio n. 29
0
 def customer_take_express(self, string):
     ExpressService.start_customer_take_express(string)
Esempio n. 30
0
 def start_pay_cash_for_customer_express(self):
     ExpressService.start_pay_cash_for_customer_express()