|
@@ -22,6 +22,7 @@
|
|
|
<el-menu-item index="1-3" @click="ssl(2)"><p>{{'报工查询表'}}</p></el-menu-item>
|
|
|
<el-menu-item index="1-4" @click="ssl(3)"><p>{{'计划实时进度表'}}</p></el-menu-item>
|
|
|
<el-menu-item index="1-5" @click="ssl(4)"><p>{{'部门生产统计表'}}</p></el-menu-item>
|
|
|
+ <el-menu-item index="1-6" @click="ssl(5)"><p>{{'月生产件数报表'}}</p></el-menu-item>
|
|
|
</el-submenu>
|
|
|
</el-menu>
|
|
|
</el-col>
|
|
@@ -36,18 +37,18 @@
|
|
|
<h3 ref="headHe" style="padding-left: 10px;float:left;width:15%">{{shuz[ins]}}</h3>
|
|
|
<div class="headScreen" :style="'width:72%'">
|
|
|
<!-- 部门筛选 -->
|
|
|
- <el-cascader v-model="departmentIdArray" :options="departmentList" :placeholder="$t('qing-xuan-ze-bu-men')"
|
|
|
+ <el-cascader v-if="ins!=5" v-model="departmentIdArray" :options="departmentList" :placeholder="$t('qing-xuan-ze-bu-men')"
|
|
|
:props="{ checkStrictly: true,expandTrigger: 'hover',multiple: ins == 6 ? true : false }" collapse-tags :show-all-levels="false" clearable
|
|
|
@change="selcts()" size="small" style="margin-bottom: 10px;width:180px"
|
|
|
></el-cascader>
|
|
|
|
|
|
<!-- 人员筛选 -->
|
|
|
- <el-select v-if="ins!=4" v-model="userId" :placeholder="$t('pleaseselectpersonnel')" @change="selcts()" clearable filterable size="small" style="width:120px">
|
|
|
+ <el-select v-if="ins!=4 && ins!=5" v-model="userId" :placeholder="$t('pleaseselectpersonnel')" @change="selcts()" clearable filterable size="small" style="width:120px">
|
|
|
<el-option v-for="(item, index) in selUserList" :key="index" :label="item.name" :value="item.id"></el-option>
|
|
|
</el-select>
|
|
|
|
|
|
<!-- 产品筛选 -->
|
|
|
- <el-select v-if="ins == 2" v-model="productId" :placeholder="'请选择'" @change="selcts()" clearable filterable size="small" style="width:140px">
|
|
|
+ <el-select v-if="ins == 2 || ins==5" v-model="productId" :placeholder="'请选择产品'" @change="selcts()" clearable filterable size="small" style="width:140px">
|
|
|
<el-option v-for="(item, index) in productList" :key="index" :label="item.name" :value="item.id"></el-option>
|
|
|
</el-select>
|
|
|
|
|
@@ -166,6 +167,25 @@
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
|
|
|
+ <!-- 月生产件数报表 -->
|
|
|
+ <el-table v-if="ins == 5" key="6" border :data="productionQuantityList" highlight-current-row v-loading="listLoading" :height="+tableHeight - 1" style="width: 100%;">
|
|
|
+ <el-table-column align="center" prop="productName" label="产品名称" min-width="150">
|
|
|
+ <template slot-scope="scope">{{scope.row.productName}}</template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column align="center" prop="integrated" label="完整件数" min-width="150">
|
|
|
+ <template slot-scope="scope">{{scope.row.integrated}}</template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column align="center" prop="rounding" label="凑整件数" min-width="150">
|
|
|
+ <template slot-scope="scope">{{scope.row.rounding}}</template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column align="center" prop="converted" label="拆算件数" min-width="150">
|
|
|
+ <template slot-scope="scope">{{scope.row.converted}}</template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column align="center" prop="total" label="总件数" min-width="150">
|
|
|
+ <template slot-scope="scope">{{scope.row.total}}</template>
|
|
|
+ </el-table-column>
|
|
|
+ </el-table>
|
|
|
+
|
|
|
<!--工具条-->
|
|
|
<el-col :span="24" class="toolbar" v-if="ins != 6">
|
|
|
<el-pagination
|
|
@@ -445,9 +465,9 @@ export default {
|
|
|
z : null,
|
|
|
value: null,
|
|
|
dialog: false, // 单据查看展示
|
|
|
- shuz: ['人员工时工价表', '工序实时进度表','报工查询表','计划实时进度表','部门生产统计表'],
|
|
|
+ shuz: ['人员工时工价表', '工序实时进度表','报工查询表','计划实时进度表','部门生产统计表','月度生产件数表'],
|
|
|
|
|
|
- shuzArr: ['人员工时工价表', '工序实时进度表','报工查询表','计划实时进度表','部门生产统计表'],
|
|
|
+ shuzArr: ['人员工时工价表', '工序实时进度表','报工查询表','计划实时进度表','部门生产统计表','月度生产件数表'],
|
|
|
|
|
|
ins: 10000,
|
|
|
user: JSON.parse(sessionStorage.user),
|
|
@@ -542,6 +562,8 @@ export default {
|
|
|
orderInsertPlanDetailDiaLog:false,
|
|
|
reportQueryList:[],
|
|
|
|
|
|
+ productionQuantityList:[],
|
|
|
+
|
|
|
//筛选项
|
|
|
productId:"",
|
|
|
productList:[],
|
|
@@ -914,6 +936,34 @@ export default {
|
|
|
});
|
|
|
});
|
|
|
},
|
|
|
+ //月度生产件数表
|
|
|
+ getProductionQuantityList(){
|
|
|
+ this.listLoading=true
|
|
|
+ this.http.post( "/report/productionQuantityList", {
|
|
|
+ startDate:this.rangeDatas[0],
|
|
|
+ endDate:this.rangeDatas[1],
|
|
|
+ pageIndex: this.page,
|
|
|
+ pageSize: this.size,
|
|
|
+ productId:this.productId,
|
|
|
+ },
|
|
|
+ res => {
|
|
|
+ if (res.code == "ok") {
|
|
|
+ this.productionQuantityList=res.data.records
|
|
|
+ this.total=res.data.total
|
|
|
+ } else {
|
|
|
+ this.$message({
|
|
|
+ message: res.msg,
|
|
|
+ type: "error"
|
|
|
+ });
|
|
|
+ }
|
|
|
+ this.listLoading=false
|
|
|
+ },error => {
|
|
|
+ this.$message({
|
|
|
+ message: error,
|
|
|
+ type: "error"
|
|
|
+ });
|
|
|
+ });
|
|
|
+ },
|
|
|
//获取产品列表
|
|
|
getProductList(){
|
|
|
this.http.post( "/product/getProductPage", {
|
|
@@ -1028,6 +1078,8 @@ export default {
|
|
|
this.getPlanRealTimeProgressList()
|
|
|
}else if(this.ins==4){
|
|
|
this.getDpetStatisticsProgressList()
|
|
|
+ }else if(this.ins==5){
|
|
|
+ this.getProductionQuantityList()
|
|
|
}
|
|
|
},
|
|
|
exportExcel() {
|
|
@@ -1071,6 +1123,13 @@ export default {
|
|
|
sl.startDate=this.rangeDatas[0];
|
|
|
sl.endDate=this.rangeDatas[1];
|
|
|
sl.deptId=this.departmentIdArray[this.departmentIdArray.length-1];
|
|
|
+ }
|
|
|
+ else if (this.ins == 5) {
|
|
|
+ fName = '月度生产件数表_' + '.xlsx';
|
|
|
+ url += "/exportProductionQuantity";
|
|
|
+ sl.startDate=this.rangeDatas[0];
|
|
|
+ sl.endDate=this.rangeDatas[1];
|
|
|
+ sl.productId=this.productId;
|
|
|
}
|
|
|
this.http.post(url, sl,
|
|
|
res => {
|
|
@@ -1153,6 +1212,10 @@ export default {
|
|
|
//TODO: 获取数据
|
|
|
this.getDpetStatisticsProgressList()
|
|
|
}
|
|
|
+ if(this.ins == 5){
|
|
|
+ //TODO: 获取数据
|
|
|
+ this.getProductionQuantityList()
|
|
|
+ }
|
|
|
},
|
|
|
// 日期
|
|
|
getCurrentRangeTime() {
|