import request from '@/utils/request.js'
|
|
export function getFqcCheckList() {
|
return request({
|
'url': '/fqc/getFqcCheckList?userNo=' + uni.getStorageSync('userInfo').code,
|
'method': 'post',
|
'header': {
|
'Content-Type': 'application/json',
|
'dataType': 'json',
|
'Accept': 'application/json'
|
}
|
})
|
}
|
|
export function getFqcCheckListByNo(item) {
|
return request({
|
'url': '/fqc/getFqcCheckListByNo?item=' + item,
|
'method': 'post',
|
'header': {
|
'Content-Type': 'application/json',
|
'dataType': 'json',
|
'Accept': 'application/json'
|
}
|
})
|
}
|
|
export function getFqcInspectionItems(checkNo) {
|
return request({
|
'url': '/fqc/getFqcInspectionItems?checkNo=' + checkNo,
|
'method': 'post',
|
'header': {
|
'Content-Type': 'application/json',
|
'dataType': 'json',
|
'Accept': 'application/json'
|
}
|
})
|
}
|
|
export function getFqcSampleResult(mainId) {
|
return request({
|
'url': '/fqc/getFqcSampleResult?mainId=' + mainId,
|
'method': 'post',
|
'header': {
|
'Content-Type': 'application/json',
|
'dataType': 'json',
|
'Accept': 'application/json'
|
}
|
})
|
}
|
|
export function getFqcByCode(code) {
|
return request({
|
'url': '/fqc/getFqcByCode?code=' + code,
|
'method': 'post',
|
'header': {
|
'Content-Type': 'application/json',
|
'dataType': 'json',
|
'Accept': 'application/json'
|
}
|
})
|
}
|
|
export function getFqcBarCode(releaseNo) {
|
return request({
|
'url': '/fqc/getFqcBarCode?releaseNo=' + releaseNo,
|
'method': 'post',
|
'header': {
|
'Content-Type': 'application/json',
|
'dataType': 'json',
|
'Accept': 'application/json'
|
}
|
})
|
}
|
|
export function saveFqcBadQty(data) {
|
return request({
|
'url': '/fqc/saveFqcBadQty',
|
'method': 'post',
|
'data':data,
|
'header': {
|
'Content-Type': 'application/json',
|
'dataType': 'json',
|
'Accept': 'application/json'
|
}
|
})
|
}
|
|
export function saveFqcType(pid,info) {
|
return request({
|
'url': '/fqc/saveFqcType?pid=' + pid +'&userNo=' + uni.getStorageSync('userInfo').code,
|
'method': 'post',
|
'data':info,
|
'header': {
|
'Content-Type': 'application/json',
|
'dataType': 'json',
|
'Accept': 'application/json'
|
}
|
})
|
}
|
|
export function saveFqc(pid) {
|
return request({
|
'url': '/fqc/saveFqc?pid=' + pid +'&userNo=' + uni.getStorageSync('userInfo').code,
|
'method': 'post',
|
'header': {
|
'Content-Type': 'application/json',
|
'dataType': 'json',
|
'Accept': 'application/json'
|
}
|
})
|
}
|