Commit 85240dac authored by 黄媛媛's avatar 黄媛媛

update

parent 54a7ff56
......@@ -36,6 +36,7 @@
justify-content: center;
cursor: pointer;
font-family: "宋体";
box-sizing: border-box;
}
.pageTitle{
......@@ -47,6 +48,22 @@
.roatImg{
transform: rotate(180deg);
}
/* chexkbox */
.myTable input[type="checkbox"]{
width:15px;height:15px;
display: inline-block;text-align: center;vertical-align: middle; line-height: 15px;position: relative;
}
.myTable input[type="checkbox"]::before{
content: "";position: absolute;top: 0;left: 0;
background: #fff;width: 100%;height: 100%;border: 1px solid #B9ECED
}
.myTable input[type="checkbox"]:checked::before{
content: "\2713";background-color: #fff;
position: absolute;top: 0;left: 0;
width:100%;border: 1px solid #00D2D6;color:#00D2D6;
font-size: 18px;font-weight: bold;
}
/* myTable */
.myTable{
width: 100%;
......@@ -214,10 +231,6 @@
background: #BEEFF0;
color: #28CACC;
}
.greenSpan{
background: #BEEFF0;
color: #28CACC;
}
.purpleSpan{
background: #D7D6FF;
color: #7B78FF;
......@@ -294,4 +307,43 @@
display: -webkit-box;
-webkit-line-clamp: 4;
-webkit-box-orient: vertical;
}
.backTo{
width:80px;
height:34px;
line-height:34px;
background:rgba(0,210,214,1);
border-radius:17px;
text-align: center;
color: #fff;
font-size: 12px;
font-family: "宋体";
display: inline-block;
margin-left:15px;
cursor: pointer;
}
/* 日志 */
.detailsIT_Journal .InfoChangeLog{height: auto;max-height: 220px;background-color: #FFFFFF;}
.detailsIT_Journal .changLogList{padding-left: 20px;max-height: 180px;overflow: auto;}
.detailsIT_Journal .changLogList_l{border-left: 1px solid #E9E9E9;position: relative;padding-bottom: 10px;padding-left: 20px;padding-top: 10px;}
.detailsIT_Journal ._radius_green{background-color: #47BF8C;width: 7px;height: 7px;border-radius: 50%;display: inline-block;position: absolute;left: -4px;top: 19px;}
.detailsIT_Journal .changLog_time{color: #666666;font-size: 12px;display: inline-block;padding-right: 10px}
.zcSpanQuery{
position: absolute;
right: 50px;
top: -60px;
display: inline-block;
width:75px;
height:32px;
line-height:32px;
background:rgba(0,210,214,1);
border-radius:17px;
text-align: center;
color: #fff;
font-size: 12px;
font-family: "宋体";
display: inline-block;
margin-left:15px;
cursor: pointer;
}
\ No newline at end of file
......@@ -2,6 +2,10 @@
.el-input{
display: inline-block;
}
.el-input.is-disabled .el-input__inner{
background-color: #fff;
border-color: #fff;
}
.queryul {
margin-top: 20px;
}
......@@ -89,6 +93,10 @@
.queryul li span>em{display: inline-block; min-width: 80px; text-align: right; font-style: normal; margin:0 15px 0 0;}
/* dialog */
.el-dialog__wrapper{
display: flex;
align-items: center;
}
.el-dialog__body{
padding:0 20px 15px 20px;
}
......@@ -196,7 +204,7 @@
}
.MyEditForm .btnformItem span{
display: inline-block;
width:120px;
width:100px;
height:40px;
line-height:40px;
border-radius:22px;
......@@ -336,4 +344,35 @@
}
.el-tooltip{
cursor: pointer;
}
/* 修改树节点 */
/*树节点前面的图标修改*/
.el-tree .el-tree-node__expand-icon.expanded
{
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
.el-tree .el-icon-caret-right:before
{
background: url("../img/treejia.png") no-repeat center center;
content: '';
display: block;
width: 20px;
height: 20px;
font-size: 18px;
}
.el-tree .el-tree-node__expand-icon.expanded.el-icon-caret-right:before
{
background: url("../img/treejian.png") no-repeat center center;
content: '';
display: block;
width: 20px;
height: 20px;
font-size: 18px;
}
.el-tree-node__expand-icon.is-leaf::before
{
display: none;
}
\ No newline at end of file
......@@ -81,3 +81,10 @@
.vxe-table table{
overflow: hidden;
}
.vxe-checkbox.is--indeterminate>input:not(:checked)+.vxe-checkbox--icon{
background-color: #28CACC;
border-color: #28CACC;
}
.vxe-toolbar.is--loading:before{
background-color: rgba(0,0,0,0);
}
......@@ -2,35 +2,35 @@
<div class="Home">
<div class="banner" ref="banner">
<ul ref="scrollUl">
<li class="liItem" @click="goUrl('assetsList','1-1')">
<li class="liItem" @click="goUrl('SignMan')">
<img src="../assets/img/b1.png" alt="">
<div>
<p class="f22">1</p>
<p style="margin-top:10px">派发待确认任务</p>
<p class="f22">{{TaskObj.SignCount}}</p>
<p style="margin-top:10px">待我签名</p>
</div>
</li>
<li class="liItem">
<li class="liItem" @click="goUrl('approvalMan')">
<img src="../assets/img/b2.png" alt="">
<div>
<p class="f22">1</p>
<p style="margin-top:10px">当前报修任务</p>
<p class="f22">{{TaskObj.WaitCount}}</p>
<p style="margin-top:10px">待我审核</p>
</div>
</li>
<li class="liItem">
<li class="liItem" @click="goUrl('MaturingAssets')">
<img src="../assets/img/b3.png" alt="">
<div>
<p class="f22">5</p>
<p style="margin-top:10px">离职待交接任务</p>
<p class="f22">{{TaskObj.MaturityCount}}</p>
<p style="margin-top:10px">资产到期</p>
</div>
</li>
<li class="liItem">
<li class="liItem" @click="goUrl('SpotQuery')">
<img src="../assets/img/b2.png" alt="">
<div>
<p class="f22">1</p>
<p style="margin-top:10px">当前报修任务</p>
<p class="f22">{{TaskObj.MaturityCount}}</p>
<p style="margin-top:10px">耗材预警</p>
</div>
</li>
<li class="liItem">
<!-- <li class="liItem">
<img src="../assets/img/b3.png" alt="">
<div>
<p class="f22">5</p>
......@@ -43,68 +43,92 @@
<p class="f22">5</p>
<p style="margin-top:10px">离职待交接任务</p>
</div>
</li>
</li> -->
</ul>
<div class="navDiv">
<div v-if="stepTask" class="navDiv">
<span @click="goScroll(1)" :class="tabActive==1?'active':''"></span>
<span @click="goScroll(2)" :class="tabActive==2?'active':''"></span>
</div>
</div>
<div class="homeContent" style="background:#F8FAFB">
<div class="homeContent basefix" style="background:#F8FAFB">
<div class="left">
<div>
<img style="width:100%;" src="../assets/img/banner.png" alt="">
</div>
<div class="zcState">
<p style="padding-left:25px;" class="c11 f14 bold">资产状态占比</p>
<el-row class="ziItem">
<p style="padding-left:25px;padding-top:20px;" class="c11 f14 bold">资产状态占比</p>
<el-row v-for="(item,index) in StatusList" :key="index" class="ziItem">
<el-col :span="14">
<p>资产领用情况</p>
<p style="margin-top:6px"><span class="sl">数量</span> 4</p>
<p>资产{{item.Name}}</p>
<p style="margin-top:6px"><span class="sl">数量</span> {{item.Count}}</p>
</el-col>
<el-col :span="10" style="text-align:right">
<el-progress class="progressDiv" type="circle" :percentage="25" color="#00D2D6" :stroke-width="12" :width="86"></el-progress>
<el-progress class="progressDiv" type="circle" :percentage="item.percent" color="#00D2D6" :stroke-width="12" :width="86"></el-progress>
</el-col>
</el-row>
<el-row class="ziItem">
<el-col :span="14">
<p>资产领用情况</p>
<p style="margin-top:6px"><span class="sl">数量</span> 4</p>
</div>
</div>
<div class="right">
<div class="firstDiv assetsgk" style="padding:20px 0">
<p class="f12" style="padding-left:30px;">资产概况</p>
<el-row style="margin-top:20px">
<el-col :span="12">
<div style="text-align:center">
<el-progress class="progressDiv" type="circle" :percentage="SituationInfo.Norpercent" color="#00D2D6" :stroke-width="18" :width="150"></el-progress>
</div>
<div class="f12 c11" style="padding-left:10%;margin-top:20px;border-right:1px solid #00D2D6">
<span style="color:#A6C6C6">在用:</span>
<span class="Circle" style="background:#00D2D6"></span>
<span>金额 ¥{{SituationInfo.NorMoney}}</span>
<span class="Circle" style="background:#BEEFF0"></span>
<span>数量 {{SituationInfo.NorCount}}</span>
</div>
</el-col>
<el-col :span="10" style="text-align:right">
<el-progress class="progressDiv" type="circle" :percentage="25" color="#00D2D6" :stroke-width="12" :width="86"></el-progress>
<el-col :span="12">
<div style="text-align:center">
<el-progress class="progressDiv" type="circle" :percentage="SituationInfo.Idlepercent" color="#FFA475" :stroke-width="18" :width="150"></el-progress>
</div>
<div class="f12 c11" style="padding-left:10%;margin-top:20px;">
<span style="color:#A6C6C6">闲置:</span>
<span class="Circle" style="background:#FFA475"></span>
<span>金额 ¥{{SituationInfo.IdleMoney}}</span>
<span class="Circle" style="background:#FFE4D5"></span>
<span>数量 {{SituationInfo.IdleCount}}</span>
</div>
</el-col>
</el-row>
</div>
</div>
<div class="right">
<div class="firstDiv" style="height:370px">
<div class="firstDiv" style="height:370px;margin-top:30px">
<el-row class="chartTitle">
<el-col :span="12" class="f14 c11">资产入库领用情况<span style="color:#969696;margin-left:14px">固定资产</span></el-col>
<el-col :span="12" style="text-align:right">
<span><span class="circle"></span>入库</span>
<span><span class="circle" style="background:#FFA475"></span>领用</span>
<el-select v-model="value" placeholder="请选择">
<el-option key="1" label="固定资产" value="1"> </el-option>
<el-col class="f12 c11" :span="12" style="text-align:right;cursor: pointer">
<span @click="SetTimeType(1,1)" :class="IntimeType==1?'Active':''">最近一年</span>
<span @click="SetTimeType(2,1)" :class="IntimeType==2?'Active':''">最近半年</span>
<span @click="SetTimeType(3,1)" :class="IntimeType==3?'Active':''">最近三月</span>
<el-select @change="getPropertyInStock" v-model="InStockMsg.LogType" placeholder="请选择">
<el-option key="1" label="入库" :value="1"> </el-option>
<el-option key="2" label="领用" :value="2"> </el-option>
</el-select>
</el-col>
</el-row>
<div id="chartsMap" class="bgDiv" style="height:320px;width:100%;"></div>
<div id="chartsMap" class="bgDiv" style="height:320px;width:100%;margin-top:10px"></div>
</div>
<div class="firstDiv" style="height:370px;margin-top:30px">
<div class="firstDiv" style="height:360px;margin-top:30px">
<el-row class="chartTitle">
<el-col :span="12" class="f14 c11">资产入库领用情况<span style="color:#969696;margin-left:14px">固定资产</span></el-col>
<el-col :span="12" style="text-align:right">
<span><span class="circle"></span>入库</span>
<span><span class="circle" style="background:#FFA475"></span>领用</span>
<el-select v-model="value" placeholder="请选择">
<el-option key="1" label="固定资产" value="1"> </el-option>
<el-col :span="12" class="f14 c11">耗材入库领用情况<span style="color:#969696;margin-left:14px">固定资产</span></el-col>
<el-col class="f12 c11" :span="12" style="text-align:right;cursor: pointer">
<span @click="SetTimeType(1,2)" :class="IntimesuppleType==1?'Active':''">最近一年</span>
<span @click="SetTimeType(2,2)" :class="IntimesuppleType==2?'Active':''">最近半年</span>
<span @click="SetTimeType(3,2)" :class="IntimesuppleType==3?'Active':''">最近三月</span>
<el-select @change="getSuppliesInStock" v-model="InStockMsg.LogType" placeholder="请选择">
<el-option key="1" label="入库" :value="1"> </el-option>
<el-option key="2" label="出库" :value="2"> </el-option>
</el-select>
</el-col>
</el-row>
<div id="chartsMap1" class="bgDiv" style="height:320px;width:100%;"></div>
<div id="chartsMap1" class="bgDiv" style="height:310px;width:100%;margin-top:10px"></div>
</div>
</div>
</div>
......@@ -112,33 +136,89 @@
</template>
<script>
import moment from 'moment'
export default {
name: 'Home',
data () {
return {
datedata1:[1,2,50,60,50,40,70],
datedata:[4,7,90,50,55,77,88],
Month:['2019-06','2019-06','2019-06','2019-06','2019-06','2019-06'],
value:1,
zcuserInfo:{},
tabActive:1,
width:0,
datedata1:[1,2,50,60,50,40,70],
datedata:[4,7,90,50,55,77,88],
value:[],
zcuserInfo:{},
tabActive:1,
width:0,
TaskObj:{},
stepTask:true,
StatusList:[],
InStockMsg:{
LogType:1,
StartTime:moment().subtract(3, "month").format("YYYY-MM"),
EndTime:moment().format("YYYY-MM"),
},
InStockSuppleMsg:{
LogType:1,
StartTime:moment().subtract(3, "month").format("YYYY-MM"),
EndTime:moment().format("YYYY-MM"),
},
IntimeType:3,
IntimesuppleType:3,
InStockData:[],
CategoryNameList:[],
colorList:['#00D2D6','#FFA171','#72b8ff','#ff9cc6','#7b78ff','#28cc90','#ee8fff','#5cf2ff','#ff9a00','#4fc4f7','#738eff','#b0edff'],
StockMonth:[],
Stocklegend:{},
InStockData1:[],
SuppliesNameList:[],
StockMonth1:[],
Stocklegend1:{},
SituationInfo:{},
}
},
created(){
},
mounted(){
this.width=this.$refs.banner.clientWidth;
console.log("width",this.width)
this.LineChart();
this.LineChart1();
let num= this.width /340;
if(num>4){
this.stepTask=false;
}
this.getTask();
this.getStatus();
this.getPropertyInStock();
this.getSuppliesInStock();
this.getSituation();
},
methods:{
goUrl(path,key){
this.$bus.emit('once',path,key);
SetTimeType(type,num){
let start="";
if(type==1){
start=moment().subtract(12, "month").format("YYYY-MM")
}
if(type==2){
start=moment().subtract(6, "month").format("YYYY-MM")
}
if(type==3){
start=moment().subtract(3, "month").format("YYYY-MM")
}
if(num==1){
this.IntimeType=type;
this.InStockMsg.StartTime=start;
this.getPropertyInStock();
}
if(num==2){
this.IntimesuppleType=type;
this.InStockSuppleMsg.StartTime=start;
this.getSuppliesInStock();
}
},
goUrl(path){
this.$router.push({
path: "/" + path,
query: {
......@@ -178,12 +258,95 @@ export default {
}
}, 10);
},
getPropertyInStock(){
let that=this;
that.apiJavaPost("/api/property/GetPropertyIndexPropertyInStock",this.InStockMsg,
res => {
if (res.data.resultCode === 1) {
let data=res.data.data;
this.InStockData=[];
this.CategoryNameList=[];
this.StockMonth=[];
let Newobj={};
data.forEach((item,index1) => {
this.CategoryNameList.push(item.CategoryName)
if(index1>4){
let name=item.CategoryName;
Newobj[name]=false;
}
this.Stocklegend=Newobj;
item.List.forEach((list,index) => {
if(index1==0){
this.StockMonth.push(list.Month)
}
});
});
data.forEach((item,index1)=> {
let arr=[];
let obj={
name:item.CategoryName,
data: [],
type: 'line',
smooth: true,
areaStyle:{
normal: {
color: '#D6F8F8' //改变区域颜色
}
},
symbolSize: 10,
itemStyle : {
normal : {
borderWidth:0,
borderColor:"transparent",
lineStyle:{
color:that.colorList[index1], //改变折线颜色
width:5
}
}
},
emphasis:{
itemStyle:{
borderWidth:5,
borderColor:that.colorList[index1],
}
},
};
// if(index1==0){
// obj.areaStyle={
// normal: {
// color: '#D6F8F8' //改变区域颜色
// }
// }
// }
item.List.forEach(list=> {
this.StockMonth.forEach((month,index3)=> {
if(list.Month==month){
arr.push(list.Number)
}
obj.data=arr;
});
});
this.InStockData.push(obj)
});
setTimeout(()=>{
that.LineChart();
},1000)
} else {
this.Error(res.data.message);
}
},
null
);
},
LineChart(){
var that = this;
var myChart = this.$echarts.init(document.getElementById('chartsMap'));
var option={
color: ['#00D2D6','#FFA171'],
color: that.colorList,
tooltip : {
trigger: 'item',
......@@ -196,12 +359,11 @@ export default {
}
},
position: function (point, params, dom, rect, size) {
      return [point[0]-60, point[1]-dom.offsetHeight -10];
      return [point[0]-50, point[1]-dom.offsetHeight -10];
  },
        formatter: function(params) {
// console.log("params",params)
var res = `<div style="background:${params.color};position:relative;padding:6px 10px;border-radius:8px;">
栏目栏目栏目栏目栏目
${params.seriesName}:${params.data}
<div style="position: absolute;bottom: -8px;left: 35%;width:0;
height:0;
border-left:8px solid transparent;
......@@ -212,6 +374,13 @@ export default {
          return res;
}
},
legend: {
x:'right',
type:'scroll',
data:that.CategoryNameList,
// data:["邮件营销","联盟广告"],
selected:this.Stocklegend
},
grid:{
left: 75, // 默认10%,给24就挺合适的。
top: 50, // 默认60
......@@ -222,7 +391,7 @@ export default {
xAxis: {
type: 'category',
boundaryGap: false,
data: this.Month,
data: this.StockMonth,
axisLine: {
lineStyle: {
// 设置x轴颜色
......@@ -256,67 +425,74 @@ export default {
}
}
},
series: [
{
data: that.datedata,
type: 'line',
smooth: true,
areaStyle: {
normal: {
color: '#D6F8F8' //改变区域颜色
},
},
symbolSize: 10,
itemStyle : {
normal : {
borderWidth:0,
borderColor:"transparent",
lineStyle:{
color:'#47D2D4', //改变折线颜色
width:5
}
}
},
emphasis:{
itemStyle:{
borderWidth:5,
borderColor:"#47D2D4",
series:that.InStockData
};
// myChart.setOption(option);
myChart.setOption(option,true);
},
getSuppliesInStock(){
let that=this;
that.apiJavaPost("/api/property/GetPropertyIndexSuppliesInStock",this.InStockSuppleMsg,
res => {
if (res.data.resultCode === 1) {
let data=res.data.data;
this.InStockData1=[];
this.SuppliesNameList=[];
this.StockMonth1=[];
let Newobj={};
data.forEach((item,index1) => {
this.SuppliesNameList.push(item.SuppliesName)
if(index1>4){
let name=item.SuppliesName;
Newobj[name]=false;
}
this.Stocklegend1=Newobj;
item.List.forEach((list,index) => {
if(index1==0){
this.StockMonth1.push(list.Month)
}
},
},
{
data: that.datedata1,
type: 'line',
smooth: true,
symbolSize: 10,
// showSymbol:false,
itemStyle : {
normal : {
borderWidth:7,
borderColor:"transparent",
lineStyle:{
color:'#FFA475', //改变折线颜色
width:5
}
}
},
emphasis:{
});
});
data.forEach((item,index1)=> {
let arr=[];
let obj={
name:item.SuppliesName,
type:'bar',
itemStyle:{
borderWidth:5,
borderColor:"#FFA475",
}
},
},
]
};
myChart.setOption(option);
barBorderRadius: 15,
},
barWidth : 15,
data:[],
};
item.List.forEach(list=> {
this.StockMonth1.forEach((month,index3)=> {
if(list.Month==month){
arr.push(list.Number)
}
obj.data=arr;
});
});
this.InStockData1.push(obj)
});
setTimeout(()=>{
that.LineChart1();
},1000)
} else {
this.Error(res.data.message);
}
},
null
);
},
LineChart1(){
var that = this;
var myChart = this.$echarts.init(document.getElementById('chartsMap1'));
var option={
color: ['#00D2D6','#FFA171'],
color:that.colorList,
tooltip : {
backgroundColor:'transparent',
trigger: 'item',
......@@ -327,12 +503,12 @@ export default {
}
},
position: function (point, params, dom, rect, size) {
      return [point[0]-60, point[1]-dom.offsetHeight];
      return [point[0]-50, point[1]-dom.offsetHeight];
  },
formatter: function(params) {
// console.log("params",params)
var res = `<div style="background:${params.color};position:relative;padding:6px 10px;border-radius:8px;">
栏目栏目栏目栏目栏目
${params.seriesName}:${params.data}
<div style="position: absolute;bottom: -8px;left: 35%;width:0;
height:0;
border-left:8px solid transparent;
......@@ -343,6 +519,13 @@ export default {
          return res;
}
},
legend: {
x:'right',
type:'scroll',
data:that.SuppliesNameList,
selected:this.Stocklegend1
},
grid: {
left: 75, // 默认10%,给24就挺合适的。
top: 50, // 默认60
......@@ -353,7 +536,7 @@ export default {
xAxis : [
{
type : 'category',
data : ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'],
data :this.StockMonth1,
axisLine: {
lineStyle: {
// 设置x轴颜色
......@@ -392,29 +575,58 @@ export default {
}
}
],
series : [
{
name:'直接访问',
type:'bar',
itemStyle:{
barBorderRadius: 15,
},
barWidth : 15,
data:[10, 52, 200, 334, 390, 330, 220],
},
{
name:'ceshi',
type:'bar',
itemStyle:{
barBorderRadius: 15,
},
barWidth : 15,
data:[12, 55, 220, 330, 399, 366, 223]
}
]
series:that.InStockData1
};
myChart.setOption(option);
myChart.setOption(option,true);
},
getTask(){
this.apiJavaPost("/api/property/GetPropertyIndexTask",{},
res => {
if (res.data.resultCode === 1) {
this.TaskObj=res.data.data;
} else {
this.Error(res.data.message);
}
},
null
);
},
getStatus(){
this.apiJavaPost("/api/property/GetPropertyIndexPropertyStatusRatio",{},
res => {
if (res.data.resultCode === 1) {
let total=0;
let data=res.data.data;
data.forEach(item=>{
total+=item.Count;
})
data.forEach(item=>{
item.percent=Number((( item.Count / total) *100).toFixed(2));
})
this.StatusList=data;
} else {
this.Error(res.data.message);
}
},
null
);
},
getSituation(){
this.apiJavaPost("/api/property/GetPropertyIndexGeneralSituation",{},
res => {
if (res.data.resultCode === 1) {
let data=res.data.data;
data.Norpercent=Number(((data.NorCount / data.TotalCount) * 100).toFixed(2));
data.Idlepercent=Number(((data.IdleCount / data.TotalCount) * 100).toFixed(2));
this.SituationInfo=data;
} else {
this.Error(res.data.message);
}
},
null
);
},
},
}
......@@ -422,6 +634,19 @@ export default {
<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
.homeContent .assetsgk .Circle{
display: inline-block;
width:14px;
height:14px;
border-radius:50%;
margin-left:25px;
position: relative;
top:4px;
}
.homeContent .Active{
color:rgb(0, 210, 214);
}
.navDiv .active{
width:35px!important;
......@@ -453,11 +678,11 @@ export default {
.chartTitle .el-select{
width:102px;
height:24px;
line-height:24px;
background:rgba(17,17,17,1);
border-radius:12px;
margin-left:30px;
position: relative;
top: -3px;
}
.chartTitle{
padding: 25px 30px 0 30px;
......@@ -491,14 +716,15 @@ export default {
}
.homeContent .left{
width: 316px;
position: absolute;
/* position: absolute; */
left: 30px;
top: 30px;
}
.homeContent .right{
width: 100%;
padding-left: 346px;
width: calc(100% - 346px);
/* padding-left: 346px; */
box-sizing: border-box;
margin-left:26px;
}
.homeContent .right .firstDiv{
......@@ -507,7 +733,7 @@ export default {
}
.homeContent>div{
display: inline-block;
float: left;
}
.homeContent{
width: 100%;
......@@ -530,6 +756,7 @@ export default {
height: 210px;
display: inline-block;
margin-left: -15px;
cursor: pointer;
}
.banner .liItem img{
width: 100%;
......
......@@ -93,15 +93,15 @@
<el-form class="MyEditForm" :model="addMsg" :rules="rules" ref="addMsg" label-width="0">
<el-form-item prop="Name">
<span class="label">档案名称</span>
<el-input size="small" v-model="addMsg.Name"></el-input>
<el-input size="small" v-model="addMsg.Name" placeholder="请输入"></el-input>
</el-form-item>
<el-form-item>
<span class="label">档案编码</span>
<el-input size="small" v-model="addMsg.SuppliesNum"></el-input>
<el-input size="small" v-model="addMsg.SuppliesNum" placeholder="请输入"></el-input>
</el-form-item>
<el-form-item prop="BrandName">
<span class="label">品牌名称</span>
<el-input size="small" v-model="addMsg.BrandName"></el-input>
<el-input size="small" v-model="addMsg.BrandName" placeholder="请输入"></el-input>
</el-form-item>
<el-form-item class="treeItem" style="float:left;">
<span class="label">分类</span>
......@@ -110,43 +110,35 @@
</el-form-item>
<el-form-item>
<span class="label">供应商名称</span>
<el-input size="small" v-model="addMsg.SupplierName"></el-input>
<!-- <el-select size="mini" v-model="addMsg.SupplierName" placeholder="请选择">
<el-option
v-for="item in supplierList"
:key="item.Id"
:label="item.Name"
:value="item.Id">
</el-option>
</el-select> -->
<el-input size="small" v-model="addMsg.SupplierName" placeholder="请输入"></el-input>
</el-form-item>
<el-form-item>
<span class="label">安全库存</span>
<el-input size="small" v-model="addMsg.SafetyStock"></el-input>
<el-input size="small" v-model="addMsg.SafetyStock" placeholder="请输入"></el-input>
</el-form-item>
<el-form-item>
<span class="label">预警预存</span>
<el-input size="small" v-model="addMsg.ReservedStock"></el-input>
<el-input size="small" v-model="addMsg.ReservedStock" placeholder="请输入"></el-input>
</el-form-item>
<el-form-item>
<span class="label">型号</span>
<el-input size="small" v-model="addMsg.SuppliesModel"></el-input>
<el-input size="small" v-model="addMsg.SuppliesModel" placeholder="请输入"></el-input>
</el-form-item>
<el-form-item>
<span class="label">单位</span>
<el-input size="small" v-model="addMsg.Units"></el-input>
<el-input size="small" v-model="addMsg.Units" placeholder="请输入"></el-input>
</el-form-item>
<el-form-item prop="Money">
<span class="label">成本价</span>
<el-input size="small" v-model="addMsg.Money"></el-input>
<el-input size="small" v-model="addMsg.Money" placeholder="请输入"></el-input>
</el-form-item>
<el-form-item>
<span class="label">条形码号</span>
<el-input size="small" v-model="addMsg.Barcode"></el-input>
<el-input size="small" v-model="addMsg.Barcode" placeholder="请输入"></el-input>
</el-form-item>
<el-form-item>
<span class="label">备注</span>
<el-input size="small" v-model="addMsg.Remark"></el-input>
<el-input size="small" v-model="addMsg.Remark" placeholder="请输入"></el-input>
</el-form-item>
<div class="_addUpload_box">
<ul class="uploadUl">
......
......@@ -7,15 +7,15 @@
<img v-show="!morequery" style="width:12px;height:12px" src="../../assets/img/more.png" alt="">
<img v-show="morequery" class="roatImg" style="width:12px;height:12px" src="../../assets/img/more.png" alt="">
</span>
<span @click="Export('GetRecipientsQueryPageListToExcel','领用')" style="margin-left:20px" class="addSpan">导出</span>
<span @click="getList" style="margin-left:20px" class="chaxunSpan">查询</span>
<!-- <span @click="chongzhi" style="margin-left:20px" class="addSpan">重置</span> -->
<!-- <span @click="addSupplier" style="margin-left:20px" class="addSpan">
<img style="width:10px;height:10px;margin-right:6px" src="../../assets/img/add.png" alt="">
新增</span> -->
</div>
<ul v-show="morequery" class="queryul">
<li>
<el-select size="small" v-model="msg.SuppliesId" placeholder="物料">
<el-select size="small" filterable clearable v-model="msg.SuppliesId" placeholder="物料">
<el-option
v-for="item in wulaioList"
:key="item.Id"
......@@ -25,7 +25,7 @@
</el-select>
</li>
<li>
<el-select size="small" filterable v-model="msg.EmployeeId" placeholder="使用人" :filter-method="getEmployee">
<el-select size="small" filterable clearable v-model="msg.EmployeeId" placeholder="使用人" :filter-method="getEmployee">
<el-option
v-for="item in EmployeeList"
:key="item.EmployeeId"
......@@ -60,15 +60,15 @@
:normalizer="normalizer"/>
</li>
</ul>
<vxe-grid :loading="loading"
<!-- <vxe-grid :loading="loading"
:columns="tableColumn"
:toolbar="tableToolbar"
:data="tableData"
show-footer
:footer-method="footerMethod"
:edit-config="{trigger: 'click', mode: 'row', showStatus: true}"></vxe-grid>
:edit-config="{trigger: 'click', mode: 'row', showStatus: true}"></vxe-grid> -->
<!-- -->
<!-- <vxe-table style="margin-top:15px"
<vxe-table style="margin-top:15px"
:data="tableData">
<vxe-table-column field="BranchName" title="公司名称"></vxe-table-column>
<vxe-table-column field="DepartmentName" title="部门名称"></vxe-table-column>
......@@ -79,7 +79,7 @@
<vxe-table-column field="CategoryName" title="分类名称"></vxe-table-column>
<vxe-table-column field="StockOutNum" title="领取单号"></vxe-table-column>
<vxe-table-column field="StockOutDate" title="领取日期"></vxe-table-column>
</vxe-table> -->
</vxe-table>
<el-pagination
@current-change="currentChange"
background
......@@ -173,7 +173,15 @@ export default {
this.getDepartment();
},
methods:{
footerMethod ({ columns, data }) {
Export(url,name){
let msg = JSON.parse(JSON.stringify(this.msg));
this.JavaGetLocalFile(
`/api/Supplies/${url}`,
msg,
`${name}报表.xls`
);
},
footerMethod ({ columns, data }) {
return [
columns.map((column, columnIndex) => {
if (columnIndex === 0) {
......@@ -228,7 +236,6 @@ export default {
getEmployee(val){
this.apiJavaPost("/api/User/GetEmployeeList",{EmName:val},
res => {
this.loading=false;
if (res.data.resultCode === 1) {
this.EmployeeList=res.data.data;
} else {
......
......@@ -62,7 +62,7 @@
<el-form class="MyEditForm" :model="addMsg" :rules="rules" ref="addMsg" label-width="0">
<el-form-item prop="Name" style="margin-left:60px;">
<span class="label">仓库名称</span>
<el-input v-model="addMsg.Name"></el-input>
<el-input v-model="addMsg.Name" placeholder="请输入"></el-input>
</el-form-item>
<div class="btnformItem">
<span class="submitBtn" type="primary" @click="submitForm('addMsg')">确定</span>
......
......@@ -7,6 +7,7 @@
<img v-show="!morequery" style="width:12px;height:12px" src="../../assets/img/more.png" alt="">
<img v-show="morequery" class="roatImg" style="width:12px;height:12px" src="../../assets/img/more.png" alt="">
</span>
<span @click="Export('GetInventoryPageListToExcel','库存')" style="margin-left:20px" class="addSpan">导出</span>
<span @click="getList" style="margin-left:20px" class="chaxunSpan">查询</span>
<!-- <span @click="chongzhi" style="margin-left:20px" class="addSpan">重置</span> -->
<!-- <span @click="addSupplier" style="margin-left:20px" class="addSpan">
......@@ -15,7 +16,7 @@
</div>
<ul v-show="morequery" class="queryul">
<li>
<el-select size="small" v-model="msg.WarehouseId" placeholder="仓库">
<el-select size="small" filterable clearable v-model="msg.WarehouseId" placeholder="仓库">
<el-option
v-for="item in getWareHouseList"
:key="item.Id"
......@@ -26,7 +27,7 @@
</li>
<li>
<el-select size="small" v-model="msg.SuppliesId" placeholder="物料">
<el-select size="small" filterable clearable v-model="msg.SuppliesId" placeholder="物料">
<el-option
v-for="item in wulaioList"
:key="item.Id"
......@@ -48,18 +49,19 @@
<vxe-table-column field="SafetyStock" title="安全库存"></vxe-table-column>
<vxe-table-column field="ReservedStock" title="预留库存"></vxe-table-column>
<vxe-table-column field="UnitPrice" title="单价"></vxe-table-column>
<vxe-table-column field="Number" title="库存数量"></vxe-table-column>
<!--
<vxe-table-column field="Number" title="库存数量">
<template v-slot="{ row }">
<span v-if="row.Number < row.SafetyStock" style="color:red">{{row.Number}}</span>
<span v-else>{{row.Number}}</span>
</template>
</vxe-table-column>
<vxe-table-column field="address" title="操作">
<template v-slot="{ row }">
<el-tooltip class="item" effect="dark" content="编辑" placement="top">
<img @click="Edit(row)" style="width:24px;height:24px" src="../../assets/img/edit.png" alt="">
<el-tooltip class="item" effect="dark" content="日志" placement="top">
<img @click="Operation(row)" style="width:24px;height:24px" src="../../assets/img/czrz.png" alt="">
</el-tooltip>
<el-tooltip class="item" effect="dark" content="删除" placement="top">
<img @click="Delete(row)" style="width:24px;height:24px" src="../../assets/img/delete.png" alt="">
</el-tooltip>
</template>
</vxe-table-column> -->
</vxe-table-column>
</vxe-table>
<el-pagination
@current-change="currentChange"
......@@ -68,7 +70,58 @@
layout="prev, pager, next"
:total="total">
</el-pagination>
<!-- 操作日志 -->
<el-dialog
title="操作日志"
:visible.sync="caozuoState"
top="3%"
width="650px"
>
<div class="f12">
<span>名称:{{ OperationInfo.SuppliesName }}</span>
<span style="margin:0 20px"
>编码:{{ OperationInfo.SuppliesNum }}</span
>
</div>
<table
class="myTable miniTable"
v-loading="loading"
border="0"
cellspacing="0"
cellpadding="0"
>
<thead>
<th>类型</th>
<th>数量</th>
<th>金额</th>
<th>内容</th>
<th>操作人/时间</th>
</thead>
<tbody>
<tr v-for="(item, index) in OperationList" :key="index">
<td>{{ item.TypeName }}</td>
<td>{{ item.Number }}</td>
<td>{{ item.Money }}</td>
<td>{{ item.Description }}</td>
<td>
<p>{{ item.UpdateBy }}</p>
<p>{{ item.UpdateDate }}</p>
</td>
</tr>
<tr v-show="OperationList.length == 0">
<td colspan="4" align="center">暂无数据</td>
</tr>
</tbody>
</table>
<el-pagination
@current-change="currentChange1"
background
:page-size="msg1.pageSize"
layout="prev, pager, next"
:total="total1"
>
</el-pagination>
</el-dialog>
</div>
</template>
......@@ -79,6 +132,7 @@ export default {
name: 'Supplierman',
data(){
return{
caozuoState: false,
morequery:false,
currentPage:1,
tableData: [],
......@@ -110,6 +164,18 @@ export default {
SupplierName:''
},
wulaioList:[],
OperationLoad:false,
OperationList:[],
total1:0,
msg1:{
pageIndex:1,
pageSize:6,
WarehouseId:0,
SuppliesId:0,
},
OperationInfo:{},
}
},
mounted(){
......@@ -118,6 +184,43 @@ export default {
this.getwuliaoList();
},
methods:{
Operation(item) {
console.log("item",item)
this.OperationInfo = item;
this.caozuoState = true;
this.msg1.WarehouseId = item.WarehouseId;
this.msg1.SuppliesId = item.SuppliesId;
this.getOperation();
},
currentChange1(val) {
this.msg1.pageIndex = val;
this.getOperation();
},
getOperation() {
this.OperationLoad = true;
this.apiJavaPost(
"/api/Supplies/GetInventoryDetailPageList",
this.msg1,
res => {
this.OperationLoad = false;
if (res.data.resultCode === 1) {
this.OperationList = res.data.data.pageData;
this.total1 = res.data.data.count;
} else {
this.Error(res.data.message);
}
},
null
);
},
Export(url,name){
let msg = JSON.parse(JSON.stringify(this.msg));
this.JavaGetLocalFile(
`/api/Supplies/${url}`,
msg,
`${name}报表.xls`
);
},
// 仓库列表
getWareHouse(){
this.apiJavaPost("/api/Supplies/GetWareHouseList",{Name:''},
......
......@@ -8,7 +8,7 @@
<img v-show="morequery" class="roatImg" style="width:12px;height:12px" src="../../assets/img/more.png" alt="">
</span>
<span @click="getList" style="margin-left:20px" class="chaxunSpan">查询</span>
<!-- <span @click="chongzhi" style="margin-left:20px" class="addSpan">重置</span> -->
<span @click="Export" style="margin-left:20px" class="addSpan">导出</span>
<span @click="addSupplier" style="margin-left:20px" class="addSpan">
<img style="width:10px;height:10px;margin-right:6px" src="../../assets/img/add.png" alt="">
新增</span>
......@@ -27,7 +27,7 @@
<el-input class="w200" size="small" v-model="msg.SupplierName" placeholder="供应商"></el-input>
</li>
<li>
<el-select size="small" v-model="msg.WarehouseId" placeholder="仓库">
<el-select size="small" filterable clearable v-model="msg.WarehouseId" placeholder="仓库">
<el-option
v-for="item in getWareHouseList"
:key="item.Id"
......@@ -37,7 +37,7 @@
</el-select>
</li>
<li>
<el-select filterable size="small" v-model="msg.EmployeeId" placeholder="领取人" :filter-method="getEmployee1">
<el-select filterable clearable size="small" v-model="msg.EmployeeId" placeholder="领取人" :filter-method="getEmployee1">
<el-option
v-for="item in EmployeeList1"
:key="item.EmployeeId"
......@@ -71,6 +71,7 @@
<th>品牌名称</th>
<th>库存</th>
<th>数量</th>
<th>领取人</th>
<th>出库时间</th>
<th width="150px">操作</th>
</thead>
......@@ -81,6 +82,7 @@
<!-- <span class="commonStyle hoverSpan1"></span> -->
<span class="ColorSpan redSpan" v-if="item.StockOutState==2"></span>
<span class="ColorSpan greenSpan" v-if="item.StockOutState==1"></span>
<span class="ColorSpan purpleSpan" v-if="item.StockOutState==3"></span>
{{item.StockOutStateStr}}
</td>
<td :rowspan="item.DetailList.length" v-if="index==0">{{item.StockOutNum}}</td>
......@@ -92,12 +94,12 @@
<td>{{delist.BrandName}}</td>
<td>{{delist.InventoryNum}}</td>
<td>{{delist.Number}}</td>
<td :rowspan="item.DetailList.length" v-if="index==0">{{item.EmName}}</td>
<td :rowspan="item.DetailList.length" v-if="index==0">{{item.StockOutDate}}</td>
<td :rowspan="item.DetailList.length" v-if="index==0">
<!-- <el-tooltip class="item" effect="dark" content="编辑" placement="top">
<img @click="Edit(item)" style="width:24px;height:24px" src="../../assets/img/edit.png" alt="">
</el-tooltip> -->
<el-tooltip class="item" effect="dark" content="编辑" placement="top">
<img v-if="item.StockOutState==3" @click="Edit(item)" style="width:24px;height:24px" src="../../assets/img/edit.png" alt="">
</el-tooltip>
<el-tooltip class="item" effect="dark" content="删除" placement="top">
<img @click="Delete(item)" style="width:24px;height:24px" src="../../assets/img/delete.png" alt="">
</el-tooltip>
......@@ -147,7 +149,7 @@
</el-form-item>
<el-form-item label="">
<span class="label">领取人</span>
<el-select filterable size="small" v-model="addMsg.EmployeeId" placeholder="使用人" :filter-method="getEmployee2">
<el-select filterable size="small" v-model="addMsg.EmployeeId" placeholder="请输入名字" :filter-method="getEmployee2">
<el-option
v-for="item in EmployeeList2"
:key="item.EmployeeId"
......@@ -231,6 +233,7 @@
<table style="width:1250px;" class="myTable" border="0" cellspacing="0" cellpadding="0">
<thead>
<th><input class="color-input-red" type="checkbox" v-model="wlisCkedAll" @click='wlcheckAll()'></th>
<th>档案编码</th>
<th>物料名称</th>
<th><span class="cred">库存</span></th>
<th>分类名称</th>
......@@ -239,7 +242,6 @@
<th>供应商名称</th>
<th>条形码号</th>
<th>型号</th>
<th>档案编码</th>
<th>操作人</th>
<th>备注</th>
</thead>
......@@ -248,6 +250,7 @@
<td>
<input class="color-input-red" type="checkbox" v-model="wlcheckList" :value="item" @change="wlcheckOne">
</td>
<td>{{item.SuppliesNum}}</td>
<td>{{item.Name}}</td>
<td class="cred">{{item.InventoryNum}}</td>
<td>{{item.CategoryName}}</td>
......@@ -256,7 +259,6 @@
<td>{{item.SupplierName}}</td>
<td>{{item.Barcode}}</td>
<td>{{item.SuppliesModel}}</td>
<td>{{item.SuppliesNum}}</td>
<td>{{item.UpdateBy}}</td>
<td>{{item.Remark}}</td>
......@@ -308,6 +310,7 @@ export default {
addMsg:{
Id:0,
WarehouseId:'',
EmployeeId:'',
StockOutDate:'',
Remark:'',
DetailList:[],
......@@ -359,6 +362,14 @@ export default {
},
methods:{
Export(){
let msg = JSON.parse(JSON.stringify(this.msg));
this.JavaGetLocalFile(
"/api/Supplies/GetStockOutPageListToExcel",
msg,
"出库单.xls"
);
},
changeNUmber(item,index){
this.$forceUpdate()
},
......@@ -422,6 +433,7 @@ export default {
})
}
},
// 移出物料
ycwuitemList(){
if(this.ItemCheckList.length==0){
return;
......@@ -431,13 +443,9 @@ export default {
cancelButtonText: "取消",
type: 'warning'
}).then(() => {
var set=this.ItemCheckList.map(item=>item.Id)
var set=this.ItemCheckList.map(item=>item.SuppliesId)
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(() => {
});
......@@ -488,6 +496,7 @@ export default {
this.getWuliao();
},
getWuliao(){
this.wlcheckList=[];
this.wuliaomsg.WareHouseId=this.addMsg.WarehouseId;
this.apiJavaPost("/api/Supplies/GetMaterialPageList",this.wuliaomsg,
res => {
......@@ -499,6 +508,7 @@ export default {
item.Number='';
item.Remark='';
item.SuppliesId=item.Id;
item.SuppliesName=item.Name;
})
this.wlcheckAllList=data;
......@@ -527,6 +537,7 @@ export default {
Id:0,
WarehouseId:'',
StockOutDate:'',
EmployeeId:'',
Remark:'',
DetailList:[],
}
......@@ -598,24 +609,20 @@ export default {
null
);
},
// Edit(item){
// if(item.StockInState==1){
// this.Error("入库单已完成,无法修改!")
// return;
// }
// this.dialogState=true;
// this.addMsg={
// Id:item.Id,
// WarehouseId:item.WarehouseId,
// Remark:item.Remark,
// StockOutDate:item.StockOutDate,
// Money:item.Money,
// SupplierName:item.SupplierName,
// SuppliesId:item.SuppliesId,
// DetailList:[],
// }
// this.wlItemList=item.DetailList;
// },
Edit(item){
this.dialogState=true;
this.addMsg={
Id:item.Id,
WarehouseId:item.WarehouseId,
Remark:item.Remark,
EmployeeId:item.EmployeeId,
StockOutDate:item.StockOutDate,
DetailList:[],
}
this.wlItemList=item.DetailList;
this.EmName=item.EmName;
this.getEmployee(2);
},
Delete(item){
let Id=item.Id;
this.$confirm("确认删除?","提示", {
......
......@@ -8,7 +8,7 @@
<img v-show="morequery" class="roatImg" style="width:12px;height:12px" src="../../assets/img/more.png" alt="">
</span>
<span @click="getList" style="margin-left:20px" class="chaxunSpan">查询</span>
<!-- <span @click="chongzhi" style="margin-left:20px" class="addSpan">重置</span> -->
<span @click="Export" style="margin-left:20px" class="addSpan">导出</span>
<span @click="addSupplier" style="margin-left:20px" class="addSpan">
<img style="width:10px;height:10px;margin-right:6px" src="../../assets/img/add.png" alt="">
新增</span>
......@@ -27,7 +27,7 @@
<el-input class="w200" size="small" v-model="msg.SupplierName" placeholder="供应商"></el-input>
</li>
<li>
<el-select size="small" v-model="msg.WarehouseId" placeholder="仓库">
<el-select size="small" filterable clearable v-model="msg.WarehouseId" placeholder="仓库">
<el-option
v-for="item in getWareHouseList"
:key="item.Id"
......@@ -220,6 +220,7 @@
<table style="width:1250px;" class="myTable" border="0" cellspacing="0" cellpadding="0">
<thead>
<th><input class="color-input-red" type="checkbox" v-model="wlisCkedAll" @click='wlcheckAll()'></th>
<th>档案编码</th>
<th>物料名称</th>
<th>分类名称</th>
<th>品牌名</th>
......@@ -228,7 +229,6 @@
<th>条形码号</th>
<th>库存</th>
<th>型号</th>
<th>档案编码</th>
<th>操作人</th>
<th>备注</th>
</thead>
......@@ -237,6 +237,7 @@
<td>
<input class="color-input-red" type="checkbox" v-model="wlcheckList" :value="item" @change="wlcheckOne">
</td>
<td>{{item.SuppliesNum}}</td>
<td>{{item.Name}}</td>
<td>{{item.CategoryName}}</td>
<td>{{item.BrandName}}</td>
......@@ -245,7 +246,6 @@
<td>{{item.Barcode}}</td>
<td>{{item.SuppliesModel}}</td>
<td>{{item.SuppliesModel}}</td>
<td>{{item.SuppliesNum}}</td>
<td>{{item.UpdateBy}}</td>
<td>{{item.Remark}}</td>
......@@ -335,6 +335,11 @@ export default {
ItemisCkedAll:false,
ItemCheckList:[],
tableHeight:0,
pickerOptions: {
  disabledDate(time) {
    return time.getTime() < Date.now() - 24 * 60 * 60 * 1000
}
},
}
},
created(){
......@@ -348,6 +353,14 @@ export default {
},
methods:{
Export(){
let msg = JSON.parse(JSON.stringify(this.msg));
this.JavaGetLocalFile(
"/api/Supplies/GetStockInPageListToExcel",
msg,
"入库单.xls"
);
},
Huifu(item){
this.apiJavaPost("/api/Supplies/RecoverStockInInfo",{StockInId:item.Id},
res => {
......@@ -458,6 +471,7 @@ export default {
this.getWuliao();
},
getWuliao(){
this.wlcheckList=[];
this.apiJavaPost("/api/Supplies/GetMaterialPageList",this.wuliaomsg,
res => {
if (res.data.resultCode === 1) {
......
......@@ -13,7 +13,6 @@
:props="defaultProps"
:data="data"
node-key="id"
default-expand-all
:expand-on-click-node="false">
<span class="TreeSpan" slot-scope="{ node, data }">
<span>{{ node.label}}</span>
......
......@@ -13,7 +13,6 @@
:props="defaultProps"
:data="data"
node-key="id"
default-expand-all
:expand-on-click-node="false">
<span class="TreeSpan" slot-scope="{ node, data }">
<span>{{ node.label}}</span>
......
......@@ -89,6 +89,7 @@
<el-dialog
:title="dialogtitle"
:visible.sync="dialogState"
top="0"
width="530px">
<el-form class="MyEditForm" :model="addMsg" :rules="rules" ref="addMsg" label-width="0px">
<div class="basefix">
......
......@@ -33,7 +33,7 @@
<el-input class="w200" size="small" v-model="msg.PropertyName" placeholder="资产名称"></el-input>
</li>
<li>
<el-select size="small" v-model="msg.AuditStatus" placeholder="状态">
<el-select size="small" filterable clearable v-model="msg.AuditStatus" placeholder="状态">
<el-option
v-for="item in StateEnumList"
:key="item.Id"
......@@ -43,7 +43,7 @@
</el-select>
</li>
<li>
<el-select filterable size="small" v-model="msg.EmployeeId" placeholder="领取人" :filter-method="getEmployee1">
<el-select filterable clearable size="small" v-model="msg.EmployeeId" placeholder="领取人" :filter-method="getEmployee1">
<el-option
v-for="item in EmployeeList1"
:key="item.EmployeeId"
......@@ -53,7 +53,7 @@
</el-select>
</li>
<li>
<el-select filterable size="small" v-model="msg.Source" placeholder="来源">
<el-select filterable clearable size="small" v-model="msg.Source" placeholder="来源">
<el-option
v-for="item in SourceList"
:key="item.Id"
......
......@@ -19,43 +19,60 @@
<span v-if="GetDetail.AuditStatus==3 || GetDetail.AuditStatus==5" class="wtg">{{GetDetail.AuditStatusName}}</span>
</el-col>
</el-row>
<el-row class="zcInfo">
<el-col :span="12">
<span>来源 :</span>
<span>{{GetDetail.SourceName}}</span>
</el-col>
<el-col v-if="GetDetail.Source!=2 && GetDetail.Source!=4 && GetDetail.Source!=5" :span="12">
<span>申请人 :</span>
<span>{{GetDetail.EmName}}</span>
</el-col>
<el-col v-if="GetDetail.Source!=2 && GetDetail.Source!=4 && GetDetail.Source!=5" :span="12">
<span>公司 :</span>
<span>{{GetDetail.BranchName}}</span>
</el-col>
<el-col v-if="GetDetail.Source==5" :span="12">
<span>调入公司 :</span>
<span>{{GetDetail.InBranchName}}</span>
</el-col>
<el-col v-if="GetDetail.Source!=2 && GetDetail.Source!=4 && GetDetail.Source!=5" :span="12">
<span>部门 :</span>
<span>{{GetDetail.DepartmentName}}</span>
</el-col>
<el-col :span="12">
<span>单号 :</span>
<span>{{GetDetail.OrderCode}}</span>
</el-col>
<el-col :span="12">
<span>时间 :</span>
<span v-if="GetDetail.Time!=''">{{GetDetail.Time}}</span>
<span v-if="GetDetail.BackTime!=''">{{GetDetail.BackTime}}</span>
<el-row>
<el-col :span="18">
<el-row class="zcInfo">
<el-col :span="12">
<span>来源 :</span>
<span>{{GetDetail.SourceName}}</span>
</el-col>
<el-col v-if="GetDetail.Source!=2 && GetDetail.Source!=4 && GetDetail.Source!=5 && GetDetail.Source!=6" :span="12">
<span>申请人 :</span>
<span>{{GetDetail.EmName}}</span>
</el-col>
<el-col v-if="GetDetail.Source!=2 && GetDetail.Source!=4 && GetDetail.Source!=5 && GetDetail.Source!=6" :span="12">
<span>公司 :</span>
<span>{{GetDetail.BranchName}}</span>
</el-col>
<el-col v-if="GetDetail.Source==5" :span="12">
<span>调入公司 :</span>
<span>{{GetDetail.InBranchName}}</span>
</el-col>
<el-col v-if="GetDetail.Source!=2 && GetDetail.Source!=4 && GetDetail.Source!=5 && GetDetail.Source!=6" :span="12">
<span>部门 :</span>
<span>{{GetDetail.DepartmentName}}</span>
</el-col>
<el-col :span="12">
<span>单号 :</span>
<span>{{GetDetail.OrderCode}}</span>
</el-col>
<el-col :span="12">
<span>时间 :</span>
<span v-if="GetDetail.Time!=''">{{GetDetail.Time}}</span>
<span v-if="GetDetail.BackTime!=''">
<a v-if="GetDetail.Time!='' && GetDetail.BackTime!=''">~</a>
{{GetDetail.BackTime}}
</span>
</el-col>
<el-col :span="12">
<span>备注 :</span>
<span>{{GetDetail.Remark}}</span>
</el-col>
</el-row>
</el-col>
<el-col :span="12">
<span>备注 :</span>
<span>{{GetDetail.Remark}}</span>
<!--图片 -->
<el-col v-if="GetDetail.ImageList && GetDetail.ImageList.length>0" :span="6" style="padding-top:20px">
<el-carousel height="150px" trigger="click" :interval="20000">
<el-carousel-item style="text-align:center;line-height:150px" v-for="item in GetDetail.ImageList" :key="item">
<img @click="showImg(GetDetail)" style="max-width:100%;max-height:100%" :src="item" alt="">
</el-carousel-item>
</el-carousel>
</el-col>
</el-row>
<p class="f12 c11" style="margin-top:25px">资产清单</p>
<table style="margin-top:10px" class="myTable noHoverTable" border="0" cellspacing="0" cellpadding="0">
<thead>
......@@ -880,25 +897,6 @@ export default {
width: 80px;
font-size: 14px;
}
.approvalDetails .backTo{
width:80px;
height:34px;
line-height:34px;
background:rgba(0,210,214,1);
border-radius:17px;
text-align: center;
color: #fff;
font-size: 12px;
font-family: "宋体";
display: inline-block;
margin-left:15px;
cursor: pointer;
}
.detailsIT_Journal .InfoChangeLog{height: auto;max-height: 220px;background-color: #FFFFFF;}
.detailsIT_Journal .changLogList{padding-left: 20px;max-height: 180px;overflow: auto;}
.detailsIT_Journal .changLogList_l{border-left: 1px solid #E9E9E9;position: relative;padding-bottom: 10px;padding-left: 20px;padding-top: 10px;}
.detailsIT_Journal ._radius_green{background-color: #47BF8C;width: 7px;height: 7px;border-radius: 50%;display: inline-block;position: absolute;left: -4px;top: 19px;}
.detailsIT_Journal .changLog_time{color: #666666;font-size: 12px;display: inline-block;padding-right: 10px}
.approvalDetails ._textareaNew{
width: 80%;
height: 50px;
......
......@@ -34,7 +34,7 @@
<el-input class="w200" size="small" v-model="msg.PropertyName" placeholder="资产名称"></el-input>
</li>
<li>
<el-select size="small" v-model="msg.AuditStatus" placeholder="状态">
<el-select size="small" filterable clearable v-model="msg.AuditStatus" placeholder="状态">
<el-option
v-for="item in StateEnumList"
:key="item.Id"
......@@ -44,7 +44,7 @@
</el-select>
</li>
<li>
<el-select filterable size="small" v-model="msg.EmployeeId" placeholder="领取人" :filter-method="getEmployee1">
<el-select filterable clearable size="small" v-model="msg.EmployeeId" placeholder="领取人" :filter-method="getEmployee1">
<el-option
v-for="item in EmployeeList1"
:key="item.EmployeeId"
......@@ -54,7 +54,7 @@
</el-select>
</li>
<li>
<el-select filterable size="small" v-model="msg.Source" placeholder="来源">
<el-select filterable clearable size="small" v-model="msg.Source" placeholder="来源">
<el-option
v-for="item in SourceList"
:key="item.Id"
......@@ -144,7 +144,7 @@
<td colspan="12" align="center">暂无数据</td>
</tr>
</tbody>
</table>
</table>
<el-pagination
@current-change="currentChange"
......
......@@ -11,8 +11,9 @@
<img v-show="!morequery" style="width:12px;height:12px" src="../../assets/img/more.png" alt="">
<img v-show="morequery" class="roatImg" style="width:12px;height:12px" src="../../assets/img/more.png" alt="">
</span>
<span v-show="showTable==1" @click="Export" style="margin-left:20px" class="addSpan">导出</span>
<span v-show="showTable==2" @click="Export1" style="margin-left:20px" class="addSpan">导出</span>
<span @click="getList" style="margin-left:20px" class="chaxunSpan">查询</span>
<!-- <span @click="chongzhi" style="margin-left:20px" class="addSpan">重置</span> -->
<span @click="addSupplier" style="margin-left:20px" class="addSpan">
<img style="width:10px;height:10px;margin-right:6px" src="../../assets/img/add.png" alt="">
新增</span>
......@@ -72,15 +73,15 @@
<thead>
<th>状态</th>
<th>单号</th>
<th>领用公司</th>
<th>领用部门</th>
<th>领用人</th>
<th>借用公司</th>
<th>借用部门</th>
<th>借用人</th>
<th>时间</th>
<th>资产编号</th>
<th>资产名称</th>
<th>分类名称</th>
<th>时间</th>
<th>品牌名称</th>
<th>操作人</th>
<th>操作人/时间</th>
<th width="150px">操作</th>
</thead>
<tbody>
......@@ -98,15 +99,19 @@
<td :rowspan="item.DetailList.length" v-if="index==0">{{item.BranchName}}</td>
<td :rowspan="item.DetailList.length" v-if="index==0">{{item.DepartmentName}}</td>
<td :rowspan="item.DetailList.length" v-if="index==0">{{item.EmName}}</td>
<td><span @click="getCheckDes(delist)" class="underline">{{delist.PropertyNum}}</span></td>
<td>{{delist.PropertyName}}</td>
<td>{{delist.CategoryName}}</td>
<td :rowspan="item.DetailList.length" v-if="index==0">
<p>用时间:{{item.Time}}</p>
<p>用时间:{{item.Time}}</p>
<p v-if="item.BackTime!=''">预计归还:{{item.BackTime}}</p>
</td>
<td><span @click="getCheckDes(delist)" class="underline">{{delist.PropertyNum}}</span></td>
<td>{{delist.PropertyName}}</td>
<td>{{delist.CategoryName}}</td>
<td>{{delist.BrandName}}</td>
<td :rowspan="item.DetailList.length" v-if="index==0">{{item.UpdateBy}}</td>
<td :rowspan="item.DetailList.length" v-if="index==0">
<p>{{item.UpdateBy}}</p>
<p>{{item.UpdateDate}}</p>
</td>
<td :rowspan="item.DetailList.length" v-if="index==0">
<el-tooltip class="item" effect="dark" content="编辑" placement="top">
<img v-if="item.AuditStatus==3 && item.CreateBy==EmployeeId" @click="Edit(item)" style="width:24px;height:24px" src="../../assets/img/edit.png" alt="">
......@@ -158,7 +163,7 @@
<el-input class="w200" size="small" v-model="tuimsg.PropertyName" placeholder="资产名称"></el-input>
</li>
<li>
<el-select size="small" v-model="tuimsg.AuditStatus" placeholder="状态">
<el-select size="small" clearable v-model="tuimsg.AuditStatus" placeholder="状态">
<el-option
v-for="item in getWareHouseList"
:key="item.Id"
......@@ -168,7 +173,7 @@
</el-select>
</li>
<li>
<el-select filterable size="small" v-model="tuimsg.EmployeeId" placeholder="领取人" :filter-method="getEmployee3">
<el-select filterable size="small" clearable v-model="tuimsg.EmployeeId" placeholder="领取人" :filter-method="getEmployee3">
<el-option
v-for="item in EmployeeList1"
:key="item.EmployeeId"
......@@ -195,12 +200,13 @@
<thead>
<th>状态</th>
<th>单号</th>
<th>归还时间</th>
<th>资产编号</th>
<th>资产名称</th>
<th>分类名称</th>
<th>品牌名称</th>
<th>使用人</th>
<th>退库时间</th>
<th>归还前使用人</th>
<th>操作人/时间</th>
<th width="150px">操作</th>
</thead>
<tbody>
......@@ -215,12 +221,17 @@
{{item.AuditStatusName}}
</td>
<td :rowspan="item.DetailList.length" v-if="index==0">{{item.OrderCode}}</td>
<td :rowspan="item.DetailList.length" v-if="index==0">{{item.Time}}</td>
<td><span @click="getCheckDes(delist)" class="underline">{{delist.PropertyNum}}</span></td>
<td>{{delist.PropertyName}}</td>
<td>{{delist.CategoryName}}</td>
<td>{{delist.BrandName}}</td>
<td>{{delist.CancelStockEmployeeName}}</td>
<td :rowspan="item.DetailList.length" v-if="index==0">{{item.Time}}</td>
<td :rowspan="item.DetailList.length" v-if="index==0">
<p>{{item.UpdateBy}}</p>
<p>{{item.UpdateDate}}</p>
</td>
<td :rowspan="item.DetailList.length" v-if="index==0">
<el-tooltip class="item" effect="dark" content="编辑" placement="top">
<img v-if="item.AuditStatus==3 && item.CreateBy==EmployeeId" @click="Edit1(item)" style="width:24px;height:24px" src="../../assets/img/edit.png" alt="">
......@@ -264,7 +275,7 @@
<el-form-item label="" prop="EmployeeId">
<span class="label">借用人</span>
<el-select filterable size="small" v-model="addMsg.EmployeeId" placeholder="领取人" :filter-method="getEmployee2">
<el-select filterable size="small" v-model="addMsg.EmployeeId" placeholder="请输入姓名" :filter-method="getEmployee2">
<el-option
v-for="item in EmployeeList2"
:key="item.EmployeeId"
......@@ -276,7 +287,8 @@
<el-form-item label="" prop="Time">
<span class="label">借用时间</span>
<el-date-picker
size="mini"
size="mini"
:picker-options="pickerOptions"
v-model="addMsg.Time"
type="date"
value-format="yyyy-MM-dd"
......@@ -349,7 +361,7 @@
</div>
<div class="btnformItem">
<span class="submitBtn" type="primary" @click="submitForm('addMsg')">确定</span>
<span v-loading="queryLoad" class="submitBtn" type="primary" @click="submitForm('addMsg')">确定</span>
<span class="exitBtn" @click="dialogState=false">取消</span>
</div>
</el-form>
......@@ -365,7 +377,8 @@
<el-form-item label="" prop="BackTime">
<span class="label">归还时间</span>
<el-date-picker
size="mini"
size="mini"
:picker-options="pickerOptions"
v-model="addMsg1.BackTime"
type="date"
value-format="yyyy-MM-dd"
......@@ -427,7 +440,7 @@
</div>
<div class="btnformItem">
<span class="submitBtn" type="primary" @click="submitForm1('addMsg1')">确定</span>
<span v-loading="queryLoad1" class="submitBtn" type="primary" @click="submitForm1('addMsg1')">确定</span>
<span class="exitBtn" @click="dialogState1=false">取消</span>
</div>
</el-form>
......@@ -438,7 +451,8 @@
:visible.sync="wuliaodig"
top="3%"
width="750px">
<el-form class="MyEditForm" :model="addMsg" label-width="0px">
<el-form style="position:relative" class="MyEditForm" :model="addMsg" label-width="0px">
<span class="zcSpanQuery" @click="getWuliao">查询</span>
<div class="myScroll" style="overflow:scroll;max-height:500px;margin-top:20px">
<ul class="dialogul">
<li>
......@@ -537,6 +551,13 @@ export default {
},
data(){
return{
queryLoad:false,
queryLoad1:false,
pickerOptions: {
  disabledDate(time) {
    return time.getTime() < Date.now() - 24 * 60 * 60 * 1000
}
},
CheckDetailState:false,
EmployeeId:'',
StateEnumList:[],
......@@ -582,17 +603,10 @@ export default {
{ type: 'string', required: true, message: '请选择日期', trigger: 'change' }
],
EmployeeId: [
{ required: true, message: '请选择领取人', trigger: 'change' }
],
},
rules1:{
Time: [
{ type: 'string', required: true, message: '请选择日期', trigger: 'change' }
],
EmployeeId: [
{ required: true, message: '请选择领取人', trigger: 'change' }
{ required: true, message: '请选择借用人', trigger: 'change' }
],
},
rules2:{
BackTime: [
{ type: 'string', required: true, message: '请选择日期', trigger: 'change' }
......@@ -691,6 +705,22 @@ export default {
},
methods:{
Export(){
let msg = JSON.parse(JSON.stringify(this.msg));
this.JavaGetLocalFile(
"/api/property/GetPropertyBorrowPageListToExcel",
msg,
"资产借出.xls"
);
},
Export1(){
let msg = JSON.parse(JSON.stringify(this.tuimsg));
this.JavaGetLocalFile(
"/api/property/GetPropertyGiveBackPageListToExcel",
msg,
"资产归还.xls"
);
},
getBranch(){
this.apiJavaPost("/api/User/GetBranchList",{},
res => {
......@@ -922,6 +952,7 @@ export default {
this.getWuliao();
},
getWuliao(){
this.wlcheckList=[];
if(this.showTable==1){
this.zichanmsg.PropertyStatus=1;
}
......@@ -988,8 +1019,10 @@ export default {
};
this.addMsg1.DetailList.push(obj);
}
this.queryLoad1=true;
this.apiJavaPost("/api/property/SetPropertyGiveBack",this.addMsg1,
res => {
this.queryLoad1=false;
if (res.data.resultCode === 1) {
this.getList();
this.Success(res.data.message)
......@@ -1021,8 +1054,10 @@ export default {
};
this.addMsg.DetailList.push(obj);
}
this.queryLoad=true;
this.apiJavaPost("/api/property/SetPropertyBorrow",this.addMsg,
res => {
this.queryLoad=false;
if (res.data.resultCode === 1) {
this.getList();
this.Success(res.data.message)
......@@ -1252,9 +1287,6 @@ export default {
width:100%;
height:100%;
}
.chukudan .MyEditForm .el-form-item:nth-child(3n){
margin-right:0;
}
.chukudan::-webkit-scrollbar{
width: 4px;
height: 5px;
......
......@@ -11,8 +11,9 @@
<img v-show="!morequery" style="width:12px;height:12px" src="../../assets/img/more.png" alt="">
<img v-show="morequery" class="roatImg" style="width:12px;height:12px" src="../../assets/img/more.png" alt="">
</span>
<span v-show="showTable==1" @click="Export" style="margin-left:20px" class="addSpan">导出</span>
<span v-show="showTable==2" @click="Export1" style="margin-left:20px" class="addSpan">导出</span>
<span @click="getList" style="margin-left:20px" class="chaxunSpan">查询</span>
<!-- <span @click="chongzhi" style="margin-left:20px" class="addSpan">重置</span> -->
<span @click="addSupplier" style="margin-left:20px" class="addSpan">
<img style="width:10px;height:10px;margin-right:6px" src="../../assets/img/add.png" alt="">
新增</span>
......@@ -35,7 +36,7 @@
<el-input class="w200" size="small" v-model="msg.PropertyName" placeholder="资产名称"></el-input>
</li>
<li>
<el-select size="small" v-model="msg.AuditStatus" placeholder="状态">
<el-select size="small" clearable v-model="msg.AuditStatus" placeholder="状态">
<el-option
v-for="item in StateEnumList"
:key="item.Id"
......@@ -45,7 +46,7 @@
</el-select>
</li>
<li>
<el-select filterable size="small" v-model="msg.EmployeeId" placeholder="领取人" :filter-method="getEmployee1">
<el-select filterable size="small" clearable v-model="msg.EmployeeId" placeholder="领取人" :filter-method="getEmployee1">
<el-option
v-for="item in EmployeeList1"
:key="item.EmployeeId"
......@@ -70,17 +71,17 @@
<div class="overflowY">
<table style="margin-top:10px" class="myTable noHoverTable" v-loading="loading" border="0" cellspacing="0" cellpadding="0">
<thead>
<th>状态</th>
<th width="75">状态</th>
<th>单号</th>
<th>领用公司</th>
<th width="65">领用公司</th>
<th>领用部门</th>
<th>领用人</th>
<th width="65">领用时间</th>
<th>资产编号</th>
<th>资产名称</th>
<th>分类名称</th>
<th>领用时间</th>
<th>品牌名称</th>
<th>操作人</th>
<th>操作人/时间</th>
<th width="150px">操作</th>
</thead>
<tbody>
......@@ -97,13 +98,16 @@
<td :rowspan="item.DetailList.length" v-if="index==0">{{item.OrderCode}}</td>
<td :rowspan="item.DetailList.length" v-if="index==0">{{item.BranchName}}</td>
<td :rowspan="item.DetailList.length" v-if="index==0">{{item.DepartmentName}}</td>
<td :rowspan="item.DetailList.length" v-if="index==0">{{item.EmName}}</td>
<td :rowspan="item.DetailList.length" v-if="index==0">{{item.EmName}}</td>
<td :rowspan="item.DetailList.length" v-if="index==0">{{item.Time}}</td>
<td><span @click="getCheckDes(delist)" class="underline">{{delist.PropertyNum}}</span></td>
<td>{{delist.PropertyName}}</td>
<td>{{delist.CategoryName}}</td>
<td :rowspan="item.DetailList.length" v-if="index==0">{{item.Time}}</td>
<td>{{delist.BrandName}}</td>
<td :rowspan="item.DetailList.length" v-if="index==0">{{item.UpdateBy}}</td>
<td :rowspan="item.DetailList.length" v-if="index==0">
<p>{{item.UpdateBy}}</p>
<p>{{item.UpdateDate}}</p>
</td>
<td :rowspan="item.DetailList.length" v-if="index==0">
<el-tooltip class="item" effect="dark" content="编辑" placement="top">
<img v-if="item.AuditStatus==3 && item.CreateBy==EmployeeId" @click="Edit(item)" style="width:24px;height:24px" src="../../assets/img/edit.png" alt="">
......@@ -155,9 +159,9 @@
<el-input class="w200" size="small" v-model="tuimsg.PropertyName" placeholder="资产名称"></el-input>
</li>
<li>
<el-select size="small" v-model="tuimsg.AuditStatus" placeholder="状态">
<el-select filterable clearable size="small" v-model="tuimsg.AuditStatus" placeholder="状态">
<el-option
v-for="item in getWareHouseList"
v-for="item in StateEnumList"
:key="item.Id"
:label="item.Name"
:value="item.Id">
......@@ -165,7 +169,7 @@
</el-select>
</li>
<li>
<el-select filterable size="small" v-model="tuimsg.EmployeeId" placeholder="领取人" :filter-method="getEmployee3">
<el-select filterable clearable size="small" v-model="tuimsg.EmployeeId" placeholder="领取人" :filter-method="getEmployee3">
<el-option
v-for="item in EmployeeList1"
:key="item.EmployeeId"
......@@ -192,12 +196,14 @@
<thead>
<th>状态</th>
<th>单号</th>
<th>退库时间</th>
<th>备注</th>
<th>资产编号</th>
<th>资产名称</th>
<th>分类名称</th>
<th>品牌名称</th>
<th>使用人</th>
<th>退库时间</th>
<th>退库前使用人</th>
<th>操作信息</th>
<th width="150px">操作</th>
</thead>
<tbody>
......@@ -212,12 +218,17 @@
{{item.AuditStatusName}}
</td>
<td :rowspan="item.DetailList.length" v-if="index==0">{{item.OrderCode}}</td>
<td :rowspan="item.DetailList.length" v-if="index==0">{{item.Time}}</td>
<td :rowspan="item.DetailList.length" v-if="index==0">{{item.Remark}}</td>
<td><span @click="getCheckDes(delist)" class="underline">{{delist.PropertyNum}}</span></td>
<td>{{delist.PropertyName}}</td>
<td>{{delist.CategoryName}}</td>
<td>{{delist.BrandName}}</td>
<td>{{delist.CancelStockEmployeeName}}</td>
<td :rowspan="item.DetailList.length" v-if="index==0">{{item.Time}}</td>
<td :rowspan="item.DetailList.length" v-if="index==0">
<p v-if="item.UpdateBy!=''">操作人:{{item.UpdateBy}}</p>
<p v-if="item.UpdateDate!=''">操作时间{{item.UpdateDate}}</p>
</td>
<td :rowspan="item.DetailList.length" v-if="index==0">
<el-tooltip class="item" effect="dark" content="编辑" placement="top">
<img v-if="item.AuditStatus==3 && item.CreateBy==EmployeeId" @click="Edit1(item)" style="width:24px;height:24px" src="../../assets/img/edit.png" alt="">
......@@ -254,14 +265,14 @@
<el-dialog
title="派发单"
:visible.sync="dialogState"
top="2%"
top="0"
width="815px">
<el-form class="MyEditForm" :model="addMsg" :rules="rules" ref="addMsg" label-width="0px">
<div class="basefix">
<el-form-item label="" prop="EmployeeId">
<span class="label">领取人</span>
<el-select filterable size="small" v-model="addMsg.EmployeeId" placeholder="领取人" :filter-method="getEmployee2">
<el-select filterable size="small" v-model="addMsg.EmployeeId" placeholder="请输入名字" :filter-method="getEmployee2">
<el-option
v-for="item in EmployeeList2"
:key="item.EmployeeId"
......@@ -273,7 +284,8 @@
<el-form-item label="" prop="Time">
<span class="label">领用时间</span>
<el-date-picker
size="mini"
size="mini"
:picker-options="pickerOptions"
v-model="addMsg.Time"
type="date"
value-format="yyyy-MM-dd"
......@@ -335,7 +347,7 @@
</div>
<div class="btnformItem">
<span class="submitBtn" type="primary" @click="submitForm('addMsg')">确定</span>
<span v-loading="queryLoad" class="submitBtn" type="primary" @click="submitForm('addMsg')">确定</span>
<span class="exitBtn" @click="dialogState=false">取消</span>
</div>
</el-form>
......@@ -344,26 +356,15 @@
<el-dialog
title="退库单"
:visible.sync="dialogState1"
top="2%"
top="0"
width="815px">
<el-form class="MyEditForm" :model="addMsg1" :rules="rules2" ref="addMsg1" label-width="0px">
<div class="basefix">
<!-- <el-form-item label="" prop="EmployeeId">
<span class="label">领取人</span>
<el-select filterable size="small" v-model="addMsg1.EmployeeId" placeholder="领取人" :filter-method="getEmployee2">
<el-option
v-for="item in EmployeeList2"
:key="item.EmployeeId"
:label="item.EmName"
:value="item.EmployeeId">
</el-option>
</el-select>
</el-form-item> -->
<el-form-item label="" prop="BackTime">
<span class="label">退库时间</span>
<el-date-picker
size="mini"
size="mini"
:picker-options="pickerOptions"
v-model="addMsg1.BackTime"
type="date"
value-format="yyyy-MM-dd"
......@@ -425,7 +426,7 @@
</div>
<div class="btnformItem">
<span class="submitBtn" type="primary" @click="submitForm1('addMsg1')">确定</span>
<span v-loading="queryLoad1" class="submitBtn" type="primary" @click="submitForm1('addMsg1')">确定</span>
<span class="exitBtn" @click="dialogState1=false">取消</span>
</div>
</el-form>
......@@ -436,7 +437,8 @@
:visible.sync="wuliaodig"
top="3%"
width="750px">
<el-form class="MyEditForm" :model="addMsg" label-width="0px">
<el-form style="position:relative" class="MyEditForm" :model="addMsg" label-width="0px">
<span class="zcSpanQuery" @click="getWuliao">查询</span>
<div class="myScroll" style="overflow:scroll;max-height:500px;margin-top:20px">
<ul class="dialogul">
<li>
......@@ -535,6 +537,13 @@ export default {
},
data(){
return{
queryLoad1:false,
queryLoad:false,
pickerOptions: {
  disabledDate(time) {
    return time.getTime() < Date.now() - 24 * 60 * 60 * 1000
}
},
CheckDetailState:false,
EmployeeId:'',
StateEnumList:[],
......@@ -689,6 +698,22 @@ export default {
},
methods:{
Export(){
let msg = JSON.parse(JSON.stringify(this.msg));
this.JavaGetLocalFile(
"/api/property/GetPropertyReceivePageListToExcel",
msg,
"派发.xls"
);
},
Export1(){
let msg = JSON.parse(JSON.stringify(this.tuimsg));
this.JavaGetLocalFile(
"/api/property/GetPropertyCancellingStocksPageListToExcel",
msg,
"退库.xls"
);
},
getBranch(){
this.apiJavaPost("/api/User/GetBranchList",{},
res => {
......@@ -923,6 +948,7 @@ export default {
this.getWuliao();
},
getWuliao(){
this.wlcheckList=[];
if(this.showTable==1){
this.zichanmsg.PropertyStatus=1;
}
......@@ -988,8 +1014,10 @@ export default {
};
this.addMsg1.DetailList.push(obj);
}
this.queryLoad1=true;
this.apiJavaPost("/api/property/SetPropertyCancellingStocks",this.addMsg1,
res => {
this.queryLoad1=false;
if (res.data.resultCode === 1) {
this.getList();
this.Success(res.data.message)
......@@ -1021,8 +1049,10 @@ export default {
};
this.addMsg.DetailList.push(obj);
}
this.queryLoad=true;
this.apiJavaPost("/api/property/SetPropertyReceive",this.addMsg,
res => {
this.queryLoad=false;
if (res.data.resultCode === 1) {
this.getList();
this.Success(res.data.message)
......@@ -1252,9 +1282,6 @@ export default {
width:100%;
height:100%;
}
.chukudan .MyEditForm .el-form-item:nth-child(3n){
margin-right:0;
}
.chukudan::-webkit-scrollbar{
width: 4px;
height: 5px;
......
......@@ -68,7 +68,7 @@
<el-select
size="small"
v-model="msg.PropertyStatus"
placeholder="资产状态"
placeholder="资产状态" clearable filterable
>
<el-option
v-for="item in PropertyStatusList"
......@@ -81,8 +81,8 @@
</li>
<li>
<el-select
size="small"
filterable
size="small"
filterable clearable
v-model="msg.EmployeeId"
placeholder="使用人"
:filter-method="getEmployee1"
......@@ -97,8 +97,8 @@
</el-select>
</li>
<li>
<el-select size="small" v-model="msg.SupplierId" placeholder="供应商">
<el-option
<el-select clearable size="small" v-model="msg.SupplierId" placeholder="供应商">
<el-option
v-for="item in supplierList"
:key="item.Id"
:label="item.Name"
......@@ -154,8 +154,9 @@
></span
>
<span class="ColorSpan buleSpan" v-if="item.PropertyStatus == 4"
></span
>
></span>
<span class="ColorSpan redSpan" v-if="item.PropertyStatus == 10"
></span>
<span
class="ColorSpan purpleSpan"
v-if="
......@@ -218,14 +219,14 @@
<img
@click="Operation(item)"
style="width:24px;height:24px"
src="../../assets/img/qx.png"
src="../../assets/img/czrz.png"
alt=""
/>
</el-tooltip>
<span class="commonStyle hoverSpan2"></span>
</td>
</tr>
<tr v-show="tableData.length == 0">
<tr v-if="tableData.length == 0">
<td colspan="12" align="center">暂无数据</td>
</tr>
</tbody>
......@@ -242,7 +243,7 @@
<el-dialog
:title="dialogtitle"
:visible.sync="dialogState"
top="2%"
top="0"
width="975px"
>
<el-form
......@@ -260,11 +261,11 @@
<div class="basefix">
<el-form-item label="">
<span class="label">使用人</span>
<el-select
size="mini"
<el-select :disabled="baseformItem"
size="mini"
filterable
v-model="addMsg.EmployeeId"
placeholder="请选择"
placeholder="请输入姓名"
:filter-method="getEmployee2"
>
<el-option
......@@ -277,11 +278,12 @@
</el-select>
</el-form-item>
<el-form-item label="">
<p class="label">领取时间</p>
<el-date-picker
<p class="label" style="padding-top:4px">领取时间</p>
<el-date-picker :disabled="baseformItem"
size="mini"
v-model="addMsg.GetTime"
type="date"
:picker-options="pickerOptions"
value-format="yyyy-MM-dd"
placeholder="选择日期"
>
......@@ -382,7 +384,7 @@
</el-form-item>
<el-form-item label="">
<span class="label">使用份期限</span>
<span class="label">使用份期限</span>
<el-input
size="mini"
v-model="addMsg.UseMonths"
......@@ -479,7 +481,7 @@
</div>
</div>
<div class="btnformItem">
<span class="submitBtn" type="primary" @click="submitForm('addMsg')"
<span v-loading="queryLoad" class="submitBtn" type="primary" @click="submitForm('addMsg')"
>确定</span
>
<span class="exitBtn" @click="dialogState = false">取消</span>
......@@ -563,6 +565,7 @@ export default {
},
data() {
return {
queryLoad:false,
CheckDetailState: false,
total1: 0,
caozuoState: false,
......@@ -615,7 +618,11 @@ export default {
StartTime: "",
EndTime: ""
},
pickerOptions: {
  disabledDate(time) {
    return time.getTime() < Date.now() - 24 * 60 * 60 * 1000
}
},
dialogtitle: "新增资产",
dialogState: false,
rules: {
......@@ -672,6 +679,7 @@ export default {
EmployeeList2: [],
EmName: "",
PropertyId:'',
baseformItem:false,
};
},
mounted() {
......@@ -812,6 +820,7 @@ export default {
};
this.dialogtitle = "新增资产";
this.dialogState = true;
this.baseformItem=false;
},
Edit(item) {
this.dialogtitle = "编辑资产";
......@@ -821,6 +830,7 @@ export default {
this.addMsg.UseStatus = this.addMsg.UseStatus + "";
this.EmName = item.EmName;
this.getEmployee(2);
this.baseformItem=true;
if (!this.addMsg.ImageList) {
this.addMsg.ImageList = [];
}
......@@ -856,10 +866,12 @@ export default {
if (valid) {
delete this.addMsg.UpdateBy;
delete this.addMsg.UpdateDate;
this.queryLoad=true;
this.apiJavaPost(
"/api/property/SetPropertyInfo",
this.addMsg,
res => {
this.queryLoad=false;
if (res.data.resultCode === 1) {
this.getList();
this.Success(res.data.message);
......@@ -911,7 +923,6 @@ export default {
res => {
if (res.data.resultCode === 1) {
this.PropertyStatusList = res.data.data;
console.log("this.PropertyStatusList",this.PropertyStatusList)
} else {
this.Error(res.data.message);
}
......
......@@ -19,13 +19,19 @@
</div>
<div class="desItem">
<p>领取时间</p>
<p>{{datainfo.GetTime}}</p>
<p>
<span v-if="datainfo.GetTime && datainfo.GetTime!=''">{{datainfo.GetTime}}</span>
<span v-else></span>
</p>
</div>
<div class="baseTitle f12">基本信息</div>
<div class="baseDiv">
<div class="desItem">
<p>资产名称</p>
<p>{{datainfo.Name}}</p>
<p>
<span v-if="datainfo.Name && datainfo.Name!=''">{{datainfo.Name}}</span>
<span v-else></span>
</p>
</div>
<div class="desItem">
<p>资产分类</p>
......@@ -36,7 +42,10 @@
</div>
<div class="desItem">
<p>品牌</p>
<p>{{datainfo.BrandName}}</p>
<p>
<span v-if="datainfo.BrandName && datainfo.BrandName!=''">{{datainfo.BrandName}}</span>
<span v-else></span>
</p>
</div>
<div class="desItem">
<p>型号</p>
......@@ -61,11 +70,17 @@
</div>
<div class="desItem">
<p>购置日期</p>
<p>{{datainfo.BuyDate}}</p>
<p>
<span v-if="datainfo.BuyDate && datainfo.BuyDate!=''">{{datainfo.BuyDate}}</span>
<span v-else></span>
</p>
</div>
<div class="desItem">
<p>购置方式</p>
<p>{{datainfo.BuyTypeName}}</p>
<p>
<span v-if="datainfo.BuyTypeName && datainfo.BuyTypeName!=''">{{datainfo.BuyTypeName}}</span>
<span v-else></span>
</p>
</div>
<div class="desItem">
<p>金额</p>
......@@ -76,7 +91,10 @@
</div>
<div class="desItem">
<p>使用类型</p>
<p>{{datainfo.UseStatusName}}</p>
<p>
<span v-if="datainfo.UseStatusName && datainfo.UseStatusName!=''">{{datainfo.UseStatusName}}</span>
<span v-else></span>
</p>
</div>
<div class="desItem">
<p>公司</p>
......@@ -101,7 +119,7 @@
</div>
</div>
<div class="baseTitle f12">操作记录</div>
<table class="myTable miniTable" border="0" cellspacing="0" cellpadding="0" >
<table v-loading="detailLoad" class="myTable miniTable" border="0" cellspacing="0" cellpadding="0" >
<thead>
<th>类型</th>
<th>内容</th>
......@@ -161,6 +179,7 @@ export default {
ImageList:[],
},
PropertyId:'',
detailLoad:false,
}
},
created(){
......@@ -181,11 +200,12 @@ export default {
this.getOperation();
},
getOperation() {
this.detailLoad = true;
this.apiJavaPost(
"/api/property/GetPropertyLogPageList",
this.msg,
res => {
this.OperationLoad = false;
this.detailLoad = false;
if (res.data.resultCode === 1) {
this.OperationList = res.data.data.pageData;
this.total = res.data.data.count;
......
......@@ -84,7 +84,8 @@
</div>
</template>
<el-menu-item-group class="itemgroup">
<el-menu-item @click="goUrl(child)" v-for="(child,childIndex) in item.ChildMenu" :key="childIndex" :index="String(index+1)+'-'+String(childIndex+1)"><span>{{child.MenuName}}</span></el-menu-item>
<!-- :index="String(index+1)+'-'+String(childIndex+1)" -->
<el-menu-item @click="goUrl(child)" v-for="(child,childIndex) in item.ChildMenu" :key="childIndex" :index="child.MenuUrl"><span>{{child.MenuName}}</span></el-menu-item>
</el-menu-item-group>
</el-submenu>
......@@ -130,12 +131,14 @@ export default {
this.$router.push({path: 'login'})
return;
}
this.$bus.on('once',(path,key) =>{//处理传过来的值
if(key){
this.defaulActive=key;
}
});
this.getMenu();
},
watch:{
$route(){
this.defaulActive=this.$route.path
},
},
methods:{
goHome(){
......@@ -210,10 +213,10 @@ export default {
.HeadNav .el-menu-item, .HeadNav .el-submenu__title{
height:34px;
line-height:34px;
margin-bottom:20px;
margin-bottom:15px;
}
.HeadNav .itemgroup{
margin-top: -30px;
margin-top: -20px;
}
.HeadNav .itemgroup .el-menu-item.is-active{
color:#111111!important;
......
......@@ -13,10 +13,10 @@ export default {
Vue.prototype.domainManager = function () {
// var domainUrl = "http://test_reborn.oytour.com";//主域名
// var domainUrl = "http://reborn.oytour.com"; //主域名
var domainUrl = "http://192.168.2.18:8083"; //主域名
var domainUrl = "http://192.168.2.17:8087"; //主域名
let locationName = window.location.hostname;
let javaUrldo="";
javaUrldo=locationName.indexOf('oytour') !== -1 || locationName.indexOf('viitto') !== -1 ? (locationName.indexOf('oytour') !== -1 ? "http://efficient.oytour.com" : "http://47.96.12.235:9001") : "http://192.168.2.16:8087";
javaUrldo=locationName.indexOf('oytour') !== -1 || locationName.indexOf('viitto') !== -1 ? (locationName.indexOf('oytour') !== -1 ? "http://efficient.oytour.com" : "http://47.96.12.235:9001") : "http://192.168.2.17:8087";
if (this.isOnline()) {
if (window.location.host.indexOf('testb2b.oytour.com') != -1)
domainUrl = "http://testapi.oytour.com"
......
......@@ -90,13 +90,57 @@ export default {
name: 'AssetDepreciation',
component: resolve => require(['@/components/assetsman/AssetDepreciation'], resolve),
},
// 盘点管理
{
path: '/InventoryMan',
name: 'InventoryMan',
component: resolve => require(['@/components/assetsman/InventoryMan'], resolve),
},
// 盘点管理详情
{
path: '/InventoryDetails',
name: 'InventoryDetails',
component: resolve => require(['@/components/assetsman/InventoryDetails'], resolve),
},
// 盘点管理详情
{
path: '/disposalDetails',
name: 'disposalDetails',
component: resolve => require(['@/components/assetsman/disposalDetails'], resolve),
},
// 资产折旧报表
{
path: '/Assetstatistics',
name: 'Assetstatistics',
component: resolve => require(['@/components/assetsman/Assetstatistics'], resolve),
component: resolve => require(['@/components/report/Assetstatistics'], resolve),
},
// 资产汇总查询
{
path: '/assetSummary',
name: 'assetSummary',
component: resolve => require(['@/components/report/assetSummary'], resolve),
},
// 资产履历
{
path: '/AssetsRecord',
name: 'AssetsRecord',
component: resolve => require(['@/components/report/AssetsRecord'], resolve),
},
// 待归还
{
path: '/StayBack',
name: 'StayBack',
component: resolve => require(['@/components/report/StayBack'], resolve),
},
// 到期资产
{
path: '/MaturingAssets',
name: 'MaturingAssets',
component: resolve => require(['@/components/report/MaturingAssets'], resolve),
},
// 物料仓库
{
path: '/Materialwarehouse',
......@@ -157,8 +201,36 @@ export default {
name: 'SignMan',
component: resolve => require(['@/components/approval/SignMan'], resolve),
},
// 资产申请
{
path: '/assetsApply',
name: 'assetsApply',
component: resolve => require(['@/components/approval/assetsApply'], resolve),
},
// 我的资产
{
path: '/myAssets',
name: 'myAssets',
component: resolve => require(['@/components/approval/myAssets'], resolve),
},
// 资产清单
{
path: '/ListAssets',
name: 'ListAssets',
component: resolve => require(['@/components/approval/ListAssets'], resolve),
},
// 我的申请
{
path: '/Myapplication',
name: 'Myapplication',
component: resolve => require(['@/components/approval/Myapplication'], resolve),
},
// 耗材申请
{
path: '/ConsumApplication',
name: 'ConsumApplication',
component: resolve => require(['@/components/approval/ConsumApplication'], 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