Commit de60ef92 authored by XieZhiXiong's avatar XieZhiXiong

Merge branch 'fix418' into 'v2-220418'

销售订单转单显示提示信息 See merge request linkseeks-design/pro-platform!625
parents 2a4bfc34 0154246b
...@@ -16,7 +16,7 @@ import Search from '@/components/NiceForm/components/Search' ...@@ -16,7 +16,7 @@ import Search from '@/components/NiceForm/components/Search'
import { useStateFilterSearchLinkageEffect } from '@/formSchema/effects/useFilterSearch' import { useStateFilterSearchLinkageEffect } from '@/formSchema/effects/useFilterSearch'
import Submit from '@/components/NiceForm/components/Submit' import Submit from '@/components/NiceForm/components/Submit'
import { MALL_TYPE } from '@/constants'; import { MALL_TYPE } from '@/constants';
import { fectchShopListsSource } from '@/utils/type' import { fectchShopListsSource, fectchShopListsSourceTradeRule } from '@/utils/type'
import { getMemberManagePageitems, postMemberManageAllPageByshoptype } from '@/services/MemberV2Api' import { getMemberManagePageitems, postMemberManageAllPageByshoptype } from '@/services/MemberV2Api'
import { getProductCommodityCommonGetCommodityListByStock, getProductFreightSpaceDetails, getProductFreightSpaceMamberList, getProductSelectGetSelectBrand, getProductSelectGetSelectCustomerCategory } from '@/services/ProductV2Api' import { getProductCommodityCommonGetCommodityListByStock, getProductFreightSpaceDetails, getProductFreightSpaceMamberList, getProductSelectGetSelectBrand, getProductSelectGetSelectCustomerCategory } from '@/services/ProductV2Api'
...@@ -498,7 +498,7 @@ const BatchPositionSetting: React.FC<BatchPositionSettingProps> = (props) => { ...@@ -498,7 +498,7 @@ const BatchPositionSetting: React.FC<BatchPositionSettingProps> = (props) => {
createAddRepositoryEffect(addSchemaAction) createAddRepositoryEffect(addSchemaAction)
$('onFieldValueChange', 'shopType').subscribe(async parentState => { $('onFieldValueChange', 'shopType').subscribe(async parentState => {
if (parentState.value) { if (parentState.value) {
const data = await fectchShopListsSource({ type: parentState.value }) const data = await fectchShopListsSourceTradeRule({ type: parentState.value })
setFieldState('shopIds', state => { setFieldState('shopIds', state => {
state.props["x-component-props"].dataSource = data state.props["x-component-props"].dataSource = data
}); });
......
...@@ -264,7 +264,7 @@ const SaleOrder: React.FC<SaleOrderProps> = () => { ...@@ -264,7 +264,7 @@ const SaleOrder: React.FC<SaleOrderProps> = () => {
const { code, data } = await postOrderVendorTransferPreview({ const { code, data } = await postOrderVendorTransferPreview({
roleId: defaultRoleId, roleId: defaultRoleId,
orderIds: [orderId] orderIds: [orderId]
}, {ctlType: 'none'}) })
if(code === 1000) { if(code === 1000) {
transformRef.current.setVisible(true) transformRef.current.setVisible(true)
transformActions.setFieldValue('orders', data) transformActions.setFieldValue('orders', data)
...@@ -276,7 +276,7 @@ const SaleOrder: React.FC<SaleOrderProps> = () => { ...@@ -276,7 +276,7 @@ const SaleOrder: React.FC<SaleOrderProps> = () => {
const { code, data } = await postOrderVendorTransferPreview({ const { code, data } = await postOrderVendorTransferPreview({
roleId: defaultRoleId, roleId: defaultRoleId,
orderIds: selectRef.current, orderIds: selectRef.current,
}, { ctlType: 'none' }) })
if(code === 1000) { if(code === 1000) {
transformRef.current.setVisible(true) transformRef.current.setVisible(true)
transformActions.setFieldValue('orders', data) transformActions.setFieldValue('orders', data)
......
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