12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- import request from "../../common/request"
- import { PUBLIC_MODULES_PATH as prefix } from "../AppPath";
- export default {
- list: function (param) {
- return request({
- url: prefix + '/material/management/list',
- method: 'get',
- params: param
- })
- },
- save: function (param) {
- return request({
- url: prefix + '/material/management/save',
- method: 'post',
- data: param
- })
- },
- findById: function (id) {
- return request({
- url: prefix + '/material/management/findById',
- method: 'get',
- params: {id: id}
- })
- },
- remove: function (id) {
- return request({
- url: prefix + '/material/management/remove',
- method: 'get',
- params: {id: id}
- })
- },
- updateStatusById: function (param) {
- return request({
- url: prefix + '/material/management/updateStatusById',
- method: 'post',
- data: param
- })
- },
- exportFile: function (params) {
- return request({
- url: prefix + '/reimbursementApproval/info/exportFile',
- method: 'get',
- params: params,
- responseType: 'blob'
- })
- },
- findTradeByTypeId: function (typeId) {
- return request({
- url: prefix + '/material/management/findTradeByTypeId',
- method: 'get',
- params: {typeId: typeId}
- })
- }
- }
|