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.
89 lines
1.7 KiB
89 lines
1.7 KiB
import request from '@/utils/request'
|
|
let tokens = window.sessionStorage.getItem('tokenValue')
|
|
export default {
|
|
|
|
// 查询分页列表
|
|
listPage: function(params) {
|
|
return request({
|
|
url: '/cyf/tankinfo/listPage',
|
|
method: 'post',
|
|
data: params,
|
|
headers: {
|
|
'Content-Type': 'application/json',
|
|
'token': tokens
|
|
}
|
|
})
|
|
},
|
|
|
|
addInfo: function(data) {
|
|
return request({
|
|
url: '/cyf/tankinfo/save',
|
|
method: 'post',
|
|
data: data
|
|
});
|
|
},
|
|
|
|
crudeinfoList: function(params) {
|
|
return request({
|
|
url: '/cyf/crudeinfo/list',
|
|
method: 'post',
|
|
data: params,
|
|
headers: {
|
|
'Content-Type': 'application/json',
|
|
'token': tokens
|
|
}
|
|
})
|
|
},
|
|
|
|
selectRecordBySid: function(sid) {
|
|
return request({
|
|
url: '/cyf/crudeinventory/selectRecordBySid/' + sid,
|
|
method: 'get'
|
|
})
|
|
},
|
|
|
|
|
|
fetchBySid: function(sid) {
|
|
return request({
|
|
url: '/cyf/crudeinfo/getCrudeBySid/' + sid
|
|
})
|
|
},
|
|
|
|
updateData: function(data) {
|
|
return request({
|
|
url: '/cyf/crudeinfo/update',
|
|
method: 'post',
|
|
data: data
|
|
});
|
|
},
|
|
|
|
delBySids: function(sid) {
|
|
return request({
|
|
url: '/cyf/crudeinfo/delete/' + sid,
|
|
method: 'delete'
|
|
})
|
|
},
|
|
|
|
// 保存每次读取库存
|
|
saveInfo: function(data) {
|
|
return request({
|
|
url: '/cyf/crudeinventory/save',
|
|
method: 'post',
|
|
data: data
|
|
});
|
|
},
|
|
|
|
// 登记库存列表
|
|
crudeinventoryList: function(data) {
|
|
return request({
|
|
url: '/cyf/crudeinventory/listPage',
|
|
method: 'post',
|
|
data: data,
|
|
headers: {
|
|
'Content-Type': 'application/json',
|
|
'token': tokens
|
|
}
|
|
});
|
|
},
|
|
|
|
}
|
|
|