|
|
|
@ -67,6 +67,7 @@
|
|
|
|
icon="el-icon-download"
|
|
|
|
icon="el-icon-download"
|
|
|
|
size="mini"
|
|
|
|
size="mini"
|
|
|
|
@click="handleExportBP"
|
|
|
|
@click="handleExportBP"
|
|
|
|
|
|
|
|
:loading="exportLoading"
|
|
|
|
v-hasPermi="['mes:dailyReportNew:exportBP']"
|
|
|
|
v-hasPermi="['mes:dailyReportNew:exportBP']"
|
|
|
|
>白坯参考导出</el-button>
|
|
|
|
>白坯参考导出</el-button>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
@ -77,11 +78,12 @@
|
|
|
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
|
|
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
|
|
|
</el-row>
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
|
|
<el-table v-loading="loading" :data="prepareList"
|
|
|
|
<el-table v-loading="loading" :data="prepareList" id="exportTable"
|
|
|
|
height="500"
|
|
|
|
height="500"
|
|
|
|
:summary-method="getSummaries"
|
|
|
|
:summary-method="getSummaries"
|
|
|
|
:header-cell-style="{'text-align':'center'}"
|
|
|
|
:header-cell-style="{'text-align':'center'}"
|
|
|
|
:cell-style="{'text-align':'center'}"
|
|
|
|
:cell-style="{'text-align':'center'}"
|
|
|
|
|
|
|
|
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<el-table-column prop="factoryCode" label="工厂" width="90"/>
|
|
|
|
<el-table-column prop="factoryCode" label="工厂" width="90"/>
|
|
|
|
<el-table-column prop="workshopCode" label="车间编码" width="90"/>
|
|
|
|
<el-table-column prop="workshopCode" label="车间编码" width="90"/>
|
|
|
|
@ -155,6 +157,7 @@
|
|
|
|
:total="total"
|
|
|
|
:total="total"
|
|
|
|
:page.sync="queryParams.pageNum"
|
|
|
|
:page.sync="queryParams.pageNum"
|
|
|
|
:limit.sync="queryParams.pageSize"
|
|
|
|
:limit.sync="queryParams.pageSize"
|
|
|
|
|
|
|
|
:page-sizes="[10, 50, 100, 500]"
|
|
|
|
@pagination="getList"
|
|
|
|
@pagination="getList"
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@ -163,12 +166,15 @@
|
|
|
|
<script>
|
|
|
|
<script>
|
|
|
|
import { getDailyReportNew,getWorkcenterList} from "@/api/mes/reportWork";
|
|
|
|
import { getDailyReportNew,getWorkcenterList} from "@/api/mes/reportWork";
|
|
|
|
import moment from 'moment';
|
|
|
|
import moment from 'moment';
|
|
|
|
|
|
|
|
import FileSaver from 'file-saver'
|
|
|
|
|
|
|
|
import * as XLSX from 'xlsx'
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
|
name: "DailyReportNew",
|
|
|
|
name: "DailyReportNew",
|
|
|
|
data() {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
// 遮罩层
|
|
|
|
// 遮罩层
|
|
|
|
loading: true,
|
|
|
|
loading: true,
|
|
|
|
|
|
|
|
exportLoading: false,
|
|
|
|
// 选中数组
|
|
|
|
// 选中数组
|
|
|
|
ids: [],
|
|
|
|
ids: [],
|
|
|
|
// 非单个禁用
|
|
|
|
// 非单个禁用
|
|
|
|
|