|
|
@ -12,7 +12,10 @@ |
|
|
<el-form :label-position="'top'" label-width="120px" :model="filters"> |
|
|
<el-form :label-position="'top'" label-width="120px" :model="filters"> |
|
|
<el-form-item> |
|
|
<el-form-item> |
|
|
<xm-product-select v-if="!xmProduct" ref="xmProductSelect" style="display:inline;" :auto-select="false" :link-project-id="xmProject?xmProject.id:null" @row-click="onProductSelected" @clear="onProductClear"></xm-product-select> |
|
|
<xm-product-select v-if="!xmProduct" ref="xmProductSelect" style="display:inline;" :auto-select="false" :link-project-id="xmProject?xmProject.id:null" @row-click="onProductSelected" @clear="onProductClear"></xm-product-select> |
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
<el-form-item label="日期区间"> |
|
|
|
|
|
<date-range v-model="filters" value-format="yyyy-MM-dd" start-key="startBizDate" end-key="endBizDate"></date-range> |
|
|
|
|
|
</el-form-item> |
|
|
<el-form-item> |
|
|
<el-form-item> |
|
|
<el-button type="primary" icon="el-icon-search" @click="listXmProductStateHis">查询</el-button> |
|
|
<el-button type="primary" icon="el-icon-search" @click="listXmProductStateHis">查询</el-button> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
@ -99,25 +102,18 @@ |
|
|
|
|
|
|
|
|
}//end return |
|
|
}//end return |
|
|
},//end data |
|
|
},//end data |
|
|
methods: { |
|
|
|
|
|
findMax( list ) { |
|
|
|
|
|
var i, max = list[0]; |
|
|
|
|
|
|
|
|
|
|
|
if(list.length < 2) return max; |
|
|
|
|
|
|
|
|
|
|
|
for (i = 0; i < list.length; i++) { |
|
|
|
|
|
if (list[i].distBudgetWorkload > max.distBudgetWorkload) { |
|
|
|
|
|
max = list[i]; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
return max; |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
methods: { |
|
|
listXmProductStateHis(){ |
|
|
listXmProductStateHis(){ |
|
|
if(!this.filters.product){ |
|
|
if(!this.filters.product){ |
|
|
this.$notify({position:'bottom-left',showClose:true,message:'请先选中产品',type:'warning'}) |
|
|
this.$notify({position:'bottom-left',showClose:true,message:'请先选中产品',type:'warning'}) |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
var params={productId:this.filters.product.id,orderBy:'biz_date asc'} |
|
|
var params={productId:this.filters.product.id,orderBy:'biz_date asc'} |
|
|
|
|
|
|
|
|
|
|
|
if(this.filters.startBizDate && this.filters.endBizDate){ |
|
|
|
|
|
params.startBizDate=this.filters.startBizDate; |
|
|
|
|
|
params.endBizDate=this.filters.endBizDate; |
|
|
|
|
|
} |
|
|
listXmProductStateHis(params).then(res=>{ |
|
|
listXmProductStateHis(params).then(res=>{ |
|
|
this.xmProductStateHiss=res.data.tips.isOk?res.data.data:this.xmProductStateHiss; |
|
|
this.xmProductStateHiss=res.data.tips.isOk?res.data.data:this.xmProductStateHiss; |
|
|
}) |
|
|
}) |
|
|
|