...
|
...
|
@@ -9,6 +9,10 @@ |
|
|
import {Actions} from 'react-native-router-flux';
|
|
|
import DeliverGoodsService from '../../services/DeliverGoodsService';
|
|
|
import {Alert, Linking} from 'react-native';
|
|
|
import {
|
|
|
resetData,
|
|
|
getPurchaseList,
|
|
|
} from '../transferShipment/transferShipmentActions';
|
|
|
|
|
|
const {
|
|
|
|
...
|
...
|
@@ -71,8 +75,9 @@ export function deliveryGoodsFailure(error) { |
|
|
export function deliveryGoods() {
|
|
|
return (dispatch,getState) => {
|
|
|
let {deliverGoods,home} = getState();
|
|
|
let deliverData = deliverGoods.get('deliverData')?deliverGoods.get('deliverData'):[];
|
|
|
let expressValue = deliverGoods.get('expressValue')?deliverGoods.get('expressValue'):null;
|
|
|
let deliverData = deliverGoods&&deliverGoods.get('deliverData')?deliverGoods.get('deliverData'):null;
|
|
|
|
|
|
let expressValue = deliverGoods&&deliverGoods.get('expressValue')?deliverGoods.get('expressValue'):null;
|
|
|
let expressId = expressValue?expressValue.get('id'):0;
|
|
|
let expressNumber = deliverGoods.get('expressNum');
|
|
|
let shopId = home.shopId;
|
...
|
...
|
@@ -94,6 +99,8 @@ export function deliveryGoods() { |
|
|
'提交成功!',
|
|
|
'',
|
|
|
[{text: 'OK', onPress: () => {
|
|
|
dispatch(resetData());
|
|
|
dispatch(getPurchaseList());
|
|
|
Actions.pop();
|
|
|
}}]
|
|
|
);
|
...
|
...
|
@@ -104,6 +111,7 @@ export function deliveryGoods() { |
|
|
'提交失败!',
|
|
|
error.message,
|
|
|
[{text: 'OK', onPress: () => {
|
|
|
Actions.pop();
|
|
|
}}]
|
|
|
);
|
|
|
dispatch(deliveryGoodsFailure(error))
|
...
|
...
|
|