完善仓库接口
This commit is contained in:
@@ -5,7 +5,7 @@ export default {
|
|||||||
// 查询分页列表
|
// 查询分页列表
|
||||||
listPage: function(params) {
|
listPage: function(params) {
|
||||||
return request({
|
return request({
|
||||||
url: '/wms/apiadmin/base/wmswarehouserack/listPage',
|
url: '/wms/apiadmin/warehouserack/listPage',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: params,
|
data: params,
|
||||||
})
|
})
|
||||||
@@ -15,7 +15,7 @@ export default {
|
|||||||
// 修改是否可用状态
|
// 修改是否可用状态
|
||||||
updateIsEnable: function(sid,isEnable) {
|
updateIsEnable: function(sid,isEnable) {
|
||||||
return request({
|
return request({
|
||||||
url: '/wms/apiadmin/base/wmswarehouserack/updateIsEnable/'+sid+"/"+isEnable
|
url: '/wms/apiadmin/warehouserack/updateIsEnable/'+sid+"/"+isEnable
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -23,7 +23,7 @@ export default {
|
|||||||
// 新增、保存
|
// 新增、保存
|
||||||
saveGoodsShelves: function(data) {
|
saveGoodsShelves: function(data) {
|
||||||
return request({
|
return request({
|
||||||
url: '/wms/apiadmin/base/wmswarehouserack/saveOrUpdate',
|
url: '/wms/apiadmin/warehouserack/saveOrUpdate',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: data
|
data: data
|
||||||
});
|
});
|
||||||
@@ -32,7 +32,7 @@ export default {
|
|||||||
// 初始化
|
// 初始化
|
||||||
initGoodsShelves: function(data) {
|
initGoodsShelves: function(data) {
|
||||||
return request({
|
return request({
|
||||||
url: '/wms/apiadmin/base/wmswarehouserack/initialization/' + data,
|
url: '/wms/apiadmin/warehouserack/initialization/' + data,
|
||||||
method: 'get'
|
method: 'get'
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ export default {
|
|||||||
// 查询分页列表
|
// 查询分页列表
|
||||||
listPage: function(params) {
|
listPage: function(params) {
|
||||||
return request({
|
return request({
|
||||||
url: '/wms/apiadmin/base/wmswarehouseinfo/listPage',
|
url: '/wms/apiadmin/warehouseinfo/listPage',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: params,
|
data: params,
|
||||||
headers: { 'Content-Type': 'application/json' }
|
headers: { 'Content-Type': 'application/json' }
|
||||||
@@ -14,7 +14,7 @@ export default {
|
|||||||
// 仓库查询
|
// 仓库查询
|
||||||
getAllWarehouse: function(params) {
|
getAllWarehouse: function(params) {
|
||||||
return request({
|
return request({
|
||||||
url: '/wms/apiadmin/base/wmswarehouseinfo/listAll',
|
url: '/wms/apiadmin/warehouseinfo/listAll',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: params,
|
data: params,
|
||||||
headers: {
|
headers: {
|
||||||
@@ -27,7 +27,7 @@ export default {
|
|||||||
// 修改是否可用状态
|
// 修改是否可用状态
|
||||||
updateIsEnable: function(sid,isEnable) {
|
updateIsEnable: function(sid,isEnable) {
|
||||||
return request({
|
return request({
|
||||||
url: '/wms/apiadmin/base/wmswarehouseinfo/updateStatus/'+sid+"/"+isEnable
|
url: '/wms/apiadmin/warehouseinfo/updateStatus/'+sid+"/"+isEnable
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -35,7 +35,7 @@ export default {
|
|||||||
// 新增、保存
|
// 新增、保存
|
||||||
saveWarehouse: function(data) {
|
saveWarehouse: function(data) {
|
||||||
return request({
|
return request({
|
||||||
url: '/wms/apiadmin/base/wmswarehouseinfo/saveOrUpdate',
|
url: '/wms/apiadmin/warehouseinfo/saveOrUpdate',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: data,
|
data: data,
|
||||||
headers: { 'Content-Type': 'application/json' }
|
headers: { 'Content-Type': 'application/json' }
|
||||||
@@ -45,7 +45,7 @@ export default {
|
|||||||
// 初始化
|
// 初始化
|
||||||
initWarehouse: function(data) {
|
initWarehouse: function(data) {
|
||||||
return request({
|
return request({
|
||||||
url: '/wms/apiadmin/base/wmswarehouseinfo/initialization/' + data,
|
url: '/wms/apiadmin/warehouseinfo/initialization/' + data,
|
||||||
method: 'get'
|
method: 'get'
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ export default {
|
|||||||
// 查询分页列表
|
// 查询分页列表
|
||||||
listPage: function(params) {
|
listPage: function(params) {
|
||||||
return request({
|
return request({
|
||||||
url: '/wms/apiadmin/base/wmswarehousearea/listPage',
|
url: '/wms/apiadmin/warehousearea/listPage',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: params,
|
data: params,
|
||||||
})
|
})
|
||||||
@@ -14,7 +14,7 @@ export default {
|
|||||||
// 库区查询
|
// 库区查询
|
||||||
getAllWarehousearea: function(params) {
|
getAllWarehousearea: function(params) {
|
||||||
return request({
|
return request({
|
||||||
url: '/wms/apiadmin/base/wmswarehousearea/listAll',
|
url: '/wms/apiadmin/warehousearea/listAll',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: params,
|
data: params,
|
||||||
headers: {
|
headers: {
|
||||||
@@ -27,7 +27,7 @@ export default {
|
|||||||
// 修改是否可用状态
|
// 修改是否可用状态
|
||||||
updateIsEnable: function(sid,isEnable) {
|
updateIsEnable: function(sid,isEnable) {
|
||||||
return request({
|
return request({
|
||||||
url: '/wms/apiadmin/base/wmswarehousearea/updateIsEnable/'+sid+"/"+isEnable
|
url: '/wms/apiadmin/warehousearea/updateIsEnable/'+sid+"/"+isEnable
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -35,7 +35,7 @@ export default {
|
|||||||
// 新增、保存
|
// 新增、保存
|
||||||
saveWarehousearea: function(data) {
|
saveWarehousearea: function(data) {
|
||||||
return request({
|
return request({
|
||||||
url: '/wms/apiadmin/base/wmswarehousearea/saveOrUpdate',
|
url: '/wms/apiadmin/warehousearea/saveOrUpdate',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: data
|
data: data
|
||||||
});
|
});
|
||||||
@@ -44,7 +44,7 @@ export default {
|
|||||||
// 初始化
|
// 初始化
|
||||||
initWarehousearea: function(data) {
|
initWarehousearea: function(data) {
|
||||||
return request({
|
return request({
|
||||||
url: '/wms/apiadmin/base/wmswarehousearea/initialization/' + data,
|
url: '/wms/apiadmin/warehousearea/initialization/' + data,
|
||||||
method: 'get'
|
method: 'get'
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ export default {
|
|||||||
// 查询分页列表
|
// 查询分页列表
|
||||||
listPage: function(params) {
|
listPage: function(params) {
|
||||||
return request({
|
return request({
|
||||||
url: '/wms/apiadmin/base/wmswarehouseareatype/listPage',
|
url: '/wms/apiadmin/warehouseareatype/listPage',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: params,
|
data: params,
|
||||||
})
|
})
|
||||||
@@ -15,7 +15,7 @@ export default {
|
|||||||
// 库去类型查询
|
// 库去类型查询
|
||||||
getAllWarehouseareatype: function(params) {
|
getAllWarehouseareatype: function(params) {
|
||||||
return request({
|
return request({
|
||||||
url: '/wms/apiadmin/base/wmswarehouseareatype/listAll',
|
url: '/wms/apiadmin/warehouseareatype/listAll',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: params,
|
data: params,
|
||||||
headers: {
|
headers: {
|
||||||
@@ -29,7 +29,7 @@ export default {
|
|||||||
// 修改是否可用状态
|
// 修改是否可用状态
|
||||||
updateIsEnable: function(sid,isEnable) {
|
updateIsEnable: function(sid,isEnable) {
|
||||||
return request({
|
return request({
|
||||||
url: '/wms/apiadmin/base/wmswarehouseareatype/updateIsEnable/'+sid+"/"+isEnable
|
url: '/wms/apiadmin/warehouseareatype/updateIsEnable/'+sid+"/"+isEnable
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -37,7 +37,7 @@ export default {
|
|||||||
// 新增、保存
|
// 新增、保存
|
||||||
saveWarehousearea: function(data) {
|
saveWarehousearea: function(data) {
|
||||||
return request({
|
return request({
|
||||||
url: '/wms/apiadmin/base/wmswarehouseareatype/saveOrUpdate',
|
url: '/wms/apiadmin/warehouseareatype/saveOrUpdate',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: data
|
data: data
|
||||||
});
|
});
|
||||||
@@ -46,7 +46,7 @@ export default {
|
|||||||
// 初始化
|
// 初始化
|
||||||
initWarehousearea: function(data) {
|
initWarehousearea: function(data) {
|
||||||
return request({
|
return request({
|
||||||
url: '/wms/apiadmin/base/wmswarehouseareatype/initialization/' + data,
|
url: '/wms/apiadmin/warehouseareatype/initialization/' + data,
|
||||||
method: 'get'
|
method: 'get'
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -69,6 +69,10 @@
|
|||||||
locationName: '',
|
locationName: '',
|
||||||
locationSid: '',
|
locationSid: '',
|
||||||
remarks: '',
|
remarks: '',
|
||||||
|
useOrgSid: window.sessionStorage.getItem('departmentSid'),
|
||||||
|
orgPath: window.sessionStorage.getItem('defaultOrgPath'),
|
||||||
|
createOrgSid: window.sessionStorage.getItem('orgSid'),
|
||||||
|
userSid: window.sessionStorage.getItem('userSid'),
|
||||||
|
|
||||||
},
|
},
|
||||||
warehouseList: [],
|
warehouseList: [],
|
||||||
@@ -80,12 +84,14 @@
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
initData() {
|
initData() {
|
||||||
|
var parpams = {
|
||||||
req2.getAllWarehouse().then(resp => {
|
orgPath: window.sessionStorage.getItem('defaultOrgPath'),
|
||||||
|
}
|
||||||
|
req2.getAllWarehouse(parpams).then(resp => {
|
||||||
this.warehouseList = resp.data
|
this.warehouseList = resp.data
|
||||||
})
|
})
|
||||||
|
|
||||||
req3.getAllWarehousearea().then(resp => {
|
req3.getAllWarehousearea(parpams).then(resp => {
|
||||||
this.warehouseAreaList = resp.data
|
this.warehouseAreaList = resp.data
|
||||||
})
|
})
|
||||||
|
|
||||||
@@ -119,11 +125,14 @@
|
|||||||
locationName: '',
|
locationName: '',
|
||||||
locationSid: '',
|
locationSid: '',
|
||||||
remarks: '',
|
remarks: '',
|
||||||
|
useOrgSid: window.sessionStorage.getItem('departmentSid'),
|
||||||
|
orgPath: window.sessionStorage.getItem('defaultOrgPath'),
|
||||||
|
createOrgSid: window.sessionStorage.getItem('orgSid'),
|
||||||
|
userSid: window.sessionStorage.getItem('userSid'),
|
||||||
}
|
}
|
||||||
this.$emit('doback')
|
this.$emit('doback')
|
||||||
},
|
},
|
||||||
showAdd() {
|
showAdd() {},
|
||||||
},
|
|
||||||
showEdit(row) {
|
showEdit(row) {
|
||||||
req.initGoodsShelves(row.sid)
|
req.initGoodsShelves(row.sid)
|
||||||
.then(resp => {
|
.then(resp => {
|
||||||
|
|||||||
@@ -159,6 +159,9 @@
|
|||||||
},
|
},
|
||||||
loadList() {
|
loadList() {
|
||||||
this.tableLoading = true
|
this.tableLoading = true
|
||||||
|
this.queryParams.params.userSid = window.sessionStorage.getItem('userSid')
|
||||||
|
this.queryParams.params.orgPath = window.sessionStorage.getItem('defaultOrgPath')
|
||||||
|
this.queryParams.params.menuUrl = this.$route.path
|
||||||
req.listPage(this.queryParams).then((resp) => {
|
req.listPage(this.queryParams).then((resp) => {
|
||||||
this.tableLoading = false
|
this.tableLoading = false
|
||||||
if (resp.success) {
|
if (resp.success) {
|
||||||
|
|||||||
@@ -104,7 +104,11 @@
|
|||||||
squareMeter: '',
|
squareMeter: '',
|
||||||
sortNo: '',
|
sortNo: '',
|
||||||
remarks: '',
|
remarks: '',
|
||||||
warehouseType: "0"
|
warehouseType: "0",
|
||||||
|
useOrgSid: window.sessionStorage.getItem('departmentSid'),
|
||||||
|
orgPath: window.sessionStorage.getItem('defaultOrgPath'),
|
||||||
|
createOrgSid: window.sessionStorage.getItem('orgSid'),
|
||||||
|
userSid: window.sessionStorage.getItem('userSid'),
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -147,7 +151,11 @@
|
|||||||
squareMeter: '',
|
squareMeter: '',
|
||||||
sortNo: '',
|
sortNo: '',
|
||||||
remarks: '',
|
remarks: '',
|
||||||
warehouseType: "0"
|
warehouseType: "0",
|
||||||
|
useOrgSid: window.sessionStorage.getItem('departmentSid'),
|
||||||
|
orgPath: window.sessionStorage.getItem('defaultOrgPath'),
|
||||||
|
createOrgSid: window.sessionStorage.getItem('orgSid'),
|
||||||
|
userSid: window.sessionStorage.getItem('userSid'),
|
||||||
}
|
}
|
||||||
this.$emit('doback')
|
this.$emit('doback')
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -158,6 +158,9 @@
|
|||||||
},
|
},
|
||||||
loadList() {
|
loadList() {
|
||||||
this.tableLoading = true
|
this.tableLoading = true
|
||||||
|
this.queryParams.params.userSid = window.sessionStorage.getItem('userSid')
|
||||||
|
this.queryParams.params.orgPath = window.sessionStorage.getItem('defaultOrgPath')
|
||||||
|
this.queryParams.params.menuUrl = this.$route.path
|
||||||
req.listPage(this.queryParams).then((resp) => {
|
req.listPage(this.queryParams).then((resp) => {
|
||||||
this.tableLoading = false
|
this.tableLoading = false
|
||||||
if (resp.success) {
|
if (resp.success) {
|
||||||
|
|||||||
@@ -80,7 +80,11 @@
|
|||||||
warehouseName: '',
|
warehouseName: '',
|
||||||
warehouseSid: '',
|
warehouseSid: '',
|
||||||
areaTypeSid: "",
|
areaTypeSid: "",
|
||||||
areaTypeName: ""
|
areaTypeName: "",
|
||||||
|
useOrgSid: window.sessionStorage.getItem('departmentSid'),
|
||||||
|
orgPath: window.sessionStorage.getItem('defaultOrgPath'),
|
||||||
|
createOrgSid: window.sessionStorage.getItem('orgSid'),
|
||||||
|
userSid: window.sessionStorage.getItem('userSid'),
|
||||||
|
|
||||||
},
|
},
|
||||||
warehouseList: [],
|
warehouseList: [],
|
||||||
@@ -92,11 +96,14 @@
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
initData() {
|
initData() {
|
||||||
req2.getAllWarehouse().then(resp => {
|
var parpams = {
|
||||||
|
orgPath: window.sessionStorage.getItem('defaultOrgPath'),
|
||||||
|
}
|
||||||
|
req2.getAllWarehouse(parpams).then(resp => {
|
||||||
this.warehouseList = resp.data
|
this.warehouseList = resp.data
|
||||||
})
|
})
|
||||||
|
|
||||||
req3.getAllWarehouseareatype().then(resp => {
|
req3.getAllWarehouseareatype(parpams).then(resp => {
|
||||||
this.warehouseTypeList = resp.data
|
this.warehouseTypeList = resp.data
|
||||||
})
|
})
|
||||||
|
|
||||||
@@ -129,7 +136,11 @@
|
|||||||
unit: '',
|
unit: '',
|
||||||
remarks: '',
|
remarks: '',
|
||||||
areaTypeSid: "",
|
areaTypeSid: "",
|
||||||
areaTypeName: ""
|
areaTypeName: "",
|
||||||
|
useOrgSid: window.sessionStorage.getItem('departmentSid'),
|
||||||
|
orgPath: window.sessionStorage.getItem('defaultOrgPath'),
|
||||||
|
createOrgSid: window.sessionStorage.getItem('orgSid'),
|
||||||
|
userSid: window.sessionStorage.getItem('userSid'),
|
||||||
|
|
||||||
}
|
}
|
||||||
this.$emit('doback')
|
this.$emit('doback')
|
||||||
|
|||||||
@@ -155,6 +155,9 @@
|
|||||||
},
|
},
|
||||||
loadList() {
|
loadList() {
|
||||||
this.tableLoading = true
|
this.tableLoading = true
|
||||||
|
this.queryParams.params.userSid = window.sessionStorage.getItem('userSid')
|
||||||
|
this.queryParams.params.orgPath = window.sessionStorage.getItem('defaultOrgPath')
|
||||||
|
this.queryParams.params.menuUrl = this.$route.path
|
||||||
req.listPage(this.queryParams).then((resp) => {
|
req.listPage(this.queryParams).then((resp) => {
|
||||||
this.tableLoading = false
|
this.tableLoading = false
|
||||||
if (resp.success) {
|
if (resp.success) {
|
||||||
|
|||||||
@@ -44,6 +44,11 @@
|
|||||||
sid: '',
|
sid: '',
|
||||||
warehouseAreaTypeName: '',
|
warehouseAreaTypeName: '',
|
||||||
remarks: '',
|
remarks: '',
|
||||||
|
useOrgSid: window.sessionStorage.getItem('departmentSid'),
|
||||||
|
orgPath: window.sessionStorage.getItem('defaultOrgPath'),
|
||||||
|
createOrgSid: window.sessionStorage.getItem('orgSid'),
|
||||||
|
userSid: window.sessionStorage.getItem('userSid'),
|
||||||
|
|
||||||
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
@@ -71,7 +76,13 @@
|
|||||||
if (isreload === 'true') this.$emit('reloadlist')
|
if (isreload === 'true') this.$emit('reloadlist')
|
||||||
this.formobj = {
|
this.formobj = {
|
||||||
sid: '',
|
sid: '',
|
||||||
|
warehouseAreaTypeName: '',
|
||||||
remarks: '',
|
remarks: '',
|
||||||
|
useOrgSid: window.sessionStorage.getItem('departmentSid'),
|
||||||
|
orgPath: window.sessionStorage.getItem('defaultOrgPath'),
|
||||||
|
createOrgSid: window.sessionStorage.getItem('orgSid'),
|
||||||
|
userSid: window.sessionStorage.getItem('userSid'),
|
||||||
|
|
||||||
}
|
}
|
||||||
this.$emit('doback')
|
this.$emit('doback')
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user