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.
69 lines
1.3 KiB
69 lines
1.3 KiB
import request from '@/utils/request'
|
|
let tokens = window.sessionStorage.getItem('tokenValue')
|
|
export default {
|
|
|
|
// 查询分页列表
|
|
listPage: function(params) {
|
|
return request({
|
|
url: '/cyf/rawinventory/listPage',
|
|
method: 'post',
|
|
data: params,
|
|
headers: {
|
|
'Content-Type': 'application/json',
|
|
'token': tokens
|
|
}
|
|
})
|
|
},
|
|
|
|
addInfo: function(data) {
|
|
return request({
|
|
url: '/cyf/rawinventory/save',
|
|
method: 'post',
|
|
data: data
|
|
});
|
|
},
|
|
|
|
rawMaterialType: function(params) {
|
|
return request({
|
|
url: '/cyf/rawtype/typeList',
|
|
method: 'post',
|
|
data: params,
|
|
headers: {
|
|
'Content-Type': 'application/json',
|
|
'token': tokens
|
|
}
|
|
})
|
|
},
|
|
|
|
|
|
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
|
|
});
|
|
},
|
|
|
|
}
|
|
|