|
|
|
@ -93,7 +93,11 @@
|
|
|
|
|
<span>{{ parseTime(scope.row.checkTime, '{y}-{m}-{d} {h}:{i}:{s}') }}</span>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="检验结果" align="center" prop="checkResult" />
|
|
|
|
|
<el-table-column label="检验结果" align="center" prop="checkResult">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<dict-tag :options="dict.type.check_result" :value="scope.row.checkResult"/>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-button
|
|
|
|
@ -121,7 +125,7 @@
|
|
|
|
|
<el-col :span="20">
|
|
|
|
|
<el-button
|
|
|
|
|
class="print-btn"
|
|
|
|
|
size="midle"
|
|
|
|
|
size="mini"
|
|
|
|
|
type="primary"
|
|
|
|
|
icon="el-icon-edit"
|
|
|
|
|
@click="handlePrint(form)"
|
|
|
|
@ -228,7 +232,11 @@
|
|
|
|
|
<el-table-column label="下差值" align="center" prop="downDiff" />
|
|
|
|
|
<el-table-column label="单位" align="center" prop="unitCode" />
|
|
|
|
|
<el-table-column label="检验值" align="center" prop="actualValue" />
|
|
|
|
|
<el-table-column label="结果" align="center" prop="status" />
|
|
|
|
|
<el-table-column label="结果" align="center" prop="status" >
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<dict-tag :options="dict.type.check_result" :value="scope.row.status"/>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</el-table>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
@ -330,7 +338,7 @@ export default {
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
created() {
|
|
|
|
|
//this.getDate();
|
|
|
|
|
this.getDate();
|
|
|
|
|
this.getList();
|
|
|
|
|
this.getCheckTypes();
|
|
|
|
|
},
|
|
|
|
@ -342,12 +350,12 @@ export default {
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
/**获取默认查询时间段**/
|
|
|
|
|
//getDate() {
|
|
|
|
|
//let start = this.Fungetdate (0)
|
|
|
|
|
//let end = this.Fungetdate (1)
|
|
|
|
|
//this.queryParams.incomeTimeArray.push(start,end)
|
|
|
|
|
//this.queryParams.checkTimeArray.push(start,end)
|
|
|
|
|
//},
|
|
|
|
|
getDate() {
|
|
|
|
|
let start = this.Fungetdate (0)
|
|
|
|
|
let end = this.Fungetdate (1)
|
|
|
|
|
this.queryParams.incomeTimeArray.push(start,end)
|
|
|
|
|
this.queryParams.checkTimeArray.push(start,end)
|
|
|
|
|
},
|
|
|
|
|
Fungetdate (num) {
|
|
|
|
|
var dd = new Date();
|
|
|
|
|
dd.setDate(dd.getDate() + num);
|
|
|
|
@ -444,7 +452,7 @@ export default {
|
|
|
|
|
this.form.printable = 'printFrom'; //打印时需要
|
|
|
|
|
this.form.ignore = ['no-print'];//打印时需要
|
|
|
|
|
this.open = true;
|
|
|
|
|
this.title = "查看来料报告";
|
|
|
|
|
this.title = "查看成品入库报告";
|
|
|
|
|
});
|
|
|
|
|
this.getCheckedProjectList();
|
|
|
|
|
},
|
|
|
|
@ -501,7 +509,7 @@ export default {
|
|
|
|
|
type: params.type || 'html',
|
|
|
|
|
maxWidth: 1500, // 最大宽度
|
|
|
|
|
font_size: "",// 设置字体大小
|
|
|
|
|
header: params.header, // '表单',
|
|
|
|
|
header: "成品入库检验结果报告",//params.header, // '表单',
|
|
|
|
|
targetStyles: ['*'],
|
|
|
|
|
style: '@page {margin:0 10mm};', // 可选-打印时去掉眉页眉尾
|
|
|
|
|
ignoreElements: params.ignore || [], // ['no-print']
|
|
|
|
|