Commit 53f33814d06755c90ba55f68edfa5367301c41f9

Authored by 莫红玲
1 parent d9dba536

最低库销比计划提交判断调整

src/pages/pms/partPlan/MinRatioPlan/components/StepBnt.tsx
... ... @@ -8,7 +8,7 @@ interface Props {
8 8 }
9 9 export default function Index({length}: Props) {
10 10 const { bntLoading, getStep2, current, setCurrent, getSummary, submit, summarySupplier, brandId, parts } = useStore();
11   - const flag = _.flattenDeep(summarySupplier.map(it => it.parts || [])).length == parts.length;
  11 + // const flag = _.flattenDeep(summarySupplier.map(it => it.parts || [])).length == parts.length;
12 12 const next = _.throttle(() => {
13 13 if (current == 1) {
14 14 getStep2();
... ... @@ -40,7 +40,7 @@ export default function Index({length}: Props) {
40 40 {current == length && (
41 41 <Button
42 42 type="primary"
43   - disabled={!brandId || summarySupplier.length == 0 || !flag}
  43 + disabled={!brandId || summarySupplier.length == 0 }
44 44 loading={bntLoading}
45 45 onClick={onSubmit}
46 46 >
... ...