日报表调整

yangwl
zhaoxiaolin 5 months ago
parent ce1d8b87de
commit 4c4c84dbe1

@ -53,7 +53,17 @@
v-hasPermi="['mes:dailyReportNew:export']" v-hasPermi="['mes:dailyReportNew:export']"
>导出</el-button> >导出</el-button>
</el-col> </el-col>
<el-col :span="20"> <el-col :span="1.5">
<el-button
type="warning"
plain
icon="el-icon-download"
size="mini"
@click="handleExportBP"
v-hasPermi="['mes:dailyReportNew:exportBP']"
>白坯参考导出</el-button>
</el-col>
<el-col :span="20">
<div style="color:firebrick;font-size: small; text-align: center;">产量=规格*实际产量订单完成率=实际产量/计划产量标准工时=产量*规格/产线标准效率产线效率=标准工时/实际工时 <div style="color:firebrick;font-size: small; text-align: center;">产量=规格*实际产量订单完成率=实际产量/计划产量标准工时=产量*规格/产线标准效率产线效率=标准工时/实际工时
总工时=实际用人*实际工时<br/>标准人均效率=实际产量/标准用人/标准工时实际人均效率=实际产量/总工时人均效率达成率=实际人均效率/标准人均效率</div> 总工时=实际用人*实际工时<br/>标准人均效率=实际产量/标准用人/标准工时实际人均效率=实际产量/总工时人均效率达成率=实际人均效率/标准人均效率</div>
</el-col> </el-col>
@ -245,6 +255,11 @@ export default {
...this.queryParams ...this.queryParams
}, `dailyReport_${new Date().getTime()}.xlsx`) }, `dailyReport_${new Date().getTime()}.xlsx`)
}, },
handleExportBP() {
this.download('mes/reportWork/getDailyReportNewBPExport', {
...this.queryParams
}, `dailyReport_BP_${new Date().getTime()}.xlsx`)
},
getSummaries(param) { getSummaries(param) {
const { columns, data } = param; const { columns, data } = param;
const sums = []; const sums = [];

@ -115,14 +115,14 @@
>导出 >导出
</el-button> </el-button>
</el-col> </el-col>
<!--
<el-col :span="1.5"> <el-col :span="1.5">
<el-button type="primary" plain icon="el-icon-guide" size="mini" <el-button type="primary" plain icon="el-icon-guide" size="mini"
@click="handleAutoSplit" @click="handleAutoSplit"
:disabled="single" :disabled="single"
v-hasPermi="['mes:pro:order:edit']">辅助排产 v-hasPermi="['mes:pro:order:edit']">辅助排产
</el-button> </el-button>
</el-col> </el-col>-->
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
</el-row> </el-row>
@ -519,8 +519,8 @@
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="生产工艺" label-width="100px"> <el-form-item label="生产工艺" label-width="100px">
<el-select v-model="autoSplitform1.routeCode" placeholder="请选择工艺" style="width: 100%;"> <el-select v-model="autoSplitform1.routeCode" placeholder="请选择工艺" style="width: 100%;">
@ -530,15 +530,15 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="工单排序" label-width="100px"> <el-form-item label="工单排序" label-width="100px">
<el-input v-model="autoSplitform1.sortNo" type="Number" style="width: 100%;"></el-input> <el-input v-model="autoSplitform1.sortNo" type="Number" style="width: 100%;"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
</div> </div>
</el-form> </el-form>
<!--第二步--> <!--第二步-->
@ -556,7 +556,7 @@
</el-checkbox> </el-checkbox>
</el-checkbox-group> </el-checkbox-group>
</el-form-item> </el-form-item>
</div> </div>
</el-form> </el-form>
<!--第三步--> <!--第三步-->
@ -1377,7 +1377,7 @@ export default {
this.reset(); this.reset();
this.openAutoSplit = false; this.openAutoSplit = false;
this.activeSplit = 0; this.activeSplit = 0;
autoSplitOrderCancel(Object.assign({},this.autoSplitList[0])).then(response => {}); autoSplitOrderCancel(Object.assign({},this.autoSplitList[0])).then(response => {});
}, },
// //
checkNull(entity) { checkNull(entity) {
@ -1508,7 +1508,7 @@ export default {
getProRoutes(this.autoSplitList[0].prodCode).then(response => { getProRoutes(this.autoSplitList[0].prodCode).then(response => {
this.routes = response.data; this.routes = response.data;
this.autoSplitform1.routeCode = response.data[0].routeCode; this.autoSplitform1.routeCode = response.data[0].routeCode;
}) })
//var ymd = moment(this.autoSplitform1.productDate).format('YYYY-MM-DD') //var ymd = moment(this.autoSplitform1.productDate).format('YYYY-MM-DD')
// //
@ -1562,7 +1562,7 @@ export default {
}, },
next() { next() {
if (this.activeSplit++ > 2) this.activeSplit = 0; if (this.activeSplit++ > 2) this.activeSplit = 0;
//线 //线
if(this.activeSplit == 2){ if(this.activeSplit == 2){
autoSplitOrder(Object.assign({},this.autoSplitList[0],this.autoSplitform1,this.autoSplitform2)).then(response => { autoSplitOrder(Object.assign({},this.autoSplitList[0],this.autoSplitform1,this.autoSplitform2)).then(response => {
this.workerLoading = true // true this.workerLoading = true // true
@ -1578,15 +1578,15 @@ export default {
this.workerLoading = false // false this.workerLoading = false // false
}) })
}) })
}); });
} }
}, },
prev(){ prev(){
if (this.activeSplit-- > 2) this.activeSplit = 2; if (this.activeSplit-- > 2) this.activeSplit = 2;
// //
if(this.activeSplit == 1){ if(this.activeSplit == 1){
autoSplitOrderCancel(Object.assign({},this.autoSplitList[0])).then(response => { autoSplitOrderCancel(Object.assign({},this.autoSplitList[0])).then(response => {
}); });
} }
}, },
autoSplitCommit(){ autoSplitCommit(){
@ -1595,7 +1595,7 @@ export default {
this.getList(); this.getList();
this.openAutoSplit = false; this.openAutoSplit = false;
this.activeSplit = 0; this.activeSplit = 0;
}); });
} }
} }

Loading…
Cancel
Save