Commit bf83b7f6 authored by 前端-钟卫鹏's avatar 前端-钟卫鹏

fix:新增订单内部状态,处理待支付订单确认确认未到账状态下无法支付的问题

parent 16c3b6ec
...@@ -1047,7 +1047,9 @@ export const PurchaseOrderInsideWorkStateTexts = { ...@@ -1047,7 +1047,9 @@ export const PurchaseOrderInsideWorkStateTexts = {
14: '订单待入库', 14: '订单待入库',
15: '订单待归档', 15: '订单待归档',
16: '订单入库待审核', 16: '订单入库待审核',
17: '待手工收货' 17: '待手工收货',
18: '已确认收货',
19: '已归档',
} }
// 销售订单内部显示文案 // 销售订单内部显示文案
...@@ -1077,6 +1079,9 @@ export const SaleOrderInsideWorkStateTexts = { ...@@ -1077,6 +1079,9 @@ export const SaleOrderInsideWorkStateTexts = {
28: '不接受物流单', 28: '不接受物流单',
29: '订单已归档', 29: '订单已归档',
30: '已手工发货', 30: '已手工发货',
31: '已确认发货',
32: '已确认回单',
33: '已归档',
} }
// 订单流转记录外部状态 // 订单流转记录外部状态
......
...@@ -34,9 +34,9 @@ const OrderPayTabs:React.FC<OrderPayTabsProps> = (props) => { ...@@ -34,9 +34,9 @@ const OrderPayTabs:React.FC<OrderPayTabsProps> = (props) => {
const processEnum = data.processEnum const processEnum = data.processEnum
useEffect(() => { useEffect(() => {
// 过滤支付信息 取第一个待支付的id // 过滤支付信息 取第一个待支付或者未到账的id
if(data?.paymentInformationResponses?.length) { if(data?.paymentInformationResponses?.length) {
let payments = data.paymentInformationResponses.filter(item => item.externalState === 1) let payments = data.paymentInformationResponses.filter(item => item.externalState === 1 || item.externalState === 4)
if(payments.length) { if(payments.length) {
ctl.setPayId(payments[0].id) ctl.setPayId(payments[0].id)
} }
......
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