|
@@ -9,7 +9,7 @@ export const sparePartsList = (params) => {
|
|
url: url,
|
|
url: url,
|
|
data: params,
|
|
data: params,
|
|
method: 'post',
|
|
method: 'post',
|
|
- headers:{
|
|
|
|
|
|
+ headers: {
|
|
'module': encodeURIComponent('列表查询')
|
|
'module': encodeURIComponent('列表查询')
|
|
}
|
|
}
|
|
})
|
|
})
|
|
@@ -21,7 +21,7 @@ export const sparePartsDetailExport = (params) => {
|
|
data: params,
|
|
data: params,
|
|
method: 'post',
|
|
method: 'post',
|
|
responseType: 'blob',
|
|
responseType: 'blob',
|
|
- headers:{
|
|
|
|
|
|
+ headers: {
|
|
'module': encodeURIComponent('导出明细')
|
|
'module': encodeURIComponent('导出明细')
|
|
}
|
|
}
|
|
})
|
|
})
|
|
@@ -32,7 +32,7 @@ export const sparePartsAudit = (params) => {
|
|
return axios({
|
|
return axios({
|
|
url: `/spareParts/audit/${params.sn}`,
|
|
url: `/spareParts/audit/${params.sn}`,
|
|
method: 'get',
|
|
method: 'get',
|
|
- headers:{
|
|
|
|
|
|
+ headers: {
|
|
'module': encodeURIComponent('审核')
|
|
'module': encodeURIComponent('审核')
|
|
}
|
|
}
|
|
})
|
|
})
|
|
@@ -43,7 +43,7 @@ export const sparePartsBatchAudit = (params) => {
|
|
url: `/spareParts/batchAudit`,
|
|
url: `/spareParts/batchAudit`,
|
|
data: params,
|
|
data: params,
|
|
method: 'post',
|
|
method: 'post',
|
|
- headers:{
|
|
|
|
|
|
+ headers: {
|
|
'module': encodeURIComponent('批量审核')
|
|
'module': encodeURIComponent('批量审核')
|
|
}
|
|
}
|
|
})
|
|
})
|
|
@@ -54,7 +54,7 @@ export const sparePartsAuditVerify = (params) => {
|
|
url: `/spareParts/auditVerify`,
|
|
url: `/spareParts/auditVerify`,
|
|
data: params,
|
|
data: params,
|
|
method: 'post',
|
|
method: 'post',
|
|
- headers:{
|
|
|
|
|
|
+ headers: {
|
|
'module': encodeURIComponent('审核校验')
|
|
'module': encodeURIComponent('审核校验')
|
|
}
|
|
}
|
|
})
|
|
})
|
|
@@ -66,7 +66,7 @@ export const sparePartsAuditFail = (params) => {
|
|
data: params,
|
|
data: params,
|
|
method: 'post',
|
|
method: 'post',
|
|
responseType: 'blob',
|
|
responseType: 'blob',
|
|
- headers:{
|
|
|
|
|
|
+ headers: {
|
|
'module': encodeURIComponent('导出审核错误项')
|
|
'module': encodeURIComponent('导出审核错误项')
|
|
}
|
|
}
|
|
})
|
|
})
|
|
@@ -78,7 +78,7 @@ export const sparePartsDelete = (params) => {
|
|
url: `/spareParts/delete/${params.sn}`,
|
|
url: `/spareParts/delete/${params.sn}`,
|
|
data: params,
|
|
data: params,
|
|
method: 'post',
|
|
method: 'post',
|
|
- headers:{
|
|
|
|
|
|
+ headers: {
|
|
'module': encodeURIComponent('删除')
|
|
'module': encodeURIComponent('删除')
|
|
}
|
|
}
|
|
})
|
|
})
|
|
@@ -90,7 +90,7 @@ export const sparePartsDeleteDetail = (params) => {
|
|
url: `/spareParts/deleteDetail/${params.sn}`,
|
|
url: `/spareParts/deleteDetail/${params.sn}`,
|
|
data: params,
|
|
data: params,
|
|
method: 'post',
|
|
method: 'post',
|
|
- headers:{
|
|
|
|
|
|
+ headers: {
|
|
'module': encodeURIComponent('删除')
|
|
'module': encodeURIComponent('删除')
|
|
}
|
|
}
|
|
})
|
|
})
|
|
@@ -105,7 +105,7 @@ export const sparePartsDetailList = (params) => {
|
|
url: url,
|
|
url: url,
|
|
data: params,
|
|
data: params,
|
|
method: 'post',
|
|
method: 'post',
|
|
- headers:{
|
|
|
|
|
|
+ headers: {
|
|
'module': encodeURIComponent('明细列表查询')
|
|
'module': encodeURIComponent('明细列表查询')
|
|
}
|
|
}
|
|
})
|
|
})
|
|
@@ -119,6 +119,17 @@ export const sparePartsPageCount = (params) => {
|
|
method: 'post'
|
|
method: 'post'
|
|
})
|
|
})
|
|
}
|
|
}
|
|
|
|
+// 散件入库 明细列表 基础信息
|
|
|
|
+export const queryDetailCount = (params) => {
|
|
|
|
+ const url = `/spareParts/queryBySn/${params.sn}`
|
|
|
|
+ return axios({
|
|
|
|
+ url: url,
|
|
|
|
+ method: 'post',
|
|
|
|
+ headers: {
|
|
|
|
+ 'module': encodeURIComponent('基础信息')
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+}
|
|
|
|
|
|
// 新增散件入库单
|
|
// 新增散件入库单
|
|
export const sparePartsSave = (params) => {
|
|
export const sparePartsSave = (params) => {
|
|
@@ -126,8 +137,8 @@ export const sparePartsSave = (params) => {
|
|
url: `/spareParts/save`,
|
|
url: `/spareParts/save`,
|
|
data: params,
|
|
data: params,
|
|
method: 'post',
|
|
method: 'post',
|
|
- headers:{
|
|
|
|
- 'module': encodeURIComponent(params.id?'编辑':'新增')
|
|
|
|
|
|
+ headers: {
|
|
|
|
+ 'module': encodeURIComponent(params.id ? '编辑' : '新增')
|
|
}
|
|
}
|
|
})
|
|
})
|
|
}
|
|
}
|
|
@@ -138,8 +149,8 @@ export const sparePartsSaveDetail = (params) => {
|
|
url: `/spareParts/saveDetail`,
|
|
url: `/spareParts/saveDetail`,
|
|
data: params,
|
|
data: params,
|
|
method: 'post',
|
|
method: 'post',
|
|
- headers:{
|
|
|
|
- 'module': encodeURIComponent(params.id?'编辑':'新增产品')
|
|
|
|
|
|
+ headers: {
|
|
|
|
+ 'module': encodeURIComponent(params.id ? '编辑' : '新增产品')
|
|
}
|
|
}
|
|
})
|
|
})
|
|
}
|
|
}
|
|
@@ -173,7 +184,7 @@ export const sparePartsDetailBatchInsert = params => {
|
|
url: '/spareParts/detail/batchInsert',
|
|
url: '/spareParts/detail/batchInsert',
|
|
data: params,
|
|
data: params,
|
|
method: 'post',
|
|
method: 'post',
|
|
- headers:{
|
|
|
|
|
|
+ headers: {
|
|
'module': encodeURIComponent('导入')
|
|
'module': encodeURIComponent('导入')
|
|
}
|
|
}
|
|
})
|
|
})
|
|
@@ -186,7 +197,7 @@ export const sparePartsDetailFailExcel = (params) => {
|
|
method: 'post',
|
|
method: 'post',
|
|
data: params.list,
|
|
data: params.list,
|
|
responseType: 'blob',
|
|
responseType: 'blob',
|
|
- headers:{
|
|
|
|
|
|
+ headers: {
|
|
'module': encodeURIComponent('导出错误项')
|
|
'module': encodeURIComponent('导出错误项')
|
|
}
|
|
}
|
|
})
|
|
})
|
|
@@ -201,7 +212,7 @@ export const queryDetailStockPage = (params) => {
|
|
url: url,
|
|
url: url,
|
|
data: params,
|
|
data: params,
|
|
method: 'post',
|
|
method: 'post',
|
|
- headers:{
|
|
|
|
|
|
+ headers: {
|
|
'module': encodeURIComponent('明细列表查询')
|
|
'module': encodeURIComponent('明细列表查询')
|
|
}
|
|
}
|
|
})
|
|
})
|