outaozhen 4 سال پیش
والد
کامیت
c4acacc759
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      src/pages/Product/Lock/LockStore/components/LocksDetail/TabList.jsx

+ 2 - 2
src/pages/Product/Lock/LockStore/components/LocksDetail/TabList.jsx

@@ -179,7 +179,7 @@ const LockTabList = props => {
             接收
           </Button>
         ) : null}
-        {stockStatus !== 0 && sellStatus === 0 && preserveStatus === 3 ? (
+        {(stockStatus !== 0 && sellStatus === 0) || preserveStatus === 3 ? (
           <Button
             type="primary"
             ghost
@@ -218,7 +218,7 @@ const LockTabList = props => {
             更换
           </Button>
         ) : null}
-        {preserveStatus === 2 ? (
+        {preserveStatus !== 3 ? (
           <Button
             type="primary"
             ghost