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

fix: 优化渠道商品上下架

parent bf1f102a
import React, { useState, useEffect, useRef, useMemo } from 'react'
import { history, useIntl } from 'umi'
import { Button, Form, Card, Modal, Result, Progress, Select, Tooltip, Checkbox, Row, Col, Dropdown, Menu, Space, message, Badge, Radio } from 'antd'
import { Button, Form, Card, Modal, Result, Progress, Select, Row, Col, Dropdown, Menu, Space, message, Badge, Radio } from 'antd'
import { PageHeaderWrapper } from '@ant-design/pro-layout'
import {
PlusOutlined,
FileExcelOutlined,
QuestionCircleOutlined,
DownOutlined,
DeleteOutlined,
ExclamationCircleOutlined,
......@@ -45,7 +44,6 @@ const formActions = createFormActions();
const Products: React.FC<{}> = () => {
const intl = useIntl();
const ref = useRef<any>({})
const judgeShopRef = useRef<boolean>(true)
const [upForm] = Form.useForm()
const [importModal, setImportModal] = useState(false)
const [deleteBatchModal, setDeleteBatchModal] = useState(false)
......@@ -490,7 +488,6 @@ const Products: React.FC<{}> = () => {
const executePutaway = (params) => {
const fn = isBatch ? postProductCommodityPublishCommodityBatch : postProductCommodityPublishCommodity
const shopId = shopIdRef.current
console.log(shopId, 'shopId')
// @ts-ignore
fn(isBatch ? { storeId: shopId['id'], storeName: shopId['name'], storeLogo: shopId['logo'], shopList: params.shopList, idList: RowCtl.selectedRowKeys } : { storeId: shopId?.id || null, storeName: shopId?.name || null, storeLogo: shopId?.logo || null, ...params }).then((res) => {
if(res.code === 1000) {
......@@ -503,7 +500,6 @@ const Products: React.FC<{}> = () => {
const handleUp = (values) => {
const upShops = shopsOption.filter(item => values[item.shopId])
console.log(values, 'vvv', upShops)
setIsDisabledOKbtn(true)
let params = {
id: currentOptionId,
......
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