日报表调整

yangwl
zhaoxiaolin 5 months ago
parent ce1d8b87de
commit 4c4c84dbe1

@ -53,7 +53,17 @@
v-hasPermi="['mes:dailyReportNew:export']"
>导出</el-button>
</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;">产量=规格*实际产量订单完成率=实际产量/计划产量标准工时=产量*规格/产线标准效率产线效率=标准工时/实际工时
总工时=实际用人*实际工时<br/>标准人均效率=实际产量/标准用人/标准工时实际人均效率=实际产量/总工时人均效率达成率=实际人均效率/标准人均效率</div>
</el-col>
@ -245,6 +255,11 @@ export default {
...this.queryParams
}, `dailyReport_${new Date().getTime()}.xlsx`)
},
handleExportBP() {
this.download('mes/reportWork/getDailyReportNewBPExport', {
...this.queryParams
}, `dailyReport_BP_${new Date().getTime()}.xlsx`)
},
getSummaries(param) {
const { columns, data } = param;
const sums = [];

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

Loading…
Cancel
Save