/* * @Author: zwq * @Date: 2020-12-29 16:00:14 * @LastEditors: zwq * @LastEditTime: 2021-01-25 09:59:10 * @Description: */ import request from '@/utils/request' export function ProductPoolList(data) { // 获取产品池列表 return request({ url: '/basic/product/page', method: 'post', data }) } export function ProductPoolDetail(id) { // 获取产品池单条数据 return request({ url: '/basic/product/get', method: 'post', data: { id } }) } export function ProductPoolUpdate(data) { // 更新产品池单条数据 return request({ url: '/basic/product/update', method: 'post', data }) } export function ProductPoolAdd(data) { // 新增产品池单条数据 return request({ url: '/basic/product/add', method: 'post', data }) } export function ProductPoolCode() { // 获取产品池code return request({ url: '/basic/product/get-code', method: 'post' }) } export function ProductPoolDelete(id) { // 删除产品池单条数据 return request({ url: '/basic/product/delete', method: 'post', data: { id } }) } export function ProductPoolUnit() { // 获取产品池单位数据 return request({ url: '/common/data-dictionary/sysDictDataList', method: 'post' }) }