SN生成
This commit is contained in:
parent
0a120dd3bd
commit
4b9ad6b455
@ -76,12 +76,12 @@
|
|||||||
type="text"
|
type="text"
|
||||||
@click="handleView(scope.row)"
|
@click="handleView(scope.row)"
|
||||||
v-hasPermi="['mes:wm:sn:query']"
|
v-hasPermi="['mes:wm:sn:query']"
|
||||||
>{{scope.row.genDate}}</el-button>
|
>{{scope.row.snNum}}</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="生成时间" align="center" prop="genDate" width="120">
|
<el-table-column label="生成时间" align="center" prop="genDate" width="120">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<span>{{ parseTime(scope.row.rtDate, '{y}-{m}-{d} {h}:{mi}:{s}') }}</span>
|
<span>{{ parseTime(scope.row.genDate, '{y}-{m}-{d} {h}:{mi}:{s}') }}</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</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">
|
||||||
@ -90,7 +90,7 @@
|
|||||||
size="mini"
|
size="mini"
|
||||||
type="text"
|
type="text"
|
||||||
icon="el-icon-edit"
|
icon="el-icon-edit"
|
||||||
@click="handleUpdate(scope.row)"
|
@click="handleExport(scope.row)"
|
||||||
v-hasPermi="['mes:wm:sn:edit']"
|
v-hasPermi="['mes:wm:sn:edit']"
|
||||||
>导出/打印</el-button>
|
>导出/打印</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
@ -208,6 +208,7 @@ export default {
|
|||||||
getList() {
|
getList() {
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
listSn(this.queryParams).then(response => {
|
listSn(this.queryParams).then(response => {
|
||||||
|
debugger;
|
||||||
this.snList = response.rows;
|
this.snList = response.rows;
|
||||||
this.total = response.total;
|
this.total = response.total;
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
@ -283,7 +284,9 @@ export default {
|
|||||||
}).catch(() => {});
|
}).catch(() => {});
|
||||||
},
|
},
|
||||||
/** 导出按钮操作 */
|
/** 导出按钮操作 */
|
||||||
handleExport() {
|
handleExport(row) {
|
||||||
|
this.queryParams.itemCode = row.itemCode;
|
||||||
|
this.queryParams.gen_date = row.genDate;
|
||||||
this.download('/mes/wm/sn/export', {
|
this.download('/mes/wm/sn/export', {
|
||||||
...this.queryParams
|
...this.queryParams
|
||||||
}, `sn_${new Date().getTime()}.xlsx`)
|
}, `sn_${new Date().getTime()}.xlsx`)
|
||||||
|
Loading…
Reference in New Issue
Block a user