|
|
@@ -111,7 +111,7 @@
|
|
|
</span>
|
|
|
</form>
|
|
|
|
|
|
- <div class="row d-none d-xl-block" v-if="inventoryAccountMissions.length>=1">
|
|
|
+ <div class="row d-none d-xl-block" v-if="inventoryAccountMissions.length>=1&&!listMode">
|
|
|
<div class="col-12 col-md-12 col-sm-12">
|
|
|
<table class="table table-sm table-bordered table-info mt-2">
|
|
|
<tr>
|
|
|
@@ -140,10 +140,10 @@
|
|
|
<td v-if="inventoryMission.commodity">@{{ inventoryMission.commodity.barcode }}</td>
|
|
|
<td v-if="inventoryMission.commodity">@{{ inventoryMission.commodity.sku }}</td>
|
|
|
<td>
|
|
|
- <input type="date" class="form-control-sm" name="produced_at" v-model="inventoryMission.produced_at" >
|
|
|
+ <input type="date" class="form-control-sm" name="produced_at" v-model="inventoryMission.produced_at.substr(0,10)" >
|
|
|
</td>
|
|
|
<td>
|
|
|
- <input type="date" class="form-control-sm" name="valid_at" v-model="inventoryMission.valid_at" >
|
|
|
+ <input type="date" class="form-control-sm" name="valid_at" v-model="inventoryMission.valid_at.substr(0,10)" >
|
|
|
</td>
|
|
|
<td class="text-muted">
|
|
|
<input type="text" class="form-control-sm" name="batch_number" v-model="inventoryMission.batch_number" >
|
|
|
@@ -248,7 +248,7 @@
|
|
|
</table>
|
|
|
</div>
|
|
|
<!--相同库位和条码-->
|
|
|
- <table class="table table-striped table-sm table-bordered table-hover p-0 d-table d-xl-none mt-2" style="background: rgb(179, 214, 245);">
|
|
|
+ <table class="table table-striped table-sm table-bordered table-hover p-0 d-table d-xl-none mt-2" style="background: rgb(179, 214, 245);" v-if="!listMode">
|
|
|
<tr v-for="inventoryMission in inventoryAccountMissions">
|
|
|
<td style="filter:grayscale(30%); ">
|
|
|
<div class="mt-3">
|
|
|
@@ -258,11 +258,11 @@
|
|
|
<span class="mr-3 text-nowrap"><span class="font-weight-bold">产品条码:</span><span v-if="inventoryMission.commodity">@{{ inventoryMission.commodity.barcode }}</span></span>
|
|
|
<span class="mr-3 text-nowrap"><span class="font-weight-bold">产品编码:</span><span v-if="inventoryMission.commodity">@{{ inventoryMission.commodity.sku }}</span></span>
|
|
|
<span class="mr-3 text-nowrap"><span class="font-weight-bold">生产日期:</span>
|
|
|
- <input type="date" class="form-control-sm" name="produced_at" v-model="inventoryMission.produced_at">
|
|
|
+ <input type="date" class="form-control-sm" name="produced_at" v-model="inventoryMission.produced_at.substr(0,10)">
|
|
|
</span>
|
|
|
|
|
|
<span class="mr-3 text-nowrap"><span class="font-weight-bold">失效时期:</span>
|
|
|
- <input type="date" class="form-control-sm" name="valid_at" v-model="inventoryMission.valid_at">
|
|
|
+ <input type="date" class="form-control-sm" name="valid_at" v-model="inventoryMission.valid_at.substr(0,10)">
|
|
|
</span>
|
|
|
|
|
|
<span class="mr-3 text-nowrap"><span class="font-weight-bold">批号:</span>
|
|
|
@@ -595,9 +595,14 @@
|
|
|
});
|
|
|
}
|
|
|
}
|
|
|
- _this.inventoryMissions.forEach(function (inventoryMission,i) {
|
|
|
+ //拷贝_this.inventoryMissions
|
|
|
+ let allData=JSON.stringify(_this.inventoryMissions);
|
|
|
+ let allData1=JSON.parse(allData);
|
|
|
+ allData1.forEach(function (inventoryMission,i) {
|
|
|
if (inventoryMission.location===location && barcode===inventoryMission.commodity.barcode){
|
|
|
- _this.inventoryAccountMissions.push(inventoryMission);
|
|
|
+ if (! _this.inventoryAccountMissions.includes(inventoryMission)){
|
|
|
+ _this.inventoryAccountMissions.push(inventoryMission);
|
|
|
+ }
|
|
|
}
|
|
|
});
|
|
|
},
|