Commit 297800e2 authored by GuanHua's avatar GuanHua
parents e538fb4f 87431790
......@@ -406,6 +406,18 @@ export const ORDER_TYPE = ['',
]
// 提货方式
/**
* 物流
*/
export const DELIVERY_TYPE_LOGISTICS = 1;
/**
* 自提
*/
export const DELIVERY_TYPE_SELF_PICKUP = 2;
/**
* 无须配送
*/
export const DELIVERY_TYPE_NO_DELIVERY = 3;
export const DELIVERY_TYPE = ['',
'物流',
'自提',
......@@ -413,9 +425,9 @@ export const DELIVERY_TYPE = ['',
]
export const DELIVERY_TYPE_ENUM = [
{ label: '物流', value: 1 },
{ label: '自提', value: 2 },
{ label: '无需配送', value: 3 },
{ label: '物流', value: DELIVERY_TYPE_LOGISTICS },
{ label: '自提', value: DELIVERY_TYPE_SELF_PICKUP },
{ label: '无需配送', value: DELIVERY_TYPE_NO_DELIVERY },
]
// 仓位状态
......
......@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Date: 2020-11-09 10:48:12
* @LastEditors: XieZhiXiong
* @LastEditTime: 2020-12-31 10:48:22
* @LastEditTime: 2021-04-06 10:39:52
* @Description: 手动发货弹窗
*/
import React from 'react';
......@@ -14,6 +14,7 @@ import NiceForm from '@/components/NiceForm';
import { useAsyncSelect } from '@/formSchema/effects/useAsyncSelect';
import { PublicApi } from '@/services/api';
import { useLinkageUtils } from '@/utils/formEffectUtils';
import { DELIVERY_TYPE_SELF_PICKUP } from '@/constants';
import { schema } from './schema';
import styles from './index.less';
......@@ -25,14 +26,38 @@ const {
} = FormEffectHooks;
interface VerifyModalProps {
/**
* 是否可见的
*/
visible: boolean;
/**
* 点击确认按钮的 loading 状态
*/
confirmLoading: boolean;
/**
* 提交事件
*/
onSubmit: (values: {[key: string]: any}) => void;
/**
* 隐藏事件
*/
onVisible: (flag: boolean) => void;
// 是否编辑的
/**
* 是否可编辑ide
*/
isEdit?: boolean;
/**
* Modal 标题
*/
title?: string;
/**
* 值
*/
value?: {[key: string]: any};
/**
* 配送方式
*/
deliveryType: number,
};
const VerifyModal: React.FC<VerifyModalProps> = ({
......@@ -43,6 +68,7 @@ const VerifyModal: React.FC<VerifyModalProps> = ({
isEdit = true,
title = '换货发货处理',
value = {},
deliveryType,
}) => {
const handleSubmit = values => {
......@@ -158,6 +184,11 @@ const VerifyModal: React.FC<VerifyModalProps> = ({
state.display = true;
});
}
// 配送方式为自提 隐藏 发货单号 与 物流公司
if (deliveryType === DELIVERY_TYPE_SELF_PICKUP) {
linkage.hide('*(logisticsOrderNo,logisticsName)');
}
});
}}
initialValues={{
......
......@@ -122,7 +122,7 @@ export const REPAIR_OUTER_STATUS_TAG_MAP = {
// 售后维修内部部状态 Badge map
export const REPAIR_INNER_STATUS_BADGE_MAP = {
[REPAIR_INNER_STATUS_UNCOMMITTED]: '#669EDE',
[REPAIR_INNER_STATUS_UNCOMMITTED]: '#EBECF0',
[REPAIR_INNER_STATUS_COMMIT_SUCCESS]: '#41CC9E',
[REPAIR_INNER_STATUS_SUCCESS_1]: '#41CC9E',
[REPAIR_INNER_STATUS_SUCCESS_2]: '#41CC9E',
......@@ -141,16 +141,16 @@ export const EXCHANGE_OUTER_STATUS_TAG_MAP = {
[EXCHANGE_OUTER_STATUS_FAILED]: 'danger',
[EXCHANGE_OUTER_STATUS_SUCCESS]: 'primary',
[EXCHANGE_OUTER_STATUS_NOT_ADDED_RETURN_DELIVERY]: 'danger',
[EXCHANGE_OUTER_STATUS_CONSUMER_NOT_ADDED_LOGISTICS]: 'warning',
[EXCHANGE_OUTER_STATUS_CONSUMER_NOT_ADDED_LOGISTICS]: 'danger',
[EXCHANGE_OUTER_STATUS_RETURN_DELIVERY]: 'danger',
[EXCHANGE_OUTER_STATUS_NOT_ADDED_RETURN_STORAGE]: 'danger',
[EXCHANGE_OUTER_STATUS_RETURN_RECEIVE]: 'danger',
[EXCHANGE_OUTER_STATUS_UNCONFIRMED_RETURN_RECEIPT]: 'danger',
[EXCHANGE_OUTER_STATUS_NOT_ADDED_REPLACE_DELIVERY]: 'nobility',
[EXCHANGE_OUTER_STATUS_SUPPLIER_NOT_ADDED_LOGISTICS]: 'success',
[EXCHANGE_OUTER_STATUS_REPLACE_DELIVERY]: 'nobility',
[EXCHANGE_OUTER_STATUS_NOT_ADDED_REPLACE_STORAGE]: 'nobility',
[EXCHANGE_OUTER_STATUS_REPLACE_RECEIVE]: 'nobility',
[EXCHANGE_OUTER_STATUS_UNCONFIRMED_RETURN_RECEIPT]: 'primary',
[EXCHANGE_OUTER_STATUS_NOT_ADDED_REPLACE_DELIVERY]: 'danger',
[EXCHANGE_OUTER_STATUS_SUPPLIER_NOT_ADDED_LOGISTICS]: 'danger',
[EXCHANGE_OUTER_STATUS_REPLACE_DELIVERY]: 'danger',
[EXCHANGE_OUTER_STATUS_NOT_ADDED_REPLACE_STORAGE]: 'danger',
[EXCHANGE_OUTER_STATUS_REPLACE_RECEIVE]: 'danger',
[EXCHANGE_OUTER_STATUS_UNCONFIRMED_REPLACE_RECEIPT]: 'primary',
[EXCHANGE_OUTER_STATUS_UNCONFIRMED_FINISHED]: 'primary',
[EXCHANGE_OUTER_STATUS_FINISHED]: 'success',
......@@ -158,7 +158,7 @@ export const EXCHANGE_OUTER_STATUS_TAG_MAP = {
// 售后换货内部状态 Badge map
export const EXCHANGE_INNER_STATUS_BADGE_MAP = {
[EXCHANGE_INNER_STATUS_UNCOMMITTED]: '#669EDE',
[EXCHANGE_INNER_STATUS_UNCOMMITTED]: '#EBECF0',
[EXCHANGE_INNER_STATUS_COMMIT_SUCCESS]: '#41CC9E',
[EXCHANGE_INNER_STATUS_SUCCESS_1]: '#41CC9E',
[EXCHANGE_INNER_STATUS_SUCCESS_2]: '#41CC9E',
......@@ -215,13 +215,13 @@ export const RETURN_OUTER_STATUS_TAG_MAP = {
[RETURN_OUTER_STATUS_UNCOMMITTED]: 'default',
[RETURN_OUTER_UNCONFIRMED]: 'primary',
[RETURN_OUTER_STATUS_FAILED]: 'danger',
[RETURN_OUTER_STATUS_SUCCESS]: 'primary',
[RETURN_OUTER_STATUS_SUCCESS]: 'success',
[RETURN_OUTER_STATUS_NOT_ADDED_RETURN_DELIVERY]: 'danger',
[RETURN_OUTER_STATUS_CONSUMER_NOT_ADDED_LOGISTICS]: 'warning',
[RETURN_OUTER_STATUS_CONSUMER_NOT_ADDED_LOGISTICS]: 'danger',
[RETURN_OUTER_STATUS_RETURN_DELIVERY]: 'danger',
[RETURN_OUTER_STATUS_NOT_ADDED_RETURN_STORAGE]: 'danger',
[RETURN_OUTER_STATUS_RETURN_RECEIVE]: 'danger',
[RETURN_OUTER_STATUS_UNCONFIRMED_RETURN_RECEIPT]: 'danger',
[RETURN_OUTER_STATUS_UNCONFIRMED_RETURN_RECEIPT]: 'primary',
[RETURN_OUTER_STATUS_TO_BE_REFUNDED]: 'danger',
[RETURN_OUTER_STATUS_UNCONFIRMED_REFUNDED]: 'primary',
[RETURN_OUTER_STATUS_NOT_RECEIVED]: 'warning',
......@@ -231,17 +231,17 @@ export const RETURN_OUTER_STATUS_TAG_MAP = {
// 售后退货内部状态 Badge map
export const RETURN_INNER_STATUS_BADGE_MAP = {
[RETURN_INNER_STATUS_UNCOMMITTED]: '#669EDE',
[RETURN_INNER_STATUS_UNCOMMITTED]: '#EBECF0',
[RETURN_INNER_STATUS_COMMIT_SUCCESS]: '#41CC9E',
[RETURN_INNER_STATUS_SUCCESS_1]: '#41CC9E',
[RETURN_INNER_STATUS_SUCCESS_2]: '#41CC9E',
[RETURN_INNER_STATUS_SUCCESS_1]: '#669EDE',
[RETURN_INNER_STATUS_SUCCESS_2]: '#669EDE',
[RETURN_INNER_STATUS_FAILED_2]: '#EF6260',
[RETURN_INNER_STATUS_CONFIRM_SUCCESS]: '#41CC9E',
[RETURN_INNER_STATUS_CONFIRM_FAILED]: '#EF6260',
[RETURN_INNER_STATUS_NOT_ADDED_RETURN_DELIVERY]: '#E63F3B',
[RETURN_INNER_STATUS_NOT_ADDED_RETURN_DELIVERY]: '#EF6260',
[RETURN_INNER_STATUS_UNREVIEWED_RETURN_DELIVERY]: '#FF991F',
[RETURN_INNER_STATUS_CONSUMER_NOT_ADDED_LOGISTICS]: '#E63F3B',
[RETURN_INNER_STATUS_CONSUMER_UNCONFIRMED_LOGISTICS]: '#6C9CEB',
[RETURN_INNER_STATUS_CONSUMER_NOT_ADDED_LOGISTICS]: '#EF6260',
[RETURN_INNER_STATUS_CONSUMER_UNCONFIRMED_LOGISTICS]: '#FF991F',
[RETURN_INNER_STATUS_UNCONFIRMED_RETURN_DELIVERY]: '#6C9CEB',
[RETURN_INNER_STATUS_NOT_ADDED_RETURN_STORAGE]: '#E63F3B',
[RETURN_INNER_STATUS_UNREVIEWED_RETURN_STORAGE]: '#FF991F',
......
......@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Date: 2021-01-06 11:36:34
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-02-20 17:18:35
* @LastEditTime: 2021-04-06 10:47:06
* @Description:
*/
import React, { useState } from 'react';
......@@ -48,6 +48,7 @@ const ExchangePrDeliverVerify: React.FC = () => {
headExtra={info => (
<>
{(info && info.taskType === EXCHANGE_GOODS_MANUAL_DELIVERY) && (
<>
<Button
type="default"
icon={<SettingOutlined />}
......@@ -55,22 +56,23 @@ const ExchangePrDeliverVerify: React.FC = () => {
>
手工退货发货
</Button>
)}
</>
)}
target="/memberCenter/afterService/exchangeApplication/exchangePrDeliver"
isEditRefundDeliver
/>
<ManualDeliveryModal
title="退货发货处理"
visible={modalVisible}
confirmLoading={submitLoading}
onSubmit={handleSubmit}
onVisible={handleVisible}
deliveryType={info.returnGoodsAddress.deliveryType}
isEdit={true}
/>
</>
)}
</>
)}
target="/memberCenter/afterService/exchangeApplication/exchangePrDeliver"
isEditRefundDeliver
/>
</>
);
};
......
......@@ -62,7 +62,6 @@ const ExchangePrReceivedVerify: React.FC = () => {
</Button>
<ManualDeliveryModal
key="2"
title="确认换货收货"
value={{
deliveryAddressTxt: manualReplaceGoodsAddress.deliveryAddress,
......@@ -74,6 +73,7 @@ const ExchangePrReceivedVerify: React.FC = () => {
confirmLoading={submitLoading}
onSubmit={handleSubmit}
onVisible={handleVisible}
deliveryType={info.replaceGoodsAddress.deliveryType}
isEdit={false}
/>
</>
......
......@@ -41,6 +41,7 @@ const ExchangePrDeliverVerify: React.FC = () => {
headExtra={info => (
<>
{(info && info.taskType === EXCHANGE_GOODS_MANUAL_DELIVERY) && (
<>
<Button
type="default"
icon={<SettingOutlined />}
......@@ -48,21 +49,23 @@ const ExchangePrDeliverVerify: React.FC = () => {
>
手工换货发货
</Button>
)}
</>
)}
target="/memberCenter/afterService/exchangeManage/exchangePrDeliver"
isEditExchangeDeliver
/>
<ManualDeliveryModal
visible={modalVisible}
confirmLoading={submitLoading}
onSubmit={handleSubmit}
onVisible={handleVisible}
deliveryType={info.replaceGoodsAddress.deliveryType}
isEdit={true}
/>
</>
)}
</>
)}
target="/memberCenter/afterService/exchangeManage/exchangePrDeliver"
isEditExchangeDeliver
/>
</>
);
};
......
......@@ -73,6 +73,7 @@ const ExchangePrReceivedVerify: React.FC = () => {
confirmLoading={submitLoading}
onSubmit={handleSubmit}
onVisible={handleVisible}
deliveryType={info.returnGoodsAddress.deliveryType}
isEdit={false}
/>
</>
......
......@@ -41,6 +41,7 @@ const ReturnPrDeliverVerify: React.FC = () => {
headExtra={info => (
<>
{(info && info.taskType === RETURN_GOODS_MANUAL_DELIVERY) && (
<>
<Button
type="default"
icon={<SettingOutlined />}
......@@ -48,12 +49,6 @@ const ReturnPrDeliverVerify: React.FC = () => {
>
手工退货发货
</Button>
)}
</>
)}
target="/memberCenter/afterService/returnApplication/returnPrDeliver"
isEditRefundDeliver
/>
<ManualDeliveryModal
value={{}}
......@@ -61,6 +56,14 @@ const ReturnPrDeliverVerify: React.FC = () => {
confirmLoading={submitLoading}
onSubmit={handleSubmit}
onVisible={handleVisible}
deliveryType={info.returnGoodsAddress.deliveryType}
/>
</>
)}
</>
)}
target="/memberCenter/afterService/returnApplication/returnPrDeliver"
isEditRefundDeliver
/>
</>
);
......
......@@ -63,7 +63,6 @@ const ReturnPrReceivedVerify: React.FC = () => {
</Button>
<ManualDeliveryModal
key="2"
value={{
deliveryAddressTxt: manualReturnGoodsAddress.deliveryAddress,
deliveryTime: manualReturnGoodsAddress.deliveryTime,
......@@ -74,6 +73,7 @@ const ReturnPrReceivedVerify: React.FC = () => {
confirmLoading={submitLoading}
onSubmit={handleSubmit}
onVisible={handleVisible}
deliveryType={info.returnGoodsAddress.deliveryType}
isEdit={false}
/>
</>
......
......@@ -79,7 +79,7 @@ const BasicInfo: React.FC<BasicInfoProps> = ({
<Descriptions.Item label="渠道级别">{channel.level}</Descriptions.Item>
<Descriptions.Item label="渠道类型">{channel.type}</Descriptions.Item>
<Descriptions.Item label="代理地市">
<Row gutter={[16, 16]}>
<Row gutter={[16, 16]} style={{ flex: 1 }}>
{
channel.areas ?
channel.areas.map(item => (
......
......@@ -14,6 +14,7 @@ import {
DownOutlined,
} from '@ant-design/icons';
import { StandardTable } from 'god';
import moment from 'moment';
import { ColumnType } from 'antd/lib/table/interface';
import { createFormActions, FormEffectHooks, FormPath } from '@formily/antd';
import { useStateFilterSearchLinkageEffect } from '@/formSchema/effects/useFilterSearch';
......@@ -54,7 +55,16 @@ const MemberQuery: React.FC<{}> = () => {
const [confirmLoading, setConfirmLoading] = useState(false);
const fetchData = async (params: any) => {
let res = await PublicApi.getMemberAbilityInfoPage(params);
const { startDate = null, endDate = null } = params;
const payload = { ...params };
if (startDate) {
payload.startDate = moment(+startDate).format('YYYY-MM-DD');
}
if (endDate) {
payload.endDate = moment(+endDate).format('YYYY-MM-DD');
}
let res = await PublicApi.getMemberAbilityInfoPage(payload);
return res.data;
};
......
......@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Date: 2020-09-16 15:16:47
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-03-02 14:30:30
* @LastEditTime: 2021-03-19 15:34:43
* @Description: 联动逻辑相关
*/
import { Modal, message } from 'antd';
......@@ -539,7 +539,7 @@ export const useBusinessEffects = (context, actions) => {
// 这里判断是否货品 跟 商品 都已经选择过了,不可重复选择
const sameGood = invoicesDetailsRequestsValue.find((item, index) => index !== +itemIndex && item.itemNo === itemNoValue && item.product === value);
if (sameGood) {
message.warning('存在相同货+商品的组合,请重新选择');
message.warning('存在相同货+商品的组合,请重新选择');
setTimeout(() => {
setFieldState(
FormPath.transform(name, /\d/, $1 => {
......
......@@ -69,7 +69,7 @@ interface BillsFormProps {
*/
relevanceInvoices: string;
/**
* 单据id,可能是待新增销售发货单,待新增采购入库单跳转过来的
* 对应的单据id,用于查询必要的数据所需
*/
relevanceInvoicesId: string;
/**
......
Markdown is supported
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