仓库问题修改

dev-scheduling
zhangdi 3 weeks ago
parent 6be61976bf
commit 0fdab71a7f
  1. 2
      src/api/storeManagement/returnReceiving.js
  2. 2
      src/api/storeManagement/warehouseTransfer.js
  3. 8
      src/views/inboundOutboundManagement/returnReceiving.vue
  4. 8
      src/views/inboundOutboundManagement/warehouseTransfer/index.vue

@ -40,7 +40,7 @@ export const getLocationList = params => {
// 根据库房ID和物料编号查找库位号 // 根据库房ID和物料编号查找库位号
export const getLocationData = params => { export const getLocationData = params => {
return request({ return request({
url: '/api/blade-wms/stOtherOutRecord/queryByGoodsIdShId', url: '/api/blade-wms/stStorageLocation/findByShIdAndGoodsId',
method: 'get', method: 'get',
params params
}); });

@ -31,7 +31,7 @@ export const getLocationList = params => {
// 根据库房ID和物料编号查找库位号 // 根据库房ID和物料编号查找库位号
export const getLocationData = params => { export const getLocationData = params => {
return request({ return request({
url: '/api/blade-wms/stOtherOutRecord/queryByGoodsIdShId', url: '/api/blade-wms/stStorageLocation/findByShIdAndGoodsId',
method: 'get', method: 'get',
params params
}); });

@ -52,7 +52,7 @@
</el-form-item> </el-form-item>
<el-form-item label="库位号" prop="slId"> <el-form-item label="库位号" prop="slId">
<el-select v-model="warehouseForm.slId"> <el-select v-model="warehouseForm.slId">
<el-option v-for="item in locationList" :key="item.slId" :label="item.location" :value="item.slId"></el-option> <el-option v-for="item in locationList" :key="item.id" :label="item.location" :value="item.id"></el-option>
<!-- <el-option label="仓库二" value="2"></el-option> --> <!-- <el-option label="仓库二" value="2"></el-option> -->
</el-select> </el-select>
</el-form-item> </el-form-item>
@ -367,9 +367,9 @@ export default {
changeWare(val){ changeWare(val){
getLocationData({ getLocationData({
shId:val, shId:val,
goodsId:this.checkGoodsCode goodsCode:this.checkGoodsCode
}).then(res =>{ }).then(res =>{
this.locationList = res.data.data.records this.locationList = res.data.data
}) })
}, },
// //
@ -384,7 +384,7 @@ export default {
// //
warehousing(row) { warehousing(row) {
this.warehouseShow = true; this.warehouseShow = true;
this.checkGoodsCode = row.goodsId this.checkGoodsCode = row.prtno
this.warehouseForm.id = row.id this.warehouseForm.id = row.id
this.warehouseForm.piNo = row.piNo this.warehouseForm.piNo = row.piNo
this.$refs.warehouseForm.resetFields(); this.$refs.warehouseForm.resetFields();

@ -54,7 +54,7 @@
</el-form-item> </el-form-item>
<el-form-item label="库位号" prop="slId"> <el-form-item label="库位号" prop="slId">
<el-select v-model="warehouseForm.slId"> <el-select v-model="warehouseForm.slId">
<el-option v-for="item in locationList" :key="item.slId" :label="item.location" :value="item.slId"></el-option> <el-option v-for="item in locationList" :key="item.id" :label="item.location" :value="item.id"></el-option>
<!-- <el-option label="仓库一" value="1"></el-option> --> <!-- <el-option label="仓库一" value="1"></el-option> -->
<!-- <el-option label="仓库二" value="2"></el-option> --> <!-- <el-option label="仓库二" value="2"></el-option> -->
</el-select> </el-select>
@ -318,9 +318,9 @@ export default {
changeWare(val){ changeWare(val){
getLocationData({ getLocationData({
shId:val, shId:val,
goodsId:this.checkGoods goodsCode:this.checkGoods
}).then(res =>{ }).then(res =>{
this.locationList = res.data.data.records; this.locationList = res.data.data;
}) })
}, },
currentChange(cuurrentPage){ currentChange(cuurrentPage){
@ -331,7 +331,7 @@ export default {
}, },
warehousing(row) { warehousing(row) {
this.warehouseForm.ewtId = row.id this.warehouseForm.ewtId = row.id
this.checkGoods = row.goodsId this.checkGoods = row.goodsCode
this.warehouseShow = true this.warehouseShow = true
}, },
submitWarehouse(){ submitWarehouse(){

Loading…
Cancel
Save