Commit 0cea8755496798c64e3f856cb4def970546393fa
1 parent
f1b86ebe
feat: update 获取金蝶商品信息
Showing
1 changed file
with
10 additions
and
1 deletions
src/pages/Order/components/OrderDrawer.tsx
... | ... | @@ -199,6 +199,10 @@ export default ({ onClose, data, subOrders, orderOptType }) => { |
199 | 199 | currentData.productCode = option?.number; |
200 | 200 | currentData.parameters = option?.model; |
201 | 201 | currentData.unit = option?.base_unit_name; |
202 | + | |
203 | + //商品id | |
204 | + currentData.materialId = option?.id; | |
205 | + | |
202 | 206 | form.setFieldValue('list', copyList); |
203 | 207 | |
204 | 208 | //商品所在的仓库选项填充 |
... | ... | @@ -659,6 +663,11 @@ export default ({ onClose, data, subOrders, orderOptType }) => { |
659 | 663 | }} |
660 | 664 | > |
661 | 665 | {[ |
666 | + <ProFormText | |
667 | + key={'material' + listMeta.index} | |
668 | + name="materialId" | |
669 | + hidden | |
670 | + ></ProFormText>, | |
662 | 671 | <ProFormSelect |
663 | 672 | key="key" |
664 | 673 | label="商品名称" |
... | ... | @@ -740,7 +749,7 @@ export default ({ onClose, data, subOrders, orderOptType }) => { |
740 | 749 | <ProFormSelect |
741 | 750 | key="inv_stock" |
742 | 751 | placeholder="请选择商品仓库" |
743 | - name="invStock" | |
752 | + name="invStockId" | |
744 | 753 | width="lg" |
745 | 754 | label="仓库" |
746 | 755 | options={productInvStockOptionsList[listMeta.index]} | ... | ... |