erp 新洋电子
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

190 lines
3.0 KiB

4 years ago
import request from "@/utils/request.js";
import functions from "@/utils/functions.js";
/**
* 登录
* @param {Object} data
*/
export function login(data) {
console.log(data)
return request({
url: `${functions.getDomain()}/api/login`,
method: "post",
data
});
}
4 years ago
/**
* 修改密码
* @param {Object} data
*/
export function modifyPassword(data) {
console.log(data)
return request({
url: `${functions.getDomain()}/api/modify-password`,
method: "post",
data
});
}
4 years ago
/**
* 获取权限
* @param {Object} data
*/
export function power(data) {
console.log(data)
return request({
url: `${functions.getDomain()}/api/power`,
method: "get",
data
});
}
/**
* 首检冲压喷涂小五金组装巡检列表
* @param {Object} data
*/
export function firstCheckLists(data) {
console.log(data)
return request({
url: `${functions.getDomain()}/api/first-check-lists`,
method: "get",
data
});
}
4 years ago
/**
* 首检详情
* @param {Object} data
*/
export function firstCheckDetail(data) {
console.log(data)
return request({
url: `${functions.getDomain()}/api/first-check-detail`,
method: "post",
data
});
4 years ago
}
/**
* 首检提交
* @param {Object} data
*/
export function firstCheckAdd(data) {
console.log(data)
return request({
url: `${functions.getDomain()}/api/first-check-add`,
method: "post",
data
});
}
4 years ago
/**
* 首检审核
* @param {Object} data
*/
export function firstCheckSure(data) {
console.log(data)
return request({
url: `${functions.getDomain()}/api/first-check-sure`,
method: "post",
data
});
}
/**
* 冲压巡检提交
* @param {Object} data
*/
export function cyCheckAdd(data) {
console.log(data)
return request({
url: `${functions.getDomain()}/api/cy-check-add`,
method: "post",
data
});
}
/**
* 冲压巡检提交
* @param {Object} data
*/
export function cyCheckDetail(data) {
console.log(data)
return request({
url: `${functions.getDomain()}/api/cy-check-detail`,
method: "post",
data
});
4 years ago
}
4 years ago
/**
* 不良处置情况
* @param {Object} data
*/
export function bad(data) {
console.log(data)
return request({
url: `${functions.getDomain()}/api/bad`,
method: "get",
data
});
}
/**
* 配置项获取
* @param {Object} data
*/
export function getCheckConfSet(data) {
console.log(data)
return request({
url: `${functions.getDomain()}/api/get-check-conf-set`,
method: "post",
data
});
}
/**
* 喷涂巡检提交
* @param {Object} data
*/
export function ptCheckAdd(data) {
console.log(data)
return request({
url: `${functions.getDomain()}/api/pt-check-add`,
method: "post",
data
});
}
/**
* 组装巡检提交
* @param {Object} data
*/
export function zzCheckAdd(data) {
console.log(data)
return request({
url: `${functions.getDomain()}/api/zz-check-add`,
method: "post",
data
});
}
/**
* 五金巡检提交
* @param {Object} data
*/
export function wjCheckAdd(data) {
console.log(data)
return request({
url: `${functions.getDomain()}/api/wj-check-add`,
method: "post",
data
});
}