This commit is contained in:
liushuai
2019-07-01 12:45:35 +08:00
parent 595e393bfb
commit b45b25ff50
3 changed files with 449 additions and 58 deletions

View File

@@ -0,0 +1,177 @@
import request from '@/utils/request'
// 初始化 不合格原因
export function initReasons() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '质检管理_不合格原因_查询数据'
}
})
}
// 初始化 不合格处理
export function initHandle() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '质检管理_不合格处理_查询数据'
}
})
}
// 初始化 质检尺寸
export function initSize() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '质检管理_质检尺寸_基础表_查询数据'
}
})
}
// 初始化 质检外观
export function initAppearance() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '质检管理_质检外观_基础表_查询数据'
}
})
}
// 初始化 质检形位
export function initPosition() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '质检管理_质检形位_基础表_查询数据'
}
})
}
// 增加 不合格原因
export function addReasons(num) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '质检管理_不合格原因_增加数据',
param: '不合格原因文本=' + num
}
})
}
// 增加 不合格处理
export function addHandle(num) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '质检管理_不合格处理_增加数据',
param: '不合格处理文本=' + num
}
})
}
// 增加 质检尺寸
export function addSize(num) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '质检管理_质检尺寸_基础表_增加数据',
param: '质检尺寸=' + num
}
})
}
// 增加 质检外观
export function addAppearance(num) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '质检管理_质检外观_基础表_增加数据',
param: '质检外观=' + num
}
})
}
// 增加 质检形位
export function addPosition(num) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '质检管理_质检形位_基础表_增加数据',
param: '质检形位=' + num
}
})
}
// 删除 不合格原因
export function deleteReasons(num) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '质检管理_不合格原因_删除数据',
param: '不合格原因=' + num
}
})
}
// 删除 不合格处理
export function deleteHandle(num) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '质检管理_不合格处理_删除数据',
param: '不合格处理=' + num
}
})
}
// 删除 质检尺寸
export function deleteSize(num) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '质检管理_质检尺寸_基础表_删除数据',
param: '质检尺寸流水号=' + num
}
})
}
// 删除 质检外观
export function deleteAppearance(num) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '质检管理_质检外观_基础表_删除数据',
param: '质检外观流水号=' + num
}
})
}
// 删除 质检形位
export function deletePosition(num) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '质检管理_质检形位_基础表_删除数据',
param: '质检形位流水号=' + num
}
})
}