123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100 |
- import request from '@/utils/request'
- // 获取物料变更单列表
- export function getChangeList(params) {
- return request({
- url: `/material/change/list`,
- method: 'get',
- params: params
- })
- }
- // 物料变更单新增
- export function addChangeList(data) {
- return request({
- url: `/material/change/add`,
- method: 'post',
- data: data
- })
- }
- // 物料变更单修改
- export function editChangeList(data) {
- return request({
- url: `/material/change/edit`,
- method: 'post',
- data: data
- })
- }
- // 物料变更单修改
- export function deleteChangeList(data) {
- return request({
- url: `/material/change/del`,
- method: 'post',
- data: data
- })
- }
- // 获取物料变更单详情
- export function getChangeDetails(id) {
- return request({
- url: `/material/change/query/${id}`,
- method: 'get',
- })
- }
- // 获取物料列表信息
- export function getMaterialList(data) {
- return request({
- url: `/system/material/list?pageSize=${data.pageSize}&pageNum=${data.pageNo}`,
- method: 'post',
- data: data
- })
- }
- // 获取物料基本信息详细信息
- export function getMaterialDetails(id) {
- return request({
- url: `/system/material/details/${id}`,
- method: 'get',
- })
- }
- // 获取生产厂家列表信息
- export function getProductFactory(data) {
- return request({
- url: `/system/archival/queryManufacturer?pageSize=${data.pageSize}&pageNum=${data.pageNo}`,
- method: 'post',
- data: data
- })
- }
- // 获取生产厂家列表信息
- export function getRecordList(params) {
- return request({
- url: `/material/record/list`,
- method: 'get',
- params: params
- })
- }
- // 模板下载
- export function changeDownload(data) {
- return request({
- url: `/material/change/download`,
- method: 'post',
- data: data
- })
- }
- // 导入
- export function changeImport(data) {
- return request({
- url: `/material/change/import`,
- method: 'post',
- data: data
- })
- }
- // 下载失败导入文件数据
- export function downloadFailData(data) {
- return request({
- url: `/material/change/downloadFailData`,
- method: 'post',
- data: data,
- responseType: 'blob',
- })
- }
|