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