|
@@ -6,6 +6,7 @@
|
|
|
<div id="form_div"></div>
|
|
<div id="form_div"></div>
|
|
|
<div class="ml-2">
|
|
<div class="ml-2">
|
|
|
<button class="btn btn-sm btn-primary" @click="syncStorage()">同步FLUX部分库存</button>
|
|
<button class="btn btn-sm btn-primary" @click="syncStorage()">同步FLUX部分库存</button>
|
|
|
|
|
+ <button class="btn btn-sm btn-outline-info" @click="settingAsnRule()">设定ASN收货规则</button>
|
|
|
</div>
|
|
</div>
|
|
|
<table class="table table-striped table-sm text-nowrap table-hover td-min-width-80" id="table">
|
|
<table class="table table-striped table-sm text-nowrap table-hover td-min-width-80" id="table">
|
|
|
<tr v-for="(store,i) in stores" :id="'data-'+store.id" @click="selectTableRow(i,$event)">
|
|
<tr v-for="(store,i) in stores" :id="'data-'+store.id" @click="selectTableRow(i,$event)">
|
|
@@ -53,6 +54,7 @@
|
|
|
</td>
|
|
</td>
|
|
|
</tr>
|
|
</tr>
|
|
|
</table>
|
|
</table>
|
|
|
|
|
+ @include("store.inStorage._settingAsnRule")
|
|
|
<div class="text-info h5 btn btn">{{$stores->count()}}/{{$stores->total()}}</div>
|
|
<div class="text-info h5 btn btn">{{$stores->count()}}/{{$stores->total()}}</div>
|
|
|
<div>{{$stores->appends($paginateParams)->links()}}</div>
|
|
<div>{{$stores->appends($paginateParams)->links()}}</div>
|
|
|
</div>
|
|
</div>
|
|
@@ -71,8 +73,8 @@
|
|
|
@endforeach
|
|
@endforeach
|
|
|
],
|
|
],
|
|
|
owners:[
|
|
owners:[
|
|
|
- @foreach($owners as $owner)
|
|
|
|
|
- {name:'{{$owner->id}}',value:'{{$owner->name}}'},
|
|
|
|
|
|
|
+ @foreach($owners as $owner)
|
|
|
|
|
+ {name:'{{$owner->id}}',value:'{{$owner->name}}',is_show:Boolean({!! $owner->is_check_asn !!})},
|
|
|
@endforeach
|
|
@endforeach
|
|
|
],
|
|
],
|
|
|
warehouses:[
|
|
warehouses:[
|
|
@@ -163,6 +165,27 @@
|
|
|
})
|
|
})
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
|
|
+ settingAsnRule(){
|
|
|
|
|
+ $("#modal").modal("show");
|
|
|
|
|
+ },
|
|
|
|
|
+ selectAll(show){
|
|
|
|
|
+ let val = event.target.checked;
|
|
|
|
|
+ this.owners.forEach((owner,index)=>{
|
|
|
|
|
+ if (owner.is_show===show)this.$set(this.owners[index],"is_check_asn",val);
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
|
|
+ changeAsnRule(show){
|
|
|
|
|
+ let pool = [];
|
|
|
|
|
+ this.owners.forEach((owner,index)=>{
|
|
|
|
|
+ if (owner.is_show===show && owner.is_check_asn){
|
|
|
|
|
+ owner.is_show = !owner.is_show;
|
|
|
|
|
+ owner.is_check_asn = !owner.is_check_asn;
|
|
|
|
|
+ this.$set(this.owners,index,owner);
|
|
|
|
|
+ pool.push(owner.name);
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+ window.tempTip.postBasicRequest("{{url('store/inStorage/changeAsnRule')}}",{ids:pool,val:show},()=>{});
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
</script>
|
|
</script>
|