Commit eb944260 authored by XieZhiXiong's avatar XieZhiXiong

chore: 修改提示与及其判断

parent 99d5e0e0
......@@ -305,7 +305,7 @@ const ExchangeValetApply: React.FC<BillsFormProps> = () => {
buyerMemberId: current.memberId,
buyerRoleId: current.roleId,
orderType: orderTypeValue,
afterSalesType: 2, // 退
afterSalesType: 2, //
orderNo: detailInfo.orderNo ? detailInfo.orderNo : params.orderNo || undefined,
}).then(res => {
if (res.code === 1000) {
......@@ -319,11 +319,11 @@ const ExchangeValetApply: React.FC<BillsFormProps> = () => {
};
const handleAddGoods = () => {
const supplierMemberVal = addSchemaAction.getFieldValue('supplierMember');
const purchaserVal = addSchemaAction.getFieldValue('purchaser');
const orderTypeVal = addSchemaAction.getFieldValue('orderType');
if (!supplierMemberVal || !supplierMemberVal.length) {
message.error('请先选择供应会员');
if (!purchaserVal) {
message.error('请先选择采购会员');
return;
}
if (!orderTypeVal) {
......
......@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Date: 2021-12-02 19:00:25
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-12-02 20:08:48
* @LastEditTime: 2021-12-03 10:20:56
* @Description: 代客退货申请
*/
import React, { useState, useMemo } from 'react';
......@@ -312,7 +312,7 @@ const ReturnValetApply: React.FC<BillsFormProps> = () => {
buyerMemberId: current.memberId,
buyerRoleId: current.roleId,
orderType: orderTypeValue,
afterSalesType: 2, // 退货
afterSalesType: 3, // 退货
orderNo: detailInfo.orderNo ? detailInfo.orderNo : params.orderNo || undefined,
}).then(res => {
if (res.code === 1000) {
......@@ -326,11 +326,11 @@ const ReturnValetApply: React.FC<BillsFormProps> = () => {
};
const handleAddGoods = () => {
const supplierMemberVal = addSchemaAction.getFieldValue('supplierMember');
const purchaserVal = addSchemaAction.getFieldValue('purchaser');
const orderTypeVal = addSchemaAction.getFieldValue('orderType');
if (!supplierMemberVal || !supplierMemberVal.length) {
message.error('请先选择供应会员');
if (!purchaserVal) {
message.error('请先选择采购会员');
return;
}
if (!orderTypeVal) {
......
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