Commit 301ed530 authored by Mac's avatar Mac

1

parent 99d035b2
...@@ -38,6 +38,16 @@ ...@@ -38,6 +38,16 @@
</el-option> </el-option>
</el-select> </el-select>
</li> </li>
<li>
<el-select size="small" filterable clearable v-model="msg.ExpiresDay" placeholder="过期天数" @change="msg.pageIndex=1,getList()">
<el-option
v-for="item in daylist"
:key="item.Id"
:label="item.Name"
:value="item.Id">
</el-option>
</el-select>
</li>
</ul> </ul>
<vxe-table stripe style="margin-top:15px" :loading="loading" <vxe-table stripe style="margin-top:15px" :loading="loading"
:data="tableData"> :data="tableData">
...@@ -70,6 +80,11 @@ ...@@ -70,6 +80,11 @@
<span v-else>{{row.Number}}</span> <span v-else>{{row.Number}}</span>
</template> </template>
</vxe-table-column> </vxe-table-column>
<vxe-table-column field="Number" title="到期数量">
<template v-slot="{ row }">
<span class="underline" >{{row.RecentExpiresNum}}</span>
</template>
</vxe-table-column>
<vxe-table-column field="address" title="操作"> <vxe-table-column field="address" title="操作">
<template v-slot="{ row }"> <template v-slot="{ row }">
<el-tooltip class="item" effect="dark" content="日志" placement="top"> <el-tooltip class="item" effect="dark" content="日志" placement="top">
...@@ -171,7 +186,19 @@ export default { ...@@ -171,7 +186,19 @@ export default {
pageSize:15, pageSize:15,
WarehouseId:'', WarehouseId:'',
SuppliesId:'', SuppliesId:'',
ExpiresDay:90,
}, },
daylist:[
{Id:10,Name:'过期天数10天'},
{Id:20,Name:'过期天数20天'},
{Id:30,Name:'过期天数30天'},
{Id:40,Name:'过期天数40天'},
{Id:50,Name:'过期天数50天'},
{Id:60,Name:'过期天数60天'},
{Id:70,Name:'过期天数70天'},
{Id:80,Name:'过期天数80天'},
{Id:90,Name:'过期天数90天'},
],
addMsg:{ addMsg:{
Id:0, Id:0,
Name:'', Name:'',
......
This diff is collapsed.
...@@ -50,6 +50,7 @@ ...@@ -50,6 +50,7 @@
<vxe-table-column field="Units" title="单位"></vxe-table-column> <vxe-table-column field="Units" title="单位"></vxe-table-column>
<vxe-table-column field="StockInNum" title="入库单号"></vxe-table-column> <vxe-table-column field="StockInNum" title="入库单号"></vxe-table-column>
<vxe-table-column field="ExpirationDate" title="有效期"></vxe-table-column>
<vxe-table-column field="StockInDate" title="入库时间"></vxe-table-column> <vxe-table-column field="StockInDate" title="入库时间"></vxe-table-column>
<vxe-table-column field="UnitPrice" title="价格"></vxe-table-column> <vxe-table-column field="UnitPrice" title="价格"></vxe-table-column>
<vxe-table-column title="操作"> <vxe-table-column title="操作">
...@@ -212,6 +213,20 @@ ...@@ -212,6 +213,20 @@
if(myData){ if(myData){
var scanMsg = {}; var scanMsg = {};
var data2 = JSON.parse(JSON.stringify(this.tableData)); var data2 = JSON.parse(JSON.stringify(this.tableData));
// 2021-4-1加的
let goon = true
if(myData.ValidityId>0 && this.scanData.length>0){
this.scanData.map(x=>{
if(x.ValidityId == myData.ValidityId){
this.Error("该商品重复扫码");
goon = false
return
}
})
}
if(goon == false){//如果有相同的id 就不执行下面的内容
return
}
this.orderNum=0; this.orderNum=0;
let isUpdate=false let isUpdate=false
for (let i = 0; i < data2.length; i++) { for (let i = 0; i < data2.length; i++) {
...@@ -230,6 +245,7 @@ ...@@ -230,6 +245,7 @@
scanMsg.SpecificationSort = x.NewSpecificationSort; scanMsg.SpecificationSort = x.NewSpecificationSort;
scanMsg.GoodsId = x.NewGoodsId; scanMsg.GoodsId = x.NewGoodsId;
scanMsg.GoodsName = x.NewGoodsName; scanMsg.GoodsName = x.NewGoodsName;
scanMsg.ValidityId = myData.ValidityId;
scanMsg.StockInId = myData.StockInId; scanMsg.StockInId = myData.StockInId;
this.sureMsg.WarehouseOutGoodsDetailList.push(scanMsg); this.sureMsg.WarehouseOutGoodsDetailList.push(scanMsg);
...@@ -237,7 +253,6 @@ ...@@ -237,7 +253,6 @@
} }
} }
} }
console.log(this.orderNum>0 && !isUpdate)
if(this.orderNum>0 && !isUpdate){ if(this.orderNum>0 && !isUpdate){
this.Error("超过了出库数量"); this.Error("超过了出库数量");
} }
......
...@@ -166,6 +166,12 @@ export default { ...@@ -166,6 +166,12 @@ export default {
name: 'disposalDetails', name: 'disposalDetails',
component: resolve => require(['@/components/assetsman/disposalDetails'], resolve), component: resolve => require(['@/components/assetsman/disposalDetails'], resolve),
}, },
// 物料到期查询
{
path: '/materielexpire',
name: 'materielexpire',
component: resolve => require(['@/components/assetsman/materielexpire'], resolve),
},
// 资产折旧报表 // 资产折旧报表
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment