|
|
@@ -45,8 +45,7 @@
|
|
|
<button class="btn btn-sm btn-info" @click="新增盘点记录()" :class="listMode?'btn-dark':'btn-outline-dark'" v-if="!listMode&&!addInventoryMission">新增盘点记录</button>
|
|
|
<button class="btn btn-sm" @click="收起新增()" :class="addInventoryMission?'btn-dark':'btn-outline-dark'" v-if="addInventoryMission">收起新增</button>
|
|
|
</span>
|
|
|
-
|
|
|
-
|
|
|
+ <button class="btn btn-sm btn-success" @click="outToULine()" v-if="!listMode&&materialBoxCodes">出库</button>
|
|
|
<span class="form-group mb-5">
|
|
|
<label class="text-muted">货主:</label><span class="font-weight-bold">@{{ inventory.owner.name }}</span>
|
|
|
</span>
|
|
|
@@ -715,7 +714,8 @@
|
|
|
scanEndInputted:false,binDisable:false,barcodeDisable:true,amountDisable:false,
|
|
|
},
|
|
|
goodses:[],
|
|
|
- selectTr:''
|
|
|
+ selectTr:'',
|
|
|
+ materialBoxCodes:'',
|
|
|
},
|
|
|
beforeMount: function () {
|
|
|
this.重排序并标记全列表类型();
|
|
|
@@ -770,8 +770,32 @@
|
|
|
_this.listMode = false;
|
|
|
})();
|
|
|
_this.建立记录索引();
|
|
|
+ _this.inventoryMissions.forEach(function (inventoryMission){
|
|
|
+ if (inventoryMission.location.indexOf('IDE')>-1){
|
|
|
+ _this.materialBoxCodes += inventoryMission.location + ','
|
|
|
+ }
|
|
|
+ });
|
|
|
+ if (_this.materialBoxCodes.length > 0) {
|
|
|
+ _this.materialBoxCodes = _this.materialBoxCodes.substr(0,_this.materialBoxCodes.length - 1);
|
|
|
+ }
|
|
|
},
|
|
|
methods:{
|
|
|
+ outToULine(){
|
|
|
+ if(!confirm('确定要将当前盘点任务涉及的IDE料箱号出至输送线吗?')){return;}
|
|
|
+ let _this=this;
|
|
|
+ let text = _this.materialBoxCodes;
|
|
|
+ if(!text){
|
|
|
+ alert('当前盘点任务未查询到IDE料箱号!')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ console.log(text)
|
|
|
+ axios.post('{{url('/api/thirdPart/haiq/storage/takeOutToULine')}}',{codes:text})
|
|
|
+ .then(function(response){
|
|
|
+ tempTip.okWindow(response.data.result,'确定')
|
|
|
+ }).catch(function(err){
|
|
|
+ tempTip.okWindow(err,'确定')
|
|
|
+ })
|
|
|
+ },
|
|
|
checkAll(e) {
|
|
|
if (e.target.checked) {
|
|
|
this.inventoryMissions.forEach((el,i)=>{
|