Commit c94d4256 authored by XieZhiXiong's avatar XieZhiXiong

chore: 代客申请售后订单类型不可选,只做现货订单

parent b770926a
......@@ -23,6 +23,7 @@ import { getAuth } from '@/utils/auth';
import {
ORDER_TYPE2_POINTS,
ORDER_TYPE2_CHANNEL_POINTS,
ORDER_TYPE_STORE_PURCHASE,
} from '@/constants/order';
import ReutrnEle from '@/components/ReturnEle';
import StatusTag from '@/components/StatusTag';
......@@ -170,13 +171,14 @@ OrderNo.isFieldComponent = true;
const ExchangeValetApply: React.FC<BillsFormProps> = () => {
const [detailInfo] = useState<DetailInfo>({
applyTime: moment().format('YYYY-MM-DD HH:mm:ss'),
applyTime: moment().format('YYYY-MM-DD HH:mm:ss'),
orderType: ORDER_TYPE_STORE_PURCHASE,
});
const [unsaved, setUnsaved] = useState(false);
const [goodsValue, setGoodsValue] = useState([]);
const [submitLoading, setSubmitLoading] = useState(false);
const [visibleGoodsDrawer, setVisibleGoodsDrawer] = useState(false);
const [orderTypeValue, setOrderTypeValue] = useState(0);
const [orderTypeValue, setOrderTypeValue] = useState(ORDER_TYPE_STORE_PURCHASE);
const isPointsOrder = orderTypeValue === ORDER_TYPE2_POINTS || orderTypeValue === ORDER_TYPE2_CHANNEL_POINTS;
const isMateriel = isMaterialOrder(orderTypeValue);
......
......@@ -102,6 +102,7 @@ export const addSchema = (orderType: number): ISchema => {
placeholder: intl.formatMessage({ id: 'afterService.apply.orderType.placeholder' }, { default: '请选择' }),
},
required: true,
editable: false,
},
applyNo: {
type: 'string',
......
......@@ -21,6 +21,7 @@ import { getOrderCommonAgentAfterSalePage } from '@/services/OrderNewV2Api';
import { getMemberManageOrderAgentMembers, GetMemberManageOrderAgentMembersResponse } from '@/services/MemberV2Api';
import { FileData } from '@/utils';
import { getAuth } from '@/utils/auth';
import { ORDER_TYPE_STORE_PURCHASE } from '@/constants/order';
import ReutrnEle from '@/components/ReturnEle';
import NiceForm from '@/components/NiceForm';
import StatusTag from '@/components/StatusTag';
......@@ -81,14 +82,15 @@ OrderNo.isFieldComponent = true;
const RepairValetApply: React.FC<BillsFormProps> = () => {
const [detailInfo] = useState<DetailInfo>({
applyTime: moment().format('YYYY-MM-DD HH:mm:ss'),
applyTime: moment().format('YYYY-MM-DD HH:mm:ss'),
orderType: ORDER_TYPE_STORE_PURCHASE,
});
const [repairGoodsList] = useState<GetAsRepairGoodsPageRepairGoodsResponseDetail[]>([]);
const [unsaved, setUnsaved] = useState(false);
const [goodsValue, setGoodsValue] = useState([]);
const [submitLoading, setSubmitLoading] = useState(false);
const [visibleDrawer, setVisibleDrawer] = useState(false);
const [orderTypeValue, setOrderTypeValue] = useState(0);
const [orderTypeValue, setOrderTypeValue] = useState(ORDER_TYPE_STORE_PURCHASE);
const isMateriel = isMaterialOrder(orderTypeValue);
......
......@@ -96,6 +96,7 @@ export const addSchema = (orderType: number): ISchema => {
placeholder: intl.formatMessage({ id: 'afterService.apply.orderType.placeholder' }, { default: '请选择' }),
},
required: true,
editable: false,
},
applyNo: {
type: 'string',
......
......@@ -21,6 +21,7 @@ import { postAsReturnGoodsAgentSave } from '@/services/AfterServiceV2Api';
import { getMemberManageOrderAgentMembers, GetMemberManageOrderAgentMembersResponse } from '@/services/MemberV2Api';
import { FileData } from '@/utils';
import { getAuth } from '@/utils/auth';
import { ORDER_TYPE_STORE_PURCHASE } from '@/constants/order';
import ReutrnEle from '@/components/ReturnEle';
import StatusTag from '@/components/StatusTag';
import NiceForm from '@/components/NiceForm';
......@@ -172,7 +173,8 @@ OrderNo.isFieldComponent = true;
const ReturnValetApply: React.FC<BillsFormProps> = () => {
const [detailInfo] = useState<DetailInfo>({
applyTime: moment().format('YYYY-MM-DD HH:mm:ss'),
applyTime: moment().format('YYYY-MM-DD HH:mm:ss'),
orderType: ORDER_TYPE_STORE_PURCHASE,
});
const [unsaved, setUnsaved] = useState(false);
const [submitLoading, setSubmitLoading] = useState(false);
......@@ -180,7 +182,7 @@ const ReturnValetApply: React.FC<BillsFormProps> = () => {
const [visibleGoodsDrawer, setVisibleGoodsDrawer] = useState(false);
const [visibleReturnInfoDrawer, setVisibleReturnInfoDrawer] = useState(false);
const [goodsValue, setGoodsValue] = useState([]);
const [orderTypeValue, setOrderTypeValue] = useState(0);
const [orderTypeValue, setOrderTypeValue] = useState(ORDER_TYPE_STORE_PURCHASE);
const isMateriel = isMaterialOrder(orderTypeValue);
......
......@@ -97,6 +97,7 @@ export const addSchema = (orderType: number): ISchema => {
placeholder: intl.formatMessage({ id: 'afterService.apply.orderType.placeholder' }, { default: '请选择' }),
},
required: true,
editable: false,
},
applyNo: {
type: '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