Commit bef418e5285530a01430c76e10903723108f89ea
1 parent
57b51c35
优化
Showing
5 changed files
with
10 additions
and
10 deletions
src/pages/pms/partPlan/PlanPool/components/AreaTable.tsx
@@ -36,13 +36,13 @@ export default function Index(props: Props = {}) { | @@ -36,13 +36,13 @@ export default function Index(props: Props = {}) { | ||
36 | <Column title="计划前库销比" dataIndex="ratio" render={t => (t || 0).toFixed(2)} /> | 36 | <Column title="计划前库销比" dataIndex="ratio" render={t => (t || 0).toFixed(2)} /> |
37 | <Column title="计划后库销比" dataIndex="planeRatio" render={t => (t || 0).toFixed(2)} /> | 37 | <Column title="计划后库销比" dataIndex="planeRatio" render={t => (t || 0).toFixed(2)} /> |
38 | <Column title="本次计划金额(元)" dataIndex="thisTimeAmount" /> | 38 | <Column title="本次计划金额(元)" dataIndex="thisTimeAmount" /> |
39 | - <Column title="客户订件数量(个)" render={r => <a onClick={() => { setCustVisible(true); setItem(r); }}>{r.buyCnt}</a>} /> | 39 | + <Column title="客户订件数量(个)" render={r => (r.buyCnt ? <a onClick={() => { setCustVisible(true); setItem(r); }}>{r.buyCnt}</a> : r.buyCnt)} /> |
40 | <Column title="客户订件金额(元)" dataIndex="buyAmount" /> | 40 | <Column title="客户订件金额(元)" dataIndex="buyAmount" /> |
41 | <Column title="在途未锁(个)" dataIndex="onTheWayUnlockCnt" /> | 41 | <Column title="在途未锁(个)" dataIndex="onTheWayUnlockCnt" /> |
42 | 42 | ||
43 | <Column title="在库未锁(个)" dataIndex="storageUnlockCnt" /> | 43 | <Column title="在库未锁(个)" dataIndex="storageUnlockCnt" /> |
44 | <Column title="在库已锁(个)" dataIndex="storageLockedCnt" /> | 44 | <Column title="在库已锁(个)" dataIndex="storageLockedCnt" /> |
45 | - <Column title="滚动90天出库(个)" render={r => <a onClick={() => { setOutVisible(true); setItem(r); }}>{r.outStockCnt}</a>} /> | 45 | + <Column title="滚动90天出库(个)" render={r => (r.outStockCnt ? <a onClick={() => { setOutVisible(true); setItem(r); }}>{r.outStockCnt}</a> : r.outStockCnt)} /> |
46 | {showAnalyse && ( | 46 | {showAnalyse && ( |
47 | <> | 47 | <> |
48 | <Column | 48 | <Column |
src/pages/pms/partPlan/PlanPool/components/PartTable.tsx
@@ -43,13 +43,13 @@ export default function Index(props: Props = {}) { | @@ -43,13 +43,13 @@ export default function Index(props: Props = {}) { | ||
43 | <Column title="计划后库销比" dataIndex="planeRatio" render={t => (t || 0).toFixed(2)} /> | 43 | <Column title="计划后库销比" dataIndex="planeRatio" render={t => (t || 0).toFixed(2)} /> |
44 | 44 | ||
45 | <Column title="本次计划金额(元)" dataIndex="thisTimeAmount" /> | 45 | <Column title="本次计划金额(元)" dataIndex="thisTimeAmount" /> |
46 | - <Column title="客户订件数量(个)" render={r => <a onClick={() => { setCustVisible(true); setItem(r); }}>{r.buyCnt}</a>} /> | 46 | + <Column title="客户订件数量(个)" render={r => (r.buyCnt ? <a onClick={() => { setCustVisible(true); setItem(r); }}>{r.buyCnt}</a> : r.buyCnt)} /> |
47 | <Column title="客户订件金额(元)" dataIndex="buyAmount" /> | 47 | <Column title="客户订件金额(元)" dataIndex="buyAmount" /> |
48 | <Column title="在途未锁(个)" dataIndex="onTheWayUnlockCnt" /> | 48 | <Column title="在途未锁(个)" dataIndex="onTheWayUnlockCnt" /> |
49 | 49 | ||
50 | <Column title="在库未锁(个)" dataIndex="storageUnlockCnt" /> | 50 | <Column title="在库未锁(个)" dataIndex="storageUnlockCnt" /> |
51 | <Column title="在库已锁(个)" dataIndex="storageLockedCnt" /> | 51 | <Column title="在库已锁(个)" dataIndex="storageLockedCnt" /> |
52 | - <Column title="滚动90天出库(个)" render={r => <a onClick={() => { setOutVisible(true); setItem(r); }}>{r.outStockCnt}</a>} /> | 52 | + <Column title="滚动90天出库(个)" render={r => (r.outStockCnt ? <a onClick={() => { setOutVisible(true); setItem(r); }}>{r.outStockCnt}</a> : r.outStockCnt)} /> |
53 | {showAnalyse && ( | 53 | {showAnalyse && ( |
54 | <> | 54 | <> |
55 | <Column | 55 | <Column |
src/pages/pms/partPlan/PlanPool/components/SeriesTable.tsx
@@ -38,13 +38,13 @@ export default function Index(props: Props = {}) { | @@ -38,13 +38,13 @@ export default function Index(props: Props = {}) { | ||
38 | <Column title="计划后库销比" dataIndex="planeRatio" render={t => (t || 0).toFixed(2)} /> | 38 | <Column title="计划后库销比" dataIndex="planeRatio" render={t => (t || 0).toFixed(2)} /> |
39 | 39 | ||
40 | <Column title="本次计划金额(元)" dataIndex="thisTimeAmount" /> | 40 | <Column title="本次计划金额(元)" dataIndex="thisTimeAmount" /> |
41 | - <Column title="客户订件数量(个)" render={r => <a onClick={() => { setCustVisible(true); setItem(r); }}>{r.buyCnt}</a>} /> | 41 | + <Column title="客户订件数量(个)" render={r => (r.buyCnt ? <a onClick={() => { setCustVisible(true); setItem(r); }}>{r.buyCnt}</a> : r.buyCnt)} /> |
42 | <Column title="客户订件金额(元)" dataIndex="buyAmount" /> | 42 | <Column title="客户订件金额(元)" dataIndex="buyAmount" /> |
43 | <Column title="在途未锁(个)" dataIndex="onTheWayUnlockCnt" /> | 43 | <Column title="在途未锁(个)" dataIndex="onTheWayUnlockCnt" /> |
44 | 44 | ||
45 | <Column title="在库未锁(个)" dataIndex="storageUnlockCnt" /> | 45 | <Column title="在库未锁(个)" dataIndex="storageUnlockCnt" /> |
46 | <Column title="在库已锁(个)" dataIndex="storageLockedCnt" /> | 46 | <Column title="在库已锁(个)" dataIndex="storageLockedCnt" /> |
47 | - <Column title="滚动90天出库(个)" render={r => <a onClick={() => { setOutVisible(true); setItem(r); }}>{r.outStockCnt}</a>} /> | 47 | + <Column title="滚动90天出库(个)" render={r => (r.outStockCnt ? <a onClick={() => { setOutVisible(true); setItem(r); }}>{r.outStockCnt}</a> : r.outStockCnt)} /> |
48 | {showAnalyse && ( | 48 | {showAnalyse && ( |
49 | <> | 49 | <> |
50 | <Column | 50 | <Column |
src/pages/pms/partPlan/PlanPool/components/StoragePartTable.tsx
@@ -68,12 +68,12 @@ export default function Index(props: Props = {}) { | @@ -68,12 +68,12 @@ export default function Index(props: Props = {}) { | ||
68 | <Column title="计划后库销比" dataIndex="planeRatio" render={t => (t || 0).toFixed(2)} /> | 68 | <Column title="计划后库销比" dataIndex="planeRatio" render={t => (t || 0).toFixed(2)} /> |
69 | 69 | ||
70 | <Column title="本次计划金额(元)" dataIndex="thisTimeAmount" /> | 70 | <Column title="本次计划金额(元)" dataIndex="thisTimeAmount" /> |
71 | - <Column title="客户订件数量(个)" render={r => <a onClick={() => { setCustVisible(true); setItem(r); }}>{r.buyCnt}</a>} /> | 71 | + <Column title="客户订件数量(个)" render={r => (r.buyCnt ? <a onClick={() => { setCustVisible(true); setItem(r); }}>{r.buyCnt}</a> : r.buyCnt)} /> |
72 | <Column title="客户订件金额(元)" dataIndex="buyAmount" /> | 72 | <Column title="客户订件金额(元)" dataIndex="buyAmount" /> |
73 | <Column title="在途未锁(个)" dataIndex="onTheWayUnlockCnt" /> | 73 | <Column title="在途未锁(个)" dataIndex="onTheWayUnlockCnt" /> |
74 | <Column title="在库未锁(个)" dataIndex="storageUnlockCnt" /> | 74 | <Column title="在库未锁(个)" dataIndex="storageUnlockCnt" /> |
75 | <Column title="在库已锁(个)" dataIndex="storageLockedCnt" /> | 75 | <Column title="在库已锁(个)" dataIndex="storageLockedCnt" /> |
76 | - <Column title="滚动90天出库(个)" render={r => <a onClick={() => { setOutVisible(true); setItem(r); }}>{r.outStockCnt}</a>} /> | 76 | + <Column title="滚动90天出库(个)" render={r => (r.outStockCnt ? <a onClick={() => { setOutVisible(true); setItem(r); }}>{r.outStockCnt}</a> : r.outStockCnt)} /> |
77 | 77 | ||
78 | </Table> | 78 | </Table> |
79 | <Modal | 79 | <Modal |
src/pages/pms/partPlan/PlanPool/components/StorageTable.tsx
@@ -37,12 +37,12 @@ export default function Index(props: Props = {}) { | @@ -37,12 +37,12 @@ export default function Index(props: Props = {}) { | ||
37 | <Column title="计划后库销比" dataIndex="planeRatio" render={t => (t || 0).toFixed(2)} /> | 37 | <Column title="计划后库销比" dataIndex="planeRatio" render={t => (t || 0).toFixed(2)} /> |
38 | 38 | ||
39 | <Column title="本次计划金额(元)" dataIndex="thisTimeAmount" /> | 39 | <Column title="本次计划金额(元)" dataIndex="thisTimeAmount" /> |
40 | - <Column title="客户订件数量(个)" render={r => <a onClick={() => { setCustVisible(true); setItem(r); }}>{r.buyCnt}</a>} /> | 40 | + <Column title="客户订件数量(个)" render={r => (r.buyCnt ? <a onClick={() => { setCustVisible(true); setItem(r); }}>{r.buyCnt}</a> : r.buyCnt)} /> |
41 | <Column title="客户订件金额(元)" dataIndex="buyAmount" /> | 41 | <Column title="客户订件金额(元)" dataIndex="buyAmount" /> |
42 | <Column title="在途未锁(个)" dataIndex="onTheWayUnlockCnt" /> | 42 | <Column title="在途未锁(个)" dataIndex="onTheWayUnlockCnt" /> |
43 | <Column title="在库未锁(个)" dataIndex="storageUnlockCnt" /> | 43 | <Column title="在库未锁(个)" dataIndex="storageUnlockCnt" /> |
44 | <Column title="在库已锁(个)" dataIndex="storageLockedCnt" /> | 44 | <Column title="在库已锁(个)" dataIndex="storageLockedCnt" /> |
45 | - <Column title="滚动90天出库(个)" render={r => <a onClick={() => { setOutVisible(true); setItem(r); }}>{r.outStockCnt}</a>} /> | 45 | + <Column title="滚动90天出库(个)" render={r => (r.outStockCnt ? <a onClick={() => { setOutVisible(true); setItem(r); }}>{r.outStockCnt}</a> : r.outStockCnt)} /> |
46 | {showAnalyse && ( | 46 | {showAnalyse && ( |
47 | <> | 47 | <> |
48 | <Column | 48 | <Column |