|
@@ -85,59 +85,61 @@
|
|
|
</table>
|
|
</table>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
- <div style="overflow: auto;overflow-x: hidden" class="bg-secondary" v-if="invLots.length>0">
|
|
|
|
|
- <span class="font-weight-bold ml-1 text-white">库存余量</span>
|
|
|
|
|
- <table class="table-sm table-striped table-bordered table-hover mb-3"
|
|
|
|
|
- style="background: rgb(255, 255, 255);">
|
|
|
|
|
- <tr v-for="(invLot,i) in invLots">
|
|
|
|
|
- <td style="filter:grayscale(30%);">
|
|
|
|
|
- <div>
|
|
|
|
|
- <div style="transform:scale(1)" class="pl-0">
|
|
|
|
|
|
|
+ <div style="overflow: auto;overflow-x: hidden" class="bg-secondary" v-if="invLots.length>0">
|
|
|
|
|
+ <span class="font-weight-bold ml-1 text-white">库存余量</span>
|
|
|
|
|
+ <table class="table-sm table-striped table-bordered table-hover mb-3"
|
|
|
|
|
+ style="background: rgb(255, 255, 255);">
|
|
|
|
|
+ <tr v-for="(invLot,i) in invLots" @click="selectTrOne(i,invLot.locationid)" :class="selectTr===i+1?'focusing' : ''">
|
|
|
|
|
+ <td style="filter:grayscale(30%);">
|
|
|
|
|
+ <div>
|
|
|
|
|
+ <div style="transform:scale(1)" class="pl-0">
|
|
|
<span v-if="invLot.customerid">
|
|
<span v-if="invLot.customerid">
|
|
|
<span class="text-black">货主:</span>
|
|
<span class="text-black">货主:</span>
|
|
|
<span class="text-black font-weight-bold">@{{ invLot.customerid }}</span>
|
|
<span class="text-black font-weight-bold">@{{ invLot.customerid }}</span>
|
|
|
</span>
|
|
</span>
|
|
|
- <span v-if="invLot.alternate_sku1">
|
|
|
|
|
|
|
+ <span v-if="invLot.alternate_sku1">
|
|
|
<span class="text-black">条码:</span>
|
|
<span class="text-black">条码:</span>
|
|
|
<span class="text-danger">@{{ invLot.alternate_sku1 }}</span></span>
|
|
<span class="text-danger">@{{ invLot.alternate_sku1 }}</span></span>
|
|
|
- <span v-if="invLot.locationid">
|
|
|
|
|
|
|
+ <span v-if="invLot.locationid">
|
|
|
<span>库位:</span>
|
|
<span>库位:</span>
|
|
|
<span class="font-weight-bold">@{{ invLot.locationid }} </span>
|
|
<span class="font-weight-bold">@{{ invLot.locationid }} </span>
|
|
|
</span>
|
|
</span>
|
|
|
- <span v-if="invLot.qty">
|
|
|
|
|
|
|
+ <span v-if="invLot.qty">
|
|
|
<span class="text-lowercase">数量:</span>
|
|
<span class="text-lowercase">数量:</span>
|
|
|
<span class="text-lowercase font-weight-bold">@{{ invLot.qty }} </span><span> </span>
|
|
<span class="text-lowercase font-weight-bold">@{{ invLot.qty }} </span><span> </span>
|
|
|
</span>
|
|
</span>
|
|
|
- <span v-if="invLot.lotatt01">
|
|
|
|
|
|
|
+ <span v-if="invLot.lotatt01">
|
|
|
<span class="text-black">生产日期:</span><span class="text-black font-weight-bold">@{{ invLot.lotatt01 }}</span>
|
|
<span class="text-black">生产日期:</span><span class="text-black font-weight-bold">@{{ invLot.lotatt01 }}</span>
|
|
|
<span> </span>
|
|
<span> </span>
|
|
|
</span>
|
|
</span>
|
|
|
- <span v-if="invLot.lotatt02">
|
|
|
|
|
|
|
+ <span v-if="invLot.lotatt02">
|
|
|
<span class="text-black">失效日期:</span><span class="text-black font-weight-bold">@{{ invLot.lotatt02 }}</span>
|
|
<span class="text-black">失效日期:</span><span class="text-black font-weight-bold">@{{ invLot.lotatt02 }}</span>
|
|
|
<span> </span>
|
|
<span> </span>
|
|
|
</span>
|
|
</span>
|
|
|
- <span v-if="invLot.lotatt03">
|
|
|
|
|
|
|
+ <span v-if="invLot.lotatt03">
|
|
|
<span class="text-black">入库日期:</span><span class="text-black font-weight-bold">@{{ invLot.lotatt03 }}</span>
|
|
<span class="text-black">入库日期:</span><span class="text-black font-weight-bold">@{{ invLot.lotatt03 }}</span>
|
|
|
<span> </span>
|
|
<span> </span>
|
|
|
</span>
|
|
</span>
|
|
|
- <span v-if="invLot.lotatt04">
|
|
|
|
|
|
|
+ <span v-if="invLot.lotatt04">
|
|
|
<span class="text-black">批号:</span><span class="text-black font-weight-bold">@{{ invLot.lotatt04 }}</span>
|
|
<span class="text-black">批号:</span><span class="text-black font-weight-bold">@{{ invLot.lotatt04 }}</span>
|
|
|
<span> </span>
|
|
<span> </span>
|
|
|
</span>
|
|
</span>
|
|
|
- <span v-if="invLot.lotatt05">
|
|
|
|
|
|
|
+ <span v-if="invLot.lotatt05">
|
|
|
<span class="text-black">属性仓:</span><span class="text-black font-weight-bold">@{{ invLot.lotatt05 }}</span>
|
|
<span class="text-black">属性仓:</span><span class="text-black font-weight-bold">@{{ invLot.lotatt05 }}</span>
|
|
|
<span> </span>
|
|
<span> </span>
|
|
|
</span>
|
|
</span>
|
|
|
- <span v-if="invLot.lotatt08">
|
|
|
|
|
|
|
+ <span v-if="invLot.lotatt08">
|
|
|
<span class="text-black">质量状态:</span><span class="text-black font-weight-bold">@{{ invLot.lotatt08 }}</span>
|
|
<span class="text-black">质量状态:</span><span class="text-black font-weight-bold">@{{ invLot.lotatt08 }}</span>
|
|
|
<span> </span>
|
|
<span> </span>
|
|
|
</span>
|
|
</span>
|
|
|
|
|
+ </div>
|
|
|
</div>
|
|
</div>
|
|
|
- </div>
|
|
|
|
|
- </td>
|
|
|
|
|
- </tr>
|
|
|
|
|
- </table>
|
|
|
|
|
- </div>
|
|
|
|
|
|
|
+ </td>
|
|
|
|
|
+ </tr>
|
|
|
|
|
+ </table>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <span v-if="mes" class="text-danger font-weight-bold" >@{{ mes }}</span>
|
|
|
|
|
+
|
|
|
|
|
|
|
|
<div class="card-footer bg-transparent">
|
|
<div class="card-footer bg-transparent">
|
|
|
<button type="button" id="confirm" class="btn btn-md btn-success font-weight-bold float-right"
|
|
<button type="button" id="confirm" class="btn btn-md btn-success font-weight-bold float-right"
|
|
@@ -167,6 +169,7 @@
|
|
|
element: [
|
|
element: [
|
|
|
"trackNumber","barCode", "amount", "location",
|
|
"trackNumber","barCode", "amount", "location",
|
|
|
],
|
|
],
|
|
|
|
|
+ mes:'',
|
|
|
},
|
|
},
|
|
|
mounted() {
|
|
mounted() {
|
|
|
if (navigator.userAgent.indexOf("Android") !== -1) this.isAndroid = true;
|
|
if (navigator.userAgent.indexOf("Android") !== -1) this.isAndroid = true;
|
|
@@ -195,6 +198,14 @@
|
|
|
this.checkData=[];
|
|
this.checkData=[];
|
|
|
this.$forceUpdate();
|
|
this.$forceUpdate();
|
|
|
},
|
|
},
|
|
|
|
|
+ selectTrOne(i,location){
|
|
|
|
|
+ if (this.selectTr===i+1){
|
|
|
|
|
+ this.selectTr=0
|
|
|
|
|
+ }else {
|
|
|
|
|
+ this.selectTr=i+1;
|
|
|
|
|
+ this.info.location=location;
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
checked(e, task, element = undefined) {
|
|
checked(e, task, element = undefined) {
|
|
|
if (!element)element = e.target;
|
|
if (!element)element = e.target;
|
|
|
let _this = this;
|
|
let _this = this;
|
|
@@ -214,6 +225,7 @@
|
|
|
$('#'+element.id).prop('checked', false);
|
|
$('#'+element.id).prop('checked', false);
|
|
|
window.tempTip.setDuration(3000);
|
|
window.tempTip.setDuration(3000);
|
|
|
window.tempTip.show('货主,批次不同,不可同时上架');
|
|
window.tempTip.show('货主,批次不同,不可同时上架');
|
|
|
|
|
+ window.tempTip.showErrorAudio();
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
@@ -258,10 +270,12 @@
|
|
|
this.tasks=[];
|
|
this.tasks=[];
|
|
|
window.tempTip.setDuration(3000);
|
|
window.tempTip.setDuration(3000);
|
|
|
window.tempTip.show(res.data.data);
|
|
window.tempTip.show(res.data.data);
|
|
|
|
|
+ window.tempTip.showErrorAudio();
|
|
|
}).catch(err => {
|
|
}).catch(err => {
|
|
|
this.tasks=[];
|
|
this.tasks=[];
|
|
|
window.tempTip.setDuration(3000);
|
|
window.tempTip.setDuration(3000);
|
|
|
window.tempTip.show("网络错误:" + err);
|
|
window.tempTip.show("网络错误:" + err);
|
|
|
|
|
+ window.tempTip.showErrorAudio();
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
getTsk() {
|
|
getTsk() {
|
|
@@ -280,6 +294,7 @@
|
|
|
if (res.data.success) {
|
|
if (res.data.success) {
|
|
|
this.tasks = res.data.data;
|
|
this.tasks = res.data.data;
|
|
|
this.invLots = res.data.inv;
|
|
this.invLots = res.data.inv;
|
|
|
|
|
+ if (this.invLots.length==0)this.mes='库内暂无该商品库存信息,请自行选定上架库位';
|
|
|
this.$forceUpdate();
|
|
this.$forceUpdate();
|
|
|
setTimeout(function () {
|
|
setTimeout(function () {
|
|
|
document.getElementById("task_0").checked=true;
|
|
document.getElementById("task_0").checked=true;
|
|
@@ -290,9 +305,10 @@
|
|
|
if (i==0)return;
|
|
if (i==0)return;
|
|
|
if (task.customerid == _this.tasks[0].customerid
|
|
if (task.customerid == _this.tasks[0].customerid
|
|
|
&& task.plantolotnum == _this.tasks[0].plantolotnum
|
|
&& task.plantolotnum == _this.tasks[0].plantolotnum
|
|
|
- && task.sku == _this.tasks[0].sku)
|
|
|
|
|
|
|
+ && task.sku == _this.tasks[0].sku){
|
|
|
document.getElementById("task_"+i).checked=true;
|
|
document.getElementById("task_"+i).checked=true;
|
|
|
_this.checked(1,_this.tasks[i],element);
|
|
_this.checked(1,_this.tasks[i],element);
|
|
|
|
|
+ }
|
|
|
})
|
|
})
|
|
|
// document.getElementById('cardTable').remove();
|
|
// document.getElementById('cardTable').remove();
|
|
|
document.getElementById('cardTable').style.height=null;
|
|
document.getElementById('cardTable').style.height=null;
|
|
@@ -302,10 +318,12 @@
|
|
|
this.tasks=[];
|
|
this.tasks=[];
|
|
|
window.tempTip.setDuration(3000);
|
|
window.tempTip.setDuration(3000);
|
|
|
window.tempTip.show(res.data.data);
|
|
window.tempTip.show(res.data.data);
|
|
|
|
|
+ window.tempTip.showErrorAudio();
|
|
|
}).catch(err => {
|
|
}).catch(err => {
|
|
|
this.tasks=[];
|
|
this.tasks=[];
|
|
|
window.tempTip.setDuration(3000);
|
|
window.tempTip.setDuration(3000);
|
|
|
window.tempTip.show("网络错误:" + err);
|
|
window.tempTip.show("网络错误:" + err);
|
|
|
|
|
+ window.tempTip.showErrorAudio();
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
clearChecked(){
|
|
clearChecked(){
|
|
@@ -345,9 +363,11 @@
|
|
|
}
|
|
}
|
|
|
window.tempTip.setDuration(3000);
|
|
window.tempTip.setDuration(3000);
|
|
|
window.tempTip.show(res.data.data);
|
|
window.tempTip.show(res.data.data);
|
|
|
|
|
+ window.tempTip.showErrorAudio();
|
|
|
}).catch(err=>{
|
|
}).catch(err=>{
|
|
|
window.tempTip.setDuration(3000);
|
|
window.tempTip.setDuration(3000);
|
|
|
window.tempTip.show("网络错误:"+err);
|
|
window.tempTip.show("网络错误:"+err);
|
|
|
|
|
+ window.tempTip.showErrorAudio();
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
},
|
|
},
|