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.
 
 
 

621 lines
9.8 KiB

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
});
}
/**
* 修改密码
* @param {Object} data
*/
export function modifyPassword(data) {
console.log(data)
return request({
url: `${functions.getDomain()}/api/modify-password`,
method: "post",
data
});
}
/**
* 获取权限
* @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
});
}
/**
* 首检详情
* @param {Object} data
*/
export function firstCheckDetail(data) {
console.log(data)
return request({
url: `${functions.getDomain()}/api/first-check-detail`,
method: "post",
data
});
}
/**
* 首检提交
* @param {Object} data
*/
export function firstCheckAdd(data) {
console.log(data)
return request({
url: `${functions.getDomain()}/api/first-check-add`,
method: "post",
data
});
}
/**
* 首检审核
* @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
});
}
/**
* 不良处置情况
* @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
});
}
/**
* 开线
* @param {Object} data
*/
export function openLine(data) {
console.log(data)
return request({
url: `${functions.getDomain()}/api/open-line`,
method: "post",
data
});
}
/**
* 投入统计
* @param {Object} data
*/
export function trtj(data) {
console.log(data)
return request({
url: `${functions.getDomain()}/api/i-s`,
method: "post",
data
});
}
/**
* 返修报工
* @param {Object} data
*/
export function repair(data) {
console.log(data)
return request({
url: `${functions.getDomain()}/api/repair`,
method: "post",
data
});
}
/**
* 不良原因
* @param {Object} data
*/
export function badReasons(data) {
console.log(data)
return request({
url: `${functions.getDomain()}/api/bad-reasons`,
method: "post",
data
});
}
/**
* 下线记录
* @param {Object} data
*/
export function offline(data) {
console.log(data)
return request({
url: `${functions.getDomain()}/api/offline`,
method: "post",
data
});
}
/**
* 停线原因
* @param {Object} data
*/
export function stopLineReason(data) {
console.log(data)
return request({
url: `${functions.getDomain()}/api/stop-line-reason`,
method: "get",
data
});
}
/**
* 停线记录
* @param {Object} data
*/
export function stopRecord(data) {
console.log(data)
return request({
url: `${functions.getDomain()}/api/stop-record`,
method: "post",
data
});
}
/**
* 获取设备选择数据
* @param {Object} data
*/
export function device(data) {
console.log(data)
return request({
url: `${functions.getDomain()}/api/device`,
method: "get",
data
});
}
/**
* 获取模具选择数据
* @param {Object} data
*/
export function mode(data) {
console.log(data)
return request({
url: `${functions.getDomain()}/api/mode`,
method: "get",
data
});
}
/**
* 原材料列表
* @param {Object} data
*/
export function purchaseLists(data) {
console.log(data)
return request({
url: `${functions.getDomain()}/api/purchase-lists`,
method: "get",
data
});
}
/**
* 原材料检验项目
* @param {Object} data
*/
export function materialItem(data) {
console.log(data)
return request({
url: `${functions.getDomain()}/api/material-item`,
method: "get",
data
});
}
/**
* 获取字典的配置(详情查看字典)
* @param {Object} data
*/
export function dictionary(data) {
console.log(data)
return request({
url: `${functions.getDomain()}/api/dictionary`,
method: "get",
data
});
}
/**
* 原材料检验单
* @param {Object} data
*/
export function materialCheckForm(data) {
console.log(data)
return request({
url: `${functions.getDomain()}/api/material-check-form`,
method: "post",
data
});
}
/**
* 新增冲压检测列表
* @param {Object} data
*/
export function newCheckCyList(data) {
console.log(data)
return request({
url: `${functions.getDomain()}/api/new-check-cy-lists`,
method: "post",
data
});
}
/**
* 新增首检检测列表
* @param {Object} data
*/
export function newFirstCheckList(data) {
console.log(data)
return request({
url: `${functions.getDomain()}/api/new-first-check-lists`,
method: "post",
data
});
}
/**
* 计划喷涂巡检列表
* @param {Object} data
*/
export function newCheckPtList(data) {
console.log(data)
return request({
url: `${functions.getDomain()}/api/new-check-pt-lists`,
method: "post",
data
});
}
/**
* 计划组装巡检列表
* @param {Object} data
*/
export function newCheckZzList(data) {
console.log(data)
return request({
url: `${functions.getDomain()}/api/new-check-zz-lists`,
method: "post",
data
});
}
/**
* 计划五金巡检列表
* @param {Object} data
*/
export function newCheckWjList(data) {
console.log(data)
return request({
url: `${functions.getDomain()}/api/new-check-wj-lists`,
method: "post",
data
});
}
/**
* tcq审核
* @param {Object} data
*/
export function tcqCheckSure(data) {
console.log(data)
return request({
url: `${functions.getDomain()}/api/tcq-check-sure`,
method: "post",
data
});
}
/**
* tcq详情
* @param {Object} data
*/
export function tcqCheckDetail(data) {
console.log(data)
return request({
url: `${functions.getDomain()}/api/tcq-check-detail`,
method: "post",
data
});
}
/**
* TCQ检测列表
* @param {Object} data
*/
export function newTcqLists(data) {
console.log(data)
return request({
url: `${functions.getDomain()}/api/new-tcq-lists`,
method: "post",
data
});
}
/**
* tcq检测提交
* @param {Object} data
*/
export function tcqCheckAdd(data) {
console.log(data)
return request({
url: `${functions.getDomain()}/api/tcq-check-add`,
method: "post",
data
});
}
/**
* 产品TCQ配置值
* @param {Object} data
*/
export function productTcqConf(data) {
console.log(data)
return request({
url: `${functions.getDomain()}/api/product-tcq-conf`,
method: "get",
data
});
}
/**
* 产品TCQ配置值
* @param {Object} data
*/
export function rawFormDetail(data) {
console.log(data)
return request({
url: `${functions.getDomain()}/api/raw-form-detail`,
method: "get",
data
});
}
/**
* 员工
* @param {Object} data
*/
export function staff(data) {
console.log(data)
return request({
url: `${functions.getDomain()}/api/staff`,
method: "get",
data
});
}
/**
* 投入统计详情
* @param {Object} data
*/
export function putInDetail(data) {
console.log(data)
return request({
url: `${functions.getDomain()}/api/put-in-detail`,
method: "get",
data
});
}
/**
* 不良品详情
* @param {Object} data
*/
export function noDetail(data) {
console.log(data)
return request({
url: `${functions.getDomain()}/api/no-detail`,
method: "get",
data
});
}
/**
* 不良品详情
* @param {Object} data
*/
export function repairDetail(data) {
console.log(data)
return request({
url: `${functions.getDomain()}/api/repair-detail`,
method: "get",
data
});
}
/**
* 停线列表
* @param {Object} data
*/
export function stopList(data) {
console.log(data)
return request({
url: `${functions.getDomain()}/api/stop-list`,
method: "get",
data
});
}
/**
* 停线列表
* @param {Object} data
*/
export function stopDetail(data) {
console.log(data)
return request({
url: `${functions.getDomain()}/api/stop-detail`,
method: "get",
data
});
}
/**
* 模具保养列表
* @param {Object} data
*/
export function modeList(data) {
console.log(data)
return request({
url: `${functions.getDomain()}/api/mode-lists`,
method: "get",
data
});
}
/**
* 线路列表
* @param {Object} data
*/
export function lineList(data) {
console.log(data)
return request({
url: `${functions.getDomain()}/api/line-lists`,
method: "get",
data
});
}
/**
* 设备列表
* @param {Object} data
*/
export function lineCheckDevice(data) {
console.log(data)
return request({
url: `${functions.getDomain()}/api/line-check-device`,
method: "get",
data
});
}