Commit 1ac48582 authored by 黄媛媛's avatar 黄媛媛

111

parent f3db680f
...@@ -86,11 +86,21 @@ ...@@ -86,11 +86,21 @@
border-bottom: 4px solid #F8FAFB; border-bottom: 4px solid #F8FAFB;
cursor: pointer; cursor: pointer;
} }
.noHoverTable tr{
border-bottom:none!important;
}
.myTable .trNobottom{
border-top: 4px solid #F8FAFB!important;
border-bottom:none!important;
}
.myTable tbody tr:hover{ .myTable tbody tr:hover{
box-shadow:0px 0 20px 0px rgba(176,176,176,0.2); box-shadow:0px 0 20px 0px rgba(176,176,176,0.2);
transition: transform .5s ease; transition: transform .5s ease;
/* transform: scaleX(1.02); */ /* transform: scaleX(1.02); */
} }
.noHoverTable tbody tr:hover{
box-shadow:0 0 0 transparent!important;
}
.myTable tbody tr:hover .commonStyle{ .myTable tbody tr:hover .commonStyle{
display: block; display: block;
transition: transform .5s ease; transition: transform .5s ease;
...@@ -148,4 +158,7 @@ ...@@ -148,4 +158,7 @@
height: 0; height: 0;
overflow: hidden; overflow: hidden;
} }
.cred{
color:#FF2A3A;
}
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
} }
/* 分页 */ /* 分页 */
.el-pagination{ .el-pagination{
margin-top: 20px; margin-top: 10px;
text-align: right; text-align: right;
} }
.el-pagination.is-background .btn-next, .el-pagination.is-background .btn-prev, .el-pagination.is-background .el-pager li{ .el-pagination.is-background .btn-next, .el-pagination.is-background .btn-prev, .el-pagination.is-background .el-pager li{
...@@ -255,3 +255,17 @@ ...@@ -255,3 +255,17 @@
background: #28CACC!important; background: #28CACC!important;
border-color: #28CACC!important; border-color: #28CACC!important;
} }
/* 分页置地 */
/* .myPageBottom{
position: absolute;
bottom: 0px;
width: 100%;
background: #fff;
padding-top:15px;
} */
.overflowY{
overflow-y: scroll;
height: 100%;
box-sizing: border-box;
position: relative;
}
\ No newline at end of file
...@@ -243,41 +243,7 @@ export default { ...@@ -243,41 +243,7 @@ export default {
Name:'', Name:'',
Type:1, Type:1,
}, },
treedata: [{ treedata: [],
label: '一级 1',
children: [{
label: '二级 1-1',
children: [{
label: '三级 1-1-1'
}]
}]
}, {
label: '一级 2',
children: [{
label: '二级 2-1',
children: [{
label: '三级 2-1-1'
}]
}, {
label: '二级 2-2',
children: [{
label: '三级 2-2-1'
}]
}]
}, {
label: '一级 3',
children: [{
label: '二级 3-1',
children: [{
label: '三级 3-1-1'
}]
}, {
label: '二级 3-2',
children: [{
label: '三级 3-2-1'
}]
}]
}],
defaultProps: { defaultProps: {
// ChildList // ChildList
children: 'children', children: 'children',
...@@ -474,9 +440,6 @@ export default { ...@@ -474,9 +440,6 @@ export default {
.Archivesmaterials{ .Archivesmaterials{
background: #F8FAFB; background: #F8FAFB;
width: 100%; width: 100%;
min-height: 100%; height: 100%;
position: absolute;
padding: 20px 30px;
box-sizing: border-box;
} }
</style> </style>
...@@ -211,9 +211,6 @@ export default { ...@@ -211,9 +211,6 @@ export default {
.Materialwarehouse{ .Materialwarehouse{
background: #F8FAFB; background: #F8FAFB;
width: 100%; width: 100%;
min-height: 100%; height: 100%;
position: absolute;
padding: 20px 30px;
box-sizing: border-box;
} }
</style> </style>
<template> <template>
<div class="rukudan"> <div class="rukudan">
<div style="text-align:right;border-bottom:1px solid #E2E4EB;padding-bottom:10px"> <div style="text-align:right;border-bottom:1px solid #E2E4EB;padding-bottom:10px">
<span class="pageTitle">资产列表</span> <span class="pageTitle">入库单列表</span>
<span @click="morequery=!morequery" style="display:inline-flex;align-items:center;cursor: pointer;" class="f12 cd6"> <span @click="morequery=!morequery" style="display:inline-flex;align-items:center;cursor: pointer;" class="f12 cd6">
<span style="margin-right:5px">高级查询</span> <span style="margin-right:5px">高级查询</span>
<img v-show="!morequery" style="width:12px;height:12px" src="../../assets/img/more.png" alt=""> <img v-show="!morequery" style="width:12px;height:12px" src="../../assets/img/more.png" alt="">
...@@ -47,7 +47,8 @@ ...@@ -47,7 +47,8 @@
</el-date-picker> </el-date-picker>
</li> </li>
</ul> </ul>
<table style="margin-top:10px" class="myTable" v-loading="loading" border="0" cellspacing="0" cellpadding="0"> <div class="overflowY" :style='{"height":tableHeight+"px"}'>
<table style="margin-top:10px" class="myTable noHoverTable" v-loading="loading" border="0" cellspacing="0" cellpadding="0">
<thead> <thead>
<th>入库状态</th> <th>入库状态</th>
<th>入库单编码</th> <th>入库单编码</th>
...@@ -60,26 +61,26 @@ ...@@ -60,26 +61,26 @@
<th>单价</th> <th>单价</th>
<th>金额</th> <th>金额</th>
<th>数量</th> <th>数量</th>
<th>操作</th> <th width="150px">操作</th>
</thead> </thead>
<tbody> <tbody>
<template v-for="item in tableData"> <template v-for="item in tableData">
<tr v-for="(delist,index) in item.DetailList" :key="index"> <tr :class="index==0?'trNobottom':''" v-for="(delist,index) in item.DetailList" :key="delist.Id">
<td :colspan="item.DetailList.length"> <td :rowspan="item.DetailList.length" v-if="index==0">
<!-- <span class="commonStyle hoverSpan1"></span> --> <!-- <span class="commonStyle hoverSpan1"></span> -->
{{item.StockInStateStr}} {{item.StockInStateStr}}
</td> </td>
<td :colspan="item.DetailList.length">{{item.StockInNum}}</td> <td :rowspan="item.DetailList.length" v-if="index==0">{{item.StockInNum}}</td>
<td :colspan="item.DetailList.length">{{item.WareHouseName}}</td> <td :rowspan="item.DetailList.length" v-if="index==0">{{item.WareHouseName}}</td>
<td :colspan="item.DetailList.length">{{item.SupplierName}}</td> <td :rowspan="item.DetailList.length" v-if="index==0">{{item.SupplierName}}</td>
<td :colspan="item.DetailList.length">{{item.StockInDate}}</td> <td :rowspan="item.DetailList.length" v-if="index==0">{{item.StockInDate}}</td>
<td>{{delist.CategoryName}}</td> <td>{{delist.CategoryName}}</td>
<td>{{delist.SuppliesName}}</td> <td>{{delist.SuppliesName}}</td>
<td>{{delist.BrandName}}</td> <td>{{delist.BrandName}}</td>
<td>{{delist.UnitPrice}}</td> <td>{{delist.UnitPrice}}</td>
<td>{{delist.Money}}</td> <td>{{delist.Money}}</td>
<td>{{delist.Number}}</td> <td>{{delist.Number}}</td>
<td> <td :rowspan="item.DetailList.length" v-if="index==0">
<el-tooltip class="item" effect="dark" content="编辑" placement="top"> <el-tooltip class="item" effect="dark" content="编辑" placement="top">
<img @click="Edit(item)" style="width:24px;height:24px" src="../../assets/img/edit.png" alt=""> <img @click="Edit(item)" style="width:24px;height:24px" src="../../assets/img/edit.png" alt="">
...@@ -88,7 +89,10 @@ ...@@ -88,7 +89,10 @@
<img @click="Delete(item)" style="width:24px;height:24px" src="../../assets/img/delete.png" alt=""> <img @click="Delete(item)" style="width:24px;height:24px" src="../../assets/img/delete.png" alt="">
</el-tooltip> </el-tooltip>
<el-tooltip class="item" effect="dark" content="取消入库单" placement="top"> <el-tooltip class="item" effect="dark" content="取消入库单" placement="top">
<img @click="Quxiao(item)" style="width:24px;height:24px" src="../../assets/img/qx.png" alt=""> <img v-show="item.StockInState==1" @click="Quxiao(item)" style="width:24px;height:24px" src="../../assets/img/qx.png" alt="">
</el-tooltip>
<el-tooltip class="item" effect="dark" content="恢复入库单" placement="top">
<span v-show="item.StockInState==2" @click="Huifu(item)">恢复入库单</span>
</el-tooltip> </el-tooltip>
<!-- <span class="commonStyle hoverSpan2"></span> --> <!-- <span class="commonStyle hoverSpan2"></span> -->
</td> </td>
...@@ -101,7 +105,8 @@ ...@@ -101,7 +105,8 @@
</tr> </tr>
</tbody> </tbody>
</table> </table>
<el-pagination </div>
<el-pagination class="myPageBottom"
@current-change="currentChange" @current-change="currentChange"
background background
:page-size="msg.pageSize" :page-size="msg.pageSize"
...@@ -115,44 +120,102 @@ ...@@ -115,44 +120,102 @@
width="815px"> width="815px">
<el-form class="MyEditForm" :model="addMsg" :rules="rules" ref="addMsg" label-width="0px"> <el-form class="MyEditForm" :model="addMsg" :rules="rules" ref="addMsg" label-width="0px">
<div class="basefix"> <div class="basefix">
<el-form-item label="" prop="Name"> <el-form-item label="" prop="WarehouseId">
<span class="label">供应商名称</span> <span class="label">仓库</span>
<el-input size="small" v-model="addMsg.Name" placeholder="请输入"></el-input> <el-select size="mini" v-model="addMsg.WarehouseId" placeholder="请选择">
</el-form-item> <el-option
<el-form-item label="" prop="Contact"> v-for="item in getWareHouseList"
<span class="label">联系人</span> :key="item.Id"
<el-input size="small" v-model="addMsg.Contact" placeholder="请输入"></el-input> :label="item.Name"
:value="item.Id">
</el-option>
</el-select>
</el-form-item> </el-form-item>
<el-form-item label="" prop="Mobile"> <el-form-item label="">
<span class="label">联系电话</span> <span class="label">入库金额</span>
<el-input size="small" v-model="addMsg.Mobile" placeholder="请输入"></el-input> <el-input size="small" v-model="addMsg.Money" placeholder="请输入" :readonly="true"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="" prop="GetTime"> <el-form-item label="" prop="StockInDate">
<p class="label">入库时间</p> <span class="label">入库时间</span>
<el-date-picker <el-date-picker
size="mini" size="mini"
v-model="addMsg.GetTime" v-model="addMsg.StockInDate"
type="date" type="date"
value-format="yyyy-MM-dd" value-format="yyyy-MM-dd"
placeholder="选择日期"> placeholder="选择日期">
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
<el-form-item label="" prop="SupplierName">
<span class="label"> 供应商</span>
<el-input size="small" v-model="addMsg.SupplierName" placeholder="请输入"></el-input>
</el-form-item>
<el-form-item label="">
<span class="label">备注</span>
<el-input size="small" v-model="addMsg.Remark" placeholder="请输入"></el-input>
</el-form-item>
</div> </div>
<div class="chooseDiv"> <div class="chooseDiv">
<span> <span @click="OpenWldig">
<img style="width:10px;height:10px" src="../../assets/img/add.png" alt=""> <img style="width:10px;height:10px" src="../../assets/img/add.png" alt="">
选择物料 选择物料
</span> </span>
<span style="margin-left:20px"> <span @click="ycwuitemList" style="margin-left:20px">
<span class="f20">-</span> <span class="f20">-</span>
移出物料 移出物料
</span> </span>
</div> </div>
<div class="myScroll" style="overflow:scroll;height:180px;margin-top:20px"> <div class="myScroll" style="overflow:scroll;max-height:300px;margin-top:20px">
<table style="width:1000px;" class="myTable" border="0" cellspacing="0" cellpadding="0">
<thead>
<th><input class="color-input-red" type="checkbox" v-model="ItemisCkedAll" @click='ItemcheckAll()'></th>
<th>档案编码</th>
<th>物料名称</th>
<th>分类名称</th>
<th>品牌</th>
<th>单价</th>
<th width="100px"><span class="cred">*入库数量</span></th>
<th width="100px"><span class="cred">*入库金额</span></th>
<th width="200px">备注</th>
</thead>
<tbody>
<tr v-for="(item,index) in wlItemList" :key="index">
<td>
<input class="color-input-red" type="checkbox" v-model="ItemCheckList" :value="item" @change="ItemcheckOne">
</td>
<td>{{item.SuppliesNum}}</td>
<td>{{item.SuppliesName}}</td>
<td>{{item.CategoryName}}</td>
<td>{{item.BrandName}}</td>
<td>{{item.UnitPrice}}</td>
<td><el-input @input="NumberChange(item,index)" v-model="item.Number"></el-input></td>
<td><el-input @input="MoneyChange(item,index)" v-model="item.Money"></el-input></td>
<td><el-input v-model="item.Remark"></el-input></td>
</tr>
<tr v-show="wlItemList.length==0">
<td colspan="12" align="center">暂无数据</td>
</tr>
</tbody>
</table>
</div>
<div class="btnformItem">
<span class="submitBtn" type="primary" @click="submitForm('addMsg')">确定入库</span>
<span class="exitBtn" @click="dialogState=false">取消</span>
</div>
</el-form>
</el-dialog>
<!-- 选择物料 -->
<el-dialog
title="选择物料"
:visible.sync="wuliaodig"
width="750px">
<el-form class="MyEditForm" :model="addMsg" label-width="0px">
<div class="myScroll" style="overflow:scroll;max-height:500px;margin-top:20px">
<table style="width:1250px;" class="myTable" border="0" cellspacing="0" cellpadding="0"> <table style="width:1250px;" class="myTable" border="0" cellspacing="0" cellpadding="0">
<thead> <thead>
<th><input class="color-input-red" type="checkbox"></th> <th><input class="color-input-red" type="checkbox" v-model="wlisCkedAll" @click='wlcheckAll()'></th>
<th width="100px">物料档案名称</th> <th width="100px">物料名称</th>
<th width="100px">分类名称</th> <th width="100px">分类名称</th>
<th width="100px">品牌名</th> <th width="100px">品牌名</th>
<th width="100px">成本价</th> <th width="100px">成本价</th>
...@@ -162,55 +225,42 @@ ...@@ -162,55 +225,42 @@
<th width="100px">型号</th> <th width="100px">型号</th>
<th width="100px">档案编码</th> <th width="100px">档案编码</th>
<th width="100px">操作人</th> <th width="100px">操作人</th>
<th width="100px">操作时间</th>
<th width="100px">备注</th> <th width="100px">备注</th>
</thead> </thead>
<tbody> <tbody>
<tr> <tr v-for="(item,index) in wuliaoList" :key="index">
<td>
<input class="color-input-red" type="checkbox">
</td>
<td><el-input size="small" v-model="addMsg.Mobile" placeholder="请输入内容"></el-input></td>
<td>2</td>
<td>3</td>
<td>1</td>
<td>1</td>
<td>1</td>
<td>1</td>
<td>1</td>
<td>1</td>
<td>1</td>
<td>1</td>
<td>1</td>
</tr>
<tr>
<td> <td>
<input class="color-input-red" type="checkbox"> <input class="color-input-red" type="checkbox" v-model="wlcheckList" :value="item" @change="wlcheckOne">
</td> </td>
<td>1</td> <td>{{item.Name}}</td>
<td>2</td> <td>{{item.CategoryName}}</td>
<td>3</td> <td>{{item.BrandName}}</td>
<td>1</td> <td>{{item.Money}}</td>
<td>1</td> <td>{{item.SupplierName}}</td>
<td>1</td> <td>{{item.Barcode}}</td>
<td>1</td> <td>{{item.SuppliesModel}}</td>
<td>1</td> <td>{{item.SuppliesModel}}</td>
<td>1</td> <td>{{item.SuppliesNum}}</td>
<td>1</td> <td>{{item.UpdateBy}}</td>
<td>1</td> <td>{{item.Remark}}</td>
<td>1</td>
</tr> </tr>
<tr v-show="tableData.length==0"> <tr v-show="wuliaoList.length==0">
<td colspan="12" align="center">暂无数据</td> <td colspan="12" align="center">暂无数据</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
</div> </div>
<el-pagination
@current-change="currentChange1"
background
:page-size="wuliaomsg.pageSize"
layout="prev, pager, next"
:total="wuliaototal">
</el-pagination>
<div class="btnformItem"> <div class="btnformItem">
<span class="submitBtn" type="primary" @click="submitForm('addMsg')">确定入库</span> <span class="submitBtn" type="primary" @click="chooseWu">确定</span>
<span class="exitBtn" @click="dialogState=false">取消</span> <span class="exitBtn" @click="wuliaodig=false">取消</span>
</div> </div>
</el-form> </el-form>
</el-dialog> </el-dialog>
...@@ -239,37 +289,196 @@ export default { ...@@ -239,37 +289,196 @@ export default {
}, },
addMsg:{ addMsg:{
Id:0, Id:0,
Name:'', WarehouseId:'',
Contact:'', StockInDate:'',
Mobile:'', Money:'',
SupplierName:'',
Remark:'',
DetailList:[],
}, },
dialogtitle:'新增',
dialogState:false, dialogState:false,
rules:{ rules:{
Name: [ SupplierName: [
{ required: true, message: '请输入供应商名称', trigger: 'blur' } { required: true, message: '请输入供应商', trigger: 'blur' }
],
Contact: [
{ required: true, message: '请输入联系人', trigger: 'blur' }
], ],
Mobile: [ StockInDate: [
{ required: true, message: '请输入联系电话', trigger: 'blur' },
{required: true,pattern: /^(0|86|17951)?(13[0-9]|15[012356789]|17[012356789]|18[0-9]|19[0-9]|14[57])[0-9]{8}$/,message: '请输入正确的联系电话'}
],
GetTime: [
{ type: 'string', required: true, message: '请选择日期', trigger: 'change' } { type: 'string', required: true, message: '请选择日期', trigger: 'change' }
], ],
WarehouseId: [
{ required: true, message: '请选择仓库', trigger: 'change' }
],
}, },
getWareHouseList:[], getWareHouseList:[],
dateList:[], dateList:[],
wuliaototal:0,
wuliaoList:[],
wuliaomsg:{
pageIndex:1,
pageSize:8,
Name:'',
SuppliesNum:"",
BrandName:'',
CategoryId:'',
SupplierName:''
},
wuliaodig:false,
wlcheckList:[],
wlisCkedAll:false,
wlcheckAllList:[],
wlItemList:[],
ItemisCkedAll:false,
ItemCheckList:[],
tableHeight:0,
} }
}, },
created(){
this.tableHeight=document.body.clientHeight-40-66-87;
},
mounted(){ mounted(){
this.getList(); this.getList();
this.getWareHouse(); this.getWareHouse();
this.getWuliao();
}, },
methods:{ methods:{
Huifu(item){
this.apiJavaPost("/api/Supplies/RecoverStockInInfo",{StockInId:item.Id},
res => {
if (res.data.resultCode === 1) {
this.getList();
this.Success(res.data.message)
} else {
this.Error(res.data.message);
}
},
null
);
},
NumberChange(item,index){
if(item.Number!='0' && item.Number!='' && item.Money!='0' && item.Money!=''){
this.wlItemList[index].UnitPrice=(Number(item.Money) / Number(item.Number)).toFixed(2);
}
this.addMsg.Money=0;
this.wlItemList.forEach(x=>{
this.addMsg.Money+=Number(x.Money)
})
},
MoneyChange(item,index){
if(item.Number!='0' && item.Number!='' && item.Money!='0' && item.Money!=''){
this.wlItemList[index].UnitPrice=(Number(item.Money) / Number(item.Number)).toFixed(2);
}
this.addMsg.Money=0;
this.wlItemList.forEach(x=>{
this.addMsg.Money+=Number(x.Money)
})
},
ItemcheckOne(){
if(this.ItemCheckList.length < this.wlItemList.length) {
this.ItemisCkedAll = false
} else {
this.ItemisCkedAll = true
}
},
ItemcheckAll(){
if(this.ItemisCkedAll == true) {
this.ItemCheckList = [];
} else {
this.ItemCheckList=[];
this.wlItemList.forEach(item => {
this.ItemCheckList.push(item)
})
}
},
ycwuitemList(){
if(this.ItemCheckList.length==0){
return;
}
this.$confirm("确认移出物料?","提示", {
confirmButtonText:"确定",
cancelButtonText: "取消",
type: 'warning'
}).then(() => {
var set=this.ItemCheckList.map(item=>item.Id)
var resArr=this.wlItemList.filter(item=>!set.includes(item.SuppliesId))
this.wlItemList=resArr;
this.addMsg.Money=0;
this.wlItemList.forEach(x=>{
this.addMsg.Money+=Number(x.Money)
})
}).catch(() => {
});
},
OpenWldig(){
this.wuliaodig=true;
this.wlcheckList=[];
this.wlisCkedAll=false;
},
chooseWu(){
this.wlcheckList.forEach(item=>{
this.wlItemList.push(item);
})
let obj = {};
let peon = this.wlItemList.reduce((cur,next) => {
obj[next.SuppliesId] ? "" : obj[next.SuppliesId] = true && cur.push(next);
return cur;
},[])
this.wlItemList=peon
this.wuliaodig=false;
},
wlcheckOne() { //单选
if(this.wlcheckList.length < this.wlcheckAllList.length) {
this.wlisCkedAll = false
} else {
this.wlisCkedAll = true
}
},
wlcheckAll() { //全选
if(this.wlisCkedAll == true) {
this.wlcheckList = [];
} else {
this.wlcheckList=[];
this.wlcheckAllList.forEach(item => {
this.wlcheckList.push(item)
})
}
},
currentChange1(val) {
this.wuliaomsg.pageIndex = val;
this.getWuliao();
},
getWuliao(){
this.apiJavaPost("/api/Supplies/GetMaterialPageList",this.wuliaomsg,
res => {
this.loading=false;
if (res.data.resultCode === 1) {
this.wuliaoList=res.data.data.pageData;
let data=res.data.data.pageData;
this.wuliaototal=res.data.data.count;
data.forEach(item=>{
item.Number='';
item.UnitPrice=0;
item.Money='';
item.Remark='';
item.SuppliesId=item.Id;
item.SuppliesName=item.Name;
})
this.wlcheckAllList=data;
} else {
this.Error(res.data.message);
}
},
null
);
},
// 仓库列表
getWareHouse(){ getWareHouse(){
this.apiJavaPost("/api/Supplies/GetWareHouseList",{Name:''}, this.apiJavaPost("/api/Supplies/GetWareHouseList",{Name:''},
res => { res => {
...@@ -285,17 +494,43 @@ export default { ...@@ -285,17 +494,43 @@ export default {
addSupplier(){ addSupplier(){
this.addMsg={ this.addMsg={
Id:0, Id:0,
Name:'', WarehouseId:'',
Contact:'', StockInDate:'',
Mobile:'', Money:'',
SupplierName:'',
Remark:'',
DetailList:[],
} }
this.dialogtitle="新增"; this.wlItemList=[];
this.dialogState=true; this.dialogState=true;
}, },
submitForm(formName) { submitForm(formName) {
this.$refs[formName].validate((valid) => { this.$refs[formName].validate((valid) => {
if (valid) { if (valid) {
this.apiJavaPost("/api/property/SetSupplierInfo",this.addMsg, this.addMsg.DetailList=[];
if(this.wlItemList.length==0){
this.Error("请选择物料!");
return;
}
for(let i=0;i<this.wlItemList.length;i++){
if(this.wlItemList[i].Number=='' || this.wlItemList[i].Number==0){
this.Error("入库数量不能为0!");
return;
}
if(this.wlItemList[i].Money=='' || this.wlItemList[i].Money==0){
this.Error("入库金额不能为0!");
return;
}
let obj={
SuppliesId:this.wlItemList[i].SuppliesId,
Number:this.wlItemList[i].Number,
Money:this.wlItemList[i].Money,
UnitPrice:this.wlItemList[i].UnitPrice,
Remark:this.wlItemList[i].Remark,
};
this.addMsg.DetailList.push(obj);
}
this.apiJavaPost("/api/Supplies/SetStockInInfo",this.addMsg,
res => { res => {
if (res.data.resultCode === 1) { if (res.data.resultCode === 1) {
this.getList(); this.getList();
...@@ -327,7 +562,6 @@ export default { ...@@ -327,7 +562,6 @@ export default {
res => { res => {
this.loading=false; this.loading=false;
if (res.data.resultCode === 1) { if (res.data.resultCode === 1) {
console.log("res",res);
this.tableData=res.data.data.pageData; this.tableData=res.data.data.pageData;
this.total=res.data.data.count; this.total=res.data.data.count;
} else { } else {
...@@ -338,23 +572,31 @@ export default { ...@@ -338,23 +572,31 @@ export default {
); );
}, },
Edit(item){ Edit(item){
this.dialogtitle="编辑"; if(item.StockInState==1){
this.Error("入库单已完成,无法修改!")
return;
}
this.dialogState=true; this.dialogState=true;
this.addMsg={ this.addMsg={
Id:item.Id, Id:item.Id,
Name:item.Name, WarehouseId:item.WarehouseId,
Contact:item.Contact, Remark:item.Remark,
Mobile:item.Mobile, StockInDate:item.StockInDate,
Money:item.Money,
SupplierName:item.SupplierName,
SuppliesId:item.SuppliesId,
DetailList:[],
} }
this.wlItemList=item.DetailList;
}, },
Delete(item){ Delete(item){
let Id=item.Id; let Id=item.Id;
this.$confirm("确认删除该供应商?","提示", { this.$confirm("确认删除?","提示", {
confirmButtonText:"确定", confirmButtonText:"确定",
cancelButtonText: "取消", cancelButtonText: "取消",
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
this.apiJavaPost("/api/property/DelSupplierInfo",{SupplierId:Id}, this.apiJavaPost("/api/Supplies/DelStockInInfo",{StockInId:Id},
res => { res => {
if (res.data.resultCode === 1) { if (res.data.resultCode === 1) {
this.getList(); this.getList();
...@@ -428,8 +670,10 @@ export default { ...@@ -428,8 +670,10 @@ export default {
font-size: 18px;font-weight: bold; font-size: 18px;font-weight: bold;
} }
.rukudan{ .rukudan{
padding:20px 30px;
box-sizing: border-box; position: relative;
width:100%;
height:100%;
} }
.rukudan .MyEditForm .el-form-item:nth-child(3n){ .rukudan .MyEditForm .el-form-item:nth-child(3n){
margin-right:0; margin-right:0;
......
...@@ -6,8 +6,8 @@ ...@@ -6,8 +6,8 @@
<img style="width:10px;height:10px;margin-right:6px" src="../../assets/img/add.png" alt=""> <img style="width:10px;height:10px;margin-right:6px" src="../../assets/img/add.png" alt="">
新增</span> 新增</span>
</div> </div>
<div style="margin-top:10px"> <div style="margin-top:10px;position:relative">
<div class="TreeDiv"> <div class="TreeDiv overflowY">
<el-tree <el-tree
@node-click="Nodeclick" @node-click="Nodeclick"
:props="defaultProps" :props="defaultProps"
...@@ -27,7 +27,8 @@ ...@@ -27,7 +27,8 @@
</el-tree> </el-tree>
</div> </div>
<div class="rightTable"> <div class="rightTable">
<table style="margin-top:10px" class="myTable" v-loading="loading" border="0" cellspacing="0" cellpadding="0"> <div class="overflowY" :style='{"height":tableHeight+"px"}'>
<table class="myTable" v-loading="loading" border="0" cellspacing="0" cellpadding="0">
<thead> <thead>
<tr> <tr>
<th>ID</th> <th>ID</th>
...@@ -62,6 +63,7 @@ ...@@ -62,6 +63,7 @@
</tr> </tr>
</tbody> </tbody>
</table> </table>
</div>
<el-pagination background @current-change="handleCurrentChange" :current-page.sync="currentPage" <el-pagination background @current-change="handleCurrentChange" :current-page.sync="currentPage"
layout="total,prev, pager, next, jumper" :page-size='msg.pageSize' :total='total'> layout="total,prev, pager, next, jumper" :page-size='msg.pageSize' :total='total'>
</el-pagination> </el-pagination>
...@@ -115,6 +117,7 @@ export default { ...@@ -115,6 +117,7 @@ export default {
} }
} }
return{ return{
tableHeight:'',
loading:false, loading:false,
data :[], data :[],
dataList:[], dataList:[],
...@@ -188,6 +191,9 @@ export default { ...@@ -188,6 +191,9 @@ export default {
highList:[], highList:[],
} }
}, },
created(){
this.tableHeight=document.body.clientHeight-40-66-90;
},
mounted(){ mounted(){
this.getList(); this.getList();
this.getNode(); this.getNode();
...@@ -378,19 +384,18 @@ export default { ...@@ -378,19 +384,18 @@ export default {
.rightTable{ .rightTable{
width: 100%; width: 100%;
position: relative; position: relative;
padding-left: 280px; padding-left: 250px;
box-sizing: border-box; box-sizing: border-box;
} }
.Assetscation{ .Assetscation{
padding-top:30px;
position: relative; position: relative;
} }
.Assetscation .TreeDiv{ .Assetscation .TreeDiv{
width: 220px; width: 220px;
position: absolute; position: absolute;
left: 30px; left: 0px;
z-index: 10; z-index: 10;
height:100%; height:100%;
padding: 20px 10px; padding: 20px 10px;
......
...@@ -6,8 +6,8 @@ ...@@ -6,8 +6,8 @@
<img style="width:10px;height:10px;margin-right:6px" src="../../assets/img/add.png" alt=""> <img style="width:10px;height:10px;margin-right:6px" src="../../assets/img/add.png" alt="">
新增</span> 新增</span>
</div> </div>
<div style="margin-top:10px"> <div style="margin-top:10px;position:relative">
<div class="TreeDiv"> <div class="TreeDiv overflowY">
<el-tree <el-tree
@node-click="Nodeclick" @node-click="Nodeclick"
:props="defaultProps" :props="defaultProps"
...@@ -27,7 +27,8 @@ ...@@ -27,7 +27,8 @@
</el-tree> </el-tree>
</div> </div>
<div class="rightTable"> <div class="rightTable">
<table style="margin-top:10px" class="myTable" v-loading="loading" border="0" cellspacing="0" cellpadding="0"> <div class="overflowY" :style='{"height":tableHeight+"px"}'>
<table class="myTable" v-loading="loading" border="0" cellspacing="0" cellpadding="0">
<thead> <thead>
<tr> <tr>
<th>ID</th> <th>ID</th>
...@@ -62,6 +63,8 @@ ...@@ -62,6 +63,8 @@
</tr> </tr>
</tbody> </tbody>
</table> </table>
</div>
<el-pagination background @current-change="handleCurrentChange" :current-page.sync="currentPage" <el-pagination background @current-change="handleCurrentChange" :current-page.sync="currentPage"
layout="total,prev, pager, next, jumper" :page-size='msg.pageSize' :total='total'> layout="total,prev, pager, next, jumper" :page-size='msg.pageSize' :total='total'>
</el-pagination> </el-pagination>
...@@ -117,6 +120,7 @@ export default { ...@@ -117,6 +120,7 @@ export default {
} }
} }
return{ return{
tableHeight:'',
loading:false, loading:false,
data :[], data :[],
dataList:[], dataList:[],
...@@ -190,6 +194,9 @@ export default { ...@@ -190,6 +194,9 @@ export default {
highList:[], highList:[],
} }
}, },
created(){
this.tableHeight=document.body.clientHeight-40-66-90;
},
mounted(){ mounted(){
this.getList(); this.getList();
this.getNode(); this.getNode();
...@@ -378,19 +385,18 @@ export default { ...@@ -378,19 +385,18 @@ export default {
.rightTable{ .rightTable{
width: 100%; width: 100%;
position: relative; position: relative;
padding-left: 280px; padding-left: 250px;
box-sizing: border-box; box-sizing: border-box;
} }
.Assetscation{ .Assetscation{
padding-top:30px;
position: relative; position: relative;
} }
.Assetscation .TreeDiv{ .Assetscation .TreeDiv{
width: 220px; width: 220px;
position: absolute; position: absolute;
left: 30px; left: 0px;
z-index: 10; z-index: 10;
height:100%; height:100%;
padding: 20px 10px; padding: 20px 10px;
......
...@@ -159,7 +159,7 @@ ...@@ -159,7 +159,7 @@
<el-input size="mini" v-model="addMsg.Money" placeholder="请输入"></el-input> <el-input size="mini" v-model="addMsg.Money" placeholder="请输入"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="" prop="BuyDate"> <el-form-item label="" prop="BuyDate">
<p class="label">购置日期</p> <span class="label">购置日期</span>
<el-date-picker size="mini" <el-date-picker size="mini"
v-model="addMsg.BuyDate" v-model="addMsg.BuyDate"
type="date" type="date"
...@@ -737,9 +737,6 @@ export default { ...@@ -737,9 +737,6 @@ export default {
.assetsList{ .assetsList{
background: #F8FAFB; background: #F8FAFB;
width: 100%; width: 100%;
min-height: 100%; height: 100%;
position: absolute;
padding: 20px 30px;
box-sizing: border-box;
} }
</style> </style>
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
</div> </div>
<div style="margin-top:60px"> <div style="margin-top:60px">
<el-menu <el-menu
:unique-opened="true"
@select="selectActive" @select="selectActive"
:default-active="defaulActive" :default-active="defaulActive"
class="el-menu-vertical-demo"> class="el-menu-vertical-demo">
...@@ -42,6 +43,7 @@ ...@@ -42,6 +43,7 @@
<el-menu-item index="2-1"><span>物料仓库</span></el-menu-item> <el-menu-item index="2-1"><span>物料仓库</span></el-menu-item>
<el-menu-item index="2-2"><span>物料档案</span></el-menu-item> <el-menu-item index="2-2"><span>物料档案</span></el-menu-item>
<el-menu-item index="2-3"><span>入库单</span></el-menu-item> <el-menu-item index="2-3"><span>入库单</span></el-menu-item>
<el-menu-item index="2-4"><span>出库单</span></el-menu-item>
</el-menu-item-group> </el-menu-item-group>
</el-submenu> </el-submenu>
...@@ -87,6 +89,7 @@ export default { ...@@ -87,6 +89,7 @@ export default {
'2-1':'/Materialwarehouse', '2-1':'/Materialwarehouse',
'2-2':'/Archivesmaterials', '2-2':'/Archivesmaterials',
'2-3':'/rukudan', '2-3':'/rukudan',
'2-4':'/chukudan',
'3-1':'/AssetsClassification', '3-1':'/AssetsClassification',
'3-2':'/MaterialClassification', '3-2':'/MaterialClassification',
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
</div> </div>
</div> </div>
<div class="routerContent"> <div class="routerContent">
<div :style='{"min-height":minHeight+"px"}'> <div :style='{"height":minHeight+"px"}'>
<router-view/> <router-view/>
</div> </div>
...@@ -67,6 +67,8 @@ export default { ...@@ -67,6 +67,8 @@ export default {
} }
.appContent .routerContent>div{ .appContent .routerContent>div{
position: relative; position: relative;
padding:20px 30px 10px 30px;
box-sizing: border-box;
} }
.nav{ .nav{
position: fixed; position: fixed;
......
...@@ -71,6 +71,12 @@ export default { ...@@ -71,6 +71,12 @@ export default {
name: 'rukudan', name: 'rukudan',
component: resolve => require(['@/components/Materialman/rukudan'], resolve), component: resolve => require(['@/components/Materialman/rukudan'], resolve),
}, },
// 出库单
{
path: '/chukudan',
name: 'chukudan',
component: resolve => require(['@/components/Materialman/chukudan'], 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