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,6 +199,10 @@ export default ({ onClose, data, subOrders, orderOptType }) => { | ||
199 | currentData.productCode = option?.number; | 199 | currentData.productCode = option?.number; |
200 | currentData.parameters = option?.model; | 200 | currentData.parameters = option?.model; |
201 | currentData.unit = option?.base_unit_name; | 201 | currentData.unit = option?.base_unit_name; |
202 | + | ||
203 | + //商品id | ||
204 | + currentData.materialId = option?.id; | ||
205 | + | ||
202 | form.setFieldValue('list', copyList); | 206 | form.setFieldValue('list', copyList); |
203 | 207 | ||
204 | //商品所在的仓库选项填充 | 208 | //商品所在的仓库选项填充 |
@@ -659,6 +663,11 @@ export default ({ onClose, data, subOrders, orderOptType }) => { | @@ -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 | <ProFormSelect | 671 | <ProFormSelect |
663 | key="key" | 672 | key="key" |
664 | label="商品名称" | 673 | label="商品名称" |
@@ -740,7 +749,7 @@ export default ({ onClose, data, subOrders, orderOptType }) => { | @@ -740,7 +749,7 @@ export default ({ onClose, data, subOrders, orderOptType }) => { | ||
740 | <ProFormSelect | 749 | <ProFormSelect |
741 | key="inv_stock" | 750 | key="inv_stock" |
742 | placeholder="请选择商品仓库" | 751 | placeholder="请选择商品仓库" |
743 | - name="invStock" | 752 | + name="invStockId" |
744 | width="lg" | 753 | width="lg" |
745 | label="仓库" | 754 | label="仓库" |
746 | options={productInvStockOptionsList[listMeta.index]} | 755 | options={productInvStockOptionsList[listMeta.index]} |