1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- import request from "@/utils/request"
- export const getList = (query) => {
- return request.get({
- url: '/client/c/grainReserveInspection/page',
- data: query,
- })
- }
- export const add = (data) => {
- return request.post({
- url: '/client/c/grainReserveInspection/add',
- data: data,
- })
- }
- export const update = (data) => {
- return request.post({
- url: '/client/c/grainReserveInspection/edit',
- data: data,
- })
- }
- export const remove = (id) => {
- const data = [{id}]
- return request.post({
- url: '/client/c/grainReserveInspection/delete',
- data: data,
- })
- }
- export const getDetail = (id) => {
- const query = {id}
- return request.get({
- url: '/client/c/grainReserveInspection/detail',
- data: query,
- })
- }
- export const getOrgInfoOnly = () => {
- return request.get({
- url: '/client/c/grainReserveInspection/getOrgInfoOnly',
- })
- }
- export const getStorehouseOrWarehouse = (orgId, storeHouseId) => {
- const query = {}
- if(storeHouseId) {
- query.orgId = orgId
- query.storeHouseId = storeHouseId
- }
- return request.get({
- url: `/client/c/grainReserveInspection/getStorehouseOrWarehouse/${orgId}`,
- data: query
- })
- }
- export const getCd = (orgId, houseId, wareId) => {
- return request.get({
- url: `/client/c/grainReserveInspection/getCd/${orgId}/${houseId}/${wareId}`,
- })
- }
|