You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
566 B
24 lines
566 B
|
2 years ago
|
import request from "@/router/axios";
|
||
|
|
//查询商品信息
|
||
|
|
export const getGoodInfo = () => {
|
||
|
|
return request({
|
||
|
|
url: "/api/blade-system/dict-biz/get-goods-info",
|
||
|
|
method: "get",
|
||
|
|
});
|
||
|
|
};
|
||
|
|
//保存商品信息
|
||
|
|
export const saveGoodInfo = (data) => {
|
||
|
|
let formdata = new FormData();
|
||
|
|
Object.keys(data).map(key => {
|
||
|
|
formdata.append(key, data[key]);
|
||
|
|
})
|
||
|
|
return request({
|
||
|
|
url: "/api/blade-system/dict-biz/save-goods-info",
|
||
|
|
method: "post",
|
||
|
|
headers: {
|
||
|
|
'Content-Type': 'application/x-www-form-urlencoded'
|
||
|
|
},
|
||
|
|
data: formdata
|
||
|
|
});
|
||
|
|
};
|