Commit d5d61e76 authored by 沈翠玲's avatar 沈翠玲

生产排产和生产报工导出

parent 36e05896
...@@ -601,7 +601,9 @@ export default { ...@@ -601,7 +601,9 @@ export default {
/** 导出按钮操作 */ /** 导出按钮操作 */
handleExport() { handleExport() {
this.download1('mes/pro/feedback/list/export', { this.download1('mes/pro/feedback/list/export', {
...this.queryParams ...this.queryParams,
pageNum: null,
pageSize: null
}, `feedback_${new Date().getTime()}.xlsx`) }, `feedback_${new Date().getTime()}.xlsx`)
}, },
//选择生产工单 //选择生产工单
......
...@@ -222,6 +222,10 @@ ...@@ -222,6 +222,10 @@
@click="handlePrint" @click="handlePrint"
>{{$t('打印')}}</el-button> >{{$t('打印')}}</el-button>
</el-col> </el-col>
<el-col :span="1.5">
<el-button size="mini" @click="handleExport" type="primary"
plain>{{ $t('导出') }}</el-button>
</el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
</el-row> </el-row>
...@@ -682,6 +686,17 @@ export default { ...@@ -682,6 +686,17 @@ export default {
this.hanldeGetdefaultWorkCenterList() this.hanldeGetdefaultWorkCenterList()
}, },
methods: { methods: {
handleExport(){
this.download1(
'mes/pro/taskWorkunit/list/export',
{
...this.queryParams,
pageSize: null,
pageNum: null
},
`taskWorkunit_${new Date().getTime()}.xlsx`
);
},
handleCancel() { handleCancel() {
const workorderCode = this.selections[0].workorderCode const workorderCode = this.selections[0].workorderCode
this.$modal this.$modal
......
...@@ -55,7 +55,7 @@ ...@@ -55,7 +55,7 @@
<el-form-item> <el-form-item>
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">{{ $t('common.search') }}</el-button> <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">{{ $t('common.search') }}</el-button>
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">{{ $t('common.reset') }}</el-button> <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">{{ $t('common.reset') }}</el-button>
<el-button size="mini" @click="handleExport">{{ $t('导出') }}</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
...@@ -169,15 +169,7 @@ export default { ...@@ -169,15 +169,7 @@ export default {
this.getList(); this.getList();
}, },
methods: { methods: {
handleExport(){
this.download1(
'mes/pro/taskWorkunit/list/export',
{
...this.queryParams,
},
`taskWorkunit_${new Date().getTime()}.xlsx`
);
},
/** 查询物料编码列表 */ /** 查询物料编码列表 */
getList() { getList() {
this.loading = true; this.loading = true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment