Commit 9998e7e7ad668710cbcbd674b39bbd30e20e8e4a
1 parent
2c4ff67e
锁定库存禁止修改
Showing
1 changed file
with
2 additions
and
2 deletions
src/pages/pms/storage/partShop/components/PartShopModal.tsx
... | ... | @@ -29,7 +29,7 @@ export default function PartShopModal() { |
29 | 29 | }); |
30 | 30 | } |
31 | 31 | }, [visible]); |
32 | - | |
32 | + | |
33 | 33 | useEffect(() => { |
34 | 34 | if (isadd) { |
35 | 35 | setItem({}); |
... | ... | @@ -119,7 +119,7 @@ export default function PartShopModal() { |
119 | 119 | <InputNumber style={{ width: "100%" }} min={0} step={1} placeholder="总库存数量" disabled={isprice || isadd} /> |
120 | 120 | </Item> |
121 | 121 | <Item label="锁定库存" name="lockStock" rules={[{ required: true, message: "请输入锁定库存" }, { validator: validatorLockStock }]}> |
122 | - <InputNumber style={{ width: "100%" }} min={0} step={1} placeholder="锁定库存" disabled={isprice || isadd} /> | |
122 | + <InputNumber style={{ width: "100%" }} min={0} step={1} placeholder="锁定库存" disabled /> | |
123 | 123 | </Item> |
124 | 124 | {!!fw && !isprice && !isadd && ( |
125 | 125 | <Item label="修改人" name="user" rules={[{ required: true, message: "请输入修改人" }]}> | ... | ... |