Commit eb944260 authored by XieZhiXiong's avatar XieZhiXiong

chore: 修改提示与及其判断

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