59 lines
1.1 KiB
JavaScript
59 lines
1.1 KiB
JavaScript
/*
|
|
* @Author: zwq
|
|
* @Date: 2020-12-29 16:00:14
|
|
* @LastEditors: zwq
|
|
* @LastEditTime: 2020-12-30 11:54:24
|
|
* @Description:
|
|
*/
|
|
import request from '@/utils/request'
|
|
|
|
export function factoryList(data) { // 获取工厂列表
|
|
return request({
|
|
url: '/basic/factory/page',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
export function factoryDetail(id) { // 获取工厂单条数据
|
|
const data = {
|
|
'id': id
|
|
}
|
|
return request({
|
|
url: '/basic/factory/get',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
export function factoryUpdate(data) { // 更新工厂单条数据
|
|
return request({
|
|
url: '/basic/factory/update',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
export function factoryAdd(data) { // 新增工厂单条数据
|
|
return request({
|
|
url: '/basic/factory/add',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
export function factoryCode() { // 获取工厂code
|
|
return request({
|
|
url: '/basic/factory/get-code',
|
|
method: 'post'
|
|
})
|
|
}
|
|
|
|
export function factoryDelete(id) { // 删除工厂单条数据
|
|
return request({
|
|
url: '/basic/factory/delete',
|
|
method: 'post',
|
|
data: { id }
|
|
})
|
|
}
|