Browse Source

feat(商品管理): 添加一键复制

商品添加一键复制
tags/小炒逻辑变更前
txb 2 years ago
parent
commit
c466d17e46
2 changed files with 19 additions and 0 deletions
  1. +1
    -0
      src/pages/goods/goodsInfo/index.jsx
  2. +18
    -0
      src/pages/goods/newgoods/index.jsx

+ 1
- 0
src/pages/goods/goodsInfo/index.jsx View File

@@ -25,6 +25,7 @@ const Advanced = (props) => {
const onFinish = async (values) => {
const hide = message.loading('正在添加');
try {
if(props.location.query.isAdd)values.id=null;
values.imgUrl = url ? url : values.imgUrl;
await addGoods(JSON.stringify(values)).then((r) => {
if (r.data) {


+ 18
- 0
src/pages/goods/newgoods/index.jsx View File

@@ -262,6 +262,24 @@ const GoodsManage = () => {
>
更新
</a>,
<a
key="primary"
type="primary"
onClick={() => {
history.push({
pathname: '/goods/goodsInfo',
query: {
isAdd: true,
values: record,
tabStatus: 'basis'
},
});
// handleModalVisible(true);
// setCurrentRow(record);
}}
>
复制
</a>,
<a
key="primary"
type="primary"


Loading…
Cancel
Save