Explorar o código

fix: 修改客户、单位下软件锁状态改为销售状态

outaozhen %!s(int64=4) %!d(string=hai) anos
pai
achega
39b6e1fba8

+ 8 - 4
src/pages/Customer/Client/components/ClientDetail/TabList.jsx

@@ -7,6 +7,7 @@ import { useModal } from '@/components/Modal'
 import AddRecord from './AddRecord'
 import { useDispatch } from 'dva'
 import ProTable from '@ant-design/pro-table'
+import { longleSellStatusNum } from '@/pages/Product/Lock/LockStore/index'
 
 const ContanctTabList = ({ clientId, software }) => {
   // console.log(clientId)
@@ -52,10 +53,13 @@ const ContanctTabList = ({ clientId, software }) => {
       ellipsis: true
     },
     {
-      title: '状态',
-      dataIndex: 'statusT',
-      width: '10%',
-      ellipsis: true
+      title: '销售状态',
+      dataIndex: 'sellStatus',
+      width: '13%',
+      ellipsis: true,
+      render: (_, { sellStatus }) => {
+        return <>{longleSellStatusNum[sellStatus]?.text}</>
+      }
     },
     {
       title: '责任人',

+ 6 - 2
src/pages/Customer/Company/components/CompanyDetail/TabList.jsx

@@ -12,6 +12,7 @@ import { useDispatch } from 'umi'
 import AddRecord from '@/pages/Customer/Client/components/ClientDetail/AddRecord'
 import Detail from '@/pages/Customer/Business/components/BusinessDetail'
 import SyncClient from './SyncClient'
+import { longleSellStatusNum } from '@/pages/Product/Lock/LockStore/index'
 
 const CompanyTabList = ({ initData, customerId, client, software, customer, business }) => {
   const dispatch = useDispatch()
@@ -144,9 +145,12 @@ const CompanyTabList = ({ initData, customerId, client, software, customer, busi
       dataIndex: 'product'
     },
     {
-      title: '状态',
+      title: '销售状态',
       width: '10%',
-      dataIndex: 'statusT'
+      dataIndex: 'sellStatus',
+      render: (_, { sellStatus }) => {
+        return <>{longleSellStatusNum[sellStatus]?.text}</>
+      }
     },
     {
       title: '责任人',

+ 1 - 1
src/pages/Product/Lock/LockStore/index.jsx

@@ -71,7 +71,7 @@ const longleStockStatusNum = {
   2: { text: '接收' }
 }
 // 销售状态
-const longleSellStatusNum = {
+export const longleSellStatusNum = {
   1: { text: '借出' },
   2: { text: '销售' },
   3: { text: '赠送' }