盘点管理

merge-requests/1/head
qiushui 4 years ago
parent a3f7461afc
commit 0fcd9ee2e0

@ -22,7 +22,7 @@
</a-select-option> </a-select-option>
</a-select> </a-select>
<a-select <a-select
@change="handleTypeChange2" @change="sideStreetChange"
style="width: 160px" style="width: 160px"
:value="selectType2" :value="selectType2"
v-if="selectType2 !== 'none' && selectType2 !== '' " v-if="selectType2 !== 'none' && selectType2 !== '' "
@ -45,12 +45,21 @@
<div class="carousel-page-content"> <div class="carousel-page-content">
<div class="img-box"> <div class="img-box">
<ul> <ul>
<li>
<span class="img-box-title">
核对状态:
</span>
<span class="img-box-value">
{{ statusMap[checkObj.status] }}
</span>
</li>
<li v-for="item in params" :key="item.label"> <li v-for="item in params" :key="item.label">
<span class="img-box-title"> <span class="img-box-title">
{{ item.label }}: {{ item.label }}:
</span> </span>
<span class="img-box-value"> <span class="img-box-value">
{{ scanAndCheck[item.key] }} {{ checkObj[item.key] }}
</span> </span>
</li> </li>
@ -154,7 +163,9 @@ export default {
columnCount: 0, columnCount: 0,
selectName: '', selectName: '',
shelveId: '', shelveId: '',
//
selectType: 'left', selectType: 'left',
//
selectType2: '', selectType2: '',
visible: false, visible: false,
category: '', category: '',
@ -163,31 +174,30 @@ export default {
index: 0, index: 0,
imgUrl: '', imgUrl: '',
params:[ params:[
{
label:'核对状态',
key: 'orderNum'
},
{ {
label:'工单号', label:'工单号',
key: 'orderNum' key: 'orderNum'
}, },
{ {
label:'系统条码号', label:'系统条码号',
key: 'SystemCode' key: 'wmsCode'
}, },
{ {
label:'扫描条码号', label:'扫描条码号',
key: 'ScanCode' key: 'code'
}, },
{ {
label:'系统数量', label:'系统数量',
key: 'SystemNumber' key: 'wmsCount'
}, },
{ {
label:'扫描数量', label:'扫描数量',
key: 'CheckNumber' key: 'count'
} }
] ],
statusMap: {0:"未盘点",1:"盘点异常",2:"核对正确"}
} }
}, },
beforeRouteLeave(to ,form, next) { beforeRouteLeave(to ,form, next) {
@ -228,7 +238,7 @@ export default {
this.listData = res.data.list; this.listData = res.data.list;
this.select = this.id this.select = this.id
this.getStreetDetail(this.id) this.getStreetDetail(this.id)
this.getStockInfo(this.row,this.column,this.id) //this.getStockInfo(this.row,this.column,this.id)
//this.getStockList(this.id) //this.getStockList(this.id)
}).catch(err => { }).catch(err => {
console.error(err); console.error(err);
@ -247,12 +257,7 @@ export default {
}, },
// //
getRowColumnCounts(){ getRowColumnCounts(){
if(this.selectType != 'none' && this.selectType != ''){ this.updateShleveAndRowColumnCount(this.selectType)
this.handleTypeChange(this.selectType)
}else{
this.handleTypeChange2(this.selectType2)
}
}, },
// //
getStockInfo(row, column, shelveId) { getStockInfo(row, column, shelveId) {
@ -277,7 +282,7 @@ export default {
this.select = value this.select = value
this.id = value this.id = value
this.row = 1 this.row = 1
this.column =1 this.column = 1
this.getStreetList() this.getStreetList()
for (var i = 0; i < this.listData.length; i++) { for (var i = 0; i < this.listData.length; i++) {
@ -307,11 +312,23 @@ export default {
} }
this.getStockInfo(1, 1, this.shelveId) this.getStockInfo(1, 1, this.shelveId)
}, },
handlerType(value){
this.handleTypeChange(value)
this.getStockInfo(this.row, this.column, this.shelveId)
},
//
handleTypeChange(value) { handleTypeChange(value) {
this.updateShleveAndRowColumnCount(value)
this.row = 1 this.row = 1
this.column = 1 this.column = 1
this.selectType = value this.getStockInfo(this.row, this.column, this.shelveId)
if (value == 'left') {
},
//streetDetail
//direction : left right
updateShleveAndRowColumnCount(direction){
if (direction == 'left') {
this.rowCount = this.streetDetail.leftRow this.rowCount = this.streetDetail.leftRow
this.columnCount = this.streetDetail.leftColumn this.columnCount = this.streetDetail.leftColumn
if (this.streetDetail.leftShelveId) { if (this.streetDetail.leftShelveId) {
@ -323,7 +340,7 @@ export default {
} else if (this.streetDetail.leftOutsideShelveId) { } else if (this.streetDetail.leftOutsideShelveId) {
this.shelveId = this.streetDetail.leftOutsideShelveId this.shelveId = this.streetDetail.leftOutsideShelveId
} }
} else if (value == 'right') { } else if (direction == 'right') {
this.rowCount = this.streetDetail.rightRow this.rowCount = this.streetDetail.rightRow
this.columnCount = this.streetDetail.rightColumn this.columnCount = this.streetDetail.rightColumn
if (this.streetDetail.rightShelveId) { if (this.streetDetail.rightShelveId) {
@ -334,12 +351,14 @@ export default {
this.shelveId = this.streetDetail.rightOutsideShelveId this.shelveId = this.streetDetail.rightOutsideShelveId
} }
} }
},
handlerType2(value){
this.sideStreetChange(value)
this.getStockInfo(this.row, this.column, this.shelveId) this.getStockInfo(this.row, this.column, this.shelveId)
}, },
handleTypeChange2(value) { //
this.row = 1 sideStreetChange(value) {
this.column = 1
this.selectType2 = value this.selectType2 = value
if (this.selectType == 'left' && value == 'none') { if (this.selectType == 'left' && value == 'none') {
this.shelveId = this.streetDetail.leftShelveId this.shelveId = this.streetDetail.leftShelveId
@ -366,7 +385,7 @@ export default {
this.columnCount = this.streetDetail.rightColumn this.columnCount = this.streetDetail.rightColumn
this.shelveId = this.streetDetail.rightOutsideShelveId this.shelveId = this.streetDetail.rightOutsideShelveId
} }
this.getStockInfo(this.row, this.column, this.shelveId) //this.getStockInfo(this.row, this.column, this.shelveId)
}, },
prev() { prev() {
@ -408,9 +427,8 @@ export default {
} }
}).then(res => { }).then(res => {
if (res.code == 200) { if (res.code == 200) {
// this.next(index)
this.checkObj.status = 2;
this.$message.success('操作成功'); this.$message.success('操作成功');
this.getStockInfo(this.row,this.column,this.shelveId)
} }
}).catch(err => { }).catch(err => {
@ -431,14 +449,8 @@ export default {
closeModel(visible, data) { closeModel(visible, data) {
this.visible = visible this.visible = visible
this.modelData = data this.modelData = data
}, }
goHistory(orderNum){
const href = this.$router.resolve({
name: 'historyMonitoring',
params:{orderNum:orderNum}
});
window.open(href.href, '_blank');
},
} }
} }
</script> </script>

Loading…
Cancel
Save