Commit 4950d0e6 authored by XieZhiXiong's avatar XieZhiXiong
parents 5686cdc6 df782cbb
...@@ -543,7 +543,8 @@ const PurchaseOrder: React.FC<PurchaseOrderPropsType> = (props) => { ...@@ -543,7 +543,8 @@ const PurchaseOrder: React.FC<PurchaseOrderPropsType> = (props) => {
buyOrderInfo.payWayList = await getPayWayListByMemberId(selectItem.memberId) buyOrderInfo.payWayList = await getPayWayListByMemberId(selectItem.memberId)
PublicApi.postOrderIsWorkFlow({ productIds }).then(res => { //@ts-ignore
PublicApi.postOrderIsWorkFlow({ productIds, memberId: selectItem.memberId }).then(res => {
setConfirmLoading(false) setConfirmLoading(false)
if (res.code === 1000) { if (res.code === 1000) {
message.destroy() message.destroy()
......
...@@ -33,7 +33,7 @@ const InquiryModalTable:React.FC<InquiryModalTableProps> = (props) => { ...@@ -33,7 +33,7 @@ const InquiryModalTable:React.FC<InquiryModalTableProps> = (props) => {
if (item) { if (item) {
schemaAction.setFieldValue('quotationNo', item.quotationNo) schemaAction.setFieldValue('quotationNo', item.quotationNo)
const data = await fetchOrderApi.getProductListByQuotationOrderId({ const data = await fetchOrderApi.getProductListByQuotationOrderId({
id: item.id id: item.inquiryListId
}) })
// 将询价报价单的id字段 冗余给商品列表 // 将询价报价单的id字段 冗余给商品列表
schemaAction.setFieldValue('orderProductRequests', data.map((v: any) => { schemaAction.setFieldValue('orderProductRequests', data.map((v: any) => {
......
...@@ -98,7 +98,8 @@ export const useProductTableChangeForPay = (ctx: ISchemaFormActions | ISchemaFor ...@@ -98,7 +98,8 @@ export const useProductTableChangeForPay = (ctx: ISchemaFormActions | ISchemaFor
// 请求一次并复制给支付信息 // 请求一次并复制给支付信息
const productItem = value[0] const productItem = value[0]
fetchOrderApi.getPayInfoList({ fetchOrderApi.getPayInfoList({
productId: productItem.id productId: productItem.id,
memberId: productItem.memberId
}).then(data => { }).then(data => {
ctx.setFieldValue('paymentInformationResponses', data) ctx.setFieldValue('paymentInformationResponses', data)
}).catch(err => { }).catch(err => {
......
...@@ -48,7 +48,7 @@ const errorHandler = (error: ResponseError): IRequestError => { ...@@ -48,7 +48,7 @@ const errorHandler = (error: ResponseError): IRequestError => {
message.error('http请求错误: ' + response.status + '->' + messageText, 3) message.error('http请求错误: ' + response.status + '->' + messageText, 3)
} else { } else {
// 请求超时, 会造成没有response // 请求超时, 会造成没有response
message.error('请求错误') message.error('请求超时')
} }
// throw可令响应promise走catch, 如需走resolve需直接return // throw可令响应promise走catch, 如需走resolve需直接return
throw { throw {
......
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