feat(wms): 添加下载收货模板功能并优化代码格式
- 新增下载模板按钮及对应方法 - 调整代码缩进和格式以提高可读性 - 移除多余的空格和注释
This commit is contained in:
@@ -34,7 +34,10 @@
|
||||
<el-button type="success" plain icon="el-icon-refresh" size="mini" @click="handleQuery">刷新</el-button>
|
||||
<el-button type="primary" plain icon="el-icon-plus" size="mini" @click="handleAdd"
|
||||
:disabled="!selectedPlan" title="导入收货计划">导入</el-button>
|
||||
<el-button type="primary" plain icon="el-icon-upload" size="mini" @click="handlePrint" :disabled="!selectedPlan">打印</el-button>
|
||||
<el-button type="primary" plain icon="el-icon-download" size="mini" @click="downloadTemplate"
|
||||
title="下载模板">模板</el-button>
|
||||
<el-button type="primary" plain icon="el-icon-upload" size="mini" @click="handlePrint"
|
||||
:disabled="!selectedPlan">打印</el-button>
|
||||
<!-- <el-button type="warning" plain icon="el-icon-download" size="mini" @click="handleExport">导出</el-button> -->
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
@@ -81,7 +84,8 @@
|
||||
</el-table-column>
|
||||
<el-table-column label="操作">
|
||||
<template slot-scope="scope">
|
||||
<el-button v-if="scope.row.actionStatus == 0 || scope.row.actionStatus == 1" type="primary" @click="openReceiptModal(scope.row)">签收</el-button>
|
||||
<el-button v-if="scope.row.actionStatus == 0 || scope.row.actionStatus == 1" type="primary"
|
||||
@click="openReceiptModal(scope.row)">签收</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<!-- <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||
@@ -146,7 +150,7 @@ import ImportGuide from "@/views/wms/receive/components/ImportGuide.vue";
|
||||
import ActualWarehouseSelect from "@/components/KLPService/ActualWarehouseSelect";
|
||||
import CoilNo from "@/components/KLPService/Renderer/CoilNo.vue";
|
||||
import Printer from "../components/Printer.vue";
|
||||
|
||||
import { getConfigKey } from '@/api/system/config'
|
||||
|
||||
export default {
|
||||
name: "DeliveryWaybill",
|
||||
@@ -441,6 +445,13 @@ export default {
|
||||
this.form = {};
|
||||
this.$refs.form.resetFields();
|
||||
this.buttonLoading = false;
|
||||
},
|
||||
// 下载模板文件
|
||||
downloadTemplate() {
|
||||
// 从系统参数中中读取id,然后下载
|
||||
getConfigKey('file.template.receive').then(res => {
|
||||
this.$download.oss(res.msg);
|
||||
})
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user