盘点管理去掉货架号

merge-requests/7/head
yiming 4 years ago
parent c0f69dde93
commit 1de3950a23

@ -1397,7 +1397,7 @@ tr.ant-table-expanded-row:hover {background: #fbfbfb;}
.ant-tag-blue-inverse {color: #fff;background: #1890ff;border-color: #1890ff;} .ant-tag-blue-inverse {color: #fff;background: #1890ff;border-color: #1890ff;}
.ant-tag-geekblue {color: #2f54eb;background: #f0f5ff;border-color: #adc6ff;} .ant-tag-geekblue {color: #2f54eb;background: #f0f5ff;border-color: #adc6ff;}
.ant-tag-geekblue-inverse {color: #fff;background: #2f54eb;border-color: #2f54eb;} .ant-tag-geekblue-inverse {color: #fff;background: #2f54eb;border-color: #2f54eb;}
.ant-tag-purple {color: #722ed1;background: color(~`colorPalette("@{text-color}", 1)`);border-color: #d3adf7;} .ant-tag-purple {color: #722ed1;background: #f9f0ff;border-color: #d3adf7;}
.ant-tag-purple-inverse {color: #fff;background: #722ed1;border-color: #722ed1;} .ant-tag-purple-inverse {color: #fff;background: #722ed1;border-color: #722ed1;}
.ant-time-picker-panel {color: @text-color;} .ant-time-picker-panel {color: @text-color;}
.ant-time-picker-panel-inner {background-color: #fff;background-clip: padding-box;border-radius: 4px;box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);} .ant-time-picker-panel-inner {background-color: #fff;background-clip: padding-box;border-radius: 4px;box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);}

@ -220,16 +220,6 @@ export default {
var color = status == 1 ?'#d81e06': (status == 2|| status == 3) ? '#1afa29': '#bfbfbf'; var color = status == 1 ?'#d81e06': (status == 2|| status == 3) ? '#1afa29': '#bfbfbf';
dom.style.background = color dom.style.background = color
}, },
// getStatusTab(tab,status,rowColumn){
// var dom = document.getElementById(this.shelveId+'-'+rowColumn+'-'+tab);
// console.log(dom)
// console.log(this.shelveId+'-'+rowColumn+'-'+tab)
// dom.style.type ="close-circle"
// var color = status == 1 ?'#d81e06': status == 2 ? '#1afa29': '#bfbfbf';
// dom.style.color = color
// console.log(dom)
// },
getStatus(){ getStatus(){
@ -288,7 +278,7 @@ export default {
tocheckPage(row,column){ tocheckPage(row,column){
this.$router.push({ this.$router.push({
name: 'checkOperation', name: 'checkOperation',
query: {row: row, column: column, shelveId: this.shelveId, id: this.streetId, name:this.streetName, type: this.type, type2: this.inOut} query: {row: row, column: column, direction: this.direction,side:this.side, streetId: this.streetId, name:this.streetName}
}) })
} }
} }

@ -6,6 +6,11 @@
<div class="carousel-page-content"> <div class="carousel-page-content">
<div class="img-box"> <div class="img-box">
<ul> <ul>
<li>
<span >
{{streetName}}-{{this.direction == 1?"左":"右"}}-{{this.side == 1?"浅":"深"}}-{{row}}-{{column}}
</span>
</li>
<li> <li>
<span class="img-box-title"> <span class="img-box-title">
核对状态: 核对状态:
@ -69,13 +74,7 @@
>核对 >核对
</a-button> </a-button>
</div> </div>
<!-- <div class="bottom-btn"
>
<a-button class="btn" @click="prev()"></a-button>
<p>{{checkObj.row}}{{checkObj.column}}</p>
<a-button class="btn" @click="next()">
</a-button>
</div> -->
</div> </div>
@ -94,23 +93,11 @@ import {imgUrl} from "@/api/importExcel";
export default { export default {
data() { data() {
return { return {
listData: [],
scanAndCheck: {},
checkObj: {}, checkObj: {},
streetDetail: {},
checkList: {},
id: 0,
row: 1, row: 1,
column: 1, column: 1,
// streetName: '',
rowCount: 0,
columnCount: 0,
selectName: '',
shelveId: '',
//
selectType: 'left',
//
selectType2: '',
visible: false, visible: false,
category: '', category: '',
count: 0, count: 0,
@ -161,19 +148,18 @@ export default {
}, },
created() { created() {
this.imgUrl = imgUrl this.imgUrl = imgUrl
console.log(this.$route.query.id)
//this.getStreetList(); //this.getStreetList();
if (this.$route.query.row && this.$route.query.column && this.$route.query.shelveId && this.$route.query.id && this.$route.query.name) { if (this.$route.query.row && this.$route.query.column && this.$route.query.direction && this.$route.query.side && this.$route.query.streetId) {
this.id = this.$route.query.id this.id = this.$route.query.id
this.row = this.$route.query.row this.row = this.$route.query.row
this.column = this.$route.query.column this.column = this.$route.query.column
this.direction = this.$route.query.direction this.direction = this.$route.query.direction
this.side = this.$route.query.side this.side = this.$route.query.side
this.streetId = this.$route.query.streetId this.streetId = this.$route.query.streetId
this.selectName = this.$route.query.name this.streetName = this.$route.query.name
this.selectType = this.$route.query.type
this.selectType2 = this.$route.query.type2 this.getStockInfo(this.row, this.column);
this.getStockInfo(this.row, this.column, this.shelveId);
} }
}, },
mounted() { mounted() {
@ -186,19 +172,16 @@ export default {
Model Model
}, },
methods: { methods: {
//
getRowColumnCounts(){
this.updateShleveAndRowColumnCount(this.selectType)
if(this.streetDetail){}
},
// //
getStockInfo(row, column, shelveId) { getStockInfo(row, column) {
this.$api.httpApi.getStockInfo({ this.$api.httpApi.getStockInfo({
data: { data: {
row: Number(row), row: Number(row),
column: Number(column), column: Number(column),
shelveId: shelveId, direction: this.direction,
side: this.side,
streetId: this.streetId,
} }
}).then(res => { }).then(res => {
if (res.data) { if (res.data) {
@ -216,65 +199,9 @@ export default {
this.id = value this.id = value
this.row = 1 this.row = 1
this.column = 1 this.column = 1
this.getStockInfo(1, 1)
this.getStreetList()
for (var i = 0; i < this.listData.length; i++) {
if (this.listData[i].id == value) {
if (this.listData[i].leftShelveId) {
this.shelveId = this.listData[i].leftShelveId
this.selectType = 'left'
this.selectType2 = 'none'
this.rowCount = this.listData[i].leftRow
this.columnCount = this.listData[i].leftColumn
} else if (this.listData[i].leftInsideShelveId) {
this.shelveId = this.listData[i].leftInsideShelveId
this.selectType = 'left'
this.selectType2 = 'inside'
this.rowCount = this.listData[i].leftRow
this.columnCount = this.listData[i].leftColumn
} else if (this.listData[i].leftOutsideShelveId) {
this.shelveId = this.listData[i].leftOutsideShelveId
this.selectType = 'left'
this.selectType2 = 'out'
this.rowCount = this.listData[i].leftRow
this.columnCount = this.listData[i].leftColumn
}
}
}
this.getStockInfo(1, 1, this.shelveId)
},
prev() {
if(this.column > 1){
this.column = this.column - 1
}else{
if(this.row > 1){
this.row = this.row - 1
this.column = this.columnCount
}else{
this.row = this.rowCount
this.column = this.columnCount
}
}
this.getStockInfo(this.row,this.column,this.shelveId)
},
next() {
if(this.column < this.columnCount){
this.column = this.column + 1
}else{
// row+1
if(this.row < this.rowCount){
this.row = this.row + 1
this.column = 1
}else{
this.row = 1
this.column = 1
}
}
this.getStockInfo(this.row,this.column,this.shelveId)
}, },
checkSure(row, column, shelveId, index) { checkSure(row, column, shelveId, index) {
this.$api.httpApi.stockCheckCorrect({ this.$api.httpApi.stockCheckCorrect({
data: { data: {
@ -285,7 +212,7 @@ export default {
}).then(res => { }).then(res => {
if (res.code == 200) { if (res.code == 200) {
this.$message.success('操作成功'); this.$message.success('操作成功');
this.getStockInfo(this.row,this.column,this.shelveId) this.getStockInfo(this.row,this.column)
} }
}).catch(err => { }).catch(err => {

@ -138,14 +138,7 @@ export default {
}); });
}, },
getStatus(data, rowCol) {
return (data[rowCol] || {}).status;
},
//
getStatusBg(data, rowCol) {
let status = this.getStatus(data, rowCol);
return status == 1 ?'#d81e06': status == 2 ? '#1afa29': '#bfbfbf';
},
// //
getStreetDetail(id) { getStreetDetail(id) {
this.$axios.get('/street/' + id, { this.$axios.get('/street/' + id, {
@ -164,11 +157,6 @@ export default {
this.getStreetDetail(value) this.getStreetDetail(value)
}, },
tocheckOperation(checkObj, item) {
console.log(checkObj)
console.log(item)
this.$router.push({name: 'checkOperation', query: {checkObj: checkObj, item: item}})
},
exportStock() { exportStock() {
this.$api.httpApi.exportStock({ this.$api.httpApi.exportStock({

@ -16,7 +16,7 @@
左侧货架 左侧货架
</span> </span>
<a-radio-group v-model="leftSide" style="margin:10px 0" @change="getStockRowColumn" <a-radio-group v-model="leftSide" style="margin:10px 0"
v-if="streetDetail.leftType==1"> v-if="streetDetail.leftType==1">
<a-radio-button :value=1> <a-radio-button :value=1>
浅货架 浅货架
@ -41,7 +41,7 @@
右侧货架 右侧货架
</span> </span>
<a-radio-group v-model="rightSide" style="margin:10px 0" @change="getStockRowColumn" <a-radio-group v-model="rightSide" style="margin:10px 0"
v-if="streetDetail.rightType==1"> v-if="streetDetail.rightType==1">
<a-radio-button :value=1> <a-radio-button :value=1>
浅货架 浅货架
@ -73,14 +73,6 @@ export default {
select: '', select: '',
streetId: 0, streetId: 0,
streetDetail: {}, streetDetail: {},
checkList: [],
stockInfo: {
left: {},
right: {}
},
leftShelveId:{},
rightShelveId:{}
} }
}, },
computed: { computed: {
@ -121,51 +113,13 @@ export default {
}); });
}, },
//
async getStockRowColumn() {
this.rightShelveChange();
this.leftShelveChange();
},
rightShelveChange() {
// let shelveId;
// let shelveType = 'none';
// if(this.streetDetail.rightShelveId) {
// shelveId = this.streetDetail.rightShelveId;
// }else if(this.streetDetail.rightInsideShelveId && this.size2 =='rightInsideShelveId'){
// shelveId = this.streetDetail.rightInsideShelveId;
// shelveType = 'inside';
// }else if(this.streetDetail.rightOutsideShelveId && this.size2 == 'rightOutsideShelveId'){
// shelveId = this.streetDetail.rightOutsideShelveId;
// shelveType = 'out';
// };
// this.rightShelveId.shelveId = shelveId;
// this.rightShelveId.shelveType = shelveType;
},
leftShelveChange() {
// let shelveId;
// let shelveType = 'none';
// if(this.streetDetail.leftShelveId) {
// shelveId = this.streetDetail.leftShelveId;
// }else if(this.streetDetail.leftInsideShelveId && this.size =='leftInsideShelveId'){
// shelveId = this.streetDetail.leftInsideShelveId;
// shelveType = 'inside';
// }else if(this.streetDetail.leftOutsideShelveId && this.size== 'leftOutsideShelveId'){
// shelveId = this.streetDetail.leftOutsideShelveId;
// shelveType = 'out';
// };
// this.leftShelveId.shelveId = shelveId;
// this.leftShelveId.shelveType = shelveType;
},
// //
getStreetDetail(id) { getStreetDetail(id) {
this.$axios.get('/street/' + id, { this.$axios.get('/street/' + id, {
data: {} data: {}
}).then(res => { }).then(res => {
this.streetDetail = res.data this.streetDetail = res.data
this.getStockRowColumn()
}).catch(err => { }).catch(err => {
}) })
@ -176,8 +130,6 @@ export default {
this.select = value this.select = value
this.getStreetDetail(value) this.getStreetDetail(value)
this.leftShelveChange();
this.rightShelveChange();
}, },
}, },

@ -46,7 +46,7 @@ module.exports = {
} }
}, },
'/api': { '/api': {
target: 'http://192.168.77.91:8099', target: 'http://127.0.0.1:8099',
// target: 'http://115.236.65.98:13001/monitor', // target: 'http://115.236.65.98:13001/monitor',
// target: 'http://127.0.0.1:9007', // target: 'http://127.0.0.1:9007',
logLevel:'debug', //控制台终端打印代理前的真实地址 logLevel:'debug', //控制台终端打印代理前的真实地址

Loading…
Cancel
Save