-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
409 additions
and
53 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { StrictMode } from "react"; | ||
|
||
export default function InventoryQuantity () { | ||
return <StrictMode></StrictMode>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { StrictMode } from "react"; | ||
|
||
export default function InventoryStructure () { | ||
return <StrictMode></StrictMode>; | ||
} |
5 changes: 5 additions & 0 deletions
5
src/pages/PurchaseQuantityMonitoring/OrderQuantityOfMobileTerminals/index.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { StrictMode } from "react"; | ||
|
||
export default function OrderQuantityOfMobileTerminals () { | ||
return <StrictMode></StrictMode>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
src/pages/SalesVolumeMonitoring/QualityOfTerminalSalesInThePanAlliance/index.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { StrictMode } from "react"; | ||
|
||
export default function QualityOfTerminalSalesInThePanAlliance () { | ||
return <StrictMode></StrictMode>; | ||
} |
5 changes: 5 additions & 0 deletions
5
src/pages/SalesVolumeMonitoring/SalesSituationOfTerminalSubChannels/index.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { StrictMode } from "react"; | ||
|
||
export default function SalesSituationOfTerminalSubChannels () { | ||
return <StrictMode></StrictMode>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
52 changes: 52 additions & 0 deletions
52
src/pages/SalesVolumeMonitoring/TOP10ModelInformation/index.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
import { StrictMode } from "react"; | ||
import { getTOP10ModelInformation } from "@/actions"; | ||
import MyTable from "@/components/MyTable"; | ||
|
||
export interface TOP10ModelInformation_labelType { | ||
readonly phoneType: string; | ||
readonly salesNum: number; | ||
readonly rate: number; | ||
readonly priceLevel: string; | ||
readonly index: string; | ||
} | ||
// export const priceNameArr = ' '.repeat(10); | ||
export default function TOP10ModelInformation () { | ||
return (<StrictMode> | ||
<MyTable<TOP10ModelInformation_labelType> | ||
columns={[{ | ||
label: 'index', | ||
text: '销量排名' | ||
}, | ||
{ | ||
label: 'phoneType', text: '机型名称', | ||
// format: (value: number) => { | ||
// if (value === 5000) { | ||
// return `5000元以上`; | ||
// } | ||
// return `${value.toLocaleString()}元`; | ||
// }, | ||
}, | ||
{ | ||
label: 'salesNum', | ||
text: '销量' | ||
}, | ||
{ label: 'rate', text: '占比', format: (value: number) => `${value.toLocaleString()}%`, }, | ||
{ | ||
label: 'priceLevel', | ||
text: '价格段' | ||
}, | ||
]} | ||
action={(e) => getTOP10ModelInformation(e).then(e => { | ||
if (!e) | ||
return []; | ||
return [...e, { | ||
index: '', | ||
phoneType: '合计', | ||
salesNum: e.filter(i => Boolean(i)).reduce((previousValue, currentValue) => previousValue + currentValue?.salesNum, 0), | ||
rate: 100, | ||
priceLevel: '' | ||
}]; | ||
})} | ||
/> | ||
</StrictMode>); | ||
} |
Oops, something went wrong.