|
|
@@ -9,7 +9,7 @@ import CreateForm from './components/CreateForm'; |
|
|
|
import { getDataBaseUrl } from '@/global_data'; |
|
|
|
import { gettree, goods, removeGoods, addGoods, updateGoods, GetDeviceTechnology, TechnologyTemplateExport, GoodsTechnologyExport, GetAliyunRequestURL, Getgoodslist } from './service'; |
|
|
|
|
|
|
|
const aliyunHostUrl = 'https://bpa.oss-cn-chengdu.aliyuncs.com/goods/'; |
|
|
|
const aliyunHostUrl = 'https://bpa.oss-cn-chengdu.aliyuncs.com/hkerp/test/goods/'; |
|
|
|
|
|
|
|
const GoodsManage = () => { |
|
|
|
const [goodsTypes, setGoodsTypes] = useState([]); |
|
|
@@ -331,7 +331,7 @@ const GoodsManage = () => { |
|
|
|
: Upload.LIST_IGNORE; |
|
|
|
}, |
|
|
|
name: 'file', |
|
|
|
action: getDataBaseUrl()+'/api/goods/exportgood', |
|
|
|
action: getDataBaseUrl()+'/api/goods/GoodsImport', |
|
|
|
headers: { |
|
|
|
// authorization: 'authorization-text', |
|
|
|
Authorization: 'Bearer ' + localStorage.getItem('token') |
|
|
@@ -483,7 +483,7 @@ const GoodsManage = () => { |
|
|
|
key="primary" |
|
|
|
onClick={async () => { |
|
|
|
const link = document.createElement('a'); |
|
|
|
link.href = "https://bpa.oss-cn-chengdu.aliyuncs.com/newGoods/商品信息导入模板.xlsx"; |
|
|
|
link.href = "https://bpa.oss-cn-chengdu.aliyuncs.com/hkerp/test/goods/商品导入模版.xlsx"; |
|
|
|
link.click(); |
|
|
|
}} |
|
|
|
> |
|
|
|